diff --git a/dist/index.html b/dist/index.html
index 27972920591b36a81f9e1041f384e5d4099555b1..5b761840a3275a353ac00d6ce1be97bf247ff40f 100644
--- a/dist/index.html
+++ b/dist/index.html
@@ -27,5 +27,5 @@
 <link rel="stylesheet" href="styles.8b6195db994dd1043497.css"></head>
 <body>
     <app-root></app-root>
-<script src="runtime-es2015.6d764e26596b8259b2e2.js" type="module"></script><script src="runtime-es5.6d764e26596b8259b2e2.js" nomodule defer></script><script src="polyfills-es5.016de5c7b74a5782d968.js" nomodule defer></script><script src="polyfills-es2015.61606da6d5867aea9335.js" type="module"></script><script src="scripts.839aa34c61ed64fb6304.js" defer></script><script src="main-es2015.9e57fcce9488c78ee1db.js" type="module"></script><script src="main-es5.9e57fcce9488c78ee1db.js" nomodule defer></script></body>
+<script src="runtime-es2015.6d764e26596b8259b2e2.js" type="module"></script><script src="runtime-es5.6d764e26596b8259b2e2.js" nomodule defer></script><script src="polyfills-es5.016de5c7b74a5782d968.js" nomodule defer></script><script src="polyfills-es2015.61606da6d5867aea9335.js" type="module"></script><script src="scripts.839aa34c61ed64fb6304.js" defer></script><script src="main-es2015.f27a4a82a99f81d8756f.js" type="module"></script><script src="main-es5.f27a4a82a99f81d8756f.js" nomodule defer></script></body>
 </html>
diff --git a/dist/main-es2015.9e57fcce9488c78ee1db.js b/dist/main-es2015.f27a4a82a99f81d8756f.js
similarity index 99%
rename from dist/main-es2015.9e57fcce9488c78ee1db.js
rename to dist/main-es2015.f27a4a82a99f81d8756f.js
index 2f3569e4e69f9e4581d61b83b1d4495151a6b081..7fe554582ce93368f2b77ef712499c23dbd599e7 100644
--- a/dist/main-es2015.9e57fcce9488c78ee1db.js
+++ b/dist/main-es2015.f27a4a82a99f81d8756f.js
@@ -1 +1 @@
-(window.webpackJsonp=window.webpackJsonp||[]).push([[3],{0:function(e,t,n){e.exports=n("m9/o")},"1vRN":function(e,t,n){"use strict";n.d(t,"a",function(){return o}),n.d(t,"b",function(){return r}),n.d(t,"c",function(){return i}),n.d(t,"d",function(){return u}),n.d(t,"e",function(){return h}),n.d(t,"f",function(){return v}),n.d(t,"g",function(){return a}),n.d(t,"h",function(){return d}),n.d(t,"i",function(){return s}),n.d(t,"j",function(){return p}),n.d(t,"k",function(){return c}),n.d(t,"l",function(){return g}),n.d(t,"m",function(){return b}),n.d(t,"n",function(){return y}),n.d(t,"o",function(){return f}),n.d(t,"p",function(){return m}),n.d(t,"q",function(){return l});const i=(e,t)=>{e.componentOnReady?e.componentOnReady().then(e=>t(e)):l(()=>t(e))},s=(e,t=[])=>{const n={};return t.forEach(t=>{e.hasAttribute(t)&&(null!==e.getAttribute(t)&&(n[t]=e.getAttribute(t)),e.removeAttribute(t))}),n},o=(e,t,n,i)=>{if("undefined"!=typeof window){const s=window,o=s&&s.Ionic&&s.Ionic.config;if(o){const s=o.get("_ael");if(s)return s(e,t,n,i);if(o._ael)return o._ael(e,t,n,i)}}return e.addEventListener(t,n,i)},r=(e,t,n,i)=>{if("undefined"!=typeof window){const s=window,o=s&&s.Ionic&&s.Ionic.config;if(o){const s=o.get("_rel");if(s)return s(e,t,n,i);if(o._rel)return o._rel(e,t,n,i)}}return e.removeEventListener(t,n,i)},a=(e,t=e)=>e.shadowRoot||t,l=e=>"function"==typeof __zone_symbol__requestAnimationFrame?__zone_symbol__requestAnimationFrame(e):"function"==typeof requestAnimationFrame?requestAnimationFrame(e):setTimeout(e),c=e=>!!e.shadowRoot&&!!e.attachShadow,d=e=>{const t=e.closest("ion-item");return t?t.querySelector("ion-label"):null},u=(e,t)=>{let n;const i=e.getAttribute("aria-labelledby"),s=e.id;let o=null!==i&&""!==i.trim()?i:t+"-lbl",r=null!==i&&""!==i.trim()?document.getElementById(i):d(e);return r?(null===i&&(r.id=o),n=r.textContent,r.setAttribute("aria-hidden","true")):""!==s.trim()&&(r=document.querySelector(`label[for="${s}"]`),r&&(""!==r.id?o=r.id:r.id=o=s+"-lbl",n=r.textContent)),{label:r,labelId:o,labelText:n}},h=(e,t,n,i,s)=>{if(e||c(t)){let e=t.querySelector("input.aux-input");e||(e=t.ownerDocument.createElement("input"),e.type="hidden",e.classList.add("aux-input"),t.appendChild(e)),e.disabled=s,e.name=n,e.value=i||""}},p=(e,t,n)=>Math.max(e,Math.min(t,n)),g=(e,t)=>{if(!e){const e="ASSERT: "+t;throw console.error(e),new Error(e)}},f=e=>e.timeStamp||Date.now(),m=e=>{if(e){const t=e.changedTouches;if(t&&t.length>0){const e=t[0];return{x:e.clientX,y:e.clientY}}if(void 0!==e.pageX)return{x:e.pageX,y:e.pageY}}return{x:0,y:0}},b=e=>{const t="rtl"===document.dir;switch(e){case"start":return t;case"end":return!t;default:throw new Error(`"${e}" is not a valid value for [side]. Use "start" or "end" instead.`)}},v=(e,t)=>{const n=e._original||e;return{_original:e,emit:y(n.emit.bind(n),t)}},y=(e,t=0)=>{let n;return(...i)=>{clearTimeout(n),n=setTimeout(e,t,...i)}}},"39oe":function(e,t,n){"use strict";n.d(t,"a",function(){return i});const i=e=>{try{if(e instanceof class{constructor(e){this.value=e}})return e.value;if(!r()||"string"!=typeof e||""===e)return e;const t=document.createDocumentFragment(),n=document.createElement("div");t.appendChild(n),n.innerHTML=e,l.forEach(e=>{const n=t.querySelectorAll(e);for(let i=n.length-1;i>=0;i--){const e=n[i];e.parentNode?e.parentNode.removeChild(e):t.removeChild(e);const r=o(e);for(let t=0;t<r.length;t++)s(r[t])}});const i=o(t);for(let e=0;e<i.length;e++)s(i[e]);const a=document.createElement("div");a.appendChild(t);const c=a.querySelector("div");return null!==c?c.innerHTML:a.innerHTML}catch(t){return console.error(t),""}},s=e=>{if(e.nodeType&&1!==e.nodeType)return;for(let n=e.attributes.length-1;n>=0;n--){const t=e.attributes.item(n),i=t.name;if(!a.includes(i.toLowerCase())){e.removeAttribute(i);continue}const s=t.value;null!=s&&s.toLowerCase().includes("javascript:")&&e.removeAttribute(i)}const t=o(e);for(let n=0;n<t.length;n++)s(t[n])},o=e=>null!=e.children?e.children:e.childNodes,r=()=>{const e=window,t=e&&e.Ionic&&e.Ionic.config;return!t||(t.get?t.get("sanitizerEnabled",!0):!0===t.sanitizerEnabled||void 0===t.sanitizerEnabled)},a=["class","id","href","src","name","slot"],l=["script","style","iframe","meta","link","object","embed"]},"7OTs":function(e,t,n){"use strict";n.d(t,"a",function(){return I}),n.d(t,"b",function(){return c}),n.d(t,"c",function(){return d}),n.d(t,"d",function(){return g}),n.d(t,"e",function(){return A}),n.d(t,"f",function(){return m}),n.d(t,"g",function(){return S}),n.d(t,"h",function(){return E}),n.d(t,"i",function(){return a}),n.d(t,"j",function(){return O}),n.d(t,"k",function(){return u}),n.d(t,"l",function(){return h}),n.d(t,"m",function(){return p}),n.d(t,"n",function(){return T}),n.d(t,"o",function(){return f});var i=n("E/Mt"),s=n("B4Jq"),o=n("1vRN");let r=0;const a=new WeakMap,l=e=>({create:t=>b(e,t),dismiss:(t,n,i)=>_(document,t,n,e,i),getTop:async()=>x(document,e)}),c=l("ion-alert"),d=l("ion-action-sheet"),u=l("ion-loading"),h=l("ion-modal"),p=l("ion-picker"),g=l("ion-popover"),f=l("ion-toast"),m=e=>{"undefined"!=typeof document&&w(document);const t=r++;e.overlayIndex=t,e.hasAttribute("id")||(e.id="ion-overlay-"+t)},b=(e,t)=>"undefined"!=typeof customElements?customElements.whenDefined(e).then(()=>{const n=document.createElement(e);return n.classList.add("overlay-hidden"),Object.assign(n,t),k(document).appendChild(n),new Promise(e=>Object(o.c)(n,e))}):Promise.resolve(),v='[tabindex]:not([tabindex^="-"]), input:not([type=hidden]):not([tabindex^="-"]), textarea:not([tabindex^="-"]), button:not([tabindex^="-"]), select:not([tabindex^="-"]), .ion-focusable:not([tabindex^="-"])',y="input:not([type=hidden]), textarea, button, select",w=e=>{0===r&&(r=1,e.addEventListener("focus",t=>((e,t)=>{const n=x(t),i=e.target;if(n&&i)if(n===i)n.lastFocus=void 0;else{const e=Object(o.g)(n);if(!e.contains(i))return;const s=e.querySelector(".ion-overlay-wrapper");if(!s)return;if(s.contains(i))n.lastFocus=i;else{const e=n.lastFocus;((e,t)=>{let n=e.querySelector(v);const i=n&&n.shadowRoot;i&&(n=i.querySelector(y)||n),n?n.focus():t.focus()})(s,n),e===t.activeElement&&((e,t)=>{const n=Array.from(e.querySelectorAll(v));let i=n.length>0?n[n.length-1]:null;const s=i&&i.shadowRoot;s&&(i=s.querySelector(y)||i),i?i.focus():t.focus()})(s,n),n.lastFocus=t.activeElement}}})(t,e),!0),e.addEventListener("ionBackButton",t=>{const n=x(e);n&&n.backdropDismiss&&t.detail.register(s.OVERLAY_BACK_BUTTON_PRIORITY,()=>n.dismiss(void 0,I))}),e.addEventListener("keyup",t=>{if("Escape"===t.key){const t=x(e);t&&t.backdropDismiss&&t.dismiss(void 0,I)}}))},_=(e,t,n,i,s)=>{const o=x(e,i,s);return o?o.dismiss(t,n):Promise.reject("overlay does not exist")},x=(e,t,n)=>{const i=((e,t)=>(void 0===t&&(t="ion-alert,ion-action-sheet,ion-loading,ion-modal,ion-picker,ion-popover,ion-toast"),Array.from(e.querySelectorAll(t)).filter(e=>e.overlayIndex>0)))(e,t);return void 0===n?i[i.length-1]:i.find(e=>e.id===n)},A=async(e,t,n,s,o)=>{if(e.presented)return;e.presented=!0,e.willPresent.emit();const r=Object(i.b)(e),a=e.enterAnimation?e.enterAnimation:i.c.get(t,"ios"===r?n:s);await P(e,a,e.el,o)&&e.didPresent.emit(),"ION-TOAST"!==e.el.tagName&&C(e.el),e.keyboardClose&&e.el.focus()},C=async e=>{let t=document.activeElement;if(!t)return;const n=t&&t.shadowRoot;n&&(t=n.querySelector(y)||t),await e.onDidDismiss(),t.focus()},S=async(e,t,n,s,o,r,l)=>{if(!e.presented)return!1;e.presented=!1;try{e.el.style.setProperty("pointer-events","none"),e.willDismiss.emit({data:t,role:n});const c=Object(i.b)(e),d=e.leaveAnimation?e.leaveAnimation:i.c.get(s,"ios"===c?o:r);"gesture"!==n&&await P(e,d,e.el,l),e.didDismiss.emit({data:t,role:n}),a.delete(e)}catch(c){console.error(c)}return e.el.remove(),!0},k=e=>e.querySelector("ion-app")||e.body,P=async(e,t,n,s)=>{n.classList.remove("overlay-hidden");const o=t(n.shadowRoot||e.el,s);e.animated&&i.c.getBoolean("animated",!0)||o.duration(0),e.keyboardClose&&o.beforeAddWrite(()=>{const e=n.ownerDocument.activeElement;e&&e.matches("input, ion-input, ion-textarea")&&e.blur()});const r=a.get(e)||[];return a.set(e,[...r,o]),await o.play(),!0},E=(e,t)=>{let n;const i=new Promise(e=>n=e);return D(e,t,e=>{n(e.detail)}),i},D=(e,t,n)=>{const i=s=>{Object(o.b)(e,t,i),n(s)};Object(o.a)(e,t,i)},O=e=>"cancel"===e||e===I,M=e=>e(),T=(e,t)=>{if("function"==typeof e)return i.c.get("_zoneGate",M)(()=>{try{return e(t)}catch(n){console.error(n)}})},I="backdrop"},B4Jq:function(e,t,n){"use strict";n.r(t),n.d(t,"MENU_BACK_BUTTON_PRIORITY",function(){return r}),n.d(t,"OVERLAY_BACK_BUTTON_PRIORITY",function(){return o}),n.d(t,"blockHardwareBackButton",function(){return i}),n.d(t,"startHardwareBackButton",function(){return s});const i=()=>{document.addEventListener("backbutton",()=>{})},s=()=>{const e=document;let t=!1;e.addEventListener("backbutton",()=>{if(t)return;let n=0,i=[];const s=new CustomEvent("ionBackButton",{bubbles:!1,detail:{register(e,t){i.push({priority:e,handler:t,id:n++})}}});e.dispatchEvent(s);const o=()=>{if(i.length>0){let e={priority:Number.MIN_SAFE_INTEGER,handler:()=>{},id:-1};i.forEach(t=>{t.priority>=e.priority&&(e=t)}),t=!0,i=i.filter(t=>t.id!==e.id),(async e=>{try{if(e&&e.handler){const t=e.handler(o);null!=t&&await t}}catch(t){console.error(t)}})(e).then(()=>t=!1)}};o()})},o=100,r=99},"E/Mt":function(e,t,n){"use strict";n.d(t,"a",function(){return o}),n.d(t,"b",function(){return w}),n.d(t,"c",function(){return v}),n.d(t,"d",function(){return s}),n.d(t,"e",function(){return _});var i=n("wEJo");const s=e=>r(e),o=(e,t)=>("string"==typeof e&&(t=e,e=void 0),s(e).includes(t)),r=(e=window)=>{if(void 0===e)return[];e.Ionic=e.Ionic||{};let t=e.Ionic.platforms;return null==t&&(t=e.Ionic.platforms=a(e),t.forEach(t=>e.document.documentElement.classList.add("plt-"+t))),t},a=e=>Object.keys(m).filter(t=>m[t](e)),l=e=>!!g(e,/iPad/i)||!(!g(e,/Macintosh/i)||!d(e)),c=e=>g(e,/android|sink/i),d=e=>f(e,"(any-pointer:coarse)"),u=e=>h(e)||p(e),h=e=>!!(e.cordova||e.phonegap||e.PhoneGap),p=e=>{const t=e.Capacitor;return!(!t||!t.isNative)},g=(e,t)=>t.test(e.navigator.userAgent),f=(e,t)=>e.matchMedia(t).matches,m={ipad:l,iphone:e=>g(e,/iPhone/i),ios:e=>g(e,/iPhone|iPod/i)||l(e),android:c,phablet:e=>{const t=e.innerWidth,n=e.innerHeight,i=Math.min(t,n),s=Math.max(t,n);return i>390&&i<520&&s>620&&s<800},tablet:e=>{const t=e.innerWidth,n=e.innerHeight,i=Math.min(t,n),s=Math.max(t,n);return l(e)||(e=>c(e)&&!g(e,/mobile/i))(e)||i>460&&i<820&&s>780&&s<1400},cordova:h,capacitor:p,electron:e=>g(e,/electron/i),pwa:e=>!(!e.matchMedia("(display-mode: standalone)").matches&&!e.navigator.standalone),mobile:d,mobileweb:e=>d(e)&&!u(e),desktop:e=>!d(e),hybrid:u};class b{constructor(){this.m=new Map}reset(e){this.m=new Map(Object.entries(e))}get(e,t){const n=this.m.get(e);return void 0!==n?n:t}getBoolean(e,t=!1){const n=this.m.get(e);return void 0===n?t:"string"==typeof n?"true"===n:!!n}getNumber(e,t){const n=parseFloat(this.m.get(e));return isNaN(n)?void 0!==t?t:NaN:n}set(e,t){this.m.set(e,t)}}const v=new b;let y;const w=e=>e&&Object(i.i)(e)||y,_=(e={})=>{if("undefined"==typeof window)return;const t=window.document,n=window,s=n.Ionic=n.Ionic||{};r(n);const a=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(e=>{try{const t=e.sessionStorage.getItem("ionic-persist-config");return null!==t?JSON.parse(t):{}}catch(t){return{}}})(n)),{persistConfig:!1}),s.config),(e=>{const t={};return e.location.search.slice(1).split("&").map(e=>e.split("=")).map(([e,t])=>[decodeURIComponent(e),decodeURIComponent(t)]).filter(([e])=>"ionic:"===e.substr(0,"ionic:".length)).map(([e,t])=>[e.slice("ionic:".length),t]).forEach(([e,n])=>{t[e]=n}),t})(n)),e);v.reset(a),v.getBoolean("persistConfig")&&((e,t)=>{try{e.sessionStorage.setItem("ionic-persist-config",JSON.stringify(t))}catch(n){return}})(n,a),s.config=v,s.mode=y=v.get("mode",t.documentElement.getAttribute("mode")||(o(n,"ios")?"ios":"md")),v.set("mode",y),t.documentElement.setAttribute("mode",y),t.documentElement.classList.add(y),v.getBoolean("_testing")&&v.set("animated",!1);const l=e=>e.tagName&&e.tagName.startsWith("ION-"),c=e=>["ios","md"].includes(e);Object(i.p)(e=>{for(;e;){const t=e.mode||e.getAttribute("mode");if(t){if(c(t))return t;l(e)&&console.warn('Invalid ionic mode: "'+t+'", expected: "ios" or "md"')}e=e.parentElement}return y})}},Hfs6:function(e,t,n){var i,s,o;!function(r){if("object"==typeof e.exports){var a=r(0,t);void 0!==a&&(e.exports=a)}else s=[n,t],void 0===(o="function"==typeof(i=r)?i.apply(t,s):i)||(e.exports=o)}(function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=void 0;t.default=["fr",[["AM","PM"],n,n],n,[["D","L","M","M","J","V","S"],["dim.","lun.","mar.","mer.","jeu.","ven.","sam."],["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"],["di","lu","ma","me","je","ve","sa"]],n,[["J","F","M","A","M","J","J","A","S","O","N","D"],["janv.","f\xe9vr.","mars","avr.","mai","juin","juil.","ao\xfbt","sept.","oct.","nov.","d\xe9c."],["janvier","f\xe9vrier","mars","avril","mai","juin","juillet","ao\xfbt","septembre","octobre","novembre","d\xe9cembre"]],n,[["av. J.-C.","ap. J.-C."],n,["avant J\xe9sus-Christ","apr\xe8s J\xe9sus-Christ"]],1,[6,0],["dd/MM/y","d MMM y","d MMMM y","EEEE d MMMM y"],["HH:mm","HH:mm:ss","HH:mm:ss z","HH:mm:ss zzzz"],["{1} {0}","{1} '\xe0' {0}",n,n],[",","\u202f",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0\xa0%","#,##0.00\xa0\xa4","#E0"],"EUR","\u20ac","euro",{ARS:["$AR","$"],AUD:["$AU","$"],BEF:["FB"],BMD:["$BM","$"],BND:["$BN","$"],BZD:["$BZ","$"],CAD:["$CA","$"],CLP:["$CL","$"],CNY:[n,"\xa5"],COP:["$CO","$"],CYP:["\xa3CY"],EGP:[n,"\xa3E"],FJD:["$FJ","$"],FKP:["\xa3FK","\xa3"],FRF:["F"],GBP:["\xa3GB","\xa3"],GIP:["\xa3GI","\xa3"],HKD:[n,"$"],IEP:["\xa3IE"],ILP:["\xa3IL"],ITL:["\u20a4IT"],JPY:[n,"\xa5"],KMF:[n,"FC"],LBP:["\xa3LB","\xa3L"],MTP:["\xa3MT"],MXN:["$MX","$"],NAD:["$NA","$"],NIO:[n,"$C"],NZD:["$NZ","$"],RHD:["$RH"],RON:[n,"L"],RWF:[n,"FR"],SBD:["$SB","$"],SGD:["$SG","$"],SRD:["$SR","$"],TOP:[n,"$T"],TTD:["$TT","$"],TWD:[n,"NT$"],USD:["$US","$"],UYU:["$UY","$"],WST:["$WS"],XCD:[n,"$"],XPF:["FCFP"],ZMW:[n,"Kw"]},"ltr",function(e){var t=Math.floor(Math.abs(e));return 0===t||1===t?1:5}]})},MYvV:function(e,t){function n(e){return Promise.resolve().then(function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t})}n.keys=function(){return[]},n.resolve=n,e.exports=n,n.id="MYvV"},RQGG:function(e,t,n){"use strict";n.r(t),n.d(t,"mdTransitionAnimation",function(){return o});var i=n("meiF"),s=n("k4ps");n("1vRN"),n("wEJo");const o=(e,t)=>{const n="back"===t.direction,o=t.enteringEl,r=t.leavingEl,a=Object(s.g)(o),l=a.querySelector("ion-toolbar"),c=Object(i.a)();if(c.addElement(a).fill("both").beforeRemoveClass("ion-page-invisible"),n?c.duration(t.duration||200).easing("cubic-bezier(0.47,0,0.745,0.715)"):c.duration(t.duration||280).easing("cubic-bezier(0.36,0.66,0.04,1)").fromTo("transform","translateY(40px)","translateY(0px)").fromTo("opacity",.01,1),l){const e=Object(i.a)();e.addElement(l),c.addAnimation(e)}if(r&&n){c.duration(t.duration||200).easing("cubic-bezier(0.47,0,0.745,0.715)");const e=Object(i.a)();e.addElement(Object(s.g)(r)).onFinish(t=>{1===t&&e.elements.length>0&&e.elements[0].style.setProperty("display","none")}).fromTo("transform","translateY(0px)","translateY(40px)").fromTo("opacity",1,0),c.addAnimation(e)}return c}},b0Xh:function(e,t,i){var s;(function(){var i=function(e){return e instanceof i?e:this instanceof i?void(this.EXIFwrapped=e):new i(e)};e.exports&&(t=e.exports=i),t.EXIF=i;var o=i.Tags={36864:"ExifVersion",40960:"FlashpixVersion",40961:"ColorSpace",40962:"PixelXDimension",40963:"PixelYDimension",37121:"ComponentsConfiguration",37122:"CompressedBitsPerPixel",37500:"MakerNote",37510:"UserComment",40964:"RelatedSoundFile",36867:"DateTimeOriginal",36868:"DateTimeDigitized",37520:"SubsecTime",37521:"SubsecTimeOriginal",37522:"SubsecTimeDigitized",33434:"ExposureTime",33437:"FNumber",34850:"ExposureProgram",34852:"SpectralSensitivity",34855:"ISOSpeedRatings",34856:"OECF",37377:"ShutterSpeedValue",37378:"ApertureValue",37379:"BrightnessValue",37380:"ExposureBias",37381:"MaxApertureValue",37382:"SubjectDistance",37383:"MeteringMode",37384:"LightSource",37385:"Flash",37396:"SubjectArea",37386:"FocalLength",41483:"FlashEnergy",41484:"SpatialFrequencyResponse",41486:"FocalPlaneXResolution",41487:"FocalPlaneYResolution",41488:"FocalPlaneResolutionUnit",41492:"SubjectLocation",41493:"ExposureIndex",41495:"SensingMethod",41728:"FileSource",41729:"SceneType",41730:"CFAPattern",41985:"CustomRendered",41986:"ExposureMode",41987:"WhiteBalance",41988:"DigitalZoomRation",41989:"FocalLengthIn35mmFilm",41990:"SceneCaptureType",41991:"GainControl",41992:"Contrast",41993:"Saturation",41994:"Sharpness",41995:"DeviceSettingDescription",41996:"SubjectDistanceRange",40965:"InteroperabilityIFDPointer",42016:"ImageUniqueID"},r=i.TiffTags={256:"ImageWidth",257:"ImageHeight",34665:"ExifIFDPointer",34853:"GPSInfoIFDPointer",40965:"InteroperabilityIFDPointer",258:"BitsPerSample",259:"Compression",262:"PhotometricInterpretation",274:"Orientation",277:"SamplesPerPixel",284:"PlanarConfiguration",530:"YCbCrSubSampling",531:"YCbCrPositioning",282:"XResolution",283:"YResolution",296:"ResolutionUnit",273:"StripOffsets",278:"RowsPerStrip",279:"StripByteCounts",513:"JPEGInterchangeFormat",514:"JPEGInterchangeFormatLength",301:"TransferFunction",318:"WhitePoint",319:"PrimaryChromaticities",529:"YCbCrCoefficients",532:"ReferenceBlackWhite",306:"DateTime",270:"ImageDescription",271:"Make",272:"Model",305:"Software",315:"Artist",33432:"Copyright"},a=i.GPSTags={0:"GPSVersionID",1:"GPSLatitudeRef",2:"GPSLatitude",3:"GPSLongitudeRef",4:"GPSLongitude",5:"GPSAltitudeRef",6:"GPSAltitude",7:"GPSTimeStamp",8:"GPSSatellites",9:"GPSStatus",10:"GPSMeasureMode",11:"GPSDOP",12:"GPSSpeedRef",13:"GPSSpeed",14:"GPSTrackRef",15:"GPSTrack",16:"GPSImgDirectionRef",17:"GPSImgDirection",18:"GPSMapDatum",19:"GPSDestLatitudeRef",20:"GPSDestLatitude",21:"GPSDestLongitudeRef",22:"GPSDestLongitude",23:"GPSDestBearingRef",24:"GPSDestBearing",25:"GPSDestDistanceRef",26:"GPSDestDistance",27:"GPSProcessingMethod",28:"GPSAreaInformation",29:"GPSDateStamp",30:"GPSDifferential"},l=i.IFD1Tags={256:"ImageWidth",257:"ImageHeight",258:"BitsPerSample",259:"Compression",262:"PhotometricInterpretation",273:"StripOffsets",274:"Orientation",277:"SamplesPerPixel",278:"RowsPerStrip",279:"StripByteCounts",282:"XResolution",283:"YResolution",284:"PlanarConfiguration",296:"ResolutionUnit",513:"JpegIFOffset",514:"JpegIFByteCount",529:"YCbCrCoefficients",530:"YCbCrSubSampling",531:"YCbCrPositioning",532:"ReferenceBlackWhite"},c=i.StringValues={ExposureProgram:{0:"Not defined",1:"Manual",2:"Normal program",3:"Aperture priority",4:"Shutter priority",5:"Creative program",6:"Action program",7:"Portrait mode",8:"Landscape mode"},MeteringMode:{0:"Unknown",1:"Average",2:"CenterWeightedAverage",3:"Spot",4:"MultiSpot",5:"Pattern",6:"Partial",255:"Other"},LightSource:{0:"Unknown",1:"Daylight",2:"Fluorescent",3:"Tungsten (incandescent light)",4:"Flash",9:"Fine weather",10:"Cloudy weather",11:"Shade",12:"Daylight fluorescent (D 5700 - 7100K)",13:"Day white fluorescent (N 4600 - 5400K)",14:"Cool white fluorescent (W 3900 - 4500K)",15:"White fluorescent (WW 3200 - 3700K)",17:"Standard light A",18:"Standard light B",19:"Standard light C",20:"D55",21:"D65",22:"D75",23:"D50",24:"ISO studio tungsten",255:"Other"},Flash:{0:"Flash did not fire",1:"Flash fired",5:"Strobe return light not detected",7:"Strobe return light detected",9:"Flash fired, compulsory flash mode",13:"Flash fired, compulsory flash mode, return light not detected",15:"Flash fired, compulsory flash mode, return light detected",16:"Flash did not fire, compulsory flash mode",24:"Flash did not fire, auto mode",25:"Flash fired, auto mode",29:"Flash fired, auto mode, return light not detected",31:"Flash fired, auto mode, return light detected",32:"No flash function",65:"Flash fired, red-eye reduction mode",69:"Flash fired, red-eye reduction mode, return light not detected",71:"Flash fired, red-eye reduction mode, return light detected",73:"Flash fired, compulsory flash mode, red-eye reduction mode",77:"Flash fired, compulsory flash mode, red-eye reduction mode, return light not detected",79:"Flash fired, compulsory flash mode, red-eye reduction mode, return light detected",89:"Flash fired, auto mode, red-eye reduction mode",93:"Flash fired, auto mode, return light not detected, red-eye reduction mode",95:"Flash fired, auto mode, return light detected, red-eye reduction mode"},SensingMethod:{1:"Not defined",2:"One-chip color area sensor",3:"Two-chip color area sensor",4:"Three-chip color area sensor",5:"Color sequential area sensor",7:"Trilinear sensor",8:"Color sequential linear sensor"},SceneCaptureType:{0:"Standard",1:"Landscape",2:"Portrait",3:"Night scene"},SceneType:{1:"Directly photographed"},CustomRendered:{0:"Normal process",1:"Custom process"},WhiteBalance:{0:"Auto white balance",1:"Manual white balance"},GainControl:{0:"None",1:"Low gain up",2:"High gain up",3:"Low gain down",4:"High gain down"},Contrast:{0:"Normal",1:"Soft",2:"Hard"},Saturation:{0:"Normal",1:"Low saturation",2:"High saturation"},Sharpness:{0:"Normal",1:"Soft",2:"Hard"},SubjectDistanceRange:{0:"Unknown",1:"Macro",2:"Close view",3:"Distant view"},FileSource:{3:"DSC"},Components:{0:"",1:"Y",2:"Cb",3:"Cr",4:"R",5:"G",6:"B"}};function d(e){return!!e.exifdata}function u(e){var t=new DataView(e);if(255!=t.getUint8(0)||216!=t.getUint8(1))return!1;for(var n=2,i=e.byteLength;n<i;){if(255!=t.getUint8(n))return!1;if(225==t.getUint8(n+1))return b(t,n+4,t.getUint16(n+2));n+=2+t.getUint16(n+2)}}var h={120:"caption",110:"credit",25:"keywords",55:"dateCreated",80:"byline",85:"bylineTitle",122:"captionWriter",105:"headline",116:"copyright",15:"category"};function p(e,t,n){for(var i,s,o,r,a=new DataView(e),l={},c=t;c<t+n;)28===a.getUint8(c)&&2===a.getUint8(c+1)&&(r=a.getUint8(c+2))in h&&(o=a.getInt16(c+3),s=h[r],i=m(a,c+5,o),l.hasOwnProperty(s)?l[s]instanceof Array?l[s].push(i):l[s]=[l[s],i]:l[s]=i),c++;return l}function g(e,t,n,i,s){var o,r,a=e.getUint16(n,!s),l={};for(r=0;r<a;r++)l[i[e.getUint16(o=n+12*r+2,!s)]]=f(e,o,t,0,s);return l}function f(e,t,n,i,s){var o,r,a,l,c,d,u=e.getUint16(t+2,!s),h=e.getUint32(t+4,!s),p=e.getUint32(t+8,!s)+n;switch(u){case 1:case 7:if(1==h)return e.getUint8(t+8,!s);for(o=h>4?p:t+8,r=[],l=0;l<h;l++)r[l]=e.getUint8(o+l);return r;case 2:return m(e,o=h>4?p:t+8,h-1);case 3:if(1==h)return e.getUint16(t+8,!s);for(o=h>2?p:t+8,r=[],l=0;l<h;l++)r[l]=e.getUint16(o+2*l,!s);return r;case 4:if(1==h)return e.getUint32(t+8,!s);for(r=[],l=0;l<h;l++)r[l]=e.getUint32(p+4*l,!s);return r;case 5:if(1==h)return c=e.getUint32(p,!s),d=e.getUint32(p+4,!s),(a=new Number(c/d)).numerator=c,a.denominator=d,a;for(r=[],l=0;l<h;l++)c=e.getUint32(p+8*l,!s),d=e.getUint32(p+4+8*l,!s),r[l]=new Number(c/d),r[l].numerator=c,r[l].denominator=d;return r;case 9:if(1==h)return e.getInt32(t+8,!s);for(r=[],l=0;l<h;l++)r[l]=e.getInt32(p+4*l,!s);return r;case 10:if(1==h)return e.getInt32(p,!s)/e.getInt32(p+4,!s);for(r=[],l=0;l<h;l++)r[l]=e.getInt32(p+8*l,!s)/e.getInt32(p+4+8*l,!s);return r}}function m(e,t,i){var s="";for(n=t;n<t+i;n++)s+=String.fromCharCode(e.getUint8(n));return s}function b(e,t){if("Exif"!=m(e,t,4))return!1;var n,i,s,d,u,h=t+6;if(18761==e.getUint16(h))n=!1;else{if(19789!=e.getUint16(h))return!1;n=!0}if(42!=e.getUint16(h+2,!n))return!1;var p=e.getUint32(h+4,!n);if(p<8)return!1;if((i=g(e,h,h+p,r,n)).ExifIFDPointer)for(s in d=g(e,h,h+i.ExifIFDPointer,o,n)){switch(s){case"LightSource":case"Flash":case"MeteringMode":case"ExposureProgram":case"SensingMethod":case"SceneCaptureType":case"SceneType":case"CustomRendered":case"WhiteBalance":case"GainControl":case"Contrast":case"Saturation":case"Sharpness":case"SubjectDistanceRange":case"FileSource":d[s]=c[s][d[s]];break;case"ExifVersion":case"FlashpixVersion":d[s]=String.fromCharCode(d[s][0],d[s][1],d[s][2],d[s][3]);break;case"ComponentsConfiguration":d[s]=c.Components[d[s][0]]+c.Components[d[s][1]]+c.Components[d[s][2]]+c.Components[d[s][3]]}i[s]=d[s]}if(i.GPSInfoIFDPointer)for(s in u=g(e,h,h+i.GPSInfoIFDPointer,a,n)){switch(s){case"GPSVersionID":u[s]=u[s][0]+"."+u[s][1]+"."+u[s][2]+"."+u[s][3]}i[s]=u[s]}return i.thumbnail=function(e,t,n,i){var s=function(e,t,n){var i=e.getUint16(t,!n);return e.getUint32(t+2+12*i,!n)}(e,t+n,i);if(!s)return{};if(s>e.byteLength)return{};var o=g(e,t,t+s,l,i);if(o.Compression)switch(o.Compression){case 6:o.JpegIFOffset&&o.JpegIFByteCount&&(o.blob=new Blob([new Uint8Array(e.buffer,t+o.JpegIFOffset,o.JpegIFByteCount)],{type:"image/jpeg"}));break;case 1:console.log("Thumbnail image format is TIFF, which is not implemented.");break;default:console.log("Unknown thumbnail image format '%s'",o.Compression)}else 2==o.PhotometricInterpretation&&console.log("Thumbnail image format is RGB, which is not implemented.");return o}(e,h,p,n),i}function v(e){var t={};if(1==e.nodeType){if(e.attributes.length>0){t["@attributes"]={};for(var n=0;n<e.attributes.length;n++){var i=e.attributes.item(n);t["@attributes"][i.nodeName]=i.nodeValue}}}else if(3==e.nodeType)return e.nodeValue;if(e.hasChildNodes())for(var s=0;s<e.childNodes.length;s++){var o=e.childNodes.item(s),r=o.nodeName;if(null==t[r])t[r]=v(o);else{if(null==t[r].push){var a=t[r];t[r]=[],t[r].push(a)}t[r].push(v(o))}}return t}function y(e){try{var t={};if(e.children.length>0)for(var n=0;n<e.children.length;n++){var i=e.children.item(n),s=i.attributes;for(var o in s){var r=s[o],a=r.nodeName;void 0!==a&&(t[a]=r.nodeValue)}var l=i.nodeName;if(void 0===t[l])t[l]=v(i);else{if(void 0===t[l].push){var c=t[l];t[l]=[],t[l].push(c)}t[l].push(v(i))}}else t=e.textContent;return t}catch(d){console.log(d.message)}}i.enableXmp=function(){i.isXmpEnabled=!0},i.disableXmp=function(){i.isXmpEnabled=!1},i.getData=function(e,t){return!((self.Image&&e instanceof self.Image||self.HTMLImageElement&&e instanceof self.HTMLImageElement)&&!e.complete||(d(e)?t&&t.call(e):function(e,t){function n(n){var s=u(n);e.exifdata=s||{};var o=function(e){var t=new DataView(e);if(255!=t.getUint8(0)||216!=t.getUint8(1))return!1;for(var n=2,i=e.byteLength,s=function(e,t){return 56===e.getUint8(t)&&66===e.getUint8(t+1)&&73===e.getUint8(t+2)&&77===e.getUint8(t+3)&&4===e.getUint8(t+4)&&4===e.getUint8(t+5)};n<i;){if(s(t,n)){var o=t.getUint8(n+7);return o%2!=0&&(o+=1),0===o&&(o=4),p(e,n+8+o,t.getUint16(n+6+o))}n++}}(n);if(e.iptcdata=o||{},i.isXmpEnabled){var r=function(e){if("DOMParser"in self){var t=new DataView(e);if(255!=t.getUint8(0)||216!=t.getUint8(1))return!1;for(var n=2,i=e.byteLength,s=new DOMParser;n<i-4;){if("http"==m(t,n,4)){var o=n-1,r=t.getUint16(n-2)-1,a=m(t,o,r),l=a.indexOf("xmpmeta>")+8,c=(a=a.substring(a.indexOf("<x:xmpmeta"),l)).indexOf("x:xmpmeta")+10;return a=a.slice(0,c)+'xmlns:Iptc4xmpCore="http://iptc.org/std/Iptc4xmpCore/1.0/xmlns/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tiff="http://ns.adobe.com/tiff/1.0/" xmlns:plus="http://schemas.android.com/apk/lib/com.google.android.gms.plus" xmlns:ext="http://www.gettyimages.com/xsltExtension/1.0" xmlns:exif="http://ns.adobe.com/exif/1.0/" xmlns:stEvt="http://ns.adobe.com/xap/1.0/sType/ResourceEvent#" xmlns:stRef="http://ns.adobe.com/xap/1.0/sType/ResourceRef#" xmlns:crs="http://ns.adobe.com/camera-raw-settings/1.0/" xmlns:xapGImg="http://ns.adobe.com/xap/1.0/g/img/" xmlns:Iptc4xmpExt="http://iptc.org/std/Iptc4xmpExt/2008-02-29/" '+a.slice(c),y(s.parseFromString(a,"text/xml"))}n++}}}(n);e.xmpdata=r||{}}t&&t.call(e)}if(e.src)if(/^data\:/i.test(e.src))n(function(e,t){t=t||e.match(/^data\:([^\;]+)\;base64,/im)[1]||"",e=e.replace(/^data\:([^\;]+)\;base64,/gim,"");for(var n=atob(e),i=n.length,s=new ArrayBuffer(i),o=new Uint8Array(s),r=0;r<i;r++)o[r]=n.charCodeAt(r);return s}(e.src));else if(/^blob\:/i.test(e.src))(o=new FileReader).onload=function(e){n(e.target.result)},function(e,t){var n=new XMLHttpRequest;n.open("GET",e,!0),n.responseType="blob",n.onload=function(e){200!=this.status&&0!==this.status||o.readAsArrayBuffer(this.response)},n.send()}(e.src);else{var s=new XMLHttpRequest;s.onload=function(){if(200!=this.status&&0!==this.status)throw"Could not load image";n(s.response),s=null},s.open("GET",e.src,!0),s.responseType="arraybuffer",s.send(null)}else if(self.FileReader&&(e instanceof self.Blob||e instanceof self.File)){var o;(o=new FileReader).onload=function(e){n(e.target.result)},o.readAsArrayBuffer(e)}}(e,t),0))},i.getTag=function(e,t){if(d(e))return e.exifdata[t]},i.getIptcTag=function(e,t){if(d(e))return e.iptcdata[t]},i.getAllTags=function(e){if(!d(e))return{};var t,n=e.exifdata,i={};for(t in n)n.hasOwnProperty(t)&&(i[t]=n[t]);return i},i.getAllIptcTags=function(e){if(!d(e))return{};var t,n=e.iptcdata,i={};for(t in n)n.hasOwnProperty(t)&&(i[t]=n[t]);return i},i.pretty=function(e){if(!d(e))return"";var t,n=e.exifdata,i="";for(t in n)n.hasOwnProperty(t)&&(i+="object"==typeof n[t]?n[t]instanceof Number?t+" : "+n[t]+" ["+n[t].numerator+"/"+n[t].denominator+"]\r\n":t+" : ["+n[t].length+" values]\r\n":t+" : "+n[t]+"\r\n");return i},i.readFromBinaryFile=function(e){return u(e)},void 0===(s=(function(){return i}).apply(t,[]))||(e.exports=s)}).call(this)},bC4P:function(e,t,n){"use strict";n.d(t,"a",function(){return i});const i=(e,t,n,i,r)=>o(e[1],t[1],n[1],i[1],r).map(o=>s(e[0],t[0],n[0],i[0],o)),s=(e,t,n,i,s)=>s*(3*t*Math.pow(s-1,2)+s*(-3*n*s+3*n+i*s))-e*Math.pow(s-1,3),o=(e,t,n,i,s)=>r((i-=s)-3*(n-=s)+3*(t-=s)-(e-=s),3*n-6*t+3*e,3*t-3*e,e).filter(e=>e>=0&&e<=1),r=(e,t,n,i)=>{if(0===e)return((e,t,n)=>{const i=t*t-4*e*n;return i<0?[]:[(-t+Math.sqrt(i))/(2*e),(-t-Math.sqrt(i))/(2*e)]})(t,n,i);const s=(3*(n/=e)-(t/=e)*t)/3,o=(2*t*t*t-9*t*n+27*(i/=e))/27;if(0===s)return[Math.pow(-o,1/3)];if(0===o)return[Math.sqrt(-s),-Math.sqrt(-s)];const r=Math.pow(o/2,2)+Math.pow(s/3,3);if(0===r)return[Math.pow(o/2,.5)-t/3];if(r>0)return[Math.pow(-o/2+Math.sqrt(r),1/3)-Math.pow(o/2+Math.sqrt(r),1/3)-t/3];const a=Math.sqrt(Math.pow(-s/3,3)),l=Math.acos(-o/(2*Math.sqrt(Math.pow(-s/3,3)))),c=2*Math.pow(a,1/3);return[c*Math.cos(l/3)-t/3,c*Math.cos((l+2*Math.PI)/3)-t/3,c*Math.cos((l+4*Math.PI)/3)-t/3]}},iWo5:function(e,t,n){"use strict";n.r(t),n.d(t,"createGesture",function(){return l});var i=n("y08P");n.d(t,"GESTURE_CONTROLLER",function(){return i.a});const s=(e,t,n,i)=>{const s=o(e)?{capture:!!i.capture,passive:!!i.passive}:!!i.capture;let r,a;return e.__zone_symbol__addEventListener?(r="__zone_symbol__addEventListener",a="__zone_symbol__removeEventListener"):(r="addEventListener",a="removeEventListener"),e[r](t,n,s),()=>{e[a](t,n,s)}},o=e=>{if(void 0===r)try{const t=Object.defineProperty({},"passive",{get:()=>{r=!0}});e.addEventListener("optsTest",()=>{},t)}catch(t){r=!1}return!!r};let r;const a=e=>e instanceof Document?e:e.ownerDocument,l=e=>{let t=!1,n=!1,o=!0,r=!1;const l=Object.assign({disableScroll:!1,direction:"x",gesturePriority:0,passive:!0,maxAngle:40,threshold:10},e),h=l.canStart,p=l.onWillStart,g=l.onStart,f=l.onEnd,m=l.notCaptured,b=l.onMove,v=l.threshold,y=l.passive,w=l.blurOnStart,_={type:"pan",startX:0,startY:0,startTime:0,currentX:0,currentY:0,velocityX:0,velocityY:0,deltaX:0,deltaY:0,currentTime:0,event:void 0,data:void 0},x=((e,t,n)=>{const i=n*(Math.PI/180),s="x"===e,o=Math.cos(i),r=t*t;let a=0,l=0,c=!1,d=0;return{start(e,t){a=e,l=t,d=0,c=!0},detect(e,t){if(!c)return!1;const n=e-a,i=t-l,u=n*n+i*i;if(u<r)return!1;const h=Math.sqrt(u),p=(s?n:i)/h;return d=p>o?1:p<-o?-1:0,c=!1,!0},isGesture:()=>0!==d,getDirection:()=>d}})(l.direction,l.threshold,l.maxAngle),A=i.a.createGesture({name:e.gestureName,priority:e.gesturePriority,disableScroll:e.disableScroll}),C=()=>{t&&(r=!1,b&&b(_))},S=()=>!(A&&!A.capture()||(t=!0,o=!1,_.startX=_.currentX,_.startY=_.currentY,_.startTime=_.currentTime,p?p(_).then(k):k(),0)),k=()=>{w&&(()=>{if("undefined"!=typeof document){const e=document.activeElement;null!==e&&e.blur&&e.blur()}})(),g&&g(_),o=!0},P=()=>{t=!1,n=!1,r=!1,o=!0,A.release()},E=e=>{const n=t,i=o;P(),i&&(c(_,e),n?f&&f(_):m&&m(_))},D=((e,t,n,i,o)=>{let r,l,c,d,u,h,p,g=0;const f=i=>{g=Date.now()+2e3,t(i)&&(!l&&n&&(l=s(e,"touchmove",n,o)),c||(c=s(e,"touchend",b,o)),d||(d=s(e,"touchcancel",b,o)))},m=i=>{g>Date.now()||t(i)&&(!h&&n&&(h=s(a(e),"mousemove",n,o)),p||(p=s(a(e),"mouseup",v,o)))},b=e=>{y(),i&&i(e)},v=e=>{w(),i&&i(e)},y=()=>{l&&l(),c&&c(),d&&d(),l=c=d=void 0},w=()=>{h&&h(),p&&p(),h=p=void 0},_=()=>{y(),w()},x=(t=!0)=>{t?(r||(r=s(e,"touchstart",f,o)),u||(u=s(e,"mousedown",m,o))):(r&&r(),u&&u(),r=u=void 0,_())};return{enable:x,stop:_,destroy:()=>{x(!1),i=n=t=void 0}}})(l.el,e=>{const t=u(e);return!(n||!o)&&(d(e,_),_.startX=_.currentX,_.startY=_.currentY,_.startTime=_.currentTime=t,_.velocityX=_.velocityY=_.deltaX=_.deltaY=0,_.event=e,(!h||!1!==h(_))&&(A.release(),!!A.start()&&(n=!0,0===v?S():(x.start(_.startX,_.startY),!0))))},e=>{t?!r&&o&&(r=!0,c(_,e),requestAnimationFrame(C)):(c(_,e),x.detect(_.currentX,_.currentY)&&(x.isGesture()&&S()||O()))},E,{capture:!1,passive:y}),O=()=>{P(),D.stop(),m&&m(_)};return{enable(e=!0){e||(t&&E(void 0),P()),D.enable(e)},destroy(){A.destroy(),D.destroy()}}},c=(e,t)=>{if(!t)return;const n=e.currentX,i=e.currentY,s=e.currentTime;d(t,e);const o=e.currentX,r=e.currentY,a=(e.currentTime=u(t))-s;if(a>0&&a<100){const t=(r-i)/a;e.velocityX=(o-n)/a*.7+.3*e.velocityX,e.velocityY=.7*t+.3*e.velocityY}e.deltaX=o-e.startX,e.deltaY=r-e.startY,e.event=t},d=(e,t)=>{let n=0,i=0;if(e){const t=e.changedTouches;if(t&&t.length>0){const e=t[0];n=e.clientX,i=e.clientY}else void 0!==e.pageX&&(n=e.pageX,i=e.pageY)}t.currentX=n,t.currentY=i},u=e=>e.timeStamp||Date.now()},k4ps:function(e,t,n){"use strict";n.d(t,"a",function(){return o}),n.d(t,"b",function(){return r}),n.d(t,"c",function(){return a}),n.d(t,"d",function(){return l}),n.d(t,"e",function(){return c}),n.d(t,"f",function(){return C}),n.d(t,"g",function(){return P}),n.d(t,"h",function(){return x}),n.d(t,"i",function(){return S}),n.d(t,"j",function(){return d});var i=n("wEJo"),s=n("1vRN");const o="ionViewWillEnter",r="ionViewDidEnter",a="ionViewWillLeave",l="ionViewDidLeave",c="ionViewWillUnload",d=e=>new Promise((t,n)=>{Object(i.f)(()=>{u(e),h(e).then(n=>{n.animation&&n.animation.destroy(),p(e),t(n)},t=>{p(e),n(t)})})}),u=e=>{const t=e.enteringEl,n=e.leavingEl;k(t,n,e.direction),e.showGoBack?t.classList.add("can-go-back"):t.classList.remove("can-go-back"),S(t,!1),n&&S(n,!1)},h=async e=>{const t=await g(e);return t&&i.a.isBrowser?f(t,e):m(e)},p=e=>{const t=e.leavingEl;e.enteringEl.classList.remove("ion-page-invisible"),void 0!==t&&t.classList.remove("ion-page-invisible")},g=async e=>{if(e.leavingEl&&e.animated&&0!==e.duration)return e.animationBuilder?e.animationBuilder:"ios"===e.mode?(await Promise.resolve().then(n.bind(null,"lTIg"))).iosTransitionAnimation:(await Promise.resolve().then(n.bind(null,"RQGG"))).mdTransitionAnimation},f=async(e,t)=>{await b(t,!0);const n=e(t.baseEl,t);w(t.enteringEl,t.leavingEl);const i=await y(n,t);return t.progressCallback&&t.progressCallback(void 0),i&&_(t.enteringEl,t.leavingEl),{hasCompleted:i,animation:n}},m=async e=>{const t=e.enteringEl,n=e.leavingEl;return await b(e,!1),w(t,n),_(t,n),{hasCompleted:!0}},b=async(e,t)=>{const n=(void 0!==e.deepWait?e.deepWait:t)?[C(e.enteringEl),C(e.leavingEl)]:[A(e.enteringEl),A(e.leavingEl)];await Promise.all(n),await v(e.viewIsReady,e.enteringEl)},v=async(e,t)=>{e&&await e(t)},y=(e,t)=>{const n=t.progressCallback,i=new Promise(t=>{e.onFinish(e=>t(1===e))});return n?(e.progressStart(!0),n(e)):e.play(),i},w=(e,t)=>{x(t,a),x(e,o)},_=(e,t)=>{x(e,r),x(t,l)},x=(e,t)=>{if(e){const n=new CustomEvent(t,{bubbles:!1,cancelable:!1});e.dispatchEvent(n)}},A=e=>e?new Promise(t=>Object(s.c)(e,t)):Promise.resolve(),C=async e=>{const t=e;if(t){if(null!=t.componentOnReady&&null!=await t.componentOnReady())return;await Promise.all(Array.from(t.children).map(C))}},S=(e,t)=>{t?(e.setAttribute("aria-hidden","true"),e.classList.add("ion-page-hidden")):(e.hidden=!1,e.removeAttribute("aria-hidden"),e.classList.remove("ion-page-hidden"))},k=(e,t,n)=>{void 0!==e&&(e.style.zIndex="back"===n?"99":"101"),void 0!==t&&(t.style.zIndex="100")},P=e=>e.classList.contains("ion-page")?e:e.querySelector(":scope > .ion-page, :scope > ion-nav, :scope > ion-tabs")||e},kLfG:function(e,t,n){var i={"./ion-action-sheet.entry.js":["dUtr",0,12],"./ion-alert.entry.js":["Q8AI",0,13],"./ion-app_8.entry.js":["hgI1",0,14],"./ion-avatar_3.entry.js":["CfoV",0,15],"./ion-back-button.entry.js":["Nt02",0,16],"./ion-backdrop.entry.js":["Q2Bp",17],"./ion-button_2.entry.js":["0Pbj",0,18],"./ion-card_5.entry.js":["ydQj",0,19],"./ion-checkbox.entry.js":["4fMi",0,20],"./ion-chip.entry.js":["czK9",0,21],"./ion-col_3.entry.js":["/CAe",22],"./ion-datetime_3.entry.js":["WgF3",0,23],"./ion-fab_3.entry.js":["uQcF",0,24],"./ion-img.entry.js":["wHD8",25],"./ion-infinite-scroll_2.entry.js":["2lz6",26],"./ion-input.entry.js":["ercB",0,27],"./ion-item-option_3.entry.js":["MGMP",0,28],"./ion-item_8.entry.js":["9bur",0,29],"./ion-loading.entry.js":["cABk",0,30],"./ion-menu_3.entry.js":["kyFE",0,31],"./ion-modal.entry.js":["TvZU",0,32],"./ion-nav_2.entry.js":["vnES",0,33],"./ion-popover.entry.js":["qCuA",0,34],"./ion-progress-bar.entry.js":["0tOe",0,35],"./ion-radio_2.entry.js":["h11V",0,36],"./ion-range.entry.js":["XGij",0,37],"./ion-refresher_2.entry.js":["nYbb",0,38],"./ion-reorder_2.entry.js":["smMY",0,39],"./ion-ripple-effect.entry.js":["STjf",40],"./ion-route_4.entry.js":["k5eQ",0,41],"./ion-searchbar.entry.js":["OR5t",0,42],"./ion-segment_2.entry.js":["fSgp",0,43],"./ion-select_3.entry.js":["lfGF",0,44],"./ion-slide_2.entry.js":["5xYT",45],"./ion-spinner.entry.js":["nI0H",0,46],"./ion-split-pane.entry.js":["NAQR",47],"./ion-tab-bar_2.entry.js":["knkW",0,48],"./ion-tab_2.entry.js":["TpdJ",0,49],"./ion-text.entry.js":["ISmu",0,50],"./ion-textarea.entry.js":["U7LX",0,51],"./ion-toast.entry.js":["L3sA",0,52],"./ion-toggle.entry.js":["IUOf",0,53],"./ion-virtual-scroll.entry.js":["8Mb5",54]};function s(e){if(!n.o(i,e))return Promise.resolve().then(function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t});var t=i[e],s=t[0];return Promise.all(t.slice(1).map(n.e)).then(function(){return n(s)})}s.keys=function(){return Object.keys(i)},s.id="kLfG",e.exports=s},kiQV:function(e){e.exports=JSON.parse('{"name":"parapheur","version":"21.03.7","description":"Annoter ou Signer vos documents sur votre tablette","homepage":"https://labs.maarch.org/maarch/MaarchParapheur","scripts":{"dep-list":"npm list --depth=0","check-update":"ncu","upgrade":"ncu -u","lint":"eslint -c .eslintrc.js --ext .ts src/frontend","lint-fix":"eslint -c .eslintrc.js --ext .ts src/frontend/ --fix","reload-packages":"rm -Rf node_modules && rm package-lock.json && npm cache clean --force && npm i","reload-packages-prod":"rm -Rf node_modules && rm package-lock.json && npm cache clean --force && npm i --production","build":"ng build","build-watch":"ng build --watch","build-prod":"ng build --prod","build-release":"npm run build-prod && npm run reload-packages-prod"},"private":true,"keywords":[],"author":"Maarch","license":"GPL-3.0","dependencies":{"core-js":"3.6.4","tslib":"2.1.0","zone.js":"0.10.2"},"devDependencies":{"@angular-devkit/build-angular":"0.1100.7","@angular-eslint/eslint-plugin":"2.0.2","@angular/animations":"11.2.6","@angular/cdk":"11.2.5","@angular/cli":"11.2.5","@angular/common":"11.2.6","@angular/compiler":"11.2.6","@angular/compiler-cli":"11.2.6","@angular/core":"11.2.6","@angular/forms":"11.2.6","@angular/language-service":"11.2.6","@angular/material":"11.2.5","@angular/platform-browser":"11.2.6","@angular/platform-browser-dynamic":"11.2.6","@angular/router":"11.2.6","@biesbjerg/ngx-translate-extract":"6.0.3","@fortawesome/fontawesome-free":"5.15.3","@ionic/angular":"5.6.3","@ngrx/store":"9.2.1","@ngrx/store-devtools":"9.2.1","@ngx-translate/core":"12.1.2","@ngx-translate/http-loader":"4.0.0","@peculiar/fortify-webcomponents":"0.17.3","@types/hammerjs":"2.0.39","@types/jasmine":"3.6.7","@types/jasminewd2":"2.0.8","@types/jquery":"3.5.5","@types/node":"13.13.47","@typescript-eslint/eslint-plugin":"4.19.0","@typescript-eslint/eslint-plugin-tslint":"4.19.0","@typescript-eslint/parser":"4.19.0","angular2-draggable":"2.3.2","angular2-signaturepad":"3.0.4","codelyzer":"5.1.2","eslint":"7.22.0","eslint-config-prettier":"8.1.0","eslint-plugin-import":"2.22.1","exif-js":"2.3.0","hammerjs":"2.0.8","jquery":"3.6.0","ngx-cookie-service":"3.0.3","ngx-drag-scroll":"9.0.0-beta.4","ngx-extended-pdf-viewer":"5.0.1","ngx-pipes":"2.7.3","npm-check-updates":"4.1.0","prettier":"2.2.1","rxjs":"6.6.6","stylus":"0.54.7","stylus-loader":"3.0.2","tslint":"6.1.0","typescript":"4.0.5","typescript-tools":"0.3.1"},"repository":{}}')},lTIg:function(e,t,n){"use strict";n.r(t),n.d(t,"iosTransitionAnimation",function(){return u}),n.d(t,"shadow",function(){return r});var i=n("meiF"),s=n("k4ps");n("1vRN"),n("wEJo");const o=e=>document.querySelector(e+".ion-cloned-element"),r=e=>e.shadowRoot||e,a=e=>{const t="ION-TABS"===e.tagName?e:e.querySelector("ion-tabs"),n="ion-content ion-header:not(.header-collapse-condense-inactive) ion-title.title-large";if(null!=t){const e=t.querySelector("ion-tab:not(.tab-hidden), .ion-page:not(.ion-page-hidden)");return null!=e?e.querySelector(n):null}return e.querySelector(n)},l=(e,t)=>{const n="ION-TABS"===e.tagName?e:e.querySelector("ion-tabs");let i=[];if(null!=n){const e=n.querySelector("ion-tab:not(.tab-hidden), .ion-page:not(.ion-page-hidden)");null!=e&&(i=e.querySelectorAll("ion-buttons"))}else i=e.querySelectorAll("ion-buttons");for(const s of i){const e=s.closest("ion-header"),n=e&&!e.classList.contains("header-collapse-condense-inactive"),i=s.querySelector("ion-back-button"),o=s.classList.contains("buttons-collapse"),r="start"===s.slot||""===s.slot;if(null!==i&&r&&(o&&n&&t||!o))return i}return null},c=(e,t,n,s,a,l)=>{const c=t?`calc(100% - ${l.right+4}px)`:l.left-4+"px",d=t?"7px":"-7px",u=t?"-4px":"4px",h=t?"-4px":"4px",p=t?"right":"left",g=t?"left":"right",f=n?[{offset:0,opacity:1,transform:`translate3d(${u}, ${l.top-46}px, 0) scale(1)`},{offset:.6,opacity:0},{offset:1,opacity:0,transform:`translate3d(${d}, ${a.top-40}px, 0) scale(2.1)`}]:[{offset:0,opacity:0,transform:`translate3d(${d}, ${a.top-40}px, 0) scale(2.1)`},{offset:1,opacity:1,transform:`translate3d(${u}, ${l.top-46}px, 0) scale(1)`}],m=n?[{offset:0,opacity:1,transform:`translate3d(${h}, ${l.top-46}px, 0) scale(1)`},{offset:.2,opacity:0,transform:`translate3d(${h}, ${l.top-41}px, 0) scale(0.6)`},{offset:1,opacity:0,transform:`translate3d(${h}, ${l.top-41}px, 0) scale(0.6)`}]:[{offset:0,opacity:0,transform:`translate3d(${h}, ${l.top-41}px, 0) scale(0.6)`},{offset:1,opacity:1,transform:`translate3d(${h}, ${l.top-46}px, 0) scale(1)`}],b=Object(i.a)(),v=Object(i.a)(),y=o("ion-back-button"),w=r(y).querySelector(".button-text"),_=r(y).querySelector("ion-icon");y.text=s.text,y.mode=s.mode,y.icon=s.icon,y.color=s.color,y.disabled=s.disabled,y.style.setProperty("display","block"),y.style.setProperty("position","fixed"),v.addElement(_),b.addElement(w),b.beforeStyles({"transform-origin":p+" center"}).beforeAddWrite(()=>{s.style.setProperty("display","none"),y.style.setProperty(p,c)}).afterAddWrite(()=>{s.style.setProperty("display",""),y.style.setProperty("display","none"),y.style.removeProperty(p)}).keyframes(f),v.beforeStyles({"transform-origin":g+" center"}).keyframes(m),e.addAnimation([b,v])},d=(e,t,n,s,r,a)=>{const l=t?`calc(100% - ${r.right}px)`:r.left+"px",c=t?"-18px":"18px",d=t?"right":"left",u=n?[{offset:0,opacity:0,transform:`translate3d(${c}, ${a.top-4}px, 0) scale(0.49)`},{offset:.1,opacity:0},{offset:1,opacity:1,transform:`translate3d(0, ${r.top-2}px, 0) scale(1)`}]:[{offset:0,opacity:.99,transform:`translate3d(0, ${r.top-2}px, 0) scale(1)`},{offset:.6,opacity:0},{offset:1,opacity:0,transform:`translate3d(${c}, ${a.top-4}px, 0) scale(0.5)`}],h=o("ion-title"),p=Object(i.a)();h.innerText=s.innerText,h.size=s.size,h.color=s.color,p.addElement(h),p.beforeStyles({"transform-origin":d+" center",height:"46px",display:"",position:"relative",[d]:l}).beforeAddWrite(()=>{s.style.setProperty("display","none")}).afterAddWrite(()=>{s.style.setProperty("display",""),h.style.setProperty("display","none")}).keyframes(u),e.addAnimation(p)},u=(e,t)=>{try{const n="cubic-bezier(0.32,0.72,0,1)",o="opacity",u="transform",h="0%",p=.8,g="rtl"===e.ownerDocument.dir,f=g?"-99.5%":"99.5%",m=g?"33%":"-33%",b=t.enteringEl,v=t.leavingEl,y="back"===t.direction,w=b.querySelector(":scope > ion-content"),_=b.querySelectorAll(":scope > ion-header > *:not(ion-toolbar), :scope > ion-footer > *"),x=b.querySelectorAll(":scope > ion-header > ion-toolbar"),A=Object(i.a)(),C=Object(i.a)();if(A.addElement(b).duration(t.duration||540).easing(t.easing||n).fill("both").beforeRemoveClass("ion-page-invisible"),v&&e){const t=Object(i.a)();t.addElement(e),A.addAnimation(t)}if(w||0!==x.length||0!==_.length?(C.addElement(w),C.addElement(_)):C.addElement(b.querySelector(":scope > .ion-page, :scope > ion-nav, :scope > ion-tabs")),A.addAnimation(C),y?C.beforeClearStyles([o]).fromTo("transform",`translateX(${m})`,`translateX(${h})`).fromTo(o,p,1):C.beforeClearStyles([o]).fromTo("transform",`translateX(${f})`,`translateX(${h})`),w){const e=r(w).querySelector(".transition-effect");if(e){const t=e.querySelector(".transition-cover"),n=e.querySelector(".transition-shadow"),s=Object(i.a)(),r=Object(i.a)(),a=Object(i.a)();s.addElement(e).beforeStyles({opacity:"1",display:"block"}).afterStyles({opacity:"",display:""}),r.addElement(t).beforeClearStyles([o]).fromTo(o,0,.1),a.addElement(n).beforeClearStyles([o]).fromTo(o,.03,.7),s.addAnimation([r,a]),C.addAnimation([s])}}const S=b.querySelector("ion-header.header-collapse-condense"),{forward:k,backward:P}=((e,t,n,i,s)=>{const o=l(i,n),r=a(s),u=a(i),h=l(s,n),p=null!==o&&null!==r&&!n,g=null!==u&&null!==h&&n;if(p){const i=r.getBoundingClientRect(),s=o.getBoundingClientRect();d(e,t,n,r,i,s),c(e,t,n,o,i,s)}else if(g){const i=u.getBoundingClientRect(),s=h.getBoundingClientRect();d(e,t,n,u,i,s),c(e,t,n,h,i,s)}return{forward:p,backward:g}})(A,g,y,b,v);if(x.forEach(e=>{const t=Object(i.a)();t.addElement(e),A.addAnimation(t);const n=Object(i.a)();n.addElement(e.querySelector("ion-title"));const s=Object(i.a)(),a=Array.from(e.querySelectorAll("ion-buttons,[menuToggle]")),l=e.closest("ion-header"),c=l&&l.classList.contains("header-collapse-condense-inactive");let d;d=a.filter(y?e=>{const t=e.classList.contains("buttons-collapse");return t&&!c||!t}:e=>!e.classList.contains("buttons-collapse")),s.addElement(d);const u=Object(i.a)();u.addElement(e.querySelectorAll(":scope > *:not(ion-title):not(ion-buttons):not([menuToggle])"));const p=Object(i.a)();p.addElement(r(e).querySelector(".toolbar-background"));const b=Object(i.a)(),v=e.querySelector("ion-back-button");if(v&&b.addElement(v),t.addAnimation([n,s,u,p,b]),s.fromTo(o,.01,1),u.fromTo(o,.01,1),y)c||n.fromTo("transform",`translateX(${m})`,`translateX(${h})`).fromTo(o,.01,1),u.fromTo("transform",`translateX(${m})`,`translateX(${h})`),b.fromTo(o,.01,1);else if(S||n.fromTo("transform",`translateX(${f})`,`translateX(${h})`).fromTo(o,.01,1),u.fromTo("transform",`translateX(${f})`,`translateX(${h})`),p.beforeClearStyles([o,"transform"]),(null==l?void 0:l.translucent)?p.fromTo("transform",g?"translateX(-100%)":"translateX(100%)","translateX(0px)"):p.fromTo(o,.01,"var(--opacity)"),k||b.fromTo(o,.01,1),v&&!k){const e=Object(i.a)();e.addElement(r(v).querySelector(".button-text")).fromTo("transform",g?"translateX(-100px)":"translateX(100px)","translateX(0px)"),t.addAnimation(e)}}),v){const e=Object(i.a)(),t=v.querySelector(":scope > ion-content"),n=v.querySelectorAll(":scope > ion-header > ion-toolbar"),a=v.querySelectorAll(":scope > ion-header > *:not(ion-toolbar), :scope > ion-footer > *");if(t||0!==n.length||0!==a.length?(e.addElement(t),e.addElement(a)):e.addElement(v.querySelector(":scope > .ion-page, :scope > ion-nav, :scope > ion-tabs")),A.addAnimation(e),y){e.beforeClearStyles([o]).fromTo("transform",`translateX(${h})`,g?"translateX(-100%)":"translateX(100%)");const t=Object(s.g)(v);A.afterAddWrite(()=>{"normal"===A.getDirection()&&t.style.setProperty("display","none")})}else e.fromTo("transform",`translateX(${h})`,`translateX(${m})`).fromTo(o,1,p);if(t){const n=r(t).querySelector(".transition-effect");if(n){const t=n.querySelector(".transition-cover"),s=n.querySelector(".transition-shadow"),r=Object(i.a)(),a=Object(i.a)(),l=Object(i.a)();r.addElement(n).beforeStyles({opacity:"1",display:"block"}).afterStyles({opacity:"",display:""}),a.addElement(t).beforeClearStyles([o]).fromTo(o,.1,0),l.addElement(s).beforeClearStyles([o]).fromTo(o,.7,.03),r.addAnimation([a,l]),e.addAnimation([r])}}n.forEach(e=>{const t=Object(i.a)();t.addElement(e);const n=Object(i.a)();n.addElement(e.querySelector("ion-title"));const s=Object(i.a)(),a=e.querySelectorAll("ion-buttons,[menuToggle]"),l=e.closest("ion-header"),c=l&&l.classList.contains("header-collapse-condense-inactive"),d=Array.from(a).filter(e=>{const t=e.classList.contains("buttons-collapse");return t&&!c||!t});s.addElement(d);const p=Object(i.a)(),f=e.querySelectorAll(":scope > *:not(ion-title):not(ion-buttons):not([menuToggle])");f.length>0&&p.addElement(f);const b=Object(i.a)();b.addElement(r(e).querySelector(".toolbar-background"));const v=Object(i.a)(),w=e.querySelector("ion-back-button");if(w&&v.addElement(w),t.addAnimation([n,s,p,v,b]),A.addAnimation(t),v.fromTo(o,.99,0),s.fromTo(o,.99,0),p.fromTo(o,.99,0),y){if(c||n.fromTo("transform",`translateX(${h})`,g?"translateX(-100%)":"translateX(100%)").fromTo(o,.99,0),p.fromTo("transform",`translateX(${h})`,g?"translateX(-100%)":"translateX(100%)"),b.beforeClearStyles([o,"transform"]),(null==l?void 0:l.translucent)?b.fromTo("transform","translateX(0px)",g?"translateX(-100%)":"translateX(100%)"):b.fromTo(o,"var(--opacity)",0),w&&!P){const e=Object(i.a)();e.addElement(r(w).querySelector(".button-text")).fromTo("transform",`translateX(${h})`,`translateX(${(g?-124:124)+"px"})`),t.addAnimation(e)}}else c||n.fromTo("transform",`translateX(${h})`,`translateX(${m})`).fromTo(o,.99,0).afterClearStyles([u,o]),p.fromTo("transform",`translateX(${h})`,`translateX(${m})`).afterClearStyles([u,o]),v.afterClearStyles([o]),n.afterClearStyles([o]),s.afterClearStyles([o])})}return A}catch(n){throw n}}},"m9/o":function(e,t,n){"use strict";function i(e){return"function"==typeof e}n.r(t);let s=!1;const o={Promise:void 0,set useDeprecatedSynchronousErrorHandling(e){if(e){const e=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+e.stack)}else s&&console.log("RxJS: Back to a better error behavior. Thank you. <3");s=e},get useDeprecatedSynchronousErrorHandling(){return s}};function r(e){setTimeout(()=>{throw e},0)}const a={closed:!0,next(e){},error(e){if(o.useDeprecatedSynchronousErrorHandling)throw e;r(e)},complete(){}},l=(()=>Array.isArray||(e=>e&&"number"==typeof e.length))();function c(e){return null!==e&&"object"==typeof e}const d=(()=>{function e(e){return Error.call(this),this.message=e?`${e.length} errors occurred during unsubscription:\n${e.map((e,t)=>`${t+1}) ${e.toString()}`).join("\n  ")}`:"",this.name="UnsubscriptionError",this.errors=e,this}return e.prototype=Object.create(Error.prototype),e})();let u=(()=>{class e{constructor(e){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,e&&(this._ctorUnsubscribe=!0,this._unsubscribe=e)}unsubscribe(){let t;if(this.closed)return;let{_parentOrParents:n,_ctorUnsubscribe:s,_unsubscribe:o,_subscriptions:r}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof e)n.remove(this);else if(null!==n)for(let e=0;e<n.length;++e)n[e].remove(this);if(i(o)){s&&(this._unsubscribe=void 0);try{o.call(this)}catch(a){t=a instanceof d?h(a.errors):[a]}}if(l(r)){let e=-1,n=r.length;for(;++e<n;){const n=r[e];if(c(n))try{n.unsubscribe()}catch(a){t=t||[],a instanceof d?t=t.concat(h(a.errors)):t.push(a)}}}if(t)throw new d(t)}add(t){let n=t;if(!t)return e.EMPTY;switch(typeof t){case"function":n=new e(t);case"object":if(n===this||n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if(!(n instanceof e)){const t=n;n=new e,n._subscriptions=[t]}break;default:throw new Error("unrecognized teardown "+t+" added to Subscription.")}let{_parentOrParents:i}=n;if(null===i)n._parentOrParents=this;else if(i instanceof e){if(i===this)return n;n._parentOrParents=[i,this]}else{if(-1!==i.indexOf(this))return n;i.push(this)}const s=this._subscriptions;return null===s?this._subscriptions=[n]:s.push(n),n}remove(e){const t=this._subscriptions;if(t){const n=t.indexOf(e);-1!==n&&t.splice(n,1)}}}return e.EMPTY=function(e){return e.closed=!0,e}(new e),e})();function h(e){return e.reduce((e,t)=>e.concat(t instanceof d?t.errors:t),[])}const p=(()=>"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random())();class g extends u{constructor(e,t,n){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=a;break;case 1:if(!e){this.destination=a;break}if("object"==typeof e){e instanceof g?(this.syncErrorThrowable=e.syncErrorThrowable,this.destination=e,e.add(this)):(this.syncErrorThrowable=!0,this.destination=new f(this,e));break}default:this.syncErrorThrowable=!0,this.destination=new f(this,e,t,n)}}[p](){return this}static create(e,t,n){const i=new g(e,t,n);return i.syncErrorThrowable=!1,i}next(e){this.isStopped||this._next(e)}error(e){this.isStopped||(this.isStopped=!0,this._error(e))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(e){this.destination.next(e)}_error(e){this.destination.error(e),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:e}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=e,this}}class f extends g{constructor(e,t,n,s){let o;super(),this._parentSubscriber=e;let r=this;i(t)?o=t:t&&(o=t.next,n=t.error,s=t.complete,t!==a&&(r=Object.create(t),i(r.unsubscribe)&&this.add(r.unsubscribe.bind(r)),r.unsubscribe=this.unsubscribe.bind(this))),this._context=r,this._next=o,this._error=n,this._complete=s}next(e){if(!this.isStopped&&this._next){const{_parentSubscriber:t}=this;o.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?this.__tryOrSetError(t,this._next,e)&&this.unsubscribe():this.__tryOrUnsub(this._next,e)}}error(e){if(!this.isStopped){const{_parentSubscriber:t}=this,{useDeprecatedSynchronousErrorHandling:n}=o;if(this._error)n&&t.syncErrorThrowable?(this.__tryOrSetError(t,this._error,e),this.unsubscribe()):(this.__tryOrUnsub(this._error,e),this.unsubscribe());else if(t.syncErrorThrowable)n?(t.syncErrorValue=e,t.syncErrorThrown=!0):r(e),this.unsubscribe();else{if(this.unsubscribe(),n)throw e;r(e)}}}complete(){if(!this.isStopped){const{_parentSubscriber:e}=this;if(this._complete){const t=()=>this._complete.call(this._context);o.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?(this.__tryOrSetError(e,t),this.unsubscribe()):(this.__tryOrUnsub(t),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(e,t){try{e.call(this._context,t)}catch(n){if(this.unsubscribe(),o.useDeprecatedSynchronousErrorHandling)throw n;r(n)}}__tryOrSetError(e,t,n){if(!o.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{t.call(this._context,n)}catch(i){return o.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=i,e.syncErrorThrown=!0,!0):(r(i),!0)}return!1}_unsubscribe(){const{_parentSubscriber:e}=this;this._context=null,this._parentSubscriber=null,e.unsubscribe()}}const m=(()=>"function"==typeof Symbol&&Symbol.observable||"@@observable")();function b(e){return e}let v=(()=>{class e{constructor(e){this._isScalar=!1,e&&(this._subscribe=e)}lift(t){const n=new e;return n.source=this,n.operator=t,n}subscribe(e,t,n){const{operator:i}=this,s=function(e,t,n){if(e){if(e instanceof g)return e;if(e[p])return e[p]()}return e||t||n?new g(e,t,n):new g(a)}(e,t,n);if(s.add(i?i.call(s,this.source):this.source||o.useDeprecatedSynchronousErrorHandling&&!s.syncErrorThrowable?this._subscribe(s):this._trySubscribe(s)),o.useDeprecatedSynchronousErrorHandling&&s.syncErrorThrowable&&(s.syncErrorThrowable=!1,s.syncErrorThrown))throw s.syncErrorValue;return s}_trySubscribe(e){try{return this._subscribe(e)}catch(t){o.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=t),function(e){for(;e;){const{closed:t,destination:n,isStopped:i}=e;if(t||i)return!1;e=n&&n instanceof g?n:null}return!0}(e)?e.error(t):console.warn(t)}}forEach(e,t){return new(t=y(t))((t,n)=>{let i;i=this.subscribe(t=>{try{e(t)}catch(s){n(s),i&&i.unsubscribe()}},n,t)})}_subscribe(e){const{source:t}=this;return t&&t.subscribe(e)}[m](){return this}pipe(...e){return 0===e.length?this:(0===(t=e).length?b:1===t.length?t[0]:function(e){return t.reduce((e,t)=>t(e),e)})(this);var t}toPromise(e){return new(e=y(e))((e,t)=>{let n;this.subscribe(e=>n=e,e=>t(e),()=>e(n))})}}return e.create=t=>new e(t),e})();function y(e){if(e||(e=o.Promise||Promise),!e)throw new Error("no Promise impl found");return e}const w=(()=>{function e(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return e.prototype=Object.create(Error.prototype),e})();class _ extends u{constructor(e,t){super(),this.subject=e,this.subscriber=t,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const e=this.subject,t=e.observers;if(this.subject=null,!t||0===t.length||e.isStopped||e.closed)return;const n=t.indexOf(this.subscriber);-1!==n&&t.splice(n,1)}}class x extends g{constructor(e){super(e),this.destination=e}}let A=(()=>{class e extends v{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[p](){return new x(this)}lift(e){const t=new C(this,this);return t.operator=e,t}next(e){if(this.closed)throw new w;if(!this.isStopped){const{observers:t}=this,n=t.length,i=t.slice();for(let s=0;s<n;s++)i[s].next(e)}}error(e){if(this.closed)throw new w;this.hasError=!0,this.thrownError=e,this.isStopped=!0;const{observers:t}=this,n=t.length,i=t.slice();for(let s=0;s<n;s++)i[s].error(e);this.observers.length=0}complete(){if(this.closed)throw new w;this.isStopped=!0;const{observers:e}=this,t=e.length,n=e.slice();for(let i=0;i<t;i++)n[i].complete();this.observers.length=0}unsubscribe(){this.isStopped=!0,this.closed=!0,this.observers=null}_trySubscribe(e){if(this.closed)throw new w;return super._trySubscribe(e)}_subscribe(e){if(this.closed)throw new w;return this.hasError?(e.error(this.thrownError),u.EMPTY):this.isStopped?(e.complete(),u.EMPTY):(this.observers.push(e),new _(this,e))}asObservable(){const e=new v;return e.source=this,e}}return e.create=(e,t)=>new C(e,t),e})();class C extends A{constructor(e,t){super(),this.destination=e,this.source=t}next(e){const{destination:t}=this;t&&t.next&&t.next(e)}error(e){const{destination:t}=this;t&&t.error&&this.destination.error(e)}complete(){const{destination:e}=this;e&&e.complete&&this.destination.complete()}_subscribe(e){const{source:t}=this;return t?this.source.subscribe(e):u.EMPTY}}function S(e){return e&&"function"==typeof e.schedule}function k(e,t){return function(n){if("function"!=typeof e)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new P(e,t))}}class P{constructor(e,t){this.project=e,this.thisArg=t}call(e,t){return t.subscribe(new E(e,this.project,this.thisArg))}}class E extends g{constructor(e,t,n){super(e),this.project=t,this.count=0,this.thisArg=n||this}_next(e){let t;try{t=this.project.call(this.thisArg,e,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(t)}}const D=e=>t=>{for(let n=0,i=e.length;n<i&&!t.closed;n++)t.next(e[n]);t.complete()};function O(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}const M=O(),T=e=>e&&"number"==typeof e.length&&"function"!=typeof e;function I(e){return!!e&&"function"!=typeof e.subscribe&&"function"==typeof e.then}const R=e=>{if(e&&"function"==typeof e[m])return i=e,e=>{const t=i[m]();if("function"!=typeof t.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return t.subscribe(e)};if(T(e))return D(e);if(I(e))return n=e,e=>(n.then(t=>{e.closed||(e.next(t),e.complete())},t=>e.error(t)).then(null,r),e);if(e&&"function"==typeof e[M])return t=e,e=>{const n=t[M]();for(;;){let t;try{t=n.next()}catch(i){return e.error(i),e}if(t.done){e.complete();break}if(e.next(t.value),e.closed)break}return"function"==typeof n.return&&e.add(()=>{n.return&&n.return()}),e};{const t=c(e)?"an invalid object":`'${e}'`;throw new TypeError(`You provided ${t} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`)}var t,n,i};function L(e,t){return new v(n=>{const i=new u;let s=0;return i.add(t.schedule(function(){s!==e.length?(n.next(e[s++]),n.closed||i.add(this.schedule())):n.complete()})),i})}function F(e,t){return t?function(e,t){if(null!=e){if(function(e){return e&&"function"==typeof e[m]}(e))return function(e,t){return new v(n=>{const i=new u;return i.add(t.schedule(()=>{const s=e[m]();i.add(s.subscribe({next(e){i.add(t.schedule(()=>n.next(e)))},error(e){i.add(t.schedule(()=>n.error(e)))},complete(){i.add(t.schedule(()=>n.complete()))}}))})),i})}(e,t);if(I(e))return function(e,t){return new v(n=>{const i=new u;return i.add(t.schedule(()=>e.then(e=>{i.add(t.schedule(()=>{n.next(e),i.add(t.schedule(()=>n.complete()))}))},e=>{i.add(t.schedule(()=>n.error(e)))}))),i})}(e,t);if(T(e))return L(e,t);if(function(e){return e&&"function"==typeof e[M]}(e)||"string"==typeof e)return function(e,t){if(!e)throw new Error("Iterable cannot be null");return new v(n=>{const i=new u;let s;return i.add(()=>{s&&"function"==typeof s.return&&s.return()}),i.add(t.schedule(()=>{s=e[M](),i.add(t.schedule(function(){if(n.closed)return;let e,t;try{const n=s.next();e=n.value,t=n.done}catch(i){return void n.error(i)}t?n.complete():(n.next(e),this.schedule())}))})),i})}(e,t)}throw new TypeError((null!==e&&typeof e||e)+" is not observable")}(e,t):e instanceof v?e:new v(R(e))}class B extends g{constructor(e){super(),this.parent=e}_next(e){this.parent.notifyNext(e)}_error(e){this.parent.notifyError(e),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class z extends g{notifyNext(e){this.destination.next(e)}notifyError(e){this.destination.error(e)}notifyComplete(){this.destination.complete()}}function V(e,t){if(!t.closed)return e instanceof v?e.subscribe(t):R(e)(t)}function N(e,t,n=Number.POSITIVE_INFINITY){return"function"==typeof t?i=>i.pipe(N((n,i)=>F(e(n,i)).pipe(k((e,s)=>t(n,e,i,s))),n)):("number"==typeof t&&(n=t),t=>t.lift(new H(e,n)))}class H{constructor(e,t=Number.POSITIVE_INFINITY){this.project=e,this.concurrent=t}call(e,t){return t.subscribe(new j(e,this.project,this.concurrent))}}class j extends z{constructor(e,t,n=Number.POSITIVE_INFINITY){super(e),this.project=t,this.concurrent=n,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(e){this.active<this.concurrent?this._tryNext(e):this.buffer.push(e)}_tryNext(e){let t;const n=this.index++;try{t=this.project(e,n)}catch(i){return void this.destination.error(i)}this.active++,this._innerSub(t)}_innerSub(e){const t=new B(this),n=this.destination;n.add(t);const i=V(e,t);i!==t&&n.add(i)}_complete(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}notifyNext(e){this.destination.next(e)}notifyComplete(){const e=this.buffer;this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}function U(e=Number.POSITIVE_INFINITY){return N(b,e)}function W(e,t){return t?L(e,t):new v(D(e))}function G(...e){let t=Number.POSITIVE_INFINITY,n=null,i=e[e.length-1];return S(i)?(n=e.pop(),e.length>1&&"number"==typeof e[e.length-1]&&(t=e.pop())):"number"==typeof i&&(t=e.pop()),null===n&&1===e.length&&e[0]instanceof v?e[0]:U(t)(W(e,n))}function q(){return function(e){return e.lift(new Y(e))}}class Y{constructor(e){this.connectable=e}call(e,t){const{connectable:n}=this;n._refCount++;const i=new Z(e,n),s=t.subscribe(i);return i.closed||(i.connection=n.connect()),s}}class Z extends g{constructor(e,t){super(e),this.connectable=t}_unsubscribe(){const{connectable:e}=this;if(!e)return void(this.connection=null);this.connectable=null;const t=e._refCount;if(t<=0)return void(this.connection=null);if(e._refCount=t-1,t>1)return void(this.connection=null);const{connection:n}=this,i=e._connection;this.connection=null,!i||n&&i!==n||i.unsubscribe()}}class Q extends v{constructor(e,t){super(),this.source=e,this.subjectFactory=t,this._refCount=0,this._isComplete=!1}_subscribe(e){return this.getSubject().subscribe(e)}getSubject(){const e=this._subject;return e&&!e.isStopped||(this._subject=this.subjectFactory()),this._subject}connect(){let e=this._connection;return e||(this._isComplete=!1,e=this._connection=new u,e.add(this.source.subscribe(new K(this.getSubject(),this))),e.closed&&(this._connection=null,e=u.EMPTY)),e}refCount(){return q()(this)}}const X=(()=>{const e=Q.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:e._subscribe},_isComplete:{value:e._isComplete,writable:!0},getSubject:{value:e.getSubject},connect:{value:e.connect},refCount:{value:e.refCount}}})();class K extends x{constructor(e,t){super(e),this.connectable=t}_error(e){this._unsubscribe(),super._error(e)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const e=this.connectable;if(e){this.connectable=null;const t=e._connection;e._refCount=0,e._subject=null,e._connection=null,t&&t.unsubscribe()}}}function J(){return new A}function ee(){return e=>{return q()((t=J,function(e){let n;n="function"==typeof t?t:function(){return t};const i=Object.create(e,X);return i.source=e,i.subjectFactory=n,i})(e));var t}}function te(e){for(let t in e)if(e[t]===te)return t;throw Error("Could not find renamed property on target object.")}function ne(e,t){for(const n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function ie(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(ie).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return""+e.overriddenName;if(e.name)return""+e.name;const t=e.toString();if(null==t)return""+t;const n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}function se(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const oe=te({__forward_ref__:te});function re(e){return e.__forward_ref__=re,e.toString=function(){return ie(this())},e}function ae(e){return le(e)?e():e}function le(e){return"function"==typeof e&&e.hasOwnProperty(oe)&&e.__forward_ref__===re}class ce extends Error{constructor(e,t){super(function(e,t){return`${e?`NG0${e}: `:""}${t}`}(e,t)),this.code=e}}function de(e){return"string"==typeof e?e:null==e?"":String(e)}function ue(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():de(e)}function he(e,t){const n=t?" in "+t:"";throw new ce("201",`No provider for ${ue(e)} found${n}`)}function pe(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}const ge=pe;function fe(e){return{providers:e.providers||[],imports:e.imports||[]}}function me(e){return be(e,ye)||be(e,_e)}function be(e,t){return e.hasOwnProperty(t)?e[t]:null}function ve(e){return e&&(e.hasOwnProperty(we)||e.hasOwnProperty(xe))?e[we]:null}const ye=te({\u0275prov:te}),we=te({\u0275inj:te}),_e=te({ngInjectableDef:te}),xe=te({ngInjectorDef:te});var Ae=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}({});let Ce;function Se(e){const t=Ce;return Ce=e,t}function ke(e,t,n){const i=me(e);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:n&Ae.Optional?null:void 0!==t?t:void he(ie(e),"Injector")}function Pe(e){return{toString:e}.toString()}var Ee=function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e}({}),De=function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}({});const Oe="undefined"!=typeof globalThis&&globalThis,Me="undefined"!=typeof window&&window,Te="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,Ie="undefined"!=typeof global&&global,Re=Oe||Ie||Me||Te,Le={},Fe=[],Be=[],ze=te({\u0275cmp:te}),Ve=te({\u0275dir:te}),Ne=te({\u0275pipe:te}),He=te({\u0275mod:te}),je=te({\u0275loc:te}),Ue=te({\u0275fac:te}),We=te({__NG_ELEMENT_ID__:te});let Ge=0;function $e(e){return Pe(()=>{const t={},n={type:e.type,providersResolver:null,decls:e.decls,vars:e.vars,factory:null,template:e.template||null,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputs:null,outputs:null,exportAs:e.exportAs||null,onPush:e.changeDetection===Ee.OnPush,directiveDefs:null,pipeDefs:null,selectors:e.selectors||Be,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||De.Emulated,id:"c",styles:e.styles||Be,_:null,setInput:null,schemas:e.schemas||null,tView:null},i=e.directives,s=e.features,o=e.pipes;return n.id+=Ge++,n.inputs=Xe(e.inputs,t),n.outputs=Xe(e.outputs),s&&s.forEach(e=>e(n)),n.directiveDefs=i?()=>("function"==typeof i?i():i).map(qe):null,n.pipeDefs=o?()=>("function"==typeof o?o():o).map(Ye):null,n})}function qe(e){return et(e)||function(e){return e[Ve]||null}(e)}function Ye(e){return function(e){return e[Ne]||null}(e)}const Ze={};function Qe(e){const t={type:e.type,bootstrap:e.bootstrap||Be,declarations:e.declarations||Be,imports:e.imports||Be,exports:e.exports||Be,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null};return null!=e.id&&Pe(()=>{Ze[e.id]=e.type}),t}function Xe(e,t){if(null==e)return Le;const n={};for(const i in e)if(e.hasOwnProperty(i)){let s=e[i],o=s;Array.isArray(s)&&(o=s[1],s=s[0]),n[s]=i,t&&(t[s]=o)}return n}const Ke=$e;function Je(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,onDestroy:e.type.prototype.ngOnDestroy||null}}function et(e){return e[ze]||null}function tt(e,t){const n=e[He]||null;if(!n&&!0===t)throw new Error(`Type ${ie(e)} does not have '\u0275mod' property.`);return n}function nt(e){return Array.isArray(e)&&"object"==typeof e[1]}function it(e){return Array.isArray(e)&&!0===e[1]}function st(e){return 0!=(8&e.flags)}function ot(e){return 2==(2&e.flags)}function rt(e){return 1==(1&e.flags)}function at(e){return null!==e.template}function lt(e,t){return e.hasOwnProperty(Ue)?e[Ue]:null}class ct{constructor(e,t,n){this.previousValue=e,this.currentValue=t,this.firstChange=n}isFirstChange(){return this.firstChange}}function dt(){return ut}function ut(e){return e.type.prototype.ngOnChanges&&(e.setInput=pt),ht}function ht(){const e=gt(this),t=null==e?void 0:e.current;if(t){const n=e.previous;if(n===Le)e.previous=t;else for(let e in t)n[e]=t[e];e.current=null,this.ngOnChanges(t)}}function pt(e,t,n,i){const s=gt(e)||function(e,t){return e.__ngSimpleChanges__=t}(e,{previous:Le,current:null}),o=s.current||(s.current={}),r=s.previous,a=this.declaredInputs[n],l=r[a];o[a]=new ct(l&&l.currentValue,t,r===Le),e[i]=t}function gt(e){return e.__ngSimpleChanges__||null}dt.ngInherit=!0;let ft=void 0;function mt(){return void 0!==ft?ft:"undefined"!=typeof document?document:void 0}function bt(e){return!!e.listen}const vt={createRenderer:(e,t)=>mt()};function yt(e){for(;Array.isArray(e);)e=e[0];return e}function wt(e,t){return yt(t[e])}function _t(e,t){return yt(t[e.index])}function xt(e,t){return e.data[t]}function At(e,t){return e[t]}function Ct(e,t){const n=t[e];return nt(n)?n:n[0]}function St(e){const t=function(e){return e.__ngContext__||null}(e);return t?Array.isArray(t)?t:t.lView:null}function kt(e){return 4==(4&e[2])}function Pt(e){return 128==(128&e[2])}function Et(e,t){return null==t?null:e[t]}function Dt(e){e[18]=0}function Ot(e,t){e[5]+=t;let n=e,i=e[3];for(;null!==i&&(1===t&&1===n[5]||-1===t&&0===n[5]);)i[5]+=t,n=i,i=i[3]}const Mt={lFrame:nn(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function Tt(){return Mt.bindingsEnabled}function It(){return Mt.lFrame.lView}function Rt(){return Mt.lFrame.tView}function Lt(e){Mt.lFrame.contextLView=e}function Ft(){let e=Bt();for(;null!==e&&64===e.type;)e=e.parent;return e}function Bt(){return Mt.lFrame.currentTNode}function zt(e,t){const n=Mt.lFrame;n.currentTNode=e,n.isParent=t}function Vt(){return Mt.lFrame.isParent}function Nt(){Mt.lFrame.isParent=!1}function Ht(){return Mt.isInCheckNoChangesMode}function jt(e){Mt.isInCheckNoChangesMode=e}function Ut(){const e=Mt.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function Wt(){return Mt.lFrame.bindingIndex}function Gt(){return Mt.lFrame.bindingIndex++}function $t(e){const t=Mt.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function qt(e,t){const n=Mt.lFrame;n.bindingIndex=n.bindingRootIndex=e,Yt(t)}function Yt(e){Mt.lFrame.currentDirectiveIndex=e}function Zt(e){const t=Mt.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}function Qt(){return Mt.lFrame.currentQueryIndex}function Xt(e){Mt.lFrame.currentQueryIndex=e}function Kt(e){const t=e[1];return 2===t.type?t.declTNode:1===t.type?e[6]:null}function Jt(e,t,n){if(n&Ae.SkipSelf){let i=t,s=e;for(;i=i.parent,!(null!==i||n&Ae.Host||(i=Kt(s),null===i)||(s=s[15],10&i.type)););if(null===i)return!1;t=i,e=s}const i=Mt.lFrame=tn();return i.currentTNode=t,i.lView=e,!0}function en(e){const t=tn(),n=e[1];Mt.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function tn(){const e=Mt.lFrame,t=null===e?null:e.child;return null===t?nn(e):t}function nn(e){const t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return null!==e&&(e.child=t),t}function sn(){const e=Mt.lFrame;return Mt.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const on=sn;function rn(){const e=sn();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function an(){return Mt.lFrame.selectedIndex}function ln(e){Mt.lFrame.selectedIndex=e}function cn(){const e=Mt.lFrame;return xt(e.tView,e.selectedIndex)}function dn(){Mt.lFrame.currentNamespace="http://www.w3.org/2000/svg"}function un(){Mt.lFrame.currentNamespace=null}function hn(e,t){for(let n=t.directiveStart,i=t.directiveEnd;n<i;n++){const t=e.data[n].type.prototype,{ngAfterContentInit:i,ngAfterContentChecked:s,ngAfterViewInit:o,ngAfterViewChecked:r,ngOnDestroy:a}=t;i&&(e.contentHooks||(e.contentHooks=[])).push(-n,i),s&&((e.contentHooks||(e.contentHooks=[])).push(n,s),(e.contentCheckHooks||(e.contentCheckHooks=[])).push(n,s)),o&&(e.viewHooks||(e.viewHooks=[])).push(-n,o),r&&((e.viewHooks||(e.viewHooks=[])).push(n,r),(e.viewCheckHooks||(e.viewCheckHooks=[])).push(n,r)),null!=a&&(e.destroyHooks||(e.destroyHooks=[])).push(n,a)}}function pn(e,t,n){mn(e,t,3,n)}function gn(e,t,n,i){(3&e[2])===n&&mn(e,t,n,i)}function fn(e,t){let n=e[2];(3&n)===t&&(n&=2047,n+=1,e[2]=n)}function mn(e,t,n,i){const s=null!=i?i:-1,o=t.length-1;let r=0;for(let a=void 0!==i?65535&e[18]:0;a<o;a++)if("number"==typeof t[a+1]){if(r=t[a],null!=i&&r>=i)break}else t[a]<0&&(e[18]+=65536),(r<s||-1==s)&&(bn(e,n,t,a),e[18]=(4294901760&e[18])+a+2),a++}function bn(e,t,n,i){const s=n[i]<0,o=n[i+1],r=e[s?-n[i]:n[i]];s?e[2]>>11<e[18]>>16&&(3&e[2])===t&&(e[2]+=2048,o.call(r)):o.call(r)}class vn{constructor(e,t,n){this.factory=e,this.resolving=!1,this.canSeeViewProviders=t,this.injectImpl=n}}function yn(e,t,n){const i=bt(e);let s=0;for(;s<n.length;){const o=n[s];if("number"==typeof o){if(0!==o)break;s++;const r=n[s++],a=n[s++],l=n[s++];i?e.setAttribute(t,a,l,r):t.setAttributeNS(r,a,l)}else{const r=o,a=n[++s];_n(r)?i&&e.setProperty(t,r,a):i?e.setAttribute(t,r,a):t.setAttribute(r,a),s++}}return s}function wn(e){return 3===e||4===e||6===e}function _n(e){return 64===e.charCodeAt(0)}function xn(e,t){if(null===t||0===t.length);else if(null===e||0===e.length)e=t.slice();else{let n=-1;for(let i=0;i<t.length;i++){const s=t[i];"number"==typeof s?n=s:0===n||An(e,n,s,null,-1===n||2===n?t[++i]:null)}}return e}function An(e,t,n,i,s){let o=0,r=e.length;if(-1===t)r=-1;else for(;o<e.length;){const n=e[o++];if("number"==typeof n){if(n===t){r=-1;break}if(n>t){r=o-1;break}}}for(;o<e.length;){const t=e[o];if("number"==typeof t)break;if(t===n){if(null===i)return void(null!==s&&(e[o+1]=s));if(i===e[o+1])return void(e[o+2]=s)}o++,null!==i&&o++,null!==s&&o++}-1!==r&&(e.splice(r,0,t),o=r+1),e.splice(o++,0,n),null!==i&&e.splice(o++,0,i),null!==s&&e.splice(o++,0,s)}function Cn(e){return-1!==e}function Sn(e){return 32767&e}function kn(e,t){let n=e>>16,i=t;for(;n>0;)i=i[15],n--;return i}let Pn=!0;function En(e){const t=Pn;return Pn=e,t}let Dn=0;function On(e,t){const n=Tn(e,t);if(-1!==n)return n;const i=t[1];i.firstCreatePass&&(e.injectorIndex=t.length,Mn(i.data,e),Mn(t,null),Mn(i.blueprint,null));const s=In(e,t),o=e.injectorIndex;if(Cn(s)){const e=Sn(s),n=kn(s,t),i=n[1].data;for(let s=0;s<8;s++)t[o+s]=n[e+s]|i[e+s]}return t[o+8]=s,o}function Mn(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Tn(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function In(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let n=0,i=null,s=t;for(;null!==s;){const e=s[1],t=e.type;if(i=2===t?e.declTNode:1===t?s[6]:null,null===i)return-1;if(n++,s=s[15],-1!==i.injectorIndex)return i.injectorIndex|n<<16}return-1}function Rn(e,t,n){!function(e,t,n){let i;"string"==typeof n?i=n.charCodeAt(0)||0:n.hasOwnProperty(We)&&(i=n[We]),null==i&&(i=n[We]=Dn++);const s=255&i;t.data[e+(s>>5)]|=1<<s}(e,t,n)}function Ln(e,t,n){if(n&Ae.Optional)return e;he(t,"NodeInjector")}function Fn(e,t,n,i){if(n&Ae.Optional&&void 0===i&&(i=null),0==(n&(Ae.Self|Ae.Host))){const s=e[9],o=Se(void 0);try{return s?s.get(t,i,n&Ae.Optional):ke(t,i,n&Ae.Optional)}finally{Se(o)}}return Ln(i,t,n)}function Bn(e,t,n,i=Ae.Default,s){if(null!==e){const o=function(e){if("string"==typeof e)return e.charCodeAt(0)||0;const t=e.hasOwnProperty(We)?e[We]:void 0;return"number"==typeof t?t>=0?255&t:Vn:t}(n);if("function"==typeof o){if(!Jt(t,e,i))return i&Ae.Host?Ln(s,n,i):Fn(t,n,i,s);try{const e=o();if(null!=e||i&Ae.Optional)return e;he(n)}finally{on()}}else if("number"==typeof o){let s=null,r=Tn(e,t),a=-1,l=i&Ae.Host?t[16][6]:null;for((-1===r||i&Ae.SkipSelf)&&(a=-1===r?In(e,t):t[r+8],-1!==a&&Wn(i,!1)?(s=t[1],r=Sn(a),t=kn(a,t)):r=-1);-1!==r;){const e=t[1];if(Un(o,r,e.data)){const e=Nn(r,t,n,s,i,l);if(e!==zn)return e}a=t[r+8],-1!==a&&Wn(i,t[1].data[r+8]===l)&&Un(o,r,t)?(s=e,r=Sn(a),t=kn(a,t)):r=-1}}}return Fn(t,n,i,s)}const zn={};function Vn(){return new Gn(Ft(),It())}function Nn(e,t,n,i,s,o){const r=t[1],a=r.data[e+8],l=Hn(a,r,n,null==i?ot(a)&&Pn:i!=r&&0!=(3&a.type),s&Ae.Host&&o===a);return null!==l?jn(t,r,l,a):zn}function Hn(e,t,n,i,s){const o=e.providerIndexes,r=t.data,a=1048575&o,l=e.directiveStart,c=o>>20,d=s?a+c:e.directiveEnd;for(let u=i?a:a+c;u<d;u++){const e=r[u];if(u<l&&n===e||u>=l&&e.type===n)return u}if(s){const e=r[l];if(e&&at(e)&&e.type===n)return l}return null}function jn(e,t,n,i){let s=e[n];const o=t.data;if(s instanceof vn){const r=s;r.resolving&&function(e,t){throw new ce("200","Circular dependency in DI detected for "+e)}(ue(o[n]));const a=En(r.canSeeViewProviders);r.resolving=!0;const l=r.injectImpl?Se(r.injectImpl):null;Jt(e,i,Ae.Default);try{s=e[n]=r.factory(void 0,o,e,i),t.firstCreatePass&&n>=i.directiveStart&&function(e,t,n){const{ngOnChanges:i,ngOnInit:s,ngDoCheck:o}=t.type.prototype;if(i){const i=ut(t);(n.preOrderHooks||(n.preOrderHooks=[])).push(e,i),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,i)}s&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-e,s),o&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e,o),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,o))}(n,o[n],t)}finally{null!==l&&Se(l),En(a),r.resolving=!1,on()}}return s}function Un(e,t,n){return!!(n[t+(e>>5)]&1<<e)}function Wn(e,t){return!(e&Ae.Self||e&Ae.Host&&t)}class Gn{constructor(e,t){this._tNode=e,this._lView=t}get(e,t){return Bn(this._tNode,this._lView,e,void 0,t)}}function $n(e){return Pe(()=>{const t=e.prototype.constructor,n=t[Ue]||qn(t),i=Object.prototype;let s=Object.getPrototypeOf(e.prototype).constructor;for(;s&&s!==i;){const e=s[Ue]||qn(s);if(e&&e!==n)return e;s=Object.getPrototypeOf(s)}return e=>new e})}function qn(e){return le(e)?()=>{const t=qn(ae(e));return t&&t()}:lt(e)}function Yn(e){return function(e,t){if("class"===t)return e.classes;if("style"===t)return e.styles;const n=e.attrs;if(n){const e=n.length;let i=0;for(;i<e;){const s=n[i];if(wn(s))break;if(0===s)i+=2;else if("number"==typeof s)for(i++;i<e&&"string"==typeof n[i];)i++;else{if(s===t)return n[i+1];i+=2}}}return null}(Ft(),e)}function Zn(e,t,n){return Pe(()=>{const i=function(e){return function(...t){if(e){const n=e(...t);for(const e in n)this[e]=n[e]}}}(t);function s(...e){if(this instanceof s)return i.apply(this,e),this;const t=new s(...e);return n.annotation=t,n;function n(e,n,i){const s=e.hasOwnProperty("__parameters__")?e.__parameters__:Object.defineProperty(e,"__parameters__",{value:[]}).__parameters__;for(;s.length<=i;)s.push(null);return(s[i]=s[i]||[]).push(t),e}}return n&&(s.prototype=Object.create(n.prototype)),s.prototype.ngMetadataName=e,s.annotationCls=s,s})}const Qn=function(){return Zn("Attribute",e=>({attributeName:e,__NG_ELEMENT_ID__:()=>Yn(e)}))}();class Xn{constructor(e,t){this._desc=e,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof t?this.__NG_ELEMENT_ID__=t:void 0!==t&&(this.\u0275prov=pe({token:this,providedIn:t.providedIn||"root",factory:t.factory}))}toString(){return"InjectionToken "+this._desc}}const Kn=new Xn("AnalyzeForEntryComponents"),Jn=Function;function ei(e,t){void 0===t&&(t=e);for(let n=0;n<e.length;n++){let i=e[n];Array.isArray(i)?(t===e&&(t=e.slice(0,n)),ei(i,t)):t!==e&&t.push(i)}return t}function ti(e,t){e.forEach(e=>Array.isArray(e)?ti(e,t):t(e))}function ni(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function ii(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function si(e,t){const n=[];for(let i=0;i<e;i++)n.push(t);return n}function oi(e,t,n){let i=ai(e,t);return i>=0?e[1|i]=n:(i=~i,function(e,t,n,i){let s=e.length;if(s==t)e.push(n,i);else if(1===s)e.push(i,e[0]),e[0]=n;else{for(s--,e.push(e[s-1],e[s]);s>t;)e[s]=e[s-2],s--;e[t]=n,e[t+1]=i}}(e,i,t,n)),i}function ri(e,t){const n=ai(e,t);if(n>=0)return e[1|n]}function ai(e,t){return function(e,t,n){let i=0,s=e.length>>1;for(;s!==i;){const n=i+(s-i>>1),o=e[n<<1];if(t===o)return n<<1;o>t?s=n:i=n+1}return~(s<<1)}(e,t)}const li={},ci=/\n/gm,di=te({provide:String,useValue:te});let ui=void 0;function hi(e){const t=ui;return ui=e,t}function pi(e,t=Ae.Default){if(void 0===ui)throw new Error("inject() must be called from an injection context");return null===ui?ke(e,void 0,t):ui.get(e,t&Ae.Optional?null:void 0,t)}function gi(e,t=Ae.Default){return(Ce||pi)(ae(e),t)}const fi=gi;function mi(e){const t=[];for(let n=0;n<e.length;n++){const i=ae(e[n]);if(Array.isArray(i)){if(0===i.length)throw new Error("Arguments array must have arguments.");let e=void 0,n=Ae.Default;for(let t=0;t<i.length;t++){const s=i[t],o=s.__NG_DI_FLAG__;"number"==typeof o?-1===o?e=s.token:n|=o:e=s}t.push(gi(e,n))}else t.push(gi(i))}return t}function bi(e,t){return e.__NG_DI_FLAG__=t,e.prototype.__NG_DI_FLAG__=t,e}const vi=bi(Zn("Inject",e=>({token:e})),-1),yi=bi(Zn("Optional"),8),wi=bi(Zn("SkipSelf"),4);let _i,xi;function Ai(e){var t;return(null===(t=function(){if(void 0===_i&&(_i=null,Re.trustedTypes))try{_i=Re.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch(t){}return _i}())||void 0===t?void 0:t.createHTML(e))||e}function Ci(e){var t;return(null===(t=function(){if(void 0===xi&&(xi=null,Re.trustedTypes))try{xi=Re.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch(t){}return xi}())||void 0===t?void 0:t.createHTML(e))||e}class Si{constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return"SafeValue must use [property]=binding: "+this.changingThisBreaksApplicationSecurity+" (see https://g.co/ng/security#xss)"}}class ki extends Si{getTypeName(){return"HTML"}}class Pi extends Si{getTypeName(){return"Style"}}class Ei extends Si{getTypeName(){return"Script"}}class Di extends Si{getTypeName(){return"URL"}}class Oi extends Si{getTypeName(){return"ResourceURL"}}function Mi(e){return e instanceof Si?e.changingThisBreaksApplicationSecurity:e}function Ti(e,t){const n=Ii(e);if(null!=n&&n!==t){if("ResourceURL"===n&&"URL"===t)return!0;throw new Error(`Required a safe ${t}, got a ${n} (see https://g.co/ng/security#xss)`)}return n===t}function Ii(e){return e instanceof Si&&e.getTypeName()||null}class Ri{constructor(e){this.inertDocumentHelper=e}getInertBodyElement(e){e="<body><remove></remove>"+e;try{const t=(new window.DOMParser).parseFromString(Ai(e),"text/html").body;return null===t?this.inertDocumentHelper.getInertBodyElement(e):(t.removeChild(t.firstChild),t)}catch(t){return null}}}class Li{constructor(e){if(this.defaultDoc=e,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const e=this.inertDocument.createElement("html");this.inertDocument.appendChild(e);const t=this.inertDocument.createElement("body");e.appendChild(t)}}getInertBodyElement(e){const t=this.inertDocument.createElement("template");if("content"in t)return t.innerHTML=Ai(e),t;const n=this.inertDocument.createElement("body");return n.innerHTML=Ai(e),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(n),n}stripCustomNsAttrs(e){const t=e.attributes;for(let i=t.length-1;0<i;i--){const n=t.item(i).name;"xmlns:ns1"!==n&&0!==n.indexOf("ns1:")||e.removeAttribute(n)}let n=e.firstChild;for(;n;)n.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(n),n=n.nextSibling}}const Fi=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi,Bi=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i;function zi(e){return(e=String(e)).match(Fi)||e.match(Bi)?e:"unsafe:"+e}function Vi(e){const t={};for(const n of e.split(","))t[n]=!0;return t}function Ni(...e){const t={};for(const n of e)for(const e in n)n.hasOwnProperty(e)&&(t[e]=!0);return t}const Hi=Vi("area,br,col,hr,img,wbr"),ji=Vi("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Ui=Vi("rp,rt"),Wi=Ni(Ui,ji),Gi=Ni(Hi,Ni(ji,Vi("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),Ni(Ui,Vi("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),Wi),$i=Vi("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),qi=Vi("srcset"),Yi=Ni($i,qi,Vi("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),Vi("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),Zi=Vi("script,style,template");class Qi{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(e){let t=e.firstChild,n=!0;for(;t;)if(t.nodeType===Node.ELEMENT_NODE?n=this.startElement(t):t.nodeType===Node.TEXT_NODE?this.chars(t.nodeValue):this.sanitizedSomething=!0,n&&t.firstChild)t=t.firstChild;else for(;t;){t.nodeType===Node.ELEMENT_NODE&&this.endElement(t);let e=this.checkClobberedElement(t,t.nextSibling);if(e){t=e;break}t=this.checkClobberedElement(t,t.parentNode)}return this.buf.join("")}startElement(e){const t=e.nodeName.toLowerCase();if(!Gi.hasOwnProperty(t))return this.sanitizedSomething=!0,!Zi.hasOwnProperty(t);this.buf.push("<"),this.buf.push(t);const n=e.attributes;for(let s=0;s<n.length;s++){const e=n.item(s),t=e.name,o=t.toLowerCase();if(!Yi.hasOwnProperty(o)){this.sanitizedSomething=!0;continue}let r=e.value;$i[o]&&(r=zi(r)),qi[o]&&(i=r,r=(i=String(i)).split(",").map(e=>zi(e.trim())).join(", ")),this.buf.push(" ",t,'="',Ji(r),'"')}var i;return this.buf.push(">"),!0}endElement(e){const t=e.nodeName.toLowerCase();Gi.hasOwnProperty(t)&&!Hi.hasOwnProperty(t)&&(this.buf.push("</"),this.buf.push(t),this.buf.push(">"))}chars(e){this.buf.push(Ji(e))}checkClobberedElement(e,t){if(t&&(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error("Failed to sanitize html because the element is clobbered: "+e.outerHTML);return t}}const Xi=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Ki=/([^\#-~ |!])/g;function Ji(e){return e.replace(/&/g,"&amp;").replace(Xi,function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"}).replace(Ki,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}let es;function ts(e,t){let n=null;try{es=es||function(e){const t=new Li(e);return function(){try{return!!(new window.DOMParser).parseFromString(Ai(""),"text/html")}catch(e){return!1}}()?new Ri(t):t}(e);let i=t?String(t):"";n=es.getInertBodyElement(i);let s=5,o=i;do{if(0===s)throw new Error("Failed to sanitize html because the input is unstable");s--,i=o,o=n.innerHTML,n=es.getInertBodyElement(i)}while(i!==o);return Ai((new Qi).sanitizeChildren(ns(n)||n))}finally{if(n){const e=ns(n)||n;for(;e.firstChild;)e.removeChild(e.firstChild)}}}function ns(e){return"content"in e&&function(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var is=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}({});function ss(e){const t=rs();return t?Ci(t.sanitize(is.HTML,e)||""):Ti(e,"HTML")?Ci(Mi(e)):ts(mt(),de(e))}function os(e){const t=rs();return t?t.sanitize(is.URL,e)||"":Ti(e,"URL")?Mi(e):zi(de(e))}function rs(){const e=It();return e&&e[12]}function as(e){return e.ngDebugContext}function ls(e){return e.ngOriginalError}function cs(e,...t){e.error(...t)}class ds{constructor(){this._console=console}handleError(e){const t=this._findOriginalError(e),n=this._findContext(e),i=function(e){return e.ngErrorLogger||cs}(e);i(this._console,"ERROR",e),t&&i(this._console,"ORIGINAL ERROR",t),n&&i(this._console,"ERROR CONTEXT",n)}_findContext(e){return e?as(e)?as(e):this._findContext(ls(e)):null}_findOriginalError(e){let t=ls(e);for(;t&&ls(t);)t=ls(t);return t}}function us(e,t){e.__ngContext__=t}const hs=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(Re))();function ps(e){return{name:"window",target:e.ownerDocument.defaultView}}function gs(e){return{name:"body",target:e.ownerDocument.body}}function fs(e){return e instanceof Function?e():e}var ms=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}({});function bs(e,t){return(void 0)(e,t)}function vs(e){const t=e[3];return it(t)?t[3]:t}function ys(e){return _s(e[13])}function ws(e){return _s(e[4])}function _s(e){for(;null!==e&&!it(e);)e=e[4];return e}function xs(e,t,n,i,s){if(null!=i){let o,r=!1;it(i)?o=i:nt(i)&&(r=!0,i=i[0]);const a=yt(i);0===e&&null!==n?null==s?Os(t,n,a):Ds(t,n,a,s||null,!0):1===e&&null!==n?Ds(t,n,a,s||null,!0):2===e?function(e,t,n){const i=Ts(e,t);i&&function(e,t,n,i){bt(e)?e.removeChild(t,n,i):t.removeChild(n)}(e,i,t,n)}(t,a,r):3===e&&t.destroyNode(a),null!=o&&function(e,t,n,i,s){const o=n[7];o!==yt(n)&&xs(t,e,i,o,s);for(let r=10;r<n.length;r++){const s=n[r];Ns(s[1],s,e,t,i,o)}}(t,e,o,n,s)}}function As(e,t,n){return bt(e)?e.createElement(t,n):null===n?e.createElement(t):e.createElementNS(n,t)}function Cs(e,t){const n=e[9],i=n.indexOf(t),s=t[3];1024&t[2]&&(t[2]&=-1025,Ot(s,-1)),n.splice(i,1)}function Ss(e,t){if(e.length<=10)return;const n=10+t,i=e[n];if(i){const o=i[17];null!==o&&o!==e&&Cs(o,i),t>0&&(e[n-1][4]=i[4]);const r=ii(e,10+t);Ns(i[1],s=i,s[11],2,null,null),s[0]=null,s[6]=null;const a=r[19];null!==a&&a.detachView(r[1]),i[3]=null,i[4]=null,i[2]&=-129}var s;return i}function ks(e,t){if(!(256&t[2])){const n=t[11];bt(n)&&n.destroyNode&&Ns(e,t,n,3,null,null),function(e){let t=e[13];if(!t)return Ps(e[1],e);for(;t;){let n=null;if(nt(t))n=t[13];else{const e=t[10];e&&(n=e)}if(!n){for(;t&&!t[4]&&t!==e;)nt(t)&&Ps(t[1],t),t=t[3];null===t&&(t=e),nt(t)&&Ps(t[1],t),n=t&&t[4]}t=n}}(t)}}function Ps(e,t){if(!(256&t[2])){t[2]&=-129,t[2]|=256,function(e,t){let n;if(null!=e&&null!=(n=e.destroyHooks))for(let i=0;i<n.length;i+=2){const e=t[n[i]];if(!(e instanceof vn)){const t=n[i+1];if(Array.isArray(t))for(let n=0;n<t.length;n+=2)t[n+1].call(e[t[n]]);else t.call(e)}}}(e,t),function(e,t){const n=e.cleanup,i=t[7];let s=-1;if(null!==n)for(let o=0;o<n.length-1;o+=2)if("string"==typeof n[o]){const e=n[o+1],r="function"==typeof e?e(t):yt(t[e]),a=i[s=n[o+2]],l=n[o+3];"boolean"==typeof l?r.removeEventListener(n[o],a,l):l>=0?i[s=l]():i[s=-l].unsubscribe(),o+=2}else{const e=i[s=n[o+1]];n[o].call(e)}if(null!==i){for(let e=s+1;e<i.length;e++)(0,i[e])();t[7]=null}}(e,t),1===t[1].type&&bt(t[11])&&t[11].destroy();const n=t[17];if(null!==n&&it(t[3])){n!==t[3]&&Cs(n,t);const i=t[19];null!==i&&i.detachView(e)}}}function Es(e,t,n){return function(e,t,n){let i=t;for(;null!==i&&40&i.type;)i=(t=i).parent;if(null===i)return n[0];if(2&i.flags){const t=e.data[i.directiveStart].encapsulation;if(t===De.None||t===De.Emulated)return null}return _t(i,n)}(e,t.parent,n)}function Ds(e,t,n,i,s){bt(e)?e.insertBefore(t,n,i,s):t.insertBefore(n,i,s)}function Os(e,t,n){bt(e)?e.appendChild(t,n):t.appendChild(n)}function Ms(e,t,n,i,s){null!==i?Ds(e,t,n,i,s):Os(e,t,n)}function Ts(e,t){return bt(e)?e.parentNode(t):t.parentNode}function Is(e,t,n){return Rs(e,t,n)}let Rs=function(e,t,n){return 40&e.type?_t(e,n):null};function Ls(e,t,n,i){const s=Es(e,i,t),o=t[11],r=Is(i.parent||t[6],i,t);if(null!=s)if(Array.isArray(n))for(let a=0;a<n.length;a++)Ms(o,s,n[a],r,!1);else Ms(o,s,n,r,!1)}function Fs(e,t){if(null!==t){const n=t.type;if(3&n)return _t(t,e);if(4&n)return zs(-1,e[t.index]);if(8&n){const n=t.child;if(null!==n)return Fs(e,n);{const n=e[t.index];return it(n)?zs(-1,n):yt(n)}}if(32&n)return bs(t,e)()||yt(e[t.index]);{const n=Bs(e,t);return null!==n?Array.isArray(n)?n[0]:Fs(vs(e[16]),n):Fs(e,t.next)}}return null}function Bs(e,t){return null!==t?e[16][6].projection[t.projection]:null}function zs(e,t){const n=10+e+1;if(n<t.length){const e=t[n],i=e[1].firstChild;if(null!==i)return Fs(e,i)}return t[7]}function Vs(e,t,n,i,s,o,r){for(;null!=n;){const a=i[n.index],l=n.type;if(r&&0===t&&(a&&us(yt(a),i),n.flags|=4),64!=(64&n.flags))if(8&l)Vs(e,t,n.child,i,s,o,!1),xs(t,e,s,a,o);else if(32&l){const r=bs(n,i);let l;for(;l=r();)xs(t,e,s,l,o);xs(t,e,s,a,o)}else 16&l?Hs(e,t,i,n,s,o):xs(t,e,s,a,o);n=r?n.projectionNext:n.next}}function Ns(e,t,n,i,s,o){Vs(n,i,e.firstChild,t,s,o,!1)}function Hs(e,t,n,i,s,o){const r=n[16],a=r[6].projection[i.projection];if(Array.isArray(a))for(let l=0;l<a.length;l++)xs(t,e,s,a[l],o);else Vs(e,t,a,r[3],s,o,!0)}function js(e,t,n){bt(e)?e.setAttribute(t,"style",n):t.style.cssText=n}function Us(e,t,n){bt(e)?""===n?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n):t.className=n}function Ws(e,t,n){let i=e.length;for(;;){const s=e.indexOf(t,n);if(-1===s)return s;if(0===s||e.charCodeAt(s-1)<=32){const n=t.length;if(s+n===i||e.charCodeAt(s+n)<=32)return s}n=s+1}}function Gs(e,t,n){let i=0;for(;i<e.length;){let s=e[i++];if(n&&"class"===s){if(s=e[i],-1!==Ws(s.toLowerCase(),t,0))return!0}else if(1===s){for(;i<e.length&&"string"==typeof(s=e[i++]);)if(s.toLowerCase()===t)return!0;return!1}}return!1}function $s(e){return 4===e.type&&"ng-template"!==e.value}function qs(e,t,n){return t===(4!==e.type||n?e.value:"ng-template")}function Ys(e,t,n){let i=4;const s=e.attrs||[],o=function(e){for(let t=0;t<e.length;t++)if(wn(e[t]))return t;return e.length}(s);let r=!1;for(let a=0;a<t.length;a++){const l=t[a];if("number"!=typeof l){if(!r)if(4&i){if(i=2|1&i,""!==l&&!qs(e,l,n)||""===l&&1===t.length){if(Zs(i))return!1;r=!0}}else{const c=8&i?l:t[++a];if(8&i&&null!==e.attrs){if(!Gs(e.attrs,c,n)){if(Zs(i))return!1;r=!0}continue}const d=Qs(8&i?"class":l,s,$s(e),n);if(-1===d){if(Zs(i))return!1;r=!0;continue}if(""!==c){let e;e=d>o?"":s[d+1].toLowerCase();const t=8&i?e:null;if(t&&-1!==Ws(t,c,0)||2&i&&c!==e){if(Zs(i))return!1;r=!0}}}}else{if(!r&&!Zs(i)&&!Zs(l))return!1;if(r&&Zs(l))continue;r=!1,i=l|1&i}}return Zs(i)||r}function Zs(e){return 0==(1&e)}function Qs(e,t,n,i){if(null===t)return-1;let s=0;if(i||!n){let n=!1;for(;s<t.length;){const i=t[s];if(i===e)return s;if(3===i||6===i)n=!0;else{if(1===i||2===i){let e=t[++s];for(;"string"==typeof e;)e=t[++s];continue}if(4===i)break;if(0===i){s+=4;continue}}s+=n?1:2}return-1}return function(e,t){let n=e.indexOf(4);if(n>-1)for(n++;n<e.length;){const i=e[n];if("number"==typeof i)return-1;if(i===t)return n;n++}return-1}(t,e)}function Xs(e,t,n=!1){for(let i=0;i<t.length;i++)if(Ys(e,t[i],n))return!0;return!1}function Ks(e,t){e:for(let n=0;n<t.length;n++){const i=t[n];if(e.length===i.length){for(let t=0;t<e.length;t++)if(e[t]!==i[t])continue e;return!0}}return!1}function Js(e,t){return e?":not("+t.trim()+")":t}function eo(e){let t=e[0],n=1,i=2,s="",o=!1;for(;n<e.length;){let r=e[n];if("string"==typeof r)if(2&i){const t=e[++n];s+="["+r+(t.length>0?'="'+t+'"':"")+"]"}else 8&i?s+="."+r:4&i&&(s+=" "+r);else""===s||Zs(r)||(t+=Js(o,s),s=""),i=r,o=o||!Zs(i);n++}return""!==s&&(t+=Js(o,s)),t}const to={};function no(e){io(Rt(),It(),an()+e,Ht())}function io(e,t,n,i){if(!i)if(3==(3&t[2])){const i=e.preOrderCheckHooks;null!==i&&pn(t,i,n)}else{const i=e.preOrderHooks;null!==i&&gn(t,i,0,n)}ln(n)}function so(e,t){return e<<17|t<<2}function oo(e){return e>>17&32767}function ro(e){return 2|e}function ao(e){return(131068&e)>>2}function lo(e,t){return-131069&e|t<<2}function co(e){return 1|e}function uo(e,t){const n=e.contentQueries;if(null!==n)for(let i=0;i<n.length;i+=2){const s=n[i],o=n[i+1];if(-1!==o){const n=e.data[o];Xt(s),n.contentQueries(2,t[o],o)}}}function ho(e,t,n,i,s,o,r,a,l,c){const d=t.blueprint.slice();return d[0]=s,d[2]=140|i,Dt(d),d[3]=d[15]=e,d[8]=n,d[10]=r||e&&e[10],d[11]=a||e&&e[11],d[12]=l||e&&e[12]||null,d[9]=c||e&&e[9]||null,d[6]=o,d[16]=2==t.type?e[16]:d,d}function po(e,t,n,i,s){let o=e.data[t];if(null===o)o=function(e,t,n,i,s){const o=Bt(),r=Vt(),a=e.data[t]=function(e,t,n,i,s,o){return{type:n,index:i,insertBeforeIndex:null,injectorIndex:t?t.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,value:s,attrs:o,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tViews:null,next:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,r?o:o&&o.parent,n,t,i,s);return null===e.firstChild&&(e.firstChild=a),null!==o&&(r?null==o.child&&null!==a.parent&&(o.child=a):null===o.next&&(o.next=a)),a}(e,t,n,i,s),Mt.lFrame.inI18n&&(o.flags|=64);else if(64&o.type){o.type=n,o.value=i,o.attrs=s;const e=function(){const e=Mt.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}();o.injectorIndex=null===e?-1:e.injectorIndex}return zt(o,!0),o}function go(e,t,n,i){if(0===n)return-1;const s=t.length;for(let o=0;o<n;o++)t.push(i),e.blueprint.push(i),e.data.push(null);return s}function fo(e,t,n){en(t);try{const i=e.viewQuery;null!==i&&Go(1,i,n);const s=e.template;null!==s&&vo(e,t,s,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),e.staticContentQueries&&uo(e,t),e.staticViewQueries&&Go(2,e.viewQuery,n);const o=e.components;null!==o&&function(e,t){for(let n=0;n<t.length;n++)No(e,t[n])}(t,o)}catch(i){throw e.firstCreatePass&&(e.incompleteFirstPass=!0),i}finally{t[2]&=-5,rn()}}function mo(e,t,n,i){const s=t[2];if(256==(256&s))return;en(t);const o=Ht();try{Dt(t),Mt.lFrame.bindingIndex=e.bindingStartIndex,null!==n&&vo(e,t,n,2,i);const r=3==(3&s);if(!o)if(r){const n=e.preOrderCheckHooks;null!==n&&pn(t,n,null)}else{const n=e.preOrderHooks;null!==n&&gn(t,n,0,null),fn(t,0)}if(function(e){for(let t=ys(e);null!==t;t=ws(t)){if(!t[2])continue;const e=t[9];for(let t=0;t<e.length;t++){const n=e[t],i=n[3];0==(1024&n[2])&&Ot(i,1),n[2]|=1024}}}(t),function(e){for(let t=ys(e);null!==t;t=ws(t))for(let e=10;e<t.length;e++){const n=t[e],i=n[1];Pt(n)&&mo(i,n,i.template,n[8])}}(t),null!==e.contentQueries&&uo(e,t),!o)if(r){const n=e.contentCheckHooks;null!==n&&pn(t,n)}else{const n=e.contentHooks;null!==n&&gn(t,n,1),fn(t,1)}!function(e,t){const n=e.hostBindingOpCodes;if(null!==n)try{for(let e=0;e<n.length;e++){const i=n[e];if(i<0)ln(~i);else{const s=i,o=n[++e],r=n[++e];qt(o,s),r(2,t[s])}}}finally{ln(-1)}}(e,t);const a=e.components;null!==a&&function(e,t){for(let n=0;n<t.length;n++)zo(e,t[n])}(t,a);const l=e.viewQuery;if(null!==l&&Go(2,l,i),!o)if(r){const n=e.viewCheckHooks;null!==n&&pn(t,n)}else{const n=e.viewHooks;null!==n&&gn(t,n,2),fn(t,2)}!0===e.firstUpdatePass&&(e.firstUpdatePass=!1),o||(t[2]&=-73),1024&t[2]&&(t[2]&=-1025,Ot(t[3],-1))}finally{rn()}}function bo(e,t,n,i){const s=t[10],o=!Ht(),r=kt(t);try{o&&!r&&s.begin&&s.begin(),r&&fo(e,t,i),mo(e,t,n,i)}finally{o&&!r&&s.end&&s.end()}}function vo(e,t,n,i,s){const o=an();try{ln(-1),2&i&&t.length>20&&io(e,t,20,Ht()),n(i,s)}finally{ln(o)}}function yo(e,t,n){if(st(t)){const i=t.directiveEnd;for(let s=t.directiveStart;s<i;s++){const t=e.data[s];t.contentQueries&&t.contentQueries(1,n[s],s)}}}function wo(e,t,n){Tt()&&(function(e,t,n,i){const s=n.directiveStart,o=n.directiveEnd;e.firstCreatePass||On(n,t),us(i,t);const r=n.initialInputs;for(let a=s;a<o;a++){const i=e.data[a],o=at(i);o&&Ro(t,n,i);const l=jn(t,e,a,n);us(l,t),null!==r&&Lo(0,a-s,l,i,0,r),o&&(Ct(n.index,t)[8]=l)}}(e,t,n,_t(n,t)),128==(128&n.flags)&&function(e,t,n){const i=n.directiveStart,s=n.directiveEnd,o=n.index,r=Mt.lFrame.currentDirectiveIndex;try{ln(o);for(let n=i;n<s;n++){const i=e.data[n],s=t[n];Yt(n),null===i.hostBindings&&0===i.hostVars&&null===i.hostAttrs||Do(i,s)}}finally{ln(-1),Yt(r)}}(e,t,n))}function _o(e,t,n=_t){const i=t.localNames;if(null!==i){let s=t.index+1;for(let o=0;o<i.length;o+=2){const r=i[o+1],a=-1===r?n(t,e):e[r];e[s++]=a}}}function xo(e){const t=e.tView;return null===t||t.incompleteFirstPass?e.tView=Ao(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts):t}function Ao(e,t,n,i,s,o,r,a,l,c){const d=20+i,u=d+s,h=function(e,t){const n=[];for(let i=0;i<t;i++)n.push(i<e?null:to);return n}(d,u),p="function"==typeof c?c():c;return h[1]={type:e,blueprint:h,template:n,queries:null,viewQuery:a,declTNode:t,data:h.slice().fill(null,d),bindingStartIndex:d,expandoStartIndex:u,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof o?o():o,pipeRegistry:"function"==typeof r?r():r,firstChild:null,schemas:l,consts:p,incompleteFirstPass:!1}}function Co(e,t,n,i){const s=qo(t);null===n?s.push(i):(s.push(n),e.firstCreatePass&&Yo(e).push(i,s.length-1))}function So(e,t,n){for(let i in e)if(e.hasOwnProperty(i)){const s=e[i];(n=null===n?{}:n).hasOwnProperty(i)?n[i].push(t,s):n[i]=[t,s]}return n}function ko(e,t,n,i,s,o,r,a){const l=_t(t,n);let c,d=t.inputs;var u;!a&&null!=d&&(c=d[i])?(Xo(e,n,c,i,s),ot(t)&&function(e,t){const n=Ct(t,e);16&n[2]||(n[2]|=64)}(n,t.index)):3&t.type&&(i="class"===(u=i)?"className":"for"===u?"htmlFor":"formaction"===u?"formAction":"innerHtml"===u?"innerHTML":"readonly"===u?"readOnly":"tabindex"===u?"tabIndex":u,s=null!=r?r(s,t.value||"",i):s,bt(o)?o.setProperty(l,i,s):_n(i)||(l.setProperty?l.setProperty(i,s):l[i]=s))}function Po(e,t,n,i){let s=!1;if(Tt()){const o=function(e,t,n){const i=e.directiveRegistry;let s=null;if(i)for(let o=0;o<i.length;o++){const r=i[o];Xs(n,r.selectors,!1)&&(s||(s=[]),Rn(On(n,t),e,r.type),at(r)?(Oo(e,n),s.unshift(r)):s.push(r))}return s}(e,t,n),r=null===i?null:{"":-1};if(null!==o){s=!0,To(n,e.data.length,o.length);for(let e=0;e<o.length;e++){const t=o[e];t.providersResolver&&t.providersResolver(t)}let i=!1,a=!1,l=go(e,t,o.length,null);for(let s=0;s<o.length;s++){const c=o[s];n.mergedAttrs=xn(n.mergedAttrs,c.hostAttrs),Io(e,n,t,l,c),Mo(l,c,r),null!==c.contentQueries&&(n.flags|=8),null===c.hostBindings&&null===c.hostAttrs&&0===c.hostVars||(n.flags|=128);const d=c.type.prototype;!i&&(d.ngOnChanges||d.ngOnInit||d.ngDoCheck)&&((e.preOrderHooks||(e.preOrderHooks=[])).push(n.index),i=!0),a||!d.ngOnChanges&&!d.ngDoCheck||((e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(n.index),a=!0),l++}!function(e,t){const n=t.directiveEnd,i=e.data,s=t.attrs,o=[];let r=null,a=null;for(let l=t.directiveStart;l<n;l++){const e=i[l],n=e.inputs,c=null===s||$s(t)?null:Fo(n,s);o.push(c),r=So(n,l,r),a=So(e.outputs,l,a)}null!==r&&(r.hasOwnProperty("class")&&(t.flags|=16),r.hasOwnProperty("style")&&(t.flags|=32)),t.initialInputs=o,t.inputs=r,t.outputs=a}(e,n)}r&&function(e,t,n){if(t){const i=e.localNames=[];for(let e=0;e<t.length;e+=2){const s=n[t[e+1]];if(null==s)throw new ce("301",`Export of name '${t[e+1]}' not found!`);i.push(t[e],s)}}}(n,i,r)}return n.mergedAttrs=xn(n.mergedAttrs,n.attrs),s}function Eo(e,t,n,i,s,o){const r=o.hostBindings;if(r){let n=e.hostBindingOpCodes;null===n&&(n=e.hostBindingOpCodes=[]);const o=~t.index;(function(e){let t=e.length;for(;t>0;){const n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(n)!=o&&n.push(o),n.push(i,s,r)}}function Do(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function Oo(e,t){t.flags|=2,(e.components||(e.components=[])).push(t.index)}function Mo(e,t,n){if(n){if(t.exportAs)for(let i=0;i<t.exportAs.length;i++)n[t.exportAs[i]]=e;at(t)&&(n[""]=e)}}function To(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t}function Io(e,t,n,i,s){e.data[i]=s;const o=s.factory||(s.factory=lt(s.type)),r=new vn(o,at(s),null);e.blueprint[i]=r,n[i]=r,Eo(e,t,0,i,go(e,n,s.hostVars,to),s)}function Ro(e,t,n){const i=_t(t,e),s=xo(n),o=e[10],r=Ho(e,ho(e,s,null,n.onPush?64:16,i,t,o,o.createRenderer(i,n),null,null));e[t.index]=r}function Lo(e,t,n,i,s,o){const r=o[t];if(null!==r){const e=i.setInput;for(let t=0;t<r.length;){const s=r[t++],o=r[t++],a=r[t++];null!==e?i.setInput(n,a,s,o):n[o]=a}}}function Fo(e,t){let n=null,i=0;for(;i<t.length;){const s=t[i];if(0!==s)if(5!==s){if("number"==typeof s)break;e.hasOwnProperty(s)&&(null===n&&(n=[]),n.push(s,e[s],t[i+1])),i+=2}else i+=2;else i+=4}return n}function Bo(e,t,n,i){return new Array(e,!0,!1,t,null,0,i,n,null,null)}function zo(e,t){const n=Ct(t,e);if(Pt(n)){const e=n[1];80&n[2]?mo(e,n,e.template,n[8]):n[5]>0&&Vo(n)}}function Vo(e){for(let n=ys(e);null!==n;n=ws(n))for(let e=10;e<n.length;e++){const t=n[e];if(1024&t[2]){const e=t[1];mo(e,t,e.template,t[8])}else t[5]>0&&Vo(t)}const t=e[1].components;if(null!==t)for(let n=0;n<t.length;n++){const i=Ct(t[n],e);Pt(i)&&i[5]>0&&Vo(i)}}function No(e,t){const n=Ct(t,e),i=n[1];!function(e,t){for(let n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n])}(i,n),fo(i,n,n[8])}function Ho(e,t){return e[13]?e[14][4]=t:e[13]=t,e[14]=t,t}function jo(e){for(;e;){e[2]|=64;const t=vs(e);if(0!=(512&e[2])&&!t)return e;e=t}return null}function Uo(e,t,n){const i=t[10];i.begin&&i.begin();try{mo(e,t,e.template,n)}catch(s){throw Qo(t,s),s}finally{i.end&&i.end()}}function Wo(e){!function(e){for(let t=0;t<e.components.length;t++){const n=e.components[t],i=St(n),s=i[1];bo(s,i,s.template,n)}}(e[8])}function Go(e,t,n){Xt(0),t(e,n)}const $o=(()=>Promise.resolve(null))();function qo(e){return e[7]||(e[7]=[])}function Yo(e){return e.cleanup||(e.cleanup=[])}function Zo(e,t,n){return(null===e||at(e))&&(n=function(e){for(;Array.isArray(e);){if("object"==typeof e[1])return e;e=e[0]}return null}(n[t.index])),n[11]}function Qo(e,t){const n=e[9],i=n?n.get(ds,null):null;i&&i.handleError(t)}function Xo(e,t,n,i,s){for(let o=0;o<n.length;){const r=n[o++],a=n[o++],l=t[r],c=e.data[r];null!==c.setInput?c.setInput(l,s,i,a):l[a]=s}}function Ko(e,t,n){const i=wt(t,e);!function(e,t,n){bt(e)?e.setValue(t,n):t.textContent=n}(e[11],i,n)}function Jo(e,t,n){let i=n?e.styles:null,s=n?e.classes:null,o=0;if(null!==t)for(let r=0;r<t.length;r++){const e=t[r];"number"==typeof e?o=e:1==o?s=se(s,e):2==o&&(i=se(i,e+": "+t[++r]+";"))}n?e.styles=i:e.stylesWithoutHost=i,n?e.classes=s:e.classesWithoutHost=s}const er=new Xn("INJECTOR",-1);class tr{get(e,t=li){if(t===li){const t=new Error(`NullInjectorError: No provider for ${ie(e)}!`);throw t.name="NullInjectorError",t}return t}}const nr=new Xn("Set Injector scope."),ir={},sr={},or=[];let rr=void 0;function ar(){return void 0===rr&&(rr=new tr),rr}function lr(e,t=null,n=null,i){return new cr(e,n,t||ar(),i)}class cr{constructor(e,t,n,i=null){this.parent=n,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;const s=[];t&&ti(t,n=>this.processProvider(n,e,t)),ti([e],e=>this.processInjectorType(e,[],s)),this.records.set(er,hr(void 0,this));const o=this.records.get(nr);this.scope=null!=o?o.value:null,this.source=i||("object"==typeof e?null:ie(e))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(e=>e.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(e,t=li,n=Ae.Default){this.assertNotDestroyed();const i=hi(this);try{if(!(n&Ae.SkipSelf)){let t=this.records.get(e);if(void 0===t){const n=("function"==typeof(s=e)||"object"==typeof s&&s instanceof Xn)&&me(e);t=n&&this.injectableDefInScope(n)?hr(dr(e),ir):null,this.records.set(e,t)}if(null!=t)return this.hydrate(e,t)}return(n&Ae.Self?ar():this.parent).get(e,t=n&Ae.Optional&&t===li?null:t)}catch(o){if("NullInjectorError"===o.name){if((o.ngTempTokenPath=o.ngTempTokenPath||[]).unshift(ie(e)),i)throw o;return function(e,t,n,i){const s=e.ngTempTokenPath;throw t.__source&&s.unshift(t.__source),e.message=function(e,t,n,i=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.substr(2):e;let s=ie(t);if(Array.isArray(t))s=t.map(ie).join(" -> ");else if("object"==typeof t){let e=[];for(let n in t)if(t.hasOwnProperty(n)){let i=t[n];e.push(n+":"+("string"==typeof i?JSON.stringify(i):ie(i)))}s=`{${e.join(", ")}}`}return`${n}${i?"("+i+")":""}[${s}]: ${e.replace(ci,"\n  ")}`}("\n"+e.message,s,n,i),e.ngTokenPath=s,e.ngTempTokenPath=null,e}(o,e,"R3InjectorError",this.source)}throw o}finally{hi(i)}var s}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(e=>this.get(e))}toString(){const e=[];return this.records.forEach((t,n)=>e.push(ie(n))),`R3Injector[${e.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(e,t,n){if(!(e=ae(e)))return!1;let i=ve(e);const s=null==i&&e.ngModule||void 0,o=void 0===s?e:s,r=-1!==n.indexOf(o);if(void 0!==s&&(i=ve(s)),null==i)return!1;if(null!=i.imports&&!r){let e;n.push(o);try{ti(i.imports,i=>{this.processInjectorType(i,t,n)&&(void 0===e&&(e=[]),e.push(i))})}finally{}if(void 0!==e)for(let t=0;t<e.length;t++){const{ngModule:n,providers:i}=e[t];ti(i,e=>this.processProvider(e,n,i||or))}}this.injectorDefTypes.add(o);const a=lt(o)||(()=>new o);this.records.set(o,hr(a,ir));const l=i.providers;if(null!=l&&!r){const t=e;ti(l,e=>this.processProvider(e,t,l))}return void 0!==s&&void 0!==e.providers}processProvider(e,t,n){let i=gr(e=ae(e))?e:ae(e&&e.provide);const s=function(e,t,n){return pr(e)?hr(void 0,e.useValue):hr(ur(e),ir)}(e);if(gr(e)||!0!==e.multi)this.records.get(i);else{let t=this.records.get(i);t||(t=hr(void 0,ir,!0),t.factory=()=>mi(t.multi),this.records.set(i,t)),i=e,t.multi.push(e)}this.records.set(i,s)}hydrate(e,t){var n;return t.value===ir&&(t.value=sr,t.value=t.factory()),"object"==typeof t.value&&t.value&&null!==(n=t.value)&&"object"==typeof n&&"function"==typeof n.ngOnDestroy&&this.onDestroy.add(t.value),t.value}injectableDefInScope(e){return!!e.providedIn&&("string"==typeof e.providedIn?"any"===e.providedIn||e.providedIn===this.scope:this.injectorDefTypes.has(e.providedIn))}}function dr(e){const t=me(e),n=null!==t?t.factory:lt(e);if(null!==n)return n;if(e instanceof Xn)throw new Error(`Token ${ie(e)} is missing a \u0275prov definition.`);if(e instanceof Function)return function(e){const t=e.length;if(t>0){const n=si(t,"?");throw new Error(`Can't resolve all parameters for ${ie(e)}: (${n.join(", ")}).`)}const n=function(e){const t=e&&(e[ye]||e[_e]);if(t){const n=function(e){if(e.hasOwnProperty("name"))return e.name;const t=(""+e).match(/^function\s*([^\s(]+)/);return null===t?"":t[1]}(e);return console.warn(`DEPRECATED: DI is instantiating a token "${n}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${n}" class.`),t}return null}(e);return null!==n?()=>n.factory(e):()=>new e}(e);throw new Error("unreachable")}function ur(e,t,n){let i=void 0;if(gr(e)){const t=ae(e);return lt(t)||dr(t)}if(pr(e))i=()=>ae(e.useValue);else if((s=e)&&s.useFactory)i=()=>e.useFactory(...mi(e.deps||[]));else if(function(e){return!(!e||!e.useExisting)}(e))i=()=>gi(ae(e.useExisting));else{const t=ae(e&&(e.useClass||e.provide));if(!function(e){return!!e.deps}(e))return lt(t)||dr(t);i=()=>new t(...mi(e.deps))}var s;return i}function hr(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function pr(e){return null!==e&&"object"==typeof e&&di in e}function gr(e){return"function"==typeof e}const fr=function(e,t,n){return function(e,t=null,n=null,i){const s=lr(e,t,n,i);return s._resolveInjectorDefTypes(),s}({name:n},t,e,n)};let mr=(()=>{class e{static create(e,t){return Array.isArray(e)?fr(e,t,""):fr(e.providers,e.parent,e.name||"")}}return e.THROW_IF_NOT_FOUND=li,e.NULL=new tr,e.\u0275prov=pe({token:e,providedIn:"any",factory:()=>gi(er)}),e.__NG_ELEMENT_ID__=-1,e})();function br(e,t){hn(St(e)[1],Ft())}function vr(e){let t=Object.getPrototypeOf(e.type.prototype).constructor,n=!0;const i=[e];for(;t;){let s=void 0;if(at(e))s=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new Error("Directives cannot inherit Components");s=t.\u0275dir}if(s){if(n){i.push(s);const t=e;t.inputs=yr(e.inputs),t.declaredInputs=yr(e.declaredInputs),t.outputs=yr(e.outputs);const n=s.hostBindings;n&&xr(e,n);const o=s.viewQuery,r=s.contentQueries;if(o&&wr(e,o),r&&_r(e,r),ne(e.inputs,s.inputs),ne(e.declaredInputs,s.declaredInputs),ne(e.outputs,s.outputs),at(s)&&s.data.animation){const t=e.data;t.animation=(t.animation||[]).concat(s.data.animation)}}const t=s.features;if(t)for(let i=0;i<t.length;i++){const s=t[i];s&&s.ngInherit&&s(e),s===vr&&(n=!1)}}t=Object.getPrototypeOf(t)}!function(e){let t=0,n=null;for(let i=e.length-1;i>=0;i--){const s=e[i];s.hostVars=t+=s.hostVars,s.hostAttrs=xn(s.hostAttrs,n=xn(n,s.hostAttrs))}}(i)}function yr(e){return e===Le?{}:e===Be?[]:e}function wr(e,t){const n=e.viewQuery;e.viewQuery=n?(e,i)=>{t(e,i),n(e,i)}:t}function _r(e,t){const n=e.contentQueries;e.contentQueries=n?(e,i,s)=>{t(e,i,s),n(e,i,s)}:t}function xr(e,t){const n=e.hostBindings;e.hostBindings=n?(e,i)=>{t(e,i),n(e,i)}:t}let Ar=null;function Cr(){if(!Ar){const e=Re.Symbol;if(e&&e.iterator)Ar=e.iterator;else{const e=Object.getOwnPropertyNames(Map.prototype);for(let t=0;t<e.length;++t){const n=e[t];"entries"!==n&&"size"!==n&&Map.prototype[n]===Map.prototype.entries&&(Ar=n)}}}return Ar}class Sr{constructor(e){this.wrapped=e}static wrap(e){return new Sr(e)}static unwrap(e){return Sr.isWrapped(e)?e.wrapped:e}static isWrapped(e){return e instanceof Sr}}function kr(e){return!!Pr(e)&&(Array.isArray(e)||!(e instanceof Map)&&Cr()in e)}function Pr(e){return null!==e&&("function"==typeof e||"object"==typeof e)}function Er(e,t,n){return e[t]=n}function Dr(e,t,n){return!Object.is(e[t],n)&&(e[t]=n,!0)}function Or(e,t,n,i){const s=Dr(e,t,n);return Dr(e,t+1,i)||s}function Mr(e,t,n,i,s){const o=Or(e,t,n,i);return Dr(e,t+2,s)||o}function Tr(e,t,n,i,s,o){const r=Or(e,t,n,i);return Or(e,t+2,s,o)||r}function Ir(e,t,n,i){const s=It();return Dr(s,Gt(),t)&&(Rt(),function(e,t,n,i,s,o){const r=_t(e,t);!function(e,t,n,i,s,o,r){if(null==o)bt(e)?e.removeAttribute(t,s,n):t.removeAttribute(s);else{const a=null==r?de(o):r(o,i||"",s);bt(e)?e.setAttribute(t,s,a,n):n?t.setAttributeNS(n,s,a):t.setAttribute(s,a)}}(t[11],r,o,e.value,n,i,s)}(cn(),s,e,t,n,i)),Ir}function Rr(e,t,n,i){return Dr(e,Gt(),n)?t+de(n)+i:to}function Lr(e,t,n,i,s,o){const r=Or(e,Wt(),n,s);return $t(2),r?t+de(n)+i+de(s)+o:to}function Fr(e,t,n,i,s,o,r,a){const l=It(),c=Rt(),d=e+20,u=c.firstCreatePass?function(e,t,n,i,s,o,r,a,l){const c=t.consts,d=po(t,e,4,r||null,Et(c,a));Po(t,n,d,Et(c,l)),hn(t,d);const u=d.tViews=Ao(2,d,i,s,o,t.directiveRegistry,t.pipeRegistry,null,t.schemas,c);return null!==t.queries&&(t.queries.template(t,d),u.queries=t.queries.embeddedTView(d)),d}(d,c,l,t,n,i,s,o,r):c.data[d];zt(u,!1);const h=l[11].createComment("");Ls(c,l,h,u),us(h,l),Ho(l,l[d]=Bo(h,l,h,u)),rt(u)&&wo(c,l,u),null!=r&&_o(l,u,a)}function Br(e){return At(Mt.lFrame.contextLView,20+e)}function zr(e,t=Ae.Default){const n=It();return null===n?gi(e,t):Bn(Ft(),n,ae(e),t)}function Vr(e,t,n){const i=It();return Dr(i,Gt(),t)&&ko(Rt(),cn(),i,e,t,i[11],n,!1),Vr}function Nr(e,t,n,i,s){const o=s?"class":"style";Xo(e,n,t.inputs[o],o,i)}function Hr(e,t,n,i){const s=It(),o=Rt(),r=20+e,a=s[11],l=s[r]=As(a,t,Mt.lFrame.currentNamespace),c=o.firstCreatePass?function(e,t,n,i,s,o,r){const a=t.consts,l=po(t,e,2,s,Et(a,o));return Po(t,n,l,Et(a,r)),null!==l.attrs&&Jo(l,l.attrs,!1),null!==l.mergedAttrs&&Jo(l,l.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,l),l}(r,o,s,0,t,n,i):o.data[r];zt(c,!0);const d=c.mergedAttrs;null!==d&&yn(a,l,d);const u=c.classes;null!==u&&Us(a,l,u);const h=c.styles;null!==h&&js(a,l,h),64!=(64&c.flags)&&Ls(o,s,l,c),0===Mt.lFrame.elementDepthCount&&us(l,s),Mt.lFrame.elementDepthCount++,rt(c)&&(wo(o,s,c),yo(o,c,s)),null!==i&&_o(s,c)}function jr(){let e=Ft();Vt()?Nt():(e=e.parent,zt(e,!1));const t=e;Mt.lFrame.elementDepthCount--;const n=Rt();n.firstCreatePass&&(hn(n,e),st(e)&&n.queries.elementEnd(e)),null!=t.classesWithoutHost&&function(e){return 0!=(16&e.flags)}(t)&&Nr(n,t,It(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function(e){return 0!=(32&e.flags)}(t)&&Nr(n,t,It(),t.stylesWithoutHost,!1)}function Ur(e,t,n,i){Hr(e,t,n,i),jr()}function Wr(e,t,n){const i=It(),s=Rt(),o=e+20,r=s.firstCreatePass?function(e,t,n,i,s){const o=t.consts,r=Et(o,i),a=po(t,e,8,"ng-container",r);return null!==r&&Jo(a,r,!0),Po(t,n,a,Et(o,s)),null!==t.queries&&t.queries.elementStart(t,a),a}(o,s,i,t,n):s.data[o];zt(r,!0);const a=i[o]=i[11].createComment("");Ls(s,i,a,r),us(a,i),rt(r)&&(wo(s,i,r),yo(s,r,i)),null!=n&&_o(i,r)}function Gr(){let e=Ft();const t=Rt();Vt()?Nt():(e=e.parent,zt(e,!1)),t.firstCreatePass&&(hn(t,e),st(e)&&t.queries.elementEnd(e))}function $r(e,t,n){Wr(e,t,n),Gr()}function qr(){return It()}function Yr(e){return!!e&&"function"==typeof e.then}function Zr(e){return!!e&&"function"==typeof e.subscribe}const Qr=Zr;function Xr(e,t,n=!1,i){const s=It(),o=Rt(),r=Ft();return Jr(o,s,s[11],r,e,t,n,i),Xr}function Kr(e,t,n=!1,i){const s=Ft(),o=It(),r=Rt();return Jr(r,o,Zo(Zt(r.data),s,o),s,e,t,n,i),Kr}function Jr(e,t,n,i,s,o,r=!1,a){const l=rt(i),c=e.firstCreatePass&&Yo(e),d=qo(t);let u=!0;if(3&i.type){const h=_t(i,t),p=a?a(h):Le,g=p.target||h,f=d.length,m=a?e=>a(yt(e[i.index])).target:i.index;if(bt(n)){let r=null;if(!a&&l&&(r=function(e,t,n,i){const s=e.cleanup;if(null!=s)for(let o=0;o<s.length-1;o+=2){const e=s[o];if(e===n&&s[o+1]===i){const e=t[7],n=s[o+2];return e.length>n?e[n]:null}"string"==typeof e&&(o+=2)}return null}(e,t,s,i.index)),null!==r)(r.__ngLastListenerFn__||r).__ngNextListenerFn__=o,r.__ngLastListenerFn__=o,u=!1;else{o=ta(i,t,o,!1);const e=n.listen(p.name||g,s,o);d.push(o,e),c&&c.push(s,m,f,f+1)}}else o=ta(i,t,o,!0),g.addEventListener(s,o,r),d.push(o),c&&c.push(s,m,f,r)}else o=ta(i,t,o,!1);const h=i.outputs;let p;if(u&&null!==h&&(p=h[s])){const e=p.length;if(e)for(let n=0;n<e;n+=2){const e=t[p[n]][p[n+1]].subscribe(o),r=d.length;d.push(o,e),c&&c.push(s,i.index,r,-(r+1))}}}function ea(e,t,n){try{return!1!==t(n)}catch(i){return Qo(e,i),!1}}function ta(e,t,n,i){return function s(o){if(o===Function)return n;const r=2&e.flags?Ct(e.index,t):t;0==(32&t[2])&&jo(r);let a=ea(t,n,o),l=s.__ngNextListenerFn__;for(;l;)a=ea(t,l,o)&&a,l=l.__ngNextListenerFn__;return i&&!1===a&&(o.preventDefault(),o.returnValue=!1),a}}function na(e=1){return function(e){return(Mt.lFrame.contextLView=function(e,t){for(;e>0;)t=t[15],e--;return t}(e,Mt.lFrame.contextLView))[8]}(e)}function ia(e,t){let n=null;const i=function(e){const t=e.attrs;if(null!=t){const e=t.indexOf(5);if(0==(1&e))return t[e+1]}return null}(e);for(let s=0;s<t.length;s++){const o=t[s];if("*"!==o){if(null===i?Xs(e,o,!0):Ks(i,o))return s}else n=s}return n}function sa(e){const t=It()[16][6];if(!t.projection){const n=t.projection=si(e?e.length:1,null),i=n.slice();let s=t.child;for(;null!==s;){const t=e?ia(s,e):0;null!==t&&(i[t]?i[t].projectionNext=s:n[t]=s,i[t]=s),s=s.next}}}function oa(e,t=0,n){const i=It(),s=Rt(),o=po(s,20+e,16,null,n||null);null===o.projection&&(o.projection=t),Nt(),64!=(64&o.flags)&&function(e,t,n){Hs(t[11],0,t,n,Es(e,n,t),Is(n.parent||t[6],n,t))}(s,i,o)}function ra(e,t,n){return aa(e,"",t,"",n),ra}function aa(e,t,n,i,s){const o=It(),r=Rr(o,t,n,i);return r!==to&&ko(Rt(),cn(),o,e,r,o[11],s,!1),aa}function la(e,t,n,i,s,o,r){const a=It(),l=Lr(a,t,n,i,s,o);return l!==to&&ko(Rt(),cn(),a,e,l,a[11],r,!1),la}function ca(e,t,n,i,s){const o=e[n+1],r=null===t;let a=i?oo(o):ao(o),l=!1;for(;0!==a&&(!1===l||r);){const n=e[a+1];da(e[a],t)&&(l=!0,e[a+1]=i?co(n):ro(n)),a=i?oo(n):ao(n)}l&&(e[n+1]=i?ro(o):co(o))}function da(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&ai(e,t)>=0}const ua={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function ha(e){return e.substring(ua.key,ua.keyEnd)}function pa(e,t){const n=ua.textEnd;return n===t?-1:(t=ua.keyEnd=function(e,t,n){for(;t<n&&e.charCodeAt(t)>32;)t++;return t}(e,ua.key=t,n),ga(e,t,n))}function ga(e,t,n){for(;t<n&&e.charCodeAt(t)<=32;)t++;return t}function fa(e,t,n){return ya(e,t,n,!1),fa}function ma(e,t){return ya(e,t,null,!0),ma}function ba(e){wa(oi,va,e,!0)}function va(e,t){for(let n=function(e){return function(e){ua.key=0,ua.keyEnd=0,ua.value=0,ua.valueEnd=0,ua.textEnd=e.length}(e),pa(e,ga(e,0,ua.textEnd))}(t);n>=0;n=pa(t,n))oi(e,ha(t),!0)}function ya(e,t,n,i){const s=It(),o=Rt(),r=$t(2);o.firstUpdatePass&&xa(o,e,r,i),t!==to&&Dr(s,r,t)&&Sa(o,o.data[an()],s,s[11],e,s[r+1]=function(e,t){return null==e||("string"==typeof t?e+=t:"object"==typeof e&&(e=ie(Mi(e)))),e}(t,n),i,r)}function wa(e,t,n,i){const s=Rt(),o=$t(2);s.firstUpdatePass&&xa(s,null,o,i);const r=It();if(n!==to&&Dr(r,o,n)){const a=s.data[an()];if(Ea(a,i)&&!_a(s,o)){let e=i?a.classesWithoutHost:a.stylesWithoutHost;null!==e&&(n=se(e,n||"")),Nr(s,a,r,n,i)}else!function(e,t,n,i,s,o,r,a){s===to&&(s=Fe);let l=0,c=0,d=0<s.length?s[0]:null,u=0<o.length?o[0]:null;for(;null!==d||null!==u;){const h=l<s.length?s[l+1]:void 0,p=c<o.length?o[c+1]:void 0;let g=null,f=void 0;d===u?(l+=2,c+=2,h!==p&&(g=u,f=p)):null===u||null!==d&&d<u?(l+=2,g=d):(c+=2,g=u,f=p),null!==g&&Sa(e,t,n,i,g,f,r,a),d=l<s.length?s[l]:null,u=c<o.length?o[c]:null}}(s,a,r,r[11],r[o+1],r[o+1]=function(e,t,n){if(null==n||""===n)return Fe;const i=[],s=Mi(n);if(Array.isArray(s))for(let o=0;o<s.length;o++)e(i,s[o],!0);else if("object"==typeof s)for(const o in s)s.hasOwnProperty(o)&&e(i,o,s[o]);else"string"==typeof s&&t(i,s);return i}(e,t,n),i,o)}}function _a(e,t){return t>=e.expandoStartIndex}function xa(e,t,n,i){const s=e.data;if(null===s[n+1]){const o=s[an()],r=_a(e,n);Ea(o,i)&&null===t&&!r&&(t=!1),t=function(e,t,n,i){const s=Zt(e);let o=i?t.residualClasses:t.residualStyles;if(null===s)0===(i?t.classBindings:t.styleBindings)&&(n=Ca(n=Aa(null,e,t,n,i),t.attrs,i),o=null);else{const r=t.directiveStylingLast;if(-1===r||e[r]!==s)if(n=Aa(s,e,t,n,i),null===o){let n=function(e,t,n){const i=n?t.classBindings:t.styleBindings;if(0!==ao(i))return e[oo(i)]}(e,t,i);void 0!==n&&Array.isArray(n)&&(n=Aa(null,e,t,n[1],i),n=Ca(n,t.attrs,i),function(e,t,n,i){e[oo(n?t.classBindings:t.styleBindings)]=i}(e,t,i,n))}else o=function(e,t,n){let i=void 0;const s=t.directiveEnd;for(let o=1+t.directiveStylingLast;o<s;o++)i=Ca(i,e[o].hostAttrs,n);return Ca(i,t.attrs,n)}(e,t,i)}return void 0!==o&&(i?t.residualClasses=o:t.residualStyles=o),n}(s,o,t,i),function(e,t,n,i,s,o){let r=o?t.classBindings:t.styleBindings,a=oo(r),l=ao(r);e[i]=n;let c,d=!1;if(Array.isArray(n)){const e=n;c=e[1],(null===c||ai(e,c)>0)&&(d=!0)}else c=n;if(s)if(0!==l){const t=oo(e[a+1]);e[i+1]=so(t,a),0!==t&&(e[t+1]=lo(e[t+1],i)),e[a+1]=131071&e[a+1]|i<<17}else e[i+1]=so(a,0),0!==a&&(e[a+1]=lo(e[a+1],i)),a=i;else e[i+1]=so(l,0),0===a?a=i:e[l+1]=lo(e[l+1],i),l=i;d&&(e[i+1]=ro(e[i+1])),ca(e,c,i,!0),ca(e,c,i,!1),function(e,t,n,i,s){const o=s?e.residualClasses:e.residualStyles;null!=o&&"string"==typeof t&&ai(o,t)>=0&&(n[i+1]=co(n[i+1]))}(t,c,e,i,o),r=so(a,l),o?t.classBindings=r:t.styleBindings=r}(s,o,t,n,r,i)}}function Aa(e,t,n,i,s){let o=null;const r=n.directiveEnd;let a=n.directiveStylingLast;for(-1===a?a=n.directiveStart:a++;a<r&&(o=t[a],i=Ca(i,o.hostAttrs,s),o!==e);)a++;return null!==e&&(n.directiveStylingLast=a),i}function Ca(e,t,n){const i=n?1:2;let s=-1;if(null!==t)for(let o=0;o<t.length;o++){const r=t[o];"number"==typeof r?s=r:s===i&&(Array.isArray(e)||(e=void 0===e?[]:["",e]),oi(e,r,!!n||t[++o]))}return void 0===e?null:e}function Sa(e,t,n,i,s,o,r,a){if(!(3&t.type))return;const l=e.data,c=l[a+1];Pa(1==(1&c)?ka(l,t,n,s,ao(c),r):void 0)||(Pa(o)||2==(2&c)&&(o=ka(l,null,n,s,a,r)),function(e,t,n,i,s){const o=bt(e);if(t)s?o?e.addClass(n,i):n.classList.add(i):o?e.removeClass(n,i):n.classList.remove(i);else{let t=-1===i.indexOf("-")?void 0:ms.DashCase;if(null==s)o?e.removeStyle(n,i,t):n.style.removeProperty(i);else{const r="string"==typeof s&&s.endsWith("!important");r&&(s=s.slice(0,-10),t|=ms.Important),o?e.setStyle(n,i,s,t):n.style.setProperty(i,s,r?"important":"")}}}(i,r,wt(an(),n),s,o))}function ka(e,t,n,i,s,o){const r=null===t;let a=void 0;for(;s>0;){const t=e[s],o=Array.isArray(t),l=o?t[1]:t,c=null===l;let d=n[s+1];d===to&&(d=c?Fe:void 0);let u=c?ri(d,i):l===i?d:void 0;if(o&&!Pa(u)&&(u=ri(t,i)),Pa(u)&&(a=u,r))return a;const h=e[s+1];s=r?oo(h):ao(h)}if(null!==t){let e=o?t.residualClasses:t.residualStyles;null!=e&&(a=ri(e,i))}return a}function Pa(e){return void 0!==e}function Ea(e,t){return 0!=(e.flags&(t?16:32))}function Da(e,t=""){const n=It(),i=Rt(),s=e+20,o=i.firstCreatePass?po(i,s,1,t,null):i.data[s],r=n[s]=function(e,t){return bt(e)?e.createText(t):e.createTextNode(t)}(n[11],t);Ls(i,n,r,o),zt(o,!1)}function Oa(e){return Ma("",e,""),Oa}function Ma(e,t,n){const i=It(),s=Rr(i,e,t,n);return s!==to&&Ko(i,an(),s),Ma}function Ta(e,t,n,i,s){const o=It(),r=Lr(o,e,t,n,i,s);return r!==to&&Ko(o,an(),r),Ta}function Ia(e,t,n,i,s,o,r){const a=It(),l=function(e,t,n,i,s,o,r,a){const l=Mr(e,Wt(),n,s,r);return $t(3),l?t+de(n)+i+de(s)+o+de(r)+a:to}(a,e,t,n,i,s,o,r);return l!==to&&Ko(a,an(),l),Ia}function Ra(e,t,n,i,s,o,r,a,l){const c=It(),d=function(e,t,n,i,s,o,r,a,l,c){const d=Tr(e,Wt(),n,s,r,l);return $t(4),d?t+de(n)+i+de(s)+o+de(r)+a+de(l)+c:to}(c,e,t,n,i,s,o,r,a,l);return d!==to&&Ko(c,an(),d),Ra}function La(e,t,n){wa(oi,va,Rr(It(),e,t,n),!0)}function Fa(e,t,n){const i=It();return Dr(i,Gt(),t)&&ko(Rt(),cn(),i,e,t,i[11],n,!0),Fa}function Ba(e,t,n){const i=It();if(Dr(i,Gt(),t)){const s=Rt(),o=cn();ko(s,o,i,e,t,Zo(Zt(s.data),o,i),n,!0)}return Ba}const za=void 0;var Va=["en",[["a","p"],["AM","PM"],za],[["AM","PM"],za,za],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],za,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],za,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",za,"{1} 'at' {0}",za],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(e){let t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return 1===t&&0===n?1:5}];let Na={};function Ha(e){const t=function(e){return e.toLowerCase().replace(/_/g,"-")}(e);let n=ja(t);if(n)return n;const i=t.split("-")[0];if(n=ja(i),n)return n;if("en"===i)return Va;throw new Error(`Missing locale data for the locale "${e}".`)}function ja(e){return e in Na||(Na[e]=Re.ng&&Re.ng.common&&Re.ng.common.locales&&Re.ng.common.locales[e]),Na[e]}var Ua=function(e){return e[e.LocaleId=0]="LocaleId",e[e.DayPeriodsFormat=1]="DayPeriodsFormat",e[e.DayPeriodsStandalone=2]="DayPeriodsStandalone",e[e.DaysFormat=3]="DaysFormat",e[e.DaysStandalone=4]="DaysStandalone",e[e.MonthsFormat=5]="MonthsFormat",e[e.MonthsStandalone=6]="MonthsStandalone",e[e.Eras=7]="Eras",e[e.FirstDayOfWeek=8]="FirstDayOfWeek",e[e.WeekendRange=9]="WeekendRange",e[e.DateFormat=10]="DateFormat",e[e.TimeFormat=11]="TimeFormat",e[e.DateTimeFormat=12]="DateTimeFormat",e[e.NumberSymbols=13]="NumberSymbols",e[e.NumberFormats=14]="NumberFormats",e[e.CurrencyCode=15]="CurrencyCode",e[e.CurrencySymbol=16]="CurrencySymbol",e[e.CurrencyName=17]="CurrencyName",e[e.Currencies=18]="Currencies",e[e.Directionality=19]="Directionality",e[e.PluralCase=20]="PluralCase",e[e.ExtraData=21]="ExtraData",e}({});let Wa="en-US";function Ga(e){var t,n;n="Expected localeId to be defined",null==(t=e)&&function(e,t,n,i){throw new Error("ASSERTION ERROR: "+e+` [Expected=> null != ${t} <=Actual]`)}(n,t),"string"==typeof e&&(Wa=e.toLowerCase().replace(/_/g,"-"))}function $a(e,t,n,i,s){if(e=ae(e),Array.isArray(e))for(let o=0;o<e.length;o++)$a(e[o],t,n,i,s);else{const o=Rt(),r=It();let a=gr(e)?e:ae(e.provide),l=ur(e);const c=Ft(),d=1048575&c.providerIndexes,u=c.directiveStart,h=c.providerIndexes>>20;if(gr(e)||!e.multi){const i=new vn(l,s,zr),p=Za(a,t,s?d:d+h,u);-1===p?(Rn(On(c,r),o,a),qa(o,e,t.length),t.push(a),c.directiveStart++,c.directiveEnd++,s&&(c.providerIndexes+=1048576),n.push(i),r.push(i)):(n[p]=i,r[p]=i)}else{const p=Za(a,t,d+h,u),g=Za(a,t,d,d+h),f=p>=0&&n[p],m=g>=0&&n[g];if(s&&!m||!s&&!f){Rn(On(c,r),o,a);const d=function(e,t,n,i,s){const o=new vn(e,n,zr);return o.multi=[],o.index=t,o.componentProviders=0,Ya(o,s,i&&!n),o}(s?Xa:Qa,n.length,s,i,l);!s&&m&&(n[g].providerFactory=d),qa(o,e,t.length,0),t.push(a),c.directiveStart++,c.directiveEnd++,s&&(c.providerIndexes+=1048576),n.push(d),r.push(d)}else qa(o,e,p>-1?p:g,Ya(n[s?g:p],l,!s&&i));!s&&i&&m&&n[g].componentProviders++}}}function qa(e,t,n,i){const s=gr(t);if(s||t.useClass){const o=(t.useClass||t).prototype.ngOnDestroy;if(o){const r=e.destroyHooks||(e.destroyHooks=[]);if(!s&&t.multi){const e=r.indexOf(n);-1===e?r.push(n,[i,o]):r[e+1].push(i,o)}else r.push(n,o)}}}function Ya(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function Za(e,t,n,i){for(let s=n;s<i;s++)if(t[s]===e)return s;return-1}function Qa(e,t,n,i){return Ka(this.multi,[])}function Xa(e,t,n,i){const s=this.multi;let o;if(this.providerFactory){const e=this.providerFactory.componentProviders,t=jn(n,n[1],this.providerFactory.index,i);o=t.slice(0,e),Ka(s,o);for(let n=e;n<t.length;n++)o.push(t[n])}else o=[],Ka(s,o);return o}function Ka(e,t){for(let n=0;n<e.length;n++)t.push((0,e[n])());return t}function Ja(e,t=[]){return n=>{n.providersResolver=(n,i)=>function(e,t,n){const i=Rt();if(i.firstCreatePass){const s=at(e);$a(n,i.data,i.blueprint,s,!0),$a(t,i.data,i.blueprint,s,!1)}}(n,i?i(e):e,t)}}class el{}class tl{resolveComponentFactory(e){throw function(e){const t=Error(`No component factory found for ${ie(e)}. Did you add it to @NgModule.entryComponents?`);return t.ngComponent=e,t}(e)}}let nl=(()=>{class e{}return e.NULL=new tl,e})();function il(...e){}function sl(e,t){return new rl(_t(e,t))}const ol=function(){return sl(Ft(),It())};let rl=(()=>{class e{constructor(e){this.nativeElement=e}}return e.__NG_ELEMENT_ID__=ol,e})();function al(e){return e instanceof rl?e.nativeElement:e}class ll{}let cl=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>dl(),e})();const dl=function(){const e=It(),t=Ct(Ft().index,e);return function(e){return e[11]}(nt(t)?t:e)};let ul=(()=>{class e{}return e.\u0275prov=pe({token:e,providedIn:"root",factory:()=>null}),e})();class hl{constructor(e){this.full=e,this.major=e.split(".")[0],this.minor=e.split(".")[1],this.patch=e.split(".").slice(2).join(".")}}const pl=new hl("11.2.6");class gl{constructor(){}supports(e){return kr(e)}create(e){return new ml(e)}}const fl=(e,t)=>t;class ml{constructor(e){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=e||fl}forEachItem(e){let t;for(t=this._itHead;null!==t;t=t._next)e(t)}forEachOperation(e){let t=this._itHead,n=this._removalsHead,i=0,s=null;for(;t||n;){const o=!n||t&&t.currentIndex<wl(n,i,s)?t:n,r=wl(o,i,s),a=o.currentIndex;if(o===n)i--,n=n._nextRemoved;else if(t=t._next,null==o.previousIndex)i++;else{s||(s=[]);const e=r-i,t=a-i;if(e!=t){for(let n=0;n<e;n++){const i=n<s.length?s[n]:s[n]=0,o=i+n;t<=o&&o<e&&(s[n]=i+1)}s[o.previousIndex]=t-e}}r!==a&&e(o,r,a)}}forEachPreviousItem(e){let t;for(t=this._previousItHead;null!==t;t=t._nextPrevious)e(t)}forEachAddedItem(e){let t;for(t=this._additionsHead;null!==t;t=t._nextAdded)e(t)}forEachMovedItem(e){let t;for(t=this._movesHead;null!==t;t=t._nextMoved)e(t)}forEachRemovedItem(e){let t;for(t=this._removalsHead;null!==t;t=t._nextRemoved)e(t)}forEachIdentityChange(e){let t;for(t=this._identityChangesHead;null!==t;t=t._nextIdentityChange)e(t)}diff(e){if(null==e&&(e=[]),!kr(e))throw new Error(`Error trying to diff '${ie(e)}'. Only arrays and iterables are allowed`);return this.check(e)?this:null}onDestroy(){}check(e){this._reset();let t,n,i,s=this._itHead,o=!1;if(Array.isArray(e)){this.length=e.length;for(let t=0;t<this.length;t++)n=e[t],i=this._trackByFn(t,n),null!==s&&Object.is(s.trackById,i)?(o&&(s=this._verifyReinsertion(s,n,i,t)),Object.is(s.item,n)||this._addIdentityChange(s,n)):(s=this._mismatch(s,n,i,t),o=!0),s=s._next}else t=0,function(e,t){if(Array.isArray(e))for(let n=0;n<e.length;n++)t(e[n]);else{const n=e[Cr()]();let i;for(;!(i=n.next()).done;)t(i.value)}}(e,e=>{i=this._trackByFn(t,e),null!==s&&Object.is(s.trackById,i)?(o&&(s=this._verifyReinsertion(s,e,i,t)),Object.is(s.item,e)||this._addIdentityChange(s,e)):(s=this._mismatch(s,e,i,t),o=!0),s=s._next,t++}),this.length=t;return this._truncate(s),this.collection=e,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let e;for(e=this._previousItHead=this._itHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._additionsHead;null!==e;e=e._nextAdded)e.previousIndex=e.currentIndex;for(this._additionsHead=this._additionsTail=null,e=this._movesHead;null!==e;e=e._nextMoved)e.previousIndex=e.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(e,t,n,i){let s;return null===e?s=this._itTail:(s=e._prev,this._remove(e)),null!==(e=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(Object.is(e.item,t)||this._addIdentityChange(e,t),this._reinsertAfter(e,s,i)):null!==(e=null===this._linkedRecords?null:this._linkedRecords.get(n,i))?(Object.is(e.item,t)||this._addIdentityChange(e,t),this._moveAfter(e,s,i)):e=this._addAfter(new bl(t,n),s,i),e}_verifyReinsertion(e,t,n,i){let s=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==s?e=this._reinsertAfter(s,e._prev,i):e.currentIndex!=i&&(e.currentIndex=i,this._addToMoves(e,i)),e}_truncate(e){for(;null!==e;){const t=e._next;this._addToRemovals(this._unlink(e)),e=t}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(e,t,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(e);const i=e._prevRemoved,s=e._nextRemoved;return null===i?this._removalsHead=s:i._nextRemoved=s,null===s?this._removalsTail=i:s._prevRemoved=i,this._insertAfter(e,t,n),this._addToMoves(e,n),e}_moveAfter(e,t,n){return this._unlink(e),this._insertAfter(e,t,n),this._addToMoves(e,n),e}_addAfter(e,t,n){return this._insertAfter(e,t,n),this._additionsTail=null===this._additionsTail?this._additionsHead=e:this._additionsTail._nextAdded=e,e}_insertAfter(e,t,n){const i=null===t?this._itHead:t._next;return e._next=i,e._prev=t,null===i?this._itTail=e:i._prev=e,null===t?this._itHead=e:t._next=e,null===this._linkedRecords&&(this._linkedRecords=new yl),this._linkedRecords.put(e),e.currentIndex=n,e}_remove(e){return this._addToRemovals(this._unlink(e))}_unlink(e){null!==this._linkedRecords&&this._linkedRecords.remove(e);const t=e._prev,n=e._next;return null===t?this._itHead=n:t._next=n,null===n?this._itTail=t:n._prev=t,e}_addToMoves(e,t){return e.previousIndex===t||(this._movesTail=null===this._movesTail?this._movesHead=e:this._movesTail._nextMoved=e),e}_addToRemovals(e){return null===this._unlinkedRecords&&(this._unlinkedRecords=new yl),this._unlinkedRecords.put(e),e.currentIndex=null,e._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=e,e._prevRemoved=null):(e._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=e),e}_addIdentityChange(e,t){return e.item=t,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=e:this._identityChangesTail._nextIdentityChange=e,e}}class bl{constructor(e,t){this.item=e,this.trackById=t,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class vl{constructor(){this._head=null,this._tail=null}add(e){null===this._head?(this._head=this._tail=e,e._nextDup=null,e._prevDup=null):(this._tail._nextDup=e,e._prevDup=this._tail,e._nextDup=null,this._tail=e)}get(e,t){let n;for(n=this._head;null!==n;n=n._nextDup)if((null===t||t<=n.currentIndex)&&Object.is(n.trackById,e))return n;return null}remove(e){const t=e._prevDup,n=e._nextDup;return null===t?this._head=n:t._nextDup=n,null===n?this._tail=t:n._prevDup=t,null===this._head}}class yl{constructor(){this.map=new Map}put(e){const t=e.trackById;let n=this.map.get(t);n||(n=new vl,this.map.set(t,n)),n.add(e)}get(e,t){const n=this.map.get(e);return n?n.get(e,t):null}remove(e){const t=e.trackById;return this.map.get(t).remove(e)&&this.map.delete(t),e}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function wl(e,t,n){const i=e.previousIndex;if(null===i)return i;let s=0;return n&&i<n.length&&(s=n[i]),i+t+s}class _l{constructor(){}supports(e){return e instanceof Map||Pr(e)}create(){return new xl}}class xl{constructor(){this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}get isDirty(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}forEachItem(e){let t;for(t=this._mapHead;null!==t;t=t._next)e(t)}forEachPreviousItem(e){let t;for(t=this._previousMapHead;null!==t;t=t._nextPrevious)e(t)}forEachChangedItem(e){let t;for(t=this._changesHead;null!==t;t=t._nextChanged)e(t)}forEachAddedItem(e){let t;for(t=this._additionsHead;null!==t;t=t._nextAdded)e(t)}forEachRemovedItem(e){let t;for(t=this._removalsHead;null!==t;t=t._nextRemoved)e(t)}diff(e){if(e){if(!(e instanceof Map||Pr(e)))throw new Error(`Error trying to diff '${ie(e)}'. Only maps and objects are allowed`)}else e=new Map;return this.check(e)?this:null}onDestroy(){}check(e){this._reset();let t=this._mapHead;if(this._appendAfter=null,this._forEach(e,(e,n)=>{if(t&&t.key===n)this._maybeAddToChanges(t,e),this._appendAfter=t,t=t._next;else{const i=this._getOrCreateRecordForKey(n,e);t=this._insertBeforeOrAppend(t,i)}}),t){t._prev&&(t._prev._next=null),this._removalsHead=t;for(let e=t;null!==e;e=e._nextRemoved)e===this._mapHead&&(this._mapHead=null),this._records.delete(e.key),e._nextRemoved=e._next,e.previousValue=e.currentValue,e.currentValue=null,e._prev=null,e._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(e,t){if(e){const n=e._prev;return t._next=e,t._prev=n,e._prev=t,n&&(n._next=t),e===this._mapHead&&(this._mapHead=t),this._appendAfter=e,e}return this._appendAfter?(this._appendAfter._next=t,t._prev=this._appendAfter):this._mapHead=t,this._appendAfter=t,null}_getOrCreateRecordForKey(e,t){if(this._records.has(e)){const n=this._records.get(e);this._maybeAddToChanges(n,t);const i=n._prev,s=n._next;return i&&(i._next=s),s&&(s._prev=i),n._next=null,n._prev=null,n}const n=new Al(e);return this._records.set(e,n),n.currentValue=t,this._addToAdditions(n),n}_reset(){if(this.isDirty){let e;for(this._previousMapHead=this._mapHead,e=this._previousMapHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._changesHead;null!==e;e=e._nextChanged)e.previousValue=e.currentValue;for(e=this._additionsHead;null!=e;e=e._nextAdded)e.previousValue=e.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(e,t){Object.is(t,e.currentValue)||(e.previousValue=e.currentValue,e.currentValue=t,this._addToChanges(e))}_addToAdditions(e){null===this._additionsHead?this._additionsHead=this._additionsTail=e:(this._additionsTail._nextAdded=e,this._additionsTail=e)}_addToChanges(e){null===this._changesHead?this._changesHead=this._changesTail=e:(this._changesTail._nextChanged=e,this._changesTail=e)}_forEach(e,t){e instanceof Map?e.forEach(t):Object.keys(e).forEach(n=>t(e[n],n))}}class Al{constructor(e){this.key=e,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function Cl(){return new Sl([new gl])}let Sl=(()=>{class e{constructor(e){this.factories=e}static create(t,n){if(null!=n){const e=n.factories.slice();t=t.concat(e)}return new e(t)}static extend(t){return{provide:e,useFactory:n=>e.create(t,n||Cl()),deps:[[e,new wi,new yi]]}}find(e){const t=this.factories.find(t=>t.supports(e));if(null!=t)return t;throw new Error(`Cannot find a differ supporting object '${e}' of type '${n=e,n.name||typeof n}'`);var n}}return e.\u0275prov=pe({token:e,providedIn:"root",factory:Cl}),e})();function kl(){return new Pl([new _l])}let Pl=(()=>{class e{constructor(e){this.factories=e}static create(t,n){if(n){const e=n.factories.slice();t=t.concat(e)}return new e(t)}static extend(t){return{provide:e,useFactory:n=>e.create(t,n||kl()),deps:[[e,new wi,new yi]]}}find(e){const t=this.factories.find(t=>t.supports(e));if(t)return t;throw new Error(`Cannot find a differ supporting object '${e}'`)}}return e.\u0275prov=pe({token:e,providedIn:"root",factory:kl}),e})();function El(e,t,n,i,s=!1){for(;null!==n;){const o=t[n.index];if(null!==o&&i.push(yt(o)),it(o))for(let e=10;e<o.length;e++){const t=o[e],n=t[1].firstChild;null!==n&&El(t[1],t,n,i)}const r=n.type;if(8&r)El(e,t,n.child,i);else if(32&r){const e=bs(n,t);let s;for(;s=e();)i.push(s)}else if(16&r){const e=Bs(t,n);if(Array.isArray(e))i.push(...e);else{const n=vs(t[16]);El(n[1],n,e,i,!0)}}n=s?n.projectionNext:n.next}return i}class Dl{constructor(e,t){this._lView=e,this._cdRefInjectingView=t,this._appRef=null,this._attachedToViewContainer=!1}get rootNodes(){const e=this._lView,t=e[1];return El(t,e,t.firstChild,[])}get context(){return this._lView[8]}get destroyed(){return 256==(256&this._lView[2])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const e=this._lView[3];if(it(e)){const t=e[8],n=t?t.indexOf(this):-1;n>-1&&(Ss(e,n),ii(t,n))}this._attachedToViewContainer=!1}ks(this._lView[1],this._lView)}onDestroy(e){Co(this._lView[1],this._lView,null,e)}markForCheck(){jo(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){Uo(this._lView[1],this._lView,this.context)}checkNoChanges(){!function(e,t,n){jt(!0);try{Uo(e,t,n)}finally{jt(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._attachedToViewContainer=!0}detachFromAppRef(){var e;this._appRef=null,Ns(this._lView[1],e=this._lView,e[11],2,null,null)}attachToAppRef(e){if(this._attachedToViewContainer)throw new Error("This view is already attached to a ViewContainer!");this._appRef=e}}class Ol extends Dl{constructor(e){super(e),this._view=e}detectChanges(){Wo(this._view)}checkNoChanges(){!function(e){jt(!0);try{Wo(e)}finally{jt(!1)}}(this._view)}get context(){return null}}const Ml=Il;let Tl=(()=>{class e{}return e.__NG_ELEMENT_ID__=Ml,e.__ChangeDetectorRef__=!0,e})();function Il(e=!1){return function(e,t,n){if(!n&&ot(e)){const n=Ct(e.index,t);return new Dl(n,n)}return 47&e.type?new Dl(t[16],t):null}(Ft(),It(),e)}const Rl=[new _l],Ll=new Sl([new gl]),Fl=new Pl(Rl),Bl=function(){return Hl(Ft(),It())};let zl=(()=>{class e{}return e.__NG_ELEMENT_ID__=Bl,e})();const Vl=zl,Nl=class extends Vl{constructor(e,t,n){super(),this._declarationLView=e,this._declarationTContainer=t,this.elementRef=n}createEmbeddedView(e){const t=this._declarationTContainer.tViews,n=ho(this._declarationLView,t,e,16,null,t.declTNode,null,null,null,null);n[17]=this._declarationLView[this._declarationTContainer.index];const i=this._declarationLView[19];return null!==i&&(n[19]=i.createEmbeddedView(t)),fo(t,n,e),new Dl(n)}};function Hl(e,t){return 4&e.type?new Nl(t,e,sl(e,t)):null}class jl{}class Ul{}const Wl=function(){return Ql(Ft(),It())};let Gl=(()=>{class e{}return e.__NG_ELEMENT_ID__=Wl,e})();const $l=Gl,ql=class extends $l{constructor(e,t,n){super(),this._lContainer=e,this._hostTNode=t,this._hostLView=n}get element(){return sl(this._hostTNode,this._hostLView)}get injector(){return new Gn(this._hostTNode,this._hostLView)}get parentInjector(){const e=In(this._hostTNode,this._hostLView);if(Cn(e)){const t=kn(e,this._hostLView),n=Sn(e);return new Gn(t[1].data[n+8],t)}return new Gn(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(e){const t=Yl(this._lContainer);return null!==t&&t[e]||null}get length(){return this._lContainer.length-10}createEmbeddedView(e,t,n){const i=e.createEmbeddedView(t||{});return this.insert(i,n),i}createComponent(e,t,n,i,s){const o=n||this.parentInjector;if(!s&&null==e.ngModule&&o){const e=o.get(jl,null);e&&(s=e)}const r=e.create(o,i,void 0,s);return this.insert(r.hostView,t),r}insert(e,t){const n=e._lView,i=n[1];if(it(n[3])){const t=this.indexOf(e);if(-1!==t)this.detach(t);else{const t=n[3],i=new ql(t,t[6],t[3]);i.detach(i.indexOf(e))}}const s=this._adjustIndex(t),o=this._lContainer;!function(e,t,n,i){const s=10+i,o=n.length;i>0&&(n[s-1][4]=t),i<o-10?(t[4]=n[s],ni(n,10+i,t)):(n.push(t),t[4]=null),t[3]=n;const r=t[17];null!==r&&n!==r&&function(e,t){const n=e[9];t[16]!==t[3][3][16]&&(e[2]=!0),null===n?e[9]=[t]:n.push(t)}(r,t);const a=t[19];null!==a&&a.insertView(e),t[2]|=128}(i,n,o,s);const r=zs(s,o),a=n[11],l=Ts(a,o[7]);return null!==l&&function(e,t,n,i,s,o){i[0]=s,i[6]=t,Ns(e,i,n,1,s,o)}(i,o[6],a,n,l,r),e.attachToViewContainerRef(),ni(Zl(o),s,e),e}move(e,t){return this.insert(e,t)}indexOf(e){const t=Yl(this._lContainer);return null!==t?t.indexOf(e):-1}remove(e){const t=this._adjustIndex(e,-1),n=Ss(this._lContainer,t);n&&(ii(Zl(this._lContainer),t),ks(n[1],n))}detach(e){const t=this._adjustIndex(e,-1),n=Ss(this._lContainer,t);return n&&null!=ii(Zl(this._lContainer),t)?new Dl(n):null}_adjustIndex(e,t=0){return null==e?this.length+t:e}};function Yl(e){return e[8]}function Zl(e){return e[8]||(e[8]=[])}function Ql(e,t){let n;const i=t[e.index];if(it(i))n=i;else{let s;if(8&e.type)s=yt(i);else{const n=t[11];s=n.createComment("");const i=_t(e,t);Ds(n,Ts(n,i),s,function(e,t){return bt(e)?e.nextSibling(t):t.nextSibling}(n,i),!1)}t[e.index]=n=Bo(i,t,s,e),Ho(t,n)}return new ql(n,e,t)}const Xl={};class Kl extends nl{constructor(e){super(),this.ngModule=e}resolveComponentFactory(e){const t=et(e);return new tc(t,this.ngModule)}}function Jl(e){const t=[];for(let n in e)e.hasOwnProperty(n)&&t.push({propName:e[n],templateName:n});return t}const ec=new Xn("SCHEDULER_TOKEN",{providedIn:"root",factory:()=>hs});class tc extends el{constructor(e,t){super(),this.componentDef=e,this.ngModule=t,this.componentType=e.type,this.selector=e.selectors.map(eo).join(","),this.ngContentSelectors=e.ngContentSelectors?e.ngContentSelectors:[],this.isBoundToModule=!!t}get inputs(){return Jl(this.componentDef.inputs)}get outputs(){return Jl(this.componentDef.outputs)}create(e,t,n,i){const s=(i=i||this.ngModule)?function(e,t){return{get:(n,i,s)=>{const o=e.get(n,Xl,s);return o!==Xl||i===Xl?o:t.get(n,i,s)}}}(e,i.injector):e,o=s.get(ll,vt),r=s.get(ul,null),a=o.createRenderer(null,this.componentDef),l=this.componentDef.selectors[0][0]||"div",c=n?function(e,t,n){if(bt(e))return e.selectRootElement(t,n===De.ShadowDom);let i="string"==typeof t?e.querySelector(t):t;return i.textContent="",i}(a,n,this.componentDef.encapsulation):As(o.createRenderer(null,this.componentDef),l,function(e){const t=e.toLowerCase();return"svg"===t?"http://www.w3.org/2000/svg":"math"===t?"http://www.w3.org/1998/MathML/":null}(l)),d=this.componentDef.onPush?576:528,u={components:[],scheduler:hs,clean:$o,playerHandler:null,flags:0},h=Ao(0,null,null,1,0,null,null,null,null,null),p=ho(null,h,u,d,null,null,o,a,r,s);let g,f;en(p);try{const e=function(e,t,n,i,s,o){const r=n[1];n[20]=e;const a=po(r,20,2,"#host",null),l=a.mergedAttrs=t.hostAttrs;null!==l&&(Jo(a,l,!0),null!==e&&(yn(s,e,l),null!==a.classes&&Us(s,e,a.classes),null!==a.styles&&js(s,e,a.styles)));const c=i.createRenderer(e,t),d=ho(n,xo(t),null,t.onPush?64:16,n[20],a,i,c,null,null);return r.firstCreatePass&&(Rn(On(a,n),r,t.type),Oo(r,a),To(a,n.length,1)),Ho(n,d),n[20]=d}(c,this.componentDef,p,o,a);if(c)if(n)yn(a,c,["ng-version",pl.full]);else{const{attrs:e,classes:t}=function(e){const t=[],n=[];let i=1,s=2;for(;i<e.length;){let o=e[i];if("string"==typeof o)2===s?""!==o&&t.push(o,e[++i]):8===s&&n.push(o);else{if(!Zs(s))break;s=o}i++}return{attrs:t,classes:n}}(this.componentDef.selectors[0]);e&&yn(a,c,e),t&&t.length>0&&Us(a,c,t.join(" "))}if(f=xt(h,20),void 0!==t){const e=f.projection=[];for(let n=0;n<this.ngContentSelectors.length;n++){const i=t[n];e.push(null!=i?Array.from(i):null)}}g=function(e,t,n,i,s){const o=n[1],r=function(e,t,n){const i=Ft();e.firstCreatePass&&(n.providersResolver&&n.providersResolver(n),Io(e,i,t,go(e,t,1,null),n));const s=jn(t,e,i.directiveStart,i);us(s,t);const o=_t(i,t);return o&&us(o,t),s}(o,n,t);if(i.components.push(r),e[8]=r,s&&s.forEach(e=>e(r,t)),t.contentQueries){const e=Ft();t.contentQueries(1,r,e.directiveStart)}const a=Ft();return!o.firstCreatePass||null===t.hostBindings&&null===t.hostAttrs||(ln(a.index),Eo(n[1],a,0,a.directiveStart,a.directiveEnd,t),Do(t,r)),r}(e,this.componentDef,p,u,[br]),fo(h,p,null)}finally{rn()}return new nc(this.componentType,g,sl(f,p),p,f)}}class nc extends class{}{constructor(e,t,n,i,s){super(),this.location=n,this._rootLView=i,this._tNode=s,this.instance=t,this.hostView=this.changeDetectorRef=new Ol(i),this.componentType=e}get injector(){return new Gn(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(e){this.hostView.onDestroy(e)}}const ic=new Map;class sc extends jl{constructor(e,t){super(),this._parent=t,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new Kl(this);const n=tt(e),i=e[je]||null;i&&Ga(i),this._bootstrapComponents=fs(n.bootstrap),this._r3Injector=lr(e,t,[{provide:jl,useValue:this},{provide:nl,useValue:this.componentFactoryResolver}],ie(e)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(e)}get(e,t=mr.THROW_IF_NOT_FOUND,n=Ae.Default){return e===mr||e===jl||e===er?this:this._r3Injector.get(e,t,n)}destroy(){const e=this._r3Injector;!e.destroyed&&e.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(e){this.destroyCbs.push(e)}}class oc extends Ul{constructor(e){super(),this.moduleType=e,null!==tt(e)&&function(e){const t=new Set;!function e(n){const i=tt(n,!0),s=i.id;null!==s&&(function(e,t,n){if(t&&t!==n)throw new Error(`Duplicate module registered for ${e} - ${ie(t)} vs ${ie(t.name)}`)}(s,ic.get(s),n),ic.set(s,n));const o=fs(i.imports);for(const r of o)t.has(r)||(t.add(r),e(r))}(e)}(e)}create(e){return new sc(this.moduleType,e)}}function rc(e,t,n){const i=Ut()+e,s=It();return s[i]===to?Er(s,i,n?t.call(n):t()):function(e,t){return e[t]}(s,i)}function ac(e,t,n,i){return dc(It(),Ut(),e,t,n,i)}function lc(e,t,n,i,s){return uc(It(),Ut(),e,t,n,i,s)}function cc(e,t){const n=e[t];return n===to?void 0:n}function dc(e,t,n,i,s,o){const r=t+n;return Dr(e,r,s)?Er(e,r+1,o?i.call(o,s):i(s)):cc(e,r+1)}function uc(e,t,n,i,s,o,r){const a=t+n;return Or(e,a,s,o)?Er(e,a+2,r?i.call(r,s,o):i(s,o)):cc(e,a+2)}function hc(e,t){const n=Rt();let i;const s=e+20;n.firstCreatePass?(i=function(e,t){if(t)for(let n=t.length-1;n>=0;n--){const i=t[n];if(e===i.name)return i}throw new ce("302",`The pipe '${e}' could not be found!`)}(t,n.pipeRegistry),n.data[s]=i,i.onDestroy&&(n.destroyHooks||(n.destroyHooks=[])).push(s,i.onDestroy)):i=n.data[s];const o=i.factory||(i.factory=lt(i.type)),r=Se(zr);try{const e=En(!1),t=o();return En(e),function(e,t,n,i){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=i}(n,It(),s,t),t}finally{Se(r)}}function pc(e,t,n){const i=e+20,s=It(),o=At(s,i);return vc(s,bc(s,i)?dc(s,Ut(),t,o.transform,n,o):o.transform(n))}function gc(e,t,n,i){const s=e+20,o=It(),r=At(o,s);return vc(o,bc(o,s)?uc(o,Ut(),t,r.transform,n,i,r):r.transform(n,i))}function fc(e,t,n,i,s){const o=e+20,r=It(),a=At(r,o);return vc(r,bc(r,o)?function(e,t,n,i,s,o,r,a){const l=t+n;return Mr(e,l,s,o,r)?Er(e,l+3,a?i.call(a,s,o,r):i(s,o,r)):cc(e,l+3)}(r,Ut(),t,a.transform,n,i,s,a):a.transform(n,i,s))}function mc(e,t,n,i,s,o){const r=e+20,a=It(),l=At(a,r);return vc(a,bc(a,r)?function(e,t,n,i,s,o,r,a,l){const c=t+n;return Tr(e,c,s,o,r,a)?Er(e,c+4,l?i.call(l,s,o,r,a):i(s,o,r,a)):cc(e,c+4)}(a,Ut(),t,l.transform,n,i,s,o,l):l.transform(n,i,s,o))}function bc(e,t){return e[1].data[t].pure}function vc(e,t){return Sr.isWrapped(t)&&(t=Sr.unwrap(t),e[Wt()]=to),t}const yc=class extends A{constructor(e=!1){super(),this.__isAsync=e}emit(e){super.next(e)}subscribe(e,t,n){let i,s=e=>null,o=()=>null;e&&"object"==typeof e?(i=this.__isAsync?t=>{setTimeout(()=>e.next(t))}:t=>{e.next(t)},e.error&&(s=this.__isAsync?t=>{setTimeout(()=>e.error(t))}:t=>{e.error(t)}),e.complete&&(o=this.__isAsync?()=>{setTimeout(()=>e.complete())}:()=>{e.complete()})):(i=this.__isAsync?t=>{setTimeout(()=>e(t))}:t=>{e(t)},t&&(s=this.__isAsync?e=>{setTimeout(()=>t(e))}:e=>{t(e)}),n&&(o=this.__isAsync?()=>{setTimeout(()=>n())}:()=>{n()}));const r=super.subscribe(i,s,o);return e instanceof u&&e.add(r),r}};function wc(){return this._results[Cr()]()}class _c{constructor(e=!1){this._emitDistinctChangesOnly=e,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const t=Cr(),n=_c.prototype;n[t]||(n[t]=wc)}get changes(){return this._changes||(this._changes=new yc)}get(e){return this._results[e]}map(e){return this._results.map(e)}filter(e){return this._results.filter(e)}find(e){return this._results.find(e)}reduce(e,t){return this._results.reduce(e,t)}forEach(e){this._results.forEach(e)}some(e){return this._results.some(e)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(e,t){this.dirty=!1;const n=ei(e);(this._changesDetected=!function(e,t,n){if(e.length!==t.length)return!1;for(let i=0;i<e.length;i++){let s=e[i],o=t[i];if(n&&(s=n(s),o=n(o)),o!==s)return!1}return!0}(this._results,n,t))&&(this._results=n,this.length=n.length,this.last=n[this.length-1],this.first=n[0])}notifyOnChanges(){!this._changes||!this._changesDetected&&this._emitDistinctChangesOnly||this._changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}class xc{constructor(e){this.queryList=e,this.matches=null}clone(){return new xc(this.queryList)}setDirty(){this.queryList.setDirty()}}class Ac{constructor(e=[]){this.queries=e}createEmbeddedView(e){const t=e.queries;if(null!==t){const n=null!==e.contentQueries?e.contentQueries[0]:t.length,i=[];for(let e=0;e<n;e++){const n=t.getByIndex(e);i.push(this.queries[n.indexInDeclarationView].clone())}return new Ac(i)}return null}insertView(e){this.dirtyQueriesWithMatches(e)}detachView(e){this.dirtyQueriesWithMatches(e)}dirtyQueriesWithMatches(e){for(let t=0;t<this.queries.length;t++)null!==Bc(e,t).matches&&this.queries[t].setDirty()}}class Cc{constructor(e,t,n=null){this.predicate=e,this.flags=t,this.read=n}}class Sc{constructor(e=[]){this.queries=e}elementStart(e,t){for(let n=0;n<this.queries.length;n++)this.queries[n].elementStart(e,t)}elementEnd(e){for(let t=0;t<this.queries.length;t++)this.queries[t].elementEnd(e)}embeddedTView(e){let t=null;for(let n=0;n<this.length;n++){const i=null!==t?t.length:0,s=this.getByIndex(n).embeddedTView(e,i);s&&(s.indexInDeclarationView=n,null!==t?t.push(s):t=[s])}return null!==t?new Sc(t):null}template(e,t){for(let n=0;n<this.queries.length;n++)this.queries[n].template(e,t)}getByIndex(e){return this.queries[e]}get length(){return this.queries.length}track(e){this.queries.push(e)}}class kc{constructor(e,t=-1){this.metadata=e,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=t}elementStart(e,t){this.isApplyingToNode(t)&&this.matchTNode(e,t)}elementEnd(e){this._declarationNodeIndex===e.index&&(this._appliesToNextNode=!1)}template(e,t){this.elementStart(e,t)}embeddedTView(e,t){return this.isApplyingToNode(e)?(this.crossesNgTemplate=!0,this.addMatch(-e.index,t),new kc(this.metadata)):null}isApplyingToNode(e){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){const t=this._declarationNodeIndex;let n=e.parent;for(;null!==n&&8&n.type&&n.index!==t;)n=n.parent;return t===(null!==n?n.index:-1)}return this._appliesToNextNode}matchTNode(e,t){const n=this.metadata.predicate;if(Array.isArray(n))for(let i=0;i<n.length;i++){const s=n[i];this.matchTNodeWithReadOption(e,t,Pc(t,s)),this.matchTNodeWithReadOption(e,t,Hn(t,e,s,!1,!1))}else n===zl?4&t.type&&this.matchTNodeWithReadOption(e,t,-1):this.matchTNodeWithReadOption(e,t,Hn(t,e,n,!1,!1))}matchTNodeWithReadOption(e,t,n){if(null!==n){const i=this.metadata.read;if(null!==i)if(i===rl||i===Gl||i===zl&&4&t.type)this.addMatch(t.index,-2);else{const n=Hn(t,e,i,!1,!1);null!==n&&this.addMatch(t.index,n)}else this.addMatch(t.index,n)}}addMatch(e,t){null===this.matches?this.matches=[e,t]:this.matches.push(e,t)}}function Pc(e,t){const n=e.localNames;if(null!==n)for(let i=0;i<n.length;i+=2)if(n[i]===t)return n[i+1];return null}function Ec(e,t,n,i){return-1===n?function(e,t){return 11&e.type?sl(e,t):4&e.type?Hl(e,t):null}(t,e):-2===n?function(e,t,n){return n===rl?sl(t,e):n===zl?Hl(t,e):n===Gl?Ql(t,e):void 0}(e,t,i):jn(e,e[1],n,t)}function Dc(e,t,n,i){const s=t[19].queries[i];if(null===s.matches){const i=e.data,o=n.matches,r=[];for(let e=0;e<o.length;e+=2){const s=o[e];r.push(s<0?null:Ec(t,i[s],o[e+1],n.metadata.read))}s.matches=r}return s.matches}function Oc(e,t,n,i){const s=e.queries.getByIndex(n),o=s.matches;if(null!==o){const r=Dc(e,t,s,n);for(let e=0;e<o.length;e+=2){const n=o[e];if(n>0)i.push(r[e/2]);else{const s=o[e+1],r=t[-n];for(let e=10;e<r.length;e++){const t=r[e];t[17]===t[3]&&Oc(t[1],t,s,i)}if(null!==r[9]){const e=r[9];for(let t=0;t<e.length;t++){const n=e[t];Oc(n[1],n,s,i)}}}}}return i}function Mc(e){const t=It(),n=Rt(),i=Qt();Xt(i+1);const s=Bc(n,i);if(e.dirty&&kt(t)===(2==(2&s.metadata.flags))){if(null===s.matches)e.reset([]);else{const o=s.crossesNgTemplate?Oc(n,t,i,[]):Dc(n,t,s,i);e.reset(o,al),e.notifyOnChanges()}return!0}return!1}function Tc(e,t,n){const i=Rt();i.firstCreatePass&&(Fc(i,new Cc(e,t,n),-1),2==(2&t)&&(i.staticViewQueries=!0)),Lc(i,It(),t)}function Ic(e,t,n,i){const s=Rt();if(s.firstCreatePass){const o=Ft();Fc(s,new Cc(t,n,i),o.index),function(e,t){const n=e.contentQueries||(e.contentQueries=[]);t!==(n.length?n[n.length-1]:-1)&&n.push(e.queries.length-1,t)}(s,e),2==(2&n)&&(s.staticContentQueries=!0)}Lc(s,It(),n)}function Rc(){return e=It(),t=Qt(),e[19].queries[t].queryList;var e,t}function Lc(e,t,n){const i=new _c(4==(4&n));Co(e,t,i,i.destroy),null===t[19]&&(t[19]=new Ac),t[19].queries.push(new xc(i))}function Fc(e,t,n){null===e.queries&&(e.queries=new Sc),e.queries.track(new kc(t,n))}function Bc(e,t){return e.queries.getByIndex(t)}function zc(e,t){return Hl(e,t)}function Vc(e=Ae.Default){const t=Il(!0);if(null!=t||e&Ae.Optional)return t;he("ChangeDetectorRef")}const Nc=new Xn("Application Initializer");let Hc=(()=>{class e{constructor(e){this.appInits=e,this.resolve=il,this.reject=il,this.initialized=!1,this.done=!1,this.donePromise=new Promise((e,t)=>{this.resolve=e,this.reject=t})}runInitializers(){if(this.initialized)return;const e=[],t=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let n=0;n<this.appInits.length;n++){const t=this.appInits[n]();Yr(t)&&e.push(t)}Promise.all(e).then(()=>{t()}).catch(e=>{this.reject(e)}),0===e.length&&t(),this.initialized=!0}}return e.\u0275fac=function(t){return new(t||e)(gi(Nc,8))},e.\u0275prov=pe({token:e,factory:e.\u0275fac}),e})();const jc=new Xn("AppId"),Uc={provide:jc,useFactory:function(){return`${Wc()}${Wc()}${Wc()}`},deps:[]};function Wc(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Gc=new Xn("Platform Initializer"),$c=new Xn("Platform ID"),qc=new Xn("appBootstrapListener");let Yc=(()=>{class e{log(e){console.log(e)}warn(e){console.warn(e)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=pe({token:e,factory:e.\u0275fac}),e})();const Zc=new Xn("LocaleId"),Qc=new Xn("DefaultCurrencyCode");class Xc{constructor(e,t){this.ngModuleFactory=e,this.componentFactories=t}}const Kc=function(e){return new oc(e)},Jc=Kc,ed=function(e){return Promise.resolve(Kc(e))},td=function(e){const t=Kc(e),n=fs(tt(e).declarations).reduce((e,t)=>{const n=et(t);return n&&e.push(new tc(n)),e},[]);return new Xc(t,n)},nd=td,id=function(e){return Promise.resolve(td(e))};let sd=(()=>{class e{constructor(){this.compileModuleSync=Jc,this.compileModuleAsync=ed,this.compileModuleAndAllComponentsSync=nd,this.compileModuleAndAllComponentsAsync=id}clearCache(){}clearCacheFor(e){}getModuleId(e){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=pe({token:e,factory:e.\u0275fac}),e})();const od=(()=>Promise.resolve(0))();function rd(e){"undefined"==typeof Zone?od.then(()=>{e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}class ad{constructor({enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:t=!1,shouldCoalesceRunChangeDetection:n=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new yc(!1),this.onMicrotaskEmpty=new yc(!1),this.onStable=new yc(!1),this.onError=new yc(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched(),this._nesting=0,this._outer=this._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(this._inner=this._inner.fork(new Zone.TaskTrackingZoneSpec)),e&&Zone.longStackTraceZoneSpec&&(this._inner=this._inner.fork(Zone.longStackTraceZoneSpec)),this.shouldCoalesceEventChangeDetection=!n&&t,this.shouldCoalesceRunChangeDetection=n,this.lastRequestAnimationFrameId=-1,this.nativeRequestAnimationFrame=function(){let e=Re.requestAnimationFrame,t=Re.cancelAnimationFrame;if("undefined"!=typeof Zone&&e&&t){const n=e[Zone.__symbol__("OriginalDelegate")];n&&(e=n);const i=t[Zone.__symbol__("OriginalDelegate")];i&&(t=i)}return{nativeRequestAnimationFrame:e,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,function(e){const t=()=>{!function(e){-1===e.lastRequestAnimationFrameId&&(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(Re,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,dd(e),cd(e)},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),dd(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,i,s,o,r,a)=>{try{return ud(e),n.invokeTask(s,o,r,a)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===o.type||e.shouldCoalesceRunChangeDetection)&&t(),hd(e)}},onInvoke:(n,i,s,o,r,a,l)=>{try{return ud(e),n.invoke(s,o,r,a,l)}finally{e.shouldCoalesceRunChangeDetection&&t(),hd(e)}},onHasTask:(t,n,i,s)=>{t.hasTask(i,s),n===i&&("microTask"==s.change?(e._hasPendingMicrotasks=s.microTask,dd(e),cd(e)):"macroTask"==s.change&&(e.hasPendingMacrotasks=s.macroTask))},onHandleError:(t,n,i,s)=>(t.handleError(i,s),e.runOutsideAngular(()=>e.onError.emit(s)),!1)})}(this)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!ad.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(ad.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(e,t,n){return this._inner.run(e,t,n)}runTask(e,t,n,i){const s=this._inner,o=s.scheduleEventTask("NgZoneEvent: "+i,e,ld,il,il);try{return s.runTask(o,t,n)}finally{s.cancelTask(o)}}runGuarded(e,t,n){return this._inner.runGuarded(e,t,n)}runOutsideAngular(e){return this._outer.run(e)}}const ld={};function cd(e){if(0==e._nesting&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function dd(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function ud(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function hd(e){e._nesting--,cd(e)}class pd{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new yc,this.onMicrotaskEmpty=new yc,this.onStable=new yc,this.onError=new yc}run(e,t,n){return e.apply(t,n)}runGuarded(e,t,n){return e.apply(t,n)}runOutsideAngular(e){return e()}runTask(e,t,n,i){return e.apply(t,n)}}let gd=(()=>{class e{constructor(e){this._ngZone=e,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),e.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{ad.assertNotInAngularZone(),rd(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())rd(()=>{for(;0!==this._callbacks.length;){let e=this._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb(this._didWork)}this._didWork=!1});else{let e=this.getPendingTasks();this._callbacks=this._callbacks.filter(t=>!t.updateCb||!t.updateCb(e)||(clearTimeout(t.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(e=>({source:e.source,creationLocation:e.creationLocation,data:e.data})):[]}addCallback(e,t,n){let i=-1;t&&t>0&&(i=setTimeout(()=>{this._callbacks=this._callbacks.filter(e=>e.timeoutId!==i),e(this._didWork,this.getPendingTasks())},t)),this._callbacks.push({doneCb:e,timeoutId:i,updateCb:n})}whenStable(e,t,n){if(n&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/dist/task-tracking.js" loaded?');this.addCallback(e,t,n),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(e,t,n){return[]}}return e.\u0275fac=function(t){return new(t||e)(gi(ad))},e.\u0275prov=pe({token:e,factory:e.\u0275fac}),e})(),fd=(()=>{class e{constructor(){this._applications=new Map,vd.addToWindow(this)}registerApplication(e,t){this._applications.set(e,t)}unregisterApplication(e){this._applications.delete(e)}unregisterAllApplications(){this._applications.clear()}getTestability(e){return this._applications.get(e)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(e,t=!0){return vd.findTestabilityInTree(this,e,t)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=pe({token:e,factory:e.\u0275fac}),e})();class md{addToWindow(e){}findTestabilityInTree(e,t,n){return null}}let bd,vd=new md,yd=!0,wd=!1;function _d(){return wd=!0,yd}const xd=new Xn("AllowMultipleToken");class Ad{constructor(e,t){this.name=e,this.token=t}}function Cd(e,t,n=[]){const i="Platform: "+t,s=new Xn(i);return(t=[])=>{let o=Sd();if(!o||o.injector.get(xd,!1))if(e)e(n.concat(t).concat({provide:s,useValue:!0}));else{const e=n.concat(t).concat({provide:s,useValue:!0},{provide:nr,useValue:"platform"});!function(e){if(bd&&!bd.destroyed&&!bd.injector.get(xd,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");bd=e.get(kd);const t=e.get(Gc,null);t&&t.forEach(e=>e())}(mr.create({providers:e,name:i}))}return function(e){const t=Sd();if(!t)throw new Error("No platform exists!");if(!t.injector.get(e,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return t}(s)}}function Sd(){return bd&&!bd.destroyed?bd:null}let kd=(()=>{class e{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,t){const n=function(e,t){let n;return n="noop"===e?new pd:("zone.js"===e?void 0:e)||new ad({enableLongStackTrace:_d(),shouldCoalesceEventChangeDetection:!!(null==t?void 0:t.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==t?void 0:t.ngZoneRunCoalescing)}),n}(t?t.ngZone:void 0,{ngZoneEventCoalescing:t&&t.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:t&&t.ngZoneRunCoalescing||!1}),i=[{provide:ad,useValue:n}];return n.run(()=>{const t=mr.create({providers:i,parent:this.injector,name:e.moduleType.name}),s=e.create(t),o=s.injector.get(ds,null);if(!o)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return n.runOutsideAngular(()=>{const e=n.onError.subscribe({next:e=>{o.handleError(e)}});s.onDestroy(()=>{Dd(this._modules,s),e.unsubscribe()})}),function(e,t,n){try{const i=n();return Yr(i)?i.catch(n=>{throw t.runOutsideAngular(()=>e.handleError(n)),n}):i}catch(i){throw t.runOutsideAngular(()=>e.handleError(i)),i}}(o,n,()=>{const e=s.injector.get(Hc);return e.runInitializers(),e.donePromise.then(()=>(Ga(s.injector.get(Zc,"en-US")||"en-US"),this._moduleDoBootstrap(s),s))})})}bootstrapModule(e,t=[]){const n=Pd({},t);return function(e,t,n){const i=new oc(n);return Promise.resolve(i)}(0,0,e).then(e=>this.bootstrapModuleFactory(e,n))}_moduleDoBootstrap(e){const t=e.injector.get(Ed);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(e=>t.bootstrap(e));else{if(!e.instance.ngDoBootstrap)throw new Error(`The module ${ie(e.instance.constructor)} was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.`);e.instance.ngDoBootstrap(t)}this._modules.push(e)}onDestroy(e){this._destroyListeners.push(e)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(e=>e.destroy()),this._destroyListeners.forEach(e=>e()),this._destroyed=!0}get destroyed(){return this._destroyed}}return e.\u0275fac=function(t){return new(t||e)(gi(mr))},e.\u0275prov=pe({token:e,factory:e.\u0275fac}),e})();function Pd(e,t){return Array.isArray(t)?t.reduce(Pd,e):Object.assign(Object.assign({},e),t)}let Ed=(()=>{class e{constructor(e,t,n,i,s){this._zone=e,this._injector=t,this._exceptionHandler=n,this._componentFactoryResolver=i,this._initStatus=s,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const o=new v(e=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{e.next(this._stable),e.complete()})}),r=new v(e=>{let t;this._zone.runOutsideAngular(()=>{t=this._zone.onStable.subscribe(()=>{ad.assertNotInAngularZone(),rd(()=>{this._stable||this._zone.hasPendingMacrotasks||this._zone.hasPendingMicrotasks||(this._stable=!0,e.next(!0))})})});const n=this._zone.onUnstable.subscribe(()=>{ad.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{e.next(!1)}))});return()=>{t.unsubscribe(),n.unsubscribe()}});this.isStable=G(o,r.pipe(ee()))}bootstrap(e,t){if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");let n;n=e instanceof el?e:this._componentFactoryResolver.resolveComponentFactory(e),this.componentTypes.push(n.componentType);const i=n.isBoundToModule?void 0:this._injector.get(jl),s=n.create(mr.NULL,[],t||n.selector,i),o=s.location.nativeElement,r=s.injector.get(gd,null),a=r&&s.injector.get(fd);return r&&a&&a.registerApplication(o,r),s.onDestroy(()=>{this.detachView(s.hostView),Dd(this.components,s),a&&a.unregisterApplication(o)}),this._loadComponent(s),s}tick(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;for(let e of this._views)e.detectChanges()}catch(e){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(e))}finally{this._runningTick=!1}}attachView(e){const t=e;this._views.push(t),t.attachToAppRef(this)}detachView(e){const t=e;Dd(this._views,t),t.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(qc,[]).concat(this._bootstrapListeners).forEach(t=>t(e))}ngOnDestroy(){this._views.slice().forEach(e=>e.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return e.\u0275fac=function(t){return new(t||e)(gi(ad),gi(mr),gi(ds),gi(nl),gi(Hc))},e.\u0275prov=pe({token:e,factory:e.\u0275fac}),e})();function Dd(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Od{}class Md{}const Td={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"};let Id=(()=>{class e{constructor(e,t){this._compiler=e,this._config=t||Td}load(e){return this.loadAndCompile(e)}loadAndCompile(e){let[t,i]=e.split("#");return void 0===i&&(i="default"),n("MYvV")(t).then(e=>e[i]).then(e=>Rd(e,t,i)).then(e=>this._compiler.compileModuleAsync(e))}loadFactory(e){let[t,i]=e.split("#"),s="NgFactory";return void 0===i&&(i="default",s=""),n("MYvV")(this._config.factoryPathPrefix+t+this._config.factoryPathSuffix).then(e=>e[i+s]).then(e=>Rd(e,t,i))}}return e.\u0275fac=function(t){return new(t||e)(gi(sd),gi(Md,8))},e.\u0275prov=pe({token:e,factory:e.\u0275fac}),e})();function Rd(e,t,n){if(!e)throw new Error(`Cannot find '${n}' in '${t}'`);return e}const Ld=Cd(null,"core",[{provide:$c,useValue:"unknown"},{provide:kd,deps:[mr]},{provide:fd,deps:[]},{provide:Yc,deps:[]}]),Fd=[{provide:Ed,useClass:Ed,deps:[ad,mr,ds,nl,Hc]},{provide:ec,deps:[ad],useFactory:function(e){let t=[];return e.onStable.subscribe(()=>{for(;t.length;)t.pop()()}),function(e){t.push(e)}}},{provide:Hc,useClass:Hc,deps:[[new yi,Nc]]},{provide:sd,useClass:sd,deps:[]},Uc,{provide:Sl,useFactory:function(){return Ll},deps:[]},{provide:Pl,useFactory:function(){return Fl},deps:[]},{provide:Zc,useFactory:function(e){return Ga(e=e||"undefined"!=typeof $localize&&$localize.locale||"en-US"),e},deps:[[new vi(Zc),new yi,new wi]]},{provide:Qc,useValue:"USD"}];let Bd=(()=>{class e{constructor(e){}}return e.\u0275fac=function(t){return new(t||e)(gi(Ed))},e.\u0275mod=Qe({type:e}),e.\u0275inj=fe({providers:Fd}),e})();const zd={production:!0,VERSION:n("kiQV").version,AUTHOR:n("kiQV").author};let Vd=null;function Nd(){return Vd}const Hd=new Xn("DocumentToken");let jd=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=pe({factory:Ud,token:e,providedIn:"platform"}),e})();function Ud(){return gi(Gd)}const Wd=new Xn("Location Initialized");let Gd=(()=>{class e extends jd{constructor(e){super(),this._doc=e,this._init()}_init(){this.location=Nd().getLocation(),this._history=Nd().getHistory()}getBaseHrefFromDOM(){return Nd().getBaseHref(this._doc)}onPopState(e){Nd().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",e,!1)}onHashChange(e){Nd().getGlobalEventTarget(this._doc,"window").addEventListener("hashchange",e,!1)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(e){this.location.pathname=e}pushState(e,t,n){$d()?this._history.pushState(e,t,n):this.location.hash=n}replaceState(e,t,n){$d()?this._history.replaceState(e,t,n):this.location.hash=n}forward(){this._history.forward()}back(){this._history.back()}getState(){return this._history.state}}return e.\u0275fac=function(t){return new(t||e)(gi(Hd))},e.\u0275prov=pe({factory:qd,token:e,providedIn:"platform"}),e})();function $d(){return!!window.history.pushState}function qd(){return new Gd(gi(Hd))}function Yd(e,t){if(0==e.length)return t;if(0==t.length)return e;let n=0;return e.endsWith("/")&&n++,t.startsWith("/")&&n++,2==n?e+t.substring(1):1==n?e+t:e+"/"+t}function Zd(e){const t=e.match(/#|\?|$/),n=t&&t.index||e.length;return e.slice(0,n-("/"===e[n-1]?1:0))+e.slice(n)}function Qd(e){return e&&"?"!==e[0]?"?"+e:e}let Xd=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=pe({factory:Kd,token:e,providedIn:"root"}),e})();function Kd(e){const t=gi(Hd).location;return new eu(gi(jd),t&&t.origin||"")}const Jd=new Xn("appBaseHref");let eu=(()=>{class e extends Xd{constructor(e,t){if(super(),this._platformLocation=e,null==t&&(t=this._platformLocation.getBaseHrefFromDOM()),null==t)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=t}onPopState(e){this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e)}getBaseHref(){return this._baseHref}prepareExternalUrl(e){return Yd(this._baseHref,e)}path(e=!1){const t=this._platformLocation.pathname+Qd(this._platformLocation.search),n=this._platformLocation.hash;return n&&e?`${t}${n}`:t}pushState(e,t,n,i){const s=this.prepareExternalUrl(n+Qd(i));this._platformLocation.pushState(e,t,s)}replaceState(e,t,n,i){const s=this.prepareExternalUrl(n+Qd(i));this._platformLocation.replaceState(e,t,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}}return e.\u0275fac=function(t){return new(t||e)(gi(jd),gi(Jd,8))},e.\u0275prov=pe({token:e,factory:e.\u0275fac}),e})(),tu=(()=>{class e extends Xd{constructor(e,t){super(),this._platformLocation=e,this._baseHref="",null!=t&&(this._baseHref=t)}onPopState(e){this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e)}getBaseHref(){return this._baseHref}path(e=!1){let t=this._platformLocation.hash;return null==t&&(t="#"),t.length>0?t.substring(1):t}prepareExternalUrl(e){const t=Yd(this._baseHref,e);return t.length>0?"#"+t:t}pushState(e,t,n,i){let s=this.prepareExternalUrl(n+Qd(i));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.pushState(e,t,s)}replaceState(e,t,n,i){let s=this.prepareExternalUrl(n+Qd(i));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(e,t,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}}return e.\u0275fac=function(t){return new(t||e)(gi(jd),gi(Jd,8))},e.\u0275prov=pe({token:e,factory:e.\u0275fac}),e})(),nu=(()=>{class e{constructor(e,t){this._subject=new yc,this._urlChangeListeners=[],this._platformStrategy=e;const n=this._platformStrategy.getBaseHref();this._platformLocation=t,this._baseHref=Zd(su(n)),this._platformStrategy.onPopState(e=>{this._subject.emit({url:this.path(!0),pop:!0,state:e.state,type:e.type})})}path(e=!1){return this.normalize(this._platformStrategy.path(e))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(e,t=""){return this.path()==this.normalize(e+Qd(t))}normalize(t){return e.stripTrailingSlash(function(e,t){return e&&t.startsWith(e)?t.substring(e.length):t}(this._baseHref,su(t)))}prepareExternalUrl(e){return e&&"/"!==e[0]&&(e="/"+e),this._platformStrategy.prepareExternalUrl(e)}go(e,t="",n=null){this._platformStrategy.pushState(n,"",e,t),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Qd(t)),n)}replaceState(e,t="",n=null){this._platformStrategy.replaceState(n,"",e,t),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Qd(t)),n)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}onUrlChange(e){this._urlChangeListeners.push(e),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(e=>{this._notifyUrlChangeListeners(e.url,e.state)}))}_notifyUrlChangeListeners(e="",t){this._urlChangeListeners.forEach(n=>n(e,t))}subscribe(e,t,n){return this._subject.subscribe({next:e,error:t,complete:n})}}return e.\u0275fac=function(t){return new(t||e)(gi(Xd),gi(jd))},e.normalizeQueryParams=Qd,e.joinWithSlash=Yd,e.stripTrailingSlash=Zd,e.\u0275prov=pe({factory:iu,token:e,providedIn:"root"}),e})();function iu(){return new nu(gi(Xd),gi(jd))}function su(e){return e.replace(/\/index.html$/,"")}var ou=function(e){return e[e.Zero=0]="Zero",e[e.One=1]="One",e[e.Two=2]="Two",e[e.Few=3]="Few",e[e.Many=4]="Many",e[e.Other=5]="Other",e}({}),ru=function(e){return e[e.Format=0]="Format",e[e.Standalone=1]="Standalone",e}({}),au=function(e){return e[e.Narrow=0]="Narrow",e[e.Abbreviated=1]="Abbreviated",e[e.Wide=2]="Wide",e[e.Short=3]="Short",e}({}),lu=function(e){return e[e.Short=0]="Short",e[e.Medium=1]="Medium",e[e.Long=2]="Long",e[e.Full=3]="Full",e}({}),cu=function(e){return e[e.Decimal=0]="Decimal",e[e.Group=1]="Group",e[e.List=2]="List",e[e.PercentSign=3]="PercentSign",e[e.PlusSign=4]="PlusSign",e[e.MinusSign=5]="MinusSign",e[e.Exponential=6]="Exponential",e[e.SuperscriptingExponent=7]="SuperscriptingExponent",e[e.PerMille=8]="PerMille",e[e[1/0]=9]="Infinity",e[e.NaN=10]="NaN",e[e.TimeSeparator=11]="TimeSeparator",e[e.CurrencyDecimal=12]="CurrencyDecimal",e[e.CurrencyGroup=13]="CurrencyGroup",e}({});function du(e,t){return fu(Ha(e)[Ua.DateFormat],t)}function uu(e,t){return fu(Ha(e)[Ua.TimeFormat],t)}function hu(e,t){return fu(Ha(e)[Ua.DateTimeFormat],t)}function pu(e,t){const n=Ha(e),i=n[Ua.NumberSymbols][t];if(void 0===i){if(t===cu.CurrencyDecimal)return n[Ua.NumberSymbols][cu.Decimal];if(t===cu.CurrencyGroup)return n[Ua.NumberSymbols][cu.Group]}return i}function gu(e){if(!e[Ua.ExtraData])throw new Error(`Missing extra locale data for the locale "${e[Ua.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function fu(e,t){for(let n=t;n>-1;n--)if(void 0!==e[n])return e[n];throw new Error("Locale data API: locale data undefined")}function mu(e){const[t,n]=e.split(":");return{hours:+t,minutes:+n}}const bu=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,vu={},yu=/((?:[^GyYMLwWdEabBhHmsSzZO']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;var wu=function(e){return e[e.Short=0]="Short",e[e.ShortGMT=1]="ShortGMT",e[e.Long=2]="Long",e[e.Extended=3]="Extended",e}({}),_u=function(e){return e[e.FullYear=0]="FullYear",e[e.Month=1]="Month",e[e.Date=2]="Date",e[e.Hours=3]="Hours",e[e.Minutes=4]="Minutes",e[e.Seconds=5]="Seconds",e[e.FractionalSeconds=6]="FractionalSeconds",e[e.Day=7]="Day",e}({}),xu=function(e){return e[e.DayPeriods=0]="DayPeriods",e[e.Days=1]="Days",e[e.Months=2]="Months",e[e.Eras=3]="Eras",e}({});function Au(e,t,n,i){let s=function(e){if(Fu(e))return e;if("number"==typeof e&&!isNaN(e))return new Date(e);if("string"==typeof e){if(e=e.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(e)){const[t,n=1,i=1]=e.split("-").map(e=>+e);return Cu(t,n-1,i)}const t=parseFloat(e);if(!isNaN(e-t))return new Date(t);let n;if(n=e.match(bu))return function(e){const t=new Date(0);let n=0,i=0;const s=e[8]?t.setUTCFullYear:t.setFullYear,o=e[8]?t.setUTCHours:t.setHours;e[9]&&(n=Number(e[9]+e[10]),i=Number(e[9]+e[11])),s.call(t,Number(e[1]),Number(e[2])-1,Number(e[3]));const r=Number(e[4]||0)-n,a=Number(e[5]||0)-i,l=Number(e[6]||0),c=Math.floor(1e3*parseFloat("0."+(e[7]||0)));return o.call(t,r,a,l,c),t}(n)}const t=new Date(e);if(!Fu(t))throw new Error(`Unable to convert "${e}" into a date`);return t}(e);t=Su(n,t)||t;let o,r=[];for(;t;){if(o=yu.exec(t),!o){r.push(t);break}{r=r.concat(o.slice(1));const e=r.pop();if(!e)break;t=e}}let a=s.getTimezoneOffset();i&&(a=Lu(i,a),s=function(e,t,n){const i=e.getTimezoneOffset();return function(e,t){return(e=new Date(e.getTime())).setMinutes(e.getMinutes()+t),e}(e,-1*(Lu(t,i)-i))}(s,i));let l="";return r.forEach(e=>{const t=function(e){if(Ru[e])return Ru[e];let t;switch(e){case"G":case"GG":case"GGG":t=Du(xu.Eras,au.Abbreviated);break;case"GGGG":t=Du(xu.Eras,au.Wide);break;case"GGGGG":t=Du(xu.Eras,au.Narrow);break;case"y":t=Eu(_u.FullYear,1,0,!1,!0);break;case"yy":t=Eu(_u.FullYear,2,0,!0,!0);break;case"yyy":t=Eu(_u.FullYear,3,0,!1,!0);break;case"yyyy":t=Eu(_u.FullYear,4,0,!1,!0);break;case"Y":t=Iu(1);break;case"YY":t=Iu(2,!0);break;case"YYY":t=Iu(3);break;case"YYYY":t=Iu(4);break;case"M":case"L":t=Eu(_u.Month,1,1);break;case"MM":case"LL":t=Eu(_u.Month,2,1);break;case"MMM":t=Du(xu.Months,au.Abbreviated);break;case"MMMM":t=Du(xu.Months,au.Wide);break;case"MMMMM":t=Du(xu.Months,au.Narrow);break;case"LLL":t=Du(xu.Months,au.Abbreviated,ru.Standalone);break;case"LLLL":t=Du(xu.Months,au.Wide,ru.Standalone);break;case"LLLLL":t=Du(xu.Months,au.Narrow,ru.Standalone);break;case"w":t=Tu(1);break;case"ww":t=Tu(2);break;case"W":t=Tu(1,!0);break;case"d":t=Eu(_u.Date,1);break;case"dd":t=Eu(_u.Date,2);break;case"E":case"EE":case"EEE":t=Du(xu.Days,au.Abbreviated);break;case"EEEE":t=Du(xu.Days,au.Wide);break;case"EEEEE":t=Du(xu.Days,au.Narrow);break;case"EEEEEE":t=Du(xu.Days,au.Short);break;case"a":case"aa":case"aaa":t=Du(xu.DayPeriods,au.Abbreviated);break;case"aaaa":t=Du(xu.DayPeriods,au.Wide);break;case"aaaaa":t=Du(xu.DayPeriods,au.Narrow);break;case"b":case"bb":case"bbb":t=Du(xu.DayPeriods,au.Abbreviated,ru.Standalone,!0);break;case"bbbb":t=Du(xu.DayPeriods,au.Wide,ru.Standalone,!0);break;case"bbbbb":t=Du(xu.DayPeriods,au.Narrow,ru.Standalone,!0);break;case"B":case"BB":case"BBB":t=Du(xu.DayPeriods,au.Abbreviated,ru.Format,!0);break;case"BBBB":t=Du(xu.DayPeriods,au.Wide,ru.Format,!0);break;case"BBBBB":t=Du(xu.DayPeriods,au.Narrow,ru.Format,!0);break;case"h":t=Eu(_u.Hours,1,-12);break;case"hh":t=Eu(_u.Hours,2,-12);break;case"H":t=Eu(_u.Hours,1);break;case"HH":t=Eu(_u.Hours,2);break;case"m":t=Eu(_u.Minutes,1);break;case"mm":t=Eu(_u.Minutes,2);break;case"s":t=Eu(_u.Seconds,1);break;case"ss":t=Eu(_u.Seconds,2);break;case"S":t=Eu(_u.FractionalSeconds,1);break;case"SS":t=Eu(_u.FractionalSeconds,2);break;case"SSS":t=Eu(_u.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":t=Ou(wu.Short);break;case"ZZZZZ":t=Ou(wu.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":t=Ou(wu.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":t=Ou(wu.Long);break;default:return null}return Ru[e]=t,t}(e);l+=t?t(s,n,a):"''"===e?"'":e.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),l}function Cu(e,t,n){const i=new Date(0);return i.setFullYear(e,t,n),i.setHours(0,0,0),i}function Su(e,t){const n=function(e){return Ha(e)[Ua.LocaleId]}(e);if(vu[n]=vu[n]||{},vu[n][t])return vu[n][t];let i="";switch(t){case"shortDate":i=du(e,lu.Short);break;case"mediumDate":i=du(e,lu.Medium);break;case"longDate":i=du(e,lu.Long);break;case"fullDate":i=du(e,lu.Full);break;case"shortTime":i=uu(e,lu.Short);break;case"mediumTime":i=uu(e,lu.Medium);break;case"longTime":i=uu(e,lu.Long);break;case"fullTime":i=uu(e,lu.Full);break;case"short":const t=Su(e,"shortTime"),n=Su(e,"shortDate");i=ku(hu(e,lu.Short),[t,n]);break;case"medium":const s=Su(e,"mediumTime"),o=Su(e,"mediumDate");i=ku(hu(e,lu.Medium),[s,o]);break;case"long":const r=Su(e,"longTime"),a=Su(e,"longDate");i=ku(hu(e,lu.Long),[r,a]);break;case"full":const l=Su(e,"fullTime"),c=Su(e,"fullDate");i=ku(hu(e,lu.Full),[l,c])}return i&&(vu[n][t]=i),i}function ku(e,t){return t&&(e=e.replace(/\{([^}]+)}/g,function(e,n){return null!=t&&n in t?t[n]:e})),e}function Pu(e,t,n="-",i,s){let o="";(e<0||s&&e<=0)&&(s?e=1-e:(e=-e,o=n));let r=String(e);for(;r.length<t;)r="0"+r;return i&&(r=r.substr(r.length-t)),o+r}function Eu(e,t,n=0,i=!1,s=!1){return function(o,r){let a=function(e,t){switch(e){case _u.FullYear:return t.getFullYear();case _u.Month:return t.getMonth();case _u.Date:return t.getDate();case _u.Hours:return t.getHours();case _u.Minutes:return t.getMinutes();case _u.Seconds:return t.getSeconds();case _u.FractionalSeconds:return t.getMilliseconds();case _u.Day:return t.getDay();default:throw new Error(`Unknown DateType value "${e}".`)}}(e,o);if((n>0||a>-n)&&(a+=n),e===_u.Hours)0===a&&-12===n&&(a=12);else if(e===_u.FractionalSeconds)return l=t,Pu(a,3).substr(0,l);var l;const c=pu(r,cu.MinusSign);return Pu(a,t,c,i,s)}}function Du(e,t,n=ru.Format,i=!1){return function(s,o){return function(e,t,n,i,s,o){switch(n){case xu.Months:return function(e,t,n){const i=Ha(e),s=fu([i[Ua.MonthsFormat],i[Ua.MonthsStandalone]],t);return fu(s,n)}(t,s,i)[e.getMonth()];case xu.Days:return function(e,t,n){const i=Ha(e),s=fu([i[Ua.DaysFormat],i[Ua.DaysStandalone]],t);return fu(s,n)}(t,s,i)[e.getDay()];case xu.DayPeriods:const r=e.getHours(),a=e.getMinutes();if(o){const e=function(e){const t=Ha(e);return gu(t),(t[Ua.ExtraData][2]||[]).map(e=>"string"==typeof e?mu(e):[mu(e[0]),mu(e[1])])}(t),n=function(e,t,n){const i=Ha(e);gu(i);const s=fu([i[Ua.ExtraData][0],i[Ua.ExtraData][1]],t)||[];return fu(s,n)||[]}(t,s,i),o=e.findIndex(e=>{if(Array.isArray(e)){const[t,n]=e,i=r>=t.hours&&a>=t.minutes,s=r<n.hours||r===n.hours&&a<n.minutes;if(t.hours<n.hours){if(i&&s)return!0}else if(i||s)return!0}else if(e.hours===r&&e.minutes===a)return!0;return!1});if(-1!==o)return n[o]}return function(e,t,n){const i=Ha(e),s=fu([i[Ua.DayPeriodsFormat],i[Ua.DayPeriodsStandalone]],t);return fu(s,n)}(t,s,i)[r<12?0:1];case xu.Eras:return function(e,t){return fu(Ha(e)[Ua.Eras],t)}(t,i)[e.getFullYear()<=0?0:1];default:throw new Error("unexpected translation type "+n)}}(s,o,e,t,n,i)}}function Ou(e){return function(t,n,i){const s=-1*i,o=pu(n,cu.MinusSign),r=s>0?Math.floor(s/60):Math.ceil(s/60);switch(e){case wu.Short:return(s>=0?"+":"")+Pu(r,2,o)+Pu(Math.abs(s%60),2,o);case wu.ShortGMT:return"GMT"+(s>=0?"+":"")+Pu(r,1,o);case wu.Long:return"GMT"+(s>=0?"+":"")+Pu(r,2,o)+":"+Pu(Math.abs(s%60),2,o);case wu.Extended:return 0===i?"Z":(s>=0?"+":"")+Pu(r,2,o)+":"+Pu(Math.abs(s%60),2,o);default:throw new Error(`Unknown zone width "${e}"`)}}}function Mu(e){return Cu(e.getFullYear(),e.getMonth(),e.getDate()+(4-e.getDay()))}function Tu(e,t=!1){return function(n,i){let s;if(t){const e=new Date(n.getFullYear(),n.getMonth(),1).getDay()-1,t=n.getDate();s=1+Math.floor((t+e)/7)}else{const e=Mu(n),t=function(e){const t=Cu(e,0,1).getDay();return Cu(e,0,1+(t<=4?4:11)-t)}(e.getFullYear()),i=e.getTime()-t.getTime();s=1+Math.round(i/6048e5)}return Pu(s,e,pu(i,cu.MinusSign))}}function Iu(e,t=!1){return function(n,i){return Pu(Mu(n).getFullYear(),e,pu(i,cu.MinusSign),t)}}const Ru={};function Lu(e,t){e=e.replace(/:/g,"");const n=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return isNaN(n)?t:n}function Fu(e){return e instanceof Date&&!isNaN(e.valueOf())}class Bu{}let zu=(()=>{class e extends Bu{constructor(e){super(),this.locale=e}getPluralCategory(e,t){switch(function(e){return Ha(e)[Ua.PluralCase]}(t||this.locale)(e)){case ou.Zero:return"zero";case ou.One:return"one";case ou.Two:return"two";case ou.Few:return"few";case ou.Many:return"many";default:return"other"}}}return e.\u0275fac=function(t){return new(t||e)(gi(Zc))},e.\u0275prov=pe({token:e,factory:e.\u0275fac}),e})();function Vu(e,t){t=encodeURIComponent(t);for(const n of e.split(";")){const e=n.indexOf("="),[i,s]=-1==e?[n,""]:[n.slice(0,e),n.slice(e+1)];if(i.trim()===t)return decodeURIComponent(s)}return null}let Nu=(()=>{class e{constructor(e,t,n,i){this._iterableDiffers=e,this._keyValueDiffers=t,this._ngEl=n,this._renderer=i,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(e){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof e?e.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(e){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof e?e.split(/\s+/):e,this._rawClass&&(kr(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const e=this._iterableDiffer.diff(this._rawClass);e&&this._applyIterableChanges(e)}else if(this._keyValueDiffer){const e=this._keyValueDiffer.diff(this._rawClass);e&&this._applyKeyValueChanges(e)}}_applyKeyValueChanges(e){e.forEachAddedItem(e=>this._toggleClass(e.key,e.currentValue)),e.forEachChangedItem(e=>this._toggleClass(e.key,e.currentValue)),e.forEachRemovedItem(e=>{e.previousValue&&this._toggleClass(e.key,!1)})}_applyIterableChanges(e){e.forEachAddedItem(e=>{if("string"!=typeof e.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got "+ie(e.item));this._toggleClass(e.item,!0)}),e.forEachRemovedItem(e=>this._toggleClass(e.item,!1))}_applyClasses(e){e&&(Array.isArray(e)||e instanceof Set?e.forEach(e=>this._toggleClass(e,!0)):Object.keys(e).forEach(t=>this._toggleClass(t,!!e[t])))}_removeClasses(e){e&&(Array.isArray(e)||e instanceof Set?e.forEach(e=>this._toggleClass(e,!1)):Object.keys(e).forEach(e=>this._toggleClass(e,!1)))}_toggleClass(e,t){(e=e.trim())&&e.split(/\s+/g).forEach(e=>{t?this._renderer.addClass(this._ngEl.nativeElement,e):this._renderer.removeClass(this._ngEl.nativeElement,e)})}}return e.\u0275fac=function(t){return new(t||e)(zr(Sl),zr(Pl),zr(rl),zr(cl))},e.\u0275dir=Ke({type:e,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),e})();class Hu{constructor(e,t,n,i){this.$implicit=e,this.ngForOf=t,this.index=n,this.count=i}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let ju=(()=>{class e{constructor(e,t,n){this._viewContainer=e,this._template=t,this._differs=n,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){this._trackByFn=e}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(e){e&&(this._template=e)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const n=this._ngForOf;if(!this._differ&&n)try{this._differ=this._differs.find(n).create(this.ngForTrackBy)}catch(t){throw new Error(`Cannot find a differ supporting object '${n}' of type '${e=n,e.name||typeof e}'. NgFor only supports binding to Iterables such as Arrays.`)}}var e;if(this._differ){const e=this._differ.diff(this._ngForOf);e&&this._applyChanges(e)}}_applyChanges(e){const t=[];e.forEachOperation((e,n,i)=>{if(null==e.previousIndex){const n=this._viewContainer.createEmbeddedView(this._template,new Hu(null,this._ngForOf,-1,-1),null===i?void 0:i),s=new Uu(e,n);t.push(s)}else if(null==i)this._viewContainer.remove(null===n?void 0:n);else if(null!==n){const s=this._viewContainer.get(n);this._viewContainer.move(s,i);const o=new Uu(e,s);t.push(o)}});for(let n=0;n<t.length;n++)this._perViewChange(t[n].view,t[n].record);for(let n=0,i=this._viewContainer.length;n<i;n++){const e=this._viewContainer.get(n);e.context.index=n,e.context.count=i,e.context.ngForOf=this._ngForOf}e.forEachIdentityChange(e=>{this._viewContainer.get(e.currentIndex).context.$implicit=e.item})}_perViewChange(e,t){e.context.$implicit=t.item}static ngTemplateContextGuard(e,t){return!0}}return e.\u0275fac=function(t){return new(t||e)(zr(Gl),zr(zl),zr(Sl))},e.\u0275dir=Ke({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),e})();class Uu{constructor(e,t){this.record=e,this.view=t}}let Wu=(()=>{class e{constructor(e,t){this._viewContainer=e,this._context=new Gu,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=t}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){$u("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){$u("ngIfElse",e),this._elseTemplateRef=e,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(e,t){return!0}}return e.\u0275fac=function(t){return new(t||e)(zr(Gl),zr(zl))},e.\u0275dir=Ke({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),e})();class Gu{constructor(){this.$implicit=null,this.ngIf=null}}function $u(e,t){if(t&&!t.createEmbeddedView)throw new Error(`${e} must be a TemplateRef, but received '${ie(t)}'.`)}class qu{constructor(e,t){this._viewContainerRef=e,this._templateRef=t,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(e){e&&!this._created?this.create():!e&&this._created&&this.destroy()}}let Yu=(()=>{class e{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(e){this._ngSwitch=e,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(e){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(e)}_matchCase(e){const t=e==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||t,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),t}_updateDefaultCases(e){if(this._defaultViews&&e!==this._defaultUsed){this._defaultUsed=e;for(let t=0;t<this._defaultViews.length;t++)this._defaultViews[t].enforceState(e)}}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Ke({type:e,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"}}),e})(),Zu=(()=>{class e{constructor(e,t,n){this.ngSwitch=n,n._addCase(),this._view=new qu(e,t)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return e.\u0275fac=function(t){return new(t||e)(zr(Gl),zr(zl),zr(Yu,1))},e.\u0275dir=Ke({type:e,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),e})(),Qu=(()=>{class e{constructor(e,t,n){n._addDefault(new qu(e,t))}}return e.\u0275fac=function(t){return new(t||e)(zr(Gl),zr(zl),zr(Yu,1))},e.\u0275dir=Ke({type:e,selectors:[["","ngSwitchDefault",""]]}),e})(),Xu=(()=>{class e{constructor(e,t,n){this._ngEl=e,this._differs=t,this._renderer=n,this._ngStyle=null,this._differ=null}set ngStyle(e){this._ngStyle=e,!this._differ&&e&&(this._differ=this._differs.find(e).create())}ngDoCheck(){if(this._differ){const e=this._differ.diff(this._ngStyle);e&&this._applyChanges(e)}}_setStyle(e,t){const[n,i]=e.split(".");null!=(t=null!=t&&i?`${t}${i}`:t)?this._renderer.setStyle(this._ngEl.nativeElement,n,t):this._renderer.removeStyle(this._ngEl.nativeElement,n)}_applyChanges(e){e.forEachRemovedItem(e=>this._setStyle(e.key,null)),e.forEachAddedItem(e=>this._setStyle(e.key,e.currentValue)),e.forEachChangedItem(e=>this._setStyle(e.key,e.currentValue))}}return e.\u0275fac=function(t){return new(t||e)(zr(rl),zr(Pl),zr(cl))},e.\u0275dir=Ke({type:e,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),e})(),Ku=(()=>{class e{constructor(e){this._viewContainerRef=e,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}ngOnChanges(e){if(this._shouldRecreateView(e)){const e=this._viewContainerRef;this._viewRef&&e.remove(e.indexOf(this._viewRef)),this._viewRef=this.ngTemplateOutlet?e.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext):null}else this._viewRef&&this.ngTemplateOutletContext&&this._updateExistingContext(this.ngTemplateOutletContext)}_shouldRecreateView(e){const t=e.ngTemplateOutletContext;return!!e.ngTemplateOutlet||t&&this._hasContextShapeChanged(t)}_hasContextShapeChanged(e){const t=Object.keys(e.previousValue||{}),n=Object.keys(e.currentValue||{});if(t.length===n.length){for(let e of n)if(-1===t.indexOf(e))return!0;return!1}return!0}_updateExistingContext(e){for(let t of Object.keys(e))this._viewRef.context[t]=this.ngTemplateOutletContext[t]}}return e.\u0275fac=function(t){return new(t||e)(zr(Gl))},e.\u0275dir=Ke({type:e,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[dt]}),e})();function Ju(e,t){return Error(`InvalidPipeArgument: '${t}' for pipe '${ie(e)}'`)}class eh{createSubscription(e,t){return e.subscribe({next:t,error:e=>{throw e}})}dispose(e){e.unsubscribe()}onDestroy(e){e.unsubscribe()}}class th{createSubscription(e,t){return e.then(t,e=>{throw e})}dispose(e){}onDestroy(e){}}const nh=new th,ih=new eh;let sh=(()=>{class e{constructor(e){this._ref=e,this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null}ngOnDestroy(){this._subscription&&this._dispose()}transform(e){return this._obj?e!==this._obj?(this._dispose(),this.transform(e)):this._latestValue:(e&&this._subscribe(e),this._latestValue)}_subscribe(e){this._obj=e,this._strategy=this._selectStrategy(e),this._subscription=this._strategy.createSubscription(e,t=>this._updateLatestValue(e,t))}_selectStrategy(t){if(Yr(t))return nh;if(Zr(t))return ih;throw Ju(e,t)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(e,t){e===this._obj&&(this._latestValue=t,this._ref.markForCheck())}}return e.\u0275fac=function(t){return new(t||e)(Vc())},e.\u0275pipe=Je({name:"async",type:e,pure:!1}),e})();const oh=/(?:[A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D])\S*/g;let rh=(()=>{class e{transform(t){if(null==t)return null;if("string"!=typeof t)throw Ju(e,t);return t.replace(oh,e=>e[0].toUpperCase()+e.substr(1).toLowerCase())}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=Je({name:"titlecase",type:e,pure:!0}),e})(),ah=(()=>{class e{transform(t){if(null==t)return null;if("string"!=typeof t)throw Ju(e,t);return t.toUpperCase()}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=Je({name:"uppercase",type:e,pure:!0}),e})(),lh=(()=>{class e{constructor(e){this.locale=e}transform(t,n="mediumDate",i,s){if(null==t||""===t||t!=t)return null;try{return Au(t,n,s||this.locale,i)}catch(o){throw Ju(e,o.message)}}}return e.\u0275fac=function(t){return new(t||e)(zr(Zc))},e.\u0275pipe=Je({name:"date",type:e,pure:!0}),e})(),ch=(()=>{class e{constructor(e){this.differs=e,this.keyValues=[]}transform(e,t=dh){if(!e||!(e instanceof Map)&&"object"!=typeof e)return null;this.differ||(this.differ=this.differs.find(e).create());const n=this.differ.diff(e);return n&&(this.keyValues=[],n.forEachItem(e=>{this.keyValues.push({key:e.key,value:e.currentValue})}),this.keyValues.sort(t)),this.keyValues}}return e.\u0275fac=function(t){return new(t||e)(zr(Pl))},e.\u0275pipe=Je({name:"keyvalue",type:e,pure:!1}),e})();function dh(e,t){const n=e.key,i=t.key;if(n===i)return 0;if(void 0===n)return 1;if(void 0===i)return-1;if(null===n)return 1;if(null===i)return-1;if("string"==typeof n&&"string"==typeof i)return n<i?-1:1;if("number"==typeof n&&"number"==typeof i)return n-i;if("boolean"==typeof n&&"boolean"==typeof i)return n<i?-1:1;const s=String(n),o=String(i);return s==o?0:s<o?-1:1}let uh=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=fe({providers:[{provide:Bu,useClass:zu}]}),e})();function hh(e){return"browser"===e}let ph=(()=>{class e{}return e.\u0275prov=pe({token:e,providedIn:"root",factory:()=>new gh(gi(Hd),window)}),e})();class gh{constructor(e,t){this.document=e,this.window=t,this.offset=()=>[0,0]}setOffset(e){this.offset=Array.isArray(e)?()=>e:e}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(e){this.supportsScrolling()&&this.window.scrollTo(e[0],e[1])}scrollToAnchor(e){var t;if(!this.supportsScrolling())return;const n=null!==(t=this.document.getElementById(e))&&void 0!==t?t:this.document.getElementsByName(e)[0];void 0!==n&&(this.scrollToElement(n),this.attemptFocus(n))}setHistoryScrollRestoration(e){if(this.supportScrollRestoration()){const t=this.window.history;t&&t.scrollRestoration&&(t.scrollRestoration=e)}}scrollToElement(e){const t=e.getBoundingClientRect(),n=t.left+this.window.pageXOffset,i=t.top+this.window.pageYOffset,s=this.offset();this.window.scrollTo(n-s[0],i-s[1])}attemptFocus(e){return e.focus(),this.document.activeElement===e}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const e=fh(this.window.history)||fh(Object.getPrototypeOf(this.window.history));return!(!e||!e.writable&&!e.set)}catch(e){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(e){return!1}}}function fh(e){return Object.getOwnPropertyDescriptor(e,"scrollRestoration")}class mh extends class extends class{}{constructor(){super()}supportsDOMEvents(){return!0}}{static makeCurrent(){var e;e=new mh,Vd||(Vd=e)}getProperty(e,t){return e[t]}log(e){window.console&&window.console.log&&window.console.log(e)}logGroup(e){window.console&&window.console.group&&window.console.group(e)}logGroupEnd(){window.console&&window.console.groupEnd&&window.console.groupEnd()}onAndCancel(e,t,n){return e.addEventListener(t,n,!1),()=>{e.removeEventListener(t,n,!1)}}dispatchEvent(e,t){e.dispatchEvent(t)}remove(e){return e.parentNode&&e.parentNode.removeChild(e),e}getValue(e){return e.value}createElement(e,t){return(t=t||this.getDefaultDocument()).createElement(e)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(e){return e.nodeType===Node.ELEMENT_NODE}isShadowRoot(e){return e instanceof DocumentFragment}getGlobalEventTarget(e,t){return"window"===t?window:"document"===t?e:"body"===t?e.body:null}getHistory(){return window.history}getLocation(){return window.location}getBaseHref(e){const t=vh||(vh=document.querySelector("base"),vh)?vh.getAttribute("href"):null;return null==t?null:(n=t,bh||(bh=document.createElement("a")),bh.setAttribute("href",n),"/"===bh.pathname.charAt(0)?bh.pathname:"/"+bh.pathname);var n}resetBaseElement(){vh=null}getUserAgent(){return window.navigator.userAgent}performanceNow(){return window.performance&&window.performance.now?window.performance.now():(new Date).getTime()}supportsCookies(){return!0}getCookie(e){return Vu(document.cookie,e)}}let bh,vh=null;const yh=new Xn("TRANSITION_ID"),wh=[{provide:Nc,useFactory:function(e,t,n){return()=>{n.get(Hc).donePromise.then(()=>{const n=Nd();Array.prototype.slice.apply(t.querySelectorAll("style[ng-transition]")).filter(t=>t.getAttribute("ng-transition")===e).forEach(e=>n.remove(e))})}},deps:[yh,Hd,mr],multi:!0}];class _h{static init(){var e;e=new _h,vd=e}addToWindow(e){Re.getAngularTestability=(t,n=!0)=>{const i=e.findTestabilityInTree(t,n);if(null==i)throw new Error("Could not find testability for element.");return i},Re.getAllAngularTestabilities=()=>e.getAllTestabilities(),Re.getAllAngularRootElements=()=>e.getAllRootElements(),Re.frameworkStabilizers||(Re.frameworkStabilizers=[]),Re.frameworkStabilizers.push(e=>{const t=Re.getAllAngularTestabilities();let n=t.length,i=!1;const s=function(t){i=i||t,n--,0==n&&e(i)};t.forEach(function(e){e.whenStable(s)})})}findTestabilityInTree(e,t,n){if(null==t)return null;const i=e.getTestability(t);return null!=i?i:n?Nd().isShadowRoot(t)?this.findTestabilityInTree(e,t.host,!0):this.findTestabilityInTree(e,t.parentElement,!0):null}}const xh=new Xn("EventManagerPlugins");let Ah=(()=>{class e{constructor(e,t){this._zone=t,this._eventNameToPlugin=new Map,e.forEach(e=>e.manager=this),this._plugins=e.slice().reverse()}addEventListener(e,t,n){return this._findPluginFor(t).addEventListener(e,t,n)}addGlobalEventListener(e,t,n){return this._findPluginFor(t).addGlobalEventListener(e,t,n)}getZone(){return this._zone}_findPluginFor(e){const t=this._eventNameToPlugin.get(e);if(t)return t;const n=this._plugins;for(let i=0;i<n.length;i++){const t=n[i];if(t.supports(e))return this._eventNameToPlugin.set(e,t),t}throw new Error("No event manager plugin found for event "+e)}}return e.\u0275fac=function(t){return new(t||e)(gi(xh),gi(ad))},e.\u0275prov=pe({token:e,factory:e.\u0275fac}),e})();class Ch{constructor(e){this._doc=e}addGlobalEventListener(e,t,n){const i=Nd().getGlobalEventTarget(this._doc,e);if(!i)throw new Error(`Unsupported event target ${i} for event ${t}`);return this.addEventListener(i,t,n)}}let Sh=(()=>{class e{constructor(){this._stylesSet=new Set}addStyles(e){const t=new Set;e.forEach(e=>{this._stylesSet.has(e)||(this._stylesSet.add(e),t.add(e))}),this.onStylesAdded(t)}onStylesAdded(e){}getAllStyles(){return Array.from(this._stylesSet)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=pe({token:e,factory:e.\u0275fac}),e})(),kh=(()=>{class e extends Sh{constructor(e){super(),this._doc=e,this._hostNodes=new Set,this._styleNodes=new Set,this._hostNodes.add(e.head)}_addStylesToHost(e,t){e.forEach(e=>{const n=this._doc.createElement("style");n.textContent=e,this._styleNodes.add(t.appendChild(n))})}addHost(e){this._addStylesToHost(this._stylesSet,e),this._hostNodes.add(e)}removeHost(e){this._hostNodes.delete(e)}onStylesAdded(e){this._hostNodes.forEach(t=>this._addStylesToHost(e,t))}ngOnDestroy(){this._styleNodes.forEach(e=>Nd().remove(e))}}return e.\u0275fac=function(t){return new(t||e)(gi(Hd))},e.\u0275prov=pe({token:e,factory:e.\u0275fac}),e})();const Ph={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},Eh=/%COMP%/g;function Dh(e,t,n){for(let i=0;i<t.length;i++){let s=t[i];Array.isArray(s)?Dh(e,s,n):(s=s.replace(Eh,e),n.push(s))}return n}function Oh(e){return t=>{if("__ngUnwrap__"===t)return e;!1===e(t)&&(t.preventDefault(),t.returnValue=!1)}}let Mh=(()=>{class e{constructor(e,t,n){this.eventManager=e,this.sharedStylesHost=t,this.appId=n,this.rendererByCompId=new Map,this.defaultRenderer=new Th(e)}createRenderer(e,t){if(!e||!t)return this.defaultRenderer;switch(t.encapsulation){case De.Emulated:{let n=this.rendererByCompId.get(t.id);return n||(n=new Ih(this.eventManager,this.sharedStylesHost,t,this.appId),this.rendererByCompId.set(t.id,n)),n.applyToHost(e),n}case 1:case De.ShadowDom:return new Rh(this.eventManager,this.sharedStylesHost,e,t);default:if(!this.rendererByCompId.has(t.id)){const e=Dh(t.id,t.styles,[]);this.sharedStylesHost.addStyles(e),this.rendererByCompId.set(t.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return e.\u0275fac=function(t){return new(t||e)(gi(Ah),gi(kh),gi(jc))},e.\u0275prov=pe({token:e,factory:e.\u0275fac}),e})();class Th{constructor(e){this.eventManager=e,this.data=Object.create(null)}destroy(){}createElement(e,t){return t?document.createElementNS(Ph[t]||t,e):document.createElement(e)}createComment(e){return document.createComment(e)}createText(e){return document.createTextNode(e)}appendChild(e,t){e.appendChild(t)}insertBefore(e,t,n){e&&e.insertBefore(t,n)}removeChild(e,t){e&&e.removeChild(t)}selectRootElement(e,t){let n="string"==typeof e?document.querySelector(e):e;if(!n)throw new Error(`The selector "${e}" did not match any elements`);return t||(n.textContent=""),n}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,t,n,i){if(i){t=i+":"+t;const s=Ph[i];s?e.setAttributeNS(s,t,n):e.setAttribute(t,n)}else e.setAttribute(t,n)}removeAttribute(e,t,n){if(n){const i=Ph[n];i?e.removeAttributeNS(i,t):e.removeAttribute(`${n}:${t}`)}else e.removeAttribute(t)}addClass(e,t){e.classList.add(t)}removeClass(e,t){e.classList.remove(t)}setStyle(e,t,n,i){i&(ms.DashCase|ms.Important)?e.style.setProperty(t,n,i&ms.Important?"important":""):e.style[t]=n}removeStyle(e,t,n){n&ms.DashCase?e.style.removeProperty(t):e.style[t]=""}setProperty(e,t,n){e[t]=n}setValue(e,t){e.nodeValue=t}listen(e,t,n){return"string"==typeof e?this.eventManager.addGlobalEventListener(e,t,Oh(n)):this.eventManager.addEventListener(e,t,Oh(n))}}class Ih extends Th{constructor(e,t,n,i){super(e),this.component=n;const s=Dh(i+"-"+n.id,n.styles,[]);t.addStyles(s),this.contentAttr="_ngcontent-%COMP%".replace(Eh,i+"-"+n.id),this.hostAttr="_nghost-%COMP%".replace(Eh,i+"-"+n.id)}applyToHost(e){super.setAttribute(e,this.hostAttr,"")}createElement(e,t){const n=super.createElement(e,t);return super.setAttribute(n,this.contentAttr,""),n}}class Rh extends Th{constructor(e,t,n,i){super(e),this.sharedStylesHost=t,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const s=Dh(i.id,i.styles,[]);for(let o=0;o<s.length;o++){const e=document.createElement("style");e.textContent=s[o],this.shadowRoot.appendChild(e)}}nodeOrShadowRoot(e){return e===this.hostEl?this.shadowRoot:e}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(e,t){return super.appendChild(this.nodeOrShadowRoot(e),t)}insertBefore(e,t,n){return super.insertBefore(this.nodeOrShadowRoot(e),t,n)}removeChild(e,t){return super.removeChild(this.nodeOrShadowRoot(e),t)}parentNode(e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(e)))}}let Lh=(()=>{class e extends Ch{constructor(e){super(e)}supports(e){return!0}addEventListener(e,t,n){return e.addEventListener(t,n,!1),()=>this.removeEventListener(e,t,n)}removeEventListener(e,t,n){return e.removeEventListener(t,n)}}return e.\u0275fac=function(t){return new(t||e)(gi(Hd))},e.\u0275prov=pe({token:e,factory:e.\u0275fac}),e})();const Fh={pan:!0,panstart:!0,panmove:!0,panend:!0,pancancel:!0,panleft:!0,panright:!0,panup:!0,pandown:!0,pinch:!0,pinchstart:!0,pinchmove:!0,pinchend:!0,pinchcancel:!0,pinchin:!0,pinchout:!0,press:!0,pressup:!0,rotate:!0,rotatestart:!0,rotatemove:!0,rotateend:!0,rotatecancel:!0,swipe:!0,swipeleft:!0,swiperight:!0,swipeup:!0,swipedown:!0,tap:!0,doubletap:!0},Bh=new Xn("HammerGestureConfig"),zh=new Xn("HammerLoader");let Vh=(()=>{class e{constructor(){this.events=[],this.overrides={}}buildHammer(e){const t=new Hammer(e,this.options);t.get("pinch").set({enable:!0}),t.get("rotate").set({enable:!0});for(const n in this.overrides)t.get(n).set(this.overrides[n]);return t}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=pe({token:e,factory:e.\u0275fac}),e})();const Nh=[{provide:xh,useClass:(()=>{class e extends Ch{constructor(e,t,n,i){super(e),this._config=t,this.console=n,this.loader=i,this._loaderPromise=null}supports(e){return!(!Fh.hasOwnProperty(e.toLowerCase())&&!this.isCustomEvent(e)||!window.Hammer&&!this.loader)}addEventListener(e,t,n){const i=this.manager.getZone();if(t=t.toLowerCase(),!window.Hammer&&this.loader){this._loaderPromise=this._loaderPromise||this.loader();let i=!1,s=()=>{i=!0};return this._loaderPromise.then(()=>{window.Hammer?i||(s=this.addEventListener(e,t,n)):s=()=>{}}).catch(()=>{s=()=>{}}),()=>{s()}}return i.runOutsideAngular(()=>{const s=this._config.buildHammer(e),o=function(e){i.runGuarded(function(){n(e)})};return s.on(t,o),()=>{s.off(t,o),"function"==typeof s.destroy&&s.destroy()}})}isCustomEvent(e){return this._config.events.indexOf(e)>-1}}return e.\u0275fac=function(t){return new(t||e)(gi(Hd),gi(Bh),gi(Yc),gi(zh,8))},e.\u0275prov=pe({token:e,factory:e.\u0275fac}),e})(),multi:!0,deps:[Hd,Bh,Yc,[new yi,zh]]},{provide:Bh,useClass:Vh,deps:[]}];let Hh=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=fe({providers:Nh}),e})();const jh=["alt","control","meta","shift"],Uh={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},Wh={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},Gh={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey};let $h=(()=>{class e extends Ch{constructor(e){super(e)}supports(t){return null!=e.parseEventName(t)}addEventListener(t,n,i){const s=e.parseEventName(n),o=e.eventCallback(s.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Nd().onAndCancel(t,s.domEventName,o))}static parseEventName(t){const n=t.toLowerCase().split("."),i=n.shift();if(0===n.length||"keydown"!==i&&"keyup"!==i)return null;const s=e._normalizeKey(n.pop());let o="";if(jh.forEach(e=>{const t=n.indexOf(e);t>-1&&(n.splice(t,1),o+=e+".")}),o+=s,0!=n.length||0===s.length)return null;const r={};return r.domEventName=i,r.fullKey=o,r}static getEventFullKey(e){let t="",n=function(e){let t=e.key;if(null==t){if(t=e.keyIdentifier,null==t)return"Unidentified";t.startsWith("U+")&&(t=String.fromCharCode(parseInt(t.substring(2),16)),3===e.location&&Wh.hasOwnProperty(t)&&(t=Wh[t]))}return Uh[t]||t}(e);return n=n.toLowerCase()," "===n?n="space":"."===n&&(n="dot"),jh.forEach(i=>{i!=n&&(0,Gh[i])(e)&&(t+=i+".")}),t+=n,t}static eventCallback(t,n,i){return s=>{e.getEventFullKey(s)===t&&i.runGuarded(()=>n(s))}}static _normalizeKey(e){switch(e){case"esc":return"escape";default:return e}}}return e.\u0275fac=function(t){return new(t||e)(gi(Hd))},e.\u0275prov=pe({token:e,factory:e.\u0275fac}),e})(),qh=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=pe({factory:function(){return gi(Yh)},token:e,providedIn:"root"}),e})(),Yh=(()=>{class e extends qh{constructor(e){super(),this._doc=e}sanitize(e,t){if(null==t)return null;switch(e){case is.NONE:return t;case is.HTML:return Ti(t,"HTML")?Mi(t):ts(this._doc,String(t)).toString();case is.STYLE:return Ti(t,"Style")?Mi(t):t;case is.SCRIPT:if(Ti(t,"Script"))return Mi(t);throw new Error("unsafe value used in a script context");case is.URL:return Ii(t),Ti(t,"URL")?Mi(t):zi(String(t));case is.RESOURCE_URL:if(Ti(t,"ResourceURL"))return Mi(t);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${e} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(e){return new ki(e)}bypassSecurityTrustStyle(e){return new Pi(e)}bypassSecurityTrustScript(e){return new Ei(e)}bypassSecurityTrustUrl(e){return new Di(e)}bypassSecurityTrustResourceUrl(e){return new Oi(e)}}return e.\u0275fac=function(t){return new(t||e)(gi(Hd))},e.\u0275prov=pe({factory:function(){return e=gi(er),new Yh(e.get(Hd));var e},token:e,providedIn:"root"}),e})();const Zh=Cd(Ld,"browser",[{provide:$c,useValue:"browser"},{provide:Gc,useValue:function(){mh.makeCurrent(),_h.init()},multi:!0},{provide:Hd,useFactory:function(){return function(e){ft=e}(document),document},deps:[]}]),Qh=[[],{provide:nr,useValue:"root"},{provide:ds,useFactory:function(){return new ds},deps:[]},{provide:xh,useClass:Lh,multi:!0,deps:[Hd,ad,$c]},{provide:xh,useClass:$h,multi:!0,deps:[Hd]},[],{provide:Mh,useClass:Mh,deps:[Ah,kh,jc]},{provide:ll,useExisting:Mh},{provide:Sh,useExisting:kh},{provide:kh,useClass:kh,deps:[Hd]},{provide:gd,useClass:gd,deps:[ad]},{provide:Ah,useClass:Ah,deps:[xh,ad]},[]];let Xh=(()=>{class e{constructor(e){if(e)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(t){return{ngModule:e,providers:[{provide:jc,useValue:t.appId},{provide:yh,useExisting:jc},wh]}}}return e.\u0275fac=function(t){return new(t||e)(gi(e,12))},e.\u0275mod=Qe({type:e}),e.\u0275inj=fe({providers:Qh,imports:[uh,Bd]}),e})();"undefined"!=typeof window&&window;class Kh{}function Jh(e,t){return{type:7,name:e,definitions:t,options:{}}}function ep(e,t=null){return{type:4,styles:t,timings:e}}function tp(e,t=null){return{type:2,steps:e,options:t}}function np(e){return{type:6,styles:e,offset:null}}function ip(e,t,n){return{type:0,name:e,styles:t,options:n}}function sp(e){return{type:5,steps:e}}function op(e,t,n=null){return{type:1,expr:e,animation:t,options:n}}function rp(e=null){return{type:9,options:e}}function ap(e,t,n=null){return{type:11,selector:e,animation:t,options:n}}function lp(e){Promise.resolve(null).then(e)}class cp{constructor(e=0,t=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=e+t}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}onStart(e){this._onStartFns.push(e)}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){lp(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(e=>e()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){}setPosition(e){this._position=this.totalTime?e*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(e=>e()),t.length=0}}class dp{constructor(e){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=e;let t=0,n=0,i=0;const s=this.players.length;0==s?lp(()=>this._onFinish()):this.players.forEach(e=>{e.onDone(()=>{++t==s&&this._onFinish()}),e.onDestroy(()=>{++n==s&&this._onDestroy()}),e.onStart(()=>{++i==s&&this._onStart()})}),this.totalTime=this.players.reduce((e,t)=>Math.max(e,t.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this.players.forEach(e=>e.init())}onStart(e){this._onStartFns.push(e)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(e=>e()),this._onStartFns=[])}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(e=>e.play())}pause(){this.players.forEach(e=>e.pause())}restart(){this.players.forEach(e=>e.restart())}finish(){this._onFinish(),this.players.forEach(e=>e.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(e=>e.destroy()),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this.players.forEach(e=>e.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(e){const t=e*this.totalTime;this.players.forEach(e=>{const n=e.totalTime?Math.min(1,t/e.totalTime):1;e.setPosition(n)})}getPosition(){const e=this.players.reduce((e,t)=>null===e||t.totalTime>e.totalTime?t:e,null);return null!=e?e.getPosition():0}beforeDestroy(){this.players.forEach(e=>{e.beforeDestroy&&e.beforeDestroy()})}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(e=>e()),t.length=0}}function up(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function hp(e){switch(e.length){case 0:return new cp;case 1:return e[0];default:return new dp(e)}}function pp(e,t,n,i,s={},o={}){const r=[],a=[];let l=-1,c=null;if(i.forEach(e=>{const n=e.offset,i=n==l,d=i&&c||{};Object.keys(e).forEach(n=>{let i=n,a=e[n];if("offset"!==n)switch(i=t.normalizePropertyName(i,r),a){case"!":a=s[n];break;case"*":a=o[n];break;default:a=t.normalizeStyleValue(n,i,a,r)}d[i]=a}),i||a.push(d),c=d,l=n}),r.length){const e="\n - ";throw new Error(`Unable to animate due to the following errors:${e}${r.join(e)}`)}return a}function gp(e,t,n,i){switch(t){case"start":e.onStart(()=>i(n&&fp(n,"start",e)));break;case"done":e.onDone(()=>i(n&&fp(n,"done",e)));break;case"destroy":e.onDestroy(()=>i(n&&fp(n,"destroy",e)))}}function fp(e,t,n){const i=n.totalTime,s=mp(e.element,e.triggerName,e.fromState,e.toState,t||e.phaseName,null==i?e.totalTime:i,!!n.disabled),o=e._data;return null!=o&&(s._data=o),s}function mp(e,t,n,i,s="",o=0,r){return{element:e,triggerName:t,fromState:n,toState:i,phaseName:s,totalTime:o,disabled:!!r}}function bp(e,t,n){let i;return e instanceof Map?(i=e.get(t),i||e.set(t,i=n)):(i=e[t],i||(i=e[t]=n)),i}function vp(e){const t=e.indexOf(":");return[e.substring(1,t),e.substr(t+1)]}let yp=(e,t)=>!1,wp=(e,t)=>!1,_p=(e,t,n)=>[];const xp=up();(xp||"undefined"!=typeof Element)&&(yp=(e,t)=>e.contains(t),wp=(()=>{if(xp||Element.prototype.matches)return(e,t)=>e.matches(t);{const e=Element.prototype,t=e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector;return t?(e,n)=>t.apply(e,[n]):wp}})(),_p=(e,t,n)=>{let i=[];if(n){const n=e.querySelectorAll(t);for(let e=0;e<n.length;e++)i.push(n[e])}else{const n=e.querySelector(t);n&&i.push(n)}return i});let Ap=null,Cp=!1;function Sp(e){Ap||(Ap=("undefined"!=typeof document?document.body:null)||{},Cp=!!Ap.style&&"WebkitAppearance"in Ap.style);let t=!0;return Ap.style&&!function(e){return"ebkit"==e.substring(1,6)}(e)&&(t=e in Ap.style,!t&&Cp)&&(t="Webkit"+e.charAt(0).toUpperCase()+e.substr(1)in Ap.style),t}const kp=wp,Pp=yp,Ep=_p;function Dp(e){const t={};return Object.keys(e).forEach(n=>{const i=n.replace(/([a-z])([A-Z])/g,"$1-$2");t[i]=e[n]}),t}let Op=(()=>{class e{validateStyleProperty(e){return Sp(e)}matchesElement(e,t){return kp(e,t)}containsElement(e,t){return Pp(e,t)}query(e,t,n){return Ep(e,t,n)}computeStyle(e,t,n){return n||""}animate(e,t,n,i,s,o=[],r){return new cp(n,i)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=pe({token:e,factory:e.\u0275fac}),e})(),Mp=(()=>{class e{}return e.NOOP=new Op,e})();function Tp(e){if("number"==typeof e)return e;const t=e.match(/^(-?[\.\d]+)(m?s)/);return!t||t.length<2?0:Ip(parseFloat(t[1]),t[2])}function Ip(e,t){switch(t){case"s":return 1e3*e;default:return e}}function Rp(e,t,n){return e.hasOwnProperty("duration")?e:function(e,t,n){let i,s=0,o="";if("string"==typeof e){const n=e.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===n)return t.push(`The provided timing value "${e}" is invalid.`),{duration:0,delay:0,easing:""};i=Ip(parseFloat(n[1]),n[2]);const r=n[3];null!=r&&(s=Ip(parseFloat(r),n[4]));const a=n[5];a&&(o=a)}else i=e;if(!n){let n=!1,o=t.length;i<0&&(t.push("Duration values below 0 are not allowed for this animation step."),n=!0),s<0&&(t.push("Delay values below 0 are not allowed for this animation step."),n=!0),n&&t.splice(o,0,`The provided timing value "${e}" is invalid.`)}return{duration:i,delay:s,easing:o}}(e,t,n)}function Lp(e,t={}){return Object.keys(e).forEach(n=>{t[n]=e[n]}),t}function Fp(e,t,n={}){if(t)for(let i in e)n[i]=e[i];else Lp(e,n);return n}function Bp(e,t,n){return n?t+":"+n+";":""}function zp(e){let t="";for(let n=0;n<e.style.length;n++){const i=e.style.item(n);t+=Bp(0,i,e.style.getPropertyValue(i))}for(const n in e.style)e.style.hasOwnProperty(n)&&!n.startsWith("_")&&(t+=Bp(0,n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),e.style[n]));e.setAttribute("style",t)}function Vp(e,t,n){e.style&&(Object.keys(t).forEach(i=>{const s=qp(i);n&&!n.hasOwnProperty(i)&&(n[i]=e.style[s]),e.style[s]=t[i]}),up()&&zp(e))}function Np(e,t){e.style&&(Object.keys(t).forEach(t=>{const n=qp(t);e.style[n]=""}),up()&&zp(e))}function Hp(e){return Array.isArray(e)?1==e.length?e[0]:tp(e):e}const jp=new RegExp("{{\\s*(.+?)\\s*}}","g");function Up(e){let t=[];if("string"==typeof e){let n;for(;n=jp.exec(e);)t.push(n[1]);jp.lastIndex=0}return t}function Wp(e,t,n){const i=e.toString(),s=i.replace(jp,(e,i)=>{let s=t[i];return t.hasOwnProperty(i)||(n.push("Please provide a value for the animation param "+i),s=""),s.toString()});return s==i?e:s}function Gp(e){const t=[];let n=e.next();for(;!n.done;)t.push(n.value),n=e.next();return t}const $p=/-+([a-z0-9])/g;function qp(e){return e.replace($p,(...e)=>e[1].toUpperCase())}function Yp(e,t){return 0===e||0===t}function Zp(e,t,n){const i=Object.keys(n);if(i.length&&t.length){let o=t[0],r=[];if(i.forEach(e=>{o.hasOwnProperty(e)||r.push(e),o[e]=n[e]}),r.length)for(var s=1;s<t.length;s++){let n=t[s];r.forEach(function(t){n[t]=Xp(e,t)})}}return t}function Qp(e,t,n){switch(t.type){case 7:return e.visitTrigger(t,n);case 0:return e.visitState(t,n);case 1:return e.visitTransition(t,n);case 2:return e.visitSequence(t,n);case 3:return e.visitGroup(t,n);case 4:return e.visitAnimate(t,n);case 5:return e.visitKeyframes(t,n);case 6:return e.visitStyle(t,n);case 8:return e.visitReference(t,n);case 9:return e.visitAnimateChild(t,n);case 10:return e.visitAnimateRef(t,n);case 11:return e.visitQuery(t,n);case 12:return e.visitStagger(t,n);default:throw new Error("Unable to resolve animation metadata node #"+t.type)}}function Xp(e,t){return window.getComputedStyle(e)[t]}function Kp(e,t){const n=[];return"string"==typeof e?e.split(/\s*,\s*/).forEach(e=>function(e,t,n){if(":"==e[0]){const i=function(e,t){switch(e){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,t)=>parseFloat(t)>parseFloat(e);case":decrement":return(e,t)=>parseFloat(t)<parseFloat(e);default:return t.push(`The transition alias value "${e}" is not supported`),"* => *"}}(e,n);if("function"==typeof i)return void t.push(i);e=i}const i=e.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return n.push(`The provided transition expression "${e}" is not supported`),t;const s=i[1],o=i[2],r=i[3];t.push(tg(s,r)),"<"!=o[0]||"*"==s&&"*"==r||t.push(tg(r,s))}(e,n,t)):n.push(e),n}const Jp=new Set(["true","1"]),eg=new Set(["false","0"]);function tg(e,t){const n=Jp.has(e)||eg.has(e),i=Jp.has(t)||eg.has(t);return(s,o)=>{let r="*"==e||e==s,a="*"==t||t==o;return!r&&n&&"boolean"==typeof s&&(r=s?Jp.has(e):eg.has(e)),!a&&i&&"boolean"==typeof o&&(a=o?Jp.has(t):eg.has(t)),r&&a}}const ng=new RegExp("s*:selfs*,?","g");function ig(e,t,n){return new sg(e).build(t,n)}class sg{constructor(e){this._driver=e}build(e,t){const n=new og(t);return this._resetContextStyleTimingState(n),Qp(this,Hp(e),n)}_resetContextStyleTimingState(e){e.currentQuerySelector="",e.collectedStyles={},e.collectedStyles[""]={},e.currentTime=0}visitTrigger(e,t){let n=t.queryCount=0,i=t.depCount=0;const s=[],o=[];return"@"==e.name.charAt(0)&&t.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),e.definitions.forEach(e=>{if(this._resetContextStyleTimingState(t),0==e.type){const n=e,i=n.name;i.toString().split(/\s*,\s*/).forEach(e=>{n.name=e,s.push(this.visitState(n,t))}),n.name=i}else if(1==e.type){const s=this.visitTransition(e,t);n+=s.queryCount,i+=s.depCount,o.push(s)}else t.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:e.name,states:s,transitions:o,queryCount:n,depCount:i,options:null}}visitState(e,t){const n=this.visitStyle(e.styles,t),i=e.options&&e.options.params||null;if(n.containsDynamicStyles){const s=new Set,o=i||{};if(n.styles.forEach(e=>{if(rg(e)){const t=e;Object.keys(t).forEach(e=>{Up(t[e]).forEach(e=>{o.hasOwnProperty(e)||s.add(e)})})}}),s.size){const n=Gp(s.values());t.errors.push(`state("${e.name}", ...) must define default values for all the following style substitutions: ${n.join(", ")}`)}}return{type:0,name:e.name,style:n,options:i?{params:i}:null}}visitTransition(e,t){t.queryCount=0,t.depCount=0;const n=Qp(this,Hp(e.animation),t);return{type:1,matchers:Kp(e.expr,t.errors),animation:n,queryCount:t.queryCount,depCount:t.depCount,options:ag(e.options)}}visitSequence(e,t){return{type:2,steps:e.steps.map(e=>Qp(this,e,t)),options:ag(e.options)}}visitGroup(e,t){const n=t.currentTime;let i=0;const s=e.steps.map(e=>{t.currentTime=n;const s=Qp(this,e,t);return i=Math.max(i,t.currentTime),s});return t.currentTime=i,{type:3,steps:s,options:ag(e.options)}}visitAnimate(e,t){const n=function(e,t){let n=null;if(e.hasOwnProperty("duration"))n=e;else if("number"==typeof e)return lg(Rp(e,t).duration,0,"");const i=e;if(i.split(/\s+/).some(e=>"{"==e.charAt(0)&&"{"==e.charAt(1))){const e=lg(0,0,"");return e.dynamic=!0,e.strValue=i,e}return n=n||Rp(i,t),lg(n.duration,n.delay,n.easing)}(e.timings,t.errors);let i;t.currentAnimateTimings=n;let s=e.styles?e.styles:np({});if(5==s.type)i=this.visitKeyframes(s,t);else{let s=e.styles,o=!1;if(!s){o=!0;const e={};n.easing&&(e.easing=n.easing),s=np(e)}t.currentTime+=n.duration+n.delay;const r=this.visitStyle(s,t);r.isEmptyStep=o,i=r}return t.currentAnimateTimings=null,{type:4,timings:n,style:i,options:null}}visitStyle(e,t){const n=this._makeStyleAst(e,t);return this._validateStyleAst(n,t),n}_makeStyleAst(e,t){const n=[];Array.isArray(e.styles)?e.styles.forEach(e=>{"string"==typeof e?"*"==e?n.push(e):t.errors.push(`The provided style string value ${e} is not allowed.`):n.push(e)}):n.push(e.styles);let i=!1,s=null;return n.forEach(e=>{if(rg(e)){const t=e,n=t.easing;if(n&&(s=n,delete t.easing),!i)for(let e in t)if(t[e].toString().indexOf("{{")>=0){i=!0;break}}}),{type:6,styles:n,easing:s,offset:e.offset,containsDynamicStyles:i,options:null}}_validateStyleAst(e,t){const n=t.currentAnimateTimings;let i=t.currentTime,s=t.currentTime;n&&s>0&&(s-=n.duration+n.delay),e.styles.forEach(e=>{"string"!=typeof e&&Object.keys(e).forEach(n=>{if(!this._driver.validateStyleProperty(n))return void t.errors.push(`The provided animation property "${n}" is not a supported CSS property for animations`);const o=t.collectedStyles[t.currentQuerySelector],r=o[n];let a=!0;r&&(s!=i&&s>=r.startTime&&i<=r.endTime&&(t.errors.push(`The CSS property "${n}" that exists between the times of "${r.startTime}ms" and "${r.endTime}ms" is also being animated in a parallel animation between the times of "${s}ms" and "${i}ms"`),a=!1),s=r.startTime),a&&(o[n]={startTime:s,endTime:i}),t.options&&function(e,t,n){const i=t.params||{},s=Up(e);s.length&&s.forEach(e=>{i.hasOwnProperty(e)||n.push(`Unable to resolve the local animation param ${e} in the given list of values`)})}(e[n],t.options,t.errors)})})}visitKeyframes(e,t){const n={type:5,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push("keyframes() must be placed inside of a call to animate()"),n;let i=0;const s=[];let o=!1,r=!1,a=0;const l=e.steps.map(e=>{const n=this._makeStyleAst(e,t);let l=null!=n.offset?n.offset:function(e){if("string"==typeof e)return null;let t=null;if(Array.isArray(e))e.forEach(e=>{if(rg(e)&&e.hasOwnProperty("offset")){const n=e;t=parseFloat(n.offset),delete n.offset}});else if(rg(e)&&e.hasOwnProperty("offset")){const n=e;t=parseFloat(n.offset),delete n.offset}return t}(n.styles),c=0;return null!=l&&(i++,c=n.offset=l),r=r||c<0||c>1,o=o||c<a,a=c,s.push(c),n});r&&t.errors.push("Please ensure that all keyframe offsets are between 0 and 1"),o&&t.errors.push("Please ensure that all keyframe offsets are in order");const c=e.steps.length;let d=0;i>0&&i<c?t.errors.push("Not all style() steps within the declared keyframes() contain offsets"):0==i&&(d=1/(c-1));const u=c-1,h=t.currentTime,p=t.currentAnimateTimings,g=p.duration;return l.forEach((e,i)=>{const o=d>0?i==u?1:d*i:s[i],r=o*g;t.currentTime=h+p.delay+r,p.duration=r,this._validateStyleAst(e,t),e.offset=o,n.styles.push(e)}),n}visitReference(e,t){return{type:8,animation:Qp(this,Hp(e.animation),t),options:ag(e.options)}}visitAnimateChild(e,t){return t.depCount++,{type:9,options:ag(e.options)}}visitAnimateRef(e,t){return{type:10,animation:this.visitReference(e.animation,t),options:ag(e.options)}}visitQuery(e,t){const n=t.currentQuerySelector,i=e.options||{};t.queryCount++,t.currentQuery=e;const[s,o]=function(e){const t=!!e.split(/\s*,\s*/).find(e=>":self"==e);return t&&(e=e.replace(ng,"")),[e=e.replace(/@\*/g,".ng-trigger").replace(/@\w+/g,e=>".ng-trigger-"+e.substr(1)).replace(/:animating/g,".ng-animating"),t]}(e.selector);t.currentQuerySelector=n.length?n+" "+s:s,bp(t.collectedStyles,t.currentQuerySelector,{});const r=Qp(this,Hp(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=n,{type:11,selector:s,limit:i.limit||0,optional:!!i.optional,includeSelf:o,animation:r,originalSelector:e.selector,options:ag(e.options)}}visitStagger(e,t){t.currentQuery||t.errors.push("stagger() can only be used inside of query()");const n="full"===e.timings?{duration:0,delay:0,easing:"full"}:Rp(e.timings,t.errors,!0);return{type:12,animation:Qp(this,Hp(e.animation),t),timings:n,options:null}}}class og{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={},this.options=null}}function rg(e){return!Array.isArray(e)&&"object"==typeof e}function ag(e){var t;return e?(e=Lp(e)).params&&(e.params=(t=e.params)?Lp(t):null):e={},e}function lg(e,t,n){return{duration:e,delay:t,easing:n}}function cg(e,t,n,i,s,o,r=null,a=!1){return{type:1,element:e,keyframes:t,preStyleProps:n,postStyleProps:i,duration:s,delay:o,totalTime:s+o,easing:r,subTimeline:a}}class dg{constructor(){this._map=new Map}consume(e){let t=this._map.get(e);return t?this._map.delete(e):t=[],t}append(e,t){let n=this._map.get(e);n||this._map.set(e,n=[]),n.push(...t)}has(e){return this._map.has(e)}clear(){this._map.clear()}}const ug=new RegExp(":enter","g"),hg=new RegExp(":leave","g");function pg(e,t,n,i,s,o={},r={},a,l,c=[]){return(new gg).buildKeyframes(e,t,n,i,s,o,r,a,l,c)}class gg{buildKeyframes(e,t,n,i,s,o,r,a,l,c=[]){l=l||new dg;const d=new mg(e,t,l,i,s,c,[]);d.options=a,d.currentTimeline.setStyles([o],null,d.errors,a),Qp(this,n,d);const u=d.timelines.filter(e=>e.containsAnimation());if(u.length&&Object.keys(r).length){const e=u[u.length-1];e.allowOnlyTimelineStyles()||e.setStyles([r],null,d.errors,a)}return u.length?u.map(e=>e.buildKeyframes()):[cg(t,[],[],[],0,0,"",!1)]}visitTrigger(e,t){}visitState(e,t){}visitTransition(e,t){}visitAnimateChild(e,t){const n=t.subInstructions.consume(t.element);if(n){const i=t.createSubContext(e.options),s=t.currentTimeline.currentTime,o=this._visitSubInstructions(n,i,i.options);s!=o&&t.transformIntoNewTimeline(o)}t.previousNode=e}visitAnimateRef(e,t){const n=t.createSubContext(e.options);n.transformIntoNewTimeline(),this.visitReference(e.animation,n),t.transformIntoNewTimeline(n.currentTimeline.currentTime),t.previousNode=e}_visitSubInstructions(e,t,n){let i=t.currentTimeline.currentTime;const s=null!=n.duration?Tp(n.duration):null,o=null!=n.delay?Tp(n.delay):null;return 0!==s&&e.forEach(e=>{const n=t.appendInstructionToTimeline(e,s,o);i=Math.max(i,n.duration+n.delay)}),i}visitReference(e,t){t.updateOptions(e.options,!0),Qp(this,e.animation,t),t.previousNode=e}visitSequence(e,t){const n=t.subContextCount;let i=t;const s=e.options;if(s&&(s.params||s.delay)&&(i=t.createSubContext(s),i.transformIntoNewTimeline(),null!=s.delay)){6==i.previousNode.type&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=fg);const e=Tp(s.delay);i.delayNextStep(e)}e.steps.length&&(e.steps.forEach(e=>Qp(this,e,i)),i.currentTimeline.applyStylesToKeyframe(),i.subContextCount>n&&i.transformIntoNewTimeline()),t.previousNode=e}visitGroup(e,t){const n=[];let i=t.currentTimeline.currentTime;const s=e.options&&e.options.delay?Tp(e.options.delay):0;e.steps.forEach(o=>{const r=t.createSubContext(e.options);s&&r.delayNextStep(s),Qp(this,o,r),i=Math.max(i,r.currentTimeline.currentTime),n.push(r.currentTimeline)}),n.forEach(e=>t.currentTimeline.mergeTimelineCollectedStyles(e)),t.transformIntoNewTimeline(i),t.previousNode=e}_visitTiming(e,t){if(e.dynamic){const n=e.strValue;return Rp(t.params?Wp(n,t.params,t.errors):n,t.errors)}return{duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,t){const n=t.currentAnimateTimings=this._visitTiming(e.timings,t),i=t.currentTimeline;n.delay&&(t.incrementTime(n.delay),i.snapshotCurrentStyles());const s=e.style;5==s.type?this.visitKeyframes(s,t):(t.incrementTime(n.duration),this.visitStyle(s,t),i.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e}visitStyle(e,t){const n=t.currentTimeline,i=t.currentAnimateTimings;!i&&n.getCurrentStyleProperties().length&&n.forwardFrame();const s=i&&i.easing||e.easing;e.isEmptyStep?n.applyEmptyStep(s):n.setStyles(e.styles,s,t.errors,t.options),t.previousNode=e}visitKeyframes(e,t){const n=t.currentAnimateTimings,i=t.currentTimeline.duration,s=n.duration,o=t.createSubContext().currentTimeline;o.easing=n.easing,e.styles.forEach(e=>{o.forwardTime((e.offset||0)*s),o.setStyles(e.styles,e.easing,t.errors,t.options),o.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(o),t.transformIntoNewTimeline(i+s),t.previousNode=e}visitQuery(e,t){const n=t.currentTimeline.currentTime,i=e.options||{},s=i.delay?Tp(i.delay):0;s&&(6===t.previousNode.type||0==n&&t.currentTimeline.getCurrentStyleProperties().length)&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=fg);let o=n;const r=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!i.optional,t.errors);t.currentQueryTotal=r.length;let a=null;r.forEach((n,i)=>{t.currentQueryIndex=i;const r=t.createSubContext(e.options,n);s&&r.delayNextStep(s),n===t.element&&(a=r.currentTimeline),Qp(this,e.animation,r),r.currentTimeline.applyStylesToKeyframe(),o=Math.max(o,r.currentTimeline.currentTime)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(o),a&&(t.currentTimeline.mergeTimelineCollectedStyles(a),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e}visitStagger(e,t){const n=t.parentContext,i=t.currentTimeline,s=e.timings,o=Math.abs(s.duration),r=o*(t.currentQueryTotal-1);let a=o*t.currentQueryIndex;switch(s.duration<0?"reverse":s.easing){case"reverse":a=r-a;break;case"full":a=n.currentStaggerTime}const l=t.currentTimeline;a&&l.delayNextStep(a);const c=l.currentTime;Qp(this,e.animation,t),t.previousNode=e,n.currentStaggerTime=i.currentTime-c+(i.startTime-n.currentTimeline.startTime)}}const fg={};class mg{constructor(e,t,n,i,s,o,r,a){this._driver=e,this.element=t,this.subInstructions=n,this._enterClassName=i,this._leaveClassName=s,this.errors=o,this.timelines=r,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=fg,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=a||new bg(this._driver,t,0),r.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(e,t){if(!e)return;const n=e;let i=this.options;null!=n.duration&&(i.duration=Tp(n.duration)),null!=n.delay&&(i.delay=Tp(n.delay));const s=n.params;if(s){let e=i.params;e||(e=this.options.params={}),Object.keys(s).forEach(n=>{t&&e.hasOwnProperty(n)||(e[n]=Wp(s[n],e,this.errors))})}}_copyOptions(){const e={};if(this.options){const t=this.options.params;if(t){const n=e.params={};Object.keys(t).forEach(e=>{n[e]=t[e]})}}return e}createSubContext(e=null,t,n){const i=t||this.element,s=new mg(this._driver,i,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(i,n||0));return s.previousNode=this.previousNode,s.currentAnimateTimings=this.currentAnimateTimings,s.options=this._copyOptions(),s.updateOptions(e),s.currentQueryIndex=this.currentQueryIndex,s.currentQueryTotal=this.currentQueryTotal,s.parentContext=this,this.subContextCount++,s}transformIntoNewTimeline(e){return this.previousNode=fg,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,t,n){const i={duration:null!=t?t:e.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+e.delay,easing:""},s=new vg(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,i,e.stretchStartingKeyframe);return this.timelines.push(s),i}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e)}invokeQuery(e,t,n,i,s,o){let r=[];if(i&&r.push(this.element),e.length>0){e=(e=e.replace(ug,"."+this._enterClassName)).replace(hg,"."+this._leaveClassName);let t=this._driver.query(this.element,e,1!=n);0!==n&&(t=n<0?t.slice(t.length+n,t.length):t.slice(0,n)),r.push(...t)}return s||0!=r.length||o.push(`\`query("${t}")\` returned zero elements. (Use \`query("${t}", { optional: true })\` if you wish to allow this.)`),r}}class bg{constructor(e,t,n,i){this._driver=e,this.element=t,this.startTime=n,this._elementTimelineStylesLookup=i,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(t),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(t,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(e){const t=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e}fork(e,t){return this.applyStylesToKeyframe(),new bg(this._driver,e,t||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}_updateStyle(e,t){this._localTimelineStyles[e]=t,this._globalTimelineStyles[e]=t,this._styleSummary[e]={time:this.currentTime,value:t}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(e){e&&(this._previousKeyframe.easing=e),Object.keys(this._globalTimelineStyles).forEach(e=>{this._backFill[e]=this._globalTimelineStyles[e]||"*",this._currentKeyframe[e]="*"}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,t,n,i){t&&(this._previousKeyframe.easing=t);const s=i&&i.params||{},o=function(e,t){const n={};let i;return e.forEach(e=>{"*"===e?(i=i||Object.keys(t),i.forEach(e=>{n[e]="*"})):Fp(e,!1,n)}),n}(e,this._globalTimelineStyles);Object.keys(o).forEach(e=>{const t=Wp(o[e],s,n);this._pendingStyles[e]=t,this._localTimelineStyles.hasOwnProperty(e)||(this._backFill[e]=this._globalTimelineStyles.hasOwnProperty(e)?this._globalTimelineStyles[e]:"*"),this._updateStyle(e,t)})}applyStylesToKeyframe(){const e=this._pendingStyles,t=Object.keys(e);0!=t.length&&(this._pendingStyles={},t.forEach(t=>{this._currentKeyframe[t]=e[t]}),Object.keys(this._localTimelineStyles).forEach(e=>{this._currentKeyframe.hasOwnProperty(e)||(this._currentKeyframe[e]=this._localTimelineStyles[e])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(e=>{const t=this._localTimelineStyles[e];this._pendingStyles[e]=t,this._updateStyle(e,t)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const e=[];for(let t in this._currentKeyframe)e.push(t);return e}mergeTimelineCollectedStyles(e){Object.keys(e._styleSummary).forEach(t=>{const n=this._styleSummary[t],i=e._styleSummary[t];(!n||i.time>n.time)&&this._updateStyle(t,i.value)})}buildKeyframes(){this.applyStylesToKeyframe();const e=new Set,t=new Set,n=1===this._keyframes.size&&0===this.duration;let i=[];this._keyframes.forEach((s,o)=>{const r=Fp(s,!0);Object.keys(r).forEach(n=>{const i=r[n];"!"==i?e.add(n):"*"==i&&t.add(n)}),n||(r.offset=o/this.duration),i.push(r)});const s=e.size?Gp(e.values()):[],o=t.size?Gp(t.values()):[];if(n){const e=i[0],t=Lp(e);e.offset=0,t.offset=1,i=[e,t]}return cg(this.element,i,s,o,this.duration,this.startTime,this.easing,!1)}}class vg extends bg{constructor(e,t,n,i,s,o,r=!1){super(e,t,o.delay),this.element=t,this.keyframes=n,this.preStyleProps=i,this.postStyleProps=s,this._stretchStartingKeyframe=r,this.timings={duration:o.duration,delay:o.delay,easing:o.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let e=this.keyframes,{delay:t,duration:n,easing:i}=this.timings;if(this._stretchStartingKeyframe&&t){const s=[],o=n+t,r=t/o,a=Fp(e[0],!1);a.offset=0,s.push(a);const l=Fp(e[0],!1);l.offset=yg(r),s.push(l);const c=e.length-1;for(let i=1;i<=c;i++){let r=Fp(e[i],!1);r.offset=yg((t+r.offset*n)/o),s.push(r)}n=o,t=0,i="",e=s}return cg(this.element,e,this.preStyleProps,this.postStyleProps,n,t,i,!0)}}function yg(e,t=3){const n=Math.pow(10,t-1);return Math.round(e*n)/n}class wg{}class _g extends wg{normalizePropertyName(e,t){return qp(e)}normalizeStyleValue(e,t,n,i){let s="";const o=n.toString().trim();if(xg[t]&&0!==n&&"0"!==n)if("number"==typeof n)s="px";else{const t=n.match(/^[+-]?[\d\.]+([a-z]*)$/);t&&0==t[1].length&&i.push(`Please provide a CSS unit value for ${e}:${n}`)}return o+s}}const xg=(()=>function(e){const t={};return e.forEach(e=>t[e]=!0),t}("width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(",")))();function Ag(e,t,n,i,s,o,r,a,l,c,d,u,h){return{type:0,element:e,triggerName:t,isRemovalTransition:s,fromState:n,fromStyles:o,toState:i,toStyles:r,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:d,totalTime:u,errors:h}}const Cg={};class Sg{constructor(e,t,n){this._triggerName=e,this.ast=t,this._stateStyles=n}match(e,t,n,i){return function(e,t,n,i,s){return e.some(e=>e(t,n,i,s))}(this.ast.matchers,e,t,n,i)}buildStyles(e,t,n){const i=this._stateStyles["*"],s=this._stateStyles[e],o=i?i.buildStyles(t,n):{};return s?s.buildStyles(t,n):o}build(e,t,n,i,s,o,r,a,l,c){const d=[],u=this.ast.options&&this.ast.options.params||Cg,h=this.buildStyles(n,r&&r.params||Cg,d),p=a&&a.params||Cg,g=this.buildStyles(i,p,d),f=new Set,m=new Map,b=new Map,v="void"===i,y={params:Object.assign(Object.assign({},u),p)},w=c?[]:pg(e,t,this.ast.animation,s,o,h,g,y,l,d);let _=0;if(w.forEach(e=>{_=Math.max(e.duration+e.delay,_)}),d.length)return Ag(t,this._triggerName,n,i,v,h,g,[],[],m,b,_,d);w.forEach(e=>{const n=e.element,i=bp(m,n,{});e.preStyleProps.forEach(e=>i[e]=!0);const s=bp(b,n,{});e.postStyleProps.forEach(e=>s[e]=!0),n!==t&&f.add(n)});const x=Gp(f.values());return Ag(t,this._triggerName,n,i,v,h,g,w,x,m,b,_)}}class kg{constructor(e,t){this.styles=e,this.defaultParams=t}buildStyles(e,t){const n={},i=Lp(this.defaultParams);return Object.keys(e).forEach(t=>{const n=e[t];null!=n&&(i[t]=n)}),this.styles.styles.forEach(e=>{if("string"!=typeof e){const s=e;Object.keys(s).forEach(e=>{let o=s[e];o.length>1&&(o=Wp(o,i,t)),n[e]=o})}}),n}}class Pg{constructor(e,t){this.name=e,this.ast=t,this.transitionFactories=[],this.states={},t.states.forEach(e=>{this.states[e.name]=new kg(e.style,e.options&&e.options.params||{})}),Eg(this.states,"true","1"),Eg(this.states,"false","0"),t.transitions.forEach(t=>{this.transitionFactories.push(new Sg(e,t,this.states))}),this.fallbackTransition=new Sg(e,{type:1,animation:{type:2,steps:[],options:null},matchers:[(e,t)=>!0],options:null,queryCount:0,depCount:0},this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,t,n,i){return this.transitionFactories.find(s=>s.match(e,t,n,i))||null}matchStyles(e,t,n){return this.fallbackTransition.buildStyles(e,t,n)}}function Eg(e,t,n){e.hasOwnProperty(t)?e.hasOwnProperty(n)||(e[n]=e[t]):e.hasOwnProperty(n)&&(e[t]=e[n])}const Dg=new dg;class Og{constructor(e,t,n){this.bodyNode=e,this._driver=t,this._normalizer=n,this._animations={},this._playersById={},this.players=[]}register(e,t){const n=[],i=ig(this._driver,t,n);if(n.length)throw new Error("Unable to build the animation due to the following errors: "+n.join("\n"));this._animations[e]=i}_buildPlayer(e,t,n){const i=e.element,s=pp(0,this._normalizer,0,e.keyframes,t,n);return this._driver.animate(i,s,e.duration,e.delay,e.easing,[],!0)}create(e,t,n={}){const i=[],s=this._animations[e];let o;const r=new Map;if(s?(o=pg(this._driver,t,s,"ng-enter","ng-leave",{},{},n,Dg,i),o.forEach(e=>{const t=bp(r,e.element,{});e.postStyleProps.forEach(e=>t[e]=null)})):(i.push("The requested animation doesn't exist or has already been destroyed"),o=[]),i.length)throw new Error("Unable to create the animation due to the following errors: "+i.join("\n"));r.forEach((e,t)=>{Object.keys(e).forEach(n=>{e[n]=this._driver.computeStyle(t,n,"*")})});const a=hp(o.map(e=>{const t=r.get(e.element);return this._buildPlayer(e,{},t)}));return this._playersById[e]=a,a.onDestroy(()=>this.destroy(e)),this.players.push(a),a}destroy(e){const t=this._getPlayer(e);t.destroy(),delete this._playersById[e];const n=this.players.indexOf(t);n>=0&&this.players.splice(n,1)}_getPlayer(e){const t=this._playersById[e];if(!t)throw new Error("Unable to find the timeline player referenced by "+e);return t}listen(e,t,n,i){const s=mp(t,"","","");return gp(this._getPlayer(e),n,s,i),()=>{}}command(e,t,n,i){if("register"==n)return void this.register(e,i[0]);if("create"==n)return void this.create(e,t,i[0]||{});const s=this._getPlayer(e);switch(n){case"play":s.play();break;case"pause":s.pause();break;case"reset":s.reset();break;case"restart":s.restart();break;case"finish":s.finish();break;case"init":s.init();break;case"setPosition":s.setPosition(parseFloat(i[0]));break;case"destroy":this.destroy(e)}}}const Mg=[],Tg={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Ig={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0};class Rg{constructor(e,t=""){this.namespaceId=t;const n=e&&e.hasOwnProperty("value");if(this.value=null!=(i=n?e.value:e)?i:null,n){const t=Lp(e);delete t.value,this.options=t}else this.options={};var i;this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(e){const t=e.params;if(t){const e=this.options.params;Object.keys(t).forEach(n=>{null==e[n]&&(e[n]=t[n])})}}}const Lg=new Rg("void");class Fg{constructor(e,t,n){this.id=e,this.hostElement=t,this._engine=n,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,Ug(t,this._hostClassName)}listen(e,t,n,i){if(!this._triggers.hasOwnProperty(t))throw new Error(`Unable to listen on the animation trigger event "${n}" because the animation trigger "${t}" doesn't exist!`);if(null==n||0==n.length)throw new Error(`Unable to listen on the animation trigger "${t}" because the provided event is undefined!`);if("start"!=(s=n)&&"done"!=s)throw new Error(`The provided animation trigger event "${n}" for the animation trigger "${t}" is not supported!`);var s;const o=bp(this._elementListeners,e,[]),r={name:t,phase:n,callback:i};o.push(r);const a=bp(this._engine.statesByElement,e,{});return a.hasOwnProperty(t)||(Ug(e,"ng-trigger"),Ug(e,"ng-trigger-"+t),a[t]=Lg),()=>{this._engine.afterFlush(()=>{const e=o.indexOf(r);e>=0&&o.splice(e,1),this._triggers[t]||delete a[t]})}}register(e,t){return!this._triggers[e]&&(this._triggers[e]=t,!0)}_getTrigger(e){const t=this._triggers[e];if(!t)throw new Error(`The provided animation trigger "${e}" has not been registered!`);return t}trigger(e,t,n,i=!0){const s=this._getTrigger(t),o=new zg(this.id,t,e);let r=this._engine.statesByElement.get(e);r||(Ug(e,"ng-trigger"),Ug(e,"ng-trigger-"+t),this._engine.statesByElement.set(e,r={}));let a=r[t];const l=new Rg(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&a&&l.absorbOptions(a.options),r[t]=l,a||(a=Lg),"void"!==l.value&&a.value===l.value){if(!function(e,t){const n=Object.keys(e),i=Object.keys(t);if(n.length!=i.length)return!1;for(let s=0;s<n.length;s++){const i=n[s];if(!t.hasOwnProperty(i)||e[i]!==t[i])return!1}return!0}(a.params,l.params)){const t=[],n=s.matchStyles(a.value,a.params,t),i=s.matchStyles(l.value,l.params,t);t.length?this._engine.reportError(t):this._engine.afterFlush(()=>{Np(e,n),Vp(e,i)})}return}const c=bp(this._engine.playersByElement,e,[]);c.forEach(e=>{e.namespaceId==this.id&&e.triggerName==t&&e.queued&&e.destroy()});let d=s.matchTransition(a.value,l.value,e,l.params),u=!1;if(!d){if(!i)return;d=s.fallbackTransition,u=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:d,fromState:a,toState:l,player:o,isFallbackTransition:u}),u||(Ug(e,"ng-animate-queued"),o.onStart(()=>{Wg(e,"ng-animate-queued")})),o.onDone(()=>{let t=this.players.indexOf(o);t>=0&&this.players.splice(t,1);const n=this._engine.playersByElement.get(e);if(n){let e=n.indexOf(o);e>=0&&n.splice(e,1)}}),this.players.push(o),c.push(o),o}deregister(e){delete this._triggers[e],this._engine.statesByElement.forEach((t,n)=>{delete t[e]}),this._elementListeners.forEach((t,n)=>{this._elementListeners.set(n,t.filter(t=>t.name!=e))})}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);const t=this._engine.playersByElement.get(e);t&&(t.forEach(e=>e.destroy()),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,t){const n=this._engine.driver.query(e,".ng-trigger",!0);n.forEach(e=>{if(e.__ng_removed)return;const n=this._engine.fetchNamespacesByElement(e);n.size?n.forEach(n=>n.triggerLeaveAnimation(e,t,!1,!0)):this.clearElementCache(e)}),this._engine.afterFlushAnimationsDone(()=>n.forEach(e=>this.clearElementCache(e)))}triggerLeaveAnimation(e,t,n,i){const s=this._engine.statesByElement.get(e);if(s){const o=[];if(Object.keys(s).forEach(t=>{if(this._triggers[t]){const n=this.trigger(e,t,"void",i);n&&o.push(n)}}),o.length)return this._engine.markElementAsRemoved(this.id,e,!0,t),n&&hp(o).onDone(()=>this._engine.processLeaveNode(e)),!0}return!1}prepareLeaveAnimationListeners(e){const t=this._elementListeners.get(e),n=this._engine.statesByElement.get(e);if(t&&n){const i=new Set;t.forEach(t=>{const s=t.name;if(i.has(s))return;i.add(s);const o=this._triggers[s].fallbackTransition,r=n[s]||Lg,a=new Rg("void"),l=new zg(this.id,s,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:s,transition:o,fromState:r,toState:a,player:l,isFallbackTransition:!0})})}}removeNode(e,t){const n=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,t),this.triggerLeaveAnimation(e,t,!0))return;let i=!1;if(n.totalAnimations){const t=n.players.length?n.playersByQueriedElement.get(e):[];if(t&&t.length)i=!0;else{let t=e;for(;t=t.parentNode;)if(n.statesByElement.get(t)){i=!0;break}}}if(this.prepareLeaveAnimationListeners(e),i)n.markElementAsRemoved(this.id,e,!1,t);else{const i=e.__ng_removed;i&&i!==Tg||(n.afterFlush(()=>this.clearElementCache(e)),n.destroyInnerAnimations(e),n._onRemovalComplete(e,t))}}insertNode(e,t){Ug(e,this._hostClassName)}drainQueuedTransitions(e){const t=[];return this._queue.forEach(n=>{const i=n.player;if(i.destroyed)return;const s=n.element,o=this._elementListeners.get(s);o&&o.forEach(t=>{if(t.name==n.triggerName){const i=mp(s,n.triggerName,n.fromState.value,n.toState.value);i._data=e,gp(n.player,t.phase,i,t.callback)}}),i.markedForDestroy?this._engine.afterFlush(()=>{i.destroy()}):t.push(n)}),this._queue=[],t.sort((e,t)=>{const n=e.transition.ast.depCount,i=t.transition.ast.depCount;return 0==n||0==i?n-i:this._engine.driver.containsElement(e.element,t.element)?1:-1})}destroy(e){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e)}elementContainsData(e){let t=!1;return this._elementListeners.has(e)&&(t=!0),t=!!this._queue.find(t=>t.element===e)||t,t}}class Bg{constructor(e,t,n){this.bodyNode=e,this.driver=t,this._normalizer=n,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(e,t)=>{}}_onRemovalComplete(e,t){this.onRemovalComplete(e,t)}get queuedPlayers(){const e=[];return this._namespaceList.forEach(t=>{t.players.forEach(t=>{t.queued&&e.push(t)})}),e}createNamespace(e,t){const n=new Fg(e,t,this);return t.parentNode?this._balanceNamespaceList(n,t):(this.newHostElements.set(t,n),this.collectEnterElement(t)),this._namespaceLookup[e]=n}_balanceNamespaceList(e,t){const n=this._namespaceList.length-1;if(n>=0){let i=!1;for(let s=n;s>=0;s--)if(this.driver.containsElement(this._namespaceList[s].hostElement,t)){this._namespaceList.splice(s+1,0,e),i=!0;break}i||this._namespaceList.splice(0,0,e)}else this._namespaceList.push(e);return this.namespacesByHostElement.set(t,e),e}register(e,t){let n=this._namespaceLookup[e];return n||(n=this.createNamespace(e,t)),n}registerTrigger(e,t,n){let i=this._namespaceLookup[e];i&&i.register(t,n)&&this.totalAnimations++}destroy(e,t){if(!e)return;const n=this._fetchNamespace(e);this.afterFlush(()=>{this.namespacesByHostElement.delete(n.hostElement),delete this._namespaceLookup[e];const t=this._namespaceList.indexOf(n);t>=0&&this._namespaceList.splice(t,1)}),this.afterFlushAnimationsDone(()=>n.destroy(t))}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){const t=new Set,n=this.statesByElement.get(e);if(n){const e=Object.keys(n);for(let i=0;i<e.length;i++){const s=n[e[i]].namespaceId;if(s){const e=this._fetchNamespace(s);e&&t.add(e)}}}return t}trigger(e,t,n,i){if(Vg(t)){const s=this._fetchNamespace(e);if(s)return s.trigger(t,n,i),!0}return!1}insertNode(e,t,n,i){if(!Vg(t))return;const s=t.__ng_removed;if(s&&s.setForRemoval){s.setForRemoval=!1,s.setForMove=!0;const e=this.collectedLeaveElements.indexOf(t);e>=0&&this.collectedLeaveElements.splice(e,1)}if(e){const i=this._fetchNamespace(e);i&&i.insertNode(t,n)}i&&this.collectEnterElement(t)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),Ug(e,"ng-animate-disabled")):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),Wg(e,"ng-animate-disabled"))}removeNode(e,t,n,i){if(Vg(t)){const s=e?this._fetchNamespace(e):null;if(s?s.removeNode(t,i):this.markElementAsRemoved(e,t,!1,i),n){const n=this.namespacesByHostElement.get(t);n&&n.id!==e&&n.removeNode(t,i)}}else this._onRemovalComplete(t,i)}markElementAsRemoved(e,t,n,i){this.collectedLeaveElements.push(t),t.__ng_removed={namespaceId:e,setForRemoval:i,hasAnimation:n,removedBeforeQueried:!1}}listen(e,t,n,i,s){return Vg(t)?this._fetchNamespace(e).listen(t,n,i,s):()=>{}}_buildInstruction(e,t,n,i,s){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,n,i,e.fromState.options,e.toState.options,t,s)}destroyInnerAnimations(e){let t=this.driver.query(e,".ng-trigger",!0);t.forEach(e=>this.destroyActiveAnimationsForElement(e)),0!=this.playersByQueriedElement.size&&(t=this.driver.query(e,".ng-animating",!0),t.forEach(e=>this.finishActiveQueriedAnimationOnElement(e)))}destroyActiveAnimationsForElement(e){const t=this.playersByElement.get(e);t&&t.forEach(e=>{e.queued?e.markedForDestroy=!0:e.destroy()})}finishActiveQueriedAnimationOnElement(e){const t=this.playersByQueriedElement.get(e);t&&t.forEach(e=>e.finish())}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return hp(this.players).onDone(()=>e());e()})}processLeaveNode(e){const t=e.__ng_removed;if(t&&t.setForRemoval){if(e.__ng_removed=Tg,t.namespaceId){this.destroyInnerAnimations(e);const n=this._fetchNamespace(t.namespaceId);n&&n.clearElementCache(e)}this._onRemovalComplete(e,t.setForRemoval)}this.driver.matchesElement(e,".ng-animate-disabled")&&this.markElementAsDisabled(e,!1),this.driver.query(e,".ng-animate-disabled",!0).forEach(e=>{this.markElementAsDisabled(e,!1)})}flush(e=-1){let t=[];if(this.newHostElements.size&&(this.newHostElements.forEach((e,t)=>this._balanceNamespaceList(e,t)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let n=0;n<this.collectedEnterElements.length;n++)Ug(this.collectedEnterElements[n],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const n=[];try{t=this._flushAnimations(n,e)}finally{for(let e=0;e<n.length;e++)n[e]()}}else for(let n=0;n<this.collectedLeaveElements.length;n++)this.processLeaveNode(this.collectedLeaveElements[n]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(e=>e()),this._flushFns=[],this._whenQuietFns.length){const e=this._whenQuietFns;this._whenQuietFns=[],t.length?hp(t).onDone(()=>{e.forEach(e=>e())}):e.forEach(e=>e())}}reportError(e){throw new Error("Unable to process animations due to the following failed trigger transitions\n "+e.join("\n"))}_flushAnimations(e,t){const n=new dg,i=[],s=new Map,o=[],r=new Map,a=new Map,l=new Map,c=new Set;this.disabledNodes.forEach(e=>{c.add(e);const t=this.driver.query(e,".ng-animate-queued",!0);for(let n=0;n<t.length;n++)c.add(t[n])});const d=this.bodyNode,u=Array.from(this.statesByElement.keys()),h=jg(u,this.collectedEnterElements),p=new Map;let g=0;h.forEach((e,t)=>{const n="ng-enter"+g++;p.set(t,n),e.forEach(e=>Ug(e,n))});const f=[],m=new Set,b=new Set;for(let O=0;O<this.collectedLeaveElements.length;O++){const e=this.collectedLeaveElements[O],t=e.__ng_removed;t&&t.setForRemoval&&(f.push(e),m.add(e),t.hasAnimation?this.driver.query(e,".ng-star-inserted",!0).forEach(e=>m.add(e)):b.add(e))}const v=new Map,y=jg(u,Array.from(m));y.forEach((e,t)=>{const n="ng-leave"+g++;v.set(t,n),e.forEach(e=>Ug(e,n))}),e.push(()=>{h.forEach((e,t)=>{const n=p.get(t);e.forEach(e=>Wg(e,n))}),y.forEach((e,t)=>{const n=v.get(t);e.forEach(e=>Wg(e,n))}),f.forEach(e=>{this.processLeaveNode(e)})});const w=[],_=[];for(let O=this._namespaceList.length-1;O>=0;O--)this._namespaceList[O].drainQueuedTransitions(t).forEach(e=>{const t=e.player,s=e.element;if(w.push(t),this.collectedEnterElements.length){const e=s.__ng_removed;if(e&&e.setForMove)return void t.destroy()}const c=!d||!this.driver.containsElement(d,s),u=v.get(s),h=p.get(s),g=this._buildInstruction(e,n,h,u,c);if(g.errors&&g.errors.length)_.push(g);else{if(c)return t.onStart(()=>Np(s,g.fromStyles)),t.onDestroy(()=>Vp(s,g.toStyles)),void i.push(t);if(e.isFallbackTransition)return t.onStart(()=>Np(s,g.fromStyles)),t.onDestroy(()=>Vp(s,g.toStyles)),void i.push(t);g.timelines.forEach(e=>e.stretchStartingKeyframe=!0),n.append(s,g.timelines),o.push({instruction:g,player:t,element:s}),g.queriedElements.forEach(e=>bp(r,e,[]).push(t)),g.preStyleProps.forEach((e,t)=>{const n=Object.keys(e);if(n.length){let e=a.get(t);e||a.set(t,e=new Set),n.forEach(t=>e.add(t))}}),g.postStyleProps.forEach((e,t)=>{const n=Object.keys(e);let i=l.get(t);i||l.set(t,i=new Set),n.forEach(e=>i.add(e))})}});if(_.length){const e=[];_.forEach(t=>{e.push(`@${t.triggerName} has failed due to:\n`),t.errors.forEach(t=>e.push(`- ${t}\n`))}),w.forEach(e=>e.destroy()),this.reportError(e)}const x=new Map,A=new Map;o.forEach(e=>{const t=e.element;n.has(t)&&(A.set(t,t),this._beforeAnimationBuild(e.player.namespaceId,e.instruction,x))}),i.forEach(e=>{const t=e.element;this._getPreviousPlayers(t,!1,e.namespaceId,e.triggerName,null).forEach(e=>{bp(x,t,[]).push(e),e.destroy()})});const C=f.filter(e=>qg(e,a,l)),S=new Map;Hg(S,this.driver,b,l,"*").forEach(e=>{qg(e,a,l)&&C.push(e)});const k=new Map;h.forEach((e,t)=>{Hg(k,this.driver,new Set(e),a,"!")}),C.forEach(e=>{const t=S.get(e),n=k.get(e);S.set(e,Object.assign(Object.assign({},t),n))});const P=[],E=[],D={};o.forEach(e=>{const{element:t,player:o,instruction:r}=e;if(n.has(t)){if(c.has(t))return o.onDestroy(()=>Vp(t,r.toStyles)),o.disabled=!0,o.overrideTotalTime(r.totalTime),void i.push(o);let e=D;if(A.size>1){let n=t;const i=[];for(;n=n.parentNode;){const t=A.get(n);if(t){e=t;break}i.push(n)}i.forEach(t=>A.set(t,e))}const n=this._buildAnimation(o.namespaceId,r,x,s,k,S);if(o.setRealPlayer(n),e===D)P.push(o);else{const t=this.playersByElement.get(e);t&&t.length&&(o.parentPlayer=hp(t)),i.push(o)}}else Np(t,r.fromStyles),o.onDestroy(()=>Vp(t,r.toStyles)),E.push(o),c.has(t)&&i.push(o)}),E.forEach(e=>{const t=s.get(e.element);if(t&&t.length){const n=hp(t);e.setRealPlayer(n)}}),i.forEach(e=>{e.parentPlayer?e.syncPlayerEvents(e.parentPlayer):e.destroy()});for(let O=0;O<f.length;O++){const e=f[O],t=e.__ng_removed;if(Wg(e,"ng-leave"),t&&t.hasAnimation)continue;let n=[];if(r.size){let t=r.get(e);t&&t.length&&n.push(...t);let i=this.driver.query(e,".ng-animating",!0);for(let e=0;e<i.length;e++){let t=r.get(i[e]);t&&t.length&&n.push(...t)}}const i=n.filter(e=>!e.destroyed);i.length?Gg(this,e,i):this.processLeaveNode(e)}return f.length=0,P.forEach(e=>{this.players.push(e),e.onDone(()=>{e.destroy();const t=this.players.indexOf(e);this.players.splice(t,1)}),e.play()}),P}elementContainsData(e,t){let n=!1;const i=t.__ng_removed;return i&&i.setForRemoval&&(n=!0),this.playersByElement.has(t)&&(n=!0),this.playersByQueriedElement.has(t)&&(n=!0),this.statesByElement.has(t)&&(n=!0),this._fetchNamespace(e).elementContainsData(t)||n}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,t,n,i,s){let o=[];if(t){const t=this.playersByQueriedElement.get(e);t&&(o=t)}else{const t=this.playersByElement.get(e);if(t){const e=!s||"void"==s;t.forEach(t=>{t.queued||(e||t.triggerName==i)&&o.push(t)})}}return(n||i)&&(o=o.filter(e=>!(n&&n!=e.namespaceId||i&&i!=e.triggerName))),o}_beforeAnimationBuild(e,t,n){const i=t.element,s=t.isRemovalTransition?void 0:e,o=t.isRemovalTransition?void 0:t.triggerName;for(const r of t.timelines){const e=r.element,a=e!==i,l=bp(n,e,[]);this._getPreviousPlayers(e,a,s,o,t.toState).forEach(e=>{const t=e.getRealPlayer();t.beforeDestroy&&t.beforeDestroy(),e.destroy(),l.push(e)})}Np(i,t.fromStyles)}_buildAnimation(e,t,n,i,s,o){const r=t.triggerName,a=t.element,l=[],c=new Set,d=new Set,u=t.timelines.map(t=>{const u=t.element;c.add(u);const h=u.__ng_removed;if(h&&h.removedBeforeQueried)return new cp(t.duration,t.delay);const p=u!==a,g=function(e){const t=[];return $g(e,t),t}((n.get(u)||Mg).map(e=>e.getRealPlayer())).filter(e=>!!e.element&&e.element===u),f=s.get(u),m=o.get(u),b=pp(0,this._normalizer,0,t.keyframes,f,m),v=this._buildPlayer(t,b,g);if(t.subTimeline&&i&&d.add(u),p){const t=new zg(e,r,u);t.setRealPlayer(v),l.push(t)}return v});l.forEach(e=>{bp(this.playersByQueriedElement,e.element,[]).push(e),e.onDone(()=>function(e,t,n){let i;if(e instanceof Map){if(i=e.get(t),i){if(i.length){const e=i.indexOf(n);i.splice(e,1)}0==i.length&&e.delete(t)}}else if(i=e[t],i){if(i.length){const e=i.indexOf(n);i.splice(e,1)}0==i.length&&delete e[t]}return i}(this.playersByQueriedElement,e.element,e))}),c.forEach(e=>Ug(e,"ng-animating"));const h=hp(u);return h.onDestroy(()=>{c.forEach(e=>Wg(e,"ng-animating")),Vp(a,t.toStyles)}),d.forEach(e=>{bp(i,e,[]).push(h)}),h}_buildPlayer(e,t,n){return t.length>0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,n):new cp(e.duration,e.delay)}}class zg{constructor(e,t,n){this.namespaceId=e,this.triggerName=t,this.element=n,this._player=new cp,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(e){this._containsRealPlayer||(this._player=e,Object.keys(this._queuedCallbacks).forEach(t=>{this._queuedCallbacks[t].forEach(n=>gp(e,t,void 0,n))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(e){this.totalTime=e}syncPlayerEvents(e){const t=this._player;t.triggerCallback&&e.onStart(()=>t.triggerCallback("start")),e.onDone(()=>this.finish()),e.onDestroy(()=>this.destroy())}_queueEvent(e,t){bp(this._queuedCallbacks,e,[]).push(t)}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&&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){const t=this._player;t.triggerCallback&&t.triggerCallback(e)}}function Vg(e){return e&&1===e.nodeType}function Ng(e,t){const n=e.style.display;return e.style.display=null!=t?t:"none",n}function Hg(e,t,n,i,s){const o=[];n.forEach(e=>o.push(Ng(e)));const r=[];i.forEach((n,i)=>{const o={};n.forEach(e=>{const n=o[e]=t.computeStyle(i,e,s);n&&0!=n.length||(i.__ng_removed=Ig,r.push(i))}),e.set(i,o)});let a=0;return n.forEach(e=>Ng(e,o[a++])),r}function jg(e,t){const n=new Map;if(e.forEach(e=>n.set(e,[])),0==t.length)return n;const i=new Set(t),s=new Map;function o(e){if(!e)return 1;let t=s.get(e);if(t)return t;const r=e.parentNode;return t=n.has(r)?r:i.has(r)?1:o(r),s.set(e,t),t}return t.forEach(e=>{const t=o(e);1!==t&&n.get(t).push(e)}),n}function Ug(e,t){if(e.classList)e.classList.add(t);else{let n=e.$$classes;n||(n=e.$$classes={}),n[t]=!0}}function Wg(e,t){if(e.classList)e.classList.remove(t);else{let n=e.$$classes;n&&delete n[t]}}function Gg(e,t,n){hp(n).onDone(()=>e.processLeaveNode(t))}function $g(e,t){for(let n=0;n<e.length;n++){const i=e[n];i instanceof dp?$g(i.players,t):t.push(i)}}function qg(e,t,n){const i=n.get(e);if(!i)return!1;let s=t.get(e);return s?i.forEach(e=>s.add(e)):t.set(e,i),n.delete(e),!0}class Yg{constructor(e,t,n){this.bodyNode=e,this._driver=t,this._triggerCache={},this.onRemovalComplete=(e,t)=>{},this._transitionEngine=new Bg(e,t,n),this._timelineEngine=new Og(e,t,n),this._transitionEngine.onRemovalComplete=(e,t)=>this.onRemovalComplete(e,t)}registerTrigger(e,t,n,i,s){const o=e+"-"+i;let r=this._triggerCache[o];if(!r){const e=[],t=ig(this._driver,s,e);if(e.length)throw new Error(`The animation trigger "${i}" has failed to build due to the following errors:\n - ${e.join("\n - ")}`);r=function(e,t){return new Pg(e,t)}(i,t),this._triggerCache[o]=r}this._transitionEngine.registerTrigger(t,i,r)}register(e,t){this._transitionEngine.register(e,t)}destroy(e,t){this._transitionEngine.destroy(e,t)}onInsert(e,t,n,i){this._transitionEngine.insertNode(e,t,n,i)}onRemove(e,t,n,i){this._transitionEngine.removeNode(e,t,i||!1,n)}disableAnimations(e,t){this._transitionEngine.markElementAsDisabled(e,t)}process(e,t,n,i){if("@"==n.charAt(0)){const[e,s]=vp(n);this._timelineEngine.command(e,t,s,i)}else this._transitionEngine.trigger(e,t,n,i)}listen(e,t,n,i,s){if("@"==n.charAt(0)){const[e,i]=vp(n);return this._timelineEngine.listen(e,t,i,s)}return this._transitionEngine.listen(e,t,n,i,s)}flush(e=-1){this._transitionEngine.flush(e)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}function Zg(e,t){let n=null,i=null;return Array.isArray(t)&&t.length?(n=Xg(t[0]),t.length>1&&(i=Xg(t[t.length-1]))):t&&(n=Xg(t)),n||i?new Qg(e,n,i):null}let Qg=(()=>{class e{constructor(t,n,i){this._element=t,this._startStyles=n,this._endStyles=i,this._state=0;let s=e.initialStylesByElement.get(t);s||e.initialStylesByElement.set(t,s={}),this._initialStyles=s}start(){this._state<1&&(this._startStyles&&Vp(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Vp(this._element,this._initialStyles),this._endStyles&&(Vp(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(e.initialStylesByElement.delete(this._element),this._startStyles&&(Np(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Np(this._element,this._endStyles),this._endStyles=null),Vp(this._element,this._initialStyles),this._state=3)}}return e.initialStylesByElement=new WeakMap,e})();function Xg(e){let t=null;const n=Object.keys(e);for(let i=0;i<n.length;i++){const s=n[i];Kg(s)&&(t=t||{},t[s]=e[s])}return t}function Kg(e){return"display"===e||"position"===e}class Jg{constructor(e,t,n,i,s,o,r){this._element=e,this._name=t,this._duration=n,this._delay=i,this._easing=s,this._fillMode=o,this._onDoneFn=r,this._finished=!1,this._destroyed=!1,this._startTime=0,this._position=0,this._eventFn=e=>this._handleCallback(e)}apply(){!function(e,t){const n=rf(e,"").trim();n.length&&(function(e,t){let n=0;for(let i=0;i<e.length;i++)","===e.charAt(i)&&n++}(n),t=`${n}, ${t}`),of(e,"",t)}(this._element,`${this._duration}ms ${this._easing} ${this._delay}ms 1 normal ${this._fillMode} ${this._name}`),sf(this._element,this._eventFn,!1),this._startTime=Date.now()}pause(){ef(this._element,this._name,"paused")}resume(){ef(this._element,this._name,"running")}setPosition(e){const t=tf(this._element,this._name);this._position=e*this._duration,of(this._element,"Delay",`-${this._position}ms`,t)}getPosition(){return this._position}_handleCallback(e){const t=e._ngTestManualTimestamp||Date.now(),n=1e3*parseFloat(e.elapsedTime.toFixed(3));e.animationName==this._name&&Math.max(t-this._startTime,0)>=this._delay&&n>=this._duration&&this.finish()}finish(){this._finished||(this._finished=!0,this._onDoneFn(),sf(this._element,this._eventFn,!0))}destroy(){this._destroyed||(this._destroyed=!0,this.finish(),function(e,t){const n=rf(e,"").split(","),i=nf(n,t);i>=0&&(n.splice(i,1),of(e,"",n.join(",")))}(this._element,this._name))}}function ef(e,t,n){of(e,"PlayState",n,tf(e,t))}function tf(e,t){const n=rf(e,"");return n.indexOf(",")>0?nf(n.split(","),t):nf([n],t)}function nf(e,t){for(let n=0;n<e.length;n++)if(e[n].indexOf(t)>=0)return n;return-1}function sf(e,t,n){n?e.removeEventListener("animationend",t):e.addEventListener("animationend",t)}function of(e,t,n,i){const s="animation"+t;if(null!=i){const t=e.style[s];if(t.length){const e=t.split(",");e[i]=n,n=e.join(",")}}e.style[s]=n}function rf(e,t){return e.style["animation"+t]||""}class af{constructor(e,t,n,i,s,o,r,a){this.element=e,this.keyframes=t,this.animationName=n,this._duration=i,this._delay=s,this._finalStyles=r,this._specialStyles=a,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this.currentSnapshot={},this._state=0,this.easing=o||"linear",this.totalTime=i+s,this._buildStyler()}onStart(e){this._onStartFns.push(e)}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}destroy(){this.init(),this._state>=4||(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}_flushDoneFns(){this._onDoneFns.forEach(e=>e()),this._onDoneFns=[]}_flushStartFns(){this._onStartFns.forEach(e=>e()),this._onStartFns=[]}finish(){this.init(),this._state>=3||(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}setPosition(e){this._styler.setPosition(e)}getPosition(){return this._styler.getPosition()}hasStarted(){return this._state>=2}init(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())}play(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}pause(){this.init(),this._styler.pause()}restart(){this.reset(),this.play()}reset(){this._styler.destroy(),this._buildStyler(),this._styler.apply()}_buildStyler(){this._styler=new Jg(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",()=>this.finish())}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(e=>e()),t.length=0}beforeDestroy(){this.init();const e={};if(this.hasStarted()){const t=this._state>=3;Object.keys(this._finalStyles).forEach(n=>{"offset"!=n&&(e[n]=t?this._finalStyles[n]:Xp(this.element,n))})}this.currentSnapshot=e}}class lf extends cp{constructor(e,t){super(),this.element=e,this._startingStyles={},this.__initialized=!1,this._styles=Dp(t)}init(){!this.__initialized&&this._startingStyles&&(this.__initialized=!0,Object.keys(this._styles).forEach(e=>{this._startingStyles[e]=this.element.style[e]}),super.init())}play(){this._startingStyles&&(this.init(),Object.keys(this._styles).forEach(e=>this.element.style.setProperty(e,this._styles[e])),super.play())}destroy(){this._startingStyles&&(Object.keys(this._startingStyles).forEach(e=>{const t=this._startingStyles[e];t?this.element.style.setProperty(e,t):this.element.style.removeProperty(e)}),this._startingStyles=null,super.destroy())}}class cf{constructor(){this._count=0,this._head=document.querySelector("head")}validateStyleProperty(e){return Sp(e)}matchesElement(e,t){return kp(e,t)}containsElement(e,t){return Pp(e,t)}query(e,t,n){return Ep(e,t,n)}computeStyle(e,t,n){return window.getComputedStyle(e)[t]}buildKeyframeElement(e,t,n){n=n.map(e=>Dp(e));let i=`@keyframes ${t} {\n`,s="";n.forEach(e=>{s=" ";const t=parseFloat(e.offset);i+=`${s}${100*t}% {\n`,s+=" ",Object.keys(e).forEach(t=>{const n=e[t];switch(t){case"offset":return;case"easing":return void(n&&(i+=`${s}animation-timing-function: ${n};\n`));default:return void(i+=`${s}${t}: ${n};\n`)}}),i+=s+"}\n"}),i+="}\n";const o=document.createElement("style");return o.textContent=i,o}animate(e,t,n,i,s,o=[],r){const a=o.filter(e=>e instanceof af),l={};Yp(n,i)&&a.forEach(e=>{let t=e.currentSnapshot;Object.keys(t).forEach(e=>l[e]=t[e])});const c=function(e){let t={};return e&&(Array.isArray(e)?e:[e]).forEach(e=>{Object.keys(e).forEach(n=>{"offset"!=n&&"easing"!=n&&(t[n]=e[n])})}),t}(t=Zp(e,t,l));if(0==n)return new lf(e,c);const d="gen_css_kf_"+this._count++,u=this.buildKeyframeElement(e,d,t);document.querySelector("head").appendChild(u);const h=Zg(e,t),p=new af(e,t,d,n,i,s,c,h);return p.onDestroy(()=>{var e;(e=u).parentNode.removeChild(e)}),p}}class df{constructor(e,t,n,i){this.element=e,this.keyframes=t,this.options=n,this._specialStyles=i,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(e,t,n){return e.animate(t,n)}onStart(e){this._onStartFns.push(e)}onDone(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}_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){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=e*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const e={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(t=>{"offset"!=t&&(e[t]=this._finished?this._finalKeyframe[t]:Xp(this.element,t))}),this.currentSnapshot=e}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(e=>e()),t.length=0}}class uf{constructor(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(hf().toString()),this._cssKeyframesDriver=new cf}validateStyleProperty(e){return Sp(e)}matchesElement(e,t){return kp(e,t)}containsElement(e,t){return Pp(e,t)}query(e,t,n){return Ep(e,t,n)}computeStyle(e,t,n){return window.getComputedStyle(e)[t]}overrideWebAnimationsSupport(e){this._isNativeImpl=e}animate(e,t,n,i,s,o=[],r){if(!r&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(e,t,n,i,s,o);const a={duration:n,delay:i,fill:0==i?"both":"forwards"};s&&(a.easing=s);const l={},c=o.filter(e=>e instanceof df);Yp(n,i)&&c.forEach(e=>{let t=e.currentSnapshot;Object.keys(t).forEach(e=>l[e]=t[e])});const d=Zg(e,t=Zp(e,t=t.map(e=>Fp(e,!1)),l));return new df(e,t,a,d)}}function hf(){return"undefined"!=typeof window&&void 0!==window.document&&Element.prototype.animate||{}}let pf=(()=>{class e extends Kh{constructor(e,t){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(t.body,{id:"0",encapsulation:De.None,styles:[],data:{animation:[]}})}build(e){const t=this._nextAnimationId.toString();this._nextAnimationId++;const n=Array.isArray(e)?tp(e):e;return mf(this._renderer,null,t,"register",[n]),new gf(t,this._renderer)}}return e.\u0275fac=function(t){return new(t||e)(gi(ll),gi(Hd))},e.\u0275prov=pe({token:e,factory:e.\u0275fac}),e})();class gf extends class{}{constructor(e,t){super(),this._id=e,this._renderer=t}create(e,t){return new ff(this._id,e,t||{},this._renderer)}}class ff{constructor(e,t,n,i){this.id=e,this.element=t,this._renderer=i,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",n)}_listen(e,t){return this._renderer.listen(this.element,`@@${this.id}:${e}`,t)}_command(e,...t){return mf(this._renderer,this.element,this.id,e,t)}onDone(e){this._listen("done",e)}onStart(e){this._listen("start",e)}onDestroy(e){this._listen("destroy",e)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset")}setPosition(e){this._command("setPosition",e)}getPosition(){var e,t;return null!==(t=null===(e=this._renderer.engine.players[+this.id])||void 0===e?void 0:e.getPosition())&&void 0!==t?t:0}}function mf(e,t,n,i,s){return e.setProperty(t,`@@${n}:${i}`,s)}let bf=(()=>{class e{constructor(e,t,n){this.delegate=e,this.engine=t,this._zone=n,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),t.onRemovalComplete=(e,t)=>{t&&t.parentNode(e)&&t.removeChild(e.parentNode,e)}}createRenderer(e,t){const n=this.delegate.createRenderer(e,t);if(!(e&&t&&t.data&&t.data.animation)){let e=this._rendererCache.get(n);return e||(e=new vf("",n,this.engine),this._rendererCache.set(n,e)),e}const i=t.id,s=t.id+"-"+this._currentId;this._currentId++,this.engine.register(s,e);const o=t=>{Array.isArray(t)?t.forEach(o):this.engine.registerTrigger(i,s,e,t.name,t)};return t.data.animation.forEach(o),new yf(this,s,n,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(e,t,n){e>=0&&e<this._microtaskId?this._zone.run(()=>t(n)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(e=>{const[t,n]=e;t(n)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([t,n]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return e.\u0275fac=function(t){return new(t||e)(gi(ll),gi(Yg),gi(ad))},e.\u0275prov=pe({token:e,factory:e.\u0275fac}),e})();class vf{constructor(e,t,n){this.namespaceId=e,this.delegate=t,this.engine=n,this.destroyNode=this.delegate.destroyNode?e=>t.destroyNode(e):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(e,t){return this.delegate.createElement(e,t)}createComment(e){return this.delegate.createComment(e)}createText(e){return this.delegate.createText(e)}appendChild(e,t){this.delegate.appendChild(e,t),this.engine.onInsert(this.namespaceId,t,e,!1)}insertBefore(e,t,n,i=!0){this.delegate.insertBefore(e,t,n),this.engine.onInsert(this.namespaceId,t,e,i)}removeChild(e,t,n){this.engine.onRemove(this.namespaceId,t,this.delegate,n)}selectRootElement(e,t){return this.delegate.selectRootElement(e,t)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setAttribute(e,t,n,i){this.delegate.setAttribute(e,t,n,i)}removeAttribute(e,t,n){this.delegate.removeAttribute(e,t,n)}addClass(e,t){this.delegate.addClass(e,t)}removeClass(e,t){this.delegate.removeClass(e,t)}setStyle(e,t,n,i){this.delegate.setStyle(e,t,n,i)}removeStyle(e,t,n){this.delegate.removeStyle(e,t,n)}setProperty(e,t,n){"@"==t.charAt(0)&&"@.disabled"==t?this.disableAnimations(e,!!n):this.delegate.setProperty(e,t,n)}setValue(e,t){this.delegate.setValue(e,t)}listen(e,t,n){return this.delegate.listen(e,t,n)}disableAnimations(e,t){this.engine.disableAnimations(e,t)}}class yf extends vf{constructor(e,t,n,i){super(t,n,i),this.factory=e,this.namespaceId=t}setProperty(e,t,n){"@"==t.charAt(0)?"."==t.charAt(1)&&"@.disabled"==t?this.disableAnimations(e,n=void 0===n||!!n):this.engine.process(this.namespaceId,e,t.substr(1),n):this.delegate.setProperty(e,t,n)}listen(e,t,n){if("@"==t.charAt(0)){const i=function(e){switch(e){case"body":return document.body;case"document":return document;case"window":return window;default:return e}}(e);let s=t.substr(1),o="";return"@"!=s.charAt(0)&&([s,o]=function(e){const t=e.indexOf(".");return[e.substring(0,t),e.substr(t+1)]}(s)),this.engine.listen(this.namespaceId,i,s,o,e=>{this.factory.scheduleListenerCallback(e._data||-1,n,e)})}return this.delegate.listen(e,t,n)}}let wf=(()=>{class e extends Yg{constructor(e,t,n){super(e.body,t,n)}}return e.\u0275fac=function(t){return new(t||e)(gi(Hd),gi(Mp),gi(wg))},e.\u0275prov=pe({token:e,factory:e.\u0275fac}),e})();const _f=new Xn("AnimationModuleType"),xf=[{provide:Mp,useFactory:function(){return"function"==typeof hf()?new uf:new cf}},{provide:_f,useValue:"BrowserAnimations"},{provide:Kh,useClass:pf},{provide:wg,useFactory:function(){return new _g}},{provide:Yg,useClass:wf},{provide:ll,useFactory:function(e,t,n){return new bf(e,t,n)},deps:[Mh,Yg,ad]}];let Af=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=fe({providers:xf,imports:[Xh]}),e})();function Cf(...e){if(1===e.length){const t=e[0];if(l(t))return Sf(t,null);if(c(t)&&Object.getPrototypeOf(t)===Object.prototype){const e=Object.keys(t);return Sf(e.map(e=>t[e]),e)}}if("function"==typeof e[e.length-1]){const t=e.pop();return Sf(e=1===e.length&&l(e[0])?e[0]:e,null).pipe(k(e=>t(...e)))}return Sf(e,null)}function Sf(e,t){return new v(n=>{const i=e.length;if(0===i)return void n.complete();const s=new Array(i);let o=0,r=0;for(let a=0;a<i;a++){const l=F(e[a]);let c=!1;n.add(l.subscribe({next:e=>{c||(c=!0,r++),s[a]=e},error:e=>n.error(e),complete:()=>{o++,o!==i&&c||(r===i&&n.next(t?t.reduce((e,t,n)=>(e[t]=s[n],e),{}):s),n.complete())}}))}})}class kf{}const Pf=new Xn("NgValueAccessor"),Ef={provide:Pf,useExisting:re(()=>Df),multi:!0};let Df=(()=>{class e extends kf{constructor(e,t){super(),this._renderer=e,this._elementRef=t,this.onChange=e=>{},this.onTouched=()=>{}}writeValue(e){this._renderer.setProperty(this._elementRef.nativeElement,"checked",e)}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}}return e.\u0275fac=function(t){return new(t||e)(zr(cl),zr(rl))},e.\u0275dir=Ke({type:e,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(e,t){1&e&&Xr("change",function(e){return t.onChange(e.target.checked)})("blur",function(){return t.onTouched()})},features:[Ja([Ef]),vr]}),e})();const Of={provide:Pf,useExisting:re(()=>Tf),multi:!0},Mf=new Xn("CompositionEventMode");let Tf=(()=>{class e{constructor(e,t,n){this._renderer=e,this._elementRef=t,this._compositionMode=n,this.onChange=e=>{},this.onTouched=()=>{},this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function(){const e=Nd()?Nd().getUserAgent():"";return/android (\d+)/.test(e.toLowerCase())}())}writeValue(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==e?"":e)}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}}return e.\u0275fac=function(t){return new(t||e)(zr(cl),zr(rl),zr(Mf,8))},e.\u0275dir=Ke({type:e,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(e,t){1&e&&Xr("input",function(e){return t._handleInput(e.target.value)})("blur",function(){return t.onTouched()})("compositionstart",function(){return t._compositionStart()})("compositionend",function(e){return t._compositionEnd(e.target.value)})},features:[Ja([Of])]}),e})();function If(e){return null==e||0===e.length}function Rf(e){return null!=e&&"number"==typeof e.length}const Lf=new Xn("NgValidators"),Ff=new Xn("NgAsyncValidators"),Bf=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class zf{static min(e){return function(e){return t=>{if(If(t.value)||If(e))return null;const n=parseFloat(t.value);return!isNaN(n)&&n<e?{min:{min:e,actual:t.value}}:null}}(e)}static max(e){return function(e){return t=>{if(If(t.value)||If(e))return null;const n=parseFloat(t.value);return!isNaN(n)&&n>e?{max:{max:e,actual:t.value}}:null}}(e)}static required(e){return Vf(e)}static requiredTrue(e){return function(e){return!0===e.value?null:{required:!0}}(e)}static email(e){return function(e){return If(e.value)||Bf.test(e.value)?null:{email:!0}}(e)}static minLength(e){return function(e){return t=>If(t.value)||!Rf(t.value)?null:t.value.length<e?{minlength:{requiredLength:e,actualLength:t.value.length}}:null}(e)}static maxLength(e){return Nf(e)}static pattern(e){return Hf(e)}static nullValidator(e){return null}static compose(e){return Yf(e)}static composeAsync(e){return Qf(e)}}function Vf(e){return If(e.value)?{required:!0}:null}function Nf(e){return t=>Rf(t.value)&&t.value.length>e?{maxlength:{requiredLength:e,actualLength:t.value.length}}:null}function Hf(e){if(!e)return jf;let t,n;return"string"==typeof e?(n="","^"!==e.charAt(0)&&(n+="^"),n+=e,"$"!==e.charAt(e.length-1)&&(n+="$"),t=new RegExp(n)):(n=e.toString(),t=e),e=>{if(If(e.value))return null;const i=e.value;return t.test(i)?null:{pattern:{requiredPattern:n,actualValue:i}}}}function jf(e){return null}function Uf(e){return null!=e}function Wf(e){const t=Yr(e)?F(e):e;return Qr(t),t}function Gf(e){let t={};return e.forEach(e=>{t=null!=e?Object.assign(Object.assign({},t),e):t}),0===Object.keys(t).length?null:t}function $f(e,t){return t.map(t=>t(e))}function qf(e){return e.map(e=>function(e){return!e.validate}(e)?e:t=>e.validate(t))}function Yf(e){if(!e)return null;const t=e.filter(Uf);return 0==t.length?null:function(e){return Gf($f(e,t))}}function Zf(e){return null!=e?Yf(qf(e)):null}function Qf(e){if(!e)return null;const t=e.filter(Uf);return 0==t.length?null:function(e){return Cf($f(e,t).map(Wf)).pipe(k(Gf))}}function Xf(e){return null!=e?Qf(qf(e)):null}function Kf(e,t){return null===e?[t]:Array.isArray(e)?[...e,t]:[e,t]}function Jf(e){return e._rawValidators}function em(e){return e._rawAsyncValidators}let tm=(()=>{class e{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(e){this._rawValidators=e||[],this._composedValidatorFn=Zf(this._rawValidators)}_setAsyncValidators(e){this._rawAsyncValidators=e||[],this._composedAsyncValidatorFn=Xf(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(e){this._onDestroyCallbacks.push(e)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(e=>e()),this._onDestroyCallbacks=[]}reset(e){this.control&&this.control.reset(e)}hasError(e,t){return!!this.control&&this.control.hasError(e,t)}getError(e,t){return this.control?this.control.getError(e,t):null}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Ke({type:e}),e})(),nm=(()=>{class e extends tm{get formDirective(){return null}get path(){return null}}return e.\u0275fac=function(t){return im(t||e)},e.\u0275dir=Ke({type:e,features:[vr]}),e})();const im=$n(nm);class sm extends tm{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class om{constructor(e){this._cd=e}is(e){var t,n;return!!(null===(n=null===(t=this._cd)||void 0===t?void 0:t.control)||void 0===n?void 0:n[e])}}let rm=(()=>{class e extends om{constructor(e){super(e)}}return e.\u0275fac=function(t){return new(t||e)(zr(sm,2))},e.\u0275dir=Ke({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,t){2&e&&ma("ng-untouched",t.is("untouched"))("ng-touched",t.is("touched"))("ng-pristine",t.is("pristine"))("ng-dirty",t.is("dirty"))("ng-valid",t.is("valid"))("ng-invalid",t.is("invalid"))("ng-pending",t.is("pending"))},features:[vr]}),e})(),am=(()=>{class e extends om{constructor(e){super(e)}}return e.\u0275fac=function(t){return new(t||e)(zr(nm,10))},e.\u0275dir=Ke({type:e,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:14,hostBindings:function(e,t){2&e&&ma("ng-untouched",t.is("untouched"))("ng-touched",t.is("touched"))("ng-pristine",t.is("pristine"))("ng-dirty",t.is("dirty"))("ng-valid",t.is("valid"))("ng-invalid",t.is("invalid"))("ng-pending",t.is("pending"))},features:[vr]}),e})();function lm(e,t){return[...t.path,e]}function cm(e,t){hm(e,t,!0),t.valueAccessor.writeValue(e.value),function(e,t){t.valueAccessor.registerOnChange(n=>{e._pendingValue=n,e._pendingChange=!0,e._pendingDirty=!0,"change"===e.updateOn&&gm(e,t)})}(e,t),function(e,t){const n=(e,n)=>{t.valueAccessor.writeValue(e),n&&t.viewToModelUpdate(e)};e.registerOnChange(n),t._registerOnDestroy(()=>{e._unregisterOnChange(n)})}(e,t),function(e,t){t.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,"blur"===e.updateOn&&e._pendingChange&&gm(e,t),"submit"!==e.updateOn&&e.markAsTouched()})}(e,t),function(e,t){if(t.valueAccessor.setDisabledState){const n=e=>{t.valueAccessor.setDisabledState(e)};e.registerOnDisabledChange(n),t._registerOnDestroy(()=>{e._unregisterOnDisabledChange(n)})}}(e,t)}function dm(e,t,n=!0){const i=()=>{};t.valueAccessor&&(t.valueAccessor.registerOnChange(i),t.valueAccessor.registerOnTouched(i)),pm(e,t,!0),e&&(t._invokeOnDestroyCallbacks(),e._registerOnCollectionChange(()=>{}))}function um(e,t){e.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(t)})}function hm(e,t,n){const i=Jf(e);null!==t.validator?e.setValidators(Kf(i,t.validator)):"function"==typeof i&&e.setValidators([i]);const s=em(e);if(null!==t.asyncValidator?e.setAsyncValidators(Kf(s,t.asyncValidator)):"function"==typeof s&&e.setAsyncValidators([s]),n){const n=()=>e.updateValueAndValidity();um(t._rawValidators,n),um(t._rawAsyncValidators,n)}}function pm(e,t,n){let i=!1;if(null!==e){if(null!==t.validator){const n=Jf(e);if(Array.isArray(n)&&n.length>0){const s=n.filter(e=>e!==t.validator);s.length!==n.length&&(i=!0,e.setValidators(s))}}if(null!==t.asyncValidator){const n=em(e);if(Array.isArray(n)&&n.length>0){const s=n.filter(e=>e!==t.asyncValidator);s.length!==n.length&&(i=!0,e.setAsyncValidators(s))}}}if(n){const e=()=>{};um(t._rawValidators,e),um(t._rawAsyncValidators,e)}return i}function gm(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function fm(e,t){hm(e,t,!1)}function mm(e,t){if(!e.hasOwnProperty("model"))return!1;const n=e.model;return!!n.isFirstChange()||!Object.is(t,n.currentValue)}function bm(e,t){e._syncPendingControls(),t.forEach(e=>{const t=e.control;"submit"===t.updateOn&&t._pendingChange&&(e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1)})}function vm(e,t){if(!t)return null;Array.isArray(t);let n=void 0,i=void 0,s=void 0;return t.forEach(e=>{e.constructor===Tf?n=e:Object.getPrototypeOf(e.constructor)===kf?i=e:s=e}),s||i||n||null}function ym(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}function wm(e){return(Cm(e)?e.validators:e)||null}function _m(e){return Array.isArray(e)?Zf(e):e||null}function xm(e,t){return(Cm(t)?t.asyncValidators:e)||null}function Am(e){return Array.isArray(e)?Xf(e):e||null}function Cm(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}class Sm{constructor(e,t){this._hasOwnPendingAsyncValidator=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=e,this._rawAsyncValidators=t,this._composedValidatorFn=_m(this._rawValidators),this._composedAsyncValidatorFn=Am(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(e){this._rawValidators=this._composedValidatorFn=e}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(e){this._rawAsyncValidators=this._composedAsyncValidatorFn=e}get parent(){return this._parent}get valid(){return"VALID"===this.status}get invalid(){return"INVALID"===this.status}get pending(){return"PENDING"==this.status}get disabled(){return"DISABLED"===this.status}get enabled(){return"DISABLED"!==this.status}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(e){this._rawValidators=e,this._composedValidatorFn=_m(e)}setAsyncValidators(e){this._rawAsyncValidators=e,this._composedAsyncValidatorFn=Am(e)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(e={}){this.touched=!0,this._parent&&!e.onlySelf&&this._parent.markAsTouched(e)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(e=>e.markAllAsTouched())}markAsUntouched(e={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}markAsDirty(e={}){this.pristine=!1,this._parent&&!e.onlySelf&&this._parent.markAsDirty(e)}markAsPristine(e={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}markAsPending(e={}){this.status="PENDING",!1!==e.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!e.onlySelf&&this._parent.markAsPending(e)}disable(e={}){const t=this._parentMarkedDirty(e.onlySelf);this.status="DISABLED",this.errors=null,this._forEachChild(t=>{t.disable(Object.assign(Object.assign({},e),{onlySelf:!0}))}),this._updateValue(),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},e),{skipPristineCheck:t})),this._onDisabledChange.forEach(e=>e(!0))}enable(e={}){const t=this._parentMarkedDirty(e.onlySelf);this.status="VALID",this._forEachChild(t=>{t.enable(Object.assign(Object.assign({},e),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},e),{skipPristineCheck:t})),this._onDisabledChange.forEach(e=>e(!1))}_updateAncestors(e){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(e){this._parent=e}updateValueAndValidity(e={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),"VALID"!==this.status&&"PENDING"!==this.status||this._runAsyncValidator(e.emitEvent)),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(e)}_updateTreeValidity(e={emitEvent:!0}){this._forEachChild(t=>t._updateTreeValidity(e)),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?"DISABLED":"VALID"}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(e){if(this.asyncValidator){this.status="PENDING",this._hasOwnPendingAsyncValidator=!0;const t=Wf(this.asyncValidator(this));this._asyncValidationSubscription=t.subscribe(t=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(t,{emitEvent:e})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(e,t={}){this.errors=e,this._updateControlsErrors(!1!==t.emitEvent)}get(e){return function(e,t,n){if(null==t)return null;if(Array.isArray(t)||(t=t.split(".")),Array.isArray(t)&&0===t.length)return null;let i=e;return t.forEach(e=>{i=i instanceof Pm?i.controls.hasOwnProperty(e)?i.controls[e]:null:i instanceof Em&&i.at(e)||null}),i}(this,e)}getError(e,t){const n=t?this.get(t):this;return n&&n.errors?n.errors[e]:null}hasError(e,t){return!!this.getError(e,t)}get root(){let e=this;for(;e._parent;)e=e._parent;return e}_updateControlsErrors(e){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(e)}_initObservables(){this.valueChanges=new yc,this.statusChanges=new yc}_calculateStatus(){return this._allControlsDisabled()?"DISABLED":this.errors?"INVALID":this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus("PENDING")?"PENDING":this._anyControlsHaveStatus("INVALID")?"INVALID":"VALID"}_anyControlsHaveStatus(e){return this._anyControls(t=>t.status===e)}_anyControlsDirty(){return this._anyControls(e=>e.dirty)}_anyControlsTouched(){return this._anyControls(e=>e.touched)}_updatePristine(e={}){this.pristine=!this._anyControlsDirty(),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}_updateTouched(e={}){this.touched=this._anyControlsTouched(),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}_isBoxedValue(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e}_registerOnCollectionChange(e){this._onCollectionChange=e}_setUpdateStrategy(e){Cm(e)&&null!=e.updateOn&&(this._updateOn=e.updateOn)}_parentMarkedDirty(e){return!e&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class km extends Sm{constructor(e=null,t,n){super(wm(t),xm(n,t)),this._onChange=[],this._applyFormState(e),this._setUpdateStrategy(t),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!n})}setValue(e,t={}){this.value=this._pendingValue=e,this._onChange.length&&!1!==t.emitModelToViewChange&&this._onChange.forEach(e=>e(this.value,!1!==t.emitViewToModelChange)),this.updateValueAndValidity(t)}patchValue(e,t={}){this.setValue(e,t)}reset(e=null,t={}){this._applyFormState(e),this.markAsPristine(t),this.markAsUntouched(t),this.setValue(this.value,t),this._pendingChange=!1}_updateValue(){}_anyControls(e){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(e){this._onChange.push(e)}_unregisterOnChange(e){ym(this._onChange,e)}registerOnDisabledChange(e){this._onDisabledChange.push(e)}_unregisterOnDisabledChange(e){ym(this._onDisabledChange,e)}_forEachChild(e){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(e){this._isBoxedValue(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e}}class Pm extends Sm{constructor(e,t,n){super(wm(t),xm(n,t)),this.controls=e,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!n})}registerControl(e,t){return this.controls[e]?this.controls[e]:(this.controls[e]=t,t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange),t)}addControl(e,t){this.registerControl(e,t),this.updateValueAndValidity(),this._onCollectionChange()}removeControl(e){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],this.updateValueAndValidity(),this._onCollectionChange()}setControl(e,t){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],t&&this.registerControl(e,t),this.updateValueAndValidity(),this._onCollectionChange()}contains(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled}setValue(e,t={}){this._checkAllValuesPresent(e),Object.keys(e).forEach(n=>{this._throwIfControlMissing(n),this.controls[n].setValue(e[n],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}patchValue(e,t={}){null!=e&&(Object.keys(e).forEach(n=>{this.controls[n]&&this.controls[n].patchValue(e[n],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t))}reset(e={},t={}){this._forEachChild((n,i)=>{n.reset(e[i],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}getRawValue(){return this._reduceChildren({},(e,t,n)=>(e[n]=t instanceof km?t.value:t.getRawValue(),e))}_syncPendingControls(){let e=this._reduceChildren(!1,(e,t)=>!!t._syncPendingControls()||e);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_throwIfControlMissing(e){if(!Object.keys(this.controls).length)throw new Error("\n        There are no form controls registered with this group yet. If you're using ngModel,\n        you may want to check next tick (e.g. use setTimeout).\n      ");if(!this.controls[e])throw new Error(`Cannot find form control with name: ${e}.`)}_forEachChild(e){Object.keys(this.controls).forEach(t=>{const n=this.controls[t];n&&e(n,t)})}_setUpControls(){this._forEachChild(e=>{e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(e){for(const t of Object.keys(this.controls)){const n=this.controls[t];if(this.contains(t)&&e(n))return!0}return!1}_reduceValue(){return this._reduceChildren({},(e,t,n)=>((t.enabled||this.disabled)&&(e[n]=t.value),e))}_reduceChildren(e,t){let n=e;return this._forEachChild((e,i)=>{n=t(n,e,i)}),n}_allControlsDisabled(){for(const e of Object.keys(this.controls))if(this.controls[e].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_checkAllValuesPresent(e){this._forEachChild((t,n)=>{if(void 0===e[n])throw new Error(`Must supply a value for form control with name: '${n}'.`)})}}class Em extends Sm{constructor(e,t,n){super(wm(t),xm(n,t)),this.controls=e,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!n})}at(e){return this.controls[e]}push(e){this.controls.push(e),this._registerControl(e),this.updateValueAndValidity(),this._onCollectionChange()}insert(e,t){this.controls.splice(e,0,t),this._registerControl(t),this.updateValueAndValidity()}removeAt(e){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),this.controls.splice(e,1),this.updateValueAndValidity()}setControl(e,t){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),this.controls.splice(e,1),t&&(this.controls.splice(e,0,t),this._registerControl(t)),this.updateValueAndValidity(),this._onCollectionChange()}get length(){return this.controls.length}setValue(e,t={}){this._checkAllValuesPresent(e),e.forEach((e,n)=>{this._throwIfControlMissing(n),this.at(n).setValue(e,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}patchValue(e,t={}){null!=e&&(e.forEach((e,n)=>{this.at(n)&&this.at(n).patchValue(e,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t))}reset(e=[],t={}){this._forEachChild((n,i)=>{n.reset(e[i],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}getRawValue(){return this.controls.map(e=>e instanceof km?e.value:e.getRawValue())}clear(){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity())}_syncPendingControls(){let e=this.controls.reduce((e,t)=>!!t._syncPendingControls()||e,!1);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_throwIfControlMissing(e){if(!this.controls.length)throw new Error("\n        There are no form controls registered with this array yet. If you're using ngModel,\n        you may want to check next tick (e.g. use setTimeout).\n      ");if(!this.at(e))throw new Error("Cannot find form control at index "+e)}_forEachChild(e){this.controls.forEach((t,n)=>{e(t,n)})}_updateValue(){this.value=this.controls.filter(e=>e.enabled||this.disabled).map(e=>e.value)}_anyControls(e){return this.controls.some(t=>t.enabled&&e(t))}_setUpControls(){this._forEachChild(e=>this._registerControl(e))}_checkAllValuesPresent(e){this._forEachChild((t,n)=>{if(void 0===e[n])throw new Error(`Must supply a value for form control at index: ${n}.`)})}_allControlsDisabled(){for(const e of this.controls)if(e.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(e){e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)}}const Dm={provide:nm,useExisting:re(()=>Mm)},Om=(()=>Promise.resolve(null))();let Mm=(()=>{class e extends nm{constructor(e,t){super(),this.submitted=!1,this._directives=[],this.ngSubmit=new yc,this.form=new Pm({},Zf(e),Xf(t))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){Om.then(()=>{const t=this._findContainer(e.path);e.control=t.registerControl(e.name,e.control),cm(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.push(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){Om.then(()=>{const t=this._findContainer(e.path);t&&t.removeControl(e.name),ym(this._directives,e)})}addFormGroup(e){Om.then(()=>{const t=this._findContainer(e.path),n=new Pm({});fm(n,e),t.registerControl(e.name,n),n.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){Om.then(()=>{const t=this._findContainer(e.path);t&&t.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,t){Om.then(()=>{this.form.get(e.path).setValue(t)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submitted=!0,bm(this.form,this._directives),this.ngSubmit.emit(e),!1}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(e){return e.pop(),e.length?this.form.get(e):this.form}}return e.\u0275fac=function(t){return new(t||e)(zr(Lf,10),zr(Ff,10))},e.\u0275dir=Ke({type:e,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(e,t){1&e&&Xr("submit",function(e){return t.onSubmit(e)})("reset",function(){return t.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Ja([Dm]),vr]}),e})();const Tm={provide:sm,useExisting:re(()=>Rm)},Im=(()=>Promise.resolve(null))();let Rm=(()=>{class e extends sm{constructor(e,t,n,i){super(),this.control=new km,this._registered=!1,this.update=new yc,this._parent=e,this._setValidators(t),this._setAsyncValidators(n),this.valueAccessor=vm(0,i)}ngOnChanges(e){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in e&&this._updateDisabled(e),mm(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._parent?lm(this.name,this._parent):[this.name]}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){cm(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(e){Im.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1})})}_updateDisabled(e){const t=e.isDisabled.currentValue,n=""===t||t&&"false"!==t;Im.then(()=>{n&&!this.control.disabled?this.control.disable():!n&&this.control.disabled&&this.control.enable()})}}return e.\u0275fac=function(t){return new(t||e)(zr(nm,9),zr(Lf,10),zr(Ff,10),zr(Pf,10))},e.\u0275dir=Ke({type:e,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[Ja([Tm]),vr,dt]}),e})(),Lm=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Ke({type:e,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),e})(),Fm=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=fe({}),e})();const Bm=new Xn("NgModelWithFormControlWarning"),zm={provide:sm,useExisting:re(()=>Vm)};let Vm=(()=>{class e extends sm{constructor(e,t,n,i){super(),this._ngModelWarningConfig=i,this.update=new yc,this._ngModelWarningSent=!1,this._setValidators(e),this._setAsyncValidators(t),this.valueAccessor=vm(0,n)}set isDisabled(e){}ngOnChanges(e){if(this._isControlChanged(e)){const t=e.form.previousValue;t&&dm(t,this,!1),cm(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})}mm(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&dm(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_isControlChanged(e){return e.hasOwnProperty("form")}}return e.\u0275fac=function(t){return new(t||e)(zr(Lf,10),zr(Ff,10),zr(Pf,10),zr(Bm,8))},e.\u0275dir=Ke({type:e,selectors:[["","formControl",""]],inputs:{isDisabled:["disabled","isDisabled"],form:["formControl","form"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[Ja([zm]),vr,dt]}),e._ngModelWarningSentOnce=!1,e})();const Nm={provide:nm,useExisting:re(()=>Hm)};let Hm=(()=>{class e extends nm{constructor(e,t){super(),this.validators=e,this.asyncValidators=t,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new yc,this._setValidators(e),this._setAsyncValidators(t)}ngOnChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(pm(this.form,this,!1),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(e){const t=this.form.get(e.path);return cm(t,e),t.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),t}getControl(e){return this.form.get(e.path)}removeControl(e){dm(e.control||null,e,!1),ym(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}getFormArray(e){return this.form.get(e.path)}updateModel(e,t){this.form.get(e.path).setValue(t)}onSubmit(e){return this.submitted=!0,bm(this.form,this.directives),this.ngSubmit.emit(e),!1}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_updateDomValue(){this.directives.forEach(e=>{const t=e.control,n=this.form.get(e.path);t!==n&&(dm(t||null,e),n instanceof km&&(cm(n,e),e.control=n))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){const t=this.form.get(e.path);fm(t,e),t.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){const t=this.form.get(e.path);t&&function(e,t){return pm(e,t,!1)}(t,e)&&t.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){hm(this.form,this,!1),this._oldForm&&pm(this._oldForm,this,!1)}_checkFormPresent(){}}return e.\u0275fac=function(t){return new(t||e)(zr(Lf,10),zr(Ff,10))},e.\u0275dir=Ke({type:e,selectors:[["","formGroup",""]],hostBindings:function(e,t){1&e&&Xr("submit",function(e){return t.onSubmit(e)})("reset",function(){return t.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Ja([Nm]),vr,dt]}),e})();const jm={provide:sm,useExisting:re(()=>Um)};let Um=(()=>{class e extends sm{constructor(e,t,n,i,s){super(),this._ngModelWarningConfig=s,this._added=!1,this.update=new yc,this._ngModelWarningSent=!1,this._parent=e,this._setValidators(t),this._setAsyncValidators(n),this.valueAccessor=vm(0,i)}set isDisabled(e){}ngOnChanges(e){this._added||this._setUpControl(),mm(e,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}get path(){return lm(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0}}return e.\u0275fac=function(t){return new(t||e)(zr(nm,13),zr(Lf,10),zr(Ff,10),zr(Pf,10),zr(Bm,8))},e.\u0275dir=Ke({type:e,selectors:[["","formControlName",""]],inputs:{isDisabled:["disabled","isDisabled"],name:["formControlName","name"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[Ja([jm]),vr,dt]}),e._ngModelWarningSentOnce=!1,e})();const Wm={provide:Pf,useExisting:re(()=>$m),multi:!0};function Gm(e,t){return null==e?""+t:(t&&"object"==typeof t&&(t="Object"),`${e}: ${t}`.slice(0,50))}let $m=(()=>{class e extends kf{constructor(e,t){super(),this._renderer=e,this._elementRef=t,this._optionMap=new Map,this._idCounter=0,this.onChange=e=>{},this.onTouched=()=>{},this._compareWith=Object.is}set compareWith(e){this._compareWith=e}writeValue(e){this.value=e;const t=this._getOptionId(e);null==t&&this._renderer.setProperty(this._elementRef.nativeElement,"selectedIndex",-1);const n=Gm(t,e);this._renderer.setProperty(this._elementRef.nativeElement,"value",n)}registerOnChange(e){this.onChange=t=>{this.value=this._getOptionValue(t),e(this.value)}}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}_registerOption(){return(this._idCounter++).toString()}_getOptionId(e){for(const t of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(t),e))return t;return null}_getOptionValue(e){const t=function(e){return e.split(":")[0]}(e);return this._optionMap.has(t)?this._optionMap.get(t):e}}return e.\u0275fac=function(t){return new(t||e)(zr(cl),zr(rl))},e.\u0275dir=Ke({type:e,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(e,t){1&e&&Xr("change",function(e){return t.onChange(e.target.value)})("blur",function(){return t.onTouched()})},inputs:{compareWith:"compareWith"},features:[Ja([Wm]),vr]}),e})(),qm=(()=>{class e{constructor(e,t,n){this._element=e,this._renderer=t,this._select=n,this._select&&(this.id=this._select._registerOption())}set ngValue(e){null!=this._select&&(this._select._optionMap.set(this.id,e),this._setElementValue(Gm(this.id,e)),this._select.writeValue(this._select.value))}set value(e){this._setElementValue(e),this._select&&this._select.writeValue(this._select.value)}_setElementValue(e){this._renderer.setProperty(this._element.nativeElement,"value",e)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return e.\u0275fac=function(t){return new(t||e)(zr(rl),zr(cl),zr($m,9))},e.\u0275dir=Ke({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),e})();const Ym={provide:Pf,useExisting:re(()=>Qm),multi:!0};function Zm(e,t){return null==e?""+t:("string"==typeof t&&(t=`'${t}'`),t&&"object"==typeof t&&(t="Object"),`${e}: ${t}`.slice(0,50))}let Qm=(()=>{class e extends kf{constructor(e,t){super(),this._renderer=e,this._elementRef=t,this._optionMap=new Map,this._idCounter=0,this.onChange=e=>{},this.onTouched=()=>{},this._compareWith=Object.is}set compareWith(e){this._compareWith=e}writeValue(e){let t;if(this.value=e,Array.isArray(e)){const n=e.map(e=>this._getOptionId(e));t=(e,t)=>{e._setSelected(n.indexOf(t.toString())>-1)}}else t=(e,t)=>{e._setSelected(!1)};this._optionMap.forEach(t)}registerOnChange(e){this.onChange=t=>{const n=[];if(void 0!==t.selectedOptions){const e=t.selectedOptions;for(let t=0;t<e.length;t++){const i=e.item(t),s=this._getOptionValue(i.value);n.push(s)}}else{const e=t.options;for(let t=0;t<e.length;t++){const i=e.item(t);if(i.selected){const e=this._getOptionValue(i.value);n.push(e)}}}this.value=n,e(n)}}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}_registerOption(e){const t=(this._idCounter++).toString();return this._optionMap.set(t,e),t}_getOptionId(e){for(const t of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(t)._value,e))return t;return null}_getOptionValue(e){const t=function(e){return e.split(":")[0]}(e);return this._optionMap.has(t)?this._optionMap.get(t)._value:e}}return e.\u0275fac=function(t){return new(t||e)(zr(cl),zr(rl))},e.\u0275dir=Ke({type:e,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(e,t){1&e&&Xr("change",function(e){return t.onChange(e.target)})("blur",function(){return t.onTouched()})},inputs:{compareWith:"compareWith"},features:[Ja([Ym]),vr]}),e})(),Xm=(()=>{class e{constructor(e,t,n){this._element=e,this._renderer=t,this._select=n,this._select&&(this.id=this._select._registerOption(this))}set ngValue(e){null!=this._select&&(this._value=e,this._setElementValue(Zm(this.id,e)),this._select.writeValue(this._select.value))}set value(e){this._select?(this._value=e,this._setElementValue(Zm(this.id,e)),this._select.writeValue(this._select.value)):this._setElementValue(e)}_setElementValue(e){this._renderer.setProperty(this._element.nativeElement,"value",e)}_setSelected(e){this._renderer.setProperty(this._element.nativeElement,"selected",e)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return e.\u0275fac=function(t){return new(t||e)(zr(rl),zr(cl),zr(Qm,9))},e.\u0275dir=Ke({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),e})();const Km={provide:Lf,useExisting:re(()=>Jm),multi:!0};let Jm=(()=>{class e{constructor(){this._required=!1}get required(){return this._required}set required(e){this._required=null!=e&&!1!==e&&""+e!="false",this._onChange&&this._onChange()}validate(e){return this.required?Vf(e):null}registerOnValidatorChange(e){this._onChange=e}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Ke({type:e,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(e,t){2&e&&Ir("required",t.required?"":null)},inputs:{required:"required"},features:[Ja([Km])]}),e})();const eb={provide:Lf,useExisting:re(()=>tb),multi:!0};let tb=(()=>{class e{constructor(){this._validator=jf}ngOnChanges(e){"maxlength"in e&&(this._createValidator(),this._onChange&&this._onChange())}validate(e){return null!=this.maxlength?this._validator(e):null}registerOnValidatorChange(e){this._onChange=e}_createValidator(){this._validator=Nf("number"==typeof this.maxlength?this.maxlength:parseInt(this.maxlength,10))}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Ke({type:e,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(e,t){2&e&&Ir("maxlength",t.maxlength?t.maxlength:null)},inputs:{maxlength:"maxlength"},features:[Ja([eb]),dt]}),e})();const nb={provide:Lf,useExisting:re(()=>ib),multi:!0};let ib=(()=>{class e{constructor(){this._validator=jf}ngOnChanges(e){"pattern"in e&&(this._createValidator(),this._onChange&&this._onChange())}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._onChange=e}_createValidator(){this._validator=Hf(this.pattern)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Ke({type:e,selectors:[["","pattern","","formControlName",""],["","pattern","","formControl",""],["","pattern","","ngModel",""]],hostVars:1,hostBindings:function(e,t){2&e&&Ir("pattern",t.pattern?t.pattern:null)},inputs:{pattern:"pattern"},features:[Ja([nb]),dt]}),e})(),sb=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=fe({imports:[[Fm]]}),e})(),ob=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=fe({imports:[sb]}),e})(),rb=(()=>{class e{static withConfig(t){return{ngModule:e,providers:[{provide:Bm,useValue:t.warnOnNgModelWithFormControl}]}}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=fe({imports:[sb]}),e})(),ab=(()=>{class e{group(e,t=null){const n=this._reduceControls(e);let i=null,s=null,o=void 0;return null!=t&&(function(e){return void 0!==e.asyncValidators||void 0!==e.validators||void 0!==e.updateOn}(t)?(i=null!=t.validators?t.validators:null,s=null!=t.asyncValidators?t.asyncValidators:null,o=null!=t.updateOn?t.updateOn:void 0):(i=null!=t.validator?t.validator:null,s=null!=t.asyncValidator?t.asyncValidator:null)),new Pm(n,{asyncValidators:s,updateOn:o,validators:i})}control(e,t,n){return new km(e,t,n)}array(e,t,n){const i=e.map(e=>this._createControl(e));return new Em(i,t,n)}_reduceControls(e){const t={};return Object.keys(e).forEach(n=>{t[n]=this._createControl(e[n])}),t}_createControl(e){return e instanceof km||e instanceof Pm||e instanceof Em?e:Array.isArray(e)?this.control(e[0],e.length>1?e[1]:null,e.length>2?e[2]:null):this.control(e)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=pe({factory:function(){return new e},token:e,providedIn:rb}),e})();function lb(...e){let t=e[e.length-1];return S(t)?(e.pop(),L(e,t)):W(e)}function cb(e,t){return N(e,t,1)}function db(e,t){return function(n){return n.lift(new ub(e,t))}}class ub{constructor(e,t){this.predicate=e,this.thisArg=t}call(e,t){return t.subscribe(new hb(e,this.predicate,this.thisArg))}}class hb extends g{constructor(e,t,n){super(e),this.predicate=t,this.thisArg=n,this.count=0}_next(e){let t;try{t=this.predicate.call(this.thisArg,e,this.count++)}catch(n){return void this.destination.error(n)}t&&this.destination.next(e)}}class pb{}class gb{}class fb{constructor(e){this.normalizedNames=new Map,this.lazyUpdate=null,e?this.lazyInit="string"==typeof e?()=>{this.headers=new Map,e.split("\n").forEach(e=>{const t=e.indexOf(":");if(t>0){const n=e.slice(0,t),i=n.toLowerCase(),s=e.slice(t+1).trim();this.maybeSetNormalizedName(n,i),this.headers.has(i)?this.headers.get(i).push(s):this.headers.set(i,[s])}})}:()=>{this.headers=new Map,Object.keys(e).forEach(t=>{let n=e[t];const i=t.toLowerCase();"string"==typeof n&&(n=[n]),n.length>0&&(this.headers.set(i,n),this.maybeSetNormalizedName(t,i))})}:this.headers=new Map}has(e){return this.init(),this.headers.has(e.toLowerCase())}get(e){this.init();const t=this.headers.get(e.toLowerCase());return t&&t.length>0?t[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(e){return this.init(),this.headers.get(e.toLowerCase())||null}append(e,t){return this.clone({name:e,value:t,op:"a"})}set(e,t){return this.clone({name:e,value:t,op:"s"})}delete(e,t){return this.clone({name:e,value:t,op:"d"})}maybeSetNormalizedName(e,t){this.normalizedNames.has(t)||this.normalizedNames.set(t,e)}init(){this.lazyInit&&(this.lazyInit instanceof fb?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(e=>this.applyUpdate(e)),this.lazyUpdate=null))}copyFrom(e){e.init(),Array.from(e.headers.keys()).forEach(t=>{this.headers.set(t,e.headers.get(t)),this.normalizedNames.set(t,e.normalizedNames.get(t))})}clone(e){const t=new fb;return t.lazyInit=this.lazyInit&&this.lazyInit instanceof fb?this.lazyInit:this,t.lazyUpdate=(this.lazyUpdate||[]).concat([e]),t}applyUpdate(e){const t=e.name.toLowerCase();switch(e.op){case"a":case"s":let n=e.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(e.name,t);const i=("a"===e.op?this.headers.get(t):void 0)||[];i.push(...n),this.headers.set(t,i);break;case"d":const s=e.value;if(s){let e=this.headers.get(t);if(!e)return;e=e.filter(e=>-1===s.indexOf(e)),0===e.length?(this.headers.delete(t),this.normalizedNames.delete(t)):this.headers.set(t,e)}else this.headers.delete(t),this.normalizedNames.delete(t)}}forEach(e){this.init(),Array.from(this.normalizedNames.keys()).forEach(t=>e(this.normalizedNames.get(t),this.headers.get(t)))}}class mb{encodeKey(e){return bb(e)}encodeValue(e){return bb(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}}function bb(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/gi,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/%3D/gi,"=").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}class vb{constructor(e={}){if(this.updates=null,this.cloneFrom=null,this.encoder=e.encoder||new mb,e.fromString){if(e.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(e,t){const n=new Map;return e.length>0&&e.replace(/^\?/,"").split("&").forEach(e=>{const i=e.indexOf("="),[s,o]=-1==i?[t.decodeKey(e),""]:[t.decodeKey(e.slice(0,i)),t.decodeValue(e.slice(i+1))],r=n.get(s)||[];r.push(o),n.set(s,r)}),n}(e.fromString,this.encoder)}else e.fromObject?(this.map=new Map,Object.keys(e.fromObject).forEach(t=>{const n=e.fromObject[t];this.map.set(t,Array.isArray(n)?n:[n])})):this.map=null}has(e){return this.init(),this.map.has(e)}get(e){this.init();const t=this.map.get(e);return t?t[0]:null}getAll(e){return this.init(),this.map.get(e)||null}keys(){return this.init(),Array.from(this.map.keys())}append(e,t){return this.clone({param:e,value:t,op:"a"})}appendAll(e){const t=[];return Object.keys(e).forEach(n=>{const i=e[n];Array.isArray(i)?i.forEach(e=>{t.push({param:n,value:e,op:"a"})}):t.push({param:n,value:i,op:"a"})}),this.clone(t)}set(e,t){return this.clone({param:e,value:t,op:"s"})}delete(e,t){return this.clone({param:e,value:t,op:"d"})}toString(){return this.init(),this.keys().map(e=>{const t=this.encoder.encodeKey(e);return this.map.get(e).map(e=>t+"="+this.encoder.encodeValue(e)).join("&")}).filter(e=>""!==e).join("&")}clone(e){const t=new vb({encoder:this.encoder});return t.cloneFrom=this.cloneFrom||this,t.updates=(this.updates||[]).concat(e),t}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(e=>this.map.set(e,this.cloneFrom.map.get(e))),this.updates.forEach(e=>{switch(e.op){case"a":case"s":const t=("a"===e.op?this.map.get(e.param):void 0)||[];t.push(e.value),this.map.set(e.param,t);break;case"d":if(void 0===e.value){this.map.delete(e.param);break}{let t=this.map.get(e.param)||[];const n=t.indexOf(e.value);-1!==n&&t.splice(n,1),t.length>0?this.map.set(e.param,t):this.map.delete(e.param)}}}),this.cloneFrom=this.updates=null)}}function yb(e){return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer}function wb(e){return"undefined"!=typeof Blob&&e instanceof Blob}function _b(e){return"undefined"!=typeof FormData&&e instanceof FormData}class xb{constructor(e,t,n,i){let s;if(this.url=t,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=e.toUpperCase(),function(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||i?(this.body=void 0!==n?n:null,s=i):s=n,s&&(this.reportProgress=!!s.reportProgress,this.withCredentials=!!s.withCredentials,s.responseType&&(this.responseType=s.responseType),s.headers&&(this.headers=s.headers),s.params&&(this.params=s.params)),this.headers||(this.headers=new fb),this.params){const e=this.params.toString();if(0===e.length)this.urlWithParams=t;else{const n=t.indexOf("?");this.urlWithParams=t+(-1===n?"?":n<t.length-1?"&":"")+e}}else this.params=new vb,this.urlWithParams=t}serializeBody(){return null===this.body?null:yb(this.body)||wb(this.body)||_b(this.body)||"string"==typeof this.body?this.body:this.body instanceof vb?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return null===this.body||_b(this.body)?null:wb(this.body)?this.body.type||null:yb(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof vb?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||Array.isArray(this.body)?"application/json":null}clone(e={}){const t=e.method||this.method,n=e.url||this.url,i=e.responseType||this.responseType,s=void 0!==e.body?e.body:this.body,o=void 0!==e.withCredentials?e.withCredentials:this.withCredentials,r=void 0!==e.reportProgress?e.reportProgress:this.reportProgress;let a=e.headers||this.headers,l=e.params||this.params;return void 0!==e.setHeaders&&(a=Object.keys(e.setHeaders).reduce((t,n)=>t.set(n,e.setHeaders[n]),a)),e.setParams&&(l=Object.keys(e.setParams).reduce((t,n)=>t.set(n,e.setParams[n]),l)),new xb(t,n,s,{params:l,headers:a,reportProgress:r,responseType:i,withCredentials:o})}}var Ab=function(e){return e[e.Sent=0]="Sent",e[e.UploadProgress=1]="UploadProgress",e[e.ResponseHeader=2]="ResponseHeader",e[e.DownloadProgress=3]="DownloadProgress",e[e.Response=4]="Response",e[e.User=5]="User",e}({});class Cb{constructor(e,t=200,n="OK"){this.headers=e.headers||new fb,this.status=void 0!==e.status?e.status:t,this.statusText=e.statusText||n,this.url=e.url||null,this.ok=this.status>=200&&this.status<300}}class Sb extends Cb{constructor(e={}){super(e),this.type=Ab.ResponseHeader}clone(e={}){return new Sb({headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}}class kb extends Cb{constructor(e={}){super(e),this.type=Ab.Response,this.body=void 0!==e.body?e.body:null}clone(e={}){return new kb({body:void 0!==e.body?e.body:this.body,headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}}class Pb extends Cb{constructor(e){super(e,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?"Http failure during parsing for "+(e.url||"(unknown url)"):`Http failure response for ${e.url||"(unknown url)"}: ${e.status} ${e.statusText}`,this.error=e.error||null}}function Eb(e,t){return{body:t,headers:e.headers,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials}}let Db=(()=>{class e{constructor(e){this.handler=e}request(e,t,n={}){let i;if(e instanceof xb)i=e;else{let s=void 0;s=n.headers instanceof fb?n.headers:new fb(n.headers);let o=void 0;n.params&&(o=n.params instanceof vb?n.params:new vb({fromObject:n.params})),i=new xb(e,t,void 0!==n.body?n.body:null,{headers:s,params:o,reportProgress:n.reportProgress,responseType:n.responseType||"json",withCredentials:n.withCredentials})}const s=lb(i).pipe(cb(e=>this.handler.handle(e)));if(e instanceof xb||"events"===n.observe)return s;const o=s.pipe(db(e=>e instanceof kb));switch(n.observe||"body"){case"body":switch(i.responseType){case"arraybuffer":return o.pipe(k(e=>{if(null!==e.body&&!(e.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return e.body}));case"blob":return o.pipe(k(e=>{if(null!==e.body&&!(e.body instanceof Blob))throw new Error("Response is not a Blob.");return e.body}));case"text":return o.pipe(k(e=>{if(null!==e.body&&"string"!=typeof e.body)throw new Error("Response is not a string.");return e.body}));case"json":default:return o.pipe(k(e=>e.body))}case"response":return o;default:throw new Error(`Unreachable: unhandled observe type ${n.observe}}`)}}delete(e,t={}){return this.request("DELETE",e,t)}get(e,t={}){return this.request("GET",e,t)}head(e,t={}){return this.request("HEAD",e,t)}jsonp(e,t){return this.request("JSONP",e,{params:(new vb).append(t,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,t={}){return this.request("OPTIONS",e,t)}patch(e,t,n={}){return this.request("PATCH",e,Eb(n,t))}post(e,t,n={}){return this.request("POST",e,Eb(n,t))}put(e,t,n={}){return this.request("PUT",e,Eb(n,t))}}return e.\u0275fac=function(t){return new(t||e)(gi(pb))},e.\u0275prov=pe({token:e,factory:e.\u0275fac}),e})();class Ob{constructor(e,t){this.next=e,this.interceptor=t}handle(e){return this.interceptor.intercept(e,this.next)}}const Mb=new Xn("HTTP_INTERCEPTORS");let Tb=(()=>{class e{intercept(e,t){return t.handle(e)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=pe({token:e,factory:e.\u0275fac}),e})();const Ib=/^\)\]\}',?\n/;class Rb{}let Lb=(()=>{class e{constructor(){}build(){return new XMLHttpRequest}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=pe({token:e,factory:e.\u0275fac}),e})(),Fb=(()=>{class e{constructor(e){this.xhrFactory=e}handle(e){if("JSONP"===e.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new v(t=>{const n=this.xhrFactory.build();if(n.open(e.method,e.urlWithParams),e.withCredentials&&(n.withCredentials=!0),e.headers.forEach((e,t)=>n.setRequestHeader(e,t.join(","))),e.headers.has("Accept")||n.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){const t=e.detectContentTypeHeader();null!==t&&n.setRequestHeader("Content-Type",t)}if(e.responseType){const t=e.responseType.toLowerCase();n.responseType="json"!==t?t:"text"}const i=e.serializeBody();let s=null;const o=()=>{if(null!==s)return s;const t=1223===n.status?204:n.status,i=n.statusText||"OK",o=new fb(n.getAllResponseHeaders()),r=function(e){return"responseURL"in e&&e.responseURL?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null}(n)||e.url;return s=new Sb({headers:o,status:t,statusText:i,url:r}),s},r=()=>{let{headers:i,status:s,statusText:r,url:a}=o(),l=null;204!==s&&(l=void 0===n.response?n.responseText:n.response),0===s&&(s=l?200:0);let c=s>=200&&s<300;if("json"===e.responseType&&"string"==typeof l){const e=l;l=l.replace(Ib,"");try{l=""!==l?JSON.parse(l):null}catch(d){l=e,c&&(c=!1,l={error:d,text:l})}}c?(t.next(new kb({body:l,headers:i,status:s,statusText:r,url:a||void 0})),t.complete()):t.error(new Pb({error:l,headers:i,status:s,statusText:r,url:a||void 0}))},a=e=>{const{url:i}=o(),s=new Pb({error:e,status:n.status||0,statusText:n.statusText||"Unknown Error",url:i||void 0});t.error(s)};let l=!1;const c=i=>{l||(t.next(o()),l=!0);let s={type:Ab.DownloadProgress,loaded:i.loaded};i.lengthComputable&&(s.total=i.total),"text"===e.responseType&&n.responseText&&(s.partialText=n.responseText),t.next(s)},d=e=>{let n={type:Ab.UploadProgress,loaded:e.loaded};e.lengthComputable&&(n.total=e.total),t.next(n)};return n.addEventListener("load",r),n.addEventListener("error",a),n.addEventListener("timeout",a),n.addEventListener("abort",a),e.reportProgress&&(n.addEventListener("progress",c),null!==i&&n.upload&&n.upload.addEventListener("progress",d)),n.send(i),t.next({type:Ab.Sent}),()=>{n.removeEventListener("error",a),n.removeEventListener("abort",a),n.removeEventListener("load",r),n.removeEventListener("timeout",a),e.reportProgress&&(n.removeEventListener("progress",c),null!==i&&n.upload&&n.upload.removeEventListener("progress",d)),n.readyState!==n.DONE&&n.abort()}})}}return e.\u0275fac=function(t){return new(t||e)(gi(Rb))},e.\u0275prov=pe({token:e,factory:e.\u0275fac}),e})();const Bb=new Xn("XSRF_COOKIE_NAME"),zb=new Xn("XSRF_HEADER_NAME");class Vb{}let Nb=(()=>{class e{constructor(e,t,n){this.doc=e,this.platform=t,this.cookieName=n,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=Vu(e,this.cookieName),this.lastCookieString=e),this.lastToken}}return e.\u0275fac=function(t){return new(t||e)(gi(Hd),gi($c),gi(Bb))},e.\u0275prov=pe({token:e,factory:e.\u0275fac}),e})(),Hb=(()=>{class e{constructor(e,t){this.tokenService=e,this.headerName=t}intercept(e,t){const n=e.url.toLowerCase();if("GET"===e.method||"HEAD"===e.method||n.startsWith("http://")||n.startsWith("https://"))return t.handle(e);const i=this.tokenService.getToken();return null===i||e.headers.has(this.headerName)||(e=e.clone({headers:e.headers.set(this.headerName,i)})),t.handle(e)}}return e.\u0275fac=function(t){return new(t||e)(gi(Vb),gi(zb))},e.\u0275prov=pe({token:e,factory:e.\u0275fac}),e})(),jb=(()=>{class e{constructor(e,t){this.backend=e,this.injector=t,this.chain=null}handle(e){if(null===this.chain){const e=this.injector.get(Mb,[]);this.chain=e.reduceRight((e,t)=>new Ob(e,t),this.backend)}return this.chain.handle(e)}}return e.\u0275fac=function(t){return new(t||e)(gi(gb),gi(mr))},e.\u0275prov=pe({token:e,factory:e.\u0275fac}),e})(),Ub=(()=>{class e{static disable(){return{ngModule:e,providers:[{provide:Hb,useClass:Tb}]}}static withOptions(t={}){return{ngModule:e,providers:[t.cookieName?{provide:Bb,useValue:t.cookieName}:[],t.headerName?{provide:zb,useValue:t.headerName}:[]]}}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=fe({providers:[Hb,{provide:Mb,useExisting:Hb,multi:!0},{provide:Vb,useClass:Nb},{provide:Bb,useValue:"XSRF-TOKEN"},{provide:zb,useValue:"X-XSRF-TOKEN"}]}),e})(),Wb=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=fe({providers:[Db,{provide:pb,useClass:jb},Fb,{provide:gb,useExisting:Fb},Lb,{provide:Rb,useExisting:Lb}],imports:[[Ub.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),e})();class Gb extends A{constructor(e){super(),this._value=e}get value(){return this.getValue()}_subscribe(e){const t=super._subscribe(e);return t&&!t.closed&&e.next(this._value),t}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new w;return this._value}next(e){super.next(this._value=e)}}class $b extends g{notifyNext(e,t,n,i,s){this.destination.next(t)}notifyError(e,t){this.destination.error(e)}notifyComplete(e){this.destination.complete()}}class qb extends g{constructor(e,t,n){super(),this.parent=e,this.outerValue=t,this.outerIndex=n,this.index=0}_next(e){this.parent.notifyNext(this.outerValue,e,this.outerIndex,this.index++,this)}_error(e){this.parent.notifyError(e,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}function Yb(e,t,n,i,s=new qb(e,n,i)){if(!s.closed)return t instanceof v?t.subscribe(s):R(t)(s)}const Zb={};function Qb(...e){let t=void 0,n=void 0;return S(e[e.length-1])&&(n=e.pop()),"function"==typeof e[e.length-1]&&(t=e.pop()),1===e.length&&l(e[0])&&(e=e[0]),W(e,n).lift(new Xb(t))}class Xb{constructor(e){this.resultSelector=e}call(e,t){return t.subscribe(new Kb(e,this.resultSelector))}}class Kb extends $b{constructor(e,t){super(e),this.resultSelector=t,this.active=0,this.values=[],this.observables=[]}_next(e){this.values.push(Zb),this.observables.push(e)}_complete(){const e=this.observables,t=e.length;if(0===t)this.destination.complete();else{this.active=t,this.toRespond=t;for(let n=0;n<t;n++)this.add(Yb(this,e[n],void 0,n))}}notifyComplete(e){0==(this.active-=1)&&this.destination.complete()}notifyNext(e,t,n){const i=this.values,s=this.toRespond?i[n]===Zb?--this.toRespond:this.toRespond:0;i[n]=t,0===s&&(this.resultSelector?this._tryResultSelector(i):this.destination.next(i.slice()))}_tryResultSelector(e){let t;try{t=this.resultSelector.apply(this,e)}catch(n){return void this.destination.error(n)}this.destination.next(t)}}const Jb=(()=>{function e(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return e.prototype=Object.create(Error.prototype),e})();function ev(...e){return U(1)(lb(...e))}const tv=new v(e=>e.complete());function nv(e){return e?function(e){return new v(t=>e.schedule(()=>t.complete()))}(e):tv}function iv(e){return new v(t=>{let n;try{n=e()}catch(i){return void t.error(i)}return(n?F(n):nv()).subscribe(t)})}function sv(e,t){return"function"==typeof t?n=>n.pipe(sv((n,i)=>F(e(n,i)).pipe(k((e,s)=>t(n,e,i,s))))):t=>t.lift(new ov(e))}class ov{constructor(e){this.project=e}call(e,t){return t.subscribe(new rv(e,this.project))}}class rv extends z{constructor(e,t){super(e),this.project=t,this.index=0}_next(e){let t;const n=this.index++;try{t=this.project(e,n)}catch(i){return void this.destination.error(i)}this._innerSub(t)}_innerSub(e){const t=this.innerSubscription;t&&t.unsubscribe();const n=new B(this),i=this.destination;i.add(n),this.innerSubscription=V(e,n),this.innerSubscription!==n&&i.add(this.innerSubscription)}_complete(){const{innerSubscription:e}=this;e&&!e.closed||super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(e){this.destination.next(e)}}const av=(()=>{function e(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return e.prototype=Object.create(Error.prototype),e})();function lv(e){return t=>0===e?nv():t.lift(new cv(e))}class cv{constructor(e){if(this.total=e,this.total<0)throw new av}call(e,t){return t.subscribe(new dv(e,this.total))}}class dv extends g{constructor(e,t){super(e),this.total=t,this.count=0}_next(e){const t=this.total,n=++this.count;n<=t&&(this.destination.next(e),n===t&&(this.destination.complete(),this.unsubscribe()))}}function uv(...e){const t=e[e.length-1];return S(t)?(e.pop(),n=>ev(e,n,t)):t=>ev(e,t)}function hv(e,t){let n=!1;return arguments.length>=2&&(n=!0),function(i){return i.lift(new pv(e,t,n))}}class pv{constructor(e,t,n=!1){this.accumulator=e,this.seed=t,this.hasSeed=n}call(e,t){return t.subscribe(new gv(e,this.accumulator,this.seed,this.hasSeed))}}class gv extends g{constructor(e,t,n,i){super(e),this.accumulator=t,this._seed=n,this.hasSeed=i,this.index=0}get seed(){return this._seed}set seed(e){this.hasSeed=!0,this._seed=e}_next(e){if(this.hasSeed)return this._tryNext(e);this.seed=e,this.destination.next(e)}_tryNext(e){const t=this.index++;let n;try{n=this.accumulator(this.seed,e,t)}catch(i){this.destination.error(i)}this.seed=n,this.destination.next(n)}}function fv(e){return function(t){const n=new mv(e),i=t.lift(n);return n.caught=i}}class mv{constructor(e){this.selector=e}call(e,t){return t.subscribe(new bv(e,this.selector,this.caught))}}class bv extends z{constructor(e,t,n){super(e),this.selector=t,this.caught=n}error(e){if(!this.isStopped){let n;try{n=this.selector(e,this.caught)}catch(t){return void super.error(t)}this._unsubscribeAndRecycle();const i=new B(this);this.add(i);const s=V(n,i);s!==i&&this.add(s)}}}function vv(e){return function(t){return 0===e?nv():t.lift(new yv(e))}}class yv{constructor(e){if(this.total=e,this.total<0)throw new av}call(e,t){return t.subscribe(new wv(e,this.total))}}class wv extends g{constructor(e,t){super(e),this.total=t,this.ring=new Array,this.count=0}_next(e){const t=this.ring,n=this.total,i=this.count++;t.length<n?t.push(e):t[i%n]=e}_complete(){const e=this.destination;let t=this.count;if(t>0){const n=this.count>=this.total?this.total:this.count,i=this.ring;for(let s=0;s<n;s++){const s=t++%n;e.next(i[s])}}e.complete()}}function _v(e=Cv){return t=>t.lift(new xv(e))}class xv{constructor(e){this.errorFactory=e}call(e,t){return t.subscribe(new Av(e,this.errorFactory))}}class Av extends g{constructor(e,t){super(e),this.errorFactory=t,this.hasValue=!1}_next(e){this.hasValue=!0,this.destination.next(e)}_complete(){if(this.hasValue)return this.destination.complete();{let t;try{t=this.errorFactory()}catch(e){t=e}this.destination.error(t)}}}function Cv(){return new Jb}function Sv(e=null){return t=>t.lift(new kv(e))}class kv{constructor(e){this.defaultValue=e}call(e,t){return t.subscribe(new Pv(e,this.defaultValue))}}class Pv extends g{constructor(e,t){super(e),this.defaultValue=t,this.isEmpty=!0}_next(e){this.isEmpty=!1,this.destination.next(e)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}function Ev(e,t){const n=arguments.length>=2;return i=>i.pipe(e?db((t,n)=>e(t,n,i)):b,lv(1),n?Sv(t):_v(()=>new Jb))}function Dv(){}function Ov(e,t,n){return function(i){return i.lift(new Mv(e,t,n))}}class Mv{constructor(e,t,n){this.nextOrObserver=e,this.error=t,this.complete=n}call(e,t){return t.subscribe(new Tv(e,this.nextOrObserver,this.error,this.complete))}}class Tv extends g{constructor(e,t,n,s){super(e),this._tapNext=Dv,this._tapError=Dv,this._tapComplete=Dv,this._tapError=n||Dv,this._tapComplete=s||Dv,i(t)?(this._context=this,this._tapNext=t):t&&(this._context=t,this._tapNext=t.next||Dv,this._tapError=t.error||Dv,this._tapComplete=t.complete||Dv)}_next(e){try{this._tapNext.call(this._context,e)}catch(t){return void this.destination.error(t)}this.destination.next(e)}_error(e){try{this._tapError.call(this._context,e)}catch(e){return void this.destination.error(e)}this.destination.error(e)}_complete(){try{this._tapComplete.call(this._context)}catch(e){return void this.destination.error(e)}return this.destination.complete()}}function Iv(e){return t=>t.lift(new Rv(e))}class Rv{constructor(e){this.callback=e}call(e,t){return t.subscribe(new Lv(e,this.callback))}}class Lv extends g{constructor(e,t){super(e),this.add(new u(t))}}class Fv{constructor(e,t){this.id=e,this.url=t}}class Bv extends Fv{constructor(e,t,n="imperative",i=null){super(e,t),this.navigationTrigger=n,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class zv extends Fv{constructor(e,t,n){super(e,t),this.urlAfterRedirects=n}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class Vv extends Fv{constructor(e,t,n){super(e,t),this.reason=n}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class Nv extends Fv{constructor(e,t,n){super(e,t),this.error=n}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class Hv extends Fv{constructor(e,t,n,i){super(e,t),this.urlAfterRedirects=n,this.state=i}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class jv extends Fv{constructor(e,t,n,i){super(e,t),this.urlAfterRedirects=n,this.state=i}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Uv extends Fv{constructor(e,t,n,i,s){super(e,t),this.urlAfterRedirects=n,this.state=i,this.shouldActivate=s}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class Wv extends Fv{constructor(e,t,n,i){super(e,t),this.urlAfterRedirects=n,this.state=i}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Gv extends Fv{constructor(e,t,n,i){super(e,t),this.urlAfterRedirects=n,this.state=i}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class $v{constructor(e){this.route=e}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class qv{constructor(e){this.route=e}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class Yv{constructor(e){this.snapshot=e}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Zv{constructor(e){this.snapshot=e}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Qv{constructor(e){this.snapshot=e}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Xv{constructor(e){this.snapshot=e}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Kv{constructor(e,t,n){this.routerEvent=e,this.position=t,this.anchor=n}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class Jv{constructor(e){this.params=e||{}}has(e){return Object.prototype.hasOwnProperty.call(this.params,e)}get(e){if(this.has(e)){const t=this.params[e];return Array.isArray(t)?t[0]:t}return null}getAll(e){if(this.has(e)){const t=this.params[e];return Array.isArray(t)?t:[t]}return[]}get keys(){return Object.keys(this.params)}}function ey(e){return new Jv(e)}function ty(e){const t=Error("NavigationCancelingError: "+e);return t.ngNavigationCancelingError=!0,t}function ny(e,t,n){const i=n.path.split("/");if(i.length>e.length)return null;if("full"===n.pathMatch&&(t.hasChildren()||i.length<e.length))return null;const s={};for(let o=0;o<i.length;o++){const t=i[o],n=e[o];if(t.startsWith(":"))s[t.substring(1)]=n;else if(t!==n.path)return null}return{consumed:e.slice(0,i.length),posParams:s}}function iy(e,t){const n=e?Object.keys(e):void 0,i=t?Object.keys(t):void 0;if(!n||!i||n.length!=i.length)return!1;let s;for(let o=0;o<n.length;o++)if(s=n[o],!sy(e[s],t[s]))return!1;return!0}function sy(e,t){if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;const n=[...e].sort(),i=[...t].sort();return n.every((e,t)=>i[t]===e)}return e===t}function oy(e){return Array.prototype.concat.apply([],e)}function ry(e){return e.length>0?e[e.length-1]:null}function ay(e,t){for(const n in e)e.hasOwnProperty(n)&&t(e[n],n)}function ly(e){return Qr(e)?e:Yr(e)?F(Promise.resolve(e)):lb(e)}function cy(e,t,n){return n?function(e,t){return iy(e,t)}(e.queryParams,t.queryParams)&&dy(e.root,t.root):function(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(n=>sy(e[n],t[n]))}(e.queryParams,t.queryParams)&&uy(e.root,t.root)}function dy(e,t){if(!my(e.segments,t.segments))return!1;if(e.numberOfChildren!==t.numberOfChildren)return!1;for(const n in t.children){if(!e.children[n])return!1;if(!dy(e.children[n],t.children[n]))return!1}return!0}function uy(e,t){return hy(e,t,t.segments)}function hy(e,t,n){if(e.segments.length>n.length)return!!my(e.segments.slice(0,n.length),n)&&!t.hasChildren();if(e.segments.length===n.length){if(!my(e.segments,n))return!1;for(const n in t.children){if(!e.children[n])return!1;if(!uy(e.children[n],t.children[n]))return!1}return!0}{const i=n.slice(0,e.segments.length),s=n.slice(e.segments.length);return!!my(e.segments,i)&&!!e.children.primary&&hy(e.children.primary,t,s)}}class py{constructor(e,t,n){this.root=e,this.queryParams=t,this.fragment=n}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=ey(this.queryParams)),this._queryParamMap}toString(){return yy.serialize(this)}}class gy{constructor(e,t){this.segments=e,this.children=t,this.parent=null,ay(t,(e,t)=>e.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return wy(this)}}class fy{constructor(e,t){this.path=e,this.parameters=t}get parameterMap(){return this._parameterMap||(this._parameterMap=ey(this.parameters)),this._parameterMap}toString(){return Py(this)}}function my(e,t){return e.length===t.length&&e.every((e,n)=>e.path===t[n].path)}class by{}class vy{parse(e){const t=new Ty(e);return new py(t.parseRootSegment(),t.parseQueryParams(),t.parseFragment())}serialize(e){return`${"/"+_y(e.root,!0)}${function(e){const t=Object.keys(e).map(t=>{const n=e[t];return Array.isArray(n)?n.map(e=>`${Ay(t)}=${Ay(e)}`).join("&"):`${Ay(t)}=${Ay(n)}`});return t.length?"?"+t.join("&"):""}(e.queryParams)}${"string"==typeof e.fragment?"#"+encodeURI(e.fragment):""}`}}const yy=new vy;function wy(e){return e.segments.map(e=>Py(e)).join("/")}function _y(e,t){if(!e.hasChildren())return wy(e);if(t){const t=e.children.primary?_y(e.children.primary,!1):"",n=[];return ay(e.children,(e,t)=>{"primary"!==t&&n.push(`${t}:${_y(e,!1)}`)}),n.length>0?`${t}(${n.join("//")})`:t}{const t=function(e,t){let n=[];return ay(e.children,(e,i)=>{"primary"===i&&(n=n.concat(t(e,i)))}),ay(e.children,(e,i)=>{"primary"!==i&&(n=n.concat(t(e,i)))}),n}(e,(t,n)=>"primary"===n?[_y(e.children.primary,!1)]:[`${n}:${_y(t,!1)}`]);return 1===Object.keys(e.children).length&&null!=e.children.primary?`${wy(e)}/${t[0]}`:`${wy(e)}/(${t.join("//")})`}}function xy(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Ay(e){return xy(e).replace(/%3B/gi,";")}function Cy(e){return xy(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Sy(e){return decodeURIComponent(e)}function ky(e){return Sy(e.replace(/\+/g,"%20"))}function Py(e){return`${Cy(e.path)}${t=e.parameters,Object.keys(t).map(e=>`;${Cy(e)}=${Cy(t[e])}`).join("")}`;var t}const Ey=/^[^\/()?;=#]+/;function Dy(e){const t=e.match(Ey);return t?t[0]:""}const Oy=/^[^=?&#]+/,My=/^[^?&#]+/;class Ty{constructor(e){this.url=e,this.remaining=e}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new gy([],{}):new gy([],this.parseChildren())}parseQueryParams(){const e={};if(this.consumeOptional("?"))do{this.parseQueryParam(e)}while(this.consumeOptional("&"));return e}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());let t={};this.peekStartsWith("/(")&&(this.capture("/"),t=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(e.length>0||Object.keys(t).length>0)&&(n.primary=new gy(e,t)),n}parseSegment(){const e=Dy(this.remaining);if(""===e&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(e),new fy(Sy(e),this.parseMatrixParams())}parseMatrixParams(){const e={};for(;this.consumeOptional(";");)this.parseParam(e);return e}parseParam(e){const t=Dy(this.remaining);if(!t)return;this.capture(t);let n="";if(this.consumeOptional("=")){const e=Dy(this.remaining);e&&(n=e,this.capture(n))}e[Sy(t)]=Sy(n)}parseQueryParam(e){const t=function(e){const t=e.match(Oy);return t?t[0]:""}(this.remaining);if(!t)return;this.capture(t);let n="";if(this.consumeOptional("=")){const e=function(e){const t=e.match(My);return t?t[0]:""}(this.remaining);e&&(n=e,this.capture(n))}const i=ky(t),s=ky(n);if(e.hasOwnProperty(i)){let t=e[i];Array.isArray(t)||(t=[t],e[i]=t),t.push(s)}else e[i]=s}parseParens(e){const t={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const n=Dy(this.remaining),i=this.remaining[n.length];if("/"!==i&&")"!==i&&";"!==i)throw new Error(`Cannot parse url '${this.url}'`);let s=void 0;n.indexOf(":")>-1?(s=n.substr(0,n.indexOf(":")),this.capture(s),this.capture(":")):e&&(s="primary");const o=this.parseChildren();t[s]=1===Object.keys(o).length?o.primary:new gy([],o),this.consumeOptional("//")}return t}peekStartsWith(e){return this.remaining.startsWith(e)}consumeOptional(e){return!!this.peekStartsWith(e)&&(this.remaining=this.remaining.substring(e.length),!0)}capture(e){if(!this.consumeOptional(e))throw new Error(`Expected "${e}".`)}}class Iy{constructor(e){this._root=e}get root(){return this._root.value}parent(e){const t=this.pathFromRoot(e);return t.length>1?t[t.length-2]:null}children(e){const t=Ry(e,this._root);return t?t.children.map(e=>e.value):[]}firstChild(e){const t=Ry(e,this._root);return t&&t.children.length>0?t.children[0].value:null}siblings(e){const t=Ly(e,this._root);return t.length<2?[]:t[t.length-2].children.map(e=>e.value).filter(t=>t!==e)}pathFromRoot(e){return Ly(e,this._root).map(e=>e.value)}}function Ry(e,t){if(e===t.value)return t;for(const n of t.children){const t=Ry(e,n);if(t)return t}return null}function Ly(e,t){if(e===t.value)return[t];for(const n of t.children){const i=Ly(e,n);if(i.length)return i.unshift(t),i}return[]}class Fy{constructor(e,t){this.value=e,this.children=t}toString(){return`TreeNode(${this.value})`}}function By(e){const t={};return e&&e.children.forEach(e=>t[e.value.outlet]=e),t}class zy extends Iy{constructor(e,t){super(e),this.snapshot=t,Wy(this,e)}toString(){return this.snapshot.toString()}}function Vy(e,t){const n=function(e,t){const n=new jy([],{},{},"",{},"primary",t,null,e.root,-1,{});return new Uy("",new Fy(n,[]))}(e,t),i=new Gb([new fy("",{})]),s=new Gb({}),o=new Gb({}),r=new Gb({}),a=new Gb(""),l=new Ny(i,s,r,a,o,"primary",t,n.root);return l.snapshot=n.root,new zy(new Fy(l,[]),n)}class Ny{constructor(e,t,n,i,s,o,r,a){this.url=e,this.params=t,this.queryParams=n,this.fragment=i,this.data=s,this.outlet=o,this.component=r,this._futureSnapshot=a}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe(k(e=>ey(e)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(k(e=>ey(e)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Hy(e,t="emptyOnly"){const n=e.pathFromRoot;let i=0;if("always"!==t)for(i=n.length-1;i>=1;){const e=n[i],t=n[i-1];if(e.routeConfig&&""===e.routeConfig.path)i--;else{if(t.component)break;i--}}return function(e){return e.reduce((e,t)=>({params:Object.assign(Object.assign({},e.params),t.params),data:Object.assign(Object.assign({},e.data),t.data),resolve:Object.assign(Object.assign({},e.resolve),t._resolvedData)}),{params:{},data:{},resolve:{}})}(n.slice(i))}class jy{constructor(e,t,n,i,s,o,r,a,l,c,d){this.url=e,this.params=t,this.queryParams=n,this.fragment=i,this.data=s,this.outlet=o,this.component=r,this.routeConfig=a,this._urlSegment=l,this._lastPathIndex=c,this._resolve=d}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=ey(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=ey(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(e=>e.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Uy extends Iy{constructor(e,t){super(t),this.url=e,Wy(this,t)}toString(){return Gy(this._root)}}function Wy(e,t){t.value._routerState=e,t.children.forEach(t=>Wy(e,t))}function Gy(e){const t=e.children.length>0?` { ${e.children.map(Gy).join(", ")} } `:"";return`${e.value}${t}`}function $y(e){if(e.snapshot){const t=e.snapshot,n=e._futureSnapshot;e.snapshot=n,iy(t.queryParams,n.queryParams)||e.queryParams.next(n.queryParams),t.fragment!==n.fragment&&e.fragment.next(n.fragment),iy(t.params,n.params)||e.params.next(n.params),function(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;++n)if(!iy(e[n],t[n]))return!1;return!0}(t.url,n.url)||e.url.next(n.url),iy(t.data,n.data)||e.data.next(n.data)}else e.snapshot=e._futureSnapshot,e.data.next(e._futureSnapshot.data)}function qy(e,t){var n,i;return iy(e.params,t.params)&&my(n=e.url,i=t.url)&&n.every((e,t)=>iy(e.parameters,i[t].parameters))&&!(!e.parent!=!t.parent)&&(!e.parent||qy(e.parent,t.parent))}function Yy(e,t,n){if(n&&e.shouldReuseRoute(t.value,n.value.snapshot)){const i=n.value;i._futureSnapshot=t.value;const s=function(e,t,n){return t.children.map(t=>{for(const i of n.children)if(e.shouldReuseRoute(t.value,i.value.snapshot))return Yy(e,t,i);return Yy(e,t)})}(e,t,n);return new Fy(i,s)}{const n=e.retrieve(t.value);if(n){const e=n.route;return Zy(t,e),e}{const n=new Ny(new Gb((i=t.value).url),new Gb(i.params),new Gb(i.queryParams),new Gb(i.fragment),new Gb(i.data),i.outlet,i.component,i),s=t.children.map(t=>Yy(e,t));return new Fy(n,s)}}var i}function Zy(e,t){if(e.value.routeConfig!==t.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(e.children.length!==t.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");t.value._futureSnapshot=e.value;for(let n=0;n<e.children.length;++n)Zy(e.children[n],t.children[n])}function Qy(e){return"object"==typeof e&&null!=e&&!e.outlets&&!e.segmentPath}function Xy(e){return"object"==typeof e&&null!=e&&e.outlets}function Ky(e,t,n,i,s){let o={};return i&&ay(i,(e,t)=>{o[t]=Array.isArray(e)?e.map(e=>""+e):""+e}),new py(n.root===e?t:Jy(n.root,e,t),o,s)}function Jy(e,t,n){const i={};return ay(e.children,(e,s)=>{i[s]=e===t?n:Jy(e,t,n)}),new gy(e.segments,i)}class ew{constructor(e,t,n){if(this.isAbsolute=e,this.numberOfDoubleDots=t,this.commands=n,e&&n.length>0&&Qy(n[0]))throw new Error("Root segment cannot have matrix parameters");const i=n.find(Xy);if(i&&i!==ry(n))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class tw{constructor(e,t,n){this.segmentGroup=e,this.processChildren=t,this.index=n}}function nw(e,t,n){if(e||(e=new gy([],{})),0===e.segments.length&&e.hasChildren())return iw(e,t,n);const i=function(e,t,n){let i=0,s=t;const o={match:!1,pathIndex:0,commandIndex:0};for(;s<e.segments.length;){if(i>=n.length)return o;const t=e.segments[s],r=n[i];if(Xy(r))break;const a=""+r,l=i<n.length-1?n[i+1]:null;if(s>0&&void 0===a)break;if(a&&l&&"object"==typeof l&&void 0===l.outlets){if(!aw(a,l,t))return o;i+=2}else{if(!aw(a,{},t))return o;i++}s++}return{match:!0,pathIndex:s,commandIndex:i}}(e,t,n),s=n.slice(i.commandIndex);if(i.match&&i.pathIndex<e.segments.length){const t=new gy(e.segments.slice(0,i.pathIndex),{});return t.children.primary=new gy(e.segments.slice(i.pathIndex),e.children),iw(t,0,s)}return i.match&&0===s.length?new gy(e.segments,{}):i.match&&!e.hasChildren()?sw(e,t,n):i.match?iw(e,0,s):sw(e,t,n)}function iw(e,t,n){if(0===n.length)return new gy(e.segments,{});{const i=function(e){return Xy(e[0])?e[0].outlets:{primary:e}}(n),s={};return ay(i,(n,i)=>{"string"==typeof n&&(n=[n]),null!==n&&(s[i]=nw(e.children[i],t,n))}),ay(e.children,(e,t)=>{void 0===i[t]&&(s[t]=e)}),new gy(e.segments,s)}}function sw(e,t,n){const i=e.segments.slice(0,t);let s=0;for(;s<n.length;){const o=n[s];if(Xy(o)){const e=ow(o.outlets);return new gy(i,e)}if(0===s&&Qy(n[0])){i.push(new fy(e.segments[t].path,rw(n[0]))),s++;continue}const r=Xy(o)?o.outlets.primary:""+o,a=s<n.length-1?n[s+1]:null;r&&a&&Qy(a)?(i.push(new fy(r,rw(a))),s+=2):(i.push(new fy(r,{})),s++)}return new gy(i,{})}function ow(e){const t={};return ay(e,(e,n)=>{"string"==typeof e&&(e=[e]),null!==e&&(t[n]=sw(new gy([],{}),0,e))}),t}function rw(e){const t={};return ay(e,(e,n)=>t[n]=""+e),t}function aw(e,t,n){return e==n.path&&iy(t,n.parameters)}class lw{constructor(e,t,n,i){this.routeReuseStrategy=e,this.futureState=t,this.currState=n,this.forwardEvent=i}activate(e){const t=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(t,n,e),$y(this.futureState.root),this.activateChildRoutes(t,n,e)}deactivateChildRoutes(e,t,n){const i=By(t);e.children.forEach(e=>{const t=e.value.outlet;this.deactivateRoutes(e,i[t],n),delete i[t]}),ay(i,(e,t)=>{this.deactivateRouteAndItsChildren(e,n)})}deactivateRoutes(e,t,n){const i=e.value,s=t?t.value:null;if(i===s)if(i.component){const s=n.getContext(i.outlet);s&&this.deactivateChildRoutes(e,t,s.children)}else this.deactivateChildRoutes(e,t,n);else s&&this.deactivateRouteAndItsChildren(t,n)}deactivateRouteAndItsChildren(e,t){this.routeReuseStrategy.shouldDetach(e.value.snapshot)?this.detachAndStoreRouteSubtree(e,t):this.deactivateRouteAndOutlet(e,t)}detachAndStoreRouteSubtree(e,t){const n=t.getContext(e.value.outlet);if(n&&n.outlet){const t=n.outlet.detach(),i=n.children.onOutletDeactivated();this.routeReuseStrategy.store(e.value.snapshot,{componentRef:t,route:e,contexts:i})}}deactivateRouteAndOutlet(e,t){const n=t.getContext(e.value.outlet),i=n&&e.value.component?n.children:t,s=By(e);for(const o of Object.keys(s))this.deactivateRouteAndItsChildren(s[o],i);n&&n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated())}activateChildRoutes(e,t,n){const i=By(t);e.children.forEach(e=>{this.activateRoutes(e,i[e.value.outlet],n),this.forwardEvent(new Xv(e.value.snapshot))}),e.children.length&&this.forwardEvent(new Zv(e.value.snapshot))}activateRoutes(e,t,n){const i=e.value,s=t?t.value:null;if($y(i),i===s)if(i.component){const s=n.getOrCreateContext(i.outlet);this.activateChildRoutes(e,t,s.children)}else this.activateChildRoutes(e,t,n);else if(i.component){const t=n.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){const e=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),t.children.onOutletReAttached(e.contexts),t.attachRef=e.componentRef,t.route=e.route.value,t.outlet&&t.outlet.attach(e.componentRef,e.route.value),cw(e.route)}else{const n=function(e){for(let t=e.parent;t;t=t.parent){const e=t.routeConfig;if(e&&e._loadedConfig)return e._loadedConfig;if(e&&e.component)return null}return null}(i.snapshot),s=n?n.module.componentFactoryResolver:null;t.attachRef=null,t.route=i,t.resolver=s,t.outlet&&t.outlet.activateWith(i,s),this.activateChildRoutes(e,null,t.children)}}else this.activateChildRoutes(e,null,n)}}function cw(e){$y(e.value),e.children.forEach(cw)}class dw{constructor(e,t){this.routes=e,this.module=t}}function uw(e){return"function"==typeof e}function hw(e){return e instanceof py}const pw=Symbol("INITIAL_VALUE");function gw(){return sv(e=>Qb(e.map(e=>e.pipe(lv(1),uv(pw)))).pipe(hv((e,t)=>{let n=!1;return t.reduce((e,i,s)=>{if(e!==pw)return e;if(i===pw&&(n=!0),!n){if(!1===i)return i;if(s===t.length-1||hw(i))return i}return e},e)},pw),db(e=>e!==pw),k(e=>hw(e)?e:!0===e),lv(1)))}let fw=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=$e({type:e,selectors:[["ng-component"]],decls:1,vars:0,template:function(e,t){1&e&&Ur(0,"router-outlet")},directives:function(){return[d_]},encapsulation:2}),e})();function mw(e,t=""){for(let n=0;n<e.length;n++){const i=e[n];bw(i,vw(t,i))}}function bw(e,t){e.children&&mw(e.children,t)}function vw(e,t){return t?e||t.path?e&&!t.path?e+"/":!e&&t.path?t.path:`${e}/${t.path}`:"":e}function yw(e){const t=e.children&&e.children.map(yw),n=t?Object.assign(Object.assign({},e),{children:t}):Object.assign({},e);return!n.component&&(t||n.loadChildren)&&n.outlet&&"primary"!==n.outlet&&(n.component=fw),n}function ww(e){return e.outlet||"primary"}function _w(e,t){const n=e.filter(e=>ww(e)===t);return n.push(...e.filter(e=>ww(e)!==t)),n}const xw={matched:!1,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};function Aw(e,t,n){var i;if(""===t.path)return"full"===t.pathMatch&&(e.hasChildren()||n.length>0)?Object.assign({},xw):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};const s=(t.matcher||ny)(n,e,t);if(!s)return Object.assign({},xw);const o={};ay(s.posParams,(e,t)=>{o[t]=e.path});const r=s.consumed.length>0?Object.assign(Object.assign({},o),s.consumed[s.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:s.consumed,lastChild:s.consumed.length,parameters:r,positionalParamSegments:null!==(i=s.posParams)&&void 0!==i?i:{}}}function Cw(e,t,n,i,s="corrected"){if(n.length>0&&function(e,t,n){return n.some(n=>Sw(e,t,n)&&"primary"!==ww(n))}(e,n,i)){const s=new gy(t,function(e,t,n,i){const s={};s.primary=i,i._sourceSegment=e,i._segmentIndexShift=t.length;for(const o of n)if(""===o.path&&"primary"!==ww(o)){const n=new gy([],{});n._sourceSegment=e,n._segmentIndexShift=t.length,s[ww(o)]=n}return s}(e,t,i,new gy(n,e.children)));return s._sourceSegment=e,s._segmentIndexShift=t.length,{segmentGroup:s,slicedSegments:[]}}if(0===n.length&&function(e,t,n){return n.some(n=>Sw(e,t,n))}(e,n,i)){const o=new gy(e.segments,function(e,t,n,i,s,o){const r={};for(const a of i)if(Sw(e,n,a)&&!s[ww(a)]){const n=new gy([],{});n._sourceSegment=e,n._segmentIndexShift="legacy"===o?e.segments.length:t.length,r[ww(a)]=n}return Object.assign(Object.assign({},s),r)}(e,t,n,i,e.children,s));return o._sourceSegment=e,o._segmentIndexShift=t.length,{segmentGroup:o,slicedSegments:n}}const o=new gy(e.segments,e.children);return o._sourceSegment=e,o._segmentIndexShift=t.length,{segmentGroup:o,slicedSegments:n}}function Sw(e,t,n){return(!(e.hasChildren()||t.length>0)||"full"!==n.pathMatch)&&""===n.path}function kw(e,t,n,i){return!!(ww(e)===i||"primary"!==i&&Sw(t,n,e))&&("**"===e.path||Aw(t,e,n).matched)}function Pw(e,t,n){return 0===t.length&&!e.children[n]}class Ew{constructor(e){this.segmentGroup=e||null}}class Dw{constructor(e){this.urlTree=e}}function Ow(e){return new v(t=>t.error(new Ew(e)))}function Mw(e){return new v(t=>t.error(new Dw(e)))}function Tw(e){return new v(t=>t.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${e}'`)))}class Iw{constructor(e,t,n,i,s){this.configLoader=t,this.urlSerializer=n,this.urlTree=i,this.config=s,this.allowRedirects=!0,this.ngModule=e.get(jl)}apply(){const e=Cw(this.urlTree.root,[],[],this.config).segmentGroup,t=new gy(e.segments,e.children);return this.expandSegmentGroup(this.ngModule,this.config,t,"primary").pipe(k(e=>this.createUrlTree(Rw(e),this.urlTree.queryParams,this.urlTree.fragment))).pipe(fv(e=>{if(e instanceof Dw)return this.allowRedirects=!1,this.match(e.urlTree);if(e instanceof Ew)throw this.noMatchError(e);throw e}))}match(e){return this.expandSegmentGroup(this.ngModule,this.config,e.root,"primary").pipe(k(t=>this.createUrlTree(Rw(t),e.queryParams,e.fragment))).pipe(fv(e=>{if(e instanceof Ew)throw this.noMatchError(e);throw e}))}noMatchError(e){return new Error(`Cannot match any routes. URL Segment: '${e.segmentGroup}'`)}createUrlTree(e,t,n){const i=e.segments.length>0?new gy([],{primary:e}):e;return new py(i,t,n)}expandSegmentGroup(e,t,n,i){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(e,t,n).pipe(k(e=>new gy([],e))):this.expandSegment(e,n,t,n.segments,i,!0)}expandChildren(e,t,n){const i=[];for(const s of Object.keys(n.children))"primary"===s?i.unshift(s):i.push(s);return F(i).pipe(cb(i=>{const s=n.children[i],o=_w(t,i);return this.expandSegmentGroup(e,o,s,i).pipe(k(e=>({segment:e,outlet:i})))}),hv((e,t)=>(e[t.outlet]=t.segment,e),{}),function(e,t){const n=arguments.length>=2;return i=>i.pipe(e?db((t,n)=>e(t,n,i)):b,vv(1),n?Sv(t):_v(()=>new Jb))}())}expandSegment(e,t,n,i,s,o){return F(n).pipe(cb(r=>this.expandSegmentAgainstRoute(e,t,n,r,i,s,o).pipe(fv(e=>{if(e instanceof Ew)return lb(null);throw e}))),Ev(e=>!!e),fv((e,n)=>{if(e instanceof Jb||"EmptyError"===e.name){if(Pw(t,i,s))return lb(new gy([],{}));throw new Ew(t)}throw e}))}expandSegmentAgainstRoute(e,t,n,i,s,o,r){return kw(i,t,s,o)?void 0===i.redirectTo?this.matchSegmentAgainstRoute(e,t,i,s,o):r&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(e,t,n,i,s,o):Ow(t):Ow(t)}expandSegmentAgainstRouteUsingRedirect(e,t,n,i,s,o){return"**"===i.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(e,n,i,o):this.expandRegularSegmentAgainstRouteUsingRedirect(e,t,n,i,s,o)}expandWildCardWithParamsAgainstRouteUsingRedirect(e,t,n,i){const s=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?Mw(s):this.lineralizeSegments(n,s).pipe(N(n=>{const s=new gy(n,{});return this.expandSegment(e,s,t,n,i,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(e,t,n,i,s,o){const{matched:r,consumedSegments:a,lastChild:l,positionalParamSegments:c}=Aw(t,i,s);if(!r)return Ow(t);const d=this.applyRedirectCommands(a,i.redirectTo,c);return i.redirectTo.startsWith("/")?Mw(d):this.lineralizeSegments(i,d).pipe(N(i=>this.expandSegment(e,t,n,i.concat(s.slice(l)),o,!1)))}matchSegmentAgainstRoute(e,t,n,i,s){if("**"===n.path)return n.loadChildren?(n._loadedConfig?lb(n._loadedConfig):this.configLoader.load(e.injector,n)).pipe(k(e=>(n._loadedConfig=e,new gy(i,{})))):lb(new gy(i,{}));const{matched:o,consumedSegments:r,lastChild:a}=Aw(t,n,i);if(!o)return Ow(t);const l=i.slice(a);return this.getChildConfig(e,n,i).pipe(N(e=>{const i=e.module,o=e.routes,{segmentGroup:a,slicedSegments:c}=Cw(t,r,l,o),d=new gy(a.segments,a.children);if(0===c.length&&d.hasChildren())return this.expandChildren(i,o,d).pipe(k(e=>new gy(r,e)));if(0===o.length&&0===c.length)return lb(new gy(r,{}));const u=ww(n)===s;return this.expandSegment(i,d,o,c,u?"primary":s,!0).pipe(k(e=>new gy(r.concat(e.segments),e.children)))}))}getChildConfig(e,t,n){return t.children?lb(new dw(t.children,e)):t.loadChildren?void 0!==t._loadedConfig?lb(t._loadedConfig):this.runCanLoadGuards(e.injector,t,n).pipe(N(n=>n?this.configLoader.load(e.injector,t).pipe(k(e=>(t._loadedConfig=e,e))):function(e){return new v(t=>t.error(ty(`Cannot load children because the guard of the route "path: '${e.path}'" returned false`)))}(t))):lb(new dw([],e))}runCanLoadGuards(e,t,n){const i=t.canLoad;return i&&0!==i.length?lb(i.map(i=>{const s=e.get(i);let o;if(function(e){return e&&uw(e.canLoad)}(s))o=s.canLoad(t,n);else{if(!uw(s))throw new Error("Invalid CanLoad guard");o=s(t,n)}return ly(o)})).pipe(gw(),Ov(e=>{if(!hw(e))return;const t=ty(`Redirecting to "${this.urlSerializer.serialize(e)}"`);throw t.url=e,t}),k(e=>!0===e)):lb(!0)}lineralizeSegments(e,t){let n=[],i=t.root;for(;;){if(n=n.concat(i.segments),0===i.numberOfChildren)return lb(n);if(i.numberOfChildren>1||!i.children.primary)return Tw(e.redirectTo);i=i.children.primary}}applyRedirectCommands(e,t,n){return this.applyRedirectCreatreUrlTree(t,this.urlSerializer.parse(t),e,n)}applyRedirectCreatreUrlTree(e,t,n,i){const s=this.createSegmentGroup(e,t.root,n,i);return new py(s,this.createQueryParams(t.queryParams,this.urlTree.queryParams),t.fragment)}createQueryParams(e,t){const n={};return ay(e,(e,i)=>{if("string"==typeof e&&e.startsWith(":")){const s=e.substring(1);n[i]=t[s]}else n[i]=e}),n}createSegmentGroup(e,t,n,i){const s=this.createSegments(e,t.segments,n,i);let o={};return ay(t.children,(t,s)=>{o[s]=this.createSegmentGroup(e,t,n,i)}),new gy(s,o)}createSegments(e,t,n,i){return t.map(t=>t.path.startsWith(":")?this.findPosParam(e,t,i):this.findOrReturn(t,n))}findPosParam(e,t,n){const i=n[t.path.substring(1)];if(!i)throw new Error(`Cannot redirect to '${e}'. Cannot find '${t.path}'.`);return i}findOrReturn(e,t){let n=0;for(const i of t){if(i.path===e.path)return t.splice(n),i;n++}return e}}function Rw(e){const t={};for(const n of Object.keys(e.children)){const i=Rw(e.children[n]);(i.segments.length>0||i.hasChildren())&&(t[n]=i)}return function(e){if(1===e.numberOfChildren&&e.children.primary){const t=e.children.primary;return new gy(e.segments.concat(t.segments),t.children)}return e}(new gy(e.segments,t))}class Lw{constructor(e){this.path=e,this.route=this.path[this.path.length-1]}}class Fw{constructor(e,t){this.component=e,this.route=t}}function Bw(e,t,n){const i=e._root;return Vw(i,t?t._root:null,n,[i.value])}function zw(e,t,n){const i=function(e){if(!e)return null;for(let t=e.parent;t;t=t.parent){const e=t.routeConfig;if(e&&e._loadedConfig)return e._loadedConfig}return null}(t);return(i?i.module.injector:n).get(e)}function Vw(e,t,n,i,s={canDeactivateChecks:[],canActivateChecks:[]}){const o=By(t);return e.children.forEach(e=>{!function(e,t,n,i,s={canDeactivateChecks:[],canActivateChecks:[]}){const o=e.value,r=t?t.value:null,a=n?n.getContext(e.value.outlet):null;if(r&&o.routeConfig===r.routeConfig){const l=function(e,t,n){if("function"==typeof n)return n(e,t);switch(n){case"pathParamsChange":return!my(e.url,t.url);case"pathParamsOrQueryParamsChange":return!my(e.url,t.url)||!iy(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!qy(e,t)||!iy(e.queryParams,t.queryParams);case"paramsChange":default:return!qy(e,t)}}(r,o,o.routeConfig.runGuardsAndResolvers);l?s.canActivateChecks.push(new Lw(i)):(o.data=r.data,o._resolvedData=r._resolvedData),Vw(e,t,o.component?a?a.children:null:n,i,s),l&&a&&a.outlet&&a.outlet.isActivated&&s.canDeactivateChecks.push(new Fw(a.outlet.component,r))}else r&&Nw(t,a,s),s.canActivateChecks.push(new Lw(i)),Vw(e,null,o.component?a?a.children:null:n,i,s)}(e,o[e.value.outlet],n,i.concat([e.value]),s),delete o[e.value.outlet]}),ay(o,(e,t)=>Nw(e,n.getContext(t),s)),s}function Nw(e,t,n){const i=By(e),s=e.value;ay(i,(e,i)=>{Nw(e,s.component?t?t.children.getContext(i):null:t,n)}),n.canDeactivateChecks.push(new Fw(s.component&&t&&t.outlet&&t.outlet.isActivated?t.outlet.component:null,s))}class Hw{}function jw(e){return new v(t=>t.error(e))}class Uw{constructor(e,t,n,i,s,o){this.rootComponentType=e,this.config=t,this.urlTree=n,this.url=i,this.paramsInheritanceStrategy=s,this.relativeLinkResolution=o}recognize(){const e=Cw(this.urlTree.root,[],[],this.config.filter(e=>void 0===e.redirectTo),this.relativeLinkResolution).segmentGroup,t=this.processSegmentGroup(this.config,e,"primary");if(null===t)return null;const n=new jy([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},"primary",this.rootComponentType,null,this.urlTree.root,-1,{}),i=new Fy(n,t),s=new Uy(this.url,i);return this.inheritParamsAndData(s._root),s}inheritParamsAndData(e){const t=e.value,n=Hy(t,this.paramsInheritanceStrategy);t.params=Object.freeze(n.params),t.data=Object.freeze(n.data),e.children.forEach(e=>this.inheritParamsAndData(e))}processSegmentGroup(e,t,n){return 0===t.segments.length&&t.hasChildren()?this.processChildren(e,t):this.processSegment(e,t,t.segments,n)}processChildren(e,t){const n=[];for(const s of Object.keys(t.children)){const i=t.children[s],o=_w(e,s),r=this.processSegmentGroup(o,i,s);if(null===r)return null;n.push(...r)}const i=function(e){const t=[];for(const n of e){if(!Ww(n)){t.push(n);continue}const e=t.find(e=>n.value.routeConfig===e.value.routeConfig);void 0!==e?e.children.push(...n.children):t.push(n)}return t}(n);return i.sort((e,t)=>"primary"===e.value.outlet?-1:"primary"===t.value.outlet?1:e.value.outlet.localeCompare(t.value.outlet)),i}processSegment(e,t,n,i){for(const s of e){const e=this.processSegmentAgainstRoute(s,t,n,i);if(null!==e)return e}return Pw(t,n,i)?[]:null}processSegmentAgainstRoute(e,t,n,i){if(e.redirectTo||!kw(e,t,n,i))return null;let s,o=[],r=[];if("**"===e.path){const i=n.length>0?ry(n).parameters:{};s=new jy(n,i,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,qw(e),ww(e),e.component,e,Gw(t),$w(t)+n.length,Yw(e))}else{const i=Aw(t,e,n);if(!i.matched)return null;o=i.consumedSegments,r=n.slice(i.lastChild),s=new jy(o,i.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,qw(e),ww(e),e.component,e,Gw(t),$w(t)+o.length,Yw(e))}const a=function(e){return e.children?e.children:e.loadChildren?e._loadedConfig.routes:[]}(e),{segmentGroup:l,slicedSegments:c}=Cw(t,o,r,a.filter(e=>void 0===e.redirectTo),this.relativeLinkResolution);if(0===c.length&&l.hasChildren()){const e=this.processChildren(a,l);return null===e?null:[new Fy(s,e)]}if(0===a.length&&0===c.length)return[new Fy(s,[])];const d=ww(e)===i,u=this.processSegment(a,l,c,d?"primary":i);return null===u?null:[new Fy(s,u)]}}function Ww(e){const t=e.value.routeConfig;return t&&""===t.path&&void 0===t.redirectTo}function Gw(e){let t=e;for(;t._sourceSegment;)t=t._sourceSegment;return t}function $w(e){let t=e,n=t._segmentIndexShift?t._segmentIndexShift:0;for(;t._sourceSegment;)t=t._sourceSegment,n+=t._segmentIndexShift?t._segmentIndexShift:0;return n-1}function qw(e){return e.data||{}}function Yw(e){return e.resolve||{}}function Zw(e){return sv(t=>{const n=e(t);return n?F(n).pipe(k(()=>t)):lb(t)})}class Qw{}class Xw extends class{shouldDetach(e){return!1}store(e,t){}shouldAttach(e){return!1}retrieve(e){return null}shouldReuseRoute(e,t){return e.routeConfig===t.routeConfig}}{}const Kw=new Xn("ROUTES");class Jw{constructor(e,t,n,i){this.loader=e,this.compiler=t,this.onLoadStartListener=n,this.onLoadEndListener=i}load(e,t){if(t._loader$)return t._loader$;this.onLoadStartListener&&this.onLoadStartListener(t);const n=this.loadModuleFactory(t.loadChildren).pipe(k(n=>{this.onLoadEndListener&&this.onLoadEndListener(t);const i=n.create(e);return new dw(oy(i.injector.get(Kw,void 0,Ae.Self|Ae.Optional)).map(yw),i)}),fv(e=>{throw t._loader$=void 0,e}));return t._loader$=new Q(n,()=>new A).pipe(q()),t._loader$}loadModuleFactory(e){return"string"==typeof e?F(this.loader.load(e)):ly(e()).pipe(N(e=>e instanceof Ul?lb(e):F(this.compiler.compileModuleAsync(e))))}}class e_{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new t_,this.attachRef=null}}class t_{constructor(){this.contexts=new Map}onChildOutletCreated(e,t){const n=this.getOrCreateContext(e);n.outlet=t,this.contexts.set(e,n)}onChildOutletDestroyed(e){const t=this.getContext(e);t&&(t.outlet=null)}onOutletDeactivated(){const e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let t=this.getContext(e);return t||(t=new e_,this.contexts.set(e,t)),t}getContext(e){return this.contexts.get(e)||null}}class n_{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,t){return e}}function i_(e){throw e}function s_(e,t,n){return t.parse("/")}function o_(e,t){return lb(null)}let r_=(()=>{class e{constructor(e,t,n,i,s,o,r,a){this.rootComponentType=e,this.urlSerializer=t,this.rootContexts=n,this.location=i,this.config=a,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.lastLocationChangeInfo=null,this.navigationId=0,this.isNgZoneEnabled=!1,this.events=new A,this.errorHandler=i_,this.malformedUriErrorHandler=s_,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:o_,afterPreactivation:o_},this.urlHandlingStrategy=new n_,this.routeReuseStrategy=new Xw,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.ngModule=s.get(jl),this.console=s.get(Yc);const l=s.get(ad);this.isNgZoneEnabled=l instanceof ad&&ad.isInAngularZone(),this.resetConfig(a),this.currentUrlTree=new py(new gy([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new Jw(o,r,e=>this.triggerEvent(new $v(e)),e=>this.triggerEvent(new qv(e))),this.routerState=Vy(this.currentUrlTree,this.rootComponentType),this.transitions=new Gb({id:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}setupNavigations(e){const t=this.events;return e.pipe(db(e=>0!==e.id),k(e=>Object.assign(Object.assign({},e),{extractedUrl:this.urlHandlingStrategy.extract(e.rawUrl)})),sv(e=>{let n=!1,i=!1;return lb(e).pipe(Ov(e=>{this.currentNavigation={id:e.id,initialUrl:e.currentRawUrl,extractedUrl:e.extractedUrl,trigger:e.source,extras:e.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),sv(e=>{const n=!this.navigated||e.extractedUrl.toString()!==this.browserUrlTree.toString();if(("reload"===this.onSameUrlNavigation||n)&&this.urlHandlingStrategy.shouldProcessUrl(e.rawUrl))return lb(e).pipe(sv(e=>{const n=this.transitions.getValue();return t.next(new Bv(e.id,this.serializeUrl(e.extractedUrl),e.source,e.restoredState)),n!==this.transitions.getValue()?tv:Promise.resolve(e)}),(i=this.ngModule.injector,s=this.configLoader,o=this.urlSerializer,r=this.config,sv(e=>function(e,t,n,i,s){return new Iw(e,t,n,i,s).apply()}(i,s,o,e.extractedUrl,r).pipe(k(t=>Object.assign(Object.assign({},e),{urlAfterRedirects:t}))))),Ov(e=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:e.urlAfterRedirects})}),function(e,t,n,i,s){return N(o=>function(e,t,n,i,s="emptyOnly",o="legacy"){try{const r=new Uw(e,t,n,i,s,o).recognize();return null===r?jw(new Hw):lb(r)}catch(r){return jw(r)}}(e,t,o.urlAfterRedirects,n(o.urlAfterRedirects),i,s).pipe(k(e=>Object.assign(Object.assign({},o),{targetSnapshot:e}))))}(this.rootComponentType,this.config,e=>this.serializeUrl(e),this.paramsInheritanceStrategy,this.relativeLinkResolution),Ov(e=>{"eager"===this.urlUpdateStrategy&&(e.extras.skipLocationChange||this.setBrowserUrl(e.urlAfterRedirects,!!e.extras.replaceUrl,e.id,e.extras.state),this.browserUrlTree=e.urlAfterRedirects);const n=new Hv(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.next(n)}));var i,s,o,r;if(n&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:n,extractedUrl:i,source:s,restoredState:o,extras:r}=e,a=new Bv(n,this.serializeUrl(i),s,o);t.next(a);const l=Vy(i,this.rootComponentType).snapshot;return lb(Object.assign(Object.assign({},e),{targetSnapshot:l,urlAfterRedirects:i,extras:Object.assign(Object.assign({},r),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=e.rawUrl,this.browserUrlTree=e.urlAfterRedirects,e.resolve(null),tv}),Zw(e=>{const{targetSnapshot:t,id:n,extractedUrl:i,rawUrl:s,extras:{skipLocationChange:o,replaceUrl:r}}=e;return this.hooks.beforePreactivation(t,{navigationId:n,appliedUrlTree:i,rawUrlTree:s,skipLocationChange:!!o,replaceUrl:!!r})}),Ov(e=>{const t=new jv(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);this.triggerEvent(t)}),k(e=>Object.assign(Object.assign({},e),{guards:Bw(e.targetSnapshot,e.currentSnapshot,this.rootContexts)})),function(e,t){return N(n=>{const{targetSnapshot:i,currentSnapshot:s,guards:{canActivateChecks:o,canDeactivateChecks:r}}=n;return 0===r.length&&0===o.length?lb(Object.assign(Object.assign({},n),{guardsResult:!0})):function(e,t,n,i){return F(e).pipe(N(e=>function(e,t,n,i,s){const o=t&&t.routeConfig?t.routeConfig.canDeactivate:null;return o&&0!==o.length?lb(o.map(o=>{const r=zw(o,t,s);let a;if(function(e){return e&&uw(e.canDeactivate)}(r))a=ly(r.canDeactivate(e,t,n,i));else{if(!uw(r))throw new Error("Invalid CanDeactivate guard");a=ly(r(e,t,n,i))}return a.pipe(Ev())})).pipe(gw()):lb(!0)}(e.component,e.route,n,t,i)),Ev(e=>!0!==e,!0))}(r,i,s,e).pipe(N(n=>n&&"boolean"==typeof n?function(e,t,n,i){return F(t).pipe(cb(t=>ev(function(e,t){return null!==e&&t&&t(new Yv(e)),lb(!0)}(t.route.parent,i),function(e,t){return null!==e&&t&&t(new Qv(e)),lb(!0)}(t.route,i),function(e,t,n){const i=t[t.length-1],s=t.slice(0,t.length-1).reverse().map(e=>function(e){const t=e.routeConfig?e.routeConfig.canActivateChild:null;return t&&0!==t.length?{node:e,guards:t}:null}(e)).filter(e=>null!==e).map(t=>iv(()=>lb(t.guards.map(s=>{const o=zw(s,t.node,n);let r;if(function(e){return e&&uw(e.canActivateChild)}(o))r=ly(o.canActivateChild(i,e));else{if(!uw(o))throw new Error("Invalid CanActivateChild guard");r=ly(o(i,e))}return r.pipe(Ev())})).pipe(gw())));return lb(s).pipe(gw())}(e,t.path,n),function(e,t,n){const i=t.routeConfig?t.routeConfig.canActivate:null;return i&&0!==i.length?lb(i.map(i=>iv(()=>{const s=zw(i,t,n);let o;if(function(e){return e&&uw(e.canActivate)}(s))o=ly(s.canActivate(t,e));else{if(!uw(s))throw new Error("Invalid CanActivate guard");o=ly(s(t,e))}return o.pipe(Ev())}))).pipe(gw()):lb(!0)}(e,t.route,n))),Ev(e=>!0!==e,!0))}(i,o,e,t):lb(n)),k(e=>Object.assign(Object.assign({},n),{guardsResult:e})))})}(this.ngModule.injector,e=>this.triggerEvent(e)),Ov(e=>{if(hw(e.guardsResult)){const t=ty(`Redirecting to "${this.serializeUrl(e.guardsResult)}"`);throw t.url=e.guardsResult,t}const t=new Uv(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(e.urlAfterRedirects),e.targetSnapshot,!!e.guardsResult);this.triggerEvent(t)}),db(e=>{if(!e.guardsResult){this.resetUrlToCurrentUrlTree();const n=new Vv(e.id,this.serializeUrl(e.extractedUrl),"");return t.next(n),e.resolve(!1),!1}return!0}),Zw(e=>{if(e.guards.canActivateChecks.length)return lb(e).pipe(Ov(e=>{const t=new Wv(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);this.triggerEvent(t)}),sv(e=>{let n=!1;return lb(e).pipe((i=this.paramsInheritanceStrategy,s=this.ngModule.injector,N(e=>{const{targetSnapshot:t,guards:{canActivateChecks:n}}=e;if(!n.length)return lb(e);let o=0;return F(n).pipe(cb(e=>function(e,t,n,i){return function(e,t,n,i){const s=Object.keys(e);if(0===s.length)return lb({});const o={};return F(s).pipe(N(s=>function(e,t,n,i){const s=zw(e,t,i);return ly(s.resolve?s.resolve(t,n):s(t,n))}(e[s],t,n,i).pipe(Ov(e=>{o[s]=e}))),vv(1),N(()=>Object.keys(o).length===s.length?lb(o):tv))}(e._resolve,e,t,i).pipe(k(t=>(e._resolvedData=t,e.data=Object.assign(Object.assign({},e.data),Hy(e,n).resolve),null)))}(e.route,t,i,s)),Ov(()=>o++),vv(1),N(t=>o===n.length?lb(e):tv))})),Ov({next:()=>n=!0,complete:()=>{if(!n){const n=new Vv(e.id,this.serializeUrl(e.extractedUrl),"At least one route resolver didn't emit any value.");t.next(n),e.resolve(!1)}}}));var i,s}),Ov(e=>{const t=new Gv(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);this.triggerEvent(t)}))}),Zw(e=>{const{targetSnapshot:t,id:n,extractedUrl:i,rawUrl:s,extras:{skipLocationChange:o,replaceUrl:r}}=e;return this.hooks.afterPreactivation(t,{navigationId:n,appliedUrlTree:i,rawUrlTree:s,skipLocationChange:!!o,replaceUrl:!!r})}),k(e=>{const t=function(e,t,n){const i=Yy(e,t._root,n?n._root:void 0);return new zy(i,t)}(this.routeReuseStrategy,e.targetSnapshot,e.currentRouterState);return Object.assign(Object.assign({},e),{targetRouterState:t})}),Ov(e=>{this.currentUrlTree=e.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.rawUrl),this.routerState=e.targetRouterState,"deferred"===this.urlUpdateStrategy&&(e.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,!!e.extras.replaceUrl,e.id,e.extras.state),this.browserUrlTree=e.urlAfterRedirects)}),(s=this.rootContexts,o=this.routeReuseStrategy,r=e=>this.triggerEvent(e),k(e=>(new lw(o,e.targetRouterState,e.currentRouterState,r).activate(s),e))),Ov({next(){n=!0},complete(){n=!0}}),Iv(()=>{if(!n&&!i){this.resetUrlToCurrentUrlTree();const n=new Vv(e.id,this.serializeUrl(e.extractedUrl),`Navigation ID ${e.id} is not equal to the current navigation id ${this.navigationId}`);t.next(n),e.resolve(!1)}this.currentNavigation=null}),fv(n=>{if(i=!0,(s=n)&&s.ngNavigationCancelingError){const i=hw(n.url);i||(this.navigated=!0,this.resetStateAndUrl(e.currentRouterState,e.currentUrlTree,e.rawUrl));const s=new Vv(e.id,this.serializeUrl(e.extractedUrl),n.message);t.next(s),i?setTimeout(()=>{const t=this.urlHandlingStrategy.merge(n.url,this.rawUrlTree);this.scheduleNavigation(t,"imperative",null,{skipLocationChange:e.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy},{resolve:e.resolve,reject:e.reject,promise:e.promise})},0):e.resolve(!1)}else{this.resetStateAndUrl(e.currentRouterState,e.currentUrlTree,e.rawUrl);const i=new Nv(e.id,this.serializeUrl(e.extractedUrl),n);t.next(i);try{e.resolve(this.errorHandler(n))}catch(o){e.reject(o)}}var s;return tv}));var s,o,r}))}resetRootComponentType(e){this.rootComponentType=e,this.routerState.root.component=this.rootComponentType}getTransition(){const e=this.transitions.value;return e.urlAfterRedirects=this.browserUrlTree,e}setTransition(e){this.transitions.next(Object.assign(Object.assign({},this.getTransition()),e))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(e=>{const t=this.extractLocationChangeInfoFromEvent(e);this.shouldScheduleNavigation(this.lastLocationChangeInfo,t)&&setTimeout(()=>{const{source:e,state:n,urlTree:i}=t,s={replaceUrl:!0};if(n){const e=Object.assign({},n);delete e.navigationId,0!==Object.keys(e).length&&(s.state=e)}this.scheduleNavigation(i,e,n,s)},0),this.lastLocationChangeInfo=t}))}extractLocationChangeInfoFromEvent(e){var t;return{source:"popstate"===e.type?"popstate":"hashchange",urlTree:this.parseUrl(e.url),state:(null===(t=e.state)||void 0===t?void 0:t.navigationId)?e.state:null,transitionId:this.getTransition().id}}shouldScheduleNavigation(e,t){if(!e)return!0;const n=t.urlTree.toString()===e.urlTree.toString();return!(t.transitionId===e.transitionId&&n&&("hashchange"===t.source&&"popstate"===e.source||"popstate"===t.source&&"hashchange"===e.source))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(e){this.events.next(e)}resetConfig(e){mw(e),this.config=e.map(yw),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(e,t={}){const{relativeTo:n,queryParams:i,fragment:s,queryParamsHandling:o,preserveFragment:r}=t,a=n||this.routerState.root,l=r?this.currentUrlTree.fragment:s;let c=null;switch(o){case"merge":c=Object.assign(Object.assign({},this.currentUrlTree.queryParams),i);break;case"preserve":c=this.currentUrlTree.queryParams;break;default:c=i||null}return null!==c&&(c=this.removeEmptyProps(c)),function(e,t,n,i,s){if(0===n.length)return Ky(t.root,t.root,t,i,s);const o=function(e){if("string"==typeof e[0]&&1===e.length&&"/"===e[0])return new ew(!0,0,e);let t=0,n=!1;const i=e.reduce((e,i,s)=>{if("object"==typeof i&&null!=i){if(i.outlets){const t={};return ay(i.outlets,(e,n)=>{t[n]="string"==typeof e?e.split("/"):e}),[...e,{outlets:t}]}if(i.segmentPath)return[...e,i.segmentPath]}return"string"!=typeof i?[...e,i]:0===s?(i.split("/").forEach((i,s)=>{0==s&&"."===i||(0==s&&""===i?n=!0:".."===i?t++:""!=i&&e.push(i))}),e):[...e,i]},[]);return new ew(n,t,i)}(n);if(o.toRoot())return Ky(t.root,new gy([],{}),t,i,s);const r=function(e,t,n){if(e.isAbsolute)return new tw(t.root,!0,0);if(-1===n.snapshot._lastPathIndex){const e=n.snapshot._urlSegment;return new tw(e,e===t.root,0)}const i=Qy(e.commands[0])?0:1;return function(e,t,n){let i=e,s=t,o=n;for(;o>s;){if(o-=s,i=i.parent,!i)throw new Error("Invalid number of '../'");s=i.segments.length}return new tw(i,!1,s-o)}(n.snapshot._urlSegment,n.snapshot._lastPathIndex+i,e.numberOfDoubleDots)}(o,t,e),a=r.processChildren?iw(r.segmentGroup,r.index,o.commands):nw(r.segmentGroup,r.index,o.commands);return Ky(r.segmentGroup,a,t,i,s)}(a,this.currentUrlTree,e,c,l)}navigateByUrl(e,t={skipLocationChange:!1}){const n=hw(e)?e:this.parseUrl(e),i=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(i,"imperative",null,t)}navigate(e,t={skipLocationChange:!1}){return function(e){for(let t=0;t<e.length;t++){const n=e[t];if(null==n)throw new Error(`The requested path contains ${n} segment at index ${t}`)}}(e),this.navigateByUrl(this.createUrlTree(e,t),t)}serializeUrl(e){return this.urlSerializer.serialize(e)}parseUrl(e){let t;try{t=this.urlSerializer.parse(e)}catch(n){t=this.malformedUriErrorHandler(n,this.urlSerializer,e)}return t}isActive(e,t){if(hw(e))return cy(this.currentUrlTree,e,t);const n=this.parseUrl(e);return cy(this.currentUrlTree,n,t)}removeEmptyProps(e){return Object.keys(e).reduce((t,n)=>{const i=e[n];return null!=i&&(t[n]=i),t},{})}processNavigations(){this.navigations.subscribe(e=>{this.navigated=!0,this.lastSuccessfulId=e.id,this.events.next(new zv(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,this.currentNavigation=null,e.resolve(!0)},e=>{this.console.warn("Unhandled Navigation Error: ")})}scheduleNavigation(e,t,n,i,s){if(this.disposed)return Promise.resolve(!1);const o=this.getTransition(),r="imperative"!==t&&"imperative"===(null==o?void 0:o.source),a=(this.lastSuccessfulId===o.id||this.currentNavigation?o.rawUrl:o.urlAfterRedirects).toString()===e.toString();if(r&&a)return Promise.resolve(!0);let l,c,d;s?(l=s.resolve,c=s.reject,d=s.promise):d=new Promise((e,t)=>{l=e,c=t});const u=++this.navigationId;return this.setTransition({id:u,source:t,restoredState:n,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:e,extras:i,resolve:l,reject:c,promise:d,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),d.catch(e=>Promise.reject(e))}setBrowserUrl(e,t,n,i){const s=this.urlSerializer.serialize(e);i=i||{},this.location.isCurrentPathEqualTo(s)||t?this.location.replaceState(s,"",Object.assign(Object.assign({},i),{navigationId:n})):this.location.go(s,"",Object.assign(Object.assign({},i),{navigationId:n}))}resetStateAndUrl(e,t,n){this.routerState=e,this.currentUrlTree=t,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n),this.resetUrlToCurrentUrlTree()}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",{navigationId:this.lastSuccessfulId})}}return e.\u0275fac=function(t){return new(t||e)(gi(Jn),gi(by),gi(t_),gi(nu),gi(mr),gi(Od),gi(sd),gi(void 0))},e.\u0275prov=pe({token:e,factory:e.\u0275fac}),e})(),a_=(()=>{class e{constructor(e,t,n,i,s){this.router=e,this.route=t,this.commands=[],this.onChanges=new A,null==n&&i.setAttribute(s.nativeElement,"tabindex","0")}ngOnChanges(e){this.onChanges.next(this)}set routerLink(e){this.commands=null!=e?Array.isArray(e)?e:[e]:[]}onClick(){const e={skipLocationChange:c_(this.skipLocationChange),replaceUrl:c_(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,e),!0}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:c_(this.preserveFragment)})}}return e.\u0275fac=function(t){return new(t||e)(zr(r_),zr(Ny),Yn("tabindex"),zr(cl),zr(rl))},e.\u0275dir=Ke({type:e,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(e,t){1&e&&Xr("click",function(){return t.onClick()})},inputs:{routerLink:"routerLink",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo"},features:[dt]}),e})(),l_=(()=>{class e{constructor(e,t,n){this.router=e,this.route=t,this.locationStrategy=n,this.commands=[],this.onChanges=new A,this.subscription=e.events.subscribe(e=>{e instanceof zv&&this.updateTargetUrlAndHref()})}set routerLink(e){this.commands=null!=e?Array.isArray(e)?e:[e]:[]}ngOnChanges(e){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(e,t,n,i,s){if(0!==e||t||n||i||s)return!0;if("string"==typeof this.target&&"_self"!=this.target)return!0;const o={skipLocationChange:c_(this.skipLocationChange),replaceUrl:c_(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,o),!1}updateTargetUrlAndHref(){this.href=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree))}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:c_(this.preserveFragment)})}}return e.\u0275fac=function(t){return new(t||e)(zr(r_),zr(Ny),zr(Xd))},e.\u0275dir=Ke({type:e,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(e,t){1&e&&Xr("click",function(e){return t.onClick(e.button,e.ctrlKey,e.shiftKey,e.altKey,e.metaKey)}),2&e&&(Fa("href",t.href,os),Ir("target",t.target))},inputs:{routerLink:"routerLink",target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo"},features:[dt]}),e})();function c_(e){return""===e||!!e}let d_=(()=>{class e{constructor(e,t,n,i,s){this.parentContexts=e,this.location=t,this.resolver=n,this.changeDetector=s,this.activated=null,this._activatedRoute=null,this.activateEvents=new yc,this.deactivateEvents=new yc,this.name=i||"primary",e.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const e=this.parentContexts.getContext(this.name);e&&e.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.resolver||null))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();const e=this.activated;return this.activated=null,this._activatedRoute=null,e}attach(e,t){this.activated=e,this._activatedRoute=t,this.location.insert(e.hostView)}deactivate(){if(this.activated){const e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,t){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=e;const n=(t=t||this.resolver).resolveComponentFactory(e._futureSnapshot.routeConfig.component),i=this.parentContexts.getOrCreateContext(this.name).children,s=new u_(e,i,this.location.injector);this.activated=this.location.createComponent(n,this.location.length,s),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return e.\u0275fac=function(t){return new(t||e)(zr(t_),zr(Gl),zr(nl),Yn("name"),zr(Tl))},e.\u0275dir=Ke({type:e,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),e})();class u_{constructor(e,t,n){this.route=e,this.childContexts=t,this.parent=n}get(e,t){return e===Ny?this.route:e===t_?this.childContexts:this.parent.get(e,t)}}class h_{}class p_{preload(e,t){return lb(null)}}let g_=(()=>{class e{constructor(e,t,n,i,s){this.router=e,this.injector=i,this.preloadingStrategy=s,this.loader=new Jw(t,n,t=>e.triggerEvent(new $v(t)),t=>e.triggerEvent(new qv(t)))}setUpPreloading(){this.subscription=this.router.events.pipe(db(e=>e instanceof zv),cb(()=>this.preload())).subscribe(()=>{})}preload(){const e=this.injector.get(jl);return this.processRoutes(e,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,t){const n=[];for(const i of t)if(i.loadChildren&&!i.canLoad&&i._loadedConfig){const e=i._loadedConfig;n.push(this.processRoutes(e.module,e.routes))}else i.loadChildren&&!i.canLoad?n.push(this.preloadConfig(e,i)):i.children&&n.push(this.processRoutes(e,i.children));return F(n).pipe(U(),k(e=>{}))}preloadConfig(e,t){return this.preloadingStrategy.preload(t,()=>(t._loadedConfig?lb(t._loadedConfig):this.loader.load(e.injector,t)).pipe(N(e=>(t._loadedConfig=e,this.processRoutes(e.module,e.routes)))))}}return e.\u0275fac=function(t){return new(t||e)(gi(r_),gi(Od),gi(sd),gi(mr),gi(h_))},e.\u0275prov=pe({token:e,factory:e.\u0275fac}),e})(),f_=(()=>{class e{constructor(e,t,n={}){this.router=e,this.viewportScroller=t,this.options=n,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},n.scrollPositionRestoration=n.scrollPositionRestoration||"disabled",n.anchorScrolling=n.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(e=>{e instanceof Bv?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof zv&&(this.lastId=e.id,this.scheduleScrollEvent(e,this.router.parseUrl(e.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(e=>{e instanceof Kv&&(e.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(e.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,t){this.router.triggerEvent(new Kv(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,t))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return e.\u0275fac=function(t){return new(t||e)(gi(r_),gi(ph),gi(void 0))},e.\u0275prov=pe({token:e,factory:e.\u0275fac}),e})();const m_=new Xn("ROUTER_CONFIGURATION"),b_=new Xn("ROUTER_FORROOT_GUARD"),v_=[nu,{provide:by,useClass:vy},{provide:r_,useFactory:function(e,t,n,i,s,o,r,a={},l,c){const d=new r_(null,e,t,n,i,s,o,oy(r));if(l&&(d.urlHandlingStrategy=l),c&&(d.routeReuseStrategy=c),function(e,t){e.errorHandler&&(t.errorHandler=e.errorHandler),e.malformedUriErrorHandler&&(t.malformedUriErrorHandler=e.malformedUriErrorHandler),e.onSameUrlNavigation&&(t.onSameUrlNavigation=e.onSameUrlNavigation),e.paramsInheritanceStrategy&&(t.paramsInheritanceStrategy=e.paramsInheritanceStrategy),e.relativeLinkResolution&&(t.relativeLinkResolution=e.relativeLinkResolution),e.urlUpdateStrategy&&(t.urlUpdateStrategy=e.urlUpdateStrategy)}(a,d),a.enableTracing){const e=Nd();d.events.subscribe(t=>{e.logGroup("Router Event: "+t.constructor.name),e.log(t.toString()),e.log(t),e.logGroupEnd()})}return d},deps:[by,t_,nu,mr,Od,sd,Kw,m_,[class{},new yi],[Qw,new yi]]},t_,{provide:Ny,useFactory:function(e){return e.routerState.root},deps:[r_]},{provide:Od,useClass:Id},g_,p_,class{preload(e,t){return t().pipe(fv(()=>lb(null)))}},{provide:m_,useValue:{enableTracing:!1}}];function y_(){return new Ad("Router",r_)}let w_=(()=>{class e{constructor(e,t){}static forRoot(t,n){return{ngModule:e,providers:[v_,C_(t),{provide:b_,useFactory:A_,deps:[[r_,new yi,new wi]]},{provide:m_,useValue:n||{}},{provide:Xd,useFactory:x_,deps:[jd,[new vi(Jd),new yi],m_]},{provide:f_,useFactory:__,deps:[r_,ph,m_]},{provide:h_,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:p_},{provide:Ad,multi:!0,useFactory:y_},[S_,{provide:Nc,multi:!0,useFactory:k_,deps:[S_]},{provide:E_,useFactory:P_,deps:[S_]},{provide:qc,multi:!0,useExisting:E_}]]}}static forChild(t){return{ngModule:e,providers:[C_(t)]}}}return e.\u0275fac=function(t){return new(t||e)(gi(b_,8),gi(r_,8))},e.\u0275mod=Qe({type:e}),e.\u0275inj=fe({}),e})();function __(e,t,n){return n.scrollOffset&&t.setOffset(n.scrollOffset),new f_(e,t,n)}function x_(e,t,n={}){return n.useHash?new tu(e,t):new eu(e,t)}function A_(e){return"guarded"}function C_(e){return[{provide:Kn,multi:!0,useValue:e},{provide:Kw,multi:!0,useValue:e}]}let S_=(()=>{class e{constructor(e){this.injector=e,this.initNavigation=!1,this.resultOfPreactivationDone=new A}appInitializer(){return this.injector.get(Wd,Promise.resolve(null)).then(()=>{let e=null;const t=new Promise(t=>e=t),n=this.injector.get(r_),i=this.injector.get(m_);return"disabled"===i.initialNavigation?(n.setUpLocationChangeListener(),e(!0)):"enabled"===i.initialNavigation||"enabledBlocking"===i.initialNavigation?(n.hooks.afterPreactivation=()=>this.initNavigation?lb(null):(this.initNavigation=!0,e(!0),this.resultOfPreactivationDone),n.initialNavigation()):e(!0),t})}bootstrapListener(e){const t=this.injector.get(m_),n=this.injector.get(g_),i=this.injector.get(f_),s=this.injector.get(r_),o=this.injector.get(Ed);e===o.components[0]&&("enabledNonBlocking"!==t.initialNavigation&&void 0!==t.initialNavigation||s.initialNavigation(),n.setUpPreloading(),i.init(),s.resetRootComponentType(o.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}}return e.\u0275fac=function(t){return new(t||e)(gi(mr))},e.\u0275prov=pe({token:e,factory:e.\u0275fac}),e})();function k_(e){return e.appInitializer.bind(e)}function P_(e){return e.bootstrapListener.bind(e)}const E_=new Xn("Router Initializer");function D_(e,t,n,i){var s,o=arguments.length,r=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,n,r):s(t,n))||r);return o>3&&r&&Object.defineProperty(t,n,r),r}function O_(e,t){return function(n,i){t(n,i,e)}}function M_(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function T_(e,t,n,i){return new(n||(n=Promise))(function(s,o){function r(e){try{l(i.next(e))}catch(t){o(t)}}function a(e){try{l(i.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?s(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(r,a)}l((i=i.apply(e,t||[])).next())})}n("meiF"),n("lTIg"),n("RQGG"),n("bC4P"),n("iWo5");var I_=n("E/Mt"),R_=n("1vRN"),L_=(n("39oe"),n("k4ps")),F_=n("r7QR"),B_=n("7OTs"),z_=(n("y08P"),n("wEJo"));function V_(e,t,n,s){return i(n)&&(s=n,n=void 0),s?V_(e,t,n).pipe(k(e=>l(e)?s(...e):s(e))):new v(i=>{N_(e,t,function(e){i.next(arguments.length>1?Array.prototype.slice.call(arguments):e)},i,n)})}function N_(e,t,n,i,s){let o;if(function(e){return e&&"function"==typeof e.addEventListener&&"function"==typeof e.removeEventListener}(e)){const i=e;e.addEventListener(t,n,s),o=()=>i.removeEventListener(t,n,s)}else if(function(e){return e&&"function"==typeof e.on&&"function"==typeof e.off}(e)){const i=e;e.on(t,n),o=()=>i.off(t,n)}else if(function(e){return e&&"function"==typeof e.addListener&&"function"==typeof e.removeListener}(e)){const i=e;e.addListener(t,n),o=()=>i.removeListener(t,n)}else{if(!e||!e.length)throw new TypeError("Invalid event target");for(let o=0,r=e.length;o<r;o++)N_(e[o],t,n,i,s)}i.add(o)}function H_(e,t){return n=>n.lift(new j_(e,t))}n("B4Jq");class j_{constructor(e,t){this.compare=e,this.keySelector=t}call(e,t){return t.subscribe(new U_(e,this.compare,this.keySelector))}}class U_ extends g{constructor(e,t,n){super(e),this.keySelector=n,this.hasKey=!1,"function"==typeof t&&(this.compare=t)}compare(e,t){return e===t}_next(e){let t;try{const{keySelector:n}=this;t=n?n(e):e}catch(i){return this.destination.error(i)}let n=!1;if(this.hasKey)try{const{compare:e}=this;n=e(this.key,t)}catch(i){return this.destination.error(i)}else this.hasKey=!0;n||(this.key=t,this.destination.next(e))}}const W_=I_.e,G_=["*"],$_=e=>"function"==typeof __zone_symbol__requestAnimationFrame?__zone_symbol__requestAnimationFrame(e):"function"==typeof requestAnimationFrame?requestAnimationFrame(e):setTimeout(e);let q_=(()=>{class e{constructor(e,t){this.injector=e,this.el=t,this.onChange=()=>{},this.onTouched=()=>{}}writeValue(e){this.el.nativeElement.value=this.lastValue=null==e?"":e,Y_(this.el)}handleChangeEvent(e,t){e===this.el.nativeElement&&(t!==this.lastValue&&(this.lastValue=t,this.onChange(t)),Y_(this.el))}_handleBlurEvent(e){e===this.el.nativeElement&&(this.onTouched(),Y_(this.el))}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this.el.nativeElement.disabled=e}ngOnDestroy(){this.statusChanges&&this.statusChanges.unsubscribe()}ngAfterViewInit(){let e;try{e=this.injector.get(sm)}catch(n){}if(!e)return;e.statusChanges&&(this.statusChanges=e.statusChanges.subscribe(()=>Y_(this.el)));const t=e.control;t&&["markAsTouched","markAllAsTouched","markAsUntouched","markAsDirty","markAsPristine"].forEach(e=>{if(t[e]){const n=t[e].bind(t);t[e]=(...e)=>{n(...e),Y_(this.el)}}})}}return e.\u0275fac=function(e){!function(){throw new Error("invalid")}()},e.\u0275dir=Ke({type:e,hostBindings:function(e,t){1&e&&Xr("ionBlur",function(e){return t._handleBlurEvent(e.target)})}}),e})();const Y_=e=>{$_(()=>{const t=e.nativeElement,n=Z_(t);Q_(t,n);const i=t.closest("ion-item");i&&Q_(i,n)})},Z_=e=>{const t=e.classList,n=[];for(let i=0;i<t.length;i++){const e=t.item(i);null!==e&&X_(e,"ng-")&&n.push("ion-"+e.substr(3))}return n},Q_=(e,t)=>{const n=e.classList;["ion-valid","ion-invalid","ion-touched","ion-untouched","ion-dirty","ion-pristine"].forEach(e=>n.remove(e)),t.forEach(e=>n.add(e))},X_=(e,t)=>e.substr(0,t.length)===t;var K_;let J_=(()=>{let e=K_=class extends q_{constructor(e,t){super(e,t)}writeValue(e){this.el.nativeElement.checked=this.lastValue=null!=e&&e,Y_(this.el)}_handleIonChange(e){this.handleChangeEvent(e,e.checked)}};return e.\u0275fac=function(t){return new(t||e)(zr(mr),zr(rl))},e.\u0275dir=Ke({type:e,selectors:[["ion-checkbox"],["ion-toggle"]],hostBindings:function(e,t){1&e&&Xr("ionChange",function(e){return t._handleIonChange(e.target)})},features:[Ja([{provide:Pf,useExisting:K_,multi:!0}]),vr]}),e})();var ex;let tx=(()=>{let e=ex=class extends q_{constructor(e,t){super(e,t)}_handleIonChange(e){this.handleChangeEvent(e,e.value)}registerOnChange(e){super.registerOnChange(t=>{e(""===t?null:parseFloat(t))})}};return e.\u0275fac=function(t){return new(t||e)(zr(mr),zr(rl))},e.\u0275dir=Ke({type:e,selectors:[["ion-input","type","number"]],hostBindings:function(e,t){1&e&&Xr("ionChange",function(e){return t._handleIonChange(e.target)})},features:[Ja([{provide:Pf,useExisting:ex,multi:!0}]),vr]}),e})();var nx;let ix=(()=>{let e=nx=class extends q_{constructor(e,t){super(e,t)}_handleIonSelect(e){this.handleChangeEvent(e,e.checked)}};return e.\u0275fac=function(t){return new(t||e)(zr(mr),zr(rl))},e.\u0275dir=Ke({type:e,selectors:[["ion-radio"]],hostBindings:function(e,t){1&e&&Xr("ionSelect",function(e){return t._handleIonSelect(e.target)})},features:[Ja([{provide:Pf,useExisting:nx,multi:!0}]),vr]}),e})();var sx;let ox=(()=>{let e=sx=class extends q_{constructor(e,t){super(e,t)}_handleChangeEvent(e){this.handleChangeEvent(e,e.value)}};return e.\u0275fac=function(t){return new(t||e)(zr(mr),zr(rl))},e.\u0275dir=Ke({type:e,selectors:[["ion-range"],["ion-select"],["ion-radio-group"],["ion-segment"],["ion-datetime"]],hostBindings:function(e,t){1&e&&Xr("ionChange",function(e){return t._handleChangeEvent(e.target)})},features:[Ja([{provide:Pf,useExisting:sx,multi:!0}]),vr]}),e})();var rx;let ax=(()=>{let e=rx=class extends q_{constructor(e,t){super(e,t)}_handleInputEvent(e){this.handleChangeEvent(e,e.value)}};return e.\u0275fac=function(t){return new(t||e)(zr(mr),zr(rl))},e.\u0275dir=Ke({type:e,selectors:[["ion-input",3,"type","number"],["ion-textarea"],["ion-searchbar"]],hostBindings:function(e,t){1&e&&Xr("ionChange",function(e){return t._handleInputEvent(e.target)})},features:[Ja([{provide:Pf,useExisting:rx,multi:!0}]),vr]}),e})(),lx=(()=>{let e=class{constructor(e,t){this.doc=e,this.backButton=new A,this.keyboardDidShow=new A,this.keyboardDidHide=new A,this.pause=new A,this.resume=new A,this.resize=new A,t.run(()=>{let n;this.win=e.defaultView,this.backButton.subscribeWithPriority=function(e,n){return this.subscribe(i=>i.register(e,e=>t.run(()=>n(e))))},dx(this.pause,e,"pause"),dx(this.resume,e,"resume"),dx(this.backButton,e,"ionBackButton"),dx(this.resize,this.win,"resize"),dx(this.keyboardDidShow,this.win,"ionKeyboardDidShow"),dx(this.keyboardDidHide,this.win,"ionKeyboardDidHide"),this._readyPromise=new Promise(e=>{n=e}),this.win&&this.win.cordova?e.addEventListener("deviceready",()=>{n("cordova")},{once:!0}):n("dom")})}is(e){return Object(I_.a)(this.win,e)}platforms(){return Object(I_.d)(this.win)}ready(){return this._readyPromise}get isRTL(){return"rtl"===this.doc.dir}getQueryParam(e){return cx(this.win.location.href,e)}isLandscape(){return!this.isPortrait()}isPortrait(){return this.win.matchMedia&&this.win.matchMedia("(orientation: portrait)").matches}testUserAgent(e){const t=this.win.navigator;return!!(t&&t.userAgent&&t.userAgent.indexOf(e)>=0)}url(){return this.win.location.href}width(){return this.win.innerWidth}height(){return this.win.innerHeight}};return e.\u0275fac=function(t){return new(t||e)(gi(Hd),gi(ad))},e.\u0275prov=pe({token:e,factory:function(t){return e.\u0275fac(t)},providedIn:"root"}),e.ngInjectableDef=pe({factory:function(){return new e(gi(Hd),gi(ad))},token:e,providedIn:"root"}),e=D_([O_(0,vi(Hd))],e),e})();const cx=(e,t)=>{t=t.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");const n=new RegExp("[\\?&]"+t+"=([^&#]*)").exec(e);return n?decodeURIComponent(n[1].replace(/\+/g," ")):null},dx=(e,t,n)=>{t&&t.addEventListener(n,t=>{e.next(null!=t?t.detail:void 0)})};let ux=(()=>{let e=class{constructor(e,t,n,i){this.location=t,this.serializer=n,this.router=i,this.direction=px,this.animated=gx,this.guessDirection="forward",this.lastNavId=-1,i&&i.events.subscribe(e=>{if(e instanceof Bv){const t=e.restoredState?e.restoredState.navigationId:e.id;this.guessDirection=t<this.lastNavId?"back":"forward",this.guessAnimation=e.restoredState?void 0:this.guessDirection,this.lastNavId="forward"===this.guessDirection?e.id:t}}),e.backButton.subscribeWithPriority(0,e=>{this.pop(),e()})}navigateForward(e,t={}){return this.setDirection("forward",t.animated,t.animationDirection,t.animation),this.navigate(e,t)}navigateBack(e,t={}){return this.setDirection("back",t.animated,t.animationDirection,t.animation),this.navigate(e,t)}navigateRoot(e,t={}){return this.setDirection("root",t.animated,t.animationDirection,t.animation),this.navigate(e,t)}back(e={animated:!0,animationDirection:"back"}){return this.setDirection("back",e.animated,e.animationDirection,e.animation),this.location.back()}pop(){return T_(this,void 0,void 0,function*(){let e=this.topOutlet;for(;e&&!(yield e.pop());)e=e.parentOutlet})}setDirection(e,t,n,i){this.direction=e,this.animated=hx(e,t,n),this.animationBuilder=i}setTopOutlet(e){this.topOutlet=e}consumeTransition(){let e,t="root";const n=this.animationBuilder;return"auto"===this.direction?(t=this.guessDirection,e=this.guessAnimation):(e=this.animated,t=this.direction),this.direction=px,this.animated=gx,this.animationBuilder=void 0,{direction:t,animation:e,animationBuilder:n}}navigate(e,t){if(Array.isArray(e))return this.router.navigate(e,t);{const n=this.serializer.parse(e.toString());return void 0!==t.queryParams&&(n.queryParams=Object.assign({},t.queryParams)),void 0!==t.fragment&&(n.fragment=t.fragment),this.router.navigateByUrl(n,t)}}};return e.\u0275fac=function(t){return new(t||e)(gi(lx),gi(nu),gi(by),gi(r_,8))},e.\u0275prov=pe({token:e,factory:function(t){return e.\u0275fac(t)},providedIn:"root"}),e.ngInjectableDef=pe({factory:function(){return new e(gi(lx),gi(nu),gi(by),gi(r_,8))},token:e,providedIn:"root"}),e=D_([O_(3,yi())],e),e})();const hx=(e,t,n)=>{if(!1!==t)return void 0!==n?n:"forward"===e||"back"===e?e:"root"===e&&!0===t?"forward":void 0},px="auto",gx=void 0,fx=(e,t)=>{const n=e.prototype;t.forEach(e=>{Object.defineProperty(n,e,{get(){return this.el[e]},set(t){this.z.runOutsideAngular(()=>this.el[e]=t)}})})},mx=(e,t)=>{const n=e.prototype;t.forEach(e=>{n[e]=function(){const t=arguments;return this.z.runOutsideAngular(()=>this.el[e].apply(this.el,t))}})},bx=(e,t,n)=>{n.forEach(n=>e[n]=V_(t,n))};function vx(e){return function(t){return e.inputs&&fx(t,e.inputs),e.methods&&mx(t,e.methods),t}}let yx=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e.\u0275fac=function(t){return new(t||e)(zr(Tl),zr(rl),zr(ad))},e.\u0275cmp=$e({type:e,selectors:[["ion-app"]],ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e})(),wx=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e.\u0275fac=function(t){return new(t||e)(zr(Tl),zr(rl),zr(ad))},e.\u0275cmp=$e({type:e,selectors:[["ion-avatar"]],ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e})(),_x=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e.\u0275fac=function(t){return new(t||e)(zr(Tl),zr(rl),zr(ad))},e.\u0275cmp=$e({type:e,selectors:[["ion-back-button"]],inputs:{color:"color",defaultHref:"defaultHref",disabled:"disabled",icon:"icon",mode:"mode",routerAnimation:"routerAnimation",text:"text",type:"type"},ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=D_([vx({inputs:["color","defaultHref","disabled","icon","mode","routerAnimation","text","type"]})],e),e})(),xx=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e.\u0275fac=function(t){return new(t||e)(zr(Tl),zr(rl),zr(ad))},e.\u0275cmp=$e({type:e,selectors:[["ion-badge"]],inputs:{color:"color",mode:"mode"},ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=D_([vx({inputs:["color","mode"]})],e),e})(),Ax=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement,bx(this,this.el,["ionFocus","ionBlur"])}};return e.\u0275fac=function(t){return new(t||e)(zr(Tl),zr(rl),zr(ad))},e.\u0275cmp=$e({type:e,selectors:[["ion-button"]],inputs:{buttonType:"buttonType",color:"color",disabled:"disabled",download:"download",expand:"expand",fill:"fill",href:"href",mode:"mode",rel:"rel",routerAnimation:"routerAnimation",routerDirection:"routerDirection",shape:"shape",size:"size",strong:"strong",target:"target",type:"type"},ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=D_([vx({inputs:["buttonType","color","disabled","download","expand","fill","href","mode","rel","routerAnimation","routerDirection","shape","size","strong","target","type"]})],e),e})(),Cx=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e.\u0275fac=function(t){return new(t||e)(zr(Tl),zr(rl),zr(ad))},e.\u0275cmp=$e({type:e,selectors:[["ion-buttons"]],inputs:{collapse:"collapse"},ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=D_([vx({inputs:["collapse"]})],e),e})(),Sx=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e.\u0275fac=function(t){return new(t||e)(zr(Tl),zr(rl),zr(ad))},e.\u0275cmp=$e({type:e,selectors:[["ion-card"]],inputs:{button:"button",color:"color",disabled:"disabled",download:"download",href:"href",mode:"mode",rel:"rel",routerAnimation:"routerAnimation",routerDirection:"routerDirection",target:"target",type:"type"},ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=D_([vx({inputs:["button","color","disabled","download","href","mode","rel","routerAnimation","routerDirection","target","type"]})],e),e})(),kx=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e.\u0275fac=function(t){return new(t||e)(zr(Tl),zr(rl),zr(ad))},e.\u0275cmp=$e({type:e,selectors:[["ion-card-content"]],inputs:{mode:"mode"},ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=D_([vx({inputs:["mode"]})],e),e})(),Px=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e.\u0275fac=function(t){return new(t||e)(zr(Tl),zr(rl),zr(ad))},e.\u0275cmp=$e({type:e,selectors:[["ion-card-header"]],inputs:{color:"color",mode:"mode",translucent:"translucent"},ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=D_([vx({inputs:["color","mode","translucent"]})],e),e})(),Ex=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e.\u0275fac=function(t){return new(t||e)(zr(Tl),zr(rl),zr(ad))},e.\u0275cmp=$e({type:e,selectors:[["ion-card-subtitle"]],inputs:{color:"color",mode:"mode"},ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=D_([vx({inputs:["color","mode"]})],e),e})(),Dx=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement,bx(this,this.el,["ionChange","ionFocus","ionBlur"])}};return e.\u0275fac=function(t){return new(t||e)(zr(Tl),zr(rl),zr(ad))},e.\u0275cmp=$e({type:e,selectors:[["ion-checkbox"]],inputs:{checked:"checked",color:"color",disabled:"disabled",indeterminate:"indeterminate",mode:"mode",name:"name",value:"value"},ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=D_([vx({inputs:["checked","color","disabled","indeterminate","mode","name","value"]})],e),e})(),Ox=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e.\u0275fac=function(t){return new(t||e)(zr(Tl),zr(rl),zr(ad))},e.\u0275cmp=$e({type:e,selectors:[["ion-chip"]],inputs:{color:"color",disabled:"disabled",mode:"mode",outline:"outline"},ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=D_([vx({inputs:["color","disabled","mode","outline"]})],e),e})(),Mx=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e.\u0275fac=function(t){return new(t||e)(zr(Tl),zr(rl),zr(ad))},e.\u0275cmp=$e({type:e,selectors:[["ion-col"]],inputs:{offset:"offset",offsetLg:"offsetLg",offsetMd:"offsetMd",offsetSm:"offsetSm",offsetXl:"offsetXl",offsetXs:"offsetXs",pull:"pull",pullLg:"pullLg",pullMd:"pullMd",pullSm:"pullSm",pullXl:"pullXl",pullXs:"pullXs",push:"push",pushLg:"pushLg",pushMd:"pushMd",pushSm:"pushSm",pushXl:"pushXl",pushXs:"pushXs",size:"size",sizeLg:"sizeLg",sizeMd:"sizeMd",sizeSm:"sizeSm",sizeXl:"sizeXl",sizeXs:"sizeXs"},ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=D_([vx({inputs:["offset","offsetLg","offsetMd","offsetSm","offsetXl","offsetXs","pull","pullLg","pullMd","pullSm","pullXl","pullXs","push","pushLg","pushMd","pushSm","pushXl","pushXs","size","sizeLg","sizeMd","sizeSm","sizeXl","sizeXs"]})],e),e})(),Tx=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement,bx(this,this.el,["ionScrollStart","ionScroll","ionScrollEnd"])}};return e.\u0275fac=function(t){return new(t||e)(zr(Tl),zr(rl),zr(ad))},e.\u0275cmp=$e({type:e,selectors:[["ion-content"]],inputs:{color:"color",forceOverscroll:"forceOverscroll",fullscreen:"fullscreen",scrollEvents:"scrollEvents",scrollX:"scrollX",scrollY:"scrollY"},ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=D_([vx({inputs:["color","forceOverscroll","fullscreen","scrollEvents","scrollX","scrollY"],methods:["getScrollElement","scrollToTop","scrollToBottom","scrollByPoint","scrollToPoint"]})],e),e})(),Ix=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement,bx(this,this.el,["ionCancel","ionChange","ionFocus","ionBlur"])}};return e.\u0275fac=function(t){return new(t||e)(zr(Tl),zr(rl),zr(ad))},e.\u0275cmp=$e({type:e,selectors:[["ion-datetime"]],inputs:{cancelText:"cancelText",dayNames:"dayNames",dayShortNames:"dayShortNames",dayValues:"dayValues",disabled:"disabled",displayFormat:"displayFormat",displayTimezone:"displayTimezone",doneText:"doneText",hourValues:"hourValues",max:"max",min:"min",minuteValues:"minuteValues",mode:"mode",monthNames:"monthNames",monthShortNames:"monthShortNames",monthValues:"monthValues",name:"name",pickerFormat:"pickerFormat",pickerOptions:"pickerOptions",placeholder:"placeholder",readonly:"readonly",value:"value",yearValues:"yearValues"},ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=D_([vx({inputs:["cancelText","dayNames","dayShortNames","dayValues","disabled","displayFormat","displayTimezone","doneText","hourValues","max","min","minuteValues","mode","monthNames","monthShortNames","monthValues","name","pickerFormat","pickerOptions","placeholder","readonly","value","yearValues"],methods:["open"]})],e),e})(),Rx=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e.\u0275fac=function(t){return new(t||e)(zr(Tl),zr(rl),zr(ad))},e.\u0275cmp=$e({type:e,selectors:[["ion-fab"]],inputs:{activated:"activated",edge:"edge",horizontal:"horizontal",vertical:"vertical"},ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=D_([vx({inputs:["activated","edge","horizontal","vertical"],methods:["close"]})],e),e})(),Lx=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement,bx(this,this.el,["ionFocus","ionBlur"])}};return e.\u0275fac=function(t){return new(t||e)(zr(Tl),zr(rl),zr(ad))},e.\u0275cmp=$e({type:e,selectors:[["ion-fab-button"]],inputs:{activated:"activated",closeIcon:"closeIcon",color:"color",disabled:"disabled",download:"download",href:"href",mode:"mode",rel:"rel",routerAnimation:"routerAnimation",routerDirection:"routerDirection",show:"show",size:"size",target:"target",translucent:"translucent",type:"type"},ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=D_([vx({inputs:["activated","closeIcon","color","disabled","download","href","mode","rel","routerAnimation","routerDirection","show","size","target","translucent","type"]})],e),e})(),Fx=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e.\u0275fac=function(t){return new(t||e)(zr(Tl),zr(rl),zr(ad))},e.\u0275cmp=$e({type:e,selectors:[["ion-fab-list"]],inputs:{activated:"activated",side:"side"},ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=D_([vx({inputs:["activated","side"]})],e),e})(),Bx=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e.\u0275fac=function(t){return new(t||e)(zr(Tl),zr(rl),zr(ad))},e.\u0275cmp=$e({type:e,selectors:[["ion-footer"]],inputs:{mode:"mode",translucent:"translucent"},ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=D_([vx({inputs:["mode","translucent"]})],e),e})(),zx=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e.\u0275fac=function(t){return new(t||e)(zr(Tl),zr(rl),zr(ad))},e.\u0275cmp=$e({type:e,selectors:[["ion-grid"]],inputs:{fixed:"fixed"},ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=D_([vx({inputs:["fixed"]})],e),e})(),Vx=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e.\u0275fac=function(t){return new(t||e)(zr(Tl),zr(rl),zr(ad))},e.\u0275cmp=$e({type:e,selectors:[["ion-header"]],inputs:{collapse:"collapse",mode:"mode",translucent:"translucent"},ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=D_([vx({inputs:["collapse","mode","translucent"]})],e),e})(),Nx=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e.\u0275fac=function(t){return new(t||e)(zr(Tl),zr(rl),zr(ad))},e.\u0275cmp=$e({type:e,selectors:[["ion-icon"]],inputs:{ariaHidden:"ariaHidden",ariaLabel:"ariaLabel",color:"color",flipRtl:"flipRtl",icon:"icon",ios:"ios",lazy:"lazy",md:"md",mode:"mode",name:"name",sanitize:"sanitize",size:"size",src:"src"},ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=D_([vx({inputs:["ariaHidden","ariaLabel","color","flipRtl","icon","ios","lazy","md","mode","name","sanitize","size","src"]})],e),e})(),Hx=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement,bx(this,this.el,["ionImgWillLoad","ionImgDidLoad","ionError"])}};return e.\u0275fac=function(t){return new(t||e)(zr(Tl),zr(rl),zr(ad))},e.\u0275cmp=$e({type:e,selectors:[["ion-img"]],inputs:{alt:"alt",src:"src"},ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=D_([vx({inputs:["alt","src"]})],e),e})(),jx=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement,bx(this,this.el,["ionInfinite"])}};return e.\u0275fac=function(t){return new(t||e)(zr(Tl),zr(rl),zr(ad))},e.\u0275cmp=$e({type:e,selectors:[["ion-infinite-scroll"]],inputs:{disabled:"disabled",position:"position",threshold:"threshold"},ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=D_([vx({inputs:["disabled","position","threshold"],methods:["complete"]})],e),e})(),Ux=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e.\u0275fac=function(t){return new(t||e)(zr(Tl),zr(rl),zr(ad))},e.\u0275cmp=$e({type:e,selectors:[["ion-infinite-scroll-content"]],inputs:{loadingSpinner:"loadingSpinner",loadingText:"loadingText"},ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=D_([vx({inputs:["loadingSpinner","loadingText"]})],e),e})(),Wx=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement,bx(this,this.el,["ionInput","ionChange","ionBlur","ionFocus"])}};return e.\u0275fac=function(t){return new(t||e)(zr(Tl),zr(rl),zr(ad))},e.\u0275cmp=$e({type:e,selectors:[["ion-input"]],inputs:{accept:"accept",autocapitalize:"autocapitalize",autocomplete:"autocomplete",autocorrect:"autocorrect",autofocus:"autofocus",clearInput:"clearInput",clearOnEdit:"clearOnEdit",color:"color",debounce:"debounce",disabled:"disabled",enterkeyhint:"enterkeyhint",inputmode:"inputmode",max:"max",maxlength:"maxlength",min:"min",minlength:"minlength",mode:"mode",multiple:"multiple",name:"name",pattern:"pattern",placeholder:"placeholder",readonly:"readonly",required:"required",size:"size",spellcheck:"spellcheck",step:"step",type:"type",value:"value"},ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=D_([vx({inputs:["accept","autocapitalize","autocomplete","autocorrect","autofocus","clearInput","clearOnEdit","color","debounce","disabled","enterkeyhint","inputmode","max","maxlength","min","minlength","mode","multiple","name","pattern","placeholder","readonly","required","size","spellcheck","step","type","value"],methods:["setFocus","getInputElement"]})],e),e})(),Gx=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e.\u0275fac=function(t){return new(t||e)(zr(Tl),zr(rl),zr(ad))},e.\u0275cmp=$e({type:e,selectors:[["ion-item"]],inputs:{button:"button",color:"color",detail:"detail",detailIcon:"detailIcon",disabled:"disabled",download:"download",href:"href",lines:"lines",mode:"mode",rel:"rel",routerAnimation:"routerAnimation",routerDirection:"routerDirection",target:"target",type:"type"},ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=D_([vx({inputs:["button","color","detail","detailIcon","disabled","download","href","lines","mode","rel","routerAnimation","routerDirection","target","type"]})],e),e})(),$x=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e.\u0275fac=function(t){return new(t||e)(zr(Tl),zr(rl),zr(ad))},e.\u0275cmp=$e({type:e,selectors:[["ion-item-option"]],inputs:{color:"color",disabled:"disabled",download:"download",expandable:"expandable",href:"href",mode:"mode",rel:"rel",target:"target",type:"type"},ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=D_([vx({inputs:["color","disabled","download","expandable","href","mode","rel","target","type"]})],e),e})(),qx=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement,bx(this,this.el,["ionSwipe"])}};return e.\u0275fac=function(t){return new(t||e)(zr(Tl),zr(rl),zr(ad))},e.\u0275cmp=$e({type:e,selectors:[["ion-item-options"]],inputs:{side:"side"},ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=D_([vx({inputs:["side"]})],e),e})(),Yx=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement,bx(this,this.el,["ionDrag"])}};return e.\u0275fac=function(t){return new(t||e)(zr(Tl),zr(rl),zr(ad))},e.\u0275cmp=$e({type:e,selectors:[["ion-item-sliding"]],inputs:{disabled:"disabled"},ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=D_([vx({inputs:["disabled"],methods:["getOpenAmount","getSlidingRatio","open","close","closeOpened"]})],e),e})(),Zx=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e.\u0275fac=function(t){return new(t||e)(zr(Tl),zr(rl),zr(ad))},e.\u0275cmp=$e({type:e,selectors:[["ion-label"]],inputs:{color:"color",mode:"mode",position:"position"},ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=D_([vx({inputs:["color","mode","position"]})],e),e})(),Qx=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e.\u0275fac=function(t){return new(t||e)(zr(Tl),zr(rl),zr(ad))},e.\u0275cmp=$e({type:e,selectors:[["ion-list"]],inputs:{inset:"inset",lines:"lines",mode:"mode"},ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=D_([vx({inputs:["inset","lines","mode"],methods:["closeSlidingItems"]})],e),e})(),Xx=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e.\u0275fac=function(t){return new(t||e)(zr(Tl),zr(rl),zr(ad))},e.\u0275cmp=$e({type:e,selectors:[["ion-list-header"]],inputs:{color:"color",lines:"lines",mode:"mode"},ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=D_([vx({inputs:["color","lines","mode"]})],e),e})(),Kx=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement,bx(this,this.el,["ionWillOpen","ionWillClose","ionDidOpen","ionDidClose"])}};return e.\u0275fac=function(t){return new(t||e)(zr(Tl),zr(rl),zr(ad))},e.\u0275cmp=$e({type:e,selectors:[["ion-menu"]],inputs:{contentId:"contentId",disabled:"disabled",maxEdgeStart:"maxEdgeStart",menuId:"menuId",side:"side",swipeGesture:"swipeGesture",type:"type"},ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=D_([vx({inputs:["contentId","disabled","maxEdgeStart","menuId","side","swipeGesture","type"],methods:["isOpen","isActive","open","close","toggle","setOpen"]})],e),e})(),Jx=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e.\u0275fac=function(t){return new(t||e)(zr(Tl),zr(rl),zr(ad))},e.\u0275cmp=$e({type:e,selectors:[["ion-menu-button"]],inputs:{autoHide:"autoHide",color:"color",disabled:"disabled",menu:"menu",mode:"mode",type:"type"},ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=D_([vx({inputs:["autoHide","color","disabled","menu","mode","type"]})],e),e})(),eA=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e.\u0275fac=function(t){return new(t||e)(zr(Tl),zr(rl),zr(ad))},e.\u0275cmp=$e({type:e,selectors:[["ion-menu-toggle"]],inputs:{autoHide:"autoHide",menu:"menu"},ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=D_([vx({inputs:["autoHide","menu"]})],e),e})(),tA=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e.\u0275fac=function(t){return new(t||e)(zr(Tl),zr(rl),zr(ad))},e.\u0275cmp=$e({type:e,selectors:[["ion-note"]],inputs:{color:"color",mode:"mode"},ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=D_([vx({inputs:["color","mode"]})],e),e})(),nA=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement,bx(this,this.el,["ionFocus","ionBlur"])}};return e.\u0275fac=function(t){return new(t||e)(zr(Tl),zr(rl),zr(ad))},e.\u0275cmp=$e({type:e,selectors:[["ion-radio"]],inputs:{color:"color",disabled:"disabled",mode:"mode",name:"name",value:"value"},ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=D_([vx({inputs:["color","disabled","mode","name","value"]})],e),e})(),iA=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement,bx(this,this.el,["ionChange"])}};return e.\u0275fac=function(t){return new(t||e)(zr(Tl),zr(rl),zr(ad))},e.\u0275cmp=$e({type:e,selectors:[["ion-radio-group"]],inputs:{allowEmptySelection:"allowEmptySelection",name:"name",value:"value"},ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=D_([vx({inputs:["allowEmptySelection","name","value"]})],e),e})(),sA=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement,bx(this,this.el,["ionChange","ionFocus","ionBlur"])}};return e.\u0275fac=function(t){return new(t||e)(zr(Tl),zr(rl),zr(ad))},e.\u0275cmp=$e({type:e,selectors:[["ion-range"]],inputs:{color:"color",debounce:"debounce",disabled:"disabled",dualKnobs:"dualKnobs",max:"max",min:"min",mode:"mode",name:"name",pin:"pin",snaps:"snaps",step:"step",ticks:"ticks",value:"value"},ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=D_([vx({inputs:["color","debounce","disabled","dualKnobs","max","min","mode","name","pin","snaps","step","ticks","value"]})],e),e})(),oA=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e.\u0275fac=function(t){return new(t||e)(zr(Tl),zr(rl),zr(ad))},e.\u0275cmp=$e({type:e,selectors:[["ion-reorder"]],ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e})(),rA=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement,bx(this,this.el,["ionItemReorder"])}};return e.\u0275fac=function(t){return new(t||e)(zr(Tl),zr(rl),zr(ad))},e.\u0275cmp=$e({type:e,selectors:[["ion-reorder-group"]],inputs:{disabled:"disabled"},ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=D_([vx({inputs:["disabled"],methods:["complete"]})],e),e})(),aA=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e.\u0275fac=function(t){return new(t||e)(zr(Tl),zr(rl),zr(ad))},e.\u0275cmp=$e({type:e,selectors:[["ion-row"]],ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e})(),lA=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement,bx(this,this.el,["ionInput","ionChange","ionCancel","ionClear","ionBlur","ionFocus"])}};return e.\u0275fac=function(t){return new(t||e)(zr(Tl),zr(rl),zr(ad))},e.\u0275cmp=$e({type:e,selectors:[["ion-searchbar"]],inputs:{animated:"animated",autocomplete:"autocomplete",autocorrect:"autocorrect",cancelButtonIcon:"cancelButtonIcon",cancelButtonText:"cancelButtonText",clearIcon:"clearIcon",color:"color",debounce:"debounce",disabled:"disabled",enterkeyhint:"enterkeyhint",inputmode:"inputmode",mode:"mode",placeholder:"placeholder",searchIcon:"searchIcon",showCancelButton:"showCancelButton",showClearButton:"showClearButton",spellcheck:"spellcheck",type:"type",value:"value"},ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=D_([vx({inputs:["animated","autocomplete","autocorrect","cancelButtonIcon","cancelButtonText","clearIcon","color","debounce","disabled","enterkeyhint","inputmode","mode","placeholder","searchIcon","showCancelButton","showClearButton","spellcheck","type","value"],methods:["setFocus","getInputElement"]})],e),e})(),cA=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement,bx(this,this.el,["ionChange"])}};return e.\u0275fac=function(t){return new(t||e)(zr(Tl),zr(rl),zr(ad))},e.\u0275cmp=$e({type:e,selectors:[["ion-segment"]],inputs:{color:"color",disabled:"disabled",mode:"mode",scrollable:"scrollable",swipeGesture:"swipeGesture",value:"value"},ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=D_([vx({inputs:["color","disabled","mode","scrollable","swipeGesture","value"]})],e),e})(),dA=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e.\u0275fac=function(t){return new(t||e)(zr(Tl),zr(rl),zr(ad))},e.\u0275cmp=$e({type:e,selectors:[["ion-segment-button"]],inputs:{disabled:"disabled",layout:"layout",mode:"mode",type:"type",value:"value"},ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=D_([vx({inputs:["disabled","layout","mode","type","value"]})],e),e})(),uA=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement,bx(this,this.el,["ionChange","ionCancel","ionFocus","ionBlur"])}};return e.\u0275fac=function(t){return new(t||e)(zr(Tl),zr(rl),zr(ad))},e.\u0275cmp=$e({type:e,selectors:[["ion-select"]],inputs:{cancelText:"cancelText",compareWith:"compareWith",disabled:"disabled",interface:"interface",interfaceOptions:"interfaceOptions",mode:"mode",multiple:"multiple",name:"name",okText:"okText",placeholder:"placeholder",selectedText:"selectedText",value:"value"},ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=D_([vx({inputs:["cancelText","compareWith","disabled","interface","interfaceOptions","mode","multiple","name","okText","placeholder","selectedText","value"],methods:["open"]})],e),e})(),hA=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e.\u0275fac=function(t){return new(t||e)(zr(Tl),zr(rl),zr(ad))},e.\u0275cmp=$e({type:e,selectors:[["ion-select-option"]],inputs:{disabled:"disabled",value:"value"},ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=D_([vx({inputs:["disabled","value"]})],e),e})(),pA=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e.\u0275fac=function(t){return new(t||e)(zr(Tl),zr(rl),zr(ad))},e.\u0275cmp=$e({type:e,selectors:[["ion-slide"]],ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e})(),gA=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement,bx(this,this.el,["ionSlidesDidLoad","ionSlideTap","ionSlideDoubleTap","ionSlideWillChange","ionSlideDidChange","ionSlideNextStart","ionSlidePrevStart","ionSlideNextEnd","ionSlidePrevEnd","ionSlideTransitionStart","ionSlideTransitionEnd","ionSlideDrag","ionSlideReachStart","ionSlideReachEnd","ionSlideTouchStart","ionSlideTouchEnd"])}};return e.\u0275fac=function(t){return new(t||e)(zr(Tl),zr(rl),zr(ad))},e.\u0275cmp=$e({type:e,selectors:[["ion-slides"]],inputs:{mode:"mode",options:"options",pager:"pager",scrollbar:"scrollbar"},ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=D_([vx({inputs:["mode","options","pager","scrollbar"],methods:["update","updateAutoHeight","slideTo","slideNext","slidePrev","getActiveIndex","getPreviousIndex","length","isEnd","isBeginning","startAutoplay","stopAutoplay","lockSwipeToNext","lockSwipeToPrev","lockSwipes","getSwiper"]})],e),e})(),fA=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement,bx(this,this.el,["ionSplitPaneVisible"])}};return e.\u0275fac=function(t){return new(t||e)(zr(Tl),zr(rl),zr(ad))},e.\u0275cmp=$e({type:e,selectors:[["ion-split-pane"]],inputs:{contentId:"contentId",disabled:"disabled",when:"when"},ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=D_([vx({inputs:["contentId","disabled","when"]})],e),e})(),mA=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e.\u0275fac=function(t){return new(t||e)(zr(Tl),zr(rl),zr(ad))},e.\u0275cmp=$e({type:e,selectors:[["ion-title"]],inputs:{color:"color",size:"size"},ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=D_([vx({inputs:["color","size"]})],e),e})(),bA=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement,bx(this,this.el,["ionChange","ionFocus","ionBlur"])}};return e.\u0275fac=function(t){return new(t||e)(zr(Tl),zr(rl),zr(ad))},e.\u0275cmp=$e({type:e,selectors:[["ion-toggle"]],inputs:{checked:"checked",color:"color",disabled:"disabled",mode:"mode",name:"name",value:"value"},ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=D_([vx({inputs:["checked","color","disabled","mode","name","value"]})],e),e})(),vA=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e.\u0275fac=function(t){return new(t||e)(zr(Tl),zr(rl),zr(ad))},e.\u0275cmp=$e({type:e,selectors:[["ion-toolbar"]],inputs:{color:"color",mode:"mode"},ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=D_([vx({inputs:["color","mode"]})],e),e})(),yA=(()=>{let e=class{get(e,t){const n=_A();return n?n.get(e,t):null}getBoolean(e,t){const n=_A();return!!n&&n.getBoolean(e,t)}getNumber(e,t){const n=_A();return n?n.getNumber(e,t):0}set(e,t){console.warn("[DEPRECATION][Config]: The Config.set() method is deprecated and will be removed in Ionic Framework 6.0. Please see https://ionicframework.com/docs/angular/config for alternatives.");const n=_A();n&&n.set(e,t)}};return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=pe({token:e,factory:function(t){return e.\u0275fac(t)},providedIn:"root"}),e.ngInjectableDef=pe({factory:function(){return new e},token:e,providedIn:"root"}),e})();const wA=new Xn("USERCONFIG"),_A=()=>{if("undefined"!=typeof window){const e=window.Ionic;if(e&&e.config)return e.config}return null};class xA{constructor(e={}){this.data=e}get(e){return this.data[e]}}let AA=(()=>{let e=class{constructor(e,t){this.zone=e,this.appRef=t}create(e,t,n){return new CA(e,t,n,this.appRef,this.zone)}};return e.\u0275fac=function(t){return new(t||e)(gi(ad),gi(Ed))},e.\u0275prov=pe({token:e,factory:function(t){return e.\u0275fac(t)}}),e})();class CA{constructor(e,t,n,i,s){this.resolver=e,this.injector=t,this.location=n,this.appRef=i,this.zone=s,this.elRefMap=new WeakMap,this.elEventsMap=new WeakMap}attachViewToDom(e,t,n,i){return this.zone.run(()=>new Promise(s=>{s(SA(this.zone,this.resolver,this.injector,this.location,this.appRef,this.elRefMap,this.elEventsMap,e,t,n,i))}))}removeViewFromDom(e,t){return this.zone.run(()=>new Promise(e=>{const n=this.elRefMap.get(t);if(n){n.destroy(),this.elRefMap.delete(t);const e=this.elEventsMap.get(t);e&&(e(),this.elEventsMap.delete(t))}e()}))}}const SA=(e,t,n,i,s,o,r,a,l,c,d)=>{const u=t.resolveComponentFactory(l),h=mr.create({providers:DA(c),parent:n}),p=i?i.createComponent(u,i.length,h):u.create(h),g=p.instance,f=p.location.nativeElement;if(c&&Object.assign(g,c),d)for(const b of d)f.classList.add(b);const m=PA(e,g,f);return a.appendChild(f),i||s.attachView(p.hostView),p.changeDetectorRef.reattach(),o.set(f,p),r.set(f,m),f},kA=[L_.a,L_.b,L_.c,L_.d,L_.e],PA=(e,t,n)=>e.run(()=>{const e=kA.filter(e=>"function"==typeof t[e]).map(e=>{const i=n=>t[e](n.detail);return n.addEventListener(e,i),()=>n.removeEventListener(e,i)});return()=>e.forEach(e=>e())}),EA=new Xn("NavParamsToken"),DA=e=>[{provide:EA,useValue:e},{provide:xA,useFactory:OA,deps:[EA]}],OA=e=>new xA(e),MA=(e,t)=>((e=e.filter(e=>e.stackId!==t.stackId)).push(t),e),TA=(e,t)=>{const n=e.createUrlTree(["."],{relativeTo:t});return e.serializeUrl(n)},IA=(e,t)=>{if(!e)return;const n=RA(t);for(let i=0;i<n.length;i++){if(i>=e.length)return n[i];if(n[i]!==e[i])return}},RA=e=>e.split("/").map(e=>e.trim()).filter(e=>""!==e),LA=e=>{e&&(e.ref.destroy(),e.unlistenEvents())};class FA{constructor(e,t,n,i,s,o){this.containerEl=t,this.router=n,this.navCtrl=i,this.zone=s,this.location=o,this.views=[],this.skipTransition=!1,this.nextId=0,this.tabsPrefix=void 0!==e?RA(e):void 0}createView(e,t){const n=TA(this.router,t),i=e&&e.location&&e.location.nativeElement,s=PA(this.zone,e.instance,i);return{id:this.nextId++,stackId:IA(this.tabsPrefix,n),unlistenEvents:s,element:i,ref:e,url:n}}getExistingView(e){const t=TA(this.router,e),n=this.views.find(e=>e.url===t);return n&&n.ref.changeDetectorRef.reattach(),n}setActive(e){const t=this.navCtrl.consumeTransition();let{direction:n,animation:i,animationBuilder:s}=t;const o=this.activeView,r=((e,t)=>!t||e.stackId!==t.stackId)(e,o);r&&(n="back",i=void 0);const a=this.views.slice();let l;const c=this.router;c.getCurrentNavigation?l=c.getCurrentNavigation():c.navigations&&c.navigations.value&&(l=c.navigations.value),l&&l.extras&&l.extras.replaceUrl&&this.views.length>0&&this.views.splice(-1,1);const d=this.views.includes(e),u=this.insertView(e,n);d||e.ref.changeDetectorRef.detectChanges();const h=e.animationBuilder;return void 0!==s||"back"!==n||r||void 0===h||(s=h),o&&(o.animationBuilder=s),this.zone.runOutsideAngular(()=>this.wait(()=>(o&&o.ref.changeDetectorRef.detach(),e.ref.changeDetectorRef.reattach(),this.transition(e,o,i,this.canGoBack(1),!1,s).then(()=>BA(e,u,a,this.location)).then(()=>({enteringView:e,direction:n,animation:i,tabSwitch:r})))))}canGoBack(e,t=this.getActiveStackId()){return this.getStack(t).length>e}pop(e,t=this.getActiveStackId()){return this.zone.run(()=>{const n=this.getStack(t);if(n.length<=e)return Promise.resolve(!1);const i=n[n.length-e-1];let s=i.url;const o=i.savedData;if(o){const e=o.get("primary");e&&e.route&&e.route._routerState&&e.route._routerState.snapshot&&e.route._routerState.snapshot.url&&(s=e.route._routerState.snapshot.url)}const{animationBuilder:r}=this.navCtrl.consumeTransition();return this.navCtrl.navigateBack(s,Object.assign({},i.savedExtras,{animation:r})).then(()=>!0)})}startBackTransition(){const e=this.activeView;if(e){const t=this.getStack(e.stackId),n=t[t.length-2],i=n.animationBuilder;return this.wait(()=>this.transition(n,e,"back",this.canGoBack(2),!0,i))}return Promise.resolve()}endBackTransition(e){e?(this.skipTransition=!0,this.pop(1)):this.activeView&&zA(this.activeView,this.views,this.views,this.location)}getLastUrl(e){const t=this.getStack(e);return t.length>0?t[t.length-1]:void 0}getRootUrl(e){const t=this.getStack(e);return t.length>0?t[0]:void 0}getActiveStackId(){return this.activeView?this.activeView.stackId:void 0}destroy(){this.containerEl=void 0,this.views.forEach(LA),this.activeView=void 0,this.views=[]}getStack(e){return this.views.filter(t=>t.stackId===e)}insertView(e,t){return this.activeView=e,this.views=((e,t,n)=>"root"===n?MA(e,t):"forward"===n?((e,t)=>(e.indexOf(t)>=0?e=e.filter(e=>e.stackId!==t.stackId||e.id<=t.id):e.push(t),e))(e,t):((e,t)=>e.indexOf(t)>=0?e.filter(e=>e.stackId!==t.stackId||e.id<=t.id):MA(e,t))(e,t))(this.views,e,t),this.views.slice()}transition(e,t,n,i,s,o){if(this.skipTransition)return this.skipTransition=!1,Promise.resolve(!1);if(t===e)return Promise.resolve(!1);const r=e?e.element:void 0,a=t?t.element:void 0,l=this.containerEl;return r&&r!==a&&(r.classList.add("ion-page"),r.classList.add("ion-page-invisible"),r.parentElement!==l&&l.appendChild(r),l.commit)?l.commit(r,a,{deepWait:!0,duration:void 0===n?0:void 0,direction:n,showGoBack:i,progressAnimation:s,animationBuilder:o}):Promise.resolve(!1)}wait(e){return T_(this,void 0,void 0,function*(){return void 0!==this.runningTask&&(yield this.runningTask,this.runningTask=void 0),this.runningTask=e()})}}const BA=(e,t,n,i)=>"function"==typeof requestAnimationFrame?new Promise(s=>{requestAnimationFrame(()=>{zA(e,t,n,i),s()})}):Promise.resolve(),zA=(e,t,n,i)=>{n.filter(e=>!t.includes(e)).forEach(LA),t.forEach(t=>{const n=i.path().split("?")[0].split("#")[0];if(t!==e&&t.url!==n){const e=t.element;e.setAttribute("aria-hidden","true"),e.classList.add("ion-page-hidden"),t.ref.changeDetectorRef.detach()}})};let VA=(()=>{let e=class{constructor(e,t,n,i,s,o,r,a,l,c,d,u,h){this.parentContexts=e,this.location=t,this.resolver=n,this.config=o,this.navCtrl=r,this.parentOutlet=h,this.activated=null,this.activatedView=null,this._activatedRoute=null,this.proxyMap=new WeakMap,this.currentActivatedRoute$=new Gb(null),this.stackEvents=new yc,this.activateEvents=new yc,this.deactivateEvents=new yc,this.nativeEl=l.nativeElement,this.name=i||"primary",this.tabsPrefix="true"===s?TA(c,u):void 0,this.stackCtrl=new FA(this.tabsPrefix,this.nativeEl,c,r,d,a),e.onChildOutletCreated(this.name,this)}set animation(e){this.nativeEl.animation=e}set animated(e){this.nativeEl.animated=e}set swipeGesture(e){this._swipeGesture=e,this.nativeEl.swipeHandler=e?{canStart:()=>this.stackCtrl.canGoBack(1),onStart:()=>this.stackCtrl.startBackTransition(),onEnd:e=>this.stackCtrl.endBackTransition(e)}:void 0}ngOnDestroy(){this.stackCtrl.destroy()}getContext(){return this.parentContexts.getContext(this.name)}ngOnInit(){if(!this.activated){const e=this.getContext();e&&e.route&&this.activateWith(e.route,e.resolver||null)}new Promise(e=>Object(R_.c)(this.nativeEl,e)).then(()=>{void 0===this._swipeGesture&&(this.swipeGesture=this.config.getBoolean("swipeBackEnabled","ios"===this.nativeEl.mode))})}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){throw new Error("incompatible reuse strategy")}attach(e,t){throw new Error("incompatible reuse strategy")}deactivate(){if(this.activated){if(this.activatedView){this.activatedView.savedData=new Map(this.getContext().children.contexts),this.activatedView.savedExtras={};const e=this.getContext();if(e.route){const t=e.route.snapshot;this.activatedView.savedExtras.queryParams=t.queryParams,this.activatedView.savedExtras.fragment=t.fragment}}const e=this.component;this.activatedView=null,this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,t){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");let n;this._activatedRoute=e;let i=this.stackCtrl.getExistingView(e);if(i){n=this.activated=i.ref;const t=i.savedData;t&&(this.getContext().children.contexts=t),this.updateActivatedRouteProxy(n.instance,e)}else{const s=(t=t||this.resolver).resolveComponentFactory(e._futureSnapshot.routeConfig.component),o=this.parentContexts.getOrCreateContext(this.name).children,r=new Gb(null),a=this.createActivatedRouteProxy(r,e),l=new NA(a,o,this.location.injector);n=this.activated=this.location.createComponent(s,this.location.length,l),r.next(n.instance),i=this.stackCtrl.createView(this.activated,e),this.proxyMap.set(n.instance,a),this.currentActivatedRoute$.next({component:n.instance,activatedRoute:e})}this.activatedView=i,this.stackCtrl.setActive(i).then(e=>{this.navCtrl.setTopOutlet(this),this.activateEvents.emit(n.instance),this.stackEvents.emit(e)})}canGoBack(e=1,t){return this.stackCtrl.canGoBack(e,t)}pop(e=1,t){return this.stackCtrl.pop(e,t)}getLastUrl(e){const t=this.stackCtrl.getLastUrl(e);return t?t.url:void 0}getLastRouteView(e){return this.stackCtrl.getLastUrl(e)}getRootView(e){return this.stackCtrl.getRootUrl(e)}getActiveStackId(){return this.stackCtrl.getActiveStackId()}createActivatedRouteProxy(e,t){const n=new Ny;return n._futureSnapshot=t._futureSnapshot,n._routerState=t._routerState,n.snapshot=t.snapshot,n.outlet=t.outlet,n.component=t.component,n._paramMap=this.proxyObservable(e,"paramMap"),n._queryParamMap=this.proxyObservable(e,"queryParamMap"),n.url=this.proxyObservable(e,"url"),n.params=this.proxyObservable(e,"params"),n.queryParams=this.proxyObservable(e,"queryParams"),n.fragment=this.proxyObservable(e,"fragment"),n.data=this.proxyObservable(e,"data"),n}proxyObservable(e,t){return e.pipe(db(e=>!!e),sv(e=>this.currentActivatedRoute$.pipe(db(t=>null!==t&&t.component===e),sv(e=>e&&e.activatedRoute[t]),H_())))}updateActivatedRouteProxy(e,t){const n=this.proxyMap.get(e);if(!n)throw new Error("Could not find activated route proxy for view");n._futureSnapshot=t._futureSnapshot,n._routerState=t._routerState,n.snapshot=t.snapshot,n.outlet=t.outlet,n.component=t.component,this.currentActivatedRoute$.next({component:e,activatedRoute:t})}};return e.\u0275fac=function(t){return new(t||e)(zr(t_),zr(Gl),zr(nl),Yn("name"),Yn("tabs"),zr(yA),zr(ux),zr(nu),zr(rl),zr(r_),zr(ad),zr(Ny),zr(e,12))},e.\u0275dir=Ke({type:e,selectors:[["ion-router-outlet"]],inputs:{animated:"animated",animation:"animation",swipeGesture:"swipeGesture"},outputs:{stackEvents:"stackEvents",activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),e=D_([O_(3,Qn("name")),O_(4,yi()),O_(4,Qn("tabs")),O_(12,wi()),O_(12,yi())],e),e})();class NA{constructor(e,t,n){this.route=e,this.childContexts=t,this.parent=n}get(e,t){return e===Ny?this.route:e===t_?this.childContexts:this.parent.get(e,t)}}let HA=(()=>{let e=class{constructor(e,t,n){this.routerOutlet=e,this.navCtrl=t,this.config=n}onClick(e){const t=this.defaultHref||this.config.get("backButtonDefaultHref");this.routerOutlet&&this.routerOutlet.canGoBack()?(this.navCtrl.setDirection("back",void 0,void 0,this.routerAnimation),this.routerOutlet.pop(),e.preventDefault()):null!=t&&(this.navCtrl.navigateBack(t,{animation:this.routerAnimation}),e.preventDefault())}};return e.\u0275fac=function(t){return new(t||e)(zr(VA,8),zr(ux),zr(yA))},e.\u0275dir=Ke({type:e,selectors:[["ion-back-button"]],hostBindings:function(e,t){1&e&&Xr("click",function(e){return t.onClick(e)})},inputs:{defaultHref:"defaultHref",routerAnimation:"routerAnimation"}}),e=D_([O_(0,yi())],e),e})(),jA=(()=>{let e=class{constructor(e,t,n,i,s){this.locationStrategy=e,this.navCtrl=t,this.elementRef=n,this.router=i,this.routerLink=s,this.routerDirection="forward"}ngOnInit(){this.updateTargetUrlAndHref()}ngOnChanges(){this.updateTargetUrlAndHref()}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}updateTargetUrlAndHref(){if(this.routerLink){const e=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.routerLink.urlTree));this.elementRef.nativeElement.href=e}}onClick(e){this.navCtrl.setDirection(this.routerDirection,void 0,void 0,this.routerAnimation),e.preventDefault()}};return e.\u0275fac=function(t){return new(t||e)(zr(Xd),zr(ux),zr(rl),zr(r_),zr(a_,8))},e.\u0275dir=Ke({type:e,selectors:[["","routerLink",""]],hostBindings:function(e,t){1&e&&Xr("click",function(e){return t.onClick(e)})},inputs:{routerDirection:"routerDirection",routerAnimation:"routerAnimation"},features:[dt]}),e=D_([O_(4,yi())],e),e})(),UA=(()=>{let e=class{constructor(e){this.templateRef=e}};return e.\u0275fac=function(t){return new(t||e)(zr(zl))},e.\u0275dir=Ke({type:e,selectors:[["","virtualFooter",""]]}),e})(),WA=(()=>{let e=class{constructor(e){this.templateRef=e}};return e.\u0275fac=function(t){return new(t||e)(zr(zl))},e.\u0275dir=Ke({type:e,selectors:[["","virtualHeader",""]]}),e})(),GA=(()=>{let e=class{constructor(e,t){this.templateRef=e,this.viewContainer=t}};return e.\u0275fac=function(t){return new(t||e)(zr(zl),zr(Gl))},e.\u0275dir=Ke({type:e,selectors:[["","virtualItem",""]]}),e})(),$A=(()=>{let e=class{constructor(e,t,n){this.z=e,this.iterableDiffers=t,this.refMap=new WeakMap,this.el=n.nativeElement,this.el.nodeRender=this.nodeRender.bind(this)}ngOnChanges(e){if(this.trackBy&&"items"in e){const n=e.items.currentValue;if(void 0===this.differ&&null!=n)try{this.differ=this.iterableDiffers.find(n).create(this.trackBy)}catch(t){throw new Error(`Cannot find a differ supporting object '${n}'. VirtualScroll only supports binding to Iterables such as Arrays.`)}}}ngDoCheck(){null!==(void 0!==this.differ&&this.items?this.differ.diff(this.items):null)&&this.checkRange(0)}nodeRender(e,t,n){return this.z.run(()=>{let i;if(e){i=this.refMap.get(e);const n=i.context;n.$implicit=t.value,n.index=t.index}else i=this.itmTmp.viewContainer.createEmbeddedView(this.getComponent(t.type),{$implicit:t.value,index:n},n),e=qA(i),this.refMap.set(e,i);return i.detectChanges(),e})}getComponent(e){switch(e){case"item":return this.itmTmp.templateRef;case"header":return this.hdrTmp.templateRef;case"footer":return this.ftrTmp.templateRef}throw new Error("template for virtual item was not provided")}};return e.\u0275fac=function(t){return new(t||e)(zr(ad),zr(Sl),zr(rl))},e.\u0275cmp=$e({type:e,selectors:[["ion-virtual-scroll"]],contentQueries:function(e,t,n){if(1&e&&(Ic(n,GA,1),Ic(n,WA,1),Ic(n,UA,1)),2&e){let e;Mc(e=Rc())&&(t.itmTmp=e.first),Mc(e=Rc())&&(t.hdrTmp=e.first),Mc(e=Rc())&&(t.ftrTmp=e.first)}},inputs:{approxItemHeight:"approxItemHeight",approxHeaderHeight:"approxHeaderHeight",approxFooterHeight:"approxFooterHeight",headerFn:"headerFn",footerFn:"footerFn",items:"items",itemHeight:"itemHeight",headerHeight:"headerHeight",footerHeight:"footerHeight",trackBy:"trackBy"},features:[dt],ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=D_([vx({inputs:["approxItemHeight","approxHeaderHeight","approxFooterHeight","headerFn","footerFn","items","itemHeight","headerHeight","footerHeight"],methods:["checkEnd","checkRange","positionForItem"]})],e),e})();const qA=e=>{const t=e.rootNodes;for(let n=0;n<t.length;n++)if(1===t[n].nodeType)return t[n];throw new Error("virtual element was not created")};class YA{constructor(e){this.ctrl=e}create(e){return this.ctrl.create(e||{})}dismiss(e,t,n){return this.ctrl.dismiss(e,t,n)}getTop(){return this.ctrl.getTop()}}let ZA=(()=>{let e=class extends YA{constructor(){super(B_.c)}};return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=pe({token:e,factory:function(t){return e.\u0275fac(t)},providedIn:"root"}),e.ngInjectableDef=pe({factory:function(){return new e},token:e,providedIn:"root"}),e})(),QA=(()=>{let e=class extends YA{constructor(){super(B_.b)}};return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=pe({token:e,factory:function(t){return e.\u0275fac(t)},providedIn:"root"}),e.ngInjectableDef=pe({factory:function(){return new e},token:e,providedIn:"root"}),e})(),XA=(()=>{let e=class extends YA{constructor(){super(B_.k)}};return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=pe({token:e,factory:function(t){return e.\u0275fac(t)},providedIn:"root"}),e.ngInjectableDef=pe({factory:function(){return new e},token:e,providedIn:"root"}),e})(),KA=(()=>{let e=class{open(e){return F_.a.open(e)}close(e){return F_.a.close(e)}toggle(e){return F_.a.toggle(e)}enable(e,t){return F_.a.enable(e,t)}swipeGesture(e,t){return F_.a.swipeGesture(e,t)}isOpen(e){return F_.a.isOpen(e)}isEnabled(e){return F_.a.isEnabled(e)}get(e){return F_.a.get(e)}getOpen(){return F_.a.getOpen()}getMenus(){return F_.a.getMenus()}};return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=pe({token:e,factory:function(t){return e.\u0275fac(t)},providedIn:"root"}),e.ngInjectableDef=pe({factory:function(){return new e},token:e,providedIn:"root"}),e})(),JA=(()=>{let e=class extends YA{constructor(e,t,n){super(B_.l),this.angularDelegate=e,this.resolver=t,this.injector=n}create(e){return super.create(Object.assign({},e,{delegate:this.angularDelegate.create(this.resolver,this.injector)}))}};return e.\u0275fac=function(t){return new(t||e)(gi(AA),gi(nl),gi(mr))},e.\u0275prov=pe({token:e,factory:function(t){return e.\u0275fac(t)}}),e})(),eC=(()=>{let e=class extends YA{constructor(e,t,n){super(B_.d),this.angularDelegate=e,this.resolver=t,this.injector=n}create(e){return super.create(Object.assign({},e,{delegate:this.angularDelegate.create(this.resolver,this.injector)}))}};return e.\u0275fac=function(t){return new(t||e)(gi(AA),gi(nl),gi(mr))},e.\u0275prov=pe({token:e,factory:function(t){return e.\u0275fac(t)}}),e})(),tC=(()=>{let e=class extends YA{constructor(){super(B_.o)}};return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=pe({token:e,factory:function(t){return e.\u0275fac(t)},providedIn:"root"}),e.ngInjectableDef=pe({factory:function(){return new e},token:e,providedIn:"root"}),e})();class nC{shouldDetach(e){return!1}shouldAttach(e){return!1}store(e,t){}retrieve(e){return null}shouldReuseRoute(e,t){if(e.routeConfig!==t.routeConfig)return!1;const n=e.params,i=t.params,s=Object.keys(n),o=Object.keys(i);if(s.length!==o.length)return!1;for(const r of s)if(i[r]!==n[r])return!1;return!0}}let iC=!1;const sC=(e,t,i)=>()=>{const s=t.defaultView;if(s&&"undefined"!=typeof window){iC&&console.warn("Ionic Angular was already initialized. Make sure IonicModule.forRoot() is just called once."),iC=!0,(s.Ionic=s.Ionic||{}).config=Object.assign({},e,{_zoneGate:e=>i.run(e)});const o="__zone_symbol__addEventListener"in t.body?"__zone_symbol__addEventListener":"addEventListener";return function(){var e=[];if("undefined"!=typeof window){var t=window;t.customElements&&(!t.Element||t.Element.prototype.closest&&t.Element.prototype.matches&&t.Element.prototype.remove&&t.Element.prototype.getRootNode)||e.push(n.e(7).then(n.t.bind(null,"QdDj",7))),"function"==typeof Object.assign&&Object.entries&&Array.prototype.find&&Array.prototype.includes&&String.prototype.startsWith&&String.prototype.endsWith&&(!t.NodeList||t.NodeList.prototype.forEach)&&t.fetch&&function(){try{var e=new URL("b","http://a");return e.pathname="c%20d","http://a/c%20d"===e.href&&e.searchParams}catch(t){return!1}}()&&"undefined"!=typeof WeakMap||e.push(n.e(5).then(n.t.bind(null,"t6o4",7)))}return Promise.all(e)}().then(()=>{return e={exclude:["ion-tabs","ion-tab"],syncQueue:!0,raf:$_,jmp:e=>i.runOutsideAngular(e),ael(e,t,n,i){e[o](t,n,i)},rel(e,t,n,i){e.removeEventListener(t,n,i)}},"undefined"==typeof window?Promise.resolve():(z_.b&&z_.b.supports&&z_.b.supports("color","var(--c)")?Object(z_.d)():n.e(6).then(n.t.bind(null,"9qUq",7)).then(()=>(z_.n.$cssShim$=z_.q.__cssshim)?z_.n.$cssShim$.i():0)).then(()=>(W_(),Object(z_.e)(JSON.parse('[["ion-select_3",[[2,"ion-select-popover",{"header":[1],"subHeader":[1,"sub-header"],"message":[1],"options":[16]},[[0,"ionChange","onSelect"]]],[33,"ion-select",{"disabled":[4],"cancelText":[1,"cancel-text"],"okText":[1,"ok-text"],"placeholder":[1],"name":[1],"selectedText":[1,"selected-text"],"multiple":[4],"interface":[1],"interfaceOptions":[8,"interface-options"],"compareWith":[1,"compare-with"],"value":[1032],"isExpanded":[32],"open":[64]}],[1,"ion-select-option",{"disabled":[4],"value":[8]}]]],["ion-menu_3",[[33,"ion-menu-button",{"color":[1],"disabled":[4],"menu":[1],"autoHide":[4,"auto-hide"],"type":[1],"visible":[32]},[[16,"ionMenuChange","visibilityChanged"],[16,"ionSplitPaneVisible","visibilityChanged"]]],[33,"ion-menu",{"contentId":[513,"content-id"],"menuId":[513,"menu-id"],"type":[1025],"disabled":[1028],"side":[513],"swipeGesture":[4,"swipe-gesture"],"maxEdgeStart":[2,"max-edge-start"],"isPaneVisible":[32],"isEndSide":[32],"isOpen":[64],"isActive":[64],"open":[64],"close":[64],"toggle":[64],"setOpen":[64]},[[16,"ionSplitPaneVisible","onSplitPaneChanged"],[2,"click","onBackdropClick"]]],[1,"ion-menu-toggle",{"menu":[1],"autoHide":[4,"auto-hide"],"visible":[32]},[[16,"ionMenuChange","visibilityChanged"],[16,"ionSplitPaneVisible","visibilityChanged"]]]]],["ion-action-sheet",[[34,"ion-action-sheet",{"overlayIndex":[2,"overlay-index"],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"buttons":[16],"cssClass":[1,"css-class"],"backdropDismiss":[4,"backdrop-dismiss"],"header":[1],"subHeader":[1,"sub-header"],"translucent":[4],"animated":[4],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]}]]],["ion-fab_3",[[33,"ion-fab-button",{"color":[1],"activated":[4],"disabled":[4],"download":[1],"href":[1],"rel":[1],"routerDirection":[1,"router-direction"],"routerAnimation":[16],"target":[1],"show":[4],"translucent":[4],"type":[1],"size":[1],"closeIcon":[1,"close-icon"]}],[1,"ion-fab",{"horizontal":[1],"vertical":[1],"edge":[4],"activated":[1028],"close":[64]}],[1,"ion-fab-list",{"activated":[4],"side":[1]}]]],["ion-refresher_2",[[0,"ion-refresher-content",{"pullingIcon":[1025,"pulling-icon"],"pullingText":[1,"pulling-text"],"refreshingSpinner":[1025,"refreshing-spinner"],"refreshingText":[1,"refreshing-text"]}],[32,"ion-refresher",{"pullMin":[2,"pull-min"],"pullMax":[2,"pull-max"],"closeDuration":[1,"close-duration"],"snapbackDuration":[1,"snapback-duration"],"pullFactor":[2,"pull-factor"],"disabled":[4],"nativeRefresher":[32],"state":[32],"complete":[64],"cancel":[64],"getProgress":[64]}]]],["ion-alert",[[34,"ion-alert",{"overlayIndex":[2,"overlay-index"],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"cssClass":[1,"css-class"],"header":[1],"subHeader":[1,"sub-header"],"message":[1],"buttons":[16],"inputs":[1040],"backdropDismiss":[4,"backdrop-dismiss"],"translucent":[4],"animated":[4],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]},[[4,"keydown","onKeydown"]]]]],["ion-back-button",[[33,"ion-back-button",{"color":[1],"defaultHref":[1025,"default-href"],"disabled":[516],"icon":[1],"text":[1],"type":[1],"routerAnimation":[16]}]]],["ion-loading",[[34,"ion-loading",{"overlayIndex":[2,"overlay-index"],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"message":[1],"cssClass":[1,"css-class"],"duration":[2],"backdropDismiss":[4,"backdrop-dismiss"],"showBackdrop":[4,"show-backdrop"],"spinner":[1025],"translucent":[4],"animated":[4],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]}]]],["ion-toast",[[33,"ion-toast",{"overlayIndex":[2,"overlay-index"],"color":[1],"enterAnimation":[16],"leaveAnimation":[16],"cssClass":[1,"css-class"],"duration":[2],"header":[1],"message":[1],"keyboardClose":[4,"keyboard-close"],"position":[1],"buttons":[16],"translucent":[4],"animated":[4],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]}]]],["ion-card_5",[[33,"ion-card",{"color":[1],"button":[4],"type":[1],"disabled":[4],"download":[1],"href":[1],"rel":[1],"routerDirection":[1,"router-direction"],"routerAnimation":[16],"target":[1]}],[32,"ion-card-content"],[33,"ion-card-header",{"color":[1],"translucent":[4]}],[33,"ion-card-subtitle",{"color":[1]}],[33,"ion-card-title",{"color":[1]}]]],["ion-item-option_3",[[33,"ion-item-option",{"color":[1],"disabled":[4],"download":[1],"expandable":[4],"href":[1],"rel":[1],"target":[1],"type":[1]}],[32,"ion-item-options",{"side":[1],"fireSwipeEvent":[64]}],[0,"ion-item-sliding",{"disabled":[4],"state":[32],"getOpenAmount":[64],"getSlidingRatio":[64],"open":[64],"close":[64],"closeOpened":[64]}]]],["ion-infinite-scroll_2",[[32,"ion-infinite-scroll-content",{"loadingSpinner":[1025,"loading-spinner"],"loadingText":[1,"loading-text"]}],[0,"ion-infinite-scroll",{"threshold":[1],"disabled":[4],"position":[1],"isLoading":[32],"complete":[64]}]]],["ion-reorder_2",[[33,"ion-reorder",null,[[2,"click","onClick"]]],[0,"ion-reorder-group",{"disabled":[4],"state":[32],"complete":[64]}]]],["ion-segment_2",[[33,"ion-segment-button",{"disabled":[4],"layout":[1],"type":[1],"value":[1],"checked":[32]}],[33,"ion-segment",{"color":[1],"disabled":[4],"scrollable":[4],"swipeGesture":[4,"swipe-gesture"],"value":[1025],"activated":[32]}]]],["ion-tab-bar_2",[[33,"ion-tab-button",{"disabled":[4],"download":[1],"href":[1],"rel":[1],"layout":[1025],"selected":[1028],"tab":[1],"target":[1]},[[8,"ionTabBarChanged","onTabBarChanged"]]],[33,"ion-tab-bar",{"color":[1],"selectedTab":[1,"selected-tab"],"translucent":[4],"keyboardVisible":[32]}]]],["ion-chip",[[33,"ion-chip",{"color":[1],"outline":[4],"disabled":[4]}]]],["ion-modal",[[34,"ion-modal",{"overlayIndex":[2,"overlay-index"],"delegate":[16],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"component":[1],"componentProps":[16],"cssClass":[1,"css-class"],"backdropDismiss":[4,"backdrop-dismiss"],"showBackdrop":[4,"show-backdrop"],"animated":[4],"swipeToClose":[4,"swipe-to-close"],"presentingElement":[16],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]}]]],["ion-popover",[[34,"ion-popover",{"delegate":[16],"overlayIndex":[2,"overlay-index"],"enterAnimation":[16],"leaveAnimation":[16],"component":[1],"componentProps":[16],"keyboardClose":[4,"keyboard-close"],"cssClass":[1,"css-class"],"backdropDismiss":[4,"backdrop-dismiss"],"event":[8],"showBackdrop":[4,"show-backdrop"],"translucent":[4],"animated":[4],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]}]]],["ion-searchbar",[[34,"ion-searchbar",{"color":[1],"animated":[4],"autocomplete":[1],"autocorrect":[1],"cancelButtonIcon":[1,"cancel-button-icon"],"cancelButtonText":[1,"cancel-button-text"],"clearIcon":[1,"clear-icon"],"debounce":[2],"disabled":[4],"inputmode":[1],"enterkeyhint":[1],"placeholder":[1],"searchIcon":[1,"search-icon"],"showCancelButton":[1,"show-cancel-button"],"showClearButton":[1,"show-clear-button"],"spellcheck":[4],"type":[1],"value":[1025],"focused":[32],"noAnimate":[32],"setFocus":[64],"getInputElement":[64]}]]],["ion-app_8",[[0,"ion-app"],[34,"ion-buttons",{"collapse":[4]}],[1,"ion-content",{"color":[1],"fullscreen":[4],"forceOverscroll":[1028,"force-overscroll"],"scrollX":[4,"scroll-x"],"scrollY":[4,"scroll-y"],"scrollEvents":[4,"scroll-events"],"getScrollElement":[64],"scrollToTop":[64],"scrollToBottom":[64],"scrollByPoint":[64],"scrollToPoint":[64]},[[8,"appload","onAppLoad"],[2,"click","onClick"]]],[36,"ion-footer",{"translucent":[4]}],[36,"ion-header",{"collapse":[1],"translucent":[4]}],[1,"ion-router-outlet",{"mode":[1025],"delegate":[16],"animated":[4],"animation":[16],"swipeHandler":[16],"commit":[64],"setRouteId":[64],"getRouteId":[64]}],[33,"ion-title",{"color":[1],"size":[1]}],[33,"ion-toolbar",{"color":[1]},[[0,"ionStyle","childrenStyle"]]]]],["ion-route_4",[[0,"ion-route",{"url":[1],"component":[1],"componentProps":[16],"beforeLeave":[16],"beforeEnter":[16]}],[0,"ion-route-redirect",{"from":[1],"to":[1]}],[0,"ion-router",{"root":[1],"useHash":[4,"use-hash"],"canTransition":[64],"push":[64],"back":[64],"printDebug":[64],"navChanged":[64]},[[8,"popstate","onPopState"],[4,"ionBackButton","onBackButton"]]],[1,"ion-router-link",{"color":[1],"href":[1],"rel":[1],"routerDirection":[1,"router-direction"],"routerAnimation":[16],"target":[1]}]]],["ion-avatar_3",[[33,"ion-avatar"],[33,"ion-badge",{"color":[1]}],[1,"ion-thumbnail"]]],["ion-col_3",[[1,"ion-col",{"offset":[1],"offsetXs":[1,"offset-xs"],"offsetSm":[1,"offset-sm"],"offsetMd":[1,"offset-md"],"offsetLg":[1,"offset-lg"],"offsetXl":[1,"offset-xl"],"pull":[1],"pullXs":[1,"pull-xs"],"pullSm":[1,"pull-sm"],"pullMd":[1,"pull-md"],"pullLg":[1,"pull-lg"],"pullXl":[1,"pull-xl"],"push":[1],"pushXs":[1,"push-xs"],"pushSm":[1,"push-sm"],"pushMd":[1,"push-md"],"pushLg":[1,"push-lg"],"pushXl":[1,"push-xl"],"size":[1],"sizeXs":[1,"size-xs"],"sizeSm":[1,"size-sm"],"sizeMd":[1,"size-md"],"sizeLg":[1,"size-lg"],"sizeXl":[1,"size-xl"]},[[9,"resize","onResize"]]],[1,"ion-grid",{"fixed":[4]}],[1,"ion-row"]]],["ion-nav_2",[[1,"ion-nav",{"delegate":[16],"swipeGesture":[1028,"swipe-gesture"],"animated":[4],"animation":[16],"rootParams":[16],"root":[1],"push":[64],"insert":[64],"insertPages":[64],"pop":[64],"popTo":[64],"popToRoot":[64],"removeIndex":[64],"setRoot":[64],"setPages":[64],"setRouteId":[64],"getRouteId":[64],"getActive":[64],"getByIndex":[64],"canGoBack":[64],"getPrevious":[64]}],[0,"ion-nav-link",{"component":[1],"componentProps":[16],"routerDirection":[1,"router-direction"],"routerAnimation":[16]}]]],["ion-slide_2",[[0,"ion-slide"],[36,"ion-slides",{"options":[8],"pager":[4],"scrollbar":[4],"update":[64],"updateAutoHeight":[64],"slideTo":[64],"slideNext":[64],"slidePrev":[64],"getActiveIndex":[64],"getPreviousIndex":[64],"length":[64],"isEnd":[64],"isBeginning":[64],"startAutoplay":[64],"stopAutoplay":[64],"lockSwipeToNext":[64],"lockSwipeToPrev":[64],"lockSwipes":[64],"getSwiper":[64]}]]],["ion-tab_2",[[1,"ion-tab",{"active":[1028],"delegate":[16],"tab":[1],"component":[1],"setActive":[64]}],[1,"ion-tabs",{"useRouter":[1028,"use-router"],"selectedTab":[32],"select":[64],"getTab":[64],"getSelected":[64],"setRouteId":[64],"getRouteId":[64]}]]],["ion-checkbox",[[33,"ion-checkbox",{"color":[1],"name":[1],"checked":[1028],"indeterminate":[1028],"disabled":[4],"value":[1]}]]],["ion-img",[[1,"ion-img",{"alt":[1],"src":[1],"loadSrc":[32],"loadError":[32]}]]],["ion-input",[[34,"ion-input",{"fireFocusEvents":[4,"fire-focus-events"],"color":[1],"accept":[1],"autocapitalize":[1],"autocomplete":[1],"autocorrect":[1],"autofocus":[4],"clearInput":[4,"clear-input"],"clearOnEdit":[4,"clear-on-edit"],"debounce":[2],"disabled":[4],"enterkeyhint":[1],"inputmode":[1],"max":[1],"maxlength":[2],"min":[1],"minlength":[2],"multiple":[4],"name":[1],"pattern":[1],"placeholder":[1],"readonly":[4],"required":[4],"spellcheck":[4],"step":[1],"size":[2],"type":[1],"value":[1032],"hasFocus":[32],"setFocus":[64],"setBlur":[64],"getInputElement":[64]}]]],["ion-progress-bar",[[33,"ion-progress-bar",{"type":[1],"reversed":[4],"value":[2],"buffer":[2],"color":[1]}]]],["ion-range",[[33,"ion-range",{"color":[1],"debounce":[2],"name":[1],"dualKnobs":[4,"dual-knobs"],"min":[2],"max":[2],"pin":[4],"snaps":[4],"step":[2],"ticks":[4],"disabled":[4],"value":[1026],"ratioA":[32],"ratioB":[32],"pressedKnob":[32]}]]],["ion-split-pane",[[33,"ion-split-pane",{"contentId":[513,"content-id"],"disabled":[4],"when":[8],"visible":[32]}]]],["ion-text",[[1,"ion-text",{"color":[1]}]]],["ion-textarea",[[34,"ion-textarea",{"fireFocusEvents":[4,"fire-focus-events"],"color":[1],"autocapitalize":[1],"autofocus":[4],"clearOnEdit":[1028,"clear-on-edit"],"debounce":[2],"disabled":[4],"inputmode":[1],"enterkeyhint":[1],"maxlength":[2],"minlength":[2],"name":[1],"placeholder":[1],"readonly":[4],"required":[4],"spellcheck":[4],"cols":[2],"rows":[2],"wrap":[1],"autoGrow":[4,"auto-grow"],"value":[1025],"hasFocus":[32],"setFocus":[64],"setBlur":[64],"getInputElement":[64]}]]],["ion-toggle",[[33,"ion-toggle",{"color":[1],"name":[1],"checked":[1028],"disabled":[4],"value":[1],"activated":[32]}]]],["ion-virtual-scroll",[[0,"ion-virtual-scroll",{"approxItemHeight":[2,"approx-item-height"],"approxHeaderHeight":[2,"approx-header-height"],"approxFooterHeight":[2,"approx-footer-height"],"headerFn":[16],"footerFn":[16],"items":[16],"itemHeight":[16],"headerHeight":[16],"footerHeight":[16],"renderItem":[16],"renderHeader":[16],"renderFooter":[16],"nodeRender":[16],"domRender":[16],"totalHeight":[32],"positionForItem":[64],"checkRange":[64],"checkEnd":[64]},[[9,"resize","onResize"]]]]],["ion-datetime_3",[[34,"ion-picker",{"overlayIndex":[2,"overlay-index"],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"buttons":[16],"columns":[16],"cssClass":[1,"css-class"],"duration":[2],"showBackdrop":[4,"show-backdrop"],"backdropDismiss":[4,"backdrop-dismiss"],"animated":[4],"presented":[32],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64],"getColumn":[64]}],[33,"ion-datetime",{"name":[1],"disabled":[4],"readonly":[4],"min":[1025],"max":[1025],"displayFormat":[1,"display-format"],"displayTimezone":[1,"display-timezone"],"pickerFormat":[1,"picker-format"],"cancelText":[1,"cancel-text"],"doneText":[1,"done-text"],"yearValues":[8,"year-values"],"monthValues":[8,"month-values"],"dayValues":[8,"day-values"],"hourValues":[8,"hour-values"],"minuteValues":[8,"minute-values"],"monthNames":[1,"month-names"],"monthShortNames":[1,"month-short-names"],"dayNames":[1,"day-names"],"dayShortNames":[1,"day-short-names"],"pickerOptions":[16],"placeholder":[1],"value":[1025],"isExpanded":[32],"open":[64]}],[32,"ion-picker-column",{"col":[16]}]]],["ion-radio_2",[[33,"ion-radio",{"color":[1],"name":[1],"disabled":[4],"value":[8],"checked":[32],"buttonTabindex":[32],"setFocus":[64],"setButtonTabindex":[64]}],[0,"ion-radio-group",{"allowEmptySelection":[4,"allow-empty-selection"],"name":[1],"value":[1032]},[[4,"keydown","onKeydown"]]]]],["ion-spinner",[[1,"ion-spinner",{"color":[1],"duration":[2],"name":[1],"paused":[4]}]]],["ion-backdrop",[[33,"ion-backdrop",{"visible":[4],"tappable":[4],"stopPropagation":[4,"stop-propagation"]},[[2,"click","onMouseDown"]]]]],["ion-ripple-effect",[[1,"ion-ripple-effect",{"type":[1],"addRipple":[64]}]]],["ion-button_2",[[33,"ion-button",{"color":[1],"buttonType":[1025,"button-type"],"disabled":[516],"expand":[513],"fill":[1537],"routerDirection":[1,"router-direction"],"routerAnimation":[16],"download":[1],"href":[1],"rel":[1],"shape":[513],"size":[513],"strong":[4],"target":[1],"type":[1]}],[1,"ion-icon",{"mode":[1025],"color":[1],"ariaLabel":[1537,"aria-label"],"ariaHidden":[513,"aria-hidden"],"ios":[1],"md":[1],"flipRtl":[4,"flip-rtl"],"name":[1],"src":[1],"icon":[8],"size":[1],"lazy":[4],"sanitize":[4],"svgContent":[32],"isVisible":[32]}]]],["ion-item_8",[[33,"ion-item-divider",{"color":[1],"sticky":[4]}],[32,"ion-item-group"],[33,"ion-note",{"color":[1]}],[1,"ion-skeleton-text",{"animated":[4]}],[49,"ion-item",{"color":[1],"button":[4],"detail":[4],"detailIcon":[1,"detail-icon"],"disabled":[4],"download":[1],"href":[1],"rel":[1],"lines":[1],"routerAnimation":[16],"routerDirection":[1,"router-direction"],"target":[1],"type":[1],"multipleInputs":[32]},[[0,"ionColor","labelColorChanged"],[0,"ionStyle","itemStyle"]]],[34,"ion-label",{"color":[1],"position":[1],"noAnimate":[32]}],[32,"ion-list",{"lines":[1],"inset":[4],"closeSlidingItems":[64]}],[33,"ion-list-header",{"color":[1],"lines":[1]}]]]]'),e)));var e})}};var oC;let rC=(()=>{let e=oC=class{static forRoot(e){return{ngModule:oC,providers:[{provide:wA,useValue:e},{provide:Nc,useFactory:sC,multi:!0,deps:[wA,Hd,ad]}]}}};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=fe({providers:[AA,JA,eC],imports:[[uh]]}),e})();var aC=n("Hfs6"),lC=n.n(aC);function cC(e){return!!e&&(e instanceof v||"function"==typeof e.lift&&"function"==typeof e.subscribe)}class dC extends u{constructor(e,t){super()}schedule(e,t=0){return this}}class uC extends dC{constructor(e,t){super(e,t),this.scheduler=e,this.work=t,this.pending=!1}schedule(e,t=0){if(this.closed)return this;this.state=e;const n=this.id,i=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(i,n,t)),this.pending=!0,this.delay=t,this.id=this.id||this.requestAsyncId(i,this.id,t),this}requestAsyncId(e,t,n=0){return setInterval(e.flush.bind(e,this),n)}recycleAsyncId(e,t,n=0){if(null!==n&&this.delay===n&&!1===this.pending)return t;clearInterval(t)}execute(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const n=this._execute(e,t);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(e,t){let n=!1,i=void 0;try{this.work(e)}catch(s){n=!0,i=!!s&&s||new Error(s)}if(n)return this.unsubscribe(),i}_unsubscribe(){const e=this.id,t=this.scheduler,n=t.actions,i=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==i&&n.splice(i,1),null!=e&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null}}class hC extends uC{constructor(e,t){super(e,t),this.scheduler=e,this.work=t}schedule(e,t=0){return t>0?super.schedule(e,t):(this.delay=t,this.state=e,this.scheduler.flush(this),this)}execute(e,t){return t>0||this.closed?super.execute(e,t):this._execute(e,t)}requestAsyncId(e,t,n=0){return null!==n&&n>0||null===n&&this.delay>0?super.requestAsyncId(e,t,n):e.flush(this)}}let pC=(()=>{class e{constructor(t,n=e.now){this.SchedulerAction=t,this.now=n}schedule(e,t=0,n){return new this.SchedulerAction(this,e).schedule(n,t)}}return e.now=()=>Date.now(),e})();class gC extends pC{constructor(e,t=pC.now){super(e,()=>gC.delegate&&gC.delegate!==this?gC.delegate.now():t()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(e,t=0,n){return gC.delegate&&gC.delegate!==this?gC.delegate.schedule(e,t,n):super.schedule(e,t,n)}flush(e){const{actions:t}=this;if(this.active)return void t.push(e);let n;this.active=!0;do{if(n=e.execute(e.state,e.delay))break}while(e=t.shift());if(this.active=!1,n){for(;e=t.shift();)e.unsubscribe();throw n}}}class fC extends gC{}const mC=new fC(hC);function bC(e,t){return new v(t?n=>t.schedule(vC,0,{error:e,subscriber:n}):t=>t.error(e))}function vC({error:e,subscriber:t}){t.error(e)}let yC=(()=>{class e{constructor(e,t,n){this.kind=e,this.value=t,this.error=n,this.hasValue="N"===e}observe(e){switch(this.kind){case"N":return e.next&&e.next(this.value);case"E":return e.error&&e.error(this.error);case"C":return e.complete&&e.complete()}}do(e,t,n){switch(this.kind){case"N":return e&&e(this.value);case"E":return t&&t(this.error);case"C":return n&&n()}}accept(e,t,n){return e&&"function"==typeof e.next?this.observe(e):this.do(e,t,n)}toObservable(){switch(this.kind){case"N":return lb(this.value);case"E":return bC(this.error);case"C":return nv()}throw new Error("unexpected notification kind value")}static createNext(t){return void 0!==t?new e("N",t):e.undefinedValueNotification}static createError(t){return new e("E",void 0,t)}static createComplete(){return e.completeNotification}}return e.completeNotification=new e("C"),e.undefinedValueNotification=new e("N",void 0),e})();class wC extends g{constructor(e,t,n=0){super(e),this.scheduler=t,this.delay=n}static dispatch(e){const{notification:t,destination:n}=e;t.observe(n),this.unsubscribe()}scheduleMessage(e){this.destination.add(this.scheduler.schedule(wC.dispatch,this.delay,new _C(e,this.destination)))}_next(e){this.scheduleMessage(yC.createNext(e))}_error(e){this.scheduleMessage(yC.createError(e)),this.unsubscribe()}_complete(){this.scheduleMessage(yC.createComplete()),this.unsubscribe()}}class _C{constructor(e,t){this.notification=e,this.destination=t}}class xC extends A{constructor(e=Number.POSITIVE_INFINITY,t=Number.POSITIVE_INFINITY,n){super(),this.scheduler=n,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=e<1?1:e,this._windowTime=t<1?1:t,t===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(e){if(!this.isStopped){const t=this._events;t.push(e),t.length>this._bufferSize&&t.shift()}super.next(e)}nextTimeWindow(e){this.isStopped||(this._events.push(new AC(this._getNow(),e)),this._trimBufferThenGetEvents()),super.next(e)}_subscribe(e){const t=this._infiniteTimeWindow,n=t?this._events:this._trimBufferThenGetEvents(),i=this.scheduler,s=n.length;let o;if(this.closed)throw new w;if(this.isStopped||this.hasError?o=u.EMPTY:(this.observers.push(e),o=new _(this,e)),i&&e.add(e=new wC(e,i)),t)for(let r=0;r<s&&!e.closed;r++)e.next(n[r]);else for(let r=0;r<s&&!e.closed;r++)e.next(n[r].value);return this.hasError?e.error(this.thrownError):this.isStopped&&e.complete(),o}_getNow(){return(this.scheduler||mC).now()}_trimBufferThenGetEvents(){const e=this._getNow(),t=this._bufferSize,n=this._windowTime,i=this._events,s=i.length;let o=0;for(;o<s&&!(e-i[o].time<n);)o++;return s>t&&(o=Math.max(o,s-t)),o>0&&i.splice(0,o),i}}class AC{constructor(e,t){this.time=e,this.value=t}}function CC(e,t,n){let i;return i=e&&"object"==typeof e?e:{bufferSize:e,windowTime:t,refCount:!1,scheduler:n},e=>e.lift(function({bufferSize:e=Number.POSITIVE_INFINITY,windowTime:t=Number.POSITIVE_INFINITY,refCount:n,scheduler:i}){let s,o,r=0,a=!1,l=!1;return function(c){let d;r++,!s||a?(a=!1,s=new xC(e,t,i),d=s.subscribe(this),o=c.subscribe({next(e){s.next(e)},error(e){a=!0,s.error(e)},complete(){l=!0,o=void 0,s.complete()}}),l&&(o=void 0)):d=s.subscribe(this),this.add(()=>{r--,d.unsubscribe(),d=void 0,o&&!l&&n&&0===r&&(o.unsubscribe(),o=void 0,s=void 0)})}}(i))}class SC{}let kC=(()=>{class e extends SC{getTranslation(e){return lb({})}}return e.\u0275fac=function(t){return PC(t||e)},e.\u0275prov=pe({token:e,factory:e.\u0275fac}),e})();const PC=$n(kC);class EC{}let DC=(()=>{class e{handle(e){return e.key}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=pe({token:e,factory:e.\u0275fac}),e})();function OC(e,t){if(e===t)return!0;if(null===e||null===t)return!1;if(e!=e&&t!=t)return!0;let n,i,s,o=typeof e;if(o==typeof t&&"object"==o){if(!Array.isArray(e)){if(Array.isArray(t))return!1;for(i in s=Object.create(null),e){if(!OC(e[i],t[i]))return!1;s[i]=!0}for(i in t)if(!(i in s)&&void 0!==t[i])return!1;return!0}if(!Array.isArray(t))return!1;if((n=e.length)==t.length){for(i=0;i<n;i++)if(!OC(e[i],t[i]))return!1;return!0}}return!1}function MC(e){return null!=e}function TC(e){return e&&"object"==typeof e&&!Array.isArray(e)}function IC(e,t){let n=Object.assign({},e);return TC(e)&&TC(t)&&Object.keys(t).forEach(i=>{TC(t[i])?i in e?n[i]=IC(e[i],t[i]):Object.assign(n,{[i]:t[i]}):Object.assign(n,{[i]:t[i]})}),n}class RC{}let LC=(()=>{class e extends RC{constructor(){super(...arguments),this.templateMatcher=/{{\s?([^{}\s]*)\s?}}/g}interpolate(e,t){let n;return n="string"==typeof e?this.interpolateString(e,t):"function"==typeof e?this.interpolateFunction(e,t):e,n}getValue(e,t){let n="string"==typeof t?t.split("."):[t];t="";do{t+=n.shift(),!MC(e)||!MC(e[t])||"object"!=typeof e[t]&&n.length?n.length?t+=".":e=void 0:(e=e[t],t="")}while(n.length);return e}interpolateFunction(e,t){return e(t)}interpolateString(e,t){return t?e.replace(this.templateMatcher,(e,n)=>{let i=this.getValue(t,n);return MC(i)?i:e}):e}}return e.\u0275fac=function(t){return FC(t||e)},e.\u0275prov=pe({token:e,factory:e.\u0275fac}),e})();const FC=$n(LC);class BC{}let zC=(()=>{class e extends BC{compile(e,t){return e}compileTranslations(e,t){return e}}return e.\u0275fac=function(t){return VC(t||e)},e.\u0275prov=pe({token:e,factory:e.\u0275fac}),e})();const VC=$n(zC);class NC{constructor(){this.currentLang=this.defaultLang,this.translations={},this.langs=[],this.onTranslationChange=new yc,this.onLangChange=new yc,this.onDefaultLangChange=new yc}}const HC=new Xn("USE_STORE"),jC=new Xn("USE_DEFAULT_LANG"),UC=new Xn("DEFAULT_LANGUAGE"),WC=new Xn("USE_EXTEND");let GC=(()=>{class e{constructor(e,t,n,i,s,o=!0,r=!1,a=!1,l){this.store=e,this.currentLoader=t,this.compiler=n,this.parser=i,this.missingTranslationHandler=s,this.useDefaultLang=o,this.isolate=r,this.extend=a,this.pending=!1,this._onTranslationChange=new yc,this._onLangChange=new yc,this._onDefaultLangChange=new yc,this._langs=[],this._translations={},this._translationRequests={},l&&this.setDefaultLang(l)}get onTranslationChange(){return this.isolate?this._onTranslationChange:this.store.onTranslationChange}get onLangChange(){return this.isolate?this._onLangChange:this.store.onLangChange}get onDefaultLangChange(){return this.isolate?this._onDefaultLangChange:this.store.onDefaultLangChange}get defaultLang(){return this.isolate?this._defaultLang:this.store.defaultLang}set defaultLang(e){this.isolate?this._defaultLang=e:this.store.defaultLang=e}get currentLang(){return this.isolate?this._currentLang:this.store.currentLang}set currentLang(e){this.isolate?this._currentLang=e:this.store.currentLang=e}get langs(){return this.isolate?this._langs:this.store.langs}set langs(e){this.isolate?this._langs=e:this.store.langs=e}get translations(){return this.isolate?this._translations:this.store.translations}set translations(e){this.isolate?this._translations=e:this.store.translations=e}setDefaultLang(e){if(e===this.defaultLang)return;let t=this.retrieveTranslations(e);void 0!==t?(null==this.defaultLang&&(this.defaultLang=e),t.pipe(lv(1)).subscribe(t=>{this.changeDefaultLang(e)})):this.changeDefaultLang(e)}getDefaultLang(){return this.defaultLang}use(e){if(e===this.currentLang)return lb(this.translations[e]);let t=this.retrieveTranslations(e);return void 0!==t?(this.currentLang||(this.currentLang=e),t.pipe(lv(1)).subscribe(t=>{this.changeLang(e)}),t):(this.changeLang(e),lb(this.translations[e]))}retrieveTranslations(e){let t;return(void 0===this.translations[e]||this.extend)&&(this._translationRequests[e]=this._translationRequests[e]||this.getTranslation(e),t=this._translationRequests[e]),t}getTranslation(e){this.pending=!0;const t=this.currentLoader.getTranslation(e).pipe(CC(1),lv(1));return this.loadingTranslations=t.pipe(k(t=>this.compiler.compileTranslations(t,e)),CC(1),lv(1)),this.loadingTranslations.subscribe({next:t=>{this.translations[e]=this.extend&&this.translations[e]?Object.assign(Object.assign({},t),this.translations[e]):t,this.updateLangs(),this.pending=!1},error:e=>{this.pending=!1}}),t}setTranslation(e,t,n=!1){t=this.compiler.compileTranslations(t,e),this.translations[e]=(n||this.extend)&&this.translations[e]?IC(this.translations[e],t):t,this.updateLangs(),this.onTranslationChange.emit({lang:e,translations:this.translations[e]})}getLangs(){return this.langs}addLangs(e){e.forEach(e=>{-1===this.langs.indexOf(e)&&this.langs.push(e)})}updateLangs(){this.addLangs(Object.keys(this.translations))}getParsedResult(e,t,n){let i;if(t instanceof Array){let i={},s=!1;for(let o of t)i[o]=this.getParsedResult(e,o,n),cC(i[o])&&(s=!0);return s?Cf(t.map(e=>cC(i[e])?i[e]:lb(i[e]))).pipe(k(e=>{let n={};return e.forEach((e,i)=>{n[t[i]]=e}),n})):i}if(e&&(i=this.parser.interpolate(this.parser.getValue(e,t),n)),void 0===i&&null!=this.defaultLang&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(i=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],t),n)),void 0===i){let e={key:t,translateService:this};void 0!==n&&(e.interpolateParams=n),i=this.missingTranslationHandler.handle(e)}return void 0!==i?i:t}get(e,t){if(!MC(e)||!e.length)throw new Error('Parameter "key" required');if(this.pending)return this.loadingTranslations.pipe(cb(n=>cC(n=this.getParsedResult(n,e,t))?n:lb(n)));{let n=this.getParsedResult(this.translations[this.currentLang],e,t);return cC(n)?n:lb(n)}}getStreamOnTranslationChange(e,t){if(!MC(e)||!e.length)throw new Error('Parameter "key" required');return ev(iv(()=>this.get(e,t)),this.onTranslationChange.pipe(sv(n=>{const i=this.getParsedResult(n.translations,e,t);return"function"==typeof i.subscribe?i:lb(i)})))}stream(e,t){if(!MC(e)||!e.length)throw new Error('Parameter "key" required');return ev(iv(()=>this.get(e,t)),this.onLangChange.pipe(sv(n=>{const i=this.getParsedResult(n.translations,e,t);return cC(i)?i:lb(i)})))}instant(e,t){if(!MC(e)||!e.length)throw new Error('Parameter "key" required');let n=this.getParsedResult(this.translations[this.currentLang],e,t);if(cC(n)){if(e instanceof Array){let t={};return e.forEach((n,i)=>{t[e[i]]=e[i]}),t}return e}return n}set(e,t,n=this.currentLang){this.translations[n][e]=this.compiler.compile(t,n),this.updateLangs(),this.onTranslationChange.emit({lang:n,translations:this.translations[n]})}changeLang(e){this.currentLang=e,this.onLangChange.emit({lang:e,translations:this.translations[e]}),null==this.defaultLang&&this.changeDefaultLang(e)}changeDefaultLang(e){this.defaultLang=e,this.onDefaultLangChange.emit({lang:e,translations:this.translations[e]})}reloadLang(e){return this.resetLang(e),this.getTranslation(e)}resetLang(e){this._translationRequests[e]=void 0,this.translations[e]=void 0}getBrowserLang(){if("undefined"==typeof window||void 0===window.navigator)return;let e=window.navigator.languages?window.navigator.languages[0]:null;return e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,void 0!==e?(-1!==e.indexOf("-")&&(e=e.split("-")[0]),-1!==e.indexOf("_")&&(e=e.split("_")[0]),e):void 0}getBrowserCultureLang(){if("undefined"==typeof window||void 0===window.navigator)return;let e=window.navigator.languages?window.navigator.languages[0]:null;return e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,e}}return e.\u0275fac=function(t){return new(t||e)(gi(NC),gi(SC),gi(BC),gi(RC),gi(EC),gi(jC),gi(HC),gi(WC),gi(UC))},e.\u0275prov=pe({token:e,factory:e.\u0275fac}),e})(),$C=(()=>{class e{constructor(e,t){this.translate=e,this._ref=t,this.value=""}updateValue(e,t,n){let i=t=>{this.value=void 0!==t?t:e,this.lastKey=e,this._ref.markForCheck()};if(n){let s=this.translate.getParsedResult(n,e,t);cC(s.subscribe)?s.subscribe(i):i(s)}this.translate.get(e,t).subscribe(i)}transform(e,...t){if(!e||!e.length)return e;if(OC(e,this.lastKey)&&OC(t,this.lastParams))return this.value;let n;if(MC(t[0])&&t.length)if("string"==typeof t[0]&&t[0].length){let e=t[0].replace(/(\')?([a-zA-Z0-9_]+)(\')?(\s)?:/g,'"$2":').replace(/:(\s)?(\')(.*?)(\')/g,':"$3"');try{n=JSON.parse(e)}catch(i){throw new SyntaxError("Wrong parameter in TranslatePipe. Expected a valid Object, received: "+t[0])}}else"object"!=typeof t[0]||Array.isArray(t[0])||(n=t[0]);return this.lastKey=e,this.lastParams=t,this.updateValue(e,n),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.onTranslationChange.subscribe(t=>{this.lastKey&&t.lang===this.translate.currentLang&&(this.lastKey=null,this.updateValue(e,n,t.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(t=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,n,t.translations))})),this.onDefaultLangChange||(this.onDefaultLangChange=this.translate.onDefaultLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,n))})),this.value}_dispose(){void 0!==this.onTranslationChange&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void 0),void 0!==this.onLangChange&&(this.onLangChange.unsubscribe(),this.onLangChange=void 0),void 0!==this.onDefaultLangChange&&(this.onDefaultLangChange.unsubscribe(),this.onDefaultLangChange=void 0)}ngOnDestroy(){this._dispose()}}return e.\u0275fac=function(t){return new(t||e)(zr(GC),Vc())},e.\u0275pipe=Je({name:"translate",type:e,pure:!1}),e.\u0275prov=pe({token:e,factory:e.\u0275fac}),e})(),qC=(()=>{class e{static forRoot(t={}){return{ngModule:e,providers:[t.loader||{provide:SC,useClass:kC},t.compiler||{provide:BC,useClass:zC},t.parser||{provide:RC,useClass:LC},t.missingTranslationHandler||{provide:EC,useClass:DC},NC,{provide:HC,useValue:t.isolate},{provide:jC,useValue:t.useDefaultLang},{provide:WC,useValue:t.extend},{provide:UC,useValue:t.defaultLanguage},GC]}}static forChild(t={}){return{ngModule:e,providers:[t.loader||{provide:SC,useClass:kC},t.compiler||{provide:BC,useClass:zC},t.parser||{provide:RC,useClass:LC},t.missingTranslationHandler||{provide:EC,useClass:DC},{provide:HC,useValue:t.isolate},{provide:jC,useValue:t.useDefaultLang},{provide:WC,useValue:t.extend},{provide:UC,useValue:t.defaultLanguage},GC]}}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=fe({}),e})();var YC=function(e,t,n,i){return new(n||(n=Promise))(function(s,o){function r(e){try{l(i.next(e))}catch(t){o(t)}}function a(e){try{l(i.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?s(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(r,a)}l((i=i.apply(e,t||[])).next())})};let ZC=(()=>{class e{constructor(e,t,n){this.translate=e,this.router=t,this.toastController=n}success(e){return YC(this,void 0,void 0,function*(){const t=e.includes("lang.")?this.translate.instant(e):e;(yield this.toastController.create({cssClass:"notif-success",duration:3e3,message:t,position:"top"})).present()})}error(e){return YC(this,void 0,void 0,function*(){const t=e.includes("lang.")?this.translate.instant(e):e;(yield this.toastController.create({cssClass:"notif-error",duration:3e3,message:t,position:"top"})).present()})}handleErrors(e){console.log(e),0===e.status&&"Unknown Error"===e.statusText?this.error("lang.connectionServerFailed"):void 0!==e.error.errors?(this.error(void 0!==e.error.lang?"lang."+e.error.lang:e.error.errors),403!==e.status&&404!==e.status||this.router.navigate(["/home"])):this.error(void 0!==e.error.exception?e.error.exception[0].message:void 0!==e.error.error&&void 0!==e.error.error.message?e.error.error.message:void 0!==e.error.error[0]?e.error.error[0].message:e.message)}}return e.\u0275fac=function(t){return new(t||e)(gi(GC),gi(r_),gi(tC))},e.\u0275prov=pe({token:e,factory:e.\u0275fac}),e})();class QC{attach(e){return this._attachedHost=e,e.attach(this)}detach(){let e=this._attachedHost;null!=e&&(this._attachedHost=null,e.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(e){this._attachedHost=e}}class XC extends QC{constructor(e,t,n,i){super(),this.component=e,this.viewContainerRef=t,this.injector=n,this.componentFactoryResolver=i}}class KC extends QC{constructor(e,t,n){super(),this.templateRef=e,this.viewContainerRef=t,this.context=n}get origin(){return this.templateRef.elementRef}attach(e,t=this.context){return this.context=t,super.attach(e)}detach(){return this.context=void 0,super.detach()}}class JC extends QC{constructor(e){super(),this.element=e instanceof rl?e.nativeElement:e}}class eS{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(e){return e instanceof XC?(this._attachedPortal=e,this.attachComponentPortal(e)):e instanceof KC?(this._attachedPortal=e,this.attachTemplatePortal(e)):this.attachDomPortal&&e instanceof JC?(this._attachedPortal=e,this.attachDomPortal(e)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(e){this._disposeFn=e}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class tS extends eS{constructor(e,t,n,i,s){super(),this.outletElement=e,this._componentFactoryResolver=t,this._appRef=n,this._defaultInjector=i,this.attachDomPortal=e=>{const t=e.element,n=this._document.createComment("dom-portal");t.parentNode.insertBefore(n,t),this.outletElement.appendChild(t),super.setDisposeFn(()=>{n.parentNode&&n.parentNode.replaceChild(t,n)})},this._document=s}attachComponentPortal(e){const t=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component);let n;return e.viewContainerRef?(n=e.viewContainerRef.createComponent(t,e.viewContainerRef.length,e.injector||e.viewContainerRef.injector),this.setDisposeFn(()=>n.destroy())):(n=t.create(e.injector||this._defaultInjector),this._appRef.attachView(n.hostView),this.setDisposeFn(()=>{this._appRef.detachView(n.hostView),n.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(n)),n}attachTemplatePortal(e){let t=e.viewContainerRef,n=t.createEmbeddedView(e.templateRef,e.context);return n.rootNodes.forEach(e=>this.outletElement.appendChild(e)),n.detectChanges(),this.setDisposeFn(()=>{let e=t.indexOf(n);-1!==e&&t.remove(e)}),n}dispose(){super.dispose(),null!=this.outletElement.parentNode&&this.outletElement.parentNode.removeChild(this.outletElement)}_getComponentRootNode(e){return e.hostView.rootNodes[0]}}let nS=(()=>{class e extends eS{constructor(e,t,n){super(),this._componentFactoryResolver=e,this._viewContainerRef=t,this._isInitialized=!1,this.attached=new yc,this.attachDomPortal=e=>{const t=e.element,n=this._document.createComment("dom-portal");e.setAttachedHost(this),t.parentNode.insertBefore(n,t),this._getRootNode().appendChild(t),super.setDisposeFn(()=>{n.parentNode&&n.parentNode.replaceChild(t,n)})},this._document=n}get portal(){return this._attachedPortal}set portal(e){(!this.hasAttached()||e||this._isInitialized)&&(this.hasAttached()&&super.detach(),e&&super.attach(e),this._attachedPortal=e)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(e){e.setAttachedHost(this);const t=null!=e.viewContainerRef?e.viewContainerRef:this._viewContainerRef,n=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),i=t.createComponent(n,t.length,e.injector||t.injector);return t!==this._viewContainerRef&&this._getRootNode().appendChild(i.hostView.rootNodes[0]),super.setDisposeFn(()=>i.destroy()),this._attachedPortal=e,this._attachedRef=i,this.attached.emit(i),i}attachTemplatePortal(e){e.setAttachedHost(this);const t=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context);return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=e,this._attachedRef=t,this.attached.emit(t),t}_getRootNode(){const e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}}return e.\u0275fac=function(t){return new(t||e)(zr(nl),zr(Gl),zr(Hd))},e.\u0275dir=Ke({type:e,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[vr]}),e})(),iS=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=fe({}),e})(),sS=(()=>{class e{constructor(e,t,n){this.componentFactoryResolver=e,this.injector=t,this.appRef=n,this.mainDocumentId=0,this.signaturesContent=[],this.datesContent=[],this.notesContent=[],this.signaturesList=[],this.signaturesListSubstituted=[],this.currentPage=1,this.totalPage=1,this.stampLock=!1,this.currentToobal="mainDocumentDetail",this.currentAction=0,this.indexDocumentsList=0,this.documentsList=[],this.documentsListCount={},this.workingAreaWidth=0,this.workingAreaHeight=0,this.mobileMode=!0,this.smartphoneMode=!0,this.mode="",this.scale=1,this.x=0,this.y=90,this.dragging=!1,this.smartphoneMode=window.screen.width<=360,this.mobileMode=!!/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}reset(){this.mainDocumentId=0,this.signaturesContent=[],this.datesContent=[],this.notesContent=[],this.signaturesList=[],this.signaturesListSubstituted=[],this.currentPage=1,this.totalPage=1,this.stampLock=!1,this.currentAction=0,this.indexDocumentsList=0,this.documentsList=[],this.documentsListCount={},this.workingAreaWidth=0,this.workingAreaHeight=0,this.currentToobal="mainDocumentDetail",this.smartphoneMode=window.screen.width<=360,this.mobileMode=!!/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),this.mode="",this.scale=1,this.x=0,this.y=90}getAppSession(){this.appSession="AD098AD9ADA0D9IAXKJ90AKS099S"}initTemplate(e,t,n="adminMenu",i=""){document.getElementById(""+n).innerHTML="",this.portalHost=new tS(document.querySelector("#"+n),this.componentFactoryResolver,this.appRef,this.injector);const s=new KC(e,t);this.portalHost.attach(s)}detachTemplate(e="adminMenu"){this.portalHost.detach()}}return e.\u0275fac=function(t){return new(t||e)(gi(nl),gi(mr),gi(Ed))},e.\u0275prov=pe({token:e,factory:e.\u0275fac}),e})(),oS=(()=>{class e{constructor(){}setAppSession(e){this.appSession=e}getAppSession(){return this.appSession}save(e,t){localStorage.setItem(e+"_"+this.getAppSession(),t)}get(e){return localStorage.getItem(e+"_"+this.getAppSession())}remove(e){localStorage.removeItem(e+"_"+this.getAppSession())}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=pe({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),rS=(()=>{class e{constructor(e,t,n,i,s,o){this.http=e,this.router=t,this.notificationService=n,this.signaturesService=i,this.localStorage=s,this.navCtrl=o,this.authMode="default",this.changeKey=!1,this.coreUrl="",this.user={},this.signatureRoles=[],this.authFailed=!1}getToken(){return this.localStorage.get("MaarchParapheurToken")}setToken(e){this.localStorage.save("MaarchParapheurToken",e)}getRefreshToken(){return this.localStorage.get("MaarchParapheurRefreshToken")}setRefreshToken(e){this.localStorage.save("MaarchParapheurRefreshToken",e)}clearTokens(){this.localStorage.remove("MaarchParapheurToken"),this.localStorage.remove("MaarchParapheurRefreshToken")}refreshToken(){return this.http.get("../rest/authenticate/token",{params:{refreshToken:this.getRefreshToken()}}).pipe(Ov(e=>{this.setToken(e.token),this.updateUserInfo(e.token)}),fv(e=>(this.logout(),this.notificationService.error("lang.sessionExpired"),lb(!1))))}logout(){if(null===this.getRefreshToken())return this.clearTokens(),void this.navCtrl.navigateRoot("/login");this.http.get("../rest/authenticate/logout").pipe(Ov(()=>{this.clearTokens(),this.navCtrl.navigateRoot("/login")}),fv(e=>(this.notificationService.handleErrors(e),this.clearTokens(),this.navCtrl.navigateRoot("/login"),lb(!1)))).subscribe()}saveTokens(e,t){this.setToken(e),this.setRefreshToken(t)}isAuth(){return null!==this.getToken()}updateUserInfo(e){const t=this.user.picture,n=JSON.parse(atob(e.split(".")[1]));this.user=n.user,this.authMode=n.connection,this.user.picture=t}updateUserInfoWithTokenRefresh(){this.http.get("../rest/authenticate/token",{params:{refreshToken:this.getRefreshToken()}}).subscribe({next:e=>{this.setToken(e.token),this.updateUserInfo(this.getToken())},error:e=>{this.notificationService.handleErrors(e)}})}setUser(e){this.user=e}getSignatureMode(e){return"visa"===e?"stamp":e}getWorkflowMode(e){return this.signatureRoles.filter(t=>t.id===e)[0].type}setCachedUrl(e){this.localStorage.save("MaarchParapheurCacheUrl",e)}getCachedUrl(){return this.localStorage.get("MaarchParapheurCacheUrl")}cleanCachedUrl(){return this.localStorage.remove("MaarchParapheurCacheUrl")}}return e.\u0275fac=function(t){return new(t||e)(gi(Db),gi(r_),gi(ZC),gi(sS),gi(oS),gi(ux))},e.\u0275prov=pe({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),aS=(()=>{class e{constructor(e,t,n,i,s){this.http=e,this.router=t,this.notificationService=n,this.signaturesService=i,this.authService=s,this.excludeUrls=["../rest/authenticate","../rest/authenticate/token","../rest/authenticationInformations","../rest/password","../rest/passwordRules","../rest/languages/fr","../rest/languages/en"],this.frontUrl=["../rest/documents/","../rest/users/","../rest/groups/","../rest/configurations/"],this.byPassHandleErrors=[{route:"/password",method:["PUT"]},{route:"/logout",method:["GET"]}],this.isRefreshing=!1,this.refreshTokenSubject=new Gb(null)}addAuthHeader(e){const t=this.authService.getToken();return e.clone({setHeaders:{Authorization:"Bearer "+t}})}intercept(e,t){return(this.excludeUrls.indexOf(e.url)>-1||e.url.indexOf("/password")>-1)&&-1===e.url.indexOf("/passwordRules")&&-1===e.method.indexOf("PUT")?t.handle(e):(e=this.addAuthHeader(e),t.handle(e).pipe(fv(n=>{if(this.byPassHandleErrors.filter(t=>e.url.indexOf(t.route)>-1&&t.method.indexOf(e.method)>-1).length>0)return t.handle(e);if(401===n.status)return this.handle401Error(e,t);if("Password expired : User must change his password"===n.error.errors)return this.router.navigate(["/password-modification"]);{let t;return"GET"===e.method&&this.frontUrl.forEach(i=>{if(e.url.indexOf(i)>-1)return"../rest/documents/"===i&&(this.signaturesService.mainDocumentId=null),t=new Pb({error:n.error,status:n.status,statusText:n.statusText,headers:n.headers,url:n.url}),Promise.reject(t)}),t=new Pb({error:n.error,status:n.status,statusText:n.statusText,headers:n.headers,url:n.url}),Promise.reject(t)}})))}handle401Error(e,t){return this.isRefreshing?this.refreshTokenSubject.pipe(db(e=>null!=e),lv(1),sv(()=>(e=this.addAuthHeader(e),t.handle(e)))):(this.isRefreshing=!0,this.refreshTokenSubject.next(null),this.authService.refreshToken().pipe(sv(n=>(this.isRefreshing=!1,this.refreshTokenSubject.next(n.token),e=this.addAuthHeader(e),t.handle(e)))))}}return e.\u0275fac=function(t){return new(t||e)(gi(Db),gi(r_),gi(ZC),gi(sS),gi(rS))},e.\u0275prov=pe({token:e,factory:e.\u0275fac}),e})();function lS(e,t){if(1&e){const e=qr();Hr(0,"div",2),Hr(1,"div",3),Hr(2,"button",4),dn(),Hr(3,"svg",5),Ur(4,"path",6),jr(),un(),Hr(5,"span",7),Da(6,"Presentation Mode"),jr(),jr(),Hr(7,"button",8),dn(),Hr(8,"svg",5),Ur(9,"path",9),jr(),un(),Hr(10,"span",10),Da(11,"Open"),jr(),jr(),Hr(12,"button",11),dn(),Hr(13,"svg",5),Ur(14,"path",12),jr(),un(),Hr(15,"span",13),Da(16,"Print"),jr(),jr(),Hr(17,"button",14),dn(),Hr(18,"svg",5),Ur(19,"path",15),jr(),un(),Hr(20,"span",16),Da(21,"Download"),jr(),jr(),Hr(22,"a",17),dn(),Hr(23,"svg",5),Ur(24,"path",18),jr(),un(),Hr(25,"span",19),Da(26,"Current View"),jr(),jr(),Hr(27,"button",20),dn(),Hr(28,"svg",21),Ur(29,"path",22),jr(),un(),Hr(30,"span",23),Da(31,"Go to First Page"),jr(),jr(),Hr(32,"button",24),Xr("click",function(){return Lt(e),na().previousPage()}),dn(),Hr(33,"svg",21),Ur(34,"path",25),jr(),un(),Hr(35,"span",26),Da(36,"Go to Previous Page"),jr(),jr(),Hr(37,"button",27),Xr("click",function(){return Lt(e),na().nextPage()}),dn(),Hr(38,"svg",21),Ur(39,"path",28),jr(),un(),Hr(40,"span",29),Da(41,"Go to Next Page"),jr(),jr(),Hr(42,"button",30),dn(),Hr(43,"svg",21),Ur(44,"path",31),jr(),un(),Hr(45,"span",32),Da(46,"Go to Last Page"),jr(),jr(),Hr(47,"button",33),dn(),Hr(48,"svg",5),Ur(49,"path",34),jr(),un(),Hr(50,"span",35),Da(51,"Rotate Clockwise"),jr(),jr(),Hr(52,"button",36),dn(),Hr(53,"svg",5),Ur(54,"path",37),jr(),un(),Hr(55,"span",38),Da(56,"Rotate Counterclockwise"),jr(),jr(),Hr(57,"button",39),dn(),Hr(58,"svg",5),Ur(59,"path",40),jr(),un(),Hr(60,"span",41),Da(61,"Text Selection Tool"),jr(),jr(),Hr(62,"button",42),dn(),Hr(63,"svg",5),Ur(64,"path",43),jr(),un(),Hr(65,"span",44),Da(66,"Hand Tool"),jr(),jr(),Hr(67,"button",45),dn(),Hr(68,"svg",46),Ur(69,"path",47),jr(),un(),Hr(70,"span",48),Da(71,"Vertical Scrolling"),jr(),jr(),Hr(72,"button",49),dn(),Hr(73,"svg",46),Ur(74,"path",50),jr(),un(),Hr(75,"span",51),Da(76,"Horizontal Scrolling"),jr(),jr(),Hr(77,"button",52),dn(),Hr(78,"svg",46),Ur(79,"path",53),jr(),un(),Hr(80,"span",54),Da(81,"Wrapped Scrolling"),jr(),jr(),Hr(82,"button",55),Xr("click",function(){return Lt(e),na().onSpreadChange("off")}),dn(),Hr(83,"svg",56),Ur(84,"path",57),jr(),un(),Hr(85,"span",58),Da(86,"No Spreads"),jr(),jr(),Hr(87,"button",59),Xr("click",function(){return Lt(e),na().onSpreadChange("odd")}),dn(),Hr(88,"svg",46),Ur(89,"path",60),jr(),un(),Hr(90,"span",61),Da(91,"Odd Spreads"),jr(),jr(),Hr(92,"button",62),Xr("click",function(){return Lt(e),na().onSpreadChange("even")}),dn(),Hr(93,"svg",46),Ur(94,"path",63),jr(),un(),Hr(95,"span",64),Da(96,"Even Spreads"),jr(),jr(),Hr(97,"button",65),dn(),Hr(98,"svg",66),Ur(99,"path",67),Ur(100,"path",68),Ur(101,"circle",69),jr(),un(),Hr(102,"span",70),Da(103,"Document Properties\u2026"),jr(),jr(),jr(),jr()}if(2&e){const e=na();fa("top",e.secondaryToolbarTop)("transform","scale("+e.mobileFriendlyZoomScale+")")("transform-origin","right top"),no(2),ma("invisible",!e.showPresentationModeButton),no(5),ma("invisible",!e.showOpenFileButton),no(5),ma("invisible",!e.showPrintButton),no(5),ma("invisible",!e.showDownloadButton),no(5),ma("invisible",!e.showBookmarkButton),no(5),ma("invisible",!e.showPagingButtons),no(5),ma("invisible",!e.showPagingButtons),Vr("disabled",e.disablePreviousPage),no(5),ma("invisible",!e.showPagingButtons),Vr("disabled",e.disableNextPage),no(5),ma("invisible",!e.showPagingButtons),no(5),ma("invisible",!e.showRotateButton),no(5),ma("invisible",!e.showRotateButton),no(5),ma("invisible",!e.showHandToolButton),no(5),ma("invisible",!e.showHandToolButton),no(5),ma("invisible",!e.showScrollingButton),no(5),ma("invisible",!e.showScrollingButton),no(5),ma("invisible",!e.showScrollingButton),no(5),ma("invisible",!e.showSpreadButton),no(5),ma("invisible",!e.showSpreadButton),no(5),ma("invisible",!e.showSpreadButton),no(5),ma("invisible",!e.showPropertiesButton)}}function cS(e,t){1&e&&oa(0,0,["*ngTemplateOutlet","customSidebar ? customSidebar : defaultSidebar"])}function dS(e,t){if(1&e){const e=qr();Hr(0,"div",2),Hr(1,"div",3),Ur(2,"pdf-sidebar-toolbar"),jr(),Hr(3,"pdf-sidebar-content",4),Xr("thumbnailDrawn",function(t){return Lt(e),na().thumbnailDrawn.emit(t)}),jr(),Ur(4,"div",5),jr()}if(2&e){const e=na();fa("top",e.sidebarPositionTop),no(1),fa("display",e.hideSidebarToolbar?"none":""),no(2),Vr("customThumbnail",e.customThumbnail)("hideSidebarToolbar",e.hideSidebarToolbar)}}const uS=["*"],hS=["root"],pS=["pdfSecondaryToolbarComponent"],gS=["pdfsidebar"];function fS(e,t){1&e&&Ur(0,"link",48)}function mS(e,t){1&e&&Ur(0,"pdf-dark-theme")}function bS(e,t){1&e&&Ur(0,"pdf-light-theme")}function vS(e,t){1&e&&oa(0,0,["*ngTemplateOutlet","customFreeFloatingBar ? customFreeFloatingBar : defaultFreeFloatingBar"])}function yS(e,t){}function wS(e,t){if(1&e&&(Hr(0,"div",3),$r(1,0),jr()),2&e){const e=na(),t=Br(4);fa("transform","scale("+e.mobileFriendlyZoomScale+")")("transform-origin","left center")("left",e.findbarLeft)("top",e.findbarTop),ma("invisible",!e.showFindButton),no(1),Vr("ngTemplateOutlet",e.customFindbarButtons?e.customFindbarButtons:t)}}function _S(e,t){1&e&&(Ur(0,"pdf-find-input-area",4),Ur(1,"pdf-findbar-options-one-container"),Ur(2,"pdf-findbar-options-two-container"),Ur(3,"pdf-findbar-options-three-container"),Ur(4,"pdf-findbar-message-container")),2&e&&Vr("customFindbarInputArea",na().customFindbarInputArea)}function xS(e,t){1&e&&(Hr(0,"div",2),Ur(1,"pdf-search-input-field"),Ur(2,"pdf-find-previous"),Ur(3,"pdf-find-next"),jr())}const AS=["button"],CS="[_nghost-%COMP%]{margin-top:0}[_nghost-%COMP%]:focus{outline:0}button[_ngcontent-%COMP%]:focus, svg[_ngcontent-%COMP%]:focus{outline:0}",SS=["button1"],kS=["button2"],PS="[_nghost-%COMP%]{margin-top:-1px}[_nghost-%COMP%]:focus{outline:0}button[_ngcontent-%COMP%]:focus, svg[_ngcontent-%COMP%]:focus{outline:0}",ES="button[_ngcontent-%COMP%]   svg[_ngcontent-%COMP%]{margin-top:-2px}[_nghost-%COMP%]:focus{outline:0}button[_ngcontent-%COMP%]:focus, svg[_ngcontent-%COMP%]:focus{outline:0}";function DS(e,t){1&e&&oa(0,0,["*ngTemplateOutlet","customToolbar ? customToolbar : defaultToolbar"])}function OS(e,t){if(1&e&&(Hr(0,"div",7),Hr(1,"div",8),Ur(2,"pdf-toggle-sidebar",9),Ur(3,"pdf-find-button",10),Ur(4,"pdf-paging-area",11),jr(),Ur(5,"pdf-zoom-toolbar",12),Hr(6,"div",13),Ur(7,"pdf-hand-tool",14),Ur(8,"pdf-select-tool",15),Ur(9,"pdf-rotate-page",16),Ur(10,"pdf-presentation-mode",17),Ur(11,"pdf-open-file",18),Ur(12,"pdf-print",19),Ur(13,"pdf-download",20),Ur(14,"pdf-bookmark",21),Ur(15,"pdf-toggle-secondary-toolbar",22),jr(),jr()),2&e){const e=na();no(2),Vr("showSidebarButton",e.showSidebarButton),no(1),Vr("showFindButton",e.showFindButton)("textLayer",e.textLayer),no(1),Vr("showPagingButtons",e.showPagingButtons),no(1),Vr("showZoomButtons",e.showZoomButtons)("zoomLevels",e.zoomLevels),no(2),Vr("showHandToolButton",e.showHandToolButton),no(1),Vr("showSelectToolButton",e.showHandToolButton),no(1),Vr("showRotateButton",e.showRotateButton),no(1),Vr("showPresentationModeButton",e.showPresentationModeButton),no(1),Vr("showOpenFileButton",e.showOpenFileButton),no(1),Vr("showPrintButton",e.showPrintButton),no(1),Vr("showDownloadButton",e.showDownloadButton),no(1),Vr("showBookmarkButton",e.showBookmarkButton),no(1),Vr("showSecondaryToolbarButton",e.showSecondaryToolbarButton)}}const MS=["sizeSelector"];function TS(e,t){if(1&e&&(Hr(0,"option",5),Da(1),jr()),2&e){const e=t.$implicit;Vr("id",e.id),Ir("value",e.value)("data-l10n-id",e.dataL10nId)("data-l10n-args",e.dataL10nArgs),no(1),Ma(" ",e.displayValue," ")}}const IS=["thumbnailViewTemplate"];function RS(e,t){1&e&&oa(0,0,["*ngTemplateOutlet","customThumbnail ? customThumbnail : defaultThumbnail"])}function LS(e,t){1&e&&(Hr(0,"a",8),Hr(1,"div",9),Ur(2,"div",10),jr(),jr())}const FS="undefined"!=typeof window&&!!window.MSInputMethodContext&&!!document.documentMode,BS=/Edge\/\d./i.test(navigator.userAgent),zS="undefined"==typeof ReadableStream||void 0===Promise.allSettled;let VS={cursorToolOnLoad:0,defaultUrl:"",defaultZoomValue:"",disableHistory:!1,disablePageLabels:!1,enablePrintAutoRotate:!1,enableWebGL:!1,eventBusDispatchToDOM:!1,externalLinkRel:"noopener noreferrer nofollow",externalLinkTarget:0,historyUpdateUrl:!1,imageResourcesPath:"./images/",maxCanvasPixels:16777216,pdfBugEnabled:!1,removePageBorders:!1,renderer:"canvas",renderInteractiveForms:!0,sidebarViewOnLoad:-1,scrollModeOnLoad:-1,spreadModeOnLoad:-1,textLayerMode:1,useOnlyCssZoom:!1,viewOnLoad:0,cMapPacked:!0,cMapUrl:()=>"./"+VS.assetsFolder+"/cmaps/",disableAutoFetch:!1,disableCreateObjectURL:!1,disableFontFace:!1,disableRange:!1,disableStream:!1,isEvalSupported:!0,maxImageSize:-1,pdfBug:!1,postMessageTransfers:!0,verbosity:1,workerPort:null,assetsFolder:"assets",workerSrc:()=>FS||BS||zS?"./"+VS.assetsFolder+"/pdf.worker-es5.js":"./"+VS.assetsFolder+"/pdf.worker.js"};window.pdfDefaultOptions?VS=window.pdfDefaultOptions:window.pdfDefaultOptions=VS;const NS={ERRORS:0,WARNINGS:1,INFOS:5};NS[NS.ERRORS]="ERRORS",NS[NS.WARNINGS]="WARNINGS",NS[NS.INFOS]="INFOS";const HS={FOUND:0,NOT_FOUND:1,WRAPPED:2,PENDING:3};HS[HS.FOUND]="FOUND",HS[HS.NOT_FOUND]="NOT_FOUND",HS[HS.WRAPPED]="WRAPPED",HS[HS.PENDING]="PENDING";const jS=["toolbarViewer","numPages","pageNumber","scaleSelectContainer","customScaleOption","previous","next","zoomIn","zoomOut","viewFind","openFile","print","presentationMode","download","viewBookmark","secondaryToolbar","secondaryToolbarToggle","secondaryToolbarButtonContainer","secondaryPresentationMode","secondaryOpenFile","secondaryPrint","secondaryDownload","secondaryViewBookmark","firstPage","lastPage","pageRotateCw","pageRotateCcw","cursorSelectTool","cursorHandTool","scrollVertical","scrollHorizontal","scrollWrapped","spreadNone","spreadOdd","spreadEven","documentProperties","contextFirstPage","contextLastPage","contextPageRotateCw","contextPageRotateCcw","outerContainer","viewerContainer","sidebarToggle","viewThumbnail","viewOutline","viewAttachments","thumbnailView","outlineView","attachmentsView","outerContainer","sidebarResizer","findbar","viewFind","findInput","findInputMultiline","findHighlightAll","findMatchCase","findEntireWord","findMultipleSearchTexts","findIgnoreAccents","findMsg","findResultsCount","findPrevious","findNext","findFuzzy","passwordOverlay","passwordText","password","passwordSubmit","passwordCancel","documentPropertiesOverlay","documentPropertiesClose","fileNameField","fileSizeField","titleField","authorField","subjectField","keywordsField","creationDateField","modificationDateField","creatorField","producerField","versionField","pageCountField","pageSizeField","linearizedField","errorWrapper","errorMessage","errorClose","errorMoreInfo","errorShowMore","errorShowLess","scaleSelectContainer","viewAttachments","viewLayers","viewThumbnail","viewOutline"];let US=(()=>{class e{addMissingStandardWidgets(){this.dummyComponentsContainer=document.getElementsByClassName("dummy-pdf-viewer-components")[0];const e=this.dummyComponentsContainer;if(e)for(let t=0;t<e.children.length;t++){const t=e.firstChild;t&&e.removeChild(t)}if(jS.forEach(e=>{if(this.needsDummyWidget(e)){const t=document.createElement("span");t.id=e,t.className="invisible dummy-component",this.dummyComponentsContainer.appendChild(t)}}),this.needsDummyWidget("scaleSelect")){const e=document.createElement("select");e.id="scaleSelect",e.className="invisible dummy-component",this.dummyComponentsContainer.appendChild(e)}}needsDummyWidget(e){return!document.getElementById(e)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=$e({type:e,selectors:[["pdf-dummy-components"]],decls:1,vars:0,consts:[[1,"invisible","dummy-pdf-viewer-components"]],template:function(e,t){1&e&&Ur(0,"span",0)},encapsulation:2}),e})(),WS=(()=>{class e{constructor(){this.onPDFJSInit=new A,this.pdfjsVersion=new xC(1),window.pdfjsLib&&window.pdfjsLib.version?this.pdfjsVersion.next(window.pdfjsLib.version):this.onPDFJSInit.subscribe(()=>{this.pdfjsVersion.next(window.pdfjsLib.version)})}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=pe({token:e,factory:e.\u0275fac,providedIn:"root"}),e.ngInjectableDef=ge({factory:function(){return new e},token:e,providedIn:"root"}),e})(),GS=(()=>{class e{constructor(e,t){this.element=e,this.notificationService=t,this.showPresentationModeButton=!0,this.showOpenFileButton=!0,this.showPrintButton=!0,this.showDownloadButton=!0,this.showBookmarkButton=!0,this.showPagingButtons=!0,this.showRotateButton=!0,this.showHandToolButton=!0,this.showScrollingButton=!0,this.showSpreadButton=!0,this.showPropertiesButton=!0,this.spreadChange=new yc,this.secondaryMenuIsEmpty=new yc,this.disablePreviousPage=!0,this.disableNextPage=!0;const n=this.notificationService.onPDFJSInit.subscribe(()=>{this.onPdfJsInit(),n.unsubscribe()})}onPdfJsInit(){const e=window.PDFViewerApplication;e.eventBus.on("pagechanging",()=>{this.updateUIState()}),e.eventBus.on("pagerendered",()=>{this.updateUIState()})}updateUIState(){setTimeout(()=>{const e=window.PDFViewerApplication,t=e.pdfViewer.currentPageNumber,n=document.getElementById("previousPage");n&&(this.disablePreviousPage=Number(t)<=1,n.disabled=this.disablePreviousPage);const i=document.getElementById("nextPage");i&&(this.disableNextPage=t===e.pagesCount,i.disabled=this.disableNextPage)})}onSpreadChange(e){this.spreadChange.emit(e)}ngOnChanges(e){setTimeout(()=>this.checkVisibility())}onResize(){setTimeout(()=>this.checkVisibility())}ngAfterViewInit(){setTimeout(()=>this.checkVisibility())}ngOnInit(){setTimeout(()=>this.checkVisibility())}checkVisibility(){let e=0;const t=this.element.nativeElement.children.item(0);if(t){const n=t.children.item(0);n&&n instanceof HTMLElement&&(e=this.checkVisibilityRecursively(n))}this.secondaryMenuIsEmpty.emit(0===e)}checkVisibilityRecursively(e){if("none"===e.style.display)return 0;if(e.classList.contains("hidden"))return 0;if(e.classList.contains("invisible"))return 0;if("none"===window.getComputedStyle(e).display)return 0;if(e instanceof HTMLButtonElement||e instanceof HTMLAnchorElement)return 1;let t=0;const n=e.children;if(n&&n.length)for(let i=0;i<n.length&&0===t;i++){const e=n.item(i);e&&e instanceof HTMLElement&&(t+=this.checkVisibilityRecursively(e))}return t}previousPage(){window.PDFViewerApplication.eventBus.dispatch("previouspage")}nextPage(){window.PDFViewerApplication.eventBus.dispatch("nextpage")}}return e.\u0275fac=function(t){return new(t||e)(zr(rl),zr(WS))},e.\u0275cmp=$e({type:e,selectors:[["pdf-secondary-toolbar"]],hostBindings:function(e,t){1&e&&Xr("resize",function(){return t.onResize()},!1,ps)},inputs:{showPresentationModeButton:"showPresentationModeButton",showOpenFileButton:"showOpenFileButton",showPrintButton:"showPrintButton",showDownloadButton:"showDownloadButton",showBookmarkButton:"showBookmarkButton",showPagingButtons:"showPagingButtons",showRotateButton:"showRotateButton",showHandToolButton:"showHandToolButton",showScrollingButton:"showScrollingButton",showSpreadButton:"showSpreadButton",showPropertiesButton:"showPropertiesButton",customSecondaryToolbar:"customSecondaryToolbar",secondaryToolbarTop:"secondaryToolbarTop",mobileFriendlyZoomScale:"mobileFriendlyZoomScale"},outputs:{spreadChange:"spreadChange",secondaryMenuIsEmpty:"secondaryMenuIsEmpty"},features:[dt],decls:3,vars:1,consts:[[3,"ngTemplateOutlet"],["defaultSecondaryToolbar",""],["id","secondaryToolbar",1,"secondaryToolbar","hidden","doorHangerRight"],["id","secondaryToolbarButtonContainer"],["type","button","id","secondaryPresentationMode","title","Switch to Presentation Mode","data-l10n-id","presentation_mode",1,"secondaryToolbarButton","visibleLargeView"],["viewBox","0 0 24 24",2,"width","22px","height","22px"],["fill","currentColor","d","M5,5H10V7H7V10H5V5M14,5H19V10H17V7H14V5M17,14H19V19H14V17H17V14M10,17V19H5V14H7V17H10Z"],["data-l10n-id","presentation_mode_label"],["type","button","id","secondaryOpenFile","title","Open File","data-l10n-id","open_file",1,"secondaryToolbarButton","visibleMediumView"],["fill","currentColor","d","M14,2L20,8V20A2,2 0 0,1 18,22H6A2,2 0 0,1 4,20V4A2,2 0 0,1 6,2H14M18,20V9H13V4H6V20H18M12,12L16,16H13.5V19H10.5V16H8L12,12Z"],["data-l10n-id","open_file_label"],["type","button","id","secondaryPrint","title","Print","data-l10n-id","print",1,"secondaryToolbarButton","visibleSmallView"],["fill","currentColor","d","M18,3H6V7H18M19,12A1,1 0 0,1 18,11A1,1 0 0,1 19,10A1,1 0 0,1 20,11A1,1 0 0,1 19,12M16,19H8V14H16M19,8H5A3,3 0 0,0 2,11V17H6V21H18V17H22V11A3,3 0 0,0 19,8Z"],["data-l10n-id","print_label"],["type","button","id","secondaryDownload","title","Download","data-l10n-id","download",1,"secondaryToolbarButton","visibleSmallView"],["fill","currentColor","d","M14,2L20,8V20A2,2 0 0,1 18,22H6A2,2 0 0,1 4,20V4A2,2 0 0,1 6,2H14M18,20V9H13V4H6V20H18M12,19L8,15H10.5V12H13.5V15H16L12,19Z"],["data-l10n-id","download_label"],["href","#","id","secondaryViewBookmark","title","Current view (copy or open in new window)","data-l10n-id","bookmark",1,"secondaryToolbarButton","bookmark","visibleTinyView"],["fill","currentColor","d","M17,18L12,15.82L7,18V5H17M17,3H7A2,2 0 0,0 5,5V21L12,18L19,21V5C19,3.89 18.1,3 17,3Z"],["data-l10n-id","bookmark_label"],["type","button","id","firstPage","title","Go to First Page","data-l10n-id","first_page",1,"secondaryToolbarButton","firstPage","visibleLargeView"],["viewBox","0 0 24 24",2,"width","24px","height","24px"],["fill","currentColor","d","M18.41,16.59L13.82,12L18.41,7.41L17,6L11,12L17,18L18.41,16.59M6,6H8V18H6V6Z"],["data-l10n-id","first_page_label"],["type","button","id","previousPage","title","Go to Previous Page","data-l10n-id","previous",1,"secondaryToolbarButton","previousPage","visibleTinyView",3,"disabled","click"],["fill","currentColor","d","M15.41,16.58L10.83,12L15.41,7.41L14,6L8,12L14,18L15.41,16.58Z"],["data-l10n-id","previous_label"],["type","button","id","nextPage","title","Go to Next Page","data-l10n-id","next",1,"secondaryToolbarButton","nextPage","visibleTinyView",3,"disabled","click"],["fill","currentColor","d","M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z"],["data-l10n-id","next_label"],["type","button","id","lastPage","title","Go to Last Page","data-l10n-id","last_page",1,"secondaryToolbarButton","lastPage","visibleLargeView"],["fill","currentColor","d","M5.59,7.41L10.18,12L5.59,16.59L7,18L13,12L7,6L5.59,7.41M16,6H18V18H16V6Z"],["data-l10n-id","last_page_label"],["type","button","id","pageRotateCw","title","Rotate Clockwise","data-l10n-id","page_rotate_cw",1,"secondaryToolbarButton","rotateCw","visibleXLView"],["fill","currentColor","d","M12 3C7.03 3 3 7.03 3 12S7.03 21 12 21C14 21 15.92 20.34 17.5 19.14L16.06 17.7C14.87 18.54 13.45 19 12 19C8.13 19 5 15.87 5 12S8.13 5 12 5 19 8.13 19 12H16L20 16L24 12H21C21 7.03 16.97 3 12 3"],["data-l10n-id","page_rotate_cw_label"],["type","button","id","pageRotateCcw","title","Rotate Counterclockwise","data-l10n-id","page_rotate_ccw",1,"secondaryToolbarButton","rotateCcw","visibleXLView"],["fill","currentColor","d","M12 3C7.03 3 3 7.03 3 12H0L4 16L8 12H5C5 8.13 8.13 5 12 5S19 8.13 19 12 15.87 19 12 19C10.55 19 9.13 18.54 7.94 17.7L6.5 19.14C8.08 20.34 10 21 12 21C16.97 21 21 16.97 21 12S16.97 3 12 3"],["data-l10n-id","page_rotate_ccw_label"],["type","button","id","cursorSelectTool","title","Enable Text Selection Tool","data-l10n-id","cursor_text_select_tool",1,"secondaryToolbarButton","toggled","visibleXXLView"],["fill","currentColor","d","M2 4C2 2.89 2.9 2 4 2H7V4H4V7H2V4M22 4V7H20V4H17V2H20C21.1 2 22 2.89 22 4M2 20V17H4V20H7V22H4C2.9 22 2 21.11 2 20M10 2H14V4H10V2M10 20H14V22H10V20M2 10H4V14H2V10M18.5 13C20.4 13 22 14.6 22 16.5C22 19.1 18.5 23 18.5 23C18.5 23 15 19.1 15 16.5C15 14.6 16.6 13 18.5 13M18.5 17.8C19.2 17.8 19.8 17.2 19.7 16.6C19.7 16 19.1 15.4 18.5 15.4C17.9 15.4 17.3 15.9 17.3 16.6C17.3 17.2 17.8 17.8 18.5 17.8M20 10H22V12.34C21.42 11.84 20.74 11.45 20 11.23V10Z"],["data-l10n-id","cursor_text_select_tool_label"],["type","button","id","cursorHandTool","title","Enable Hand Tool","data-l10n-id","cursor_hand_tool",1,"secondaryToolbarButton","visibleXXLView"],["fill","currentColor","d","M13,6V11H18V7.75L22.25,12L18,16.25V13H13V18H16.25L12,22.25L7.75,18H11V13H6V16.25L1.75,12L6,7.75V11H11V6H7.75L12,1.75L16.25,6H13Z"],["data-l10n-id","cursor_hand_tool_label"],["type","button","id","scrollVertical","title","Use Vertical Scrolling","data-l10n-id","scroll_vertical",1,"secondaryToolbarButton","scrollVertical","toggled"],[2,"width","24px","height","24px","margin-top","3px"],["fill","currentColor","d","M9.5 4c1 0 1.5.5 1.5 1.5v5c0 1-.5 1.5-1.5 1.5h-3c-1 0-1.5-.5-1.5-1.5v-5C5 4.5 5.5 4 6.5 4zM11 0v.5c0 1-.5 1.5-1.5 1.5h-3C5.5 2 5 1.5 5 .5V0h6zM11 16v-.5c0-1-.5-1.5-1.5-1.5h-3c-1 0-1.5.5-1.5 1.5v.5h6z"],["data-l10n-id","scroll_vertical_label"],["type","button","id","scrollHorizontal","title","Use Horizontal Scrolling","data-l10n-id","scroll_horizontal",1,"secondaryToolbarButton","scrollHorizontal"],["fill","currentColor","d","M0 4h1.5c1 0 1.5.5 1.5 1.5v5c0 1-.5 1.5-1.5 1.5H0zM9.5 4c1 0 1.5.5 1.5 1.5v5c0 1-.5 1.5-1.5 1.5h-3c-1 0-1.5-.5-1.5-1.5v-5C5 4.5 5.5 4 6.5 4zM16 4h-1.5c-1 0-1.5.5-1.5 1.5v5c0 1 .5 1.5 1.5 1.5H16z"],["data-l10n-id","scroll_horizontal_label"],["type","button","id","scrollWrapped","title","Use Wrapped Scrolling","data-l10n-id","scroll_wrapped",1,"secondaryToolbarButton","scrollWrapped"],["fill","currentColor","d","M5.5 4c1 0 1.5.5 1.5 1.5v5c0 1-.5 1.5-1.5 1.5h-3c-1 0-1.5-.5-1.5-1.5v-5C1 4.5 1.5 4 2.5 4zM7 0v.5C7 1.5 6.5 2 5.5 2h-3C1.5 2 1 1.5 1 .5V0h6zM7 16v-.5c0-1-.5-1.5-1.5-1.5h-3c-1 0-1.5.5-1.5 1.5v.5h6zM13.5 4c1 0 1.5.5 1.5 1.5v5c0 1-.5 1.5-1.5 1.5h-3c-1 0-1.5-.5-1.5-1.5v-5c0-1 .5-1.5 1.5-1.5zM15 0v.5c0 1-.5 1.5-1.5 1.5h-3C9.5 2 9 1.5 9 .5V0h6zM15 16v-.507c0-1-.5-1.5-1.5-1.5h-3C9.5 14 9 14.5 9 15.5v.5h6z"],["data-l10n-id","scroll_wrapped_label"],["type","button","id","spreadNone","title","Do not join page spreads","data-l10n-id","spread_none",1,"secondaryToolbarButton","spreadNone","toggled",3,"click"],["height","16","width","16"],["fill","currentColor","d","M6 3c-1 0-1.5.5-1.5 1.5v7c0 1 .5 1.5 1.5 1.5h4c1 0 1.5-.5 1.5-1.5v-7c0-1-.5-1.5-1.5-1.5z"],["data-l10n-id","spread_none_label"],["type","button","id","spreadOdd","title","Join page spreads starting with odd-numbered pages","data-l10n-id","spread_odd",1,"secondaryToolbarButton","spreadOdd",3,"click"],["fill","currentColor","d","M10.56 3.5C9.56 3.5 9 4 9 5v6.5c0 1 .5 1.5 1.5 1.5h4c1 0 1.5-.5 1.5-1.5V5c0-1-.5-1.5-1.5-1.5zm1.93 1.2c.8 0 1.4.2 1.8.64.5.4.7 1 .7 1.7 0 .5-.2 1-.5 1.44-.2.3-.6.6-1 .93l-.6.4c-.4.3-.6.4-.7.55-.1.1-.2.2-.3.4h3.2v1.27h-5c0-.5.1-1 .3-1.43.2-.49.7-1 1.5-1.54.7-.5 1.1-.8 1.3-1.02.3-.3.4-.7.4-1.05 0-.3-.1-.6-.3-.77-.2-.2-.4-.3-.7-.3-.4 0-.7.2-.9.5-.1.2-.1.5-.2.9h-1.4c0-.6.2-1.1.3-1.5.4-.7 1.1-1.1 2-1.1zM1.54 3.5C.54 3.5 0 4 0 5v6.5c0 1 .5 1.5 1.54 1.5h4c1 0 1.5-.5 1.5-1.5V5c0-1-.5-1.5-1.5-1.5zm1.8 1.125H4.5V12H3V6.9H1.3v-1c.5 0 .8 0 .97-.03.33-.07.53-.17.73-.37.1-.2.2-.3.25-.5.05-.2.05-.3.05-.3z"],["data-l10n-id","spread_odd_label"],["type","button","id","spreadEven","title","Join page spreads starting with even-numbered pages","data-l10n-id","spread_even",1,"secondaryToolbarButton","spreadEven",3,"click"],["fill","currentColor","d","M1.5 3.5C.5 3.5 0 4 0 5v6.5c0 1 .5 1.5 1.5 1.5h4c1 0 1.5-.5 1.5-1.5V5c0-1-.5-1.5-1.5-1.5zm2 1.2c.8 0 1.4.2 1.8.6.5.4.7 1 .7 1.7 0 .5-.2 1-.5 1.4-.2.3-.5.7-1 1l-.6.4c-.4.3-.6.4-.75.56-.15.14-.25.24-.35.44H6v1.3H1c0-.6.1-1.1.3-1.5.3-.6.7-1 1.5-1.6.7-.4 1.1-.8 1.28-1 .32-.3.42-.6.42-1 0-.3-.1-.6-.23-.8-.17-.2-.37-.3-.77-.3s-.7.1-.9.5c-.04.2-.1.5-.1.9H1.1c0-.6.1-1.1.3-1.5.4-.7 1.1-1.1 2.1-1.1zM10.54 3.54C9.5 3.54 9 4 9 5v6.5c0 1 .5 1.5 1.54 1.5h4c.96 0 1.46-.5 1.46-1.5V5c0-1-.5-1.46-1.5-1.46zm1.9.95c.7 0 1.3.2 1.7.5.4.4.6.8.6 1.4 0 .4-.1.8-.4 1.1-.2.2-.3.3-.5.4.1 0 .3.1.6.3.4.3.5.8.5 1.4 0 .6-.2 1.2-.6 1.6-.4.5-1.1.7-1.9.7-1 0-1.8-.3-2.2-1-.14-.29-.24-.69-.24-1.29h1.4c0 .3 0 .5.1.7.2.4.5.5 1 .5.3 0 .5-.1.7-.3.2-.2.3-.5.3-.8 0-.5-.2-.8-.6-.95-.2-.05-.5-.15-1-.15v-1c.5 0 .8-.1 1-.14.3-.1.5-.4.5-.9 0-.3-.1-.5-.2-.7-.2-.2-.4-.3-.7-.3-.3 0-.6.1-.75.3-.2.2-.2.5-.2.86h-1.34c0-.4.1-.7.19-1.1 0-.12.2-.32.4-.62.2-.2.4-.3.7-.4.3-.1.6-.1 1-.1z"],["data-l10n-id","spread_even_label"],["type","button","id","documentProperties","title","Document Properties\u2026","data-l10n-id","document_properties",1,"secondaryToolbarButton","documentProperties"],["viewBox","0 0 16 16",2,"width","16px","height","16px","margin-top","3px"],["fill","currentColor","d","M8 16a8 8 0 1 1 8-8 8.009 8.009 0 0 1-8 8zM8 2a6 6 0 1 0 6 6 6.006 6.006 0 0 0-6-6z"],["fill","currentColor","d","M8 7a1 1 0 0 0-1 1v3a1 1 0 0 0 2 0V8a1 1 0 0 0-1-1z"],["fill","currentColor","cx","8","cy","5","r","1.188"],["data-l10n-id","document_properties_label"]],template:function(e,t){if(1&e&&($r(0,0),Fr(1,lS,104,48,"ng-template",null,1,zc)),2&e){const e=Br(2);Vr("ngTemplateOutlet",t.customSecondaryToolbar?t.customSecondaryToolbar:e)}},directives:[Ku],styles:["svg[_ngcontent-%COMP%]{position:absolute;display:inline-block;top:0;left:0}"]}),e})();const $S={SELECT:0,HAND:1,ZOOM:2};$S[$S.SELECT]="SELECT",$S[$S.HAND]="HAND",$S[$S.ZOOM]="ZOOM";class qS{constructor(e){this._zone=e,this.startX=0,this.startY=0,this.initialPinchDistance=0,this.pinchScale=1,this.isMobile()&&this.initializePinchZoom()}isMobile(){return"ontouchstart"in document.documentElement}onViewerTouchStart(e){if(this.initialPinchDistance=0,2===e.touches.length){const t=this.container.getBoundingClientRect();e.touches[0].pageX>=t.left&&e.touches[0].pageX<=t.right&&e.touches[0].pageY>=t.top&&e.touches[1].pageX>=t.left&&e.touches[1].pageX<=t.right&&e.touches[1].pageY>=t.top&&(this.startX=(e.touches[0].pageX+e.touches[1].pageX)/2,this.startY=(e.touches[0].pageY+e.touches[1].pageY)/2,this.initialPinchDistance=Math.hypot(e.touches[1].pageX-e.touches[0].pageX,e.touches[1].pageY-e.touches[0].pageY),e.preventDefault(),e.stopPropagation())}}onViewerTouchMove(e){const t=window.PDFViewerApplicationOptions;if(this.initialPinchDistance<=0||2!==e.touches.length)return;1!==this.pinchScale&&e.preventDefault();const n=Math.hypot(e.touches[1].pageX-e.touches[0].pageX,e.touches[1].pageY-e.touches[0].pageY),i=this.startX+this.container.scrollLeft,s=this.startY+this.container.scrollTop;this.pinchScale=n/this.initialPinchDistance;let o=Number(t.get("minZoom"));o||(o=.1),this.pinchScale<o&&(this.pinchScale=o);let r=Number(t.get("maxZoom"));r||(r=10),this.pinchScale>r&&(this.pinchScale=r),this.viewer.style.transform=`scale(${this.pinchScale})`,this.viewer.style.transformOrigin=`${i}px ${s}px`,e.preventDefault(),e.stopPropagation()}onViewerTouchEnd(e){const t=window.PDFViewerApplication;if(this.initialPinchDistance<=0)return;this.viewer.style.transform="none",this.viewer.style.transformOrigin="unset",t.pdfViewer.currentScale*=this.pinchScale;const n=this.container.getBoundingClientRect(),i=this.startY-n.top;this.container.scrollLeft+=(this.startX-n.left)*(this.pinchScale-1),this.container.scrollTop+=i*(this.pinchScale-1),this.resetPinchZoomParams(),e.preventDefault(),e.stopPropagation()}resetPinchZoomParams(){this.startX=this.startY=this.initialPinchDistance=0,this.pinchScale=1}initializePinchZoom(){this.viewer=document.getElementById("viewer"),this.container=document.getElementById("viewerContainer"),this._zone.runOutsideAngular(()=>{document.addEventListener("touchstart",this.onViewerTouchStart.bind(this)),document.addEventListener("touchmove",this.onViewerTouchMove.bind(this),{passive:!1}),document.addEventListener("touchend",this.onViewerTouchEnd.bind(this))})}destroyPinchZoom(){this.isMobile()&&(document.removeEventListener("touchstart",this.onViewerTouchStart),document.removeEventListener("touchmove",this.onViewerTouchMove),document.removeEventListener("touchend",this.onViewerTouchEnd))}}let YS=(()=>{class e{constructor(e,t){this.elementRef=e,this.ref=t,this.sidebarVisible=!0,this.showSidebarButton=!0,this.thumbnailDrawn=new yc,this.hideSidebarToolbar=!0}showToolbarWhenNecessary(){const e=this.elementRef.nativeElement.querySelectorAll("button");let t=0;e.forEach(e=>{e.hidden||t++}),this.hideSidebarToolbar=t<=1,this.ref.markForCheck()}}return e.\u0275fac=function(t){return new(t||e)(zr(rl),zr(Tl))},e.\u0275cmp=$e({type:e,selectors:[["pdf-sidebar"]],inputs:{sidebarVisible:"sidebarVisible",showSidebarButton:"showSidebarButton",sidebarPositionTop:"sidebarPositionTop",customSidebar:"customSidebar",customThumbnail:"customThumbnail"},outputs:{thumbnailDrawn:"thumbnailDrawn"},ngContentSelectors:uS,decls:4,vars:1,consts:[[4,"ngTemplateOutlet"],["defaultSidebar",""],["id","sidebarContainer"],["id","additionalSidebarContainer"],[3,"customThumbnail","hideSidebarToolbar","thumbnailDrawn"],["id","sidebarResizer",1,"hidden"]],template:function(e,t){if(1&e&&(sa(),Hr(0,"div"),Fr(1,cS,1,0,"ng-content",0),jr(),Fr(2,dS,5,6,"ng-template",null,1,zc)),2&e){const e=Br(3);no(1),Vr("ngTemplateOutlet",t.customSidebar?t.customSidebar:e)}},directives:function(){return[Ku,Nk,Vk]},styles:[""]}),e})(),ZS=(()=>{class e{constructor(e,t,n,i){this.ngZone=e,this.platformId=t,this.notificationService=n,this.location=i,this.customFindbarButtons=void 0,this.srcChange=new yc,this.authorization=void 0,this.httpHeaders=void 0,this.contextMenuAllowed=!0,this.afterPrint=new yc,this.beforePrint=new yc,this.currentZoomFactor=new yc,this.enablePrint=!0,this.delayFirstView=0,this.logLevel=NS.WARNINGS,this.enablePinchOnMobile=!1,this.minifiedJSLibraries=!0,this.primaryMenuVisible=!0,this.printResolution=null,this.rotationChange=new yc,this.minHeight=void 0,this._height="100%",this.useBrowserLocale=!1,this.backgroundColor="#e8e8eb",this.filenameForDownload="document.pdf",this.ignoreKeyboard=!1,this.ignoreKeys=[],this.acceptKeys=[],this.imageResourcesPath="./"+VS.assetsFolder+"/images/",this.language=void 0,this.listenToURL=!1,this.nameddest=void 0,this.password=void 0,this._showSidebarButton=!0,this.viewerPositionTop="32px",this.showUnverifiedSignatures=!1,this.showSidebarOnLoad=void 0,this.sidebarVisible=void 0,this.sidebarVisibleChange=new yc,this.showFindButton=void 0,this.showPagingButtons=!0,this.showZoomButtons=!0,this.showPresentationModeButton=!1,this.showOpenFileButton=!0,this.showPrintButton=!0,this.showDownloadButton=!0,this.showBookmarkButton=!0,this.theme="light",this.showSecondaryToolbarButton=!0,this.hideKebabMenuForSecondaryToolbar=!1,this.showRotateButton=!0,this.handTool=!0,this.handToolChange=new yc,this.showHandToolButton=!1,this.showScrollingButton=!0,this.showSpreadButton=!0,this.showPropertiesButton=!0,this.showBorders=!0,this.spreadChange=new yc,this.thumbnailDrawn=new yc,this._page=void 0,this.pageChange=new yc,this.pageLabel=void 0,this.pageLabelChange=new yc,this.pagesLoaded=new yc,this.pageRendered=new yc,this.pdfDownloaded=new yc,this.pdfLoaded=new yc,this.pdfLoadingFailed=new yc,this.textLayer=void 0,this.textlayerRendered=new yc,this.textLayerRendered=new yc,this.updateFindMatchesCount=new yc,this.updateFindState=new yc,this.zoom=void 0,this.zoomChange=new yc,this.zoomLevels=["auto","page-actual","page-fit","page-width",.5,1,1.25,1.5,2,3,4],this.maxZoom=10,this.minZoom=.1,this._mobileFriendlyZoom="100%",this.mobileFriendlyZoomScale=1,this.toolbarPaddingTop="0px",this.toolbarWidth="100%",this.toolbarWidthInPixels=100,this.secondaryToolbarTop=void 0,this.findbarTop=void 0,this.findbarLeft=void 0,this._top=void 0,this.shuttingDown=!1}set src(e){e instanceof Uint8Array?this._src=e.buffer:e instanceof Blob?this._src=URL.createObjectURL(e):"string"==typeof e?(this._src=e,e.length>980&&e.length%4==0&&/^[a-zA-Z\d\/+]+={0,2}$/.test(e)&&console.error("The URL looks like a base64 encoded string. If so, please use the attribute base64 instead of src")):this._src=e}set base64Src(e){const t=window.atob(e),n=t.length,i=new Uint8Array(n);for(let s=0;s<n;s++)i[s]=t.charCodeAt(s);this.src=i.buffer}set height(e){this.minHeight=void 0,e?this._height=e:this.height="100%",setTimeout(()=>{this.checkHeight()})}get height(){return this._height}get showSidebarButton(){return this._showSidebarButton}set showSidebarButton(e){this._showSidebarButton=e;let t=1;/msie\s|trident\//i.test(window.navigator.userAgent)&&(t=Number((this._mobileFriendlyZoom||"100").replace("%",""))/100),this.findbarLeft=this._showSidebarButton?(68*t).toString()+"px":"0px"}get page(){return this._page}set page(e){this._page=e?Number(e):void 0}get mobileFriendlyZoom(){return this._mobileFriendlyZoom}set mobileFriendlyZoom(e){"true"==e?e="150%":"false"!=e&&null!=e||(e="100%"),this._mobileFriendlyZoom=e;let t=1;String(e).includes("%")||(e=100*Number(e)+"%"),t=Number((e||"100").replace("%",""))/100,this.mobileFriendlyZoomScale=t,this.toolbarWidth=(100/t).toString()+"%",this.toolbarPaddingTop=8*(t-1)+"px",this.findbarLeft=this.showSidebarButton?(68*t).toString()+"px":"0px",this.secondaryToolbarTop=(36+36*(t-1)).toString()+"px",this.findbarTop=(36+52*(t-1)).toString()+"px"}set mobileZoom(e){this.mobileFriendlyZoom=e}get sidebarPositionTop(){return this._top?this._top:this.mobileFriendlyZoom?this.mobileFriendlyZoom.endsWith("%")?(2+.29*Number(this.mobileFriendlyZoom.substring(0,this.mobileFriendlyZoom.length-1))).toString()+"px":this.mobileFriendlyZoom.endsWith("px")?this.mobileFriendlyZoom:(16+.16*Number(this.mobileFriendlyZoom)).toString()+"px":"32px"}calcViewerPositionTop(){if(this._top)this.viewerPositionTop=this._top;else{if(this.mobileFriendlyZoom){if(this.mobileFriendlyZoom.endsWith("%")){const e=Number(this.mobileFriendlyZoom.substring(0,this.mobileFriendlyZoom.length-1));return void(this.viewerPositionTop=this.isPrimaryMenuVisible()?(1+.32*e).toString()+"px":"0")}if(this.mobileFriendlyZoom.endsWith("px"))return void(this.viewerPositionTop=this.mobileFriendlyZoom)}this.viewerPositionTop=this.isPrimaryMenuVisible()?"32px":"0"}}iOSVersionRequiresES5(){const e=navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/);return null!=e&&parseInt(e[1],10)<13}loadViewer(){if(window["pdfjs-dist/build/pdf"]){const e=!!window.MSInputMethodContext&&!!document.documentMode,t=/Edge\/\d./i.test(navigator.userAgent),n=this.iOSVersionRequiresES5(),i="undefined"==typeof ReadableStream||void 0===Promise.allSettled,s=this.minifiedJSLibraries?".min.js":".js",o=document.createElement("script"),r=VS.assetsFolder;i&&console.log("Using the ES5 version of the PDF viewer."),o.src=this.location.normalize(e||t||n||i?r+"/viewer-es5"+s:r+"/viewer"+s),o.type="text/javascript",o.async=!0,document.getElementsByTagName("head")[0].appendChild(o)}else setTimeout(()=>this.loadViewer(),25)}ngOnInit(){if(this.onResize(),hh(this.platformId)){if(!window["pdfjs-dist/build/pdf"]){const e=!!window.MSInputMethodContext&&!!document.documentMode,t=/Edge\/\d./i.test(navigator.userAgent),n="undefined"==typeof ReadableStream||void 0===Promise.allSettled,i=this.iOSVersionRequiresES5(),s=this.minifiedJSLibraries?".min.js":".js";if(this.minifiedJSLibraries&&!VS.workerSrc().endsWith(".min.js")){const e=VS.workerSrc();VS.workerSrc=()=>e.replace(".js",".min.js")}const o=VS.assetsFolder,r=document.createElement("script");r.src=this.location.normalize(e||t||i||n?o+"/pdf-es5"+s:o+"/pdf"+s),r.type="text/javascript",r.async=!0,document.getElementsByTagName("head")[0].appendChild(r)}window.webViewerLoad||this.loadViewer()}}ngAfterViewInit(){this.shuttingDown||(window.webViewerLoad?this.doInitPDFViewer():setTimeout(()=>this.ngAfterViewInit(),50))}assignTabindexes(){if(this.startTabindex){const e=this.root.nativeElement.cloneNode(!0);e.classList.add("offscreen"),this.showElementsRecursively(e),document.body.appendChild(e);const t=this.collectElementPositions(e,this.root.nativeElement,[]);document.body.removeChild(e);const n=t.sort((e,t)=>e.y-t.y>15?1:t.y-e.y>15?-1:e.x-t.x);for(let i=0;i<n.length;i++)n[i].element.tabIndex=this.startTabindex+i}}showElementsRecursively(e){if(e.classList.remove("hidden"),e.classList.remove("invisible"),e.classList.remove("hiddenXXLView"),e.classList.remove("hiddenXLView"),e.classList.remove("hiddenLargeView"),e.classList.remove("hiddenMediumView"),e.classList.remove("hiddenSmallView"),e.classList.remove("hiddenTinyView"),e.classList.remove("visibleXXLView"),e.classList.remove("visibleXLView"),e.classList.remove("visibleLargeView"),e.classList.remove("visibleMediumView"),e.classList.remove("visibleSmallView"),e.classList.remove("visibleTinyView"),!(e instanceof HTMLButtonElement||e instanceof HTMLAnchorElement||e instanceof HTMLInputElement||e instanceof HTMLSelectElement)&&e.childElementCount>0)for(let t=0;t<e.childElementCount;t++){const n=e.children.item(t);n&&this.showElementsRecursively(n)}}collectElementPositions(e,t,n){if(e instanceof HTMLButtonElement||e instanceof HTMLAnchorElement||e instanceof HTMLInputElement||e instanceof HTMLSelectElement){const i=e.getBoundingClientRect(),s={element:t,x:Math.round(i.left),y:Math.round(i.top)};n.push(s)}else if(e.childElementCount>0)for(let i=0;i<e.childElementCount;i++){const s=e.children.item(i),o=t.children.item(i);s&&o&&(n=this.collectElementPositions(s,o,n))}return n}doInitPDFViewer(){const t=document.querySelectorAll('link[type="application/l10n"]');if(0===t.length)document.querySelector('script[type="application/l10n"]')?this.useBrowserLocale&&console.error("Please set the attribute 'useBrowserLocale' to false if you provide the translations yourself in a script or link tag."):this.useBrowserLocale||(console.error("If you set the attribute 'useBrowserLocale' to false, you must provide the translations yourself in a script or link tag."),console.error("The easiest way to do this is to add them to the index.html."));else if(this.useBrowserLocale){const e=t[0].attributes.origin;e&&"ngx-extended-pdf-viewer"!==e.value&&console.error("Please set the attribute 'useBrowserLocale' to false if you provide the translations yourself in a script or link tag.")}const n=e=>{document.removeEventListener("localized",n),this.initTimeout=setTimeout(()=>{this.shuttingDown||(this.afterLibraryInit(),this.openPDF(),this.assignTabindexes())},this.delayFirstView)};window.addEventListener("afterprint",e=>{this.afterPrint.emit()}),window.addEventListener("beforeprint",e=>{this.beforePrint.emit()}),document.addEventListener("localized",n),e.ngxExtendedPdfViewerInitialized&&console.error("You're trying to open two instances of the PDF viewer. Most likely, this will result in errors.");const i=()=>{this.overrideDefaultSettings(),document.removeEventListener("webviewerloaded",i),this.enablePinchOnMobile&&(this.pinchOnMobileSupport=new qS(this.ngZone))};document.addEventListener("webviewerloaded",i),this.activateTextlayerIfNecessary(null),setTimeout(()=>{if(!this.shuttingDown){this.primaryMenuVisible=!0,this.hideKebabMenuForSecondaryToolbar&&!this.showSecondaryToolbarButton&&(this.isPrimaryMenuVisible()||(this.primaryMenuVisible=!1)),this.calcViewerPositionTop(),this.dummyComponents.addMissingStandardWidgets(),window.webViewerLoad();const e=window.PDFViewerApplication;e.appConfig.defaultUrl="",e.appConfig.filenameForDownload=this.filenameForDownload;const t=window.PDFViewerApplicationOptions;t.set("locale",this.language),t.set("imageResourcesPath",this.imageResourcesPath),t.set("minZoom",this.minZoom),t.set("maxZoom",this.maxZoom),e.isViewerEmbedded=!0,e.printKeyDownListener&&window.addEventListener("keydown",e.printKeyDownListener,!0);const n=document.getElementById("printContainer");n&&document.getElementsByTagName("body")[0].appendChild(n)}},0)}afterLibraryInit(){this.notificationService.onPDFJSInit.next()}checkHeight(){const e=document.getElementsByClassName("zoom")[0];if(e&&0===e.clientHeight&&this._height.includes("%")){let t=window.innerHeight-e.getBoundingClientRect().top;t=t*Number(this._height.replace("%",""))/100,this.minHeight=t>100?t+"px":"100px"}}onSpreadChange(e){this.spreadChange.emit(e)}activateTextlayerIfNecessary(e){void 0===this.textLayer?this.handTool?(e&&e.set("textLayerMode",this.showHandToolButton?1:0),this.showHandToolButton||((this.showFindButton||void 0===this.showFindButton)&&(this.ngZone.run(()=>{this.showFindButton=!1}),this.logLevel>=NS.WARNINGS&&console.warn('Hiding the "find" button because the text layer of the PDF file is not rendered. Use [textLayer]="true" to enable the find button.')),this.showHandToolButton&&this.logLevel>=NS.WARNINGS&&(console.warn('Hiding the "hand tool / selection mode" menu because the text layer of the PDF file is not rendered. Use [textLayer]="true" to enable the the menu items.'),this.showHandToolButton=!1))):(e&&e.set("textLayerMode",1),this.textLayer=!0,void 0===this.showFindButton&&(this.showFindButton=!0,setTimeout(()=>{const e=document.getElementById("viewFind");e&&e.classList.remove("invisible");const t=document.getElementById("findbar");t&&t.classList.remove("invisible")}))):this.textLayer?(e&&e.set("textLayerMode",1),this.textLayer=!0,void 0===this.showFindButton&&(this.showFindButton=!0,setTimeout(()=>{const e=document.getElementById("viewFind");e&&e.classList.remove("invisible");const t=document.getElementById("findbar");t&&t.classList.remove("invisible")}))):(e&&e.set("textLayerMode",0),this.textLayer=!1,this.showFindButton&&this.logLevel>=NS.WARNINGS&&(console.warn('Hiding the "find" button because the text layer of the PDF file is not rendered. Use [textLayer]="true" to enable the find button.'),this.ngZone.run(()=>{this.showFindButton=!1})),this.showHandToolButton&&this.logLevel>=NS.WARNINGS&&(console.warn('Hiding the "hand tool / selection mode" menu because the text layer of the PDF file is not rendered. Use [textLayer]="true" to enable the the menu items.'),this.showHandToolButton=!1))}overrideDefaultSettings(){const e=window.PDFViewerApplicationOptions;for(const i in VS)e.set(i,VS[i]);e.set("disablePreferences",!0),this.setZoom(),e.set("ignoreKeyboard",this.ignoreKeyboard),e.set("ignoreKeys",this.ignoreKeys),e.set("acceptKeys",this.acceptKeys),this.activateTextlayerIfNecessary(e);let t=this.sidebarVisible;void 0===t&&(t=this.showSidebarOnLoad);const n=window.PDFViewerApplication;void 0!==t&&(n.sidebarViewOnLoad=t?1:0,n.appConfig&&(n.appConfig.sidebarViewOnLoad=t?1:0),e.set("sidebarViewOnLoad",this.sidebarVisible?1:0)),"even"===this.spread?(e.set("spreadModeOnLoad",2),n.pdfViewer&&(n.pdfViewer.spreadMode=2),this.onSpreadChange("even")):"odd"===this.spread?(e.set("spreadModeOnLoad",1),n.pdfViewer&&(n.pdfViewer.spreadMode=1),this.onSpreadChange("odd")):(e.set("spreadModeOnLoad",0),n.pdfViewer&&(n.pdfViewer.spreadMode=0),this.onSpreadChange("off")),this.printResolution&&e.set("printResolution",this.printResolution),!1===this.showBorders&&e.set("removePageBorders",!this.showBorders)}openPDF(){ServiceWorkerOptions.showUnverifiedSignatures=this.showUnverifiedSignatures;const t=window.PDFViewerApplication;t.enablePrint=this.enablePrint,e.ngxExtendedPdfViewerInitialized=!0,this.onResize(),this.listenToURL||(t.pdfLinkService.setHash=function(){}),this.initTimeout=null,this.selectCursorTool(),t.eventBus.on("textlayerrendered",e=>{this.textlayerRendered.emit(e),this.textLayerRendered.emit(e)}),t.eventBus.on("pagesloaded",e=>{if(this.pagesLoaded.emit(e),this.rotation){const e=Number(this.rotation);0!==e&&90!==e&&180!==e&&270!==e||(t.pdfViewer.pagesRotation=e)}else t.pdfViewer.pagesRotation=0;setTimeout(()=>{this.shuttingDown||(this.nameddest?t.pdfLinkService.navigateTo(this.nameddest):this.page?t.page=Number(this.page):this.pageLabel&&(t.pdfViewer.currentPageLabel=this.pageLabel))}),this.setZoom()}),t.eventBus.on("pagerendered",e=>{this.ngZone.run(()=>{this.pageRendered.emit(e)})}),t.eventBus.on("download",e=>{this.ngZone.run(()=>{this.pdfDownloaded.emit(e)})}),t.eventBus.on("scalechanging",e=>{setTimeout(()=>{this.ngZone.run(()=>{this.currentZoomFactor.emit(e.scale);const t=this.root.nativeElement.querySelector("#scaleSelect");let n=this.zoom;t&&(n=t.value),"auto"!==n&&"page-fit"!==n&&"page-actual"!==n&&"page-width"!==n&&this.zoomChange.emit(100*e.scale)})})}),t.eventBus.on("rotationchanging",e=>{this.ngZone.run(()=>{this.rotationChange.emit(e.pagesRotation)})}),t.eventBus.on("fileinputchange",e=>{this.ngZone.run(()=>{const t=e.fileInput.value.replace("C:\\fakepath\\","");this.srcChange.emit(t)})}),t.eventBus.on("cursortoolchanged",e=>{this.ngZone.run(()=>{this.handToolChange.emit(e.tool===$S.HAND)})}),t.eventBus.on("sidebarviewchanged",e=>{this.ngZone.run(()=>{this.sidebarVisibleChange.emit(e.view>0),this.sidebarComponent&&this.sidebarComponent.showToolbarWhenNecessary()})});const n=()=>{this.ngZone.run(()=>{this.sidebarComponent&&this.sidebarComponent.showToolbarWhenNecessary()})};if(t.eventBus.on("outlineloaded",n),t.eventBus.on("attachmentsloaded",n),t.eventBus.on("layersloaded",n),t.eventBus.on("updatefindcontrolstate",e=>{this.updateFindMatchesCount&&(e.state===HS.NOT_FOUND?this.updateFindMatchesCount.emit({current:0,total:0}):e.matchesCount.total&&this.updateFindMatchesCount.emit(e.matchesCount)),this.updateFindState&&this.updateFindState.emit(e.state)}),t.eventBus.on("updatefindmatchescount",e=>{this.updateFindMatchesCount&&e.matchesCount.total&&this.updateFindMatchesCount.emit(e.matchesCount)}),t.eventBus.on("pagechanging",e=>{this.shuttingDown||this.ngZone.run(()=>{const e=t.pdfViewer.currentPageNumber,n=t.pdfViewer.currentPageLabel;e!==this.page&&this.pageChange.emit(e),n!==this.pageLabel&&this.pageLabelChange.emit(n)})}),this.checkHeight(),this._src){const e={password:this.password,verbosity:this.logLevel};this._src.range&&(e.range=this._src.range),this.httpHeaders&&(e.httpHeaders=this.httpHeaders),this.authorization&&(e.withCredentials=!0,e.httpHeaders?e.httpHeaders.Authorization||(e.httpHeaders.Authorization=this.authorization):e.httpHeaders={Authorization:this.authorization}),t.onError=e=>this.pdfLoadingFailed.emit(e),t.open(this._src,e).then(()=>this.pdfLoaded.emit({pagesCount:t.pagesCount}))}setTimeout(()=>{this.shuttingDown||this.page&&(t.page=Number(this.page))},100)}selectCursorTool(){window.PDFViewerApplication.eventBus.dispatch("switchcursortool",{tool:this.handTool?1:0})}ngOnDestroy(){const t=window.PDFViewerApplication;if(this.shuttingDown=!0,e.ngxExtendedPdfViewerInitialized=!1,this.initTimeout&&(clearTimeout(this.initTimeout),this.initTimeout=void 0),t){this.pinchOnMobileSupport&&(this.pinchOnMobileSupport.destroyPinchZoom(),this.pinchOnMobileSupport=void 0),t.cleanup(),t.close(),t.printKeyDownListener&&removeEventListener("keydown",t.printKeyDownListener,!0),t._boundEvents&&t.unbindWindowEvents();const e=t.eventBus;if(e){t.unbindEvents();for(const t in e._listeners)if(e._listeners[t]){const n=e._listeners[t];for(let e=0;e<n.length;e++)n[e]=void 0;e._listeners[t]=void 0}}t.eventBus=null}const n=document.getElementsByTagName("body");if(n[0]){const e=n[0].children;for(let t=e.length-1;t>=0;t--){const i=e.item(t);(i&&"printContainer"===i.id||i&&"fileInput"===i.id)&&n[0].removeChild(i)}}}isPrimaryMenuVisible(){return!!(this.showBookmarkButton||this.showDownloadButton||this.showFindButton||this.showOpenFileButton||this.showPagingButtons||this.showPresentationModeButton||this.showPrintButton||this.showPropertiesButton||this.showSidebarButton||this.showZoomButtons)}ngOnChanges(t){const n=window.PDFViewerApplication,i=window.PDFViewerApplicationOptions;if(e.ngxExtendedPdfViewerInitialized){if(("src"in t||"base64Src"in t)&&this._src){this.overrideDefaultSettings();const e={password:this.password,verbosity:this.logLevel};this._src.range&&(e.range=this._src.range),this.httpHeaders&&(e.httpHeaders=this.httpHeaders),this.authorization&&(e.withCredentials=!0,e.httpHeaders?e.httpHeaders.Authorization||(e.httpHeaders.Authorization=this.authorization):e.httpHeaders={Authorization:this.authorization}),n.open(this._src,e).then(()=>this.pdfLoaded.emit({pagesCount:n.pagesCount}),e=>this.pdfLoadingFailed.emit(e))}if("zoom"in t&&this.setZoom(),"maxZoom"in t&&i.set("maxZoom",this.maxZoom),"minZoom"in t&&i.set("minZoom",this.minZoom),"handTool"in t&&this.selectCursorTool(),"page"in t&&this.page&&this.page!=n.page&&(n.page=this.page),"pageLabel"in t&&this.pageLabel&&this.pageLabel!==n.pdfViewer.currentPageLabel&&(n.pdfViewer.currentPageLabel=this.pageLabel),"rotation"in t)if(this.rotation){const e=Number(this.rotation);0!==e&&90!==e&&180!==e&&270!==e||(n.pdfViewer.pagesRotation=e)}else n.pdfViewer.pagesRotation=0;"sidebarVisible"in t&&(this.sidebarVisible?n.pdfSidebar.open():n.pdfSidebar.close()),"filenameForDownload"in t&&(n.appConfig.filenameForDownload=this.filenameForDownload),"nameddest"in t&&this.nameddest&&n.pdfLinkService.navigateTo(this.nameddest),"spread"in t&&("even"===this.spread?(n.spreadModeOnLoad=2,n.pdfViewer.spreadMode=2,this.onSpreadChange("even")):"odd"===this.spread?(n.spreadModeOnLoad=1,n.pdfViewer.spreadMode=1,this.onSpreadChange("odd")):(n.spreadModeOnLoad=0,n.pdfViewer.spreadMode=0,this.onSpreadChange("off"))),"enablePinchOnMobile"in t&&(t.enablePinchOnMobile.isFirstChange()||t.enablePinchOnMobile.currentValue!==t.enablePinchOnMobile.previousValue&&(this.enablePinchOnMobile?this.pinchOnMobileSupport=new qS(this.ngZone):this.pinchOnMobileSupport&&(this.pinchOnMobileSupport.destroyPinchZoom(),this.pinchOnMobileSupport=void 0))),this.primaryMenuVisible=!0,this.showSecondaryToolbarButton&&!this.hideKebabMenuForSecondaryToolbar||this.isPrimaryMenuVisible()||(this.primaryMenuVisible=!1),this.calcViewerPositionTop()}if(this.onResize(),"printResolution"in t){const e=i;e&&e.set("printResolution",this.printResolution)}if("ignoreKeyboard"in t&&i&&this.overrideDefaultSettings(),"ignoreKeys"in t&&i&&this.overrideDefaultSettings(),"acceptKeys"in t&&i&&this.overrideDefaultSettings(),"showBorders"in t&&!t.showBorders.isFirstChange()&&i){this.overrideDefaultSettings();const e=document.getElementById("viewer");this.showBorders?e.classList.remove("removePageBorders"):e.classList.add("removePageBorders"),n.pdfViewer&&(n.pdfViewer.removePageBorders=!this.showBorders);const t={source:e,scale:(100|Number(this.zoom))/100,presetValue:this.zoom};n.eventBus.dispatch("scalechanging",t)}"showUnverifiedSignatures"in t&&n&&n.pdfDocument&&n.pdfDocument._transport.messageHandler.send("showUnverifiedSignatures",this.showUnverifiedSignatures),"enablePrint"in t&&(t.enablePrint.isFirstChange()||(n.enablePrint=this.enablePrint)),("customFindbar"in t&&!t.customFindbar.isFirstChange()||"customFindbarButtons"in t&&!t.customFindbarButtons.isFirstChange()||"customFindbarInputArea"in t&&!t.customFindbarInputArea.isFirstChange()||"customToolbar"in t&&!t.customToolbar.isFirstChange())&&this.dummyComponents&&this.dummyComponents.addMissingStandardWidgets()}setZoom(){let e=this.zoom;String(e).endsWith("%")?e=Number(String(e).replace("%",""))/100:isNaN(Number(e))||(e=Number(e)/100),e||(e="auto");const t=window.PDFViewerApplication;t&&window.PDFViewerApplicationOptions.set("defaultZoomValue",e),t.pdfViewer&&(t.pdfViewer.currentScaleValue=e)}onResize(){const e=document.getElementsByClassName("html");if(e&&e.length>0){const e=document.getElementById("outerContainer");e&&(this.toolbarWidthInPixels=e.clientWidth,this.secondaryToolbarComponent&&this.secondaryToolbarComponent.checkVisibility())}}onContextMenu(){return this.contextMenuAllowed}onSecondaryMenuIsEmpty(e){this.hideKebabMenuForSecondaryToolbar=e}}return e.\u0275fac=function(t){return new(t||e)(zr(ad),zr($c),zr(WS),zr(nu))},e.\u0275cmp=$e({type:e,selectors:[["ngx-extended-pdf-viewer"]],viewQuery:function(e,t){if(1&e&&(Tc(US,1),Tc(hS,1),Tc(pS,1),Tc(gS,1)),2&e){let e;Mc(e=Rc())&&(t.dummyComponents=e.first),Mc(e=Rc())&&(t.root=e.first),Mc(e=Rc())&&(t.secondaryToolbarComponent=e.first),Mc(e=Rc())&&(t.sidebarComponent=e.first)}},hostBindings:function(e,t){1&e&&Xr("contextmenu",function(){return t.onContextMenu()})},inputs:{customFindbarButtons:"customFindbarButtons",authorization:"authorization",httpHeaders:"httpHeaders",contextMenuAllowed:"contextMenuAllowed",enablePrint:"enablePrint",delayFirstView:"delayFirstView",logLevel:"logLevel",enablePinchOnMobile:"enablePinchOnMobile",minifiedJSLibraries:"minifiedJSLibraries",printResolution:"printResolution",useBrowserLocale:"useBrowserLocale",backgroundColor:"backgroundColor",filenameForDownload:"filenameForDownload",ignoreKeyboard:"ignoreKeyboard",ignoreKeys:"ignoreKeys",acceptKeys:"acceptKeys",imageResourcesPath:"imageResourcesPath",language:"language",listenToURL:"listenToURL",nameddest:"nameddest",password:"password",showUnverifiedSignatures:"showUnverifiedSignatures",showSidebarOnLoad:"showSidebarOnLoad",sidebarVisible:"sidebarVisible",showFindButton:"showFindButton",showPagingButtons:"showPagingButtons",showZoomButtons:"showZoomButtons",showPresentationModeButton:"showPresentationModeButton",showOpenFileButton:"showOpenFileButton",showPrintButton:"showPrintButton",showDownloadButton:"showDownloadButton",showBookmarkButton:"showBookmarkButton",theme:"theme",showSecondaryToolbarButton:"showSecondaryToolbarButton",showRotateButton:"showRotateButton",handTool:"handTool",showHandToolButton:"showHandToolButton",showScrollingButton:"showScrollingButton",showSpreadButton:"showSpreadButton",showPropertiesButton:"showPropertiesButton",showBorders:"showBorders",pageLabel:"pageLabel",textLayer:"textLayer",zoom:"zoom",zoomLevels:"zoomLevels",maxZoom:"maxZoom",minZoom:"minZoom",_mobileFriendlyZoom:"_mobileFriendlyZoom",src:"src",base64Src:"base64Src",height:"height",showSidebarButton:"showSidebarButton",page:"page",mobileFriendlyZoom:"mobileFriendlyZoom",mobileZoom:"mobileZoom",customFindbarInputArea:"customFindbarInputArea",customToolbar:"customToolbar",customFindbar:"customFindbar",customSecondaryToolbar:"customSecondaryToolbar",customSidebar:"customSidebar",customThumbnail:"customThumbnail",customFreeFloatingBar:"customFreeFloatingBar",rotation:"rotation",startTabindex:"startTabindex",spread:"spread"},outputs:{srcChange:"srcChange",afterPrint:"afterPrint",beforePrint:"beforePrint",currentZoomFactor:"currentZoomFactor",rotationChange:"rotationChange",sidebarVisibleChange:"sidebarVisibleChange",handToolChange:"handToolChange",spreadChange:"spreadChange",thumbnailDrawn:"thumbnailDrawn",pageChange:"pageChange",pageLabelChange:"pageLabelChange",pagesLoaded:"pagesLoaded",pageRendered:"pageRendered",pdfDownloaded:"pdfDownloaded",pdfLoaded:"pdfLoaded",pdfLoadingFailed:"pdfLoadingFailed",textlayerRendered:"textlayerRendered",textLayerRendered:"textLayerRendered",updateFindMatchesCount:"updateFindMatchesCount",updateFindState:"updateFindState",zoomChange:"zoomChange"},features:[dt],ngContentSelectors:uS,decls:66,vars:60,consts:[["rel","resource","type","application/l10n","href","assets/locale/locale.properties","origin","ngx-extended-pdf-viewer",4,"ngIf"],[4,"ngIf"],[3,"zoom","width"],[1,"zoom"],["root",""],[1,"html"],[1,"loadingInProgress","body"],["id","outerContainer",3,"resize"],[1,"free-floating-bar"],[4,"ngTemplateOutlet"],[3,"sidebarPositionTop","sidebarVisible","showSidebarButton","customSidebar","customThumbnail","thumbnailDrawn"],["pdfsidebar",""],["id","mainContainer"],[3,"customToolbar","mobileFriendlyZoomScale","primaryMenuVisible","showBookmarkButton","showDownloadButton","showFindButton","showHandToolButton","showOpenFileButton","showPrintButton","showPagingButtons","showPresentationModeButton","showRotateButton","showSecondaryToolbarButton","showSidebarButton","showZoomButtons","textLayer","toolbarPaddingTop","toolbarWidth","zoomLevels"],[3,"customSecondaryToolbar","secondaryToolbarTop","mobileFriendlyZoomScale","showPresentationModeButton","showOpenFileButton","showPrintButton","showDownloadButton","showBookmarkButton","showPagingButtons","showRotateButton","showHandToolButton","showScrollingButton","showSpreadButton","showPropertiesButton","spreadChange","secondaryMenuIsEmpty"],["pdfSecondaryToolbarComponent",""],[3,"findbarLeft","findbarTop","mobileFriendlyZoomScale","showFindButton","customFindbarInputArea","customFindbarButtons"],["id","viewerContainer"],["id","viewer",1,"pdfViewer"],["id","errorWrapper","hidden","true"],["id","errorMessageLeft"],["id","errorMessage"],["type","button","id","errorShowMore","data-l10n-id","error_more_info"],["type","button","id","errorShowLess","data-l10n-id","error_less_info","hidden","true"],["id","errorMessageRight"],["type","button","id","errorClose","data-l10n-id","error_close"],[1,"clearBoth"],["id","errorMoreInfo","hidden","true","readonly","readonly"],["id","overlayContainer",1,"hidden"],["id","passwordOverlay",1,"container","hidden"],[1,"dialog"],[1,"row"],["id","passwordText","data-l10n-id","password_label"],["id","password",1,"toolbarField"],[1,"buttonRow"],["type","button","id","passwordCancel",1,"overlayButton"],["data-l10n-id","password_cancel"],["type","button","id","passwordSubmit",1,"overlayButton"],["data-l10n-id","password_ok"],["id","documentPropertiesOverlay",1,"container","hidden"],["id","printServiceOverlay",1,"container","hidden"],["data-l10n-id","print_progress_message"],["value","0","max","100"],["data-l10n-id","print_progress_percent","data-l10n-args",'{ "progress": 0 }',1,"relative-progress"],["type","button","id","printCancel",1,"overlayButton"],["data-l10n-id","print_progress_close"],["id","printContainer"],["defaultFreeFloatingBar",""],["rel","resource","type","application/l10n","href","assets/locale/locale.properties","origin","ngx-extended-pdf-viewer"]],template:function(e,t){if(1&e&&(sa(),Fr(0,fS,1,0,"link",0),Fr(1,mS,1,0,"pdf-dark-theme",1),Fr(2,bS,1,0,"pdf-light-theme",1),Ur(3,"pdf-dynamic-css",2),Hr(4,"div",3,4),Hr(6,"div",5),Hr(7,"div",6),Hr(8,"div",7),Xr("resize",function(){return t.onResize()},!1,ps),Hr(9,"div",8),Fr(10,vS,1,0,"ng-content",9),jr(),Hr(11,"pdf-sidebar",10,11),Xr("thumbnailDrawn",function(e){return t.thumbnailDrawn.emit(e)}),jr(),Hr(13,"div",12),Ur(14,"pdf-dummy-components"),Ur(15,"pdf-toolbar",13),Hr(16,"pdf-secondary-toolbar",14,15),Xr("spreadChange",function(e){return t.onSpreadChange(e)})("secondaryMenuIsEmpty",function(e){return t.onSecondaryMenuIsEmpty(e)}),jr(),Ur(18,"pdf-findbar",16),Ur(19,"pdf-context-menu"),Hr(20,"div",17),Ur(21,"div",18),jr(),Hr(22,"div",19),Hr(23,"div",20),Ur(24,"span",21),Hr(25,"button",22),Da(26," More Information "),jr(),Hr(27,"button",23),Da(28," Less Information "),jr(),jr(),Hr(29,"div",24),Hr(30,"button",25),Da(31,"Close"),jr(),jr(),Ur(32,"div",26),Ur(33,"textarea",27),jr(),jr(),Hr(34,"div",28),Hr(35,"div",29),Hr(36,"div",30),Hr(37,"div",31),Hr(38,"p",32),Da(39," Enter the password to open this PDF file: "),jr(),jr(),Hr(40,"div",31),Ur(41,"input",33),jr(),Hr(42,"div",34),Hr(43,"button",35),Hr(44,"span",36),Da(45,"Cancel"),jr(),jr(),Hr(46,"button",37),Hr(47,"span",38),Da(48,"OK"),jr(),jr(),jr(),jr(),jr(),Ur(49,"pdf-document-properties-overlay",39),Hr(50,"div",40),Hr(51,"div",30),Hr(52,"div",31),Hr(53,"span",41),Da(54,"Preparing document for printing\u2026"),jr(),jr(),Hr(55,"div",31),Ur(56,"progress",42),Hr(57,"span",43),Da(58,"0%"),jr(),jr(),Hr(59,"div",34),Hr(60,"button",44),Hr(61,"span",45),Da(62,"Cancel"),jr(),jr(),jr(),jr(),jr(),jr(),jr(),Ur(63,"div",46),jr(),jr(),jr(),Fr(64,yS,0,0,"ng-template",null,47,zc)),2&e){const e=Br(65);Vr("ngIf",t.useBrowserLocale),no(1),Vr("ngIf","dark"===t.theme),no(1),Vr("ngIf","light"===t.theme),no(1),Vr("zoom",t.mobileFriendlyZoomScale)("width",t.toolbarWidthInPixels),no(1),fa("height",t.height)("min-height",t.minHeight),no(3),fa("background-color",t.backgroundColor),no(3),Vr("ngTemplateOutlet",t.customFreeFloatingBar?t.customFreeFloatingBar:e),no(1),Vr("sidebarPositionTop",t.sidebarPositionTop)("sidebarVisible",t.sidebarVisible)("showSidebarButton",t.showSidebarButton)("customSidebar",t.customSidebar)("customThumbnail",t.customThumbnail),no(4),Vr("customToolbar",t.customToolbar)("mobileFriendlyZoomScale",t.mobileFriendlyZoomScale)("primaryMenuVisible",t.primaryMenuVisible)("showBookmarkButton",t.showBookmarkButton)("showDownloadButton",t.showDownloadButton)("showFindButton",t.showFindButton)("showHandToolButton",t.showHandToolButton)("showOpenFileButton",t.showOpenFileButton)("showPrintButton",t.showPrintButton&&t.enablePrint)("showPagingButtons",t.showPagingButtons)("showPresentationModeButton",t.showPresentationModeButton)("showRotateButton",t.showRotateButton)("showSecondaryToolbarButton",t.showSecondaryToolbarButton&&!t.hideKebabMenuForSecondaryToolbar)("showSidebarButton",t.showSidebarButton)("showZoomButtons",t.showZoomButtons)("textLayer",t.textLayer)("toolbarPaddingTop",t.toolbarPaddingTop)("toolbarWidth",t.toolbarWidth)("zoomLevels",t.zoomLevels),no(1),Vr("customSecondaryToolbar",t.customSecondaryToolbar)("secondaryToolbarTop",t.secondaryToolbarTop)("mobileFriendlyZoomScale",t.mobileFriendlyZoomScale)("showPresentationModeButton",t.showPresentationModeButton)("showOpenFileButton",t.showOpenFileButton)("showPrintButton",t.showPrintButton&&t.enablePrint)("showDownloadButton",t.showDownloadButton)("showBookmarkButton",t.showBookmarkButton)("showPagingButtons",t.showPagingButtons)("showRotateButton",t.showRotateButton)("showHandToolButton",t.showHandToolButton)("showScrollingButton",t.showScrollingButton)("showSpreadButton",t.showSpreadButton)("showPropertiesButton",t.showPropertiesButton),no(2),Vr("findbarLeft",t.findbarLeft)("findbarTop",t.findbarTop)("mobileFriendlyZoomScale",t.mobileFriendlyZoomScale)("showFindButton",t.showFindButton)("customFindbarInputArea",t.customFindbarInputArea)("customFindbarButtons",t.customFindbarButtons),no(2),fa("top",t.viewerPositionTop),no(1),fa("background-color",t.backgroundColor)}},directives:function(){return[Wu,zk,Ku,YS,US,Tk,GS,nk,JS,ek,jk,Hk]},encapsulation:2,changeDetection:0}),e.ngxExtendedPdfViewerInitialized=!1,e})(),QS=(()=>{class e{constructor(){}findMultiple(e,t={}){t=Object.assign({},t,{findMultipleSearchTexts:!0});const n=e.join("\n")+"\n";return this.find(n,t)}find(e,t={}){if(ZS.ngxExtendedPdfViewerInitialized){const n=document.getElementById("findHighlightAll");n&&(n.checked=t.highlightAll||!1);const i=document.getElementById("findMatchCase");i&&(i.checked=t.matchCase||!1);const s=document.getElementById("findEntireWord");s&&(s.checked=t.wholeWords||!1);const o=document.getElementById("findIgnoreAccents");o&&(o.checked=t.ignoreAccents||!1);const r=t.findMultipleSearchTexts||e.includes("\n")||!1,a=document.getElementById("findMultipleSearchTexts");a&&(a.checked=r);const l=document.getElementById("individualWordsMode");l&&(l.checked=!1);const c=document.getElementById("findFuzzy");c&&(c.checked=t.fuzzySearch||!1);const d=r?document.getElementById("findInputMultiline"):document.getElementById("findInput");return d?(d instanceof HTMLTextAreaElement?(d.value=e,d.classList.remove("hidden"),document.getElementById("findInput").classList.add("hidden"),document.getElementById("individualWordsModeLabel").classList.remove("hidden"),document.getElementById("individualWordsMode").classList.remove("hidden")):d instanceof HTMLInputElement&&(d.value=e,d.classList.remove("hidden"),document.getElementById("findInputMultiline").classList.add("hidden"),document.getElementById("individualWordsModeLabel").classList.add("hidden"),document.getElementById("individualWordsMode").classList.add("hidden")),d.dispatchEvent(new Event("input")),!0):(console.error("Unexpected error: the input field used to search isn't part of the DOM."),!1)}return console.error("The PDF viewer hasn't finished initializing. Please call find() later."),!1}findNext(){if(ZS.ngxExtendedPdfViewerInitialized){const e=document.getElementById("findNext");return!!e&&(e.click(),!0)}return console.error("The PDF viewer hasn't finished initializing. Please call findNext() later."),!1}findPrevious(){if(ZS.ngxExtendedPdfViewerInitialized){const e=document.getElementById("findPrevious");return!!e&&(e.click(),!0)}return console.error("The PDF viewer hasn't finished initializing. Please call findPrevious() later."),!1}print(e){const t=window.PDFViewerApplication,n=!!window.isInPDFPrintRange&&!e;n||(e||(e={}),this.setPrintRange(e)),window.printPDF(),n||t.eventBus.on("afterprint",()=>{this.removePrintRange()})}removePrintRange(){window.isInPDFPrintRange=void 0,window.filteredPageCount=void 0}setPrintRange(e){const t=window.PDFViewerApplication;window.isInPDFPrintRange=t=>this.isInPDFPrintRange(t,e),window.filteredPageCount=this.filteredPageCount(t.pagesCount,e)}filteredPageCount(e,t){let n=0;for(let i=1;i<=e;i++)this.isInPDFPrintRange(i,t)&&n++;return n}isInPDFPrintRange(e,t){const n=e+1;return!(t.from&&n<t.from||t.to&&n>t.to||t.excluded&&t.excluded.some(e=>e===n)||t.included&&!t.included.some(e=>e===n))}getPageAsText_preview(e,t){return window.PDFViewerApplication.pdfDocument.getPage(e).then(e=>{e.getTextContent().then(e=>t(this.convertTextInfoToText(e)))})}getPageAsText(e){return window.PDFViewerApplication.pdfDocument.getPage(e).then(e=>new Promise((t,n)=>{t(e.getTextContent())})).then(e=>new Promise((t,n)=>{t(this.convertTextInfoToText(e))}))}convertTextInfoToText(e){return e?e.items.map(e=>e.str).join(""):""}getPageAsImage_preview(e,t,n,i){window.PDFViewerApplication.pdfDocument.getPage(e).then(e=>{this.draw_preview(e,t,n,i)}).catch(e=>{i?i({message:"Unable to initialize PDF page service",reason:e}):console.error("Unable to initialize PDF page service",e)})}getPageAsImage(e,t){return window.PDFViewerApplication.pdfDocument.getPage(e).then(e=>new Promise((n,i)=>{n(this.draw(e,t))}))}draw(e,t){let n=1;t.scale?n=t.scale:t.width?n=t.width/e.getViewport({scale:1}).width:t.height&&(n=t.height/e.getViewport({scale:1}).height);const i=e.getViewport({scale:n}),{ctx:s,canvas:o}=this.getPageDrawContext(i.width,i.height),r=i.clone();return e.render({canvasContext:s,viewport:r}).promise.then(()=>new Promise((e,t)=>{e(o.toDataURL())}))}draw_preview(e,t,n,i){let s=1;t.scale?s=t.scale:t.width?s=t.width/e.getViewport({scale:1}).width:t.height&&(s=t.height/e.getViewport({scale:1}).height);const o=e.getViewport({scale:s}),{ctx:r,canvas:a}=this.getPageDrawContext(o.width,o.height),l=o.clone();e.render({canvasContext:r,viewport:l}).promise.then(function(){const e=a.toDataURL();n(e)},function(e){i&&i(e)})}getPageDrawContext(e,t){const n=document.createElement("canvas"),i=n.getContext("2d",{alpha:!1});if(!i)throw new Error("Couldn't create the 2d context");return n.width=e,n.height=t,n.style.width=e+"px",n.style.height=t+"px",{ctx:i,canvas:n}}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=pe({token:e,factory:e.\u0275fac}),e})(),XS=(()=>{class e{constructor(e){this.notificationService=e,this.showHandToolButton=!0,this.isSelected=!1;const t=this.notificationService.onPDFJSInit.subscribe(()=>{this.onPdfJsInit(),t.unsubscribe()})}onPdfJsInit(){window.PDFViewerApplication.eventBus.on("cursortoolchanged",({tool:e})=>this.isSelected=e===$S.HAND)}onClick(){window.PDFViewerApplication.eventBus.dispatch("switchcursortool",{tool:$S.HAND})}}return e.\u0275fac=function(t){return new(t||e)(zr(WS))},e.\u0275cmp=$e({type:e,selectors:[["pdf-hand-tool"]],inputs:{showHandToolButton:"showHandToolButton"},decls:5,vars:4,consts:[["type","button","id","primaryCursorHandTool","title","Enable hand tool","data-l10n-id","cursor_hand_tool",1,"toolbarButton","hiddenXXLView",3,"click"],["viewBox","0 0 24 24",2,"width","22px","height","22px"],["fill","currentColor","d","M13,6V11H18V7.75L22.25,12L18,16.25V13H13V18H16.25L12,22.25L7.75,18H11V13H6V16.25L1.75,12L6,7.75V11H11V6H7.75L12,1.75L16.25,6H13Z"],["data-l10n-id","cursor_hand_tool_label"]],template:function(e,t){1&e&&(Hr(0,"button",0),Xr("click",function(){return t.onClick()}),dn(),Hr(1,"svg",1),Ur(2,"path",2),jr(),un(),Hr(3,"span",3),Da(4,"Hand Tool"),jr(),jr()),2&e&&ma("invisible",!t.showHandToolButton)("toggled",t.isSelected)},styles:["[_nghost-%COMP%]{margin-top:0}[_nghost-%COMP%]:focus{outline:0}button[_ngcontent-%COMP%]:focus, svg[_ngcontent-%COMP%]:focus{outline:0}.toggled[_ngcontent-%COMP%]{background-color:#646464;border-color:rgba(0,0,0,.4) rgba(0,0,0,.45) rgba(0,0,0,.5);box-shadow:0 1px 1px rgba(0,0,0,.1) inset,0 0 1px rgba(0,0,0,.2) inset,0 1px 0 rgba(255,255,255,.05)}"]}),e})(),KS=(()=>{class e{constructor(){this.showBookmarkButton=!0}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=$e({type:e,selectors:[["pdf-bookmark"]],inputs:{showBookmarkButton:"showBookmarkButton"},decls:5,vars:2,consts:[["href","#","id","viewBookmark","title","Current view (copy or open in new window)","data-l10n-id","bookmark",1,"toolbarButton","hiddenTinyView"],["viewBox","0 0 24 24",2,"width","24px","height","24px"],["fill","currentColor","d","M17,18L12,15.82L7,18V5H17M17,3H7A2,2 0 0,0 5,5V21L12,18L19,21V5C19,3.89 18.1,3 17,3Z"],["data-l10n-id","bookmark_label"]],template:function(e,t){1&e&&(Hr(0,"a",0),dn(),Hr(1,"svg",1),Ur(2,"path",2),jr(),un(),Hr(3,"span",3),Da(4,"Current View"),jr(),jr()),2&e&&ma("invisible",!t.showBookmarkButton)},styles:["[_nghost-%COMP%]   a.toolbarButton[_ngcontent-%COMP%]   svg[_ngcontent-%COMP%]{margin-top:4px}[_nghost-%COMP%]:focus{outline:0}a[_ngcontent-%COMP%]:focus, svg[_ngcontent-%COMP%]:focus{outline:0}"]}),e})(),JS=(()=>{class e{constructor(){}ngOnInit(){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=$e({type:e,selectors:[["pdf-context-menu"]],decls:5,vars:0,consts:[["type","context","id","viewerContextMenu",2,"display","none"],["id","contextFirstPage",2,"display","none"],["id","contextLastPage",2,"display","none"],["id","contextPageRotateCw",2,"display","none"],["id","contextPageRotateCcw",2,"display","none"]],template:function(e,t){1&e&&(Hr(0,"div",0),Ur(1,"div",1),Ur(2,"div",2),Ur(3,"div",3),Ur(4,"div",4),jr())},styles:["[_nghost-%COMP%]{margin-top:4px}"]}),e})(),ek=(()=>{class e{constructor(){}ngOnInit(){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=$e({type:e,selectors:[["pdf-document-properties-overlay"]],decls:77,vars:0,consts:[[1,"dialog"],[1,"row"],["data-l10n-id","document_properties_file_name"],["id","fileNameField"],["data-l10n-id","document_properties_file_size"],["id","fileSizeField"],["data-l10n-id","document_properties_title"],["id","titleField"],["data-l10n-id","document_properties_author"],["id","authorField"],["data-l10n-id","document_properties_subject"],["id","subjectField"],["data-l10n-id","document_properties_keywords"],["id","keywordsField"],["data-l10n-id","document_properties_creation_date"],["id","creationDateField"],["data-l10n-id","document_properties_modification_date"],["id","modificationDateField"],["data-l10n-id","document_properties_creator"],["id","creatorField"],["data-l10n-id","document_properties_producer"],["id","producerField"],["data-l10n-id","document_properties_version"],["id","versionField"],["data-l10n-id","document_properties_page_count"],["id","pageCountField"],["data-l10n-id","document_properties_page_size"],["id","pageSizeField"],[1,"separator"],["data-l10n-id","document_properties_linearized"],["id","linearizedField"],[1,"buttonRow"],["type","button","id","documentPropertiesClose",1,"overlayButton"],["data-l10n-id","document_properties_close"]],template:function(e,t){1&e&&(Hr(0,"div"),Hr(1,"div",0),Hr(2,"div",1),Hr(3,"span",2),Da(4,"File name:"),jr(),Hr(5,"p",3),Da(6,"-"),jr(),jr(),Hr(7,"div",1),Hr(8,"span",4),Da(9,"File size:"),jr(),Hr(10,"p",5),Da(11,"-"),jr(),jr(),Hr(12,"div",1),Hr(13,"span",6),Da(14,"Title:"),jr(),Hr(15,"p",7),Da(16,"-"),jr(),jr(),Hr(17,"div",1),Hr(18,"span",8),Da(19,"Author:"),jr(),Hr(20,"p",9),Da(21,"-"),jr(),jr(),Hr(22,"div",1),Hr(23,"span",10),Da(24,"Subject:"),jr(),Hr(25,"p",11),Da(26,"-"),jr(),jr(),Hr(27,"div",1),Hr(28,"span",12),Da(29,"Keywords:"),jr(),Hr(30,"p",13),Da(31,"-"),jr(),jr(),Hr(32,"div",1),Hr(33,"span",14),Da(34,"Creation Date:"),jr(),Hr(35,"p",15),Da(36,"-"),jr(),jr(),Hr(37,"div",1),Hr(38,"span",16),Da(39,"Modification Date:"),jr(),Hr(40,"p",17),Da(41,"-"),jr(),jr(),Hr(42,"div",1),Hr(43,"span",18),Da(44,"Creator:"),jr(),Hr(45,"p",19),Da(46,"-"),jr(),jr(),Hr(47,"div",1),Hr(48,"span",20),Da(49,"PDF Producer:"),jr(),Hr(50,"p",21),Da(51,"-"),jr(),jr(),Hr(52,"div",1),Hr(53,"span",22),Da(54,"PDF Version:"),jr(),Hr(55,"p",23),Da(56,"-"),jr(),jr(),Hr(57,"div",1),Hr(58,"span",24),Da(59,"Page Count:"),jr(),Hr(60,"p",25),Da(61,"-"),jr(),jr(),Hr(62,"div",1),Hr(63,"span",26),Da(64,"Page Size:"),jr(),Hr(65,"p",27),Da(66,"-"),jr(),jr(),Ur(67,"div",28),Hr(68,"div",1),Hr(69,"span",29),Da(70,"Fast Web View:"),jr(),Hr(71,"p",30),Da(72,"-"),jr(),jr(),Hr(73,"div",31),Hr(74,"button",32),Hr(75,"span",33),Da(76,"Close"),jr(),jr(),jr(),jr(),jr())},styles:[""]}),e})(),tk=(()=>{class e{constructor(){this.showDownloadButton=!0}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=$e({type:e,selectors:[["pdf-download"]],inputs:{showDownloadButton:"showDownloadButton"},decls:5,vars:2,consts:[["type","button","id","download","title","Download","data-l10n-id","download",1,"toolbarButton","hiddenSmallView"],["viewBox","0 0 24 24",2,"width","20px","height","20px"],["fill","currentColor","d","M14,2L20,8V20A2,2 0 0,1 18,22H6A2,2 0 0,1 4,20V4A2,2 0 0,1 6,2H14M18,20V9H13V4H6V20H18M12,19L8,15H10.5V12H13.5V15H16L12,19Z"],["data-l10n-id","download_label"]],template:function(e,t){1&e&&(Hr(0,"button",0),dn(),Hr(1,"svg",1),Ur(2,"path",2),jr(),un(),Hr(3,"span",3),Da(4,"Download"),jr(),jr()),2&e&&ma("invisible",!t.showDownloadButton)},styles:[CS]}),e})(),nk=(()=>{class e{constructor(){this.showFindButton=!0}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=$e({type:e,selectors:[["pdf-findbar"]],inputs:{showFindButton:"showFindButton",mobileFriendlyZoomScale:"mobileFriendlyZoomScale",findbarLeft:"findbarLeft",findbarTop:"findbarTop",customFindbarInputArea:"customFindbarInputArea",customFindbar:"customFindbar",customFindbarButtons:"customFindbarButtons"},decls:5,vars:1,consts:[[3,"ngTemplateOutlet"],["defaultFindbar",""],["defaultFindbarButtons",""],["id","findbar",1,"findbar","hidden","doorHanger"],[3,"customFindbarInputArea"]],template:function(e,t){if(1&e&&($r(0,0),Fr(1,wS,2,11,"ng-template",null,1,zc),Fr(3,_S,5,1,"ng-template",null,2,zc)),2&e){const e=Br(2);Vr("ngTemplateOutlet",t.customFindbar?t.customFindbar:e)}},directives:function(){return[Ku,hk,sk,rk,ok,ik]},styles:[""]}),e})(),ik=(()=>{class e{constructor(){}ngOnInit(){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=$e({type:e,selectors:[["pdf-findbar-message-container"]],decls:2,vars:0,consts:[["id","findbarMessageContainer"],["id","findMsg",1,"toolbarLabel"]],template:function(e,t){1&e&&(Hr(0,"div",0),Ur(1,"span",1),jr())},styles:[""]}),e})(),sk=(()=>{class e{constructor(){}ngOnInit(){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=$e({type:e,selectors:[["pdf-findbar-options-one-container"]],decls:3,vars:0,consts:[["id","findbarOptionsOneContainer"]],template:function(e,t){1&e&&(Hr(0,"div",0),Ur(1,"pdf-find-highlight-all"),Ur(2,"pdf-find-match-case"),jr())},directives:function(){return[dk,pk]},styles:[""]}),e})(),ok=(()=>{class e{constructor(){}ngOnInit(){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=$e({type:e,selectors:[["pdf-findbar-options-three-container"]],decls:4,vars:0,consts:[["id","findbarOptionsThreeContainer"]],template:function(e,t){1&e&&(Hr(0,"div",0),Ur(1,"pdf-find-ignore-accents"),Ur(2,"pdf-find-fuzzily"),Ur(3,"pdf-find-results-count"),jr())},directives:function(){return[uk,ck,vk]},styles:[""]}),e})(),rk=(()=>{class e{constructor(){}ngOnInit(){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=$e({type:e,selectors:[["pdf-findbar-options-two-container"]],decls:3,vars:0,consts:[["id","findbarOptionsTwoContainer"]],template:function(e,t){1&e&&(Hr(0,"div",0),Ur(1,"pdf-find-entire-word"),Ur(2,"pdf-find-entire-phrase"),jr())},directives:function(){return[lk,fk]},styles:[""]}),e})(),ak=(()=>{class e{constructor(){this.showFindButton=void 0,this.textLayer=void 0}ngOnInit(){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=$e({type:e,selectors:[["pdf-find-button"]],inputs:{showFindButton:"showFindButton",textLayer:"textLayer"},decls:5,vars:2,consts:[["type","button","id","viewFind","title","Find in Document","data-l10n-id","findbar",1,"toolbarButton"],["viewBox","0 0 24 24",2,"width","24px","height","24px"],["fill","currentColor","d","M9.5,3A6.5,6.5 0 0,1 16,9.5C16,11.11 15.41,12.59 14.44,13.73L14.71,14H15.5L20.5,19L19,20.5L14,15.5V14.71L13.73,14.44C12.59,15.41 11.11,16 9.5,16A6.5,6.5 0 0,1 3,9.5A6.5,6.5 0 0,1 9.5,3M9.5,5C7,5 5,7 5,9.5C5,12 7,14 9.5,14C12,14 14,12 14,9.5C14,7 12,5 9.5,5Z"],["data-l10n-id","findbar_label"]],template:function(e,t){1&e&&(Hr(0,"button",0),dn(),Hr(1,"svg",1),Ur(2,"path",2),jr(),un(),Hr(3,"span",3),Da(4,"Find"),jr(),jr()),2&e&&ma("invisible",!t.showFindButton||!t.textLayer)},styles:[ES]}),e})(),lk=(()=>{class e{constructor(){}ngOnInit(){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=$e({type:e,selectors:[["pdf-find-entire-word"]],decls:3,vars:0,consts:[["type","checkbox","id","findEntireWord",1,"toolbarField"],["for","findEntireWord","data-l10n-id","find_entire_word_label",1,"toolbarLabel"]],template:function(e,t){1&e&&(Ur(0,"input",0),Hr(1,"label",1),Da(2," Whole words\n"),jr())},styles:[""]}),e})(),ck=(()=>{class e{constructor(){}ngOnInit(){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=$e({type:e,selectors:[["pdf-find-fuzzily"]],decls:3,vars:0,consts:[["type","checkbox","id","findFuzzy",1,"toolbarField"],["for","findFuzzy","data-l10n-id","find_fuzzy",1,"toolbarLabel"]],template:function(e,t){1&e&&(Ur(0,"input",0),Hr(1,"label",1),Da(2," Fuzzy search\n"),jr())},styles:[""]}),e})(),dk=(()=>{class e{constructor(){}ngOnInit(){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=$e({type:e,selectors:[["pdf-find-highlight-all"]],decls:3,vars:0,consts:[["type","checkbox","id","findHighlightAll",1,"toolbarField"],["for","findHighlightAll","data-l10n-id","find_highlight",1,"toolbarLabel"]],template:function(e,t){1&e&&(Ur(0,"input",0),Hr(1,"label",1),Da(2," Highlight all\n"),jr())},styles:[""]}),e})(),uk=(()=>{class e{constructor(){}ngOnInit(){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=$e({type:e,selectors:[["pdf-find-ignore-accents"]],decls:3,vars:0,consts:[["type","checkbox","id","findIgnoreAccents",1,"toolbarField"],["for","findIgnoreAccents","data-l10n-id","find_ignore_accents",1,"toolbarLabel"]],template:function(e,t){1&e&&(Ur(0,"input",0),Hr(1,"label",1),Da(2," Ignore accents and diacritics\n"),jr())},styles:[""]}),e})(),hk=(()=>{class e{constructor(){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=$e({type:e,selectors:[["pdf-find-input-area"]],inputs:{customFindbarInputArea:"customFindbarInputArea"},decls:2,vars:2,consts:[["id","findbarInputContainer",4,"ngIf"],[3,"ngTemplateOutlet"],["id","findbarInputContainer"]],template:function(e,t){1&e&&(Fr(0,xS,4,0,"div",0),$r(1,1)),2&e&&(Vr("ngIf",!t.customFindbarInputArea),no(1),Vr("ngTemplateOutlet",t.customFindbarInputArea))},directives:function(){return[Wu,Ku,Dk,bk,mk]},styles:[""]}),e})(),pk=(()=>{class e{constructor(){}ngOnInit(){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=$e({type:e,selectors:[["pdf-find-match-case"]],decls:3,vars:0,consts:[["type","checkbox","id","findMatchCase",1,"toolbarField"],["for","findMatchCase","data-l10n-id","find_match_case_label",1,"toolbarLabel"]],template:function(e,t){1&e&&(Ur(0,"input",0),Hr(1,"label",1),Da(2," Match case\n"),jr())},styles:[""]}),e})(),gk=(()=>{class e{constructor(){this.individualWordsMode=!0,this.multipleSearchTexts=!1}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=pe({token:e,factory:e.\u0275fac,providedIn:"root"}),e.ngInjectableDef=ge({factory:function(){return new e},token:e,providedIn:"root"}),e})(),fk=(()=>{class e{constructor(e){this.pdfFindbarService=e}ngOnInit(){}}return e.\u0275fac=function(t){return new(t||e)(zr(gk))},e.\u0275cmp=$e({type:e,selectors:[["pdf-find-entire-phrase"]],decls:6,vars:6,consts:[["type","checkbox","id","findMultipleSearchTexts",1,"toolbarField",3,"ngModel","ngModelChange"],["for","findMultipleSearchTexts","data-l10n-id","find_multiple_texts_label",1,"toolbarLabel"],["type","checkbox","id","individualWordsMode",1,"toolbarField",3,"ngModel","ngModelChange"],["for","individualWordsMode","id","individualWordsModeLabel","data-l10n-id","find_individual_words_label",1,"toolbarLabel"]],template:function(e,t){1&e&&(Hr(0,"input",0),Xr("ngModelChange",function(e){return t.pdfFindbarService.multipleSearchTexts=e}),jr(),Hr(1,"label",1),Da(2," multiple search texts\n"),jr(),Hr(3,"input",2),Xr("ngModelChange",function(e){return t.pdfFindbarService.individualWordsMode=e}),jr(),Hr(4,"label",3),Da(5," separated by word boundaries\n"),jr()),2&e&&(Vr("ngModel",t.pdfFindbarService.multipleSearchTexts),no(3),ma("hidden",!t.pdfFindbarService.multipleSearchTexts),Vr("ngModel",t.pdfFindbarService.individualWordsMode),no(1),ma("hidden",!t.pdfFindbarService.multipleSearchTexts))},directives:[Df,rm,Rm],styles:[""]}),e})(),mk=(()=>{class e{constructor(){}ngOnInit(){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=$e({type:e,selectors:[["pdf-find-next"]],decls:5,vars:0,consts:[["type","button","id","findNext","title","Find the next occurrence of the phrase","data-l10n-id","find_next",1,"toolbarButton"],["viewBox","0 0 24 24",2,"width","24px","height","24px"],["fill","currentColor","d","M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z"],["data-l10n-id","find_next_label"]],template:function(e,t){1&e&&(Hr(0,"button",0),dn(),Hr(1,"svg",1),Ur(2,"path",2),jr(),un(),Hr(3,"span",3),Da(4,"Next"),jr(),jr())},styles:["button.toolbarButton#findNext[_ngcontent-%COMP%]{margin-top:0}"]}),e})(),bk=(()=>{class e{constructor(){}ngOnInit(){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=$e({type:e,selectors:[["pdf-find-previous"]],decls:5,vars:0,consts:[["type","button","id","findPrevious","title","Find the previous occurrence of the phrase","data-l10n-id","find_previous",1,"toolbarButton"],["viewBox","0 0 24 24",2,"width","24px","height","24px"],["fill","currentColor","d","M15.41,16.58L10.83,12L15.41,7.41L14,6L8,12L14,18L15.41,16.58Z"],["data-l10n-id","find_previous_label"]],template:function(e,t){1&e&&(Hr(0,"button",0),dn(),Hr(1,"svg",1),Ur(2,"path",2),jr(),un(),Hr(3,"span",3),Da(4,"Previous"),jr(),jr())},styles:["button.toolbarButton#findPrevious[_ngcontent-%COMP%]{margin-top:0}"]}),e})(),vk=(()=>{class e{constructor(){}ngOnInit(){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=$e({type:e,selectors:[["pdf-find-results-count"]],decls:1,vars:0,consts:[["id","findResultsCount",1,"toolbarLabel","hidden"]],template:function(e,t){1&e&&Ur(0,"span",0)},styles:[""]}),e})(),yk=(()=>{class e{constructor(e){this.notificationService=e,this.disableFirstPage=!0;const t=this.notificationService.onPDFJSInit.subscribe(()=>{this.onPdfJsInit(),t.unsubscribe()})}firstPage(){window.PDFViewerApplication.eventBus.dispatch("firstpage")}onPdfJsInit(){window.PDFViewerApplication.eventBus.on("updateuistate",e=>this.updateUIState(e))}updateUIState(e){this.disableFirstPage=e.pageNumber<=1,this.button.nativeElement.disabled=this.disableFirstPage}}return e.\u0275fac=function(t){return new(t||e)(zr(WS))},e.\u0275cmp=$e({type:e,selectors:[["pdf-first-page"]],viewQuery:function(e,t){if(1&e&&Tc(AS,1),2&e){let e;Mc(e=Rc())&&(t.button=e.first)}},decls:6,vars:1,consts:[["type","button","title","First page","id","primaryFirstPage","data-l10n-id","first_page",1,"toolbarButton","hiddenLargeView",3,"disabled","click"],["button",""],["viewBox","0 0 24 24",2,"width","24px","height","24px"],["fill","currentColor","d","M18.41,16.59L13.82,12L18.41,7.41L17,6L11,12L17,18L18.41,16.59M6,6H8V18H6V6Z"],["data-l10n-id","first_page_label"]],template:function(e,t){1&e&&(Hr(0,"button",0,1),Xr("click",function(){return t.firstPage()}),dn(),Hr(2,"svg",2),Ur(3,"path",3),jr(),un(),Hr(4,"span",4),Da(5,"First page"),jr(),jr()),2&e&&Vr("disabled",t.disableFirstPage)},styles:[""]}),e})(),wk=(()=>{class e{constructor(e){this.notificationService=e,this.disableLastPage=!0;const t=this.notificationService.onPDFJSInit.subscribe(()=>{this.onPdfJsInit(),t.unsubscribe()})}firstPage(){window.PDFViewerApplication.eventBus.dispatch("firstpage")}onPdfJsInit(){window.PDFViewerApplication.eventBus.on("updateuistate",e=>this.updateUIState(e))}updateUIState(e){this.disableLastPage=e.pageNumber===e.pagesCount,this.button.nativeElement.disabled=this.disableLastPage}lastPage(){window.PDFViewerApplication.eventBus.dispatch("lastpage")}}return e.\u0275fac=function(t){return new(t||e)(zr(WS))},e.\u0275cmp=$e({type:e,selectors:[["pdf-last-page"]],viewQuery:function(e,t){if(1&e&&Tc(AS,1),2&e){let e;Mc(e=Rc())&&(t.button=e.first)}},decls:6,vars:1,consts:[["type","button","title","Last page","id","primaryLastPage","data-l10n-id","last_page",1,"toolbarButton","hiddenLargeView",3,"disabled","click"],["button",""],["viewBox","0 0 24 24",2,"width","24px","height","24px"],["fill","currentColor","d","M5.59,7.41L10.18,12L5.59,16.59L7,18L13,12L7,6L5.59,7.41M16,6H18V18H16V6Z"],["data-l10n-id","last_page_label"]],template:function(e,t){1&e&&(Hr(0,"button",0,1),Xr("click",function(){return t.lastPage()}),dn(),Hr(2,"svg",2),Ur(3,"path",3),jr(),un(),Hr(4,"span",4),Da(5,"Last page"),jr(),jr()),2&e&&Vr("disabled",t.disableLastPage)},styles:[""]}),e})(),_k=(()=>{class e{constructor(){}ngOnInit(){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=$e({type:e,selectors:[["pdf-next-page"]],decls:5,vars:0,consts:[["type","button","title","Next Page","id","next","data-l10n-id","next",1,"toolbarButton"],["viewBox","0 0 24 24",2,"width","24px","height","24px"],["fill","currentColor","d","M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z"],["data-l10n-id","next_label"]],template:function(e,t){1&e&&(Hr(0,"button",0),dn(),Hr(1,"svg",1),Ur(2,"path",2),jr(),un(),Hr(3,"span",3),Da(4,"Next"),jr(),jr())},styles:[""]}),e})(),xk=(()=>{class e{constructor(){this.showOpenFileButton=!0}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=$e({type:e,selectors:[["pdf-open-file"]],inputs:{showOpenFileButton:"showOpenFileButton"},decls:5,vars:2,consts:[["type","button","id","openFile","title","Open File","data-l10n-id","open_file",1,"toolbarButton","hiddenMediumView"],["viewBox","0 0 24 24",2,"width","24px","height","20px"],["fill","currentColor","d","M14,2L20,8V20A2,2 0 0,1 18,22H6A2,2 0 0,1 4,20V4A2,2 0 0,1 6,2H14M18,20V9H13V4H6V20H18M12,12L16,16H13.5V19H10.5V16H8L12,12Z"],["data-l10n-id","open_file_label"]],template:function(e,t){1&e&&(Hr(0,"button",0),dn(),Hr(1,"svg",1),Ur(2,"path",2),jr(),un(),Hr(3,"span",3),Da(4,"Open"),jr(),jr()),2&e&&ma("invisible",!t.showOpenFileButton)},styles:[CS]}),e})(),Ak=(()=>{class e{constructor(){this.showPagingButtons=!0}ngOnInit(){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=$e({type:e,selectors:[["pdf-page-number"]],inputs:{showPagingButtons:"showPagingButtons"},decls:2,vars:4,consts:[["type","number","id","pageNumber","title","Page","value","1","size","4","min","1","data-l10n-id","page",1,"toolbarField","pageNumber"],["id","numPages",1,"toolbarLabel","hiddenXLView"]],template:function(e,t){1&e&&(Ur(0,"input",0),Ur(1,"span",1)),2&e&&(ma("invisible",!t.showPagingButtons),no(1),ma("invisible",!t.showPagingButtons))},styles:[""]}),e})(),Ck=(()=>{class e{constructor(){this.showPagingButtons=!0}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=$e({type:e,selectors:[["pdf-paging-area"]],inputs:{showPagingButtons:"showPagingButtons"},decls:7,vars:5,consts:[[1,"paging-left","hiddenTinyView"],[2,"margin-right","-3px"],[2,"margin-left","-3px"],[3,"showPagingButtons"],[1,"paging-right","hiddenTinyView"],[2,"margin-right","-3px","margin-left","-3px"]],template:function(e,t){1&e&&(Hr(0,"div",0),Ur(1,"pdf-first-page",1),Ur(2,"pdf-previous-page",2),jr(),Ur(3,"pdf-page-number",3),Hr(4,"div",4),Ur(5,"pdf-next-page",5),Ur(6,"pdf-last-page",2),jr()),2&e&&(ma("invisible",!t.showPagingButtons),no(3),Vr("showPagingButtons",t.showPagingButtons),no(1),ma("invisible",!t.showPagingButtons))},directives:function(){return[yk,kk,Ak,_k,wk]},styles:[".paging-right[_ngcontent-%COMP%]{float:right;display:block;margin-top:-2px}.paging-left[_ngcontent-%COMP%]{float:left;display:block;margin-top:-2px}"]}),e})(),Sk=(()=>{class e{constructor(){this.showPresentationModeButton=!0}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=$e({type:e,selectors:[["pdf-presentation-mode"]],inputs:{showPresentationModeButton:"showPresentationModeButton"},decls:5,vars:2,consts:[["type","button","id","presentationMode","title","Switch to Presentation Mode","data-l10n-id","presentation_mode",1,"toolbarButton","hiddenLargeView"],["viewBox","0 0 24 24",2,"width","27px","height","27px"],["fill","currentColor","d","M5,5H10V7H7V10H5V5M14,5H19V10H17V7H14V5M17,14H19V19H14V17H17V14M10,17V19H5V14H7V17H10Z"],["data-l10n-id","presentation_mode_label"]],template:function(e,t){1&e&&(Hr(0,"button",0),dn(),Hr(1,"svg",1),Ur(2,"path",2),jr(),un(),Hr(3,"span",3),Da(4,"Presentation Mode"),jr(),jr()),2&e&&ma("invisible",!t.showPresentationModeButton)},styles:["[_nghost-%COMP%]   button.toolbarButton[_ngcontent-%COMP%]{margin-top:0}[_nghost-%COMP%]:focus{outline:0}button[_ngcontent-%COMP%]:focus, svg[_ngcontent-%COMP%]:focus{outline:0}"]}),e})(),kk=(()=>{class e{constructor(){}ngOnInit(){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=$e({type:e,selectors:[["pdf-previous-page"]],decls:5,vars:0,consts:[["type","button","title","Previous Page","id","previous","data-l10n-id","previous",1,"toolbarButton"],["viewBox","0 0 24 24",2,"width","24px","height","24px"],["fill","currentColor","d","M15.41,16.58L10.83,12L15.41,7.41L14,6L8,12L14,18L15.41,16.58Z"],["data-l10n-id","previous_label"]],template:function(e,t){1&e&&(Hr(0,"button",0),dn(),Hr(1,"svg",1),Ur(2,"path",2),jr(),un(),Hr(3,"span",3),Da(4,"Previous"),jr(),jr())},styles:[""]}),e})(),Pk=(()=>{class e{constructor(){this.showPrintButton=!0}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=$e({type:e,selectors:[["pdf-print"]],inputs:{showPrintButton:"showPrintButton"},decls:5,vars:2,consts:[["type","button","id","print","title","Print","data-l10n-id","print",1,"toolbarButton","hiddenSmallView"],["viewBox","0 0 24 24",2,"width","22px","height","22px"],["fill","currentColor","d","M18,3H6V7H18M19,12A1,1 0 0,1 18,11A1,1 0 0,1 19,10A1,1 0 0,1 20,11A1,1 0 0,1 19,12M16,19H8V14H16M19,8H5A3,3 0 0,0 2,11V17H6V21H18V17H22V11A3,3 0 0,0 19,8Z"],["data-l10n-id","print_label"]],template:function(e,t){1&e&&(Hr(0,"button",0),dn(),Hr(1,"svg",1),Ur(2,"path",2),jr(),un(),Hr(3,"span",3),Da(4,"Print"),jr(),jr()),2&e&&ma("invisible",!t.showPrintButton)},styles:[PS]}),e})(),Ek=(()=>{class e{constructor(e){this.notificationService=e,this.showRotateButton=!0,this.disableRotate=!0;const t=this.notificationService.onPDFJSInit.subscribe(()=>{this.onPdfJsInit(),t.unsubscribe()})}rotateCW(){window.PDFViewerApplication.eventBus.dispatch("rotatecw")}rotateCCW(){window.PDFViewerApplication.eventBus.dispatch("rotateccw")}onPdfJsInit(){window.PDFViewerApplication.eventBus.on("updateuistate",e=>this.updateUIState(e))}updateUIState(e){this.disableRotate=0===e.pagesCount,this.button1.nativeElement.disabled=this.disableRotate,this.button2.nativeElement.disabled=this.disableRotate}}return e.\u0275fac=function(t){return new(t||e)(zr(WS))},e.\u0275cmp=$e({type:e,selectors:[["pdf-rotate-page"]],viewQuery:function(e,t){if(1&e&&(Tc(SS,1),Tc(kS,1)),2&e){let e;Mc(e=Rc())&&(t.button1=e.first),Mc(e=Rc())&&(t.button2=e.first)}},inputs:{showRotateButton:"showRotateButton"},decls:8,vars:6,consts:[["type","button","id","primaryPageRotateCw","title","Rotate Clockwise","data-l10n-id","page_rotate_cw",1,"toolbarButton","hiddenXLView","rotateCw",3,"disabled","click"],["button1",""],["viewBox","0 0 24 24",2,"width","23px","height","23px"],["fill","currentColor","d","M12 3C7.03 3 3 7.03 3 12S7.03 21 12 21C14 21 15.92 20.34 17.5 19.14L16.06 17.7C14.87 18.54 13.45 19 12 19C8.13 19 5 15.87 5 12S8.13 5 12 5 19 8.13 19 12H16L20 16L24 12H21C21 7.03 16.97 3 12 3"],["type","button","id","primaryPageRotateCcw","title","Rotate Counterclockwise","data-l10n-id","page_rotate_ccw",1,"toolbarButton","hiddenXLView","rotateCcw",3,"disabled","click"],["button2",""],["fill","currentColor","d","M12 3C7.03 3 3 7.03 3 12H0L4 16L8 12H5C5 8.13 8.13 5 12 5S19 8.13 19 12 15.87 19 12 19C10.55 19 9.13 18.54 7.94 17.7L6.5 19.14C8.08 20.34 10 21 12 21C16.97 21 21 16.97 21 12S16.97 3 12 3"]],template:function(e,t){1&e&&(Hr(0,"button",0,1),Xr("click",function(){return t.rotateCW()}),dn(),Hr(2,"svg",2),Ur(3,"path",3),jr(),jr(),un(),Hr(4,"button",4,5),Xr("click",function(){return t.rotateCCW()}),dn(),Hr(6,"svg",2),Ur(7,"path",6),jr(),jr()),2&e&&(ma("invisible",!t.showRotateButton),Vr("disabled",t.disableRotate),no(4),ma("invisible",!t.showRotateButton),Vr("disabled",t.disableRotate))},styles:[PS]}),e})(),Dk=(()=>{class e{constructor(e){this.pdfFindbarService=e}}return e.\u0275fac=function(t){return new(t||e)(zr(gk))},e.\u0275cmp=$e({type:e,selectors:[["pdf-search-input-field"]],decls:2,vars:5,consts:[["autocomplete","search-input-field","id","findInput","title","Find","data-l10n-id","find_input","name","search-input-field",1,"toolbarField",3,"placeholder"],["id","findInputMultiline","type","checkbox","placeholder","Multiple search terms. Each line is a search term.","data-l10n-id","find_input_line_by_line","lines","3",1,"toolbarField"]],template:function(e,t){1&e&&(Ur(0,"input",0),Ur(1,"textarea",1)),2&e&&(ma("hidden",!t.pdfFindbarService.individualWordsMode),Vr("placeholder","Find in document\u2026"),no(1),ma("hidden",t.pdfFindbarService.individualWordsMode))},styles:["textarea[_ngcontent-%COMP%]{width:200px;height:3.5em}textarea[_ngcontent-%COMP%]::-webkit-input-placeholder{color:#bfbfbf}textarea[_ngcontent-%COMP%]::-moz-placeholder{font-style:italic}textarea[_ngcontent-%COMP%]:-ms-input-placeholder{font-style:italic}textarea[_ngcontent-%COMP%]::-ms-input-placeholder{font-style:italic}textarea[_ngcontent-%COMP%]::placeholder{font-style:italic}"]}),e})(),Ok=(()=>{class e{constructor(){this.showSecondaryToolbarButton=!0}ngOnInit(){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=$e({type:e,selectors:[["pdf-toggle-secondary-toolbar"]],inputs:{showSecondaryToolbarButton:"showSecondaryToolbarButton"},decls:5,vars:2,consts:[["type","button","id","secondaryToolbarToggle","title","Tools","data-l10n-id","tools",1,"toolbarButton"],["viewBox","0 0 24 24","onclick","event.preventDefault(); return false;",2,"width","27px","height","27px"],["fill","currentColor","d","M3,6H21V8H3V6M3,11H21V13H3V11M3,16H21V18H3V16Z"],["data-l10n-id","tools_label"]],template:function(e,t){1&e&&(Hr(0,"button",0),dn(),Hr(1,"svg",1),Ur(2,"path",2),jr(),un(),Hr(3,"span",3),Da(4,"Tools"),jr(),jr()),2&e&&ma("invisible",!t.showSecondaryToolbarButton)},styles:["svg[_ngcontent-%COMP%]{margin-top:-3px}[_nghost-%COMP%]:focus{outline:0}button[_ngcontent-%COMP%]:focus, svg[_ngcontent-%COMP%]:focus{outline:0}"]}),e})(),Mk=(()=>{class e{constructor(){this.showSidebarButton=!0}ngOnInit(){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=$e({type:e,selectors:[["pdf-toggle-sidebar"]],inputs:{showSidebarButton:"showSidebarButton"},decls:5,vars:2,consts:[["type","button","id","sidebarToggle","title","Toggle Sidebar","data-l10n-id","toggle_sidebar",1,"toolbarButton"],["viewBox","0 0 24 24",2,"width","24px","height","24px"],["fill","currentColor","d","M3,9H17V7H3V9M3,13H17V11H3V13M3,17H17V15H3V17M19,17H21V15H19V17M19,7V9H21V7H19M19,13H21V11H19V13Z"],["data-l10n-id","toggle_sidebar_label"]],template:function(e,t){1&e&&(Hr(0,"button",0),dn(),Hr(1,"svg",1),Ur(2,"path",2),jr(),un(),Hr(3,"span",3),Da(4,"Toggle Sidebar"),jr(),jr()),2&e&&ma("invisible",!t.showSidebarButton)},styles:[ES]}),e})(),Tk=(()=>{class e{constructor(){this.mobileFriendlyZoomScale=1,this.primaryMenuVisible=!0,this.showBookmarkButton=!0,this.showDownloadButton=!0,this.showFindButton=void 0,this.showHandToolButton=!0,this.showOpenFileButton=!0,this.showPrintButton=!0,this.showPagingButtons=!0,this.showPresentationModeButton=!1,this.showRotateButton=!0,this.showSecondaryToolbarButton=!0,this.showSidebarButton=!0,this.showZoomButtons=!0,this.textLayer=void 0,this.toolbarPaddingTop="0px",this.toolbarWidth="100%",this.zoomLevels=["auto","page-actual","page-fit","page-width",.5,.75,1,1.25,1.5,2,3,4]}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=$e({type:e,selectors:[["pdf-toolbar"]],inputs:{mobileFriendlyZoomScale:"mobileFriendlyZoomScale",primaryMenuVisible:"primaryMenuVisible",showBookmarkButton:"showBookmarkButton",showDownloadButton:"showDownloadButton",showFindButton:"showFindButton",showHandToolButton:"showHandToolButton",showOpenFileButton:"showOpenFileButton",showPrintButton:"showPrintButton",showPagingButtons:"showPagingButtons",showPresentationModeButton:"showPresentationModeButton",showRotateButton:"showRotateButton",showSecondaryToolbarButton:"showSecondaryToolbarButton",showSidebarButton:"showSidebarButton",showZoomButtons:"showZoomButtons",textLayer:"textLayer",toolbarPaddingTop:"toolbarPaddingTop",toolbarWidth:"toolbarWidth",zoomLevels:"zoomLevels",customToolbar:"customToolbar"},ngContentSelectors:uS,decls:8,vars:11,consts:[[1,"toolbar"],["id","toolbarContainer"],[4,"ngTemplateOutlet"],["id","loadingBar"],[1,"progress"],[1,"glimmer"],["defaultToolbar",""],["id","toolbarViewer"],["id","toolbarViewerLeft"],[3,"showSidebarButton"],[3,"showFindButton","textLayer"],[3,"showPagingButtons"],[3,"showZoomButtons","zoomLevels"],["id","toolbarViewerRight"],[3,"showHandToolButton"],[3,"showSelectToolButton"],[3,"showRotateButton"],[3,"showPresentationModeButton"],[3,"showOpenFileButton"],[3,"showPrintButton"],[3,"showDownloadButton"],[3,"showBookmarkButton"],[3,"showSecondaryToolbarButton"]],template:function(e,t){if(1&e&&(sa(),Hr(0,"div",0),Hr(1,"div",1),Fr(2,DS,1,0,"ng-content",2),Hr(3,"div",3),Hr(4,"div",4),Ur(5,"div",5),jr(),jr(),jr(),jr(),Fr(6,OS,16,15,"ng-template",null,6,zc)),2&e){const e=Br(7);ma("invisible",!t.primaryMenuVisible),no(1),fa("transform","scale("+t.mobileFriendlyZoomScale+")")("transform-origin","left center")("width",t.toolbarWidth)("padding-top",t.toolbarPaddingTop),no(1),Vr("ngTemplateOutlet",t.customToolbar?t.customToolbar:e)}},directives:function(){return[Ku,Mk,ak,Ck,Fk,XS,Bk,Ek,Sk,xk,Pk,tk,KS,Ok]},styles:[""]}),e})(),Ik=(()=>{class e{constructor(){this._zoomLevels=[]}set zoomLevels(e){this._zoomLevels=e.map(e=>this.valueToZoomLevel(e))}ngOnInit(){}valueToZoomLevel(e){e.toString().endsWith("%")&&(e=e.toString().replace("%",""),e=Number(e)/100);const t=Number(e);if(!t){const t=String(e);return{id:this.snakeToCamel(e+"Option"),value:t,dataL10nId:"page_scale_"+t.replace("page-",""),dataL10nArgs:void 0,displayValue:t}}const n=Math.round(100*t);return{id:"scale_"+n,value:String(t),dataL10nId:"page_scale_percent",dataL10nArgs:`{ "scale": ${n} }`,displayValue:String(n)+"%"}}snakeToCamel(e){return e.replace(/([-_][a-z])/g,e=>e.toUpperCase().replace("-","").replace("_",""))}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=$e({type:e,selectors:[["pdf-zoom-dropdown"]],viewQuery:function(e,t){if(1&e&&Tc(MS,1),2&e){let e;Mc(e=Rc())&&(t.sizeSelector=e.first)}},inputs:{zoomLevels:"zoomLevels"},decls:5,vars:1,consts:[["id","scaleSelectContainer",1,"dropdownToolbarButton"],["id","scaleSelect","title","Zoom","data-l10n-id","zoom"],["sizeSelector",""],[3,"id",4,"ngFor","ngForOf"],["id","customScaleOption","title","","value","custom","disabled","disabled","hidden","true"],[3,"id"]],template:function(e,t){1&e&&(Hr(0,"span",0),Hr(1,"select",1,2),Fr(3,TS,2,5,"option",3),Ur(4,"option",4),jr(),jr()),2&e&&(no(3),Vr("ngForOf",t._zoomLevels))},directives:[ju,qm,Xm],styles:[".dropdownToolbarButton[_ngcontent-%COMP%]{display:table-cell;-webkit-appearance:none;width:150px;max-width:150px}.dropdownToolbarButton[_ngcontent-%COMP%] > select[_ngcontent-%COMP%]{width:170px}@media screen and (-webkit-min-device-pixel-ratio:1.1),screen and (min-resolution:1.1dppx){.dropdownToolbarButton[_ngcontent-%COMP%]::after{top:-1px}}"]}),e})(),Rk=(()=>{class e{constructor(){}ngOnInit(){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=$e({type:e,selectors:[["pdf-zoom-in"]],decls:4,vars:0,consts:[["type","button","id","zoomIn","title","Zoom In","data-l10n-id","zoom_in",1,"toolbarButton","zoomIn"],["data-l10n-id","zoom_in_label"]],template:function(e,t){1&e&&(Hr(0,"button",0),Da(1," + "),Hr(2,"span",1),Da(3,"Zoom In"),jr(),jr())},styles:[""]}),e})(),Lk=(()=>{class e{constructor(){}ngOnInit(){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=$e({type:e,selectors:[["pdf-zoom-out"]],decls:4,vars:0,consts:[["type","button","id","zoomOut","title","Zoom Out","data-l10n-id","zoom_out",1,"toolbarButton","zoomOut",2,"margin-top","2px"],["data-l10n-id","zoom_out_label"]],template:function(e,t){1&e&&(Hr(0,"button",0),Da(1," - "),Hr(2,"span",1),Da(3,"Zoom Out"),jr(),jr())},styles:[""]}),e})(),Fk=(()=>{class e{constructor(){this.showZoomButtons=!0,this.zoomLevels=["auto","page-actual","page-fit","page-width",.5,.75,1,1.25,1.5,2,3,4]}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=$e({type:e,selectors:[["pdf-zoom-toolbar"]],inputs:{showZoomButtons:"showZoomButtons",zoomLevels:"zoomLevels"},decls:4,vars:3,consts:[["id","toolbarViewerMiddle"],[2,"width","unset","max-width","unset","padding-top","3px",3,"zoomLevels"]],template:function(e,t){1&e&&(Hr(0,"div",0),Ur(1,"pdf-zoom-out"),Ur(2,"pdf-zoom-in"),Ur(3,"pdf-zoom-dropdown",1),jr()),2&e&&(ma("invisible",!t.showZoomButtons),no(3),Vr("zoomLevels",t.zoomLevels))},directives:[Lk,Rk,Ik],styles:[""]}),e})(),Bk=(()=>{class e{constructor(e){this.notificationService=e,this.showSelectToolButton=!0,this.isSelected=!0;const t=this.notificationService.onPDFJSInit.subscribe(()=>{this.onPdfJsInit(),t.unsubscribe()})}onPdfJsInit(){window.PDFViewerApplication.eventBus.on("cursortoolchanged",({tool:e})=>this.isSelected=e===$S.SELECT)}onClick(){window.PDFViewerApplication.eventBus.dispatch("switchcursortool",{tool:$S.SELECT})}}return e.\u0275fac=function(t){return new(t||e)(zr(WS))},e.\u0275cmp=$e({type:e,selectors:[["pdf-select-tool"]],inputs:{showSelectToolButton:"showSelectToolButton"},decls:5,vars:4,consts:[["type","button","id","primaryCursorSelectTool","title","Enable text selection tool","data-l10n-id","cursor_text_select_tool",1,"toolbarButton","hiddenXXLView",3,"click"],["viewBox","0 0 24 24",2,"width","22px","height","22px"],["fill","currentColor","d","M2 4C2 2.89 2.9 2 4 2H7V4H4V7H2V4M22 4V7H20V4H17V2H20C21.1 2 22 2.89 22 4M2 20V17H4V20H7V22H4C2.9 22 2 21.11 2 20M10 2H14V4H10V2M10 20H14V22H10V20M2 10H4V14H2V10M18.5 13C20.4 13 22 14.6 22 16.5C22 19.1 18.5 23 18.5 23C18.5 23 15 19.1 15 16.5C15 14.6 16.6 13 18.5 13M18.5 17.8C19.2 17.8 19.8 17.2 19.7 16.6C19.7 16 19.1 15.4 18.5 15.4C17.9 15.4 17.3 15.9 17.3 16.6C17.3 17.2 17.8 17.8 18.5 17.8M20 10H22V12.34C21.42 11.84 20.74 11.45 20 11.23V10Z"],["data-l10n-id","cursor_text_select_tool_label"]],template:function(e,t){1&e&&(Hr(0,"button",0),Xr("click",function(){return t.onClick()}),dn(),Hr(1,"svg",1),Ur(2,"path",2),jr(),un(),Hr(3,"span",3),Da(4,"Text selection tool"),jr(),jr()),2&e&&ma("invisible",!t.showSelectToolButton)("toggled",t.isSelected)},styles:["[_nghost-%COMP%]{margin-top:0;margin-right:-3px}[_nghost-%COMP%]:focus{outline:0}button[_ngcontent-%COMP%]:focus, svg[_ngcontent-%COMP%]:focus{outline:0}.toggled[_ngcontent-%COMP%]{background-color:#646464;border-color:rgba(0,0,0,.4) rgba(0,0,0,.45) rgba(0,0,0,.5);box-shadow:0 1px 1px rgba(0,0,0,.1) inset,0 0 1px rgba(0,0,0,.2) inset,0 1px 0 rgba(255,255,255,.05)}"]}),e})(),zk=(()=>{class e{constructor(e,t){this.renderer=e,this.document=t,this.zoom=1,this.width=100,this.xs=490,this.sm=560,this.md=610,this.lg=660,this.xl=740,this.xxl=830}get style(){return`\n@media all and (max-width: ${this.xl}px) {\n  #toolbarViewerMiddle {\n    display: table;\n    margin: auto;\n    left: auto;\n    position: inherit;\n    transform: none;\n  }\n}\n\n@media all and (max-width: 840px) {\n  #sidebarContent {\n    background-color: rgba(0, 0, 0, 0.7);\n  }\n\n  html[dir='ltr'] #outerContainer.sidebarOpen #viewerContainer {\n    left: 0px !important;\n  }\n  html[dir='rtl'] #outerContainer.sidebarOpen #viewerContainer {\n    right: 0px !important;\n  }\n\n  #outerContainer .hiddenLargeView,\n  #outerContainer .hiddenMediumView {\n    display: inherit;\n  }\n  #outerContainer .visibleLargeView,\n  #outerContainer .visibleMediumView {\n    display: none;\n  }\n}\n\n@media all and (max-width: ${this.lg}px) {\n  .toolbarButtonSpacer {\n    width: 15px;\n  }\n\n  #outerContainer .hiddenLargeView {\n    display: none;\n  }\n  #outerContainer .visibleLargeView {\n    display: inherit;\n  }\n}\n\n@media all and (max-width: ${this.md}px) {\n  .toolbarButtonSpacer {\n    display: none;\n  }\n  #outerContainer .hiddenMediumView {\n    display: none;\n  }\n  #outerContainer .visibleMediumView {\n    display: inherit;\n  }\n}\n\n@media all and (max-width: ${this.sm}px) {\n  .hiddenSmallView,\n  .hiddenSmallView * {\n    display: none;\n  }\n  .visibleSmallView {\n    display: inherit;\n  }\n  .toolbarButtonSpacer {\n    width: 0;\n  }\n  html[dir='ltr'] .findbar {\n    left: 38px;\n  }\n  html[dir='rtl'] .findbar {\n    right: 38px;\n  }\n}\n\n@media all and (max-width: ${this.xs}px) {\n  #scaleSelectContainer {\n    display: none;\n  }\n}\n\n.visibleXLView,\n.visibleXXLView,\n.visibleTinyView {\n  display: none;\n}\n\n.hiddenXLView,\n.hiddenXXLView {\n  display: unset;\n}\n\n@media all and (max-width: ${this.xl}px) {\n  #outerContainer .hiddenXLView {\n    display: none;\n  }\n  #outerContainer .visibleXLView {\n    display: inherit;\n  }\n\n  #toolbarViewerMiddle {\n    -webkit-transform: translateX(-36%);\n    transform: translateX(-36%);\n    display: unset;\n    margin: unset;\n    left: 50%;\n    position: absolute;\n  }\n}\n\n@media all and (max-width: ${this.xxl}px) {\n  #outerContainer .hiddenXXLView {\n    display: none;\n  }\n  #outerContainer .visibleXXLView {\n    display: inherit;\n  }\n}\n\n@media all and (max-width: ${this.md}px) {\n  #toolbarViewerMiddle {\n    -webkit-transform: translateX(-26%);\n    transform: translateX(-26%);\n  }\n}\n\n@media all and (max-width: ${this.xs}px) {\n  .hiddenTinyView,\n  .hiddenTinyView * {\n    display: none;\n  }\n  .visibleTinyView {\n    display: inherit;\n  }\n}\n  `}ngOnInit(){this.injectStyle()}ngOnChanges(){const e=this.document.body.clientWidth/this.width*(this.zoom?this.zoom:1);this.xs=490*e,this.sm=560*e,this.md=610*e,this.lg=660*e,this.xl=740*e,this.xxl=830*e;const t=this.document.getElementById("pdf-dynamic-css");t&&(t.innerHTML=this.style)}injectStyle(){const e=this.document.createElement("STYLE");e.id="pdf-dynamic-css",e.innerHTML=this.style,this.renderer.appendChild(this.document.head,e)}ngOnDestroy(){const e=this.document.getElementById("pdf-dynamic-css");e&&e.parentElement&&e.parentElement.removeChild(e)}}return e.\u0275fac=function(t){return new(t||e)(zr(cl),zr(Hd))},e.\u0275cmp=$e({type:e,selectors:[["pdf-dynamic-css"]],inputs:{zoom:"zoom",width:"width"},features:[dt],decls:0,vars:0,template:function(e,t){},styles:[""]}),e})(),Vk=(()=>{class e{constructor(){this.thumbnailDrawn=new yc,this.top="32px",this._hideSidebarToolbar=!1,window.pdfThumbnailGeneratorReady=()=>this.pdfThumbnailGeneratorReady(),window.pdfThumbnailGenerator=(e,t,n,i,s)=>this.createThumbnail(e,t,n,i,s)}ngOnDestroy(){this.linkService=void 0}pdfThumbnailGeneratorReady(){if(!this.thumbnailViewTemplate)return!1;const e=this.thumbnailViewTemplate.nativeElement;return!!e&&!!e.innerHTML&&e.innerHTML.length>0}createThumbnail(e,t,n,i,s){this.linkService=t;const o=this.thumbnailViewTemplate.nativeElement.innerHTML.split(/_ng\w+-\w+-\w+=""/g).join("").split(/ng-\w+-\w+/g).join("").split(/<!--[\s\S]*?-->/g).join(""),r=e.canvasWidth+2+"px",a=e.canvasHeight+2+"px",l=o.split("WIDTH_OF_RING").join(r).split("HEIGHT_OF_RING").join(a).split("PAGE_NUMBER").join(n),c=this.createElementFromHTML(l);c.classList.remove("pdf-viewer-template");const d=c;d.href=t.getAnchorUrl("#page="+n),s.then(e=>{d.title=e}),d.onclick=function(){return t.page=n,!1},e.anchor=d;const u=c.getElementsByClassName("image-container")[0];e.ring=u,e.div=c.getElementsByClassName("thumbnail")[0],i.appendChild(c),this.thumbnailDrawn.emit({thumbnail:c,container:i,pageId:n})}createElementFromHTML(e){const t=document.createElement("div");return t.innerHTML=e.trim(),t.firstChild}onKeyDown(e){"ArrowDown"===e.code?this.linkService&&(e.ctrlKey||e.metaKey?this.linkService.page=this.linkService.pagesCount:this.linkService.page<this.linkService.pagesCount&&(this.linkService.page=this.linkService.page+1),e.preventDefault()):"ArrowUp"===e.code&&this.linkService&&(e.ctrlKey||e.metaKey?this.linkService.page=1:this.linkService.page>1&&(this.linkService.page=this.linkService.page-1),e.preventDefault())}set hideSidebarToolbar(e){this._hideSidebarToolbar=e,this.top=this._hideSidebarToolbar?"0":"32px"}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=$e({type:e,selectors:[["pdf-sidebar-content"]],viewQuery:function(e,t){if(1&e&&Tc(IS,1),2&e){let e;Mc(e=Rc())&&(t.thumbnailViewTemplate=e.first)}},inputs:{hideSidebarToolbar:"hideSidebarToolbar",customThumbnail:"customThumbnail"},outputs:{thumbnailDrawn:"thumbnailDrawn"},ngContentSelectors:uS,decls:10,vars:3,consts:[["id","sidebarContent"],["thumbnailViewTemplate",""],[4,"ngTemplateOutlet"],["id","thumbnailView",3,"keydown"],["id","outlineView",1,"hidden"],["id","attachmentsView",1,"hidden"],["id","layersView",1,"hidden"],["defaultThumbnail",""],[1,"pdf-viewer-template"],["data-page-number","$page",1,"thumbnail"],[1,"thumbnailSelectionRing","image-container",2,"width","WIDTH_OF_RING","height","HEIGHT_OF_RING"]],template:function(e,t){if(1&e&&(sa(),Hr(0,"div",0),Hr(1,"div",null,1),Fr(3,RS,1,0,"ng-content",2),jr(),Hr(4,"div",3),Xr("keydown",function(e){return t.onKeyDown(e)}),jr(),Ur(5,"div",4),Ur(6,"div",5),Ur(7,"div",6),jr(),Fr(8,LS,3,0,"ng-template",null,7,zc)),2&e){const e=Br(9);fa("top",t.top),no(3),Vr("ngTemplateOutlet",t.customThumbnail?t.customThumbnail:e)}},directives:[Ku],styles:[""]}),e})(),Nk=(()=>{class e{constructor(){}ngOnInit(){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=$e({type:e,selectors:[["pdf-sidebar-toolbar"]],decls:21,vars:0,consts:[["id","toolbarSidebar"],["type","button","id","viewThumbnail","title","Show Thumbnails","data-l10n-id","thumbs",1,"toolbarButton","toggled"],["data-l10n-id","thumbs_label"],["viewBox","0 0 24 24",2,"width","20px","height","20px"],["fill","currentColor","d","M19,19H5V5H19M19,3H5A2,2 0 0,0 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5A2,2 0 0,0 19,3M13.96,12.29L11.21,15.83L9.25,13.47L6.5,17H17.5L13.96,12.29Z"],["type","button","id","viewOutline","title","Show Document Outline (double-click to expand/collapse all items)","data-l10n-id","document_outline","hidden","true",1,"toolbarButton"],["data-l10n-id","document_outline_label"],["fill","currentColor","d","M3,9H17V7H3V9M3,13H17V11H3V13M3,17H17V15H3V17M19,17H21V15H19V17M19,7V9H21V7H19M19,13H21V11H19V13Z"],["type","button","id","viewAttachments","title","Show Attachments","data-l10n-id","attachments","hidden","true",1,"toolbarButton"],["data-l10n-id","attachments_label"],["fill","currentColor","d","M16.5,6V17.5A4,4 0 0,1 12.5,21.5A4,4 0 0,1 8.5,17.5V5A2.5,2.5 0 0,1 11,2.5A2.5,2.5 0 0,1 13.5,5V15.5A1,1 0 0,1 12.5,16.5A1,1 0 0,1 11.5,15.5V6H10V15.5A2.5,2.5 0 0,0 12.5,18A2.5,2.5 0 0,0 15,15.5V5A4,4 0 0,0 11,1A4,4 0 0,0 7,5V17.5A5.5,5.5 0 0,0 12.5,23A5.5,5.5 0 0,0 18,17.5V6H16.5Z"],["id","viewLayers","title","Show Layers (double-click to reset all layers to the default state)","data-l10n-id","layers","hidden","true",1,"toolbarButton"],["data-l10n-id","layers_label"],["xmlns","http://www.w3.org/2000/svg","fill","currentColor","viewBox","0 0 4.233 4.233",2,"width","20px","height","20px"],["d","M.15 2.992c-.198.1-.2.266-.002.365l1.604.802a.93.93 0 00.729-.001l1.602-.801c.198-.1.197-.264 0-.364l-.695-.348c-1.306.595-2.542 0-2.542 0m-.264.53l.658-.329c.6.252 1.238.244 1.754 0l.659.329-1.536.768zM.15 1.935c-.198.1-.198.265 0 .364l1.604.802a.926.926 0 00.727 0l1.603-.802c.198-.099.198-.264 0-.363l-.694-.35c-1.14.56-2.546.001-2.546.001m-.264.53l.664-.332c.52.266 1.261.235 1.75.002l.659.33-1.537.768zM.15.877c-.198.099-.198.264 0 .363l1.604.802a.926.926 0 00.727 0l1.603-.802c.198-.099.198-.264 0-.363L2.481.075a.926.926 0 00-.727 0zm.43.182L2.117.29l1.538.769-1.538.768z"]],template:function(e,t){1&e&&(Hr(0,"div",0),Hr(1,"button",1),Hr(2,"span",2),Da(3,"Thumbnails"),jr(),dn(),Hr(4,"svg",3),Ur(5,"path",4),jr(),jr(),un(),Hr(6,"button",5),Hr(7,"span",6),Da(8,"Document Outline"),jr(),dn(),Hr(9,"svg",3),Ur(10,"path",7),jr(),jr(),un(),Hr(11,"button",8),Hr(12,"span",9),Da(13,"Attachments"),jr(),dn(),Hr(14,"svg",3),Ur(15,"path",10),jr(),jr(),un(),Hr(16,"button",11),Hr(17,"span",12),Da(18,"Layers"),jr(),dn(),Hr(19,"svg",13),Ur(20,"path",14),jr(),jr(),jr())},styles:["button[_ngcontent-%COMP%]{margin-right:4px!important}div#toolbarSidebar[_ngcontent-%COMP%] > button[_ngcontent-%COMP%]:first-child{margin-left:4px!important}"]}),e})(),Hk=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=$e({type:e,selectors:[["pdf-light-theme"]],decls:0,vars:0,template:function(e,t){},styles:["ngx-extended-pdf-viewer .dropdownToolbarButton::after{content:url(\"data:image/svg+xml; utf8, <svg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'><path fill='rgb(90, 90, 90)' d='M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z' /></svg>\")}ngx-extended-pdf-viewer .textLayer{position:absolute;left:0;top:0;right:0;bottom:0;overflow:hidden;opacity:.2;line-height:1}ngx-extended-pdf-viewer .textLayer>span{color:transparent;position:absolute;white-space:pre;cursor:text;-webkit-transform-origin:0 0;transform-origin:0 0}ngx-extended-pdf-viewer .textLayer .highlight{margin:-1px;padding:1px;background-color:var(#b400aa);border-radius:4px}ngx-extended-pdf-viewer .textLayer .highlight.begin{border-radius:4px 0 0 4px}ngx-extended-pdf-viewer .textLayer .highlight.end{border-radius:0 4px 4px 0}ngx-extended-pdf-viewer .textLayer .highlight.middle{border-radius:0}ngx-extended-pdf-viewer .textLayer .highlight.selected{background-color:#006400}ngx-extended-pdf-viewer .textLayer ::-moz-selection{background:#00f}ngx-extended-pdf-viewer .textLayer ::selection{background:#00f}ngx-extended-pdf-viewer .textLayer .endOfContent{display:block;position:absolute;left:0;top:100%;right:0;bottom:0;z-index:-1;cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}ngx-extended-pdf-viewer .textLayer .endOfContent.active{top:0}ngx-extended-pdf-viewer .annotationLayer section{position:absolute}ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.pushButton>a,ngx-extended-pdf-viewer .annotationLayer .linkAnnotation>a{position:absolute;font-size:1em;top:0;left:0;width:100%;height:100%}ngx-extended-pdf-viewer .annotationLayer .textAnnotation img{position:absolute;cursor:pointer}ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.checkBox input,ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.radioButton input,ngx-extended-pdf-viewer .annotationLayer .choiceWidgetAnnotation select,ngx-extended-pdf-viewer .annotationLayer .textWidgetAnnotation input,ngx-extended-pdf-viewer .annotationLayer .textWidgetAnnotation textarea{background-color:rgba(0,54,255,.13);color:#5a5a5a;border:1px solid transparent;box-sizing:border-box;font-size:9px;height:100%;margin:0;padding:0 3px;vertical-align:top;width:100%}ngx-extended-pdf-viewer .annotationLayer .choiceWidgetAnnotation select option{padding:0}ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.radioButton input{border-radius:50%}ngx-extended-pdf-viewer .annotationLayer .textWidgetAnnotation textarea{font:message-box;font-size:9px;resize:none}ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.checkBox input[disabled],ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.radioButton input[disabled],ngx-extended-pdf-viewer .annotationLayer .choiceWidgetAnnotation select[disabled],ngx-extended-pdf-viewer .annotationLayer .textWidgetAnnotation input[disabled],ngx-extended-pdf-viewer .annotationLayer .textWidgetAnnotation textarea[disabled]{background:0 0;border:1px solid transparent;cursor:not-allowed}ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after,ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before,ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.radioButton input:checked:before{background-color:#5a5a5a;content:'';display:block;position:absolute}ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after,ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before{height:80%;left:45%;width:1px}ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before{-webkit-transform:rotate(45deg);transform:rotate(45deg)}ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after{-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.radioButton input:checked:before{border-radius:50%;height:50%;left:30%;top:20%;width:50%}ngx-extended-pdf-viewer .annotationLayer .textWidgetAnnotation input.comb{font-family:monospace;padding-left:2px;padding-right:0}ngx-extended-pdf-viewer .annotationLayer .textWidgetAnnotation input.comb:focus{width:115%}ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.checkBox input,ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.radioButton input{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:0}ngx-extended-pdf-viewer .annotationLayer .popupWrapper{position:absolute;width:20em}ngx-extended-pdf-viewer .annotationLayer .popup{position:absolute;z-index:4;max-width:20em;background-color:#ff9;box-shadow:0 2px 5px #888;border-radius:2px;padding:6px;margin-left:5px;cursor:pointer;font:message-box;font-size:9px;word-wrap:break-word}ngx-extended-pdf-viewer .annotationLayer .popup>*{font-size:9px}ngx-extended-pdf-viewer .annotationLayer .popup h1{display:inline-block}ngx-extended-pdf-viewer .annotationLayer .popup span{display:inline-block;margin-left:5px}ngx-extended-pdf-viewer .annotationLayer .popup p{border-top:1px solid #333;margin-top:2px;padding-top:2px}ngx-extended-pdf-viewer .annotationLayer .caretAnnotation,ngx-extended-pdf-viewer .annotationLayer .circleAnnotation svg ellipse,ngx-extended-pdf-viewer .annotationLayer .fileAttachmentAnnotation,ngx-extended-pdf-viewer .annotationLayer .freeTextAnnotation,ngx-extended-pdf-viewer .annotationLayer .highlightAnnotation,ngx-extended-pdf-viewer .annotationLayer .inkAnnotation svg polyline,ngx-extended-pdf-viewer .annotationLayer .lineAnnotation svg line,ngx-extended-pdf-viewer .annotationLayer .polygonAnnotation svg polygon,ngx-extended-pdf-viewer .annotationLayer .polylineAnnotation svg polyline,ngx-extended-pdf-viewer .annotationLayer .squareAnnotation svg rect,ngx-extended-pdf-viewer .annotationLayer .squigglyAnnotation,ngx-extended-pdf-viewer .annotationLayer .stampAnnotation,ngx-extended-pdf-viewer .annotationLayer .strikeoutAnnotation,ngx-extended-pdf-viewer .annotationLayer .underlineAnnotation{cursor:pointer}ngx-extended-pdf-viewer .pdfViewer .canvasWrapper{overflow:hidden}ngx-extended-pdf-viewer .pdfViewer .page{direction:ltr;width:816px;height:1056px;margin:1px auto -8px;position:relative;overflow:visible;border:9px solid transparent;background-clip:content-box;-o-border-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAATCAQAAADYWf5HAAAA6UlEQVR4Xl2Pi2rEMAwE16fm1f7/r14v7w4rI0IzLAF7hLxNevBSEMEF5+OilNCsRd8ZMyn+a4NmsOT8WJw1lFbSYgGFzF2bLFoLjTClWjKKGRWpDYAGXUnZ4uhbBUzF3Oe/GG/ue2fn4GgsyXhNgysV2JnrhKEMg4fEZcALmiKbNhBBRFpSyDOj1G4QOVly6O1FV54ZZq8OVygrciDt6JazRgi1ljTPH0gbrPmHPXAbCiDd4GawIjip1TPh9tt2sz24qaCjr/jAb/GBFTbq9KZ7Ke/Cqt8nayUikZKsWZK7Fe6bg5dOUt8fZHWG2BHc+6EAAAAASUVORK5CYII=) 9 9 repeat;border-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAATCAQAAADYWf5HAAAA6UlEQVR4Xl2Pi2rEMAwE16fm1f7/r14v7w4rI0IzLAF7hLxNevBSEMEF5+OilNCsRd8ZMyn+a4NmsOT8WJw1lFbSYgGFzF2bLFoLjTClWjKKGRWpDYAGXUnZ4uhbBUzF3Oe/GG/ue2fn4GgsyXhNgysV2JnrhKEMg4fEZcALmiKbNhBBRFpSyDOj1G4QOVly6O1FV54ZZq8OVygrciDt6JazRgi1ljTPH0gbrPmHPXAbCiDd4GawIjip1TPh9tt2sz24qaCjr/jAb/GBFTbq9KZ7Ke/Cqt8nayUikZKsWZK7Fe6bg5dOUt8fZHWG2BHc+6EAAAAASUVORK5CYII=) 9 9 repeat;background-color:#fff}ngx-extended-pdf-viewer .pdfViewer.removePageBorders .page{margin:0 auto 10px;border:none}ngx-extended-pdf-viewer .pdfViewer.singlePageView{display:inline-block}ngx-extended-pdf-viewer .pdfViewer.singlePageView .page{margin:0;border:none}ngx-extended-pdf-viewer .pdfViewer.scrollHorizontal,ngx-extended-pdf-viewer .pdfViewer.scrollWrapped,ngx-extended-pdf-viewer .spread{margin-left:3.5px;margin-right:3.5px;text-align:center}ngx-extended-pdf-viewer .pdfViewer.scrollHorizontal,ngx-extended-pdf-viewer .spread{white-space:nowrap}ngx-extended-pdf-viewer .pdfViewer.removePageBorders,ngx-extended-pdf-viewer .pdfViewer.scrollHorizontal .spread,ngx-extended-pdf-viewer .pdfViewer.scrollWrapped .spread{margin-left:0;margin-right:0}ngx-extended-pdf-viewer .pdfViewer.scrollHorizontal .page,ngx-extended-pdf-viewer .pdfViewer.scrollHorizontal .spread,ngx-extended-pdf-viewer .pdfViewer.scrollWrapped .page,ngx-extended-pdf-viewer .pdfViewer.scrollWrapped .spread,ngx-extended-pdf-viewer .spread .page{display:inline-block;vertical-align:middle}ngx-extended-pdf-viewer .pdfViewer.scrollHorizontal .page,ngx-extended-pdf-viewer .pdfViewer.scrollWrapped .page,ngx-extended-pdf-viewer .spread .page{margin-left:-3.5px;margin-right:-3.5px}ngx-extended-pdf-viewer .pdfViewer.removePageBorders .spread .page,ngx-extended-pdf-viewer .pdfViewer.removePageBorders.scrollHorizontal .page,ngx-extended-pdf-viewer .pdfViewer.removePageBorders.scrollWrapped .page{margin-left:5px;margin-right:5px}ngx-extended-pdf-viewer .pdfViewer .page canvas{margin:0;display:block}ngx-extended-pdf-viewer .pdfViewer .page canvas[hidden]{display:none}ngx-extended-pdf-viewer .pdfViewer .page .loadingIcon{position:absolute;display:block;left:0;top:0;right:0;bottom:0;background:url(data:image/gif;base64,R0lGODlhGAAYAPQAAP///wAAAM7Ozvr6+uDg4LCwsOjo6I6OjsjIyJycnNjY2KioqMDAwPLy8nZ2doaGhri4uGhoaAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH/C05FVFNDQVBFMi4wAwEAAAAh/hpDcmVhdGVkIHdpdGggYWpheGxvYWQuaW5mbwAh+QQJBwAAACwAAAAAGAAYAAAFriAgjiQAQWVaDgr5POSgkoTDjFE0NoQ8iw8HQZQTDQjDn4jhSABhAAOhoTqSDg7qSUQwxEaEwwFhXHhHgzOA1xshxAnfTzotGRaHglJqkJcaVEqCgyoCBQkJBQKDDXQGDYaIioyOgYSXA36XIgYMBWRzXZoKBQUMmil0lgalLSIClgBpO0g+s26nUWddXyoEDIsACq5SsTMMDIECwUdJPw0Mzsu0qHYkw72bBmozIQAh+QQJBwAAACwAAAAAGAAYAAAFsCAgjiTAMGVaDgR5HKQwqKNxIKPjjFCk0KNXC6ATKSI7oAhxWIhezwhENTCQEoeGCdWIPEgzESGxEIgGBWstEW4QCGGAIJEoxGmGt5ZkgCRQQHkGd2CESoeIIwoMBQUMP4cNeQQGDYuNj4iSb5WJnmeGng0CDGaBlIQEJziHk3sABidDAHBgagButSKvAAoyuHuUYHgCkAZqebw0AgLBQyyzNKO3byNuoSS8x8OfwIchACH5BAkHAAAALAAAAAAYABgAAAW4ICCOJIAgZVoOBJkkpDKoo5EI43GMjNPSokXCINKJCI4HcCRIQEQvqIOhGhBHhUTDhGo4diOZyFAoKEQDxra2mAEgjghOpCgz3LTBIxJ5kgwMBShACREHZ1V4Kg1rS44pBAgMDAg/Sw0GBAQGDZGTlY+YmpyPpSQDiqYiDQoCliqZBqkGAgKIS5kEjQ21VwCyp76dBHiNvz+MR74AqSOdVwbQuo+abppo10ssjdkAnc0rf8vgl8YqIQAh+QQJBwAAACwAAAAAGAAYAAAFrCAgjiQgCGVaDgZZFCQxqKNRKGOSjMjR0qLXTyciHA7AkaLACMIAiwOC1iAxCrMToHHYjWQiA4NBEA0Q1RpWxHg4cMXxNDk4OBxNUkPAQAEXDgllKgMzQA1pSYopBgonCj9JEA8REQ8QjY+RQJOVl4ugoYssBJuMpYYjDQSliwasiQOwNakALKqsqbWvIohFm7V6rQAGP6+JQLlFg7KDQLKJrLjBKbvAor3IKiEAIfkECQcAAAAsAAAAABgAGAAABbUgII4koChlmhokw5DEoI4NQ4xFMQoJO4uuhignMiQWvxGBIQC+AJBEUyUcIRiyE6CR0CllW4HABxBURTUw4nC4FcWo5CDBRpQaCoF7VjgsyCUDYDMNZ0mHdwYEBAaGMwwHDg4HDA2KjI4qkJKUiJ6faJkiA4qAKQkRB3E0i6YpAw8RERAjA4tnBoMApCMQDhFTuySKoSKMJAq6rD4GzASiJYtgi6PUcs9Kew0xh7rNJMqIhYchACH5BAkHAAAALAAAAAAYABgAAAW0ICCOJEAQZZo2JIKQxqCOjWCMDDMqxT2LAgELkBMZCoXfyCBQiFwiRsGpku0EshNgUNAtrYPT0GQVNRBWwSKBMp98P24iISgNDAS4ipGA6JUpA2WAhDR4eWM/CAkHBwkIDYcGiTOLjY+FmZkNlCN3eUoLDmwlDW+AAwcODl5bYl8wCVYMDw5UWzBtnAANEQ8kBIM0oAAGPgcREIQnVloAChEOqARjzgAQEbczg8YkWJq8nSUhACH5BAkHAAAALAAAAAAYABgAAAWtICCOJGAYZZoOpKKQqDoORDMKwkgwtiwSBBYAJ2owGL5RgxBziQQMgkwoMkhNqAEDARPSaiMDFdDIiRSFQowMXE8Z6RdpYHWnEAWGPVkajPmARVZMPUkCBQkJBQINgwaFPoeJi4GVlQ2Qc3VJBQcLV0ptfAMJBwdcIl+FYjALQgimoGNWIhAQZA4HXSpLMQ8PIgkOSHxAQhERPw7ASTSFyCMMDqBTJL8tf3y2fCEAIfkECQcAAAAsAAAAABgAGAAABa8gII4k0DRlmg6kYZCoOg5EDBDEaAi2jLO3nEkgkMEIL4BLpBAkVy3hCTAQKGAznM0AFNFGBAbj2cA9jQixcGZAGgECBu/9HnTp+FGjjezJFAwFBQwKe2Z+KoCChHmNjVMqA21nKQwJEJRlbnUFCQlFXlpeCWcGBUACCwlrdw8RKGImBwktdyMQEQciB7oACwcIeA4RVwAODiIGvHQKERAjxyMIB5QlVSTLYLZ0sW8hACH5BAkHAAAALAAAAAAYABgAAAW0ICCOJNA0ZZoOpGGQrDoOBCoSxNgQsQzgMZyIlvOJdi+AS2SoyXrK4umWPM5wNiV0UDUIBNkdoepTfMkA7thIECiyRtUAGq8fm2O4jIBgMBA1eAZ6Knx+gHaJR4QwdCMKBxEJRggFDGgQEREPjjAMBQUKIwIRDhBDC2QNDDEKoEkDoiMHDigICGkJBS2dDA6TAAnAEAkCdQ8ORQcHTAkLcQQODLPMIgIJaCWxJMIkPIoAt3EhACH5BAkHAAAALAAAAAAYABgAAAWtICCOJNA0ZZoOpGGQrDoOBCoSxNgQsQzgMZyIlvOJdi+AS2SoyXrK4umWHM5wNiV0UN3xdLiqr+mENcWpM9TIbrsBkEck8oC0DQqBQGGIz+t3eXtob0ZTPgNrIwQJDgtGAgwCWSIMDg4HiiUIDAxFAAoODwxDBWINCEGdSTQkCQcoegADBaQ6MggHjwAFBZUFCm0HB0kJCUy9bAYHCCPGIwqmRq0jySMGmj6yRiEAIfkECQcAAAAsAAAAABgAGAAABbIgII4k0DRlmg6kYZCsOg4EKhLE2BCxDOAxnIiW84l2L4BLZKipBopW8XRLDkeCiAMyMvQAA+uON4JEIo+vqukkKQ6RhLHplVGN+LyKcXA4Dgx5DWwGDXx+gIKENnqNdzIDaiMECwcFRgQCCowiCAcHCZIlCgICVgSfCEMMnA0CXaU2YSQFoQAKUQMMqjoyAglcAAyBAAIMRUYLCUkFlybDeAYJryLNk6xGNCTQXY0juHghACH5BAkHAAAALAAAAAAYABgAAAWzICCOJNA0ZVoOAmkY5KCSSgSNBDE2hDyLjohClBMNij8RJHIQvZwEVOpIekRQJyJs5AMoHA+GMbE1lnm9EcPhOHRnhpwUl3AsknHDm5RN+v8qCAkHBwkIfw1xBAYNgoSGiIqMgJQifZUjBhAJYj95ewIJCQV7KYpzBAkLLQADCHOtOpY5PgNlAAykAEUsQ1wzCgWdCIdeArczBQVbDJ0NAqyeBb64nQAGArBTt8R8mLuyPyEAOwAAAAAAAAAAAA==) center no-repeat}ngx-extended-pdf-viewer .pdfPresentationMode .pdfViewer{margin-left:0;margin-right:0}ngx-extended-pdf-viewer .pdfPresentationMode .pdfViewer .page,ngx-extended-pdf-viewer .pdfPresentationMode .pdfViewer .spread{display:block}ngx-extended-pdf-viewer .pdfPresentationMode .pdfViewer .page,ngx-extended-pdf-viewer .pdfPresentationMode .pdfViewer.removePageBorders .page{margin-left:auto;margin-right:auto}ngx-extended-pdf-viewer .pdfPresentationMode:-ms-fullscreen .pdfViewer .page{margin-bottom:100%!important}ngx-extended-pdf-viewer .pdfPresentationMode:-webkit-full-screen .pdfViewer .page{margin-bottom:100%;border:0}ngx-extended-pdf-viewer .pdfPresentationMode:-moz-full-screen .pdfViewer .page{margin-bottom:100%;border:0}ngx-extended-pdf-viewer .pdfPresentationMode:fullscreen .pdfViewer .page{margin-bottom:100%;border:0}ngx-extended-pdf-viewer .html *{padding:0;margin:0}ngx-extended-pdf-viewer .html{height:100%;width:100%;font-size:10px}ngx-extended-pdf-viewer .body{height:100%;width:100%}ngx-extended-pdf-viewer .body,ngx-extended-pdf-viewer .pdf-viewer button,ngx-extended-pdf-viewer .pdf-viewer input,ngx-extended-pdf-viewer .pdf-viewer select{font:message-box;outline:0}ngx-extended-pdf-viewer select{background-color:#fff!important}ngx-extended-pdf-viewer .hidden,ngx-extended-pdf-viewer [hidden]{display:none!important}ngx-extended-pdf-viewer .pdfViewer.enablePermissions .textLayer>span{-webkit-user-select:none!important;-moz-user-select:none!important;-ms-user-select:none!important;user-select:none!important;cursor:not-allowed}ngx-extended-pdf-viewer #viewerContainer.pdfPresentationMode:-ms-fullscreen{top:0!important;overflow:hidden!important}ngx-extended-pdf-viewer #viewerContainer.pdfPresentationMode:-ms-fullscreen::-ms-backdrop{background-color:#f9f9f9}ngx-extended-pdf-viewer #viewerContainer.pdfPresentationMode:-webkit-full-screen{top:0;border-top:2px solid transparent;background-color:#f9f9f9;width:100%;height:100%;overflow:hidden;cursor:none;-webkit-user-select:none;user-select:none}ngx-extended-pdf-viewer #viewerContainer.pdfPresentationMode:-moz-full-screen{top:0;border-top:2px solid transparent;background-color:#f9f9f9;width:100%;height:100%;overflow:hidden;cursor:none;-moz-user-select:none;user-select:none}ngx-extended-pdf-viewer #viewerContainer.pdfPresentationMode:-ms-fullscreen{border-top:2px solid transparent;background-color:#f9f9f9;width:100%;height:100%;cursor:none;-ms-user-select:none;user-select:none}ngx-extended-pdf-viewer #viewerContainer.pdfPresentationMode:fullscreen{top:0;border-top:2px solid transparent;background-color:#f9f9f9;width:100%;height:100%;overflow:hidden;cursor:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}ngx-extended-pdf-viewer .pdfPresentationMode:-webkit-full-screen a:not(.internalLink){display:none}ngx-extended-pdf-viewer .pdfPresentationMode:-moz-full-screen a:not(.internalLink){display:none}ngx-extended-pdf-viewer .pdfPresentationMode:-ms-fullscreen a:not(.internalLink){display:none}ngx-extended-pdf-viewer .pdfPresentationMode:fullscreen a:not(.internalLink){display:none}ngx-extended-pdf-viewer .pdfPresentationMode:-webkit-full-screen .textLayer>span{cursor:none}ngx-extended-pdf-viewer .pdfPresentationMode:-moz-full-screen .textLayer>span{cursor:none}ngx-extended-pdf-viewer .pdfPresentationMode:-ms-fullscreen .textLayer>span{cursor:none}ngx-extended-pdf-viewer .pdfPresentationMode:fullscreen .textLayer>span{cursor:none}ngx-extended-pdf-viewer .pdfPresentationMode.pdfPresentationModeControls .textLayer>span,ngx-extended-pdf-viewer .pdfPresentationMode.pdfPresentationModeControls>*{cursor:default}ngx-extended-pdf-viewer #outerContainer{width:100%;height:100%;position:relative;-webkit-clip-path:inset(0 0 0 0);clip-path:inset(0 0 0 0)}ngx-extended-pdf-viewer #sidebarContainer{position:absolute;top:32px;bottom:0;width:200px;visibility:hidden;z-index:2;border-top:1px solid #333;transition-duration:.2s;transition-timing-function:ease}html[dir=ltr] ngx-extended-pdf-viewer #sidebarContainer{transition-property:left;left:-200px;left:calc(0px - $sidebar-width)}html[dir=rtl] ngx-extended-pdf-viewer #sidebarContainer{transition-property:right;right:-200px;right:calc(0px - $sidebar-width)}ngx-extended-pdf-viewer .loadingInProgress #sidebarContainer{top:36px}ngx-extended-pdf-viewer #outerContainer.sidebarResizing #sidebarContainer{transition-duration:0s;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}ngx-extended-pdf-viewer #outerContainer.sidebarMoving #sidebarContainer,ngx-extended-pdf-viewer #outerContainer.sidebarOpen #sidebarContainer{visibility:visible}html[dir=ltr] ngx-extended-pdf-viewer #outerContainer.sidebarOpen #sidebarContainer{left:0}html[dir=rtl] ngx-extended-pdf-viewer #outerContainer.sidebarOpen #sidebarContainer{right:0}ngx-extended-pdf-viewer #mainContainer{position:absolute;top:0;right:0;bottom:0;left:0;min-width:320px}ngx-extended-pdf-viewer #sidebarContent{top:32px;bottom:0;overflow:auto;-webkit-overflow-scrolling:touch;position:absolute;width:100%;background-color:#e3e1e6}html[dir=ltr] ngx-extended-pdf-viewer #sidebarContent{left:0}html[dir=rtl] ngx-extended-pdf-viewer #sidebarContent{right:0}ngx-extended-pdf-viewer #viewerContainer{-webkit-overflow-scrolling:touch;top:32px;right:0;bottom:0;left:0;outline:0}ngx-extended-pdf-viewer #viewerContainer:not(.pdfPresentationMode){transition-duration:.2s;transition-timing-function:ease}ngx-extended-pdf-viewer #outerContainer.sidebarResizing #viewerContainer{transition-duration:0s}html[dir=ltr] ngx-extended-pdf-viewer #outerContainer.sidebarOpen #viewerContainer:not(.pdfPresentationMode){transition-property:left;left:200px}html[dir=rtl] ngx-extended-pdf-viewer #outerContainer.sidebarOpen #viewerContainer:not(.pdfPresentationMode){transition-property:right;right:200px}ngx-extended-pdf-viewer .toolbar{position:relative;left:0;right:0;z-index:7;cursor:default;border:1px solid #ddd}ngx-extended-pdf-viewer #toolbarContainer{width:100%}ngx-extended-pdf-viewer #toolbarSidebar{width:100%;height:32px;background-color:var(#e3e1e6);color:#5a5a5a;border:none;padding-top:1px}ngx-extended-pdf-viewer #sidebarResizer{position:absolute;top:0;bottom:0;width:6px;z-index:4;cursor:ew-resize}html[dir=ltr] ngx-extended-pdf-viewer #sidebarResizer{right:-6px}html[dir=rtl] ngx-extended-pdf-viewer #sidebarResizer{left:-6px}ngx-extended-pdf-viewer #toolbarContainer,ngx-extended-pdf-viewer .findbar,ngx-extended-pdf-viewer .secondaryToolbar{position:relative;height:32px;background-color:#f9f9f9}ngx-extended-pdf-viewer #toolbarViewer{height:32px}ngx-extended-pdf-viewer #loadingBar{position:relative;width:100%;height:4px;background-color:#333;border-bottom:1px solid #333}ngx-extended-pdf-viewer #loadingBar .progress{position:absolute;top:0;left:0;width:0%;height:100%;background-color:#ddd;overflow:hidden;transition:width .2s}@-webkit-keyframes progressIndeterminate{0%{left:-142px}100%{left:0}}@keyframes progressIndeterminate{0%{left:-142px}100%{left:0}}ngx-extended-pdf-viewer #loadingBar .progress.indeterminate{background-color:#999;transition:none}ngx-extended-pdf-viewer #loadingBar .progress.indeterminate .glimmer{position:absolute;top:0;left:0;height:100%;width:calc(100% + 150px);background:repeating-linear-gradient(135deg,#bbb 0,#999 5px,#999 45px,#ddd 55px,#ddd 95px,#bbb 100px);-webkit-animation:950ms linear infinite progressIndeterminate;animation:950ms linear infinite progressIndeterminate}ngx-extended-pdf-viewer .findbar,ngx-extended-pdf-viewer .secondaryToolbar{top:40px;position:absolute;z-index:7;height:auto;min-width:16px;padding:0 6px;margin:4px 2px;color:#5a5a5a;font-size:12px;line-height:14px;text-align:left;cursor:default}ngx-extended-pdf-viewer .findbar{min-width:300px}ngx-extended-pdf-viewer .findbar>div{height:32px}ngx-extended-pdf-viewer .findbar.wrapContainers>div{clear:both}ngx-extended-pdf-viewer .findbar.wrapContainers>div#findbarMessageContainer{height:auto}html[dir=ltr] ngx-extended-pdf-viewer .findbar{left:34px}html[dir=rtl] ngx-extended-pdf-viewer .findbar{right:34px}ngx-extended-pdf-viewer .findbar label{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}ngx-extended-pdf-viewer #findInput{width:200px}ngx-extended-pdf-viewer #findInput::-webkit-input-placeholder{color:#bfbfbf}ngx-extended-pdf-viewer #findInput::-moz-placeholder{font-style:italic}ngx-extended-pdf-viewer #findInput:-ms-input-placeholder{font-style:italic}ngx-extended-pdf-viewer #findInput::-ms-input-placeholder{font-style:italic}ngx-extended-pdf-viewer #findInput::placeholder{font-style:italic}ngx-extended-pdf-viewer #findInput[data-status=pending]{background-repeat:no-repeat;background-position:right}html[dir=rtl] ngx-extended-pdf-viewer #findInput[data-status=pending]{background-position:left}ngx-extended-pdf-viewer .secondaryToolbar{padding:6px;height:auto;z-index:8}html[dir=ltr] ngx-extended-pdf-viewer .secondaryToolbar{right:4px}html[dir=rtl] ngx-extended-pdf-viewer .secondaryToolbar{left:4px}ngx-extended-pdf-viewer #secondaryToolbarButtonContainer{max-width:200px;max-height:400px;overflow-y:auto;-webkit-overflow-scrolling:touch;margin-bottom:-4px}ngx-extended-pdf-viewer #secondaryToolbarButtonContainer.hiddenScrollModeButtons>.scrollModeButtons,ngx-extended-pdf-viewer #secondaryToolbarButtonContainer.hiddenSpreadModeButtons>.spreadModeButtons{display:none!important}ngx-extended-pdf-viewer .doorHanger,ngx-extended-pdf-viewer .doorHangerRight{border:1px solid rgba(0,0,0,.5);border-radius:2px}ngx-extended-pdf-viewer .doorHanger:after,ngx-extended-pdf-viewer .doorHanger:before,ngx-extended-pdf-viewer .doorHangerRight:after,ngx-extended-pdf-viewer .doorHangerRight:before{bottom:100%;border:solid transparent;content:' ';height:0;width:0;position:absolute;pointer-events:none}ngx-extended-pdf-viewer .doorHanger:after,ngx-extended-pdf-viewer .doorHangerRight:after{border-bottom-color:#f9f9f9;border-width:8px}ngx-extended-pdf-viewer .doorHanger:before,ngx-extended-pdf-viewer .doorHangerRight:before{border-bottom-color:rgba(0,0,0,.5);border-width:9px}html[dir=ltr] ngx-extended-pdf-viewer .doorHanger:after,html[dir=rtl] ngx-extended-pdf-viewer .doorHangerRight:after{left:13px;margin-left:-8px}html[dir=ltr] ngx-extended-pdf-viewer .doorHanger:before,html[dir=rtl] ngx-extended-pdf-viewer .doorHangerRight:before{left:13px;margin-left:-9px}html[dir=ltr] ngx-extended-pdf-viewer .doorHangerRight:after,html[dir=rtl] ngx-extended-pdf-viewer .doorHanger:after{right:13px;margin-right:-8px}html[dir=ltr] ngx-extended-pdf-viewer .doorHangerRight:before,html[dir=rtl] ngx-extended-pdf-viewer .doorHanger:before{right:13px;margin-right:-9px}ngx-extended-pdf-viewer #findResultsCount{background-color:#5a5a5a;color:#f9f9f9;text-align:center;padding:3px 4px}ngx-extended-pdf-viewer #findMsg{font-style:italic;color:#f66}ngx-extended-pdf-viewer #findMsg:empty{display:none}ngx-extended-pdf-viewer #findInput.notFound{background-color:#f66}ngx-extended-pdf-viewer #toolbarViewerMiddle{position:absolute;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%)}html[dir=ltr] ngx-extended-pdf-viewer #toolbarViewerLeft,html[dir=rtl] ngx-extended-pdf-viewer #toolbarViewerRight{float:left;margin-left:4px}html[dir=ltr] ngx-extended-pdf-viewer #toolbarViewerRight,html[dir=rtl] ngx-extended-pdf-viewer #toolbarViewerLeft{float:right;margin-right:4px}html[dir=ltr] ngx-extended-pdf-viewer #toolbarViewerLeft>*,html[dir=ltr] ngx-extended-pdf-viewer #toolbarViewerMiddle>*,html[dir=ltr] ngx-extended-pdf-viewer #toolbarViewerRight>*,html[dir=ltr] ngx-extended-pdf-viewer .findbar *{position:relative;float:left}html[dir=rtl] ngx-extended-pdf-viewer #toolbarViewerLeft>*,html[dir=rtl] ngx-extended-pdf-viewer #toolbarViewerMiddle>*,html[dir=rtl] ngx-extended-pdf-viewer #toolbarViewerRight>*,html[dir=rtl] ngx-extended-pdf-viewer .findbar *{position:relative;float:right}ngx-extended-pdf-viewer .overlayButton,ngx-extended-pdf-viewer .secondaryToolbarButton,ngx-extended-pdf-viewer .toolbarButton{border:0;background:0 0;width:32px;height:25px}ngx-extended-pdf-viewer .toolbarButton>span{display:inline-block;width:0;height:0;overflow:hidden}ngx-extended-pdf-viewer .overlayButton[disabled],ngx-extended-pdf-viewer .secondaryToolbarButton[disabled],ngx-extended-pdf-viewer .toolbarButton[disabled]{opacity:.5}ngx-extended-pdf-viewer .dropdownToolbarButton,ngx-extended-pdf-viewer .overlayButton,ngx-extended-pdf-viewer .secondaryToolbarButton,ngx-extended-pdf-viewer .toolbarButton{min-width:16px;padding:2px 6px 0;border:1px solid transparent;border-radius:2px;color:#5a5a5a;font-size:12px;line-height:14px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}html[dir=rtl] ngx-extended-pdf-viewer .dropdownToolbarButton,html[dir=rtl] ngx-extended-pdf-viewer .overlayButton,html[dir=rtl] ngx-extended-pdf-viewer .toolbarButton{margin:3px 0 4px 2px}ngx-extended-pdf-viewer .dropdownToolbarButton,ngx-extended-pdf-viewer .overlayButton{background-color:rgba(0,0,0,.2);background-clip:padding-box;border:1px solid rgba(0,0,0,.4)}ngx-extended-pdf-viewer .secondaryToolbarButton.toggled,ngx-extended-pdf-viewer .toolbarButton.toggled{background-color:rgba(0,0,0,.2);border-color:rgba(0,0,0,.4)}ngx-extended-pdf-viewer .dropdownToolbarButton{width:140px;padding:0;overflow:hidden}html[dir=ltr] ngx-extended-pdf-viewer .dropdownToolbarButton::after{right:8px}html[dir=rtl] ngx-extended-pdf-viewer .dropdownToolbarButton::after{left:8px}ngx-extended-pdf-viewer .dropdownToolbarButton>select{width:162px;height:23px;font-size:12px;color:#5a5a5a;margin:0;padding:3px 2px 2px;border:none;background-color:#fff}ngx-extended-pdf-viewer .dropdownToolbarButton>select>option{background:#f9f9f9}ngx-extended-pdf-viewer #customScaleOption{display:none}html[dir=ltr] ngx-extended-pdf-viewer .toolbarButton:first-child,html[dir=rtl] ngx-extended-pdf-viewer .toolbarButton:last-child{margin-left:4px}ngx-extended-pdf-viewer .toolbarButtonSpacer{width:30px;display:inline-block;height:1px}html[dir=ltr] ngx-extended-pdf-viewer #findPrevious,html[dir=rtl] ngx-extended-pdf-viewer #findNext{margin-left:3px}html[dir=ltr] ngx-extended-pdf-viewer #findNext,html[dir=rtl] ngx-extended-pdf-viewer #findPrevious{margin-right:3px}ngx-extended-pdf-viewer .secondaryToolbarButton::before,ngx-extended-pdf-viewer .toolbarButton::before{position:absolute;display:inline-block;top:4px;left:7px}ngx-extended-pdf-viewer .toolbarButton.zoomOut{font-size:30px}ngx-extended-pdf-viewer .toolbarButton.zoomIn{font-size:24px}ngx-extended-pdf-viewer .secondaryToolbarButton.bookmark,ngx-extended-pdf-viewer .toolbarButton.bookmark{box-sizing:border-box;outline:0;padding-top:4px;text-decoration:none}ngx-extended-pdf-viewer .secondaryToolbarButton.bookmark{padding-top:5px}ngx-extended-pdf-viewer .bookmark[href='#']{opacity:.5;pointer-events:none}ngx-extended-pdf-viewer .toolbarButton.pdfSidebarNotification::after{position:absolute;display:inline-block;top:1px;content:'';background-color:#70db55;height:9px;width:9px;border-radius:50%}html[dir=ltr] ngx-extended-pdf-viewer .toolbarButton.pdfSidebarNotification::after{left:17px}html[dir=rtl] ngx-extended-pdf-viewer .toolbarButton.pdfSidebarNotification::after{right:17px}ngx-extended-pdf-viewer .secondaryToolbarButton{position:relative;margin:0 0 4px;padding:3px 0 1px;height:auto;min-height:25px;width:auto;min-width:100%;white-space:normal}html[dir=ltr] ngx-extended-pdf-viewer .secondaryToolbarButton{padding-left:24px;text-align:left}html[dir=rtl] ngx-extended-pdf-viewer .secondaryToolbarButton{padding-right:24px;text-align:right}html[dir=ltr] ngx-extended-pdf-viewer .secondaryToolbarButton.bookmark{padding-left:27px}html[dir=rtl] ngx-extended-pdf-viewer .secondaryToolbarButton.bookmark{padding-right:27px}html[dir=ltr] ngx-extended-pdf-viewer .secondaryToolbarButton>span{padding-right:4px}html[dir=rtl] ngx-extended-pdf-viewer .secondaryToolbarButton>span{padding-left:4px}ngx-extended-pdf-viewer .toolbarField{padding:3px 6px;margin:4px 0;border-radius:2px;background-color:#fff;background-clip:padding-box;color:#5a5a5a;font-size:12px;line-height:14px;outline-style:none;border:1px solid rgba(0,0,0,.4)}ngx-extended-pdf-viewer .toolbarField[type=checkbox]{display:inline-block;margin:8px 0}ngx-extended-pdf-viewer .toolbarField.pageNumber{-moz-appearance:textfield;min-width:16px;text-align:right;width:40px}ngx-extended-pdf-viewer .toolbarField.pageNumber.visiblePageIsLoading{background-repeat:no-repeat;background-position:1px}ngx-extended-pdf-viewer .toolbarField.pageNumber::-webkit-inner-spin-button,ngx-extended-pdf-viewer .toolbarField.pageNumber::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}ngx-extended-pdf-viewer .toolbarLabel{min-width:16px;padding:3px 6px 3px 2px;margin:4px 2px 4px 0;border:1px solid transparent;border-radius:2px;color:#5a5a5a;font-size:12px;line-height:14px;text-align:left;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}ngx-extended-pdf-viewer #thumbnailView{position:absolute;width:calc(100% - 60px);top:0;bottom:0;padding:10px 30px 0;overflow:auto;-webkit-overflow-scrolling:touch}ngx-extended-pdf-viewer #thumbnailView>a:active{outline:0}ngx-extended-pdf-viewer .thumbnail{margin:0 10px 5px}html[dir=ltr] ngx-extended-pdf-viewer .thumbnail{float:left}html[dir=rtl] ngx-extended-pdf-viewer .thumbnail{float:right}ngx-extended-pdf-viewer #thumbnailView>a:last-of-type>.thumbnail{margin-bottom:10px}ngx-extended-pdf-viewer #thumbnailView>a:last-of-type>.thumbnail:not([data-loaded]){margin-bottom:9px}ngx-extended-pdf-viewer .thumbnail:not([data-loaded]){border:1px dashed rgba(255,0,0,.5);margin:-1px 9px 4px}ngx-extended-pdf-viewer .thumbnailImage{border:1px solid transparent;opacity:.8;z-index:1;background-color:#fff;background-clip:content-box}ngx-extended-pdf-viewer .thumbnailSelectionRing{border-radius:2px;padding:7px}ngx-extended-pdf-viewer .thumbnail.selected>.thumbnailSelectionRing>.thumbnailImage{opacity:1}ngx-extended-pdf-viewer .thumbnail.selected>.thumbnailSelectionRing{background-color:rgba(255,255,255,.4);background-clip:padding-box;color:#fff}ngx-extended-pdf-viewer #attachmentsView,ngx-extended-pdf-viewer #layersView,ngx-extended-pdf-viewer #outlineView{position:absolute;width:calc(100% - 8px);top:0;bottom:0;overflow:auto;-webkit-overflow-scrolling:touch;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}ngx-extended-pdf-viewer #outlineView{padding:4px 4px 0}ngx-extended-pdf-viewer #attachmentsView{padding:3px 4px 0}html[dir=ltr] ngx-extended-pdf-viewer .treeItem>.treeItems,html[dir=ltr] ngx-extended-pdf-viewer .treeWithDeepNesting>.treeItem{margin-left:20px}html[dir=rtl] ngx-extended-pdf-viewer .treeItem>.treeItems,html[dir=rtl] ngx-extended-pdf-viewer .treeWithDeepNesting>.treeItem{margin-right:20px}ngx-extended-pdf-viewer .treeItem>a{text-decoration:none;display:inline-block;min-width:95%;min-width:calc(100% - 4px);height:auto;margin-bottom:1px;border-radius:2px;color:#5a5a5a;font-size:13px;line-height:15px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;white-space:normal;cursor:pointer}html[dir=ltr] ngx-extended-pdf-viewer .treeItem>a{padding:2px 0 5px 4px}html[dir=rtl] ngx-extended-pdf-viewer .treeItem>a{padding:2px 4px 5px 0}ngx-extended-pdf-viewer #layersView .treeItem>a>*{cursor:pointer}html[dir=ltr] ngx-extended-pdf-viewer #layersView .treeItem>a>label{padding-left:4px}html[dir=rtl] ngx-extended-pdf-viewer #layersView .treesItem>a>label{padding-right:4px}ngx-extended-pdf-viewer .treeItemToggler{position:relative;height:0;width:0}ngx-extended-pdf-viewer .treeItemToggler::before{content:url(assets/images/treeitem-expanded.svg);display:inline-block;position:absolute;max-width:16px}ngx-extended-pdf-viewer .treeItemToggler.treeItemsHidden::before{content:url(assets/images/treeitem-collapsed.svg);max-width:16px}html[dir=rtl] ngx-extended-pdf-viewer .treeItemToggler.treeItemsHidden::before{-webkit-transform:scaleX(-1);transform:scaleX(-1)}ngx-extended-pdf-viewer .treeItemToggler.treeItemsHidden~.treeItems{display:none}html[dir=ltr] ngx-extended-pdf-viewer .treeItemToggler{float:left}html[dir=rtl] ngx-extended-pdf-viewer .treeItemToggler{float:right}html[dir=ltr] ngx-extended-pdf-viewer .treeItemToggler::before{right:4px}html[dir=rtl] ngx-extended-pdf-viewer .treeItemToggler::before{left:4px}ngx-extended-pdf-viewer .treeItem>a:hover,ngx-extended-pdf-viewer .treeItemToggler:hover,ngx-extended-pdf-viewer .treeItemToggler:hover+a,ngx-extended-pdf-viewer .treeItemToggler:hover~.treeItems{background-clip:padding-box;border-radius:2px}ngx-extended-pdf-viewer .treeItem.selected{background-clip:padding-box}ngx-extended-pdf-viewer ::-moz-selection{background:rgba(0,0,255,.3)}ngx-extended-pdf-viewer ::selection{background:rgba(0,0,255,.3)}ngx-extended-pdf-viewer #errorWrapper{background:#f66;color:#fff;left:0;position:absolute;right:0;z-index:5;padding:3px;font-size:.8em}ngx-extended-pdf-viewer .loadingInProgress #errorWrapper{top:37px}ngx-extended-pdf-viewer #errorMessageLeft{float:left}ngx-extended-pdf-viewer #errorMessageRight{float:right}ngx-extended-pdf-viewer #errorMoreInfo{background-color:#fff;color:#f9f9f9;padding:3px;margin:3px;width:98%}ngx-extended-pdf-viewer .overlayButton{width:auto;margin:3px 4px 2px!important;padding:2px 6px 3px}ngx-extended-pdf-viewer #overlayContainer{display:table;position:absolute;width:100%;height:100%;background-color:rgba(0,0,0,.2);z-index:9}ngx-extended-pdf-viewer #overlayContainer>*{overflow:auto;-webkit-overflow-scrolling:touch}ngx-extended-pdf-viewer #overlayContainer>.container{display:table-cell;vertical-align:middle;text-align:center}ngx-extended-pdf-viewer #overlayContainer>.container .dialog{display:inline-block;padding:15px;border-spacing:4px;color:#5a5a5a;font-size:12px;line-height:14px;background-color:#f9f9f9;border-radius:4px}ngx-extended-pdf-viewer .dialog>.row{display:table-row}ngx-extended-pdf-viewer .dialog>.row>*{display:table-cell}ngx-extended-pdf-viewer .dialog .toolbarField{margin:5px 0}ngx-extended-pdf-viewer .dialog .buttonRow{text-align:center;vertical-align:middle}ngx-extended-pdf-viewer .dialog :link{color:#fff}ngx-extended-pdf-viewer #passwordOverlay>.dialog{text-align:center}ngx-extended-pdf-viewer #passwordOverlay .toolbarField{width:200px}ngx-extended-pdf-viewer #documentPropertiesOverlay>.dialog{text-align:left}ngx-extended-pdf-viewer #documentPropertiesOverlay .row>*{min-width:100px}html[dir=ltr] ngx-extended-pdf-viewer #documentPropertiesOverlay .row>*{text-align:left}html[dir=rtl] ngx-extended-pdf-viewer #documentPropertiesOverlay .row>*{text-align:right}.fileInput{background:#fff;color:#f9f9f9;margin-top:5px;visibility:hidden;position:fixed;right:0;top:0}ngx-extended-pdf-viewer #documentPropertiesOverlay .row>span{width:125px;word-wrap:break-word}ngx-extended-pdf-viewer #documentPropertiesOverlay .row>p{max-width:225px;word-wrap:break-word}ngx-extended-pdf-viewer #documentPropertiesOverlay .buttonRow{margin-top:10px}ngx-extended-pdf-viewer .clearBoth{clear:both}ngx-extended-pdf-viewer .grab-to-pan-grab{cursor:url(data:image/cur;base64,AAACAAEAICAAAA8ADwAwAQAAFgAAACgAAAAgAAAAQAAAAAEAAQAAAAAAgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAH4AAAB+AAAA/gAAAf8AAAP/AAAD/4AAB/+AAA7/gAAM/8AAAP7AAAG2wAABtkAAAzYAAAM2AAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA//////////////////////////////////////////////////AP///wD///4A///8AH//+AB///gAP//wAD//4AA//+AAH//yAB///AAf//wAH//4AL//+AD///yB////z///////////////////////////////////////8=),move!important;cursor:-webkit-grab!important;cursor:grab!important}ngx-extended-pdf-viewer .grab-to-pan-grab :not(input):not(textarea):not(button):not(select):not(:link){cursor:inherit!important}ngx-extended-pdf-viewer .grab-to-pan-grab:active,ngx-extended-pdf-viewer .grab-to-pan-grabbing{cursor:url(data:image/cur;base64,AAACAAEAICAAAA8ADwAwAQAAFgAAACgAAAAgAAAAQAAAAAEAAQAAAAAAgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAH4AAAB+AAAA/gAAAf8AAAP/AAAD/4AAAP+AAAD/gAAB/oAAAbYAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA//////////////////////////////////////////////////AP///wD///4A///8AH//+AB///gAP//8AD///gA///wAP//8AH///kn/////////////////////////////////////////////////////////////////8=),move!important;cursor:-webkit-grabbing!important;cursor:grabbing!important;position:fixed;background:rgba(0,0,0,0);display:block;top:0;left:0;right:0;bottom:0;overflow:hidden;z-index:10}@page{margin:0}#printContainer{display:none}@media screen and (-webkit-min-device-pixel-ratio:1.1),screen and (min-resolution:1.1dppx){ngx-extended-pdf-viewer .toolbarButton::before{-webkit-transform:scale(.5);transform:scale(.5);top:-5px}ngx-extended-pdf-viewer .secondaryToolbarButton::before{-webkit-transform:scale(.5);transform:scale(.5);top:-4px}}html[dir=ltr] ngx-extended-pdf-viewer .toolbarButton::before,html[dir=rtl] ngx-extended-pdf-viewer .toolbarButton::before{left:-1px}html[dir=ltr] ngx-extended-pdf-viewer .secondaryToolbarButton::before{left:-2px}html[dir=rtl] ngx-extended-pdf-viewer .secondaryToolbarButton::before{right:4px;left:186px}ngx-extended-pdf-viewer #findInput[data-status=pending],ngx-extended-pdf-viewer .toolbarField.pageNumber.visiblePageIsLoading{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAiCAYAAAA+stv/AAAACGFjVEwAAAAMAAAAAEy9LREAAAAaZmNUTAAAAAAAAAAgAAAAIgAAAAAAAAAAAGQD6AAA26DBZgAABPNJREFUeNq1l21MW1UYx2tgI+pghBHiNJCYKLiERMUvRvbB0S5ZygrI5toxKAItSwDHRBoIzk1SFT44oy4xfjEaY1PMRKNNyMInPxjfFjEiZsFNwpu1oy4LMFZ6uece/085F2/PiuBtPMkv5/ac8zzP/7yfWswmznktuAJ+A89ubWE+UDbYnaJ8AoS5xq8jv5aififYkV5wVW3SOP8BjsaANzmANqdpJEAjAVEp+CMqV73IW8C+dHr/FbgMfhIiHjTUzYI/AAn4y1C+CzSDVsbYSRWdMC0AxiE4+h78CH6Gw/cNgWY2EWDVgxO3bi3WmxYQCoV6MdTfAn0UfgFPJwnQ/hGA/D4KTugiurq6jpgWkJmZWbG0tPQp1sF3mOvEKIAQ1cE5iZnXuHZd07RrQkC1UcD4+DgNf8V25/sZMAQ+AA5wF4ofOHvm7El8fw0BicVIUPtgMNgHEVfA5PDw8DkxZS16zym32Wy15IPqVldXH0aZEzwH9snB7wFBBBlG/jn4kjP2LvLHUF0+OTl5Ad/fgMvhSPg9YXYQOAQ2MWVH9d4HAoETKNqP7wJQbRQGPGCHUcC9nLMAjQCG+yKG9DPwBQ33ysrKS1lZWY7BwcH2gYGBjoyMDLswKxAibOKbkr2ysrLWbrcfQbvD8/N/HjCuh41cTWzRnUnTPTQ0dBpD+BEaBFH5CbgoRiOE3tQaelsKNkuleru2tran9KBGYori7enpOUYxkwSASqvV6rx69ffX0fBjxjeEDIMy1OcJtkp5hLwjiEsjl9zFxcU1FEsWQKkI2IGju7u7aWFh4S1VZR+OjY35s7Oz95jYRHtoHSixmPdX7AaaFjE6dhErZboblIHDwGEgz4SAPMkH+XyCYsg74FHG+WvI3+aMvYOcuLB6+/b5/v7+JjGvZlNpXV1d7c2bS83SLiDqQSEJeAW8gcrzlAPk7E3khN+SZqJAxsCyCEt8LX4OH4MEo9zAWnzt5XQFqIrilgPrKIrSYOnr63MtLy+TiFeBnzPuR2P/4vLimV5frzNdAY2NjVXRaNQjB49EIh63210tn2gytjTjb8t/gdzI5TrhnJqa6lhbYy9C7cE05r+c7oeJiYlGsQ3l4AWywW5QDboBBX8BdIL7TQRPPohYIreCXZsZPA5Ogy5D4OdBO9j7XwXgDtkrvw0opxGJx+N33IZZFJwxEZjxU8g7YNQeCAQbcnJyEkcrsa2eA7KhkzD1DpAuI/qhKIyCgvVeY9484j53TE9PV6w74uSo/N/mXA8yMzNjJVvyQQ+TpO2nKl75xZyJU+/4yspyWzgcbu3s7HTqx6fH43mSXsQJ4/WeNItghaBeUJgokx4kZKsf66fa24/Nzc214IXlxdZPeRvapVW6H+TKzyw4qUtxwtVT2ezs7HH6rY+WqvIa8kG+JN/2zW7DQ+CA8RklLyKHw1FDdRuiRDmVUR27c84fojrhs0LEKNrms5y7jL0fHR1tEL2xGF84hDApHxkZcUuiXRazCWd1sx4opsS8JSUl1frVLB+t+hVMbWIxxauXq/BhWoDf76+BCOpJq8/nc4r73KKPgHEUDGZlvl6fkzEFq131kg9LGulQbm5uVX5+fhUtHONj4obhglmIRFqkR42dbMhWzLnpVAQqCXnhuFyuo9HoDU84HPHQd2o78fxKM2USW9xytk3t/rck/y8wmf4Gx4B9Xz6i1hAAAAAaZmNUTAAAAAEAAAAgAAAAIgAAAAAAAAAAAGQD6AAAQNMrsgAABQ5mZEFUAAAAAnjapZdtTFtVGMdrwKlkIYiETA37sGyQJXxiX1T2BVbN7FZANFARCi0tMDBF2BgGNcvEzC06EBMSEogi2Czz7ZPiBvFlohLFREKqET8g7y02A0YkLZd77/H/lHPN4dIJ9J7k13P6nPu8nOecnufWFGtjjJnBTfAVeHpHBQOOEsB+vVxV1S8g/5GpbFRV2S39/MrKyoOYTzTkXJbl0zDyIbgOntkamPrdZgDqKPpfdUHXqUz9C/0UeMnI6ruBF3zEg3hEmLtFAQAxAJIfAn+CWbCATE3FHIAkSe/ASD+4Bj4GFwRH34IfNgNQxwR5H5iG43n0fvS+mAPo7u4+w5jyAfDyDHwGjnFH31AAdAbQj3FZDpjEtkRWj7nF4eHhKzEHEB8fn7u4uHhVYUofU9g1rOYTGH6X5jY2Nj7H+Hvs9SjOyjAP4Eu+73NwHgiHw7+Qjd3u93HQqijsVfSPg3sgfrS6utqO8XugH0FcV3Ee6Pmurs56BHFzQ5K+7u3tPU8yrPwPPDeDQP3oFzs6OhrJBs0hmCOQFYMKcFTv/D7wOngTXAFvM0U5h/4wprNHRn56BeP3gXdiYuIiV3sSWDlmEiBbfXzvA36//1OIaFGpIB9UKYpSTT1wgXvFAO7H5MVIBhi7BC5j39/C96vLy8sVcXFx1oaGBkdjY6MTYwtXS+VBmPnYRHOdnV3nenp6zickJOTNzflzuEPunPey7MZ435btbm9vr1hfX7/AlEgm3gCXtGy0tbU9Jaw2E9ytZWrP1dbWPqE5FQlJkru5ubmIfG4JAJzKysoqHBn52UM/N7AZiKJcDjN2BPPJnJ1aMgHdA3rnNwZu2NPT0wvIlz4AageBBVhLyspsk5OTZ3HIXhsaGnoxMTERRvfcHvJ6vS9IoZD7t/Fxh8VieZZnx8J9RW0PgCxwGlgFYgkgWbTBbR6L+BAbC4cP8RQ1IN2N6Imz/9y5U19TU1PE9zXWlllSUlK4vLzqFA8ipxSkmfBRCTwC9Ywp9dRDocpksJEj0bE+CLrvKYC6aIRCktNoALIk2UXHIvBdZnI4HPlLS0skOIMtiIBxTSAYcNOc0QDKy8vzgsGgS+88EAi47HZ7vv5G02M26H9X9lP1D9FPxuf73Y4iQ9uTbWD/s8mGz+crJ5tRnKfqFfaDE6h+lCaRA3t2rr+IFADb5COqwvo6OyozuZIrGA5gbW3tYdLVn37KCK78bdVwH3BvKxygH7cZ3YQUBLGrlQPSoZsw+i9AV4yoNEoShMJD42PjDrPZXEj7NTU1lbtpiJGh7P/bc01/enr6BOmSjXFcxaJtSZbc5HNLMWppaSlaXV11z8/POz0eT5F2fbpcrsf+y87mSpzcWRoo5aRFZEivuGLS1a51T11d0ezsbCX5gK8o1ZAXIoHjIEl7mdCAkZIoN1wpyWZmZp6n71q2ZJkVkA2ypbNtuVs1PAlyxNco/bmwWq0FPADIAZeTjOaU7Xt+mOa4zVzuA7520bACm7j6wcHBMr4ak/iGQ3CV7IGBAbsuaJuR/wVOzVFICrkzMjLytdJMMhGtBNMzqCFuTS5LBupJa2trAYKglVQ1NTUV83pu0jIgZkFQy2p6ualYUSScdtlNNkwG2smkpKS8lJSUPDo44svEbaHA/B0IVOpeaiykQ7pkw0gAB8EpQn9wbDbbc8HgbdfCQsBF4+h6/PXLYIsndqhy5j3oGW9R/xfE2P4FtUR7pWscH34AAAAaZmNUTAAAAAMAAAAgAAAAIgAAAAAAAAAAAGQD6AAArUX4WwAABPlmZEFUAAAABHjatZddTJtVGMdrwOGSgQQJmUG4UnAJ8WJeaFJiFGqydHaQKR+r0LJ+YBDopkvVQEwWUYazi8qFSzDqnKJLxsX0oklJdRfLdGNMXFe98YaP0b6jWbo1YW1f3g//zzyveXtsBd/Gk/xyTs45z/95zkfP89ZktKiq+hT4FHwBmje3MO7oAbCd75dl+ST6v1UVdQbtr/PYVYAdRTnf2NgwQ2QcHAfPcg5Oy/cCUGbQPseN9SiqchH1z8BdzOrfBsfAByyIat3Yl+AbMAO+0/XXgfPYmcuqqlwFlwwHcPduxg+x98D74ISsyv06R6cKBBAAPymKegW7s6Aoyo+GAxgfH+9VVXlMdwwfgsd1AUzTHUD9ve5iXoDTy6ivYuxaKBQ6ajiA0tLSlsXFRT/O+l0ITuCynUD9Bo2l0+mTFADOeiabzZ5hAXwOLoIrYGF9fT1EGls97yfAq5IkeVA3gfvQXdvR0dGF9lF2FMcRRIDmj42NeRHEZ+D05OTkEPVh5T9gziXUv6COTExMDJMGaQEXmAd/gMO88/vJObb7EA2C10EPqMWwORgMDaD9Djg2Pz8/zMyeBzaGhTpWVlY+UhVavXJtaWnpFLqaYQOUMOoVsIrxONXgQX0A2ygAMITt9mGVFMRr4IggJGwlJSU2p9N5oK+vz462lZnVsCAsrG2isUAgMIwdOVxWVmbLZDKfQGMRl/EGdiWGtoB6Ddy8o96pyjnu0dHRroyYGYDzIUwcBj62G0cw9oxutU2gUGnS5gWDQQccLcP+BogrqnoT9RruTHxubu5j8pkTANjb0NDQHg6HnWw3Blkgh8AjGK9ibFaqCNi0sq0WyDFI3E7eDmMXXeSLD4BKPbACm9VqffH69d9c2MKBs2fOOpjofyrl5eUPxeJx+onGspnswtTU1JukzXzUF7LbDnaDF4BNw0gAZMNpkOaTzAdK7tPZA/r1pJJJl91u38/O1WhpIo1kMuUiTdyvVzR95rPOxBpskNVAm2QqspCG3jEfhCktpp1aB086LfYWG4Akig7esYYoQh+/7323EgkPPyisCW4aKzYA0kjk0xcEj8PhaONfNB5Lkf63pF/DT6KfYTT6uwN5wY1ozUWcv5k0otGokzTzOK/hDXaAVuR9/j7sNOB8Z46GDKBd8DMtm1V3SarkZgZFB4BU/DDZ8refdgTpexcf7Tbg5SfL4Kvp6ZcrKiqqKAhiSysHZDMN2/y/AMlLPnPSsSiiUzcp8mvkoMVi2U/nhY+Slr+EVBIy/9uZa/ZIx61kSxqRSOSgXluURC/5zElGIyMjnalUyru6uury+Xyd2vPp8Xie1naHPVAu7gUl6u71YXv1KyZb7Vn3DQ524nvBTT7IV75saOVuaTOohFCbPnqI2PkXTnsxl5eXD2jzaLckSW0nDdLitK2FsuEe8ByopQ5kw8f4e2Gz2UjU9HdQrJ/6aEz+55k/SmNMs4X5gK8tFKygW7/62dnZXrYakz53EMzETB8iXNDdJqMFb7VLc4Sc4W1sbGzTUjP/U9VSMM1BDvFq/RI0jPqnL992BEEr6ff7/V0sn5u0HdDvgs5st/8tf5csi7jtkpc0TEWUPZWVlfuqq6spKVn1HxP6BLYmCG7uo8ZKNmTLztxwqQd7Cf7idHd3v5RI3PLEYoKH2gXsrKxdVCklNslyloJ2/1vh/xcYLH8CCfCBoXIWl6IAAAAaZmNUTAAAAAUAAAAgAAAAIgAAAAAAAAAAAGQD6AAAQI+KIQAABP9mZEFUAAAABnjatZdtTFtVGMdrQIkvMIKEYJbtk4IYjAl+mWFfxmpc7nZZA5PVMqhAO5RqdSQNhTnUodEYjcm+mcWpwQpMnAkfCGExIYs6jVtGSlFjDPIuLyME0qZwc8+9/h937nZ7bKXp1ZP8ck/Py/P8z3Ofe86pLdOi6/qjoBO8Bh7fabwVR3eDnCTtAfAWeJcx9maS/vvBfZacb29vl8NIG3gZPJHogL3B2C0B4H3B+TPgU9ALjlpZvQe8BPxcxC5T3+ughwv4wNReBM4jKiGIHAChjAVEo9FGGPNx568A2eSoO4UAP/gMAvrw/FJV1QsZC2hvb6+FkReBjxs+BfaYBJzV2R0BeD4GLoDPwYCuaZcGBgdPWUmDqomJiWZGecCYEYV66tjc3AySAIoAIvUOF3CGVg++0DV9cG1t7ePs7OyqdN93GXheVXUnng/z5t12u70Gv1+AAB/C6kfi+amjra2tfmNj48zGxvrZzs7OJmpD/0eUeJqmXdR0/euOjg4v2UDbXYDsXALfAHeyT60FnLyNqjooodBd2dsbqqdXwZCQly+PuPi0p4HMsVPD5ORkJwTSu/8K9ffQtF9RlAr8/gSCvkVUrqL+I/gB5JoF3AO8hnOspNWoz8//eSArK+uILEu1sizXYrjEpxVxEXZet2GcFAwGPd3d3a05OTlyPBanPBlDLnyHqJDTn8B1zi5zELKDwdPPbm3FyOk/8Pl8T5lWWw5SlXJjXF9f3zE4vaLp2vd81dfADbRdvzI29jb5TBAADpeUlDhGRkYbRAFRXS9GfwFnp1JAYN4+cJVWDac38BxfWV656HK5GsmXKIDKXh5eWZKk2vFwuCkeV7yhUKhecJxWyc3NfXBqauo8wn8tFo2Nnjv34as8OhL3lbTcCyrAESAbZCKA5gg2yOaT5EP8AvaAE2LYN9fXmxGuGv5eMy3l/f39Qca0MGxO41XM4EnMgglQY+POeebzJ69T339wmkY0TZ+H8wXUzSyCX2xxJe4mZ8lADjRYFqDpv8HWMnJhmZ4a1XXt7ydE/Wpzu93Va6urHtH50spSC/VZFTA0NHRaY9ofsHnTAKJuItK/o69L3NFE7Bb9p2W/SBxEn2Ek8nMjjlLanistvP9KshGJRNxkM4nzInHCA+Ag05mYD8UZOC9OsMEAbJOPFNcvvUzVVeNAsiwgFos9RHPF84UigqteGY3Z8TBioBc7YV5eXgGJINJaOaA5tIua7d1B9ZLPhONYUdBoGhQeDzfRXYDe1/T0dNUtQ3rrv+UE9RnzZ2ZmDtJcshHGtm62raiKl3wmHEZdXV11uOV4FxYWmv1+f52xfXo8nn1GdPgG1SzsoIBf0xBe84pprrGt+32+urm5uRbyQb6SnYaSkKX7QT5dq83qYcTFBZxgwo45Ozv7HP02ooXblYNskC3BtpTqNDwEDoDd1LC1tfWImBe4lDio77Yo3k5t1MeEd26+3oEq7gO+0ih0PzSvfnR0tIGvxmY+Owg+pXJ4eLhREO20ZVpwn2s2HOHM8JaWlh41jmbxUzWOYBpD9wijXYWNjAX09PQ4IIJWcjIQCBzn57nNiIA5CqZpFYFg4DhjCrJd9ZINm4VyKD8/v7qwsLCaEsd8mTAfYCtLSy3CpUaiOTSXbFgRsBccJsTEcTqdx1ZX1zyLi0seqqeYJ/G6pZJN7HDK2VPO+9+K+L8gw/IXI+58OxdsgRwAAAAaZmNUTAAAAAcAAAAgAAAAIgAAAAAAAAAAAGQD6AAArRlZyAAABTdmZEFUAAAACHjatZdrSFxHFMcnZJM+UGtTkUKohT60AT+lUFr0i7oN5SZrJOZhfUb3oVW6pYalYgvRGkTStBQr0tDSB9ZU2wSkglihFNvtE2milX4olPpMVt2NjbHsunvvnf5P9o6swz7ILj3w84z3zMw5c+65M7MsWeGc54B6YOWBwGOAJUPiTpzvAXsB24HK66BbuMad0A7AJO4F9wAWj7hGcABYgQ08JdleCgegUQCvSrZnONc6oN8EhakEcBo4DKwgLcLWBFqAHECmpmlvIDPnoHvw/7mkA7i1uVltOBeUCBscNIFoAZwAnZrGuxHA+a2trbOAxYLFM7a2vlJOjiUeBkwLZ6CZagC0AnL+KJyeBbTqHjy70NfXZwMsFiyeEVI8MzNTr3GtkWsgHMBRwHw+n40CgM3p9XoJCqABdIJucH55ebnTZDIVAxYL0RAFd1pVeQX0E4BB9pvN5mPkWAQAuxWwioqK42s3bzZ6vSvNVqu1AjCsvB19ukAPeNtms1XTHGjv4jxUBP0O+JBz1QIYQX/Ep2bdkWpVLYPOxgQFAwMDVeL56OjoccAgzwOLgRkwt/snG9JOq3/L7Xa78KgwEAjkca5RVj6FbRAMof05uD+yCPcCu3CiiXSDpaUbRbt37z6iWJRyRVHKMakCSLKNIMxGm6GfYrfbq5qbm2vRttz+5zbN8RGyN4CivIT2MNf5ZWgibTsAiKmt7fUTgcC/d5zKtLS0PBex2nwWW/JFP9SQgoV8ghr5jFasc/4l9BVV1698NTLyGvmMHGgCh3Nzc8vGxydq5AA2Ufmw7zOIK6IfxuWDQZ3rX5BjzvWRubmF9ywWSyX5kgMgyQEKsFCqr6H6/f6gfXBwsEo4vhtJT09/aHp6upvr+uVb6+sfd3R0NBnZUQxfUeU+cBAcARZBMgHQGGkOmvNp8iGfao+AajntG+vrDZWVlcfEO09S8i9e/MAZCqljmPM78D1wgx/AODjEyLmo/G1ttA0bS5GvdZ3/DE38gvav0GF0/RvmD/rryFk0UAM1gKUCnExirt+gr5LWOTTQ9Tt8y+rq6kp9a2s22bln1WMlG2CpMDw8fCYUCtGKZ8PopH8PBYM/Dg0Ntco7moyZpSyJ58+WO9FnODv7R62qqrQ9FwCWBLvA++Avv98/2d/f3xrFebb8RaSBEuxeUY/gu+QQWAE3wDLX+SL0JfB41AvJ1hY/oHKsWDhNPQAF+MAa3vsK18OBgL/By4AlPIw0MICdMCMjY58RRMJARD8a4/F4RowgvGAVeMIZ0ZegH4wMYE8wqG4HQMxcm6mnuwC9r7m5ueJwYLwxQU0UiPHz8/MlNLa3t/cMbldXRTZ0BIJPkTLxwI7TsL29/eTGxoYdt5gGp9N5UmyfuFQ8K7JjbFANIHIHJajNOIo2MoM0Vmzrk5OTF/A5/olvf2lqaurdaKehIlVpIcg0rmAOweLiYiVg5FiTdsyFhYUXRT/KlqryMpoDFEpzK7FOwxdAEdgPGG4zT8p1geO0DDDxPGLbZmTTpAtN5PUOFJMPw1diMe6HDsHExESNsRoWeXYYMEjB2NhYrRR0RdK/C4LBYINwhDPDnpeXd1QczfRMgpGN+tA9QjxXMQdgsWDxjF1dXWUIglbicLlcp4zznIkMSFlgBOSgq811StOCjqCq2mkOwGLB4hrxvjIzM0uzsrJKqXAiLxORB9iqx2MFjDD6KDSGxtIcLAXJAYcJqXDCvwvWfLbr1z02agMmEOOk61fSYiISnHLmmOP+N5F/FyQp/wHjxqv8BBis8gAAABpmY1RMAAAACQAAACAAAAAiAAAAAAAAAAAAZAPoAABAamiUAAAFIWZkQVQAAAAKeAG1l2tMHFUUx6+hVE14WQkxVPGLQhvhCxqj0BgLa2KnLIXyECkIy77agpg0wSAIbQHF+EExAV8RbIJ8kfCJEAmQxkdVRNc2pJHEL2JZ6LobQktWdllm5vq/5Yysk32ku/Ekv5w7c+aec+beO/fcYbEK5/wRUCegNosFakQkEezX35dluR7aJhBtwIKhPonxJnAYmIEFHNLZbIqi2IUmWBCHZC5boQVPxJNAY1AAM0gKTkAHI5JAE7CDMxyJABYOFsl42+ut0wUpjp6AeAbXCj8Nfdbr9ZoACweLZDx37rWKEIEeCpcA2dBW7rw9pqilo6OjGrBwsEhGSNHi4qJJEQ735vsEYB7PukUL7na7zYCRDfd2335packmfIDoQguuUZZ5DfRjgEEOGgyGk8KplgDsZsBqamoqPR6Pxe12mUUbiNVvpgTOgJZjx0oqhQ/ynwfOgjbwtH4RJgLqTMhyGXQG+haOjo6e0u5PTk5WAgZ5ARgJA2DCRnPfPDEx0YhbR7a2tg4isQbc64CtC/o8cW9wAvuBFdj0n5fTefNoQkJCiWSUKiRJqoBTCQjJoCQM1BYiGY3GivLy8ir0MbpcrhIEbYefTvjshr6A616MZi/a9/2bAGRfe3tnld//952gepqbm58NettcEE5ytec6OzufQ9A30P9NcF7hvAe6b3tn+62hoSGriMk0oYvj2dnZZdPTM/X6BLxY3bAfICILPefz+R5F3y4Evgj60H7b4bj6ekFBQaWIpU9ASBaQgFEM9TWsfp8vYB0bGztFTu9KkpOTH5ydnX11Z2enz3nD2WW32+todCSKFVLuB/mgBBg1YklA9NH5KAFPUoyQVc0WzObGRlNtbe1JmtdYJbe7+6LJ7w+8B58fYU18Ai34FLwPnmIUnFY+aWqTjcXJAHyOQI9gQ/scWuMSGGS+gK9BBAsF1kA9YPGgyDLeVhnjCuB8TAHiWmjsDx+zhoaG0nXsaPrgLuxwwgZYPAwODtq2fb4v4HNcoKqq0F/iK7k0MDBg1e9oegwgXonqP0P/kPgMr1//7RXa2wsBi4F7QBeYvr1xe7Snp+d0iOAZ+i8iCRRjsYQuwXcFElfVeegr4BtwGbwDHg55Itre5odlTtUMxJsANqDnoX8FC5yrP3KVXwHf4noWvAxY1GKkgFHshCkpKQcoCRB12IsFmZmZ6cvLyyNoXwW/gJ/ADzQiX4OU/5TjQECmBABYvLZoEmcBMV9wVLSbGLdHWROfgVWw7PP7PhR9+/v7W3C6+gr3HOBnMK9y9Tua7r1qKI5Om5ub1tXV1abW1tZqbfu0WCzPaKNDG1QTCPdfsIZhdmHunWj/MT4+XiN8iNI8NTV1IRAIXJZV9fu5ubmeUNVQ0q3SIyBNO2ZprKys1AImAiu6HRPzvgD9FyVyA3o2NTX1AeFL51sKVw1fBEe1Y5Tf739cvy5w4CgDe4dSug/Y8PBwG4bXg0XnwrUT/AlMgJHPIoqRBaILnQ9tGjMzM/X0Niy4dhAMUnjr1q2ZvVFQV6AXYv4xwZw1aYFQM6w5OTknqMyGPJYLmwmC7XZN3R2FVSTxO2DhYJGMvb29ZUhCvKWtra3tJarnTBsB3SgwASR/fn7+A0zDTZXzFYfD8S5g4WARjZivtLS00vT09FK0peDDRHABc7tcZsAE9IyUn59fnZeXV0VzHrNkgeMC3cKh/4J1y9qayyLagBHB/SRqxyX7iEhVzhC53/8j+v+CmOQfnaCvAsiMZ2EAAAAaZmNUTAAAAAsAAAAgAAAAIgAAAAAAAAAAAGQD6AAArfy7fQAABPFmZEFUAAAADHjatVdtTJtVFK5hM8EQQIbEhMxfDmgC/th+TGV/BjVZXlbKh9DKYB2lLV1JmNaQVRiEjMyPv8TE6JQZK1KRf8RkYUkzg84laELI5pIZFQPESm2WQgld+374nHLf7eVa7PZWT/Lk3Jzbc85zzz3vvbcGvaIoykGgk+Fgdg/9ifYDT/J2URS7YHcTaMzPkw/55prcCPQATqCKm3NLktSrkuDmqkRFdDFfYy4EzqgJWLACLQEtNPYCwKESRHW6dROIxeOdXKL6RyBQryYnxOOxTt0EfL5zrXwi4Nm9CNCc1kYEfD5fqyEHqVtaWuqWFOz1w/220EQkEnWqidbX13sYAYuWAPlSjMdpuDOiqNign2fmcpPJ1ELBVAKYTyez2WyvRiIR5/p6uIfG7Mvo0TYn+VIMmkskEodgs7K+Mmb61NLODyCKTdBlmK4NBAKnVPvs7CwlI3kFMDOYyEBz6u8mJydPwXSMYgAWDTG1kvv5b9ZFE/zntbr6x/G8vLyTglloFQSB9lNgbmWMhImNSYSGhoYW+h35kC8X0wOcxfgsf7bs8/uH2hKJrfSPefT19b2kWW01sJdUq7/zer0vaxbSKyExtDeRTHpHR0dtlHMXAaChoqKi6erVuS6eQHyn80sYskkJQfNFeCQkhu4LXQs5jEZjM+XiCZA8x8prphIuooO3t5MutpcI+thyYGpqqiuZSHjv3rnjbm5ubmPVEViujJIPHAZOAmYVOgmUcDEo5hHKkfFW48u+ce+eo6Ojo4Xtq16p9ng87bFY/A3EPA/4gbcYzgEVBpacdSnTbExz/8Ft+rokKRegL+BAG4ZWMQK8adhObtspWSagB7pyJSClJFr1RSzqImk0JLSU1qlU6rzBbrc3RnGi8cnDOOFoLlcCw8PDHZubm2OI+S7wDsPbsVhs1O/3v8afaDxMQI6SPX4Z/yP6DG/d+uk0O9trde79E4ADeD8cDl/CYWbPkLyMdyoA6tEs/7iCdRB4AQgAV4CPgQ8BL/BMRof79xUjnlGaCylnAkeAaeAL4DN8XZ9CfwL9AZoPFYdku4wkIICTsLCwMH20Eh6h7C8CR8vLyw/gPfAexl8hThB6koiwilwGntp1HSeTomvXY2JxqZvd5+bl5eW6HWJK77/1BOvw74HrW1tbI+Q7MDDgjEajH8H2JVUDZD7HAolE/q7LaHBwsH1jY8O1trbm6O/vb1ePT6fTSStyaR4lDpasXZHln6FvA007NvkHWVYWYP8OttDE5QkLxcDVbMabwhePx69goYHp6WlfpttQ4Lr0GFDMP7NWVlY6yAFJfpUV+U/YVoFF9ur5GuMfgZuKrMxjtRNFRUVPUywutrDXbXgCOK59RvF9YTab2WqVv4AwiKxB/0a28fHxflmWF1GJBdhuAN+o1WEx6ygHy5Vd2PvQrWJubq6LVsMqkCYgEwFZWWYutXigBh9WQf4WesagV5LJpENdOe4MV2VlpUW9mmGLEAG2BSqBEqvVehqkFrA91AtoSPmabgJjY2NNIEHld6Obren7nAmSRIA0AejfNW6HQ6HQJQUkYL8xPz8/ZMhBThQXFzeWlpY2ssbJf0BAkn6R5Z0K4GBZ4h41Qk1NTduhqqpWtue6hZqlgcA3zszMzAgqczeVkm4Hg8GhPfwENs5J9hGy3HKmLH7/g/D/C3TK3/RJfVWiL971AAAAGmZjVEwAAAANAAAAIAAAACIAAAAAAAAAAABkA+gAAEA2yQcAAATpZmRBVAAAAA542rWXW0xcRRjH14AaEy6RJsTEtCRGSEGe4ElpTEq3ph5Yy0UostyXUxUqpphKpQZLNRpSHkx4oBgNabfE2oSElKRBfQFj4MELiOiLGFIBS3ddsASyu2fPOeP/287Uw7C46dn4Jb/M8M18l/3mdnDYFcbYflDH2R/fwn6gh8Ejsl7X9XroTxLUl8fJhmwTDZ4LPKAVHJTGThqG8apIQho7qDNd5ba5iSTQJAJwZynWBKxY9CmgRSSI6jTbTuDu1ladFOhI3AQwRwQntrbu1tlOoLPzzUo5EHhirwRozKqjBDo7OysdCUjx/Px8s8Gw1v+u93Ea8PsDrSKQz+fzkI7GrAmQLfl4kA3XpOusBu3TXP2k0+msIGciAYxHg9XU1Lzs9/tbfb41D/X5yfBYNyfZkg8aC4VC2dCdoBgUK9ZRixrfR9fL0GZiuMjr9bqFfnx8nIKRHAUujpMUNCbmjYyMuKE6RD7AcenUtFJM+cyqNCgfr5WV24eTkpJKFZdSqSgKrafCzTJ5Ek7eJ1FKSkoqaB7ZkK3sM9rquirfLclnz56rCoW2afIu2tvbn7X82nywl+SLeW1tbc+JoFaCmqZ2dXVVU8wdCYCSnJycsomJr+plo617Oz+DE08yCPlEEBM3JxooBsWSEyA5wMvrohLOYQcHg5rK1xJOH1j2ka0WDKq/wBf55NVReKyY8hgoAKXAJbCZQIbkg3wWUoyYr5pcrs2NjZba2toKvq52JZ98bGxstsib+/4rSp1duxSISY4EhXxYAsM/o76g3hHUgo1iUAZ7oD7RBDRNa4av12MRDAabHI2NjS8FcKPJwddww9FYogmoqlq+vr7eBp9vgFMC3KKveTyeMvlGk3GCBCW+/0x5Eh2ZhYVfG/jdXmRz7R8CCtb/zOLi4qmqqqoTMYJnykYp4Ahev11PsI0EngK9oMdg7F2074BykB7TIBxmuTrTLQ9SwgnkgI/AB6hCL3iPIRG0XWgLaU7cx8gAXtxmaWlpdLW+CF6g0sYp+zMgLzU1dd/U1NRbOHZ98PchM9j70J8HPeAceHTHc6xpurrjY2Juvpm/565wOHyFMfMv02R34OzSfyTQgTvkKtpPA38HVLLFSXIvLy/3iGqAC4YR6REJCEnu7u6u3tzcVFdXV1s6OjqqxfU5NjbWgMl+cIeZ7E+0v/FgpWASfAmK7+nM60jwGv6+DD7p6+s7Sj7wNLv6+/tbA4HA+WA4fGFgYMAT6zVUpF16KD09/XE4mgY+cBss42KZjAYzzWmTmT9Ch5bdIN329vYl/H0dXEXJh1H+HvJBviTfyl6v4TFwWHxG8RvLB9bAKrg1ODh4mo/9DH5AIjNoo0n19vaqSGaUV+EK+Aw8T2PcZzHF4LHiC0q+QKUHVPpl3Gg36NfwCsxD9z32xQz6U9ykaGlp6WNehREkchl74qLDrsDxLV76FZT7d7fb3SieZuh+ogT4EokEMnCJvaLrxhfQfQ68hqEP2U5gdnb2Ipz8YaL009PT9EsKLTt+zjTNaAJov7GYFYyOjr7NmHENFfBiE7c7EpBjeXl5VQUFBXQqFOvHhB6JfIvg36EyMzimN6WPGiU7O7siKyurnK+5bTkASgh54wwPD5+JRCKToZD29dDQ0Ok97BTeT0iSiTivnDOO3f8g8v8FNuUfG4CCnr3IRI0AAAAaZmNUTAAAAA8AAAAgAAAAIgAAAAAAAAAAAGQD6AAAraAa7gAABPlmZEFUAAAAEHjatVdtTFtVGMaAJiYEIhowKOgPS7ZAYjL9o7AYtpost8Py6ZDxsUHLoEUXMITpRDIxKyNion9Q4tSFdCYYmZNEiMFo4ghDpwhiwg9/CdLabmm2wC5t74fPS8/B64HCdhtP8uTevue87/Pc97znvrdJZoeu6zlALUPO7h7mie4F7hPtiqLUwd5MoHtxnnzIN1HyvUAT4AD2CHPNqqqe4CKEuT2KrjiZ795EBBzjBCxYqlGAEQZ7KtDIBSI7x00LuLm6WisQHbwDAQc5OWF19WataQEdHScrRCLg4XgCaM5oIwEdHR0ViZTBgfn5+eOqjr3+d7/tNBEM3nBwokAg0MQE2I0CyJdi3E3BHVMUvRrXJ5j5EavVWk7BuADMb5BVV1dXBoNBRyDgb6J7djKajMVJvhSD5tbX1y2wHSEO4truqG04b0JRSnHNxHTh8PDwUW4fGxurZG7PAyUMVjLQHF/n9XqPwlREMQC7cGocxCmeWSdNisdredlXnJycfFgqkSokSaL9lJhbJhNhZfc0JJvNVk7ryId8xZh0xcM5xXdLyqlTp6vW19do8Ra43e5nDE9bAMQbBXydy+V6lpMaIUcizq6urheJ8z8CAFteXl7pxMQ3daLTaqzyMxh2HHydeCIIE19P1BMHcYkCaOSy9JZQCn9FBctyxMn2EkHvejxIvhFZdv6OWGz7ShhHbjyn+4F9wGFazGFSQIYQg2I+RRzbdjUxXbdCocaamppytq9mRwHFCIVuNYrFvdlF6WZLlQJ8UcLdFDGMxKKIJDkiN3CDCNRAXaIClEikXiTmiEQQv6Gh4YUbeKOJk3684WguUQEUI7hdfL/fUV9fbxffaCKsCfLfUfxMcdHQ0FBXOBy+pmmaH2rPA/eY3P9C6g8LCwsN7BiK5JmigwW4pOnadVyDQEDTdRJhNUGejWJ24doSa2ZA7FshNZ7Dq8AKkQJ/Q4Sf/V6KRqNmBDwKvAy4gVYIaAFOUEaQ3S3d8AHAT8S6pnPiZU3T/1xaWrqYnZ39EH4XA/t32g6aAx4HHktLS8sYHR2l8/8K0IZsxIToKmWEN6NNx3SQLeua5sP9X8CSfPv2lf7+/pO0X+jl78P2G8T9gqfo3UFAFdALdK+srJSSL7pj1eLiYoshGy46kuIXc8rMzMy7KLo/kO7ZycnJs2inG6/PkZGRI0QOzELgT7qufRcjiz6Hp7oA+wfA02TD73MI7sHvM8Dp9vb2/fy13tnZ+ZLP52tdW1tzdXd3V2/XDSWhSovS09Npay6jEOdwvQZMy7J8kZF9hjr5Ahnxwv4e2a6HQm/g/hzwNtADNFIMiiXEluJ1w0NAMf+MUnS9To+R/wzMAD/09fW1snR/BXwOISTgY7K1tbXVRlX1HZaFt4A3gSdpjsU8QByMa/eBuvgW+z6LID9ie6aRwvPsaZJgv0wCVGQAIj5hLoVzc3OvqSwLEHKG9j7J7ADpVZb6q0j392VlZZvfBrB9CYwAXoALyCgqKqoKh6Mk4CyE9apq9HXTAqampnpAPI1gV8bHx3tYP+cVfwkFuSEAT/qpwW3f4IeDqHLVE4UAvFUTamiHLBZLRX5+fiUVjvFjIoxipAyouupFZQ8KHzVSTk5OaVZWlp3tuemRC9gIYuEMDAy4w3L4Asg/8ng8zXH8JHaf0Egh7NLlrHH9/rch/i8wOf4BRvqEvL0rz4oAAAAaZmNUTAAAABEAAAAgAAAAIgAAAAAAAAAAAGQD6AAAQaGt/gAABQFmZEFUAAAAEnjatZdbTBxVHMbXgCYmCEgbsCGFhFgCCQkJfagKL+2uSTOUu6WEO2UXKlvauiSyIlZSN6FRi0lDjA8kRgmKqeUiKmjS9IU+mHql4A1pgrQVWHXDdoFlmDPj99+e0fGElbITT/LLmT1n/uf7zn3WEmnSNG0vqObs3TbAhNCD4CGxXFGUGpQ3EfQs1lMMxZoVzwSNwA4yhLomxlizbkKoy1A0xcFjM80YqNcFeGMxRgNGDOUx4LhuEKPTELGBlUCgWhCy3ocBqy5OBAIr1REbcLlOl4lC4LFwBqjOWEYGXC5XmcVEOjQ1NdXANMz1P/NdRBVe7x92XWh5ebmRGygyGqBYamMnC65eUbQK5I/z4mSbzVZKjekGUB8Sq6ioeMbr9dqXlxcb6ZnvjEbj4qRYaoPqgsHgPpQdIw3S2mqrhYL/RlGKkSeiOre/v79KLx8bGyMxSk+DAo6NCqhOf29gYKAKRXnUBigSdo2dNMU966BKcXvduvXbwaioqCNSgVQmSRLNp8TDErkJG3+mJOXn55fSexRDsWKblKNzDvFsiXa7XzwaDK6GXhZxOp1PGnqbBcKlLP29lpaWp3RRI+uy7Ghvby8nzX8ZAPnp6enFExOf14hBgXsrP4GzXUogxB1BTHw6UUsapCUaoJQCJHJPQ/gtVvD6uuzgc4lGd5x2Uay8vu6YQVt8+gq4Rkq4oIdBDjgCCnQiNJAgtEFt7icNcQeUg5vgT46PUBn7dWRk5Cyf10hTVmVlZanP5z8uLm79FiUDvwCvqqm/Uw6Q66g3LSYTCRmFRRMWVdN+1lRtCT+WVKBxVELVfjRrQJHlWlFYR5blGsvw8PALqPwJBXc0Vb2D/DZG4zbKZoaGhtxmDdTV1RXSiSmKLy4u2mtra4vEE03EZlL/vtpPFF/q7e11ra2tXcEUTMNtD3ggwvnPpfthenq6jm9DUTxRDEgDb4MfwPeADHwH8nYsLh5ELJRbQUy4gGYuNgNuqPeevwbXNzc3c3dqYHV1dQ8Ji6ufRmRjYyNTFI8HU9gNN8gEhv4b5F/CxBezs7NvJicn78LvA2D/dtOB+j1EbGxsAp2EW+8A4TLCj0dUVaXekvBXMHDd7/ePdHV1naD5urt692WUj8PgKPLW/xC3Uj14dn5+3kqx9E1AHyZGA7IiO8Qv5ugrV696MDzXgsGNz0ZHRztxnYaOz76+vmISB2PgMniHi+UAD3gJZPCyM+jtGU1jJ/F8wm63P6Ef66eczvKFhYVGdMzR0dGx5W0oCas0Ly4u7lE09Bb4GAyDD/wB/wUu9irT2BvIz4PnqWxpaYl6+BxoxaJzIi9BcTzIE9qWwt2Gh8FBkMxFCsEnYATH8ofI33O73fW8rhf0cAPnqAzn/lGmaW00Cig7CVrAPqrjbR4iDa61fUIv3kUDH4HLDL2fm5s7z3tjgQgMsB7GYICxV3hI7uTkZDMfhVOMYSoUpcoSaVJV9FoNDf0lNNZvtVqP6Vczyi6CC3wEdAMJ2dnZJcGgTAZOowOtjMlNERsYHx93KapyCb1/f3Bw0MXvcwsfgYsgZAC5xxCW4/F4amgaZMZau7u7Tf0vOJyamlqSlpZWSgvH+DGxFgi8BvHXyYDP5zsrfNRISUlJRfG7dxdSG2YMpIB8Qlw4nZ2dDQF/oNvnWznX1tZWEyZO4s+mUjSxzS1nCxv3vyXxf0GE6S+R9YNYr/xWtAAAABpmY1RMAAAAEwAAACAAAAAiAAAAAAAAAAAAZAPoAACsN34XAAAFF2ZkQVQAAAAUeNq1l1tMXEUcxmmgJkZuAtkoWHyxXCKJpvJgpD60rNocWCCgFOmyUHa36hKgLqE0vFXQVCymioYXE8LVeCONpIQHEo0xYhtCE6SpvgnULOzCrpCFhbPn4vdf59Dj2BV6Nk7yyxxmdub7ZuY/F+KMJlVVjwAr48j+LYwLHQYP8eWSJNWh/BxB33w9taG2sYrnAztwgDyu7pwsy29oJri6PEmVnKxtfiwGGjQB1lmi3oAeXXkiaNQMYnbOGjawEQxaOaHiAxgo1sSJYHDDatiA291axQuBx6IZoDp9GRlwu91VsYTByfn5+bOyirW+t97lVOHzrTs0Ia/Xa2cGyvUGqC31cdD1bgPLiqreQe5ixVlms7mSOtMMSJIaEaupqXnV5/M5vN4VO32znWHXBye1pT6obmdn5yjKTrO4yufFU8AfqqL4kK+BdXzfRG5CddHw8PAZbVQTExMkRuklYGGYqYDqtN+Njo6eQdFx6gOUc7vGAQ7rDTxKBsAKZsCLHEaUdeR+cVccjo+PLxUsQpUgCLSeAmtmYibM7JuSUFJSUkm/ozZ373pO6ONhL5ckJ3+2JMzM3OhVVGURFR6IryL3stnwT09P23WjLQDRUoH2O5fL9YImqickis6Ojo5q0vyHAVBSV1fX4Pf7r7PZ8Ch/G/GBV1CfxtgvpRH8jiCmJqdsOTk5FaTFG6CUDQRg6e/vb9ve3v5JUdTfPR7Pl0lJSekGdlA6xYEYCjlvYzew5bMwjexojR4Gx0ApsOhIM2AgjeujFDxHGvwOKAU/gzuI/F+RE7/J4fDc2NjYRbauRlNBbW1tZSCw2cjfHdotSgZ+ROT/QqgALDBuIxhn4mJMJKQX5k3ESYr0g6qotwiYuIXCOQ3EwHexGpBE0cYLa4iiWBc3NDR0PhwOf4+Cm1iCCIj+G2JYnB4cHGyN1UB9fX0ZnZi8+MrKisNms5XzJxqPOUb9A/Vv4n/U3d3tCgQ2RrAEdCZcAIcMrn8R3Q8LCwv1bBvy4ia+wRPgPSzBFPJJMAGugWcfWJw/iORIXgwSozWoBt+C66qyJ/wN+ALB8syDGtja2nqchPnopxnZ3d3N58WTSJxxTVGUceRfgc/n5uYuZWVlpeP7aZAHDu07cpCcnJxGJ+H9dwB3GeGPRxQlMloIK1/TqNfW1j5pbm5uoPXy/+mnDj5FR1cxgtf+a801kcXFxWJqS28CepjoDYiS6ORfzAnj4+PtqBgNBoOfDQwMtOI6jRyfPT09L5M4+AiPkivILzGxo+AtYA+FQk9GyrgHicPheF471luamqqXl5ftm5ubzs7OzvvehgIXpcdTUlLondAJPga94LJv3edmBprxVGtDcLXgCd5AZUtLS6/fW3MVL2KVbr5U6ovrW4h2G54CJ0AWE3kR9IEPMaoPkL9rt9trqA7CHfjbrapyi/aEs1gsFfK/1/wp7XkHTjINaO2fSOQddHAVXMFoL8/OzrrZaFAnX4C4W8YMQLCJNSmanJy0cZEPwwYTG3UveD8sh7sKCwurtKsZZe3gbbA3A1SXm5tbHgqJTs0E7oJGwwZGRkYaIdwj43Dq6+uz032uMwcDcsQAZqFJ1+xY+8X207IsItolZ1dXF+LAeDplMpkqMjMzqRNB/5jYCATO0wzIMLC6uvom96gRMjIyylJTU8vYmhtO2aCE4APH6XTW4KyA+JrLarVWR2knsO+YUgKxzy1njtruf0v8/wUG019dDISlQm+mHQAAABpmY1RMAAAAFQAAACAAAAAhAAAAAAAAAAAAZAPoAABQgGYUAAAFD2ZkQVQAAAAWeAGl13tIW9cDB/BTTCtCdbYV2SjKGJ12zL+6f7bpBnUZG1cTQyzVn49Y42266NRNVuqEPXzgqpvsD53stzHcKGHdBttEkCBM6CjdoxsrQoUhSH2kZorYlkaTcO89+570XHd7SC4xOfDxHO/jvO85JyTVQCktgAZFURp5mqQimYcegUNABA2qqp5D7GFpIIIDsD/dCnTAEgTgTeGeR0AMjoNMFUVG/FQ6FfgbVuE2j59MogIHwc16h0H6TMoVwPheR7xMqRagGg0i/X0SFXhJv8YqcPf+/QYgiRCzm7Ozs33I6JZG6QrrBU3T/kH8ikkFHhWvd3V1VQNJhJjdtFgs5dvb21di80DTAtqDXrgGZHNzQ9YLWV9fbwGCdJXechbPzc01E0LKk/2smuEqzEA97MPlo0NDQ2wiLsKyYS6Q2traUxsbG3IQhbM0YMhoi7H1VqvVyfLg+R+jCq2FM8aJaZw4V+E3+AMt/QvxD/Ac3i1dWlm6pFHtFnphFYV+DQThZbBxViBTU1On9B7w+Xz1uFSG//OhSu+VB3Hs69hvrEAO/My791e4Dn/CjXA4/HFmZqZtfHy8a2xsrCsjI0MCgpDPK2HlaRakiooKpyRJ1XimcnV19aRKVWGugKKcRXxgtwIIFr/f/w5m+izviWt6b6DVNyYnJ+sNrS2BRKFEf661o/V5sWAmHAp7LlzoOc3KJIZggQq73V4fCAQ+x4NXeEV+gd+hDPcPc+aBP2f8IvTu98/MNBYVFTlYWWIFWCgECWyD/YPeO3fvXFY07aeFhYVPsrOzjwDZC4QjbB6EQiHPzbmbzWxoeO9IvKy4IQtOQCXYdOYtN+0Jm0ElPANZ4udXCl9hkWGznvkRJhUlehmTro2Pa6qhpK6uzrm1teUWhwMaoIBgln6BxDeYgN8i1n3HTQBJU4OxYCO2lRP8+Qz/+GJUFagPlQJQ1E+BpCOqRF16gaLozk4jGRkZce/s7PwfF76ECQaFT2DyjGMVbAaSDpfLVWVctnXB20G5qanJLq5oIiukE5LKP198qL293bW2ttaLmn4INbAPSApK2f4wPz/vYqtjnMLzxS8iD2QYwTB8hHgIBuGJvRcubM0q4KwABxMdSF5UVXoR8TBmbKxgldIBXGM98TiQvcAceizOpwdKC+LjYgWy4CI3CAP4IvoQvzc9Pe1lKyHShXA0qZZDTk7OYd8lX3282a9QYTOCTJUVCtAH7y8uLr7ldDpr2HgFg8FKdihFpToQv2A25nqLsROWs3fZmYAdTB6uAH14O0awjI6OtkQikXdxsnm7t3egCdtpbPns7OwsY4VDB7SBDAQK0JJGfUUDAm7jmMuy/Ky+rLe1tZ3GRue+dy90tqcn/m4oCbO0DA6hkDpk2Amvg3dlZaUOdlc4itbyNFkOLP/PcBr2QBXyyIUyIW8p0W74KpzUj1GRCH0ambwB7ciUtf41h8PmAGI84XDEZrM52DVh8h0DwvMs52UUJn9OVHe73otDi4u3Ju6pGKHUP+NvFK7Xpvy7AC3w8q5vxdHsXHFxcZW+NRu7mqcJu8eeCYVD/6330agbSCLE7Obw8AfVqhptRdrb3d1dw/dzkqgHGIQT3efP1+AdTxj6+/sdQBIhpjcxXrm5ufa8vDw70pLxMMGO5Kzl+sYChOHPSOwd9i4f85RDIVQw4sSJ/S7Y3JTXDb8LOON7Ek+nFSyc2S5nNX3PJPwLu02sWzaoOecAAAATdEVYdFNvZnR3YXJlAEphcG5nIHIxMTkn6LNhAAAAAElFTkSuQmCC);background-size:16px 17px}ngx-extended-pdf-viewer .dropdownToolbarButton::after{width:24px;height:24px;display:inline-block;position:absolute;margin-top:5px}@media print{body{background:rgba(0,0,0,0)}#errorWrapper,#loadingBox,#secondaryToolbar,#sidebarContainer,.textLayer,.toolbar{display:none}#viewerContainer{overflow:visible}#mainContainer,#viewerContainer,.page,.page canvas{position:static;padding:0;margin:0}.page{float:left;display:none;border:none;box-shadow:none;background-clip:content-box;background-color:#fff}.page[data-loaded]{display:block}.fileInput,body[data-pdfjsprinting] #outerContainer{display:none}#printContainer canvas,#printContainer img,body[data-pdfjsprinting] #printContainer{display:block}#printContainer{height:100%}#printContainer>div{position:relative;top:0;left:0;width:1px;height:1px;overflow:visible;page-break-after:always;page-break-inside:avoid}}ngx-extended-pdf-viewer .visibleLargeView,ngx-extended-pdf-viewer .visibleMediumView,ngx-extended-pdf-viewer .visibleSmallView{display:none}ngx-extended-pdf-viewer #viewerContainer{overflow:auto;-webkit-overflow-scrolling:touch;position:absolute}ngx-extended-pdf-viewer .invisible{display:none!important}body[data-pdfjsprinting] #printContainer,body[data-pdfjsprinting] #printContainer *{padding:0;margin:0;font:message-box;outline:0}#printContainer canvas,#printContainer img{display:block!important}@media print{body[data-pdfjsprinting]>*{display:none!important}body[data-pdfjsprinting] #printContainer{display:block!important}body[data-pdfjsprinting] #printContainer div img{height:100vh!important}body,html{overflow-y:visible!important}html.cdk-global-scrollblock{width:initial;position:initial}}ngx-extended-pdf-viewer .textLayer .highlight.color0{background-color:rgba(180,0,170,.4)}ngx-extended-pdf-viewer .textLayer .highlight.color0.selected{background-color:#b400aa}ngx-extended-pdf-viewer .textLayer .highlight.color1{background-color:rgba(0,100,0,.4)}ngx-extended-pdf-viewer .textLayer .highlight.color1.selected{background-color:#006400}ngx-extended-pdf-viewer .textLayer .highlight.color2{background-color:rgba(0,0,255,.4)}ngx-extended-pdf-viewer .textLayer .highlight.color2.selected{background-color:#00f}ngx-extended-pdf-viewer .textLayer .highlight.color3{background-color:rgba(255,0,0,.4)}ngx-extended-pdf-viewer .textLayer .highlight.color3.selected{background-color:red}ngx-extended-pdf-viewer textLayer .highlight.color4{background-color:rgba(255,94,0,.4)}ngx-extended-pdf-viewer .textLayer .highlight.color4.selected{background-color:#ff5e00}html[dir=ltr] ngx-extended-pdf-viewer .dropdownToolbarButton,html[dir=ltr] ngx-extended-pdf-viewer .overlayButton,html[dir=ltr] ngx-extended-pdf-viewer .toolbarButton{margin:3px 0 4px}html[dir=ltr] ngx-extended-pdf-viewer .toolbarButton:last-child,html[dir=rtl] ngx-extended-pdf-viewer .toolbarButton:first-child{margin-right:0;margin-left:0}html[dir=ltr] ngx-extended-pdf-viewer #secondaryToolbarToggle{margin-right:4px;margin-left:0}html[dir=rtl] ngx-extended-pdf-viewer #secondaryToolbarToggle{margin-right:0;margin-left:4px}ngx-extended-pdf-viewer .dropdownToolbarButton,ngx-extended-pdf-viewer .overlayButton,ngx-extended-pdf-viewer .secondaryToolbarButton,ngx-extended-pdf-viewer .toolbarButton{padding-left:0;padding-right:0}ngx-extended-pdf-viewer .offscreen{position:fixed!important;left:-9999px!important;display:block!important;width:3000px!important}ngx-extended-pdf-viewer .offscreen #sidebarContainer{top:1000px!important}ngx-extended-pdf-viewer .dropdownToolbarButton,ngx-extended-pdf-viewer .toolbarButton{margin-left:-1px!important;margin-right:-2px!important}ngx-extended-pdf-viewer #numPages{padding-right:0}ngx-extended-pdf-viewer .pdf-viewer-template,ngx-extended-pdf-viewer .pdf-viewer-template *{display:none}ngx-extended-pdf-viewer a:focus,ngx-extended-pdf-viewer button:focus,ngx-extended-pdf-viewer input:focus,ngx-extended-pdf-viewer select:focus{outline:0;border:1px solid #00f}ngx-extended-pdf-viewer input[type=checkbox]:focus{outline:#00f solid 1px}"],encapsulation:2}),e})(),jk=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=$e({type:e,selectors:[["pdf-dark-theme"]],decls:0,vars:0,template:function(e,t){},styles:["ngx-extended-pdf-viewer .dropdownToolbarButton::after{content:url(\"data:image/svg+xml; utf8, <svg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'><path fill='rgb(217, 217, 217)' d='M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z' /></svg>\")}ngx-extended-pdf-viewer .textLayer{position:absolute;left:0;top:0;right:0;bottom:0;overflow:hidden;opacity:.2;line-height:1}ngx-extended-pdf-viewer .textLayer>span{color:transparent;position:absolute;white-space:pre;cursor:text;-webkit-transform-origin:0 0;transform-origin:0 0}ngx-extended-pdf-viewer .textLayer .highlight{margin:-1px;padding:1px;background-color:var(#b400aa);border-radius:4px}ngx-extended-pdf-viewer .textLayer .highlight.begin{border-radius:4px 0 0 4px}ngx-extended-pdf-viewer .textLayer .highlight.end{border-radius:0 4px 4px 0}ngx-extended-pdf-viewer .textLayer .highlight.middle{border-radius:0}ngx-extended-pdf-viewer .textLayer .highlight.selected{background-color:#006400}ngx-extended-pdf-viewer .textLayer ::-moz-selection{background:#00f}ngx-extended-pdf-viewer .textLayer ::selection{background:#00f}ngx-extended-pdf-viewer .textLayer .endOfContent{display:block;position:absolute;left:0;top:100%;right:0;bottom:0;z-index:-1;cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}ngx-extended-pdf-viewer .textLayer .endOfContent.active{top:0}ngx-extended-pdf-viewer .annotationLayer section{position:absolute}ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.pushButton>a,ngx-extended-pdf-viewer .annotationLayer .linkAnnotation>a{position:absolute;font-size:1em;top:0;left:0;width:100%;height:100%}ngx-extended-pdf-viewer .annotationLayer .textAnnotation img{position:absolute;cursor:pointer}ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.checkBox input,ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.radioButton input,ngx-extended-pdf-viewer .annotationLayer .choiceWidgetAnnotation select,ngx-extended-pdf-viewer .annotationLayer .textWidgetAnnotation input,ngx-extended-pdf-viewer .annotationLayer .textWidgetAnnotation textarea{background-color:rgba(0,54,255,.13);color:#474747;border:1px solid transparent;box-sizing:border-box;font-size:9px;height:100%;margin:0;padding:0 3px;vertical-align:top;width:100%}ngx-extended-pdf-viewer .annotationLayer .choiceWidgetAnnotation select option{padding:0}ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.radioButton input{border-radius:50%}ngx-extended-pdf-viewer .annotationLayer .textWidgetAnnotation textarea{font:message-box;font-size:9px;resize:none}ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.checkBox input[disabled],ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.radioButton input[disabled],ngx-extended-pdf-viewer .annotationLayer .choiceWidgetAnnotation select[disabled],ngx-extended-pdf-viewer .annotationLayer .textWidgetAnnotation input[disabled],ngx-extended-pdf-viewer .annotationLayer .textWidgetAnnotation textarea[disabled]{background:0 0;border:1px solid transparent;cursor:not-allowed}ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after,ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before,ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.radioButton input:checked:before{background-color:#474747;content:'';display:block;position:absolute}ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after,ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before{height:80%;left:45%;width:1px}ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before{-webkit-transform:rotate(45deg);transform:rotate(45deg)}ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after{-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.radioButton input:checked:before{border-radius:50%;height:50%;left:30%;top:20%;width:50%}ngx-extended-pdf-viewer .annotationLayer .textWidgetAnnotation input.comb{font-family:monospace;padding-left:2px;padding-right:0}ngx-extended-pdf-viewer .annotationLayer .textWidgetAnnotation input.comb:focus{width:115%}ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.checkBox input,ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.radioButton input{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:0}ngx-extended-pdf-viewer .annotationLayer .popupWrapper{position:absolute;width:20em}ngx-extended-pdf-viewer .annotationLayer .popup{position:absolute;z-index:4;max-width:20em;background-color:#ff9;box-shadow:0 2px 5px #888;border-radius:2px;padding:6px;margin-left:5px;cursor:pointer;font:message-box;font-size:9px;word-wrap:break-word}ngx-extended-pdf-viewer .annotationLayer .popup>*{font-size:9px}ngx-extended-pdf-viewer .annotationLayer .popup h1{display:inline-block}ngx-extended-pdf-viewer .annotationLayer .popup span{display:inline-block;margin-left:5px}ngx-extended-pdf-viewer .annotationLayer .popup p{border-top:1px solid #333;margin-top:2px;padding-top:2px}ngx-extended-pdf-viewer .annotationLayer .caretAnnotation,ngx-extended-pdf-viewer .annotationLayer .circleAnnotation svg ellipse,ngx-extended-pdf-viewer .annotationLayer .fileAttachmentAnnotation,ngx-extended-pdf-viewer .annotationLayer .freeTextAnnotation,ngx-extended-pdf-viewer .annotationLayer .highlightAnnotation,ngx-extended-pdf-viewer .annotationLayer .inkAnnotation svg polyline,ngx-extended-pdf-viewer .annotationLayer .lineAnnotation svg line,ngx-extended-pdf-viewer .annotationLayer .polygonAnnotation svg polygon,ngx-extended-pdf-viewer .annotationLayer .polylineAnnotation svg polyline,ngx-extended-pdf-viewer .annotationLayer .squareAnnotation svg rect,ngx-extended-pdf-viewer .annotationLayer .squigglyAnnotation,ngx-extended-pdf-viewer .annotationLayer .stampAnnotation,ngx-extended-pdf-viewer .annotationLayer .strikeoutAnnotation,ngx-extended-pdf-viewer .annotationLayer .underlineAnnotation{cursor:pointer}ngx-extended-pdf-viewer .pdfViewer .canvasWrapper{overflow:hidden}ngx-extended-pdf-viewer .pdfViewer .page{direction:ltr;width:816px;height:1056px;margin:1px auto -8px;position:relative;overflow:visible;border:9px solid transparent;background-clip:content-box;-o-border-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAATCAQAAADYWf5HAAAA6UlEQVR4Xl2Pi2rEMAwE16fm1f7/r14v7w4rI0IzLAF7hLxNevBSEMEF5+OilNCsRd8ZMyn+a4NmsOT8WJw1lFbSYgGFzF2bLFoLjTClWjKKGRWpDYAGXUnZ4uhbBUzF3Oe/GG/ue2fn4GgsyXhNgysV2JnrhKEMg4fEZcALmiKbNhBBRFpSyDOj1G4QOVly6O1FV54ZZq8OVygrciDt6JazRgi1ljTPH0gbrPmHPXAbCiDd4GawIjip1TPh9tt2sz24qaCjr/jAb/GBFTbq9KZ7Ke/Cqt8nayUikZKsWZK7Fe6bg5dOUt8fZHWG2BHc+6EAAAAASUVORK5CYII=) 9 9 repeat;border-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAATCAQAAADYWf5HAAAA6UlEQVR4Xl2Pi2rEMAwE16fm1f7/r14v7w4rI0IzLAF7hLxNevBSEMEF5+OilNCsRd8ZMyn+a4NmsOT8WJw1lFbSYgGFzF2bLFoLjTClWjKKGRWpDYAGXUnZ4uhbBUzF3Oe/GG/ue2fn4GgsyXhNgysV2JnrhKEMg4fEZcALmiKbNhBBRFpSyDOj1G4QOVly6O1FV54ZZq8OVygrciDt6JazRgi1ljTPH0gbrPmHPXAbCiDd4GawIjip1TPh9tt2sz24qaCjr/jAb/GBFTbq9KZ7Ke/Cqt8nayUikZKsWZK7Fe6bg5dOUt8fZHWG2BHc+6EAAAAASUVORK5CYII=) 9 9 repeat;background-color:#fff}ngx-extended-pdf-viewer .pdfViewer.removePageBorders .page{margin:0 auto 10px;border:none}ngx-extended-pdf-viewer .pdfViewer.singlePageView{display:inline-block}ngx-extended-pdf-viewer .pdfViewer.singlePageView .page{margin:0;border:none}ngx-extended-pdf-viewer .pdfViewer.scrollHorizontal,ngx-extended-pdf-viewer .pdfViewer.scrollWrapped,ngx-extended-pdf-viewer .spread{margin-left:3.5px;margin-right:3.5px;text-align:center}ngx-extended-pdf-viewer .pdfViewer.scrollHorizontal,ngx-extended-pdf-viewer .spread{white-space:nowrap}ngx-extended-pdf-viewer .pdfViewer.removePageBorders,ngx-extended-pdf-viewer .pdfViewer.scrollHorizontal .spread,ngx-extended-pdf-viewer .pdfViewer.scrollWrapped .spread{margin-left:0;margin-right:0}ngx-extended-pdf-viewer .pdfViewer.scrollHorizontal .page,ngx-extended-pdf-viewer .pdfViewer.scrollHorizontal .spread,ngx-extended-pdf-viewer .pdfViewer.scrollWrapped .page,ngx-extended-pdf-viewer .pdfViewer.scrollWrapped .spread,ngx-extended-pdf-viewer .spread .page{display:inline-block;vertical-align:middle}ngx-extended-pdf-viewer .pdfViewer.scrollHorizontal .page,ngx-extended-pdf-viewer .pdfViewer.scrollWrapped .page,ngx-extended-pdf-viewer .spread .page{margin-left:-3.5px;margin-right:-3.5px}ngx-extended-pdf-viewer .pdfViewer.removePageBorders .spread .page,ngx-extended-pdf-viewer .pdfViewer.removePageBorders.scrollHorizontal .page,ngx-extended-pdf-viewer .pdfViewer.removePageBorders.scrollWrapped .page{margin-left:5px;margin-right:5px}ngx-extended-pdf-viewer .pdfViewer .page canvas{margin:0;display:block}ngx-extended-pdf-viewer .pdfViewer .page canvas[hidden]{display:none}ngx-extended-pdf-viewer .pdfViewer .page .loadingIcon{position:absolute;display:block;left:0;top:0;right:0;bottom:0;background:url(data:image/gif;base64,R0lGODlhGAAYAPQAAP///wAAAM7Ozvr6+uDg4LCwsOjo6I6OjsjIyJycnNjY2KioqMDAwPLy8nZ2doaGhri4uGhoaAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH/C05FVFNDQVBFMi4wAwEAAAAh/hpDcmVhdGVkIHdpdGggYWpheGxvYWQuaW5mbwAh+QQJBwAAACwAAAAAGAAYAAAFriAgjiQAQWVaDgr5POSgkoTDjFE0NoQ8iw8HQZQTDQjDn4jhSABhAAOhoTqSDg7qSUQwxEaEwwFhXHhHgzOA1xshxAnfTzotGRaHglJqkJcaVEqCgyoCBQkJBQKDDXQGDYaIioyOgYSXA36XIgYMBWRzXZoKBQUMmil0lgalLSIClgBpO0g+s26nUWddXyoEDIsACq5SsTMMDIECwUdJPw0Mzsu0qHYkw72bBmozIQAh+QQJBwAAACwAAAAAGAAYAAAFsCAgjiTAMGVaDgR5HKQwqKNxIKPjjFCk0KNXC6ATKSI7oAhxWIhezwhENTCQEoeGCdWIPEgzESGxEIgGBWstEW4QCGGAIJEoxGmGt5ZkgCRQQHkGd2CESoeIIwoMBQUMP4cNeQQGDYuNj4iSb5WJnmeGng0CDGaBlIQEJziHk3sABidDAHBgagButSKvAAoyuHuUYHgCkAZqebw0AgLBQyyzNKO3byNuoSS8x8OfwIchACH5BAkHAAAALAAAAAAYABgAAAW4ICCOJIAgZVoOBJkkpDKoo5EI43GMjNPSokXCINKJCI4HcCRIQEQvqIOhGhBHhUTDhGo4diOZyFAoKEQDxra2mAEgjghOpCgz3LTBIxJ5kgwMBShACREHZ1V4Kg1rS44pBAgMDAg/Sw0GBAQGDZGTlY+YmpyPpSQDiqYiDQoCliqZBqkGAgKIS5kEjQ21VwCyp76dBHiNvz+MR74AqSOdVwbQuo+abppo10ssjdkAnc0rf8vgl8YqIQAh+QQJBwAAACwAAAAAGAAYAAAFrCAgjiQgCGVaDgZZFCQxqKNRKGOSjMjR0qLXTyciHA7AkaLACMIAiwOC1iAxCrMToHHYjWQiA4NBEA0Q1RpWxHg4cMXxNDk4OBxNUkPAQAEXDgllKgMzQA1pSYopBgonCj9JEA8REQ8QjY+RQJOVl4ugoYssBJuMpYYjDQSliwasiQOwNakALKqsqbWvIohFm7V6rQAGP6+JQLlFg7KDQLKJrLjBKbvAor3IKiEAIfkECQcAAAAsAAAAABgAGAAABbUgII4koChlmhokw5DEoI4NQ4xFMQoJO4uuhignMiQWvxGBIQC+AJBEUyUcIRiyE6CR0CllW4HABxBURTUw4nC4FcWo5CDBRpQaCoF7VjgsyCUDYDMNZ0mHdwYEBAaGMwwHDg4HDA2KjI4qkJKUiJ6faJkiA4qAKQkRB3E0i6YpAw8RERAjA4tnBoMApCMQDhFTuySKoSKMJAq6rD4GzASiJYtgi6PUcs9Kew0xh7rNJMqIhYchACH5BAkHAAAALAAAAAAYABgAAAW0ICCOJEAQZZo2JIKQxqCOjWCMDDMqxT2LAgELkBMZCoXfyCBQiFwiRsGpku0EshNgUNAtrYPT0GQVNRBWwSKBMp98P24iISgNDAS4ipGA6JUpA2WAhDR4eWM/CAkHBwkIDYcGiTOLjY+FmZkNlCN3eUoLDmwlDW+AAwcODl5bYl8wCVYMDw5UWzBtnAANEQ8kBIM0oAAGPgcREIQnVloAChEOqARjzgAQEbczg8YkWJq8nSUhACH5BAkHAAAALAAAAAAYABgAAAWtICCOJGAYZZoOpKKQqDoORDMKwkgwtiwSBBYAJ2owGL5RgxBziQQMgkwoMkhNqAEDARPSaiMDFdDIiRSFQowMXE8Z6RdpYHWnEAWGPVkajPmARVZMPUkCBQkJBQINgwaFPoeJi4GVlQ2Qc3VJBQcLV0ptfAMJBwdcIl+FYjALQgimoGNWIhAQZA4HXSpLMQ8PIgkOSHxAQhERPw7ASTSFyCMMDqBTJL8tf3y2fCEAIfkECQcAAAAsAAAAABgAGAAABa8gII4k0DRlmg6kYZCoOg5EDBDEaAi2jLO3nEkgkMEIL4BLpBAkVy3hCTAQKGAznM0AFNFGBAbj2cA9jQixcGZAGgECBu/9HnTp+FGjjezJFAwFBQwKe2Z+KoCChHmNjVMqA21nKQwJEJRlbnUFCQlFXlpeCWcGBUACCwlrdw8RKGImBwktdyMQEQciB7oACwcIeA4RVwAODiIGvHQKERAjxyMIB5QlVSTLYLZ0sW8hACH5BAkHAAAALAAAAAAYABgAAAW0ICCOJNA0ZZoOpGGQrDoOBCoSxNgQsQzgMZyIlvOJdi+AS2SoyXrK4umWPM5wNiV0UDUIBNkdoepTfMkA7thIECiyRtUAGq8fm2O4jIBgMBA1eAZ6Knx+gHaJR4QwdCMKBxEJRggFDGgQEREPjjAMBQUKIwIRDhBDC2QNDDEKoEkDoiMHDigICGkJBS2dDA6TAAnAEAkCdQ8ORQcHTAkLcQQODLPMIgIJaCWxJMIkPIoAt3EhACH5BAkHAAAALAAAAAAYABgAAAWtICCOJNA0ZZoOpGGQrDoOBCoSxNgQsQzgMZyIlvOJdi+AS2SoyXrK4umWHM5wNiV0UN3xdLiqr+mENcWpM9TIbrsBkEck8oC0DQqBQGGIz+t3eXtob0ZTPgNrIwQJDgtGAgwCWSIMDg4HiiUIDAxFAAoODwxDBWINCEGdSTQkCQcoegADBaQ6MggHjwAFBZUFCm0HB0kJCUy9bAYHCCPGIwqmRq0jySMGmj6yRiEAIfkECQcAAAAsAAAAABgAGAAABbIgII4k0DRlmg6kYZCsOg4EKhLE2BCxDOAxnIiW84l2L4BLZKipBopW8XRLDkeCiAMyMvQAA+uON4JEIo+vqukkKQ6RhLHplVGN+LyKcXA4Dgx5DWwGDXx+gIKENnqNdzIDaiMECwcFRgQCCowiCAcHCZIlCgICVgSfCEMMnA0CXaU2YSQFoQAKUQMMqjoyAglcAAyBAAIMRUYLCUkFlybDeAYJryLNk6xGNCTQXY0juHghACH5BAkHAAAALAAAAAAYABgAAAWzICCOJNA0ZVoOAmkY5KCSSgSNBDE2hDyLjohClBMNij8RJHIQvZwEVOpIekRQJyJs5AMoHA+GMbE1lnm9EcPhOHRnhpwUl3AsknHDm5RN+v8qCAkHBwkIfw1xBAYNgoSGiIqMgJQifZUjBhAJYj95ewIJCQV7KYpzBAkLLQADCHOtOpY5PgNlAAykAEUsQ1wzCgWdCIdeArczBQVbDJ0NAqyeBb64nQAGArBTt8R8mLuyPyEAOwAAAAAAAAAAAA==) center no-repeat}ngx-extended-pdf-viewer .pdfPresentationMode .pdfViewer{margin-left:0;margin-right:0}ngx-extended-pdf-viewer .pdfPresentationMode .pdfViewer .page,ngx-extended-pdf-viewer .pdfPresentationMode .pdfViewer .spread{display:block}ngx-extended-pdf-viewer .pdfPresentationMode .pdfViewer .page,ngx-extended-pdf-viewer .pdfPresentationMode .pdfViewer.removePageBorders .page{margin-left:auto;margin-right:auto}ngx-extended-pdf-viewer .pdfPresentationMode:-ms-fullscreen .pdfViewer .page{margin-bottom:100%!important}ngx-extended-pdf-viewer .pdfPresentationMode:-webkit-full-screen .pdfViewer .page{margin-bottom:100%;border:0}ngx-extended-pdf-viewer .pdfPresentationMode:-moz-full-screen .pdfViewer .page{margin-bottom:100%;border:0}ngx-extended-pdf-viewer .pdfPresentationMode:fullscreen .pdfViewer .page{margin-bottom:100%;border:0}ngx-extended-pdf-viewer .html *{padding:0;margin:0}ngx-extended-pdf-viewer .html{height:100%;width:100%;font-size:10px}ngx-extended-pdf-viewer .body{height:100%;width:100%}ngx-extended-pdf-viewer .body,ngx-extended-pdf-viewer .pdf-viewer button,ngx-extended-pdf-viewer .pdf-viewer input,ngx-extended-pdf-viewer .pdf-viewer select{font:message-box;outline:0}ngx-extended-pdf-viewer select{background-color:rgba(255,255,255,.09)!important}ngx-extended-pdf-viewer .hidden,ngx-extended-pdf-viewer [hidden]{display:none!important}ngx-extended-pdf-viewer .pdfViewer.enablePermissions .textLayer>span{-webkit-user-select:none!important;-moz-user-select:none!important;-ms-user-select:none!important;user-select:none!important;cursor:not-allowed}ngx-extended-pdf-viewer #viewerContainer.pdfPresentationMode:-ms-fullscreen{top:0!important;overflow:hidden!important}ngx-extended-pdf-viewer #viewerContainer.pdfPresentationMode:-ms-fullscreen::-ms-backdrop{background-color:#000}ngx-extended-pdf-viewer #viewerContainer.pdfPresentationMode:-webkit-full-screen{top:0;border-top:2px solid transparent;background-color:#000;width:100%;height:100%;overflow:hidden;cursor:none;-webkit-user-select:none;user-select:none}ngx-extended-pdf-viewer #viewerContainer.pdfPresentationMode:-moz-full-screen{top:0;border-top:2px solid transparent;background-color:#000;width:100%;height:100%;overflow:hidden;cursor:none;-moz-user-select:none;user-select:none}ngx-extended-pdf-viewer #viewerContainer.pdfPresentationMode:-ms-fullscreen{border-top:2px solid transparent;background-color:#000;width:100%;height:100%;cursor:none;-ms-user-select:none;user-select:none}ngx-extended-pdf-viewer #viewerContainer.pdfPresentationMode:fullscreen{top:0;border-top:2px solid transparent;background-color:#000;width:100%;height:100%;overflow:hidden;cursor:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}ngx-extended-pdf-viewer .pdfPresentationMode:-webkit-full-screen a:not(.internalLink){display:none}ngx-extended-pdf-viewer .pdfPresentationMode:-moz-full-screen a:not(.internalLink){display:none}ngx-extended-pdf-viewer .pdfPresentationMode:-ms-fullscreen a:not(.internalLink){display:none}ngx-extended-pdf-viewer .pdfPresentationMode:fullscreen a:not(.internalLink){display:none}ngx-extended-pdf-viewer .pdfPresentationMode:-webkit-full-screen .textLayer>span{cursor:none}ngx-extended-pdf-viewer .pdfPresentationMode:-moz-full-screen .textLayer>span{cursor:none}ngx-extended-pdf-viewer .pdfPresentationMode:-ms-fullscreen .textLayer>span{cursor:none}ngx-extended-pdf-viewer .pdfPresentationMode:fullscreen .textLayer>span{cursor:none}ngx-extended-pdf-viewer .pdfPresentationMode.pdfPresentationModeControls .textLayer>span,ngx-extended-pdf-viewer .pdfPresentationMode.pdfPresentationModeControls>*{cursor:default}ngx-extended-pdf-viewer #outerContainer{width:100%;height:100%;position:relative;-webkit-clip-path:inset(0 0 0 0);clip-path:inset(0 0 0 0)}ngx-extended-pdf-viewer #sidebarContainer{position:absolute;top:32px;bottom:0;width:200px;visibility:hidden;z-index:2;border-top:1px solid #333;transition-duration:.2s;transition-timing-function:ease}html[dir=ltr] ngx-extended-pdf-viewer #sidebarContainer{transition-property:left;left:-200px;left:calc(0px - $sidebar-width)}html[dir=rtl] ngx-extended-pdf-viewer #sidebarContainer{transition-property:right;right:-200px;right:calc(0px - $sidebar-width)}ngx-extended-pdf-viewer .loadingInProgress #sidebarContainer{top:36px}ngx-extended-pdf-viewer #outerContainer.sidebarResizing #sidebarContainer{transition-duration:0s;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}ngx-extended-pdf-viewer #outerContainer.sidebarMoving #sidebarContainer,ngx-extended-pdf-viewer #outerContainer.sidebarOpen #sidebarContainer{visibility:visible}html[dir=ltr] ngx-extended-pdf-viewer #outerContainer.sidebarOpen #sidebarContainer{left:0}html[dir=rtl] ngx-extended-pdf-viewer #outerContainer.sidebarOpen #sidebarContainer{right:0}ngx-extended-pdf-viewer #mainContainer{position:absolute;top:0;right:0;bottom:0;left:0;min-width:320px}ngx-extended-pdf-viewer #sidebarContent{top:32px;bottom:0;overflow:auto;-webkit-overflow-scrolling:touch;position:absolute;width:100%;background-color:rgba(0,0,0,.1)}html[dir=ltr] ngx-extended-pdf-viewer #sidebarContent{left:0}html[dir=rtl] ngx-extended-pdf-viewer #sidebarContent{right:0}ngx-extended-pdf-viewer #viewerContainer{-webkit-overflow-scrolling:touch;top:32px;right:0;bottom:0;left:0;outline:0}ngx-extended-pdf-viewer #viewerContainer:not(.pdfPresentationMode){transition-duration:.2s;transition-timing-function:ease}ngx-extended-pdf-viewer #outerContainer.sidebarResizing #viewerContainer{transition-duration:0s}html[dir=ltr] ngx-extended-pdf-viewer #outerContainer.sidebarOpen #viewerContainer:not(.pdfPresentationMode){transition-property:left;left:200px}html[dir=rtl] ngx-extended-pdf-viewer #outerContainer.sidebarOpen #viewerContainer:not(.pdfPresentationMode){transition-property:right;right:200px}ngx-extended-pdf-viewer .toolbar{position:relative;left:0;right:0;z-index:7;cursor:default;border:1px solid rgba(0,0,0,.5)}ngx-extended-pdf-viewer #toolbarContainer{width:100%}ngx-extended-pdf-viewer #toolbarSidebar{width:100%;height:32px;background-color:#424242;color:#d9d9d9;border:none;padding-top:1px}ngx-extended-pdf-viewer #sidebarResizer{position:absolute;top:0;bottom:0;width:6px;z-index:4;cursor:ew-resize}html[dir=ltr] ngx-extended-pdf-viewer #sidebarResizer{right:-6px}html[dir=rtl] ngx-extended-pdf-viewer #sidebarResizer{left:-6px}ngx-extended-pdf-viewer #toolbarContainer,ngx-extended-pdf-viewer .findbar,ngx-extended-pdf-viewer .secondaryToolbar{position:relative;height:32px;background-color:#474747}ngx-extended-pdf-viewer #toolbarViewer{height:32px}ngx-extended-pdf-viewer #loadingBar{position:relative;width:100%;height:4px;background-color:#333;border-bottom:1px solid #333}ngx-extended-pdf-viewer #loadingBar .progress{position:absolute;top:0;left:0;width:0%;height:100%;background-color:#ddd;overflow:hidden;transition:width .2s}@-webkit-keyframes progressIndeterminate{0%{left:-142px}100%{left:0}}@keyframes progressIndeterminate{0%{left:-142px}100%{left:0}}ngx-extended-pdf-viewer #loadingBar .progress.indeterminate{background-color:#999;transition:none}ngx-extended-pdf-viewer #loadingBar .progress.indeterminate .glimmer{position:absolute;top:0;left:0;height:100%;width:calc(100% + 150px);background:repeating-linear-gradient(135deg,#bbb 0,#999 5px,#999 45px,#ddd 55px,#ddd 95px,#bbb 100px);-webkit-animation:950ms linear infinite progressIndeterminate;animation:950ms linear infinite progressIndeterminate}ngx-extended-pdf-viewer .findbar,ngx-extended-pdf-viewer .secondaryToolbar{top:40px;position:absolute;z-index:7;height:auto;min-width:16px;padding:0 6px;margin:4px 2px;color:#d9d9d9;font-size:12px;line-height:14px;text-align:left;cursor:default}ngx-extended-pdf-viewer .findbar{min-width:300px}ngx-extended-pdf-viewer .findbar>div{height:32px}ngx-extended-pdf-viewer .findbar.wrapContainers>div{clear:both}ngx-extended-pdf-viewer .findbar.wrapContainers>div#findbarMessageContainer{height:auto}html[dir=ltr] ngx-extended-pdf-viewer .findbar{left:34px}html[dir=rtl] ngx-extended-pdf-viewer .findbar{right:34px}ngx-extended-pdf-viewer .findbar label{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}ngx-extended-pdf-viewer #findInput{width:200px}ngx-extended-pdf-viewer #findInput::-webkit-input-placeholder{color:#bfbfbf}ngx-extended-pdf-viewer #findInput::-moz-placeholder{font-style:italic}ngx-extended-pdf-viewer #findInput:-ms-input-placeholder{font-style:italic}ngx-extended-pdf-viewer #findInput::-ms-input-placeholder{font-style:italic}ngx-extended-pdf-viewer #findInput::placeholder{font-style:italic}ngx-extended-pdf-viewer #findInput[data-status=pending]{background-repeat:no-repeat;background-position:right}html[dir=rtl] ngx-extended-pdf-viewer #findInput[data-status=pending]{background-position:left}ngx-extended-pdf-viewer .secondaryToolbar{padding:6px;height:auto;z-index:8}html[dir=ltr] ngx-extended-pdf-viewer .secondaryToolbar{right:4px}html[dir=rtl] ngx-extended-pdf-viewer .secondaryToolbar{left:4px}ngx-extended-pdf-viewer #secondaryToolbarButtonContainer{max-width:200px;max-height:400px;overflow-y:auto;-webkit-overflow-scrolling:touch;margin-bottom:-4px}ngx-extended-pdf-viewer #secondaryToolbarButtonContainer.hiddenScrollModeButtons>.scrollModeButtons,ngx-extended-pdf-viewer #secondaryToolbarButtonContainer.hiddenSpreadModeButtons>.spreadModeButtons{display:none!important}ngx-extended-pdf-viewer .doorHanger,ngx-extended-pdf-viewer .doorHangerRight{border:1px solid rgba(0,0,0,.5);border-radius:2px}ngx-extended-pdf-viewer .doorHanger:after,ngx-extended-pdf-viewer .doorHanger:before,ngx-extended-pdf-viewer .doorHangerRight:after,ngx-extended-pdf-viewer .doorHangerRight:before{bottom:100%;border:solid transparent;content:' ';height:0;width:0;position:absolute;pointer-events:none}ngx-extended-pdf-viewer .doorHanger:after,ngx-extended-pdf-viewer .doorHangerRight:after{border-bottom-color:#474747;border-width:8px}ngx-extended-pdf-viewer .doorHanger:before,ngx-extended-pdf-viewer .doorHangerRight:before{border-bottom-color:rgba(0,0,0,.5);border-width:9px}html[dir=ltr] ngx-extended-pdf-viewer .doorHanger:after,html[dir=rtl] ngx-extended-pdf-viewer .doorHangerRight:after{left:13px;margin-left:-8px}html[dir=ltr] ngx-extended-pdf-viewer .doorHanger:before,html[dir=rtl] ngx-extended-pdf-viewer .doorHangerRight:before{left:13px;margin-left:-9px}html[dir=ltr] ngx-extended-pdf-viewer .doorHangerRight:after,html[dir=rtl] ngx-extended-pdf-viewer .doorHanger:after{right:13px;margin-right:-8px}html[dir=ltr] ngx-extended-pdf-viewer .doorHangerRight:before,html[dir=rtl] ngx-extended-pdf-viewer .doorHanger:before{right:13px;margin-right:-9px}ngx-extended-pdf-viewer #findResultsCount{background-color:#d9d9d9;color:#474747;text-align:center;padding:3px 4px}ngx-extended-pdf-viewer #findMsg{font-style:italic;color:#f66}ngx-extended-pdf-viewer #findMsg:empty{display:none}ngx-extended-pdf-viewer #findInput.notFound{background-color:#f66}ngx-extended-pdf-viewer #toolbarViewerMiddle{position:absolute;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%)}html[dir=ltr] ngx-extended-pdf-viewer #toolbarViewerLeft,html[dir=rtl] ngx-extended-pdf-viewer #toolbarViewerRight{float:left;margin-left:4px}html[dir=ltr] ngx-extended-pdf-viewer #toolbarViewerRight,html[dir=rtl] ngx-extended-pdf-viewer #toolbarViewerLeft{float:right;margin-right:4px}html[dir=ltr] ngx-extended-pdf-viewer #toolbarViewerLeft>*,html[dir=ltr] ngx-extended-pdf-viewer #toolbarViewerMiddle>*,html[dir=ltr] ngx-extended-pdf-viewer #toolbarViewerRight>*,html[dir=ltr] ngx-extended-pdf-viewer .findbar *{position:relative;float:left}html[dir=rtl] ngx-extended-pdf-viewer #toolbarViewerLeft>*,html[dir=rtl] ngx-extended-pdf-viewer #toolbarViewerMiddle>*,html[dir=rtl] ngx-extended-pdf-viewer #toolbarViewerRight>*,html[dir=rtl] ngx-extended-pdf-viewer .findbar *{position:relative;float:right}ngx-extended-pdf-viewer .overlayButton,ngx-extended-pdf-viewer .secondaryToolbarButton,ngx-extended-pdf-viewer .toolbarButton{border:0;background:0 0;width:32px;height:25px}ngx-extended-pdf-viewer .toolbarButton>span{display:inline-block;width:0;height:0;overflow:hidden}ngx-extended-pdf-viewer .overlayButton[disabled],ngx-extended-pdf-viewer .secondaryToolbarButton[disabled],ngx-extended-pdf-viewer .toolbarButton[disabled]{opacity:.5}ngx-extended-pdf-viewer .dropdownToolbarButton,ngx-extended-pdf-viewer .overlayButton,ngx-extended-pdf-viewer .secondaryToolbarButton,ngx-extended-pdf-viewer .toolbarButton{min-width:16px;padding:2px 6px 0;border:1px solid transparent;border-radius:2px;color:#d9d9d9;font-size:12px;line-height:14px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}html[dir=rtl] ngx-extended-pdf-viewer .dropdownToolbarButton,html[dir=rtl] ngx-extended-pdf-viewer .overlayButton,html[dir=rtl] ngx-extended-pdf-viewer .toolbarButton{margin:3px 0 4px 2px}ngx-extended-pdf-viewer .dropdownToolbarButton,ngx-extended-pdf-viewer .overlayButton{background-color:rgba(0,0,0,.2);background-clip:padding-box;border:1px solid rgba(0,0,0,.4)}ngx-extended-pdf-viewer .secondaryToolbarButton.toggled,ngx-extended-pdf-viewer .toolbarButton.toggled{background-color:rgba(0,0,0,.2);border-color:rgba(0,0,0,.4)}ngx-extended-pdf-viewer .dropdownToolbarButton{width:140px;padding:0;overflow:hidden}html[dir=ltr] ngx-extended-pdf-viewer .dropdownToolbarButton::after{right:8px}html[dir=rtl] ngx-extended-pdf-viewer .dropdownToolbarButton::after{left:8px}ngx-extended-pdf-viewer .dropdownToolbarButton>select{width:162px;height:23px;font-size:12px;color:#d9d9d9;margin:0;padding:3px 2px 2px;border:none;background-color:rgba(255,255,255,.09)}ngx-extended-pdf-viewer .dropdownToolbarButton>select>option{background:#474747}ngx-extended-pdf-viewer #customScaleOption{display:none}html[dir=ltr] ngx-extended-pdf-viewer .toolbarButton:first-child,html[dir=rtl] ngx-extended-pdf-viewer .toolbarButton:last-child{margin-left:4px}ngx-extended-pdf-viewer .toolbarButtonSpacer{width:30px;display:inline-block;height:1px}html[dir=ltr] ngx-extended-pdf-viewer #findPrevious,html[dir=rtl] ngx-extended-pdf-viewer #findNext{margin-left:3px}html[dir=ltr] ngx-extended-pdf-viewer #findNext,html[dir=rtl] ngx-extended-pdf-viewer #findPrevious{margin-right:3px}ngx-extended-pdf-viewer .secondaryToolbarButton::before,ngx-extended-pdf-viewer .toolbarButton::before{position:absolute;display:inline-block;top:4px;left:7px}ngx-extended-pdf-viewer .toolbarButton.zoomOut{font-size:30px}ngx-extended-pdf-viewer .toolbarButton.zoomIn{font-size:24px}ngx-extended-pdf-viewer .secondaryToolbarButton.bookmark,ngx-extended-pdf-viewer .toolbarButton.bookmark{box-sizing:border-box;outline:0;padding-top:4px;text-decoration:none}ngx-extended-pdf-viewer .secondaryToolbarButton.bookmark{padding-top:5px}ngx-extended-pdf-viewer .bookmark[href='#']{opacity:.5;pointer-events:none}ngx-extended-pdf-viewer .toolbarButton.pdfSidebarNotification::after{position:absolute;display:inline-block;top:1px;content:'';background-color:#70db55;height:9px;width:9px;border-radius:50%}html[dir=ltr] ngx-extended-pdf-viewer .toolbarButton.pdfSidebarNotification::after{left:17px}html[dir=rtl] ngx-extended-pdf-viewer .toolbarButton.pdfSidebarNotification::after{right:17px}ngx-extended-pdf-viewer .secondaryToolbarButton{position:relative;margin:0 0 4px;padding:3px 0 1px;height:auto;min-height:25px;width:auto;min-width:100%;white-space:normal}html[dir=ltr] ngx-extended-pdf-viewer .secondaryToolbarButton{padding-left:24px;text-align:left}html[dir=rtl] ngx-extended-pdf-viewer .secondaryToolbarButton{padding-right:24px;text-align:right}html[dir=ltr] ngx-extended-pdf-viewer .secondaryToolbarButton.bookmark{padding-left:27px}html[dir=rtl] ngx-extended-pdf-viewer .secondaryToolbarButton.bookmark{padding-right:27px}html[dir=ltr] ngx-extended-pdf-viewer .secondaryToolbarButton>span{padding-right:4px}html[dir=rtl] ngx-extended-pdf-viewer .secondaryToolbarButton>span{padding-left:4px}ngx-extended-pdf-viewer .toolbarField{padding:3px 6px;margin:4px 0;border-radius:2px;background-color:rgba(255,255,255,.09);background-clip:padding-box;color:#d9d9d9;font-size:12px;line-height:14px;outline-style:none;border:1px solid rgba(0,0,0,.4)}ngx-extended-pdf-viewer .toolbarField[type=checkbox]{display:inline-block;margin:8px 0}ngx-extended-pdf-viewer .toolbarField.pageNumber{-moz-appearance:textfield;min-width:16px;text-align:right;width:40px}ngx-extended-pdf-viewer .toolbarField.pageNumber.visiblePageIsLoading{background-repeat:no-repeat;background-position:1px}ngx-extended-pdf-viewer .toolbarField.pageNumber::-webkit-inner-spin-button,ngx-extended-pdf-viewer .toolbarField.pageNumber::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}ngx-extended-pdf-viewer .toolbarLabel{min-width:16px;padding:3px 6px 3px 2px;margin:4px 2px 4px 0;border:1px solid transparent;border-radius:2px;color:#d9d9d9;font-size:12px;line-height:14px;text-align:left;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}ngx-extended-pdf-viewer #thumbnailView{position:absolute;width:calc(100% - 60px);top:0;bottom:0;padding:10px 30px 0;overflow:auto;-webkit-overflow-scrolling:touch}ngx-extended-pdf-viewer #thumbnailView>a:active{outline:0}ngx-extended-pdf-viewer .thumbnail{margin:0 10px 5px}html[dir=ltr] ngx-extended-pdf-viewer .thumbnail{float:left}html[dir=rtl] ngx-extended-pdf-viewer .thumbnail{float:right}ngx-extended-pdf-viewer #thumbnailView>a:last-of-type>.thumbnail{margin-bottom:10px}ngx-extended-pdf-viewer #thumbnailView>a:last-of-type>.thumbnail:not([data-loaded]){margin-bottom:9px}ngx-extended-pdf-viewer .thumbnail:not([data-loaded]){border:1px dashed rgba(255,0,0,.5);margin:-1px 9px 4px}ngx-extended-pdf-viewer .thumbnailImage{border:1px solid transparent;opacity:.8;z-index:1;background-color:#fff;background-clip:content-box}ngx-extended-pdf-viewer .thumbnailSelectionRing{border-radius:2px;padding:7px}ngx-extended-pdf-viewer .thumbnail.selected>.thumbnailSelectionRing>.thumbnailImage{opacity:1}ngx-extended-pdf-viewer .thumbnail.selected>.thumbnailSelectionRing{background-color:rgba(255,255,255,.4);background-clip:padding-box;color:#fff}ngx-extended-pdf-viewer #attachmentsView,ngx-extended-pdf-viewer #layersView,ngx-extended-pdf-viewer #outlineView{position:absolute;width:calc(100% - 8px);top:0;bottom:0;overflow:auto;-webkit-overflow-scrolling:touch;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}ngx-extended-pdf-viewer #outlineView{padding:4px 4px 0}ngx-extended-pdf-viewer #attachmentsView{padding:3px 4px 0}html[dir=ltr] ngx-extended-pdf-viewer .treeItem>.treeItems,html[dir=ltr] ngx-extended-pdf-viewer .treeWithDeepNesting>.treeItem{margin-left:20px}html[dir=rtl] ngx-extended-pdf-viewer .treeItem>.treeItems,html[dir=rtl] ngx-extended-pdf-viewer .treeWithDeepNesting>.treeItem{margin-right:20px}ngx-extended-pdf-viewer .treeItem>a{text-decoration:none;display:inline-block;min-width:95%;min-width:calc(100% - 4px);height:auto;margin-bottom:1px;border-radius:2px;color:#424242;font-size:13px;line-height:15px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;white-space:normal;cursor:pointer}html[dir=ltr] ngx-extended-pdf-viewer .treeItem>a{padding:2px 0 5px 4px}html[dir=rtl] ngx-extended-pdf-viewer .treeItem>a{padding:2px 4px 5px 0}ngx-extended-pdf-viewer #layersView .treeItem>a>*{cursor:pointer}html[dir=ltr] ngx-extended-pdf-viewer #layersView .treeItem>a>label{padding-left:4px}html[dir=rtl] ngx-extended-pdf-viewer #layersView .treesItem>a>label{padding-right:4px}ngx-extended-pdf-viewer .treeItemToggler{position:relative;height:0;width:0}ngx-extended-pdf-viewer .treeItemToggler::before{content:url(assets/images/treeitem-expanded.svg);display:inline-block;position:absolute;max-width:16px}ngx-extended-pdf-viewer .treeItemToggler.treeItemsHidden::before{content:url(assets/images/treeitem-collapsed.svg);max-width:16px}html[dir=rtl] ngx-extended-pdf-viewer .treeItemToggler.treeItemsHidden::before{-webkit-transform:scaleX(-1);transform:scaleX(-1)}ngx-extended-pdf-viewer .treeItemToggler.treeItemsHidden~.treeItems{display:none}html[dir=ltr] ngx-extended-pdf-viewer .treeItemToggler{float:left}html[dir=rtl] ngx-extended-pdf-viewer .treeItemToggler{float:right}html[dir=ltr] ngx-extended-pdf-viewer .treeItemToggler::before{right:4px}html[dir=rtl] ngx-extended-pdf-viewer .treeItemToggler::before{left:4px}ngx-extended-pdf-viewer .treeItem>a:hover,ngx-extended-pdf-viewer .treeItemToggler:hover,ngx-extended-pdf-viewer .treeItemToggler:hover+a,ngx-extended-pdf-viewer .treeItemToggler:hover~.treeItems{background-clip:padding-box;border-radius:2px}ngx-extended-pdf-viewer .treeItem.selected{background-clip:padding-box}ngx-extended-pdf-viewer ::-moz-selection{background:rgba(0,0,255,.3)}ngx-extended-pdf-viewer ::selection{background:rgba(0,0,255,.3)}ngx-extended-pdf-viewer #errorWrapper{background:#f66;color:#fff;left:0;position:absolute;right:0;z-index:5;padding:3px;font-size:.8em}ngx-extended-pdf-viewer .loadingInProgress #errorWrapper{top:37px}ngx-extended-pdf-viewer #errorMessageLeft{float:left}ngx-extended-pdf-viewer #errorMessageRight{float:right}ngx-extended-pdf-viewer #errorMoreInfo{background-color:#fff;color:#000;padding:3px;margin:3px;width:98%}ngx-extended-pdf-viewer .overlayButton{width:auto;margin:3px 4px 2px!important;padding:2px 6px 3px}ngx-extended-pdf-viewer #overlayContainer{display:table;position:absolute;width:100%;height:100%;background-color:rgba(0,0,0,.2);z-index:9}ngx-extended-pdf-viewer #overlayContainer>*{overflow:auto;-webkit-overflow-scrolling:touch}ngx-extended-pdf-viewer #overlayContainer>.container{display:table-cell;vertical-align:middle;text-align:center}ngx-extended-pdf-viewer #overlayContainer>.container .dialog{display:inline-block;padding:15px;border-spacing:4px;color:#d9d9d9;font-size:12px;line-height:14px;background-color:#474747;border-radius:4px}ngx-extended-pdf-viewer .dialog>.row{display:table-row}ngx-extended-pdf-viewer .dialog>.row>*{display:table-cell}ngx-extended-pdf-viewer .dialog .toolbarField{margin:5px 0}ngx-extended-pdf-viewer .dialog .buttonRow{text-align:center;vertical-align:middle}ngx-extended-pdf-viewer .dialog :link{color:#fff}ngx-extended-pdf-viewer #passwordOverlay>.dialog{text-align:center}ngx-extended-pdf-viewer #passwordOverlay .toolbarField{width:200px}ngx-extended-pdf-viewer #documentPropertiesOverlay>.dialog{text-align:left}ngx-extended-pdf-viewer #documentPropertiesOverlay .row>*{min-width:100px}html[dir=ltr] ngx-extended-pdf-viewer #documentPropertiesOverlay .row>*{text-align:left}html[dir=rtl] ngx-extended-pdf-viewer #documentPropertiesOverlay .row>*{text-align:right}.fileInput{background:#fff;color:#000;margin-top:5px;visibility:hidden;position:fixed;right:0;top:0}ngx-extended-pdf-viewer #documentPropertiesOverlay .row>span{width:125px;word-wrap:break-word}ngx-extended-pdf-viewer #documentPropertiesOverlay .row>p{max-width:225px;word-wrap:break-word}ngx-extended-pdf-viewer #documentPropertiesOverlay .buttonRow{margin-top:10px}ngx-extended-pdf-viewer .clearBoth{clear:both}ngx-extended-pdf-viewer .grab-to-pan-grab{cursor:url(data:image/cur;base64,AAACAAEAICAAAA8ADwAwAQAAFgAAACgAAAAgAAAAQAAAAAEAAQAAAAAAgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAH4AAAB+AAAA/gAAAf8AAAP/AAAD/4AAB/+AAA7/gAAM/8AAAP7AAAG2wAABtkAAAzYAAAM2AAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA//////////////////////////////////////////////////AP///wD///4A///8AH//+AB///gAP//wAD//4AA//+AAH//yAB///AAf//wAH//4AL//+AD///yB////z///////////////////////////////////////8=),move!important;cursor:-webkit-grab!important;cursor:grab!important}ngx-extended-pdf-viewer .grab-to-pan-grab :not(input):not(textarea):not(button):not(select):not(:link){cursor:inherit!important}ngx-extended-pdf-viewer .grab-to-pan-grab:active,ngx-extended-pdf-viewer .grab-to-pan-grabbing{cursor:url(data:image/cur;base64,AAACAAEAICAAAA8ADwAwAQAAFgAAACgAAAAgAAAAQAAAAAEAAQAAAAAAgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAH4AAAB+AAAA/gAAAf8AAAP/AAAD/4AAAP+AAAD/gAAB/oAAAbYAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA//////////////////////////////////////////////////AP///wD///4A///8AH//+AB///gAP//8AD///gA///wAP//8AH///kn/////////////////////////////////////////////////////////////////8=),move!important;cursor:-webkit-grabbing!important;cursor:grabbing!important;position:fixed;background:rgba(0,0,0,0);display:block;top:0;left:0;right:0;bottom:0;overflow:hidden;z-index:10}@page{margin:0}#printContainer{display:none}@media screen and (-webkit-min-device-pixel-ratio:1.1),screen and (min-resolution:1.1dppx){ngx-extended-pdf-viewer .toolbarButton::before{-webkit-transform:scale(.5);transform:scale(.5);top:-5px}ngx-extended-pdf-viewer .secondaryToolbarButton::before{-webkit-transform:scale(.5);transform:scale(.5);top:-4px}}html[dir=ltr] ngx-extended-pdf-viewer .toolbarButton::before,html[dir=rtl] ngx-extended-pdf-viewer .toolbarButton::before{left:-1px}html[dir=ltr] ngx-extended-pdf-viewer .secondaryToolbarButton::before{left:-2px}html[dir=rtl] ngx-extended-pdf-viewer .secondaryToolbarButton::before{right:4px;left:186px}ngx-extended-pdf-viewer #findInput[data-status=pending],ngx-extended-pdf-viewer .toolbarField.pageNumber.visiblePageIsLoading{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAiCAYAAAA+stv/AAAACGFjVEwAAAAMAAAAAEy9LREAAAAaZmNUTAAAAAAAAAAgAAAAIgAAAAAAAAAAAGQD6AAA26DBZgAABPNJREFUeNq1l21MW1UYx2tgI+pghBHiNJCYKLiERMUvRvbB0S5ZygrI5toxKAItSwDHRBoIzk1SFT44oy4xfjEaY1PMRKNNyMInPxjfFjEiZsFNwpu1oy4LMFZ6uece/085F2/PiuBtPMkv5/ac8zzP/7yfWswmznktuAJ+A89ubWE+UDbYnaJ8AoS5xq8jv5aififYkV5wVW3SOP8BjsaANzmANqdpJEAjAVEp+CMqV73IW8C+dHr/FbgMfhIiHjTUzYI/AAn4y1C+CzSDVsbYSRWdMC0AxiE4+h78CH6Gw/cNgWY2EWDVgxO3bi3WmxYQCoV6MdTfAn0UfgFPJwnQ/hGA/D4KTugiurq6jpgWkJmZWbG0tPQp1sF3mOvEKIAQ1cE5iZnXuHZd07RrQkC1UcD4+DgNf8V25/sZMAQ+AA5wF4ofOHvm7El8fw0BicVIUPtgMNgHEVfA5PDw8DkxZS16zym32Wy15IPqVldXH0aZEzwH9snB7wFBBBlG/jn4kjP2LvLHUF0+OTl5Ad/fgMvhSPg9YXYQOAQ2MWVH9d4HAoETKNqP7wJQbRQGPGCHUcC9nLMAjQCG+yKG9DPwBQ33ysrKS1lZWY7BwcH2gYGBjoyMDLswKxAibOKbkr2ysrLWbrcfQbvD8/N/HjCuh41cTWzRnUnTPTQ0dBpD+BEaBFH5CbgoRiOE3tQaelsKNkuleru2tran9KBGYori7enpOUYxkwSASqvV6rx69ffX0fBjxjeEDIMy1OcJtkp5hLwjiEsjl9zFxcU1FEsWQKkI2IGju7u7aWFh4S1VZR+OjY35s7Oz95jYRHtoHSixmPdX7AaaFjE6dhErZboblIHDwGEgz4SAPMkH+XyCYsg74FHG+WvI3+aMvYOcuLB6+/b5/v7+JjGvZlNpXV1d7c2bS83SLiDqQSEJeAW8gcrzlAPk7E3khN+SZqJAxsCyCEt8LX4OH4MEo9zAWnzt5XQFqIrilgPrKIrSYOnr63MtLy+TiFeBnzPuR2P/4vLimV5frzNdAY2NjVXRaNQjB49EIh63210tn2gytjTjb8t/gdzI5TrhnJqa6lhbYy9C7cE05r+c7oeJiYlGsQ3l4AWywW5QDboBBX8BdIL7TQRPPohYIreCXZsZPA5Ogy5D4OdBO9j7XwXgDtkrvw0opxGJx+N33IZZFJwxEZjxU8g7YNQeCAQbcnJyEkcrsa2eA7KhkzD1DpAuI/qhKIyCgvVeY9484j53TE9PV6w74uSo/N/mXA8yMzNjJVvyQQ+TpO2nKl75xZyJU+/4yspyWzgcbu3s7HTqx6fH43mSXsQJ4/WeNItghaBeUJgokx4kZKsf66fa24/Nzc214IXlxdZPeRvapVW6H+TKzyw4qUtxwtVT2ezs7HH6rY+WqvIa8kG+JN/2zW7DQ+CA8RklLyKHw1FDdRuiRDmVUR27c84fojrhs0LEKNrms5y7jL0fHR1tEL2xGF84hDApHxkZcUuiXRazCWd1sx4opsS8JSUl1frVLB+t+hVMbWIxxauXq/BhWoDf76+BCOpJq8/nc4r73KKPgHEUDGZlvl6fkzEFq131kg9LGulQbm5uVX5+fhUtHONj4obhglmIRFqkR42dbMhWzLnpVAQqCXnhuFyuo9HoDU84HPHQd2o78fxKM2USW9xytk3t/rck/y8wmf4Gx4B9Xz6i1hAAAAAaZmNUTAAAAAEAAAAgAAAAIgAAAAAAAAAAAGQD6AAAQNMrsgAABQ5mZEFUAAAAAnjapZdtTFtVGMdrwKlkIYiETA37sGyQJXxiX1T2BVbN7FZANFARCi0tMDBF2BgGNcvEzC06EBMSEogi2Czz7ZPiBvFlohLFREKqET8g7y02A0YkLZd77/H/lHPN4dIJ9J7k13P6nPu8nOecnufWFGtjjJnBTfAVeHpHBQOOEsB+vVxV1S8g/5GpbFRV2S39/MrKyoOYTzTkXJbl0zDyIbgOntkamPrdZgDqKPpfdUHXqUz9C/0UeMnI6ruBF3zEg3hEmLtFAQAxAJIfAn+CWbCATE3FHIAkSe/ASD+4Bj4GFwRH34IfNgNQxwR5H5iG43n0fvS+mAPo7u4+w5jyAfDyDHwGjnFH31AAdAbQj3FZDpjEtkRWj7nF4eHhKzEHEB8fn7u4uHhVYUofU9g1rOYTGH6X5jY2Nj7H+Hvs9SjOyjAP4Eu+73NwHgiHw7+Qjd3u93HQqijsVfSPg3sgfrS6utqO8XugH0FcV3Ee6Pmurs56BHFzQ5K+7u3tPU8yrPwPPDeDQP3oFzs6OhrJBs0hmCOQFYMKcFTv/D7wOngTXAFvM0U5h/4wprNHRn56BeP3gXdiYuIiV3sSWDlmEiBbfXzvA36//1OIaFGpIB9UKYpSTT1wgXvFAO7H5MVIBhi7BC5j39/C96vLy8sVcXFx1oaGBkdjY6MTYwtXS+VBmPnYRHOdnV3nenp6zickJOTNzflzuEPunPey7MZ435btbm9vr1hfX7/AlEgm3gCXtGy0tbU9Jaw2E9ytZWrP1dbWPqE5FQlJkru5ubmIfG4JAJzKysoqHBn52UM/N7AZiKJcDjN2BPPJnJ1aMgHdA3rnNwZu2NPT0wvIlz4AageBBVhLyspsk5OTZ3HIXhsaGnoxMTERRvfcHvJ6vS9IoZD7t/Fxh8VieZZnx8J9RW0PgCxwGlgFYgkgWbTBbR6L+BAbC4cP8RQ1IN2N6Imz/9y5U19TU1PE9zXWlllSUlK4vLzqFA8ipxSkmfBRCTwC9Ywp9dRDocpksJEj0bE+CLrvKYC6aIRCktNoALIk2UXHIvBdZnI4HPlLS0skOIMtiIBxTSAYcNOc0QDKy8vzgsGgS+88EAi47HZ7vv5G02M26H9X9lP1D9FPxuf73Y4iQ9uTbWD/s8mGz+crJ5tRnKfqFfaDE6h+lCaRA3t2rr+IFADb5COqwvo6OyozuZIrGA5gbW3tYdLVn37KCK78bdVwH3BvKxygH7cZ3YQUBLGrlQPSoZsw+i9AV4yoNEoShMJD42PjDrPZXEj7NTU1lbtpiJGh7P/bc01/enr6BOmSjXFcxaJtSZbc5HNLMWppaSlaXV11z8/POz0eT5F2fbpcrsf+y87mSpzcWRoo5aRFZEivuGLS1a51T11d0ezsbCX5gK8o1ZAXIoHjIEl7mdCAkZIoN1wpyWZmZp6n71q2ZJkVkA2ypbNtuVs1PAlyxNco/bmwWq0FPADIAZeTjOaU7Xt+mOa4zVzuA7520bACm7j6wcHBMr4ak/iGQ3CV7IGBAbsuaJuR/wVOzVFICrkzMjLytdJMMhGtBNMzqCFuTS5LBupJa2trAYKglVQ1NTUV83pu0jIgZkFQy2p6ualYUSScdtlNNkwG2smkpKS8lJSUPDo44svEbaHA/B0IVOpeaiykQ7pkw0gAB8EpQn9wbDbbc8HgbdfCQsBF4+h6/PXLYIsndqhy5j3oGW9R/xfE2P4FtUR7pWscH34AAAAaZmNUTAAAAAMAAAAgAAAAIgAAAAAAAAAAAGQD6AAArUX4WwAABPlmZEFUAAAABHjatZddTJtVGMdrwOGSgQQJmUG4UnAJ8WJeaFJiFGqydHaQKR+r0LJ+YBDopkvVQEwWUYazi8qFSzDqnKJLxsX0oklJdRfLdGNMXFe98YaP0b6jWbo1YW1f3g//zzyveXtsBd/Gk/xyTs45z/95zkfP89ZktKiq+hT4FHwBmje3MO7oAbCd75dl+ST6v1UVdQbtr/PYVYAdRTnf2NgwQ2QcHAfPcg5Oy/cCUGbQPseN9SiqchH1z8BdzOrfBsfAByyIat3Yl+AbMAO+0/XXgfPYmcuqqlwFlwwHcPduxg+x98D74ISsyv06R6cKBBAAPymKegW7s6Aoyo+GAxgfH+9VVXlMdwwfgsd1AUzTHUD9ve5iXoDTy6ivYuxaKBQ6ajiA0tLSlsXFRT/O+l0ITuCynUD9Bo2l0+mTFADOeiabzZ5hAXwOLoIrYGF9fT1EGls97yfAq5IkeVA3gfvQXdvR0dGF9lF2FMcRRIDmj42NeRHEZ+D05OTkEPVh5T9gziXUv6COTExMDJMGaQEXmAd/gMO88/vJObb7EA2C10EPqMWwORgMDaD9Djg2Pz8/zMyeBzaGhTpWVlY+UhVavXJtaWnpFLqaYQOUMOoVsIrxONXgQX0A2ygAMITt9mGVFMRr4IggJGwlJSU2p9N5oK+vz462lZnVsCAsrG2isUAgMIwdOVxWVmbLZDKfQGMRl/EGdiWGtoB6Ddy8o96pyjnu0dHRroyYGYDzIUwcBj62G0cw9oxutU2gUGnS5gWDQQccLcP+BogrqnoT9RruTHxubu5j8pkTANjb0NDQHg6HnWw3Blkgh8AjGK9ibFaqCNi0sq0WyDFI3E7eDmMXXeSLD4BKPbACm9VqffH69d9c2MKBs2fOOpjofyrl5eUPxeJx+onGspnswtTU1JukzXzUF7LbDnaDF4BNw0gAZMNpkOaTzAdK7tPZA/r1pJJJl91u38/O1WhpIo1kMuUiTdyvVzR95rPOxBpskNVAm2QqspCG3jEfhCktpp1aB086LfYWG4Akig7esYYoQh+/7323EgkPPyisCW4aKzYA0kjk0xcEj8PhaONfNB5Lkf63pF/DT6KfYTT6uwN5wY1ozUWcv5k0otGokzTzOK/hDXaAVuR9/j7sNOB8Z46GDKBd8DMtm1V3SarkZgZFB4BU/DDZ8refdgTpexcf7Tbg5SfL4Kvp6ZcrKiqqKAhiSysHZDMN2/y/AMlLPnPSsSiiUzcp8mvkoMVi2U/nhY+Slr+EVBIy/9uZa/ZIx61kSxqRSOSgXluURC/5zElGIyMjnalUyru6uury+Xyd2vPp8Xie1naHPVAu7gUl6u71YXv1KyZb7Vn3DQ524nvBTT7IV75saOVuaTOohFCbPnqI2PkXTnsxl5eXD2jzaLckSW0nDdLitK2FsuEe8ByopQ5kw8f4e2Gz2UjU9HdQrJ/6aEz+55k/SmNMs4X5gK8tFKygW7/62dnZXrYakz53EMzETB8iXNDdJqMFb7VLc4Sc4W1sbGzTUjP/U9VSMM1BDvFq/RI0jPqnL992BEEr6ff7/V0sn5u0HdDvgs5st/8tf5csi7jtkpc0TEWUPZWVlfuqq6spKVn1HxP6BLYmCG7uo8ZKNmTLztxwqQd7Cf7idHd3v5RI3PLEYoKH2gXsrKxdVCklNslyloJ2/1vh/xcYLH8CCfCBoXIWl6IAAAAaZmNUTAAAAAUAAAAgAAAAIgAAAAAAAAAAAGQD6AAAQI+KIQAABP9mZEFUAAAABnjatZdtTFtVGMdrQIkvMIKEYJbtk4IYjAl+mWFfxmpc7nZZA5PVMqhAO5RqdSQNhTnUodEYjcm+mcWpwQpMnAkfCGExIYs6jVtGSlFjDPIuLyME0qZwc8+9/h937nZ7bKXp1ZP8ck/Py/P8z3Ofe86pLdOi6/qjoBO8Bh7fabwVR3eDnCTtAfAWeJcx9maS/vvBfZacb29vl8NIG3gZPJHogL3B2C0B4H3B+TPgU9ALjlpZvQe8BPxcxC5T3+ughwv4wNReBM4jKiGIHAChjAVEo9FGGPNx568A2eSoO4UAP/gMAvrw/FJV1QsZC2hvb6+FkReBjxs+BfaYBJzV2R0BeD4GLoDPwYCuaZcGBgdPWUmDqomJiWZGecCYEYV66tjc3AySAIoAIvUOF3CGVg++0DV9cG1t7ePs7OyqdN93GXheVXUnng/z5t12u70Gv1+AAB/C6kfi+amjra2tfmNj48zGxvrZzs7OJmpD/0eUeJqmXdR0/euOjg4v2UDbXYDsXALfAHeyT60FnLyNqjooodBd2dsbqqdXwZCQly+PuPi0p4HMsVPD5ORkJwTSu/8K9ffQtF9RlAr8/gSCvkVUrqL+I/gB5JoF3AO8hnOspNWoz8//eSArK+uILEu1sizXYrjEpxVxEXZet2GcFAwGPd3d3a05OTlyPBanPBlDLnyHqJDTn8B1zi5zELKDwdPPbm3FyOk/8Pl8T5lWWw5SlXJjXF9f3zE4vaLp2vd81dfADbRdvzI29jb5TBAADpeUlDhGRkYbRAFRXS9GfwFnp1JAYN4+cJVWDac38BxfWV656HK5GsmXKIDKXh5eWZKk2vFwuCkeV7yhUKhecJxWyc3NfXBqauo8wn8tFo2Nnjv34as8OhL3lbTcCyrAESAbZCKA5gg2yOaT5EP8AvaAE2LYN9fXmxGuGv5eMy3l/f39Qca0MGxO41XM4EnMgglQY+POeebzJ69T339wmkY0TZ+H8wXUzSyCX2xxJe4mZ8lADjRYFqDpv8HWMnJhmZ4a1XXt7ydE/Wpzu93Va6urHtH50spSC/VZFTA0NHRaY9ofsHnTAKJuItK/o69L3NFE7Bb9p2W/SBxEn2Ek8nMjjlLanistvP9KshGJRNxkM4nzInHCA+Ag05mYD8UZOC9OsMEAbJOPFNcvvUzVVeNAsiwgFos9RHPF84UigqteGY3Z8TBioBc7YV5eXgGJINJaOaA5tIua7d1B9ZLPhONYUdBoGhQeDzfRXYDe1/T0dNUtQ3rrv+UE9RnzZ2ZmDtJcshHGtm62raiKl3wmHEZdXV11uOV4FxYWmv1+f52xfXo8nn1GdPgG1SzsoIBf0xBe84pprrGt+32+urm5uRbyQb6SnYaSkKX7QT5dq83qYcTFBZxgwo45Ozv7HP02ooXblYNskC3BtpTqNDwEDoDd1LC1tfWImBe4lDio77Yo3k5t1MeEd26+3oEq7gO+0ih0PzSvfnR0tIGvxmY+Owg+pXJ4eLhREO20ZVpwn2s2HOHM8JaWlh41jmbxUzWOYBpD9wijXYWNjAX09PQ4IIJWcjIQCBzn57nNiIA5CqZpFYFg4DhjCrJd9ZINm4VyKD8/v7qwsLCaEsd8mTAfYCtLSy3CpUaiOTSXbFgRsBccJsTEcTqdx1ZX1zyLi0seqqeYJ/G6pZJN7HDK2VPO+9+K+L8gw/IXI+58OxdsgRwAAAAaZmNUTAAAAAcAAAAgAAAAIgAAAAAAAAAAAGQD6AAArRlZyAAABTdmZEFUAAAACHjatZdrSFxHFMcnZJM+UGtTkUKohT60AT+lUFr0i7oN5SZrJOZhfUb3oVW6pYalYgvRGkTStBQr0tDSB9ZU2wSkglihFNvtE2milX4olPpMVt2NjbHsunvvnf5P9o6swz7ILj3w84z3zMw5c+65M7MsWeGc54B6YOWBwGOAJUPiTpzvAXsB24HK66BbuMad0A7AJO4F9wAWj7hGcABYgQ08JdleCgegUQCvSrZnONc6oN8EhakEcBo4DKwgLcLWBFqAHECmpmlvIDPnoHvw/7mkA7i1uVltOBeUCBscNIFoAZwAnZrGuxHA+a2trbOAxYLFM7a2vlJOjiUeBkwLZ6CZagC0AnL+KJyeBbTqHjy70NfXZwMsFiyeEVI8MzNTr3GtkWsgHMBRwHw+n40CgM3p9XoJCqABdIJucH55ebnTZDIVAxYL0RAFd1pVeQX0E4BB9pvN5mPkWAQAuxWwioqK42s3bzZ6vSvNVqu1AjCsvB19ukAPeNtms1XTHGjv4jxUBP0O+JBz1QIYQX/Ep2bdkWpVLYPOxgQFAwMDVeL56OjoccAgzwOLgRkwt/snG9JOq3/L7Xa78KgwEAjkca5RVj6FbRAMof05uD+yCPcCu3CiiXSDpaUbRbt37z6iWJRyRVHKMakCSLKNIMxGm6GfYrfbq5qbm2vRttz+5zbN8RGyN4CivIT2MNf5ZWgibTsAiKmt7fUTgcC/d5zKtLS0PBex2nwWW/JFP9SQgoV8ghr5jFasc/4l9BVV1698NTLyGvmMHGgCh3Nzc8vGxydq5AA2Ufmw7zOIK6IfxuWDQZ3rX5BjzvWRubmF9ywWSyX5kgMgyQEKsFCqr6H6/f6gfXBwsEo4vhtJT09/aHp6upvr+uVb6+sfd3R0NBnZUQxfUeU+cBAcARZBMgHQGGkOmvNp8iGfao+AajntG+vrDZWVlcfEO09S8i9e/MAZCqljmPM78D1wgx/AODjEyLmo/G1ttA0bS5GvdZ3/DE38gvav0GF0/RvmD/rryFk0UAM1gKUCnExirt+gr5LWOTTQ9Tt8y+rq6kp9a2s22bln1WMlG2CpMDw8fCYUCtGKZ8PopH8PBYM/Dg0Ntco7moyZpSyJ58+WO9FnODv7R62qqrQ9FwCWBLvA++Avv98/2d/f3xrFebb8RaSBEuxeUY/gu+QQWAE3wDLX+SL0JfB41AvJ1hY/oHKsWDhNPQAF+MAa3vsK18OBgL/By4AlPIw0MICdMCMjY58RRMJARD8a4/F4RowgvGAVeMIZ0ZegH4wMYE8wqG4HQMxcm6mnuwC9r7m5ueJwYLwxQU0UiPHz8/MlNLa3t/cMbldXRTZ0BIJPkTLxwI7TsL29/eTGxoYdt5gGp9N5UmyfuFQ8K7JjbFANIHIHJajNOIo2MoM0Vmzrk5OTF/A5/olvf2lqaurdaKehIlVpIcg0rmAOweLiYiVg5FiTdsyFhYUXRT/KlqryMpoDFEpzK7FOwxdAEdgPGG4zT8p1geO0DDDxPGLbZmTTpAtN5PUOFJMPw1diMe6HDsHExESNsRoWeXYYMEjB2NhYrRR0RdK/C4LBYINwhDPDnpeXd1QczfRMgpGN+tA9QjxXMQdgsWDxjF1dXWUIglbicLlcp4zznIkMSFlgBOSgq811StOCjqCq2mkOwGLB4hrxvjIzM0uzsrJKqXAiLxORB9iqx2MFjDD6KDSGxtIcLAXJAYcJqXDCvwvWfLbr1z02agMmEOOk61fSYiISnHLmmOP+N5F/FyQp/wHjxqv8BBis8gAAABpmY1RMAAAACQAAACAAAAAiAAAAAAAAAAAAZAPoAABAamiUAAAFIWZkQVQAAAAKeAG1l2tMHFUUx6+hVE14WQkxVPGLQhvhCxqj0BgLa2KnLIXyECkIy77agpg0wSAIbQHF+EExAV8RbIJ8kfCJEAmQxkdVRNc2pJHEL2JZ6LobQktWdllm5vq/5Yysk32ku/Ekv5w7c+aec+beO/fcYbEK5/wRUCegNosFakQkEezX35dluR7aJhBtwIKhPonxJnAYmIEFHNLZbIqi2IUmWBCHZC5boQVPxJNAY1AAM0gKTkAHI5JAE7CDMxyJABYOFsl42+ut0wUpjp6AeAbXCj8Nfdbr9ZoACweLZDx37rWKEIEeCpcA2dBW7rw9pqilo6OjGrBwsEhGSNHi4qJJEQ735vsEYB7PukUL7na7zYCRDfd2335packmfIDoQguuUZZ5DfRjgEEOGgyGk8KplgDsZsBqamoqPR6Pxe12mUUbiNVvpgTOgJZjx0oqhQ/ynwfOgjbwtH4RJgLqTMhyGXQG+haOjo6e0u5PTk5WAgZ5ARgJA2DCRnPfPDEx0YhbR7a2tg4isQbc64CtC/o8cW9wAvuBFdj0n5fTefNoQkJCiWSUKiRJqoBTCQjJoCQM1BYiGY3GivLy8ir0MbpcrhIEbYefTvjshr6A616MZi/a9/2bAGRfe3tnld//952gepqbm58NettcEE5ytec6OzufQ9A30P9NcF7hvAe6b3tn+62hoSGriMk0oYvj2dnZZdPTM/X6BLxY3bAfICILPefz+R5F3y4Evgj60H7b4bj6ekFBQaWIpU9ASBaQgFEM9TWsfp8vYB0bGztFTu9KkpOTH5ydnX11Z2enz3nD2WW32+todCSKFVLuB/mgBBg1YklA9NH5KAFPUoyQVc0WzObGRlNtbe1JmtdYJbe7+6LJ7w+8B58fYU18Ai34FLwPnmIUnFY+aWqTjcXJAHyOQI9gQ/scWuMSGGS+gK9BBAsF1kA9YPGgyDLeVhnjCuB8TAHiWmjsDx+zhoaG0nXsaPrgLuxwwgZYPAwODtq2fb4v4HNcoKqq0F/iK7k0MDBg1e9oegwgXonqP0P/kPgMr1//7RXa2wsBi4F7QBeYvr1xe7Snp+d0iOAZ+i8iCRRjsYQuwXcFElfVeegr4BtwGbwDHg55Itre5odlTtUMxJsANqDnoX8FC5yrP3KVXwHf4noWvAxY1GKkgFHshCkpKQcoCRB12IsFmZmZ6cvLyyNoXwW/gJ/ADzQiX4OU/5TjQECmBABYvLZoEmcBMV9wVLSbGLdHWROfgVWw7PP7PhR9+/v7W3C6+gr3HOBnMK9y9Tua7r1qKI5Om5ub1tXV1abW1tZqbfu0WCzPaKNDG1QTCPdfsIZhdmHunWj/MT4+XiN8iNI8NTV1IRAIXJZV9fu5ubmeUNVQ0q3SIyBNO2ZprKys1AImAiu6HRPzvgD9FyVyA3o2NTX1AeFL51sKVw1fBEe1Y5Tf739cvy5w4CgDe4dSug/Y8PBwG4bXg0XnwrUT/AlMgJHPIoqRBaILnQ9tGjMzM/X0Niy4dhAMUnjr1q2ZvVFQV6AXYv4xwZw1aYFQM6w5OTknqMyGPJYLmwmC7XZN3R2FVSTxO2DhYJGMvb29ZUhCvKWtra3tJarnTBsB3SgwASR/fn7+A0zDTZXzFYfD8S5g4WARjZivtLS00vT09FK0peDDRHABc7tcZsAE9IyUn59fnZeXV0VzHrNkgeMC3cKh/4J1y9qayyLagBHB/SRqxyX7iEhVzhC53/8j+v+CmOQfnaCvAsiMZ2EAAAAaZmNUTAAAAAsAAAAgAAAAIgAAAAAAAAAAAGQD6AAArfy7fQAABPFmZEFUAAAADHjatVdtTJtVFK5hM8EQQIbEhMxfDmgC/th+TGV/BjVZXlbKh9DKYB2lLV1JmNaQVRiEjMyPv8TE6JQZK1KRf8RkYUkzg84laELI5pIZFQPESm2WQgld+374nHLf7eVa7PZWT/Lk3Jzbc85zzz3vvbcGvaIoykGgk+Fgdg/9ifYDT/J2URS7YHcTaMzPkw/55prcCPQATqCKm3NLktSrkuDmqkRFdDFfYy4EzqgJWLACLQEtNPYCwKESRHW6dROIxeOdXKL6RyBQryYnxOOxTt0EfL5zrXwi4Nm9CNCc1kYEfD5fqyEHqVtaWuqWFOz1w/220EQkEnWqidbX13sYAYuWAPlSjMdpuDOiqNign2fmcpPJ1ELBVAKYTyez2WyvRiIR5/p6uIfG7Mvo0TYn+VIMmkskEodgs7K+Mmb61NLODyCKTdBlmK4NBAKnVPvs7CwlI3kFMDOYyEBz6u8mJydPwXSMYgAWDTG1kvv5b9ZFE/zntbr6x/G8vLyTglloFQSB9lNgbmWMhImNSYSGhoYW+h35kC8X0wOcxfgsf7bs8/uH2hKJrfSPefT19b2kWW01sJdUq7/zer0vaxbSKyExtDeRTHpHR0dtlHMXAaChoqKi6erVuS6eQHyn80sYskkJQfNFeCQkhu4LXQs5jEZjM+XiCZA8x8prphIuooO3t5MutpcI+thyYGpqqiuZSHjv3rnjbm5ubmPVEViujJIPHAZOAmYVOgmUcDEo5hHKkfFW48u+ce+eo6Ojo4Xtq16p9ng87bFY/A3EPA/4gbcYzgEVBpacdSnTbExz/8Ft+rokKRegL+BAG4ZWMQK8adhObtspWSagB7pyJSClJFr1RSzqImk0JLSU1qlU6rzBbrc3RnGi8cnDOOFoLlcCw8PDHZubm2OI+S7wDsPbsVhs1O/3v8afaDxMQI6SPX4Z/yP6DG/d+uk0O9trde79E4ADeD8cDl/CYWbPkLyMdyoA6tEs/7iCdRB4AQgAV4CPgQ8BL/BMRof79xUjnlGaCylnAkeAaeAL4DN8XZ9CfwL9AZoPFYdku4wkIICTsLCwMH20Eh6h7C8CR8vLyw/gPfAexl8hThB6koiwilwGntp1HSeTomvXY2JxqZvd5+bl5eW6HWJK77/1BOvw74HrW1tbI+Q7MDDgjEajH8H2JVUDZD7HAolE/q7LaHBwsH1jY8O1trbm6O/vb1ePT6fTSStyaR4lDpasXZHln6FvA007NvkHWVYWYP8OttDE5QkLxcDVbMabwhePx69goYHp6WlfpttQ4Lr0GFDMP7NWVlY6yAFJfpUV+U/YVoFF9ur5GuMfgZuKrMxjtRNFRUVPUywutrDXbXgCOK59RvF9YTab2WqVv4AwiKxB/0a28fHxflmWF1GJBdhuAN+o1WEx6ygHy5Vd2PvQrWJubq6LVsMqkCYgEwFZWWYutXigBh9WQf4WesagV5LJpENdOe4MV2VlpUW9mmGLEAG2BSqBEqvVehqkFrA91AtoSPmabgJjY2NNIEHld6Obren7nAmSRIA0AejfNW6HQ6HQJQUkYL8xPz8/ZMhBThQXFzeWlpY2ssbJf0BAkn6R5Z0K4GBZ4h41Qk1NTduhqqpWtue6hZqlgcA3zszMzAgqczeVkm4Hg8GhPfwENs5J9hGy3HKmLH7/g/D/C3TK3/RJfVWiL971AAAAGmZjVEwAAAANAAAAIAAAACIAAAAAAAAAAABkA+gAAEA2yQcAAATpZmRBVAAAAA542rWXW0xcRRjH14AaEy6RJsTEtCRGSEGe4ElpTEq3ph5Yy0UostyXUxUqpphKpQZLNRpSHkx4oBgNabfE2oSElKRBfQFj4MELiOiLGFIBS3ddsASyu2fPOeP/287Uw7C46dn4Jb/M8M18l/3mdnDYFcbYflDH2R/fwn6gh8Ejsl7X9XroTxLUl8fJhmwTDZ4LPKAVHJTGThqG8apIQho7qDNd5ba5iSTQJAJwZynWBKxY9CmgRSSI6jTbTuDu1ladFOhI3AQwRwQntrbu1tlOoLPzzUo5EHhirwRozKqjBDo7OysdCUjx/Px8s8Gw1v+u93Ea8PsDrSKQz+fzkI7GrAmQLfl4kA3XpOusBu3TXP2k0+msIGciAYxHg9XU1Lzs9/tbfb41D/X5yfBYNyfZkg8aC4VC2dCdoBgUK9ZRixrfR9fL0GZiuMjr9bqFfnx8nIKRHAUujpMUNCbmjYyMuKE6RD7AcenUtFJM+cyqNCgfr5WV24eTkpJKFZdSqSgKrafCzTJ5Ek7eJ1FKSkoqaB7ZkK3sM9rquirfLclnz56rCoW2afIu2tvbn7X82nywl+SLeW1tbc+JoFaCmqZ2dXVVU8wdCYCSnJycsomJr+plo617Oz+DE08yCPlEEBM3JxooBsWSEyA5wMvrohLOYQcHg5rK1xJOH1j2ka0WDKq/wBf55NVReKyY8hgoAKXAJbCZQIbkg3wWUoyYr5pcrs2NjZba2toKvq52JZ98bGxstsib+/4rSp1duxSISY4EhXxYAsM/o76g3hHUgo1iUAZ7oD7RBDRNa4av12MRDAabHI2NjS8FcKPJwddww9FYogmoqlq+vr7eBp9vgFMC3KKveTyeMvlGk3GCBCW+/0x5Eh2ZhYVfG/jdXmRz7R8CCtb/zOLi4qmqqqoTMYJnykYp4Ahev11PsI0EngK9oMdg7F2074BykB7TIBxmuTrTLQ9SwgnkgI/AB6hCL3iPIRG0XWgLaU7cx8gAXtxmaWlpdLW+CF6g0sYp+zMgLzU1dd/U1NRbOHZ98PchM9j70J8HPeAceHTHc6xpurrjY2Juvpm/565wOHyFMfMv02R34OzSfyTQgTvkKtpPA38HVLLFSXIvLy/3iGqAC4YR6REJCEnu7u6u3tzcVFdXV1s6OjqqxfU5NjbWgMl+cIeZ7E+0v/FgpWASfAmK7+nM60jwGv6+DD7p6+s7Sj7wNLv6+/tbA4HA+WA4fGFgYMAT6zVUpF16KD09/XE4mgY+cBss42KZjAYzzWmTmT9Ch5bdIN329vYl/H0dXEXJh1H+HvJBviTfyl6v4TFwWHxG8RvLB9bAKrg1ODh4mo/9DH5AIjNoo0n19vaqSGaUV+EK+Aw8T2PcZzHF4LHiC0q+QKUHVPpl3Gg36NfwCsxD9z32xQz6U9ykaGlp6WNehREkchl74qLDrsDxLV76FZT7d7fb3SieZuh+ogT4EokEMnCJvaLrxhfQfQ68hqEP2U5gdnb2Ipz8YaL009PT9EsKLTt+zjTNaAJov7GYFYyOjr7NmHENFfBiE7c7EpBjeXl5VQUFBXQqFOvHhB6JfIvg36EyMzimN6WPGiU7O7siKyurnK+5bTkASgh54wwPD5+JRCKToZD29dDQ0Ok97BTeT0iSiTivnDOO3f8g8v8FNuUfG4CCnr3IRI0AAAAaZmNUTAAAAA8AAAAgAAAAIgAAAAAAAAAAAGQD6AAAraAa7gAABPlmZEFUAAAAEHjatVdtTFtVGMaAJiYEIhowKOgPS7ZAYjL9o7AYtpost8Py6ZDxsUHLoEUXMITpRDIxKyNion9Q4tSFdCYYmZNEiMFo4ghDpwhiwg9/CdLabmm2wC5t74fPS8/B64HCdhtP8uTevue87/Pc97znvrdJZoeu6zlALUPO7h7mie4F7hPtiqLUwd5MoHtxnnzIN1HyvUAT4AD2CHPNqqqe4CKEuT2KrjiZ795EBBzjBCxYqlGAEQZ7KtDIBSI7x00LuLm6WisQHbwDAQc5OWF19WataQEdHScrRCLg4XgCaM5oIwEdHR0ViZTBgfn5+eOqjr3+d7/tNBEM3nBwokAg0MQE2I0CyJdi3E3BHVMUvRrXJ5j5EavVWk7BuADMb5BVV1dXBoNBRyDgb6J7djKajMVJvhSD5tbX1y2wHSEO4truqG04b0JRSnHNxHTh8PDwUW4fGxurZG7PAyUMVjLQHF/n9XqPwlREMQC7cGocxCmeWSdNisdredlXnJycfFgqkSokSaL9lJhbJhNhZfc0JJvNVk7ryId8xZh0xcM5xXdLyqlTp6vW19do8Ra43e5nDE9bAMQbBXydy+V6lpMaIUcizq6urheJ8z8CAFteXl7pxMQ3daLTaqzyMxh2HHydeCIIE19P1BMHcYkCaOSy9JZQCn9FBctyxMn2EkHvejxIvhFZdv6OWGz7ShhHbjyn+4F9wGFazGFSQIYQg2I+RRzbdjUxXbdCocaamppytq9mRwHFCIVuNYrFvdlF6WZLlQJ8UcLdFDGMxKKIJDkiN3CDCNRAXaIClEikXiTmiEQQv6Gh4YUbeKOJk3684WguUQEUI7hdfL/fUV9fbxffaCKsCfLfUfxMcdHQ0FBXOBy+pmmaH2rPA/eY3P9C6g8LCwsN7BiK5JmigwW4pOnadVyDQEDTdRJhNUGejWJ24doSa2ZA7FshNZ7Dq8AKkQJ/Q4Sf/V6KRqNmBDwKvAy4gVYIaAFOUEaQ3S3d8AHAT8S6pnPiZU3T/1xaWrqYnZ39EH4XA/t32g6aAx4HHktLS8sYHR2l8/8K0IZsxIToKmWEN6NNx3SQLeua5sP9X8CSfPv2lf7+/pO0X+jl78P2G8T9gqfo3UFAFdALdK+srJSSL7pj1eLiYoshGy46kuIXc8rMzMy7KLo/kO7ZycnJs2inG6/PkZGRI0QOzELgT7qufRcjiz6Hp7oA+wfA02TD73MI7sHvM8Dp9vb2/fy13tnZ+ZLP52tdW1tzdXd3V2/XDSWhSovS09Npay6jEOdwvQZMy7J8kZF9hjr5Ahnxwv4e2a6HQm/g/hzwNtADNFIMiiXEluJ1w0NAMf+MUnS9To+R/wzMAD/09fW1snR/BXwOISTgY7K1tbXVRlX1HZaFt4A3gSdpjsU8QByMa/eBuvgW+z6LID9ie6aRwvPsaZJgv0wCVGQAIj5hLoVzc3OvqSwLEHKG9j7J7ADpVZb6q0j392VlZZvfBrB9CYwAXoALyCgqKqoKh6Mk4CyE9apq9HXTAqampnpAPI1gV8bHx3tYP+cVfwkFuSEAT/qpwW3f4IeDqHLVE4UAvFUTamiHLBZLRX5+fiUVjvFjIoxipAyouupFZQ8KHzVSTk5OaVZWlp3tuemRC9gIYuEMDAy4w3L4Asg/8ng8zXH8JHaf0Egh7NLlrHH9/rch/i8wOf4BRvqEvL0rz4oAAAAaZmNUTAAAABEAAAAgAAAAIgAAAAAAAAAAAGQD6AAAQaGt/gAABQFmZEFUAAAAEnjatZdbTBxVHMbXgCYmCEgbsCGFhFgCCQkJfagKL+2uSTOUu6WEO2UXKlvauiSyIlZSN6FRi0lDjA8kRgmKqeUiKmjS9IU+mHql4A1pgrQVWHXDdoFlmDPj99+e0fGElbITT/LLmT1n/uf7zn3WEmnSNG0vqObs3TbAhNCD4CGxXFGUGpQ3EfQs1lMMxZoVzwSNwA4yhLomxlizbkKoy1A0xcFjM80YqNcFeGMxRgNGDOUx4LhuEKPTELGBlUCgWhCy3ocBqy5OBAIr1REbcLlOl4lC4LFwBqjOWEYGXC5XmcVEOjQ1NdXANMz1P/NdRBVe7x92XWh5ebmRGygyGqBYamMnC65eUbQK5I/z4mSbzVZKjekGUB8Sq6ioeMbr9dqXlxcb6ZnvjEbj4qRYaoPqgsHgPpQdIw3S2mqrhYL/RlGKkSeiOre/v79KLx8bGyMxSk+DAo6NCqhOf29gYKAKRXnUBigSdo2dNMU966BKcXvduvXbwaioqCNSgVQmSRLNp8TDErkJG3+mJOXn55fSexRDsWKblKNzDvFsiXa7XzwaDK6GXhZxOp1PGnqbBcKlLP29lpaWp3RRI+uy7Ghvby8nzX8ZAPnp6enFExOf14hBgXsrP4GzXUogxB1BTHw6UUsapCUaoJQCJHJPQ/gtVvD6uuzgc4lGd5x2Uay8vu6YQVt8+gq4Rkq4oIdBDjgCCnQiNJAgtEFt7icNcQeUg5vgT46PUBn7dWRk5Cyf10hTVmVlZanP5z8uLm79FiUDvwCvqqm/Uw6Q66g3LSYTCRmFRRMWVdN+1lRtCT+WVKBxVELVfjRrQJHlWlFYR5blGsvw8PALqPwJBXc0Vb2D/DZG4zbKZoaGhtxmDdTV1RXSiSmKLy4u2mtra4vEE03EZlL/vtpPFF/q7e11ra2tXcEUTMNtD3ggwvnPpfthenq6jm9DUTxRDEgDb4MfwPeADHwH8nYsLh5ELJRbQUy4gGYuNgNuqPeevwbXNzc3c3dqYHV1dQ8Ji6ufRmRjYyNTFI8HU9gNN8gEhv4b5F/CxBezs7NvJicn78LvA2D/dtOB+j1EbGxsAp2EW+8A4TLCj0dUVaXekvBXMHDd7/ePdHV1naD5urt692WUj8PgKPLW/xC3Uj14dn5+3kqx9E1AHyZGA7IiO8Qv5ugrV696MDzXgsGNz0ZHRztxnYaOz76+vmISB2PgMniHi+UAD3gJZPCyM+jtGU1jJ/F8wm63P6Ef66eczvKFhYVGdMzR0dGx5W0oCas0Ly4u7lE09Bb4GAyDD/wB/wUu9irT2BvIz4PnqWxpaYl6+BxoxaJzIi9BcTzIE9qWwt2Gh8FBkMxFCsEnYATH8ofI33O73fW8rhf0cAPnqAzn/lGmaW00Cig7CVrAPqrjbR4iDa61fUIv3kUDH4HLDL2fm5s7z3tjgQgMsB7GYICxV3hI7uTkZDMfhVOMYSoUpcoSaVJV9FoNDf0lNNZvtVqP6Vczyi6CC3wEdAMJ2dnZJcGgTAZOowOtjMlNERsYHx93KapyCb1/f3Bw0MXvcwsfgYsgZAC5xxCW4/F4amgaZMZau7u7Tf0vOJyamlqSlpZWSgvH+DGxFgi8BvHXyYDP5zsrfNRISUlJRfG7dxdSG2YMpIB8Qlw4nZ2dDQF/oNvnWznX1tZWEyZO4s+mUjSxzS1nCxv3vyXxf0GE6S+R9YNYr/xWtAAAABpmY1RMAAAAEwAAACAAAAAiAAAAAAAAAAAAZAPoAACsN34XAAAFF2ZkQVQAAAAUeNq1l1tMXEUcxmmgJkZuAtkoWHyxXCKJpvJgpD60rNocWCCgFOmyUHa36hKgLqE0vFXQVCymioYXE8LVeCONpIQHEo0xYhtCE6SpvgnULOzCrpCFhbPn4vdf59Dj2BV6Nk7yyxxmdub7ZuY/F+KMJlVVjwAr48j+LYwLHQYP8eWSJNWh/BxB33w9taG2sYrnAztwgDyu7pwsy29oJri6PEmVnKxtfiwGGjQB1lmi3oAeXXkiaNQMYnbOGjawEQxaOaHiAxgo1sSJYHDDatiA291axQuBx6IZoDp9GRlwu91VsYTByfn5+bOyirW+t97lVOHzrTs0Ia/Xa2cGyvUGqC31cdD1bgPLiqreQe5ixVlms7mSOtMMSJIaEaupqXnV5/M5vN4VO32znWHXBye1pT6obmdn5yjKTrO4yufFU8AfqqL4kK+BdXzfRG5CddHw8PAZbVQTExMkRuklYGGYqYDqtN+Njo6eQdFx6gOUc7vGAQ7rDTxKBsAKZsCLHEaUdeR+cVccjo+PLxUsQpUgCLSeAmtmYibM7JuSUFJSUkm/ozZ373pO6ONhL5ckJ3+2JMzM3OhVVGURFR6IryL3stnwT09P23WjLQDRUoH2O5fL9YImqickis6Ojo5q0vyHAVBSV1fX4Pf7r7PZ8Ch/G/GBV1CfxtgvpRH8jiCmJqdsOTk5FaTFG6CUDQRg6e/vb9ve3v5JUdTfPR7Pl0lJSekGdlA6xYEYCjlvYzew5bMwjexojR4Gx0ApsOhIM2AgjeujFDxHGvwOKAU/gzuI/F+RE7/J4fDc2NjYRbauRlNBbW1tZSCw2cjfHdotSgZ+ROT/QqgALDBuIxhn4mJMJKQX5k3ESYr0g6qotwiYuIXCOQ3EwHexGpBE0cYLa4iiWBc3NDR0PhwOf4+Cm1iCCIj+G2JYnB4cHGyN1UB9fX0ZnZi8+MrKisNms5XzJxqPOUb9A/Vv4n/U3d3tCgQ2RrAEdCZcAIcMrn8R3Q8LCwv1bBvy4ia+wRPgPSzBFPJJMAGugWcfWJw/iORIXgwSozWoBt+C66qyJ/wN+ALB8syDGtja2nqchPnopxnZ3d3N58WTSJxxTVGUceRfgc/n5uYuZWVlpeP7aZAHDu07cpCcnJxGJ+H9dwB3GeGPRxQlMloIK1/TqNfW1j5pbm5uoPXy/+mnDj5FR1cxgtf+a801kcXFxWJqS28CepjoDYiS6ORfzAnj4+PtqBgNBoOfDQwMtOI6jRyfPT09L5M4+AiPkivILzGxo+AtYA+FQk9GyrgHicPheF471luamqqXl5ftm5ubzs7OzvvehgIXpcdTUlLondAJPga94LJv3edmBprxVGtDcLXgCd5AZUtLS6/fW3MVL2KVbr5U6ovrW4h2G54CJ0AWE3kR9IEPMaoPkL9rt9trqA7CHfjbrapyi/aEs1gsFfK/1/wp7XkHTjINaO2fSOQddHAVXMFoL8/OzrrZaFAnX4C4W8YMQLCJNSmanJy0cZEPwwYTG3UveD8sh7sKCwurtKsZZe3gbbA3A1SXm5tbHgqJTs0E7oJGwwZGRkYaIdwj43Dq6+uz032uMwcDcsQAZqFJ1+xY+8X207IsItolZ1dXF+LAeDplMpkqMjMzqRNB/5jYCATO0wzIMLC6uvom96gRMjIyylJTU8vYmhtO2aCE4APH6XTW4KyA+JrLarVWR2knsO+YUgKxzy1njtruf0v8/wUG019dDISlQm+mHQAAABpmY1RMAAAAFQAAACAAAAAhAAAAAAAAAAAAZAPoAABQgGYUAAAFD2ZkQVQAAAAWeAGl13tIW9cDB/BTTCtCdbYV2SjKGJ12zL+6f7bpBnUZG1cTQyzVn49Y42266NRNVuqEPXzgqpvsD53stzHcKGHdBttEkCBM6CjdoxsrQoUhSH2kZorYlkaTcO89+570XHd7SC4xOfDxHO/jvO85JyTVQCktgAZFURp5mqQimYcegUNABA2qqp5D7GFpIIIDsD/dCnTAEgTgTeGeR0AMjoNMFUVG/FQ6FfgbVuE2j59MogIHwc16h0H6TMoVwPheR7xMqRagGg0i/X0SFXhJv8YqcPf+/QYgiRCzm7Ozs33I6JZG6QrrBU3T/kH8ikkFHhWvd3V1VQNJhJjdtFgs5dvb21di80DTAtqDXrgGZHNzQ9YLWV9fbwGCdJXechbPzc01E0LKk/2smuEqzEA97MPlo0NDQ2wiLsKyYS6Q2traUxsbG3IQhbM0YMhoi7H1VqvVyfLg+R+jCq2FM8aJaZw4V+E3+AMt/QvxD/Ac3i1dWlm6pFHtFnphFYV+DQThZbBxViBTU1On9B7w+Xz1uFSG//OhSu+VB3Hs69hvrEAO/My791e4Dn/CjXA4/HFmZqZtfHy8a2xsrCsjI0MCgpDPK2HlaRakiooKpyRJ1XimcnV19aRKVWGugKKcRXxgtwIIFr/f/w5m+izviWt6b6DVNyYnJ+sNrS2BRKFEf661o/V5sWAmHAp7LlzoOc3KJIZggQq73V4fCAQ+x4NXeEV+gd+hDPcPc+aBP2f8IvTu98/MNBYVFTlYWWIFWCgECWyD/YPeO3fvXFY07aeFhYVPsrOzjwDZC4QjbB6EQiHPzbmbzWxoeO9IvKy4IQtOQCXYdOYtN+0Jm0ElPANZ4udXCl9hkWGznvkRJhUlehmTro2Pa6qhpK6uzrm1teUWhwMaoIBgln6BxDeYgN8i1n3HTQBJU4OxYCO2lRP8+Qz/+GJUFagPlQJQ1E+BpCOqRF16gaLozk4jGRkZce/s7PwfF76ECQaFT2DyjGMVbAaSDpfLVWVctnXB20G5qanJLq5oIiukE5LKP198qL293bW2ttaLmn4INbAPSApK2f4wPz/vYqtjnMLzxS8iD2QYwTB8hHgIBuGJvRcubM0q4KwABxMdSF5UVXoR8TBmbKxgldIBXGM98TiQvcAceizOpwdKC+LjYgWy4CI3CAP4IvoQvzc9Pe1lKyHShXA0qZZDTk7OYd8lX3282a9QYTOCTJUVCtAH7y8uLr7ldDpr2HgFg8FKdihFpToQv2A25nqLsROWs3fZmYAdTB6uAH14O0awjI6OtkQikXdxsnm7t3egCdtpbPns7OwsY4VDB7SBDAQK0JJGfUUDAm7jmMuy/Ky+rLe1tZ3GRue+dy90tqcn/m4oCbO0DA6hkDpk2Amvg3dlZaUOdlc4itbyNFkOLP/PcBr2QBXyyIUyIW8p0W74KpzUj1GRCH0ambwB7ciUtf41h8PmAGI84XDEZrM52DVh8h0DwvMs52UUJn9OVHe73otDi4u3Ju6pGKHUP+NvFK7Xpvy7AC3w8q5vxdHsXHFxcZW+NRu7mqcJu8eeCYVD/6330agbSCLE7Obw8AfVqhptRdrb3d1dw/dzkqgHGIQT3efP1+AdTxj6+/sdQBIhpjcxXrm5ufa8vDw70pLxMMGO5Kzl+sYChOHPSOwd9i4f85RDIVQw4sSJ/S7Y3JTXDb8LOON7Ek+nFSyc2S5nNX3PJPwLu02sWzaoOecAAAATdEVYdFNvZnR3YXJlAEphcG5nIHIxMTkn6LNhAAAAAElFTkSuQmCC);background-size:16px 17px}ngx-extended-pdf-viewer .dropdownToolbarButton::after{width:24px;height:24px;display:inline-block;position:absolute;margin-top:5px}@media print{body{background:rgba(0,0,0,0)}#errorWrapper,#loadingBox,#secondaryToolbar,#sidebarContainer,.textLayer,.toolbar{display:none}#viewerContainer{overflow:visible}#mainContainer,#viewerContainer,.page,.page canvas{position:static;padding:0;margin:0}.page{float:left;display:none;border:none;box-shadow:none;background-clip:content-box;background-color:#fff}.page[data-loaded]{display:block}.fileInput,body[data-pdfjsprinting] #outerContainer{display:none}#printContainer canvas,#printContainer img,body[data-pdfjsprinting] #printContainer{display:block}#printContainer{height:100%}#printContainer>div{position:relative;top:0;left:0;width:1px;height:1px;overflow:visible;page-break-after:always;page-break-inside:avoid}}ngx-extended-pdf-viewer .visibleLargeView,ngx-extended-pdf-viewer .visibleMediumView,ngx-extended-pdf-viewer .visibleSmallView{display:none}ngx-extended-pdf-viewer #viewerContainer{overflow:auto;-webkit-overflow-scrolling:touch;position:absolute}ngx-extended-pdf-viewer .invisible{display:none!important}body[data-pdfjsprinting] #printContainer,body[data-pdfjsprinting] #printContainer *{padding:0;margin:0;font:message-box;outline:0}#printContainer canvas,#printContainer img{display:block!important}@media print{body[data-pdfjsprinting]>*{display:none!important}body[data-pdfjsprinting] #printContainer{display:block!important}body[data-pdfjsprinting] #printContainer div img{height:100vh!important}body,html{overflow-y:visible!important}html.cdk-global-scrollblock{width:initial;position:initial}}ngx-extended-pdf-viewer .textLayer .highlight.color0{background-color:rgba(180,0,170,.4)}ngx-extended-pdf-viewer .textLayer .highlight.color0.selected{background-color:#b400aa}ngx-extended-pdf-viewer .textLayer .highlight.color1{background-color:rgba(0,100,0,.4)}ngx-extended-pdf-viewer .textLayer .highlight.color1.selected{background-color:#006400}ngx-extended-pdf-viewer .textLayer .highlight.color2{background-color:rgba(0,0,255,.4)}ngx-extended-pdf-viewer .textLayer .highlight.color2.selected{background-color:#00f}ngx-extended-pdf-viewer .textLayer .highlight.color3{background-color:rgba(255,0,0,.4)}ngx-extended-pdf-viewer .textLayer .highlight.color3.selected{background-color:red}ngx-extended-pdf-viewer textLayer .highlight.color4{background-color:rgba(255,94,0,.4)}ngx-extended-pdf-viewer .textLayer .highlight.color4.selected{background-color:#ff5e00}html[dir=ltr] ngx-extended-pdf-viewer .dropdownToolbarButton,html[dir=ltr] ngx-extended-pdf-viewer .overlayButton,html[dir=ltr] ngx-extended-pdf-viewer .toolbarButton{margin:3px 0 4px}html[dir=ltr] ngx-extended-pdf-viewer .toolbarButton:last-child,html[dir=rtl] ngx-extended-pdf-viewer .toolbarButton:first-child{margin-right:0;margin-left:0}html[dir=ltr] ngx-extended-pdf-viewer #secondaryToolbarToggle{margin-right:4px;margin-left:0}html[dir=rtl] ngx-extended-pdf-viewer #secondaryToolbarToggle{margin-right:0;margin-left:4px}ngx-extended-pdf-viewer .dropdownToolbarButton,ngx-extended-pdf-viewer .overlayButton,ngx-extended-pdf-viewer .secondaryToolbarButton,ngx-extended-pdf-viewer .toolbarButton{padding-left:0;padding-right:0}ngx-extended-pdf-viewer .offscreen{position:fixed!important;left:-9999px!important;display:block!important;width:3000px!important}ngx-extended-pdf-viewer .offscreen #sidebarContainer{top:1000px!important}ngx-extended-pdf-viewer .dropdownToolbarButton,ngx-extended-pdf-viewer .toolbarButton{margin-left:-1px!important;margin-right:-2px!important}ngx-extended-pdf-viewer #numPages{padding-right:0}ngx-extended-pdf-viewer .pdf-viewer-template,ngx-extended-pdf-viewer .pdf-viewer-template *{display:none}ngx-extended-pdf-viewer a:focus,ngx-extended-pdf-viewer button:focus,ngx-extended-pdf-viewer input:focus,ngx-extended-pdf-viewer select:focus{outline:0;border:1px solid #00f}ngx-extended-pdf-viewer input[type=checkbox]:focus{outline:#00f solid 1px}"],encapsulation:2}),e})();function Uk(e,t,n){return!e||e.some(e=>function(e,t,n){let i=0,s=0;return(e=e.toLowerCase()).includes("ctrl+")&&(i|=1,e=e.replace("ctrl+","")),e.includes("cmd+")&&(i|=8,e=e.replace("cmd+","")),e.includes("alt+")&&(i|=2,e=e.replace("alt+","")),e.includes("shift+")&&(i|=4,e=e.replace("shift+","")),e.includes("meta+")&&(i|=8,e=e.replace("meta+","")),s="up"===e?38:"down"===e?40:"+"===e||'"+"'===e?171:"-"===e||'"-"'===e?173:"esc"===e?27:"enter"===e?13:"space"===e?32:"f4"===e?115:"backspace"===e?8:"home"===e?36:"end"===e?35:"left"===e?37:"right"===e?39:"pagedown"===e?34:"pageup"===e?33:e.toUpperCase().charCodeAt(0),"WHEEL"===n?"wheel"===e&&t===i:s===n&&t===i}(e,t,n))}Promise.allSettled||window.Zone&&!window["__zone_symbol__Promise.allSettled"]&&console.error("Please update zone.js to version 0.10.3 or higher. Otherwise, you'll run the slow ECMAScript 5 version even on modern browser that can run the fast ESMAScript 2015 version."),"undefined"!=typeof window&&(window.isKeyIgnored=function(e,t){const n=window.PDFViewerApplicationOptions,i=n.get("ignoreKeys"),s=n.get("acceptKeys");return"WHEEL"===t?!!Uk(i,e,"WHEEL")||!!(s&&s.length>0)&&!Uk(s,e,"WHEEL"):16===t||17===t||18===t||224===t||!!n.get("ignoreKeyboard")||!!(i&&i.length>0&&Uk(i,e,t))||!!(s&&s.length>0)&&!Uk(s,e,t)});let Wk=(()=>{class e{constructor(){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=fe({providers:[QS,WS,nu,{provide:Xd,useClass:eu}],imports:[[uh,ob]]}),e})();const Gk=["contentRef"],$k=["*"];let qk=(()=>{let e=class{constructor(e){this.display="inline-block",this._dragDisabled=!1,this._elementRef=e}get dragDisabled(){return this._dragDisabled}set dragDisabled(e){this._dragDisabled=e}};return e.\u0275fac=function(t){return new(t||e)(zr(rl))},e.\u0275dir=Ke({type:e,selectors:[["","drag-scroll-item",""]],hostVars:2,hostBindings:function(e,t){2&e&&fa("display",t.display)},inputs:{dragDisabled:["drag-disabled","dragDisabled"]}}),e=D_([O_(0,vi(rl)),M_("design:paramtypes",[rl])],e),e})(),Yk=(()=>{let e=class{constructor(e,t,n){this._elementRef=e,this._renderer=t,this._document=n,this._index=0,this._scrollbarHidden=!1,this._disabled=!1,this._xDisabled=!1,this._xWheelEnabled=!1,this._yDisabled=!1,this._dragDisabled=!1,this._snapDisabled=!1,this._snapOffset=0,this._snapDuration=500,this._isDragging=!1,this.isPressed=!1,this.isScrolling=!1,this.scrollTimer=-1,this.scrollToTimer=-1,this.downX=0,this.downY=0,this.displayType="block",this.elWidth=null,this.elHeight=null,this._pointerEvents="auto",this.scrollbarWidth=null,this.isAnimating=!1,this.prevChildrenLength=0,this.indexBound=0,this.dsInitialized=new yc,this.indexChanged=new yc,this.reachesLeftBound=new yc,this.reachesRightBound=new yc,this.snapAnimationFinished=new yc,this.dragStart=new yc,this.dragEnd=new yc,this.scrollbarWidth=this.getScrollbarWidth()+"px"}get isDragging(){return this._isDragging}get currIndex(){return this._index}set currIndex(e){e!==this._index&&(this._index=e,this.indexChanged.emit(e))}get scrollbarHidden(){return this._scrollbarHidden}set scrollbarHidden(e){this._scrollbarHidden=e}get disabled(){return this._disabled}set disabled(e){this._disabled=e}get xDisabled(){return this._xDisabled}set xDisabled(e){this._xDisabled=e}get yDisabled(){return this._yDisabled}set yDisabled(e){this._yDisabled=e}get xWheelEnabled(){return this._xWheelEnabled}set xWheelEnabled(e){this._xWheelEnabled=e}get dragDisabled(){return this._dragDisabled}set dragDisabled(e){this._dragDisabled=e}get snapDisabled(){return this._snapDisabled}set snapDisabled(e){this._snapDisabled=e}get snapOffset(){return this._snapOffset}set snapOffset(e){this._snapOffset=e}get snapDuration(){return this._snapDuration}set snapDuration(e){this._snapDuration=e}ngOnChanges(){this.setScrollBar(),this.xDisabled||this.disabled||this._scrollbarHidden?this.disableScroll("x"):this.enableScroll("x"),this.yDisabled||this.disabled?this.disableScroll("y"):this.enableScroll("y")}ngAfterViewInit(){this._renderer.setAttribute(this._contentRef.nativeElement,"drag-scroll","true"),this.displayType="undefined"!=typeof window?window.getComputedStyle(this._elementRef.nativeElement).display:"block",this._renderer.setStyle(this._contentRef.nativeElement,"display",this.displayType),this._renderer.setStyle(this._contentRef.nativeElement,"whiteSpace","noWrap"),this.markElDimension(),this._renderer.setStyle(this._contentRef.nativeElement,"width",this.elWidth),this._renderer.setStyle(this._contentRef.nativeElement,"height",this.elHeight),this.wrapper&&this.checkScrollbar(),this._onMouseDownListener=this._renderer.listen(this._contentRef.nativeElement,"mousedown",this.onMouseDownHandler.bind(this)),this._onScrollListener=this._renderer.listen(this._contentRef.nativeElement,"scroll",this.onScrollHandler.bind(this)),this._onDragStartListener=this._renderer.listen("document","dragstart",e=>{e.preventDefault()}),this.checkNavStatus(),this.dsInitialized.emit(),this.adjustMarginToLastChild()}ngAfterViewChecked(){this._children.length!==this.prevChildrenLength&&(this.markElDimension(),this.checkScrollbar(),this.prevChildrenLength=this._children.length,this.checkNavStatus())}ngOnDestroy(){this._renderer.setAttribute(this._contentRef.nativeElement,"drag-scroll","false"),this._onMouseDownListener&&(this._onMouseDownListener=this._onMouseDownListener()),this._onScrollListener&&(this._onScrollListener=this._onScrollListener()),this._onDragStartListener&&(this._onDragStartListener=this._onDragStartListener())}onMouseMoveHandler(e){this.onMouseMove(e)}onMouseMove(e){if(this.isPressed&&!this.disabled){if(!e.buttons&&!e.which)return this.onMouseUpHandler(e);if(this._pointerEvents="none",this._setIsDragging(!0),!this.xDisabled&&!this.dragDisabled){const t=e.clientX;this._contentRef.nativeElement.scrollLeft=this._contentRef.nativeElement.scrollLeft-t+this.downX,this.downX=t}if(!this.yDisabled&&!this.dragDisabled){const t=e.clientY;this._contentRef.nativeElement.scrollTop=this._contentRef.nativeElement.scrollTop-t+this.downY,this.downY=t}}}onMouseDownHandler(e){const t=this.locateDragScrollItem(e.target);if(t&&t.dragDisabled)return;this._startGlobalListening("touchstart"===e.type),this.isPressed=!0;const n=e;this.downX=n.clientX,this.downY=n.clientY,clearTimeout(this.scrollToTimer)}onScrollHandler(){this.checkNavStatus(),this.isPressed||this.isAnimating||this.snapDisabled?this.locateCurrentIndex():(this.isScrolling=!0,clearTimeout(this.scrollTimer),this.scrollTimer=setTimeout(()=>{this.isScrolling=!1,this.locateCurrentIndex(!0)},500))}onMouseUpHandler(e){this.isPressed&&(this.isPressed=!1,this._pointerEvents="auto",this._setIsDragging(!1),this.snapDisabled?this.locateCurrentIndex():this.locateCurrentIndex(!0),this._stopGlobalListening())}moveLeft(){(0!==this.currIndex||this.snapDisabled)&&(this.currIndex--,clearTimeout(this.scrollToTimer),this.scrollTo(this._contentRef.nativeElement,this.toChildrenLocation(),this.snapDuration))}moveRight(){const e=this.wrapper||this.parentNode,t=e?e.clientWidth:0;!this.isScrollReachesRightEnd()&&this.currIndex<this.maximumIndex(t,this._children.toArray())&&(this.currIndex++,clearTimeout(this.scrollToTimer),this.scrollTo(this._contentRef.nativeElement,this.toChildrenLocation(),this.snapDuration))}moveTo(e){const t=this.wrapper||this.parentNode,n=t?t.clientWidth:0;e>=0&&e!==this.currIndex&&this.currIndex<=this.maximumIndex(n,this._children.toArray())&&(this.currIndex=Math.min(e,this.maximumIndex(n,this._children.toArray())),clearTimeout(this.scrollToTimer),this.scrollTo(this._contentRef.nativeElement,this.toChildrenLocation(),this.snapDuration))}checkNavStatus(){setTimeout(()=>{const e=Boolean(this._children.length<=1),t=Boolean(this._contentRef.nativeElement.scrollWidth<=this._contentRef.nativeElement.clientWidth);e||t?(this.reachesLeftBound.emit(!0),this.reachesRightBound.emit(!0)):this.isScrollReachesRightEnd()?(this.reachesLeftBound.emit(!1),this.reachesRightBound.emit(!0)):0===this._contentRef.nativeElement.scrollLeft&&this._contentRef.nativeElement.scrollWidth>this._contentRef.nativeElement.clientWidth?(this.reachesLeftBound.emit(!0),this.reachesRightBound.emit(!1)):(this.reachesLeftBound.emit(!1),this.reachesRightBound.emit(!1))},0)}onWheel(e){this._xWheelEnabled&&(e.preventDefault(),this._snapDisabled?this._contentRef.nativeElement.scrollBy(e.deltaY,0):e.deltaY<0?this.moveLeft():e.deltaY>0&&this.moveRight())}onWindowResize(){this.refreshWrapperDimensions(),this.checkNavStatus()}_setIsDragging(e){this._isDragging!==e&&(this._isDragging=e,e?this.dragStart.emit():this.dragEnd.emit())}_startGlobalListening(e){this._onMouseMoveListener||(this._onMouseMoveListener=this._renderer.listen("document",e?"touchmove":"mousemove",this.onMouseMoveHandler.bind(this))),this._onMouseUpListener||(this._onMouseUpListener=this._renderer.listen("document",e?"touchend":"mouseup",this.onMouseUpHandler.bind(this)))}_stopGlobalListening(){this._onMouseMoveListener&&(this._onMouseMoveListener=this._onMouseMoveListener()),this._onMouseUpListener&&(this._onMouseUpListener=this._onMouseUpListener())}disableScroll(e){this._renderer.setStyle(this._contentRef.nativeElement,"overflow-"+e,"hidden")}enableScroll(e){this._renderer.setStyle(this._contentRef.nativeElement,"overflow-"+e,"auto")}hideScrollbar(){"none"===this._contentRef.nativeElement.style.display||this.wrapper||(this.parentNode=this._contentRef.nativeElement.parentNode,this.wrapper=this._renderer.createElement("div"),this._renderer.setAttribute(this.wrapper,"class","drag-scroll-wrapper"),this._renderer.addClass(this.wrapper,"drag-scroll-container"),this.refreshWrapperDimensions(),this._renderer.setStyle(this.wrapper,"overflow","hidden"),this._renderer.setStyle(this._contentRef.nativeElement,"width",`calc(100% + ${this.scrollbarWidth})`),this._renderer.setStyle(this._contentRef.nativeElement,"height",`calc(100% + ${this.scrollbarWidth})`),this._renderer.appendChild(this._elementRef.nativeElement,this.wrapper),this._renderer.appendChild(this.wrapper,this._contentRef.nativeElement),this.adjustMarginToLastChild())}showScrollbar(){this.wrapper&&(this._renderer.setStyle(this._contentRef.nativeElement,"width","100%"),this._renderer.setStyle(this._contentRef.nativeElement,"height",this.wrapper.style.height),null!==this.parentNode&&(this.parentNode.removeChild(this.wrapper),this.parentNode.appendChild(this._contentRef.nativeElement)),this.wrapper=null,this.adjustMarginToLastChild())}checkScrollbar(){this._renderer.setStyle(this._contentRef.nativeElement,"height",this._contentRef.nativeElement.scrollWidth<=this._contentRef.nativeElement.clientWidth?"100%":`calc(100% + ${this.scrollbarWidth})`),this._renderer.setStyle(this._contentRef.nativeElement,"width",this._contentRef.nativeElement.scrollHeight<=this._contentRef.nativeElement.clientHeight?"100%":`calc(100% + ${this.scrollbarWidth})`)}setScrollBar(){this.scrollbarHidden?this.hideScrollbar():this.showScrollbar()}getScrollbarWidth(){const e=this._renderer.createElement("div");this._renderer.setStyle(e,"visibility","hidden"),this._renderer.setStyle(e,"width","100px"),this._renderer.setStyle(e,"msOverflowStyle","scrollbar"),this._renderer.appendChild(this._document.body,e);const t=e.offsetWidth;this._renderer.setStyle(e,"overflow","scroll");const n=this._renderer.createElement("div");this._renderer.setStyle(n,"width","100%"),this._renderer.appendChild(e,n);const i=n.offsetWidth;return this._renderer.removeChild(this._document.body,e),t-i||20}refreshWrapperDimensions(){this.wrapper&&(this._renderer.setStyle(this.wrapper,"width","100%"),this._renderer.setStyle(this.wrapper,"height",this._elementRef.nativeElement.style.height||this._elementRef.nativeElement.offsetHeight+"px"))}scrollTo(e,t,n){const i=this;i.isAnimating=!0;const s=e.scrollLeft,o=t-s-this.snapOffset;let r=0;const a=function(){var t,l,c;r+=20,e.scrollLeft=(t=r,l=s,c=o,(t/=n/2)<1?c/2*t*t+l:-c/2*(--t*(t-2)-1)+l),r<n?i.scrollToTimer=setTimeout(a,20):setTimeout(()=>{i.isAnimating=!1,i.snapAnimationFinished.emit(i.currIndex)},20)};a()}locateCurrentIndex(e){this.currentChildWidth((t,n,i,s,o)=>{this._contentRef.nativeElement.scrollLeft>=i&&this._contentRef.nativeElement.scrollLeft<=n?(n-this._contentRef.nativeElement.scrollLeft>t/2&&!this.isScrollReachesRightEnd()?(this.isAnimating||(this.currIndex=s),e&&this.scrollTo(this._contentRef.nativeElement,i,this.snapDuration)):0!==this._contentRef.nativeElement.scrollLeft&&(this.isAnimating||(this.currIndex=s+1),e&&this.scrollTo(this._contentRef.nativeElement,i+t,this.snapDuration)),o()):s+1===this._children.length-1&&(this.isAnimating||(this.currIndex=s+1),o())})}currentChildWidth(e){let t=0,n=!1;const i=function(){n=!0},s=this._children.toArray();for(let o=0;o<s.length&&o!==s.length-1&&!n;o++){const n=s[o]._elementRef.nativeElement.clientWidth;e(n,t+s[o+1]._elementRef.nativeElement.clientWidth,t,o,i),t+=n}}toChildrenLocation(){let e=0;const t=this._children.toArray();for(let n=0;n<this.currIndex;n++)e+=t[n]._elementRef.nativeElement.clientWidth;return e}locateDragScrollItem(e){let t=null;const n=this._children.toArray();for(let i=0;i<n.length;i++)e===n[i]._elementRef.nativeElement&&(t=n[i]);return t}markElDimension(){this.wrapper?(this.elWidth=this.wrapper.style.width,this.elHeight=this.wrapper.style.height):(this.elWidth=this._elementRef.nativeElement.style.width||this._elementRef.nativeElement.offsetWidth+"px",this.elHeight=this._elementRef.nativeElement.style.height||this._elementRef.nativeElement.offsetHeight+"px");const e=this.wrapper||this.parentNode;this._children.length>1&&(this.indexBound=this.maximumIndex(e?e.clientWidth:0,this._children.toArray()))}maximumIndex(e,t){let n=0,i=0;for(let s=0;s<=t.length;s++){const o=t[t.length-1-s];if(!o)break;{const t=o._elementRef.nativeElement;let s=t.clientWidth;if(0===s&&t.firstElementChild&&(s=o._elementRef.nativeElement.firstElementChild.clientWidth),i+=s,!(i<e))break;n++}}return t.length-n}isScrollReachesRightEnd(){return this._contentRef.nativeElement.scrollLeft+this._contentRef.nativeElement.offsetWidth>=this._contentRef.nativeElement.scrollWidth}adjustMarginToLastChild(){if(this._children&&this._children.length>0&&this.hideScrollbar){const e=this._children.toArray();this._renderer.setStyle(e[e.length-1]._elementRef.nativeElement,"margin-right",this.wrapper&&e.length>1?this.scrollbarWidth:0)}}};return e.\u0275fac=function(t){return new(t||e)(zr(rl),zr(cl),zr(Hd))},e.\u0275cmp=$e({type:e,selectors:[["drag-scroll"]],contentQueries:function(e,t,n){if(1&e&&Ic(n,qk,0),2&e){let e;Mc(e=Rc())&&(t._children=e)}},viewQuery:function(e,t){if(1&e&&Tc(Gk,3),2&e){let e;Mc(e=Rc())&&(t._contentRef=e.first)}},hostVars:2,hostBindings:function(e,t){1&e&&Xr("wheel",function(e){return t.onWheel(e)})("resize",function(){return t.onWindowResize()},!1,ps),2&e&&fa("pointer-events",t._pointerEvents)},inputs:{scrollbarHidden:["scrollbar-hidden","scrollbarHidden"],disabled:["drag-scroll-disabled","disabled"],xDisabled:["drag-scroll-x-disabled","xDisabled"],yDisabled:["drag-scroll-y-disabled","yDisabled"],xWheelEnabled:["scroll-x-wheel-enabled","xWheelEnabled"],dragDisabled:["drag-disabled","dragDisabled"],snapDisabled:["snap-disabled","snapDisabled"],snapOffset:["snap-offset","snapOffset"],snapDuration:["snap-duration","snapDuration"]},outputs:{dsInitialized:"dsInitialized",indexChanged:"indexChanged",reachesLeftBound:"reachesLeftBound",reachesRightBound:"reachesRightBound",snapAnimationFinished:"snapAnimationFinished",dragStart:"dragStart",dragEnd:"dragEnd"},features:[dt],ngContentSelectors:$k,decls:3,vars:0,consts:[[1,"drag-scroll-content"],["contentRef",""]],template:function(e,t){1&e&&(sa(),Hr(0,"div",0,1),oa(2),jr())},styles:["[_nghost-%COMP%] {\n      overflow: hidden;\n      display: block;\n    }\n    .drag-scroll-content[_ngcontent-%COMP%] {\n      height: 100%;\n      overflow: auto;\n      white-space: nowrap;\n    }"]}),e=D_([O_(0,vi(rl)),O_(1,vi(cl)),O_(2,vi(Hd)),M_("design:paramtypes",[rl,cl,Object])],e),e})(),Zk=(()=>{let e=class{};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=fe({}),e})();class Qk{constructor(e,t){this.x=e,this.y=t}static fromEvent(e,t=null){if(this.isMouseEvent(e))return new Qk(e.clientX,e.clientY);if(null===t||1===e.changedTouches.length)return new Qk(e.changedTouches[0].clientX,e.changedTouches[0].clientY);for(let n=0;n<e.changedTouches.length;n++)if(e.changedTouches[n].target===t)return new Qk(e.changedTouches[n].clientX,e.changedTouches[n].clientY)}static isMouseEvent(e){return 8===Object.prototype.toString.apply(e).indexOf("MouseEvent")}static isIPosition(e){return!!e&&"x"in e&&"y"in e}static getCurrent(e){let t=new Qk(0,0);if(window){const n=window.getComputedStyle(e);if(n){let e=parseInt(n.getPropertyValue("left"),10),i=parseInt(n.getPropertyValue("top"),10);t.x=isNaN(e)?0:e,t.y=isNaN(i)?0:i}return t}return console.error("Not Supported!"),null}static copy(e){return new Qk(0,0).set(e)}get value(){return{x:this.x,y:this.y}}add(e){return this.x+=e.x,this.y+=e.y,this}subtract(e){return this.x-=e.x,this.y-=e.y,this}multiply(e){this.x*=e,this.y*=e}divide(e){this.x/=e,this.y/=e}reset(){return this.x=0,this.y=0,this}set(e){return this.x=e.x,this.y=e.y,this}}class Xk{constructor(e,t){this.parent=e,this.renderer=t,this._added=!1;let n=t.createElement("div");t.setStyle(n,"position","absolute"),t.setStyle(n,"width","100%"),t.setStyle(n,"height","100%"),t.setStyle(n,"background-color","transparent"),t.setStyle(n,"top","0"),t.setStyle(n,"left","0"),this._helper=n}add(){this.parent&&!this._added&&(this.parent.appendChild(this._helper),this._added=!0)}remove(){this.parent&&this._added&&(this.parent.removeChild(this._helper),this._added=!1)}dispose(){this._helper=null,this._added=!1}get el(){return this._helper}}let Kk=(()=>{class e{constructor(e,t){this.el=e,this.renderer=t,this.allowDrag=!0,this.moving=!1,this.orignal=null,this.oldTrans=new Qk(0,0),this.tempTrans=new Qk(0,0),this.currTrans=new Qk(0,0),this.oldZIndex="",this._zIndex="",this.needTransform=!1,this.draggingSub=null,this._helperBlock=null,this.started=new yc,this.stopped=new yc,this.edge=new yc,this.outOfBounds={top:!1,right:!1,bottom:!1,left:!1},this.gridSize=1,this.inBounds=!1,this.trackPosition=!0,this.scale=1,this.preventDefaultEvent=!1,this.position={x:0,y:0},this.lockAxis=null,this.movingOffset=new yc,this.endOffset=new yc,this._helperBlock=new Xk(e.nativeElement,t)}set zIndex(e){this.renderer.setStyle(this.el.nativeElement,"z-index",e),this._zIndex=e}set ngDraggable(e){if(null!=e&&""!==e){this.allowDrag=!!e;let t=this.getDragEl();this.allowDrag?this.renderer.addClass(t,"ng-draggable"):(this.putBack(),this.renderer.removeClass(t,"ng-draggable"))}}ngOnInit(){if(this.allowDrag){let e=this.getDragEl();this.renderer.addClass(e,"ng-draggable")}this.resetPosition()}ngOnDestroy(){this.bounds=null,this.handle=null,this.orignal=null,this.oldTrans=null,this.tempTrans=null,this.currTrans=null,this._helperBlock.dispose(),this._helperBlock=null,this.draggingSub&&this.draggingSub.unsubscribe()}ngOnChanges(e){if(e.position&&!e.position.isFirstChange()){let t=e.position.currentValue;this.moving?this.needTransform=!0:(Qk.isIPosition(t)?this.oldTrans.set(t):this.oldTrans.reset(),this.transform())}}ngAfterViewInit(){this.inBounds&&(this.boundsCheck(),this.oldTrans.add(this.tempTrans),this.tempTrans.reset())}getDragEl(){return this.handle?this.handle:this.el.nativeElement}resetPosition(){Qk.isIPosition(this.position)?this.oldTrans.set(this.position):this.oldTrans.reset(),this.tempTrans.reset(),this.transform()}moveTo(e){this.orignal&&(e.subtract(this.orignal),this.tempTrans.set(e),this.tempTrans.divide(this.scale),this.transform(),this.bounds&&this.edge.emit(this.boundsCheck()),this.movingOffset.emit(this.currTrans.value))}transform(){let e=this.tempTrans.x+this.oldTrans.x,t=this.tempTrans.y+this.oldTrans.y;"x"===this.lockAxis?(e=this.oldTrans.x,this.tempTrans.x=0):"y"===this.lockAxis&&(t=this.oldTrans.y,this.tempTrans.y=0),this.gridSize>1&&(e=Math.round(e/this.gridSize)*this.gridSize,t=Math.round(t/this.gridSize)*this.gridSize);let n=`translate(${Math.round(e)}px, ${Math.round(t)}px)`;this.renderer.setStyle(this.el.nativeElement,"transform",n),this.renderer.setStyle(this.el.nativeElement,"-webkit-transform",n),this.renderer.setStyle(this.el.nativeElement,"-ms-transform",n),this.renderer.setStyle(this.el.nativeElement,"-moz-transform",n),this.renderer.setStyle(this.el.nativeElement,"-o-transform",n),this.currTrans.x=e,this.currTrans.y=t}pickUp(){if(this.oldZIndex=this.el.nativeElement.style.zIndex?this.el.nativeElement.style.zIndex:"",window&&(this.oldZIndex=window.getComputedStyle(this.el.nativeElement,null).getPropertyValue("z-index")),this.zIndexMoving&&this.renderer.setStyle(this.el.nativeElement,"z-index",this.zIndexMoving),!this.moving){this.started.emit(this.el.nativeElement),this.moving=!0;const e=this.getDragEl();this.renderer.addClass(e,"ng-dragging"),this.subscribeEvents()}}subscribeEvents(){this.draggingSub=V_(document,"mousemove",{passive:!1}).subscribe(e=>this.onMouseMove(e)),this.draggingSub.add(V_(document,"touchmove",{passive:!1}).subscribe(e=>this.onMouseMove(e))),this.draggingSub.add(V_(document,"mouseup",{passive:!1}).subscribe(()=>this.putBack())),/msie\s|trident\//i.test(window.navigator.userAgent)||this.draggingSub.add(V_(document,"mouseleave",{passive:!1}).subscribe(()=>this.putBack())),this.draggingSub.add(V_(document,"touchend",{passive:!1}).subscribe(()=>this.putBack())),this.draggingSub.add(V_(document,"touchcancel",{passive:!1}).subscribe(()=>this.putBack()))}unsubscribeEvents(){this.draggingSub.unsubscribe(),this.draggingSub=null}boundsCheck(){if(this.bounds){let e=this.bounds.getBoundingClientRect(),t=this.el.nativeElement.getBoundingClientRect(),n={top:!!this.outOfBounds.top||e.top<t.top,right:!!this.outOfBounds.right||e.right>t.right,bottom:!!this.outOfBounds.bottom||e.bottom>t.bottom,left:!!this.outOfBounds.left||e.left<t.left};return this.inBounds&&(n.top||(this.tempTrans.y-=(t.top-e.top)/this.scale),n.bottom||(this.tempTrans.y-=(t.bottom-e.bottom)/this.scale),n.right||(this.tempTrans.x-=(t.right-e.right)/this.scale),n.left||(this.tempTrans.x-=(t.left-e.left)/this.scale),this.transform()),n}}getCurrentOffset(){return this.currTrans.value}putBack(){if(this._zIndex?this.renderer.setStyle(this.el.nativeElement,"z-index",this._zIndex):this.zIndexMoving&&(this.oldZIndex?this.renderer.setStyle(this.el.nativeElement,"z-index",this.oldZIndex):this.el.nativeElement.style.removeProperty("z-index")),this.moving){this.stopped.emit(this.el.nativeElement),this._helperBlock.remove(),this.needTransform&&(Qk.isIPosition(this.position)?this.oldTrans.set(this.position):this.oldTrans.reset(),this.transform(),this.needTransform=!1),this.bounds&&this.edge.emit(this.boundsCheck()),this.moving=!1,this.endOffset.emit(this.currTrans.value),this.trackPosition&&this.oldTrans.add(this.tempTrans),this.tempTrans.reset(),this.trackPosition||this.transform();const e=this.getDragEl();this.renderer.removeClass(e,"ng-dragging"),this.unsubscribeEvents()}}checkHandleTarget(e,t){if("BUTTON"===t.tagName)return!1;if(t===e)return!0;for(let n in t.children)if(t.children.hasOwnProperty(n)&&this.checkHandleTarget(e,t.children[n]))return!0;return!1}onMouseDown(e){e instanceof MouseEvent&&2===e.button||(void 0===this.handle||this.checkHandleTarget(e.target||e.srcElement,this.handle))&&!1!==this.allowDrag&&(this.preventDefaultEvent&&(e.stopPropagation(),e.preventDefault()),this.orignal=Qk.fromEvent(e,this.getDragEl()),this.pickUp())}onMouseMove(e){this.moving&&this.allowDrag&&(this.preventDefaultEvent&&(e.stopPropagation(),e.preventDefault()),this._helperBlock.add(),this.moveTo(Qk.fromEvent(e,this.getDragEl())))}}return e.\u0275fac=function(t){return new(t||e)(zr(rl),zr(cl))},e.\u0275dir=Ke({type:e,selectors:[["","ngDraggable",""]],hostBindings:function(e,t){1&e&&Xr("mousedown",function(e){return t.onMouseDown(e)})("touchstart",function(e){return t.onMouseDown(e)})},inputs:{outOfBounds:"outOfBounds",gridSize:"gridSize",inBounds:"inBounds",trackPosition:"trackPosition",scale:"scale",preventDefaultEvent:"preventDefaultEvent",position:"position",lockAxis:"lockAxis",zIndex:"zIndex",ngDraggable:"ngDraggable",bounds:"bounds",handle:"handle",zIndexMoving:"zIndexMoving"},outputs:{started:"started",stopped:"stopped",edge:"edge",movingOffset:"movingOffset",endOffset:"endOffset"},exportAs:["ngDraggable"],features:[dt]}),e})();class Jk{constructor(e,t,n,i,s){this.parent=e,this.renderer=t,this.type=n,this.css=i,this.onMouseDown=s;let o=t.createElement("div");t.addClass(o,"ng-resizable-handle"),t.addClass(o,i),"se"===n&&t.addClass(o,"ng-resizable-diagonal"),this.parent&&e.appendChild(o),this._onResize=e=>{s(e,this)},o.addEventListener("mousedown",this._onResize,{passive:!1}),o.addEventListener("touchstart",this._onResize,{passive:!1}),this._handle=o}dispose(){this._handle.removeEventListener("mousedown",this._onResize),this._handle.removeEventListener("touchstart",this._onResize),this.parent&&this.parent.removeChild(this._handle),this._handle=null,this._onResize=null}get el(){return this._handle}}class eP{constructor(e,t){this.width=e,this.height=t}static getCurrent(e){let t=new eP(0,0);if(window){const n=window.getComputedStyle(e);return n&&(t.width=parseInt(n.getPropertyValue("width"),10),t.height=parseInt(n.getPropertyValue("height"),10)),t}return console.error("Not Supported!"),null}static copy(e){return new eP(0,0).set(e)}set(e){return this.width=e.width,this.height=e.height,this}}let tP=(()=>{class e{constructor(e,t){this.el=e,this.renderer=t,this._resizable=!0,this._handles={},this._handleType=[],this._handleResizing=null,this._direction=null,this._directionChanged=null,this._aspectRatio=0,this._containment=null,this._origMousePos=null,this._origSize=null,this._origPos=null,this._currSize=null,this._currPos=null,this._initSize=null,this._initPos=null,this._gridSize=null,this._bounding=null,this._helperBlock=null,this.draggingSub=null,this._adjusted=!1,this.rzHandles="e,s,se",this.rzAspectRatio=!1,this.rzContainment=null,this.rzGrid=null,this.rzMinWidth=null,this.rzMinHeight=null,this.rzMaxWidth=null,this.rzMaxHeight=null,this.preventDefaultEvent=!0,this.rzStart=new yc,this.rzResizing=new yc,this.rzStop=new yc,this._helperBlock=new Xk(e.nativeElement,t)}set ngResizable(e){null!=e&&""!==e&&(this._resizable=!!e,this.updateResizable())}ngOnChanges(e){e.rzHandles&&!e.rzHandles.isFirstChange()&&this.updateResizable(),e.rzAspectRatio&&!e.rzAspectRatio.isFirstChange()&&this.updateAspectRatio(),e.rzContainment&&!e.rzContainment.isFirstChange()&&this.updateContainment()}ngOnInit(){this.updateResizable()}ngOnDestroy(){this.removeHandles(),this._containment=null,this._helperBlock.dispose(),this._helperBlock=null}ngAfterViewInit(){const e=this.el.nativeElement;this._initSize=eP.getCurrent(e),this._initPos=Qk.getCurrent(e),this._currSize=eP.copy(this._initSize),this._currPos=Qk.copy(this._initPos),this.updateAspectRatio(),this.updateContainment()}resetSize(){this._currSize=eP.copy(this._initSize),this._currPos=Qk.copy(this._initPos),this.doResize()}getStatus(){return this._currPos&&this._currSize?{size:{width:this._currSize.width,height:this._currSize.height},position:{top:this._currPos.y,left:this._currPos.x}}:null}updateResizable(){const e=this.el.nativeElement;this.renderer.removeClass(e,"ng-resizable"),this.removeHandles(),this._resizable&&(this.renderer.addClass(e,"ng-resizable"),this.createHandles())}updateAspectRatio(){if("boolean"==typeof this.rzAspectRatio)this._aspectRatio=this.rzAspectRatio&&this._currSize.height?this._currSize.width/this._currSize.height:0;else{let e=Number(this.rzAspectRatio);this._aspectRatio=isNaN(e)?0:e}}updateContainment(){this._containment=this.rzContainment?"string"==typeof this.rzContainment?"parent"===this.rzContainment?this.el.nativeElement.parentElement:document.querySelector(this.rzContainment):this.rzContainment:null}createHandles(){if(!this.rzHandles)return;let e;if("string"==typeof this.rzHandles){e="all"===this.rzHandles?["n","e","s","w","ne","se","nw","sw"]:this.rzHandles.replace(/ /g,"").toLowerCase().split(",");for(let t of e){let e=this.createHandleByType(t,"ng-resizable-"+t);e&&(this._handleType.push(t),this._handles[t]=e)}}else{e=Object.keys(this.rzHandles);for(let t of e){let e=this.createHandleByType(t,this.rzHandles[t]);e&&(this._handleType.push(t),this._handles[t]=e)}}}createHandleByType(e,t){const n=this.el.nativeElement;return e.match(/^(se|sw|ne|nw|n|e|s|w)$/)?new Jk(n,this.renderer,e,t,this.onMouseDown.bind(this)):(console.error("Invalid handle type:",e),null)}removeHandles(){for(let e of this._handleType)this._handles[e].dispose();this._handleType=[],this._handles={}}onMouseDown(e,t){e instanceof MouseEvent&&2===e.button||(this.preventDefaultEvent&&(e.stopPropagation(),e.preventDefault()),this._handleResizing||(this._origMousePos=Qk.fromEvent(e),this.startResize(t),this.subscribeEvents()))}subscribeEvents(){this.draggingSub=V_(document,"mousemove",{passive:!1}).subscribe(e=>this.onMouseMove(e)),this.draggingSub.add(V_(document,"touchmove",{passive:!1}).subscribe(e=>this.onMouseMove(e))),this.draggingSub.add(V_(document,"mouseup",{passive:!1}).subscribe(()=>this.onMouseLeave())),/msie\s|trident\//i.test(window.navigator.userAgent)||this.draggingSub.add(V_(document,"mouseleave",{passive:!1}).subscribe(()=>this.onMouseLeave())),this.draggingSub.add(V_(document,"touchend",{passive:!1}).subscribe(()=>this.onMouseLeave())),this.draggingSub.add(V_(document,"touchcancel",{passive:!1}).subscribe(()=>this.onMouseLeave()))}unsubscribeEvents(){this.draggingSub.unsubscribe(),this.draggingSub=null}onMouseLeave(){this._handleResizing&&(this.stopResize(),this._origMousePos=null,this.unsubscribeEvents())}onMouseMove(e){this._handleResizing&&this._resizable&&this._origMousePos&&this._origPos&&this._origSize&&(this.resizeTo(Qk.fromEvent(e)),this.onResizing())}startResize(e){const t=this.el.nativeElement;this._origSize=eP.getCurrent(t),this._origPos=Qk.getCurrent(t),this._currSize=eP.copy(this._origSize),this._currPos=Qk.copy(this._origPos),this._containment&&this.getBounding(),this.getGridSize(),this._helperBlock.add(),this._handleResizing=e,this.updateDirection(),this.rzStart.emit(this.getResizingEvent())}stopResize(){this._helperBlock.remove(),this.rzStop.emit(this.getResizingEvent()),this._handleResizing=null,this._direction=null,this._origSize=null,this._origPos=null,this._containment&&this.resetBounding()}onResizing(){this.rzResizing.emit(this.getResizingEvent())}getResizingEvent(){return{host:this.el.nativeElement,handle:this._handleResizing?this._handleResizing.el:null,size:{width:this._currSize.width,height:this._currSize.height},position:{top:this._currPos.y,left:this._currPos.x},direction:Object.assign({},this._directionChanged)}}updateDirection(){this._direction={n:!!this._handleResizing.type.match(/n/),s:!!this._handleResizing.type.match(/s/),w:!!this._handleResizing.type.match(/w/),e:!!this._handleResizing.type.match(/e/)},this._directionChanged=Object.assign({},this._direction),this.rzAspectRatio&&(this._directionChanged.n&&!this._directionChanged.e&&(this._directionChanged.w=!0),this._directionChanged.s&&!this._directionChanged.w&&(this._directionChanged.e=!0),this._directionChanged.e&&!this._directionChanged.n&&(this._directionChanged.s=!0),this._directionChanged.w&&!this._directionChanged.n&&(this._directionChanged.s=!0))}resizeTo(e){e.subtract(this._origMousePos);const t=Math.round(e.x/this._gridSize.x)*this._gridSize.x,n=Math.round(e.y/this._gridSize.y)*this._gridSize.y;this._direction.n?(this._currPos.y=this._origPos.y+n,this._currSize.height=this._origSize.height-n):this._direction.s&&(this._currSize.height=this._origSize.height+n),this._direction.e?this._currSize.width=this._origSize.width+t:this._direction.w&&(this._currSize.width=this._origSize.width-t,this._currPos.x=this._origPos.x+t),this.checkBounds(),this.checkSize(),this.adjustByRatio(),this.doResize()}doResize(){const e=this.el.nativeElement;(!this._direction||this._direction.n||this._direction.s||this._aspectRatio)&&this.renderer.setStyle(e,"height",this._currSize.height+"px"),(!this._direction||this._direction.w||this._direction.e||this._aspectRatio)&&this.renderer.setStyle(e,"width",this._currSize.width+"px"),this.renderer.setStyle(e,"left",this._currPos.x+"px"),this.renderer.setStyle(e,"top",this._currPos.y+"px")}adjustByRatio(){if(this._aspectRatio&&!this._adjusted)if(this._direction.e||this._direction.w){const e=Math.floor(this._currSize.width/this._aspectRatio);this._direction.n&&(this._currPos.y+=this._currSize.height-e),this._currSize.height=e}else{const e=Math.floor(this._aspectRatio*this._currSize.height);this._direction.n&&(this._currPos.x+=this._currSize.width-e),this._currSize.width=e}}checkBounds(){if(this._containment){const e=this._bounding.width-this._bounding.pr-this._bounding.deltaL-this._bounding.translateX-this._currPos.x,t=this._bounding.height-this._bounding.pb-this._bounding.deltaT-this._bounding.translateY-this._currPos.y;if(this._direction.n&&this._currPos.y+this._bounding.translateY<0&&(this._currPos.y=-this._bounding.translateY,this._currSize.height=this._origSize.height+this._origPos.y+this._bounding.translateY),this._direction.w&&this._currPos.x+this._bounding.translateX<0&&(this._currPos.x=-this._bounding.translateX,this._currSize.width=this._origSize.width+this._origPos.x+this._bounding.translateX),this._currSize.width>e&&(this._currSize.width=e),this._currSize.height>t&&(this._currSize.height=t),this._aspectRatio){if(this._adjusted=!1,(this._direction.w||this._direction.e)&&this._currSize.width/this._aspectRatio>=t){const e=Math.floor(t*this._aspectRatio);this._direction.w&&(this._currPos.x+=this._currSize.width-e),this._currSize.width=e,this._currSize.height=t,this._adjusted=!0}if((this._direction.n||this._direction.s)&&this._currSize.height*this._aspectRatio>=e){const t=Math.floor(e/this._aspectRatio);this._direction.n&&(this._currPos.y+=this._currSize.height-t),this._currSize.width=e,this._currSize.height=t,this._adjusted=!0}}}}checkSize(){const e=this.rzMinHeight?this.rzMinHeight:1,t=this.rzMinWidth?this.rzMinWidth:1;this._currSize.height<e&&(this._currSize.height=e,this._direction.n&&(this._currPos.y=this._origPos.y+(this._origSize.height-e))),this._currSize.width<t&&(this._currSize.width=t,this._direction.w&&(this._currPos.x=this._origPos.x+(this._origSize.width-t))),this.rzMaxHeight&&this._currSize.height>this.rzMaxHeight&&(this._currSize.height=this.rzMaxHeight,this._direction.n&&(this._currPos.y=this._origPos.y+(this._origSize.height-this.rzMaxHeight))),this.rzMaxWidth&&this._currSize.width>this.rzMaxWidth&&(this._currSize.width=this.rzMaxWidth,this._direction.w&&(this._currPos.x=this._origPos.x+(this._origSize.width-this.rzMaxWidth)))}getBounding(){const e=this._containment,t=window.getComputedStyle(e);if(t){let n=t.getPropertyValue("position"),i=window.getComputedStyle(this.el.nativeElement).getPropertyValue("transform").replace(/[^-\d,]/g,"").split(",");this._bounding={},this._bounding.width=e.clientWidth,this._bounding.height=e.clientHeight,this._bounding.pr=parseInt(t.getPropertyValue("padding-right"),10),this._bounding.pb=parseInt(t.getPropertyValue("padding-bottom"),10),this._bounding.deltaL=this.el.nativeElement.offsetLeft-this._currPos.x,this._bounding.deltaT=this.el.nativeElement.offsetTop-this._currPos.y,i.length>=6?(this._bounding.translateX=parseInt(i[4],10),this._bounding.translateY=parseInt(i[5],10)):(this._bounding.translateX=0,this._bounding.translateY=0),this._bounding.position=t.getPropertyValue("position"),"static"===n&&this.renderer.setStyle(e,"position","relative")}}resetBounding(){this._bounding&&"static"===this._bounding.position&&this.renderer.setStyle(this._containment,"position","relative"),this._bounding=null}getGridSize(){this._gridSize={x:1,y:1},this.rzGrid&&("number"==typeof this.rzGrid?this._gridSize={x:this.rzGrid,y:this.rzGrid}:Array.isArray(this.rzGrid)&&(this._gridSize={x:this.rzGrid[0],y:this.rzGrid[1]}))}}return e.\u0275fac=function(t){return new(t||e)(zr(rl),zr(cl))},e.\u0275dir=Ke({type:e,selectors:[["","ngResizable",""]],inputs:{rzHandles:"rzHandles",rzAspectRatio:"rzAspectRatio",rzContainment:"rzContainment",rzGrid:"rzGrid",rzMinWidth:"rzMinWidth",rzMinHeight:"rzMinHeight",rzMaxWidth:"rzMaxWidth",rzMaxHeight:"rzMaxHeight",preventDefaultEvent:"preventDefaultEvent",ngResizable:"ngResizable"},outputs:{rzStart:"rzStart",rzResizing:"rzResizing",rzStop:"rzStop"},exportAs:["ngResizable"],features:[dt]}),e})(),nP=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=fe({imports:[[]]}),e})();function iP(e,t){return function(n,i){t(n,i,e)}}let sP=(()=>{let e=class{constructor(e,t){this.document=e,this.platformId=t,this.documentIsAccessible=hh(this.platformId)}check(e){return!!this.documentIsAccessible&&(e=encodeURIComponent(e),this.getCookieRegExp(e).test(this.document.cookie))}get(e){if(!this.documentIsAccessible||!this.check(e))return"";{e=encodeURIComponent(e);const n=this.getCookieRegExp(e).exec(this.document.cookie);try{return decodeURIComponent(n[1])}catch(t){return n[1]}}}getAll(){if(!this.documentIsAccessible)return{};const e={},t=this.document;return t.cookie&&""!==t.cookie&&t.cookie.split(";").forEach(t=>{const[n,i]=t.split("=");e[decodeURIComponent(n.replace(/^ /,""))]=decodeURIComponent(i)}),e}set(e,t,n,i,s,o,r="Lax"){if(!this.documentIsAccessible)return;let a=encodeURIComponent(e)+"="+encodeURIComponent(t)+";";n&&(a+="number"==typeof n?"expires="+new Date((new Date).getTime()+1e3*n*60*60*24).toUTCString()+";":"expires="+n.toUTCString()+";"),i&&(a+="path="+i+";"),s&&(a+="domain="+s+";"),!1===o&&"None"===r&&(o=!0,console.warn(`[ngx-cookie-service] Cookie ${e} was forced with secure flag because sameSite=None.More details : https://github.com/stevermeister/ngx-cookie-service/issues/86#issuecomment-597720130`)),o&&(a+="secure;"),a+="sameSite="+r+";",this.document.cookie=a}delete(e,t,n,i,s="Lax"){this.documentIsAccessible&&this.set(e,"",new Date("Thu, 01 Jan 1970 00:00:01 GMT"),t,n,i,s)}deleteAll(e,t,n,i="Lax"){if(!this.documentIsAccessible)return;const s=this.getAll();for(const o in s)s.hasOwnProperty(o)&&this.delete(o,e,t,n,i)}getCookieRegExp(e){const t=e.replace(/([\[\]\{\}\(\)\|\=\;\+\?\,\.\*\^\$])/gi,"\\$1");return new RegExp("(?:^"+t+"|;\\s*"+t+")=(.*?)(?:;|$)","g")}};return e.\u0275fac=function(t){return new(t||e)(gi(Hd),gi($c))},e.\u0275prov=pe({factory:function(){return new e(gi(Hd),gi($c))},token:e,providedIn:"root"}),e=function(e,t,n,i){var s,o=arguments.length,r=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,n,r):s(t,n))||r);return o>3&&r&&Object.defineProperty(t,n,r),r}([iP(0,vi(Hd)),iP(1,vi($c))],e),e})();function oP(e){return"string"==typeof e}let rP=(()=>{let e=class{};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=fe({imports:[[]]}),e})(),aP=(()=>{let e=class{};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=fe({imports:[[]]}),e})(),lP=(()=>{let e=class{transform(e,t=0,n="",i=!0){if(!oP(e))return e;if(e.length>t){if(i)return e.slice(0,t)+n;if(~e.indexOf(" ",t))return e.slice(0,e.indexOf(" ",t))+n}return e}};return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=Je({name:"shorten",type:e,pure:!0}),e})(),cP=(()=>{let e=class{transform(e){return oP(e)?function(e){const[t,...n]=e.split(/\s/g);return[t.toLowerCase().split(/(?=['|-])/g).map(e=>e.indexOf("-")+e.indexOf("'")>-2?e.slice(0,2).toUpperCase()+e.slice(2):e.slice(0,1).toUpperCase()+e.slice(1)).join(""),...n].join(" ")}(e):e}};return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=Je({name:"ucfirst",type:e,pure:!0}),e})(),dP=(()=>{let e=class{constructor(){this.latinMap={\u00c1:"A",\u0102:"A",\u1eae:"A",\u1eb6:"A",\u1eb0:"A",\u1eb2:"A",\u1eb4:"A",\u01cd:"A",\u00c2:"A",\u1ea4:"A",\u1eac:"A",\u1ea6:"A",\u1ea8:"A",\u1eaa:"A",\u00c4:"A",\u01de:"A",\u0226:"A",\u01e0:"A",\u1ea0:"A",\u0200:"A",\u00c0:"A",\u1ea2:"A",\u0202:"A",\u0100:"A",\u0104:"A",\u00c5:"A",\u01fa:"A",\u1e00:"A",\u023a:"A",\u00c3:"A",\ua732:"AA",\u00c6:"AE",\u01fc:"AE",\u01e2:"AE",\ua734:"AO",\ua736:"AU",\ua738:"AV",\ua73a:"AV",\ua73c:"AY",\u1e02:"B",\u1e04:"B",\u0181:"B",\u1e06:"B",\u0243:"B",\u0182:"B",\u0106:"C",\u010c:"C",\u00c7:"C",\u1e08:"C",\u0108:"C",\u010a:"C",\u0187:"C",\u023b:"C",\u010e:"D",\u1e10:"D",\u1e12:"D",\u1e0a:"D",\u1e0c:"D",\u018a:"D",\u1e0e:"D",\u01f2:"D",\u01c5:"D",\u0110:"D",\u018b:"D",\u01f1:"DZ",\u01c4:"DZ",\u00c9:"E",\u0114:"E",\u011a:"E",\u0228:"E",\u1e1c:"E",\u00ca:"E",\u1ebe:"E",\u1ec6:"E",\u1ec0:"E",\u1ec2:"E",\u1ec4:"E",\u1e18:"E",\u00cb:"E",\u0116:"E",\u1eb8:"E",\u0204:"E",\u00c8:"E",\u1eba:"E",\u0206:"E",\u0112:"E",\u1e16:"E",\u1e14:"E",\u0118:"E",\u0246:"E",\u1ebc:"E",\u1e1a:"E",\ua76a:"ET",\u1e1e:"F",\u0191:"F",\u01f4:"G",\u011e:"G",\u01e6:"G",\u0122:"G",\u011c:"G",\u0120:"G",\u0193:"G",\u1e20:"G",\u01e4:"G",\u1e2a:"H",\u021e:"H",\u1e28:"H",\u0124:"H",\u2c67:"H",\u1e26:"H",\u1e22:"H",\u1e24:"H",\u0126:"H",\u00cd:"I",\u012c:"I",\u01cf:"I",\u00ce:"I",\u00cf:"I",\u1e2e:"I",\u0130:"I",\u1eca:"I",\u0208:"I",\u00cc:"I",\u1ec8:"I",\u020a:"I",\u012a:"I",\u012e:"I",\u0197:"I",\u0128:"I",\u1e2c:"I",\ua779:"D",\ua77b:"F",\ua77d:"G",\ua782:"R",\ua784:"S",\ua786:"T",\ua76c:"IS",\u0134:"J",\u0248:"J",\u1e30:"K",\u01e8:"K",\u0136:"K",\u2c69:"K",\ua742:"K",\u1e32:"K",\u0198:"K",\u1e34:"K",\ua740:"K",\ua744:"K",\u0139:"L",\u023d:"L",\u013d:"L",\u013b:"L",\u1e3c:"L",\u1e36:"L",\u1e38:"L",\u2c60:"L",\ua748:"L",\u1e3a:"L",\u013f:"L",\u2c62:"L",\u01c8:"L",\u0141:"L",\u01c7:"LJ",\u1e3e:"M",\u1e40:"M",\u1e42:"M",\u2c6e:"M",\u0143:"N",\u0147:"N",\u0145:"N",\u1e4a:"N",\u1e44:"N",\u1e46:"N",\u01f8:"N",\u019d:"N",\u1e48:"N",\u0220:"N",\u01cb:"N",\u00d1:"N",\u01ca:"NJ",\u00d3:"O",\u014e:"O",\u01d1:"O",\u00d4:"O",\u1ed0:"O",\u1ed8:"O",\u1ed2:"O",\u1ed4:"O",\u1ed6:"O",\u00d6:"O",\u022a:"O",\u022e:"O",\u0230:"O",\u1ecc:"O",\u0150:"O",\u020c:"O",\u00d2:"O",\u1ece:"O",\u01a0:"O",\u1eda:"O",\u1ee2:"O",\u1edc:"O",\u1ede:"O",\u1ee0:"O",\u020e:"O",\ua74a:"O",\ua74c:"O",\u014c:"O",\u1e52:"O",\u1e50:"O",\u019f:"O",\u01ea:"O",\u01ec:"O",\u00d8:"O",\u01fe:"O",\u00d5:"O",\u1e4c:"O",\u1e4e:"O",\u022c:"O",\u01a2:"OI",\ua74e:"OO",\u0190:"E",\u0186:"O",\u0222:"OU",\u1e54:"P",\u1e56:"P",\ua752:"P",\u01a4:"P",\ua754:"P",\u2c63:"P",\ua750:"P",\ua758:"Q",\ua756:"Q",\u0154:"R",\u0158:"R",\u0156:"R",\u1e58:"R",\u1e5a:"R",\u1e5c:"R",\u0210:"R",\u0212:"R",\u1e5e:"R",\u024c:"R",\u2c64:"R",\ua73e:"C",\u018e:"E",\u015a:"S",\u1e64:"S",\u0160:"S",\u1e66:"S",\u015e:"S",\u015c:"S",\u0218:"S",\u1e60:"S",\u1e62:"S",\u1e68:"S",\u1e9e:"SS",\u0164:"T",\u0162:"T",\u1e70:"T",\u021a:"T",\u023e:"T",\u1e6a:"T",\u1e6c:"T",\u01ac:"T",\u1e6e:"T",\u01ae:"T",\u0166:"T",\u2c6f:"A",\ua780:"L",\u019c:"M",\u0245:"V",\ua728:"TZ",\u00da:"U",\u016c:"U",\u01d3:"U",\u00db:"U",\u1e76:"U",\u00dc:"U",\u01d7:"U",\u01d9:"U",\u01db:"U",\u01d5:"U",\u1e72:"U",\u1ee4:"U",\u0170:"U",\u0214:"U",\u00d9:"U",\u1ee6:"U",\u01af:"U",\u1ee8:"U",\u1ef0:"U",\u1eea:"U",\u1eec:"U",\u1eee:"U",\u0216:"U",\u016a:"U",\u1e7a:"U",\u0172:"U",\u016e:"U",\u0168:"U",\u1e78:"U",\u1e74:"U",\ua75e:"V",\u1e7e:"V",\u01b2:"V",\u1e7c:"V",\ua760:"VY",\u1e82:"W",\u0174:"W",\u1e84:"W",\u1e86:"W",\u1e88:"W",\u1e80:"W",\u2c72:"W",\u1e8c:"X",\u1e8a:"X",\u00dd:"Y",\u0176:"Y",\u0178:"Y",\u1e8e:"Y",\u1ef4:"Y",\u1ef2:"Y",\u01b3:"Y",\u1ef6:"Y",\u1efe:"Y",\u0232:"Y",\u024e:"Y",\u1ef8:"Y",\u0179:"Z",\u017d:"Z",\u1e90:"Z",\u2c6b:"Z",\u017b:"Z",\u1e92:"Z",\u0224:"Z",\u1e94:"Z",\u01b5:"Z",\u0132:"IJ",\u0152:"OE",\u1d00:"A",\u1d01:"AE",\u0299:"B",\u1d03:"B",\u1d04:"C",\u1d05:"D",\u1d07:"E",\ua730:"F",\u0262:"G",\u029b:"G",\u029c:"H",\u026a:"I",\u0281:"R",\u1d0a:"J",\u1d0b:"K",\u029f:"L",\u1d0c:"L",\u1d0d:"M",\u0274:"N",\u1d0f:"O",\u0276:"OE",\u1d10:"O",\u1d15:"OU",\u1d18:"P",\u0280:"R",\u1d0e:"N",\u1d19:"R",\ua731:"S",\u1d1b:"T",\u2c7b:"E",\u1d1a:"R",\u1d1c:"U",\u1d20:"V",\u1d21:"W",\u028f:"Y",\u1d22:"Z",\u00e1:"a",\u0103:"a",\u1eaf:"a",\u1eb7:"a",\u1eb1:"a",\u1eb3:"a",\u1eb5:"a",\u01ce:"a",\u00e2:"a",\u1ea5:"a",\u1ead:"a",\u1ea7:"a",\u1ea9:"a",\u1eab:"a",\u00e4:"a",\u01df:"a",\u0227:"a",\u01e1:"a",\u1ea1:"a",\u0201:"a",\u00e0:"a",\u1ea3:"a",\u0203:"a",\u0101:"a",\u0105:"a",\u1d8f:"a",\u1e9a:"a",\u00e5:"a",\u01fb:"a",\u1e01:"a",\u2c65:"a",\u00e3:"a",\ua733:"aa",\u00e6:"ae",\u01fd:"ae",\u01e3:"ae",\ua735:"ao",\ua737:"au",\ua739:"av",\ua73b:"av",\ua73d:"ay",\u1e03:"b",\u1e05:"b",\u0253:"b",\u1e07:"b",\u1d6c:"b",\u1d80:"b",\u0180:"b",\u0183:"b",\u0275:"o",\u0107:"c",\u010d:"c",\u00e7:"c",\u1e09:"c",\u0109:"c",\u0255:"c",\u010b:"c",\u0188:"c",\u023c:"c",\u010f:"d",\u1e11:"d",\u1e13:"d",\u0221:"d",\u1e0b:"d",\u1e0d:"d",\u0257:"d",\u1d91:"d",\u1e0f:"d",\u1d6d:"d",\u1d81:"d",\u0111:"d",\u0256:"d",\u018c:"d",\u0131:"i",\u0237:"j",\u025f:"j",\u0284:"j",\u01f3:"dz",\u01c6:"dz",\u00e9:"e",\u0115:"e",\u011b:"e",\u0229:"e",\u1e1d:"e",\u00ea:"e",\u1ebf:"e",\u1ec7:"e",\u1ec1:"e",\u1ec3:"e",\u1ec5:"e",\u1e19:"e",\u00eb:"e",\u0117:"e",\u1eb9:"e",\u0205:"e",\u00e8:"e",\u1ebb:"e",\u0207:"e",\u0113:"e",\u1e17:"e",\u1e15:"e",\u2c78:"e",\u0119:"e",\u1d92:"e",\u0247:"e",\u1ebd:"e",\u1e1b:"e",\ua76b:"et",\u1e1f:"f",\u0192:"f",\u1d6e:"f",\u1d82:"f",\u01f5:"g",\u011f:"g",\u01e7:"g",\u0123:"g",\u011d:"g",\u0121:"g",\u0260:"g",\u1e21:"g",\u1d83:"g",\u01e5:"g",\u1e2b:"h",\u021f:"h",\u1e29:"h",\u0125:"h",\u2c68:"h",\u1e27:"h",\u1e23:"h",\u1e25:"h",\u0266:"h",\u1e96:"h",\u0127:"h",\u0195:"hv",\u00ed:"i",\u012d:"i",\u01d0:"i",\u00ee:"i",\u00ef:"i",\u1e2f:"i",\u1ecb:"i",\u0209:"i",\u00ec:"i",\u1ec9:"i",\u020b:"i",\u012b:"i",\u012f:"i",\u1d96:"i",\u0268:"i",\u0129:"i",\u1e2d:"i",\ua77a:"d",\ua77c:"f",\u1d79:"g",\ua783:"r",\ua785:"s",\ua787:"t",\ua76d:"is",\u01f0:"j",\u0135:"j",\u029d:"j",\u0249:"j",\u1e31:"k",\u01e9:"k",\u0137:"k",\u2c6a:"k",\ua743:"k",\u1e33:"k",\u0199:"k",\u1e35:"k",\u1d84:"k",\ua741:"k",\ua745:"k",\u013a:"l",\u019a:"l",\u026c:"l",\u013e:"l",\u013c:"l",\u1e3d:"l",\u0234:"l",\u1e37:"l",\u1e39:"l",\u2c61:"l",\ua749:"l",\u1e3b:"l",\u0140:"l",\u026b:"l",\u1d85:"l",\u026d:"l",\u0142:"l",\u01c9:"lj",\u017f:"s",\u1e9c:"s",\u1e9b:"s",\u1e9d:"s",\u1e3f:"m",\u1e41:"m",\u1e43:"m",\u0271:"m",\u1d6f:"m",\u1d86:"m",\u0144:"n",\u0148:"n",\u0146:"n",\u1e4b:"n",\u0235:"n",\u1e45:"n",\u1e47:"n",\u01f9:"n",\u0272:"n",\u1e49:"n",\u019e:"n",\u1d70:"n",\u1d87:"n",\u0273:"n",\u00f1:"n",\u01cc:"nj",\u00f3:"o",\u014f:"o",\u01d2:"o",\u00f4:"o",\u1ed1:"o",\u1ed9:"o",\u1ed3:"o",\u1ed5:"o",\u1ed7:"o",\u00f6:"o",\u022b:"o",\u022f:"o",\u0231:"o",\u1ecd:"o",\u0151:"o",\u020d:"o",\u00f2:"o",\u1ecf:"o",\u01a1:"o",\u1edb:"o",\u1ee3:"o",\u1edd:"o",\u1edf:"o",\u1ee1:"o",\u020f:"o",\ua74b:"o",\ua74d:"o",\u2c7a:"o",\u014d:"o",\u1e53:"o",\u1e51:"o",\u01eb:"o",\u01ed:"o",\u00f8:"o",\u01ff:"o",\u00f5:"o",\u1e4d:"o",\u1e4f:"o",\u022d:"o",\u01a3:"oi",\ua74f:"oo",\u025b:"e",\u1d93:"e",\u0254:"o",\u1d97:"o",\u0223:"ou",\u1e55:"p",\u1e57:"p",\ua753:"p",\u01a5:"p",\u1d71:"p",\u1d88:"p",\ua755:"p",\u1d7d:"p",\ua751:"p",\ua759:"q",\u02a0:"q",\u024b:"q",\ua757:"q",\u0155:"r",\u0159:"r",\u0157:"r",\u1e59:"r",\u1e5b:"r",\u1e5d:"r",\u0211:"r",\u027e:"r",\u1d73:"r",\u0213:"r",\u1e5f:"r",\u027c:"r",\u1d72:"r",\u1d89:"r",\u024d:"r",\u027d:"r",\u2184:"c",\ua73f:"c",\u0258:"e",\u027f:"r",\u015b:"s",\u1e65:"s",\u0161:"s",\u1e67:"s",\u015f:"s",\u015d:"s",\u0219:"s",\u1e61:"s",\u1e63:"s",\u1e69:"s",\u0282:"s",\u1d74:"s",\u1d8a:"s",\u023f:"s",\u0261:"g",\u00df:"ss",\u1d11:"o",\u1d13:"o",\u1d1d:"u",\u0165:"t",\u0163:"t",\u1e71:"t",\u021b:"t",\u0236:"t",\u1e97:"t",\u2c66:"t",\u1e6b:"t",\u1e6d:"t",\u01ad:"t",\u1e6f:"t",\u1d75:"t",\u01ab:"t",\u0288:"t",\u0167:"t",\u1d7a:"th",\u0250:"a",\u1d02:"ae",\u01dd:"e",\u1d77:"g",\u0265:"h",\u02ae:"h",\u02af:"h",\u1d09:"i",\u029e:"k",\ua781:"l",\u026f:"m",\u0270:"m",\u1d14:"oe",\u0279:"r",\u027b:"r",\u027a:"r",\u2c79:"r",\u0287:"t",\u028c:"v",\u028d:"w",\u028e:"y",\ua729:"tz",\u00fa:"u",\u016d:"u",\u01d4:"u",\u00fb:"u",\u1e77:"u",\u00fc:"u",\u01d8:"u",\u01da:"u",\u01dc:"u",\u01d6:"u",\u1e73:"u",\u1ee5:"u",\u0171:"u",\u0215:"u",\u00f9:"u",\u1ee7:"u",\u01b0:"u",\u1ee9:"u",\u1ef1:"u",\u1eeb:"u",\u1eed:"u",\u1eef:"u",\u0217:"u",\u016b:"u",\u1e7b:"u",\u0173:"u",\u1d99:"u",\u016f:"u",\u0169:"u",\u1e79:"u",\u1e75:"u",\u1d6b:"ue",\ua778:"um",\u2c74:"v",\ua75f:"v",\u1e7f:"v",\u028b:"v",\u1d8c:"v",\u2c71:"v",\u1e7d:"v",\ua761:"vy",\u1e83:"w",\u0175:"w",\u1e85:"w",\u1e87:"w",\u1e89:"w",\u1e81:"w",\u2c73:"w",\u1e98:"w",\u1e8d:"x",\u1e8b:"x",\u1d8d:"x",\u00fd:"y",\u0177:"y",\u00ff:"y",\u1e8f:"y",\u1ef5:"y",\u1ef3:"y",\u01b4:"y",\u1ef7:"y",\u1eff:"y",\u0233:"y",\u1e99:"y",\u024f:"y",\u1ef9:"y",\u017a:"z",\u017e:"z",\u1e91:"z",\u0291:"z",\u2c6c:"z",\u017c:"z",\u1e93:"z",\u0225:"z",\u1e95:"z",\u1d76:"z",\u1d8e:"z",\u0290:"z",\u01b6:"z",\u0240:"z",\ufb00:"ff",\ufb03:"ffi",\ufb04:"ffl",\ufb01:"fi",\ufb02:"fl",\u0133:"ij",\u0153:"oe",\ufb06:"st",\u2090:"a",\u2091:"e",\u1d62:"i",\u2c7c:"j",\u2092:"o",\u1d63:"r",\u1d64:"u",\u1d65:"v",\u2093:"x"}}transform(e,t="\\s"){return oP(e)?e.replace(/[^A-Za-z0-9]/g,e=>this.latinMap[e]||e):e}};return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=Je({name:"latinise",type:e,pure:!0}),e})(),uP=(()=>{let e=class{};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=fe({imports:[[]]}),e})(),hP=(()=>{let e=class{};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=fe({imports:[[]]}),e})(),pP=(()=>{let e=class{};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=fe({imports:[[]]}),e})(),gP=(()=>{let e=class{};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=fe({imports:[[]]}),e})(),fP=(()=>{let e=class{};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=fe({imports:[rP,uP,hP,pP,aP,gP]}),e})();function mP(e,...t){return t.length?t.some(t=>e[t]):e.altKey||e.shiftKey||e.ctrlKey||e.metaKey}const bP=new gC(uC);function vP(e,t=bP){return n=>n.lift(new yP(e,t))}class yP{constructor(e,t){this.dueTime=e,this.scheduler=t}call(e,t){return t.subscribe(new wP(e,this.dueTime,this.scheduler))}}class wP extends g{constructor(e,t,n){super(e),this.dueTime=t,this.scheduler=n,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(e){this.clearDebounce(),this.lastValue=e,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(_P,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:e}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(e)}}clearDebounce(){const e=this.debouncedSubscription;null!==e&&(this.remove(e),e.unsubscribe(),this.debouncedSubscription=null)}}function _P(e){e.debouncedNext()}function xP(e){return null!=e&&""+e!="false"}function AP(e,t=0){return function(e){return!isNaN(parseFloat(e))&&!isNaN(Number(e))}(e)?Number(e):t}function CP(e){return Array.isArray(e)?e:[e]}function SP(e){return null==e?"":"string"==typeof e?e:e+"px"}function kP(e){return e instanceof rl?e.nativeElement:e}let PP;try{PP="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(FH){PP=!1}let EP,DP,OP,MP=(()=>{class e{constructor(e){this._platformId=e,this.isBrowser=this._platformId?hh(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!PP)&&"undefined"!=typeof CSS&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return e.\u0275fac=function(t){return new(t||e)(gi($c))},e.\u0275prov=pe({factory:function(){return new e(gi($c))},token:e,providedIn:"root"}),e})(),TP=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=fe({}),e})();function IP(e){return function(){if(null==EP&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>EP=!0}))}finally{EP=EP||!1}return EP}()?e:!!e.capture}function RP(){if(null==DP){if("object"!=typeof document||!document)return DP=!1,DP;if("scrollBehavior"in document.documentElement.style)DP=!0;else{const e=Element.prototype.scrollTo;DP=!!e&&!/\{\s*\[native code\]\s*\}/.test(e.toString())}}return DP}function LP(e){if(function(){if(null==OP){const e="undefined"!=typeof document?document.head:null;OP=!(!e||!e.createShadowRoot&&!e.attachShadow)}return OP}()){const t=e.getRootNode?e.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&t instanceof ShadowRoot)return t}return null}let FP=(()=>{class e{create(e){return"undefined"==typeof MutationObserver?null:new MutationObserver(e)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=pe({factory:function(){return new e},token:e,providedIn:"root"}),e})(),BP=(()=>{class e{constructor(e){this._mutationObserverFactory=e,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((e,t)=>this._cleanupObserver(t))}observe(e){const t=kP(e);return new v(e=>{const n=this._observeElement(t).subscribe(e);return()=>{n.unsubscribe(),this._unobserveElement(t)}})}_observeElement(e){if(this._observedElements.has(e))this._observedElements.get(e).count++;else{const t=new A,n=this._mutationObserverFactory.create(e=>t.next(e));n&&n.observe(e,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(e,{observer:n,stream:t,count:1})}return this._observedElements.get(e).stream}_unobserveElement(e){this._observedElements.has(e)&&(this._observedElements.get(e).count--,this._observedElements.get(e).count||this._cleanupObserver(e))}_cleanupObserver(e){if(this._observedElements.has(e)){const{observer:t,stream:n}=this._observedElements.get(e);t&&t.disconnect(),n.complete(),this._observedElements.delete(e)}}}return e.\u0275fac=function(t){return new(t||e)(gi(FP))},e.\u0275prov=pe({factory:function(){return new e(gi(FP))},token:e,providedIn:"root"}),e})(),zP=(()=>{class e{constructor(e,t,n){this._contentObserver=e,this._elementRef=t,this._ngZone=n,this.event=new yc,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(e){this._disabled=xP(e),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(e){this._debounce=AP(e),this._subscribe()}ngAfterContentInit(){this._currentSubscription||this.disabled||this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const e=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?e.pipe(vP(this.debounce)):e).subscribe(this.event)})}_unsubscribe(){var e;null===(e=this._currentSubscription)||void 0===e||e.unsubscribe()}}return e.\u0275fac=function(t){return new(t||e)(zr(BP),zr(rl),zr(ad))},e.\u0275dir=Ke({type:e,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),e})(),VP=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=fe({providers:[FP]}),e})();function NP(e,t){return(e.getAttribute(t)||"").match(/\S+/g)||[]}let HP=0;const jP=new Map;let UP=null,WP=(()=>{class e{constructor(e){this._document=e}describe(e,t,n){if(!this._canBeDescribed(e,t))return;const i=GP(t,n);"string"!=typeof t?($P(t),jP.set(i,{messageElement:t,referenceCount:0})):jP.has(i)||this._createMessageElement(t,n),this._isElementDescribedByMessage(e,i)||this._addMessageReference(e,i)}removeDescription(e,t,n){if(!t||!this._isElementNode(e))return;const i=GP(t,n);if(this._isElementDescribedByMessage(e,i)&&this._removeMessageReference(e,i),"string"==typeof t){const e=jP.get(i);e&&0===e.referenceCount&&this._deleteMessageElement(i)}UP&&0===UP.childNodes.length&&this._deleteMessagesContainer()}ngOnDestroy(){const e=this._document.querySelectorAll("[cdk-describedby-host]");for(let t=0;t<e.length;t++)this._removeCdkDescribedByReferenceIds(e[t]),e[t].removeAttribute("cdk-describedby-host");UP&&this._deleteMessagesContainer(),jP.clear()}_createMessageElement(e,t){const n=this._document.createElement("div");$P(n),n.textContent=e,t&&n.setAttribute("role",t),this._createMessagesContainer(),UP.appendChild(n),jP.set(GP(e,t),{messageElement:n,referenceCount:0})}_deleteMessageElement(e){const t=jP.get(e),n=t&&t.messageElement;UP&&n&&UP.removeChild(n),jP.delete(e)}_createMessagesContainer(){if(!UP){const e=this._document.getElementById("cdk-describedby-message-container");e&&e.parentNode&&e.parentNode.removeChild(e),UP=this._document.createElement("div"),UP.id="cdk-describedby-message-container",UP.style.visibility="hidden",UP.classList.add("cdk-visually-hidden"),this._document.body.appendChild(UP)}}_deleteMessagesContainer(){UP&&UP.parentNode&&(UP.parentNode.removeChild(UP),UP=null)}_removeCdkDescribedByReferenceIds(e){const t=NP(e,"aria-describedby").filter(e=>0!=e.indexOf("cdk-describedby-message"));e.setAttribute("aria-describedby",t.join(" "))}_addMessageReference(e,t){const n=jP.get(t);!function(e,t,n){const i=NP(e,t);i.some(e=>e.trim()==n.trim())||(i.push(n.trim()),e.setAttribute(t,i.join(" ")))}(e,"aria-describedby",n.messageElement.id),e.setAttribute("cdk-describedby-host",""),n.referenceCount++}_removeMessageReference(e,t){const n=jP.get(t);n.referenceCount--,function(e,t,n){const i=NP(e,t).filter(e=>e!=n.trim());i.length?e.setAttribute(t,i.join(" ")):e.removeAttribute(t)}(e,"aria-describedby",n.messageElement.id),e.removeAttribute("cdk-describedby-host")}_isElementDescribedByMessage(e,t){const n=NP(e,"aria-describedby"),i=jP.get(t),s=i&&i.messageElement.id;return!!s&&-1!=n.indexOf(s)}_canBeDescribed(e,t){if(!this._isElementNode(e))return!1;if(t&&"object"==typeof t)return!0;const n=null==t?"":(""+t).trim(),i=e.getAttribute("aria-label");return!(!n||i&&i.trim()===n)}_isElementNode(e){return e.nodeType===this._document.ELEMENT_NODE}}return e.\u0275fac=function(t){return new(t||e)(gi(Hd))},e.\u0275prov=pe({factory:function(){return new e(gi(Hd))},token:e,providedIn:"root"}),e})();function GP(e,t){return"string"==typeof e?`${t||""}/${e}`:e}function $P(e){e.id||(e.id="cdk-describedby-message-"+HP++)}class qP{constructor(e){this._items=e,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new A,this._typeaheadSubscription=u.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=e=>e.disabled,this._pressedLetters=[],this.tabOut=new A,this.change=new A,e instanceof _c&&e.changes.subscribe(e=>{if(this._activeItem){const t=e.toArray().indexOf(this._activeItem);t>-1&&t!==this._activeItemIndex&&(this._activeItemIndex=t)}})}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(Ov(e=>this._pressedLetters.push(e)),vP(e),db(()=>this._pressedLetters.length>0),k(()=>this._pressedLetters.join(""))).subscribe(e=>{const t=this._getItemsArray();for(let n=1;n<t.length+1;n++){const i=(this._activeItemIndex+n)%t.length,s=t[i];if(!this._skipPredicateFn(s)&&0===s.getLabel().toUpperCase().trim().indexOf(e)){this.setActiveItem(i);break}}this._pressedLetters=[]}),this}withHomeAndEnd(e=!0){return this._homeAndEnd=e,this}setActiveItem(e){const t=this._activeItem;this.updateActiveItem(e),this._activeItem!==t&&this.change.next(this._activeItemIndex)}onKeydown(e){const t=e.keyCode,n=["altKey","ctrlKey","metaKey","shiftKey"].every(t=>!e[t]||this._allowedModifierKeys.indexOf(t)>-1);switch(t){case 9:return void this.tabOut.next();case 40:if(this._vertical&&n){this.setNextItemActive();break}return;case 38:if(this._vertical&&n){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&n){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&n){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case 36:if(this._homeAndEnd&&n){this.setFirstItemActive();break}return;case 35:if(this._homeAndEnd&&n){this.setLastItemActive();break}return;default:return void((n||mP(e,"shiftKey"))&&(e.key&&1===e.key.length?this._letterKeyStream.next(e.key.toLocaleUpperCase()):(t>=65&&t<=90||t>=48&&t<=57)&&this._letterKeyStream.next(String.fromCharCode(t))))}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){const t=this._getItemsArray(),n="number"==typeof e?e:t.indexOf(e),i=t[n];this._activeItem=null==i?null:i,this._activeItemIndex=n}_setActiveItemByDelta(e){this._wrap?this._setActiveInWrapMode(e):this._setActiveInDefaultMode(e)}_setActiveInWrapMode(e){const t=this._getItemsArray();for(let n=1;n<=t.length;n++){const i=(this._activeItemIndex+e*n+t.length)%t.length;if(!this._skipPredicateFn(t[i]))return void this.setActiveItem(i)}}_setActiveInDefaultMode(e){this._setActiveItemByIndex(this._activeItemIndex+e,e)}_setActiveItemByIndex(e,t){const n=this._getItemsArray();if(n[e]){for(;this._skipPredicateFn(n[e]);)if(!n[e+=t])return;this.setActiveItem(e)}}_getItemsArray(){return this._items instanceof _c?this._items.toArray():this._items}}class YP extends qP{setActiveItem(e){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(e),this.activeItem&&this.activeItem.setActiveStyles()}}class ZP extends qP{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)}}let QP=(()=>{class e{constructor(e){this._platform=e}isDisabled(e){return e.hasAttribute("disabled")}isVisible(e){return function(e){return!!(e.offsetWidth||e.offsetHeight||"function"==typeof e.getClientRects&&e.getClientRects().length)}(e)&&"visible"===getComputedStyle(e).visibility}isTabbable(e){if(!this._platform.isBrowser)return!1;const t=function(e){try{return e.frameElement}catch(FH){return null}}((n=e).ownerDocument&&n.ownerDocument.defaultView||window);var n;if(t){if(-1===KP(t))return!1;if(!this.isVisible(t))return!1}let i=e.nodeName.toLowerCase(),s=KP(e);return e.hasAttribute("contenteditable")?-1!==s:"iframe"!==i&&"object"!==i&&!(this._platform.WEBKIT&&this._platform.IOS&&!function(e){let t=e.nodeName.toLowerCase(),n="input"===t&&e.type;return"text"===n||"password"===n||"select"===t||"textarea"===t}(e))&&("audio"===i?!!e.hasAttribute("controls")&&-1!==s:"video"===i?-1!==s&&(null!==s||this._platform.FIREFOX||e.hasAttribute("controls")):e.tabIndex>=0)}isFocusable(e,t){return function(e){return!function(e){return function(e){return"input"==e.nodeName.toLowerCase()}(e)&&"hidden"==e.type}(e)&&(function(e){let t=e.nodeName.toLowerCase();return"input"===t||"select"===t||"button"===t||"textarea"===t}(e)||function(e){return function(e){return"a"==e.nodeName.toLowerCase()}(e)&&e.hasAttribute("href")}(e)||e.hasAttribute("contenteditable")||XP(e))}(e)&&!this.isDisabled(e)&&((null==t?void 0:t.ignoreVisibility)||this.isVisible(e))}}return e.\u0275fac=function(t){return new(t||e)(gi(MP))},e.\u0275prov=pe({factory:function(){return new e(gi(MP))},token:e,providedIn:"root"}),e})();function XP(e){if(!e.hasAttribute("tabindex")||void 0===e.tabIndex)return!1;let t=e.getAttribute("tabindex");return"-32768"!=t&&!(!t||isNaN(parseInt(t,10)))}function KP(e){if(!XP(e))return null;const t=parseInt(e.getAttribute("tabindex")||"",10);return isNaN(t)?-1:t}class JP{constructor(e,t,n,i,s=!1){this._element=e,this._checker=t,this._ngZone=n,this._document=i,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,s||this.attachAnchors()}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))}destroy(){const e=this._startAnchor,t=this._endAnchor;e&&(e.removeEventListener("focus",this.startAnchorListener),e.parentNode&&e.parentNode.removeChild(e)),t&&(t.removeEventListener("focus",this.endAnchorListener),t.parentNode&&t.parentNode.removeChild(t)),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return!!this._hasAttached||(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(){return new Promise(e=>{this._executeOnStable(()=>e(this.focusInitialElement()))})}focusFirstTabbableElementWhenReady(){return new Promise(e=>{this._executeOnStable(()=>e(this.focusFirstTabbableElement()))})}focusLastTabbableElementWhenReady(){return new Promise(e=>{this._executeOnStable(()=>e(this.focusLastTabbableElement()))})}_getRegionBoundary(e){let t=this._element.querySelectorAll(`[cdk-focus-region-${e}], [cdkFocusRegion${e}], [cdk-focus-${e}]`);for(let n=0;n<t.length;n++)t[n].hasAttribute("cdk-focus-"+e)?console.warn(`Found use of deprecated attribute 'cdk-focus-${e}', use 'cdkFocusRegion${e}' instead. The deprecated attribute will be removed in 8.0.0.`,t[n]):t[n].hasAttribute("cdk-focus-region-"+e)&&console.warn(`Found use of deprecated attribute 'cdk-focus-region-${e}', use 'cdkFocusRegion${e}' instead. The deprecated attribute will be removed in 8.0.0.`,t[n]);return"start"==e?t.length?t[0]:this._getFirstTabbableElement(this._element):t.length?t[t.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(){const e=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(e){if(e.hasAttribute("cdk-focus-initial")&&console.warn("Found use of deprecated attribute 'cdk-focus-initial', use 'cdkFocusInitial' instead. The deprecated attribute will be removed in 8.0.0",e),!this._checker.isFocusable(e)){const t=this._getFirstTabbableElement(e);return null==t||t.focus(),!!t}return e.focus(),!0}return this.focusFirstTabbableElement()}focusFirstTabbableElement(){const e=this._getRegionBoundary("start");return e&&e.focus(),!!e}focusLastTabbableElement(){const e=this._getRegionBoundary("end");return e&&e.focus(),!!e}hasAttached(){return this._hasAttached}_getFirstTabbableElement(e){if(this._checker.isFocusable(e)&&this._checker.isTabbable(e))return e;let t=e.children||e.childNodes;for(let n=0;n<t.length;n++){let e=t[n].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(t[n]):null;if(e)return e}return null}_getLastTabbableElement(e){if(this._checker.isFocusable(e)&&this._checker.isTabbable(e))return e;let t=e.children||e.childNodes;for(let n=t.length-1;n>=0;n--){let e=t[n].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(t[n]):null;if(e)return e}return null}_createAnchor(){const 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,t){e?t.setAttribute("tabindex","0"):t.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(lv(1)).subscribe(e)}}let eE=(()=>{class e{constructor(e,t,n){this._checker=e,this._ngZone=t,this._document=n}create(e,t=!1){return new JP(e,this._checker,this._ngZone,this._document,t)}}return e.\u0275fac=function(t){return new(t||e)(gi(QP),gi(ad),gi(Hd))},e.\u0275prov=pe({factory:function(){return new e(gi(QP),gi(ad),gi(Hd))},token:e,providedIn:"root"}),e})();"undefined"!=typeof Element&&Element;const tE=new Xn("liveAnnouncerElement",{providedIn:"root",factory:function(){return null}}),nE=new Xn("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let iE=(()=>{class e{constructor(e,t,n,i){this._ngZone=t,this._defaultOptions=i,this._document=n,this._liveElement=e||this._createLiveElement()}announce(e,...t){const n=this._defaultOptions;let i,s;return 1===t.length&&"number"==typeof t[0]?s=t[0]:[i,s]=t,this.clear(),clearTimeout(this._previousTimeout),i||(i=n&&n.politeness?n.politeness:"polite"),null==s&&n&&(s=n.duration),this._liveElement.setAttribute("aria-live",i),this._ngZone.runOutsideAngular(()=>new Promise(t=>{clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=e,t(),"number"==typeof s&&(this._previousTimeout=setTimeout(()=>this.clear(),s))},100)}))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement&&this._liveElement.parentNode&&(this._liveElement.parentNode.removeChild(this._liveElement),this._liveElement=null)}_createLiveElement(){const e=this._document.getElementsByClassName("cdk-live-announcer-element"),t=this._document.createElement("div");for(let n=0;n<e.length;n++)e[n].parentNode.removeChild(e[n]);return t.classList.add("cdk-live-announcer-element"),t.classList.add("cdk-visually-hidden"),t.setAttribute("aria-atomic","true"),t.setAttribute("aria-live","polite"),this._document.body.appendChild(t),t}}return e.\u0275fac=function(t){return new(t||e)(gi(tE,8),gi(ad),gi(Hd),gi(nE,8))},e.\u0275prov=pe({factory:function(){return new e(gi(tE,8),gi(ad),gi(Hd),gi(nE,8))},token:e,providedIn:"root"}),e})();function sE(e){return 0===e.buttons}function oE(e){const t=e.touches&&e.touches[0]||e.changedTouches&&e.changedTouches[0];return!(!t||-1!==t.identifier||null!=t.radiusX&&1!==t.radiusX||null!=t.radiusY&&1!==t.radiusY)}const rE=new Xn("cdk-focus-monitor-default-options"),aE=IP({passive:!0,capture:!0});let lE=(()=>{class e{constructor(e,t,n,i){this._ngZone=e,this._platform=t,this._origin=null,this._windowFocused=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._documentKeydownListener=()=>{this._lastTouchTarget=null,this._setOriginForCurrentEventQueue("keyboard")},this._documentMousedownListener=e=>{if(!this._lastTouchTarget){const t=sE(e)?"keyboard":"mouse";this._setOriginForCurrentEventQueue(t)}},this._documentTouchstartListener=e=>{oE(e)?this._lastTouchTarget||this._setOriginForCurrentEventQueue("keyboard"):(null!=this._touchTimeoutId&&clearTimeout(this._touchTimeoutId),this._lastTouchTarget=cE(e),this._touchTimeoutId=setTimeout(()=>this._lastTouchTarget=null,650))},this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=setTimeout(()=>this._windowFocused=!1)},this._rootNodeFocusAndBlurListener=e=>{const t=cE(e),n="focus"===e.type?this._onFocus:this._onBlur;for(let i=t;i;i=i.parentElement)n.call(this,e,i)},this._document=n,this._detectionMode=(null==i?void 0:i.detectionMode)||0}monitor(e,t=!1){const n=kP(e);if(!this._platform.isBrowser||1!==n.nodeType)return lb(null);const i=LP(n)||this._getDocument(),s=this._elementInfo.get(n);if(s)return t&&(s.checkChildren=!0),s.subject;const o={checkChildren:t,subject:new A,rootNode:i};return this._elementInfo.set(n,o),this._registerGlobalListeners(o),o.subject}stopMonitoring(e){const t=kP(e),n=this._elementInfo.get(t);n&&(n.subject.complete(),this._setClasses(t),this._elementInfo.delete(t),this._removeGlobalListeners(n))}focusVia(e,t,n){const i=kP(e);i===this._getDocument().activeElement?this._getClosestElementsInfo(i).forEach(([e,n])=>this._originChanged(e,t,n)):(this._setOriginForCurrentEventQueue(t),"function"==typeof i.focus&&i.focus(n))}ngOnDestroy(){this._elementInfo.forEach((e,t)=>this.stopMonitoring(t))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_toggleClass(e,t,n){n?e.classList.add(t):e.classList.remove(t)}_getFocusOrigin(e){return this._origin?this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:this._wasCausedByTouch(e)?"touch":"program"}_setClasses(e,t){this._toggleClass(e,"cdk-focused",!!t),this._toggleClass(e,"cdk-touch-focused","touch"===t),this._toggleClass(e,"cdk-keyboard-focused","keyboard"===t),this._toggleClass(e,"cdk-mouse-focused","mouse"===t),this._toggleClass(e,"cdk-program-focused","program"===t)}_setOriginForCurrentEventQueue(e){this._ngZone.runOutsideAngular(()=>{this._origin=e,0===this._detectionMode&&(this._originTimeoutId=setTimeout(()=>this._origin=null,1))})}_wasCausedByTouch(e){const t=cE(e);return this._lastTouchTarget instanceof Node&&t instanceof Node&&(t===this._lastTouchTarget||t.contains(this._lastTouchTarget))}_onFocus(e,t){const n=this._elementInfo.get(t);n&&(n.checkChildren||t===cE(e))&&this._originChanged(t,this._getFocusOrigin(e),n)}_onBlur(e,t){const n=this._elementInfo.get(t);!n||n.checkChildren&&e.relatedTarget instanceof Node&&t.contains(e.relatedTarget)||(this._setClasses(t),this._emitOrigin(n.subject,null))}_emitOrigin(e,t){this._ngZone.run(()=>e.next(t))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;const t=e.rootNode,n=this._rootNodeFocusListenerCount.get(t)||0;n||this._ngZone.runOutsideAngular(()=>{t.addEventListener("focus",this._rootNodeFocusAndBlurListener,aE),t.addEventListener("blur",this._rootNodeFocusAndBlurListener,aE)}),this._rootNodeFocusListenerCount.set(t,n+1),1==++this._monitoredElementCount&&this._ngZone.runOutsideAngular(()=>{const e=this._getDocument(),t=this._getWindow();e.addEventListener("keydown",this._documentKeydownListener,aE),e.addEventListener("mousedown",this._documentMousedownListener,aE),e.addEventListener("touchstart",this._documentTouchstartListener,aE),t.addEventListener("focus",this._windowFocusListener)})}_removeGlobalListeners(e){const t=e.rootNode;if(this._rootNodeFocusListenerCount.has(t)){const e=this._rootNodeFocusListenerCount.get(t);e>1?this._rootNodeFocusListenerCount.set(t,e-1):(t.removeEventListener("focus",this._rootNodeFocusAndBlurListener,aE),t.removeEventListener("blur",this._rootNodeFocusAndBlurListener,aE),this._rootNodeFocusListenerCount.delete(t))}if(!--this._monitoredElementCount){const e=this._getDocument(),t=this._getWindow();e.removeEventListener("keydown",this._documentKeydownListener,aE),e.removeEventListener("mousedown",this._documentMousedownListener,aE),e.removeEventListener("touchstart",this._documentTouchstartListener,aE),t.removeEventListener("focus",this._windowFocusListener),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._touchTimeoutId),clearTimeout(this._originTimeoutId)}}_originChanged(e,t,n){this._setClasses(e,t),this._emitOrigin(n.subject,t),this._lastFocusOrigin=t}_getClosestElementsInfo(e){const t=[];return this._elementInfo.forEach((n,i)=>{(i===e||n.checkChildren&&i.contains(e))&&t.push([i,n])}),t}}return e.\u0275fac=function(t){return new(t||e)(gi(ad),gi(MP),gi(Hd,8),gi(rE,8))},e.\u0275prov=pe({factory:function(){return new e(gi(ad),gi(MP),gi(Hd,8),gi(rE,8))},token:e,providedIn:"root"}),e})();function cE(e){return e.composedPath?e.composedPath()[0]:e.target}let dE=(()=>{class e{constructor(e,t){this._platform=e,this._document=t}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);const t=this._document.defaultView||window,n=t&&t.getComputedStyle?t.getComputedStyle(e):null,i=(n&&n.backgroundColor||"").replace(/ /g,"");switch(this._document.body.removeChild(e),i){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}_applyBodyHighContrastModeCssClasses(){if(this._platform.isBrowser&&this._document.body){const e=this._document.body.classList;e.remove("cdk-high-contrast-active"),e.remove("cdk-high-contrast-black-on-white"),e.remove("cdk-high-contrast-white-on-black");const t=this.getHighContrastMode();1===t?(e.add("cdk-high-contrast-active"),e.add("cdk-high-contrast-black-on-white")):2===t&&(e.add("cdk-high-contrast-active"),e.add("cdk-high-contrast-white-on-black"))}}}return e.\u0275fac=function(t){return new(t||e)(gi(MP),gi(Hd))},e.\u0275prov=pe({factory:function(){return new e(gi(MP),gi(Hd))},token:e,providedIn:"root"}),e})(),uE=(()=>{class e{constructor(e){e._applyBodyHighContrastModeCssClasses()}}return e.\u0275fac=function(t){return new(t||e)(gi(dE))},e.\u0275mod=Qe({type:e}),e.\u0275inj=fe({imports:[[TP,VP]]}),e})();const hE=new Xn("cdk-dir-doc",{providedIn:"root",factory:function(){return fi(Hd)}});let pE=(()=>{class e{constructor(e){if(this.value="ltr",this.change=new yc,e){const t=e.documentElement?e.documentElement.dir:null,n=(e.body?e.body.dir:null)||t;this.value="ltr"===n||"rtl"===n?n:"ltr"}}ngOnDestroy(){this.change.complete()}}return e.\u0275fac=function(t){return new(t||e)(gi(hE,8))},e.\u0275prov=pe({factory:function(){return new e(gi(hE,8))},token:e,providedIn:"root"}),e})(),gE=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=fe({}),e})();const fE=new hl("11.2.5");function mE(e,t){if(1&e&&Ur(0,"mat-pseudo-checkbox",4),2&e){const e=na();Vr("state",e.selected?"checked":"unchecked")("disabled",e.disabled)}}function bE(e,t){if(1&e&&(Hr(0,"span",5),Da(1),jr()),2&e){const e=na();no(1),Ma("(",e.group.label,")")}}const vE=["*"];let yE=(()=>{class e{}return 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)",e})(),wE=(()=>{class e{}return e.COMPLEX="375ms",e.ENTERING="225ms",e.EXITING="195ms",e})();const _E=new hl("11.2.5"),xE=new Xn("mat-sanity-checks",{providedIn:"root",factory:function(){return!0}});let AE,CE=(()=>{class e{constructor(e,t,n){this._hasDoneGlobalChecks=!1,this._document=n,e._applyBodyHighContrastModeCssClasses(),this._sanityChecks=t,this._hasDoneGlobalChecks||(this._checkDoctypeIsDefined(),this._checkThemeIsPresent(),this._checkCdkVersionMatch(),this._hasDoneGlobalChecks=!0)}_getWindow(){const e=this._document.defaultView||window;return"object"==typeof e&&e?e:null}_checksAreEnabled(){return _d()&&!this._isTestEnv()}_isTestEnv(){const e=this._getWindow();return e&&(e.__karma__||e.jasmine)}_checkDoctypeIsDefined(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.doctype)&&!this._document.doctype&&console.warn("Current document does not have a doctype. This may cause some Angular Material components not to behave as expected.")}_checkThemeIsPresent(){if(!this._checksAreEnabled()||!1===this._sanityChecks||!this._sanityChecks.theme||!this._document.body||"function"!=typeof getComputedStyle)return;const e=this._document.createElement("div");e.classList.add("mat-theme-loaded-marker"),this._document.body.appendChild(e);const t=getComputedStyle(e);t&&"none"!==t.display&&console.warn("Could not find Angular Material core theme. Most Material components may not work as expected. For more info refer to the theming guide: https://material.angular.io/guide/theming"),this._document.body.removeChild(e)}_checkCdkVersionMatch(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.version)&&_E.full!==fE.full&&console.warn("The Angular Material version ("+_E.full+") does not match the Angular CDK version ("+fE.full+").\nPlease ensure the versions of these two packages exactly match.")}}return e.\u0275fac=function(t){return new(t||e)(gi(dE),gi(xE,8),gi(Hd))},e.\u0275mod=Qe({type:e}),e.\u0275inj=fe({imports:[[gE],gE]}),e})();function SE(e){return class extends e{constructor(...e){super(...e),this._disabled=!1}get disabled(){return this._disabled}set disabled(e){this._disabled=xP(e)}}}function kE(e,t){return class extends e{constructor(...e){super(...e),this.defaultColor=t,this.color=t}get color(){return this._color}set color(e){const t=e||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)}}}function PE(e){return class extends e{constructor(...e){super(...e),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(e){this._disableRipple=xP(e)}}}function EE(e,t=0){return class extends e{constructor(...e){super(...e),this._tabIndex=t,this.defaultTabIndex=t}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(e){this._tabIndex=null!=e?AP(e):this.defaultTabIndex}}}function DE(e){return class extends e{constructor(...e){super(...e),this.errorState=!1,this.stateChanges=new A}updateErrorState(){const e=this.errorState,t=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);t!==e&&(this.errorState=t,this.stateChanges.next())}}}function OE(e){return class extends e{constructor(...e){super(...e),this._isInitialized=!1,this._pendingSubscribers=[],this.initialized=new v(e=>{this._isInitialized?this._notifySubscriber(e):this._pendingSubscribers.push(e)})}_markInitialized(){this._isInitialized=!0,this._pendingSubscribers.forEach(this._notifySubscriber),this._pendingSubscribers=null}_notifySubscriber(e){e.next(),e.complete()}}}try{AE="undefined"!=typeof Intl}catch(FH){AE=!1}let ME=(()=>{class e{isErrorState(e,t){return!!(e&&e.invalid&&(e.touched||t&&t.submitted))}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=pe({factory:function(){return new e},token:e,providedIn:"root"}),e})(),TE=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=fe({imports:[[CE],CE]}),e})();class IE{constructor(e,t,n){this._renderer=e,this.element=t,this.config=n,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const RE={enterDuration:450,exitDuration:400},LE=IP({passive:!0}),FE=["mousedown","touchstart"],BE=["mouseup","mouseleave","touchend","touchcancel"];class zE{constructor(e,t,n,i){this._target=e,this._ngZone=t,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,i.isBrowser&&(this._containerElement=kP(n))}fadeInRipple(e,t,n={}){const i=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),s=Object.assign(Object.assign({},RE),n.animation);n.centered&&(e=i.left+i.width/2,t=i.top+i.height/2);const o=n.radius||function(e,t,n){const i=Math.max(Math.abs(e-n.left),Math.abs(e-n.right)),s=Math.max(Math.abs(t-n.top),Math.abs(t-n.bottom));return Math.sqrt(i*i+s*s)}(e,t,i),r=e-i.left,a=t-i.top,l=s.enterDuration,c=document.createElement("div");c.classList.add("mat-ripple-element"),c.style.left=r-o+"px",c.style.top=a-o+"px",c.style.height=2*o+"px",c.style.width=2*o+"px",null!=n.color&&(c.style.backgroundColor=n.color),c.style.transitionDuration=l+"ms",this._containerElement.appendChild(c),window.getComputedStyle(c).getPropertyValue("opacity"),c.style.transform="scale(1)";const d=new IE(this,c,n);return d.state=0,this._activeRipples.add(d),n.persistent||(this._mostRecentTransientRipple=d),this._runTimeoutOutsideZone(()=>{const e=d===this._mostRecentTransientRipple;d.state=1,n.persistent||e&&this._isPointerDown||d.fadeOut()},l),d}fadeOutRipple(e){const t=this._activeRipples.delete(e);if(e===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),!t)return;const n=e.element,i=Object.assign(Object.assign({},RE),e.config.animation);n.style.transitionDuration=i.exitDuration+"ms",n.style.opacity="0",e.state=2,this._runTimeoutOutsideZone(()=>{e.state=3,n.parentNode.removeChild(n)},i.exitDuration)}fadeOutAll(){this._activeRipples.forEach(e=>e.fadeOut())}setupTriggerEvents(e){const t=kP(e);t&&t!==this._triggerElement&&(this._removeTriggerEvents(),this._triggerElement=t,this._registerEvents(FE))}handleEvent(e){"mousedown"===e.type?this._onMousedown(e):"touchstart"===e.type?this._onTouchStart(e):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(BE),this._pointerUpEventsRegistered=!0)}_onMousedown(e){const t=sE(e),n=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+800;this._target.rippleDisabled||t||n||(this._isPointerDown=!0,this.fadeInRipple(e.clientX,e.clientY,this._target.rippleConfig))}_onTouchStart(e){if(!this._target.rippleDisabled&&!oE(e)){this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0;const t=e.changedTouches;for(let e=0;e<t.length;e++)this.fadeInRipple(t[e].clientX,t[e].clientY,this._target.rippleConfig)}}_onPointerUp(){this._isPointerDown&&(this._isPointerDown=!1,this._activeRipples.forEach(e=>{!e.config.persistent&&(1===e.state||e.config.terminateOnPointerUp&&0===e.state)&&e.fadeOut()}))}_runTimeoutOutsideZone(e,t=0){this._ngZone.runOutsideAngular(()=>setTimeout(e,t))}_registerEvents(e){this._ngZone.runOutsideAngular(()=>{e.forEach(e=>{this._triggerElement.addEventListener(e,this,LE)})})}_removeTriggerEvents(){this._triggerElement&&(FE.forEach(e=>{this._triggerElement.removeEventListener(e,this,LE)}),this._pointerUpEventsRegistered&&BE.forEach(e=>{this._triggerElement.removeEventListener(e,this,LE)}))}}const VE=new Xn("mat-ripple-global-options");let NE=(()=>{class e{constructor(e,t,n,i,s){this._elementRef=e,this._animationMode=s,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=i||{},this._rippleRenderer=new zE(this,t,e,n)}get disabled(){return this._disabled}set disabled(e){this._disabled=e,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(e){this._trigger=e,this._setupTriggerEventsIfEnabled()}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:Object.assign(Object.assign(Object.assign({},this._globalOptions.animation),"NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(e,t=0,n){return"number"==typeof e?this._rippleRenderer.fadeInRipple(e,t,Object.assign(Object.assign({},this.rippleConfig),n)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),e))}}return e.\u0275fac=function(t){return new(t||e)(zr(rl),zr(ad),zr(MP),zr(VE,8),zr(_f,8))},e.\u0275dir=Ke({type:e,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(e,t){2&e&&ma("mat-ripple-unbounded",t.unbounded)},inputs:{radius:["matRippleRadius","radius"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"],color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],animation:["matRippleAnimation","animation"]},exportAs:["matRipple"]}),e})(),HE=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=fe({imports:[[CE,TP],CE]}),e})(),jE=(()=>{class e{constructor(e){this._animationMode=e,this.state="unchecked",this.disabled=!1}}return e.\u0275fac=function(t){return new(t||e)(zr(_f,8))},e.\u0275cmp=$e({type:e,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(e,t){2&e&&ma("mat-pseudo-checkbox-indeterminate","indeterminate"===t.state)("mat-pseudo-checkbox-checked","checked"===t.state)("mat-pseudo-checkbox-disabled",t.disabled)("_mat-animation-noopable","NoopAnimations"===t._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(e,t){},styles:['.mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:transparent}._mat-animation-noopable.mat-pseudo-checkbox{transition:none;animation:none}._mat-animation-noopable.mat-pseudo-checkbox::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}\n'],encapsulation:2,changeDetection:0}),e})(),UE=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=fe({imports:[[CE]]}),e})();const WE=new Xn("MAT_OPTION_PARENT_COMPONENT");class GE{}const $E=SE(GE);let qE=0,YE=(()=>{class e extends $E{constructor(e){var t;super(),this._labelId="mat-optgroup-label-"+qE++,this._inert=null!==(t=null==e?void 0:e.inertGroups)&&void 0!==t&&t}}return e.\u0275fac=function(t){return new(t||e)(zr(WE,8))},e.\u0275dir=Ke({type:e,inputs:{label:"label"},features:[vr]}),e})();const ZE=new Xn("MatOptgroup");let QE=0;class XE{constructor(e,t=!1){this.source=e,this.isUserInput=t}}let KE=(()=>{class e{constructor(e,t,n,i){this._element=e,this._changeDetectorRef=t,this._parent=n,this.group=i,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+QE++,this.onSelectionChange=new yc,this._stateChanges=new A}get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(e){this._disabled=xP(e)}get disableRipple(){return this._parent&&this._parent.disableRipple}get active(){return this._active}get viewValue(){return(this._getHostElement().textContent||"").trim()}select(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}deselect(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}focus(e,t){const n=this._getHostElement();"function"==typeof n.focus&&n.focus(t)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(e){13!==e.keyCode&&32!==e.keyCode||mP(e)||(this._selectViaInteraction(),e.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getAriaSelected(){return this.selected||!this.multiple&&null}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){const e=this.viewValue;e!==this._mostRecentViewValue&&(this._mostRecentViewValue=e,this._stateChanges.next())}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(e=!1){this.onSelectionChange.emit(new XE(this,e))}}return e.\u0275fac=function(t){return new(t||e)(zr(rl),zr(Tl),zr(void 0),zr(YE))},e.\u0275dir=Ke({type:e,inputs:{id:"id",disabled:"disabled",value:"value"},outputs:{onSelectionChange:"onSelectionChange"}}),e})(),JE=(()=>{class e extends KE{constructor(e,t,n,i){super(e,t,n,i)}}return e.\u0275fac=function(t){return new(t||e)(zr(rl),zr(Tl),zr(WE,8),zr(ZE,8))},e.\u0275cmp=$e({type:e,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(e,t){1&e&&Xr("click",function(){return t._selectViaInteraction()})("keydown",function(e){return t._handleKeydown(e)}),2&e&&(Fa("id",t.id),Ir("tabindex",t._getTabIndex())("aria-selected",t._getAriaSelected())("aria-disabled",t.disabled.toString()),ma("mat-selected",t.selected)("mat-option-multiple",t.multiple)("mat-active",t.active)("mat-option-disabled",t.disabled))},exportAs:["matOption"],features:[vr],ngContentSelectors:vE,decls:5,vars:4,consts:[["class","mat-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mat-option-text"],["class","cdk-visually-hidden",4,"ngIf"],["mat-ripple","",1,"mat-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-option-pseudo-checkbox",3,"state","disabled"],[1,"cdk-visually-hidden"]],template:function(e,t){1&e&&(sa(),Fr(0,mE,1,2,"mat-pseudo-checkbox",0),Hr(1,"span",1),oa(2),jr(),Fr(3,bE,2,1,"span",2),Ur(4,"div",3)),2&e&&(Vr("ngIf",t.multiple),no(3),Vr("ngIf",t.group&&t.group._inert),no(1),Vr("matRippleTrigger",t._getHostElement())("matRippleDisabled",t.disabled||t.disableRipple))},directives:[Wu,NE,jE],styles:[".mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:transparent}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.cdk-high-contrast-active .mat-option{margin:0 1px}.cdk-high-contrast-active .mat-option.mat-active{border:solid 1px currentColor;margin:0}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}\n"],encapsulation:2,changeDetection:0}),e})();function eD(e,t,n){if(n.length){let i=t.toArray(),s=n.toArray(),o=0;for(let t=0;t<e+1;t++)i[t].group&&i[t].group===s[o]&&o++;return o}return 0}let tD=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=fe({imports:[[HE,uh,CE,UE]]}),e})();class nD extends uC{constructor(e,t){super(e,t),this.scheduler=e,this.work=t}requestAsyncId(e,t,n=0){return null!==n&&n>0?super.requestAsyncId(e,t,n):(e.actions.push(this),e.scheduled||(e.scheduled=requestAnimationFrame(()=>e.flush(null))))}recycleAsyncId(e,t,n=0){if(null!==n&&n>0||null===n&&this.delay>0)return super.recycleAsyncId(e,t,n);0===e.actions.length&&(cancelAnimationFrame(t),e.scheduled=void 0)}}class iD extends gC{flush(e){this.active=!0,this.scheduled=void 0;const{actions:t}=this;let n,i=-1,s=t.length;e=e||t.shift();do{if(n=e.execute(e.state,e.delay))break}while(++i<s&&(e=t.shift()));if(this.active=!1,n){for(;++i<s&&(e=t.shift());)e.unsubscribe();throw n}}}const sD=new iD(nD);let oD=1;const rD=(()=>Promise.resolve())(),aD={};function lD(e){return e in aD&&(delete aD[e],!0)}const cD={setImmediate(e){const t=oD++;return aD[t]=!0,rD.then(()=>lD(t)&&e()),t},clearImmediate(e){lD(e)}};class dD extends uC{constructor(e,t){super(e,t),this.scheduler=e,this.work=t}requestAsyncId(e,t,n=0){return null!==n&&n>0?super.requestAsyncId(e,t,n):(e.actions.push(this),e.scheduled||(e.scheduled=cD.setImmediate(e.flush.bind(e,null))))}recycleAsyncId(e,t,n=0){if(null!==n&&n>0||null===n&&this.delay>0)return super.recycleAsyncId(e,t,n);0===e.actions.length&&(cD.clearImmediate(t),e.scheduled=void 0)}}class uD extends gC{flush(e){this.active=!0,this.scheduled=void 0;const{actions:t}=this;let n,i=-1,s=t.length;e=e||t.shift();do{if(n=e.execute(e.state,e.delay))break}while(++i<s&&(e=t.shift()));if(this.active=!1,n){for(;++i<s&&(e=t.shift());)e.unsubscribe();throw n}}}const hD=new uD(dD);class pD{constructor(e){this.durationSelector=e}call(e,t){return t.subscribe(new gD(e,this.durationSelector))}}class gD extends z{constructor(e,t){super(e),this.durationSelector=t,this.hasValue=!1}_next(e){if(this.value=e,this.hasValue=!0,!this.throttled){let n;try{const{durationSelector:t}=this;n=t(e)}catch(t){return this.destination.error(t)}const i=V(n,new B(this));!i||i.closed?this.clearThrottle():this.add(this.throttled=i)}}clearThrottle(){const{value:e,hasValue:t,throttled:n}=this;n&&(this.remove(n),this.throttled=void 0,n.unsubscribe()),t&&(this.value=void 0,this.hasValue=!1,this.destination.next(e))}notifyNext(){this.clearThrottle()}notifyComplete(){this.clearThrottle()}}function fD(e){return!l(e)&&e-parseFloat(e)+1>=0}function mD(e){const{index:t,period:n,subscriber:i}=e;if(i.next(t),!i.closed){if(-1===n)return i.complete();e.index=t+1,this.schedule(e,n)}}function bD(e,t=bP){return n=()=>function(e=0,t,n){let i=-1;return fD(t)?i=Number(t)<1?1:Number(t):S(t)&&(n=t),S(n)||(n=bP),new v(t=>{const s=fD(e)?e:+e-n.now();return n.schedule(mD,s,{index:0,period:i,subscriber:t})})}(e,t),function(e){return e.lift(new pD(n))};var n}function vD(e){return t=>t.lift(new yD(e))}class yD{constructor(e){this.notifier=e}call(e,t){const n=new wD(e),i=V(this.notifier,new B(n));return i&&!n.seenValue?(n.add(i),t.subscribe(n)):n}}class wD extends z{constructor(e){super(e),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}}class _D{constructor(e=!1,t,n=!0){this._multiple=e,this._emitChanges=n,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new A,t&&t.length&&(e?t.forEach(e=>this._markSelected(e)):this._markSelected(t[0]),this._selectedToEmit.length=0)}get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}select(...e){this._verifyValueAssignment(e),e.forEach(e=>this._markSelected(e)),this._emitChangeEvent()}deselect(...e){this._verifyValueAssignment(e),e.forEach(e=>this._unmarkSelected(e)),this._emitChangeEvent()}toggle(e){this.isSelected(e)?this.deselect(e):this.select(e)}clear(){this._unmarkAll(),this._emitChangeEvent()}isSelected(e){return this._selection.has(e)}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(e){this._multiple&&this.selected&&this._selected.sort(e)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(e){this.isSelected(e)||(this._multiple||this._unmarkAll(),this._selection.add(e),this._emitChanges&&this._selectedToEmit.push(e))}_unmarkSelected(e){this.isSelected(e)&&(this._selection.delete(e),this._emitChanges&&this._deselectedToEmit.push(e))}_unmarkAll(){this.isEmpty()||this._selection.forEach(e=>this._unmarkSelected(e))}_verifyValueAssignment(e){}}let xD=(()=>{class e{constructor(e,t,n){this._ngZone=e,this._platform=t,this._scrolled=new A,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=n}register(e){this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe(()=>this._scrolled.next(e)))}deregister(e){const t=this.scrollContainers.get(e);t&&(t.unsubscribe(),this.scrollContainers.delete(e))}scrolled(e=20){return this._platform.isBrowser?new v(t=>{this._globalSubscription||this._addGlobalListener();const n=e>0?this._scrolled.pipe(bD(e)).subscribe(t):this._scrolled.subscribe(t);return this._scrolledCount++,()=>{n.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):lb()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((e,t)=>this.deregister(t)),this._scrolled.complete()}ancestorScrolled(e,t){const n=this.getAncestorScrollContainers(e);return this.scrolled(t).pipe(db(e=>!e||n.indexOf(e)>-1))}getAncestorScrollContainers(e){const t=[];return this.scrollContainers.forEach((n,i)=>{this._scrollableContainsElement(i,e)&&t.push(i)}),t}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(e,t){let n=kP(t),i=e.getElementRef().nativeElement;do{if(n==i)return!0}while(n=n.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>V_(this._getWindow().document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return e.\u0275fac=function(t){return new(t||e)(gi(ad),gi(MP),gi(Hd,8))},e.\u0275prov=pe({factory:function(){return new e(gi(ad),gi(MP),gi(Hd,8))},token:e,providedIn:"root"}),e})(),AD=(()=>{class e{constructor(e,t,n){this._platform=e,this._change=new A,this._changeListener=e=>{this._change.next(e)},this._document=n,t.runOutsideAngular(()=>{if(e.isBrowser){const e=this._getWindow();e.addEventListener("resize",this._changeListener),e.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._updateViewportSize())})}ngOnDestroy(){if(this._platform.isBrowser){const e=this._getWindow();e.removeEventListener("resize",this._changeListener),e.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}getViewportRect(){const e=this.getViewportScrollPosition(),{width:t,height:n}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+n,right:e.left+t,height:n,width:t}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const e=this._document,t=this._getWindow(),n=e.documentElement,i=n.getBoundingClientRect();return{top:-i.top||e.body.scrollTop||t.scrollY||n.scrollTop||0,left:-i.left||e.body.scrollLeft||t.scrollX||n.scrollLeft||0}}change(e=20){return e>0?this._change.pipe(bD(e)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const e=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:e.innerWidth,height:e.innerHeight}:{width:0,height:0}}}return e.\u0275fac=function(t){return new(t||e)(gi(MP),gi(ad),gi(Hd,8))},e.\u0275prov=pe({factory:function(){return new e(gi(MP),gi(ad),gi(Hd,8))},token:e,providedIn:"root"}),e})(),CD=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=fe({}),e})(),SD=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=fe({imports:[[gE,TP,CD],gE,CD]}),e})();class kD{constructor(e,t){this.predicate=e,this.inclusive=t}call(e,t){return t.subscribe(new PD(e,this.predicate,this.inclusive))}}class PD extends g{constructor(e,t,n){super(e),this.predicate=t,this.inclusive=n,this.index=0}_next(e){const t=this.destination;let n;try{n=this.predicate(e,this.index++)}catch(i){return void t.error(i)}this.nextOrComplete(e,n)}nextOrComplete(e,t){const n=this.destination;Boolean(t)?n.next(e):(this.inclusive&&n.next(e),n.complete())}}const ED=RP();class DD{constructor(e,t){this._viewportRuler=e,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=t}attach(){}enable(){if(this._canBeEnabled()){const e=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=e.style.left||"",this._previousHTMLStyles.top=e.style.top||"",e.style.left=SP(-this._previousScrollPosition.left),e.style.top=SP(-this._previousScrollPosition.top),e.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const e=this._document.documentElement,t=e.style,n=this._document.body.style,i=t.scrollBehavior||"",s=n.scrollBehavior||"";this._isEnabled=!1,t.left=this._previousHTMLStyles.left,t.top=this._previousHTMLStyles.top,e.classList.remove("cdk-global-scrollblock"),ED&&(t.scrollBehavior=n.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),ED&&(t.scrollBehavior=i,n.scrollBehavior=s)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const e=this._document.body,t=this._viewportRuler.getViewportSize();return e.scrollHeight>t.height||e.scrollWidth>t.width}}class OD{constructor(e,t,n,i){this._scrollDispatcher=e,this._ngZone=t,this._viewportRuler=n,this._config=i,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(e){this._overlayRef=e}enable(){if(this._scrollSubscription)return;const e=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=e.subscribe(()=>{const e=this._viewportRuler.getViewportScrollPosition().top;Math.abs(e-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=e.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class MD{enable(){}disable(){}attach(){}}function TD(e,t){return t.some(t=>e.bottom<t.top||e.top>t.bottom||e.right<t.left||e.left>t.right)}function ID(e,t){return t.some(t=>e.top<t.top||e.bottom>t.bottom||e.left<t.left||e.right>t.right)}class RD{constructor(e,t,n,i){this._scrollDispatcher=e,this._viewportRuler=t,this._ngZone=n,this._config=i,this._scrollSubscription=null}attach(e){this._overlayRef=e}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const e=this._overlayRef.overlayElement.getBoundingClientRect(),{width:t,height:n}=this._viewportRuler.getViewportSize();TD(e,[{width:t,height:n,bottom:n,right:t,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let LD=(()=>{class e{constructor(e,t,n,i){this._scrollDispatcher=e,this._viewportRuler=t,this._ngZone=n,this.noop=()=>new MD,this.close=e=>new OD(this._scrollDispatcher,this._ngZone,this._viewportRuler,e),this.block=()=>new DD(this._viewportRuler,this._document),this.reposition=e=>new RD(this._scrollDispatcher,this._viewportRuler,this._ngZone,e),this._document=i}}return e.\u0275fac=function(t){return new(t||e)(gi(xD),gi(AD),gi(ad),gi(Hd))},e.\u0275prov=pe({factory:function(){return new e(gi(xD),gi(AD),gi(ad),gi(Hd))},token:e,providedIn:"root"}),e})();class FD{constructor(e){if(this.scrollStrategy=new MD,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,e){const t=Object.keys(e);for(const n of t)void 0!==e[n]&&(this[n]=e[n])}}}class BD{constructor(e,t,n,i,s){this.offsetX=n,this.offsetY=i,this.panelClass=s,this.originX=e.originX,this.originY=e.originY,this.overlayX=t.overlayX,this.overlayY=t.overlayY}}class zD{constructor(e,t){this.connectionPair=e,this.scrollableViewProperties=t}}let VD=(()=>{class e{constructor(e){this._attachedOverlays=[],this._document=e}ngOnDestroy(){this.detach()}add(e){this.remove(e),this._attachedOverlays.push(e)}remove(e){const t=this._attachedOverlays.indexOf(e);t>-1&&this._attachedOverlays.splice(t,1),0===this._attachedOverlays.length&&this.detach()}}return e.\u0275fac=function(t){return new(t||e)(gi(Hd))},e.\u0275prov=pe({factory:function(){return new e(gi(Hd))},token:e,providedIn:"root"}),e})(),ND=(()=>{class e extends VD{constructor(e){super(e),this._keydownListener=e=>{const t=this._attachedOverlays;for(let n=t.length-1;n>-1;n--)if(t[n]._keydownEvents.observers.length>0){t[n]._keydownEvents.next(e);break}}}add(e){super.add(e),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return e.\u0275fac=function(t){return new(t||e)(gi(Hd))},e.\u0275prov=pe({factory:function(){return new e(gi(Hd))},token:e,providedIn:"root"}),e})(),HD=(()=>{class e extends VD{constructor(e,t){super(e),this._platform=t,this._cursorStyleIsSet=!1,this._clickListener=e=>{const t=e.composedPath?e.composedPath()[0]:e.target,n=this._attachedOverlays.slice();for(let i=n.length-1;i>-1;i--){const s=n[i];if(!(s._outsidePointerEvents.observers.length<1)&&s.hasAttached()){if(s.overlayElement.contains(t))break;s._outsidePointerEvents.next(e)}}}}add(e){super.add(e),this._isAttached||(this._document.body.addEventListener("click",this._clickListener,!0),this._document.body.addEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=this._document.body.style.cursor,this._document.body.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("click",this._clickListener,!0),this._document.body.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(this._document.body.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1)}}return e.\u0275fac=function(t){return new(t||e)(gi(Hd),gi(MP))},e.\u0275prov=pe({factory:function(){return new e(gi(Hd),gi(MP))},token:e,providedIn:"root"}),e})();const jD=!("undefined"==typeof window||!window||!window.__karma__&&!window.jasmine);let UD=(()=>{class e{constructor(e,t){this._platform=t,this._document=e}ngOnDestroy(){const e=this._containerElement;e&&e.parentNode&&e.parentNode.removeChild(e)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){if(this._platform.isBrowser||jD){const e=this._document.querySelectorAll('.cdk-overlay-container[platform="server"], .cdk-overlay-container[platform="test"]');for(let t=0;t<e.length;t++)e[t].parentNode.removeChild(e[t])}const e=this._document.createElement("div");e.classList.add("cdk-overlay-container"),jD?e.setAttribute("platform","test"):this._platform.isBrowser||e.setAttribute("platform","server"),this._document.body.appendChild(e),this._containerElement=e}}return e.\u0275fac=function(t){return new(t||e)(gi(Hd),gi(MP))},e.\u0275prov=pe({factory:function(){return new e(gi(Hd),gi(MP))},token:e,providedIn:"root"}),e})();class WD{constructor(e,t,n,i,s,o,r,a,l){this._portalOutlet=e,this._host=t,this._pane=n,this._config=i,this._ngZone=s,this._keyboardDispatcher=o,this._document=r,this._location=a,this._outsideClickDispatcher=l,this._backdropElement=null,this._backdropClick=new A,this._attachments=new A,this._detachments=new A,this._locationChanges=u.EMPTY,this._backdropClickHandler=e=>this._backdropClick.next(e),this._keydownEvents=new A,this._outsidePointerEvents=new A,i.scrollStrategy&&(this._scrollStrategy=i.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=i.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(e){let t=this._portalOutlet.attach(e);return!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host),this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe(lv(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),t}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const e=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),e}dispose(){const e=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this.detachBackdrop(),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host&&this._host.parentNode&&(this._host.parentNode.removeChild(this._host),this._host=null),this._previousHostParent=this._pane=null,e&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(e){e!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=e,this.hasAttached()&&(e.attach(this),this.updatePosition()))}updateSize(e){this._config=Object.assign(Object.assign({},this._config),e),this._updateElementSize()}setDirection(e){this._config=Object.assign(Object.assign({},this._config),{direction:e}),this._updateElementDirection()}addPanelClass(e){this._pane&&this._toggleClasses(this._pane,e,!0)}removePanelClass(e){this._pane&&this._toggleClasses(this._pane,e,!1)}getDirection(){const e=this._config.direction;return e?"string"==typeof e?e:e.value:"ltr"}updateScrollStrategy(e){e!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=e,this.hasAttached()&&(e.attach(this),e.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const e=this._pane.style;e.width=SP(this._config.width),e.height=SP(this._config.height),e.minWidth=SP(this._config.minWidth),e.minHeight=SP(this._config.minHeight),e.maxWidth=SP(this._config.maxWidth),e.maxHeight=SP(this._config.maxHeight)}_togglePointerEvents(e){this._pane.style.pointerEvents=e?"":"none"}_attachBackdrop(){this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add("cdk-overlay-backdrop-showing")})}):this._backdropElement.classList.add("cdk-overlay-backdrop-showing")}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){let e,t=this._backdropElement;if(!t)return;let n=()=>{t&&(t.removeEventListener("click",this._backdropClickHandler),t.removeEventListener("transitionend",n),t.parentNode&&t.parentNode.removeChild(t)),this._backdropElement==t&&(this._backdropElement=null),this._config.backdropClass&&this._toggleClasses(t,this._config.backdropClass,!1),clearTimeout(e)};t.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{t.addEventListener("transitionend",n)}),t.style.pointerEvents="none",e=this._ngZone.runOutsideAngular(()=>setTimeout(n,500))}_toggleClasses(e,t,n){const i=e.classList;CP(t).forEach(e=>{e&&(n?i.add(e):i.remove(e))})}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const e=this._ngZone.onStable.pipe(vD(G(this._attachments,this._detachments))).subscribe(()=>{this._pane&&this._host&&0!==this._pane.children.length||(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._previousHostParent.removeChild(this._host)),e.unsubscribe())})})}_disposeScrollStrategy(){const e=this._scrollStrategy;e&&(e.disable(),e.detach&&e.detach())}}const GD=/([A-Za-z%]+)$/;class $D{constructor(e,t,n,i,s){this._viewportRuler=t,this._document=n,this._platform=i,this._overlayContainer=s,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new A,this._resizeSubscription=u.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(e)}get positions(){return this._preferredPositions}attach(e){this._validatePositions(),e.hostElement.classList.add("cdk-overlay-connected-position-bounding-box"),this._overlayRef=e,this._boundingBox=e.hostElement,this._pane=e.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect();const e=this._originRect,t=this._overlayRect,n=this._viewportRect,i=[];let s;for(let o of this._preferredPositions){let r=this._getOriginPoint(e,o),a=this._getOverlayPoint(r,t,o),l=this._getOverlayFit(a,t,n,o);if(l.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(o,r);this._canFitWithFlexibleDimensions(l,a,n)?i.push({position:o,origin:r,overlayRect:t,boundingBoxRect:this._calculateBoundingBoxRect(r,o)}):(!s||s.overlayFit.visibleArea<l.visibleArea)&&(s={overlayFit:l,overlayPoint:a,originPoint:r,position:o,overlayRect:t})}if(i.length){let e=null,t=-1;for(const n of i){const i=n.boundingBoxRect.width*n.boundingBoxRect.height*(n.position.weight||1);i>t&&(t=i,e=n)}return this._isPushed=!1,void this._applyPosition(e.position,e.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(s.position,s.originPoint);this._applyPosition(s.position,s.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&qD(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove("cdk-overlay-connected-position-bounding-box"),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(!this._isDisposed&&(!this._platform||this._platform.isBrowser)){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect();const e=this._lastPosition||this._preferredPositions[0],t=this._getOriginPoint(this._originRect,e);this._applyPosition(e,t)}}withScrollableContainers(e){return this._scrollables=e,this}withPositions(e){return this._preferredPositions=e,-1===e.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(e){return this._viewportMargin=e,this}withFlexibleDimensions(e=!0){return this._hasFlexibleDimensions=e,this}withGrowAfterOpen(e=!0){return this._growAfterOpen=e,this}withPush(e=!0){return this._canPush=e,this}withLockedPosition(e=!0){return this._positionLocked=e,this}setOrigin(e){return this._origin=e,this}withDefaultOffsetX(e){return this._offsetX=e,this}withDefaultOffsetY(e){return this._offsetY=e,this}withTransformOriginOn(e){return this._transformOriginSelector=e,this}_getOriginPoint(e,t){let n,i;if("center"==t.originX)n=e.left+e.width/2;else{const i=this._isRtl()?e.right:e.left,s=this._isRtl()?e.left:e.right;n="start"==t.originX?i:s}return i="center"==t.originY?e.top+e.height/2:"top"==t.originY?e.top:e.bottom,{x:n,y:i}}_getOverlayPoint(e,t,n){let i,s;return i="center"==n.overlayX?-t.width/2:"start"===n.overlayX?this._isRtl()?-t.width:0:this._isRtl()?0:-t.width,s="center"==n.overlayY?-t.height/2:"top"==n.overlayY?0:-t.height,{x:e.x+i,y:e.y+s}}_getOverlayFit(e,t,n,i){const s=ZD(t);let{x:o,y:r}=e,a=this._getOffset(i,"x"),l=this._getOffset(i,"y");a&&(o+=a),l&&(r+=l);let c=0-r,d=r+s.height-n.height,u=this._subtractOverflows(s.width,0-o,o+s.width-n.width),h=this._subtractOverflows(s.height,c,d),p=u*h;return{visibleArea:p,isCompletelyWithinViewport:s.width*s.height===p,fitsInViewportVertically:h===s.height,fitsInViewportHorizontally:u==s.width}}_canFitWithFlexibleDimensions(e,t,n){if(this._hasFlexibleDimensions){const i=n.bottom-t.y,s=n.right-t.x,o=YD(this._overlayRef.getConfig().minHeight),r=YD(this._overlayRef.getConfig().minWidth),a=e.fitsInViewportHorizontally||null!=r&&r<=s;return(e.fitsInViewportVertically||null!=o&&o<=i)&&a}return!1}_pushOverlayOnScreen(e,t,n){if(this._previousPushAmount&&this._positionLocked)return{x:e.x+this._previousPushAmount.x,y:e.y+this._previousPushAmount.y};const i=ZD(t),s=this._viewportRect,o=Math.max(e.x+i.width-s.width,0),r=Math.max(e.y+i.height-s.height,0),a=Math.max(s.top-n.top-e.y,0),l=Math.max(s.left-n.left-e.x,0);let c=0,d=0;return c=i.width<=s.width?l||-o:e.x<this._viewportMargin?s.left-n.left-e.x:0,d=i.height<=s.height?a||-r:e.y<this._viewportMargin?s.top-n.top-e.y:0,this._previousPushAmount={x:c,y:d},{x:e.x+c,y:e.y+d}}_applyPosition(e,t){if(this._setTransformOrigin(e),this._setOverlayElementStyles(t,e),this._setBoundingBoxStyles(t,e),e.panelClass&&this._addPanelClasses(e.panelClass),this._lastPosition=e,this._positionChanges.observers.length){const t=this._getScrollVisibility(),n=new zD(e,t);this._positionChanges.next(n)}this._isInitialRender=!1}_setTransformOrigin(e){if(!this._transformOriginSelector)return;const t=this._boundingBox.querySelectorAll(this._transformOriginSelector);let n,i=e.overlayY;n="center"===e.overlayX?"center":this._isRtl()?"start"===e.overlayX?"right":"left":"start"===e.overlayX?"left":"right";for(let s=0;s<t.length;s++)t[s].style.transformOrigin=`${n} ${i}`}_calculateBoundingBoxRect(e,t){const n=this._viewportRect,i=this._isRtl();let s,o,r,a,l,c;if("top"===t.overlayY)o=e.y,s=n.height-o+this._viewportMargin;else if("bottom"===t.overlayY)r=n.height-e.y+2*this._viewportMargin,s=n.height-r+this._viewportMargin;else{const t=Math.min(n.bottom-e.y+n.top,e.y),i=this._lastBoundingBoxSize.height;s=2*t,o=e.y-t,s>i&&!this._isInitialRender&&!this._growAfterOpen&&(o=e.y-i/2)}if("end"===t.overlayX&&!i||"start"===t.overlayX&&i)c=n.width-e.x+this._viewportMargin,a=e.x-this._viewportMargin;else if("start"===t.overlayX&&!i||"end"===t.overlayX&&i)l=e.x,a=n.right-e.x;else{const t=Math.min(n.right-e.x+n.left,e.x),i=this._lastBoundingBoxSize.width;a=2*t,l=e.x-t,a>i&&!this._isInitialRender&&!this._growAfterOpen&&(l=e.x-i/2)}return{top:o,left:l,bottom:r,right:c,width:a,height:s}}_setBoundingBoxStyles(e,t){const n=this._calculateBoundingBoxRect(e,t);this._isInitialRender||this._growAfterOpen||(n.height=Math.min(n.height,this._lastBoundingBoxSize.height),n.width=Math.min(n.width,this._lastBoundingBoxSize.width));const i={};if(this._hasExactPosition())i.top=i.left="0",i.bottom=i.right=i.maxHeight=i.maxWidth="",i.width=i.height="100%";else{const e=this._overlayRef.getConfig().maxHeight,s=this._overlayRef.getConfig().maxWidth;i.height=SP(n.height),i.top=SP(n.top),i.bottom=SP(n.bottom),i.width=SP(n.width),i.left=SP(n.left),i.right=SP(n.right),i.alignItems="center"===t.overlayX?"center":"end"===t.overlayX?"flex-end":"flex-start",i.justifyContent="center"===t.overlayY?"center":"bottom"===t.overlayY?"flex-end":"flex-start",e&&(i.maxHeight=SP(e)),s&&(i.maxWidth=SP(s))}this._lastBoundingBoxSize=n,qD(this._boundingBox.style,i)}_resetBoundingBoxStyles(){qD(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){qD(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(e,t){const n={},i=this._hasExactPosition(),s=this._hasFlexibleDimensions,o=this._overlayRef.getConfig();if(i){const i=this._viewportRuler.getViewportScrollPosition();qD(n,this._getExactOverlayY(t,e,i)),qD(n,this._getExactOverlayX(t,e,i))}else n.position="static";let r="",a=this._getOffset(t,"x"),l=this._getOffset(t,"y");a&&(r+=`translateX(${a}px) `),l&&(r+=`translateY(${l}px)`),n.transform=r.trim(),o.maxHeight&&(i?n.maxHeight=SP(o.maxHeight):s&&(n.maxHeight="")),o.maxWidth&&(i?n.maxWidth=SP(o.maxWidth):s&&(n.maxWidth="")),qD(this._pane.style,n)}_getExactOverlayY(e,t,n){let i={top:"",bottom:""},s=this._getOverlayPoint(t,this._overlayRect,e);this._isPushed&&(s=this._pushOverlayOnScreen(s,this._overlayRect,n));let o=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return s.y-=o,"bottom"===e.overlayY?i.bottom=this._document.documentElement.clientHeight-(s.y+this._overlayRect.height)+"px":i.top=SP(s.y),i}_getExactOverlayX(e,t,n){let i,s={left:"",right:""},o=this._getOverlayPoint(t,this._overlayRect,e);return this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,n)),i=this._isRtl()?"end"===e.overlayX?"left":"right":"end"===e.overlayX?"right":"left","right"===i?s.right=this._document.documentElement.clientWidth-(o.x+this._overlayRect.width)+"px":s.left=SP(o.x),s}_getScrollVisibility(){const e=this._getOriginRect(),t=this._pane.getBoundingClientRect(),n=this._scrollables.map(e=>e.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:ID(e,n),isOriginOutsideView:TD(e,n),isOverlayClipped:ID(t,n),isOverlayOutsideView:TD(t,n)}}_subtractOverflows(e,...t){return t.reduce((e,t)=>e-Math.max(t,0),e)}_getNarrowedViewportRect(){const e=this._document.documentElement.clientWidth,t=this._document.documentElement.clientHeight,n=this._viewportRuler.getViewportScrollPosition();return{top:n.top+this._viewportMargin,left:n.left+this._viewportMargin,right:n.left+e-this._viewportMargin,bottom:n.top+t-this._viewportMargin,width:e-2*this._viewportMargin,height:t-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(e,t){return"x"===t?null==e.offsetX?this._offsetX:e.offsetX:null==e.offsetY?this._offsetY:e.offsetY}_validatePositions(){}_addPanelClasses(e){this._pane&&CP(e).forEach(e=>{""!==e&&-1===this._appliedPanelClasses.indexOf(e)&&(this._appliedPanelClasses.push(e),this._pane.classList.add(e))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(e=>{this._pane.classList.remove(e)}),this._appliedPanelClasses=[])}_getOriginRect(){const e=this._origin;if(e instanceof rl)return e.nativeElement.getBoundingClientRect();if(e instanceof Element)return e.getBoundingClientRect();const t=e.width||0,n=e.height||0;return{top:e.y,bottom:e.y+n,left:e.x,right:e.x+t,height:n,width:t}}}function qD(e,t){for(let n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function YD(e){if("number"!=typeof e&&null!=e){const[t,n]=e.split(GD);return n&&"px"!==n?null:parseFloat(t)}return e||null}function ZD(e){return{top:Math.floor(e.top),right:Math.floor(e.right),bottom:Math.floor(e.bottom),left:Math.floor(e.left),width:Math.floor(e.width),height:Math.floor(e.height)}}class QD{constructor(e,t,n,i,s,o,r){this._preferredPositions=[],this._positionStrategy=new $D(n,i,s,o,r).withFlexibleDimensions(!1).withPush(!1).withViewportMargin(0),this.withFallbackPosition(e,t),this.onPositionChange=this._positionStrategy.positionChanges}get positions(){return this._preferredPositions}attach(e){this._overlayRef=e,this._positionStrategy.attach(e),this._direction&&(e.setDirection(this._direction),this._direction=null)}dispose(){this._positionStrategy.dispose()}detach(){this._positionStrategy.detach()}apply(){this._positionStrategy.apply()}recalculateLastPosition(){this._positionStrategy.reapplyLastPosition()}withScrollableContainers(e){this._positionStrategy.withScrollableContainers(e)}withFallbackPosition(e,t,n,i){const s=new BD(e,t,n,i);return this._preferredPositions.push(s),this._positionStrategy.withPositions(this._preferredPositions),this}withDirection(e){return this._overlayRef?this._overlayRef.setDirection(e):this._direction=e,this}withOffsetX(e){return this._positionStrategy.withDefaultOffsetX(e),this}withOffsetY(e){return this._positionStrategy.withDefaultOffsetY(e),this}withLockedPosition(e){return this._positionStrategy.withLockedPosition(e),this}withPositions(e){return this._preferredPositions=e.slice(),this._positionStrategy.withPositions(this._preferredPositions),this}setOrigin(e){return this._positionStrategy.setOrigin(e),this}}class XD{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}attach(e){const t=e.getConfig();this._overlayRef=e,this._width&&!t.width&&e.updateSize({width:this._width}),this._height&&!t.height&&e.updateSize({height:this._height}),e.hostElement.classList.add("cdk-global-overlay-wrapper"),this._isDisposed=!1}top(e=""){return this._bottomOffset="",this._topOffset=e,this._alignItems="flex-start",this}left(e=""){return this._rightOffset="",this._leftOffset=e,this._justifyContent="flex-start",this}bottom(e=""){return this._topOffset="",this._bottomOffset=e,this._alignItems="flex-end",this}right(e=""){return this._leftOffset="",this._rightOffset=e,this._justifyContent="flex-end",this}width(e=""){return this._overlayRef?this._overlayRef.updateSize({width:e}):this._width=e,this}height(e=""){return this._overlayRef?this._overlayRef.updateSize({height:e}):this._height=e,this}centerHorizontally(e=""){return this.left(e),this._justifyContent="center",this}centerVertically(e=""){return this.top(e),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const e=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement.style,n=this._overlayRef.getConfig(),{width:i,height:s,maxWidth:o,maxHeight:r}=n,a=!("100%"!==i&&"100vw"!==i||o&&"100%"!==o&&"100vw"!==o),l=!("100%"!==s&&"100vh"!==s||r&&"100%"!==r&&"100vh"!==r);e.position=this._cssPosition,e.marginLeft=a?"0":this._leftOffset,e.marginTop=l?"0":this._topOffset,e.marginBottom=this._bottomOffset,e.marginRight=this._rightOffset,a?t.justifyContent="flex-start":"center"===this._justifyContent?t.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?t.justifyContent="flex-end":"flex-end"===this._justifyContent&&(t.justifyContent="flex-start"):t.justifyContent=this._justifyContent,t.alignItems=l?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const e=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement,n=t.style;t.classList.remove("cdk-global-overlay-wrapper"),n.justifyContent=n.alignItems=e.marginTop=e.marginBottom=e.marginLeft=e.marginRight=e.position="",this._overlayRef=null,this._isDisposed=!0}}let KD=(()=>{class e{constructor(e,t,n,i){this._viewportRuler=e,this._document=t,this._platform=n,this._overlayContainer=i}global(){return new XD}connectedTo(e,t,n){return new QD(t,n,e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}flexibleConnectedTo(e){return new $D(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return e.\u0275fac=function(t){return new(t||e)(gi(AD),gi(Hd),gi(MP),gi(UD))},e.\u0275prov=pe({factory:function(){return new e(gi(AD),gi(Hd),gi(MP),gi(UD))},token:e,providedIn:"root"}),e})(),JD=0,eO=(()=>{class e{constructor(e,t,n,i,s,o,r,a,l,c,d){this.scrollStrategies=e,this._overlayContainer=t,this._componentFactoryResolver=n,this._positionBuilder=i,this._keyboardDispatcher=s,this._injector=o,this._ngZone=r,this._document=a,this._directionality=l,this._location=c,this._outsideClickDispatcher=d}create(e){const t=this._createHostElement(),n=this._createPaneElement(t),i=this._createPortalOutlet(n),s=new FD(e);return s.direction=s.direction||this._directionality.value,new WD(i,t,n,s,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}position(){return this._positionBuilder}_createPaneElement(e){const t=this._document.createElement("div");return t.id="cdk-overlay-"+JD++,t.classList.add("cdk-overlay-pane"),e.appendChild(t),t}_createHostElement(){const e=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(e),e}_createPortalOutlet(e){return this._appRef||(this._appRef=this._injector.get(Ed)),new tS(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return e.\u0275fac=function(t){return new(t||e)(gi(LD),gi(UD),gi(nl),gi(KD),gi(ND),gi(mr),gi(ad),gi(Hd),gi(pE),gi(nu),gi(HD))},e.\u0275prov=pe({token:e,factory:e.\u0275fac}),e})();const tO=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],nO=new Xn("cdk-connected-overlay-scroll-strategy");let iO=(()=>{class e{constructor(e){this.elementRef=e}}return e.\u0275fac=function(t){return new(t||e)(zr(rl))},e.\u0275dir=Ke({type:e,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),e})(),sO=(()=>{class e{constructor(e,t,n,i,s){this._overlay=e,this._dir=s,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=u.EMPTY,this._attachSubscription=u.EMPTY,this._detachSubscription=u.EMPTY,this._positionSubscription=u.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new yc,this.positionChange=new yc,this.attach=new yc,this.detach=new yc,this.overlayKeydown=new yc,this.overlayOutsideClick=new yc,this._templatePortal=new KC(t,n),this._scrollStrategyFactory=i,this.scrollStrategy=this._scrollStrategyFactory()}get offsetX(){return this._offsetX}set offsetX(e){this._offsetX=e,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(e){this._offsetY=e,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(e){this._hasBackdrop=xP(e)}get lockPosition(){return this._lockPosition}set lockPosition(e){this._lockPosition=xP(e)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(e){this._flexibleDimensions=xP(e)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(e){this._growAfterOpen=xP(e)}get push(){return this._push}set push(e){this._push=xP(e)}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}ngOnChanges(e){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),e.origin&&this.open&&this._position.apply()),e.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){this.positions&&this.positions.length||(this.positions=tO);const e=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=e.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=e.detachments().subscribe(()=>this.detach.emit()),e.keydownEvents().subscribe(e=>{this.overlayKeydown.next(e),27!==e.keyCode||this.disableClose||mP(e)||(e.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(e=>{this.overlayOutsideClick.next(e)})}_buildConfig(){const e=this._position=this.positionStrategy||this._createPositionStrategy(),t=new FD({direction:this._dir,positionStrategy:e,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(t.width=this.width),(this.height||0===this.height)&&(t.height=this.height),(this.minWidth||0===this.minWidth)&&(t.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(t.minHeight=this.minHeight),this.backdropClass&&(t.backdropClass=this.backdropClass),this.panelClass&&(t.panelClass=this.panelClass),t}_updatePositionStrategy(e){const t=this.positions.map(e=>({originX:e.originX,originY:e.originY,overlayX:e.overlayX,overlayY:e.overlayY,offsetX:e.offsetX||this.offsetX,offsetY:e.offsetY||this.offsetY,panelClass:e.panelClass||void 0}));return e.setOrigin(this.origin.elementRef).withPositions(t).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const e=this._overlay.position().flexibleConnectedTo(this.origin.elementRef);return this._updatePositionStrategy(e),e}_attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(e=>{this.backdropClick.emit(e)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(function(e,t=!1){return n=>n.lift(new kD(e,t))}(()=>this.positionChange.observers.length>0)).subscribe(e=>{this.positionChange.emit(e),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}return e.\u0275fac=function(t){return new(t||e)(zr(eO),zr(zl),zr(Gl),zr(nO),zr(pE,8))},e.\u0275dir=Ke({type:e,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"],positions:["cdkConnectedOverlayPositions","positions"],origin:["cdkConnectedOverlayOrigin","origin"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[dt]}),e})();const oO={provide:nO,deps:[eO],useFactory:function(e){return()=>e.scrollStrategies.reposition()}};let rO=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=fe({providers:[eO,oO],imports:[[gE,iS,SD],SD]}),e})();const aO=["underline"],lO=["connectionContainer"],cO=["inputContainer"],dO=["label"];function uO(e,t){1&e&&(Wr(0),Hr(1,"div",14),Ur(2,"div",15),Ur(3,"div",16),Ur(4,"div",17),jr(),Hr(5,"div",18),Ur(6,"div",15),Ur(7,"div",16),Ur(8,"div",17),jr(),Gr())}function hO(e,t){1&e&&(Hr(0,"div",19),oa(1,1),jr())}function pO(e,t){if(1&e&&(Wr(0),oa(1,2),Hr(2,"span"),Da(3),jr(),Gr()),2&e){const e=na(2);no(3),Oa(e._control.placeholder)}}function gO(e,t){1&e&&oa(0,3,["*ngSwitchCase","true"])}function fO(e,t){1&e&&(Hr(0,"span",23),Da(1," *"),jr())}function mO(e,t){if(1&e){const e=qr();Hr(0,"label",20,21),Xr("cdkObserveContent",function(){return Lt(e),na().updateOutlineGap()}),Fr(2,pO,4,1,"ng-container",12),Fr(3,gO,1,0,"ng-content",12),Fr(4,fO,2,0,"span",22),jr()}if(2&e){const e=na();ma("mat-empty",e._control.empty&&!e._shouldAlwaysFloat())("mat-form-field-empty",e._control.empty&&!e._shouldAlwaysFloat())("mat-accent","accent"==e.color)("mat-warn","warn"==e.color),Vr("cdkObserveContentDisabled","outline"!=e.appearance)("id",e._labelId)("ngSwitch",e._hasLabel()),Ir("for",e._control.id)("aria-owns",e._control.id),no(2),Vr("ngSwitchCase",!1),no(1),Vr("ngSwitchCase",!0),no(1),Vr("ngIf",!e.hideRequiredMarker&&e._control.required&&!e._control.disabled)}}function bO(e,t){1&e&&(Hr(0,"div",24),oa(1,4),jr())}function vO(e,t){if(1&e&&(Hr(0,"div",25,26),Ur(2,"span",27),jr()),2&e){const e=na();no(2),ma("mat-accent","accent"==e.color)("mat-warn","warn"==e.color)}}function yO(e,t){1&e&&(Hr(0,"div"),oa(1,5),jr()),2&e&&Vr("@transitionMessages",na()._subscriptAnimationState)}function wO(e,t){if(1&e&&(Hr(0,"div",31),Da(1),jr()),2&e){const e=na(2);Vr("id",e._hintLabelId),no(1),Oa(e.hintLabel)}}function _O(e,t){if(1&e&&(Hr(0,"div",28),Fr(1,wO,2,2,"div",29),oa(2,6),Ur(3,"div",30),oa(4,7),jr()),2&e){const e=na();Vr("@transitionMessages",e._subscriptAnimationState),no(1),Vr("ngIf",e.hintLabel)}}const xO=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],AO=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"],CO=new Xn("MatError"),SO={transitionMessages:Jh("transitionMessages",[ip("enter",np({opacity:1,transform:"translateY(0%)"})),op("void => enter",[np({opacity:0,transform:"translateY(-5px)"}),ep("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let kO=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Ke({type:e}),e})();const PO=new Xn("MatHint");let EO=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Ke({type:e,selectors:[["mat-label"]]}),e})(),DO=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Ke({type:e,selectors:[["mat-placeholder"]]}),e})();const OO=new Xn("MatPrefix"),MO=new Xn("MatSuffix");let TO=0;class IO{constructor(e){this._elementRef=e}}const RO=kE(IO,"primary"),LO=new Xn("MAT_FORM_FIELD_DEFAULT_OPTIONS"),FO=new Xn("MatFormField");let BO=(()=>{class e extends RO{constructor(e,t,n,i,s,o,r,a){super(e),this._elementRef=e,this._changeDetectorRef=t,this._dir=i,this._defaults=s,this._platform=o,this._ngZone=r,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new A,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+TO++,this._labelId="mat-form-field-label-"+TO++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==a,this.appearance=s&&s.appearance?s.appearance:"legacy",this._hideRequiredMarker=!(!s||null==s.hideRequiredMarker)&&s.hideRequiredMarker}get appearance(){return this._appearance}set appearance(e){const t=this._appearance;this._appearance=e||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&t!==e&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(e){this._hideRequiredMarker=xP(e)}_shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}_canLabelFloat(){return"never"!==this.floatLabel}get hintLabel(){return this._hintLabel}set hintLabel(e){this._hintLabel=e,this._processHints()}get floatLabel(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel}set floatLabel(e){e!==this._floatLabel&&(this._floatLabel=e||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}get _control(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}set _control(e){this._explicitFormFieldControl=e}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._connectionContainerRef||this._elementRef}ngAfterContentInit(){this._validateControlChild();const e=this._control;e.controlType&&this._elementRef.nativeElement.classList.add("mat-form-field-type-"+e.controlType),e.stateChanges.pipe(uv(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),e.ngControl&&e.ngControl.valueChanges&&e.ngControl.valueChanges.pipe(vD(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(vD(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),G(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(uv(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(uv(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(vD(this._destroyed)).subscribe(()=>{"function"==typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this.updateOutlineGap())}):this.updateOutlineGap()})}ngAfterContentChecked(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}ngAfterViewInit(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_shouldForward(e){const t=this._control?this._control.ngControl:null;return t&&t[e]}_hasPlaceholder(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}_hasLabel(){return!(!this._labelChildNonStatic&&!this._labelChildStatic)}_shouldLabelFloat(){return this._canLabelFloat()&&(this._control&&this._control.shouldLabelFloat||this._shouldAlwaysFloat())}_hideControlPlaceholder(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}_hasFloatingLabel(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_animateAndLockLabel(){this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,V_(this._label.nativeElement,"transitionend").pipe(lv(1)).subscribe(()=>{this._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}_validatePlaceholders(){}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){}_getDefaultFloatLabelState(){return this._defaults&&this._defaults.floatLabel||"auto"}_syncDescribedByIds(){if(this._control){let e=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&e.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const t=this._hintChildren?this._hintChildren.find(e=>"start"===e.align):null,n=this._hintChildren?this._hintChildren.find(e=>"end"===e.align):null;t?e.push(t.id):this._hintLabel&&e.push(this._hintLabelId),n&&e.push(n.id)}else this._errorChildren&&e.push(...this._errorChildren.map(e=>e.id));this._control.setDescribedByIds(e)}}_validateControlChild(){}updateOutlineGap(){const e=this._label?this._label.nativeElement:null;if("outline"!==this.appearance||!e||!e.children.length||!e.textContent.trim())return;if(!this._platform.isBrowser)return;if(!this._isAttachedToDOM())return void(this._outlineGapCalculationNeededImmediately=!0);let t=0,n=0;const i=this._connectionContainerRef.nativeElement,s=i.querySelectorAll(".mat-form-field-outline-start"),o=i.querySelectorAll(".mat-form-field-outline-gap");if(this._label&&this._label.nativeElement.children.length){const s=i.getBoundingClientRect();if(0===s.width&&0===s.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);const o=this._getStartEnd(s),r=e.children,a=this._getStartEnd(r[0].getBoundingClientRect());let l=0;for(let e=0;e<r.length;e++)l+=r[e].offsetWidth;t=Math.abs(a-o)-5,n=l>0?.75*l+10:0}for(let r=0;r<s.length;r++)s[r].style.width=t+"px";for(let r=0;r<o.length;r++)o[r].style.width=n+"px";this._outlineGapCalculationNeededOnStable=this._outlineGapCalculationNeededImmediately=!1}_getStartEnd(e){return this._dir&&"rtl"===this._dir.value?e.right:e.left}_isAttachedToDOM(){const e=this._elementRef.nativeElement;if(e.getRootNode){const t=e.getRootNode();return t&&t!==e}return document.documentElement.contains(e)}}return e.\u0275fac=function(t){return new(t||e)(zr(rl),zr(Tl),zr(rl),zr(pE,8),zr(LO,8),zr(MP),zr(ad),zr(_f,8))},e.\u0275cmp=$e({type:e,selectors:[["mat-form-field"]],contentQueries:function(e,t,n){if(1&e&&(Ic(n,kO,1),Ic(n,kO,3),Ic(n,EO,1),Ic(n,EO,3),Ic(n,DO,1),Ic(n,CO,1),Ic(n,PO,1),Ic(n,OO,1),Ic(n,MO,1)),2&e){let e;Mc(e=Rc())&&(t._controlNonStatic=e.first),Mc(e=Rc())&&(t._controlStatic=e.first),Mc(e=Rc())&&(t._labelChildNonStatic=e.first),Mc(e=Rc())&&(t._labelChildStatic=e.first),Mc(e=Rc())&&(t._placeholderChild=e.first),Mc(e=Rc())&&(t._errorChildren=e),Mc(e=Rc())&&(t._hintChildren=e),Mc(e=Rc())&&(t._prefixChildren=e),Mc(e=Rc())&&(t._suffixChildren=e)}},viewQuery:function(e,t){if(1&e&&(Tc(aO,1),Tc(lO,3),Tc(cO,1),Tc(dO,1)),2&e){let e;Mc(e=Rc())&&(t.underlineRef=e.first),Mc(e=Rc())&&(t._connectionContainerRef=e.first),Mc(e=Rc())&&(t._inputContainerRef=e.first),Mc(e=Rc())&&(t._label=e.first)}},hostAttrs:[1,"mat-form-field"],hostVars:44,hostBindings:function(e,t){2&e&&ma("mat-form-field-appearance-standard","standard"==t.appearance)("mat-form-field-appearance-fill","fill"==t.appearance)("mat-form-field-appearance-outline","outline"==t.appearance)("mat-form-field-appearance-legacy","legacy"==t.appearance)("mat-form-field-invalid",t._control.errorState)("mat-form-field-can-float",t._canLabelFloat())("mat-form-field-should-float",t._shouldLabelFloat())("mat-form-field-has-label",t._hasFloatingLabel())("mat-form-field-hide-placeholder",t._hideControlPlaceholder())("mat-form-field-disabled",t._control.disabled)("mat-form-field-autofilled",t._control.autofilled)("mat-focused",t._control.focused)("mat-accent","accent"==t.color)("mat-warn","warn"==t.color)("ng-untouched",t._shouldForward("untouched"))("ng-touched",t._shouldForward("touched"))("ng-pristine",t._shouldForward("pristine"))("ng-dirty",t._shouldForward("dirty"))("ng-valid",t._shouldForward("valid"))("ng-invalid",t._shouldForward("invalid"))("ng-pending",t._shouldForward("pending"))("_mat-animation-noopable",!t._animationsEnabled)},inputs:{color:"color",floatLabel:"floatLabel",appearance:"appearance",hideRequiredMarker:"hideRequiredMarker",hintLabel:"hintLabel"},exportAs:["matFormField"],features:[Ja([{provide:FO,useExisting:e}]),vr],ngContentSelectors:AO,decls:15,vars:8,consts:[[1,"mat-form-field-wrapper"],[1,"mat-form-field-flex",3,"click"],["connectionContainer",""],[4,"ngIf"],["class","mat-form-field-prefix",4,"ngIf"],[1,"mat-form-field-infix"],["inputContainer",""],[1,"mat-form-field-label-wrapper"],["class","mat-form-field-label",3,"cdkObserveContentDisabled","id","mat-empty","mat-form-field-empty","mat-accent","mat-warn","ngSwitch","cdkObserveContent",4,"ngIf"],["class","mat-form-field-suffix",4,"ngIf"],["class","mat-form-field-underline",4,"ngIf"],[1,"mat-form-field-subscript-wrapper",3,"ngSwitch"],[4,"ngSwitchCase"],["class","mat-form-field-hint-wrapper",4,"ngSwitchCase"],[1,"mat-form-field-outline"],[1,"mat-form-field-outline-start"],[1,"mat-form-field-outline-gap"],[1,"mat-form-field-outline-end"],[1,"mat-form-field-outline","mat-form-field-outline-thick"],[1,"mat-form-field-prefix"],[1,"mat-form-field-label",3,"cdkObserveContentDisabled","id","ngSwitch","cdkObserveContent"],["label",""],["class","mat-placeholder-required mat-form-field-required-marker","aria-hidden","true",4,"ngIf"],["aria-hidden","true",1,"mat-placeholder-required","mat-form-field-required-marker"],[1,"mat-form-field-suffix"],[1,"mat-form-field-underline"],["underline",""],[1,"mat-form-field-ripple"],[1,"mat-form-field-hint-wrapper"],["class","mat-hint",3,"id",4,"ngIf"],[1,"mat-form-field-hint-spacer"],[1,"mat-hint",3,"id"]],template:function(e,t){1&e&&(sa(xO),Hr(0,"div",0),Hr(1,"div",1,2),Xr("click",function(e){return t._control.onContainerClick&&t._control.onContainerClick(e)}),Fr(3,uO,9,0,"ng-container",3),Fr(4,hO,2,0,"div",4),Hr(5,"div",5,6),oa(7),Hr(8,"span",7),Fr(9,mO,5,16,"label",8),jr(),jr(),Fr(10,bO,2,0,"div",9),jr(),Fr(11,vO,3,4,"div",10),Hr(12,"div",11),Fr(13,yO,2,1,"div",12),Fr(14,_O,5,2,"div",13),jr(),jr()),2&e&&(no(3),Vr("ngIf","outline"==t.appearance),no(1),Vr("ngIf",t._prefixChildren.length),no(5),Vr("ngIf",t._hasFloatingLabel()),no(1),Vr("ngIf",t._suffixChildren.length),no(1),Vr("ngIf","outline"!=t.appearance),no(1),Vr("ngSwitch",t._getDisplayedMessages()),no(1),Vr("ngSwitchCase","error"),no(1),Vr("ngSwitchCase","hint"))},directives:[Wu,Yu,Zu,zP],styles:[".mat-form-field{display:inline-block;position:relative;text-align:left}[dir=rtl] .mat-form-field{text-align:right}.mat-form-field-wrapper{position:relative}.mat-form-field-flex{display:inline-flex;align-items:baseline;box-sizing:border-box;width:100%}.mat-form-field-prefix,.mat-form-field-suffix{white-space:nowrap;flex:none;position:relative}.mat-form-field-infix{display:block;position:relative;flex:auto;min-width:0;width:180px}.cdk-high-contrast-active .mat-form-field-infix{border-image:linear-gradient(transparent, transparent)}.mat-form-field-label-wrapper{position:absolute;left:0;box-sizing:content-box;width:100%;height:100%;overflow:hidden;pointer-events:none}[dir=rtl] .mat-form-field-label-wrapper{left:auto;right:0}.mat-form-field-label{position:absolute;left:0;font:inherit;pointer-events:none;width:100%;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;transform-origin:0 0;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),color 400ms cubic-bezier(0.25, 0.8, 0.25, 1),width 400ms cubic-bezier(0.25, 0.8, 0.25, 1);display:none}[dir=rtl] .mat-form-field-label{transform-origin:100% 0;left:auto;right:0}.mat-form-field-empty.mat-form-field-label,.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-label{display:block}.mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-label-wrapper .mat-form-field-label{display:none}.mat-form-field-can-float .mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-label-wrapper .mat-form-field-label{display:block;transition:none}.mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label,.mat-input-server[placeholder]:not(:placeholder-shown)+.mat-form-field-label-wrapper .mat-form-field-label{display:none}.mat-form-field-can-float .mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label,.mat-form-field-can-float .mat-input-server[placeholder]:not(:placeholder-shown)+.mat-form-field-label-wrapper .mat-form-field-label{display:block}.mat-form-field-label:not(.mat-form-field-empty){transition:none}.mat-form-field-underline{position:absolute;width:100%;pointer-events:none;transform:scale3d(1, 1.0001, 1)}.mat-form-field-ripple{position:absolute;left:0;width:100%;transform-origin:50%;transform:scaleX(0.5);opacity:0;transition:background-color 300ms cubic-bezier(0.55, 0, 0.55, 0.2)}.mat-form-field.mat-focused .mat-form-field-ripple,.mat-form-field.mat-form-field-invalid .mat-form-field-ripple{opacity:1;transform:none;transition:transform 300ms cubic-bezier(0.25, 0.8, 0.25, 1),opacity 100ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 300ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-subscript-wrapper{position:absolute;box-sizing:border-box;width:100%;overflow:hidden}.mat-form-field-subscript-wrapper .mat-icon,.mat-form-field-label-wrapper .mat-icon{width:1em;height:1em;font-size:inherit;vertical-align:baseline}.mat-form-field-hint-wrapper{display:flex}.mat-form-field-hint-spacer{flex:1 0 1em}.mat-error{display:block}.mat-form-field-control-wrapper{position:relative}.mat-form-field-hint-end{order:1}.mat-form-field._mat-animation-noopable .mat-form-field-label,.mat-form-field._mat-animation-noopable .mat-form-field-ripple{transition:none}\n",'.mat-form-field-appearance-fill .mat-form-field-flex{border-radius:4px 4px 0 0;padding:.75em .75em 0 .75em}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-form-field-flex{outline:solid 1px}.mat-form-field-appearance-fill .mat-form-field-underline::before{content:"";display:block;position:absolute;bottom:0;height:1px;width:100%}.mat-form-field-appearance-fill .mat-form-field-ripple{bottom:0;height:2px}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-form-field-ripple{height:0;border-top:solid 2px}.mat-form-field-appearance-fill:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{opacity:1;transform:none;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-fill._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{transition:none}.mat-form-field-appearance-fill .mat-form-field-subscript-wrapper{padding:0 1em}\n','.mat-input-element{font:inherit;background:transparent;color:currentColor;border:none;outline:none;padding:0;margin:0;width:100%;max-width:100%;vertical-align:bottom;text-align:inherit;box-sizing:content-box}.mat-input-element:-moz-ui-invalid{box-shadow:none}.mat-input-element::-ms-clear,.mat-input-element::-ms-reveal{display:none}.mat-input-element,.mat-input-element::-webkit-search-cancel-button,.mat-input-element::-webkit-search-decoration,.mat-input-element::-webkit-search-results-button,.mat-input-element::-webkit-search-results-decoration{-webkit-appearance:none}.mat-input-element::-webkit-contacts-auto-fill-button,.mat-input-element::-webkit-caps-lock-indicator,.mat-input-element::-webkit-credentials-auto-fill-button{visibility:hidden}.mat-input-element[type=date],.mat-input-element[type=datetime],.mat-input-element[type=datetime-local],.mat-input-element[type=month],.mat-input-element[type=week],.mat-input-element[type=time]{line-height:1}.mat-input-element[type=date]::after,.mat-input-element[type=datetime]::after,.mat-input-element[type=datetime-local]::after,.mat-input-element[type=month]::after,.mat-input-element[type=week]::after,.mat-input-element[type=time]::after{content:" ";white-space:pre;width:1px}.mat-input-element::-webkit-inner-spin-button,.mat-input-element::-webkit-calendar-picker-indicator,.mat-input-element::-webkit-clear-button{font-size:.75em}.mat-input-element::placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::placeholder:-ms-input-placeholder{-ms-user-select:text}.mat-input-element::-moz-placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::-moz-placeholder:-ms-input-placeholder{-ms-user-select:text}.mat-input-element::-webkit-input-placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::-webkit-input-placeholder:-ms-input-placeholder{-ms-user-select:text}.mat-input-element:-ms-input-placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element:-ms-input-placeholder:-ms-input-placeholder{-ms-user-select:text}.mat-form-field-hide-placeholder .mat-input-element::placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.mat-form-field-hide-placeholder .mat-input-element::-moz-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.mat-form-field-hide-placeholder .mat-input-element::-webkit-input-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.mat-form-field-hide-placeholder .mat-input-element:-ms-input-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}textarea.mat-input-element{resize:vertical;overflow:auto}textarea.mat-input-element.cdk-textarea-autosize{resize:none}textarea.mat-input-element{padding:2px 0;margin:-2px 0}select.mat-input-element{-moz-appearance:none;-webkit-appearance:none;position:relative;background-color:transparent;display:inline-flex;box-sizing:border-box;padding-top:1em;top:-1em;margin-bottom:-1em}select.mat-input-element::-ms-expand{display:none}select.mat-input-element::-moz-focus-inner{border:0}select.mat-input-element:not(:disabled){cursor:pointer}select.mat-input-element::-ms-value{color:inherit;background:none}.mat-focused .cdk-high-contrast-active select.mat-input-element::-ms-value{color:inherit}.mat-form-field-type-mat-native-select .mat-form-field-infix::after{content:"";width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;position:absolute;top:50%;right:0;margin-top:-2.5px;pointer-events:none}[dir=rtl] .mat-form-field-type-mat-native-select .mat-form-field-infix::after{right:auto;left:0}.mat-form-field-type-mat-native-select .mat-input-element{padding-right:15px}[dir=rtl] .mat-form-field-type-mat-native-select .mat-input-element{padding-right:0;padding-left:15px}.mat-form-field-type-mat-native-select .mat-form-field-label-wrapper{max-width:calc(100% - 10px)}.mat-form-field-type-mat-native-select.mat-form-field-appearance-outline .mat-form-field-infix::after{margin-top:-5px}.mat-form-field-type-mat-native-select.mat-form-field-appearance-fill .mat-form-field-infix::after{margin-top:-10px}\n',".mat-form-field-appearance-legacy .mat-form-field-label{transform:perspective(100px);-ms-transform:none}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon{width:1em}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon-button,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon-button{font:inherit;vertical-align:baseline}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon-button .mat-icon{font-size:inherit}.mat-form-field-appearance-legacy .mat-form-field-underline{height:1px}.cdk-high-contrast-active .mat-form-field-appearance-legacy .mat-form-field-underline{height:0;border-top:solid 1px}.mat-form-field-appearance-legacy .mat-form-field-ripple{top:0;height:2px;overflow:hidden}.cdk-high-contrast-active .mat-form-field-appearance-legacy .mat-form-field-ripple{height:0;border-top:solid 2px}.mat-form-field-appearance-legacy.mat-form-field-disabled .mat-form-field-underline{background-position:0;background-color:transparent}.cdk-high-contrast-active .mat-form-field-appearance-legacy.mat-form-field-disabled .mat-form-field-underline{border-top-style:dotted;border-top-width:2px}.mat-form-field-appearance-legacy.mat-form-field-invalid:not(.mat-focused) .mat-form-field-ripple{height:1px}\n",".mat-form-field-appearance-outline .mat-form-field-wrapper{margin:.25em 0}.mat-form-field-appearance-outline .mat-form-field-flex{padding:0 .75em 0 .75em;margin-top:-0.25em;position:relative}.mat-form-field-appearance-outline .mat-form-field-prefix,.mat-form-field-appearance-outline .mat-form-field-suffix{top:.25em}.mat-form-field-appearance-outline .mat-form-field-outline{display:flex;position:absolute;top:.25em;left:0;right:0;bottom:0;pointer-events:none}.mat-form-field-appearance-outline .mat-form-field-outline-start,.mat-form-field-appearance-outline .mat-form-field-outline-end{border:1px solid currentColor;min-width:5px}.mat-form-field-appearance-outline .mat-form-field-outline-start{border-radius:5px 0 0 5px;border-right-style:none}[dir=rtl] .mat-form-field-appearance-outline .mat-form-field-outline-start{border-right-style:solid;border-left-style:none;border-radius:0 5px 5px 0}.mat-form-field-appearance-outline .mat-form-field-outline-end{border-radius:0 5px 5px 0;border-left-style:none;flex-grow:1}[dir=rtl] .mat-form-field-appearance-outline .mat-form-field-outline-end{border-left-style:solid;border-right-style:none;border-radius:5px 0 0 5px}.mat-form-field-appearance-outline .mat-form-field-outline-gap{border-radius:.000001px;border:1px solid currentColor;border-left-style:none;border-right-style:none}.mat-form-field-appearance-outline.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-outline-gap{border-top-color:transparent}.mat-form-field-appearance-outline .mat-form-field-outline-thick{opacity:0}.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-start,.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-end,.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-gap{border-width:2px}.mat-form-field-appearance-outline.mat-focused .mat-form-field-outline,.mat-form-field-appearance-outline.mat-form-field-invalid .mat-form-field-outline{opacity:0;transition:opacity 100ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-outline.mat-focused .mat-form-field-outline-thick,.mat-form-field-appearance-outline.mat-form-field-invalid .mat-form-field-outline-thick{opacity:1}.mat-form-field-appearance-outline:not(.mat-form-field-disabled) .mat-form-field-flex:hover .mat-form-field-outline{opacity:0;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-outline:not(.mat-form-field-disabled) .mat-form-field-flex:hover .mat-form-field-outline-thick{opacity:1}.mat-form-field-appearance-outline .mat-form-field-subscript-wrapper{padding:0 1em}.mat-form-field-appearance-outline._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-outline,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-start,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-end,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-gap{transition:none}\n",".mat-form-field-appearance-standard .mat-form-field-flex{padding-top:.75em}.mat-form-field-appearance-standard .mat-form-field-underline{height:1px}.cdk-high-contrast-active .mat-form-field-appearance-standard .mat-form-field-underline{height:0;border-top:solid 1px}.mat-form-field-appearance-standard .mat-form-field-ripple{bottom:0;height:2px}.cdk-high-contrast-active .mat-form-field-appearance-standard .mat-form-field-ripple{height:0;border-top:solid 2px}.mat-form-field-appearance-standard.mat-form-field-disabled .mat-form-field-underline{background-position:0;background-color:transparent}.cdk-high-contrast-active .mat-form-field-appearance-standard.mat-form-field-disabled .mat-form-field-underline{border-top-style:dotted;border-top-width:2px}.mat-form-field-appearance-standard:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{opacity:1;transform:none;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-standard._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{transition:none}\n"],encapsulation:2,data:{animation:[SO.transitionMessages]},changeDetection:0}),e})(),zO=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=fe({imports:[[uh,CE,VP],CE]}),e})();function VO(e,t=bP){var n;const i=(n=e)instanceof Date&&!isNaN(+n)?+e-t.now():Math.abs(e);return e=>e.lift(new NO(i,t))}class NO{constructor(e,t){this.delay=e,this.scheduler=t}call(e,t){return t.subscribe(new HO(e,this.delay,this.scheduler))}}class HO extends g{constructor(e,t,n){super(e),this.delay=t,this.scheduler=n,this.queue=[],this.active=!1,this.errored=!1}static dispatch(e){const t=e.source,n=t.queue,i=e.scheduler,s=e.destination;for(;n.length>0&&n[0].time-i.now()<=0;)n.shift().notification.observe(s);if(n.length>0){const t=Math.max(0,n[0].time-i.now());this.schedule(e,t)}else this.unsubscribe(),t.active=!1}_schedule(e){this.active=!0,this.destination.add(e.schedule(HO.dispatch,this.delay,{source:this,destination:this.destination,scheduler:e}))}scheduleNotification(e){if(!0===this.errored)return;const t=this.scheduler,n=new jO(t.now()+this.delay,e);this.queue.push(n),!1===this.active&&this._schedule(t)}_next(e){this.scheduleNotification(yC.createNext(e))}_error(e){this.errored=!0,this.queue=[],this.destination.error(e),this.unsubscribe()}_complete(){this.scheduleNotification(yC.createComplete()),this.unsubscribe()}}class jO{constructor(e,t){this.time=e,this.notification=t}}const UO={provide:new Xn("mat-autocomplete-scroll-strategy"),deps:[eO],useFactory:function(e){return()=>e.scrollStrategies.reposition()}};let WO=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=fe({providers:[UO],imports:[[rO,tD,CE,uh],CD,tD,CE]}),e})(),GO=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=fe({imports:[[uE,CE],CE]}),e})();class $O{constructor(e){this.total=e}call(e,t){return t.subscribe(new qO(e,this.total))}}class qO extends g{constructor(e,t){super(e),this.total=t,this.count=0}_next(e){++this.count>this.total&&this.destination.next(e)}}const YO=new Set;let ZO,QO=(()=>{class e{constructor(e){this._platform=e,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):XO}matchMedia(e){return this._platform.WEBKIT&&function(e){if(!YO.has(e))try{ZO||(ZO=document.createElement("style"),ZO.setAttribute("type","text/css"),document.head.appendChild(ZO)),ZO.sheet&&(ZO.sheet.insertRule(`@media ${e} {.fx-query-test{ }}`,0),YO.add(e))}catch(t){console.error(t)}}(e),this._matchMedia(e)}}return e.\u0275fac=function(t){return new(t||e)(gi(MP))},e.\u0275prov=pe({factory:function(){return new e(gi(MP))},token:e,providedIn:"root"}),e})();function XO(e){return{matches:"all"===e||""===e,media:e,addListener:()=>{},removeListener:()=>{}}}let KO=(()=>{class e{constructor(e,t){this._mediaMatcher=e,this._zone=t,this._queries=new Map,this._destroySubject=new A}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return JO(CP(e)).some(e=>this._registerQuery(e).mql.matches)}observe(e){let t=Qb(JO(CP(e)).map(e=>this._registerQuery(e).observable));return t=ev(t.pipe(lv(1)),t.pipe(e=>e.lift(new $O(1)),vP(0))),t.pipe(k(e=>{const t={matches:!1,breakpoints:{}};return e.forEach(({matches:e,query:n})=>{t.matches=t.matches||e,t.breakpoints[n]=e}),t}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);const t=this._mediaMatcher.matchMedia(e),n={observable:new v(e=>{const n=t=>this._zone.run(()=>e.next(t));return t.addListener(n),()=>{t.removeListener(n)}}).pipe(uv(t),k(({matches:t})=>({query:e,matches:t})),vD(this._destroySubject)),mql:t};return this._queries.set(e,n),n}}return e.\u0275fac=function(t){return new(t||e)(gi(QO),gi(ad))},e.\u0275prov=pe({factory:function(){return new e(gi(QO),gi(ad))},token:e,providedIn:"root"}),e})();function JO(e){return e.map(e=>e.split(",")).reduce((e,t)=>e.concat(t)).map(e=>e.trim())}function eM(e,t){}const tM=new Xn("MatBottomSheetData");class nM{constructor(){this.data=null,this.hasBackdrop=!0,this.disableClose=!1,this.ariaLabel=null,this.closeOnNavigation=!0,this.autoFocus=!1,this.restoreFocus=!0}}const iM={bottomSheetState:Jh("state",[ip("void, hidden",np({transform:"translateY(100%)"})),ip("visible",np({transform:"translateY(0%)"})),op("visible => void, visible => hidden",ep(`${wE.COMPLEX} ${yE.ACCELERATION_CURVE}`)),op("void => visible",ep(`${wE.EXITING} ${yE.DECELERATION_CURVE}`))])};let sM=(()=>{class e extends eS{constructor(e,t,n,i,s,o){super(),this._elementRef=e,this._changeDetectorRef=t,this._focusTrapFactory=n,this.bottomSheetConfig=o,this._animationState="void",this._animationStateChanged=new yc,this._elementFocusedBeforeOpened=null,this.attachDomPortal=e=>(this._validatePortalAttached(),this._setPanelClass(),this._savePreviouslyFocusedElement(),this._portalOutlet.attachDomPortal(e)),this._document=s,this._breakpointSubscription=i.observe(["(min-width: 960px) and (max-width: 1279.98px)","(min-width: 1280px) and (max-width: 1919.98px)","(min-width: 1920px)"]).subscribe(()=>{this._toggleClass("mat-bottom-sheet-container-medium",i.isMatched("(min-width: 960px) and (max-width: 1279.98px)")),this._toggleClass("mat-bottom-sheet-container-large",i.isMatched("(min-width: 1280px) and (max-width: 1919.98px)")),this._toggleClass("mat-bottom-sheet-container-xlarge",i.isMatched("(min-width: 1920px)"))})}attachComponentPortal(e){return this._validatePortalAttached(),this._setPanelClass(),this._savePreviouslyFocusedElement(),this._portalOutlet.attachComponentPortal(e)}attachTemplatePortal(e){return this._validatePortalAttached(),this._setPanelClass(),this._savePreviouslyFocusedElement(),this._portalOutlet.attachTemplatePortal(e)}enter(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.detectChanges())}exit(){this._destroyed||(this._animationState="hidden",this._changeDetectorRef.markForCheck())}ngOnDestroy(){this._breakpointSubscription.unsubscribe(),this._destroyed=!0}_onAnimationDone(e){"hidden"===e.toState?this._restoreFocus():"visible"===e.toState&&this._trapFocus(),this._animationStateChanged.emit(e)}_onAnimationStart(e){this._animationStateChanged.emit(e)}_toggleClass(e,t){const n=this._elementRef.nativeElement.classList;t?n.add(e):n.remove(e)}_validatePortalAttached(){this._portalOutlet.hasAttached()}_setPanelClass(){const e=this._elementRef.nativeElement,t=this.bottomSheetConfig.panelClass;Array.isArray(t)?t.forEach(t=>e.classList.add(t)):t&&e.classList.add(t)}_trapFocus(){const e=this._elementRef.nativeElement;if(this._focusTrap||(this._focusTrap=this._focusTrapFactory.create(e)),this.bottomSheetConfig.autoFocus)this._focusTrap.focusInitialElementWhenReady();else{const t=this._getActiveElement();t===e||e.contains(t)||e.focus()}}_restoreFocus(){const e=this._elementFocusedBeforeOpened;if(this.bottomSheetConfig.restoreFocus&&e&&"function"==typeof e.focus){const t=this._getActiveElement(),n=this._elementRef.nativeElement;t&&t!==this._document.body&&t!==n&&!n.contains(t)||e.focus()}this._focusTrap&&this._focusTrap.destroy()}_savePreviouslyFocusedElement(){this._elementFocusedBeforeOpened=this._getActiveElement(),this._elementRef.nativeElement.focus&&Promise.resolve().then(()=>this._elementRef.nativeElement.focus())}_getActiveElement(){var e;const t=this._document.activeElement;return(null===(e=null==t?void 0:t.shadowRoot)||void 0===e?void 0:e.activeElement)||t}}return e.\u0275fac=function(t){return new(t||e)(zr(rl),zr(Tl),zr(eE),zr(KO),zr(Hd,8),zr(nM))},e.\u0275cmp=$e({type:e,selectors:[["mat-bottom-sheet-container"]],viewQuery:function(e,t){if(1&e&&Tc(nS,3),2&e){let e;Mc(e=Rc())&&(t._portalOutlet=e.first)}},hostAttrs:["tabindex","-1","role","dialog","aria-modal","true",1,"mat-bottom-sheet-container"],hostVars:2,hostBindings:function(e,t){1&e&&Kr("@state.start",function(e){return t._onAnimationStart(e)})("@state.done",function(e){return t._onAnimationDone(e)}),2&e&&(Ir("aria-label",null==t.bottomSheetConfig?null:t.bottomSheetConfig.ariaLabel),Ba("@state",t._animationState))},features:[vr],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,t){1&e&&Fr(0,eM,0,0,"ng-template",0)},directives:[nS],styles:[".mat-bottom-sheet-container{padding:8px 16px;min-width:100vw;box-sizing:border-box;display:block;outline:0;max-height:80vh;overflow:auto}.cdk-high-contrast-active .mat-bottom-sheet-container{outline:1px solid}.mat-bottom-sheet-container-xlarge,.mat-bottom-sheet-container-large,.mat-bottom-sheet-container-medium{border-top-left-radius:4px;border-top-right-radius:4px}.mat-bottom-sheet-container-medium{min-width:384px;max-width:calc(100vw - 128px)}.mat-bottom-sheet-container-large{min-width:512px;max-width:calc(100vw - 256px)}.mat-bottom-sheet-container-xlarge{min-width:576px;max-width:calc(100vw - 384px)}\n"],encapsulation:2,data:{animation:[iM.bottomSheetState]}}),e})(),oM=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=fe({imports:[[rO,CE,iS],CE]}),e})();class rM{constructor(e,t){this._overlayRef=t,this._afterDismissed=new A,this._afterOpened=new A,this.containerInstance=e,this.disableClose=e.bottomSheetConfig.disableClose,e._animationStateChanged.pipe(db(e=>"done"===e.phaseName&&"visible"===e.toState),lv(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),e._animationStateChanged.pipe(db(e=>"done"===e.phaseName&&"hidden"===e.toState),lv(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),t.dispose()}),t.detachments().pipe(lv(1)).subscribe(()=>{this._afterDismissed.next(this._result),this._afterDismissed.complete()}),G(t.backdropClick(),t.keydownEvents().pipe(db(e=>27===e.keyCode))).subscribe(e=>{this.disableClose||"keydown"===e.type&&mP(e)||(e.preventDefault(),this.dismiss())})}dismiss(e){this._afterDismissed.closed||(this.containerInstance._animationStateChanged.pipe(db(e=>"start"===e.phaseName),lv(1)).subscribe(e=>{this._closeFallbackTimeout=setTimeout(()=>{this._overlayRef.dispose()},e.totalTime+100),this._overlayRef.detachBackdrop()}),this._result=e,this.containerInstance.exit())}afterDismissed(){return this._afterDismissed}afterOpened(){return this._afterOpened}backdropClick(){return this._overlayRef.backdropClick()}keydownEvents(){return this._overlayRef.keydownEvents()}}const aM=new Xn("mat-bottom-sheet-default-options");let lM=(()=>{class e{constructor(e,t,n,i){this._overlay=e,this._injector=t,this._parentBottomSheet=n,this._defaultOptions=i,this._bottomSheetRefAtThisLevel=null}get _openedBottomSheetRef(){const e=this._parentBottomSheet;return e?e._openedBottomSheetRef:this._bottomSheetRefAtThisLevel}set _openedBottomSheetRef(e){this._parentBottomSheet?this._parentBottomSheet._openedBottomSheetRef=e:this._bottomSheetRefAtThisLevel=e}open(e,t){const n=function(e,t){return Object.assign(Object.assign({},e),t)}(this._defaultOptions||new nM,t),i=this._createOverlay(n),s=this._attachContainer(i,n),o=new rM(s,i);if(e instanceof zl)s.attachTemplatePortal(new KC(e,null,{$implicit:n.data,bottomSheetRef:o}));else{const t=new XC(e,void 0,this._createInjector(n,o)),i=s.attachComponentPortal(t);o.instance=i.instance}return o.afterDismissed().subscribe(()=>{this._openedBottomSheetRef==o&&(this._openedBottomSheetRef=null)}),this._openedBottomSheetRef?(this._openedBottomSheetRef.afterDismissed().subscribe(()=>o.containerInstance.enter()),this._openedBottomSheetRef.dismiss()):o.containerInstance.enter(),this._openedBottomSheetRef=o,o}dismiss(e){this._openedBottomSheetRef&&this._openedBottomSheetRef.dismiss(e)}ngOnDestroy(){this._bottomSheetRefAtThisLevel&&this._bottomSheetRefAtThisLevel.dismiss()}_attachContainer(e,t){const n=mr.create({parent:t&&t.viewContainerRef&&t.viewContainerRef.injector||this._injector,providers:[{provide:nM,useValue:t}]}),i=new XC(sM,t.viewContainerRef,n);return e.attach(i).instance}_createOverlay(e){const t=new FD({direction:e.direction,hasBackdrop:e.hasBackdrop,disposeOnNavigation:e.closeOnNavigation,maxWidth:"100%",scrollStrategy:e.scrollStrategy||this._overlay.scrollStrategies.block(),positionStrategy:this._overlay.position().global().centerHorizontally().bottom("0")});return e.backdropClass&&(t.backdropClass=e.backdropClass),this._overlay.create(t)}_createInjector(e,t){const n=e&&e.viewContainerRef&&e.viewContainerRef.injector,i=[{provide:rM,useValue:t},{provide:tM,useValue:e.data}];return!e.direction||n&&n.get(pE,null)||i.push({provide:pE,useValue:{value:e.direction,change:lb()}}),mr.create({parent:n||this._injector,providers:i})}}return e.\u0275fac=function(t){return new(t||e)(gi(eO),gi(mr),gi(e,12),gi(aM,8))},e.\u0275prov=pe({factory:function(){return new e(gi(eO),gi(er),gi(e,12),gi(aM,8))},token:e,providedIn:oM}),e})();const cM=["mat-button",""],dM=["*"],uM=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"];class hM{constructor(e){this._elementRef=e}}const pM=kE(SE(PE(hM)));let gM=(()=>{class e extends pM{constructor(e,t,n){super(e),this._focusMonitor=t,this._animationMode=n,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const i of uM)this._hasHostAttributes(i)&&this._getHostElement().classList.add(i);e.nativeElement.classList.add("mat-button-base"),this.isRoundButton&&(this.color="accent")}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(e,t){e?this._focusMonitor.focusVia(this._getHostElement(),e,t):this._getHostElement().focus(t)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...e){return e.some(e=>this._getHostElement().hasAttribute(e))}}return e.\u0275fac=function(t){return new(t||e)(zr(rl),zr(lE),zr(_f,8))},e.\u0275cmp=$e({type:e,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-icon-button",""],["button","mat-fab",""],["button","mat-mini-fab",""],["button","mat-stroked-button",""],["button","mat-flat-button",""]],viewQuery:function(e,t){if(1&e&&Tc(NE,1),2&e){let e;Mc(e=Rc())&&(t.ripple=e.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(e,t){2&e&&(Ir("disabled",t.disabled||null),ma("_mat-animation-noopable","NoopAnimations"===t._animationMode)("mat-button-disabled",t.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[vr],attrs:cM,ngContentSelectors:dM,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(e,t){1&e&&(sa(),Hr(0,"span",0),oa(1),jr(),Ur(2,"span",1),Ur(3,"span",2)),2&e&&(no(2),ma("mat-button-ripple-round",t.isRoundButton||t.isIconButton),Vr("matRippleDisabled",t._isRippleDisabled())("matRippleCentered",t.isIconButton)("matRippleTrigger",t._getHostElement()))},directives:[NE],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n"],encapsulation:2,changeDetection:0}),e})(),fM=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=fe({imports:[[HE,CE],CE]}),e})(),mM=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=fe({imports:[[CE],CE]}),e})(),bM=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=fe({}),e})(),vM=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=fe({imports:[[HE,CE,VP,bM],CE,bM]}),e})();function yM(e,t){}class wM{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.autoFocus=!0,this.restoreFocus=!0,this.closeOnNavigation=!0}}const _M={dialogContainer:Jh("dialogContainer",[ip("void, exit",np({opacity:0,transform:"scale(0.7)"})),ip("enter",np({transform:"none"})),op("* => enter",ep("150ms cubic-bezier(0, 0, 0.2, 1)",np({transform:"none",opacity:1}))),op("* => void, * => exit",ep("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",np({opacity:0})))])};let xM=(()=>{class e extends eS{constructor(e,t,n,i,s,o){super(),this._elementRef=e,this._focusTrapFactory=t,this._changeDetectorRef=n,this._config=s,this._focusMonitor=o,this._animationStateChanged=new yc,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=e=>(this._portalOutlet.hasAttached(),this._portalOutlet.attachDomPortal(e)),this._ariaLabelledBy=s.ariaLabelledBy||null,this._document=i}_initializeWithAttachedContent(){this._setupFocusTrap(),this._capturePreviouslyFocusedElement(),this._focusDialogContainer()}attachComponentPortal(e){return this._portalOutlet.hasAttached(),this._portalOutlet.attachComponentPortal(e)}attachTemplatePortal(e){return this._portalOutlet.hasAttached(),this._portalOutlet.attachTemplatePortal(e)}_recaptureFocus(){this._containsFocus()||(!this._config.autoFocus||!this._focusTrap.focusInitialElement())&&this._elementRef.nativeElement.focus()}_trapFocus(){this._config.autoFocus?this._focusTrap.focusInitialElementWhenReady():this._containsFocus()||this._elementRef.nativeElement.focus()}_restoreFocus(){const e=this._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&e&&"function"==typeof e.focus){const t=this._getActiveElement(),n=this._elementRef.nativeElement;t&&t!==this._document.body&&t!==n&&!n.contains(t)||(this._focusMonitor?(this._focusMonitor.focusVia(e,this._closeInteractionType),this._closeInteractionType=null):e.focus())}this._focusTrap&&this._focusTrap.destroy()}_setupFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement)}_capturePreviouslyFocusedElement(){this._document&&(this._elementFocusedBeforeDialogWasOpened=this._getActiveElement())}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const e=this._elementRef.nativeElement,t=this._getActiveElement();return e===t||e.contains(t)}_getActiveElement(){var e;const t=this._document.activeElement;return(null===(e=null==t?void 0:t.shadowRoot)||void 0===e?void 0:e.activeElement)||t}}return e.\u0275fac=function(t){return new(t||e)(zr(rl),zr(eE),zr(Tl),zr(Hd,8),zr(wM),zr(lE))},e.\u0275dir=Ke({type:e,viewQuery:function(e,t){if(1&e&&Tc(nS,3),2&e){let e;Mc(e=Rc())&&(t._portalOutlet=e.first)}},features:[vr]}),e})(),AM=(()=>{class e extends xM{constructor(){super(...arguments),this._state="enter"}_onAnimationDone({toState:e,totalTime:t}){"enter"===e?(this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:t})):"exit"===e&&(this._restoreFocus(),this._animationStateChanged.next({state:"closed",totalTime:t}))}_onAnimationStart({toState:e,totalTime:t}){"enter"===e?this._animationStateChanged.next({state:"opening",totalTime:t}):"exit"!==e&&"void"!==e||this._animationStateChanged.next({state:"closing",totalTime:t})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}}return e.\u0275fac=function(t){return CM(t||e)},e.\u0275cmp=$e({type:e,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(e,t){1&e&&Kr("@dialogContainer.start",function(e){return t._onAnimationStart(e)})("@dialogContainer.done",function(e){return t._onAnimationDone(e)}),2&e&&(Fa("id",t._id),Ir("role",t._config.role)("aria-labelledby",t._config.ariaLabel?null:t._ariaLabelledBy)("aria-label",t._config.ariaLabel)("aria-describedby",t._config.ariaDescribedBy||null),Ba("@dialogContainer",t._state))},features:[vr],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,t){1&e&&Fr(0,yM,0,0,"ng-template",0)},directives:[nS],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[_M.dialogContainer]}}),e})();const CM=$n(AM);let SM=0;class kM{constructor(e,t,n="mat-dialog-"+SM++){this._overlayRef=e,this._containerInstance=t,this.id=n,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new A,this._afterClosed=new A,this._beforeClosed=new A,this._state=0,t._id=n,t._animationStateChanged.pipe(db(e=>"opened"===e.state),lv(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),t._animationStateChanged.pipe(db(e=>"closed"===e.state),lv(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),e.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._afterClosed.next(this._result),this._afterClosed.complete(),this.componentInstance=null,this._overlayRef.dispose()}),e.keydownEvents().pipe(db(e=>27===e.keyCode&&!this.disableClose&&!mP(e))).subscribe(e=>{e.preventDefault(),PM(this,"keyboard")}),e.backdropClick().subscribe(()=>{this.disableClose?this._containerInstance._recaptureFocus():PM(this,"mouse")})}close(e){this._result=e,this._containerInstance._animationStateChanged.pipe(db(e=>"closing"===e.state),lv(1)).subscribe(t=>{this._beforeClosed.next(e),this._beforeClosed.complete(),this._overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),t.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._afterClosed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._overlayRef.backdropClick()}keydownEvents(){return this._overlayRef.keydownEvents()}updatePosition(e){let t=this._getPositionStrategy();return e&&(e.left||e.right)?e.left?t.left(e.left):t.right(e.right):t.centerHorizontally(),e&&(e.top||e.bottom)?e.top?t.top(e.top):t.bottom(e.bottom):t.centerVertically(),this._overlayRef.updatePosition(),this}updateSize(e="",t=""){return this._overlayRef.updateSize({width:e,height:t}),this._overlayRef.updatePosition(),this}addPanelClass(e){return this._overlayRef.addPanelClass(e),this}removePanelClass(e){return this._overlayRef.removePanelClass(e),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._overlayRef.dispose()}_getPositionStrategy(){return this._overlayRef.getConfig().positionStrategy}}function PM(e,t,n){return void 0!==e._containerInstance&&(e._containerInstance._closeInteractionType=t),e.close(n)}const EM=new Xn("MatDialogData"),DM=new Xn("mat-dialog-default-options"),OM=new Xn("mat-dialog-scroll-strategy"),MM={provide:OM,deps:[eO],useFactory:function(e){return()=>e.scrollStrategies.block()}};let TM=(()=>{class e{constructor(e,t,n,i,s,o,r,a,l){this._overlay=e,this._injector=t,this._defaultOptions=n,this._parentDialog=i,this._overlayContainer=s,this._dialogRefConstructor=r,this._dialogContainerType=a,this._dialogDataToken=l,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new A,this._afterOpenedAtThisLevel=new A,this._ariaHiddenElements=new Map,this.afterAllClosed=iv(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(uv(void 0))),this._scrollStrategy=o}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(e,t){(t=function(e,t){return Object.assign(Object.assign({},t),e)}(t,this._defaultOptions||new wM)).id&&this.getDialogById(t.id);const n=this._createOverlay(t),i=this._attachDialogContainer(n,t),s=this._attachDialogContent(e,i,n,t);return this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(s),s.afterClosed().subscribe(()=>this._removeOpenDialog(s)),this.afterOpened.next(s),i._initializeWithAttachedContent(),s}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(e){return this.openDialogs.find(t=>t.id===e)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_createOverlay(e){const t=this._getOverlayConfig(e);return this._overlay.create(t)}_getOverlayConfig(e){const t=new FD({positionStrategy:this._overlay.position().global(),scrollStrategy:e.scrollStrategy||this._scrollStrategy(),panelClass:e.panelClass,hasBackdrop:e.hasBackdrop,direction:e.direction,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight,disposeOnNavigation:e.closeOnNavigation});return e.backdropClass&&(t.backdropClass=e.backdropClass),t}_attachDialogContainer(e,t){const n=mr.create({parent:t&&t.viewContainerRef&&t.viewContainerRef.injector||this._injector,providers:[{provide:wM,useValue:t}]}),i=new XC(this._dialogContainerType,t.viewContainerRef,n,t.componentFactoryResolver);return e.attach(i).instance}_attachDialogContent(e,t,n,i){const s=new this._dialogRefConstructor(n,t,i.id);if(e instanceof zl)t.attachTemplatePortal(new KC(e,null,{$implicit:i.data,dialogRef:s}));else{const n=this._createInjector(i,s,t),o=t.attachComponentPortal(new XC(e,i.viewContainerRef,n));s.componentInstance=o.instance}return s.updateSize(i.width,i.height).updatePosition(i.position),s}_createInjector(e,t,n){const i=e&&e.viewContainerRef&&e.viewContainerRef.injector,s=[{provide:this._dialogContainerType,useValue:n},{provide:this._dialogDataToken,useValue:e.data},{provide:this._dialogRefConstructor,useValue:t}];return!e.direction||i&&i.get(pE,null)||s.push({provide:pE,useValue:{value:e.direction,change:lb()}}),mr.create({parent:i||this._injector,providers:s})}_removeOpenDialog(e){const t=this.openDialogs.indexOf(e);t>-1&&(this.openDialogs.splice(t,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((e,t)=>{e?t.setAttribute("aria-hidden",e):t.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const e=this._overlayContainer.getContainerElement();if(e.parentElement){const t=e.parentElement.children;for(let n=t.length-1;n>-1;n--){let i=t[n];i===e||"SCRIPT"===i.nodeName||"STYLE"===i.nodeName||i.hasAttribute("aria-live")||(this._ariaHiddenElements.set(i,i.getAttribute("aria-hidden")),i.setAttribute("aria-hidden","true"))}}}_closeDialogs(e){let t=e.length;for(;t--;)e[t].close()}}return e.\u0275fac=function(t){return new(t||e)(zr(eO),zr(mr),zr(void 0),zr(void 0),zr(UD),zr(void 0),zr(Jn),zr(Jn),zr(Xn))},e.\u0275dir=Ke({type:e}),e})(),IM=(()=>{class e extends TM{constructor(e,t,n,i,s,o,r){super(e,t,i,o,r,s,kM,AM,EM)}}return e.\u0275fac=function(t){return new(t||e)(gi(eO),gi(mr),gi(nu,8),gi(DM,8),gi(OM),gi(e,12),gi(UD))},e.\u0275prov=pe({token:e,factory:e.\u0275fac}),e})(),RM=0,LM=(()=>{class e{constructor(e,t,n){this._dialogRef=e,this._elementRef=t,this._dialog=n,this.id="mat-dialog-title-"+RM++}ngOnInit(){this._dialogRef||(this._dialogRef=function(e,t){let n=e.nativeElement.parentElement;for(;n&&!n.classList.contains("mat-dialog-container");)n=n.parentElement;return n?t.find(e=>e.id===n.id):null}(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{const e=this._dialogRef._containerInstance;e&&!e._ariaLabelledBy&&(e._ariaLabelledBy=this.id)})}}return e.\u0275fac=function(t){return new(t||e)(zr(kM,8),zr(rl),zr(IM))},e.\u0275dir=Ke({type:e,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(e,t){2&e&&Fa("id",t.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),e})(),FM=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Ke({type:e,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),e})(),BM=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Ke({type:e,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"]}),e})(),zM=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=fe({providers:[IM,MM],imports:[[rO,iS,CE],CE]}),e})(),VM=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=fe({}),e})(),NM=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=fe({imports:[[uh,CE,VM,iS]]}),e})();const HM=["*"];function jM(e){return Error(`Unable to find icon with the name "${e}"`)}function UM(e){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${e}".`)}function WM(e){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${e}".`)}class GM{constructor(e,t,n){this.url=e,this.svgText=t,this.options=n}}let $M=(()=>{class e{constructor(e,t,n,i){this._httpClient=e,this._sanitizer=t,this._errorHandler=i,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass="material-icons",this._document=n}addSvgIcon(e,t,n){return this.addSvgIconInNamespace("",e,t,n)}addSvgIconLiteral(e,t,n){return this.addSvgIconLiteralInNamespace("",e,t,n)}addSvgIconInNamespace(e,t,n,i){return this._addSvgIconConfig(e,t,new GM(n,null,i))}addSvgIconResolver(e){return this._resolvers.push(e),this}addSvgIconLiteralInNamespace(e,t,n,i){const s=this._sanitizer.sanitize(is.HTML,n);if(!s)throw WM(n);return this._addSvgIconConfig(e,t,new GM("",s,i))}addSvgIconSet(e,t){return this.addSvgIconSetInNamespace("",e,t)}addSvgIconSetLiteral(e,t){return this.addSvgIconSetLiteralInNamespace("",e,t)}addSvgIconSetInNamespace(e,t,n){return this._addSvgIconSetConfig(e,new GM(t,null,n))}addSvgIconSetLiteralInNamespace(e,t,n){const i=this._sanitizer.sanitize(is.HTML,t);if(!i)throw WM(t);return this._addSvgIconSetConfig(e,new GM("",i,n))}registerFontClassAlias(e,t=e){return this._fontCssClassesByAlias.set(e,t),this}classNameForFontAlias(e){return this._fontCssClassesByAlias.get(e)||e}setDefaultFontSetClass(e){return this._defaultFontSetClass=e,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(e){const t=this._sanitizer.sanitize(is.RESOURCE_URL,e);if(!t)throw UM(e);const n=this._cachedIconsByUrl.get(t);return n?lb(qM(n)):this._loadSvgIconFromConfig(new GM(e,null)).pipe(Ov(e=>this._cachedIconsByUrl.set(t,e)),k(e=>qM(e)))}getNamedSvgIcon(e,t=""){const n=YM(t,e);let i=this._svgIconConfigs.get(n);if(i)return this._getSvgFromConfig(i);if(i=this._getIconConfigFromResolvers(t,e),i)return this._svgIconConfigs.set(n,i),this._getSvgFromConfig(i);const s=this._iconSetConfigs.get(t);return s?this._getSvgFromIconSetConfigs(e,s):bC(jM(n))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(e){return e.svgText?lb(qM(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe(k(e=>qM(e)))}_getSvgFromIconSetConfigs(e,t){const n=this._extractIconWithNameFromAnySet(e,t);return n?lb(n):Cf(t.filter(e=>!e.svgText).map(e=>this._loadSvgIconSetFromConfig(e).pipe(fv(t=>{const n=this._sanitizer.sanitize(is.RESOURCE_URL,e.url);return this._errorHandler.handleError(new Error(`Loading icon set URL: ${n} failed: ${t.message}`)),lb(null)})))).pipe(k(()=>{const n=this._extractIconWithNameFromAnySet(e,t);if(!n)throw jM(e);return n}))}_extractIconWithNameFromAnySet(e,t){for(let n=t.length-1;n>=0;n--){const i=t[n];if(i.svgText&&i.svgText.indexOf(e)>-1){const t=this._svgElementFromConfig(i),n=this._extractSvgIconFromSet(t,e,i.options);if(n)return n}}return null}_loadSvgIconFromConfig(e){return this._fetchIcon(e).pipe(Ov(t=>e.svgText=t),k(()=>this._svgElementFromConfig(e)))}_loadSvgIconSetFromConfig(e){return e.svgText?lb(null):this._fetchIcon(e).pipe(Ov(t=>e.svgText=t))}_extractSvgIconFromSet(e,t,n){const i=e.querySelector(`[id="${t}"]`);if(!i)return null;const s=i.cloneNode(!0);if(s.removeAttribute("id"),"svg"===s.nodeName.toLowerCase())return this._setSvgAttributes(s,n);if("symbol"===s.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(s),n);const o=this._svgElementFromString("<svg></svg>");return o.appendChild(s),this._setSvgAttributes(o,n)}_svgElementFromString(e){const t=this._document.createElement("DIV");t.innerHTML=e;const n=t.querySelector("svg");if(!n)throw Error("<svg> tag not found");return n}_toSvgElement(e){const t=this._svgElementFromString("<svg></svg>"),n=e.attributes;for(let i=0;i<n.length;i++){const{name:e,value:s}=n[i];"id"!==e&&t.setAttribute(e,s)}for(let i=0;i<e.childNodes.length;i++)e.childNodes[i].nodeType===this._document.ELEMENT_NODE&&t.appendChild(e.childNodes[i].cloneNode(!0));return t}_setSvgAttributes(e,t){return e.setAttribute("fit",""),e.setAttribute("height","100%"),e.setAttribute("width","100%"),e.setAttribute("preserveAspectRatio","xMidYMid meet"),e.setAttribute("focusable","false"),t&&t.viewBox&&e.setAttribute("viewBox",t.viewBox),e}_fetchIcon(e){var t;const{url:n,options:i}=e,s=null!==(t=null==i?void 0:i.withCredentials)&&void 0!==t&&t;if(!this._httpClient)throw Error("Could not find HttpClient provider for use with Angular Material icons. Please include the HttpClientModule from @angular/common/http in your app imports.");if(null==n)throw Error(`Cannot fetch icon from URL "${n}".`);const o=this._sanitizer.sanitize(is.RESOURCE_URL,n);if(!o)throw UM(n);const r=this._inProgressUrlFetches.get(o);if(r)return r;const a=this._httpClient.get(o,{responseType:"text",withCredentials:s}).pipe(Iv(()=>this._inProgressUrlFetches.delete(o)),ee());return this._inProgressUrlFetches.set(o,a),a}_addSvgIconConfig(e,t,n){return this._svgIconConfigs.set(YM(e,t),n),this}_addSvgIconSetConfig(e,t){const n=this._iconSetConfigs.get(e);return n?n.push(t):this._iconSetConfigs.set(e,[t]),this}_svgElementFromConfig(e){if(!e.svgElement){const t=this._svgElementFromString(e.svgText);this._setSvgAttributes(t,e.options),e.svgElement=t}return e.svgElement}_getIconConfigFromResolvers(e,t){for(let i=0;i<this._resolvers.length;i++){const s=this._resolvers[i](t,e);if(s)return(n=s).url&&n.options?new GM(s.url,null,s.options):new GM(s,null)}var n}}return e.\u0275fac=function(t){return new(t||e)(gi(Db,8),gi(qh),gi(Hd,8),gi(ds))},e.\u0275prov=pe({factory:function(){return new e(gi(Db,8),gi(qh),gi(Hd,8),gi(ds))},token:e,providedIn:"root"}),e})();function qM(e){return e.cloneNode(!0)}function YM(e,t){return e+":"+t}class ZM{constructor(e){this._elementRef=e}}const QM=kE(ZM),XM=new Xn("mat-icon-location",{providedIn:"root",factory:function(){const e=fi(Hd),t=e?e.location:null;return{getPathname:()=>t?t.pathname+t.search:""}}}),KM=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],JM=KM.map(e=>`[${e}]`).join(", "),eT=/^url\(['"]?#(.*?)['"]?\)$/;let tT=(()=>{class e extends QM{constructor(e,t,n,i,s){super(e),this._iconRegistry=t,this._location=i,this._errorHandler=s,this._inline=!1,this._currentIconFetch=u.EMPTY,n||e.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(e){this._inline=xP(e)}get svgIcon(){return this._svgIcon}set svgIcon(e){e!==this._svgIcon&&(e?this._updateSvgIcon(e):this._svgIcon&&this._clearSvgElement(),this._svgIcon=e)}get fontSet(){return this._fontSet}set fontSet(e){const t=this._cleanupFontValue(e);t!==this._fontSet&&(this._fontSet=t,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(e){const t=this._cleanupFontValue(e);t!==this._fontIcon&&(this._fontIcon=t,this._updateFontIconClasses())}_splitIconName(e){if(!e)return["",""];const t=e.split(":");switch(t.length){case 1:return["",t[0]];case 2:return t;default:throw Error(`Invalid icon name: "${e}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const e=this._elementsWithExternalReferences;if(e&&e.size){const e=this._location.getPathname();e!==this._previousPath&&(this._previousPath=e,this._prependPathToReferences(e))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(e){this._clearSvgElement();const t=e.querySelectorAll("style");for(let i=0;i<t.length;i++)t[i].textContent+=" ";const n=this._location.getPathname();this._previousPath=n,this._cacheChildrenWithExternalReferences(e),this._prependPathToReferences(n),this._elementRef.nativeElement.appendChild(e)}_clearSvgElement(){const e=this._elementRef.nativeElement;let t=e.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();t--;){const n=e.childNodes[t];1===n.nodeType&&"svg"!==n.nodeName.toLowerCase()||e.removeChild(n)}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const e=this._elementRef.nativeElement,t=this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet):this._iconRegistry.getDefaultFontSetClass();t!=this._previousFontSetClass&&(this._previousFontSetClass&&e.classList.remove(this._previousFontSetClass),t&&e.classList.add(t),this._previousFontSetClass=t),this.fontIcon!=this._previousFontIconClass&&(this._previousFontIconClass&&e.classList.remove(this._previousFontIconClass),this.fontIcon&&e.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(e){return"string"==typeof e?e.trim().split(" ")[0]:e}_prependPathToReferences(e){const t=this._elementsWithExternalReferences;t&&t.forEach((t,n)=>{t.forEach(t=>{n.setAttribute(t.name,`url('${e}#${t.value}')`)})})}_cacheChildrenWithExternalReferences(e){const t=e.querySelectorAll(JM),n=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let i=0;i<t.length;i++)KM.forEach(e=>{const s=t[i],o=s.getAttribute(e),r=o?o.match(eT):null;if(r){let t=n.get(s);t||(t=[],n.set(s,t)),t.push({name:e,value:r[1]})}})}_updateSvgIcon(e){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),e){const[t,n]=this._splitIconName(e);t&&(this._svgNamespace=t),n&&(this._svgName=n),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(n,t).pipe(lv(1)).subscribe(e=>this._setSvgElement(e),e=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${t}:${n}! ${e.message}`))})}}}return e.\u0275fac=function(t){return new(t||e)(zr(rl),zr($M),Yn("aria-hidden"),zr(XM),zr(ds))},e.\u0275cmp=$e({type:e,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(e,t){2&e&&(Ir("data-mat-icon-type",t._usingFontIcon()?"font":"svg")("data-mat-icon-name",t._svgName||t.fontIcon)("data-mat-icon-namespace",t._svgNamespace||t.fontSet),ma("mat-icon-inline",t.inline)("mat-icon-no-color","primary"!==t.color&&"accent"!==t.color&&"warn"!==t.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[vr],ngContentSelectors:HM,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},styles:[".mat-icon{background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}\n"],encapsulation:2,changeDetection:0}),e})(),nT=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=fe({imports:[[CE],CE]}),e})(),iT=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=fe({imports:[[TP]]}),e})(),sT=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=fe({providers:[ME],imports:[[iT,zO,CE],iT,zO]}),e})(),oT=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=fe({imports:[[CE],CE]}),e})(),rT=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=fe({imports:[[TE,HE,CE,UE,uh],TE,CE,UE,oT]}),e})();const aT=["trigger"],lT=["panel"];function cT(e,t){if(1&e&&(Hr(0,"span",8),Da(1),jr()),2&e){const e=na();no(1),Oa(e.placeholder)}}function dT(e,t){if(1&e&&(Hr(0,"span",12),Da(1),jr()),2&e){const e=na(2);no(1),Oa(e.triggerValue)}}function uT(e,t){1&e&&oa(0,0,["*ngSwitchCase","true"])}function hT(e,t){1&e&&(Hr(0,"span",9),Fr(1,dT,2,1,"span",10),Fr(2,uT,1,0,"ng-content",11),jr()),2&e&&(Vr("ngSwitch",!!na().customTrigger),no(2),Vr("ngSwitchCase",!0))}function pT(e,t){if(1&e){const e=qr();Hr(0,"div",13),Hr(1,"div",14,15),Xr("@transformPanel.done",function(t){return Lt(e),na()._panelDoneAnimatingStream.next(t.toState)})("keydown",function(t){return Lt(e),na()._handleKeydown(t)}),oa(3,1),jr(),jr()}if(2&e){const e=na();Vr("@transformPanelWrap",void 0),no(1),La("mat-select-panel ",e._getPanelTheme(),""),fa("transform-origin",e._transformOrigin)("font-size",e._triggerFontSize,"px"),Vr("ngClass",e.panelClass)("@transformPanel",e.multiple?"showing-multiple":"showing"),Ir("id",e.id+"-panel")("aria-multiselectable",e.multiple)("aria-label",e.ariaLabel||null)("aria-labelledby",e._getPanelAriaLabelledby())}}const gT=[[["mat-select-trigger"]],"*"],fT=["mat-select-trigger","*"],mT={transformPanelWrap:Jh("transformPanelWrap",[op("* => void",ap("@transformPanel",[rp()],{optional:!0}))]),transformPanel:Jh("transformPanel",[ip("void",np({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),ip("showing",np({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),ip("showing-multiple",np({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),op("void => *",ep("120ms cubic-bezier(0, 0, 0.2, 1)")),op("* => void",ep("100ms 25ms linear",np({opacity:0})))])};let bT=0;const vT=new Xn("mat-select-scroll-strategy"),yT=new Xn("MAT_SELECT_CONFIG"),wT={provide:vT,deps:[eO],useFactory:function(e){return()=>e.scrollStrategies.reposition()}};class _T{constructor(e,t){this.source=e,this.value=t}}class xT{constructor(e,t,n,i,s){this._elementRef=e,this._defaultErrorStateMatcher=t,this._parentForm=n,this._parentFormGroup=i,this.ngControl=s}}const AT=PE(EE(SE(DE(xT)))),CT=new Xn("MatSelectTrigger");let ST=(()=>{class e extends AT{constructor(e,t,n,i,s,o,r,a,l,c,d,u,h,p){var g,f,m;super(s,i,r,a,c),this._viewportRuler=e,this._changeDetectorRef=t,this._ngZone=n,this._dir=o,this._parentFormField=l,this.ngControl=c,this._liveAnnouncer=h,this._defaultOptions=p,this._panelOpen=!1,this._compareWith=(e,t)=>e===t,this._uid="mat-select-"+bT++,this._triggerAriaLabelledBy=null,this._destroy=new A,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+bT++,this._panelDoneAnimatingStream=new A,this._overlayPanelClass=(null===(g=this._defaultOptions)||void 0===g?void 0:g.overlayPanelClass)||"",this._focused=!1,this.controlType="mat-select",this._required=!1,this._multiple=!1,this._disableOptionCentering=null!==(m=null===(f=this._defaultOptions)||void 0===f?void 0:f.disableOptionCentering)&&void 0!==m&&m,this.ariaLabel="",this.optionSelectionChanges=iv(()=>{const e=this.options;return e?e.changes.pipe(uv(e),sv(()=>G(...e.map(e=>e.onSelectionChange)))):this._ngZone.onStable.pipe(lv(1),sv(()=>this.optionSelectionChanges))}),this.openedChange=new yc,this._openedStream=this.openedChange.pipe(db(e=>e),k(()=>{})),this._closedStream=this.openedChange.pipe(db(e=>!e),k(()=>{})),this.selectionChange=new yc,this.valueChange=new yc,this.ngControl&&(this.ngControl.valueAccessor=this),null!=(null==p?void 0:p.typeaheadDebounceInterval)&&(this._typeaheadDebounceInterval=p.typeaheadDebounceInterval),this._scrollStrategyFactory=u,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(d)||0,this.id=this.id}get focused(){return this._focused||this._panelOpen}get placeholder(){return this._placeholder}set placeholder(e){this._placeholder=e,this.stateChanges.next()}get required(){return this._required}set required(e){this._required=xP(e),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(e){this._multiple=xP(e)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(e){this._disableOptionCentering=xP(e)}get compareWith(){return this._compareWith}set compareWith(e){this._compareWith=e,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(e){(e!==this._value||this._multiple&&Array.isArray(e))&&(this.options&&this._setSelectionByValue(e),this._value=e)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(e){this._typeaheadDebounceInterval=AP(e)}get id(){return this._id}set id(e){this._id=e||this._uid,this.stateChanges.next()}ngOnInit(){this._selectionModel=new _D(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(H_(),vD(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe(vD(this._destroy)).subscribe(e=>{e.added.forEach(e=>e.select()),e.removed.forEach(e=>e.deselect())}),this.options.changes.pipe(uv(null),vD(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const e=this._getTriggerAriaLabelledby();if(e!==this._triggerAriaLabelledBy){const t=this._elementRef.nativeElement;this._triggerAriaLabelledBy=e,e?t.setAttribute("aria-labelledby",e):t.removeAttribute("aria-labelledby")}this.ngControl&&this.updateErrorState()}ngOnChanges(e){e.disabled&&this.stateChanges.next(),e.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}ngOnDestroy(){this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck())}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}writeValue(e){this.value=e}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){return this.multiple?this._selectionModel.selected:this._selectionModel.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){const e=this._selectionModel.selected.map(e=>e.viewValue);return this._isRtl()&&e.reverse(),e.join(", ")}return this._selectionModel.selected[0].viewValue}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(e){this.disabled||(this.panelOpen?this._handleOpenKeydown(e):this._handleClosedKeydown(e))}_handleClosedKeydown(e){const t=e.keyCode,n=40===t||38===t||37===t||39===t,i=13===t||32===t,s=this._keyManager;if(!s.isTyping()&&i&&!mP(e)||(this.multiple||e.altKey)&&n)e.preventDefault(),this.open();else if(!this.multiple){const t=this.selected;s.onKeydown(e);const n=this.selected;n&&t!==n&&this._liveAnnouncer.announce(n.viewValue,1e4)}}_handleOpenKeydown(e){const t=this._keyManager,n=e.keyCode,i=40===n||38===n,s=t.isTyping();if(i&&e.altKey)e.preventDefault(),this.close();else if(s||13!==n&&32!==n||!t.activeItem||mP(e))if(!s&&this._multiple&&65===n&&e.ctrlKey){e.preventDefault();const t=this.options.some(e=>!e.disabled&&!e.selected);this.options.forEach(e=>{e.disabled||(t?e.select():e.deselect())})}else{const n=t.activeItemIndex;t.onKeydown(e),this._multiple&&i&&e.shiftKey&&t.activeItem&&t.activeItemIndex!==n&&t.activeItem._selectViaInteraction()}else e.preventDefault(),t.activeItem._selectViaInteraction()}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,this.disabled||this.panelOpen||(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_onAttached(){this.overlayDir.positionChange.pipe(lv(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._positioningSettled()})}_getPanelTheme(){return this._parentFormField?"mat-"+this._parentFormField.color:""}get empty(){return!this._selectionModel||this._selectionModel.isEmpty()}_initializeSelection(){Promise.resolve().then(()=>{this._setSelectionByValue(this.ngControl?this.ngControl.value:this._value),this.stateChanges.next()})}_setSelectionByValue(e){if(this._selectionModel.selected.forEach(e=>e.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&e)Array.isArray(e),e.forEach(e=>this._selectValue(e)),this._sortValues();else{const t=this._selectValue(e);t?this._keyManager.updateActiveItem(t):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectValue(e){const t=this.options.find(t=>{if(this._selectionModel.isSelected(t))return!1;try{return null!=t.value&&this._compareWith(t.value,e)}catch(n){return!1}});return t&&this._selectionModel.select(t),t}_initKeyManager(){this._keyManager=new YP(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe(vD(this._destroy)).subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.pipe(vD(this._destroy)).subscribe(()=>{this._panelOpen&&this.panel?this._scrollOptionIntoView(this._keyManager.activeItemIndex||0):this._panelOpen||this.multiple||!this._keyManager.activeItem||this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){const e=G(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(vD(e)).subscribe(e=>{this._onSelect(e.source,e.isUserInput),e.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),G(...this.options.map(e=>e._stateChanges)).pipe(vD(e)).subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()})}_onSelect(e,t){const n=this._selectionModel.isSelected(e);null!=e.value||this._multiple?(n!==e.selected&&(e.selected?this._selectionModel.select(e):this._selectionModel.deselect(e)),t&&this._keyManager.setActiveItem(e),this.multiple&&(this._sortValues(),t&&this.focus())):(e.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(e.value)),n!==this._selectionModel.isSelected(e)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const e=this.options.toArray();this._selectionModel.sort((t,n)=>this.sortComparator?this.sortComparator(t,n,e):e.indexOf(t)-e.indexOf(n)),this.stateChanges.next()}}_propagateChanges(e){let t=null;t=this.multiple?this.selected.map(e=>e.value):this.selected?this.selected.value:e,this._value=t,this.valueChange.emit(t),this._onChange(t),this.selectionChange.emit(this._getChangeEvent(t)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}_canOpen(){var e;return!this._panelOpen&&!this.disabled&&(null===(e=this.options)||void 0===e?void 0:e.length)>0}focus(e){this._elementRef.nativeElement.focus(e)}_getPanelAriaLabelledby(){if(this.ariaLabel)return null;const e=this._getLabelId();return this.ariaLabelledby?e+" "+this.ariaLabelledby:e}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getLabelId(){var e;return(null===(e=this._parentFormField)||void 0===e?void 0:e.getLabelId())||""}_getTriggerAriaLabelledby(){if(this.ariaLabel)return null;let e=this._getLabelId()+" "+this._valueId;return this.ariaLabelledby&&(e+=" "+this.ariaLabelledby),e}_panelDoneAnimating(e){this.openedChange.emit(e)}setDescribedByIds(e){this._ariaDescribedby=e.join(" ")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}return e.\u0275fac=function(t){return new(t||e)(zr(AD),zr(Tl),zr(ad),zr(ME),zr(rl),zr(pE,8),zr(Mm,8),zr(Hm,8),zr(FO,8),zr(sm,10),Yn("tabindex"),zr(vT),zr(iE),zr(yT,8))},e.\u0275dir=Ke({type:e,viewQuery:function(e,t){if(1&e&&(Tc(aT,1),Tc(lT,1),Tc(sO,1)),2&e){let e;Mc(e=Rc())&&(t.trigger=e.first),Mc(e=Rc())&&(t.panel=e.first),Mc(e=Rc())&&(t.overlayDir=e.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],id:"id",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",typeaheadDebounceInterval:"typeaheadDebounceInterval",panelClass:"panelClass",ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",sortComparator:"sortComparator"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[vr,dt]}),e})(),kT=(()=>{class e extends ST{constructor(){super(...arguments),this._scrollTop=0,this._triggerFontSize=0,this._transformOrigin="top",this._offsetY=0,this._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}]}_calculateOverlayScroll(e,t,n){const i=this._getItemHeight();return Math.min(Math.max(0,i*e-t+i/2),n)}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe(vD(this._destroy)).subscribe(()=>{this.panelOpen&&(this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._changeDetectorRef.markForCheck())})}open(){super._canOpen()&&(super.open(),this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement).fontSize||"0"),this._calculateOverlayPosition(),this._ngZone.onStable.pipe(lv(1)).subscribe(()=>{this._triggerFontSize&&this.overlayDir.overlayRef&&this.overlayDir.overlayRef.overlayElement&&(this.overlayDir.overlayRef.overlayElement.style.fontSize=this._triggerFontSize+"px")}))}_scrollOptionIntoView(e){const t=eD(e,this.options,this.optionGroups),n=this._getItemHeight();var i,s,o;this.panel.nativeElement.scrollTop=(s=n,256,(i=(e+t)*n)<(o=this.panel.nativeElement.scrollTop)?i:i+s>o+256?Math.max(0,i-256+s):o)}_positioningSettled(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}_panelDoneAnimating(e){this.panelOpen?this._scrollTop=0:(this.overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),super._panelDoneAnimating(e)}_getChangeEvent(e){return new _T(this,e)}_calculateOverlayOffsetX(){const e=this.overlayDir.overlayRef.overlayElement.getBoundingClientRect(),t=this._viewportRuler.getViewportSize(),n=this._isRtl(),i=this.multiple?56:32;let s;if(this.multiple)s=40;else if(this.disableOptionCentering)s=16;else{let e=this._selectionModel.selected[0]||this.options.first;s=e&&e.group?32:16}n||(s*=-1);const o=0-(e.left+s-(n?i:0)),r=e.right+s-t.width+(n?0:i);o>0?s+=o+8:r>0&&(s-=r+8),this.overlayDir.offsetX=Math.round(s),this.overlayDir.overlayRef.updatePosition()}_calculateOverlayOffsetY(e,t,n){const i=this._getItemHeight(),s=(i-this._triggerRect.height)/2,o=Math.floor(256/i);let r;return this.disableOptionCentering?0:(r=0===this._scrollTop?e*i:this._scrollTop===n?(e-(this._getItemCount()-o))*i+(i-(this._getItemCount()*i-256)%i):t-i/2,Math.round(-1*r-s))}_checkOverlayWithinViewport(e){const t=this._getItemHeight(),n=this._viewportRuler.getViewportSize(),i=this._triggerRect.top-8,s=n.height-this._triggerRect.bottom-8,o=Math.abs(this._offsetY),r=Math.min(this._getItemCount()*t,256)-o-this._triggerRect.height;r>s?this._adjustPanelUp(r,s):o>i?this._adjustPanelDown(o,i,e):this._transformOrigin=this._getOriginBasedOnOption()}_adjustPanelUp(e,t){const n=Math.round(e-t);this._scrollTop-=n,this._offsetY-=n,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}_adjustPanelDown(e,t,n){const i=Math.round(e-t);if(this._scrollTop+=i,this._offsetY+=i,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=n)return this._scrollTop=n,this._offsetY=0,void(this._transformOrigin="50% top 0px")}_calculateOverlayPosition(){const e=this._getItemHeight(),t=this._getItemCount(),n=Math.min(t*e,256),i=t*e-n;let s;s=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),s+=eD(s,this.options,this.optionGroups);const o=n/2;this._scrollTop=this._calculateOverlayScroll(s,o,i),this._offsetY=this._calculateOverlayOffsetY(s,o,i),this._checkOverlayWithinViewport(i)}_getOriginBasedOnOption(){const e=this._getItemHeight(),t=(e-this._triggerRect.height)/2;return`50% ${Math.abs(this._offsetY)-t+e/2}px 0px`}_getItemHeight(){return 3*this._triggerFontSize}_getItemCount(){return this.options.length+this.optionGroups.length}}return e.\u0275fac=function(t){return PT(t||e)},e.\u0275cmp=$e({type:e,selectors:[["mat-select"]],contentQueries:function(e,t,n){if(1&e&&(Ic(n,CT,1),Ic(n,JE,1),Ic(n,ZE,1)),2&e){let e;Mc(e=Rc())&&(t.customTrigger=e.first),Mc(e=Rc())&&(t.options=e),Mc(e=Rc())&&(t.optionGroups=e)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:20,hostBindings:function(e,t){1&e&&Xr("keydown",function(e){return t._handleKeydown(e)})("focus",function(){return t._onFocus()})("blur",function(){return t._onBlur()}),2&e&&(Ir("id",t.id)("tabindex",t.tabIndex)("aria-controls",t.panelOpen?t.id+"-panel":null)("aria-expanded",t.panelOpen)("aria-label",t.ariaLabel||null)("aria-required",t.required.toString())("aria-disabled",t.disabled.toString())("aria-invalid",t.errorState)("aria-describedby",t._ariaDescribedby||null)("aria-activedescendant",t._getAriaActiveDescendant()),ma("mat-select-disabled",t.disabled)("mat-select-invalid",t.errorState)("mat-select-required",t.required)("mat-select-empty",t.empty)("mat-select-multiple",t.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[Ja([{provide:kO,useExisting:e},{provide:WE,useExisting:e}]),vr],ngContentSelectors:fT,decls:9,vars:12,consts:[["cdk-overlay-origin","",1,"mat-select-trigger",3,"click"],["origin","cdkOverlayOrigin","trigger",""],[1,"mat-select-value",3,"ngSwitch"],["class","mat-select-placeholder mat-select-min-line",4,"ngSwitchCase"],["class","mat-select-value-text",3,"ngSwitch",4,"ngSwitchCase"],[1,"mat-select-arrow-wrapper"],[1,"mat-select-arrow"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayMinWidth","cdkConnectedOverlayOffsetY","backdropClick","attach","detach"],[1,"mat-select-placeholder","mat-select-min-line"],[1,"mat-select-value-text",3,"ngSwitch"],["class","mat-select-min-line",4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-select-min-line"],[1,"mat-select-panel-wrap"],["role","listbox","tabindex","-1",3,"ngClass","keydown"],["panel",""]],template:function(e,t){if(1&e&&(sa(gT),Hr(0,"div",0,1),Xr("click",function(){return t.toggle()}),Hr(3,"div",2),Fr(4,cT,2,1,"span",3),Fr(5,hT,3,2,"span",4),jr(),Hr(6,"div",5),Ur(7,"div",6),jr(),jr(),Fr(8,pT,4,14,"ng-template",7),Xr("backdropClick",function(){return t.close()})("attach",function(){return t._onAttached()})("detach",function(){return t.close()})),2&e){const e=Br(1);Ir("aria-owns",t.panelOpen?t.id+"-panel":null),no(3),Vr("ngSwitch",t.empty),Ir("id",t._valueId),no(1),Vr("ngSwitchCase",!0),no(1),Vr("ngSwitchCase",!1),no(3),Vr("cdkConnectedOverlayPanelClass",t._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",t._scrollStrategy)("cdkConnectedOverlayOrigin",e)("cdkConnectedOverlayOpen",t.panelOpen)("cdkConnectedOverlayPositions",t._positions)("cdkConnectedOverlayMinWidth",null==t._triggerRect?null:t._triggerRect.width)("cdkConnectedOverlayOffsetY",t._offsetY)}},directives:[iO,Yu,Zu,sO,Qu,Nu],styles:['.mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-table;cursor:pointer;position:relative;box-sizing:border-box}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-select-value{display:table-cell;max-width:0;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{display:table-cell;vertical-align:middle}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;margin:0 4px}.mat-select-panel-wrap{flex-basis:100%}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%;border-radius:4px;outline:0}.cdk-high-contrast-active .mat-select-panel{outline:solid 1px}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color:transparent;-webkit-text-fill-color:transparent;transition:none;display:block}.mat-select-min-line:empty::before{content:" ";white-space:pre;width:1px}\n'],encapsulation:2,data:{animation:[mT.transformPanelWrap,mT.transformPanel]},changeDetection:0}),e})();const PT=$n(kT);let ET=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=fe({providers:[wT],imports:[[uh,rO,tD,CE],CD,zO,tD,CE]}),e})();const DT={tooltipState:Jh("state",[ip("initial, void, hidden",np({opacity:0,transform:"scale(0)"})),ip("visible",np({transform:"scale(1)"})),op("* => visible",ep("200ms cubic-bezier(0, 0, 0.2, 1)",sp([np({opacity:0,transform:"scale(0)",offset:0}),np({opacity:.5,transform:"scale(0.99)",offset:.5}),np({opacity:1,transform:"scale(1)",offset:1})]))),op("* => hidden",ep("100ms cubic-bezier(0, 0, 0.2, 1)",np({opacity:0})))])},OT=IP({passive:!0}),MT=new Xn("mat-tooltip-scroll-strategy"),TT={provide:MT,deps:[eO],useFactory:function(e){return()=>e.scrollStrategies.reposition({scrollThrottle:20})}},IT=new Xn("mat-tooltip-default-options",{providedIn:"root",factory:function(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let RT=(()=>{class e{constructor(e,t,n,i,s,o,r,a,l,c,d,u){this._overlay=e,this._elementRef=t,this._scrollDispatcher=n,this._viewContainerRef=i,this._ngZone=s,this._platform=o,this._ariaDescriber=r,this._focusMonitor=a,this._dir=c,this._defaultOptions=d,this._position="below",this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this.showDelay=this._defaultOptions.showDelay,this.hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new A,this._handleKeydown=e=>{this._isTooltipVisible()&&27===e.keyCode&&!mP(e)&&(e.preventDefault(),e.stopPropagation(),this._ngZone.run(()=>this.hide(0)))},this._scrollStrategy=l,d&&(d.position&&(this.position=d.position),d.touchGestures&&(this.touchGestures=d.touchGestures)),s.runOutsideAngular(()=>{t.nativeElement.addEventListener("keydown",this._handleKeydown)})}get position(){return this._position}set position(e){e!==this._position&&(this._position=e,this._overlayRef&&(this._updatePosition(),this._tooltipInstance&&this._tooltipInstance.show(0),this._overlayRef.updatePosition()))}get disabled(){return this._disabled}set disabled(e){this._disabled=xP(e),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get message(){return this._message}set message(e){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=e?String(e).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")})}))}get tooltipClass(){return this._tooltipClass}set tooltipClass(e){this._tooltipClass=e,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(vD(this._destroyed)).subscribe(e=>{e?"keyboard"===e&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const e=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),e.removeEventListener("keydown",this._handleKeydown),this._passiveListeners.forEach(([t,n])=>{e.removeEventListener(t,n,OT)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(e,this.message,"tooltip"),this._focusMonitor.stopMonitoring(e)}show(e=this.showDelay){if(this.disabled||!this.message||this._isTooltipVisible()&&!this._tooltipInstance._showTimeoutId&&!this._tooltipInstance._hideTimeoutId)return;const t=this._createOverlay();this._detach(),this._portal=this._portal||new XC(LT,this._viewContainerRef),this._tooltipInstance=t.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe(vD(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),this._tooltipInstance.show(e)}hide(e=this.hideDelay){this._tooltipInstance&&this._tooltipInstance.hide(e)}toggle(){this._isTooltipVisible()?this.hide():this.show()}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(){if(this._overlayRef)return this._overlayRef;const e=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),t=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(".mat-tooltip").withFlexibleDimensions(!1).withViewportMargin(8).withScrollableContainers(e);return t.positionChanges.pipe(vD(this._destroyed)).subscribe(e=>{this._tooltipInstance&&e.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:t,panelClass:"mat-tooltip-panel",scrollStrategy:this._scrollStrategy()}),this._updatePosition(),this._overlayRef.detachments().pipe(vD(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(){const e=this._overlayRef.getConfig().positionStrategy,t=this._getOrigin(),n=this._getOverlayPosition();e.withPositions([Object.assign(Object.assign({},t.main),n.main),Object.assign(Object.assign({},t.fallback),n.fallback)])}_getOrigin(){const e=!this._dir||"ltr"==this._dir.value,t=this.position;let n;"above"==t||"below"==t?n={originX:"center",originY:"above"==t?"top":"bottom"}:"before"==t||"left"==t&&e||"right"==t&&!e?n={originX:"start",originY:"center"}:("after"==t||"right"==t&&e||"left"==t&&!e)&&(n={originX:"end",originY:"center"});const{x:i,y:s}=this._invertPosition(n.originX,n.originY);return{main:n,fallback:{originX:i,originY:s}}}_getOverlayPosition(){const e=!this._dir||"ltr"==this._dir.value,t=this.position;let n;"above"==t?n={overlayX:"center",overlayY:"bottom"}:"below"==t?n={overlayX:"center",overlayY:"top"}:"before"==t||"left"==t&&e||"right"==t&&!e?n={overlayX:"end",overlayY:"center"}:("after"==t||"right"==t&&e||"left"==t&&!e)&&(n={overlayX:"start",overlayY:"center"});const{x:i,y:s}=this._invertPosition(n.overlayX,n.overlayY);return{main:n,fallback:{overlayX:i,overlayY:s}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe(lv(1),vD(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(e){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=e,this._tooltipInstance._markForCheck())}_invertPosition(e,t){return"above"===this.position||"below"===this.position?"top"===t?t="bottom":"bottom"===t&&(t="top"):"end"===e?e="start":"start"===e&&(e="end"),{x:e,y:t}}_setupPointerEnterEventsIfNeeded(){!this._disabled&&this.message&&this._viewInitialized&&!this._passiveListeners.length&&(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",()=>{this._setupPointerExitEventsIfNeeded(),this.show()}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",()=>{this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>this.show(),500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const e=[];if(this._platformSupportsMouseEvents())e.push(["mouseleave",()=>this.hide()],["wheel",e=>this._wheelListener(e)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const t=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};e.push(["touchend",t],["touchcancel",t])}this._addListeners(e),this._passiveListeners.push(...e)}_addListeners(e){e.forEach(([e,t])=>{this._elementRef.nativeElement.addEventListener(e,t,OT)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(e){if(this._isTooltipVisible()){const t=(this._document||document).elementFromPoint(e.clientX,e.clientY),n=this._elementRef.nativeElement;t===n||n.contains(t)||this.hide()}}_disableNativeGesturesIfNecessary(){const e=this.touchGestures;if("off"!==e){const t=this._elementRef.nativeElement,n=t.style;("on"===e||"INPUT"!==t.nodeName&&"TEXTAREA"!==t.nodeName)&&(n.userSelect=n.msUserSelect=n.webkitUserSelect=n.MozUserSelect="none"),"on"!==e&&t.draggable||(n.webkitUserDrag="none"),n.touchAction="none",n.webkitTapHighlightColor="transparent"}}}return e.\u0275fac=function(t){return new(t||e)(zr(eO),zr(rl),zr(xD),zr(Gl),zr(ad),zr(MP),zr(WP),zr(lE),zr(MT),zr(pE,8),zr(IT,8),zr(Hd))},e.\u0275dir=Ke({type:e,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],inputs:{showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]},exportAs:["matTooltip"]}),e})(),LT=(()=>{class e{constructor(e,t){this._changeDetectorRef=e,this._breakpointObserver=t,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new A,this._isHandset=this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)")}show(e){this._hideTimeoutId&&(clearTimeout(this._hideTimeoutId),this._hideTimeoutId=null),this._closeOnInteraction=!0,this._showTimeoutId=setTimeout(()=>{this._visibility="visible",this._showTimeoutId=null,this._markForCheck()},e)}hide(e){this._showTimeoutId&&(clearTimeout(this._showTimeoutId),this._showTimeoutId=null),this._hideTimeoutId=setTimeout(()=>{this._visibility="hidden",this._hideTimeoutId=null,this._markForCheck()},e)}afterHidden(){return this._onHide}isVisible(){return"visible"===this._visibility}ngOnDestroy(){this._onHide.complete()}_animationStart(){this._closeOnInteraction=!1}_animationDone(e){const t=e.toState;"hidden"!==t||this.isVisible()||this._onHide.next(),"visible"!==t&&"hidden"!==t||(this._closeOnInteraction=!0)}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}}return e.\u0275fac=function(t){return new(t||e)(zr(Tl),zr(KO))},e.\u0275cmp=$e({type:e,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(e,t){1&e&&Xr("click",function(){return t._handleBodyInteraction()},!1,gs)("auxclick",function(){return t._handleBodyInteraction()},!1,gs),2&e&&fa("zoom","visible"===t._visibility?1:null)},decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(e,t){if(1&e&&(Hr(0,"div",0),Xr("@state.start",function(){return t._animationStart()})("@state.done",function(e){return t._animationDone(e)}),hc(1,"async"),Da(2),jr()),2&e){let e=null;ma("mat-tooltip-handset",null==(e=pc(1,5,t._isHandset))?null:e.matches),Vr("ngClass",t.tooltipClass)("@state",t._visibility),no(2),Oa(t.message)}},directives:[Nu],pipes:[sh],styles:[".mat-tooltip-panel{pointer-events:none !important}.mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}\n"],encapsulation:2,data:{animation:[DT.tooltipState]},changeDetection:0}),e})(),FT=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=fe({providers:[TT],imports:[[uE,uh,rO,CE],CE,CD]}),e})();function BT(e,t){if(1&e&&(Hr(0,"mat-option",19),Da(1),jr()),2&e){const e=t.$implicit;Vr("value",e),no(1),Ma(" ",e," ")}}function zT(e,t){if(1&e){const e=qr();Hr(0,"mat-form-field",16),Hr(1,"mat-select",17),Xr("selectionChange",function(t){return Lt(e),na(2)._changePageSize(t.value)}),Fr(2,BT,2,2,"mat-option",18),jr(),jr()}if(2&e){const e=na(2);Vr("appearance",e._formFieldAppearance)("color",e.color),no(1),Vr("value",e.pageSize)("disabled",e.disabled)("aria-label",e._intl.itemsPerPageLabel),no(1),Vr("ngForOf",e._displayedPageSizeOptions)}}function VT(e,t){if(1&e&&(Hr(0,"div",20),Da(1),jr()),2&e){const e=na(2);no(1),Oa(e.pageSize)}}function NT(e,t){if(1&e&&(Hr(0,"div",12),Hr(1,"div",13),Da(2),jr(),Fr(3,zT,3,6,"mat-form-field",14),Fr(4,VT,2,1,"div",15),jr()),2&e){const e=na();no(2),Ma(" ",e._intl.itemsPerPageLabel," "),no(1),Vr("ngIf",e._displayedPageSizeOptions.length>1),no(1),Vr("ngIf",e._displayedPageSizeOptions.length<=1)}}function HT(e,t){if(1&e){const e=qr();Hr(0,"button",21),Xr("click",function(){return Lt(e),na().firstPage()}),dn(),Hr(1,"svg",7),Ur(2,"path",22),jr(),jr()}if(2&e){const e=na();Vr("matTooltip",e._intl.firstPageLabel)("matTooltipDisabled",e._previousButtonsDisabled())("matTooltipPosition","above")("disabled",e._previousButtonsDisabled()),Ir("aria-label",e._intl.firstPageLabel)}}function jT(e,t){if(1&e){const e=qr();dn(),un(),Hr(0,"button",23),Xr("click",function(){return Lt(e),na().lastPage()}),dn(),Hr(1,"svg",7),Ur(2,"path",24),jr(),jr()}if(2&e){const e=na();Vr("matTooltip",e._intl.lastPageLabel)("matTooltipDisabled",e._nextButtonsDisabled())("matTooltipPosition","above")("disabled",e._nextButtonsDisabled()),Ir("aria-label",e._intl.lastPageLabel)}}let UT=(()=>{class e{constructor(){this.changes=new A,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=(e,t,n)=>{if(0==n||0==t)return"0 of "+n;const i=e*t;return`${i+1} \u2013 ${i<(n=Math.max(n,0))?Math.min(i+t,n):i+t} of ${n}`}}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=pe({factory:function(){return new e},token:e,providedIn:"root"}),e})();const WT={provide:UT,deps:[[new yi,new wi,UT]],useFactory:function(e){return e||new UT}},GT=new Xn("MAT_PAGINATOR_DEFAULT_OPTIONS");class $T{}const qT=SE(OE($T));let YT=(()=>{class e extends qT{constructor(e,t,n){if(super(),this._intl=e,this._changeDetectorRef=t,this._pageIndex=0,this._length=0,this._pageSizeOptions=[],this._hidePageSize=!1,this._showFirstLastButtons=!1,this.page=new yc,this._intlChanges=e.changes.subscribe(()=>this._changeDetectorRef.markForCheck()),n){const{pageSize:e,pageSizeOptions:t,hidePageSize:i,showFirstLastButtons:s}=n;null!=e&&(this._pageSize=e),null!=t&&(this._pageSizeOptions=t),null!=i&&(this._hidePageSize=i),null!=s&&(this._showFirstLastButtons=s)}}get pageIndex(){return this._pageIndex}set pageIndex(e){this._pageIndex=Math.max(AP(e),0),this._changeDetectorRef.markForCheck()}get length(){return this._length}set length(e){this._length=AP(e),this._changeDetectorRef.markForCheck()}get pageSize(){return this._pageSize}set pageSize(e){this._pageSize=Math.max(AP(e),0),this._updateDisplayedPageSizeOptions()}get pageSizeOptions(){return this._pageSizeOptions}set pageSizeOptions(e){this._pageSizeOptions=(e||[]).map(e=>AP(e)),this._updateDisplayedPageSizeOptions()}get hidePageSize(){return this._hidePageSize}set hidePageSize(e){this._hidePageSize=xP(e)}get showFirstLastButtons(){return this._showFirstLastButtons}set showFirstLastButtons(e){this._showFirstLastButtons=xP(e)}ngOnInit(){this._initialized=!0,this._updateDisplayedPageSizeOptions(),this._markInitialized()}ngOnDestroy(){this._intlChanges.unsubscribe()}nextPage(){if(!this.hasNextPage())return;const e=this.pageIndex;this.pageIndex++,this._emitPageEvent(e)}previousPage(){if(!this.hasPreviousPage())return;const e=this.pageIndex;this.pageIndex--,this._emitPageEvent(e)}firstPage(){if(!this.hasPreviousPage())return;const e=this.pageIndex;this.pageIndex=0,this._emitPageEvent(e)}lastPage(){if(!this.hasNextPage())return;const e=this.pageIndex;this.pageIndex=this.getNumberOfPages()-1,this._emitPageEvent(e)}hasPreviousPage(){return this.pageIndex>=1&&0!=this.pageSize}hasNextPage(){const e=this.getNumberOfPages()-1;return this.pageIndex<e&&0!=this.pageSize}getNumberOfPages(){return this.pageSize?Math.ceil(this.length/this.pageSize):0}_changePageSize(e){const t=this.pageIndex;this.pageIndex=Math.floor(this.pageIndex*this.pageSize/e)||0,this.pageSize=e,this._emitPageEvent(t)}_nextButtonsDisabled(){return this.disabled||!this.hasNextPage()}_previousButtonsDisabled(){return this.disabled||!this.hasPreviousPage()}_updateDisplayedPageSizeOptions(){this._initialized&&(this.pageSize||(this._pageSize=0!=this.pageSizeOptions.length?this.pageSizeOptions[0]:50),this._displayedPageSizeOptions=this.pageSizeOptions.slice(),-1===this._displayedPageSizeOptions.indexOf(this.pageSize)&&this._displayedPageSizeOptions.push(this.pageSize),this._displayedPageSizeOptions.sort((e,t)=>e-t),this._changeDetectorRef.markForCheck())}_emitPageEvent(e){this.page.emit({previousPageIndex:e,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})}}return e.\u0275fac=function(t){return new(t||e)(zr(UT),zr(Tl),zr(void 0))},e.\u0275dir=Ke({type:e,inputs:{pageIndex:"pageIndex",length:"length",pageSize:"pageSize",pageSizeOptions:"pageSizeOptions",hidePageSize:"hidePageSize",showFirstLastButtons:"showFirstLastButtons",color:"color"},outputs:{page:"page"},features:[vr]}),e})(),ZT=(()=>{class e extends YT{constructor(e,t,n){super(e,t,n),n&&null!=n.formFieldAppearance&&(this._formFieldAppearance=n.formFieldAppearance)}}return e.\u0275fac=function(t){return new(t||e)(zr(UT),zr(Tl),zr(GT,8))},e.\u0275cmp=$e({type:e,selectors:[["mat-paginator"]],hostAttrs:[1,"mat-paginator"],inputs:{disabled:"disabled"},exportAs:["matPaginator"],features:[vr],decls:14,vars:14,consts:[[1,"mat-paginator-outer-container"],[1,"mat-paginator-container"],["class","mat-paginator-page-size",4,"ngIf"],[1,"mat-paginator-range-actions"],[1,"mat-paginator-range-label"],["mat-icon-button","","type","button","class","mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-previous",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["viewBox","0 0 24 24","focusable","false",1,"mat-paginator-icon"],["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-next",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"],["mat-icon-button","","type","button","class","mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],[1,"mat-paginator-page-size"],[1,"mat-paginator-page-size-label"],["class","mat-paginator-page-size-select",3,"appearance","color",4,"ngIf"],["class","mat-paginator-page-size-value",4,"ngIf"],[1,"mat-paginator-page-size-select",3,"appearance","color"],[3,"value","disabled","aria-label","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"mat-paginator-page-size-value"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"]],template:function(e,t){1&e&&(Hr(0,"div",0),Hr(1,"div",1),Fr(2,NT,5,3,"div",2),Hr(3,"div",3),Hr(4,"div",4),Da(5),jr(),Fr(6,HT,3,5,"button",5),Hr(7,"button",6),Xr("click",function(){return t.previousPage()}),dn(),Hr(8,"svg",7),Ur(9,"path",8),jr(),jr(),un(),Hr(10,"button",9),Xr("click",function(){return t.nextPage()}),dn(),Hr(11,"svg",7),Ur(12,"path",10),jr(),jr(),Fr(13,jT,3,5,"button",11),jr(),jr(),jr()),2&e&&(no(2),Vr("ngIf",!t.hidePageSize),no(3),Ma(" ",t._intl.getRangeLabel(t.pageIndex,t.pageSize,t.length)," "),no(1),Vr("ngIf",t.showFirstLastButtons),no(1),Vr("matTooltip",t._intl.previousPageLabel)("matTooltipDisabled",t._previousButtonsDisabled())("matTooltipPosition","above")("disabled",t._previousButtonsDisabled()),Ir("aria-label",t._intl.previousPageLabel),no(3),Vr("matTooltip",t._intl.nextPageLabel)("matTooltipDisabled",t._nextButtonsDisabled())("matTooltipPosition","above")("disabled",t._nextButtonsDisabled()),Ir("aria-label",t._intl.nextPageLabel),no(3),Vr("ngIf",t.showFirstLastButtons))},directives:[Wu,gM,RT,BO,kT,ju,JE],styles:[".mat-paginator{display:block}.mat-paginator-outer-container{display:flex}.mat-paginator-container{display:flex;align-items:center;justify-content:flex-end;padding:0 8px;flex-wrap:wrap-reverse;width:100%}.mat-paginator-page-size{display:flex;align-items:baseline;margin-right:8px}[dir=rtl] .mat-paginator-page-size{margin-right:0;margin-left:8px}.mat-paginator-page-size-label{margin:0 4px}.mat-paginator-page-size-select{margin:6px 4px 0 4px;width:56px}.mat-paginator-page-size-select.mat-form-field-appearance-outline{width:64px}.mat-paginator-page-size-select.mat-form-field-appearance-fill{width:64px}.mat-paginator-range-label{margin:0 32px 0 24px}.mat-paginator-range-actions{display:flex;align-items:center}.mat-paginator-icon{width:28px;fill:currentColor}[dir=rtl] .mat-paginator-icon{transform:rotate(180deg)}\n"],encapsulation:2,changeDetection:0}),e})(),QT=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=fe({providers:[WT],imports:[[uh,fM,ET,FT,CE]]}),e})(),XT=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=fe({imports:[[CE,uh],CE]}),e})(),KT=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=fe({imports:[[uh,CE,TP,CD],CD,CE]}),e})(),JT=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=fe({}),e})(),eI=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=fe({imports:[[JT,HE,CE,VP],JT,CE]}),e})(),tI=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=fe({imports:[[uh,CE],CE]}),e})(),nI=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=fe({imports:[[rO,iS,uh,fM,CE],CE]}),e})();const iI=["mat-sort-header",""];function sI(e,t){if(1&e){const e=qr();Hr(0,"div",3),Xr("@arrowPosition.start",function(){return Lt(e),na()._disableViewStateAnimation=!0})("@arrowPosition.done",function(){return Lt(e),na()._disableViewStateAnimation=!1}),Ur(1,"div",4),Hr(2,"div",5),Ur(3,"div",6),Ur(4,"div",7),Ur(5,"div",8),jr(),jr()}if(2&e){const e=na();Vr("@arrowOpacity",e._getArrowViewState())("@arrowPosition",e._getArrowViewState())("@allowChildren",e._getArrowDirectionState()),no(2),Vr("@indicator",e._getArrowDirectionState()),no(1),Vr("@leftPointer",e._getArrowDirectionState()),no(1),Vr("@rightPointer",e._getArrowDirectionState())}}const oI=["*"],rI=new Xn("MAT_SORT_DEFAULT_OPTIONS");class aI{}const lI=OE(SE(aI));let cI=(()=>{class e extends lI{constructor(e){super(),this._defaultOptions=e,this.sortables=new Map,this._stateChanges=new A,this.start="asc",this._direction="",this.sortChange=new yc}get direction(){return this._direction}set direction(e){this._direction=e}get disableClear(){return this._disableClear}set disableClear(e){this._disableClear=xP(e)}register(e){this.sortables.set(e.id,e)}deregister(e){this.sortables.delete(e.id)}sort(e){this.active!=e.id?(this.active=e.id,this.direction=e.start?e.start:this.start):this.direction=this.getNextSortDirection(e),this.sortChange.emit({active:this.active,direction:this.direction})}getNextSortDirection(e){var t,n,i;if(!e)return"";const s=null!==(n=null!==(t=null==e?void 0:e.disableClear)&&void 0!==t?t:this.disableClear)&&void 0!==n?n:!!(null===(i=this._defaultOptions)||void 0===i?void 0:i.disableClear);let o=function(e,t){let n=["asc","desc"];return"desc"==e&&n.reverse(),t||n.push(""),n}(e.start||this.start,s),r=o.indexOf(this.direction)+1;return r>=o.length&&(r=0),o[r]}ngOnInit(){this._markInitialized()}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return e.\u0275fac=function(t){return new(t||e)(zr(rI,8))},e.\u0275dir=Ke({type:e,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{disabled:["matSortDisabled","disabled"],start:["matSortStart","start"],direction:["matSortDirection","direction"],disableClear:["matSortDisableClear","disableClear"],active:["matSortActive","active"]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[vr,dt]}),e})();const dI=wE.ENTERING+" "+yE.STANDARD_CURVE,uI={indicator:Jh("indicator",[ip("active-asc, asc",np({transform:"translateY(0px)"})),ip("active-desc, desc",np({transform:"translateY(10px)"})),op("active-asc <=> active-desc",ep(dI))]),leftPointer:Jh("leftPointer",[ip("active-asc, asc",np({transform:"rotate(-45deg)"})),ip("active-desc, desc",np({transform:"rotate(45deg)"})),op("active-asc <=> active-desc",ep(dI))]),rightPointer:Jh("rightPointer",[ip("active-asc, asc",np({transform:"rotate(45deg)"})),ip("active-desc, desc",np({transform:"rotate(-45deg)"})),op("active-asc <=> active-desc",ep(dI))]),arrowOpacity:Jh("arrowOpacity",[ip("desc-to-active, asc-to-active, active",np({opacity:1})),ip("desc-to-hint, asc-to-hint, hint",np({opacity:.54})),ip("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",np({opacity:0})),op("* => asc, * => desc, * => active, * => hint, * => void",ep("0ms")),op("* <=> *",ep(dI))]),arrowPosition:Jh("arrowPosition",[op("* => desc-to-hint, * => desc-to-active",ep(dI,sp([np({transform:"translateY(-25%)"}),np({transform:"translateY(0)"})]))),op("* => hint-to-desc, * => active-to-desc",ep(dI,sp([np({transform:"translateY(0)"}),np({transform:"translateY(25%)"})]))),op("* => asc-to-hint, * => asc-to-active",ep(dI,sp([np({transform:"translateY(25%)"}),np({transform:"translateY(0)"})]))),op("* => hint-to-asc, * => active-to-asc",ep(dI,sp([np({transform:"translateY(0)"}),np({transform:"translateY(-25%)"})]))),ip("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",np({transform:"translateY(0)"})),ip("hint-to-desc, active-to-desc, desc",np({transform:"translateY(-25%)"})),ip("hint-to-asc, active-to-asc, asc",np({transform:"translateY(25%)"}))]),allowChildren:Jh("allowChildren",[op("* <=> *",[ap("@*",rp(),{optional:!0})])])};let hI=(()=>{class e{constructor(){this.changes=new A,this.sortButtonLabel=e=>"Change sorting for "+e}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=pe({factory:function(){return new e},token:e,providedIn:"root"}),e})();const pI={provide:hI,deps:[[new yi,new wi,hI]],useFactory:function(e){return e||new hI}};class gI{}const fI=SE(gI);let mI=(()=>{class e extends fI{constructor(e,t,n,i,s,o){super(),this._intl=e,this._changeDetectorRef=t,this._sort=n,this._columnDef=i,this._focusMonitor=s,this._elementRef=o,this._showIndicatorHint=!1,this._arrowDirection="",this._disableViewStateAnimation=!1,this.arrowPosition="after",this._handleStateChanges()}get disableClear(){return this._disableClear}set disableClear(e){this._disableClear=xP(e)}ngOnInit(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._updateArrowDirection(),this._setAnimationTransitionState({toState:this._isSorted()?"active":this._arrowDirection}),this._sort.register(this)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{const t=!!e;t!==this._showIndicatorHint&&(this._setIndicatorHintVisible(t),this._changeDetectorRef.markForCheck())})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._rerenderSubscription.unsubscribe()}_setIndicatorHintVisible(e){this._isDisabled()&&e||(this._showIndicatorHint=e,this._isSorted()||(this._updateArrowDirection(),this._setAnimationTransitionState(this._showIndicatorHint?{fromState:this._arrowDirection,toState:"hint"}:{fromState:"hint",toState:this._arrowDirection})))}_setAnimationTransitionState(e){this._viewState=e,this._disableViewStateAnimation&&(this._viewState={toState:e.toState})}_toggleOnInteraction(){this._sort.sort(this),"hint"!==this._viewState.toState&&"active"!==this._viewState.toState||(this._disableViewStateAnimation=!0)}_handleClick(){this._isDisabled()||this._sort.sort(this)}_handleKeydown(e){this._isDisabled()||32!==e.keyCode&&13!==e.keyCode||(e.preventDefault(),this._toggleOnInteraction())}_isSorted(){return this._sort.active==this.id&&("asc"===this._sort.direction||"desc"===this._sort.direction)}_getArrowDirectionState(){return`${this._isSorted()?"active-":""}${this._arrowDirection}`}_getArrowViewState(){const e=this._viewState.fromState;return(e?e+"-to-":"")+this._viewState.toState}_updateArrowDirection(){this._arrowDirection=this._isSorted()?this._sort.direction:this.start||this._sort.start}_isDisabled(){return this._sort.disabled||this.disabled}_getAriaSortAttribute(){return this._isSorted()?"asc"==this._sort.direction?"ascending":"descending":"none"}_renderArrow(){return!this._isDisabled()||this._isSorted()}_handleStateChanges(){this._rerenderSubscription=G(this._sort.sortChange,this._sort._stateChanges,this._intl.changes).subscribe(()=>{this._isSorted()&&(this._updateArrowDirection(),"hint"!==this._viewState.toState&&"active"!==this._viewState.toState||(this._disableViewStateAnimation=!0),this._setAnimationTransitionState({fromState:this._arrowDirection,toState:"active"}),this._showIndicatorHint=!1),!this._isSorted()&&this._viewState&&"active"===this._viewState.toState&&(this._disableViewStateAnimation=!1,this._setAnimationTransitionState({fromState:"active",toState:this._arrowDirection})),this._changeDetectorRef.markForCheck()})}}return e.\u0275fac=function(t){return new(t||e)(zr(hI),zr(Tl),zr(cI,8),zr("MAT_SORT_HEADER_COLUMN_DEF",8),zr(lE),zr(rl))},e.\u0275cmp=$e({type:e,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(e,t){1&e&&Xr("click",function(){return t._handleClick()})("keydown",function(e){return t._handleKeydown(e)})("mouseenter",function(){return t._setIndicatorHintVisible(!0)})("mouseleave",function(){return t._setIndicatorHintVisible(!1)}),2&e&&(Ir("aria-sort",t._getAriaSortAttribute()),ma("mat-sort-header-disabled",t._isDisabled()))},inputs:{disabled:"disabled",arrowPosition:"arrowPosition",disableClear:"disableClear",id:["mat-sort-header","id"],start:"start"},exportAs:["matSortHeader"],features:[vr],attrs:iI,ngContentSelectors:oI,decls:4,vars:6,consts:[["role","button",1,"mat-sort-header-container","mat-focus-indicator"],[1,"mat-sort-header-content"],["class","mat-sort-header-arrow",4,"ngIf"],[1,"mat-sort-header-arrow"],[1,"mat-sort-header-stem"],[1,"mat-sort-header-indicator"],[1,"mat-sort-header-pointer-left"],[1,"mat-sort-header-pointer-right"],[1,"mat-sort-header-pointer-middle"]],template:function(e,t){1&e&&(sa(),Hr(0,"div",0),Hr(1,"div",1),oa(2),jr(),Fr(3,sI,6,6,"div",2),jr()),2&e&&(ma("mat-sort-header-sorted",t._isSorted())("mat-sort-header-position-before","before"==t.arrowPosition),Ir("tabindex",t._isDisabled()?null:0),no(3),Vr("ngIf",t._renderArrow()))},directives:[Wu],styles:[".mat-sort-header-container{display:flex;cursor:pointer;align-items:center;letter-spacing:normal;outline:0}[mat-sort-header].cdk-keyboard-focused .mat-sort-header-container,[mat-sort-header].cdk-program-focused .mat-sort-header-container{border-bottom:solid 1px currentColor}.mat-sort-header-disabled .mat-sort-header-container{cursor:default}.mat-sort-header-content{text-align:center;display:flex;align-items:center}.mat-sort-header-position-before{flex-direction:row-reverse}.mat-sort-header-arrow{height:12px;width:12px;min-width:12px;position:relative;display:flex;opacity:0}.mat-sort-header-arrow,[dir=rtl] .mat-sort-header-position-before .mat-sort-header-arrow{margin:0 0 0 6px}.mat-sort-header-position-before .mat-sort-header-arrow,[dir=rtl] .mat-sort-header-arrow{margin:0 6px 0 0}.mat-sort-header-stem{background:currentColor;height:10px;width:2px;margin:auto;display:flex;align-items:center}.cdk-high-contrast-active .mat-sort-header-stem{width:0;border-left:solid 2px}.mat-sort-header-indicator{width:100%;height:2px;display:flex;align-items:center;position:absolute;top:0;left:0}.mat-sort-header-pointer-middle{margin:auto;height:2px;width:2px;background:currentColor;transform:rotate(45deg)}.cdk-high-contrast-active .mat-sort-header-pointer-middle{width:0;height:0;border-top:solid 2px;border-left:solid 2px}.mat-sort-header-pointer-left,.mat-sort-header-pointer-right{background:currentColor;width:6px;height:2px;position:absolute;top:0}.cdk-high-contrast-active .mat-sort-header-pointer-left,.cdk-high-contrast-active .mat-sort-header-pointer-right{width:0;height:0;border-left:solid 6px;border-top:solid 2px}.mat-sort-header-pointer-left{transform-origin:right;left:0}.mat-sort-header-pointer-right{transform-origin:left;right:0}\n"],encapsulation:2,data:{animation:[uI.indicator,uI.leftPointer,uI.rightPointer,uI.arrowOpacity,uI.arrowPosition,uI.allowChildren]},changeDetection:0}),e})(),bI=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=fe({providers:[pI],imports:[[uh,CE]]}),e})(),vI=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=fe({imports:[[SD]]}),e})(),yI=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=fe({imports:[[vI,CE],CE]}),e})(),wI=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=fe({imports:[[uh,CE,iS,HE,VP,uE],CE]}),e})();const _I=["mat-menu-item",""],xI=["*"];function AI(e,t){if(1&e){const e=qr();Hr(0,"div",0),Xr("keydown",function(t){return Lt(e),na()._handleKeydown(t)})("click",function(){return Lt(e),na().closed.emit("click")})("@transformMenu.start",function(t){return Lt(e),na()._onAnimationStart(t)})("@transformMenu.done",function(t){return Lt(e),na()._onAnimationDone(t)}),Hr(1,"div",1),oa(2),jr(),jr()}if(2&e){const e=na();Vr("id",e.panelId)("ngClass",e._classList)("@transformMenu",e._panelAnimationState),Ir("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby||null)("aria-describedby",e.ariaDescribedby||null)}}const CI={transformMenu:Jh("transformMenu",[ip("void",np({opacity:0,transform:"scale(0.8)"})),op("void => enter",ep("120ms cubic-bezier(0, 0, 0.2, 1)",np({opacity:1,transform:"scale(1)"}))),op("* => void",ep("100ms 25ms linear",np({opacity:0})))]),fadeInItems:Jh("fadeInItems",[ip("showing",np({opacity:1})),op("void => *",[np({opacity:0}),ep("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},SI=new Xn("MatMenuContent"),kI=new Xn("MAT_MENU_PANEL");class PI{}const EI=PE(SE(PI));let DI=(()=>{class e extends EI{constructor(e,t,n,i){super(),this._elementRef=e,this._focusMonitor=n,this._parentMenu=i,this.role="menuitem",this._hovered=new A,this._focused=new A,this._highlighted=!1,this._triggersSubmenu=!1,i&&i.addItem&&i.addItem(this)}focus(e,t){this._focusMonitor&&e?this._focusMonitor.focusVia(this._getHostElement(),e,t):this._getHostElement().focus(t),this._focused.next(this)}ngAfterViewInit(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}ngOnDestroy(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._elementRef.nativeElement}_checkDisabled(e){this.disabled&&(e.preventDefault(),e.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){var e,t;const n=this._elementRef.nativeElement.cloneNode(!0),i=n.querySelectorAll("mat-icon, .material-icons");for(let s=0;s<i.length;s++){const t=i[s];null===(e=t.parentNode)||void 0===e||e.removeChild(t)}return(null===(t=n.textContent)||void 0===t?void 0:t.trim())||""}}return e.\u0275fac=function(t){return new(t||e)(zr(rl),zr(Hd),zr(lE),zr(kI,8))},e.\u0275cmp=$e({type:e,selectors:[["","mat-menu-item",""]],hostAttrs:[1,"mat-focus-indicator"],hostVars:10,hostBindings:function(e,t){1&e&&Xr("click",function(e){return t._checkDisabled(e)})("mouseenter",function(){return t._handleMouseEnter()}),2&e&&(Ir("role",t.role)("tabindex",t._getTabIndex())("aria-disabled",t.disabled.toString())("disabled",t.disabled||null),ma("mat-menu-item",!0)("mat-menu-item-highlighted",t._highlighted)("mat-menu-item-submenu-trigger",t._triggersSubmenu))},inputs:{disabled:"disabled",disableRipple:"disableRipple",role:"role"},exportAs:["matMenuItem"],features:[vr],attrs:_I,ngContentSelectors:xI,decls:2,vars:2,consts:[["matRipple","",1,"mat-menu-ripple",3,"matRippleDisabled","matRippleTrigger"]],template:function(e,t){1&e&&(sa(),oa(0),Ur(1,"div",0)),2&e&&(no(1),Vr("matRippleDisabled",t.disableRipple||t.disabled)("matRippleTrigger",t._getHostElement()))},directives:[NE],encapsulation:2,changeDetection:0}),e})();const OI=new Xn("mat-menu-default-options",{providedIn:"root",factory:function(){return{overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"}}});let MI=0,TI=(()=>{class e{constructor(e,t,n){this._elementRef=e,this._ngZone=t,this._defaultOptions=n,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new _c,this._tabSubscription=u.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new A,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new yc,this.close=this.closed,this.panelId="mat-menu-panel-"+MI++}get xPosition(){return this._xPosition}set xPosition(e){this._xPosition=e,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(e){this._yPosition=e,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(e){this._overlapTrigger=xP(e)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(e){this._hasBackdrop=xP(e)}set panelClass(e){const t=this._previousPanelClass;t&&t.length&&t.split(" ").forEach(e=>{this._classList[e]=!1}),this._previousPanelClass=e,e&&e.length&&(e.split(" ").forEach(e=>{this._classList[e]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(e){this.panelClass=e}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new ZP(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._tabSubscription=this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(uv(this._directDescendantItems),sv(e=>G(...e.map(e=>e._focused)))).subscribe(e=>this._keyManager.updateActiveItem(e))}ngOnDestroy(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}_hovered(){return this._directDescendantItems.changes.pipe(uv(this._directDescendantItems),sv(e=>G(...e.map(e=>e._hovered))))}addItem(e){}removeItem(e){}_handleKeydown(e){const t=e.keyCode,n=this._keyManager;switch(t){case 27:mP(e)||(e.preventDefault(),this.closed.emit("keydown"));break;case 37:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case 39:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:38!==t&&40!==t||n.setFocusOrigin("keyboard"),n.onKeydown(e)}}focusFirstItem(e="program"){this.lazyContent?this._ngZone.onStable.pipe(lv(1)).subscribe(()=>this._focusFirstItem(e)):this._focusFirstItem(e)}_focusFirstItem(e){const t=this._keyManager;if(t.setFocusOrigin(e).setFirstItemActive(),!t.activeItem&&this._directDescendantItems.length){let e=this._directDescendantItems.first._getHostElement().parentElement;for(;e;){if("menu"===e.getAttribute("role")){e.focus();break}e=e.parentElement}}}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(e){const t="mat-elevation-z"+Math.min(4+e,24),n=Object.keys(this._classList).find(e=>e.startsWith("mat-elevation-z"));n&&n!==this._previousElevation||(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[t]=!0,this._previousElevation=t)}setPositionClasses(e=this.xPosition,t=this.yPosition){const n=this._classList;n["mat-menu-before"]="before"===e,n["mat-menu-after"]="after"===e,n["mat-menu-above"]="above"===t,n["mat-menu-below"]="below"===t}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(e){this._animationDone.next(e),this._isAnimating=!1}_onAnimationStart(e){this._isAnimating=!0,"enter"===e.toState&&0===this._keyManager.activeItemIndex&&(e.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe(uv(this._allItems)).subscribe(e=>{this._directDescendantItems.reset(e.filter(e=>e._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return e.\u0275fac=function(t){return new(t||e)(zr(rl),zr(ad),zr(OI))},e.\u0275dir=Ke({type:e,contentQueries:function(e,t,n){if(1&e&&(Ic(n,SI,1),Ic(n,DI,1),Ic(n,DI,0)),2&e){let e;Mc(e=Rc())&&(t.lazyContent=e.first),Mc(e=Rc())&&(t._allItems=e),Mc(e=Rc())&&(t.items=e)}},viewQuery:function(e,t){if(1&e&&Tc(zl,1),2&e){let e;Mc(e=Rc())&&(t.templateRef=e.first)}},inputs:{backdropClass:"backdropClass",xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"]},outputs:{closed:"closed",close:"close"}}),e})(),II=(()=>{class e extends TI{constructor(e,t,n){super(e,t,n)}}return e.\u0275fac=function(t){return new(t||e)(zr(rl),zr(ad),zr(OI))},e.\u0275cmp=$e({type:e,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(e,t){2&e&&Ir("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[Ja([{provide:kI,useExisting:e}]),vr],ngContentSelectors:xI,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(e,t){1&e&&(sa(),Fr(0,AI,3,6,"ng-template"))},directives:[Nu],styles:['mat-menu{display:none}.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]{pointer-events:none}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.cdk-high-contrast-active .mat-menu-item.cdk-program-focused,.cdk-high-contrast-active .mat-menu-item.cdk-keyboard-focused,.cdk-high-contrast-active .mat-menu-item-highlighted{outline:dotted 1px}.mat-menu-item-submenu-trigger{padding-right:32px}.mat-menu-item-submenu-trigger::after{width:0;height:0;border-style:solid;border-width:5px 0 5px 5px;border-color:transparent transparent transparent currentColor;content:"";display:inline-block;position:absolute;top:50%;right:16px;transform:translateY(-50%)}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}[dir=rtl] .mat-menu-item-submenu-trigger::after{right:auto;left:16px;transform:rotateY(180deg) translateY(-50%)}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\n'],encapsulation:2,data:{animation:[CI.transformMenu,CI.fadeInItems]},changeDetection:0}),e})();const RI=new Xn("mat-menu-scroll-strategy"),LI={provide:RI,deps:[eO],useFactory:function(e){return()=>e.scrollStrategies.reposition()}},FI=IP({passive:!0});let BI=(()=>{class e{constructor(e,t,n,i,s,o,r,a){this._overlay=e,this._element=t,this._viewContainerRef=n,this._menuItemInstance=o,this._dir=r,this._focusMonitor=a,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=u.EMPTY,this._hoverSubscription=u.EMPTY,this._menuCloseSubscription=u.EMPTY,this._handleTouchStart=e=>{oE(e)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new yc,this.onMenuOpen=this.menuOpened,this.menuClosed=new yc,this.onMenuClose=this.menuClosed,this._scrollStrategy=i,this._parentMaterialMenu=s instanceof TI?s:void 0,t.nativeElement.addEventListener("touchstart",this._handleTouchStart,FI),o&&(o._triggersSubmenu=this.triggersSubmenu())}get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(e){this.menu=e}get menu(){return this._menu}set menu(e){e!==this._menu&&(this._menu=e,this._menuCloseSubscription.unsubscribe(),e&&(this._menuCloseSubscription=e.close.subscribe(e=>{this._destroyMenu(e),"click"!==e&&"tab"!==e||!this._parentMaterialMenu||this._parentMaterialMenu.closed.emit(e)})))}ngAfterContentInit(){this._checkMenu(),this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,FI),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}triggersSubmenu(){return!(!this._menuItemInstance||!this._parentMaterialMenu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){if(this._menuOpen)return;this._checkMenu();const e=this._createOverlay(),t=e.getConfig();this._setPosition(t.positionStrategy),t.hasBackdrop=null==this.menu.hasBackdrop?!this.triggersSubmenu():this.menu.hasBackdrop,e.attach(this._getPortal()),this.menu.lazyContent&&this.menu.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(),this.menu instanceof TI&&this.menu._startAnimation()}closeMenu(){this.menu.close.emit()}focus(e,t){this._focusMonitor&&e?this._focusMonitor.focusVia(this._element,e,t):this._element.nativeElement.focus(t)}_destroyMenu(e){if(!this._overlayRef||!this.menuOpen)return;const t=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),!this.restoreFocus||"keydown"!==e&&this._openedBy&&this.triggersSubmenu()||this.focus(this._openedBy),this._openedBy=void 0,t instanceof TI?(t._resetAnimation(),t.lazyContent?t._animationDone.pipe(db(e=>"void"===e.toState),lv(1),vD(t.lazyContent._attached)).subscribe({next:()=>t.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),t.lazyContent&&t.lazyContent.detach())}_initMenu(){this.menu.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,this.menu.direction=this.dir,this._setMenuElevation(),this.menu.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(){if(this.menu.setElevation){let e=0,t=this.menu.parentMenu;for(;t;)e++,t=t.parentMenu;this.menu.setElevation(e)}}_setIsMenuOpen(e){this._menuOpen=e,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&(this._menuItemInstance._highlighted=e)}_checkMenu(){}_createOverlay(){if(!this._overlayRef){const e=this._getOverlayConfig();this._subscribeToPositions(e.positionStrategy),this._overlayRef=this._overlay.create(e),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(){return new FD({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:this.menu.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:this.menu.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(e){this.menu.setPositionClasses&&e.positionChanges.subscribe(e=>{this.menu.setPositionClasses("start"===e.connectionPair.overlayX?"after":"before","top"===e.connectionPair.overlayY?"below":"above")})}_setPosition(e){let[t,n]="before"===this.menu.xPosition?["end","start"]:["start","end"],[i,s]="above"===this.menu.yPosition?["bottom","top"]:["top","bottom"],[o,r]=[i,s],[a,l]=[t,n],c=0;this.triggersSubmenu()?(l=t="before"===this.menu.xPosition?"start":"end",n=a="end"===t?"start":"end",c="bottom"===i?8:-8):this.menu.overlapTrigger||(o="top"===i?"bottom":"top",r="top"===s?"bottom":"top"),e.withPositions([{originX:t,originY:o,overlayX:a,overlayY:i,offsetY:c},{originX:n,originY:o,overlayX:l,overlayY:i,offsetY:c},{originX:t,originY:r,overlayX:a,overlayY:s,offsetY:-c},{originX:n,originY:r,overlayX:l,overlayY:s,offsetY:-c}])}_menuClosingActions(){const e=this._overlayRef.backdropClick(),t=this._overlayRef.detachments();return G(e,this._parentMaterialMenu?this._parentMaterialMenu.closed:lb(),this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe(db(e=>e!==this._menuItemInstance),db(()=>this._menuOpen)):lb(),t)}_handleMousedown(e){sE(e)||(this._openedBy=0===e.button?"mouse":void 0,this.triggersSubmenu()&&e.preventDefault())}_handleKeydown(e){const t=e.keyCode;13!==t&&32!==t||(this._openedBy="keyboard"),this.triggersSubmenu()&&(39===t&&"ltr"===this.dir||37===t&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(e){this.triggersSubmenu()?(e.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){this.triggersSubmenu()&&this._parentMaterialMenu&&(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe(db(e=>e===this._menuItemInstance&&!e.disabled),VO(0,hD)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof TI&&this.menu._isAnimating?this.menu._animationDone.pipe(lv(1),VO(0,hD),vD(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(){return this._portal&&this._portal.templateRef===this.menu.templateRef||(this._portal=new KC(this.menu.templateRef,this._viewContainerRef)),this._portal}}return e.\u0275fac=function(t){return new(t||e)(zr(eO),zr(rl),zr(Gl),zr(RI),zr(kI,8),zr(DI,10),zr(pE,8),zr(lE))},e.\u0275dir=Ke({type:e,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:["aria-haspopup","true",1,"mat-menu-trigger"],hostVars:2,hostBindings:function(e,t){1&e&&Xr("mousedown",function(e){return t._handleMousedown(e)})("keydown",function(e){return t._handleKeydown(e)})("click",function(e){return t._handleClick(e)}),2&e&&Ir("aria-expanded",t.menuOpen||null)("aria-controls",t.menuOpen?t.menu.panelId:null)},inputs:{restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"],_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"},exportAs:["matMenuTrigger"]}),e})(),zI=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=fe({providers:[LI],imports:[CE]}),e})(),VI=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=fe({providers:[LI],imports:[[uh,CE,HE,rO,zI],CD,CE,zI]}),e})();function NI(e){const{subscriber:t,counter:n,period:i}=e;t.next(n),this.schedule({subscriber:t,counter:n+1,period:i},i)}function HI(e,t){for(let n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function jI(e,t){const n=t?"":"none";HI(e.style,{touchAction:t?"":"none",webkitUserDrag:t?"":"none",webkitTapHighlightColor:t?"":"transparent",userSelect:n,msUserSelect:n,webkitUserSelect:n,MozUserSelect:n})}function UI(e,t){const n=e.style;n.position=t?"":"fixed",n.top=n.opacity=t?"":"0",n.left=t?"":"-999em"}function WI(e){const t=e.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(e)*t}function GI(e,t){return e.getPropertyValue(t).split(",").map(e=>e.trim())}function $I(e){const t=e.getBoundingClientRect();return{top:t.top,right:t.right,bottom:t.bottom,left:t.left,width:t.width,height:t.height}}function qI(e,t,n){const{top:i,bottom:s,left:o,right:r}=e;return n>=i&&n<=s&&t>=o&&t<=r}function YI(e,t,n){e.top+=t,e.bottom=e.top+e.height,e.left+=n,e.right=e.left+e.width}function ZI(e,t,n,i){const{top:s,right:o,bottom:r,left:a,width:l,height:c}=e,d=l*t,u=c*t;return i>s-u&&i<r+u&&n>a-d&&n<o+d}class QI{constructor(e,t){this._document=e,this._viewportRuler=t,this.positions=new Map}clear(){this.positions.clear()}cache(e){this.clear(),this.positions.set(this._document,{scrollPosition:this._viewportRuler.getViewportScrollPosition()}),e.forEach(e=>{this.positions.set(e,{scrollPosition:{top:e.scrollTop,left:e.scrollLeft},clientRect:$I(e)})})}handleScroll(e){const t=e.target,n=this.positions.get(t);if(!n)return null;const i=t===this._document?t.documentElement:t,s=n.scrollPosition;let o,r;if(t===this._document){const e=this._viewportRuler.getViewportScrollPosition();o=e.top,r=e.left}else o=t.scrollTop,r=t.scrollLeft;const a=s.top-o,l=s.left-r;return this.positions.forEach((e,n)=>{e.clientRect&&t!==n&&i.contains(n)&&YI(e.clientRect,a,l)}),s.top=o,s.left=r,{top:a,left:l}}}function XI(e){const t=e.cloneNode(!0),n=t.querySelectorAll("[id]"),i=e.nodeName.toLowerCase();t.removeAttribute("id");for(let s=0;s<n.length;s++)n[s].removeAttribute("id");return"canvas"===i?tR(e,t):"input"!==i&&"select"!==i&&"textarea"!==i||eR(e,t),KI("canvas",e,t,tR),KI("input, textarea, select",e,t,eR),t}function KI(e,t,n,i){const s=t.querySelectorAll(e);if(s.length){const t=n.querySelectorAll(e);for(let e=0;e<s.length;e++)i(s[e],t[e])}}let JI=0;function eR(e,t){"file"!==t.type&&(t.value=e.value),"radio"===t.type&&t.name&&(t.name=`mat-clone-${t.name}-${JI++}`)}function tR(e,t){const n=t.getContext("2d");if(n)try{n.drawImage(e,0,0)}catch(FH){}}const nR=IP({passive:!0}),iR=IP({passive:!1});class sR{constructor(e,t,n,i,s,o){this._config=t,this._document=n,this._ngZone=i,this._viewportRuler=s,this._dragDropRegistry=o,this._passiveTransform={x:0,y:0},this._activeTransform={x:0,y:0},this._moveEvents=new A,this._pointerMoveSubscription=u.EMPTY,this._pointerUpSubscription=u.EMPTY,this._scrollSubscription=u.EMPTY,this._resizeSubscription=u.EMPTY,this._boundaryElement=null,this._nativeInteractionsEnabled=!0,this._handles=[],this._disabledHandles=new Set,this._direction="ltr",this.dragStartDelay=0,this._disabled=!1,this.beforeStarted=new A,this.started=new A,this.released=new A,this.ended=new A,this.entered=new A,this.exited=new A,this.dropped=new A,this.moved=this._moveEvents,this._pointerDown=e=>{if(this.beforeStarted.next(),this._handles.length){const t=this._handles.find(t=>{const n=e.target;return!!n&&(n===t||t.contains(n))});!t||this._disabledHandles.has(t)||this.disabled||this._initializeDragSequence(t,e)}else this.disabled||this._initializeDragSequence(this._rootElement,e)},this._pointerMove=e=>{const t=this._getPointerPositionOnPage(e);if(!this._hasStartedDragging){if(Math.abs(t.x-this._pickupPositionOnPage.x)+Math.abs(t.y-this._pickupPositionOnPage.y)>=this._config.dragStartThreshold){const t=Date.now()>=this._dragStartTime+this._getDragStartDelay(e),n=this._dropContainer;if(!t)return void this._endDragSequence(e);n&&(n.isDragging()||n.isReceiving())||(e.preventDefault(),this._hasStartedDragging=!0,this._ngZone.run(()=>this._startDragSequence(e)))}return}this._boundaryElement&&(this._previewRect&&(this._previewRect.width||this._previewRect.height)||(this._previewRect=(this._preview||this._rootElement).getBoundingClientRect())),e.preventDefault();const n=this._getConstrainedPointerPosition(t);if(this._hasMoved=!0,this._lastKnownPointerPosition=t,this._updatePointerDirectionDelta(n),this._dropContainer)this._updateActiveDropContainer(n,t);else{const e=this._activeTransform;e.x=n.x-this._pickupPositionOnPage.x+this._passiveTransform.x,e.y=n.y-this._pickupPositionOnPage.y+this._passiveTransform.y,this._applyRootElementTransform(e.x,e.y),"undefined"!=typeof SVGElement&&this._rootElement instanceof SVGElement&&this._rootElement.setAttribute("transform",`translate(${e.x} ${e.y})`)}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:n,event:e,distance:this._getDragDistance(n),delta:this._pointerDirectionDelta})})},this._pointerUp=e=>{this._endDragSequence(e)},this.withRootElement(e).withParent(t.parentDragRef||null),this._parentPositions=new QI(n,s),o.registerDragItem(this)}get disabled(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)}set disabled(e){const t=xP(e);t!==this._disabled&&(this._disabled=t,this._toggleNativeDragInteractions(),this._handles.forEach(e=>jI(e,t)))}getPlaceholderElement(){return this._placeholder}getRootElement(){return this._rootElement}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}withHandles(e){this._handles=e.map(e=>kP(e)),this._handles.forEach(e=>jI(e,this.disabled)),this._toggleNativeDragInteractions();const t=new Set;return this._disabledHandles.forEach(e=>{this._handles.indexOf(e)>-1&&t.add(e)}),this._disabledHandles=t,this}withPreviewTemplate(e){return this._previewTemplate=e,this}withPlaceholderTemplate(e){return this._placeholderTemplate=e,this}withRootElement(e){const t=kP(e);return t!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(()=>{t.addEventListener("mousedown",this._pointerDown,iR),t.addEventListener("touchstart",this._pointerDown,nR)}),this._initialTransform=void 0,this._rootElement=t),"undefined"!=typeof SVGElement&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}withBoundaryElement(e){return this._boundaryElement=e?kP(e):null,this._resizeSubscription.unsubscribe(),e&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}withParent(e){return this._parentDragRef=e,this}dispose(){this._removeRootElementListeners(this._rootElement),this.isDragging()&&aR(this._rootElement),aR(this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._dragDropRegistry.removeDragItem(this),this._removeSubscriptions(),this.beforeStarted.complete(),this.started.complete(),this.released.complete(),this.ended.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this._moveEvents.complete(),this._handles=[],this._disabledHandles.clear(),this._dropContainer=void 0,this._resizeSubscription.unsubscribe(),this._parentPositions.clear(),this._boundaryElement=this._rootElement=this._ownerSVGElement=this._placeholderTemplate=this._previewTemplate=this._anchor=this._parentDragRef=null}isDragging(){return this._hasStartedDragging&&this._dragDropRegistry.isDragging(this)}reset(){this._rootElement.style.transform=this._initialTransform||"",this._activeTransform={x:0,y:0},this._passiveTransform={x:0,y:0}}disableHandle(e){!this._disabledHandles.has(e)&&this._handles.indexOf(e)>-1&&(this._disabledHandles.add(e),jI(e,!0))}enableHandle(e){this._disabledHandles.has(e)&&(this._disabledHandles.delete(e),jI(e,this.disabled))}withDirection(e){return this._direction=e,this}_withDropContainer(e){this._dropContainer=e}getFreeDragPosition(){const e=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:e.x,y:e.y}}setFreeDragPosition(e){return this._activeTransform={x:0,y:0},this._passiveTransform.x=e.x,this._passiveTransform.y=e.y,this._dropContainer||this._applyRootElementTransform(e.x,e.y),this}_sortFromLastPointerPosition(){const e=this._lastKnownPointerPosition;e&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(e),e)}_removeSubscriptions(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe()}_destroyPreview(){this._preview&&aR(this._preview),this._previewRef&&this._previewRef.destroy(),this._preview=this._previewRef=null}_destroyPlaceholder(){this._placeholder&&aR(this._placeholder),this._placeholderRef&&this._placeholderRef.destroy(),this._placeholder=this._placeholderRef=null}_endDragSequence(e){this._dragDropRegistry.isDragging(this)&&(this._removeSubscriptions(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),this._hasStartedDragging&&(this.released.next({source:this}),this._dropContainer?(this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(()=>{this._cleanupDragArtifacts(e),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)})):(this._passiveTransform.x=this._activeTransform.x,this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(()=>{this.ended.next({source:this,distance:this._getDragDistance(this._getPointerPositionOnPage(e))})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this))))}_startDragSequence(e){lR(e)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();const t=this._dropContainer;if(t){const e=this._rootElement,n=e.parentNode,i=this._preview=this._createPreviewElement(),s=this._placeholder=this._createPlaceholderElement(),o=this._anchor=this._anchor||this._document.createComment(""),r=this._getShadowRoot();n.insertBefore(o,e),UI(e,!1),this._document.body.appendChild(n.replaceChild(s,e)),function(e,t){return t||e.fullscreenElement||e.webkitFullscreenElement||e.mozFullScreenElement||e.msFullscreenElement||e.body}(this._document,r).appendChild(i),this.started.next({source:this}),t.start(),this._initialContainer=t,this._initialIndex=t.getItemIndex(this)}else this.started.next({source:this}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(t?t.getScrollableParents():[])}_initializeDragSequence(e,t){this._parentDragRef&&t.stopPropagation();const n=this.isDragging(),i=lR(t),s=!i&&0!==t.button,o=this._rootElement,r=!i&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now();if(t.target&&t.target.draggable&&"mousedown"===t.type&&t.preventDefault(),n||s||r)return;this._handles.length&&(this._rootElementTapHighlight=o.style.webkitTapHighlightColor||"",o.style.webkitTapHighlightColor="transparent"),this._hasStartedDragging=this._hasMoved=!1,this._removeSubscriptions(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scroll.subscribe(e=>{this._updateOnScroll(e)}),this._boundaryElement&&(this._boundaryRect=$I(this._boundaryElement));const a=this._previewTemplate;this._pickupPositionInElement=a&&a.template&&!a.matchSize?{x:0,y:0}:this._getPointerPositionInElement(e,t);const l=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(t);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:l.x,y:l.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,t)}_cleanupDragArtifacts(e){UI(this._rootElement,!0),this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._boundaryRect=this._previewRect=void 0,this._ngZone.run(()=>{const t=this._dropContainer,n=t.getItemIndex(this),i=this._getPointerPositionOnPage(e),s=this._getDragDistance(this._getPointerPositionOnPage(e)),o=t._isOverContainer(i.x,i.y);this.ended.next({source:this,distance:s}),this.dropped.next({item:this,currentIndex:n,previousIndex:this._initialIndex,container:t,previousContainer:this._initialContainer,isPointerOverContainer:o,distance:s}),t.drop(this,n,this._initialIndex,this._initialContainer,o,s),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:e,y:t},{x:n,y:i}){let s=this._initialContainer._getSiblingContainerFromPosition(this,e,t);!s&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(e,t)&&(s=this._initialContainer),s&&s!==this._dropContainer&&this._ngZone.run(()=>{this.exited.next({item:this,container:this._dropContainer}),this._dropContainer.exit(this),this._dropContainer=s,this._dropContainer.enter(this,e,t,s===this._initialContainer&&s.sortingDisabled?this._initialIndex:void 0),this.entered.next({item:this,container:s,currentIndex:s.getItemIndex(this)})}),this._dropContainer._startScrollingIfNecessary(n,i),this._dropContainer._sortItem(this,e,t,this._pointerDirectionDelta),this._preview.style.transform=oR(e-this._pickupPositionInElement.x,t-this._pickupPositionInElement.y)}_createPreviewElement(){const e=this._previewTemplate,t=this.previewClass,n=e?e.template:null;let i;if(n&&e){const t=e.matchSize?this._rootElement.getBoundingClientRect():null,s=e.viewContainer.createEmbeddedView(n,e.context);s.detectChanges(),i=cR(s,this._document),this._previewRef=s,e.matchSize?dR(i,t):i.style.transform=oR(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else{const e=this._rootElement;i=XI(e),dR(i,e.getBoundingClientRect())}return HI(i.style,{pointerEvents:"none",margin:"0",position:"fixed",top:"0",left:"0",zIndex:""+(this._config.zIndex||1e3)}),jI(i,!1),i.classList.add("cdk-drag-preview"),i.setAttribute("dir",this._direction),t&&(Array.isArray(t)?t.forEach(e=>i.classList.add(e)):i.classList.add(t)),i}_animatePreviewToPlaceholder(){if(!this._hasMoved)return Promise.resolve();const e=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._preview.style.transform=oR(e.left,e.top);const t=function(e){const t=getComputedStyle(e),n=GI(t,"transition-property"),i=n.find(e=>"transform"===e||"all"===e);if(!i)return 0;const s=n.indexOf(i),o=GI(t,"transition-duration"),r=GI(t,"transition-delay");return WI(o[s])+WI(r[s])}(this._preview);return 0===t?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(e=>{const n=t=>{(!t||t.target===this._preview&&"transform"===t.propertyName)&&(this._preview.removeEventListener("transitionend",n),e(),clearTimeout(i))},i=setTimeout(n,1.5*t);this._preview.addEventListener("transitionend",n)}))}_createPlaceholderElement(){const e=this._placeholderTemplate,t=e?e.template:null;let n;return t?(this._placeholderRef=e.viewContainer.createEmbeddedView(t,e.context),this._placeholderRef.detectChanges(),n=cR(this._placeholderRef,this._document)):n=XI(this._rootElement),n.classList.add("cdk-drag-placeholder"),n}_getPointerPositionInElement(e,t){const n=this._rootElement.getBoundingClientRect(),i=e===this._rootElement?null:e,s=i?i.getBoundingClientRect():n,o=lR(t)?t.targetTouches[0]:t,r=this._getViewportScrollPosition();return{x:s.left-n.left+(o.pageX-s.left-r.left),y:s.top-n.top+(o.pageY-s.top-r.top)}}_getPointerPositionOnPage(e){const t=this._getViewportScrollPosition(),n=lR(e)?e.touches[0]||e.changedTouches[0]||{pageX:0,pageY:0}:e,i=n.pageX-t.left,s=n.pageY-t.top;if(this._ownerSVGElement){const e=this._ownerSVGElement.getScreenCTM();if(e){const t=this._ownerSVGElement.createSVGPoint();return t.x=i,t.y=s,t.matrixTransform(e.inverse())}}return{x:i,y:s}}_getConstrainedPointerPosition(e){const t=this._dropContainer?this._dropContainer.lockAxis:null;let{x:n,y:i}=this.constrainPosition?this.constrainPosition(e,this):e;if("x"===this.lockAxis||"x"===t?i=this._pickupPositionOnPage.y:"y"!==this.lockAxis&&"y"!==t||(n=this._pickupPositionOnPage.x),this._boundaryRect){const{x:e,y:t}=this._pickupPositionInElement,s=this._boundaryRect,o=this._previewRect,r=s.top+t,a=s.bottom-(o.height-t);n=rR(n,s.left+e,s.right-(o.width-e)),i=rR(i,r,a)}return{x:n,y:i}}_updatePointerDirectionDelta(e){const{x:t,y:n}=e,i=this._pointerDirectionDelta,s=this._pointerPositionAtLastDirectionChange,o=Math.abs(t-s.x),r=Math.abs(n-s.y);return o>this._config.pointerDirectionChangeThreshold&&(i.x=t>s.x?1:-1,s.x=t),r>this._config.pointerDirectionChangeThreshold&&(i.y=n>s.y?1:-1,s.y=n),i}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;const e=this._handles.length>0||!this.isDragging();e!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=e,jI(this._rootElement,e))}_removeRootElementListeners(e){e.removeEventListener("mousedown",this._pointerDown,iR),e.removeEventListener("touchstart",this._pointerDown,nR)}_applyRootElementTransform(e,t){const n=oR(e,t);null==this._initialTransform&&(this._initialTransform=this._rootElement.style.transform||""),this._rootElement.style.transform=this._initialTransform?n+" "+this._initialTransform:n}_getDragDistance(e){const t=this._pickupPositionOnPage;return t?{x:e.x-t.x,y:e.y-t.y}:{x:0,y:0}}_cleanupCachedDimensions(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}_containInsideBoundaryOnResize(){let{x:e,y:t}=this._passiveTransform;if(0===e&&0===t||this.isDragging()||!this._boundaryElement)return;const n=this._boundaryElement.getBoundingClientRect(),i=this._rootElement.getBoundingClientRect();if(0===n.width&&0===n.height||0===i.width&&0===i.height)return;const s=n.left-i.left,o=i.right-n.right,r=n.top-i.top,a=i.bottom-n.bottom;n.width>i.width?(s>0&&(e+=s),o>0&&(e-=o)):e=0,n.height>i.height?(r>0&&(t+=r),a>0&&(t-=a)):t=0,e===this._passiveTransform.x&&t===this._passiveTransform.y||this.setFreeDragPosition({y:t,x:e})}_getDragStartDelay(e){const t=this.dragStartDelay;return"number"==typeof t?t:lR(e)?t.touch:t?t.mouse:0}_updateOnScroll(e){const t=this._parentPositions.handleScroll(e);if(t){const n=e.target;this._boundaryRect&&(n===this._document||n!==this._boundaryElement&&n.contains(this._boundaryElement))&&YI(this._boundaryRect,t.top,t.left),this._pickupPositionOnPage.x+=t.left,this._pickupPositionOnPage.y+=t.top,this._dropContainer||(this._activeTransform.x-=t.left,this._activeTransform.y-=t.top,this._applyRootElementTransform(this._activeTransform.x,this._activeTransform.y))}}_getViewportScrollPosition(){const e=this._parentPositions.positions.get(this._document);return e?e.scrollPosition:this._viewportRuler.getViewportScrollPosition()}_getShadowRoot(){return void 0===this._cachedShadowRoot&&(this._cachedShadowRoot=LP(this._rootElement)),this._cachedShadowRoot}}function oR(e,t){return`translate3d(${Math.round(e)}px, ${Math.round(t)}px, 0)`}function rR(e,t,n){return Math.max(t,Math.min(n,e))}function aR(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function lR(e){return"t"===e.type[0]}function cR(e,t){const n=e.rootNodes;if(1===n.length&&n[0].nodeType===t.ELEMENT_NODE)return n[0];const i=t.createElement("div");return n.forEach(e=>i.appendChild(e)),i}function dR(e,t){e.style.width=t.width+"px",e.style.height=t.height+"px",e.style.transform=oR(t.left,t.top)}function uR(e,t){return Math.max(0,Math.min(t,e))}class hR{constructor(e,t,n,i,s){this._dragDropRegistry=t,this._ngZone=i,this._viewportRuler=s,this.disabled=!1,this.sortingDisabled=!1,this.autoScrollDisabled=!1,this.autoScrollStep=2,this.enterPredicate=()=>!0,this.sortPredicate=()=>!0,this.beforeStarted=new A,this.entered=new A,this.exited=new A,this.dropped=new A,this.sorted=new A,this._isDragging=!1,this._itemPositions=[],this._previousSwap={drag:null,delta:0,overlaps:!1},this._draggables=[],this._siblings=[],this._orientation="vertical",this._activeSiblings=new Set,this._direction="ltr",this._viewportScrollSubscription=u.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new A,this._cachedShadowRoot=null,this._startScrollInterval=()=>{this._stopScrolling(),function(e=0,t=bP){return(!fD(e)||e<0)&&(e=0),t&&"function"==typeof t.schedule||(t=bP),new v(n=>(n.add(t.schedule(NI,e,{subscriber:n,counter:0,period:e})),n))}(0,sD).pipe(vD(this._stopScrollTimers)).subscribe(()=>{const e=this._scrollNode,t=this.autoScrollStep;1===this._verticalScrollDirection?gR(e,-t):2===this._verticalScrollDirection&&gR(e,t),1===this._horizontalScrollDirection?fR(e,-t):2===this._horizontalScrollDirection&&fR(e,t)})},this.element=kP(e),this._document=n,this.withScrollableParents([this.element]),t.registerDropContainer(this),this._parentPositions=new QI(n,s)}dispose(){this._stopScrolling(),this._stopScrollTimers.complete(),this._viewportScrollSubscription.unsubscribe(),this.beforeStarted.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this.sorted.complete(),this._activeSiblings.clear(),this._scrollNode=null,this._parentPositions.clear(),this._dragDropRegistry.removeDropContainer(this)}isDragging(){return this._isDragging}start(){this._draggingStarted(),this._notifyReceivingSiblings()}enter(e,t,n,i){let s;this._draggingStarted(),null==i?(s=this.sortingDisabled?this._draggables.indexOf(e):-1,-1===s&&(s=this._getItemIndexFromPointerPosition(e,t,n))):s=i;const o=this._activeDraggables,r=o.indexOf(e),a=e.getPlaceholderElement();let l=o[s];if(l===e&&(l=o[s+1]),r>-1&&o.splice(r,1),l&&!this._dragDropRegistry.isDragging(l)){const t=l.getRootElement();t.parentElement.insertBefore(a,t),o.splice(s,0,e)}else if(this._shouldEnterAsFirstChild(t,n)){const t=o[0].getRootElement();t.parentNode.insertBefore(a,t),o.unshift(e)}else kP(this.element).appendChild(a),o.push(e);a.style.transform="",this._cacheItemPositions(),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:e,container:this,currentIndex:this.getItemIndex(e)})}exit(e){this._reset(),this.exited.next({item:e,container:this})}drop(e,t,n,i,s,o){this._reset(),this.dropped.next({item:e,currentIndex:t,previousIndex:n,container:this,previousContainer:i,isPointerOverContainer:s,distance:o})}withItems(e){const t=this._draggables;return this._draggables=e,e.forEach(e=>e._withDropContainer(this)),this.isDragging()&&(t.filter(e=>e.isDragging()).every(t=>-1===e.indexOf(t))?this._reset():this._cacheItems()),this}withDirection(e){return this._direction=e,this}connectedTo(e){return this._siblings=e.slice(),this}withOrientation(e){return this._orientation=e,this}withScrollableParents(e){const t=kP(this.element);return this._scrollableElements=-1===e.indexOf(t)?[t,...e]:e.slice(),this}getScrollableParents(){return this._scrollableElements}getItemIndex(e){return this._isDragging?pR("horizontal"===this._orientation&&"rtl"===this._direction?this._itemPositions.slice().reverse():this._itemPositions,t=>t.drag===e):this._draggables.indexOf(e)}isReceiving(){return this._activeSiblings.size>0}_sortItem(e,t,n,i){if(this.sortingDisabled||!this._clientRect||!ZI(this._clientRect,.05,t,n))return;const s=this._itemPositions,o=this._getItemIndexFromPointerPosition(e,t,n,i);if(-1===o&&s.length>0)return;const r="horizontal"===this._orientation,a=pR(s,t=>t.drag===e),l=s[o],c=l.clientRect,d=a>o?1:-1,u=this._getItemOffsetPx(s[a].clientRect,c,d),h=this._getSiblingOffsetPx(a,s,d),p=s.slice();!function(e,t,n){const i=uR(t,e.length-1),s=uR(n,e.length-1);if(i===s)return;const o=e[i],r=s<i?-1:1;for(let a=i;a!==s;a+=r)e[a]=e[a+r];e[s]=o}(s,a,o),this.sorted.next({previousIndex:a,currentIndex:o,container:this,item:e}),s.forEach((t,n)=>{if(p[n]===t)return;const i=t.drag===e,s=i?u:h,o=i?e.getPlaceholderElement():t.drag.getRootElement();t.offset+=s,r?(o.style.transform=`translate3d(${Math.round(t.offset)}px, 0, 0)`,YI(t.clientRect,0,s)):(o.style.transform=`translate3d(0, ${Math.round(t.offset)}px, 0)`,YI(t.clientRect,s,0))}),this._previousSwap.overlaps=qI(c,t,n),this._previousSwap.drag=l.drag,this._previousSwap.delta=r?i.x:i.y}_startScrollingIfNecessary(e,t){if(this.autoScrollDisabled)return;let n,i=0,s=0;if(this._parentPositions.positions.forEach((o,r)=>{r!==this._document&&o.clientRect&&!n&&ZI(o.clientRect,.05,e,t)&&([i,s]=function(e,t,n,i){const s=mR(t,i),o=bR(t,n);let r=0,a=0;if(s){const t=e.scrollTop;1===s?t>0&&(r=1):e.scrollHeight-t>e.clientHeight&&(r=2)}if(o){const t=e.scrollLeft;1===o?t>0&&(a=1):e.scrollWidth-t>e.clientWidth&&(a=2)}return[r,a]}(r,o.clientRect,e,t),(i||s)&&(n=r))}),!i&&!s){const{width:o,height:r}=this._viewportRuler.getViewportSize(),a={width:o,height:r,top:0,right:o,bottom:r,left:0};i=mR(a,t),s=bR(a,e),n=window}!n||i===this._verticalScrollDirection&&s===this._horizontalScrollDirection&&n===this._scrollNode||(this._verticalScrollDirection=i,this._horizontalScrollDirection=s,this._scrollNode=n,(i||s)&&n?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_draggingStarted(){const e=kP(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=e.msScrollSnapType||e.scrollSnapType||"",e.scrollSnapType=e.msScrollSnapType="none",this._cacheItems(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}_cacheParentPositions(){const e=kP(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(e).clientRect}_cacheItemPositions(){const e="horizontal"===this._orientation;this._itemPositions=this._activeDraggables.map(e=>{const t=e.getVisibleElement();return{drag:e,offset:0,clientRect:$I(t)}}).sort((t,n)=>e?t.clientRect.left-n.clientRect.left:t.clientRect.top-n.clientRect.top)}_reset(){this._isDragging=!1;const e=kP(this.element).style;e.scrollSnapType=e.msScrollSnapType=this._initialScrollSnap,this._activeDraggables.forEach(e=>{const t=e.getRootElement();t&&(t.style.transform="")}),this._siblings.forEach(e=>e._stopReceiving(this)),this._activeDraggables=[],this._itemPositions=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1,this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_getSiblingOffsetPx(e,t,n){const i="horizontal"===this._orientation,s=t[e].clientRect,o=t[e+-1*n];let r=s[i?"width":"height"]*n;if(o){const e=i?"left":"top",t=i?"right":"bottom";-1===n?r-=o.clientRect[e]-s[t]:r+=s[e]-o.clientRect[t]}return r}_getItemOffsetPx(e,t,n){const i="horizontal"===this._orientation;let s=i?t.left-e.left:t.top-e.top;return-1===n&&(s+=i?t.width-e.width:t.height-e.height),s}_shouldEnterAsFirstChild(e,t){if(!this._activeDraggables.length)return!1;const n=this._itemPositions,i="horizontal"===this._orientation;if(n[0].drag!==this._activeDraggables[0]){const s=n[n.length-1].clientRect;return i?e>=s.right:t>=s.bottom}{const s=n[0].clientRect;return i?e<=s.left:t<=s.top}}_getItemIndexFromPointerPosition(e,t,n,i){const s="horizontal"===this._orientation,o=pR(this._itemPositions,({drag:o,clientRect:r},a,l)=>{if(o===e)return l.length<2;if(i){const e=s?i.x:i.y;if(o===this._previousSwap.drag&&this._previousSwap.overlaps&&e===this._previousSwap.delta)return!1}return s?t>=Math.floor(r.left)&&t<Math.floor(r.right):n>=Math.floor(r.top)&&n<Math.floor(r.bottom)});return-1!==o&&this.sortPredicate(o,e,this)?o:-1}_cacheItems(){this._activeDraggables=this._draggables.slice(),this._cacheItemPositions(),this._cacheParentPositions()}_isOverContainer(e,t){return null!=this._clientRect&&qI(this._clientRect,e,t)}_getSiblingContainerFromPosition(e,t,n){return this._siblings.find(i=>i._canReceive(e,t,n))}_canReceive(e,t,n){if(!this._clientRect||!qI(this._clientRect,t,n)||!this.enterPredicate(e,this))return!1;const i=this._getShadowRoot().elementFromPoint(t,n);if(!i)return!1;const s=kP(this.element);return i===s||s.contains(i)}_startReceiving(e,t){const n=this._activeSiblings;!n.has(e)&&t.every(e=>this.enterPredicate(e,this)||this._draggables.indexOf(e)>-1)&&(n.add(e),this._cacheParentPositions(),this._listenToScrollEvents())}_stopReceiving(e){this._activeSiblings.delete(e),this._viewportScrollSubscription.unsubscribe()}_listenToScrollEvents(){this._viewportScrollSubscription=this._dragDropRegistry.scroll.subscribe(e=>{if(this.isDragging()){const t=this._parentPositions.handleScroll(e);t&&(this._itemPositions.forEach(({clientRect:e})=>{YI(e,t.top,t.left)}),this._itemPositions.forEach(({drag:e})=>{this._dragDropRegistry.isDragging(e)&&e._sortFromLastPointerPosition()}))}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){const e=LP(kP(this.element));this._cachedShadowRoot=e||this._document}return this._cachedShadowRoot}_notifyReceivingSiblings(){const e=this._activeDraggables.filter(e=>e.isDragging());this._siblings.forEach(t=>t._startReceiving(this,e))}}function pR(e,t){for(let n=0;n<e.length;n++)if(t(e[n],n,e))return n;return-1}function gR(e,t){e===window?e.scrollBy(0,t):e.scrollTop+=t}function fR(e,t){e===window?e.scrollBy(t,0):e.scrollLeft+=t}function mR(e,t){const{top:n,bottom:i,height:s}=e,o=.05*s;return t>=n-o&&t<=n+o?1:t>=i-o&&t<=i+o?2:0}function bR(e,t){const{left:n,right:i,width:s}=e,o=.05*s;return t>=n-o&&t<=n+o?1:t>=i-o&&t<=i+o?2:0}const vR=IP({passive:!1,capture:!0});let yR=(()=>{class e{constructor(e,t){this._ngZone=e,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=[],this._globalListeners=new Map,this._draggingPredicate=e=>e.isDragging(),this.pointerMove=new A,this.pointerUp=new A,this.scroll=new A,this._preventDefaultWhileDragging=e=>{this._activeDragInstances.length>0&&e.preventDefault()},this._persistentTouchmoveListener=e=>{this._activeDragInstances.length>0&&(this._activeDragInstances.some(this._draggingPredicate)&&e.preventDefault(),this.pointerMove.next(e))},this._document=t}registerDropContainer(e){this._dropInstances.has(e)||this._dropInstances.add(e)}registerDragItem(e){this._dragInstances.add(e),1===this._dragInstances.size&&this._ngZone.runOutsideAngular(()=>{this._document.addEventListener("touchmove",this._persistentTouchmoveListener,vR)})}removeDropContainer(e){this._dropInstances.delete(e)}removeDragItem(e){this._dragInstances.delete(e),this.stopDragging(e),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._persistentTouchmoveListener,vR)}startDragging(e,t){if(!(this._activeDragInstances.indexOf(e)>-1)&&(this._activeDragInstances.push(e),1===this._activeDragInstances.length)){const e=t.type.startsWith("touch");this._globalListeners.set(e?"touchend":"mouseup",{handler:e=>this.pointerUp.next(e),options:!0}).set("scroll",{handler:e=>this.scroll.next(e),options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:vR}),e||this._globalListeners.set("mousemove",{handler:e=>this.pointerMove.next(e),options:vR}),this._ngZone.runOutsideAngular(()=>{this._globalListeners.forEach((e,t)=>{this._document.addEventListener(t,e.handler,e.options)})})}}stopDragging(e){const t=this._activeDragInstances.indexOf(e);t>-1&&(this._activeDragInstances.splice(t,1),0===this._activeDragInstances.length&&this._clearGlobalListeners())}isDragging(e){return this._activeDragInstances.indexOf(e)>-1}ngOnDestroy(){this._dragInstances.forEach(e=>this.removeDragItem(e)),this._dropInstances.forEach(e=>this.removeDropContainer(e)),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}_clearGlobalListeners(){this._globalListeners.forEach((e,t)=>{this._document.removeEventListener(t,e.handler,e.options)}),this._globalListeners.clear()}}return e.\u0275fac=function(t){return new(t||e)(gi(ad),gi(Hd))},e.\u0275prov=pe({factory:function(){return new e(gi(ad),gi(Hd))},token:e,providedIn:"root"}),e})();const wR={dragStartThreshold:5,pointerDirectionChangeThreshold:5};let _R=(()=>{class e{constructor(e,t,n,i){this._document=e,this._ngZone=t,this._viewportRuler=n,this._dragDropRegistry=i}createDrag(e,t=wR){return new sR(e,t,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}createDropList(e){return new hR(e,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}return e.\u0275fac=function(t){return new(t||e)(gi(Hd),gi(ad),gi(AD),gi(yR))},e.\u0275prov=pe({factory:function(){return new e(gi(Hd),gi(ad),gi(AD),gi(yR))},token:e,providedIn:"root"}),e})();const xR=new Xn("CDK_DRAG_PARENT"),AR=new Xn("CDK_DRAG_CONFIG"),CR=new Xn("CdkDropList"),SR=new Xn("CdkDragHandle"),kR=new Xn("CdkDragPlaceholder"),PR=new Xn("CdkDragPreview");let ER=(()=>{class e{constructor(t,n,i,s,o,r,a,l,c,d,u){this.element=t,this.dropContainer=n,this._ngZone=s,this._viewContainerRef=o,this._dir=a,this._changeDetectorRef=c,this._selfHandle=d,this._parentDrag=u,this._destroyed=new A,this.started=new yc,this.released=new yc,this.ended=new yc,this.entered=new yc,this.exited=new yc,this.dropped=new yc,this.moved=new v(e=>{const t=this._dragRef.moved.pipe(k(e=>({source:this,pointerPosition:e.pointerPosition,event:e.event,delta:e.delta,distance:e.distance}))).subscribe(e);return()=>{t.unsubscribe()}}),this._dragRef=l.createDrag(t,{dragStartThreshold:r&&null!=r.dragStartThreshold?r.dragStartThreshold:5,pointerDirectionChangeThreshold:r&&null!=r.pointerDirectionChangeThreshold?r.pointerDirectionChangeThreshold:5,zIndex:null==r?void 0:r.zIndex}),this._dragRef.data=this,e._dragInstances.push(this),r&&this._assignDefaults(r),n&&(this._dragRef._withDropContainer(n._dropListRef),n.addItem(this)),this._syncInputs(this._dragRef),this._handleEvents(this._dragRef)}get disabled(){return this._disabled||this.dropContainer&&this.dropContainer.disabled}set disabled(e){this._disabled=xP(e),this._dragRef.disabled=this._disabled}getPlaceholderElement(){return this._dragRef.getPlaceholderElement()}getRootElement(){return this._dragRef.getRootElement()}reset(){this._dragRef.reset()}getFreeDragPosition(){return this._dragRef.getFreeDragPosition()}ngAfterViewInit(){this._ngZone.onStable.pipe(lv(1),vD(this._destroyed)).subscribe(()=>{this._updateRootElement(),this._handles.changes.pipe(uv(this._handles),Ov(e=>{const t=e.filter(e=>e._parentDrag===this).map(e=>e.element);this._selfHandle&&this.rootElementSelector&&t.push(this.element),this._dragRef.withHandles(t)}),sv(e=>G(...e.map(e=>e._stateChanges.pipe(uv(e))))),vD(this._destroyed)).subscribe(e=>{const t=this._dragRef,n=e.element.nativeElement;e.disabled?t.disableHandle(n):t.enableHandle(n)}),this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)})}ngOnChanges(e){const t=e.rootElementSelector,n=e.freeDragPosition;t&&!t.firstChange&&this._updateRootElement(),n&&!n.firstChange&&this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)}ngOnDestroy(){this.dropContainer&&this.dropContainer.removeItem(this);const t=e._dragInstances.indexOf(this);t>-1&&e._dragInstances.splice(t,1),this._destroyed.next(),this._destroyed.complete(),this._dragRef.dispose()}_updateRootElement(){const e=this.element.nativeElement,t=this.rootElementSelector?DR(e,this.rootElementSelector):e;this._dragRef.withRootElement(t||e)}_getBoundaryElement(){const e=this.boundaryElement;return e?"string"==typeof e?DR(this.element.nativeElement,e):kP(e):null}_syncInputs(t){t.beforeStarted.subscribe(()=>{if(!t.isDragging()){const e=this._dir,n=this.dragStartDelay,i=this._placeholderTemplate?{template:this._placeholderTemplate.templateRef,context:this._placeholderTemplate.data,viewContainer:this._viewContainerRef}:null,s=this._previewTemplate?{template:this._previewTemplate.templateRef,context:this._previewTemplate.data,matchSize:this._previewTemplate.matchSize,viewContainer:this._viewContainerRef}:null;t.disabled=this.disabled,t.lockAxis=this.lockAxis,t.dragStartDelay="object"==typeof n&&n?n:AP(n),t.constrainPosition=this.constrainPosition,t.previewClass=this.previewClass,t.withBoundaryElement(this._getBoundaryElement()).withPlaceholderTemplate(i).withPreviewTemplate(s),e&&t.withDirection(e.value)}}),t.beforeStarted.pipe(lv(1)).subscribe(()=>{var n,i;if(this._parentDrag)return void t.withParent(this._parentDrag._dragRef);let s=this.element.nativeElement.parentElement;for(;s;){if(null===(n=s.classList)||void 0===n?void 0:n.contains("cdk-drag")){t.withParent((null===(i=e._dragInstances.find(e=>e.element.nativeElement===s))||void 0===i?void 0:i._dragRef)||null);break}s=s.parentElement}})}_handleEvents(e){e.started.subscribe(()=>{this.started.emit({source:this}),this._changeDetectorRef.markForCheck()}),e.released.subscribe(()=>{this.released.emit({source:this})}),e.ended.subscribe(e=>{this.ended.emit({source:this,distance:e.distance}),this._changeDetectorRef.markForCheck()}),e.entered.subscribe(e=>{this.entered.emit({container:e.container.data,item:this,currentIndex:e.currentIndex})}),e.exited.subscribe(e=>{this.exited.emit({container:e.container.data,item:this})}),e.dropped.subscribe(e=>{this.dropped.emit({previousIndex:e.previousIndex,currentIndex:e.currentIndex,previousContainer:e.previousContainer.data,container:e.container.data,isPointerOverContainer:e.isPointerOverContainer,item:this,distance:e.distance})})}_assignDefaults(e){const{lockAxis:t,dragStartDelay:n,constrainPosition:i,previewClass:s,boundaryElement:o,draggingDisabled:r,rootElementSelector:a}=e;this.disabled=null!=r&&r,this.dragStartDelay=n||0,t&&(this.lockAxis=t),i&&(this.constrainPosition=i),s&&(this.previewClass=s),o&&(this.boundaryElement=o),a&&(this.rootElementSelector=a)}}return e.\u0275fac=function(t){return new(t||e)(zr(rl),zr(CR,12),zr(Hd),zr(ad),zr(Gl),zr(AR,8),zr(pE,8),zr(_R),zr(Tl),zr(SR,10),zr(xR,12))},e.\u0275dir=Ke({type:e,selectors:[["","cdkDrag",""]],contentQueries:function(e,t,n){if(1&e&&(Ic(n,PR,1),Ic(n,kR,1),Ic(n,SR,1)),2&e){let e;Mc(e=Rc())&&(t._previewTemplate=e.first),Mc(e=Rc())&&(t._placeholderTemplate=e.first),Mc(e=Rc())&&(t._handles=e)}},hostAttrs:[1,"cdk-drag"],hostVars:4,hostBindings:function(e,t){2&e&&ma("cdk-drag-disabled",t.disabled)("cdk-drag-dragging",t._dragRef.isDragging())},inputs:{disabled:["cdkDragDisabled","disabled"],dragStartDelay:["cdkDragStartDelay","dragStartDelay"],lockAxis:["cdkDragLockAxis","lockAxis"],constrainPosition:["cdkDragConstrainPosition","constrainPosition"],previewClass:["cdkDragPreviewClass","previewClass"],boundaryElement:["cdkDragBoundary","boundaryElement"],rootElementSelector:["cdkDragRootElement","rootElementSelector"],data:["cdkDragData","data"],freeDragPosition:["cdkDragFreeDragPosition","freeDragPosition"]},outputs:{started:"cdkDragStarted",released:"cdkDragReleased",ended:"cdkDragEnded",entered:"cdkDragEntered",exited:"cdkDragExited",dropped:"cdkDragDropped",moved:"cdkDragMoved"},exportAs:["cdkDrag"],features:[Ja([{provide:xR,useExisting:e}]),dt]}),e._dragInstances=[],e})();function DR(e,t){let n=e.parentElement;for(;n;){if(n.matches?n.matches(t):n.msMatchesSelector(t))return n;n=n.parentElement}return null}let OR=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=fe({providers:[_R],imports:[CD]}),e})();const MR=(e,t,n)=>{if(0===n||0===t)return"";const i=e*t;return i<(n=Math.max(n,0))&&Math.min(i+t,n),`${e+1} / ${Math.ceil(n/t)}`};function TR(){const e=new UT;return e.itemsPerPageLabel="Afficher:",e.nextPageLabel="Page suivante",e.previousPageLabel="Page pr\xe9c\xe9dente",e.getRangeLabel=MR,e}let IR=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=fe({providers:[{provide:UT,useValue:TR()}],imports:[[KT,rT,zM,oM,HE,OR,nI,fM,nT,XT,mM,sT,NM,VI,wI,tI,ET,eI,GO,yI,QT,bI,WO,vM],KT,rT,zM,oM,HE,OR,nI,fM,nT,XT,mM,sT,NM,VI,wI,tI,ET,eI,GO,yI,QT,bI,WO,vM]}),e})(),RR=(()=>{class e{constructor(e,t,n){this.translate=e,this.data=t,this.dialogRef=n,null===this.data.mode&&(this.data.mode=""),null===this.data.msg&&(this.data.msg="")}}return e.\u0275fac=function(t){return new(t||e)(zr(GC),zr(EM),zr(kM))},e.\u0275cmp=$e({type:e,selectors:[["ng-component"]],decls:10,vars:12,consts:[["mat-dialog-title",""],["mat-dialog-content","",3,"innerHTML"],["mat-dialog-actions",""],["mat-button","",1,"actions","btn","red",3,"click"]],template:function(e,t){1&e&&(Hr(0,"div"),Hr(1,"h1",0),Da(2),hc(3,"translate"),jr(),Ur(4,"div",1),hc(5,"translate"),Hr(6,"div",2),Hr(7,"button",3),Xr("click",function(){return t.dialogRef.close()}),Da(8),hc(9,"translate"),jr(),jr(),jr()),2&e&&(La("modalContent ",t.data.mode,""),no(2),Oa(pc(3,6,t.data.title)),no(2),Vr("innerHTML",pc(5,8,t.data.msg),ss),no(4),Oa(pc(9,10,"lang.ok")))},directives:[LM,FM,BM,gM],pipes:[$C],styles:[".modalContent[_ngcontent-%COMP%]{position:relative}.mat-dialog-content[_ngcontent-%COMP%], .mat-dialog-title[_ngcontent-%COMP%]{text-align:center!important;color:#666}.mat-dialog-title[_ngcontent-%COMP%]{font-weight:700}.actions[_ngcontent-%COMP%]{width:100%;margin:10px}.close[_ngcontent-%COMP%]{position:absolute;top:-15px;right:-15px;width:40px;height:40px;font-size:20px;color:#666}.warning[_ngcontent-%COMP%]   .actions[_ngcontent-%COMP%], .warning[_ngcontent-%COMP%]   .mat-dialog-title[_ngcontent-%COMP%]{color:#e74c3c}"]}),e})(),LR=(()=>{class e{constructor(e,t,n,i,s,o,r,a,l){this.translate=e,this.http=t,this.router=n,this.signaturesService=i,this.cookieService=s,this.authService=o,this.localStorage=r,this.dialog=a,this.menu=l}canActivate(e,t){if("login"===e.url.join("/"))return this.authService.isAuth()?(this.router.navigate(["/home"]),!1):(this.http.get("../rest/authenticationInformations").pipe(k(e=>{this.authService.authMode=e.connection,this.authService.changeKey=e.changeKey,this.authService.coreUrl=e.coreUrl,this.localStorage.setAppSession(e.instanceId)})).subscribe(),!0);if(!this.authService.authFailed){this.menu.enable(!0,"left-menu"),this.menu.enable(!1,"right-menu");let e=this.authService.getToken();if(null===e||this.authService.authFailed)return this.http.get("../rest/authenticationInformations").pipe(k(n=>(this.authService.authMode=n.connection,this.authService.changeKey=n.changeKey,this.authService.coreUrl=n.coreUrl,this.localStorage.setAppSession(n.instanceId),e=this.authService.getToken(),null!==e?(this.authService.user=JSON.parse(atob(e.split(".")[1])).user,this.translate.use(this.authService.user.preferences.lang),this.cookieService.set("maarchParapheurLang",this.authService.user.preferences.lang),this.setData(),this.authService.changeKey&&this.dialog.open(RR,{autoFocus:!1,disableClose:!0,data:{mode:"warning",title:"lang.warnPrivateKeyTitle",msg:"lang.warnPrivateKey"}}),!0):(this.authService.setCachedUrl(t.url.replace(/^\//g,"")),this.authService.logout(),!1))));if(void 0===this.authService.user.id){const t=JSON.parse(atob(e.split(".")[1]));this.authService.user=t.user,this.authService.authMode=t.connection,this.translate.use(this.authService.user.preferences.lang),this.cookieService.set("maarchParapheurLang",this.authService.user.preferences.lang),this.setData()}return!0}}setData(){0===this.authService.signatureRoles.length&&this.http.get("../rest/signatureModes").subscribe(e=>{this.authService.signatureRoles=[{id:"visa",type:"visa",color:"#135F7F"}],this.authService.signatureRoles=this.authService.signatureRoles.concat(e.map(e=>Object.assign(Object.assign({},e),{type:"sign"})))}),0===this.signaturesService.signaturesList.length&&this.http.get("../rest/users/"+this.authService.user.id+"/signatures").subscribe(e=>{this.signaturesService.signaturesList=e.signatures}),void 0===this.authService.user.picture&&this.http.get("../rest/users/"+this.authService.user.id+"/picture").subscribe(e=>{this.authService.user.picture=e.picture})}}return e.\u0275fac=function(t){return new(t||e)(gi(GC),gi(Db),gi(r_),gi(sS),gi(sP),gi(rS),gi(oS),gi(IM),gi(KA))},e.\u0275prov=pe({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function FR(e,t){if(1&e&&(Hr(0,"ion-col"),Hr(1,"ion-button",7),Hr(2,"div",8),Ur(3,"ion-icon",9),Hr(4,"ion-label",10),Da(5),hc(6,"translate"),jr(),Hr(7,"ion-note",11),Da(8),hc(9,"translate"),jr(),jr(),jr(),jr()),2&e){const e=t.$implicit;no(1),Vr("routerLink",e.route),no(2),Vr("name",e.icon),no(2),Oa(pc(6,4,"lang."+e.id)),no(3),Ma(" ",pc(9,6,"lang."+e.id+"Desc"),"")}}const BR=function(e){return[e]};let zR=(()=>{class e{constructor(e,t,n){this.signaturesService=e,this.authService=t,this.menu=n}ngOnInit(){this.menu.enable(!1,"right-menu")}}return e.\u0275fac=function(t){return new(t||e)(zr(sS),zr(rS),zr(KA))},e.\u0275cmp=$e({type:e,selectors:[["app-administration"]],decls:12,vars:8,consts:[[3,"translucent"],["color","primary"],["slot","start"],["menu","left-menu"],["mainContent",""],[3,"ngClass"],[4,"ngFor","ngForOf"],["expand","block","size","large","fill","outline","color","secondary",2,"height","200px",3,"routerLink"],[1,"admin-content"],["color","primary",2,"font-size","70px",3,"name"],["color","primary",2,"white-space","normal"],[2,"font-size","8px","white-space","normal","padding","10px"]],template:function(e,t){1&e&&(Hr(0,"ion-header",0),Hr(1,"ion-toolbar",1),Hr(2,"ion-buttons",2),Ur(3,"ion-menu-button",3),jr(),Hr(4,"ion-title"),Da(5),hc(6,"translate"),jr(),jr(),jr(),Hr(7,"ion-content",null,4),Hr(9,"ion-grid"),Hr(10,"ion-row",5),Fr(11,FR,10,8,"ion-col",6),jr(),jr(),jr()),2&e&&(Vr("translucent",!0),no(5),Oa(pc(6,4,"lang.administration")),no(5),Vr("ngClass",ac(6,BR,t.signaturesService.mobileMode?"repeatRowsMobile":"repeatRows")),no(1),Vr("ngForOf",t.authService.user.administrativePrivileges))},directives:[Vx,vA,Cx,Jx,mA,Tx,zx,aA,Nu,ju,Mx,Ax,jA,a_,Nx,Zx,tA],pipes:[$C],styles:[".header[_ngcontent-%COMP%]{background:#135f7f;height:95px;color:#fff;padding-left:10px;font-size:25px}.header[_ngcontent-%COMP%], .header-title[_ngcontent-%COMP%]{display:flex;align-items:center}.header-title[_ngcontent-%COMP%]{flex:1;white-space:pre;overflow:hidden;text-overflow:ellipsis}.header[_ngcontent-%COMP%]   b[_ngcontent-%COMP%]{color:#f99830}.header[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis}.mainView[_ngcontent-%COMP%]{display:flex;flex-direction:column}.container[_ngcontent-%COMP%]{flex:1;overflow:auto}.loader[_ngcontent-%COMP%]{position:absolute;z-index:2;display:flex;background:hsla(0,0%,100%,.8);width:100%;height:100%;justify-content:center;align-items:center;top:0;margin:0;padding:0}.admin-form[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:20px}.actions-form[_ngcontent-%COMP%]{display:flex;justify-content:center}@media (max-width:360px){.actions-form[_ngcontent-%COMP%]{flex-direction:column}}.actions-form[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin:10px;width:150px}@media (max-width:360px){.actions-form[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{width:100%}}.noResult[_ngcontent-%COMP%]{padding:10px;text-align:center;opacity:.5}.emptyTable[_ngcontent-%COMP%]{height:auto}.addButton[_ngcontent-%COMP%]{padding:10px;display:flex;justify-content:flex-end}",".container[_ngcontent-%COMP%]{flex:1;overflow:auto}.container[_ngcontent-%COMP%]   .admin-item[_ngcontent-%COMP%]{padding-top:20px;padding-bottom:20px;text-align:center;width:100%;display:inline-block}@media (min-width:768px){.container[_ngcontent-%COMP%]   .admin-item[_ngcontent-%COMP%]{width:50%}}@media (min-width:992px){.container[_ngcontent-%COMP%]   .admin-item[_ngcontent-%COMP%]{width:33%}}.container[_ngcontent-%COMP%]   .admin-item[_ngcontent-%COMP%]   .mat-stroked-button[_ngcontent-%COMP%]{border-color:#f99830;padding:10px;width:90%;height:160px}.container[_ngcontent-%COMP%]   .admin-item[_ngcontent-%COMP%]   .mat-stroked-button[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{height:auto;width:auto;font-size:50px}.container[_ngcontent-%COMP%]   .admin-item[_ngcontent-%COMP%]   .mat-stroked-button[_ngcontent-%COMP%]    .mat-button-wrapper{display:flex;flex-direction:column}.admin-desc[_ngcontent-%COMP%]{white-space:normal;font-size:10px;line-height:15px;text-align:justify;color:grey;height:60px;overflow:auto}.admin-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center}.repeatRows[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(4,1fr)}.repeatRowsMobile[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));-ms-grid-row-align:10px}"]}),e})();function VR(e,t){if(1&e&&(Hr(0,"div",15),Da(1),hc(2,"translate"),jr()),2&e){const e=na().$implicit;Vr("mat-sort-header",e),no(1),Ma(" ",pc(2,2,"lang."+e)," ")}}function NR(e,t){if(1&e&&(Wr(0),Fr(1,VR,3,4,"div",14),Gr()),2&e){const e=t.$implicit;no(1),Vr("ngIf","actions"!==e)}}function HR(e,t){if(1&e){const e=qr();Hr(0,"div",16),Hr(1,"ion-searchbar",17),Xr("ionChange",function(t){return Lt(e),na().applyFilter(t.detail.value)}),hc(2,"translate"),jr(),jr()}2&e&&(no(1),Vr("placeholder",pc(2,1,"lang.filter")))}function jR(e,t){if(1&e&&(Hr(0,"div",16),Da(1),jr()),2&e){const e=t.$implicit,n=na().$implicit;no(1),Ma(" ",n[e]," ")}}function UR(e,t){if(1&e){const e=qr();Hr(0,"ion-item",7),Hr(1,"ion-label",18),Fr(2,jR,2,1,"div",19),jr(),Hr(3,"ion-button",20),Xr("click",function(n){Lt(e);const i=t.$implicit,s=na();return n.stopPropagation(),s.delete(i)}),hc(4,"translate"),Ur(5,"ion-icon",21),jr(),jr()}if(2&e){const e=t.$implicit,n=na();no(1),aa("routerLink","/administration/users/",e.id,""),no(1),Vr("ngForOf",n.displayedColumns),no(1),ra("title",pc(4,4,"lang.delete")),Vr("disabled",e.id===n.authService.user.id)}}let WR=(()=>{class e{constructor(e,t,n,i,s,o,r,a){this.http=e,this.translate=t,this.latinisePipe=n,this.dialog=i,this.signaturesService=s,this.notificationService=o,this.authService=r,this.alertController=a,this.userList=[],this.loading=!0,this.displayedColumns=this.signaturesService.mobileMode?["firstname","lastname","email"]:["firstname","lastname","email","actions"]}applyFilter(e){e=this.latinisePipe.transform(e.toLowerCase()),this.sortedData=this.userList.filter(t=>{let n=!1;return this.displayedColumns.forEach(i=>{t[i]&&this.latinisePipe.transform(t[i].toLowerCase()).includes(e)&&(n=!0)}),n})}ionViewWillEnter(){this.http.get("../rest/users?mode=all").pipe(k(e=>e.users),Iv(()=>this.loading=!1)).subscribe({next:e=>{this.userList=e,this.sortedData=this.userList.slice()}})}delete(e){return t=this,void 0,i=function*(){const t=yield this.alertController.create({header:this.translate.instant("lang.confirmMsg"),buttons:[{text:this.translate.instant("lang.no"),role:"cancel",cssClass:"secondary",handler:()=>{}},{text:this.translate.instant("lang.yes"),handler:()=>{this.http.delete("../rest/users/"+e.id).pipe(Iv(()=>this.loading=!1)).subscribe({next:t=>{const n=this.userList.findIndex(t=>t.id===e.id);this.userList.splice(n,1),this.sortedData=this.userList.slice(),this.notificationService.success("lang.userDeleted")},error:e=>{this.notificationService.handleErrors(e)}})}}]});yield t.present()},new((n=void 0)||(n=Promise))(function(e,s){function o(e){try{a(i.next(e))}catch(t){s(t)}}function r(e){try{a(i.throw(e))}catch(t){s(t)}}function a(t){var i;t.done?e(t.value):(i=t.value,i instanceof n?i:new n(function(e){e(i)})).then(o,r)}a((i=i.apply(t,[])).next())});var t,n,i}sortData(e){const t=this.userList.slice();this.sortedData=e.active&&""!==e.direction?t.sort((t,n)=>function(e,t,n){return(e<t?-1:1)*(n?1:-1)}(t[e.active],n[e.active],"asc"===e.direction)):t}}return e.\u0275fac=function(t){return new(t||e)(zr(Db),zr(GC),zr(dP),zr(IM),zr(sS),zr(ZC),zr(rS),zr(QA))},e.\u0275cmp=$e({type:e,selectors:[["app-administration-users-list"]],decls:28,vars:18,consts:[[3,"translucent"],["color","primary"],["slot","start"],["menu","left-menu"],["fill","outline","shape","round","routerLink","/administration/users/new"],["slot","end","color","secondary"],["mainContent",""],[2,"display","flex"],["color","primary","matSort","","matSortDirection","asc",2,"display","flex","font-size","12px","align-items","center",3,"matSortActive","matSortChange"],[4,"ngFor","ngForOf"],["style","flex: 1",4,"ngIf"],["slot","end","fill","clear","shape","round","disabled",""],["approxItemHeight","50px",3,"items"],["style","display: flex;",4,"virtualItem"],["disableClear","","style","flex: 1",3,"mat-sort-header",4,"ngIf"],["disableClear","",2,"flex","1",3,"mat-sort-header"],[2,"flex","1"],[2,"padding","1px",3,"placeholder","ionChange"],[2,"display","flex","cursor","pointer",3,"routerLink"],["style","flex: 1",4,"ngFor","ngForOf"],["slot","end","fill","clear","shape","round",3,"disabled","title","click"],["color","danger","slot","icon-only","name","trash"]],template:function(e,t){1&e&&(Hr(0,"ion-header",0),Hr(1,"ion-toolbar",1),Hr(2,"ion-buttons",2),Ur(3,"ion-menu-button",3),Ur(4,"ion-back-button"),jr(),Hr(5,"ion-title"),Da(6),hc(7,"translate"),hc(8,"translate"),jr(),jr(),Hr(9,"ion-toolbar",1),Hr(10,"ion-buttons",2),Hr(11,"ion-button",4),Da(12),hc(13,"translate"),jr(),jr(),Hr(14,"ion-title",5),Da(15),hc(16,"translate"),jr(),jr(),jr(),Hr(17,"ion-content",null,6),Hr(19,"ion-list"),Hr(20,"ion-item",7),Hr(21,"ion-label",8),Xr("matSortChange",function(e){return t.sortData(e)}),Fr(22,NR,2,1,"ng-container",9),Fr(23,HR,3,3,"div",10),jr(),Hr(24,"ion-button",11),Ur(25,"ion-icon"),jr(),jr(),Hr(26,"ion-virtual-scroll",12),Fr(27,UR,6,6,"ion-item",13),jr(),jr(),jr()),2&e&&(Vr("translucent",!0),no(6),Ta("",pc(7,10,"lang.administration")," ",pc(8,12,"lang.manage_usersAlt"),""),no(6),Ma(" ",pc(13,14,"lang.userCreation")," "),no(3),Ta("",t.userList.length," ",pc(16,16,"lang.manage_usersAlt"),""),no(6),Vr("matSortActive",t.displayedColumns[1]),no(1),Vr("ngForOf",t.displayedColumns),no(1),Vr("ngIf",t.displayedColumns.indexOf("actions")>-1),no(3),Vr("items",t.sortedData))},directives:[Vx,vA,Cx,Jx,_x,HA,mA,Ax,jA,a_,Tx,Qx,Gx,Zx,cI,ju,Wu,Nx,$A,GA,mI,lA,ax],pipes:[$C],styles:[".header[_ngcontent-%COMP%]{background:#135f7f;height:95px;color:#fff;padding-left:10px;font-size:25px}.header[_ngcontent-%COMP%], .header-title[_ngcontent-%COMP%]{display:flex;align-items:center}.header-title[_ngcontent-%COMP%]{flex:1;white-space:pre;overflow:hidden;text-overflow:ellipsis}.header[_ngcontent-%COMP%]   b[_ngcontent-%COMP%]{color:#f99830}.header[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis}.mainView[_ngcontent-%COMP%]{display:flex;flex-direction:column}.container[_ngcontent-%COMP%]{flex:1;overflow:auto}.loader[_ngcontent-%COMP%]{position:absolute;z-index:2;display:flex;background:hsla(0,0%,100%,.8);width:100%;height:100%;justify-content:center;align-items:center;top:0;margin:0;padding:0}.admin-form[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:20px}.actions-form[_ngcontent-%COMP%]{display:flex;justify-content:center}@media (max-width:360px){.actions-form[_ngcontent-%COMP%]{flex-direction:column}}.actions-form[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin:10px;width:150px}@media (max-width:360px){.actions-form[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{width:100%}}.noResult[_ngcontent-%COMP%]{padding:10px;text-align:center;opacity:.5}.emptyTable[_ngcontent-%COMP%]{height:auto}.addButton[_ngcontent-%COMP%]{padding:10px;display:flex;justify-content:flex-end}",""]}),e})();function GR(e,t){1&e&&(Ur(0,"div",5),hc(1,"translate")),2&e&&Vr("innerHTML",pc(1,1,na().data.msg),ss)}let $R=(()=>{class e{constructor(e,t,n){this.translate=e,this.data=t,this.dialogRef=n,null===this.data.msg&&(this.data.msg="")}}return e.\u0275fac=function(t){return new(t||e)(zr(GC),zr(EM),zr(kM))},e.\u0275cmp=$e({type:e,selectors:[["ng-component"]],decls:12,vars:13,consts:[["mat-dialog-title",""],["mat-dialog-content","",3,"innerHTML",4,"ngIf"],["mat-dialog-actions",""],["mat-button","",1,"actions","btn","blue",3,"click"],["mat-button","",1,"actions","btn","red",3,"click"],["mat-dialog-content","",3,"innerHTML"]],template:function(e,t){1&e&&(Hr(0,"div"),Hr(1,"h1",0),Da(2),hc(3,"translate"),jr(),Fr(4,GR,2,3,"div",1),Hr(5,"div",2),Hr(6,"button",3),Xr("click",function(){return t.dialogRef.close("yes")}),Da(7),hc(8,"translate"),jr(),Hr(9,"button",4),Xr("click",function(){return t.dialogRef.close("no")}),Da(10),hc(11,"translate"),jr(),jr(),jr()),2&e&&(La("modalContent ",t.data.mode,""),no(2),Oa(pc(3,7,t.data.title)),no(2),Vr("ngIf",null!==t.data.msg),no(3),Oa(pc(8,9,"lang.yes")),no(3),Oa(pc(11,11,"lang.no")))},directives:[LM,Wu,BM,gM,FM],pipes:[$C],styles:[".modalContent[_ngcontent-%COMP%]{position:relative}.mat-dialog-content[_ngcontent-%COMP%], .mat-dialog-title[_ngcontent-%COMP%]{text-align:center!important;color:#666}.mat-dialog-title[_ngcontent-%COMP%]{font-weight:700}.actions[_ngcontent-%COMP%]{width:100%;margin:10px}.close[_ngcontent-%COMP%]{position:absolute;top:-15px;right:-15px;width:40px;height:40px;font-size:20px;color:#666}.warning[_ngcontent-%COMP%]   .mat-dialog-title[_ngcontent-%COMP%]{color:#e74c3c}"]}),e})();function qR(e,t){if(1&e){const e=qr();Hr(0,"ion-item"),Hr(1,"ion-label"),Da(2),hc(3,"translate"),jr(),Hr(4,"ion-checkbox",27),Xr("ionChange",function(t){Lt(e);const n=na().$implicit;return na(2).toggleSignMode(n,t.detail.checked)}),jr(),jr()}if(2&e){const e=na().$implicit,t=na(2);no(1),fa("color",e.color),no(1),Oa(pc(3,5,"lang."+e.id)),no(2),Vr("checked",t.user.signatureModes.indexOf(e.id)>-1)("disabled","stamp"===e.id)}}function YR(e,t){if(1&e&&(Wr(0),Fr(1,qR,5,7,"ion-item",11),Gr()),2&e){const e=t.$implicit;no(1),Vr("ngIf","visa"!==e.id)}}function ZR(e,t){if(1&e&&(Hr(0,"ion-note",33),Da(1),hc(2,"translate"),jr()),2&e){const e=na(3);no(1),Ma(" ",pc(2,1,e.handlePassword.errorMsg),"")}}function QR(e,t){if(1&e){const e=qr();Hr(0,"ion-item",28),Hr(1,"ion-button",29),Xr("click",function(){Lt(e);const t=na(2);return t.hideNewPassword=!t.hideNewPassword}),Ur(2,"ion-icon",30),jr(),Hr(3,"ion-label",14),Da(4),hc(5,"translate"),jr(),Hr(6,"ion-input",31),Xr("ngModelChange",function(t){return Lt(e),na(2).passwordRest.newPassword=t})("ionChange",function(){Lt(e);const t=na(2);return t.checkPasswordValidity(t.passwordRest.newPassword)}),jr(),Fr(7,ZR,3,3,"ion-note",32),jr()}if(2&e){const e=na(2);no(2),Vr("name",e.hideNewPassword?"eye-outline":"eye-off-outline"),no(2),Oa(pc(5,5,"lang.newPassword")),no(2),Vr("type",e.hideNewPassword?"password":"text")("ngModel",e.passwordRest.newPassword),no(1),Vr("ngIf",e.handlePassword.error&&e.passwordRest.newPassword.length>0)}}function XR(e,t){1&e&&(Hr(0,"ion-note",33),Da(1),hc(2,"translate"),jr()),2&e&&(no(1),Ma(" ",pc(2,1,"lang.passwordNotMatch"),""))}function KR(e,t){1&e&&(Hr(0,"ion-note",36),Da(1),hc(2,"translate"),jr()),2&e&&(no(1),Ma(" ",pc(2,1,"lang.samePassword"),""))}function JR(e,t){if(1&e){const e=qr();Hr(0,"ion-item",28),Hr(1,"ion-button",29),Xr("click",function(){Lt(e);const t=na(2);return t.hideNewPasswordConfirm=!t.hideNewPasswordConfirm}),Ur(2,"ion-icon",30),jr(),Hr(3,"ion-label",14),Da(4),hc(5,"translate"),jr(),Hr(6,"ion-input",34),Xr("ngModelChange",function(t){return Lt(e),na(2).passwordRest.passwordConfirmation=t}),jr(),Fr(7,XR,3,3,"ion-note",32),Fr(8,KR,3,3,"ion-note",35),jr()}if(2&e){const e=na(2);no(2),Vr("name",e.hideNewPasswordConfirm?"eye-outline":"eye-off-outline"),no(2),Oa(pc(5,6,"lang.passwordConfirmation")),no(2),Vr("type",e.hideNewPasswordConfirm?"password":"text")("ngModel",e.passwordRest.passwordConfirmation),no(1),Vr("ngIf",e.passwordRest.passwordConfirmation!==e.passwordRest.newPassword&&e.passwordRest.passwordConfirmation.length>0),no(1),Vr("ngIf",e.passwordRest.passwordConfirmation===e.passwordRest.newPassword&&e.passwordRest.newPassword.length>0&&e.passwordRest.passwordConfirmation.length>0&&!e.handlePassword.error)}}function eL(e,t){if(1&e){const e=qr();Wr(0),Hr(1,"form",12,13),Xr("ngSubmit",function(){return Lt(e),na().onSubmit()}),Hr(3,"ion-content"),Hr(4,"ion-item"),Hr(5,"ion-label",14),Da(6),hc(7,"translate"),jr(),Hr(8,"ion-input",15),Xr("ngModelChange",function(t){return Lt(e),na().user.login=t}),jr(),jr(),Hr(9,"ion-item"),Hr(10,"ion-label",14),Da(11),hc(12,"translate"),jr(),Hr(13,"ion-input",16),Xr("ngModelChange",function(t){return Lt(e),na().user.firstname=t}),jr(),jr(),Hr(14,"ion-item"),Hr(15,"ion-label",14),Da(16),hc(17,"translate"),jr(),Hr(18,"ion-input",17),Xr("ngModelChange",function(t){return Lt(e),na().user.lastname=t}),jr(),jr(),Hr(19,"ion-item"),Hr(20,"ion-label",14),Da(21),hc(22,"translate"),jr(),Hr(23,"ion-input",18),Xr("ngModelChange",function(t){return Lt(e),na().user.email=t}),jr(),jr(),Hr(24,"ion-item"),Hr(25,"ion-label"),Da(26),hc(27,"translate"),jr(),Hr(28,"ion-toggle",19),Xr("ngModelChange",function(t){return Lt(e),na().user.isRest=t})("ionChange",function(t){return Lt(e),na().getPassRules(t)}),jr(),jr(),Hr(29,"ion-list"),Hr(30,"ion-list-header"),Hr(31,"ion-label",20),Da(32),hc(33,"translate"),jr(),jr(),Fr(34,YR,2,1,"ng-container",21),jr(),Fr(35,QR,8,7,"ion-item",22),Fr(36,JR,9,8,"ion-item",22),Hr(37,"ion-item",23),Hr(38,"div",24),Hr(39,"ion-button",25),Hr(40,"ion-label",26),Da(41),hc(42,"translate"),jr(),jr(),jr(),jr(),jr(),jr(),Gr()}if(2&e){const e=Br(2),t=na();no(6),Ma("",pc(7,23,"lang.login")," *"),no(2),Vr("maxlength",128)("readonly",!t.creationMode)("ngModel",t.user.login),no(3),Ma("",pc(12,25,"lang.firstname")," *"),no(2),Vr("maxlength",128)("ngModel",t.user.firstname),no(3),Ma("",pc(17,27,"lang.lastname")," *"),no(2),Vr("maxlength",128)("ngModel",t.user.lastname),no(3),Ma("",pc(22,29,"lang.email")," *"),no(2),Vr("maxlength",128)("ngModel",t.user.email),no(3),Oa(pc(27,31,"lang.restUser")),no(2),Vr("disabled",!t.creationMode)("ngModel",t.user.isRest)("checked",t.user.isRest),no(4),Oa(pc(33,33,"lang.signatureModes")),no(2),Vr("ngForOf",t.authService.signatureRoles),no(1),Vr("ngIf",t.user.isRest),no(1),Vr("ngIf",t.user.isRest),no(3),Vr("disabled",!e.form.valid||!t.canValidate()),no(2),Oa(pc(42,35,"lang.validate"))}}function tL(e,t){if(1&e&&(Hr(0,"ion-item"),Hr(1,"ion-label"),Da(2),jr(),jr()),2&e){const e=t.$implicit;no(2),Oa(e.label)}}function nL(e,t){if(1&e&&(Hr(0,"ion-list"),Fr(1,tL,3,1,"ion-item",21),jr()),2&e){const e=na(2);no(1),Vr("ngForOf",e.user.groups)}}function iL(e,t){1&e&&(Hr(0,"ion-list",38),Hr(1,"ion-item",39),Hr(2,"ion-label",40),Da(3),hc(4,"translate"),jr(),jr(),jr()),2&e&&(no(3),Oa(pc(4,1,"lang.noAssociatedGroup")))}function sL(e,t){if(1&e&&(Wr(0),Hr(1,"ion-content"),Fr(2,nL,2,1,"ion-list",11),Fr(3,iL,5,3,"ion-list",37),jr(),Gr()),2&e){const e=na();no(2),Vr("ngIf",e.user.groups.length>0),no(1),Vr("ngIf",0===e.user.groups.length)}}let oL=(()=>{class e{constructor(e,t,n,i,s,o,r,a){this.http=e,this.translate=t,this.route=n,this.router=i,this.signaturesService=s,this.notificationService=o,this.dialog=r,this.authService=a,this.creationMode=!0,this.loading=!0,this.user={id:"",firstname:"",lastname:"",login:"",email:"",picture:"",isRest:!1,signatureModes:["stamp"]},this.title="",this.hideCurrentPassword=!0,this.hideNewPassword=!0,this.hideNewPasswordConfirm=!0,this.currentTool="info",this.passwordRules={minLength:{enabled:!1,value:0},complexityUpper:{enabled:!1,value:0},complexityNumber:{enabled:!1,value:0},complexitySpecial:{enabled:!1,value:0},renewal:{enabled:!1,value:0},historyLastUse:{enabled:!1,value:0}},this.passwordRest={newPassword:"",passwordConfirmation:""},this.ruleText="",this.otherRuleText="",this.showPassword=!1,this.handlePassword={error:!1,errorMsg:""}}ngOnInit(){this.route.params.subscribe(e=>{void 0===e.id?(this.creationMode=!0,this.title=this.translate.instant("lang.userCreation"),this.user={id:"",firstname:"",lastname:"",login:"",email:"",picture:"",signatureModes:["stamp"],isRest:!1},this.loading=!1):(this.creationMode=!1,this.http.get("../rest/users/"+e.id).pipe(k(e=>e.user),Iv(()=>this.loading=!1)).subscribe({next:e=>{this.user=e,this.userClone=JSON.parse(JSON.stringify(this.user)),this.title=this.user.firstname+" "+this.user.lastname,this.user.isRest&&this.getPassRules({detail:{checked:!0}})}}))})}canValidate(){return!(this.user.isRest&&""!==this.passwordRest.newPassword&&(this.handlePassword.error||this.passwordRest.passwordConfirmation!==this.passwordRest.newPassword)||JSON.stringify(this.user)===JSON.stringify(this.userClone)&&""===this.passwordRest.newPassword)}onSubmit(){this.creationMode?this.createUser():this.modifyUser()}modifyUser(){this.loading=!0,this.http.put("../rest/users/"+this.user.id,this.user).pipe(Iv(()=>this.loading=!1),Ov(()=>{this.authService.user.id===this.user.id&&this.authService.updateUserInfoWithTokenRefresh(),""!==this.passwordRest.newPassword&&this.updateRestUser(),this.router.navigate(["/administration/users"]),this.notificationService.success("lang.userUpdated")}),fv(e=>(this.notificationService.handleErrors(e),lb(!1)))).subscribe()}updateRestUser(){const e=new fb({Authorization:"Bearer "+this.authService.getToken()});this.http.put("../rest/users/"+this.user.id+"/password",this.passwordRest,{headers:e}).subscribe(()=>{this.passwordRest.newPassword="",this.passwordRest.passwordConfirmation=""},e=>{this.notificationService.handleErrors(e)})}createUser(){this.loading=!0,this.http.post("../rest/users",this.user).pipe(Iv(()=>this.loading=!1),Ov(e=>{this.user.isRest&&(this.user.id=e.id,this.updateRestUser()),this.router.navigate(["/administration/users"]),this.notificationService.success("lang.userAdded")}),fv(e=>(this.notificationService.handleErrors(e),lb(!1)))).subscribe()}delete(){this.dialog.open($R,{autoFocus:!1,data:{mode:"",title:"lang.confirmMsg",msg:""}}).afterClosed().subscribe(e=>{"yes"===e&&(this.loading=!0,this.http.delete("../rest/users/"+this.user.id).pipe(Iv(()=>this.loading=!1)).subscribe({next:()=>{this.router.navigate(["/administration/users"]),this.notificationService.success("lang.userDeleted")}}))})}cancel(){this.router.navigate(["/administration/users"])}getPassRules(e){e.detail.checked&&(this.handlePassword.error=!1,this.handlePassword.errorMsg="",this.http.get("../rest/passwordRules").subscribe(e=>{const t=[],n=[];e.rules.forEach(e=>{"minLength"===e.label?(this.passwordRules.minLength.enabled=e.enabled,this.passwordRules.minLength.value=e.value,e.enabled&&this.translate.get("lang.minLengthChar",{charLength:e.value}).subscribe(e=>{t.push(e)})):"complexityUpper"===e.label?(this.passwordRules.complexityUpper.enabled=e.enabled,this.passwordRules.complexityUpper.value=e.value,e.enabled&&t.push("lang.upperRequired")):"complexityNumber"===e.label?(this.passwordRules.complexityNumber.enabled=e.enabled,this.passwordRules.complexityNumber.value=e.value,e.enabled&&t.push("lang.numberRequired")):"complexitySpecial"===e.label?(this.passwordRules.complexitySpecial.enabled=e.enabled,this.passwordRules.complexitySpecial.value=e.value,e.enabled&&t.push("lang.specialCharRequired")):"renewal"===e.label?(this.passwordRules.renewal.enabled=e.enabled,this.passwordRules.renewal.value=e.value,e.enabled&&this.translate.get("lang.renewalInfo",{time:e.value}).subscribe(e=>{n.push(e)})):"historyLastUse"===e.label&&(this.passwordRules.historyLastUse.enabled=e.enabled,this.passwordRules.historyLastUse.value=e.value,e.enabled&&this.translate.get("lang.historyUseInfo",{countPwd:e.value}).subscribe(e=>{n.push(e)}))}),this.ruleText=t.join(", "),this.otherRuleText=n.join("<br/>")},e=>{this.notificationService.handleErrors(e)}))}checkPasswordValidity(e){this.handlePassword.error=!0,!e.match(/[A-Z]/g)&&this.passwordRules.complexityUpper.enabled?this.handlePassword.errorMsg="lang.upperRequired":!e.match(/[0-9]/g)&&this.passwordRules.complexityNumber.enabled?this.handlePassword.errorMsg="lang.numberRequired":!e.match(/[^A-Za-z0-9]/g)&&this.passwordRules.complexitySpecial.enabled?this.handlePassword.errorMsg="lang.specialCharRequired":e.length<this.passwordRules.minLength.value&&this.passwordRules.minLength.enabled?this.translate.get("lang.minLengthChar",{charLength:this.passwordRules.minLength.value}).subscribe(e=>{this.handlePassword.errorMsg=e}):(this.handlePassword.error=!1,this.handlePassword.errorMsg="")}toggleSignMode(e,t){t?-1===this.user.signatureModes.indexOf(e.id)&&this.user.signatureModes.push(e.id):this.user.signatureModes=this.user.signatureModes.filter(t=>t!==e.id)}initTab(e){this.currentTool=e}}return e.\u0275fac=function(t){return new(t||e)(zr(Db),zr(GC),zr(Ny),zr(r_),zr(sS),zr(ZC),zr(IM),zr(rS))},e.\u0275cmp=$e({type:e,selectors:[["app-administration-user"]],decls:24,vars:13,consts:[[3,"translucent"],["color","primary"],["slot","start"],["menu","left-menu"],["slot","end"],[3,"src"],[3,"value","ionChange"],["value","info"],["name","information-circle"],["value","groups",3,"disabled"],["name","people-sharp"],[4,"ngIf"],["id","adminForm",2,"display","contents",3,"ngSubmit"],["adminForm","ngForm"],["color","secondary","position","floating"],["name","login","required","","pattern","^[\\w.@-]*$",3,"maxlength","readonly","ngModel","ngModelChange"],["name","firstname","required","",3,"maxlength","ngModel","ngModelChange"],["name","lastname","required","",3,"maxlength","ngModel","ngModelChange"],["type","email","name","email","required","","pattern","(^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\\.[a-zA-Z0-9-.]+$)",3,"maxlength","ngModel","ngModelChange"],["slot","start","color","primary","name","isRest",3,"disabled","ngModel","checked","ngModelChange","ionChange"],["color","secondary"],[4,"ngFor","ngForOf"],["style","align-items: center;",4,"ngIf"],["text-center","","lines","none",2,"position","sticky","bottom","0px","z-index","1"],[2,"display","flex","align-items","center","justify-content","center","width","100%","background","white"],["type","submit","shape","round","size","large","fill","outline","color","primary",3,"disabled"],[2,"font-size","13px"],["slot","start",3,"checked","disabled","ionChange"],[2,"align-items","center"],["slot","end","fill","clear","color","primary",3,"click"],["color","primary",3,"name"],["name","newPasswordRest",3,"type","ngModel","ngModelChange","ionChange"],["color","danger",4,"ngIf"],["color","danger"],["name","passwordConfirmation",3,"type","ngModel","ngModelChange"],["color","success",4,"ngIf"],["color","success"],["class","no-result",4,"ngIf"],[1,"no-result"],["lines","none"],["color","medium",1,"no-result-label"]],template:function(e,t){1&e&&(Hr(0,"ion-header",0),Hr(1,"ion-toolbar",1),Hr(2,"ion-buttons",2),Ur(3,"ion-menu-button",3),Ur(4,"ion-back-button"),jr(),Hr(5,"ion-title"),Da(6),jr(),Hr(7,"ion-avatar",4),Ur(8,"img",5),jr(),jr(),jr(),Hr(9,"ion-header"),Hr(10,"ion-toolbar"),Hr(11,"ion-segment",6),Xr("ionChange",function(e){return t.initTab(e.detail.value)}),Hr(12,"ion-segment-button",7),Hr(13,"ion-label"),Da(14),hc(15,"translate"),jr(),Ur(16,"ion-icon",8),jr(),Hr(17,"ion-segment-button",9),Hr(18,"ion-label"),Da(19),hc(20,"translate"),jr(),Ur(21,"ion-icon",10),jr(),jr(),jr(),jr(),Fr(22,eL,43,37,"ng-container",11),Fr(23,sL,4,2,"ng-container",11)),2&e&&(Vr("translucent",!0),no(6),Oa(t.title),no(2),Vr("src",t.user.picture,os),no(3),Vr("value",t.currentTool),no(3),Oa(pc(15,9,"lang.informations")),no(3),Vr("disabled",t.creationMode),no(2),Oa(pc(20,11,"lang.manage_groups")),no(3),Vr("ngIf","info"===t.currentTool),no(1),Vr("ngIf","groups"===t.currentTool))},directives:[Vx,vA,Cx,Jx,_x,HA,mA,wx,cA,ox,dA,Zx,Nx,Wu,Lm,am,Mm,Tx,Gx,Wx,ax,Jm,ib,tb,rm,Rm,bA,J_,Qx,Xx,ju,Ax,Dx,tA],pipes:[$C],styles:[".header[_ngcontent-%COMP%]{background:#135f7f;height:95px;color:#fff;padding-left:10px;font-size:25px}.header[_ngcontent-%COMP%], .header-title[_ngcontent-%COMP%]{display:flex;align-items:center}.header-title[_ngcontent-%COMP%]{flex:1;white-space:pre;overflow:hidden;text-overflow:ellipsis}.header[_ngcontent-%COMP%]   b[_ngcontent-%COMP%]{color:#f99830}.header[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis}.mainView[_ngcontent-%COMP%]{display:flex;flex-direction:column}.container[_ngcontent-%COMP%]{flex:1;overflow:auto}.loader[_ngcontent-%COMP%]{position:absolute;z-index:2;display:flex;background:hsla(0,0%,100%,.8);width:100%;height:100%;justify-content:center;align-items:center;top:0;margin:0;padding:0}.admin-form[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:20px}.actions-form[_ngcontent-%COMP%]{display:flex;justify-content:center}@media (max-width:360px){.actions-form[_ngcontent-%COMP%]{flex-direction:column}}.actions-form[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin:10px;width:150px}@media (max-width:360px){.actions-form[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{width:100%}}.noResult[_ngcontent-%COMP%]{padding:10px;text-align:center;opacity:.5}.emptyTable[_ngcontent-%COMP%]{height:auto}.addButton[_ngcontent-%COMP%]{padding:10px;display:flex;justify-content:flex-end}",".no-result[_ngcontent-%COMP%]{height:100%;display:flex;align-items:center;justify-content:center}.no-result[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]{width:100%;text-align:center}.no-result-label[_ngcontent-%COMP%]{font-size:30px}"]}),e})();function rL(e,t){if(1&e&&(Hr(0,"div",15),Da(1),hc(2,"translate"),jr()),2&e){const e=na().$implicit;Vr("mat-sort-header",e),no(1),Ma(" ",pc(2,2,"lang."+e)," ")}}function aL(e,t){if(1&e&&(Wr(0),Fr(1,rL,3,4,"div",14),Gr()),2&e){const e=t.$implicit;no(1),Vr("ngIf","actions"!==e)}}function lL(e,t){if(1&e){const e=qr();Hr(0,"div",16),Hr(1,"ion-searchbar",17),Xr("ionChange",function(t){return Lt(e),na().applyFilter(t.detail.value)}),hc(2,"translate"),jr(),jr()}2&e&&(no(1),Vr("placeholder",pc(2,1,"lang.filter")))}function cL(e,t){if(1&e&&(Hr(0,"div",16),Da(1),jr()),2&e){const e=t.$implicit,n=na().$implicit;no(1),Ma(" ",n[e]," ")}}function dL(e,t){if(1&e){const e=qr();Hr(0,"ion-item",7),Hr(1,"ion-label",18),Fr(2,cL,2,1,"div",19),jr(),Hr(3,"ion-button",20),Xr("click",function(n){Lt(e);const i=t.$implicit,s=na();return n.stopPropagation(),s.delete(i)}),hc(4,"translate"),Ur(5,"ion-icon",21),jr(),jr()}if(2&e){const e=t.$implicit,n=na();no(1),aa("routerLink","/administration/groups/",e.id,""),no(1),Vr("ngForOf",n.displayedColumns),no(1),ra("title",pc(4,3,"lang.delete"))}}let uL=(()=>{class e{constructor(e,t,n,i,s,o,r){this.http=e,this.translate=t,this.latinisePipe=n,this.dialog=i,this.signaturesService=s,this.notificationService=o,this.alertController=r,this.groupList=[],this.loading=!0,this.displayedColumns=["label","actions"]}applyFilter(e){e=this.latinisePipe.transform(e.toLowerCase()),this.sortedData=this.groupList.filter(t=>{let n=!1;return this.displayedColumns.forEach(i=>{t[i]&&this.latinisePipe.transform(t[i].toLowerCase()).includes(e)&&(n=!0)}),n})}ionViewWillEnter(){this.http.get("../rest/groups").pipe(k(e=>e.groups),Iv(()=>this.loading=!1)).subscribe({next:e=>{this.groupList=e,this.sortedData=this.groupList.slice()}})}delete(e){return t=this,void 0,i=function*(){const t=yield this.alertController.create({header:this.translate.instant("lang.confirmMsg"),buttons:[{text:this.translate.instant("lang.no"),role:"cancel",cssClass:"secondary",handler:()=>{}},{text:this.translate.instant("lang.yes"),handler:()=>{this.http.delete("../rest/groups/"+e.id).pipe(Iv(()=>this.loading=!1)).subscribe({next:t=>{const n=this.groupList.findIndex(t=>t.id===e.id);this.groupList.splice(n,1),this.sortedData=this.groupList.slice(),this.notificationService.success("lang.groupDeleted")}})}}]});yield t.present()},new((n=void 0)||(n=Promise))(function(e,s){function o(e){try{a(i.next(e))}catch(t){s(t)}}function r(e){try{a(i.throw(e))}catch(t){s(t)}}function a(t){var i;t.done?e(t.value):(i=t.value,i instanceof n?i:new n(function(e){e(i)})).then(o,r)}a((i=i.apply(t,[])).next())});var t,n,i}sortData(e){const t=this.groupList.slice();this.sortedData=e.active&&""!==e.direction?t.sort((t,n)=>function(e,t,n){return(e<t?-1:1)*(n?1:-1)}(t[e.active],n[e.active],"asc"===e.direction)):t}}return e.\u0275fac=function(t){return new(t||e)(zr(Db),zr(GC),zr(dP),zr(IM),zr(sS),zr(ZC),zr(QA))},e.\u0275cmp=$e({type:e,selectors:[["app-administration-groups-list"]],viewQuery:function(e,t){if(1&e&&(Tc(ZT,3),Tc(cI,3)),2&e){let e;Mc(e=Rc())&&(t.paginator=e.first),Mc(e=Rc())&&(t.sort=e.first)}},decls:28,vars:18,consts:[[3,"translucent"],["color","primary"],["slot","start"],["menu","left-menu"],["fill","outline","shape","round","routerLink","/administration/groups/new"],["slot","end","color","secondary"],["mainContent",""],[2,"display","flex"],["color","primary","matSort","","matSortDirection","asc",2,"display","flex","font-size","12px","align-items","center",3,"matSortActive","matSortChange"],[4,"ngFor","ngForOf"],["style","flex: 1",4,"ngIf"],["slot","end","fill","clear","shape","round","disabled",""],["approxItemHeight","50px",3,"items"],["style","display: flex;",4,"virtualItem"],["disableClear","","style","flex: 1",3,"mat-sort-header",4,"ngIf"],["disableClear","",2,"flex","1",3,"mat-sort-header"],[2,"flex","1"],[2,"padding","1px",3,"placeholder","ionChange"],[2,"display","flex","cursor","pointer",3,"routerLink"],["style","flex: 1",4,"ngFor","ngForOf"],["slot","end","fill","clear","shape","round",3,"title","click"],["color","danger","slot","icon-only","name","trash"]],template:function(e,t){1&e&&(Hr(0,"ion-header",0),Hr(1,"ion-toolbar",1),Hr(2,"ion-buttons",2),Ur(3,"ion-menu-button",3),Ur(4,"ion-back-button"),jr(),Hr(5,"ion-title"),Da(6),hc(7,"translate"),hc(8,"translate"),jr(),jr(),Hr(9,"ion-toolbar",1),Hr(10,"ion-buttons",2),Hr(11,"ion-button",4),Da(12),hc(13,"translate"),jr(),jr(),Hr(14,"ion-title",5),Da(15),hc(16,"translate"),jr(),jr(),jr(),Hr(17,"ion-content",null,6),Hr(19,"ion-list"),Hr(20,"ion-item",7),Hr(21,"ion-label",8),Xr("matSortChange",function(e){return t.sortData(e)}),Fr(22,aL,2,1,"ng-container",9),Fr(23,lL,3,3,"div",10),jr(),Hr(24,"ion-button",11),Ur(25,"ion-icon"),jr(),jr(),Hr(26,"ion-virtual-scroll",12),Fr(27,dL,6,5,"ion-item",13),jr(),jr(),jr()),2&e&&(Vr("translucent",!0),no(6),Ta("",pc(7,10,"lang.administration")," ",pc(8,12,"lang.manage_groupsAlt"),""),no(6),Ma(" ",pc(13,14,"lang.groupCreation")," "),no(3),Ta("",t.groupList.length," ",pc(16,16,"lang.manage_groupsAlt"),""),no(6),Vr("matSortActive",t.displayedColumns[0]),no(1),Vr("ngForOf",t.displayedColumns),no(1),Vr("ngIf",t.displayedColumns.indexOf("actions")>-1),no(3),Vr("items",t.sortedData))},directives:[Vx,vA,Cx,Jx,_x,HA,mA,Ax,jA,a_,Tx,Qx,Gx,Zx,cI,ju,Wu,Nx,$A,GA,mI,lA,ax],pipes:[$C],styles:[".header[_ngcontent-%COMP%]{background:#135f7f;height:95px;color:#fff;padding-left:10px;font-size:25px}.header[_ngcontent-%COMP%], .header-title[_ngcontent-%COMP%]{display:flex;align-items:center}.header-title[_ngcontent-%COMP%]{flex:1;white-space:pre;overflow:hidden;text-overflow:ellipsis}.header[_ngcontent-%COMP%]   b[_ngcontent-%COMP%]{color:#f99830}.header[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis}.mainView[_ngcontent-%COMP%]{display:flex;flex-direction:column}.container[_ngcontent-%COMP%]{flex:1;overflow:auto}.loader[_ngcontent-%COMP%]{position:absolute;z-index:2;display:flex;background:hsla(0,0%,100%,.8);width:100%;height:100%;justify-content:center;align-items:center;top:0;margin:0;padding:0}.admin-form[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:20px}.actions-form[_ngcontent-%COMP%]{display:flex;justify-content:center}@media (max-width:360px){.actions-form[_ngcontent-%COMP%]{flex-direction:column}}.actions-form[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin:10px;width:150px}@media (max-width:360px){.actions-form[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{width:100%}}.noResult[_ngcontent-%COMP%]{padding:10px;text-align:center;opacity:.5}.emptyTable[_ngcontent-%COMP%]{height:auto}.addButton[_ngcontent-%COMP%]{padding:10px;display:flex;justify-content:flex-end}",""]}),e})();function hL(e,t){if(1&e){const e=qr();Hr(0,"ion-item",4),Xr("click",function(){Lt(e);const n=t.$implicit;return na().selectUser(n)}),Hr(1,"ion-label"),Da(2),jr(),jr()}if(2&e){const e=t.$implicit;no(2),Ta(" ",e.firstname," ",e.lastname," ")}}let pL=(()=>{class e{constructor(e,t){this.http=e,this.modalController=t,this.usersList=[]}ngOnInit(){this.http.get("../rest/users?mode=all").pipe(k(e=>e.users)).subscribe({next:e=>{this.usersList=e.filter(e=>-1===this.users.findIndex(t=>t.id===e.id))}})}selectUser(e){this.modalController.dismiss(e)}}return e.\u0275fac=function(t){return new(t||e)(zr(Db),zr(JA))},e.\u0275cmp=$e({type:e,selectors:[["app-users"]],inputs:{users:"users"},decls:9,vars:5,consts:[[3,"translucent"],["color","primary"],["approxItemHeight","50px",2,"height","450px",3,"items"],["button","",3,"click",4,"virtualItem"],["button","",3,"click"]],template:function(e,t){1&e&&(Hr(0,"ion-header",0),Hr(1,"ion-toolbar",1),Hr(2,"ion-title"),Da(3),hc(4,"translate"),jr(),jr(),jr(),Hr(5,"ion-content"),Hr(6,"ion-list"),Hr(7,"ion-virtual-scroll",2),Fr(8,hL,3,2,"ion-item",3),jr(),jr(),jr()),2&e&&(Vr("translucent",!0),no(3),Oa(pc(4,3,"lang.users")),no(4),Vr("items",t.usersList))},directives:[Vx,vA,mA,Tx,Qx,$A,GA,Gx,Zx],pipes:[$C],encapsulation:2}),e})();var gL=function(e,t,n,i){return new(n||(n=Promise))(function(s,o){function r(e){try{l(i.next(e))}catch(t){o(t)}}function a(e){try{l(i.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?s(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(r,a)}l((i=i.apply(e,t||[])).next())})};function fL(e,t){1&e&&(Hr(0,"ion-item",17),Hr(1,"ion-label",18),Da(2),hc(3,"translate"),jr(),jr()),2&e&&(no(2),Ma("",pc(3,1,"lang.privileges")," :"))}function mL(e,t){if(1&e){const e=qr();Hr(0,"ion-item",19),Hr(1,"ion-toggle",20),Xr("ngModelChange",function(e){return t.$implicit.checked=e})("click",function(){Lt(e);const n=t.$implicit;return na().togglePrivilege(n,!0)}),jr(),Hr(2,"ion-label",21),Xr("click",function(){Lt(e);const n=t.$implicit;return na().togglePrivilege(n,!1)}),Da(3),hc(4,"translate"),jr(),jr()}if(2&e){const e=t.$implicit;no(1),Vr("name",e.id)("checked",e.checked)("ngModel",e.checked),no(2),Oa(pc(4,4,"lang."+e.id+"Admin"))}}function bL(e,t){1&e&&(Hr(0,"ion-item",17),Hr(1,"ion-label",18),Da(2),hc(3,"translate"),jr(),jr()),2&e&&(no(2),Ma("",pc(3,1,"lang.linkedUsers")," :"))}function vL(e,t){if(1&e&&(Hr(0,"div",31),Da(1),hc(2,"translate"),jr()),2&e){const e=na().$implicit;Vr("mat-sort-header",e),no(1),Ma(" ",pc(2,2,"lang."+e)," ")}}function yL(e,t){if(1&e&&(Wr(0),Fr(1,vL,3,4,"div",30),Gr()),2&e){const e=t.$implicit;no(1),Vr("ngIf","actions"!==e)}}function wL(e,t){if(1&e){const e=qr();Hr(0,"div",32),Hr(1,"ion-button",33),Xr("click",function(){return Lt(e),na(2).openUserList()}),Da(2),hc(3,"translate"),jr(),jr()}2&e&&(no(2),Ma(" ",pc(3,1,"lang.add")," "))}function _L(e,t){if(1&e&&(Hr(0,"div",39),Da(1),jr()),2&e){const e=t.$implicit,n=na().$implicit;no(1),Ma(" ",n[e]," ")}}function xL(e,t){if(1&e){const e=qr();Hr(0,"ion-item",34),Hr(1,"ion-label",35),Fr(2,_L,2,1,"div",36),jr(),Hr(3,"ion-button",37),Xr("click",function(n){Lt(e);const i=t.$implicit,s=na(2);return n.stopPropagation(),s.unlinkUser(i)}),hc(4,"translate"),Ur(5,"ion-icon",38),jr(),jr()}if(2&e){const e=t.$implicit,n=na(2);no(1),aa("routerLink","/administration/users/",e.id,""),no(1),Vr("ngForOf",n.displayedColumns),no(1),ra("title",pc(4,3,"lang.unlinkUser"))}}function AL(e,t){if(1&e){const e=qr();Hr(0,"ion-card",22),Hr(1,"ion-list"),Hr(2,"ion-item",23),Wr(3,13),Hr(4,"ion-label",24),Xr("matSortChange",function(t){return Lt(e),na().sortData(t)}),Fr(5,yL,2,1,"ng-container",25),Fr(6,wL,4,3,"div",26),jr(),Hr(7,"ion-button",27),Ur(8,"ion-icon"),jr(),Gr(),jr(),Hr(9,"ion-virtual-scroll",28),Fr(10,xL,6,5,"ion-item",29),jr(),jr(),jr()}if(2&e){const e=na();no(4),Vr("matSortActive",e.displayedColumns[1]),no(1),Vr("ngForOf",e.displayedColumns),no(1),Vr("ngIf",e.displayedColumns.indexOf("actions")>-1),no(3),Vr("items",e.sortedData)}}function CL(e,t){if(1&e){const e=qr();Hr(0,"ion-button",40),Xr("click",function(){return Lt(e),na().deleteGroup()}),Hr(1,"ion-label",15),Da(2),hc(3,"translate"),jr(),jr()}2&e&&(no(2),Oa(pc(3,1,"lang.delete")))}let SL=(()=>{class e{constructor(e,t,n,i,s,o,r,a,l,c,d){this.http=e,this.translate=t,this.route=n,this.router=i,this.signaturesService=s,this.notificationService=o,this.dialog=r,this.authService=a,this.popoverController=l,this.modalController=c,this.alertController=d,this.creationMode=!0,this.loading=!0,this.title="",this.displayedColumns=["firstname","lastname","actions"],this.group={id:"",label:"",users:[],privileges:[]},this.groupClone=JSON.parse(JSON.stringify(this.group))}ngOnInit(){this.route.params.subscribe(e=>{void 0===e.id?(this.creationMode=!0,this.title=this.translate.instant("lang.groupCreation"),this.loading=!1,this.groupClone=JSON.parse(JSON.stringify(this.group))):(this.creationMode=!1,this.usersList=[],this.http.get("../rest/groups/"+e.id).pipe(k(e=>e.group),Iv(()=>{this.loading=!1})).subscribe({next:e=>{this.group=e,this.groupClone=JSON.parse(JSON.stringify(this.group)),this.title=this.group.label,this.updateDataTable()}}),this.http.get("../rest/users?mode=all").pipe(k(e=>e.users)).subscribe({next:e=>{this.usersList=e}}))})}updateDataTable(){this.sortedData=this.group.users.slice()}openUserList(e){return gL(this,void 0,void 0,function*(){const e=yield this.modalController.create({component:pL,componentProps:{users:this.group.users}});yield e.present();const{data:t}=yield e.onWillDismiss();void 0!==t&&this.linkUser(t)})}canValidate(){return this.group.label!==this.groupClone.label}onSubmit(){this.creationMode?this.createGroup():this.modifyGroup()}linkUser(e){this.http.put("../rest/groups/"+this.group.id+"/users",{userId:e.id}).subscribe({next:()=>{this.group.users.push(e),this.updateDataTable(),this.notificationService.success("lang.userAdded")}})}unlinkUser(e){return gL(this,void 0,void 0,function*(){if(e.id===this.authService.user.id){const t=yield this.alertController.create({header:this.translate.instant("lang.confirmMsg"),buttons:[{text:this.translate.instant("lang.no"),role:"cancel",cssClass:"secondary",handler:()=>{}},{text:this.translate.instant("lang.yes"),handler:()=>{this.deleteUser(e)}}]});yield t.present()}else this.deleteUser(e)})}deleteUser(e){this.http.delete("../rest/groups/"+this.group.id+"/users/"+e.id,{}).subscribe({next:()=>{const t=this.group.users.findIndex(t=>t.id===e.id);this.group.users.splice(t,1),this.updateDataTable(),this.notificationService.success("lang.userDeleted")}})}modifyGroup(){this.loading=!0,this.http.put("../rest/groups/"+this.group.id,this.group).subscribe({next:()=>{this.router.navigate(["/administration/groups"]),this.notificationService.success("lang.groupUpdated")}})}createGroup(){this.loading=!0,this.http.post("../rest/groups",this.group).subscribe({next:e=>{this.router.navigate(["/administration/groups/"+e.id]),this.notificationService.success("lang.groupAdded")}})}deleteGroup(){return gL(this,void 0,void 0,function*(){const e=yield this.alertController.create({header:this.translate.instant("lang.confirmMsg"),buttons:[{text:this.translate.instant("lang.no"),role:"cancel",cssClass:"secondary",handler:()=>{}},{text:this.translate.instant("lang.yes"),handler:()=>{this.http.delete("../rest/groups/"+this.group.id).subscribe({next:()=>{this.router.navigate(["/administration/groups"]),this.notificationService.success("lang.groupDeleted")}})}}]});yield e.present()})}togglePrivilege(e,t){return gL(this,void 0,void 0,function*(){if("manage_groups"===e.id&&e.checked){t||(e.checked=!e.checked);const n=yield this.alertController.create({header:this.translate.instant("lang.confirmMsg"),message:this.translate.instant("lang.groupWarnMsg"),buttons:[{text:this.translate.instant("lang.no"),role:"cancel",cssClass:"secondary",handler:()=>{e.checked=!e.checked}},{text:this.translate.instant("lang.yes"),handler:()=>{this.updatePrivilege(e)}}]});yield n.present()}else t||(e.checked=!e.checked),setTimeout(()=>{this.updatePrivilege(e)},200)})}updatePrivilege(e){this.http.put("../rest/groups/"+this.group.id+"/privilege/"+e.id,{checked:e.checked}).subscribe({next:()=>{this.notificationService.success("lang.privilegeUpdated"),this.authService.updateUserInfoWithTokenRefresh()}})}cancel(){this.router.navigate(["/administration/groups"])}sortData(e){const t=this.group.users.slice();this.sortedData=e.active&&""!==e.direction?t.sort((t,n)=>function(e,t,n){return(e<t?-1:1)*(n?1:-1)}(t[e.active],n[e.active],"asc"===e.direction)):t}}return e.\u0275fac=function(t){return new(t||e)(zr(Db),zr(GC),zr(Ny),zr(r_),zr(sS),zr(ZC),zr(IM),zr(rS),zr(eC),zr(JA),zr(QA))},e.\u0275cmp=$e({type:e,selectors:[["app-administration-group"]],viewQuery:function(e,t){if(1&e&&(Tc(ZT,1),Tc(cI,1)),2&e){let e;Mc(e=Rc())&&(t.paginator=e.first),Mc(e=Rc())&&(t.sort=e.first)}},decls:27,vars:20,consts:[[3,"translucent"],["color","primary"],["slot","start"],["menu","left-menu"],["id","adminForm",2,"display","contents",3,"ngSubmit"],["adminForm","ngForm"],["color","secondary","position","floating"],["name","label","required","",3,"maxlength","ngModel","ngModelChange"],["lines","none",4,"ngIf"],[2,"display","grid","grid-gap","10px"],["style","cursor: pointer",4,"ngFor","ngForOf"],["style","height: 400px; overflow-y: auto;",4,"ngIf"],["text-center","","lines","none",2,"position","sticky","bottom","0px","z-index","1"],[2,"display","flex","align-items","center","justify-content","center","width","100%","background","white"],["type","submit","shape","round","size","large","fill","outline","color","primary",3,"disabled"],[2,"font-size","13px"],["type","button","shape","round","size","large","fill","outline","color","danger",3,"click",4,"ngIf"],["lines","none"],["color","secondary"],[2,"cursor","pointer"],["slot","start","color","primary",3,"name","checked","ngModel","ngModelChange","click"],[3,"click"],[2,"height","400px","overflow-y","auto"],[2,"position","sticky","top","0px","z-index","1"],["color","primary","matSort","","matSortDirection","asc",2,"display","flex","font-size","12px","align-items","center",3,"matSortActive","matSortChange"],[4,"ngFor","ngForOf"],["style","flex: 1;text-align: right;",4,"ngIf"],["slot","end","fill","clear","shape","round","disabled",""],["approxItemHeight","50px",3,"items"],["style","display: flex;",4,"virtualItem"],["disableClear","","style","flex: 1",3,"mat-sort-header",4,"ngIf"],["disableClear","",2,"flex","1",3,"mat-sort-header"],[2,"flex","1","text-align","right"],["slot","end","color","primary","fille","outline","shape","round",3,"click"],[2,"display","flex"],[2,"display","flex","cursor","pointer",3,"routerLink"],["style","flex: 1",4,"ngFor","ngForOf"],["slot","end","fill","clear","shape","round",3,"title","click"],["color","danger","slot","icon-only","name","close-outline"],[2,"flex","1"],["type","button","shape","round","size","large","fill","outline","color","danger",3,"click"]],template:function(e,t){if(1&e&&(Hr(0,"ion-header",0),Hr(1,"ion-toolbar",1),Hr(2,"ion-buttons",2),Ur(3,"ion-menu-button",3),Ur(4,"ion-back-button"),jr(),Hr(5,"ion-title"),Da(6),jr(),jr(),jr(),Hr(7,"form",4,5),Xr("ngSubmit",function(){return t.onSubmit()}),Hr(9,"ion-content"),Hr(10,"ion-item"),Hr(11,"ion-label",6),Da(12),hc(13,"translate"),jr(),Hr(14,"ion-input",7),Xr("ngModelChange",function(e){return t.group.label=e}),jr(),jr(),Fr(15,fL,4,3,"ion-item",8),Hr(16,"div",9),Fr(17,mL,5,6,"ion-item",10),jr(),Fr(18,bL,4,3,"ion-item",8),Fr(19,AL,11,4,"ion-card",11),Hr(20,"ion-item",12),Hr(21,"div",13),Hr(22,"ion-button",14),Hr(23,"ion-label",15),Da(24),hc(25,"translate"),jr(),jr(),Fr(26,CL,4,3,"ion-button",16),jr(),jr(),jr(),jr()),2&e){const e=Br(8);Vr("translucent",!0),no(6),Oa(t.title),no(6),Ma("",pc(13,16,"lang.label")," *"),no(2),Vr("maxlength",128)("ngModel",t.group.label),no(1),Vr("ngIf",!t.creationMode),no(1),ma("grid-2-col",t.signaturesService.mobileMode)("grid-3-col",!t.signaturesService.mobileMode),no(1),Vr("ngForOf",t.group.privileges),no(1),Vr("ngIf",!t.creationMode),no(1),Vr("ngIf",!t.creationMode),no(3),Vr("disabled",!e.form.valid||!t.canValidate()),no(2),Oa(pc(25,18,"lang.validate")),no(2),Vr("ngIf",!t.creationMode)}},directives:[Vx,vA,Cx,Jx,_x,HA,mA,Lm,am,Mm,Tx,Gx,Zx,Wx,ax,Jm,tb,rm,Rm,Wu,ju,Ax,bA,J_,Sx,Qx,cI,Nx,$A,GA,mI,jA,a_],pipes:[$C],styles:[".header[_ngcontent-%COMP%]{background:#135f7f;height:95px;color:#fff;padding-left:10px;font-size:25px}.header[_ngcontent-%COMP%], .header-title[_ngcontent-%COMP%]{display:flex;align-items:center}.header-title[_ngcontent-%COMP%]{flex:1;white-space:pre;overflow:hidden;text-overflow:ellipsis}.header[_ngcontent-%COMP%]   b[_ngcontent-%COMP%]{color:#f99830}.header[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis}.mainView[_ngcontent-%COMP%]{display:flex;flex-direction:column}.container[_ngcontent-%COMP%]{flex:1;overflow:auto}.loader[_ngcontent-%COMP%]{position:absolute;z-index:2;display:flex;background:hsla(0,0%,100%,.8);width:100%;height:100%;justify-content:center;align-items:center;top:0;margin:0;padding:0}.admin-form[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:20px}.actions-form[_ngcontent-%COMP%]{display:flex;justify-content:center}@media (max-width:360px){.actions-form[_ngcontent-%COMP%]{flex-direction:column}}.actions-form[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin:10px;width:150px}@media (max-width:360px){.actions-form[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{width:100%}}.noResult[_ngcontent-%COMP%]{padding:10px;text-align:center;opacity:.5}.emptyTable[_ngcontent-%COMP%]{height:auto}.addButton[_ngcontent-%COMP%]{padding:10px;display:flex;justify-content:flex-end}",".privilegesList[_ngcontent-%COMP%]{padding-top:10px;padding-bottom:10px;display:inline-block;width:100%}@media (min-width:768px){.privilegesList[_ngcontent-%COMP%]{width:50%}}@media (min-width:992px){.privilegesList[_ngcontent-%COMP%]{width:33%}}fieldset[_ngcontent-%COMP%]{border:1px solid #f1f4f4;align-items:center;margin-top:30px}legend[_ngcontent-%COMP%]{color:#f99830}.grid-2-col[_ngcontent-%COMP%]{grid-template-columns:repeat(2,1fr)}.grid-3-col[_ngcontent-%COMP%]{grid-template-columns:repeat(3,1fr)}"]}),e})();function kL(e,t){if(1&e&&(Hr(0,"ion-select-option",10),Da(1),hc(2,"translate"),jr()),2&e){const e=t.$implicit;Vr("value",e.id)("disabled",!e.allowed),no(1),Ma(" ",pc(2,3,"lang."+e.id+"Connection"),"")}}function PL(e,t){if(1&e){const e=qr();Hr(0,"ion-select",8),Xr("ionChange",function(t){return Lt(e),na().changeConnection(t.detail.value)}),hc(1,"translate"),Fr(2,kL,3,5,"ion-select-option",9),jr()}if(2&e){const e=na();ra("cancelText",pc(1,3,"lang.cancel")),Vr("value",e.currentConnection.id),no(2),Vr("ngForOf",e.connectionList)}}function EL(e,t){if(1&e&&(Hr(0,"ion-col"),Hr(1,"ion-button",11),Hr(2,"div",12),Ur(3,"ion-icon",13),Hr(4,"ion-label",14),Da(5),hc(6,"translate"),jr(),Hr(7,"ion-note",15),Da(8),hc(9,"translate"),jr(),jr(),jr(),jr()),2&e){const e=t.$implicit;no(1),Vr("routerLink",e.route),no(2),Vr("name",e.icon),no(2),Ma("",pc(6,4,"lang."+e.id)," "),no(3),Ma(" ",pc(9,6,"lang."+e.id+"Desc"),"")}}let DL=(()=>{class e{constructor(e,t,n,i,s){this.http=e,this.signaturesService=t,this.notificationService=n,this.alertController=i,this.authService=s,this.loading=!0,this.privileges=[{id:"manage_ldap_configurations",icon:"server-sharp",route:"/administration/connections/ldaps"}],this.id=0,this.label="",this.connectionList=[]}ngOnInit(){this.loading=!0,this.http.get("../rest/configurations",{params:{identifier:"connection"}}).pipe(Iv(()=>this.loading=!1)).subscribe({next:e=>{this.label=e.configurations.label,this.id=e.configurations.id,this.connectionList=e.configurations.availableConnections;const t=this.connectionList.findIndex(t=>t.id===e.configurations.value);this.currentConnection=void 0!==this.connectionList[t]?this.connectionList[t]:this.connectionList[0]}})}changeConnection(e){return t=this,void 0,i=function*(){this.http.patch("../rest/configurations/"+this.id,{label:this.label,value:e}).pipe(Iv(()=>this.loading=!1)).subscribe({next:()=>{this.authService.updateUserInfoWithTokenRefresh(),this.notificationService.success("lang.connectionModeUpdated"),this.authService.authMode=e}})},new((n=void 0)||(n=Promise))(function(e,s){function o(e){try{a(i.next(e))}catch(t){s(t)}}function r(e){try{a(i.throw(e))}catch(t){s(t)}}function a(t){var i;t.done?e(t.value):(i=t.value,i instanceof n?i:new n(function(e){e(i)})).then(o,r)}a((i=i.apply(t,[])).next())});var t,n,i}}return e.\u0275fac=function(t){return new(t||e)(zr(Db),zr(sS),zr(ZC),zr(QA),zr(rS))},e.\u0275cmp=$e({type:e,selectors:[["app-administration-connection"]],decls:18,vars:9,consts:[[3,"translucent"],["color","primary"],["slot","start"],["menu","left-menu"],["mainContent",""],["color","secondary"],[3,"value","cancelText","ionChange",4,"ngIf"],[4,"ngFor","ngForOf"],[3,"value","cancelText","ionChange"],[3,"value","disabled",4,"ngFor","ngForOf"],[3,"value","disabled"],["expand","block","size","large","fill","outline","color","secondary",2,"height","200px",3,"routerLink"],[1,"admin-content"],["color","primary",2,"font-size","70px",3,"name"],["color","primary",2,"white-space","normal"],[2,"font-size","8px","white-space","normal","padding","10px"]],template:function(e,t){1&e&&(Hr(0,"ion-header",0),Hr(1,"ion-toolbar",1),Hr(2,"ion-buttons",2),Ur(3,"ion-menu-button",3),Ur(4,"ion-back-button"),jr(),Hr(5,"ion-title"),Da(6),hc(7,"translate"),jr(),jr(),jr(),Hr(8,"ion-content",null,4),Hr(10,"ion-item"),Hr(11,"ion-label",5),Da(12),hc(13,"translate"),jr(),Fr(14,PL,3,5,"ion-select",6),jr(),Hr(15,"ion-grid"),Hr(16,"ion-row"),Fr(17,EL,10,8,"ion-col",7),jr(),jr(),jr()),2&e&&(Vr("translucent",!0),no(6),Oa(pc(7,5,"lang.manage_connections")),no(6),Oa(pc(13,7,"lang.connectionMode")),no(2),Vr("ngIf",t.currentConnection),no(3),Vr("ngForOf",t.privileges))},directives:[Vx,vA,Cx,Jx,_x,HA,mA,Tx,Gx,Zx,Wu,zx,aA,ju,uA,ox,hA,Mx,Ax,jA,a_,Nx,tA],pipes:[$C],styles:[".header[_ngcontent-%COMP%]{background:#135f7f;height:95px;color:#fff;padding-left:10px;font-size:25px}.header[_ngcontent-%COMP%], .header-title[_ngcontent-%COMP%]{display:flex;align-items:center}.header-title[_ngcontent-%COMP%]{flex:1;white-space:pre;overflow:hidden;text-overflow:ellipsis}.header[_ngcontent-%COMP%]   b[_ngcontent-%COMP%]{color:#f99830}.header[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis}.mainView[_ngcontent-%COMP%]{display:flex;flex-direction:column}.container[_ngcontent-%COMP%]{flex:1;overflow:auto}.loader[_ngcontent-%COMP%]{position:absolute;z-index:2;display:flex;background:hsla(0,0%,100%,.8);width:100%;height:100%;justify-content:center;align-items:center;top:0;margin:0;padding:0}.admin-form[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:20px}.actions-form[_ngcontent-%COMP%]{display:flex;justify-content:center}@media (max-width:360px){.actions-form[_ngcontent-%COMP%]{flex-direction:column}}.actions-form[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin:10px;width:150px}@media (max-width:360px){.actions-form[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{width:100%}}.noResult[_ngcontent-%COMP%]{padding:10px;text-align:center;opacity:.5}.emptyTable[_ngcontent-%COMP%]{height:auto}.addButton[_ngcontent-%COMP%]{padding:10px;display:flex;justify-content:flex-end}",".admin-desc[_ngcontent-%COMP%]{white-space:normal;font-size:10px;line-height:15px;text-align:justify;color:grey;height:60px;overflow:auto}.admin-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center}"]}),e})();function OL(e,t){if(1&e&&(Hr(0,"div",15),Da(1),hc(2,"translate"),jr()),2&e){const e=na().$implicit;Vr("mat-sort-header",e),no(1),Ma(" ",pc(2,2,"lang."+e)," ")}}function ML(e,t){if(1&e&&(Wr(0),Fr(1,OL,3,4,"div",14),Gr()),2&e){const e=t.$implicit;no(1),Vr("ngIf","actions"!==e)}}function TL(e,t){if(1&e){const e=qr();Hr(0,"div",16),Hr(1,"ion-searchbar",17),Xr("ionChange",function(t){return Lt(e),na().applyFilter(t.detail.value)}),hc(2,"translate"),jr(),jr()}2&e&&(no(1),Vr("placeholder",pc(2,1,"lang.filter")))}function IL(e,t){if(1&e&&(Hr(0,"div",16),Da(1),jr()),2&e){const e=t.$implicit,n=na().$implicit;no(1),Ma(" ",n[e]," ")}}function RL(e,t){if(1&e){const e=qr();Hr(0,"ion-item",7),Hr(1,"ion-label",18),Fr(2,IL,2,1,"div",19),jr(),Hr(3,"ion-button",20),Xr("click",function(n){Lt(e);const i=t.$implicit,s=na();return n.stopPropagation(),s.delete(i)}),hc(4,"translate"),Ur(5,"ion-icon",21),jr(),jr()}if(2&e){const e=t.$implicit,n=na();no(1),aa("routerLink","/administration/connections/ldaps/",e.id,""),no(1),Vr("ngForOf",n.displayedColumns),no(1),ra("title",pc(4,3,"lang.delete"))}}let LL=(()=>{class e{constructor(e,t,n,i,s,o,r,a){this.http=e,this.translate=t,this.latinisePipe=n,this.dialog=i,this.signaturesService=s,this.notificationService=o,this.authService=r,this.alertController=a,this.ldapList=[],this.loading=!0,this.displayedColumns=["label","actions"]}updateDataTable(){this.sortedData=this.ldapList.slice()}applyFilter(e){e=this.latinisePipe.transform(e.toLowerCase()),this.sortedData=this.ldapList.filter(t=>{let n=!1;return this.displayedColumns.forEach(i=>{t[i]&&this.latinisePipe.transform(t[i].toLowerCase()).includes(e)&&(n=!0)}),n})}ngOnInit(){}ionViewWillEnter(){this.http.get("../rest/configurations",{params:{identifier:"ldapServer"}}).pipe(Iv(()=>this.loading=!1)).subscribe({next:e=>{this.ldapList=e.configurations,this.updateDataTable()}})}delete(e){return t=this,void 0,i=function*(){const t=yield this.alertController.create({header:this.translate.instant("lang.confirmMsg"),buttons:[{text:this.translate.instant("lang.no"),role:"cancel",cssClass:"secondary",handler:()=>{}},{text:this.translate.instant("lang.yes"),handler:()=>{this.http.delete("../rest/configurations/"+e.id).pipe(Iv(()=>this.loading=!1)).subscribe({next:()=>{const t=this.ldapList.findIndex(t=>t.id===e.id);this.ldapList.splice(t,1),this.updateDataTable(),this.notificationService.success("lang.ldapDeleted")}})}}]});yield t.present()},new((n=void 0)||(n=Promise))(function(e,s){function o(e){try{a(i.next(e))}catch(t){s(t)}}function r(e){try{a(i.throw(e))}catch(t){s(t)}}function a(t){var i;t.done?e(t.value):(i=t.value,i instanceof n?i:new n(function(e){e(i)})).then(o,r)}a((i=i.apply(t,[])).next())});var t,n,i}sortData(e){const t=this.ldapList.slice();this.sortedData=e.active&&""!==e.direction?t.sort((t,n)=>function(e,t,n){return(e<t?-1:1)*(n?1:-1)}(t[e.active],n[e.active],"asc"===e.direction)):t}}return e.\u0275fac=function(t){return new(t||e)(zr(Db),zr(GC),zr(dP),zr(IM),zr(sS),zr(ZC),zr(rS),zr(QA))},e.\u0275cmp=$e({type:e,selectors:[["app-administration-ldap-list"]],decls:28,vars:18,consts:[[3,"translucent"],["color","primary"],["slot","start"],["menu","left-menu"],["fill","outline","shape","round","routerLink","/administration/connections/ldaps/new"],["slot","end","color","secondary"],["mainContent",""],[2,"display","flex"],["color","primary","matSort","","matSortDirection","asc",2,"display","flex","font-size","12px","align-items","center",3,"matSortActive","matSortChange"],[4,"ngFor","ngForOf"],["style","flex: 1",4,"ngIf"],["slot","end","fill","clear","shape","round","disabled",""],["approxItemHeight","50px",3,"items"],["style","display: flex;",4,"virtualItem"],["disableClear","","style","flex: 1",3,"mat-sort-header",4,"ngIf"],["disableClear","",2,"flex","1",3,"mat-sort-header"],[2,"flex","1"],[2,"padding","1px",3,"placeholder","ionChange"],[2,"display","flex","cursor","pointer",3,"routerLink"],["style","flex: 1",4,"ngFor","ngForOf"],["slot","end","fill","clear","shape","round",3,"title","click"],["color","danger","slot","icon-only","name","trash"]],template:function(e,t){1&e&&(Hr(0,"ion-header",0),Hr(1,"ion-toolbar",1),Hr(2,"ion-buttons",2),Ur(3,"ion-menu-button",3),Ur(4,"ion-back-button"),jr(),Hr(5,"ion-title"),Da(6),hc(7,"translate"),hc(8,"translate"),jr(),jr(),Hr(9,"ion-toolbar",1),Hr(10,"ion-buttons",2),Hr(11,"ion-button",4),Da(12),hc(13,"translate"),jr(),jr(),Hr(14,"ion-title",5),Da(15),hc(16,"translate"),jr(),jr(),jr(),Hr(17,"ion-content",null,6),Hr(19,"ion-list"),Hr(20,"ion-item",7),Hr(21,"ion-label",8),Xr("matSortChange",function(e){return t.sortData(e)}),Fr(22,ML,2,1,"ng-container",9),Fr(23,TL,3,3,"div",10),jr(),Hr(24,"ion-button",11),Ur(25,"ion-icon"),jr(),jr(),Hr(26,"ion-virtual-scroll",12),Fr(27,RL,6,5,"ion-item",13),jr(),jr(),jr()),2&e&&(Vr("translucent",!0),no(6),Ta("",pc(7,10,"lang.administration")," ",pc(8,12,"lang.manage_ldap_configurationsAlt")," "),no(6),Ma(" ",pc(13,14,"lang.ldapCreation")," "),no(3),Ta("",t.ldapList.length," ",pc(16,16,"lang.manage_ldap_configurationsAlt"),""),no(6),Vr("matSortActive",t.displayedColumns[0]),no(1),Vr("ngForOf",t.displayedColumns),no(1),Vr("ngIf",t.displayedColumns.indexOf("actions")>-1),no(3),Vr("items",t.sortedData))},directives:[Vx,vA,Cx,Jx,_x,HA,mA,Ax,jA,a_,Tx,Qx,Gx,Zx,cI,ju,Wu,Nx,$A,GA,mI,lA,ax],pipes:[$C],styles:[".header[_ngcontent-%COMP%]{background:#135f7f;height:95px;color:#fff;padding-left:10px;font-size:25px}.header[_ngcontent-%COMP%], .header-title[_ngcontent-%COMP%]{display:flex;align-items:center}.header-title[_ngcontent-%COMP%]{flex:1;white-space:pre;overflow:hidden;text-overflow:ellipsis}.header[_ngcontent-%COMP%]   b[_ngcontent-%COMP%]{color:#f99830}.header[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis}.mainView[_ngcontent-%COMP%]{display:flex;flex-direction:column}.container[_ngcontent-%COMP%]{flex:1;overflow:auto}.loader[_ngcontent-%COMP%]{position:absolute;z-index:2;display:flex;background:hsla(0,0%,100%,.8);width:100%;height:100%;justify-content:center;align-items:center;top:0;margin:0;padding:0}.admin-form[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:20px}.actions-form[_ngcontent-%COMP%]{display:flex;justify-content:center}@media (max-width:360px){.actions-form[_ngcontent-%COMP%]{flex-direction:column}}.actions-form[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin:10px;width:150px}@media (max-width:360px){.actions-form[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{width:100%}}.noResult[_ngcontent-%COMP%]{padding:10px;text-align:center;opacity:.5}.emptyTable[_ngcontent-%COMP%]{height:auto}.addButton[_ngcontent-%COMP%]{padding:10px;display:flex;justify-content:flex-end}",""]}),e})();function FL(e,t){return t?n=>n.pipe(FL((n,i)=>F(e(n,i)).pipe(k((e,s)=>t(n,e,i,s))))):t=>t.lift(new BL(e))}class BL{constructor(e){this.project=e}call(e,t){return t.subscribe(new zL(e,this.project))}}class zL extends z{constructor(e,t){super(e),this.project=t,this.hasSubscription=!1,this.hasCompleted=!1,this.index=0}_next(e){this.hasSubscription||this.tryNext(e)}tryNext(e){let t;const n=this.index++;try{t=this.project(e,n)}catch(i){return void this.destination.error(i)}this.hasSubscription=!0,this._innerSub(t)}_innerSub(e){const t=new B(this),n=this.destination;n.add(t);const i=V(e,t);i!==t&&n.add(i)}_complete(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete(),this.unsubscribe()}notifyNext(e){this.destination.next(e)}notifyError(e){this.destination.error(e)}notifyComplete(){this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()}}function VL(e,t){1&e&&(Wr(0),Da(1),hc(2,"translate"),Gr()),2&e&&(no(1),Ma(" ",pc(2,1,"lang.connectionInProgress"),"... "))}function NL(e,t){if(1&e&&(Wr(0),Da(1),Gr()),2&e){const e=na(2);no(1),Ma(" ",e.ldapTest.result," ")}}function HL(e,t){if(1&e&&(Hr(0,"div",16),Fr(1,VL,3,3,"ng-container",17),Fr(2,NL,2,1,"ng-container",17),jr()),2&e){const e=na();no(1),Vr("ngIf",e.loadingTest),no(1),Vr("ngIf",""!==e.ldapTest.result)}}let jL=(()=>{class e{constructor(e,t,n,i,s,o){this.http=e,this.translate=t,this.latinisePipe=n,this.dialog=i,this.notificationService=s,this.alertController=o,this.loadingTest=!1}ngOnInit(){}testLdap(){this.loadingTest=!0,this.ldapTest.result="",this.canValidate?this.http.patch("../rest/configurations/"+this.ldap.id,this.ldap).pipe(Ov(()=>{this.notificationService.success("lang.ldapUpdated")}),FL(()=>this.http.get("../rest/configurations/"+this.ldap.id+"/connection",{params:{login:this.ldapTest.login,password:this.ldapTest.password}})),Ov(e=>{this.ldapTest.result=e.informations,e.connection&&this.notificationService.success("lang.ldapConnectionSucceeded")}),Iv(()=>this.loadingTest=!1),fv(e=>(this.notificationService.handleErrors(e),lb(!1)))).subscribe():this.http.get("../rest/configurations/"+this.ldap.id+"/connection",{params:{login:this.ldapTest.login,password:this.ldapTest.password}}).pipe(Ov(e=>{this.ldapTest.result=e.informations,e.connection&&this.notificationService.success("lang.ldapConnectionSucceeded")}),Iv(()=>this.loadingTest=!1),fv(e=>(this.notificationService.handleErrors(e),lb(!1)))).subscribe()}}return e.\u0275fac=function(t){return new(t||e)(zr(Db),zr(GC),zr(dP),zr(IM),zr(ZC),zr(QA))},e.\u0275cmp=$e({type:e,selectors:[["app-check-connection"]],inputs:{ldapTest:"ldapTest",ldap:"ldap",canValidate:"canValidate"},decls:45,vars:28,consts:[[3,"translucent"],["color","primary"],["slot","start"],[2,"display","contents",3,"ngSubmit"],["adminTestForm","ngForm"],["mainContent",""],["color","secondary","position","floating"],["name","login","required","",3,"ngModel","ngModelChange"],["name","password","required","",3,"ngModel","ngModelChange"],["color","secondary"],["name","uri","readonly","",3,"ngModel","ngModelChange"],["name","pathLogin","readonly","",3,"value"],["class","bash",4,"ngIf"],[1,"ion-no-border"],[1,"ion-justify-content-center"],["type","submit","color","primary",3,"disabled"],[1,"bash"],[4,"ngIf"]],template:function(e,t){if(1&e&&(Hr(0,"ion-header",0),Hr(1,"ion-toolbar",1),Hr(2,"ion-buttons",2),Ur(3,"ion-back-button"),jr(),Hr(4,"ion-title"),Da(5),hc(6,"translate"),jr(),jr(),jr(),Hr(7,"form",3,4),Xr("ngSubmit",function(){return t.testLdap()}),Hr(9,"ion-content",null,5),Hr(11,"ion-item"),Hr(12,"ion-label",6),Da(13),hc(14,"translate"),jr(),Hr(15,"ion-input",7),Xr("ngModelChange",function(e){return t.ldapTest.login=e}),jr(),jr(),Hr(16,"ion-item"),Hr(17,"ion-label",6),Da(18),hc(19,"translate"),jr(),Hr(20,"ion-input",8),Xr("ngModelChange",function(e){return t.ldapTest.password=e}),jr(),jr(),Hr(21,"ion-card"),Hr(22,"ion-card-header"),Hr(23,"ion-card-subtitle",9),Da(24),hc(25,"translate"),jr(),jr(),Hr(26,"ion-card-content"),Hr(27,"ion-item"),Hr(28,"ion-label",1),Da(29),hc(30,"translate"),jr(),Hr(31,"ion-input",10),Xr("ngModelChange",function(e){return t.ldap.value.uri=e}),jr(),jr(),Hr(32,"ion-item"),Hr(33,"ion-label",1),Da(34),hc(35,"translate"),jr(),Ur(36,"ion-input",11),jr(),Fr(37,HL,3,2,"div",12),jr(),jr(),jr(),Hr(38,"ion-footer",13),Hr(39,"ion-toolbar"),Hr(40,"ion-buttons",14),Hr(41,"ion-button",15),Hr(42,"ion-label"),Da(43),hc(44,"translate"),jr(),jr(),jr(),jr(),jr(),jr()),2&e){const e=Br(8);Vr("translucent",!0),no(5),Oa(pc(6,14,"lang.connectionTest")),no(8),Ma("",pc(14,16,"lang.login")," *"),no(2),Vr("ngModel",t.ldapTest.login),no(3),Ma("",pc(19,18,"lang.password")," *"),no(2),Vr("ngModel",t.ldapTest.password),no(4),Ma("",pc(25,20,"lang.ldapInformations")," :"),no(5),Ma("",pc(30,22,"lang.uri")," :"),no(2),Vr("ngModel",t.ldap.value.uri),no(3),Ma("",pc(35,24,"lang.login")," :"),no(2),Vr("value",t.ldap.value.prefix?t.ldap.value.prefix+"\\"+t.ldapTest.login+t.ldap.value.suffix:t.ldapTest.login+t.ldap.value.suffix),no(1),Vr("ngIf",""!==t.ldapTest.result||t.loadingTest),no(4),Vr("disabled",!e.form.valid||t.loadingTest),no(2),Oa(pc(44,26,"lang.connectionTest"))}},directives:[Vx,vA,Cx,_x,HA,mA,Lm,am,Mm,Tx,Gx,Zx,Wx,ax,Jm,rm,Rm,Sx,Px,Ex,kx,Wu,Bx,Ax],pipes:[$C],styles:[".bash[_ngcontent-%COMP%]{background:#34495e;height:310px;border-radius:5px;top:40px;display:absolute;color:#fff;padding:10px;margin:10px}"]}),e})();function UL(e,t){if(1&e){const e=qr();Hr(0,"ion-button",18),Xr("click",function(){return Lt(e),na().checkConnection()}),Hr(1,"ion-label",15),Da(2),hc(3,"translate"),jr(),jr()}2&e&&(no(2),Oa(pc(3,1,"lang.connectionTest")))}function WL(e,t){if(1&e){const e=qr();Hr(0,"ion-button",19),Xr("click",function(){return Lt(e),na().delete()}),Hr(1,"ion-label",15),Da(2),hc(3,"translate"),jr(),jr()}if(2&e){const e=na();Vr("disabled","ldap"===e.authService.authMode&&1===e.ldap.count),no(2),Oa(pc(3,2,"lang.delete"))}}let GL=(()=>{class e{constructor(e,t,n,i,s,o,r,a,l){this.http=e,this.translate=t,this.route=n,this.router=i,this.signaturesService=s,this.notificationService=o,this.dialog=r,this.authService=a,this.modalController=l,this.creationMode=!0,this.loading=!0,this.loadingTest=!1,this.ldapTest={login:"",password:"",result:""},this.ldap={id:0,label:"",identifier:"ldapServer",value:{uri:"",ssl:!1,prefix:"",suffix:"",baseDN:""}},this.title=""}ngOnInit(){this.ldapTest.login=this.authService.user.login,this.route.params.subscribe(e=>{void 0===e.id?(this.creationMode=!0,this.title=this.translate.instant("lang.ldapCreation"),this.loading=!1):(this.creationMode=!1,this.http.get("../rest/configurations/"+e.id).pipe(k(e=>e.configuration),Iv(()=>this.loading=!1)).subscribe({next:e=>{this.ldap=e,this.ldapClone=JSON.parse(JSON.stringify(this.ldap)),this.title=this.ldap.label}}))})}canValidate(){return JSON.stringify(this.ldap)!==JSON.stringify(this.ldapClone)}onSubmit(){this.creationMode?this.createLdap():this.modifyLdap()}modifyLdap(){this.loading=!0,this.http.patch("../rest/configurations/"+this.ldap.id,this.ldap).pipe(Iv(()=>this.loading=!1)).subscribe({next:()=>{this.router.navigate(["/administration/connections/ldaps"]),this.notificationService.success("lang.ldapUpdated")}})}createLdap(){this.loading=!0,this.http.post("../rest/configurations",this.ldap).pipe(Iv(()=>this.loading=!1)).subscribe({next:()=>{this.router.navigate(["/administration/connections/ldaps"]),this.notificationService.success("lang.ldapAdded")}})}delete(){this.dialog.open($R,{autoFocus:!1,data:{mode:"",title:"lang.confirmMsg",msg:""}}).afterClosed().subscribe(e=>{"yes"===e&&(this.loading=!0,this.http.delete("../rest/configurations/"+this.ldap.id).pipe(Iv(()=>this.loading=!1)).subscribe({next:()=>{this.router.navigate(["/administration/connections/ldaps"]),this.notificationService.success("lang.ldapDeleted")}}))})}cancel(){this.router.navigate(["/administration/connections/ldaps"])}checkConnection(e){return t=this,void 0,i=function*(){const e=yield this.modalController.create({component:jL,componentProps:{ldapTest:this.ldapTest,ldap:this.ldap,canValidate:this.canValidate()}});yield e.present()},new((n=void 0)||(n=Promise))(function(e,s){function o(e){try{a(i.next(e))}catch(t){s(t)}}function r(e){try{a(i.throw(e))}catch(t){s(t)}}function a(t){var i;t.done?e(t.value):(i=t.value,i instanceof n?i:new n(function(e){e(i)})).then(o,r)}a((i=i.apply(t,[])).next())});var t,n,i}}return e.\u0275fac=function(t){return new(t||e)(zr(Db),zr(GC),zr(Ny),zr(r_),zr(sS),zr(ZC),zr(IM),zr(rS),zr(JA))},e.\u0275cmp=$e({type:e,selectors:[["app-administration-ldap"]],decls:49,vars:28,consts:[[3,"translucent"],["color","primary"],["slot","start"],["menu","left-menu"],["id","adminForm",2,"display","contents",3,"ngSubmit"],["adminForm","ngForm"],["color","secondary","position","floating"],["name","label","required","",3,"ngModel","ngModelChange"],["name","uri","required","",3,"ngModel","ngModelChange"],["name","baseDN",3,"ngModel","ngModelChange"],["name","prefix",3,"ngModel","ngModelChange"],["name","suffix",3,"ngModel","ngModelChange"],["text-center","","lines","none",2,"position","sticky","bottom","0px","z-index","1"],[2,"display","flex","align-items","center","justify-content","center","width","100%","background","white"],["type","submit","shape","round","size","large","fill","outline","color","primary",3,"disabled"],[2,"font-size","13px"],["type","button","shape","round","size","large","fill","outline","color","medium",3,"click",4,"ngIf"],["type","button","shape","round","size","large","fill","outline","color","danger",3,"disabled","click",4,"ngIf"],["type","button","shape","round","size","large","fill","outline","color","medium",3,"click"],["type","button","shape","round","size","large","fill","outline","color","danger",3,"disabled","click"]],template:function(e,t){if(1&e&&(Hr(0,"ion-header",0),Hr(1,"ion-toolbar",1),Hr(2,"ion-buttons",2),Ur(3,"ion-menu-button",3),Ur(4,"ion-back-button"),jr(),Hr(5,"ion-title"),Da(6),jr(),jr(),jr(),Hr(7,"form",4,5),Xr("ngSubmit",function(){return t.onSubmit()}),Hr(9,"ion-content"),Hr(10,"ion-item"),Hr(11,"ion-label",6),Da(12),hc(13,"translate"),jr(),Hr(14,"ion-input",7),Xr("ngModelChange",function(e){return t.ldap.label=e}),jr(),jr(),Hr(15,"ion-item"),Hr(16,"ion-label",6),Da(17),hc(18,"translate"),jr(),Hr(19,"ion-input",8),Xr("ngModelChange",function(e){return t.ldap.value.uri=e}),jr(),jr(),Hr(20,"ion-item"),Hr(21,"ion-label",6),Da(22),hc(23,"translate"),jr(),Hr(24,"ion-input",9),Xr("ngModelChange",function(e){return t.ldap.value.baseDN=e}),jr(),Hr(25,"ion-note"),Da(26,"ex: dc=maarch,dc=com"),jr(),jr(),Hr(27,"ion-item"),Hr(28,"ion-label",6),Da(29),hc(30,"translate"),jr(),Hr(31,"ion-input",10),Xr("ngModelChange",function(e){return t.ldap.value.prefix=e}),jr(),Hr(32,"ion-note"),Da(33,"ex: MAARCH"),jr(),jr(),Hr(34,"ion-item"),Hr(35,"ion-label",6),Da(36),hc(37,"translate"),jr(),Hr(38,"ion-input",11),Xr("ngModelChange",function(e){return t.ldap.value.suffix=e}),jr(),Hr(39,"ion-note"),Da(40,"ex: @maarch.com"),jr(),jr(),Hr(41,"ion-item",12),Hr(42,"div",13),Hr(43,"ion-button",14),Hr(44,"ion-label",15),Da(45),hc(46,"translate"),jr(),jr(),Fr(47,UL,4,3,"ion-button",16),Fr(48,WL,4,4,"ion-button",17),jr(),jr(),jr(),jr()),2&e){const e=Br(8);Vr("translucent",!0),no(6),Oa(t.title),no(6),Ma("",pc(13,16,"lang.label")," *"),no(2),Vr("ngModel",t.ldap.label),no(3),Ma("",pc(18,18,"lang.uri")," *"),no(2),Vr("ngModel",t.ldap.value.uri),no(3),Oa(pc(23,20,"lang.baseDN")),no(2),Vr("ngModel",t.ldap.value.baseDN),no(5),Oa(pc(30,22,"lang.prefix")),no(2),Vr("ngModel",t.ldap.value.prefix),no(5),Oa(pc(37,24,"lang.suffix")),no(2),Vr("ngModel",t.ldap.value.suffix),no(5),Vr("disabled",!e.form.valid||!t.canValidate()),no(2),Oa(pc(46,26,"lang.validate")),no(2),Vr("ngIf",!t.creationMode),no(1),Vr("ngIf",!t.creationMode)}},directives:[Vx,vA,Cx,Jx,_x,HA,mA,Lm,am,Mm,Tx,Gx,Zx,Wx,ax,Jm,rm,Rm,tA,Ax,Wu],pipes:[$C],styles:[".header[_ngcontent-%COMP%]{background:#135f7f;height:95px;color:#fff;padding-left:10px;font-size:25px}.header[_ngcontent-%COMP%], .header-title[_ngcontent-%COMP%]{display:flex;align-items:center}.header-title[_ngcontent-%COMP%]{flex:1;white-space:pre;overflow:hidden;text-overflow:ellipsis}.header[_ngcontent-%COMP%]   b[_ngcontent-%COMP%]{color:#f99830}.header[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis}.mainView[_ngcontent-%COMP%]{display:flex;flex-direction:column}.container[_ngcontent-%COMP%]{flex:1;overflow:auto}.loader[_ngcontent-%COMP%]{position:absolute;z-index:2;display:flex;background:hsla(0,0%,100%,.8);width:100%;height:100%;justify-content:center;align-items:center;top:0;margin:0;padding:0}.admin-form[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:20px}.actions-form[_ngcontent-%COMP%]{display:flex;justify-content:center}@media (max-width:360px){.actions-form[_ngcontent-%COMP%]{flex-direction:column}}.actions-form[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin:10px;width:150px}@media (max-width:360px){.actions-form[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{width:100%}}.noResult[_ngcontent-%COMP%]{padding:10px;text-align:center;opacity:.5}.emptyTable[_ngcontent-%COMP%]{height:auto}.addButton[_ngcontent-%COMP%]{padding:10px;display:flex;justify-content:flex-end}",""]}),e})();function $L(e,t){if(1&e&&(Hr(0,"ion-item"),Ur(1,"ion-icon",13),Hr(2,"ion-label",14),Da(3),hc(4,"translate"),jr(),jr()),2&e){const e=na();no(1),Vr("color","close-outline"===e.emailSendResult.icon?"danger":"primary")("name",e.emailSendResult.icon),no(1),Vr("color","close-outline"===e.emailSendResult.icon?"danger":"primary"),no(1),Oa(pc(4,4,e.emailSendResult.msg))}}function qL(e,t){if(1&e&&(Hr(0,"div",15),Da(1),jr()),2&e){const e=na();no(1),Ma(" ",e.emailSendResult.debug," ")}}let YL=(()=>{class e{constructor(e,t,n,i,s){this.http=e,this.translate=t,this.dialog=n,this.notificationService=i,this.alertController=s,this.emailSendLoading=!1,this.emailSendResult={icon:"",msg:"",debug:"",error:!1}}ngOnInit(){}testEmailSend(){this.emailSendResult={icon:"paper-plane-outline",msg:"lang.emailSendInProgress",debug:"",error:!1};const e={sender:this.sendmailFrom,recipients:[this.recipientTest],subject:"["+this.translate.instant("lang.doNotReply")+"] "+this.translate.instant("lang.emailSendTest"),status:"EXPRESS",body:this.translate.instant("lang.emailSendTest"),isHtml:!1};this.emailSendLoading=!0,this.http.post("../rest/emails",e).pipe(Ov(e=>{this.emailSendResult=e.isSent?{icon:"checkmark-outline",msg:"lang.emailSendSuccess",debug:"",error:!1}:{icon:"close-outline",msg:"lang.emailSendFailed",debug:e.informations,error:!0}}),Iv(()=>this.emailSendLoading=!1)).subscribe()}}return e.\u0275fac=function(t){return new(t||e)(zr(Db),zr(GC),zr(IM),zr(ZC),zr(QA))},e.\u0275cmp=$e({type:e,selectors:[["app-check-email-connection"]],inputs:{profileInfo:"profileInfo",sendmailFrom:"sendmailFrom",recipientTest:"recipientTest"},decls:25,vars:15,consts:[[3,"translucent"],["color","primary"],["slot","start"],[2,"display","contents",3,"ngSubmit"],["adminTestForm","ngForm"],["mainContent",""],["color","secondary","position","floating"],["name","recipientTest","required","","pattern","(^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\\.[a-zA-Z0-9-.]+$)",3,"ngModel","disabled","ngModelChange"],[4,"ngIf"],["class","bash",4,"ngIf"],[1,"ion-no-border"],[1,"ion-justify-content-center"],["type","submit","color","primary",3,"disabled"],["slot","start",3,"color","name"],[3,"color"],[1,"bash"]],template:function(e,t){if(1&e&&(Hr(0,"ion-header",0),Hr(1,"ion-toolbar",1),Hr(2,"ion-buttons",2),Ur(3,"ion-back-button"),jr(),Hr(4,"ion-title"),Da(5),hc(6,"translate"),jr(),jr(),jr(),Hr(7,"form",3,4),Xr("ngSubmit",function(){return t.testEmailSend()}),Hr(9,"ion-content",null,5),Hr(11,"ion-item"),Hr(12,"ion-label",6),Da(13),hc(14,"translate"),jr(),Hr(15,"ion-input",7),Xr("ngModelChange",function(e){return t.recipientTest=e}),jr(),jr(),Fr(16,$L,5,6,"ion-item",8),Fr(17,qL,2,1,"div",9),jr(),Hr(18,"ion-footer",10),Hr(19,"ion-toolbar"),Hr(20,"ion-buttons",11),Hr(21,"ion-button",12),Hr(22,"ion-label"),Da(23),hc(24,"translate"),jr(),jr(),jr(),jr(),jr(),jr()),2&e){const e=Br(8);Vr("translucent",!0),no(5),Oa(pc(6,9,"lang.emailSendTest")),no(8),Ma("",pc(14,11,"lang.mailTo")," *"),no(2),Vr("ngModel",t.recipientTest)("disabled",t.emailSendLoading),no(1),Vr("ngIf",""!=t.emailSendResult.msg),no(1),Vr("ngIf",t.emailSendResult.error),no(4),Vr("disabled",!e.form.valid||t.emailSendLoading),no(2),Oa(pc(24,13,"lang.connectionTest"))}},directives:[Vx,vA,Cx,_x,HA,mA,Lm,am,Mm,Tx,Gx,Zx,Wx,ax,Jm,ib,rm,Rm,Wu,Bx,Ax,Nx],pipes:[$C],styles:[".bash[_ngcontent-%COMP%]{background:#34495e;height:310px;border-radius:5px;top:40px;display:absolute;color:#fff;padding:10px;margin:10px}"]}),e})();function ZL(e,t){if(1&e&&(Hr(0,"ion-select-option",27),Da(1),hc(2,"translate"),jr()),2&e){const e=t.$implicit;Vr("value",e.id),no(1),Ma("",pc(2,2,e.label)," ")}}function QL(e,t){if(1&e&&(Hr(0,"ion-select-option",27),Da(1),hc(2,"translate"),jr()),2&e){const e=t.$implicit;Vr("value",e.id),no(1),Ma(" ",pc(2,2,e.label)," ")}}function XL(e,t){if(1&e){const e=qr();Hr(0,"form",5,6),Xr("ngSubmit",function(){return Lt(e),na().onSubmit()}),Hr(2,"ion-content"),Hr(3,"ion-item"),Hr(4,"ion-label",7),Da(5),hc(6,"translate"),jr(),Hr(7,"ion-select",8),Xr("ngModelChange",function(t){return Lt(e),na().sendmail.type=t}),Fr(8,ZL,3,4,"ion-select-option",9),jr(),jr(),Hr(9,"ion-grid"),Hr(10,"ion-row"),Hr(11,"ion-col",10),Hr(12,"ion-item"),Hr(13,"ion-label",7),Da(14),hc(15,"translate"),jr(),Hr(16,"ion-select",11),Xr("ngModelChange",function(t){return Lt(e),na().sendmail.secure=t}),Fr(17,QL,3,4,"ion-select-option",9),jr(),jr(),jr(),Hr(18,"ion-col",12),Hr(19,"ion-item"),Hr(20,"ion-label",7),Da(21),hc(22,"translate"),jr(),Hr(23,"ion-input",13),Xr("ngModelChange",function(t){return Lt(e),na().sendmail.host=t}),jr(),jr(),jr(),Hr(24,"ion-col",10),Hr(25,"ion-item"),Hr(26,"ion-label",7),Da(27),hc(28,"translate"),jr(),Hr(29,"ion-input",14),Xr("ngModelChange",function(t){return Lt(e),na().sendmail.port=t}),jr(),jr(),jr(),jr(),jr(),Hr(30,"ion-item"),Hr(31,"ion-toggle",15),Xr("ngModelChange",function(t){return Lt(e),na().sendmail.auth=t})("ngModelChange",function(){return Lt(e),na().cleanAuthInfo()}),jr(),Hr(32,"ion-label"),Da(33),hc(34,"translate"),jr(),jr(),Hr(35,"ion-item"),Hr(36,"ion-label",7),Da(37),hc(38,"translate"),jr(),Hr(39,"ion-input",16),Xr("ngModelChange",function(t){return Lt(e),na().sendmail.user=t}),jr(),jr(),Hr(40,"ion-item",17),Hr(41,"ion-button",18),Xr("click",function(){Lt(e);const t=na();return t.hidePassword=!t.hidePassword}),Ur(42,"ion-icon",19),jr(),Hr(43,"ion-label",7),Da(44),jr(),Hr(45,"ion-input",20),Xr("ngModelChange",function(t){return Lt(e),na().sendmail.password=t}),jr(),jr(),Hr(46,"ion-item"),Hr(47,"ion-label",7),Da(48),hc(49,"translate"),jr(),Hr(50,"ion-input",21),Xr("ngModelChange",function(t){return Lt(e),na().sendmail.from=t}),jr(),jr(),Hr(51,"ion-item",22),Hr(52,"div",23),Hr(53,"ion-button",24),Xr("click",function(){return Lt(e),na().checkConnection()}),Hr(54,"ion-label",25),Da(55),hc(56,"translate"),jr(),jr(),Hr(57,"ion-button",26),Hr(58,"ion-label",25),Da(59),hc(60,"translate"),jr(),jr(),jr(),jr(),jr(),jr()}if(2&e){const e=Br(1),t=na();no(5),Ma("",pc(6,34,"lang.configurationType")," *"),no(2),Vr("ngModel",t.sendmail.type),no(1),Vr("ngForOf",t.smtpTypeList),no(6),Ma("",pc(15,36,"lang.smtpAuth")," * "),no(2),Vr("disabled","smtp"!=t.sendmail.type)("ngModel",t.sendmail.secure)("value",t.sendmail.secure),no(1),Vr("ngForOf",t.smtpSecList),no(4),Ma("",pc(22,38,"lang.host")," *"),no(2),Vr("disabled","smtp"!=t.sendmail.type)("ngModel",t.sendmail.host),no(4),Ma("",pc(28,40,"lang.port")," *"),no(2),Vr("disabled","smtp"!=t.sendmail.type)("ngModel",t.sendmail.port),no(2),Vr("ngModel",t.sendmail.auth)("checked",t.sendmail.auth)("disabled","smtp"!=t.sendmail.type),no(2),Oa(pc(34,42,"lang.enableAuth")),no(4),Ma("",pc(38,44,"lang.id")," *"),no(2),Vr("ngModel",t.sendmail.user)("disabled",!t.sendmail.auth||"smtp"!=t.sendmail.type),no(3),Vr("name",t.hidePassword?"eye-outline":"eye-off-outline"),no(2),Ta("",t.passwordLanguage," ",t.sendmail.passwordAlreadyExists?"":"*",""),no(1),Vr("type",t.hidePassword?"password":"text")("ngModel",t.sendmail.password)("disabled",!t.sendmail.auth||"smtp"!=t.sendmail.type)("required",!t.sendmail.passwordAlreadyExists),no(3),Oa(pc(49,46,"lang.mailFrom")),no(2),Vr("ngModel",t.sendmail.from)("disabled","smtp"!=t.sendmail.type),no(5),Oa(pc(56,48,"lang.connectionTest")),no(2),Vr("disabled",!e.form.valid||!t.canValidate()),no(2),Oa(pc(60,50,"lang.validate"))}}let KL=(()=>{class e{constructor(e,t,n,i,s,o,r,a){this.http=e,this.translate=t,this.route=n,this.signaturesService=i,this.notificationService=s,this.dialog=o,this.authService=r,this.modalController=a,this.loading=!0,this.title="",this.passwordLanguage="",this.hidePassword=!0,this.smtpTypeList=[{id:"smtp",label:"lang.smtpclient"},{id:"sendmail",label:"lang.smtprelay"},{id:"qmail",label:"lang.qmail"},{id:"mail",label:"lang.phpmail"}],this.smtpSecList=[{id:"",label:"lang.none"},{id:"ssl",label:"ssl"},{id:"tls",label:"tls"}]}ngOnInit(){this.route.params.subscribe(()=>{this.http.get("../rest/configurations/1").pipe(k(e=>e.configuration),Iv(()=>this.loading=!1)).subscribe({next:e=>{this.sendmail=e.value,this.sendmailLabel=e.label,this.sendmailClone=JSON.parse(JSON.stringify(this.sendmail)),this.title=this.translate.instant("lang.manage_email_configuration"),this.passwordLanguage=this.translate.instant(this.sendmail.passwordAlreadyExists?"lang.passwordModification":"lang.password")}})})}canValidate(){return JSON.stringify(this.sendmail)!==JSON.stringify(this.sendmailClone)}onSubmit(){this.loading=!0,this.http.patch("../rest/configurations/1",{value:this.sendmail,label:this.sendmailLabel}).pipe(Iv(()=>this.loading=!1)).subscribe({next:()=>{this.sendmailClone=JSON.parse(JSON.stringify(this.sendmail)),this.notificationService.success("lang.emailConfigurationUpdated")}})}cleanAuthInfo(){this.sendmail.passwordAlreadyExists=!1,this.sendmail.user="",this.sendmail.password=""}checkConnection(e){return t=this,void 0,i=function*(){const e=JSON.parse(JSON.stringify(this.authService.user));JSON.stringify(this.sendmailClone)!==JSON.stringify(this.sendmail)&&this.onSubmit();const t=yield this.modalController.create({component:YL,componentProps:{sendmailFrom:this.sendmail.from,recipientTest:e.email}});yield t.present()},new((n=void 0)||(n=Promise))(function(e,s){function o(e){try{a(i.next(e))}catch(t){s(t)}}function r(e){try{a(i.throw(e))}catch(t){s(t)}}function a(t){var i;t.done?e(t.value):(i=t.value,i instanceof n?i:new n(function(e){e(i)})).then(o,r)}a((i=i.apply(t,[])).next())});var t,n,i}}return e.\u0275fac=function(t){return new(t||e)(zr(Db),zr(GC),zr(Ny),zr(sS),zr(ZC),zr(IM),zr(rS),zr(JA))},e.\u0275cmp=$e({type:e,selectors:[["app-administration-sendmail"]],decls:8,vars:3,consts:[[3,"translucent"],["color","primary"],["slot","start"],["menu","left-menu"],["style","display: contents;","id","sendmailForm",3,"ngSubmit",4,"ngIf"],["id","sendmailForm",2,"display","contents",3,"ngSubmit"],["sendmailForm","ngForm"],["color","secondary","position","floating"],["name","smtpType","interface","popover","required","",3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],["size","2"],["name","SMTPSecure","interface","popover","required","",3,"disabled","ngModel","value","ngModelChange"],["size","8"],["name","host","required","",3,"disabled","ngModel","ngModelChange"],["type","number","name","port","required","",3,"disabled","ngModel","ngModelChange"],["name","SMTPAuth",3,"ngModel","checked","disabled","ngModelChange"],["name","user","required","",3,"ngModel","disabled","ngModelChange"],[2,"align-items","center"],["slot","end","fill","clear","color","primary",3,"click"],["color","primary",3,"name"],["name","password",3,"type","ngModel","disabled","required","ngModelChange"],["name","mailFrom","pattern","(^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\\.[a-zA-Z0-9-.]+$)",3,"ngModel","disabled","ngModelChange"],["text-center","","lines","none",2,"position","sticky","bottom","0px","z-index","1"],[2,"display","flex","align-items","center","justify-content","center","width","100%","background","white"],["type","button","shape","round","size","large","fill","outline","color","medium",3,"click"],[2,"font-size","13px"],["type","submit","shape","round","size","large","fill","outline","color","primary",3,"disabled"],[3,"value"]],template:function(e,t){1&e&&(Hr(0,"ion-header",0),Hr(1,"ion-toolbar",1),Hr(2,"ion-buttons",2),Ur(3,"ion-menu-button",3),Ur(4,"ion-back-button"),jr(),Hr(5,"ion-title"),Da(6),jr(),jr(),jr(),Fr(7,XL,61,52,"form",4)),2&e&&(Vr("translucent",!0),no(6),Oa(t.title),no(1),Vr("ngIf",!t.loading))},directives:[Vx,vA,Cx,Jx,_x,HA,mA,Wu,Lm,am,Mm,Tx,Gx,Zx,uA,ox,Jm,rm,Rm,ju,zx,aA,Mx,Wx,ax,tx,bA,J_,Ax,Nx,ib,hA],pipes:[$C],styles:[".testSendTo[_ngcontent-%COMP%]{width:95%;margin-top:10px;margin-left:10px}.bash[_ngcontent-%COMP%]{background:#34495e;height:310px;border-radius:5px;top:40px;display:absolute;color:#fff;padding:10px;margin:10px;word-wrap:break-word}.panel-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;position:relative;height:100%;overflow:hidden}.panel-header[_ngcontent-%COMP%]{box-shadow:0 0 10px 0 #656565;color:#fff;background:#135f7f;height:95px;display:flex;justify-content:center;position:relative;font-size:25px;align-items:center}.panel-content[_ngcontent-%COMP%]{flex:1;overflow:auto}.cancel[_ngcontent-%COMP%]{position:absolute;top:10px;left:0;height:65px;width:65px;font-size:35px;color:#fff}.auth-container[_ngcontent-%COMP%]{display:flex}.auth-container[_ngcontent-%COMP%]   .auth-1[_ngcontent-%COMP%]{width:100px;padding-right:10px}.auth-container[_ngcontent-%COMP%]   .auth-2[_ngcontent-%COMP%]{flex:1}.auth-container[_ngcontent-%COMP%]   .auth-3[_ngcontent-%COMP%]{width:50px;padding-left:10px}@media (max-width:360px){.auth-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}.auth-container[_ngcontent-%COMP%]   .auth-1[_ngcontent-%COMP%]{width:100%;padding-right:0}.auth-container[_ngcontent-%COMP%]   .auth-2[_ngcontent-%COMP%]{width:100%;flex:1}.auth-container[_ngcontent-%COMP%]   .auth-3[_ngcontent-%COMP%]{width:100%;padding-left:0}}"]}),e})();function JL(e,t,n){this.x=e,this.y=t,this.time=n||(new Date).getTime()}function eF(e,t,n,i){this.startPoint=e,this.control1=t,this.control2=n,this.endPoint=i}function tF(e,t){var n=this,i=t||{};this.velocityFilterWeight=i.velocityFilterWeight||.7,this.minWidth=i.minWidth||.5,this.maxWidth=i.maxWidth||2.5,this.throttle="throttle"in i?i.throttle:16,this.minDistance="minDistance"in i?i.minDistance:5,this._strokeMoveUpdate=this.throttle?function(e,t,n){var i,s,o,r=null,a=0;n||(n={});var l=function(){a=!1===n.leading?0:Date.now(),r=null,o=e.apply(i,s),r||(i=s=null)};return function(){var c=Date.now();a||!1!==n.leading||(a=c);var d=t-(c-a);return i=this,s=arguments,d<=0||d>t?(r&&(clearTimeout(r),r=null),a=c,o=e.apply(i,s),r||(i=s=null)):r||!1===n.trailing||(r=setTimeout(l,d)),o}}(tF.prototype._strokeUpdate,this.throttle):tF.prototype._strokeUpdate,this.dotSize=i.dotSize||function(){return(this.minWidth+this.maxWidth)/2},this.penColor=i.penColor||"black",this.backgroundColor=i.backgroundColor||"rgba(0,0,0,0)",this.onBegin=i.onBegin,this.onEnd=i.onEnd,this._canvas=e,this._ctx=e.getContext("2d"),this.clear(),this._handleMouseDown=function(e){1===e.which&&(n._mouseButtonDown=!0,n._strokeBegin(e))},this._handleMouseMove=function(e){n._mouseButtonDown&&n._strokeMoveUpdate(e)},this._handleMouseUp=function(e){1===e.which&&n._mouseButtonDown&&(n._mouseButtonDown=!1,n._strokeEnd(e))},this._handleTouchStart=function(e){1===e.targetTouches.length&&n._strokeBegin(e.changedTouches[0])},this._handleTouchMove=function(e){e.preventDefault(),n._strokeMoveUpdate(e.targetTouches[0])},this._handleTouchEnd=function(e){e.target===n._canvas&&(e.preventDefault(),n._strokeEnd(e))},this.on()}JL.prototype.velocityFrom=function(e){return this.time!==e.time?this.distanceTo(e)/(this.time-e.time):1},JL.prototype.distanceTo=function(e){return Math.sqrt(Math.pow(this.x-e.x,2)+Math.pow(this.y-e.y,2))},JL.prototype.equals=function(e){return this.x===e.x&&this.y===e.y&&this.time===e.time},eF.prototype.length=function(){for(var e=0,t=void 0,n=void 0,i=0;i<=10;i+=1){var s=i/10,o=this._point(s,this.startPoint.x,this.control1.x,this.control2.x,this.endPoint.x),r=this._point(s,this.startPoint.y,this.control1.y,this.control2.y,this.endPoint.y);if(i>0){var a=o-t,l=r-n;e+=Math.sqrt(a*a+l*l)}t=o,n=r}return e},eF.prototype._point=function(e,t,n,i,s){return t*(1-e)*(1-e)*(1-e)+3*n*(1-e)*(1-e)*e+3*i*(1-e)*e*e+s*e*e*e},tF.prototype.clear=function(){var e=this._ctx,t=this._canvas;e.fillStyle=this.backgroundColor,e.clearRect(0,0,t.width,t.height),e.fillRect(0,0,t.width,t.height),this._data=[],this._reset(),this._isEmpty=!0},tF.prototype.fromDataURL=function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=new Image,s=n.ratio||window.devicePixelRatio||1,o=n.width||this._canvas.width/s,r=n.height||this._canvas.height/s;this._reset(),i.src=e,i.onload=function(){t._ctx.drawImage(i,0,0,o,r)},this._isEmpty=!1},tF.prototype.toDataURL=function(e){var t;switch(e){case"image/svg+xml":return this._toSVG();default:for(var n=arguments.length,i=Array(n>1?n-1:0),s=1;s<n;s++)i[s-1]=arguments[s];return(t=this._canvas).toDataURL.apply(t,[e].concat(i))}},tF.prototype.on=function(){this._handleMouseEvents(),this._handleTouchEvents()},tF.prototype.off=function(){this._canvas.removeEventListener("mousedown",this._handleMouseDown),this._canvas.removeEventListener("mousemove",this._handleMouseMove),document.removeEventListener("mouseup",this._handleMouseUp),this._canvas.removeEventListener("touchstart",this._handleTouchStart),this._canvas.removeEventListener("touchmove",this._handleTouchMove),this._canvas.removeEventListener("touchend",this._handleTouchEnd)},tF.prototype.isEmpty=function(){return this._isEmpty},tF.prototype._strokeBegin=function(e){this._data.push([]),this._reset(),this._strokeUpdate(e),"function"==typeof this.onBegin&&this.onBegin(e)},tF.prototype._strokeUpdate=function(e){var t=this._createPoint(e.clientX,e.clientY),n=this._data[this._data.length-1],i=n&&n[n.length-1],s=i&&t.distanceTo(i)<this.minDistance;if(!i||!s){var o=this._addPoint(t),r=o.curve,a=o.widths;r&&a&&this._drawCurve(r,a.start,a.end),this._data[this._data.length-1].push({x:t.x,y:t.y,time:t.time,color:this.penColor})}},tF.prototype._strokeEnd=function(e){var t=this.points[0];if(!(this.points.length>2)&&t&&this._drawDot(t),t){var n=this._data[this._data.length-1];t.equals(n[n.length-1])||n.push({x:t.x,y:t.y,time:t.time,color:this.penColor})}"function"==typeof this.onEnd&&this.onEnd(e)},tF.prototype._handleMouseEvents=function(){this._mouseButtonDown=!1,this._canvas.addEventListener("mousedown",this._handleMouseDown),this._canvas.addEventListener("mousemove",this._handleMouseMove),document.addEventListener("mouseup",this._handleMouseUp)},tF.prototype._handleTouchEvents=function(){this._canvas.style.msTouchAction="none",this._canvas.style.touchAction="none",this._canvas.addEventListener("touchstart",this._handleTouchStart),this._canvas.addEventListener("touchmove",this._handleTouchMove),this._canvas.addEventListener("touchend",this._handleTouchEnd)},tF.prototype._reset=function(){this.points=[],this._lastVelocity=0,this._lastWidth=(this.minWidth+this.maxWidth)/2,this._ctx.fillStyle=this.penColor},tF.prototype._createPoint=function(e,t,n){var i=this._canvas.getBoundingClientRect();return new JL(e-i.left,t-i.top,n||(new Date).getTime())},tF.prototype._addPoint=function(e){var t=this.points,n=void 0;if(t.push(e),t.length>2){3===t.length&&t.unshift(t[0]);var i=(n=this._calculateCurveControlPoints(t[0],t[1],t[2])).c2;n=this._calculateCurveControlPoints(t[1],t[2],t[3]);var s=new eF(t[1],i,n.c1,t[2]),o=this._calculateCurveWidths(s);return t.shift(),{curve:s,widths:o}}return{}},tF.prototype._calculateCurveControlPoints=function(e,t,n){var i=e.x-t.x,s=e.y-t.y,o=t.x-n.x,r=t.y-n.y,a=(e.x+t.x)/2,l=(e.y+t.y)/2,c=(t.x+n.x)/2,d=(t.y+n.y)/2,u=Math.sqrt(i*i+s*s),h=Math.sqrt(o*o+r*r),p=h/(u+h),g=t.x-(c+(a-c)*p),f=t.y-(d+(l-d)*p);return{c1:new JL(a+g,l+f),c2:new JL(c+g,d+f)}},tF.prototype._calculateCurveWidths=function(e){var t={start:null,end:null},n=this.velocityFilterWeight*e.endPoint.velocityFrom(e.startPoint)+(1-this.velocityFilterWeight)*this._lastVelocity,i=this._strokeWidth(n);return t.start=this._lastWidth,t.end=i,this._lastVelocity=n,this._lastWidth=i,t},tF.prototype._strokeWidth=function(e){return Math.max(this.maxWidth/(e+1),this.minWidth)},tF.prototype._drawPoint=function(e,t,n){var i=this._ctx;i.moveTo(e,t),i.arc(e,t,n,0,2*Math.PI,!1),this._isEmpty=!1},tF.prototype._drawCurve=function(e,t,n){var i=this._ctx,s=n-t,o=Math.floor(e.length());i.beginPath();for(var r=0;r<o;r+=1){var a=r/o,l=a*a,c=l*a,d=1-a,u=d*d,h=u*d,p=h*e.startPoint.x;p+=3*u*a*e.control1.x,p+=3*d*l*e.control2.x;var g=h*e.startPoint.y;g+=3*u*a*e.control1.y,g+=3*d*l*e.control2.y,this._drawPoint(p+=c*e.endPoint.x,g+=c*e.endPoint.y,t+c*s)}i.closePath(),i.fill()},tF.prototype._drawDot=function(e){var t=this._ctx,n="function"==typeof this.dotSize?this.dotSize():this.dotSize;t.beginPath(),this._drawPoint(e.x,e.y,n),t.closePath(),t.fill()},tF.prototype._fromData=function(e,t,n){for(var i=0;i<e.length;i+=1){var s=e[i];if(s.length>1)for(var o=0;o<s.length;o+=1){var r=s[o],a=new JL(r.x,r.y,r.time),l=r.color;if(0===o)this.penColor=l,this._reset(),this._addPoint(a);else if(o!==s.length-1){var c=this._addPoint(a),d=c.curve,u=c.widths;d&&u&&t(d,u,l)}}else this._reset(),n(s[0])}},tF.prototype._toSVG=function(){var e=this,t=this._data,n=this._canvas,i=Math.max(window.devicePixelRatio||1,1),s=n.width/i,o=n.height/i,r=document.createElementNS("http://www.w3.org/2000/svg","svg");r.setAttributeNS(null,"width",n.width),r.setAttributeNS(null,"height",n.height),this._fromData(t,function(e,t,n){var i=document.createElement("path");if(!(isNaN(e.control1.x)||isNaN(e.control1.y)||isNaN(e.control2.x)||isNaN(e.control2.y))){var s="M "+e.startPoint.x.toFixed(3)+","+e.startPoint.y.toFixed(3)+" C "+e.control1.x.toFixed(3)+","+e.control1.y.toFixed(3)+" "+e.control2.x.toFixed(3)+","+e.control2.y.toFixed(3)+" "+e.endPoint.x.toFixed(3)+","+e.endPoint.y.toFixed(3);i.setAttribute("d",s),i.setAttribute("stroke-width",(2.25*t.end).toFixed(3)),i.setAttribute("stroke",n),i.setAttribute("fill","none"),i.setAttribute("stroke-linecap","round"),r.appendChild(i)}},function(t){var n=document.createElement("circle"),i="function"==typeof e.dotSize?e.dotSize():e.dotSize;n.setAttribute("r",i),n.setAttribute("cx",t.x),n.setAttribute("cy",t.y),n.setAttribute("fill",t.color),r.appendChild(n)});var a='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 '+s+" "+o+'" width="'+s+'" height="'+o+'">',l=r.innerHTML;if(void 0===l){var c=document.createElement("dummy"),d=r.childNodes;c.innerHTML="";for(var u=0;u<d.length;u+=1)c.appendChild(d[u].cloneNode(!0));l=c.innerHTML}return"data:image/svg+xml;base64,"+btoa(a+l+"</svg>")},tF.prototype.fromData=function(e){var t=this;this.clear(),this._fromData(e,function(e,n){return t._drawCurve(e,n.start,n.end)},function(e){return t._drawDot(e)}),this._data=e},tF.prototype.toData=function(){return this._data};var nF=tF;let iF=(()=>{class e{constructor(e){this.elementRef=e,this.options=this.options||{},this.onBeginEvent=new yc,this.onEndEvent=new yc}ngAfterContentInit(){const e=this.elementRef.nativeElement.querySelector("canvas");this.options.canvasHeight&&(e.height=this.options.canvasHeight),this.options.canvasWidth&&(e.width=this.options.canvasWidth),this.signaturePad=new nF(e,this.options),this.signaturePad.onBegin=this.onBegin.bind(this),this.signaturePad.onEnd=this.onEnd.bind(this)}ngOnDestroy(){const e=this.elementRef.nativeElement.querySelector("canvas");e.width=0,e.height=0}resizeCanvas(){const e=Math.max(window.devicePixelRatio||1,1),t=this.signaturePad.canvas;t.width=t.offsetWidth*e,t.height=t.offsetHeight*e,t.getContext("2d").scale(e,e),this.signaturePad.clear()}toData(){return this.signaturePad?this.signaturePad.toData():[]}fromData(e){this.signaturePad.fromData(e)}toDataURL(e,t){return this.signaturePad.toDataURL(e,t)}fromDataURL(e,t={}){!t.hasOwnProperty("height")&&this.options.canvasHeight&&(t.height=this.options.canvasHeight),!t.hasOwnProperty("width")&&this.options.canvasWidth&&(t.width=this.options.canvasWidth),this.signaturePad.fromDataURL(e,t)}clear(){this.signaturePad.clear()}isEmpty(){return this.signaturePad.isEmpty()}off(){this.signaturePad.off()}on(){this.signaturePad.on()}set(e,t){switch(e){case"canvasHeight":this.signaturePad.canvas.height=t;break;case"canvasWidth":this.signaturePad.canvas.width=t;break;default:this.signaturePad[e]=t}}onBegin(){this.onBeginEvent.emit(!0)}onEnd(){this.onEndEvent.emit(!0)}queryPad(){return this.signaturePad}}return e.\u0275fac=function(t){return new(t||e)(zr(rl))},e.\u0275cmp=$e({type:e,selectors:[["signature-pad"]],inputs:{options:"options"},outputs:{onBeginEvent:"onBeginEvent",onEndEvent:"onEndEvent"},decls:1,vars:0,template:function(e,t){1&e&&Ur(0,"canvas")},encapsulation:2}),e})(),sF=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=fe({imports:[[]]}),e})();const oF=["signaturePad"],rF=function(e,t){return{"border-color":e,"background-color":t}};function aF(e,t){if(1&e){const e=qr();Wr(0,20),Hr(1,"input",21),Xr("change",function(){Lt(e);const n=t.$implicit;return na().onColorChange(n)}),jr(),Gr()}if(2&e){const e=t.$implicit,n=na();no(1),Vr("checked",0===n.idx)("value",e.id)("ngStyle",lc(3,rF,e.id,e.id))}}let lF=(()=>{class e{constructor(e,t,n,i,s,o,r){this.translate=e,this.http=t,this.signaturesService=n,this.notificationService=i,this.authService=s,this.localStorage=o,this.modalController=r,this.reloaded=new yc,this.penColors=[{id:"black"},{id:"#1a75ff"},{id:"#FF0000"}],this.disableState=!1,this.signaturePadOptions={minWidth:1,maxWidth:2.5,backgroundColor:"rgba(255, 255, 255, 0)",canvasWidth:600,canvasHeight:400}}ngAfterViewInit(){this.localStorage.get("signature")}onColorChange(e){this.selectedColor=Object.assign({},this.selectedColor,e),this.signaturePad.set("penColor",this.selectedColor.id)}onDotChange(e){this.signaturePad.set("minWidth",parseFloat(e)),this.signaturePad.set("maxWidth",parseFloat(e)+2)}drawComplete(){this.localStorage.save("signature",JSON.stringify(this.signaturePad.toData())),this.haveSigned=!0}drawClear(){this.signaturePad.clear(),this.haveSigned=!1}closePad(){this.modalController.dismiss("cancel")}saveSignature(){this.disableState=!0,this.haveSigned=!0;const e=this.signaturePad.toDataURL("image/png").replace("data:image/png;base64,","");this.localStorage.save("signature",JSON.stringify(e));const t={id:0,encodedSignature:e,format:"png"};this.http.post("../rest/users/"+this.authService.user.id+"/signatures",t).pipe(Iv(()=>{this.disableState=!1})).subscribe(e=>{t.id=e.signatureId,this.signaturesService.signaturesList.unshift({id:t.id,encodedSignature:t.encodedSignature}),this.modalController.dismiss("reload"),this.notificationService.success("lang.signatureRegistered")})}}return e.\u0275fac=function(t){return new(t||e)(zr(GC),zr(Db),zr(sS),zr(ZC),zr(rS),zr(oS),zr(JA))},e.\u0275cmp=$e({type:e,selectors:[["app-pad"]],viewQuery:function(e,t){if(1&e&&Tc(oF,1),2&e){let e;Mc(e=Rc())&&(t.signaturePad=e.first)}},outputs:{reloaded:"reloaded"},decls:34,vars:16,consts:[[3,"translucent"],["color","primary"],["slot","end"],[3,"click"],["slot","icon-only","name","close-outline"],["color","light",1,"pad"],[1,"pad-actions"],[1,"pad-actions-boxed"],["let","","idx","index",4,"ngFor","ngForOf"],[1,"btn",3,"click"],["type","range","name","dot","min","1","max","10","step","1","value","1",1,"range",3,"input"],["padContent",""],[1,"pad"],[1,"pad-draw"],[1,"padContent",3,"options","onEndEvent"],["signaturePad",""],[1,"draw"],[1,"footer-buttons"],["color","danger",3,"click"],["color","success",3,"click"],["let","","idx","index"],["type","radio","name","colors",1,"radio",3,"checked","value","ngStyle","change"]],template:function(e,t){1&e&&(Hr(0,"ion-header",0),Hr(1,"ion-toolbar",1),Hr(2,"ion-title"),Da(3),hc(4,"translate"),jr(),Hr(5,"ion-buttons",2),Hr(6,"ion-button",3),Xr("click",function(){return t.closePad()}),Ur(7,"ion-icon",4),jr(),jr(),jr(),jr(),Hr(8,"ion-header",0),Hr(9,"ion-toolbar",5),Hr(10,"section",6),Hr(11,"div",7),Fr(12,aF,2,6,"ng-container",8),jr(),Hr(13,"button",9),Xr("click",function(){return t.drawClear()}),Da(14),hc(15,"translate"),jr(),Hr(16,"div",7),Hr(17,"input",10),Xr("input",function(e){return t.onDotChange(e.target.value)}),jr(),jr(),jr(),jr(),jr(),Hr(18,"ion-content",null,11),Hr(20,"article",12),Hr(21,"section",13),Hr(22,"signature-pad",14,15),Xr("onEndEvent",function(){return t.drawComplete()}),jr(),jr(),Ur(24,"div",16),jr(),jr(),Hr(25,"ion-footer",17),Hr(26,"ion-button",18),Xr("click",function(){return t.closePad()}),Hr(27,"ion-label"),Da(28),hc(29,"translate"),jr(),jr(),Hr(30,"ion-button",19),Xr("click",function(){return t.saveSignature()}),Hr(31,"ion-label"),Da(32),hc(33,"translate"),jr(),jr(),jr()),2&e&&(Vr("translucent",!0),no(3),Oa(pc(4,8,"lang.createNewSignature")),no(5),Vr("translucent",!0),no(4),Vr("ngForOf",t.penColors),no(2),Oa(pc(15,10,"lang.erase")),no(8),Vr("options",t.signaturePadOptions),no(6),Oa(pc(29,12,"lang.cancel")),no(4),Oa(pc(33,14,"lang.save")))},directives:[Vx,vA,mA,Cx,Ax,Nx,ju,Tx,iF,Bx,Zx,Xu],pipes:[$C],styles:[".pad-actions[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-evenly;padding:10px 0}.pad-actions-boxed[_ngcontent-%COMP%]{border-radius:60px;height:60px;background:#f1f4f4;padding:0 20px}.pad-actions-boxed[_ngcontent-%COMP%], .pad-draw[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center}.pad-draw[_ngcontent-%COMP%]{background:#fff}.pad[_ngcontent-%COMP%]   .radio[_ngcontent-%COMP%]{-webkit-appearance:none;-moz-appearance:none;appearance:none;position:relative;margin:5px;width:30px;height:30px;border-radius:30px;border-width:none;border-style:solid;outline:none;cursor:pointer;transition:all .2s}.pad[_ngcontent-%COMP%]   .radio[_ngcontent-%COMP%]:checked, .pad[_ngcontent-%COMP%]   .radio[_ngcontent-%COMP%]:hover{transform:scale(1.5)}.padContent[_ngcontent-%COMP%]{border:1px dashed hsla(0,0%,59.2%,.55)}.footer-buttons[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(2,1fr);padding:10px}.footer-buttons[_ngcontent-%COMP%]   ion-button[_ngcontent-%COMP%]{margin:auto;width:150px}"]}),e})();const cF=["slides"];function dF(e,t){if(1&e&&(Hr(0,"small",9),Da(1),hc(2,"translate"),jr()),2&e){const e=na();no(1),Ta("",e.currentWorflow.signaturePositions.length," ",pc(2,2,"lang.prePositionings"),"")}}function uF(e,t){1&e&&(Hr(0,"ion-label",36),Da(1),hc(2,"translate"),jr()),2&e&&(no(1),Oa(pc(2,1,"lang.substitutedSignature")))}function hF(e,t){if(1&e){const e=qr();Hr(0,"ion-card",27),Hr(1,"img",28),Xr("click",function(){Lt(e);const n=t.$implicit;return na(4).selectSignature(n)}),jr(),Hr(2,"ion-toolbar",29),Fr(3,uF,3,3,"ion-label",30),Hr(4,"ion-buttons",31),Hr(5,"ion-button",32),Xr("click",function(){Lt(e);const n=t.$implicit;return na(4).selectSignature(n)}),hc(6,"translate"),Ur(7,"ion-icon",33),jr(),jr(),Hr(8,"ion-buttons",3),Hr(9,"ion-button",34),Xr("click",function(){Lt(e);const n=t.$implicit;return na(4).removeSignature(n)}),hc(10,"translate"),Ur(11,"ion-icon",35),jr(),jr(),jr(),jr()}if(2&e){const e=t.$implicit,n=t.index,i=na(4);no(1),aa("id","imgSign_",n,""),Vr("src",i.sanitization.bypassSecurityTrustUrl("data:image/png;base64,"+e.encodedSignature),os),no(2),Vr("ngIf",e.substituted),no(2),Vr("title",pc(6,5,"lang.selectSignature")),no(4),Vr("title",pc(10,7,"lang.removeSignature"))}}function pF(e,t){if(1&e&&(Hr(0,"ion-slide",24),Hr(1,"div",25),Fr(2,hF,12,9,"ion-card",26),jr(),jr()),2&e){const e=t.$implicit;no(2),Vr("ngForOf",e)}}function gF(e,t){if(1&e&&(Hr(0,"ion-slides",21,22),Fr(2,pF,3,1,"ion-slide",23),jr()),2&e){const e=na(2);Vr("options",e.slideOpts),no(2),Vr("ngForOf",e.signaturesList)}}function fF(e,t){if(1&e){const e=qr();Wr(0),Fr(1,gF,3,2,"ion-slides",10),Hr(2,"ion-fab",11),Hr(3,"ion-fab-button",12),Ur(4,"ion-icon",13),jr(),Hr(5,"ion-fab-list",14),Hr(6,"ion-fab-button",15),Xr("click",function(){return Lt(e),na().addNewDate()}),hc(7,"translate"),Ur(8,"ion-icon",16),jr(),Hr(9,"ion-fab-button",15),Xr("click",function(){return Lt(e),Br(16).click()}),hc(10,"translate"),Ur(11,"ion-icon",17),jr(),Hr(12,"ion-fab-button",15),Xr("click",function(){return Lt(e),na().openSignatures()}),hc(13,"translate"),Ur(14,"ion-icon",18),jr(),jr(),jr(),Hr(15,"input",19,20),Xr("change",function(t){return Lt(e),na().handleFileInput(t.target.files)}),jr(),Gr()}if(2&e){const e=na();no(1),Vr("ngIf",!e.loading),no(5),Vr("title",pc(7,4,"lang.addNewDate")),no(3),Vr("title",pc(10,6,"lang.importNewSignature")),no(3),Vr("title",pc(13,8,"lang.createNewSignature"))}}function mF(e,t){1&e&&(Hr(0,"div",37),Ur(1,"ion-icon",38),Hr(2,"div"),Da(3),hc(4,"translate"),jr(),jr()),2&e&&(no(3),Ma(" ",pc(4,1,"lang.certifiedDocumentMsg")," "))}let bF=(()=>{class e{constructor(e,t,n,i,s,o,r,a,l,c){this.translate=e,this.http=t,this.signaturesService=n,this.bottomSheetRef=i,this.sanitization=s,this.notificationService=o,this.authService=r,this.localStorage=a,this.renderer=l,this.modalController=c,this.loading=!0,this.scrolling=!1,this.signPosMode=!1,this.datePosMode=!1,this.title="lang.signatures",this.slideOpts={initialSlide:0,speed:400,direction:"vertical"},this.signaturesList=[],this.inAllPage=!1,this.count=0}dismissModal(){this.modalController.dismiss("cancel")}scroll(e){this.scrolling||(this.scrolling=!0,e.deltaY<0?this.slides.slidePrev():this.slides.slideNext(),setTimeout(()=>{this.scrolling=!1},500))}ngOnInit(){this.initSignatures(),this.signPosMode=this.currentWorflow.signaturePositions.length>0&&this.emptySigns(),this.getImgDimensions(this.content)}initSignatures(){this.signaturesList=[];let e=[],t=0;this.signaturesService.signaturesListSubstituted.concat(this.signaturesService.signaturesList).forEach(n=>{6===t?(this.signaturesList.push(e),e=[n],t=0):(e.push(n),t++)}),e.length>0&&this.signaturesList.push(e)}ionViewDidEnter(){this.loading=!1}openSignatures(){return e=this,void 0,n=function*(){const e=yield this.modalController.create({component:lF,cssClass:"my-custom-class"});yield e.present();const{data:t}=yield e.onWillDismiss();"reload"===t&&this.initSignatures()},new((t=void 0)||(t=Promise))(function(i,s){function o(e){try{a(n.next(e))}catch(t){s(t)}}function r(e){try{a(n.throw(e))}catch(t){s(t)}}function a(e){var n;e.done?i(e.value):(n=e.value,n instanceof t?n:new t(function(e){e(n)})).then(o,r)}a((n=n.apply(e,[])).next())});var e,t,n}mustPrePosSignature(e,t){return!(!this.signPosMode||0===e.length&&0===t.length)}selectSignature(e){const t=document.getElementById("imgSign_"+this.signaturesList[0].indexOf(e).toString());this.signatureWidth=t.naturalWidth;let n=25;this.signatureScaling=void 0!==this.authService.user.preferences.signatureScaling&&this.authService.user.preferences.signatureScaling,n=!1===this.signatureScaling?this.signatureWidth>=this.documentWidth?100:100*this.signatureWidth/this.documentWidth:this.signatureScaling,e.width=n;const i=this.currentWorflow.signaturePositions.filter(e=>e.page===this.signaturesService.currentPage),s=this.currentWorflow.signaturePositions.filter(e=>e.page!==this.signaturesService.currentPage);this.mustPrePosSignature(i,s)?(i.length>0&&(e.positionX=i[0].positionX,e.positionY=i[0].positionY,this.storeSignature(e,this.signaturesService.currentPage)),s.length>0&&s.forEach(t=>{e.positionX=t.positionX,e.positionY=t.positionY,this.storeSignature(e,t.page)}),1===this.currentWorflow.signaturePositions.length?this.notificationService.success("lang.signatureInDocAddedAlt"):this.translate.get("lang.signaturesInDocAdded",{0:this.currentWorflow.signaturePositions.map(e=>e.page)}).subscribe(e=>{this.notificationService.success(e)}),this.modalController.dismiss(0===i.length&&s.length>0?{redirectPage:s[0].page}:"success")):(e.positionX=60,e.positionY=80,this.storeSignature(e,this.signaturesService.currentPage),this.notificationService.success("lang.signatureInDocAdded"),this.modalController.dismiss("success"))}addNewDate(){const e=this.currentWorflow.datePositions.filter(e=>e.page===this.signaturesService.currentPage),t=this.currentWorflow.datePositions.filter(e=>e.page!==this.signaturesService.currentPage);if(0===e.length&&0===t.length){const e={width:13e3/this.signaturesService.workingAreaWidth,height:3e3/this.signaturesService.workingAreaHeight,positionX:0,positionY:0,font:"Arial",size:15,color:"#666",format:"d MMMM y"};e.positionX=60,e.positionY=80,this.storeDate(e,this.signaturesService.currentPage),this.notificationService.success("lang.dateInDocAdded"),this.modalController.dismiss("success")}else e.length>0&&this.storeDate({width:e[0].width,height:e[0].height,positionX:e[0].positionX,positionY:e[0].positionY,font:"Arial",size:15,color:"#666",format:"d MMMM y"},this.signaturesService.currentPage),t.forEach(e=>{this.storeDate({width:e.width,height:e.height,positionX:e.positionX,positionY:e.positionY,font:"Arial",size:15,color:"#666",format:"d MMMM y"},e.page)}),1===this.currentWorflow.signaturePositions.length?this.notificationService.success("lang.dateInDocAddedAlt"):this.translate.get("lang.dateInDocAdded",{0:this.currentWorflow.signaturePositions.map(e=>e.page)}).subscribe(e=>{this.notificationService.success(e)}),this.modalController.dismiss(0===e.length&&t.length>0?{redirectPage:t[0].page}:"success")}storeSignature(e,t){this.signaturesService.signaturesContent[t]||(this.signaturesService.signaturesContent[t]=[]),this.signaturesService.signaturesContent[t].push(JSON.parse(JSON.stringify(e))),this.localStorage.save(this.signaturesService.mainDocumentId.toString(),JSON.stringify({date:this.signaturesService.datesContent,sign:this.signaturesService.signaturesContent,note:this.signaturesService.notesContent}))}storeDate(e,t){this.signaturesService.datesContent[t]||(this.signaturesService.datesContent[t]=[]),this.signaturesService.datesContent[t].push(JSON.parse(JSON.stringify(e))),this.localStorage.save(this.signaturesService.mainDocumentId.toString(),JSON.stringify({date:this.signaturesService.datesContent,sign:this.signaturesService.signaturesContent,note:this.signaturesService.notesContent}))}removeSignature(e){confirm(this.translate.instant("lang.wantDeleteSignature"))&&this.http.delete("../rest/users/"+this.authService.user.id+"/signatures/"+e.id).subscribe(()=>{this.signaturesService.signaturesList=this.signaturesService.signaturesList.filter(t=>t.id!==e.id),this.notificationService.success("lang.signatureDeleted"),this.initSignatures()},e=>{this.notificationService.error(e.error.errors)})}toggleAllPage(){this.inAllPage=!this.inAllPage}tapEvent(e,t,n){this.count++,setTimeout(()=>{1===this.count?this.count=0:this.count>1&&(this.count=0,this.selectSignature(e))},250)}handleFileInput(e){const t=e.item(0);if(t.size<=1e6)if(-1!==["image/png","image/jpg","image/jpeg","image/gif"].indexOf(t.type)){const e=new FileReader;e.onloadend=n=>{const i=e.result.toString().replace("data:"+t.type+";base64,","");this.localStorage.save("signature",JSON.stringify(i));const s={id:0,encodedSignature:i,format:"png"};this.http.post("../rest/users/"+this.authService.user.id+"/signatures",s).subscribe(e=>{s.id=e.signatureId,this.signaturesService.signaturesList.unshift({id:s.id,encodedSignature:s.encodedSignature}),this.initSignatures(),this.notificationService.success("lang.signatureRegistered")})},e.readAsDataURL(t)}else this.notificationService.error("lang.notAnImage");else this.notificationService.error("lang.maxFileSizeReached")}emptySigns(){let e=!0;for(let t=1;t<=this.signaturesService.totalPage;t++)if(this.signaturesService.signaturesContent[t]&&this.signaturesService.signaturesContent[t].length>0){e=!1;break}return e}getImgDimensions(e){const t=atob(e.slice(0,50)).slice(16,24),n=Uint8Array.from(t,e=>e.charCodeAt(0)),i=new DataView(n.buffer);this.documentWidth=i.getInt32(0)}}return e.\u0275fac=function(t){return new(t||e)(zr(GC),zr(Db),zr(sS),zr(lM),zr(qh),zr(ZC),zr(rS),zr(oS),zr(cl),zr(JA))},e.\u0275cmp=$e({type:e,selectors:[["app-signatures"]],viewQuery:function(e,t){if(1&e&&Tc(cF,1),2&e){let e;Mc(e=Rc())&&(t.slides=e.first)}},inputs:{currentWorflow:"currentWorflow",content:"content"},decls:13,vars:7,consts:[[3,"translucent"],["color","primary"],["class","secondary",4,"ngIf"],["slot","end"],[3,"click"],["slot","icon-only","name","close-outline"],[3,"wheel"],[4,"ngIf","ngIfElse"],["elseCertified",""],[1,"secondary"],["pager","true",3,"options",4,"ngIf"],["horizontal","start","vertical","bottom","slot","fixed"],["color","primary","close-icon","chevron-down"],["name","chevron-up-outline"],["side","top"],["color","light",3,"title","click"],["name","calendar-outline"],["name","download-outline"],["name","add-outline"],["type","file",2,"display","none",3,"change"],["uploadFile",""],["pager","true",3,"options"],["slides",""],["style","display: grid;grid-template-columns: repeat(2, 1fr);",4,"ngFor","ngForOf"],[2,"display","grid","grid-template-columns","repeat(2, 1fr)"],[2,"display","contents"],["class","sign-image",4,"ngFor","ngForOf"],[1,"sign-image"],[2,"width","190px","cursor","pointer",3,"id","src","click"],[2,"position","absolute","top","0px"],["color","secondary",4,"ngIf"],["slot","start"],["size","small","color","primary",3,"title","click"],["slot","icon-only","name","arrow-up-circle-outline"],["size","small","color","danger",3,"title","click"],["slot","icon-only","name","trash-outline"],["color","secondary"],[1,"certified-msg"],["slot","start","name","ribbon-outline","color","success",2,"font-size","70px"]],template:function(e,t){if(1&e&&(Hr(0,"ion-header",0),Hr(1,"ion-toolbar",1),Hr(2,"ion-title"),Da(3),hc(4,"translate"),Fr(5,dF,3,4,"small",2),jr(),Hr(6,"ion-buttons",3),Hr(7,"ion-button",4),Xr("click",function(){return t.dismissModal()}),Ur(8,"ion-icon",5),jr(),jr(),jr(),jr(),Hr(9,"ion-content",6),Xr("wheel",function(e){return t.scroll(e)}),Fr(10,fF,17,10,"ng-container",7),Fr(11,mF,5,3,"ng-template",null,8,zc),jr()),2&e){const e=Br(12);Vr("translucent",!0),no(3),Ma("",pc(4,5,"lang.signatures")," "),no(2),Vr("ngIf",t.signPosMode),no(5),Vr("ngIf",!t.signaturesService.stampLock)("ngIfElse",e)}},directives:[Vx,vA,mA,Wu,Cx,Ax,Nx,Tx,Rx,Lx,Fx,gA,ju,pA,Sx,Zx],pipes:[$C],styles:[".secondary[_ngcontent-%COMP%]{color:var(--ion-color-secondary)}.signatures[_ngcontent-%COMP%]{flex-direction:column}.signatures[_ngcontent-%COMP%], .signatures-top[_ngcontent-%COMP%]{display:flex;align-items:center}.signatures-top[_ngcontent-%COMP%]{height:105px;width:100%;justify-content:space-around;border-bottom:1px solid #e9e8e8}.signatures[_ngcontent-%COMP%]   .list[_ngcontent-%COMP%]{width:100%;padding-top:40px;overflow:auto;display:flex;justify-content:center;flex-wrap:wrap;scroll-behavior:smooth;-webkit-overflow-scrolling:touch}.signatures[_ngcontent-%COMP%]   .list-item[_ngcontent-%COMP%]{transition:all .3s ease-in-out;height:190px;width:190px;margin:8px;border:1px solid hsla(0,0%,59.2%,.55);border-radius:5px;background-color:#fff;box-shadow:0 2px 4px 0 rgba(0,0,0,.04);display:flex;justify-content:center;align-items:center}.signatures[_ngcontent-%COMP%]   .list-item[_ngcontent-%COMP%]   .substituteInfo[_ngcontent-%COMP%]{color:#f99830;font-size:10px;position:absolute;top:0;left:10px}.signatures[_ngcontent-%COMP%]   .list-item.create[_ngcontent-%COMP%]{background-color:#f1f4f4;flex-direction:column;text-align:center}.signatures[_ngcontent-%COMP%]   .list-item[_ngcontent-%COMP%]:active, .signatures[_ngcontent-%COMP%]   .list-item[_ngcontent-%COMP%]:hover{transform:translateY(-20px);cursor:pointer}.sign_icon[_ngcontent-%COMP%]{position:absolute;top:5px}.sign_icon[_ngcontent-%COMP%]   .mat-icon[_ngcontent-%COMP%]{color:#fff;height:auto}.add_icon[_ngcontent-%COMP%]{right:5px}.remove_icon[_ngcontent-%COMP%]{left:5px}.sign-image[_ngcontent-%COMP%]{height:95%}.certified-msg[_ngcontent-%COMP%], .sign-image[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center}.certified-msg[_ngcontent-%COMP%]{height:100%;flex-direction:column;padding:40px}.certified-msg[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]{font-size:30px;color:var(--ion-color-medium)}"]}),e})();const vF=["mainContent"],yF=["canvas"],wF=["img"],_F=["nav"],xF=function(e,t){return{"border-color":e,"background-color":t}};function AF(e,t){if(1&e&&(Wr(0,28),Ur(1,"input",29),Gr()),2&e){const e=t.$implicit,n=na(2);no(1),Vr("checked",0===n.idx)("value",e.id)("ngStyle",lc(3,xF,e.id,e.id))}}function CF(e,t){if(1&e){const e=qr();Hr(0,"ion-content",null,8),Hr(2,"div",9),Fr(3,AF,2,6,"ng-container",10),Ur(4,"hr"),Hr(5,"i",11),Xr("click",function(){return Lt(e),na().undo()}),jr(),jr(),Hr(6,"ion-fab",12),Hr(7,"ion-fab-button",13),Ur(8,"ion-icon",14),jr(),Hr(9,"ion-fab-list",15),Hr(10,"ion-fab-button",16),Xr("click",function(t){Lt(e);const n=na();return t.stopPropagation(),n.editMode=!n.editMode}),hc(11,"translate"),hc(12,"translate"),Ur(13,"ion-icon",17),jr(),Hr(14,"ion-fab-button",18),Xr("click",function(t){Lt(e);const n=na();return t.stopPropagation(),n.getImageDimensions(!n.originalSize)}),hc(15,"translate"),hc(16,"translate"),Ur(17,"ion-icon",17),jr(),jr(),jr(),Hr(18,"div",19),Hr(19,"drag-scroll",20,21),Hr(21,"div",22,23),Hr(23,"ion-img",24,25),Xr("ionImgDidLoad",function(t){return Lt(e),na().imageLoaded(t)}),jr(),Ur(25,"canvas",26,27),jr(),jr(),jr(),jr()}if(2&e){const e=na();no(3),Vr("ngForOf",e.penColors),no(7),Vr("color",e.editMode?"danger":"success")("title",e.editMode?pc(11,19,"lang.lockEdition"):pc(12,21,"lang.unlockEdition")),no(3),Vr("name",e.editMode?"lock-closed-outline":"lock-open-outline"),no(1),Vr("title",e.originalSize?pc(15,23,"lang.originalSize"):pc(16,25,"lang.screenSize")),no(3),Vr("name",e.originalSize?"scan-outline":"crop-outline"),no(2),fa("max-width",e.areaWidth,"px"),no(2),fa("width",e.areaWidth,"px")("height",e.areaHeight,"px"),no(2),fa("width",e.areaWidth,"px")("height",e.areaHeight,"px"),Vr("src",e.content),no(2),fa("display",e.editMode?"initial":"none")}}let SF=(()=>{class e{constructor(e,t,n,i,s){this.signaturesService=e,this.notificationService=t,this.authService=n,this.localStorage=i,this.modalController=s,this.triggerEvent=new yc,this.penColors=[{id:"#000000"},{id:"#1a75ff"},{id:"#FF0000"}],this.areaWidth=0,this.areaHeight=0,this.editMode=!0,this.originalSize=!0,this.loading=!0}ngOnInit(){setTimeout(()=>{this.loading=!1},100)}imageLoaded(e){this.getImageDimensions(!1)}getImageDimensions(e=!1){this.originalSize=e;const t=new Image;t.onload=n=>{this.areaWidth=n.target.naturalWidth,this.areaHeight=n.target.naturalHeight,e||this.getAreaDimension(),this.editMode&&setTimeout(()=>{const e=$("#myBounds").offset();let n,i,s;n=1===Math.sign(e.top)||this.precentScrollTop<=Math.abs(e.top)?this.precentScrollTop-e.top:-1===Math.sign(e.top)&&this.precentScrollTop<=-Math.sign(e.top)?2*(this.precentScrollTop-e.top):100*(this.precentScrollTop-e.top);const o=this.precentScrollLeft-e.left;i=this.precentScrollLeft-document.documentElement.offsetLeft,s=this.precentScrollTop-document.documentElement.offsetTop,i=i/this.areaWidth*100,s=s/this.areaHeight*100,document.getElementsByClassName("drag-scroll-content")[1].scrollTo(o,n),t.style.transform="translate(-"+i+"%,-"+s+"%) scale(2)",this.initPad()},200)},t.src=this.content}getAreaDimension(){const e=100*this.mainContent.el.offsetWidth/this.areaWidth;this.areaWidth=e*this.areaWidth/100,this.areaHeight=e*this.areaHeight/100}dismissModal(){this.modalController.dismiss("cancel")}initPad(){$("#myCanvas").sign({mode:this.authService.user.preferences.writingMode,lineWidth:this.authService.user.preferences.writingSize,changeColor:$(".radio"),undo:$(".undo"),height:this.areaHeight,width:this.areaWidth,fixHeight:56,fixWidth:0,mobileMode:this.signaturesService.mobileMode}),$("input[value='"+this.authService.user.preferences.writingColor+"']").trigger("click")}validateAnnotation(){this.signaturesService.notesContent[this.signaturesService.currentPage]||(this.signaturesService.notesContent[this.signaturesService.currentPage]=[]),this.signaturesService.notesContent[this.signaturesService.currentPage].push({fullPath:this.canvas.nativeElement.toDataURL("image/png"),positionX:0,positionY:0,height:this.signaturesService.workingAreaHeight,width:this.signaturesService.workingAreaWidth}),this.localStorage.save(this.signaturesService.mainDocumentId.toString(),JSON.stringify({date:this.signaturesService.datesContent,sign:this.signaturesService.signaturesContent,note:this.signaturesService.notesContent})),this.modalController.dismiss(""),this.notificationService.success("lang.annotationAdded")}undo(){}}return e.\u0275fac=function(t){return new(t||e)(zr(sS),zr(ZC),zr(rS),zr(oS),zr(JA))},e.\u0275cmp=$e({type:e,selectors:[["app-document-note-pad"]],viewQuery:function(e,t){if(1&e&&(Tc(vF,1),Tc(yF,1),Tc(wF,1),Tc(_F,1,Yk)),2&e){let e;Mc(e=Rc())&&(t.mainContent=e.first),Mc(e=Rc())&&(t.canvas=e.first),Mc(e=Rc())&&(t.img=e.first),Mc(e=Rc())&&(t.ds=e.first)}},inputs:{content:"content",precentScrollTop:"precentScrollTop",precentScrollLeft:"precentScrollLeft"},outputs:{triggerEvent:"triggerEvent"},decls:16,vars:11,consts:[[3,"translucent"],["color","primary"],[4,"ngIf"],[1,"ion-no-border","footer-buttons"],[2,"text-align","center"],["color","danger","shape","round","fill","outline","size","large",3,"click"],[2,"font-size","13px"],["color","success","shape","round","fill","outline","size","large",2,"margin-left","50px",3,"click"],["mainContent",""],[1,"tool-content","tool-content-right"],["let","","idx","index",4,"ngFor","ngForOf"],[1,"fa","fa-undo","fa-2x","undo",3,"click"],["vertical","top","horizontal","start","slot","fixed","activated",""],["close-icon","chevron-up"],["name","chevron-down"],["side","bottom"],[3,"color","title","click"],[3,"name"],[3,"title","click"],[2,"display","contents"],[2,"overflow","auto","height","100%","width","100%","margin","auto"],["nav",""],[2,"position","relative"],["myBounds",""],[1,"img-content",3,"src","ionImgDidLoad"],["img",""],["id","myCanvas",2,"position","absolute","top","0px","left","0px"],["canvas",""],["let","","idx","index"],["type","radio","name","colors",1,"radio",3,"checked","value","ngStyle"]],template:function(e,t){1&e&&(Hr(0,"ion-header",0),Hr(1,"ion-toolbar",1),Hr(2,"ion-title"),Da(3),hc(4,"translate"),jr(),jr(),jr(),Fr(5,CF,27,27,"ion-content",2),Hr(6,"ion-footer",3),Hr(7,"div",4),Hr(8,"ion-button",5),Xr("click",function(){return t.dismissModal()}),Hr(9,"ion-label",6),Da(10),hc(11,"translate"),jr(),jr(),Hr(12,"ion-button",7),Xr("click",function(){return t.validateAnnotation()}),Hr(13,"ion-label",6),Da(14),hc(15,"translate"),jr(),jr(),jr(),jr()),2&e&&(Vr("translucent",!0),no(3),Oa(pc(4,5,"lang.annotateDocument")),no(2),Vr("ngIf",!t.loading),no(5),Oa(pc(11,7,"lang.cancel")),no(4),Oa(pc(15,9,"lang.save")))},directives:[Vx,vA,mA,Wu,Bx,Ax,Zx,Tx,ju,Rx,Lx,Nx,Fx,Yk,Hx,Xu],pipes:[$C],styles:[".tool-content[_ngcontent-%COMP%]{position:fixed}.fullscreen[_ngcontent-%COMP%]{--width:100%;--height:100%}.tool-content[_ngcontent-%COMP%]{z-index:1;display:flex;position:absolute;background:hsla(0,0%,50.2%,.30196078431372547);border-radius:20px;top:170px;transform:translateY(-50%) rotate(-90deg);padding:10px}.tool-content-left[_ngcontent-%COMP%]{left:-40px}.tool-content-right[_ngcontent-%COMP%]{right:-40px}.undo[_ngcontent-%COMP%]{cursor:pointer;transform:rotate(90deg);transition:all .2s}.undo[_ngcontent-%COMP%]:active{transform:rotate(90deg) scale(1.5)}.radio[_ngcontent-%COMP%]{-webkit-appearance:none;-moz-appearance:none;appearance:none;position:relative;margin:5px;width:30px;height:30px;border-radius:30px;border-width:none;border-style:solid;outline:none;cursor:pointer;transition:all .2s}.radio[_ngcontent-%COMP%]:checked, .radio[_ngcontent-%COMP%]:hover{transform:scale(1.5)}.footer-buttons[_ngcontent-%COMP%]{display:grid;padding:10px}.footer-buttons[_ngcontent-%COMP%]   ion-button[_ngcontent-%COMP%]{margin:auto;width:150px}"]}),e})(),kF=(()=>{class e{constructor(e,t,n){this.http=e,this.signaturesService=t,this.router=n,this.currentIndex=0,this.offset=0,this.limit=10}resfreshDocuments(e=!1){this.http.get("../rest/documents?limit="+(this.limit+this.offset)+"&offset=0&mode="+this.signaturesService.mode).subscribe(t=>{this.signaturesService.documentsList=t.documents,this.signaturesService.documentsListCount=t.count,e&&this.router.navigate(void 0!==this.signaturesService.documentsList[this.currentIndex]?["/documents/"+this.signaturesService.documentsList[this.currentIndex].id]:this.signaturesService.documentsList.length>0?["/documents/"+this.signaturesService.documentsList[0].id]:["/home"])})}}return e.\u0275fac=function(t){return new(t||e)(gi(Db),gi(sS),gi(r_))},e.\u0275prov=pe({token:e,factory:e.\u0275fac}),e})(),PF=(()=>{class e{constructor(e,t,n,i){this.signaturesService=e,this.filtersService=t,this.authService=n,this.bottomSheetRef=i,this.date=new Date}ngOnInit(){setTimeout(()=>{this.signaturesService.currentToobal="mainDocumentDetail",this.filtersService.resfreshDocuments(!0),this.bottomSheetRef.dismiss()},2e3)}}return e.\u0275fac=function(t){return new(t||e)(zr(sS),zr(kF),zr(rS),zr(rM))},e.\u0275cmp=$e({type:e,selectors:[["ng-component"]],decls:14,vars:19,consts:[[1,"red",2,"text-align","center"],[1,"fa","fa-thumbs-down","fa-4x"],[2,"font-weight","bold","font-size","30px"],[2,"font-weight","bold","font-size","15px"]],template:function(e,t){1&e&&(Hr(0,"div",0),Hr(1,"h1"),Ur(2,"i",1),jr(),Hr(3,"p"),Da(4),hc(5,"translate"),jr(),Hr(6,"p",2),Da(7),jr(),Hr(8,"p",3),Da(9),hc(10,"translate"),hc(11,"date"),hc(12,"translate"),hc(13,"date"),jr(),jr()),2&e&&(no(4),Oa(pc(5,7,"lang.documentRefusedAs")),no(3),Ta("",t.authService.user.firstname," ",t.authService.user.lastname,""),no(2),Ra("",pc(10,9,"lang.onRange")," ",gc(11,11,t.date,"dd/MM/yyyy")," ",pc(12,14,"lang.atRange")," ",gc(13,16,t.date,"HH:mm"),""))},pipes:[$C,lh],styles:[""]}),e})();const EF=["slides"];function DF(e,t){1&e&&(Hr(0,"span",16),Da(1),hc(2,"translate"),jr()),2&e&&(no(1),Ma("(",pc(2,1,"lang.mainDocument"),")"))}function OF(e,t){1&e&&(Hr(0,"span",16),Da(1),hc(2,"translate"),jr()),2&e&&(no(1),Ma("(",pc(2,1,"lang.attachment"),")"))}const MF=function(e){return{background:e}};function TF(e,t){if(1&e){const e=qr();Hr(0,"ion-slide"),Hr(1,"div",12),Hr(2,"div",13),Xr("click",function(){Lt(e);const n=t.index;return na(2).loadDoc(n)}),jr(),Hr(3,"div",14),Da(4),Fr(5,DF,3,3,"span",15),Fr(6,OF,3,3,"span",15),jr(),jr(),jr()}if(2&e){const e=t.$implicit,n=t.index,i=na(2);no(2),ma("current",n==i.currentDocId),Vr("ngStyle",ac(6,MF,"url("+e.imgContent[1]+") no-repeat scroll center center / contain")),no(2),Ma(" ",e.title,"\xa0"),no(1),Vr("ngIf",0==n),no(1),Vr("ngIf",n>0)}}function IF(e,t){if(1&e&&(Hr(0,"ion-slides",9,10),Fr(2,TF,7,8,"ion-slide",11),jr()),2&e){const e=na();Vr("options",e.slideOpts),no(2),Vr("ngForOf",e.docList)}}let RF=(()=>{class e{constructor(e,t,n,i){this.http=e,this.signaturesService=t,this.sanitizer=n,this.menu=i,this.triggerEvent=new yc,this.loading=!0,this.scrolling=!1,this.slideOpts={initialSlide:0,speed:400,direction:"vertical"}}ngOnInit(){this.docList.forEach((e,t)=>{void 0===e.imgContent[1]&&t>0&&this.http.get("../rest/attachments/"+e.id+"/thumbnails/1").subscribe(t=>{e.imgContent[1]="data:image/png;base64,"+t.fileContent})})}ngAfterViewInit(){this.loading=!1}loadDoc(e){this.triggerEvent.emit(e),this.menu.close("right-menu")}scroll(e){this.scrolling||(this.scrolling=!0,e.deltaY<0?this.slides.slidePrev():this.slides.slideNext(),setTimeout(()=>{this.scrolling=!1},500))}}return e.\u0275fac=function(t){return new(t||e)(zr(Db),zr(sS),zr(qh),zr(KA))},e.\u0275cmp=$e({type:e,selectors:[["app-document-list"]],viewQuery:function(e,t){if(1&e&&Tc(EF,1),2&e){let e;Mc(e=Rc())&&(t.slides=e.first)}},inputs:{docList:"docList",currentDocId:"currentDocId"},outputs:{triggerEvent:"triggerEvent"},decls:12,vars:6,consts:[[3,"translucent"],["color","primary"],["slot","start"],["disabled",""],["slot","icon-only","name","document-outline"],[1,"ion-text-center"],[1,"secondary"],[3,"wheel"],["pager","true",3,"options",4,"ngIf"],["pager","true",3,"options"],["slides",""],[4,"ngFor","ngForOf"],[2,"height","90%","width","100%","position","relative","padding","10px"],[2,"cursor","pointer","height","100%","width","100%","border-radius","4px","transition","box-shadow 280ms cubic-bezier(.4,0,.2,1)","border","solid 1px #E0E0E0",3,"ngStyle","click"],[1,"pjToolsContent"],["class","red",4,"ngIf"],[1,"red"]],template:function(e,t){1&e&&(Hr(0,"ion-header",0),Hr(1,"ion-toolbar",1),Hr(2,"ion-buttons",2),Hr(3,"ion-button",3),Ur(4,"ion-icon",4),jr(),jr(),Hr(5,"ion-title",5),Hr(6,"b",6),Da(7),jr(),Da(8),hc(9,"translate"),jr(),jr(),jr(),Hr(10,"ion-content",7),Xr("wheel",function(e){return t.scroll(e)}),Fr(11,IF,3,2,"ion-slides",8),jr()),2&e&&(Vr("translucent",!0),no(7),Oa(t.docList.length),no(1),Ma("\xa0",pc(9,4,"lang.attachedElements"),""),no(3),Vr("ngIf",!t.loading))},directives:[Vx,vA,Cx,Ax,Nx,mA,Tx,Wu,gA,ju,pA,Xu],pipes:[$C],styles:[".mat-list-item[_ngcontent-%COMP%]{height:auto!important;text-align:center}.mat-card[_ngcontent-%COMP%]{box-shadow:none;border:1px solid #e0e0e0}.mat-icon[_ngcontent-%COMP%]{height:auto}.pjToolsContent[_ngcontent-%COMP%]{position:absolute;border:1px solid #e0e0e0;border-bottom-left-radius:5px;background:#fff;padding:10px;font-weight:600;color:#135f7f;font-size:14px;top:10px}.current[_ngcontent-%COMP%]{box-shadow:0 0 20px 0 #656565}.panel-header[_ngcontent-%COMP%]{box-shadow:0 0 10px 0 #656565;color:#fff;background:#135f7f;height:65px;justify-content:center;font-size:20px;align-items:center}.panel-content[_ngcontent-%COMP%], .panel-header[_ngcontent-%COMP%]{display:flex;position:relative}.panel-content[_ngcontent-%COMP%]{flex-direction:column;height:100%;overflow:hidden}img[_ngcontent-%COMP%]{pointer-events:none}.secondary[_ngcontent-%COMP%]{color:var(--ion-color-secondary)}"]}),e})(),LF=(()=>{class e{constructor(e,t){this.translate=e,this.latinisePipe=t}empty(e){return null==e||!1===e||(Array.isArray(e)?!(e.length>0):""===String(e))}isDate(e){return e instanceof Date&&!isNaN(e.valueOf())}formatFrenchDateToTechnicalDate(e){if(this.empty(e))return e;{let t=e.split("-");return t=t.concat(t[t.length-1].split(" ")),t.splice(2,1),this.empty(t[3])&&(t[3]="00:00:00"),`${t[2]}-${t[1]}-${t[0]} ${t[3]}`}}formatFrenchDateToObjectDate(e,t="-"){if(this.empty(e))return e;{let n=e.split(t);return n=n.concat(n[n.length-1].split(" ")),n.splice(2,1),this.empty(n[3])&&(n[3]="00:00:00"),new Date(`${n[2]}-${n[1]}-${n[0]} ${n[3]}`)}}formatDateObjectToDateString(e,t=!1,n="dd-mm-yyyy"){if(null!==e){const i=[];n.split("-").forEach(t=>{if("dd"===t){let t=e.getDate();t=("00"+t).slice(-2),i.push(t)}else if("mm"===t){let t=e.getMonth()+1;t=("00"+t).slice(-2),i.push(t)}else if("yyyy"===t){const t=e.getFullYear();i.push(t)}});let s="";return t&&(s=" 23:59:59"),`${i.join("-")}${s}`}return e}formatSerializedDateToDateString(e){return this.formatDateObjectToDateString(new Date(e))}listSortingDataAccessor(e,t){return"string"==typeof e[t]?e[t].toLowerCase():e[t]}filterUnSensitive(e,t,n){let i=!1;return t=this.latinisePipe.transform(t),n.forEach(n=>{let s=e[n];"string"!=typeof e[n]&&(s=void 0===s?"":JSON.stringify(s)),i=i||this.latinisePipe.transform(s.toLowerCase()).includes(t)}),i}formatBytes(e,t=2){if("number"==typeof e){if(0===e)return"0 Octet";const n=1024,i=t<0?0:t,s=["Octets","KO","MO","GO","TO","PO","EO","ZO","YO"],o=Math.floor(Math.log(e)/Math.log(n));return parseFloat((e/Math.pow(n,o)).toFixed(i))+" "+s[o]}return e}}return e.\u0275fac=function(t){return new(t||e)(gi(GC),gi(dP))},e.\u0275prov=pe({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();var FF=function(e,t,n,i){return new(n||(n=Promise))(function(s,o){function r(e){try{l(i.next(e))}catch(t){o(t)}}function a(e){try{l(i.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?s(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(r,a)}l((i=i.apply(e,t||[])).next())})};let BF=(()=>{class e{constructor(e,t,n,i,s,o){this.http=e,this.translate=t,this.notificationService=n,this.signaturesService=i,this.functionsService=s,this.alertController=o}sendDocument(e,t,n=null,i=null,s=null,o=null){return new Promise(r=>FF(this,void 0,void 0,function*(){let a={};this.signaturesService.currentAction>0?(a.signatures=null===o?yield this.getElementsFromDoc():o,null!==n&&(a=Object.assign(Object.assign({},a),n),a.step="hashCertificate"),null!==t&&(a.note=t),null!==i&&(a.signatureLength=i),this.functionsService.empty(s)||(a.tmpUniqueId=s),this.http.put("../rest/documents/"+e+"/actions/"+this.signaturesService.currentAction,a).pipe(Ov(e=>{r(null===n||{hashDocument:e.dataToSign,signatureContentLength:e.signatureContentLength,signatureFieldName:e.signatureFieldName,tmpUniqueId:e.tmpUniqueId})}),fv(e=>(this.notificationService.handleErrors(e),r(403===e.status&&null),lb(!1)))).subscribe()):r(!1)}))}getElementsFromDoc(){return FF(this,void 0,void 0,function*(){return new Promise(e=>FF(this,void 0,void 0,function*(){const t=[];for(let e=1;e<=this.signaturesService.totalPage;e++){if(this.signaturesService.datesContent[e])for(let n=0;n<this.signaturesService.datesContent[e].length;n++){const i=this.signaturesService.datesContent[e][n],s=yield this.getSvgContent(n);t.push({encodedImage:s.replace("data:image/svg+xml;base64,",""),width:i.width,height:i.height,positionX:i.positionX,positionY:i.positionY,type:"SVG",page:e})}this.signaturesService.signaturesContent[e]&&this.signaturesService.signaturesContent[e].forEach(n=>{t.push({encodedImage:n.encodedSignature,width:n.width,positionX:n.positionX,positionY:n.positionY,type:"PNG",page:e})}),this.signaturesService.notesContent[e]&&this.signaturesService.notesContent[e].forEach(n=>{t.push({encodedImage:n.fullPath.replace("data:image/png;base64,",""),width:n.width,positionX:n.positionX,positionY:n.positionY,type:"PNG",page:e})})}e(t)}))})}getSvgContent(e){return new Promise(t=>{const n=document.getElementById("testSVG_"+e),i=(new XMLSerializer).serializeToString(n),s=new Blob([i],{type:"image/svg+xml"}),o=new FileReader;o.readAsDataURL(s),o.onloadend=()=>{t(o.result)}})}checkGroupMail(e,t){return new Promise(n=>FF(this,void 0,void 0,function*(){this.functionsService.empty(e.mailingId)?n([this.signaturesService.mainDocumentId]):this.http.get(`../rest/documents/${this.signaturesService.mainDocumentId}/linkedMailing`).pipe(Ov(e=>FF(this,void 0,void 0,function*(){if(e.documents.length>1){const i=yield this.alertController.create({header:this.translate.instant("lang.mailing"),message:this.translate.instant("validate"===t?"lang.makeActionOnDocInMailGroup":"lang.refuseActionDocInMailGroup"),backdropDismiss:!1,buttons:[{text:this.translate.instant("lang.yes"),handler:()=>{n(e.documents)}},{role:"cancel",text:this.translate.instant("lang.no"),cssClass:"secondary",handler:()=>{n([this.signaturesService.mainDocumentId])}}]});yield i.present()}else n([this.signaturesService.mainDocumentId])})),fv(e=>(this.notificationService.handleErrors(e),n([]),lb(!1)))).subscribe()}))}}return e.\u0275fac=function(t){return new(t||e)(gi(Db),gi(GC),gi(ZC),gi(sS),gi(LF),gi(QA))},e.\u0275prov=pe({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();var zF=function(e,t,n,i){return new(n||(n=Promise))(function(s,o){function r(e){try{l(i.next(e))}catch(t){o(t)}}function a(e){try{l(i.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?s(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(r,a)}l((i=i.apply(e,t||[])).next())})};let VF=(()=>{class e{constructor(e,t,n,i,s,o,r,a,l){this.modalController=e,this.http=t,this.translate=n,this.notificationService=i,this.loadingController=s,this.signaturesService=o,this.actionsService=r,this.functionsService=a,this.authService=l,this.filters={expired:!1,keyUsage:[],onlyWithPrivateKey:!0},this.provider=null,this.cert=null,this.certPem=null,this.privateKey=null,this.signatures=[],this.signatureLength=null,this.server=null}ngOnInit(){return zF(this,void 0,void 0,function*(){const e=this.authService.signatureRoles.filter(e=>e.id===this.signatureMode)[0];this.functionsService.empty(e.issuer)||(this.filters.issuerDNMatch=new RegExp(e.issuer,"i")),this.functionsService.empty(e.subject)||(this.filters.subjectDNMatch=new RegExp(e.subject,"i")),this.functionsService.empty(e.keyUsage)||this.filters.keyUsage.push(e.keyUsage)})}certificateChosen(e){return zF(this,void 0,void 0,function*(){this.loadingController.create({message:this.translate.instant("lang.processing"),spinner:"dots"}).then(t=>zF(this,void 0,void 0,function*(){t.present();try{this.server=e.detail.server,this.checkWebsocketSession(),this.provider=yield e.detail.server.getCrypto(e.detail.providerId),this.checkWebsocketSession(),this.cert=yield this.provider.certStorage.getItem(e.detail.certificateId),this.checkWebsocketSession(),this.certPem=yield this.provider.certStorage.exportCert("pem",this.cert),this.checkWebsocketSession(),this.privateKey=yield this.provider.keyStorage.getItem(e.detail.privateKeyId)}catch(i){return this.notificationService.error(i),t.dismiss(),void this.modalController.dismiss(!1)}this.certificate={certificate:this.certPem};let n=!1;for(let e=0;e<this.idsToProcess.length;e++)this.signatures=yield this.actionsService.getElementsFromDoc(),n=yield this.sendAndSign(this.idsToProcess[e]);t.dismiss(),this.modalController.dismiss(n)}))})}checkWebsocketSession(){return zF(this,void 0,void 0,function*(){for(;this.server.client.state!==WebSocket.OPEN;)yield this.server.connect(),yield new Promise(e=>setTimeout(e,150))})}sendAndSign(e){return zF(this,void 0,void 0,function*(){let t=!1,n={};for(;!t;){let i=!1;for(;!1===i;){if(n=yield this.fusionStampAndGenerateSignature(e,n.tmpUniqueId),null===n)return!1;if(!1===n)return!1;if(i=yield this.signDocument(e,n.hashDocument,n.signatureContentLength,n.signatureFieldName,n.tmpUniqueId),!0!==i)return!1;this.signatures.shift(),t=0===this.signatures.length}}return t})}fusionStampAndGenerateSignature(e,t=null){return zF(this,void 0,void 0,function*(){let n={};return n=yield this.actionsService.sendDocument(e,null,this.certificate,this.signatureLength,t,this.signatures),n})}signDocument(e,t,n,i,s){return new Promise(o=>zF(this,void 0,void 0,function*(){const r={name:this.privateKey.algorithm.name,hash:"SHA-256"},a=this.fromHex(t);let l;try{this.checkWebsocketSession(),l=yield this.provider.subtle.sign(r,this.privateKey,a)}catch(h){return this.notificationService.error(h),o(!1),lb(!1)}const c={note:this.note},d={signatures:this.signatures,certificate:this.certPem,hashSignature:this.toHex(l),signatureContentLength:n,signatureFieldName:i,tmpUniqueId:s},u=Object.assign(Object.assign({},c),d);this.http.put("../rest/documents/"+e+"/actions/"+this.signaturesService.currentAction,u).pipe(Ov(()=>{o(!0)}),fv(e=>(void 0!==e.error.newSignatureLength?(this.signatureLength=e.error.newSignatureLength,o(!1)):(this.notificationService.handleErrors(e),o("error")),lb(!1)))).subscribe()}))}cancelSign(){this.modalController.dismiss(!1)}toHex(e){const t=new Uint8Array(e),n=[],i=t.length;for(let s=0;s<i;s++){const e=t[s].toString(16);n.push(1===e.length?"0"+e:e)}return n.join("")}fromHex(e){const t=new Uint8Array(e.length/2);for(let n=0;n<e.length;n+=2){const i=e.slice(n,n+2);t[n/2]=parseInt(i,16)}return t.buffer}}return e.\u0275fac=function(t){return new(t||e)(zr(JA),zr(Db),zr(GC),zr(ZC),zr(XA),zr(sS),zr(BF),zr(LF),zr(rS))},e.\u0275cmp=$e({type:e,selectors:[["signature-method-modal"]],inputs:{note:"note",signatureMode:"signatureMode",idsToProcess:"idsToProcess"},decls:2,vars:1,consts:[["language","fr","hide-footer","",2,"height","100%","width","100%",3,"filters","continue","cancel"]],template:function(e,t){1&e&&(Hr(0,"ion-content"),Hr(1,"peculiar-fortify-certificates",0),Xr("continue",function(e){return t.certificateChosen(e)})("cancel",function(){return t.cancelSign()}),jr(),jr()),2&e&&(no(1),Vr("filters",t.filters))},directives:[Tx],styles:[".content[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;padding:30px!important;height:100%;flex-direction:column}.content[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{font-size:130px;color:var(--ion-color-primary)}.success[_ngcontent-%COMP%]{color:var(--ion-color-success)!important}.danger[_ngcontent-%COMP%]{color:var(--ion-color-danger)!important}@-webkit-keyframes bounce{0%,20%,53%,80%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1);transform:translateZ(0)}40%,43%{-webkit-animation-timing-function:cubic-bezier(.755,.05,.855,.06);animation-timing-function:cubic-bezier(.755,.05,.855,.06);transform:translate3d(0,-30px,0)}70%{-webkit-animation-timing-function:cubic-bezier(.755,.05,.855,.06);animation-timing-function:cubic-bezier(.755,.05,.855,.06);transform:translate3d(0,-15px,0)}90%{transform:translate3d(0,-4px,0)}}@keyframes bounce{0%,20%,53%,80%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1);transform:translateZ(0)}40%,43%{-webkit-animation-timing-function:cubic-bezier(.755,.05,.855,.06);animation-timing-function:cubic-bezier(.755,.05,.855,.06);transform:translate3d(0,-30px,0)}70%{-webkit-animation-timing-function:cubic-bezier(.755,.05,.855,.06);animation-timing-function:cubic-bezier(.755,.05,.855,.06);transform:translate3d(0,-15px,0)}90%{transform:translate3d(0,-4px,0)}}.bounce[_ngcontent-%COMP%]{-webkit-animation-duration:2s;animation-duration:2s;-webkit-animation-name:bounce;animation-name:bounce;transform-origin:center bottom;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite}"]}),e})();var NF=function(e,t,n,i){return new(n||(n=Promise))(function(s,o){function r(e){try{l(i.next(e))}catch(t){o(t)}}function a(e){try{l(i.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?s(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(r,a)}l((i=i.apply(e,t||[])).next())})};let HF=(()=>{class e{constructor(e,t,n,i,s,o,r){this.http=e,this.modalController=t,this.actionsService=n,this.loadingController=i,this.translate=s,this.authService=o,this.notificationService=r}checkAuthenticationAndLaunchAction(e,t=null,n){return NF(this,void 0,void 0,function*(){return["rgs_2stars","rgs_2stars_timestamped","inca_card","inca_card_eidas"].indexOf(e.signatureMode)>-1?0!==this.authService.coreUrl.indexOf("https://")?(yield this.notificationService.error("lang.securedUrlNeeded"),null):yield this.openRgsAuth(t,e.signatureMode,n):yield this.launchDefaultMode(t,n)})}launchDefaultMode(e,t){return NF(this,void 0,void 0,function*(){return new Promise(n=>NF(this,void 0,void 0,function*(){const i=yield this.loadingController.create({message:this.translate.instant("lang.loadingValidation"),spinner:"dots"});i.present();let s=!0;for(let n=0;n<t.length;n++)s=yield this.actionsService.sendDocument(t[n],e);i.dismiss(),n(s)}))})}openRgsAuth(e,t,n){return NF(this,void 0,void 0,function*(){return new Promise(i=>NF(this,void 0,void 0,function*(){const s=yield this.modalController.create({component:VF,componentProps:{note:e,signatureMode:t,idsToProcess:n}});yield s.present();const{data:o}=yield s.onWillDismiss();i(o)}))})}}return e.\u0275fac=function(t){return new(t||e)(gi(Db),gi(JA),gi(BF),gi(XA),gi(GC),gi(rS),gi(ZC))},e.\u0275prov=pe({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),jF=(()=>{class e{constructor(e,t,n,i){this.signaturesService=e,this.filtersService=t,this.authService=n,this.bottomSheetRef=i,this.date=new Date}ngOnInit(){setTimeout(()=>{this.signaturesService.currentToobal="mainDocumentDetail",this.filtersService.resfreshDocuments(!0),this.bottomSheetRef.dismiss()},2e3)}}return e.\u0275fac=function(t){return new(t||e)(zr(sS),zr(kF),zr(rS),zr(rM))},e.\u0275cmp=$e({type:e,selectors:[["ng-component"]],decls:14,vars:19,consts:[[1,"green",2,"text-align","center"],[1,"fa","fa-thumbs-up","fa-4x"],[2,"font-weight","bold","font-size","30px"],[2,"font-weight","bold","font-size","15px"]],template:function(e,t){1&e&&(Hr(0,"div",0),Hr(1,"h1"),Ur(2,"i",1),jr(),Hr(3,"p"),Da(4),hc(5,"translate"),jr(),Hr(6,"p",2),Da(7),jr(),Hr(8,"p",3),Da(9),hc(10,"translate"),hc(11,"date"),hc(12,"translate"),hc(13,"date"),jr(),jr()),2&e&&(no(4),Oa(pc(5,7,"lang.documentValidateAs")),no(3),Ta("",t.authService.user.firstname," ",t.authService.user.lastname,""),no(2),Ra("",pc(10,9,"lang.onRange")," ",gc(11,11,t.date,"dd/MM/yyyy")," ",pc(12,14,"lang.atRange")," ",gc(13,16,t.date,"HH:mm"),""))},pipes:[$C,lh],styles:[""]}),e})();function UF(e,t){if(1&e&&(Wr(0),Hr(1,"div",1),Ur(2,"img",2),jr(),Gr()),2&e){const e=t.$implicit,n=na();no(1),fa("width",n.signaturesService.workingAreaWidth,"px")("height",n.signaturesService.workingAreaHeight,"px"),no(1),fa("width",100,"%"),Vr("src",n.sanitization.bypassSecurityTrustUrl(e.fullPath),os)}}let WF=(()=>{class e{constructor(e,t,n){this.translate=e,this.sanitization=t,this.signaturesService=n}ngOnInit(){}}return e.\u0275fac=function(t){return new(t||e)(zr(GC),zr(qh),zr(sS))},e.\u0275cmp=$e({type:e,selectors:[["app-document-note-list"]],decls:1,vars:1,consts:[[4,"ngFor","ngForOf"],[2,"top","0","left","0","position","absolute"],[3,"src"]],template:function(e,t){1&e&&Fr(0,UF,3,7,"ng-container",0),2&e&&Vr("ngForOf",t.signaturesService.notesContent[t.signaturesService.currentPage])},directives:[ju],encapsulation:2}),e})();const GF=["menuTrigger"],$F=["test"],qF=function(e,t){return{x:e,y:t}};function YF(e,t){if(1&e){const e=qr();Hr(0,"div",1,2),Xr("rzResizing",function(n){Lt(e);const i=t.index;return na().onResizing(n,i)})("rzStart",function(){return Lt(e),na().signaturesService.resizing=!0})("movingOffset",function(){return Lt(e),na().signaturesService.dragging=!0})("endOffset",function(n){Lt(e);const i=t.index;return na().moveSign(n,i)})("rzStop",function(n){Lt(e);const i=t.index,s=na();return s.onResizeStop(n,i),s.signaturesService.resizing=!1}),Hr(2,"ion-item",3),Hr(3,"ion-select",4),Xr("click",function(e){return e.stopPropagation()})("ionChange",function(n){Lt(e);const i=t.index;return na().select(n,i)}),Hr(4,"ion-select-option",5),Da(5),hc(6,"translate"),jr(),Hr(7,"ion-select-option",6),Da(8),hc(9,"translate"),jr(),jr(),jr(),Ur(10,"img",7),jr()}if(2&e){const e=t.$implicit,n=na();fa("width",e.width,"%")("height",n.fix),Vr("position",lc(20,qF,e.positionX*n.signaturesService.workingAreaWidth/100,e.positionY*n.signaturesService.workingAreaHeight/100))("ngDraggable",!n.signaturesService.resizing)("rzAspectRatio",!0)("preventDefaultEvent",!1)("bounds",n.bounds)("inBounds",!0),no(5),Ma("",pc(6,16,"lang.delete")," "),no(2),Vr("disabled",e.inAllPage),no(1),Ma(" ",pc(9,18,"lang.replicate"),""),no(2),fa("width",100,"%"),Vr("src",n.sanitization.bypassSecurityTrustUrl("data:image/png;base64,"+e.encodedSignature),os)}}let ZF=(()=>{class e{constructor(e,t,n,i,s,o,r,a){this.translate=e,this.sanitization=t,this.signaturesService=n,this.notificationService=i,this.localStorage=s,this.dialog=o,this.popoverController=r,this.modalController=a,this.fix="auto",this.today=new Date}ngOnInit(){}select(e,t){this[e.detail.value](t)}moveSign(e,t){const n=100*e.y/this.signaturesService.workingAreaHeight;this.signaturesService.signaturesContent[this.signaturesService.currentPage][t].positionX=100*e.x/this.signaturesService.workingAreaWidth,this.signaturesService.signaturesContent[this.signaturesService.currentPage][t].positionY=n,this.localStorage.save(this.signaturesService.mainDocumentId.toString(),JSON.stringify({date:this.signaturesService.datesContent,sign:this.signaturesService.signaturesContent,note:this.signaturesService.notesContent})),this.signaturesService.dragging=!1}onResizing(e,t){this.test.nativeElement.style.height="auto"}onResizeStop(e,t){this.test.nativeElement.style.height="auto",this.signaturesService.signaturesContent[this.signaturesService.currentPage][t].width=100*e.size.width/this.signaturesService.workingAreaWidth}cloneSign(e){this.dialog.open($R,{autoFocus:!1,width:"450px",data:{title:"lang.wantSignOtherPage",msg:""}}).afterClosed().subscribe(t=>{if("yes"===t){this.signaturesService.signaturesContent[this.signaturesService.currentPage][e].inAllPage=!0,this.signaturesService.signaturesContent[this.signaturesService.currentPage][e].token=Math.random().toString(36).substr(2,9);for(let t=1;t<=this.signaturesService.totalPage;t++)this.signaturesService.signaturesContent[t]||(this.signaturesService.signaturesContent[t]=[]),t!==this.signaturesService.currentPage&&this.signaturesService.signaturesContent[t].push(JSON.parse(JSON.stringify(this.signaturesService.signaturesContent[this.signaturesService.currentPage][e])));this.localStorage.save(this.signaturesService.mainDocumentId.toString(),JSON.stringify({sign:this.signaturesService.signaturesContent,note:this.signaturesService.notesContent}))}}),this.menuSign.closeMenu()}deleteSignature(e){if(!0===this.signaturesService.signaturesContent[this.signaturesService.currentPage][e].inAllPage){const t=this.signaturesService.signaturesContent[this.signaturesService.currentPage][e].token;if(confirm(this.translate.instant("lang.wantDeleteSignatureOtherPage")))for(let e=1;e<=this.signaturesService.totalPage;e++){this.signaturesService.signaturesContent[e]||(this.signaturesService.signaturesContent[e]=[]);for(let n=0;n<=this.signaturesService.signaturesContent[e].length;n++)this.signaturesService.signaturesContent[e][n]&&t===this.signaturesService.signaturesContent[e][n].token&&this.signaturesService.signaturesContent[e].splice(n,1)}else this.signaturesService.signaturesContent[this.signaturesService.currentPage].splice(e,1)}else this.signaturesService.signaturesContent[this.signaturesService.currentPage].splice(e,1);this.emptySigns()&&(this.signaturesService.signaturesContent=[]),this.localStorage.save(this.signaturesService.mainDocumentId.toString(),JSON.stringify({sign:this.signaturesService.signaturesContent,note:this.signaturesService.notesContent}))}emptySigns(){let e=!0;for(let t=1;t<=this.signaturesService.totalPage;t++)if(this.signaturesService.signaturesContent[t]&&this.signaturesService.signaturesContent[t].length>0){e=!1;break}return e}}return e.\u0275fac=function(t){return new(t||e)(zr(GC),zr(qh),zr(sS),zr(ZC),zr(oS),zr(IM),zr(eC),zr(JA))},e.\u0275cmp=$e({type:e,selectors:[["app-document-sign-list"]],viewQuery:function(e,t){if(1&e&&(Tc(GF,1),Tc($F,1)),2&e){let e;Mc(e=Rc())&&(t.menuSign=e.first),Mc(e=Rc())&&(t.test=e.first)}},inputs:{bounds:"bounds"},decls:1,vars:1,consts:[["ngResizable","","style","position:absolute;border: dashed 1px grey;background: rgba(255, 255, 255, 0.6) none repeat scroll 0% 0%;",3,"position","width","ngDraggable","rzAspectRatio","preventDefaultEvent","bounds","inBounds","height","rzResizing","rzStart","movingOffset","endOffset","rzStop",4,"ngFor","ngForOf"],["ngResizable","",2,"position","absolute","border","dashed 1px grey","background","rgba(255, 255, 255, 0.6) none repeat scroll 0% 0%",3,"position","ngDraggable","rzAspectRatio","preventDefaultEvent","bounds","inBounds","rzResizing","rzStart","movingOffset","endOffset","rzStop"],["test",""],[2,"position","absolute","--background","none","right","0","--border-width","0"],["selectedText"," ","value","","interface","popover",3,"click","ionChange"],["value","deleteSignature",1,"action-item"],["value","cloneSign",1,"action-item",3,"disabled"],[1,"img-content",3,"src"]],template:function(e,t){1&e&&Fr(0,YF,11,23,"div",0),2&e&&Vr("ngForOf",t.signaturesService.signaturesContent[t.signaturesService.currentPage])},directives:[ju,tP,Kk,Gx,uA,ox,hA],pipes:[$C],styles:[".action-item ion-radio{--color:transparent;--color-checked:transparent}.test[_ngcontent-%COMP%]{position:absolute;border:1px dashed grey;background:hsla(0,0%,100%,.6) none repeat scroll 0 0;background:none;font:sans-serif}svg[_ngcontent-%COMP%]{width:100%;height:100%;pointer-events:none}text[_ngcontent-%COMP%]{pointer-events:auto}"]}),e})();function QF(e,t){if(1&e&&(Hr(0,"ion-select-option",19),Da(1),hc(2,"date"),hc(3,"translate"),jr()),2&e){const e=t.$implicit,n=na();Vr("value",e),no(1),Ma(" ",mc(2,2,n.today,e,void 0,pc(3,7,"lang.langISO"))," ")}}function XF(e,t){if(1&e&&(Hr(0,"ion-select-option",19),Da(1),jr()),2&e){const e=t.$implicit;ba(na().getFontLabel(e)),Vr("value",e),no(1),Ma(" ",e," ")}}const KF=function(){return{cssClass:"selectFormat"}};let JF=(()=>{class e{constructor(e){this.modalController=e,this.today=new Date,this.dateformats=["dd/MM/y","dd-MM-y","dd.MM.y","d MMM y","d MMMM y"],this.datefonts=["Arial","Verdana","Helvetica","Tahoma","Times New Roman","Courier New"],this.size={Arial:15,Verdana:13,Helvetica:13,Tahoma:13,"Times New Roman":15,"Courier New":13}}ngOnInit(){this.date=JSON.parse(JSON.stringify(this.currentDate))}dismissModal(){this.modalController.dismiss()}getFontLabel(e){return e.replace(" ","_")}onSubmit(){this.modalController.dismiss(this.date)}select(e){this.date.size=this.size[e]}}return e.\u0275fac=function(t){return new(t||e)(zr(JA))},e.\u0275cmp=$e({type:e,selectors:[["ng-component"]],inputs:{currentDate:"currentDate"},decls:45,vars:43,consts:[[3,"translucent"],["color","primary"],["slot","end"],[3,"click"],["slot","icon-only","name","close-outline"],[2,"text-align","center","font-weight","normal","font-size","50px","padding","50px"],["color","secondary"],["interface","popover",3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],["button","","lines","full",3,"click"],["type","color",2,"display","none",3,"ngModel","ngModelChange"],["colorPicker",""],["slot","end","name","ellipse"],[3,"ngModel","interfaceOptions","cancelText","ngModelChange","ionChange"],[3,"value","class",4,"ngFor","ngForOf"],[1,"ion-no-border"],[1,"ion-justify-content-center"],["type","submit","color","primary",3,"click"],["type","button",3,"click"],[3,"value"]],template:function(e,t){if(1&e){const e=qr();Hr(0,"ion-header",0),Hr(1,"ion-toolbar",1),Hr(2,"ion-title"),Da(3),hc(4,"translate"),jr(),Hr(5,"ion-buttons",2),Hr(6,"ion-button",3),Xr("click",function(){return t.dismissModal()}),Ur(7,"ion-icon",4),jr(),jr(),jr(),jr(),Hr(8,"ion-content"),Hr(9,"ion-toolbar"),Hr(10,"ion-title",5),Da(11),hc(12,"date"),hc(13,"translate"),jr(),jr(),Hr(14,"ion-item"),Hr(15,"ion-label",6),Da(16),hc(17,"translate"),jr(),Hr(18,"ion-select",7),Xr("ngModelChange",function(e){return t.date.format=e}),Fr(19,QF,4,9,"ion-select-option",8),jr(),jr(),Hr(20,"ion-item",9),Xr("click",function(){return Lt(e),Br(22).click()}),Hr(21,"input",10,11),Xr("ngModelChange",function(e){return t.date.color=e}),jr(),Hr(23,"ion-label",6),Da(24),hc(25,"translate"),jr(),Ur(26,"ion-icon",12),jr(),Hr(27,"ion-item"),Hr(28,"ion-label",6),Da(29),hc(30,"translate"),jr(),Hr(31,"ion-select",13),Xr("ngModelChange",function(e){return t.date.font=e})("ionChange",function(e){return t.select(e.detail.value)}),hc(32,"translate"),Fr(33,XF,2,4,"ion-select-option",14),jr(),jr(),jr(),Hr(34,"ion-footer",15),Hr(35,"ion-toolbar"),Hr(36,"ion-buttons",16),Hr(37,"ion-button",17),Xr("click",function(){return t.onSubmit()}),Hr(38,"ion-label"),Da(39),hc(40,"translate"),jr(),jr(),Hr(41,"ion-button",18),Xr("click",function(){return t.dismissModal()}),Hr(42,"ion-label"),Da(43),hc(44,"translate"),jr(),jr(),jr(),jr(),jr()}2&e&&(Vr("translucent",!0),no(3),Oa(pc(4,21,"lang.options")),no(7),ba(t.getFontLabel(t.date.font)),fa("color",t.date.color),no(1),Oa(mc(12,23,t.today,t.date.format,void 0,pc(13,28,"lang.langISO"))),no(5),Oa(pc(17,30,"lang.format")),no(2),Vr("ngModel",t.date.format),no(1),Vr("ngForOf",t.dateformats),no(2),Vr("ngModel",t.date.color),no(3),Oa(pc(25,32,"lang.color")),no(2),fa("color",t.date.color),no(3),Oa(pc(30,34,"lang.font")),no(2),Vr("ngModel",t.date.font)("interfaceOptions",rc(42,KF))("cancelText",pc(32,36,"lang.cancel")),no(2),Vr("ngForOf",t.datefonts),no(6),Oa(pc(40,38,"lang.save")),no(4),Oa(pc(44,40,"lang.cancel")))},directives:[Vx,vA,mA,Cx,Ax,Nx,Tx,Gx,Zx,uA,ox,rm,Rm,ju,Tf,Bx,hA],pipes:[$C,lh],styles:[".Arial{font-family:Arial,sans-serif} .Verdana{font-family:Verdana,sans-serif} .Helvetica{font-family:Helvetica,sans-serif} .Tahoma{font-family:Tahoma,sans-serif} .Times_New_Roman{font-family:Times New Roman,serif} .Courier_New{font-family:Courier New,monospace}"]}),e})();const eB=["menuTrigger"],tB=["test2"],nB=function(e,t){return{x:e,y:t}};function iB(e,t){if(1&e){const e=qr();Hr(0,"div",1,2),Xr("rzResizing",function(n){Lt(e);const i=t.index;return na().onResizingDate(n,i)})("rzStart",function(){return Lt(e),na().signaturesService.resizing=!0})("movingOffset",function(){return Lt(e),na().signaturesService.dragging=!0})("endOffset",function(n){Lt(e);const i=t.index;return na().moveDate(n,i)})("rzStop",function(n){Lt(e);const i=t.index,s=na();return s.onResizeDateStop(n,i),s.signaturesService.resizing=!1})("click",function(e){return e.stopPropagation()}),Hr(2,"ion-buttons",3),Hr(3,"ion-button",4),Ur(4,"ion-icon",5),jr(),jr(),Hr(5,"mat-menu",null,6),Hr(7,"button",7),Xr("click",function(){Lt(e);const n=t.index;return na().openDateSettings(n)}),Da(8),hc(9,"translate"),jr(),Hr(10,"button",7),Xr("click",function(){Lt(e);const n=t.index;return na().deleteDate(n)}),Da(11),hc(12,"translate"),jr(),jr(),dn(),Hr(13,"svg",8),Hr(14,"text",9),Da(15),hc(16,"date"),hc(17,"translate"),jr(),jr(),jr()}if(2&e){const e=t.$implicit,n=t.index,i=Br(6),s=na();fa("width",e.width,"%")("height",e.height,"%")("height",s.fix),Vr("id","dateDiv_"+n)("position",lc(34,nB,e.positionX*s.signaturesService.workingAreaWidth/100,e.positionY*s.signaturesService.workingAreaHeight/100))("ngDraggable",!s.signaturesService.resizing)("rzAspectRatio",!0)("preventDefaultEvent",!1)("bounds",s.bounds)("inBounds",!0),no(3),Vr("matMenuTriggerFor",i),no(5),Oa(pc(9,23,"lang.options")),no(3),Oa(pc(12,25,"lang.delete")),no(2),Vr("id","testSVG_"+n),no(1),fa("font-family",e.font)("fill",e.color),Ir("font-size",e.size),no(1),Oa(mc(16,27,s.today,e.format,void 0,pc(17,32,"lang.langISO")))}}let sB=(()=>{class e{constructor(e,t,n,i,s,o,r){this.translate=e,this.signaturesService=t,this.notificationService=n,this.localStorage=i,this.dialog=s,this.popoverController=o,this.modalController=r,this.fix="auto",this.today=new Date}ngOnInit(){}moveDate(e,t){const n=100*e.y/this.signaturesService.workingAreaHeight;this.signaturesService.datesContent[this.signaturesService.currentPage][t].positionX=100*e.x/this.signaturesService.workingAreaWidth,this.signaturesService.datesContent[this.signaturesService.currentPage][t].positionY=n,this.localStorage.save(this.signaturesService.mainDocumentId.toString(),JSON.stringify({date:this.signaturesService.datesContent,sign:this.signaturesService.signaturesContent,note:this.signaturesService.notesContent})),this.signaturesService.dragging=!1}onResizingDate(e,t){this.test2.nativeElement.style.height="auto"}onResizeDateStop(e,t){this.test2.nativeElement.style.height="auto",this.signaturesService.datesContent[this.signaturesService.currentPage][t].height=100*e.size.height/this.signaturesService.workingAreaHeight,this.signaturesService.datesContent[this.signaturesService.currentPage][t].width=100*e.size.width/this.signaturesService.workingAreaWidth}deleteDate(e){this.signaturesService.datesContent[this.signaturesService.currentPage].splice(e,1),this.localStorage.save(this.signaturesService.mainDocumentId.toString(),JSON.stringify({date:this.signaturesService.datesContent,sign:this.signaturesService.signaturesContent,note:this.signaturesService.notesContent}))}openDateSettings(e){return t=this,void 0,i=function*(){const t=yield this.modalController.create({component:JF,componentProps:{currentDate:this.signaturesService.datesContent[this.signaturesService.currentPage][e]}});yield t.present();const{data:n}=yield t.onWillDismiss();void 0!==n&&(this.signaturesService.datesContent[this.signaturesService.currentPage][e]=n)},new((n=void 0)||(n=Promise))(function(e,s){function o(e){try{a(i.next(e))}catch(t){s(t)}}function r(e){try{a(i.throw(e))}catch(t){s(t)}}function a(t){var i;t.done?e(t.value):(i=t.value,i instanceof n?i:new n(function(e){e(i)})).then(o,r)}a((i=i.apply(t,[])).next())});var t,n,i}}return e.\u0275fac=function(t){return new(t||e)(zr(GC),zr(sS),zr(ZC),zr(oS),zr(IM),zr(eC),zr(JA))},e.\u0275cmp=$e({type:e,selectors:[["app-document-date-list"]],viewQuery:function(e,t){if(1&e&&(Tc(eB,1),Tc(tB,1)),2&e){let e;Mc(e=Rc())&&(t.menuSign=e.first),Mc(e=Rc())&&(t.test2=e.first)}},inputs:{bounds:"bounds"},decls:1,vars:1,consts:[["class","test","ngResizable","",3,"id","position","width","height","ngDraggable","rzAspectRatio","preventDefaultEvent","bounds","inBounds","rzResizing","rzStart","movingOffset","endOffset","rzStop","click",4,"ngFor","ngForOf"],["ngResizable","",1,"test",3,"id","position","ngDraggable","rzAspectRatio","preventDefaultEvent","bounds","inBounds","rzResizing","rzStart","movingOffset","endOffset","rzStop","click"],["test2",""],[2,"position","absolute","top","-30px","right","0px"],["slot","icon-only","shape","round","color","secondary",3,"matMenuTriggerFor"],["name","ellipsis-vertical"],["menu","matMenu"],["mat-menu-item","",3,"click"],["viewBox","0 0 130 30","preserveAspectRatio","xMinYMin meet",3,"id"],["y","21"]],template:function(e,t){1&e&&Fr(0,iB,18,37,"div",0),2&e&&Vr("ngForOf",t.signaturesService.datesContent[t.signaturesService.currentPage])},directives:[ju,tP,Kk,Cx,Ax,BI,Nx,II,DI],pipes:[$C,lh],styles:[".action-item ion-radio{--color:transparent;--color-checked:transparent}.test[_ngcontent-%COMP%]{position:absolute;border:1px dashed grey;background:hsla(0,0%,100%,.6) none repeat scroll 0 0;background:none;font:sans-serif}svg[_ngcontent-%COMP%]{width:100%;height:100%;pointer-events:none}text[_ngcontent-%COMP%]{pointer-events:auto}svg.text[_ngcontent-%COMP%]{display:block;font-size:inherit}"]}),e})();var oB=function(e,t,n,i){return new(n||(n=Promise))(function(s,o){function r(e){try{l(i.next(e))}catch(t){o(t)}}function a(e){try{l(i.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?s(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(r,a)}l((i=i.apply(e,t||[])).next())})};function rB(e,t){if(1&e){const e=qr();Hr(0,"ion-item",6),Xr("click",function(){Lt(e);const n=t.$implicit;return na().loadVisaWorkflow(n)}),Hr(1,"ion-label"),Da(2),jr(),Hr(3,"ion-buttons",7),Hr(4,"ion-button",8),Xr("click",function(n){Lt(e);const i=t.$implicit,s=na();return n.stopPropagation(),s.removeModel(i)}),Ur(5,"ion-icon",9),jr(),jr(),jr()}if(2&e){const e=t.$implicit;no(2),Oa(e.title)}}let aB=(()=>{class e{constructor(e,t,n,i,s,o){this.http=e,this.translate=t,this.popoverController=n,this.alertController=i,this.notificationService=s,this.authService=o,this.currentWorkflow=[],this.visaWorkflowModels=[]}ngOnInit(){this.getVisaUserModels()}createModel(){return oB(this,void 0,void 0,function*(){const e=yield this.alertController.create({header:this.translate.instant("lang.newTemplate"),message:this.translate.instant("lang.newTemplateDesc"),inputs:[{name:"title",type:"text",placeholder:this.translate.instant("lang.label")+" *"}],buttons:[{text:this.translate.instant("lang.cancel"),role:"cancel",handler:()=>{}},{text:this.translate.instant("lang.validate"),handler:e=>""!==e.title?(this.saveModel(e.title),!0):(this.notificationService.error(this.translate.instant("lang.label")+" "+this.translate.instant("lang.mandatory")),!1)}]});yield e.present()})}saveModel(e){const t={title:e,items:this.currentWorkflow.map(e=>({userId:e.userId,mode:this.authService.getWorkflowMode(e.role),signatureMode:this.authService.getSignatureMode(e.role)}))};this.http.post("../rest/workflowTemplates",t).pipe(Ov(t=>{this.notificationService.success("lang.modelCreated"),this.visaWorkflowModels.push({id:t.id,title:e})}),fv(e=>(this.notificationService.handleErrors(e),lb(!1)))).subscribe()}removeModel(e){return oB(this,void 0,void 0,function*(){const t=yield this.alertController.create({header:this.translate.instant("lang.delete"),message:this.translate.instant("lang.deleteTemplate"),buttons:[{text:this.translate.instant("lang.no"),role:"cancel",handler:()=>{}},{text:this.translate.instant("lang.yes"),handler:()=>{this.http.delete("../rest/workflowTemplates/"+e.id).pipe(Ov(()=>{this.visaWorkflowModels=this.visaWorkflowModels.filter(t=>t.id!==e.id),this.notificationService.success(`Mod\xe8le ${e.title} supprim\xe9`)}),fv(e=>(this.notificationService.handleErrors(e),lb(!1)))).subscribe()}}]});yield t.present()})}getVisaUserModels(){this.http.get("../rest/workflowTemplates").pipe(Ov(e=>{this.visaWorkflowModels=e.workflowTemplates}),fv(e=>(this.notificationService.handleErrors(e),lb(!1)))).subscribe()}loadVisaWorkflow(e){this.http.get("../rest/workflowTemplates/"+e.id).pipe(Ov(e=>{const t=e.workflowTemplate.items.map(e=>({userId:e.userId,userDisplay:e.userLabel,role:"visa"===e.mode?"visa":e.signatureMode,processDate:null,current:!1,modes:["visa"].concat(e.userSignatureModes)}));this.popoverController.dismiss(t)}),fv(e=>(this.notificationService.handleErrors(e),lb(!1)))).subscribe()}}return e.\u0275fac=function(t){return new(t||e)(zr(Db),zr(GC),zr(eC),zr(QA),zr(ZC),zr(rS))},e.\u0275cmp=$e({type:e,selectors:[["app-visa-workflow-models"]],inputs:{currentWorkflow:"currentWorkflow"},decls:11,vars:8,consts:[["lines","none"],["color","secondary"],["button","",3,"click",4,"ngFor","ngForOf"],["button","",3,"disabled","click"],["color","primary","slot","start","name","add-circle-outline"],["color","primary"],["button","",3,"click"],["slot","end"],["fill","clear","slot","icon-only","shape","round","color","danger",3,"click"],["slot","icon-only","name","trash-outline"]],template:function(e,t){1&e&&(Hr(0,"ion-list",0),Hr(1,"ion-list-header"),Hr(2,"ion-label",1),Da(3),hc(4,"translate"),jr(),jr(),Fr(5,rB,6,1,"ion-item",2),Hr(6,"ion-item",3),Xr("click",function(){return t.createModel()}),Ur(7,"ion-icon",4),Hr(8,"ion-label",5),Da(9),hc(10,"translate"),jr(),jr(),jr()),2&e&&(no(3),Oa(pc(4,4,"lang.circuitModels")),no(2),Vr("ngForOf",t.visaWorkflowModels),no(1),Vr("disabled",0===t.currentWorkflow.length),no(3),Oa(pc(10,6,"lang.newTemplate")))},directives:[Qx,Xx,Zx,ju,Gx,Nx,Cx,Ax],pipes:[$C],styles:[""]}),e})();function lB(e,t){if(1&e){const e=qr();Hr(0,"ion-item"),Hr(1,"ion-checkbox",19),Xr("ionChange",function(t){Lt(e),na(2);const n=Br(3);return na().addUser(t.detail.value,n)}),jr(),Hr(2,"ion-label"),Da(3),jr(),Hr(4,"ion-note",13),Da(5),jr(),jr()}if(2&e){const e=t.$implicit;no(1),Vr("value",e),no(2),Ta("",e.firstname," ",e.lastname,""),no(2),Oa(e.email)}}function cB(e,t){if(1&e&&(Hr(0,"ion-list",17),Fr(1,lB,6,4,"ion-item",18),jr()),2&e){const e=na(2);no(1),Vr("ngForOf",e.visaUsersList)}}function dB(e,t){if(1&e){const e=qr();Wr(0),Hr(1,"ion-item",10),Hr(2,"ion-searchbar",11,12),Xr("ngModelChange",function(t){return Lt(e),na().visaUsersSearchVal=t})("ionChange",function(t){return Lt(e),na().getVisaUsers(t)})("ionFocus",function(){return Lt(e),na().visaUsersSearchVal=""}),hc(4,"translate"),jr(),Hr(5,"ion-buttons",13),Hr(6,"ion-button",14),Xr("click",function(t){return Lt(e),na().openVisaWorkflowModels(t)}),hc(7,"translate"),Ur(8,"ion-icon",15),jr(),jr(),jr(),Fr(9,cB,2,1,"ion-list",16),Gr()}if(2&e){const e=na();no(2),Vr("ngModel",e.visaUsersSearchVal)("placeholder",pc(4,4,"lang.searchUser")),no(4),Vr("title",pc(7,6,"lang.circuitModels")),no(3),Vr("ngIf",e.visaUsersList.length>0)}}function uB(e,t){1&e&&(Hr(0,"ion-list"),Hr(1,"ion-item",10),Hr(2,"ion-label",20),Da(3),hc(4,"translate"),jr(),jr(),jr()),2&e&&(no(3),Oa(pc(4,1,"lang.noUserInWorkflow")))}function hB(e,t){1&e&&(Hr(0,"p",31),Da(1),hc(2,"translate"),jr()),2&e&&(no(1),Ma(" ",pc(2,1,"lang.substituteMsg"),""))}function pB(e,t){if(1&e&&(Hr(0,"h2",32),Da(1),jr()),2&e){const e=na().$implicit;Vr("title",e.userDisplay),no(1),Oa(e.userDisplay)}}function gB(e,t){1&e&&(Hr(0,"h2",33),Da(1),hc(2,"translate"),jr()),2&e&&(Vr("title",na().$implicit.userDisplay),no(1),Ma(" ",pc(2,2,"lang.userDeleted"),""))}function fB(e,t){if(1&e&&(Hr(0,"ion-select-option",37),Da(1),hc(2,"translate"),jr()),2&e){const e=t.$implicit,n=na(2),i=n.index,s=n.$implicit,o=na();Vr("value",e)("disabled",!o.isValidRole(i,e,s.role)),no(1),Ma(" ",pc(2,3,"lang."+e+"User")," ")}}function mB(e,t){if(1&e){const e=qr();Hr(0,"p",34),Hr(1,"ion-select",35),Xr("ngModelChange",function(t){return Lt(e),na().$implicit.role=t}),hc(2,"translate"),Fr(3,fB,3,5,"ion-select-option",36),jr(),jr()}if(2&e){const e=na().$implicit,t=na();let n=null;no(1),fa("color",null==(n=t.getRole(e.role))?null:n.color),Vr("ngModel",e.role)("title",pc(2,7,"lang."+e.role+"User"))("interfaceOptions",t.customPopoverOptions)("disabled",!t.editMode),no(2),Vr("ngForOf",e.modes)}}function bB(e,t){if(1&e&&(Hr(0,"ion-note",41),Da(1),hc(2,"translate"),jr()),2&e){const e=na(2).$implicit;no(1),Ta(" ",pc(2,2,"lang."+e.mode+"ProcessInfo")," ",e.processDate," ")}}function vB(e,t){if(1&e&&(Hr(0,"ion-note",42),Da(1),hc(2,"translate"),jr()),2&e){const e=na(2).$implicit;no(1),Ta(" ",pc(2,2,"lang.refProcessInfo")," ",e.processDate," ")}}function yB(e,t){if(1&e&&(Hr(0,"ion-note",43),Da(1),hc(2,"translate"),jr()),2&e){const e=na(2).$implicit;no(1),Ta(" ",pc(2,2,"lang.stopProcessInfo")," ",e.processDate," ")}}function wB(e,t){if(1&e&&(Hr(0,"p",32),Fr(1,bB,3,4,"ion-note",38),Fr(2,vB,3,4,"ion-note",39),Fr(3,yB,3,4,"ion-note",40),jr()),2&e){const e=na().$implicit;Vr("title",e.processDate),no(1),Vr("ngIf","VAL"===e.status),no(1),Vr("ngIf","REF"===e.status),no(1),Vr("ngIf","STOP"===e.status)}}function _B(e,t){1&e&&Ur(0,"ion-icon",44)}function xB(e,t){if(1&e){const e=qr();Hr(0,"ion-button",45),Xr("click",function(t){Lt(e);const n=na().index,i=na();return t.stopPropagation(),i.removeUser(n)}),Ur(1,"ion-icon",46),jr()}}function AB(e,t){if(1&e&&(Hr(0,"ion-item",21),Hr(1,"ion-reorder",2),Ur(2,"ion-icon",22),hc(3,"translate"),jr(),Hr(4,"ion-avatar",23),Xr("click",function(e){return e.stopPropagation()}),Ur(5,"img",24),jr(),Hr(6,"ion-label"),Fr(7,hB,3,3,"p",25),Fr(8,pB,2,2,"h2",26),Fr(9,gB,3,4,"h2",27),Fr(10,mB,4,9,"p",28),Fr(11,wB,4,4,"p",26),jr(),Fr(12,_B,1,0,"ion-icon",29),Hr(13,"ion-buttons",13),Fr(14,xB,2,0,"ion-button",30),jr(),jr()),2&e){const e=t.$implicit,n=na();ma("current",e.current),no(2),Vr("title",pc(3,11,"lang.reorder")),no(3),Vr("src",e.userPicture,os),no(2),Vr("ngIf",e.current&&e.userId!==n.authService.user.id),no(1),Vr("ngIf",""!==e.userDisplay),no(1),Vr("ngIf",""===e.userDisplay),no(1),Vr("ngIf",null===e.processDate),no(1),Vr("ngIf",null!==e.processDate),no(1),Vr("ngIf",!n.editMode&&e.current),no(2),Vr("ngIf",n.editMode)}}let CB=(()=>{class e{constructor(e,t,n,i,s){this.http=e,this.signaturesService=t,this.authService=n,this.notificationService=i,this.popoverController=s,this.editMode=!1,this.visaWorkflow=[],this.loading=!1,this.visaUsersSearchVal="",this.visaUsersList=[],this.showVisaUsersList=!1,this.customPopoverOptions={header:"Roles"},this.roles=[]}ngOnInit(){this.visaWorkflow.forEach((e,t)=>{this.getAvatarUser(t)})}doReorder(e){this.canMoveUser(e)?this.visaWorkflow=e.detail.complete(this.visaWorkflow):(this.notificationService.error("lang.errorUserSignType"),e.detail.complete(!1))}canMoveUser(e){let t=this.array_move(this.visaWorkflow.slice(),e.detail.from,e.detail.to);return t=t.filter(e=>void 0!==e),this.isValidWorkflow(t)}isValidWorkflow(e=this.visaWorkflow){let t=!0;return e.forEach((n,i)=>{-1===["visa","stamp"].indexOf(n.role)&&e.filter((e,t)=>t>i&&"stamp"===e.role).length>0&&(t=!1)}),t}array_move(e,t,n){if(n>=e.length){let t=n-e.length+1;for(;t--;)e.push(void 0)}return e.splice(n,0,e.splice(t,1)[0]),e}getVisaUsers(e){this.showVisaUsersList=!0,""===e.detail.value?this.resetVisaUsersList():e.detail.value.length>=3&&this.http.get("../rest/autocomplete/users?search="+e.detail.value).pipe(Ov(e=>{this.visaUsersList=e}),fv(e=>(this.notificationService.handleErrors(e),lb(!1)))).subscribe()}addUser(e,t){this.resetVisaUsersList(),e.signatureModes.unshift("visa"),this.visaWorkflow.push({userId:e.id,userDisplay:`${e.firstname} ${e.lastname}`,role:e.signatureModes[e.signatureModes.length-1],processDate:null,current:!1,modes:e.signatureModes}),this.isValidWorkflow()||(this.visaWorkflow[this.visaWorkflow.length-1].role="visa"),this.getAvatarUser(this.visaWorkflow.length-1),this.visaUsersSearchVal="",t.setFocus()}removeUser(e){this.visaWorkflow.splice(e,1)}getAvatarUser(e){void 0===this.visaWorkflow[e].userPicture&&""!==this.visaWorkflow[e].userDisplay&&this.http.get("../rest/users/"+this.visaWorkflow[e].userId+"/picture").pipe(Ov(t=>{this.visaWorkflow[e].userPicture=t.picture}),fv(e=>(this.notificationService.handleErrors(e),lb(!1)))).subscribe()}resetVisaUsersList(){this.visaUsersList=[]}openVisaWorkflowModels(e){return t=this,void 0,i=function*(){const t=yield this.popoverController.create({component:aB,componentProps:{currentWorkflow:this.visaWorkflow},event:e});yield t.present(),t.onDidDismiss().then(e=>{"backdrop"!==e.role&&(this.visaWorkflow=this.visaWorkflow.concat(e.data),this.visaWorkflow.forEach((e,t)=>{this.getAvatarUser(t)}))})},new((n=void 0)||(n=Promise))(function(e,s){function o(e){try{a(i.next(e))}catch(t){s(t)}}function r(e){try{a(i.throw(e))}catch(t){s(t)}}function a(t){var i;t.done?e(t.value):(i=t.value,i instanceof n?i:new n(function(e){e(i)})).then(o,r)}a((i=i.apply(t,[])).next())});var t,n,i}getCurrentWorkflow(){return this.visaWorkflow}getRole(e){return this.authService.signatureRoles.filter(t=>t.id===e)[0]}loadWorkflow(e){this.visaWorkflow=e;const t=this.visaWorkflow.length;for(let n=0;n<t;n++)this.getAvatarUser(n)}isValidRole(e,t,n){return!(this.visaWorkflow.filter((t,n)=>n>e&&["stamp"].indexOf(t.role)>-1).length>0&&["visa","stamp"].indexOf(n)>-1&&-1===["visa","stamp"].indexOf(t)||this.visaWorkflow.filter((t,n)=>n<e&&-1===["visa","stamp"].indexOf(t.role)).length>0&&"stamp"===t)}setPositionsWorkfow(e,t){this.clearPositionsFromResource(e),t.length>0&&Object.keys(t).forEach(n=>{const i=Object.assign(Object.assign({},t[n]),{mainDocument:e.mainDocument});this.visaWorkflow[t[n].sequence].signaturePositions=this.visaWorkflow[t[n].sequence].signaturePositions.filter(t=>t.mainDocument!==e.mainDocument),this.visaWorkflow[t[n].sequence].signaturePositions.push(i)})}clearPositionsFromResource(e){this.visaWorkflow.forEach(t=>{t.signaturePositions=t.signaturePositions.filter(t=>t.mainDocument!==e.mainDocument)})}}return e.\u0275fac=function(t){return new(t||e)(zr(Db),zr(sS),zr(rS),zr(ZC),zr(eC))},e.\u0275cmp=$e({type:e,selectors:[["app-visa-workflow"]],viewQuery:function(e,t){if(1&e&&Tc(rA,1),2&e){let e;Mc(e=Rc())&&(t.reorderGroup=e.first)}},inputs:{editMode:"editMode",visaWorkflow:"visaWorkflow"},decls:13,vars:8,consts:[[3,"translucent"],["color","primary"],["slot","start"],["disabled",""],["slot","icon-only","name","list-outline"],[1,"ion-text-center"],[3,"click"],[4,"ngIf"],[3,"disabled","ionItemReorder"],["class","no-ripple",3,"current",4,"ngFor","ngForOf"],["lines","none"],[3,"ngModel","placeholder","ngModelChange","ionChange","ionFocus"],["searchInput",""],["slot","end"],["fill","clear","slot","icon-only","shape","round","color","primary",3,"title","click"],["slot","icon-only","name","albums-outline"],["style","position: absolute;z-index: 2;width: 100%;box-shadow: 0 4px 2px -2px gray;",4,"ngIf"],[2,"position","absolute","z-index","2","width","100%","box-shadow","0 4px 2px -2px gray"],[4,"ngFor","ngForOf"],["color","primary","slot","start",3,"value","ionChange"],["color","medium",1,"ion-text-center"],[1,"no-ripple"],["name","reorder-three",2,"font-size","30px",3,"title"],["slot","start",1,"avatar-user",2,"cursor","grab",3,"click"],[3,"src"],["class","secondary",4,"ngIf"],[3,"title",4,"ngIf"],["class","danger",3,"title",4,"ngIf"],["style","display: flex;justify-content: start;",4,"ngIf"],["color","success","slot","end","name","caret-back-outline",4,"ngIf"],["style","z-index: 9999","fill","clear","slot","icon-only","shape","round","color","danger",3,"click",4,"ngIf"],[1,"secondary"],[3,"title"],[1,"danger",3,"title"],[2,"display","flex","justify-content","start"],["interface","popover",2,"width","auto","max-width","100%","padding-left","0px",3,"ngModel","title","interfaceOptions","disabled","ngModelChange"],[3,"value","disabled",4,"ngFor","ngForOf"],[3,"value","disabled"],["class","valProcess",4,"ngIf"],["class","refProcess",4,"ngIf"],["class","stopProcess",4,"ngIf"],[1,"valProcess"],[1,"refProcess"],[1,"stopProcess"],["color","success","slot","end","name","caret-back-outline"],["fill","clear","slot","icon-only","shape","round","color","danger",2,"z-index","9999",3,"click"],["slot","icon-only","name","trash-outline"]],template:function(e,t){1&e&&(Hr(0,"ion-header",0),Hr(1,"ion-toolbar",1),Hr(2,"ion-buttons",2),Hr(3,"ion-button",3),Ur(4,"ion-icon",4),jr(),jr(),Hr(5,"ion-title",5),Da(6),hc(7,"translate"),jr(),jr(),jr(),Hr(8,"ion-content",6),Xr("click",function(){return t.resetVisaUsersList()}),Fr(9,dB,10,8,"ng-container",7),Fr(10,uB,5,3,"ion-list",7),Hr(11,"ion-reorder-group",8),Xr("ionItemReorder",function(e){return t.doReorder(e)}),Fr(12,AB,15,13,"ion-item",9),jr(),jr()),2&e&&(Vr("translucent",!0),no(6),Oa(pc(7,6,"lang.circuit")),no(3),Vr("ngIf",t.editMode),no(1),Vr("ngIf",0===t.visaWorkflow.length),no(1),Vr("disabled",!t.editMode),no(1),Vr("ngForOf",t.visaWorkflow))},directives:[Vx,vA,Cx,Ax,Nx,mA,Tx,Wu,rA,ju,Gx,lA,ax,rm,Rm,Qx,Dx,J_,Zx,tA,oA,wx,uA,ox,hA],pipes:[$C],styles:[".current[_ngcontent-%COMP%]{border-left:5px solid var(--ion-color-success)}.primary[_ngcontent-%COMP%]{color:var(--ion-color-primary)}.secondary[_ngcontent-%COMP%]{color:var(--ion-color-secondary)}.success[_ngcontent-%COMP%]{color:var(--ion-color-success)}.danger[_ngcontent-%COMP%]{color:var(--ion-color-danger)}.avatar-user[_ngcontent-%COMP%]{width:50px;height:50px;border:solid var(--ion-color-secondary)}ion-select[_ngcontent-%COMP%]{font-size:12px}.no-ripple[_ngcontent-%COMP%]{--ripple-color:transparent}.item-select-disabled[_ngcontent-%COMP%]   ion-label[_ngcontent-%COMP%], .select-disabled[_ngcontent-%COMP%]{opacity:1}.item-select-disabled[_ngcontent-%COMP%]   ion-select[_ngcontent-%COMP%]::part(icon){display:none!important}.valProcess[_ngcontent-%COMP%]{color:var(--ion-color-success)}.refProcess[_ngcontent-%COMP%], .stopProcess[_ngcontent-%COMP%], .valProcess[_ngcontent-%COMP%]{display:flex;justify-content:flex-start;font-size:12px;text-align:right;padding-top:10px;padding-bottom:10px}.refProcess[_ngcontent-%COMP%], .stopProcess[_ngcontent-%COMP%]{color:var(--ion-color-danger)}"]}),e})();function SB(e,t){if(1&e){const e=qr();Hr(0,"ion-item",9),Xr("click",function(){Lt(e);const n=t.$implicit;return na().goTo(n.id)}),Hr(1,"div"),Hr(2,"ion-label",10),Da(3),jr(),Hr(4,"ion-label",11),Da(5),hc(6,"shorten"),jr(),jr(),Ur(7,"ion-icon",12),jr()}if(2&e){const e=t.$implicit;no(3),Oa(e.reference),no(2),Oa(fc(6,2,e.title,50,"..."))}}let kB=(()=>{class e{constructor(e){this.router=e}ngOnInit(){}goTo(e){this.router.navigate(["/documents/"+e])}}return e.\u0275fac=function(t){return new(t||e)(zr(r_))},e.\u0275cmp=$e({type:e,selectors:[["app-associated-documents"]],inputs:{associatedDocuments:"associatedDocuments"},decls:14,vars:6,consts:[[3,"translucent"],["color","primary"],["slot","start"],["disabled",""],["slot","icon-only","name","link-outline"],[1,"ion-text-center"],[1,"secondary"],[2,"display","flex","flex-direction","column","height","100%"],["class","doc-item",3,"click",4,"ngFor","ngForOf"],[1,"doc-item",3,"click"],[1,"sub-label"],["color","primary",1,"ion-text-wrap"],["slot","end","color","medium","name","arrow-forward-outline"]],template:function(e,t){1&e&&(Hr(0,"ion-header",0),Hr(1,"ion-toolbar",1),Hr(2,"ion-buttons",2),Hr(3,"ion-button",3),Ur(4,"ion-icon",4),jr(),jr(),Hr(5,"ion-title",5),Hr(6,"b",6),Da(7),jr(),Da(8),hc(9,"translate"),jr(),jr(),jr(),Hr(10,"ion-content"),Hr(11,"div",7),Hr(12,"ion-list"),Fr(13,SB,8,6,"ion-item",8),jr(),jr(),jr()),2&e&&(Vr("translucent",!0),no(7),Oa(null==t.associatedDocuments?null:t.associatedDocuments.length),no(1),Ma("\xa0",pc(9,4,"lang.associatedDocuments"),""),no(5),Vr("ngForOf",t.associatedDocuments))},directives:[Vx,vA,Cx,Ax,Nx,mA,Tx,Qx,ju,Gx,Zx],pipes:[$C,lP],styles:[".mat-list-item[_ngcontent-%COMP%]{height:auto!important;text-align:center}.mat-card[_ngcontent-%COMP%]{box-shadow:none;border:1px solid #e0e0e0}.mat-icon[_ngcontent-%COMP%]{height:auto}img[_ngcontent-%COMP%]{pointer-events:none}.secondary[_ngcontent-%COMP%]{color:var(--ion-color-secondary)}.doc-item[_ngcontent-%COMP%]{--inner-padding-bottom:10px;--inner-padding-top:10px;cursor:pointer}.sub-label[_ngcontent-%COMP%]{font-size:11px;--color:var(--ion-color-medium)}"]}),e})();function PB(e,t){1&e&&(Hr(0,"ion-card"),Hr(1,"ion-item",13),Ur(2,"ion-icon",14),Hr(3,"ion-label"),Da(4),hc(5,"translate"),jr(),jr(),jr()),2&e&&(no(4),Oa(pc(5,1,"lang.docIsInMailGroup")))}function EB(e,t){if(1&e&&(Hr(0,"ion-item",8),Hr(1,"ion-label",9),Da(2),hc(3,"translate"),jr(),Ur(4,"ion-input",10),jr()),2&e){const e=na();Vr("title",e.mainDocument.description),no(2),Oa(pc(3,3,"lang.description")),no(2),Vr("value",e.mainDocument.description)}}function DB(e,t){if(1&e&&(Hr(0,"ion-item",8),Hr(1,"ion-label",9),Da(2),hc(3,"translate"),jr(),Ur(4,"ion-input",10),jr()),2&e){const e=na();Vr("title",e.mainDocument.deadline),no(2),Oa(pc(3,3,"lang.processingDeadline")),no(2),Vr("value",e.mainDocument.deadline)}}function OB(e,t){if(1&e&&(Hr(0,"ion-item"),Hr(1,"ion-label",9),Da(2),hc(3,"translate"),jr(),Ur(4,"ion-input",10),jr()),2&e){const e=t.$implicit;no(2),Oa(pc(3,2,e.label)),no(2),Vr("value",e.value)}}let MB=(()=>{class e{constructor(e,t){this.signaturesService=e,this.functionsService=t,this.loading=!1}ngOnInit(){}}return e.\u0275fac=function(t){return new(t||e)(zr(sS),zr(LF))},e.\u0275cmp=$e({type:e,selectors:[["app-main-document-detail"]],inputs:{mainDocument:"mainDocument"},decls:29,vars:23,consts:[[3,"translucent"],["color","primary"],["slot","start"],["disabled",""],["slot","icon-only","name","information-circle"],[1,"ion-text-center"],[4,"ngIf"],["lines","full",1,"ion-no-margin"],[3,"title"],["color","secondary","position","floating"],["readonly","",3,"value"],[3,"title",4,"ngIf"],[4,"ngFor","ngForOf"],["color","danger"],["name","alert-circle","slot","start"]],template:function(e,t){1&e&&(Hr(0,"ion-header",0),Hr(1,"ion-toolbar",1),Hr(2,"ion-buttons",2),Hr(3,"ion-button",3),Ur(4,"ion-icon",4),jr(),jr(),Hr(5,"ion-title",5),Da(6),hc(7,"translate"),jr(),jr(),jr(),Hr(8,"ion-content"),Fr(9,PB,6,3,"ion-card",6),Hr(10,"ion-list",7),Hr(11,"ion-item",8),Hr(12,"ion-label",9),Da(13),hc(14,"translate"),jr(),Ur(15,"ion-input",10),jr(),Fr(16,EB,5,5,"ion-item",11),Fr(17,DB,5,5,"ion-item",11),Hr(18,"ion-item",8),Hr(19,"ion-label",9),Da(20),hc(21,"translate"),jr(),Ur(22,"ion-input",10),jr(),Hr(23,"ion-item",8),Hr(24,"ion-label",9),Da(25),hc(26,"translate"),jr(),Ur(27,"ion-input",10),jr(),Fr(28,OB,5,4,"ion-item",12),jr(),jr()),2&e&&(Vr("translucent",!0),no(6),Oa(pc(7,15,"lang.informations")),no(3),Vr("ngIf",!t.functionsService.empty(t.mainDocument.mailingId)),no(2),Vr("title",t.mainDocument.sender),no(2),Oa(pc(14,17,"lang.emittedBy")),no(2),Vr("value",t.mainDocument.sender),no(1),Vr("ngIf",null!=t.mainDocument.description),no(1),Vr("ngIf",null!=t.mainDocument.deadline),no(1),Vr("title",t.mainDocument.reference),no(2),Oa(pc(21,19,"lang.reference")),no(2),Vr("value",t.mainDocument.reference),no(1),Vr("title",t.mainDocument.title),no(2),Oa(pc(26,21,"lang.subject")),no(2),Vr("value",t.mainDocument.title),no(1),Vr("ngForOf",t.mainDocument.metadata))},directives:[Vx,vA,Cx,Ax,Nx,mA,Tx,Wu,Qx,Gx,Zx,Wx,ax,ju,Sx],pipes:[$C],styles:[".mat-list-item[_ngcontent-%COMP%]{height:auto!important;text-align:center}.mat-card[_ngcontent-%COMP%]{box-shadow:none;border:1px solid #e0e0e0}.mat-icon[_ngcontent-%COMP%]{height:auto}.current[_ngcontent-%COMP%]{box-shadow:0 0 20px 0 #656565}.panel-header[_ngcontent-%COMP%]{box-shadow:0 0 10px 0 #656565;color:#fff;background:#135f7f;height:65px;justify-content:center;font-size:20px;align-items:center}.panel-content[_ngcontent-%COMP%], .panel-header[_ngcontent-%COMP%]{display:flex;position:relative}.panel-content[_ngcontent-%COMP%]{flex-direction:column;height:100%;overflow:hidden}.closePanel[_ngcontent-%COMP%]{position:absolute;left:0;font-size:24px}.panel-content[_ngcontent-%COMP%]    .mat-form-field-label{color:#f99830}.panel-content[_ngcontent-%COMP%]    .mat-input-element:disabled{color:#135f7f}"]}),e})();var TB=function(e,t,n,i){return new(n||(n=Promise))(function(s,o){function r(e){try{l(i.next(e))}catch(t){o(t)}}function a(e){try{l(i.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?s(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(r,a)}l((i=i.apply(e,t||[])).next())})};const IB=["mainContent"],RB=["img"],LB=["snav"],FB=["dragElem"],BB=["appDocumentNotePad"],zB=["appDocumentList"],VB=["rightContent"],NB=["pagesList"];function HB(e,t){if(1&e){const e=qr();Hr(0,"ion-segment-button",20),Xr("click",function(){return Lt(e),na(2).openAssociatedDocuments()}),Hr(1,"ion-label",11),Da(2),hc(3,"ucfirst"),hc(4,"translate"),jr(),Ur(5,"ion-icon",21),Hr(6,"ion-badge",15),Da(7),jr(),jr()}if(2&e){const e=na(2);no(2),Oa(pc(3,2,pc(4,4,"lang.associatedDocuments"))),no(5),Ma(" ",e.mainDocument.linkedDocuments.length," ")}}function jB(e,t){if(1&e){const e=qr();Hr(0,"ion-buttons",22),Hr(1,"ion-button",23),Xr("click",function(t){return Lt(e),na(2).openAction(t)}),Ur(2,"ion-icon",24),jr(),jr()}}function UB(e,t){if(1&e){const e=qr();Hr(0,"ion-header",6),Hr(1,"ion-toolbar",7),Hr(2,"ion-buttons",8),Ur(3,"ion-menu-button"),jr(),Hr(4,"ion-segment",9),Xr("ionChange",function(t){return Lt(e),na().signaturesService.currentToobal=t.detail.value}),Hr(5,"ion-segment-button",10),Xr("click",function(){return Lt(e),na().openMainDocumentDetail()}),Hr(6,"ion-label",11),Da(7),hc(8,"translate"),jr(),Ur(9,"ion-icon",12),jr(),Hr(10,"ion-segment-button",13),Xr("click",function(){return Lt(e),na().openDocumentList()}),Hr(11,"ion-label",11),Da(12),hc(13,"ucfirst"),hc(14,"translate"),jr(),Ur(15,"ion-icon",14),Hr(16,"ion-badge",15),Da(17),jr(),jr(),Fr(18,HB,8,6,"ion-segment-button",16),Hr(19,"ion-segment-button",17),Xr("click",function(){return Lt(e),na().openVisaWorkflow()}),Hr(20,"ion-label",11),Da(21),hc(22,"translate"),jr(),Ur(23,"ion-icon",18),Hr(24,"ion-badge",15),Da(25),jr(),jr(),jr(),Fr(26,jB,3,0,"ion-buttons",19),jr(),jr()}if(2&e){const e=na();Vr("translucent",!0),no(4),Vr("value",e.signaturesService.currentToobal),no(3),Oa(pc(8,9,"lang.informations")),no(5),Oa(pc(13,11,pc(14,13,"lang.attachedElements"))),no(5),Ma(" ",e.mainDocument.attachments.length+1," "),no(1),Vr("ngIf",void 0!==e.mainDocument.linkedDocuments&&e.mainDocument.linkedDocuments.length>0),no(3),Oa(pc(22,15,"lang.circuit")),no(4),Ma(" ",e.mainDocument.workflow.length," "),no(1),Vr("ngIf",!e.detailMode)}}function WB(e,t){1&e&&(Hr(0,"ion-toolbar",25),Hr(1,"ion-label",26),Da(2),hc(3,"translate"),jr(),jr()),2&e&&(no(2),Oa(pc(3,1,"lang.substitutionInfo")))}function GB(e,t){1&e&&(Hr(0,"ion-toolbar",27),Hr(1,"ion-label",26),Da(2),hc(3,"translate"),jr(),jr()),2&e&&(no(2),Oa(pc(3,1,"lang.convertingDocument")))}function $B(e,t){if(1&e){const e=qr();Hr(0,"ion-fab-button",40),Xr("movingOffset",function(){return Lt(e),na(3).signaturesService.dragging=!0})("endOffset",function(){return Lt(e),na(3).signaturesService.dragging=!1})("click",function(){return Lt(e),na(3).expandedNote=!0}),hc(1,"translate"),Ur(2,"ion-icon",41),jr()}if(2&e){na(2);const e=Br(7),t=na();Vr("bounds",e)("inBounds",!0)("title",pc(1,4,"lang.expandNote"))("disabled",t.signaturesService.dragging)}}function qB(e,t){if(1&e&&(Wr(0),Hr(1,"div",48),Da(2),jr(),Hr(3,"div",49),Da(4),jr(),Gr()),2&e){const e=na(4);no(2),Ta(" ",e.mainDocument.notes.creator," (",e.mainDocument.notes.creationDate,") : "),no(2),Ma(" ",e.mainDocument.notes.value," ")}}function YB(e,t){if(1&e&&(Hr(0,"div"),Hr(1,"div",48),Da(2),jr(),Hr(3,"div",49),Da(4),jr(),jr()),2&e){const e=na().$implicit;no(2),Ta(" ",e.userDisplay," (",e.processDate,") : "),no(2),Ma(" ",e.note," ")}}function ZB(e,t){if(1&e&&(Wr(0),Fr(1,YB,5,3,"div",3),Gr()),2&e){const e=t.$implicit;no(1),Vr("ngIf",e.note)}}function QB(e,t){if(1&e){const e=qr();Hr(0,"div",42),Xr("movingOffset",function(){return Lt(e),na(3).signaturesService.dragging=!0})("endOffset",function(){return Lt(e),na(3).signaturesService.dragging=!1}),Hr(1,"div",43),Ur(2,"i",44),Hr(3,"span",45),Da(4),hc(5,"translate"),jr(),Hr(6,"i",46),Xr("click",function(){return Lt(e),na(3).expandedNote=!1}),hc(7,"translate"),jr(),jr(),Fr(8,qB,5,3,"ng-container",3),Fr(9,ZB,2,1,"ng-container",47),jr()}if(2&e){na(2);const e=Br(7),t=na();Vr("bounds",e)("inBounds",!0),no(4),Oa(pc(5,6,"lang.note")),no(2),Vr("title",pc(7,8,"lang.collapseNote")),no(2),Vr("ngIf",null!=t.mainDocument.notes),no(1),Vr("ngForOf",t.mainDocument.workflow)}}function XB(e,t){if(1&e&&(Wr(0),Fr(1,$B,3,6,"ion-fab-button",38),Fr(2,QB,10,10,"div",39),Gr()),2&e){const e=na(2);no(1),Vr("ngIf",!e.expandedNote),no(1),Vr("ngIf",e.expandedNote)}}function KB(e,t){1&e&&Ur(0,"app-document-note-list")}function JB(e,t){1&e&&Ur(0,"app-document-sign-list",50),2&e&&(na(),Vr("bounds",Br(7)))}function ez(e,t){1&e&&Ur(0,"app-document-date-list",50),2&e&&(na(),Vr("bounds",Br(7)))}function tz(e,t){if(1&e){const e=qr();Hr(0,"ion-img",51,52),Xr("ionImgDidLoad",function(t){return Lt(e),na(2).imageLoaded(t)}),jr()}if(2&e){const e=na(2);fa("width",e.signaturesService.workingAreaWidth,"px")("height",e.signaturesService.workingAreaHeight,"px"),Vr("src",e.docList[e.currentDoc].imgContent[e.pageNum])}}function nz(e,t){if(1&e&&(Hr(0,"ion-select-option",59),Da(1),jr()),2&e){const e=t.index,n=na(3);Vr("value",e+1)("disabled",e+1===n.pageNum),no(1),Oa(e+1)}}const iz=function(e){return{cssClass:e}};function sz(e,t){if(1&e){const e=qr();Hr(0,"section",53),Hr(1,"div",54),Da(2),jr(),Hr(3,"div",55),Xr("click",function(t){return Lt(e),na(2).openSelect(t)}),Da(4),hc(5,"translate"),jr(),Hr(6,"ion-select",56,57),Xr("ngModelChange",function(t){return Lt(e),na(2).pageNum=t})("ionChange",function(t){return Lt(e),na(2).goTo(t.target.value)}),Fr(8,nz,2,3,"ion-select-option",58),jr(),jr()}if(2&e){const e=na(2);no(2),Ma(" ",e.docList[e.currentDoc].title," "),no(2),Ia("",pc(5,7,"lang.page")," ",e.pageNum," / ",e.totalPages,""),no(2),Vr("ngModel",e.pageNum)("interfaceOptions",ac(9,iz,e.totalPages>10?"popover-class":"custom-popover-class")),no(2),Vr("ngForOf",e.pagesArray(e.totalPages))}}function oz(e,t){1&e&&(Hr(0,"ion-item",60),Ur(1,"ion-icon",61),Hr(2,"ion-label"),Da(3),hc(4,"translate"),jr(),jr()),2&e&&(no(3),Oa(pc(4,1,"lang.certifiedDocument")))}function rz(e,t){if(1&e){const e=qr();Hr(0,"ion-fab-button",64),Xr("click",function(){return Lt(e),na(3).prevPage()}),Ur(1,"ion-icon",65),jr()}}function az(e,t){if(1&e){const e=qr();Hr(0,"ion-fab-button",66),Xr("click",function(){return Lt(e),na(3).nextPage()}),Ur(1,"ion-icon",67),jr()}}function lz(e,t){if(1&e&&(Wr(0),Fr(1,rz,2,0,"ion-fab-button",62),Fr(2,az,2,0,"ion-fab-button",63),Gr()),2&e){const e=na(2);no(1),Vr("ngIf",e.pageNum>1&&!e.loadingImage),no(1),Vr("ngIf",e.pageNum<e.totalPages&&!e.loadingImage)}}function cz(e,t){if(1&e){const e=qr();Hr(0,"ion-content",null,28),Fr(2,XB,3,2,"ng-container",3),Hr(3,"div",29),Hr(4,"drag-scroll",30,31),Xr("click",function(t){Lt(e);const n=na();return 0==n.currentDoc&&!n.detailMode&&n.openAction(t)}),Hr(6,"div",32,33),Fr(8,KB,1,0,"app-document-note-list",3),Fr(9,JB,1,1,"app-document-sign-list",34),Fr(10,ez,1,1,"app-document-date-list",34),Fr(11,tz,2,5,"ion-img",35),jr(),jr(),jr(),Fr(12,sz,9,11,"section",36),Fr(13,oz,5,3,"ion-item",37),Fr(14,lz,3,2,"ng-container",3),jr()}if(2&e){const e=na();no(2),Vr("ngIf",null!=e.mainDocument.notes||e.hasWorkflowNotes),no(2),fa("max-width",e.signaturesService.workingAreaWidth,"px"),Vr("drag-scroll-disabled",(e.signaturesService.dragging||e.signaturesService.resizing)&&e.signaturesService.mobileMode)("drag-disabled",(e.signaturesService.dragging||e.signaturesService.resizing)&&!e.signaturesService.mobileMode),no(2),fa("width",e.signaturesService.workingAreaWidth,"px")("height",e.signaturesService.workingAreaHeight,"px"),no(2),Vr("ngIf",0==e.currentDoc&&!e.loadingImage),no(1),Vr("ngIf",0===e.currentDoc&&!e.loadingImage&&e.signaturesService.signaturesContent[e.pageNum]),no(1),Vr("ngIf",0===e.currentDoc&&!e.loadingImage&&e.signaturesService.datesContent[e.pageNum]),no(1),Vr("ngIf",void 0!==e.docList[e.currentDoc]&&!e.functionsService.empty(e.docList[e.currentDoc].imgContent[e.pageNum])),no(1),Vr("ngIf",!e.signaturesService.dragging&&!e.signaturesService.resizing&&e.docList[e.currentDoc]),no(1),Vr("ngIf",e.mainDocument.isCertified),no(1),Vr("ngIf",!e.signaturesService.dragging&&!e.signaturesService.resizing&&!e.loadingImage)}}function dz(e,t){if(1&e&&Ur(0,"ion-icon",72),2&e){const e=na().$implicit;Vr("slot","start")("name",e.logo)}}function uz(e,t){if(1&e){const e=qr();Hr(0,"ion-button",70),Xr("click",function(){Lt(e);const n=t.$implicit;return na(2).launchEvent(n)}),Fr(1,dz,1,2,"ion-icon",71),Hr(2,"ion-label",26),Da(3),hc(4,"translate"),jr(),jr()}if(2&e){const e=t.$implicit;Vr("disabled","CONVERTING"===na(2).mainDocument.status)("color",e.color),no(1),Vr("ngIf",""!==e.logo),no(2),Oa(pc(4,4,e.label))}}function hz(e,t){if(1&e&&(Hr(0,"ion-footer",68),Fr(1,uz,5,6,"ion-button",69),jr()),2&e){const e=na();no(1),Vr("ngForOf",e.actionsList)}}function pz(e,t){1&e&&Ur(0,"app-visa-workflow",77),2&e&&Vr("visaWorkflow",na(2).mainDocument.workflow)}function gz(e,t){if(1&e){const e=qr();Hr(0,"app-document-list",78,79),Xr("triggerEvent",function(t){return Lt(e),na(2).loadDoc(t)}),jr()}if(2&e){const e=na(2);Vr("currentDocId",e.currentDoc)("docList",e.docList)}}function fz(e,t){1&e&&Ur(0,"app-associated-documents",80,81),2&e&&Vr("associatedDocuments",na(2).mainDocument.linkedDocuments)}function mz(e,t){1&e&&Ur(0,"app-main-document-detail",82,83),2&e&&Vr("mainDocument",na(2).mainDocument)}function bz(e,t){if(1&e&&(Fr(0,pz,1,1,"app-visa-workflow",73),Fr(1,gz,2,2,"app-document-list",74),Fr(2,fz,2,1,"app-associated-documents",75),Fr(3,mz,2,1,"app-main-document-detail",76)),2&e){const e=na();Vr("ngIf","visaWorkflow"==e.signaturesService.currentToobal),no(1),Vr("ngIf","documentList"==e.signaturesService.currentToobal),no(1),Vr("ngIf","associatedDocuments"==e.signaturesService.currentToobal),no(1),Vr("ngIf","mainDocumentDetail"==e.signaturesService.currentToobal)}}let vz=(()=>{class e{constructor(e,t,n,i,s,o,r,a,l,c,d,u,h,p,g,f,m,b,v,y,w,_,x){this.translate=e,this.router=t,this.route=n,this.http=i,this.signaturesService=s,this.notificationService=o,this.cookieService=r,this.sanitizer=a,this.dialog=l,this.bottomSheet=c,this.authService=d,this.localStorage=u,this.menu=h,this.actionSheetController=p,this.loadingController=g,this.viewContainerRef=f,this.modalController=m,this.pdfViewerService=b,this.alertController=v,this.signatureMethodService=y,this.navCtrl=w,this.functionsService=_,this.actionsService=x,this.posX=0,this.posY=0,this.enterApp=!0,this.detailMode=!1,this.pageNum=1,this.signaturesContent=[],this.currentDoc=0,this.docList=[],this.actionsList=[{id:2,label:"lang.reject",color:"danger",logo:"thumbs-down-outline",event:"refuseDocument"},{id:3,label:"lang.signatures",color:"",logo:"",event:"openSignatures"},{id:1,label:"lang.validate",color:"success",logo:"thumbs-up-outline",event:"validateDocument"}],this.freezeSidenavClose=!1,this.startX=0,this.startY=0,this.widthDoc="100%",this.resetDragPos=!1,this.mainDocument={id:0,status,attachments:[],workflow:[]},this.loadingUI=!1,this.expandedNote=!0,this.hasWorkflowNotes=!1,this.currentTool="info",this.load=null,this.dragging=!1,this.resizing=!1,this.pdfname=null,this.loadingdocument=!0,this.loadingpdf=!1,this.loadingImage=!0,this.fileContent="",this.draggable=!1}imageLoaded(e){this.getImageDimensions(!0),this.load.dismiss(),this.menu.enable(!0,"right-menu"),this.loadingImage=!1,document.getElementsByClassName("drag-scroll-content")[0].scrollTop=0}getImageDimensions(e=!1){const t=new Image;t.onload=t=>{this.signaturesService.workingAreaWidth=t.target.naturalWidth,this.signaturesService.workingAreaHeight=t.target.naturalHeight,e&&this.getAreaDimension()},t.src=this.docList[this.currentDoc].imgContent[this.pageNum]}getAreaDimension(){const e=100*this.mainContent.el.offsetWidth/this.signaturesService.workingAreaWidth;this.signaturesService.workingAreaWidth=e*this.signaturesService.workingAreaWidth/100,this.signaturesService.workingAreaHeight=e*this.signaturesService.workingAreaHeight/100}openAction(e){return TB(this,void 0,void 0,function*(){this.posX=e.clientX,this.posY=e.clientY;const t=[];this.checkEmptyNote()||t.push({text:this.translate.instant("lang.cancelPreviousNote"),icon:"arrow-undo-outline",handler:()=>{this.undoTag()}}),this.signaturesService.stampLock||t.push({text:this.translate.instant("lang.affixSignature"),icon:"ribbon-outline",handler:()=>{this.openSignatures()}}),t.push({text:this.translate.instant("lang.annotateDocument"),icon:"receipt-outline",handler:()=>{this.openNoteEditor()}}),this.checkEmptiness()||t.push({text:this.translate.instant("lang.deleteAll"),icon:"color-wand-outline",handler:()=>{this.removeTags()}});const n=yield this.actionSheetController.create({header:"Actions",cssClass:"my-custom-class",buttons:t});yield n.present()})}openSignatures(){return TB(this,void 0,void 0,function*(){const e=yield this.modalController.create({component:bF,cssClass:"my-custom-class",componentProps:{currentWorflow:this.mainDocument.workflow.filter(e=>!0===e.current)[0],content:this.fileContent}});yield e.present();const{data:t}=yield e.onWillDismiss();this.dragging=!1,void 0!==t&&("success"===t||void 0!==t.redirectPage&&this.goTo(t.redirectPage))})}openNoteEditor(){return TB(this,void 0,void 0,function*(){const e=yield this.modalController.create({component:SF,cssClass:"fullscreen",componentProps:{precentScrollLeft:this.posX,precentScrollTop:this.posY,content:this.docList[this.currentDoc].imgContent[this.pageNum]}});yield e.present(),yield e.onWillDismiss()})}scrollToElem(){const e=this.signaturesService.signaturesContent[this.pageNum][this.signaturesService.signaturesContent[this.pageNum].length-1].positionY-75-($("#myBounds")[0].getBoundingClientRect().top-70)-$(window).height();document.getElementsByClassName("drag-scroll-content")[0].scrollTo(1e3,-e)}ionViewWillEnter(){this.signaturesService.initTemplate(this.rightContent,this.viewContainerRef,"rightContent")}ngOnInit(){this.menu.enable(!1,"right-menu"),this.menu.enable(!0,"left-menu"),this.route.params.subscribe(e=>{void 0!==e.id&&this.loadingController.create({message:this.translate.instant("lang.loadingDocument"),spinner:"dots"}).then(t=>{this.load=t,this.load.present(),this.http.get("../rest/documents/"+e.id).pipe(Ov(e=>{this.mainDocument=e.document,this.mainDocument.workflow=this.mainDocument.workflow.map(e=>(e.note&&(this.hasWorkflowNotes=!0),e.userSignatureModes.unshift("visa"),Object.assign(Object.assign({},e),{role:"visa"===e.mode?"visa":e.signatureMode,modes:e.userSignatureModes}))),this.totalPages=this.mainDocument.pages,this.signaturesService.mainDocumentId=this.mainDocument.id,this.signaturesService.totalPage=this.mainDocument.pages,this.menu.enable(!0,"right-menu"),this.initDoc();const t=this.mainDocument.workflow.filter(e=>!0===e.current);this.mainDocument.isCertified=this.mainDocument.workflow.filter(e=>"REF"!==e.status&&"STOP"!==e.status&&"sign"===e.mode&&"stamp"!==e.signatureMode&&null!==e.processDate).length>0,0===t.length||this.mainDocument.readOnly?(this.actionsList=[{id:4,label:"lang.back",color:"medium",logo:"chevron-back-outline",event:"back"}],this.detailMode=!0):(this.signaturesService.stampLock=this.mainDocument.isCertified&&("stamp"===t[0].signatureMode&&"sign"===t[0].mode||"visa"===t[0].mode),t[0].userId!==this.authService.user.id?this.http.get("../rest/users/"+t[0].userId+"/signatures").subscribe(e=>{this.signaturesService.signaturesListSubstituted=e.signatures}):this.signaturesService.signaturesListSubstituted=[],t[0].datePositions.length>0&&this.functionsService.empty(this.signaturesService.datesContent)&&t[0].datePositions.forEach(e=>{this.signaturesService.datesContent[e.page]||(this.signaturesService.datesContent[e.page]=[]),this.signaturesService.datesContent[e.page][0]={width:e.width,height:e.height,positionX:e.positionX,positionY:e.positionY,font:e.font,size:e.size,color:e.color,format:e.format}})),this.docList.push({id:this.mainDocument.id,title:this.mainDocument.title,pages:this.mainDocument.pages,imgContent:[],imgUrl:"../rest/documents/"+this.mainDocument.id+"/thumbnails"}),this.mainDocument.attachments.forEach(e=>{this.docList.push({id:e.id,title:e.title,pages:e.pages,imgContent:[],imgUrl:"../rest/attachments/"+e.id+"/thumbnails"})}),this.menu.enable(!0,"right-menu"),this.renderImage(),this.loadingdocument=!1}),fv(e=>(console.log("error",e),setTimeout(()=>{this.load.dismiss()},200),this.notificationService.handleErrors(e),this.router.navigate(["/home"]),lb(!1)))).subscribe()})})}renderPdf(){this.http.get("../rest/documents/"+this.docList[this.currentDoc].id+"/content").subscribe(e=>{this.pdfname="data:application/pdf;base64,"+e.encodedDocument,this.loadingpdf=!0})}onPagesLoaded(e){return TB(this,void 0,void 0,function*(){this.totalPages=e.pagesCount,this.exportAsImage()})}exportAsImage(){return TB(this,void 0,void 0,function*(){const e=yield this.pdfViewerService.getPageAsImage(this.pageNum,{width:1e3});this.docList[this.currentDoc].imgContent[this.pageNum]=e,this.loadingpdf=!1,this.load.dismiss()})}renderImage(){void 0===this.docList[this.currentDoc].imgContent[this.pageNum]&&(0===this.currentDoc?this.http.get("../rest/documents/"+this.docList[this.currentDoc].id+"/thumbnails/"+this.pageNum).pipe(Ov(e=>{this.docList[this.currentDoc].imgContent[this.pageNum]="data:image/png;base64,"+e.fileContent,this.fileContent=e.fileContent}),fv(e=>(this.load.dismiss(),this.notificationService.handleErrors(e),this.router.navigate(["/home"]),lb(!1)))).subscribe():this.http.get("../rest/attachments/"+this.docList[this.currentDoc].id+"/thumbnails/"+this.pageNum).pipe(Ov(e=>{this.docList[this.currentDoc].imgContent[this.pageNum]="data:image/png;base64,"+e.fileContent}),fv(e=>(this.load.dismiss(),this.notificationService.handleErrors(e),this.router.navigate(["/home"]),lb(!1)))).subscribe())}initDoc(){this.docList=[],this.signaturesService.signaturesContent=[],this.signaturesService.notesContent=[],this.signaturesService.datesContent=[],this.signaturesService.currentToobal="mainDocumentDetail";const e=this.localStorage.get(this.mainDocument.id.toString());if(e){const t=JSON.parse(e);this.signaturesService.notesContent=void 0!==t.note?t.note:[],this.signaturesService.signaturesContent=void 0!==t.sign?t.sign:[],this.signaturesService.datesContent=void 0!==t.date?t.date:[]}this.signaturesService.currentAction=0,this.signaturesService.currentPage=1,this.pageNum=1,this.signaturesContent.currentDoc=1,this.currentDoc=0}testDrag(e){const t=e.source.getRootElement(),n=t.getBoundingClientRect(),i=this.getPosition(t);this.signaturesService.y=n.y-i.top,this.signaturesService.x=n.x-i.left}getPosition(e){let t=0,n=0;for(;e&&!isNaN(e.offsetLeft)&&!isNaN(e.offsetTop);)t+=e.offsetLeft-e.scrollLeft,n+=e.offsetTop-e.scrollTop,e=e.offsetParent;return{top:n,left:t}}zoomForNotes(){this.widthDoc="200%",this.signaturesService.scale=2,$(".example-box").css({transform:"translate3d("+this.signaturesService.x*this.signaturesService.scale+"px, "+this.signaturesService.y*this.signaturesService.scale+"px, 0px)"}),this.signaturesService.workingAreaHeight*=this.signaturesService.scale,this.signaturesService.workingAreaWidth*=this.signaturesService.scale}zoomForView(){this.resetDragPos=!0,this.widthDoc="100%",this.signaturesService.workingAreaHeight=this.signaturesService.workingAreaHeight/2,this.signaturesService.workingAreaWidth=this.signaturesService.workingAreaWidth/2,setTimeout(()=>{this.resetDragPos=!1},200),this.signaturesService.scale=1}prevPage(){this.loadingImage=!0,this.pageNum--,0===this.pageNum&&(this.pageNum=1),0===this.currentDoc&&(this.signaturesService.currentPage=this.pageNum),this.renderImage()}nextPage(){this.loadingImage=!0,this.pageNum>=this.totalPages?this.pageNum=this.totalPages:this.pageNum++,0===this.currentDoc&&(this.signaturesService.currentPage=this.pageNum),this.renderImage()}goTo(e){this.loadingController.create({message:this.translate.instant("lang.loadingDocument"),spinner:"dots"}).then(e=>{this.load=e,this.load.present(),this.loadingImage=!0,this.load.dismiss()}),this.pageNum=e,0===this.currentDoc&&(this.signaturesService.currentPage=this.pageNum),this.renderImage()}pagesArray(e){return Array(e)}initWorkingArea(){}refuseDocument(){return TB(this,void 0,void 0,function*(){let e=this.translate.instant("lang.rejectDocumentWarning");0===this.signaturesService.notesContent.length&&(e=this.translate.instant("lang.refuseDocumentWithoutNote"));const t=yield this.alertController.create({cssClass:"custom-alert-danger",header:this.translate.instant("lang.reject"),message:e,inputs:[{name:"paragraph",id:"paragraph",type:"textarea",placeholder:this.translate.instant("lang.addReason")}],buttons:[{text:this.translate.instant("lang.reject"),handler:e=>TB(this,void 0,void 0,function*(){const t=yield this.actionsService.checkGroupMail(this.mainDocument,"reject"),n=yield this.signatureMethodService.launchDefaultMode(e.paragraph,t);this.functionsService.empty(n)||(this.bottomSheet.open(PF,{disableClose:!0,direction:"ltr"}),this.localStorage.remove(this.mainDocument.id.toString()))})}]});yield t.present()})}validateDocument(e){return TB(this,void 0,void 0,function*(){let e=this.translate.instant("lang.validateDocumentWarning");0===this.signaturesService.signaturesContent.length&&0===this.signaturesService.notesContent.length&&(e=this.translate.instant("lang.validateDocumentWithoutSignOrNote")),this.signaturesService.stampLock&&(e=this.translate.instant("lang.certifiedDocumentMsg2"));const t=yield this.alertController.create({cssClass:"custom-alert-success",header:this.translate.instant("lang.validate"),message:e,inputs:[{name:"paragraph",id:"paragraph",type:"textarea",placeholder:this.translate.instant("lang.addReason")}],buttons:[{text:this.translate.instant("lang.validate"),handler:e=>TB(this,void 0,void 0,function*(){const t=this.mainDocument.workflow.filter(e=>!0===e.current)[0],n=yield this.actionsService.checkGroupMail(this.mainDocument,"validate"),i=yield this.signatureMethodService.checkAuthenticationAndLaunchAction(t,e.paragraph,n);this.functionsService.empty(i)||(this.bottomSheet.open(jF,{disableClose:!0,direction:"ltr"}),this.localStorage.remove(this.mainDocument.id.toString()))})}]});yield t.present()})}removeTags(){return TB(this,void 0,void 0,function*(){this.signaturesService.currentAction=0;const e=yield this.alertController.create({header:this.translate.instant("lang.deleteNoteAndSignature"),buttons:[{text:this.translate.instant("lang.validate"),handler:()=>{this.signaturesService.signaturesContent=[],this.signaturesService.notesContent=[],this.signaturesService.datesContent=[],this.localStorage.remove(this.mainDocument.id.toString()),this.notificationService.success("lang.noteAndSignatureDeleted")}}]});yield e.present()})}loadDoc(e){this.pageNum=1,this.currentDoc=e,this.totalPages=this.docList[e].pages}launchEvent(e){this.backToDetails(),this.signaturesService.currentAction=e.id,this[e.event]()}undoTag(){this.signaturesService.notesContent[this.pageNum]&&(this.signaturesService.notesContent[this.pageNum].pop(),this.localStorage.remove(this.mainDocument.id.toString()),this.localStorage.save(this.mainDocument.id.toString(),JSON.stringify({sign:this.signaturesService.signaturesContent,note:this.signaturesService.notesContent})),this.isEmptyNote()&&(this.signaturesService.notesContent=[]))}checkEmptyNote(){return!this.signaturesService.notesContent[this.pageNum]||"undefined"===this.signaturesService.notesContent[this.pageNum]||0===this.signaturesService.notesContent[this.pageNum].length}isEmptyNote(){let e=!0;for(let t=1;t<=this.signaturesService.totalPage;t++)if(this.signaturesService.notesContent[t]&&this.signaturesService.notesContent[t].length>0){e=!1;break}return e}checkEmptiness(){let e=!0;for(let t=1;t<=this.signaturesService.totalPage;t++){if(this.signaturesService.datesContent[t]&&this.signaturesService.datesContent[t].length>0){e=!1;break}if(this.signaturesService.notesContent[t]&&this.signaturesService.notesContent[t].length>0){e=!1;break}if(this.signaturesService.signaturesContent[t]&&this.signaturesService.signaturesContent[t].length>0){e=!1;break}}return e}openVisaWorkflow(){this.menu.open("right-menu"),this.signaturesService.currentToobal="visaWorkflow"}openDocumentList(){this.menu.open("right-menu"),this.signaturesService.currentToobal="documentList"}openAssociatedDocuments(){this.menu.open("right-menu"),this.signaturesService.currentToobal="associatedDocuments"}openMainDocumentDetail(){this.menu.open("right-menu"),this.signaturesService.currentToobal="mainDocumentDetail"}backToDetails(){this.signaturesService.currentToobal="mainDocumentDetail"}deleteSubstution(){confirm(this.translate.instant("lang.deleteSubstitution")+" ?")&&this.http.put("../rest/users/"+this.authService.user.id+"/substitute",{substitute:null}).subscribe(()=>{this.authService.updateUserInfoWithTokenRefresh(),this.notificationService.success("lang.substitutionDeleted")})}back(){this.navCtrl.back()}ionViewWillLeave(){this.signaturesService.detachTemplate("rightContent"),this.loadingController.dismiss()}openSelect(e){this.totalPages>1&&(this.pagesList.interface="popover",this.pagesList.open(e))}fromHex(e){const t=new Uint8Array(e.length/2);for(let n=0;n<e.length;n+=2){const i=e.slice(n,n+2);t[n/2]=parseInt(i,16)}return t.buffer}}return e.\u0275fac=function(t){return new(t||e)(zr(GC),zr(r_),zr(Ny),zr(Db),zr(sS),zr(ZC),zr(sP),zr(qh),zr(IM),zr(lM),zr(rS),zr(oS),zr(KA),zr(ZA),zr(XA),zr(Gl),zr(JA),zr(QS),zr(QA),zr(HF),zr(ux),zr(LF),zr(BF))},e.\u0275cmp=$e({type:e,selectors:[["app-document"]],viewQuery:function(e,t){if(1&e&&(Tc(IB,1),Tc(RB,1),Tc(LB,3),Tc(FB,1),Tc(BB,1),Tc(zB,1),Tc(VB,3),Tc(NB,1)),2&e){let e;Mc(e=Rc())&&(t.mainContent=e.first),Mc(e=Rc())&&(t.img=e.first),Mc(e=Rc())&&(t.snav=e.first),Mc(e=Rc())&&(t.dragElem=e.first),Mc(e=Rc())&&(t.appDocumentNotePad=e.first),Mc(e=Rc())&&(t.appDocumentList=e.first),Mc(e=Rc())&&(t.rightContent=e.first),Mc(e=Rc())&&(t.pagesList=e.first)}},decls:7,vars:5,consts:[[3,"translucent",4,"ngIf"],["class","ion-text-center","color","primary",4,"ngIf"],["class","ion-text-center","color","danger",4,"ngIf"],[4,"ngIf"],["class","ion-no-border footer-buttons",4,"ngIf"],["rightContent",""],[3,"translucent"],["color","light"],["slot","start"],["value","favorite",3,"value","ionChange"],["value","mainDocumentDetail",3,"click"],["color","primary"],["color","primary","name","information-circle"],["value","documentList",3,"click"],["color","primary","name","document-attach-outline"],["color","danger",2,"position","absolute","top","10px","right","40%"],["value","associatedDocuments",3,"click",4,"ngIf"],["value","visaWorkflow",3,"click"],["color","primary","name","list-outline"],["slot","end",4,"ngIf"],["value","associatedDocuments",3,"click"],["color","primary","name","link-outline"],["slot","end"],["color","primary",3,"click"],["slot","icon-only","name","settings-sharp"],["color","primary",1,"ion-text-center"],[2,"font-size","13px"],["color","danger",1,"ion-text-center"],["mainContent",""],[2,"display","contents"],[2,"overflow","auto","height","100%","width","100%","margin","auto",3,"drag-scroll-disabled","drag-disabled","click"],["nav",""],["id","myBounds",2,"position","relative","cursor","grab"],["myBounds",""],[3,"bounds",4,"ngIf"],["class","img-content",3,"src","width","height","ionImgDidLoad",4,"ngIf"],["class","page-info",4,"ngIf"],["lines","none","class","certified",4,"ngIf"],["ngDraggable","","style","top: 40px;right: 40px;z-index:2;position:absolute;",3,"bounds","inBounds","title","disabled","movingOffset","endOffset","click",4,"ngIf"],["ngDraggable","","class","note",3,"bounds","inBounds","movingOffset","endOffset",4,"ngIf"],["ngDraggable","",2,"top","40px","right","40px","z-index","2","position","absolute",3,"bounds","inBounds","title","disabled","movingOffset","endOffset","click"],["name","chatbubble-ellipses-outline"],["ngDraggable","",1,"note",3,"bounds","inBounds","movingOffset","endOffset"],[1,"note-title"],[1,"far","fa-sticky-note",2,"padding-right","5px"],[2,"flex","1"],[1,"fa","fa-minus-square",2,"cursor","pointer",3,"title","click"],[4,"ngFor","ngForOf"],[1,"note-creator"],[1,"note-content"],[3,"bounds"],[1,"img-content",3,"src","ionImgDidLoad"],["img",""],[1,"page-info"],[1,"page-info-doc"],[1,"page-info-page",3,"click"],["interface","popover","hidden","true",2,"max-height","100%",3,"ngModel","interfaceOptions","ngModelChange","ionChange"],["pagesList",""],[3,"value","disabled",4,"ngFor","ngForOf"],[3,"value","disabled"],["lines","none",1,"certified"],["slot","start","name","ribbon-outline","color","success"],["class","paginate-left",3,"click",4,"ngIf"],["class","paginate-right",3,"click",4,"ngIf"],[1,"paginate-left",3,"click"],["name","chevron-back-outline"],[1,"paginate-right",3,"click"],["name","chevron-forward-outline"],[1,"ion-no-border","footer-buttons"],["shape","round","size","large","fill","outline",3,"disabled","color","click",4,"ngFor","ngForOf"],["shape","round","size","large","fill","outline",3,"disabled","color","click"],[3,"slot","name",4,"ngIf"],[3,"slot","name"],["style","display: contents;",3,"visaWorkflow",4,"ngIf"],["style","display: contents;",3,"currentDocId","docList","triggerEvent",4,"ngIf"],["style","display: contents;",3,"associatedDocuments",4,"ngIf"],["style","display: contents;",3,"mainDocument",4,"ngIf"],[2,"display","contents",3,"visaWorkflow"],[2,"display","contents",3,"currentDocId","docList","triggerEvent"],["appDocumentList",""],[2,"display","contents",3,"associatedDocuments"],["appAssociatedDocuments",""],[2,"display","contents",3,"mainDocument"],["appMainDocumentDetail",""]],template:function(e,t){1&e&&(Fr(0,UB,27,17,"ion-header",0),Fr(1,WB,4,3,"ion-toolbar",1),Fr(2,GB,4,3,"ion-toolbar",2),Fr(3,cz,15,16,"ion-content",3),Fr(4,hz,2,1,"ion-footer",4),Fr(5,bz,4,4,"ng-template",null,5,zc)),2&e&&(Vr("ngIf",!t.loadingdocument),no(1),Vr("ngIf",null!==t.authService.user.substitute&&t.docList[t.currentDoc]),no(1),Vr("ngIf",0!==t.mainDocument.id&&"READY"!==t.mainDocument.status),no(1),Vr("ngIf",!t.loadingdocument),no(1),Vr("ngIf",!t.loadingImage&&0===t.currentDoc))},directives:[Wu,Vx,vA,Cx,Jx,cA,ox,dA,Zx,Nx,xx,Ax,Tx,Yk,Lx,Kk,ju,WF,ZF,sB,Hx,uA,rm,Rm,hA,Gx,Bx,CB,RF,kB,MB],pipes:[$C,cP],styles:[".enterApp[_ngcontent-%COMP%]{position:fixed;height:100vh;width:100vw;background-color:#135f7f;z-index:2;display:flex;flex-direction:column;justify-content:center;align-items:center}.maarchLogo[_ngcontent-%COMP%]{position:absolute;transition:all 1s ease-in-out;width:250px;height:auto;padding-bottom:10px}.mainView[_ngcontent-%COMP%]{height:100%;width:auto;display:flex;flex-direction:column;overflow:hidden}.header[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{height:70px;width:auto}.header[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{height:auto;width:auto;font-size:40px}.article[_ngcontent-%COMP%]{display:flex;justify-content:center;overflow:hidden;flex:1;top:0;left:0}.canvas-wrapper[_ngcontent-%COMP%]{position:relative;padding-bottom:120px}canvas[_ngcontent-%COMP%]{margin:0 auto;display:block}.header[_ngcontent-%COMP%]{position:absolute;z-index:1;width:100%;height:80px;align-items:center;padding:0}.header[_ngcontent-%COMP%], .header-action[_ngcontent-%COMP%]{display:flex;justify-content:center}.header-action[_ngcontent-%COMP%]{color:#135f7f}.header-action-button[_ngcontent-%COMP%]{white-space:normal;word-break:break-word;width:135px!important}.header-infos[_ngcontent-%COMP%]{background:#f1f4f4;border-radius:5px;display:flex;justify-content:space-between;align-items:flex-start;width:100%;padding-top:12px;padding-bottom:7px;position:relative;overflow-y:hidden;overflow-x:auto}.header-info[_ngcontent-%COMP%]{border-right:1px solid #979797;width:200px;height:60px;font-size:12px;padding-left:20px}.header-info[_ngcontent-%COMP%]:last-of-type{border:none}.header-info[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{margin:0;padding:0}.header-expand[_ngcontent-%COMP%]{width:70%;position:absolute;left:50%;transform:translateX(-50%);top:25px;border:1px solid #f1f4f4}.header-expand[_ngcontent-%COMP%]   .mat-form-field[_ngcontent-%COMP%]{padding-top:10px}.header-expand[_ngcontent-%COMP%]    .mat-expansion-panel{box-shadow:none}.header-expand[_ngcontent-%COMP%]    .mat-form-field-label{color:#135f7f}.header-expand[_ngcontent-%COMP%]     .mat-form-field-underline{display:none}.header-expand-content[_ngcontent-%COMP%]{width:33%;display:inline-block}.header-expand-content[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{text-overflow:ellipsis}.header-expand-content[_ngcontent-%COMP%]   .mat-form-field[_ngcontent-%COMP%]{width:100%}.header-expand[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]:disabled{opacity:1;color:#666}.header-expand[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]{flex:1;font-size:12px}.page-info[_ngcontent-%COMP%]{position:absolute;bottom:70px;height:30px;width:auto;max-width:70%;color:rgba(var(--ion-color-dark-rgb),.8);font-size:12px;font-weight:300;line-height:30px;display:flex;align-items:center;justify-content:center;opacity:.5;left:50%;transform:translateX(-50%);font-weight:500;transition:all .3s ease-in-out}.page-info-doc[_ngcontent-%COMP%]{max-width:80%;background-color:#f1f4f4;border-radius:14px;padding:0 20px;z-index:1;white-space:pre;overflow:hidden;text-overflow:ellipsis}.page-info-page[_ngcontent-%COMP%]{cursor:pointer;text-align:center;border-radius:0 14px 14px 0;padding:0 20px;background:#fff;border:1px solid #ecf0f1;margin-left:-15px;height:28px;white-space:pre;display:flex;align-items:center}.page-info[_ngcontent-%COMP%]:hover{opacity:1}.btn-next[_ngcontent-%COMP%]{color:#666;background:hsla(0,0%,77.6%,.5019607843137255);border-radius:20px;padding:10px;border:none;outline:none;position:absolute;right:25px;top:50%;cursor:pointer;z-index:1}.btn-next.disabled[_ngcontent-%COMP%]{cursor:not-allowed}.btn-previous[_ngcontent-%COMP%]{color:#666;background:hsla(0,0%,77.6%,.5019607843137255);border-radius:20px;padding:10px;border:none;outline:none;position:absolute;left:25px;top:50%;cursor:pointer;z-index:1}.btn-previous.disabled[_ngcontent-%COMP%], button.disabled[_ngcontent-%COMP%]{cursor:not-allowed}.overlay[_ngcontent-%COMP%]{position:absolute;z-index:1;left:0;top:0;right:0;bottom:0;background:rgba(0,0,0,.5)}.pdf-page-canvas[_ngcontent-%COMP%]{opacity:1;transition:opacity .5s ease-in}.pdf-page-canvas-loading-doc[_ngcontent-%COMP%]{opacity:0}.ellipsis[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.leftPosDesk[_ngcontent-%COMP%]{left:25%!important}.mat-badge-content[_ngcontent-%COMP%]{background:#e74c3c}.substutionModal[_ngcontent-%COMP%]{color:#fff;background:#135f7f}.substutionModal[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]{padding:10px}.substutionModal[_ngcontent-%COMP%]   .msgModal[_ngcontent-%COMP%]{text-align:center;flex:1}.substitutedInformations[_ngcontent-%COMP%]{top:85px;z-index:1;white-space:pre;overflow:hidden;text-overflow:ellipsis;background:#135f7f;color:#fff;font-size:13px;text-align:center}.note[_ngcontent-%COMP%]{top:40px;right:40px;z-index:2;cursor:-webkit-grab;cursor:grab;position:absolute;background-color:#fff8bb;width:300px;max-height:400px;overflow:auto;box-shadow:0 2px 1px -1px rgba(0,0,0,.2),0 1px 1px 0 rgba(0,0,0,.14),0 1px 3px 0 rgba(0,0,0,.12)}.note-title[_ngcontent-%COMP%]{background-color:#fff8bb;position:-webkit-sticky;position:sticky;top:0;display:flex;align-items:center;font-weight:700}.note-creator[_ngcontent-%COMP%], .note-title[_ngcontent-%COMP%]{padding:10px;color:#135f7f}.note-creator[_ngcontent-%COMP%]{font-size:12px;text-decoration:underline}.note-content[_ngcontent-%COMP%]{padding:0 10px 10px;color:#4f4f4f}.footer-buttons[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(3,1fr);padding:10px}.footer-buttons[_ngcontent-%COMP%]   ion-button[_ngcontent-%COMP%]{margin:auto;width:150px}.paginate-left[_ngcontent-%COMP%]{left:20px}.paginate-left[_ngcontent-%COMP%], .paginate-right[_ngcontent-%COMP%]{position:absolute;top:40%;transform:translateY(-50%);--background:hsla(0,0%,77.6%,0.5019607843137255);--color:#666}.paginate-right[_ngcontent-%COMP%]{right:20px}.certified[_ngcontent-%COMP%]{position:absolute;top:10px;left:10px;border:1px solid var(--ion-color-success);color:var(--ion-color-success)}  .popover-class .popover-content{height:50%;top:50px}  .custom-popover-class .popover-class{height:10%;top:50px}"]}),e})();var yz=function(e,t,n,i){return new(n||(n=Promise))(function(s,o){function r(e){try{l(i.next(e))}catch(t){o(t)}}function a(e){try{l(i.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?s(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(r,a)}l((i=i.apply(e,t||[])).next())})};function wz(e,t){1&e&&(Hr(0,"a",13),Da(1),hc(2,"translate"),jr()),2&e&&(no(1),Oa(pc(2,1,"lang.forgotPassword")))}function _z(e,t){1&e&&(Hr(0,"a",14),Da(1),hc(2,"translate"),jr()),2&e&&(no(1),Oa(pc(2,1,"lang.ldapEnabled")))}function xz(e,t){1&e&&(Hr(0,"a",14),Da(1),hc(2,"translate"),jr()),2&e&&(no(1),Oa(pc(2,1,"lang.kerberosEnabled")))}function Az(e,t){1&e&&(Hr(0,"a",14),Da(1),hc(2,"translate"),jr()),2&e&&(no(1),Oa(pc(2,1,"lang.x509Enabled")))}function Cz(e,t){if(1&e&&(Hr(0,"a",15),hc(1,"translate"),Da(2),jr()),2&e){const e=na();la("href","",pc(1,3,"lang.repoUrl"),"/commit/",e.commitHash,"",os),no(2),Oa(e.commitHash.substring(0,8))}}let Sz=(()=>{class e{constructor(e,t,n,i,s,o,r,a,l,c){this.http=e,this.router=t,this.authService=n,this.signaturesService=i,this.notificationService=s,this.dialog=o,this.formBuilder=r,this.loadingController=a,this.translate=l,this.menu=c,this.loading=!1,this.showForm=!1,this.commitHash=null}ngOnInit(){return yz(this,void 0,void 0,function*(){this.loginForm=this.formBuilder.group({login:[null,zf.required],password:[null,zf.required]}),this.environment=zd,this.signaturesService.reset(),yield this.loadCommitInformation()})}ionViewWillEnter(){this.menu.enable(!1,"left-menu"),this.menu.enable(!1,"right-menu")}ngAfterViewInit(){setTimeout(()=>{this.showForm=!0,this.fixAutoFill(),this.initConnection()},500)}fixAutoFill(){setTimeout(()=>{this.loginForm.get("login").setValue($("#login").val()),this.loginForm.get("password").setValue($("#password").val())},100)}onSubmit(){return yz(this,void 0,void 0,function*(){const e=yield this.loadingController.create({cssClass:"my-custom-class",message:this.translate.instant("lang.connexion")});yield e.present(),this.authService.authFailed=!1,this.loginForm.invalid?(e.dismiss(),this.notificationService.error("lang.requiredLoginPassword")):this.http.post("../rest/authenticate",{login:this.loginForm.get("login").value,password:this.loginForm.get("password").value},{observe:"response"}).pipe(Ov(t=>{this.loading=!1,this.showForm=!1,this.authService.saveTokens(t.headers.get("Token"),t.headers.get("Refresh-Token")),this.authService.setUser({}),this.authService.getCachedUrl()?(this.router.navigateByUrl(this.authService.getCachedUrl()),this.authService.cleanCachedUrl()):this.router.navigate(["/home"]),e.dismiss()}),fv(t=>(this.loading=!1,this.authService.authFailed=!0,401===t.status&&-1===["kerberos","x509","azure_saml"].indexOf(this.authService.authMode)?(this.notificationService.error("lang.wrongLoginPassword"),e.dismiss()):"azure_saml"===this.authService.authMode&&"Authentication Failed : not logged"===t.error.errors?(e.dismiss(),window.location.href=t.error.authUri):(e.dismiss(),this.notificationService.handleErrors(t)),lb(!1)))).subscribe()})}initConnection(){["kerberos","x509","azure_saml"].indexOf(this.authService.authMode)>-1&&(this.loginForm.disable(),this.loginForm.setValidators(null),this.onSubmit())}loadCommitInformation(){return new Promise(e=>{this.http.get("../rest/commitInformation").pipe(Ov(t=>{this.commitHash=t.hash,e(!0)}),fv(e=>(this.notificationService.handleErrors(e),lb(!1)))).subscribe()})}}return e.\u0275fac=function(t){return new(t||e)(zr(Db),zr(r_),zr(rS),zr(sS),zr(ZC),zr(IM),zr(ab),zr(XA),zr(GC),zr(KA))},e.\u0275cmp=$e({type:e,selectors:[["ng-component"]],decls:27,vars:18,consts:[[1,"login-content"],["svgIcon","maarchLogo",1,"maarchLogo"],[2,"width","400px","position","absolute","left","50%","top","50%","transform","translate(-50%,-50%)"],[3,"formGroup","ngSubmit"],["position","floating"],["formControlName","login","type","text",3,"keyup.enter"],["name","password","matInput","","type","password","formControlName","password",3,"keyup.enter"],[1,"connection-type"],["routerLink","/forgot-password","class","forgot-password",4,"ngIf"],["href","","class","forgot-password",4,"ngIf"],["type","submit","expand","block",3,"disabled"],[1,"version-info"],["style","color: white","target","blank",3,"href",4,"ngIf"],["routerLink","/forgot-password",1,"forgot-password"],["href","",1,"forgot-password"],["target","blank",2,"color","white",3,"href"]],template:function(e,t){1&e&&(Hr(0,"ion-content",0),Ur(1,"mat-icon",1),Hr(2,"ion-card",2),Hr(3,"ion-card-content"),Hr(4,"form",3),Xr("ngSubmit",function(){return t.onSubmit()}),Hr(5,"ion-item"),Hr(6,"ion-label",4),Da(7),hc(8,"translate"),jr(),Hr(9,"ion-input",5),Xr("keyup.enter",function(){return t.onSubmit()}),jr(),jr(),Hr(10,"ion-item"),Hr(11,"ion-label",4),Da(12),hc(13,"translate"),jr(),Hr(14,"ion-input",6),Xr("keyup.enter",function(){return t.onSubmit()}),jr(),jr(),Hr(15,"div",7),Fr(16,wz,3,3,"a",8),Fr(17,_z,3,3,"a",9),Fr(18,xz,3,3,"a",9),Fr(19,Az,3,3,"a",9),jr(),Hr(20,"ion-button",10),Da(21),hc(22,"translate"),jr(),jr(),jr(),jr(),Hr(23,"ion-note",11),Da(24),Fr(25,Cz,3,5,"a",12),Da(26),jr(),jr()),2&e&&(no(4),Vr("formGroup",t.loginForm),no(3),Oa(pc(8,12,"lang.login")),no(5),Oa(pc(13,14,"lang.password")),no(4),Vr("ngIf","default"===t.authService.authMode),no(1),Vr("ngIf","ldap"===t.authService.authMode),no(1),Vr("ngIf","kerberos"===t.authService.authMode),no(1),Vr("ngIf","x509"===t.authService.authMode),no(1),Vr("disabled",t.loginForm.invalid||t.loading),no(1),Ma(" ",pc(22,16,"lang.connect")," "),no(3),Ma(" Maarch Parapheur ",t.environment.VERSION," "),no(1),Vr("ngIf",null!==t.commitHash),no(1),Ma(" Powered by ",t.environment.AUTHOR," "))},directives:[Tx,tT,Sx,kx,Lm,am,Hm,Gx,Zx,Wx,ax,rm,Um,Wu,Ax,tA,l_,jA],pipes:[$C],styles:[".version-info[_ngcontent-%COMP%]{color:#fff;position:absolute;bottom:5px}.maarchLogo[_ngcontent-%COMP%]{position:absolute;top:10%;left:50%;transform:translateX(-50%);width:250px;height:auto;padding-bottom:10px}.login-content[_ngcontent-%COMP%]{--background:var(--ion-color-primary)}.forgot-password[_ngcontent-%COMP%]{display:block;text-align:right}.connection-type[_ngcontent-%COMP%]{display:flex;justify-content:flex-end}"]}),e})(),kz=(()=>{class e{constructor(e,t,n,i,s){this.router=e,this.http=t,this.notificationService=s,this.loadingForm=!1,this.loading=!1,this.newLogin={login:"",password:""},this.labelButton="lang.send",this.appVersion="",this.appAuthor="",n.addSvgIcon("maarchLogo",i.bypassSecurityTrustResourceUrl("../src/frontend/assets/logo_white.svg"))}ngOnInit(){}generateLink(){this.labelButton="lang.generation",this.loading=!0,this.http.post("../rest/password",{login:this.newLogin.login}).pipe(Iv(()=>{this.labelButton="lang.send",this.loading=!1})).subscribe(e=>{this.loadingForm=!0,this.notificationService.success("lang.requestSentByEmail"),this.router.navigate(["/login"])},e=>{this.notificationService.handleErrors(e)})}}return e.\u0275fac=function(t){return new(t||e)(zr(r_),zr(Db),zr($M),zr(qh),zr(ZC))},e.\u0275cmp=$e({type:e,selectors:[["ng-component"]],decls:28,vars:15,consts:[[3,"translucent"],["color","primary"],["slot","start"],["mainContent",""],["id","passForm",2,"display","contents",3,"ngSubmit"],["passForm","ngForm"],["offset","3","size","6"],[1,"info"],[3,"innerHTML"],["color","secondary","position","floating"],["name","login","matInput","","type","text","oninput","this.value = this.value.toLowerCase()",3,"ngModel","ngModelChange"],["text-center","","lines","none",2,"position","sticky","bottom","0px","z-index","1"],[2,"display","flex","align-items","center","justify-content","center","width","100%","background","white"],["type","submit","shape","round","size","large","fill","outline","color","primary",3,"disabled"],[2,"font-size","13px"]],template:function(e,t){1&e&&(Hr(0,"ion-header",0),Hr(1,"ion-toolbar",1),Hr(2,"ion-buttons",2),Ur(3,"ion-back-button"),jr(),Hr(4,"ion-title"),Da(5),hc(6,"translate"),jr(),jr(),jr(),Hr(7,"ion-content",null,3),Hr(9,"form",4,5),Xr("ngSubmit",function(){return t.generateLink()}),Hr(11,"ion-grid"),Hr(12,"ion-row"),Hr(13,"ion-col",6),Hr(14,"ion-card",7),Ur(15,"ion-card-content",8),hc(16,"translate"),jr(),Hr(17,"ion-item"),Hr(18,"ion-label",9),Da(19),hc(20,"translate"),jr(),Hr(21,"ion-input",10),Xr("ngModelChange",function(e){return t.newLogin.login=e}),jr(),jr(),jr(),jr(),jr(),Hr(22,"ion-item",11),Hr(23,"div",12),Hr(24,"ion-button",13),Hr(25,"ion-label",14),Da(26),hc(27,"translate"),jr(),jr(),jr(),jr(),jr(),jr()),2&e&&(Vr("translucent",!0),no(5),Oa(pc(6,7,"lang.forgotPassword")),no(10),Vr("innerHTML",pc(16,9,"lang.afterClickingSendLinkChangePassword"),ss),no(4),Ma("",pc(20,11,"lang.enterLogin")," *"),no(2),Vr("ngModel",t.newLogin.login),no(3),Vr("disabled",""==t.newLogin.login||t.loading),no(2),Oa(pc(27,13,t.labelButton)))},directives:[Vx,vA,Cx,_x,HA,mA,Tx,Lm,am,Mm,zx,aA,Mx,Sx,kx,Gx,Zx,Wx,ax,rm,Rm,Ax],pipes:[$C],styles:[".login-content[_ngcontent-%COMP%]{background-color:#135f7f;height:100vh;width:100vw;display:flex;flex-direction:column;justify-content:center;align-items:center}.login-form[_ngcontent-%COMP%]{max-width:600px;text-align:center}.input-row[_ngcontent-%COMP%]{width:100%;padding-top:10px;padding-bottom:10px}.maarchLogo[_ngcontent-%COMP%]{position:absolute;transition:all 1s ease-in-out;width:250px;height:auto;padding-bottom:10px;transform:translateY(-200px)}footer[_ngcontent-%COMP%]{color:#fff;position:absolute;bottom:5px;font-size:10px;opacity:.5}"]}),e})();function Pz(e,t){if(1&e&&(Hr(0,"ion-note",22),Da(1),hc(2,"translate"),jr()),2&e){const e=na();no(1),Ma(" ",pc(2,1,e.handlePassword.errorMsg),"")}}function Ez(e,t){1&e&&(Hr(0,"ion-note",23),Da(1),hc(2,"translate"),jr()),2&e&&(no(1),Ma(" ",pc(2,1,"lang.samePassword"),""))}function Dz(e,t){1&e&&(Hr(0,"ion-note",22),Da(1),hc(2,"translate"),jr()),2&e&&(no(1),Ma(" ",pc(2,1,"lang.passwordNotMatch"),""))}let Oz=(()=>{class e{constructor(e,t,n,i,s,o,r,a){this.translate=e,this.router=t,this.route=n,this.http=i,this.notificationService=r,this.menu=a,this.loadingForm=!1,this.loading=!1,this.token="",this.password={newPassword:"",passwordConfirmation:""},this.labelButton="lang.update",this.hideNewPassword=!0,this.hideNewPasswordConfirm=!0,this.passwordRules={minLength:{enabled:!1,value:0},complexityUpper:{enabled:!1,value:0},complexityNumber:{enabled:!1,value:0},complexitySpecial:{enabled:!1,value:0},renewal:{enabled:!1,value:0},historyLastUse:{enabled:!1,value:0}},this.handlePassword={error:!1,errorMsg:""},this.ruleText="",this.otherRuleText="",s.addSvgIcon("maarchLogo",o.bypassSecurityTrustResourceUrl("../src/frontend/assets/logo_white.svg")),this.route.queryParams.subscribe(e=>{this.token=e.token})}ngOnInit(){this.getPassRules()}ionViewWillEnter(){this.menu.enable(!1,"left-menu"),this.menu.enable(!1,"right-menu")}updatePassword(){this.labelButton="lang.sending",this.loading=!0,this.http.put("../rest/password",{token:this.token,password:this.password.newPassword}).pipe(Iv(()=>{this.labelButton="lang.update",this.loading=!1})).subscribe(e=>{this.loadingForm=!0,this.notificationService.success("lang.passwordChanged"),this.router.navigate(["/login"])},e=>{this.notificationService.handleErrors(e)})}checkPasswordValidity(e){this.handlePassword.error=!0,!e.match(/[A-Z]/g)&&this.passwordRules.complexityUpper.enabled?this.handlePassword.errorMsg="lang.upperRequired":!e.match(/[0-9]/g)&&this.passwordRules.complexityNumber.enabled?this.handlePassword.errorMsg="lang.numberRequired":!e.match(/[^A-Za-z0-9]/g)&&this.passwordRules.complexitySpecial.enabled?this.handlePassword.errorMsg="lang.specialCharRequired":e.length<this.passwordRules.minLength.value&&this.passwordRules.minLength.enabled?this.translate.get("lang.minLengthChar",{charLength:this.passwordRules.minLength.value}).subscribe(e=>{this.handlePassword.errorMsg=e}):(this.handlePassword.error=!1,this.handlePassword.errorMsg="")}getPassRules(){this.handlePassword.error=!1,this.handlePassword.errorMsg="",this.http.get("../rest/passwordRules").subscribe(e=>{const t=[],n=[];e.rules.forEach(e=>{"minLength"===e.label?(this.passwordRules.minLength.enabled=e.enabled,this.passwordRules.minLength.value=e.value,e.enabled&&this.translate.get("lang.minLengthChar",{charLength:e.value}).subscribe(e=>{t.push(e)})):"complexityUpper"===e.label?(this.passwordRules.complexityUpper.enabled=e.enabled,this.passwordRules.complexityUpper.value=e.value,e.enabled&&t.push("lang.upperRequired")):"complexityNumber"===e.label?(this.passwordRules.complexityNumber.enabled=e.enabled,this.passwordRules.complexityNumber.value=e.value,e.enabled&&t.push("lang.numberRequired")):"complexitySpecial"===e.label?(this.passwordRules.complexitySpecial.enabled=e.enabled,this.passwordRules.complexitySpecial.value=e.value,e.enabled&&t.push("lang.specialCharRequired")):"renewal"===e.label?(this.passwordRules.renewal.enabled=e.enabled,this.passwordRules.renewal.value=e.value,e.enabled&&this.translate.get("lang.renewalInfo",{time:e.value}).subscribe(e=>{n.push(e)})):"historyLastUse"===e.label&&(this.passwordRules.historyLastUse.enabled=e.enabled,this.passwordRules.historyLastUse.value=e.value,e.enabled&&this.translate.get("lang.historyUseInfo",{countPwd:e.value}).subscribe(e=>{n.push(e)}))}),this.ruleText=t.join(", "),this.otherRuleText=n.join("<br/>")},e=>{this.notificationService.handleErrors(e)})}allowValidate(){return!(!this.handlePassword.error&&this.password.newPassword===this.password.passwordConfirmation&&0!==this.password.newPassword.length&&0!==this.password.passwordConfirmation.length)}}return e.\u0275fac=function(t){return new(t||e)(zr(GC),zr(r_),zr(Ny),zr(Db),zr($M),zr(qh),zr(ZC),zr(KA))},e.\u0275cmp=$e({type:e,selectors:[["ng-component"]],decls:47,vars:35,consts:[[3,"translucent"],["color","primary"],["slot","start"],["mainContent",""],["id","passForm",2,"display","contents",3,"ngSubmit"],["passForm","ngForm"],["offset","3","size","6"],[1,"info"],[3,"innerHTML"],["color","secondary","position","stacked"],["name","newPassword",3,"ngModel","placeholder","type","ngModelChange","keyup"],["slot","end","color","light",1,"showpassButton",3,"click"],["slot","icon-only","color","primary",3,"name"],["color","danger",4,"ngIf"],["name","passwordConfirmation",3,"ngModel","placeholder","type","ngModelChange"],["lines","none"],["color","success",4,"ngIf"],["text-center","","lines","none",2,"position","sticky","bottom","0px","z-index","1"],[2,"display","flex","align-items","center","justify-content","center","width","100%","background","white"],["type","submit","shape","round","size","large","fill","outline","color","primary",3,"disabled"],[2,"font-size","13px"],["type","button","shape","round","size","large","fill","outline","color","medium","routerLink","/login"],["color","danger"],["color","success"]],template:function(e,t){1&e&&(Hr(0,"ion-header",0),Hr(1,"ion-toolbar",1),Hr(2,"ion-buttons",2),Ur(3,"ion-back-button"),jr(),Hr(4,"ion-title"),Da(5),hc(6,"translate"),jr(),jr(),jr(),Hr(7,"ion-content",null,3),Hr(9,"form",4,5),Xr("ngSubmit",function(){return t.updatePassword()}),Hr(11,"ion-grid"),Hr(12,"ion-row"),Hr(13,"ion-col",6),Hr(14,"ion-card",7),Ur(15,"ion-card-content",8),hc(16,"translate"),jr(),Hr(17,"ion-item"),Hr(18,"ion-label",9),Da(19),hc(20,"translate"),jr(),Hr(21,"ion-input",10),Xr("ngModelChange",function(e){return t.password.newPassword=e})("keyup",function(){return t.checkPasswordValidity(t.password.newPassword)}),hc(22,"translate"),jr(),Hr(23,"ion-button",11),Xr("click",function(){return t.hideNewPassword=!t.hideNewPassword}),Ur(24,"ion-icon",12),jr(),Fr(25,Pz,3,3,"ion-note",13),jr(),Hr(26,"ion-item"),Hr(27,"ion-label",9),Da(28),hc(29,"translate"),jr(),Hr(30,"ion-input",14),Xr("ngModelChange",function(e){return t.password.passwordConfirmation=e}),hc(31,"translate"),jr(),Hr(32,"ion-button",11),Xr("click",function(){return t.hideNewPasswordConfirm=!t.hideNewPasswordConfirm}),Ur(33,"ion-icon",12),jr(),jr(),Hr(34,"ion-item",15),Fr(35,Ez,3,3,"ion-note",16),Fr(36,Dz,3,3,"ion-note",13),jr(),jr(),jr(),jr(),Hr(37,"ion-item",17),Hr(38,"div",18),Hr(39,"ion-button",19),Hr(40,"ion-label",20),Da(41),hc(42,"translate"),jr(),jr(),Hr(43,"ion-button",21),Hr(44,"ion-label",20),Da(45),hc(46,"translate"),jr(),jr(),jr(),jr(),jr(),jr()),2&e&&(Vr("translucent",!0),no(5),Oa(pc(6,19,"lang.newPassword")),no(10),Vr("innerHTML",pc(16,21,"lang.logInOncePasswordChanged"),ss),no(4),Oa(pc(20,23,"lang.newPassword")),no(2),ra("placeholder",pc(22,25,"lang.newPassword")),Vr("ngModel",t.password.newPassword)("type",t.hideNewPassword?"password":"text"),no(3),Vr("name",t.hideNewPassword?"eye-outline":"eye-off-outline"),no(1),Vr("ngIf",t.handlePassword.error),no(3),Ma("",pc(29,27,"lang.passwordConfirmation")," "),no(2),ra("placeholder",pc(31,29,"lang.passwordConfirmation")),Vr("ngModel",t.password.passwordConfirmation)("type",t.hideNewPasswordConfirm?"password":"text"),no(3),Vr("name",t.hideNewPasswordConfirm?"eye-outline":"eye-off-outline"),no(2),Vr("ngIf",t.password.passwordConfirmation===t.password.newPassword&&t.password.newPassword.length>0&&t.password.passwordConfirmation.length>0),no(1),Vr("ngIf",t.password.passwordConfirmation!==t.password.newPassword),no(3),Vr("disabled",t.allowValidate()||t.loading),no(2),Oa(pc(42,31,t.labelButton)),no(4),Oa(pc(46,33,"lang.cancel")))},directives:[Vx,vA,Cx,_x,HA,mA,Tx,Lm,am,Mm,zx,aA,Mx,Sx,kx,Gx,Zx,Wx,ax,rm,Rm,Ax,Nx,Wu,jA,a_,tA],pipes:[$C],styles:[".login-form[_ngcontent-%COMP%]{max-width:600px;text-align:center}.input-row[_ngcontent-%COMP%]{width:100%;padding-top:10px;padding-bottom:10px}.maarchLogo[_ngcontent-%COMP%]{position:absolute;transition:all 1s ease-in-out;width:250px;height:auto;padding-bottom:10px;transform:translateY(-230px)}footer[_ngcontent-%COMP%]{color:#fff;position:absolute;bottom:5px;font-size:10px;opacity:.5}.showpassButton[_ngcontent-%COMP%]{--background:none;--box-shadow:none}"]}),e})(),Mz=(()=>{class e{constructor(e,t,n,i){this.http=e,this.translate=t,this.notify=n,this.signaturesService=i,this.loading=!1,this.passwordRules={minLength:{enabled:!1,value:0},complexityUpper:{enabled:!1,value:0},complexityNumber:{enabled:!1,value:0},complexitySpecial:{enabled:!1,value:0},renewal:{enabled:!1,value:0},historyLastUse:{enabled:!1,value:0},lockTime:{enabled:!1,value:0},lockAttempts:{enabled:!1,value:0}},this.passwordRulesClone={},this.passwordRulesList=[]}ngOnInit(){this.loading=!0,this.http.get("../rest/passwordRules").subscribe(e=>{this.passwordRulesList=e.rules,e.rules.forEach(e=>{this.passwordRules[e.label].enabled=e.enabled,this.passwordRules[e.label].value=e.value,this.passwordRules[e.label].label=this.translate.instant("lang.password_"+e.label+"Required"),this.passwordRules[e.label].id=e.label,this.loading=!1}),this.passwordRulesClone=JSON.parse(JSON.stringify(this.passwordRules))},e=>{this.notify.error(e.error.errors)})}cancelModification(){this.passwordRules=JSON.parse(JSON.stringify(this.passwordRulesClone)),this.passwordRulesList.forEach(e=>{e.enabled=this.passwordRules[e.label].enabled,e.value=this.passwordRules[e.label].value})}checkModif(){return JSON.stringify(this.passwordRules)===JSON.stringify(this.passwordRulesClone)}disabledForm(){return!(this.passwordRules.lockTime.enabled||this.passwordRules.minLength.enabled||this.passwordRules.lockAttempts.enabled||this.passwordRules.renewal.enabled||this.passwordRules.historyLastUse.enabled)}toggleRule(e){this.passwordRulesList.forEach(t=>{"lockAttempts"!==e.id||"lockTime"!==t.label&&"lockAttempts"!==t.label?e.id===t.label&&(t.enabled=e.enabled):(t.enabled=e.enabled,this.passwordRules.lockTime.enabled=e.enabled)})}onSubmit(){this.passwordRulesList.forEach(e=>{e.enabled=this.passwordRules[e.label].enabled,e.value=this.passwordRules[e.label].value}),this.http.put("../rest/passwordRules",{rules:this.passwordRulesList}).subscribe(()=>{this.passwordRulesClone=JSON.parse(JSON.stringify(this.passwordRules)),this.notify.success("lang.passwordRulesUpdated")},e=>{this.notify.error(e.error.errors)})}}return e.\u0275fac=function(t){return new(t||e)(zr(Db),zr(GC),zr(ZC),zr(sS))},e.\u0275cmp=$e({type:e,selectors:[["ng-component"]],decls:69,vars:49,consts:[[3,"translucent"],["color","primary"],["slot","start"],["menu","left-menu"],["id","passwordForm",2,"display","contents",3,"ngSubmit"],["passwordForm","ngForm"],["color","secondary"],["slot","start","name","complexityUpper",3,"ngModel","checked","ngModelChange"],["slot","start","name","complexityNumber",3,"ngModel","checked","ngModelChange"],["slot","start","name","complexitySpecial",3,"ngModel","checked","ngModelChange"],["slot","start","name","minLengthToggle",3,"ngModel","checked","ngModelChange"],["color","secondary","position","floating"],["name","minLength","min","1","pattern","^[1-9][0-9]*",3,"disabled","ngModel","ngModelChange"],["slot","end"],["slot","start","name","lockAttemptsToggle",3,"ngModel","checked","ngModelChange"],["name","lockAttempts","min","1","pattern","^[1-9][0-9]*",3,"disabled","ngModel","ngModelChange"],["name","lockTime","min","1","pattern","^[1-9][0-9]*",3,"disabled","ngModel","ngModelChange"],["slot","start","name","renewalToggle",3,"ngModel","checked","ngModelChange"],["name","renewal","min","1","pattern","^[1-9][0-9]*",3,"disabled","ngModel","ngModelChange"],["slot","start","name","historyLastUseToggle",3,"ngModel","checked","ngModelChange"],["name","historyLastUse","min","1","pattern","^[1-9][0-9]*",3,"disabled","ngModel","ngModelChange"],["text-center","","lines","none",2,"position","sticky","bottom","0px","z-index","1"],[2,"display","flex","align-items","center","justify-content","center","width","100%","background","white"],["type","submit","shape","round","size","large","fill","outline","color","primary",3,"disabled"],[2,"font-size","13px"]],template:function(e,t){if(1&e&&(Hr(0,"ion-header",0),Hr(1,"ion-toolbar",1),Hr(2,"ion-buttons",2),Ur(3,"ion-menu-button",3),Ur(4,"ion-back-button"),jr(),Hr(5,"ion-title"),Da(6),hc(7,"translate"),jr(),jr(),jr(),Hr(8,"form",4,5),Xr("ngSubmit",function(){return t.onSubmit()}),Hr(10,"ion-content"),Hr(11,"ion-row"),Hr(12,"ion-col"),Hr(13,"ion-item"),Hr(14,"ion-label",6),Da(15),jr(),Hr(16,"ion-toggle",7),Xr("ngModelChange",function(e){return t.passwordRules.complexityUpper.enabled=e})("ngModelChange",function(){return t.toggleRule(t.passwordRules.complexityUpper)}),jr(),jr(),jr(),Hr(17,"ion-col"),Hr(18,"ion-item"),Hr(19,"ion-label",6),Da(20),jr(),Hr(21,"ion-toggle",8),Xr("ngModelChange",function(e){return t.passwordRules.complexityNumber.enabled=e})("ngModelChange",function(){return t.toggleRule(t.passwordRules.complexityNumber)}),jr(),jr(),jr(),Hr(22,"ion-col"),Hr(23,"ion-item"),Hr(24,"ion-label",6),Da(25),jr(),Hr(26,"ion-toggle",9),Xr("ngModelChange",function(e){return t.passwordRules.complexitySpecial.enabled=e})("ngModelChange",function(){return t.toggleRule(t.passwordRules.complexitySpecial)}),jr(),jr(),jr(),jr(),Hr(27,"ion-item"),Hr(28,"ion-toggle",10),Xr("ngModelChange",function(e){return t.passwordRules.minLength.enabled=e})("ngModelChange",function(){return t.toggleRule(t.passwordRules.minLength)}),jr(),Hr(29,"ion-label",11),Da(30),jr(),Hr(31,"ion-input",12),Xr("ngModelChange",function(e){return t.passwordRules.minLength.value=e}),jr(),Hr(32,"ion-note",13),Da(33),hc(34,"translate"),jr(),jr(),Hr(35,"ion-row"),Hr(36,"ion-col"),Hr(37,"ion-item"),Hr(38,"ion-toggle",14),Xr("ngModelChange",function(e){return t.passwordRules.lockAttempts.enabled=e})("ngModelChange",function(){return t.toggleRule(t.passwordRules.lockAttempts)}),jr(),Hr(39,"ion-label",11),Da(40),jr(),Hr(41,"ion-input",15),Xr("ngModelChange",function(e){return t.passwordRules.lockAttempts.value=e}),jr(),jr(),jr(),Hr(42,"ion-col"),Hr(43,"ion-item"),Hr(44,"ion-label",11),Da(45),jr(),Hr(46,"ion-input",16),Xr("ngModelChange",function(e){return t.passwordRules.lockTime.value=e}),jr(),Hr(47,"ion-note",13),Da(48),hc(49,"translate"),jr(),jr(),jr(),jr(),Hr(50,"ion-item"),Hr(51,"ion-toggle",17),Xr("ngModelChange",function(e){return t.passwordRules.renewal.enabled=e})("ngModelChange",function(){return t.toggleRule(t.passwordRules.renewal)}),jr(),Hr(52,"ion-label",11),Da(53),jr(),Hr(54,"ion-input",18),Xr("ngModelChange",function(e){return t.passwordRules.renewal.value=e}),jr(),Hr(55,"ion-note",13),Da(56),hc(57,"translate"),jr(),jr(),Hr(58,"ion-item"),Hr(59,"ion-toggle",19),Xr("ngModelChange",function(e){return t.passwordRules.historyLastUse.enabled=e})("ngModelChange",function(){return t.toggleRule(t.passwordRules.historyLastUse)}),jr(),Hr(60,"ion-label",11),Da(61),jr(),Hr(62,"ion-input",20),Xr("ngModelChange",function(e){return t.passwordRules.historyLastUse.value=e}),jr(),jr(),Hr(63,"ion-item",21),Hr(64,"div",22),Hr(65,"ion-button",23),Hr(66,"ion-label",24),Da(67),hc(68,"translate"),jr(),jr(),jr(),jr(),jr(),jr()),2&e){const e=Br(9);Vr("translucent",!0),no(6),Oa(pc(7,39,"lang.manage_password_rules")),no(9),Oa(t.passwordRules.complexityUpper.label),no(1),Vr("ngModel",t.passwordRules.complexityUpper.enabled)("checked",t.passwordRules.complexityUpper.enabled),no(4),Oa(t.passwordRules.complexityNumber.label),no(1),Vr("ngModel",t.passwordRules.complexityNumber.enabled)("checked",t.passwordRules.complexityNumber.enabled),no(4),Oa(t.passwordRules.complexitySpecial.label),no(1),Vr("ngModel",t.passwordRules.complexitySpecial.enabled)("checked",t.passwordRules.complexitySpecial.enabled),no(2),Vr("ngModel",t.passwordRules.minLength.enabled)("checked",t.passwordRules.minLength.enabled),no(2),Oa(t.passwordRules.minLength.label),no(1),Vr("disabled",!t.passwordRules.minLength.enabled)("ngModel",t.passwordRules.minLength.value),no(2),Oa(pc(34,41,"lang.chars")),no(5),Vr("ngModel",t.passwordRules.lockAttempts.enabled)("checked",t.passwordRules.lockAttempts.enabled),no(2),Oa(t.passwordRules.lockAttempts.label),no(1),Vr("disabled",!t.passwordRules.lockAttempts.enabled)("ngModel",t.passwordRules.lockAttempts.value),no(4),Oa(t.passwordRules.lockTime.label),no(1),Vr("disabled",!t.passwordRules.lockTime.enabled)("ngModel",t.passwordRules.lockTime.value),no(2),Oa(pc(49,43,"lang.minutes")),no(3),Vr("ngModel",t.passwordRules.renewal.enabled)("checked",t.passwordRules.renewal.enabled),no(2),Oa(t.passwordRules.renewal.label),no(1),Vr("disabled",!t.passwordRules.renewal.enabled)("ngModel",t.passwordRules.renewal.value),no(2),Oa(pc(57,45,"lang.days")),no(3),Vr("ngModel",t.passwordRules.historyLastUse.enabled)("checked",t.passwordRules.historyLastUse.enabled),no(2),Oa(t.passwordRules.historyLastUse.label),no(1),Vr("disabled",!t.passwordRules.historyLastUse.enabled)("ngModel",t.passwordRules.historyLastUse.value),no(3),Vr("disabled",!e.valid&&!t.disabledForm()||t.checkModif()),no(2),Oa(pc(68,47,"lang.validate"))}},directives:[Vx,vA,Cx,Jx,_x,HA,mA,Lm,am,Mm,Tx,aA,Mx,Gx,Zx,bA,J_,rm,Rm,Wx,ax,ib,tA,Ax],pipes:[$C],encapsulation:2}),e})();function Tz(e,t){1&e&&(Hr(0,"ion-note",17),Da(1),hc(2,"translate"),jr()),2&e&&(no(1),Oa(pc(2,1,"lang.requiredField")))}function Iz(e,t){1&e&&(Hr(0,"ion-item",26),Ur(1,"ion-icon",27),Hr(2,"ion-label",28),Da(3),hc(4,"translate"),jr(),jr()),2&e&&(no(3),Oa(pc(4,1,"lang.passwordValid")))}function Rz(e,t){1&e&&(Hr(0,"ion-item",26),Ur(1,"ion-icon",27),Hr(2,"ion-label",28),Da(3),hc(4,"translate"),jr(),jr()),2&e&&(no(3),Oa(pc(4,1,"lang.passwordMatch")))}function Lz(e,t){1&e&&Ur(0,"ion-item",29),2&e&&Vr("innerHTML",na().otherRuleText,ss)}let Fz=(()=>{class e{constructor(e,t,n,i,s,o,r){this.http=e,this.notify=t,this._formBuilder=n,this.translate=i,this.signaturesService=s,this.authService=o,this.router=r,this.config={},this.loading=!1,this.user={},this.ruleText="",this.hidePassword=!0,this.validPassword=!1,this.passwordRules={minLength:{enabled:!1,value:0},complexityUpper:{enabled:!1,value:0},complexityNumber:{enabled:!1,value:0},complexitySpecial:{enabled:!1,value:0},renewal:{enabled:!1,value:0},historyLastUse:{enabled:!1,value:0}},this.passwordModel={currentPassword:"",newPassword:"",reNewPassword:""},this.user=JSON.parse(atob(this.authService.getToken().split(".")[1])).user}ngOnInit(){this.http.get("../rest/passwordRules").subscribe(e=>{const t=[],n=[],i=[];t.push(zf.required),e.rules.forEach(e=>{"minLength"===e.label?(this.passwordRules.minLength.enabled=e.enabled,this.passwordRules.minLength.value=e.value,e.enabled&&(t.push(zf.minLength(this.passwordRules.minLength.value)),n.push(e.value+" "+this.translate.instant("lang.password_"+e.label)))):"complexityUpper"===e.label?(this.passwordRules.complexityUpper.enabled=e.enabled,this.passwordRules.complexityUpper.value=e.value,e.enabled&&(t.push(this.regexValidator(new RegExp("[A-Z]"),{complexityUpper:""})),n.push(this.translate.instant("lang.password_"+e.label)))):"complexityNumber"===e.label?(this.passwordRules.complexityNumber.enabled=e.enabled,this.passwordRules.complexityNumber.value=e.value,e.enabled&&(t.push(this.regexValidator(new RegExp("[0-9]"),{complexityNumber:""})),n.push(this.translate.instant("lang.password_"+e.label)))):"complexitySpecial"===e.label?(this.passwordRules.complexitySpecial.enabled=e.enabled,this.passwordRules.complexitySpecial.value=e.value,e.enabled&&(t.push(this.regexValidator(new RegExp("[^A-Za-z0-9]"),{complexitySpecial:""})),n.push(this.translate.instant("lang.password_"+e.label)))):"renewal"===e.label?(this.passwordRules.renewal.enabled=e.enabled,this.passwordRules.renewal.value=e.value,e.enabled&&i.push(this.translate.instant("lang.password_"+e.label)+" <b>"+e.value+" "+this.translate.instant("lang.days")+"</b>. "+this.translate.instant("lang.password2_"+e.label)+".")):"historyLastUse"===e.label&&(this.passwordRules.historyLastUse.enabled=e.enabled,this.passwordRules.historyLastUse.value=e.value,e.enabled&&i.push(this.translate.instant("lang.password_historyLastUseDesc")+" <b>"+e.value+"</b> "+this.translate.instant("lang.password_historyLastUseDesc2")+"."))}),this.ruleText=n.join(", "),this.otherRuleText=i.join("<br/>"),this.firstFormGroup.controls.newPasswordCtrl.setValidators(t)},e=>{this.notify.error(e.error.errors)}),this.firstFormGroup=this._formBuilder.group({newPasswordCtrl:[""],retypePasswordCtrl:["",zf.compose([zf.required])],currentPasswordCtrl:["",zf.compose([zf.required])]},{validator:this.matchValidator})}regexValidator(e,t){return n=>n.value?e.test(n.value)?null:t:null}matchValidator(e){return e.controls.newPasswordCtrl.value!==e.controls.retypePasswordCtrl.value&&(e.controls.retypePasswordCtrl.setErrors({mismatch:!0}),{mismatch:!0})}getErrorMessage(){return this.firstFormGroup.controls.retypePasswordCtrl.setErrors(this.firstFormGroup.controls.newPasswordCtrl.value!==this.firstFormGroup.controls.retypePasswordCtrl.value?{mismatch:!0}:null),this.firstFormGroup.controls.newPasswordCtrl.hasError("required")?this.translate.instant("lang.requiredField")+" !":this.firstFormGroup.controls.newPasswordCtrl.hasError("minlength")&&this.passwordRules.minLength.enabled?this.passwordRules.minLength.value+" "+this.translate.instant("lang.password_minLength")+" !":null!=this.firstFormGroup.controls.newPasswordCtrl.errors&&void 0!==this.firstFormGroup.controls.newPasswordCtrl.errors.complexityUpper&&this.passwordRules.complexityUpper.enabled?this.translate.instant("lang.password_complexityUpper")+" !":null!=this.firstFormGroup.controls.newPasswordCtrl.errors&&void 0!==this.firstFormGroup.controls.newPasswordCtrl.errors.complexityNumber&&this.passwordRules.complexityNumber.enabled?this.translate.instant("lang.password_complexityNumber")+" !":null!=this.firstFormGroup.controls.newPasswordCtrl.errors&&void 0!==this.firstFormGroup.controls.newPasswordCtrl.errors.complexitySpecial&&this.passwordRules.complexitySpecial.enabled?this.translate.instant("lang.password_complexitySpecial")+" !":(this.firstFormGroup.controls.newPasswordCtrl.setErrors(null),this.validPassword=!0,"")}onSubmit(){this.passwordModel.currentPassword=this.firstFormGroup.controls.currentPasswordCtrl.value,this.passwordModel.newPassword=this.firstFormGroup.controls.newPasswordCtrl.value,this.passwordModel.passwordConfirmation=this.firstFormGroup.controls.retypePasswordCtrl.value,this.http.put("../rest/users/"+this.user.id+"/password",this.passwordModel).subscribe(()=>{this.notify.success(this.translate.instant("lang.passwordChanged")),void 0===this.authService.user.picture&&this.http.get("../rest/users/"+this.authService.user.id+"/picture").subscribe(e=>{this.authService.user.picture=e.picture}),this.router.navigate(["/home"])},e=>{this.notify.handleErrors(e)})}logout(){this.authService.logout()}}return e.\u0275fac=function(t){return new(t||e)(zr(Db),zr(ZC),zr(ab),zr(GC),zr(sS),zr(rS),zr(r_))},e.\u0275cmp=$e({type:e,selectors:[["ng-component"]],decls:68,vars:53,consts:[[3,"translucent"],["color","primary"],["slot","start"],["mainContent",""],[2,"display","contents",3,"formGroup","ngSubmit"],["offset","3","size","6"],[1,"info"],["color","secondary","position","stacked"],["formControlName","currentPasswordCtrl","required","",3,"placeholder","type"],["slot","end","color","light",1,"showpassButton",3,"click"],["slot","icon-only","color","primary",3,"name"],["color","danger",4,"ngIf"],["lines","full"],["color","dark"],["formControlName","newPasswordCtrl","required","",3,"placeholder","type"],["inputPasswd",""],["lines","none",4,"ngIf"],["color","danger"],["required","","formControlName","retypePasswordCtrl",3,"placeholder","type"],["inputPasswd2",""],["text-center","","lines","none",2,"position","sticky","bottom","0px","z-index","1"],[2,"display","flex","align-items","center","justify-content","center","width","100%","background","white"],["type","submit","shape","round","size","large","fill","outline","color","primary",3,"disabled"],[2,"font-size","13px"],["type","button","shape","round","size","large","fill","outline","color","default",3,"click"],["color","warning","class","alert-warning","role","alert",3,"innerHTML",4,"ngIf"],["lines","none"],["slot","start","color","success","name","checkmark-outline"],["color","success"],["color","warning","role","alert",1,"alert-warning",3,"innerHTML"]],template:function(e,t){1&e&&(Hr(0,"ion-header",0),Hr(1,"ion-toolbar",1),Ur(2,"ion-buttons",2),Hr(3,"ion-title"),Da(4),hc(5,"translate"),jr(),jr(),jr(),Hr(6,"ion-content",null,3),Hr(8,"form",4),Xr("ngSubmit",function(){return t.onSubmit()}),Hr(9,"ion-grid"),Hr(10,"ion-row"),Hr(11,"ion-col",5),Hr(12,"ion-card",6),Hr(13,"ion-card-content"),Da(14),hc(15,"translate"),Hr(16,"b"),Da(17),jr(),Da(18),hc(19,"translate"),jr(),jr(),Hr(20,"ion-item"),Hr(21,"ion-label",7),Da(22),hc(23,"translate"),jr(),Ur(24,"ion-input",8),hc(25,"translate"),Hr(26,"ion-button",9),Xr("click",function(){return t.hidePassword=!t.hidePassword}),Ur(27,"ion-icon",10),jr(),Fr(28,Tz,3,3,"ion-note",11),jr(),Hr(29,"ion-list-header",12),Hr(30,"ion-label",13),Da(31),jr(),jr(),Hr(32,"ion-item"),Hr(33,"ion-label",7),Da(34),hc(35,"translate"),jr(),Ur(36,"ion-input",14,15),hc(38,"translate"),Hr(39,"ion-button",9),Xr("click",function(){return t.hidePassword=!t.hidePassword}),Ur(40,"ion-icon",10),jr(),Fr(41,Iz,5,3,"ion-item",16),Hr(42,"ion-note",17),Da(43),jr(),jr(),Hr(44,"ion-item"),Hr(45,"ion-label",7),Da(46),hc(47,"translate"),jr(),Ur(48,"ion-input",18,19),hc(50,"translate"),Hr(51,"ion-button",9),Xr("click",function(){return t.hidePassword=!t.hidePassword}),Ur(52,"ion-icon",10),jr(),Fr(53,Rz,5,3,"ion-item",16),Hr(54,"ion-note",17),Da(55),hc(56,"translate"),jr(),jr(),jr(),jr(),jr(),Hr(57,"ion-item",20),Hr(58,"div",21),Hr(59,"ion-button",22),Hr(60,"ion-label",23),Da(61),hc(62,"translate"),jr(),jr(),Hr(63,"ion-button",24),Xr("click",function(){return t.logout()}),Hr(64,"ion-label",23),Da(65),hc(66,"translate"),jr(),jr(),jr(),jr(),jr(),Fr(67,Lz,1,1,"ion-item",25),jr()),2&e&&(Vr("translucent",!0),no(4),Oa(pc(5,29,"lang.passwordModification")),no(4),Vr("formGroup",t.firstFormGroup),no(6),Ma(" ",pc(15,31,"lang.hello")," "),no(3),Ta(" ",t.user.firstname," ",t.user.lastname,""),no(1),Ma(", ",pc(19,33,"lang.changePasswordInfo"),". "),no(4),Oa(pc(23,35,"lang.typeCurrentPassword")),no(2),ra("placeholder",pc(25,37,"lang.typeCurrentPassword")),Vr("type",t.hidePassword?"password":"text"),no(3),Vr("name",t.hidePassword?"eye-outline":"eye-off-outline"),no(1),Vr("ngIf",t.firstFormGroup.controls.currentPasswordCtrl.hasError("required")),no(3),Oa(t.ruleText),no(3),Ma("",pc(35,39,"lang.passwordConfirmation")," "),no(2),ra("placeholder",pc(38,41,"lang.passwordConfirmation")),Vr("type",t.hidePassword?"password":"text"),no(4),Vr("name",t.hidePassword?"eye-outline":"eye-off-outline"),no(1),Vr("ngIf",t.validPassword),no(2),Oa(t.getErrorMessage()),no(3),Ma("",pc(47,43,"lang.passwordConfirmation")," "),no(2),ra("placeholder",pc(50,45,"lang.passwordConfirmation")),Vr("type",t.hidePassword?"password":"text"),no(4),Vr("name",t.hidePassword?"eye-outline":"eye-off-outline"),no(1),Vr("ngIf",!t.firstFormGroup.controls.retypePasswordCtrl.hasError("mismatch")&&""!=t.firstFormGroup.controls.retypePasswordCtrl.value),no(2),Oa(pc(56,47,"lang.passwordNotMatch")),no(4),Vr("disabled",!t.firstFormGroup.valid),no(2),Oa(pc(62,49,"lang.validate")),no(4),Oa(pc(66,51,"lang.logout")),no(2),Vr("ngIf",t.passwordRules.renewal.enabled||t.passwordRules.historyLastUse.enabled))},directives:[Vx,vA,Cx,mA,Tx,Lm,am,Hm,zx,aA,Mx,Sx,kx,Gx,Zx,Wx,ax,rm,Um,Jm,Ax,Nx,Wu,Xx,tA],pipes:[$C],styles:[".alert-warning[_ngcontent-%COMP%]{text-align:center;width:100%;margin:0;color:#8a6d3b;background-color:#fcf8e3;border-color:#faebcc;padding-top:15px;padding-bottom:15px}.alert-warning[_ngcontent-%COMP%], .container[_ngcontent-%COMP%]{left:0;bottom:0;position:absolute}.container[_ngcontent-%COMP%]{margin-top:-63px;display:flex;flex-direction:column;top:64px;right:0;height:100%}"]}),e})();var Bz=n("b0Xh");const zz=["passwordContent"];function Vz(e,t){if(1&e&&(Hr(0,"ion-note",35),Da(1),hc(2,"translate"),jr()),2&e){const e=na(3);no(1),Ma(" ",pc(2,1,e.handlePassword.errorMsg),"")}}function Nz(e,t){if(1&e){const e=qr();Hr(0,"div"),Hr(1,"ion-list-header",26),Hr(2,"ion-label",1),Da(3),hc(4,"translate"),jr(),jr(),Hr(5,"ion-item"),Hr(6,"ion-label",29),Da(7),hc(8,"translate"),jr(),Hr(9,"ion-input",30),Xr("ngModelChange",function(t){return Lt(e),na(2).password.currentPassword=t}),hc(10,"translate"),jr(),Hr(11,"ion-button",31),Xr("click",function(){Lt(e);const t=na(2);return t.hideCurrentPassword=!t.hideCurrentPassword}),Ur(12,"ion-icon",32),jr(),jr(),Hr(13,"ion-item"),Hr(14,"ion-label",29),Da(15),hc(16,"translate"),jr(),Hr(17,"ion-input",33),Xr("ngModelChange",function(t){return Lt(e),na(2).password.newPassword=t})("keyup",function(){Lt(e);const t=na(2);return t.checkPasswordValidity(t.password.newPassword)}),hc(18,"translate"),jr(),Hr(19,"ion-button",31),Xr("click",function(){Lt(e);const t=na(2);return t.hideNewPassword=!t.hideNewPassword}),Ur(20,"ion-icon",32),jr(),Fr(21,Vz,3,3,"ion-note",28),jr(),Hr(22,"ion-item"),Hr(23,"ion-label",29),Da(24),hc(25,"translate"),jr(),Hr(26,"ion-input",34),Xr("ngModelChange",function(t){return Lt(e),na(2).password.passwordConfirmation=t}),hc(27,"translate"),jr(),Hr(28,"ion-button",31),Xr("click",function(){Lt(e);const t=na(2);return t.hideNewPasswordConfirm=!t.hideNewPasswordConfirm}),Ur(29,"ion-icon",32),jr(),jr(),jr()}if(2&e){const e=na(2);no(3),Oa(pc(4,17,"lang.changePassword")),no(4),Oa(pc(8,19,"lang.currentPassword")),no(2),ra("placeholder",pc(10,21,"lang.currentPassword")),Vr("ngModel",e.password.currentPassword)("type",e.hideCurrentPassword?"password":"text"),no(3),Vr("name",e.hideCurrentPassword?"eye-outline":"eye-off-outline"),no(3),Oa(pc(16,23,"lang.newPassword")),no(2),ra("placeholder",pc(18,25,"lang.newPassword")),Vr("ngModel",e.password.newPassword)("type",e.hideNewPassword?"password":"text"),no(3),Vr("name",e.hideNewPassword?"eye-outline":"eye-off-outline"),no(1),Vr("ngIf",e.handlePassword.error),no(3),Ma("",pc(25,27,"lang.passwordConfirmation")," "),no(2),ra("placeholder",pc(27,29,"lang.passwordConfirmation")),Vr("ngModel",e.password.passwordConfirmation)("type",e.hideNewPasswordConfirm?"password":"text"),no(3),Vr("name",e.hideNewPasswordConfirm?"eye-outline":"eye-off-outline")}}function Hz(e,t){1&e&&(Hr(0,"ion-note",36),Da(1),hc(2,"translate"),jr()),2&e&&(no(1),Ma(" ",pc(2,1,"lang.samePassword"),""))}function jz(e,t){1&e&&(Hr(0,"ion-note",35),Da(1),hc(2,"translate"),jr()),2&e&&(no(1),Ma(" ",pc(2,1,"lang.passwordNotMatch"),""))}function Uz(e,t){if(1&e){const e=qr();Wr(0),Hr(1,"ion-list",16),Hr(2,"ion-item"),Hr(3,"ion-avatar",17),Xr("click",function(){return Lt(e),Br(10).click()}),Ur(4,"img",18),jr(),Hr(5,"ion-label",19),Da(6),hc(7,"translate"),jr(),Hr(8,"ion-input",20),Xr("ngModelChange",function(t){return Lt(e),na().profileInfo.login=t}),jr(),Hr(9,"input",21,22),Xr("change",function(t){return Lt(e),na().handleFileInput(t.target.files)}),jr(),jr(),Hr(11,"ion-item"),Hr(12,"ion-label",19),Da(13),hc(14,"translate"),jr(),Hr(15,"ion-input",23),Xr("ngModelChange",function(t){return Lt(e),na().profileInfo.email=t}),jr(),jr(),Hr(16,"ion-item"),Hr(17,"ion-label",19),Da(18),hc(19,"translate"),jr(),Hr(20,"ion-input",24),Xr("ngModelChange",function(t){return Lt(e),na().profileInfo.firstname=t}),jr(),jr(),Hr(21,"ion-item"),Hr(22,"ion-label",19),Da(23),hc(24,"translate"),jr(),Hr(25,"ion-input",25),Xr("ngModelChange",function(t){return Lt(e),na().profileInfo.lastname=t}),jr(),jr(),Fr(26,Nz,30,31,"div",14),Hr(27,"ion-item",26),Fr(28,Hz,3,3,"ion-note",27),Fr(29,jz,3,3,"ion-note",28),jr(),jr(),Gr()}if(2&e){const e=na();no(4),Vr("src",e.avatarInfo.picture,os),no(2),Oa(pc(7,19,"lang.login")),no(2),Vr("maxlength",128)("ngModel",e.profileInfo.login),no(5),Oa(pc(14,21,"lang.email")),no(2),Vr("maxlength",128)("ngModel",e.profileInfo.email)("readonly","default"!==e.authService.authMode),no(3),Oa(pc(19,23,"lang.firstname")),no(2),Vr("maxlength",128)("ngModel",e.profileInfo.firstname)("readonly","default"!==e.authService.authMode),no(3),Oa(pc(24,25,"lang.lastname")),no(2),Vr("maxlength",128)("ngModel",e.profileInfo.lastname)("readonly","default"!==e.authService.authMode),no(1),Vr("ngIf","default"===e.authService.authMode),no(2),Vr("ngIf",e.password.passwordConfirmation===e.password.newPassword&&e.password.newPassword.length>0&&e.password.passwordConfirmation.length>0),no(1),Vr("ngIf",e.password.passwordConfirmation!==e.password.newPassword)}}function Wz(e,t){if(1&e&&(Hr(0,"ion-select-option",63),Da(1),hc(2,"translate"),jr()),2&e){const e=t.$implicit;Vr("value",e),no(1),Oa(pc(2,2,"lang."+e))}}function Gz(e,t){1&e&&(Ur(0,"ion-note",64),hc(1,"translate")),2&e&&Vr("innerHTML",pc(1,1,"lang.freeModeInfo"),ss)}function $z(e,t){1&e&&(Ur(0,"ion-note",64),hc(1,"translate")),2&e&&Vr("innerHTML",pc(1,1,"lang.standardModeInfo"),ss)}function qz(e,t){if(1&e&&(Hr(0,"ion-select-option",63),Da(1),jr()),2&e){const e=t.index;Vr("value",e+1),no(1),Ma("",e+1," ")}}const Yz=function(e){return{value:e}};function Zz(e,t){if(1&e&&(Ur(0,"ion-note",65),hc(1,"translate")),2&e){const e=na(2);Vr("innerHTML",gc(1,1,"lang.scalingDocWith",ac(4,Yz,e.signatureScaling)),ss)}}function Qz(e,t){if(1&e){const e=qr();Wr(0),Hr(1,"ion-list",16),Hr(2,"ion-item"),Hr(3,"ion-label"),Da(4),hc(5,"translate"),jr(),Hr(6,"ion-toggle",37),Xr("ionChange",function(){Lt(e);const t=na();return t.preferenceInfo.notifications=!t.preferenceInfo.notifications}),jr(),jr(),Hr(7,"ion-list"),Hr(8,"ion-item"),Hr(9,"ion-label",38),Da(10),hc(11,"translate"),jr(),Hr(12,"ion-select",39),Xr("ngModelChange",function(t){return Lt(e),na().preferenceInfo.lang=t}),Fr(13,Wz,3,4,"ion-select-option",40),jr(),jr(),jr(),Hr(14,"ion-list"),Hr(15,"ion-item"),Hr(16,"ion-label",38),Da(17),hc(18,"translate"),jr(),Hr(19,"ion-select",41),Xr("ngModelChange",function(t){return Lt(e),na().preferenceInfo.writingMode=t}),Hr(20,"ion-select-option",42),Da(21),hc(22,"translate"),jr(),Hr(23,"ion-select-option",43),Da(24),hc(25,"translate"),Ur(26,"i",44),jr(),jr(),Fr(27,Gz,2,3,"ion-note",45),Fr(28,$z,2,3,"ion-note",45),jr(),jr(),Hr(29,"ion-list"),Hr(30,"ion-item"),Hr(31,"ion-label",38),Da(32),hc(33,"translate"),jr(),Hr(34,"ion-select",46),Xr("ngModelChange",function(t){return Lt(e),na().preferenceInfo.writingSize=t})("ionChange",function(){return Lt(e),na().drawSample()}),Fr(35,qz,2,2,"ion-select-option",40),jr(),Hr(36,"ion-note",2),Ur(37,"canvas",47),jr(),jr(),jr(),Hr(38,"ion-list"),Hr(39,"ion-item"),Hr(40,"ion-label",38),Da(41),hc(42,"translate"),jr(),Hr(43,"ion-select",48),Xr("ngModelChange",function(t){return Lt(e),na().preferenceInfo.writingColor=t}),Hr(44,"ion-select-option",49),Da(45),hc(46,"translate"),jr(),Hr(47,"ion-select-option",50),Da(48),hc(49,"translate"),jr(),Hr(50,"ion-select-option",51),Da(51),hc(52,"translate"),jr(),jr(),Hr(53,"ion-note",2),Ur(54,"div",52),jr(),jr(),jr(),Hr(55,"ion-list"),Hr(56,"ion-row"),Hr(57,"iotn-item"),Hr(58,"ion-label",53),Da(59),hc(60,"translate"),jr(),jr(),jr(),Hr(61,"ion-row"),Hr(62,"ion-col",54),Hr(63,"ion-item",55),Hr(64,"ion-range",56),Xr("ngModelChange",function(t){return Lt(e),na().signatureScaling=t}),Ur(65,"ion-icon",57),Ur(66,"ion-icon",58),jr(),jr(),Fr(67,Zz,2,6,"ion-note",59),jr(),Hr(68,"ion-col",60),Hr(69,"ion-item",61),Hr(70,"ion-label"),Da(71),hc(72,"translate"),jr(),Hr(73,"ion-toggle",62),Xr("ionChange",function(){Lt(e);const t=na();return t.originalSize=!t.originalSize}),jr(),jr(),jr(),jr(),jr(),jr(),Gr()}if(2&e){const e=na();no(4),Oa(pc(5,27,"lang.receiveNotif")),no(2),Vr("checked",e.preferenceInfo.notifications),no(4),Oa(pc(11,29,"lang.language")),no(2),Vr("ngModel",e.preferenceInfo.lang),no(1),Vr("ngForOf",e.profileInfo.availableLanguages),no(4),Ma("",pc(18,31,"lang.annotationMode")," "),no(2),Vr("ngModel",e.preferenceInfo.writingMode),no(2),Oa(pc(22,33,"lang.free")),no(3),Ma("",pc(25,35,"lang.appleStylus")," "),no(3),Vr("ngIf","stylus"===e.preferenceInfo.writingMode),no(1),Vr("ngIf","direct"===e.preferenceInfo.writingMode),no(4),Oa(pc(33,37,"lang.stylusWidh")),no(2),Vr("ngModel",e.preferenceInfo.writingSize),no(1),Vr("ngForOf",e.counter(10)),no(6),Oa(pc(42,39,"lang.defaultColor")),no(2),Vr("ngModel",e.preferenceInfo.writingColor),no(2),Oa(pc(46,41,"lang.black")),no(3),Oa(pc(49,43,"lang.blue")),no(3),Oa(pc(52,45,"lang.red")),no(3),fa("background-color",e.preferenceInfo.writingColor),no(5),Oa(pc(60,47,"lang.signatureScaling")),no(5),Vr("disabled",e.originalSize)("ngModel",e.signatureScaling),no(3),Vr("ngIf",!e.originalSize),no(4),Oa(pc(72,49,"lang.originalSize")),no(2),Vr("checked",e.originalSize)}}function Xz(e,t){if(1&e){const e=qr();Hr(0,"ion-list"),Hr(1,"ion-item"),Ur(2,"ion-input",66),Hr(3,"ion-button",67),Xr("click",function(){return Lt(e),na(2).deleteSubstitute()}),Ur(4,"ion-icon",68),jr(),jr(),jr()}if(2&e){const e=na(2);no(2),Vr("value",e.authService.user.substituteUser)}}function Kz(e,t){if(1&e){const e=qr();Hr(0,"ion-list"),Hr(1,"ion-item"),Hr(2,"ion-searchbar",69),Xr("ionChange",function(t){return Lt(e),na(2).test(t)}),hc(3,"translate"),jr(),jr(),jr()}2&e&&(no(2),Vr("placeholder",pc(3,1,"lang.chooseSubstitute")))}function Jz(e,t){if(1&e&&(Hr(0,"ion-note",2),Da(1),jr()),2&e){const e=na().$implicit;no(1),Oa(e.email)}}function eV(e,t){1&e&&(Hr(0,"ion-note",74),Da(1),hc(2,"translate"),jr()),2&e&&(no(1),Oa(pc(2,1,"lang.delegatedUser")))}function tV(e,t){if(1&e){const e=qr();Hr(0,"ion-item"),Hr(1,"ion-checkbox",71),Xr("ionChange",function(t){return Lt(e),na(3).selectSubstitute(t.detail.value)}),jr(),Hr(2,"ion-label"),Da(3),jr(),Fr(4,Jz,2,1,"ion-note",72),Fr(5,eV,3,3,"ion-note",73),jr()}if(2&e){const e=t.$implicit;no(1),Vr("disabled",e.substitute)("value",e),no(2),Ta("",e.firstname," ",e.lastname,""),no(1),Vr("ngIf",!e.substitute),no(1),Vr("ngIf",e.substitute)}}function nV(e,t){if(1&e&&(Hr(0,"ion-list"),Fr(1,tV,6,6,"ion-item",70),jr()),2&e){const e=na(2);no(1),Vr("ngForOf",e.userList)}}function iV(e,t){if(1&e){const e=qr();Hr(0,"button",78),Xr("click",function(){Lt(e);const n=t.index;return na(3).toggleSignature(n)}),Ur(1,"img",79),jr()}if(2&e){const e=t.$implicit,n=na(3);ma("selected",e.substituted),no(1),Vr("src",n.sanitizer.bypassSecurityTrustUrl("data:image/png;base64,"+e.encodedSignature),os)}}function sV(e,t){if(1&e&&(Wr(0),Hr(1,"ion-item",26),Hr(2,"ion-label",75),Da(3),hc(4,"translate"),jr(),jr(),Hr(5,"div",76),Fr(6,iV,2,3,"button",77),jr(),Gr()),2&e){const e=na(2);no(3),Ma(" ",pc(4,2,"lang.signSubstituted")," : "),no(3),Vr("ngForOf",e.signaturesService.signaturesList)}}function oV(e,t){if(1&e&&(Wr(0),Fr(1,Xz,5,1,"ion-list",14),Fr(2,Kz,4,3,"ion-list",14),Fr(3,nV,2,1,"ion-list",14),Fr(4,sV,7,4,"ng-container",14),Gr()),2&e){const e=na();no(1),Vr("ngIf",null!==e.authService.user.substitute),no(1),Vr("ngIf",null===e.authService.user.substitute),no(1),Vr("ngIf",null===e.authService.user.substitute),no(1),Vr("ngIf",null!=e.authService.user.substitute&&e.signaturesService.signaturesList.length>0)}}function rV(e,t){if(1&e){const e=qr();Hr(0,"ion-footer",80),Hr(1,"ion-toolbar"),Hr(2,"ion-buttons",81),Hr(3,"ion-button",82),Xr("click",function(){return Lt(e),na().submitProfile()}),Hr(4,"ion-label"),Da(5),hc(6,"translate"),jr(),jr(),jr(),jr(),jr()}if(2&e){const e=na(),t=Br(27);no(3),Vr("disabled",e.allowValidate()||!t.form.valid),no(2),Oa(pc(6,2,"lang.save"))}}const aV=function(){return["info","pref"]};let lV=(()=>{class e{constructor(e,t,n,i,s,o,r,a,l,c,d){this.translate=e,this.http=t,this.router=n,this.sanitizer=i,this.notificationService=s,this.signaturesService=o,this.authService=r,this.cookieService=a,this.filtersService=l,this.renderer=c,this.modalController=d,this.currentTool="info",this.profileInfo={substitute:null,preferences:[]},this.preferenceInfo={},this.avatarInfo={picture:"",pictureOrientation:""},this.hideCurrentPassword=!0,this.hideNewPassword=!0,this.hideNewPasswordConfirm=!0,this.passwordRules={minLength:{enabled:!1,value:0},complexityUpper:{enabled:!1,value:0},complexityNumber:{enabled:!1,value:0},complexitySpecial:{enabled:!1,value:0},renewal:{enabled:!1,value:0},historyLastUse:{enabled:!1,value:0}},this.password={currentPassword:"",newPassword:"",passwordConfirmation:""},this.handlePassword={error:!1,errorMsg:""},this.usersList=[],this.ruleText="",this.otherRuleText="",this.disableState=!1,this.msgButton="lang.validate",this.loading=!1,this.slideOpts={initialSlide:0,speed:400},this.showHideContent=!1,this.userList=[],this.signatureScaling=25,this.originalSize=!1}ngOnInit(){this.initProfileInfo(),this.getPassRules()}dismissModal(){this.modalController.dismiss("cancel")}test(e){""===e.detail.value?this.userList=[]:e.detail.value.length>=3&&this.http.get("../rest/autocomplete/users?search="+e.detail.value).pipe(Ov(e=>{this.userList=e.filter(e=>e.id!==this.profileInfo.id)}),fv(e=>(this.notificationService.handleErrors(e),lb(!1)))).subscribe()}initProfileInfo(){this.profileInfo=JSON.parse(JSON.stringify(this.authService.user)),this.preferenceInfo=this.profileInfo.preferences,this.avatarInfo.picture=this.profileInfo.picture,void 0!==this.preferenceInfo.signatureScaling?!1===this.preferenceInfo.signatureScaling?this.originalSize=!0:this.signatureScaling=this.preferenceInfo.signatureScaling:this.originalSize=!0,delete this.profileInfo.picture,delete this.profileInfo.preferences}initTab(e){this.currentTool=e,"pref"===e&&setTimeout(()=>{this.drawSample()},200)}closeProfile(){setTimeout(()=>{this.initProfileInfo()},200),this.dismissModal()}getPassRules(){this.handlePassword.error=!1,this.handlePassword.errorMsg="",this.http.get("../rest/passwordRules").subscribe(e=>{const t=[],n=[];e.rules.forEach(e=>{"minLength"===e.label?(this.passwordRules.minLength.enabled=e.enabled,this.passwordRules.minLength.value=e.value,e.enabled&&this.translate.get("lang.minLengthChar",{charLength:e.value}).subscribe(e=>{t.push(e)})):"complexityUpper"===e.label?(this.passwordRules.complexityUpper.enabled=e.enabled,this.passwordRules.complexityUpper.value=e.value,e.enabled&&t.push("lang.upperRequired")):"complexityNumber"===e.label?(this.passwordRules.complexityNumber.enabled=e.enabled,this.passwordRules.complexityNumber.value=e.value,e.enabled&&t.push("lang.numberRequired")):"complexitySpecial"===e.label?(this.passwordRules.complexitySpecial.enabled=e.enabled,this.passwordRules.complexitySpecial.value=e.value,e.enabled&&t.push("lang.specialCharRequired")):"renewal"===e.label?(this.passwordRules.renewal.enabled=e.enabled,this.passwordRules.renewal.value=e.value,e.enabled&&this.translate.get("lang.renewalInfo",{time:e.value}).subscribe(e=>{n.push(e)})):"historyLastUse"===e.label&&(this.passwordRules.historyLastUse.enabled=e.enabled,this.passwordRules.historyLastUse.value=e.value,e.enabled&&this.translate.get("lang.historyUseInfo",{countPwd:e.value}).subscribe(e=>{n.push(e)}))}),this.ruleText=t.join(", "),this.otherRuleText=n.join("<br/>")},e=>{this.notificationService.handleErrors(e)})}checkPasswordValidity(e){this.handlePassword.error=!0,!e.match(/[A-Z]/g)&&this.passwordRules.complexityUpper.enabled?this.handlePassword.errorMsg="lang.upperRequired":!e.match(/[0-9]/g)&&this.passwordRules.complexityNumber.enabled?this.handlePassword.errorMsg="lang.numberRequired":!e.match(/[^A-Za-z0-9]/g)&&this.passwordRules.complexitySpecial.enabled?this.handlePassword.errorMsg="lang.specialCharRequired":e.length<this.passwordRules.minLength.value&&this.passwordRules.minLength.enabled?this.translate.get("lang.minLengthChar",{charLength:this.passwordRules.minLength.value}).subscribe(e=>{this.handlePassword.errorMsg=e}):(this.handlePassword.error=!1,this.handlePassword.errorMsg="")}allowValidate(){return!!this.disableState||!(""===this.password.newPassword||!this.handlePassword.error&&this.password.newPassword===this.password.passwordConfirmation&&0!==this.password.currentPassword.length&&0!==this.password.newPassword.length&&0!==this.password.passwordConfirmation.length)}submitProfile(){return e=this,void 0,n=function*(){this.disableState=!0,this.msgButton="lang.sending",this.preferenceInfo=Object.assign(Object.assign({},this.preferenceInfo),{signatureScaling:!this.originalSize&&this.signatureScaling}),this.http.put("../rest/users/"+this.authService.user.id+"/preferences",this.preferenceInfo).pipe(Ov(()=>{this.disableState=!1,this.msgButton="lang.validate",this.setLang(this.preferenceInfo.lang),this.cookieService.set("maarchParapheurLang",this.preferenceInfo.lang)}),FL(()=>"default"===this.authService.authMode?this.http.put("../rest/users/"+this.authService.user.id,this.profileInfo):new Promise(e=>{e(!0)})),FL(()=>{if(this.authService.updateUserInfoWithTokenRefresh(),""===this.password.newPassword)return this.closeProfile(),this.notificationService.success("lang.profileUpdated"),lb(!1);if("default"===this.authService.authMode){const e=new fb({Authorization:"Bearer "+this.authService.getToken()});return this.http.put("../rest/users/"+this.authService.user.id+"/password",this.password,{observe:"response",headers:e})}return lb(!1)}),db(e=>!!e),Ov(e=>{this.authService.saveTokens(e.headers.get("Token"),e.headers.get("Refresh-Token")),this.password.newPassword="",this.password.passwordConfirmation="",this.password.currentPassword="",this.notificationService.success("lang.profileUpdated")}),fv(e=>(401===e.status?this.notificationService.error("lang.wrongPassword"):this.notificationService.handleErrors(e),lb(!1)))).subscribe()},new((t=void 0)||(t=Promise))(function(i,s){function o(e){try{a(n.next(e))}catch(t){s(t)}}function r(e){try{a(n.throw(e))}catch(t){s(t)}}function a(e){var n;e.done?i(e.value):(n=e.value,n instanceof t?n:new t(function(e){e(n)})).then(o,r)}a((n=n.apply(e,[])).next())});var e,t,n}changePicture(){this.msgButton="lang.sending",this.disableState=!0,this.http.put("../rest/users/"+this.authService.user.id+"/picture",this.avatarInfo).pipe(Ov(()=>{this.authService.user.picture=this.avatarInfo.picture,this.notificationService.success("lang.profileUpdated")}),Iv(()=>{this.msgButton="lang.validate",this.disableState=!1})).subscribe()}selectSubstitute(e){this.userList=[],this.http.put("../rest/users/"+this.authService.user.id+"/substitute",{substitute:e.id}).subscribe(()=>{this.authService.updateUserInfoWithTokenRefresh(),this.filtersService.resfreshDocuments(),this.signaturesService.documentsList.length>0&&!1===this.signaturesService.documentsList[this.signaturesService.indexDocumentsList].owner&&this.router.navigate(["/documents"]),this.notificationService.success("lang.substituteEnabled")})}deleteSubstitute(){confirm(this.translate.instant("lang.deleteSubstitution")+" ?")&&(this.profileInfo.substitute=null,this.http.put("../rest/users/"+this.authService.user.id+"/substitute",{substitute:this.profileInfo.substitute}).subscribe(()=>{this.authService.updateUserInfoWithTokenRefresh(),this.filtersService.resfreshDocuments(),this.signaturesService.documentsList.length>0&&!1===this.signaturesService.documentsList[this.signaturesService.indexDocumentsList].owner&&this.router.navigate(["/documents"]),this.notificationService.success("lang.substitutionDeleted")}))}handleFileInput(e){this.passwordContent&&this.passwordContent.close();const t=e.item(0);if(t.size<=5e6)if(-1!==["image/png","image/jpg","image/jpeg","image/gif"].indexOf(t.type)){const e=new FileReader;e.onloadend=t=>{const n=new Image;n.src=e.result.toString(),this.avatarInfo.picture=e.result,n.onload=()=>this.fixImgOrientation(n)},e.readAsDataURL(t)}else this.notificationService.error("lang.notAnImage");else this.notificationService.error("lang.imageTooBig")}fixImgOrientation(e){Bz.getData(e,()=>{let t=0;switch(Bz.getTag(e,"Orientation")){case 3:t=180;break;case 6:t=90;break;case 8:t=-90}this.avatarInfo.pictureOrientation=t,this.changePicture()})}drawSample(){const e=document.getElementById("sampleNote").getContext("2d");e.clearRect(0,0,100,100),e.beginPath(),e.lineWidth=this.preferenceInfo.writingSize,e.moveTo(0,0),e.lineTo(100,100),e.moveTo(100,0),e.lineTo(0,100),e.stroke()}initProfileTab(e){1===e.index&&this.drawSample()}counter(e){return new Array(e)}setLang(e){this.translate.use(e)}toggleSignature(e){this.http.patch("../rest/users/"+this.authService.user.id+"/signatures/"+this.signaturesService.signaturesList[e].id+"/substituted",{substituted:!this.signaturesService.signaturesList[e].substituted}).subscribe(()=>{this.signaturesService.signaturesList[e].substituted=!this.signaturesService.signaturesList[e].substituted,this.notificationService.success("lang.modificationSaved")})}}return e.\u0275fac=function(t){return new(t||e)(zr(GC),zr(Db),zr(r_),zr(qh),zr(ZC),zr(sS),zr(rS),zr(sP),zr(kF),zr(cl),zr(JA))},e.\u0275cmp=$e({type:e,selectors:[["app-my-profile"]],viewQuery:function(e,t){if(1&e&&Tc(zz,1),2&e){let e;Mc(e=Rc())&&(t.passwordContent=e.first)}},decls:33,vars:19,consts:[[3,"translucent"],["color","primary"],["slot","end"],[3,"click"],["slot","icon-only","name","close-outline"],[3,"value","ionChange"],["value","info"],["name","information-circle"],["value","pref"],["name","brush-outline"],["value","deleg"],["name","hand-left-outline"],[2,"display","contents",3,"ngSubmit"],["profileForm","ngForm"],[4,"ngIf"],["class","ion-no-border",4,"ngIf"],["lines","full",1,"ion-no-margin"],["slot","start",2,"cursor","pointer",3,"click"],[3,"src"],["color","secondary","position","floating"],["name","login","readonly","","required","",3,"maxlength","ngModel","ngModelChange"],["type","file",2,"display","none",3,"change"],["uploadFile",""],["name","email","pattern","(^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\\.[a-zA-Z0-9-.]+$)","required","",3,"maxlength","ngModel","readonly","ngModelChange"],["name","firstname","required","",3,"maxlength","ngModel","readonly","ngModelChange"],["name","lastname","required","",3,"maxlength","ngModel","readonly","ngModelChange"],["lines","none"],["color","success",4,"ngIf"],["color","danger",4,"ngIf"],["color","secondary","position","stacked"],["name","currentPassword",3,"ngModel","placeholder","type","ngModelChange"],["slot","end","color","light",1,"showpassButton",3,"click"],["slot","icon-only","color","primary",3,"name"],["name","newPassword",3,"ngModel","placeholder","type","ngModelChange","keyup"],["name","passwordConfirmation",3,"ngModel","placeholder","type","ngModelChange"],["color","danger"],["color","success"],["slot","start",3,"checked","ionChange"],["position","floating","color","secondary"],["name","langUser",3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],["name","writingMode",3,"ngModel","ngModelChange"],["value","direct"],["value","stylus"],[1,"fab","fa-apple"],[3,"innerHTML",4,"ngIf"],["name","writingSize",3,"ngModel","ngModelChange","ionChange"],["id","sampleNote","width","100","height","100"],["name","writingColor",3,"ngModel","ngModelChange"],["value","#000000"],["value","#1a75ff"],["value","#FF0000"],[2,"height","25px","width","25px","border-radius","20px"],["color","secondary",2,"opacity","1","margin-left","15px"],["size","7"],["lines","none",2,"margin-left","-10px"],["min","10","max","50","pin","","color","primary","name","signatureScaling",3,"disabled","ngModel","ngModelChange"],["slot","start","size","small","name","scan-circle-outline"],["slot","end","name","scan-outline"],["style","margin-left: 20px; font-size: 14px;",3,"innerHTML",4,"ngIf"],["size","5"],["lines","none",2,"margin-top","22px","margin-left","10px"],["slot","start","name","originalSize","color","primary",2,"cursor","pointer",3,"checked","ionChange"],[3,"value"],[3,"innerHTML"],[2,"margin-left","20px","font-size","14px",3,"innerHTML"],["readonly","",3,"value"],["slot","end","color","danger",3,"click"],["name","close-outline"],[3,"placeholder","ionChange"],[4,"ngFor","ngForOf"],["color","primary","slot","start",3,"disabled","value","ionChange"],["slot","end",4,"ngIf"],["slot","end","color","danger",4,"ngIf"],["slot","end","color","danger"],["color","secondary"],[2,"display","grid","grid-template-columns","repeat(2, 1fr)"],["type","button","class","signListButton","mat-stroked-button","",3,"selected","click",4,"ngFor","ngForOf"],["type","button","mat-stroked-button","",1,"signListButton",3,"click"],[2,"width","190px",3,"src"],[1,"ion-no-border"],[1,"ion-justify-content-center"],["type","submit","color","primary",3,"disabled","click"]],template:function(e,t){1&e&&(Hr(0,"ion-header",0),Hr(1,"ion-toolbar",1),Hr(2,"ion-title"),Da(3),hc(4,"translate"),jr(),Hr(5,"ion-buttons",2),Hr(6,"ion-button",3),Xr("click",function(){return t.dismissModal()}),Ur(7,"ion-icon",4),jr(),jr(),jr(),jr(),Hr(8,"ion-header"),Hr(9,"ion-toolbar"),Hr(10,"ion-segment",5),Xr("ionChange",function(e){return t.initTab(e.detail.value)}),Hr(11,"ion-segment-button",6),Hr(12,"ion-label"),Da(13),hc(14,"translate"),jr(),Ur(15,"ion-icon",7),jr(),Hr(16,"ion-segment-button",8),Hr(17,"ion-label"),Da(18),hc(19,"translate"),jr(),Ur(20,"ion-icon",9),jr(),Hr(21,"ion-segment-button",10),Hr(22,"ion-label"),Da(23),hc(24,"translate"),jr(),Ur(25,"ion-icon",11),jr(),jr(),jr(),jr(),Hr(26,"form",12,13),Xr("ngSubmit",function(){return t.submitProfile()}),Hr(28,"ion-content"),Fr(29,Uz,30,27,"ng-container",14),Fr(30,Qz,74,51,"ng-container",14),Fr(31,oV,5,4,"ng-container",14),jr(),jr(),Fr(32,rV,7,4,"ion-footer",15)),2&e&&(Vr("translucent",!0),no(3),Oa(pc(4,10,"lang.myProfil")),no(7),Vr("value",t.currentTool),no(3),Oa(pc(14,12,"lang.informations")),no(5),Oa(pc(19,14,"lang.preferences")),no(5),Oa(pc(24,16,"lang.substitute")),no(6),Vr("ngIf","info"===t.currentTool),no(1),Vr("ngIf","pref"===t.currentTool),no(1),Vr("ngIf","deleg"===t.currentTool),no(1),Vr("ngIf",rc(18,aV).indexOf(t.currentTool)>-1))},directives:[Vx,vA,mA,Cx,Ax,Nx,cA,ox,dA,Zx,Lm,am,Mm,Tx,Wu,Qx,Gx,wx,Wx,ax,Jm,tb,rm,Rm,ib,Xx,tA,bA,J_,uA,ju,hA,aA,Mx,sA,lA,Dx,gM,Bx],pipes:[$C],styles:['.sidebar[_ngcontent-%COMP%]{position:relative;height:100%;overflow:auto}.sidebar-header[_ngcontent-%COMP%]{background:#f1f4f4;height:50px;display:flex;align-items:center;justify-content:center;font-size:14px;font-weight:600;padding-top:10px}.sidebar-header-icon[_ngcontent-%COMP%]{margin-right:15px;position:relative}.sidebar-header-icon.notification[_ngcontent-%COMP%]:after{position:absolute;right:-5px;top:-5px;width:10px;height:10px;border-radius:50%;background:#e74c3c;content:""}.sidebar-header-subtitle[_ngcontent-%COMP%]{color:#9b9b9b}.sidebar-btn[_ngcontent-%COMP%]{height:50px;display:flex;align-items:center;justify-content:space-around}.sidebar[_ngcontent-%COMP%]   .nav[_ngcontent-%COMP%]{margin-top:0}.profile-header[_ngcontent-%COMP%]{background:#135f7f;height:95px;display:flex;justify-content:center;position:relative}.user[_ngcontent-%COMP%]{color:#fff;color:#f99830;position:absolute;top:15px;font-weight:700;font-size:20px}.input-row[_ngcontent-%COMP%]{width:100%;padding-top:10px;padding-bottom:10px}.profile-content[_ngcontent-%COMP%]{padding:10px;text-align:center}.actions[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{padding:10px;margin:10px;color:#fff;font-size:20px}.actions[_ngcontent-%COMP%]   .cancel[_ngcontent-%COMP%]{position:absolute;top:0;left:0;height:65px;width:65px;font-size:35px}.actions[_ngcontent-%COMP%]   .validate[_ngcontent-%COMP%]{position:absolute;top:10px;right:0;font-size:20px}canvas[_ngcontent-%COMP%]{background-color:#f1f4f4}fieldset[_ngcontent-%COMP%]{border:1px solid #f1f4f4;align-items:center}legend[_ngcontent-%COMP%]{color:#f99830}.form-container[_ngcontent-%COMP%]{display:table;width:100%}.form-2-col[_ngcontent-%COMP%]{width:50%}.form-2-col[_ngcontent-%COMP%], .form-col[_ngcontent-%COMP%]{display:table-cell;vertical-align:middle}.notification[_ngcontent-%COMP%]{text-align:left;padding:10px}.panel-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;position:relative;height:100%;overflow:hidden}.panel-header[_ngcontent-%COMP%]{box-shadow:0 0 10px 0 #656565;color:#fff;background:#135f7f;height:95px;display:flex;justify-content:center;position:relative;font-size:20px;align-items:center}.panel-content[_ngcontent-%COMP%]{flex:1;overflow:auto}.mat-icon[_ngcontent-%COMP%]{height:auto}.selected[_ngcontent-%COMP%]{border:solid #f99830}.selectedSubstitute[_ngcontent-%COMP%]{width:100%}.selectedSubstitute[_ngcontent-%COMP%]    .mat-input-element{cursor:default}.selectedSubstitute[_ngcontent-%COMP%]    .mat-form-field-suffix{top:0;display:flex}.showpassButton[_ngcontent-%COMP%]{--background:none;--box-shadow:none}']}),e})();function cV(e,t){if(1&e){const e=qr();Hr(0,"ion-button",3),Xr("click",function(){return Lt(e),na().menu.open("left-menu")}),Da(1),hc(2,"translate"),jr()}2&e&&(no(1),Ma(" ",pc(2,1,"lang.accessMenu")," "))}let dV=(()=>{class e{constructor(e,t,n,i){this.signaturesService=e,this.translate=t,this.menu=n,this.modalController=i,this.loading=!1}ngOnInit(){this.menu.enable(!0,"left-menu"),this.menu.enable(!1,"right-menu"),this.menu.open("left-menu")}}return e.\u0275fac=function(t){return new(t||e)(zr(sS),zr(GC),zr(KA),zr(JA))},e.\u0275cmp=$e({type:e,selectors:[["ng-component"]],decls:3,vars:1,consts:[["color","primary"],["svgIcon","maarchLogo",1,"maarchLogo"],["class","menu-button","color","light","fill","outline","size","large",3,"click",4,"ngIf"],["color","light","fill","outline","size","large",1,"menu-button",3,"click"]],template:function(e,t){1&e&&(Hr(0,"ion-content",0),Ur(1,"mat-icon",1),Fr(2,cV,3,3,"ion-button",2),jr()),2&e&&(no(2),Vr("ngIf",t.signaturesService.mobileMode))},directives:[Tx,tT,Wu,Ax],pipes:[$C],styles:[".maarchLogo[_ngcontent-%COMP%]{top:50%;width:250px;height:auto}.maarchLogo[_ngcontent-%COMP%], .menu-button[_ngcontent-%COMP%]{position:absolute;left:50%;transform:translate(-50%,-50%)}.menu-button[_ngcontent-%COMP%]{top:60%}"]}),e})();var uV=function(e,t,n,i){return new(n||(n=Promise))(function(s,o){function r(e){try{l(i.next(e))}catch(t){o(t)}}function a(e){try{l(i.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?s(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(r,a)}l((i=i.apply(e,t||[])).next())})};function hV(e,t){if(1&e){const e=qr();Hr(0,"ion-chip",25),Xr("click",function(){Lt(e);const t=na().$implicit,n=na().index;return na().goToSignUserPage(n,t.page)}),hc(1,"translate"),Hr(2,"ion-label"),Da(3),jr(),jr()}if(2&e){const e=na().$implicit,t=na().index,n=na();Vr("title",pc(1,3,"lang.accessToPage")+" "+e.page)("color",t===n.currentUser&&e.page===n.currentPage?"primary":"medium"),no(3),Oa(e.page)}}function pV(e,t){if(1&e&&(Wr(0),Fr(1,hV,4,5,"ion-chip",24),Gr()),2&e){const e=t.$implicit,n=na().index;no(1),Vr("ngIf",e.sequence==n)}}function gV(e,t){if(1&e&&(Hr(0,"ion-segment-button",21),Hr(1,"ion-label"),Hr(2,"h2"),Da(3),jr(),Hr(4,"p",22),Fr(5,pV,2,1,"ng-container",7),jr(),jr(),Ur(6,"ion-icon",23),jr()),2&e){const e=t.$implicit,n=t.index,i=na();Vr("value",n),no(3),Oa(e.userDisplay),no(2),Vr("ngForOf",i.signList),no(1),Vr("name","sign"===e.mode?"pencil-outline":"checkmark-done-outline")}}const fV=function(e,t){return{x:e,y:t}};function mV(e,t){if(1&e){const e=qr();Hr(0,"div",27),Xr("movingOffset",function(){return Lt(e),na(2).dragging=!0})("endOffset",function(t){Lt(e);const n=na(2);return n.moveSign(t,n.i)})("click",function(){Lt(e);const t=na().$implicit,n=na();return n.currentUser!=t.sequence&&n.goToSignUserPage(t.sequence,n.currentPage)}),Hr(1,"ion-buttons",28),Hr(2,"ion-button",29),Xr("click",function(){Lt(e);const t=na().index;return na().deleteSign(t)}),hc(3,"translate"),Ur(4,"ion-icon",30),jr(),jr(),Hr(5,"span",31),Da(6),jr(),Da(7),hc(8,"uppercase"),hc(9,"translate"),jr()}if(2&e){const e=na().$implicit,t=na(),n=Br(11);fa("width",25,"%"),ma("signDisabled",t.currentUser!==e.sequence)("hide",!t.pagesLoaded),Vr("position",lc(20,fV,e.position.positionX*t.workingAreaWidth/100,e.position.positionY*t.workingAreaHeight/100))("ngDraggable",t.currentUser===e.sequence)("preventDefaultEvent",!1)("bounds",n)("inBounds",!0),no(2),Vr("title",pc(3,14,"lang.delete")),no(4),Oa(t.getUserName(e.sequence)),no(1),Ma(" ",pc(8,16,pc(9,18,"lang.signature"))," ")}}function bV(e,t){if(1&e&&(Wr(0),Fr(1,mV,10,23,"div",26),Gr()),2&e){const e=t.$implicit,n=na();no(1),Vr("ngIf",e.page===n.currentPage)}}function vV(e,t){if(1&e){const e=qr();Hr(0,"ion-button",32),Xr("click",function(){return Lt(e),na().initSign()}),Da(1),hc(2,"translate"),jr()}2&e&&(no(1),Ma(" ",pc(2,1,"lang.createSignaturePosition"),""))}function yV(e,t){if(1&e&&(Hr(0,"ion-select-option",33),Da(1),jr()),2&e){const e=t.index;Vr("value",t.$implicit),no(1),Oa(e+1)}}function wV(e,t){if(1&e){const e=qr();Hr(0,"ion-fab-button",36),Xr("click",function(){Lt(e);const t=na(2);return t.changePage(t.currentPage-1)}),Ur(1,"ion-icon",37),jr()}}function _V(e,t){if(1&e){const e=qr();Hr(0,"ion-fab-button",38),Xr("click",function(){Lt(e);const t=na(2);return t.changePage(t.currentPage+1)}),Ur(1,"ion-icon",39),jr()}}function xV(e,t){if(1&e&&(Wr(0),Fr(1,wV,2,0,"ion-fab-button",34),Fr(2,_V,2,0,"ion-fab-button",35),Gr()),2&e){const e=na();no(1),Vr("ngIf",e.currentPage>1),no(1),Vr("ngIf",e.currentPage<e.pages.length)}}let AV=(()=>{class e{constructor(e,t,n,i,s,o){this.translate=e,this.http=t,this.signaturesService=n,this.pdfViewerService=i,this.modalController=s,this.loadingController=o,this.workflow=[],this.resource=[],this.pdfContent=null,this.loading=!1,this.dragging=!1,this.pages=[],this.currentUser=0,this.currentPage=1,this.currentSignature={positionX:0,positionY:0},this.workingAreaWidth=0,this.workingAreaHeight=0,this.signList=[],this.imgContent=null,this.load=null,this.pagesLoaded=!1}ngOnInit(){this.loadingController.create({message:this.translate.instant("lang.processing"),spinner:"dots"}).then(e=>{this.load=e,this.load.present()}),this.resource.signPos&&this.initSignPos()}initSignPos(){this.workflow.forEach((e,t)=>{var n;(null===(n=e.signaturePositions)||void 0===n?void 0:n.length)>0&&(this.signList=this.signList.concat(e.signaturePositions.filter(e=>e.mainDocument===this.resource.mainDocument).map(e=>Object.assign(Object.assign({},e),{sequence:t}))))})}onSubmit(){this.modalController.dismiss(this.formatData())}onPagesLoaded(e){return uV(this,void 0,void 0,function*(){this.pages=Array.from({length:e.pagesCount}).map((e,t)=>t+1),this.changePage(1)})}exportAsImage(){return uV(this,void 0,void 0,function*(){const e=yield this.pdfViewerService.getPageAsImage(this.currentPage,{width:1e3});this.getImageDimensions(e),this.imgContent=e,this.pagesLoaded=!0})}getImageDimensions(e){const t=new Image;t.onload=e=>{this.workingAreaWidth=e.target.naturalWidth,this.workingAreaHeight=e.target.naturalHeight},t.src=e}changePage(e){this.currentPage=e,this.exportAsImage()}moveSign(e,t){const n=100*e.x/this.workingAreaWidth,i=100*e.y/this.workingAreaHeight;this.signList.filter(e=>e.sequence===this.currentUser&&e.page===this.currentPage)[0].position.positionX=n,this.signList.filter(e=>e.sequence===this.currentUser&&e.page===this.currentPage)[0].position.positionY=i,this.dragging=!1}emptySign(){return 0===this.signList.filter(e=>e.sequence===this.currentUser&&e.page===this.currentPage).length}initSign(){this.signList.push({sequence:this.currentUser,page:this.currentPage,position:{positionX:75,positionY:90}});let e=0;Array.from(document.getElementsByClassName("drag-scroll-content")).forEach((t,n)=>{if(null!==t.offsetParent)return e=n,!0}),document.getElementsByClassName("drag-scroll-content")[e].scrollTop=this.workingAreaHeight}getUserSignPosPage(e){return this.signList.filter(t=>t.sequence===e)}selectUser(e){this.currentUser=+e}getUserName(e){return this.workflow[e].userDisplay}goToSignUserPage(e,t){this.currentUser=e,this.currentPage=t,this.exportAsImage()}deleteSign(e){this.signList.splice(e,1)}formatData(){let e=[];return this.workflow.forEach((t,n)=>{this.signList.filter(e=>e.sequence===n).length>0&&(e=e.concat(this.signList.filter(e=>e.sequence===n)))}),e}imageLoaded(e){this.load.dismiss()}}return e.\u0275fac=function(t){return new(t||e)(zr(GC),zr(Db),zr(sS),zr(QS),zr(JA),zr(XA))},e.\u0275cmp=$e({type:e,selectors:[["ng-component"]],inputs:{workflow:"workflow",resource:"resource",pdfContent:"pdfContent"},decls:37,vars:35,consts:[[3,"translucent"],["color","primary"],["color","warning","scrollable","",2,"justify-content","center",3,"value","ionChange"],["layout","icon-start",3,"value",4,"ngFor","ngForOf"],[2,"overflow","auto","height","100%","width","100%","margin","auto",3,"drag-disabled","drag-scroll-disabled"],["id","myBounds",2,"margin","auto","position","relative","box-shadow","0px 0px 5px 0px #656565"],["myBounds",""],[4,"ngFor","ngForOf"],[1,"img-content",3,"src","ionImgDidLoad"],["color","primary","style","position: fixed;top: 50%;left: 50%;transform: translate(-50%,-50%);font-size:20px;",3,"click",4,"ngIf"],[2,"display","none",3,"src","useBrowserLocale","textLayer","pdfLoaded"],[1,"page-info"],[1,"page-info-doc"],[1,"page-info-page",3,"click"],["interface","action-sheet","hidden","true",2,"max-height","30%",3,"cancelText","ionChange"],["pagesList",""],[3,"value",4,"ngFor","ngForOf"],[4,"ngIf"],[1,"ion-no-border","footer-buttons"],["type","button","color","primary","fill","outline","shape","round","size","large",3,"click"],["type","button","color","medium","fill","outline","shape","round","size","large",3,"click"],["layout","icon-start",3,"value"],[1,"chip-item-content"],[3,"name"],["class","chip-item","outline","",3,"title","color","click",4,"ngIf"],["outline","",1,"chip-item",3,"title","color","click"],["class","signature",3,"signDisabled","position","width","ngDraggable","preventDefaultEvent","bounds","inBounds","hide","movingOffset","endOffset","click",4,"ngIf"],[1,"signature",3,"position","ngDraggable","preventDefaultEvent","bounds","inBounds","movingOffset","endOffset","click"],[2,"position","absolute","top","-50px","right","0px"],["fill","clear","slot","icon-only","shape","round","size","small","color","danger",3,"title","click"],["slot","icon-only","name","trash-outline"],[1,"signUserName"],["color","primary",2,"position","fixed","top","50%","left","50%","transform","translate(-50%,-50%)","font-size","20px",3,"click"],[3,"value"],["class","paginate-left",3,"click",4,"ngIf"],["class","paginate-right",3,"click",4,"ngIf"],[1,"paginate-left",3,"click"],["name","chevron-back-outline"],[1,"paginate-right",3,"click"],["name","chevron-forward-outline"]],template:function(e,t){if(1&e){const e=qr();Hr(0,"ion-header",0),Hr(1,"ion-toolbar",1),Hr(2,"ion-title"),Da(3),hc(4,"translate"),jr(),jr(),Hr(5,"ion-toolbar",1),Hr(6,"ion-segment",2),Xr("ionChange",function(e){return t.selectUser(e.detail.value)}),Fr(7,gV,7,4,"ion-segment-button",3),jr(),jr(),jr(),Hr(8,"ion-content"),Hr(9,"drag-scroll",4),Hr(10,"div",5,6),Fr(12,bV,2,1,"ng-container",7),Hr(13,"ion-img",8),Xr("ionImgDidLoad",function(e){return t.imageLoaded(e)}),jr(),Fr(14,vV,3,3,"ion-button",9),jr(),jr(),Hr(15,"ngx-extended-pdf-viewer",10),Xr("pdfLoaded",function(e){return t.onPagesLoaded(e)}),jr(),Hr(16,"section",11),Hr(17,"div",12),Da(18),jr(),Hr(19,"div",13),Xr("click",function(){Lt(e);const n=Br(23);return t.pages.length>1&&n.open()}),Da(20),hc(21,"translate"),jr(),Hr(22,"ion-select",14,15),Xr("ionChange",function(e){return t.changePage(e.target.value)}),hc(24,"translate"),Fr(25,yV,2,2,"ion-select-option",16),jr(),jr(),Fr(26,xV,3,2,"ng-container",17),jr(),Hr(27,"ion-footer",18),Hr(28,"div"),Hr(29,"ion-button",19),Xr("click",function(){return t.onSubmit()}),Hr(30,"ion-label"),Da(31),hc(32,"translate"),jr(),jr(),Hr(33,"ion-button",20),Xr("click",function(){return t.modalController.dismiss()}),Hr(34,"ion-label"),Da(35),hc(36,"translate"),jr(),jr(),jr(),jr()}2&e&&(Vr("translucent",!0),no(3),Oa(pc(4,25,"lang.adminSignaturesPositions")),no(3),Vr("value",t.currentUser),no(1),Vr("ngForOf",t.workflow),no(2),Vr("drag-disabled",t.dragging&&!t.signaturesService.mobileMode)("drag-scroll-disabled",t.dragging&&t.signaturesService.mobileMode),no(1),fa("width",t.workingAreaWidth,"px")("height",t.workingAreaHeight,"px"),no(2),Vr("ngForOf",t.signList),no(1),Vr("src",t.imgContent),no(1),Vr("ngIf",t.emptySign()),no(1),Vr("src",t.pdfContent)("useBrowserLocale",!0)("textLayer",!1),no(3),Oa(t.resource.title),no(2),Ia("",pc(21,27,"lang.page")," ",t.currentPage," / ",t.pages.length,""),no(2),Vr("cancelText",pc(24,29,"lang.cancel")),no(3),Vr("ngForOf",t.pages),no(1),Vr("ngIf",t.pages.length>1),no(5),Oa(pc(32,31,"lang.save")),no(4),Oa(pc(36,33,"lang.cancel")))},directives:[Vx,vA,mA,cA,ox,ju,Tx,Yk,Hx,Wu,ZS,uA,Bx,Ax,Zx,dA,Nx,Ox,Kk,Cx,hA,Lx],pipes:[$C,ah],styles:[".containerMobile[_ngcontent-%COMP%]{flex-direction:column}.containerMobile[_ngcontent-%COMP%]   .signPosForm[_ngcontent-%COMP%]{flex:none!important;height:auto}.containerMobile[_ngcontent-%COMP%]   .signatureContainer[_ngcontent-%COMP%], .signPosForm[_ngcontent-%COMP%]{flex:1}.signatureContainer[_ngcontent-%COMP%]{position:relative;overflow:auto;width:1050px;display:flex;justify-content:center}.posSignButton[_ngcontent-%COMP%]{position:-webkit-sticky;position:sticky;top:0;left:50%;transform:translateX(-50%)}.signature[_ngcontent-%COMP%]{z-index:2;position:absolute;border:1px dashed var(--ion-color-danger);background:rgba(var(--ion-color-danger-rgb),.6) none repeat scroll 0 0;font-weight:700;font-size:20px;color:#fff;height:110px;display:flex;align-items:center;justify-content:center}.signDisabled[_ngcontent-%COMP%]{z-index:1;opacity:.2;cursor:pointer}.signUserName[_ngcontent-%COMP%]{position:absolute;font-size:12px;bottom:20px;font-weight:400;color:#fff;font-style:italic}.chip-item-content[_ngcontent-%COMP%]{z-index:9999;position:absolute;margin:0;bottom:0}.chip-item[_ngcontent-%COMP%]{font-size:7px;width:15px;height:15px;padding:0;margin:0 5px;color:#fff;border-color:#fff;justify-content:center}img[_ngcontent-%COMP%]{pointer-events:none}.paginate-left[_ngcontent-%COMP%]{left:20px}.paginate-left[_ngcontent-%COMP%], .paginate-right[_ngcontent-%COMP%]{position:absolute;top:40%;transform:translateY(-50%);--background:hsla(0,0%,77.6%,0.5019607843137255);--color:#666}.paginate-right[_ngcontent-%COMP%]{right:20px}.page-info[_ngcontent-%COMP%]{position:absolute;bottom:70px;height:30px;width:auto;max-width:70%;color:rgba(var(--ion-color-dark-rgb),.8);font-size:12px;font-weight:300;line-height:30px;display:flex;align-items:center;justify-content:center;opacity:.5;left:50%;transform:translateX(-50%);font-weight:500;transition:all .3s ease-in-out;z-index:9999}.page-info-doc[_ngcontent-%COMP%]{max-width:80%;background-color:#f1f4f4;border-radius:14px;padding:0 20px;z-index:1;white-space:pre;overflow:hidden;text-overflow:ellipsis}.page-info-page[_ngcontent-%COMP%]{cursor:pointer;text-align:center;border-radius:0 14px 14px 0;padding:0 20px;background:#fff;border:1px solid #ecf0f1;margin-left:-15px;height:28px;white-space:pre;display:flex;align-items:center}.page-info[_ngcontent-%COMP%]:hover{opacity:1}.hide[_ngcontent-%COMP%]{display:none}"]}),e})(),CV=(()=>{class e{constructor(){this.fileDropped=new yc,this.disabled=!1,this.background="none",this.opacity="1"}onDragOver(e){this.disabled||(e.preventDefault(),e.stopPropagation(),this.background="#9ecbec",this.opacity="0.8")}onDragLeave(e){this.disabled||(e.preventDefault(),e.stopPropagation(),this.background="rgba(255,255,255,0)",this.opacity="1")}ondrop(e){if(!this.disabled){e.preventDefault(),e.stopPropagation(),this.background="rgba(255,255,255,0)",this.opacity="1";const t=e.dataTransfer.files;t.length>0&&this.fileDropped.emit(t)}}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Ke({type:e,selectors:[["","appUploadFileDragDrop",""]],hostVars:4,hostBindings:function(e,t){1&e&&Xr("dragover",function(e){return t.onDragOver(e)})("dragleave",function(e){return t.onDragLeave(e)})("drop",function(e){return t.ondrop(e)}),2&e&&fa("background-color",t.background)("opacity",t.opacity)},inputs:{disabled:"disabled"},outputs:{fileDropped:"fileDropped"}}),e})();var SV=function(e,t,n,i){return new(n||(n=Promise))(function(s,o){function r(e){try{l(i.next(e))}catch(t){o(t)}}function a(e){try{l(i.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?s(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(r,a)}l((i=i.apply(e,t||[])).next())})};const kV=["appVisaWorkflow"],PV=["rightContent"],EV=["docToUpload"];function DV(e,t){1&e&&Ur(0,"ion-icon",34)}function OV(e,t){1&e&&Ur(0,"ion-icon",35)}function MV(e,t){1&e&&Ur(0,"i",36)}function TV(e,t){if(1&e){const e=qr();Hr(0,"ion-item"),Hr(1,"ion-buttons",2),Hr(2,"ion-button",22),Xr("click",function(){const e=t.$implicit;return e.mainDocument=!e.mainDocument}),hc(3,"translate"),hc(4,"translate"),Fr(5,DV,1,0,"ion-icon",23),Fr(6,OV,1,0,"ion-icon",24),jr(),jr(),Hr(7,"ion-item",25),Hr(8,"ion-label",26),Da(9),hc(10,"translate"),jr(),Hr(11,"ion-input",27),Xr("ngModelChange",function(e){return t.$implicit.reference=e}),hc(12,"translate"),jr(),jr(),Hr(13,"ion-item",25),Hr(14,"ion-label",26),Da(15),hc(16,"translate"),jr(),Hr(17,"ion-input",28),Xr("ngModelChange",function(e){return t.$implicit.title=e}),hc(18,"translate"),jr(),jr(),Hr(19,"ion-buttons",5),Hr(20,"ion-button",29),Xr("click",function(){Lt(e);const n=t.index;return na(2).signPos(n)}),hc(21,"translate"),Fr(22,MV,1,0,"i",30),Ur(23,"ion-icon",31),jr(),Hr(24,"ion-button",32),Xr("click",function(){Lt(e);const n=t.index;return na(2).deleteFile(n)}),hc(25,"translate"),Ur(26,"ion-icon",33),jr(),jr(),jr()}if(2&e){const e=t.$implicit,n=t.index,i=na(2);no(2),Vr("title",e.mainDocument?pc(3,15,"lang.docToSign"):pc(4,17,"lang.attachDocToSign")),no(3),Vr("ngIf",e.mainDocument),no(1),Vr("ngIf",!e.mainDocument),no(3),Oa(pc(10,19,"lang.reference")),no(2),ra("placeholder",pc(12,21,"lang.fileReference")),Vr("maxlength",53)("ngModel",e.reference)("disabled",!e.mainDocument),no(4),Ma("",pc(16,23,"lang.subject")," *"),no(2),ra("placeholder",pc(18,25,"lang.filename")),Vr("ngModel",e.title),no(3),Vr("disabled",!e.mainDocument)("title",pc(21,27,"lang.setSignaturesPosition")),no(2),Vr("ngIf",void 0!==i.filesToUpload[n].signPos&&i.filesToUpload[n].signPos.length>0),no(2),Vr("title",pc(25,29,"lang.delete"))}}function IV(e,t){if(1&e&&(Hr(0,"ion-list"),Hr(1,"ion-list-header"),Hr(2,"ion-label",1),Da(3),hc(4,"translate"),jr(),jr(),Fr(5,TV,27,31,"ion-item",21),jr()),2&e){const e=na();no(3),Oa(pc(4,2,"lang.documentsToUpload")),no(2),Vr("ngForOf",e.filesToUpload)}}function RV(e,t){1&e&&Ur(0,"app-visa-workflow",37,38),2&e&&Vr("editMode",!0)}let LV=(()=>{class e{constructor(e,t,n,i,s,o,r,a,l,c,d,u){this.http=e,this.translate=t,this.router=n,this.menu=i,this.signaturesService=s,this.viewContainerRef=o,this.notificationService=r,this.authService=a,this.loadingController=l,this.alertController=c,this.datePipe=d,this.modalController=u,this.loading=!1,this.filesToUpload=[],this.errors=[],this.fromDocument=null}ngOnInit(){}ionViewWillEnter(){this.menu.enable(!0,"left-menu"),this.menu.enable(!0,"right-menu"),this.filesToUpload=[],this.signaturesService.initTemplate(this.rightContent,this.viewContainerRef,"rightContent"),void 0!==window.history.state.documentId&&(this.fromDocument=window.history.state.documentId,this.getDocumentData(this.fromDocument))}getDocumentData(e){return new Promise(t=>{this.http.get("../rest/documents/"+e).pipe(Ov(n=>{let i="",s=n.document.reference.split("/");s=s.slice(3,s.length),s.length>0&&(i=s.join("/")),this.filesToUpload.push({title:n.document.title,reference:i,mainDocument:!0,content:"",linkId:n.document.linkId,metadata:n.document.metadata}),this.getDocumentContent(e),this.appVisaWorkflow.loadWorkflow(n.document.workflow.map(e=>(e.userSignatureModes.unshift("visa"),Object.assign(Object.assign({},e),{processDate:null,current:!1,role:"visa"===e.mode?"visa":e.signatureMode,modes:e.userSignatureModes}))));for(let e=0;e<n.document.attachments.length;e++)this.getAttachment(n.document.attachments[e].id);t(!0)}),fv(e=>(this.notificationService.handleErrors(e),lb(!1)))).subscribe()})}getDocumentContent(e){return new Promise(t=>{this.http.get(`../rest/documents/${e}/content?type=original`).pipe(Ov(e=>{this.filesToUpload[0].content=e.encodedDocument,t(!0)}),fv(e=>(this.notificationService.handleErrors(e),lb(!1)))).subscribe()})}getAttachment(e){return new Promise(t=>{this.http.get("../rest/attachments/"+e).pipe(Ov(e=>{this.filesToUpload.push({title:e.attachment.title,mainDocument:!1,content:e.attachment.encodedDocument}),t(!0)}),fv(e=>(this.notificationService.handleErrors(e),lb(!1)))).subscribe()})}ionViewWillLeave(){this.signaturesService.detachTemplate("rightContent")}onSubmit(){this.isValid()&&this.promptSaveDoc()}promptSaveDoc(){return SV(this,void 0,void 0,function*(){const e=yield this.alertController.create({cssClass:"alert-info-no-msg",header:this.translate.instant("lang.areYouSure"),inputs:[{name:"note",id:"note",type:"textarea",placeholder:this.translate.instant("lang.addNote")}],buttons:[{text:this.translate.instant("lang.cancel"),role:"cancel",cssClass:"secondary",handler:()=>{}},{text:this.translate.instant("lang.validate"),handler:e=>{this.loadingController.create({message:this.translate.instant("lang.processing"),spinner:"dots"}).then(t=>SV(this,void 0,void 0,function*(){t.present();const n=this.formatData(e.note);for(let e=0;e<n.length;e++)yield this.saveDocument(n[e],e);t.dismiss(),0===this.errors.length&&(this.notificationService.success("lang.documentsImported"),this.router.navigate(["/home"]))}))}}]});yield e.present()})}saveDocument(e,t){return new Promise(t=>{this.http.post("../rest/documents",e).pipe(Ov(()=>{this.errors=[]}),Iv(()=>t(!0)),fv(t=>(this.errors.push(e.title),this.notificationService.handleErrors(t),lb(!1)))).subscribe()})}formatData(e){const t=new Date;let n=null,i=null;""!==e&&(n={value:e,creator:`${this.authService.user.firstname} ${this.authService.user.lastname}`,creationDate:this.datePipe.transform(t,"dd-MM-y")});const s=[],o=this.filesToUpload.filter(e=>e.mainDocument),r=this.filesToUpload.filter(e=>!e.mainDocument);return o.length>1&&(i=this.datePipe.transform(t,"ddMMYhmmss")+"_"+Math.random().toString(36).substr(2,9)),o.forEach(e=>{const o={};null!==this.fromDocument&&e.metadata.forEach(e=>{o[e.label]=e.value});let a="";""!==e.reference&&(a=this.datePipe.transform(t,"y/MM/dd")+"/"+e.reference),s.push({title:e.title,reference:a,encodedDocument:e.content,isZipped:!1,linkId:null!==this.fromDocument?e.linkId:i,sender:`${this.authService.user.firstname} ${this.authService.user.lastname}`,notes:n,attachments:r.map(e=>({title:e.title,encodedDocument:e.content})),workflow:this.appVisaWorkflow.getCurrentWorkflow().map((t,n)=>({userId:t.userId,mode:this.authService.getWorkflowMode(t.role),signatureMode:this.authService.getSignatureMode(t.role),signaturePositions:void 0!==t.signaturePositions?this.formatPositions(t.signaturePositions.filter(t=>t.mainDocument===e.mainDocument&&void 0!==e.signPos)).map(e=>({page:e.page,positionX:e.position.positionX,positionY:e.position.positionY})):[]})),metadata:o})}),s}formatPositions(e){return delete e.mainDocument,e}dndUploadFile(e){this.uploadTrigger({target:{files:[e[0]]}})}uploadTrigger(e){if(e.target.files&&e.target.files[0]&&this.isExtensionAllowed(e.target.files)){for(let t=0;t<e.target.files.length;t++){const n=e.target.files[t].name,i={title:n.substr(0,n.lastIndexOf(".")),reference:n.substr(0,n.lastIndexOf(".")).substr(0,53),mainDocument:!0,content:""},s=new FileReader;s.readAsArrayBuffer(e.target.files[t]),s.onload=e=>{i.mainDocument=0===this.filesToUpload.length,i.reference=0===this.filesToUpload.length?i.reference:"",i.content=this.getBase64Document(e.target.result),this.filesToUpload.push(i),1===this.filesToUpload.length&&setTimeout(()=>{this.menu.open("right-menu")},500)}}this.fileImport.nativeElement.value=""}else this.loading=!1}isExtensionAllowed(e){for(let t=0;t<e.length;t++)if("pdf"!==e[t].name.toLowerCase().split(".").pop())return this.notificationService.error("lang.onlyPdfAuthorized"),!1;return!0}getBase64Document(e){const t=new Uint8Array(e).reduce((e,t)=>e+String.fromCharCode(t),"");return btoa(t)}deleteFile(e){this.filesToUpload.splice(e,1)}signPos(e){return SV(this,void 0,void 0,function*(){if(this.appVisaWorkflow.getCurrentWorkflow().length>0){this.appVisaWorkflow.getCurrentWorkflow().forEach((e,t)=>{void 0===e.signaturePositions&&(this.appVisaWorkflow.visaWorkflow[t].signaturePositions=[])});const t=yield this.modalController.create({component:AV,cssClass:"custom-alert-fullscreen",componentProps:{workflow:this.appVisaWorkflow.getCurrentWorkflow(),resource:this.filesToUpload[e],pdfContent:"data:application/pdf;base64,"+this.filesToUpload[e].content}});yield t.present();const{data:n}=yield t.onWillDismiss();void 0!==n&&(this.filesToUpload[e].signPos=n,this.appVisaWorkflow.setPositionsWorkfow(this.filesToUpload[e],n))}else this.notificationService.error("lang.mustSetWorkflowBeforeSignPositions")})}isValid(){return this.filesToUpload.filter(e=>""===e.title).length>0?(this.notificationService.error("lang.subjectMandatory"),!1):0===this.filesToUpload.filter(e=>e.mainDocument).length?(this.notificationService.error("lang.mainDocumentMandatory"),!1):0!==this.appVisaWorkflow.getCurrentWorkflow().length||(this.notificationService.error("lang.workflowUserstMandatory"),this.menu.open("right-menu"),!1)}}return e.\u0275fac=function(t){return new(t||e)(zr(Db),zr(GC),zr(r_),zr(KA),zr(sS),zr(Gl),zr(ZC),zr(rS),zr(XA),zr(QA),zr(lh),zr(JA))},e.\u0275cmp=$e({type:e,selectors:[["ng-component"]],viewQuery:function(e,t){if(1&e&&(Tc(kV,1),Tc(PV,3),Tc(EV,1)),2&e){let e;Mc(e=Rc())&&(t.appVisaWorkflow=e.first),Mc(e=Rc())&&(t.rightContent=e.first),Mc(e=Rc())&&(t.fileImport=e.first)}},features:[Ja([lh])],decls:31,vars:14,consts:[[3,"translucent"],["color","primary"],["slot","start"],["menu","left-menu"],[1,"ion-text-center"],["slot","end"],["menu","right-menu"],["name","list-outline"],[2,"display","flex","flex-direction","column","height","100%"],[4,"ngIf"],["type","file","name","files[]","multiple","","accept","application/pdf",2,"display","none",3,"change"],["docToUpload",""],["appUploadFileDragDrop","",1,"dnd-area",3,"fileDropped"],["fill","outline","color","medium","size","large",3,"click"],["lines","none",1,"ion-text-center","no-background"],["color","medium"],[1,"ion-no-border"],[1,"ion-text-center",2,"background","white"],["color","primary","shape","round","size","large","fill","outline",3,"click"],[2,"font-size","13px"],["rightContent",""],[4,"ngFor","ngForOf"],["fill","clear","slot","icon-only","shape","round","color","primary",3,"title","click"],["slot","icon-only","name","pencil-outline",4,"ngIf"],["slot","icon-only","name","document-attach-outline",4,"ngIf"],[2,"width","100%"],["position","floating","color","secondary"],["matInput","","type","text",3,"placeholder","maxlength","ngModel","disabled","ngModelChange"],["matInput","","type","text",3,"placeholder","ngModel","ngModelChange"],["fill","clear","slot","icon-only","shape","round","color","primary",3,"disabled","title","click"],["class","badge-sign-pos",4,"ngIf"],["slot","icon-only","name","contract-outline"],["fill","clear","slot","icon-only","shape","round","color","danger",3,"title","click"],["slot","icon-only","name","trash-outline"],["slot","icon-only","name","pencil-outline"],["slot","icon-only","name","document-attach-outline"],[1,"badge-sign-pos"],[2,"display","contents",3,"editMode"],["appVisaWorkflow",""]],template:function(e,t){if(1&e){const e=qr();Hr(0,"ion-header",0),Hr(1,"ion-toolbar",1),Hr(2,"ion-buttons",2),Ur(3,"ion-menu-button",3),jr(),Hr(4,"ion-title",4),Da(5),hc(6,"translate"),jr(),Hr(7,"ion-buttons",5),Hr(8,"ion-menu-button",6),Ur(9,"ion-icon",7),jr(),jr(),jr(),jr(),Hr(10,"ion-content"),Hr(11,"div",8),Fr(12,IV,6,4,"ion-list",9),Hr(13,"input",10,11),Xr("change",function(e){return t.uploadTrigger(e)}),jr(),Hr(15,"div",12),Xr("fileDropped",function(e){return t.dndUploadFile(e)}),Hr(16,"ion-button",13),Xr("click",function(){return Lt(e),Br(14).click()}),Da(17),hc(18,"translate"),jr(),Hr(19,"ion-item",14),Hr(20,"ion-label",15),Da(21),hc(22,"translate"),jr(),jr(),jr(),jr(),jr(),Hr(23,"ion-footer",16),Hr(24,"div",17),Hr(25,"ion-button",18),Xr("click",function(){return t.onSubmit()}),Hr(26,"ion-label",19),Da(27),hc(28,"translate"),jr(),jr(),jr(),jr(),Fr(29,RV,2,1,"ng-template",null,20,zc)}2&e&&(Vr("translucent",!0),no(5),Oa(pc(6,6,"lang.newDocumentToVisa")),no(7),Vr("ngIf",t.filesToUpload.length>0),no(5),Ma(" ",pc(18,8,"lang.chooseDocuments")," "),no(4),Ma(" ",pc(22,10,"lang.dndDocuments")," "),no(6),Oa(pc(28,12,"lang.validate")))},directives:[Vx,vA,Cx,Jx,mA,Nx,Tx,Wu,CV,Ax,Gx,Zx,Bx,Qx,Xx,ju,Wx,ax,tb,rm,Rm,CB],pipes:[$C],styles:[".dnd-area[_ngcontent-%COMP%]{border:5px dashed;margin:20px;text-align:center;color:grey;padding:50px 10px;flex:1;align-items:center;display:flex;flex-direction:column;justify-content:center}.no-background[_ngcontent-%COMP%]{--background:none} .alert-info-no-msg .alert-message{display:none} .alert-info-no-msg .alert-title{color:var(--ion-color-primary)}.badge-sign-pos[_ngcontent-%COMP%]{width:10px;height:10px;background:var(--ion-color-danger);position:absolute;top:0;right:0;border-radius:5px}"]}),e})();const FV=["searchInput"];function BV(e,t){if(1&e){const e=qr();Hr(0,"ion-searchbar",6,7),Xr("ngModelChange",function(t){return Lt(e),na().searchValue=t})("ionChange",function(t){return Lt(e),na().getDatas(t)}),hc(2,"translate"),jr()}2&e&&Vr("ngModel",na().searchValue)("placeholder",pc(2,2,"lang.search"))}function zV(e,t){if(1&e){const e=qr();Hr(0,"ion-item"),Hr(1,"ion-checkbox",10),Xr("ionChange",function(t){return Lt(e),na(2).selectItem(t.detail.value)}),jr(),Hr(2,"ion-label"),Da(3),jr(),Hr(4,"ion-note",11),Da(5),jr(),jr()}if(2&e){const e=t.$implicit;no(1),Vr("value",e),no(2),Ta("",e.firstname," ",e.lastname,""),no(2),Oa(e.email)}}function VV(e,t){if(1&e&&(Hr(0,"ion-list",8),Fr(1,zV,6,4,"ion-item",9),jr()),2&e){const e=na();no(1),Vr("ngForOf",e.itemList)}}function NV(e,t){1&e&&(Hr(0,"ion-label",12),Da(1),hc(2,"translate"),jr()),2&e&&(no(1),Oa(pc(2,1,"lang.noItem")))}function HV(e,t){if(1&e){const e=qr();Hr(0,"ion-chip",13),Xr("click",function(){Lt(e);const n=t.index;return na().removeItem(n)}),Hr(1,"ion-label",14),Da(2),jr(),Ur(3,"ion-icon",15),jr()}if(2&e){const e=t.$implicit;no(2),Ta("",e.firstname," ",e.lastname,"")}}function jV(e,t){if(1&e){const e=qr();Hr(0,"ion-buttons",11),Hr(1,"ion-button",16),Xr("click",function(){return Lt(e),na().toggleEdit()}),Hr(2,"ion-label",17),Da(3),hc(4,"translate"),jr(),jr(),jr()}2&e&&(no(3),Oa(pc(4,1,"lang.edit")))}let UV=(()=>{class e{constructor(e,t){this.http=e,this.notificationService=t,this.currentItems=[],this.selectedOpt=new yc,this.myControl=new km,this.loading=!1,this.searchValue="",this.editMode=!1,this.itemList=[]}ngOnInit(){}getDatas(e){""===e.detail.value?this.itemList=[]:this.http.get("../rest/autocomplete/users?search="+e.detail.value).pipe(Ov(e=>{this.itemList=e}),fv(e=>(this.notificationService.handleErrors(e),lb(!1)))).subscribe()}selectItem(e){this.currentItems.push(e),this.searchValue="",this.itemList=[],this.editMode=!1,this.selectedOpt.emit(e)}removeItem(e){this.currentItems.splice(e,1)}toggleEdit(){this.editMode=!this.editMode,this.editMode&&setTimeout(()=>{this.searchInput.setFocus()},0)}}return e.\u0275fac=function(t){return new(t||e)(zr(Db),zr(ZC))},e.\u0275cmp=$e({type:e,selectors:[["plugin-autocomplete"]],viewQuery:function(e,t){if(1&e&&Tc(FV,1),2&e){let e;Mc(e=Rc())&&(t.searchInput=e.first)}},inputs:{currentItems:"currentItems",singleMode:"singleMode",required:"required",options:["datas","options"],routeDatas:"routeDatas",placeholder:["labelPlaceholder","placeholder"],key:["targetSearchKey","key"],subInfoKey:"subInfoKey"},outputs:{selectedOpt:"triggerEvent"},decls:8,vars:5,consts:[[3,"ngModel","placeholder","ngModelChange","ionChange",4,"ngIf"],["class","item-list",4,"ngIf"],["lines","none"],["color","medium","style","font-style: italic;",4,"ngIf"],["style","height: auto;",3,"click",4,"ngFor","ngForOf"],["slot","end",4,"ngIf"],[3,"ngModel","placeholder","ngModelChange","ionChange"],["searchInput",""],[1,"item-list"],[4,"ngFor","ngForOf"],["color","primary","slot","start",3,"value","ionChange"],["slot","end"],["color","medium",2,"font-style","italic"],[2,"height","auto",3,"click"],[1,"ion-text-wrap"],["name","close-circle"],["size","small",3,"click"],["color","medium"]],template:function(e,t){1&e&&(Fr(0,BV,3,4,"ion-searchbar",0),Fr(1,VV,2,1,"ion-list",1),Hr(2,"ion-list"),Hr(3,"ion-item",2),Fr(4,NV,3,3,"ion-label",3),Hr(5,"p"),Fr(6,HV,4,2,"ion-chip",4),jr(),Fr(7,jV,5,3,"ion-buttons",5),jr(),jr()),2&e&&(Vr("ngIf",t.editMode),no(1),Vr("ngIf",t.itemList.length>0),no(3),Vr("ngIf",0===t.currentItems.length),no(2),Vr("ngForOf",t.currentItems),no(1),Vr("ngIf",!t.editMode))},directives:[Wu,Qx,Gx,ju,lA,ax,rm,Rm,Dx,J_,Zx,tA,Ox,Nx,Cx,Ax],pipes:[$C],styles:[""]}),e})();var WV=function(e,t,n,i){return new(n||(n=Promise))(function(s,o){function r(e){try{l(i.next(e))}catch(t){o(t)}}function a(e){try{l(i.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?s(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(r,a)}l((i=i.apply(e,t||[])).next())})};const GV=["appVisaWorkflow"],$V=["rightContent"];function qV(e,t){1&e&&Ur(0,"ion-icon",26)}function YV(e,t){1&e&&Ur(0,"ion-icon",27)}function ZV(e,t){1&e&&Ur(0,"ion-icon",28)}function QV(e,t){if(1&e){const e=qr();Hr(0,"ion-chip",21),Xr("click",function(){Lt(e);const t=na().$implicit;return na(2).removeFilter(t)}),hc(1,"translate"),Fr(2,qV,1,0,"ion-icon",22),Fr(3,YV,1,0,"ion-icon",23),Fr(4,ZV,1,0,"ion-icon",24),Hr(5,"ion-label"),Da(6),jr(),Ur(7,"ion-icon",25),jr()}if(2&e){const e=na().$implicit;Vr("title",pc(1,5,"lang."+e.id+"Search")),no(2),Vr("ngIf","title"===e.id),no(1),Vr("ngIf","reference"===e.id),no(1),Vr("ngIf","documentId"===e.id),no(2),Oa(e.val)}}function XV(e,t){if(1&e){const e=qr();Hr(0,"ion-chip",21),Xr("click",function(){Lt(e);const n=t.$implicit,i=na(2).$implicit;return na(2).removeFilter(i,n.id)}),hc(1,"translate"),Ur(2,"ion-icon",30),Hr(3,"ion-label"),Da(4),hc(5,"translate"),jr(),Ur(6,"ion-icon",25),jr()}if(2&e){const e=t.$implicit;Vr("title",pc(1,2,"lang.workflowStatesSearch")),no(4),Oa(pc(5,4,e.label))}}function KV(e,t){if(1&e&&(Hr(0,"div"),Fr(1,XV,7,6,"ion-chip",29),jr()),2&e){const e=na().$implicit;no(1),Vr("ngForOf",e.val)}}function JV(e,t){if(1&e){const e=qr();Hr(0,"ion-chip",21),Xr("click",function(){Lt(e);const n=t.$implicit,i=na(2).$implicit;return na(2).removeFilter(i,n)}),hc(1,"translate"),Ur(2,"ion-icon",31),Hr(3,"ion-label"),Da(4),jr(),Ur(5,"ion-icon",25),jr()}if(2&e){const e=t.$implicit;Vr("title",pc(1,3,"lang.workflowUsersSearch")),no(4),Ta("",e.firstname," ",e.lastname,"")}}function eN(e,t){if(1&e&&(Hr(0,"div"),Fr(1,JV,6,5,"ion-chip",29),jr()),2&e){const e=na().$implicit;no(1),Vr("ngForOf",e.val)}}function tN(e,t){if(1&e&&(Hr(0,"div"),Fr(1,QV,8,7,"ion-chip",20),Fr(2,KV,2,1,"div",10),Fr(3,eN,2,1,"div",10),jr()),2&e){const e=t.$implicit;no(1),Vr("ngIf",("title"===e.id||"reference"===e.id||"documentId"===e.id)&&""!==e.val),no(1),Vr("ngIf","workflowStates"===e.id&&e.val.length>0),no(1),Vr("ngIf","workflowUsers"===e.id&&e.val.length>0)}}function nN(e,t){if(1&e){const e=qr();Hr(0,"ion-toolbar",14),Hr(1,"div",15),Hr(2,"ion-button",16),Xr("click",function(){return Lt(e),na().clearFilters()}),hc(3,"translate"),Ur(4,"ion-icon",17),jr(),Hr(5,"div",18),Fr(6,tN,4,3,"div",19),jr(),jr(),jr()}if(2&e){const e=na();no(2),Vr("title",pc(3,2,"lang.clearFilters")),no(4),Vr("ngForOf",e.currentFilters)}}function iN(e,t){1&e&&(Hr(0,"ion-list",32),Hr(1,"ion-item",33),Hr(2,"ion-label",34),Da(3),hc(4,"translate"),jr(),jr(),jr()),2&e&&(no(3),Oa(pc(4,1,"lang.noResult")))}function sN(e,t){1&e&&Ur(0,"ion-icon",57)}function oN(e,t){1&e&&Ur(0,"ion-icon",58)}function rN(e,t){1&e&&Ur(0,"ion-icon",59)}function aN(e,t){if(1&e&&(Hr(0,"ion-badge",60),Da(1),hc(2,"translate"),jr()),2&e){const e=na().$implicit;no(1),Oa(pc(2,1,"lang."+e.mode+"User"))}}const lN=function(){return["END","STOP"]};function cN(e,t){if(1&e&&(Wr(0),Fr(1,sN,1,0,"ion-icon",52),Hr(2,"span",53),Da(3),hc(4,"translate"),Fr(5,oN,1,0,"ion-icon",54),Fr(6,rN,1,0,"ion-icon",55),Fr(7,aN,3,3,"ion-badge",56),jr(),Gr()),2&e){const e=t.$implicit,n=t.index,i=na(3);no(1),Vr("ngIf",n>0),no(1),ma("success",null!==e.processDate&&"STOP"!==e.status)("typist-interrupt","REF"===e.status)("interrupt",null===e.processDate&&"END"===e.status||"STOP"===e.status)("current",e.current)("no-visa",null===e.processDate&&null===e.status&&!e.current),no(1),Ma("",i.functionsService.empty(e.userDisplay)?pc(4,15,"lang.userDeleted"):e.userDisplay,"\xa0 "),no(2),Vr("ngIf",null!==e.processDate&&"REF"!==e.status&&"STOP"!==e.status),no(1),Vr("ngIf",null!==e.processDate&&"REF"===e.status),no(1),Vr("ngIf",null===e.processDate&&(null===e.status||rc(17,lN).indexOf(e.status)>-1))}}function dN(e,t){1&e&&Ur(0,"ion-icon",61)}function uN(e,t){1&e&&Ur(0,"ion-icon",62)}function hN(e,t){1&e&&Ur(0,"ion-icon",63)}function pN(e,t){1&e&&Ur(0,"ion-icon",64)}function gN(e,t){if(1&e&&(Wr(0),Ur(1,"ion-icon",66),Da(2),Gr()),2&e){const e=t.$implicit;no(2),Ma(" ",e," ")}}function fN(e,t){if(1&e&&(Hr(0,"p",65),Fr(1,gN,3,1,"ng-container",19),jr()),2&e){const e=na().$implicit;no(1),Vr("ngForOf",e.reason)}}function mN(e,t){if(1&e){const e=qr();Hr(0,"ion-button",67),Xr("click",function(t){Lt(e);const n=na().$implicit,i=Br(7),s=na(2);return t.stopPropagation(),s.toggleSlide(i,n.id)}),Ur(1,"ion-icon",68),jr()}}function bN(e,t){if(1&e){const e=qr();Hr(0,"ion-button",67),Xr("click",function(t){Lt(e);const n=na().$implicit,i=Br(7),s=na(2);return t.stopPropagation(),s.toggleSlide(i,n.id)}),Ur(1,"ion-icon",69),jr()}}function vN(e,t){if(1&e){const e=qr();Hr(0,"ion-item-option",50),Xr("click",function(){Lt(e);const t=na().$implicit;return na(2).openPromptProof(t)}),Ur(1,"ion-icon",70),Da(2),hc(3,"translate"),jr()}2&e&&(no(2),Ma(" ",pc(3,1,"lang.download")," "))}function yN(e,t){if(1&e){const e=qr();Hr(0,"ion-item"),Hr(1,"ion-label"),Hr(2,"ion-toolbar",37),Hr(3,"ion-title",38),Hr(4,"p",39),Fr(5,cN,8,18,"ng-container",19),jr(),jr(),jr(),Hr(6,"ion-item-sliding",40,41),Xr("ionDrag",function(n){Lt(e);const i=t.$implicit;return na(2).onSliding(n,i.id)}),Hr(8,"ion-item",33),Fr(9,dN,1,0,"ion-icon",42),Fr(10,uN,1,0,"ion-icon",43),Fr(11,hN,1,0,"ion-icon",44),Fr(12,pN,1,0,"ion-icon",45),Hr(13,"ion-label",46),Xr("click",function(){Lt(e);const n=t.$implicit;return na(2).goTo(n.id)}),hc(14,"translate"),Hr(15,"p"),Da(16),jr(),Hr(17,"h2"),Da(18),jr(),Fr(19,fN,2,1,"p",47),jr(),Hr(20,"ion-buttons",5),Fr(21,mN,2,0,"ion-button",48),Fr(22,bN,2,0,"ion-button",48),jr(),jr(),Hr(23,"ion-item-options"),Fr(24,vN,4,3,"ion-item-option",49),Hr(25,"ion-item-option",50),Xr("click",function(){Lt(e);const n=t.$implicit;return na(2).openActions(n)}),Ur(26,"ion-icon",51),Da(27),hc(28,"translate"),jr(),jr(),jr(),jr(),jr()}if(2&e){const e=t.$implicit,n=na(2);no(5),Vr("ngForOf",e.workflow),no(4),Vr("ngIf","PROG"==e.state),no(1),Vr("ngIf","STOP"==e.state),no(1),Vr("ngIf","VAL"==e.state),no(1),Vr("ngIf","REF"==e.state),no(1),Vr("title",pc(14,13,"lang.accessDocument")),no(3),Oa(e.reference),no(2),Oa(e.title),no(1),Vr("ngIf",e.reason.length>0),no(2),Vr("ngIf",n.openedLine===e.id),no(1),Vr("ngIf",n.openedLine!==e.id),no(2),Vr("ngIf","PROG"!==e.state),no(3),Ma(" ",pc(28,15,"lang.actions")," ")}}function wN(e,t){if(1&e&&(Hr(0,"ion-list"),Hr(1,"ion-virtual-scroll",35),Fr(2,yN,29,17,"ion-item",36),jr(),jr()),2&e){const e=na();no(1),Vr("items",e.ressources)}}function _N(e,t){if(1&e){const e=qr();Wr(0),Hr(1,"ion-item"),Hr(2,"ion-label",76),Da(3),hc(4,"translate"),jr(),Hr(5,"ion-input",77),Xr("ngModelChange",function(t){return Lt(e),na().$implicit.val=t})("keyup.enter",function(){return Lt(e),na(3).launchSearch()})("ionChange",function(){return Lt(e),na(3).checkInput()}),jr(),jr(),Gr()}if(2&e){const e=na().$implicit;no(3),Ma("",pc(4,3,"lang."+e.id+"Search")," "),no(2),Vr("ngModel",e.val)("value",e.val)}}function xN(e,t){if(1&e){const e=qr();Hr(0,"ion-item"),Hr(1,"ion-label"),Da(2),hc(3,"translate"),jr(),Hr(4,"ion-checkbox",79),Xr("ngModelChange",function(){Lt(e);const n=t.$implicit,i=na(2).$implicit;return na(2).toggleItem(i,n,!n.selected)})("ngModelChange",function(e){return t.$implicit.selected=e}),jr(),jr()}if(2&e){const e=t.$implicit;no(2),Oa(pc(3,4,e.label)),no(2),Vr("ngModel",e.selected)("checked",e.selected)("value",e.id)}}function AN(e,t){if(1&e&&(Wr(0),Hr(1,"ion-list-header"),Hr(2,"ion-label",78),Da(3),hc(4,"translate"),jr(),jr(),Fr(5,xN,5,6,"ion-item",19),Gr()),2&e){const e=na().$implicit;no(3),Oa(pc(4,2,"lang."+e.id+"Search")),no(2),Vr("ngForOf",e.values)}}function CN(e,t){if(1&e&&(Wr(0),Hr(1,"ion-list-header"),Hr(2,"ion-label",78),Da(3),hc(4,"translate"),jr(),jr(),Ur(5,"plugin-autocomplete",80),Gr()),2&e){const e=na().$implicit;no(3),Oa(pc(4,2,"lang."+e.id+"Search")),no(2),Vr("currentItems",e.val)}}function SN(e,t){if(1&e&&(Hr(0,"ion-list"),Fr(1,_N,6,5,"ng-container",10),Fr(2,AN,6,4,"ng-container",10),Fr(3,CN,6,4,"ng-container",10),jr()),2&e){const e=t.$implicit;no(1),Vr("ngIf","text"===e.type),no(1),Vr("ngIf","checkbox"===e.type),no(1),Vr("ngIf","autocompleteUsers"===e.type)}}function kN(e,t){if(1&e){const e=qr();Hr(0,"ion-header",0),Hr(1,"ion-toolbar",1),Hr(2,"ion-buttons",2),Ur(3,"ion-back-button"),jr(),Hr(4,"ion-title",71),Da(5),hc(6,"translate"),jr(),jr(),jr(),Hr(7,"ion-content"),Fr(8,SN,4,3,"ion-list",19),jr(),Hr(9,"ion-footer",72),Hr(10,"div",73),Hr(11,"ion-button",74),Xr("click",function(){return Lt(e),na().onSubmit()}),Hr(12,"ion-label",75),Da(13),hc(14,"translate"),jr(),jr(),jr(),jr()}if(2&e){const e=na();Vr("translucent",!0),no(5),Oa(pc(6,4,"lang.filters")),no(3),Vr("ngForOf",e.filters),no(5),Oa(pc(14,6,"lang.search"))}}let PN=(()=>{class e{constructor(e,t,n,i,s,o,r,a,l,c,d,u,h,p){this.http=e,this.translate=t,this.router=n,this.menu=i,this.signaturesService=s,this.viewContainerRef=o,this.notificationService=r,this.authService=a,this.loadingController=l,this.alertController=c,this.actionSheetController=d,this.datePipe=u,this.functionsService=h,this._activatedRoute=p,this.loading=!1,this.filesToUpload=[],this.errors=[],this.filters=[{id:"title",type:"text",val:"",values:[]},{id:"reference",type:"text",val:"",values:[]},{id:"documentId",type:"text",val:"",values:[]},{id:"workflowStates",type:"checkbox",val:[],values:[{id:"PROG",label:"lang.inprogress",selected:!1},{id:"STOP",label:"lang.interrupt",selected:!1},{id:"VAL",label:"lang.end",selected:!1},{id:"REF",label:"lang.refused",selected:!1}]},{id:"workflowUsers",type:"autocompleteUsers",val:[],values:[]}],this.actions=[{icon:"hand-left-outline",id:"interruptWorkflow"},{icon:"document-outline",id:"newWorkflow"}],this.ressources=[],this.currentFilters=[],this.offset=0,this.limit=10,this.count=0,this.openedLine=""}ngOnInit(){this._activatedRoute.queryParamMap.subscribe(e=>{this.functionsService.empty(e.get("documentId"))||(this.documentId=e.get("documentId"),this.filters.filter(e=>"documentId"===e.id)[0].val=this.documentId,this.search())})}ionViewWillEnter(){this.menu.enable(!0,"left-menu"),this.menu.enable(!0,"right-menu"),this.signaturesService.initTemplate(this.rightContent,this.viewContainerRef,"rightContent"),setTimeout(()=>{this.menu.open("right-menu")},500)}ionViewWillLeave(){this.signaturesService.detachTemplate("rightContent")}toggleSlide(e,t){e.getOpenAmount().then(n=>{0===n?(this.openedLine=t,e.open("end")):(this.openedLine="",e.close("end"))})}onSliding(e,t){this.openedLine=1===e.detail.ratio?t:""}onSubmit(){this.search(),this.menu.close("right-menu")}toggleItem(e,t,n){if(n)e.val.push(t.id);else{const n=e.val.indexOf(t.id);e.val.splice(n,1)}}formatDatas(){const e={};return JSON.parse(JSON.stringify(this.filters.filter(e=>"text"===e.type&&""!==e.val||"text"!==e.type&&e.val.length>0))).forEach(t=>{e[t.id]="workflowUsers"===t.id?t.val.map(e=>e.id):"workflowStates"===t.id?t.values.filter(e=>e.selected).map(e=>e.id):t.val}),e}formatListDatas(e){return e.map(e=>Object.assign(Object.assign({},e),{reason:this.getReason(e),currentUser:this.getCurrentUser(e)}))}getNbFilters(){let e=0;for(let t=0;t<this.currentFilters.length;t++)Array.isArray(this.currentFilters[t].val)||""===this.currentFilters[t].val||e++,Array.isArray(this.currentFilters[t].val)&&this.currentFilters[t].val.length>0&&(e+=this.currentFilters[t].val.length);return e}openActions(e){return WV(this,void 0,void 0,function*(){const t=[];this.actions.forEach(n=>{this.canShowButton(n.id,e)&&t.push({text:this.translate.instant("PROG"===e.state&&"newWorkflow"===n.id?"lang."+n.id+"Prog":"lang."+n.id),icon:n.icon,handler:()=>{this[n.id](e)}})});const n=yield this.actionSheetController.create({header:this.translate.instant("lang.actions")+(null!==e.reference?" - "+e.reference:""),buttons:t});yield n.present()})}canShowButton(e,t){return!("interruptWorkflow"!==e||!t.canInterrupt)||!("newWorkflow"!==e||!t.canReaffect)}search(){this.loadingController.create({message:this.translate.instant("lang.processing"),spinner:"dots"}).then(e=>WV(this,void 0,void 0,function*(){e.present(),yield this.launchSearch(),e.dismiss()}))}launchSearch(){return this.ressources=[],this.offset=0,this.refreshCurrentFilter(),new Promise(e=>{this.http.post("../rest/search/documents?limit=10&offset=0",this.formatDatas()).pipe(Ov(t=>{this.ressources=this.formatListDatas(t.documents),this.count=t.count,this.infiniteScroll.disabled=!1,e(!0)}),fv(t=>(this.notificationService.handleErrors(t),e(!1),lb(!1)))).subscribe()})}refreshCurrentFilter(){this.currentFilters=JSON.parse(JSON.stringify(this.filters.filter(e=>!this.functionsService.empty(e.val)))),this.currentFilters.filter(e=>"workflowStates"===e.id).length>0&&(this.currentFilters.filter(e=>"workflowStates"===e.id)[0].val=this.currentFilters.filter(e=>"workflowStates"===e.id)[0].values.filter(e=>e.selected),0===this.currentFilters.filter(e=>"workflowStates"===e.id)[0].val.length&&(this.currentFilters=this.currentFilters.filter(e=>"workflowStates"!==e.id)))}loadData(e){this.count<=this.limit?(e.target.complete(),e.target.disabled=!0):(this.offset=this.offset+this.limit,this.http.post("../rest/search/documents?limit="+this.limit+"&offset="+this.offset,this.formatDatas()).pipe(Ov(t=>{this.ressources=this.ressources.concat(this.formatListDatas(t.documents)),e.target.complete(),this.count===this.ressources.length&&(e.target.disabled=!0)})).subscribe())}interruptWorkflow(e){return WV(this,void 0,void 0,function*(){return new Promise(t=>WV(this,void 0,void 0,function*(){const n=yield this.alertController.create({header:this.translate.instant("lang.warning"),message:this.translate.instant("lang.warnInterrupt"),buttons:[{text:this.translate.instant("lang.cancel"),role:"cancel",cssClass:"secondary",handler:()=>{}},{text:this.translate.instant("lang.validate"),handler:()=>{this.loadingController.create({message:this.translate.instant("lang.processing"),spinner:"dots"}).then(n=>WV(this,void 0,void 0,function*(){n.present(),yield this.launchInterrupt(e),this.launchSearch(),t(!0),n.dismiss()}))}}]});yield n.present()}))})}launchInterrupt(e){return new Promise(t=>{this.http.put(`../rest/documents/${e.id}/workflows/interrupt`,{}).pipe(Ov(()=>{this.notificationService.success("lang.documentInterrupted"),t(!0)}),fv(e=>(this.notificationService.handleErrors(e),t(!1),lb(!1)))).subscribe()})}newWorkflow(e){return WV(this,void 0,void 0,function*(){"PROG"===e.state&&(yield this.interruptWorkflow(e)),this.router.navigate(["/indexation"],{state:{documentId:e.id}})})}openPromptProof(e){return WV(this,void 0,void 0,function*(){const t=yield this.alertController.create({cssClass:"promptProof",header:this.translate.instant("lang.download"),inputs:[{name:"option1",type:"radio",label:this.translate.instant("lang.proof"),value:"onlyProof",checked:!0},{name:"option1",type:"radio",label:this.translate.instant("lang.completeFolder"),value:"all"}],buttons:[{text:this.translate.instant("lang.cancel"),role:"cancel",cssClass:"secondary",handler:()=>{}},{text:this.translate.instant("lang.validate"),handler:n=>WV(this,void 0,void 0,function*(){yield this.downloadProof(e,n),t.dismiss()})}]});yield t.present()})}downloadProof(e,t){const n="onlyProof"===t?"&onlyProof=true":"";return new Promise(t=>{this.http.get(`../rest/documents/${e.id}/proof?mode=stream${n}`,{responseType:"blob"}).pipe(Ov(n=>{const i=new Date,s="proof_"+e.id+"_"+this.datePipe.transform(i,"dd-MM-y")+"."+n.type.replace("application/",""),o=document.createElement("a");o.href=window.URL.createObjectURL(n),o.setAttribute("download",s),document.body.appendChild(o),o.click(),t(!0)}),fv(e=>(this.notificationService.handleErrors(e),t(!1),lb(!1)))).subscribe()})}getReason(e){return e.workflow.map(e=>e.reason).filter(e=>null!==e)}getCurrentUser(e){const t=e.workflow.filter(e=>!0===e.current);return t.length>0?t[0].userId:null}goTo(e){this.router.navigate(["/documents/"+e])}clearFilters(){for(let e=0;e<this.filters.length;e++)Array.isArray(this.filters[e].val)||""===this.filters[e].val||(this.filters[e].val=""),Array.isArray(this.filters[e].val)&&(this.filters[e].val=[],this.filters[e].values=this.filters[e].values.map(e=>Object.assign(Object.assign({},e),{selected:!1})));this.ressources.length>0&&this.launchSearch()}removeFilter(e,t){if(Array.isArray(e.val))if("workflowStates"===e.id)this.filters.find(t=>t.id===e.id).values.filter(e=>e.id===t)[0].selected=!1;else{const n=e.val.indexOf(t);this.filters.filter(t=>t.id===e.id)[0].val.splice(n,1)}else this.filters.find(t=>t.id===e.id).val="";this.launchSearch()}getLabel(e){return this.filters.filter(e=>"workflowStates"===e.id)[0].values.find(t=>t.id===e).label}checkInput(){""===this.filters.find(e=>"title"===e.id).val&&""===this.filters.find(e=>"reference"===e.id).val&&""===this.filters.find(e=>"documentId"===e.id).val&&0===this.filters.find(e=>"workflowStates"===e.id).val.length&&0===this.filters.find(e=>"workflowUsers"===e.id).val.length&&(this.clearFilters(),this.currentFilters=[])}}return e.\u0275fac=function(t){return new(t||e)(zr(Db),zr(GC),zr(r_),zr(KA),zr(sS),zr(Gl),zr(ZC),zr(rS),zr(XA),zr(QA),zr(ZA),zr(lh),zr(LF),zr(Ny))},e.\u0275cmp=$e({type:e,selectors:[["ng-component"]],viewQuery:function(e,t){if(1&e&&(Tc(GV,1),Tc($V,3),Tc(jx,1)),2&e){let e;Mc(e=Rc())&&(t.appVisaWorkflow=e.first),Mc(e=Rc())&&(t.rightContent=e.first),Mc(e=Rc())&&(t.infiniteScroll=e.first)}},features:[Ja([lh])],decls:22,vars:14,consts:[[3,"translucent"],["color","primary"],["slot","start"],["menu","left-menu"],["slot","end","color","secondary"],["slot","end"],["menu","right-menu"],["name","funnel-outline"],["color","primary","style","padding-left: 1px;padding-right: 1px;",4,"ngIf"],["class","no-result",4,"ngIf"],[4,"ngIf"],["threshold","100px",3,"ionInfinite"],["loadingSpinner","bubbles",3,"loadingText"],["rightContent",""],["color","primary",2,"padding-left","1px","padding-right","1px"],[2,"display","flex"],["shape","round","size","small","fill","clear","slot","start","color","primary",1,"clearFilter",3,"title","click"],["slot","icon-only","name","trash-bin-outline","color","light"],["slot","start",1,"scrollfilters"],[4,"ngFor","ngForOf"],["outline","","color","primary","style","background: white;",3,"title","click",4,"ngIf"],["outline","","color","primary",2,"background","white",3,"title","click"],["name","document-text-outline",4,"ngIf"],["name","compass-outline",4,"ngIf"],["name","bookmark-outline",4,"ngIf"],["name","close-circle"],["name","document-text-outline"],["name","compass-outline"],["name","bookmark-outline"],["outline","","color","primary","style","background: white;",3,"title","click",4,"ngFor","ngForOf"],["name","swap-horizontal-outline"],["name","person-outline"],[1,"no-result"],["lines","none"],["color","medium",1,"no-result-label"],["approxItemHeight","165px",3,"items"],[4,"virtualItem"],["color","light"],["size","small"],[2,"display","flex","align-items","center","white-space","pre","overflow-x","auto","overflow-y","hidden"],[3,"ionDrag"],["slidingItem",""],["color","primary","slot","start","name","hourglass-outline",4,"ngIf"],["color","danger","slot","start","name","hand-left-outline",4,"ngIf"],["color","success","slot","start","name","thumbs-up-outline",4,"ngIf"],["color","danger","slot","start","name","thumbs-down-outline",4,"ngIf"],[2,"cursor","pointer",3,"title","click"],["class","primary",4,"ngIf"],["slot","icon-only","fill","clear","shape","round",3,"click",4,"ngIf"],["color","primary",3,"click",4,"ngIf"],["color","primary",3,"click"],["slot","bottom","name","settings-sharp"],["name","chevron-forward-outline",4,"ngIf"],[1,"workflow-item","success"],["name","thumbs-up-outline",4,"ngIf"],["name","thumbs-down-outline",4,"ngIf"],["color","medium",4,"ngIf"],["name","chevron-forward-outline"],["name","thumbs-up-outline"],["name","thumbs-down-outline"],["color","medium"],["color","primary","slot","start","name","hourglass-outline"],["color","danger","slot","start","name","hand-left-outline"],["color","success","slot","start","name","thumbs-up-outline"],["color","danger","slot","start","name","thumbs-down-outline"],[1,"primary"],["name","chatbox-outline"],["slot","icon-only","fill","clear","shape","round",3,"click"],["color","medium","slot","icon-only","name","arrow-forward-outline"],["color","medium","slot","icon-only","name","arrow-back-outline"],["slot","bottom","name","ribbon-sharp"],[1,"ion-text-center"],[1,"ion-no-border"],[1,"ion-text-center",2,"background","white"],["color","primary","shape","round","size","large","fill","outline",3,"click"],[2,"font-size","13px"],["color","secondary","position","floating"],[3,"ngModel","value","ngModelChange","keyup.enter","ionChange"],["color","secondary"],["slot","end",1,"workflowStates",3,"ngModel","checked","value","ngModelChange"],[3,"currentItems"]],template:function(e,t){1&e&&(Hr(0,"ion-header",0),Hr(1,"ion-toolbar",1),Hr(2,"ion-buttons",2),Ur(3,"ion-menu-button",3),jr(),Hr(4,"ion-title"),Da(5),hc(6,"translate"),jr(),Hr(7,"ion-title",4),Da(8),hc(9,"translate"),jr(),Hr(10,"ion-buttons",5),Hr(11,"ion-menu-button",6),Ur(12,"ion-icon",7),jr(),jr(),jr(),Fr(13,nN,7,4,"ion-toolbar",8),jr(),Hr(14,"ion-content"),Fr(15,iN,5,3,"ion-list",9),Fr(16,wN,3,1,"ion-list",10),Hr(17,"ion-infinite-scroll",11),Xr("ionInfinite",function(e){return t.loadData(e)}),Ur(18,"ion-infinite-scroll-content",12),hc(19,"translate"),jr(),jr(),Fr(20,kN,15,8,"ng-template",null,13,zc)),2&e&&(Vr("translucent",!0),no(5),Oa(pc(6,8,"lang.search")),no(3),Ta("",t.count," ",pc(9,10,"lang.results"),""),no(5),Vr("ngIf",t.currentFilters.length>0),no(2),Vr("ngIf",0===t.ressources.length),no(1),Vr("ngIf",t.ressources.length>0),no(2),Vr("loadingText",pc(19,12,"lang.loadingMoreData")))},directives:[Vx,vA,Cx,Jx,mA,Nx,Wu,Tx,jx,Ux,Ax,ju,Ox,Zx,Qx,Gx,$A,GA,Yx,qx,$x,xx,_x,HA,Bx,Wx,ax,rm,Rm,Xx,Dx,J_,UV],pipes:[$C],styles:[".line-container[_ngcontent-%COMP%]{display:grid;grid-template-columns:2fr 1fr;grid-gap:10px;width:100%}.line-workflow[_ngcontent-%COMP%]{font-size:12px}.primary[_ngcontent-%COMP%]{color:var(--ion-color-primary)}.secondary[_ngcontent-%COMP%]{color:var(--ion-color-secondary)}.success[_ngcontent-%COMP%]{color:var(--ion-color-success)}.workflow-item[_ngcontent-%COMP%]{display:flex;align-items:center}.no-visa[_ngcontent-%COMP%]{opacity:.3}.current[_ngcontent-%COMP%]{font-weight:700;color:var(--ion-color-primary)}.interrupt[_ngcontent-%COMP%], .typist-interrupt[_ngcontent-%COMP%]{color:var(--ion-color-danger)}.interrupt[_ngcontent-%COMP%]{text-decoration:line-through}.no-result[_ngcontent-%COMP%]{height:100%;display:flex;align-items:center;justify-content:center}.no-result[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]{width:100%;text-align:center}.no-result-label[_ngcontent-%COMP%]{font-size:50px}.scrollfilters[_ngcontent-%COMP%]{overflow:auto;white-space:nowrap}.scrollfilters[_ngcontent-%COMP%]   div[_ngcontent-%COMP%], .scrollfilters[_ngcontent-%COMP%]   ion-chip[_ngcontent-%COMP%]{height:auto;display:inline-block}"]}),e})(),EN=(()=>{class e{constructor(e){this.latinisePipe=e}transform(e,t){return null!==e?(e.sort((e,n)=>{const i=this.latinisePipe.transform(e[t]).toLocaleLowerCase(),s=this.latinisePipe.transform(n[t]).toLocaleLowerCase();return i<s?-1:i>s?1:0}),e):[]}}return e.\u0275fac=function(t){return new(t||e)(zr(dP))},e.\u0275pipe=Je({name:"sortBy",type:e,pure:!0}),e})();const DN=["rightContent"];function ON(e,t){if(1&e){const e=qr();Hr(0,"ion-chip",18),Xr("click",function(){Lt(e);const n=t.$implicit;return na(2).removeFilter(n)}),hc(1,"translate"),Ur(2,"ion-icon",19),Hr(3,"ion-label"),Da(4),hc(5,"translate"),jr(),Ur(6,"ion-icon",20),jr()}if(2&e){const e=t.$implicit;Vr("title",pc(1,2,"lang.actions")),no(4),Oa(pc(5,4,"lang."+e))}}function MN(e,t){if(1&e){const e=qr();Hr(0,"ion-chip",18),Xr("click",function(){Lt(e);const t=na(2);return t.removeFilter(t.filters.user)}),hc(1,"translate"),Ur(2,"ion-icon",21),Hr(3,"ion-label"),Da(4),jr(),Ur(5,"ion-icon",20),jr()}if(2&e){const e=na(2);Vr("title",pc(1,2,"lang.userName")),no(4),Oa(e.filters.user)}}function TN(e,t){if(1&e){const e=qr();Hr(0,"ion-chip",18),Xr("click",function(){Lt(e);const t=na(2);return t.removeFilter(t.filters.date.start)}),hc(1,"translate"),Ur(2,"ion-icon",22),Hr(3,"ion-label"),Da(4),hc(5,"date"),jr(),Ur(6,"ion-icon",20),jr()}if(2&e){const e=na(2);Vr("title",pc(1,2,"lang.since")),no(4),Oa(gc(5,4,e.filters.date.start,"dd/MM/yyyy"))}}function IN(e,t){if(1&e){const e=qr();Hr(0,"ion-chip",18),Xr("click",function(){Lt(e);const t=na(2);return t.removeFilter(t.filters.date.end)}),hc(1,"translate"),Ur(2,"ion-icon",23),Hr(3,"ion-label"),Da(4),hc(5,"date"),jr(),Ur(6,"ion-icon",20),jr()}if(2&e){const e=na(2);Vr("title",pc(1,2,"lang.until")),no(4),Oa(gc(5,4,e.filters.date.end,"dd/MM/yyyy"))}}function RN(e,t){if(1&e){const e=qr();Hr(0,"ion-toolbar",12),Hr(1,"ion-button",13),Xr("click",function(){return Lt(e),na().clearFilters()}),hc(2,"translate"),Ur(3,"ion-icon",14),jr(),Hr(4,"div",15),Fr(5,ON,7,6,"ion-chip",16),Fr(6,MN,6,4,"ion-chip",17),Fr(7,TN,7,7,"ion-chip",17),Fr(8,IN,7,7,"ion-chip",17),jr(),jr()}if(2&e){const e=na();no(1),Vr("title",pc(2,5,"lang.clearFilters")),no(4),Vr("ngForOf",e.filters.messageTypes),no(1),Vr("ngIf",""!==e.filters.user),no(1),Vr("ngIf",null!==e.filters.date.start),no(1),Vr("ngIf",null!==e.filters.date.end)}}function LN(e,t){if(1&e&&(Hr(0,"ion-item",28),Ur(1,"ion-icon",29),Hr(2,"ion-label"),Hr(3,"p"),Da(4),hc(5,"titlecase"),hc(6,"translate"),Hr(7,"span",30),Da(8),hc(9,"date"),jr(),Da(10),hc(11,"translate"),Hr(12,"span",30),Da(13),jr(),jr(),Hr(14,"h2"),Da(15),jr(),jr(),Hr(16,"ion-note",5),Hr(17,"p",31),hc(18,"translate"),Da(19),hc(20,"translate"),hc(21,"shorten"),hc(22,"translate"),jr(),Hr(23,"p",32),Da(24),jr(),jr(),jr()),2&e){const e=t.$implicit,n=na(2);no(1),Vr("name",n.aventTypesIcon[e.type]),no(3),Ma("",pc(5,10,pc(6,12,"lang.the"))," "),no(4),Oa(gc(9,14,e.date,"dd/MM/yyyy HH:mm")),no(2),Ma(" ",pc(11,17,"lang.by")," "),no(3),Oa(e.user),no(2),Oa(e.message),no(2),Vr("title",pc(18,19,"lang.resource")+" : "+e.objectId),no(2),Ta("",pc(20,21,"lang."+e.objectType)," : ",null!==e.objectLabel?fc(21,23,e.objectLabel,50,"..."):pc(22,27,"lang.undefined"),""),no(5),Ma("IP : ",e.ip,"")}}function FN(e,t){if(1&e){const e=qr();Hr(0,"ion-list"),Hr(1,"ion-virtual-scroll",24),Fr(2,LN,25,29,"ion-item",25),jr(),Hr(3,"ion-infinite-scroll",26),Xr("ionInfinite",function(t){return Lt(e),na().loadData(t)}),Ur(4,"ion-infinite-scroll-content",27),hc(5,"translate"),jr(),jr()}if(2&e){const e=na();no(1),Vr("items",e.resources),no(3),Vr("loadingText",pc(5,2,"lang.loadingMoreData"))}}function BN(e,t){if(1&e){const e=qr();Hr(0,"ion-buttons",5),Hr(1,"ion-button",42),Xr("click",function(){Lt(e);const t=na(2);return t.filters.date.start=null,t.getDatas()}),Ur(2,"ion-icon",43),jr(),jr()}}function zN(e,t){if(1&e){const e=qr();Hr(0,"ion-buttons",5),Hr(1,"ion-button",42),Xr("click",function(){Lt(e);const t=na(2);return t.filters.date.end=null,t.getDatas()}),Ur(2,"ion-icon",43),jr(),jr()}}function VN(e,t){if(1&e){const e=qr();Hr(0,"ion-item",31),Hr(1,"ion-checkbox",44),Xr("ionChange",function(t){return Lt(e),na(2).toggleAction(t.detail)}),jr(),Hr(2,"ion-label"),Da(3),jr(),jr()}if(2&e){const e=t.$implicit;Vr("title",e.label),no(1),Vr("value",e.id),no(2),Oa(e.label)}}function NN(e,t){if(1&e){const e=qr();Hr(0,"ion-header",0),Hr(1,"ion-toolbar",1),Hr(2,"ion-buttons",2),Ur(3,"ion-back-button"),jr(),Hr(4,"ion-title",33),Da(5),hc(6,"translate"),jr(),jr(),jr(),Hr(7,"ion-content"),Hr(8,"ion-list"),Hr(9,"ion-item",34),Hr(10,"ion-searchbar",35),Xr("ionChange",function(t){return Lt(e),na().applyFilter(t.detail.value)}),hc(11,"translate"),jr(),jr(),Hr(12,"ion-item"),Hr(13,"ion-label",36),Da(14),hc(15,"translate"),jr(),Hr(16,"ion-datetime",37),Xr("ngModelChange",function(t){return Lt(e),na().filters.date.start=t})("ionChange",function(){return Lt(e),na().getDatas()}),hc(17,"translate"),hc(18,"translate"),jr(),Fr(19,BN,3,0,"ion-buttons",38),jr(),Hr(20,"ion-item"),Hr(21,"ion-label",36),Da(22),hc(23,"translate"),jr(),Hr(24,"ion-datetime",39),Xr("ngModelChange",function(t){return Lt(e),na().filters.date.end=t})("ionChange",function(){return Lt(e),na().getDatas()}),hc(25,"translate"),hc(26,"translate"),jr(),Fr(27,zN,3,0,"ion-buttons",38),jr(),Hr(28,"ion-item",40),Hr(29,"ion-label",36),Da(30),hc(31,"translate"),jr(),jr(),Fr(32,VN,4,3,"ion-item",41),jr(),jr()}if(2&e){const e=na();Vr("translucent",!0),no(5),Oa(pc(6,17,"lang.filters")),no(5),Vr("placeholder",pc(11,19,"lang.enterUserName")),no(4),Ma("",pc(15,21,"lang.since"),": "),no(2),Vr("doneText",pc(17,23,"lang.validate"))("cancelText",pc(18,25,"lang.cancel"))("ngModel",e.filters.date.start)("max",null!==e.filters.date.end?e.filters.date.end:void 0),no(3),Vr("ngIf",null!==e.filters.date.start),no(3),Ma("",pc(23,27,"lang.until"),": "),no(2),Vr("doneText",pc(25,29,"lang.validate"))("cancelText",pc(26,31,"lang.cancel"))("ngModel",e.filters.date.end)("min",null!==e.filters.date.start?e.filters.date.start:void 0),no(3),Vr("ngIf",null!==e.filters.date.end),no(3),Ma("",pc(31,33,"lang.actions"),": "),no(2),Vr("ngForOf",e.actions)}}let HN=(()=>{class e{constructor(e,t,n,i,s,o,r,a,l,c,d){this.http=e,this.translate=t,this.menu=n,this.latinisePipe=i,this.viewContainerRef=s,this.dialog=o,this.signaturesService=r,this.notificationService=a,this.authService=l,this.alertController=c,this.sortPipe=d,this.displayedColumns=["creation_date","user","info","ip"],this.loading=!0,this.resources=[],this.offset=0,this.limit=10,this.count=0,this.filters={user:"",messageTypes:[],date:{start:null,end:null}},this.aventTypesIcon={VIEW:"eye-outline",CREATION:"add-circle-outline",ACTION:"settings-outline",THUMBNAIL:"image-outline",EMAIL:"mail-outline",SUPPRESSION:"trash-bin-outline",MODIFICATION:"create-outline",LOGIN:"log-in-outline",LOGOUT:"log-out-outline"},this.actions=[]}applyFilter(e){e=this.latinisePipe.transform(e.toLowerCase()),this.filters.user=e,this.getDatas()}openFilters(){this.menu.open("right-menu")}ionViewWillEnter(){return e=this,void 0,n=function*(){this.filters.messageTypes=[],this.filters.user="",this.filters.date.start=this.filters.date.end=null,this.menu.enable(!0,"left-menu"),this.menu.enable(!0,"right-menu"),this.signaturesService.initTemplate(this.rightContent,this.viewContainerRef,"rightContent"),this.getActions(),this.getDatas()},new((t=void 0)||(t=Promise))(function(i,s){function o(e){try{a(n.next(e))}catch(t){s(t)}}function r(e){try{a(n.throw(e))}catch(t){s(t)}}function a(e){var n;e.done?i(e.value):(n=e.value,n instanceof t?n:new t(function(e){e(n)})).then(o,r)}a((n=n.apply(e,[])).next())});var e,t,n}getActions(){this.http.get("../rest/history/messageTypes",this.filters).pipe(Ov(e=>{this.actions=e.messageTypes.map(e=>({id:e,label:this.translate.instant("lang."+e)})),this.actions=this.sortPipe.transform(this.actions,"label")}),fv(e=>(this.notificationService.handleErrors(e),lb(!1)))).subscribe()}getDatas(){return this.resources=[],this.offset=0,new Promise(e=>{this.http.post("../rest/history?limit=10&offset=0",this.filters).pipe(Ov(t=>{this.resources=t.history,this.count=t.total,e(!0)}),fv(t=>(this.notificationService.handleErrors(t),e(!1),lb(!1)))).subscribe()})}sortData(e){console.log(e)}loadData(e){this.count<=this.limit?(e.target.complete(),e.target.disabled=!0):(this.offset=this.offset+this.limit,this.http.post("../rest/history?limit="+this.limit+"&offset="+this.offset,this.filters).pipe(Ov(t=>{this.resources=this.resources.concat(t.history),e.target.complete(),this.count===this.resources.length&&(e.target.disabled=!0)})).subscribe())}getNbFilters(){let e=0;return""!==this.filters.user&&e++,null!==this.filters.date.start&&e++,null!==this.filters.date.end&&e++,this.filters.messageTypes.length>0&&(e+=this.filters.messageTypes.length),e}toggleAction(e){e.checked?this.filters.messageTypes.push(e.value):this.filters.messageTypes=this.filters.messageTypes.filter(t=>t!==e.value),this.getDatas()}clearFilters(){$(".checkedAction").each(function(){$(this).prop("checked",!1)}),document.querySelector("ion-searchbar").getInputElement().then(e=>{e.value=""}),this.filters.user="",this.filters.date.start=this.filters.date.end=null,this.getDatas()}removeFilter(e){this.filters.messageTypes.includes(e)&&$(".checkedAction").each(function(){if($(this).val()===e)return $(this).prop("checked",!1),!1}),this.filters.user===e&&(document.querySelector("ion-searchbar").getInputElement().then(e=>{e.value=""}),this.filters.user=""),this.filters.date.start===e&&(this.filters.date.start=null),this.filters.date.end===e&&(this.filters.date.end=null),this.getDatas()}}return e.\u0275fac=function(t){return new(t||e)(zr(Db),zr(GC),zr(KA),zr(dP),zr(Gl),zr(IM),zr(sS),zr(ZC),zr(rS),zr(QA),zr(EN))},e.\u0275cmp=$e({type:e,selectors:[["app-administration-history-list"]],viewQuery:function(e,t){if(1&e&&Tc(DN,3),2&e){let e;Mc(e=Rc())&&(t.rightContent=e.first)}},features:[Ja([EN])],decls:20,vars:10,consts:[[3,"translucent"],["color","primary"],["slot","start"],["menu","left-menu"],["slot","end","color","secondary"],["slot","end"],["menu","right-menu"],["name","funnel-outline"],["color","primary","color","primary","style","padding-left: 1px;padding-right: 1px;",4,"ngIf"],["mainContent",""],[4,"ngIf"],["rightContent",""],["color","primary","color","primary",2,"padding-left","1px","padding-right","1px"],["shape","round","size","small","fill","clear","slot","start","color","primary",1,"clearFilter",3,"title","click"],["slot","icon-only","name","trash-bin-outline","color","light"],["slot","start",1,"scrollfilters"],["outline","","color","primary",3,"title","click",4,"ngFor","ngForOf"],["outline","","color","primary",3,"title","click",4,"ngIf"],["outline","","color","primary",3,"title","click"],["name","swap-horizontal-outline"],["name","close-circle"],["name","person-outline"],["name","today-outline"],["name","calendar-outline"],["approxItemHeight","90px",3,"items"],["lines","full","class","canSelect",4,"virtualItem"],["threshold","100px",3,"ionInfinite"],["loadingSpinner","bubbles",3,"loadingText"],["lines","full",1,"canSelect"],["color","primary","slot","start",3,"name"],[1,"primary"],[3,"title"],[2,"float","right","margin-top","0px"],[1,"ion-text-center"],["lines","none"],[3,"placeholder","ionChange"],["color","secondary"],["displayFormat","DD/MM/YYYY",3,"doneText","cancelText","ngModel","max","ngModelChange","ionChange"],["slot","end",4,"ngIf"],["displayFormat","DD/MM/YYYY",3,"doneText","cancelText","ngModel","min","ngModelChange","ionChange"],["lines","none",2,"position","sticky","top","0","z-index","2"],[3,"title",4,"ngFor","ngForOf"],["color","danger","shape","round","fill","clear",3,"click"],["slot","icon-only","name","close-outline"],["slot","start",1,"checkedAction",3,"value","ionChange"]],template:function(e,t){1&e&&(Hr(0,"ion-header",0),Hr(1,"ion-toolbar",1),Hr(2,"ion-buttons",2),Ur(3,"ion-menu-button",3),Ur(4,"ion-back-button"),jr(),Hr(5,"ion-title"),Da(6),hc(7,"translate"),jr(),Hr(8,"ion-title",4),Da(9),hc(10,"translate"),jr(),Hr(11,"ion-buttons",5),Hr(12,"ion-menu-button",6),Ur(13,"ion-icon",7),jr(),jr(),jr(),Fr(14,RN,9,7,"ion-toolbar",8),jr(),Hr(15,"ion-content",null,9),Fr(17,FN,6,4,"ion-list",10),jr(),Fr(18,NN,33,35,"ng-template",null,11,zc)),2&e&&(Vr("translucent",!0),no(6),Oa(pc(7,6,"lang.history")),no(3),Ta("",t.count," ",pc(10,8,"lang.entries"),""),no(5),Vr("ngIf",t.getNbFilters()>0),no(3),Vr("ngIf",t.resources.length>0))},directives:[Vx,vA,Cx,Jx,_x,HA,mA,Nx,Wu,Tx,Ax,ju,Ox,Zx,Qx,$A,GA,jx,Ux,Gx,tA,lA,ax,Ix,ox,rm,Rm,Dx,J_],pipes:[$C,lh,rh,lP],styles:[".flex1[_ngcontent-%COMP%]{flex:1}.flex2[_ngcontent-%COMP%]{flex:2}.primary[_ngcontent-%COMP%]{color:var(--ion-color-primary)}  .test .alert-wrapper{min-width:350px}.canSelect[_ngcontent-%COMP%]   *[_ngcontent-%COMP%]{user-select:text!important;-webkit-user-select:text!important;-khtml-user-select:text!important;-moz-user-select:text!important;-ms-user-select:text!important}.scrollfilters[_ngcontent-%COMP%]{overflow:auto;white-space:nowrap;height:50%}.scrollfilters[_ngcontent-%COMP%]   ion-chip[_ngcontent-%COMP%]{height:auto;margin:4px;display:inline-block}ion-button.clearFilter[_ngcontent-%COMP%]{position:-webkit-sticky;position:sticky;left:0;z-index:1}ion-chip[_ngcontent-%COMP%]{background-color:#fff}"]}),e})();const jN=["customizationForm"];function UN(e,t){if(1&e){const e=qr();Hr(0,"ion-button",14),Xr("click",function(){return Lt(e),na(2).watermark.enabled=!1}),Da(1),hc(2,"translate"),jr()}2&e&&(no(1),Ma(" ",pc(2,1,"lang.disableWatermark"),""))}function WN(e,t){if(1&e){const e=qr();Hr(0,"ion-item"),Hr(1,"ion-button",15),Xr("click",function(){return Lt(e),na(2).watermark.enabled=!0}),Da(2),hc(3,"translate"),jr(),jr()}2&e&&(no(2),Ma("",pc(3,1,"lang.enableWatermark")," "))}function GN(e,t){if(1&e){const e=qr();Wr(0),Hr(1,"ion-card"),Hr(2,"ion-item",1),Ur(3,"ion-icon",16),Ur(4,"ion-label",17),hc(5,"translate"),jr(),jr(),Hr(6,"ion-item"),Hr(7,"ion-label",18),Da(8),hc(9,"translate"),jr(),Hr(10,"ion-input",19),Xr("ngModelChange",function(t){return Lt(e),na(2).watermark.text=t}),jr(),Ur(11,"ion-note",20),hc(12,"translate"),jr(),Hr(13,"ion-radio-group",21),Xr("ionChange",function(t){return Lt(e),na(2).watermark.align=t.detail.value}),Hr(14,"ion-list-header"),Hr(15,"ion-label",7),Da(16),hc(17,"translate"),jr(),jr(),Hr(18,"ion-item"),Hr(19,"ion-label"),Da(20),hc(21,"translate"),jr(),Ur(22,"ion-radio",22),jr(),Hr(23,"ion-item"),Hr(24,"ion-label"),Da(25),hc(26,"translate"),jr(),Ur(27,"ion-radio",23),jr(),Hr(28,"ion-item"),Hr(29,"ion-label"),Da(30),hc(31,"translate"),jr(),Ur(32,"ion-radio",24),jr(),jr(),Hr(33,"ion-item"),Hr(34,"ion-label",18),Da(35),hc(36,"translate"),jr(),Hr(37,"ion-input",25),Xr("ngModelChange",function(t){return Lt(e),na(2).watermark.posY=t})("keypress",function(t){return Lt(e),na(2).isNumber(t)}),jr(),Hr(38,"ion-note",26),Da(39,"px"),jr(),jr(),Gr()}if(2&e){const e=na(2);no(4),Vr("innerHTML",pc(5,12,"lang.watermarkDesc"),ss),no(4),Oa(pc(9,14,"lang.content")),no(2),Vr("ngModel",e.watermark.text),no(1),Vr("innerHTML",pc(12,16,"lang.watermarkContentDesc"),ss),no(2),Vr("value",e.watermark.align),no(3),Oa(pc(17,18,"lang.alignment")),no(4),Oa(pc(21,20,"lang.left")),no(5),Oa(pc(26,22,"lang.center")),no(5),Oa(pc(31,24,"lang.right")),no(5),Ma("",pc(36,26,"lang.positionY")," "),no(2),Vr("ngModel",e.watermark.posY)("min",0)}}function $N(e,t){if(1&e){const e=qr();Hr(0,"form",5,6),Xr("ngSubmit",function(){return Lt(e),na().onSubmit()}),Hr(2,"ion-content"),Hr(3,"ion-list"),Hr(4,"ion-list-header"),Hr(5,"ion-label",7),Da(6),hc(7,"translate"),jr(),Fr(8,UN,3,3,"ion-button",8),jr(),Fr(9,WN,4,3,"ion-item",9),Fr(10,GN,40,28,"ng-container",9),jr(),Hr(11,"ion-item",10),Hr(12,"div",11),Hr(13,"ion-button",12),Hr(14,"ion-label",13),Da(15),hc(16,"translate"),jr(),jr(),jr(),jr(),jr(),jr()}if(2&e){const e=na();no(6),Ma(" ",pc(7,5,"lang.watermark")," "),no(2),Vr("ngIf",e.watermark.enabled),no(1),Vr("ngIf",!e.watermark.enabled),no(1),Vr("ngIf",e.watermark.enabled),no(5),Oa(pc(16,7,"lang.validate"))}}let qN=(()=>{class e{constructor(e,t,n,i,s){this.http=e,this.translate=t,this.notificationService=n,this.authService=i,this.functions=s,this.loading=!0,this.loginMessage="",this.applicationUrl="",this.watermark={enabled:!1,text:"Document n\xb0[id]",align:"R",posY:10}}ngOnInit(){return e=this,void 0,n=function*(){yield this.getWatermark(),this.loading=!1},new((t=void 0)||(t=Promise))(function(i,s){function o(e){try{a(n.next(e))}catch(t){s(t)}}function r(e){try{a(n.throw(e))}catch(t){s(t)}}function a(e){var n;e.done?i(e.value):(n=e.value,n instanceof t?n:new t(function(e){e(n)})).then(o,r)}a((n=n.apply(e,[])).next())});var e,t,n}getWatermark(){return new Promise(e=>{this.http.get("../rest/customization/watermark").pipe(Ov(t=>{this.functions.empty(t.configuration)||(this.watermark=t.configuration),e(!0)}),fv(e=>(this.notificationService.handleErrors(e),lb(!1)))).subscribe()})}onSubmit(){this.http.put("../rest/customization",{id:this.authService.user.id,watermark:this.watermark}).pipe(Ov(()=>{this.notificationService.success(this.translate.instant("lang.modificationSaved"))}),fv(e=>(this.notificationService.handleErrors(e),lb(!1)))).subscribe()}isNumber(e){const t=(e=e||window.event).which?e.which:e.keyCode;return!(t>31&&(t<48||t>57))}}return e.\u0275fac=function(t){return new(t||e)(zr(Db),zr(GC),zr(ZC),zr(rS),zr(LF))},e.\u0275cmp=$e({type:e,selectors:[["ng-component"]],viewQuery:function(e,t){if(1&e&&Tc(jN,1),2&e){let e;Mc(e=Rc())&&(t.customizationForm=e.first)}},decls:9,vars:5,consts:[[3,"translucent"],["color","primary"],["slot","start"],["menu","left-menu"],["style","display: contents;","id","customizationForm",3,"ngSubmit",4,"ngIf"],["id","customizationForm",2,"display","contents",3,"ngSubmit"],["customizationForm","ngForm"],["color","secondary"],["size","small","color","danger",3,"click",4,"ngIf"],[4,"ngIf"],["text-center","","lines","none",2,"position","sticky","bottom","0px","z-index","1"],[2,"display","flex","align-items","center","justify-content","center","width","100%","background","white"],["type","submit","shape","round","size","large","fill","outline","color","primary"],[2,"font-size","13px"],["size","small","color","danger",3,"click"],["size","small","color","primary",3,"click"],["name","information-circle","slot","start"],[2,"white-space","initial",3,"innerHTML"],["color","secondary","position","floating"],["name","watermarkContent",3,"ngModel","ngModelChange"],[3,"innerHTML"],[3,"value","ionChange"],["slot","start","value","L"],["slot","start","value","C"],["slot","start","value","R"],["type","number","name","watermarkPosY",3,"ngModel","min","ngModelChange","keypress"],["slot","end"]],template:function(e,t){1&e&&(Hr(0,"ion-header",0),Hr(1,"ion-toolbar",1),Hr(2,"ion-buttons",2),Ur(3,"ion-menu-button",3),Ur(4,"ion-back-button"),jr(),Hr(5,"ion-title"),Da(6),hc(7,"translate"),jr(),jr(),jr(),Fr(8,$N,17,9,"form",4)),2&e&&(Vr("translucent",!0),no(6),Oa(pc(7,3,"lang.customization")),no(2),Vr("ngIf",!t.loading))},directives:[Vx,vA,Cx,Jx,_x,HA,mA,Wu,Lm,am,Mm,Tx,Qx,Xx,Zx,Gx,Ax,Sx,Nx,Wx,ax,rm,Rm,tA,iA,ox,nA,ix,tx],pipes:[$C],styles:[".header[_ngcontent-%COMP%]{background:#135f7f;height:95px;color:#fff;padding-left:10px;font-size:25px}.header[_ngcontent-%COMP%], .header-title[_ngcontent-%COMP%]{display:flex;align-items:center}.header-title[_ngcontent-%COMP%]{flex:1;white-space:pre;overflow:hidden;text-overflow:ellipsis}.header[_ngcontent-%COMP%]   b[_ngcontent-%COMP%]{color:#f99830}.header[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis}.mainView[_ngcontent-%COMP%]{display:flex;flex-direction:column}.container[_ngcontent-%COMP%]{flex:1;overflow:auto}.loader[_ngcontent-%COMP%]{position:absolute;z-index:2;display:flex;background:hsla(0,0%,100%,.8);width:100%;height:100%;justify-content:center;align-items:center;top:0;margin:0;padding:0}.admin-form[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:20px}.actions-form[_ngcontent-%COMP%]{display:flex;justify-content:center}@media (max-width:360px){.actions-form[_ngcontent-%COMP%]{flex-direction:column}}.actions-form[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin:10px;width:150px}@media (max-width:360px){.actions-form[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{width:100%}}.noResult[_ngcontent-%COMP%]{padding:10px;text-align:center;opacity:.5}.emptyTable[_ngcontent-%COMP%]{height:auto}.addButton[_ngcontent-%COMP%]{padding:10px;display:flex;justify-content:flex-end}",""]}),e})(),YN=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=fe({imports:[[w_.forRoot([{path:"home",canActivate:[LR],component:dV},{path:"indexation",canActivate:[LR],component:LV},{path:"profile",canActivate:[LR],component:lV},{path:"search",canActivate:[LR],component:PN},{path:"administration",canActivate:[LR],component:zR},{path:"administration/users",canActivate:[LR],component:WR},{path:"administration/users/new",canActivate:[LR],component:oL},{path:"administration/users/:id",canActivate:[LR],component:oL},{path:"administration/groups",canActivate:[LR],component:uL},{path:"administration/groups/new",canActivate:[LR],component:SL},{path:"administration/groups/:id",canActivate:[LR],component:SL},{path:"administration/connections",canActivate:[LR],component:DL},{path:"administration/connections/ldaps",canActivate:[LR],component:LL},{path:"administration/connections/ldaps/new",canActivate:[LR],component:GL},{path:"administration/connections/ldaps/:id",canActivate:[LR],component:GL},{path:"administration/emailConfiguration",canActivate:[LR],component:KL},{path:"administration/passwordRules",canActivate:[LR],component:Mz},{path:"administration/history",canActivate:[LR],component:HN},{path:"administration/customization",canActivate:[LR],component:qN},{path:"documents/:id",canActivate:[LR],component:vz},{path:"login",canActivate:[LR],component:Sz},{path:"forgot-password",component:kz},{path:"update-password",component:Oz},{path:"password-modification",component:Fz},{path:"**",redirectTo:"login",pathMatch:"full"}],{relativeLinkResolution:"legacy"})],w_]}),e})();function ZN(e,t){if(1&e){const e=qr();Hr(0,"ion-item",3),Xr("click",function(){return Lt(e),na().menu.close("left-menu")}),Ur(1,"ion-icon",4),Hr(2,"ion-label"),Da(3),hc(4,"translate"),jr(),jr()}if(2&e){const e=t.$implicit;ma("item-active",na().isActiveRoute(e.route)),Vr("routerLink",e.route),no(1),Vr("name",e.icon),no(2),Oa(pc(4,5,"lang."+e.id))}}let QN=(()=>{class e{constructor(e,t,n,i){this.route=e,this.router=t,this.authService=n,this.menu=i,this.loading=!0,this.privileges=[]}ngOnInit(){}openHome(){this.router.navigate(["/documents/"])}isActiveRoute(e){return this.router.url.split("/").indexOf(e.replace("/administration/",""))>-1}}return e.\u0275fac=function(t){return new(t||e)(zr(Ny),zr(r_),zr(rS),zr(KA))},e.\u0275cmp=$e({type:e,selectors:[["app-admin-sidebar"]],decls:8,vars:4,consts:[["color","light"],[2,"text-align","center","font-size","14px"],["routerDirection","root",3,"routerLink","item-active","click",4,"ngFor","ngForOf"],["routerDirection","root",3,"routerLink","click"],["slot","start","color","primary",3,"name"]],template:function(e,t){1&e&&(Hr(0,"ion-header"),Hr(1,"ion-toolbar",0),Hr(2,"ion-title",1),Da(3),hc(4,"translate"),jr(),jr(),jr(),Hr(5,"ion-content"),Hr(6,"ion-list"),Fr(7,ZN,5,7,"ion-item",2),jr(),jr()),2&e&&(no(3),Ma(" ",pc(4,2,"lang.administration")," "),no(4),Vr("ngForOf",t.authService.user.administrativePrivileges))},directives:[Vx,vA,mA,Tx,Qx,ju,Gx,jA,a_,Nx,Zx],pipes:[$C],styles:[".item-active[_ngcontent-%COMP%]{border-left:5px solid var(--ion-color-primary);--background:rgba(var(--ion-color-primary-rgb),0.14);color:var(--ion-color-primary);font-weight:700}"]}),e})();const XN=["listContent"],KN=["searchInput"];function JN(e,t){if(1&e){const e=qr();Hr(0,"ion-button",8),Xr("click",function(){return Lt(e),na().authService.logout()}),hc(1,"translate"),Ur(2,"ion-icon",15),jr()}2&e&&Vr("title",pc(1,1,"lang.logout"))}function eH(e,t){if(1&e){const e=qr();Hr(0,"ion-button",8),Xr("click",function(){return Lt(e),na().openAdmin()}),hc(1,"translate"),Ur(2,"ion-icon",16),jr()}2&e&&Vr("title",pc(1,1,"lang.administration"))}function tH(e,t){if(1&e){const e=qr();Hr(0,"ion-button",8),Xr("click",function(){return Lt(e),na().openHome()}),hc(1,"translate"),Ur(2,"ion-icon",17),jr()}2&e&&Vr("title",pc(1,1,"lang.homePage"))}function nH(e,t){if(1&e){const e=qr();Hr(0,"ion-button",8),Xr("click",function(){return Lt(e),na().openIndexation()}),hc(1,"translate"),Ur(2,"ion-icon",18),Ur(3,"ion-icon",19),jr()}2&e&&Vr("title",pc(1,1,"lang.indexationAdmin"))}function iH(e,t){if(1&e&&(Hr(0,"span",26),Da(1),hc(2,"translate"),jr()),2&e){const e=na(3);no(1),Oa(pc(2,1,"lang."+e.signaturesService.mode+"Label"))}}function sH(e,t){if(1&e){const e=qr();Hr(0,"ion-title",23),Xr("click",function(t){return Lt(e),na(2).search(t)}),hc(1,"translate"),Hr(2,"span"),Da(3),jr(),Da(4),hc(5,"translate"),Fr(6,iH,3,3,"span",24),Da(7," \xa0 "),Ur(8,"ion-icon",25),jr()}if(2&e){const e=na(2);Vr("title",pc(1,6,"lang.filterInfo")),no(2),ma("primary",""!=e.signaturesService.mode),no(1),Oa(e.signaturesService.documentsListCount.current),no(1),Ma(" ",pc(5,8,"lang.documents")," "),no(2),Vr("ngIf",""!=e.signaturesService.mode)}}function oH(e,t){if(1&e){const e=qr();Hr(0,"ion-searchbar",27,28),Xr("ionCancel",function(t){Lt(e);const n=na(2);return n.search(t),n.searchMode=!n.searchMode}),hc(2,"translate"),jr()}if(2&e){const e=na(2);Vr("placeholder",pc(2,2,"lang.filterInfo"))("formControl",e.searchTerm)}}function rH(e,t){if(1&e&&(Hr(0,"ion-header"),Hr(1,"ion-toolbar",20),Fr(2,sH,9,10,"ion-title",21),Fr(3,oH,3,4,"ion-searchbar",22),jr(),jr()),2&e){const e=na();no(2),Vr("ngIf",!e.searchMode),no(1),Vr("ngIf",e.searchMode)}}function aH(e,t){if(1&e){const e=qr();Hr(0,"ion-header",29),Hr(1,"ion-toolbar",30),Hr(2,"ion-segment",31),Hr(3,"ion-segment-button",32),Xr("click",function(){return Lt(e),na().filter("sign")}),Hr(4,"ion-label"),Da(5),hc(6,"titlecase"),hc(7,"translate"),jr(),Ur(8,"ion-icon",33),Hr(9,"ion-badge",34),Da(10),jr(),jr(),Hr(11,"ion-segment-button",35),Xr("click",function(){return Lt(e),na().filter("visa")}),Hr(12,"ion-label"),Da(13),hc(14,"titlecase"),hc(15,"translate"),jr(),Ur(16,"ion-icon",36),Hr(17,"ion-badge",34),Da(18),jr(),jr(),Hr(19,"ion-segment-button",37),Xr("click",function(){return Lt(e),na().filter("note")}),Hr(20,"ion-label"),Da(21),hc(22,"titlecase"),hc(23,"translate"),jr(),Ur(24,"ion-icon",38),Hr(25,"ion-badge",34),Da(26),jr(),jr(),jr(),jr(),jr()}if(2&e){const e=na();no(2),Vr("value",e.signaturesService.mode),no(1),ma("segment-button-notFocused","sign"!==e.signaturesService.mode),no(2),Oa(pc(6,13,pc(7,15,"lang.signLabel"))),no(5),Oa(e.signaturesService.documentsListCount.sign),no(1),ma("segment-button-notFocused","visa"!==e.signaturesService.mode),no(2),Oa(pc(14,17,pc(15,19,"lang.visaLabel"))),no(5),Oa(e.signaturesService.documentsListCount.visa),no(1),ma("segment-button-notFocused","note"!==e.signaturesService.mode),no(2),Oa(pc(22,21,pc(23,23,"lang.noteLabel"))),no(5),Oa(e.signaturesService.documentsListCount.note)}}function lH(e,t){1&e&&Ur(0,"app-admin-sidebar",39)}function cH(e,t){1&e&&(Hr(0,"ion-item",44),Hr(1,"ion-label",45),Da(2),hc(3,"titlecase"),hc(4,"translate"),jr(),jr()),2&e&&(no(2),Ma(" ",pc(3,1,pc(4,3,"lang.noResult"))," "))}function dH(e,t){1&e&&Ur(0,"ion-icon",56)}function uH(e,t){1&e&&Ur(0,"ion-icon",57)}function hH(e,t){1&e&&Ur(0,"ion-icon",58)}function pH(e,t){1&e&&Ur(0,"ion-icon",59)}function gH(e,t){1&e&&(Hr(0,"ion-label",60),Da(1),hc(2,"translate"),jr()),2&e&&(no(1),Ma(" ",pc(2,1,"lang.substitutedDoc"),""))}const fH=function(e){return[e]};function mH(e,t){if(1&e){const e=qr();Hr(0,"ion-menu-toggle",46),Hr(1,"ion-item",47),Xr("click",function(){Lt(e);const n=t.index;return na(2).filterService.currentIndex=n}),Fr(2,dH,1,0,"ion-icon",48),Fr(3,uH,1,0,"ion-icon",49),Fr(4,hH,1,0,"ion-icon",50),Fr(5,pH,1,0,"ion-icon",51),Hr(6,"div"),Hr(7,"ion-label",52),Da(8),jr(),Hr(9,"ion-label",53),Da(10),hc(11,"shorten"),jr(),Fr(12,gH,3,3,"ion-label",54),jr(),Ur(13,"ion-icon",55),jr(),jr()}if(2&e){const e=t.$implicit,n=na(2);no(1),ma("selected",n.router.url==="/documents/"+e.id),Vr("routerLink",ac(14,fH,"/documents/"+e.id)),no(1),Vr("ngIf","sign"==e.mode),no(1),Vr("ngIf","visa"==e.mode),no(1),Vr("ngIf","note"==e.mode),no(1),Vr("ngIf",!n.functionsService.empty(e.mailingId)),no(3),Oa(e.reference),no(2),Oa(fc(11,10,e.title,50,"...")),no(2),Vr("ngIf",!e.owner)}}function bH(e,t){if(1&e){const e=qr();Hr(0,"ion-infinite-scroll",61),Xr("ionInfinite",function(t){return Lt(e),na(2).loadData(t)}),Ur(1,"ion-infinite-scroll-content",62),hc(2,"translate"),jr()}2&e&&(no(1),Vr("loadingText",pc(2,1,"lang.loadingMoreData")))}function vH(e,t){if(1&e&&(Hr(0,"ion-content"),Hr(1,"ion-list",40),Fr(2,cH,5,5,"ion-item",41),Fr(3,mH,14,16,"ion-menu-toggle",42),jr(),Fr(4,bH,3,3,"ion-infinite-scroll",43),jr()),2&e){const e=na();no(2),Vr("ngIf",0==e.signaturesService.documentsList.length),no(1),Vr("ngForOf",e.signaturesService.documentsList),no(1),Vr("ngIf",e.signaturesService.documentsList.length>0)}}let yH=(()=>{class e{constructor(e,t,n,i,s,o,r,a,l,c){this.http=e,this.signaturesService=t,this.route=n,this.router=i,this.menu=s,this.notificationService=o,this.authService=r,this.modalController=a,this.functionsService=l,this.filterService=c,this.loadingList=!1,this.searchMode=!1,this.searchTerm=new km,this.searchTerm.valueChanges.pipe(vP(500),H_(),Ov(e=>this.loadingList=!0),sv(e=>this.http.get("../rest/documents?limit="+this.filterService.limit+"&search="+e))).subscribe(e=>{this.signaturesService.documentsList=e.documents,this.signaturesService.documentsListCount=e.count,this.loadingList=!1})}ngOnInit(){$(".avatar").css({background:"url(data:image/png;base64,"+this.authService.user.picture+") no-repeat #135F7F"}).css({"background-size":"cover"}).css({"background-position":"center"}),this.http.get("../rest/documents?limit="+this.filterService.limit+"&offset="+this.filterService.offset+"&mode="+this.signaturesService.mode).subscribe(e=>{this.signaturesService.documentsList=e.documents,this.signaturesService.documentsListCount=e.count})}ngAfterViewInit(){this.filter("")}openProfile(){return e=this,void 0,n=function*(){const e=yield this.modalController.create({component:lV,cssClass:"my-custom-class"});yield e.present()},new((t=void 0)||(t=Promise))(function(i,s){function o(e){try{a(n.next(e))}catch(t){s(t)}}function r(e){try{a(n.throw(e))}catch(t){s(t)}}function a(e){var n;e.done?i(e.value):(n=e.value,n instanceof t?n:new t(function(e){e(n)})).then(o,r)}a((n=n.apply(e,[])).next())});var e,t,n}openAdmin(){this.menu.close("left-menu"),this.router.navigate(["/administration/"])}openHome(){this.router.navigate(["/home"])}openIndexation(){this.menu.close("left-menu"),this.router.navigate(["/indexation"])}openSearch(){this.menu.close("left-menu"),this.router.navigate(["/search"])}search(e){this.searchMode=!0,this.signaturesService.mode="",this.filter(""),setTimeout(()=>{"ionCancel"!==e.type&&(this.searchInput.value="",this.searchInput.setFocus())},0)}filter(e){this.signaturesService.documentsList=[],""!==e&&(this.searchMode=!1),this.loadingList=!0,this.signaturesService.mode=this.signaturesService.mode===e?"":e,this.filterService.offset=0,this.http.get("../rest/documents?limit="+this.filterService.limit+"&offset="+this.filterService.offset+"&mode="+this.signaturesService.mode).pipe(Iv(()=>{this.loadingList=!1})).subscribe(e=>{this.signaturesService.documentsList=e.documents,this.signaturesService.documentsListCount=e.count,this.loadingList=!1})}checkClose(){return!(!(-1!==this.route.routeConfig.path.indexOf("administration")||this.signaturesService.mainDocumentId>0)||!this.signaturesService.mobileMode)}loadData(e){this.filterService.offset=this.filterService.offset+this.filterService.limit,this.http.get("../rest/documents?limit="+this.filterService.limit+"&offset="+this.filterService.offset+"&mode="+this.signaturesService.mode).pipe(Ov(t=>{this.signaturesService.documentsList=this.signaturesService.documentsList.concat(t.documents),e.target.complete(),this.signaturesService.documentsList.length===this.signaturesService.documentsListCount.current&&(e.target.disabled=!0)})).subscribe()}isAdminRoute(){return this.router.url.split("/").indexOf("administration")>-1}canIndex(){return this.authService.user.appPrivileges.map(e=>e.id).indexOf("indexation")>-1}}return e.\u0275fac=function(t){return new(t||e)(zr(Db),zr(sS),zr(Ny),zr(r_),zr(KA),zr(ZC),zr(rS),zr(JA),zr(LF),zr(kF))},e.\u0275cmp=$e({type:e,selectors:[["app-sidebar"]],viewQuery:function(e,t){if(1&e&&(Tc(XN,1),Tc(KN,1)),2&e){let e;Mc(e=Rc())&&(t.listContent=e.first),Mc(e=Rc())&&(t.searchInput=e.first)}},decls:23,vars:16,consts:[[3,"translucent"],["color","primary"],["color","primary","lines","none"],["color","secondary",1,"ion-text-center"],[2,"font-weight","bold","font-size","24px"],["slot","start"],[3,"title","click",4,"ngIf"],["slot","end"],[3,"title","click"],["slot","icon-only","name","search-outline"],[1,"avatar-user",3,"click"],[3,"src"],[4,"ngIf"],["style","background: white;",4,"ngIf"],["style","display: contents;",4,"ngIf"],["slot","icon-only","name","power"],["slot","icon-only","name","settings-outline"],["slot","icon-only","name","home"],["slot","icon-only","name","document-outline"],["slot","icon-only","name","add-circle",2,"position","absolute","top","0px","font-size","15px","right","-5px"],["color","light"],["style","text-align: center;font-size: 14px;",3,"title","click",4,"ngIf"],["showCancelButton","always",3,"placeholder","formControl","ionCancel",4,"ngIf"],[2,"text-align","center","font-size","14px",3,"title","click"],["class","primary",4,"ngIf"],["color","primary","name","search-outline"],[1,"primary"],["showCancelButton","always",3,"placeholder","formControl","ionCancel"],["searchInput",""],[2,"background","white"],[1,"filters"],["value","heart",3,"value"],["value","sign",3,"click"],["color","primary","name","pencil-outline"],["color","secondary"],["value","visa",3,"click"],["color","primary","name","checkmark-done-outline"],["value","note",3,"click"],["color","primary","name","chatbubble-ellipses-outline"],[2,"display","contents"],["id","labels-list"],["lines","none",4,"ngIf"],["auto-hide","false",4,"ngFor","ngForOf"],["threshold","100px",3,"ionInfinite",4,"ngIf"],["lines","none"],["color","medium",1,"ion-text-center"],["auto-hide","false"],["routerDirection","root","detail","false",1,"doc-item",3,"routerLink","click"],["color","primary","slot","start","name","pencil-outline",4,"ngIf"],["color","primary","slot","start","name","checkmark-done-outline",4,"ngIf"],["color","primary","slot","start","name","chatbubble-ellipses-outline",4,"ngIf"],["slot","start","color","danger","name","layers","class","groupMailIcon",4,"ngIf"],[1,"sub-label"],["color","primary",1,"ion-text-wrap"],["color","secondary","class","sub-label",4,"ngIf"],["slot","end","color","medium","name","arrow-forward-outline"],["color","primary","slot","start","name","pencil-outline"],["color","primary","slot","start","name","checkmark-done-outline"],["color","primary","slot","start","name","chatbubble-ellipses-outline"],["slot","start","color","danger","name","layers",1,"groupMailIcon"],["color","secondary",1,"sub-label"],["threshold","100px",3,"ionInfinite"],["loadingSpinner","bubbles",3,"loadingText"]],template:function(e,t){1&e&&(Hr(0,"ion-header",0),Hr(1,"ion-toolbar",1),Hr(2,"ion-item",2),Hr(3,"ion-label",3),Hr(4,"h2",4),Da(5),jr(),jr(),jr(),jr(),jr(),Hr(6,"ion-header",0),Hr(7,"ion-toolbar",1),Hr(8,"ion-buttons",5),Fr(9,JN,3,3,"ion-button",6),Fr(10,eH,3,3,"ion-button",6),Fr(11,tH,3,3,"ion-button",6),jr(),Hr(12,"ion-buttons",7),Hr(13,"ion-button",8),Xr("click",function(){return t.openSearch()}),hc(14,"translate"),Ur(15,"ion-icon",9),jr(),Fr(16,nH,4,3,"ion-button",6),jr(),jr(),jr(),Hr(17,"ion-avatar",10),Xr("click",function(){return t.openProfile()}),Ur(18,"img",11),jr(),Fr(19,rH,4,2,"ion-header",12),Fr(20,aH,27,25,"ion-header",13),Fr(21,lH,1,0,"app-admin-sidebar",14),Fr(22,vH,5,3,"ion-content",12)),2&e&&(Vr("translucent",!0),no(5),Ta("",t.authService.user.firstname," ",t.authService.user.lastname,""),no(1),Vr("translucent",!0),no(3),Vr("ngIf","x509"!==t.authService.authMode&&"kerberos"!==t.authService.authMode&&"azure_saml"!==t.authService.authMode),no(1),Vr("ngIf",!t.isAdminRoute()&&t.authService.user.administrativePrivileges.length>0),no(1),Vr("ngIf",t.isAdminRoute()),no(2),Vr("title",pc(14,14,"lang.search")),no(3),Vr("ngIf",t.canIndex()),no(2),Vr("src",t.authService.user.picture,os),no(1),Vr("ngIf",!t.isAdminRoute()),no(1),Vr("ngIf",!t.isAdminRoute()),no(1),Vr("ngIf",t.isAdminRoute()),no(1),Vr("ngIf",!t.isAdminRoute()))},directives:[Vx,vA,Gx,Zx,Cx,Wu,Ax,Nx,wx,mA,lA,ax,rm,Vm,cA,ox,dA,xx,QN,Tx,Qx,ju,eA,jA,a_,jx,Ux],pipes:[$C,rh,lP],styles:['.main-header[_ngcontent-%COMP%]{height:205px;overflow:auto}.sidebar[_ngcontent-%COMP%]{position:relative;height:100%;overflow:hidden;display:flex;flex-direction:column}.sidebar-header[_ngcontent-%COMP%]{background:#f1f4f4;height:50px;display:flex;align-items:center;justify-content:center;font-size:14px;font-weight:600;padding-top:10px}.sidebar-header-icon[_ngcontent-%COMP%]{margin-right:15px;position:relative}.sidebar-header-icon.notification[_ngcontent-%COMP%]:after{position:absolute;right:-5px;top:-5px;width:10px;height:10px;border-radius:50%;background:#e74c3c;content:""}.sidebar-header-subtitle[_ngcontent-%COMP%]{color:#9b9b9b}.sidebar-btn[_ngcontent-%COMP%]{height:50px;display:flex;align-items:center;justify-content:space-around}.sidebar[_ngcontent-%COMP%]   .nav[_ngcontent-%COMP%]{flex:1;overflow-y:scroll;margin-top:0;overflow-x:hidden;margin-bottom:0;padding:0;position:relative}.sidebar[_ngcontent-%COMP%]   .nav-item[_ngcontent-%COMP%]{height:70px;display:flex;align-items:center;border-bottom:1px solid #e6e6e6;margin:0;padding:5px 5px 5px 30px;cursor:pointer}.sidebar[_ngcontent-%COMP%]   .nav-item.active[_ngcontent-%COMP%]{border-left:5px solid #135f7f;background:rgba(19,95,127,.14)}.sidebar[_ngcontent-%COMP%]   .nav-item.active[_ngcontent-%COMP%]:after{position:absolute;right:10px;content:"";height:60px;background:#f1f4f4}.sidebar[_ngcontent-%COMP%]   .nav-item-right[_ngcontent-%COMP%]{text-align:center}.sidebar[_ngcontent-%COMP%]   .nav-item-left[_ngcontent-%COMP%]{width:50px}.sidebar[_ngcontent-%COMP%]   .nav-item-left[_ngcontent-%COMP%]   .fas[_ngcontent-%COMP%], .sidebar[_ngcontent-%COMP%]   .nav-item-left[_ngcontent-%COMP%]   .material-icons[_ngcontent-%COMP%]{background:#f1f4f4;border-radius:50%;color:#135f7f;font-size:22px;height:25px;width:25px;padding:10px;margin-right:10px}.sidebar[_ngcontent-%COMP%]   .nav-item-middle[_ngcontent-%COMP%]{width:180px;height:50px;font-size:12px;color:#4f4f4f}.sidebar[_ngcontent-%COMP%]   .nav-item-title[_ngcontent-%COMP%]{font-weight:600;color:#135f7f;font-size:14px}.profile-header[_ngcontent-%COMP%]{background:#135f7f;height:95px;display:flex;justify-content:center;position:relative}.avatar[_ngcontent-%COMP%]{cursor:pointer;position:absolute;width:65px;height:65px;border-radius:40px;bottom:-20px;border:3px solid #f99830;background-size:cover;background-repeat:no-repeat;background-position:50%;transition:all .2s}.avatar[_ngcontent-%COMP%]:hover{box-shadow:0 0 5px 0 #656565}.user[_ngcontent-%COMP%]{color:#fff;padding-top:10px;font-weight:700;font-size:20px;max-width:90%;right:0;white-space:pre;overflow:hidden;text-overflow:ellipsis;padding-right:10px}.filter[_ngcontent-%COMP%]{font-size:10px;width:95px;padding-left:0;padding-right:0}.filter.active[_ngcontent-%COMP%]{background:#135f7f}.mat-badge-content[_ngcontent-%COMP%]{right:0!important;top:-8px!important;background:#f99830}.noResult[_ngcontent-%COMP%]{position:absolute;top:50%;text-align:center;width:100%;opacity:.5}.noDoc[_ngcontent-%COMP%]   .mat-badge-content[_ngcontent-%COMP%]{background:#ddd}.sub-label[_ngcontent-%COMP%]{font-size:11px;--color:var(--ion-color-medium)}ion-item.selected[_ngcontent-%COMP%]{--background:rgba(var(--ion-color-primary-rgb),0.2)}.doc-item[_ngcontent-%COMP%]{--inner-padding-bottom:10px;--inner-padding-top:10px}.filters[_ngcontent-%COMP%]   ion-badge[_ngcontent-%COMP%]{position:absolute;top:10px;right:0;color:#fff}.avatar-user[_ngcontent-%COMP%]{cursor:pointer;position:absolute;z-index:99;left:50%;transform:translateX(-50%);top:60px;border:solid var(--ion-color-secondary);width:71px;height:71px}.groupMailIcon[_ngcontent-%COMP%]{position:absolute;left:40px;font-size:14px;bottom:10px}.segment-button-notFocused[_ngcontent-%COMP%]{--indicator-color:none}']}),e})();function wH(e,t){if(1&e){const e=qr();Hr(0,"ion-segment-button",10),Xr("ionChange",function(t){return Lt(e),na(2).setActiveLang(t)}),Hr(1,"ion-label"),Da(2),Hr(3,"ion-badge",11),Da(4),jr(),jr(),jr()}if(2&e){const e=na().$implicit,t=na();Vr("value",t.currentLang),no(2),Ma("",e.key," "),no(2),Oa(t.missingLang[e.key].length)}}function _H(e,t){if(1&e&&(Hr(0,"span"),Fr(1,wH,5,3,"ion-segment-button",9),jr()),2&e){const e=t.$implicit;no(1),Vr("ngIf","fr"!==e.key)}}function xH(e,t){if(1&e){const e=qr();Hr(0,"ion-item"),Hr(1,"ion-label",13),Da(2),jr(),Hr(3,"ion-input",14),Xr("ngModelChange",function(e){return t.$implicit.value=e}),jr(),Hr(4,"ion-button",15),Xr("click",function(){Lt(e);const n=t.$implicit;return na(2).openTranslation(n.value)}),Ur(5,"ion-icon",16),jr(),jr()}if(2&e){const e=t.$implicit;no(2),Oa(e.id),no(1),Vr("ngModel",e.value)}}function AH(e,t){if(1&e&&(Hr(0,"ion-list",12),Fr(1,xH,6,2,"ion-item",5),jr()),2&e){const e=na();no(1),Vr("ngForOf",e.missingLang[e.currentLang])}}let CH=(()=>{class e{constructor(e,t,n,i){this.http=e,this.notify=t,this.translate=n,this.modalController=i,this.missingLang={},this.currentLang="en",this.data={}}ngOnInit(){this.getLangs()}dismissModal(){this.modalController.dismiss("cancel")}getLangs(){this.http.get("../rest/languages").pipe(Ov(e=>{this.allLang=e.languages,Object.keys(this.allLang).forEach(e=>{this.missingLang[e]=Object.keys(this.allLang.fr.lang).filter(t=>-1===Object.keys(this.allLang[e].lang).indexOf(t)).map(e=>({id:e,value:this.allLang.fr.lang[e]+"__TO_TRANSLATE"}))})}),fv(e=>(this.notify.handleErrors(e),lb(!1)))).subscribe()}openTranslation(e){window.open("https://translate.google.fr/?hl=fr#view=home&op=translate&sl=fr&tl="+this.currentLang+"&text="+e.replace("__TO_TRANSLATE",""),"_blank")}setActiveLang(e){this.currentLang=e.detail.value}generateMissingLang(e){const t={},n=this.allLang[this.currentLang],i=/__TO_TRANSLATE$/g;this.missingLang[this.currentLang].forEach(n=>{null===n.value.match(i)&&e?t[n.id]=n.value:e||(t[n.id]=n.value)}),n.lang=Object.assign(Object.assign({},n.lang),t),this.http.put("../rest/languages",{langId:this.currentLang,jsonContent:n}).pipe(Ov(e=>{Object.keys(t).forEach(e=>{delete this.allLang[this.currentLang][e],this.missingLang[this.currentLang]=this.missingLang[this.currentLang].filter(t=>t.id!==e),this.data.countMissingLang--}),this.modalController.dismiss("cancel")}),fv(e=>(this.notify.handleErrors(e),lb(!1)))).subscribe()}}return e.\u0275fac=function(t){return new(t||e)(zr(Db),zr(ZC),zr(GC),zr(JA))},e.\u0275cmp=$e({type:e,selectors:[["ng-component"]],decls:22,vars:14,consts:[["translucent",""],["color","primary"],["slot","end"],[3,"click"],["slot","icon-only","name","close-outline"],[4,"ngFor","ngForOf"],["lines","full",4,"ngIf"],[3,"translucent"],["size","small","color","primary",3,"click"],[3,"value","ionChange",4,"ngIf"],[3,"value","ionChange"],["color","secondary"],["lines","full"],["position","stacked"],["type","text",3,"ngModel","ngModelChange"],["slot","end","color","primary",3,"click"],["name","language-outline"]],template:function(e,t){1&e&&(Hr(0,"ion-header",0),Hr(1,"ion-toolbar",1),Hr(2,"ion-title"),Da(3),hc(4,"translate"),jr(),Hr(5,"ion-buttons",2),Hr(6,"ion-button",3),Xr("click",function(){return t.dismissModal()}),Ur(7,"ion-icon",4),jr(),jr(),jr(),jr(),Hr(8,"ion-header"),Hr(9,"ion-segment"),Fr(10,_H,2,1,"span",5),hc(11,"keyvalue"),jr(),jr(),Hr(12,"ion-content"),Wr(13),Fr(14,AH,2,1,"ion-list",6),Gr(),jr(),Hr(15,"ion-footer",7),Hr(16,"ion-button",8),Xr("click",function(){return t.generateMissingLang(!1)}),Da(17),hc(18,"translate"),jr(),Hr(19,"ion-button",8),Xr("click",function(){return t.generateMissingLang(!0)}),Da(20),hc(21,"translate"),jr(),jr()),2&e&&(no(3),Oa(pc(4,6,"lang.langChecking")),no(7),Vr("ngForOf",pc(11,8,t.allLang)),no(4),Vr("ngIf","en"===t.currentLang),no(1),Vr("translucent",!0),no(2),Oa(pc(18,10,"lang.generateLangVar")),no(3),Oa(pc(21,12,"lang.generateLangVarIgnoreTranslate")))},directives:[Vx,vA,mA,Cx,Ax,Nx,cA,ox,ju,Tx,Wu,Bx,dA,Zx,xx,Qx,Gx,Wx,ax,rm,Rm],pipes:[$C,ch],styles:[".mat-dialog-content[_ngcontent-%COMP%]{padding-top:0}.lang-container[_ngcontent-%COMP%]    .mat-tab-header{position:-webkit-sticky;position:sticky;top:0;z-index:2}.lang-container[_ngcontent-%COMP%]    .mat-tab-label-container{background:#fff}"]}),e})(),SH=(()=>{class e{constructor(e,t,n,i){this.notify=e,this.http=t,this.functionsService=n,this.modalController=i,this.countMissingLang=0}ngOnInit(){this.getLangs()}openLangTool(){return e=this,void 0,n=function*(){const e=yield this.modalController.create({component:CH,cssClass:"my-custom-class"});yield e.present()},new((t=void 0)||(t=Promise))(function(i,s){function o(e){try{a(n.next(e))}catch(t){s(t)}}function r(e){try{a(n.throw(e))}catch(t){s(t)}}function a(e){var n;e.done?i(e.value):(n=e.value,n instanceof t?n:new t(function(e){e(n)})).then(o,r)}a((n=n.apply(e,[])).next())});var e,t,n}getLangs(){this.http.get("../rest/languages").pipe(Ov(e=>{this.allLang=e.languages,Object.keys(this.allLang).forEach(e=>{this.countMissingLang+=Object.keys(this.allLang.fr.lang).filter(t=>-1===Object.keys(this.allLang[e].lang).indexOf(t)).length})}),fv(e=>(this.notify.handleErrors(e),lb(!1)))).subscribe()}}return e.\u0275fac=function(t){return new(t||e)(zr(ZC),zr(Db),zr(LF),zr(JA))},e.\u0275cmp=$e({type:e,selectors:[["app-dev-tool"]],decls:11,vars:7,consts:[["cdkDrag","","horizontal","end","vertical","top",3,"title"],["color","light"],["name","language-outline"],["side","start"],["color","light",3,"click"],["color","secondary"]],template:function(e,t){1&e&&(Hr(0,"ion-fab",0),hc(1,"translate"),Hr(2,"ion-fab-button",1),Ur(3,"ion-icon",2),jr(),Hr(4,"ion-fab-list",3),Hr(5,"ion-button",4),Xr("click",function(){return t.openLangTool()}),Hr(6,"ion-label"),Da(7),hc(8,"translate"),Hr(9,"ion-badge",5),Da(10),jr(),jr(),jr(),jr(),jr()),2&e&&(Vr("title",pc(1,3,"lang.missingLang")),no(7),Ma("",pc(8,5,"lang.missingLang")," "),no(3),Ma(" ",t.countMissingLang,""))},directives:[Rx,ER,Lx,Nx,Fx,Ax,Zx,xx],pipes:[$C],styles:[".devToolListMenu{min-height:auto!important;width:250px}"]}),e})();function kH(e,t){1&e&&Ur(0,"app-sidebar",10)}function PH(e,t){1&e&&Ur(0,"app-dev-tool")}const EH=function(e){return[e]};let DH=(()=>{class e{constructor(e,t,n,i,s,o,r,a,l,c,d,u){if(this.translate=e,this.http=t,this.signaturesService=n,this.sanitizer=i,this.cookieService=s,this.notificationService=o,this.dialog=r,this.authService=l,this.menu=c,this.router=d,this.platform=u,this.showLeftContent=!1,this.showRightContent=!1,a.addSvgIcon("maarchLogo",i.bypassSecurityTrustResourceUrl("../src/frontend/assets/logo_white.svg")),this.cookieService.check("maarchParapheurLang")){const t=this.cookieService.get("maarchParapheurLang");e.setDefaultLang(t)}else this.cookieService.set("maarchParapheurLang","fr"),e.setDefaultLang("fr");zd.production||(this.debugMode=!0)}test(){return!0}allowedRoute(){const e=this.router.url.split("?")[0];return-1===["/","/login","/forgot-password","/update-password","/password-modification"].indexOf(e)}}return e.\u0275fac=function(t){return new(t||e)(zr(GC),zr(Db),zr(sS),zr(qh),zr(sP),zr(ZC),zr(IM),zr($M),zr(rS),zr(KA),zr(r_),zr(lx))},e.\u0275cmp=$e({type:e,selectors:[["app-root"]],decls:11,vars:5,consts:[["contentId","main-content"],["menuId","left-menu","contentId","main-content","type","overlay","disabled","",1,"left-menu",3,"ionDidOpen","ionDidClose"],["leftMenu",""],["style","display: contents;",4,"ngIf"],["id","leftContent",2,"display","contents"],["id","main-content"],["menuId","right-menu","contentId","main-content","side","end","type","overlay","disabled","",3,"ngClass","ionDidOpen","ionDidClose"],["rightMenu",""],["id","rightContent",2,"display","contents"],[4,"ngIf"],[2,"display","contents"]],template:function(e,t){1&e&&(Hr(0,"ion-app"),Hr(1,"ion-split-pane",0),Hr(2,"ion-menu",1,2),Xr("ionDidOpen",function(){return t.showLeftContent=!0})("ionDidClose",function(){return t.showLeftContent=!1}),Fr(4,kH,1,0,"app-sidebar",3),Ur(5,"div",4),jr(),Ur(6,"ion-router-outlet",5),Hr(7,"ion-menu",6,7),Xr("ionDidOpen",function(){return t.showRightContent=!0})("ionDidClose",function(){return t.showRightContent=!1}),Ur(9,"div",8),jr(),jr(),jr(),Fr(10,PH,1,0,"app-dev-tool",9)),2&e&&(no(4),Vr("ngIf",t.allowedRoute()),no(3),Vr("ngClass",ac(3,EH,t.signaturesService.mobileMode?"right-menu-responsive":"right-menu")),no(3),Vr("ngIf",t.debugMode&&t.authService.isAuth()))},directives:[yx,fA,Kx,Wu,VA,Nu,yH,SH],styles:[".left-menu{--width:350px;--min-width:350px;--max-width:350px}.right-menu{--width:450px;--min-width:450px;--max-width:450px}.right-menu-responsive{--width:89%;--min-width:89%;--max-width:89%}.split-pane-visible>.left-menu{width:350px!important;--max-width:350px!important;--min-width:350px!important}.split-pane-visible>.right-menu{width:450px!important;--max-width:450px!important;--min-width:450px!important}"],encapsulation:2}),e})();var OH,MH,TH;OH=lC.a,TH=void 0,"string"!=typeof(MH="fr-FR")&&(TH=MH,MH=OH[Ua.LocaleId]),MH=MH.toLowerCase().replace(/_/g,"-"),Na[MH]=OH,TH&&(Na[MH][Ua.ExtraData]=TH);let IH=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e,bootstrap:[DH]}),e.\u0275inj=fe({providers:[{provide:Mb,useClass:aS,multi:!0},sS,kF,ZC,{provide:Qw,useClass:nC},sP,dP],imports:[[ob,rb,Xh,Af,Wb,rC.forRoot({mode:"md"}),qC.forRoot({loader:{provide:SC,useFactory:LH,deps:[Db]}}),sF,Wk,Zk,fP,nP,IR,YN,Hh]]}),e})();class RH{constructor(e){this.http=e}getTranslation(e){return this.http.get("../rest/languages/"+e)}}function LH(e){return new RH(e)}zd.production&&function(){if(wd)throw new Error("Cannot enable prod mode after platform setup.");yd=!1}(),Zh().bootstrapModule(IH).catch(e=>console.log(e))},meiF:function(e,t,n){"use strict";n.d(t,"a",function(){return d});var i=n("1vRN");let s;const o=e=>{if(void 0===s){const t=void 0!==e.style.webkitAnimationName;s=void 0===e.style.animationName&&t?"-webkit-":""}return s},r=(e,t,n)=>{const i=t.startsWith("animation")?o(e):"";e.style.setProperty(i+t,n)},a=(e,t)=>{const n=t.startsWith("animation")?o(e):"";e.style.removeProperty(n+t)},l=[],c=(e=[],t)=>{if(void 0!==t){const n=Array.isArray(t)?t:[t];return[...e,...n]}return e},d=e=>{let t,n,s,d,u,h,p,g,f,m,b,v,y,w=[],_=[],x=[],A=!1,C={},S=[],k=[],P={},E=0,D=!1,O=!1,M=!0,T=!1,I=!0;const R=e,L=[],F=[],B=[],z=[],V=[],N=[],H=[],j=[],U=[],W=[],G="function"==typeof AnimationEffect||"function"==typeof window.AnimationEffect,$="function"==typeof Element&&"function"==typeof Element.prototype.animate&&G,q=(e,t)=>((t&&t.oneTimeCallback?F:L).push({c:e,o:t}),y),Y=()=>{if($)W.forEach(e=>{e.cancel()}),W.length=0;else{const e=B.slice();Object(i.q)(()=>{e.forEach(e=>{a(e,"animation-name"),a(e,"animation-duration"),a(e,"animation-timing-function"),a(e,"animation-iteration-count"),a(e,"animation-delay"),a(e,"animation-play-state"),a(e,"animation-fill-mode"),a(e,"animation-direction")})})}},Z=()=>{V.forEach(e=>{e&&e.parentNode&&e.parentNode.removeChild(e)}),V.length=0},Q=()=>void 0!==u?u:p?p.getFill():"both",X=()=>void 0!==f?f:void 0!==h?h:p?p.getDirection():"normal",K=()=>D?"linear":void 0!==s?s:p?p.getEasing():"linear",J=()=>O?0:void 0!==m?m:void 0!==n?n:p?p.getDuration():0,ee=()=>void 0!==d?d:p?p.getIterations():1,te=()=>void 0!==b?b:void 0!==t?t:p?p.getDelay():0,ne=()=>{0!==E&&(E--,0===E&&((()=>{de(),j.forEach(e=>e()),U.forEach(e=>e());const e=M?1:0,t=S,n=k,i=P;B.forEach(e=>{const s=e.classList;t.forEach(e=>s.add(e)),n.forEach(e=>s.remove(e));for(const t in i)i.hasOwnProperty(t)&&r(e,t,i[t])}),L.forEach(t=>t.c(e,y)),F.forEach(t=>t.c(e,y)),F.length=0,I=!0,M&&(T=!0),M=!0})(),p&&p.animationFinish()))},ie=(t=!0)=>{(()=>{N.forEach(e=>e()),H.forEach(e=>e());const e=_,t=x,n=C;B.forEach(i=>{const s=i.classList;e.forEach(e=>s.add(e)),t.forEach(e=>s.remove(e));for(const e in n)n.hasOwnProperty(e)&&r(i,e,n[e])})})(),w.length>0&&($?(B.forEach(e=>{const t=e.animate(w,{id:R,delay:te(),duration:J(),easing:K(),iterations:ee(),fill:Q(),direction:X()});t.pause(),W.push(t)}),W.length>0&&(W[0].onfinish=()=>{ne()})):((t=!0)=>{Z();const n=((s=w).forEach(e=>{for(const t in e)if(e.hasOwnProperty(t)){const n=e[t];if("easing"===t)e["animation-timing-function"]=n,delete e[t];else{const i=t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();i!==t&&(e[i]=n,delete e[t])}}}),s);var s;B.forEach(s=>{if(n.length>0){const a=((e=[])=>e.map(e=>{const t=e.offset,n=[];for(const i in e)e.hasOwnProperty(i)&&"offset"!==i&&n.push(`${i}: ${e[i]};`);return`${100*t}% { ${n.join(" ")} }`}).join(" "))(n);v=void 0!==e?e:(e=>{let t=l.indexOf(e);return t<0&&(t=l.push(e)-1),"ion-animation-"+t})(a);const c=((e,t,n)=>{const i=(e=>{const t=e.getRootNode();return t.head||t})(n),s=o(n),r=i.querySelector("#"+e);if(r)return r;const a=(n.ownerDocument||document).createElement("style");return a.id=e,a.textContent=`@${s}keyframes ${e} { ${t} } @${s}keyframes ${e}-alt { ${t} }`,i.appendChild(a),a})(v,a,s);V.push(c),r(s,"animation-duration",J()+"ms"),r(s,"animation-timing-function",K()),r(s,"animation-delay",te()+"ms"),r(s,"animation-fill-mode",Q()),r(s,"animation-direction",X());const d=ee()===1/0?"infinite":ee().toString();r(s,"animation-iteration-count",d),r(s,"animation-play-state","paused"),t&&r(s,"animation-name",c.id+"-alt"),Object(i.q)(()=>{r(s,"animation-name",c.id||null)})}})})(t)),A=!0},se=e=>{if(e=Math.min(Math.max(e,0),.9999),$)W.forEach(t=>{t.currentTime=t.effect.getComputedTiming().delay+J()*e,t.pause()});else{const t=`-${J()*e}ms`;B.forEach(e=>{w.length>0&&(r(e,"animation-delay",t),r(e,"animation-play-state","paused"))})}},oe=e=>{W.forEach(e=>{e.effect.updateTiming({delay:te(),duration:J(),easing:K(),iterations:ee(),fill:Q(),direction:X()})}),void 0!==e&&se(e)},re=(e=!0,t)=>{Object(i.q)(()=>{B.forEach(n=>{r(n,"animation-name",v||null),r(n,"animation-duration",J()+"ms"),r(n,"animation-timing-function",K()),r(n,"animation-delay",void 0!==t?`-${t*J()}ms`:te()+"ms"),r(n,"animation-fill-mode",Q()||null),r(n,"animation-direction",X()||null);const s=ee()===1/0?"infinite":ee().toString();r(n,"animation-iteration-count",s),e&&r(n,"animation-name",v+"-alt"),Object(i.q)(()=>{r(n,"animation-name",v||null)})})})},ae=(e=!1,t=!0,n)=>(e&&z.forEach(i=>{i.update(e,t,n)}),$?oe(n):re(t,n),y),le=()=>{A&&($?W.forEach(e=>{e.pause()}):B.forEach(e=>{r(e,"animation-play-state","paused")}))},ce=()=>{g=void 0,ne()},de=()=>{g&&clearTimeout(g)},ue=e=>new Promise(t=>{e&&e.sync&&(O=!0,q(()=>O=!1,{oneTimeCallback:!0})),A||ie(),T&&($?(se(0),oe()):re(),T=!1),I&&(E=z.length+1,I=!1),q(()=>t(),{oneTimeCallback:!0}),z.forEach(e=>{e.play()}),$?(W.forEach(e=>{e.play()}),0!==w.length&&0!==B.length||ne()):(()=>{if(de(),Object(i.q)(()=>{B.forEach(e=>{w.length>0&&r(e,"animation-play-state","running")})}),0===w.length||0===B.length)ne();else{const e=te()||0,t=J()||0,n=ee()||1;isFinite(n)&&(g=setTimeout(ce,e+t*n+100)),((e,t)=>{let n;const s={passive:!0},o=t=>{e===t.target&&(n&&n(),de(),Object(i.q)(()=>{B.forEach(e=>{a(e,"animation-duration"),a(e,"animation-delay"),a(e,"animation-play-state")}),Object(i.q)(ne)}))};e&&(e.addEventListener("webkitAnimationEnd",o,s),e.addEventListener("animationend",o,s),n=()=>{e.removeEventListener("webkitAnimationEnd",o,s),e.removeEventListener("animationend",o,s)})})(B[0])}})()}),he=(e,t)=>{const n=w[0];return void 0===n||void 0!==n.offset&&0!==n.offset?w=[{offset:0,[e]:t},...w]:n[e]=t,y};return y={parentAnimation:p,elements:B,childAnimations:z,id:R,animationFinish:ne,from:he,to:(e,t)=>{const n=w[w.length-1];return void 0===n||void 0!==n.offset&&1!==n.offset?w=[...w,{offset:1,[e]:t}]:n[e]=t,y},fromTo:(e,t,n)=>he(e,t).to(e,n),parent:e=>(p=e,y),play:ue,pause:()=>(z.forEach(e=>{e.pause()}),le(),y),stop:()=>{z.forEach(e=>{e.stop()}),A&&(Y(),A=!1),D=!1,O=!1,I=!0,f=void 0,m=void 0,b=void 0,E=0,T=!1,M=!0},destroy:e=>(z.forEach(t=>{t.destroy(e)}),(e=>{Y(),e&&Z()})(e),B.length=0,z.length=0,w.length=0,L.length=0,F.length=0,A=!1,I=!0,y),keyframes:e=>(w=e,y),addAnimation:e=>{if(null!=e)if(Array.isArray(e))for(const t of e)t.parent(y),z.push(t);else e.parent(y),z.push(e);return y},addElement:e=>{if(null!=e)if(1===e.nodeType)B.push(e);else if(e.length>=0)for(let t=0;t<e.length;t++)B.push(e[t]);else console.error("Invalid addElement value");return y},update:ae,fill:e=>(u=e,ae(!0),y),direction:e=>(h=e,ae(!0),y),iterations:e=>(d=e,ae(!0),y),duration:e=>($||0!==e||(e=1),n=e,ae(!0),y),easing:e=>(s=e,ae(!0),y),delay:e=>(t=e,ae(!0),y),getWebAnimations:()=>W,getKeyframes:()=>w,getFill:Q,getDirection:X,getDelay:te,getIterations:ee,getEasing:K,getDuration:J,afterAddRead:e=>(j.push(e),y),afterAddWrite:e=>(U.push(e),y),afterClearStyles:(e=[])=>{for(const t of e)P[t]="";return y},afterStyles:(e={})=>(P=e,y),afterRemoveClass:e=>(k=c(k,e),y),afterAddClass:e=>(S=c(S,e),y),beforeAddRead:e=>(N.push(e),y),beforeAddWrite:e=>(H.push(e),y),beforeClearStyles:(e=[])=>{for(const t of e)C[t]="";return y},beforeStyles:(e={})=>(C=e,y),beforeRemoveClass:e=>(x=c(x,e),y),beforeAddClass:e=>(_=c(_,e),y),onFinish:q,progressStart:(e=!1,t)=>(z.forEach(n=>{n.progressStart(e,t)}),le(),D=e,A?ae(!1,!0,t):ie(),y),progressStep:e=>(z.forEach(t=>{t.progressStep(e)}),se(e),y),progressEnd:(e,t,n)=>(D=!1,z.forEach(i=>{i.progressEnd(e,t,n)}),void 0!==n&&(m=n),T=!1,M=!0,0===e?(f="reverse"===X()?"normal":"reverse","reverse"===f&&(M=!1),$?(ae(),se(1-t)):(b=(1-t)*J()*-1,ae(!1,!1))):1===e&&($?(ae(),se(t)):(b=t*J()*-1,ae(!1,!1))),void 0!==e&&(q(()=>{m=void 0,f=void 0,b=void 0},{oneTimeCallback:!0}),p||ue()),y)}}},r7QR:function(e,t,n){"use strict";n.d(t,"a",function(){return u});var i=n("B4Jq"),s=n("1vRN"),o=n("E/Mt"),r=n("meiF");const a=e=>Object(r.a)().duration(e?400:300),l=e=>{let t,n;const i=e.width+8,s=Object(r.a)(),l=Object(r.a)();e.isEndSide?(t=i+"px",n="0px"):(t=-i+"px",n="0px"),s.addElement(e.menuInnerEl).fromTo("transform",`translateX(${t})`,`translateX(${n})`);const c="ios"===Object(o.b)(e),d=c?.2:.25;return l.addElement(e.backdropEl).fromTo("opacity",.01,d),a(c).addAnimation([s,l])},c=e=>{let t,n;const i=Object(o.b)(e),s=e.width;e.isEndSide?(t=-s+"px",n=s+"px"):(t=s+"px",n=-s+"px");const l=Object(r.a)().addElement(e.menuInnerEl).fromTo("transform",`translateX(${n})`,"translateX(0px)"),c=Object(r.a)().addElement(e.contentEl).fromTo("transform","translateX(0px)",`translateX(${t})`),d=Object(r.a)().addElement(e.backdropEl).fromTo("opacity",.01,.32);return a("ios"===i).addAnimation([l,c,d])},d=e=>{const t=Object(o.b)(e),n=e.width*(e.isEndSide?-1:1)+"px",i=Object(r.a)().addElement(e.contentEl).fromTo("transform","translateX(0px)",`translateX(${n})`);return a("ios"===t).addAnimation(i)},u=(()=>{const e=new Map,t=[],n=async e=>(await g(),"start"===e||"end"===e?p(t=>t.side===e&&!t.disabled)||p(t=>t.side===e):null!=e?p(t=>t.menuId===e):p(e=>!e.disabled)||(t.length>0?t[0].el:void 0)),o=async()=>(await g(),u()),r=(t,n)=>{e.set(t,n)},a=e=>{const n=e.side;t.filter(t=>t.side===n&&t!==e).forEach(e=>e.disabled=!0)},u=()=>p(e=>e._isOpen),h=()=>t.some(e=>e.isAnimating),p=e=>{const n=t.find(e);if(void 0!==n)return n.el},g=()=>Promise.all(Array.from(document.querySelectorAll("ion-menu")).map(e=>new Promise(t=>Object(s.c)(e,t))));return r("reveal",d),r("push",c),r("overlay",l),"undefined"!=typeof document&&document.addEventListener("ionBackButton",e=>{const t=u();t&&e.detail.register(i.MENU_BACK_BUTTON_PRIORITY,()=>t.close())}),{registerAnimation:r,get:n,getMenus:async()=>(await g(),t.map(e=>e.el)),getOpen:o,isEnabled:async e=>{const t=await n(e);return!!t&&!t.disabled},swipeGesture:async(e,t)=>{const i=await n(t);return i&&(i.swipeGesture=e),i},isAnimating:async()=>(await g(),h()),isOpen:async e=>{if(null!=e){const t=await n(e);return void 0!==t&&t.isOpen()}return void 0!==await o()},enable:async(e,t)=>{const i=await n(t);return i&&(i.disabled=!e),i},toggle:async e=>{const t=await n(e);return!!t&&t.toggle()},close:async e=>{const t=await(void 0!==e?n(e):o());return void 0!==t&&t.close()},open:async e=>{const t=await n(e);return!!t&&t.open()},_getOpenSync:u,_createAnimation:(t,n)=>{const i=e.get(t);if(!i)throw new Error("animation not registered");return i(n)},_register:e=>{t.indexOf(e)<0&&(e.disabled||a(e),t.push(e))},_unregister:e=>{const n=t.indexOf(e);n>-1&&t.splice(n,1)},_setOpen:async(e,t,n)=>{if(h())return!1;if(t){const t=await o();t&&e.el!==t&&await t.setOpen(!1,!1)}return e._setOpen(t,n)},_setActiveMenu:a}})()},wEJo:function(e,t,n){"use strict";n.d(t,"a",function(){return Ne}),n.d(t,"b",function(){return h}),n.d(t,"c",function(){return I}),n.d(t,"d",function(){return m}),n.d(t,"e",function(){return we}),n.d(t,"f",function(){return Ve}),n.d(t,"g",function(){return te}),n.d(t,"h",function(){return ze}),n.d(t,"i",function(){return E}),n.d(t,"j",function(){return M}),n.d(t,"k",function(){return ee}),n.d(t,"l",function(){return ce}),n.d(t,"m",function(){return _e}),n.d(t,"n",function(){return g}),n.d(t,"o",function(){return Ce}),n.d(t,"p",function(){return P}),n.d(t,"q",function(){return u});let i,s,o,r=!1,a=!1,l=!1,c=!1,d=!1;const u="undefined"!=typeof window?window:{},h=u.CSS,p=u.document||{head:{}},g={$flags$:0,$resourcesUrl$:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,i)=>e.addEventListener(t,n,i),rel:(e,t,n,i)=>e.removeEventListener(t,n,i),ce:(e,t)=>new CustomEvent(e,t)},f=(()=>(p.head.attachShadow+"").indexOf("[native")>-1)(),m=e=>Promise.resolve(e),b=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replace}catch(e){}return!1})(),v=(e,t,n,i)=>{n&&n.map(([n,i,s])=>{const o=w(e,n),r=y(t,s),a=_(n);g.ael(o,i,r,a),(t.$rmListeners$=t.$rmListeners$||[]).push(()=>g.rel(o,i,r,a))})},y=(e,t)=>n=>{try{256&e.$flags$?e.$lazyInstance$[t](n):(e.$queuedListeners$=e.$queuedListeners$||[]).push([t,n])}catch(i){Pe(i)}},w=(e,t)=>4&t?p:8&t?u:16&t?p.body:e,_=e=>0!=(2&e),x="http://www.w3.org/1999/xlink",A=new WeakMap,C=(e,t,n)=>{let i=Oe.get(e);b&&n?(i=i||new CSSStyleSheet,i.replace(t)):i=t,Oe.set(e,i)},S=(e,t,n,i)=>{let s=k(t,n),o=Oe.get(s);if(e=11===e.nodeType?e:p,o)if("string"==typeof o){let n,r=A.get(e=e.head||e);if(r||A.set(e,r=new Set),!r.has(s)){if(e.host&&(n=e.querySelector(`[sty-id="${s}"]`)))n.innerHTML=o;else{if(g.$cssShim$){n=g.$cssShim$.createHostStyle(i,s,o,!!(10&t.$flags$));const e=n["s-sc"];e&&(s=e,r=null)}else n=p.createElement("style"),n.innerHTML=o;e.insertBefore(n,e.querySelector("link"))}r&&r.add(s)}}else e.adoptedStyleSheets.includes(o)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,o]);return s},k=(e,t)=>"sc-"+(t&&32&e.$flags$?e.$tagName$+"-"+t:e.$tagName$),P=e=>Me.push(e),E=e=>Ae(e).$modeName$,D={},O=e=>"object"==(e=typeof e)||"function"===e,M=(e,t,...n)=>{let i=null,s=null,o=null,r=!1,a=!1,l=[];const c=t=>{for(let n=0;n<t.length;n++)i=t[n],Array.isArray(i)?c(i):null!=i&&"boolean"!=typeof i&&((r="function"!=typeof e&&!O(i))&&(i=String(i)),r&&a?l[l.length-1].$text$+=i:l.push(r?T(null,i):i),a=r)};if(c(n),t){t.key&&(s=t.key),t.name&&(o=t.name);{const e=t.className||t.class;e&&(t.class="object"!=typeof e?e:Object.keys(e).filter(t=>e[t]).join(" "))}}if("function"==typeof e)return e(null===t?{}:t,l,R);const d=T(e,null);return d.$attrs$=t,l.length>0&&(d.$children$=l),d.$key$=s,d.$name$=o,d},T=(e,t)=>({$flags$:0,$tag$:e,$text$:t,$elm$:null,$children$:null,$attrs$:null,$key$:null,$name$:null}),I={},R={forEach:(e,t)=>e.map(L).forEach(t),map:(e,t)=>e.map(L).map(t).map(F)},L=e=>({vattrs:e.$attrs$,vchildren:e.$children$,vkey:e.$key$,vname:e.$name$,vtag:e.$tag$,vtext:e.$text$}),F=e=>{if("function"==typeof e.vtag){const t=Object.assign({},e.vattrs);return e.vkey&&(t.key=e.vkey),e.vname&&(t.name=e.vname),M(e.vtag,t,...e.vchildren||[])}const t=T(e.vtag,e.vtext);return t.$attrs$=e.vattrs,t.$children$=e.vchildren,t.$key$=e.vkey,t.$name$=e.vname,t},B=(e,t,n,i,s,o)=>{if(n!==i){let a=ke(e,t),l=t.toLowerCase();if("class"===t){const t=e.classList,s=V(n),o=V(i);t.remove(...s.filter(e=>e&&!o.includes(e))),t.add(...o.filter(e=>e&&!s.includes(e)))}else if("style"===t){for(const t in n)i&&null!=i[t]||(t.includes("-")?e.style.removeProperty(t):e.style[t]="");for(const t in i)n&&i[t]===n[t]||(t.includes("-")?e.style.setProperty(t,i[t]):e.style[t]=i[t])}else if("key"===t);else if("ref"===t)i&&i(e);else if(a||"o"!==t[0]||"n"!==t[1]){const c=O(i);if((a||c&&null!==i)&&!s)try{if(e.tagName.includes("-"))e[t]=i;else{let s=null==i?"":i;"list"===t?a=!1:null!=n&&e[t]==s||(e[t]=s)}}catch(r){}let d=!1;l!==(l=l.replace(/^xlink\:?/,""))&&(t=l,d=!0),null==i||!1===i?!1===i&&""!==e.getAttribute(t)||(d?e.removeAttributeNS(x,t):e.removeAttribute(t)):(!a||4&o||s)&&!c&&(i=!0===i?"":i,d?e.setAttributeNS(x,t,i):e.setAttribute(t,i))}else t="-"===t[2]?t.slice(3):ke(u,l)?l.slice(2):l[2]+t.slice(3),n&&g.rel(e,t,n,!1),i&&g.ael(e,t,i,!1)}},z=/\s/,V=e=>e?e.split(z):[],N=(e,t,n,i)=>{const s=11===t.$elm$.nodeType&&t.$elm$.host?t.$elm$.host:t.$elm$,o=e&&e.$attrs$||D,r=t.$attrs$||D;for(i in o)i in r||B(s,i,o[i],void 0,n,t.$flags$);for(i in r)B(s,i,o[i],r[i],n,t.$flags$)},H=(e,t,n,a)=>{let d,u,h,g=t.$children$[n],f=0;if(r||(l=!0,"slot"===g.$tag$&&(i&&a.classList.add(i+"-s"),g.$flags$|=g.$children$?2:1)),null!==g.$text$)d=g.$elm$=p.createTextNode(g.$text$);else if(1&g.$flags$)d=g.$elm$=p.createTextNode("");else{if(c||(c="svg"===g.$tag$),d=g.$elm$=p.createElementNS(c?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",2&g.$flags$?"slot-fb":g.$tag$),c&&"foreignObject"===g.$tag$&&(c=!1),N(null,g,c),null!=i&&d["s-si"]!==i&&d.classList.add(d["s-si"]=i),g.$children$)for(f=0;f<g.$children$.length;++f)u=H(e,g,f,d),u&&d.appendChild(u);"svg"===g.$tag$?c=!1:"foreignObject"===d.tagName&&(c=!0)}return d["s-hn"]=o,3&g.$flags$&&(d["s-sr"]=!0,d["s-cr"]=s,d["s-sn"]=g.$name$||"",h=e&&e.$children$&&e.$children$[n],h&&h.$tag$===g.$tag$&&e.$elm$&&j(e.$elm$,!1)),d},j=(e,t)=>{g.$flags$|=1;const n=e.childNodes;for(let i=n.length-1;i>=0;i--){const e=n[i];e["s-hn"]!==o&&e["s-ol"]&&(q(e).insertBefore(e,$(e)),e["s-ol"].remove(),e["s-ol"]=void 0,l=!0),t&&j(e,t)}g.$flags$&=-2},U=(e,t,n,i,s,r)=>{let a,l=e["s-cr"]&&e["s-cr"].parentNode||e;for(l.shadowRoot&&l.tagName===o&&(l=l.shadowRoot);s<=r;++s)i[s]&&(a=H(null,n,s,e),a&&(i[s].$elm$=a,l.insertBefore(a,$(t))))},W=(e,t,n,i,s)=>{for(;t<=n;++t)(i=e[t])&&(s=i.$elm$,J(i),a=!0,s["s-ol"]?s["s-ol"].remove():j(s,!0),s.remove())},G=(e,t)=>e.$tag$===t.$tag$&&("slot"===e.$tag$?e.$name$===t.$name$:e.$key$===t.$key$),$=e=>e&&e["s-ol"]||e,q=e=>(e["s-ol"]?e["s-ol"]:e).parentNode,Y=(e,t)=>{const n=t.$elm$=e.$elm$,i=e.$children$,s=t.$children$,o=t.$tag$,r=t.$text$;let a;null===r?(c="svg"===o||"foreignObject"!==o&&c,"slot"===o||N(e,t,c),null!==i&&null!==s?((e,t,n,i)=>{let s,o,r=0,a=0,l=0,c=0,d=t.length-1,u=t[0],h=t[d],p=i.length-1,g=i[0],f=i[p];for(;r<=d&&a<=p;)if(null==u)u=t[++r];else if(null==h)h=t[--d];else if(null==g)g=i[++a];else if(null==f)f=i[--p];else if(G(u,g))Y(u,g),u=t[++r],g=i[++a];else if(G(h,f))Y(h,f),h=t[--d],f=i[--p];else if(G(u,f))"slot"!==u.$tag$&&"slot"!==f.$tag$||j(u.$elm$.parentNode,!1),Y(u,f),e.insertBefore(u.$elm$,h.$elm$.nextSibling),u=t[++r],f=i[--p];else if(G(h,g))"slot"!==u.$tag$&&"slot"!==f.$tag$||j(h.$elm$.parentNode,!1),Y(h,g),e.insertBefore(h.$elm$,u.$elm$),h=t[--d],g=i[++a];else{for(l=-1,c=r;c<=d;++c)if(t[c]&&null!==t[c].$key$&&t[c].$key$===g.$key$){l=c;break}l>=0?(o=t[l],o.$tag$!==g.$tag$?s=H(t&&t[a],n,l,e):(Y(o,g),t[l]=void 0,s=o.$elm$),g=i[++a]):(s=H(t&&t[a],n,a,e),g=i[++a]),s&&q(u.$elm$).insertBefore(s,$(u.$elm$))}r>d?U(e,null==i[p+1]?null:i[p+1].$elm$,n,i,a,p):a>p&&W(t,r,d)})(n,i,t,s):null!==s?(null!==e.$text$&&(n.textContent=""),U(n,null,t,s,0,s.length-1)):null!==i&&W(i,0,i.length-1),c&&"svg"===o&&(c=!1)):(a=n["s-cr"])?a.parentNode.textContent=r:e.$text$!==r&&(n.data=r)},Z=e=>{let t,n,i,s,o,r,a=e.childNodes;for(n=0,i=a.length;n<i;n++)if(t=a[n],1===t.nodeType){if(t["s-sr"])for(o=t["s-sn"],t.hidden=!1,s=0;s<i;s++)if(r=a[s].nodeType,a[s]["s-hn"]!==t["s-hn"]||""!==o){if(1===r&&o===a[s].getAttribute("slot")){t.hidden=!0;break}}else if(1===r||3===r&&""!==a[s].textContent.trim()){t.hidden=!0;break}Z(t)}},Q=[],X=e=>{let t,n,i,s,o,r,l=0,c=e.childNodes,d=c.length;for(;l<d;l++){if(t=c[l],t["s-sr"]&&(n=t["s-cr"])&&n.parentNode)for(i=n.parentNode.childNodes,s=t["s-sn"],r=i.length-1;r>=0;r--)n=i[r],n["s-cn"]||n["s-nr"]||n["s-hn"]===t["s-hn"]||(K(n,s)?(o=Q.find(e=>e.$nodeToRelocate$===n),a=!0,n["s-sn"]=n["s-sn"]||s,o?o.$slotRefNode$=t:Q.push({$slotRefNode$:t,$nodeToRelocate$:n}),n["s-sr"]&&Q.map(e=>{K(e.$nodeToRelocate$,n["s-sn"])&&(o=Q.find(e=>e.$nodeToRelocate$===n),o&&!e.$slotRefNode$&&(e.$slotRefNode$=o.$slotRefNode$))})):Q.some(e=>e.$nodeToRelocate$===n)||Q.push({$nodeToRelocate$:n}));1===t.nodeType&&X(t)}},K=(e,t)=>1===e.nodeType?null===e.getAttribute("slot")&&""===t||e.getAttribute("slot")===t:e["s-sn"]===t||""===t,J=e=>{e.$attrs$&&e.$attrs$.ref&&e.$attrs$.ref(null),e.$children$&&e.$children$.map(J)},ee=e=>Ae(e).$hostElement$,te=(e,t,n)=>{const i=ee(e);return{emit:e=>ne(i,t,{bubbles:!!(4&n),composed:!!(2&n),cancelable:!!(1&n),detail:e})}},ne=(e,t,n)=>{const i=g.ce(t,n);return e.dispatchEvent(i),i},ie=(e,t)=>{t&&!e.$onRenderResolve$&&t["s-p"]&&t["s-p"].push(new Promise(t=>e.$onRenderResolve$=t))},se=(e,t)=>{if(e.$flags$|=16,!(4&e.$flags$))return ie(e,e.$ancestorComponent$),Ve(()=>oe(e,t));e.$flags$|=512},oe=(e,t)=>{const n=e.$lazyInstance$;let i;return t&&(e.$flags$|=256,e.$queuedListeners$&&(e.$queuedListeners$.map(([e,t])=>ue(n,e,t)),e.$queuedListeners$=null),i=ue(n,"componentWillLoad")),i=he(i,()=>ue(n,"componentWillRender")),he(i,()=>re(e,n,t))},re=async(e,t,n)=>{const i=e.$hostElement$,s=i["s-rc"];n&&(e=>{const t=e.$cmpMeta$,n=e.$hostElement$,i=t.$flags$,s=S(f&&n.shadowRoot?n.shadowRoot:n.getRootNode(),t,e.$modeName$,n);10&i&&(n["s-sc"]=s,n.classList.add(s+"-h"),2&i&&n.classList.add(s+"-s"))})(e),ae(e,t),g.$cssShim$&&g.$cssShim$.updateHost(i),s&&(s.map(e=>e()),i["s-rc"]=void 0);{const t=i["s-p"],n=()=>le(e);0===t.length?n():(Promise.all(t).then(n),e.$flags$|=4,t.length=0)}},ae=(e,t,n)=>{try{t=t.render&&t.render(),e.$flags$&=-17,e.$flags$|=2,((e,t)=>{const n=e.$hostElement$,c=e.$cmpMeta$,d=e.$vnode$||T(null,null),u=(h=t)&&h.$tag$===I?t:M(null,null,t);var h;if(o=n.tagName,c.$attrsToReflect$&&(u.$attrs$=u.$attrs$||{},c.$attrsToReflect$.map(([e,t])=>u.$attrs$[t]=n[e])),u.$tag$=null,u.$flags$|=4,e.$vnode$=u,u.$elm$=d.$elm$=n.shadowRoot||n,i=n["s-sc"],s=n["s-cr"],r=f&&0!=(1&c.$flags$),a=!1,Y(d,u),g.$flags$|=1,l){let e,t,n,i,s,o;X(u.$elm$);let r=0;for(;r<Q.length;r++)e=Q[r],t=e.$nodeToRelocate$,t["s-ol"]||(n=p.createTextNode(""),n["s-nr"]=t,t.parentNode.insertBefore(t["s-ol"]=n,t));for(r=0;r<Q.length;r++)if(e=Q[r],t=e.$nodeToRelocate$,e.$slotRefNode$){for(i=e.$slotRefNode$.parentNode,s=e.$slotRefNode$.nextSibling,n=t["s-ol"];n=n.previousSibling;)if(o=n["s-nr"],o&&o["s-sn"]===t["s-sn"]&&i===o.parentNode&&(o=o.nextSibling,!o||!o["s-nr"])){s=o;break}(!s&&i!==t.parentNode||t.nextSibling!==s)&&t!==s&&(!t["s-hn"]&&t["s-ol"]&&(t["s-hn"]=t["s-ol"].parentNode.nodeName),i.insertBefore(t,s))}else 1===t.nodeType&&(t.hidden=!0)}a&&Z(u.$elm$),g.$flags$&=-2,Q.length=0})(e,t)}catch(c){Pe(c,e.$hostElement$)}return null},le=e=>{const t=e.$hostElement$,n=e.$lazyInstance$,i=e.$ancestorComponent$;64&e.$flags$?ue(n,"componentDidUpdate"):(e.$flags$|=64,pe(t),ue(n,"componentDidLoad"),e.$onReadyResolve$(t),i||de()),e.$onInstanceResolve$(t),e.$onRenderResolve$&&(e.$onRenderResolve$(),e.$onRenderResolve$=void 0),512&e.$flags$&&Be(()=>se(e,!1)),e.$flags$&=-517},ce=e=>{{const t=Ae(e),n=t.$hostElement$.isConnected;return n&&2==(18&t.$flags$)&&se(t,!1),n}},de=e=>{pe(p.documentElement),Be(()=>ne(u,"appload",{detail:{namespace:"ionic"}}))},ue=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(i){Pe(i)}},he=(e,t)=>e&&e.then?e.then(t):t(),pe=e=>e.classList.add("hydrated"),ge=(e,t,n,i,s,o,r)=>{let a,l,c,d;if(1===o.nodeType){for(a=o.getAttribute("c-id"),a&&(l=a.split("."),l[0]!==r&&"0"!==l[0]||(c={$flags$:0,$hostId$:l[0],$nodeId$:l[1],$depth$:l[2],$index$:l[3],$tag$:o.tagName.toLowerCase(),$elm$:o,$attrs$:null,$children$:null,$key$:null,$name$:null,$text$:null},t.push(c),o.removeAttribute("c-id"),e.$children$||(e.$children$=[]),e.$children$[c.$index$]=c,e=c,i&&"0"===c.$depth$&&(i[c.$index$]=c.$elm$))),d=o.childNodes.length-1;d>=0;d--)ge(e,t,n,i,s,o.childNodes[d],r);if(o.shadowRoot)for(d=o.shadowRoot.childNodes.length-1;d>=0;d--)ge(e,t,n,i,s,o.shadowRoot.childNodes[d],r)}else if(8===o.nodeType)l=o.nodeValue.split("."),l[1]!==r&&"0"!==l[1]||(a=l[0],c={$flags$:0,$hostId$:l[1],$nodeId$:l[2],$depth$:l[3],$index$:l[4],$elm$:o,$attrs$:null,$children$:null,$key$:null,$name$:null,$tag$:null,$text$:null},"t"===a?(c.$elm$=o.nextSibling,c.$elm$&&3===c.$elm$.nodeType&&(c.$text$=c.$elm$.textContent,t.push(c),o.remove(),e.$children$||(e.$children$=[]),e.$children$[c.$index$]=c,i&&"0"===c.$depth$&&(i[c.$index$]=c.$elm$))):c.$hostId$===r&&("s"===a?(c.$tag$="slot",o["s-sn"]=l[5]?c.$name$=l[5]:"",o["s-sr"]=!0,i&&(c.$elm$=p.createElement(c.$tag$),c.$name$&&c.$elm$.setAttribute("name",c.$name$),o.parentNode.insertBefore(c.$elm$,o),o.remove(),"0"===c.$depth$&&(i[c.$index$]=c.$elm$)),n.push(c),e.$children$||(e.$children$=[]),e.$children$[c.$index$]=c):"r"===a&&(i?o.remove():(s["s-cr"]=o,o["s-cn"]=!0))));else if(e&&"style"===e.$tag$){const t=T(null,o.textContent);t.$elm$=o,t.$index$="0",e.$children$=[t]}},fe=(e,t)=>{if(1===e.nodeType){let n=0;for(;n<e.childNodes.length;n++)fe(e.childNodes[n],t);if(e.shadowRoot)for(n=0;n<e.shadowRoot.childNodes.length;n++)fe(e.shadowRoot.childNodes[n],t)}else if(8===e.nodeType){const n=e.nodeValue.split(".");"o"===n[0]&&(t.set(n[1]+"."+n[2],e),e.nodeValue="",e["s-en"]=n[3])}},me=(e,t,n)=>{if(t.$members$){e.watchers&&(t.$watchers$=e.watchers);const i=Object.entries(t.$members$),s=e.prototype;if(i.map(([e,[i]])=>{31&i||2&n&&32&i?Object.defineProperty(s,e,{get(){return t=e,Ae(this).$instanceValues$.get(t);var t},set(n){((e,t,n,i)=>{const s=Ae(this),o=s.$hostElement$,r=s.$instanceValues$.get(t),a=s.$flags$,l=s.$lazyInstance$;var c,d;if(d=i.$members$[t][0],n=null==(c=n)||O(c)?c:4&d?"false"!==c&&(""===c||!!c):2&d?parseFloat(c):1&d?String(c):c,!(8&a&&void 0!==r||n===r)&&(s.$instanceValues$.set(t,n),l)){if(i.$watchers$&&128&a){const e=i.$watchers$[t];e&&e.map(e=>{try{l[e](n,r,t)}catch(i){Pe(i,o)}})}2==(18&a)&&se(s,!1)}})(0,e,n,t)},configurable:!0,enumerable:!0}):1&n&&64&i&&Object.defineProperty(s,e,{value(...t){const n=Ae(this);return n.$onInstancePromise$.then(()=>n.$lazyInstance$[e](...t))}})}),1&n){const n=new Map;s.attributeChangedCallback=function(e,t,i){g.jmp(()=>{const t=n.get(e);this[t]=(null!==i||"boolean"!=typeof this[t])&&i})},e.observedAttributes=i.filter(([e,t])=>15&t[0]).map(([e,i])=>{const s=i[1]||e;return n.set(s,e),512&i[0]&&t.$attrsToReflect$.push([e,s]),s})}}return e},be=e=>{ue(e,"connectedCallback")},ve=e=>{if(0==(1&g.$flags$)){const t=Ae(e),i=t.$cmpMeta$,s=()=>{};if(1&t.$flags$)v(e,t,i.$listeners$),be(t.$lazyInstance$);else{let s;if(t.$flags$|=1,s=e.getAttribute("s-id"),s){if(f&&1&i.$flags$){const t=S(e.shadowRoot,i,e.getAttribute("s-mode"));e.classList.remove(t+"-h",t+"-s")}((e,t,n,i)=>{const s=e.shadowRoot,o=[],r=s?[]:null,a=i.$vnode$=T(t,null);g.$orgLocNodes$||fe(p.body,g.$orgLocNodes$=new Map),e["s-id"]=n,e.removeAttribute("s-id"),ge(a,o,[],r,e,e,n),o.map(e=>{const n=e.$hostId$+"."+e.$nodeId$,i=g.$orgLocNodes$.get(n),o=e.$elm$;i&&f&&""===i["s-en"]&&i.parentNode.insertBefore(o,i.nextSibling),s||(o["s-hn"]=t,i&&(o["s-ol"]=i,o["s-ol"]["s-nr"]=o)),g.$orgLocNodes$.delete(n)}),s&&r.map(e=>{e&&s.appendChild(e)})})(e,i.$tagName$,s,t)}s||12&i.$flags$&&ye(e);{let n=e;for(;n=n.parentNode||n.host;)if(1===n.nodeType&&n.hasAttribute("s-id")&&n["s-p"]||n["s-p"]){ie(t,t.$ancestorComponent$=n);break}}i.$members$&&Object.entries(i.$members$).map(([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}}),Be(()=>(async(e,t,i,s,o)=>{if(0==(32&t.$flags$)){{if(t.$flags$|=32,(o=De(i)).then){const e=()=>{};o=await o,e()}o.isProxied||(i.$watchers$=o.watchers,me(o,i,2),o.isProxied=!0);const e=()=>{};t.$flags$|=8;try{new o(t)}catch(l){Pe(l)}t.$flags$&=-9,t.$flags$|=128,e(),be(t.$lazyInstance$)}if(o.style){let s=o.style;"string"!=typeof s&&(s=s[t.$modeName$=(e=>Me.map(t=>t(e)).find(e=>!!e))(e)]);const r=k(i,t.$modeName$);if(!Oe.has(r)){const e=()=>{};8&i.$flags$&&(s=await n.e(56).then(n.bind(null,"JmUR")).then(e=>e.scopeCss(s,r,!1))),C(r,s,!!(1&i.$flags$)),e()}}}const r=t.$ancestorComponent$,a=()=>se(t,!0);r&&r["s-rc"]?r["s-rc"].push(a):a()})(e,t,i))}s()}},ye=e=>{const t=e["s-cr"]=p.createComment("");t["s-cn"]=!0,e.insertBefore(t,e.firstChild)},we=(e,t={})=>{const n=[],i=t.exclude||[],s=u.customElements,o=p.head,r=o.querySelector("meta[charset]"),a=p.createElement("style"),l=[],c=p.querySelectorAll("[sty-id]");let d,h=!0,m=0;for(Object.assign(g,t),g.$resourcesUrl$=new URL(t.resourcesUrl||"./",p.baseURI).href,g.$flags$|=2;m<c.length;m++)C(c[m].getAttribute("sty-id"),c[m].innerHTML.replace(/\/\*!@([^\/]+)\*\/[^\{]+\{/g,"$1{"),!0);e.map(e=>e[1].map(t=>{const o={$flags$:t[0],$tagName$:t[1],$members$:t[2],$listeners$:t[3]};o.$members$=t[2],o.$listeners$=t[3],o.$attrsToReflect$=[],o.$watchers$={},!f&&1&o.$flags$&&(o.$flags$|=8);const r=o.$tagName$,a=class extends HTMLElement{constructor(e){super(e),Se(e=this,o),1&o.$flags$&&(f?e.attachShadow({mode:"open",delegatesFocus:!!(16&o.$flags$)}):"shadowRoot"in e||(e.shadowRoot=e))}connectedCallback(){d&&(clearTimeout(d),d=null),h?l.push(this):g.jmp(()=>ve(this))}disconnectedCallback(){g.jmp(()=>(e=>{if(0==(1&g.$flags$)){const t=Ae(e),n=t.$lazyInstance$;t.$rmListeners$&&(t.$rmListeners$.map(e=>e()),t.$rmListeners$=void 0),g.$cssShim$&&g.$cssShim$.removeHost(e),ue(n,"disconnectedCallback")}})(this))}componentOnReady(){return Ae(this).$onReadyPromise$}};o.$lazyBundleId$=e[0],i.includes(r)||s.get(r)||(n.push(r),s.define(r,me(a,o,1)))})),a.innerHTML=n+"{visibility:hidden}.hydrated{visibility:inherit}",a.setAttribute("data-styles",""),o.insertBefore(a,r?r.nextSibling:o.firstChild),h=!1,l.length?l.map(e=>e.connectedCallback()):g.jmp(()=>d=setTimeout(de,30))},_e=e=>{const t=new URL(e,g.$resourcesUrl$);return t.origin!==u.location.origin?t.href:t.pathname},xe=new WeakMap,Ae=e=>xe.get(e),Ce=(e,t)=>xe.set(t.$lazyInstance$=e,t),Se=(e,t)=>{const n={$flags$:0,$hostElement$:e,$cmpMeta$:t,$instanceValues$:new Map};return n.$onInstancePromise$=new Promise(e=>n.$onInstanceResolve$=e),n.$onReadyPromise$=new Promise(e=>n.$onReadyResolve$=e),e["s-p"]=[],e["s-rc"]=[],v(e,n,t.$listeners$),xe.set(e,n)},ke=(e,t)=>t in e,Pe=(e,t)=>(0,console.error)(e,t),Ee=new Map,De=(e,t,i)=>{const s=e.$tagName$.replace(/-/g,"_"),o=e.$lazyBundleId$,r=Ee.get(o);return r?r[s]:n("kLfG")(`./${o}.entry.js`).then(e=>(Ee.set(o,e),e[s]),Pe)},Oe=new Map,Me=[],Te=[],Ie=[],Re=(e,t)=>n=>{e.push(n),d||(d=!0,t&&4&g.$flags$?Be(Fe):g.raf(Fe))},Le=e=>{for(let n=0;n<e.length;n++)try{e[n](performance.now())}catch(t){Pe(t)}e.length=0},Fe=()=>{Le(Te),Le(Ie),(d=Te.length>0)&&g.raf(Fe)},Be=e=>m().then(e),ze=Re(Te,!1),Ve=Re(Ie,!0),Ne={isDev:!1,isBrowser:!0,isServer:!1,isTesting:!1}},y08P:function(e,t,n){"use strict";n.d(t,"a",function(){return o});class i{constructor(e,t,n,i,s){this.id=t,this.name=n,this.disableScroll=s,this.priority=1e6*i+t,this.ctrl=e}canStart(){return!!this.ctrl&&this.ctrl.canStart(this.name)}start(){return!!this.ctrl&&this.ctrl.start(this.name,this.id,this.priority)}capture(){if(!this.ctrl)return!1;const e=this.ctrl.capture(this.name,this.id,this.priority);return e&&this.disableScroll&&this.ctrl.disableScroll(this.id),e}release(){this.ctrl&&(this.ctrl.release(this.id),this.disableScroll&&this.ctrl.enableScroll(this.id))}destroy(){this.release(),this.ctrl=void 0}}class s{constructor(e,t,n,i){this.id=t,this.disable=n,this.disableScroll=i,this.ctrl=e}block(){if(this.ctrl){if(this.disable)for(const e of this.disable)this.ctrl.disableGesture(e,this.id);this.disableScroll&&this.ctrl.disableScroll(this.id)}}unblock(){if(this.ctrl){if(this.disable)for(const e of this.disable)this.ctrl.enableGesture(e,this.id);this.disableScroll&&this.ctrl.enableScroll(this.id)}}destroy(){this.unblock(),this.ctrl=void 0}}const o=new class{constructor(){this.gestureId=0,this.requestedStart=new Map,this.disabledGestures=new Map,this.disabledScroll=new Set}createGesture(e){return new i(this,this.newID(),e.name,e.priority||0,!!e.disableScroll)}createBlocker(e={}){return new s(this,this.newID(),e.disable,!!e.disableScroll)}start(e,t,n){return this.canStart(e)?(this.requestedStart.set(t,n),!0):(this.requestedStart.delete(t),!1)}capture(e,t,n){if(!this.start(e,t,n))return!1;const i=this.requestedStart;let s=-1e4;if(i.forEach(e=>{s=Math.max(s,e)}),s===n){this.capturedId=t,i.clear();const n=new CustomEvent("ionGestureCaptured",{detail:{gestureName:e}});return document.dispatchEvent(n),!0}return i.delete(t),!1}release(e){this.requestedStart.delete(e),this.capturedId===e&&(this.capturedId=void 0)}disableGesture(e,t){let n=this.disabledGestures.get(e);void 0===n&&(n=new Set,this.disabledGestures.set(e,n)),n.add(t)}enableGesture(e,t){const n=this.disabledGestures.get(e);void 0!==n&&n.delete(t)}disableScroll(e){this.disabledScroll.add(e),1===this.disabledScroll.size&&document.body.classList.add("backdrop-no-scroll")}enableScroll(e){this.disabledScroll.delete(e),0===this.disabledScroll.size&&document.body.classList.remove("backdrop-no-scroll")}canStart(e){return void 0===this.capturedId&&!this.isDisabled(e)}isCaptured(){return void 0!==this.capturedId}isScrollDisabled(){return this.disabledScroll.size>0}isDisabled(e){const t=this.disabledGestures.get(e);return!!(t&&t.size>0)}newID(){return this.gestureId++,this.gestureId}}}},[[0,1]]]);
\ No newline at end of file
+(window.webpackJsonp=window.webpackJsonp||[]).push([[3],{0:function(e,t,n){e.exports=n("m9/o")},"1vRN":function(e,t,n){"use strict";n.d(t,"a",function(){return o}),n.d(t,"b",function(){return r}),n.d(t,"c",function(){return i}),n.d(t,"d",function(){return u}),n.d(t,"e",function(){return h}),n.d(t,"f",function(){return v}),n.d(t,"g",function(){return a}),n.d(t,"h",function(){return d}),n.d(t,"i",function(){return s}),n.d(t,"j",function(){return p}),n.d(t,"k",function(){return c}),n.d(t,"l",function(){return g}),n.d(t,"m",function(){return b}),n.d(t,"n",function(){return y}),n.d(t,"o",function(){return f}),n.d(t,"p",function(){return m}),n.d(t,"q",function(){return l});const i=(e,t)=>{e.componentOnReady?e.componentOnReady().then(e=>t(e)):l(()=>t(e))},s=(e,t=[])=>{const n={};return t.forEach(t=>{e.hasAttribute(t)&&(null!==e.getAttribute(t)&&(n[t]=e.getAttribute(t)),e.removeAttribute(t))}),n},o=(e,t,n,i)=>{if("undefined"!=typeof window){const s=window,o=s&&s.Ionic&&s.Ionic.config;if(o){const s=o.get("_ael");if(s)return s(e,t,n,i);if(o._ael)return o._ael(e,t,n,i)}}return e.addEventListener(t,n,i)},r=(e,t,n,i)=>{if("undefined"!=typeof window){const s=window,o=s&&s.Ionic&&s.Ionic.config;if(o){const s=o.get("_rel");if(s)return s(e,t,n,i);if(o._rel)return o._rel(e,t,n,i)}}return e.removeEventListener(t,n,i)},a=(e,t=e)=>e.shadowRoot||t,l=e=>"function"==typeof __zone_symbol__requestAnimationFrame?__zone_symbol__requestAnimationFrame(e):"function"==typeof requestAnimationFrame?requestAnimationFrame(e):setTimeout(e),c=e=>!!e.shadowRoot&&!!e.attachShadow,d=e=>{const t=e.closest("ion-item");return t?t.querySelector("ion-label"):null},u=(e,t)=>{let n;const i=e.getAttribute("aria-labelledby"),s=e.id;let o=null!==i&&""!==i.trim()?i:t+"-lbl",r=null!==i&&""!==i.trim()?document.getElementById(i):d(e);return r?(null===i&&(r.id=o),n=r.textContent,r.setAttribute("aria-hidden","true")):""!==s.trim()&&(r=document.querySelector(`label[for="${s}"]`),r&&(""!==r.id?o=r.id:r.id=o=s+"-lbl",n=r.textContent)),{label:r,labelId:o,labelText:n}},h=(e,t,n,i,s)=>{if(e||c(t)){let e=t.querySelector("input.aux-input");e||(e=t.ownerDocument.createElement("input"),e.type="hidden",e.classList.add("aux-input"),t.appendChild(e)),e.disabled=s,e.name=n,e.value=i||""}},p=(e,t,n)=>Math.max(e,Math.min(t,n)),g=(e,t)=>{if(!e){const e="ASSERT: "+t;throw console.error(e),new Error(e)}},f=e=>e.timeStamp||Date.now(),m=e=>{if(e){const t=e.changedTouches;if(t&&t.length>0){const e=t[0];return{x:e.clientX,y:e.clientY}}if(void 0!==e.pageX)return{x:e.pageX,y:e.pageY}}return{x:0,y:0}},b=e=>{const t="rtl"===document.dir;switch(e){case"start":return t;case"end":return!t;default:throw new Error(`"${e}" is not a valid value for [side]. Use "start" or "end" instead.`)}},v=(e,t)=>{const n=e._original||e;return{_original:e,emit:y(n.emit.bind(n),t)}},y=(e,t=0)=>{let n;return(...i)=>{clearTimeout(n),n=setTimeout(e,t,...i)}}},"39oe":function(e,t,n){"use strict";n.d(t,"a",function(){return i});const i=e=>{try{if(e instanceof class{constructor(e){this.value=e}})return e.value;if(!r()||"string"!=typeof e||""===e)return e;const t=document.createDocumentFragment(),n=document.createElement("div");t.appendChild(n),n.innerHTML=e,l.forEach(e=>{const n=t.querySelectorAll(e);for(let i=n.length-1;i>=0;i--){const e=n[i];e.parentNode?e.parentNode.removeChild(e):t.removeChild(e);const r=o(e);for(let t=0;t<r.length;t++)s(r[t])}});const i=o(t);for(let e=0;e<i.length;e++)s(i[e]);const a=document.createElement("div");a.appendChild(t);const c=a.querySelector("div");return null!==c?c.innerHTML:a.innerHTML}catch(t){return console.error(t),""}},s=e=>{if(e.nodeType&&1!==e.nodeType)return;for(let n=e.attributes.length-1;n>=0;n--){const t=e.attributes.item(n),i=t.name;if(!a.includes(i.toLowerCase())){e.removeAttribute(i);continue}const s=t.value;null!=s&&s.toLowerCase().includes("javascript:")&&e.removeAttribute(i)}const t=o(e);for(let n=0;n<t.length;n++)s(t[n])},o=e=>null!=e.children?e.children:e.childNodes,r=()=>{const e=window,t=e&&e.Ionic&&e.Ionic.config;return!t||(t.get?t.get("sanitizerEnabled",!0):!0===t.sanitizerEnabled||void 0===t.sanitizerEnabled)},a=["class","id","href","src","name","slot"],l=["script","style","iframe","meta","link","object","embed"]},"7OTs":function(e,t,n){"use strict";n.d(t,"a",function(){return I}),n.d(t,"b",function(){return c}),n.d(t,"c",function(){return d}),n.d(t,"d",function(){return g}),n.d(t,"e",function(){return A}),n.d(t,"f",function(){return m}),n.d(t,"g",function(){return S}),n.d(t,"h",function(){return E}),n.d(t,"i",function(){return a}),n.d(t,"j",function(){return O}),n.d(t,"k",function(){return u}),n.d(t,"l",function(){return h}),n.d(t,"m",function(){return p}),n.d(t,"n",function(){return T}),n.d(t,"o",function(){return f});var i=n("E/Mt"),s=n("B4Jq"),o=n("1vRN");let r=0;const a=new WeakMap,l=e=>({create:t=>b(e,t),dismiss:(t,n,i)=>_(document,t,n,e,i),getTop:async()=>x(document,e)}),c=l("ion-alert"),d=l("ion-action-sheet"),u=l("ion-loading"),h=l("ion-modal"),p=l("ion-picker"),g=l("ion-popover"),f=l("ion-toast"),m=e=>{"undefined"!=typeof document&&w(document);const t=r++;e.overlayIndex=t,e.hasAttribute("id")||(e.id="ion-overlay-"+t)},b=(e,t)=>"undefined"!=typeof customElements?customElements.whenDefined(e).then(()=>{const n=document.createElement(e);return n.classList.add("overlay-hidden"),Object.assign(n,t),k(document).appendChild(n),new Promise(e=>Object(o.c)(n,e))}):Promise.resolve(),v='[tabindex]:not([tabindex^="-"]), input:not([type=hidden]):not([tabindex^="-"]), textarea:not([tabindex^="-"]), button:not([tabindex^="-"]), select:not([tabindex^="-"]), .ion-focusable:not([tabindex^="-"])',y="input:not([type=hidden]), textarea, button, select",w=e=>{0===r&&(r=1,e.addEventListener("focus",t=>((e,t)=>{const n=x(t),i=e.target;if(n&&i)if(n===i)n.lastFocus=void 0;else{const e=Object(o.g)(n);if(!e.contains(i))return;const s=e.querySelector(".ion-overlay-wrapper");if(!s)return;if(s.contains(i))n.lastFocus=i;else{const e=n.lastFocus;((e,t)=>{let n=e.querySelector(v);const i=n&&n.shadowRoot;i&&(n=i.querySelector(y)||n),n?n.focus():t.focus()})(s,n),e===t.activeElement&&((e,t)=>{const n=Array.from(e.querySelectorAll(v));let i=n.length>0?n[n.length-1]:null;const s=i&&i.shadowRoot;s&&(i=s.querySelector(y)||i),i?i.focus():t.focus()})(s,n),n.lastFocus=t.activeElement}}})(t,e),!0),e.addEventListener("ionBackButton",t=>{const n=x(e);n&&n.backdropDismiss&&t.detail.register(s.OVERLAY_BACK_BUTTON_PRIORITY,()=>n.dismiss(void 0,I))}),e.addEventListener("keyup",t=>{if("Escape"===t.key){const t=x(e);t&&t.backdropDismiss&&t.dismiss(void 0,I)}}))},_=(e,t,n,i,s)=>{const o=x(e,i,s);return o?o.dismiss(t,n):Promise.reject("overlay does not exist")},x=(e,t,n)=>{const i=((e,t)=>(void 0===t&&(t="ion-alert,ion-action-sheet,ion-loading,ion-modal,ion-picker,ion-popover,ion-toast"),Array.from(e.querySelectorAll(t)).filter(e=>e.overlayIndex>0)))(e,t);return void 0===n?i[i.length-1]:i.find(e=>e.id===n)},A=async(e,t,n,s,o)=>{if(e.presented)return;e.presented=!0,e.willPresent.emit();const r=Object(i.b)(e),a=e.enterAnimation?e.enterAnimation:i.c.get(t,"ios"===r?n:s);await P(e,a,e.el,o)&&e.didPresent.emit(),"ION-TOAST"!==e.el.tagName&&C(e.el),e.keyboardClose&&e.el.focus()},C=async e=>{let t=document.activeElement;if(!t)return;const n=t&&t.shadowRoot;n&&(t=n.querySelector(y)||t),await e.onDidDismiss(),t.focus()},S=async(e,t,n,s,o,r,l)=>{if(!e.presented)return!1;e.presented=!1;try{e.el.style.setProperty("pointer-events","none"),e.willDismiss.emit({data:t,role:n});const c=Object(i.b)(e),d=e.leaveAnimation?e.leaveAnimation:i.c.get(s,"ios"===c?o:r);"gesture"!==n&&await P(e,d,e.el,l),e.didDismiss.emit({data:t,role:n}),a.delete(e)}catch(c){console.error(c)}return e.el.remove(),!0},k=e=>e.querySelector("ion-app")||e.body,P=async(e,t,n,s)=>{n.classList.remove("overlay-hidden");const o=t(n.shadowRoot||e.el,s);e.animated&&i.c.getBoolean("animated",!0)||o.duration(0),e.keyboardClose&&o.beforeAddWrite(()=>{const e=n.ownerDocument.activeElement;e&&e.matches("input, ion-input, ion-textarea")&&e.blur()});const r=a.get(e)||[];return a.set(e,[...r,o]),await o.play(),!0},E=(e,t)=>{let n;const i=new Promise(e=>n=e);return D(e,t,e=>{n(e.detail)}),i},D=(e,t,n)=>{const i=s=>{Object(o.b)(e,t,i),n(s)};Object(o.a)(e,t,i)},O=e=>"cancel"===e||e===I,M=e=>e(),T=(e,t)=>{if("function"==typeof e)return i.c.get("_zoneGate",M)(()=>{try{return e(t)}catch(n){console.error(n)}})},I="backdrop"},B4Jq:function(e,t,n){"use strict";n.r(t),n.d(t,"MENU_BACK_BUTTON_PRIORITY",function(){return r}),n.d(t,"OVERLAY_BACK_BUTTON_PRIORITY",function(){return o}),n.d(t,"blockHardwareBackButton",function(){return i}),n.d(t,"startHardwareBackButton",function(){return s});const i=()=>{document.addEventListener("backbutton",()=>{})},s=()=>{const e=document;let t=!1;e.addEventListener("backbutton",()=>{if(t)return;let n=0,i=[];const s=new CustomEvent("ionBackButton",{bubbles:!1,detail:{register(e,t){i.push({priority:e,handler:t,id:n++})}}});e.dispatchEvent(s);const o=()=>{if(i.length>0){let e={priority:Number.MIN_SAFE_INTEGER,handler:()=>{},id:-1};i.forEach(t=>{t.priority>=e.priority&&(e=t)}),t=!0,i=i.filter(t=>t.id!==e.id),(async e=>{try{if(e&&e.handler){const t=e.handler(o);null!=t&&await t}}catch(t){console.error(t)}})(e).then(()=>t=!1)}};o()})},o=100,r=99},"E/Mt":function(e,t,n){"use strict";n.d(t,"a",function(){return o}),n.d(t,"b",function(){return w}),n.d(t,"c",function(){return v}),n.d(t,"d",function(){return s}),n.d(t,"e",function(){return _});var i=n("wEJo");const s=e=>r(e),o=(e,t)=>("string"==typeof e&&(t=e,e=void 0),s(e).includes(t)),r=(e=window)=>{if(void 0===e)return[];e.Ionic=e.Ionic||{};let t=e.Ionic.platforms;return null==t&&(t=e.Ionic.platforms=a(e),t.forEach(t=>e.document.documentElement.classList.add("plt-"+t))),t},a=e=>Object.keys(m).filter(t=>m[t](e)),l=e=>!!g(e,/iPad/i)||!(!g(e,/Macintosh/i)||!d(e)),c=e=>g(e,/android|sink/i),d=e=>f(e,"(any-pointer:coarse)"),u=e=>h(e)||p(e),h=e=>!!(e.cordova||e.phonegap||e.PhoneGap),p=e=>{const t=e.Capacitor;return!(!t||!t.isNative)},g=(e,t)=>t.test(e.navigator.userAgent),f=(e,t)=>e.matchMedia(t).matches,m={ipad:l,iphone:e=>g(e,/iPhone/i),ios:e=>g(e,/iPhone|iPod/i)||l(e),android:c,phablet:e=>{const t=e.innerWidth,n=e.innerHeight,i=Math.min(t,n),s=Math.max(t,n);return i>390&&i<520&&s>620&&s<800},tablet:e=>{const t=e.innerWidth,n=e.innerHeight,i=Math.min(t,n),s=Math.max(t,n);return l(e)||(e=>c(e)&&!g(e,/mobile/i))(e)||i>460&&i<820&&s>780&&s<1400},cordova:h,capacitor:p,electron:e=>g(e,/electron/i),pwa:e=>!(!e.matchMedia("(display-mode: standalone)").matches&&!e.navigator.standalone),mobile:d,mobileweb:e=>d(e)&&!u(e),desktop:e=>!d(e),hybrid:u};class b{constructor(){this.m=new Map}reset(e){this.m=new Map(Object.entries(e))}get(e,t){const n=this.m.get(e);return void 0!==n?n:t}getBoolean(e,t=!1){const n=this.m.get(e);return void 0===n?t:"string"==typeof n?"true"===n:!!n}getNumber(e,t){const n=parseFloat(this.m.get(e));return isNaN(n)?void 0!==t?t:NaN:n}set(e,t){this.m.set(e,t)}}const v=new b;let y;const w=e=>e&&Object(i.i)(e)||y,_=(e={})=>{if("undefined"==typeof window)return;const t=window.document,n=window,s=n.Ionic=n.Ionic||{};r(n);const a=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(e=>{try{const t=e.sessionStorage.getItem("ionic-persist-config");return null!==t?JSON.parse(t):{}}catch(t){return{}}})(n)),{persistConfig:!1}),s.config),(e=>{const t={};return e.location.search.slice(1).split("&").map(e=>e.split("=")).map(([e,t])=>[decodeURIComponent(e),decodeURIComponent(t)]).filter(([e])=>"ionic:"===e.substr(0,"ionic:".length)).map(([e,t])=>[e.slice("ionic:".length),t]).forEach(([e,n])=>{t[e]=n}),t})(n)),e);v.reset(a),v.getBoolean("persistConfig")&&((e,t)=>{try{e.sessionStorage.setItem("ionic-persist-config",JSON.stringify(t))}catch(n){return}})(n,a),s.config=v,s.mode=y=v.get("mode",t.documentElement.getAttribute("mode")||(o(n,"ios")?"ios":"md")),v.set("mode",y),t.documentElement.setAttribute("mode",y),t.documentElement.classList.add(y),v.getBoolean("_testing")&&v.set("animated",!1);const l=e=>e.tagName&&e.tagName.startsWith("ION-"),c=e=>["ios","md"].includes(e);Object(i.p)(e=>{for(;e;){const t=e.mode||e.getAttribute("mode");if(t){if(c(t))return t;l(e)&&console.warn('Invalid ionic mode: "'+t+'", expected: "ios" or "md"')}e=e.parentElement}return y})}},Hfs6:function(e,t,n){var i,s,o;!function(r){if("object"==typeof e.exports){var a=r(0,t);void 0!==a&&(e.exports=a)}else s=[n,t],void 0===(o="function"==typeof(i=r)?i.apply(t,s):i)||(e.exports=o)}(function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=void 0;t.default=["fr",[["AM","PM"],n,n],n,[["D","L","M","M","J","V","S"],["dim.","lun.","mar.","mer.","jeu.","ven.","sam."],["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"],["di","lu","ma","me","je","ve","sa"]],n,[["J","F","M","A","M","J","J","A","S","O","N","D"],["janv.","f\xe9vr.","mars","avr.","mai","juin","juil.","ao\xfbt","sept.","oct.","nov.","d\xe9c."],["janvier","f\xe9vrier","mars","avril","mai","juin","juillet","ao\xfbt","septembre","octobre","novembre","d\xe9cembre"]],n,[["av. J.-C.","ap. J.-C."],n,["avant J\xe9sus-Christ","apr\xe8s J\xe9sus-Christ"]],1,[6,0],["dd/MM/y","d MMM y","d MMMM y","EEEE d MMMM y"],["HH:mm","HH:mm:ss","HH:mm:ss z","HH:mm:ss zzzz"],["{1} {0}","{1} '\xe0' {0}",n,n],[",","\u202f",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0\xa0%","#,##0.00\xa0\xa4","#E0"],"EUR","\u20ac","euro",{ARS:["$AR","$"],AUD:["$AU","$"],BEF:["FB"],BMD:["$BM","$"],BND:["$BN","$"],BZD:["$BZ","$"],CAD:["$CA","$"],CLP:["$CL","$"],CNY:[n,"\xa5"],COP:["$CO","$"],CYP:["\xa3CY"],EGP:[n,"\xa3E"],FJD:["$FJ","$"],FKP:["\xa3FK","\xa3"],FRF:["F"],GBP:["\xa3GB","\xa3"],GIP:["\xa3GI","\xa3"],HKD:[n,"$"],IEP:["\xa3IE"],ILP:["\xa3IL"],ITL:["\u20a4IT"],JPY:[n,"\xa5"],KMF:[n,"FC"],LBP:["\xa3LB","\xa3L"],MTP:["\xa3MT"],MXN:["$MX","$"],NAD:["$NA","$"],NIO:[n,"$C"],NZD:["$NZ","$"],RHD:["$RH"],RON:[n,"L"],RWF:[n,"FR"],SBD:["$SB","$"],SGD:["$SG","$"],SRD:["$SR","$"],TOP:[n,"$T"],TTD:["$TT","$"],TWD:[n,"NT$"],USD:["$US","$"],UYU:["$UY","$"],WST:["$WS"],XCD:[n,"$"],XPF:["FCFP"],ZMW:[n,"Kw"]},"ltr",function(e){var t=Math.floor(Math.abs(e));return 0===t||1===t?1:5}]})},MYvV:function(e,t){function n(e){return Promise.resolve().then(function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t})}n.keys=function(){return[]},n.resolve=n,e.exports=n,n.id="MYvV"},RQGG:function(e,t,n){"use strict";n.r(t),n.d(t,"mdTransitionAnimation",function(){return o});var i=n("meiF"),s=n("k4ps");n("1vRN"),n("wEJo");const o=(e,t)=>{const n="back"===t.direction,o=t.enteringEl,r=t.leavingEl,a=Object(s.g)(o),l=a.querySelector("ion-toolbar"),c=Object(i.a)();if(c.addElement(a).fill("both").beforeRemoveClass("ion-page-invisible"),n?c.duration(t.duration||200).easing("cubic-bezier(0.47,0,0.745,0.715)"):c.duration(t.duration||280).easing("cubic-bezier(0.36,0.66,0.04,1)").fromTo("transform","translateY(40px)","translateY(0px)").fromTo("opacity",.01,1),l){const e=Object(i.a)();e.addElement(l),c.addAnimation(e)}if(r&&n){c.duration(t.duration||200).easing("cubic-bezier(0.47,0,0.745,0.715)");const e=Object(i.a)();e.addElement(Object(s.g)(r)).onFinish(t=>{1===t&&e.elements.length>0&&e.elements[0].style.setProperty("display","none")}).fromTo("transform","translateY(0px)","translateY(40px)").fromTo("opacity",1,0),c.addAnimation(e)}return c}},b0Xh:function(e,t,i){var s;(function(){var i=function(e){return e instanceof i?e:this instanceof i?void(this.EXIFwrapped=e):new i(e)};e.exports&&(t=e.exports=i),t.EXIF=i;var o=i.Tags={36864:"ExifVersion",40960:"FlashpixVersion",40961:"ColorSpace",40962:"PixelXDimension",40963:"PixelYDimension",37121:"ComponentsConfiguration",37122:"CompressedBitsPerPixel",37500:"MakerNote",37510:"UserComment",40964:"RelatedSoundFile",36867:"DateTimeOriginal",36868:"DateTimeDigitized",37520:"SubsecTime",37521:"SubsecTimeOriginal",37522:"SubsecTimeDigitized",33434:"ExposureTime",33437:"FNumber",34850:"ExposureProgram",34852:"SpectralSensitivity",34855:"ISOSpeedRatings",34856:"OECF",37377:"ShutterSpeedValue",37378:"ApertureValue",37379:"BrightnessValue",37380:"ExposureBias",37381:"MaxApertureValue",37382:"SubjectDistance",37383:"MeteringMode",37384:"LightSource",37385:"Flash",37396:"SubjectArea",37386:"FocalLength",41483:"FlashEnergy",41484:"SpatialFrequencyResponse",41486:"FocalPlaneXResolution",41487:"FocalPlaneYResolution",41488:"FocalPlaneResolutionUnit",41492:"SubjectLocation",41493:"ExposureIndex",41495:"SensingMethod",41728:"FileSource",41729:"SceneType",41730:"CFAPattern",41985:"CustomRendered",41986:"ExposureMode",41987:"WhiteBalance",41988:"DigitalZoomRation",41989:"FocalLengthIn35mmFilm",41990:"SceneCaptureType",41991:"GainControl",41992:"Contrast",41993:"Saturation",41994:"Sharpness",41995:"DeviceSettingDescription",41996:"SubjectDistanceRange",40965:"InteroperabilityIFDPointer",42016:"ImageUniqueID"},r=i.TiffTags={256:"ImageWidth",257:"ImageHeight",34665:"ExifIFDPointer",34853:"GPSInfoIFDPointer",40965:"InteroperabilityIFDPointer",258:"BitsPerSample",259:"Compression",262:"PhotometricInterpretation",274:"Orientation",277:"SamplesPerPixel",284:"PlanarConfiguration",530:"YCbCrSubSampling",531:"YCbCrPositioning",282:"XResolution",283:"YResolution",296:"ResolutionUnit",273:"StripOffsets",278:"RowsPerStrip",279:"StripByteCounts",513:"JPEGInterchangeFormat",514:"JPEGInterchangeFormatLength",301:"TransferFunction",318:"WhitePoint",319:"PrimaryChromaticities",529:"YCbCrCoefficients",532:"ReferenceBlackWhite",306:"DateTime",270:"ImageDescription",271:"Make",272:"Model",305:"Software",315:"Artist",33432:"Copyright"},a=i.GPSTags={0:"GPSVersionID",1:"GPSLatitudeRef",2:"GPSLatitude",3:"GPSLongitudeRef",4:"GPSLongitude",5:"GPSAltitudeRef",6:"GPSAltitude",7:"GPSTimeStamp",8:"GPSSatellites",9:"GPSStatus",10:"GPSMeasureMode",11:"GPSDOP",12:"GPSSpeedRef",13:"GPSSpeed",14:"GPSTrackRef",15:"GPSTrack",16:"GPSImgDirectionRef",17:"GPSImgDirection",18:"GPSMapDatum",19:"GPSDestLatitudeRef",20:"GPSDestLatitude",21:"GPSDestLongitudeRef",22:"GPSDestLongitude",23:"GPSDestBearingRef",24:"GPSDestBearing",25:"GPSDestDistanceRef",26:"GPSDestDistance",27:"GPSProcessingMethod",28:"GPSAreaInformation",29:"GPSDateStamp",30:"GPSDifferential"},l=i.IFD1Tags={256:"ImageWidth",257:"ImageHeight",258:"BitsPerSample",259:"Compression",262:"PhotometricInterpretation",273:"StripOffsets",274:"Orientation",277:"SamplesPerPixel",278:"RowsPerStrip",279:"StripByteCounts",282:"XResolution",283:"YResolution",284:"PlanarConfiguration",296:"ResolutionUnit",513:"JpegIFOffset",514:"JpegIFByteCount",529:"YCbCrCoefficients",530:"YCbCrSubSampling",531:"YCbCrPositioning",532:"ReferenceBlackWhite"},c=i.StringValues={ExposureProgram:{0:"Not defined",1:"Manual",2:"Normal program",3:"Aperture priority",4:"Shutter priority",5:"Creative program",6:"Action program",7:"Portrait mode",8:"Landscape mode"},MeteringMode:{0:"Unknown",1:"Average",2:"CenterWeightedAverage",3:"Spot",4:"MultiSpot",5:"Pattern",6:"Partial",255:"Other"},LightSource:{0:"Unknown",1:"Daylight",2:"Fluorescent",3:"Tungsten (incandescent light)",4:"Flash",9:"Fine weather",10:"Cloudy weather",11:"Shade",12:"Daylight fluorescent (D 5700 - 7100K)",13:"Day white fluorescent (N 4600 - 5400K)",14:"Cool white fluorescent (W 3900 - 4500K)",15:"White fluorescent (WW 3200 - 3700K)",17:"Standard light A",18:"Standard light B",19:"Standard light C",20:"D55",21:"D65",22:"D75",23:"D50",24:"ISO studio tungsten",255:"Other"},Flash:{0:"Flash did not fire",1:"Flash fired",5:"Strobe return light not detected",7:"Strobe return light detected",9:"Flash fired, compulsory flash mode",13:"Flash fired, compulsory flash mode, return light not detected",15:"Flash fired, compulsory flash mode, return light detected",16:"Flash did not fire, compulsory flash mode",24:"Flash did not fire, auto mode",25:"Flash fired, auto mode",29:"Flash fired, auto mode, return light not detected",31:"Flash fired, auto mode, return light detected",32:"No flash function",65:"Flash fired, red-eye reduction mode",69:"Flash fired, red-eye reduction mode, return light not detected",71:"Flash fired, red-eye reduction mode, return light detected",73:"Flash fired, compulsory flash mode, red-eye reduction mode",77:"Flash fired, compulsory flash mode, red-eye reduction mode, return light not detected",79:"Flash fired, compulsory flash mode, red-eye reduction mode, return light detected",89:"Flash fired, auto mode, red-eye reduction mode",93:"Flash fired, auto mode, return light not detected, red-eye reduction mode",95:"Flash fired, auto mode, return light detected, red-eye reduction mode"},SensingMethod:{1:"Not defined",2:"One-chip color area sensor",3:"Two-chip color area sensor",4:"Three-chip color area sensor",5:"Color sequential area sensor",7:"Trilinear sensor",8:"Color sequential linear sensor"},SceneCaptureType:{0:"Standard",1:"Landscape",2:"Portrait",3:"Night scene"},SceneType:{1:"Directly photographed"},CustomRendered:{0:"Normal process",1:"Custom process"},WhiteBalance:{0:"Auto white balance",1:"Manual white balance"},GainControl:{0:"None",1:"Low gain up",2:"High gain up",3:"Low gain down",4:"High gain down"},Contrast:{0:"Normal",1:"Soft",2:"Hard"},Saturation:{0:"Normal",1:"Low saturation",2:"High saturation"},Sharpness:{0:"Normal",1:"Soft",2:"Hard"},SubjectDistanceRange:{0:"Unknown",1:"Macro",2:"Close view",3:"Distant view"},FileSource:{3:"DSC"},Components:{0:"",1:"Y",2:"Cb",3:"Cr",4:"R",5:"G",6:"B"}};function d(e){return!!e.exifdata}function u(e){var t=new DataView(e);if(255!=t.getUint8(0)||216!=t.getUint8(1))return!1;for(var n=2,i=e.byteLength;n<i;){if(255!=t.getUint8(n))return!1;if(225==t.getUint8(n+1))return b(t,n+4,t.getUint16(n+2));n+=2+t.getUint16(n+2)}}var h={120:"caption",110:"credit",25:"keywords",55:"dateCreated",80:"byline",85:"bylineTitle",122:"captionWriter",105:"headline",116:"copyright",15:"category"};function p(e,t,n){for(var i,s,o,r,a=new DataView(e),l={},c=t;c<t+n;)28===a.getUint8(c)&&2===a.getUint8(c+1)&&(r=a.getUint8(c+2))in h&&(o=a.getInt16(c+3),s=h[r],i=m(a,c+5,o),l.hasOwnProperty(s)?l[s]instanceof Array?l[s].push(i):l[s]=[l[s],i]:l[s]=i),c++;return l}function g(e,t,n,i,s){var o,r,a=e.getUint16(n,!s),l={};for(r=0;r<a;r++)l[i[e.getUint16(o=n+12*r+2,!s)]]=f(e,o,t,0,s);return l}function f(e,t,n,i,s){var o,r,a,l,c,d,u=e.getUint16(t+2,!s),h=e.getUint32(t+4,!s),p=e.getUint32(t+8,!s)+n;switch(u){case 1:case 7:if(1==h)return e.getUint8(t+8,!s);for(o=h>4?p:t+8,r=[],l=0;l<h;l++)r[l]=e.getUint8(o+l);return r;case 2:return m(e,o=h>4?p:t+8,h-1);case 3:if(1==h)return e.getUint16(t+8,!s);for(o=h>2?p:t+8,r=[],l=0;l<h;l++)r[l]=e.getUint16(o+2*l,!s);return r;case 4:if(1==h)return e.getUint32(t+8,!s);for(r=[],l=0;l<h;l++)r[l]=e.getUint32(p+4*l,!s);return r;case 5:if(1==h)return c=e.getUint32(p,!s),d=e.getUint32(p+4,!s),(a=new Number(c/d)).numerator=c,a.denominator=d,a;for(r=[],l=0;l<h;l++)c=e.getUint32(p+8*l,!s),d=e.getUint32(p+4+8*l,!s),r[l]=new Number(c/d),r[l].numerator=c,r[l].denominator=d;return r;case 9:if(1==h)return e.getInt32(t+8,!s);for(r=[],l=0;l<h;l++)r[l]=e.getInt32(p+4*l,!s);return r;case 10:if(1==h)return e.getInt32(p,!s)/e.getInt32(p+4,!s);for(r=[],l=0;l<h;l++)r[l]=e.getInt32(p+8*l,!s)/e.getInt32(p+4+8*l,!s);return r}}function m(e,t,i){var s="";for(n=t;n<t+i;n++)s+=String.fromCharCode(e.getUint8(n));return s}function b(e,t){if("Exif"!=m(e,t,4))return!1;var n,i,s,d,u,h=t+6;if(18761==e.getUint16(h))n=!1;else{if(19789!=e.getUint16(h))return!1;n=!0}if(42!=e.getUint16(h+2,!n))return!1;var p=e.getUint32(h+4,!n);if(p<8)return!1;if((i=g(e,h,h+p,r,n)).ExifIFDPointer)for(s in d=g(e,h,h+i.ExifIFDPointer,o,n)){switch(s){case"LightSource":case"Flash":case"MeteringMode":case"ExposureProgram":case"SensingMethod":case"SceneCaptureType":case"SceneType":case"CustomRendered":case"WhiteBalance":case"GainControl":case"Contrast":case"Saturation":case"Sharpness":case"SubjectDistanceRange":case"FileSource":d[s]=c[s][d[s]];break;case"ExifVersion":case"FlashpixVersion":d[s]=String.fromCharCode(d[s][0],d[s][1],d[s][2],d[s][3]);break;case"ComponentsConfiguration":d[s]=c.Components[d[s][0]]+c.Components[d[s][1]]+c.Components[d[s][2]]+c.Components[d[s][3]]}i[s]=d[s]}if(i.GPSInfoIFDPointer)for(s in u=g(e,h,h+i.GPSInfoIFDPointer,a,n)){switch(s){case"GPSVersionID":u[s]=u[s][0]+"."+u[s][1]+"."+u[s][2]+"."+u[s][3]}i[s]=u[s]}return i.thumbnail=function(e,t,n,i){var s=function(e,t,n){var i=e.getUint16(t,!n);return e.getUint32(t+2+12*i,!n)}(e,t+n,i);if(!s)return{};if(s>e.byteLength)return{};var o=g(e,t,t+s,l,i);if(o.Compression)switch(o.Compression){case 6:o.JpegIFOffset&&o.JpegIFByteCount&&(o.blob=new Blob([new Uint8Array(e.buffer,t+o.JpegIFOffset,o.JpegIFByteCount)],{type:"image/jpeg"}));break;case 1:console.log("Thumbnail image format is TIFF, which is not implemented.");break;default:console.log("Unknown thumbnail image format '%s'",o.Compression)}else 2==o.PhotometricInterpretation&&console.log("Thumbnail image format is RGB, which is not implemented.");return o}(e,h,p,n),i}function v(e){var t={};if(1==e.nodeType){if(e.attributes.length>0){t["@attributes"]={};for(var n=0;n<e.attributes.length;n++){var i=e.attributes.item(n);t["@attributes"][i.nodeName]=i.nodeValue}}}else if(3==e.nodeType)return e.nodeValue;if(e.hasChildNodes())for(var s=0;s<e.childNodes.length;s++){var o=e.childNodes.item(s),r=o.nodeName;if(null==t[r])t[r]=v(o);else{if(null==t[r].push){var a=t[r];t[r]=[],t[r].push(a)}t[r].push(v(o))}}return t}function y(e){try{var t={};if(e.children.length>0)for(var n=0;n<e.children.length;n++){var i=e.children.item(n),s=i.attributes;for(var o in s){var r=s[o],a=r.nodeName;void 0!==a&&(t[a]=r.nodeValue)}var l=i.nodeName;if(void 0===t[l])t[l]=v(i);else{if(void 0===t[l].push){var c=t[l];t[l]=[],t[l].push(c)}t[l].push(v(i))}}else t=e.textContent;return t}catch(d){console.log(d.message)}}i.enableXmp=function(){i.isXmpEnabled=!0},i.disableXmp=function(){i.isXmpEnabled=!1},i.getData=function(e,t){return!((self.Image&&e instanceof self.Image||self.HTMLImageElement&&e instanceof self.HTMLImageElement)&&!e.complete||(d(e)?t&&t.call(e):function(e,t){function n(n){var s=u(n);e.exifdata=s||{};var o=function(e){var t=new DataView(e);if(255!=t.getUint8(0)||216!=t.getUint8(1))return!1;for(var n=2,i=e.byteLength,s=function(e,t){return 56===e.getUint8(t)&&66===e.getUint8(t+1)&&73===e.getUint8(t+2)&&77===e.getUint8(t+3)&&4===e.getUint8(t+4)&&4===e.getUint8(t+5)};n<i;){if(s(t,n)){var o=t.getUint8(n+7);return o%2!=0&&(o+=1),0===o&&(o=4),p(e,n+8+o,t.getUint16(n+6+o))}n++}}(n);if(e.iptcdata=o||{},i.isXmpEnabled){var r=function(e){if("DOMParser"in self){var t=new DataView(e);if(255!=t.getUint8(0)||216!=t.getUint8(1))return!1;for(var n=2,i=e.byteLength,s=new DOMParser;n<i-4;){if("http"==m(t,n,4)){var o=n-1,r=t.getUint16(n-2)-1,a=m(t,o,r),l=a.indexOf("xmpmeta>")+8,c=(a=a.substring(a.indexOf("<x:xmpmeta"),l)).indexOf("x:xmpmeta")+10;return a=a.slice(0,c)+'xmlns:Iptc4xmpCore="http://iptc.org/std/Iptc4xmpCore/1.0/xmlns/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tiff="http://ns.adobe.com/tiff/1.0/" xmlns:plus="http://schemas.android.com/apk/lib/com.google.android.gms.plus" xmlns:ext="http://www.gettyimages.com/xsltExtension/1.0" xmlns:exif="http://ns.adobe.com/exif/1.0/" xmlns:stEvt="http://ns.adobe.com/xap/1.0/sType/ResourceEvent#" xmlns:stRef="http://ns.adobe.com/xap/1.0/sType/ResourceRef#" xmlns:crs="http://ns.adobe.com/camera-raw-settings/1.0/" xmlns:xapGImg="http://ns.adobe.com/xap/1.0/g/img/" xmlns:Iptc4xmpExt="http://iptc.org/std/Iptc4xmpExt/2008-02-29/" '+a.slice(c),y(s.parseFromString(a,"text/xml"))}n++}}}(n);e.xmpdata=r||{}}t&&t.call(e)}if(e.src)if(/^data\:/i.test(e.src))n(function(e,t){t=t||e.match(/^data\:([^\;]+)\;base64,/im)[1]||"",e=e.replace(/^data\:([^\;]+)\;base64,/gim,"");for(var n=atob(e),i=n.length,s=new ArrayBuffer(i),o=new Uint8Array(s),r=0;r<i;r++)o[r]=n.charCodeAt(r);return s}(e.src));else if(/^blob\:/i.test(e.src))(o=new FileReader).onload=function(e){n(e.target.result)},function(e,t){var n=new XMLHttpRequest;n.open("GET",e,!0),n.responseType="blob",n.onload=function(e){200!=this.status&&0!==this.status||o.readAsArrayBuffer(this.response)},n.send()}(e.src);else{var s=new XMLHttpRequest;s.onload=function(){if(200!=this.status&&0!==this.status)throw"Could not load image";n(s.response),s=null},s.open("GET",e.src,!0),s.responseType="arraybuffer",s.send(null)}else if(self.FileReader&&(e instanceof self.Blob||e instanceof self.File)){var o;(o=new FileReader).onload=function(e){n(e.target.result)},o.readAsArrayBuffer(e)}}(e,t),0))},i.getTag=function(e,t){if(d(e))return e.exifdata[t]},i.getIptcTag=function(e,t){if(d(e))return e.iptcdata[t]},i.getAllTags=function(e){if(!d(e))return{};var t,n=e.exifdata,i={};for(t in n)n.hasOwnProperty(t)&&(i[t]=n[t]);return i},i.getAllIptcTags=function(e){if(!d(e))return{};var t,n=e.iptcdata,i={};for(t in n)n.hasOwnProperty(t)&&(i[t]=n[t]);return i},i.pretty=function(e){if(!d(e))return"";var t,n=e.exifdata,i="";for(t in n)n.hasOwnProperty(t)&&(i+="object"==typeof n[t]?n[t]instanceof Number?t+" : "+n[t]+" ["+n[t].numerator+"/"+n[t].denominator+"]\r\n":t+" : ["+n[t].length+" values]\r\n":t+" : "+n[t]+"\r\n");return i},i.readFromBinaryFile=function(e){return u(e)},void 0===(s=(function(){return i}).apply(t,[]))||(e.exports=s)}).call(this)},bC4P:function(e,t,n){"use strict";n.d(t,"a",function(){return i});const i=(e,t,n,i,r)=>o(e[1],t[1],n[1],i[1],r).map(o=>s(e[0],t[0],n[0],i[0],o)),s=(e,t,n,i,s)=>s*(3*t*Math.pow(s-1,2)+s*(-3*n*s+3*n+i*s))-e*Math.pow(s-1,3),o=(e,t,n,i,s)=>r((i-=s)-3*(n-=s)+3*(t-=s)-(e-=s),3*n-6*t+3*e,3*t-3*e,e).filter(e=>e>=0&&e<=1),r=(e,t,n,i)=>{if(0===e)return((e,t,n)=>{const i=t*t-4*e*n;return i<0?[]:[(-t+Math.sqrt(i))/(2*e),(-t-Math.sqrt(i))/(2*e)]})(t,n,i);const s=(3*(n/=e)-(t/=e)*t)/3,o=(2*t*t*t-9*t*n+27*(i/=e))/27;if(0===s)return[Math.pow(-o,1/3)];if(0===o)return[Math.sqrt(-s),-Math.sqrt(-s)];const r=Math.pow(o/2,2)+Math.pow(s/3,3);if(0===r)return[Math.pow(o/2,.5)-t/3];if(r>0)return[Math.pow(-o/2+Math.sqrt(r),1/3)-Math.pow(o/2+Math.sqrt(r),1/3)-t/3];const a=Math.sqrt(Math.pow(-s/3,3)),l=Math.acos(-o/(2*Math.sqrt(Math.pow(-s/3,3)))),c=2*Math.pow(a,1/3);return[c*Math.cos(l/3)-t/3,c*Math.cos((l+2*Math.PI)/3)-t/3,c*Math.cos((l+4*Math.PI)/3)-t/3]}},iWo5:function(e,t,n){"use strict";n.r(t),n.d(t,"createGesture",function(){return l});var i=n("y08P");n.d(t,"GESTURE_CONTROLLER",function(){return i.a});const s=(e,t,n,i)=>{const s=o(e)?{capture:!!i.capture,passive:!!i.passive}:!!i.capture;let r,a;return e.__zone_symbol__addEventListener?(r="__zone_symbol__addEventListener",a="__zone_symbol__removeEventListener"):(r="addEventListener",a="removeEventListener"),e[r](t,n,s),()=>{e[a](t,n,s)}},o=e=>{if(void 0===r)try{const t=Object.defineProperty({},"passive",{get:()=>{r=!0}});e.addEventListener("optsTest",()=>{},t)}catch(t){r=!1}return!!r};let r;const a=e=>e instanceof Document?e:e.ownerDocument,l=e=>{let t=!1,n=!1,o=!0,r=!1;const l=Object.assign({disableScroll:!1,direction:"x",gesturePriority:0,passive:!0,maxAngle:40,threshold:10},e),h=l.canStart,p=l.onWillStart,g=l.onStart,f=l.onEnd,m=l.notCaptured,b=l.onMove,v=l.threshold,y=l.passive,w=l.blurOnStart,_={type:"pan",startX:0,startY:0,startTime:0,currentX:0,currentY:0,velocityX:0,velocityY:0,deltaX:0,deltaY:0,currentTime:0,event:void 0,data:void 0},x=((e,t,n)=>{const i=n*(Math.PI/180),s="x"===e,o=Math.cos(i),r=t*t;let a=0,l=0,c=!1,d=0;return{start(e,t){a=e,l=t,d=0,c=!0},detect(e,t){if(!c)return!1;const n=e-a,i=t-l,u=n*n+i*i;if(u<r)return!1;const h=Math.sqrt(u),p=(s?n:i)/h;return d=p>o?1:p<-o?-1:0,c=!1,!0},isGesture:()=>0!==d,getDirection:()=>d}})(l.direction,l.threshold,l.maxAngle),A=i.a.createGesture({name:e.gestureName,priority:e.gesturePriority,disableScroll:e.disableScroll}),C=()=>{t&&(r=!1,b&&b(_))},S=()=>!(A&&!A.capture()||(t=!0,o=!1,_.startX=_.currentX,_.startY=_.currentY,_.startTime=_.currentTime,p?p(_).then(k):k(),0)),k=()=>{w&&(()=>{if("undefined"!=typeof document){const e=document.activeElement;null!==e&&e.blur&&e.blur()}})(),g&&g(_),o=!0},P=()=>{t=!1,n=!1,r=!1,o=!0,A.release()},E=e=>{const n=t,i=o;P(),i&&(c(_,e),n?f&&f(_):m&&m(_))},D=((e,t,n,i,o)=>{let r,l,c,d,u,h,p,g=0;const f=i=>{g=Date.now()+2e3,t(i)&&(!l&&n&&(l=s(e,"touchmove",n,o)),c||(c=s(e,"touchend",b,o)),d||(d=s(e,"touchcancel",b,o)))},m=i=>{g>Date.now()||t(i)&&(!h&&n&&(h=s(a(e),"mousemove",n,o)),p||(p=s(a(e),"mouseup",v,o)))},b=e=>{y(),i&&i(e)},v=e=>{w(),i&&i(e)},y=()=>{l&&l(),c&&c(),d&&d(),l=c=d=void 0},w=()=>{h&&h(),p&&p(),h=p=void 0},_=()=>{y(),w()},x=(t=!0)=>{t?(r||(r=s(e,"touchstart",f,o)),u||(u=s(e,"mousedown",m,o))):(r&&r(),u&&u(),r=u=void 0,_())};return{enable:x,stop:_,destroy:()=>{x(!1),i=n=t=void 0}}})(l.el,e=>{const t=u(e);return!(n||!o)&&(d(e,_),_.startX=_.currentX,_.startY=_.currentY,_.startTime=_.currentTime=t,_.velocityX=_.velocityY=_.deltaX=_.deltaY=0,_.event=e,(!h||!1!==h(_))&&(A.release(),!!A.start()&&(n=!0,0===v?S():(x.start(_.startX,_.startY),!0))))},e=>{t?!r&&o&&(r=!0,c(_,e),requestAnimationFrame(C)):(c(_,e),x.detect(_.currentX,_.currentY)&&(x.isGesture()&&S()||O()))},E,{capture:!1,passive:y}),O=()=>{P(),D.stop(),m&&m(_)};return{enable(e=!0){e||(t&&E(void 0),P()),D.enable(e)},destroy(){A.destroy(),D.destroy()}}},c=(e,t)=>{if(!t)return;const n=e.currentX,i=e.currentY,s=e.currentTime;d(t,e);const o=e.currentX,r=e.currentY,a=(e.currentTime=u(t))-s;if(a>0&&a<100){const t=(r-i)/a;e.velocityX=(o-n)/a*.7+.3*e.velocityX,e.velocityY=.7*t+.3*e.velocityY}e.deltaX=o-e.startX,e.deltaY=r-e.startY,e.event=t},d=(e,t)=>{let n=0,i=0;if(e){const t=e.changedTouches;if(t&&t.length>0){const e=t[0];n=e.clientX,i=e.clientY}else void 0!==e.pageX&&(n=e.pageX,i=e.pageY)}t.currentX=n,t.currentY=i},u=e=>e.timeStamp||Date.now()},k4ps:function(e,t,n){"use strict";n.d(t,"a",function(){return o}),n.d(t,"b",function(){return r}),n.d(t,"c",function(){return a}),n.d(t,"d",function(){return l}),n.d(t,"e",function(){return c}),n.d(t,"f",function(){return C}),n.d(t,"g",function(){return P}),n.d(t,"h",function(){return x}),n.d(t,"i",function(){return S}),n.d(t,"j",function(){return d});var i=n("wEJo"),s=n("1vRN");const o="ionViewWillEnter",r="ionViewDidEnter",a="ionViewWillLeave",l="ionViewDidLeave",c="ionViewWillUnload",d=e=>new Promise((t,n)=>{Object(i.f)(()=>{u(e),h(e).then(n=>{n.animation&&n.animation.destroy(),p(e),t(n)},t=>{p(e),n(t)})})}),u=e=>{const t=e.enteringEl,n=e.leavingEl;k(t,n,e.direction),e.showGoBack?t.classList.add("can-go-back"):t.classList.remove("can-go-back"),S(t,!1),n&&S(n,!1)},h=async e=>{const t=await g(e);return t&&i.a.isBrowser?f(t,e):m(e)},p=e=>{const t=e.leavingEl;e.enteringEl.classList.remove("ion-page-invisible"),void 0!==t&&t.classList.remove("ion-page-invisible")},g=async e=>{if(e.leavingEl&&e.animated&&0!==e.duration)return e.animationBuilder?e.animationBuilder:"ios"===e.mode?(await Promise.resolve().then(n.bind(null,"lTIg"))).iosTransitionAnimation:(await Promise.resolve().then(n.bind(null,"RQGG"))).mdTransitionAnimation},f=async(e,t)=>{await b(t,!0);const n=e(t.baseEl,t);w(t.enteringEl,t.leavingEl);const i=await y(n,t);return t.progressCallback&&t.progressCallback(void 0),i&&_(t.enteringEl,t.leavingEl),{hasCompleted:i,animation:n}},m=async e=>{const t=e.enteringEl,n=e.leavingEl;return await b(e,!1),w(t,n),_(t,n),{hasCompleted:!0}},b=async(e,t)=>{const n=(void 0!==e.deepWait?e.deepWait:t)?[C(e.enteringEl),C(e.leavingEl)]:[A(e.enteringEl),A(e.leavingEl)];await Promise.all(n),await v(e.viewIsReady,e.enteringEl)},v=async(e,t)=>{e&&await e(t)},y=(e,t)=>{const n=t.progressCallback,i=new Promise(t=>{e.onFinish(e=>t(1===e))});return n?(e.progressStart(!0),n(e)):e.play(),i},w=(e,t)=>{x(t,a),x(e,o)},_=(e,t)=>{x(e,r),x(t,l)},x=(e,t)=>{if(e){const n=new CustomEvent(t,{bubbles:!1,cancelable:!1});e.dispatchEvent(n)}},A=e=>e?new Promise(t=>Object(s.c)(e,t)):Promise.resolve(),C=async e=>{const t=e;if(t){if(null!=t.componentOnReady&&null!=await t.componentOnReady())return;await Promise.all(Array.from(t.children).map(C))}},S=(e,t)=>{t?(e.setAttribute("aria-hidden","true"),e.classList.add("ion-page-hidden")):(e.hidden=!1,e.removeAttribute("aria-hidden"),e.classList.remove("ion-page-hidden"))},k=(e,t,n)=>{void 0!==e&&(e.style.zIndex="back"===n?"99":"101"),void 0!==t&&(t.style.zIndex="100")},P=e=>e.classList.contains("ion-page")?e:e.querySelector(":scope > .ion-page, :scope > ion-nav, :scope > ion-tabs")||e},kLfG:function(e,t,n){var i={"./ion-action-sheet.entry.js":["dUtr",0,12],"./ion-alert.entry.js":["Q8AI",0,13],"./ion-app_8.entry.js":["hgI1",0,14],"./ion-avatar_3.entry.js":["CfoV",0,15],"./ion-back-button.entry.js":["Nt02",0,16],"./ion-backdrop.entry.js":["Q2Bp",17],"./ion-button_2.entry.js":["0Pbj",0,18],"./ion-card_5.entry.js":["ydQj",0,19],"./ion-checkbox.entry.js":["4fMi",0,20],"./ion-chip.entry.js":["czK9",0,21],"./ion-col_3.entry.js":["/CAe",22],"./ion-datetime_3.entry.js":["WgF3",0,23],"./ion-fab_3.entry.js":["uQcF",0,24],"./ion-img.entry.js":["wHD8",25],"./ion-infinite-scroll_2.entry.js":["2lz6",26],"./ion-input.entry.js":["ercB",0,27],"./ion-item-option_3.entry.js":["MGMP",0,28],"./ion-item_8.entry.js":["9bur",0,29],"./ion-loading.entry.js":["cABk",0,30],"./ion-menu_3.entry.js":["kyFE",0,31],"./ion-modal.entry.js":["TvZU",0,32],"./ion-nav_2.entry.js":["vnES",0,33],"./ion-popover.entry.js":["qCuA",0,34],"./ion-progress-bar.entry.js":["0tOe",0,35],"./ion-radio_2.entry.js":["h11V",0,36],"./ion-range.entry.js":["XGij",0,37],"./ion-refresher_2.entry.js":["nYbb",0,38],"./ion-reorder_2.entry.js":["smMY",0,39],"./ion-ripple-effect.entry.js":["STjf",40],"./ion-route_4.entry.js":["k5eQ",0,41],"./ion-searchbar.entry.js":["OR5t",0,42],"./ion-segment_2.entry.js":["fSgp",0,43],"./ion-select_3.entry.js":["lfGF",0,44],"./ion-slide_2.entry.js":["5xYT",45],"./ion-spinner.entry.js":["nI0H",0,46],"./ion-split-pane.entry.js":["NAQR",47],"./ion-tab-bar_2.entry.js":["knkW",0,48],"./ion-tab_2.entry.js":["TpdJ",0,49],"./ion-text.entry.js":["ISmu",0,50],"./ion-textarea.entry.js":["U7LX",0,51],"./ion-toast.entry.js":["L3sA",0,52],"./ion-toggle.entry.js":["IUOf",0,53],"./ion-virtual-scroll.entry.js":["8Mb5",54]};function s(e){if(!n.o(i,e))return Promise.resolve().then(function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t});var t=i[e],s=t[0];return Promise.all(t.slice(1).map(n.e)).then(function(){return n(s)})}s.keys=function(){return Object.keys(i)},s.id="kLfG",e.exports=s},kiQV:function(e){e.exports=JSON.parse('{"name":"parapheur","version":"21.03.8","description":"Annoter ou Signer vos documents sur votre tablette","homepage":"https://labs.maarch.org/maarch/MaarchParapheur","scripts":{"dep-list":"npm list --depth=0","check-update":"ncu","upgrade":"ncu -u","lint":"eslint -c .eslintrc.js --ext .ts src/frontend","lint-fix":"eslint -c .eslintrc.js --ext .ts src/frontend/ --fix","reload-packages":"rm -Rf node_modules && rm package-lock.json && npm cache clean --force && npm i","reload-packages-prod":"rm -Rf node_modules && rm package-lock.json && npm cache clean --force && npm i --production","build":"ng build","build-watch":"ng build --watch","build-prod":"ng build --prod","build-release":"npm run build-prod && npm run reload-packages-prod"},"private":true,"keywords":[],"author":"Maarch","license":"GPL-3.0","dependencies":{"core-js":"3.6.4","tslib":"2.1.0","zone.js":"0.10.2"},"devDependencies":{"@angular-devkit/build-angular":"0.1100.7","@angular-eslint/eslint-plugin":"2.0.2","@angular/animations":"11.2.6","@angular/cdk":"11.2.5","@angular/cli":"11.2.5","@angular/common":"11.2.6","@angular/compiler":"11.2.6","@angular/compiler-cli":"11.2.6","@angular/core":"11.2.6","@angular/forms":"11.2.6","@angular/language-service":"11.2.6","@angular/material":"11.2.5","@angular/platform-browser":"11.2.6","@angular/platform-browser-dynamic":"11.2.6","@angular/router":"11.2.6","@biesbjerg/ngx-translate-extract":"6.0.3","@fortawesome/fontawesome-free":"5.15.3","@ionic/angular":"5.6.3","@ngrx/store":"9.2.1","@ngrx/store-devtools":"9.2.1","@ngx-translate/core":"12.1.2","@ngx-translate/http-loader":"4.0.0","@peculiar/fortify-webcomponents":"0.17.3","@types/hammerjs":"2.0.39","@types/jasmine":"3.6.7","@types/jasminewd2":"2.0.8","@types/jquery":"3.5.5","@types/node":"13.13.47","@typescript-eslint/eslint-plugin":"4.19.0","@typescript-eslint/eslint-plugin-tslint":"4.19.0","@typescript-eslint/parser":"4.19.0","angular2-draggable":"2.3.2","angular2-signaturepad":"3.0.4","codelyzer":"5.1.2","eslint":"7.22.0","eslint-config-prettier":"8.1.0","eslint-plugin-import":"2.22.1","exif-js":"2.3.0","hammerjs":"2.0.8","jquery":"3.6.0","ngx-cookie-service":"3.0.3","ngx-drag-scroll":"9.0.0-beta.4","ngx-extended-pdf-viewer":"5.0.1","ngx-pipes":"2.7.3","npm-check-updates":"4.1.0","prettier":"2.2.1","rxjs":"6.6.6","stylus":"0.54.7","stylus-loader":"3.0.2","tslint":"6.1.0","typescript":"4.0.5","typescript-tools":"0.3.1"},"repository":{}}')},lTIg:function(e,t,n){"use strict";n.r(t),n.d(t,"iosTransitionAnimation",function(){return u}),n.d(t,"shadow",function(){return r});var i=n("meiF"),s=n("k4ps");n("1vRN"),n("wEJo");const o=e=>document.querySelector(e+".ion-cloned-element"),r=e=>e.shadowRoot||e,a=e=>{const t="ION-TABS"===e.tagName?e:e.querySelector("ion-tabs"),n="ion-content ion-header:not(.header-collapse-condense-inactive) ion-title.title-large";if(null!=t){const e=t.querySelector("ion-tab:not(.tab-hidden), .ion-page:not(.ion-page-hidden)");return null!=e?e.querySelector(n):null}return e.querySelector(n)},l=(e,t)=>{const n="ION-TABS"===e.tagName?e:e.querySelector("ion-tabs");let i=[];if(null!=n){const e=n.querySelector("ion-tab:not(.tab-hidden), .ion-page:not(.ion-page-hidden)");null!=e&&(i=e.querySelectorAll("ion-buttons"))}else i=e.querySelectorAll("ion-buttons");for(const s of i){const e=s.closest("ion-header"),n=e&&!e.classList.contains("header-collapse-condense-inactive"),i=s.querySelector("ion-back-button"),o=s.classList.contains("buttons-collapse"),r="start"===s.slot||""===s.slot;if(null!==i&&r&&(o&&n&&t||!o))return i}return null},c=(e,t,n,s,a,l)=>{const c=t?`calc(100% - ${l.right+4}px)`:l.left-4+"px",d=t?"7px":"-7px",u=t?"-4px":"4px",h=t?"-4px":"4px",p=t?"right":"left",g=t?"left":"right",f=n?[{offset:0,opacity:1,transform:`translate3d(${u}, ${l.top-46}px, 0) scale(1)`},{offset:.6,opacity:0},{offset:1,opacity:0,transform:`translate3d(${d}, ${a.top-40}px, 0) scale(2.1)`}]:[{offset:0,opacity:0,transform:`translate3d(${d}, ${a.top-40}px, 0) scale(2.1)`},{offset:1,opacity:1,transform:`translate3d(${u}, ${l.top-46}px, 0) scale(1)`}],m=n?[{offset:0,opacity:1,transform:`translate3d(${h}, ${l.top-46}px, 0) scale(1)`},{offset:.2,opacity:0,transform:`translate3d(${h}, ${l.top-41}px, 0) scale(0.6)`},{offset:1,opacity:0,transform:`translate3d(${h}, ${l.top-41}px, 0) scale(0.6)`}]:[{offset:0,opacity:0,transform:`translate3d(${h}, ${l.top-41}px, 0) scale(0.6)`},{offset:1,opacity:1,transform:`translate3d(${h}, ${l.top-46}px, 0) scale(1)`}],b=Object(i.a)(),v=Object(i.a)(),y=o("ion-back-button"),w=r(y).querySelector(".button-text"),_=r(y).querySelector("ion-icon");y.text=s.text,y.mode=s.mode,y.icon=s.icon,y.color=s.color,y.disabled=s.disabled,y.style.setProperty("display","block"),y.style.setProperty("position","fixed"),v.addElement(_),b.addElement(w),b.beforeStyles({"transform-origin":p+" center"}).beforeAddWrite(()=>{s.style.setProperty("display","none"),y.style.setProperty(p,c)}).afterAddWrite(()=>{s.style.setProperty("display",""),y.style.setProperty("display","none"),y.style.removeProperty(p)}).keyframes(f),v.beforeStyles({"transform-origin":g+" center"}).keyframes(m),e.addAnimation([b,v])},d=(e,t,n,s,r,a)=>{const l=t?`calc(100% - ${r.right}px)`:r.left+"px",c=t?"-18px":"18px",d=t?"right":"left",u=n?[{offset:0,opacity:0,transform:`translate3d(${c}, ${a.top-4}px, 0) scale(0.49)`},{offset:.1,opacity:0},{offset:1,opacity:1,transform:`translate3d(0, ${r.top-2}px, 0) scale(1)`}]:[{offset:0,opacity:.99,transform:`translate3d(0, ${r.top-2}px, 0) scale(1)`},{offset:.6,opacity:0},{offset:1,opacity:0,transform:`translate3d(${c}, ${a.top-4}px, 0) scale(0.5)`}],h=o("ion-title"),p=Object(i.a)();h.innerText=s.innerText,h.size=s.size,h.color=s.color,p.addElement(h),p.beforeStyles({"transform-origin":d+" center",height:"46px",display:"",position:"relative",[d]:l}).beforeAddWrite(()=>{s.style.setProperty("display","none")}).afterAddWrite(()=>{s.style.setProperty("display",""),h.style.setProperty("display","none")}).keyframes(u),e.addAnimation(p)},u=(e,t)=>{try{const n="cubic-bezier(0.32,0.72,0,1)",o="opacity",u="transform",h="0%",p=.8,g="rtl"===e.ownerDocument.dir,f=g?"-99.5%":"99.5%",m=g?"33%":"-33%",b=t.enteringEl,v=t.leavingEl,y="back"===t.direction,w=b.querySelector(":scope > ion-content"),_=b.querySelectorAll(":scope > ion-header > *:not(ion-toolbar), :scope > ion-footer > *"),x=b.querySelectorAll(":scope > ion-header > ion-toolbar"),A=Object(i.a)(),C=Object(i.a)();if(A.addElement(b).duration(t.duration||540).easing(t.easing||n).fill("both").beforeRemoveClass("ion-page-invisible"),v&&e){const t=Object(i.a)();t.addElement(e),A.addAnimation(t)}if(w||0!==x.length||0!==_.length?(C.addElement(w),C.addElement(_)):C.addElement(b.querySelector(":scope > .ion-page, :scope > ion-nav, :scope > ion-tabs")),A.addAnimation(C),y?C.beforeClearStyles([o]).fromTo("transform",`translateX(${m})`,`translateX(${h})`).fromTo(o,p,1):C.beforeClearStyles([o]).fromTo("transform",`translateX(${f})`,`translateX(${h})`),w){const e=r(w).querySelector(".transition-effect");if(e){const t=e.querySelector(".transition-cover"),n=e.querySelector(".transition-shadow"),s=Object(i.a)(),r=Object(i.a)(),a=Object(i.a)();s.addElement(e).beforeStyles({opacity:"1",display:"block"}).afterStyles({opacity:"",display:""}),r.addElement(t).beforeClearStyles([o]).fromTo(o,0,.1),a.addElement(n).beforeClearStyles([o]).fromTo(o,.03,.7),s.addAnimation([r,a]),C.addAnimation([s])}}const S=b.querySelector("ion-header.header-collapse-condense"),{forward:k,backward:P}=((e,t,n,i,s)=>{const o=l(i,n),r=a(s),u=a(i),h=l(s,n),p=null!==o&&null!==r&&!n,g=null!==u&&null!==h&&n;if(p){const i=r.getBoundingClientRect(),s=o.getBoundingClientRect();d(e,t,n,r,i,s),c(e,t,n,o,i,s)}else if(g){const i=u.getBoundingClientRect(),s=h.getBoundingClientRect();d(e,t,n,u,i,s),c(e,t,n,h,i,s)}return{forward:p,backward:g}})(A,g,y,b,v);if(x.forEach(e=>{const t=Object(i.a)();t.addElement(e),A.addAnimation(t);const n=Object(i.a)();n.addElement(e.querySelector("ion-title"));const s=Object(i.a)(),a=Array.from(e.querySelectorAll("ion-buttons,[menuToggle]")),l=e.closest("ion-header"),c=l&&l.classList.contains("header-collapse-condense-inactive");let d;d=a.filter(y?e=>{const t=e.classList.contains("buttons-collapse");return t&&!c||!t}:e=>!e.classList.contains("buttons-collapse")),s.addElement(d);const u=Object(i.a)();u.addElement(e.querySelectorAll(":scope > *:not(ion-title):not(ion-buttons):not([menuToggle])"));const p=Object(i.a)();p.addElement(r(e).querySelector(".toolbar-background"));const b=Object(i.a)(),v=e.querySelector("ion-back-button");if(v&&b.addElement(v),t.addAnimation([n,s,u,p,b]),s.fromTo(o,.01,1),u.fromTo(o,.01,1),y)c||n.fromTo("transform",`translateX(${m})`,`translateX(${h})`).fromTo(o,.01,1),u.fromTo("transform",`translateX(${m})`,`translateX(${h})`),b.fromTo(o,.01,1);else if(S||n.fromTo("transform",`translateX(${f})`,`translateX(${h})`).fromTo(o,.01,1),u.fromTo("transform",`translateX(${f})`,`translateX(${h})`),p.beforeClearStyles([o,"transform"]),(null==l?void 0:l.translucent)?p.fromTo("transform",g?"translateX(-100%)":"translateX(100%)","translateX(0px)"):p.fromTo(o,.01,"var(--opacity)"),k||b.fromTo(o,.01,1),v&&!k){const e=Object(i.a)();e.addElement(r(v).querySelector(".button-text")).fromTo("transform",g?"translateX(-100px)":"translateX(100px)","translateX(0px)"),t.addAnimation(e)}}),v){const e=Object(i.a)(),t=v.querySelector(":scope > ion-content"),n=v.querySelectorAll(":scope > ion-header > ion-toolbar"),a=v.querySelectorAll(":scope > ion-header > *:not(ion-toolbar), :scope > ion-footer > *");if(t||0!==n.length||0!==a.length?(e.addElement(t),e.addElement(a)):e.addElement(v.querySelector(":scope > .ion-page, :scope > ion-nav, :scope > ion-tabs")),A.addAnimation(e),y){e.beforeClearStyles([o]).fromTo("transform",`translateX(${h})`,g?"translateX(-100%)":"translateX(100%)");const t=Object(s.g)(v);A.afterAddWrite(()=>{"normal"===A.getDirection()&&t.style.setProperty("display","none")})}else e.fromTo("transform",`translateX(${h})`,`translateX(${m})`).fromTo(o,1,p);if(t){const n=r(t).querySelector(".transition-effect");if(n){const t=n.querySelector(".transition-cover"),s=n.querySelector(".transition-shadow"),r=Object(i.a)(),a=Object(i.a)(),l=Object(i.a)();r.addElement(n).beforeStyles({opacity:"1",display:"block"}).afterStyles({opacity:"",display:""}),a.addElement(t).beforeClearStyles([o]).fromTo(o,.1,0),l.addElement(s).beforeClearStyles([o]).fromTo(o,.7,.03),r.addAnimation([a,l]),e.addAnimation([r])}}n.forEach(e=>{const t=Object(i.a)();t.addElement(e);const n=Object(i.a)();n.addElement(e.querySelector("ion-title"));const s=Object(i.a)(),a=e.querySelectorAll("ion-buttons,[menuToggle]"),l=e.closest("ion-header"),c=l&&l.classList.contains("header-collapse-condense-inactive"),d=Array.from(a).filter(e=>{const t=e.classList.contains("buttons-collapse");return t&&!c||!t});s.addElement(d);const p=Object(i.a)(),f=e.querySelectorAll(":scope > *:not(ion-title):not(ion-buttons):not([menuToggle])");f.length>0&&p.addElement(f);const b=Object(i.a)();b.addElement(r(e).querySelector(".toolbar-background"));const v=Object(i.a)(),w=e.querySelector("ion-back-button");if(w&&v.addElement(w),t.addAnimation([n,s,p,v,b]),A.addAnimation(t),v.fromTo(o,.99,0),s.fromTo(o,.99,0),p.fromTo(o,.99,0),y){if(c||n.fromTo("transform",`translateX(${h})`,g?"translateX(-100%)":"translateX(100%)").fromTo(o,.99,0),p.fromTo("transform",`translateX(${h})`,g?"translateX(-100%)":"translateX(100%)"),b.beforeClearStyles([o,"transform"]),(null==l?void 0:l.translucent)?b.fromTo("transform","translateX(0px)",g?"translateX(-100%)":"translateX(100%)"):b.fromTo(o,"var(--opacity)",0),w&&!P){const e=Object(i.a)();e.addElement(r(w).querySelector(".button-text")).fromTo("transform",`translateX(${h})`,`translateX(${(g?-124:124)+"px"})`),t.addAnimation(e)}}else c||n.fromTo("transform",`translateX(${h})`,`translateX(${m})`).fromTo(o,.99,0).afterClearStyles([u,o]),p.fromTo("transform",`translateX(${h})`,`translateX(${m})`).afterClearStyles([u,o]),v.afterClearStyles([o]),n.afterClearStyles([o]),s.afterClearStyles([o])})}return A}catch(n){throw n}}},"m9/o":function(e,t,n){"use strict";function i(e){return"function"==typeof e}n.r(t);let s=!1;const o={Promise:void 0,set useDeprecatedSynchronousErrorHandling(e){if(e){const e=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+e.stack)}else s&&console.log("RxJS: Back to a better error behavior. Thank you. <3");s=e},get useDeprecatedSynchronousErrorHandling(){return s}};function r(e){setTimeout(()=>{throw e},0)}const a={closed:!0,next(e){},error(e){if(o.useDeprecatedSynchronousErrorHandling)throw e;r(e)},complete(){}},l=(()=>Array.isArray||(e=>e&&"number"==typeof e.length))();function c(e){return null!==e&&"object"==typeof e}const d=(()=>{function e(e){return Error.call(this),this.message=e?`${e.length} errors occurred during unsubscription:\n${e.map((e,t)=>`${t+1}) ${e.toString()}`).join("\n  ")}`:"",this.name="UnsubscriptionError",this.errors=e,this}return e.prototype=Object.create(Error.prototype),e})();let u=(()=>{class e{constructor(e){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,e&&(this._ctorUnsubscribe=!0,this._unsubscribe=e)}unsubscribe(){let t;if(this.closed)return;let{_parentOrParents:n,_ctorUnsubscribe:s,_unsubscribe:o,_subscriptions:r}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof e)n.remove(this);else if(null!==n)for(let e=0;e<n.length;++e)n[e].remove(this);if(i(o)){s&&(this._unsubscribe=void 0);try{o.call(this)}catch(a){t=a instanceof d?h(a.errors):[a]}}if(l(r)){let e=-1,n=r.length;for(;++e<n;){const n=r[e];if(c(n))try{n.unsubscribe()}catch(a){t=t||[],a instanceof d?t=t.concat(h(a.errors)):t.push(a)}}}if(t)throw new d(t)}add(t){let n=t;if(!t)return e.EMPTY;switch(typeof t){case"function":n=new e(t);case"object":if(n===this||n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if(!(n instanceof e)){const t=n;n=new e,n._subscriptions=[t]}break;default:throw new Error("unrecognized teardown "+t+" added to Subscription.")}let{_parentOrParents:i}=n;if(null===i)n._parentOrParents=this;else if(i instanceof e){if(i===this)return n;n._parentOrParents=[i,this]}else{if(-1!==i.indexOf(this))return n;i.push(this)}const s=this._subscriptions;return null===s?this._subscriptions=[n]:s.push(n),n}remove(e){const t=this._subscriptions;if(t){const n=t.indexOf(e);-1!==n&&t.splice(n,1)}}}return e.EMPTY=function(e){return e.closed=!0,e}(new e),e})();function h(e){return e.reduce((e,t)=>e.concat(t instanceof d?t.errors:t),[])}const p=(()=>"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random())();class g extends u{constructor(e,t,n){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=a;break;case 1:if(!e){this.destination=a;break}if("object"==typeof e){e instanceof g?(this.syncErrorThrowable=e.syncErrorThrowable,this.destination=e,e.add(this)):(this.syncErrorThrowable=!0,this.destination=new f(this,e));break}default:this.syncErrorThrowable=!0,this.destination=new f(this,e,t,n)}}[p](){return this}static create(e,t,n){const i=new g(e,t,n);return i.syncErrorThrowable=!1,i}next(e){this.isStopped||this._next(e)}error(e){this.isStopped||(this.isStopped=!0,this._error(e))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(e){this.destination.next(e)}_error(e){this.destination.error(e),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:e}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=e,this}}class f extends g{constructor(e,t,n,s){let o;super(),this._parentSubscriber=e;let r=this;i(t)?o=t:t&&(o=t.next,n=t.error,s=t.complete,t!==a&&(r=Object.create(t),i(r.unsubscribe)&&this.add(r.unsubscribe.bind(r)),r.unsubscribe=this.unsubscribe.bind(this))),this._context=r,this._next=o,this._error=n,this._complete=s}next(e){if(!this.isStopped&&this._next){const{_parentSubscriber:t}=this;o.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?this.__tryOrSetError(t,this._next,e)&&this.unsubscribe():this.__tryOrUnsub(this._next,e)}}error(e){if(!this.isStopped){const{_parentSubscriber:t}=this,{useDeprecatedSynchronousErrorHandling:n}=o;if(this._error)n&&t.syncErrorThrowable?(this.__tryOrSetError(t,this._error,e),this.unsubscribe()):(this.__tryOrUnsub(this._error,e),this.unsubscribe());else if(t.syncErrorThrowable)n?(t.syncErrorValue=e,t.syncErrorThrown=!0):r(e),this.unsubscribe();else{if(this.unsubscribe(),n)throw e;r(e)}}}complete(){if(!this.isStopped){const{_parentSubscriber:e}=this;if(this._complete){const t=()=>this._complete.call(this._context);o.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?(this.__tryOrSetError(e,t),this.unsubscribe()):(this.__tryOrUnsub(t),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(e,t){try{e.call(this._context,t)}catch(n){if(this.unsubscribe(),o.useDeprecatedSynchronousErrorHandling)throw n;r(n)}}__tryOrSetError(e,t,n){if(!o.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{t.call(this._context,n)}catch(i){return o.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=i,e.syncErrorThrown=!0,!0):(r(i),!0)}return!1}_unsubscribe(){const{_parentSubscriber:e}=this;this._context=null,this._parentSubscriber=null,e.unsubscribe()}}const m=(()=>"function"==typeof Symbol&&Symbol.observable||"@@observable")();function b(e){return e}let v=(()=>{class e{constructor(e){this._isScalar=!1,e&&(this._subscribe=e)}lift(t){const n=new e;return n.source=this,n.operator=t,n}subscribe(e,t,n){const{operator:i}=this,s=function(e,t,n){if(e){if(e instanceof g)return e;if(e[p])return e[p]()}return e||t||n?new g(e,t,n):new g(a)}(e,t,n);if(s.add(i?i.call(s,this.source):this.source||o.useDeprecatedSynchronousErrorHandling&&!s.syncErrorThrowable?this._subscribe(s):this._trySubscribe(s)),o.useDeprecatedSynchronousErrorHandling&&s.syncErrorThrowable&&(s.syncErrorThrowable=!1,s.syncErrorThrown))throw s.syncErrorValue;return s}_trySubscribe(e){try{return this._subscribe(e)}catch(t){o.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=t),function(e){for(;e;){const{closed:t,destination:n,isStopped:i}=e;if(t||i)return!1;e=n&&n instanceof g?n:null}return!0}(e)?e.error(t):console.warn(t)}}forEach(e,t){return new(t=y(t))((t,n)=>{let i;i=this.subscribe(t=>{try{e(t)}catch(s){n(s),i&&i.unsubscribe()}},n,t)})}_subscribe(e){const{source:t}=this;return t&&t.subscribe(e)}[m](){return this}pipe(...e){return 0===e.length?this:(0===(t=e).length?b:1===t.length?t[0]:function(e){return t.reduce((e,t)=>t(e),e)})(this);var t}toPromise(e){return new(e=y(e))((e,t)=>{let n;this.subscribe(e=>n=e,e=>t(e),()=>e(n))})}}return e.create=t=>new e(t),e})();function y(e){if(e||(e=o.Promise||Promise),!e)throw new Error("no Promise impl found");return e}const w=(()=>{function e(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return e.prototype=Object.create(Error.prototype),e})();class _ extends u{constructor(e,t){super(),this.subject=e,this.subscriber=t,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const e=this.subject,t=e.observers;if(this.subject=null,!t||0===t.length||e.isStopped||e.closed)return;const n=t.indexOf(this.subscriber);-1!==n&&t.splice(n,1)}}class x extends g{constructor(e){super(e),this.destination=e}}let A=(()=>{class e extends v{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[p](){return new x(this)}lift(e){const t=new C(this,this);return t.operator=e,t}next(e){if(this.closed)throw new w;if(!this.isStopped){const{observers:t}=this,n=t.length,i=t.slice();for(let s=0;s<n;s++)i[s].next(e)}}error(e){if(this.closed)throw new w;this.hasError=!0,this.thrownError=e,this.isStopped=!0;const{observers:t}=this,n=t.length,i=t.slice();for(let s=0;s<n;s++)i[s].error(e);this.observers.length=0}complete(){if(this.closed)throw new w;this.isStopped=!0;const{observers:e}=this,t=e.length,n=e.slice();for(let i=0;i<t;i++)n[i].complete();this.observers.length=0}unsubscribe(){this.isStopped=!0,this.closed=!0,this.observers=null}_trySubscribe(e){if(this.closed)throw new w;return super._trySubscribe(e)}_subscribe(e){if(this.closed)throw new w;return this.hasError?(e.error(this.thrownError),u.EMPTY):this.isStopped?(e.complete(),u.EMPTY):(this.observers.push(e),new _(this,e))}asObservable(){const e=new v;return e.source=this,e}}return e.create=(e,t)=>new C(e,t),e})();class C extends A{constructor(e,t){super(),this.destination=e,this.source=t}next(e){const{destination:t}=this;t&&t.next&&t.next(e)}error(e){const{destination:t}=this;t&&t.error&&this.destination.error(e)}complete(){const{destination:e}=this;e&&e.complete&&this.destination.complete()}_subscribe(e){const{source:t}=this;return t?this.source.subscribe(e):u.EMPTY}}function S(e){return e&&"function"==typeof e.schedule}function k(e,t){return function(n){if("function"!=typeof e)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new P(e,t))}}class P{constructor(e,t){this.project=e,this.thisArg=t}call(e,t){return t.subscribe(new E(e,this.project,this.thisArg))}}class E extends g{constructor(e,t,n){super(e),this.project=t,this.count=0,this.thisArg=n||this}_next(e){let t;try{t=this.project.call(this.thisArg,e,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(t)}}const D=e=>t=>{for(let n=0,i=e.length;n<i&&!t.closed;n++)t.next(e[n]);t.complete()};function O(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}const M=O(),T=e=>e&&"number"==typeof e.length&&"function"!=typeof e;function I(e){return!!e&&"function"!=typeof e.subscribe&&"function"==typeof e.then}const R=e=>{if(e&&"function"==typeof e[m])return i=e,e=>{const t=i[m]();if("function"!=typeof t.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return t.subscribe(e)};if(T(e))return D(e);if(I(e))return n=e,e=>(n.then(t=>{e.closed||(e.next(t),e.complete())},t=>e.error(t)).then(null,r),e);if(e&&"function"==typeof e[M])return t=e,e=>{const n=t[M]();for(;;){let t;try{t=n.next()}catch(i){return e.error(i),e}if(t.done){e.complete();break}if(e.next(t.value),e.closed)break}return"function"==typeof n.return&&e.add(()=>{n.return&&n.return()}),e};{const t=c(e)?"an invalid object":`'${e}'`;throw new TypeError(`You provided ${t} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`)}var t,n,i};function L(e,t){return new v(n=>{const i=new u;let s=0;return i.add(t.schedule(function(){s!==e.length?(n.next(e[s++]),n.closed||i.add(this.schedule())):n.complete()})),i})}function F(e,t){return t?function(e,t){if(null!=e){if(function(e){return e&&"function"==typeof e[m]}(e))return function(e,t){return new v(n=>{const i=new u;return i.add(t.schedule(()=>{const s=e[m]();i.add(s.subscribe({next(e){i.add(t.schedule(()=>n.next(e)))},error(e){i.add(t.schedule(()=>n.error(e)))},complete(){i.add(t.schedule(()=>n.complete()))}}))})),i})}(e,t);if(I(e))return function(e,t){return new v(n=>{const i=new u;return i.add(t.schedule(()=>e.then(e=>{i.add(t.schedule(()=>{n.next(e),i.add(t.schedule(()=>n.complete()))}))},e=>{i.add(t.schedule(()=>n.error(e)))}))),i})}(e,t);if(T(e))return L(e,t);if(function(e){return e&&"function"==typeof e[M]}(e)||"string"==typeof e)return function(e,t){if(!e)throw new Error("Iterable cannot be null");return new v(n=>{const i=new u;let s;return i.add(()=>{s&&"function"==typeof s.return&&s.return()}),i.add(t.schedule(()=>{s=e[M](),i.add(t.schedule(function(){if(n.closed)return;let e,t;try{const n=s.next();e=n.value,t=n.done}catch(i){return void n.error(i)}t?n.complete():(n.next(e),this.schedule())}))})),i})}(e,t)}throw new TypeError((null!==e&&typeof e||e)+" is not observable")}(e,t):e instanceof v?e:new v(R(e))}class B extends g{constructor(e){super(),this.parent=e}_next(e){this.parent.notifyNext(e)}_error(e){this.parent.notifyError(e),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class z extends g{notifyNext(e){this.destination.next(e)}notifyError(e){this.destination.error(e)}notifyComplete(){this.destination.complete()}}function V(e,t){if(!t.closed)return e instanceof v?e.subscribe(t):R(e)(t)}function N(e,t,n=Number.POSITIVE_INFINITY){return"function"==typeof t?i=>i.pipe(N((n,i)=>F(e(n,i)).pipe(k((e,s)=>t(n,e,i,s))),n)):("number"==typeof t&&(n=t),t=>t.lift(new H(e,n)))}class H{constructor(e,t=Number.POSITIVE_INFINITY){this.project=e,this.concurrent=t}call(e,t){return t.subscribe(new j(e,this.project,this.concurrent))}}class j extends z{constructor(e,t,n=Number.POSITIVE_INFINITY){super(e),this.project=t,this.concurrent=n,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(e){this.active<this.concurrent?this._tryNext(e):this.buffer.push(e)}_tryNext(e){let t;const n=this.index++;try{t=this.project(e,n)}catch(i){return void this.destination.error(i)}this.active++,this._innerSub(t)}_innerSub(e){const t=new B(this),n=this.destination;n.add(t);const i=V(e,t);i!==t&&n.add(i)}_complete(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}notifyNext(e){this.destination.next(e)}notifyComplete(){const e=this.buffer;this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}function U(e=Number.POSITIVE_INFINITY){return N(b,e)}function W(e,t){return t?L(e,t):new v(D(e))}function G(...e){let t=Number.POSITIVE_INFINITY,n=null,i=e[e.length-1];return S(i)?(n=e.pop(),e.length>1&&"number"==typeof e[e.length-1]&&(t=e.pop())):"number"==typeof i&&(t=e.pop()),null===n&&1===e.length&&e[0]instanceof v?e[0]:U(t)(W(e,n))}function q(){return function(e){return e.lift(new Y(e))}}class Y{constructor(e){this.connectable=e}call(e,t){const{connectable:n}=this;n._refCount++;const i=new Z(e,n),s=t.subscribe(i);return i.closed||(i.connection=n.connect()),s}}class Z extends g{constructor(e,t){super(e),this.connectable=t}_unsubscribe(){const{connectable:e}=this;if(!e)return void(this.connection=null);this.connectable=null;const t=e._refCount;if(t<=0)return void(this.connection=null);if(e._refCount=t-1,t>1)return void(this.connection=null);const{connection:n}=this,i=e._connection;this.connection=null,!i||n&&i!==n||i.unsubscribe()}}class Q extends v{constructor(e,t){super(),this.source=e,this.subjectFactory=t,this._refCount=0,this._isComplete=!1}_subscribe(e){return this.getSubject().subscribe(e)}getSubject(){const e=this._subject;return e&&!e.isStopped||(this._subject=this.subjectFactory()),this._subject}connect(){let e=this._connection;return e||(this._isComplete=!1,e=this._connection=new u,e.add(this.source.subscribe(new K(this.getSubject(),this))),e.closed&&(this._connection=null,e=u.EMPTY)),e}refCount(){return q()(this)}}const X=(()=>{const e=Q.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:e._subscribe},_isComplete:{value:e._isComplete,writable:!0},getSubject:{value:e.getSubject},connect:{value:e.connect},refCount:{value:e.refCount}}})();class K extends x{constructor(e,t){super(e),this.connectable=t}_error(e){this._unsubscribe(),super._error(e)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const e=this.connectable;if(e){this.connectable=null;const t=e._connection;e._refCount=0,e._subject=null,e._connection=null,t&&t.unsubscribe()}}}function J(){return new A}function ee(){return e=>{return q()((t=J,function(e){let n;n="function"==typeof t?t:function(){return t};const i=Object.create(e,X);return i.source=e,i.subjectFactory=n,i})(e));var t}}function te(e){for(let t in e)if(e[t]===te)return t;throw Error("Could not find renamed property on target object.")}function ne(e,t){for(const n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function ie(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(ie).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return""+e.overriddenName;if(e.name)return""+e.name;const t=e.toString();if(null==t)return""+t;const n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}function se(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const oe=te({__forward_ref__:te});function re(e){return e.__forward_ref__=re,e.toString=function(){return ie(this())},e}function ae(e){return le(e)?e():e}function le(e){return"function"==typeof e&&e.hasOwnProperty(oe)&&e.__forward_ref__===re}class ce extends Error{constructor(e,t){super(function(e,t){return`${e?`NG0${e}: `:""}${t}`}(e,t)),this.code=e}}function de(e){return"string"==typeof e?e:null==e?"":String(e)}function ue(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():de(e)}function he(e,t){const n=t?" in "+t:"";throw new ce("201",`No provider for ${ue(e)} found${n}`)}function pe(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}const ge=pe;function fe(e){return{providers:e.providers||[],imports:e.imports||[]}}function me(e){return be(e,ye)||be(e,_e)}function be(e,t){return e.hasOwnProperty(t)?e[t]:null}function ve(e){return e&&(e.hasOwnProperty(we)||e.hasOwnProperty(xe))?e[we]:null}const ye=te({\u0275prov:te}),we=te({\u0275inj:te}),_e=te({ngInjectableDef:te}),xe=te({ngInjectorDef:te});var Ae=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}({});let Ce;function Se(e){const t=Ce;return Ce=e,t}function ke(e,t,n){const i=me(e);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:n&Ae.Optional?null:void 0!==t?t:void he(ie(e),"Injector")}function Pe(e){return{toString:e}.toString()}var Ee=function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e}({}),De=function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}({});const Oe="undefined"!=typeof globalThis&&globalThis,Me="undefined"!=typeof window&&window,Te="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,Ie="undefined"!=typeof global&&global,Re=Oe||Ie||Me||Te,Le={},Fe=[],Be=[],ze=te({\u0275cmp:te}),Ve=te({\u0275dir:te}),Ne=te({\u0275pipe:te}),He=te({\u0275mod:te}),je=te({\u0275loc:te}),Ue=te({\u0275fac:te}),We=te({__NG_ELEMENT_ID__:te});let Ge=0;function $e(e){return Pe(()=>{const t={},n={type:e.type,providersResolver:null,decls:e.decls,vars:e.vars,factory:null,template:e.template||null,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputs:null,outputs:null,exportAs:e.exportAs||null,onPush:e.changeDetection===Ee.OnPush,directiveDefs:null,pipeDefs:null,selectors:e.selectors||Be,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||De.Emulated,id:"c",styles:e.styles||Be,_:null,setInput:null,schemas:e.schemas||null,tView:null},i=e.directives,s=e.features,o=e.pipes;return n.id+=Ge++,n.inputs=Xe(e.inputs,t),n.outputs=Xe(e.outputs),s&&s.forEach(e=>e(n)),n.directiveDefs=i?()=>("function"==typeof i?i():i).map(qe):null,n.pipeDefs=o?()=>("function"==typeof o?o():o).map(Ye):null,n})}function qe(e){return et(e)||function(e){return e[Ve]||null}(e)}function Ye(e){return function(e){return e[Ne]||null}(e)}const Ze={};function Qe(e){const t={type:e.type,bootstrap:e.bootstrap||Be,declarations:e.declarations||Be,imports:e.imports||Be,exports:e.exports||Be,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null};return null!=e.id&&Pe(()=>{Ze[e.id]=e.type}),t}function Xe(e,t){if(null==e)return Le;const n={};for(const i in e)if(e.hasOwnProperty(i)){let s=e[i],o=s;Array.isArray(s)&&(o=s[1],s=s[0]),n[s]=i,t&&(t[s]=o)}return n}const Ke=$e;function Je(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,onDestroy:e.type.prototype.ngOnDestroy||null}}function et(e){return e[ze]||null}function tt(e,t){const n=e[He]||null;if(!n&&!0===t)throw new Error(`Type ${ie(e)} does not have '\u0275mod' property.`);return n}function nt(e){return Array.isArray(e)&&"object"==typeof e[1]}function it(e){return Array.isArray(e)&&!0===e[1]}function st(e){return 0!=(8&e.flags)}function ot(e){return 2==(2&e.flags)}function rt(e){return 1==(1&e.flags)}function at(e){return null!==e.template}function lt(e,t){return e.hasOwnProperty(Ue)?e[Ue]:null}class ct{constructor(e,t,n){this.previousValue=e,this.currentValue=t,this.firstChange=n}isFirstChange(){return this.firstChange}}function dt(){return ut}function ut(e){return e.type.prototype.ngOnChanges&&(e.setInput=pt),ht}function ht(){const e=gt(this),t=null==e?void 0:e.current;if(t){const n=e.previous;if(n===Le)e.previous=t;else for(let e in t)n[e]=t[e];e.current=null,this.ngOnChanges(t)}}function pt(e,t,n,i){const s=gt(e)||function(e,t){return e.__ngSimpleChanges__=t}(e,{previous:Le,current:null}),o=s.current||(s.current={}),r=s.previous,a=this.declaredInputs[n],l=r[a];o[a]=new ct(l&&l.currentValue,t,r===Le),e[i]=t}function gt(e){return e.__ngSimpleChanges__||null}dt.ngInherit=!0;let ft=void 0;function mt(){return void 0!==ft?ft:"undefined"!=typeof document?document:void 0}function bt(e){return!!e.listen}const vt={createRenderer:(e,t)=>mt()};function yt(e){for(;Array.isArray(e);)e=e[0];return e}function wt(e,t){return yt(t[e])}function _t(e,t){return yt(t[e.index])}function xt(e,t){return e.data[t]}function At(e,t){return e[t]}function Ct(e,t){const n=t[e];return nt(n)?n:n[0]}function St(e){const t=function(e){return e.__ngContext__||null}(e);return t?Array.isArray(t)?t:t.lView:null}function kt(e){return 4==(4&e[2])}function Pt(e){return 128==(128&e[2])}function Et(e,t){return null==t?null:e[t]}function Dt(e){e[18]=0}function Ot(e,t){e[5]+=t;let n=e,i=e[3];for(;null!==i&&(1===t&&1===n[5]||-1===t&&0===n[5]);)i[5]+=t,n=i,i=i[3]}const Mt={lFrame:nn(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function Tt(){return Mt.bindingsEnabled}function It(){return Mt.lFrame.lView}function Rt(){return Mt.lFrame.tView}function Lt(e){Mt.lFrame.contextLView=e}function Ft(){let e=Bt();for(;null!==e&&64===e.type;)e=e.parent;return e}function Bt(){return Mt.lFrame.currentTNode}function zt(e,t){const n=Mt.lFrame;n.currentTNode=e,n.isParent=t}function Vt(){return Mt.lFrame.isParent}function Nt(){Mt.lFrame.isParent=!1}function Ht(){return Mt.isInCheckNoChangesMode}function jt(e){Mt.isInCheckNoChangesMode=e}function Ut(){const e=Mt.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function Wt(){return Mt.lFrame.bindingIndex}function Gt(){return Mt.lFrame.bindingIndex++}function $t(e){const t=Mt.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function qt(e,t){const n=Mt.lFrame;n.bindingIndex=n.bindingRootIndex=e,Yt(t)}function Yt(e){Mt.lFrame.currentDirectiveIndex=e}function Zt(e){const t=Mt.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}function Qt(){return Mt.lFrame.currentQueryIndex}function Xt(e){Mt.lFrame.currentQueryIndex=e}function Kt(e){const t=e[1];return 2===t.type?t.declTNode:1===t.type?e[6]:null}function Jt(e,t,n){if(n&Ae.SkipSelf){let i=t,s=e;for(;i=i.parent,!(null!==i||n&Ae.Host||(i=Kt(s),null===i)||(s=s[15],10&i.type)););if(null===i)return!1;t=i,e=s}const i=Mt.lFrame=tn();return i.currentTNode=t,i.lView=e,!0}function en(e){const t=tn(),n=e[1];Mt.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function tn(){const e=Mt.lFrame,t=null===e?null:e.child;return null===t?nn(e):t}function nn(e){const t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return null!==e&&(e.child=t),t}function sn(){const e=Mt.lFrame;return Mt.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const on=sn;function rn(){const e=sn();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function an(){return Mt.lFrame.selectedIndex}function ln(e){Mt.lFrame.selectedIndex=e}function cn(){const e=Mt.lFrame;return xt(e.tView,e.selectedIndex)}function dn(){Mt.lFrame.currentNamespace="http://www.w3.org/2000/svg"}function un(){Mt.lFrame.currentNamespace=null}function hn(e,t){for(let n=t.directiveStart,i=t.directiveEnd;n<i;n++){const t=e.data[n].type.prototype,{ngAfterContentInit:i,ngAfterContentChecked:s,ngAfterViewInit:o,ngAfterViewChecked:r,ngOnDestroy:a}=t;i&&(e.contentHooks||(e.contentHooks=[])).push(-n,i),s&&((e.contentHooks||(e.contentHooks=[])).push(n,s),(e.contentCheckHooks||(e.contentCheckHooks=[])).push(n,s)),o&&(e.viewHooks||(e.viewHooks=[])).push(-n,o),r&&((e.viewHooks||(e.viewHooks=[])).push(n,r),(e.viewCheckHooks||(e.viewCheckHooks=[])).push(n,r)),null!=a&&(e.destroyHooks||(e.destroyHooks=[])).push(n,a)}}function pn(e,t,n){mn(e,t,3,n)}function gn(e,t,n,i){(3&e[2])===n&&mn(e,t,n,i)}function fn(e,t){let n=e[2];(3&n)===t&&(n&=2047,n+=1,e[2]=n)}function mn(e,t,n,i){const s=null!=i?i:-1,o=t.length-1;let r=0;for(let a=void 0!==i?65535&e[18]:0;a<o;a++)if("number"==typeof t[a+1]){if(r=t[a],null!=i&&r>=i)break}else t[a]<0&&(e[18]+=65536),(r<s||-1==s)&&(bn(e,n,t,a),e[18]=(4294901760&e[18])+a+2),a++}function bn(e,t,n,i){const s=n[i]<0,o=n[i+1],r=e[s?-n[i]:n[i]];s?e[2]>>11<e[18]>>16&&(3&e[2])===t&&(e[2]+=2048,o.call(r)):o.call(r)}class vn{constructor(e,t,n){this.factory=e,this.resolving=!1,this.canSeeViewProviders=t,this.injectImpl=n}}function yn(e,t,n){const i=bt(e);let s=0;for(;s<n.length;){const o=n[s];if("number"==typeof o){if(0!==o)break;s++;const r=n[s++],a=n[s++],l=n[s++];i?e.setAttribute(t,a,l,r):t.setAttributeNS(r,a,l)}else{const r=o,a=n[++s];_n(r)?i&&e.setProperty(t,r,a):i?e.setAttribute(t,r,a):t.setAttribute(r,a),s++}}return s}function wn(e){return 3===e||4===e||6===e}function _n(e){return 64===e.charCodeAt(0)}function xn(e,t){if(null===t||0===t.length);else if(null===e||0===e.length)e=t.slice();else{let n=-1;for(let i=0;i<t.length;i++){const s=t[i];"number"==typeof s?n=s:0===n||An(e,n,s,null,-1===n||2===n?t[++i]:null)}}return e}function An(e,t,n,i,s){let o=0,r=e.length;if(-1===t)r=-1;else for(;o<e.length;){const n=e[o++];if("number"==typeof n){if(n===t){r=-1;break}if(n>t){r=o-1;break}}}for(;o<e.length;){const t=e[o];if("number"==typeof t)break;if(t===n){if(null===i)return void(null!==s&&(e[o+1]=s));if(i===e[o+1])return void(e[o+2]=s)}o++,null!==i&&o++,null!==s&&o++}-1!==r&&(e.splice(r,0,t),o=r+1),e.splice(o++,0,n),null!==i&&e.splice(o++,0,i),null!==s&&e.splice(o++,0,s)}function Cn(e){return-1!==e}function Sn(e){return 32767&e}function kn(e,t){let n=e>>16,i=t;for(;n>0;)i=i[15],n--;return i}let Pn=!0;function En(e){const t=Pn;return Pn=e,t}let Dn=0;function On(e,t){const n=Tn(e,t);if(-1!==n)return n;const i=t[1];i.firstCreatePass&&(e.injectorIndex=t.length,Mn(i.data,e),Mn(t,null),Mn(i.blueprint,null));const s=In(e,t),o=e.injectorIndex;if(Cn(s)){const e=Sn(s),n=kn(s,t),i=n[1].data;for(let s=0;s<8;s++)t[o+s]=n[e+s]|i[e+s]}return t[o+8]=s,o}function Mn(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Tn(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function In(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let n=0,i=null,s=t;for(;null!==s;){const e=s[1],t=e.type;if(i=2===t?e.declTNode:1===t?s[6]:null,null===i)return-1;if(n++,s=s[15],-1!==i.injectorIndex)return i.injectorIndex|n<<16}return-1}function Rn(e,t,n){!function(e,t,n){let i;"string"==typeof n?i=n.charCodeAt(0)||0:n.hasOwnProperty(We)&&(i=n[We]),null==i&&(i=n[We]=Dn++);const s=255&i;t.data[e+(s>>5)]|=1<<s}(e,t,n)}function Ln(e,t,n){if(n&Ae.Optional)return e;he(t,"NodeInjector")}function Fn(e,t,n,i){if(n&Ae.Optional&&void 0===i&&(i=null),0==(n&(Ae.Self|Ae.Host))){const s=e[9],o=Se(void 0);try{return s?s.get(t,i,n&Ae.Optional):ke(t,i,n&Ae.Optional)}finally{Se(o)}}return Ln(i,t,n)}function Bn(e,t,n,i=Ae.Default,s){if(null!==e){const o=function(e){if("string"==typeof e)return e.charCodeAt(0)||0;const t=e.hasOwnProperty(We)?e[We]:void 0;return"number"==typeof t?t>=0?255&t:Vn:t}(n);if("function"==typeof o){if(!Jt(t,e,i))return i&Ae.Host?Ln(s,n,i):Fn(t,n,i,s);try{const e=o();if(null!=e||i&Ae.Optional)return e;he(n)}finally{on()}}else if("number"==typeof o){let s=null,r=Tn(e,t),a=-1,l=i&Ae.Host?t[16][6]:null;for((-1===r||i&Ae.SkipSelf)&&(a=-1===r?In(e,t):t[r+8],-1!==a&&Wn(i,!1)?(s=t[1],r=Sn(a),t=kn(a,t)):r=-1);-1!==r;){const e=t[1];if(Un(o,r,e.data)){const e=Nn(r,t,n,s,i,l);if(e!==zn)return e}a=t[r+8],-1!==a&&Wn(i,t[1].data[r+8]===l)&&Un(o,r,t)?(s=e,r=Sn(a),t=kn(a,t)):r=-1}}}return Fn(t,n,i,s)}const zn={};function Vn(){return new Gn(Ft(),It())}function Nn(e,t,n,i,s,o){const r=t[1],a=r.data[e+8],l=Hn(a,r,n,null==i?ot(a)&&Pn:i!=r&&0!=(3&a.type),s&Ae.Host&&o===a);return null!==l?jn(t,r,l,a):zn}function Hn(e,t,n,i,s){const o=e.providerIndexes,r=t.data,a=1048575&o,l=e.directiveStart,c=o>>20,d=s?a+c:e.directiveEnd;for(let u=i?a:a+c;u<d;u++){const e=r[u];if(u<l&&n===e||u>=l&&e.type===n)return u}if(s){const e=r[l];if(e&&at(e)&&e.type===n)return l}return null}function jn(e,t,n,i){let s=e[n];const o=t.data;if(s instanceof vn){const r=s;r.resolving&&function(e,t){throw new ce("200","Circular dependency in DI detected for "+e)}(ue(o[n]));const a=En(r.canSeeViewProviders);r.resolving=!0;const l=r.injectImpl?Se(r.injectImpl):null;Jt(e,i,Ae.Default);try{s=e[n]=r.factory(void 0,o,e,i),t.firstCreatePass&&n>=i.directiveStart&&function(e,t,n){const{ngOnChanges:i,ngOnInit:s,ngDoCheck:o}=t.type.prototype;if(i){const i=ut(t);(n.preOrderHooks||(n.preOrderHooks=[])).push(e,i),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,i)}s&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-e,s),o&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e,o),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,o))}(n,o[n],t)}finally{null!==l&&Se(l),En(a),r.resolving=!1,on()}}return s}function Un(e,t,n){return!!(n[t+(e>>5)]&1<<e)}function Wn(e,t){return!(e&Ae.Self||e&Ae.Host&&t)}class Gn{constructor(e,t){this._tNode=e,this._lView=t}get(e,t){return Bn(this._tNode,this._lView,e,void 0,t)}}function $n(e){return Pe(()=>{const t=e.prototype.constructor,n=t[Ue]||qn(t),i=Object.prototype;let s=Object.getPrototypeOf(e.prototype).constructor;for(;s&&s!==i;){const e=s[Ue]||qn(s);if(e&&e!==n)return e;s=Object.getPrototypeOf(s)}return e=>new e})}function qn(e){return le(e)?()=>{const t=qn(ae(e));return t&&t()}:lt(e)}function Yn(e){return function(e,t){if("class"===t)return e.classes;if("style"===t)return e.styles;const n=e.attrs;if(n){const e=n.length;let i=0;for(;i<e;){const s=n[i];if(wn(s))break;if(0===s)i+=2;else if("number"==typeof s)for(i++;i<e&&"string"==typeof n[i];)i++;else{if(s===t)return n[i+1];i+=2}}}return null}(Ft(),e)}function Zn(e,t,n){return Pe(()=>{const i=function(e){return function(...t){if(e){const n=e(...t);for(const e in n)this[e]=n[e]}}}(t);function s(...e){if(this instanceof s)return i.apply(this,e),this;const t=new s(...e);return n.annotation=t,n;function n(e,n,i){const s=e.hasOwnProperty("__parameters__")?e.__parameters__:Object.defineProperty(e,"__parameters__",{value:[]}).__parameters__;for(;s.length<=i;)s.push(null);return(s[i]=s[i]||[]).push(t),e}}return n&&(s.prototype=Object.create(n.prototype)),s.prototype.ngMetadataName=e,s.annotationCls=s,s})}const Qn=function(){return Zn("Attribute",e=>({attributeName:e,__NG_ELEMENT_ID__:()=>Yn(e)}))}();class Xn{constructor(e,t){this._desc=e,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof t?this.__NG_ELEMENT_ID__=t:void 0!==t&&(this.\u0275prov=pe({token:this,providedIn:t.providedIn||"root",factory:t.factory}))}toString(){return"InjectionToken "+this._desc}}const Kn=new Xn("AnalyzeForEntryComponents"),Jn=Function;function ei(e,t){void 0===t&&(t=e);for(let n=0;n<e.length;n++){let i=e[n];Array.isArray(i)?(t===e&&(t=e.slice(0,n)),ei(i,t)):t!==e&&t.push(i)}return t}function ti(e,t){e.forEach(e=>Array.isArray(e)?ti(e,t):t(e))}function ni(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function ii(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function si(e,t){const n=[];for(let i=0;i<e;i++)n.push(t);return n}function oi(e,t,n){let i=ai(e,t);return i>=0?e[1|i]=n:(i=~i,function(e,t,n,i){let s=e.length;if(s==t)e.push(n,i);else if(1===s)e.push(i,e[0]),e[0]=n;else{for(s--,e.push(e[s-1],e[s]);s>t;)e[s]=e[s-2],s--;e[t]=n,e[t+1]=i}}(e,i,t,n)),i}function ri(e,t){const n=ai(e,t);if(n>=0)return e[1|n]}function ai(e,t){return function(e,t,n){let i=0,s=e.length>>1;for(;s!==i;){const n=i+(s-i>>1),o=e[n<<1];if(t===o)return n<<1;o>t?s=n:i=n+1}return~(s<<1)}(e,t)}const li={},ci=/\n/gm,di=te({provide:String,useValue:te});let ui=void 0;function hi(e){const t=ui;return ui=e,t}function pi(e,t=Ae.Default){if(void 0===ui)throw new Error("inject() must be called from an injection context");return null===ui?ke(e,void 0,t):ui.get(e,t&Ae.Optional?null:void 0,t)}function gi(e,t=Ae.Default){return(Ce||pi)(ae(e),t)}const fi=gi;function mi(e){const t=[];for(let n=0;n<e.length;n++){const i=ae(e[n]);if(Array.isArray(i)){if(0===i.length)throw new Error("Arguments array must have arguments.");let e=void 0,n=Ae.Default;for(let t=0;t<i.length;t++){const s=i[t],o=s.__NG_DI_FLAG__;"number"==typeof o?-1===o?e=s.token:n|=o:e=s}t.push(gi(e,n))}else t.push(gi(i))}return t}function bi(e,t){return e.__NG_DI_FLAG__=t,e.prototype.__NG_DI_FLAG__=t,e}const vi=bi(Zn("Inject",e=>({token:e})),-1),yi=bi(Zn("Optional"),8),wi=bi(Zn("SkipSelf"),4);let _i,xi;function Ai(e){var t;return(null===(t=function(){if(void 0===_i&&(_i=null,Re.trustedTypes))try{_i=Re.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch(t){}return _i}())||void 0===t?void 0:t.createHTML(e))||e}function Ci(e){var t;return(null===(t=function(){if(void 0===xi&&(xi=null,Re.trustedTypes))try{xi=Re.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch(t){}return xi}())||void 0===t?void 0:t.createHTML(e))||e}class Si{constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return"SafeValue must use [property]=binding: "+this.changingThisBreaksApplicationSecurity+" (see https://g.co/ng/security#xss)"}}class ki extends Si{getTypeName(){return"HTML"}}class Pi extends Si{getTypeName(){return"Style"}}class Ei extends Si{getTypeName(){return"Script"}}class Di extends Si{getTypeName(){return"URL"}}class Oi extends Si{getTypeName(){return"ResourceURL"}}function Mi(e){return e instanceof Si?e.changingThisBreaksApplicationSecurity:e}function Ti(e,t){const n=Ii(e);if(null!=n&&n!==t){if("ResourceURL"===n&&"URL"===t)return!0;throw new Error(`Required a safe ${t}, got a ${n} (see https://g.co/ng/security#xss)`)}return n===t}function Ii(e){return e instanceof Si&&e.getTypeName()||null}class Ri{constructor(e){this.inertDocumentHelper=e}getInertBodyElement(e){e="<body><remove></remove>"+e;try{const t=(new window.DOMParser).parseFromString(Ai(e),"text/html").body;return null===t?this.inertDocumentHelper.getInertBodyElement(e):(t.removeChild(t.firstChild),t)}catch(t){return null}}}class Li{constructor(e){if(this.defaultDoc=e,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const e=this.inertDocument.createElement("html");this.inertDocument.appendChild(e);const t=this.inertDocument.createElement("body");e.appendChild(t)}}getInertBodyElement(e){const t=this.inertDocument.createElement("template");if("content"in t)return t.innerHTML=Ai(e),t;const n=this.inertDocument.createElement("body");return n.innerHTML=Ai(e),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(n),n}stripCustomNsAttrs(e){const t=e.attributes;for(let i=t.length-1;0<i;i--){const n=t.item(i).name;"xmlns:ns1"!==n&&0!==n.indexOf("ns1:")||e.removeAttribute(n)}let n=e.firstChild;for(;n;)n.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(n),n=n.nextSibling}}const Fi=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi,Bi=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i;function zi(e){return(e=String(e)).match(Fi)||e.match(Bi)?e:"unsafe:"+e}function Vi(e){const t={};for(const n of e.split(","))t[n]=!0;return t}function Ni(...e){const t={};for(const n of e)for(const e in n)n.hasOwnProperty(e)&&(t[e]=!0);return t}const Hi=Vi("area,br,col,hr,img,wbr"),ji=Vi("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Ui=Vi("rp,rt"),Wi=Ni(Ui,ji),Gi=Ni(Hi,Ni(ji,Vi("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),Ni(Ui,Vi("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),Wi),$i=Vi("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),qi=Vi("srcset"),Yi=Ni($i,qi,Vi("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),Vi("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),Zi=Vi("script,style,template");class Qi{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(e){let t=e.firstChild,n=!0;for(;t;)if(t.nodeType===Node.ELEMENT_NODE?n=this.startElement(t):t.nodeType===Node.TEXT_NODE?this.chars(t.nodeValue):this.sanitizedSomething=!0,n&&t.firstChild)t=t.firstChild;else for(;t;){t.nodeType===Node.ELEMENT_NODE&&this.endElement(t);let e=this.checkClobberedElement(t,t.nextSibling);if(e){t=e;break}t=this.checkClobberedElement(t,t.parentNode)}return this.buf.join("")}startElement(e){const t=e.nodeName.toLowerCase();if(!Gi.hasOwnProperty(t))return this.sanitizedSomething=!0,!Zi.hasOwnProperty(t);this.buf.push("<"),this.buf.push(t);const n=e.attributes;for(let s=0;s<n.length;s++){const e=n.item(s),t=e.name,o=t.toLowerCase();if(!Yi.hasOwnProperty(o)){this.sanitizedSomething=!0;continue}let r=e.value;$i[o]&&(r=zi(r)),qi[o]&&(i=r,r=(i=String(i)).split(",").map(e=>zi(e.trim())).join(", ")),this.buf.push(" ",t,'="',Ji(r),'"')}var i;return this.buf.push(">"),!0}endElement(e){const t=e.nodeName.toLowerCase();Gi.hasOwnProperty(t)&&!Hi.hasOwnProperty(t)&&(this.buf.push("</"),this.buf.push(t),this.buf.push(">"))}chars(e){this.buf.push(Ji(e))}checkClobberedElement(e,t){if(t&&(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error("Failed to sanitize html because the element is clobbered: "+e.outerHTML);return t}}const Xi=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Ki=/([^\#-~ |!])/g;function Ji(e){return e.replace(/&/g,"&amp;").replace(Xi,function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"}).replace(Ki,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}let es;function ts(e,t){let n=null;try{es=es||function(e){const t=new Li(e);return function(){try{return!!(new window.DOMParser).parseFromString(Ai(""),"text/html")}catch(e){return!1}}()?new Ri(t):t}(e);let i=t?String(t):"";n=es.getInertBodyElement(i);let s=5,o=i;do{if(0===s)throw new Error("Failed to sanitize html because the input is unstable");s--,i=o,o=n.innerHTML,n=es.getInertBodyElement(i)}while(i!==o);return Ai((new Qi).sanitizeChildren(ns(n)||n))}finally{if(n){const e=ns(n)||n;for(;e.firstChild;)e.removeChild(e.firstChild)}}}function ns(e){return"content"in e&&function(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var is=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}({});function ss(e){const t=rs();return t?Ci(t.sanitize(is.HTML,e)||""):Ti(e,"HTML")?Ci(Mi(e)):ts(mt(),de(e))}function os(e){const t=rs();return t?t.sanitize(is.URL,e)||"":Ti(e,"URL")?Mi(e):zi(de(e))}function rs(){const e=It();return e&&e[12]}function as(e){return e.ngDebugContext}function ls(e){return e.ngOriginalError}function cs(e,...t){e.error(...t)}class ds{constructor(){this._console=console}handleError(e){const t=this._findOriginalError(e),n=this._findContext(e),i=function(e){return e.ngErrorLogger||cs}(e);i(this._console,"ERROR",e),t&&i(this._console,"ORIGINAL ERROR",t),n&&i(this._console,"ERROR CONTEXT",n)}_findContext(e){return e?as(e)?as(e):this._findContext(ls(e)):null}_findOriginalError(e){let t=ls(e);for(;t&&ls(t);)t=ls(t);return t}}function us(e,t){e.__ngContext__=t}const hs=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(Re))();function ps(e){return{name:"window",target:e.ownerDocument.defaultView}}function gs(e){return{name:"body",target:e.ownerDocument.body}}function fs(e){return e instanceof Function?e():e}var ms=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}({});function bs(e,t){return(void 0)(e,t)}function vs(e){const t=e[3];return it(t)?t[3]:t}function ys(e){return _s(e[13])}function ws(e){return _s(e[4])}function _s(e){for(;null!==e&&!it(e);)e=e[4];return e}function xs(e,t,n,i,s){if(null!=i){let o,r=!1;it(i)?o=i:nt(i)&&(r=!0,i=i[0]);const a=yt(i);0===e&&null!==n?null==s?Os(t,n,a):Ds(t,n,a,s||null,!0):1===e&&null!==n?Ds(t,n,a,s||null,!0):2===e?function(e,t,n){const i=Ts(e,t);i&&function(e,t,n,i){bt(e)?e.removeChild(t,n,i):t.removeChild(n)}(e,i,t,n)}(t,a,r):3===e&&t.destroyNode(a),null!=o&&function(e,t,n,i,s){const o=n[7];o!==yt(n)&&xs(t,e,i,o,s);for(let r=10;r<n.length;r++){const s=n[r];Ns(s[1],s,e,t,i,o)}}(t,e,o,n,s)}}function As(e,t,n){return bt(e)?e.createElement(t,n):null===n?e.createElement(t):e.createElementNS(n,t)}function Cs(e,t){const n=e[9],i=n.indexOf(t),s=t[3];1024&t[2]&&(t[2]&=-1025,Ot(s,-1)),n.splice(i,1)}function Ss(e,t){if(e.length<=10)return;const n=10+t,i=e[n];if(i){const o=i[17];null!==o&&o!==e&&Cs(o,i),t>0&&(e[n-1][4]=i[4]);const r=ii(e,10+t);Ns(i[1],s=i,s[11],2,null,null),s[0]=null,s[6]=null;const a=r[19];null!==a&&a.detachView(r[1]),i[3]=null,i[4]=null,i[2]&=-129}var s;return i}function ks(e,t){if(!(256&t[2])){const n=t[11];bt(n)&&n.destroyNode&&Ns(e,t,n,3,null,null),function(e){let t=e[13];if(!t)return Ps(e[1],e);for(;t;){let n=null;if(nt(t))n=t[13];else{const e=t[10];e&&(n=e)}if(!n){for(;t&&!t[4]&&t!==e;)nt(t)&&Ps(t[1],t),t=t[3];null===t&&(t=e),nt(t)&&Ps(t[1],t),n=t&&t[4]}t=n}}(t)}}function Ps(e,t){if(!(256&t[2])){t[2]&=-129,t[2]|=256,function(e,t){let n;if(null!=e&&null!=(n=e.destroyHooks))for(let i=0;i<n.length;i+=2){const e=t[n[i]];if(!(e instanceof vn)){const t=n[i+1];if(Array.isArray(t))for(let n=0;n<t.length;n+=2)t[n+1].call(e[t[n]]);else t.call(e)}}}(e,t),function(e,t){const n=e.cleanup,i=t[7];let s=-1;if(null!==n)for(let o=0;o<n.length-1;o+=2)if("string"==typeof n[o]){const e=n[o+1],r="function"==typeof e?e(t):yt(t[e]),a=i[s=n[o+2]],l=n[o+3];"boolean"==typeof l?r.removeEventListener(n[o],a,l):l>=0?i[s=l]():i[s=-l].unsubscribe(),o+=2}else{const e=i[s=n[o+1]];n[o].call(e)}if(null!==i){for(let e=s+1;e<i.length;e++)(0,i[e])();t[7]=null}}(e,t),1===t[1].type&&bt(t[11])&&t[11].destroy();const n=t[17];if(null!==n&&it(t[3])){n!==t[3]&&Cs(n,t);const i=t[19];null!==i&&i.detachView(e)}}}function Es(e,t,n){return function(e,t,n){let i=t;for(;null!==i&&40&i.type;)i=(t=i).parent;if(null===i)return n[0];if(2&i.flags){const t=e.data[i.directiveStart].encapsulation;if(t===De.None||t===De.Emulated)return null}return _t(i,n)}(e,t.parent,n)}function Ds(e,t,n,i,s){bt(e)?e.insertBefore(t,n,i,s):t.insertBefore(n,i,s)}function Os(e,t,n){bt(e)?e.appendChild(t,n):t.appendChild(n)}function Ms(e,t,n,i,s){null!==i?Ds(e,t,n,i,s):Os(e,t,n)}function Ts(e,t){return bt(e)?e.parentNode(t):t.parentNode}function Is(e,t,n){return Rs(e,t,n)}let Rs=function(e,t,n){return 40&e.type?_t(e,n):null};function Ls(e,t,n,i){const s=Es(e,i,t),o=t[11],r=Is(i.parent||t[6],i,t);if(null!=s)if(Array.isArray(n))for(let a=0;a<n.length;a++)Ms(o,s,n[a],r,!1);else Ms(o,s,n,r,!1)}function Fs(e,t){if(null!==t){const n=t.type;if(3&n)return _t(t,e);if(4&n)return zs(-1,e[t.index]);if(8&n){const n=t.child;if(null!==n)return Fs(e,n);{const n=e[t.index];return it(n)?zs(-1,n):yt(n)}}if(32&n)return bs(t,e)()||yt(e[t.index]);{const n=Bs(e,t);return null!==n?Array.isArray(n)?n[0]:Fs(vs(e[16]),n):Fs(e,t.next)}}return null}function Bs(e,t){return null!==t?e[16][6].projection[t.projection]:null}function zs(e,t){const n=10+e+1;if(n<t.length){const e=t[n],i=e[1].firstChild;if(null!==i)return Fs(e,i)}return t[7]}function Vs(e,t,n,i,s,o,r){for(;null!=n;){const a=i[n.index],l=n.type;if(r&&0===t&&(a&&us(yt(a),i),n.flags|=4),64!=(64&n.flags))if(8&l)Vs(e,t,n.child,i,s,o,!1),xs(t,e,s,a,o);else if(32&l){const r=bs(n,i);let l;for(;l=r();)xs(t,e,s,l,o);xs(t,e,s,a,o)}else 16&l?Hs(e,t,i,n,s,o):xs(t,e,s,a,o);n=r?n.projectionNext:n.next}}function Ns(e,t,n,i,s,o){Vs(n,i,e.firstChild,t,s,o,!1)}function Hs(e,t,n,i,s,o){const r=n[16],a=r[6].projection[i.projection];if(Array.isArray(a))for(let l=0;l<a.length;l++)xs(t,e,s,a[l],o);else Vs(e,t,a,r[3],s,o,!0)}function js(e,t,n){bt(e)?e.setAttribute(t,"style",n):t.style.cssText=n}function Us(e,t,n){bt(e)?""===n?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n):t.className=n}function Ws(e,t,n){let i=e.length;for(;;){const s=e.indexOf(t,n);if(-1===s)return s;if(0===s||e.charCodeAt(s-1)<=32){const n=t.length;if(s+n===i||e.charCodeAt(s+n)<=32)return s}n=s+1}}function Gs(e,t,n){let i=0;for(;i<e.length;){let s=e[i++];if(n&&"class"===s){if(s=e[i],-1!==Ws(s.toLowerCase(),t,0))return!0}else if(1===s){for(;i<e.length&&"string"==typeof(s=e[i++]);)if(s.toLowerCase()===t)return!0;return!1}}return!1}function $s(e){return 4===e.type&&"ng-template"!==e.value}function qs(e,t,n){return t===(4!==e.type||n?e.value:"ng-template")}function Ys(e,t,n){let i=4;const s=e.attrs||[],o=function(e){for(let t=0;t<e.length;t++)if(wn(e[t]))return t;return e.length}(s);let r=!1;for(let a=0;a<t.length;a++){const l=t[a];if("number"!=typeof l){if(!r)if(4&i){if(i=2|1&i,""!==l&&!qs(e,l,n)||""===l&&1===t.length){if(Zs(i))return!1;r=!0}}else{const c=8&i?l:t[++a];if(8&i&&null!==e.attrs){if(!Gs(e.attrs,c,n)){if(Zs(i))return!1;r=!0}continue}const d=Qs(8&i?"class":l,s,$s(e),n);if(-1===d){if(Zs(i))return!1;r=!0;continue}if(""!==c){let e;e=d>o?"":s[d+1].toLowerCase();const t=8&i?e:null;if(t&&-1!==Ws(t,c,0)||2&i&&c!==e){if(Zs(i))return!1;r=!0}}}}else{if(!r&&!Zs(i)&&!Zs(l))return!1;if(r&&Zs(l))continue;r=!1,i=l|1&i}}return Zs(i)||r}function Zs(e){return 0==(1&e)}function Qs(e,t,n,i){if(null===t)return-1;let s=0;if(i||!n){let n=!1;for(;s<t.length;){const i=t[s];if(i===e)return s;if(3===i||6===i)n=!0;else{if(1===i||2===i){let e=t[++s];for(;"string"==typeof e;)e=t[++s];continue}if(4===i)break;if(0===i){s+=4;continue}}s+=n?1:2}return-1}return function(e,t){let n=e.indexOf(4);if(n>-1)for(n++;n<e.length;){const i=e[n];if("number"==typeof i)return-1;if(i===t)return n;n++}return-1}(t,e)}function Xs(e,t,n=!1){for(let i=0;i<t.length;i++)if(Ys(e,t[i],n))return!0;return!1}function Ks(e,t){e:for(let n=0;n<t.length;n++){const i=t[n];if(e.length===i.length){for(let t=0;t<e.length;t++)if(e[t]!==i[t])continue e;return!0}}return!1}function Js(e,t){return e?":not("+t.trim()+")":t}function eo(e){let t=e[0],n=1,i=2,s="",o=!1;for(;n<e.length;){let r=e[n];if("string"==typeof r)if(2&i){const t=e[++n];s+="["+r+(t.length>0?'="'+t+'"':"")+"]"}else 8&i?s+="."+r:4&i&&(s+=" "+r);else""===s||Zs(r)||(t+=Js(o,s),s=""),i=r,o=o||!Zs(i);n++}return""!==s&&(t+=Js(o,s)),t}const to={};function no(e){io(Rt(),It(),an()+e,Ht())}function io(e,t,n,i){if(!i)if(3==(3&t[2])){const i=e.preOrderCheckHooks;null!==i&&pn(t,i,n)}else{const i=e.preOrderHooks;null!==i&&gn(t,i,0,n)}ln(n)}function so(e,t){return e<<17|t<<2}function oo(e){return e>>17&32767}function ro(e){return 2|e}function ao(e){return(131068&e)>>2}function lo(e,t){return-131069&e|t<<2}function co(e){return 1|e}function uo(e,t){const n=e.contentQueries;if(null!==n)for(let i=0;i<n.length;i+=2){const s=n[i],o=n[i+1];if(-1!==o){const n=e.data[o];Xt(s),n.contentQueries(2,t[o],o)}}}function ho(e,t,n,i,s,o,r,a,l,c){const d=t.blueprint.slice();return d[0]=s,d[2]=140|i,Dt(d),d[3]=d[15]=e,d[8]=n,d[10]=r||e&&e[10],d[11]=a||e&&e[11],d[12]=l||e&&e[12]||null,d[9]=c||e&&e[9]||null,d[6]=o,d[16]=2==t.type?e[16]:d,d}function po(e,t,n,i,s){let o=e.data[t];if(null===o)o=function(e,t,n,i,s){const o=Bt(),r=Vt(),a=e.data[t]=function(e,t,n,i,s,o){return{type:n,index:i,insertBeforeIndex:null,injectorIndex:t?t.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,value:s,attrs:o,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tViews:null,next:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,r?o:o&&o.parent,n,t,i,s);return null===e.firstChild&&(e.firstChild=a),null!==o&&(r?null==o.child&&null!==a.parent&&(o.child=a):null===o.next&&(o.next=a)),a}(e,t,n,i,s),Mt.lFrame.inI18n&&(o.flags|=64);else if(64&o.type){o.type=n,o.value=i,o.attrs=s;const e=function(){const e=Mt.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}();o.injectorIndex=null===e?-1:e.injectorIndex}return zt(o,!0),o}function go(e,t,n,i){if(0===n)return-1;const s=t.length;for(let o=0;o<n;o++)t.push(i),e.blueprint.push(i),e.data.push(null);return s}function fo(e,t,n){en(t);try{const i=e.viewQuery;null!==i&&Go(1,i,n);const s=e.template;null!==s&&vo(e,t,s,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),e.staticContentQueries&&uo(e,t),e.staticViewQueries&&Go(2,e.viewQuery,n);const o=e.components;null!==o&&function(e,t){for(let n=0;n<t.length;n++)No(e,t[n])}(t,o)}catch(i){throw e.firstCreatePass&&(e.incompleteFirstPass=!0),i}finally{t[2]&=-5,rn()}}function mo(e,t,n,i){const s=t[2];if(256==(256&s))return;en(t);const o=Ht();try{Dt(t),Mt.lFrame.bindingIndex=e.bindingStartIndex,null!==n&&vo(e,t,n,2,i);const r=3==(3&s);if(!o)if(r){const n=e.preOrderCheckHooks;null!==n&&pn(t,n,null)}else{const n=e.preOrderHooks;null!==n&&gn(t,n,0,null),fn(t,0)}if(function(e){for(let t=ys(e);null!==t;t=ws(t)){if(!t[2])continue;const e=t[9];for(let t=0;t<e.length;t++){const n=e[t],i=n[3];0==(1024&n[2])&&Ot(i,1),n[2]|=1024}}}(t),function(e){for(let t=ys(e);null!==t;t=ws(t))for(let e=10;e<t.length;e++){const n=t[e],i=n[1];Pt(n)&&mo(i,n,i.template,n[8])}}(t),null!==e.contentQueries&&uo(e,t),!o)if(r){const n=e.contentCheckHooks;null!==n&&pn(t,n)}else{const n=e.contentHooks;null!==n&&gn(t,n,1),fn(t,1)}!function(e,t){const n=e.hostBindingOpCodes;if(null!==n)try{for(let e=0;e<n.length;e++){const i=n[e];if(i<0)ln(~i);else{const s=i,o=n[++e],r=n[++e];qt(o,s),r(2,t[s])}}}finally{ln(-1)}}(e,t);const a=e.components;null!==a&&function(e,t){for(let n=0;n<t.length;n++)zo(e,t[n])}(t,a);const l=e.viewQuery;if(null!==l&&Go(2,l,i),!o)if(r){const n=e.viewCheckHooks;null!==n&&pn(t,n)}else{const n=e.viewHooks;null!==n&&gn(t,n,2),fn(t,2)}!0===e.firstUpdatePass&&(e.firstUpdatePass=!1),o||(t[2]&=-73),1024&t[2]&&(t[2]&=-1025,Ot(t[3],-1))}finally{rn()}}function bo(e,t,n,i){const s=t[10],o=!Ht(),r=kt(t);try{o&&!r&&s.begin&&s.begin(),r&&fo(e,t,i),mo(e,t,n,i)}finally{o&&!r&&s.end&&s.end()}}function vo(e,t,n,i,s){const o=an();try{ln(-1),2&i&&t.length>20&&io(e,t,20,Ht()),n(i,s)}finally{ln(o)}}function yo(e,t,n){if(st(t)){const i=t.directiveEnd;for(let s=t.directiveStart;s<i;s++){const t=e.data[s];t.contentQueries&&t.contentQueries(1,n[s],s)}}}function wo(e,t,n){Tt()&&(function(e,t,n,i){const s=n.directiveStart,o=n.directiveEnd;e.firstCreatePass||On(n,t),us(i,t);const r=n.initialInputs;for(let a=s;a<o;a++){const i=e.data[a],o=at(i);o&&Ro(t,n,i);const l=jn(t,e,a,n);us(l,t),null!==r&&Lo(0,a-s,l,i,0,r),o&&(Ct(n.index,t)[8]=l)}}(e,t,n,_t(n,t)),128==(128&n.flags)&&function(e,t,n){const i=n.directiveStart,s=n.directiveEnd,o=n.index,r=Mt.lFrame.currentDirectiveIndex;try{ln(o);for(let n=i;n<s;n++){const i=e.data[n],s=t[n];Yt(n),null===i.hostBindings&&0===i.hostVars&&null===i.hostAttrs||Do(i,s)}}finally{ln(-1),Yt(r)}}(e,t,n))}function _o(e,t,n=_t){const i=t.localNames;if(null!==i){let s=t.index+1;for(let o=0;o<i.length;o+=2){const r=i[o+1],a=-1===r?n(t,e):e[r];e[s++]=a}}}function xo(e){const t=e.tView;return null===t||t.incompleteFirstPass?e.tView=Ao(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts):t}function Ao(e,t,n,i,s,o,r,a,l,c){const d=20+i,u=d+s,h=function(e,t){const n=[];for(let i=0;i<t;i++)n.push(i<e?null:to);return n}(d,u),p="function"==typeof c?c():c;return h[1]={type:e,blueprint:h,template:n,queries:null,viewQuery:a,declTNode:t,data:h.slice().fill(null,d),bindingStartIndex:d,expandoStartIndex:u,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof o?o():o,pipeRegistry:"function"==typeof r?r():r,firstChild:null,schemas:l,consts:p,incompleteFirstPass:!1}}function Co(e,t,n,i){const s=qo(t);null===n?s.push(i):(s.push(n),e.firstCreatePass&&Yo(e).push(i,s.length-1))}function So(e,t,n){for(let i in e)if(e.hasOwnProperty(i)){const s=e[i];(n=null===n?{}:n).hasOwnProperty(i)?n[i].push(t,s):n[i]=[t,s]}return n}function ko(e,t,n,i,s,o,r,a){const l=_t(t,n);let c,d=t.inputs;var u;!a&&null!=d&&(c=d[i])?(Xo(e,n,c,i,s),ot(t)&&function(e,t){const n=Ct(t,e);16&n[2]||(n[2]|=64)}(n,t.index)):3&t.type&&(i="class"===(u=i)?"className":"for"===u?"htmlFor":"formaction"===u?"formAction":"innerHtml"===u?"innerHTML":"readonly"===u?"readOnly":"tabindex"===u?"tabIndex":u,s=null!=r?r(s,t.value||"",i):s,bt(o)?o.setProperty(l,i,s):_n(i)||(l.setProperty?l.setProperty(i,s):l[i]=s))}function Po(e,t,n,i){let s=!1;if(Tt()){const o=function(e,t,n){const i=e.directiveRegistry;let s=null;if(i)for(let o=0;o<i.length;o++){const r=i[o];Xs(n,r.selectors,!1)&&(s||(s=[]),Rn(On(n,t),e,r.type),at(r)?(Oo(e,n),s.unshift(r)):s.push(r))}return s}(e,t,n),r=null===i?null:{"":-1};if(null!==o){s=!0,To(n,e.data.length,o.length);for(let e=0;e<o.length;e++){const t=o[e];t.providersResolver&&t.providersResolver(t)}let i=!1,a=!1,l=go(e,t,o.length,null);for(let s=0;s<o.length;s++){const c=o[s];n.mergedAttrs=xn(n.mergedAttrs,c.hostAttrs),Io(e,n,t,l,c),Mo(l,c,r),null!==c.contentQueries&&(n.flags|=8),null===c.hostBindings&&null===c.hostAttrs&&0===c.hostVars||(n.flags|=128);const d=c.type.prototype;!i&&(d.ngOnChanges||d.ngOnInit||d.ngDoCheck)&&((e.preOrderHooks||(e.preOrderHooks=[])).push(n.index),i=!0),a||!d.ngOnChanges&&!d.ngDoCheck||((e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(n.index),a=!0),l++}!function(e,t){const n=t.directiveEnd,i=e.data,s=t.attrs,o=[];let r=null,a=null;for(let l=t.directiveStart;l<n;l++){const e=i[l],n=e.inputs,c=null===s||$s(t)?null:Fo(n,s);o.push(c),r=So(n,l,r),a=So(e.outputs,l,a)}null!==r&&(r.hasOwnProperty("class")&&(t.flags|=16),r.hasOwnProperty("style")&&(t.flags|=32)),t.initialInputs=o,t.inputs=r,t.outputs=a}(e,n)}r&&function(e,t,n){if(t){const i=e.localNames=[];for(let e=0;e<t.length;e+=2){const s=n[t[e+1]];if(null==s)throw new ce("301",`Export of name '${t[e+1]}' not found!`);i.push(t[e],s)}}}(n,i,r)}return n.mergedAttrs=xn(n.mergedAttrs,n.attrs),s}function Eo(e,t,n,i,s,o){const r=o.hostBindings;if(r){let n=e.hostBindingOpCodes;null===n&&(n=e.hostBindingOpCodes=[]);const o=~t.index;(function(e){let t=e.length;for(;t>0;){const n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(n)!=o&&n.push(o),n.push(i,s,r)}}function Do(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function Oo(e,t){t.flags|=2,(e.components||(e.components=[])).push(t.index)}function Mo(e,t,n){if(n){if(t.exportAs)for(let i=0;i<t.exportAs.length;i++)n[t.exportAs[i]]=e;at(t)&&(n[""]=e)}}function To(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t}function Io(e,t,n,i,s){e.data[i]=s;const o=s.factory||(s.factory=lt(s.type)),r=new vn(o,at(s),null);e.blueprint[i]=r,n[i]=r,Eo(e,t,0,i,go(e,n,s.hostVars,to),s)}function Ro(e,t,n){const i=_t(t,e),s=xo(n),o=e[10],r=Ho(e,ho(e,s,null,n.onPush?64:16,i,t,o,o.createRenderer(i,n),null,null));e[t.index]=r}function Lo(e,t,n,i,s,o){const r=o[t];if(null!==r){const e=i.setInput;for(let t=0;t<r.length;){const s=r[t++],o=r[t++],a=r[t++];null!==e?i.setInput(n,a,s,o):n[o]=a}}}function Fo(e,t){let n=null,i=0;for(;i<t.length;){const s=t[i];if(0!==s)if(5!==s){if("number"==typeof s)break;e.hasOwnProperty(s)&&(null===n&&(n=[]),n.push(s,e[s],t[i+1])),i+=2}else i+=2;else i+=4}return n}function Bo(e,t,n,i){return new Array(e,!0,!1,t,null,0,i,n,null,null)}function zo(e,t){const n=Ct(t,e);if(Pt(n)){const e=n[1];80&n[2]?mo(e,n,e.template,n[8]):n[5]>0&&Vo(n)}}function Vo(e){for(let n=ys(e);null!==n;n=ws(n))for(let e=10;e<n.length;e++){const t=n[e];if(1024&t[2]){const e=t[1];mo(e,t,e.template,t[8])}else t[5]>0&&Vo(t)}const t=e[1].components;if(null!==t)for(let n=0;n<t.length;n++){const i=Ct(t[n],e);Pt(i)&&i[5]>0&&Vo(i)}}function No(e,t){const n=Ct(t,e),i=n[1];!function(e,t){for(let n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n])}(i,n),fo(i,n,n[8])}function Ho(e,t){return e[13]?e[14][4]=t:e[13]=t,e[14]=t,t}function jo(e){for(;e;){e[2]|=64;const t=vs(e);if(0!=(512&e[2])&&!t)return e;e=t}return null}function Uo(e,t,n){const i=t[10];i.begin&&i.begin();try{mo(e,t,e.template,n)}catch(s){throw Qo(t,s),s}finally{i.end&&i.end()}}function Wo(e){!function(e){for(let t=0;t<e.components.length;t++){const n=e.components[t],i=St(n),s=i[1];bo(s,i,s.template,n)}}(e[8])}function Go(e,t,n){Xt(0),t(e,n)}const $o=(()=>Promise.resolve(null))();function qo(e){return e[7]||(e[7]=[])}function Yo(e){return e.cleanup||(e.cleanup=[])}function Zo(e,t,n){return(null===e||at(e))&&(n=function(e){for(;Array.isArray(e);){if("object"==typeof e[1])return e;e=e[0]}return null}(n[t.index])),n[11]}function Qo(e,t){const n=e[9],i=n?n.get(ds,null):null;i&&i.handleError(t)}function Xo(e,t,n,i,s){for(let o=0;o<n.length;){const r=n[o++],a=n[o++],l=t[r],c=e.data[r];null!==c.setInput?c.setInput(l,s,i,a):l[a]=s}}function Ko(e,t,n){const i=wt(t,e);!function(e,t,n){bt(e)?e.setValue(t,n):t.textContent=n}(e[11],i,n)}function Jo(e,t,n){let i=n?e.styles:null,s=n?e.classes:null,o=0;if(null!==t)for(let r=0;r<t.length;r++){const e=t[r];"number"==typeof e?o=e:1==o?s=se(s,e):2==o&&(i=se(i,e+": "+t[++r]+";"))}n?e.styles=i:e.stylesWithoutHost=i,n?e.classes=s:e.classesWithoutHost=s}const er=new Xn("INJECTOR",-1);class tr{get(e,t=li){if(t===li){const t=new Error(`NullInjectorError: No provider for ${ie(e)}!`);throw t.name="NullInjectorError",t}return t}}const nr=new Xn("Set Injector scope."),ir={},sr={},or=[];let rr=void 0;function ar(){return void 0===rr&&(rr=new tr),rr}function lr(e,t=null,n=null,i){return new cr(e,n,t||ar(),i)}class cr{constructor(e,t,n,i=null){this.parent=n,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;const s=[];t&&ti(t,n=>this.processProvider(n,e,t)),ti([e],e=>this.processInjectorType(e,[],s)),this.records.set(er,hr(void 0,this));const o=this.records.get(nr);this.scope=null!=o?o.value:null,this.source=i||("object"==typeof e?null:ie(e))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(e=>e.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(e,t=li,n=Ae.Default){this.assertNotDestroyed();const i=hi(this);try{if(!(n&Ae.SkipSelf)){let t=this.records.get(e);if(void 0===t){const n=("function"==typeof(s=e)||"object"==typeof s&&s instanceof Xn)&&me(e);t=n&&this.injectableDefInScope(n)?hr(dr(e),ir):null,this.records.set(e,t)}if(null!=t)return this.hydrate(e,t)}return(n&Ae.Self?ar():this.parent).get(e,t=n&Ae.Optional&&t===li?null:t)}catch(o){if("NullInjectorError"===o.name){if((o.ngTempTokenPath=o.ngTempTokenPath||[]).unshift(ie(e)),i)throw o;return function(e,t,n,i){const s=e.ngTempTokenPath;throw t.__source&&s.unshift(t.__source),e.message=function(e,t,n,i=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.substr(2):e;let s=ie(t);if(Array.isArray(t))s=t.map(ie).join(" -> ");else if("object"==typeof t){let e=[];for(let n in t)if(t.hasOwnProperty(n)){let i=t[n];e.push(n+":"+("string"==typeof i?JSON.stringify(i):ie(i)))}s=`{${e.join(", ")}}`}return`${n}${i?"("+i+")":""}[${s}]: ${e.replace(ci,"\n  ")}`}("\n"+e.message,s,n,i),e.ngTokenPath=s,e.ngTempTokenPath=null,e}(o,e,"R3InjectorError",this.source)}throw o}finally{hi(i)}var s}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(e=>this.get(e))}toString(){const e=[];return this.records.forEach((t,n)=>e.push(ie(n))),`R3Injector[${e.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(e,t,n){if(!(e=ae(e)))return!1;let i=ve(e);const s=null==i&&e.ngModule||void 0,o=void 0===s?e:s,r=-1!==n.indexOf(o);if(void 0!==s&&(i=ve(s)),null==i)return!1;if(null!=i.imports&&!r){let e;n.push(o);try{ti(i.imports,i=>{this.processInjectorType(i,t,n)&&(void 0===e&&(e=[]),e.push(i))})}finally{}if(void 0!==e)for(let t=0;t<e.length;t++){const{ngModule:n,providers:i}=e[t];ti(i,e=>this.processProvider(e,n,i||or))}}this.injectorDefTypes.add(o);const a=lt(o)||(()=>new o);this.records.set(o,hr(a,ir));const l=i.providers;if(null!=l&&!r){const t=e;ti(l,e=>this.processProvider(e,t,l))}return void 0!==s&&void 0!==e.providers}processProvider(e,t,n){let i=gr(e=ae(e))?e:ae(e&&e.provide);const s=function(e,t,n){return pr(e)?hr(void 0,e.useValue):hr(ur(e),ir)}(e);if(gr(e)||!0!==e.multi)this.records.get(i);else{let t=this.records.get(i);t||(t=hr(void 0,ir,!0),t.factory=()=>mi(t.multi),this.records.set(i,t)),i=e,t.multi.push(e)}this.records.set(i,s)}hydrate(e,t){var n;return t.value===ir&&(t.value=sr,t.value=t.factory()),"object"==typeof t.value&&t.value&&null!==(n=t.value)&&"object"==typeof n&&"function"==typeof n.ngOnDestroy&&this.onDestroy.add(t.value),t.value}injectableDefInScope(e){return!!e.providedIn&&("string"==typeof e.providedIn?"any"===e.providedIn||e.providedIn===this.scope:this.injectorDefTypes.has(e.providedIn))}}function dr(e){const t=me(e),n=null!==t?t.factory:lt(e);if(null!==n)return n;if(e instanceof Xn)throw new Error(`Token ${ie(e)} is missing a \u0275prov definition.`);if(e instanceof Function)return function(e){const t=e.length;if(t>0){const n=si(t,"?");throw new Error(`Can't resolve all parameters for ${ie(e)}: (${n.join(", ")}).`)}const n=function(e){const t=e&&(e[ye]||e[_e]);if(t){const n=function(e){if(e.hasOwnProperty("name"))return e.name;const t=(""+e).match(/^function\s*([^\s(]+)/);return null===t?"":t[1]}(e);return console.warn(`DEPRECATED: DI is instantiating a token "${n}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${n}" class.`),t}return null}(e);return null!==n?()=>n.factory(e):()=>new e}(e);throw new Error("unreachable")}function ur(e,t,n){let i=void 0;if(gr(e)){const t=ae(e);return lt(t)||dr(t)}if(pr(e))i=()=>ae(e.useValue);else if((s=e)&&s.useFactory)i=()=>e.useFactory(...mi(e.deps||[]));else if(function(e){return!(!e||!e.useExisting)}(e))i=()=>gi(ae(e.useExisting));else{const t=ae(e&&(e.useClass||e.provide));if(!function(e){return!!e.deps}(e))return lt(t)||dr(t);i=()=>new t(...mi(e.deps))}var s;return i}function hr(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function pr(e){return null!==e&&"object"==typeof e&&di in e}function gr(e){return"function"==typeof e}const fr=function(e,t,n){return function(e,t=null,n=null,i){const s=lr(e,t,n,i);return s._resolveInjectorDefTypes(),s}({name:n},t,e,n)};let mr=(()=>{class e{static create(e,t){return Array.isArray(e)?fr(e,t,""):fr(e.providers,e.parent,e.name||"")}}return e.THROW_IF_NOT_FOUND=li,e.NULL=new tr,e.\u0275prov=pe({token:e,providedIn:"any",factory:()=>gi(er)}),e.__NG_ELEMENT_ID__=-1,e})();function br(e,t){hn(St(e)[1],Ft())}function vr(e){let t=Object.getPrototypeOf(e.type.prototype).constructor,n=!0;const i=[e];for(;t;){let s=void 0;if(at(e))s=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new Error("Directives cannot inherit Components");s=t.\u0275dir}if(s){if(n){i.push(s);const t=e;t.inputs=yr(e.inputs),t.declaredInputs=yr(e.declaredInputs),t.outputs=yr(e.outputs);const n=s.hostBindings;n&&xr(e,n);const o=s.viewQuery,r=s.contentQueries;if(o&&wr(e,o),r&&_r(e,r),ne(e.inputs,s.inputs),ne(e.declaredInputs,s.declaredInputs),ne(e.outputs,s.outputs),at(s)&&s.data.animation){const t=e.data;t.animation=(t.animation||[]).concat(s.data.animation)}}const t=s.features;if(t)for(let i=0;i<t.length;i++){const s=t[i];s&&s.ngInherit&&s(e),s===vr&&(n=!1)}}t=Object.getPrototypeOf(t)}!function(e){let t=0,n=null;for(let i=e.length-1;i>=0;i--){const s=e[i];s.hostVars=t+=s.hostVars,s.hostAttrs=xn(s.hostAttrs,n=xn(n,s.hostAttrs))}}(i)}function yr(e){return e===Le?{}:e===Be?[]:e}function wr(e,t){const n=e.viewQuery;e.viewQuery=n?(e,i)=>{t(e,i),n(e,i)}:t}function _r(e,t){const n=e.contentQueries;e.contentQueries=n?(e,i,s)=>{t(e,i,s),n(e,i,s)}:t}function xr(e,t){const n=e.hostBindings;e.hostBindings=n?(e,i)=>{t(e,i),n(e,i)}:t}let Ar=null;function Cr(){if(!Ar){const e=Re.Symbol;if(e&&e.iterator)Ar=e.iterator;else{const e=Object.getOwnPropertyNames(Map.prototype);for(let t=0;t<e.length;++t){const n=e[t];"entries"!==n&&"size"!==n&&Map.prototype[n]===Map.prototype.entries&&(Ar=n)}}}return Ar}class Sr{constructor(e){this.wrapped=e}static wrap(e){return new Sr(e)}static unwrap(e){return Sr.isWrapped(e)?e.wrapped:e}static isWrapped(e){return e instanceof Sr}}function kr(e){return!!Pr(e)&&(Array.isArray(e)||!(e instanceof Map)&&Cr()in e)}function Pr(e){return null!==e&&("function"==typeof e||"object"==typeof e)}function Er(e,t,n){return e[t]=n}function Dr(e,t,n){return!Object.is(e[t],n)&&(e[t]=n,!0)}function Or(e,t,n,i){const s=Dr(e,t,n);return Dr(e,t+1,i)||s}function Mr(e,t,n,i,s){const o=Or(e,t,n,i);return Dr(e,t+2,s)||o}function Tr(e,t,n,i,s,o){const r=Or(e,t,n,i);return Or(e,t+2,s,o)||r}function Ir(e,t,n,i){const s=It();return Dr(s,Gt(),t)&&(Rt(),function(e,t,n,i,s,o){const r=_t(e,t);!function(e,t,n,i,s,o,r){if(null==o)bt(e)?e.removeAttribute(t,s,n):t.removeAttribute(s);else{const a=null==r?de(o):r(o,i||"",s);bt(e)?e.setAttribute(t,s,a,n):n?t.setAttributeNS(n,s,a):t.setAttribute(s,a)}}(t[11],r,o,e.value,n,i,s)}(cn(),s,e,t,n,i)),Ir}function Rr(e,t,n,i){return Dr(e,Gt(),n)?t+de(n)+i:to}function Lr(e,t,n,i,s,o){const r=Or(e,Wt(),n,s);return $t(2),r?t+de(n)+i+de(s)+o:to}function Fr(e,t,n,i,s,o,r,a){const l=It(),c=Rt(),d=e+20,u=c.firstCreatePass?function(e,t,n,i,s,o,r,a,l){const c=t.consts,d=po(t,e,4,r||null,Et(c,a));Po(t,n,d,Et(c,l)),hn(t,d);const u=d.tViews=Ao(2,d,i,s,o,t.directiveRegistry,t.pipeRegistry,null,t.schemas,c);return null!==t.queries&&(t.queries.template(t,d),u.queries=t.queries.embeddedTView(d)),d}(d,c,l,t,n,i,s,o,r):c.data[d];zt(u,!1);const h=l[11].createComment("");Ls(c,l,h,u),us(h,l),Ho(l,l[d]=Bo(h,l,h,u)),rt(u)&&wo(c,l,u),null!=r&&_o(l,u,a)}function Br(e){return At(Mt.lFrame.contextLView,20+e)}function zr(e,t=Ae.Default){const n=It();return null===n?gi(e,t):Bn(Ft(),n,ae(e),t)}function Vr(e,t,n){const i=It();return Dr(i,Gt(),t)&&ko(Rt(),cn(),i,e,t,i[11],n,!1),Vr}function Nr(e,t,n,i,s){const o=s?"class":"style";Xo(e,n,t.inputs[o],o,i)}function Hr(e,t,n,i){const s=It(),o=Rt(),r=20+e,a=s[11],l=s[r]=As(a,t,Mt.lFrame.currentNamespace),c=o.firstCreatePass?function(e,t,n,i,s,o,r){const a=t.consts,l=po(t,e,2,s,Et(a,o));return Po(t,n,l,Et(a,r)),null!==l.attrs&&Jo(l,l.attrs,!1),null!==l.mergedAttrs&&Jo(l,l.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,l),l}(r,o,s,0,t,n,i):o.data[r];zt(c,!0);const d=c.mergedAttrs;null!==d&&yn(a,l,d);const u=c.classes;null!==u&&Us(a,l,u);const h=c.styles;null!==h&&js(a,l,h),64!=(64&c.flags)&&Ls(o,s,l,c),0===Mt.lFrame.elementDepthCount&&us(l,s),Mt.lFrame.elementDepthCount++,rt(c)&&(wo(o,s,c),yo(o,c,s)),null!==i&&_o(s,c)}function jr(){let e=Ft();Vt()?Nt():(e=e.parent,zt(e,!1));const t=e;Mt.lFrame.elementDepthCount--;const n=Rt();n.firstCreatePass&&(hn(n,e),st(e)&&n.queries.elementEnd(e)),null!=t.classesWithoutHost&&function(e){return 0!=(16&e.flags)}(t)&&Nr(n,t,It(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function(e){return 0!=(32&e.flags)}(t)&&Nr(n,t,It(),t.stylesWithoutHost,!1)}function Ur(e,t,n,i){Hr(e,t,n,i),jr()}function Wr(e,t,n){const i=It(),s=Rt(),o=e+20,r=s.firstCreatePass?function(e,t,n,i,s){const o=t.consts,r=Et(o,i),a=po(t,e,8,"ng-container",r);return null!==r&&Jo(a,r,!0),Po(t,n,a,Et(o,s)),null!==t.queries&&t.queries.elementStart(t,a),a}(o,s,i,t,n):s.data[o];zt(r,!0);const a=i[o]=i[11].createComment("");Ls(s,i,a,r),us(a,i),rt(r)&&(wo(s,i,r),yo(s,r,i)),null!=n&&_o(i,r)}function Gr(){let e=Ft();const t=Rt();Vt()?Nt():(e=e.parent,zt(e,!1)),t.firstCreatePass&&(hn(t,e),st(e)&&t.queries.elementEnd(e))}function $r(e,t,n){Wr(e,t,n),Gr()}function qr(){return It()}function Yr(e){return!!e&&"function"==typeof e.then}function Zr(e){return!!e&&"function"==typeof e.subscribe}const Qr=Zr;function Xr(e,t,n=!1,i){const s=It(),o=Rt(),r=Ft();return Jr(o,s,s[11],r,e,t,n,i),Xr}function Kr(e,t,n=!1,i){const s=Ft(),o=It(),r=Rt();return Jr(r,o,Zo(Zt(r.data),s,o),s,e,t,n,i),Kr}function Jr(e,t,n,i,s,o,r=!1,a){const l=rt(i),c=e.firstCreatePass&&Yo(e),d=qo(t);let u=!0;if(3&i.type){const h=_t(i,t),p=a?a(h):Le,g=p.target||h,f=d.length,m=a?e=>a(yt(e[i.index])).target:i.index;if(bt(n)){let r=null;if(!a&&l&&(r=function(e,t,n,i){const s=e.cleanup;if(null!=s)for(let o=0;o<s.length-1;o+=2){const e=s[o];if(e===n&&s[o+1]===i){const e=t[7],n=s[o+2];return e.length>n?e[n]:null}"string"==typeof e&&(o+=2)}return null}(e,t,s,i.index)),null!==r)(r.__ngLastListenerFn__||r).__ngNextListenerFn__=o,r.__ngLastListenerFn__=o,u=!1;else{o=ta(i,t,o,!1);const e=n.listen(p.name||g,s,o);d.push(o,e),c&&c.push(s,m,f,f+1)}}else o=ta(i,t,o,!0),g.addEventListener(s,o,r),d.push(o),c&&c.push(s,m,f,r)}else o=ta(i,t,o,!1);const h=i.outputs;let p;if(u&&null!==h&&(p=h[s])){const e=p.length;if(e)for(let n=0;n<e;n+=2){const e=t[p[n]][p[n+1]].subscribe(o),r=d.length;d.push(o,e),c&&c.push(s,i.index,r,-(r+1))}}}function ea(e,t,n){try{return!1!==t(n)}catch(i){return Qo(e,i),!1}}function ta(e,t,n,i){return function s(o){if(o===Function)return n;const r=2&e.flags?Ct(e.index,t):t;0==(32&t[2])&&jo(r);let a=ea(t,n,o),l=s.__ngNextListenerFn__;for(;l;)a=ea(t,l,o)&&a,l=l.__ngNextListenerFn__;return i&&!1===a&&(o.preventDefault(),o.returnValue=!1),a}}function na(e=1){return function(e){return(Mt.lFrame.contextLView=function(e,t){for(;e>0;)t=t[15],e--;return t}(e,Mt.lFrame.contextLView))[8]}(e)}function ia(e,t){let n=null;const i=function(e){const t=e.attrs;if(null!=t){const e=t.indexOf(5);if(0==(1&e))return t[e+1]}return null}(e);for(let s=0;s<t.length;s++){const o=t[s];if("*"!==o){if(null===i?Xs(e,o,!0):Ks(i,o))return s}else n=s}return n}function sa(e){const t=It()[16][6];if(!t.projection){const n=t.projection=si(e?e.length:1,null),i=n.slice();let s=t.child;for(;null!==s;){const t=e?ia(s,e):0;null!==t&&(i[t]?i[t].projectionNext=s:n[t]=s,i[t]=s),s=s.next}}}function oa(e,t=0,n){const i=It(),s=Rt(),o=po(s,20+e,16,null,n||null);null===o.projection&&(o.projection=t),Nt(),64!=(64&o.flags)&&function(e,t,n){Hs(t[11],0,t,n,Es(e,n,t),Is(n.parent||t[6],n,t))}(s,i,o)}function ra(e,t,n){return aa(e,"",t,"",n),ra}function aa(e,t,n,i,s){const o=It(),r=Rr(o,t,n,i);return r!==to&&ko(Rt(),cn(),o,e,r,o[11],s,!1),aa}function la(e,t,n,i,s,o,r){const a=It(),l=Lr(a,t,n,i,s,o);return l!==to&&ko(Rt(),cn(),a,e,l,a[11],r,!1),la}function ca(e,t,n,i,s){const o=e[n+1],r=null===t;let a=i?oo(o):ao(o),l=!1;for(;0!==a&&(!1===l||r);){const n=e[a+1];da(e[a],t)&&(l=!0,e[a+1]=i?co(n):ro(n)),a=i?oo(n):ao(n)}l&&(e[n+1]=i?ro(o):co(o))}function da(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&ai(e,t)>=0}const ua={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function ha(e){return e.substring(ua.key,ua.keyEnd)}function pa(e,t){const n=ua.textEnd;return n===t?-1:(t=ua.keyEnd=function(e,t,n){for(;t<n&&e.charCodeAt(t)>32;)t++;return t}(e,ua.key=t,n),ga(e,t,n))}function ga(e,t,n){for(;t<n&&e.charCodeAt(t)<=32;)t++;return t}function fa(e,t,n){return ya(e,t,n,!1),fa}function ma(e,t){return ya(e,t,null,!0),ma}function ba(e){wa(oi,va,e,!0)}function va(e,t){for(let n=function(e){return function(e){ua.key=0,ua.keyEnd=0,ua.value=0,ua.valueEnd=0,ua.textEnd=e.length}(e),pa(e,ga(e,0,ua.textEnd))}(t);n>=0;n=pa(t,n))oi(e,ha(t),!0)}function ya(e,t,n,i){const s=It(),o=Rt(),r=$t(2);o.firstUpdatePass&&xa(o,e,r,i),t!==to&&Dr(s,r,t)&&Sa(o,o.data[an()],s,s[11],e,s[r+1]=function(e,t){return null==e||("string"==typeof t?e+=t:"object"==typeof e&&(e=ie(Mi(e)))),e}(t,n),i,r)}function wa(e,t,n,i){const s=Rt(),o=$t(2);s.firstUpdatePass&&xa(s,null,o,i);const r=It();if(n!==to&&Dr(r,o,n)){const a=s.data[an()];if(Ea(a,i)&&!_a(s,o)){let e=i?a.classesWithoutHost:a.stylesWithoutHost;null!==e&&(n=se(e,n||"")),Nr(s,a,r,n,i)}else!function(e,t,n,i,s,o,r,a){s===to&&(s=Fe);let l=0,c=0,d=0<s.length?s[0]:null,u=0<o.length?o[0]:null;for(;null!==d||null!==u;){const h=l<s.length?s[l+1]:void 0,p=c<o.length?o[c+1]:void 0;let g=null,f=void 0;d===u?(l+=2,c+=2,h!==p&&(g=u,f=p)):null===u||null!==d&&d<u?(l+=2,g=d):(c+=2,g=u,f=p),null!==g&&Sa(e,t,n,i,g,f,r,a),d=l<s.length?s[l]:null,u=c<o.length?o[c]:null}}(s,a,r,r[11],r[o+1],r[o+1]=function(e,t,n){if(null==n||""===n)return Fe;const i=[],s=Mi(n);if(Array.isArray(s))for(let o=0;o<s.length;o++)e(i,s[o],!0);else if("object"==typeof s)for(const o in s)s.hasOwnProperty(o)&&e(i,o,s[o]);else"string"==typeof s&&t(i,s);return i}(e,t,n),i,o)}}function _a(e,t){return t>=e.expandoStartIndex}function xa(e,t,n,i){const s=e.data;if(null===s[n+1]){const o=s[an()],r=_a(e,n);Ea(o,i)&&null===t&&!r&&(t=!1),t=function(e,t,n,i){const s=Zt(e);let o=i?t.residualClasses:t.residualStyles;if(null===s)0===(i?t.classBindings:t.styleBindings)&&(n=Ca(n=Aa(null,e,t,n,i),t.attrs,i),o=null);else{const r=t.directiveStylingLast;if(-1===r||e[r]!==s)if(n=Aa(s,e,t,n,i),null===o){let n=function(e,t,n){const i=n?t.classBindings:t.styleBindings;if(0!==ao(i))return e[oo(i)]}(e,t,i);void 0!==n&&Array.isArray(n)&&(n=Aa(null,e,t,n[1],i),n=Ca(n,t.attrs,i),function(e,t,n,i){e[oo(n?t.classBindings:t.styleBindings)]=i}(e,t,i,n))}else o=function(e,t,n){let i=void 0;const s=t.directiveEnd;for(let o=1+t.directiveStylingLast;o<s;o++)i=Ca(i,e[o].hostAttrs,n);return Ca(i,t.attrs,n)}(e,t,i)}return void 0!==o&&(i?t.residualClasses=o:t.residualStyles=o),n}(s,o,t,i),function(e,t,n,i,s,o){let r=o?t.classBindings:t.styleBindings,a=oo(r),l=ao(r);e[i]=n;let c,d=!1;if(Array.isArray(n)){const e=n;c=e[1],(null===c||ai(e,c)>0)&&(d=!0)}else c=n;if(s)if(0!==l){const t=oo(e[a+1]);e[i+1]=so(t,a),0!==t&&(e[t+1]=lo(e[t+1],i)),e[a+1]=131071&e[a+1]|i<<17}else e[i+1]=so(a,0),0!==a&&(e[a+1]=lo(e[a+1],i)),a=i;else e[i+1]=so(l,0),0===a?a=i:e[l+1]=lo(e[l+1],i),l=i;d&&(e[i+1]=ro(e[i+1])),ca(e,c,i,!0),ca(e,c,i,!1),function(e,t,n,i,s){const o=s?e.residualClasses:e.residualStyles;null!=o&&"string"==typeof t&&ai(o,t)>=0&&(n[i+1]=co(n[i+1]))}(t,c,e,i,o),r=so(a,l),o?t.classBindings=r:t.styleBindings=r}(s,o,t,n,r,i)}}function Aa(e,t,n,i,s){let o=null;const r=n.directiveEnd;let a=n.directiveStylingLast;for(-1===a?a=n.directiveStart:a++;a<r&&(o=t[a],i=Ca(i,o.hostAttrs,s),o!==e);)a++;return null!==e&&(n.directiveStylingLast=a),i}function Ca(e,t,n){const i=n?1:2;let s=-1;if(null!==t)for(let o=0;o<t.length;o++){const r=t[o];"number"==typeof r?s=r:s===i&&(Array.isArray(e)||(e=void 0===e?[]:["",e]),oi(e,r,!!n||t[++o]))}return void 0===e?null:e}function Sa(e,t,n,i,s,o,r,a){if(!(3&t.type))return;const l=e.data,c=l[a+1];Pa(1==(1&c)?ka(l,t,n,s,ao(c),r):void 0)||(Pa(o)||2==(2&c)&&(o=ka(l,null,n,s,a,r)),function(e,t,n,i,s){const o=bt(e);if(t)s?o?e.addClass(n,i):n.classList.add(i):o?e.removeClass(n,i):n.classList.remove(i);else{let t=-1===i.indexOf("-")?void 0:ms.DashCase;if(null==s)o?e.removeStyle(n,i,t):n.style.removeProperty(i);else{const r="string"==typeof s&&s.endsWith("!important");r&&(s=s.slice(0,-10),t|=ms.Important),o?e.setStyle(n,i,s,t):n.style.setProperty(i,s,r?"important":"")}}}(i,r,wt(an(),n),s,o))}function ka(e,t,n,i,s,o){const r=null===t;let a=void 0;for(;s>0;){const t=e[s],o=Array.isArray(t),l=o?t[1]:t,c=null===l;let d=n[s+1];d===to&&(d=c?Fe:void 0);let u=c?ri(d,i):l===i?d:void 0;if(o&&!Pa(u)&&(u=ri(t,i)),Pa(u)&&(a=u,r))return a;const h=e[s+1];s=r?oo(h):ao(h)}if(null!==t){let e=o?t.residualClasses:t.residualStyles;null!=e&&(a=ri(e,i))}return a}function Pa(e){return void 0!==e}function Ea(e,t){return 0!=(e.flags&(t?16:32))}function Da(e,t=""){const n=It(),i=Rt(),s=e+20,o=i.firstCreatePass?po(i,s,1,t,null):i.data[s],r=n[s]=function(e,t){return bt(e)?e.createText(t):e.createTextNode(t)}(n[11],t);Ls(i,n,r,o),zt(o,!1)}function Oa(e){return Ma("",e,""),Oa}function Ma(e,t,n){const i=It(),s=Rr(i,e,t,n);return s!==to&&Ko(i,an(),s),Ma}function Ta(e,t,n,i,s){const o=It(),r=Lr(o,e,t,n,i,s);return r!==to&&Ko(o,an(),r),Ta}function Ia(e,t,n,i,s,o,r){const a=It(),l=function(e,t,n,i,s,o,r,a){const l=Mr(e,Wt(),n,s,r);return $t(3),l?t+de(n)+i+de(s)+o+de(r)+a:to}(a,e,t,n,i,s,o,r);return l!==to&&Ko(a,an(),l),Ia}function Ra(e,t,n,i,s,o,r,a,l){const c=It(),d=function(e,t,n,i,s,o,r,a,l,c){const d=Tr(e,Wt(),n,s,r,l);return $t(4),d?t+de(n)+i+de(s)+o+de(r)+a+de(l)+c:to}(c,e,t,n,i,s,o,r,a,l);return d!==to&&Ko(c,an(),d),Ra}function La(e,t,n){wa(oi,va,Rr(It(),e,t,n),!0)}function Fa(e,t,n){const i=It();return Dr(i,Gt(),t)&&ko(Rt(),cn(),i,e,t,i[11],n,!0),Fa}function Ba(e,t,n){const i=It();if(Dr(i,Gt(),t)){const s=Rt(),o=cn();ko(s,o,i,e,t,Zo(Zt(s.data),o,i),n,!0)}return Ba}const za=void 0;var Va=["en",[["a","p"],["AM","PM"],za],[["AM","PM"],za,za],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],za,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],za,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",za,"{1} 'at' {0}",za],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(e){let t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return 1===t&&0===n?1:5}];let Na={};function Ha(e){const t=function(e){return e.toLowerCase().replace(/_/g,"-")}(e);let n=ja(t);if(n)return n;const i=t.split("-")[0];if(n=ja(i),n)return n;if("en"===i)return Va;throw new Error(`Missing locale data for the locale "${e}".`)}function ja(e){return e in Na||(Na[e]=Re.ng&&Re.ng.common&&Re.ng.common.locales&&Re.ng.common.locales[e]),Na[e]}var Ua=function(e){return e[e.LocaleId=0]="LocaleId",e[e.DayPeriodsFormat=1]="DayPeriodsFormat",e[e.DayPeriodsStandalone=2]="DayPeriodsStandalone",e[e.DaysFormat=3]="DaysFormat",e[e.DaysStandalone=4]="DaysStandalone",e[e.MonthsFormat=5]="MonthsFormat",e[e.MonthsStandalone=6]="MonthsStandalone",e[e.Eras=7]="Eras",e[e.FirstDayOfWeek=8]="FirstDayOfWeek",e[e.WeekendRange=9]="WeekendRange",e[e.DateFormat=10]="DateFormat",e[e.TimeFormat=11]="TimeFormat",e[e.DateTimeFormat=12]="DateTimeFormat",e[e.NumberSymbols=13]="NumberSymbols",e[e.NumberFormats=14]="NumberFormats",e[e.CurrencyCode=15]="CurrencyCode",e[e.CurrencySymbol=16]="CurrencySymbol",e[e.CurrencyName=17]="CurrencyName",e[e.Currencies=18]="Currencies",e[e.Directionality=19]="Directionality",e[e.PluralCase=20]="PluralCase",e[e.ExtraData=21]="ExtraData",e}({});let Wa="en-US";function Ga(e){var t,n;n="Expected localeId to be defined",null==(t=e)&&function(e,t,n,i){throw new Error("ASSERTION ERROR: "+e+` [Expected=> null != ${t} <=Actual]`)}(n,t),"string"==typeof e&&(Wa=e.toLowerCase().replace(/_/g,"-"))}function $a(e,t,n,i,s){if(e=ae(e),Array.isArray(e))for(let o=0;o<e.length;o++)$a(e[o],t,n,i,s);else{const o=Rt(),r=It();let a=gr(e)?e:ae(e.provide),l=ur(e);const c=Ft(),d=1048575&c.providerIndexes,u=c.directiveStart,h=c.providerIndexes>>20;if(gr(e)||!e.multi){const i=new vn(l,s,zr),p=Za(a,t,s?d:d+h,u);-1===p?(Rn(On(c,r),o,a),qa(o,e,t.length),t.push(a),c.directiveStart++,c.directiveEnd++,s&&(c.providerIndexes+=1048576),n.push(i),r.push(i)):(n[p]=i,r[p]=i)}else{const p=Za(a,t,d+h,u),g=Za(a,t,d,d+h),f=p>=0&&n[p],m=g>=0&&n[g];if(s&&!m||!s&&!f){Rn(On(c,r),o,a);const d=function(e,t,n,i,s){const o=new vn(e,n,zr);return o.multi=[],o.index=t,o.componentProviders=0,Ya(o,s,i&&!n),o}(s?Xa:Qa,n.length,s,i,l);!s&&m&&(n[g].providerFactory=d),qa(o,e,t.length,0),t.push(a),c.directiveStart++,c.directiveEnd++,s&&(c.providerIndexes+=1048576),n.push(d),r.push(d)}else qa(o,e,p>-1?p:g,Ya(n[s?g:p],l,!s&&i));!s&&i&&m&&n[g].componentProviders++}}}function qa(e,t,n,i){const s=gr(t);if(s||t.useClass){const o=(t.useClass||t).prototype.ngOnDestroy;if(o){const r=e.destroyHooks||(e.destroyHooks=[]);if(!s&&t.multi){const e=r.indexOf(n);-1===e?r.push(n,[i,o]):r[e+1].push(i,o)}else r.push(n,o)}}}function Ya(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function Za(e,t,n,i){for(let s=n;s<i;s++)if(t[s]===e)return s;return-1}function Qa(e,t,n,i){return Ka(this.multi,[])}function Xa(e,t,n,i){const s=this.multi;let o;if(this.providerFactory){const e=this.providerFactory.componentProviders,t=jn(n,n[1],this.providerFactory.index,i);o=t.slice(0,e),Ka(s,o);for(let n=e;n<t.length;n++)o.push(t[n])}else o=[],Ka(s,o);return o}function Ka(e,t){for(let n=0;n<e.length;n++)t.push((0,e[n])());return t}function Ja(e,t=[]){return n=>{n.providersResolver=(n,i)=>function(e,t,n){const i=Rt();if(i.firstCreatePass){const s=at(e);$a(n,i.data,i.blueprint,s,!0),$a(t,i.data,i.blueprint,s,!1)}}(n,i?i(e):e,t)}}class el{}class tl{resolveComponentFactory(e){throw function(e){const t=Error(`No component factory found for ${ie(e)}. Did you add it to @NgModule.entryComponents?`);return t.ngComponent=e,t}(e)}}let nl=(()=>{class e{}return e.NULL=new tl,e})();function il(...e){}function sl(e,t){return new rl(_t(e,t))}const ol=function(){return sl(Ft(),It())};let rl=(()=>{class e{constructor(e){this.nativeElement=e}}return e.__NG_ELEMENT_ID__=ol,e})();function al(e){return e instanceof rl?e.nativeElement:e}class ll{}let cl=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>dl(),e})();const dl=function(){const e=It(),t=Ct(Ft().index,e);return function(e){return e[11]}(nt(t)?t:e)};let ul=(()=>{class e{}return e.\u0275prov=pe({token:e,providedIn:"root",factory:()=>null}),e})();class hl{constructor(e){this.full=e,this.major=e.split(".")[0],this.minor=e.split(".")[1],this.patch=e.split(".").slice(2).join(".")}}const pl=new hl("11.2.6");class gl{constructor(){}supports(e){return kr(e)}create(e){return new ml(e)}}const fl=(e,t)=>t;class ml{constructor(e){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=e||fl}forEachItem(e){let t;for(t=this._itHead;null!==t;t=t._next)e(t)}forEachOperation(e){let t=this._itHead,n=this._removalsHead,i=0,s=null;for(;t||n;){const o=!n||t&&t.currentIndex<wl(n,i,s)?t:n,r=wl(o,i,s),a=o.currentIndex;if(o===n)i--,n=n._nextRemoved;else if(t=t._next,null==o.previousIndex)i++;else{s||(s=[]);const e=r-i,t=a-i;if(e!=t){for(let n=0;n<e;n++){const i=n<s.length?s[n]:s[n]=0,o=i+n;t<=o&&o<e&&(s[n]=i+1)}s[o.previousIndex]=t-e}}r!==a&&e(o,r,a)}}forEachPreviousItem(e){let t;for(t=this._previousItHead;null!==t;t=t._nextPrevious)e(t)}forEachAddedItem(e){let t;for(t=this._additionsHead;null!==t;t=t._nextAdded)e(t)}forEachMovedItem(e){let t;for(t=this._movesHead;null!==t;t=t._nextMoved)e(t)}forEachRemovedItem(e){let t;for(t=this._removalsHead;null!==t;t=t._nextRemoved)e(t)}forEachIdentityChange(e){let t;for(t=this._identityChangesHead;null!==t;t=t._nextIdentityChange)e(t)}diff(e){if(null==e&&(e=[]),!kr(e))throw new Error(`Error trying to diff '${ie(e)}'. Only arrays and iterables are allowed`);return this.check(e)?this:null}onDestroy(){}check(e){this._reset();let t,n,i,s=this._itHead,o=!1;if(Array.isArray(e)){this.length=e.length;for(let t=0;t<this.length;t++)n=e[t],i=this._trackByFn(t,n),null!==s&&Object.is(s.trackById,i)?(o&&(s=this._verifyReinsertion(s,n,i,t)),Object.is(s.item,n)||this._addIdentityChange(s,n)):(s=this._mismatch(s,n,i,t),o=!0),s=s._next}else t=0,function(e,t){if(Array.isArray(e))for(let n=0;n<e.length;n++)t(e[n]);else{const n=e[Cr()]();let i;for(;!(i=n.next()).done;)t(i.value)}}(e,e=>{i=this._trackByFn(t,e),null!==s&&Object.is(s.trackById,i)?(o&&(s=this._verifyReinsertion(s,e,i,t)),Object.is(s.item,e)||this._addIdentityChange(s,e)):(s=this._mismatch(s,e,i,t),o=!0),s=s._next,t++}),this.length=t;return this._truncate(s),this.collection=e,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let e;for(e=this._previousItHead=this._itHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._additionsHead;null!==e;e=e._nextAdded)e.previousIndex=e.currentIndex;for(this._additionsHead=this._additionsTail=null,e=this._movesHead;null!==e;e=e._nextMoved)e.previousIndex=e.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(e,t,n,i){let s;return null===e?s=this._itTail:(s=e._prev,this._remove(e)),null!==(e=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(Object.is(e.item,t)||this._addIdentityChange(e,t),this._reinsertAfter(e,s,i)):null!==(e=null===this._linkedRecords?null:this._linkedRecords.get(n,i))?(Object.is(e.item,t)||this._addIdentityChange(e,t),this._moveAfter(e,s,i)):e=this._addAfter(new bl(t,n),s,i),e}_verifyReinsertion(e,t,n,i){let s=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==s?e=this._reinsertAfter(s,e._prev,i):e.currentIndex!=i&&(e.currentIndex=i,this._addToMoves(e,i)),e}_truncate(e){for(;null!==e;){const t=e._next;this._addToRemovals(this._unlink(e)),e=t}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(e,t,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(e);const i=e._prevRemoved,s=e._nextRemoved;return null===i?this._removalsHead=s:i._nextRemoved=s,null===s?this._removalsTail=i:s._prevRemoved=i,this._insertAfter(e,t,n),this._addToMoves(e,n),e}_moveAfter(e,t,n){return this._unlink(e),this._insertAfter(e,t,n),this._addToMoves(e,n),e}_addAfter(e,t,n){return this._insertAfter(e,t,n),this._additionsTail=null===this._additionsTail?this._additionsHead=e:this._additionsTail._nextAdded=e,e}_insertAfter(e,t,n){const i=null===t?this._itHead:t._next;return e._next=i,e._prev=t,null===i?this._itTail=e:i._prev=e,null===t?this._itHead=e:t._next=e,null===this._linkedRecords&&(this._linkedRecords=new yl),this._linkedRecords.put(e),e.currentIndex=n,e}_remove(e){return this._addToRemovals(this._unlink(e))}_unlink(e){null!==this._linkedRecords&&this._linkedRecords.remove(e);const t=e._prev,n=e._next;return null===t?this._itHead=n:t._next=n,null===n?this._itTail=t:n._prev=t,e}_addToMoves(e,t){return e.previousIndex===t||(this._movesTail=null===this._movesTail?this._movesHead=e:this._movesTail._nextMoved=e),e}_addToRemovals(e){return null===this._unlinkedRecords&&(this._unlinkedRecords=new yl),this._unlinkedRecords.put(e),e.currentIndex=null,e._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=e,e._prevRemoved=null):(e._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=e),e}_addIdentityChange(e,t){return e.item=t,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=e:this._identityChangesTail._nextIdentityChange=e,e}}class bl{constructor(e,t){this.item=e,this.trackById=t,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class vl{constructor(){this._head=null,this._tail=null}add(e){null===this._head?(this._head=this._tail=e,e._nextDup=null,e._prevDup=null):(this._tail._nextDup=e,e._prevDup=this._tail,e._nextDup=null,this._tail=e)}get(e,t){let n;for(n=this._head;null!==n;n=n._nextDup)if((null===t||t<=n.currentIndex)&&Object.is(n.trackById,e))return n;return null}remove(e){const t=e._prevDup,n=e._nextDup;return null===t?this._head=n:t._nextDup=n,null===n?this._tail=t:n._prevDup=t,null===this._head}}class yl{constructor(){this.map=new Map}put(e){const t=e.trackById;let n=this.map.get(t);n||(n=new vl,this.map.set(t,n)),n.add(e)}get(e,t){const n=this.map.get(e);return n?n.get(e,t):null}remove(e){const t=e.trackById;return this.map.get(t).remove(e)&&this.map.delete(t),e}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function wl(e,t,n){const i=e.previousIndex;if(null===i)return i;let s=0;return n&&i<n.length&&(s=n[i]),i+t+s}class _l{constructor(){}supports(e){return e instanceof Map||Pr(e)}create(){return new xl}}class xl{constructor(){this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}get isDirty(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}forEachItem(e){let t;for(t=this._mapHead;null!==t;t=t._next)e(t)}forEachPreviousItem(e){let t;for(t=this._previousMapHead;null!==t;t=t._nextPrevious)e(t)}forEachChangedItem(e){let t;for(t=this._changesHead;null!==t;t=t._nextChanged)e(t)}forEachAddedItem(e){let t;for(t=this._additionsHead;null!==t;t=t._nextAdded)e(t)}forEachRemovedItem(e){let t;for(t=this._removalsHead;null!==t;t=t._nextRemoved)e(t)}diff(e){if(e){if(!(e instanceof Map||Pr(e)))throw new Error(`Error trying to diff '${ie(e)}'. Only maps and objects are allowed`)}else e=new Map;return this.check(e)?this:null}onDestroy(){}check(e){this._reset();let t=this._mapHead;if(this._appendAfter=null,this._forEach(e,(e,n)=>{if(t&&t.key===n)this._maybeAddToChanges(t,e),this._appendAfter=t,t=t._next;else{const i=this._getOrCreateRecordForKey(n,e);t=this._insertBeforeOrAppend(t,i)}}),t){t._prev&&(t._prev._next=null),this._removalsHead=t;for(let e=t;null!==e;e=e._nextRemoved)e===this._mapHead&&(this._mapHead=null),this._records.delete(e.key),e._nextRemoved=e._next,e.previousValue=e.currentValue,e.currentValue=null,e._prev=null,e._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(e,t){if(e){const n=e._prev;return t._next=e,t._prev=n,e._prev=t,n&&(n._next=t),e===this._mapHead&&(this._mapHead=t),this._appendAfter=e,e}return this._appendAfter?(this._appendAfter._next=t,t._prev=this._appendAfter):this._mapHead=t,this._appendAfter=t,null}_getOrCreateRecordForKey(e,t){if(this._records.has(e)){const n=this._records.get(e);this._maybeAddToChanges(n,t);const i=n._prev,s=n._next;return i&&(i._next=s),s&&(s._prev=i),n._next=null,n._prev=null,n}const n=new Al(e);return this._records.set(e,n),n.currentValue=t,this._addToAdditions(n),n}_reset(){if(this.isDirty){let e;for(this._previousMapHead=this._mapHead,e=this._previousMapHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._changesHead;null!==e;e=e._nextChanged)e.previousValue=e.currentValue;for(e=this._additionsHead;null!=e;e=e._nextAdded)e.previousValue=e.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(e,t){Object.is(t,e.currentValue)||(e.previousValue=e.currentValue,e.currentValue=t,this._addToChanges(e))}_addToAdditions(e){null===this._additionsHead?this._additionsHead=this._additionsTail=e:(this._additionsTail._nextAdded=e,this._additionsTail=e)}_addToChanges(e){null===this._changesHead?this._changesHead=this._changesTail=e:(this._changesTail._nextChanged=e,this._changesTail=e)}_forEach(e,t){e instanceof Map?e.forEach(t):Object.keys(e).forEach(n=>t(e[n],n))}}class Al{constructor(e){this.key=e,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function Cl(){return new Sl([new gl])}let Sl=(()=>{class e{constructor(e){this.factories=e}static create(t,n){if(null!=n){const e=n.factories.slice();t=t.concat(e)}return new e(t)}static extend(t){return{provide:e,useFactory:n=>e.create(t,n||Cl()),deps:[[e,new wi,new yi]]}}find(e){const t=this.factories.find(t=>t.supports(e));if(null!=t)return t;throw new Error(`Cannot find a differ supporting object '${e}' of type '${n=e,n.name||typeof n}'`);var n}}return e.\u0275prov=pe({token:e,providedIn:"root",factory:Cl}),e})();function kl(){return new Pl([new _l])}let Pl=(()=>{class e{constructor(e){this.factories=e}static create(t,n){if(n){const e=n.factories.slice();t=t.concat(e)}return new e(t)}static extend(t){return{provide:e,useFactory:n=>e.create(t,n||kl()),deps:[[e,new wi,new yi]]}}find(e){const t=this.factories.find(t=>t.supports(e));if(t)return t;throw new Error(`Cannot find a differ supporting object '${e}'`)}}return e.\u0275prov=pe({token:e,providedIn:"root",factory:kl}),e})();function El(e,t,n,i,s=!1){for(;null!==n;){const o=t[n.index];if(null!==o&&i.push(yt(o)),it(o))for(let e=10;e<o.length;e++){const t=o[e],n=t[1].firstChild;null!==n&&El(t[1],t,n,i)}const r=n.type;if(8&r)El(e,t,n.child,i);else if(32&r){const e=bs(n,t);let s;for(;s=e();)i.push(s)}else if(16&r){const e=Bs(t,n);if(Array.isArray(e))i.push(...e);else{const n=vs(t[16]);El(n[1],n,e,i,!0)}}n=s?n.projectionNext:n.next}return i}class Dl{constructor(e,t){this._lView=e,this._cdRefInjectingView=t,this._appRef=null,this._attachedToViewContainer=!1}get rootNodes(){const e=this._lView,t=e[1];return El(t,e,t.firstChild,[])}get context(){return this._lView[8]}get destroyed(){return 256==(256&this._lView[2])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const e=this._lView[3];if(it(e)){const t=e[8],n=t?t.indexOf(this):-1;n>-1&&(Ss(e,n),ii(t,n))}this._attachedToViewContainer=!1}ks(this._lView[1],this._lView)}onDestroy(e){Co(this._lView[1],this._lView,null,e)}markForCheck(){jo(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){Uo(this._lView[1],this._lView,this.context)}checkNoChanges(){!function(e,t,n){jt(!0);try{Uo(e,t,n)}finally{jt(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._attachedToViewContainer=!0}detachFromAppRef(){var e;this._appRef=null,Ns(this._lView[1],e=this._lView,e[11],2,null,null)}attachToAppRef(e){if(this._attachedToViewContainer)throw new Error("This view is already attached to a ViewContainer!");this._appRef=e}}class Ol extends Dl{constructor(e){super(e),this._view=e}detectChanges(){Wo(this._view)}checkNoChanges(){!function(e){jt(!0);try{Wo(e)}finally{jt(!1)}}(this._view)}get context(){return null}}const Ml=Il;let Tl=(()=>{class e{}return e.__NG_ELEMENT_ID__=Ml,e.__ChangeDetectorRef__=!0,e})();function Il(e=!1){return function(e,t,n){if(!n&&ot(e)){const n=Ct(e.index,t);return new Dl(n,n)}return 47&e.type?new Dl(t[16],t):null}(Ft(),It(),e)}const Rl=[new _l],Ll=new Sl([new gl]),Fl=new Pl(Rl),Bl=function(){return Hl(Ft(),It())};let zl=(()=>{class e{}return e.__NG_ELEMENT_ID__=Bl,e})();const Vl=zl,Nl=class extends Vl{constructor(e,t,n){super(),this._declarationLView=e,this._declarationTContainer=t,this.elementRef=n}createEmbeddedView(e){const t=this._declarationTContainer.tViews,n=ho(this._declarationLView,t,e,16,null,t.declTNode,null,null,null,null);n[17]=this._declarationLView[this._declarationTContainer.index];const i=this._declarationLView[19];return null!==i&&(n[19]=i.createEmbeddedView(t)),fo(t,n,e),new Dl(n)}};function Hl(e,t){return 4&e.type?new Nl(t,e,sl(e,t)):null}class jl{}class Ul{}const Wl=function(){return Ql(Ft(),It())};let Gl=(()=>{class e{}return e.__NG_ELEMENT_ID__=Wl,e})();const $l=Gl,ql=class extends $l{constructor(e,t,n){super(),this._lContainer=e,this._hostTNode=t,this._hostLView=n}get element(){return sl(this._hostTNode,this._hostLView)}get injector(){return new Gn(this._hostTNode,this._hostLView)}get parentInjector(){const e=In(this._hostTNode,this._hostLView);if(Cn(e)){const t=kn(e,this._hostLView),n=Sn(e);return new Gn(t[1].data[n+8],t)}return new Gn(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(e){const t=Yl(this._lContainer);return null!==t&&t[e]||null}get length(){return this._lContainer.length-10}createEmbeddedView(e,t,n){const i=e.createEmbeddedView(t||{});return this.insert(i,n),i}createComponent(e,t,n,i,s){const o=n||this.parentInjector;if(!s&&null==e.ngModule&&o){const e=o.get(jl,null);e&&(s=e)}const r=e.create(o,i,void 0,s);return this.insert(r.hostView,t),r}insert(e,t){const n=e._lView,i=n[1];if(it(n[3])){const t=this.indexOf(e);if(-1!==t)this.detach(t);else{const t=n[3],i=new ql(t,t[6],t[3]);i.detach(i.indexOf(e))}}const s=this._adjustIndex(t),o=this._lContainer;!function(e,t,n,i){const s=10+i,o=n.length;i>0&&(n[s-1][4]=t),i<o-10?(t[4]=n[s],ni(n,10+i,t)):(n.push(t),t[4]=null),t[3]=n;const r=t[17];null!==r&&n!==r&&function(e,t){const n=e[9];t[16]!==t[3][3][16]&&(e[2]=!0),null===n?e[9]=[t]:n.push(t)}(r,t);const a=t[19];null!==a&&a.insertView(e),t[2]|=128}(i,n,o,s);const r=zs(s,o),a=n[11],l=Ts(a,o[7]);return null!==l&&function(e,t,n,i,s,o){i[0]=s,i[6]=t,Ns(e,i,n,1,s,o)}(i,o[6],a,n,l,r),e.attachToViewContainerRef(),ni(Zl(o),s,e),e}move(e,t){return this.insert(e,t)}indexOf(e){const t=Yl(this._lContainer);return null!==t?t.indexOf(e):-1}remove(e){const t=this._adjustIndex(e,-1),n=Ss(this._lContainer,t);n&&(ii(Zl(this._lContainer),t),ks(n[1],n))}detach(e){const t=this._adjustIndex(e,-1),n=Ss(this._lContainer,t);return n&&null!=ii(Zl(this._lContainer),t)?new Dl(n):null}_adjustIndex(e,t=0){return null==e?this.length+t:e}};function Yl(e){return e[8]}function Zl(e){return e[8]||(e[8]=[])}function Ql(e,t){let n;const i=t[e.index];if(it(i))n=i;else{let s;if(8&e.type)s=yt(i);else{const n=t[11];s=n.createComment("");const i=_t(e,t);Ds(n,Ts(n,i),s,function(e,t){return bt(e)?e.nextSibling(t):t.nextSibling}(n,i),!1)}t[e.index]=n=Bo(i,t,s,e),Ho(t,n)}return new ql(n,e,t)}const Xl={};class Kl extends nl{constructor(e){super(),this.ngModule=e}resolveComponentFactory(e){const t=et(e);return new tc(t,this.ngModule)}}function Jl(e){const t=[];for(let n in e)e.hasOwnProperty(n)&&t.push({propName:e[n],templateName:n});return t}const ec=new Xn("SCHEDULER_TOKEN",{providedIn:"root",factory:()=>hs});class tc extends el{constructor(e,t){super(),this.componentDef=e,this.ngModule=t,this.componentType=e.type,this.selector=e.selectors.map(eo).join(","),this.ngContentSelectors=e.ngContentSelectors?e.ngContentSelectors:[],this.isBoundToModule=!!t}get inputs(){return Jl(this.componentDef.inputs)}get outputs(){return Jl(this.componentDef.outputs)}create(e,t,n,i){const s=(i=i||this.ngModule)?function(e,t){return{get:(n,i,s)=>{const o=e.get(n,Xl,s);return o!==Xl||i===Xl?o:t.get(n,i,s)}}}(e,i.injector):e,o=s.get(ll,vt),r=s.get(ul,null),a=o.createRenderer(null,this.componentDef),l=this.componentDef.selectors[0][0]||"div",c=n?function(e,t,n){if(bt(e))return e.selectRootElement(t,n===De.ShadowDom);let i="string"==typeof t?e.querySelector(t):t;return i.textContent="",i}(a,n,this.componentDef.encapsulation):As(o.createRenderer(null,this.componentDef),l,function(e){const t=e.toLowerCase();return"svg"===t?"http://www.w3.org/2000/svg":"math"===t?"http://www.w3.org/1998/MathML/":null}(l)),d=this.componentDef.onPush?576:528,u={components:[],scheduler:hs,clean:$o,playerHandler:null,flags:0},h=Ao(0,null,null,1,0,null,null,null,null,null),p=ho(null,h,u,d,null,null,o,a,r,s);let g,f;en(p);try{const e=function(e,t,n,i,s,o){const r=n[1];n[20]=e;const a=po(r,20,2,"#host",null),l=a.mergedAttrs=t.hostAttrs;null!==l&&(Jo(a,l,!0),null!==e&&(yn(s,e,l),null!==a.classes&&Us(s,e,a.classes),null!==a.styles&&js(s,e,a.styles)));const c=i.createRenderer(e,t),d=ho(n,xo(t),null,t.onPush?64:16,n[20],a,i,c,null,null);return r.firstCreatePass&&(Rn(On(a,n),r,t.type),Oo(r,a),To(a,n.length,1)),Ho(n,d),n[20]=d}(c,this.componentDef,p,o,a);if(c)if(n)yn(a,c,["ng-version",pl.full]);else{const{attrs:e,classes:t}=function(e){const t=[],n=[];let i=1,s=2;for(;i<e.length;){let o=e[i];if("string"==typeof o)2===s?""!==o&&t.push(o,e[++i]):8===s&&n.push(o);else{if(!Zs(s))break;s=o}i++}return{attrs:t,classes:n}}(this.componentDef.selectors[0]);e&&yn(a,c,e),t&&t.length>0&&Us(a,c,t.join(" "))}if(f=xt(h,20),void 0!==t){const e=f.projection=[];for(let n=0;n<this.ngContentSelectors.length;n++){const i=t[n];e.push(null!=i?Array.from(i):null)}}g=function(e,t,n,i,s){const o=n[1],r=function(e,t,n){const i=Ft();e.firstCreatePass&&(n.providersResolver&&n.providersResolver(n),Io(e,i,t,go(e,t,1,null),n));const s=jn(t,e,i.directiveStart,i);us(s,t);const o=_t(i,t);return o&&us(o,t),s}(o,n,t);if(i.components.push(r),e[8]=r,s&&s.forEach(e=>e(r,t)),t.contentQueries){const e=Ft();t.contentQueries(1,r,e.directiveStart)}const a=Ft();return!o.firstCreatePass||null===t.hostBindings&&null===t.hostAttrs||(ln(a.index),Eo(n[1],a,0,a.directiveStart,a.directiveEnd,t),Do(t,r)),r}(e,this.componentDef,p,u,[br]),fo(h,p,null)}finally{rn()}return new nc(this.componentType,g,sl(f,p),p,f)}}class nc extends class{}{constructor(e,t,n,i,s){super(),this.location=n,this._rootLView=i,this._tNode=s,this.instance=t,this.hostView=this.changeDetectorRef=new Ol(i),this.componentType=e}get injector(){return new Gn(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(e){this.hostView.onDestroy(e)}}const ic=new Map;class sc extends jl{constructor(e,t){super(),this._parent=t,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new Kl(this);const n=tt(e),i=e[je]||null;i&&Ga(i),this._bootstrapComponents=fs(n.bootstrap),this._r3Injector=lr(e,t,[{provide:jl,useValue:this},{provide:nl,useValue:this.componentFactoryResolver}],ie(e)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(e)}get(e,t=mr.THROW_IF_NOT_FOUND,n=Ae.Default){return e===mr||e===jl||e===er?this:this._r3Injector.get(e,t,n)}destroy(){const e=this._r3Injector;!e.destroyed&&e.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(e){this.destroyCbs.push(e)}}class oc extends Ul{constructor(e){super(),this.moduleType=e,null!==tt(e)&&function(e){const t=new Set;!function e(n){const i=tt(n,!0),s=i.id;null!==s&&(function(e,t,n){if(t&&t!==n)throw new Error(`Duplicate module registered for ${e} - ${ie(t)} vs ${ie(t.name)}`)}(s,ic.get(s),n),ic.set(s,n));const o=fs(i.imports);for(const r of o)t.has(r)||(t.add(r),e(r))}(e)}(e)}create(e){return new sc(this.moduleType,e)}}function rc(e,t,n){const i=Ut()+e,s=It();return s[i]===to?Er(s,i,n?t.call(n):t()):function(e,t){return e[t]}(s,i)}function ac(e,t,n,i){return dc(It(),Ut(),e,t,n,i)}function lc(e,t,n,i,s){return uc(It(),Ut(),e,t,n,i,s)}function cc(e,t){const n=e[t];return n===to?void 0:n}function dc(e,t,n,i,s,o){const r=t+n;return Dr(e,r,s)?Er(e,r+1,o?i.call(o,s):i(s)):cc(e,r+1)}function uc(e,t,n,i,s,o,r){const a=t+n;return Or(e,a,s,o)?Er(e,a+2,r?i.call(r,s,o):i(s,o)):cc(e,a+2)}function hc(e,t){const n=Rt();let i;const s=e+20;n.firstCreatePass?(i=function(e,t){if(t)for(let n=t.length-1;n>=0;n--){const i=t[n];if(e===i.name)return i}throw new ce("302",`The pipe '${e}' could not be found!`)}(t,n.pipeRegistry),n.data[s]=i,i.onDestroy&&(n.destroyHooks||(n.destroyHooks=[])).push(s,i.onDestroy)):i=n.data[s];const o=i.factory||(i.factory=lt(i.type)),r=Se(zr);try{const e=En(!1),t=o();return En(e),function(e,t,n,i){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=i}(n,It(),s,t),t}finally{Se(r)}}function pc(e,t,n){const i=e+20,s=It(),o=At(s,i);return vc(s,bc(s,i)?dc(s,Ut(),t,o.transform,n,o):o.transform(n))}function gc(e,t,n,i){const s=e+20,o=It(),r=At(o,s);return vc(o,bc(o,s)?uc(o,Ut(),t,r.transform,n,i,r):r.transform(n,i))}function fc(e,t,n,i,s){const o=e+20,r=It(),a=At(r,o);return vc(r,bc(r,o)?function(e,t,n,i,s,o,r,a){const l=t+n;return Mr(e,l,s,o,r)?Er(e,l+3,a?i.call(a,s,o,r):i(s,o,r)):cc(e,l+3)}(r,Ut(),t,a.transform,n,i,s,a):a.transform(n,i,s))}function mc(e,t,n,i,s,o){const r=e+20,a=It(),l=At(a,r);return vc(a,bc(a,r)?function(e,t,n,i,s,o,r,a,l){const c=t+n;return Tr(e,c,s,o,r,a)?Er(e,c+4,l?i.call(l,s,o,r,a):i(s,o,r,a)):cc(e,c+4)}(a,Ut(),t,l.transform,n,i,s,o,l):l.transform(n,i,s,o))}function bc(e,t){return e[1].data[t].pure}function vc(e,t){return Sr.isWrapped(t)&&(t=Sr.unwrap(t),e[Wt()]=to),t}const yc=class extends A{constructor(e=!1){super(),this.__isAsync=e}emit(e){super.next(e)}subscribe(e,t,n){let i,s=e=>null,o=()=>null;e&&"object"==typeof e?(i=this.__isAsync?t=>{setTimeout(()=>e.next(t))}:t=>{e.next(t)},e.error&&(s=this.__isAsync?t=>{setTimeout(()=>e.error(t))}:t=>{e.error(t)}),e.complete&&(o=this.__isAsync?()=>{setTimeout(()=>e.complete())}:()=>{e.complete()})):(i=this.__isAsync?t=>{setTimeout(()=>e(t))}:t=>{e(t)},t&&(s=this.__isAsync?e=>{setTimeout(()=>t(e))}:e=>{t(e)}),n&&(o=this.__isAsync?()=>{setTimeout(()=>n())}:()=>{n()}));const r=super.subscribe(i,s,o);return e instanceof u&&e.add(r),r}};function wc(){return this._results[Cr()]()}class _c{constructor(e=!1){this._emitDistinctChangesOnly=e,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const t=Cr(),n=_c.prototype;n[t]||(n[t]=wc)}get changes(){return this._changes||(this._changes=new yc)}get(e){return this._results[e]}map(e){return this._results.map(e)}filter(e){return this._results.filter(e)}find(e){return this._results.find(e)}reduce(e,t){return this._results.reduce(e,t)}forEach(e){this._results.forEach(e)}some(e){return this._results.some(e)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(e,t){this.dirty=!1;const n=ei(e);(this._changesDetected=!function(e,t,n){if(e.length!==t.length)return!1;for(let i=0;i<e.length;i++){let s=e[i],o=t[i];if(n&&(s=n(s),o=n(o)),o!==s)return!1}return!0}(this._results,n,t))&&(this._results=n,this.length=n.length,this.last=n[this.length-1],this.first=n[0])}notifyOnChanges(){!this._changes||!this._changesDetected&&this._emitDistinctChangesOnly||this._changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}class xc{constructor(e){this.queryList=e,this.matches=null}clone(){return new xc(this.queryList)}setDirty(){this.queryList.setDirty()}}class Ac{constructor(e=[]){this.queries=e}createEmbeddedView(e){const t=e.queries;if(null!==t){const n=null!==e.contentQueries?e.contentQueries[0]:t.length,i=[];for(let e=0;e<n;e++){const n=t.getByIndex(e);i.push(this.queries[n.indexInDeclarationView].clone())}return new Ac(i)}return null}insertView(e){this.dirtyQueriesWithMatches(e)}detachView(e){this.dirtyQueriesWithMatches(e)}dirtyQueriesWithMatches(e){for(let t=0;t<this.queries.length;t++)null!==Bc(e,t).matches&&this.queries[t].setDirty()}}class Cc{constructor(e,t,n=null){this.predicate=e,this.flags=t,this.read=n}}class Sc{constructor(e=[]){this.queries=e}elementStart(e,t){for(let n=0;n<this.queries.length;n++)this.queries[n].elementStart(e,t)}elementEnd(e){for(let t=0;t<this.queries.length;t++)this.queries[t].elementEnd(e)}embeddedTView(e){let t=null;for(let n=0;n<this.length;n++){const i=null!==t?t.length:0,s=this.getByIndex(n).embeddedTView(e,i);s&&(s.indexInDeclarationView=n,null!==t?t.push(s):t=[s])}return null!==t?new Sc(t):null}template(e,t){for(let n=0;n<this.queries.length;n++)this.queries[n].template(e,t)}getByIndex(e){return this.queries[e]}get length(){return this.queries.length}track(e){this.queries.push(e)}}class kc{constructor(e,t=-1){this.metadata=e,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=t}elementStart(e,t){this.isApplyingToNode(t)&&this.matchTNode(e,t)}elementEnd(e){this._declarationNodeIndex===e.index&&(this._appliesToNextNode=!1)}template(e,t){this.elementStart(e,t)}embeddedTView(e,t){return this.isApplyingToNode(e)?(this.crossesNgTemplate=!0,this.addMatch(-e.index,t),new kc(this.metadata)):null}isApplyingToNode(e){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){const t=this._declarationNodeIndex;let n=e.parent;for(;null!==n&&8&n.type&&n.index!==t;)n=n.parent;return t===(null!==n?n.index:-1)}return this._appliesToNextNode}matchTNode(e,t){const n=this.metadata.predicate;if(Array.isArray(n))for(let i=0;i<n.length;i++){const s=n[i];this.matchTNodeWithReadOption(e,t,Pc(t,s)),this.matchTNodeWithReadOption(e,t,Hn(t,e,s,!1,!1))}else n===zl?4&t.type&&this.matchTNodeWithReadOption(e,t,-1):this.matchTNodeWithReadOption(e,t,Hn(t,e,n,!1,!1))}matchTNodeWithReadOption(e,t,n){if(null!==n){const i=this.metadata.read;if(null!==i)if(i===rl||i===Gl||i===zl&&4&t.type)this.addMatch(t.index,-2);else{const n=Hn(t,e,i,!1,!1);null!==n&&this.addMatch(t.index,n)}else this.addMatch(t.index,n)}}addMatch(e,t){null===this.matches?this.matches=[e,t]:this.matches.push(e,t)}}function Pc(e,t){const n=e.localNames;if(null!==n)for(let i=0;i<n.length;i+=2)if(n[i]===t)return n[i+1];return null}function Ec(e,t,n,i){return-1===n?function(e,t){return 11&e.type?sl(e,t):4&e.type?Hl(e,t):null}(t,e):-2===n?function(e,t,n){return n===rl?sl(t,e):n===zl?Hl(t,e):n===Gl?Ql(t,e):void 0}(e,t,i):jn(e,e[1],n,t)}function Dc(e,t,n,i){const s=t[19].queries[i];if(null===s.matches){const i=e.data,o=n.matches,r=[];for(let e=0;e<o.length;e+=2){const s=o[e];r.push(s<0?null:Ec(t,i[s],o[e+1],n.metadata.read))}s.matches=r}return s.matches}function Oc(e,t,n,i){const s=e.queries.getByIndex(n),o=s.matches;if(null!==o){const r=Dc(e,t,s,n);for(let e=0;e<o.length;e+=2){const n=o[e];if(n>0)i.push(r[e/2]);else{const s=o[e+1],r=t[-n];for(let e=10;e<r.length;e++){const t=r[e];t[17]===t[3]&&Oc(t[1],t,s,i)}if(null!==r[9]){const e=r[9];for(let t=0;t<e.length;t++){const n=e[t];Oc(n[1],n,s,i)}}}}}return i}function Mc(e){const t=It(),n=Rt(),i=Qt();Xt(i+1);const s=Bc(n,i);if(e.dirty&&kt(t)===(2==(2&s.metadata.flags))){if(null===s.matches)e.reset([]);else{const o=s.crossesNgTemplate?Oc(n,t,i,[]):Dc(n,t,s,i);e.reset(o,al),e.notifyOnChanges()}return!0}return!1}function Tc(e,t,n){const i=Rt();i.firstCreatePass&&(Fc(i,new Cc(e,t,n),-1),2==(2&t)&&(i.staticViewQueries=!0)),Lc(i,It(),t)}function Ic(e,t,n,i){const s=Rt();if(s.firstCreatePass){const o=Ft();Fc(s,new Cc(t,n,i),o.index),function(e,t){const n=e.contentQueries||(e.contentQueries=[]);t!==(n.length?n[n.length-1]:-1)&&n.push(e.queries.length-1,t)}(s,e),2==(2&n)&&(s.staticContentQueries=!0)}Lc(s,It(),n)}function Rc(){return e=It(),t=Qt(),e[19].queries[t].queryList;var e,t}function Lc(e,t,n){const i=new _c(4==(4&n));Co(e,t,i,i.destroy),null===t[19]&&(t[19]=new Ac),t[19].queries.push(new xc(i))}function Fc(e,t,n){null===e.queries&&(e.queries=new Sc),e.queries.track(new kc(t,n))}function Bc(e,t){return e.queries.getByIndex(t)}function zc(e,t){return Hl(e,t)}function Vc(e=Ae.Default){const t=Il(!0);if(null!=t||e&Ae.Optional)return t;he("ChangeDetectorRef")}const Nc=new Xn("Application Initializer");let Hc=(()=>{class e{constructor(e){this.appInits=e,this.resolve=il,this.reject=il,this.initialized=!1,this.done=!1,this.donePromise=new Promise((e,t)=>{this.resolve=e,this.reject=t})}runInitializers(){if(this.initialized)return;const e=[],t=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let n=0;n<this.appInits.length;n++){const t=this.appInits[n]();Yr(t)&&e.push(t)}Promise.all(e).then(()=>{t()}).catch(e=>{this.reject(e)}),0===e.length&&t(),this.initialized=!0}}return e.\u0275fac=function(t){return new(t||e)(gi(Nc,8))},e.\u0275prov=pe({token:e,factory:e.\u0275fac}),e})();const jc=new Xn("AppId"),Uc={provide:jc,useFactory:function(){return`${Wc()}${Wc()}${Wc()}`},deps:[]};function Wc(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Gc=new Xn("Platform Initializer"),$c=new Xn("Platform ID"),qc=new Xn("appBootstrapListener");let Yc=(()=>{class e{log(e){console.log(e)}warn(e){console.warn(e)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=pe({token:e,factory:e.\u0275fac}),e})();const Zc=new Xn("LocaleId"),Qc=new Xn("DefaultCurrencyCode");class Xc{constructor(e,t){this.ngModuleFactory=e,this.componentFactories=t}}const Kc=function(e){return new oc(e)},Jc=Kc,ed=function(e){return Promise.resolve(Kc(e))},td=function(e){const t=Kc(e),n=fs(tt(e).declarations).reduce((e,t)=>{const n=et(t);return n&&e.push(new tc(n)),e},[]);return new Xc(t,n)},nd=td,id=function(e){return Promise.resolve(td(e))};let sd=(()=>{class e{constructor(){this.compileModuleSync=Jc,this.compileModuleAsync=ed,this.compileModuleAndAllComponentsSync=nd,this.compileModuleAndAllComponentsAsync=id}clearCache(){}clearCacheFor(e){}getModuleId(e){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=pe({token:e,factory:e.\u0275fac}),e})();const od=(()=>Promise.resolve(0))();function rd(e){"undefined"==typeof Zone?od.then(()=>{e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}class ad{constructor({enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:t=!1,shouldCoalesceRunChangeDetection:n=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new yc(!1),this.onMicrotaskEmpty=new yc(!1),this.onStable=new yc(!1),this.onError=new yc(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched(),this._nesting=0,this._outer=this._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(this._inner=this._inner.fork(new Zone.TaskTrackingZoneSpec)),e&&Zone.longStackTraceZoneSpec&&(this._inner=this._inner.fork(Zone.longStackTraceZoneSpec)),this.shouldCoalesceEventChangeDetection=!n&&t,this.shouldCoalesceRunChangeDetection=n,this.lastRequestAnimationFrameId=-1,this.nativeRequestAnimationFrame=function(){let e=Re.requestAnimationFrame,t=Re.cancelAnimationFrame;if("undefined"!=typeof Zone&&e&&t){const n=e[Zone.__symbol__("OriginalDelegate")];n&&(e=n);const i=t[Zone.__symbol__("OriginalDelegate")];i&&(t=i)}return{nativeRequestAnimationFrame:e,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,function(e){const t=()=>{!function(e){-1===e.lastRequestAnimationFrameId&&(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(Re,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,dd(e),cd(e)},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),dd(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,i,s,o,r,a)=>{try{return ud(e),n.invokeTask(s,o,r,a)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===o.type||e.shouldCoalesceRunChangeDetection)&&t(),hd(e)}},onInvoke:(n,i,s,o,r,a,l)=>{try{return ud(e),n.invoke(s,o,r,a,l)}finally{e.shouldCoalesceRunChangeDetection&&t(),hd(e)}},onHasTask:(t,n,i,s)=>{t.hasTask(i,s),n===i&&("microTask"==s.change?(e._hasPendingMicrotasks=s.microTask,dd(e),cd(e)):"macroTask"==s.change&&(e.hasPendingMacrotasks=s.macroTask))},onHandleError:(t,n,i,s)=>(t.handleError(i,s),e.runOutsideAngular(()=>e.onError.emit(s)),!1)})}(this)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!ad.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(ad.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(e,t,n){return this._inner.run(e,t,n)}runTask(e,t,n,i){const s=this._inner,o=s.scheduleEventTask("NgZoneEvent: "+i,e,ld,il,il);try{return s.runTask(o,t,n)}finally{s.cancelTask(o)}}runGuarded(e,t,n){return this._inner.runGuarded(e,t,n)}runOutsideAngular(e){return this._outer.run(e)}}const ld={};function cd(e){if(0==e._nesting&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function dd(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function ud(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function hd(e){e._nesting--,cd(e)}class pd{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new yc,this.onMicrotaskEmpty=new yc,this.onStable=new yc,this.onError=new yc}run(e,t,n){return e.apply(t,n)}runGuarded(e,t,n){return e.apply(t,n)}runOutsideAngular(e){return e()}runTask(e,t,n,i){return e.apply(t,n)}}let gd=(()=>{class e{constructor(e){this._ngZone=e,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),e.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{ad.assertNotInAngularZone(),rd(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())rd(()=>{for(;0!==this._callbacks.length;){let e=this._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb(this._didWork)}this._didWork=!1});else{let e=this.getPendingTasks();this._callbacks=this._callbacks.filter(t=>!t.updateCb||!t.updateCb(e)||(clearTimeout(t.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(e=>({source:e.source,creationLocation:e.creationLocation,data:e.data})):[]}addCallback(e,t,n){let i=-1;t&&t>0&&(i=setTimeout(()=>{this._callbacks=this._callbacks.filter(e=>e.timeoutId!==i),e(this._didWork,this.getPendingTasks())},t)),this._callbacks.push({doneCb:e,timeoutId:i,updateCb:n})}whenStable(e,t,n){if(n&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/dist/task-tracking.js" loaded?');this.addCallback(e,t,n),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(e,t,n){return[]}}return e.\u0275fac=function(t){return new(t||e)(gi(ad))},e.\u0275prov=pe({token:e,factory:e.\u0275fac}),e})(),fd=(()=>{class e{constructor(){this._applications=new Map,vd.addToWindow(this)}registerApplication(e,t){this._applications.set(e,t)}unregisterApplication(e){this._applications.delete(e)}unregisterAllApplications(){this._applications.clear()}getTestability(e){return this._applications.get(e)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(e,t=!0){return vd.findTestabilityInTree(this,e,t)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=pe({token:e,factory:e.\u0275fac}),e})();class md{addToWindow(e){}findTestabilityInTree(e,t,n){return null}}let bd,vd=new md,yd=!0,wd=!1;function _d(){return wd=!0,yd}const xd=new Xn("AllowMultipleToken");class Ad{constructor(e,t){this.name=e,this.token=t}}function Cd(e,t,n=[]){const i="Platform: "+t,s=new Xn(i);return(t=[])=>{let o=Sd();if(!o||o.injector.get(xd,!1))if(e)e(n.concat(t).concat({provide:s,useValue:!0}));else{const e=n.concat(t).concat({provide:s,useValue:!0},{provide:nr,useValue:"platform"});!function(e){if(bd&&!bd.destroyed&&!bd.injector.get(xd,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");bd=e.get(kd);const t=e.get(Gc,null);t&&t.forEach(e=>e())}(mr.create({providers:e,name:i}))}return function(e){const t=Sd();if(!t)throw new Error("No platform exists!");if(!t.injector.get(e,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return t}(s)}}function Sd(){return bd&&!bd.destroyed?bd:null}let kd=(()=>{class e{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,t){const n=function(e,t){let n;return n="noop"===e?new pd:("zone.js"===e?void 0:e)||new ad({enableLongStackTrace:_d(),shouldCoalesceEventChangeDetection:!!(null==t?void 0:t.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==t?void 0:t.ngZoneRunCoalescing)}),n}(t?t.ngZone:void 0,{ngZoneEventCoalescing:t&&t.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:t&&t.ngZoneRunCoalescing||!1}),i=[{provide:ad,useValue:n}];return n.run(()=>{const t=mr.create({providers:i,parent:this.injector,name:e.moduleType.name}),s=e.create(t),o=s.injector.get(ds,null);if(!o)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return n.runOutsideAngular(()=>{const e=n.onError.subscribe({next:e=>{o.handleError(e)}});s.onDestroy(()=>{Dd(this._modules,s),e.unsubscribe()})}),function(e,t,n){try{const i=n();return Yr(i)?i.catch(n=>{throw t.runOutsideAngular(()=>e.handleError(n)),n}):i}catch(i){throw t.runOutsideAngular(()=>e.handleError(i)),i}}(o,n,()=>{const e=s.injector.get(Hc);return e.runInitializers(),e.donePromise.then(()=>(Ga(s.injector.get(Zc,"en-US")||"en-US"),this._moduleDoBootstrap(s),s))})})}bootstrapModule(e,t=[]){const n=Pd({},t);return function(e,t,n){const i=new oc(n);return Promise.resolve(i)}(0,0,e).then(e=>this.bootstrapModuleFactory(e,n))}_moduleDoBootstrap(e){const t=e.injector.get(Ed);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(e=>t.bootstrap(e));else{if(!e.instance.ngDoBootstrap)throw new Error(`The module ${ie(e.instance.constructor)} was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.`);e.instance.ngDoBootstrap(t)}this._modules.push(e)}onDestroy(e){this._destroyListeners.push(e)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(e=>e.destroy()),this._destroyListeners.forEach(e=>e()),this._destroyed=!0}get destroyed(){return this._destroyed}}return e.\u0275fac=function(t){return new(t||e)(gi(mr))},e.\u0275prov=pe({token:e,factory:e.\u0275fac}),e})();function Pd(e,t){return Array.isArray(t)?t.reduce(Pd,e):Object.assign(Object.assign({},e),t)}let Ed=(()=>{class e{constructor(e,t,n,i,s){this._zone=e,this._injector=t,this._exceptionHandler=n,this._componentFactoryResolver=i,this._initStatus=s,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const o=new v(e=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{e.next(this._stable),e.complete()})}),r=new v(e=>{let t;this._zone.runOutsideAngular(()=>{t=this._zone.onStable.subscribe(()=>{ad.assertNotInAngularZone(),rd(()=>{this._stable||this._zone.hasPendingMacrotasks||this._zone.hasPendingMicrotasks||(this._stable=!0,e.next(!0))})})});const n=this._zone.onUnstable.subscribe(()=>{ad.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{e.next(!1)}))});return()=>{t.unsubscribe(),n.unsubscribe()}});this.isStable=G(o,r.pipe(ee()))}bootstrap(e,t){if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");let n;n=e instanceof el?e:this._componentFactoryResolver.resolveComponentFactory(e),this.componentTypes.push(n.componentType);const i=n.isBoundToModule?void 0:this._injector.get(jl),s=n.create(mr.NULL,[],t||n.selector,i),o=s.location.nativeElement,r=s.injector.get(gd,null),a=r&&s.injector.get(fd);return r&&a&&a.registerApplication(o,r),s.onDestroy(()=>{this.detachView(s.hostView),Dd(this.components,s),a&&a.unregisterApplication(o)}),this._loadComponent(s),s}tick(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;for(let e of this._views)e.detectChanges()}catch(e){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(e))}finally{this._runningTick=!1}}attachView(e){const t=e;this._views.push(t),t.attachToAppRef(this)}detachView(e){const t=e;Dd(this._views,t),t.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(qc,[]).concat(this._bootstrapListeners).forEach(t=>t(e))}ngOnDestroy(){this._views.slice().forEach(e=>e.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return e.\u0275fac=function(t){return new(t||e)(gi(ad),gi(mr),gi(ds),gi(nl),gi(Hc))},e.\u0275prov=pe({token:e,factory:e.\u0275fac}),e})();function Dd(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Od{}class Md{}const Td={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"};let Id=(()=>{class e{constructor(e,t){this._compiler=e,this._config=t||Td}load(e){return this.loadAndCompile(e)}loadAndCompile(e){let[t,i]=e.split("#");return void 0===i&&(i="default"),n("MYvV")(t).then(e=>e[i]).then(e=>Rd(e,t,i)).then(e=>this._compiler.compileModuleAsync(e))}loadFactory(e){let[t,i]=e.split("#"),s="NgFactory";return void 0===i&&(i="default",s=""),n("MYvV")(this._config.factoryPathPrefix+t+this._config.factoryPathSuffix).then(e=>e[i+s]).then(e=>Rd(e,t,i))}}return e.\u0275fac=function(t){return new(t||e)(gi(sd),gi(Md,8))},e.\u0275prov=pe({token:e,factory:e.\u0275fac}),e})();function Rd(e,t,n){if(!e)throw new Error(`Cannot find '${n}' in '${t}'`);return e}const Ld=Cd(null,"core",[{provide:$c,useValue:"unknown"},{provide:kd,deps:[mr]},{provide:fd,deps:[]},{provide:Yc,deps:[]}]),Fd=[{provide:Ed,useClass:Ed,deps:[ad,mr,ds,nl,Hc]},{provide:ec,deps:[ad],useFactory:function(e){let t=[];return e.onStable.subscribe(()=>{for(;t.length;)t.pop()()}),function(e){t.push(e)}}},{provide:Hc,useClass:Hc,deps:[[new yi,Nc]]},{provide:sd,useClass:sd,deps:[]},Uc,{provide:Sl,useFactory:function(){return Ll},deps:[]},{provide:Pl,useFactory:function(){return Fl},deps:[]},{provide:Zc,useFactory:function(e){return Ga(e=e||"undefined"!=typeof $localize&&$localize.locale||"en-US"),e},deps:[[new vi(Zc),new yi,new wi]]},{provide:Qc,useValue:"USD"}];let Bd=(()=>{class e{constructor(e){}}return e.\u0275fac=function(t){return new(t||e)(gi(Ed))},e.\u0275mod=Qe({type:e}),e.\u0275inj=fe({providers:Fd}),e})();const zd={production:!0,VERSION:n("kiQV").version,AUTHOR:n("kiQV").author};let Vd=null;function Nd(){return Vd}const Hd=new Xn("DocumentToken");let jd=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=pe({factory:Ud,token:e,providedIn:"platform"}),e})();function Ud(){return gi(Gd)}const Wd=new Xn("Location Initialized");let Gd=(()=>{class e extends jd{constructor(e){super(),this._doc=e,this._init()}_init(){this.location=Nd().getLocation(),this._history=Nd().getHistory()}getBaseHrefFromDOM(){return Nd().getBaseHref(this._doc)}onPopState(e){Nd().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",e,!1)}onHashChange(e){Nd().getGlobalEventTarget(this._doc,"window").addEventListener("hashchange",e,!1)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(e){this.location.pathname=e}pushState(e,t,n){$d()?this._history.pushState(e,t,n):this.location.hash=n}replaceState(e,t,n){$d()?this._history.replaceState(e,t,n):this.location.hash=n}forward(){this._history.forward()}back(){this._history.back()}getState(){return this._history.state}}return e.\u0275fac=function(t){return new(t||e)(gi(Hd))},e.\u0275prov=pe({factory:qd,token:e,providedIn:"platform"}),e})();function $d(){return!!window.history.pushState}function qd(){return new Gd(gi(Hd))}function Yd(e,t){if(0==e.length)return t;if(0==t.length)return e;let n=0;return e.endsWith("/")&&n++,t.startsWith("/")&&n++,2==n?e+t.substring(1):1==n?e+t:e+"/"+t}function Zd(e){const t=e.match(/#|\?|$/),n=t&&t.index||e.length;return e.slice(0,n-("/"===e[n-1]?1:0))+e.slice(n)}function Qd(e){return e&&"?"!==e[0]?"?"+e:e}let Xd=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=pe({factory:Kd,token:e,providedIn:"root"}),e})();function Kd(e){const t=gi(Hd).location;return new eu(gi(jd),t&&t.origin||"")}const Jd=new Xn("appBaseHref");let eu=(()=>{class e extends Xd{constructor(e,t){if(super(),this._platformLocation=e,null==t&&(t=this._platformLocation.getBaseHrefFromDOM()),null==t)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=t}onPopState(e){this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e)}getBaseHref(){return this._baseHref}prepareExternalUrl(e){return Yd(this._baseHref,e)}path(e=!1){const t=this._platformLocation.pathname+Qd(this._platformLocation.search),n=this._platformLocation.hash;return n&&e?`${t}${n}`:t}pushState(e,t,n,i){const s=this.prepareExternalUrl(n+Qd(i));this._platformLocation.pushState(e,t,s)}replaceState(e,t,n,i){const s=this.prepareExternalUrl(n+Qd(i));this._platformLocation.replaceState(e,t,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}}return e.\u0275fac=function(t){return new(t||e)(gi(jd),gi(Jd,8))},e.\u0275prov=pe({token:e,factory:e.\u0275fac}),e})(),tu=(()=>{class e extends Xd{constructor(e,t){super(),this._platformLocation=e,this._baseHref="",null!=t&&(this._baseHref=t)}onPopState(e){this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e)}getBaseHref(){return this._baseHref}path(e=!1){let t=this._platformLocation.hash;return null==t&&(t="#"),t.length>0?t.substring(1):t}prepareExternalUrl(e){const t=Yd(this._baseHref,e);return t.length>0?"#"+t:t}pushState(e,t,n,i){let s=this.prepareExternalUrl(n+Qd(i));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.pushState(e,t,s)}replaceState(e,t,n,i){let s=this.prepareExternalUrl(n+Qd(i));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(e,t,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}}return e.\u0275fac=function(t){return new(t||e)(gi(jd),gi(Jd,8))},e.\u0275prov=pe({token:e,factory:e.\u0275fac}),e})(),nu=(()=>{class e{constructor(e,t){this._subject=new yc,this._urlChangeListeners=[],this._platformStrategy=e;const n=this._platformStrategy.getBaseHref();this._platformLocation=t,this._baseHref=Zd(su(n)),this._platformStrategy.onPopState(e=>{this._subject.emit({url:this.path(!0),pop:!0,state:e.state,type:e.type})})}path(e=!1){return this.normalize(this._platformStrategy.path(e))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(e,t=""){return this.path()==this.normalize(e+Qd(t))}normalize(t){return e.stripTrailingSlash(function(e,t){return e&&t.startsWith(e)?t.substring(e.length):t}(this._baseHref,su(t)))}prepareExternalUrl(e){return e&&"/"!==e[0]&&(e="/"+e),this._platformStrategy.prepareExternalUrl(e)}go(e,t="",n=null){this._platformStrategy.pushState(n,"",e,t),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Qd(t)),n)}replaceState(e,t="",n=null){this._platformStrategy.replaceState(n,"",e,t),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Qd(t)),n)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}onUrlChange(e){this._urlChangeListeners.push(e),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(e=>{this._notifyUrlChangeListeners(e.url,e.state)}))}_notifyUrlChangeListeners(e="",t){this._urlChangeListeners.forEach(n=>n(e,t))}subscribe(e,t,n){return this._subject.subscribe({next:e,error:t,complete:n})}}return e.\u0275fac=function(t){return new(t||e)(gi(Xd),gi(jd))},e.normalizeQueryParams=Qd,e.joinWithSlash=Yd,e.stripTrailingSlash=Zd,e.\u0275prov=pe({factory:iu,token:e,providedIn:"root"}),e})();function iu(){return new nu(gi(Xd),gi(jd))}function su(e){return e.replace(/\/index.html$/,"")}var ou=function(e){return e[e.Zero=0]="Zero",e[e.One=1]="One",e[e.Two=2]="Two",e[e.Few=3]="Few",e[e.Many=4]="Many",e[e.Other=5]="Other",e}({}),ru=function(e){return e[e.Format=0]="Format",e[e.Standalone=1]="Standalone",e}({}),au=function(e){return e[e.Narrow=0]="Narrow",e[e.Abbreviated=1]="Abbreviated",e[e.Wide=2]="Wide",e[e.Short=3]="Short",e}({}),lu=function(e){return e[e.Short=0]="Short",e[e.Medium=1]="Medium",e[e.Long=2]="Long",e[e.Full=3]="Full",e}({}),cu=function(e){return e[e.Decimal=0]="Decimal",e[e.Group=1]="Group",e[e.List=2]="List",e[e.PercentSign=3]="PercentSign",e[e.PlusSign=4]="PlusSign",e[e.MinusSign=5]="MinusSign",e[e.Exponential=6]="Exponential",e[e.SuperscriptingExponent=7]="SuperscriptingExponent",e[e.PerMille=8]="PerMille",e[e[1/0]=9]="Infinity",e[e.NaN=10]="NaN",e[e.TimeSeparator=11]="TimeSeparator",e[e.CurrencyDecimal=12]="CurrencyDecimal",e[e.CurrencyGroup=13]="CurrencyGroup",e}({});function du(e,t){return fu(Ha(e)[Ua.DateFormat],t)}function uu(e,t){return fu(Ha(e)[Ua.TimeFormat],t)}function hu(e,t){return fu(Ha(e)[Ua.DateTimeFormat],t)}function pu(e,t){const n=Ha(e),i=n[Ua.NumberSymbols][t];if(void 0===i){if(t===cu.CurrencyDecimal)return n[Ua.NumberSymbols][cu.Decimal];if(t===cu.CurrencyGroup)return n[Ua.NumberSymbols][cu.Group]}return i}function gu(e){if(!e[Ua.ExtraData])throw new Error(`Missing extra locale data for the locale "${e[Ua.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function fu(e,t){for(let n=t;n>-1;n--)if(void 0!==e[n])return e[n];throw new Error("Locale data API: locale data undefined")}function mu(e){const[t,n]=e.split(":");return{hours:+t,minutes:+n}}const bu=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,vu={},yu=/((?:[^GyYMLwWdEabBhHmsSzZO']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;var wu=function(e){return e[e.Short=0]="Short",e[e.ShortGMT=1]="ShortGMT",e[e.Long=2]="Long",e[e.Extended=3]="Extended",e}({}),_u=function(e){return e[e.FullYear=0]="FullYear",e[e.Month=1]="Month",e[e.Date=2]="Date",e[e.Hours=3]="Hours",e[e.Minutes=4]="Minutes",e[e.Seconds=5]="Seconds",e[e.FractionalSeconds=6]="FractionalSeconds",e[e.Day=7]="Day",e}({}),xu=function(e){return e[e.DayPeriods=0]="DayPeriods",e[e.Days=1]="Days",e[e.Months=2]="Months",e[e.Eras=3]="Eras",e}({});function Au(e,t,n,i){let s=function(e){if(Fu(e))return e;if("number"==typeof e&&!isNaN(e))return new Date(e);if("string"==typeof e){if(e=e.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(e)){const[t,n=1,i=1]=e.split("-").map(e=>+e);return Cu(t,n-1,i)}const t=parseFloat(e);if(!isNaN(e-t))return new Date(t);let n;if(n=e.match(bu))return function(e){const t=new Date(0);let n=0,i=0;const s=e[8]?t.setUTCFullYear:t.setFullYear,o=e[8]?t.setUTCHours:t.setHours;e[9]&&(n=Number(e[9]+e[10]),i=Number(e[9]+e[11])),s.call(t,Number(e[1]),Number(e[2])-1,Number(e[3]));const r=Number(e[4]||0)-n,a=Number(e[5]||0)-i,l=Number(e[6]||0),c=Math.floor(1e3*parseFloat("0."+(e[7]||0)));return o.call(t,r,a,l,c),t}(n)}const t=new Date(e);if(!Fu(t))throw new Error(`Unable to convert "${e}" into a date`);return t}(e);t=Su(n,t)||t;let o,r=[];for(;t;){if(o=yu.exec(t),!o){r.push(t);break}{r=r.concat(o.slice(1));const e=r.pop();if(!e)break;t=e}}let a=s.getTimezoneOffset();i&&(a=Lu(i,a),s=function(e,t,n){const i=e.getTimezoneOffset();return function(e,t){return(e=new Date(e.getTime())).setMinutes(e.getMinutes()+t),e}(e,-1*(Lu(t,i)-i))}(s,i));let l="";return r.forEach(e=>{const t=function(e){if(Ru[e])return Ru[e];let t;switch(e){case"G":case"GG":case"GGG":t=Du(xu.Eras,au.Abbreviated);break;case"GGGG":t=Du(xu.Eras,au.Wide);break;case"GGGGG":t=Du(xu.Eras,au.Narrow);break;case"y":t=Eu(_u.FullYear,1,0,!1,!0);break;case"yy":t=Eu(_u.FullYear,2,0,!0,!0);break;case"yyy":t=Eu(_u.FullYear,3,0,!1,!0);break;case"yyyy":t=Eu(_u.FullYear,4,0,!1,!0);break;case"Y":t=Iu(1);break;case"YY":t=Iu(2,!0);break;case"YYY":t=Iu(3);break;case"YYYY":t=Iu(4);break;case"M":case"L":t=Eu(_u.Month,1,1);break;case"MM":case"LL":t=Eu(_u.Month,2,1);break;case"MMM":t=Du(xu.Months,au.Abbreviated);break;case"MMMM":t=Du(xu.Months,au.Wide);break;case"MMMMM":t=Du(xu.Months,au.Narrow);break;case"LLL":t=Du(xu.Months,au.Abbreviated,ru.Standalone);break;case"LLLL":t=Du(xu.Months,au.Wide,ru.Standalone);break;case"LLLLL":t=Du(xu.Months,au.Narrow,ru.Standalone);break;case"w":t=Tu(1);break;case"ww":t=Tu(2);break;case"W":t=Tu(1,!0);break;case"d":t=Eu(_u.Date,1);break;case"dd":t=Eu(_u.Date,2);break;case"E":case"EE":case"EEE":t=Du(xu.Days,au.Abbreviated);break;case"EEEE":t=Du(xu.Days,au.Wide);break;case"EEEEE":t=Du(xu.Days,au.Narrow);break;case"EEEEEE":t=Du(xu.Days,au.Short);break;case"a":case"aa":case"aaa":t=Du(xu.DayPeriods,au.Abbreviated);break;case"aaaa":t=Du(xu.DayPeriods,au.Wide);break;case"aaaaa":t=Du(xu.DayPeriods,au.Narrow);break;case"b":case"bb":case"bbb":t=Du(xu.DayPeriods,au.Abbreviated,ru.Standalone,!0);break;case"bbbb":t=Du(xu.DayPeriods,au.Wide,ru.Standalone,!0);break;case"bbbbb":t=Du(xu.DayPeriods,au.Narrow,ru.Standalone,!0);break;case"B":case"BB":case"BBB":t=Du(xu.DayPeriods,au.Abbreviated,ru.Format,!0);break;case"BBBB":t=Du(xu.DayPeriods,au.Wide,ru.Format,!0);break;case"BBBBB":t=Du(xu.DayPeriods,au.Narrow,ru.Format,!0);break;case"h":t=Eu(_u.Hours,1,-12);break;case"hh":t=Eu(_u.Hours,2,-12);break;case"H":t=Eu(_u.Hours,1);break;case"HH":t=Eu(_u.Hours,2);break;case"m":t=Eu(_u.Minutes,1);break;case"mm":t=Eu(_u.Minutes,2);break;case"s":t=Eu(_u.Seconds,1);break;case"ss":t=Eu(_u.Seconds,2);break;case"S":t=Eu(_u.FractionalSeconds,1);break;case"SS":t=Eu(_u.FractionalSeconds,2);break;case"SSS":t=Eu(_u.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":t=Ou(wu.Short);break;case"ZZZZZ":t=Ou(wu.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":t=Ou(wu.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":t=Ou(wu.Long);break;default:return null}return Ru[e]=t,t}(e);l+=t?t(s,n,a):"''"===e?"'":e.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),l}function Cu(e,t,n){const i=new Date(0);return i.setFullYear(e,t,n),i.setHours(0,0,0),i}function Su(e,t){const n=function(e){return Ha(e)[Ua.LocaleId]}(e);if(vu[n]=vu[n]||{},vu[n][t])return vu[n][t];let i="";switch(t){case"shortDate":i=du(e,lu.Short);break;case"mediumDate":i=du(e,lu.Medium);break;case"longDate":i=du(e,lu.Long);break;case"fullDate":i=du(e,lu.Full);break;case"shortTime":i=uu(e,lu.Short);break;case"mediumTime":i=uu(e,lu.Medium);break;case"longTime":i=uu(e,lu.Long);break;case"fullTime":i=uu(e,lu.Full);break;case"short":const t=Su(e,"shortTime"),n=Su(e,"shortDate");i=ku(hu(e,lu.Short),[t,n]);break;case"medium":const s=Su(e,"mediumTime"),o=Su(e,"mediumDate");i=ku(hu(e,lu.Medium),[s,o]);break;case"long":const r=Su(e,"longTime"),a=Su(e,"longDate");i=ku(hu(e,lu.Long),[r,a]);break;case"full":const l=Su(e,"fullTime"),c=Su(e,"fullDate");i=ku(hu(e,lu.Full),[l,c])}return i&&(vu[n][t]=i),i}function ku(e,t){return t&&(e=e.replace(/\{([^}]+)}/g,function(e,n){return null!=t&&n in t?t[n]:e})),e}function Pu(e,t,n="-",i,s){let o="";(e<0||s&&e<=0)&&(s?e=1-e:(e=-e,o=n));let r=String(e);for(;r.length<t;)r="0"+r;return i&&(r=r.substr(r.length-t)),o+r}function Eu(e,t,n=0,i=!1,s=!1){return function(o,r){let a=function(e,t){switch(e){case _u.FullYear:return t.getFullYear();case _u.Month:return t.getMonth();case _u.Date:return t.getDate();case _u.Hours:return t.getHours();case _u.Minutes:return t.getMinutes();case _u.Seconds:return t.getSeconds();case _u.FractionalSeconds:return t.getMilliseconds();case _u.Day:return t.getDay();default:throw new Error(`Unknown DateType value "${e}".`)}}(e,o);if((n>0||a>-n)&&(a+=n),e===_u.Hours)0===a&&-12===n&&(a=12);else if(e===_u.FractionalSeconds)return l=t,Pu(a,3).substr(0,l);var l;const c=pu(r,cu.MinusSign);return Pu(a,t,c,i,s)}}function Du(e,t,n=ru.Format,i=!1){return function(s,o){return function(e,t,n,i,s,o){switch(n){case xu.Months:return function(e,t,n){const i=Ha(e),s=fu([i[Ua.MonthsFormat],i[Ua.MonthsStandalone]],t);return fu(s,n)}(t,s,i)[e.getMonth()];case xu.Days:return function(e,t,n){const i=Ha(e),s=fu([i[Ua.DaysFormat],i[Ua.DaysStandalone]],t);return fu(s,n)}(t,s,i)[e.getDay()];case xu.DayPeriods:const r=e.getHours(),a=e.getMinutes();if(o){const e=function(e){const t=Ha(e);return gu(t),(t[Ua.ExtraData][2]||[]).map(e=>"string"==typeof e?mu(e):[mu(e[0]),mu(e[1])])}(t),n=function(e,t,n){const i=Ha(e);gu(i);const s=fu([i[Ua.ExtraData][0],i[Ua.ExtraData][1]],t)||[];return fu(s,n)||[]}(t,s,i),o=e.findIndex(e=>{if(Array.isArray(e)){const[t,n]=e,i=r>=t.hours&&a>=t.minutes,s=r<n.hours||r===n.hours&&a<n.minutes;if(t.hours<n.hours){if(i&&s)return!0}else if(i||s)return!0}else if(e.hours===r&&e.minutes===a)return!0;return!1});if(-1!==o)return n[o]}return function(e,t,n){const i=Ha(e),s=fu([i[Ua.DayPeriodsFormat],i[Ua.DayPeriodsStandalone]],t);return fu(s,n)}(t,s,i)[r<12?0:1];case xu.Eras:return function(e,t){return fu(Ha(e)[Ua.Eras],t)}(t,i)[e.getFullYear()<=0?0:1];default:throw new Error("unexpected translation type "+n)}}(s,o,e,t,n,i)}}function Ou(e){return function(t,n,i){const s=-1*i,o=pu(n,cu.MinusSign),r=s>0?Math.floor(s/60):Math.ceil(s/60);switch(e){case wu.Short:return(s>=0?"+":"")+Pu(r,2,o)+Pu(Math.abs(s%60),2,o);case wu.ShortGMT:return"GMT"+(s>=0?"+":"")+Pu(r,1,o);case wu.Long:return"GMT"+(s>=0?"+":"")+Pu(r,2,o)+":"+Pu(Math.abs(s%60),2,o);case wu.Extended:return 0===i?"Z":(s>=0?"+":"")+Pu(r,2,o)+":"+Pu(Math.abs(s%60),2,o);default:throw new Error(`Unknown zone width "${e}"`)}}}function Mu(e){return Cu(e.getFullYear(),e.getMonth(),e.getDate()+(4-e.getDay()))}function Tu(e,t=!1){return function(n,i){let s;if(t){const e=new Date(n.getFullYear(),n.getMonth(),1).getDay()-1,t=n.getDate();s=1+Math.floor((t+e)/7)}else{const e=Mu(n),t=function(e){const t=Cu(e,0,1).getDay();return Cu(e,0,1+(t<=4?4:11)-t)}(e.getFullYear()),i=e.getTime()-t.getTime();s=1+Math.round(i/6048e5)}return Pu(s,e,pu(i,cu.MinusSign))}}function Iu(e,t=!1){return function(n,i){return Pu(Mu(n).getFullYear(),e,pu(i,cu.MinusSign),t)}}const Ru={};function Lu(e,t){e=e.replace(/:/g,"");const n=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return isNaN(n)?t:n}function Fu(e){return e instanceof Date&&!isNaN(e.valueOf())}class Bu{}let zu=(()=>{class e extends Bu{constructor(e){super(),this.locale=e}getPluralCategory(e,t){switch(function(e){return Ha(e)[Ua.PluralCase]}(t||this.locale)(e)){case ou.Zero:return"zero";case ou.One:return"one";case ou.Two:return"two";case ou.Few:return"few";case ou.Many:return"many";default:return"other"}}}return e.\u0275fac=function(t){return new(t||e)(gi(Zc))},e.\u0275prov=pe({token:e,factory:e.\u0275fac}),e})();function Vu(e,t){t=encodeURIComponent(t);for(const n of e.split(";")){const e=n.indexOf("="),[i,s]=-1==e?[n,""]:[n.slice(0,e),n.slice(e+1)];if(i.trim()===t)return decodeURIComponent(s)}return null}let Nu=(()=>{class e{constructor(e,t,n,i){this._iterableDiffers=e,this._keyValueDiffers=t,this._ngEl=n,this._renderer=i,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(e){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof e?e.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(e){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof e?e.split(/\s+/):e,this._rawClass&&(kr(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const e=this._iterableDiffer.diff(this._rawClass);e&&this._applyIterableChanges(e)}else if(this._keyValueDiffer){const e=this._keyValueDiffer.diff(this._rawClass);e&&this._applyKeyValueChanges(e)}}_applyKeyValueChanges(e){e.forEachAddedItem(e=>this._toggleClass(e.key,e.currentValue)),e.forEachChangedItem(e=>this._toggleClass(e.key,e.currentValue)),e.forEachRemovedItem(e=>{e.previousValue&&this._toggleClass(e.key,!1)})}_applyIterableChanges(e){e.forEachAddedItem(e=>{if("string"!=typeof e.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got "+ie(e.item));this._toggleClass(e.item,!0)}),e.forEachRemovedItem(e=>this._toggleClass(e.item,!1))}_applyClasses(e){e&&(Array.isArray(e)||e instanceof Set?e.forEach(e=>this._toggleClass(e,!0)):Object.keys(e).forEach(t=>this._toggleClass(t,!!e[t])))}_removeClasses(e){e&&(Array.isArray(e)||e instanceof Set?e.forEach(e=>this._toggleClass(e,!1)):Object.keys(e).forEach(e=>this._toggleClass(e,!1)))}_toggleClass(e,t){(e=e.trim())&&e.split(/\s+/g).forEach(e=>{t?this._renderer.addClass(this._ngEl.nativeElement,e):this._renderer.removeClass(this._ngEl.nativeElement,e)})}}return e.\u0275fac=function(t){return new(t||e)(zr(Sl),zr(Pl),zr(rl),zr(cl))},e.\u0275dir=Ke({type:e,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),e})();class Hu{constructor(e,t,n,i){this.$implicit=e,this.ngForOf=t,this.index=n,this.count=i}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let ju=(()=>{class e{constructor(e,t,n){this._viewContainer=e,this._template=t,this._differs=n,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){this._trackByFn=e}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(e){e&&(this._template=e)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const n=this._ngForOf;if(!this._differ&&n)try{this._differ=this._differs.find(n).create(this.ngForTrackBy)}catch(t){throw new Error(`Cannot find a differ supporting object '${n}' of type '${e=n,e.name||typeof e}'. NgFor only supports binding to Iterables such as Arrays.`)}}var e;if(this._differ){const e=this._differ.diff(this._ngForOf);e&&this._applyChanges(e)}}_applyChanges(e){const t=[];e.forEachOperation((e,n,i)=>{if(null==e.previousIndex){const n=this._viewContainer.createEmbeddedView(this._template,new Hu(null,this._ngForOf,-1,-1),null===i?void 0:i),s=new Uu(e,n);t.push(s)}else if(null==i)this._viewContainer.remove(null===n?void 0:n);else if(null!==n){const s=this._viewContainer.get(n);this._viewContainer.move(s,i);const o=new Uu(e,s);t.push(o)}});for(let n=0;n<t.length;n++)this._perViewChange(t[n].view,t[n].record);for(let n=0,i=this._viewContainer.length;n<i;n++){const e=this._viewContainer.get(n);e.context.index=n,e.context.count=i,e.context.ngForOf=this._ngForOf}e.forEachIdentityChange(e=>{this._viewContainer.get(e.currentIndex).context.$implicit=e.item})}_perViewChange(e,t){e.context.$implicit=t.item}static ngTemplateContextGuard(e,t){return!0}}return e.\u0275fac=function(t){return new(t||e)(zr(Gl),zr(zl),zr(Sl))},e.\u0275dir=Ke({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),e})();class Uu{constructor(e,t){this.record=e,this.view=t}}let Wu=(()=>{class e{constructor(e,t){this._viewContainer=e,this._context=new Gu,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=t}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){$u("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){$u("ngIfElse",e),this._elseTemplateRef=e,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(e,t){return!0}}return e.\u0275fac=function(t){return new(t||e)(zr(Gl),zr(zl))},e.\u0275dir=Ke({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),e})();class Gu{constructor(){this.$implicit=null,this.ngIf=null}}function $u(e,t){if(t&&!t.createEmbeddedView)throw new Error(`${e} must be a TemplateRef, but received '${ie(t)}'.`)}class qu{constructor(e,t){this._viewContainerRef=e,this._templateRef=t,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(e){e&&!this._created?this.create():!e&&this._created&&this.destroy()}}let Yu=(()=>{class e{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(e){this._ngSwitch=e,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(e){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(e)}_matchCase(e){const t=e==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||t,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),t}_updateDefaultCases(e){if(this._defaultViews&&e!==this._defaultUsed){this._defaultUsed=e;for(let t=0;t<this._defaultViews.length;t++)this._defaultViews[t].enforceState(e)}}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Ke({type:e,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"}}),e})(),Zu=(()=>{class e{constructor(e,t,n){this.ngSwitch=n,n._addCase(),this._view=new qu(e,t)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return e.\u0275fac=function(t){return new(t||e)(zr(Gl),zr(zl),zr(Yu,1))},e.\u0275dir=Ke({type:e,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),e})(),Qu=(()=>{class e{constructor(e,t,n){n._addDefault(new qu(e,t))}}return e.\u0275fac=function(t){return new(t||e)(zr(Gl),zr(zl),zr(Yu,1))},e.\u0275dir=Ke({type:e,selectors:[["","ngSwitchDefault",""]]}),e})(),Xu=(()=>{class e{constructor(e,t,n){this._ngEl=e,this._differs=t,this._renderer=n,this._ngStyle=null,this._differ=null}set ngStyle(e){this._ngStyle=e,!this._differ&&e&&(this._differ=this._differs.find(e).create())}ngDoCheck(){if(this._differ){const e=this._differ.diff(this._ngStyle);e&&this._applyChanges(e)}}_setStyle(e,t){const[n,i]=e.split(".");null!=(t=null!=t&&i?`${t}${i}`:t)?this._renderer.setStyle(this._ngEl.nativeElement,n,t):this._renderer.removeStyle(this._ngEl.nativeElement,n)}_applyChanges(e){e.forEachRemovedItem(e=>this._setStyle(e.key,null)),e.forEachAddedItem(e=>this._setStyle(e.key,e.currentValue)),e.forEachChangedItem(e=>this._setStyle(e.key,e.currentValue))}}return e.\u0275fac=function(t){return new(t||e)(zr(rl),zr(Pl),zr(cl))},e.\u0275dir=Ke({type:e,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),e})(),Ku=(()=>{class e{constructor(e){this._viewContainerRef=e,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}ngOnChanges(e){if(this._shouldRecreateView(e)){const e=this._viewContainerRef;this._viewRef&&e.remove(e.indexOf(this._viewRef)),this._viewRef=this.ngTemplateOutlet?e.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext):null}else this._viewRef&&this.ngTemplateOutletContext&&this._updateExistingContext(this.ngTemplateOutletContext)}_shouldRecreateView(e){const t=e.ngTemplateOutletContext;return!!e.ngTemplateOutlet||t&&this._hasContextShapeChanged(t)}_hasContextShapeChanged(e){const t=Object.keys(e.previousValue||{}),n=Object.keys(e.currentValue||{});if(t.length===n.length){for(let e of n)if(-1===t.indexOf(e))return!0;return!1}return!0}_updateExistingContext(e){for(let t of Object.keys(e))this._viewRef.context[t]=this.ngTemplateOutletContext[t]}}return e.\u0275fac=function(t){return new(t||e)(zr(Gl))},e.\u0275dir=Ke({type:e,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[dt]}),e})();function Ju(e,t){return Error(`InvalidPipeArgument: '${t}' for pipe '${ie(e)}'`)}class eh{createSubscription(e,t){return e.subscribe({next:t,error:e=>{throw e}})}dispose(e){e.unsubscribe()}onDestroy(e){e.unsubscribe()}}class th{createSubscription(e,t){return e.then(t,e=>{throw e})}dispose(e){}onDestroy(e){}}const nh=new th,ih=new eh;let sh=(()=>{class e{constructor(e){this._ref=e,this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null}ngOnDestroy(){this._subscription&&this._dispose()}transform(e){return this._obj?e!==this._obj?(this._dispose(),this.transform(e)):this._latestValue:(e&&this._subscribe(e),this._latestValue)}_subscribe(e){this._obj=e,this._strategy=this._selectStrategy(e),this._subscription=this._strategy.createSubscription(e,t=>this._updateLatestValue(e,t))}_selectStrategy(t){if(Yr(t))return nh;if(Zr(t))return ih;throw Ju(e,t)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(e,t){e===this._obj&&(this._latestValue=t,this._ref.markForCheck())}}return e.\u0275fac=function(t){return new(t||e)(Vc())},e.\u0275pipe=Je({name:"async",type:e,pure:!1}),e})();const oh=/(?:[A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D])\S*/g;let rh=(()=>{class e{transform(t){if(null==t)return null;if("string"!=typeof t)throw Ju(e,t);return t.replace(oh,e=>e[0].toUpperCase()+e.substr(1).toLowerCase())}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=Je({name:"titlecase",type:e,pure:!0}),e})(),ah=(()=>{class e{transform(t){if(null==t)return null;if("string"!=typeof t)throw Ju(e,t);return t.toUpperCase()}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=Je({name:"uppercase",type:e,pure:!0}),e})(),lh=(()=>{class e{constructor(e){this.locale=e}transform(t,n="mediumDate",i,s){if(null==t||""===t||t!=t)return null;try{return Au(t,n,s||this.locale,i)}catch(o){throw Ju(e,o.message)}}}return e.\u0275fac=function(t){return new(t||e)(zr(Zc))},e.\u0275pipe=Je({name:"date",type:e,pure:!0}),e})(),ch=(()=>{class e{constructor(e){this.differs=e,this.keyValues=[]}transform(e,t=dh){if(!e||!(e instanceof Map)&&"object"!=typeof e)return null;this.differ||(this.differ=this.differs.find(e).create());const n=this.differ.diff(e);return n&&(this.keyValues=[],n.forEachItem(e=>{this.keyValues.push({key:e.key,value:e.currentValue})}),this.keyValues.sort(t)),this.keyValues}}return e.\u0275fac=function(t){return new(t||e)(zr(Pl))},e.\u0275pipe=Je({name:"keyvalue",type:e,pure:!1}),e})();function dh(e,t){const n=e.key,i=t.key;if(n===i)return 0;if(void 0===n)return 1;if(void 0===i)return-1;if(null===n)return 1;if(null===i)return-1;if("string"==typeof n&&"string"==typeof i)return n<i?-1:1;if("number"==typeof n&&"number"==typeof i)return n-i;if("boolean"==typeof n&&"boolean"==typeof i)return n<i?-1:1;const s=String(n),o=String(i);return s==o?0:s<o?-1:1}let uh=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=fe({providers:[{provide:Bu,useClass:zu}]}),e})();function hh(e){return"browser"===e}let ph=(()=>{class e{}return e.\u0275prov=pe({token:e,providedIn:"root",factory:()=>new gh(gi(Hd),window)}),e})();class gh{constructor(e,t){this.document=e,this.window=t,this.offset=()=>[0,0]}setOffset(e){this.offset=Array.isArray(e)?()=>e:e}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(e){this.supportsScrolling()&&this.window.scrollTo(e[0],e[1])}scrollToAnchor(e){var t;if(!this.supportsScrolling())return;const n=null!==(t=this.document.getElementById(e))&&void 0!==t?t:this.document.getElementsByName(e)[0];void 0!==n&&(this.scrollToElement(n),this.attemptFocus(n))}setHistoryScrollRestoration(e){if(this.supportScrollRestoration()){const t=this.window.history;t&&t.scrollRestoration&&(t.scrollRestoration=e)}}scrollToElement(e){const t=e.getBoundingClientRect(),n=t.left+this.window.pageXOffset,i=t.top+this.window.pageYOffset,s=this.offset();this.window.scrollTo(n-s[0],i-s[1])}attemptFocus(e){return e.focus(),this.document.activeElement===e}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const e=fh(this.window.history)||fh(Object.getPrototypeOf(this.window.history));return!(!e||!e.writable&&!e.set)}catch(e){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(e){return!1}}}function fh(e){return Object.getOwnPropertyDescriptor(e,"scrollRestoration")}class mh extends class extends class{}{constructor(){super()}supportsDOMEvents(){return!0}}{static makeCurrent(){var e;e=new mh,Vd||(Vd=e)}getProperty(e,t){return e[t]}log(e){window.console&&window.console.log&&window.console.log(e)}logGroup(e){window.console&&window.console.group&&window.console.group(e)}logGroupEnd(){window.console&&window.console.groupEnd&&window.console.groupEnd()}onAndCancel(e,t,n){return e.addEventListener(t,n,!1),()=>{e.removeEventListener(t,n,!1)}}dispatchEvent(e,t){e.dispatchEvent(t)}remove(e){return e.parentNode&&e.parentNode.removeChild(e),e}getValue(e){return e.value}createElement(e,t){return(t=t||this.getDefaultDocument()).createElement(e)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(e){return e.nodeType===Node.ELEMENT_NODE}isShadowRoot(e){return e instanceof DocumentFragment}getGlobalEventTarget(e,t){return"window"===t?window:"document"===t?e:"body"===t?e.body:null}getHistory(){return window.history}getLocation(){return window.location}getBaseHref(e){const t=vh||(vh=document.querySelector("base"),vh)?vh.getAttribute("href"):null;return null==t?null:(n=t,bh||(bh=document.createElement("a")),bh.setAttribute("href",n),"/"===bh.pathname.charAt(0)?bh.pathname:"/"+bh.pathname);var n}resetBaseElement(){vh=null}getUserAgent(){return window.navigator.userAgent}performanceNow(){return window.performance&&window.performance.now?window.performance.now():(new Date).getTime()}supportsCookies(){return!0}getCookie(e){return Vu(document.cookie,e)}}let bh,vh=null;const yh=new Xn("TRANSITION_ID"),wh=[{provide:Nc,useFactory:function(e,t,n){return()=>{n.get(Hc).donePromise.then(()=>{const n=Nd();Array.prototype.slice.apply(t.querySelectorAll("style[ng-transition]")).filter(t=>t.getAttribute("ng-transition")===e).forEach(e=>n.remove(e))})}},deps:[yh,Hd,mr],multi:!0}];class _h{static init(){var e;e=new _h,vd=e}addToWindow(e){Re.getAngularTestability=(t,n=!0)=>{const i=e.findTestabilityInTree(t,n);if(null==i)throw new Error("Could not find testability for element.");return i},Re.getAllAngularTestabilities=()=>e.getAllTestabilities(),Re.getAllAngularRootElements=()=>e.getAllRootElements(),Re.frameworkStabilizers||(Re.frameworkStabilizers=[]),Re.frameworkStabilizers.push(e=>{const t=Re.getAllAngularTestabilities();let n=t.length,i=!1;const s=function(t){i=i||t,n--,0==n&&e(i)};t.forEach(function(e){e.whenStable(s)})})}findTestabilityInTree(e,t,n){if(null==t)return null;const i=e.getTestability(t);return null!=i?i:n?Nd().isShadowRoot(t)?this.findTestabilityInTree(e,t.host,!0):this.findTestabilityInTree(e,t.parentElement,!0):null}}const xh=new Xn("EventManagerPlugins");let Ah=(()=>{class e{constructor(e,t){this._zone=t,this._eventNameToPlugin=new Map,e.forEach(e=>e.manager=this),this._plugins=e.slice().reverse()}addEventListener(e,t,n){return this._findPluginFor(t).addEventListener(e,t,n)}addGlobalEventListener(e,t,n){return this._findPluginFor(t).addGlobalEventListener(e,t,n)}getZone(){return this._zone}_findPluginFor(e){const t=this._eventNameToPlugin.get(e);if(t)return t;const n=this._plugins;for(let i=0;i<n.length;i++){const t=n[i];if(t.supports(e))return this._eventNameToPlugin.set(e,t),t}throw new Error("No event manager plugin found for event "+e)}}return e.\u0275fac=function(t){return new(t||e)(gi(xh),gi(ad))},e.\u0275prov=pe({token:e,factory:e.\u0275fac}),e})();class Ch{constructor(e){this._doc=e}addGlobalEventListener(e,t,n){const i=Nd().getGlobalEventTarget(this._doc,e);if(!i)throw new Error(`Unsupported event target ${i} for event ${t}`);return this.addEventListener(i,t,n)}}let Sh=(()=>{class e{constructor(){this._stylesSet=new Set}addStyles(e){const t=new Set;e.forEach(e=>{this._stylesSet.has(e)||(this._stylesSet.add(e),t.add(e))}),this.onStylesAdded(t)}onStylesAdded(e){}getAllStyles(){return Array.from(this._stylesSet)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=pe({token:e,factory:e.\u0275fac}),e})(),kh=(()=>{class e extends Sh{constructor(e){super(),this._doc=e,this._hostNodes=new Set,this._styleNodes=new Set,this._hostNodes.add(e.head)}_addStylesToHost(e,t){e.forEach(e=>{const n=this._doc.createElement("style");n.textContent=e,this._styleNodes.add(t.appendChild(n))})}addHost(e){this._addStylesToHost(this._stylesSet,e),this._hostNodes.add(e)}removeHost(e){this._hostNodes.delete(e)}onStylesAdded(e){this._hostNodes.forEach(t=>this._addStylesToHost(e,t))}ngOnDestroy(){this._styleNodes.forEach(e=>Nd().remove(e))}}return e.\u0275fac=function(t){return new(t||e)(gi(Hd))},e.\u0275prov=pe({token:e,factory:e.\u0275fac}),e})();const Ph={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},Eh=/%COMP%/g;function Dh(e,t,n){for(let i=0;i<t.length;i++){let s=t[i];Array.isArray(s)?Dh(e,s,n):(s=s.replace(Eh,e),n.push(s))}return n}function Oh(e){return t=>{if("__ngUnwrap__"===t)return e;!1===e(t)&&(t.preventDefault(),t.returnValue=!1)}}let Mh=(()=>{class e{constructor(e,t,n){this.eventManager=e,this.sharedStylesHost=t,this.appId=n,this.rendererByCompId=new Map,this.defaultRenderer=new Th(e)}createRenderer(e,t){if(!e||!t)return this.defaultRenderer;switch(t.encapsulation){case De.Emulated:{let n=this.rendererByCompId.get(t.id);return n||(n=new Ih(this.eventManager,this.sharedStylesHost,t,this.appId),this.rendererByCompId.set(t.id,n)),n.applyToHost(e),n}case 1:case De.ShadowDom:return new Rh(this.eventManager,this.sharedStylesHost,e,t);default:if(!this.rendererByCompId.has(t.id)){const e=Dh(t.id,t.styles,[]);this.sharedStylesHost.addStyles(e),this.rendererByCompId.set(t.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return e.\u0275fac=function(t){return new(t||e)(gi(Ah),gi(kh),gi(jc))},e.\u0275prov=pe({token:e,factory:e.\u0275fac}),e})();class Th{constructor(e){this.eventManager=e,this.data=Object.create(null)}destroy(){}createElement(e,t){return t?document.createElementNS(Ph[t]||t,e):document.createElement(e)}createComment(e){return document.createComment(e)}createText(e){return document.createTextNode(e)}appendChild(e,t){e.appendChild(t)}insertBefore(e,t,n){e&&e.insertBefore(t,n)}removeChild(e,t){e&&e.removeChild(t)}selectRootElement(e,t){let n="string"==typeof e?document.querySelector(e):e;if(!n)throw new Error(`The selector "${e}" did not match any elements`);return t||(n.textContent=""),n}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,t,n,i){if(i){t=i+":"+t;const s=Ph[i];s?e.setAttributeNS(s,t,n):e.setAttribute(t,n)}else e.setAttribute(t,n)}removeAttribute(e,t,n){if(n){const i=Ph[n];i?e.removeAttributeNS(i,t):e.removeAttribute(`${n}:${t}`)}else e.removeAttribute(t)}addClass(e,t){e.classList.add(t)}removeClass(e,t){e.classList.remove(t)}setStyle(e,t,n,i){i&(ms.DashCase|ms.Important)?e.style.setProperty(t,n,i&ms.Important?"important":""):e.style[t]=n}removeStyle(e,t,n){n&ms.DashCase?e.style.removeProperty(t):e.style[t]=""}setProperty(e,t,n){e[t]=n}setValue(e,t){e.nodeValue=t}listen(e,t,n){return"string"==typeof e?this.eventManager.addGlobalEventListener(e,t,Oh(n)):this.eventManager.addEventListener(e,t,Oh(n))}}class Ih extends Th{constructor(e,t,n,i){super(e),this.component=n;const s=Dh(i+"-"+n.id,n.styles,[]);t.addStyles(s),this.contentAttr="_ngcontent-%COMP%".replace(Eh,i+"-"+n.id),this.hostAttr="_nghost-%COMP%".replace(Eh,i+"-"+n.id)}applyToHost(e){super.setAttribute(e,this.hostAttr,"")}createElement(e,t){const n=super.createElement(e,t);return super.setAttribute(n,this.contentAttr,""),n}}class Rh extends Th{constructor(e,t,n,i){super(e),this.sharedStylesHost=t,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const s=Dh(i.id,i.styles,[]);for(let o=0;o<s.length;o++){const e=document.createElement("style");e.textContent=s[o],this.shadowRoot.appendChild(e)}}nodeOrShadowRoot(e){return e===this.hostEl?this.shadowRoot:e}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(e,t){return super.appendChild(this.nodeOrShadowRoot(e),t)}insertBefore(e,t,n){return super.insertBefore(this.nodeOrShadowRoot(e),t,n)}removeChild(e,t){return super.removeChild(this.nodeOrShadowRoot(e),t)}parentNode(e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(e)))}}let Lh=(()=>{class e extends Ch{constructor(e){super(e)}supports(e){return!0}addEventListener(e,t,n){return e.addEventListener(t,n,!1),()=>this.removeEventListener(e,t,n)}removeEventListener(e,t,n){return e.removeEventListener(t,n)}}return e.\u0275fac=function(t){return new(t||e)(gi(Hd))},e.\u0275prov=pe({token:e,factory:e.\u0275fac}),e})();const Fh={pan:!0,panstart:!0,panmove:!0,panend:!0,pancancel:!0,panleft:!0,panright:!0,panup:!0,pandown:!0,pinch:!0,pinchstart:!0,pinchmove:!0,pinchend:!0,pinchcancel:!0,pinchin:!0,pinchout:!0,press:!0,pressup:!0,rotate:!0,rotatestart:!0,rotatemove:!0,rotateend:!0,rotatecancel:!0,swipe:!0,swipeleft:!0,swiperight:!0,swipeup:!0,swipedown:!0,tap:!0,doubletap:!0},Bh=new Xn("HammerGestureConfig"),zh=new Xn("HammerLoader");let Vh=(()=>{class e{constructor(){this.events=[],this.overrides={}}buildHammer(e){const t=new Hammer(e,this.options);t.get("pinch").set({enable:!0}),t.get("rotate").set({enable:!0});for(const n in this.overrides)t.get(n).set(this.overrides[n]);return t}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=pe({token:e,factory:e.\u0275fac}),e})();const Nh=[{provide:xh,useClass:(()=>{class e extends Ch{constructor(e,t,n,i){super(e),this._config=t,this.console=n,this.loader=i,this._loaderPromise=null}supports(e){return!(!Fh.hasOwnProperty(e.toLowerCase())&&!this.isCustomEvent(e)||!window.Hammer&&!this.loader)}addEventListener(e,t,n){const i=this.manager.getZone();if(t=t.toLowerCase(),!window.Hammer&&this.loader){this._loaderPromise=this._loaderPromise||this.loader();let i=!1,s=()=>{i=!0};return this._loaderPromise.then(()=>{window.Hammer?i||(s=this.addEventListener(e,t,n)):s=()=>{}}).catch(()=>{s=()=>{}}),()=>{s()}}return i.runOutsideAngular(()=>{const s=this._config.buildHammer(e),o=function(e){i.runGuarded(function(){n(e)})};return s.on(t,o),()=>{s.off(t,o),"function"==typeof s.destroy&&s.destroy()}})}isCustomEvent(e){return this._config.events.indexOf(e)>-1}}return e.\u0275fac=function(t){return new(t||e)(gi(Hd),gi(Bh),gi(Yc),gi(zh,8))},e.\u0275prov=pe({token:e,factory:e.\u0275fac}),e})(),multi:!0,deps:[Hd,Bh,Yc,[new yi,zh]]},{provide:Bh,useClass:Vh,deps:[]}];let Hh=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=fe({providers:Nh}),e})();const jh=["alt","control","meta","shift"],Uh={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},Wh={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},Gh={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey};let $h=(()=>{class e extends Ch{constructor(e){super(e)}supports(t){return null!=e.parseEventName(t)}addEventListener(t,n,i){const s=e.parseEventName(n),o=e.eventCallback(s.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Nd().onAndCancel(t,s.domEventName,o))}static parseEventName(t){const n=t.toLowerCase().split("."),i=n.shift();if(0===n.length||"keydown"!==i&&"keyup"!==i)return null;const s=e._normalizeKey(n.pop());let o="";if(jh.forEach(e=>{const t=n.indexOf(e);t>-1&&(n.splice(t,1),o+=e+".")}),o+=s,0!=n.length||0===s.length)return null;const r={};return r.domEventName=i,r.fullKey=o,r}static getEventFullKey(e){let t="",n=function(e){let t=e.key;if(null==t){if(t=e.keyIdentifier,null==t)return"Unidentified";t.startsWith("U+")&&(t=String.fromCharCode(parseInt(t.substring(2),16)),3===e.location&&Wh.hasOwnProperty(t)&&(t=Wh[t]))}return Uh[t]||t}(e);return n=n.toLowerCase()," "===n?n="space":"."===n&&(n="dot"),jh.forEach(i=>{i!=n&&(0,Gh[i])(e)&&(t+=i+".")}),t+=n,t}static eventCallback(t,n,i){return s=>{e.getEventFullKey(s)===t&&i.runGuarded(()=>n(s))}}static _normalizeKey(e){switch(e){case"esc":return"escape";default:return e}}}return e.\u0275fac=function(t){return new(t||e)(gi(Hd))},e.\u0275prov=pe({token:e,factory:e.\u0275fac}),e})(),qh=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=pe({factory:function(){return gi(Yh)},token:e,providedIn:"root"}),e})(),Yh=(()=>{class e extends qh{constructor(e){super(),this._doc=e}sanitize(e,t){if(null==t)return null;switch(e){case is.NONE:return t;case is.HTML:return Ti(t,"HTML")?Mi(t):ts(this._doc,String(t)).toString();case is.STYLE:return Ti(t,"Style")?Mi(t):t;case is.SCRIPT:if(Ti(t,"Script"))return Mi(t);throw new Error("unsafe value used in a script context");case is.URL:return Ii(t),Ti(t,"URL")?Mi(t):zi(String(t));case is.RESOURCE_URL:if(Ti(t,"ResourceURL"))return Mi(t);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${e} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(e){return new ki(e)}bypassSecurityTrustStyle(e){return new Pi(e)}bypassSecurityTrustScript(e){return new Ei(e)}bypassSecurityTrustUrl(e){return new Di(e)}bypassSecurityTrustResourceUrl(e){return new Oi(e)}}return e.\u0275fac=function(t){return new(t||e)(gi(Hd))},e.\u0275prov=pe({factory:function(){return e=gi(er),new Yh(e.get(Hd));var e},token:e,providedIn:"root"}),e})();const Zh=Cd(Ld,"browser",[{provide:$c,useValue:"browser"},{provide:Gc,useValue:function(){mh.makeCurrent(),_h.init()},multi:!0},{provide:Hd,useFactory:function(){return function(e){ft=e}(document),document},deps:[]}]),Qh=[[],{provide:nr,useValue:"root"},{provide:ds,useFactory:function(){return new ds},deps:[]},{provide:xh,useClass:Lh,multi:!0,deps:[Hd,ad,$c]},{provide:xh,useClass:$h,multi:!0,deps:[Hd]},[],{provide:Mh,useClass:Mh,deps:[Ah,kh,jc]},{provide:ll,useExisting:Mh},{provide:Sh,useExisting:kh},{provide:kh,useClass:kh,deps:[Hd]},{provide:gd,useClass:gd,deps:[ad]},{provide:Ah,useClass:Ah,deps:[xh,ad]},[]];let Xh=(()=>{class e{constructor(e){if(e)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(t){return{ngModule:e,providers:[{provide:jc,useValue:t.appId},{provide:yh,useExisting:jc},wh]}}}return e.\u0275fac=function(t){return new(t||e)(gi(e,12))},e.\u0275mod=Qe({type:e}),e.\u0275inj=fe({providers:Qh,imports:[uh,Bd]}),e})();"undefined"!=typeof window&&window;class Kh{}function Jh(e,t){return{type:7,name:e,definitions:t,options:{}}}function ep(e,t=null){return{type:4,styles:t,timings:e}}function tp(e,t=null){return{type:2,steps:e,options:t}}function np(e){return{type:6,styles:e,offset:null}}function ip(e,t,n){return{type:0,name:e,styles:t,options:n}}function sp(e){return{type:5,steps:e}}function op(e,t,n=null){return{type:1,expr:e,animation:t,options:n}}function rp(e=null){return{type:9,options:e}}function ap(e,t,n=null){return{type:11,selector:e,animation:t,options:n}}function lp(e){Promise.resolve(null).then(e)}class cp{constructor(e=0,t=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=e+t}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}onStart(e){this._onStartFns.push(e)}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){lp(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(e=>e()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){}setPosition(e){this._position=this.totalTime?e*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(e=>e()),t.length=0}}class dp{constructor(e){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=e;let t=0,n=0,i=0;const s=this.players.length;0==s?lp(()=>this._onFinish()):this.players.forEach(e=>{e.onDone(()=>{++t==s&&this._onFinish()}),e.onDestroy(()=>{++n==s&&this._onDestroy()}),e.onStart(()=>{++i==s&&this._onStart()})}),this.totalTime=this.players.reduce((e,t)=>Math.max(e,t.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this.players.forEach(e=>e.init())}onStart(e){this._onStartFns.push(e)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(e=>e()),this._onStartFns=[])}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(e=>e.play())}pause(){this.players.forEach(e=>e.pause())}restart(){this.players.forEach(e=>e.restart())}finish(){this._onFinish(),this.players.forEach(e=>e.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(e=>e.destroy()),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this.players.forEach(e=>e.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(e){const t=e*this.totalTime;this.players.forEach(e=>{const n=e.totalTime?Math.min(1,t/e.totalTime):1;e.setPosition(n)})}getPosition(){const e=this.players.reduce((e,t)=>null===e||t.totalTime>e.totalTime?t:e,null);return null!=e?e.getPosition():0}beforeDestroy(){this.players.forEach(e=>{e.beforeDestroy&&e.beforeDestroy()})}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(e=>e()),t.length=0}}function up(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function hp(e){switch(e.length){case 0:return new cp;case 1:return e[0];default:return new dp(e)}}function pp(e,t,n,i,s={},o={}){const r=[],a=[];let l=-1,c=null;if(i.forEach(e=>{const n=e.offset,i=n==l,d=i&&c||{};Object.keys(e).forEach(n=>{let i=n,a=e[n];if("offset"!==n)switch(i=t.normalizePropertyName(i,r),a){case"!":a=s[n];break;case"*":a=o[n];break;default:a=t.normalizeStyleValue(n,i,a,r)}d[i]=a}),i||a.push(d),c=d,l=n}),r.length){const e="\n - ";throw new Error(`Unable to animate due to the following errors:${e}${r.join(e)}`)}return a}function gp(e,t,n,i){switch(t){case"start":e.onStart(()=>i(n&&fp(n,"start",e)));break;case"done":e.onDone(()=>i(n&&fp(n,"done",e)));break;case"destroy":e.onDestroy(()=>i(n&&fp(n,"destroy",e)))}}function fp(e,t,n){const i=n.totalTime,s=mp(e.element,e.triggerName,e.fromState,e.toState,t||e.phaseName,null==i?e.totalTime:i,!!n.disabled),o=e._data;return null!=o&&(s._data=o),s}function mp(e,t,n,i,s="",o=0,r){return{element:e,triggerName:t,fromState:n,toState:i,phaseName:s,totalTime:o,disabled:!!r}}function bp(e,t,n){let i;return e instanceof Map?(i=e.get(t),i||e.set(t,i=n)):(i=e[t],i||(i=e[t]=n)),i}function vp(e){const t=e.indexOf(":");return[e.substring(1,t),e.substr(t+1)]}let yp=(e,t)=>!1,wp=(e,t)=>!1,_p=(e,t,n)=>[];const xp=up();(xp||"undefined"!=typeof Element)&&(yp=(e,t)=>e.contains(t),wp=(()=>{if(xp||Element.prototype.matches)return(e,t)=>e.matches(t);{const e=Element.prototype,t=e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector;return t?(e,n)=>t.apply(e,[n]):wp}})(),_p=(e,t,n)=>{let i=[];if(n){const n=e.querySelectorAll(t);for(let e=0;e<n.length;e++)i.push(n[e])}else{const n=e.querySelector(t);n&&i.push(n)}return i});let Ap=null,Cp=!1;function Sp(e){Ap||(Ap=("undefined"!=typeof document?document.body:null)||{},Cp=!!Ap.style&&"WebkitAppearance"in Ap.style);let t=!0;return Ap.style&&!function(e){return"ebkit"==e.substring(1,6)}(e)&&(t=e in Ap.style,!t&&Cp)&&(t="Webkit"+e.charAt(0).toUpperCase()+e.substr(1)in Ap.style),t}const kp=wp,Pp=yp,Ep=_p;function Dp(e){const t={};return Object.keys(e).forEach(n=>{const i=n.replace(/([a-z])([A-Z])/g,"$1-$2");t[i]=e[n]}),t}let Op=(()=>{class e{validateStyleProperty(e){return Sp(e)}matchesElement(e,t){return kp(e,t)}containsElement(e,t){return Pp(e,t)}query(e,t,n){return Ep(e,t,n)}computeStyle(e,t,n){return n||""}animate(e,t,n,i,s,o=[],r){return new cp(n,i)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=pe({token:e,factory:e.\u0275fac}),e})(),Mp=(()=>{class e{}return e.NOOP=new Op,e})();function Tp(e){if("number"==typeof e)return e;const t=e.match(/^(-?[\.\d]+)(m?s)/);return!t||t.length<2?0:Ip(parseFloat(t[1]),t[2])}function Ip(e,t){switch(t){case"s":return 1e3*e;default:return e}}function Rp(e,t,n){return e.hasOwnProperty("duration")?e:function(e,t,n){let i,s=0,o="";if("string"==typeof e){const n=e.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===n)return t.push(`The provided timing value "${e}" is invalid.`),{duration:0,delay:0,easing:""};i=Ip(parseFloat(n[1]),n[2]);const r=n[3];null!=r&&(s=Ip(parseFloat(r),n[4]));const a=n[5];a&&(o=a)}else i=e;if(!n){let n=!1,o=t.length;i<0&&(t.push("Duration values below 0 are not allowed for this animation step."),n=!0),s<0&&(t.push("Delay values below 0 are not allowed for this animation step."),n=!0),n&&t.splice(o,0,`The provided timing value "${e}" is invalid.`)}return{duration:i,delay:s,easing:o}}(e,t,n)}function Lp(e,t={}){return Object.keys(e).forEach(n=>{t[n]=e[n]}),t}function Fp(e,t,n={}){if(t)for(let i in e)n[i]=e[i];else Lp(e,n);return n}function Bp(e,t,n){return n?t+":"+n+";":""}function zp(e){let t="";for(let n=0;n<e.style.length;n++){const i=e.style.item(n);t+=Bp(0,i,e.style.getPropertyValue(i))}for(const n in e.style)e.style.hasOwnProperty(n)&&!n.startsWith("_")&&(t+=Bp(0,n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),e.style[n]));e.setAttribute("style",t)}function Vp(e,t,n){e.style&&(Object.keys(t).forEach(i=>{const s=qp(i);n&&!n.hasOwnProperty(i)&&(n[i]=e.style[s]),e.style[s]=t[i]}),up()&&zp(e))}function Np(e,t){e.style&&(Object.keys(t).forEach(t=>{const n=qp(t);e.style[n]=""}),up()&&zp(e))}function Hp(e){return Array.isArray(e)?1==e.length?e[0]:tp(e):e}const jp=new RegExp("{{\\s*(.+?)\\s*}}","g");function Up(e){let t=[];if("string"==typeof e){let n;for(;n=jp.exec(e);)t.push(n[1]);jp.lastIndex=0}return t}function Wp(e,t,n){const i=e.toString(),s=i.replace(jp,(e,i)=>{let s=t[i];return t.hasOwnProperty(i)||(n.push("Please provide a value for the animation param "+i),s=""),s.toString()});return s==i?e:s}function Gp(e){const t=[];let n=e.next();for(;!n.done;)t.push(n.value),n=e.next();return t}const $p=/-+([a-z0-9])/g;function qp(e){return e.replace($p,(...e)=>e[1].toUpperCase())}function Yp(e,t){return 0===e||0===t}function Zp(e,t,n){const i=Object.keys(n);if(i.length&&t.length){let o=t[0],r=[];if(i.forEach(e=>{o.hasOwnProperty(e)||r.push(e),o[e]=n[e]}),r.length)for(var s=1;s<t.length;s++){let n=t[s];r.forEach(function(t){n[t]=Xp(e,t)})}}return t}function Qp(e,t,n){switch(t.type){case 7:return e.visitTrigger(t,n);case 0:return e.visitState(t,n);case 1:return e.visitTransition(t,n);case 2:return e.visitSequence(t,n);case 3:return e.visitGroup(t,n);case 4:return e.visitAnimate(t,n);case 5:return e.visitKeyframes(t,n);case 6:return e.visitStyle(t,n);case 8:return e.visitReference(t,n);case 9:return e.visitAnimateChild(t,n);case 10:return e.visitAnimateRef(t,n);case 11:return e.visitQuery(t,n);case 12:return e.visitStagger(t,n);default:throw new Error("Unable to resolve animation metadata node #"+t.type)}}function Xp(e,t){return window.getComputedStyle(e)[t]}function Kp(e,t){const n=[];return"string"==typeof e?e.split(/\s*,\s*/).forEach(e=>function(e,t,n){if(":"==e[0]){const i=function(e,t){switch(e){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,t)=>parseFloat(t)>parseFloat(e);case":decrement":return(e,t)=>parseFloat(t)<parseFloat(e);default:return t.push(`The transition alias value "${e}" is not supported`),"* => *"}}(e,n);if("function"==typeof i)return void t.push(i);e=i}const i=e.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return n.push(`The provided transition expression "${e}" is not supported`),t;const s=i[1],o=i[2],r=i[3];t.push(tg(s,r)),"<"!=o[0]||"*"==s&&"*"==r||t.push(tg(r,s))}(e,n,t)):n.push(e),n}const Jp=new Set(["true","1"]),eg=new Set(["false","0"]);function tg(e,t){const n=Jp.has(e)||eg.has(e),i=Jp.has(t)||eg.has(t);return(s,o)=>{let r="*"==e||e==s,a="*"==t||t==o;return!r&&n&&"boolean"==typeof s&&(r=s?Jp.has(e):eg.has(e)),!a&&i&&"boolean"==typeof o&&(a=o?Jp.has(t):eg.has(t)),r&&a}}const ng=new RegExp("s*:selfs*,?","g");function ig(e,t,n){return new sg(e).build(t,n)}class sg{constructor(e){this._driver=e}build(e,t){const n=new og(t);return this._resetContextStyleTimingState(n),Qp(this,Hp(e),n)}_resetContextStyleTimingState(e){e.currentQuerySelector="",e.collectedStyles={},e.collectedStyles[""]={},e.currentTime=0}visitTrigger(e,t){let n=t.queryCount=0,i=t.depCount=0;const s=[],o=[];return"@"==e.name.charAt(0)&&t.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),e.definitions.forEach(e=>{if(this._resetContextStyleTimingState(t),0==e.type){const n=e,i=n.name;i.toString().split(/\s*,\s*/).forEach(e=>{n.name=e,s.push(this.visitState(n,t))}),n.name=i}else if(1==e.type){const s=this.visitTransition(e,t);n+=s.queryCount,i+=s.depCount,o.push(s)}else t.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:e.name,states:s,transitions:o,queryCount:n,depCount:i,options:null}}visitState(e,t){const n=this.visitStyle(e.styles,t),i=e.options&&e.options.params||null;if(n.containsDynamicStyles){const s=new Set,o=i||{};if(n.styles.forEach(e=>{if(rg(e)){const t=e;Object.keys(t).forEach(e=>{Up(t[e]).forEach(e=>{o.hasOwnProperty(e)||s.add(e)})})}}),s.size){const n=Gp(s.values());t.errors.push(`state("${e.name}", ...) must define default values for all the following style substitutions: ${n.join(", ")}`)}}return{type:0,name:e.name,style:n,options:i?{params:i}:null}}visitTransition(e,t){t.queryCount=0,t.depCount=0;const n=Qp(this,Hp(e.animation),t);return{type:1,matchers:Kp(e.expr,t.errors),animation:n,queryCount:t.queryCount,depCount:t.depCount,options:ag(e.options)}}visitSequence(e,t){return{type:2,steps:e.steps.map(e=>Qp(this,e,t)),options:ag(e.options)}}visitGroup(e,t){const n=t.currentTime;let i=0;const s=e.steps.map(e=>{t.currentTime=n;const s=Qp(this,e,t);return i=Math.max(i,t.currentTime),s});return t.currentTime=i,{type:3,steps:s,options:ag(e.options)}}visitAnimate(e,t){const n=function(e,t){let n=null;if(e.hasOwnProperty("duration"))n=e;else if("number"==typeof e)return lg(Rp(e,t).duration,0,"");const i=e;if(i.split(/\s+/).some(e=>"{"==e.charAt(0)&&"{"==e.charAt(1))){const e=lg(0,0,"");return e.dynamic=!0,e.strValue=i,e}return n=n||Rp(i,t),lg(n.duration,n.delay,n.easing)}(e.timings,t.errors);let i;t.currentAnimateTimings=n;let s=e.styles?e.styles:np({});if(5==s.type)i=this.visitKeyframes(s,t);else{let s=e.styles,o=!1;if(!s){o=!0;const e={};n.easing&&(e.easing=n.easing),s=np(e)}t.currentTime+=n.duration+n.delay;const r=this.visitStyle(s,t);r.isEmptyStep=o,i=r}return t.currentAnimateTimings=null,{type:4,timings:n,style:i,options:null}}visitStyle(e,t){const n=this._makeStyleAst(e,t);return this._validateStyleAst(n,t),n}_makeStyleAst(e,t){const n=[];Array.isArray(e.styles)?e.styles.forEach(e=>{"string"==typeof e?"*"==e?n.push(e):t.errors.push(`The provided style string value ${e} is not allowed.`):n.push(e)}):n.push(e.styles);let i=!1,s=null;return n.forEach(e=>{if(rg(e)){const t=e,n=t.easing;if(n&&(s=n,delete t.easing),!i)for(let e in t)if(t[e].toString().indexOf("{{")>=0){i=!0;break}}}),{type:6,styles:n,easing:s,offset:e.offset,containsDynamicStyles:i,options:null}}_validateStyleAst(e,t){const n=t.currentAnimateTimings;let i=t.currentTime,s=t.currentTime;n&&s>0&&(s-=n.duration+n.delay),e.styles.forEach(e=>{"string"!=typeof e&&Object.keys(e).forEach(n=>{if(!this._driver.validateStyleProperty(n))return void t.errors.push(`The provided animation property "${n}" is not a supported CSS property for animations`);const o=t.collectedStyles[t.currentQuerySelector],r=o[n];let a=!0;r&&(s!=i&&s>=r.startTime&&i<=r.endTime&&(t.errors.push(`The CSS property "${n}" that exists between the times of "${r.startTime}ms" and "${r.endTime}ms" is also being animated in a parallel animation between the times of "${s}ms" and "${i}ms"`),a=!1),s=r.startTime),a&&(o[n]={startTime:s,endTime:i}),t.options&&function(e,t,n){const i=t.params||{},s=Up(e);s.length&&s.forEach(e=>{i.hasOwnProperty(e)||n.push(`Unable to resolve the local animation param ${e} in the given list of values`)})}(e[n],t.options,t.errors)})})}visitKeyframes(e,t){const n={type:5,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push("keyframes() must be placed inside of a call to animate()"),n;let i=0;const s=[];let o=!1,r=!1,a=0;const l=e.steps.map(e=>{const n=this._makeStyleAst(e,t);let l=null!=n.offset?n.offset:function(e){if("string"==typeof e)return null;let t=null;if(Array.isArray(e))e.forEach(e=>{if(rg(e)&&e.hasOwnProperty("offset")){const n=e;t=parseFloat(n.offset),delete n.offset}});else if(rg(e)&&e.hasOwnProperty("offset")){const n=e;t=parseFloat(n.offset),delete n.offset}return t}(n.styles),c=0;return null!=l&&(i++,c=n.offset=l),r=r||c<0||c>1,o=o||c<a,a=c,s.push(c),n});r&&t.errors.push("Please ensure that all keyframe offsets are between 0 and 1"),o&&t.errors.push("Please ensure that all keyframe offsets are in order");const c=e.steps.length;let d=0;i>0&&i<c?t.errors.push("Not all style() steps within the declared keyframes() contain offsets"):0==i&&(d=1/(c-1));const u=c-1,h=t.currentTime,p=t.currentAnimateTimings,g=p.duration;return l.forEach((e,i)=>{const o=d>0?i==u?1:d*i:s[i],r=o*g;t.currentTime=h+p.delay+r,p.duration=r,this._validateStyleAst(e,t),e.offset=o,n.styles.push(e)}),n}visitReference(e,t){return{type:8,animation:Qp(this,Hp(e.animation),t),options:ag(e.options)}}visitAnimateChild(e,t){return t.depCount++,{type:9,options:ag(e.options)}}visitAnimateRef(e,t){return{type:10,animation:this.visitReference(e.animation,t),options:ag(e.options)}}visitQuery(e,t){const n=t.currentQuerySelector,i=e.options||{};t.queryCount++,t.currentQuery=e;const[s,o]=function(e){const t=!!e.split(/\s*,\s*/).find(e=>":self"==e);return t&&(e=e.replace(ng,"")),[e=e.replace(/@\*/g,".ng-trigger").replace(/@\w+/g,e=>".ng-trigger-"+e.substr(1)).replace(/:animating/g,".ng-animating"),t]}(e.selector);t.currentQuerySelector=n.length?n+" "+s:s,bp(t.collectedStyles,t.currentQuerySelector,{});const r=Qp(this,Hp(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=n,{type:11,selector:s,limit:i.limit||0,optional:!!i.optional,includeSelf:o,animation:r,originalSelector:e.selector,options:ag(e.options)}}visitStagger(e,t){t.currentQuery||t.errors.push("stagger() can only be used inside of query()");const n="full"===e.timings?{duration:0,delay:0,easing:"full"}:Rp(e.timings,t.errors,!0);return{type:12,animation:Qp(this,Hp(e.animation),t),timings:n,options:null}}}class og{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={},this.options=null}}function rg(e){return!Array.isArray(e)&&"object"==typeof e}function ag(e){var t;return e?(e=Lp(e)).params&&(e.params=(t=e.params)?Lp(t):null):e={},e}function lg(e,t,n){return{duration:e,delay:t,easing:n}}function cg(e,t,n,i,s,o,r=null,a=!1){return{type:1,element:e,keyframes:t,preStyleProps:n,postStyleProps:i,duration:s,delay:o,totalTime:s+o,easing:r,subTimeline:a}}class dg{constructor(){this._map=new Map}consume(e){let t=this._map.get(e);return t?this._map.delete(e):t=[],t}append(e,t){let n=this._map.get(e);n||this._map.set(e,n=[]),n.push(...t)}has(e){return this._map.has(e)}clear(){this._map.clear()}}const ug=new RegExp(":enter","g"),hg=new RegExp(":leave","g");function pg(e,t,n,i,s,o={},r={},a,l,c=[]){return(new gg).buildKeyframes(e,t,n,i,s,o,r,a,l,c)}class gg{buildKeyframes(e,t,n,i,s,o,r,a,l,c=[]){l=l||new dg;const d=new mg(e,t,l,i,s,c,[]);d.options=a,d.currentTimeline.setStyles([o],null,d.errors,a),Qp(this,n,d);const u=d.timelines.filter(e=>e.containsAnimation());if(u.length&&Object.keys(r).length){const e=u[u.length-1];e.allowOnlyTimelineStyles()||e.setStyles([r],null,d.errors,a)}return u.length?u.map(e=>e.buildKeyframes()):[cg(t,[],[],[],0,0,"",!1)]}visitTrigger(e,t){}visitState(e,t){}visitTransition(e,t){}visitAnimateChild(e,t){const n=t.subInstructions.consume(t.element);if(n){const i=t.createSubContext(e.options),s=t.currentTimeline.currentTime,o=this._visitSubInstructions(n,i,i.options);s!=o&&t.transformIntoNewTimeline(o)}t.previousNode=e}visitAnimateRef(e,t){const n=t.createSubContext(e.options);n.transformIntoNewTimeline(),this.visitReference(e.animation,n),t.transformIntoNewTimeline(n.currentTimeline.currentTime),t.previousNode=e}_visitSubInstructions(e,t,n){let i=t.currentTimeline.currentTime;const s=null!=n.duration?Tp(n.duration):null,o=null!=n.delay?Tp(n.delay):null;return 0!==s&&e.forEach(e=>{const n=t.appendInstructionToTimeline(e,s,o);i=Math.max(i,n.duration+n.delay)}),i}visitReference(e,t){t.updateOptions(e.options,!0),Qp(this,e.animation,t),t.previousNode=e}visitSequence(e,t){const n=t.subContextCount;let i=t;const s=e.options;if(s&&(s.params||s.delay)&&(i=t.createSubContext(s),i.transformIntoNewTimeline(),null!=s.delay)){6==i.previousNode.type&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=fg);const e=Tp(s.delay);i.delayNextStep(e)}e.steps.length&&(e.steps.forEach(e=>Qp(this,e,i)),i.currentTimeline.applyStylesToKeyframe(),i.subContextCount>n&&i.transformIntoNewTimeline()),t.previousNode=e}visitGroup(e,t){const n=[];let i=t.currentTimeline.currentTime;const s=e.options&&e.options.delay?Tp(e.options.delay):0;e.steps.forEach(o=>{const r=t.createSubContext(e.options);s&&r.delayNextStep(s),Qp(this,o,r),i=Math.max(i,r.currentTimeline.currentTime),n.push(r.currentTimeline)}),n.forEach(e=>t.currentTimeline.mergeTimelineCollectedStyles(e)),t.transformIntoNewTimeline(i),t.previousNode=e}_visitTiming(e,t){if(e.dynamic){const n=e.strValue;return Rp(t.params?Wp(n,t.params,t.errors):n,t.errors)}return{duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,t){const n=t.currentAnimateTimings=this._visitTiming(e.timings,t),i=t.currentTimeline;n.delay&&(t.incrementTime(n.delay),i.snapshotCurrentStyles());const s=e.style;5==s.type?this.visitKeyframes(s,t):(t.incrementTime(n.duration),this.visitStyle(s,t),i.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e}visitStyle(e,t){const n=t.currentTimeline,i=t.currentAnimateTimings;!i&&n.getCurrentStyleProperties().length&&n.forwardFrame();const s=i&&i.easing||e.easing;e.isEmptyStep?n.applyEmptyStep(s):n.setStyles(e.styles,s,t.errors,t.options),t.previousNode=e}visitKeyframes(e,t){const n=t.currentAnimateTimings,i=t.currentTimeline.duration,s=n.duration,o=t.createSubContext().currentTimeline;o.easing=n.easing,e.styles.forEach(e=>{o.forwardTime((e.offset||0)*s),o.setStyles(e.styles,e.easing,t.errors,t.options),o.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(o),t.transformIntoNewTimeline(i+s),t.previousNode=e}visitQuery(e,t){const n=t.currentTimeline.currentTime,i=e.options||{},s=i.delay?Tp(i.delay):0;s&&(6===t.previousNode.type||0==n&&t.currentTimeline.getCurrentStyleProperties().length)&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=fg);let o=n;const r=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!i.optional,t.errors);t.currentQueryTotal=r.length;let a=null;r.forEach((n,i)=>{t.currentQueryIndex=i;const r=t.createSubContext(e.options,n);s&&r.delayNextStep(s),n===t.element&&(a=r.currentTimeline),Qp(this,e.animation,r),r.currentTimeline.applyStylesToKeyframe(),o=Math.max(o,r.currentTimeline.currentTime)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(o),a&&(t.currentTimeline.mergeTimelineCollectedStyles(a),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e}visitStagger(e,t){const n=t.parentContext,i=t.currentTimeline,s=e.timings,o=Math.abs(s.duration),r=o*(t.currentQueryTotal-1);let a=o*t.currentQueryIndex;switch(s.duration<0?"reverse":s.easing){case"reverse":a=r-a;break;case"full":a=n.currentStaggerTime}const l=t.currentTimeline;a&&l.delayNextStep(a);const c=l.currentTime;Qp(this,e.animation,t),t.previousNode=e,n.currentStaggerTime=i.currentTime-c+(i.startTime-n.currentTimeline.startTime)}}const fg={};class mg{constructor(e,t,n,i,s,o,r,a){this._driver=e,this.element=t,this.subInstructions=n,this._enterClassName=i,this._leaveClassName=s,this.errors=o,this.timelines=r,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=fg,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=a||new bg(this._driver,t,0),r.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(e,t){if(!e)return;const n=e;let i=this.options;null!=n.duration&&(i.duration=Tp(n.duration)),null!=n.delay&&(i.delay=Tp(n.delay));const s=n.params;if(s){let e=i.params;e||(e=this.options.params={}),Object.keys(s).forEach(n=>{t&&e.hasOwnProperty(n)||(e[n]=Wp(s[n],e,this.errors))})}}_copyOptions(){const e={};if(this.options){const t=this.options.params;if(t){const n=e.params={};Object.keys(t).forEach(e=>{n[e]=t[e]})}}return e}createSubContext(e=null,t,n){const i=t||this.element,s=new mg(this._driver,i,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(i,n||0));return s.previousNode=this.previousNode,s.currentAnimateTimings=this.currentAnimateTimings,s.options=this._copyOptions(),s.updateOptions(e),s.currentQueryIndex=this.currentQueryIndex,s.currentQueryTotal=this.currentQueryTotal,s.parentContext=this,this.subContextCount++,s}transformIntoNewTimeline(e){return this.previousNode=fg,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,t,n){const i={duration:null!=t?t:e.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+e.delay,easing:""},s=new vg(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,i,e.stretchStartingKeyframe);return this.timelines.push(s),i}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e)}invokeQuery(e,t,n,i,s,o){let r=[];if(i&&r.push(this.element),e.length>0){e=(e=e.replace(ug,"."+this._enterClassName)).replace(hg,"."+this._leaveClassName);let t=this._driver.query(this.element,e,1!=n);0!==n&&(t=n<0?t.slice(t.length+n,t.length):t.slice(0,n)),r.push(...t)}return s||0!=r.length||o.push(`\`query("${t}")\` returned zero elements. (Use \`query("${t}", { optional: true })\` if you wish to allow this.)`),r}}class bg{constructor(e,t,n,i){this._driver=e,this.element=t,this.startTime=n,this._elementTimelineStylesLookup=i,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(t),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(t,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(e){const t=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e}fork(e,t){return this.applyStylesToKeyframe(),new bg(this._driver,e,t||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}_updateStyle(e,t){this._localTimelineStyles[e]=t,this._globalTimelineStyles[e]=t,this._styleSummary[e]={time:this.currentTime,value:t}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(e){e&&(this._previousKeyframe.easing=e),Object.keys(this._globalTimelineStyles).forEach(e=>{this._backFill[e]=this._globalTimelineStyles[e]||"*",this._currentKeyframe[e]="*"}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,t,n,i){t&&(this._previousKeyframe.easing=t);const s=i&&i.params||{},o=function(e,t){const n={};let i;return e.forEach(e=>{"*"===e?(i=i||Object.keys(t),i.forEach(e=>{n[e]="*"})):Fp(e,!1,n)}),n}(e,this._globalTimelineStyles);Object.keys(o).forEach(e=>{const t=Wp(o[e],s,n);this._pendingStyles[e]=t,this._localTimelineStyles.hasOwnProperty(e)||(this._backFill[e]=this._globalTimelineStyles.hasOwnProperty(e)?this._globalTimelineStyles[e]:"*"),this._updateStyle(e,t)})}applyStylesToKeyframe(){const e=this._pendingStyles,t=Object.keys(e);0!=t.length&&(this._pendingStyles={},t.forEach(t=>{this._currentKeyframe[t]=e[t]}),Object.keys(this._localTimelineStyles).forEach(e=>{this._currentKeyframe.hasOwnProperty(e)||(this._currentKeyframe[e]=this._localTimelineStyles[e])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(e=>{const t=this._localTimelineStyles[e];this._pendingStyles[e]=t,this._updateStyle(e,t)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const e=[];for(let t in this._currentKeyframe)e.push(t);return e}mergeTimelineCollectedStyles(e){Object.keys(e._styleSummary).forEach(t=>{const n=this._styleSummary[t],i=e._styleSummary[t];(!n||i.time>n.time)&&this._updateStyle(t,i.value)})}buildKeyframes(){this.applyStylesToKeyframe();const e=new Set,t=new Set,n=1===this._keyframes.size&&0===this.duration;let i=[];this._keyframes.forEach((s,o)=>{const r=Fp(s,!0);Object.keys(r).forEach(n=>{const i=r[n];"!"==i?e.add(n):"*"==i&&t.add(n)}),n||(r.offset=o/this.duration),i.push(r)});const s=e.size?Gp(e.values()):[],o=t.size?Gp(t.values()):[];if(n){const e=i[0],t=Lp(e);e.offset=0,t.offset=1,i=[e,t]}return cg(this.element,i,s,o,this.duration,this.startTime,this.easing,!1)}}class vg extends bg{constructor(e,t,n,i,s,o,r=!1){super(e,t,o.delay),this.element=t,this.keyframes=n,this.preStyleProps=i,this.postStyleProps=s,this._stretchStartingKeyframe=r,this.timings={duration:o.duration,delay:o.delay,easing:o.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let e=this.keyframes,{delay:t,duration:n,easing:i}=this.timings;if(this._stretchStartingKeyframe&&t){const s=[],o=n+t,r=t/o,a=Fp(e[0],!1);a.offset=0,s.push(a);const l=Fp(e[0],!1);l.offset=yg(r),s.push(l);const c=e.length-1;for(let i=1;i<=c;i++){let r=Fp(e[i],!1);r.offset=yg((t+r.offset*n)/o),s.push(r)}n=o,t=0,i="",e=s}return cg(this.element,e,this.preStyleProps,this.postStyleProps,n,t,i,!0)}}function yg(e,t=3){const n=Math.pow(10,t-1);return Math.round(e*n)/n}class wg{}class _g extends wg{normalizePropertyName(e,t){return qp(e)}normalizeStyleValue(e,t,n,i){let s="";const o=n.toString().trim();if(xg[t]&&0!==n&&"0"!==n)if("number"==typeof n)s="px";else{const t=n.match(/^[+-]?[\d\.]+([a-z]*)$/);t&&0==t[1].length&&i.push(`Please provide a CSS unit value for ${e}:${n}`)}return o+s}}const xg=(()=>function(e){const t={};return e.forEach(e=>t[e]=!0),t}("width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(",")))();function Ag(e,t,n,i,s,o,r,a,l,c,d,u,h){return{type:0,element:e,triggerName:t,isRemovalTransition:s,fromState:n,fromStyles:o,toState:i,toStyles:r,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:d,totalTime:u,errors:h}}const Cg={};class Sg{constructor(e,t,n){this._triggerName=e,this.ast=t,this._stateStyles=n}match(e,t,n,i){return function(e,t,n,i,s){return e.some(e=>e(t,n,i,s))}(this.ast.matchers,e,t,n,i)}buildStyles(e,t,n){const i=this._stateStyles["*"],s=this._stateStyles[e],o=i?i.buildStyles(t,n):{};return s?s.buildStyles(t,n):o}build(e,t,n,i,s,o,r,a,l,c){const d=[],u=this.ast.options&&this.ast.options.params||Cg,h=this.buildStyles(n,r&&r.params||Cg,d),p=a&&a.params||Cg,g=this.buildStyles(i,p,d),f=new Set,m=new Map,b=new Map,v="void"===i,y={params:Object.assign(Object.assign({},u),p)},w=c?[]:pg(e,t,this.ast.animation,s,o,h,g,y,l,d);let _=0;if(w.forEach(e=>{_=Math.max(e.duration+e.delay,_)}),d.length)return Ag(t,this._triggerName,n,i,v,h,g,[],[],m,b,_,d);w.forEach(e=>{const n=e.element,i=bp(m,n,{});e.preStyleProps.forEach(e=>i[e]=!0);const s=bp(b,n,{});e.postStyleProps.forEach(e=>s[e]=!0),n!==t&&f.add(n)});const x=Gp(f.values());return Ag(t,this._triggerName,n,i,v,h,g,w,x,m,b,_)}}class kg{constructor(e,t){this.styles=e,this.defaultParams=t}buildStyles(e,t){const n={},i=Lp(this.defaultParams);return Object.keys(e).forEach(t=>{const n=e[t];null!=n&&(i[t]=n)}),this.styles.styles.forEach(e=>{if("string"!=typeof e){const s=e;Object.keys(s).forEach(e=>{let o=s[e];o.length>1&&(o=Wp(o,i,t)),n[e]=o})}}),n}}class Pg{constructor(e,t){this.name=e,this.ast=t,this.transitionFactories=[],this.states={},t.states.forEach(e=>{this.states[e.name]=new kg(e.style,e.options&&e.options.params||{})}),Eg(this.states,"true","1"),Eg(this.states,"false","0"),t.transitions.forEach(t=>{this.transitionFactories.push(new Sg(e,t,this.states))}),this.fallbackTransition=new Sg(e,{type:1,animation:{type:2,steps:[],options:null},matchers:[(e,t)=>!0],options:null,queryCount:0,depCount:0},this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,t,n,i){return this.transitionFactories.find(s=>s.match(e,t,n,i))||null}matchStyles(e,t,n){return this.fallbackTransition.buildStyles(e,t,n)}}function Eg(e,t,n){e.hasOwnProperty(t)?e.hasOwnProperty(n)||(e[n]=e[t]):e.hasOwnProperty(n)&&(e[t]=e[n])}const Dg=new dg;class Og{constructor(e,t,n){this.bodyNode=e,this._driver=t,this._normalizer=n,this._animations={},this._playersById={},this.players=[]}register(e,t){const n=[],i=ig(this._driver,t,n);if(n.length)throw new Error("Unable to build the animation due to the following errors: "+n.join("\n"));this._animations[e]=i}_buildPlayer(e,t,n){const i=e.element,s=pp(0,this._normalizer,0,e.keyframes,t,n);return this._driver.animate(i,s,e.duration,e.delay,e.easing,[],!0)}create(e,t,n={}){const i=[],s=this._animations[e];let o;const r=new Map;if(s?(o=pg(this._driver,t,s,"ng-enter","ng-leave",{},{},n,Dg,i),o.forEach(e=>{const t=bp(r,e.element,{});e.postStyleProps.forEach(e=>t[e]=null)})):(i.push("The requested animation doesn't exist or has already been destroyed"),o=[]),i.length)throw new Error("Unable to create the animation due to the following errors: "+i.join("\n"));r.forEach((e,t)=>{Object.keys(e).forEach(n=>{e[n]=this._driver.computeStyle(t,n,"*")})});const a=hp(o.map(e=>{const t=r.get(e.element);return this._buildPlayer(e,{},t)}));return this._playersById[e]=a,a.onDestroy(()=>this.destroy(e)),this.players.push(a),a}destroy(e){const t=this._getPlayer(e);t.destroy(),delete this._playersById[e];const n=this.players.indexOf(t);n>=0&&this.players.splice(n,1)}_getPlayer(e){const t=this._playersById[e];if(!t)throw new Error("Unable to find the timeline player referenced by "+e);return t}listen(e,t,n,i){const s=mp(t,"","","");return gp(this._getPlayer(e),n,s,i),()=>{}}command(e,t,n,i){if("register"==n)return void this.register(e,i[0]);if("create"==n)return void this.create(e,t,i[0]||{});const s=this._getPlayer(e);switch(n){case"play":s.play();break;case"pause":s.pause();break;case"reset":s.reset();break;case"restart":s.restart();break;case"finish":s.finish();break;case"init":s.init();break;case"setPosition":s.setPosition(parseFloat(i[0]));break;case"destroy":this.destroy(e)}}}const Mg=[],Tg={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Ig={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0};class Rg{constructor(e,t=""){this.namespaceId=t;const n=e&&e.hasOwnProperty("value");if(this.value=null!=(i=n?e.value:e)?i:null,n){const t=Lp(e);delete t.value,this.options=t}else this.options={};var i;this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(e){const t=e.params;if(t){const e=this.options.params;Object.keys(t).forEach(n=>{null==e[n]&&(e[n]=t[n])})}}}const Lg=new Rg("void");class Fg{constructor(e,t,n){this.id=e,this.hostElement=t,this._engine=n,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,Ug(t,this._hostClassName)}listen(e,t,n,i){if(!this._triggers.hasOwnProperty(t))throw new Error(`Unable to listen on the animation trigger event "${n}" because the animation trigger "${t}" doesn't exist!`);if(null==n||0==n.length)throw new Error(`Unable to listen on the animation trigger "${t}" because the provided event is undefined!`);if("start"!=(s=n)&&"done"!=s)throw new Error(`The provided animation trigger event "${n}" for the animation trigger "${t}" is not supported!`);var s;const o=bp(this._elementListeners,e,[]),r={name:t,phase:n,callback:i};o.push(r);const a=bp(this._engine.statesByElement,e,{});return a.hasOwnProperty(t)||(Ug(e,"ng-trigger"),Ug(e,"ng-trigger-"+t),a[t]=Lg),()=>{this._engine.afterFlush(()=>{const e=o.indexOf(r);e>=0&&o.splice(e,1),this._triggers[t]||delete a[t]})}}register(e,t){return!this._triggers[e]&&(this._triggers[e]=t,!0)}_getTrigger(e){const t=this._triggers[e];if(!t)throw new Error(`The provided animation trigger "${e}" has not been registered!`);return t}trigger(e,t,n,i=!0){const s=this._getTrigger(t),o=new zg(this.id,t,e);let r=this._engine.statesByElement.get(e);r||(Ug(e,"ng-trigger"),Ug(e,"ng-trigger-"+t),this._engine.statesByElement.set(e,r={}));let a=r[t];const l=new Rg(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&a&&l.absorbOptions(a.options),r[t]=l,a||(a=Lg),"void"!==l.value&&a.value===l.value){if(!function(e,t){const n=Object.keys(e),i=Object.keys(t);if(n.length!=i.length)return!1;for(let s=0;s<n.length;s++){const i=n[s];if(!t.hasOwnProperty(i)||e[i]!==t[i])return!1}return!0}(a.params,l.params)){const t=[],n=s.matchStyles(a.value,a.params,t),i=s.matchStyles(l.value,l.params,t);t.length?this._engine.reportError(t):this._engine.afterFlush(()=>{Np(e,n),Vp(e,i)})}return}const c=bp(this._engine.playersByElement,e,[]);c.forEach(e=>{e.namespaceId==this.id&&e.triggerName==t&&e.queued&&e.destroy()});let d=s.matchTransition(a.value,l.value,e,l.params),u=!1;if(!d){if(!i)return;d=s.fallbackTransition,u=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:d,fromState:a,toState:l,player:o,isFallbackTransition:u}),u||(Ug(e,"ng-animate-queued"),o.onStart(()=>{Wg(e,"ng-animate-queued")})),o.onDone(()=>{let t=this.players.indexOf(o);t>=0&&this.players.splice(t,1);const n=this._engine.playersByElement.get(e);if(n){let e=n.indexOf(o);e>=0&&n.splice(e,1)}}),this.players.push(o),c.push(o),o}deregister(e){delete this._triggers[e],this._engine.statesByElement.forEach((t,n)=>{delete t[e]}),this._elementListeners.forEach((t,n)=>{this._elementListeners.set(n,t.filter(t=>t.name!=e))})}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);const t=this._engine.playersByElement.get(e);t&&(t.forEach(e=>e.destroy()),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,t){const n=this._engine.driver.query(e,".ng-trigger",!0);n.forEach(e=>{if(e.__ng_removed)return;const n=this._engine.fetchNamespacesByElement(e);n.size?n.forEach(n=>n.triggerLeaveAnimation(e,t,!1,!0)):this.clearElementCache(e)}),this._engine.afterFlushAnimationsDone(()=>n.forEach(e=>this.clearElementCache(e)))}triggerLeaveAnimation(e,t,n,i){const s=this._engine.statesByElement.get(e);if(s){const o=[];if(Object.keys(s).forEach(t=>{if(this._triggers[t]){const n=this.trigger(e,t,"void",i);n&&o.push(n)}}),o.length)return this._engine.markElementAsRemoved(this.id,e,!0,t),n&&hp(o).onDone(()=>this._engine.processLeaveNode(e)),!0}return!1}prepareLeaveAnimationListeners(e){const t=this._elementListeners.get(e),n=this._engine.statesByElement.get(e);if(t&&n){const i=new Set;t.forEach(t=>{const s=t.name;if(i.has(s))return;i.add(s);const o=this._triggers[s].fallbackTransition,r=n[s]||Lg,a=new Rg("void"),l=new zg(this.id,s,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:s,transition:o,fromState:r,toState:a,player:l,isFallbackTransition:!0})})}}removeNode(e,t){const n=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,t),this.triggerLeaveAnimation(e,t,!0))return;let i=!1;if(n.totalAnimations){const t=n.players.length?n.playersByQueriedElement.get(e):[];if(t&&t.length)i=!0;else{let t=e;for(;t=t.parentNode;)if(n.statesByElement.get(t)){i=!0;break}}}if(this.prepareLeaveAnimationListeners(e),i)n.markElementAsRemoved(this.id,e,!1,t);else{const i=e.__ng_removed;i&&i!==Tg||(n.afterFlush(()=>this.clearElementCache(e)),n.destroyInnerAnimations(e),n._onRemovalComplete(e,t))}}insertNode(e,t){Ug(e,this._hostClassName)}drainQueuedTransitions(e){const t=[];return this._queue.forEach(n=>{const i=n.player;if(i.destroyed)return;const s=n.element,o=this._elementListeners.get(s);o&&o.forEach(t=>{if(t.name==n.triggerName){const i=mp(s,n.triggerName,n.fromState.value,n.toState.value);i._data=e,gp(n.player,t.phase,i,t.callback)}}),i.markedForDestroy?this._engine.afterFlush(()=>{i.destroy()}):t.push(n)}),this._queue=[],t.sort((e,t)=>{const n=e.transition.ast.depCount,i=t.transition.ast.depCount;return 0==n||0==i?n-i:this._engine.driver.containsElement(e.element,t.element)?1:-1})}destroy(e){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e)}elementContainsData(e){let t=!1;return this._elementListeners.has(e)&&(t=!0),t=!!this._queue.find(t=>t.element===e)||t,t}}class Bg{constructor(e,t,n){this.bodyNode=e,this.driver=t,this._normalizer=n,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(e,t)=>{}}_onRemovalComplete(e,t){this.onRemovalComplete(e,t)}get queuedPlayers(){const e=[];return this._namespaceList.forEach(t=>{t.players.forEach(t=>{t.queued&&e.push(t)})}),e}createNamespace(e,t){const n=new Fg(e,t,this);return t.parentNode?this._balanceNamespaceList(n,t):(this.newHostElements.set(t,n),this.collectEnterElement(t)),this._namespaceLookup[e]=n}_balanceNamespaceList(e,t){const n=this._namespaceList.length-1;if(n>=0){let i=!1;for(let s=n;s>=0;s--)if(this.driver.containsElement(this._namespaceList[s].hostElement,t)){this._namespaceList.splice(s+1,0,e),i=!0;break}i||this._namespaceList.splice(0,0,e)}else this._namespaceList.push(e);return this.namespacesByHostElement.set(t,e),e}register(e,t){let n=this._namespaceLookup[e];return n||(n=this.createNamespace(e,t)),n}registerTrigger(e,t,n){let i=this._namespaceLookup[e];i&&i.register(t,n)&&this.totalAnimations++}destroy(e,t){if(!e)return;const n=this._fetchNamespace(e);this.afterFlush(()=>{this.namespacesByHostElement.delete(n.hostElement),delete this._namespaceLookup[e];const t=this._namespaceList.indexOf(n);t>=0&&this._namespaceList.splice(t,1)}),this.afterFlushAnimationsDone(()=>n.destroy(t))}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){const t=new Set,n=this.statesByElement.get(e);if(n){const e=Object.keys(n);for(let i=0;i<e.length;i++){const s=n[e[i]].namespaceId;if(s){const e=this._fetchNamespace(s);e&&t.add(e)}}}return t}trigger(e,t,n,i){if(Vg(t)){const s=this._fetchNamespace(e);if(s)return s.trigger(t,n,i),!0}return!1}insertNode(e,t,n,i){if(!Vg(t))return;const s=t.__ng_removed;if(s&&s.setForRemoval){s.setForRemoval=!1,s.setForMove=!0;const e=this.collectedLeaveElements.indexOf(t);e>=0&&this.collectedLeaveElements.splice(e,1)}if(e){const i=this._fetchNamespace(e);i&&i.insertNode(t,n)}i&&this.collectEnterElement(t)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),Ug(e,"ng-animate-disabled")):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),Wg(e,"ng-animate-disabled"))}removeNode(e,t,n,i){if(Vg(t)){const s=e?this._fetchNamespace(e):null;if(s?s.removeNode(t,i):this.markElementAsRemoved(e,t,!1,i),n){const n=this.namespacesByHostElement.get(t);n&&n.id!==e&&n.removeNode(t,i)}}else this._onRemovalComplete(t,i)}markElementAsRemoved(e,t,n,i){this.collectedLeaveElements.push(t),t.__ng_removed={namespaceId:e,setForRemoval:i,hasAnimation:n,removedBeforeQueried:!1}}listen(e,t,n,i,s){return Vg(t)?this._fetchNamespace(e).listen(t,n,i,s):()=>{}}_buildInstruction(e,t,n,i,s){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,n,i,e.fromState.options,e.toState.options,t,s)}destroyInnerAnimations(e){let t=this.driver.query(e,".ng-trigger",!0);t.forEach(e=>this.destroyActiveAnimationsForElement(e)),0!=this.playersByQueriedElement.size&&(t=this.driver.query(e,".ng-animating",!0),t.forEach(e=>this.finishActiveQueriedAnimationOnElement(e)))}destroyActiveAnimationsForElement(e){const t=this.playersByElement.get(e);t&&t.forEach(e=>{e.queued?e.markedForDestroy=!0:e.destroy()})}finishActiveQueriedAnimationOnElement(e){const t=this.playersByQueriedElement.get(e);t&&t.forEach(e=>e.finish())}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return hp(this.players).onDone(()=>e());e()})}processLeaveNode(e){const t=e.__ng_removed;if(t&&t.setForRemoval){if(e.__ng_removed=Tg,t.namespaceId){this.destroyInnerAnimations(e);const n=this._fetchNamespace(t.namespaceId);n&&n.clearElementCache(e)}this._onRemovalComplete(e,t.setForRemoval)}this.driver.matchesElement(e,".ng-animate-disabled")&&this.markElementAsDisabled(e,!1),this.driver.query(e,".ng-animate-disabled",!0).forEach(e=>{this.markElementAsDisabled(e,!1)})}flush(e=-1){let t=[];if(this.newHostElements.size&&(this.newHostElements.forEach((e,t)=>this._balanceNamespaceList(e,t)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let n=0;n<this.collectedEnterElements.length;n++)Ug(this.collectedEnterElements[n],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const n=[];try{t=this._flushAnimations(n,e)}finally{for(let e=0;e<n.length;e++)n[e]()}}else for(let n=0;n<this.collectedLeaveElements.length;n++)this.processLeaveNode(this.collectedLeaveElements[n]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(e=>e()),this._flushFns=[],this._whenQuietFns.length){const e=this._whenQuietFns;this._whenQuietFns=[],t.length?hp(t).onDone(()=>{e.forEach(e=>e())}):e.forEach(e=>e())}}reportError(e){throw new Error("Unable to process animations due to the following failed trigger transitions\n "+e.join("\n"))}_flushAnimations(e,t){const n=new dg,i=[],s=new Map,o=[],r=new Map,a=new Map,l=new Map,c=new Set;this.disabledNodes.forEach(e=>{c.add(e);const t=this.driver.query(e,".ng-animate-queued",!0);for(let n=0;n<t.length;n++)c.add(t[n])});const d=this.bodyNode,u=Array.from(this.statesByElement.keys()),h=jg(u,this.collectedEnterElements),p=new Map;let g=0;h.forEach((e,t)=>{const n="ng-enter"+g++;p.set(t,n),e.forEach(e=>Ug(e,n))});const f=[],m=new Set,b=new Set;for(let O=0;O<this.collectedLeaveElements.length;O++){const e=this.collectedLeaveElements[O],t=e.__ng_removed;t&&t.setForRemoval&&(f.push(e),m.add(e),t.hasAnimation?this.driver.query(e,".ng-star-inserted",!0).forEach(e=>m.add(e)):b.add(e))}const v=new Map,y=jg(u,Array.from(m));y.forEach((e,t)=>{const n="ng-leave"+g++;v.set(t,n),e.forEach(e=>Ug(e,n))}),e.push(()=>{h.forEach((e,t)=>{const n=p.get(t);e.forEach(e=>Wg(e,n))}),y.forEach((e,t)=>{const n=v.get(t);e.forEach(e=>Wg(e,n))}),f.forEach(e=>{this.processLeaveNode(e)})});const w=[],_=[];for(let O=this._namespaceList.length-1;O>=0;O--)this._namespaceList[O].drainQueuedTransitions(t).forEach(e=>{const t=e.player,s=e.element;if(w.push(t),this.collectedEnterElements.length){const e=s.__ng_removed;if(e&&e.setForMove)return void t.destroy()}const c=!d||!this.driver.containsElement(d,s),u=v.get(s),h=p.get(s),g=this._buildInstruction(e,n,h,u,c);if(g.errors&&g.errors.length)_.push(g);else{if(c)return t.onStart(()=>Np(s,g.fromStyles)),t.onDestroy(()=>Vp(s,g.toStyles)),void i.push(t);if(e.isFallbackTransition)return t.onStart(()=>Np(s,g.fromStyles)),t.onDestroy(()=>Vp(s,g.toStyles)),void i.push(t);g.timelines.forEach(e=>e.stretchStartingKeyframe=!0),n.append(s,g.timelines),o.push({instruction:g,player:t,element:s}),g.queriedElements.forEach(e=>bp(r,e,[]).push(t)),g.preStyleProps.forEach((e,t)=>{const n=Object.keys(e);if(n.length){let e=a.get(t);e||a.set(t,e=new Set),n.forEach(t=>e.add(t))}}),g.postStyleProps.forEach((e,t)=>{const n=Object.keys(e);let i=l.get(t);i||l.set(t,i=new Set),n.forEach(e=>i.add(e))})}});if(_.length){const e=[];_.forEach(t=>{e.push(`@${t.triggerName} has failed due to:\n`),t.errors.forEach(t=>e.push(`- ${t}\n`))}),w.forEach(e=>e.destroy()),this.reportError(e)}const x=new Map,A=new Map;o.forEach(e=>{const t=e.element;n.has(t)&&(A.set(t,t),this._beforeAnimationBuild(e.player.namespaceId,e.instruction,x))}),i.forEach(e=>{const t=e.element;this._getPreviousPlayers(t,!1,e.namespaceId,e.triggerName,null).forEach(e=>{bp(x,t,[]).push(e),e.destroy()})});const C=f.filter(e=>qg(e,a,l)),S=new Map;Hg(S,this.driver,b,l,"*").forEach(e=>{qg(e,a,l)&&C.push(e)});const k=new Map;h.forEach((e,t)=>{Hg(k,this.driver,new Set(e),a,"!")}),C.forEach(e=>{const t=S.get(e),n=k.get(e);S.set(e,Object.assign(Object.assign({},t),n))});const P=[],E=[],D={};o.forEach(e=>{const{element:t,player:o,instruction:r}=e;if(n.has(t)){if(c.has(t))return o.onDestroy(()=>Vp(t,r.toStyles)),o.disabled=!0,o.overrideTotalTime(r.totalTime),void i.push(o);let e=D;if(A.size>1){let n=t;const i=[];for(;n=n.parentNode;){const t=A.get(n);if(t){e=t;break}i.push(n)}i.forEach(t=>A.set(t,e))}const n=this._buildAnimation(o.namespaceId,r,x,s,k,S);if(o.setRealPlayer(n),e===D)P.push(o);else{const t=this.playersByElement.get(e);t&&t.length&&(o.parentPlayer=hp(t)),i.push(o)}}else Np(t,r.fromStyles),o.onDestroy(()=>Vp(t,r.toStyles)),E.push(o),c.has(t)&&i.push(o)}),E.forEach(e=>{const t=s.get(e.element);if(t&&t.length){const n=hp(t);e.setRealPlayer(n)}}),i.forEach(e=>{e.parentPlayer?e.syncPlayerEvents(e.parentPlayer):e.destroy()});for(let O=0;O<f.length;O++){const e=f[O],t=e.__ng_removed;if(Wg(e,"ng-leave"),t&&t.hasAnimation)continue;let n=[];if(r.size){let t=r.get(e);t&&t.length&&n.push(...t);let i=this.driver.query(e,".ng-animating",!0);for(let e=0;e<i.length;e++){let t=r.get(i[e]);t&&t.length&&n.push(...t)}}const i=n.filter(e=>!e.destroyed);i.length?Gg(this,e,i):this.processLeaveNode(e)}return f.length=0,P.forEach(e=>{this.players.push(e),e.onDone(()=>{e.destroy();const t=this.players.indexOf(e);this.players.splice(t,1)}),e.play()}),P}elementContainsData(e,t){let n=!1;const i=t.__ng_removed;return i&&i.setForRemoval&&(n=!0),this.playersByElement.has(t)&&(n=!0),this.playersByQueriedElement.has(t)&&(n=!0),this.statesByElement.has(t)&&(n=!0),this._fetchNamespace(e).elementContainsData(t)||n}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,t,n,i,s){let o=[];if(t){const t=this.playersByQueriedElement.get(e);t&&(o=t)}else{const t=this.playersByElement.get(e);if(t){const e=!s||"void"==s;t.forEach(t=>{t.queued||(e||t.triggerName==i)&&o.push(t)})}}return(n||i)&&(o=o.filter(e=>!(n&&n!=e.namespaceId||i&&i!=e.triggerName))),o}_beforeAnimationBuild(e,t,n){const i=t.element,s=t.isRemovalTransition?void 0:e,o=t.isRemovalTransition?void 0:t.triggerName;for(const r of t.timelines){const e=r.element,a=e!==i,l=bp(n,e,[]);this._getPreviousPlayers(e,a,s,o,t.toState).forEach(e=>{const t=e.getRealPlayer();t.beforeDestroy&&t.beforeDestroy(),e.destroy(),l.push(e)})}Np(i,t.fromStyles)}_buildAnimation(e,t,n,i,s,o){const r=t.triggerName,a=t.element,l=[],c=new Set,d=new Set,u=t.timelines.map(t=>{const u=t.element;c.add(u);const h=u.__ng_removed;if(h&&h.removedBeforeQueried)return new cp(t.duration,t.delay);const p=u!==a,g=function(e){const t=[];return $g(e,t),t}((n.get(u)||Mg).map(e=>e.getRealPlayer())).filter(e=>!!e.element&&e.element===u),f=s.get(u),m=o.get(u),b=pp(0,this._normalizer,0,t.keyframes,f,m),v=this._buildPlayer(t,b,g);if(t.subTimeline&&i&&d.add(u),p){const t=new zg(e,r,u);t.setRealPlayer(v),l.push(t)}return v});l.forEach(e=>{bp(this.playersByQueriedElement,e.element,[]).push(e),e.onDone(()=>function(e,t,n){let i;if(e instanceof Map){if(i=e.get(t),i){if(i.length){const e=i.indexOf(n);i.splice(e,1)}0==i.length&&e.delete(t)}}else if(i=e[t],i){if(i.length){const e=i.indexOf(n);i.splice(e,1)}0==i.length&&delete e[t]}return i}(this.playersByQueriedElement,e.element,e))}),c.forEach(e=>Ug(e,"ng-animating"));const h=hp(u);return h.onDestroy(()=>{c.forEach(e=>Wg(e,"ng-animating")),Vp(a,t.toStyles)}),d.forEach(e=>{bp(i,e,[]).push(h)}),h}_buildPlayer(e,t,n){return t.length>0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,n):new cp(e.duration,e.delay)}}class zg{constructor(e,t,n){this.namespaceId=e,this.triggerName=t,this.element=n,this._player=new cp,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(e){this._containsRealPlayer||(this._player=e,Object.keys(this._queuedCallbacks).forEach(t=>{this._queuedCallbacks[t].forEach(n=>gp(e,t,void 0,n))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(e){this.totalTime=e}syncPlayerEvents(e){const t=this._player;t.triggerCallback&&e.onStart(()=>t.triggerCallback("start")),e.onDone(()=>this.finish()),e.onDestroy(()=>this.destroy())}_queueEvent(e,t){bp(this._queuedCallbacks,e,[]).push(t)}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&&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){const t=this._player;t.triggerCallback&&t.triggerCallback(e)}}function Vg(e){return e&&1===e.nodeType}function Ng(e,t){const n=e.style.display;return e.style.display=null!=t?t:"none",n}function Hg(e,t,n,i,s){const o=[];n.forEach(e=>o.push(Ng(e)));const r=[];i.forEach((n,i)=>{const o={};n.forEach(e=>{const n=o[e]=t.computeStyle(i,e,s);n&&0!=n.length||(i.__ng_removed=Ig,r.push(i))}),e.set(i,o)});let a=0;return n.forEach(e=>Ng(e,o[a++])),r}function jg(e,t){const n=new Map;if(e.forEach(e=>n.set(e,[])),0==t.length)return n;const i=new Set(t),s=new Map;function o(e){if(!e)return 1;let t=s.get(e);if(t)return t;const r=e.parentNode;return t=n.has(r)?r:i.has(r)?1:o(r),s.set(e,t),t}return t.forEach(e=>{const t=o(e);1!==t&&n.get(t).push(e)}),n}function Ug(e,t){if(e.classList)e.classList.add(t);else{let n=e.$$classes;n||(n=e.$$classes={}),n[t]=!0}}function Wg(e,t){if(e.classList)e.classList.remove(t);else{let n=e.$$classes;n&&delete n[t]}}function Gg(e,t,n){hp(n).onDone(()=>e.processLeaveNode(t))}function $g(e,t){for(let n=0;n<e.length;n++){const i=e[n];i instanceof dp?$g(i.players,t):t.push(i)}}function qg(e,t,n){const i=n.get(e);if(!i)return!1;let s=t.get(e);return s?i.forEach(e=>s.add(e)):t.set(e,i),n.delete(e),!0}class Yg{constructor(e,t,n){this.bodyNode=e,this._driver=t,this._triggerCache={},this.onRemovalComplete=(e,t)=>{},this._transitionEngine=new Bg(e,t,n),this._timelineEngine=new Og(e,t,n),this._transitionEngine.onRemovalComplete=(e,t)=>this.onRemovalComplete(e,t)}registerTrigger(e,t,n,i,s){const o=e+"-"+i;let r=this._triggerCache[o];if(!r){const e=[],t=ig(this._driver,s,e);if(e.length)throw new Error(`The animation trigger "${i}" has failed to build due to the following errors:\n - ${e.join("\n - ")}`);r=function(e,t){return new Pg(e,t)}(i,t),this._triggerCache[o]=r}this._transitionEngine.registerTrigger(t,i,r)}register(e,t){this._transitionEngine.register(e,t)}destroy(e,t){this._transitionEngine.destroy(e,t)}onInsert(e,t,n,i){this._transitionEngine.insertNode(e,t,n,i)}onRemove(e,t,n,i){this._transitionEngine.removeNode(e,t,i||!1,n)}disableAnimations(e,t){this._transitionEngine.markElementAsDisabled(e,t)}process(e,t,n,i){if("@"==n.charAt(0)){const[e,s]=vp(n);this._timelineEngine.command(e,t,s,i)}else this._transitionEngine.trigger(e,t,n,i)}listen(e,t,n,i,s){if("@"==n.charAt(0)){const[e,i]=vp(n);return this._timelineEngine.listen(e,t,i,s)}return this._transitionEngine.listen(e,t,n,i,s)}flush(e=-1){this._transitionEngine.flush(e)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}function Zg(e,t){let n=null,i=null;return Array.isArray(t)&&t.length?(n=Xg(t[0]),t.length>1&&(i=Xg(t[t.length-1]))):t&&(n=Xg(t)),n||i?new Qg(e,n,i):null}let Qg=(()=>{class e{constructor(t,n,i){this._element=t,this._startStyles=n,this._endStyles=i,this._state=0;let s=e.initialStylesByElement.get(t);s||e.initialStylesByElement.set(t,s={}),this._initialStyles=s}start(){this._state<1&&(this._startStyles&&Vp(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Vp(this._element,this._initialStyles),this._endStyles&&(Vp(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(e.initialStylesByElement.delete(this._element),this._startStyles&&(Np(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Np(this._element,this._endStyles),this._endStyles=null),Vp(this._element,this._initialStyles),this._state=3)}}return e.initialStylesByElement=new WeakMap,e})();function Xg(e){let t=null;const n=Object.keys(e);for(let i=0;i<n.length;i++){const s=n[i];Kg(s)&&(t=t||{},t[s]=e[s])}return t}function Kg(e){return"display"===e||"position"===e}class Jg{constructor(e,t,n,i,s,o,r){this._element=e,this._name=t,this._duration=n,this._delay=i,this._easing=s,this._fillMode=o,this._onDoneFn=r,this._finished=!1,this._destroyed=!1,this._startTime=0,this._position=0,this._eventFn=e=>this._handleCallback(e)}apply(){!function(e,t){const n=rf(e,"").trim();n.length&&(function(e,t){let n=0;for(let i=0;i<e.length;i++)","===e.charAt(i)&&n++}(n),t=`${n}, ${t}`),of(e,"",t)}(this._element,`${this._duration}ms ${this._easing} ${this._delay}ms 1 normal ${this._fillMode} ${this._name}`),sf(this._element,this._eventFn,!1),this._startTime=Date.now()}pause(){ef(this._element,this._name,"paused")}resume(){ef(this._element,this._name,"running")}setPosition(e){const t=tf(this._element,this._name);this._position=e*this._duration,of(this._element,"Delay",`-${this._position}ms`,t)}getPosition(){return this._position}_handleCallback(e){const t=e._ngTestManualTimestamp||Date.now(),n=1e3*parseFloat(e.elapsedTime.toFixed(3));e.animationName==this._name&&Math.max(t-this._startTime,0)>=this._delay&&n>=this._duration&&this.finish()}finish(){this._finished||(this._finished=!0,this._onDoneFn(),sf(this._element,this._eventFn,!0))}destroy(){this._destroyed||(this._destroyed=!0,this.finish(),function(e,t){const n=rf(e,"").split(","),i=nf(n,t);i>=0&&(n.splice(i,1),of(e,"",n.join(",")))}(this._element,this._name))}}function ef(e,t,n){of(e,"PlayState",n,tf(e,t))}function tf(e,t){const n=rf(e,"");return n.indexOf(",")>0?nf(n.split(","),t):nf([n],t)}function nf(e,t){for(let n=0;n<e.length;n++)if(e[n].indexOf(t)>=0)return n;return-1}function sf(e,t,n){n?e.removeEventListener("animationend",t):e.addEventListener("animationend",t)}function of(e,t,n,i){const s="animation"+t;if(null!=i){const t=e.style[s];if(t.length){const e=t.split(",");e[i]=n,n=e.join(",")}}e.style[s]=n}function rf(e,t){return e.style["animation"+t]||""}class af{constructor(e,t,n,i,s,o,r,a){this.element=e,this.keyframes=t,this.animationName=n,this._duration=i,this._delay=s,this._finalStyles=r,this._specialStyles=a,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this.currentSnapshot={},this._state=0,this.easing=o||"linear",this.totalTime=i+s,this._buildStyler()}onStart(e){this._onStartFns.push(e)}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}destroy(){this.init(),this._state>=4||(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}_flushDoneFns(){this._onDoneFns.forEach(e=>e()),this._onDoneFns=[]}_flushStartFns(){this._onStartFns.forEach(e=>e()),this._onStartFns=[]}finish(){this.init(),this._state>=3||(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}setPosition(e){this._styler.setPosition(e)}getPosition(){return this._styler.getPosition()}hasStarted(){return this._state>=2}init(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())}play(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}pause(){this.init(),this._styler.pause()}restart(){this.reset(),this.play()}reset(){this._styler.destroy(),this._buildStyler(),this._styler.apply()}_buildStyler(){this._styler=new Jg(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",()=>this.finish())}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(e=>e()),t.length=0}beforeDestroy(){this.init();const e={};if(this.hasStarted()){const t=this._state>=3;Object.keys(this._finalStyles).forEach(n=>{"offset"!=n&&(e[n]=t?this._finalStyles[n]:Xp(this.element,n))})}this.currentSnapshot=e}}class lf extends cp{constructor(e,t){super(),this.element=e,this._startingStyles={},this.__initialized=!1,this._styles=Dp(t)}init(){!this.__initialized&&this._startingStyles&&(this.__initialized=!0,Object.keys(this._styles).forEach(e=>{this._startingStyles[e]=this.element.style[e]}),super.init())}play(){this._startingStyles&&(this.init(),Object.keys(this._styles).forEach(e=>this.element.style.setProperty(e,this._styles[e])),super.play())}destroy(){this._startingStyles&&(Object.keys(this._startingStyles).forEach(e=>{const t=this._startingStyles[e];t?this.element.style.setProperty(e,t):this.element.style.removeProperty(e)}),this._startingStyles=null,super.destroy())}}class cf{constructor(){this._count=0,this._head=document.querySelector("head")}validateStyleProperty(e){return Sp(e)}matchesElement(e,t){return kp(e,t)}containsElement(e,t){return Pp(e,t)}query(e,t,n){return Ep(e,t,n)}computeStyle(e,t,n){return window.getComputedStyle(e)[t]}buildKeyframeElement(e,t,n){n=n.map(e=>Dp(e));let i=`@keyframes ${t} {\n`,s="";n.forEach(e=>{s=" ";const t=parseFloat(e.offset);i+=`${s}${100*t}% {\n`,s+=" ",Object.keys(e).forEach(t=>{const n=e[t];switch(t){case"offset":return;case"easing":return void(n&&(i+=`${s}animation-timing-function: ${n};\n`));default:return void(i+=`${s}${t}: ${n};\n`)}}),i+=s+"}\n"}),i+="}\n";const o=document.createElement("style");return o.textContent=i,o}animate(e,t,n,i,s,o=[],r){const a=o.filter(e=>e instanceof af),l={};Yp(n,i)&&a.forEach(e=>{let t=e.currentSnapshot;Object.keys(t).forEach(e=>l[e]=t[e])});const c=function(e){let t={};return e&&(Array.isArray(e)?e:[e]).forEach(e=>{Object.keys(e).forEach(n=>{"offset"!=n&&"easing"!=n&&(t[n]=e[n])})}),t}(t=Zp(e,t,l));if(0==n)return new lf(e,c);const d="gen_css_kf_"+this._count++,u=this.buildKeyframeElement(e,d,t);document.querySelector("head").appendChild(u);const h=Zg(e,t),p=new af(e,t,d,n,i,s,c,h);return p.onDestroy(()=>{var e;(e=u).parentNode.removeChild(e)}),p}}class df{constructor(e,t,n,i){this.element=e,this.keyframes=t,this.options=n,this._specialStyles=i,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(e,t,n){return e.animate(t,n)}onStart(e){this._onStartFns.push(e)}onDone(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}_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){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=e*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const e={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(t=>{"offset"!=t&&(e[t]=this._finished?this._finalKeyframe[t]:Xp(this.element,t))}),this.currentSnapshot=e}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(e=>e()),t.length=0}}class uf{constructor(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(hf().toString()),this._cssKeyframesDriver=new cf}validateStyleProperty(e){return Sp(e)}matchesElement(e,t){return kp(e,t)}containsElement(e,t){return Pp(e,t)}query(e,t,n){return Ep(e,t,n)}computeStyle(e,t,n){return window.getComputedStyle(e)[t]}overrideWebAnimationsSupport(e){this._isNativeImpl=e}animate(e,t,n,i,s,o=[],r){if(!r&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(e,t,n,i,s,o);const a={duration:n,delay:i,fill:0==i?"both":"forwards"};s&&(a.easing=s);const l={},c=o.filter(e=>e instanceof df);Yp(n,i)&&c.forEach(e=>{let t=e.currentSnapshot;Object.keys(t).forEach(e=>l[e]=t[e])});const d=Zg(e,t=Zp(e,t=t.map(e=>Fp(e,!1)),l));return new df(e,t,a,d)}}function hf(){return"undefined"!=typeof window&&void 0!==window.document&&Element.prototype.animate||{}}let pf=(()=>{class e extends Kh{constructor(e,t){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(t.body,{id:"0",encapsulation:De.None,styles:[],data:{animation:[]}})}build(e){const t=this._nextAnimationId.toString();this._nextAnimationId++;const n=Array.isArray(e)?tp(e):e;return mf(this._renderer,null,t,"register",[n]),new gf(t,this._renderer)}}return e.\u0275fac=function(t){return new(t||e)(gi(ll),gi(Hd))},e.\u0275prov=pe({token:e,factory:e.\u0275fac}),e})();class gf extends class{}{constructor(e,t){super(),this._id=e,this._renderer=t}create(e,t){return new ff(this._id,e,t||{},this._renderer)}}class ff{constructor(e,t,n,i){this.id=e,this.element=t,this._renderer=i,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",n)}_listen(e,t){return this._renderer.listen(this.element,`@@${this.id}:${e}`,t)}_command(e,...t){return mf(this._renderer,this.element,this.id,e,t)}onDone(e){this._listen("done",e)}onStart(e){this._listen("start",e)}onDestroy(e){this._listen("destroy",e)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset")}setPosition(e){this._command("setPosition",e)}getPosition(){var e,t;return null!==(t=null===(e=this._renderer.engine.players[+this.id])||void 0===e?void 0:e.getPosition())&&void 0!==t?t:0}}function mf(e,t,n,i,s){return e.setProperty(t,`@@${n}:${i}`,s)}let bf=(()=>{class e{constructor(e,t,n){this.delegate=e,this.engine=t,this._zone=n,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),t.onRemovalComplete=(e,t)=>{t&&t.parentNode(e)&&t.removeChild(e.parentNode,e)}}createRenderer(e,t){const n=this.delegate.createRenderer(e,t);if(!(e&&t&&t.data&&t.data.animation)){let e=this._rendererCache.get(n);return e||(e=new vf("",n,this.engine),this._rendererCache.set(n,e)),e}const i=t.id,s=t.id+"-"+this._currentId;this._currentId++,this.engine.register(s,e);const o=t=>{Array.isArray(t)?t.forEach(o):this.engine.registerTrigger(i,s,e,t.name,t)};return t.data.animation.forEach(o),new yf(this,s,n,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(e,t,n){e>=0&&e<this._microtaskId?this._zone.run(()=>t(n)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(e=>{const[t,n]=e;t(n)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([t,n]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return e.\u0275fac=function(t){return new(t||e)(gi(ll),gi(Yg),gi(ad))},e.\u0275prov=pe({token:e,factory:e.\u0275fac}),e})();class vf{constructor(e,t,n){this.namespaceId=e,this.delegate=t,this.engine=n,this.destroyNode=this.delegate.destroyNode?e=>t.destroyNode(e):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(e,t){return this.delegate.createElement(e,t)}createComment(e){return this.delegate.createComment(e)}createText(e){return this.delegate.createText(e)}appendChild(e,t){this.delegate.appendChild(e,t),this.engine.onInsert(this.namespaceId,t,e,!1)}insertBefore(e,t,n,i=!0){this.delegate.insertBefore(e,t,n),this.engine.onInsert(this.namespaceId,t,e,i)}removeChild(e,t,n){this.engine.onRemove(this.namespaceId,t,this.delegate,n)}selectRootElement(e,t){return this.delegate.selectRootElement(e,t)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setAttribute(e,t,n,i){this.delegate.setAttribute(e,t,n,i)}removeAttribute(e,t,n){this.delegate.removeAttribute(e,t,n)}addClass(e,t){this.delegate.addClass(e,t)}removeClass(e,t){this.delegate.removeClass(e,t)}setStyle(e,t,n,i){this.delegate.setStyle(e,t,n,i)}removeStyle(e,t,n){this.delegate.removeStyle(e,t,n)}setProperty(e,t,n){"@"==t.charAt(0)&&"@.disabled"==t?this.disableAnimations(e,!!n):this.delegate.setProperty(e,t,n)}setValue(e,t){this.delegate.setValue(e,t)}listen(e,t,n){return this.delegate.listen(e,t,n)}disableAnimations(e,t){this.engine.disableAnimations(e,t)}}class yf extends vf{constructor(e,t,n,i){super(t,n,i),this.factory=e,this.namespaceId=t}setProperty(e,t,n){"@"==t.charAt(0)?"."==t.charAt(1)&&"@.disabled"==t?this.disableAnimations(e,n=void 0===n||!!n):this.engine.process(this.namespaceId,e,t.substr(1),n):this.delegate.setProperty(e,t,n)}listen(e,t,n){if("@"==t.charAt(0)){const i=function(e){switch(e){case"body":return document.body;case"document":return document;case"window":return window;default:return e}}(e);let s=t.substr(1),o="";return"@"!=s.charAt(0)&&([s,o]=function(e){const t=e.indexOf(".");return[e.substring(0,t),e.substr(t+1)]}(s)),this.engine.listen(this.namespaceId,i,s,o,e=>{this.factory.scheduleListenerCallback(e._data||-1,n,e)})}return this.delegate.listen(e,t,n)}}let wf=(()=>{class e extends Yg{constructor(e,t,n){super(e.body,t,n)}}return e.\u0275fac=function(t){return new(t||e)(gi(Hd),gi(Mp),gi(wg))},e.\u0275prov=pe({token:e,factory:e.\u0275fac}),e})();const _f=new Xn("AnimationModuleType"),xf=[{provide:Mp,useFactory:function(){return"function"==typeof hf()?new uf:new cf}},{provide:_f,useValue:"BrowserAnimations"},{provide:Kh,useClass:pf},{provide:wg,useFactory:function(){return new _g}},{provide:Yg,useClass:wf},{provide:ll,useFactory:function(e,t,n){return new bf(e,t,n)},deps:[Mh,Yg,ad]}];let Af=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=fe({providers:xf,imports:[Xh]}),e})();function Cf(...e){if(1===e.length){const t=e[0];if(l(t))return Sf(t,null);if(c(t)&&Object.getPrototypeOf(t)===Object.prototype){const e=Object.keys(t);return Sf(e.map(e=>t[e]),e)}}if("function"==typeof e[e.length-1]){const t=e.pop();return Sf(e=1===e.length&&l(e[0])?e[0]:e,null).pipe(k(e=>t(...e)))}return Sf(e,null)}function Sf(e,t){return new v(n=>{const i=e.length;if(0===i)return void n.complete();const s=new Array(i);let o=0,r=0;for(let a=0;a<i;a++){const l=F(e[a]);let c=!1;n.add(l.subscribe({next:e=>{c||(c=!0,r++),s[a]=e},error:e=>n.error(e),complete:()=>{o++,o!==i&&c||(r===i&&n.next(t?t.reduce((e,t,n)=>(e[t]=s[n],e),{}):s),n.complete())}}))}})}class kf{}const Pf=new Xn("NgValueAccessor"),Ef={provide:Pf,useExisting:re(()=>Df),multi:!0};let Df=(()=>{class e extends kf{constructor(e,t){super(),this._renderer=e,this._elementRef=t,this.onChange=e=>{},this.onTouched=()=>{}}writeValue(e){this._renderer.setProperty(this._elementRef.nativeElement,"checked",e)}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}}return e.\u0275fac=function(t){return new(t||e)(zr(cl),zr(rl))},e.\u0275dir=Ke({type:e,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(e,t){1&e&&Xr("change",function(e){return t.onChange(e.target.checked)})("blur",function(){return t.onTouched()})},features:[Ja([Ef]),vr]}),e})();const Of={provide:Pf,useExisting:re(()=>Tf),multi:!0},Mf=new Xn("CompositionEventMode");let Tf=(()=>{class e{constructor(e,t,n){this._renderer=e,this._elementRef=t,this._compositionMode=n,this.onChange=e=>{},this.onTouched=()=>{},this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function(){const e=Nd()?Nd().getUserAgent():"";return/android (\d+)/.test(e.toLowerCase())}())}writeValue(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==e?"":e)}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}}return e.\u0275fac=function(t){return new(t||e)(zr(cl),zr(rl),zr(Mf,8))},e.\u0275dir=Ke({type:e,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(e,t){1&e&&Xr("input",function(e){return t._handleInput(e.target.value)})("blur",function(){return t.onTouched()})("compositionstart",function(){return t._compositionStart()})("compositionend",function(e){return t._compositionEnd(e.target.value)})},features:[Ja([Of])]}),e})();function If(e){return null==e||0===e.length}function Rf(e){return null!=e&&"number"==typeof e.length}const Lf=new Xn("NgValidators"),Ff=new Xn("NgAsyncValidators"),Bf=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class zf{static min(e){return function(e){return t=>{if(If(t.value)||If(e))return null;const n=parseFloat(t.value);return!isNaN(n)&&n<e?{min:{min:e,actual:t.value}}:null}}(e)}static max(e){return function(e){return t=>{if(If(t.value)||If(e))return null;const n=parseFloat(t.value);return!isNaN(n)&&n>e?{max:{max:e,actual:t.value}}:null}}(e)}static required(e){return Vf(e)}static requiredTrue(e){return function(e){return!0===e.value?null:{required:!0}}(e)}static email(e){return function(e){return If(e.value)||Bf.test(e.value)?null:{email:!0}}(e)}static minLength(e){return function(e){return t=>If(t.value)||!Rf(t.value)?null:t.value.length<e?{minlength:{requiredLength:e,actualLength:t.value.length}}:null}(e)}static maxLength(e){return Nf(e)}static pattern(e){return Hf(e)}static nullValidator(e){return null}static compose(e){return Yf(e)}static composeAsync(e){return Qf(e)}}function Vf(e){return If(e.value)?{required:!0}:null}function Nf(e){return t=>Rf(t.value)&&t.value.length>e?{maxlength:{requiredLength:e,actualLength:t.value.length}}:null}function Hf(e){if(!e)return jf;let t,n;return"string"==typeof e?(n="","^"!==e.charAt(0)&&(n+="^"),n+=e,"$"!==e.charAt(e.length-1)&&(n+="$"),t=new RegExp(n)):(n=e.toString(),t=e),e=>{if(If(e.value))return null;const i=e.value;return t.test(i)?null:{pattern:{requiredPattern:n,actualValue:i}}}}function jf(e){return null}function Uf(e){return null!=e}function Wf(e){const t=Yr(e)?F(e):e;return Qr(t),t}function Gf(e){let t={};return e.forEach(e=>{t=null!=e?Object.assign(Object.assign({},t),e):t}),0===Object.keys(t).length?null:t}function $f(e,t){return t.map(t=>t(e))}function qf(e){return e.map(e=>function(e){return!e.validate}(e)?e:t=>e.validate(t))}function Yf(e){if(!e)return null;const t=e.filter(Uf);return 0==t.length?null:function(e){return Gf($f(e,t))}}function Zf(e){return null!=e?Yf(qf(e)):null}function Qf(e){if(!e)return null;const t=e.filter(Uf);return 0==t.length?null:function(e){return Cf($f(e,t).map(Wf)).pipe(k(Gf))}}function Xf(e){return null!=e?Qf(qf(e)):null}function Kf(e,t){return null===e?[t]:Array.isArray(e)?[...e,t]:[e,t]}function Jf(e){return e._rawValidators}function em(e){return e._rawAsyncValidators}let tm=(()=>{class e{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(e){this._rawValidators=e||[],this._composedValidatorFn=Zf(this._rawValidators)}_setAsyncValidators(e){this._rawAsyncValidators=e||[],this._composedAsyncValidatorFn=Xf(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(e){this._onDestroyCallbacks.push(e)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(e=>e()),this._onDestroyCallbacks=[]}reset(e){this.control&&this.control.reset(e)}hasError(e,t){return!!this.control&&this.control.hasError(e,t)}getError(e,t){return this.control?this.control.getError(e,t):null}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Ke({type:e}),e})(),nm=(()=>{class e extends tm{get formDirective(){return null}get path(){return null}}return e.\u0275fac=function(t){return im(t||e)},e.\u0275dir=Ke({type:e,features:[vr]}),e})();const im=$n(nm);class sm extends tm{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class om{constructor(e){this._cd=e}is(e){var t,n;return!!(null===(n=null===(t=this._cd)||void 0===t?void 0:t.control)||void 0===n?void 0:n[e])}}let rm=(()=>{class e extends om{constructor(e){super(e)}}return e.\u0275fac=function(t){return new(t||e)(zr(sm,2))},e.\u0275dir=Ke({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,t){2&e&&ma("ng-untouched",t.is("untouched"))("ng-touched",t.is("touched"))("ng-pristine",t.is("pristine"))("ng-dirty",t.is("dirty"))("ng-valid",t.is("valid"))("ng-invalid",t.is("invalid"))("ng-pending",t.is("pending"))},features:[vr]}),e})(),am=(()=>{class e extends om{constructor(e){super(e)}}return e.\u0275fac=function(t){return new(t||e)(zr(nm,10))},e.\u0275dir=Ke({type:e,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:14,hostBindings:function(e,t){2&e&&ma("ng-untouched",t.is("untouched"))("ng-touched",t.is("touched"))("ng-pristine",t.is("pristine"))("ng-dirty",t.is("dirty"))("ng-valid",t.is("valid"))("ng-invalid",t.is("invalid"))("ng-pending",t.is("pending"))},features:[vr]}),e})();function lm(e,t){return[...t.path,e]}function cm(e,t){hm(e,t,!0),t.valueAccessor.writeValue(e.value),function(e,t){t.valueAccessor.registerOnChange(n=>{e._pendingValue=n,e._pendingChange=!0,e._pendingDirty=!0,"change"===e.updateOn&&gm(e,t)})}(e,t),function(e,t){const n=(e,n)=>{t.valueAccessor.writeValue(e),n&&t.viewToModelUpdate(e)};e.registerOnChange(n),t._registerOnDestroy(()=>{e._unregisterOnChange(n)})}(e,t),function(e,t){t.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,"blur"===e.updateOn&&e._pendingChange&&gm(e,t),"submit"!==e.updateOn&&e.markAsTouched()})}(e,t),function(e,t){if(t.valueAccessor.setDisabledState){const n=e=>{t.valueAccessor.setDisabledState(e)};e.registerOnDisabledChange(n),t._registerOnDestroy(()=>{e._unregisterOnDisabledChange(n)})}}(e,t)}function dm(e,t,n=!0){const i=()=>{};t.valueAccessor&&(t.valueAccessor.registerOnChange(i),t.valueAccessor.registerOnTouched(i)),pm(e,t,!0),e&&(t._invokeOnDestroyCallbacks(),e._registerOnCollectionChange(()=>{}))}function um(e,t){e.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(t)})}function hm(e,t,n){const i=Jf(e);null!==t.validator?e.setValidators(Kf(i,t.validator)):"function"==typeof i&&e.setValidators([i]);const s=em(e);if(null!==t.asyncValidator?e.setAsyncValidators(Kf(s,t.asyncValidator)):"function"==typeof s&&e.setAsyncValidators([s]),n){const n=()=>e.updateValueAndValidity();um(t._rawValidators,n),um(t._rawAsyncValidators,n)}}function pm(e,t,n){let i=!1;if(null!==e){if(null!==t.validator){const n=Jf(e);if(Array.isArray(n)&&n.length>0){const s=n.filter(e=>e!==t.validator);s.length!==n.length&&(i=!0,e.setValidators(s))}}if(null!==t.asyncValidator){const n=em(e);if(Array.isArray(n)&&n.length>0){const s=n.filter(e=>e!==t.asyncValidator);s.length!==n.length&&(i=!0,e.setAsyncValidators(s))}}}if(n){const e=()=>{};um(t._rawValidators,e),um(t._rawAsyncValidators,e)}return i}function gm(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function fm(e,t){hm(e,t,!1)}function mm(e,t){if(!e.hasOwnProperty("model"))return!1;const n=e.model;return!!n.isFirstChange()||!Object.is(t,n.currentValue)}function bm(e,t){e._syncPendingControls(),t.forEach(e=>{const t=e.control;"submit"===t.updateOn&&t._pendingChange&&(e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1)})}function vm(e,t){if(!t)return null;Array.isArray(t);let n=void 0,i=void 0,s=void 0;return t.forEach(e=>{e.constructor===Tf?n=e:Object.getPrototypeOf(e.constructor)===kf?i=e:s=e}),s||i||n||null}function ym(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}function wm(e){return(Cm(e)?e.validators:e)||null}function _m(e){return Array.isArray(e)?Zf(e):e||null}function xm(e,t){return(Cm(t)?t.asyncValidators:e)||null}function Am(e){return Array.isArray(e)?Xf(e):e||null}function Cm(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}class Sm{constructor(e,t){this._hasOwnPendingAsyncValidator=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=e,this._rawAsyncValidators=t,this._composedValidatorFn=_m(this._rawValidators),this._composedAsyncValidatorFn=Am(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(e){this._rawValidators=this._composedValidatorFn=e}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(e){this._rawAsyncValidators=this._composedAsyncValidatorFn=e}get parent(){return this._parent}get valid(){return"VALID"===this.status}get invalid(){return"INVALID"===this.status}get pending(){return"PENDING"==this.status}get disabled(){return"DISABLED"===this.status}get enabled(){return"DISABLED"!==this.status}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(e){this._rawValidators=e,this._composedValidatorFn=_m(e)}setAsyncValidators(e){this._rawAsyncValidators=e,this._composedAsyncValidatorFn=Am(e)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(e={}){this.touched=!0,this._parent&&!e.onlySelf&&this._parent.markAsTouched(e)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(e=>e.markAllAsTouched())}markAsUntouched(e={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}markAsDirty(e={}){this.pristine=!1,this._parent&&!e.onlySelf&&this._parent.markAsDirty(e)}markAsPristine(e={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}markAsPending(e={}){this.status="PENDING",!1!==e.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!e.onlySelf&&this._parent.markAsPending(e)}disable(e={}){const t=this._parentMarkedDirty(e.onlySelf);this.status="DISABLED",this.errors=null,this._forEachChild(t=>{t.disable(Object.assign(Object.assign({},e),{onlySelf:!0}))}),this._updateValue(),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},e),{skipPristineCheck:t})),this._onDisabledChange.forEach(e=>e(!0))}enable(e={}){const t=this._parentMarkedDirty(e.onlySelf);this.status="VALID",this._forEachChild(t=>{t.enable(Object.assign(Object.assign({},e),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},e),{skipPristineCheck:t})),this._onDisabledChange.forEach(e=>e(!1))}_updateAncestors(e){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(e){this._parent=e}updateValueAndValidity(e={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),"VALID"!==this.status&&"PENDING"!==this.status||this._runAsyncValidator(e.emitEvent)),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(e)}_updateTreeValidity(e={emitEvent:!0}){this._forEachChild(t=>t._updateTreeValidity(e)),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?"DISABLED":"VALID"}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(e){if(this.asyncValidator){this.status="PENDING",this._hasOwnPendingAsyncValidator=!0;const t=Wf(this.asyncValidator(this));this._asyncValidationSubscription=t.subscribe(t=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(t,{emitEvent:e})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(e,t={}){this.errors=e,this._updateControlsErrors(!1!==t.emitEvent)}get(e){return function(e,t,n){if(null==t)return null;if(Array.isArray(t)||(t=t.split(".")),Array.isArray(t)&&0===t.length)return null;let i=e;return t.forEach(e=>{i=i instanceof Pm?i.controls.hasOwnProperty(e)?i.controls[e]:null:i instanceof Em&&i.at(e)||null}),i}(this,e)}getError(e,t){const n=t?this.get(t):this;return n&&n.errors?n.errors[e]:null}hasError(e,t){return!!this.getError(e,t)}get root(){let e=this;for(;e._parent;)e=e._parent;return e}_updateControlsErrors(e){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(e)}_initObservables(){this.valueChanges=new yc,this.statusChanges=new yc}_calculateStatus(){return this._allControlsDisabled()?"DISABLED":this.errors?"INVALID":this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus("PENDING")?"PENDING":this._anyControlsHaveStatus("INVALID")?"INVALID":"VALID"}_anyControlsHaveStatus(e){return this._anyControls(t=>t.status===e)}_anyControlsDirty(){return this._anyControls(e=>e.dirty)}_anyControlsTouched(){return this._anyControls(e=>e.touched)}_updatePristine(e={}){this.pristine=!this._anyControlsDirty(),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}_updateTouched(e={}){this.touched=this._anyControlsTouched(),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}_isBoxedValue(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e}_registerOnCollectionChange(e){this._onCollectionChange=e}_setUpdateStrategy(e){Cm(e)&&null!=e.updateOn&&(this._updateOn=e.updateOn)}_parentMarkedDirty(e){return!e&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class km extends Sm{constructor(e=null,t,n){super(wm(t),xm(n,t)),this._onChange=[],this._applyFormState(e),this._setUpdateStrategy(t),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!n})}setValue(e,t={}){this.value=this._pendingValue=e,this._onChange.length&&!1!==t.emitModelToViewChange&&this._onChange.forEach(e=>e(this.value,!1!==t.emitViewToModelChange)),this.updateValueAndValidity(t)}patchValue(e,t={}){this.setValue(e,t)}reset(e=null,t={}){this._applyFormState(e),this.markAsPristine(t),this.markAsUntouched(t),this.setValue(this.value,t),this._pendingChange=!1}_updateValue(){}_anyControls(e){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(e){this._onChange.push(e)}_unregisterOnChange(e){ym(this._onChange,e)}registerOnDisabledChange(e){this._onDisabledChange.push(e)}_unregisterOnDisabledChange(e){ym(this._onDisabledChange,e)}_forEachChild(e){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(e){this._isBoxedValue(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e}}class Pm extends Sm{constructor(e,t,n){super(wm(t),xm(n,t)),this.controls=e,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!n})}registerControl(e,t){return this.controls[e]?this.controls[e]:(this.controls[e]=t,t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange),t)}addControl(e,t){this.registerControl(e,t),this.updateValueAndValidity(),this._onCollectionChange()}removeControl(e){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],this.updateValueAndValidity(),this._onCollectionChange()}setControl(e,t){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],t&&this.registerControl(e,t),this.updateValueAndValidity(),this._onCollectionChange()}contains(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled}setValue(e,t={}){this._checkAllValuesPresent(e),Object.keys(e).forEach(n=>{this._throwIfControlMissing(n),this.controls[n].setValue(e[n],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}patchValue(e,t={}){null!=e&&(Object.keys(e).forEach(n=>{this.controls[n]&&this.controls[n].patchValue(e[n],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t))}reset(e={},t={}){this._forEachChild((n,i)=>{n.reset(e[i],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}getRawValue(){return this._reduceChildren({},(e,t,n)=>(e[n]=t instanceof km?t.value:t.getRawValue(),e))}_syncPendingControls(){let e=this._reduceChildren(!1,(e,t)=>!!t._syncPendingControls()||e);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_throwIfControlMissing(e){if(!Object.keys(this.controls).length)throw new Error("\n        There are no form controls registered with this group yet. If you're using ngModel,\n        you may want to check next tick (e.g. use setTimeout).\n      ");if(!this.controls[e])throw new Error(`Cannot find form control with name: ${e}.`)}_forEachChild(e){Object.keys(this.controls).forEach(t=>{const n=this.controls[t];n&&e(n,t)})}_setUpControls(){this._forEachChild(e=>{e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(e){for(const t of Object.keys(this.controls)){const n=this.controls[t];if(this.contains(t)&&e(n))return!0}return!1}_reduceValue(){return this._reduceChildren({},(e,t,n)=>((t.enabled||this.disabled)&&(e[n]=t.value),e))}_reduceChildren(e,t){let n=e;return this._forEachChild((e,i)=>{n=t(n,e,i)}),n}_allControlsDisabled(){for(const e of Object.keys(this.controls))if(this.controls[e].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_checkAllValuesPresent(e){this._forEachChild((t,n)=>{if(void 0===e[n])throw new Error(`Must supply a value for form control with name: '${n}'.`)})}}class Em extends Sm{constructor(e,t,n){super(wm(t),xm(n,t)),this.controls=e,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!n})}at(e){return this.controls[e]}push(e){this.controls.push(e),this._registerControl(e),this.updateValueAndValidity(),this._onCollectionChange()}insert(e,t){this.controls.splice(e,0,t),this._registerControl(t),this.updateValueAndValidity()}removeAt(e){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),this.controls.splice(e,1),this.updateValueAndValidity()}setControl(e,t){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),this.controls.splice(e,1),t&&(this.controls.splice(e,0,t),this._registerControl(t)),this.updateValueAndValidity(),this._onCollectionChange()}get length(){return this.controls.length}setValue(e,t={}){this._checkAllValuesPresent(e),e.forEach((e,n)=>{this._throwIfControlMissing(n),this.at(n).setValue(e,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}patchValue(e,t={}){null!=e&&(e.forEach((e,n)=>{this.at(n)&&this.at(n).patchValue(e,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t))}reset(e=[],t={}){this._forEachChild((n,i)=>{n.reset(e[i],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}getRawValue(){return this.controls.map(e=>e instanceof km?e.value:e.getRawValue())}clear(){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity())}_syncPendingControls(){let e=this.controls.reduce((e,t)=>!!t._syncPendingControls()||e,!1);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_throwIfControlMissing(e){if(!this.controls.length)throw new Error("\n        There are no form controls registered with this array yet. If you're using ngModel,\n        you may want to check next tick (e.g. use setTimeout).\n      ");if(!this.at(e))throw new Error("Cannot find form control at index "+e)}_forEachChild(e){this.controls.forEach((t,n)=>{e(t,n)})}_updateValue(){this.value=this.controls.filter(e=>e.enabled||this.disabled).map(e=>e.value)}_anyControls(e){return this.controls.some(t=>t.enabled&&e(t))}_setUpControls(){this._forEachChild(e=>this._registerControl(e))}_checkAllValuesPresent(e){this._forEachChild((t,n)=>{if(void 0===e[n])throw new Error(`Must supply a value for form control at index: ${n}.`)})}_allControlsDisabled(){for(const e of this.controls)if(e.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(e){e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)}}const Dm={provide:nm,useExisting:re(()=>Mm)},Om=(()=>Promise.resolve(null))();let Mm=(()=>{class e extends nm{constructor(e,t){super(),this.submitted=!1,this._directives=[],this.ngSubmit=new yc,this.form=new Pm({},Zf(e),Xf(t))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){Om.then(()=>{const t=this._findContainer(e.path);e.control=t.registerControl(e.name,e.control),cm(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.push(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){Om.then(()=>{const t=this._findContainer(e.path);t&&t.removeControl(e.name),ym(this._directives,e)})}addFormGroup(e){Om.then(()=>{const t=this._findContainer(e.path),n=new Pm({});fm(n,e),t.registerControl(e.name,n),n.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){Om.then(()=>{const t=this._findContainer(e.path);t&&t.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,t){Om.then(()=>{this.form.get(e.path).setValue(t)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submitted=!0,bm(this.form,this._directives),this.ngSubmit.emit(e),!1}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(e){return e.pop(),e.length?this.form.get(e):this.form}}return e.\u0275fac=function(t){return new(t||e)(zr(Lf,10),zr(Ff,10))},e.\u0275dir=Ke({type:e,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(e,t){1&e&&Xr("submit",function(e){return t.onSubmit(e)})("reset",function(){return t.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Ja([Dm]),vr]}),e})();const Tm={provide:sm,useExisting:re(()=>Rm)},Im=(()=>Promise.resolve(null))();let Rm=(()=>{class e extends sm{constructor(e,t,n,i){super(),this.control=new km,this._registered=!1,this.update=new yc,this._parent=e,this._setValidators(t),this._setAsyncValidators(n),this.valueAccessor=vm(0,i)}ngOnChanges(e){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in e&&this._updateDisabled(e),mm(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._parent?lm(this.name,this._parent):[this.name]}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){cm(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(e){Im.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1})})}_updateDisabled(e){const t=e.isDisabled.currentValue,n=""===t||t&&"false"!==t;Im.then(()=>{n&&!this.control.disabled?this.control.disable():!n&&this.control.disabled&&this.control.enable()})}}return e.\u0275fac=function(t){return new(t||e)(zr(nm,9),zr(Lf,10),zr(Ff,10),zr(Pf,10))},e.\u0275dir=Ke({type:e,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[Ja([Tm]),vr,dt]}),e})(),Lm=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Ke({type:e,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),e})(),Fm=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=fe({}),e})();const Bm=new Xn("NgModelWithFormControlWarning"),zm={provide:sm,useExisting:re(()=>Vm)};let Vm=(()=>{class e extends sm{constructor(e,t,n,i){super(),this._ngModelWarningConfig=i,this.update=new yc,this._ngModelWarningSent=!1,this._setValidators(e),this._setAsyncValidators(t),this.valueAccessor=vm(0,n)}set isDisabled(e){}ngOnChanges(e){if(this._isControlChanged(e)){const t=e.form.previousValue;t&&dm(t,this,!1),cm(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})}mm(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&dm(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_isControlChanged(e){return e.hasOwnProperty("form")}}return e.\u0275fac=function(t){return new(t||e)(zr(Lf,10),zr(Ff,10),zr(Pf,10),zr(Bm,8))},e.\u0275dir=Ke({type:e,selectors:[["","formControl",""]],inputs:{isDisabled:["disabled","isDisabled"],form:["formControl","form"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[Ja([zm]),vr,dt]}),e._ngModelWarningSentOnce=!1,e})();const Nm={provide:nm,useExisting:re(()=>Hm)};let Hm=(()=>{class e extends nm{constructor(e,t){super(),this.validators=e,this.asyncValidators=t,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new yc,this._setValidators(e),this._setAsyncValidators(t)}ngOnChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(pm(this.form,this,!1),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(e){const t=this.form.get(e.path);return cm(t,e),t.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),t}getControl(e){return this.form.get(e.path)}removeControl(e){dm(e.control||null,e,!1),ym(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}getFormArray(e){return this.form.get(e.path)}updateModel(e,t){this.form.get(e.path).setValue(t)}onSubmit(e){return this.submitted=!0,bm(this.form,this.directives),this.ngSubmit.emit(e),!1}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_updateDomValue(){this.directives.forEach(e=>{const t=e.control,n=this.form.get(e.path);t!==n&&(dm(t||null,e),n instanceof km&&(cm(n,e),e.control=n))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){const t=this.form.get(e.path);fm(t,e),t.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){const t=this.form.get(e.path);t&&function(e,t){return pm(e,t,!1)}(t,e)&&t.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){hm(this.form,this,!1),this._oldForm&&pm(this._oldForm,this,!1)}_checkFormPresent(){}}return e.\u0275fac=function(t){return new(t||e)(zr(Lf,10),zr(Ff,10))},e.\u0275dir=Ke({type:e,selectors:[["","formGroup",""]],hostBindings:function(e,t){1&e&&Xr("submit",function(e){return t.onSubmit(e)})("reset",function(){return t.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Ja([Nm]),vr,dt]}),e})();const jm={provide:sm,useExisting:re(()=>Um)};let Um=(()=>{class e extends sm{constructor(e,t,n,i,s){super(),this._ngModelWarningConfig=s,this._added=!1,this.update=new yc,this._ngModelWarningSent=!1,this._parent=e,this._setValidators(t),this._setAsyncValidators(n),this.valueAccessor=vm(0,i)}set isDisabled(e){}ngOnChanges(e){this._added||this._setUpControl(),mm(e,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}get path(){return lm(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0}}return e.\u0275fac=function(t){return new(t||e)(zr(nm,13),zr(Lf,10),zr(Ff,10),zr(Pf,10),zr(Bm,8))},e.\u0275dir=Ke({type:e,selectors:[["","formControlName",""]],inputs:{isDisabled:["disabled","isDisabled"],name:["formControlName","name"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[Ja([jm]),vr,dt]}),e._ngModelWarningSentOnce=!1,e})();const Wm={provide:Pf,useExisting:re(()=>$m),multi:!0};function Gm(e,t){return null==e?""+t:(t&&"object"==typeof t&&(t="Object"),`${e}: ${t}`.slice(0,50))}let $m=(()=>{class e extends kf{constructor(e,t){super(),this._renderer=e,this._elementRef=t,this._optionMap=new Map,this._idCounter=0,this.onChange=e=>{},this.onTouched=()=>{},this._compareWith=Object.is}set compareWith(e){this._compareWith=e}writeValue(e){this.value=e;const t=this._getOptionId(e);null==t&&this._renderer.setProperty(this._elementRef.nativeElement,"selectedIndex",-1);const n=Gm(t,e);this._renderer.setProperty(this._elementRef.nativeElement,"value",n)}registerOnChange(e){this.onChange=t=>{this.value=this._getOptionValue(t),e(this.value)}}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}_registerOption(){return(this._idCounter++).toString()}_getOptionId(e){for(const t of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(t),e))return t;return null}_getOptionValue(e){const t=function(e){return e.split(":")[0]}(e);return this._optionMap.has(t)?this._optionMap.get(t):e}}return e.\u0275fac=function(t){return new(t||e)(zr(cl),zr(rl))},e.\u0275dir=Ke({type:e,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(e,t){1&e&&Xr("change",function(e){return t.onChange(e.target.value)})("blur",function(){return t.onTouched()})},inputs:{compareWith:"compareWith"},features:[Ja([Wm]),vr]}),e})(),qm=(()=>{class e{constructor(e,t,n){this._element=e,this._renderer=t,this._select=n,this._select&&(this.id=this._select._registerOption())}set ngValue(e){null!=this._select&&(this._select._optionMap.set(this.id,e),this._setElementValue(Gm(this.id,e)),this._select.writeValue(this._select.value))}set value(e){this._setElementValue(e),this._select&&this._select.writeValue(this._select.value)}_setElementValue(e){this._renderer.setProperty(this._element.nativeElement,"value",e)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return e.\u0275fac=function(t){return new(t||e)(zr(rl),zr(cl),zr($m,9))},e.\u0275dir=Ke({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),e})();const Ym={provide:Pf,useExisting:re(()=>Qm),multi:!0};function Zm(e,t){return null==e?""+t:("string"==typeof t&&(t=`'${t}'`),t&&"object"==typeof t&&(t="Object"),`${e}: ${t}`.slice(0,50))}let Qm=(()=>{class e extends kf{constructor(e,t){super(),this._renderer=e,this._elementRef=t,this._optionMap=new Map,this._idCounter=0,this.onChange=e=>{},this.onTouched=()=>{},this._compareWith=Object.is}set compareWith(e){this._compareWith=e}writeValue(e){let t;if(this.value=e,Array.isArray(e)){const n=e.map(e=>this._getOptionId(e));t=(e,t)=>{e._setSelected(n.indexOf(t.toString())>-1)}}else t=(e,t)=>{e._setSelected(!1)};this._optionMap.forEach(t)}registerOnChange(e){this.onChange=t=>{const n=[];if(void 0!==t.selectedOptions){const e=t.selectedOptions;for(let t=0;t<e.length;t++){const i=e.item(t),s=this._getOptionValue(i.value);n.push(s)}}else{const e=t.options;for(let t=0;t<e.length;t++){const i=e.item(t);if(i.selected){const e=this._getOptionValue(i.value);n.push(e)}}}this.value=n,e(n)}}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}_registerOption(e){const t=(this._idCounter++).toString();return this._optionMap.set(t,e),t}_getOptionId(e){for(const t of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(t)._value,e))return t;return null}_getOptionValue(e){const t=function(e){return e.split(":")[0]}(e);return this._optionMap.has(t)?this._optionMap.get(t)._value:e}}return e.\u0275fac=function(t){return new(t||e)(zr(cl),zr(rl))},e.\u0275dir=Ke({type:e,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(e,t){1&e&&Xr("change",function(e){return t.onChange(e.target)})("blur",function(){return t.onTouched()})},inputs:{compareWith:"compareWith"},features:[Ja([Ym]),vr]}),e})(),Xm=(()=>{class e{constructor(e,t,n){this._element=e,this._renderer=t,this._select=n,this._select&&(this.id=this._select._registerOption(this))}set ngValue(e){null!=this._select&&(this._value=e,this._setElementValue(Zm(this.id,e)),this._select.writeValue(this._select.value))}set value(e){this._select?(this._value=e,this._setElementValue(Zm(this.id,e)),this._select.writeValue(this._select.value)):this._setElementValue(e)}_setElementValue(e){this._renderer.setProperty(this._element.nativeElement,"value",e)}_setSelected(e){this._renderer.setProperty(this._element.nativeElement,"selected",e)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return e.\u0275fac=function(t){return new(t||e)(zr(rl),zr(cl),zr(Qm,9))},e.\u0275dir=Ke({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),e})();const Km={provide:Lf,useExisting:re(()=>Jm),multi:!0};let Jm=(()=>{class e{constructor(){this._required=!1}get required(){return this._required}set required(e){this._required=null!=e&&!1!==e&&""+e!="false",this._onChange&&this._onChange()}validate(e){return this.required?Vf(e):null}registerOnValidatorChange(e){this._onChange=e}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Ke({type:e,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(e,t){2&e&&Ir("required",t.required?"":null)},inputs:{required:"required"},features:[Ja([Km])]}),e})();const eb={provide:Lf,useExisting:re(()=>tb),multi:!0};let tb=(()=>{class e{constructor(){this._validator=jf}ngOnChanges(e){"maxlength"in e&&(this._createValidator(),this._onChange&&this._onChange())}validate(e){return null!=this.maxlength?this._validator(e):null}registerOnValidatorChange(e){this._onChange=e}_createValidator(){this._validator=Nf("number"==typeof this.maxlength?this.maxlength:parseInt(this.maxlength,10))}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Ke({type:e,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(e,t){2&e&&Ir("maxlength",t.maxlength?t.maxlength:null)},inputs:{maxlength:"maxlength"},features:[Ja([eb]),dt]}),e})();const nb={provide:Lf,useExisting:re(()=>ib),multi:!0};let ib=(()=>{class e{constructor(){this._validator=jf}ngOnChanges(e){"pattern"in e&&(this._createValidator(),this._onChange&&this._onChange())}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._onChange=e}_createValidator(){this._validator=Hf(this.pattern)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Ke({type:e,selectors:[["","pattern","","formControlName",""],["","pattern","","formControl",""],["","pattern","","ngModel",""]],hostVars:1,hostBindings:function(e,t){2&e&&Ir("pattern",t.pattern?t.pattern:null)},inputs:{pattern:"pattern"},features:[Ja([nb]),dt]}),e})(),sb=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=fe({imports:[[Fm]]}),e})(),ob=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=fe({imports:[sb]}),e})(),rb=(()=>{class e{static withConfig(t){return{ngModule:e,providers:[{provide:Bm,useValue:t.warnOnNgModelWithFormControl}]}}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=fe({imports:[sb]}),e})(),ab=(()=>{class e{group(e,t=null){const n=this._reduceControls(e);let i=null,s=null,o=void 0;return null!=t&&(function(e){return void 0!==e.asyncValidators||void 0!==e.validators||void 0!==e.updateOn}(t)?(i=null!=t.validators?t.validators:null,s=null!=t.asyncValidators?t.asyncValidators:null,o=null!=t.updateOn?t.updateOn:void 0):(i=null!=t.validator?t.validator:null,s=null!=t.asyncValidator?t.asyncValidator:null)),new Pm(n,{asyncValidators:s,updateOn:o,validators:i})}control(e,t,n){return new km(e,t,n)}array(e,t,n){const i=e.map(e=>this._createControl(e));return new Em(i,t,n)}_reduceControls(e){const t={};return Object.keys(e).forEach(n=>{t[n]=this._createControl(e[n])}),t}_createControl(e){return e instanceof km||e instanceof Pm||e instanceof Em?e:Array.isArray(e)?this.control(e[0],e.length>1?e[1]:null,e.length>2?e[2]:null):this.control(e)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=pe({factory:function(){return new e},token:e,providedIn:rb}),e})();function lb(...e){let t=e[e.length-1];return S(t)?(e.pop(),L(e,t)):W(e)}function cb(e,t){return N(e,t,1)}function db(e,t){return function(n){return n.lift(new ub(e,t))}}class ub{constructor(e,t){this.predicate=e,this.thisArg=t}call(e,t){return t.subscribe(new hb(e,this.predicate,this.thisArg))}}class hb extends g{constructor(e,t,n){super(e),this.predicate=t,this.thisArg=n,this.count=0}_next(e){let t;try{t=this.predicate.call(this.thisArg,e,this.count++)}catch(n){return void this.destination.error(n)}t&&this.destination.next(e)}}class pb{}class gb{}class fb{constructor(e){this.normalizedNames=new Map,this.lazyUpdate=null,e?this.lazyInit="string"==typeof e?()=>{this.headers=new Map,e.split("\n").forEach(e=>{const t=e.indexOf(":");if(t>0){const n=e.slice(0,t),i=n.toLowerCase(),s=e.slice(t+1).trim();this.maybeSetNormalizedName(n,i),this.headers.has(i)?this.headers.get(i).push(s):this.headers.set(i,[s])}})}:()=>{this.headers=new Map,Object.keys(e).forEach(t=>{let n=e[t];const i=t.toLowerCase();"string"==typeof n&&(n=[n]),n.length>0&&(this.headers.set(i,n),this.maybeSetNormalizedName(t,i))})}:this.headers=new Map}has(e){return this.init(),this.headers.has(e.toLowerCase())}get(e){this.init();const t=this.headers.get(e.toLowerCase());return t&&t.length>0?t[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(e){return this.init(),this.headers.get(e.toLowerCase())||null}append(e,t){return this.clone({name:e,value:t,op:"a"})}set(e,t){return this.clone({name:e,value:t,op:"s"})}delete(e,t){return this.clone({name:e,value:t,op:"d"})}maybeSetNormalizedName(e,t){this.normalizedNames.has(t)||this.normalizedNames.set(t,e)}init(){this.lazyInit&&(this.lazyInit instanceof fb?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(e=>this.applyUpdate(e)),this.lazyUpdate=null))}copyFrom(e){e.init(),Array.from(e.headers.keys()).forEach(t=>{this.headers.set(t,e.headers.get(t)),this.normalizedNames.set(t,e.normalizedNames.get(t))})}clone(e){const t=new fb;return t.lazyInit=this.lazyInit&&this.lazyInit instanceof fb?this.lazyInit:this,t.lazyUpdate=(this.lazyUpdate||[]).concat([e]),t}applyUpdate(e){const t=e.name.toLowerCase();switch(e.op){case"a":case"s":let n=e.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(e.name,t);const i=("a"===e.op?this.headers.get(t):void 0)||[];i.push(...n),this.headers.set(t,i);break;case"d":const s=e.value;if(s){let e=this.headers.get(t);if(!e)return;e=e.filter(e=>-1===s.indexOf(e)),0===e.length?(this.headers.delete(t),this.normalizedNames.delete(t)):this.headers.set(t,e)}else this.headers.delete(t),this.normalizedNames.delete(t)}}forEach(e){this.init(),Array.from(this.normalizedNames.keys()).forEach(t=>e(this.normalizedNames.get(t),this.headers.get(t)))}}class mb{encodeKey(e){return bb(e)}encodeValue(e){return bb(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}}function bb(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/gi,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/%3D/gi,"=").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}class vb{constructor(e={}){if(this.updates=null,this.cloneFrom=null,this.encoder=e.encoder||new mb,e.fromString){if(e.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(e,t){const n=new Map;return e.length>0&&e.replace(/^\?/,"").split("&").forEach(e=>{const i=e.indexOf("="),[s,o]=-1==i?[t.decodeKey(e),""]:[t.decodeKey(e.slice(0,i)),t.decodeValue(e.slice(i+1))],r=n.get(s)||[];r.push(o),n.set(s,r)}),n}(e.fromString,this.encoder)}else e.fromObject?(this.map=new Map,Object.keys(e.fromObject).forEach(t=>{const n=e.fromObject[t];this.map.set(t,Array.isArray(n)?n:[n])})):this.map=null}has(e){return this.init(),this.map.has(e)}get(e){this.init();const t=this.map.get(e);return t?t[0]:null}getAll(e){return this.init(),this.map.get(e)||null}keys(){return this.init(),Array.from(this.map.keys())}append(e,t){return this.clone({param:e,value:t,op:"a"})}appendAll(e){const t=[];return Object.keys(e).forEach(n=>{const i=e[n];Array.isArray(i)?i.forEach(e=>{t.push({param:n,value:e,op:"a"})}):t.push({param:n,value:i,op:"a"})}),this.clone(t)}set(e,t){return this.clone({param:e,value:t,op:"s"})}delete(e,t){return this.clone({param:e,value:t,op:"d"})}toString(){return this.init(),this.keys().map(e=>{const t=this.encoder.encodeKey(e);return this.map.get(e).map(e=>t+"="+this.encoder.encodeValue(e)).join("&")}).filter(e=>""!==e).join("&")}clone(e){const t=new vb({encoder:this.encoder});return t.cloneFrom=this.cloneFrom||this,t.updates=(this.updates||[]).concat(e),t}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(e=>this.map.set(e,this.cloneFrom.map.get(e))),this.updates.forEach(e=>{switch(e.op){case"a":case"s":const t=("a"===e.op?this.map.get(e.param):void 0)||[];t.push(e.value),this.map.set(e.param,t);break;case"d":if(void 0===e.value){this.map.delete(e.param);break}{let t=this.map.get(e.param)||[];const n=t.indexOf(e.value);-1!==n&&t.splice(n,1),t.length>0?this.map.set(e.param,t):this.map.delete(e.param)}}}),this.cloneFrom=this.updates=null)}}function yb(e){return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer}function wb(e){return"undefined"!=typeof Blob&&e instanceof Blob}function _b(e){return"undefined"!=typeof FormData&&e instanceof FormData}class xb{constructor(e,t,n,i){let s;if(this.url=t,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=e.toUpperCase(),function(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||i?(this.body=void 0!==n?n:null,s=i):s=n,s&&(this.reportProgress=!!s.reportProgress,this.withCredentials=!!s.withCredentials,s.responseType&&(this.responseType=s.responseType),s.headers&&(this.headers=s.headers),s.params&&(this.params=s.params)),this.headers||(this.headers=new fb),this.params){const e=this.params.toString();if(0===e.length)this.urlWithParams=t;else{const n=t.indexOf("?");this.urlWithParams=t+(-1===n?"?":n<t.length-1?"&":"")+e}}else this.params=new vb,this.urlWithParams=t}serializeBody(){return null===this.body?null:yb(this.body)||wb(this.body)||_b(this.body)||"string"==typeof this.body?this.body:this.body instanceof vb?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return null===this.body||_b(this.body)?null:wb(this.body)?this.body.type||null:yb(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof vb?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||Array.isArray(this.body)?"application/json":null}clone(e={}){const t=e.method||this.method,n=e.url||this.url,i=e.responseType||this.responseType,s=void 0!==e.body?e.body:this.body,o=void 0!==e.withCredentials?e.withCredentials:this.withCredentials,r=void 0!==e.reportProgress?e.reportProgress:this.reportProgress;let a=e.headers||this.headers,l=e.params||this.params;return void 0!==e.setHeaders&&(a=Object.keys(e.setHeaders).reduce((t,n)=>t.set(n,e.setHeaders[n]),a)),e.setParams&&(l=Object.keys(e.setParams).reduce((t,n)=>t.set(n,e.setParams[n]),l)),new xb(t,n,s,{params:l,headers:a,reportProgress:r,responseType:i,withCredentials:o})}}var Ab=function(e){return e[e.Sent=0]="Sent",e[e.UploadProgress=1]="UploadProgress",e[e.ResponseHeader=2]="ResponseHeader",e[e.DownloadProgress=3]="DownloadProgress",e[e.Response=4]="Response",e[e.User=5]="User",e}({});class Cb{constructor(e,t=200,n="OK"){this.headers=e.headers||new fb,this.status=void 0!==e.status?e.status:t,this.statusText=e.statusText||n,this.url=e.url||null,this.ok=this.status>=200&&this.status<300}}class Sb extends Cb{constructor(e={}){super(e),this.type=Ab.ResponseHeader}clone(e={}){return new Sb({headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}}class kb extends Cb{constructor(e={}){super(e),this.type=Ab.Response,this.body=void 0!==e.body?e.body:null}clone(e={}){return new kb({body:void 0!==e.body?e.body:this.body,headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}}class Pb extends Cb{constructor(e){super(e,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?"Http failure during parsing for "+(e.url||"(unknown url)"):`Http failure response for ${e.url||"(unknown url)"}: ${e.status} ${e.statusText}`,this.error=e.error||null}}function Eb(e,t){return{body:t,headers:e.headers,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials}}let Db=(()=>{class e{constructor(e){this.handler=e}request(e,t,n={}){let i;if(e instanceof xb)i=e;else{let s=void 0;s=n.headers instanceof fb?n.headers:new fb(n.headers);let o=void 0;n.params&&(o=n.params instanceof vb?n.params:new vb({fromObject:n.params})),i=new xb(e,t,void 0!==n.body?n.body:null,{headers:s,params:o,reportProgress:n.reportProgress,responseType:n.responseType||"json",withCredentials:n.withCredentials})}const s=lb(i).pipe(cb(e=>this.handler.handle(e)));if(e instanceof xb||"events"===n.observe)return s;const o=s.pipe(db(e=>e instanceof kb));switch(n.observe||"body"){case"body":switch(i.responseType){case"arraybuffer":return o.pipe(k(e=>{if(null!==e.body&&!(e.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return e.body}));case"blob":return o.pipe(k(e=>{if(null!==e.body&&!(e.body instanceof Blob))throw new Error("Response is not a Blob.");return e.body}));case"text":return o.pipe(k(e=>{if(null!==e.body&&"string"!=typeof e.body)throw new Error("Response is not a string.");return e.body}));case"json":default:return o.pipe(k(e=>e.body))}case"response":return o;default:throw new Error(`Unreachable: unhandled observe type ${n.observe}}`)}}delete(e,t={}){return this.request("DELETE",e,t)}get(e,t={}){return this.request("GET",e,t)}head(e,t={}){return this.request("HEAD",e,t)}jsonp(e,t){return this.request("JSONP",e,{params:(new vb).append(t,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,t={}){return this.request("OPTIONS",e,t)}patch(e,t,n={}){return this.request("PATCH",e,Eb(n,t))}post(e,t,n={}){return this.request("POST",e,Eb(n,t))}put(e,t,n={}){return this.request("PUT",e,Eb(n,t))}}return e.\u0275fac=function(t){return new(t||e)(gi(pb))},e.\u0275prov=pe({token:e,factory:e.\u0275fac}),e})();class Ob{constructor(e,t){this.next=e,this.interceptor=t}handle(e){return this.interceptor.intercept(e,this.next)}}const Mb=new Xn("HTTP_INTERCEPTORS");let Tb=(()=>{class e{intercept(e,t){return t.handle(e)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=pe({token:e,factory:e.\u0275fac}),e})();const Ib=/^\)\]\}',?\n/;class Rb{}let Lb=(()=>{class e{constructor(){}build(){return new XMLHttpRequest}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=pe({token:e,factory:e.\u0275fac}),e})(),Fb=(()=>{class e{constructor(e){this.xhrFactory=e}handle(e){if("JSONP"===e.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new v(t=>{const n=this.xhrFactory.build();if(n.open(e.method,e.urlWithParams),e.withCredentials&&(n.withCredentials=!0),e.headers.forEach((e,t)=>n.setRequestHeader(e,t.join(","))),e.headers.has("Accept")||n.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){const t=e.detectContentTypeHeader();null!==t&&n.setRequestHeader("Content-Type",t)}if(e.responseType){const t=e.responseType.toLowerCase();n.responseType="json"!==t?t:"text"}const i=e.serializeBody();let s=null;const o=()=>{if(null!==s)return s;const t=1223===n.status?204:n.status,i=n.statusText||"OK",o=new fb(n.getAllResponseHeaders()),r=function(e){return"responseURL"in e&&e.responseURL?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null}(n)||e.url;return s=new Sb({headers:o,status:t,statusText:i,url:r}),s},r=()=>{let{headers:i,status:s,statusText:r,url:a}=o(),l=null;204!==s&&(l=void 0===n.response?n.responseText:n.response),0===s&&(s=l?200:0);let c=s>=200&&s<300;if("json"===e.responseType&&"string"==typeof l){const e=l;l=l.replace(Ib,"");try{l=""!==l?JSON.parse(l):null}catch(d){l=e,c&&(c=!1,l={error:d,text:l})}}c?(t.next(new kb({body:l,headers:i,status:s,statusText:r,url:a||void 0})),t.complete()):t.error(new Pb({error:l,headers:i,status:s,statusText:r,url:a||void 0}))},a=e=>{const{url:i}=o(),s=new Pb({error:e,status:n.status||0,statusText:n.statusText||"Unknown Error",url:i||void 0});t.error(s)};let l=!1;const c=i=>{l||(t.next(o()),l=!0);let s={type:Ab.DownloadProgress,loaded:i.loaded};i.lengthComputable&&(s.total=i.total),"text"===e.responseType&&n.responseText&&(s.partialText=n.responseText),t.next(s)},d=e=>{let n={type:Ab.UploadProgress,loaded:e.loaded};e.lengthComputable&&(n.total=e.total),t.next(n)};return n.addEventListener("load",r),n.addEventListener("error",a),n.addEventListener("timeout",a),n.addEventListener("abort",a),e.reportProgress&&(n.addEventListener("progress",c),null!==i&&n.upload&&n.upload.addEventListener("progress",d)),n.send(i),t.next({type:Ab.Sent}),()=>{n.removeEventListener("error",a),n.removeEventListener("abort",a),n.removeEventListener("load",r),n.removeEventListener("timeout",a),e.reportProgress&&(n.removeEventListener("progress",c),null!==i&&n.upload&&n.upload.removeEventListener("progress",d)),n.readyState!==n.DONE&&n.abort()}})}}return e.\u0275fac=function(t){return new(t||e)(gi(Rb))},e.\u0275prov=pe({token:e,factory:e.\u0275fac}),e})();const Bb=new Xn("XSRF_COOKIE_NAME"),zb=new Xn("XSRF_HEADER_NAME");class Vb{}let Nb=(()=>{class e{constructor(e,t,n){this.doc=e,this.platform=t,this.cookieName=n,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=Vu(e,this.cookieName),this.lastCookieString=e),this.lastToken}}return e.\u0275fac=function(t){return new(t||e)(gi(Hd),gi($c),gi(Bb))},e.\u0275prov=pe({token:e,factory:e.\u0275fac}),e})(),Hb=(()=>{class e{constructor(e,t){this.tokenService=e,this.headerName=t}intercept(e,t){const n=e.url.toLowerCase();if("GET"===e.method||"HEAD"===e.method||n.startsWith("http://")||n.startsWith("https://"))return t.handle(e);const i=this.tokenService.getToken();return null===i||e.headers.has(this.headerName)||(e=e.clone({headers:e.headers.set(this.headerName,i)})),t.handle(e)}}return e.\u0275fac=function(t){return new(t||e)(gi(Vb),gi(zb))},e.\u0275prov=pe({token:e,factory:e.\u0275fac}),e})(),jb=(()=>{class e{constructor(e,t){this.backend=e,this.injector=t,this.chain=null}handle(e){if(null===this.chain){const e=this.injector.get(Mb,[]);this.chain=e.reduceRight((e,t)=>new Ob(e,t),this.backend)}return this.chain.handle(e)}}return e.\u0275fac=function(t){return new(t||e)(gi(gb),gi(mr))},e.\u0275prov=pe({token:e,factory:e.\u0275fac}),e})(),Ub=(()=>{class e{static disable(){return{ngModule:e,providers:[{provide:Hb,useClass:Tb}]}}static withOptions(t={}){return{ngModule:e,providers:[t.cookieName?{provide:Bb,useValue:t.cookieName}:[],t.headerName?{provide:zb,useValue:t.headerName}:[]]}}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=fe({providers:[Hb,{provide:Mb,useExisting:Hb,multi:!0},{provide:Vb,useClass:Nb},{provide:Bb,useValue:"XSRF-TOKEN"},{provide:zb,useValue:"X-XSRF-TOKEN"}]}),e})(),Wb=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=fe({providers:[Db,{provide:pb,useClass:jb},Fb,{provide:gb,useExisting:Fb},Lb,{provide:Rb,useExisting:Lb}],imports:[[Ub.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),e})();class Gb extends A{constructor(e){super(),this._value=e}get value(){return this.getValue()}_subscribe(e){const t=super._subscribe(e);return t&&!t.closed&&e.next(this._value),t}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new w;return this._value}next(e){super.next(this._value=e)}}class $b extends g{notifyNext(e,t,n,i,s){this.destination.next(t)}notifyError(e,t){this.destination.error(e)}notifyComplete(e){this.destination.complete()}}class qb extends g{constructor(e,t,n){super(),this.parent=e,this.outerValue=t,this.outerIndex=n,this.index=0}_next(e){this.parent.notifyNext(this.outerValue,e,this.outerIndex,this.index++,this)}_error(e){this.parent.notifyError(e,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}function Yb(e,t,n,i,s=new qb(e,n,i)){if(!s.closed)return t instanceof v?t.subscribe(s):R(t)(s)}const Zb={};function Qb(...e){let t=void 0,n=void 0;return S(e[e.length-1])&&(n=e.pop()),"function"==typeof e[e.length-1]&&(t=e.pop()),1===e.length&&l(e[0])&&(e=e[0]),W(e,n).lift(new Xb(t))}class Xb{constructor(e){this.resultSelector=e}call(e,t){return t.subscribe(new Kb(e,this.resultSelector))}}class Kb extends $b{constructor(e,t){super(e),this.resultSelector=t,this.active=0,this.values=[],this.observables=[]}_next(e){this.values.push(Zb),this.observables.push(e)}_complete(){const e=this.observables,t=e.length;if(0===t)this.destination.complete();else{this.active=t,this.toRespond=t;for(let n=0;n<t;n++)this.add(Yb(this,e[n],void 0,n))}}notifyComplete(e){0==(this.active-=1)&&this.destination.complete()}notifyNext(e,t,n){const i=this.values,s=this.toRespond?i[n]===Zb?--this.toRespond:this.toRespond:0;i[n]=t,0===s&&(this.resultSelector?this._tryResultSelector(i):this.destination.next(i.slice()))}_tryResultSelector(e){let t;try{t=this.resultSelector.apply(this,e)}catch(n){return void this.destination.error(n)}this.destination.next(t)}}const Jb=(()=>{function e(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return e.prototype=Object.create(Error.prototype),e})();function ev(...e){return U(1)(lb(...e))}const tv=new v(e=>e.complete());function nv(e){return e?function(e){return new v(t=>e.schedule(()=>t.complete()))}(e):tv}function iv(e){return new v(t=>{let n;try{n=e()}catch(i){return void t.error(i)}return(n?F(n):nv()).subscribe(t)})}function sv(e,t){return"function"==typeof t?n=>n.pipe(sv((n,i)=>F(e(n,i)).pipe(k((e,s)=>t(n,e,i,s))))):t=>t.lift(new ov(e))}class ov{constructor(e){this.project=e}call(e,t){return t.subscribe(new rv(e,this.project))}}class rv extends z{constructor(e,t){super(e),this.project=t,this.index=0}_next(e){let t;const n=this.index++;try{t=this.project(e,n)}catch(i){return void this.destination.error(i)}this._innerSub(t)}_innerSub(e){const t=this.innerSubscription;t&&t.unsubscribe();const n=new B(this),i=this.destination;i.add(n),this.innerSubscription=V(e,n),this.innerSubscription!==n&&i.add(this.innerSubscription)}_complete(){const{innerSubscription:e}=this;e&&!e.closed||super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(e){this.destination.next(e)}}const av=(()=>{function e(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return e.prototype=Object.create(Error.prototype),e})();function lv(e){return t=>0===e?nv():t.lift(new cv(e))}class cv{constructor(e){if(this.total=e,this.total<0)throw new av}call(e,t){return t.subscribe(new dv(e,this.total))}}class dv extends g{constructor(e,t){super(e),this.total=t,this.count=0}_next(e){const t=this.total,n=++this.count;n<=t&&(this.destination.next(e),n===t&&(this.destination.complete(),this.unsubscribe()))}}function uv(...e){const t=e[e.length-1];return S(t)?(e.pop(),n=>ev(e,n,t)):t=>ev(e,t)}function hv(e,t){let n=!1;return arguments.length>=2&&(n=!0),function(i){return i.lift(new pv(e,t,n))}}class pv{constructor(e,t,n=!1){this.accumulator=e,this.seed=t,this.hasSeed=n}call(e,t){return t.subscribe(new gv(e,this.accumulator,this.seed,this.hasSeed))}}class gv extends g{constructor(e,t,n,i){super(e),this.accumulator=t,this._seed=n,this.hasSeed=i,this.index=0}get seed(){return this._seed}set seed(e){this.hasSeed=!0,this._seed=e}_next(e){if(this.hasSeed)return this._tryNext(e);this.seed=e,this.destination.next(e)}_tryNext(e){const t=this.index++;let n;try{n=this.accumulator(this.seed,e,t)}catch(i){this.destination.error(i)}this.seed=n,this.destination.next(n)}}function fv(e){return function(t){const n=new mv(e),i=t.lift(n);return n.caught=i}}class mv{constructor(e){this.selector=e}call(e,t){return t.subscribe(new bv(e,this.selector,this.caught))}}class bv extends z{constructor(e,t,n){super(e),this.selector=t,this.caught=n}error(e){if(!this.isStopped){let n;try{n=this.selector(e,this.caught)}catch(t){return void super.error(t)}this._unsubscribeAndRecycle();const i=new B(this);this.add(i);const s=V(n,i);s!==i&&this.add(s)}}}function vv(e){return function(t){return 0===e?nv():t.lift(new yv(e))}}class yv{constructor(e){if(this.total=e,this.total<0)throw new av}call(e,t){return t.subscribe(new wv(e,this.total))}}class wv extends g{constructor(e,t){super(e),this.total=t,this.ring=new Array,this.count=0}_next(e){const t=this.ring,n=this.total,i=this.count++;t.length<n?t.push(e):t[i%n]=e}_complete(){const e=this.destination;let t=this.count;if(t>0){const n=this.count>=this.total?this.total:this.count,i=this.ring;for(let s=0;s<n;s++){const s=t++%n;e.next(i[s])}}e.complete()}}function _v(e=Cv){return t=>t.lift(new xv(e))}class xv{constructor(e){this.errorFactory=e}call(e,t){return t.subscribe(new Av(e,this.errorFactory))}}class Av extends g{constructor(e,t){super(e),this.errorFactory=t,this.hasValue=!1}_next(e){this.hasValue=!0,this.destination.next(e)}_complete(){if(this.hasValue)return this.destination.complete();{let t;try{t=this.errorFactory()}catch(e){t=e}this.destination.error(t)}}}function Cv(){return new Jb}function Sv(e=null){return t=>t.lift(new kv(e))}class kv{constructor(e){this.defaultValue=e}call(e,t){return t.subscribe(new Pv(e,this.defaultValue))}}class Pv extends g{constructor(e,t){super(e),this.defaultValue=t,this.isEmpty=!0}_next(e){this.isEmpty=!1,this.destination.next(e)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}function Ev(e,t){const n=arguments.length>=2;return i=>i.pipe(e?db((t,n)=>e(t,n,i)):b,lv(1),n?Sv(t):_v(()=>new Jb))}function Dv(){}function Ov(e,t,n){return function(i){return i.lift(new Mv(e,t,n))}}class Mv{constructor(e,t,n){this.nextOrObserver=e,this.error=t,this.complete=n}call(e,t){return t.subscribe(new Tv(e,this.nextOrObserver,this.error,this.complete))}}class Tv extends g{constructor(e,t,n,s){super(e),this._tapNext=Dv,this._tapError=Dv,this._tapComplete=Dv,this._tapError=n||Dv,this._tapComplete=s||Dv,i(t)?(this._context=this,this._tapNext=t):t&&(this._context=t,this._tapNext=t.next||Dv,this._tapError=t.error||Dv,this._tapComplete=t.complete||Dv)}_next(e){try{this._tapNext.call(this._context,e)}catch(t){return void this.destination.error(t)}this.destination.next(e)}_error(e){try{this._tapError.call(this._context,e)}catch(e){return void this.destination.error(e)}this.destination.error(e)}_complete(){try{this._tapComplete.call(this._context)}catch(e){return void this.destination.error(e)}return this.destination.complete()}}function Iv(e){return t=>t.lift(new Rv(e))}class Rv{constructor(e){this.callback=e}call(e,t){return t.subscribe(new Lv(e,this.callback))}}class Lv extends g{constructor(e,t){super(e),this.add(new u(t))}}class Fv{constructor(e,t){this.id=e,this.url=t}}class Bv extends Fv{constructor(e,t,n="imperative",i=null){super(e,t),this.navigationTrigger=n,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class zv extends Fv{constructor(e,t,n){super(e,t),this.urlAfterRedirects=n}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class Vv extends Fv{constructor(e,t,n){super(e,t),this.reason=n}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class Nv extends Fv{constructor(e,t,n){super(e,t),this.error=n}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class Hv extends Fv{constructor(e,t,n,i){super(e,t),this.urlAfterRedirects=n,this.state=i}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class jv extends Fv{constructor(e,t,n,i){super(e,t),this.urlAfterRedirects=n,this.state=i}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Uv extends Fv{constructor(e,t,n,i,s){super(e,t),this.urlAfterRedirects=n,this.state=i,this.shouldActivate=s}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class Wv extends Fv{constructor(e,t,n,i){super(e,t),this.urlAfterRedirects=n,this.state=i}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Gv extends Fv{constructor(e,t,n,i){super(e,t),this.urlAfterRedirects=n,this.state=i}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class $v{constructor(e){this.route=e}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class qv{constructor(e){this.route=e}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class Yv{constructor(e){this.snapshot=e}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Zv{constructor(e){this.snapshot=e}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Qv{constructor(e){this.snapshot=e}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Xv{constructor(e){this.snapshot=e}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Kv{constructor(e,t,n){this.routerEvent=e,this.position=t,this.anchor=n}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class Jv{constructor(e){this.params=e||{}}has(e){return Object.prototype.hasOwnProperty.call(this.params,e)}get(e){if(this.has(e)){const t=this.params[e];return Array.isArray(t)?t[0]:t}return null}getAll(e){if(this.has(e)){const t=this.params[e];return Array.isArray(t)?t:[t]}return[]}get keys(){return Object.keys(this.params)}}function ey(e){return new Jv(e)}function ty(e){const t=Error("NavigationCancelingError: "+e);return t.ngNavigationCancelingError=!0,t}function ny(e,t,n){const i=n.path.split("/");if(i.length>e.length)return null;if("full"===n.pathMatch&&(t.hasChildren()||i.length<e.length))return null;const s={};for(let o=0;o<i.length;o++){const t=i[o],n=e[o];if(t.startsWith(":"))s[t.substring(1)]=n;else if(t!==n.path)return null}return{consumed:e.slice(0,i.length),posParams:s}}function iy(e,t){const n=e?Object.keys(e):void 0,i=t?Object.keys(t):void 0;if(!n||!i||n.length!=i.length)return!1;let s;for(let o=0;o<n.length;o++)if(s=n[o],!sy(e[s],t[s]))return!1;return!0}function sy(e,t){if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;const n=[...e].sort(),i=[...t].sort();return n.every((e,t)=>i[t]===e)}return e===t}function oy(e){return Array.prototype.concat.apply([],e)}function ry(e){return e.length>0?e[e.length-1]:null}function ay(e,t){for(const n in e)e.hasOwnProperty(n)&&t(e[n],n)}function ly(e){return Qr(e)?e:Yr(e)?F(Promise.resolve(e)):lb(e)}function cy(e,t,n){return n?function(e,t){return iy(e,t)}(e.queryParams,t.queryParams)&&dy(e.root,t.root):function(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(n=>sy(e[n],t[n]))}(e.queryParams,t.queryParams)&&uy(e.root,t.root)}function dy(e,t){if(!my(e.segments,t.segments))return!1;if(e.numberOfChildren!==t.numberOfChildren)return!1;for(const n in t.children){if(!e.children[n])return!1;if(!dy(e.children[n],t.children[n]))return!1}return!0}function uy(e,t){return hy(e,t,t.segments)}function hy(e,t,n){if(e.segments.length>n.length)return!!my(e.segments.slice(0,n.length),n)&&!t.hasChildren();if(e.segments.length===n.length){if(!my(e.segments,n))return!1;for(const n in t.children){if(!e.children[n])return!1;if(!uy(e.children[n],t.children[n]))return!1}return!0}{const i=n.slice(0,e.segments.length),s=n.slice(e.segments.length);return!!my(e.segments,i)&&!!e.children.primary&&hy(e.children.primary,t,s)}}class py{constructor(e,t,n){this.root=e,this.queryParams=t,this.fragment=n}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=ey(this.queryParams)),this._queryParamMap}toString(){return yy.serialize(this)}}class gy{constructor(e,t){this.segments=e,this.children=t,this.parent=null,ay(t,(e,t)=>e.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return wy(this)}}class fy{constructor(e,t){this.path=e,this.parameters=t}get parameterMap(){return this._parameterMap||(this._parameterMap=ey(this.parameters)),this._parameterMap}toString(){return Py(this)}}function my(e,t){return e.length===t.length&&e.every((e,n)=>e.path===t[n].path)}class by{}class vy{parse(e){const t=new Ty(e);return new py(t.parseRootSegment(),t.parseQueryParams(),t.parseFragment())}serialize(e){return`${"/"+_y(e.root,!0)}${function(e){const t=Object.keys(e).map(t=>{const n=e[t];return Array.isArray(n)?n.map(e=>`${Ay(t)}=${Ay(e)}`).join("&"):`${Ay(t)}=${Ay(n)}`});return t.length?"?"+t.join("&"):""}(e.queryParams)}${"string"==typeof e.fragment?"#"+encodeURI(e.fragment):""}`}}const yy=new vy;function wy(e){return e.segments.map(e=>Py(e)).join("/")}function _y(e,t){if(!e.hasChildren())return wy(e);if(t){const t=e.children.primary?_y(e.children.primary,!1):"",n=[];return ay(e.children,(e,t)=>{"primary"!==t&&n.push(`${t}:${_y(e,!1)}`)}),n.length>0?`${t}(${n.join("//")})`:t}{const t=function(e,t){let n=[];return ay(e.children,(e,i)=>{"primary"===i&&(n=n.concat(t(e,i)))}),ay(e.children,(e,i)=>{"primary"!==i&&(n=n.concat(t(e,i)))}),n}(e,(t,n)=>"primary"===n?[_y(e.children.primary,!1)]:[`${n}:${_y(t,!1)}`]);return 1===Object.keys(e.children).length&&null!=e.children.primary?`${wy(e)}/${t[0]}`:`${wy(e)}/(${t.join("//")})`}}function xy(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Ay(e){return xy(e).replace(/%3B/gi,";")}function Cy(e){return xy(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Sy(e){return decodeURIComponent(e)}function ky(e){return Sy(e.replace(/\+/g,"%20"))}function Py(e){return`${Cy(e.path)}${t=e.parameters,Object.keys(t).map(e=>`;${Cy(e)}=${Cy(t[e])}`).join("")}`;var t}const Ey=/^[^\/()?;=#]+/;function Dy(e){const t=e.match(Ey);return t?t[0]:""}const Oy=/^[^=?&#]+/,My=/^[^?&#]+/;class Ty{constructor(e){this.url=e,this.remaining=e}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new gy([],{}):new gy([],this.parseChildren())}parseQueryParams(){const e={};if(this.consumeOptional("?"))do{this.parseQueryParam(e)}while(this.consumeOptional("&"));return e}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());let t={};this.peekStartsWith("/(")&&(this.capture("/"),t=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(e.length>0||Object.keys(t).length>0)&&(n.primary=new gy(e,t)),n}parseSegment(){const e=Dy(this.remaining);if(""===e&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(e),new fy(Sy(e),this.parseMatrixParams())}parseMatrixParams(){const e={};for(;this.consumeOptional(";");)this.parseParam(e);return e}parseParam(e){const t=Dy(this.remaining);if(!t)return;this.capture(t);let n="";if(this.consumeOptional("=")){const e=Dy(this.remaining);e&&(n=e,this.capture(n))}e[Sy(t)]=Sy(n)}parseQueryParam(e){const t=function(e){const t=e.match(Oy);return t?t[0]:""}(this.remaining);if(!t)return;this.capture(t);let n="";if(this.consumeOptional("=")){const e=function(e){const t=e.match(My);return t?t[0]:""}(this.remaining);e&&(n=e,this.capture(n))}const i=ky(t),s=ky(n);if(e.hasOwnProperty(i)){let t=e[i];Array.isArray(t)||(t=[t],e[i]=t),t.push(s)}else e[i]=s}parseParens(e){const t={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const n=Dy(this.remaining),i=this.remaining[n.length];if("/"!==i&&")"!==i&&";"!==i)throw new Error(`Cannot parse url '${this.url}'`);let s=void 0;n.indexOf(":")>-1?(s=n.substr(0,n.indexOf(":")),this.capture(s),this.capture(":")):e&&(s="primary");const o=this.parseChildren();t[s]=1===Object.keys(o).length?o.primary:new gy([],o),this.consumeOptional("//")}return t}peekStartsWith(e){return this.remaining.startsWith(e)}consumeOptional(e){return!!this.peekStartsWith(e)&&(this.remaining=this.remaining.substring(e.length),!0)}capture(e){if(!this.consumeOptional(e))throw new Error(`Expected "${e}".`)}}class Iy{constructor(e){this._root=e}get root(){return this._root.value}parent(e){const t=this.pathFromRoot(e);return t.length>1?t[t.length-2]:null}children(e){const t=Ry(e,this._root);return t?t.children.map(e=>e.value):[]}firstChild(e){const t=Ry(e,this._root);return t&&t.children.length>0?t.children[0].value:null}siblings(e){const t=Ly(e,this._root);return t.length<2?[]:t[t.length-2].children.map(e=>e.value).filter(t=>t!==e)}pathFromRoot(e){return Ly(e,this._root).map(e=>e.value)}}function Ry(e,t){if(e===t.value)return t;for(const n of t.children){const t=Ry(e,n);if(t)return t}return null}function Ly(e,t){if(e===t.value)return[t];for(const n of t.children){const i=Ly(e,n);if(i.length)return i.unshift(t),i}return[]}class Fy{constructor(e,t){this.value=e,this.children=t}toString(){return`TreeNode(${this.value})`}}function By(e){const t={};return e&&e.children.forEach(e=>t[e.value.outlet]=e),t}class zy extends Iy{constructor(e,t){super(e),this.snapshot=t,Wy(this,e)}toString(){return this.snapshot.toString()}}function Vy(e,t){const n=function(e,t){const n=new jy([],{},{},"",{},"primary",t,null,e.root,-1,{});return new Uy("",new Fy(n,[]))}(e,t),i=new Gb([new fy("",{})]),s=new Gb({}),o=new Gb({}),r=new Gb({}),a=new Gb(""),l=new Ny(i,s,r,a,o,"primary",t,n.root);return l.snapshot=n.root,new zy(new Fy(l,[]),n)}class Ny{constructor(e,t,n,i,s,o,r,a){this.url=e,this.params=t,this.queryParams=n,this.fragment=i,this.data=s,this.outlet=o,this.component=r,this._futureSnapshot=a}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe(k(e=>ey(e)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(k(e=>ey(e)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Hy(e,t="emptyOnly"){const n=e.pathFromRoot;let i=0;if("always"!==t)for(i=n.length-1;i>=1;){const e=n[i],t=n[i-1];if(e.routeConfig&&""===e.routeConfig.path)i--;else{if(t.component)break;i--}}return function(e){return e.reduce((e,t)=>({params:Object.assign(Object.assign({},e.params),t.params),data:Object.assign(Object.assign({},e.data),t.data),resolve:Object.assign(Object.assign({},e.resolve),t._resolvedData)}),{params:{},data:{},resolve:{}})}(n.slice(i))}class jy{constructor(e,t,n,i,s,o,r,a,l,c,d){this.url=e,this.params=t,this.queryParams=n,this.fragment=i,this.data=s,this.outlet=o,this.component=r,this.routeConfig=a,this._urlSegment=l,this._lastPathIndex=c,this._resolve=d}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=ey(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=ey(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(e=>e.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Uy extends Iy{constructor(e,t){super(t),this.url=e,Wy(this,t)}toString(){return Gy(this._root)}}function Wy(e,t){t.value._routerState=e,t.children.forEach(t=>Wy(e,t))}function Gy(e){const t=e.children.length>0?` { ${e.children.map(Gy).join(", ")} } `:"";return`${e.value}${t}`}function $y(e){if(e.snapshot){const t=e.snapshot,n=e._futureSnapshot;e.snapshot=n,iy(t.queryParams,n.queryParams)||e.queryParams.next(n.queryParams),t.fragment!==n.fragment&&e.fragment.next(n.fragment),iy(t.params,n.params)||e.params.next(n.params),function(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;++n)if(!iy(e[n],t[n]))return!1;return!0}(t.url,n.url)||e.url.next(n.url),iy(t.data,n.data)||e.data.next(n.data)}else e.snapshot=e._futureSnapshot,e.data.next(e._futureSnapshot.data)}function qy(e,t){var n,i;return iy(e.params,t.params)&&my(n=e.url,i=t.url)&&n.every((e,t)=>iy(e.parameters,i[t].parameters))&&!(!e.parent!=!t.parent)&&(!e.parent||qy(e.parent,t.parent))}function Yy(e,t,n){if(n&&e.shouldReuseRoute(t.value,n.value.snapshot)){const i=n.value;i._futureSnapshot=t.value;const s=function(e,t,n){return t.children.map(t=>{for(const i of n.children)if(e.shouldReuseRoute(t.value,i.value.snapshot))return Yy(e,t,i);return Yy(e,t)})}(e,t,n);return new Fy(i,s)}{const n=e.retrieve(t.value);if(n){const e=n.route;return Zy(t,e),e}{const n=new Ny(new Gb((i=t.value).url),new Gb(i.params),new Gb(i.queryParams),new Gb(i.fragment),new Gb(i.data),i.outlet,i.component,i),s=t.children.map(t=>Yy(e,t));return new Fy(n,s)}}var i}function Zy(e,t){if(e.value.routeConfig!==t.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(e.children.length!==t.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");t.value._futureSnapshot=e.value;for(let n=0;n<e.children.length;++n)Zy(e.children[n],t.children[n])}function Qy(e){return"object"==typeof e&&null!=e&&!e.outlets&&!e.segmentPath}function Xy(e){return"object"==typeof e&&null!=e&&e.outlets}function Ky(e,t,n,i,s){let o={};return i&&ay(i,(e,t)=>{o[t]=Array.isArray(e)?e.map(e=>""+e):""+e}),new py(n.root===e?t:Jy(n.root,e,t),o,s)}function Jy(e,t,n){const i={};return ay(e.children,(e,s)=>{i[s]=e===t?n:Jy(e,t,n)}),new gy(e.segments,i)}class ew{constructor(e,t,n){if(this.isAbsolute=e,this.numberOfDoubleDots=t,this.commands=n,e&&n.length>0&&Qy(n[0]))throw new Error("Root segment cannot have matrix parameters");const i=n.find(Xy);if(i&&i!==ry(n))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class tw{constructor(e,t,n){this.segmentGroup=e,this.processChildren=t,this.index=n}}function nw(e,t,n){if(e||(e=new gy([],{})),0===e.segments.length&&e.hasChildren())return iw(e,t,n);const i=function(e,t,n){let i=0,s=t;const o={match:!1,pathIndex:0,commandIndex:0};for(;s<e.segments.length;){if(i>=n.length)return o;const t=e.segments[s],r=n[i];if(Xy(r))break;const a=""+r,l=i<n.length-1?n[i+1]:null;if(s>0&&void 0===a)break;if(a&&l&&"object"==typeof l&&void 0===l.outlets){if(!aw(a,l,t))return o;i+=2}else{if(!aw(a,{},t))return o;i++}s++}return{match:!0,pathIndex:s,commandIndex:i}}(e,t,n),s=n.slice(i.commandIndex);if(i.match&&i.pathIndex<e.segments.length){const t=new gy(e.segments.slice(0,i.pathIndex),{});return t.children.primary=new gy(e.segments.slice(i.pathIndex),e.children),iw(t,0,s)}return i.match&&0===s.length?new gy(e.segments,{}):i.match&&!e.hasChildren()?sw(e,t,n):i.match?iw(e,0,s):sw(e,t,n)}function iw(e,t,n){if(0===n.length)return new gy(e.segments,{});{const i=function(e){return Xy(e[0])?e[0].outlets:{primary:e}}(n),s={};return ay(i,(n,i)=>{"string"==typeof n&&(n=[n]),null!==n&&(s[i]=nw(e.children[i],t,n))}),ay(e.children,(e,t)=>{void 0===i[t]&&(s[t]=e)}),new gy(e.segments,s)}}function sw(e,t,n){const i=e.segments.slice(0,t);let s=0;for(;s<n.length;){const o=n[s];if(Xy(o)){const e=ow(o.outlets);return new gy(i,e)}if(0===s&&Qy(n[0])){i.push(new fy(e.segments[t].path,rw(n[0]))),s++;continue}const r=Xy(o)?o.outlets.primary:""+o,a=s<n.length-1?n[s+1]:null;r&&a&&Qy(a)?(i.push(new fy(r,rw(a))),s+=2):(i.push(new fy(r,{})),s++)}return new gy(i,{})}function ow(e){const t={};return ay(e,(e,n)=>{"string"==typeof e&&(e=[e]),null!==e&&(t[n]=sw(new gy([],{}),0,e))}),t}function rw(e){const t={};return ay(e,(e,n)=>t[n]=""+e),t}function aw(e,t,n){return e==n.path&&iy(t,n.parameters)}class lw{constructor(e,t,n,i){this.routeReuseStrategy=e,this.futureState=t,this.currState=n,this.forwardEvent=i}activate(e){const t=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(t,n,e),$y(this.futureState.root),this.activateChildRoutes(t,n,e)}deactivateChildRoutes(e,t,n){const i=By(t);e.children.forEach(e=>{const t=e.value.outlet;this.deactivateRoutes(e,i[t],n),delete i[t]}),ay(i,(e,t)=>{this.deactivateRouteAndItsChildren(e,n)})}deactivateRoutes(e,t,n){const i=e.value,s=t?t.value:null;if(i===s)if(i.component){const s=n.getContext(i.outlet);s&&this.deactivateChildRoutes(e,t,s.children)}else this.deactivateChildRoutes(e,t,n);else s&&this.deactivateRouteAndItsChildren(t,n)}deactivateRouteAndItsChildren(e,t){this.routeReuseStrategy.shouldDetach(e.value.snapshot)?this.detachAndStoreRouteSubtree(e,t):this.deactivateRouteAndOutlet(e,t)}detachAndStoreRouteSubtree(e,t){const n=t.getContext(e.value.outlet);if(n&&n.outlet){const t=n.outlet.detach(),i=n.children.onOutletDeactivated();this.routeReuseStrategy.store(e.value.snapshot,{componentRef:t,route:e,contexts:i})}}deactivateRouteAndOutlet(e,t){const n=t.getContext(e.value.outlet),i=n&&e.value.component?n.children:t,s=By(e);for(const o of Object.keys(s))this.deactivateRouteAndItsChildren(s[o],i);n&&n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated())}activateChildRoutes(e,t,n){const i=By(t);e.children.forEach(e=>{this.activateRoutes(e,i[e.value.outlet],n),this.forwardEvent(new Xv(e.value.snapshot))}),e.children.length&&this.forwardEvent(new Zv(e.value.snapshot))}activateRoutes(e,t,n){const i=e.value,s=t?t.value:null;if($y(i),i===s)if(i.component){const s=n.getOrCreateContext(i.outlet);this.activateChildRoutes(e,t,s.children)}else this.activateChildRoutes(e,t,n);else if(i.component){const t=n.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){const e=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),t.children.onOutletReAttached(e.contexts),t.attachRef=e.componentRef,t.route=e.route.value,t.outlet&&t.outlet.attach(e.componentRef,e.route.value),cw(e.route)}else{const n=function(e){for(let t=e.parent;t;t=t.parent){const e=t.routeConfig;if(e&&e._loadedConfig)return e._loadedConfig;if(e&&e.component)return null}return null}(i.snapshot),s=n?n.module.componentFactoryResolver:null;t.attachRef=null,t.route=i,t.resolver=s,t.outlet&&t.outlet.activateWith(i,s),this.activateChildRoutes(e,null,t.children)}}else this.activateChildRoutes(e,null,n)}}function cw(e){$y(e.value),e.children.forEach(cw)}class dw{constructor(e,t){this.routes=e,this.module=t}}function uw(e){return"function"==typeof e}function hw(e){return e instanceof py}const pw=Symbol("INITIAL_VALUE");function gw(){return sv(e=>Qb(e.map(e=>e.pipe(lv(1),uv(pw)))).pipe(hv((e,t)=>{let n=!1;return t.reduce((e,i,s)=>{if(e!==pw)return e;if(i===pw&&(n=!0),!n){if(!1===i)return i;if(s===t.length-1||hw(i))return i}return e},e)},pw),db(e=>e!==pw),k(e=>hw(e)?e:!0===e),lv(1)))}let fw=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=$e({type:e,selectors:[["ng-component"]],decls:1,vars:0,template:function(e,t){1&e&&Ur(0,"router-outlet")},directives:function(){return[d_]},encapsulation:2}),e})();function mw(e,t=""){for(let n=0;n<e.length;n++){const i=e[n];bw(i,vw(t,i))}}function bw(e,t){e.children&&mw(e.children,t)}function vw(e,t){return t?e||t.path?e&&!t.path?e+"/":!e&&t.path?t.path:`${e}/${t.path}`:"":e}function yw(e){const t=e.children&&e.children.map(yw),n=t?Object.assign(Object.assign({},e),{children:t}):Object.assign({},e);return!n.component&&(t||n.loadChildren)&&n.outlet&&"primary"!==n.outlet&&(n.component=fw),n}function ww(e){return e.outlet||"primary"}function _w(e,t){const n=e.filter(e=>ww(e)===t);return n.push(...e.filter(e=>ww(e)!==t)),n}const xw={matched:!1,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};function Aw(e,t,n){var i;if(""===t.path)return"full"===t.pathMatch&&(e.hasChildren()||n.length>0)?Object.assign({},xw):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};const s=(t.matcher||ny)(n,e,t);if(!s)return Object.assign({},xw);const o={};ay(s.posParams,(e,t)=>{o[t]=e.path});const r=s.consumed.length>0?Object.assign(Object.assign({},o),s.consumed[s.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:s.consumed,lastChild:s.consumed.length,parameters:r,positionalParamSegments:null!==(i=s.posParams)&&void 0!==i?i:{}}}function Cw(e,t,n,i,s="corrected"){if(n.length>0&&function(e,t,n){return n.some(n=>Sw(e,t,n)&&"primary"!==ww(n))}(e,n,i)){const s=new gy(t,function(e,t,n,i){const s={};s.primary=i,i._sourceSegment=e,i._segmentIndexShift=t.length;for(const o of n)if(""===o.path&&"primary"!==ww(o)){const n=new gy([],{});n._sourceSegment=e,n._segmentIndexShift=t.length,s[ww(o)]=n}return s}(e,t,i,new gy(n,e.children)));return s._sourceSegment=e,s._segmentIndexShift=t.length,{segmentGroup:s,slicedSegments:[]}}if(0===n.length&&function(e,t,n){return n.some(n=>Sw(e,t,n))}(e,n,i)){const o=new gy(e.segments,function(e,t,n,i,s,o){const r={};for(const a of i)if(Sw(e,n,a)&&!s[ww(a)]){const n=new gy([],{});n._sourceSegment=e,n._segmentIndexShift="legacy"===o?e.segments.length:t.length,r[ww(a)]=n}return Object.assign(Object.assign({},s),r)}(e,t,n,i,e.children,s));return o._sourceSegment=e,o._segmentIndexShift=t.length,{segmentGroup:o,slicedSegments:n}}const o=new gy(e.segments,e.children);return o._sourceSegment=e,o._segmentIndexShift=t.length,{segmentGroup:o,slicedSegments:n}}function Sw(e,t,n){return(!(e.hasChildren()||t.length>0)||"full"!==n.pathMatch)&&""===n.path}function kw(e,t,n,i){return!!(ww(e)===i||"primary"!==i&&Sw(t,n,e))&&("**"===e.path||Aw(t,e,n).matched)}function Pw(e,t,n){return 0===t.length&&!e.children[n]}class Ew{constructor(e){this.segmentGroup=e||null}}class Dw{constructor(e){this.urlTree=e}}function Ow(e){return new v(t=>t.error(new Ew(e)))}function Mw(e){return new v(t=>t.error(new Dw(e)))}function Tw(e){return new v(t=>t.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${e}'`)))}class Iw{constructor(e,t,n,i,s){this.configLoader=t,this.urlSerializer=n,this.urlTree=i,this.config=s,this.allowRedirects=!0,this.ngModule=e.get(jl)}apply(){const e=Cw(this.urlTree.root,[],[],this.config).segmentGroup,t=new gy(e.segments,e.children);return this.expandSegmentGroup(this.ngModule,this.config,t,"primary").pipe(k(e=>this.createUrlTree(Rw(e),this.urlTree.queryParams,this.urlTree.fragment))).pipe(fv(e=>{if(e instanceof Dw)return this.allowRedirects=!1,this.match(e.urlTree);if(e instanceof Ew)throw this.noMatchError(e);throw e}))}match(e){return this.expandSegmentGroup(this.ngModule,this.config,e.root,"primary").pipe(k(t=>this.createUrlTree(Rw(t),e.queryParams,e.fragment))).pipe(fv(e=>{if(e instanceof Ew)throw this.noMatchError(e);throw e}))}noMatchError(e){return new Error(`Cannot match any routes. URL Segment: '${e.segmentGroup}'`)}createUrlTree(e,t,n){const i=e.segments.length>0?new gy([],{primary:e}):e;return new py(i,t,n)}expandSegmentGroup(e,t,n,i){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(e,t,n).pipe(k(e=>new gy([],e))):this.expandSegment(e,n,t,n.segments,i,!0)}expandChildren(e,t,n){const i=[];for(const s of Object.keys(n.children))"primary"===s?i.unshift(s):i.push(s);return F(i).pipe(cb(i=>{const s=n.children[i],o=_w(t,i);return this.expandSegmentGroup(e,o,s,i).pipe(k(e=>({segment:e,outlet:i})))}),hv((e,t)=>(e[t.outlet]=t.segment,e),{}),function(e,t){const n=arguments.length>=2;return i=>i.pipe(e?db((t,n)=>e(t,n,i)):b,vv(1),n?Sv(t):_v(()=>new Jb))}())}expandSegment(e,t,n,i,s,o){return F(n).pipe(cb(r=>this.expandSegmentAgainstRoute(e,t,n,r,i,s,o).pipe(fv(e=>{if(e instanceof Ew)return lb(null);throw e}))),Ev(e=>!!e),fv((e,n)=>{if(e instanceof Jb||"EmptyError"===e.name){if(Pw(t,i,s))return lb(new gy([],{}));throw new Ew(t)}throw e}))}expandSegmentAgainstRoute(e,t,n,i,s,o,r){return kw(i,t,s,o)?void 0===i.redirectTo?this.matchSegmentAgainstRoute(e,t,i,s,o):r&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(e,t,n,i,s,o):Ow(t):Ow(t)}expandSegmentAgainstRouteUsingRedirect(e,t,n,i,s,o){return"**"===i.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(e,n,i,o):this.expandRegularSegmentAgainstRouteUsingRedirect(e,t,n,i,s,o)}expandWildCardWithParamsAgainstRouteUsingRedirect(e,t,n,i){const s=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?Mw(s):this.lineralizeSegments(n,s).pipe(N(n=>{const s=new gy(n,{});return this.expandSegment(e,s,t,n,i,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(e,t,n,i,s,o){const{matched:r,consumedSegments:a,lastChild:l,positionalParamSegments:c}=Aw(t,i,s);if(!r)return Ow(t);const d=this.applyRedirectCommands(a,i.redirectTo,c);return i.redirectTo.startsWith("/")?Mw(d):this.lineralizeSegments(i,d).pipe(N(i=>this.expandSegment(e,t,n,i.concat(s.slice(l)),o,!1)))}matchSegmentAgainstRoute(e,t,n,i,s){if("**"===n.path)return n.loadChildren?(n._loadedConfig?lb(n._loadedConfig):this.configLoader.load(e.injector,n)).pipe(k(e=>(n._loadedConfig=e,new gy(i,{})))):lb(new gy(i,{}));const{matched:o,consumedSegments:r,lastChild:a}=Aw(t,n,i);if(!o)return Ow(t);const l=i.slice(a);return this.getChildConfig(e,n,i).pipe(N(e=>{const i=e.module,o=e.routes,{segmentGroup:a,slicedSegments:c}=Cw(t,r,l,o),d=new gy(a.segments,a.children);if(0===c.length&&d.hasChildren())return this.expandChildren(i,o,d).pipe(k(e=>new gy(r,e)));if(0===o.length&&0===c.length)return lb(new gy(r,{}));const u=ww(n)===s;return this.expandSegment(i,d,o,c,u?"primary":s,!0).pipe(k(e=>new gy(r.concat(e.segments),e.children)))}))}getChildConfig(e,t,n){return t.children?lb(new dw(t.children,e)):t.loadChildren?void 0!==t._loadedConfig?lb(t._loadedConfig):this.runCanLoadGuards(e.injector,t,n).pipe(N(n=>n?this.configLoader.load(e.injector,t).pipe(k(e=>(t._loadedConfig=e,e))):function(e){return new v(t=>t.error(ty(`Cannot load children because the guard of the route "path: '${e.path}'" returned false`)))}(t))):lb(new dw([],e))}runCanLoadGuards(e,t,n){const i=t.canLoad;return i&&0!==i.length?lb(i.map(i=>{const s=e.get(i);let o;if(function(e){return e&&uw(e.canLoad)}(s))o=s.canLoad(t,n);else{if(!uw(s))throw new Error("Invalid CanLoad guard");o=s(t,n)}return ly(o)})).pipe(gw(),Ov(e=>{if(!hw(e))return;const t=ty(`Redirecting to "${this.urlSerializer.serialize(e)}"`);throw t.url=e,t}),k(e=>!0===e)):lb(!0)}lineralizeSegments(e,t){let n=[],i=t.root;for(;;){if(n=n.concat(i.segments),0===i.numberOfChildren)return lb(n);if(i.numberOfChildren>1||!i.children.primary)return Tw(e.redirectTo);i=i.children.primary}}applyRedirectCommands(e,t,n){return this.applyRedirectCreatreUrlTree(t,this.urlSerializer.parse(t),e,n)}applyRedirectCreatreUrlTree(e,t,n,i){const s=this.createSegmentGroup(e,t.root,n,i);return new py(s,this.createQueryParams(t.queryParams,this.urlTree.queryParams),t.fragment)}createQueryParams(e,t){const n={};return ay(e,(e,i)=>{if("string"==typeof e&&e.startsWith(":")){const s=e.substring(1);n[i]=t[s]}else n[i]=e}),n}createSegmentGroup(e,t,n,i){const s=this.createSegments(e,t.segments,n,i);let o={};return ay(t.children,(t,s)=>{o[s]=this.createSegmentGroup(e,t,n,i)}),new gy(s,o)}createSegments(e,t,n,i){return t.map(t=>t.path.startsWith(":")?this.findPosParam(e,t,i):this.findOrReturn(t,n))}findPosParam(e,t,n){const i=n[t.path.substring(1)];if(!i)throw new Error(`Cannot redirect to '${e}'. Cannot find '${t.path}'.`);return i}findOrReturn(e,t){let n=0;for(const i of t){if(i.path===e.path)return t.splice(n),i;n++}return e}}function Rw(e){const t={};for(const n of Object.keys(e.children)){const i=Rw(e.children[n]);(i.segments.length>0||i.hasChildren())&&(t[n]=i)}return function(e){if(1===e.numberOfChildren&&e.children.primary){const t=e.children.primary;return new gy(e.segments.concat(t.segments),t.children)}return e}(new gy(e.segments,t))}class Lw{constructor(e){this.path=e,this.route=this.path[this.path.length-1]}}class Fw{constructor(e,t){this.component=e,this.route=t}}function Bw(e,t,n){const i=e._root;return Vw(i,t?t._root:null,n,[i.value])}function zw(e,t,n){const i=function(e){if(!e)return null;for(let t=e.parent;t;t=t.parent){const e=t.routeConfig;if(e&&e._loadedConfig)return e._loadedConfig}return null}(t);return(i?i.module.injector:n).get(e)}function Vw(e,t,n,i,s={canDeactivateChecks:[],canActivateChecks:[]}){const o=By(t);return e.children.forEach(e=>{!function(e,t,n,i,s={canDeactivateChecks:[],canActivateChecks:[]}){const o=e.value,r=t?t.value:null,a=n?n.getContext(e.value.outlet):null;if(r&&o.routeConfig===r.routeConfig){const l=function(e,t,n){if("function"==typeof n)return n(e,t);switch(n){case"pathParamsChange":return!my(e.url,t.url);case"pathParamsOrQueryParamsChange":return!my(e.url,t.url)||!iy(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!qy(e,t)||!iy(e.queryParams,t.queryParams);case"paramsChange":default:return!qy(e,t)}}(r,o,o.routeConfig.runGuardsAndResolvers);l?s.canActivateChecks.push(new Lw(i)):(o.data=r.data,o._resolvedData=r._resolvedData),Vw(e,t,o.component?a?a.children:null:n,i,s),l&&a&&a.outlet&&a.outlet.isActivated&&s.canDeactivateChecks.push(new Fw(a.outlet.component,r))}else r&&Nw(t,a,s),s.canActivateChecks.push(new Lw(i)),Vw(e,null,o.component?a?a.children:null:n,i,s)}(e,o[e.value.outlet],n,i.concat([e.value]),s),delete o[e.value.outlet]}),ay(o,(e,t)=>Nw(e,n.getContext(t),s)),s}function Nw(e,t,n){const i=By(e),s=e.value;ay(i,(e,i)=>{Nw(e,s.component?t?t.children.getContext(i):null:t,n)}),n.canDeactivateChecks.push(new Fw(s.component&&t&&t.outlet&&t.outlet.isActivated?t.outlet.component:null,s))}class Hw{}function jw(e){return new v(t=>t.error(e))}class Uw{constructor(e,t,n,i,s,o){this.rootComponentType=e,this.config=t,this.urlTree=n,this.url=i,this.paramsInheritanceStrategy=s,this.relativeLinkResolution=o}recognize(){const e=Cw(this.urlTree.root,[],[],this.config.filter(e=>void 0===e.redirectTo),this.relativeLinkResolution).segmentGroup,t=this.processSegmentGroup(this.config,e,"primary");if(null===t)return null;const n=new jy([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},"primary",this.rootComponentType,null,this.urlTree.root,-1,{}),i=new Fy(n,t),s=new Uy(this.url,i);return this.inheritParamsAndData(s._root),s}inheritParamsAndData(e){const t=e.value,n=Hy(t,this.paramsInheritanceStrategy);t.params=Object.freeze(n.params),t.data=Object.freeze(n.data),e.children.forEach(e=>this.inheritParamsAndData(e))}processSegmentGroup(e,t,n){return 0===t.segments.length&&t.hasChildren()?this.processChildren(e,t):this.processSegment(e,t,t.segments,n)}processChildren(e,t){const n=[];for(const s of Object.keys(t.children)){const i=t.children[s],o=_w(e,s),r=this.processSegmentGroup(o,i,s);if(null===r)return null;n.push(...r)}const i=function(e){const t=[];for(const n of e){if(!Ww(n)){t.push(n);continue}const e=t.find(e=>n.value.routeConfig===e.value.routeConfig);void 0!==e?e.children.push(...n.children):t.push(n)}return t}(n);return i.sort((e,t)=>"primary"===e.value.outlet?-1:"primary"===t.value.outlet?1:e.value.outlet.localeCompare(t.value.outlet)),i}processSegment(e,t,n,i){for(const s of e){const e=this.processSegmentAgainstRoute(s,t,n,i);if(null!==e)return e}return Pw(t,n,i)?[]:null}processSegmentAgainstRoute(e,t,n,i){if(e.redirectTo||!kw(e,t,n,i))return null;let s,o=[],r=[];if("**"===e.path){const i=n.length>0?ry(n).parameters:{};s=new jy(n,i,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,qw(e),ww(e),e.component,e,Gw(t),$w(t)+n.length,Yw(e))}else{const i=Aw(t,e,n);if(!i.matched)return null;o=i.consumedSegments,r=n.slice(i.lastChild),s=new jy(o,i.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,qw(e),ww(e),e.component,e,Gw(t),$w(t)+o.length,Yw(e))}const a=function(e){return e.children?e.children:e.loadChildren?e._loadedConfig.routes:[]}(e),{segmentGroup:l,slicedSegments:c}=Cw(t,o,r,a.filter(e=>void 0===e.redirectTo),this.relativeLinkResolution);if(0===c.length&&l.hasChildren()){const e=this.processChildren(a,l);return null===e?null:[new Fy(s,e)]}if(0===a.length&&0===c.length)return[new Fy(s,[])];const d=ww(e)===i,u=this.processSegment(a,l,c,d?"primary":i);return null===u?null:[new Fy(s,u)]}}function Ww(e){const t=e.value.routeConfig;return t&&""===t.path&&void 0===t.redirectTo}function Gw(e){let t=e;for(;t._sourceSegment;)t=t._sourceSegment;return t}function $w(e){let t=e,n=t._segmentIndexShift?t._segmentIndexShift:0;for(;t._sourceSegment;)t=t._sourceSegment,n+=t._segmentIndexShift?t._segmentIndexShift:0;return n-1}function qw(e){return e.data||{}}function Yw(e){return e.resolve||{}}function Zw(e){return sv(t=>{const n=e(t);return n?F(n).pipe(k(()=>t)):lb(t)})}class Qw{}class Xw extends class{shouldDetach(e){return!1}store(e,t){}shouldAttach(e){return!1}retrieve(e){return null}shouldReuseRoute(e,t){return e.routeConfig===t.routeConfig}}{}const Kw=new Xn("ROUTES");class Jw{constructor(e,t,n,i){this.loader=e,this.compiler=t,this.onLoadStartListener=n,this.onLoadEndListener=i}load(e,t){if(t._loader$)return t._loader$;this.onLoadStartListener&&this.onLoadStartListener(t);const n=this.loadModuleFactory(t.loadChildren).pipe(k(n=>{this.onLoadEndListener&&this.onLoadEndListener(t);const i=n.create(e);return new dw(oy(i.injector.get(Kw,void 0,Ae.Self|Ae.Optional)).map(yw),i)}),fv(e=>{throw t._loader$=void 0,e}));return t._loader$=new Q(n,()=>new A).pipe(q()),t._loader$}loadModuleFactory(e){return"string"==typeof e?F(this.loader.load(e)):ly(e()).pipe(N(e=>e instanceof Ul?lb(e):F(this.compiler.compileModuleAsync(e))))}}class e_{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new t_,this.attachRef=null}}class t_{constructor(){this.contexts=new Map}onChildOutletCreated(e,t){const n=this.getOrCreateContext(e);n.outlet=t,this.contexts.set(e,n)}onChildOutletDestroyed(e){const t=this.getContext(e);t&&(t.outlet=null)}onOutletDeactivated(){const e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let t=this.getContext(e);return t||(t=new e_,this.contexts.set(e,t)),t}getContext(e){return this.contexts.get(e)||null}}class n_{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,t){return e}}function i_(e){throw e}function s_(e,t,n){return t.parse("/")}function o_(e,t){return lb(null)}let r_=(()=>{class e{constructor(e,t,n,i,s,o,r,a){this.rootComponentType=e,this.urlSerializer=t,this.rootContexts=n,this.location=i,this.config=a,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.lastLocationChangeInfo=null,this.navigationId=0,this.isNgZoneEnabled=!1,this.events=new A,this.errorHandler=i_,this.malformedUriErrorHandler=s_,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:o_,afterPreactivation:o_},this.urlHandlingStrategy=new n_,this.routeReuseStrategy=new Xw,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.ngModule=s.get(jl),this.console=s.get(Yc);const l=s.get(ad);this.isNgZoneEnabled=l instanceof ad&&ad.isInAngularZone(),this.resetConfig(a),this.currentUrlTree=new py(new gy([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new Jw(o,r,e=>this.triggerEvent(new $v(e)),e=>this.triggerEvent(new qv(e))),this.routerState=Vy(this.currentUrlTree,this.rootComponentType),this.transitions=new Gb({id:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}setupNavigations(e){const t=this.events;return e.pipe(db(e=>0!==e.id),k(e=>Object.assign(Object.assign({},e),{extractedUrl:this.urlHandlingStrategy.extract(e.rawUrl)})),sv(e=>{let n=!1,i=!1;return lb(e).pipe(Ov(e=>{this.currentNavigation={id:e.id,initialUrl:e.currentRawUrl,extractedUrl:e.extractedUrl,trigger:e.source,extras:e.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),sv(e=>{const n=!this.navigated||e.extractedUrl.toString()!==this.browserUrlTree.toString();if(("reload"===this.onSameUrlNavigation||n)&&this.urlHandlingStrategy.shouldProcessUrl(e.rawUrl))return lb(e).pipe(sv(e=>{const n=this.transitions.getValue();return t.next(new Bv(e.id,this.serializeUrl(e.extractedUrl),e.source,e.restoredState)),n!==this.transitions.getValue()?tv:Promise.resolve(e)}),(i=this.ngModule.injector,s=this.configLoader,o=this.urlSerializer,r=this.config,sv(e=>function(e,t,n,i,s){return new Iw(e,t,n,i,s).apply()}(i,s,o,e.extractedUrl,r).pipe(k(t=>Object.assign(Object.assign({},e),{urlAfterRedirects:t}))))),Ov(e=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:e.urlAfterRedirects})}),function(e,t,n,i,s){return N(o=>function(e,t,n,i,s="emptyOnly",o="legacy"){try{const r=new Uw(e,t,n,i,s,o).recognize();return null===r?jw(new Hw):lb(r)}catch(r){return jw(r)}}(e,t,o.urlAfterRedirects,n(o.urlAfterRedirects),i,s).pipe(k(e=>Object.assign(Object.assign({},o),{targetSnapshot:e}))))}(this.rootComponentType,this.config,e=>this.serializeUrl(e),this.paramsInheritanceStrategy,this.relativeLinkResolution),Ov(e=>{"eager"===this.urlUpdateStrategy&&(e.extras.skipLocationChange||this.setBrowserUrl(e.urlAfterRedirects,!!e.extras.replaceUrl,e.id,e.extras.state),this.browserUrlTree=e.urlAfterRedirects);const n=new Hv(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.next(n)}));var i,s,o,r;if(n&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:n,extractedUrl:i,source:s,restoredState:o,extras:r}=e,a=new Bv(n,this.serializeUrl(i),s,o);t.next(a);const l=Vy(i,this.rootComponentType).snapshot;return lb(Object.assign(Object.assign({},e),{targetSnapshot:l,urlAfterRedirects:i,extras:Object.assign(Object.assign({},r),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=e.rawUrl,this.browserUrlTree=e.urlAfterRedirects,e.resolve(null),tv}),Zw(e=>{const{targetSnapshot:t,id:n,extractedUrl:i,rawUrl:s,extras:{skipLocationChange:o,replaceUrl:r}}=e;return this.hooks.beforePreactivation(t,{navigationId:n,appliedUrlTree:i,rawUrlTree:s,skipLocationChange:!!o,replaceUrl:!!r})}),Ov(e=>{const t=new jv(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);this.triggerEvent(t)}),k(e=>Object.assign(Object.assign({},e),{guards:Bw(e.targetSnapshot,e.currentSnapshot,this.rootContexts)})),function(e,t){return N(n=>{const{targetSnapshot:i,currentSnapshot:s,guards:{canActivateChecks:o,canDeactivateChecks:r}}=n;return 0===r.length&&0===o.length?lb(Object.assign(Object.assign({},n),{guardsResult:!0})):function(e,t,n,i){return F(e).pipe(N(e=>function(e,t,n,i,s){const o=t&&t.routeConfig?t.routeConfig.canDeactivate:null;return o&&0!==o.length?lb(o.map(o=>{const r=zw(o,t,s);let a;if(function(e){return e&&uw(e.canDeactivate)}(r))a=ly(r.canDeactivate(e,t,n,i));else{if(!uw(r))throw new Error("Invalid CanDeactivate guard");a=ly(r(e,t,n,i))}return a.pipe(Ev())})).pipe(gw()):lb(!0)}(e.component,e.route,n,t,i)),Ev(e=>!0!==e,!0))}(r,i,s,e).pipe(N(n=>n&&"boolean"==typeof n?function(e,t,n,i){return F(t).pipe(cb(t=>ev(function(e,t){return null!==e&&t&&t(new Yv(e)),lb(!0)}(t.route.parent,i),function(e,t){return null!==e&&t&&t(new Qv(e)),lb(!0)}(t.route,i),function(e,t,n){const i=t[t.length-1],s=t.slice(0,t.length-1).reverse().map(e=>function(e){const t=e.routeConfig?e.routeConfig.canActivateChild:null;return t&&0!==t.length?{node:e,guards:t}:null}(e)).filter(e=>null!==e).map(t=>iv(()=>lb(t.guards.map(s=>{const o=zw(s,t.node,n);let r;if(function(e){return e&&uw(e.canActivateChild)}(o))r=ly(o.canActivateChild(i,e));else{if(!uw(o))throw new Error("Invalid CanActivateChild guard");r=ly(o(i,e))}return r.pipe(Ev())})).pipe(gw())));return lb(s).pipe(gw())}(e,t.path,n),function(e,t,n){const i=t.routeConfig?t.routeConfig.canActivate:null;return i&&0!==i.length?lb(i.map(i=>iv(()=>{const s=zw(i,t,n);let o;if(function(e){return e&&uw(e.canActivate)}(s))o=ly(s.canActivate(t,e));else{if(!uw(s))throw new Error("Invalid CanActivate guard");o=ly(s(t,e))}return o.pipe(Ev())}))).pipe(gw()):lb(!0)}(e,t.route,n))),Ev(e=>!0!==e,!0))}(i,o,e,t):lb(n)),k(e=>Object.assign(Object.assign({},n),{guardsResult:e})))})}(this.ngModule.injector,e=>this.triggerEvent(e)),Ov(e=>{if(hw(e.guardsResult)){const t=ty(`Redirecting to "${this.serializeUrl(e.guardsResult)}"`);throw t.url=e.guardsResult,t}const t=new Uv(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(e.urlAfterRedirects),e.targetSnapshot,!!e.guardsResult);this.triggerEvent(t)}),db(e=>{if(!e.guardsResult){this.resetUrlToCurrentUrlTree();const n=new Vv(e.id,this.serializeUrl(e.extractedUrl),"");return t.next(n),e.resolve(!1),!1}return!0}),Zw(e=>{if(e.guards.canActivateChecks.length)return lb(e).pipe(Ov(e=>{const t=new Wv(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);this.triggerEvent(t)}),sv(e=>{let n=!1;return lb(e).pipe((i=this.paramsInheritanceStrategy,s=this.ngModule.injector,N(e=>{const{targetSnapshot:t,guards:{canActivateChecks:n}}=e;if(!n.length)return lb(e);let o=0;return F(n).pipe(cb(e=>function(e,t,n,i){return function(e,t,n,i){const s=Object.keys(e);if(0===s.length)return lb({});const o={};return F(s).pipe(N(s=>function(e,t,n,i){const s=zw(e,t,i);return ly(s.resolve?s.resolve(t,n):s(t,n))}(e[s],t,n,i).pipe(Ov(e=>{o[s]=e}))),vv(1),N(()=>Object.keys(o).length===s.length?lb(o):tv))}(e._resolve,e,t,i).pipe(k(t=>(e._resolvedData=t,e.data=Object.assign(Object.assign({},e.data),Hy(e,n).resolve),null)))}(e.route,t,i,s)),Ov(()=>o++),vv(1),N(t=>o===n.length?lb(e):tv))})),Ov({next:()=>n=!0,complete:()=>{if(!n){const n=new Vv(e.id,this.serializeUrl(e.extractedUrl),"At least one route resolver didn't emit any value.");t.next(n),e.resolve(!1)}}}));var i,s}),Ov(e=>{const t=new Gv(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);this.triggerEvent(t)}))}),Zw(e=>{const{targetSnapshot:t,id:n,extractedUrl:i,rawUrl:s,extras:{skipLocationChange:o,replaceUrl:r}}=e;return this.hooks.afterPreactivation(t,{navigationId:n,appliedUrlTree:i,rawUrlTree:s,skipLocationChange:!!o,replaceUrl:!!r})}),k(e=>{const t=function(e,t,n){const i=Yy(e,t._root,n?n._root:void 0);return new zy(i,t)}(this.routeReuseStrategy,e.targetSnapshot,e.currentRouterState);return Object.assign(Object.assign({},e),{targetRouterState:t})}),Ov(e=>{this.currentUrlTree=e.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.rawUrl),this.routerState=e.targetRouterState,"deferred"===this.urlUpdateStrategy&&(e.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,!!e.extras.replaceUrl,e.id,e.extras.state),this.browserUrlTree=e.urlAfterRedirects)}),(s=this.rootContexts,o=this.routeReuseStrategy,r=e=>this.triggerEvent(e),k(e=>(new lw(o,e.targetRouterState,e.currentRouterState,r).activate(s),e))),Ov({next(){n=!0},complete(){n=!0}}),Iv(()=>{if(!n&&!i){this.resetUrlToCurrentUrlTree();const n=new Vv(e.id,this.serializeUrl(e.extractedUrl),`Navigation ID ${e.id} is not equal to the current navigation id ${this.navigationId}`);t.next(n),e.resolve(!1)}this.currentNavigation=null}),fv(n=>{if(i=!0,(s=n)&&s.ngNavigationCancelingError){const i=hw(n.url);i||(this.navigated=!0,this.resetStateAndUrl(e.currentRouterState,e.currentUrlTree,e.rawUrl));const s=new Vv(e.id,this.serializeUrl(e.extractedUrl),n.message);t.next(s),i?setTimeout(()=>{const t=this.urlHandlingStrategy.merge(n.url,this.rawUrlTree);this.scheduleNavigation(t,"imperative",null,{skipLocationChange:e.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy},{resolve:e.resolve,reject:e.reject,promise:e.promise})},0):e.resolve(!1)}else{this.resetStateAndUrl(e.currentRouterState,e.currentUrlTree,e.rawUrl);const i=new Nv(e.id,this.serializeUrl(e.extractedUrl),n);t.next(i);try{e.resolve(this.errorHandler(n))}catch(o){e.reject(o)}}var s;return tv}));var s,o,r}))}resetRootComponentType(e){this.rootComponentType=e,this.routerState.root.component=this.rootComponentType}getTransition(){const e=this.transitions.value;return e.urlAfterRedirects=this.browserUrlTree,e}setTransition(e){this.transitions.next(Object.assign(Object.assign({},this.getTransition()),e))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(e=>{const t=this.extractLocationChangeInfoFromEvent(e);this.shouldScheduleNavigation(this.lastLocationChangeInfo,t)&&setTimeout(()=>{const{source:e,state:n,urlTree:i}=t,s={replaceUrl:!0};if(n){const e=Object.assign({},n);delete e.navigationId,0!==Object.keys(e).length&&(s.state=e)}this.scheduleNavigation(i,e,n,s)},0),this.lastLocationChangeInfo=t}))}extractLocationChangeInfoFromEvent(e){var t;return{source:"popstate"===e.type?"popstate":"hashchange",urlTree:this.parseUrl(e.url),state:(null===(t=e.state)||void 0===t?void 0:t.navigationId)?e.state:null,transitionId:this.getTransition().id}}shouldScheduleNavigation(e,t){if(!e)return!0;const n=t.urlTree.toString()===e.urlTree.toString();return!(t.transitionId===e.transitionId&&n&&("hashchange"===t.source&&"popstate"===e.source||"popstate"===t.source&&"hashchange"===e.source))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(e){this.events.next(e)}resetConfig(e){mw(e),this.config=e.map(yw),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(e,t={}){const{relativeTo:n,queryParams:i,fragment:s,queryParamsHandling:o,preserveFragment:r}=t,a=n||this.routerState.root,l=r?this.currentUrlTree.fragment:s;let c=null;switch(o){case"merge":c=Object.assign(Object.assign({},this.currentUrlTree.queryParams),i);break;case"preserve":c=this.currentUrlTree.queryParams;break;default:c=i||null}return null!==c&&(c=this.removeEmptyProps(c)),function(e,t,n,i,s){if(0===n.length)return Ky(t.root,t.root,t,i,s);const o=function(e){if("string"==typeof e[0]&&1===e.length&&"/"===e[0])return new ew(!0,0,e);let t=0,n=!1;const i=e.reduce((e,i,s)=>{if("object"==typeof i&&null!=i){if(i.outlets){const t={};return ay(i.outlets,(e,n)=>{t[n]="string"==typeof e?e.split("/"):e}),[...e,{outlets:t}]}if(i.segmentPath)return[...e,i.segmentPath]}return"string"!=typeof i?[...e,i]:0===s?(i.split("/").forEach((i,s)=>{0==s&&"."===i||(0==s&&""===i?n=!0:".."===i?t++:""!=i&&e.push(i))}),e):[...e,i]},[]);return new ew(n,t,i)}(n);if(o.toRoot())return Ky(t.root,new gy([],{}),t,i,s);const r=function(e,t,n){if(e.isAbsolute)return new tw(t.root,!0,0);if(-1===n.snapshot._lastPathIndex){const e=n.snapshot._urlSegment;return new tw(e,e===t.root,0)}const i=Qy(e.commands[0])?0:1;return function(e,t,n){let i=e,s=t,o=n;for(;o>s;){if(o-=s,i=i.parent,!i)throw new Error("Invalid number of '../'");s=i.segments.length}return new tw(i,!1,s-o)}(n.snapshot._urlSegment,n.snapshot._lastPathIndex+i,e.numberOfDoubleDots)}(o,t,e),a=r.processChildren?iw(r.segmentGroup,r.index,o.commands):nw(r.segmentGroup,r.index,o.commands);return Ky(r.segmentGroup,a,t,i,s)}(a,this.currentUrlTree,e,c,l)}navigateByUrl(e,t={skipLocationChange:!1}){const n=hw(e)?e:this.parseUrl(e),i=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(i,"imperative",null,t)}navigate(e,t={skipLocationChange:!1}){return function(e){for(let t=0;t<e.length;t++){const n=e[t];if(null==n)throw new Error(`The requested path contains ${n} segment at index ${t}`)}}(e),this.navigateByUrl(this.createUrlTree(e,t),t)}serializeUrl(e){return this.urlSerializer.serialize(e)}parseUrl(e){let t;try{t=this.urlSerializer.parse(e)}catch(n){t=this.malformedUriErrorHandler(n,this.urlSerializer,e)}return t}isActive(e,t){if(hw(e))return cy(this.currentUrlTree,e,t);const n=this.parseUrl(e);return cy(this.currentUrlTree,n,t)}removeEmptyProps(e){return Object.keys(e).reduce((t,n)=>{const i=e[n];return null!=i&&(t[n]=i),t},{})}processNavigations(){this.navigations.subscribe(e=>{this.navigated=!0,this.lastSuccessfulId=e.id,this.events.next(new zv(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,this.currentNavigation=null,e.resolve(!0)},e=>{this.console.warn("Unhandled Navigation Error: ")})}scheduleNavigation(e,t,n,i,s){if(this.disposed)return Promise.resolve(!1);const o=this.getTransition(),r="imperative"!==t&&"imperative"===(null==o?void 0:o.source),a=(this.lastSuccessfulId===o.id||this.currentNavigation?o.rawUrl:o.urlAfterRedirects).toString()===e.toString();if(r&&a)return Promise.resolve(!0);let l,c,d;s?(l=s.resolve,c=s.reject,d=s.promise):d=new Promise((e,t)=>{l=e,c=t});const u=++this.navigationId;return this.setTransition({id:u,source:t,restoredState:n,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:e,extras:i,resolve:l,reject:c,promise:d,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),d.catch(e=>Promise.reject(e))}setBrowserUrl(e,t,n,i){const s=this.urlSerializer.serialize(e);i=i||{},this.location.isCurrentPathEqualTo(s)||t?this.location.replaceState(s,"",Object.assign(Object.assign({},i),{navigationId:n})):this.location.go(s,"",Object.assign(Object.assign({},i),{navigationId:n}))}resetStateAndUrl(e,t,n){this.routerState=e,this.currentUrlTree=t,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n),this.resetUrlToCurrentUrlTree()}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",{navigationId:this.lastSuccessfulId})}}return e.\u0275fac=function(t){return new(t||e)(gi(Jn),gi(by),gi(t_),gi(nu),gi(mr),gi(Od),gi(sd),gi(void 0))},e.\u0275prov=pe({token:e,factory:e.\u0275fac}),e})(),a_=(()=>{class e{constructor(e,t,n,i,s){this.router=e,this.route=t,this.commands=[],this.onChanges=new A,null==n&&i.setAttribute(s.nativeElement,"tabindex","0")}ngOnChanges(e){this.onChanges.next(this)}set routerLink(e){this.commands=null!=e?Array.isArray(e)?e:[e]:[]}onClick(){const e={skipLocationChange:c_(this.skipLocationChange),replaceUrl:c_(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,e),!0}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:c_(this.preserveFragment)})}}return e.\u0275fac=function(t){return new(t||e)(zr(r_),zr(Ny),Yn("tabindex"),zr(cl),zr(rl))},e.\u0275dir=Ke({type:e,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(e,t){1&e&&Xr("click",function(){return t.onClick()})},inputs:{routerLink:"routerLink",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo"},features:[dt]}),e})(),l_=(()=>{class e{constructor(e,t,n){this.router=e,this.route=t,this.locationStrategy=n,this.commands=[],this.onChanges=new A,this.subscription=e.events.subscribe(e=>{e instanceof zv&&this.updateTargetUrlAndHref()})}set routerLink(e){this.commands=null!=e?Array.isArray(e)?e:[e]:[]}ngOnChanges(e){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(e,t,n,i,s){if(0!==e||t||n||i||s)return!0;if("string"==typeof this.target&&"_self"!=this.target)return!0;const o={skipLocationChange:c_(this.skipLocationChange),replaceUrl:c_(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,o),!1}updateTargetUrlAndHref(){this.href=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree))}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:c_(this.preserveFragment)})}}return e.\u0275fac=function(t){return new(t||e)(zr(r_),zr(Ny),zr(Xd))},e.\u0275dir=Ke({type:e,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(e,t){1&e&&Xr("click",function(e){return t.onClick(e.button,e.ctrlKey,e.shiftKey,e.altKey,e.metaKey)}),2&e&&(Fa("href",t.href,os),Ir("target",t.target))},inputs:{routerLink:"routerLink",target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo"},features:[dt]}),e})();function c_(e){return""===e||!!e}let d_=(()=>{class e{constructor(e,t,n,i,s){this.parentContexts=e,this.location=t,this.resolver=n,this.changeDetector=s,this.activated=null,this._activatedRoute=null,this.activateEvents=new yc,this.deactivateEvents=new yc,this.name=i||"primary",e.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const e=this.parentContexts.getContext(this.name);e&&e.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.resolver||null))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();const e=this.activated;return this.activated=null,this._activatedRoute=null,e}attach(e,t){this.activated=e,this._activatedRoute=t,this.location.insert(e.hostView)}deactivate(){if(this.activated){const e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,t){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=e;const n=(t=t||this.resolver).resolveComponentFactory(e._futureSnapshot.routeConfig.component),i=this.parentContexts.getOrCreateContext(this.name).children,s=new u_(e,i,this.location.injector);this.activated=this.location.createComponent(n,this.location.length,s),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return e.\u0275fac=function(t){return new(t||e)(zr(t_),zr(Gl),zr(nl),Yn("name"),zr(Tl))},e.\u0275dir=Ke({type:e,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),e})();class u_{constructor(e,t,n){this.route=e,this.childContexts=t,this.parent=n}get(e,t){return e===Ny?this.route:e===t_?this.childContexts:this.parent.get(e,t)}}class h_{}class p_{preload(e,t){return lb(null)}}let g_=(()=>{class e{constructor(e,t,n,i,s){this.router=e,this.injector=i,this.preloadingStrategy=s,this.loader=new Jw(t,n,t=>e.triggerEvent(new $v(t)),t=>e.triggerEvent(new qv(t)))}setUpPreloading(){this.subscription=this.router.events.pipe(db(e=>e instanceof zv),cb(()=>this.preload())).subscribe(()=>{})}preload(){const e=this.injector.get(jl);return this.processRoutes(e,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,t){const n=[];for(const i of t)if(i.loadChildren&&!i.canLoad&&i._loadedConfig){const e=i._loadedConfig;n.push(this.processRoutes(e.module,e.routes))}else i.loadChildren&&!i.canLoad?n.push(this.preloadConfig(e,i)):i.children&&n.push(this.processRoutes(e,i.children));return F(n).pipe(U(),k(e=>{}))}preloadConfig(e,t){return this.preloadingStrategy.preload(t,()=>(t._loadedConfig?lb(t._loadedConfig):this.loader.load(e.injector,t)).pipe(N(e=>(t._loadedConfig=e,this.processRoutes(e.module,e.routes)))))}}return e.\u0275fac=function(t){return new(t||e)(gi(r_),gi(Od),gi(sd),gi(mr),gi(h_))},e.\u0275prov=pe({token:e,factory:e.\u0275fac}),e})(),f_=(()=>{class e{constructor(e,t,n={}){this.router=e,this.viewportScroller=t,this.options=n,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},n.scrollPositionRestoration=n.scrollPositionRestoration||"disabled",n.anchorScrolling=n.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(e=>{e instanceof Bv?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof zv&&(this.lastId=e.id,this.scheduleScrollEvent(e,this.router.parseUrl(e.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(e=>{e instanceof Kv&&(e.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(e.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,t){this.router.triggerEvent(new Kv(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,t))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return e.\u0275fac=function(t){return new(t||e)(gi(r_),gi(ph),gi(void 0))},e.\u0275prov=pe({token:e,factory:e.\u0275fac}),e})();const m_=new Xn("ROUTER_CONFIGURATION"),b_=new Xn("ROUTER_FORROOT_GUARD"),v_=[nu,{provide:by,useClass:vy},{provide:r_,useFactory:function(e,t,n,i,s,o,r,a={},l,c){const d=new r_(null,e,t,n,i,s,o,oy(r));if(l&&(d.urlHandlingStrategy=l),c&&(d.routeReuseStrategy=c),function(e,t){e.errorHandler&&(t.errorHandler=e.errorHandler),e.malformedUriErrorHandler&&(t.malformedUriErrorHandler=e.malformedUriErrorHandler),e.onSameUrlNavigation&&(t.onSameUrlNavigation=e.onSameUrlNavigation),e.paramsInheritanceStrategy&&(t.paramsInheritanceStrategy=e.paramsInheritanceStrategy),e.relativeLinkResolution&&(t.relativeLinkResolution=e.relativeLinkResolution),e.urlUpdateStrategy&&(t.urlUpdateStrategy=e.urlUpdateStrategy)}(a,d),a.enableTracing){const e=Nd();d.events.subscribe(t=>{e.logGroup("Router Event: "+t.constructor.name),e.log(t.toString()),e.log(t),e.logGroupEnd()})}return d},deps:[by,t_,nu,mr,Od,sd,Kw,m_,[class{},new yi],[Qw,new yi]]},t_,{provide:Ny,useFactory:function(e){return e.routerState.root},deps:[r_]},{provide:Od,useClass:Id},g_,p_,class{preload(e,t){return t().pipe(fv(()=>lb(null)))}},{provide:m_,useValue:{enableTracing:!1}}];function y_(){return new Ad("Router",r_)}let w_=(()=>{class e{constructor(e,t){}static forRoot(t,n){return{ngModule:e,providers:[v_,C_(t),{provide:b_,useFactory:A_,deps:[[r_,new yi,new wi]]},{provide:m_,useValue:n||{}},{provide:Xd,useFactory:x_,deps:[jd,[new vi(Jd),new yi],m_]},{provide:f_,useFactory:__,deps:[r_,ph,m_]},{provide:h_,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:p_},{provide:Ad,multi:!0,useFactory:y_},[S_,{provide:Nc,multi:!0,useFactory:k_,deps:[S_]},{provide:E_,useFactory:P_,deps:[S_]},{provide:qc,multi:!0,useExisting:E_}]]}}static forChild(t){return{ngModule:e,providers:[C_(t)]}}}return e.\u0275fac=function(t){return new(t||e)(gi(b_,8),gi(r_,8))},e.\u0275mod=Qe({type:e}),e.\u0275inj=fe({}),e})();function __(e,t,n){return n.scrollOffset&&t.setOffset(n.scrollOffset),new f_(e,t,n)}function x_(e,t,n={}){return n.useHash?new tu(e,t):new eu(e,t)}function A_(e){return"guarded"}function C_(e){return[{provide:Kn,multi:!0,useValue:e},{provide:Kw,multi:!0,useValue:e}]}let S_=(()=>{class e{constructor(e){this.injector=e,this.initNavigation=!1,this.resultOfPreactivationDone=new A}appInitializer(){return this.injector.get(Wd,Promise.resolve(null)).then(()=>{let e=null;const t=new Promise(t=>e=t),n=this.injector.get(r_),i=this.injector.get(m_);return"disabled"===i.initialNavigation?(n.setUpLocationChangeListener(),e(!0)):"enabled"===i.initialNavigation||"enabledBlocking"===i.initialNavigation?(n.hooks.afterPreactivation=()=>this.initNavigation?lb(null):(this.initNavigation=!0,e(!0),this.resultOfPreactivationDone),n.initialNavigation()):e(!0),t})}bootstrapListener(e){const t=this.injector.get(m_),n=this.injector.get(g_),i=this.injector.get(f_),s=this.injector.get(r_),o=this.injector.get(Ed);e===o.components[0]&&("enabledNonBlocking"!==t.initialNavigation&&void 0!==t.initialNavigation||s.initialNavigation(),n.setUpPreloading(),i.init(),s.resetRootComponentType(o.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}}return e.\u0275fac=function(t){return new(t||e)(gi(mr))},e.\u0275prov=pe({token:e,factory:e.\u0275fac}),e})();function k_(e){return e.appInitializer.bind(e)}function P_(e){return e.bootstrapListener.bind(e)}const E_=new Xn("Router Initializer");function D_(e,t,n,i){var s,o=arguments.length,r=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,n,r):s(t,n))||r);return o>3&&r&&Object.defineProperty(t,n,r),r}function O_(e,t){return function(n,i){t(n,i,e)}}function M_(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function T_(e,t,n,i){return new(n||(n=Promise))(function(s,o){function r(e){try{l(i.next(e))}catch(t){o(t)}}function a(e){try{l(i.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?s(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(r,a)}l((i=i.apply(e,t||[])).next())})}n("meiF"),n("lTIg"),n("RQGG"),n("bC4P"),n("iWo5");var I_=n("E/Mt"),R_=n("1vRN"),L_=(n("39oe"),n("k4ps")),F_=n("r7QR"),B_=n("7OTs"),z_=(n("y08P"),n("wEJo"));function V_(e,t,n,s){return i(n)&&(s=n,n=void 0),s?V_(e,t,n).pipe(k(e=>l(e)?s(...e):s(e))):new v(i=>{N_(e,t,function(e){i.next(arguments.length>1?Array.prototype.slice.call(arguments):e)},i,n)})}function N_(e,t,n,i,s){let o;if(function(e){return e&&"function"==typeof e.addEventListener&&"function"==typeof e.removeEventListener}(e)){const i=e;e.addEventListener(t,n,s),o=()=>i.removeEventListener(t,n,s)}else if(function(e){return e&&"function"==typeof e.on&&"function"==typeof e.off}(e)){const i=e;e.on(t,n),o=()=>i.off(t,n)}else if(function(e){return e&&"function"==typeof e.addListener&&"function"==typeof e.removeListener}(e)){const i=e;e.addListener(t,n),o=()=>i.removeListener(t,n)}else{if(!e||!e.length)throw new TypeError("Invalid event target");for(let o=0,r=e.length;o<r;o++)N_(e[o],t,n,i,s)}i.add(o)}function H_(e,t){return n=>n.lift(new j_(e,t))}n("B4Jq");class j_{constructor(e,t){this.compare=e,this.keySelector=t}call(e,t){return t.subscribe(new U_(e,this.compare,this.keySelector))}}class U_ extends g{constructor(e,t,n){super(e),this.keySelector=n,this.hasKey=!1,"function"==typeof t&&(this.compare=t)}compare(e,t){return e===t}_next(e){let t;try{const{keySelector:n}=this;t=n?n(e):e}catch(i){return this.destination.error(i)}let n=!1;if(this.hasKey)try{const{compare:e}=this;n=e(this.key,t)}catch(i){return this.destination.error(i)}else this.hasKey=!0;n||(this.key=t,this.destination.next(e))}}const W_=I_.e,G_=["*"],$_=e=>"function"==typeof __zone_symbol__requestAnimationFrame?__zone_symbol__requestAnimationFrame(e):"function"==typeof requestAnimationFrame?requestAnimationFrame(e):setTimeout(e);let q_=(()=>{class e{constructor(e,t){this.injector=e,this.el=t,this.onChange=()=>{},this.onTouched=()=>{}}writeValue(e){this.el.nativeElement.value=this.lastValue=null==e?"":e,Y_(this.el)}handleChangeEvent(e,t){e===this.el.nativeElement&&(t!==this.lastValue&&(this.lastValue=t,this.onChange(t)),Y_(this.el))}_handleBlurEvent(e){e===this.el.nativeElement&&(this.onTouched(),Y_(this.el))}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this.el.nativeElement.disabled=e}ngOnDestroy(){this.statusChanges&&this.statusChanges.unsubscribe()}ngAfterViewInit(){let e;try{e=this.injector.get(sm)}catch(n){}if(!e)return;e.statusChanges&&(this.statusChanges=e.statusChanges.subscribe(()=>Y_(this.el)));const t=e.control;t&&["markAsTouched","markAllAsTouched","markAsUntouched","markAsDirty","markAsPristine"].forEach(e=>{if(t[e]){const n=t[e].bind(t);t[e]=(...e)=>{n(...e),Y_(this.el)}}})}}return e.\u0275fac=function(e){!function(){throw new Error("invalid")}()},e.\u0275dir=Ke({type:e,hostBindings:function(e,t){1&e&&Xr("ionBlur",function(e){return t._handleBlurEvent(e.target)})}}),e})();const Y_=e=>{$_(()=>{const t=e.nativeElement,n=Z_(t);Q_(t,n);const i=t.closest("ion-item");i&&Q_(i,n)})},Z_=e=>{const t=e.classList,n=[];for(let i=0;i<t.length;i++){const e=t.item(i);null!==e&&X_(e,"ng-")&&n.push("ion-"+e.substr(3))}return n},Q_=(e,t)=>{const n=e.classList;["ion-valid","ion-invalid","ion-touched","ion-untouched","ion-dirty","ion-pristine"].forEach(e=>n.remove(e)),t.forEach(e=>n.add(e))},X_=(e,t)=>e.substr(0,t.length)===t;var K_;let J_=(()=>{let e=K_=class extends q_{constructor(e,t){super(e,t)}writeValue(e){this.el.nativeElement.checked=this.lastValue=null!=e&&e,Y_(this.el)}_handleIonChange(e){this.handleChangeEvent(e,e.checked)}};return e.\u0275fac=function(t){return new(t||e)(zr(mr),zr(rl))},e.\u0275dir=Ke({type:e,selectors:[["ion-checkbox"],["ion-toggle"]],hostBindings:function(e,t){1&e&&Xr("ionChange",function(e){return t._handleIonChange(e.target)})},features:[Ja([{provide:Pf,useExisting:K_,multi:!0}]),vr]}),e})();var ex;let tx=(()=>{let e=ex=class extends q_{constructor(e,t){super(e,t)}_handleIonChange(e){this.handleChangeEvent(e,e.value)}registerOnChange(e){super.registerOnChange(t=>{e(""===t?null:parseFloat(t))})}};return e.\u0275fac=function(t){return new(t||e)(zr(mr),zr(rl))},e.\u0275dir=Ke({type:e,selectors:[["ion-input","type","number"]],hostBindings:function(e,t){1&e&&Xr("ionChange",function(e){return t._handleIonChange(e.target)})},features:[Ja([{provide:Pf,useExisting:ex,multi:!0}]),vr]}),e})();var nx;let ix=(()=>{let e=nx=class extends q_{constructor(e,t){super(e,t)}_handleIonSelect(e){this.handleChangeEvent(e,e.checked)}};return e.\u0275fac=function(t){return new(t||e)(zr(mr),zr(rl))},e.\u0275dir=Ke({type:e,selectors:[["ion-radio"]],hostBindings:function(e,t){1&e&&Xr("ionSelect",function(e){return t._handleIonSelect(e.target)})},features:[Ja([{provide:Pf,useExisting:nx,multi:!0}]),vr]}),e})();var sx;let ox=(()=>{let e=sx=class extends q_{constructor(e,t){super(e,t)}_handleChangeEvent(e){this.handleChangeEvent(e,e.value)}};return e.\u0275fac=function(t){return new(t||e)(zr(mr),zr(rl))},e.\u0275dir=Ke({type:e,selectors:[["ion-range"],["ion-select"],["ion-radio-group"],["ion-segment"],["ion-datetime"]],hostBindings:function(e,t){1&e&&Xr("ionChange",function(e){return t._handleChangeEvent(e.target)})},features:[Ja([{provide:Pf,useExisting:sx,multi:!0}]),vr]}),e})();var rx;let ax=(()=>{let e=rx=class extends q_{constructor(e,t){super(e,t)}_handleInputEvent(e){this.handleChangeEvent(e,e.value)}};return e.\u0275fac=function(t){return new(t||e)(zr(mr),zr(rl))},e.\u0275dir=Ke({type:e,selectors:[["ion-input",3,"type","number"],["ion-textarea"],["ion-searchbar"]],hostBindings:function(e,t){1&e&&Xr("ionChange",function(e){return t._handleInputEvent(e.target)})},features:[Ja([{provide:Pf,useExisting:rx,multi:!0}]),vr]}),e})(),lx=(()=>{let e=class{constructor(e,t){this.doc=e,this.backButton=new A,this.keyboardDidShow=new A,this.keyboardDidHide=new A,this.pause=new A,this.resume=new A,this.resize=new A,t.run(()=>{let n;this.win=e.defaultView,this.backButton.subscribeWithPriority=function(e,n){return this.subscribe(i=>i.register(e,e=>t.run(()=>n(e))))},dx(this.pause,e,"pause"),dx(this.resume,e,"resume"),dx(this.backButton,e,"ionBackButton"),dx(this.resize,this.win,"resize"),dx(this.keyboardDidShow,this.win,"ionKeyboardDidShow"),dx(this.keyboardDidHide,this.win,"ionKeyboardDidHide"),this._readyPromise=new Promise(e=>{n=e}),this.win&&this.win.cordova?e.addEventListener("deviceready",()=>{n("cordova")},{once:!0}):n("dom")})}is(e){return Object(I_.a)(this.win,e)}platforms(){return Object(I_.d)(this.win)}ready(){return this._readyPromise}get isRTL(){return"rtl"===this.doc.dir}getQueryParam(e){return cx(this.win.location.href,e)}isLandscape(){return!this.isPortrait()}isPortrait(){return this.win.matchMedia&&this.win.matchMedia("(orientation: portrait)").matches}testUserAgent(e){const t=this.win.navigator;return!!(t&&t.userAgent&&t.userAgent.indexOf(e)>=0)}url(){return this.win.location.href}width(){return this.win.innerWidth}height(){return this.win.innerHeight}};return e.\u0275fac=function(t){return new(t||e)(gi(Hd),gi(ad))},e.\u0275prov=pe({token:e,factory:function(t){return e.\u0275fac(t)},providedIn:"root"}),e.ngInjectableDef=pe({factory:function(){return new e(gi(Hd),gi(ad))},token:e,providedIn:"root"}),e=D_([O_(0,vi(Hd))],e),e})();const cx=(e,t)=>{t=t.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");const n=new RegExp("[\\?&]"+t+"=([^&#]*)").exec(e);return n?decodeURIComponent(n[1].replace(/\+/g," ")):null},dx=(e,t,n)=>{t&&t.addEventListener(n,t=>{e.next(null!=t?t.detail:void 0)})};let ux=(()=>{let e=class{constructor(e,t,n,i){this.location=t,this.serializer=n,this.router=i,this.direction=px,this.animated=gx,this.guessDirection="forward",this.lastNavId=-1,i&&i.events.subscribe(e=>{if(e instanceof Bv){const t=e.restoredState?e.restoredState.navigationId:e.id;this.guessDirection=t<this.lastNavId?"back":"forward",this.guessAnimation=e.restoredState?void 0:this.guessDirection,this.lastNavId="forward"===this.guessDirection?e.id:t}}),e.backButton.subscribeWithPriority(0,e=>{this.pop(),e()})}navigateForward(e,t={}){return this.setDirection("forward",t.animated,t.animationDirection,t.animation),this.navigate(e,t)}navigateBack(e,t={}){return this.setDirection("back",t.animated,t.animationDirection,t.animation),this.navigate(e,t)}navigateRoot(e,t={}){return this.setDirection("root",t.animated,t.animationDirection,t.animation),this.navigate(e,t)}back(e={animated:!0,animationDirection:"back"}){return this.setDirection("back",e.animated,e.animationDirection,e.animation),this.location.back()}pop(){return T_(this,void 0,void 0,function*(){let e=this.topOutlet;for(;e&&!(yield e.pop());)e=e.parentOutlet})}setDirection(e,t,n,i){this.direction=e,this.animated=hx(e,t,n),this.animationBuilder=i}setTopOutlet(e){this.topOutlet=e}consumeTransition(){let e,t="root";const n=this.animationBuilder;return"auto"===this.direction?(t=this.guessDirection,e=this.guessAnimation):(e=this.animated,t=this.direction),this.direction=px,this.animated=gx,this.animationBuilder=void 0,{direction:t,animation:e,animationBuilder:n}}navigate(e,t){if(Array.isArray(e))return this.router.navigate(e,t);{const n=this.serializer.parse(e.toString());return void 0!==t.queryParams&&(n.queryParams=Object.assign({},t.queryParams)),void 0!==t.fragment&&(n.fragment=t.fragment),this.router.navigateByUrl(n,t)}}};return e.\u0275fac=function(t){return new(t||e)(gi(lx),gi(nu),gi(by),gi(r_,8))},e.\u0275prov=pe({token:e,factory:function(t){return e.\u0275fac(t)},providedIn:"root"}),e.ngInjectableDef=pe({factory:function(){return new e(gi(lx),gi(nu),gi(by),gi(r_,8))},token:e,providedIn:"root"}),e=D_([O_(3,yi())],e),e})();const hx=(e,t,n)=>{if(!1!==t)return void 0!==n?n:"forward"===e||"back"===e?e:"root"===e&&!0===t?"forward":void 0},px="auto",gx=void 0,fx=(e,t)=>{const n=e.prototype;t.forEach(e=>{Object.defineProperty(n,e,{get(){return this.el[e]},set(t){this.z.runOutsideAngular(()=>this.el[e]=t)}})})},mx=(e,t)=>{const n=e.prototype;t.forEach(e=>{n[e]=function(){const t=arguments;return this.z.runOutsideAngular(()=>this.el[e].apply(this.el,t))}})},bx=(e,t,n)=>{n.forEach(n=>e[n]=V_(t,n))};function vx(e){return function(t){return e.inputs&&fx(t,e.inputs),e.methods&&mx(t,e.methods),t}}let yx=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e.\u0275fac=function(t){return new(t||e)(zr(Tl),zr(rl),zr(ad))},e.\u0275cmp=$e({type:e,selectors:[["ion-app"]],ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e})(),wx=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e.\u0275fac=function(t){return new(t||e)(zr(Tl),zr(rl),zr(ad))},e.\u0275cmp=$e({type:e,selectors:[["ion-avatar"]],ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e})(),_x=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e.\u0275fac=function(t){return new(t||e)(zr(Tl),zr(rl),zr(ad))},e.\u0275cmp=$e({type:e,selectors:[["ion-back-button"]],inputs:{color:"color",defaultHref:"defaultHref",disabled:"disabled",icon:"icon",mode:"mode",routerAnimation:"routerAnimation",text:"text",type:"type"},ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=D_([vx({inputs:["color","defaultHref","disabled","icon","mode","routerAnimation","text","type"]})],e),e})(),xx=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e.\u0275fac=function(t){return new(t||e)(zr(Tl),zr(rl),zr(ad))},e.\u0275cmp=$e({type:e,selectors:[["ion-badge"]],inputs:{color:"color",mode:"mode"},ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=D_([vx({inputs:["color","mode"]})],e),e})(),Ax=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement,bx(this,this.el,["ionFocus","ionBlur"])}};return e.\u0275fac=function(t){return new(t||e)(zr(Tl),zr(rl),zr(ad))},e.\u0275cmp=$e({type:e,selectors:[["ion-button"]],inputs:{buttonType:"buttonType",color:"color",disabled:"disabled",download:"download",expand:"expand",fill:"fill",href:"href",mode:"mode",rel:"rel",routerAnimation:"routerAnimation",routerDirection:"routerDirection",shape:"shape",size:"size",strong:"strong",target:"target",type:"type"},ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=D_([vx({inputs:["buttonType","color","disabled","download","expand","fill","href","mode","rel","routerAnimation","routerDirection","shape","size","strong","target","type"]})],e),e})(),Cx=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e.\u0275fac=function(t){return new(t||e)(zr(Tl),zr(rl),zr(ad))},e.\u0275cmp=$e({type:e,selectors:[["ion-buttons"]],inputs:{collapse:"collapse"},ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=D_([vx({inputs:["collapse"]})],e),e})(),Sx=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e.\u0275fac=function(t){return new(t||e)(zr(Tl),zr(rl),zr(ad))},e.\u0275cmp=$e({type:e,selectors:[["ion-card"]],inputs:{button:"button",color:"color",disabled:"disabled",download:"download",href:"href",mode:"mode",rel:"rel",routerAnimation:"routerAnimation",routerDirection:"routerDirection",target:"target",type:"type"},ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=D_([vx({inputs:["button","color","disabled","download","href","mode","rel","routerAnimation","routerDirection","target","type"]})],e),e})(),kx=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e.\u0275fac=function(t){return new(t||e)(zr(Tl),zr(rl),zr(ad))},e.\u0275cmp=$e({type:e,selectors:[["ion-card-content"]],inputs:{mode:"mode"},ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=D_([vx({inputs:["mode"]})],e),e})(),Px=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e.\u0275fac=function(t){return new(t||e)(zr(Tl),zr(rl),zr(ad))},e.\u0275cmp=$e({type:e,selectors:[["ion-card-header"]],inputs:{color:"color",mode:"mode",translucent:"translucent"},ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=D_([vx({inputs:["color","mode","translucent"]})],e),e})(),Ex=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e.\u0275fac=function(t){return new(t||e)(zr(Tl),zr(rl),zr(ad))},e.\u0275cmp=$e({type:e,selectors:[["ion-card-subtitle"]],inputs:{color:"color",mode:"mode"},ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=D_([vx({inputs:["color","mode"]})],e),e})(),Dx=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement,bx(this,this.el,["ionChange","ionFocus","ionBlur"])}};return e.\u0275fac=function(t){return new(t||e)(zr(Tl),zr(rl),zr(ad))},e.\u0275cmp=$e({type:e,selectors:[["ion-checkbox"]],inputs:{checked:"checked",color:"color",disabled:"disabled",indeterminate:"indeterminate",mode:"mode",name:"name",value:"value"},ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=D_([vx({inputs:["checked","color","disabled","indeterminate","mode","name","value"]})],e),e})(),Ox=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e.\u0275fac=function(t){return new(t||e)(zr(Tl),zr(rl),zr(ad))},e.\u0275cmp=$e({type:e,selectors:[["ion-chip"]],inputs:{color:"color",disabled:"disabled",mode:"mode",outline:"outline"},ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=D_([vx({inputs:["color","disabled","mode","outline"]})],e),e})(),Mx=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e.\u0275fac=function(t){return new(t||e)(zr(Tl),zr(rl),zr(ad))},e.\u0275cmp=$e({type:e,selectors:[["ion-col"]],inputs:{offset:"offset",offsetLg:"offsetLg",offsetMd:"offsetMd",offsetSm:"offsetSm",offsetXl:"offsetXl",offsetXs:"offsetXs",pull:"pull",pullLg:"pullLg",pullMd:"pullMd",pullSm:"pullSm",pullXl:"pullXl",pullXs:"pullXs",push:"push",pushLg:"pushLg",pushMd:"pushMd",pushSm:"pushSm",pushXl:"pushXl",pushXs:"pushXs",size:"size",sizeLg:"sizeLg",sizeMd:"sizeMd",sizeSm:"sizeSm",sizeXl:"sizeXl",sizeXs:"sizeXs"},ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=D_([vx({inputs:["offset","offsetLg","offsetMd","offsetSm","offsetXl","offsetXs","pull","pullLg","pullMd","pullSm","pullXl","pullXs","push","pushLg","pushMd","pushSm","pushXl","pushXs","size","sizeLg","sizeMd","sizeSm","sizeXl","sizeXs"]})],e),e})(),Tx=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement,bx(this,this.el,["ionScrollStart","ionScroll","ionScrollEnd"])}};return e.\u0275fac=function(t){return new(t||e)(zr(Tl),zr(rl),zr(ad))},e.\u0275cmp=$e({type:e,selectors:[["ion-content"]],inputs:{color:"color",forceOverscroll:"forceOverscroll",fullscreen:"fullscreen",scrollEvents:"scrollEvents",scrollX:"scrollX",scrollY:"scrollY"},ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=D_([vx({inputs:["color","forceOverscroll","fullscreen","scrollEvents","scrollX","scrollY"],methods:["getScrollElement","scrollToTop","scrollToBottom","scrollByPoint","scrollToPoint"]})],e),e})(),Ix=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement,bx(this,this.el,["ionCancel","ionChange","ionFocus","ionBlur"])}};return e.\u0275fac=function(t){return new(t||e)(zr(Tl),zr(rl),zr(ad))},e.\u0275cmp=$e({type:e,selectors:[["ion-datetime"]],inputs:{cancelText:"cancelText",dayNames:"dayNames",dayShortNames:"dayShortNames",dayValues:"dayValues",disabled:"disabled",displayFormat:"displayFormat",displayTimezone:"displayTimezone",doneText:"doneText",hourValues:"hourValues",max:"max",min:"min",minuteValues:"minuteValues",mode:"mode",monthNames:"monthNames",monthShortNames:"monthShortNames",monthValues:"monthValues",name:"name",pickerFormat:"pickerFormat",pickerOptions:"pickerOptions",placeholder:"placeholder",readonly:"readonly",value:"value",yearValues:"yearValues"},ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=D_([vx({inputs:["cancelText","dayNames","dayShortNames","dayValues","disabled","displayFormat","displayTimezone","doneText","hourValues","max","min","minuteValues","mode","monthNames","monthShortNames","monthValues","name","pickerFormat","pickerOptions","placeholder","readonly","value","yearValues"],methods:["open"]})],e),e})(),Rx=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e.\u0275fac=function(t){return new(t||e)(zr(Tl),zr(rl),zr(ad))},e.\u0275cmp=$e({type:e,selectors:[["ion-fab"]],inputs:{activated:"activated",edge:"edge",horizontal:"horizontal",vertical:"vertical"},ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=D_([vx({inputs:["activated","edge","horizontal","vertical"],methods:["close"]})],e),e})(),Lx=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement,bx(this,this.el,["ionFocus","ionBlur"])}};return e.\u0275fac=function(t){return new(t||e)(zr(Tl),zr(rl),zr(ad))},e.\u0275cmp=$e({type:e,selectors:[["ion-fab-button"]],inputs:{activated:"activated",closeIcon:"closeIcon",color:"color",disabled:"disabled",download:"download",href:"href",mode:"mode",rel:"rel",routerAnimation:"routerAnimation",routerDirection:"routerDirection",show:"show",size:"size",target:"target",translucent:"translucent",type:"type"},ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=D_([vx({inputs:["activated","closeIcon","color","disabled","download","href","mode","rel","routerAnimation","routerDirection","show","size","target","translucent","type"]})],e),e})(),Fx=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e.\u0275fac=function(t){return new(t||e)(zr(Tl),zr(rl),zr(ad))},e.\u0275cmp=$e({type:e,selectors:[["ion-fab-list"]],inputs:{activated:"activated",side:"side"},ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=D_([vx({inputs:["activated","side"]})],e),e})(),Bx=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e.\u0275fac=function(t){return new(t||e)(zr(Tl),zr(rl),zr(ad))},e.\u0275cmp=$e({type:e,selectors:[["ion-footer"]],inputs:{mode:"mode",translucent:"translucent"},ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=D_([vx({inputs:["mode","translucent"]})],e),e})(),zx=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e.\u0275fac=function(t){return new(t||e)(zr(Tl),zr(rl),zr(ad))},e.\u0275cmp=$e({type:e,selectors:[["ion-grid"]],inputs:{fixed:"fixed"},ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=D_([vx({inputs:["fixed"]})],e),e})(),Vx=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e.\u0275fac=function(t){return new(t||e)(zr(Tl),zr(rl),zr(ad))},e.\u0275cmp=$e({type:e,selectors:[["ion-header"]],inputs:{collapse:"collapse",mode:"mode",translucent:"translucent"},ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=D_([vx({inputs:["collapse","mode","translucent"]})],e),e})(),Nx=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e.\u0275fac=function(t){return new(t||e)(zr(Tl),zr(rl),zr(ad))},e.\u0275cmp=$e({type:e,selectors:[["ion-icon"]],inputs:{ariaHidden:"ariaHidden",ariaLabel:"ariaLabel",color:"color",flipRtl:"flipRtl",icon:"icon",ios:"ios",lazy:"lazy",md:"md",mode:"mode",name:"name",sanitize:"sanitize",size:"size",src:"src"},ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=D_([vx({inputs:["ariaHidden","ariaLabel","color","flipRtl","icon","ios","lazy","md","mode","name","sanitize","size","src"]})],e),e})(),Hx=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement,bx(this,this.el,["ionImgWillLoad","ionImgDidLoad","ionError"])}};return e.\u0275fac=function(t){return new(t||e)(zr(Tl),zr(rl),zr(ad))},e.\u0275cmp=$e({type:e,selectors:[["ion-img"]],inputs:{alt:"alt",src:"src"},ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=D_([vx({inputs:["alt","src"]})],e),e})(),jx=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement,bx(this,this.el,["ionInfinite"])}};return e.\u0275fac=function(t){return new(t||e)(zr(Tl),zr(rl),zr(ad))},e.\u0275cmp=$e({type:e,selectors:[["ion-infinite-scroll"]],inputs:{disabled:"disabled",position:"position",threshold:"threshold"},ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=D_([vx({inputs:["disabled","position","threshold"],methods:["complete"]})],e),e})(),Ux=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e.\u0275fac=function(t){return new(t||e)(zr(Tl),zr(rl),zr(ad))},e.\u0275cmp=$e({type:e,selectors:[["ion-infinite-scroll-content"]],inputs:{loadingSpinner:"loadingSpinner",loadingText:"loadingText"},ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=D_([vx({inputs:["loadingSpinner","loadingText"]})],e),e})(),Wx=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement,bx(this,this.el,["ionInput","ionChange","ionBlur","ionFocus"])}};return e.\u0275fac=function(t){return new(t||e)(zr(Tl),zr(rl),zr(ad))},e.\u0275cmp=$e({type:e,selectors:[["ion-input"]],inputs:{accept:"accept",autocapitalize:"autocapitalize",autocomplete:"autocomplete",autocorrect:"autocorrect",autofocus:"autofocus",clearInput:"clearInput",clearOnEdit:"clearOnEdit",color:"color",debounce:"debounce",disabled:"disabled",enterkeyhint:"enterkeyhint",inputmode:"inputmode",max:"max",maxlength:"maxlength",min:"min",minlength:"minlength",mode:"mode",multiple:"multiple",name:"name",pattern:"pattern",placeholder:"placeholder",readonly:"readonly",required:"required",size:"size",spellcheck:"spellcheck",step:"step",type:"type",value:"value"},ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=D_([vx({inputs:["accept","autocapitalize","autocomplete","autocorrect","autofocus","clearInput","clearOnEdit","color","debounce","disabled","enterkeyhint","inputmode","max","maxlength","min","minlength","mode","multiple","name","pattern","placeholder","readonly","required","size","spellcheck","step","type","value"],methods:["setFocus","getInputElement"]})],e),e})(),Gx=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e.\u0275fac=function(t){return new(t||e)(zr(Tl),zr(rl),zr(ad))},e.\u0275cmp=$e({type:e,selectors:[["ion-item"]],inputs:{button:"button",color:"color",detail:"detail",detailIcon:"detailIcon",disabled:"disabled",download:"download",href:"href",lines:"lines",mode:"mode",rel:"rel",routerAnimation:"routerAnimation",routerDirection:"routerDirection",target:"target",type:"type"},ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=D_([vx({inputs:["button","color","detail","detailIcon","disabled","download","href","lines","mode","rel","routerAnimation","routerDirection","target","type"]})],e),e})(),$x=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e.\u0275fac=function(t){return new(t||e)(zr(Tl),zr(rl),zr(ad))},e.\u0275cmp=$e({type:e,selectors:[["ion-item-option"]],inputs:{color:"color",disabled:"disabled",download:"download",expandable:"expandable",href:"href",mode:"mode",rel:"rel",target:"target",type:"type"},ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=D_([vx({inputs:["color","disabled","download","expandable","href","mode","rel","target","type"]})],e),e})(),qx=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement,bx(this,this.el,["ionSwipe"])}};return e.\u0275fac=function(t){return new(t||e)(zr(Tl),zr(rl),zr(ad))},e.\u0275cmp=$e({type:e,selectors:[["ion-item-options"]],inputs:{side:"side"},ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=D_([vx({inputs:["side"]})],e),e})(),Yx=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement,bx(this,this.el,["ionDrag"])}};return e.\u0275fac=function(t){return new(t||e)(zr(Tl),zr(rl),zr(ad))},e.\u0275cmp=$e({type:e,selectors:[["ion-item-sliding"]],inputs:{disabled:"disabled"},ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=D_([vx({inputs:["disabled"],methods:["getOpenAmount","getSlidingRatio","open","close","closeOpened"]})],e),e})(),Zx=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e.\u0275fac=function(t){return new(t||e)(zr(Tl),zr(rl),zr(ad))},e.\u0275cmp=$e({type:e,selectors:[["ion-label"]],inputs:{color:"color",mode:"mode",position:"position"},ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=D_([vx({inputs:["color","mode","position"]})],e),e})(),Qx=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e.\u0275fac=function(t){return new(t||e)(zr(Tl),zr(rl),zr(ad))},e.\u0275cmp=$e({type:e,selectors:[["ion-list"]],inputs:{inset:"inset",lines:"lines",mode:"mode"},ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=D_([vx({inputs:["inset","lines","mode"],methods:["closeSlidingItems"]})],e),e})(),Xx=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e.\u0275fac=function(t){return new(t||e)(zr(Tl),zr(rl),zr(ad))},e.\u0275cmp=$e({type:e,selectors:[["ion-list-header"]],inputs:{color:"color",lines:"lines",mode:"mode"},ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=D_([vx({inputs:["color","lines","mode"]})],e),e})(),Kx=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement,bx(this,this.el,["ionWillOpen","ionWillClose","ionDidOpen","ionDidClose"])}};return e.\u0275fac=function(t){return new(t||e)(zr(Tl),zr(rl),zr(ad))},e.\u0275cmp=$e({type:e,selectors:[["ion-menu"]],inputs:{contentId:"contentId",disabled:"disabled",maxEdgeStart:"maxEdgeStart",menuId:"menuId",side:"side",swipeGesture:"swipeGesture",type:"type"},ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=D_([vx({inputs:["contentId","disabled","maxEdgeStart","menuId","side","swipeGesture","type"],methods:["isOpen","isActive","open","close","toggle","setOpen"]})],e),e})(),Jx=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e.\u0275fac=function(t){return new(t||e)(zr(Tl),zr(rl),zr(ad))},e.\u0275cmp=$e({type:e,selectors:[["ion-menu-button"]],inputs:{autoHide:"autoHide",color:"color",disabled:"disabled",menu:"menu",mode:"mode",type:"type"},ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=D_([vx({inputs:["autoHide","color","disabled","menu","mode","type"]})],e),e})(),eA=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e.\u0275fac=function(t){return new(t||e)(zr(Tl),zr(rl),zr(ad))},e.\u0275cmp=$e({type:e,selectors:[["ion-menu-toggle"]],inputs:{autoHide:"autoHide",menu:"menu"},ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=D_([vx({inputs:["autoHide","menu"]})],e),e})(),tA=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e.\u0275fac=function(t){return new(t||e)(zr(Tl),zr(rl),zr(ad))},e.\u0275cmp=$e({type:e,selectors:[["ion-note"]],inputs:{color:"color",mode:"mode"},ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=D_([vx({inputs:["color","mode"]})],e),e})(),nA=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement,bx(this,this.el,["ionFocus","ionBlur"])}};return e.\u0275fac=function(t){return new(t||e)(zr(Tl),zr(rl),zr(ad))},e.\u0275cmp=$e({type:e,selectors:[["ion-radio"]],inputs:{color:"color",disabled:"disabled",mode:"mode",name:"name",value:"value"},ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=D_([vx({inputs:["color","disabled","mode","name","value"]})],e),e})(),iA=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement,bx(this,this.el,["ionChange"])}};return e.\u0275fac=function(t){return new(t||e)(zr(Tl),zr(rl),zr(ad))},e.\u0275cmp=$e({type:e,selectors:[["ion-radio-group"]],inputs:{allowEmptySelection:"allowEmptySelection",name:"name",value:"value"},ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=D_([vx({inputs:["allowEmptySelection","name","value"]})],e),e})(),sA=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement,bx(this,this.el,["ionChange","ionFocus","ionBlur"])}};return e.\u0275fac=function(t){return new(t||e)(zr(Tl),zr(rl),zr(ad))},e.\u0275cmp=$e({type:e,selectors:[["ion-range"]],inputs:{color:"color",debounce:"debounce",disabled:"disabled",dualKnobs:"dualKnobs",max:"max",min:"min",mode:"mode",name:"name",pin:"pin",snaps:"snaps",step:"step",ticks:"ticks",value:"value"},ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=D_([vx({inputs:["color","debounce","disabled","dualKnobs","max","min","mode","name","pin","snaps","step","ticks","value"]})],e),e})(),oA=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e.\u0275fac=function(t){return new(t||e)(zr(Tl),zr(rl),zr(ad))},e.\u0275cmp=$e({type:e,selectors:[["ion-reorder"]],ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e})(),rA=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement,bx(this,this.el,["ionItemReorder"])}};return e.\u0275fac=function(t){return new(t||e)(zr(Tl),zr(rl),zr(ad))},e.\u0275cmp=$e({type:e,selectors:[["ion-reorder-group"]],inputs:{disabled:"disabled"},ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=D_([vx({inputs:["disabled"],methods:["complete"]})],e),e})(),aA=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e.\u0275fac=function(t){return new(t||e)(zr(Tl),zr(rl),zr(ad))},e.\u0275cmp=$e({type:e,selectors:[["ion-row"]],ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e})(),lA=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement,bx(this,this.el,["ionInput","ionChange","ionCancel","ionClear","ionBlur","ionFocus"])}};return e.\u0275fac=function(t){return new(t||e)(zr(Tl),zr(rl),zr(ad))},e.\u0275cmp=$e({type:e,selectors:[["ion-searchbar"]],inputs:{animated:"animated",autocomplete:"autocomplete",autocorrect:"autocorrect",cancelButtonIcon:"cancelButtonIcon",cancelButtonText:"cancelButtonText",clearIcon:"clearIcon",color:"color",debounce:"debounce",disabled:"disabled",enterkeyhint:"enterkeyhint",inputmode:"inputmode",mode:"mode",placeholder:"placeholder",searchIcon:"searchIcon",showCancelButton:"showCancelButton",showClearButton:"showClearButton",spellcheck:"spellcheck",type:"type",value:"value"},ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=D_([vx({inputs:["animated","autocomplete","autocorrect","cancelButtonIcon","cancelButtonText","clearIcon","color","debounce","disabled","enterkeyhint","inputmode","mode","placeholder","searchIcon","showCancelButton","showClearButton","spellcheck","type","value"],methods:["setFocus","getInputElement"]})],e),e})(),cA=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement,bx(this,this.el,["ionChange"])}};return e.\u0275fac=function(t){return new(t||e)(zr(Tl),zr(rl),zr(ad))},e.\u0275cmp=$e({type:e,selectors:[["ion-segment"]],inputs:{color:"color",disabled:"disabled",mode:"mode",scrollable:"scrollable",swipeGesture:"swipeGesture",value:"value"},ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=D_([vx({inputs:["color","disabled","mode","scrollable","swipeGesture","value"]})],e),e})(),dA=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e.\u0275fac=function(t){return new(t||e)(zr(Tl),zr(rl),zr(ad))},e.\u0275cmp=$e({type:e,selectors:[["ion-segment-button"]],inputs:{disabled:"disabled",layout:"layout",mode:"mode",type:"type",value:"value"},ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=D_([vx({inputs:["disabled","layout","mode","type","value"]})],e),e})(),uA=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement,bx(this,this.el,["ionChange","ionCancel","ionFocus","ionBlur"])}};return e.\u0275fac=function(t){return new(t||e)(zr(Tl),zr(rl),zr(ad))},e.\u0275cmp=$e({type:e,selectors:[["ion-select"]],inputs:{cancelText:"cancelText",compareWith:"compareWith",disabled:"disabled",interface:"interface",interfaceOptions:"interfaceOptions",mode:"mode",multiple:"multiple",name:"name",okText:"okText",placeholder:"placeholder",selectedText:"selectedText",value:"value"},ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=D_([vx({inputs:["cancelText","compareWith","disabled","interface","interfaceOptions","mode","multiple","name","okText","placeholder","selectedText","value"],methods:["open"]})],e),e})(),hA=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e.\u0275fac=function(t){return new(t||e)(zr(Tl),zr(rl),zr(ad))},e.\u0275cmp=$e({type:e,selectors:[["ion-select-option"]],inputs:{disabled:"disabled",value:"value"},ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=D_([vx({inputs:["disabled","value"]})],e),e})(),pA=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e.\u0275fac=function(t){return new(t||e)(zr(Tl),zr(rl),zr(ad))},e.\u0275cmp=$e({type:e,selectors:[["ion-slide"]],ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e})(),gA=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement,bx(this,this.el,["ionSlidesDidLoad","ionSlideTap","ionSlideDoubleTap","ionSlideWillChange","ionSlideDidChange","ionSlideNextStart","ionSlidePrevStart","ionSlideNextEnd","ionSlidePrevEnd","ionSlideTransitionStart","ionSlideTransitionEnd","ionSlideDrag","ionSlideReachStart","ionSlideReachEnd","ionSlideTouchStart","ionSlideTouchEnd"])}};return e.\u0275fac=function(t){return new(t||e)(zr(Tl),zr(rl),zr(ad))},e.\u0275cmp=$e({type:e,selectors:[["ion-slides"]],inputs:{mode:"mode",options:"options",pager:"pager",scrollbar:"scrollbar"},ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=D_([vx({inputs:["mode","options","pager","scrollbar"],methods:["update","updateAutoHeight","slideTo","slideNext","slidePrev","getActiveIndex","getPreviousIndex","length","isEnd","isBeginning","startAutoplay","stopAutoplay","lockSwipeToNext","lockSwipeToPrev","lockSwipes","getSwiper"]})],e),e})(),fA=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement,bx(this,this.el,["ionSplitPaneVisible"])}};return e.\u0275fac=function(t){return new(t||e)(zr(Tl),zr(rl),zr(ad))},e.\u0275cmp=$e({type:e,selectors:[["ion-split-pane"]],inputs:{contentId:"contentId",disabled:"disabled",when:"when"},ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=D_([vx({inputs:["contentId","disabled","when"]})],e),e})(),mA=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e.\u0275fac=function(t){return new(t||e)(zr(Tl),zr(rl),zr(ad))},e.\u0275cmp=$e({type:e,selectors:[["ion-title"]],inputs:{color:"color",size:"size"},ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=D_([vx({inputs:["color","size"]})],e),e})(),bA=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement,bx(this,this.el,["ionChange","ionFocus","ionBlur"])}};return e.\u0275fac=function(t){return new(t||e)(zr(Tl),zr(rl),zr(ad))},e.\u0275cmp=$e({type:e,selectors:[["ion-toggle"]],inputs:{checked:"checked",color:"color",disabled:"disabled",mode:"mode",name:"name",value:"value"},ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=D_([vx({inputs:["checked","color","disabled","mode","name","value"]})],e),e})(),vA=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e.\u0275fac=function(t){return new(t||e)(zr(Tl),zr(rl),zr(ad))},e.\u0275cmp=$e({type:e,selectors:[["ion-toolbar"]],inputs:{color:"color",mode:"mode"},ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=D_([vx({inputs:["color","mode"]})],e),e})(),yA=(()=>{let e=class{get(e,t){const n=_A();return n?n.get(e,t):null}getBoolean(e,t){const n=_A();return!!n&&n.getBoolean(e,t)}getNumber(e,t){const n=_A();return n?n.getNumber(e,t):0}set(e,t){console.warn("[DEPRECATION][Config]: The Config.set() method is deprecated and will be removed in Ionic Framework 6.0. Please see https://ionicframework.com/docs/angular/config for alternatives.");const n=_A();n&&n.set(e,t)}};return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=pe({token:e,factory:function(t){return e.\u0275fac(t)},providedIn:"root"}),e.ngInjectableDef=pe({factory:function(){return new e},token:e,providedIn:"root"}),e})();const wA=new Xn("USERCONFIG"),_A=()=>{if("undefined"!=typeof window){const e=window.Ionic;if(e&&e.config)return e.config}return null};class xA{constructor(e={}){this.data=e}get(e){return this.data[e]}}let AA=(()=>{let e=class{constructor(e,t){this.zone=e,this.appRef=t}create(e,t,n){return new CA(e,t,n,this.appRef,this.zone)}};return e.\u0275fac=function(t){return new(t||e)(gi(ad),gi(Ed))},e.\u0275prov=pe({token:e,factory:function(t){return e.\u0275fac(t)}}),e})();class CA{constructor(e,t,n,i,s){this.resolver=e,this.injector=t,this.location=n,this.appRef=i,this.zone=s,this.elRefMap=new WeakMap,this.elEventsMap=new WeakMap}attachViewToDom(e,t,n,i){return this.zone.run(()=>new Promise(s=>{s(SA(this.zone,this.resolver,this.injector,this.location,this.appRef,this.elRefMap,this.elEventsMap,e,t,n,i))}))}removeViewFromDom(e,t){return this.zone.run(()=>new Promise(e=>{const n=this.elRefMap.get(t);if(n){n.destroy(),this.elRefMap.delete(t);const e=this.elEventsMap.get(t);e&&(e(),this.elEventsMap.delete(t))}e()}))}}const SA=(e,t,n,i,s,o,r,a,l,c,d)=>{const u=t.resolveComponentFactory(l),h=mr.create({providers:DA(c),parent:n}),p=i?i.createComponent(u,i.length,h):u.create(h),g=p.instance,f=p.location.nativeElement;if(c&&Object.assign(g,c),d)for(const b of d)f.classList.add(b);const m=PA(e,g,f);return a.appendChild(f),i||s.attachView(p.hostView),p.changeDetectorRef.reattach(),o.set(f,p),r.set(f,m),f},kA=[L_.a,L_.b,L_.c,L_.d,L_.e],PA=(e,t,n)=>e.run(()=>{const e=kA.filter(e=>"function"==typeof t[e]).map(e=>{const i=n=>t[e](n.detail);return n.addEventListener(e,i),()=>n.removeEventListener(e,i)});return()=>e.forEach(e=>e())}),EA=new Xn("NavParamsToken"),DA=e=>[{provide:EA,useValue:e},{provide:xA,useFactory:OA,deps:[EA]}],OA=e=>new xA(e),MA=(e,t)=>((e=e.filter(e=>e.stackId!==t.stackId)).push(t),e),TA=(e,t)=>{const n=e.createUrlTree(["."],{relativeTo:t});return e.serializeUrl(n)},IA=(e,t)=>{if(!e)return;const n=RA(t);for(let i=0;i<n.length;i++){if(i>=e.length)return n[i];if(n[i]!==e[i])return}},RA=e=>e.split("/").map(e=>e.trim()).filter(e=>""!==e),LA=e=>{e&&(e.ref.destroy(),e.unlistenEvents())};class FA{constructor(e,t,n,i,s,o){this.containerEl=t,this.router=n,this.navCtrl=i,this.zone=s,this.location=o,this.views=[],this.skipTransition=!1,this.nextId=0,this.tabsPrefix=void 0!==e?RA(e):void 0}createView(e,t){const n=TA(this.router,t),i=e&&e.location&&e.location.nativeElement,s=PA(this.zone,e.instance,i);return{id:this.nextId++,stackId:IA(this.tabsPrefix,n),unlistenEvents:s,element:i,ref:e,url:n}}getExistingView(e){const t=TA(this.router,e),n=this.views.find(e=>e.url===t);return n&&n.ref.changeDetectorRef.reattach(),n}setActive(e){const t=this.navCtrl.consumeTransition();let{direction:n,animation:i,animationBuilder:s}=t;const o=this.activeView,r=((e,t)=>!t||e.stackId!==t.stackId)(e,o);r&&(n="back",i=void 0);const a=this.views.slice();let l;const c=this.router;c.getCurrentNavigation?l=c.getCurrentNavigation():c.navigations&&c.navigations.value&&(l=c.navigations.value),l&&l.extras&&l.extras.replaceUrl&&this.views.length>0&&this.views.splice(-1,1);const d=this.views.includes(e),u=this.insertView(e,n);d||e.ref.changeDetectorRef.detectChanges();const h=e.animationBuilder;return void 0!==s||"back"!==n||r||void 0===h||(s=h),o&&(o.animationBuilder=s),this.zone.runOutsideAngular(()=>this.wait(()=>(o&&o.ref.changeDetectorRef.detach(),e.ref.changeDetectorRef.reattach(),this.transition(e,o,i,this.canGoBack(1),!1,s).then(()=>BA(e,u,a,this.location)).then(()=>({enteringView:e,direction:n,animation:i,tabSwitch:r})))))}canGoBack(e,t=this.getActiveStackId()){return this.getStack(t).length>e}pop(e,t=this.getActiveStackId()){return this.zone.run(()=>{const n=this.getStack(t);if(n.length<=e)return Promise.resolve(!1);const i=n[n.length-e-1];let s=i.url;const o=i.savedData;if(o){const e=o.get("primary");e&&e.route&&e.route._routerState&&e.route._routerState.snapshot&&e.route._routerState.snapshot.url&&(s=e.route._routerState.snapshot.url)}const{animationBuilder:r}=this.navCtrl.consumeTransition();return this.navCtrl.navigateBack(s,Object.assign({},i.savedExtras,{animation:r})).then(()=>!0)})}startBackTransition(){const e=this.activeView;if(e){const t=this.getStack(e.stackId),n=t[t.length-2],i=n.animationBuilder;return this.wait(()=>this.transition(n,e,"back",this.canGoBack(2),!0,i))}return Promise.resolve()}endBackTransition(e){e?(this.skipTransition=!0,this.pop(1)):this.activeView&&zA(this.activeView,this.views,this.views,this.location)}getLastUrl(e){const t=this.getStack(e);return t.length>0?t[t.length-1]:void 0}getRootUrl(e){const t=this.getStack(e);return t.length>0?t[0]:void 0}getActiveStackId(){return this.activeView?this.activeView.stackId:void 0}destroy(){this.containerEl=void 0,this.views.forEach(LA),this.activeView=void 0,this.views=[]}getStack(e){return this.views.filter(t=>t.stackId===e)}insertView(e,t){return this.activeView=e,this.views=((e,t,n)=>"root"===n?MA(e,t):"forward"===n?((e,t)=>(e.indexOf(t)>=0?e=e.filter(e=>e.stackId!==t.stackId||e.id<=t.id):e.push(t),e))(e,t):((e,t)=>e.indexOf(t)>=0?e.filter(e=>e.stackId!==t.stackId||e.id<=t.id):MA(e,t))(e,t))(this.views,e,t),this.views.slice()}transition(e,t,n,i,s,o){if(this.skipTransition)return this.skipTransition=!1,Promise.resolve(!1);if(t===e)return Promise.resolve(!1);const r=e?e.element:void 0,a=t?t.element:void 0,l=this.containerEl;return r&&r!==a&&(r.classList.add("ion-page"),r.classList.add("ion-page-invisible"),r.parentElement!==l&&l.appendChild(r),l.commit)?l.commit(r,a,{deepWait:!0,duration:void 0===n?0:void 0,direction:n,showGoBack:i,progressAnimation:s,animationBuilder:o}):Promise.resolve(!1)}wait(e){return T_(this,void 0,void 0,function*(){return void 0!==this.runningTask&&(yield this.runningTask,this.runningTask=void 0),this.runningTask=e()})}}const BA=(e,t,n,i)=>"function"==typeof requestAnimationFrame?new Promise(s=>{requestAnimationFrame(()=>{zA(e,t,n,i),s()})}):Promise.resolve(),zA=(e,t,n,i)=>{n.filter(e=>!t.includes(e)).forEach(LA),t.forEach(t=>{const n=i.path().split("?")[0].split("#")[0];if(t!==e&&t.url!==n){const e=t.element;e.setAttribute("aria-hidden","true"),e.classList.add("ion-page-hidden"),t.ref.changeDetectorRef.detach()}})};let VA=(()=>{let e=class{constructor(e,t,n,i,s,o,r,a,l,c,d,u,h){this.parentContexts=e,this.location=t,this.resolver=n,this.config=o,this.navCtrl=r,this.parentOutlet=h,this.activated=null,this.activatedView=null,this._activatedRoute=null,this.proxyMap=new WeakMap,this.currentActivatedRoute$=new Gb(null),this.stackEvents=new yc,this.activateEvents=new yc,this.deactivateEvents=new yc,this.nativeEl=l.nativeElement,this.name=i||"primary",this.tabsPrefix="true"===s?TA(c,u):void 0,this.stackCtrl=new FA(this.tabsPrefix,this.nativeEl,c,r,d,a),e.onChildOutletCreated(this.name,this)}set animation(e){this.nativeEl.animation=e}set animated(e){this.nativeEl.animated=e}set swipeGesture(e){this._swipeGesture=e,this.nativeEl.swipeHandler=e?{canStart:()=>this.stackCtrl.canGoBack(1),onStart:()=>this.stackCtrl.startBackTransition(),onEnd:e=>this.stackCtrl.endBackTransition(e)}:void 0}ngOnDestroy(){this.stackCtrl.destroy()}getContext(){return this.parentContexts.getContext(this.name)}ngOnInit(){if(!this.activated){const e=this.getContext();e&&e.route&&this.activateWith(e.route,e.resolver||null)}new Promise(e=>Object(R_.c)(this.nativeEl,e)).then(()=>{void 0===this._swipeGesture&&(this.swipeGesture=this.config.getBoolean("swipeBackEnabled","ios"===this.nativeEl.mode))})}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){throw new Error("incompatible reuse strategy")}attach(e,t){throw new Error("incompatible reuse strategy")}deactivate(){if(this.activated){if(this.activatedView){this.activatedView.savedData=new Map(this.getContext().children.contexts),this.activatedView.savedExtras={};const e=this.getContext();if(e.route){const t=e.route.snapshot;this.activatedView.savedExtras.queryParams=t.queryParams,this.activatedView.savedExtras.fragment=t.fragment}}const e=this.component;this.activatedView=null,this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,t){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");let n;this._activatedRoute=e;let i=this.stackCtrl.getExistingView(e);if(i){n=this.activated=i.ref;const t=i.savedData;t&&(this.getContext().children.contexts=t),this.updateActivatedRouteProxy(n.instance,e)}else{const s=(t=t||this.resolver).resolveComponentFactory(e._futureSnapshot.routeConfig.component),o=this.parentContexts.getOrCreateContext(this.name).children,r=new Gb(null),a=this.createActivatedRouteProxy(r,e),l=new NA(a,o,this.location.injector);n=this.activated=this.location.createComponent(s,this.location.length,l),r.next(n.instance),i=this.stackCtrl.createView(this.activated,e),this.proxyMap.set(n.instance,a),this.currentActivatedRoute$.next({component:n.instance,activatedRoute:e})}this.activatedView=i,this.stackCtrl.setActive(i).then(e=>{this.navCtrl.setTopOutlet(this),this.activateEvents.emit(n.instance),this.stackEvents.emit(e)})}canGoBack(e=1,t){return this.stackCtrl.canGoBack(e,t)}pop(e=1,t){return this.stackCtrl.pop(e,t)}getLastUrl(e){const t=this.stackCtrl.getLastUrl(e);return t?t.url:void 0}getLastRouteView(e){return this.stackCtrl.getLastUrl(e)}getRootView(e){return this.stackCtrl.getRootUrl(e)}getActiveStackId(){return this.stackCtrl.getActiveStackId()}createActivatedRouteProxy(e,t){const n=new Ny;return n._futureSnapshot=t._futureSnapshot,n._routerState=t._routerState,n.snapshot=t.snapshot,n.outlet=t.outlet,n.component=t.component,n._paramMap=this.proxyObservable(e,"paramMap"),n._queryParamMap=this.proxyObservable(e,"queryParamMap"),n.url=this.proxyObservable(e,"url"),n.params=this.proxyObservable(e,"params"),n.queryParams=this.proxyObservable(e,"queryParams"),n.fragment=this.proxyObservable(e,"fragment"),n.data=this.proxyObservable(e,"data"),n}proxyObservable(e,t){return e.pipe(db(e=>!!e),sv(e=>this.currentActivatedRoute$.pipe(db(t=>null!==t&&t.component===e),sv(e=>e&&e.activatedRoute[t]),H_())))}updateActivatedRouteProxy(e,t){const n=this.proxyMap.get(e);if(!n)throw new Error("Could not find activated route proxy for view");n._futureSnapshot=t._futureSnapshot,n._routerState=t._routerState,n.snapshot=t.snapshot,n.outlet=t.outlet,n.component=t.component,this.currentActivatedRoute$.next({component:e,activatedRoute:t})}};return e.\u0275fac=function(t){return new(t||e)(zr(t_),zr(Gl),zr(nl),Yn("name"),Yn("tabs"),zr(yA),zr(ux),zr(nu),zr(rl),zr(r_),zr(ad),zr(Ny),zr(e,12))},e.\u0275dir=Ke({type:e,selectors:[["ion-router-outlet"]],inputs:{animated:"animated",animation:"animation",swipeGesture:"swipeGesture"},outputs:{stackEvents:"stackEvents",activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),e=D_([O_(3,Qn("name")),O_(4,yi()),O_(4,Qn("tabs")),O_(12,wi()),O_(12,yi())],e),e})();class NA{constructor(e,t,n){this.route=e,this.childContexts=t,this.parent=n}get(e,t){return e===Ny?this.route:e===t_?this.childContexts:this.parent.get(e,t)}}let HA=(()=>{let e=class{constructor(e,t,n){this.routerOutlet=e,this.navCtrl=t,this.config=n}onClick(e){const t=this.defaultHref||this.config.get("backButtonDefaultHref");this.routerOutlet&&this.routerOutlet.canGoBack()?(this.navCtrl.setDirection("back",void 0,void 0,this.routerAnimation),this.routerOutlet.pop(),e.preventDefault()):null!=t&&(this.navCtrl.navigateBack(t,{animation:this.routerAnimation}),e.preventDefault())}};return e.\u0275fac=function(t){return new(t||e)(zr(VA,8),zr(ux),zr(yA))},e.\u0275dir=Ke({type:e,selectors:[["ion-back-button"]],hostBindings:function(e,t){1&e&&Xr("click",function(e){return t.onClick(e)})},inputs:{defaultHref:"defaultHref",routerAnimation:"routerAnimation"}}),e=D_([O_(0,yi())],e),e})(),jA=(()=>{let e=class{constructor(e,t,n,i,s){this.locationStrategy=e,this.navCtrl=t,this.elementRef=n,this.router=i,this.routerLink=s,this.routerDirection="forward"}ngOnInit(){this.updateTargetUrlAndHref()}ngOnChanges(){this.updateTargetUrlAndHref()}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}updateTargetUrlAndHref(){if(this.routerLink){const e=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.routerLink.urlTree));this.elementRef.nativeElement.href=e}}onClick(e){this.navCtrl.setDirection(this.routerDirection,void 0,void 0,this.routerAnimation),e.preventDefault()}};return e.\u0275fac=function(t){return new(t||e)(zr(Xd),zr(ux),zr(rl),zr(r_),zr(a_,8))},e.\u0275dir=Ke({type:e,selectors:[["","routerLink",""]],hostBindings:function(e,t){1&e&&Xr("click",function(e){return t.onClick(e)})},inputs:{routerDirection:"routerDirection",routerAnimation:"routerAnimation"},features:[dt]}),e=D_([O_(4,yi())],e),e})(),UA=(()=>{let e=class{constructor(e){this.templateRef=e}};return e.\u0275fac=function(t){return new(t||e)(zr(zl))},e.\u0275dir=Ke({type:e,selectors:[["","virtualFooter",""]]}),e})(),WA=(()=>{let e=class{constructor(e){this.templateRef=e}};return e.\u0275fac=function(t){return new(t||e)(zr(zl))},e.\u0275dir=Ke({type:e,selectors:[["","virtualHeader",""]]}),e})(),GA=(()=>{let e=class{constructor(e,t){this.templateRef=e,this.viewContainer=t}};return e.\u0275fac=function(t){return new(t||e)(zr(zl),zr(Gl))},e.\u0275dir=Ke({type:e,selectors:[["","virtualItem",""]]}),e})(),$A=(()=>{let e=class{constructor(e,t,n){this.z=e,this.iterableDiffers=t,this.refMap=new WeakMap,this.el=n.nativeElement,this.el.nodeRender=this.nodeRender.bind(this)}ngOnChanges(e){if(this.trackBy&&"items"in e){const n=e.items.currentValue;if(void 0===this.differ&&null!=n)try{this.differ=this.iterableDiffers.find(n).create(this.trackBy)}catch(t){throw new Error(`Cannot find a differ supporting object '${n}'. VirtualScroll only supports binding to Iterables such as Arrays.`)}}}ngDoCheck(){null!==(void 0!==this.differ&&this.items?this.differ.diff(this.items):null)&&this.checkRange(0)}nodeRender(e,t,n){return this.z.run(()=>{let i;if(e){i=this.refMap.get(e);const n=i.context;n.$implicit=t.value,n.index=t.index}else i=this.itmTmp.viewContainer.createEmbeddedView(this.getComponent(t.type),{$implicit:t.value,index:n},n),e=qA(i),this.refMap.set(e,i);return i.detectChanges(),e})}getComponent(e){switch(e){case"item":return this.itmTmp.templateRef;case"header":return this.hdrTmp.templateRef;case"footer":return this.ftrTmp.templateRef}throw new Error("template for virtual item was not provided")}};return e.\u0275fac=function(t){return new(t||e)(zr(ad),zr(Sl),zr(rl))},e.\u0275cmp=$e({type:e,selectors:[["ion-virtual-scroll"]],contentQueries:function(e,t,n){if(1&e&&(Ic(n,GA,1),Ic(n,WA,1),Ic(n,UA,1)),2&e){let e;Mc(e=Rc())&&(t.itmTmp=e.first),Mc(e=Rc())&&(t.hdrTmp=e.first),Mc(e=Rc())&&(t.ftrTmp=e.first)}},inputs:{approxItemHeight:"approxItemHeight",approxHeaderHeight:"approxHeaderHeight",approxFooterHeight:"approxFooterHeight",headerFn:"headerFn",footerFn:"footerFn",items:"items",itemHeight:"itemHeight",headerHeight:"headerHeight",footerHeight:"footerHeight",trackBy:"trackBy"},features:[dt],ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=D_([vx({inputs:["approxItemHeight","approxHeaderHeight","approxFooterHeight","headerFn","footerFn","items","itemHeight","headerHeight","footerHeight"],methods:["checkEnd","checkRange","positionForItem"]})],e),e})();const qA=e=>{const t=e.rootNodes;for(let n=0;n<t.length;n++)if(1===t[n].nodeType)return t[n];throw new Error("virtual element was not created")};class YA{constructor(e){this.ctrl=e}create(e){return this.ctrl.create(e||{})}dismiss(e,t,n){return this.ctrl.dismiss(e,t,n)}getTop(){return this.ctrl.getTop()}}let ZA=(()=>{let e=class extends YA{constructor(){super(B_.c)}};return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=pe({token:e,factory:function(t){return e.\u0275fac(t)},providedIn:"root"}),e.ngInjectableDef=pe({factory:function(){return new e},token:e,providedIn:"root"}),e})(),QA=(()=>{let e=class extends YA{constructor(){super(B_.b)}};return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=pe({token:e,factory:function(t){return e.\u0275fac(t)},providedIn:"root"}),e.ngInjectableDef=pe({factory:function(){return new e},token:e,providedIn:"root"}),e})(),XA=(()=>{let e=class extends YA{constructor(){super(B_.k)}};return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=pe({token:e,factory:function(t){return e.\u0275fac(t)},providedIn:"root"}),e.ngInjectableDef=pe({factory:function(){return new e},token:e,providedIn:"root"}),e})(),KA=(()=>{let e=class{open(e){return F_.a.open(e)}close(e){return F_.a.close(e)}toggle(e){return F_.a.toggle(e)}enable(e,t){return F_.a.enable(e,t)}swipeGesture(e,t){return F_.a.swipeGesture(e,t)}isOpen(e){return F_.a.isOpen(e)}isEnabled(e){return F_.a.isEnabled(e)}get(e){return F_.a.get(e)}getOpen(){return F_.a.getOpen()}getMenus(){return F_.a.getMenus()}};return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=pe({token:e,factory:function(t){return e.\u0275fac(t)},providedIn:"root"}),e.ngInjectableDef=pe({factory:function(){return new e},token:e,providedIn:"root"}),e})(),JA=(()=>{let e=class extends YA{constructor(e,t,n){super(B_.l),this.angularDelegate=e,this.resolver=t,this.injector=n}create(e){return super.create(Object.assign({},e,{delegate:this.angularDelegate.create(this.resolver,this.injector)}))}};return e.\u0275fac=function(t){return new(t||e)(gi(AA),gi(nl),gi(mr))},e.\u0275prov=pe({token:e,factory:function(t){return e.\u0275fac(t)}}),e})(),eC=(()=>{let e=class extends YA{constructor(e,t,n){super(B_.d),this.angularDelegate=e,this.resolver=t,this.injector=n}create(e){return super.create(Object.assign({},e,{delegate:this.angularDelegate.create(this.resolver,this.injector)}))}};return e.\u0275fac=function(t){return new(t||e)(gi(AA),gi(nl),gi(mr))},e.\u0275prov=pe({token:e,factory:function(t){return e.\u0275fac(t)}}),e})(),tC=(()=>{let e=class extends YA{constructor(){super(B_.o)}};return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=pe({token:e,factory:function(t){return e.\u0275fac(t)},providedIn:"root"}),e.ngInjectableDef=pe({factory:function(){return new e},token:e,providedIn:"root"}),e})();class nC{shouldDetach(e){return!1}shouldAttach(e){return!1}store(e,t){}retrieve(e){return null}shouldReuseRoute(e,t){if(e.routeConfig!==t.routeConfig)return!1;const n=e.params,i=t.params,s=Object.keys(n),o=Object.keys(i);if(s.length!==o.length)return!1;for(const r of s)if(i[r]!==n[r])return!1;return!0}}let iC=!1;const sC=(e,t,i)=>()=>{const s=t.defaultView;if(s&&"undefined"!=typeof window){iC&&console.warn("Ionic Angular was already initialized. Make sure IonicModule.forRoot() is just called once."),iC=!0,(s.Ionic=s.Ionic||{}).config=Object.assign({},e,{_zoneGate:e=>i.run(e)});const o="__zone_symbol__addEventListener"in t.body?"__zone_symbol__addEventListener":"addEventListener";return function(){var e=[];if("undefined"!=typeof window){var t=window;t.customElements&&(!t.Element||t.Element.prototype.closest&&t.Element.prototype.matches&&t.Element.prototype.remove&&t.Element.prototype.getRootNode)||e.push(n.e(7).then(n.t.bind(null,"QdDj",7))),"function"==typeof Object.assign&&Object.entries&&Array.prototype.find&&Array.prototype.includes&&String.prototype.startsWith&&String.prototype.endsWith&&(!t.NodeList||t.NodeList.prototype.forEach)&&t.fetch&&function(){try{var e=new URL("b","http://a");return e.pathname="c%20d","http://a/c%20d"===e.href&&e.searchParams}catch(t){return!1}}()&&"undefined"!=typeof WeakMap||e.push(n.e(5).then(n.t.bind(null,"t6o4",7)))}return Promise.all(e)}().then(()=>{return e={exclude:["ion-tabs","ion-tab"],syncQueue:!0,raf:$_,jmp:e=>i.runOutsideAngular(e),ael(e,t,n,i){e[o](t,n,i)},rel(e,t,n,i){e.removeEventListener(t,n,i)}},"undefined"==typeof window?Promise.resolve():(z_.b&&z_.b.supports&&z_.b.supports("color","var(--c)")?Object(z_.d)():n.e(6).then(n.t.bind(null,"9qUq",7)).then(()=>(z_.n.$cssShim$=z_.q.__cssshim)?z_.n.$cssShim$.i():0)).then(()=>(W_(),Object(z_.e)(JSON.parse('[["ion-select_3",[[2,"ion-select-popover",{"header":[1],"subHeader":[1,"sub-header"],"message":[1],"options":[16]},[[0,"ionChange","onSelect"]]],[33,"ion-select",{"disabled":[4],"cancelText":[1,"cancel-text"],"okText":[1,"ok-text"],"placeholder":[1],"name":[1],"selectedText":[1,"selected-text"],"multiple":[4],"interface":[1],"interfaceOptions":[8,"interface-options"],"compareWith":[1,"compare-with"],"value":[1032],"isExpanded":[32],"open":[64]}],[1,"ion-select-option",{"disabled":[4],"value":[8]}]]],["ion-menu_3",[[33,"ion-menu-button",{"color":[1],"disabled":[4],"menu":[1],"autoHide":[4,"auto-hide"],"type":[1],"visible":[32]},[[16,"ionMenuChange","visibilityChanged"],[16,"ionSplitPaneVisible","visibilityChanged"]]],[33,"ion-menu",{"contentId":[513,"content-id"],"menuId":[513,"menu-id"],"type":[1025],"disabled":[1028],"side":[513],"swipeGesture":[4,"swipe-gesture"],"maxEdgeStart":[2,"max-edge-start"],"isPaneVisible":[32],"isEndSide":[32],"isOpen":[64],"isActive":[64],"open":[64],"close":[64],"toggle":[64],"setOpen":[64]},[[16,"ionSplitPaneVisible","onSplitPaneChanged"],[2,"click","onBackdropClick"]]],[1,"ion-menu-toggle",{"menu":[1],"autoHide":[4,"auto-hide"],"visible":[32]},[[16,"ionMenuChange","visibilityChanged"],[16,"ionSplitPaneVisible","visibilityChanged"]]]]],["ion-action-sheet",[[34,"ion-action-sheet",{"overlayIndex":[2,"overlay-index"],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"buttons":[16],"cssClass":[1,"css-class"],"backdropDismiss":[4,"backdrop-dismiss"],"header":[1],"subHeader":[1,"sub-header"],"translucent":[4],"animated":[4],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]}]]],["ion-fab_3",[[33,"ion-fab-button",{"color":[1],"activated":[4],"disabled":[4],"download":[1],"href":[1],"rel":[1],"routerDirection":[1,"router-direction"],"routerAnimation":[16],"target":[1],"show":[4],"translucent":[4],"type":[1],"size":[1],"closeIcon":[1,"close-icon"]}],[1,"ion-fab",{"horizontal":[1],"vertical":[1],"edge":[4],"activated":[1028],"close":[64]}],[1,"ion-fab-list",{"activated":[4],"side":[1]}]]],["ion-refresher_2",[[0,"ion-refresher-content",{"pullingIcon":[1025,"pulling-icon"],"pullingText":[1,"pulling-text"],"refreshingSpinner":[1025,"refreshing-spinner"],"refreshingText":[1,"refreshing-text"]}],[32,"ion-refresher",{"pullMin":[2,"pull-min"],"pullMax":[2,"pull-max"],"closeDuration":[1,"close-duration"],"snapbackDuration":[1,"snapback-duration"],"pullFactor":[2,"pull-factor"],"disabled":[4],"nativeRefresher":[32],"state":[32],"complete":[64],"cancel":[64],"getProgress":[64]}]]],["ion-alert",[[34,"ion-alert",{"overlayIndex":[2,"overlay-index"],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"cssClass":[1,"css-class"],"header":[1],"subHeader":[1,"sub-header"],"message":[1],"buttons":[16],"inputs":[1040],"backdropDismiss":[4,"backdrop-dismiss"],"translucent":[4],"animated":[4],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]},[[4,"keydown","onKeydown"]]]]],["ion-back-button",[[33,"ion-back-button",{"color":[1],"defaultHref":[1025,"default-href"],"disabled":[516],"icon":[1],"text":[1],"type":[1],"routerAnimation":[16]}]]],["ion-loading",[[34,"ion-loading",{"overlayIndex":[2,"overlay-index"],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"message":[1],"cssClass":[1,"css-class"],"duration":[2],"backdropDismiss":[4,"backdrop-dismiss"],"showBackdrop":[4,"show-backdrop"],"spinner":[1025],"translucent":[4],"animated":[4],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]}]]],["ion-toast",[[33,"ion-toast",{"overlayIndex":[2,"overlay-index"],"color":[1],"enterAnimation":[16],"leaveAnimation":[16],"cssClass":[1,"css-class"],"duration":[2],"header":[1],"message":[1],"keyboardClose":[4,"keyboard-close"],"position":[1],"buttons":[16],"translucent":[4],"animated":[4],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]}]]],["ion-card_5",[[33,"ion-card",{"color":[1],"button":[4],"type":[1],"disabled":[4],"download":[1],"href":[1],"rel":[1],"routerDirection":[1,"router-direction"],"routerAnimation":[16],"target":[1]}],[32,"ion-card-content"],[33,"ion-card-header",{"color":[1],"translucent":[4]}],[33,"ion-card-subtitle",{"color":[1]}],[33,"ion-card-title",{"color":[1]}]]],["ion-item-option_3",[[33,"ion-item-option",{"color":[1],"disabled":[4],"download":[1],"expandable":[4],"href":[1],"rel":[1],"target":[1],"type":[1]}],[32,"ion-item-options",{"side":[1],"fireSwipeEvent":[64]}],[0,"ion-item-sliding",{"disabled":[4],"state":[32],"getOpenAmount":[64],"getSlidingRatio":[64],"open":[64],"close":[64],"closeOpened":[64]}]]],["ion-infinite-scroll_2",[[32,"ion-infinite-scroll-content",{"loadingSpinner":[1025,"loading-spinner"],"loadingText":[1,"loading-text"]}],[0,"ion-infinite-scroll",{"threshold":[1],"disabled":[4],"position":[1],"isLoading":[32],"complete":[64]}]]],["ion-reorder_2",[[33,"ion-reorder",null,[[2,"click","onClick"]]],[0,"ion-reorder-group",{"disabled":[4],"state":[32],"complete":[64]}]]],["ion-segment_2",[[33,"ion-segment-button",{"disabled":[4],"layout":[1],"type":[1],"value":[1],"checked":[32]}],[33,"ion-segment",{"color":[1],"disabled":[4],"scrollable":[4],"swipeGesture":[4,"swipe-gesture"],"value":[1025],"activated":[32]}]]],["ion-tab-bar_2",[[33,"ion-tab-button",{"disabled":[4],"download":[1],"href":[1],"rel":[1],"layout":[1025],"selected":[1028],"tab":[1],"target":[1]},[[8,"ionTabBarChanged","onTabBarChanged"]]],[33,"ion-tab-bar",{"color":[1],"selectedTab":[1,"selected-tab"],"translucent":[4],"keyboardVisible":[32]}]]],["ion-chip",[[33,"ion-chip",{"color":[1],"outline":[4],"disabled":[4]}]]],["ion-modal",[[34,"ion-modal",{"overlayIndex":[2,"overlay-index"],"delegate":[16],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"component":[1],"componentProps":[16],"cssClass":[1,"css-class"],"backdropDismiss":[4,"backdrop-dismiss"],"showBackdrop":[4,"show-backdrop"],"animated":[4],"swipeToClose":[4,"swipe-to-close"],"presentingElement":[16],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]}]]],["ion-popover",[[34,"ion-popover",{"delegate":[16],"overlayIndex":[2,"overlay-index"],"enterAnimation":[16],"leaveAnimation":[16],"component":[1],"componentProps":[16],"keyboardClose":[4,"keyboard-close"],"cssClass":[1,"css-class"],"backdropDismiss":[4,"backdrop-dismiss"],"event":[8],"showBackdrop":[4,"show-backdrop"],"translucent":[4],"animated":[4],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]}]]],["ion-searchbar",[[34,"ion-searchbar",{"color":[1],"animated":[4],"autocomplete":[1],"autocorrect":[1],"cancelButtonIcon":[1,"cancel-button-icon"],"cancelButtonText":[1,"cancel-button-text"],"clearIcon":[1,"clear-icon"],"debounce":[2],"disabled":[4],"inputmode":[1],"enterkeyhint":[1],"placeholder":[1],"searchIcon":[1,"search-icon"],"showCancelButton":[1,"show-cancel-button"],"showClearButton":[1,"show-clear-button"],"spellcheck":[4],"type":[1],"value":[1025],"focused":[32],"noAnimate":[32],"setFocus":[64],"getInputElement":[64]}]]],["ion-app_8",[[0,"ion-app"],[34,"ion-buttons",{"collapse":[4]}],[1,"ion-content",{"color":[1],"fullscreen":[4],"forceOverscroll":[1028,"force-overscroll"],"scrollX":[4,"scroll-x"],"scrollY":[4,"scroll-y"],"scrollEvents":[4,"scroll-events"],"getScrollElement":[64],"scrollToTop":[64],"scrollToBottom":[64],"scrollByPoint":[64],"scrollToPoint":[64]},[[8,"appload","onAppLoad"],[2,"click","onClick"]]],[36,"ion-footer",{"translucent":[4]}],[36,"ion-header",{"collapse":[1],"translucent":[4]}],[1,"ion-router-outlet",{"mode":[1025],"delegate":[16],"animated":[4],"animation":[16],"swipeHandler":[16],"commit":[64],"setRouteId":[64],"getRouteId":[64]}],[33,"ion-title",{"color":[1],"size":[1]}],[33,"ion-toolbar",{"color":[1]},[[0,"ionStyle","childrenStyle"]]]]],["ion-route_4",[[0,"ion-route",{"url":[1],"component":[1],"componentProps":[16],"beforeLeave":[16],"beforeEnter":[16]}],[0,"ion-route-redirect",{"from":[1],"to":[1]}],[0,"ion-router",{"root":[1],"useHash":[4,"use-hash"],"canTransition":[64],"push":[64],"back":[64],"printDebug":[64],"navChanged":[64]},[[8,"popstate","onPopState"],[4,"ionBackButton","onBackButton"]]],[1,"ion-router-link",{"color":[1],"href":[1],"rel":[1],"routerDirection":[1,"router-direction"],"routerAnimation":[16],"target":[1]}]]],["ion-avatar_3",[[33,"ion-avatar"],[33,"ion-badge",{"color":[1]}],[1,"ion-thumbnail"]]],["ion-col_3",[[1,"ion-col",{"offset":[1],"offsetXs":[1,"offset-xs"],"offsetSm":[1,"offset-sm"],"offsetMd":[1,"offset-md"],"offsetLg":[1,"offset-lg"],"offsetXl":[1,"offset-xl"],"pull":[1],"pullXs":[1,"pull-xs"],"pullSm":[1,"pull-sm"],"pullMd":[1,"pull-md"],"pullLg":[1,"pull-lg"],"pullXl":[1,"pull-xl"],"push":[1],"pushXs":[1,"push-xs"],"pushSm":[1,"push-sm"],"pushMd":[1,"push-md"],"pushLg":[1,"push-lg"],"pushXl":[1,"push-xl"],"size":[1],"sizeXs":[1,"size-xs"],"sizeSm":[1,"size-sm"],"sizeMd":[1,"size-md"],"sizeLg":[1,"size-lg"],"sizeXl":[1,"size-xl"]},[[9,"resize","onResize"]]],[1,"ion-grid",{"fixed":[4]}],[1,"ion-row"]]],["ion-nav_2",[[1,"ion-nav",{"delegate":[16],"swipeGesture":[1028,"swipe-gesture"],"animated":[4],"animation":[16],"rootParams":[16],"root":[1],"push":[64],"insert":[64],"insertPages":[64],"pop":[64],"popTo":[64],"popToRoot":[64],"removeIndex":[64],"setRoot":[64],"setPages":[64],"setRouteId":[64],"getRouteId":[64],"getActive":[64],"getByIndex":[64],"canGoBack":[64],"getPrevious":[64]}],[0,"ion-nav-link",{"component":[1],"componentProps":[16],"routerDirection":[1,"router-direction"],"routerAnimation":[16]}]]],["ion-slide_2",[[0,"ion-slide"],[36,"ion-slides",{"options":[8],"pager":[4],"scrollbar":[4],"update":[64],"updateAutoHeight":[64],"slideTo":[64],"slideNext":[64],"slidePrev":[64],"getActiveIndex":[64],"getPreviousIndex":[64],"length":[64],"isEnd":[64],"isBeginning":[64],"startAutoplay":[64],"stopAutoplay":[64],"lockSwipeToNext":[64],"lockSwipeToPrev":[64],"lockSwipes":[64],"getSwiper":[64]}]]],["ion-tab_2",[[1,"ion-tab",{"active":[1028],"delegate":[16],"tab":[1],"component":[1],"setActive":[64]}],[1,"ion-tabs",{"useRouter":[1028,"use-router"],"selectedTab":[32],"select":[64],"getTab":[64],"getSelected":[64],"setRouteId":[64],"getRouteId":[64]}]]],["ion-checkbox",[[33,"ion-checkbox",{"color":[1],"name":[1],"checked":[1028],"indeterminate":[1028],"disabled":[4],"value":[1]}]]],["ion-img",[[1,"ion-img",{"alt":[1],"src":[1],"loadSrc":[32],"loadError":[32]}]]],["ion-input",[[34,"ion-input",{"fireFocusEvents":[4,"fire-focus-events"],"color":[1],"accept":[1],"autocapitalize":[1],"autocomplete":[1],"autocorrect":[1],"autofocus":[4],"clearInput":[4,"clear-input"],"clearOnEdit":[4,"clear-on-edit"],"debounce":[2],"disabled":[4],"enterkeyhint":[1],"inputmode":[1],"max":[1],"maxlength":[2],"min":[1],"minlength":[2],"multiple":[4],"name":[1],"pattern":[1],"placeholder":[1],"readonly":[4],"required":[4],"spellcheck":[4],"step":[1],"size":[2],"type":[1],"value":[1032],"hasFocus":[32],"setFocus":[64],"setBlur":[64],"getInputElement":[64]}]]],["ion-progress-bar",[[33,"ion-progress-bar",{"type":[1],"reversed":[4],"value":[2],"buffer":[2],"color":[1]}]]],["ion-range",[[33,"ion-range",{"color":[1],"debounce":[2],"name":[1],"dualKnobs":[4,"dual-knobs"],"min":[2],"max":[2],"pin":[4],"snaps":[4],"step":[2],"ticks":[4],"disabled":[4],"value":[1026],"ratioA":[32],"ratioB":[32],"pressedKnob":[32]}]]],["ion-split-pane",[[33,"ion-split-pane",{"contentId":[513,"content-id"],"disabled":[4],"when":[8],"visible":[32]}]]],["ion-text",[[1,"ion-text",{"color":[1]}]]],["ion-textarea",[[34,"ion-textarea",{"fireFocusEvents":[4,"fire-focus-events"],"color":[1],"autocapitalize":[1],"autofocus":[4],"clearOnEdit":[1028,"clear-on-edit"],"debounce":[2],"disabled":[4],"inputmode":[1],"enterkeyhint":[1],"maxlength":[2],"minlength":[2],"name":[1],"placeholder":[1],"readonly":[4],"required":[4],"spellcheck":[4],"cols":[2],"rows":[2],"wrap":[1],"autoGrow":[4,"auto-grow"],"value":[1025],"hasFocus":[32],"setFocus":[64],"setBlur":[64],"getInputElement":[64]}]]],["ion-toggle",[[33,"ion-toggle",{"color":[1],"name":[1],"checked":[1028],"disabled":[4],"value":[1],"activated":[32]}]]],["ion-virtual-scroll",[[0,"ion-virtual-scroll",{"approxItemHeight":[2,"approx-item-height"],"approxHeaderHeight":[2,"approx-header-height"],"approxFooterHeight":[2,"approx-footer-height"],"headerFn":[16],"footerFn":[16],"items":[16],"itemHeight":[16],"headerHeight":[16],"footerHeight":[16],"renderItem":[16],"renderHeader":[16],"renderFooter":[16],"nodeRender":[16],"domRender":[16],"totalHeight":[32],"positionForItem":[64],"checkRange":[64],"checkEnd":[64]},[[9,"resize","onResize"]]]]],["ion-datetime_3",[[34,"ion-picker",{"overlayIndex":[2,"overlay-index"],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"buttons":[16],"columns":[16],"cssClass":[1,"css-class"],"duration":[2],"showBackdrop":[4,"show-backdrop"],"backdropDismiss":[4,"backdrop-dismiss"],"animated":[4],"presented":[32],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64],"getColumn":[64]}],[33,"ion-datetime",{"name":[1],"disabled":[4],"readonly":[4],"min":[1025],"max":[1025],"displayFormat":[1,"display-format"],"displayTimezone":[1,"display-timezone"],"pickerFormat":[1,"picker-format"],"cancelText":[1,"cancel-text"],"doneText":[1,"done-text"],"yearValues":[8,"year-values"],"monthValues":[8,"month-values"],"dayValues":[8,"day-values"],"hourValues":[8,"hour-values"],"minuteValues":[8,"minute-values"],"monthNames":[1,"month-names"],"monthShortNames":[1,"month-short-names"],"dayNames":[1,"day-names"],"dayShortNames":[1,"day-short-names"],"pickerOptions":[16],"placeholder":[1],"value":[1025],"isExpanded":[32],"open":[64]}],[32,"ion-picker-column",{"col":[16]}]]],["ion-radio_2",[[33,"ion-radio",{"color":[1],"name":[1],"disabled":[4],"value":[8],"checked":[32],"buttonTabindex":[32],"setFocus":[64],"setButtonTabindex":[64]}],[0,"ion-radio-group",{"allowEmptySelection":[4,"allow-empty-selection"],"name":[1],"value":[1032]},[[4,"keydown","onKeydown"]]]]],["ion-spinner",[[1,"ion-spinner",{"color":[1],"duration":[2],"name":[1],"paused":[4]}]]],["ion-backdrop",[[33,"ion-backdrop",{"visible":[4],"tappable":[4],"stopPropagation":[4,"stop-propagation"]},[[2,"click","onMouseDown"]]]]],["ion-ripple-effect",[[1,"ion-ripple-effect",{"type":[1],"addRipple":[64]}]]],["ion-button_2",[[33,"ion-button",{"color":[1],"buttonType":[1025,"button-type"],"disabled":[516],"expand":[513],"fill":[1537],"routerDirection":[1,"router-direction"],"routerAnimation":[16],"download":[1],"href":[1],"rel":[1],"shape":[513],"size":[513],"strong":[4],"target":[1],"type":[1]}],[1,"ion-icon",{"mode":[1025],"color":[1],"ariaLabel":[1537,"aria-label"],"ariaHidden":[513,"aria-hidden"],"ios":[1],"md":[1],"flipRtl":[4,"flip-rtl"],"name":[1],"src":[1],"icon":[8],"size":[1],"lazy":[4],"sanitize":[4],"svgContent":[32],"isVisible":[32]}]]],["ion-item_8",[[33,"ion-item-divider",{"color":[1],"sticky":[4]}],[32,"ion-item-group"],[33,"ion-note",{"color":[1]}],[1,"ion-skeleton-text",{"animated":[4]}],[49,"ion-item",{"color":[1],"button":[4],"detail":[4],"detailIcon":[1,"detail-icon"],"disabled":[4],"download":[1],"href":[1],"rel":[1],"lines":[1],"routerAnimation":[16],"routerDirection":[1,"router-direction"],"target":[1],"type":[1],"multipleInputs":[32]},[[0,"ionColor","labelColorChanged"],[0,"ionStyle","itemStyle"]]],[34,"ion-label",{"color":[1],"position":[1],"noAnimate":[32]}],[32,"ion-list",{"lines":[1],"inset":[4],"closeSlidingItems":[64]}],[33,"ion-list-header",{"color":[1],"lines":[1]}]]]]'),e)));var e})}};var oC;let rC=(()=>{let e=oC=class{static forRoot(e){return{ngModule:oC,providers:[{provide:wA,useValue:e},{provide:Nc,useFactory:sC,multi:!0,deps:[wA,Hd,ad]}]}}};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=fe({providers:[AA,JA,eC],imports:[[uh]]}),e})();var aC=n("Hfs6"),lC=n.n(aC);function cC(e){return!!e&&(e instanceof v||"function"==typeof e.lift&&"function"==typeof e.subscribe)}class dC extends u{constructor(e,t){super()}schedule(e,t=0){return this}}class uC extends dC{constructor(e,t){super(e,t),this.scheduler=e,this.work=t,this.pending=!1}schedule(e,t=0){if(this.closed)return this;this.state=e;const n=this.id,i=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(i,n,t)),this.pending=!0,this.delay=t,this.id=this.id||this.requestAsyncId(i,this.id,t),this}requestAsyncId(e,t,n=0){return setInterval(e.flush.bind(e,this),n)}recycleAsyncId(e,t,n=0){if(null!==n&&this.delay===n&&!1===this.pending)return t;clearInterval(t)}execute(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const n=this._execute(e,t);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(e,t){let n=!1,i=void 0;try{this.work(e)}catch(s){n=!0,i=!!s&&s||new Error(s)}if(n)return this.unsubscribe(),i}_unsubscribe(){const e=this.id,t=this.scheduler,n=t.actions,i=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==i&&n.splice(i,1),null!=e&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null}}class hC extends uC{constructor(e,t){super(e,t),this.scheduler=e,this.work=t}schedule(e,t=0){return t>0?super.schedule(e,t):(this.delay=t,this.state=e,this.scheduler.flush(this),this)}execute(e,t){return t>0||this.closed?super.execute(e,t):this._execute(e,t)}requestAsyncId(e,t,n=0){return null!==n&&n>0||null===n&&this.delay>0?super.requestAsyncId(e,t,n):e.flush(this)}}let pC=(()=>{class e{constructor(t,n=e.now){this.SchedulerAction=t,this.now=n}schedule(e,t=0,n){return new this.SchedulerAction(this,e).schedule(n,t)}}return e.now=()=>Date.now(),e})();class gC extends pC{constructor(e,t=pC.now){super(e,()=>gC.delegate&&gC.delegate!==this?gC.delegate.now():t()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(e,t=0,n){return gC.delegate&&gC.delegate!==this?gC.delegate.schedule(e,t,n):super.schedule(e,t,n)}flush(e){const{actions:t}=this;if(this.active)return void t.push(e);let n;this.active=!0;do{if(n=e.execute(e.state,e.delay))break}while(e=t.shift());if(this.active=!1,n){for(;e=t.shift();)e.unsubscribe();throw n}}}class fC extends gC{}const mC=new fC(hC);function bC(e,t){return new v(t?n=>t.schedule(vC,0,{error:e,subscriber:n}):t=>t.error(e))}function vC({error:e,subscriber:t}){t.error(e)}let yC=(()=>{class e{constructor(e,t,n){this.kind=e,this.value=t,this.error=n,this.hasValue="N"===e}observe(e){switch(this.kind){case"N":return e.next&&e.next(this.value);case"E":return e.error&&e.error(this.error);case"C":return e.complete&&e.complete()}}do(e,t,n){switch(this.kind){case"N":return e&&e(this.value);case"E":return t&&t(this.error);case"C":return n&&n()}}accept(e,t,n){return e&&"function"==typeof e.next?this.observe(e):this.do(e,t,n)}toObservable(){switch(this.kind){case"N":return lb(this.value);case"E":return bC(this.error);case"C":return nv()}throw new Error("unexpected notification kind value")}static createNext(t){return void 0!==t?new e("N",t):e.undefinedValueNotification}static createError(t){return new e("E",void 0,t)}static createComplete(){return e.completeNotification}}return e.completeNotification=new e("C"),e.undefinedValueNotification=new e("N",void 0),e})();class wC extends g{constructor(e,t,n=0){super(e),this.scheduler=t,this.delay=n}static dispatch(e){const{notification:t,destination:n}=e;t.observe(n),this.unsubscribe()}scheduleMessage(e){this.destination.add(this.scheduler.schedule(wC.dispatch,this.delay,new _C(e,this.destination)))}_next(e){this.scheduleMessage(yC.createNext(e))}_error(e){this.scheduleMessage(yC.createError(e)),this.unsubscribe()}_complete(){this.scheduleMessage(yC.createComplete()),this.unsubscribe()}}class _C{constructor(e,t){this.notification=e,this.destination=t}}class xC extends A{constructor(e=Number.POSITIVE_INFINITY,t=Number.POSITIVE_INFINITY,n){super(),this.scheduler=n,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=e<1?1:e,this._windowTime=t<1?1:t,t===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(e){if(!this.isStopped){const t=this._events;t.push(e),t.length>this._bufferSize&&t.shift()}super.next(e)}nextTimeWindow(e){this.isStopped||(this._events.push(new AC(this._getNow(),e)),this._trimBufferThenGetEvents()),super.next(e)}_subscribe(e){const t=this._infiniteTimeWindow,n=t?this._events:this._trimBufferThenGetEvents(),i=this.scheduler,s=n.length;let o;if(this.closed)throw new w;if(this.isStopped||this.hasError?o=u.EMPTY:(this.observers.push(e),o=new _(this,e)),i&&e.add(e=new wC(e,i)),t)for(let r=0;r<s&&!e.closed;r++)e.next(n[r]);else for(let r=0;r<s&&!e.closed;r++)e.next(n[r].value);return this.hasError?e.error(this.thrownError):this.isStopped&&e.complete(),o}_getNow(){return(this.scheduler||mC).now()}_trimBufferThenGetEvents(){const e=this._getNow(),t=this._bufferSize,n=this._windowTime,i=this._events,s=i.length;let o=0;for(;o<s&&!(e-i[o].time<n);)o++;return s>t&&(o=Math.max(o,s-t)),o>0&&i.splice(0,o),i}}class AC{constructor(e,t){this.time=e,this.value=t}}function CC(e,t,n){let i;return i=e&&"object"==typeof e?e:{bufferSize:e,windowTime:t,refCount:!1,scheduler:n},e=>e.lift(function({bufferSize:e=Number.POSITIVE_INFINITY,windowTime:t=Number.POSITIVE_INFINITY,refCount:n,scheduler:i}){let s,o,r=0,a=!1,l=!1;return function(c){let d;r++,!s||a?(a=!1,s=new xC(e,t,i),d=s.subscribe(this),o=c.subscribe({next(e){s.next(e)},error(e){a=!0,s.error(e)},complete(){l=!0,o=void 0,s.complete()}}),l&&(o=void 0)):d=s.subscribe(this),this.add(()=>{r--,d.unsubscribe(),d=void 0,o&&!l&&n&&0===r&&(o.unsubscribe(),o=void 0,s=void 0)})}}(i))}class SC{}let kC=(()=>{class e extends SC{getTranslation(e){return lb({})}}return e.\u0275fac=function(t){return PC(t||e)},e.\u0275prov=pe({token:e,factory:e.\u0275fac}),e})();const PC=$n(kC);class EC{}let DC=(()=>{class e{handle(e){return e.key}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=pe({token:e,factory:e.\u0275fac}),e})();function OC(e,t){if(e===t)return!0;if(null===e||null===t)return!1;if(e!=e&&t!=t)return!0;let n,i,s,o=typeof e;if(o==typeof t&&"object"==o){if(!Array.isArray(e)){if(Array.isArray(t))return!1;for(i in s=Object.create(null),e){if(!OC(e[i],t[i]))return!1;s[i]=!0}for(i in t)if(!(i in s)&&void 0!==t[i])return!1;return!0}if(!Array.isArray(t))return!1;if((n=e.length)==t.length){for(i=0;i<n;i++)if(!OC(e[i],t[i]))return!1;return!0}}return!1}function MC(e){return null!=e}function TC(e){return e&&"object"==typeof e&&!Array.isArray(e)}function IC(e,t){let n=Object.assign({},e);return TC(e)&&TC(t)&&Object.keys(t).forEach(i=>{TC(t[i])?i in e?n[i]=IC(e[i],t[i]):Object.assign(n,{[i]:t[i]}):Object.assign(n,{[i]:t[i]})}),n}class RC{}let LC=(()=>{class e extends RC{constructor(){super(...arguments),this.templateMatcher=/{{\s?([^{}\s]*)\s?}}/g}interpolate(e,t){let n;return n="string"==typeof e?this.interpolateString(e,t):"function"==typeof e?this.interpolateFunction(e,t):e,n}getValue(e,t){let n="string"==typeof t?t.split("."):[t];t="";do{t+=n.shift(),!MC(e)||!MC(e[t])||"object"!=typeof e[t]&&n.length?n.length?t+=".":e=void 0:(e=e[t],t="")}while(n.length);return e}interpolateFunction(e,t){return e(t)}interpolateString(e,t){return t?e.replace(this.templateMatcher,(e,n)=>{let i=this.getValue(t,n);return MC(i)?i:e}):e}}return e.\u0275fac=function(t){return FC(t||e)},e.\u0275prov=pe({token:e,factory:e.\u0275fac}),e})();const FC=$n(LC);class BC{}let zC=(()=>{class e extends BC{compile(e,t){return e}compileTranslations(e,t){return e}}return e.\u0275fac=function(t){return VC(t||e)},e.\u0275prov=pe({token:e,factory:e.\u0275fac}),e})();const VC=$n(zC);class NC{constructor(){this.currentLang=this.defaultLang,this.translations={},this.langs=[],this.onTranslationChange=new yc,this.onLangChange=new yc,this.onDefaultLangChange=new yc}}const HC=new Xn("USE_STORE"),jC=new Xn("USE_DEFAULT_LANG"),UC=new Xn("DEFAULT_LANGUAGE"),WC=new Xn("USE_EXTEND");let GC=(()=>{class e{constructor(e,t,n,i,s,o=!0,r=!1,a=!1,l){this.store=e,this.currentLoader=t,this.compiler=n,this.parser=i,this.missingTranslationHandler=s,this.useDefaultLang=o,this.isolate=r,this.extend=a,this.pending=!1,this._onTranslationChange=new yc,this._onLangChange=new yc,this._onDefaultLangChange=new yc,this._langs=[],this._translations={},this._translationRequests={},l&&this.setDefaultLang(l)}get onTranslationChange(){return this.isolate?this._onTranslationChange:this.store.onTranslationChange}get onLangChange(){return this.isolate?this._onLangChange:this.store.onLangChange}get onDefaultLangChange(){return this.isolate?this._onDefaultLangChange:this.store.onDefaultLangChange}get defaultLang(){return this.isolate?this._defaultLang:this.store.defaultLang}set defaultLang(e){this.isolate?this._defaultLang=e:this.store.defaultLang=e}get currentLang(){return this.isolate?this._currentLang:this.store.currentLang}set currentLang(e){this.isolate?this._currentLang=e:this.store.currentLang=e}get langs(){return this.isolate?this._langs:this.store.langs}set langs(e){this.isolate?this._langs=e:this.store.langs=e}get translations(){return this.isolate?this._translations:this.store.translations}set translations(e){this.isolate?this._translations=e:this.store.translations=e}setDefaultLang(e){if(e===this.defaultLang)return;let t=this.retrieveTranslations(e);void 0!==t?(null==this.defaultLang&&(this.defaultLang=e),t.pipe(lv(1)).subscribe(t=>{this.changeDefaultLang(e)})):this.changeDefaultLang(e)}getDefaultLang(){return this.defaultLang}use(e){if(e===this.currentLang)return lb(this.translations[e]);let t=this.retrieveTranslations(e);return void 0!==t?(this.currentLang||(this.currentLang=e),t.pipe(lv(1)).subscribe(t=>{this.changeLang(e)}),t):(this.changeLang(e),lb(this.translations[e]))}retrieveTranslations(e){let t;return(void 0===this.translations[e]||this.extend)&&(this._translationRequests[e]=this._translationRequests[e]||this.getTranslation(e),t=this._translationRequests[e]),t}getTranslation(e){this.pending=!0;const t=this.currentLoader.getTranslation(e).pipe(CC(1),lv(1));return this.loadingTranslations=t.pipe(k(t=>this.compiler.compileTranslations(t,e)),CC(1),lv(1)),this.loadingTranslations.subscribe({next:t=>{this.translations[e]=this.extend&&this.translations[e]?Object.assign(Object.assign({},t),this.translations[e]):t,this.updateLangs(),this.pending=!1},error:e=>{this.pending=!1}}),t}setTranslation(e,t,n=!1){t=this.compiler.compileTranslations(t,e),this.translations[e]=(n||this.extend)&&this.translations[e]?IC(this.translations[e],t):t,this.updateLangs(),this.onTranslationChange.emit({lang:e,translations:this.translations[e]})}getLangs(){return this.langs}addLangs(e){e.forEach(e=>{-1===this.langs.indexOf(e)&&this.langs.push(e)})}updateLangs(){this.addLangs(Object.keys(this.translations))}getParsedResult(e,t,n){let i;if(t instanceof Array){let i={},s=!1;for(let o of t)i[o]=this.getParsedResult(e,o,n),cC(i[o])&&(s=!0);return s?Cf(t.map(e=>cC(i[e])?i[e]:lb(i[e]))).pipe(k(e=>{let n={};return e.forEach((e,i)=>{n[t[i]]=e}),n})):i}if(e&&(i=this.parser.interpolate(this.parser.getValue(e,t),n)),void 0===i&&null!=this.defaultLang&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(i=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],t),n)),void 0===i){let e={key:t,translateService:this};void 0!==n&&(e.interpolateParams=n),i=this.missingTranslationHandler.handle(e)}return void 0!==i?i:t}get(e,t){if(!MC(e)||!e.length)throw new Error('Parameter "key" required');if(this.pending)return this.loadingTranslations.pipe(cb(n=>cC(n=this.getParsedResult(n,e,t))?n:lb(n)));{let n=this.getParsedResult(this.translations[this.currentLang],e,t);return cC(n)?n:lb(n)}}getStreamOnTranslationChange(e,t){if(!MC(e)||!e.length)throw new Error('Parameter "key" required');return ev(iv(()=>this.get(e,t)),this.onTranslationChange.pipe(sv(n=>{const i=this.getParsedResult(n.translations,e,t);return"function"==typeof i.subscribe?i:lb(i)})))}stream(e,t){if(!MC(e)||!e.length)throw new Error('Parameter "key" required');return ev(iv(()=>this.get(e,t)),this.onLangChange.pipe(sv(n=>{const i=this.getParsedResult(n.translations,e,t);return cC(i)?i:lb(i)})))}instant(e,t){if(!MC(e)||!e.length)throw new Error('Parameter "key" required');let n=this.getParsedResult(this.translations[this.currentLang],e,t);if(cC(n)){if(e instanceof Array){let t={};return e.forEach((n,i)=>{t[e[i]]=e[i]}),t}return e}return n}set(e,t,n=this.currentLang){this.translations[n][e]=this.compiler.compile(t,n),this.updateLangs(),this.onTranslationChange.emit({lang:n,translations:this.translations[n]})}changeLang(e){this.currentLang=e,this.onLangChange.emit({lang:e,translations:this.translations[e]}),null==this.defaultLang&&this.changeDefaultLang(e)}changeDefaultLang(e){this.defaultLang=e,this.onDefaultLangChange.emit({lang:e,translations:this.translations[e]})}reloadLang(e){return this.resetLang(e),this.getTranslation(e)}resetLang(e){this._translationRequests[e]=void 0,this.translations[e]=void 0}getBrowserLang(){if("undefined"==typeof window||void 0===window.navigator)return;let e=window.navigator.languages?window.navigator.languages[0]:null;return e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,void 0!==e?(-1!==e.indexOf("-")&&(e=e.split("-")[0]),-1!==e.indexOf("_")&&(e=e.split("_")[0]),e):void 0}getBrowserCultureLang(){if("undefined"==typeof window||void 0===window.navigator)return;let e=window.navigator.languages?window.navigator.languages[0]:null;return e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,e}}return e.\u0275fac=function(t){return new(t||e)(gi(NC),gi(SC),gi(BC),gi(RC),gi(EC),gi(jC),gi(HC),gi(WC),gi(UC))},e.\u0275prov=pe({token:e,factory:e.\u0275fac}),e})(),$C=(()=>{class e{constructor(e,t){this.translate=e,this._ref=t,this.value=""}updateValue(e,t,n){let i=t=>{this.value=void 0!==t?t:e,this.lastKey=e,this._ref.markForCheck()};if(n){let s=this.translate.getParsedResult(n,e,t);cC(s.subscribe)?s.subscribe(i):i(s)}this.translate.get(e,t).subscribe(i)}transform(e,...t){if(!e||!e.length)return e;if(OC(e,this.lastKey)&&OC(t,this.lastParams))return this.value;let n;if(MC(t[0])&&t.length)if("string"==typeof t[0]&&t[0].length){let e=t[0].replace(/(\')?([a-zA-Z0-9_]+)(\')?(\s)?:/g,'"$2":').replace(/:(\s)?(\')(.*?)(\')/g,':"$3"');try{n=JSON.parse(e)}catch(i){throw new SyntaxError("Wrong parameter in TranslatePipe. Expected a valid Object, received: "+t[0])}}else"object"!=typeof t[0]||Array.isArray(t[0])||(n=t[0]);return this.lastKey=e,this.lastParams=t,this.updateValue(e,n),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.onTranslationChange.subscribe(t=>{this.lastKey&&t.lang===this.translate.currentLang&&(this.lastKey=null,this.updateValue(e,n,t.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(t=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,n,t.translations))})),this.onDefaultLangChange||(this.onDefaultLangChange=this.translate.onDefaultLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,n))})),this.value}_dispose(){void 0!==this.onTranslationChange&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void 0),void 0!==this.onLangChange&&(this.onLangChange.unsubscribe(),this.onLangChange=void 0),void 0!==this.onDefaultLangChange&&(this.onDefaultLangChange.unsubscribe(),this.onDefaultLangChange=void 0)}ngOnDestroy(){this._dispose()}}return e.\u0275fac=function(t){return new(t||e)(zr(GC),Vc())},e.\u0275pipe=Je({name:"translate",type:e,pure:!1}),e.\u0275prov=pe({token:e,factory:e.\u0275fac}),e})(),qC=(()=>{class e{static forRoot(t={}){return{ngModule:e,providers:[t.loader||{provide:SC,useClass:kC},t.compiler||{provide:BC,useClass:zC},t.parser||{provide:RC,useClass:LC},t.missingTranslationHandler||{provide:EC,useClass:DC},NC,{provide:HC,useValue:t.isolate},{provide:jC,useValue:t.useDefaultLang},{provide:WC,useValue:t.extend},{provide:UC,useValue:t.defaultLanguage},GC]}}static forChild(t={}){return{ngModule:e,providers:[t.loader||{provide:SC,useClass:kC},t.compiler||{provide:BC,useClass:zC},t.parser||{provide:RC,useClass:LC},t.missingTranslationHandler||{provide:EC,useClass:DC},{provide:HC,useValue:t.isolate},{provide:jC,useValue:t.useDefaultLang},{provide:WC,useValue:t.extend},{provide:UC,useValue:t.defaultLanguage},GC]}}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=fe({}),e})();var YC=function(e,t,n,i){return new(n||(n=Promise))(function(s,o){function r(e){try{l(i.next(e))}catch(t){o(t)}}function a(e){try{l(i.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?s(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(r,a)}l((i=i.apply(e,t||[])).next())})};let ZC=(()=>{class e{constructor(e,t,n){this.translate=e,this.router=t,this.toastController=n}success(e){return YC(this,void 0,void 0,function*(){const t=e.includes("lang.")?this.translate.instant(e):e;(yield this.toastController.create({cssClass:"notif-success",duration:3e3,message:t,position:"top"})).present()})}error(e){return YC(this,void 0,void 0,function*(){const t=e.includes("lang.")?this.translate.instant(e):e;(yield this.toastController.create({cssClass:"notif-error",duration:3e3,message:t,position:"top"})).present()})}handleErrors(e){console.log(e),0===e.status&&"Unknown Error"===e.statusText?this.error("lang.connectionServerFailed"):void 0!==e.error.errors?(this.error(void 0!==e.error.lang?"lang."+e.error.lang:e.error.errors),403!==e.status&&404!==e.status||this.router.navigate(["/home"])):this.error(void 0!==e.error.exception?e.error.exception[0].message:void 0!==e.error.error&&void 0!==e.error.error.message?e.error.error.message:void 0!==e.error.error[0]?e.error.error[0].message:e.message)}}return e.\u0275fac=function(t){return new(t||e)(gi(GC),gi(r_),gi(tC))},e.\u0275prov=pe({token:e,factory:e.\u0275fac}),e})();class QC{attach(e){return this._attachedHost=e,e.attach(this)}detach(){let e=this._attachedHost;null!=e&&(this._attachedHost=null,e.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(e){this._attachedHost=e}}class XC extends QC{constructor(e,t,n,i){super(),this.component=e,this.viewContainerRef=t,this.injector=n,this.componentFactoryResolver=i}}class KC extends QC{constructor(e,t,n){super(),this.templateRef=e,this.viewContainerRef=t,this.context=n}get origin(){return this.templateRef.elementRef}attach(e,t=this.context){return this.context=t,super.attach(e)}detach(){return this.context=void 0,super.detach()}}class JC extends QC{constructor(e){super(),this.element=e instanceof rl?e.nativeElement:e}}class eS{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(e){return e instanceof XC?(this._attachedPortal=e,this.attachComponentPortal(e)):e instanceof KC?(this._attachedPortal=e,this.attachTemplatePortal(e)):this.attachDomPortal&&e instanceof JC?(this._attachedPortal=e,this.attachDomPortal(e)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(e){this._disposeFn=e}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class tS extends eS{constructor(e,t,n,i,s){super(),this.outletElement=e,this._componentFactoryResolver=t,this._appRef=n,this._defaultInjector=i,this.attachDomPortal=e=>{const t=e.element,n=this._document.createComment("dom-portal");t.parentNode.insertBefore(n,t),this.outletElement.appendChild(t),super.setDisposeFn(()=>{n.parentNode&&n.parentNode.replaceChild(t,n)})},this._document=s}attachComponentPortal(e){const t=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component);let n;return e.viewContainerRef?(n=e.viewContainerRef.createComponent(t,e.viewContainerRef.length,e.injector||e.viewContainerRef.injector),this.setDisposeFn(()=>n.destroy())):(n=t.create(e.injector||this._defaultInjector),this._appRef.attachView(n.hostView),this.setDisposeFn(()=>{this._appRef.detachView(n.hostView),n.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(n)),n}attachTemplatePortal(e){let t=e.viewContainerRef,n=t.createEmbeddedView(e.templateRef,e.context);return n.rootNodes.forEach(e=>this.outletElement.appendChild(e)),n.detectChanges(),this.setDisposeFn(()=>{let e=t.indexOf(n);-1!==e&&t.remove(e)}),n}dispose(){super.dispose(),null!=this.outletElement.parentNode&&this.outletElement.parentNode.removeChild(this.outletElement)}_getComponentRootNode(e){return e.hostView.rootNodes[0]}}let nS=(()=>{class e extends eS{constructor(e,t,n){super(),this._componentFactoryResolver=e,this._viewContainerRef=t,this._isInitialized=!1,this.attached=new yc,this.attachDomPortal=e=>{const t=e.element,n=this._document.createComment("dom-portal");e.setAttachedHost(this),t.parentNode.insertBefore(n,t),this._getRootNode().appendChild(t),super.setDisposeFn(()=>{n.parentNode&&n.parentNode.replaceChild(t,n)})},this._document=n}get portal(){return this._attachedPortal}set portal(e){(!this.hasAttached()||e||this._isInitialized)&&(this.hasAttached()&&super.detach(),e&&super.attach(e),this._attachedPortal=e)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(e){e.setAttachedHost(this);const t=null!=e.viewContainerRef?e.viewContainerRef:this._viewContainerRef,n=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),i=t.createComponent(n,t.length,e.injector||t.injector);return t!==this._viewContainerRef&&this._getRootNode().appendChild(i.hostView.rootNodes[0]),super.setDisposeFn(()=>i.destroy()),this._attachedPortal=e,this._attachedRef=i,this.attached.emit(i),i}attachTemplatePortal(e){e.setAttachedHost(this);const t=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context);return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=e,this._attachedRef=t,this.attached.emit(t),t}_getRootNode(){const e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}}return e.\u0275fac=function(t){return new(t||e)(zr(nl),zr(Gl),zr(Hd))},e.\u0275dir=Ke({type:e,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[vr]}),e})(),iS=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=fe({}),e})(),sS=(()=>{class e{constructor(e,t,n){this.componentFactoryResolver=e,this.injector=t,this.appRef=n,this.mainDocumentId=0,this.signaturesContent=[],this.datesContent=[],this.notesContent=[],this.signaturesList=[],this.signaturesListSubstituted=[],this.currentPage=1,this.totalPage=1,this.stampLock=!1,this.currentToobal="mainDocumentDetail",this.currentAction=0,this.indexDocumentsList=0,this.documentsList=[],this.documentsListCount={},this.workingAreaWidth=0,this.workingAreaHeight=0,this.mobileMode=!0,this.smartphoneMode=!0,this.mode="",this.scale=1,this.x=0,this.y=90,this.dragging=!1,this.smartphoneMode=window.screen.width<=360,this.mobileMode=!!/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}reset(){this.mainDocumentId=0,this.signaturesContent=[],this.datesContent=[],this.notesContent=[],this.signaturesList=[],this.signaturesListSubstituted=[],this.currentPage=1,this.totalPage=1,this.stampLock=!1,this.currentAction=0,this.indexDocumentsList=0,this.documentsList=[],this.documentsListCount={},this.workingAreaWidth=0,this.workingAreaHeight=0,this.currentToobal="mainDocumentDetail",this.smartphoneMode=window.screen.width<=360,this.mobileMode=!!/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),this.mode="",this.scale=1,this.x=0,this.y=90}getAppSession(){this.appSession="AD098AD9ADA0D9IAXKJ90AKS099S"}initTemplate(e,t,n="adminMenu",i=""){document.getElementById(""+n).innerHTML="",this.portalHost=new tS(document.querySelector("#"+n),this.componentFactoryResolver,this.appRef,this.injector);const s=new KC(e,t);this.portalHost.attach(s)}detachTemplate(e="adminMenu"){this.portalHost.detach()}}return e.\u0275fac=function(t){return new(t||e)(gi(nl),gi(mr),gi(Ed))},e.\u0275prov=pe({token:e,factory:e.\u0275fac}),e})(),oS=(()=>{class e{constructor(){}setAppSession(e){this.appSession=e}getAppSession(){return this.appSession}save(e,t){localStorage.setItem(e+"_"+this.getAppSession(),t)}get(e){return localStorage.getItem(e+"_"+this.getAppSession())}remove(e){localStorage.removeItem(e+"_"+this.getAppSession())}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=pe({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),rS=(()=>{class e{constructor(e,t,n,i,s,o){this.http=e,this.router=t,this.notificationService=n,this.signaturesService=i,this.localStorage=s,this.navCtrl=o,this.authMode="default",this.changeKey=!1,this.coreUrl="",this.user={},this.signatureRoles=[],this.authFailed=!1}getToken(){return this.localStorage.get("MaarchParapheurToken")}setToken(e){this.localStorage.save("MaarchParapheurToken",e)}getRefreshToken(){return this.localStorage.get("MaarchParapheurRefreshToken")}setRefreshToken(e){this.localStorage.save("MaarchParapheurRefreshToken",e)}clearTokens(){this.localStorage.remove("MaarchParapheurToken"),this.localStorage.remove("MaarchParapheurRefreshToken")}refreshToken(){return this.http.get("../rest/authenticate/token",{params:{refreshToken:this.getRefreshToken()}}).pipe(Ov(e=>{this.setToken(e.token),this.updateUserInfo(e.token)}),fv(e=>(this.logout(),this.notificationService.error("lang.sessionExpired"),lb(!1))))}logout(){if(null===this.getRefreshToken())return this.clearTokens(),void this.navCtrl.navigateRoot("/login");this.http.get("../rest/authenticate/logout").pipe(Ov(()=>{this.clearTokens(),this.navCtrl.navigateRoot("/login")}),fv(e=>(this.notificationService.handleErrors(e),this.clearTokens(),this.navCtrl.navigateRoot("/login"),lb(!1)))).subscribe()}saveTokens(e,t){this.setToken(e),this.setRefreshToken(t)}isAuth(){return null!==this.getToken()}updateUserInfo(e){const t=this.user.picture,n=JSON.parse(atob(e.split(".")[1]));this.user=n.user,this.authMode=n.connection,this.user.picture=t}updateUserInfoWithTokenRefresh(){this.http.get("../rest/authenticate/token",{params:{refreshToken:this.getRefreshToken()}}).subscribe({next:e=>{this.setToken(e.token),this.updateUserInfo(this.getToken())},error:e=>{this.notificationService.handleErrors(e)}})}setUser(e){this.user=e}getSignatureMode(e){return"visa"===e?"stamp":e}getWorkflowMode(e){return this.signatureRoles.filter(t=>t.id===e)[0].type}setCachedUrl(e){this.localStorage.save("MaarchParapheurCacheUrl",e)}getCachedUrl(){return this.localStorage.get("MaarchParapheurCacheUrl")}cleanCachedUrl(){return this.localStorage.remove("MaarchParapheurCacheUrl")}}return e.\u0275fac=function(t){return new(t||e)(gi(Db),gi(r_),gi(ZC),gi(sS),gi(oS),gi(ux))},e.\u0275prov=pe({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),aS=(()=>{class e{constructor(e,t,n,i,s){this.http=e,this.router=t,this.notificationService=n,this.signaturesService=i,this.authService=s,this.excludeUrls=["../rest/authenticate","../rest/authenticate/token","../rest/authenticationInformations","../rest/password","../rest/passwordRules","../rest/languages/fr","../rest/languages/en"],this.frontUrl=["../rest/documents/","../rest/users/","../rest/groups/","../rest/configurations/"],this.byPassHandleErrors=[{route:"/password",method:["PUT"]},{route:"/logout",method:["GET"]}],this.isRefreshing=!1,this.refreshTokenSubject=new Gb(null)}addAuthHeader(e){const t=this.authService.getToken();return e.clone({setHeaders:{Authorization:"Bearer "+t}})}intercept(e,t){return(this.excludeUrls.indexOf(e.url)>-1||e.url.indexOf("/password")>-1)&&-1===e.url.indexOf("/passwordRules")&&-1===e.method.indexOf("PUT")?t.handle(e):(e=this.addAuthHeader(e),t.handle(e).pipe(fv(n=>{if(this.byPassHandleErrors.filter(t=>e.url.indexOf(t.route)>-1&&t.method.indexOf(e.method)>-1).length>0)return t.handle(e);if(401===n.status)return this.handle401Error(e,t);if("Password expired : User must change his password"===n.error.errors)return this.router.navigate(["/password-modification"]);{let t;return"GET"===e.method&&this.frontUrl.forEach(i=>{if(e.url.indexOf(i)>-1)return"../rest/documents/"===i&&(this.signaturesService.mainDocumentId=null),t=new Pb({error:n.error,status:n.status,statusText:n.statusText,headers:n.headers,url:n.url}),Promise.reject(t)}),t=new Pb({error:n.error,status:n.status,statusText:n.statusText,headers:n.headers,url:n.url}),Promise.reject(t)}})))}handle401Error(e,t){return this.isRefreshing?this.refreshTokenSubject.pipe(db(e=>null!=e),lv(1),sv(()=>(e=this.addAuthHeader(e),t.handle(e)))):(this.isRefreshing=!0,this.refreshTokenSubject.next(null),this.authService.refreshToken().pipe(sv(n=>(this.isRefreshing=!1,this.refreshTokenSubject.next(n.token),e=this.addAuthHeader(e),t.handle(e)))))}}return e.\u0275fac=function(t){return new(t||e)(gi(Db),gi(r_),gi(ZC),gi(sS),gi(rS))},e.\u0275prov=pe({token:e,factory:e.\u0275fac}),e})();function lS(e,t){if(1&e){const e=qr();Hr(0,"div",2),Hr(1,"div",3),Hr(2,"button",4),dn(),Hr(3,"svg",5),Ur(4,"path",6),jr(),un(),Hr(5,"span",7),Da(6,"Presentation Mode"),jr(),jr(),Hr(7,"button",8),dn(),Hr(8,"svg",5),Ur(9,"path",9),jr(),un(),Hr(10,"span",10),Da(11,"Open"),jr(),jr(),Hr(12,"button",11),dn(),Hr(13,"svg",5),Ur(14,"path",12),jr(),un(),Hr(15,"span",13),Da(16,"Print"),jr(),jr(),Hr(17,"button",14),dn(),Hr(18,"svg",5),Ur(19,"path",15),jr(),un(),Hr(20,"span",16),Da(21,"Download"),jr(),jr(),Hr(22,"a",17),dn(),Hr(23,"svg",5),Ur(24,"path",18),jr(),un(),Hr(25,"span",19),Da(26,"Current View"),jr(),jr(),Hr(27,"button",20),dn(),Hr(28,"svg",21),Ur(29,"path",22),jr(),un(),Hr(30,"span",23),Da(31,"Go to First Page"),jr(),jr(),Hr(32,"button",24),Xr("click",function(){return Lt(e),na().previousPage()}),dn(),Hr(33,"svg",21),Ur(34,"path",25),jr(),un(),Hr(35,"span",26),Da(36,"Go to Previous Page"),jr(),jr(),Hr(37,"button",27),Xr("click",function(){return Lt(e),na().nextPage()}),dn(),Hr(38,"svg",21),Ur(39,"path",28),jr(),un(),Hr(40,"span",29),Da(41,"Go to Next Page"),jr(),jr(),Hr(42,"button",30),dn(),Hr(43,"svg",21),Ur(44,"path",31),jr(),un(),Hr(45,"span",32),Da(46,"Go to Last Page"),jr(),jr(),Hr(47,"button",33),dn(),Hr(48,"svg",5),Ur(49,"path",34),jr(),un(),Hr(50,"span",35),Da(51,"Rotate Clockwise"),jr(),jr(),Hr(52,"button",36),dn(),Hr(53,"svg",5),Ur(54,"path",37),jr(),un(),Hr(55,"span",38),Da(56,"Rotate Counterclockwise"),jr(),jr(),Hr(57,"button",39),dn(),Hr(58,"svg",5),Ur(59,"path",40),jr(),un(),Hr(60,"span",41),Da(61,"Text Selection Tool"),jr(),jr(),Hr(62,"button",42),dn(),Hr(63,"svg",5),Ur(64,"path",43),jr(),un(),Hr(65,"span",44),Da(66,"Hand Tool"),jr(),jr(),Hr(67,"button",45),dn(),Hr(68,"svg",46),Ur(69,"path",47),jr(),un(),Hr(70,"span",48),Da(71,"Vertical Scrolling"),jr(),jr(),Hr(72,"button",49),dn(),Hr(73,"svg",46),Ur(74,"path",50),jr(),un(),Hr(75,"span",51),Da(76,"Horizontal Scrolling"),jr(),jr(),Hr(77,"button",52),dn(),Hr(78,"svg",46),Ur(79,"path",53),jr(),un(),Hr(80,"span",54),Da(81,"Wrapped Scrolling"),jr(),jr(),Hr(82,"button",55),Xr("click",function(){return Lt(e),na().onSpreadChange("off")}),dn(),Hr(83,"svg",56),Ur(84,"path",57),jr(),un(),Hr(85,"span",58),Da(86,"No Spreads"),jr(),jr(),Hr(87,"button",59),Xr("click",function(){return Lt(e),na().onSpreadChange("odd")}),dn(),Hr(88,"svg",46),Ur(89,"path",60),jr(),un(),Hr(90,"span",61),Da(91,"Odd Spreads"),jr(),jr(),Hr(92,"button",62),Xr("click",function(){return Lt(e),na().onSpreadChange("even")}),dn(),Hr(93,"svg",46),Ur(94,"path",63),jr(),un(),Hr(95,"span",64),Da(96,"Even Spreads"),jr(),jr(),Hr(97,"button",65),dn(),Hr(98,"svg",66),Ur(99,"path",67),Ur(100,"path",68),Ur(101,"circle",69),jr(),un(),Hr(102,"span",70),Da(103,"Document Properties\u2026"),jr(),jr(),jr(),jr()}if(2&e){const e=na();fa("top",e.secondaryToolbarTop)("transform","scale("+e.mobileFriendlyZoomScale+")")("transform-origin","right top"),no(2),ma("invisible",!e.showPresentationModeButton),no(5),ma("invisible",!e.showOpenFileButton),no(5),ma("invisible",!e.showPrintButton),no(5),ma("invisible",!e.showDownloadButton),no(5),ma("invisible",!e.showBookmarkButton),no(5),ma("invisible",!e.showPagingButtons),no(5),ma("invisible",!e.showPagingButtons),Vr("disabled",e.disablePreviousPage),no(5),ma("invisible",!e.showPagingButtons),Vr("disabled",e.disableNextPage),no(5),ma("invisible",!e.showPagingButtons),no(5),ma("invisible",!e.showRotateButton),no(5),ma("invisible",!e.showRotateButton),no(5),ma("invisible",!e.showHandToolButton),no(5),ma("invisible",!e.showHandToolButton),no(5),ma("invisible",!e.showScrollingButton),no(5),ma("invisible",!e.showScrollingButton),no(5),ma("invisible",!e.showScrollingButton),no(5),ma("invisible",!e.showSpreadButton),no(5),ma("invisible",!e.showSpreadButton),no(5),ma("invisible",!e.showSpreadButton),no(5),ma("invisible",!e.showPropertiesButton)}}function cS(e,t){1&e&&oa(0,0,["*ngTemplateOutlet","customSidebar ? customSidebar : defaultSidebar"])}function dS(e,t){if(1&e){const e=qr();Hr(0,"div",2),Hr(1,"div",3),Ur(2,"pdf-sidebar-toolbar"),jr(),Hr(3,"pdf-sidebar-content",4),Xr("thumbnailDrawn",function(t){return Lt(e),na().thumbnailDrawn.emit(t)}),jr(),Ur(4,"div",5),jr()}if(2&e){const e=na();fa("top",e.sidebarPositionTop),no(1),fa("display",e.hideSidebarToolbar?"none":""),no(2),Vr("customThumbnail",e.customThumbnail)("hideSidebarToolbar",e.hideSidebarToolbar)}}const uS=["*"],hS=["root"],pS=["pdfSecondaryToolbarComponent"],gS=["pdfsidebar"];function fS(e,t){1&e&&Ur(0,"link",48)}function mS(e,t){1&e&&Ur(0,"pdf-dark-theme")}function bS(e,t){1&e&&Ur(0,"pdf-light-theme")}function vS(e,t){1&e&&oa(0,0,["*ngTemplateOutlet","customFreeFloatingBar ? customFreeFloatingBar : defaultFreeFloatingBar"])}function yS(e,t){}function wS(e,t){if(1&e&&(Hr(0,"div",3),$r(1,0),jr()),2&e){const e=na(),t=Br(4);fa("transform","scale("+e.mobileFriendlyZoomScale+")")("transform-origin","left center")("left",e.findbarLeft)("top",e.findbarTop),ma("invisible",!e.showFindButton),no(1),Vr("ngTemplateOutlet",e.customFindbarButtons?e.customFindbarButtons:t)}}function _S(e,t){1&e&&(Ur(0,"pdf-find-input-area",4),Ur(1,"pdf-findbar-options-one-container"),Ur(2,"pdf-findbar-options-two-container"),Ur(3,"pdf-findbar-options-three-container"),Ur(4,"pdf-findbar-message-container")),2&e&&Vr("customFindbarInputArea",na().customFindbarInputArea)}function xS(e,t){1&e&&(Hr(0,"div",2),Ur(1,"pdf-search-input-field"),Ur(2,"pdf-find-previous"),Ur(3,"pdf-find-next"),jr())}const AS=["button"],CS="[_nghost-%COMP%]{margin-top:0}[_nghost-%COMP%]:focus{outline:0}button[_ngcontent-%COMP%]:focus, svg[_ngcontent-%COMP%]:focus{outline:0}",SS=["button1"],kS=["button2"],PS="[_nghost-%COMP%]{margin-top:-1px}[_nghost-%COMP%]:focus{outline:0}button[_ngcontent-%COMP%]:focus, svg[_ngcontent-%COMP%]:focus{outline:0}",ES="button[_ngcontent-%COMP%]   svg[_ngcontent-%COMP%]{margin-top:-2px}[_nghost-%COMP%]:focus{outline:0}button[_ngcontent-%COMP%]:focus, svg[_ngcontent-%COMP%]:focus{outline:0}";function DS(e,t){1&e&&oa(0,0,["*ngTemplateOutlet","customToolbar ? customToolbar : defaultToolbar"])}function OS(e,t){if(1&e&&(Hr(0,"div",7),Hr(1,"div",8),Ur(2,"pdf-toggle-sidebar",9),Ur(3,"pdf-find-button",10),Ur(4,"pdf-paging-area",11),jr(),Ur(5,"pdf-zoom-toolbar",12),Hr(6,"div",13),Ur(7,"pdf-hand-tool",14),Ur(8,"pdf-select-tool",15),Ur(9,"pdf-rotate-page",16),Ur(10,"pdf-presentation-mode",17),Ur(11,"pdf-open-file",18),Ur(12,"pdf-print",19),Ur(13,"pdf-download",20),Ur(14,"pdf-bookmark",21),Ur(15,"pdf-toggle-secondary-toolbar",22),jr(),jr()),2&e){const e=na();no(2),Vr("showSidebarButton",e.showSidebarButton),no(1),Vr("showFindButton",e.showFindButton)("textLayer",e.textLayer),no(1),Vr("showPagingButtons",e.showPagingButtons),no(1),Vr("showZoomButtons",e.showZoomButtons)("zoomLevels",e.zoomLevels),no(2),Vr("showHandToolButton",e.showHandToolButton),no(1),Vr("showSelectToolButton",e.showHandToolButton),no(1),Vr("showRotateButton",e.showRotateButton),no(1),Vr("showPresentationModeButton",e.showPresentationModeButton),no(1),Vr("showOpenFileButton",e.showOpenFileButton),no(1),Vr("showPrintButton",e.showPrintButton),no(1),Vr("showDownloadButton",e.showDownloadButton),no(1),Vr("showBookmarkButton",e.showBookmarkButton),no(1),Vr("showSecondaryToolbarButton",e.showSecondaryToolbarButton)}}const MS=["sizeSelector"];function TS(e,t){if(1&e&&(Hr(0,"option",5),Da(1),jr()),2&e){const e=t.$implicit;Vr("id",e.id),Ir("value",e.value)("data-l10n-id",e.dataL10nId)("data-l10n-args",e.dataL10nArgs),no(1),Ma(" ",e.displayValue," ")}}const IS=["thumbnailViewTemplate"];function RS(e,t){1&e&&oa(0,0,["*ngTemplateOutlet","customThumbnail ? customThumbnail : defaultThumbnail"])}function LS(e,t){1&e&&(Hr(0,"a",8),Hr(1,"div",9),Ur(2,"div",10),jr(),jr())}const FS="undefined"!=typeof window&&!!window.MSInputMethodContext&&!!document.documentMode,BS=/Edge\/\d./i.test(navigator.userAgent),zS="undefined"==typeof ReadableStream||void 0===Promise.allSettled;let VS={cursorToolOnLoad:0,defaultUrl:"",defaultZoomValue:"",disableHistory:!1,disablePageLabels:!1,enablePrintAutoRotate:!1,enableWebGL:!1,eventBusDispatchToDOM:!1,externalLinkRel:"noopener noreferrer nofollow",externalLinkTarget:0,historyUpdateUrl:!1,imageResourcesPath:"./images/",maxCanvasPixels:16777216,pdfBugEnabled:!1,removePageBorders:!1,renderer:"canvas",renderInteractiveForms:!0,sidebarViewOnLoad:-1,scrollModeOnLoad:-1,spreadModeOnLoad:-1,textLayerMode:1,useOnlyCssZoom:!1,viewOnLoad:0,cMapPacked:!0,cMapUrl:()=>"./"+VS.assetsFolder+"/cmaps/",disableAutoFetch:!1,disableCreateObjectURL:!1,disableFontFace:!1,disableRange:!1,disableStream:!1,isEvalSupported:!0,maxImageSize:-1,pdfBug:!1,postMessageTransfers:!0,verbosity:1,workerPort:null,assetsFolder:"assets",workerSrc:()=>FS||BS||zS?"./"+VS.assetsFolder+"/pdf.worker-es5.js":"./"+VS.assetsFolder+"/pdf.worker.js"};window.pdfDefaultOptions?VS=window.pdfDefaultOptions:window.pdfDefaultOptions=VS;const NS={ERRORS:0,WARNINGS:1,INFOS:5};NS[NS.ERRORS]="ERRORS",NS[NS.WARNINGS]="WARNINGS",NS[NS.INFOS]="INFOS";const HS={FOUND:0,NOT_FOUND:1,WRAPPED:2,PENDING:3};HS[HS.FOUND]="FOUND",HS[HS.NOT_FOUND]="NOT_FOUND",HS[HS.WRAPPED]="WRAPPED",HS[HS.PENDING]="PENDING";const jS=["toolbarViewer","numPages","pageNumber","scaleSelectContainer","customScaleOption","previous","next","zoomIn","zoomOut","viewFind","openFile","print","presentationMode","download","viewBookmark","secondaryToolbar","secondaryToolbarToggle","secondaryToolbarButtonContainer","secondaryPresentationMode","secondaryOpenFile","secondaryPrint","secondaryDownload","secondaryViewBookmark","firstPage","lastPage","pageRotateCw","pageRotateCcw","cursorSelectTool","cursorHandTool","scrollVertical","scrollHorizontal","scrollWrapped","spreadNone","spreadOdd","spreadEven","documentProperties","contextFirstPage","contextLastPage","contextPageRotateCw","contextPageRotateCcw","outerContainer","viewerContainer","sidebarToggle","viewThumbnail","viewOutline","viewAttachments","thumbnailView","outlineView","attachmentsView","outerContainer","sidebarResizer","findbar","viewFind","findInput","findInputMultiline","findHighlightAll","findMatchCase","findEntireWord","findMultipleSearchTexts","findIgnoreAccents","findMsg","findResultsCount","findPrevious","findNext","findFuzzy","passwordOverlay","passwordText","password","passwordSubmit","passwordCancel","documentPropertiesOverlay","documentPropertiesClose","fileNameField","fileSizeField","titleField","authorField","subjectField","keywordsField","creationDateField","modificationDateField","creatorField","producerField","versionField","pageCountField","pageSizeField","linearizedField","errorWrapper","errorMessage","errorClose","errorMoreInfo","errorShowMore","errorShowLess","scaleSelectContainer","viewAttachments","viewLayers","viewThumbnail","viewOutline"];let US=(()=>{class e{addMissingStandardWidgets(){this.dummyComponentsContainer=document.getElementsByClassName("dummy-pdf-viewer-components")[0];const e=this.dummyComponentsContainer;if(e)for(let t=0;t<e.children.length;t++){const t=e.firstChild;t&&e.removeChild(t)}if(jS.forEach(e=>{if(this.needsDummyWidget(e)){const t=document.createElement("span");t.id=e,t.className="invisible dummy-component",this.dummyComponentsContainer.appendChild(t)}}),this.needsDummyWidget("scaleSelect")){const e=document.createElement("select");e.id="scaleSelect",e.className="invisible dummy-component",this.dummyComponentsContainer.appendChild(e)}}needsDummyWidget(e){return!document.getElementById(e)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=$e({type:e,selectors:[["pdf-dummy-components"]],decls:1,vars:0,consts:[[1,"invisible","dummy-pdf-viewer-components"]],template:function(e,t){1&e&&Ur(0,"span",0)},encapsulation:2}),e})(),WS=(()=>{class e{constructor(){this.onPDFJSInit=new A,this.pdfjsVersion=new xC(1),window.pdfjsLib&&window.pdfjsLib.version?this.pdfjsVersion.next(window.pdfjsLib.version):this.onPDFJSInit.subscribe(()=>{this.pdfjsVersion.next(window.pdfjsLib.version)})}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=pe({token:e,factory:e.\u0275fac,providedIn:"root"}),e.ngInjectableDef=ge({factory:function(){return new e},token:e,providedIn:"root"}),e})(),GS=(()=>{class e{constructor(e,t){this.element=e,this.notificationService=t,this.showPresentationModeButton=!0,this.showOpenFileButton=!0,this.showPrintButton=!0,this.showDownloadButton=!0,this.showBookmarkButton=!0,this.showPagingButtons=!0,this.showRotateButton=!0,this.showHandToolButton=!0,this.showScrollingButton=!0,this.showSpreadButton=!0,this.showPropertiesButton=!0,this.spreadChange=new yc,this.secondaryMenuIsEmpty=new yc,this.disablePreviousPage=!0,this.disableNextPage=!0;const n=this.notificationService.onPDFJSInit.subscribe(()=>{this.onPdfJsInit(),n.unsubscribe()})}onPdfJsInit(){const e=window.PDFViewerApplication;e.eventBus.on("pagechanging",()=>{this.updateUIState()}),e.eventBus.on("pagerendered",()=>{this.updateUIState()})}updateUIState(){setTimeout(()=>{const e=window.PDFViewerApplication,t=e.pdfViewer.currentPageNumber,n=document.getElementById("previousPage");n&&(this.disablePreviousPage=Number(t)<=1,n.disabled=this.disablePreviousPage);const i=document.getElementById("nextPage");i&&(this.disableNextPage=t===e.pagesCount,i.disabled=this.disableNextPage)})}onSpreadChange(e){this.spreadChange.emit(e)}ngOnChanges(e){setTimeout(()=>this.checkVisibility())}onResize(){setTimeout(()=>this.checkVisibility())}ngAfterViewInit(){setTimeout(()=>this.checkVisibility())}ngOnInit(){setTimeout(()=>this.checkVisibility())}checkVisibility(){let e=0;const t=this.element.nativeElement.children.item(0);if(t){const n=t.children.item(0);n&&n instanceof HTMLElement&&(e=this.checkVisibilityRecursively(n))}this.secondaryMenuIsEmpty.emit(0===e)}checkVisibilityRecursively(e){if("none"===e.style.display)return 0;if(e.classList.contains("hidden"))return 0;if(e.classList.contains("invisible"))return 0;if("none"===window.getComputedStyle(e).display)return 0;if(e instanceof HTMLButtonElement||e instanceof HTMLAnchorElement)return 1;let t=0;const n=e.children;if(n&&n.length)for(let i=0;i<n.length&&0===t;i++){const e=n.item(i);e&&e instanceof HTMLElement&&(t+=this.checkVisibilityRecursively(e))}return t}previousPage(){window.PDFViewerApplication.eventBus.dispatch("previouspage")}nextPage(){window.PDFViewerApplication.eventBus.dispatch("nextpage")}}return e.\u0275fac=function(t){return new(t||e)(zr(rl),zr(WS))},e.\u0275cmp=$e({type:e,selectors:[["pdf-secondary-toolbar"]],hostBindings:function(e,t){1&e&&Xr("resize",function(){return t.onResize()},!1,ps)},inputs:{showPresentationModeButton:"showPresentationModeButton",showOpenFileButton:"showOpenFileButton",showPrintButton:"showPrintButton",showDownloadButton:"showDownloadButton",showBookmarkButton:"showBookmarkButton",showPagingButtons:"showPagingButtons",showRotateButton:"showRotateButton",showHandToolButton:"showHandToolButton",showScrollingButton:"showScrollingButton",showSpreadButton:"showSpreadButton",showPropertiesButton:"showPropertiesButton",customSecondaryToolbar:"customSecondaryToolbar",secondaryToolbarTop:"secondaryToolbarTop",mobileFriendlyZoomScale:"mobileFriendlyZoomScale"},outputs:{spreadChange:"spreadChange",secondaryMenuIsEmpty:"secondaryMenuIsEmpty"},features:[dt],decls:3,vars:1,consts:[[3,"ngTemplateOutlet"],["defaultSecondaryToolbar",""],["id","secondaryToolbar",1,"secondaryToolbar","hidden","doorHangerRight"],["id","secondaryToolbarButtonContainer"],["type","button","id","secondaryPresentationMode","title","Switch to Presentation Mode","data-l10n-id","presentation_mode",1,"secondaryToolbarButton","visibleLargeView"],["viewBox","0 0 24 24",2,"width","22px","height","22px"],["fill","currentColor","d","M5,5H10V7H7V10H5V5M14,5H19V10H17V7H14V5M17,14H19V19H14V17H17V14M10,17V19H5V14H7V17H10Z"],["data-l10n-id","presentation_mode_label"],["type","button","id","secondaryOpenFile","title","Open File","data-l10n-id","open_file",1,"secondaryToolbarButton","visibleMediumView"],["fill","currentColor","d","M14,2L20,8V20A2,2 0 0,1 18,22H6A2,2 0 0,1 4,20V4A2,2 0 0,1 6,2H14M18,20V9H13V4H6V20H18M12,12L16,16H13.5V19H10.5V16H8L12,12Z"],["data-l10n-id","open_file_label"],["type","button","id","secondaryPrint","title","Print","data-l10n-id","print",1,"secondaryToolbarButton","visibleSmallView"],["fill","currentColor","d","M18,3H6V7H18M19,12A1,1 0 0,1 18,11A1,1 0 0,1 19,10A1,1 0 0,1 20,11A1,1 0 0,1 19,12M16,19H8V14H16M19,8H5A3,3 0 0,0 2,11V17H6V21H18V17H22V11A3,3 0 0,0 19,8Z"],["data-l10n-id","print_label"],["type","button","id","secondaryDownload","title","Download","data-l10n-id","download",1,"secondaryToolbarButton","visibleSmallView"],["fill","currentColor","d","M14,2L20,8V20A2,2 0 0,1 18,22H6A2,2 0 0,1 4,20V4A2,2 0 0,1 6,2H14M18,20V9H13V4H6V20H18M12,19L8,15H10.5V12H13.5V15H16L12,19Z"],["data-l10n-id","download_label"],["href","#","id","secondaryViewBookmark","title","Current view (copy or open in new window)","data-l10n-id","bookmark",1,"secondaryToolbarButton","bookmark","visibleTinyView"],["fill","currentColor","d","M17,18L12,15.82L7,18V5H17M17,3H7A2,2 0 0,0 5,5V21L12,18L19,21V5C19,3.89 18.1,3 17,3Z"],["data-l10n-id","bookmark_label"],["type","button","id","firstPage","title","Go to First Page","data-l10n-id","first_page",1,"secondaryToolbarButton","firstPage","visibleLargeView"],["viewBox","0 0 24 24",2,"width","24px","height","24px"],["fill","currentColor","d","M18.41,16.59L13.82,12L18.41,7.41L17,6L11,12L17,18L18.41,16.59M6,6H8V18H6V6Z"],["data-l10n-id","first_page_label"],["type","button","id","previousPage","title","Go to Previous Page","data-l10n-id","previous",1,"secondaryToolbarButton","previousPage","visibleTinyView",3,"disabled","click"],["fill","currentColor","d","M15.41,16.58L10.83,12L15.41,7.41L14,6L8,12L14,18L15.41,16.58Z"],["data-l10n-id","previous_label"],["type","button","id","nextPage","title","Go to Next Page","data-l10n-id","next",1,"secondaryToolbarButton","nextPage","visibleTinyView",3,"disabled","click"],["fill","currentColor","d","M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z"],["data-l10n-id","next_label"],["type","button","id","lastPage","title","Go to Last Page","data-l10n-id","last_page",1,"secondaryToolbarButton","lastPage","visibleLargeView"],["fill","currentColor","d","M5.59,7.41L10.18,12L5.59,16.59L7,18L13,12L7,6L5.59,7.41M16,6H18V18H16V6Z"],["data-l10n-id","last_page_label"],["type","button","id","pageRotateCw","title","Rotate Clockwise","data-l10n-id","page_rotate_cw",1,"secondaryToolbarButton","rotateCw","visibleXLView"],["fill","currentColor","d","M12 3C7.03 3 3 7.03 3 12S7.03 21 12 21C14 21 15.92 20.34 17.5 19.14L16.06 17.7C14.87 18.54 13.45 19 12 19C8.13 19 5 15.87 5 12S8.13 5 12 5 19 8.13 19 12H16L20 16L24 12H21C21 7.03 16.97 3 12 3"],["data-l10n-id","page_rotate_cw_label"],["type","button","id","pageRotateCcw","title","Rotate Counterclockwise","data-l10n-id","page_rotate_ccw",1,"secondaryToolbarButton","rotateCcw","visibleXLView"],["fill","currentColor","d","M12 3C7.03 3 3 7.03 3 12H0L4 16L8 12H5C5 8.13 8.13 5 12 5S19 8.13 19 12 15.87 19 12 19C10.55 19 9.13 18.54 7.94 17.7L6.5 19.14C8.08 20.34 10 21 12 21C16.97 21 21 16.97 21 12S16.97 3 12 3"],["data-l10n-id","page_rotate_ccw_label"],["type","button","id","cursorSelectTool","title","Enable Text Selection Tool","data-l10n-id","cursor_text_select_tool",1,"secondaryToolbarButton","toggled","visibleXXLView"],["fill","currentColor","d","M2 4C2 2.89 2.9 2 4 2H7V4H4V7H2V4M22 4V7H20V4H17V2H20C21.1 2 22 2.89 22 4M2 20V17H4V20H7V22H4C2.9 22 2 21.11 2 20M10 2H14V4H10V2M10 20H14V22H10V20M2 10H4V14H2V10M18.5 13C20.4 13 22 14.6 22 16.5C22 19.1 18.5 23 18.5 23C18.5 23 15 19.1 15 16.5C15 14.6 16.6 13 18.5 13M18.5 17.8C19.2 17.8 19.8 17.2 19.7 16.6C19.7 16 19.1 15.4 18.5 15.4C17.9 15.4 17.3 15.9 17.3 16.6C17.3 17.2 17.8 17.8 18.5 17.8M20 10H22V12.34C21.42 11.84 20.74 11.45 20 11.23V10Z"],["data-l10n-id","cursor_text_select_tool_label"],["type","button","id","cursorHandTool","title","Enable Hand Tool","data-l10n-id","cursor_hand_tool",1,"secondaryToolbarButton","visibleXXLView"],["fill","currentColor","d","M13,6V11H18V7.75L22.25,12L18,16.25V13H13V18H16.25L12,22.25L7.75,18H11V13H6V16.25L1.75,12L6,7.75V11H11V6H7.75L12,1.75L16.25,6H13Z"],["data-l10n-id","cursor_hand_tool_label"],["type","button","id","scrollVertical","title","Use Vertical Scrolling","data-l10n-id","scroll_vertical",1,"secondaryToolbarButton","scrollVertical","toggled"],[2,"width","24px","height","24px","margin-top","3px"],["fill","currentColor","d","M9.5 4c1 0 1.5.5 1.5 1.5v5c0 1-.5 1.5-1.5 1.5h-3c-1 0-1.5-.5-1.5-1.5v-5C5 4.5 5.5 4 6.5 4zM11 0v.5c0 1-.5 1.5-1.5 1.5h-3C5.5 2 5 1.5 5 .5V0h6zM11 16v-.5c0-1-.5-1.5-1.5-1.5h-3c-1 0-1.5.5-1.5 1.5v.5h6z"],["data-l10n-id","scroll_vertical_label"],["type","button","id","scrollHorizontal","title","Use Horizontal Scrolling","data-l10n-id","scroll_horizontal",1,"secondaryToolbarButton","scrollHorizontal"],["fill","currentColor","d","M0 4h1.5c1 0 1.5.5 1.5 1.5v5c0 1-.5 1.5-1.5 1.5H0zM9.5 4c1 0 1.5.5 1.5 1.5v5c0 1-.5 1.5-1.5 1.5h-3c-1 0-1.5-.5-1.5-1.5v-5C5 4.5 5.5 4 6.5 4zM16 4h-1.5c-1 0-1.5.5-1.5 1.5v5c0 1 .5 1.5 1.5 1.5H16z"],["data-l10n-id","scroll_horizontal_label"],["type","button","id","scrollWrapped","title","Use Wrapped Scrolling","data-l10n-id","scroll_wrapped",1,"secondaryToolbarButton","scrollWrapped"],["fill","currentColor","d","M5.5 4c1 0 1.5.5 1.5 1.5v5c0 1-.5 1.5-1.5 1.5h-3c-1 0-1.5-.5-1.5-1.5v-5C1 4.5 1.5 4 2.5 4zM7 0v.5C7 1.5 6.5 2 5.5 2h-3C1.5 2 1 1.5 1 .5V0h6zM7 16v-.5c0-1-.5-1.5-1.5-1.5h-3c-1 0-1.5.5-1.5 1.5v.5h6zM13.5 4c1 0 1.5.5 1.5 1.5v5c0 1-.5 1.5-1.5 1.5h-3c-1 0-1.5-.5-1.5-1.5v-5c0-1 .5-1.5 1.5-1.5zM15 0v.5c0 1-.5 1.5-1.5 1.5h-3C9.5 2 9 1.5 9 .5V0h6zM15 16v-.507c0-1-.5-1.5-1.5-1.5h-3C9.5 14 9 14.5 9 15.5v.5h6z"],["data-l10n-id","scroll_wrapped_label"],["type","button","id","spreadNone","title","Do not join page spreads","data-l10n-id","spread_none",1,"secondaryToolbarButton","spreadNone","toggled",3,"click"],["height","16","width","16"],["fill","currentColor","d","M6 3c-1 0-1.5.5-1.5 1.5v7c0 1 .5 1.5 1.5 1.5h4c1 0 1.5-.5 1.5-1.5v-7c0-1-.5-1.5-1.5-1.5z"],["data-l10n-id","spread_none_label"],["type","button","id","spreadOdd","title","Join page spreads starting with odd-numbered pages","data-l10n-id","spread_odd",1,"secondaryToolbarButton","spreadOdd",3,"click"],["fill","currentColor","d","M10.56 3.5C9.56 3.5 9 4 9 5v6.5c0 1 .5 1.5 1.5 1.5h4c1 0 1.5-.5 1.5-1.5V5c0-1-.5-1.5-1.5-1.5zm1.93 1.2c.8 0 1.4.2 1.8.64.5.4.7 1 .7 1.7 0 .5-.2 1-.5 1.44-.2.3-.6.6-1 .93l-.6.4c-.4.3-.6.4-.7.55-.1.1-.2.2-.3.4h3.2v1.27h-5c0-.5.1-1 .3-1.43.2-.49.7-1 1.5-1.54.7-.5 1.1-.8 1.3-1.02.3-.3.4-.7.4-1.05 0-.3-.1-.6-.3-.77-.2-.2-.4-.3-.7-.3-.4 0-.7.2-.9.5-.1.2-.1.5-.2.9h-1.4c0-.6.2-1.1.3-1.5.4-.7 1.1-1.1 2-1.1zM1.54 3.5C.54 3.5 0 4 0 5v6.5c0 1 .5 1.5 1.54 1.5h4c1 0 1.5-.5 1.5-1.5V5c0-1-.5-1.5-1.5-1.5zm1.8 1.125H4.5V12H3V6.9H1.3v-1c.5 0 .8 0 .97-.03.33-.07.53-.17.73-.37.1-.2.2-.3.25-.5.05-.2.05-.3.05-.3z"],["data-l10n-id","spread_odd_label"],["type","button","id","spreadEven","title","Join page spreads starting with even-numbered pages","data-l10n-id","spread_even",1,"secondaryToolbarButton","spreadEven",3,"click"],["fill","currentColor","d","M1.5 3.5C.5 3.5 0 4 0 5v6.5c0 1 .5 1.5 1.5 1.5h4c1 0 1.5-.5 1.5-1.5V5c0-1-.5-1.5-1.5-1.5zm2 1.2c.8 0 1.4.2 1.8.6.5.4.7 1 .7 1.7 0 .5-.2 1-.5 1.4-.2.3-.5.7-1 1l-.6.4c-.4.3-.6.4-.75.56-.15.14-.25.24-.35.44H6v1.3H1c0-.6.1-1.1.3-1.5.3-.6.7-1 1.5-1.6.7-.4 1.1-.8 1.28-1 .32-.3.42-.6.42-1 0-.3-.1-.6-.23-.8-.17-.2-.37-.3-.77-.3s-.7.1-.9.5c-.04.2-.1.5-.1.9H1.1c0-.6.1-1.1.3-1.5.4-.7 1.1-1.1 2.1-1.1zM10.54 3.54C9.5 3.54 9 4 9 5v6.5c0 1 .5 1.5 1.54 1.5h4c.96 0 1.46-.5 1.46-1.5V5c0-1-.5-1.46-1.5-1.46zm1.9.95c.7 0 1.3.2 1.7.5.4.4.6.8.6 1.4 0 .4-.1.8-.4 1.1-.2.2-.3.3-.5.4.1 0 .3.1.6.3.4.3.5.8.5 1.4 0 .6-.2 1.2-.6 1.6-.4.5-1.1.7-1.9.7-1 0-1.8-.3-2.2-1-.14-.29-.24-.69-.24-1.29h1.4c0 .3 0 .5.1.7.2.4.5.5 1 .5.3 0 .5-.1.7-.3.2-.2.3-.5.3-.8 0-.5-.2-.8-.6-.95-.2-.05-.5-.15-1-.15v-1c.5 0 .8-.1 1-.14.3-.1.5-.4.5-.9 0-.3-.1-.5-.2-.7-.2-.2-.4-.3-.7-.3-.3 0-.6.1-.75.3-.2.2-.2.5-.2.86h-1.34c0-.4.1-.7.19-1.1 0-.12.2-.32.4-.62.2-.2.4-.3.7-.4.3-.1.6-.1 1-.1z"],["data-l10n-id","spread_even_label"],["type","button","id","documentProperties","title","Document Properties\u2026","data-l10n-id","document_properties",1,"secondaryToolbarButton","documentProperties"],["viewBox","0 0 16 16",2,"width","16px","height","16px","margin-top","3px"],["fill","currentColor","d","M8 16a8 8 0 1 1 8-8 8.009 8.009 0 0 1-8 8zM8 2a6 6 0 1 0 6 6 6.006 6.006 0 0 0-6-6z"],["fill","currentColor","d","M8 7a1 1 0 0 0-1 1v3a1 1 0 0 0 2 0V8a1 1 0 0 0-1-1z"],["fill","currentColor","cx","8","cy","5","r","1.188"],["data-l10n-id","document_properties_label"]],template:function(e,t){if(1&e&&($r(0,0),Fr(1,lS,104,48,"ng-template",null,1,zc)),2&e){const e=Br(2);Vr("ngTemplateOutlet",t.customSecondaryToolbar?t.customSecondaryToolbar:e)}},directives:[Ku],styles:["svg[_ngcontent-%COMP%]{position:absolute;display:inline-block;top:0;left:0}"]}),e})();const $S={SELECT:0,HAND:1,ZOOM:2};$S[$S.SELECT]="SELECT",$S[$S.HAND]="HAND",$S[$S.ZOOM]="ZOOM";class qS{constructor(e){this._zone=e,this.startX=0,this.startY=0,this.initialPinchDistance=0,this.pinchScale=1,this.isMobile()&&this.initializePinchZoom()}isMobile(){return"ontouchstart"in document.documentElement}onViewerTouchStart(e){if(this.initialPinchDistance=0,2===e.touches.length){const t=this.container.getBoundingClientRect();e.touches[0].pageX>=t.left&&e.touches[0].pageX<=t.right&&e.touches[0].pageY>=t.top&&e.touches[1].pageX>=t.left&&e.touches[1].pageX<=t.right&&e.touches[1].pageY>=t.top&&(this.startX=(e.touches[0].pageX+e.touches[1].pageX)/2,this.startY=(e.touches[0].pageY+e.touches[1].pageY)/2,this.initialPinchDistance=Math.hypot(e.touches[1].pageX-e.touches[0].pageX,e.touches[1].pageY-e.touches[0].pageY),e.preventDefault(),e.stopPropagation())}}onViewerTouchMove(e){const t=window.PDFViewerApplicationOptions;if(this.initialPinchDistance<=0||2!==e.touches.length)return;1!==this.pinchScale&&e.preventDefault();const n=Math.hypot(e.touches[1].pageX-e.touches[0].pageX,e.touches[1].pageY-e.touches[0].pageY),i=this.startX+this.container.scrollLeft,s=this.startY+this.container.scrollTop;this.pinchScale=n/this.initialPinchDistance;let o=Number(t.get("minZoom"));o||(o=.1),this.pinchScale<o&&(this.pinchScale=o);let r=Number(t.get("maxZoom"));r||(r=10),this.pinchScale>r&&(this.pinchScale=r),this.viewer.style.transform=`scale(${this.pinchScale})`,this.viewer.style.transformOrigin=`${i}px ${s}px`,e.preventDefault(),e.stopPropagation()}onViewerTouchEnd(e){const t=window.PDFViewerApplication;if(this.initialPinchDistance<=0)return;this.viewer.style.transform="none",this.viewer.style.transformOrigin="unset",t.pdfViewer.currentScale*=this.pinchScale;const n=this.container.getBoundingClientRect(),i=this.startY-n.top;this.container.scrollLeft+=(this.startX-n.left)*(this.pinchScale-1),this.container.scrollTop+=i*(this.pinchScale-1),this.resetPinchZoomParams(),e.preventDefault(),e.stopPropagation()}resetPinchZoomParams(){this.startX=this.startY=this.initialPinchDistance=0,this.pinchScale=1}initializePinchZoom(){this.viewer=document.getElementById("viewer"),this.container=document.getElementById("viewerContainer"),this._zone.runOutsideAngular(()=>{document.addEventListener("touchstart",this.onViewerTouchStart.bind(this)),document.addEventListener("touchmove",this.onViewerTouchMove.bind(this),{passive:!1}),document.addEventListener("touchend",this.onViewerTouchEnd.bind(this))})}destroyPinchZoom(){this.isMobile()&&(document.removeEventListener("touchstart",this.onViewerTouchStart),document.removeEventListener("touchmove",this.onViewerTouchMove),document.removeEventListener("touchend",this.onViewerTouchEnd))}}let YS=(()=>{class e{constructor(e,t){this.elementRef=e,this.ref=t,this.sidebarVisible=!0,this.showSidebarButton=!0,this.thumbnailDrawn=new yc,this.hideSidebarToolbar=!0}showToolbarWhenNecessary(){const e=this.elementRef.nativeElement.querySelectorAll("button");let t=0;e.forEach(e=>{e.hidden||t++}),this.hideSidebarToolbar=t<=1,this.ref.markForCheck()}}return e.\u0275fac=function(t){return new(t||e)(zr(rl),zr(Tl))},e.\u0275cmp=$e({type:e,selectors:[["pdf-sidebar"]],inputs:{sidebarVisible:"sidebarVisible",showSidebarButton:"showSidebarButton",sidebarPositionTop:"sidebarPositionTop",customSidebar:"customSidebar",customThumbnail:"customThumbnail"},outputs:{thumbnailDrawn:"thumbnailDrawn"},ngContentSelectors:uS,decls:4,vars:1,consts:[[4,"ngTemplateOutlet"],["defaultSidebar",""],["id","sidebarContainer"],["id","additionalSidebarContainer"],[3,"customThumbnail","hideSidebarToolbar","thumbnailDrawn"],["id","sidebarResizer",1,"hidden"]],template:function(e,t){if(1&e&&(sa(),Hr(0,"div"),Fr(1,cS,1,0,"ng-content",0),jr(),Fr(2,dS,5,6,"ng-template",null,1,zc)),2&e){const e=Br(3);no(1),Vr("ngTemplateOutlet",t.customSidebar?t.customSidebar:e)}},directives:function(){return[Ku,Nk,Vk]},styles:[""]}),e})(),ZS=(()=>{class e{constructor(e,t,n,i){this.ngZone=e,this.platformId=t,this.notificationService=n,this.location=i,this.customFindbarButtons=void 0,this.srcChange=new yc,this.authorization=void 0,this.httpHeaders=void 0,this.contextMenuAllowed=!0,this.afterPrint=new yc,this.beforePrint=new yc,this.currentZoomFactor=new yc,this.enablePrint=!0,this.delayFirstView=0,this.logLevel=NS.WARNINGS,this.enablePinchOnMobile=!1,this.minifiedJSLibraries=!0,this.primaryMenuVisible=!0,this.printResolution=null,this.rotationChange=new yc,this.minHeight=void 0,this._height="100%",this.useBrowserLocale=!1,this.backgroundColor="#e8e8eb",this.filenameForDownload="document.pdf",this.ignoreKeyboard=!1,this.ignoreKeys=[],this.acceptKeys=[],this.imageResourcesPath="./"+VS.assetsFolder+"/images/",this.language=void 0,this.listenToURL=!1,this.nameddest=void 0,this.password=void 0,this._showSidebarButton=!0,this.viewerPositionTop="32px",this.showUnverifiedSignatures=!1,this.showSidebarOnLoad=void 0,this.sidebarVisible=void 0,this.sidebarVisibleChange=new yc,this.showFindButton=void 0,this.showPagingButtons=!0,this.showZoomButtons=!0,this.showPresentationModeButton=!1,this.showOpenFileButton=!0,this.showPrintButton=!0,this.showDownloadButton=!0,this.showBookmarkButton=!0,this.theme="light",this.showSecondaryToolbarButton=!0,this.hideKebabMenuForSecondaryToolbar=!1,this.showRotateButton=!0,this.handTool=!0,this.handToolChange=new yc,this.showHandToolButton=!1,this.showScrollingButton=!0,this.showSpreadButton=!0,this.showPropertiesButton=!0,this.showBorders=!0,this.spreadChange=new yc,this.thumbnailDrawn=new yc,this._page=void 0,this.pageChange=new yc,this.pageLabel=void 0,this.pageLabelChange=new yc,this.pagesLoaded=new yc,this.pageRendered=new yc,this.pdfDownloaded=new yc,this.pdfLoaded=new yc,this.pdfLoadingFailed=new yc,this.textLayer=void 0,this.textlayerRendered=new yc,this.textLayerRendered=new yc,this.updateFindMatchesCount=new yc,this.updateFindState=new yc,this.zoom=void 0,this.zoomChange=new yc,this.zoomLevels=["auto","page-actual","page-fit","page-width",.5,1,1.25,1.5,2,3,4],this.maxZoom=10,this.minZoom=.1,this._mobileFriendlyZoom="100%",this.mobileFriendlyZoomScale=1,this.toolbarPaddingTop="0px",this.toolbarWidth="100%",this.toolbarWidthInPixels=100,this.secondaryToolbarTop=void 0,this.findbarTop=void 0,this.findbarLeft=void 0,this._top=void 0,this.shuttingDown=!1}set src(e){e instanceof Uint8Array?this._src=e.buffer:e instanceof Blob?this._src=URL.createObjectURL(e):"string"==typeof e?(this._src=e,e.length>980&&e.length%4==0&&/^[a-zA-Z\d\/+]+={0,2}$/.test(e)&&console.error("The URL looks like a base64 encoded string. If so, please use the attribute base64 instead of src")):this._src=e}set base64Src(e){const t=window.atob(e),n=t.length,i=new Uint8Array(n);for(let s=0;s<n;s++)i[s]=t.charCodeAt(s);this.src=i.buffer}set height(e){this.minHeight=void 0,e?this._height=e:this.height="100%",setTimeout(()=>{this.checkHeight()})}get height(){return this._height}get showSidebarButton(){return this._showSidebarButton}set showSidebarButton(e){this._showSidebarButton=e;let t=1;/msie\s|trident\//i.test(window.navigator.userAgent)&&(t=Number((this._mobileFriendlyZoom||"100").replace("%",""))/100),this.findbarLeft=this._showSidebarButton?(68*t).toString()+"px":"0px"}get page(){return this._page}set page(e){this._page=e?Number(e):void 0}get mobileFriendlyZoom(){return this._mobileFriendlyZoom}set mobileFriendlyZoom(e){"true"==e?e="150%":"false"!=e&&null!=e||(e="100%"),this._mobileFriendlyZoom=e;let t=1;String(e).includes("%")||(e=100*Number(e)+"%"),t=Number((e||"100").replace("%",""))/100,this.mobileFriendlyZoomScale=t,this.toolbarWidth=(100/t).toString()+"%",this.toolbarPaddingTop=8*(t-1)+"px",this.findbarLeft=this.showSidebarButton?(68*t).toString()+"px":"0px",this.secondaryToolbarTop=(36+36*(t-1)).toString()+"px",this.findbarTop=(36+52*(t-1)).toString()+"px"}set mobileZoom(e){this.mobileFriendlyZoom=e}get sidebarPositionTop(){return this._top?this._top:this.mobileFriendlyZoom?this.mobileFriendlyZoom.endsWith("%")?(2+.29*Number(this.mobileFriendlyZoom.substring(0,this.mobileFriendlyZoom.length-1))).toString()+"px":this.mobileFriendlyZoom.endsWith("px")?this.mobileFriendlyZoom:(16+.16*Number(this.mobileFriendlyZoom)).toString()+"px":"32px"}calcViewerPositionTop(){if(this._top)this.viewerPositionTop=this._top;else{if(this.mobileFriendlyZoom){if(this.mobileFriendlyZoom.endsWith("%")){const e=Number(this.mobileFriendlyZoom.substring(0,this.mobileFriendlyZoom.length-1));return void(this.viewerPositionTop=this.isPrimaryMenuVisible()?(1+.32*e).toString()+"px":"0")}if(this.mobileFriendlyZoom.endsWith("px"))return void(this.viewerPositionTop=this.mobileFriendlyZoom)}this.viewerPositionTop=this.isPrimaryMenuVisible()?"32px":"0"}}iOSVersionRequiresES5(){const e=navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/);return null!=e&&parseInt(e[1],10)<13}loadViewer(){if(window["pdfjs-dist/build/pdf"]){const e=!!window.MSInputMethodContext&&!!document.documentMode,t=/Edge\/\d./i.test(navigator.userAgent),n=this.iOSVersionRequiresES5(),i="undefined"==typeof ReadableStream||void 0===Promise.allSettled,s=this.minifiedJSLibraries?".min.js":".js",o=document.createElement("script"),r=VS.assetsFolder;i&&console.log("Using the ES5 version of the PDF viewer."),o.src=this.location.normalize(e||t||n||i?r+"/viewer-es5"+s:r+"/viewer"+s),o.type="text/javascript",o.async=!0,document.getElementsByTagName("head")[0].appendChild(o)}else setTimeout(()=>this.loadViewer(),25)}ngOnInit(){if(this.onResize(),hh(this.platformId)){if(!window["pdfjs-dist/build/pdf"]){const e=!!window.MSInputMethodContext&&!!document.documentMode,t=/Edge\/\d./i.test(navigator.userAgent),n="undefined"==typeof ReadableStream||void 0===Promise.allSettled,i=this.iOSVersionRequiresES5(),s=this.minifiedJSLibraries?".min.js":".js";if(this.minifiedJSLibraries&&!VS.workerSrc().endsWith(".min.js")){const e=VS.workerSrc();VS.workerSrc=()=>e.replace(".js",".min.js")}const o=VS.assetsFolder,r=document.createElement("script");r.src=this.location.normalize(e||t||i||n?o+"/pdf-es5"+s:o+"/pdf"+s),r.type="text/javascript",r.async=!0,document.getElementsByTagName("head")[0].appendChild(r)}window.webViewerLoad||this.loadViewer()}}ngAfterViewInit(){this.shuttingDown||(window.webViewerLoad?this.doInitPDFViewer():setTimeout(()=>this.ngAfterViewInit(),50))}assignTabindexes(){if(this.startTabindex){const e=this.root.nativeElement.cloneNode(!0);e.classList.add("offscreen"),this.showElementsRecursively(e),document.body.appendChild(e);const t=this.collectElementPositions(e,this.root.nativeElement,[]);document.body.removeChild(e);const n=t.sort((e,t)=>e.y-t.y>15?1:t.y-e.y>15?-1:e.x-t.x);for(let i=0;i<n.length;i++)n[i].element.tabIndex=this.startTabindex+i}}showElementsRecursively(e){if(e.classList.remove("hidden"),e.classList.remove("invisible"),e.classList.remove("hiddenXXLView"),e.classList.remove("hiddenXLView"),e.classList.remove("hiddenLargeView"),e.classList.remove("hiddenMediumView"),e.classList.remove("hiddenSmallView"),e.classList.remove("hiddenTinyView"),e.classList.remove("visibleXXLView"),e.classList.remove("visibleXLView"),e.classList.remove("visibleLargeView"),e.classList.remove("visibleMediumView"),e.classList.remove("visibleSmallView"),e.classList.remove("visibleTinyView"),!(e instanceof HTMLButtonElement||e instanceof HTMLAnchorElement||e instanceof HTMLInputElement||e instanceof HTMLSelectElement)&&e.childElementCount>0)for(let t=0;t<e.childElementCount;t++){const n=e.children.item(t);n&&this.showElementsRecursively(n)}}collectElementPositions(e,t,n){if(e instanceof HTMLButtonElement||e instanceof HTMLAnchorElement||e instanceof HTMLInputElement||e instanceof HTMLSelectElement){const i=e.getBoundingClientRect(),s={element:t,x:Math.round(i.left),y:Math.round(i.top)};n.push(s)}else if(e.childElementCount>0)for(let i=0;i<e.childElementCount;i++){const s=e.children.item(i),o=t.children.item(i);s&&o&&(n=this.collectElementPositions(s,o,n))}return n}doInitPDFViewer(){const t=document.querySelectorAll('link[type="application/l10n"]');if(0===t.length)document.querySelector('script[type="application/l10n"]')?this.useBrowserLocale&&console.error("Please set the attribute 'useBrowserLocale' to false if you provide the translations yourself in a script or link tag."):this.useBrowserLocale||(console.error("If you set the attribute 'useBrowserLocale' to false, you must provide the translations yourself in a script or link tag."),console.error("The easiest way to do this is to add them to the index.html."));else if(this.useBrowserLocale){const e=t[0].attributes.origin;e&&"ngx-extended-pdf-viewer"!==e.value&&console.error("Please set the attribute 'useBrowserLocale' to false if you provide the translations yourself in a script or link tag.")}const n=e=>{document.removeEventListener("localized",n),this.initTimeout=setTimeout(()=>{this.shuttingDown||(this.afterLibraryInit(),this.openPDF(),this.assignTabindexes())},this.delayFirstView)};window.addEventListener("afterprint",e=>{this.afterPrint.emit()}),window.addEventListener("beforeprint",e=>{this.beforePrint.emit()}),document.addEventListener("localized",n),e.ngxExtendedPdfViewerInitialized&&console.error("You're trying to open two instances of the PDF viewer. Most likely, this will result in errors.");const i=()=>{this.overrideDefaultSettings(),document.removeEventListener("webviewerloaded",i),this.enablePinchOnMobile&&(this.pinchOnMobileSupport=new qS(this.ngZone))};document.addEventListener("webviewerloaded",i),this.activateTextlayerIfNecessary(null),setTimeout(()=>{if(!this.shuttingDown){this.primaryMenuVisible=!0,this.hideKebabMenuForSecondaryToolbar&&!this.showSecondaryToolbarButton&&(this.isPrimaryMenuVisible()||(this.primaryMenuVisible=!1)),this.calcViewerPositionTop(),this.dummyComponents.addMissingStandardWidgets(),window.webViewerLoad();const e=window.PDFViewerApplication;e.appConfig.defaultUrl="",e.appConfig.filenameForDownload=this.filenameForDownload;const t=window.PDFViewerApplicationOptions;t.set("locale",this.language),t.set("imageResourcesPath",this.imageResourcesPath),t.set("minZoom",this.minZoom),t.set("maxZoom",this.maxZoom),e.isViewerEmbedded=!0,e.printKeyDownListener&&window.addEventListener("keydown",e.printKeyDownListener,!0);const n=document.getElementById("printContainer");n&&document.getElementsByTagName("body")[0].appendChild(n)}},0)}afterLibraryInit(){this.notificationService.onPDFJSInit.next()}checkHeight(){const e=document.getElementsByClassName("zoom")[0];if(e&&0===e.clientHeight&&this._height.includes("%")){let t=window.innerHeight-e.getBoundingClientRect().top;t=t*Number(this._height.replace("%",""))/100,this.minHeight=t>100?t+"px":"100px"}}onSpreadChange(e){this.spreadChange.emit(e)}activateTextlayerIfNecessary(e){void 0===this.textLayer?this.handTool?(e&&e.set("textLayerMode",this.showHandToolButton?1:0),this.showHandToolButton||((this.showFindButton||void 0===this.showFindButton)&&(this.ngZone.run(()=>{this.showFindButton=!1}),this.logLevel>=NS.WARNINGS&&console.warn('Hiding the "find" button because the text layer of the PDF file is not rendered. Use [textLayer]="true" to enable the find button.')),this.showHandToolButton&&this.logLevel>=NS.WARNINGS&&(console.warn('Hiding the "hand tool / selection mode" menu because the text layer of the PDF file is not rendered. Use [textLayer]="true" to enable the the menu items.'),this.showHandToolButton=!1))):(e&&e.set("textLayerMode",1),this.textLayer=!0,void 0===this.showFindButton&&(this.showFindButton=!0,setTimeout(()=>{const e=document.getElementById("viewFind");e&&e.classList.remove("invisible");const t=document.getElementById("findbar");t&&t.classList.remove("invisible")}))):this.textLayer?(e&&e.set("textLayerMode",1),this.textLayer=!0,void 0===this.showFindButton&&(this.showFindButton=!0,setTimeout(()=>{const e=document.getElementById("viewFind");e&&e.classList.remove("invisible");const t=document.getElementById("findbar");t&&t.classList.remove("invisible")}))):(e&&e.set("textLayerMode",0),this.textLayer=!1,this.showFindButton&&this.logLevel>=NS.WARNINGS&&(console.warn('Hiding the "find" button because the text layer of the PDF file is not rendered. Use [textLayer]="true" to enable the find button.'),this.ngZone.run(()=>{this.showFindButton=!1})),this.showHandToolButton&&this.logLevel>=NS.WARNINGS&&(console.warn('Hiding the "hand tool / selection mode" menu because the text layer of the PDF file is not rendered. Use [textLayer]="true" to enable the the menu items.'),this.showHandToolButton=!1))}overrideDefaultSettings(){const e=window.PDFViewerApplicationOptions;for(const i in VS)e.set(i,VS[i]);e.set("disablePreferences",!0),this.setZoom(),e.set("ignoreKeyboard",this.ignoreKeyboard),e.set("ignoreKeys",this.ignoreKeys),e.set("acceptKeys",this.acceptKeys),this.activateTextlayerIfNecessary(e);let t=this.sidebarVisible;void 0===t&&(t=this.showSidebarOnLoad);const n=window.PDFViewerApplication;void 0!==t&&(n.sidebarViewOnLoad=t?1:0,n.appConfig&&(n.appConfig.sidebarViewOnLoad=t?1:0),e.set("sidebarViewOnLoad",this.sidebarVisible?1:0)),"even"===this.spread?(e.set("spreadModeOnLoad",2),n.pdfViewer&&(n.pdfViewer.spreadMode=2),this.onSpreadChange("even")):"odd"===this.spread?(e.set("spreadModeOnLoad",1),n.pdfViewer&&(n.pdfViewer.spreadMode=1),this.onSpreadChange("odd")):(e.set("spreadModeOnLoad",0),n.pdfViewer&&(n.pdfViewer.spreadMode=0),this.onSpreadChange("off")),this.printResolution&&e.set("printResolution",this.printResolution),!1===this.showBorders&&e.set("removePageBorders",!this.showBorders)}openPDF(){ServiceWorkerOptions.showUnverifiedSignatures=this.showUnverifiedSignatures;const t=window.PDFViewerApplication;t.enablePrint=this.enablePrint,e.ngxExtendedPdfViewerInitialized=!0,this.onResize(),this.listenToURL||(t.pdfLinkService.setHash=function(){}),this.initTimeout=null,this.selectCursorTool(),t.eventBus.on("textlayerrendered",e=>{this.textlayerRendered.emit(e),this.textLayerRendered.emit(e)}),t.eventBus.on("pagesloaded",e=>{if(this.pagesLoaded.emit(e),this.rotation){const e=Number(this.rotation);0!==e&&90!==e&&180!==e&&270!==e||(t.pdfViewer.pagesRotation=e)}else t.pdfViewer.pagesRotation=0;setTimeout(()=>{this.shuttingDown||(this.nameddest?t.pdfLinkService.navigateTo(this.nameddest):this.page?t.page=Number(this.page):this.pageLabel&&(t.pdfViewer.currentPageLabel=this.pageLabel))}),this.setZoom()}),t.eventBus.on("pagerendered",e=>{this.ngZone.run(()=>{this.pageRendered.emit(e)})}),t.eventBus.on("download",e=>{this.ngZone.run(()=>{this.pdfDownloaded.emit(e)})}),t.eventBus.on("scalechanging",e=>{setTimeout(()=>{this.ngZone.run(()=>{this.currentZoomFactor.emit(e.scale);const t=this.root.nativeElement.querySelector("#scaleSelect");let n=this.zoom;t&&(n=t.value),"auto"!==n&&"page-fit"!==n&&"page-actual"!==n&&"page-width"!==n&&this.zoomChange.emit(100*e.scale)})})}),t.eventBus.on("rotationchanging",e=>{this.ngZone.run(()=>{this.rotationChange.emit(e.pagesRotation)})}),t.eventBus.on("fileinputchange",e=>{this.ngZone.run(()=>{const t=e.fileInput.value.replace("C:\\fakepath\\","");this.srcChange.emit(t)})}),t.eventBus.on("cursortoolchanged",e=>{this.ngZone.run(()=>{this.handToolChange.emit(e.tool===$S.HAND)})}),t.eventBus.on("sidebarviewchanged",e=>{this.ngZone.run(()=>{this.sidebarVisibleChange.emit(e.view>0),this.sidebarComponent&&this.sidebarComponent.showToolbarWhenNecessary()})});const n=()=>{this.ngZone.run(()=>{this.sidebarComponent&&this.sidebarComponent.showToolbarWhenNecessary()})};if(t.eventBus.on("outlineloaded",n),t.eventBus.on("attachmentsloaded",n),t.eventBus.on("layersloaded",n),t.eventBus.on("updatefindcontrolstate",e=>{this.updateFindMatchesCount&&(e.state===HS.NOT_FOUND?this.updateFindMatchesCount.emit({current:0,total:0}):e.matchesCount.total&&this.updateFindMatchesCount.emit(e.matchesCount)),this.updateFindState&&this.updateFindState.emit(e.state)}),t.eventBus.on("updatefindmatchescount",e=>{this.updateFindMatchesCount&&e.matchesCount.total&&this.updateFindMatchesCount.emit(e.matchesCount)}),t.eventBus.on("pagechanging",e=>{this.shuttingDown||this.ngZone.run(()=>{const e=t.pdfViewer.currentPageNumber,n=t.pdfViewer.currentPageLabel;e!==this.page&&this.pageChange.emit(e),n!==this.pageLabel&&this.pageLabelChange.emit(n)})}),this.checkHeight(),this._src){const e={password:this.password,verbosity:this.logLevel};this._src.range&&(e.range=this._src.range),this.httpHeaders&&(e.httpHeaders=this.httpHeaders),this.authorization&&(e.withCredentials=!0,e.httpHeaders?e.httpHeaders.Authorization||(e.httpHeaders.Authorization=this.authorization):e.httpHeaders={Authorization:this.authorization}),t.onError=e=>this.pdfLoadingFailed.emit(e),t.open(this._src,e).then(()=>this.pdfLoaded.emit({pagesCount:t.pagesCount}))}setTimeout(()=>{this.shuttingDown||this.page&&(t.page=Number(this.page))},100)}selectCursorTool(){window.PDFViewerApplication.eventBus.dispatch("switchcursortool",{tool:this.handTool?1:0})}ngOnDestroy(){const t=window.PDFViewerApplication;if(this.shuttingDown=!0,e.ngxExtendedPdfViewerInitialized=!1,this.initTimeout&&(clearTimeout(this.initTimeout),this.initTimeout=void 0),t){this.pinchOnMobileSupport&&(this.pinchOnMobileSupport.destroyPinchZoom(),this.pinchOnMobileSupport=void 0),t.cleanup(),t.close(),t.printKeyDownListener&&removeEventListener("keydown",t.printKeyDownListener,!0),t._boundEvents&&t.unbindWindowEvents();const e=t.eventBus;if(e){t.unbindEvents();for(const t in e._listeners)if(e._listeners[t]){const n=e._listeners[t];for(let e=0;e<n.length;e++)n[e]=void 0;e._listeners[t]=void 0}}t.eventBus=null}const n=document.getElementsByTagName("body");if(n[0]){const e=n[0].children;for(let t=e.length-1;t>=0;t--){const i=e.item(t);(i&&"printContainer"===i.id||i&&"fileInput"===i.id)&&n[0].removeChild(i)}}}isPrimaryMenuVisible(){return!!(this.showBookmarkButton||this.showDownloadButton||this.showFindButton||this.showOpenFileButton||this.showPagingButtons||this.showPresentationModeButton||this.showPrintButton||this.showPropertiesButton||this.showSidebarButton||this.showZoomButtons)}ngOnChanges(t){const n=window.PDFViewerApplication,i=window.PDFViewerApplicationOptions;if(e.ngxExtendedPdfViewerInitialized){if(("src"in t||"base64Src"in t)&&this._src){this.overrideDefaultSettings();const e={password:this.password,verbosity:this.logLevel};this._src.range&&(e.range=this._src.range),this.httpHeaders&&(e.httpHeaders=this.httpHeaders),this.authorization&&(e.withCredentials=!0,e.httpHeaders?e.httpHeaders.Authorization||(e.httpHeaders.Authorization=this.authorization):e.httpHeaders={Authorization:this.authorization}),n.open(this._src,e).then(()=>this.pdfLoaded.emit({pagesCount:n.pagesCount}),e=>this.pdfLoadingFailed.emit(e))}if("zoom"in t&&this.setZoom(),"maxZoom"in t&&i.set("maxZoom",this.maxZoom),"minZoom"in t&&i.set("minZoom",this.minZoom),"handTool"in t&&this.selectCursorTool(),"page"in t&&this.page&&this.page!=n.page&&(n.page=this.page),"pageLabel"in t&&this.pageLabel&&this.pageLabel!==n.pdfViewer.currentPageLabel&&(n.pdfViewer.currentPageLabel=this.pageLabel),"rotation"in t)if(this.rotation){const e=Number(this.rotation);0!==e&&90!==e&&180!==e&&270!==e||(n.pdfViewer.pagesRotation=e)}else n.pdfViewer.pagesRotation=0;"sidebarVisible"in t&&(this.sidebarVisible?n.pdfSidebar.open():n.pdfSidebar.close()),"filenameForDownload"in t&&(n.appConfig.filenameForDownload=this.filenameForDownload),"nameddest"in t&&this.nameddest&&n.pdfLinkService.navigateTo(this.nameddest),"spread"in t&&("even"===this.spread?(n.spreadModeOnLoad=2,n.pdfViewer.spreadMode=2,this.onSpreadChange("even")):"odd"===this.spread?(n.spreadModeOnLoad=1,n.pdfViewer.spreadMode=1,this.onSpreadChange("odd")):(n.spreadModeOnLoad=0,n.pdfViewer.spreadMode=0,this.onSpreadChange("off"))),"enablePinchOnMobile"in t&&(t.enablePinchOnMobile.isFirstChange()||t.enablePinchOnMobile.currentValue!==t.enablePinchOnMobile.previousValue&&(this.enablePinchOnMobile?this.pinchOnMobileSupport=new qS(this.ngZone):this.pinchOnMobileSupport&&(this.pinchOnMobileSupport.destroyPinchZoom(),this.pinchOnMobileSupport=void 0))),this.primaryMenuVisible=!0,this.showSecondaryToolbarButton&&!this.hideKebabMenuForSecondaryToolbar||this.isPrimaryMenuVisible()||(this.primaryMenuVisible=!1),this.calcViewerPositionTop()}if(this.onResize(),"printResolution"in t){const e=i;e&&e.set("printResolution",this.printResolution)}if("ignoreKeyboard"in t&&i&&this.overrideDefaultSettings(),"ignoreKeys"in t&&i&&this.overrideDefaultSettings(),"acceptKeys"in t&&i&&this.overrideDefaultSettings(),"showBorders"in t&&!t.showBorders.isFirstChange()&&i){this.overrideDefaultSettings();const e=document.getElementById("viewer");this.showBorders?e.classList.remove("removePageBorders"):e.classList.add("removePageBorders"),n.pdfViewer&&(n.pdfViewer.removePageBorders=!this.showBorders);const t={source:e,scale:(100|Number(this.zoom))/100,presetValue:this.zoom};n.eventBus.dispatch("scalechanging",t)}"showUnverifiedSignatures"in t&&n&&n.pdfDocument&&n.pdfDocument._transport.messageHandler.send("showUnverifiedSignatures",this.showUnverifiedSignatures),"enablePrint"in t&&(t.enablePrint.isFirstChange()||(n.enablePrint=this.enablePrint)),("customFindbar"in t&&!t.customFindbar.isFirstChange()||"customFindbarButtons"in t&&!t.customFindbarButtons.isFirstChange()||"customFindbarInputArea"in t&&!t.customFindbarInputArea.isFirstChange()||"customToolbar"in t&&!t.customToolbar.isFirstChange())&&this.dummyComponents&&this.dummyComponents.addMissingStandardWidgets()}setZoom(){let e=this.zoom;String(e).endsWith("%")?e=Number(String(e).replace("%",""))/100:isNaN(Number(e))||(e=Number(e)/100),e||(e="auto");const t=window.PDFViewerApplication;t&&window.PDFViewerApplicationOptions.set("defaultZoomValue",e),t.pdfViewer&&(t.pdfViewer.currentScaleValue=e)}onResize(){const e=document.getElementsByClassName("html");if(e&&e.length>0){const e=document.getElementById("outerContainer");e&&(this.toolbarWidthInPixels=e.clientWidth,this.secondaryToolbarComponent&&this.secondaryToolbarComponent.checkVisibility())}}onContextMenu(){return this.contextMenuAllowed}onSecondaryMenuIsEmpty(e){this.hideKebabMenuForSecondaryToolbar=e}}return e.\u0275fac=function(t){return new(t||e)(zr(ad),zr($c),zr(WS),zr(nu))},e.\u0275cmp=$e({type:e,selectors:[["ngx-extended-pdf-viewer"]],viewQuery:function(e,t){if(1&e&&(Tc(US,1),Tc(hS,1),Tc(pS,1),Tc(gS,1)),2&e){let e;Mc(e=Rc())&&(t.dummyComponents=e.first),Mc(e=Rc())&&(t.root=e.first),Mc(e=Rc())&&(t.secondaryToolbarComponent=e.first),Mc(e=Rc())&&(t.sidebarComponent=e.first)}},hostBindings:function(e,t){1&e&&Xr("contextmenu",function(){return t.onContextMenu()})},inputs:{customFindbarButtons:"customFindbarButtons",authorization:"authorization",httpHeaders:"httpHeaders",contextMenuAllowed:"contextMenuAllowed",enablePrint:"enablePrint",delayFirstView:"delayFirstView",logLevel:"logLevel",enablePinchOnMobile:"enablePinchOnMobile",minifiedJSLibraries:"minifiedJSLibraries",printResolution:"printResolution",useBrowserLocale:"useBrowserLocale",backgroundColor:"backgroundColor",filenameForDownload:"filenameForDownload",ignoreKeyboard:"ignoreKeyboard",ignoreKeys:"ignoreKeys",acceptKeys:"acceptKeys",imageResourcesPath:"imageResourcesPath",language:"language",listenToURL:"listenToURL",nameddest:"nameddest",password:"password",showUnverifiedSignatures:"showUnverifiedSignatures",showSidebarOnLoad:"showSidebarOnLoad",sidebarVisible:"sidebarVisible",showFindButton:"showFindButton",showPagingButtons:"showPagingButtons",showZoomButtons:"showZoomButtons",showPresentationModeButton:"showPresentationModeButton",showOpenFileButton:"showOpenFileButton",showPrintButton:"showPrintButton",showDownloadButton:"showDownloadButton",showBookmarkButton:"showBookmarkButton",theme:"theme",showSecondaryToolbarButton:"showSecondaryToolbarButton",showRotateButton:"showRotateButton",handTool:"handTool",showHandToolButton:"showHandToolButton",showScrollingButton:"showScrollingButton",showSpreadButton:"showSpreadButton",showPropertiesButton:"showPropertiesButton",showBorders:"showBorders",pageLabel:"pageLabel",textLayer:"textLayer",zoom:"zoom",zoomLevels:"zoomLevels",maxZoom:"maxZoom",minZoom:"minZoom",_mobileFriendlyZoom:"_mobileFriendlyZoom",src:"src",base64Src:"base64Src",height:"height",showSidebarButton:"showSidebarButton",page:"page",mobileFriendlyZoom:"mobileFriendlyZoom",mobileZoom:"mobileZoom",customFindbarInputArea:"customFindbarInputArea",customToolbar:"customToolbar",customFindbar:"customFindbar",customSecondaryToolbar:"customSecondaryToolbar",customSidebar:"customSidebar",customThumbnail:"customThumbnail",customFreeFloatingBar:"customFreeFloatingBar",rotation:"rotation",startTabindex:"startTabindex",spread:"spread"},outputs:{srcChange:"srcChange",afterPrint:"afterPrint",beforePrint:"beforePrint",currentZoomFactor:"currentZoomFactor",rotationChange:"rotationChange",sidebarVisibleChange:"sidebarVisibleChange",handToolChange:"handToolChange",spreadChange:"spreadChange",thumbnailDrawn:"thumbnailDrawn",pageChange:"pageChange",pageLabelChange:"pageLabelChange",pagesLoaded:"pagesLoaded",pageRendered:"pageRendered",pdfDownloaded:"pdfDownloaded",pdfLoaded:"pdfLoaded",pdfLoadingFailed:"pdfLoadingFailed",textlayerRendered:"textlayerRendered",textLayerRendered:"textLayerRendered",updateFindMatchesCount:"updateFindMatchesCount",updateFindState:"updateFindState",zoomChange:"zoomChange"},features:[dt],ngContentSelectors:uS,decls:66,vars:60,consts:[["rel","resource","type","application/l10n","href","assets/locale/locale.properties","origin","ngx-extended-pdf-viewer",4,"ngIf"],[4,"ngIf"],[3,"zoom","width"],[1,"zoom"],["root",""],[1,"html"],[1,"loadingInProgress","body"],["id","outerContainer",3,"resize"],[1,"free-floating-bar"],[4,"ngTemplateOutlet"],[3,"sidebarPositionTop","sidebarVisible","showSidebarButton","customSidebar","customThumbnail","thumbnailDrawn"],["pdfsidebar",""],["id","mainContainer"],[3,"customToolbar","mobileFriendlyZoomScale","primaryMenuVisible","showBookmarkButton","showDownloadButton","showFindButton","showHandToolButton","showOpenFileButton","showPrintButton","showPagingButtons","showPresentationModeButton","showRotateButton","showSecondaryToolbarButton","showSidebarButton","showZoomButtons","textLayer","toolbarPaddingTop","toolbarWidth","zoomLevels"],[3,"customSecondaryToolbar","secondaryToolbarTop","mobileFriendlyZoomScale","showPresentationModeButton","showOpenFileButton","showPrintButton","showDownloadButton","showBookmarkButton","showPagingButtons","showRotateButton","showHandToolButton","showScrollingButton","showSpreadButton","showPropertiesButton","spreadChange","secondaryMenuIsEmpty"],["pdfSecondaryToolbarComponent",""],[3,"findbarLeft","findbarTop","mobileFriendlyZoomScale","showFindButton","customFindbarInputArea","customFindbarButtons"],["id","viewerContainer"],["id","viewer",1,"pdfViewer"],["id","errorWrapper","hidden","true"],["id","errorMessageLeft"],["id","errorMessage"],["type","button","id","errorShowMore","data-l10n-id","error_more_info"],["type","button","id","errorShowLess","data-l10n-id","error_less_info","hidden","true"],["id","errorMessageRight"],["type","button","id","errorClose","data-l10n-id","error_close"],[1,"clearBoth"],["id","errorMoreInfo","hidden","true","readonly","readonly"],["id","overlayContainer",1,"hidden"],["id","passwordOverlay",1,"container","hidden"],[1,"dialog"],[1,"row"],["id","passwordText","data-l10n-id","password_label"],["id","password",1,"toolbarField"],[1,"buttonRow"],["type","button","id","passwordCancel",1,"overlayButton"],["data-l10n-id","password_cancel"],["type","button","id","passwordSubmit",1,"overlayButton"],["data-l10n-id","password_ok"],["id","documentPropertiesOverlay",1,"container","hidden"],["id","printServiceOverlay",1,"container","hidden"],["data-l10n-id","print_progress_message"],["value","0","max","100"],["data-l10n-id","print_progress_percent","data-l10n-args",'{ "progress": 0 }',1,"relative-progress"],["type","button","id","printCancel",1,"overlayButton"],["data-l10n-id","print_progress_close"],["id","printContainer"],["defaultFreeFloatingBar",""],["rel","resource","type","application/l10n","href","assets/locale/locale.properties","origin","ngx-extended-pdf-viewer"]],template:function(e,t){if(1&e&&(sa(),Fr(0,fS,1,0,"link",0),Fr(1,mS,1,0,"pdf-dark-theme",1),Fr(2,bS,1,0,"pdf-light-theme",1),Ur(3,"pdf-dynamic-css",2),Hr(4,"div",3,4),Hr(6,"div",5),Hr(7,"div",6),Hr(8,"div",7),Xr("resize",function(){return t.onResize()},!1,ps),Hr(9,"div",8),Fr(10,vS,1,0,"ng-content",9),jr(),Hr(11,"pdf-sidebar",10,11),Xr("thumbnailDrawn",function(e){return t.thumbnailDrawn.emit(e)}),jr(),Hr(13,"div",12),Ur(14,"pdf-dummy-components"),Ur(15,"pdf-toolbar",13),Hr(16,"pdf-secondary-toolbar",14,15),Xr("spreadChange",function(e){return t.onSpreadChange(e)})("secondaryMenuIsEmpty",function(e){return t.onSecondaryMenuIsEmpty(e)}),jr(),Ur(18,"pdf-findbar",16),Ur(19,"pdf-context-menu"),Hr(20,"div",17),Ur(21,"div",18),jr(),Hr(22,"div",19),Hr(23,"div",20),Ur(24,"span",21),Hr(25,"button",22),Da(26," More Information "),jr(),Hr(27,"button",23),Da(28," Less Information "),jr(),jr(),Hr(29,"div",24),Hr(30,"button",25),Da(31,"Close"),jr(),jr(),Ur(32,"div",26),Ur(33,"textarea",27),jr(),jr(),Hr(34,"div",28),Hr(35,"div",29),Hr(36,"div",30),Hr(37,"div",31),Hr(38,"p",32),Da(39," Enter the password to open this PDF file: "),jr(),jr(),Hr(40,"div",31),Ur(41,"input",33),jr(),Hr(42,"div",34),Hr(43,"button",35),Hr(44,"span",36),Da(45,"Cancel"),jr(),jr(),Hr(46,"button",37),Hr(47,"span",38),Da(48,"OK"),jr(),jr(),jr(),jr(),jr(),Ur(49,"pdf-document-properties-overlay",39),Hr(50,"div",40),Hr(51,"div",30),Hr(52,"div",31),Hr(53,"span",41),Da(54,"Preparing document for printing\u2026"),jr(),jr(),Hr(55,"div",31),Ur(56,"progress",42),Hr(57,"span",43),Da(58,"0%"),jr(),jr(),Hr(59,"div",34),Hr(60,"button",44),Hr(61,"span",45),Da(62,"Cancel"),jr(),jr(),jr(),jr(),jr(),jr(),jr(),Ur(63,"div",46),jr(),jr(),jr(),Fr(64,yS,0,0,"ng-template",null,47,zc)),2&e){const e=Br(65);Vr("ngIf",t.useBrowserLocale),no(1),Vr("ngIf","dark"===t.theme),no(1),Vr("ngIf","light"===t.theme),no(1),Vr("zoom",t.mobileFriendlyZoomScale)("width",t.toolbarWidthInPixels),no(1),fa("height",t.height)("min-height",t.minHeight),no(3),fa("background-color",t.backgroundColor),no(3),Vr("ngTemplateOutlet",t.customFreeFloatingBar?t.customFreeFloatingBar:e),no(1),Vr("sidebarPositionTop",t.sidebarPositionTop)("sidebarVisible",t.sidebarVisible)("showSidebarButton",t.showSidebarButton)("customSidebar",t.customSidebar)("customThumbnail",t.customThumbnail),no(4),Vr("customToolbar",t.customToolbar)("mobileFriendlyZoomScale",t.mobileFriendlyZoomScale)("primaryMenuVisible",t.primaryMenuVisible)("showBookmarkButton",t.showBookmarkButton)("showDownloadButton",t.showDownloadButton)("showFindButton",t.showFindButton)("showHandToolButton",t.showHandToolButton)("showOpenFileButton",t.showOpenFileButton)("showPrintButton",t.showPrintButton&&t.enablePrint)("showPagingButtons",t.showPagingButtons)("showPresentationModeButton",t.showPresentationModeButton)("showRotateButton",t.showRotateButton)("showSecondaryToolbarButton",t.showSecondaryToolbarButton&&!t.hideKebabMenuForSecondaryToolbar)("showSidebarButton",t.showSidebarButton)("showZoomButtons",t.showZoomButtons)("textLayer",t.textLayer)("toolbarPaddingTop",t.toolbarPaddingTop)("toolbarWidth",t.toolbarWidth)("zoomLevels",t.zoomLevels),no(1),Vr("customSecondaryToolbar",t.customSecondaryToolbar)("secondaryToolbarTop",t.secondaryToolbarTop)("mobileFriendlyZoomScale",t.mobileFriendlyZoomScale)("showPresentationModeButton",t.showPresentationModeButton)("showOpenFileButton",t.showOpenFileButton)("showPrintButton",t.showPrintButton&&t.enablePrint)("showDownloadButton",t.showDownloadButton)("showBookmarkButton",t.showBookmarkButton)("showPagingButtons",t.showPagingButtons)("showRotateButton",t.showRotateButton)("showHandToolButton",t.showHandToolButton)("showScrollingButton",t.showScrollingButton)("showSpreadButton",t.showSpreadButton)("showPropertiesButton",t.showPropertiesButton),no(2),Vr("findbarLeft",t.findbarLeft)("findbarTop",t.findbarTop)("mobileFriendlyZoomScale",t.mobileFriendlyZoomScale)("showFindButton",t.showFindButton)("customFindbarInputArea",t.customFindbarInputArea)("customFindbarButtons",t.customFindbarButtons),no(2),fa("top",t.viewerPositionTop),no(1),fa("background-color",t.backgroundColor)}},directives:function(){return[Wu,zk,Ku,YS,US,Tk,GS,nk,JS,ek,jk,Hk]},encapsulation:2,changeDetection:0}),e.ngxExtendedPdfViewerInitialized=!1,e})(),QS=(()=>{class e{constructor(){}findMultiple(e,t={}){t=Object.assign({},t,{findMultipleSearchTexts:!0});const n=e.join("\n")+"\n";return this.find(n,t)}find(e,t={}){if(ZS.ngxExtendedPdfViewerInitialized){const n=document.getElementById("findHighlightAll");n&&(n.checked=t.highlightAll||!1);const i=document.getElementById("findMatchCase");i&&(i.checked=t.matchCase||!1);const s=document.getElementById("findEntireWord");s&&(s.checked=t.wholeWords||!1);const o=document.getElementById("findIgnoreAccents");o&&(o.checked=t.ignoreAccents||!1);const r=t.findMultipleSearchTexts||e.includes("\n")||!1,a=document.getElementById("findMultipleSearchTexts");a&&(a.checked=r);const l=document.getElementById("individualWordsMode");l&&(l.checked=!1);const c=document.getElementById("findFuzzy");c&&(c.checked=t.fuzzySearch||!1);const d=r?document.getElementById("findInputMultiline"):document.getElementById("findInput");return d?(d instanceof HTMLTextAreaElement?(d.value=e,d.classList.remove("hidden"),document.getElementById("findInput").classList.add("hidden"),document.getElementById("individualWordsModeLabel").classList.remove("hidden"),document.getElementById("individualWordsMode").classList.remove("hidden")):d instanceof HTMLInputElement&&(d.value=e,d.classList.remove("hidden"),document.getElementById("findInputMultiline").classList.add("hidden"),document.getElementById("individualWordsModeLabel").classList.add("hidden"),document.getElementById("individualWordsMode").classList.add("hidden")),d.dispatchEvent(new Event("input")),!0):(console.error("Unexpected error: the input field used to search isn't part of the DOM."),!1)}return console.error("The PDF viewer hasn't finished initializing. Please call find() later."),!1}findNext(){if(ZS.ngxExtendedPdfViewerInitialized){const e=document.getElementById("findNext");return!!e&&(e.click(),!0)}return console.error("The PDF viewer hasn't finished initializing. Please call findNext() later."),!1}findPrevious(){if(ZS.ngxExtendedPdfViewerInitialized){const e=document.getElementById("findPrevious");return!!e&&(e.click(),!0)}return console.error("The PDF viewer hasn't finished initializing. Please call findPrevious() later."),!1}print(e){const t=window.PDFViewerApplication,n=!!window.isInPDFPrintRange&&!e;n||(e||(e={}),this.setPrintRange(e)),window.printPDF(),n||t.eventBus.on("afterprint",()=>{this.removePrintRange()})}removePrintRange(){window.isInPDFPrintRange=void 0,window.filteredPageCount=void 0}setPrintRange(e){const t=window.PDFViewerApplication;window.isInPDFPrintRange=t=>this.isInPDFPrintRange(t,e),window.filteredPageCount=this.filteredPageCount(t.pagesCount,e)}filteredPageCount(e,t){let n=0;for(let i=1;i<=e;i++)this.isInPDFPrintRange(i,t)&&n++;return n}isInPDFPrintRange(e,t){const n=e+1;return!(t.from&&n<t.from||t.to&&n>t.to||t.excluded&&t.excluded.some(e=>e===n)||t.included&&!t.included.some(e=>e===n))}getPageAsText_preview(e,t){return window.PDFViewerApplication.pdfDocument.getPage(e).then(e=>{e.getTextContent().then(e=>t(this.convertTextInfoToText(e)))})}getPageAsText(e){return window.PDFViewerApplication.pdfDocument.getPage(e).then(e=>new Promise((t,n)=>{t(e.getTextContent())})).then(e=>new Promise((t,n)=>{t(this.convertTextInfoToText(e))}))}convertTextInfoToText(e){return e?e.items.map(e=>e.str).join(""):""}getPageAsImage_preview(e,t,n,i){window.PDFViewerApplication.pdfDocument.getPage(e).then(e=>{this.draw_preview(e,t,n,i)}).catch(e=>{i?i({message:"Unable to initialize PDF page service",reason:e}):console.error("Unable to initialize PDF page service",e)})}getPageAsImage(e,t){return window.PDFViewerApplication.pdfDocument.getPage(e).then(e=>new Promise((n,i)=>{n(this.draw(e,t))}))}draw(e,t){let n=1;t.scale?n=t.scale:t.width?n=t.width/e.getViewport({scale:1}).width:t.height&&(n=t.height/e.getViewport({scale:1}).height);const i=e.getViewport({scale:n}),{ctx:s,canvas:o}=this.getPageDrawContext(i.width,i.height),r=i.clone();return e.render({canvasContext:s,viewport:r}).promise.then(()=>new Promise((e,t)=>{e(o.toDataURL())}))}draw_preview(e,t,n,i){let s=1;t.scale?s=t.scale:t.width?s=t.width/e.getViewport({scale:1}).width:t.height&&(s=t.height/e.getViewport({scale:1}).height);const o=e.getViewport({scale:s}),{ctx:r,canvas:a}=this.getPageDrawContext(o.width,o.height),l=o.clone();e.render({canvasContext:r,viewport:l}).promise.then(function(){const e=a.toDataURL();n(e)},function(e){i&&i(e)})}getPageDrawContext(e,t){const n=document.createElement("canvas"),i=n.getContext("2d",{alpha:!1});if(!i)throw new Error("Couldn't create the 2d context");return n.width=e,n.height=t,n.style.width=e+"px",n.style.height=t+"px",{ctx:i,canvas:n}}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=pe({token:e,factory:e.\u0275fac}),e})(),XS=(()=>{class e{constructor(e){this.notificationService=e,this.showHandToolButton=!0,this.isSelected=!1;const t=this.notificationService.onPDFJSInit.subscribe(()=>{this.onPdfJsInit(),t.unsubscribe()})}onPdfJsInit(){window.PDFViewerApplication.eventBus.on("cursortoolchanged",({tool:e})=>this.isSelected=e===$S.HAND)}onClick(){window.PDFViewerApplication.eventBus.dispatch("switchcursortool",{tool:$S.HAND})}}return e.\u0275fac=function(t){return new(t||e)(zr(WS))},e.\u0275cmp=$e({type:e,selectors:[["pdf-hand-tool"]],inputs:{showHandToolButton:"showHandToolButton"},decls:5,vars:4,consts:[["type","button","id","primaryCursorHandTool","title","Enable hand tool","data-l10n-id","cursor_hand_tool",1,"toolbarButton","hiddenXXLView",3,"click"],["viewBox","0 0 24 24",2,"width","22px","height","22px"],["fill","currentColor","d","M13,6V11H18V7.75L22.25,12L18,16.25V13H13V18H16.25L12,22.25L7.75,18H11V13H6V16.25L1.75,12L6,7.75V11H11V6H7.75L12,1.75L16.25,6H13Z"],["data-l10n-id","cursor_hand_tool_label"]],template:function(e,t){1&e&&(Hr(0,"button",0),Xr("click",function(){return t.onClick()}),dn(),Hr(1,"svg",1),Ur(2,"path",2),jr(),un(),Hr(3,"span",3),Da(4,"Hand Tool"),jr(),jr()),2&e&&ma("invisible",!t.showHandToolButton)("toggled",t.isSelected)},styles:["[_nghost-%COMP%]{margin-top:0}[_nghost-%COMP%]:focus{outline:0}button[_ngcontent-%COMP%]:focus, svg[_ngcontent-%COMP%]:focus{outline:0}.toggled[_ngcontent-%COMP%]{background-color:#646464;border-color:rgba(0,0,0,.4) rgba(0,0,0,.45) rgba(0,0,0,.5);box-shadow:0 1px 1px rgba(0,0,0,.1) inset,0 0 1px rgba(0,0,0,.2) inset,0 1px 0 rgba(255,255,255,.05)}"]}),e})(),KS=(()=>{class e{constructor(){this.showBookmarkButton=!0}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=$e({type:e,selectors:[["pdf-bookmark"]],inputs:{showBookmarkButton:"showBookmarkButton"},decls:5,vars:2,consts:[["href","#","id","viewBookmark","title","Current view (copy or open in new window)","data-l10n-id","bookmark",1,"toolbarButton","hiddenTinyView"],["viewBox","0 0 24 24",2,"width","24px","height","24px"],["fill","currentColor","d","M17,18L12,15.82L7,18V5H17M17,3H7A2,2 0 0,0 5,5V21L12,18L19,21V5C19,3.89 18.1,3 17,3Z"],["data-l10n-id","bookmark_label"]],template:function(e,t){1&e&&(Hr(0,"a",0),dn(),Hr(1,"svg",1),Ur(2,"path",2),jr(),un(),Hr(3,"span",3),Da(4,"Current View"),jr(),jr()),2&e&&ma("invisible",!t.showBookmarkButton)},styles:["[_nghost-%COMP%]   a.toolbarButton[_ngcontent-%COMP%]   svg[_ngcontent-%COMP%]{margin-top:4px}[_nghost-%COMP%]:focus{outline:0}a[_ngcontent-%COMP%]:focus, svg[_ngcontent-%COMP%]:focus{outline:0}"]}),e})(),JS=(()=>{class e{constructor(){}ngOnInit(){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=$e({type:e,selectors:[["pdf-context-menu"]],decls:5,vars:0,consts:[["type","context","id","viewerContextMenu",2,"display","none"],["id","contextFirstPage",2,"display","none"],["id","contextLastPage",2,"display","none"],["id","contextPageRotateCw",2,"display","none"],["id","contextPageRotateCcw",2,"display","none"]],template:function(e,t){1&e&&(Hr(0,"div",0),Ur(1,"div",1),Ur(2,"div",2),Ur(3,"div",3),Ur(4,"div",4),jr())},styles:["[_nghost-%COMP%]{margin-top:4px}"]}),e})(),ek=(()=>{class e{constructor(){}ngOnInit(){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=$e({type:e,selectors:[["pdf-document-properties-overlay"]],decls:77,vars:0,consts:[[1,"dialog"],[1,"row"],["data-l10n-id","document_properties_file_name"],["id","fileNameField"],["data-l10n-id","document_properties_file_size"],["id","fileSizeField"],["data-l10n-id","document_properties_title"],["id","titleField"],["data-l10n-id","document_properties_author"],["id","authorField"],["data-l10n-id","document_properties_subject"],["id","subjectField"],["data-l10n-id","document_properties_keywords"],["id","keywordsField"],["data-l10n-id","document_properties_creation_date"],["id","creationDateField"],["data-l10n-id","document_properties_modification_date"],["id","modificationDateField"],["data-l10n-id","document_properties_creator"],["id","creatorField"],["data-l10n-id","document_properties_producer"],["id","producerField"],["data-l10n-id","document_properties_version"],["id","versionField"],["data-l10n-id","document_properties_page_count"],["id","pageCountField"],["data-l10n-id","document_properties_page_size"],["id","pageSizeField"],[1,"separator"],["data-l10n-id","document_properties_linearized"],["id","linearizedField"],[1,"buttonRow"],["type","button","id","documentPropertiesClose",1,"overlayButton"],["data-l10n-id","document_properties_close"]],template:function(e,t){1&e&&(Hr(0,"div"),Hr(1,"div",0),Hr(2,"div",1),Hr(3,"span",2),Da(4,"File name:"),jr(),Hr(5,"p",3),Da(6,"-"),jr(),jr(),Hr(7,"div",1),Hr(8,"span",4),Da(9,"File size:"),jr(),Hr(10,"p",5),Da(11,"-"),jr(),jr(),Hr(12,"div",1),Hr(13,"span",6),Da(14,"Title:"),jr(),Hr(15,"p",7),Da(16,"-"),jr(),jr(),Hr(17,"div",1),Hr(18,"span",8),Da(19,"Author:"),jr(),Hr(20,"p",9),Da(21,"-"),jr(),jr(),Hr(22,"div",1),Hr(23,"span",10),Da(24,"Subject:"),jr(),Hr(25,"p",11),Da(26,"-"),jr(),jr(),Hr(27,"div",1),Hr(28,"span",12),Da(29,"Keywords:"),jr(),Hr(30,"p",13),Da(31,"-"),jr(),jr(),Hr(32,"div",1),Hr(33,"span",14),Da(34,"Creation Date:"),jr(),Hr(35,"p",15),Da(36,"-"),jr(),jr(),Hr(37,"div",1),Hr(38,"span",16),Da(39,"Modification Date:"),jr(),Hr(40,"p",17),Da(41,"-"),jr(),jr(),Hr(42,"div",1),Hr(43,"span",18),Da(44,"Creator:"),jr(),Hr(45,"p",19),Da(46,"-"),jr(),jr(),Hr(47,"div",1),Hr(48,"span",20),Da(49,"PDF Producer:"),jr(),Hr(50,"p",21),Da(51,"-"),jr(),jr(),Hr(52,"div",1),Hr(53,"span",22),Da(54,"PDF Version:"),jr(),Hr(55,"p",23),Da(56,"-"),jr(),jr(),Hr(57,"div",1),Hr(58,"span",24),Da(59,"Page Count:"),jr(),Hr(60,"p",25),Da(61,"-"),jr(),jr(),Hr(62,"div",1),Hr(63,"span",26),Da(64,"Page Size:"),jr(),Hr(65,"p",27),Da(66,"-"),jr(),jr(),Ur(67,"div",28),Hr(68,"div",1),Hr(69,"span",29),Da(70,"Fast Web View:"),jr(),Hr(71,"p",30),Da(72,"-"),jr(),jr(),Hr(73,"div",31),Hr(74,"button",32),Hr(75,"span",33),Da(76,"Close"),jr(),jr(),jr(),jr(),jr())},styles:[""]}),e})(),tk=(()=>{class e{constructor(){this.showDownloadButton=!0}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=$e({type:e,selectors:[["pdf-download"]],inputs:{showDownloadButton:"showDownloadButton"},decls:5,vars:2,consts:[["type","button","id","download","title","Download","data-l10n-id","download",1,"toolbarButton","hiddenSmallView"],["viewBox","0 0 24 24",2,"width","20px","height","20px"],["fill","currentColor","d","M14,2L20,8V20A2,2 0 0,1 18,22H6A2,2 0 0,1 4,20V4A2,2 0 0,1 6,2H14M18,20V9H13V4H6V20H18M12,19L8,15H10.5V12H13.5V15H16L12,19Z"],["data-l10n-id","download_label"]],template:function(e,t){1&e&&(Hr(0,"button",0),dn(),Hr(1,"svg",1),Ur(2,"path",2),jr(),un(),Hr(3,"span",3),Da(4,"Download"),jr(),jr()),2&e&&ma("invisible",!t.showDownloadButton)},styles:[CS]}),e})(),nk=(()=>{class e{constructor(){this.showFindButton=!0}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=$e({type:e,selectors:[["pdf-findbar"]],inputs:{showFindButton:"showFindButton",mobileFriendlyZoomScale:"mobileFriendlyZoomScale",findbarLeft:"findbarLeft",findbarTop:"findbarTop",customFindbarInputArea:"customFindbarInputArea",customFindbar:"customFindbar",customFindbarButtons:"customFindbarButtons"},decls:5,vars:1,consts:[[3,"ngTemplateOutlet"],["defaultFindbar",""],["defaultFindbarButtons",""],["id","findbar",1,"findbar","hidden","doorHanger"],[3,"customFindbarInputArea"]],template:function(e,t){if(1&e&&($r(0,0),Fr(1,wS,2,11,"ng-template",null,1,zc),Fr(3,_S,5,1,"ng-template",null,2,zc)),2&e){const e=Br(2);Vr("ngTemplateOutlet",t.customFindbar?t.customFindbar:e)}},directives:function(){return[Ku,hk,sk,rk,ok,ik]},styles:[""]}),e})(),ik=(()=>{class e{constructor(){}ngOnInit(){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=$e({type:e,selectors:[["pdf-findbar-message-container"]],decls:2,vars:0,consts:[["id","findbarMessageContainer"],["id","findMsg",1,"toolbarLabel"]],template:function(e,t){1&e&&(Hr(0,"div",0),Ur(1,"span",1),jr())},styles:[""]}),e})(),sk=(()=>{class e{constructor(){}ngOnInit(){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=$e({type:e,selectors:[["pdf-findbar-options-one-container"]],decls:3,vars:0,consts:[["id","findbarOptionsOneContainer"]],template:function(e,t){1&e&&(Hr(0,"div",0),Ur(1,"pdf-find-highlight-all"),Ur(2,"pdf-find-match-case"),jr())},directives:function(){return[dk,pk]},styles:[""]}),e})(),ok=(()=>{class e{constructor(){}ngOnInit(){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=$e({type:e,selectors:[["pdf-findbar-options-three-container"]],decls:4,vars:0,consts:[["id","findbarOptionsThreeContainer"]],template:function(e,t){1&e&&(Hr(0,"div",0),Ur(1,"pdf-find-ignore-accents"),Ur(2,"pdf-find-fuzzily"),Ur(3,"pdf-find-results-count"),jr())},directives:function(){return[uk,ck,vk]},styles:[""]}),e})(),rk=(()=>{class e{constructor(){}ngOnInit(){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=$e({type:e,selectors:[["pdf-findbar-options-two-container"]],decls:3,vars:0,consts:[["id","findbarOptionsTwoContainer"]],template:function(e,t){1&e&&(Hr(0,"div",0),Ur(1,"pdf-find-entire-word"),Ur(2,"pdf-find-entire-phrase"),jr())},directives:function(){return[lk,fk]},styles:[""]}),e})(),ak=(()=>{class e{constructor(){this.showFindButton=void 0,this.textLayer=void 0}ngOnInit(){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=$e({type:e,selectors:[["pdf-find-button"]],inputs:{showFindButton:"showFindButton",textLayer:"textLayer"},decls:5,vars:2,consts:[["type","button","id","viewFind","title","Find in Document","data-l10n-id","findbar",1,"toolbarButton"],["viewBox","0 0 24 24",2,"width","24px","height","24px"],["fill","currentColor","d","M9.5,3A6.5,6.5 0 0,1 16,9.5C16,11.11 15.41,12.59 14.44,13.73L14.71,14H15.5L20.5,19L19,20.5L14,15.5V14.71L13.73,14.44C12.59,15.41 11.11,16 9.5,16A6.5,6.5 0 0,1 3,9.5A6.5,6.5 0 0,1 9.5,3M9.5,5C7,5 5,7 5,9.5C5,12 7,14 9.5,14C12,14 14,12 14,9.5C14,7 12,5 9.5,5Z"],["data-l10n-id","findbar_label"]],template:function(e,t){1&e&&(Hr(0,"button",0),dn(),Hr(1,"svg",1),Ur(2,"path",2),jr(),un(),Hr(3,"span",3),Da(4,"Find"),jr(),jr()),2&e&&ma("invisible",!t.showFindButton||!t.textLayer)},styles:[ES]}),e})(),lk=(()=>{class e{constructor(){}ngOnInit(){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=$e({type:e,selectors:[["pdf-find-entire-word"]],decls:3,vars:0,consts:[["type","checkbox","id","findEntireWord",1,"toolbarField"],["for","findEntireWord","data-l10n-id","find_entire_word_label",1,"toolbarLabel"]],template:function(e,t){1&e&&(Ur(0,"input",0),Hr(1,"label",1),Da(2," Whole words\n"),jr())},styles:[""]}),e})(),ck=(()=>{class e{constructor(){}ngOnInit(){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=$e({type:e,selectors:[["pdf-find-fuzzily"]],decls:3,vars:0,consts:[["type","checkbox","id","findFuzzy",1,"toolbarField"],["for","findFuzzy","data-l10n-id","find_fuzzy",1,"toolbarLabel"]],template:function(e,t){1&e&&(Ur(0,"input",0),Hr(1,"label",1),Da(2," Fuzzy search\n"),jr())},styles:[""]}),e})(),dk=(()=>{class e{constructor(){}ngOnInit(){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=$e({type:e,selectors:[["pdf-find-highlight-all"]],decls:3,vars:0,consts:[["type","checkbox","id","findHighlightAll",1,"toolbarField"],["for","findHighlightAll","data-l10n-id","find_highlight",1,"toolbarLabel"]],template:function(e,t){1&e&&(Ur(0,"input",0),Hr(1,"label",1),Da(2," Highlight all\n"),jr())},styles:[""]}),e})(),uk=(()=>{class e{constructor(){}ngOnInit(){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=$e({type:e,selectors:[["pdf-find-ignore-accents"]],decls:3,vars:0,consts:[["type","checkbox","id","findIgnoreAccents",1,"toolbarField"],["for","findIgnoreAccents","data-l10n-id","find_ignore_accents",1,"toolbarLabel"]],template:function(e,t){1&e&&(Ur(0,"input",0),Hr(1,"label",1),Da(2," Ignore accents and diacritics\n"),jr())},styles:[""]}),e})(),hk=(()=>{class e{constructor(){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=$e({type:e,selectors:[["pdf-find-input-area"]],inputs:{customFindbarInputArea:"customFindbarInputArea"},decls:2,vars:2,consts:[["id","findbarInputContainer",4,"ngIf"],[3,"ngTemplateOutlet"],["id","findbarInputContainer"]],template:function(e,t){1&e&&(Fr(0,xS,4,0,"div",0),$r(1,1)),2&e&&(Vr("ngIf",!t.customFindbarInputArea),no(1),Vr("ngTemplateOutlet",t.customFindbarInputArea))},directives:function(){return[Wu,Ku,Dk,bk,mk]},styles:[""]}),e})(),pk=(()=>{class e{constructor(){}ngOnInit(){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=$e({type:e,selectors:[["pdf-find-match-case"]],decls:3,vars:0,consts:[["type","checkbox","id","findMatchCase",1,"toolbarField"],["for","findMatchCase","data-l10n-id","find_match_case_label",1,"toolbarLabel"]],template:function(e,t){1&e&&(Ur(0,"input",0),Hr(1,"label",1),Da(2," Match case\n"),jr())},styles:[""]}),e})(),gk=(()=>{class e{constructor(){this.individualWordsMode=!0,this.multipleSearchTexts=!1}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=pe({token:e,factory:e.\u0275fac,providedIn:"root"}),e.ngInjectableDef=ge({factory:function(){return new e},token:e,providedIn:"root"}),e})(),fk=(()=>{class e{constructor(e){this.pdfFindbarService=e}ngOnInit(){}}return e.\u0275fac=function(t){return new(t||e)(zr(gk))},e.\u0275cmp=$e({type:e,selectors:[["pdf-find-entire-phrase"]],decls:6,vars:6,consts:[["type","checkbox","id","findMultipleSearchTexts",1,"toolbarField",3,"ngModel","ngModelChange"],["for","findMultipleSearchTexts","data-l10n-id","find_multiple_texts_label",1,"toolbarLabel"],["type","checkbox","id","individualWordsMode",1,"toolbarField",3,"ngModel","ngModelChange"],["for","individualWordsMode","id","individualWordsModeLabel","data-l10n-id","find_individual_words_label",1,"toolbarLabel"]],template:function(e,t){1&e&&(Hr(0,"input",0),Xr("ngModelChange",function(e){return t.pdfFindbarService.multipleSearchTexts=e}),jr(),Hr(1,"label",1),Da(2," multiple search texts\n"),jr(),Hr(3,"input",2),Xr("ngModelChange",function(e){return t.pdfFindbarService.individualWordsMode=e}),jr(),Hr(4,"label",3),Da(5," separated by word boundaries\n"),jr()),2&e&&(Vr("ngModel",t.pdfFindbarService.multipleSearchTexts),no(3),ma("hidden",!t.pdfFindbarService.multipleSearchTexts),Vr("ngModel",t.pdfFindbarService.individualWordsMode),no(1),ma("hidden",!t.pdfFindbarService.multipleSearchTexts))},directives:[Df,rm,Rm],styles:[""]}),e})(),mk=(()=>{class e{constructor(){}ngOnInit(){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=$e({type:e,selectors:[["pdf-find-next"]],decls:5,vars:0,consts:[["type","button","id","findNext","title","Find the next occurrence of the phrase","data-l10n-id","find_next",1,"toolbarButton"],["viewBox","0 0 24 24",2,"width","24px","height","24px"],["fill","currentColor","d","M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z"],["data-l10n-id","find_next_label"]],template:function(e,t){1&e&&(Hr(0,"button",0),dn(),Hr(1,"svg",1),Ur(2,"path",2),jr(),un(),Hr(3,"span",3),Da(4,"Next"),jr(),jr())},styles:["button.toolbarButton#findNext[_ngcontent-%COMP%]{margin-top:0}"]}),e})(),bk=(()=>{class e{constructor(){}ngOnInit(){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=$e({type:e,selectors:[["pdf-find-previous"]],decls:5,vars:0,consts:[["type","button","id","findPrevious","title","Find the previous occurrence of the phrase","data-l10n-id","find_previous",1,"toolbarButton"],["viewBox","0 0 24 24",2,"width","24px","height","24px"],["fill","currentColor","d","M15.41,16.58L10.83,12L15.41,7.41L14,6L8,12L14,18L15.41,16.58Z"],["data-l10n-id","find_previous_label"]],template:function(e,t){1&e&&(Hr(0,"button",0),dn(),Hr(1,"svg",1),Ur(2,"path",2),jr(),un(),Hr(3,"span",3),Da(4,"Previous"),jr(),jr())},styles:["button.toolbarButton#findPrevious[_ngcontent-%COMP%]{margin-top:0}"]}),e})(),vk=(()=>{class e{constructor(){}ngOnInit(){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=$e({type:e,selectors:[["pdf-find-results-count"]],decls:1,vars:0,consts:[["id","findResultsCount",1,"toolbarLabel","hidden"]],template:function(e,t){1&e&&Ur(0,"span",0)},styles:[""]}),e})(),yk=(()=>{class e{constructor(e){this.notificationService=e,this.disableFirstPage=!0;const t=this.notificationService.onPDFJSInit.subscribe(()=>{this.onPdfJsInit(),t.unsubscribe()})}firstPage(){window.PDFViewerApplication.eventBus.dispatch("firstpage")}onPdfJsInit(){window.PDFViewerApplication.eventBus.on("updateuistate",e=>this.updateUIState(e))}updateUIState(e){this.disableFirstPage=e.pageNumber<=1,this.button.nativeElement.disabled=this.disableFirstPage}}return e.\u0275fac=function(t){return new(t||e)(zr(WS))},e.\u0275cmp=$e({type:e,selectors:[["pdf-first-page"]],viewQuery:function(e,t){if(1&e&&Tc(AS,1),2&e){let e;Mc(e=Rc())&&(t.button=e.first)}},decls:6,vars:1,consts:[["type","button","title","First page","id","primaryFirstPage","data-l10n-id","first_page",1,"toolbarButton","hiddenLargeView",3,"disabled","click"],["button",""],["viewBox","0 0 24 24",2,"width","24px","height","24px"],["fill","currentColor","d","M18.41,16.59L13.82,12L18.41,7.41L17,6L11,12L17,18L18.41,16.59M6,6H8V18H6V6Z"],["data-l10n-id","first_page_label"]],template:function(e,t){1&e&&(Hr(0,"button",0,1),Xr("click",function(){return t.firstPage()}),dn(),Hr(2,"svg",2),Ur(3,"path",3),jr(),un(),Hr(4,"span",4),Da(5,"First page"),jr(),jr()),2&e&&Vr("disabled",t.disableFirstPage)},styles:[""]}),e})(),wk=(()=>{class e{constructor(e){this.notificationService=e,this.disableLastPage=!0;const t=this.notificationService.onPDFJSInit.subscribe(()=>{this.onPdfJsInit(),t.unsubscribe()})}firstPage(){window.PDFViewerApplication.eventBus.dispatch("firstpage")}onPdfJsInit(){window.PDFViewerApplication.eventBus.on("updateuistate",e=>this.updateUIState(e))}updateUIState(e){this.disableLastPage=e.pageNumber===e.pagesCount,this.button.nativeElement.disabled=this.disableLastPage}lastPage(){window.PDFViewerApplication.eventBus.dispatch("lastpage")}}return e.\u0275fac=function(t){return new(t||e)(zr(WS))},e.\u0275cmp=$e({type:e,selectors:[["pdf-last-page"]],viewQuery:function(e,t){if(1&e&&Tc(AS,1),2&e){let e;Mc(e=Rc())&&(t.button=e.first)}},decls:6,vars:1,consts:[["type","button","title","Last page","id","primaryLastPage","data-l10n-id","last_page",1,"toolbarButton","hiddenLargeView",3,"disabled","click"],["button",""],["viewBox","0 0 24 24",2,"width","24px","height","24px"],["fill","currentColor","d","M5.59,7.41L10.18,12L5.59,16.59L7,18L13,12L7,6L5.59,7.41M16,6H18V18H16V6Z"],["data-l10n-id","last_page_label"]],template:function(e,t){1&e&&(Hr(0,"button",0,1),Xr("click",function(){return t.lastPage()}),dn(),Hr(2,"svg",2),Ur(3,"path",3),jr(),un(),Hr(4,"span",4),Da(5,"Last page"),jr(),jr()),2&e&&Vr("disabled",t.disableLastPage)},styles:[""]}),e})(),_k=(()=>{class e{constructor(){}ngOnInit(){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=$e({type:e,selectors:[["pdf-next-page"]],decls:5,vars:0,consts:[["type","button","title","Next Page","id","next","data-l10n-id","next",1,"toolbarButton"],["viewBox","0 0 24 24",2,"width","24px","height","24px"],["fill","currentColor","d","M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z"],["data-l10n-id","next_label"]],template:function(e,t){1&e&&(Hr(0,"button",0),dn(),Hr(1,"svg",1),Ur(2,"path",2),jr(),un(),Hr(3,"span",3),Da(4,"Next"),jr(),jr())},styles:[""]}),e})(),xk=(()=>{class e{constructor(){this.showOpenFileButton=!0}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=$e({type:e,selectors:[["pdf-open-file"]],inputs:{showOpenFileButton:"showOpenFileButton"},decls:5,vars:2,consts:[["type","button","id","openFile","title","Open File","data-l10n-id","open_file",1,"toolbarButton","hiddenMediumView"],["viewBox","0 0 24 24",2,"width","24px","height","20px"],["fill","currentColor","d","M14,2L20,8V20A2,2 0 0,1 18,22H6A2,2 0 0,1 4,20V4A2,2 0 0,1 6,2H14M18,20V9H13V4H6V20H18M12,12L16,16H13.5V19H10.5V16H8L12,12Z"],["data-l10n-id","open_file_label"]],template:function(e,t){1&e&&(Hr(0,"button",0),dn(),Hr(1,"svg",1),Ur(2,"path",2),jr(),un(),Hr(3,"span",3),Da(4,"Open"),jr(),jr()),2&e&&ma("invisible",!t.showOpenFileButton)},styles:[CS]}),e})(),Ak=(()=>{class e{constructor(){this.showPagingButtons=!0}ngOnInit(){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=$e({type:e,selectors:[["pdf-page-number"]],inputs:{showPagingButtons:"showPagingButtons"},decls:2,vars:4,consts:[["type","number","id","pageNumber","title","Page","value","1","size","4","min","1","data-l10n-id","page",1,"toolbarField","pageNumber"],["id","numPages",1,"toolbarLabel","hiddenXLView"]],template:function(e,t){1&e&&(Ur(0,"input",0),Ur(1,"span",1)),2&e&&(ma("invisible",!t.showPagingButtons),no(1),ma("invisible",!t.showPagingButtons))},styles:[""]}),e})(),Ck=(()=>{class e{constructor(){this.showPagingButtons=!0}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=$e({type:e,selectors:[["pdf-paging-area"]],inputs:{showPagingButtons:"showPagingButtons"},decls:7,vars:5,consts:[[1,"paging-left","hiddenTinyView"],[2,"margin-right","-3px"],[2,"margin-left","-3px"],[3,"showPagingButtons"],[1,"paging-right","hiddenTinyView"],[2,"margin-right","-3px","margin-left","-3px"]],template:function(e,t){1&e&&(Hr(0,"div",0),Ur(1,"pdf-first-page",1),Ur(2,"pdf-previous-page",2),jr(),Ur(3,"pdf-page-number",3),Hr(4,"div",4),Ur(5,"pdf-next-page",5),Ur(6,"pdf-last-page",2),jr()),2&e&&(ma("invisible",!t.showPagingButtons),no(3),Vr("showPagingButtons",t.showPagingButtons),no(1),ma("invisible",!t.showPagingButtons))},directives:function(){return[yk,kk,Ak,_k,wk]},styles:[".paging-right[_ngcontent-%COMP%]{float:right;display:block;margin-top:-2px}.paging-left[_ngcontent-%COMP%]{float:left;display:block;margin-top:-2px}"]}),e})(),Sk=(()=>{class e{constructor(){this.showPresentationModeButton=!0}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=$e({type:e,selectors:[["pdf-presentation-mode"]],inputs:{showPresentationModeButton:"showPresentationModeButton"},decls:5,vars:2,consts:[["type","button","id","presentationMode","title","Switch to Presentation Mode","data-l10n-id","presentation_mode",1,"toolbarButton","hiddenLargeView"],["viewBox","0 0 24 24",2,"width","27px","height","27px"],["fill","currentColor","d","M5,5H10V7H7V10H5V5M14,5H19V10H17V7H14V5M17,14H19V19H14V17H17V14M10,17V19H5V14H7V17H10Z"],["data-l10n-id","presentation_mode_label"]],template:function(e,t){1&e&&(Hr(0,"button",0),dn(),Hr(1,"svg",1),Ur(2,"path",2),jr(),un(),Hr(3,"span",3),Da(4,"Presentation Mode"),jr(),jr()),2&e&&ma("invisible",!t.showPresentationModeButton)},styles:["[_nghost-%COMP%]   button.toolbarButton[_ngcontent-%COMP%]{margin-top:0}[_nghost-%COMP%]:focus{outline:0}button[_ngcontent-%COMP%]:focus, svg[_ngcontent-%COMP%]:focus{outline:0}"]}),e})(),kk=(()=>{class e{constructor(){}ngOnInit(){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=$e({type:e,selectors:[["pdf-previous-page"]],decls:5,vars:0,consts:[["type","button","title","Previous Page","id","previous","data-l10n-id","previous",1,"toolbarButton"],["viewBox","0 0 24 24",2,"width","24px","height","24px"],["fill","currentColor","d","M15.41,16.58L10.83,12L15.41,7.41L14,6L8,12L14,18L15.41,16.58Z"],["data-l10n-id","previous_label"]],template:function(e,t){1&e&&(Hr(0,"button",0),dn(),Hr(1,"svg",1),Ur(2,"path",2),jr(),un(),Hr(3,"span",3),Da(4,"Previous"),jr(),jr())},styles:[""]}),e})(),Pk=(()=>{class e{constructor(){this.showPrintButton=!0}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=$e({type:e,selectors:[["pdf-print"]],inputs:{showPrintButton:"showPrintButton"},decls:5,vars:2,consts:[["type","button","id","print","title","Print","data-l10n-id","print",1,"toolbarButton","hiddenSmallView"],["viewBox","0 0 24 24",2,"width","22px","height","22px"],["fill","currentColor","d","M18,3H6V7H18M19,12A1,1 0 0,1 18,11A1,1 0 0,1 19,10A1,1 0 0,1 20,11A1,1 0 0,1 19,12M16,19H8V14H16M19,8H5A3,3 0 0,0 2,11V17H6V21H18V17H22V11A3,3 0 0,0 19,8Z"],["data-l10n-id","print_label"]],template:function(e,t){1&e&&(Hr(0,"button",0),dn(),Hr(1,"svg",1),Ur(2,"path",2),jr(),un(),Hr(3,"span",3),Da(4,"Print"),jr(),jr()),2&e&&ma("invisible",!t.showPrintButton)},styles:[PS]}),e})(),Ek=(()=>{class e{constructor(e){this.notificationService=e,this.showRotateButton=!0,this.disableRotate=!0;const t=this.notificationService.onPDFJSInit.subscribe(()=>{this.onPdfJsInit(),t.unsubscribe()})}rotateCW(){window.PDFViewerApplication.eventBus.dispatch("rotatecw")}rotateCCW(){window.PDFViewerApplication.eventBus.dispatch("rotateccw")}onPdfJsInit(){window.PDFViewerApplication.eventBus.on("updateuistate",e=>this.updateUIState(e))}updateUIState(e){this.disableRotate=0===e.pagesCount,this.button1.nativeElement.disabled=this.disableRotate,this.button2.nativeElement.disabled=this.disableRotate}}return e.\u0275fac=function(t){return new(t||e)(zr(WS))},e.\u0275cmp=$e({type:e,selectors:[["pdf-rotate-page"]],viewQuery:function(e,t){if(1&e&&(Tc(SS,1),Tc(kS,1)),2&e){let e;Mc(e=Rc())&&(t.button1=e.first),Mc(e=Rc())&&(t.button2=e.first)}},inputs:{showRotateButton:"showRotateButton"},decls:8,vars:6,consts:[["type","button","id","primaryPageRotateCw","title","Rotate Clockwise","data-l10n-id","page_rotate_cw",1,"toolbarButton","hiddenXLView","rotateCw",3,"disabled","click"],["button1",""],["viewBox","0 0 24 24",2,"width","23px","height","23px"],["fill","currentColor","d","M12 3C7.03 3 3 7.03 3 12S7.03 21 12 21C14 21 15.92 20.34 17.5 19.14L16.06 17.7C14.87 18.54 13.45 19 12 19C8.13 19 5 15.87 5 12S8.13 5 12 5 19 8.13 19 12H16L20 16L24 12H21C21 7.03 16.97 3 12 3"],["type","button","id","primaryPageRotateCcw","title","Rotate Counterclockwise","data-l10n-id","page_rotate_ccw",1,"toolbarButton","hiddenXLView","rotateCcw",3,"disabled","click"],["button2",""],["fill","currentColor","d","M12 3C7.03 3 3 7.03 3 12H0L4 16L8 12H5C5 8.13 8.13 5 12 5S19 8.13 19 12 15.87 19 12 19C10.55 19 9.13 18.54 7.94 17.7L6.5 19.14C8.08 20.34 10 21 12 21C16.97 21 21 16.97 21 12S16.97 3 12 3"]],template:function(e,t){1&e&&(Hr(0,"button",0,1),Xr("click",function(){return t.rotateCW()}),dn(),Hr(2,"svg",2),Ur(3,"path",3),jr(),jr(),un(),Hr(4,"button",4,5),Xr("click",function(){return t.rotateCCW()}),dn(),Hr(6,"svg",2),Ur(7,"path",6),jr(),jr()),2&e&&(ma("invisible",!t.showRotateButton),Vr("disabled",t.disableRotate),no(4),ma("invisible",!t.showRotateButton),Vr("disabled",t.disableRotate))},styles:[PS]}),e})(),Dk=(()=>{class e{constructor(e){this.pdfFindbarService=e}}return e.\u0275fac=function(t){return new(t||e)(zr(gk))},e.\u0275cmp=$e({type:e,selectors:[["pdf-search-input-field"]],decls:2,vars:5,consts:[["autocomplete","search-input-field","id","findInput","title","Find","data-l10n-id","find_input","name","search-input-field",1,"toolbarField",3,"placeholder"],["id","findInputMultiline","type","checkbox","placeholder","Multiple search terms. Each line is a search term.","data-l10n-id","find_input_line_by_line","lines","3",1,"toolbarField"]],template:function(e,t){1&e&&(Ur(0,"input",0),Ur(1,"textarea",1)),2&e&&(ma("hidden",!t.pdfFindbarService.individualWordsMode),Vr("placeholder","Find in document\u2026"),no(1),ma("hidden",t.pdfFindbarService.individualWordsMode))},styles:["textarea[_ngcontent-%COMP%]{width:200px;height:3.5em}textarea[_ngcontent-%COMP%]::-webkit-input-placeholder{color:#bfbfbf}textarea[_ngcontent-%COMP%]::-moz-placeholder{font-style:italic}textarea[_ngcontent-%COMP%]:-ms-input-placeholder{font-style:italic}textarea[_ngcontent-%COMP%]::-ms-input-placeholder{font-style:italic}textarea[_ngcontent-%COMP%]::placeholder{font-style:italic}"]}),e})(),Ok=(()=>{class e{constructor(){this.showSecondaryToolbarButton=!0}ngOnInit(){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=$e({type:e,selectors:[["pdf-toggle-secondary-toolbar"]],inputs:{showSecondaryToolbarButton:"showSecondaryToolbarButton"},decls:5,vars:2,consts:[["type","button","id","secondaryToolbarToggle","title","Tools","data-l10n-id","tools",1,"toolbarButton"],["viewBox","0 0 24 24","onclick","event.preventDefault(); return false;",2,"width","27px","height","27px"],["fill","currentColor","d","M3,6H21V8H3V6M3,11H21V13H3V11M3,16H21V18H3V16Z"],["data-l10n-id","tools_label"]],template:function(e,t){1&e&&(Hr(0,"button",0),dn(),Hr(1,"svg",1),Ur(2,"path",2),jr(),un(),Hr(3,"span",3),Da(4,"Tools"),jr(),jr()),2&e&&ma("invisible",!t.showSecondaryToolbarButton)},styles:["svg[_ngcontent-%COMP%]{margin-top:-3px}[_nghost-%COMP%]:focus{outline:0}button[_ngcontent-%COMP%]:focus, svg[_ngcontent-%COMP%]:focus{outline:0}"]}),e})(),Mk=(()=>{class e{constructor(){this.showSidebarButton=!0}ngOnInit(){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=$e({type:e,selectors:[["pdf-toggle-sidebar"]],inputs:{showSidebarButton:"showSidebarButton"},decls:5,vars:2,consts:[["type","button","id","sidebarToggle","title","Toggle Sidebar","data-l10n-id","toggle_sidebar",1,"toolbarButton"],["viewBox","0 0 24 24",2,"width","24px","height","24px"],["fill","currentColor","d","M3,9H17V7H3V9M3,13H17V11H3V13M3,17H17V15H3V17M19,17H21V15H19V17M19,7V9H21V7H19M19,13H21V11H19V13Z"],["data-l10n-id","toggle_sidebar_label"]],template:function(e,t){1&e&&(Hr(0,"button",0),dn(),Hr(1,"svg",1),Ur(2,"path",2),jr(),un(),Hr(3,"span",3),Da(4,"Toggle Sidebar"),jr(),jr()),2&e&&ma("invisible",!t.showSidebarButton)},styles:[ES]}),e})(),Tk=(()=>{class e{constructor(){this.mobileFriendlyZoomScale=1,this.primaryMenuVisible=!0,this.showBookmarkButton=!0,this.showDownloadButton=!0,this.showFindButton=void 0,this.showHandToolButton=!0,this.showOpenFileButton=!0,this.showPrintButton=!0,this.showPagingButtons=!0,this.showPresentationModeButton=!1,this.showRotateButton=!0,this.showSecondaryToolbarButton=!0,this.showSidebarButton=!0,this.showZoomButtons=!0,this.textLayer=void 0,this.toolbarPaddingTop="0px",this.toolbarWidth="100%",this.zoomLevels=["auto","page-actual","page-fit","page-width",.5,.75,1,1.25,1.5,2,3,4]}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=$e({type:e,selectors:[["pdf-toolbar"]],inputs:{mobileFriendlyZoomScale:"mobileFriendlyZoomScale",primaryMenuVisible:"primaryMenuVisible",showBookmarkButton:"showBookmarkButton",showDownloadButton:"showDownloadButton",showFindButton:"showFindButton",showHandToolButton:"showHandToolButton",showOpenFileButton:"showOpenFileButton",showPrintButton:"showPrintButton",showPagingButtons:"showPagingButtons",showPresentationModeButton:"showPresentationModeButton",showRotateButton:"showRotateButton",showSecondaryToolbarButton:"showSecondaryToolbarButton",showSidebarButton:"showSidebarButton",showZoomButtons:"showZoomButtons",textLayer:"textLayer",toolbarPaddingTop:"toolbarPaddingTop",toolbarWidth:"toolbarWidth",zoomLevels:"zoomLevels",customToolbar:"customToolbar"},ngContentSelectors:uS,decls:8,vars:11,consts:[[1,"toolbar"],["id","toolbarContainer"],[4,"ngTemplateOutlet"],["id","loadingBar"],[1,"progress"],[1,"glimmer"],["defaultToolbar",""],["id","toolbarViewer"],["id","toolbarViewerLeft"],[3,"showSidebarButton"],[3,"showFindButton","textLayer"],[3,"showPagingButtons"],[3,"showZoomButtons","zoomLevels"],["id","toolbarViewerRight"],[3,"showHandToolButton"],[3,"showSelectToolButton"],[3,"showRotateButton"],[3,"showPresentationModeButton"],[3,"showOpenFileButton"],[3,"showPrintButton"],[3,"showDownloadButton"],[3,"showBookmarkButton"],[3,"showSecondaryToolbarButton"]],template:function(e,t){if(1&e&&(sa(),Hr(0,"div",0),Hr(1,"div",1),Fr(2,DS,1,0,"ng-content",2),Hr(3,"div",3),Hr(4,"div",4),Ur(5,"div",5),jr(),jr(),jr(),jr(),Fr(6,OS,16,15,"ng-template",null,6,zc)),2&e){const e=Br(7);ma("invisible",!t.primaryMenuVisible),no(1),fa("transform","scale("+t.mobileFriendlyZoomScale+")")("transform-origin","left center")("width",t.toolbarWidth)("padding-top",t.toolbarPaddingTop),no(1),Vr("ngTemplateOutlet",t.customToolbar?t.customToolbar:e)}},directives:function(){return[Ku,Mk,ak,Ck,Fk,XS,Bk,Ek,Sk,xk,Pk,tk,KS,Ok]},styles:[""]}),e})(),Ik=(()=>{class e{constructor(){this._zoomLevels=[]}set zoomLevels(e){this._zoomLevels=e.map(e=>this.valueToZoomLevel(e))}ngOnInit(){}valueToZoomLevel(e){e.toString().endsWith("%")&&(e=e.toString().replace("%",""),e=Number(e)/100);const t=Number(e);if(!t){const t=String(e);return{id:this.snakeToCamel(e+"Option"),value:t,dataL10nId:"page_scale_"+t.replace("page-",""),dataL10nArgs:void 0,displayValue:t}}const n=Math.round(100*t);return{id:"scale_"+n,value:String(t),dataL10nId:"page_scale_percent",dataL10nArgs:`{ "scale": ${n} }`,displayValue:String(n)+"%"}}snakeToCamel(e){return e.replace(/([-_][a-z])/g,e=>e.toUpperCase().replace("-","").replace("_",""))}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=$e({type:e,selectors:[["pdf-zoom-dropdown"]],viewQuery:function(e,t){if(1&e&&Tc(MS,1),2&e){let e;Mc(e=Rc())&&(t.sizeSelector=e.first)}},inputs:{zoomLevels:"zoomLevels"},decls:5,vars:1,consts:[["id","scaleSelectContainer",1,"dropdownToolbarButton"],["id","scaleSelect","title","Zoom","data-l10n-id","zoom"],["sizeSelector",""],[3,"id",4,"ngFor","ngForOf"],["id","customScaleOption","title","","value","custom","disabled","disabled","hidden","true"],[3,"id"]],template:function(e,t){1&e&&(Hr(0,"span",0),Hr(1,"select",1,2),Fr(3,TS,2,5,"option",3),Ur(4,"option",4),jr(),jr()),2&e&&(no(3),Vr("ngForOf",t._zoomLevels))},directives:[ju,qm,Xm],styles:[".dropdownToolbarButton[_ngcontent-%COMP%]{display:table-cell;-webkit-appearance:none;width:150px;max-width:150px}.dropdownToolbarButton[_ngcontent-%COMP%] > select[_ngcontent-%COMP%]{width:170px}@media screen and (-webkit-min-device-pixel-ratio:1.1),screen and (min-resolution:1.1dppx){.dropdownToolbarButton[_ngcontent-%COMP%]::after{top:-1px}}"]}),e})(),Rk=(()=>{class e{constructor(){}ngOnInit(){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=$e({type:e,selectors:[["pdf-zoom-in"]],decls:4,vars:0,consts:[["type","button","id","zoomIn","title","Zoom In","data-l10n-id","zoom_in",1,"toolbarButton","zoomIn"],["data-l10n-id","zoom_in_label"]],template:function(e,t){1&e&&(Hr(0,"button",0),Da(1," + "),Hr(2,"span",1),Da(3,"Zoom In"),jr(),jr())},styles:[""]}),e})(),Lk=(()=>{class e{constructor(){}ngOnInit(){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=$e({type:e,selectors:[["pdf-zoom-out"]],decls:4,vars:0,consts:[["type","button","id","zoomOut","title","Zoom Out","data-l10n-id","zoom_out",1,"toolbarButton","zoomOut",2,"margin-top","2px"],["data-l10n-id","zoom_out_label"]],template:function(e,t){1&e&&(Hr(0,"button",0),Da(1," - "),Hr(2,"span",1),Da(3,"Zoom Out"),jr(),jr())},styles:[""]}),e})(),Fk=(()=>{class e{constructor(){this.showZoomButtons=!0,this.zoomLevels=["auto","page-actual","page-fit","page-width",.5,.75,1,1.25,1.5,2,3,4]}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=$e({type:e,selectors:[["pdf-zoom-toolbar"]],inputs:{showZoomButtons:"showZoomButtons",zoomLevels:"zoomLevels"},decls:4,vars:3,consts:[["id","toolbarViewerMiddle"],[2,"width","unset","max-width","unset","padding-top","3px",3,"zoomLevels"]],template:function(e,t){1&e&&(Hr(0,"div",0),Ur(1,"pdf-zoom-out"),Ur(2,"pdf-zoom-in"),Ur(3,"pdf-zoom-dropdown",1),jr()),2&e&&(ma("invisible",!t.showZoomButtons),no(3),Vr("zoomLevels",t.zoomLevels))},directives:[Lk,Rk,Ik],styles:[""]}),e})(),Bk=(()=>{class e{constructor(e){this.notificationService=e,this.showSelectToolButton=!0,this.isSelected=!0;const t=this.notificationService.onPDFJSInit.subscribe(()=>{this.onPdfJsInit(),t.unsubscribe()})}onPdfJsInit(){window.PDFViewerApplication.eventBus.on("cursortoolchanged",({tool:e})=>this.isSelected=e===$S.SELECT)}onClick(){window.PDFViewerApplication.eventBus.dispatch("switchcursortool",{tool:$S.SELECT})}}return e.\u0275fac=function(t){return new(t||e)(zr(WS))},e.\u0275cmp=$e({type:e,selectors:[["pdf-select-tool"]],inputs:{showSelectToolButton:"showSelectToolButton"},decls:5,vars:4,consts:[["type","button","id","primaryCursorSelectTool","title","Enable text selection tool","data-l10n-id","cursor_text_select_tool",1,"toolbarButton","hiddenXXLView",3,"click"],["viewBox","0 0 24 24",2,"width","22px","height","22px"],["fill","currentColor","d","M2 4C2 2.89 2.9 2 4 2H7V4H4V7H2V4M22 4V7H20V4H17V2H20C21.1 2 22 2.89 22 4M2 20V17H4V20H7V22H4C2.9 22 2 21.11 2 20M10 2H14V4H10V2M10 20H14V22H10V20M2 10H4V14H2V10M18.5 13C20.4 13 22 14.6 22 16.5C22 19.1 18.5 23 18.5 23C18.5 23 15 19.1 15 16.5C15 14.6 16.6 13 18.5 13M18.5 17.8C19.2 17.8 19.8 17.2 19.7 16.6C19.7 16 19.1 15.4 18.5 15.4C17.9 15.4 17.3 15.9 17.3 16.6C17.3 17.2 17.8 17.8 18.5 17.8M20 10H22V12.34C21.42 11.84 20.74 11.45 20 11.23V10Z"],["data-l10n-id","cursor_text_select_tool_label"]],template:function(e,t){1&e&&(Hr(0,"button",0),Xr("click",function(){return t.onClick()}),dn(),Hr(1,"svg",1),Ur(2,"path",2),jr(),un(),Hr(3,"span",3),Da(4,"Text selection tool"),jr(),jr()),2&e&&ma("invisible",!t.showSelectToolButton)("toggled",t.isSelected)},styles:["[_nghost-%COMP%]{margin-top:0;margin-right:-3px}[_nghost-%COMP%]:focus{outline:0}button[_ngcontent-%COMP%]:focus, svg[_ngcontent-%COMP%]:focus{outline:0}.toggled[_ngcontent-%COMP%]{background-color:#646464;border-color:rgba(0,0,0,.4) rgba(0,0,0,.45) rgba(0,0,0,.5);box-shadow:0 1px 1px rgba(0,0,0,.1) inset,0 0 1px rgba(0,0,0,.2) inset,0 1px 0 rgba(255,255,255,.05)}"]}),e})(),zk=(()=>{class e{constructor(e,t){this.renderer=e,this.document=t,this.zoom=1,this.width=100,this.xs=490,this.sm=560,this.md=610,this.lg=660,this.xl=740,this.xxl=830}get style(){return`\n@media all and (max-width: ${this.xl}px) {\n  #toolbarViewerMiddle {\n    display: table;\n    margin: auto;\n    left: auto;\n    position: inherit;\n    transform: none;\n  }\n}\n\n@media all and (max-width: 840px) {\n  #sidebarContent {\n    background-color: rgba(0, 0, 0, 0.7);\n  }\n\n  html[dir='ltr'] #outerContainer.sidebarOpen #viewerContainer {\n    left: 0px !important;\n  }\n  html[dir='rtl'] #outerContainer.sidebarOpen #viewerContainer {\n    right: 0px !important;\n  }\n\n  #outerContainer .hiddenLargeView,\n  #outerContainer .hiddenMediumView {\n    display: inherit;\n  }\n  #outerContainer .visibleLargeView,\n  #outerContainer .visibleMediumView {\n    display: none;\n  }\n}\n\n@media all and (max-width: ${this.lg}px) {\n  .toolbarButtonSpacer {\n    width: 15px;\n  }\n\n  #outerContainer .hiddenLargeView {\n    display: none;\n  }\n  #outerContainer .visibleLargeView {\n    display: inherit;\n  }\n}\n\n@media all and (max-width: ${this.md}px) {\n  .toolbarButtonSpacer {\n    display: none;\n  }\n  #outerContainer .hiddenMediumView {\n    display: none;\n  }\n  #outerContainer .visibleMediumView {\n    display: inherit;\n  }\n}\n\n@media all and (max-width: ${this.sm}px) {\n  .hiddenSmallView,\n  .hiddenSmallView * {\n    display: none;\n  }\n  .visibleSmallView {\n    display: inherit;\n  }\n  .toolbarButtonSpacer {\n    width: 0;\n  }\n  html[dir='ltr'] .findbar {\n    left: 38px;\n  }\n  html[dir='rtl'] .findbar {\n    right: 38px;\n  }\n}\n\n@media all and (max-width: ${this.xs}px) {\n  #scaleSelectContainer {\n    display: none;\n  }\n}\n\n.visibleXLView,\n.visibleXXLView,\n.visibleTinyView {\n  display: none;\n}\n\n.hiddenXLView,\n.hiddenXXLView {\n  display: unset;\n}\n\n@media all and (max-width: ${this.xl}px) {\n  #outerContainer .hiddenXLView {\n    display: none;\n  }\n  #outerContainer .visibleXLView {\n    display: inherit;\n  }\n\n  #toolbarViewerMiddle {\n    -webkit-transform: translateX(-36%);\n    transform: translateX(-36%);\n    display: unset;\n    margin: unset;\n    left: 50%;\n    position: absolute;\n  }\n}\n\n@media all and (max-width: ${this.xxl}px) {\n  #outerContainer .hiddenXXLView {\n    display: none;\n  }\n  #outerContainer .visibleXXLView {\n    display: inherit;\n  }\n}\n\n@media all and (max-width: ${this.md}px) {\n  #toolbarViewerMiddle {\n    -webkit-transform: translateX(-26%);\n    transform: translateX(-26%);\n  }\n}\n\n@media all and (max-width: ${this.xs}px) {\n  .hiddenTinyView,\n  .hiddenTinyView * {\n    display: none;\n  }\n  .visibleTinyView {\n    display: inherit;\n  }\n}\n  `}ngOnInit(){this.injectStyle()}ngOnChanges(){const e=this.document.body.clientWidth/this.width*(this.zoom?this.zoom:1);this.xs=490*e,this.sm=560*e,this.md=610*e,this.lg=660*e,this.xl=740*e,this.xxl=830*e;const t=this.document.getElementById("pdf-dynamic-css");t&&(t.innerHTML=this.style)}injectStyle(){const e=this.document.createElement("STYLE");e.id="pdf-dynamic-css",e.innerHTML=this.style,this.renderer.appendChild(this.document.head,e)}ngOnDestroy(){const e=this.document.getElementById("pdf-dynamic-css");e&&e.parentElement&&e.parentElement.removeChild(e)}}return e.\u0275fac=function(t){return new(t||e)(zr(cl),zr(Hd))},e.\u0275cmp=$e({type:e,selectors:[["pdf-dynamic-css"]],inputs:{zoom:"zoom",width:"width"},features:[dt],decls:0,vars:0,template:function(e,t){},styles:[""]}),e})(),Vk=(()=>{class e{constructor(){this.thumbnailDrawn=new yc,this.top="32px",this._hideSidebarToolbar=!1,window.pdfThumbnailGeneratorReady=()=>this.pdfThumbnailGeneratorReady(),window.pdfThumbnailGenerator=(e,t,n,i,s)=>this.createThumbnail(e,t,n,i,s)}ngOnDestroy(){this.linkService=void 0}pdfThumbnailGeneratorReady(){if(!this.thumbnailViewTemplate)return!1;const e=this.thumbnailViewTemplate.nativeElement;return!!e&&!!e.innerHTML&&e.innerHTML.length>0}createThumbnail(e,t,n,i,s){this.linkService=t;const o=this.thumbnailViewTemplate.nativeElement.innerHTML.split(/_ng\w+-\w+-\w+=""/g).join("").split(/ng-\w+-\w+/g).join("").split(/<!--[\s\S]*?-->/g).join(""),r=e.canvasWidth+2+"px",a=e.canvasHeight+2+"px",l=o.split("WIDTH_OF_RING").join(r).split("HEIGHT_OF_RING").join(a).split("PAGE_NUMBER").join(n),c=this.createElementFromHTML(l);c.classList.remove("pdf-viewer-template");const d=c;d.href=t.getAnchorUrl("#page="+n),s.then(e=>{d.title=e}),d.onclick=function(){return t.page=n,!1},e.anchor=d;const u=c.getElementsByClassName("image-container")[0];e.ring=u,e.div=c.getElementsByClassName("thumbnail")[0],i.appendChild(c),this.thumbnailDrawn.emit({thumbnail:c,container:i,pageId:n})}createElementFromHTML(e){const t=document.createElement("div");return t.innerHTML=e.trim(),t.firstChild}onKeyDown(e){"ArrowDown"===e.code?this.linkService&&(e.ctrlKey||e.metaKey?this.linkService.page=this.linkService.pagesCount:this.linkService.page<this.linkService.pagesCount&&(this.linkService.page=this.linkService.page+1),e.preventDefault()):"ArrowUp"===e.code&&this.linkService&&(e.ctrlKey||e.metaKey?this.linkService.page=1:this.linkService.page>1&&(this.linkService.page=this.linkService.page-1),e.preventDefault())}set hideSidebarToolbar(e){this._hideSidebarToolbar=e,this.top=this._hideSidebarToolbar?"0":"32px"}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=$e({type:e,selectors:[["pdf-sidebar-content"]],viewQuery:function(e,t){if(1&e&&Tc(IS,1),2&e){let e;Mc(e=Rc())&&(t.thumbnailViewTemplate=e.first)}},inputs:{hideSidebarToolbar:"hideSidebarToolbar",customThumbnail:"customThumbnail"},outputs:{thumbnailDrawn:"thumbnailDrawn"},ngContentSelectors:uS,decls:10,vars:3,consts:[["id","sidebarContent"],["thumbnailViewTemplate",""],[4,"ngTemplateOutlet"],["id","thumbnailView",3,"keydown"],["id","outlineView",1,"hidden"],["id","attachmentsView",1,"hidden"],["id","layersView",1,"hidden"],["defaultThumbnail",""],[1,"pdf-viewer-template"],["data-page-number","$page",1,"thumbnail"],[1,"thumbnailSelectionRing","image-container",2,"width","WIDTH_OF_RING","height","HEIGHT_OF_RING"]],template:function(e,t){if(1&e&&(sa(),Hr(0,"div",0),Hr(1,"div",null,1),Fr(3,RS,1,0,"ng-content",2),jr(),Hr(4,"div",3),Xr("keydown",function(e){return t.onKeyDown(e)}),jr(),Ur(5,"div",4),Ur(6,"div",5),Ur(7,"div",6),jr(),Fr(8,LS,3,0,"ng-template",null,7,zc)),2&e){const e=Br(9);fa("top",t.top),no(3),Vr("ngTemplateOutlet",t.customThumbnail?t.customThumbnail:e)}},directives:[Ku],styles:[""]}),e})(),Nk=(()=>{class e{constructor(){}ngOnInit(){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=$e({type:e,selectors:[["pdf-sidebar-toolbar"]],decls:21,vars:0,consts:[["id","toolbarSidebar"],["type","button","id","viewThumbnail","title","Show Thumbnails","data-l10n-id","thumbs",1,"toolbarButton","toggled"],["data-l10n-id","thumbs_label"],["viewBox","0 0 24 24",2,"width","20px","height","20px"],["fill","currentColor","d","M19,19H5V5H19M19,3H5A2,2 0 0,0 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5A2,2 0 0,0 19,3M13.96,12.29L11.21,15.83L9.25,13.47L6.5,17H17.5L13.96,12.29Z"],["type","button","id","viewOutline","title","Show Document Outline (double-click to expand/collapse all items)","data-l10n-id","document_outline","hidden","true",1,"toolbarButton"],["data-l10n-id","document_outline_label"],["fill","currentColor","d","M3,9H17V7H3V9M3,13H17V11H3V13M3,17H17V15H3V17M19,17H21V15H19V17M19,7V9H21V7H19M19,13H21V11H19V13Z"],["type","button","id","viewAttachments","title","Show Attachments","data-l10n-id","attachments","hidden","true",1,"toolbarButton"],["data-l10n-id","attachments_label"],["fill","currentColor","d","M16.5,6V17.5A4,4 0 0,1 12.5,21.5A4,4 0 0,1 8.5,17.5V5A2.5,2.5 0 0,1 11,2.5A2.5,2.5 0 0,1 13.5,5V15.5A1,1 0 0,1 12.5,16.5A1,1 0 0,1 11.5,15.5V6H10V15.5A2.5,2.5 0 0,0 12.5,18A2.5,2.5 0 0,0 15,15.5V5A4,4 0 0,0 11,1A4,4 0 0,0 7,5V17.5A5.5,5.5 0 0,0 12.5,23A5.5,5.5 0 0,0 18,17.5V6H16.5Z"],["id","viewLayers","title","Show Layers (double-click to reset all layers to the default state)","data-l10n-id","layers","hidden","true",1,"toolbarButton"],["data-l10n-id","layers_label"],["xmlns","http://www.w3.org/2000/svg","fill","currentColor","viewBox","0 0 4.233 4.233",2,"width","20px","height","20px"],["d","M.15 2.992c-.198.1-.2.266-.002.365l1.604.802a.93.93 0 00.729-.001l1.602-.801c.198-.1.197-.264 0-.364l-.695-.348c-1.306.595-2.542 0-2.542 0m-.264.53l.658-.329c.6.252 1.238.244 1.754 0l.659.329-1.536.768zM.15 1.935c-.198.1-.198.265 0 .364l1.604.802a.926.926 0 00.727 0l1.603-.802c.198-.099.198-.264 0-.363l-.694-.35c-1.14.56-2.546.001-2.546.001m-.264.53l.664-.332c.52.266 1.261.235 1.75.002l.659.33-1.537.768zM.15.877c-.198.099-.198.264 0 .363l1.604.802a.926.926 0 00.727 0l1.603-.802c.198-.099.198-.264 0-.363L2.481.075a.926.926 0 00-.727 0zm.43.182L2.117.29l1.538.769-1.538.768z"]],template:function(e,t){1&e&&(Hr(0,"div",0),Hr(1,"button",1),Hr(2,"span",2),Da(3,"Thumbnails"),jr(),dn(),Hr(4,"svg",3),Ur(5,"path",4),jr(),jr(),un(),Hr(6,"button",5),Hr(7,"span",6),Da(8,"Document Outline"),jr(),dn(),Hr(9,"svg",3),Ur(10,"path",7),jr(),jr(),un(),Hr(11,"button",8),Hr(12,"span",9),Da(13,"Attachments"),jr(),dn(),Hr(14,"svg",3),Ur(15,"path",10),jr(),jr(),un(),Hr(16,"button",11),Hr(17,"span",12),Da(18,"Layers"),jr(),dn(),Hr(19,"svg",13),Ur(20,"path",14),jr(),jr(),jr())},styles:["button[_ngcontent-%COMP%]{margin-right:4px!important}div#toolbarSidebar[_ngcontent-%COMP%] > button[_ngcontent-%COMP%]:first-child{margin-left:4px!important}"]}),e})(),Hk=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=$e({type:e,selectors:[["pdf-light-theme"]],decls:0,vars:0,template:function(e,t){},styles:["ngx-extended-pdf-viewer .dropdownToolbarButton::after{content:url(\"data:image/svg+xml; utf8, <svg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'><path fill='rgb(90, 90, 90)' d='M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z' /></svg>\")}ngx-extended-pdf-viewer .textLayer{position:absolute;left:0;top:0;right:0;bottom:0;overflow:hidden;opacity:.2;line-height:1}ngx-extended-pdf-viewer .textLayer>span{color:transparent;position:absolute;white-space:pre;cursor:text;-webkit-transform-origin:0 0;transform-origin:0 0}ngx-extended-pdf-viewer .textLayer .highlight{margin:-1px;padding:1px;background-color:var(#b400aa);border-radius:4px}ngx-extended-pdf-viewer .textLayer .highlight.begin{border-radius:4px 0 0 4px}ngx-extended-pdf-viewer .textLayer .highlight.end{border-radius:0 4px 4px 0}ngx-extended-pdf-viewer .textLayer .highlight.middle{border-radius:0}ngx-extended-pdf-viewer .textLayer .highlight.selected{background-color:#006400}ngx-extended-pdf-viewer .textLayer ::-moz-selection{background:#00f}ngx-extended-pdf-viewer .textLayer ::selection{background:#00f}ngx-extended-pdf-viewer .textLayer .endOfContent{display:block;position:absolute;left:0;top:100%;right:0;bottom:0;z-index:-1;cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}ngx-extended-pdf-viewer .textLayer .endOfContent.active{top:0}ngx-extended-pdf-viewer .annotationLayer section{position:absolute}ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.pushButton>a,ngx-extended-pdf-viewer .annotationLayer .linkAnnotation>a{position:absolute;font-size:1em;top:0;left:0;width:100%;height:100%}ngx-extended-pdf-viewer .annotationLayer .textAnnotation img{position:absolute;cursor:pointer}ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.checkBox input,ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.radioButton input,ngx-extended-pdf-viewer .annotationLayer .choiceWidgetAnnotation select,ngx-extended-pdf-viewer .annotationLayer .textWidgetAnnotation input,ngx-extended-pdf-viewer .annotationLayer .textWidgetAnnotation textarea{background-color:rgba(0,54,255,.13);color:#5a5a5a;border:1px solid transparent;box-sizing:border-box;font-size:9px;height:100%;margin:0;padding:0 3px;vertical-align:top;width:100%}ngx-extended-pdf-viewer .annotationLayer .choiceWidgetAnnotation select option{padding:0}ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.radioButton input{border-radius:50%}ngx-extended-pdf-viewer .annotationLayer .textWidgetAnnotation textarea{font:message-box;font-size:9px;resize:none}ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.checkBox input[disabled],ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.radioButton input[disabled],ngx-extended-pdf-viewer .annotationLayer .choiceWidgetAnnotation select[disabled],ngx-extended-pdf-viewer .annotationLayer .textWidgetAnnotation input[disabled],ngx-extended-pdf-viewer .annotationLayer .textWidgetAnnotation textarea[disabled]{background:0 0;border:1px solid transparent;cursor:not-allowed}ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after,ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before,ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.radioButton input:checked:before{background-color:#5a5a5a;content:'';display:block;position:absolute}ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after,ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before{height:80%;left:45%;width:1px}ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before{-webkit-transform:rotate(45deg);transform:rotate(45deg)}ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after{-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.radioButton input:checked:before{border-radius:50%;height:50%;left:30%;top:20%;width:50%}ngx-extended-pdf-viewer .annotationLayer .textWidgetAnnotation input.comb{font-family:monospace;padding-left:2px;padding-right:0}ngx-extended-pdf-viewer .annotationLayer .textWidgetAnnotation input.comb:focus{width:115%}ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.checkBox input,ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.radioButton input{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:0}ngx-extended-pdf-viewer .annotationLayer .popupWrapper{position:absolute;width:20em}ngx-extended-pdf-viewer .annotationLayer .popup{position:absolute;z-index:4;max-width:20em;background-color:#ff9;box-shadow:0 2px 5px #888;border-radius:2px;padding:6px;margin-left:5px;cursor:pointer;font:message-box;font-size:9px;word-wrap:break-word}ngx-extended-pdf-viewer .annotationLayer .popup>*{font-size:9px}ngx-extended-pdf-viewer .annotationLayer .popup h1{display:inline-block}ngx-extended-pdf-viewer .annotationLayer .popup span{display:inline-block;margin-left:5px}ngx-extended-pdf-viewer .annotationLayer .popup p{border-top:1px solid #333;margin-top:2px;padding-top:2px}ngx-extended-pdf-viewer .annotationLayer .caretAnnotation,ngx-extended-pdf-viewer .annotationLayer .circleAnnotation svg ellipse,ngx-extended-pdf-viewer .annotationLayer .fileAttachmentAnnotation,ngx-extended-pdf-viewer .annotationLayer .freeTextAnnotation,ngx-extended-pdf-viewer .annotationLayer .highlightAnnotation,ngx-extended-pdf-viewer .annotationLayer .inkAnnotation svg polyline,ngx-extended-pdf-viewer .annotationLayer .lineAnnotation svg line,ngx-extended-pdf-viewer .annotationLayer .polygonAnnotation svg polygon,ngx-extended-pdf-viewer .annotationLayer .polylineAnnotation svg polyline,ngx-extended-pdf-viewer .annotationLayer .squareAnnotation svg rect,ngx-extended-pdf-viewer .annotationLayer .squigglyAnnotation,ngx-extended-pdf-viewer .annotationLayer .stampAnnotation,ngx-extended-pdf-viewer .annotationLayer .strikeoutAnnotation,ngx-extended-pdf-viewer .annotationLayer .underlineAnnotation{cursor:pointer}ngx-extended-pdf-viewer .pdfViewer .canvasWrapper{overflow:hidden}ngx-extended-pdf-viewer .pdfViewer .page{direction:ltr;width:816px;height:1056px;margin:1px auto -8px;position:relative;overflow:visible;border:9px solid transparent;background-clip:content-box;-o-border-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAATCAQAAADYWf5HAAAA6UlEQVR4Xl2Pi2rEMAwE16fm1f7/r14v7w4rI0IzLAF7hLxNevBSEMEF5+OilNCsRd8ZMyn+a4NmsOT8WJw1lFbSYgGFzF2bLFoLjTClWjKKGRWpDYAGXUnZ4uhbBUzF3Oe/GG/ue2fn4GgsyXhNgysV2JnrhKEMg4fEZcALmiKbNhBBRFpSyDOj1G4QOVly6O1FV54ZZq8OVygrciDt6JazRgi1ljTPH0gbrPmHPXAbCiDd4GawIjip1TPh9tt2sz24qaCjr/jAb/GBFTbq9KZ7Ke/Cqt8nayUikZKsWZK7Fe6bg5dOUt8fZHWG2BHc+6EAAAAASUVORK5CYII=) 9 9 repeat;border-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAATCAQAAADYWf5HAAAA6UlEQVR4Xl2Pi2rEMAwE16fm1f7/r14v7w4rI0IzLAF7hLxNevBSEMEF5+OilNCsRd8ZMyn+a4NmsOT8WJw1lFbSYgGFzF2bLFoLjTClWjKKGRWpDYAGXUnZ4uhbBUzF3Oe/GG/ue2fn4GgsyXhNgysV2JnrhKEMg4fEZcALmiKbNhBBRFpSyDOj1G4QOVly6O1FV54ZZq8OVygrciDt6JazRgi1ljTPH0gbrPmHPXAbCiDd4GawIjip1TPh9tt2sz24qaCjr/jAb/GBFTbq9KZ7Ke/Cqt8nayUikZKsWZK7Fe6bg5dOUt8fZHWG2BHc+6EAAAAASUVORK5CYII=) 9 9 repeat;background-color:#fff}ngx-extended-pdf-viewer .pdfViewer.removePageBorders .page{margin:0 auto 10px;border:none}ngx-extended-pdf-viewer .pdfViewer.singlePageView{display:inline-block}ngx-extended-pdf-viewer .pdfViewer.singlePageView .page{margin:0;border:none}ngx-extended-pdf-viewer .pdfViewer.scrollHorizontal,ngx-extended-pdf-viewer .pdfViewer.scrollWrapped,ngx-extended-pdf-viewer .spread{margin-left:3.5px;margin-right:3.5px;text-align:center}ngx-extended-pdf-viewer .pdfViewer.scrollHorizontal,ngx-extended-pdf-viewer .spread{white-space:nowrap}ngx-extended-pdf-viewer .pdfViewer.removePageBorders,ngx-extended-pdf-viewer .pdfViewer.scrollHorizontal .spread,ngx-extended-pdf-viewer .pdfViewer.scrollWrapped .spread{margin-left:0;margin-right:0}ngx-extended-pdf-viewer .pdfViewer.scrollHorizontal .page,ngx-extended-pdf-viewer .pdfViewer.scrollHorizontal .spread,ngx-extended-pdf-viewer .pdfViewer.scrollWrapped .page,ngx-extended-pdf-viewer .pdfViewer.scrollWrapped .spread,ngx-extended-pdf-viewer .spread .page{display:inline-block;vertical-align:middle}ngx-extended-pdf-viewer .pdfViewer.scrollHorizontal .page,ngx-extended-pdf-viewer .pdfViewer.scrollWrapped .page,ngx-extended-pdf-viewer .spread .page{margin-left:-3.5px;margin-right:-3.5px}ngx-extended-pdf-viewer .pdfViewer.removePageBorders .spread .page,ngx-extended-pdf-viewer .pdfViewer.removePageBorders.scrollHorizontal .page,ngx-extended-pdf-viewer .pdfViewer.removePageBorders.scrollWrapped .page{margin-left:5px;margin-right:5px}ngx-extended-pdf-viewer .pdfViewer .page canvas{margin:0;display:block}ngx-extended-pdf-viewer .pdfViewer .page canvas[hidden]{display:none}ngx-extended-pdf-viewer .pdfViewer .page .loadingIcon{position:absolute;display:block;left:0;top:0;right:0;bottom:0;background:url(data:image/gif;base64,R0lGODlhGAAYAPQAAP///wAAAM7Ozvr6+uDg4LCwsOjo6I6OjsjIyJycnNjY2KioqMDAwPLy8nZ2doaGhri4uGhoaAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH/C05FVFNDQVBFMi4wAwEAAAAh/hpDcmVhdGVkIHdpdGggYWpheGxvYWQuaW5mbwAh+QQJBwAAACwAAAAAGAAYAAAFriAgjiQAQWVaDgr5POSgkoTDjFE0NoQ8iw8HQZQTDQjDn4jhSABhAAOhoTqSDg7qSUQwxEaEwwFhXHhHgzOA1xshxAnfTzotGRaHglJqkJcaVEqCgyoCBQkJBQKDDXQGDYaIioyOgYSXA36XIgYMBWRzXZoKBQUMmil0lgalLSIClgBpO0g+s26nUWddXyoEDIsACq5SsTMMDIECwUdJPw0Mzsu0qHYkw72bBmozIQAh+QQJBwAAACwAAAAAGAAYAAAFsCAgjiTAMGVaDgR5HKQwqKNxIKPjjFCk0KNXC6ATKSI7oAhxWIhezwhENTCQEoeGCdWIPEgzESGxEIgGBWstEW4QCGGAIJEoxGmGt5ZkgCRQQHkGd2CESoeIIwoMBQUMP4cNeQQGDYuNj4iSb5WJnmeGng0CDGaBlIQEJziHk3sABidDAHBgagButSKvAAoyuHuUYHgCkAZqebw0AgLBQyyzNKO3byNuoSS8x8OfwIchACH5BAkHAAAALAAAAAAYABgAAAW4ICCOJIAgZVoOBJkkpDKoo5EI43GMjNPSokXCINKJCI4HcCRIQEQvqIOhGhBHhUTDhGo4diOZyFAoKEQDxra2mAEgjghOpCgz3LTBIxJ5kgwMBShACREHZ1V4Kg1rS44pBAgMDAg/Sw0GBAQGDZGTlY+YmpyPpSQDiqYiDQoCliqZBqkGAgKIS5kEjQ21VwCyp76dBHiNvz+MR74AqSOdVwbQuo+abppo10ssjdkAnc0rf8vgl8YqIQAh+QQJBwAAACwAAAAAGAAYAAAFrCAgjiQgCGVaDgZZFCQxqKNRKGOSjMjR0qLXTyciHA7AkaLACMIAiwOC1iAxCrMToHHYjWQiA4NBEA0Q1RpWxHg4cMXxNDk4OBxNUkPAQAEXDgllKgMzQA1pSYopBgonCj9JEA8REQ8QjY+RQJOVl4ugoYssBJuMpYYjDQSliwasiQOwNakALKqsqbWvIohFm7V6rQAGP6+JQLlFg7KDQLKJrLjBKbvAor3IKiEAIfkECQcAAAAsAAAAABgAGAAABbUgII4koChlmhokw5DEoI4NQ4xFMQoJO4uuhignMiQWvxGBIQC+AJBEUyUcIRiyE6CR0CllW4HABxBURTUw4nC4FcWo5CDBRpQaCoF7VjgsyCUDYDMNZ0mHdwYEBAaGMwwHDg4HDA2KjI4qkJKUiJ6faJkiA4qAKQkRB3E0i6YpAw8RERAjA4tnBoMApCMQDhFTuySKoSKMJAq6rD4GzASiJYtgi6PUcs9Kew0xh7rNJMqIhYchACH5BAkHAAAALAAAAAAYABgAAAW0ICCOJEAQZZo2JIKQxqCOjWCMDDMqxT2LAgELkBMZCoXfyCBQiFwiRsGpku0EshNgUNAtrYPT0GQVNRBWwSKBMp98P24iISgNDAS4ipGA6JUpA2WAhDR4eWM/CAkHBwkIDYcGiTOLjY+FmZkNlCN3eUoLDmwlDW+AAwcODl5bYl8wCVYMDw5UWzBtnAANEQ8kBIM0oAAGPgcREIQnVloAChEOqARjzgAQEbczg8YkWJq8nSUhACH5BAkHAAAALAAAAAAYABgAAAWtICCOJGAYZZoOpKKQqDoORDMKwkgwtiwSBBYAJ2owGL5RgxBziQQMgkwoMkhNqAEDARPSaiMDFdDIiRSFQowMXE8Z6RdpYHWnEAWGPVkajPmARVZMPUkCBQkJBQINgwaFPoeJi4GVlQ2Qc3VJBQcLV0ptfAMJBwdcIl+FYjALQgimoGNWIhAQZA4HXSpLMQ8PIgkOSHxAQhERPw7ASTSFyCMMDqBTJL8tf3y2fCEAIfkECQcAAAAsAAAAABgAGAAABa8gII4k0DRlmg6kYZCoOg5EDBDEaAi2jLO3nEkgkMEIL4BLpBAkVy3hCTAQKGAznM0AFNFGBAbj2cA9jQixcGZAGgECBu/9HnTp+FGjjezJFAwFBQwKe2Z+KoCChHmNjVMqA21nKQwJEJRlbnUFCQlFXlpeCWcGBUACCwlrdw8RKGImBwktdyMQEQciB7oACwcIeA4RVwAODiIGvHQKERAjxyMIB5QlVSTLYLZ0sW8hACH5BAkHAAAALAAAAAAYABgAAAW0ICCOJNA0ZZoOpGGQrDoOBCoSxNgQsQzgMZyIlvOJdi+AS2SoyXrK4umWPM5wNiV0UDUIBNkdoepTfMkA7thIECiyRtUAGq8fm2O4jIBgMBA1eAZ6Knx+gHaJR4QwdCMKBxEJRggFDGgQEREPjjAMBQUKIwIRDhBDC2QNDDEKoEkDoiMHDigICGkJBS2dDA6TAAnAEAkCdQ8ORQcHTAkLcQQODLPMIgIJaCWxJMIkPIoAt3EhACH5BAkHAAAALAAAAAAYABgAAAWtICCOJNA0ZZoOpGGQrDoOBCoSxNgQsQzgMZyIlvOJdi+AS2SoyXrK4umWHM5wNiV0UN3xdLiqr+mENcWpM9TIbrsBkEck8oC0DQqBQGGIz+t3eXtob0ZTPgNrIwQJDgtGAgwCWSIMDg4HiiUIDAxFAAoODwxDBWINCEGdSTQkCQcoegADBaQ6MggHjwAFBZUFCm0HB0kJCUy9bAYHCCPGIwqmRq0jySMGmj6yRiEAIfkECQcAAAAsAAAAABgAGAAABbIgII4k0DRlmg6kYZCsOg4EKhLE2BCxDOAxnIiW84l2L4BLZKipBopW8XRLDkeCiAMyMvQAA+uON4JEIo+vqukkKQ6RhLHplVGN+LyKcXA4Dgx5DWwGDXx+gIKENnqNdzIDaiMECwcFRgQCCowiCAcHCZIlCgICVgSfCEMMnA0CXaU2YSQFoQAKUQMMqjoyAglcAAyBAAIMRUYLCUkFlybDeAYJryLNk6xGNCTQXY0juHghACH5BAkHAAAALAAAAAAYABgAAAWzICCOJNA0ZVoOAmkY5KCSSgSNBDE2hDyLjohClBMNij8RJHIQvZwEVOpIekRQJyJs5AMoHA+GMbE1lnm9EcPhOHRnhpwUl3AsknHDm5RN+v8qCAkHBwkIfw1xBAYNgoSGiIqMgJQifZUjBhAJYj95ewIJCQV7KYpzBAkLLQADCHOtOpY5PgNlAAykAEUsQ1wzCgWdCIdeArczBQVbDJ0NAqyeBb64nQAGArBTt8R8mLuyPyEAOwAAAAAAAAAAAA==) center no-repeat}ngx-extended-pdf-viewer .pdfPresentationMode .pdfViewer{margin-left:0;margin-right:0}ngx-extended-pdf-viewer .pdfPresentationMode .pdfViewer .page,ngx-extended-pdf-viewer .pdfPresentationMode .pdfViewer .spread{display:block}ngx-extended-pdf-viewer .pdfPresentationMode .pdfViewer .page,ngx-extended-pdf-viewer .pdfPresentationMode .pdfViewer.removePageBorders .page{margin-left:auto;margin-right:auto}ngx-extended-pdf-viewer .pdfPresentationMode:-ms-fullscreen .pdfViewer .page{margin-bottom:100%!important}ngx-extended-pdf-viewer .pdfPresentationMode:-webkit-full-screen .pdfViewer .page{margin-bottom:100%;border:0}ngx-extended-pdf-viewer .pdfPresentationMode:-moz-full-screen .pdfViewer .page{margin-bottom:100%;border:0}ngx-extended-pdf-viewer .pdfPresentationMode:fullscreen .pdfViewer .page{margin-bottom:100%;border:0}ngx-extended-pdf-viewer .html *{padding:0;margin:0}ngx-extended-pdf-viewer .html{height:100%;width:100%;font-size:10px}ngx-extended-pdf-viewer .body{height:100%;width:100%}ngx-extended-pdf-viewer .body,ngx-extended-pdf-viewer .pdf-viewer button,ngx-extended-pdf-viewer .pdf-viewer input,ngx-extended-pdf-viewer .pdf-viewer select{font:message-box;outline:0}ngx-extended-pdf-viewer select{background-color:#fff!important}ngx-extended-pdf-viewer .hidden,ngx-extended-pdf-viewer [hidden]{display:none!important}ngx-extended-pdf-viewer .pdfViewer.enablePermissions .textLayer>span{-webkit-user-select:none!important;-moz-user-select:none!important;-ms-user-select:none!important;user-select:none!important;cursor:not-allowed}ngx-extended-pdf-viewer #viewerContainer.pdfPresentationMode:-ms-fullscreen{top:0!important;overflow:hidden!important}ngx-extended-pdf-viewer #viewerContainer.pdfPresentationMode:-ms-fullscreen::-ms-backdrop{background-color:#f9f9f9}ngx-extended-pdf-viewer #viewerContainer.pdfPresentationMode:-webkit-full-screen{top:0;border-top:2px solid transparent;background-color:#f9f9f9;width:100%;height:100%;overflow:hidden;cursor:none;-webkit-user-select:none;user-select:none}ngx-extended-pdf-viewer #viewerContainer.pdfPresentationMode:-moz-full-screen{top:0;border-top:2px solid transparent;background-color:#f9f9f9;width:100%;height:100%;overflow:hidden;cursor:none;-moz-user-select:none;user-select:none}ngx-extended-pdf-viewer #viewerContainer.pdfPresentationMode:-ms-fullscreen{border-top:2px solid transparent;background-color:#f9f9f9;width:100%;height:100%;cursor:none;-ms-user-select:none;user-select:none}ngx-extended-pdf-viewer #viewerContainer.pdfPresentationMode:fullscreen{top:0;border-top:2px solid transparent;background-color:#f9f9f9;width:100%;height:100%;overflow:hidden;cursor:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}ngx-extended-pdf-viewer .pdfPresentationMode:-webkit-full-screen a:not(.internalLink){display:none}ngx-extended-pdf-viewer .pdfPresentationMode:-moz-full-screen a:not(.internalLink){display:none}ngx-extended-pdf-viewer .pdfPresentationMode:-ms-fullscreen a:not(.internalLink){display:none}ngx-extended-pdf-viewer .pdfPresentationMode:fullscreen a:not(.internalLink){display:none}ngx-extended-pdf-viewer .pdfPresentationMode:-webkit-full-screen .textLayer>span{cursor:none}ngx-extended-pdf-viewer .pdfPresentationMode:-moz-full-screen .textLayer>span{cursor:none}ngx-extended-pdf-viewer .pdfPresentationMode:-ms-fullscreen .textLayer>span{cursor:none}ngx-extended-pdf-viewer .pdfPresentationMode:fullscreen .textLayer>span{cursor:none}ngx-extended-pdf-viewer .pdfPresentationMode.pdfPresentationModeControls .textLayer>span,ngx-extended-pdf-viewer .pdfPresentationMode.pdfPresentationModeControls>*{cursor:default}ngx-extended-pdf-viewer #outerContainer{width:100%;height:100%;position:relative;-webkit-clip-path:inset(0 0 0 0);clip-path:inset(0 0 0 0)}ngx-extended-pdf-viewer #sidebarContainer{position:absolute;top:32px;bottom:0;width:200px;visibility:hidden;z-index:2;border-top:1px solid #333;transition-duration:.2s;transition-timing-function:ease}html[dir=ltr] ngx-extended-pdf-viewer #sidebarContainer{transition-property:left;left:-200px;left:calc(0px - $sidebar-width)}html[dir=rtl] ngx-extended-pdf-viewer #sidebarContainer{transition-property:right;right:-200px;right:calc(0px - $sidebar-width)}ngx-extended-pdf-viewer .loadingInProgress #sidebarContainer{top:36px}ngx-extended-pdf-viewer #outerContainer.sidebarResizing #sidebarContainer{transition-duration:0s;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}ngx-extended-pdf-viewer #outerContainer.sidebarMoving #sidebarContainer,ngx-extended-pdf-viewer #outerContainer.sidebarOpen #sidebarContainer{visibility:visible}html[dir=ltr] ngx-extended-pdf-viewer #outerContainer.sidebarOpen #sidebarContainer{left:0}html[dir=rtl] ngx-extended-pdf-viewer #outerContainer.sidebarOpen #sidebarContainer{right:0}ngx-extended-pdf-viewer #mainContainer{position:absolute;top:0;right:0;bottom:0;left:0;min-width:320px}ngx-extended-pdf-viewer #sidebarContent{top:32px;bottom:0;overflow:auto;-webkit-overflow-scrolling:touch;position:absolute;width:100%;background-color:#e3e1e6}html[dir=ltr] ngx-extended-pdf-viewer #sidebarContent{left:0}html[dir=rtl] ngx-extended-pdf-viewer #sidebarContent{right:0}ngx-extended-pdf-viewer #viewerContainer{-webkit-overflow-scrolling:touch;top:32px;right:0;bottom:0;left:0;outline:0}ngx-extended-pdf-viewer #viewerContainer:not(.pdfPresentationMode){transition-duration:.2s;transition-timing-function:ease}ngx-extended-pdf-viewer #outerContainer.sidebarResizing #viewerContainer{transition-duration:0s}html[dir=ltr] ngx-extended-pdf-viewer #outerContainer.sidebarOpen #viewerContainer:not(.pdfPresentationMode){transition-property:left;left:200px}html[dir=rtl] ngx-extended-pdf-viewer #outerContainer.sidebarOpen #viewerContainer:not(.pdfPresentationMode){transition-property:right;right:200px}ngx-extended-pdf-viewer .toolbar{position:relative;left:0;right:0;z-index:7;cursor:default;border:1px solid #ddd}ngx-extended-pdf-viewer #toolbarContainer{width:100%}ngx-extended-pdf-viewer #toolbarSidebar{width:100%;height:32px;background-color:var(#e3e1e6);color:#5a5a5a;border:none;padding-top:1px}ngx-extended-pdf-viewer #sidebarResizer{position:absolute;top:0;bottom:0;width:6px;z-index:4;cursor:ew-resize}html[dir=ltr] ngx-extended-pdf-viewer #sidebarResizer{right:-6px}html[dir=rtl] ngx-extended-pdf-viewer #sidebarResizer{left:-6px}ngx-extended-pdf-viewer #toolbarContainer,ngx-extended-pdf-viewer .findbar,ngx-extended-pdf-viewer .secondaryToolbar{position:relative;height:32px;background-color:#f9f9f9}ngx-extended-pdf-viewer #toolbarViewer{height:32px}ngx-extended-pdf-viewer #loadingBar{position:relative;width:100%;height:4px;background-color:#333;border-bottom:1px solid #333}ngx-extended-pdf-viewer #loadingBar .progress{position:absolute;top:0;left:0;width:0%;height:100%;background-color:#ddd;overflow:hidden;transition:width .2s}@-webkit-keyframes progressIndeterminate{0%{left:-142px}100%{left:0}}@keyframes progressIndeterminate{0%{left:-142px}100%{left:0}}ngx-extended-pdf-viewer #loadingBar .progress.indeterminate{background-color:#999;transition:none}ngx-extended-pdf-viewer #loadingBar .progress.indeterminate .glimmer{position:absolute;top:0;left:0;height:100%;width:calc(100% + 150px);background:repeating-linear-gradient(135deg,#bbb 0,#999 5px,#999 45px,#ddd 55px,#ddd 95px,#bbb 100px);-webkit-animation:950ms linear infinite progressIndeterminate;animation:950ms linear infinite progressIndeterminate}ngx-extended-pdf-viewer .findbar,ngx-extended-pdf-viewer .secondaryToolbar{top:40px;position:absolute;z-index:7;height:auto;min-width:16px;padding:0 6px;margin:4px 2px;color:#5a5a5a;font-size:12px;line-height:14px;text-align:left;cursor:default}ngx-extended-pdf-viewer .findbar{min-width:300px}ngx-extended-pdf-viewer .findbar>div{height:32px}ngx-extended-pdf-viewer .findbar.wrapContainers>div{clear:both}ngx-extended-pdf-viewer .findbar.wrapContainers>div#findbarMessageContainer{height:auto}html[dir=ltr] ngx-extended-pdf-viewer .findbar{left:34px}html[dir=rtl] ngx-extended-pdf-viewer .findbar{right:34px}ngx-extended-pdf-viewer .findbar label{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}ngx-extended-pdf-viewer #findInput{width:200px}ngx-extended-pdf-viewer #findInput::-webkit-input-placeholder{color:#bfbfbf}ngx-extended-pdf-viewer #findInput::-moz-placeholder{font-style:italic}ngx-extended-pdf-viewer #findInput:-ms-input-placeholder{font-style:italic}ngx-extended-pdf-viewer #findInput::-ms-input-placeholder{font-style:italic}ngx-extended-pdf-viewer #findInput::placeholder{font-style:italic}ngx-extended-pdf-viewer #findInput[data-status=pending]{background-repeat:no-repeat;background-position:right}html[dir=rtl] ngx-extended-pdf-viewer #findInput[data-status=pending]{background-position:left}ngx-extended-pdf-viewer .secondaryToolbar{padding:6px;height:auto;z-index:8}html[dir=ltr] ngx-extended-pdf-viewer .secondaryToolbar{right:4px}html[dir=rtl] ngx-extended-pdf-viewer .secondaryToolbar{left:4px}ngx-extended-pdf-viewer #secondaryToolbarButtonContainer{max-width:200px;max-height:400px;overflow-y:auto;-webkit-overflow-scrolling:touch;margin-bottom:-4px}ngx-extended-pdf-viewer #secondaryToolbarButtonContainer.hiddenScrollModeButtons>.scrollModeButtons,ngx-extended-pdf-viewer #secondaryToolbarButtonContainer.hiddenSpreadModeButtons>.spreadModeButtons{display:none!important}ngx-extended-pdf-viewer .doorHanger,ngx-extended-pdf-viewer .doorHangerRight{border:1px solid rgba(0,0,0,.5);border-radius:2px}ngx-extended-pdf-viewer .doorHanger:after,ngx-extended-pdf-viewer .doorHanger:before,ngx-extended-pdf-viewer .doorHangerRight:after,ngx-extended-pdf-viewer .doorHangerRight:before{bottom:100%;border:solid transparent;content:' ';height:0;width:0;position:absolute;pointer-events:none}ngx-extended-pdf-viewer .doorHanger:after,ngx-extended-pdf-viewer .doorHangerRight:after{border-bottom-color:#f9f9f9;border-width:8px}ngx-extended-pdf-viewer .doorHanger:before,ngx-extended-pdf-viewer .doorHangerRight:before{border-bottom-color:rgba(0,0,0,.5);border-width:9px}html[dir=ltr] ngx-extended-pdf-viewer .doorHanger:after,html[dir=rtl] ngx-extended-pdf-viewer .doorHangerRight:after{left:13px;margin-left:-8px}html[dir=ltr] ngx-extended-pdf-viewer .doorHanger:before,html[dir=rtl] ngx-extended-pdf-viewer .doorHangerRight:before{left:13px;margin-left:-9px}html[dir=ltr] ngx-extended-pdf-viewer .doorHangerRight:after,html[dir=rtl] ngx-extended-pdf-viewer .doorHanger:after{right:13px;margin-right:-8px}html[dir=ltr] ngx-extended-pdf-viewer .doorHangerRight:before,html[dir=rtl] ngx-extended-pdf-viewer .doorHanger:before{right:13px;margin-right:-9px}ngx-extended-pdf-viewer #findResultsCount{background-color:#5a5a5a;color:#f9f9f9;text-align:center;padding:3px 4px}ngx-extended-pdf-viewer #findMsg{font-style:italic;color:#f66}ngx-extended-pdf-viewer #findMsg:empty{display:none}ngx-extended-pdf-viewer #findInput.notFound{background-color:#f66}ngx-extended-pdf-viewer #toolbarViewerMiddle{position:absolute;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%)}html[dir=ltr] ngx-extended-pdf-viewer #toolbarViewerLeft,html[dir=rtl] ngx-extended-pdf-viewer #toolbarViewerRight{float:left;margin-left:4px}html[dir=ltr] ngx-extended-pdf-viewer #toolbarViewerRight,html[dir=rtl] ngx-extended-pdf-viewer #toolbarViewerLeft{float:right;margin-right:4px}html[dir=ltr] ngx-extended-pdf-viewer #toolbarViewerLeft>*,html[dir=ltr] ngx-extended-pdf-viewer #toolbarViewerMiddle>*,html[dir=ltr] ngx-extended-pdf-viewer #toolbarViewerRight>*,html[dir=ltr] ngx-extended-pdf-viewer .findbar *{position:relative;float:left}html[dir=rtl] ngx-extended-pdf-viewer #toolbarViewerLeft>*,html[dir=rtl] ngx-extended-pdf-viewer #toolbarViewerMiddle>*,html[dir=rtl] ngx-extended-pdf-viewer #toolbarViewerRight>*,html[dir=rtl] ngx-extended-pdf-viewer .findbar *{position:relative;float:right}ngx-extended-pdf-viewer .overlayButton,ngx-extended-pdf-viewer .secondaryToolbarButton,ngx-extended-pdf-viewer .toolbarButton{border:0;background:0 0;width:32px;height:25px}ngx-extended-pdf-viewer .toolbarButton>span{display:inline-block;width:0;height:0;overflow:hidden}ngx-extended-pdf-viewer .overlayButton[disabled],ngx-extended-pdf-viewer .secondaryToolbarButton[disabled],ngx-extended-pdf-viewer .toolbarButton[disabled]{opacity:.5}ngx-extended-pdf-viewer .dropdownToolbarButton,ngx-extended-pdf-viewer .overlayButton,ngx-extended-pdf-viewer .secondaryToolbarButton,ngx-extended-pdf-viewer .toolbarButton{min-width:16px;padding:2px 6px 0;border:1px solid transparent;border-radius:2px;color:#5a5a5a;font-size:12px;line-height:14px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}html[dir=rtl] ngx-extended-pdf-viewer .dropdownToolbarButton,html[dir=rtl] ngx-extended-pdf-viewer .overlayButton,html[dir=rtl] ngx-extended-pdf-viewer .toolbarButton{margin:3px 0 4px 2px}ngx-extended-pdf-viewer .dropdownToolbarButton,ngx-extended-pdf-viewer .overlayButton{background-color:rgba(0,0,0,.2);background-clip:padding-box;border:1px solid rgba(0,0,0,.4)}ngx-extended-pdf-viewer .secondaryToolbarButton.toggled,ngx-extended-pdf-viewer .toolbarButton.toggled{background-color:rgba(0,0,0,.2);border-color:rgba(0,0,0,.4)}ngx-extended-pdf-viewer .dropdownToolbarButton{width:140px;padding:0;overflow:hidden}html[dir=ltr] ngx-extended-pdf-viewer .dropdownToolbarButton::after{right:8px}html[dir=rtl] ngx-extended-pdf-viewer .dropdownToolbarButton::after{left:8px}ngx-extended-pdf-viewer .dropdownToolbarButton>select{width:162px;height:23px;font-size:12px;color:#5a5a5a;margin:0;padding:3px 2px 2px;border:none;background-color:#fff}ngx-extended-pdf-viewer .dropdownToolbarButton>select>option{background:#f9f9f9}ngx-extended-pdf-viewer #customScaleOption{display:none}html[dir=ltr] ngx-extended-pdf-viewer .toolbarButton:first-child,html[dir=rtl] ngx-extended-pdf-viewer .toolbarButton:last-child{margin-left:4px}ngx-extended-pdf-viewer .toolbarButtonSpacer{width:30px;display:inline-block;height:1px}html[dir=ltr] ngx-extended-pdf-viewer #findPrevious,html[dir=rtl] ngx-extended-pdf-viewer #findNext{margin-left:3px}html[dir=ltr] ngx-extended-pdf-viewer #findNext,html[dir=rtl] ngx-extended-pdf-viewer #findPrevious{margin-right:3px}ngx-extended-pdf-viewer .secondaryToolbarButton::before,ngx-extended-pdf-viewer .toolbarButton::before{position:absolute;display:inline-block;top:4px;left:7px}ngx-extended-pdf-viewer .toolbarButton.zoomOut{font-size:30px}ngx-extended-pdf-viewer .toolbarButton.zoomIn{font-size:24px}ngx-extended-pdf-viewer .secondaryToolbarButton.bookmark,ngx-extended-pdf-viewer .toolbarButton.bookmark{box-sizing:border-box;outline:0;padding-top:4px;text-decoration:none}ngx-extended-pdf-viewer .secondaryToolbarButton.bookmark{padding-top:5px}ngx-extended-pdf-viewer .bookmark[href='#']{opacity:.5;pointer-events:none}ngx-extended-pdf-viewer .toolbarButton.pdfSidebarNotification::after{position:absolute;display:inline-block;top:1px;content:'';background-color:#70db55;height:9px;width:9px;border-radius:50%}html[dir=ltr] ngx-extended-pdf-viewer .toolbarButton.pdfSidebarNotification::after{left:17px}html[dir=rtl] ngx-extended-pdf-viewer .toolbarButton.pdfSidebarNotification::after{right:17px}ngx-extended-pdf-viewer .secondaryToolbarButton{position:relative;margin:0 0 4px;padding:3px 0 1px;height:auto;min-height:25px;width:auto;min-width:100%;white-space:normal}html[dir=ltr] ngx-extended-pdf-viewer .secondaryToolbarButton{padding-left:24px;text-align:left}html[dir=rtl] ngx-extended-pdf-viewer .secondaryToolbarButton{padding-right:24px;text-align:right}html[dir=ltr] ngx-extended-pdf-viewer .secondaryToolbarButton.bookmark{padding-left:27px}html[dir=rtl] ngx-extended-pdf-viewer .secondaryToolbarButton.bookmark{padding-right:27px}html[dir=ltr] ngx-extended-pdf-viewer .secondaryToolbarButton>span{padding-right:4px}html[dir=rtl] ngx-extended-pdf-viewer .secondaryToolbarButton>span{padding-left:4px}ngx-extended-pdf-viewer .toolbarField{padding:3px 6px;margin:4px 0;border-radius:2px;background-color:#fff;background-clip:padding-box;color:#5a5a5a;font-size:12px;line-height:14px;outline-style:none;border:1px solid rgba(0,0,0,.4)}ngx-extended-pdf-viewer .toolbarField[type=checkbox]{display:inline-block;margin:8px 0}ngx-extended-pdf-viewer .toolbarField.pageNumber{-moz-appearance:textfield;min-width:16px;text-align:right;width:40px}ngx-extended-pdf-viewer .toolbarField.pageNumber.visiblePageIsLoading{background-repeat:no-repeat;background-position:1px}ngx-extended-pdf-viewer .toolbarField.pageNumber::-webkit-inner-spin-button,ngx-extended-pdf-viewer .toolbarField.pageNumber::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}ngx-extended-pdf-viewer .toolbarLabel{min-width:16px;padding:3px 6px 3px 2px;margin:4px 2px 4px 0;border:1px solid transparent;border-radius:2px;color:#5a5a5a;font-size:12px;line-height:14px;text-align:left;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}ngx-extended-pdf-viewer #thumbnailView{position:absolute;width:calc(100% - 60px);top:0;bottom:0;padding:10px 30px 0;overflow:auto;-webkit-overflow-scrolling:touch}ngx-extended-pdf-viewer #thumbnailView>a:active{outline:0}ngx-extended-pdf-viewer .thumbnail{margin:0 10px 5px}html[dir=ltr] ngx-extended-pdf-viewer .thumbnail{float:left}html[dir=rtl] ngx-extended-pdf-viewer .thumbnail{float:right}ngx-extended-pdf-viewer #thumbnailView>a:last-of-type>.thumbnail{margin-bottom:10px}ngx-extended-pdf-viewer #thumbnailView>a:last-of-type>.thumbnail:not([data-loaded]){margin-bottom:9px}ngx-extended-pdf-viewer .thumbnail:not([data-loaded]){border:1px dashed rgba(255,0,0,.5);margin:-1px 9px 4px}ngx-extended-pdf-viewer .thumbnailImage{border:1px solid transparent;opacity:.8;z-index:1;background-color:#fff;background-clip:content-box}ngx-extended-pdf-viewer .thumbnailSelectionRing{border-radius:2px;padding:7px}ngx-extended-pdf-viewer .thumbnail.selected>.thumbnailSelectionRing>.thumbnailImage{opacity:1}ngx-extended-pdf-viewer .thumbnail.selected>.thumbnailSelectionRing{background-color:rgba(255,255,255,.4);background-clip:padding-box;color:#fff}ngx-extended-pdf-viewer #attachmentsView,ngx-extended-pdf-viewer #layersView,ngx-extended-pdf-viewer #outlineView{position:absolute;width:calc(100% - 8px);top:0;bottom:0;overflow:auto;-webkit-overflow-scrolling:touch;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}ngx-extended-pdf-viewer #outlineView{padding:4px 4px 0}ngx-extended-pdf-viewer #attachmentsView{padding:3px 4px 0}html[dir=ltr] ngx-extended-pdf-viewer .treeItem>.treeItems,html[dir=ltr] ngx-extended-pdf-viewer .treeWithDeepNesting>.treeItem{margin-left:20px}html[dir=rtl] ngx-extended-pdf-viewer .treeItem>.treeItems,html[dir=rtl] ngx-extended-pdf-viewer .treeWithDeepNesting>.treeItem{margin-right:20px}ngx-extended-pdf-viewer .treeItem>a{text-decoration:none;display:inline-block;min-width:95%;min-width:calc(100% - 4px);height:auto;margin-bottom:1px;border-radius:2px;color:#5a5a5a;font-size:13px;line-height:15px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;white-space:normal;cursor:pointer}html[dir=ltr] ngx-extended-pdf-viewer .treeItem>a{padding:2px 0 5px 4px}html[dir=rtl] ngx-extended-pdf-viewer .treeItem>a{padding:2px 4px 5px 0}ngx-extended-pdf-viewer #layersView .treeItem>a>*{cursor:pointer}html[dir=ltr] ngx-extended-pdf-viewer #layersView .treeItem>a>label{padding-left:4px}html[dir=rtl] ngx-extended-pdf-viewer #layersView .treesItem>a>label{padding-right:4px}ngx-extended-pdf-viewer .treeItemToggler{position:relative;height:0;width:0}ngx-extended-pdf-viewer .treeItemToggler::before{content:url(assets/images/treeitem-expanded.svg);display:inline-block;position:absolute;max-width:16px}ngx-extended-pdf-viewer .treeItemToggler.treeItemsHidden::before{content:url(assets/images/treeitem-collapsed.svg);max-width:16px}html[dir=rtl] ngx-extended-pdf-viewer .treeItemToggler.treeItemsHidden::before{-webkit-transform:scaleX(-1);transform:scaleX(-1)}ngx-extended-pdf-viewer .treeItemToggler.treeItemsHidden~.treeItems{display:none}html[dir=ltr] ngx-extended-pdf-viewer .treeItemToggler{float:left}html[dir=rtl] ngx-extended-pdf-viewer .treeItemToggler{float:right}html[dir=ltr] ngx-extended-pdf-viewer .treeItemToggler::before{right:4px}html[dir=rtl] ngx-extended-pdf-viewer .treeItemToggler::before{left:4px}ngx-extended-pdf-viewer .treeItem>a:hover,ngx-extended-pdf-viewer .treeItemToggler:hover,ngx-extended-pdf-viewer .treeItemToggler:hover+a,ngx-extended-pdf-viewer .treeItemToggler:hover~.treeItems{background-clip:padding-box;border-radius:2px}ngx-extended-pdf-viewer .treeItem.selected{background-clip:padding-box}ngx-extended-pdf-viewer ::-moz-selection{background:rgba(0,0,255,.3)}ngx-extended-pdf-viewer ::selection{background:rgba(0,0,255,.3)}ngx-extended-pdf-viewer #errorWrapper{background:#f66;color:#fff;left:0;position:absolute;right:0;z-index:5;padding:3px;font-size:.8em}ngx-extended-pdf-viewer .loadingInProgress #errorWrapper{top:37px}ngx-extended-pdf-viewer #errorMessageLeft{float:left}ngx-extended-pdf-viewer #errorMessageRight{float:right}ngx-extended-pdf-viewer #errorMoreInfo{background-color:#fff;color:#f9f9f9;padding:3px;margin:3px;width:98%}ngx-extended-pdf-viewer .overlayButton{width:auto;margin:3px 4px 2px!important;padding:2px 6px 3px}ngx-extended-pdf-viewer #overlayContainer{display:table;position:absolute;width:100%;height:100%;background-color:rgba(0,0,0,.2);z-index:9}ngx-extended-pdf-viewer #overlayContainer>*{overflow:auto;-webkit-overflow-scrolling:touch}ngx-extended-pdf-viewer #overlayContainer>.container{display:table-cell;vertical-align:middle;text-align:center}ngx-extended-pdf-viewer #overlayContainer>.container .dialog{display:inline-block;padding:15px;border-spacing:4px;color:#5a5a5a;font-size:12px;line-height:14px;background-color:#f9f9f9;border-radius:4px}ngx-extended-pdf-viewer .dialog>.row{display:table-row}ngx-extended-pdf-viewer .dialog>.row>*{display:table-cell}ngx-extended-pdf-viewer .dialog .toolbarField{margin:5px 0}ngx-extended-pdf-viewer .dialog .buttonRow{text-align:center;vertical-align:middle}ngx-extended-pdf-viewer .dialog :link{color:#fff}ngx-extended-pdf-viewer #passwordOverlay>.dialog{text-align:center}ngx-extended-pdf-viewer #passwordOverlay .toolbarField{width:200px}ngx-extended-pdf-viewer #documentPropertiesOverlay>.dialog{text-align:left}ngx-extended-pdf-viewer #documentPropertiesOverlay .row>*{min-width:100px}html[dir=ltr] ngx-extended-pdf-viewer #documentPropertiesOverlay .row>*{text-align:left}html[dir=rtl] ngx-extended-pdf-viewer #documentPropertiesOverlay .row>*{text-align:right}.fileInput{background:#fff;color:#f9f9f9;margin-top:5px;visibility:hidden;position:fixed;right:0;top:0}ngx-extended-pdf-viewer #documentPropertiesOverlay .row>span{width:125px;word-wrap:break-word}ngx-extended-pdf-viewer #documentPropertiesOverlay .row>p{max-width:225px;word-wrap:break-word}ngx-extended-pdf-viewer #documentPropertiesOverlay .buttonRow{margin-top:10px}ngx-extended-pdf-viewer .clearBoth{clear:both}ngx-extended-pdf-viewer .grab-to-pan-grab{cursor:url(data:image/cur;base64,AAACAAEAICAAAA8ADwAwAQAAFgAAACgAAAAgAAAAQAAAAAEAAQAAAAAAgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAH4AAAB+AAAA/gAAAf8AAAP/AAAD/4AAB/+AAA7/gAAM/8AAAP7AAAG2wAABtkAAAzYAAAM2AAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA//////////////////////////////////////////////////AP///wD///4A///8AH//+AB///gAP//wAD//4AA//+AAH//yAB///AAf//wAH//4AL//+AD///yB////z///////////////////////////////////////8=),move!important;cursor:-webkit-grab!important;cursor:grab!important}ngx-extended-pdf-viewer .grab-to-pan-grab :not(input):not(textarea):not(button):not(select):not(:link){cursor:inherit!important}ngx-extended-pdf-viewer .grab-to-pan-grab:active,ngx-extended-pdf-viewer .grab-to-pan-grabbing{cursor:url(data:image/cur;base64,AAACAAEAICAAAA8ADwAwAQAAFgAAACgAAAAgAAAAQAAAAAEAAQAAAAAAgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAH4AAAB+AAAA/gAAAf8AAAP/AAAD/4AAAP+AAAD/gAAB/oAAAbYAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA//////////////////////////////////////////////////AP///wD///4A///8AH//+AB///gAP//8AD///gA///wAP//8AH///kn/////////////////////////////////////////////////////////////////8=),move!important;cursor:-webkit-grabbing!important;cursor:grabbing!important;position:fixed;background:rgba(0,0,0,0);display:block;top:0;left:0;right:0;bottom:0;overflow:hidden;z-index:10}@page{margin:0}#printContainer{display:none}@media screen and (-webkit-min-device-pixel-ratio:1.1),screen and (min-resolution:1.1dppx){ngx-extended-pdf-viewer .toolbarButton::before{-webkit-transform:scale(.5);transform:scale(.5);top:-5px}ngx-extended-pdf-viewer .secondaryToolbarButton::before{-webkit-transform:scale(.5);transform:scale(.5);top:-4px}}html[dir=ltr] ngx-extended-pdf-viewer .toolbarButton::before,html[dir=rtl] ngx-extended-pdf-viewer .toolbarButton::before{left:-1px}html[dir=ltr] ngx-extended-pdf-viewer .secondaryToolbarButton::before{left:-2px}html[dir=rtl] ngx-extended-pdf-viewer .secondaryToolbarButton::before{right:4px;left:186px}ngx-extended-pdf-viewer #findInput[data-status=pending],ngx-extended-pdf-viewer .toolbarField.pageNumber.visiblePageIsLoading{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAiCAYAAAA+stv/AAAACGFjVEwAAAAMAAAAAEy9LREAAAAaZmNUTAAAAAAAAAAgAAAAIgAAAAAAAAAAAGQD6AAA26DBZgAABPNJREFUeNq1l21MW1UYx2tgI+pghBHiNJCYKLiERMUvRvbB0S5ZygrI5toxKAItSwDHRBoIzk1SFT44oy4xfjEaY1PMRKNNyMInPxjfFjEiZsFNwpu1oy4LMFZ6uece/085F2/PiuBtPMkv5/ac8zzP/7yfWswmznktuAJ+A89ubWE+UDbYnaJ8AoS5xq8jv5aififYkV5wVW3SOP8BjsaANzmANqdpJEAjAVEp+CMqV73IW8C+dHr/FbgMfhIiHjTUzYI/AAn4y1C+CzSDVsbYSRWdMC0AxiE4+h78CH6Gw/cNgWY2EWDVgxO3bi3WmxYQCoV6MdTfAn0UfgFPJwnQ/hGA/D4KTugiurq6jpgWkJmZWbG0tPQp1sF3mOvEKIAQ1cE5iZnXuHZd07RrQkC1UcD4+DgNf8V25/sZMAQ+AA5wF4ofOHvm7El8fw0BicVIUPtgMNgHEVfA5PDw8DkxZS16zym32Wy15IPqVldXH0aZEzwH9snB7wFBBBlG/jn4kjP2LvLHUF0+OTl5Ad/fgMvhSPg9YXYQOAQ2MWVH9d4HAoETKNqP7wJQbRQGPGCHUcC9nLMAjQCG+yKG9DPwBQ33ysrKS1lZWY7BwcH2gYGBjoyMDLswKxAibOKbkr2ysrLWbrcfQbvD8/N/HjCuh41cTWzRnUnTPTQ0dBpD+BEaBFH5CbgoRiOE3tQaelsKNkuleru2tran9KBGYori7enpOUYxkwSASqvV6rx69ffX0fBjxjeEDIMy1OcJtkp5hLwjiEsjl9zFxcU1FEsWQKkI2IGju7u7aWFh4S1VZR+OjY35s7Oz95jYRHtoHSixmPdX7AaaFjE6dhErZboblIHDwGEgz4SAPMkH+XyCYsg74FHG+WvI3+aMvYOcuLB6+/b5/v7+JjGvZlNpXV1d7c2bS83SLiDqQSEJeAW8gcrzlAPk7E3khN+SZqJAxsCyCEt8LX4OH4MEo9zAWnzt5XQFqIrilgPrKIrSYOnr63MtLy+TiFeBnzPuR2P/4vLimV5frzNdAY2NjVXRaNQjB49EIh63210tn2gytjTjb8t/gdzI5TrhnJqa6lhbYy9C7cE05r+c7oeJiYlGsQ3l4AWywW5QDboBBX8BdIL7TQRPPohYIreCXZsZPA5Ogy5D4OdBO9j7XwXgDtkrvw0opxGJx+N33IZZFJwxEZjxU8g7YNQeCAQbcnJyEkcrsa2eA7KhkzD1DpAuI/qhKIyCgvVeY9484j53TE9PV6w74uSo/N/mXA8yMzNjJVvyQQ+TpO2nKl75xZyJU+/4yspyWzgcbu3s7HTqx6fH43mSXsQJ4/WeNItghaBeUJgokx4kZKsf66fa24/Nzc214IXlxdZPeRvapVW6H+TKzyw4qUtxwtVT2ezs7HH6rY+WqvIa8kG+JN/2zW7DQ+CA8RklLyKHw1FDdRuiRDmVUR27c84fojrhs0LEKNrms5y7jL0fHR1tEL2xGF84hDApHxkZcUuiXRazCWd1sx4opsS8JSUl1frVLB+t+hVMbWIxxauXq/BhWoDf76+BCOpJq8/nc4r73KKPgHEUDGZlvl6fkzEFq131kg9LGulQbm5uVX5+fhUtHONj4obhglmIRFqkR42dbMhWzLnpVAQqCXnhuFyuo9HoDU84HPHQd2o78fxKM2USW9xytk3t/rck/y8wmf4Gx4B9Xz6i1hAAAAAaZmNUTAAAAAEAAAAgAAAAIgAAAAAAAAAAAGQD6AAAQNMrsgAABQ5mZEFUAAAAAnjapZdtTFtVGMdrwKlkIYiETA37sGyQJXxiX1T2BVbN7FZANFARCi0tMDBF2BgGNcvEzC06EBMSEogi2Czz7ZPiBvFlohLFREKqET8g7y02A0YkLZd77/H/lHPN4dIJ9J7k13P6nPu8nOecnufWFGtjjJnBTfAVeHpHBQOOEsB+vVxV1S8g/5GpbFRV2S39/MrKyoOYTzTkXJbl0zDyIbgOntkamPrdZgDqKPpfdUHXqUz9C/0UeMnI6ruBF3zEg3hEmLtFAQAxAJIfAn+CWbCATE3FHIAkSe/ASD+4Bj4GFwRH34IfNgNQxwR5H5iG43n0fvS+mAPo7u4+w5jyAfDyDHwGjnFH31AAdAbQj3FZDpjEtkRWj7nF4eHhKzEHEB8fn7u4uHhVYUofU9g1rOYTGH6X5jY2Nj7H+Hvs9SjOyjAP4Eu+73NwHgiHw7+Qjd3u93HQqijsVfSPg3sgfrS6utqO8XugH0FcV3Ee6Pmurs56BHFzQ5K+7u3tPU8yrPwPPDeDQP3oFzs6OhrJBs0hmCOQFYMKcFTv/D7wOngTXAFvM0U5h/4wprNHRn56BeP3gXdiYuIiV3sSWDlmEiBbfXzvA36//1OIaFGpIB9UKYpSTT1wgXvFAO7H5MVIBhi7BC5j39/C96vLy8sVcXFx1oaGBkdjY6MTYwtXS+VBmPnYRHOdnV3nenp6zickJOTNzflzuEPunPey7MZ435btbm9vr1hfX7/AlEgm3gCXtGy0tbU9Jaw2E9ytZWrP1dbWPqE5FQlJkru5ubmIfG4JAJzKysoqHBn52UM/N7AZiKJcDjN2BPPJnJ1aMgHdA3rnNwZu2NPT0wvIlz4AageBBVhLyspsk5OTZ3HIXhsaGnoxMTERRvfcHvJ6vS9IoZD7t/Fxh8VieZZnx8J9RW0PgCxwGlgFYgkgWbTBbR6L+BAbC4cP8RQ1IN2N6Imz/9y5U19TU1PE9zXWlllSUlK4vLzqFA8ipxSkmfBRCTwC9Ywp9dRDocpksJEj0bE+CLrvKYC6aIRCktNoALIk2UXHIvBdZnI4HPlLS0skOIMtiIBxTSAYcNOc0QDKy8vzgsGgS+88EAi47HZ7vv5G02M26H9X9lP1D9FPxuf73Y4iQ9uTbWD/s8mGz+crJ5tRnKfqFfaDE6h+lCaRA3t2rr+IFADb5COqwvo6OyozuZIrGA5gbW3tYdLVn37KCK78bdVwH3BvKxygH7cZ3YQUBLGrlQPSoZsw+i9AV4yoNEoShMJD42PjDrPZXEj7NTU1lbtpiJGh7P/bc01/enr6BOmSjXFcxaJtSZbc5HNLMWppaSlaXV11z8/POz0eT5F2fbpcrsf+y87mSpzcWRoo5aRFZEivuGLS1a51T11d0ezsbCX5gK8o1ZAXIoHjIEl7mdCAkZIoN1wpyWZmZp6n71q2ZJkVkA2ypbNtuVs1PAlyxNco/bmwWq0FPADIAZeTjOaU7Xt+mOa4zVzuA7520bACm7j6wcHBMr4ak/iGQ3CV7IGBAbsuaJuR/wVOzVFICrkzMjLytdJMMhGtBNMzqCFuTS5LBupJa2trAYKglVQ1NTUV83pu0jIgZkFQy2p6ualYUSScdtlNNkwG2smkpKS8lJSUPDo44svEbaHA/B0IVOpeaiykQ7pkw0gAB8EpQn9wbDbbc8HgbdfCQsBF4+h6/PXLYIsndqhy5j3oGW9R/xfE2P4FtUR7pWscH34AAAAaZmNUTAAAAAMAAAAgAAAAIgAAAAAAAAAAAGQD6AAArUX4WwAABPlmZEFUAAAABHjatZddTJtVGMdrwOGSgQQJmUG4UnAJ8WJeaFJiFGqydHaQKR+r0LJ+YBDopkvVQEwWUYazi8qFSzDqnKJLxsX0oklJdRfLdGNMXFe98YaP0b6jWbo1YW1f3g//zzyveXtsBd/Gk/xyTs45z/95zkfP89ZktKiq+hT4FHwBmje3MO7oAbCd75dl+ST6v1UVdQbtr/PYVYAdRTnf2NgwQ2QcHAfPcg5Oy/cCUGbQPseN9SiqchH1z8BdzOrfBsfAByyIat3Yl+AbMAO+0/XXgfPYmcuqqlwFlwwHcPduxg+x98D74ISsyv06R6cKBBAAPymKegW7s6Aoyo+GAxgfH+9VVXlMdwwfgsd1AUzTHUD9ve5iXoDTy6ivYuxaKBQ6ajiA0tLSlsXFRT/O+l0ITuCynUD9Bo2l0+mTFADOeiabzZ5hAXwOLoIrYGF9fT1EGls97yfAq5IkeVA3gfvQXdvR0dGF9lF2FMcRRIDmj42NeRHEZ+D05OTkEPVh5T9gziXUv6COTExMDJMGaQEXmAd/gMO88/vJObb7EA2C10EPqMWwORgMDaD9Djg2Pz8/zMyeBzaGhTpWVlY+UhVavXJtaWnpFLqaYQOUMOoVsIrxONXgQX0A2ygAMITt9mGVFMRr4IggJGwlJSU2p9N5oK+vz462lZnVsCAsrG2isUAgMIwdOVxWVmbLZDKfQGMRl/EGdiWGtoB6Ddy8o96pyjnu0dHRroyYGYDzIUwcBj62G0cw9oxutU2gUGnS5gWDQQccLcP+BogrqnoT9RruTHxubu5j8pkTANjb0NDQHg6HnWw3Blkgh8AjGK9ibFaqCNi0sq0WyDFI3E7eDmMXXeSLD4BKPbACm9VqffH69d9c2MKBs2fOOpjofyrl5eUPxeJx+onGspnswtTU1JukzXzUF7LbDnaDF4BNw0gAZMNpkOaTzAdK7tPZA/r1pJJJl91u38/O1WhpIo1kMuUiTdyvVzR95rPOxBpskNVAm2QqspCG3jEfhCktpp1aB086LfYWG4Akig7esYYoQh+/7323EgkPPyisCW4aKzYA0kjk0xcEj8PhaONfNB5Lkf63pF/DT6KfYTT6uwN5wY1ozUWcv5k0otGokzTzOK/hDXaAVuR9/j7sNOB8Z46GDKBd8DMtm1V3SarkZgZFB4BU/DDZ8refdgTpexcf7Tbg5SfL4Kvp6ZcrKiqqKAhiSysHZDMN2/y/AMlLPnPSsSiiUzcp8mvkoMVi2U/nhY+Slr+EVBIy/9uZa/ZIx61kSxqRSOSgXluURC/5zElGIyMjnalUyru6uury+Xyd2vPp8Xie1naHPVAu7gUl6u71YXv1KyZb7Vn3DQ524nvBTT7IV75saOVuaTOohFCbPnqI2PkXTnsxl5eXD2jzaLckSW0nDdLitK2FsuEe8ByopQ5kw8f4e2Gz2UjU9HdQrJ/6aEz+55k/SmNMs4X5gK8tFKygW7/62dnZXrYakz53EMzETB8iXNDdJqMFb7VLc4Sc4W1sbGzTUjP/U9VSMM1BDvFq/RI0jPqnL992BEEr6ff7/V0sn5u0HdDvgs5st/8tf5csi7jtkpc0TEWUPZWVlfuqq6spKVn1HxP6BLYmCG7uo8ZKNmTLztxwqQd7Cf7idHd3v5RI3PLEYoKH2gXsrKxdVCklNslyloJ2/1vh/xcYLH8CCfCBoXIWl6IAAAAaZmNUTAAAAAUAAAAgAAAAIgAAAAAAAAAAAGQD6AAAQI+KIQAABP9mZEFUAAAABnjatZdtTFtVGMdrQIkvMIKEYJbtk4IYjAl+mWFfxmpc7nZZA5PVMqhAO5RqdSQNhTnUodEYjcm+mcWpwQpMnAkfCGExIYs6jVtGSlFjDPIuLyME0qZwc8+9/h937nZ7bKXp1ZP8ck/Py/P8z3Ofe86pLdOi6/qjoBO8Bh7fabwVR3eDnCTtAfAWeJcx9maS/vvBfZacb29vl8NIG3gZPJHogL3B2C0B4H3B+TPgU9ALjlpZvQe8BPxcxC5T3+ughwv4wNReBM4jKiGIHAChjAVEo9FGGPNx568A2eSoO4UAP/gMAvrw/FJV1QsZC2hvb6+FkReBjxs+BfaYBJzV2R0BeD4GLoDPwYCuaZcGBgdPWUmDqomJiWZGecCYEYV66tjc3AySAIoAIvUOF3CGVg++0DV9cG1t7ePs7OyqdN93GXheVXUnng/z5t12u70Gv1+AAB/C6kfi+amjra2tfmNj48zGxvrZzs7OJmpD/0eUeJqmXdR0/euOjg4v2UDbXYDsXALfAHeyT60FnLyNqjooodBd2dsbqqdXwZCQly+PuPi0p4HMsVPD5ORkJwTSu/8K9ffQtF9RlAr8/gSCvkVUrqL+I/gB5JoF3AO8hnOspNWoz8//eSArK+uILEu1sizXYrjEpxVxEXZet2GcFAwGPd3d3a05OTlyPBanPBlDLnyHqJDTn8B1zi5zELKDwdPPbm3FyOk/8Pl8T5lWWw5SlXJjXF9f3zE4vaLp2vd81dfADbRdvzI29jb5TBAADpeUlDhGRkYbRAFRXS9GfwFnp1JAYN4+cJVWDac38BxfWV656HK5GsmXKIDKXh5eWZKk2vFwuCkeV7yhUKhecJxWyc3NfXBqauo8wn8tFo2Nnjv34as8OhL3lbTcCyrAESAbZCKA5gg2yOaT5EP8AvaAE2LYN9fXmxGuGv5eMy3l/f39Qca0MGxO41XM4EnMgglQY+POeebzJ69T339wmkY0TZ+H8wXUzSyCX2xxJe4mZ8lADjRYFqDpv8HWMnJhmZ4a1XXt7ydE/Wpzu93Va6urHtH50spSC/VZFTA0NHRaY9ofsHnTAKJuItK/o69L3NFE7Bb9p2W/SBxEn2Ek8nMjjlLanistvP9KshGJRNxkM4nzInHCA+Ag05mYD8UZOC9OsMEAbJOPFNcvvUzVVeNAsiwgFos9RHPF84UigqteGY3Z8TBioBc7YV5eXgGJINJaOaA5tIua7d1B9ZLPhONYUdBoGhQeDzfRXYDe1/T0dNUtQ3rrv+UE9RnzZ2ZmDtJcshHGtm62raiKl3wmHEZdXV11uOV4FxYWmv1+f52xfXo8nn1GdPgG1SzsoIBf0xBe84pprrGt+32+urm5uRbyQb6SnYaSkKX7QT5dq83qYcTFBZxgwo45Ozv7HP02ooXblYNskC3BtpTqNDwEDoDd1LC1tfWImBe4lDio77Yo3k5t1MeEd26+3oEq7gO+0ih0PzSvfnR0tIGvxmY+Owg+pXJ4eLhREO20ZVpwn2s2HOHM8JaWlh41jmbxUzWOYBpD9wijXYWNjAX09PQ4IIJWcjIQCBzn57nNiIA5CqZpFYFg4DhjCrJd9ZINm4VyKD8/v7qwsLCaEsd8mTAfYCtLSy3CpUaiOTSXbFgRsBccJsTEcTqdx1ZX1zyLi0seqqeYJ/G6pZJN7HDK2VPO+9+K+L8gw/IXI+58OxdsgRwAAAAaZmNUTAAAAAcAAAAgAAAAIgAAAAAAAAAAAGQD6AAArRlZyAAABTdmZEFUAAAACHjatZdrSFxHFMcnZJM+UGtTkUKohT60AT+lUFr0i7oN5SZrJOZhfUb3oVW6pYalYgvRGkTStBQr0tDSB9ZU2wSkglihFNvtE2milX4olPpMVt2NjbHsunvvnf5P9o6swz7ILj3w84z3zMw5c+65M7MsWeGc54B6YOWBwGOAJUPiTpzvAXsB24HK66BbuMad0A7AJO4F9wAWj7hGcABYgQ08JdleCgegUQCvSrZnONc6oN8EhakEcBo4DKwgLcLWBFqAHECmpmlvIDPnoHvw/7mkA7i1uVltOBeUCBscNIFoAZwAnZrGuxHA+a2trbOAxYLFM7a2vlJOjiUeBkwLZ6CZagC0AnL+KJyeBbTqHjy70NfXZwMsFiyeEVI8MzNTr3GtkWsgHMBRwHw+n40CgM3p9XoJCqABdIJucH55ebnTZDIVAxYL0RAFd1pVeQX0E4BB9pvN5mPkWAQAuxWwioqK42s3bzZ6vSvNVqu1AjCsvB19ukAPeNtms1XTHGjv4jxUBP0O+JBz1QIYQX/Ep2bdkWpVLYPOxgQFAwMDVeL56OjoccAgzwOLgRkwt/snG9JOq3/L7Xa78KgwEAjkca5RVj6FbRAMof05uD+yCPcCu3CiiXSDpaUbRbt37z6iWJRyRVHKMakCSLKNIMxGm6GfYrfbq5qbm2vRttz+5zbN8RGyN4CivIT2MNf5ZWgibTsAiKmt7fUTgcC/d5zKtLS0PBex2nwWW/JFP9SQgoV8ghr5jFasc/4l9BVV1698NTLyGvmMHGgCh3Nzc8vGxydq5AA2Ufmw7zOIK6IfxuWDQZ3rX5BjzvWRubmF9ywWSyX5kgMgyQEKsFCqr6H6/f6gfXBwsEo4vhtJT09/aHp6upvr+uVb6+sfd3R0NBnZUQxfUeU+cBAcARZBMgHQGGkOmvNp8iGfao+AajntG+vrDZWVlcfEO09S8i9e/MAZCqljmPM78D1wgx/AODjEyLmo/G1ttA0bS5GvdZ3/DE38gvav0GF0/RvmD/rryFk0UAM1gKUCnExirt+gr5LWOTTQ9Tt8y+rq6kp9a2s22bln1WMlG2CpMDw8fCYUCtGKZ8PopH8PBYM/Dg0Ntco7moyZpSyJ58+WO9FnODv7R62qqrQ9FwCWBLvA++Avv98/2d/f3xrFebb8RaSBEuxeUY/gu+QQWAE3wDLX+SL0JfB41AvJ1hY/oHKsWDhNPQAF+MAa3vsK18OBgL/By4AlPIw0MICdMCMjY58RRMJARD8a4/F4RowgvGAVeMIZ0ZegH4wMYE8wqG4HQMxcm6mnuwC9r7m5ueJwYLwxQU0UiPHz8/MlNLa3t/cMbldXRTZ0BIJPkTLxwI7TsL29/eTGxoYdt5gGp9N5UmyfuFQ8K7JjbFANIHIHJajNOIo2MoM0Vmzrk5OTF/A5/olvf2lqaurdaKehIlVpIcg0rmAOweLiYiVg5FiTdsyFhYUXRT/KlqryMpoDFEpzK7FOwxdAEdgPGG4zT8p1geO0DDDxPGLbZmTTpAtN5PUOFJMPw1diMe6HDsHExESNsRoWeXYYMEjB2NhYrRR0RdK/C4LBYINwhDPDnpeXd1QczfRMgpGN+tA9QjxXMQdgsWDxjF1dXWUIglbicLlcp4zznIkMSFlgBOSgq811StOCjqCq2mkOwGLB4hrxvjIzM0uzsrJKqXAiLxORB9iqx2MFjDD6KDSGxtIcLAXJAYcJqXDCvwvWfLbr1z02agMmEOOk61fSYiISnHLmmOP+N5F/FyQp/wHjxqv8BBis8gAAABpmY1RMAAAACQAAACAAAAAiAAAAAAAAAAAAZAPoAABAamiUAAAFIWZkQVQAAAAKeAG1l2tMHFUUx6+hVE14WQkxVPGLQhvhCxqj0BgLa2KnLIXyECkIy77agpg0wSAIbQHF+EExAV8RbIJ8kfCJEAmQxkdVRNc2pJHEL2JZ6LobQktWdllm5vq/5Yysk32ku/Ekv5w7c+aec+beO/fcYbEK5/wRUCegNosFakQkEezX35dluR7aJhBtwIKhPonxJnAYmIEFHNLZbIqi2IUmWBCHZC5boQVPxJNAY1AAM0gKTkAHI5JAE7CDMxyJABYOFsl42+ut0wUpjp6AeAbXCj8Nfdbr9ZoACweLZDx37rWKEIEeCpcA2dBW7rw9pqilo6OjGrBwsEhGSNHi4qJJEQ735vsEYB7PukUL7na7zYCRDfd2335packmfIDoQguuUZZ5DfRjgEEOGgyGk8KplgDsZsBqamoqPR6Pxe12mUUbiNVvpgTOgJZjx0oqhQ/ynwfOgjbwtH4RJgLqTMhyGXQG+haOjo6e0u5PTk5WAgZ5ARgJA2DCRnPfPDEx0YhbR7a2tg4isQbc64CtC/o8cW9wAvuBFdj0n5fTefNoQkJCiWSUKiRJqoBTCQjJoCQM1BYiGY3GivLy8ir0MbpcrhIEbYefTvjshr6A616MZi/a9/2bAGRfe3tnld//952gepqbm58NettcEE5ytec6OzufQ9A30P9NcF7hvAe6b3tn+62hoSGriMk0oYvj2dnZZdPTM/X6BLxY3bAfICILPefz+R5F3y4Evgj60H7b4bj6ekFBQaWIpU9ASBaQgFEM9TWsfp8vYB0bGztFTu9KkpOTH5ydnX11Z2enz3nD2WW32+todCSKFVLuB/mgBBg1YklA9NH5KAFPUoyQVc0WzObGRlNtbe1JmtdYJbe7+6LJ7w+8B58fYU18Ai34FLwPnmIUnFY+aWqTjcXJAHyOQI9gQ/scWuMSGGS+gK9BBAsF1kA9YPGgyDLeVhnjCuB8TAHiWmjsDx+zhoaG0nXsaPrgLuxwwgZYPAwODtq2fb4v4HNcoKqq0F/iK7k0MDBg1e9oegwgXonqP0P/kPgMr1//7RXa2wsBi4F7QBeYvr1xe7Snp+d0iOAZ+i8iCRRjsYQuwXcFElfVeegr4BtwGbwDHg55Itre5odlTtUMxJsANqDnoX8FC5yrP3KVXwHf4noWvAxY1GKkgFHshCkpKQcoCRB12IsFmZmZ6cvLyyNoXwW/gJ/ADzQiX4OU/5TjQECmBABYvLZoEmcBMV9wVLSbGLdHWROfgVWw7PP7PhR9+/v7W3C6+gr3HOBnMK9y9Tua7r1qKI5Om5ub1tXV1abW1tZqbfu0WCzPaKNDG1QTCPdfsIZhdmHunWj/MT4+XiN8iNI8NTV1IRAIXJZV9fu5ubmeUNVQ0q3SIyBNO2ZprKys1AImAiu6HRPzvgD9FyVyA3o2NTX1AeFL51sKVw1fBEe1Y5Tf739cvy5w4CgDe4dSug/Y8PBwG4bXg0XnwrUT/AlMgJHPIoqRBaILnQ9tGjMzM/X0Niy4dhAMUnjr1q2ZvVFQV6AXYv4xwZw1aYFQM6w5OTknqMyGPJYLmwmC7XZN3R2FVSTxO2DhYJGMvb29ZUhCvKWtra3tJarnTBsB3SgwASR/fn7+A0zDTZXzFYfD8S5g4WARjZivtLS00vT09FK0peDDRHABc7tcZsAE9IyUn59fnZeXV0VzHrNkgeMC3cKh/4J1y9qayyLagBHB/SRqxyX7iEhVzhC53/8j+v+CmOQfnaCvAsiMZ2EAAAAaZmNUTAAAAAsAAAAgAAAAIgAAAAAAAAAAAGQD6AAArfy7fQAABPFmZEFUAAAADHjatVdtTJtVFK5hM8EQQIbEhMxfDmgC/th+TGV/BjVZXlbKh9DKYB2lLV1JmNaQVRiEjMyPv8TE6JQZK1KRf8RkYUkzg84laELI5pIZFQPESm2WQgld+374nHLf7eVa7PZWT/Lk3Jzbc85zzz3vvbcGvaIoykGgk+Fgdg/9ifYDT/J2URS7YHcTaMzPkw/55prcCPQATqCKm3NLktSrkuDmqkRFdDFfYy4EzqgJWLACLQEtNPYCwKESRHW6dROIxeOdXKL6RyBQryYnxOOxTt0EfL5zrXwi4Nm9CNCc1kYEfD5fqyEHqVtaWuqWFOz1w/220EQkEnWqidbX13sYAYuWAPlSjMdpuDOiqNign2fmcpPJ1ELBVAKYTyez2WyvRiIR5/p6uIfG7Mvo0TYn+VIMmkskEodgs7K+Mmb61NLODyCKTdBlmK4NBAKnVPvs7CwlI3kFMDOYyEBz6u8mJydPwXSMYgAWDTG1kvv5b9ZFE/zntbr6x/G8vLyTglloFQSB9lNgbmWMhImNSYSGhoYW+h35kC8X0wOcxfgsf7bs8/uH2hKJrfSPefT19b2kWW01sJdUq7/zer0vaxbSKyExtDeRTHpHR0dtlHMXAaChoqKi6erVuS6eQHyn80sYskkJQfNFeCQkhu4LXQs5jEZjM+XiCZA8x8prphIuooO3t5MutpcI+thyYGpqqiuZSHjv3rnjbm5ubmPVEViujJIPHAZOAmYVOgmUcDEo5hHKkfFW48u+ce+eo6Ojo4Xtq16p9ng87bFY/A3EPA/4gbcYzgEVBpacdSnTbExz/8Ft+rokKRegL+BAG4ZWMQK8adhObtspWSagB7pyJSClJFr1RSzqImk0JLSU1qlU6rzBbrc3RnGi8cnDOOFoLlcCw8PDHZubm2OI+S7wDsPbsVhs1O/3v8afaDxMQI6SPX4Z/yP6DG/d+uk0O9trde79E4ADeD8cDl/CYWbPkLyMdyoA6tEs/7iCdRB4AQgAV4CPgQ8BL/BMRof79xUjnlGaCylnAkeAaeAL4DN8XZ9CfwL9AZoPFYdku4wkIICTsLCwMH20Eh6h7C8CR8vLyw/gPfAexl8hThB6koiwilwGntp1HSeTomvXY2JxqZvd5+bl5eW6HWJK77/1BOvw74HrW1tbI+Q7MDDgjEajH8H2JVUDZD7HAolE/q7LaHBwsH1jY8O1trbm6O/vb1ePT6fTSStyaR4lDpasXZHln6FvA007NvkHWVYWYP8OttDE5QkLxcDVbMabwhePx69goYHp6WlfpttQ4Lr0GFDMP7NWVlY6yAFJfpUV+U/YVoFF9ur5GuMfgZuKrMxjtRNFRUVPUywutrDXbXgCOK59RvF9YTab2WqVv4AwiKxB/0a28fHxflmWF1GJBdhuAN+o1WEx6ygHy5Vd2PvQrWJubq6LVsMqkCYgEwFZWWYutXigBh9WQf4WesagV5LJpENdOe4MV2VlpUW9mmGLEAG2BSqBEqvVehqkFrA91AtoSPmabgJjY2NNIEHld6Obren7nAmSRIA0AejfNW6HQ6HQJQUkYL8xPz8/ZMhBThQXFzeWlpY2ssbJf0BAkn6R5Z0K4GBZ4h41Qk1NTduhqqpWtue6hZqlgcA3zszMzAgqczeVkm4Hg8GhPfwENs5J9hGy3HKmLH7/g/D/C3TK3/RJfVWiL971AAAAGmZjVEwAAAANAAAAIAAAACIAAAAAAAAAAABkA+gAAEA2yQcAAATpZmRBVAAAAA542rWXW0xcRRjH14AaEy6RJsTEtCRGSEGe4ElpTEq3ph5Yy0UostyXUxUqpphKpQZLNRpSHkx4oBgNabfE2oSElKRBfQFj4MELiOiLGFIBS3ddsASyu2fPOeP/287Uw7C46dn4Jb/M8M18l/3mdnDYFcbYflDH2R/fwn6gh8Ejsl7X9XroTxLUl8fJhmwTDZ4LPKAVHJTGThqG8apIQho7qDNd5ba5iSTQJAJwZynWBKxY9CmgRSSI6jTbTuDu1ladFOhI3AQwRwQntrbu1tlOoLPzzUo5EHhirwRozKqjBDo7OysdCUjx/Px8s8Gw1v+u93Ea8PsDrSKQz+fzkI7GrAmQLfl4kA3XpOusBu3TXP2k0+msIGciAYxHg9XU1Lzs9/tbfb41D/X5yfBYNyfZkg8aC4VC2dCdoBgUK9ZRixrfR9fL0GZiuMjr9bqFfnx8nIKRHAUujpMUNCbmjYyMuKE6RD7AcenUtFJM+cyqNCgfr5WV24eTkpJKFZdSqSgKrafCzTJ5Ek7eJ1FKSkoqaB7ZkK3sM9rquirfLclnz56rCoW2afIu2tvbn7X82nywl+SLeW1tbc+JoFaCmqZ2dXVVU8wdCYCSnJycsomJr+plo617Oz+DE08yCPlEEBM3JxooBsWSEyA5wMvrohLOYQcHg5rK1xJOH1j2ka0WDKq/wBf55NVReKyY8hgoAKXAJbCZQIbkg3wWUoyYr5pcrs2NjZba2toKvq52JZ98bGxstsib+/4rSp1duxSISY4EhXxYAsM/o76g3hHUgo1iUAZ7oD7RBDRNa4av12MRDAabHI2NjS8FcKPJwddww9FYogmoqlq+vr7eBp9vgFMC3KKveTyeMvlGk3GCBCW+/0x5Eh2ZhYVfG/jdXmRz7R8CCtb/zOLi4qmqqqoTMYJnykYp4Ahev11PsI0EngK9oMdg7F2074BykB7TIBxmuTrTLQ9SwgnkgI/AB6hCL3iPIRG0XWgLaU7cx8gAXtxmaWlpdLW+CF6g0sYp+zMgLzU1dd/U1NRbOHZ98PchM9j70J8HPeAceHTHc6xpurrjY2Juvpm/565wOHyFMfMv02R34OzSfyTQgTvkKtpPA38HVLLFSXIvLy/3iGqAC4YR6REJCEnu7u6u3tzcVFdXV1s6OjqqxfU5NjbWgMl+cIeZ7E+0v/FgpWASfAmK7+nM60jwGv6+DD7p6+s7Sj7wNLv6+/tbA4HA+WA4fGFgYMAT6zVUpF16KD09/XE4mgY+cBss42KZjAYzzWmTmT9Ch5bdIN329vYl/H0dXEXJh1H+HvJBviTfyl6v4TFwWHxG8RvLB9bAKrg1ODh4mo/9DH5AIjNoo0n19vaqSGaUV+EK+Aw8T2PcZzHF4LHiC0q+QKUHVPpl3Gg36NfwCsxD9z32xQz6U9ykaGlp6WNehREkchl74qLDrsDxLV76FZT7d7fb3SieZuh+ogT4EokEMnCJvaLrxhfQfQ68hqEP2U5gdnb2Ipz8YaL009PT9EsKLTt+zjTNaAJov7GYFYyOjr7NmHENFfBiE7c7EpBjeXl5VQUFBXQqFOvHhB6JfIvg36EyMzimN6WPGiU7O7siKyurnK+5bTkASgh54wwPD5+JRCKToZD29dDQ0Ok97BTeT0iSiTivnDOO3f8g8v8FNuUfG4CCnr3IRI0AAAAaZmNUTAAAAA8AAAAgAAAAIgAAAAAAAAAAAGQD6AAAraAa7gAABPlmZEFUAAAAEHjatVdtTFtVGMaAJiYEIhowKOgPS7ZAYjL9o7AYtpost8Py6ZDxsUHLoEUXMITpRDIxKyNion9Q4tSFdCYYmZNEiMFo4ghDpwhiwg9/CdLabmm2wC5t74fPS8/B64HCdhtP8uTevue87/Pc97znvrdJZoeu6zlALUPO7h7mie4F7hPtiqLUwd5MoHtxnnzIN1HyvUAT4AD2CHPNqqqe4CKEuT2KrjiZ795EBBzjBCxYqlGAEQZ7KtDIBSI7x00LuLm6WisQHbwDAQc5OWF19WataQEdHScrRCLg4XgCaM5oIwEdHR0ViZTBgfn5+eOqjr3+d7/tNBEM3nBwokAg0MQE2I0CyJdi3E3BHVMUvRrXJ5j5EavVWk7BuADMb5BVV1dXBoNBRyDgb6J7djKajMVJvhSD5tbX1y2wHSEO4truqG04b0JRSnHNxHTh8PDwUW4fGxurZG7PAyUMVjLQHF/n9XqPwlREMQC7cGocxCmeWSdNisdredlXnJycfFgqkSokSaL9lJhbJhNhZfc0JJvNVk7ryId8xZh0xcM5xXdLyqlTp6vW19do8Ra43e5nDE9bAMQbBXydy+V6lpMaIUcizq6urheJ8z8CAFteXl7pxMQ3daLTaqzyMxh2HHydeCIIE19P1BMHcYkCaOSy9JZQCn9FBctyxMn2EkHvejxIvhFZdv6OWGz7ShhHbjyn+4F9wGFazGFSQIYQg2I+RRzbdjUxXbdCocaamppytq9mRwHFCIVuNYrFvdlF6WZLlQJ8UcLdFDGMxKKIJDkiN3CDCNRAXaIClEikXiTmiEQQv6Gh4YUbeKOJk3684WguUQEUI7hdfL/fUV9fbxffaCKsCfLfUfxMcdHQ0FBXOBy+pmmaH2rPA/eY3P9C6g8LCwsN7BiK5JmigwW4pOnadVyDQEDTdRJhNUGejWJ24doSa2ZA7FshNZ7Dq8AKkQJ/Q4Sf/V6KRqNmBDwKvAy4gVYIaAFOUEaQ3S3d8AHAT8S6pnPiZU3T/1xaWrqYnZ39EH4XA/t32g6aAx4HHktLS8sYHR2l8/8K0IZsxIToKmWEN6NNx3SQLeua5sP9X8CSfPv2lf7+/pO0X+jl78P2G8T9gqfo3UFAFdALdK+srJSSL7pj1eLiYoshGy46kuIXc8rMzMy7KLo/kO7ZycnJs2inG6/PkZGRI0QOzELgT7qufRcjiz6Hp7oA+wfA02TD73MI7sHvM8Dp9vb2/fy13tnZ+ZLP52tdW1tzdXd3V2/XDSWhSovS09Npay6jEOdwvQZMy7J8kZF9hjr5Ahnxwv4e2a6HQm/g/hzwNtADNFIMiiXEluJ1w0NAMf+MUnS9To+R/wzMAD/09fW1snR/BXwOISTgY7K1tbXVRlX1HZaFt4A3gSdpjsU8QByMa/eBuvgW+z6LID9ie6aRwvPsaZJgv0wCVGQAIj5hLoVzc3OvqSwLEHKG9j7J7ADpVZb6q0j392VlZZvfBrB9CYwAXoALyCgqKqoKh6Mk4CyE9apq9HXTAqampnpAPI1gV8bHx3tYP+cVfwkFuSEAT/qpwW3f4IeDqHLVE4UAvFUTamiHLBZLRX5+fiUVjvFjIoxipAyouupFZQ8KHzVSTk5OaVZWlp3tuemRC9gIYuEMDAy4w3L4Asg/8ng8zXH8JHaf0Egh7NLlrHH9/rch/i8wOf4BRvqEvL0rz4oAAAAaZmNUTAAAABEAAAAgAAAAIgAAAAAAAAAAAGQD6AAAQaGt/gAABQFmZEFUAAAAEnjatZdbTBxVHMbXgCYmCEgbsCGFhFgCCQkJfagKL+2uSTOUu6WEO2UXKlvauiSyIlZSN6FRi0lDjA8kRgmKqeUiKmjS9IU+mHql4A1pgrQVWHXDdoFlmDPj99+e0fGElbITT/LLmT1n/uf7zn3WEmnSNG0vqObs3TbAhNCD4CGxXFGUGpQ3EfQs1lMMxZoVzwSNwA4yhLomxlizbkKoy1A0xcFjM80YqNcFeGMxRgNGDOUx4LhuEKPTELGBlUCgWhCy3ocBqy5OBAIr1REbcLlOl4lC4LFwBqjOWEYGXC5XmcVEOjQ1NdXANMz1P/NdRBVe7x92XWh5ebmRGygyGqBYamMnC65eUbQK5I/z4mSbzVZKjekGUB8Sq6ioeMbr9dqXlxcb6ZnvjEbj4qRYaoPqgsHgPpQdIw3S2mqrhYL/RlGKkSeiOre/v79KLx8bGyMxSk+DAo6NCqhOf29gYKAKRXnUBigSdo2dNMU966BKcXvduvXbwaioqCNSgVQmSRLNp8TDErkJG3+mJOXn55fSexRDsWKblKNzDvFsiXa7XzwaDK6GXhZxOp1PGnqbBcKlLP29lpaWp3RRI+uy7Ghvby8nzX8ZAPnp6enFExOf14hBgXsrP4GzXUogxB1BTHw6UUsapCUaoJQCJHJPQ/gtVvD6uuzgc4lGd5x2Uay8vu6YQVt8+gq4Rkq4oIdBDjgCCnQiNJAgtEFt7icNcQeUg5vgT46PUBn7dWRk5Cyf10hTVmVlZanP5z8uLm79FiUDvwCvqqm/Uw6Q66g3LSYTCRmFRRMWVdN+1lRtCT+WVKBxVELVfjRrQJHlWlFYR5blGsvw8PALqPwJBXc0Vb2D/DZG4zbKZoaGhtxmDdTV1RXSiSmKLy4u2mtra4vEE03EZlL/vtpPFF/q7e11ra2tXcEUTMNtD3ggwvnPpfthenq6jm9DUTxRDEgDb4MfwPeADHwH8nYsLh5ELJRbQUy4gGYuNgNuqPeevwbXNzc3c3dqYHV1dQ8Ji6ufRmRjYyNTFI8HU9gNN8gEhv4b5F/CxBezs7NvJicn78LvA2D/dtOB+j1EbGxsAp2EW+8A4TLCj0dUVaXekvBXMHDd7/ePdHV1naD5urt692WUj8PgKPLW/xC3Uj14dn5+3kqx9E1AHyZGA7IiO8Qv5ugrV696MDzXgsGNz0ZHRztxnYaOz76+vmISB2PgMniHi+UAD3gJZPCyM+jtGU1jJ/F8wm63P6Ef66eczvKFhYVGdMzR0dGx5W0oCas0Ly4u7lE09Bb4GAyDD/wB/wUu9irT2BvIz4PnqWxpaYl6+BxoxaJzIi9BcTzIE9qWwt2Gh8FBkMxFCsEnYATH8ofI33O73fW8rhf0cAPnqAzn/lGmaW00Cig7CVrAPqrjbR4iDa61fUIv3kUDH4HLDL2fm5s7z3tjgQgMsB7GYICxV3hI7uTkZDMfhVOMYSoUpcoSaVJV9FoNDf0lNNZvtVqP6Vczyi6CC3wEdAMJ2dnZJcGgTAZOowOtjMlNERsYHx93KapyCb1/f3Bw0MXvcwsfgYsgZAC5xxCW4/F4amgaZMZau7u7Tf0vOJyamlqSlpZWSgvH+DGxFgi8BvHXyYDP5zsrfNRISUlJRfG7dxdSG2YMpIB8Qlw4nZ2dDQF/oNvnWznX1tZWEyZO4s+mUjSxzS1nCxv3vyXxf0GE6S+R9YNYr/xWtAAAABpmY1RMAAAAEwAAACAAAAAiAAAAAAAAAAAAZAPoAACsN34XAAAFF2ZkQVQAAAAUeNq1l1tMXEUcxmmgJkZuAtkoWHyxXCKJpvJgpD60rNocWCCgFOmyUHa36hKgLqE0vFXQVCymioYXE8LVeCONpIQHEo0xYhtCE6SpvgnULOzCrpCFhbPn4vdf59Dj2BV6Nk7yyxxmdub7ZuY/F+KMJlVVjwAr48j+LYwLHQYP8eWSJNWh/BxB33w9taG2sYrnAztwgDyu7pwsy29oJri6PEmVnKxtfiwGGjQB1lmi3oAeXXkiaNQMYnbOGjawEQxaOaHiAxgo1sSJYHDDatiA291axQuBx6IZoDp9GRlwu91VsYTByfn5+bOyirW+t97lVOHzrTs0Ia/Xa2cGyvUGqC31cdD1bgPLiqreQe5ixVlms7mSOtMMSJIaEaupqXnV5/M5vN4VO32znWHXBye1pT6obmdn5yjKTrO4yufFU8AfqqL4kK+BdXzfRG5CddHw8PAZbVQTExMkRuklYGGYqYDqtN+Njo6eQdFx6gOUc7vGAQ7rDTxKBsAKZsCLHEaUdeR+cVccjo+PLxUsQpUgCLSeAmtmYibM7JuSUFJSUkm/ozZ373pO6ONhL5ckJ3+2JMzM3OhVVGURFR6IryL3stnwT09P23WjLQDRUoH2O5fL9YImqickis6Ojo5q0vyHAVBSV1fX4Pf7r7PZ8Ch/G/GBV1CfxtgvpRH8jiCmJqdsOTk5FaTFG6CUDQRg6e/vb9ve3v5JUdTfPR7Pl0lJSekGdlA6xYEYCjlvYzew5bMwjexojR4Gx0ApsOhIM2AgjeujFDxHGvwOKAU/gzuI/F+RE7/J4fDc2NjYRbauRlNBbW1tZSCw2cjfHdotSgZ+ROT/QqgALDBuIxhn4mJMJKQX5k3ESYr0g6qotwiYuIXCOQ3EwHexGpBE0cYLa4iiWBc3NDR0PhwOf4+Cm1iCCIj+G2JYnB4cHGyN1UB9fX0ZnZi8+MrKisNms5XzJxqPOUb9A/Vv4n/U3d3tCgQ2RrAEdCZcAIcMrn8R3Q8LCwv1bBvy4ia+wRPgPSzBFPJJMAGugWcfWJw/iORIXgwSozWoBt+C66qyJ/wN+ALB8syDGtja2nqchPnopxnZ3d3N58WTSJxxTVGUceRfgc/n5uYuZWVlpeP7aZAHDu07cpCcnJxGJ+H9dwB3GeGPRxQlMloIK1/TqNfW1j5pbm5uoPXy/+mnDj5FR1cxgtf+a801kcXFxWJqS28CepjoDYiS6ORfzAnj4+PtqBgNBoOfDQwMtOI6jRyfPT09L5M4+AiPkivILzGxo+AtYA+FQk9GyrgHicPheF471luamqqXl5ftm5ubzs7OzvvehgIXpcdTUlLondAJPga94LJv3edmBprxVGtDcLXgCd5AZUtLS6/fW3MVL2KVbr5U6ovrW4h2G54CJ0AWE3kR9IEPMaoPkL9rt9trqA7CHfjbrapyi/aEs1gsFfK/1/wp7XkHTjINaO2fSOQddHAVXMFoL8/OzrrZaFAnX4C4W8YMQLCJNSmanJy0cZEPwwYTG3UveD8sh7sKCwurtKsZZe3gbbA3A1SXm5tbHgqJTs0E7oJGwwZGRkYaIdwj43Dq6+uz032uMwcDcsQAZqFJ1+xY+8X207IsItolZ1dXF+LAeDplMpkqMjMzqRNB/5jYCATO0wzIMLC6uvom96gRMjIyylJTU8vYmhtO2aCE4APH6XTW4KyA+JrLarVWR2knsO+YUgKxzy1njtruf0v8/wUG019dDISlQm+mHQAAABpmY1RMAAAAFQAAACAAAAAhAAAAAAAAAAAAZAPoAABQgGYUAAAFD2ZkQVQAAAAWeAGl13tIW9cDB/BTTCtCdbYV2SjKGJ12zL+6f7bpBnUZG1cTQyzVn49Y42266NRNVuqEPXzgqpvsD53stzHcKGHdBttEkCBM6CjdoxsrQoUhSH2kZorYlkaTcO89+570XHd7SC4xOfDxHO/jvO85JyTVQCktgAZFURp5mqQimYcegUNABA2qqp5D7GFpIIIDsD/dCnTAEgTgTeGeR0AMjoNMFUVG/FQ6FfgbVuE2j59MogIHwc16h0H6TMoVwPheR7xMqRagGg0i/X0SFXhJv8YqcPf+/QYgiRCzm7Ozs33I6JZG6QrrBU3T/kH8ikkFHhWvd3V1VQNJhJjdtFgs5dvb21di80DTAtqDXrgGZHNzQ9YLWV9fbwGCdJXechbPzc01E0LKk/2smuEqzEA97MPlo0NDQ2wiLsKyYS6Q2traUxsbG3IQhbM0YMhoi7H1VqvVyfLg+R+jCq2FM8aJaZw4V+E3+AMt/QvxD/Ac3i1dWlm6pFHtFnphFYV+DQThZbBxViBTU1On9B7w+Xz1uFSG//OhSu+VB3Hs69hvrEAO/My791e4Dn/CjXA4/HFmZqZtfHy8a2xsrCsjI0MCgpDPK2HlaRakiooKpyRJ1XimcnV19aRKVWGugKKcRXxgtwIIFr/f/w5m+izviWt6b6DVNyYnJ+sNrS2BRKFEf661o/V5sWAmHAp7LlzoOc3KJIZggQq73V4fCAQ+x4NXeEV+gd+hDPcPc+aBP2f8IvTu98/MNBYVFTlYWWIFWCgECWyD/YPeO3fvXFY07aeFhYVPsrOzjwDZC4QjbB6EQiHPzbmbzWxoeO9IvKy4IQtOQCXYdOYtN+0Jm0ElPANZ4udXCl9hkWGznvkRJhUlehmTro2Pa6qhpK6uzrm1teUWhwMaoIBgln6BxDeYgN8i1n3HTQBJU4OxYCO2lRP8+Qz/+GJUFagPlQJQ1E+BpCOqRF16gaLozk4jGRkZce/s7PwfF76ECQaFT2DyjGMVbAaSDpfLVWVctnXB20G5qanJLq5oIiukE5LKP198qL293bW2ttaLmn4INbAPSApK2f4wPz/vYqtjnMLzxS8iD2QYwTB8hHgIBuGJvRcubM0q4KwABxMdSF5UVXoR8TBmbKxgldIBXGM98TiQvcAceizOpwdKC+LjYgWy4CI3CAP4IvoQvzc9Pe1lKyHShXA0qZZDTk7OYd8lX3282a9QYTOCTJUVCtAH7y8uLr7ldDpr2HgFg8FKdihFpToQv2A25nqLsROWs3fZmYAdTB6uAH14O0awjI6OtkQikXdxsnm7t3egCdtpbPns7OwsY4VDB7SBDAQK0JJGfUUDAm7jmMuy/Ky+rLe1tZ3GRue+dy90tqcn/m4oCbO0DA6hkDpk2Amvg3dlZaUOdlc4itbyNFkOLP/PcBr2QBXyyIUyIW8p0W74KpzUj1GRCH0ambwB7ciUtf41h8PmAGI84XDEZrM52DVh8h0DwvMs52UUJn9OVHe73otDi4u3Ju6pGKHUP+NvFK7Xpvy7AC3w8q5vxdHsXHFxcZW+NRu7mqcJu8eeCYVD/6330agbSCLE7Obw8AfVqhptRdrb3d1dw/dzkqgHGIQT3efP1+AdTxj6+/sdQBIhpjcxXrm5ufa8vDw70pLxMMGO5Kzl+sYChOHPSOwd9i4f85RDIVQw4sSJ/S7Y3JTXDb8LOON7Ek+nFSyc2S5nNX3PJPwLu02sWzaoOecAAAATdEVYdFNvZnR3YXJlAEphcG5nIHIxMTkn6LNhAAAAAElFTkSuQmCC);background-size:16px 17px}ngx-extended-pdf-viewer .dropdownToolbarButton::after{width:24px;height:24px;display:inline-block;position:absolute;margin-top:5px}@media print{body{background:rgba(0,0,0,0)}#errorWrapper,#loadingBox,#secondaryToolbar,#sidebarContainer,.textLayer,.toolbar{display:none}#viewerContainer{overflow:visible}#mainContainer,#viewerContainer,.page,.page canvas{position:static;padding:0;margin:0}.page{float:left;display:none;border:none;box-shadow:none;background-clip:content-box;background-color:#fff}.page[data-loaded]{display:block}.fileInput,body[data-pdfjsprinting] #outerContainer{display:none}#printContainer canvas,#printContainer img,body[data-pdfjsprinting] #printContainer{display:block}#printContainer{height:100%}#printContainer>div{position:relative;top:0;left:0;width:1px;height:1px;overflow:visible;page-break-after:always;page-break-inside:avoid}}ngx-extended-pdf-viewer .visibleLargeView,ngx-extended-pdf-viewer .visibleMediumView,ngx-extended-pdf-viewer .visibleSmallView{display:none}ngx-extended-pdf-viewer #viewerContainer{overflow:auto;-webkit-overflow-scrolling:touch;position:absolute}ngx-extended-pdf-viewer .invisible{display:none!important}body[data-pdfjsprinting] #printContainer,body[data-pdfjsprinting] #printContainer *{padding:0;margin:0;font:message-box;outline:0}#printContainer canvas,#printContainer img{display:block!important}@media print{body[data-pdfjsprinting]>*{display:none!important}body[data-pdfjsprinting] #printContainer{display:block!important}body[data-pdfjsprinting] #printContainer div img{height:100vh!important}body,html{overflow-y:visible!important}html.cdk-global-scrollblock{width:initial;position:initial}}ngx-extended-pdf-viewer .textLayer .highlight.color0{background-color:rgba(180,0,170,.4)}ngx-extended-pdf-viewer .textLayer .highlight.color0.selected{background-color:#b400aa}ngx-extended-pdf-viewer .textLayer .highlight.color1{background-color:rgba(0,100,0,.4)}ngx-extended-pdf-viewer .textLayer .highlight.color1.selected{background-color:#006400}ngx-extended-pdf-viewer .textLayer .highlight.color2{background-color:rgba(0,0,255,.4)}ngx-extended-pdf-viewer .textLayer .highlight.color2.selected{background-color:#00f}ngx-extended-pdf-viewer .textLayer .highlight.color3{background-color:rgba(255,0,0,.4)}ngx-extended-pdf-viewer .textLayer .highlight.color3.selected{background-color:red}ngx-extended-pdf-viewer textLayer .highlight.color4{background-color:rgba(255,94,0,.4)}ngx-extended-pdf-viewer .textLayer .highlight.color4.selected{background-color:#ff5e00}html[dir=ltr] ngx-extended-pdf-viewer .dropdownToolbarButton,html[dir=ltr] ngx-extended-pdf-viewer .overlayButton,html[dir=ltr] ngx-extended-pdf-viewer .toolbarButton{margin:3px 0 4px}html[dir=ltr] ngx-extended-pdf-viewer .toolbarButton:last-child,html[dir=rtl] ngx-extended-pdf-viewer .toolbarButton:first-child{margin-right:0;margin-left:0}html[dir=ltr] ngx-extended-pdf-viewer #secondaryToolbarToggle{margin-right:4px;margin-left:0}html[dir=rtl] ngx-extended-pdf-viewer #secondaryToolbarToggle{margin-right:0;margin-left:4px}ngx-extended-pdf-viewer .dropdownToolbarButton,ngx-extended-pdf-viewer .overlayButton,ngx-extended-pdf-viewer .secondaryToolbarButton,ngx-extended-pdf-viewer .toolbarButton{padding-left:0;padding-right:0}ngx-extended-pdf-viewer .offscreen{position:fixed!important;left:-9999px!important;display:block!important;width:3000px!important}ngx-extended-pdf-viewer .offscreen #sidebarContainer{top:1000px!important}ngx-extended-pdf-viewer .dropdownToolbarButton,ngx-extended-pdf-viewer .toolbarButton{margin-left:-1px!important;margin-right:-2px!important}ngx-extended-pdf-viewer #numPages{padding-right:0}ngx-extended-pdf-viewer .pdf-viewer-template,ngx-extended-pdf-viewer .pdf-viewer-template *{display:none}ngx-extended-pdf-viewer a:focus,ngx-extended-pdf-viewer button:focus,ngx-extended-pdf-viewer input:focus,ngx-extended-pdf-viewer select:focus{outline:0;border:1px solid #00f}ngx-extended-pdf-viewer input[type=checkbox]:focus{outline:#00f solid 1px}"],encapsulation:2}),e})(),jk=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=$e({type:e,selectors:[["pdf-dark-theme"]],decls:0,vars:0,template:function(e,t){},styles:["ngx-extended-pdf-viewer .dropdownToolbarButton::after{content:url(\"data:image/svg+xml; utf8, <svg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'><path fill='rgb(217, 217, 217)' d='M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z' /></svg>\")}ngx-extended-pdf-viewer .textLayer{position:absolute;left:0;top:0;right:0;bottom:0;overflow:hidden;opacity:.2;line-height:1}ngx-extended-pdf-viewer .textLayer>span{color:transparent;position:absolute;white-space:pre;cursor:text;-webkit-transform-origin:0 0;transform-origin:0 0}ngx-extended-pdf-viewer .textLayer .highlight{margin:-1px;padding:1px;background-color:var(#b400aa);border-radius:4px}ngx-extended-pdf-viewer .textLayer .highlight.begin{border-radius:4px 0 0 4px}ngx-extended-pdf-viewer .textLayer .highlight.end{border-radius:0 4px 4px 0}ngx-extended-pdf-viewer .textLayer .highlight.middle{border-radius:0}ngx-extended-pdf-viewer .textLayer .highlight.selected{background-color:#006400}ngx-extended-pdf-viewer .textLayer ::-moz-selection{background:#00f}ngx-extended-pdf-viewer .textLayer ::selection{background:#00f}ngx-extended-pdf-viewer .textLayer .endOfContent{display:block;position:absolute;left:0;top:100%;right:0;bottom:0;z-index:-1;cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}ngx-extended-pdf-viewer .textLayer .endOfContent.active{top:0}ngx-extended-pdf-viewer .annotationLayer section{position:absolute}ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.pushButton>a,ngx-extended-pdf-viewer .annotationLayer .linkAnnotation>a{position:absolute;font-size:1em;top:0;left:0;width:100%;height:100%}ngx-extended-pdf-viewer .annotationLayer .textAnnotation img{position:absolute;cursor:pointer}ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.checkBox input,ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.radioButton input,ngx-extended-pdf-viewer .annotationLayer .choiceWidgetAnnotation select,ngx-extended-pdf-viewer .annotationLayer .textWidgetAnnotation input,ngx-extended-pdf-viewer .annotationLayer .textWidgetAnnotation textarea{background-color:rgba(0,54,255,.13);color:#474747;border:1px solid transparent;box-sizing:border-box;font-size:9px;height:100%;margin:0;padding:0 3px;vertical-align:top;width:100%}ngx-extended-pdf-viewer .annotationLayer .choiceWidgetAnnotation select option{padding:0}ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.radioButton input{border-radius:50%}ngx-extended-pdf-viewer .annotationLayer .textWidgetAnnotation textarea{font:message-box;font-size:9px;resize:none}ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.checkBox input[disabled],ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.radioButton input[disabled],ngx-extended-pdf-viewer .annotationLayer .choiceWidgetAnnotation select[disabled],ngx-extended-pdf-viewer .annotationLayer .textWidgetAnnotation input[disabled],ngx-extended-pdf-viewer .annotationLayer .textWidgetAnnotation textarea[disabled]{background:0 0;border:1px solid transparent;cursor:not-allowed}ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after,ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before,ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.radioButton input:checked:before{background-color:#474747;content:'';display:block;position:absolute}ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after,ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before{height:80%;left:45%;width:1px}ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before{-webkit-transform:rotate(45deg);transform:rotate(45deg)}ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after{-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.radioButton input:checked:before{border-radius:50%;height:50%;left:30%;top:20%;width:50%}ngx-extended-pdf-viewer .annotationLayer .textWidgetAnnotation input.comb{font-family:monospace;padding-left:2px;padding-right:0}ngx-extended-pdf-viewer .annotationLayer .textWidgetAnnotation input.comb:focus{width:115%}ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.checkBox input,ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.radioButton input{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:0}ngx-extended-pdf-viewer .annotationLayer .popupWrapper{position:absolute;width:20em}ngx-extended-pdf-viewer .annotationLayer .popup{position:absolute;z-index:4;max-width:20em;background-color:#ff9;box-shadow:0 2px 5px #888;border-radius:2px;padding:6px;margin-left:5px;cursor:pointer;font:message-box;font-size:9px;word-wrap:break-word}ngx-extended-pdf-viewer .annotationLayer .popup>*{font-size:9px}ngx-extended-pdf-viewer .annotationLayer .popup h1{display:inline-block}ngx-extended-pdf-viewer .annotationLayer .popup span{display:inline-block;margin-left:5px}ngx-extended-pdf-viewer .annotationLayer .popup p{border-top:1px solid #333;margin-top:2px;padding-top:2px}ngx-extended-pdf-viewer .annotationLayer .caretAnnotation,ngx-extended-pdf-viewer .annotationLayer .circleAnnotation svg ellipse,ngx-extended-pdf-viewer .annotationLayer .fileAttachmentAnnotation,ngx-extended-pdf-viewer .annotationLayer .freeTextAnnotation,ngx-extended-pdf-viewer .annotationLayer .highlightAnnotation,ngx-extended-pdf-viewer .annotationLayer .inkAnnotation svg polyline,ngx-extended-pdf-viewer .annotationLayer .lineAnnotation svg line,ngx-extended-pdf-viewer .annotationLayer .polygonAnnotation svg polygon,ngx-extended-pdf-viewer .annotationLayer .polylineAnnotation svg polyline,ngx-extended-pdf-viewer .annotationLayer .squareAnnotation svg rect,ngx-extended-pdf-viewer .annotationLayer .squigglyAnnotation,ngx-extended-pdf-viewer .annotationLayer .stampAnnotation,ngx-extended-pdf-viewer .annotationLayer .strikeoutAnnotation,ngx-extended-pdf-viewer .annotationLayer .underlineAnnotation{cursor:pointer}ngx-extended-pdf-viewer .pdfViewer .canvasWrapper{overflow:hidden}ngx-extended-pdf-viewer .pdfViewer .page{direction:ltr;width:816px;height:1056px;margin:1px auto -8px;position:relative;overflow:visible;border:9px solid transparent;background-clip:content-box;-o-border-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAATCAQAAADYWf5HAAAA6UlEQVR4Xl2Pi2rEMAwE16fm1f7/r14v7w4rI0IzLAF7hLxNevBSEMEF5+OilNCsRd8ZMyn+a4NmsOT8WJw1lFbSYgGFzF2bLFoLjTClWjKKGRWpDYAGXUnZ4uhbBUzF3Oe/GG/ue2fn4GgsyXhNgysV2JnrhKEMg4fEZcALmiKbNhBBRFpSyDOj1G4QOVly6O1FV54ZZq8OVygrciDt6JazRgi1ljTPH0gbrPmHPXAbCiDd4GawIjip1TPh9tt2sz24qaCjr/jAb/GBFTbq9KZ7Ke/Cqt8nayUikZKsWZK7Fe6bg5dOUt8fZHWG2BHc+6EAAAAASUVORK5CYII=) 9 9 repeat;border-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAATCAQAAADYWf5HAAAA6UlEQVR4Xl2Pi2rEMAwE16fm1f7/r14v7w4rI0IzLAF7hLxNevBSEMEF5+OilNCsRd8ZMyn+a4NmsOT8WJw1lFbSYgGFzF2bLFoLjTClWjKKGRWpDYAGXUnZ4uhbBUzF3Oe/GG/ue2fn4GgsyXhNgysV2JnrhKEMg4fEZcALmiKbNhBBRFpSyDOj1G4QOVly6O1FV54ZZq8OVygrciDt6JazRgi1ljTPH0gbrPmHPXAbCiDd4GawIjip1TPh9tt2sz24qaCjr/jAb/GBFTbq9KZ7Ke/Cqt8nayUikZKsWZK7Fe6bg5dOUt8fZHWG2BHc+6EAAAAASUVORK5CYII=) 9 9 repeat;background-color:#fff}ngx-extended-pdf-viewer .pdfViewer.removePageBorders .page{margin:0 auto 10px;border:none}ngx-extended-pdf-viewer .pdfViewer.singlePageView{display:inline-block}ngx-extended-pdf-viewer .pdfViewer.singlePageView .page{margin:0;border:none}ngx-extended-pdf-viewer .pdfViewer.scrollHorizontal,ngx-extended-pdf-viewer .pdfViewer.scrollWrapped,ngx-extended-pdf-viewer .spread{margin-left:3.5px;margin-right:3.5px;text-align:center}ngx-extended-pdf-viewer .pdfViewer.scrollHorizontal,ngx-extended-pdf-viewer .spread{white-space:nowrap}ngx-extended-pdf-viewer .pdfViewer.removePageBorders,ngx-extended-pdf-viewer .pdfViewer.scrollHorizontal .spread,ngx-extended-pdf-viewer .pdfViewer.scrollWrapped .spread{margin-left:0;margin-right:0}ngx-extended-pdf-viewer .pdfViewer.scrollHorizontal .page,ngx-extended-pdf-viewer .pdfViewer.scrollHorizontal .spread,ngx-extended-pdf-viewer .pdfViewer.scrollWrapped .page,ngx-extended-pdf-viewer .pdfViewer.scrollWrapped .spread,ngx-extended-pdf-viewer .spread .page{display:inline-block;vertical-align:middle}ngx-extended-pdf-viewer .pdfViewer.scrollHorizontal .page,ngx-extended-pdf-viewer .pdfViewer.scrollWrapped .page,ngx-extended-pdf-viewer .spread .page{margin-left:-3.5px;margin-right:-3.5px}ngx-extended-pdf-viewer .pdfViewer.removePageBorders .spread .page,ngx-extended-pdf-viewer .pdfViewer.removePageBorders.scrollHorizontal .page,ngx-extended-pdf-viewer .pdfViewer.removePageBorders.scrollWrapped .page{margin-left:5px;margin-right:5px}ngx-extended-pdf-viewer .pdfViewer .page canvas{margin:0;display:block}ngx-extended-pdf-viewer .pdfViewer .page canvas[hidden]{display:none}ngx-extended-pdf-viewer .pdfViewer .page .loadingIcon{position:absolute;display:block;left:0;top:0;right:0;bottom:0;background:url(data:image/gif;base64,R0lGODlhGAAYAPQAAP///wAAAM7Ozvr6+uDg4LCwsOjo6I6OjsjIyJycnNjY2KioqMDAwPLy8nZ2doaGhri4uGhoaAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH/C05FVFNDQVBFMi4wAwEAAAAh/hpDcmVhdGVkIHdpdGggYWpheGxvYWQuaW5mbwAh+QQJBwAAACwAAAAAGAAYAAAFriAgjiQAQWVaDgr5POSgkoTDjFE0NoQ8iw8HQZQTDQjDn4jhSABhAAOhoTqSDg7qSUQwxEaEwwFhXHhHgzOA1xshxAnfTzotGRaHglJqkJcaVEqCgyoCBQkJBQKDDXQGDYaIioyOgYSXA36XIgYMBWRzXZoKBQUMmil0lgalLSIClgBpO0g+s26nUWddXyoEDIsACq5SsTMMDIECwUdJPw0Mzsu0qHYkw72bBmozIQAh+QQJBwAAACwAAAAAGAAYAAAFsCAgjiTAMGVaDgR5HKQwqKNxIKPjjFCk0KNXC6ATKSI7oAhxWIhezwhENTCQEoeGCdWIPEgzESGxEIgGBWstEW4QCGGAIJEoxGmGt5ZkgCRQQHkGd2CESoeIIwoMBQUMP4cNeQQGDYuNj4iSb5WJnmeGng0CDGaBlIQEJziHk3sABidDAHBgagButSKvAAoyuHuUYHgCkAZqebw0AgLBQyyzNKO3byNuoSS8x8OfwIchACH5BAkHAAAALAAAAAAYABgAAAW4ICCOJIAgZVoOBJkkpDKoo5EI43GMjNPSokXCINKJCI4HcCRIQEQvqIOhGhBHhUTDhGo4diOZyFAoKEQDxra2mAEgjghOpCgz3LTBIxJ5kgwMBShACREHZ1V4Kg1rS44pBAgMDAg/Sw0GBAQGDZGTlY+YmpyPpSQDiqYiDQoCliqZBqkGAgKIS5kEjQ21VwCyp76dBHiNvz+MR74AqSOdVwbQuo+abppo10ssjdkAnc0rf8vgl8YqIQAh+QQJBwAAACwAAAAAGAAYAAAFrCAgjiQgCGVaDgZZFCQxqKNRKGOSjMjR0qLXTyciHA7AkaLACMIAiwOC1iAxCrMToHHYjWQiA4NBEA0Q1RpWxHg4cMXxNDk4OBxNUkPAQAEXDgllKgMzQA1pSYopBgonCj9JEA8REQ8QjY+RQJOVl4ugoYssBJuMpYYjDQSliwasiQOwNakALKqsqbWvIohFm7V6rQAGP6+JQLlFg7KDQLKJrLjBKbvAor3IKiEAIfkECQcAAAAsAAAAABgAGAAABbUgII4koChlmhokw5DEoI4NQ4xFMQoJO4uuhignMiQWvxGBIQC+AJBEUyUcIRiyE6CR0CllW4HABxBURTUw4nC4FcWo5CDBRpQaCoF7VjgsyCUDYDMNZ0mHdwYEBAaGMwwHDg4HDA2KjI4qkJKUiJ6faJkiA4qAKQkRB3E0i6YpAw8RERAjA4tnBoMApCMQDhFTuySKoSKMJAq6rD4GzASiJYtgi6PUcs9Kew0xh7rNJMqIhYchACH5BAkHAAAALAAAAAAYABgAAAW0ICCOJEAQZZo2JIKQxqCOjWCMDDMqxT2LAgELkBMZCoXfyCBQiFwiRsGpku0EshNgUNAtrYPT0GQVNRBWwSKBMp98P24iISgNDAS4ipGA6JUpA2WAhDR4eWM/CAkHBwkIDYcGiTOLjY+FmZkNlCN3eUoLDmwlDW+AAwcODl5bYl8wCVYMDw5UWzBtnAANEQ8kBIM0oAAGPgcREIQnVloAChEOqARjzgAQEbczg8YkWJq8nSUhACH5BAkHAAAALAAAAAAYABgAAAWtICCOJGAYZZoOpKKQqDoORDMKwkgwtiwSBBYAJ2owGL5RgxBziQQMgkwoMkhNqAEDARPSaiMDFdDIiRSFQowMXE8Z6RdpYHWnEAWGPVkajPmARVZMPUkCBQkJBQINgwaFPoeJi4GVlQ2Qc3VJBQcLV0ptfAMJBwdcIl+FYjALQgimoGNWIhAQZA4HXSpLMQ8PIgkOSHxAQhERPw7ASTSFyCMMDqBTJL8tf3y2fCEAIfkECQcAAAAsAAAAABgAGAAABa8gII4k0DRlmg6kYZCoOg5EDBDEaAi2jLO3nEkgkMEIL4BLpBAkVy3hCTAQKGAznM0AFNFGBAbj2cA9jQixcGZAGgECBu/9HnTp+FGjjezJFAwFBQwKe2Z+KoCChHmNjVMqA21nKQwJEJRlbnUFCQlFXlpeCWcGBUACCwlrdw8RKGImBwktdyMQEQciB7oACwcIeA4RVwAODiIGvHQKERAjxyMIB5QlVSTLYLZ0sW8hACH5BAkHAAAALAAAAAAYABgAAAW0ICCOJNA0ZZoOpGGQrDoOBCoSxNgQsQzgMZyIlvOJdi+AS2SoyXrK4umWPM5wNiV0UDUIBNkdoepTfMkA7thIECiyRtUAGq8fm2O4jIBgMBA1eAZ6Knx+gHaJR4QwdCMKBxEJRggFDGgQEREPjjAMBQUKIwIRDhBDC2QNDDEKoEkDoiMHDigICGkJBS2dDA6TAAnAEAkCdQ8ORQcHTAkLcQQODLPMIgIJaCWxJMIkPIoAt3EhACH5BAkHAAAALAAAAAAYABgAAAWtICCOJNA0ZZoOpGGQrDoOBCoSxNgQsQzgMZyIlvOJdi+AS2SoyXrK4umWHM5wNiV0UN3xdLiqr+mENcWpM9TIbrsBkEck8oC0DQqBQGGIz+t3eXtob0ZTPgNrIwQJDgtGAgwCWSIMDg4HiiUIDAxFAAoODwxDBWINCEGdSTQkCQcoegADBaQ6MggHjwAFBZUFCm0HB0kJCUy9bAYHCCPGIwqmRq0jySMGmj6yRiEAIfkECQcAAAAsAAAAABgAGAAABbIgII4k0DRlmg6kYZCsOg4EKhLE2BCxDOAxnIiW84l2L4BLZKipBopW8XRLDkeCiAMyMvQAA+uON4JEIo+vqukkKQ6RhLHplVGN+LyKcXA4Dgx5DWwGDXx+gIKENnqNdzIDaiMECwcFRgQCCowiCAcHCZIlCgICVgSfCEMMnA0CXaU2YSQFoQAKUQMMqjoyAglcAAyBAAIMRUYLCUkFlybDeAYJryLNk6xGNCTQXY0juHghACH5BAkHAAAALAAAAAAYABgAAAWzICCOJNA0ZVoOAmkY5KCSSgSNBDE2hDyLjohClBMNij8RJHIQvZwEVOpIekRQJyJs5AMoHA+GMbE1lnm9EcPhOHRnhpwUl3AsknHDm5RN+v8qCAkHBwkIfw1xBAYNgoSGiIqMgJQifZUjBhAJYj95ewIJCQV7KYpzBAkLLQADCHOtOpY5PgNlAAykAEUsQ1wzCgWdCIdeArczBQVbDJ0NAqyeBb64nQAGArBTt8R8mLuyPyEAOwAAAAAAAAAAAA==) center no-repeat}ngx-extended-pdf-viewer .pdfPresentationMode .pdfViewer{margin-left:0;margin-right:0}ngx-extended-pdf-viewer .pdfPresentationMode .pdfViewer .page,ngx-extended-pdf-viewer .pdfPresentationMode .pdfViewer .spread{display:block}ngx-extended-pdf-viewer .pdfPresentationMode .pdfViewer .page,ngx-extended-pdf-viewer .pdfPresentationMode .pdfViewer.removePageBorders .page{margin-left:auto;margin-right:auto}ngx-extended-pdf-viewer .pdfPresentationMode:-ms-fullscreen .pdfViewer .page{margin-bottom:100%!important}ngx-extended-pdf-viewer .pdfPresentationMode:-webkit-full-screen .pdfViewer .page{margin-bottom:100%;border:0}ngx-extended-pdf-viewer .pdfPresentationMode:-moz-full-screen .pdfViewer .page{margin-bottom:100%;border:0}ngx-extended-pdf-viewer .pdfPresentationMode:fullscreen .pdfViewer .page{margin-bottom:100%;border:0}ngx-extended-pdf-viewer .html *{padding:0;margin:0}ngx-extended-pdf-viewer .html{height:100%;width:100%;font-size:10px}ngx-extended-pdf-viewer .body{height:100%;width:100%}ngx-extended-pdf-viewer .body,ngx-extended-pdf-viewer .pdf-viewer button,ngx-extended-pdf-viewer .pdf-viewer input,ngx-extended-pdf-viewer .pdf-viewer select{font:message-box;outline:0}ngx-extended-pdf-viewer select{background-color:rgba(255,255,255,.09)!important}ngx-extended-pdf-viewer .hidden,ngx-extended-pdf-viewer [hidden]{display:none!important}ngx-extended-pdf-viewer .pdfViewer.enablePermissions .textLayer>span{-webkit-user-select:none!important;-moz-user-select:none!important;-ms-user-select:none!important;user-select:none!important;cursor:not-allowed}ngx-extended-pdf-viewer #viewerContainer.pdfPresentationMode:-ms-fullscreen{top:0!important;overflow:hidden!important}ngx-extended-pdf-viewer #viewerContainer.pdfPresentationMode:-ms-fullscreen::-ms-backdrop{background-color:#000}ngx-extended-pdf-viewer #viewerContainer.pdfPresentationMode:-webkit-full-screen{top:0;border-top:2px solid transparent;background-color:#000;width:100%;height:100%;overflow:hidden;cursor:none;-webkit-user-select:none;user-select:none}ngx-extended-pdf-viewer #viewerContainer.pdfPresentationMode:-moz-full-screen{top:0;border-top:2px solid transparent;background-color:#000;width:100%;height:100%;overflow:hidden;cursor:none;-moz-user-select:none;user-select:none}ngx-extended-pdf-viewer #viewerContainer.pdfPresentationMode:-ms-fullscreen{border-top:2px solid transparent;background-color:#000;width:100%;height:100%;cursor:none;-ms-user-select:none;user-select:none}ngx-extended-pdf-viewer #viewerContainer.pdfPresentationMode:fullscreen{top:0;border-top:2px solid transparent;background-color:#000;width:100%;height:100%;overflow:hidden;cursor:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}ngx-extended-pdf-viewer .pdfPresentationMode:-webkit-full-screen a:not(.internalLink){display:none}ngx-extended-pdf-viewer .pdfPresentationMode:-moz-full-screen a:not(.internalLink){display:none}ngx-extended-pdf-viewer .pdfPresentationMode:-ms-fullscreen a:not(.internalLink){display:none}ngx-extended-pdf-viewer .pdfPresentationMode:fullscreen a:not(.internalLink){display:none}ngx-extended-pdf-viewer .pdfPresentationMode:-webkit-full-screen .textLayer>span{cursor:none}ngx-extended-pdf-viewer .pdfPresentationMode:-moz-full-screen .textLayer>span{cursor:none}ngx-extended-pdf-viewer .pdfPresentationMode:-ms-fullscreen .textLayer>span{cursor:none}ngx-extended-pdf-viewer .pdfPresentationMode:fullscreen .textLayer>span{cursor:none}ngx-extended-pdf-viewer .pdfPresentationMode.pdfPresentationModeControls .textLayer>span,ngx-extended-pdf-viewer .pdfPresentationMode.pdfPresentationModeControls>*{cursor:default}ngx-extended-pdf-viewer #outerContainer{width:100%;height:100%;position:relative;-webkit-clip-path:inset(0 0 0 0);clip-path:inset(0 0 0 0)}ngx-extended-pdf-viewer #sidebarContainer{position:absolute;top:32px;bottom:0;width:200px;visibility:hidden;z-index:2;border-top:1px solid #333;transition-duration:.2s;transition-timing-function:ease}html[dir=ltr] ngx-extended-pdf-viewer #sidebarContainer{transition-property:left;left:-200px;left:calc(0px - $sidebar-width)}html[dir=rtl] ngx-extended-pdf-viewer #sidebarContainer{transition-property:right;right:-200px;right:calc(0px - $sidebar-width)}ngx-extended-pdf-viewer .loadingInProgress #sidebarContainer{top:36px}ngx-extended-pdf-viewer #outerContainer.sidebarResizing #sidebarContainer{transition-duration:0s;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}ngx-extended-pdf-viewer #outerContainer.sidebarMoving #sidebarContainer,ngx-extended-pdf-viewer #outerContainer.sidebarOpen #sidebarContainer{visibility:visible}html[dir=ltr] ngx-extended-pdf-viewer #outerContainer.sidebarOpen #sidebarContainer{left:0}html[dir=rtl] ngx-extended-pdf-viewer #outerContainer.sidebarOpen #sidebarContainer{right:0}ngx-extended-pdf-viewer #mainContainer{position:absolute;top:0;right:0;bottom:0;left:0;min-width:320px}ngx-extended-pdf-viewer #sidebarContent{top:32px;bottom:0;overflow:auto;-webkit-overflow-scrolling:touch;position:absolute;width:100%;background-color:rgba(0,0,0,.1)}html[dir=ltr] ngx-extended-pdf-viewer #sidebarContent{left:0}html[dir=rtl] ngx-extended-pdf-viewer #sidebarContent{right:0}ngx-extended-pdf-viewer #viewerContainer{-webkit-overflow-scrolling:touch;top:32px;right:0;bottom:0;left:0;outline:0}ngx-extended-pdf-viewer #viewerContainer:not(.pdfPresentationMode){transition-duration:.2s;transition-timing-function:ease}ngx-extended-pdf-viewer #outerContainer.sidebarResizing #viewerContainer{transition-duration:0s}html[dir=ltr] ngx-extended-pdf-viewer #outerContainer.sidebarOpen #viewerContainer:not(.pdfPresentationMode){transition-property:left;left:200px}html[dir=rtl] ngx-extended-pdf-viewer #outerContainer.sidebarOpen #viewerContainer:not(.pdfPresentationMode){transition-property:right;right:200px}ngx-extended-pdf-viewer .toolbar{position:relative;left:0;right:0;z-index:7;cursor:default;border:1px solid rgba(0,0,0,.5)}ngx-extended-pdf-viewer #toolbarContainer{width:100%}ngx-extended-pdf-viewer #toolbarSidebar{width:100%;height:32px;background-color:#424242;color:#d9d9d9;border:none;padding-top:1px}ngx-extended-pdf-viewer #sidebarResizer{position:absolute;top:0;bottom:0;width:6px;z-index:4;cursor:ew-resize}html[dir=ltr] ngx-extended-pdf-viewer #sidebarResizer{right:-6px}html[dir=rtl] ngx-extended-pdf-viewer #sidebarResizer{left:-6px}ngx-extended-pdf-viewer #toolbarContainer,ngx-extended-pdf-viewer .findbar,ngx-extended-pdf-viewer .secondaryToolbar{position:relative;height:32px;background-color:#474747}ngx-extended-pdf-viewer #toolbarViewer{height:32px}ngx-extended-pdf-viewer #loadingBar{position:relative;width:100%;height:4px;background-color:#333;border-bottom:1px solid #333}ngx-extended-pdf-viewer #loadingBar .progress{position:absolute;top:0;left:0;width:0%;height:100%;background-color:#ddd;overflow:hidden;transition:width .2s}@-webkit-keyframes progressIndeterminate{0%{left:-142px}100%{left:0}}@keyframes progressIndeterminate{0%{left:-142px}100%{left:0}}ngx-extended-pdf-viewer #loadingBar .progress.indeterminate{background-color:#999;transition:none}ngx-extended-pdf-viewer #loadingBar .progress.indeterminate .glimmer{position:absolute;top:0;left:0;height:100%;width:calc(100% + 150px);background:repeating-linear-gradient(135deg,#bbb 0,#999 5px,#999 45px,#ddd 55px,#ddd 95px,#bbb 100px);-webkit-animation:950ms linear infinite progressIndeterminate;animation:950ms linear infinite progressIndeterminate}ngx-extended-pdf-viewer .findbar,ngx-extended-pdf-viewer .secondaryToolbar{top:40px;position:absolute;z-index:7;height:auto;min-width:16px;padding:0 6px;margin:4px 2px;color:#d9d9d9;font-size:12px;line-height:14px;text-align:left;cursor:default}ngx-extended-pdf-viewer .findbar{min-width:300px}ngx-extended-pdf-viewer .findbar>div{height:32px}ngx-extended-pdf-viewer .findbar.wrapContainers>div{clear:both}ngx-extended-pdf-viewer .findbar.wrapContainers>div#findbarMessageContainer{height:auto}html[dir=ltr] ngx-extended-pdf-viewer .findbar{left:34px}html[dir=rtl] ngx-extended-pdf-viewer .findbar{right:34px}ngx-extended-pdf-viewer .findbar label{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}ngx-extended-pdf-viewer #findInput{width:200px}ngx-extended-pdf-viewer #findInput::-webkit-input-placeholder{color:#bfbfbf}ngx-extended-pdf-viewer #findInput::-moz-placeholder{font-style:italic}ngx-extended-pdf-viewer #findInput:-ms-input-placeholder{font-style:italic}ngx-extended-pdf-viewer #findInput::-ms-input-placeholder{font-style:italic}ngx-extended-pdf-viewer #findInput::placeholder{font-style:italic}ngx-extended-pdf-viewer #findInput[data-status=pending]{background-repeat:no-repeat;background-position:right}html[dir=rtl] ngx-extended-pdf-viewer #findInput[data-status=pending]{background-position:left}ngx-extended-pdf-viewer .secondaryToolbar{padding:6px;height:auto;z-index:8}html[dir=ltr] ngx-extended-pdf-viewer .secondaryToolbar{right:4px}html[dir=rtl] ngx-extended-pdf-viewer .secondaryToolbar{left:4px}ngx-extended-pdf-viewer #secondaryToolbarButtonContainer{max-width:200px;max-height:400px;overflow-y:auto;-webkit-overflow-scrolling:touch;margin-bottom:-4px}ngx-extended-pdf-viewer #secondaryToolbarButtonContainer.hiddenScrollModeButtons>.scrollModeButtons,ngx-extended-pdf-viewer #secondaryToolbarButtonContainer.hiddenSpreadModeButtons>.spreadModeButtons{display:none!important}ngx-extended-pdf-viewer .doorHanger,ngx-extended-pdf-viewer .doorHangerRight{border:1px solid rgba(0,0,0,.5);border-radius:2px}ngx-extended-pdf-viewer .doorHanger:after,ngx-extended-pdf-viewer .doorHanger:before,ngx-extended-pdf-viewer .doorHangerRight:after,ngx-extended-pdf-viewer .doorHangerRight:before{bottom:100%;border:solid transparent;content:' ';height:0;width:0;position:absolute;pointer-events:none}ngx-extended-pdf-viewer .doorHanger:after,ngx-extended-pdf-viewer .doorHangerRight:after{border-bottom-color:#474747;border-width:8px}ngx-extended-pdf-viewer .doorHanger:before,ngx-extended-pdf-viewer .doorHangerRight:before{border-bottom-color:rgba(0,0,0,.5);border-width:9px}html[dir=ltr] ngx-extended-pdf-viewer .doorHanger:after,html[dir=rtl] ngx-extended-pdf-viewer .doorHangerRight:after{left:13px;margin-left:-8px}html[dir=ltr] ngx-extended-pdf-viewer .doorHanger:before,html[dir=rtl] ngx-extended-pdf-viewer .doorHangerRight:before{left:13px;margin-left:-9px}html[dir=ltr] ngx-extended-pdf-viewer .doorHangerRight:after,html[dir=rtl] ngx-extended-pdf-viewer .doorHanger:after{right:13px;margin-right:-8px}html[dir=ltr] ngx-extended-pdf-viewer .doorHangerRight:before,html[dir=rtl] ngx-extended-pdf-viewer .doorHanger:before{right:13px;margin-right:-9px}ngx-extended-pdf-viewer #findResultsCount{background-color:#d9d9d9;color:#474747;text-align:center;padding:3px 4px}ngx-extended-pdf-viewer #findMsg{font-style:italic;color:#f66}ngx-extended-pdf-viewer #findMsg:empty{display:none}ngx-extended-pdf-viewer #findInput.notFound{background-color:#f66}ngx-extended-pdf-viewer #toolbarViewerMiddle{position:absolute;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%)}html[dir=ltr] ngx-extended-pdf-viewer #toolbarViewerLeft,html[dir=rtl] ngx-extended-pdf-viewer #toolbarViewerRight{float:left;margin-left:4px}html[dir=ltr] ngx-extended-pdf-viewer #toolbarViewerRight,html[dir=rtl] ngx-extended-pdf-viewer #toolbarViewerLeft{float:right;margin-right:4px}html[dir=ltr] ngx-extended-pdf-viewer #toolbarViewerLeft>*,html[dir=ltr] ngx-extended-pdf-viewer #toolbarViewerMiddle>*,html[dir=ltr] ngx-extended-pdf-viewer #toolbarViewerRight>*,html[dir=ltr] ngx-extended-pdf-viewer .findbar *{position:relative;float:left}html[dir=rtl] ngx-extended-pdf-viewer #toolbarViewerLeft>*,html[dir=rtl] ngx-extended-pdf-viewer #toolbarViewerMiddle>*,html[dir=rtl] ngx-extended-pdf-viewer #toolbarViewerRight>*,html[dir=rtl] ngx-extended-pdf-viewer .findbar *{position:relative;float:right}ngx-extended-pdf-viewer .overlayButton,ngx-extended-pdf-viewer .secondaryToolbarButton,ngx-extended-pdf-viewer .toolbarButton{border:0;background:0 0;width:32px;height:25px}ngx-extended-pdf-viewer .toolbarButton>span{display:inline-block;width:0;height:0;overflow:hidden}ngx-extended-pdf-viewer .overlayButton[disabled],ngx-extended-pdf-viewer .secondaryToolbarButton[disabled],ngx-extended-pdf-viewer .toolbarButton[disabled]{opacity:.5}ngx-extended-pdf-viewer .dropdownToolbarButton,ngx-extended-pdf-viewer .overlayButton,ngx-extended-pdf-viewer .secondaryToolbarButton,ngx-extended-pdf-viewer .toolbarButton{min-width:16px;padding:2px 6px 0;border:1px solid transparent;border-radius:2px;color:#d9d9d9;font-size:12px;line-height:14px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}html[dir=rtl] ngx-extended-pdf-viewer .dropdownToolbarButton,html[dir=rtl] ngx-extended-pdf-viewer .overlayButton,html[dir=rtl] ngx-extended-pdf-viewer .toolbarButton{margin:3px 0 4px 2px}ngx-extended-pdf-viewer .dropdownToolbarButton,ngx-extended-pdf-viewer .overlayButton{background-color:rgba(0,0,0,.2);background-clip:padding-box;border:1px solid rgba(0,0,0,.4)}ngx-extended-pdf-viewer .secondaryToolbarButton.toggled,ngx-extended-pdf-viewer .toolbarButton.toggled{background-color:rgba(0,0,0,.2);border-color:rgba(0,0,0,.4)}ngx-extended-pdf-viewer .dropdownToolbarButton{width:140px;padding:0;overflow:hidden}html[dir=ltr] ngx-extended-pdf-viewer .dropdownToolbarButton::after{right:8px}html[dir=rtl] ngx-extended-pdf-viewer .dropdownToolbarButton::after{left:8px}ngx-extended-pdf-viewer .dropdownToolbarButton>select{width:162px;height:23px;font-size:12px;color:#d9d9d9;margin:0;padding:3px 2px 2px;border:none;background-color:rgba(255,255,255,.09)}ngx-extended-pdf-viewer .dropdownToolbarButton>select>option{background:#474747}ngx-extended-pdf-viewer #customScaleOption{display:none}html[dir=ltr] ngx-extended-pdf-viewer .toolbarButton:first-child,html[dir=rtl] ngx-extended-pdf-viewer .toolbarButton:last-child{margin-left:4px}ngx-extended-pdf-viewer .toolbarButtonSpacer{width:30px;display:inline-block;height:1px}html[dir=ltr] ngx-extended-pdf-viewer #findPrevious,html[dir=rtl] ngx-extended-pdf-viewer #findNext{margin-left:3px}html[dir=ltr] ngx-extended-pdf-viewer #findNext,html[dir=rtl] ngx-extended-pdf-viewer #findPrevious{margin-right:3px}ngx-extended-pdf-viewer .secondaryToolbarButton::before,ngx-extended-pdf-viewer .toolbarButton::before{position:absolute;display:inline-block;top:4px;left:7px}ngx-extended-pdf-viewer .toolbarButton.zoomOut{font-size:30px}ngx-extended-pdf-viewer .toolbarButton.zoomIn{font-size:24px}ngx-extended-pdf-viewer .secondaryToolbarButton.bookmark,ngx-extended-pdf-viewer .toolbarButton.bookmark{box-sizing:border-box;outline:0;padding-top:4px;text-decoration:none}ngx-extended-pdf-viewer .secondaryToolbarButton.bookmark{padding-top:5px}ngx-extended-pdf-viewer .bookmark[href='#']{opacity:.5;pointer-events:none}ngx-extended-pdf-viewer .toolbarButton.pdfSidebarNotification::after{position:absolute;display:inline-block;top:1px;content:'';background-color:#70db55;height:9px;width:9px;border-radius:50%}html[dir=ltr] ngx-extended-pdf-viewer .toolbarButton.pdfSidebarNotification::after{left:17px}html[dir=rtl] ngx-extended-pdf-viewer .toolbarButton.pdfSidebarNotification::after{right:17px}ngx-extended-pdf-viewer .secondaryToolbarButton{position:relative;margin:0 0 4px;padding:3px 0 1px;height:auto;min-height:25px;width:auto;min-width:100%;white-space:normal}html[dir=ltr] ngx-extended-pdf-viewer .secondaryToolbarButton{padding-left:24px;text-align:left}html[dir=rtl] ngx-extended-pdf-viewer .secondaryToolbarButton{padding-right:24px;text-align:right}html[dir=ltr] ngx-extended-pdf-viewer .secondaryToolbarButton.bookmark{padding-left:27px}html[dir=rtl] ngx-extended-pdf-viewer .secondaryToolbarButton.bookmark{padding-right:27px}html[dir=ltr] ngx-extended-pdf-viewer .secondaryToolbarButton>span{padding-right:4px}html[dir=rtl] ngx-extended-pdf-viewer .secondaryToolbarButton>span{padding-left:4px}ngx-extended-pdf-viewer .toolbarField{padding:3px 6px;margin:4px 0;border-radius:2px;background-color:rgba(255,255,255,.09);background-clip:padding-box;color:#d9d9d9;font-size:12px;line-height:14px;outline-style:none;border:1px solid rgba(0,0,0,.4)}ngx-extended-pdf-viewer .toolbarField[type=checkbox]{display:inline-block;margin:8px 0}ngx-extended-pdf-viewer .toolbarField.pageNumber{-moz-appearance:textfield;min-width:16px;text-align:right;width:40px}ngx-extended-pdf-viewer .toolbarField.pageNumber.visiblePageIsLoading{background-repeat:no-repeat;background-position:1px}ngx-extended-pdf-viewer .toolbarField.pageNumber::-webkit-inner-spin-button,ngx-extended-pdf-viewer .toolbarField.pageNumber::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}ngx-extended-pdf-viewer .toolbarLabel{min-width:16px;padding:3px 6px 3px 2px;margin:4px 2px 4px 0;border:1px solid transparent;border-radius:2px;color:#d9d9d9;font-size:12px;line-height:14px;text-align:left;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}ngx-extended-pdf-viewer #thumbnailView{position:absolute;width:calc(100% - 60px);top:0;bottom:0;padding:10px 30px 0;overflow:auto;-webkit-overflow-scrolling:touch}ngx-extended-pdf-viewer #thumbnailView>a:active{outline:0}ngx-extended-pdf-viewer .thumbnail{margin:0 10px 5px}html[dir=ltr] ngx-extended-pdf-viewer .thumbnail{float:left}html[dir=rtl] ngx-extended-pdf-viewer .thumbnail{float:right}ngx-extended-pdf-viewer #thumbnailView>a:last-of-type>.thumbnail{margin-bottom:10px}ngx-extended-pdf-viewer #thumbnailView>a:last-of-type>.thumbnail:not([data-loaded]){margin-bottom:9px}ngx-extended-pdf-viewer .thumbnail:not([data-loaded]){border:1px dashed rgba(255,0,0,.5);margin:-1px 9px 4px}ngx-extended-pdf-viewer .thumbnailImage{border:1px solid transparent;opacity:.8;z-index:1;background-color:#fff;background-clip:content-box}ngx-extended-pdf-viewer .thumbnailSelectionRing{border-radius:2px;padding:7px}ngx-extended-pdf-viewer .thumbnail.selected>.thumbnailSelectionRing>.thumbnailImage{opacity:1}ngx-extended-pdf-viewer .thumbnail.selected>.thumbnailSelectionRing{background-color:rgba(255,255,255,.4);background-clip:padding-box;color:#fff}ngx-extended-pdf-viewer #attachmentsView,ngx-extended-pdf-viewer #layersView,ngx-extended-pdf-viewer #outlineView{position:absolute;width:calc(100% - 8px);top:0;bottom:0;overflow:auto;-webkit-overflow-scrolling:touch;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}ngx-extended-pdf-viewer #outlineView{padding:4px 4px 0}ngx-extended-pdf-viewer #attachmentsView{padding:3px 4px 0}html[dir=ltr] ngx-extended-pdf-viewer .treeItem>.treeItems,html[dir=ltr] ngx-extended-pdf-viewer .treeWithDeepNesting>.treeItem{margin-left:20px}html[dir=rtl] ngx-extended-pdf-viewer .treeItem>.treeItems,html[dir=rtl] ngx-extended-pdf-viewer .treeWithDeepNesting>.treeItem{margin-right:20px}ngx-extended-pdf-viewer .treeItem>a{text-decoration:none;display:inline-block;min-width:95%;min-width:calc(100% - 4px);height:auto;margin-bottom:1px;border-radius:2px;color:#424242;font-size:13px;line-height:15px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;white-space:normal;cursor:pointer}html[dir=ltr] ngx-extended-pdf-viewer .treeItem>a{padding:2px 0 5px 4px}html[dir=rtl] ngx-extended-pdf-viewer .treeItem>a{padding:2px 4px 5px 0}ngx-extended-pdf-viewer #layersView .treeItem>a>*{cursor:pointer}html[dir=ltr] ngx-extended-pdf-viewer #layersView .treeItem>a>label{padding-left:4px}html[dir=rtl] ngx-extended-pdf-viewer #layersView .treesItem>a>label{padding-right:4px}ngx-extended-pdf-viewer .treeItemToggler{position:relative;height:0;width:0}ngx-extended-pdf-viewer .treeItemToggler::before{content:url(assets/images/treeitem-expanded.svg);display:inline-block;position:absolute;max-width:16px}ngx-extended-pdf-viewer .treeItemToggler.treeItemsHidden::before{content:url(assets/images/treeitem-collapsed.svg);max-width:16px}html[dir=rtl] ngx-extended-pdf-viewer .treeItemToggler.treeItemsHidden::before{-webkit-transform:scaleX(-1);transform:scaleX(-1)}ngx-extended-pdf-viewer .treeItemToggler.treeItemsHidden~.treeItems{display:none}html[dir=ltr] ngx-extended-pdf-viewer .treeItemToggler{float:left}html[dir=rtl] ngx-extended-pdf-viewer .treeItemToggler{float:right}html[dir=ltr] ngx-extended-pdf-viewer .treeItemToggler::before{right:4px}html[dir=rtl] ngx-extended-pdf-viewer .treeItemToggler::before{left:4px}ngx-extended-pdf-viewer .treeItem>a:hover,ngx-extended-pdf-viewer .treeItemToggler:hover,ngx-extended-pdf-viewer .treeItemToggler:hover+a,ngx-extended-pdf-viewer .treeItemToggler:hover~.treeItems{background-clip:padding-box;border-radius:2px}ngx-extended-pdf-viewer .treeItem.selected{background-clip:padding-box}ngx-extended-pdf-viewer ::-moz-selection{background:rgba(0,0,255,.3)}ngx-extended-pdf-viewer ::selection{background:rgba(0,0,255,.3)}ngx-extended-pdf-viewer #errorWrapper{background:#f66;color:#fff;left:0;position:absolute;right:0;z-index:5;padding:3px;font-size:.8em}ngx-extended-pdf-viewer .loadingInProgress #errorWrapper{top:37px}ngx-extended-pdf-viewer #errorMessageLeft{float:left}ngx-extended-pdf-viewer #errorMessageRight{float:right}ngx-extended-pdf-viewer #errorMoreInfo{background-color:#fff;color:#000;padding:3px;margin:3px;width:98%}ngx-extended-pdf-viewer .overlayButton{width:auto;margin:3px 4px 2px!important;padding:2px 6px 3px}ngx-extended-pdf-viewer #overlayContainer{display:table;position:absolute;width:100%;height:100%;background-color:rgba(0,0,0,.2);z-index:9}ngx-extended-pdf-viewer #overlayContainer>*{overflow:auto;-webkit-overflow-scrolling:touch}ngx-extended-pdf-viewer #overlayContainer>.container{display:table-cell;vertical-align:middle;text-align:center}ngx-extended-pdf-viewer #overlayContainer>.container .dialog{display:inline-block;padding:15px;border-spacing:4px;color:#d9d9d9;font-size:12px;line-height:14px;background-color:#474747;border-radius:4px}ngx-extended-pdf-viewer .dialog>.row{display:table-row}ngx-extended-pdf-viewer .dialog>.row>*{display:table-cell}ngx-extended-pdf-viewer .dialog .toolbarField{margin:5px 0}ngx-extended-pdf-viewer .dialog .buttonRow{text-align:center;vertical-align:middle}ngx-extended-pdf-viewer .dialog :link{color:#fff}ngx-extended-pdf-viewer #passwordOverlay>.dialog{text-align:center}ngx-extended-pdf-viewer #passwordOverlay .toolbarField{width:200px}ngx-extended-pdf-viewer #documentPropertiesOverlay>.dialog{text-align:left}ngx-extended-pdf-viewer #documentPropertiesOverlay .row>*{min-width:100px}html[dir=ltr] ngx-extended-pdf-viewer #documentPropertiesOverlay .row>*{text-align:left}html[dir=rtl] ngx-extended-pdf-viewer #documentPropertiesOverlay .row>*{text-align:right}.fileInput{background:#fff;color:#000;margin-top:5px;visibility:hidden;position:fixed;right:0;top:0}ngx-extended-pdf-viewer #documentPropertiesOverlay .row>span{width:125px;word-wrap:break-word}ngx-extended-pdf-viewer #documentPropertiesOverlay .row>p{max-width:225px;word-wrap:break-word}ngx-extended-pdf-viewer #documentPropertiesOverlay .buttonRow{margin-top:10px}ngx-extended-pdf-viewer .clearBoth{clear:both}ngx-extended-pdf-viewer .grab-to-pan-grab{cursor:url(data:image/cur;base64,AAACAAEAICAAAA8ADwAwAQAAFgAAACgAAAAgAAAAQAAAAAEAAQAAAAAAgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAH4AAAB+AAAA/gAAAf8AAAP/AAAD/4AAB/+AAA7/gAAM/8AAAP7AAAG2wAABtkAAAzYAAAM2AAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA//////////////////////////////////////////////////AP///wD///4A///8AH//+AB///gAP//wAD//4AA//+AAH//yAB///AAf//wAH//4AL//+AD///yB////z///////////////////////////////////////8=),move!important;cursor:-webkit-grab!important;cursor:grab!important}ngx-extended-pdf-viewer .grab-to-pan-grab :not(input):not(textarea):not(button):not(select):not(:link){cursor:inherit!important}ngx-extended-pdf-viewer .grab-to-pan-grab:active,ngx-extended-pdf-viewer .grab-to-pan-grabbing{cursor:url(data:image/cur;base64,AAACAAEAICAAAA8ADwAwAQAAFgAAACgAAAAgAAAAQAAAAAEAAQAAAAAAgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAH4AAAB+AAAA/gAAAf8AAAP/AAAD/4AAAP+AAAD/gAAB/oAAAbYAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA//////////////////////////////////////////////////AP///wD///4A///8AH//+AB///gAP//8AD///gA///wAP//8AH///kn/////////////////////////////////////////////////////////////////8=),move!important;cursor:-webkit-grabbing!important;cursor:grabbing!important;position:fixed;background:rgba(0,0,0,0);display:block;top:0;left:0;right:0;bottom:0;overflow:hidden;z-index:10}@page{margin:0}#printContainer{display:none}@media screen and (-webkit-min-device-pixel-ratio:1.1),screen and (min-resolution:1.1dppx){ngx-extended-pdf-viewer .toolbarButton::before{-webkit-transform:scale(.5);transform:scale(.5);top:-5px}ngx-extended-pdf-viewer .secondaryToolbarButton::before{-webkit-transform:scale(.5);transform:scale(.5);top:-4px}}html[dir=ltr] ngx-extended-pdf-viewer .toolbarButton::before,html[dir=rtl] ngx-extended-pdf-viewer .toolbarButton::before{left:-1px}html[dir=ltr] ngx-extended-pdf-viewer .secondaryToolbarButton::before{left:-2px}html[dir=rtl] ngx-extended-pdf-viewer .secondaryToolbarButton::before{right:4px;left:186px}ngx-extended-pdf-viewer #findInput[data-status=pending],ngx-extended-pdf-viewer .toolbarField.pageNumber.visiblePageIsLoading{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAiCAYAAAA+stv/AAAACGFjVEwAAAAMAAAAAEy9LREAAAAaZmNUTAAAAAAAAAAgAAAAIgAAAAAAAAAAAGQD6AAA26DBZgAABPNJREFUeNq1l21MW1UYx2tgI+pghBHiNJCYKLiERMUvRvbB0S5ZygrI5toxKAItSwDHRBoIzk1SFT44oy4xfjEaY1PMRKNNyMInPxjfFjEiZsFNwpu1oy4LMFZ6uece/085F2/PiuBtPMkv5/ac8zzP/7yfWswmznktuAJ+A89ubWE+UDbYnaJ8AoS5xq8jv5aififYkV5wVW3SOP8BjsaANzmANqdpJEAjAVEp+CMqV73IW8C+dHr/FbgMfhIiHjTUzYI/AAn4y1C+CzSDVsbYSRWdMC0AxiE4+h78CH6Gw/cNgWY2EWDVgxO3bi3WmxYQCoV6MdTfAn0UfgFPJwnQ/hGA/D4KTugiurq6jpgWkJmZWbG0tPQp1sF3mOvEKIAQ1cE5iZnXuHZd07RrQkC1UcD4+DgNf8V25/sZMAQ+AA5wF4ofOHvm7El8fw0BicVIUPtgMNgHEVfA5PDw8DkxZS16zym32Wy15IPqVldXH0aZEzwH9snB7wFBBBlG/jn4kjP2LvLHUF0+OTl5Ad/fgMvhSPg9YXYQOAQ2MWVH9d4HAoETKNqP7wJQbRQGPGCHUcC9nLMAjQCG+yKG9DPwBQ33ysrKS1lZWY7BwcH2gYGBjoyMDLswKxAibOKbkr2ysrLWbrcfQbvD8/N/HjCuh41cTWzRnUnTPTQ0dBpD+BEaBFH5CbgoRiOE3tQaelsKNkuleru2tran9KBGYori7enpOUYxkwSASqvV6rx69ffX0fBjxjeEDIMy1OcJtkp5hLwjiEsjl9zFxcU1FEsWQKkI2IGju7u7aWFh4S1VZR+OjY35s7Oz95jYRHtoHSixmPdX7AaaFjE6dhErZboblIHDwGEgz4SAPMkH+XyCYsg74FHG+WvI3+aMvYOcuLB6+/b5/v7+JjGvZlNpXV1d7c2bS83SLiDqQSEJeAW8gcrzlAPk7E3khN+SZqJAxsCyCEt8LX4OH4MEo9zAWnzt5XQFqIrilgPrKIrSYOnr63MtLy+TiFeBnzPuR2P/4vLimV5frzNdAY2NjVXRaNQjB49EIh63210tn2gytjTjb8t/gdzI5TrhnJqa6lhbYy9C7cE05r+c7oeJiYlGsQ3l4AWywW5QDboBBX8BdIL7TQRPPohYIreCXZsZPA5Ogy5D4OdBO9j7XwXgDtkrvw0opxGJx+N33IZZFJwxEZjxU8g7YNQeCAQbcnJyEkcrsa2eA7KhkzD1DpAuI/qhKIyCgvVeY9484j53TE9PV6w74uSo/N/mXA8yMzNjJVvyQQ+TpO2nKl75xZyJU+/4yspyWzgcbu3s7HTqx6fH43mSXsQJ4/WeNItghaBeUJgokx4kZKsf66fa24/Nzc214IXlxdZPeRvapVW6H+TKzyw4qUtxwtVT2ezs7HH6rY+WqvIa8kG+JN/2zW7DQ+CA8RklLyKHw1FDdRuiRDmVUR27c84fojrhs0LEKNrms5y7jL0fHR1tEL2xGF84hDApHxkZcUuiXRazCWd1sx4opsS8JSUl1frVLB+t+hVMbWIxxauXq/BhWoDf76+BCOpJq8/nc4r73KKPgHEUDGZlvl6fkzEFq131kg9LGulQbm5uVX5+fhUtHONj4obhglmIRFqkR42dbMhWzLnpVAQqCXnhuFyuo9HoDU84HPHQd2o78fxKM2USW9xytk3t/rck/y8wmf4Gx4B9Xz6i1hAAAAAaZmNUTAAAAAEAAAAgAAAAIgAAAAAAAAAAAGQD6AAAQNMrsgAABQ5mZEFUAAAAAnjapZdtTFtVGMdrwKlkIYiETA37sGyQJXxiX1T2BVbN7FZANFARCi0tMDBF2BgGNcvEzC06EBMSEogi2Czz7ZPiBvFlohLFREKqET8g7y02A0YkLZd77/H/lHPN4dIJ9J7k13P6nPu8nOecnufWFGtjjJnBTfAVeHpHBQOOEsB+vVxV1S8g/5GpbFRV2S39/MrKyoOYTzTkXJbl0zDyIbgOntkamPrdZgDqKPpfdUHXqUz9C/0UeMnI6ruBF3zEg3hEmLtFAQAxAJIfAn+CWbCATE3FHIAkSe/ASD+4Bj4GFwRH34IfNgNQxwR5H5iG43n0fvS+mAPo7u4+w5jyAfDyDHwGjnFH31AAdAbQj3FZDpjEtkRWj7nF4eHhKzEHEB8fn7u4uHhVYUofU9g1rOYTGH6X5jY2Nj7H+Hvs9SjOyjAP4Eu+73NwHgiHw7+Qjd3u93HQqijsVfSPg3sgfrS6utqO8XugH0FcV3Ee6Pmurs56BHFzQ5K+7u3tPU8yrPwPPDeDQP3oFzs6OhrJBs0hmCOQFYMKcFTv/D7wOngTXAFvM0U5h/4wprNHRn56BeP3gXdiYuIiV3sSWDlmEiBbfXzvA36//1OIaFGpIB9UKYpSTT1wgXvFAO7H5MVIBhi7BC5j39/C96vLy8sVcXFx1oaGBkdjY6MTYwtXS+VBmPnYRHOdnV3nenp6zickJOTNzflzuEPunPey7MZ435btbm9vr1hfX7/AlEgm3gCXtGy0tbU9Jaw2E9ytZWrP1dbWPqE5FQlJkru5ubmIfG4JAJzKysoqHBn52UM/N7AZiKJcDjN2BPPJnJ1aMgHdA3rnNwZu2NPT0wvIlz4AageBBVhLyspsk5OTZ3HIXhsaGnoxMTERRvfcHvJ6vS9IoZD7t/Fxh8VieZZnx8J9RW0PgCxwGlgFYgkgWbTBbR6L+BAbC4cP8RQ1IN2N6Imz/9y5U19TU1PE9zXWlllSUlK4vLzqFA8ipxSkmfBRCTwC9Ywp9dRDocpksJEj0bE+CLrvKYC6aIRCktNoALIk2UXHIvBdZnI4HPlLS0skOIMtiIBxTSAYcNOc0QDKy8vzgsGgS+88EAi47HZ7vv5G02M26H9X9lP1D9FPxuf73Y4iQ9uTbWD/s8mGz+crJ5tRnKfqFfaDE6h+lCaRA3t2rr+IFADb5COqwvo6OyozuZIrGA5gbW3tYdLVn37KCK78bdVwH3BvKxygH7cZ3YQUBLGrlQPSoZsw+i9AV4yoNEoShMJD42PjDrPZXEj7NTU1lbtpiJGh7P/bc01/enr6BOmSjXFcxaJtSZbc5HNLMWppaSlaXV11z8/POz0eT5F2fbpcrsf+y87mSpzcWRoo5aRFZEivuGLS1a51T11d0ezsbCX5gK8o1ZAXIoHjIEl7mdCAkZIoN1wpyWZmZp6n71q2ZJkVkA2ypbNtuVs1PAlyxNco/bmwWq0FPADIAZeTjOaU7Xt+mOa4zVzuA7520bACm7j6wcHBMr4ak/iGQ3CV7IGBAbsuaJuR/wVOzVFICrkzMjLytdJMMhGtBNMzqCFuTS5LBupJa2trAYKglVQ1NTUV83pu0jIgZkFQy2p6ualYUSScdtlNNkwG2smkpKS8lJSUPDo44svEbaHA/B0IVOpeaiykQ7pkw0gAB8EpQn9wbDbbc8HgbdfCQsBF4+h6/PXLYIsndqhy5j3oGW9R/xfE2P4FtUR7pWscH34AAAAaZmNUTAAAAAMAAAAgAAAAIgAAAAAAAAAAAGQD6AAArUX4WwAABPlmZEFUAAAABHjatZddTJtVGMdrwOGSgQQJmUG4UnAJ8WJeaFJiFGqydHaQKR+r0LJ+YBDopkvVQEwWUYazi8qFSzDqnKJLxsX0oklJdRfLdGNMXFe98YaP0b6jWbo1YW1f3g//zzyveXtsBd/Gk/xyTs45z/95zkfP89ZktKiq+hT4FHwBmje3MO7oAbCd75dl+ST6v1UVdQbtr/PYVYAdRTnf2NgwQ2QcHAfPcg5Oy/cCUGbQPseN9SiqchH1z8BdzOrfBsfAByyIat3Yl+AbMAO+0/XXgfPYmcuqqlwFlwwHcPduxg+x98D74ISsyv06R6cKBBAAPymKegW7s6Aoyo+GAxgfH+9VVXlMdwwfgsd1AUzTHUD9ve5iXoDTy6ivYuxaKBQ6ajiA0tLSlsXFRT/O+l0ITuCynUD9Bo2l0+mTFADOeiabzZ5hAXwOLoIrYGF9fT1EGls97yfAq5IkeVA3gfvQXdvR0dGF9lF2FMcRRIDmj42NeRHEZ+D05OTkEPVh5T9gziXUv6COTExMDJMGaQEXmAd/gMO88/vJObb7EA2C10EPqMWwORgMDaD9Djg2Pz8/zMyeBzaGhTpWVlY+UhVavXJtaWnpFLqaYQOUMOoVsIrxONXgQX0A2ygAMITt9mGVFMRr4IggJGwlJSU2p9N5oK+vz462lZnVsCAsrG2isUAgMIwdOVxWVmbLZDKfQGMRl/EGdiWGtoB6Ddy8o96pyjnu0dHRroyYGYDzIUwcBj62G0cw9oxutU2gUGnS5gWDQQccLcP+BogrqnoT9RruTHxubu5j8pkTANjb0NDQHg6HnWw3Blkgh8AjGK9ibFaqCNi0sq0WyDFI3E7eDmMXXeSLD4BKPbACm9VqffH69d9c2MKBs2fOOpjofyrl5eUPxeJx+onGspnswtTU1JukzXzUF7LbDnaDF4BNw0gAZMNpkOaTzAdK7tPZA/r1pJJJl91u38/O1WhpIo1kMuUiTdyvVzR95rPOxBpskNVAm2QqspCG3jEfhCktpp1aB086LfYWG4Akig7esYYoQh+/7323EgkPPyisCW4aKzYA0kjk0xcEj8PhaONfNB5Lkf63pF/DT6KfYTT6uwN5wY1ozUWcv5k0otGokzTzOK/hDXaAVuR9/j7sNOB8Z46GDKBd8DMtm1V3SarkZgZFB4BU/DDZ8refdgTpexcf7Tbg5SfL4Kvp6ZcrKiqqKAhiSysHZDMN2/y/AMlLPnPSsSiiUzcp8mvkoMVi2U/nhY+Slr+EVBIy/9uZa/ZIx61kSxqRSOSgXluURC/5zElGIyMjnalUyru6uury+Xyd2vPp8Xie1naHPVAu7gUl6u71YXv1KyZb7Vn3DQ524nvBTT7IV75saOVuaTOohFCbPnqI2PkXTnsxl5eXD2jzaLckSW0nDdLitK2FsuEe8ByopQ5kw8f4e2Gz2UjU9HdQrJ/6aEz+55k/SmNMs4X5gK8tFKygW7/62dnZXrYakz53EMzETB8iXNDdJqMFb7VLc4Sc4W1sbGzTUjP/U9VSMM1BDvFq/RI0jPqnL992BEEr6ff7/V0sn5u0HdDvgs5st/8tf5csi7jtkpc0TEWUPZWVlfuqq6spKVn1HxP6BLYmCG7uo8ZKNmTLztxwqQd7Cf7idHd3v5RI3PLEYoKH2gXsrKxdVCklNslyloJ2/1vh/xcYLH8CCfCBoXIWl6IAAAAaZmNUTAAAAAUAAAAgAAAAIgAAAAAAAAAAAGQD6AAAQI+KIQAABP9mZEFUAAAABnjatZdtTFtVGMdrQIkvMIKEYJbtk4IYjAl+mWFfxmpc7nZZA5PVMqhAO5RqdSQNhTnUodEYjcm+mcWpwQpMnAkfCGExIYs6jVtGSlFjDPIuLyME0qZwc8+9/h937nZ7bKXp1ZP8ck/Py/P8z3Ofe86pLdOi6/qjoBO8Bh7fabwVR3eDnCTtAfAWeJcx9maS/vvBfZacb29vl8NIG3gZPJHogL3B2C0B4H3B+TPgU9ALjlpZvQe8BPxcxC5T3+ughwv4wNReBM4jKiGIHAChjAVEo9FGGPNx568A2eSoO4UAP/gMAvrw/FJV1QsZC2hvb6+FkReBjxs+BfaYBJzV2R0BeD4GLoDPwYCuaZcGBgdPWUmDqomJiWZGecCYEYV66tjc3AySAIoAIvUOF3CGVg++0DV9cG1t7ePs7OyqdN93GXheVXUnng/z5t12u70Gv1+AAB/C6kfi+amjra2tfmNj48zGxvrZzs7OJmpD/0eUeJqmXdR0/euOjg4v2UDbXYDsXALfAHeyT60FnLyNqjooodBd2dsbqqdXwZCQly+PuPi0p4HMsVPD5ORkJwTSu/8K9ffQtF9RlAr8/gSCvkVUrqL+I/gB5JoF3AO8hnOspNWoz8//eSArK+uILEu1sizXYrjEpxVxEXZet2GcFAwGPd3d3a05OTlyPBanPBlDLnyHqJDTn8B1zi5zELKDwdPPbm3FyOk/8Pl8T5lWWw5SlXJjXF9f3zE4vaLp2vd81dfADbRdvzI29jb5TBAADpeUlDhGRkYbRAFRXS9GfwFnp1JAYN4+cJVWDac38BxfWV656HK5GsmXKIDKXh5eWZKk2vFwuCkeV7yhUKhecJxWyc3NfXBqauo8wn8tFo2Nnjv34as8OhL3lbTcCyrAESAbZCKA5gg2yOaT5EP8AvaAE2LYN9fXmxGuGv5eMy3l/f39Qca0MGxO41XM4EnMgglQY+POeebzJ69T339wmkY0TZ+H8wXUzSyCX2xxJe4mZ8lADjRYFqDpv8HWMnJhmZ4a1XXt7ydE/Wpzu93Va6urHtH50spSC/VZFTA0NHRaY9ofsHnTAKJuItK/o69L3NFE7Bb9p2W/SBxEn2Ek8nMjjlLanistvP9KshGJRNxkM4nzInHCA+Ag05mYD8UZOC9OsMEAbJOPFNcvvUzVVeNAsiwgFos9RHPF84UigqteGY3Z8TBioBc7YV5eXgGJINJaOaA5tIua7d1B9ZLPhONYUdBoGhQeDzfRXYDe1/T0dNUtQ3rrv+UE9RnzZ2ZmDtJcshHGtm62raiKl3wmHEZdXV11uOV4FxYWmv1+f52xfXo8nn1GdPgG1SzsoIBf0xBe84pprrGt+32+urm5uRbyQb6SnYaSkKX7QT5dq83qYcTFBZxgwo45Ozv7HP02ooXblYNskC3BtpTqNDwEDoDd1LC1tfWImBe4lDio77Yo3k5t1MeEd26+3oEq7gO+0ih0PzSvfnR0tIGvxmY+Owg+pXJ4eLhREO20ZVpwn2s2HOHM8JaWlh41jmbxUzWOYBpD9wijXYWNjAX09PQ4IIJWcjIQCBzn57nNiIA5CqZpFYFg4DhjCrJd9ZINm4VyKD8/v7qwsLCaEsd8mTAfYCtLSy3CpUaiOTSXbFgRsBccJsTEcTqdx1ZX1zyLi0seqqeYJ/G6pZJN7HDK2VPO+9+K+L8gw/IXI+58OxdsgRwAAAAaZmNUTAAAAAcAAAAgAAAAIgAAAAAAAAAAAGQD6AAArRlZyAAABTdmZEFUAAAACHjatZdrSFxHFMcnZJM+UGtTkUKohT60AT+lUFr0i7oN5SZrJOZhfUb3oVW6pYalYgvRGkTStBQr0tDSB9ZU2wSkglihFNvtE2milX4olPpMVt2NjbHsunvvnf5P9o6swz7ILj3w84z3zMw5c+65M7MsWeGc54B6YOWBwGOAJUPiTpzvAXsB24HK66BbuMad0A7AJO4F9wAWj7hGcABYgQ08JdleCgegUQCvSrZnONc6oN8EhakEcBo4DKwgLcLWBFqAHECmpmlvIDPnoHvw/7mkA7i1uVltOBeUCBscNIFoAZwAnZrGuxHA+a2trbOAxYLFM7a2vlJOjiUeBkwLZ6CZagC0AnL+KJyeBbTqHjy70NfXZwMsFiyeEVI8MzNTr3GtkWsgHMBRwHw+n40CgM3p9XoJCqABdIJucH55ebnTZDIVAxYL0RAFd1pVeQX0E4BB9pvN5mPkWAQAuxWwioqK42s3bzZ6vSvNVqu1AjCsvB19ukAPeNtms1XTHGjv4jxUBP0O+JBz1QIYQX/Ep2bdkWpVLYPOxgQFAwMDVeL56OjoccAgzwOLgRkwt/snG9JOq3/L7Xa78KgwEAjkca5RVj6FbRAMof05uD+yCPcCu3CiiXSDpaUbRbt37z6iWJRyRVHKMakCSLKNIMxGm6GfYrfbq5qbm2vRttz+5zbN8RGyN4CivIT2MNf5ZWgibTsAiKmt7fUTgcC/d5zKtLS0PBex2nwWW/JFP9SQgoV8ghr5jFasc/4l9BVV1698NTLyGvmMHGgCh3Nzc8vGxydq5AA2Ufmw7zOIK6IfxuWDQZ3rX5BjzvWRubmF9ywWSyX5kgMgyQEKsFCqr6H6/f6gfXBwsEo4vhtJT09/aHp6upvr+uVb6+sfd3R0NBnZUQxfUeU+cBAcARZBMgHQGGkOmvNp8iGfao+AajntG+vrDZWVlcfEO09S8i9e/MAZCqljmPM78D1wgx/AODjEyLmo/G1ttA0bS5GvdZ3/DE38gvav0GF0/RvmD/rryFk0UAM1gKUCnExirt+gr5LWOTTQ9Tt8y+rq6kp9a2s22bln1WMlG2CpMDw8fCYUCtGKZ8PopH8PBYM/Dg0Ntco7moyZpSyJ58+WO9FnODv7R62qqrQ9FwCWBLvA++Avv98/2d/f3xrFebb8RaSBEuxeUY/gu+QQWAE3wDLX+SL0JfB41AvJ1hY/oHKsWDhNPQAF+MAa3vsK18OBgL/By4AlPIw0MICdMCMjY58RRMJARD8a4/F4RowgvGAVeMIZ0ZegH4wMYE8wqG4HQMxcm6mnuwC9r7m5ueJwYLwxQU0UiPHz8/MlNLa3t/cMbldXRTZ0BIJPkTLxwI7TsL29/eTGxoYdt5gGp9N5UmyfuFQ8K7JjbFANIHIHJajNOIo2MoM0Vmzrk5OTF/A5/olvf2lqaurdaKehIlVpIcg0rmAOweLiYiVg5FiTdsyFhYUXRT/KlqryMpoDFEpzK7FOwxdAEdgPGG4zT8p1geO0DDDxPGLbZmTTpAtN5PUOFJMPw1diMe6HDsHExESNsRoWeXYYMEjB2NhYrRR0RdK/C4LBYINwhDPDnpeXd1QczfRMgpGN+tA9QjxXMQdgsWDxjF1dXWUIglbicLlcp4zznIkMSFlgBOSgq811StOCjqCq2mkOwGLB4hrxvjIzM0uzsrJKqXAiLxORB9iqx2MFjDD6KDSGxtIcLAXJAYcJqXDCvwvWfLbr1z02agMmEOOk61fSYiISnHLmmOP+N5F/FyQp/wHjxqv8BBis8gAAABpmY1RMAAAACQAAACAAAAAiAAAAAAAAAAAAZAPoAABAamiUAAAFIWZkQVQAAAAKeAG1l2tMHFUUx6+hVE14WQkxVPGLQhvhCxqj0BgLa2KnLIXyECkIy77agpg0wSAIbQHF+EExAV8RbIJ8kfCJEAmQxkdVRNc2pJHEL2JZ6LobQktWdllm5vq/5Yysk32ku/Ekv5w7c+aec+beO/fcYbEK5/wRUCegNosFakQkEezX35dluR7aJhBtwIKhPonxJnAYmIEFHNLZbIqi2IUmWBCHZC5boQVPxJNAY1AAM0gKTkAHI5JAE7CDMxyJABYOFsl42+ut0wUpjp6AeAbXCj8Nfdbr9ZoACweLZDx37rWKEIEeCpcA2dBW7rw9pqilo6OjGrBwsEhGSNHi4qJJEQ735vsEYB7PukUL7na7zYCRDfd2335packmfIDoQguuUZZ5DfRjgEEOGgyGk8KplgDsZsBqamoqPR6Pxe12mUUbiNVvpgTOgJZjx0oqhQ/ynwfOgjbwtH4RJgLqTMhyGXQG+haOjo6e0u5PTk5WAgZ5ARgJA2DCRnPfPDEx0YhbR7a2tg4isQbc64CtC/o8cW9wAvuBFdj0n5fTefNoQkJCiWSUKiRJqoBTCQjJoCQM1BYiGY3GivLy8ir0MbpcrhIEbYefTvjshr6A616MZi/a9/2bAGRfe3tnld//952gepqbm58NettcEE5ytec6OzufQ9A30P9NcF7hvAe6b3tn+62hoSGriMk0oYvj2dnZZdPTM/X6BLxY3bAfICILPefz+R5F3y4Evgj60H7b4bj6ekFBQaWIpU9ASBaQgFEM9TWsfp8vYB0bGztFTu9KkpOTH5ydnX11Z2enz3nD2WW32+todCSKFVLuB/mgBBg1YklA9NH5KAFPUoyQVc0WzObGRlNtbe1JmtdYJbe7+6LJ7w+8B58fYU18Ai34FLwPnmIUnFY+aWqTjcXJAHyOQI9gQ/scWuMSGGS+gK9BBAsF1kA9YPGgyDLeVhnjCuB8TAHiWmjsDx+zhoaG0nXsaPrgLuxwwgZYPAwODtq2fb4v4HNcoKqq0F/iK7k0MDBg1e9oegwgXonqP0P/kPgMr1//7RXa2wsBi4F7QBeYvr1xe7Snp+d0iOAZ+i8iCRRjsYQuwXcFElfVeegr4BtwGbwDHg55Itre5odlTtUMxJsANqDnoX8FC5yrP3KVXwHf4noWvAxY1GKkgFHshCkpKQcoCRB12IsFmZmZ6cvLyyNoXwW/gJ/ADzQiX4OU/5TjQECmBABYvLZoEmcBMV9wVLSbGLdHWROfgVWw7PP7PhR9+/v7W3C6+gr3HOBnMK9y9Tua7r1qKI5Om5ub1tXV1abW1tZqbfu0WCzPaKNDG1QTCPdfsIZhdmHunWj/MT4+XiN8iNI8NTV1IRAIXJZV9fu5ubmeUNVQ0q3SIyBNO2ZprKys1AImAiu6HRPzvgD9FyVyA3o2NTX1AeFL51sKVw1fBEe1Y5Tf739cvy5w4CgDe4dSug/Y8PBwG4bXg0XnwrUT/AlMgJHPIoqRBaILnQ9tGjMzM/X0Niy4dhAMUnjr1q2ZvVFQV6AXYv4xwZw1aYFQM6w5OTknqMyGPJYLmwmC7XZN3R2FVSTxO2DhYJGMvb29ZUhCvKWtra3tJarnTBsB3SgwASR/fn7+A0zDTZXzFYfD8S5g4WARjZivtLS00vT09FK0peDDRHABc7tcZsAE9IyUn59fnZeXV0VzHrNkgeMC3cKh/4J1y9qayyLagBHB/SRqxyX7iEhVzhC53/8j+v+CmOQfnaCvAsiMZ2EAAAAaZmNUTAAAAAsAAAAgAAAAIgAAAAAAAAAAAGQD6AAArfy7fQAABPFmZEFUAAAADHjatVdtTJtVFK5hM8EQQIbEhMxfDmgC/th+TGV/BjVZXlbKh9DKYB2lLV1JmNaQVRiEjMyPv8TE6JQZK1KRf8RkYUkzg84laELI5pIZFQPESm2WQgld+374nHLf7eVa7PZWT/Lk3Jzbc85zzz3vvbcGvaIoykGgk+Fgdg/9ifYDT/J2URS7YHcTaMzPkw/55prcCPQATqCKm3NLktSrkuDmqkRFdDFfYy4EzqgJWLACLQEtNPYCwKESRHW6dROIxeOdXKL6RyBQryYnxOOxTt0EfL5zrXwi4Nm9CNCc1kYEfD5fqyEHqVtaWuqWFOz1w/220EQkEnWqidbX13sYAYuWAPlSjMdpuDOiqNign2fmcpPJ1ELBVAKYTyez2WyvRiIR5/p6uIfG7Mvo0TYn+VIMmkskEodgs7K+Mmb61NLODyCKTdBlmK4NBAKnVPvs7CwlI3kFMDOYyEBz6u8mJydPwXSMYgAWDTG1kvv5b9ZFE/zntbr6x/G8vLyTglloFQSB9lNgbmWMhImNSYSGhoYW+h35kC8X0wOcxfgsf7bs8/uH2hKJrfSPefT19b2kWW01sJdUq7/zer0vaxbSKyExtDeRTHpHR0dtlHMXAaChoqKi6erVuS6eQHyn80sYskkJQfNFeCQkhu4LXQs5jEZjM+XiCZA8x8prphIuooO3t5MutpcI+thyYGpqqiuZSHjv3rnjbm5ubmPVEViujJIPHAZOAmYVOgmUcDEo5hHKkfFW48u+ce+eo6Ojo4Xtq16p9ng87bFY/A3EPA/4gbcYzgEVBpacdSnTbExz/8Ft+rokKRegL+BAG4ZWMQK8adhObtspWSagB7pyJSClJFr1RSzqImk0JLSU1qlU6rzBbrc3RnGi8cnDOOFoLlcCw8PDHZubm2OI+S7wDsPbsVhs1O/3v8afaDxMQI6SPX4Z/yP6DG/d+uk0O9trde79E4ADeD8cDl/CYWbPkLyMdyoA6tEs/7iCdRB4AQgAV4CPgQ8BL/BMRof79xUjnlGaCylnAkeAaeAL4DN8XZ9CfwL9AZoPFYdku4wkIICTsLCwMH20Eh6h7C8CR8vLyw/gPfAexl8hThB6koiwilwGntp1HSeTomvXY2JxqZvd5+bl5eW6HWJK77/1BOvw74HrW1tbI+Q7MDDgjEajH8H2JVUDZD7HAolE/q7LaHBwsH1jY8O1trbm6O/vb1ePT6fTSStyaR4lDpasXZHln6FvA007NvkHWVYWYP8OttDE5QkLxcDVbMabwhePx69goYHp6WlfpttQ4Lr0GFDMP7NWVlY6yAFJfpUV+U/YVoFF9ur5GuMfgZuKrMxjtRNFRUVPUywutrDXbXgCOK59RvF9YTab2WqVv4AwiKxB/0a28fHxflmWF1GJBdhuAN+o1WEx6ygHy5Vd2PvQrWJubq6LVsMqkCYgEwFZWWYutXigBh9WQf4WesagV5LJpENdOe4MV2VlpUW9mmGLEAG2BSqBEqvVehqkFrA91AtoSPmabgJjY2NNIEHld6Obren7nAmSRIA0AejfNW6HQ6HQJQUkYL8xPz8/ZMhBThQXFzeWlpY2ssbJf0BAkn6R5Z0K4GBZ4h41Qk1NTduhqqpWtue6hZqlgcA3zszMzAgqczeVkm4Hg8GhPfwENs5J9hGy3HKmLH7/g/D/C3TK3/RJfVWiL971AAAAGmZjVEwAAAANAAAAIAAAACIAAAAAAAAAAABkA+gAAEA2yQcAAATpZmRBVAAAAA542rWXW0xcRRjH14AaEy6RJsTEtCRGSEGe4ElpTEq3ph5Yy0UostyXUxUqpphKpQZLNRpSHkx4oBgNabfE2oSElKRBfQFj4MELiOiLGFIBS3ddsASyu2fPOeP/287Uw7C46dn4Jb/M8M18l/3mdnDYFcbYflDH2R/fwn6gh8Ejsl7X9XroTxLUl8fJhmwTDZ4LPKAVHJTGThqG8apIQho7qDNd5ba5iSTQJAJwZynWBKxY9CmgRSSI6jTbTuDu1ladFOhI3AQwRwQntrbu1tlOoLPzzUo5EHhirwRozKqjBDo7OysdCUjx/Px8s8Gw1v+u93Ea8PsDrSKQz+fzkI7GrAmQLfl4kA3XpOusBu3TXP2k0+msIGciAYxHg9XU1Lzs9/tbfb41D/X5yfBYNyfZkg8aC4VC2dCdoBgUK9ZRixrfR9fL0GZiuMjr9bqFfnx8nIKRHAUujpMUNCbmjYyMuKE6RD7AcenUtFJM+cyqNCgfr5WV24eTkpJKFZdSqSgKrafCzTJ5Ek7eJ1FKSkoqaB7ZkK3sM9rquirfLclnz56rCoW2afIu2tvbn7X82nywl+SLeW1tbc+JoFaCmqZ2dXVVU8wdCYCSnJycsomJr+plo617Oz+DE08yCPlEEBM3JxooBsWSEyA5wMvrohLOYQcHg5rK1xJOH1j2ka0WDKq/wBf55NVReKyY8hgoAKXAJbCZQIbkg3wWUoyYr5pcrs2NjZba2toKvq52JZ98bGxstsib+/4rSp1duxSISY4EhXxYAsM/o76g3hHUgo1iUAZ7oD7RBDRNa4av12MRDAabHI2NjS8FcKPJwddww9FYogmoqlq+vr7eBp9vgFMC3KKveTyeMvlGk3GCBCW+/0x5Eh2ZhYVfG/jdXmRz7R8CCtb/zOLi4qmqqqoTMYJnykYp4Ahev11PsI0EngK9oMdg7F2074BykB7TIBxmuTrTLQ9SwgnkgI/AB6hCL3iPIRG0XWgLaU7cx8gAXtxmaWlpdLW+CF6g0sYp+zMgLzU1dd/U1NRbOHZ98PchM9j70J8HPeAceHTHc6xpurrjY2Juvpm/565wOHyFMfMv02R34OzSfyTQgTvkKtpPA38HVLLFSXIvLy/3iGqAC4YR6REJCEnu7u6u3tzcVFdXV1s6OjqqxfU5NjbWgMl+cIeZ7E+0v/FgpWASfAmK7+nM60jwGv6+DD7p6+s7Sj7wNLv6+/tbA4HA+WA4fGFgYMAT6zVUpF16KD09/XE4mgY+cBss42KZjAYzzWmTmT9Ch5bdIN329vYl/H0dXEXJh1H+HvJBviTfyl6v4TFwWHxG8RvLB9bAKrg1ODh4mo/9DH5AIjNoo0n19vaqSGaUV+EK+Aw8T2PcZzHF4LHiC0q+QKUHVPpl3Gg36NfwCsxD9z32xQz6U9ykaGlp6WNehREkchl74qLDrsDxLV76FZT7d7fb3SieZuh+ogT4EokEMnCJvaLrxhfQfQ68hqEP2U5gdnb2Ipz8YaL009PT9EsKLTt+zjTNaAJov7GYFYyOjr7NmHENFfBiE7c7EpBjeXl5VQUFBXQqFOvHhB6JfIvg36EyMzimN6WPGiU7O7siKyurnK+5bTkASgh54wwPD5+JRCKToZD29dDQ0Ok97BTeT0iSiTivnDOO3f8g8v8FNuUfG4CCnr3IRI0AAAAaZmNUTAAAAA8AAAAgAAAAIgAAAAAAAAAAAGQD6AAAraAa7gAABPlmZEFUAAAAEHjatVdtTFtVGMaAJiYEIhowKOgPS7ZAYjL9o7AYtpost8Py6ZDxsUHLoEUXMITpRDIxKyNion9Q4tSFdCYYmZNEiMFo4ghDpwhiwg9/CdLabmm2wC5t74fPS8/B64HCdhtP8uTevue87/Pc97znvrdJZoeu6zlALUPO7h7mie4F7hPtiqLUwd5MoHtxnnzIN1HyvUAT4AD2CHPNqqqe4CKEuT2KrjiZ795EBBzjBCxYqlGAEQZ7KtDIBSI7x00LuLm6WisQHbwDAQc5OWF19WataQEdHScrRCLg4XgCaM5oIwEdHR0ViZTBgfn5+eOqjr3+d7/tNBEM3nBwokAg0MQE2I0CyJdi3E3BHVMUvRrXJ5j5EavVWk7BuADMb5BVV1dXBoNBRyDgb6J7djKajMVJvhSD5tbX1y2wHSEO4truqG04b0JRSnHNxHTh8PDwUW4fGxurZG7PAyUMVjLQHF/n9XqPwlREMQC7cGocxCmeWSdNisdredlXnJycfFgqkSokSaL9lJhbJhNhZfc0JJvNVk7ryId8xZh0xcM5xXdLyqlTp6vW19do8Ra43e5nDE9bAMQbBXydy+V6lpMaIUcizq6urheJ8z8CAFteXl7pxMQ3daLTaqzyMxh2HHydeCIIE19P1BMHcYkCaOSy9JZQCn9FBctyxMn2EkHvejxIvhFZdv6OWGz7ShhHbjyn+4F9wGFazGFSQIYQg2I+RRzbdjUxXbdCocaamppytq9mRwHFCIVuNYrFvdlF6WZLlQJ8UcLdFDGMxKKIJDkiN3CDCNRAXaIClEikXiTmiEQQv6Gh4YUbeKOJk3684WguUQEUI7hdfL/fUV9fbxffaCKsCfLfUfxMcdHQ0FBXOBy+pmmaH2rPA/eY3P9C6g8LCwsN7BiK5JmigwW4pOnadVyDQEDTdRJhNUGejWJ24doSa2ZA7FshNZ7Dq8AKkQJ/Q4Sf/V6KRqNmBDwKvAy4gVYIaAFOUEaQ3S3d8AHAT8S6pnPiZU3T/1xaWrqYnZ39EH4XA/t32g6aAx4HHktLS8sYHR2l8/8K0IZsxIToKmWEN6NNx3SQLeua5sP9X8CSfPv2lf7+/pO0X+jl78P2G8T9gqfo3UFAFdALdK+srJSSL7pj1eLiYoshGy46kuIXc8rMzMy7KLo/kO7ZycnJs2inG6/PkZGRI0QOzELgT7qufRcjiz6Hp7oA+wfA02TD73MI7sHvM8Dp9vb2/fy13tnZ+ZLP52tdW1tzdXd3V2/XDSWhSovS09Npay6jEOdwvQZMy7J8kZF9hjr5Ahnxwv4e2a6HQm/g/hzwNtADNFIMiiXEluJ1w0NAMf+MUnS9To+R/wzMAD/09fW1snR/BXwOISTgY7K1tbXVRlX1HZaFt4A3gSdpjsU8QByMa/eBuvgW+z6LID9ie6aRwvPsaZJgv0wCVGQAIj5hLoVzc3OvqSwLEHKG9j7J7ADpVZb6q0j392VlZZvfBrB9CYwAXoALyCgqKqoKh6Mk4CyE9apq9HXTAqampnpAPI1gV8bHx3tYP+cVfwkFuSEAT/qpwW3f4IeDqHLVE4UAvFUTamiHLBZLRX5+fiUVjvFjIoxipAyouupFZQ8KHzVSTk5OaVZWlp3tuemRC9gIYuEMDAy4w3L4Asg/8ng8zXH8JHaf0Egh7NLlrHH9/rch/i8wOf4BRvqEvL0rz4oAAAAaZmNUTAAAABEAAAAgAAAAIgAAAAAAAAAAAGQD6AAAQaGt/gAABQFmZEFUAAAAEnjatZdbTBxVHMbXgCYmCEgbsCGFhFgCCQkJfagKL+2uSTOUu6WEO2UXKlvauiSyIlZSN6FRi0lDjA8kRgmKqeUiKmjS9IU+mHql4A1pgrQVWHXDdoFlmDPj99+e0fGElbITT/LLmT1n/uf7zn3WEmnSNG0vqObs3TbAhNCD4CGxXFGUGpQ3EfQs1lMMxZoVzwSNwA4yhLomxlizbkKoy1A0xcFjM80YqNcFeGMxRgNGDOUx4LhuEKPTELGBlUCgWhCy3ocBqy5OBAIr1REbcLlOl4lC4LFwBqjOWEYGXC5XmcVEOjQ1NdXANMz1P/NdRBVe7x92XWh5ebmRGygyGqBYamMnC65eUbQK5I/z4mSbzVZKjekGUB8Sq6ioeMbr9dqXlxcb6ZnvjEbj4qRYaoPqgsHgPpQdIw3S2mqrhYL/RlGKkSeiOre/v79KLx8bGyMxSk+DAo6NCqhOf29gYKAKRXnUBigSdo2dNMU966BKcXvduvXbwaioqCNSgVQmSRLNp8TDErkJG3+mJOXn55fSexRDsWKblKNzDvFsiXa7XzwaDK6GXhZxOp1PGnqbBcKlLP29lpaWp3RRI+uy7Ghvby8nzX8ZAPnp6enFExOf14hBgXsrP4GzXUogxB1BTHw6UUsapCUaoJQCJHJPQ/gtVvD6uuzgc4lGd5x2Uay8vu6YQVt8+gq4Rkq4oIdBDjgCCnQiNJAgtEFt7icNcQeUg5vgT46PUBn7dWRk5Cyf10hTVmVlZanP5z8uLm79FiUDvwCvqqm/Uw6Q66g3LSYTCRmFRRMWVdN+1lRtCT+WVKBxVELVfjRrQJHlWlFYR5blGsvw8PALqPwJBXc0Vb2D/DZG4zbKZoaGhtxmDdTV1RXSiSmKLy4u2mtra4vEE03EZlL/vtpPFF/q7e11ra2tXcEUTMNtD3ggwvnPpfthenq6jm9DUTxRDEgDb4MfwPeADHwH8nYsLh5ELJRbQUy4gGYuNgNuqPeevwbXNzc3c3dqYHV1dQ8Ji6ufRmRjYyNTFI8HU9gNN8gEhv4b5F/CxBezs7NvJicn78LvA2D/dtOB+j1EbGxsAp2EW+8A4TLCj0dUVaXekvBXMHDd7/ePdHV1naD5urt692WUj8PgKPLW/xC3Uj14dn5+3kqx9E1AHyZGA7IiO8Qv5ugrV696MDzXgsGNz0ZHRztxnYaOz76+vmISB2PgMniHi+UAD3gJZPCyM+jtGU1jJ/F8wm63P6Ef66eczvKFhYVGdMzR0dGx5W0oCas0Ly4u7lE09Bb4GAyDD/wB/wUu9irT2BvIz4PnqWxpaYl6+BxoxaJzIi9BcTzIE9qWwt2Gh8FBkMxFCsEnYATH8ofI33O73fW8rhf0cAPnqAzn/lGmaW00Cig7CVrAPqrjbR4iDa61fUIv3kUDH4HLDL2fm5s7z3tjgQgMsB7GYICxV3hI7uTkZDMfhVOMYSoUpcoSaVJV9FoNDf0lNNZvtVqP6Vczyi6CC3wEdAMJ2dnZJcGgTAZOowOtjMlNERsYHx93KapyCb1/f3Bw0MXvcwsfgYsgZAC5xxCW4/F4amgaZMZau7u7Tf0vOJyamlqSlpZWSgvH+DGxFgi8BvHXyYDP5zsrfNRISUlJRfG7dxdSG2YMpIB8Qlw4nZ2dDQF/oNvnWznX1tZWEyZO4s+mUjSxzS1nCxv3vyXxf0GE6S+R9YNYr/xWtAAAABpmY1RMAAAAEwAAACAAAAAiAAAAAAAAAAAAZAPoAACsN34XAAAFF2ZkQVQAAAAUeNq1l1tMXEUcxmmgJkZuAtkoWHyxXCKJpvJgpD60rNocWCCgFOmyUHa36hKgLqE0vFXQVCymioYXE8LVeCONpIQHEo0xYhtCE6SpvgnULOzCrpCFhbPn4vdf59Dj2BV6Nk7yyxxmdub7ZuY/F+KMJlVVjwAr48j+LYwLHQYP8eWSJNWh/BxB33w9taG2sYrnAztwgDyu7pwsy29oJri6PEmVnKxtfiwGGjQB1lmi3oAeXXkiaNQMYnbOGjawEQxaOaHiAxgo1sSJYHDDatiA291axQuBx6IZoDp9GRlwu91VsYTByfn5+bOyirW+t97lVOHzrTs0Ia/Xa2cGyvUGqC31cdD1bgPLiqreQe5ixVlms7mSOtMMSJIaEaupqXnV5/M5vN4VO32znWHXBye1pT6obmdn5yjKTrO4yufFU8AfqqL4kK+BdXzfRG5CddHw8PAZbVQTExMkRuklYGGYqYDqtN+Njo6eQdFx6gOUc7vGAQ7rDTxKBsAKZsCLHEaUdeR+cVccjo+PLxUsQpUgCLSeAmtmYibM7JuSUFJSUkm/ozZ373pO6ONhL5ckJ3+2JMzM3OhVVGURFR6IryL3stnwT09P23WjLQDRUoH2O5fL9YImqickis6Ojo5q0vyHAVBSV1fX4Pf7r7PZ8Ch/G/GBV1CfxtgvpRH8jiCmJqdsOTk5FaTFG6CUDQRg6e/vb9ve3v5JUdTfPR7Pl0lJSekGdlA6xYEYCjlvYzew5bMwjexojR4Gx0ApsOhIM2AgjeujFDxHGvwOKAU/gzuI/F+RE7/J4fDc2NjYRbauRlNBbW1tZSCw2cjfHdotSgZ+ROT/QqgALDBuIxhn4mJMJKQX5k3ESYr0g6qotwiYuIXCOQ3EwHexGpBE0cYLa4iiWBc3NDR0PhwOf4+Cm1iCCIj+G2JYnB4cHGyN1UB9fX0ZnZi8+MrKisNms5XzJxqPOUb9A/Vv4n/U3d3tCgQ2RrAEdCZcAIcMrn8R3Q8LCwv1bBvy4ia+wRPgPSzBFPJJMAGugWcfWJw/iORIXgwSozWoBt+C66qyJ/wN+ALB8syDGtja2nqchPnopxnZ3d3N58WTSJxxTVGUceRfgc/n5uYuZWVlpeP7aZAHDu07cpCcnJxGJ+H9dwB3GeGPRxQlMloIK1/TqNfW1j5pbm5uoPXy/+mnDj5FR1cxgtf+a801kcXFxWJqS28CepjoDYiS6ORfzAnj4+PtqBgNBoOfDQwMtOI6jRyfPT09L5M4+AiPkivILzGxo+AtYA+FQk9GyrgHicPheF471luamqqXl5ftm5ubzs7OzvvehgIXpcdTUlLondAJPga94LJv3edmBprxVGtDcLXgCd5AZUtLS6/fW3MVL2KVbr5U6ovrW4h2G54CJ0AWE3kR9IEPMaoPkL9rt9trqA7CHfjbrapyi/aEs1gsFfK/1/wp7XkHTjINaO2fSOQddHAVXMFoL8/OzrrZaFAnX4C4W8YMQLCJNSmanJy0cZEPwwYTG3UveD8sh7sKCwurtKsZZe3gbbA3A1SXm5tbHgqJTs0E7oJGwwZGRkYaIdwj43Dq6+uz032uMwcDcsQAZqFJ1+xY+8X207IsItolZ1dXF+LAeDplMpkqMjMzqRNB/5jYCATO0wzIMLC6uvom96gRMjIyylJTU8vYmhtO2aCE4APH6XTW4KyA+JrLarVWR2knsO+YUgKxzy1njtruf0v8/wUG019dDISlQm+mHQAAABpmY1RMAAAAFQAAACAAAAAhAAAAAAAAAAAAZAPoAABQgGYUAAAFD2ZkQVQAAAAWeAGl13tIW9cDB/BTTCtCdbYV2SjKGJ12zL+6f7bpBnUZG1cTQyzVn49Y42266NRNVuqEPXzgqpvsD53stzHcKGHdBttEkCBM6CjdoxsrQoUhSH2kZorYlkaTcO89+570XHd7SC4xOfDxHO/jvO85JyTVQCktgAZFURp5mqQimYcegUNABA2qqp5D7GFpIIIDsD/dCnTAEgTgTeGeR0AMjoNMFUVG/FQ6FfgbVuE2j59MogIHwc16h0H6TMoVwPheR7xMqRagGg0i/X0SFXhJv8YqcPf+/QYgiRCzm7Ozs33I6JZG6QrrBU3T/kH8ikkFHhWvd3V1VQNJhJjdtFgs5dvb21di80DTAtqDXrgGZHNzQ9YLWV9fbwGCdJXechbPzc01E0LKk/2smuEqzEA97MPlo0NDQ2wiLsKyYS6Q2traUxsbG3IQhbM0YMhoi7H1VqvVyfLg+R+jCq2FM8aJaZw4V+E3+AMt/QvxD/Ac3i1dWlm6pFHtFnphFYV+DQThZbBxViBTU1On9B7w+Xz1uFSG//OhSu+VB3Hs69hvrEAO/My791e4Dn/CjXA4/HFmZqZtfHy8a2xsrCsjI0MCgpDPK2HlaRakiooKpyRJ1XimcnV19aRKVWGugKKcRXxgtwIIFr/f/w5m+izviWt6b6DVNyYnJ+sNrS2BRKFEf661o/V5sWAmHAp7LlzoOc3KJIZggQq73V4fCAQ+x4NXeEV+gd+hDPcPc+aBP2f8IvTu98/MNBYVFTlYWWIFWCgECWyD/YPeO3fvXFY07aeFhYVPsrOzjwDZC4QjbB6EQiHPzbmbzWxoeO9IvKy4IQtOQCXYdOYtN+0Jm0ElPANZ4udXCl9hkWGznvkRJhUlehmTro2Pa6qhpK6uzrm1teUWhwMaoIBgln6BxDeYgN8i1n3HTQBJU4OxYCO2lRP8+Qz/+GJUFagPlQJQ1E+BpCOqRF16gaLozk4jGRkZce/s7PwfF76ECQaFT2DyjGMVbAaSDpfLVWVctnXB20G5qanJLq5oIiukE5LKP198qL293bW2ttaLmn4INbAPSApK2f4wPz/vYqtjnMLzxS8iD2QYwTB8hHgIBuGJvRcubM0q4KwABxMdSF5UVXoR8TBmbKxgldIBXGM98TiQvcAceizOpwdKC+LjYgWy4CI3CAP4IvoQvzc9Pe1lKyHShXA0qZZDTk7OYd8lX3282a9QYTOCTJUVCtAH7y8uLr7ldDpr2HgFg8FKdihFpToQv2A25nqLsROWs3fZmYAdTB6uAH14O0awjI6OtkQikXdxsnm7t3egCdtpbPns7OwsY4VDB7SBDAQK0JJGfUUDAm7jmMuy/Ky+rLe1tZ3GRue+dy90tqcn/m4oCbO0DA6hkDpk2Amvg3dlZaUOdlc4itbyNFkOLP/PcBr2QBXyyIUyIW8p0W74KpzUj1GRCH0ambwB7ciUtf41h8PmAGI84XDEZrM52DVh8h0DwvMs52UUJn9OVHe73otDi4u3Ju6pGKHUP+NvFK7Xpvy7AC3w8q5vxdHsXHFxcZW+NRu7mqcJu8eeCYVD/6330agbSCLE7Obw8AfVqhptRdrb3d1dw/dzkqgHGIQT3efP1+AdTxj6+/sdQBIhpjcxXrm5ufa8vDw70pLxMMGO5Kzl+sYChOHPSOwd9i4f85RDIVQw4sSJ/S7Y3JTXDb8LOON7Ek+nFSyc2S5nNX3PJPwLu02sWzaoOecAAAATdEVYdFNvZnR3YXJlAEphcG5nIHIxMTkn6LNhAAAAAElFTkSuQmCC);background-size:16px 17px}ngx-extended-pdf-viewer .dropdownToolbarButton::after{width:24px;height:24px;display:inline-block;position:absolute;margin-top:5px}@media print{body{background:rgba(0,0,0,0)}#errorWrapper,#loadingBox,#secondaryToolbar,#sidebarContainer,.textLayer,.toolbar{display:none}#viewerContainer{overflow:visible}#mainContainer,#viewerContainer,.page,.page canvas{position:static;padding:0;margin:0}.page{float:left;display:none;border:none;box-shadow:none;background-clip:content-box;background-color:#fff}.page[data-loaded]{display:block}.fileInput,body[data-pdfjsprinting] #outerContainer{display:none}#printContainer canvas,#printContainer img,body[data-pdfjsprinting] #printContainer{display:block}#printContainer{height:100%}#printContainer>div{position:relative;top:0;left:0;width:1px;height:1px;overflow:visible;page-break-after:always;page-break-inside:avoid}}ngx-extended-pdf-viewer .visibleLargeView,ngx-extended-pdf-viewer .visibleMediumView,ngx-extended-pdf-viewer .visibleSmallView{display:none}ngx-extended-pdf-viewer #viewerContainer{overflow:auto;-webkit-overflow-scrolling:touch;position:absolute}ngx-extended-pdf-viewer .invisible{display:none!important}body[data-pdfjsprinting] #printContainer,body[data-pdfjsprinting] #printContainer *{padding:0;margin:0;font:message-box;outline:0}#printContainer canvas,#printContainer img{display:block!important}@media print{body[data-pdfjsprinting]>*{display:none!important}body[data-pdfjsprinting] #printContainer{display:block!important}body[data-pdfjsprinting] #printContainer div img{height:100vh!important}body,html{overflow-y:visible!important}html.cdk-global-scrollblock{width:initial;position:initial}}ngx-extended-pdf-viewer .textLayer .highlight.color0{background-color:rgba(180,0,170,.4)}ngx-extended-pdf-viewer .textLayer .highlight.color0.selected{background-color:#b400aa}ngx-extended-pdf-viewer .textLayer .highlight.color1{background-color:rgba(0,100,0,.4)}ngx-extended-pdf-viewer .textLayer .highlight.color1.selected{background-color:#006400}ngx-extended-pdf-viewer .textLayer .highlight.color2{background-color:rgba(0,0,255,.4)}ngx-extended-pdf-viewer .textLayer .highlight.color2.selected{background-color:#00f}ngx-extended-pdf-viewer .textLayer .highlight.color3{background-color:rgba(255,0,0,.4)}ngx-extended-pdf-viewer .textLayer .highlight.color3.selected{background-color:red}ngx-extended-pdf-viewer textLayer .highlight.color4{background-color:rgba(255,94,0,.4)}ngx-extended-pdf-viewer .textLayer .highlight.color4.selected{background-color:#ff5e00}html[dir=ltr] ngx-extended-pdf-viewer .dropdownToolbarButton,html[dir=ltr] ngx-extended-pdf-viewer .overlayButton,html[dir=ltr] ngx-extended-pdf-viewer .toolbarButton{margin:3px 0 4px}html[dir=ltr] ngx-extended-pdf-viewer .toolbarButton:last-child,html[dir=rtl] ngx-extended-pdf-viewer .toolbarButton:first-child{margin-right:0;margin-left:0}html[dir=ltr] ngx-extended-pdf-viewer #secondaryToolbarToggle{margin-right:4px;margin-left:0}html[dir=rtl] ngx-extended-pdf-viewer #secondaryToolbarToggle{margin-right:0;margin-left:4px}ngx-extended-pdf-viewer .dropdownToolbarButton,ngx-extended-pdf-viewer .overlayButton,ngx-extended-pdf-viewer .secondaryToolbarButton,ngx-extended-pdf-viewer .toolbarButton{padding-left:0;padding-right:0}ngx-extended-pdf-viewer .offscreen{position:fixed!important;left:-9999px!important;display:block!important;width:3000px!important}ngx-extended-pdf-viewer .offscreen #sidebarContainer{top:1000px!important}ngx-extended-pdf-viewer .dropdownToolbarButton,ngx-extended-pdf-viewer .toolbarButton{margin-left:-1px!important;margin-right:-2px!important}ngx-extended-pdf-viewer #numPages{padding-right:0}ngx-extended-pdf-viewer .pdf-viewer-template,ngx-extended-pdf-viewer .pdf-viewer-template *{display:none}ngx-extended-pdf-viewer a:focus,ngx-extended-pdf-viewer button:focus,ngx-extended-pdf-viewer input:focus,ngx-extended-pdf-viewer select:focus{outline:0;border:1px solid #00f}ngx-extended-pdf-viewer input[type=checkbox]:focus{outline:#00f solid 1px}"],encapsulation:2}),e})();function Uk(e,t,n){return!e||e.some(e=>function(e,t,n){let i=0,s=0;return(e=e.toLowerCase()).includes("ctrl+")&&(i|=1,e=e.replace("ctrl+","")),e.includes("cmd+")&&(i|=8,e=e.replace("cmd+","")),e.includes("alt+")&&(i|=2,e=e.replace("alt+","")),e.includes("shift+")&&(i|=4,e=e.replace("shift+","")),e.includes("meta+")&&(i|=8,e=e.replace("meta+","")),s="up"===e?38:"down"===e?40:"+"===e||'"+"'===e?171:"-"===e||'"-"'===e?173:"esc"===e?27:"enter"===e?13:"space"===e?32:"f4"===e?115:"backspace"===e?8:"home"===e?36:"end"===e?35:"left"===e?37:"right"===e?39:"pagedown"===e?34:"pageup"===e?33:e.toUpperCase().charCodeAt(0),"WHEEL"===n?"wheel"===e&&t===i:s===n&&t===i}(e,t,n))}Promise.allSettled||window.Zone&&!window["__zone_symbol__Promise.allSettled"]&&console.error("Please update zone.js to version 0.10.3 or higher. Otherwise, you'll run the slow ECMAScript 5 version even on modern browser that can run the fast ESMAScript 2015 version."),"undefined"!=typeof window&&(window.isKeyIgnored=function(e,t){const n=window.PDFViewerApplicationOptions,i=n.get("ignoreKeys"),s=n.get("acceptKeys");return"WHEEL"===t?!!Uk(i,e,"WHEEL")||!!(s&&s.length>0)&&!Uk(s,e,"WHEEL"):16===t||17===t||18===t||224===t||!!n.get("ignoreKeyboard")||!!(i&&i.length>0&&Uk(i,e,t))||!!(s&&s.length>0)&&!Uk(s,e,t)});let Wk=(()=>{class e{constructor(){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=fe({providers:[QS,WS,nu,{provide:Xd,useClass:eu}],imports:[[uh,ob]]}),e})();const Gk=["contentRef"],$k=["*"];let qk=(()=>{let e=class{constructor(e){this.display="inline-block",this._dragDisabled=!1,this._elementRef=e}get dragDisabled(){return this._dragDisabled}set dragDisabled(e){this._dragDisabled=e}};return e.\u0275fac=function(t){return new(t||e)(zr(rl))},e.\u0275dir=Ke({type:e,selectors:[["","drag-scroll-item",""]],hostVars:2,hostBindings:function(e,t){2&e&&fa("display",t.display)},inputs:{dragDisabled:["drag-disabled","dragDisabled"]}}),e=D_([O_(0,vi(rl)),M_("design:paramtypes",[rl])],e),e})(),Yk=(()=>{let e=class{constructor(e,t,n){this._elementRef=e,this._renderer=t,this._document=n,this._index=0,this._scrollbarHidden=!1,this._disabled=!1,this._xDisabled=!1,this._xWheelEnabled=!1,this._yDisabled=!1,this._dragDisabled=!1,this._snapDisabled=!1,this._snapOffset=0,this._snapDuration=500,this._isDragging=!1,this.isPressed=!1,this.isScrolling=!1,this.scrollTimer=-1,this.scrollToTimer=-1,this.downX=0,this.downY=0,this.displayType="block",this.elWidth=null,this.elHeight=null,this._pointerEvents="auto",this.scrollbarWidth=null,this.isAnimating=!1,this.prevChildrenLength=0,this.indexBound=0,this.dsInitialized=new yc,this.indexChanged=new yc,this.reachesLeftBound=new yc,this.reachesRightBound=new yc,this.snapAnimationFinished=new yc,this.dragStart=new yc,this.dragEnd=new yc,this.scrollbarWidth=this.getScrollbarWidth()+"px"}get isDragging(){return this._isDragging}get currIndex(){return this._index}set currIndex(e){e!==this._index&&(this._index=e,this.indexChanged.emit(e))}get scrollbarHidden(){return this._scrollbarHidden}set scrollbarHidden(e){this._scrollbarHidden=e}get disabled(){return this._disabled}set disabled(e){this._disabled=e}get xDisabled(){return this._xDisabled}set xDisabled(e){this._xDisabled=e}get yDisabled(){return this._yDisabled}set yDisabled(e){this._yDisabled=e}get xWheelEnabled(){return this._xWheelEnabled}set xWheelEnabled(e){this._xWheelEnabled=e}get dragDisabled(){return this._dragDisabled}set dragDisabled(e){this._dragDisabled=e}get snapDisabled(){return this._snapDisabled}set snapDisabled(e){this._snapDisabled=e}get snapOffset(){return this._snapOffset}set snapOffset(e){this._snapOffset=e}get snapDuration(){return this._snapDuration}set snapDuration(e){this._snapDuration=e}ngOnChanges(){this.setScrollBar(),this.xDisabled||this.disabled||this._scrollbarHidden?this.disableScroll("x"):this.enableScroll("x"),this.yDisabled||this.disabled?this.disableScroll("y"):this.enableScroll("y")}ngAfterViewInit(){this._renderer.setAttribute(this._contentRef.nativeElement,"drag-scroll","true"),this.displayType="undefined"!=typeof window?window.getComputedStyle(this._elementRef.nativeElement).display:"block",this._renderer.setStyle(this._contentRef.nativeElement,"display",this.displayType),this._renderer.setStyle(this._contentRef.nativeElement,"whiteSpace","noWrap"),this.markElDimension(),this._renderer.setStyle(this._contentRef.nativeElement,"width",this.elWidth),this._renderer.setStyle(this._contentRef.nativeElement,"height",this.elHeight),this.wrapper&&this.checkScrollbar(),this._onMouseDownListener=this._renderer.listen(this._contentRef.nativeElement,"mousedown",this.onMouseDownHandler.bind(this)),this._onScrollListener=this._renderer.listen(this._contentRef.nativeElement,"scroll",this.onScrollHandler.bind(this)),this._onDragStartListener=this._renderer.listen("document","dragstart",e=>{e.preventDefault()}),this.checkNavStatus(),this.dsInitialized.emit(),this.adjustMarginToLastChild()}ngAfterViewChecked(){this._children.length!==this.prevChildrenLength&&(this.markElDimension(),this.checkScrollbar(),this.prevChildrenLength=this._children.length,this.checkNavStatus())}ngOnDestroy(){this._renderer.setAttribute(this._contentRef.nativeElement,"drag-scroll","false"),this._onMouseDownListener&&(this._onMouseDownListener=this._onMouseDownListener()),this._onScrollListener&&(this._onScrollListener=this._onScrollListener()),this._onDragStartListener&&(this._onDragStartListener=this._onDragStartListener())}onMouseMoveHandler(e){this.onMouseMove(e)}onMouseMove(e){if(this.isPressed&&!this.disabled){if(!e.buttons&&!e.which)return this.onMouseUpHandler(e);if(this._pointerEvents="none",this._setIsDragging(!0),!this.xDisabled&&!this.dragDisabled){const t=e.clientX;this._contentRef.nativeElement.scrollLeft=this._contentRef.nativeElement.scrollLeft-t+this.downX,this.downX=t}if(!this.yDisabled&&!this.dragDisabled){const t=e.clientY;this._contentRef.nativeElement.scrollTop=this._contentRef.nativeElement.scrollTop-t+this.downY,this.downY=t}}}onMouseDownHandler(e){const t=this.locateDragScrollItem(e.target);if(t&&t.dragDisabled)return;this._startGlobalListening("touchstart"===e.type),this.isPressed=!0;const n=e;this.downX=n.clientX,this.downY=n.clientY,clearTimeout(this.scrollToTimer)}onScrollHandler(){this.checkNavStatus(),this.isPressed||this.isAnimating||this.snapDisabled?this.locateCurrentIndex():(this.isScrolling=!0,clearTimeout(this.scrollTimer),this.scrollTimer=setTimeout(()=>{this.isScrolling=!1,this.locateCurrentIndex(!0)},500))}onMouseUpHandler(e){this.isPressed&&(this.isPressed=!1,this._pointerEvents="auto",this._setIsDragging(!1),this.snapDisabled?this.locateCurrentIndex():this.locateCurrentIndex(!0),this._stopGlobalListening())}moveLeft(){(0!==this.currIndex||this.snapDisabled)&&(this.currIndex--,clearTimeout(this.scrollToTimer),this.scrollTo(this._contentRef.nativeElement,this.toChildrenLocation(),this.snapDuration))}moveRight(){const e=this.wrapper||this.parentNode,t=e?e.clientWidth:0;!this.isScrollReachesRightEnd()&&this.currIndex<this.maximumIndex(t,this._children.toArray())&&(this.currIndex++,clearTimeout(this.scrollToTimer),this.scrollTo(this._contentRef.nativeElement,this.toChildrenLocation(),this.snapDuration))}moveTo(e){const t=this.wrapper||this.parentNode,n=t?t.clientWidth:0;e>=0&&e!==this.currIndex&&this.currIndex<=this.maximumIndex(n,this._children.toArray())&&(this.currIndex=Math.min(e,this.maximumIndex(n,this._children.toArray())),clearTimeout(this.scrollToTimer),this.scrollTo(this._contentRef.nativeElement,this.toChildrenLocation(),this.snapDuration))}checkNavStatus(){setTimeout(()=>{const e=Boolean(this._children.length<=1),t=Boolean(this._contentRef.nativeElement.scrollWidth<=this._contentRef.nativeElement.clientWidth);e||t?(this.reachesLeftBound.emit(!0),this.reachesRightBound.emit(!0)):this.isScrollReachesRightEnd()?(this.reachesLeftBound.emit(!1),this.reachesRightBound.emit(!0)):0===this._contentRef.nativeElement.scrollLeft&&this._contentRef.nativeElement.scrollWidth>this._contentRef.nativeElement.clientWidth?(this.reachesLeftBound.emit(!0),this.reachesRightBound.emit(!1)):(this.reachesLeftBound.emit(!1),this.reachesRightBound.emit(!1))},0)}onWheel(e){this._xWheelEnabled&&(e.preventDefault(),this._snapDisabled?this._contentRef.nativeElement.scrollBy(e.deltaY,0):e.deltaY<0?this.moveLeft():e.deltaY>0&&this.moveRight())}onWindowResize(){this.refreshWrapperDimensions(),this.checkNavStatus()}_setIsDragging(e){this._isDragging!==e&&(this._isDragging=e,e?this.dragStart.emit():this.dragEnd.emit())}_startGlobalListening(e){this._onMouseMoveListener||(this._onMouseMoveListener=this._renderer.listen("document",e?"touchmove":"mousemove",this.onMouseMoveHandler.bind(this))),this._onMouseUpListener||(this._onMouseUpListener=this._renderer.listen("document",e?"touchend":"mouseup",this.onMouseUpHandler.bind(this)))}_stopGlobalListening(){this._onMouseMoveListener&&(this._onMouseMoveListener=this._onMouseMoveListener()),this._onMouseUpListener&&(this._onMouseUpListener=this._onMouseUpListener())}disableScroll(e){this._renderer.setStyle(this._contentRef.nativeElement,"overflow-"+e,"hidden")}enableScroll(e){this._renderer.setStyle(this._contentRef.nativeElement,"overflow-"+e,"auto")}hideScrollbar(){"none"===this._contentRef.nativeElement.style.display||this.wrapper||(this.parentNode=this._contentRef.nativeElement.parentNode,this.wrapper=this._renderer.createElement("div"),this._renderer.setAttribute(this.wrapper,"class","drag-scroll-wrapper"),this._renderer.addClass(this.wrapper,"drag-scroll-container"),this.refreshWrapperDimensions(),this._renderer.setStyle(this.wrapper,"overflow","hidden"),this._renderer.setStyle(this._contentRef.nativeElement,"width",`calc(100% + ${this.scrollbarWidth})`),this._renderer.setStyle(this._contentRef.nativeElement,"height",`calc(100% + ${this.scrollbarWidth})`),this._renderer.appendChild(this._elementRef.nativeElement,this.wrapper),this._renderer.appendChild(this.wrapper,this._contentRef.nativeElement),this.adjustMarginToLastChild())}showScrollbar(){this.wrapper&&(this._renderer.setStyle(this._contentRef.nativeElement,"width","100%"),this._renderer.setStyle(this._contentRef.nativeElement,"height",this.wrapper.style.height),null!==this.parentNode&&(this.parentNode.removeChild(this.wrapper),this.parentNode.appendChild(this._contentRef.nativeElement)),this.wrapper=null,this.adjustMarginToLastChild())}checkScrollbar(){this._renderer.setStyle(this._contentRef.nativeElement,"height",this._contentRef.nativeElement.scrollWidth<=this._contentRef.nativeElement.clientWidth?"100%":`calc(100% + ${this.scrollbarWidth})`),this._renderer.setStyle(this._contentRef.nativeElement,"width",this._contentRef.nativeElement.scrollHeight<=this._contentRef.nativeElement.clientHeight?"100%":`calc(100% + ${this.scrollbarWidth})`)}setScrollBar(){this.scrollbarHidden?this.hideScrollbar():this.showScrollbar()}getScrollbarWidth(){const e=this._renderer.createElement("div");this._renderer.setStyle(e,"visibility","hidden"),this._renderer.setStyle(e,"width","100px"),this._renderer.setStyle(e,"msOverflowStyle","scrollbar"),this._renderer.appendChild(this._document.body,e);const t=e.offsetWidth;this._renderer.setStyle(e,"overflow","scroll");const n=this._renderer.createElement("div");this._renderer.setStyle(n,"width","100%"),this._renderer.appendChild(e,n);const i=n.offsetWidth;return this._renderer.removeChild(this._document.body,e),t-i||20}refreshWrapperDimensions(){this.wrapper&&(this._renderer.setStyle(this.wrapper,"width","100%"),this._renderer.setStyle(this.wrapper,"height",this._elementRef.nativeElement.style.height||this._elementRef.nativeElement.offsetHeight+"px"))}scrollTo(e,t,n){const i=this;i.isAnimating=!0;const s=e.scrollLeft,o=t-s-this.snapOffset;let r=0;const a=function(){var t,l,c;r+=20,e.scrollLeft=(t=r,l=s,c=o,(t/=n/2)<1?c/2*t*t+l:-c/2*(--t*(t-2)-1)+l),r<n?i.scrollToTimer=setTimeout(a,20):setTimeout(()=>{i.isAnimating=!1,i.snapAnimationFinished.emit(i.currIndex)},20)};a()}locateCurrentIndex(e){this.currentChildWidth((t,n,i,s,o)=>{this._contentRef.nativeElement.scrollLeft>=i&&this._contentRef.nativeElement.scrollLeft<=n?(n-this._contentRef.nativeElement.scrollLeft>t/2&&!this.isScrollReachesRightEnd()?(this.isAnimating||(this.currIndex=s),e&&this.scrollTo(this._contentRef.nativeElement,i,this.snapDuration)):0!==this._contentRef.nativeElement.scrollLeft&&(this.isAnimating||(this.currIndex=s+1),e&&this.scrollTo(this._contentRef.nativeElement,i+t,this.snapDuration)),o()):s+1===this._children.length-1&&(this.isAnimating||(this.currIndex=s+1),o())})}currentChildWidth(e){let t=0,n=!1;const i=function(){n=!0},s=this._children.toArray();for(let o=0;o<s.length&&o!==s.length-1&&!n;o++){const n=s[o]._elementRef.nativeElement.clientWidth;e(n,t+s[o+1]._elementRef.nativeElement.clientWidth,t,o,i),t+=n}}toChildrenLocation(){let e=0;const t=this._children.toArray();for(let n=0;n<this.currIndex;n++)e+=t[n]._elementRef.nativeElement.clientWidth;return e}locateDragScrollItem(e){let t=null;const n=this._children.toArray();for(let i=0;i<n.length;i++)e===n[i]._elementRef.nativeElement&&(t=n[i]);return t}markElDimension(){this.wrapper?(this.elWidth=this.wrapper.style.width,this.elHeight=this.wrapper.style.height):(this.elWidth=this._elementRef.nativeElement.style.width||this._elementRef.nativeElement.offsetWidth+"px",this.elHeight=this._elementRef.nativeElement.style.height||this._elementRef.nativeElement.offsetHeight+"px");const e=this.wrapper||this.parentNode;this._children.length>1&&(this.indexBound=this.maximumIndex(e?e.clientWidth:0,this._children.toArray()))}maximumIndex(e,t){let n=0,i=0;for(let s=0;s<=t.length;s++){const o=t[t.length-1-s];if(!o)break;{const t=o._elementRef.nativeElement;let s=t.clientWidth;if(0===s&&t.firstElementChild&&(s=o._elementRef.nativeElement.firstElementChild.clientWidth),i+=s,!(i<e))break;n++}}return t.length-n}isScrollReachesRightEnd(){return this._contentRef.nativeElement.scrollLeft+this._contentRef.nativeElement.offsetWidth>=this._contentRef.nativeElement.scrollWidth}adjustMarginToLastChild(){if(this._children&&this._children.length>0&&this.hideScrollbar){const e=this._children.toArray();this._renderer.setStyle(e[e.length-1]._elementRef.nativeElement,"margin-right",this.wrapper&&e.length>1?this.scrollbarWidth:0)}}};return e.\u0275fac=function(t){return new(t||e)(zr(rl),zr(cl),zr(Hd))},e.\u0275cmp=$e({type:e,selectors:[["drag-scroll"]],contentQueries:function(e,t,n){if(1&e&&Ic(n,qk,0),2&e){let e;Mc(e=Rc())&&(t._children=e)}},viewQuery:function(e,t){if(1&e&&Tc(Gk,3),2&e){let e;Mc(e=Rc())&&(t._contentRef=e.first)}},hostVars:2,hostBindings:function(e,t){1&e&&Xr("wheel",function(e){return t.onWheel(e)})("resize",function(){return t.onWindowResize()},!1,ps),2&e&&fa("pointer-events",t._pointerEvents)},inputs:{scrollbarHidden:["scrollbar-hidden","scrollbarHidden"],disabled:["drag-scroll-disabled","disabled"],xDisabled:["drag-scroll-x-disabled","xDisabled"],yDisabled:["drag-scroll-y-disabled","yDisabled"],xWheelEnabled:["scroll-x-wheel-enabled","xWheelEnabled"],dragDisabled:["drag-disabled","dragDisabled"],snapDisabled:["snap-disabled","snapDisabled"],snapOffset:["snap-offset","snapOffset"],snapDuration:["snap-duration","snapDuration"]},outputs:{dsInitialized:"dsInitialized",indexChanged:"indexChanged",reachesLeftBound:"reachesLeftBound",reachesRightBound:"reachesRightBound",snapAnimationFinished:"snapAnimationFinished",dragStart:"dragStart",dragEnd:"dragEnd"},features:[dt],ngContentSelectors:$k,decls:3,vars:0,consts:[[1,"drag-scroll-content"],["contentRef",""]],template:function(e,t){1&e&&(sa(),Hr(0,"div",0,1),oa(2),jr())},styles:["[_nghost-%COMP%] {\n      overflow: hidden;\n      display: block;\n    }\n    .drag-scroll-content[_ngcontent-%COMP%] {\n      height: 100%;\n      overflow: auto;\n      white-space: nowrap;\n    }"]}),e=D_([O_(0,vi(rl)),O_(1,vi(cl)),O_(2,vi(Hd)),M_("design:paramtypes",[rl,cl,Object])],e),e})(),Zk=(()=>{let e=class{};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=fe({}),e})();class Qk{constructor(e,t){this.x=e,this.y=t}static fromEvent(e,t=null){if(this.isMouseEvent(e))return new Qk(e.clientX,e.clientY);if(null===t||1===e.changedTouches.length)return new Qk(e.changedTouches[0].clientX,e.changedTouches[0].clientY);for(let n=0;n<e.changedTouches.length;n++)if(e.changedTouches[n].target===t)return new Qk(e.changedTouches[n].clientX,e.changedTouches[n].clientY)}static isMouseEvent(e){return 8===Object.prototype.toString.apply(e).indexOf("MouseEvent")}static isIPosition(e){return!!e&&"x"in e&&"y"in e}static getCurrent(e){let t=new Qk(0,0);if(window){const n=window.getComputedStyle(e);if(n){let e=parseInt(n.getPropertyValue("left"),10),i=parseInt(n.getPropertyValue("top"),10);t.x=isNaN(e)?0:e,t.y=isNaN(i)?0:i}return t}return console.error("Not Supported!"),null}static copy(e){return new Qk(0,0).set(e)}get value(){return{x:this.x,y:this.y}}add(e){return this.x+=e.x,this.y+=e.y,this}subtract(e){return this.x-=e.x,this.y-=e.y,this}multiply(e){this.x*=e,this.y*=e}divide(e){this.x/=e,this.y/=e}reset(){return this.x=0,this.y=0,this}set(e){return this.x=e.x,this.y=e.y,this}}class Xk{constructor(e,t){this.parent=e,this.renderer=t,this._added=!1;let n=t.createElement("div");t.setStyle(n,"position","absolute"),t.setStyle(n,"width","100%"),t.setStyle(n,"height","100%"),t.setStyle(n,"background-color","transparent"),t.setStyle(n,"top","0"),t.setStyle(n,"left","0"),this._helper=n}add(){this.parent&&!this._added&&(this.parent.appendChild(this._helper),this._added=!0)}remove(){this.parent&&this._added&&(this.parent.removeChild(this._helper),this._added=!1)}dispose(){this._helper=null,this._added=!1}get el(){return this._helper}}let Kk=(()=>{class e{constructor(e,t){this.el=e,this.renderer=t,this.allowDrag=!0,this.moving=!1,this.orignal=null,this.oldTrans=new Qk(0,0),this.tempTrans=new Qk(0,0),this.currTrans=new Qk(0,0),this.oldZIndex="",this._zIndex="",this.needTransform=!1,this.draggingSub=null,this._helperBlock=null,this.started=new yc,this.stopped=new yc,this.edge=new yc,this.outOfBounds={top:!1,right:!1,bottom:!1,left:!1},this.gridSize=1,this.inBounds=!1,this.trackPosition=!0,this.scale=1,this.preventDefaultEvent=!1,this.position={x:0,y:0},this.lockAxis=null,this.movingOffset=new yc,this.endOffset=new yc,this._helperBlock=new Xk(e.nativeElement,t)}set zIndex(e){this.renderer.setStyle(this.el.nativeElement,"z-index",e),this._zIndex=e}set ngDraggable(e){if(null!=e&&""!==e){this.allowDrag=!!e;let t=this.getDragEl();this.allowDrag?this.renderer.addClass(t,"ng-draggable"):(this.putBack(),this.renderer.removeClass(t,"ng-draggable"))}}ngOnInit(){if(this.allowDrag){let e=this.getDragEl();this.renderer.addClass(e,"ng-draggable")}this.resetPosition()}ngOnDestroy(){this.bounds=null,this.handle=null,this.orignal=null,this.oldTrans=null,this.tempTrans=null,this.currTrans=null,this._helperBlock.dispose(),this._helperBlock=null,this.draggingSub&&this.draggingSub.unsubscribe()}ngOnChanges(e){if(e.position&&!e.position.isFirstChange()){let t=e.position.currentValue;this.moving?this.needTransform=!0:(Qk.isIPosition(t)?this.oldTrans.set(t):this.oldTrans.reset(),this.transform())}}ngAfterViewInit(){this.inBounds&&(this.boundsCheck(),this.oldTrans.add(this.tempTrans),this.tempTrans.reset())}getDragEl(){return this.handle?this.handle:this.el.nativeElement}resetPosition(){Qk.isIPosition(this.position)?this.oldTrans.set(this.position):this.oldTrans.reset(),this.tempTrans.reset(),this.transform()}moveTo(e){this.orignal&&(e.subtract(this.orignal),this.tempTrans.set(e),this.tempTrans.divide(this.scale),this.transform(),this.bounds&&this.edge.emit(this.boundsCheck()),this.movingOffset.emit(this.currTrans.value))}transform(){let e=this.tempTrans.x+this.oldTrans.x,t=this.tempTrans.y+this.oldTrans.y;"x"===this.lockAxis?(e=this.oldTrans.x,this.tempTrans.x=0):"y"===this.lockAxis&&(t=this.oldTrans.y,this.tempTrans.y=0),this.gridSize>1&&(e=Math.round(e/this.gridSize)*this.gridSize,t=Math.round(t/this.gridSize)*this.gridSize);let n=`translate(${Math.round(e)}px, ${Math.round(t)}px)`;this.renderer.setStyle(this.el.nativeElement,"transform",n),this.renderer.setStyle(this.el.nativeElement,"-webkit-transform",n),this.renderer.setStyle(this.el.nativeElement,"-ms-transform",n),this.renderer.setStyle(this.el.nativeElement,"-moz-transform",n),this.renderer.setStyle(this.el.nativeElement,"-o-transform",n),this.currTrans.x=e,this.currTrans.y=t}pickUp(){if(this.oldZIndex=this.el.nativeElement.style.zIndex?this.el.nativeElement.style.zIndex:"",window&&(this.oldZIndex=window.getComputedStyle(this.el.nativeElement,null).getPropertyValue("z-index")),this.zIndexMoving&&this.renderer.setStyle(this.el.nativeElement,"z-index",this.zIndexMoving),!this.moving){this.started.emit(this.el.nativeElement),this.moving=!0;const e=this.getDragEl();this.renderer.addClass(e,"ng-dragging"),this.subscribeEvents()}}subscribeEvents(){this.draggingSub=V_(document,"mousemove",{passive:!1}).subscribe(e=>this.onMouseMove(e)),this.draggingSub.add(V_(document,"touchmove",{passive:!1}).subscribe(e=>this.onMouseMove(e))),this.draggingSub.add(V_(document,"mouseup",{passive:!1}).subscribe(()=>this.putBack())),/msie\s|trident\//i.test(window.navigator.userAgent)||this.draggingSub.add(V_(document,"mouseleave",{passive:!1}).subscribe(()=>this.putBack())),this.draggingSub.add(V_(document,"touchend",{passive:!1}).subscribe(()=>this.putBack())),this.draggingSub.add(V_(document,"touchcancel",{passive:!1}).subscribe(()=>this.putBack()))}unsubscribeEvents(){this.draggingSub.unsubscribe(),this.draggingSub=null}boundsCheck(){if(this.bounds){let e=this.bounds.getBoundingClientRect(),t=this.el.nativeElement.getBoundingClientRect(),n={top:!!this.outOfBounds.top||e.top<t.top,right:!!this.outOfBounds.right||e.right>t.right,bottom:!!this.outOfBounds.bottom||e.bottom>t.bottom,left:!!this.outOfBounds.left||e.left<t.left};return this.inBounds&&(n.top||(this.tempTrans.y-=(t.top-e.top)/this.scale),n.bottom||(this.tempTrans.y-=(t.bottom-e.bottom)/this.scale),n.right||(this.tempTrans.x-=(t.right-e.right)/this.scale),n.left||(this.tempTrans.x-=(t.left-e.left)/this.scale),this.transform()),n}}getCurrentOffset(){return this.currTrans.value}putBack(){if(this._zIndex?this.renderer.setStyle(this.el.nativeElement,"z-index",this._zIndex):this.zIndexMoving&&(this.oldZIndex?this.renderer.setStyle(this.el.nativeElement,"z-index",this.oldZIndex):this.el.nativeElement.style.removeProperty("z-index")),this.moving){this.stopped.emit(this.el.nativeElement),this._helperBlock.remove(),this.needTransform&&(Qk.isIPosition(this.position)?this.oldTrans.set(this.position):this.oldTrans.reset(),this.transform(),this.needTransform=!1),this.bounds&&this.edge.emit(this.boundsCheck()),this.moving=!1,this.endOffset.emit(this.currTrans.value),this.trackPosition&&this.oldTrans.add(this.tempTrans),this.tempTrans.reset(),this.trackPosition||this.transform();const e=this.getDragEl();this.renderer.removeClass(e,"ng-dragging"),this.unsubscribeEvents()}}checkHandleTarget(e,t){if("BUTTON"===t.tagName)return!1;if(t===e)return!0;for(let n in t.children)if(t.children.hasOwnProperty(n)&&this.checkHandleTarget(e,t.children[n]))return!0;return!1}onMouseDown(e){e instanceof MouseEvent&&2===e.button||(void 0===this.handle||this.checkHandleTarget(e.target||e.srcElement,this.handle))&&!1!==this.allowDrag&&(this.preventDefaultEvent&&(e.stopPropagation(),e.preventDefault()),this.orignal=Qk.fromEvent(e,this.getDragEl()),this.pickUp())}onMouseMove(e){this.moving&&this.allowDrag&&(this.preventDefaultEvent&&(e.stopPropagation(),e.preventDefault()),this._helperBlock.add(),this.moveTo(Qk.fromEvent(e,this.getDragEl())))}}return e.\u0275fac=function(t){return new(t||e)(zr(rl),zr(cl))},e.\u0275dir=Ke({type:e,selectors:[["","ngDraggable",""]],hostBindings:function(e,t){1&e&&Xr("mousedown",function(e){return t.onMouseDown(e)})("touchstart",function(e){return t.onMouseDown(e)})},inputs:{outOfBounds:"outOfBounds",gridSize:"gridSize",inBounds:"inBounds",trackPosition:"trackPosition",scale:"scale",preventDefaultEvent:"preventDefaultEvent",position:"position",lockAxis:"lockAxis",zIndex:"zIndex",ngDraggable:"ngDraggable",bounds:"bounds",handle:"handle",zIndexMoving:"zIndexMoving"},outputs:{started:"started",stopped:"stopped",edge:"edge",movingOffset:"movingOffset",endOffset:"endOffset"},exportAs:["ngDraggable"],features:[dt]}),e})();class Jk{constructor(e,t,n,i,s){this.parent=e,this.renderer=t,this.type=n,this.css=i,this.onMouseDown=s;let o=t.createElement("div");t.addClass(o,"ng-resizable-handle"),t.addClass(o,i),"se"===n&&t.addClass(o,"ng-resizable-diagonal"),this.parent&&e.appendChild(o),this._onResize=e=>{s(e,this)},o.addEventListener("mousedown",this._onResize,{passive:!1}),o.addEventListener("touchstart",this._onResize,{passive:!1}),this._handle=o}dispose(){this._handle.removeEventListener("mousedown",this._onResize),this._handle.removeEventListener("touchstart",this._onResize),this.parent&&this.parent.removeChild(this._handle),this._handle=null,this._onResize=null}get el(){return this._handle}}class eP{constructor(e,t){this.width=e,this.height=t}static getCurrent(e){let t=new eP(0,0);if(window){const n=window.getComputedStyle(e);return n&&(t.width=parseInt(n.getPropertyValue("width"),10),t.height=parseInt(n.getPropertyValue("height"),10)),t}return console.error("Not Supported!"),null}static copy(e){return new eP(0,0).set(e)}set(e){return this.width=e.width,this.height=e.height,this}}let tP=(()=>{class e{constructor(e,t){this.el=e,this.renderer=t,this._resizable=!0,this._handles={},this._handleType=[],this._handleResizing=null,this._direction=null,this._directionChanged=null,this._aspectRatio=0,this._containment=null,this._origMousePos=null,this._origSize=null,this._origPos=null,this._currSize=null,this._currPos=null,this._initSize=null,this._initPos=null,this._gridSize=null,this._bounding=null,this._helperBlock=null,this.draggingSub=null,this._adjusted=!1,this.rzHandles="e,s,se",this.rzAspectRatio=!1,this.rzContainment=null,this.rzGrid=null,this.rzMinWidth=null,this.rzMinHeight=null,this.rzMaxWidth=null,this.rzMaxHeight=null,this.preventDefaultEvent=!0,this.rzStart=new yc,this.rzResizing=new yc,this.rzStop=new yc,this._helperBlock=new Xk(e.nativeElement,t)}set ngResizable(e){null!=e&&""!==e&&(this._resizable=!!e,this.updateResizable())}ngOnChanges(e){e.rzHandles&&!e.rzHandles.isFirstChange()&&this.updateResizable(),e.rzAspectRatio&&!e.rzAspectRatio.isFirstChange()&&this.updateAspectRatio(),e.rzContainment&&!e.rzContainment.isFirstChange()&&this.updateContainment()}ngOnInit(){this.updateResizable()}ngOnDestroy(){this.removeHandles(),this._containment=null,this._helperBlock.dispose(),this._helperBlock=null}ngAfterViewInit(){const e=this.el.nativeElement;this._initSize=eP.getCurrent(e),this._initPos=Qk.getCurrent(e),this._currSize=eP.copy(this._initSize),this._currPos=Qk.copy(this._initPos),this.updateAspectRatio(),this.updateContainment()}resetSize(){this._currSize=eP.copy(this._initSize),this._currPos=Qk.copy(this._initPos),this.doResize()}getStatus(){return this._currPos&&this._currSize?{size:{width:this._currSize.width,height:this._currSize.height},position:{top:this._currPos.y,left:this._currPos.x}}:null}updateResizable(){const e=this.el.nativeElement;this.renderer.removeClass(e,"ng-resizable"),this.removeHandles(),this._resizable&&(this.renderer.addClass(e,"ng-resizable"),this.createHandles())}updateAspectRatio(){if("boolean"==typeof this.rzAspectRatio)this._aspectRatio=this.rzAspectRatio&&this._currSize.height?this._currSize.width/this._currSize.height:0;else{let e=Number(this.rzAspectRatio);this._aspectRatio=isNaN(e)?0:e}}updateContainment(){this._containment=this.rzContainment?"string"==typeof this.rzContainment?"parent"===this.rzContainment?this.el.nativeElement.parentElement:document.querySelector(this.rzContainment):this.rzContainment:null}createHandles(){if(!this.rzHandles)return;let e;if("string"==typeof this.rzHandles){e="all"===this.rzHandles?["n","e","s","w","ne","se","nw","sw"]:this.rzHandles.replace(/ /g,"").toLowerCase().split(",");for(let t of e){let e=this.createHandleByType(t,"ng-resizable-"+t);e&&(this._handleType.push(t),this._handles[t]=e)}}else{e=Object.keys(this.rzHandles);for(let t of e){let e=this.createHandleByType(t,this.rzHandles[t]);e&&(this._handleType.push(t),this._handles[t]=e)}}}createHandleByType(e,t){const n=this.el.nativeElement;return e.match(/^(se|sw|ne|nw|n|e|s|w)$/)?new Jk(n,this.renderer,e,t,this.onMouseDown.bind(this)):(console.error("Invalid handle type:",e),null)}removeHandles(){for(let e of this._handleType)this._handles[e].dispose();this._handleType=[],this._handles={}}onMouseDown(e,t){e instanceof MouseEvent&&2===e.button||(this.preventDefaultEvent&&(e.stopPropagation(),e.preventDefault()),this._handleResizing||(this._origMousePos=Qk.fromEvent(e),this.startResize(t),this.subscribeEvents()))}subscribeEvents(){this.draggingSub=V_(document,"mousemove",{passive:!1}).subscribe(e=>this.onMouseMove(e)),this.draggingSub.add(V_(document,"touchmove",{passive:!1}).subscribe(e=>this.onMouseMove(e))),this.draggingSub.add(V_(document,"mouseup",{passive:!1}).subscribe(()=>this.onMouseLeave())),/msie\s|trident\//i.test(window.navigator.userAgent)||this.draggingSub.add(V_(document,"mouseleave",{passive:!1}).subscribe(()=>this.onMouseLeave())),this.draggingSub.add(V_(document,"touchend",{passive:!1}).subscribe(()=>this.onMouseLeave())),this.draggingSub.add(V_(document,"touchcancel",{passive:!1}).subscribe(()=>this.onMouseLeave()))}unsubscribeEvents(){this.draggingSub.unsubscribe(),this.draggingSub=null}onMouseLeave(){this._handleResizing&&(this.stopResize(),this._origMousePos=null,this.unsubscribeEvents())}onMouseMove(e){this._handleResizing&&this._resizable&&this._origMousePos&&this._origPos&&this._origSize&&(this.resizeTo(Qk.fromEvent(e)),this.onResizing())}startResize(e){const t=this.el.nativeElement;this._origSize=eP.getCurrent(t),this._origPos=Qk.getCurrent(t),this._currSize=eP.copy(this._origSize),this._currPos=Qk.copy(this._origPos),this._containment&&this.getBounding(),this.getGridSize(),this._helperBlock.add(),this._handleResizing=e,this.updateDirection(),this.rzStart.emit(this.getResizingEvent())}stopResize(){this._helperBlock.remove(),this.rzStop.emit(this.getResizingEvent()),this._handleResizing=null,this._direction=null,this._origSize=null,this._origPos=null,this._containment&&this.resetBounding()}onResizing(){this.rzResizing.emit(this.getResizingEvent())}getResizingEvent(){return{host:this.el.nativeElement,handle:this._handleResizing?this._handleResizing.el:null,size:{width:this._currSize.width,height:this._currSize.height},position:{top:this._currPos.y,left:this._currPos.x},direction:Object.assign({},this._directionChanged)}}updateDirection(){this._direction={n:!!this._handleResizing.type.match(/n/),s:!!this._handleResizing.type.match(/s/),w:!!this._handleResizing.type.match(/w/),e:!!this._handleResizing.type.match(/e/)},this._directionChanged=Object.assign({},this._direction),this.rzAspectRatio&&(this._directionChanged.n&&!this._directionChanged.e&&(this._directionChanged.w=!0),this._directionChanged.s&&!this._directionChanged.w&&(this._directionChanged.e=!0),this._directionChanged.e&&!this._directionChanged.n&&(this._directionChanged.s=!0),this._directionChanged.w&&!this._directionChanged.n&&(this._directionChanged.s=!0))}resizeTo(e){e.subtract(this._origMousePos);const t=Math.round(e.x/this._gridSize.x)*this._gridSize.x,n=Math.round(e.y/this._gridSize.y)*this._gridSize.y;this._direction.n?(this._currPos.y=this._origPos.y+n,this._currSize.height=this._origSize.height-n):this._direction.s&&(this._currSize.height=this._origSize.height+n),this._direction.e?this._currSize.width=this._origSize.width+t:this._direction.w&&(this._currSize.width=this._origSize.width-t,this._currPos.x=this._origPos.x+t),this.checkBounds(),this.checkSize(),this.adjustByRatio(),this.doResize()}doResize(){const e=this.el.nativeElement;(!this._direction||this._direction.n||this._direction.s||this._aspectRatio)&&this.renderer.setStyle(e,"height",this._currSize.height+"px"),(!this._direction||this._direction.w||this._direction.e||this._aspectRatio)&&this.renderer.setStyle(e,"width",this._currSize.width+"px"),this.renderer.setStyle(e,"left",this._currPos.x+"px"),this.renderer.setStyle(e,"top",this._currPos.y+"px")}adjustByRatio(){if(this._aspectRatio&&!this._adjusted)if(this._direction.e||this._direction.w){const e=Math.floor(this._currSize.width/this._aspectRatio);this._direction.n&&(this._currPos.y+=this._currSize.height-e),this._currSize.height=e}else{const e=Math.floor(this._aspectRatio*this._currSize.height);this._direction.n&&(this._currPos.x+=this._currSize.width-e),this._currSize.width=e}}checkBounds(){if(this._containment){const e=this._bounding.width-this._bounding.pr-this._bounding.deltaL-this._bounding.translateX-this._currPos.x,t=this._bounding.height-this._bounding.pb-this._bounding.deltaT-this._bounding.translateY-this._currPos.y;if(this._direction.n&&this._currPos.y+this._bounding.translateY<0&&(this._currPos.y=-this._bounding.translateY,this._currSize.height=this._origSize.height+this._origPos.y+this._bounding.translateY),this._direction.w&&this._currPos.x+this._bounding.translateX<0&&(this._currPos.x=-this._bounding.translateX,this._currSize.width=this._origSize.width+this._origPos.x+this._bounding.translateX),this._currSize.width>e&&(this._currSize.width=e),this._currSize.height>t&&(this._currSize.height=t),this._aspectRatio){if(this._adjusted=!1,(this._direction.w||this._direction.e)&&this._currSize.width/this._aspectRatio>=t){const e=Math.floor(t*this._aspectRatio);this._direction.w&&(this._currPos.x+=this._currSize.width-e),this._currSize.width=e,this._currSize.height=t,this._adjusted=!0}if((this._direction.n||this._direction.s)&&this._currSize.height*this._aspectRatio>=e){const t=Math.floor(e/this._aspectRatio);this._direction.n&&(this._currPos.y+=this._currSize.height-t),this._currSize.width=e,this._currSize.height=t,this._adjusted=!0}}}}checkSize(){const e=this.rzMinHeight?this.rzMinHeight:1,t=this.rzMinWidth?this.rzMinWidth:1;this._currSize.height<e&&(this._currSize.height=e,this._direction.n&&(this._currPos.y=this._origPos.y+(this._origSize.height-e))),this._currSize.width<t&&(this._currSize.width=t,this._direction.w&&(this._currPos.x=this._origPos.x+(this._origSize.width-t))),this.rzMaxHeight&&this._currSize.height>this.rzMaxHeight&&(this._currSize.height=this.rzMaxHeight,this._direction.n&&(this._currPos.y=this._origPos.y+(this._origSize.height-this.rzMaxHeight))),this.rzMaxWidth&&this._currSize.width>this.rzMaxWidth&&(this._currSize.width=this.rzMaxWidth,this._direction.w&&(this._currPos.x=this._origPos.x+(this._origSize.width-this.rzMaxWidth)))}getBounding(){const e=this._containment,t=window.getComputedStyle(e);if(t){let n=t.getPropertyValue("position"),i=window.getComputedStyle(this.el.nativeElement).getPropertyValue("transform").replace(/[^-\d,]/g,"").split(",");this._bounding={},this._bounding.width=e.clientWidth,this._bounding.height=e.clientHeight,this._bounding.pr=parseInt(t.getPropertyValue("padding-right"),10),this._bounding.pb=parseInt(t.getPropertyValue("padding-bottom"),10),this._bounding.deltaL=this.el.nativeElement.offsetLeft-this._currPos.x,this._bounding.deltaT=this.el.nativeElement.offsetTop-this._currPos.y,i.length>=6?(this._bounding.translateX=parseInt(i[4],10),this._bounding.translateY=parseInt(i[5],10)):(this._bounding.translateX=0,this._bounding.translateY=0),this._bounding.position=t.getPropertyValue("position"),"static"===n&&this.renderer.setStyle(e,"position","relative")}}resetBounding(){this._bounding&&"static"===this._bounding.position&&this.renderer.setStyle(this._containment,"position","relative"),this._bounding=null}getGridSize(){this._gridSize={x:1,y:1},this.rzGrid&&("number"==typeof this.rzGrid?this._gridSize={x:this.rzGrid,y:this.rzGrid}:Array.isArray(this.rzGrid)&&(this._gridSize={x:this.rzGrid[0],y:this.rzGrid[1]}))}}return e.\u0275fac=function(t){return new(t||e)(zr(rl),zr(cl))},e.\u0275dir=Ke({type:e,selectors:[["","ngResizable",""]],inputs:{rzHandles:"rzHandles",rzAspectRatio:"rzAspectRatio",rzContainment:"rzContainment",rzGrid:"rzGrid",rzMinWidth:"rzMinWidth",rzMinHeight:"rzMinHeight",rzMaxWidth:"rzMaxWidth",rzMaxHeight:"rzMaxHeight",preventDefaultEvent:"preventDefaultEvent",ngResizable:"ngResizable"},outputs:{rzStart:"rzStart",rzResizing:"rzResizing",rzStop:"rzStop"},exportAs:["ngResizable"],features:[dt]}),e})(),nP=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=fe({imports:[[]]}),e})();function iP(e,t){return function(n,i){t(n,i,e)}}let sP=(()=>{let e=class{constructor(e,t){this.document=e,this.platformId=t,this.documentIsAccessible=hh(this.platformId)}check(e){return!!this.documentIsAccessible&&(e=encodeURIComponent(e),this.getCookieRegExp(e).test(this.document.cookie))}get(e){if(!this.documentIsAccessible||!this.check(e))return"";{e=encodeURIComponent(e);const n=this.getCookieRegExp(e).exec(this.document.cookie);try{return decodeURIComponent(n[1])}catch(t){return n[1]}}}getAll(){if(!this.documentIsAccessible)return{};const e={},t=this.document;return t.cookie&&""!==t.cookie&&t.cookie.split(";").forEach(t=>{const[n,i]=t.split("=");e[decodeURIComponent(n.replace(/^ /,""))]=decodeURIComponent(i)}),e}set(e,t,n,i,s,o,r="Lax"){if(!this.documentIsAccessible)return;let a=encodeURIComponent(e)+"="+encodeURIComponent(t)+";";n&&(a+="number"==typeof n?"expires="+new Date((new Date).getTime()+1e3*n*60*60*24).toUTCString()+";":"expires="+n.toUTCString()+";"),i&&(a+="path="+i+";"),s&&(a+="domain="+s+";"),!1===o&&"None"===r&&(o=!0,console.warn(`[ngx-cookie-service] Cookie ${e} was forced with secure flag because sameSite=None.More details : https://github.com/stevermeister/ngx-cookie-service/issues/86#issuecomment-597720130`)),o&&(a+="secure;"),a+="sameSite="+r+";",this.document.cookie=a}delete(e,t,n,i,s="Lax"){this.documentIsAccessible&&this.set(e,"",new Date("Thu, 01 Jan 1970 00:00:01 GMT"),t,n,i,s)}deleteAll(e,t,n,i="Lax"){if(!this.documentIsAccessible)return;const s=this.getAll();for(const o in s)s.hasOwnProperty(o)&&this.delete(o,e,t,n,i)}getCookieRegExp(e){const t=e.replace(/([\[\]\{\}\(\)\|\=\;\+\?\,\.\*\^\$])/gi,"\\$1");return new RegExp("(?:^"+t+"|;\\s*"+t+")=(.*?)(?:;|$)","g")}};return e.\u0275fac=function(t){return new(t||e)(gi(Hd),gi($c))},e.\u0275prov=pe({factory:function(){return new e(gi(Hd),gi($c))},token:e,providedIn:"root"}),e=function(e,t,n,i){var s,o=arguments.length,r=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,n,r):s(t,n))||r);return o>3&&r&&Object.defineProperty(t,n,r),r}([iP(0,vi(Hd)),iP(1,vi($c))],e),e})();function oP(e){return"string"==typeof e}let rP=(()=>{let e=class{};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=fe({imports:[[]]}),e})(),aP=(()=>{let e=class{};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=fe({imports:[[]]}),e})(),lP=(()=>{let e=class{transform(e,t=0,n="",i=!0){if(!oP(e))return e;if(e.length>t){if(i)return e.slice(0,t)+n;if(~e.indexOf(" ",t))return e.slice(0,e.indexOf(" ",t))+n}return e}};return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=Je({name:"shorten",type:e,pure:!0}),e})(),cP=(()=>{let e=class{transform(e){return oP(e)?function(e){const[t,...n]=e.split(/\s/g);return[t.toLowerCase().split(/(?=['|-])/g).map(e=>e.indexOf("-")+e.indexOf("'")>-2?e.slice(0,2).toUpperCase()+e.slice(2):e.slice(0,1).toUpperCase()+e.slice(1)).join(""),...n].join(" ")}(e):e}};return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=Je({name:"ucfirst",type:e,pure:!0}),e})(),dP=(()=>{let e=class{constructor(){this.latinMap={\u00c1:"A",\u0102:"A",\u1eae:"A",\u1eb6:"A",\u1eb0:"A",\u1eb2:"A",\u1eb4:"A",\u01cd:"A",\u00c2:"A",\u1ea4:"A",\u1eac:"A",\u1ea6:"A",\u1ea8:"A",\u1eaa:"A",\u00c4:"A",\u01de:"A",\u0226:"A",\u01e0:"A",\u1ea0:"A",\u0200:"A",\u00c0:"A",\u1ea2:"A",\u0202:"A",\u0100:"A",\u0104:"A",\u00c5:"A",\u01fa:"A",\u1e00:"A",\u023a:"A",\u00c3:"A",\ua732:"AA",\u00c6:"AE",\u01fc:"AE",\u01e2:"AE",\ua734:"AO",\ua736:"AU",\ua738:"AV",\ua73a:"AV",\ua73c:"AY",\u1e02:"B",\u1e04:"B",\u0181:"B",\u1e06:"B",\u0243:"B",\u0182:"B",\u0106:"C",\u010c:"C",\u00c7:"C",\u1e08:"C",\u0108:"C",\u010a:"C",\u0187:"C",\u023b:"C",\u010e:"D",\u1e10:"D",\u1e12:"D",\u1e0a:"D",\u1e0c:"D",\u018a:"D",\u1e0e:"D",\u01f2:"D",\u01c5:"D",\u0110:"D",\u018b:"D",\u01f1:"DZ",\u01c4:"DZ",\u00c9:"E",\u0114:"E",\u011a:"E",\u0228:"E",\u1e1c:"E",\u00ca:"E",\u1ebe:"E",\u1ec6:"E",\u1ec0:"E",\u1ec2:"E",\u1ec4:"E",\u1e18:"E",\u00cb:"E",\u0116:"E",\u1eb8:"E",\u0204:"E",\u00c8:"E",\u1eba:"E",\u0206:"E",\u0112:"E",\u1e16:"E",\u1e14:"E",\u0118:"E",\u0246:"E",\u1ebc:"E",\u1e1a:"E",\ua76a:"ET",\u1e1e:"F",\u0191:"F",\u01f4:"G",\u011e:"G",\u01e6:"G",\u0122:"G",\u011c:"G",\u0120:"G",\u0193:"G",\u1e20:"G",\u01e4:"G",\u1e2a:"H",\u021e:"H",\u1e28:"H",\u0124:"H",\u2c67:"H",\u1e26:"H",\u1e22:"H",\u1e24:"H",\u0126:"H",\u00cd:"I",\u012c:"I",\u01cf:"I",\u00ce:"I",\u00cf:"I",\u1e2e:"I",\u0130:"I",\u1eca:"I",\u0208:"I",\u00cc:"I",\u1ec8:"I",\u020a:"I",\u012a:"I",\u012e:"I",\u0197:"I",\u0128:"I",\u1e2c:"I",\ua779:"D",\ua77b:"F",\ua77d:"G",\ua782:"R",\ua784:"S",\ua786:"T",\ua76c:"IS",\u0134:"J",\u0248:"J",\u1e30:"K",\u01e8:"K",\u0136:"K",\u2c69:"K",\ua742:"K",\u1e32:"K",\u0198:"K",\u1e34:"K",\ua740:"K",\ua744:"K",\u0139:"L",\u023d:"L",\u013d:"L",\u013b:"L",\u1e3c:"L",\u1e36:"L",\u1e38:"L",\u2c60:"L",\ua748:"L",\u1e3a:"L",\u013f:"L",\u2c62:"L",\u01c8:"L",\u0141:"L",\u01c7:"LJ",\u1e3e:"M",\u1e40:"M",\u1e42:"M",\u2c6e:"M",\u0143:"N",\u0147:"N",\u0145:"N",\u1e4a:"N",\u1e44:"N",\u1e46:"N",\u01f8:"N",\u019d:"N",\u1e48:"N",\u0220:"N",\u01cb:"N",\u00d1:"N",\u01ca:"NJ",\u00d3:"O",\u014e:"O",\u01d1:"O",\u00d4:"O",\u1ed0:"O",\u1ed8:"O",\u1ed2:"O",\u1ed4:"O",\u1ed6:"O",\u00d6:"O",\u022a:"O",\u022e:"O",\u0230:"O",\u1ecc:"O",\u0150:"O",\u020c:"O",\u00d2:"O",\u1ece:"O",\u01a0:"O",\u1eda:"O",\u1ee2:"O",\u1edc:"O",\u1ede:"O",\u1ee0:"O",\u020e:"O",\ua74a:"O",\ua74c:"O",\u014c:"O",\u1e52:"O",\u1e50:"O",\u019f:"O",\u01ea:"O",\u01ec:"O",\u00d8:"O",\u01fe:"O",\u00d5:"O",\u1e4c:"O",\u1e4e:"O",\u022c:"O",\u01a2:"OI",\ua74e:"OO",\u0190:"E",\u0186:"O",\u0222:"OU",\u1e54:"P",\u1e56:"P",\ua752:"P",\u01a4:"P",\ua754:"P",\u2c63:"P",\ua750:"P",\ua758:"Q",\ua756:"Q",\u0154:"R",\u0158:"R",\u0156:"R",\u1e58:"R",\u1e5a:"R",\u1e5c:"R",\u0210:"R",\u0212:"R",\u1e5e:"R",\u024c:"R",\u2c64:"R",\ua73e:"C",\u018e:"E",\u015a:"S",\u1e64:"S",\u0160:"S",\u1e66:"S",\u015e:"S",\u015c:"S",\u0218:"S",\u1e60:"S",\u1e62:"S",\u1e68:"S",\u1e9e:"SS",\u0164:"T",\u0162:"T",\u1e70:"T",\u021a:"T",\u023e:"T",\u1e6a:"T",\u1e6c:"T",\u01ac:"T",\u1e6e:"T",\u01ae:"T",\u0166:"T",\u2c6f:"A",\ua780:"L",\u019c:"M",\u0245:"V",\ua728:"TZ",\u00da:"U",\u016c:"U",\u01d3:"U",\u00db:"U",\u1e76:"U",\u00dc:"U",\u01d7:"U",\u01d9:"U",\u01db:"U",\u01d5:"U",\u1e72:"U",\u1ee4:"U",\u0170:"U",\u0214:"U",\u00d9:"U",\u1ee6:"U",\u01af:"U",\u1ee8:"U",\u1ef0:"U",\u1eea:"U",\u1eec:"U",\u1eee:"U",\u0216:"U",\u016a:"U",\u1e7a:"U",\u0172:"U",\u016e:"U",\u0168:"U",\u1e78:"U",\u1e74:"U",\ua75e:"V",\u1e7e:"V",\u01b2:"V",\u1e7c:"V",\ua760:"VY",\u1e82:"W",\u0174:"W",\u1e84:"W",\u1e86:"W",\u1e88:"W",\u1e80:"W",\u2c72:"W",\u1e8c:"X",\u1e8a:"X",\u00dd:"Y",\u0176:"Y",\u0178:"Y",\u1e8e:"Y",\u1ef4:"Y",\u1ef2:"Y",\u01b3:"Y",\u1ef6:"Y",\u1efe:"Y",\u0232:"Y",\u024e:"Y",\u1ef8:"Y",\u0179:"Z",\u017d:"Z",\u1e90:"Z",\u2c6b:"Z",\u017b:"Z",\u1e92:"Z",\u0224:"Z",\u1e94:"Z",\u01b5:"Z",\u0132:"IJ",\u0152:"OE",\u1d00:"A",\u1d01:"AE",\u0299:"B",\u1d03:"B",\u1d04:"C",\u1d05:"D",\u1d07:"E",\ua730:"F",\u0262:"G",\u029b:"G",\u029c:"H",\u026a:"I",\u0281:"R",\u1d0a:"J",\u1d0b:"K",\u029f:"L",\u1d0c:"L",\u1d0d:"M",\u0274:"N",\u1d0f:"O",\u0276:"OE",\u1d10:"O",\u1d15:"OU",\u1d18:"P",\u0280:"R",\u1d0e:"N",\u1d19:"R",\ua731:"S",\u1d1b:"T",\u2c7b:"E",\u1d1a:"R",\u1d1c:"U",\u1d20:"V",\u1d21:"W",\u028f:"Y",\u1d22:"Z",\u00e1:"a",\u0103:"a",\u1eaf:"a",\u1eb7:"a",\u1eb1:"a",\u1eb3:"a",\u1eb5:"a",\u01ce:"a",\u00e2:"a",\u1ea5:"a",\u1ead:"a",\u1ea7:"a",\u1ea9:"a",\u1eab:"a",\u00e4:"a",\u01df:"a",\u0227:"a",\u01e1:"a",\u1ea1:"a",\u0201:"a",\u00e0:"a",\u1ea3:"a",\u0203:"a",\u0101:"a",\u0105:"a",\u1d8f:"a",\u1e9a:"a",\u00e5:"a",\u01fb:"a",\u1e01:"a",\u2c65:"a",\u00e3:"a",\ua733:"aa",\u00e6:"ae",\u01fd:"ae",\u01e3:"ae",\ua735:"ao",\ua737:"au",\ua739:"av",\ua73b:"av",\ua73d:"ay",\u1e03:"b",\u1e05:"b",\u0253:"b",\u1e07:"b",\u1d6c:"b",\u1d80:"b",\u0180:"b",\u0183:"b",\u0275:"o",\u0107:"c",\u010d:"c",\u00e7:"c",\u1e09:"c",\u0109:"c",\u0255:"c",\u010b:"c",\u0188:"c",\u023c:"c",\u010f:"d",\u1e11:"d",\u1e13:"d",\u0221:"d",\u1e0b:"d",\u1e0d:"d",\u0257:"d",\u1d91:"d",\u1e0f:"d",\u1d6d:"d",\u1d81:"d",\u0111:"d",\u0256:"d",\u018c:"d",\u0131:"i",\u0237:"j",\u025f:"j",\u0284:"j",\u01f3:"dz",\u01c6:"dz",\u00e9:"e",\u0115:"e",\u011b:"e",\u0229:"e",\u1e1d:"e",\u00ea:"e",\u1ebf:"e",\u1ec7:"e",\u1ec1:"e",\u1ec3:"e",\u1ec5:"e",\u1e19:"e",\u00eb:"e",\u0117:"e",\u1eb9:"e",\u0205:"e",\u00e8:"e",\u1ebb:"e",\u0207:"e",\u0113:"e",\u1e17:"e",\u1e15:"e",\u2c78:"e",\u0119:"e",\u1d92:"e",\u0247:"e",\u1ebd:"e",\u1e1b:"e",\ua76b:"et",\u1e1f:"f",\u0192:"f",\u1d6e:"f",\u1d82:"f",\u01f5:"g",\u011f:"g",\u01e7:"g",\u0123:"g",\u011d:"g",\u0121:"g",\u0260:"g",\u1e21:"g",\u1d83:"g",\u01e5:"g",\u1e2b:"h",\u021f:"h",\u1e29:"h",\u0125:"h",\u2c68:"h",\u1e27:"h",\u1e23:"h",\u1e25:"h",\u0266:"h",\u1e96:"h",\u0127:"h",\u0195:"hv",\u00ed:"i",\u012d:"i",\u01d0:"i",\u00ee:"i",\u00ef:"i",\u1e2f:"i",\u1ecb:"i",\u0209:"i",\u00ec:"i",\u1ec9:"i",\u020b:"i",\u012b:"i",\u012f:"i",\u1d96:"i",\u0268:"i",\u0129:"i",\u1e2d:"i",\ua77a:"d",\ua77c:"f",\u1d79:"g",\ua783:"r",\ua785:"s",\ua787:"t",\ua76d:"is",\u01f0:"j",\u0135:"j",\u029d:"j",\u0249:"j",\u1e31:"k",\u01e9:"k",\u0137:"k",\u2c6a:"k",\ua743:"k",\u1e33:"k",\u0199:"k",\u1e35:"k",\u1d84:"k",\ua741:"k",\ua745:"k",\u013a:"l",\u019a:"l",\u026c:"l",\u013e:"l",\u013c:"l",\u1e3d:"l",\u0234:"l",\u1e37:"l",\u1e39:"l",\u2c61:"l",\ua749:"l",\u1e3b:"l",\u0140:"l",\u026b:"l",\u1d85:"l",\u026d:"l",\u0142:"l",\u01c9:"lj",\u017f:"s",\u1e9c:"s",\u1e9b:"s",\u1e9d:"s",\u1e3f:"m",\u1e41:"m",\u1e43:"m",\u0271:"m",\u1d6f:"m",\u1d86:"m",\u0144:"n",\u0148:"n",\u0146:"n",\u1e4b:"n",\u0235:"n",\u1e45:"n",\u1e47:"n",\u01f9:"n",\u0272:"n",\u1e49:"n",\u019e:"n",\u1d70:"n",\u1d87:"n",\u0273:"n",\u00f1:"n",\u01cc:"nj",\u00f3:"o",\u014f:"o",\u01d2:"o",\u00f4:"o",\u1ed1:"o",\u1ed9:"o",\u1ed3:"o",\u1ed5:"o",\u1ed7:"o",\u00f6:"o",\u022b:"o",\u022f:"o",\u0231:"o",\u1ecd:"o",\u0151:"o",\u020d:"o",\u00f2:"o",\u1ecf:"o",\u01a1:"o",\u1edb:"o",\u1ee3:"o",\u1edd:"o",\u1edf:"o",\u1ee1:"o",\u020f:"o",\ua74b:"o",\ua74d:"o",\u2c7a:"o",\u014d:"o",\u1e53:"o",\u1e51:"o",\u01eb:"o",\u01ed:"o",\u00f8:"o",\u01ff:"o",\u00f5:"o",\u1e4d:"o",\u1e4f:"o",\u022d:"o",\u01a3:"oi",\ua74f:"oo",\u025b:"e",\u1d93:"e",\u0254:"o",\u1d97:"o",\u0223:"ou",\u1e55:"p",\u1e57:"p",\ua753:"p",\u01a5:"p",\u1d71:"p",\u1d88:"p",\ua755:"p",\u1d7d:"p",\ua751:"p",\ua759:"q",\u02a0:"q",\u024b:"q",\ua757:"q",\u0155:"r",\u0159:"r",\u0157:"r",\u1e59:"r",\u1e5b:"r",\u1e5d:"r",\u0211:"r",\u027e:"r",\u1d73:"r",\u0213:"r",\u1e5f:"r",\u027c:"r",\u1d72:"r",\u1d89:"r",\u024d:"r",\u027d:"r",\u2184:"c",\ua73f:"c",\u0258:"e",\u027f:"r",\u015b:"s",\u1e65:"s",\u0161:"s",\u1e67:"s",\u015f:"s",\u015d:"s",\u0219:"s",\u1e61:"s",\u1e63:"s",\u1e69:"s",\u0282:"s",\u1d74:"s",\u1d8a:"s",\u023f:"s",\u0261:"g",\u00df:"ss",\u1d11:"o",\u1d13:"o",\u1d1d:"u",\u0165:"t",\u0163:"t",\u1e71:"t",\u021b:"t",\u0236:"t",\u1e97:"t",\u2c66:"t",\u1e6b:"t",\u1e6d:"t",\u01ad:"t",\u1e6f:"t",\u1d75:"t",\u01ab:"t",\u0288:"t",\u0167:"t",\u1d7a:"th",\u0250:"a",\u1d02:"ae",\u01dd:"e",\u1d77:"g",\u0265:"h",\u02ae:"h",\u02af:"h",\u1d09:"i",\u029e:"k",\ua781:"l",\u026f:"m",\u0270:"m",\u1d14:"oe",\u0279:"r",\u027b:"r",\u027a:"r",\u2c79:"r",\u0287:"t",\u028c:"v",\u028d:"w",\u028e:"y",\ua729:"tz",\u00fa:"u",\u016d:"u",\u01d4:"u",\u00fb:"u",\u1e77:"u",\u00fc:"u",\u01d8:"u",\u01da:"u",\u01dc:"u",\u01d6:"u",\u1e73:"u",\u1ee5:"u",\u0171:"u",\u0215:"u",\u00f9:"u",\u1ee7:"u",\u01b0:"u",\u1ee9:"u",\u1ef1:"u",\u1eeb:"u",\u1eed:"u",\u1eef:"u",\u0217:"u",\u016b:"u",\u1e7b:"u",\u0173:"u",\u1d99:"u",\u016f:"u",\u0169:"u",\u1e79:"u",\u1e75:"u",\u1d6b:"ue",\ua778:"um",\u2c74:"v",\ua75f:"v",\u1e7f:"v",\u028b:"v",\u1d8c:"v",\u2c71:"v",\u1e7d:"v",\ua761:"vy",\u1e83:"w",\u0175:"w",\u1e85:"w",\u1e87:"w",\u1e89:"w",\u1e81:"w",\u2c73:"w",\u1e98:"w",\u1e8d:"x",\u1e8b:"x",\u1d8d:"x",\u00fd:"y",\u0177:"y",\u00ff:"y",\u1e8f:"y",\u1ef5:"y",\u1ef3:"y",\u01b4:"y",\u1ef7:"y",\u1eff:"y",\u0233:"y",\u1e99:"y",\u024f:"y",\u1ef9:"y",\u017a:"z",\u017e:"z",\u1e91:"z",\u0291:"z",\u2c6c:"z",\u017c:"z",\u1e93:"z",\u0225:"z",\u1e95:"z",\u1d76:"z",\u1d8e:"z",\u0290:"z",\u01b6:"z",\u0240:"z",\ufb00:"ff",\ufb03:"ffi",\ufb04:"ffl",\ufb01:"fi",\ufb02:"fl",\u0133:"ij",\u0153:"oe",\ufb06:"st",\u2090:"a",\u2091:"e",\u1d62:"i",\u2c7c:"j",\u2092:"o",\u1d63:"r",\u1d64:"u",\u1d65:"v",\u2093:"x"}}transform(e,t="\\s"){return oP(e)?e.replace(/[^A-Za-z0-9]/g,e=>this.latinMap[e]||e):e}};return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=Je({name:"latinise",type:e,pure:!0}),e})(),uP=(()=>{let e=class{};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=fe({imports:[[]]}),e})(),hP=(()=>{let e=class{};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=fe({imports:[[]]}),e})(),pP=(()=>{let e=class{};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=fe({imports:[[]]}),e})(),gP=(()=>{let e=class{};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=fe({imports:[[]]}),e})(),fP=(()=>{let e=class{};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=fe({imports:[rP,uP,hP,pP,aP,gP]}),e})();function mP(e,...t){return t.length?t.some(t=>e[t]):e.altKey||e.shiftKey||e.ctrlKey||e.metaKey}const bP=new gC(uC);function vP(e,t=bP){return n=>n.lift(new yP(e,t))}class yP{constructor(e,t){this.dueTime=e,this.scheduler=t}call(e,t){return t.subscribe(new wP(e,this.dueTime,this.scheduler))}}class wP extends g{constructor(e,t,n){super(e),this.dueTime=t,this.scheduler=n,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(e){this.clearDebounce(),this.lastValue=e,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(_P,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:e}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(e)}}clearDebounce(){const e=this.debouncedSubscription;null!==e&&(this.remove(e),e.unsubscribe(),this.debouncedSubscription=null)}}function _P(e){e.debouncedNext()}function xP(e){return null!=e&&""+e!="false"}function AP(e,t=0){return function(e){return!isNaN(parseFloat(e))&&!isNaN(Number(e))}(e)?Number(e):t}function CP(e){return Array.isArray(e)?e:[e]}function SP(e){return null==e?"":"string"==typeof e?e:e+"px"}function kP(e){return e instanceof rl?e.nativeElement:e}let PP;try{PP="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(FH){PP=!1}let EP,DP,OP,MP=(()=>{class e{constructor(e){this._platformId=e,this.isBrowser=this._platformId?hh(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!PP)&&"undefined"!=typeof CSS&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return e.\u0275fac=function(t){return new(t||e)(gi($c))},e.\u0275prov=pe({factory:function(){return new e(gi($c))},token:e,providedIn:"root"}),e})(),TP=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=fe({}),e})();function IP(e){return function(){if(null==EP&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>EP=!0}))}finally{EP=EP||!1}return EP}()?e:!!e.capture}function RP(){if(null==DP){if("object"!=typeof document||!document)return DP=!1,DP;if("scrollBehavior"in document.documentElement.style)DP=!0;else{const e=Element.prototype.scrollTo;DP=!!e&&!/\{\s*\[native code\]\s*\}/.test(e.toString())}}return DP}function LP(e){if(function(){if(null==OP){const e="undefined"!=typeof document?document.head:null;OP=!(!e||!e.createShadowRoot&&!e.attachShadow)}return OP}()){const t=e.getRootNode?e.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&t instanceof ShadowRoot)return t}return null}let FP=(()=>{class e{create(e){return"undefined"==typeof MutationObserver?null:new MutationObserver(e)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=pe({factory:function(){return new e},token:e,providedIn:"root"}),e})(),BP=(()=>{class e{constructor(e){this._mutationObserverFactory=e,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((e,t)=>this._cleanupObserver(t))}observe(e){const t=kP(e);return new v(e=>{const n=this._observeElement(t).subscribe(e);return()=>{n.unsubscribe(),this._unobserveElement(t)}})}_observeElement(e){if(this._observedElements.has(e))this._observedElements.get(e).count++;else{const t=new A,n=this._mutationObserverFactory.create(e=>t.next(e));n&&n.observe(e,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(e,{observer:n,stream:t,count:1})}return this._observedElements.get(e).stream}_unobserveElement(e){this._observedElements.has(e)&&(this._observedElements.get(e).count--,this._observedElements.get(e).count||this._cleanupObserver(e))}_cleanupObserver(e){if(this._observedElements.has(e)){const{observer:t,stream:n}=this._observedElements.get(e);t&&t.disconnect(),n.complete(),this._observedElements.delete(e)}}}return e.\u0275fac=function(t){return new(t||e)(gi(FP))},e.\u0275prov=pe({factory:function(){return new e(gi(FP))},token:e,providedIn:"root"}),e})(),zP=(()=>{class e{constructor(e,t,n){this._contentObserver=e,this._elementRef=t,this._ngZone=n,this.event=new yc,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(e){this._disabled=xP(e),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(e){this._debounce=AP(e),this._subscribe()}ngAfterContentInit(){this._currentSubscription||this.disabled||this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const e=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?e.pipe(vP(this.debounce)):e).subscribe(this.event)})}_unsubscribe(){var e;null===(e=this._currentSubscription)||void 0===e||e.unsubscribe()}}return e.\u0275fac=function(t){return new(t||e)(zr(BP),zr(rl),zr(ad))},e.\u0275dir=Ke({type:e,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),e})(),VP=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=fe({providers:[FP]}),e})();function NP(e,t){return(e.getAttribute(t)||"").match(/\S+/g)||[]}let HP=0;const jP=new Map;let UP=null,WP=(()=>{class e{constructor(e){this._document=e}describe(e,t,n){if(!this._canBeDescribed(e,t))return;const i=GP(t,n);"string"!=typeof t?($P(t),jP.set(i,{messageElement:t,referenceCount:0})):jP.has(i)||this._createMessageElement(t,n),this._isElementDescribedByMessage(e,i)||this._addMessageReference(e,i)}removeDescription(e,t,n){if(!t||!this._isElementNode(e))return;const i=GP(t,n);if(this._isElementDescribedByMessage(e,i)&&this._removeMessageReference(e,i),"string"==typeof t){const e=jP.get(i);e&&0===e.referenceCount&&this._deleteMessageElement(i)}UP&&0===UP.childNodes.length&&this._deleteMessagesContainer()}ngOnDestroy(){const e=this._document.querySelectorAll("[cdk-describedby-host]");for(let t=0;t<e.length;t++)this._removeCdkDescribedByReferenceIds(e[t]),e[t].removeAttribute("cdk-describedby-host");UP&&this._deleteMessagesContainer(),jP.clear()}_createMessageElement(e,t){const n=this._document.createElement("div");$P(n),n.textContent=e,t&&n.setAttribute("role",t),this._createMessagesContainer(),UP.appendChild(n),jP.set(GP(e,t),{messageElement:n,referenceCount:0})}_deleteMessageElement(e){const t=jP.get(e),n=t&&t.messageElement;UP&&n&&UP.removeChild(n),jP.delete(e)}_createMessagesContainer(){if(!UP){const e=this._document.getElementById("cdk-describedby-message-container");e&&e.parentNode&&e.parentNode.removeChild(e),UP=this._document.createElement("div"),UP.id="cdk-describedby-message-container",UP.style.visibility="hidden",UP.classList.add("cdk-visually-hidden"),this._document.body.appendChild(UP)}}_deleteMessagesContainer(){UP&&UP.parentNode&&(UP.parentNode.removeChild(UP),UP=null)}_removeCdkDescribedByReferenceIds(e){const t=NP(e,"aria-describedby").filter(e=>0!=e.indexOf("cdk-describedby-message"));e.setAttribute("aria-describedby",t.join(" "))}_addMessageReference(e,t){const n=jP.get(t);!function(e,t,n){const i=NP(e,t);i.some(e=>e.trim()==n.trim())||(i.push(n.trim()),e.setAttribute(t,i.join(" ")))}(e,"aria-describedby",n.messageElement.id),e.setAttribute("cdk-describedby-host",""),n.referenceCount++}_removeMessageReference(e,t){const n=jP.get(t);n.referenceCount--,function(e,t,n){const i=NP(e,t).filter(e=>e!=n.trim());i.length?e.setAttribute(t,i.join(" ")):e.removeAttribute(t)}(e,"aria-describedby",n.messageElement.id),e.removeAttribute("cdk-describedby-host")}_isElementDescribedByMessage(e,t){const n=NP(e,"aria-describedby"),i=jP.get(t),s=i&&i.messageElement.id;return!!s&&-1!=n.indexOf(s)}_canBeDescribed(e,t){if(!this._isElementNode(e))return!1;if(t&&"object"==typeof t)return!0;const n=null==t?"":(""+t).trim(),i=e.getAttribute("aria-label");return!(!n||i&&i.trim()===n)}_isElementNode(e){return e.nodeType===this._document.ELEMENT_NODE}}return e.\u0275fac=function(t){return new(t||e)(gi(Hd))},e.\u0275prov=pe({factory:function(){return new e(gi(Hd))},token:e,providedIn:"root"}),e})();function GP(e,t){return"string"==typeof e?`${t||""}/${e}`:e}function $P(e){e.id||(e.id="cdk-describedby-message-"+HP++)}class qP{constructor(e){this._items=e,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new A,this._typeaheadSubscription=u.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=e=>e.disabled,this._pressedLetters=[],this.tabOut=new A,this.change=new A,e instanceof _c&&e.changes.subscribe(e=>{if(this._activeItem){const t=e.toArray().indexOf(this._activeItem);t>-1&&t!==this._activeItemIndex&&(this._activeItemIndex=t)}})}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(Ov(e=>this._pressedLetters.push(e)),vP(e),db(()=>this._pressedLetters.length>0),k(()=>this._pressedLetters.join(""))).subscribe(e=>{const t=this._getItemsArray();for(let n=1;n<t.length+1;n++){const i=(this._activeItemIndex+n)%t.length,s=t[i];if(!this._skipPredicateFn(s)&&0===s.getLabel().toUpperCase().trim().indexOf(e)){this.setActiveItem(i);break}}this._pressedLetters=[]}),this}withHomeAndEnd(e=!0){return this._homeAndEnd=e,this}setActiveItem(e){const t=this._activeItem;this.updateActiveItem(e),this._activeItem!==t&&this.change.next(this._activeItemIndex)}onKeydown(e){const t=e.keyCode,n=["altKey","ctrlKey","metaKey","shiftKey"].every(t=>!e[t]||this._allowedModifierKeys.indexOf(t)>-1);switch(t){case 9:return void this.tabOut.next();case 40:if(this._vertical&&n){this.setNextItemActive();break}return;case 38:if(this._vertical&&n){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&n){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&n){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case 36:if(this._homeAndEnd&&n){this.setFirstItemActive();break}return;case 35:if(this._homeAndEnd&&n){this.setLastItemActive();break}return;default:return void((n||mP(e,"shiftKey"))&&(e.key&&1===e.key.length?this._letterKeyStream.next(e.key.toLocaleUpperCase()):(t>=65&&t<=90||t>=48&&t<=57)&&this._letterKeyStream.next(String.fromCharCode(t))))}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){const t=this._getItemsArray(),n="number"==typeof e?e:t.indexOf(e),i=t[n];this._activeItem=null==i?null:i,this._activeItemIndex=n}_setActiveItemByDelta(e){this._wrap?this._setActiveInWrapMode(e):this._setActiveInDefaultMode(e)}_setActiveInWrapMode(e){const t=this._getItemsArray();for(let n=1;n<=t.length;n++){const i=(this._activeItemIndex+e*n+t.length)%t.length;if(!this._skipPredicateFn(t[i]))return void this.setActiveItem(i)}}_setActiveInDefaultMode(e){this._setActiveItemByIndex(this._activeItemIndex+e,e)}_setActiveItemByIndex(e,t){const n=this._getItemsArray();if(n[e]){for(;this._skipPredicateFn(n[e]);)if(!n[e+=t])return;this.setActiveItem(e)}}_getItemsArray(){return this._items instanceof _c?this._items.toArray():this._items}}class YP extends qP{setActiveItem(e){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(e),this.activeItem&&this.activeItem.setActiveStyles()}}class ZP extends qP{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)}}let QP=(()=>{class e{constructor(e){this._platform=e}isDisabled(e){return e.hasAttribute("disabled")}isVisible(e){return function(e){return!!(e.offsetWidth||e.offsetHeight||"function"==typeof e.getClientRects&&e.getClientRects().length)}(e)&&"visible"===getComputedStyle(e).visibility}isTabbable(e){if(!this._platform.isBrowser)return!1;const t=function(e){try{return e.frameElement}catch(FH){return null}}((n=e).ownerDocument&&n.ownerDocument.defaultView||window);var n;if(t){if(-1===KP(t))return!1;if(!this.isVisible(t))return!1}let i=e.nodeName.toLowerCase(),s=KP(e);return e.hasAttribute("contenteditable")?-1!==s:"iframe"!==i&&"object"!==i&&!(this._platform.WEBKIT&&this._platform.IOS&&!function(e){let t=e.nodeName.toLowerCase(),n="input"===t&&e.type;return"text"===n||"password"===n||"select"===t||"textarea"===t}(e))&&("audio"===i?!!e.hasAttribute("controls")&&-1!==s:"video"===i?-1!==s&&(null!==s||this._platform.FIREFOX||e.hasAttribute("controls")):e.tabIndex>=0)}isFocusable(e,t){return function(e){return!function(e){return function(e){return"input"==e.nodeName.toLowerCase()}(e)&&"hidden"==e.type}(e)&&(function(e){let t=e.nodeName.toLowerCase();return"input"===t||"select"===t||"button"===t||"textarea"===t}(e)||function(e){return function(e){return"a"==e.nodeName.toLowerCase()}(e)&&e.hasAttribute("href")}(e)||e.hasAttribute("contenteditable")||XP(e))}(e)&&!this.isDisabled(e)&&((null==t?void 0:t.ignoreVisibility)||this.isVisible(e))}}return e.\u0275fac=function(t){return new(t||e)(gi(MP))},e.\u0275prov=pe({factory:function(){return new e(gi(MP))},token:e,providedIn:"root"}),e})();function XP(e){if(!e.hasAttribute("tabindex")||void 0===e.tabIndex)return!1;let t=e.getAttribute("tabindex");return"-32768"!=t&&!(!t||isNaN(parseInt(t,10)))}function KP(e){if(!XP(e))return null;const t=parseInt(e.getAttribute("tabindex")||"",10);return isNaN(t)?-1:t}class JP{constructor(e,t,n,i,s=!1){this._element=e,this._checker=t,this._ngZone=n,this._document=i,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,s||this.attachAnchors()}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))}destroy(){const e=this._startAnchor,t=this._endAnchor;e&&(e.removeEventListener("focus",this.startAnchorListener),e.parentNode&&e.parentNode.removeChild(e)),t&&(t.removeEventListener("focus",this.endAnchorListener),t.parentNode&&t.parentNode.removeChild(t)),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return!!this._hasAttached||(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(){return new Promise(e=>{this._executeOnStable(()=>e(this.focusInitialElement()))})}focusFirstTabbableElementWhenReady(){return new Promise(e=>{this._executeOnStable(()=>e(this.focusFirstTabbableElement()))})}focusLastTabbableElementWhenReady(){return new Promise(e=>{this._executeOnStable(()=>e(this.focusLastTabbableElement()))})}_getRegionBoundary(e){let t=this._element.querySelectorAll(`[cdk-focus-region-${e}], [cdkFocusRegion${e}], [cdk-focus-${e}]`);for(let n=0;n<t.length;n++)t[n].hasAttribute("cdk-focus-"+e)?console.warn(`Found use of deprecated attribute 'cdk-focus-${e}', use 'cdkFocusRegion${e}' instead. The deprecated attribute will be removed in 8.0.0.`,t[n]):t[n].hasAttribute("cdk-focus-region-"+e)&&console.warn(`Found use of deprecated attribute 'cdk-focus-region-${e}', use 'cdkFocusRegion${e}' instead. The deprecated attribute will be removed in 8.0.0.`,t[n]);return"start"==e?t.length?t[0]:this._getFirstTabbableElement(this._element):t.length?t[t.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(){const e=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(e){if(e.hasAttribute("cdk-focus-initial")&&console.warn("Found use of deprecated attribute 'cdk-focus-initial', use 'cdkFocusInitial' instead. The deprecated attribute will be removed in 8.0.0",e),!this._checker.isFocusable(e)){const t=this._getFirstTabbableElement(e);return null==t||t.focus(),!!t}return e.focus(),!0}return this.focusFirstTabbableElement()}focusFirstTabbableElement(){const e=this._getRegionBoundary("start");return e&&e.focus(),!!e}focusLastTabbableElement(){const e=this._getRegionBoundary("end");return e&&e.focus(),!!e}hasAttached(){return this._hasAttached}_getFirstTabbableElement(e){if(this._checker.isFocusable(e)&&this._checker.isTabbable(e))return e;let t=e.children||e.childNodes;for(let n=0;n<t.length;n++){let e=t[n].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(t[n]):null;if(e)return e}return null}_getLastTabbableElement(e){if(this._checker.isFocusable(e)&&this._checker.isTabbable(e))return e;let t=e.children||e.childNodes;for(let n=t.length-1;n>=0;n--){let e=t[n].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(t[n]):null;if(e)return e}return null}_createAnchor(){const 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,t){e?t.setAttribute("tabindex","0"):t.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(lv(1)).subscribe(e)}}let eE=(()=>{class e{constructor(e,t,n){this._checker=e,this._ngZone=t,this._document=n}create(e,t=!1){return new JP(e,this._checker,this._ngZone,this._document,t)}}return e.\u0275fac=function(t){return new(t||e)(gi(QP),gi(ad),gi(Hd))},e.\u0275prov=pe({factory:function(){return new e(gi(QP),gi(ad),gi(Hd))},token:e,providedIn:"root"}),e})();"undefined"!=typeof Element&&Element;const tE=new Xn("liveAnnouncerElement",{providedIn:"root",factory:function(){return null}}),nE=new Xn("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let iE=(()=>{class e{constructor(e,t,n,i){this._ngZone=t,this._defaultOptions=i,this._document=n,this._liveElement=e||this._createLiveElement()}announce(e,...t){const n=this._defaultOptions;let i,s;return 1===t.length&&"number"==typeof t[0]?s=t[0]:[i,s]=t,this.clear(),clearTimeout(this._previousTimeout),i||(i=n&&n.politeness?n.politeness:"polite"),null==s&&n&&(s=n.duration),this._liveElement.setAttribute("aria-live",i),this._ngZone.runOutsideAngular(()=>new Promise(t=>{clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=e,t(),"number"==typeof s&&(this._previousTimeout=setTimeout(()=>this.clear(),s))},100)}))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement&&this._liveElement.parentNode&&(this._liveElement.parentNode.removeChild(this._liveElement),this._liveElement=null)}_createLiveElement(){const e=this._document.getElementsByClassName("cdk-live-announcer-element"),t=this._document.createElement("div");for(let n=0;n<e.length;n++)e[n].parentNode.removeChild(e[n]);return t.classList.add("cdk-live-announcer-element"),t.classList.add("cdk-visually-hidden"),t.setAttribute("aria-atomic","true"),t.setAttribute("aria-live","polite"),this._document.body.appendChild(t),t}}return e.\u0275fac=function(t){return new(t||e)(gi(tE,8),gi(ad),gi(Hd),gi(nE,8))},e.\u0275prov=pe({factory:function(){return new e(gi(tE,8),gi(ad),gi(Hd),gi(nE,8))},token:e,providedIn:"root"}),e})();function sE(e){return 0===e.buttons}function oE(e){const t=e.touches&&e.touches[0]||e.changedTouches&&e.changedTouches[0];return!(!t||-1!==t.identifier||null!=t.radiusX&&1!==t.radiusX||null!=t.radiusY&&1!==t.radiusY)}const rE=new Xn("cdk-focus-monitor-default-options"),aE=IP({passive:!0,capture:!0});let lE=(()=>{class e{constructor(e,t,n,i){this._ngZone=e,this._platform=t,this._origin=null,this._windowFocused=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._documentKeydownListener=()=>{this._lastTouchTarget=null,this._setOriginForCurrentEventQueue("keyboard")},this._documentMousedownListener=e=>{if(!this._lastTouchTarget){const t=sE(e)?"keyboard":"mouse";this._setOriginForCurrentEventQueue(t)}},this._documentTouchstartListener=e=>{oE(e)?this._lastTouchTarget||this._setOriginForCurrentEventQueue("keyboard"):(null!=this._touchTimeoutId&&clearTimeout(this._touchTimeoutId),this._lastTouchTarget=cE(e),this._touchTimeoutId=setTimeout(()=>this._lastTouchTarget=null,650))},this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=setTimeout(()=>this._windowFocused=!1)},this._rootNodeFocusAndBlurListener=e=>{const t=cE(e),n="focus"===e.type?this._onFocus:this._onBlur;for(let i=t;i;i=i.parentElement)n.call(this,e,i)},this._document=n,this._detectionMode=(null==i?void 0:i.detectionMode)||0}monitor(e,t=!1){const n=kP(e);if(!this._platform.isBrowser||1!==n.nodeType)return lb(null);const i=LP(n)||this._getDocument(),s=this._elementInfo.get(n);if(s)return t&&(s.checkChildren=!0),s.subject;const o={checkChildren:t,subject:new A,rootNode:i};return this._elementInfo.set(n,o),this._registerGlobalListeners(o),o.subject}stopMonitoring(e){const t=kP(e),n=this._elementInfo.get(t);n&&(n.subject.complete(),this._setClasses(t),this._elementInfo.delete(t),this._removeGlobalListeners(n))}focusVia(e,t,n){const i=kP(e);i===this._getDocument().activeElement?this._getClosestElementsInfo(i).forEach(([e,n])=>this._originChanged(e,t,n)):(this._setOriginForCurrentEventQueue(t),"function"==typeof i.focus&&i.focus(n))}ngOnDestroy(){this._elementInfo.forEach((e,t)=>this.stopMonitoring(t))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_toggleClass(e,t,n){n?e.classList.add(t):e.classList.remove(t)}_getFocusOrigin(e){return this._origin?this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:this._wasCausedByTouch(e)?"touch":"program"}_setClasses(e,t){this._toggleClass(e,"cdk-focused",!!t),this._toggleClass(e,"cdk-touch-focused","touch"===t),this._toggleClass(e,"cdk-keyboard-focused","keyboard"===t),this._toggleClass(e,"cdk-mouse-focused","mouse"===t),this._toggleClass(e,"cdk-program-focused","program"===t)}_setOriginForCurrentEventQueue(e){this._ngZone.runOutsideAngular(()=>{this._origin=e,0===this._detectionMode&&(this._originTimeoutId=setTimeout(()=>this._origin=null,1))})}_wasCausedByTouch(e){const t=cE(e);return this._lastTouchTarget instanceof Node&&t instanceof Node&&(t===this._lastTouchTarget||t.contains(this._lastTouchTarget))}_onFocus(e,t){const n=this._elementInfo.get(t);n&&(n.checkChildren||t===cE(e))&&this._originChanged(t,this._getFocusOrigin(e),n)}_onBlur(e,t){const n=this._elementInfo.get(t);!n||n.checkChildren&&e.relatedTarget instanceof Node&&t.contains(e.relatedTarget)||(this._setClasses(t),this._emitOrigin(n.subject,null))}_emitOrigin(e,t){this._ngZone.run(()=>e.next(t))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;const t=e.rootNode,n=this._rootNodeFocusListenerCount.get(t)||0;n||this._ngZone.runOutsideAngular(()=>{t.addEventListener("focus",this._rootNodeFocusAndBlurListener,aE),t.addEventListener("blur",this._rootNodeFocusAndBlurListener,aE)}),this._rootNodeFocusListenerCount.set(t,n+1),1==++this._monitoredElementCount&&this._ngZone.runOutsideAngular(()=>{const e=this._getDocument(),t=this._getWindow();e.addEventListener("keydown",this._documentKeydownListener,aE),e.addEventListener("mousedown",this._documentMousedownListener,aE),e.addEventListener("touchstart",this._documentTouchstartListener,aE),t.addEventListener("focus",this._windowFocusListener)})}_removeGlobalListeners(e){const t=e.rootNode;if(this._rootNodeFocusListenerCount.has(t)){const e=this._rootNodeFocusListenerCount.get(t);e>1?this._rootNodeFocusListenerCount.set(t,e-1):(t.removeEventListener("focus",this._rootNodeFocusAndBlurListener,aE),t.removeEventListener("blur",this._rootNodeFocusAndBlurListener,aE),this._rootNodeFocusListenerCount.delete(t))}if(!--this._monitoredElementCount){const e=this._getDocument(),t=this._getWindow();e.removeEventListener("keydown",this._documentKeydownListener,aE),e.removeEventListener("mousedown",this._documentMousedownListener,aE),e.removeEventListener("touchstart",this._documentTouchstartListener,aE),t.removeEventListener("focus",this._windowFocusListener),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._touchTimeoutId),clearTimeout(this._originTimeoutId)}}_originChanged(e,t,n){this._setClasses(e,t),this._emitOrigin(n.subject,t),this._lastFocusOrigin=t}_getClosestElementsInfo(e){const t=[];return this._elementInfo.forEach((n,i)=>{(i===e||n.checkChildren&&i.contains(e))&&t.push([i,n])}),t}}return e.\u0275fac=function(t){return new(t||e)(gi(ad),gi(MP),gi(Hd,8),gi(rE,8))},e.\u0275prov=pe({factory:function(){return new e(gi(ad),gi(MP),gi(Hd,8),gi(rE,8))},token:e,providedIn:"root"}),e})();function cE(e){return e.composedPath?e.composedPath()[0]:e.target}let dE=(()=>{class e{constructor(e,t){this._platform=e,this._document=t}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);const t=this._document.defaultView||window,n=t&&t.getComputedStyle?t.getComputedStyle(e):null,i=(n&&n.backgroundColor||"").replace(/ /g,"");switch(this._document.body.removeChild(e),i){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}_applyBodyHighContrastModeCssClasses(){if(this._platform.isBrowser&&this._document.body){const e=this._document.body.classList;e.remove("cdk-high-contrast-active"),e.remove("cdk-high-contrast-black-on-white"),e.remove("cdk-high-contrast-white-on-black");const t=this.getHighContrastMode();1===t?(e.add("cdk-high-contrast-active"),e.add("cdk-high-contrast-black-on-white")):2===t&&(e.add("cdk-high-contrast-active"),e.add("cdk-high-contrast-white-on-black"))}}}return e.\u0275fac=function(t){return new(t||e)(gi(MP),gi(Hd))},e.\u0275prov=pe({factory:function(){return new e(gi(MP),gi(Hd))},token:e,providedIn:"root"}),e})(),uE=(()=>{class e{constructor(e){e._applyBodyHighContrastModeCssClasses()}}return e.\u0275fac=function(t){return new(t||e)(gi(dE))},e.\u0275mod=Qe({type:e}),e.\u0275inj=fe({imports:[[TP,VP]]}),e})();const hE=new Xn("cdk-dir-doc",{providedIn:"root",factory:function(){return fi(Hd)}});let pE=(()=>{class e{constructor(e){if(this.value="ltr",this.change=new yc,e){const t=e.documentElement?e.documentElement.dir:null,n=(e.body?e.body.dir:null)||t;this.value="ltr"===n||"rtl"===n?n:"ltr"}}ngOnDestroy(){this.change.complete()}}return e.\u0275fac=function(t){return new(t||e)(gi(hE,8))},e.\u0275prov=pe({factory:function(){return new e(gi(hE,8))},token:e,providedIn:"root"}),e})(),gE=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=fe({}),e})();const fE=new hl("11.2.5");function mE(e,t){if(1&e&&Ur(0,"mat-pseudo-checkbox",4),2&e){const e=na();Vr("state",e.selected?"checked":"unchecked")("disabled",e.disabled)}}function bE(e,t){if(1&e&&(Hr(0,"span",5),Da(1),jr()),2&e){const e=na();no(1),Ma("(",e.group.label,")")}}const vE=["*"];let yE=(()=>{class e{}return 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)",e})(),wE=(()=>{class e{}return e.COMPLEX="375ms",e.ENTERING="225ms",e.EXITING="195ms",e})();const _E=new hl("11.2.5"),xE=new Xn("mat-sanity-checks",{providedIn:"root",factory:function(){return!0}});let AE,CE=(()=>{class e{constructor(e,t,n){this._hasDoneGlobalChecks=!1,this._document=n,e._applyBodyHighContrastModeCssClasses(),this._sanityChecks=t,this._hasDoneGlobalChecks||(this._checkDoctypeIsDefined(),this._checkThemeIsPresent(),this._checkCdkVersionMatch(),this._hasDoneGlobalChecks=!0)}_getWindow(){const e=this._document.defaultView||window;return"object"==typeof e&&e?e:null}_checksAreEnabled(){return _d()&&!this._isTestEnv()}_isTestEnv(){const e=this._getWindow();return e&&(e.__karma__||e.jasmine)}_checkDoctypeIsDefined(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.doctype)&&!this._document.doctype&&console.warn("Current document does not have a doctype. This may cause some Angular Material components not to behave as expected.")}_checkThemeIsPresent(){if(!this._checksAreEnabled()||!1===this._sanityChecks||!this._sanityChecks.theme||!this._document.body||"function"!=typeof getComputedStyle)return;const e=this._document.createElement("div");e.classList.add("mat-theme-loaded-marker"),this._document.body.appendChild(e);const t=getComputedStyle(e);t&&"none"!==t.display&&console.warn("Could not find Angular Material core theme. Most Material components may not work as expected. For more info refer to the theming guide: https://material.angular.io/guide/theming"),this._document.body.removeChild(e)}_checkCdkVersionMatch(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.version)&&_E.full!==fE.full&&console.warn("The Angular Material version ("+_E.full+") does not match the Angular CDK version ("+fE.full+").\nPlease ensure the versions of these two packages exactly match.")}}return e.\u0275fac=function(t){return new(t||e)(gi(dE),gi(xE,8),gi(Hd))},e.\u0275mod=Qe({type:e}),e.\u0275inj=fe({imports:[[gE],gE]}),e})();function SE(e){return class extends e{constructor(...e){super(...e),this._disabled=!1}get disabled(){return this._disabled}set disabled(e){this._disabled=xP(e)}}}function kE(e,t){return class extends e{constructor(...e){super(...e),this.defaultColor=t,this.color=t}get color(){return this._color}set color(e){const t=e||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)}}}function PE(e){return class extends e{constructor(...e){super(...e),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(e){this._disableRipple=xP(e)}}}function EE(e,t=0){return class extends e{constructor(...e){super(...e),this._tabIndex=t,this.defaultTabIndex=t}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(e){this._tabIndex=null!=e?AP(e):this.defaultTabIndex}}}function DE(e){return class extends e{constructor(...e){super(...e),this.errorState=!1,this.stateChanges=new A}updateErrorState(){const e=this.errorState,t=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);t!==e&&(this.errorState=t,this.stateChanges.next())}}}function OE(e){return class extends e{constructor(...e){super(...e),this._isInitialized=!1,this._pendingSubscribers=[],this.initialized=new v(e=>{this._isInitialized?this._notifySubscriber(e):this._pendingSubscribers.push(e)})}_markInitialized(){this._isInitialized=!0,this._pendingSubscribers.forEach(this._notifySubscriber),this._pendingSubscribers=null}_notifySubscriber(e){e.next(),e.complete()}}}try{AE="undefined"!=typeof Intl}catch(FH){AE=!1}let ME=(()=>{class e{isErrorState(e,t){return!!(e&&e.invalid&&(e.touched||t&&t.submitted))}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=pe({factory:function(){return new e},token:e,providedIn:"root"}),e})(),TE=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=fe({imports:[[CE],CE]}),e})();class IE{constructor(e,t,n){this._renderer=e,this.element=t,this.config=n,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const RE={enterDuration:450,exitDuration:400},LE=IP({passive:!0}),FE=["mousedown","touchstart"],BE=["mouseup","mouseleave","touchend","touchcancel"];class zE{constructor(e,t,n,i){this._target=e,this._ngZone=t,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,i.isBrowser&&(this._containerElement=kP(n))}fadeInRipple(e,t,n={}){const i=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),s=Object.assign(Object.assign({},RE),n.animation);n.centered&&(e=i.left+i.width/2,t=i.top+i.height/2);const o=n.radius||function(e,t,n){const i=Math.max(Math.abs(e-n.left),Math.abs(e-n.right)),s=Math.max(Math.abs(t-n.top),Math.abs(t-n.bottom));return Math.sqrt(i*i+s*s)}(e,t,i),r=e-i.left,a=t-i.top,l=s.enterDuration,c=document.createElement("div");c.classList.add("mat-ripple-element"),c.style.left=r-o+"px",c.style.top=a-o+"px",c.style.height=2*o+"px",c.style.width=2*o+"px",null!=n.color&&(c.style.backgroundColor=n.color),c.style.transitionDuration=l+"ms",this._containerElement.appendChild(c),window.getComputedStyle(c).getPropertyValue("opacity"),c.style.transform="scale(1)";const d=new IE(this,c,n);return d.state=0,this._activeRipples.add(d),n.persistent||(this._mostRecentTransientRipple=d),this._runTimeoutOutsideZone(()=>{const e=d===this._mostRecentTransientRipple;d.state=1,n.persistent||e&&this._isPointerDown||d.fadeOut()},l),d}fadeOutRipple(e){const t=this._activeRipples.delete(e);if(e===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),!t)return;const n=e.element,i=Object.assign(Object.assign({},RE),e.config.animation);n.style.transitionDuration=i.exitDuration+"ms",n.style.opacity="0",e.state=2,this._runTimeoutOutsideZone(()=>{e.state=3,n.parentNode.removeChild(n)},i.exitDuration)}fadeOutAll(){this._activeRipples.forEach(e=>e.fadeOut())}setupTriggerEvents(e){const t=kP(e);t&&t!==this._triggerElement&&(this._removeTriggerEvents(),this._triggerElement=t,this._registerEvents(FE))}handleEvent(e){"mousedown"===e.type?this._onMousedown(e):"touchstart"===e.type?this._onTouchStart(e):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(BE),this._pointerUpEventsRegistered=!0)}_onMousedown(e){const t=sE(e),n=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+800;this._target.rippleDisabled||t||n||(this._isPointerDown=!0,this.fadeInRipple(e.clientX,e.clientY,this._target.rippleConfig))}_onTouchStart(e){if(!this._target.rippleDisabled&&!oE(e)){this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0;const t=e.changedTouches;for(let e=0;e<t.length;e++)this.fadeInRipple(t[e].clientX,t[e].clientY,this._target.rippleConfig)}}_onPointerUp(){this._isPointerDown&&(this._isPointerDown=!1,this._activeRipples.forEach(e=>{!e.config.persistent&&(1===e.state||e.config.terminateOnPointerUp&&0===e.state)&&e.fadeOut()}))}_runTimeoutOutsideZone(e,t=0){this._ngZone.runOutsideAngular(()=>setTimeout(e,t))}_registerEvents(e){this._ngZone.runOutsideAngular(()=>{e.forEach(e=>{this._triggerElement.addEventListener(e,this,LE)})})}_removeTriggerEvents(){this._triggerElement&&(FE.forEach(e=>{this._triggerElement.removeEventListener(e,this,LE)}),this._pointerUpEventsRegistered&&BE.forEach(e=>{this._triggerElement.removeEventListener(e,this,LE)}))}}const VE=new Xn("mat-ripple-global-options");let NE=(()=>{class e{constructor(e,t,n,i,s){this._elementRef=e,this._animationMode=s,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=i||{},this._rippleRenderer=new zE(this,t,e,n)}get disabled(){return this._disabled}set disabled(e){this._disabled=e,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(e){this._trigger=e,this._setupTriggerEventsIfEnabled()}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:Object.assign(Object.assign(Object.assign({},this._globalOptions.animation),"NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(e,t=0,n){return"number"==typeof e?this._rippleRenderer.fadeInRipple(e,t,Object.assign(Object.assign({},this.rippleConfig),n)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),e))}}return e.\u0275fac=function(t){return new(t||e)(zr(rl),zr(ad),zr(MP),zr(VE,8),zr(_f,8))},e.\u0275dir=Ke({type:e,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(e,t){2&e&&ma("mat-ripple-unbounded",t.unbounded)},inputs:{radius:["matRippleRadius","radius"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"],color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],animation:["matRippleAnimation","animation"]},exportAs:["matRipple"]}),e})(),HE=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=fe({imports:[[CE,TP],CE]}),e})(),jE=(()=>{class e{constructor(e){this._animationMode=e,this.state="unchecked",this.disabled=!1}}return e.\u0275fac=function(t){return new(t||e)(zr(_f,8))},e.\u0275cmp=$e({type:e,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(e,t){2&e&&ma("mat-pseudo-checkbox-indeterminate","indeterminate"===t.state)("mat-pseudo-checkbox-checked","checked"===t.state)("mat-pseudo-checkbox-disabled",t.disabled)("_mat-animation-noopable","NoopAnimations"===t._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(e,t){},styles:['.mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:transparent}._mat-animation-noopable.mat-pseudo-checkbox{transition:none;animation:none}._mat-animation-noopable.mat-pseudo-checkbox::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}\n'],encapsulation:2,changeDetection:0}),e})(),UE=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=fe({imports:[[CE]]}),e})();const WE=new Xn("MAT_OPTION_PARENT_COMPONENT");class GE{}const $E=SE(GE);let qE=0,YE=(()=>{class e extends $E{constructor(e){var t;super(),this._labelId="mat-optgroup-label-"+qE++,this._inert=null!==(t=null==e?void 0:e.inertGroups)&&void 0!==t&&t}}return e.\u0275fac=function(t){return new(t||e)(zr(WE,8))},e.\u0275dir=Ke({type:e,inputs:{label:"label"},features:[vr]}),e})();const ZE=new Xn("MatOptgroup");let QE=0;class XE{constructor(e,t=!1){this.source=e,this.isUserInput=t}}let KE=(()=>{class e{constructor(e,t,n,i){this._element=e,this._changeDetectorRef=t,this._parent=n,this.group=i,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+QE++,this.onSelectionChange=new yc,this._stateChanges=new A}get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(e){this._disabled=xP(e)}get disableRipple(){return this._parent&&this._parent.disableRipple}get active(){return this._active}get viewValue(){return(this._getHostElement().textContent||"").trim()}select(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}deselect(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}focus(e,t){const n=this._getHostElement();"function"==typeof n.focus&&n.focus(t)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(e){13!==e.keyCode&&32!==e.keyCode||mP(e)||(this._selectViaInteraction(),e.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getAriaSelected(){return this.selected||!this.multiple&&null}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){const e=this.viewValue;e!==this._mostRecentViewValue&&(this._mostRecentViewValue=e,this._stateChanges.next())}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(e=!1){this.onSelectionChange.emit(new XE(this,e))}}return e.\u0275fac=function(t){return new(t||e)(zr(rl),zr(Tl),zr(void 0),zr(YE))},e.\u0275dir=Ke({type:e,inputs:{id:"id",disabled:"disabled",value:"value"},outputs:{onSelectionChange:"onSelectionChange"}}),e})(),JE=(()=>{class e extends KE{constructor(e,t,n,i){super(e,t,n,i)}}return e.\u0275fac=function(t){return new(t||e)(zr(rl),zr(Tl),zr(WE,8),zr(ZE,8))},e.\u0275cmp=$e({type:e,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(e,t){1&e&&Xr("click",function(){return t._selectViaInteraction()})("keydown",function(e){return t._handleKeydown(e)}),2&e&&(Fa("id",t.id),Ir("tabindex",t._getTabIndex())("aria-selected",t._getAriaSelected())("aria-disabled",t.disabled.toString()),ma("mat-selected",t.selected)("mat-option-multiple",t.multiple)("mat-active",t.active)("mat-option-disabled",t.disabled))},exportAs:["matOption"],features:[vr],ngContentSelectors:vE,decls:5,vars:4,consts:[["class","mat-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mat-option-text"],["class","cdk-visually-hidden",4,"ngIf"],["mat-ripple","",1,"mat-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-option-pseudo-checkbox",3,"state","disabled"],[1,"cdk-visually-hidden"]],template:function(e,t){1&e&&(sa(),Fr(0,mE,1,2,"mat-pseudo-checkbox",0),Hr(1,"span",1),oa(2),jr(),Fr(3,bE,2,1,"span",2),Ur(4,"div",3)),2&e&&(Vr("ngIf",t.multiple),no(3),Vr("ngIf",t.group&&t.group._inert),no(1),Vr("matRippleTrigger",t._getHostElement())("matRippleDisabled",t.disabled||t.disableRipple))},directives:[Wu,NE,jE],styles:[".mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:transparent}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.cdk-high-contrast-active .mat-option{margin:0 1px}.cdk-high-contrast-active .mat-option.mat-active{border:solid 1px currentColor;margin:0}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}\n"],encapsulation:2,changeDetection:0}),e})();function eD(e,t,n){if(n.length){let i=t.toArray(),s=n.toArray(),o=0;for(let t=0;t<e+1;t++)i[t].group&&i[t].group===s[o]&&o++;return o}return 0}let tD=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=fe({imports:[[HE,uh,CE,UE]]}),e})();class nD extends uC{constructor(e,t){super(e,t),this.scheduler=e,this.work=t}requestAsyncId(e,t,n=0){return null!==n&&n>0?super.requestAsyncId(e,t,n):(e.actions.push(this),e.scheduled||(e.scheduled=requestAnimationFrame(()=>e.flush(null))))}recycleAsyncId(e,t,n=0){if(null!==n&&n>0||null===n&&this.delay>0)return super.recycleAsyncId(e,t,n);0===e.actions.length&&(cancelAnimationFrame(t),e.scheduled=void 0)}}class iD extends gC{flush(e){this.active=!0,this.scheduled=void 0;const{actions:t}=this;let n,i=-1,s=t.length;e=e||t.shift();do{if(n=e.execute(e.state,e.delay))break}while(++i<s&&(e=t.shift()));if(this.active=!1,n){for(;++i<s&&(e=t.shift());)e.unsubscribe();throw n}}}const sD=new iD(nD);let oD=1;const rD=(()=>Promise.resolve())(),aD={};function lD(e){return e in aD&&(delete aD[e],!0)}const cD={setImmediate(e){const t=oD++;return aD[t]=!0,rD.then(()=>lD(t)&&e()),t},clearImmediate(e){lD(e)}};class dD extends uC{constructor(e,t){super(e,t),this.scheduler=e,this.work=t}requestAsyncId(e,t,n=0){return null!==n&&n>0?super.requestAsyncId(e,t,n):(e.actions.push(this),e.scheduled||(e.scheduled=cD.setImmediate(e.flush.bind(e,null))))}recycleAsyncId(e,t,n=0){if(null!==n&&n>0||null===n&&this.delay>0)return super.recycleAsyncId(e,t,n);0===e.actions.length&&(cD.clearImmediate(t),e.scheduled=void 0)}}class uD extends gC{flush(e){this.active=!0,this.scheduled=void 0;const{actions:t}=this;let n,i=-1,s=t.length;e=e||t.shift();do{if(n=e.execute(e.state,e.delay))break}while(++i<s&&(e=t.shift()));if(this.active=!1,n){for(;++i<s&&(e=t.shift());)e.unsubscribe();throw n}}}const hD=new uD(dD);class pD{constructor(e){this.durationSelector=e}call(e,t){return t.subscribe(new gD(e,this.durationSelector))}}class gD extends z{constructor(e,t){super(e),this.durationSelector=t,this.hasValue=!1}_next(e){if(this.value=e,this.hasValue=!0,!this.throttled){let n;try{const{durationSelector:t}=this;n=t(e)}catch(t){return this.destination.error(t)}const i=V(n,new B(this));!i||i.closed?this.clearThrottle():this.add(this.throttled=i)}}clearThrottle(){const{value:e,hasValue:t,throttled:n}=this;n&&(this.remove(n),this.throttled=void 0,n.unsubscribe()),t&&(this.value=void 0,this.hasValue=!1,this.destination.next(e))}notifyNext(){this.clearThrottle()}notifyComplete(){this.clearThrottle()}}function fD(e){return!l(e)&&e-parseFloat(e)+1>=0}function mD(e){const{index:t,period:n,subscriber:i}=e;if(i.next(t),!i.closed){if(-1===n)return i.complete();e.index=t+1,this.schedule(e,n)}}function bD(e,t=bP){return n=()=>function(e=0,t,n){let i=-1;return fD(t)?i=Number(t)<1?1:Number(t):S(t)&&(n=t),S(n)||(n=bP),new v(t=>{const s=fD(e)?e:+e-n.now();return n.schedule(mD,s,{index:0,period:i,subscriber:t})})}(e,t),function(e){return e.lift(new pD(n))};var n}function vD(e){return t=>t.lift(new yD(e))}class yD{constructor(e){this.notifier=e}call(e,t){const n=new wD(e),i=V(this.notifier,new B(n));return i&&!n.seenValue?(n.add(i),t.subscribe(n)):n}}class wD extends z{constructor(e){super(e),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}}class _D{constructor(e=!1,t,n=!0){this._multiple=e,this._emitChanges=n,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new A,t&&t.length&&(e?t.forEach(e=>this._markSelected(e)):this._markSelected(t[0]),this._selectedToEmit.length=0)}get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}select(...e){this._verifyValueAssignment(e),e.forEach(e=>this._markSelected(e)),this._emitChangeEvent()}deselect(...e){this._verifyValueAssignment(e),e.forEach(e=>this._unmarkSelected(e)),this._emitChangeEvent()}toggle(e){this.isSelected(e)?this.deselect(e):this.select(e)}clear(){this._unmarkAll(),this._emitChangeEvent()}isSelected(e){return this._selection.has(e)}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(e){this._multiple&&this.selected&&this._selected.sort(e)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(e){this.isSelected(e)||(this._multiple||this._unmarkAll(),this._selection.add(e),this._emitChanges&&this._selectedToEmit.push(e))}_unmarkSelected(e){this.isSelected(e)&&(this._selection.delete(e),this._emitChanges&&this._deselectedToEmit.push(e))}_unmarkAll(){this.isEmpty()||this._selection.forEach(e=>this._unmarkSelected(e))}_verifyValueAssignment(e){}}let xD=(()=>{class e{constructor(e,t,n){this._ngZone=e,this._platform=t,this._scrolled=new A,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=n}register(e){this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe(()=>this._scrolled.next(e)))}deregister(e){const t=this.scrollContainers.get(e);t&&(t.unsubscribe(),this.scrollContainers.delete(e))}scrolled(e=20){return this._platform.isBrowser?new v(t=>{this._globalSubscription||this._addGlobalListener();const n=e>0?this._scrolled.pipe(bD(e)).subscribe(t):this._scrolled.subscribe(t);return this._scrolledCount++,()=>{n.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):lb()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((e,t)=>this.deregister(t)),this._scrolled.complete()}ancestorScrolled(e,t){const n=this.getAncestorScrollContainers(e);return this.scrolled(t).pipe(db(e=>!e||n.indexOf(e)>-1))}getAncestorScrollContainers(e){const t=[];return this.scrollContainers.forEach((n,i)=>{this._scrollableContainsElement(i,e)&&t.push(i)}),t}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(e,t){let n=kP(t),i=e.getElementRef().nativeElement;do{if(n==i)return!0}while(n=n.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>V_(this._getWindow().document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return e.\u0275fac=function(t){return new(t||e)(gi(ad),gi(MP),gi(Hd,8))},e.\u0275prov=pe({factory:function(){return new e(gi(ad),gi(MP),gi(Hd,8))},token:e,providedIn:"root"}),e})(),AD=(()=>{class e{constructor(e,t,n){this._platform=e,this._change=new A,this._changeListener=e=>{this._change.next(e)},this._document=n,t.runOutsideAngular(()=>{if(e.isBrowser){const e=this._getWindow();e.addEventListener("resize",this._changeListener),e.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._updateViewportSize())})}ngOnDestroy(){if(this._platform.isBrowser){const e=this._getWindow();e.removeEventListener("resize",this._changeListener),e.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}getViewportRect(){const e=this.getViewportScrollPosition(),{width:t,height:n}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+n,right:e.left+t,height:n,width:t}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const e=this._document,t=this._getWindow(),n=e.documentElement,i=n.getBoundingClientRect();return{top:-i.top||e.body.scrollTop||t.scrollY||n.scrollTop||0,left:-i.left||e.body.scrollLeft||t.scrollX||n.scrollLeft||0}}change(e=20){return e>0?this._change.pipe(bD(e)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const e=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:e.innerWidth,height:e.innerHeight}:{width:0,height:0}}}return e.\u0275fac=function(t){return new(t||e)(gi(MP),gi(ad),gi(Hd,8))},e.\u0275prov=pe({factory:function(){return new e(gi(MP),gi(ad),gi(Hd,8))},token:e,providedIn:"root"}),e})(),CD=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=fe({}),e})(),SD=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=fe({imports:[[gE,TP,CD],gE,CD]}),e})();class kD{constructor(e,t){this.predicate=e,this.inclusive=t}call(e,t){return t.subscribe(new PD(e,this.predicate,this.inclusive))}}class PD extends g{constructor(e,t,n){super(e),this.predicate=t,this.inclusive=n,this.index=0}_next(e){const t=this.destination;let n;try{n=this.predicate(e,this.index++)}catch(i){return void t.error(i)}this.nextOrComplete(e,n)}nextOrComplete(e,t){const n=this.destination;Boolean(t)?n.next(e):(this.inclusive&&n.next(e),n.complete())}}const ED=RP();class DD{constructor(e,t){this._viewportRuler=e,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=t}attach(){}enable(){if(this._canBeEnabled()){const e=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=e.style.left||"",this._previousHTMLStyles.top=e.style.top||"",e.style.left=SP(-this._previousScrollPosition.left),e.style.top=SP(-this._previousScrollPosition.top),e.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const e=this._document.documentElement,t=e.style,n=this._document.body.style,i=t.scrollBehavior||"",s=n.scrollBehavior||"";this._isEnabled=!1,t.left=this._previousHTMLStyles.left,t.top=this._previousHTMLStyles.top,e.classList.remove("cdk-global-scrollblock"),ED&&(t.scrollBehavior=n.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),ED&&(t.scrollBehavior=i,n.scrollBehavior=s)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const e=this._document.body,t=this._viewportRuler.getViewportSize();return e.scrollHeight>t.height||e.scrollWidth>t.width}}class OD{constructor(e,t,n,i){this._scrollDispatcher=e,this._ngZone=t,this._viewportRuler=n,this._config=i,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(e){this._overlayRef=e}enable(){if(this._scrollSubscription)return;const e=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=e.subscribe(()=>{const e=this._viewportRuler.getViewportScrollPosition().top;Math.abs(e-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=e.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class MD{enable(){}disable(){}attach(){}}function TD(e,t){return t.some(t=>e.bottom<t.top||e.top>t.bottom||e.right<t.left||e.left>t.right)}function ID(e,t){return t.some(t=>e.top<t.top||e.bottom>t.bottom||e.left<t.left||e.right>t.right)}class RD{constructor(e,t,n,i){this._scrollDispatcher=e,this._viewportRuler=t,this._ngZone=n,this._config=i,this._scrollSubscription=null}attach(e){this._overlayRef=e}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const e=this._overlayRef.overlayElement.getBoundingClientRect(),{width:t,height:n}=this._viewportRuler.getViewportSize();TD(e,[{width:t,height:n,bottom:n,right:t,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let LD=(()=>{class e{constructor(e,t,n,i){this._scrollDispatcher=e,this._viewportRuler=t,this._ngZone=n,this.noop=()=>new MD,this.close=e=>new OD(this._scrollDispatcher,this._ngZone,this._viewportRuler,e),this.block=()=>new DD(this._viewportRuler,this._document),this.reposition=e=>new RD(this._scrollDispatcher,this._viewportRuler,this._ngZone,e),this._document=i}}return e.\u0275fac=function(t){return new(t||e)(gi(xD),gi(AD),gi(ad),gi(Hd))},e.\u0275prov=pe({factory:function(){return new e(gi(xD),gi(AD),gi(ad),gi(Hd))},token:e,providedIn:"root"}),e})();class FD{constructor(e){if(this.scrollStrategy=new MD,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,e){const t=Object.keys(e);for(const n of t)void 0!==e[n]&&(this[n]=e[n])}}}class BD{constructor(e,t,n,i,s){this.offsetX=n,this.offsetY=i,this.panelClass=s,this.originX=e.originX,this.originY=e.originY,this.overlayX=t.overlayX,this.overlayY=t.overlayY}}class zD{constructor(e,t){this.connectionPair=e,this.scrollableViewProperties=t}}let VD=(()=>{class e{constructor(e){this._attachedOverlays=[],this._document=e}ngOnDestroy(){this.detach()}add(e){this.remove(e),this._attachedOverlays.push(e)}remove(e){const t=this._attachedOverlays.indexOf(e);t>-1&&this._attachedOverlays.splice(t,1),0===this._attachedOverlays.length&&this.detach()}}return e.\u0275fac=function(t){return new(t||e)(gi(Hd))},e.\u0275prov=pe({factory:function(){return new e(gi(Hd))},token:e,providedIn:"root"}),e})(),ND=(()=>{class e extends VD{constructor(e){super(e),this._keydownListener=e=>{const t=this._attachedOverlays;for(let n=t.length-1;n>-1;n--)if(t[n]._keydownEvents.observers.length>0){t[n]._keydownEvents.next(e);break}}}add(e){super.add(e),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return e.\u0275fac=function(t){return new(t||e)(gi(Hd))},e.\u0275prov=pe({factory:function(){return new e(gi(Hd))},token:e,providedIn:"root"}),e})(),HD=(()=>{class e extends VD{constructor(e,t){super(e),this._platform=t,this._cursorStyleIsSet=!1,this._clickListener=e=>{const t=e.composedPath?e.composedPath()[0]:e.target,n=this._attachedOverlays.slice();for(let i=n.length-1;i>-1;i--){const s=n[i];if(!(s._outsidePointerEvents.observers.length<1)&&s.hasAttached()){if(s.overlayElement.contains(t))break;s._outsidePointerEvents.next(e)}}}}add(e){super.add(e),this._isAttached||(this._document.body.addEventListener("click",this._clickListener,!0),this._document.body.addEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=this._document.body.style.cursor,this._document.body.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("click",this._clickListener,!0),this._document.body.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(this._document.body.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1)}}return e.\u0275fac=function(t){return new(t||e)(gi(Hd),gi(MP))},e.\u0275prov=pe({factory:function(){return new e(gi(Hd),gi(MP))},token:e,providedIn:"root"}),e})();const jD=!("undefined"==typeof window||!window||!window.__karma__&&!window.jasmine);let UD=(()=>{class e{constructor(e,t){this._platform=t,this._document=e}ngOnDestroy(){const e=this._containerElement;e&&e.parentNode&&e.parentNode.removeChild(e)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){if(this._platform.isBrowser||jD){const e=this._document.querySelectorAll('.cdk-overlay-container[platform="server"], .cdk-overlay-container[platform="test"]');for(let t=0;t<e.length;t++)e[t].parentNode.removeChild(e[t])}const e=this._document.createElement("div");e.classList.add("cdk-overlay-container"),jD?e.setAttribute("platform","test"):this._platform.isBrowser||e.setAttribute("platform","server"),this._document.body.appendChild(e),this._containerElement=e}}return e.\u0275fac=function(t){return new(t||e)(gi(Hd),gi(MP))},e.\u0275prov=pe({factory:function(){return new e(gi(Hd),gi(MP))},token:e,providedIn:"root"}),e})();class WD{constructor(e,t,n,i,s,o,r,a,l){this._portalOutlet=e,this._host=t,this._pane=n,this._config=i,this._ngZone=s,this._keyboardDispatcher=o,this._document=r,this._location=a,this._outsideClickDispatcher=l,this._backdropElement=null,this._backdropClick=new A,this._attachments=new A,this._detachments=new A,this._locationChanges=u.EMPTY,this._backdropClickHandler=e=>this._backdropClick.next(e),this._keydownEvents=new A,this._outsidePointerEvents=new A,i.scrollStrategy&&(this._scrollStrategy=i.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=i.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(e){let t=this._portalOutlet.attach(e);return!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host),this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe(lv(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),t}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const e=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),e}dispose(){const e=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this.detachBackdrop(),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host&&this._host.parentNode&&(this._host.parentNode.removeChild(this._host),this._host=null),this._previousHostParent=this._pane=null,e&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(e){e!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=e,this.hasAttached()&&(e.attach(this),this.updatePosition()))}updateSize(e){this._config=Object.assign(Object.assign({},this._config),e),this._updateElementSize()}setDirection(e){this._config=Object.assign(Object.assign({},this._config),{direction:e}),this._updateElementDirection()}addPanelClass(e){this._pane&&this._toggleClasses(this._pane,e,!0)}removePanelClass(e){this._pane&&this._toggleClasses(this._pane,e,!1)}getDirection(){const e=this._config.direction;return e?"string"==typeof e?e:e.value:"ltr"}updateScrollStrategy(e){e!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=e,this.hasAttached()&&(e.attach(this),e.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const e=this._pane.style;e.width=SP(this._config.width),e.height=SP(this._config.height),e.minWidth=SP(this._config.minWidth),e.minHeight=SP(this._config.minHeight),e.maxWidth=SP(this._config.maxWidth),e.maxHeight=SP(this._config.maxHeight)}_togglePointerEvents(e){this._pane.style.pointerEvents=e?"":"none"}_attachBackdrop(){this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add("cdk-overlay-backdrop-showing")})}):this._backdropElement.classList.add("cdk-overlay-backdrop-showing")}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){let e,t=this._backdropElement;if(!t)return;let n=()=>{t&&(t.removeEventListener("click",this._backdropClickHandler),t.removeEventListener("transitionend",n),t.parentNode&&t.parentNode.removeChild(t)),this._backdropElement==t&&(this._backdropElement=null),this._config.backdropClass&&this._toggleClasses(t,this._config.backdropClass,!1),clearTimeout(e)};t.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{t.addEventListener("transitionend",n)}),t.style.pointerEvents="none",e=this._ngZone.runOutsideAngular(()=>setTimeout(n,500))}_toggleClasses(e,t,n){const i=e.classList;CP(t).forEach(e=>{e&&(n?i.add(e):i.remove(e))})}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const e=this._ngZone.onStable.pipe(vD(G(this._attachments,this._detachments))).subscribe(()=>{this._pane&&this._host&&0!==this._pane.children.length||(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._previousHostParent.removeChild(this._host)),e.unsubscribe())})})}_disposeScrollStrategy(){const e=this._scrollStrategy;e&&(e.disable(),e.detach&&e.detach())}}const GD=/([A-Za-z%]+)$/;class $D{constructor(e,t,n,i,s){this._viewportRuler=t,this._document=n,this._platform=i,this._overlayContainer=s,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new A,this._resizeSubscription=u.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(e)}get positions(){return this._preferredPositions}attach(e){this._validatePositions(),e.hostElement.classList.add("cdk-overlay-connected-position-bounding-box"),this._overlayRef=e,this._boundingBox=e.hostElement,this._pane=e.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect();const e=this._originRect,t=this._overlayRect,n=this._viewportRect,i=[];let s;for(let o of this._preferredPositions){let r=this._getOriginPoint(e,o),a=this._getOverlayPoint(r,t,o),l=this._getOverlayFit(a,t,n,o);if(l.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(o,r);this._canFitWithFlexibleDimensions(l,a,n)?i.push({position:o,origin:r,overlayRect:t,boundingBoxRect:this._calculateBoundingBoxRect(r,o)}):(!s||s.overlayFit.visibleArea<l.visibleArea)&&(s={overlayFit:l,overlayPoint:a,originPoint:r,position:o,overlayRect:t})}if(i.length){let e=null,t=-1;for(const n of i){const i=n.boundingBoxRect.width*n.boundingBoxRect.height*(n.position.weight||1);i>t&&(t=i,e=n)}return this._isPushed=!1,void this._applyPosition(e.position,e.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(s.position,s.originPoint);this._applyPosition(s.position,s.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&qD(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove("cdk-overlay-connected-position-bounding-box"),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(!this._isDisposed&&(!this._platform||this._platform.isBrowser)){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect();const e=this._lastPosition||this._preferredPositions[0],t=this._getOriginPoint(this._originRect,e);this._applyPosition(e,t)}}withScrollableContainers(e){return this._scrollables=e,this}withPositions(e){return this._preferredPositions=e,-1===e.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(e){return this._viewportMargin=e,this}withFlexibleDimensions(e=!0){return this._hasFlexibleDimensions=e,this}withGrowAfterOpen(e=!0){return this._growAfterOpen=e,this}withPush(e=!0){return this._canPush=e,this}withLockedPosition(e=!0){return this._positionLocked=e,this}setOrigin(e){return this._origin=e,this}withDefaultOffsetX(e){return this._offsetX=e,this}withDefaultOffsetY(e){return this._offsetY=e,this}withTransformOriginOn(e){return this._transformOriginSelector=e,this}_getOriginPoint(e,t){let n,i;if("center"==t.originX)n=e.left+e.width/2;else{const i=this._isRtl()?e.right:e.left,s=this._isRtl()?e.left:e.right;n="start"==t.originX?i:s}return i="center"==t.originY?e.top+e.height/2:"top"==t.originY?e.top:e.bottom,{x:n,y:i}}_getOverlayPoint(e,t,n){let i,s;return i="center"==n.overlayX?-t.width/2:"start"===n.overlayX?this._isRtl()?-t.width:0:this._isRtl()?0:-t.width,s="center"==n.overlayY?-t.height/2:"top"==n.overlayY?0:-t.height,{x:e.x+i,y:e.y+s}}_getOverlayFit(e,t,n,i){const s=ZD(t);let{x:o,y:r}=e,a=this._getOffset(i,"x"),l=this._getOffset(i,"y");a&&(o+=a),l&&(r+=l);let c=0-r,d=r+s.height-n.height,u=this._subtractOverflows(s.width,0-o,o+s.width-n.width),h=this._subtractOverflows(s.height,c,d),p=u*h;return{visibleArea:p,isCompletelyWithinViewport:s.width*s.height===p,fitsInViewportVertically:h===s.height,fitsInViewportHorizontally:u==s.width}}_canFitWithFlexibleDimensions(e,t,n){if(this._hasFlexibleDimensions){const i=n.bottom-t.y,s=n.right-t.x,o=YD(this._overlayRef.getConfig().minHeight),r=YD(this._overlayRef.getConfig().minWidth),a=e.fitsInViewportHorizontally||null!=r&&r<=s;return(e.fitsInViewportVertically||null!=o&&o<=i)&&a}return!1}_pushOverlayOnScreen(e,t,n){if(this._previousPushAmount&&this._positionLocked)return{x:e.x+this._previousPushAmount.x,y:e.y+this._previousPushAmount.y};const i=ZD(t),s=this._viewportRect,o=Math.max(e.x+i.width-s.width,0),r=Math.max(e.y+i.height-s.height,0),a=Math.max(s.top-n.top-e.y,0),l=Math.max(s.left-n.left-e.x,0);let c=0,d=0;return c=i.width<=s.width?l||-o:e.x<this._viewportMargin?s.left-n.left-e.x:0,d=i.height<=s.height?a||-r:e.y<this._viewportMargin?s.top-n.top-e.y:0,this._previousPushAmount={x:c,y:d},{x:e.x+c,y:e.y+d}}_applyPosition(e,t){if(this._setTransformOrigin(e),this._setOverlayElementStyles(t,e),this._setBoundingBoxStyles(t,e),e.panelClass&&this._addPanelClasses(e.panelClass),this._lastPosition=e,this._positionChanges.observers.length){const t=this._getScrollVisibility(),n=new zD(e,t);this._positionChanges.next(n)}this._isInitialRender=!1}_setTransformOrigin(e){if(!this._transformOriginSelector)return;const t=this._boundingBox.querySelectorAll(this._transformOriginSelector);let n,i=e.overlayY;n="center"===e.overlayX?"center":this._isRtl()?"start"===e.overlayX?"right":"left":"start"===e.overlayX?"left":"right";for(let s=0;s<t.length;s++)t[s].style.transformOrigin=`${n} ${i}`}_calculateBoundingBoxRect(e,t){const n=this._viewportRect,i=this._isRtl();let s,o,r,a,l,c;if("top"===t.overlayY)o=e.y,s=n.height-o+this._viewportMargin;else if("bottom"===t.overlayY)r=n.height-e.y+2*this._viewportMargin,s=n.height-r+this._viewportMargin;else{const t=Math.min(n.bottom-e.y+n.top,e.y),i=this._lastBoundingBoxSize.height;s=2*t,o=e.y-t,s>i&&!this._isInitialRender&&!this._growAfterOpen&&(o=e.y-i/2)}if("end"===t.overlayX&&!i||"start"===t.overlayX&&i)c=n.width-e.x+this._viewportMargin,a=e.x-this._viewportMargin;else if("start"===t.overlayX&&!i||"end"===t.overlayX&&i)l=e.x,a=n.right-e.x;else{const t=Math.min(n.right-e.x+n.left,e.x),i=this._lastBoundingBoxSize.width;a=2*t,l=e.x-t,a>i&&!this._isInitialRender&&!this._growAfterOpen&&(l=e.x-i/2)}return{top:o,left:l,bottom:r,right:c,width:a,height:s}}_setBoundingBoxStyles(e,t){const n=this._calculateBoundingBoxRect(e,t);this._isInitialRender||this._growAfterOpen||(n.height=Math.min(n.height,this._lastBoundingBoxSize.height),n.width=Math.min(n.width,this._lastBoundingBoxSize.width));const i={};if(this._hasExactPosition())i.top=i.left="0",i.bottom=i.right=i.maxHeight=i.maxWidth="",i.width=i.height="100%";else{const e=this._overlayRef.getConfig().maxHeight,s=this._overlayRef.getConfig().maxWidth;i.height=SP(n.height),i.top=SP(n.top),i.bottom=SP(n.bottom),i.width=SP(n.width),i.left=SP(n.left),i.right=SP(n.right),i.alignItems="center"===t.overlayX?"center":"end"===t.overlayX?"flex-end":"flex-start",i.justifyContent="center"===t.overlayY?"center":"bottom"===t.overlayY?"flex-end":"flex-start",e&&(i.maxHeight=SP(e)),s&&(i.maxWidth=SP(s))}this._lastBoundingBoxSize=n,qD(this._boundingBox.style,i)}_resetBoundingBoxStyles(){qD(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){qD(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(e,t){const n={},i=this._hasExactPosition(),s=this._hasFlexibleDimensions,o=this._overlayRef.getConfig();if(i){const i=this._viewportRuler.getViewportScrollPosition();qD(n,this._getExactOverlayY(t,e,i)),qD(n,this._getExactOverlayX(t,e,i))}else n.position="static";let r="",a=this._getOffset(t,"x"),l=this._getOffset(t,"y");a&&(r+=`translateX(${a}px) `),l&&(r+=`translateY(${l}px)`),n.transform=r.trim(),o.maxHeight&&(i?n.maxHeight=SP(o.maxHeight):s&&(n.maxHeight="")),o.maxWidth&&(i?n.maxWidth=SP(o.maxWidth):s&&(n.maxWidth="")),qD(this._pane.style,n)}_getExactOverlayY(e,t,n){let i={top:"",bottom:""},s=this._getOverlayPoint(t,this._overlayRect,e);this._isPushed&&(s=this._pushOverlayOnScreen(s,this._overlayRect,n));let o=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return s.y-=o,"bottom"===e.overlayY?i.bottom=this._document.documentElement.clientHeight-(s.y+this._overlayRect.height)+"px":i.top=SP(s.y),i}_getExactOverlayX(e,t,n){let i,s={left:"",right:""},o=this._getOverlayPoint(t,this._overlayRect,e);return this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,n)),i=this._isRtl()?"end"===e.overlayX?"left":"right":"end"===e.overlayX?"right":"left","right"===i?s.right=this._document.documentElement.clientWidth-(o.x+this._overlayRect.width)+"px":s.left=SP(o.x),s}_getScrollVisibility(){const e=this._getOriginRect(),t=this._pane.getBoundingClientRect(),n=this._scrollables.map(e=>e.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:ID(e,n),isOriginOutsideView:TD(e,n),isOverlayClipped:ID(t,n),isOverlayOutsideView:TD(t,n)}}_subtractOverflows(e,...t){return t.reduce((e,t)=>e-Math.max(t,0),e)}_getNarrowedViewportRect(){const e=this._document.documentElement.clientWidth,t=this._document.documentElement.clientHeight,n=this._viewportRuler.getViewportScrollPosition();return{top:n.top+this._viewportMargin,left:n.left+this._viewportMargin,right:n.left+e-this._viewportMargin,bottom:n.top+t-this._viewportMargin,width:e-2*this._viewportMargin,height:t-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(e,t){return"x"===t?null==e.offsetX?this._offsetX:e.offsetX:null==e.offsetY?this._offsetY:e.offsetY}_validatePositions(){}_addPanelClasses(e){this._pane&&CP(e).forEach(e=>{""!==e&&-1===this._appliedPanelClasses.indexOf(e)&&(this._appliedPanelClasses.push(e),this._pane.classList.add(e))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(e=>{this._pane.classList.remove(e)}),this._appliedPanelClasses=[])}_getOriginRect(){const e=this._origin;if(e instanceof rl)return e.nativeElement.getBoundingClientRect();if(e instanceof Element)return e.getBoundingClientRect();const t=e.width||0,n=e.height||0;return{top:e.y,bottom:e.y+n,left:e.x,right:e.x+t,height:n,width:t}}}function qD(e,t){for(let n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function YD(e){if("number"!=typeof e&&null!=e){const[t,n]=e.split(GD);return n&&"px"!==n?null:parseFloat(t)}return e||null}function ZD(e){return{top:Math.floor(e.top),right:Math.floor(e.right),bottom:Math.floor(e.bottom),left:Math.floor(e.left),width:Math.floor(e.width),height:Math.floor(e.height)}}class QD{constructor(e,t,n,i,s,o,r){this._preferredPositions=[],this._positionStrategy=new $D(n,i,s,o,r).withFlexibleDimensions(!1).withPush(!1).withViewportMargin(0),this.withFallbackPosition(e,t),this.onPositionChange=this._positionStrategy.positionChanges}get positions(){return this._preferredPositions}attach(e){this._overlayRef=e,this._positionStrategy.attach(e),this._direction&&(e.setDirection(this._direction),this._direction=null)}dispose(){this._positionStrategy.dispose()}detach(){this._positionStrategy.detach()}apply(){this._positionStrategy.apply()}recalculateLastPosition(){this._positionStrategy.reapplyLastPosition()}withScrollableContainers(e){this._positionStrategy.withScrollableContainers(e)}withFallbackPosition(e,t,n,i){const s=new BD(e,t,n,i);return this._preferredPositions.push(s),this._positionStrategy.withPositions(this._preferredPositions),this}withDirection(e){return this._overlayRef?this._overlayRef.setDirection(e):this._direction=e,this}withOffsetX(e){return this._positionStrategy.withDefaultOffsetX(e),this}withOffsetY(e){return this._positionStrategy.withDefaultOffsetY(e),this}withLockedPosition(e){return this._positionStrategy.withLockedPosition(e),this}withPositions(e){return this._preferredPositions=e.slice(),this._positionStrategy.withPositions(this._preferredPositions),this}setOrigin(e){return this._positionStrategy.setOrigin(e),this}}class XD{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}attach(e){const t=e.getConfig();this._overlayRef=e,this._width&&!t.width&&e.updateSize({width:this._width}),this._height&&!t.height&&e.updateSize({height:this._height}),e.hostElement.classList.add("cdk-global-overlay-wrapper"),this._isDisposed=!1}top(e=""){return this._bottomOffset="",this._topOffset=e,this._alignItems="flex-start",this}left(e=""){return this._rightOffset="",this._leftOffset=e,this._justifyContent="flex-start",this}bottom(e=""){return this._topOffset="",this._bottomOffset=e,this._alignItems="flex-end",this}right(e=""){return this._leftOffset="",this._rightOffset=e,this._justifyContent="flex-end",this}width(e=""){return this._overlayRef?this._overlayRef.updateSize({width:e}):this._width=e,this}height(e=""){return this._overlayRef?this._overlayRef.updateSize({height:e}):this._height=e,this}centerHorizontally(e=""){return this.left(e),this._justifyContent="center",this}centerVertically(e=""){return this.top(e),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const e=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement.style,n=this._overlayRef.getConfig(),{width:i,height:s,maxWidth:o,maxHeight:r}=n,a=!("100%"!==i&&"100vw"!==i||o&&"100%"!==o&&"100vw"!==o),l=!("100%"!==s&&"100vh"!==s||r&&"100%"!==r&&"100vh"!==r);e.position=this._cssPosition,e.marginLeft=a?"0":this._leftOffset,e.marginTop=l?"0":this._topOffset,e.marginBottom=this._bottomOffset,e.marginRight=this._rightOffset,a?t.justifyContent="flex-start":"center"===this._justifyContent?t.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?t.justifyContent="flex-end":"flex-end"===this._justifyContent&&(t.justifyContent="flex-start"):t.justifyContent=this._justifyContent,t.alignItems=l?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const e=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement,n=t.style;t.classList.remove("cdk-global-overlay-wrapper"),n.justifyContent=n.alignItems=e.marginTop=e.marginBottom=e.marginLeft=e.marginRight=e.position="",this._overlayRef=null,this._isDisposed=!0}}let KD=(()=>{class e{constructor(e,t,n,i){this._viewportRuler=e,this._document=t,this._platform=n,this._overlayContainer=i}global(){return new XD}connectedTo(e,t,n){return new QD(t,n,e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}flexibleConnectedTo(e){return new $D(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return e.\u0275fac=function(t){return new(t||e)(gi(AD),gi(Hd),gi(MP),gi(UD))},e.\u0275prov=pe({factory:function(){return new e(gi(AD),gi(Hd),gi(MP),gi(UD))},token:e,providedIn:"root"}),e})(),JD=0,eO=(()=>{class e{constructor(e,t,n,i,s,o,r,a,l,c,d){this.scrollStrategies=e,this._overlayContainer=t,this._componentFactoryResolver=n,this._positionBuilder=i,this._keyboardDispatcher=s,this._injector=o,this._ngZone=r,this._document=a,this._directionality=l,this._location=c,this._outsideClickDispatcher=d}create(e){const t=this._createHostElement(),n=this._createPaneElement(t),i=this._createPortalOutlet(n),s=new FD(e);return s.direction=s.direction||this._directionality.value,new WD(i,t,n,s,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}position(){return this._positionBuilder}_createPaneElement(e){const t=this._document.createElement("div");return t.id="cdk-overlay-"+JD++,t.classList.add("cdk-overlay-pane"),e.appendChild(t),t}_createHostElement(){const e=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(e),e}_createPortalOutlet(e){return this._appRef||(this._appRef=this._injector.get(Ed)),new tS(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return e.\u0275fac=function(t){return new(t||e)(gi(LD),gi(UD),gi(nl),gi(KD),gi(ND),gi(mr),gi(ad),gi(Hd),gi(pE),gi(nu),gi(HD))},e.\u0275prov=pe({token:e,factory:e.\u0275fac}),e})();const tO=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],nO=new Xn("cdk-connected-overlay-scroll-strategy");let iO=(()=>{class e{constructor(e){this.elementRef=e}}return e.\u0275fac=function(t){return new(t||e)(zr(rl))},e.\u0275dir=Ke({type:e,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),e})(),sO=(()=>{class e{constructor(e,t,n,i,s){this._overlay=e,this._dir=s,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=u.EMPTY,this._attachSubscription=u.EMPTY,this._detachSubscription=u.EMPTY,this._positionSubscription=u.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new yc,this.positionChange=new yc,this.attach=new yc,this.detach=new yc,this.overlayKeydown=new yc,this.overlayOutsideClick=new yc,this._templatePortal=new KC(t,n),this._scrollStrategyFactory=i,this.scrollStrategy=this._scrollStrategyFactory()}get offsetX(){return this._offsetX}set offsetX(e){this._offsetX=e,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(e){this._offsetY=e,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(e){this._hasBackdrop=xP(e)}get lockPosition(){return this._lockPosition}set lockPosition(e){this._lockPosition=xP(e)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(e){this._flexibleDimensions=xP(e)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(e){this._growAfterOpen=xP(e)}get push(){return this._push}set push(e){this._push=xP(e)}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}ngOnChanges(e){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),e.origin&&this.open&&this._position.apply()),e.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){this.positions&&this.positions.length||(this.positions=tO);const e=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=e.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=e.detachments().subscribe(()=>this.detach.emit()),e.keydownEvents().subscribe(e=>{this.overlayKeydown.next(e),27!==e.keyCode||this.disableClose||mP(e)||(e.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(e=>{this.overlayOutsideClick.next(e)})}_buildConfig(){const e=this._position=this.positionStrategy||this._createPositionStrategy(),t=new FD({direction:this._dir,positionStrategy:e,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(t.width=this.width),(this.height||0===this.height)&&(t.height=this.height),(this.minWidth||0===this.minWidth)&&(t.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(t.minHeight=this.minHeight),this.backdropClass&&(t.backdropClass=this.backdropClass),this.panelClass&&(t.panelClass=this.panelClass),t}_updatePositionStrategy(e){const t=this.positions.map(e=>({originX:e.originX,originY:e.originY,overlayX:e.overlayX,overlayY:e.overlayY,offsetX:e.offsetX||this.offsetX,offsetY:e.offsetY||this.offsetY,panelClass:e.panelClass||void 0}));return e.setOrigin(this.origin.elementRef).withPositions(t).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const e=this._overlay.position().flexibleConnectedTo(this.origin.elementRef);return this._updatePositionStrategy(e),e}_attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(e=>{this.backdropClick.emit(e)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(function(e,t=!1){return n=>n.lift(new kD(e,t))}(()=>this.positionChange.observers.length>0)).subscribe(e=>{this.positionChange.emit(e),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}return e.\u0275fac=function(t){return new(t||e)(zr(eO),zr(zl),zr(Gl),zr(nO),zr(pE,8))},e.\u0275dir=Ke({type:e,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"],positions:["cdkConnectedOverlayPositions","positions"],origin:["cdkConnectedOverlayOrigin","origin"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[dt]}),e})();const oO={provide:nO,deps:[eO],useFactory:function(e){return()=>e.scrollStrategies.reposition()}};let rO=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=fe({providers:[eO,oO],imports:[[gE,iS,SD],SD]}),e})();const aO=["underline"],lO=["connectionContainer"],cO=["inputContainer"],dO=["label"];function uO(e,t){1&e&&(Wr(0),Hr(1,"div",14),Ur(2,"div",15),Ur(3,"div",16),Ur(4,"div",17),jr(),Hr(5,"div",18),Ur(6,"div",15),Ur(7,"div",16),Ur(8,"div",17),jr(),Gr())}function hO(e,t){1&e&&(Hr(0,"div",19),oa(1,1),jr())}function pO(e,t){if(1&e&&(Wr(0),oa(1,2),Hr(2,"span"),Da(3),jr(),Gr()),2&e){const e=na(2);no(3),Oa(e._control.placeholder)}}function gO(e,t){1&e&&oa(0,3,["*ngSwitchCase","true"])}function fO(e,t){1&e&&(Hr(0,"span",23),Da(1," *"),jr())}function mO(e,t){if(1&e){const e=qr();Hr(0,"label",20,21),Xr("cdkObserveContent",function(){return Lt(e),na().updateOutlineGap()}),Fr(2,pO,4,1,"ng-container",12),Fr(3,gO,1,0,"ng-content",12),Fr(4,fO,2,0,"span",22),jr()}if(2&e){const e=na();ma("mat-empty",e._control.empty&&!e._shouldAlwaysFloat())("mat-form-field-empty",e._control.empty&&!e._shouldAlwaysFloat())("mat-accent","accent"==e.color)("mat-warn","warn"==e.color),Vr("cdkObserveContentDisabled","outline"!=e.appearance)("id",e._labelId)("ngSwitch",e._hasLabel()),Ir("for",e._control.id)("aria-owns",e._control.id),no(2),Vr("ngSwitchCase",!1),no(1),Vr("ngSwitchCase",!0),no(1),Vr("ngIf",!e.hideRequiredMarker&&e._control.required&&!e._control.disabled)}}function bO(e,t){1&e&&(Hr(0,"div",24),oa(1,4),jr())}function vO(e,t){if(1&e&&(Hr(0,"div",25,26),Ur(2,"span",27),jr()),2&e){const e=na();no(2),ma("mat-accent","accent"==e.color)("mat-warn","warn"==e.color)}}function yO(e,t){1&e&&(Hr(0,"div"),oa(1,5),jr()),2&e&&Vr("@transitionMessages",na()._subscriptAnimationState)}function wO(e,t){if(1&e&&(Hr(0,"div",31),Da(1),jr()),2&e){const e=na(2);Vr("id",e._hintLabelId),no(1),Oa(e.hintLabel)}}function _O(e,t){if(1&e&&(Hr(0,"div",28),Fr(1,wO,2,2,"div",29),oa(2,6),Ur(3,"div",30),oa(4,7),jr()),2&e){const e=na();Vr("@transitionMessages",e._subscriptAnimationState),no(1),Vr("ngIf",e.hintLabel)}}const xO=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],AO=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"],CO=new Xn("MatError"),SO={transitionMessages:Jh("transitionMessages",[ip("enter",np({opacity:1,transform:"translateY(0%)"})),op("void => enter",[np({opacity:0,transform:"translateY(-5px)"}),ep("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let kO=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Ke({type:e}),e})();const PO=new Xn("MatHint");let EO=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Ke({type:e,selectors:[["mat-label"]]}),e})(),DO=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Ke({type:e,selectors:[["mat-placeholder"]]}),e})();const OO=new Xn("MatPrefix"),MO=new Xn("MatSuffix");let TO=0;class IO{constructor(e){this._elementRef=e}}const RO=kE(IO,"primary"),LO=new Xn("MAT_FORM_FIELD_DEFAULT_OPTIONS"),FO=new Xn("MatFormField");let BO=(()=>{class e extends RO{constructor(e,t,n,i,s,o,r,a){super(e),this._elementRef=e,this._changeDetectorRef=t,this._dir=i,this._defaults=s,this._platform=o,this._ngZone=r,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new A,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+TO++,this._labelId="mat-form-field-label-"+TO++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==a,this.appearance=s&&s.appearance?s.appearance:"legacy",this._hideRequiredMarker=!(!s||null==s.hideRequiredMarker)&&s.hideRequiredMarker}get appearance(){return this._appearance}set appearance(e){const t=this._appearance;this._appearance=e||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&t!==e&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(e){this._hideRequiredMarker=xP(e)}_shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}_canLabelFloat(){return"never"!==this.floatLabel}get hintLabel(){return this._hintLabel}set hintLabel(e){this._hintLabel=e,this._processHints()}get floatLabel(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel}set floatLabel(e){e!==this._floatLabel&&(this._floatLabel=e||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}get _control(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}set _control(e){this._explicitFormFieldControl=e}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._connectionContainerRef||this._elementRef}ngAfterContentInit(){this._validateControlChild();const e=this._control;e.controlType&&this._elementRef.nativeElement.classList.add("mat-form-field-type-"+e.controlType),e.stateChanges.pipe(uv(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),e.ngControl&&e.ngControl.valueChanges&&e.ngControl.valueChanges.pipe(vD(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(vD(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),G(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(uv(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(uv(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(vD(this._destroyed)).subscribe(()=>{"function"==typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this.updateOutlineGap())}):this.updateOutlineGap()})}ngAfterContentChecked(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}ngAfterViewInit(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_shouldForward(e){const t=this._control?this._control.ngControl:null;return t&&t[e]}_hasPlaceholder(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}_hasLabel(){return!(!this._labelChildNonStatic&&!this._labelChildStatic)}_shouldLabelFloat(){return this._canLabelFloat()&&(this._control&&this._control.shouldLabelFloat||this._shouldAlwaysFloat())}_hideControlPlaceholder(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}_hasFloatingLabel(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_animateAndLockLabel(){this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,V_(this._label.nativeElement,"transitionend").pipe(lv(1)).subscribe(()=>{this._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}_validatePlaceholders(){}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){}_getDefaultFloatLabelState(){return this._defaults&&this._defaults.floatLabel||"auto"}_syncDescribedByIds(){if(this._control){let e=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&e.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const t=this._hintChildren?this._hintChildren.find(e=>"start"===e.align):null,n=this._hintChildren?this._hintChildren.find(e=>"end"===e.align):null;t?e.push(t.id):this._hintLabel&&e.push(this._hintLabelId),n&&e.push(n.id)}else this._errorChildren&&e.push(...this._errorChildren.map(e=>e.id));this._control.setDescribedByIds(e)}}_validateControlChild(){}updateOutlineGap(){const e=this._label?this._label.nativeElement:null;if("outline"!==this.appearance||!e||!e.children.length||!e.textContent.trim())return;if(!this._platform.isBrowser)return;if(!this._isAttachedToDOM())return void(this._outlineGapCalculationNeededImmediately=!0);let t=0,n=0;const i=this._connectionContainerRef.nativeElement,s=i.querySelectorAll(".mat-form-field-outline-start"),o=i.querySelectorAll(".mat-form-field-outline-gap");if(this._label&&this._label.nativeElement.children.length){const s=i.getBoundingClientRect();if(0===s.width&&0===s.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);const o=this._getStartEnd(s),r=e.children,a=this._getStartEnd(r[0].getBoundingClientRect());let l=0;for(let e=0;e<r.length;e++)l+=r[e].offsetWidth;t=Math.abs(a-o)-5,n=l>0?.75*l+10:0}for(let r=0;r<s.length;r++)s[r].style.width=t+"px";for(let r=0;r<o.length;r++)o[r].style.width=n+"px";this._outlineGapCalculationNeededOnStable=this._outlineGapCalculationNeededImmediately=!1}_getStartEnd(e){return this._dir&&"rtl"===this._dir.value?e.right:e.left}_isAttachedToDOM(){const e=this._elementRef.nativeElement;if(e.getRootNode){const t=e.getRootNode();return t&&t!==e}return document.documentElement.contains(e)}}return e.\u0275fac=function(t){return new(t||e)(zr(rl),zr(Tl),zr(rl),zr(pE,8),zr(LO,8),zr(MP),zr(ad),zr(_f,8))},e.\u0275cmp=$e({type:e,selectors:[["mat-form-field"]],contentQueries:function(e,t,n){if(1&e&&(Ic(n,kO,1),Ic(n,kO,3),Ic(n,EO,1),Ic(n,EO,3),Ic(n,DO,1),Ic(n,CO,1),Ic(n,PO,1),Ic(n,OO,1),Ic(n,MO,1)),2&e){let e;Mc(e=Rc())&&(t._controlNonStatic=e.first),Mc(e=Rc())&&(t._controlStatic=e.first),Mc(e=Rc())&&(t._labelChildNonStatic=e.first),Mc(e=Rc())&&(t._labelChildStatic=e.first),Mc(e=Rc())&&(t._placeholderChild=e.first),Mc(e=Rc())&&(t._errorChildren=e),Mc(e=Rc())&&(t._hintChildren=e),Mc(e=Rc())&&(t._prefixChildren=e),Mc(e=Rc())&&(t._suffixChildren=e)}},viewQuery:function(e,t){if(1&e&&(Tc(aO,1),Tc(lO,3),Tc(cO,1),Tc(dO,1)),2&e){let e;Mc(e=Rc())&&(t.underlineRef=e.first),Mc(e=Rc())&&(t._connectionContainerRef=e.first),Mc(e=Rc())&&(t._inputContainerRef=e.first),Mc(e=Rc())&&(t._label=e.first)}},hostAttrs:[1,"mat-form-field"],hostVars:44,hostBindings:function(e,t){2&e&&ma("mat-form-field-appearance-standard","standard"==t.appearance)("mat-form-field-appearance-fill","fill"==t.appearance)("mat-form-field-appearance-outline","outline"==t.appearance)("mat-form-field-appearance-legacy","legacy"==t.appearance)("mat-form-field-invalid",t._control.errorState)("mat-form-field-can-float",t._canLabelFloat())("mat-form-field-should-float",t._shouldLabelFloat())("mat-form-field-has-label",t._hasFloatingLabel())("mat-form-field-hide-placeholder",t._hideControlPlaceholder())("mat-form-field-disabled",t._control.disabled)("mat-form-field-autofilled",t._control.autofilled)("mat-focused",t._control.focused)("mat-accent","accent"==t.color)("mat-warn","warn"==t.color)("ng-untouched",t._shouldForward("untouched"))("ng-touched",t._shouldForward("touched"))("ng-pristine",t._shouldForward("pristine"))("ng-dirty",t._shouldForward("dirty"))("ng-valid",t._shouldForward("valid"))("ng-invalid",t._shouldForward("invalid"))("ng-pending",t._shouldForward("pending"))("_mat-animation-noopable",!t._animationsEnabled)},inputs:{color:"color",floatLabel:"floatLabel",appearance:"appearance",hideRequiredMarker:"hideRequiredMarker",hintLabel:"hintLabel"},exportAs:["matFormField"],features:[Ja([{provide:FO,useExisting:e}]),vr],ngContentSelectors:AO,decls:15,vars:8,consts:[[1,"mat-form-field-wrapper"],[1,"mat-form-field-flex",3,"click"],["connectionContainer",""],[4,"ngIf"],["class","mat-form-field-prefix",4,"ngIf"],[1,"mat-form-field-infix"],["inputContainer",""],[1,"mat-form-field-label-wrapper"],["class","mat-form-field-label",3,"cdkObserveContentDisabled","id","mat-empty","mat-form-field-empty","mat-accent","mat-warn","ngSwitch","cdkObserveContent",4,"ngIf"],["class","mat-form-field-suffix",4,"ngIf"],["class","mat-form-field-underline",4,"ngIf"],[1,"mat-form-field-subscript-wrapper",3,"ngSwitch"],[4,"ngSwitchCase"],["class","mat-form-field-hint-wrapper",4,"ngSwitchCase"],[1,"mat-form-field-outline"],[1,"mat-form-field-outline-start"],[1,"mat-form-field-outline-gap"],[1,"mat-form-field-outline-end"],[1,"mat-form-field-outline","mat-form-field-outline-thick"],[1,"mat-form-field-prefix"],[1,"mat-form-field-label",3,"cdkObserveContentDisabled","id","ngSwitch","cdkObserveContent"],["label",""],["class","mat-placeholder-required mat-form-field-required-marker","aria-hidden","true",4,"ngIf"],["aria-hidden","true",1,"mat-placeholder-required","mat-form-field-required-marker"],[1,"mat-form-field-suffix"],[1,"mat-form-field-underline"],["underline",""],[1,"mat-form-field-ripple"],[1,"mat-form-field-hint-wrapper"],["class","mat-hint",3,"id",4,"ngIf"],[1,"mat-form-field-hint-spacer"],[1,"mat-hint",3,"id"]],template:function(e,t){1&e&&(sa(xO),Hr(0,"div",0),Hr(1,"div",1,2),Xr("click",function(e){return t._control.onContainerClick&&t._control.onContainerClick(e)}),Fr(3,uO,9,0,"ng-container",3),Fr(4,hO,2,0,"div",4),Hr(5,"div",5,6),oa(7),Hr(8,"span",7),Fr(9,mO,5,16,"label",8),jr(),jr(),Fr(10,bO,2,0,"div",9),jr(),Fr(11,vO,3,4,"div",10),Hr(12,"div",11),Fr(13,yO,2,1,"div",12),Fr(14,_O,5,2,"div",13),jr(),jr()),2&e&&(no(3),Vr("ngIf","outline"==t.appearance),no(1),Vr("ngIf",t._prefixChildren.length),no(5),Vr("ngIf",t._hasFloatingLabel()),no(1),Vr("ngIf",t._suffixChildren.length),no(1),Vr("ngIf","outline"!=t.appearance),no(1),Vr("ngSwitch",t._getDisplayedMessages()),no(1),Vr("ngSwitchCase","error"),no(1),Vr("ngSwitchCase","hint"))},directives:[Wu,Yu,Zu,zP],styles:[".mat-form-field{display:inline-block;position:relative;text-align:left}[dir=rtl] .mat-form-field{text-align:right}.mat-form-field-wrapper{position:relative}.mat-form-field-flex{display:inline-flex;align-items:baseline;box-sizing:border-box;width:100%}.mat-form-field-prefix,.mat-form-field-suffix{white-space:nowrap;flex:none;position:relative}.mat-form-field-infix{display:block;position:relative;flex:auto;min-width:0;width:180px}.cdk-high-contrast-active .mat-form-field-infix{border-image:linear-gradient(transparent, transparent)}.mat-form-field-label-wrapper{position:absolute;left:0;box-sizing:content-box;width:100%;height:100%;overflow:hidden;pointer-events:none}[dir=rtl] .mat-form-field-label-wrapper{left:auto;right:0}.mat-form-field-label{position:absolute;left:0;font:inherit;pointer-events:none;width:100%;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;transform-origin:0 0;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),color 400ms cubic-bezier(0.25, 0.8, 0.25, 1),width 400ms cubic-bezier(0.25, 0.8, 0.25, 1);display:none}[dir=rtl] .mat-form-field-label{transform-origin:100% 0;left:auto;right:0}.mat-form-field-empty.mat-form-field-label,.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-label{display:block}.mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-label-wrapper .mat-form-field-label{display:none}.mat-form-field-can-float .mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-label-wrapper .mat-form-field-label{display:block;transition:none}.mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label,.mat-input-server[placeholder]:not(:placeholder-shown)+.mat-form-field-label-wrapper .mat-form-field-label{display:none}.mat-form-field-can-float .mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label,.mat-form-field-can-float .mat-input-server[placeholder]:not(:placeholder-shown)+.mat-form-field-label-wrapper .mat-form-field-label{display:block}.mat-form-field-label:not(.mat-form-field-empty){transition:none}.mat-form-field-underline{position:absolute;width:100%;pointer-events:none;transform:scale3d(1, 1.0001, 1)}.mat-form-field-ripple{position:absolute;left:0;width:100%;transform-origin:50%;transform:scaleX(0.5);opacity:0;transition:background-color 300ms cubic-bezier(0.55, 0, 0.55, 0.2)}.mat-form-field.mat-focused .mat-form-field-ripple,.mat-form-field.mat-form-field-invalid .mat-form-field-ripple{opacity:1;transform:none;transition:transform 300ms cubic-bezier(0.25, 0.8, 0.25, 1),opacity 100ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 300ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-subscript-wrapper{position:absolute;box-sizing:border-box;width:100%;overflow:hidden}.mat-form-field-subscript-wrapper .mat-icon,.mat-form-field-label-wrapper .mat-icon{width:1em;height:1em;font-size:inherit;vertical-align:baseline}.mat-form-field-hint-wrapper{display:flex}.mat-form-field-hint-spacer{flex:1 0 1em}.mat-error{display:block}.mat-form-field-control-wrapper{position:relative}.mat-form-field-hint-end{order:1}.mat-form-field._mat-animation-noopable .mat-form-field-label,.mat-form-field._mat-animation-noopable .mat-form-field-ripple{transition:none}\n",'.mat-form-field-appearance-fill .mat-form-field-flex{border-radius:4px 4px 0 0;padding:.75em .75em 0 .75em}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-form-field-flex{outline:solid 1px}.mat-form-field-appearance-fill .mat-form-field-underline::before{content:"";display:block;position:absolute;bottom:0;height:1px;width:100%}.mat-form-field-appearance-fill .mat-form-field-ripple{bottom:0;height:2px}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-form-field-ripple{height:0;border-top:solid 2px}.mat-form-field-appearance-fill:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{opacity:1;transform:none;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-fill._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{transition:none}.mat-form-field-appearance-fill .mat-form-field-subscript-wrapper{padding:0 1em}\n','.mat-input-element{font:inherit;background:transparent;color:currentColor;border:none;outline:none;padding:0;margin:0;width:100%;max-width:100%;vertical-align:bottom;text-align:inherit;box-sizing:content-box}.mat-input-element:-moz-ui-invalid{box-shadow:none}.mat-input-element::-ms-clear,.mat-input-element::-ms-reveal{display:none}.mat-input-element,.mat-input-element::-webkit-search-cancel-button,.mat-input-element::-webkit-search-decoration,.mat-input-element::-webkit-search-results-button,.mat-input-element::-webkit-search-results-decoration{-webkit-appearance:none}.mat-input-element::-webkit-contacts-auto-fill-button,.mat-input-element::-webkit-caps-lock-indicator,.mat-input-element::-webkit-credentials-auto-fill-button{visibility:hidden}.mat-input-element[type=date],.mat-input-element[type=datetime],.mat-input-element[type=datetime-local],.mat-input-element[type=month],.mat-input-element[type=week],.mat-input-element[type=time]{line-height:1}.mat-input-element[type=date]::after,.mat-input-element[type=datetime]::after,.mat-input-element[type=datetime-local]::after,.mat-input-element[type=month]::after,.mat-input-element[type=week]::after,.mat-input-element[type=time]::after{content:" ";white-space:pre;width:1px}.mat-input-element::-webkit-inner-spin-button,.mat-input-element::-webkit-calendar-picker-indicator,.mat-input-element::-webkit-clear-button{font-size:.75em}.mat-input-element::placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::placeholder:-ms-input-placeholder{-ms-user-select:text}.mat-input-element::-moz-placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::-moz-placeholder:-ms-input-placeholder{-ms-user-select:text}.mat-input-element::-webkit-input-placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::-webkit-input-placeholder:-ms-input-placeholder{-ms-user-select:text}.mat-input-element:-ms-input-placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element:-ms-input-placeholder:-ms-input-placeholder{-ms-user-select:text}.mat-form-field-hide-placeholder .mat-input-element::placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.mat-form-field-hide-placeholder .mat-input-element::-moz-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.mat-form-field-hide-placeholder .mat-input-element::-webkit-input-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.mat-form-field-hide-placeholder .mat-input-element:-ms-input-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}textarea.mat-input-element{resize:vertical;overflow:auto}textarea.mat-input-element.cdk-textarea-autosize{resize:none}textarea.mat-input-element{padding:2px 0;margin:-2px 0}select.mat-input-element{-moz-appearance:none;-webkit-appearance:none;position:relative;background-color:transparent;display:inline-flex;box-sizing:border-box;padding-top:1em;top:-1em;margin-bottom:-1em}select.mat-input-element::-ms-expand{display:none}select.mat-input-element::-moz-focus-inner{border:0}select.mat-input-element:not(:disabled){cursor:pointer}select.mat-input-element::-ms-value{color:inherit;background:none}.mat-focused .cdk-high-contrast-active select.mat-input-element::-ms-value{color:inherit}.mat-form-field-type-mat-native-select .mat-form-field-infix::after{content:"";width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;position:absolute;top:50%;right:0;margin-top:-2.5px;pointer-events:none}[dir=rtl] .mat-form-field-type-mat-native-select .mat-form-field-infix::after{right:auto;left:0}.mat-form-field-type-mat-native-select .mat-input-element{padding-right:15px}[dir=rtl] .mat-form-field-type-mat-native-select .mat-input-element{padding-right:0;padding-left:15px}.mat-form-field-type-mat-native-select .mat-form-field-label-wrapper{max-width:calc(100% - 10px)}.mat-form-field-type-mat-native-select.mat-form-field-appearance-outline .mat-form-field-infix::after{margin-top:-5px}.mat-form-field-type-mat-native-select.mat-form-field-appearance-fill .mat-form-field-infix::after{margin-top:-10px}\n',".mat-form-field-appearance-legacy .mat-form-field-label{transform:perspective(100px);-ms-transform:none}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon{width:1em}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon-button,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon-button{font:inherit;vertical-align:baseline}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon-button .mat-icon{font-size:inherit}.mat-form-field-appearance-legacy .mat-form-field-underline{height:1px}.cdk-high-contrast-active .mat-form-field-appearance-legacy .mat-form-field-underline{height:0;border-top:solid 1px}.mat-form-field-appearance-legacy .mat-form-field-ripple{top:0;height:2px;overflow:hidden}.cdk-high-contrast-active .mat-form-field-appearance-legacy .mat-form-field-ripple{height:0;border-top:solid 2px}.mat-form-field-appearance-legacy.mat-form-field-disabled .mat-form-field-underline{background-position:0;background-color:transparent}.cdk-high-contrast-active .mat-form-field-appearance-legacy.mat-form-field-disabled .mat-form-field-underline{border-top-style:dotted;border-top-width:2px}.mat-form-field-appearance-legacy.mat-form-field-invalid:not(.mat-focused) .mat-form-field-ripple{height:1px}\n",".mat-form-field-appearance-outline .mat-form-field-wrapper{margin:.25em 0}.mat-form-field-appearance-outline .mat-form-field-flex{padding:0 .75em 0 .75em;margin-top:-0.25em;position:relative}.mat-form-field-appearance-outline .mat-form-field-prefix,.mat-form-field-appearance-outline .mat-form-field-suffix{top:.25em}.mat-form-field-appearance-outline .mat-form-field-outline{display:flex;position:absolute;top:.25em;left:0;right:0;bottom:0;pointer-events:none}.mat-form-field-appearance-outline .mat-form-field-outline-start,.mat-form-field-appearance-outline .mat-form-field-outline-end{border:1px solid currentColor;min-width:5px}.mat-form-field-appearance-outline .mat-form-field-outline-start{border-radius:5px 0 0 5px;border-right-style:none}[dir=rtl] .mat-form-field-appearance-outline .mat-form-field-outline-start{border-right-style:solid;border-left-style:none;border-radius:0 5px 5px 0}.mat-form-field-appearance-outline .mat-form-field-outline-end{border-radius:0 5px 5px 0;border-left-style:none;flex-grow:1}[dir=rtl] .mat-form-field-appearance-outline .mat-form-field-outline-end{border-left-style:solid;border-right-style:none;border-radius:5px 0 0 5px}.mat-form-field-appearance-outline .mat-form-field-outline-gap{border-radius:.000001px;border:1px solid currentColor;border-left-style:none;border-right-style:none}.mat-form-field-appearance-outline.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-outline-gap{border-top-color:transparent}.mat-form-field-appearance-outline .mat-form-field-outline-thick{opacity:0}.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-start,.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-end,.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-gap{border-width:2px}.mat-form-field-appearance-outline.mat-focused .mat-form-field-outline,.mat-form-field-appearance-outline.mat-form-field-invalid .mat-form-field-outline{opacity:0;transition:opacity 100ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-outline.mat-focused .mat-form-field-outline-thick,.mat-form-field-appearance-outline.mat-form-field-invalid .mat-form-field-outline-thick{opacity:1}.mat-form-field-appearance-outline:not(.mat-form-field-disabled) .mat-form-field-flex:hover .mat-form-field-outline{opacity:0;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-outline:not(.mat-form-field-disabled) .mat-form-field-flex:hover .mat-form-field-outline-thick{opacity:1}.mat-form-field-appearance-outline .mat-form-field-subscript-wrapper{padding:0 1em}.mat-form-field-appearance-outline._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-outline,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-start,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-end,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-gap{transition:none}\n",".mat-form-field-appearance-standard .mat-form-field-flex{padding-top:.75em}.mat-form-field-appearance-standard .mat-form-field-underline{height:1px}.cdk-high-contrast-active .mat-form-field-appearance-standard .mat-form-field-underline{height:0;border-top:solid 1px}.mat-form-field-appearance-standard .mat-form-field-ripple{bottom:0;height:2px}.cdk-high-contrast-active .mat-form-field-appearance-standard .mat-form-field-ripple{height:0;border-top:solid 2px}.mat-form-field-appearance-standard.mat-form-field-disabled .mat-form-field-underline{background-position:0;background-color:transparent}.cdk-high-contrast-active .mat-form-field-appearance-standard.mat-form-field-disabled .mat-form-field-underline{border-top-style:dotted;border-top-width:2px}.mat-form-field-appearance-standard:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{opacity:1;transform:none;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-standard._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{transition:none}\n"],encapsulation:2,data:{animation:[SO.transitionMessages]},changeDetection:0}),e})(),zO=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=fe({imports:[[uh,CE,VP],CE]}),e})();function VO(e,t=bP){var n;const i=(n=e)instanceof Date&&!isNaN(+n)?+e-t.now():Math.abs(e);return e=>e.lift(new NO(i,t))}class NO{constructor(e,t){this.delay=e,this.scheduler=t}call(e,t){return t.subscribe(new HO(e,this.delay,this.scheduler))}}class HO extends g{constructor(e,t,n){super(e),this.delay=t,this.scheduler=n,this.queue=[],this.active=!1,this.errored=!1}static dispatch(e){const t=e.source,n=t.queue,i=e.scheduler,s=e.destination;for(;n.length>0&&n[0].time-i.now()<=0;)n.shift().notification.observe(s);if(n.length>0){const t=Math.max(0,n[0].time-i.now());this.schedule(e,t)}else this.unsubscribe(),t.active=!1}_schedule(e){this.active=!0,this.destination.add(e.schedule(HO.dispatch,this.delay,{source:this,destination:this.destination,scheduler:e}))}scheduleNotification(e){if(!0===this.errored)return;const t=this.scheduler,n=new jO(t.now()+this.delay,e);this.queue.push(n),!1===this.active&&this._schedule(t)}_next(e){this.scheduleNotification(yC.createNext(e))}_error(e){this.errored=!0,this.queue=[],this.destination.error(e),this.unsubscribe()}_complete(){this.scheduleNotification(yC.createComplete()),this.unsubscribe()}}class jO{constructor(e,t){this.time=e,this.notification=t}}const UO={provide:new Xn("mat-autocomplete-scroll-strategy"),deps:[eO],useFactory:function(e){return()=>e.scrollStrategies.reposition()}};let WO=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=fe({providers:[UO],imports:[[rO,tD,CE,uh],CD,tD,CE]}),e})(),GO=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=fe({imports:[[uE,CE],CE]}),e})();class $O{constructor(e){this.total=e}call(e,t){return t.subscribe(new qO(e,this.total))}}class qO extends g{constructor(e,t){super(e),this.total=t,this.count=0}_next(e){++this.count>this.total&&this.destination.next(e)}}const YO=new Set;let ZO,QO=(()=>{class e{constructor(e){this._platform=e,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):XO}matchMedia(e){return this._platform.WEBKIT&&function(e){if(!YO.has(e))try{ZO||(ZO=document.createElement("style"),ZO.setAttribute("type","text/css"),document.head.appendChild(ZO)),ZO.sheet&&(ZO.sheet.insertRule(`@media ${e} {.fx-query-test{ }}`,0),YO.add(e))}catch(t){console.error(t)}}(e),this._matchMedia(e)}}return e.\u0275fac=function(t){return new(t||e)(gi(MP))},e.\u0275prov=pe({factory:function(){return new e(gi(MP))},token:e,providedIn:"root"}),e})();function XO(e){return{matches:"all"===e||""===e,media:e,addListener:()=>{},removeListener:()=>{}}}let KO=(()=>{class e{constructor(e,t){this._mediaMatcher=e,this._zone=t,this._queries=new Map,this._destroySubject=new A}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return JO(CP(e)).some(e=>this._registerQuery(e).mql.matches)}observe(e){let t=Qb(JO(CP(e)).map(e=>this._registerQuery(e).observable));return t=ev(t.pipe(lv(1)),t.pipe(e=>e.lift(new $O(1)),vP(0))),t.pipe(k(e=>{const t={matches:!1,breakpoints:{}};return e.forEach(({matches:e,query:n})=>{t.matches=t.matches||e,t.breakpoints[n]=e}),t}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);const t=this._mediaMatcher.matchMedia(e),n={observable:new v(e=>{const n=t=>this._zone.run(()=>e.next(t));return t.addListener(n),()=>{t.removeListener(n)}}).pipe(uv(t),k(({matches:t})=>({query:e,matches:t})),vD(this._destroySubject)),mql:t};return this._queries.set(e,n),n}}return e.\u0275fac=function(t){return new(t||e)(gi(QO),gi(ad))},e.\u0275prov=pe({factory:function(){return new e(gi(QO),gi(ad))},token:e,providedIn:"root"}),e})();function JO(e){return e.map(e=>e.split(",")).reduce((e,t)=>e.concat(t)).map(e=>e.trim())}function eM(e,t){}const tM=new Xn("MatBottomSheetData");class nM{constructor(){this.data=null,this.hasBackdrop=!0,this.disableClose=!1,this.ariaLabel=null,this.closeOnNavigation=!0,this.autoFocus=!1,this.restoreFocus=!0}}const iM={bottomSheetState:Jh("state",[ip("void, hidden",np({transform:"translateY(100%)"})),ip("visible",np({transform:"translateY(0%)"})),op("visible => void, visible => hidden",ep(`${wE.COMPLEX} ${yE.ACCELERATION_CURVE}`)),op("void => visible",ep(`${wE.EXITING} ${yE.DECELERATION_CURVE}`))])};let sM=(()=>{class e extends eS{constructor(e,t,n,i,s,o){super(),this._elementRef=e,this._changeDetectorRef=t,this._focusTrapFactory=n,this.bottomSheetConfig=o,this._animationState="void",this._animationStateChanged=new yc,this._elementFocusedBeforeOpened=null,this.attachDomPortal=e=>(this._validatePortalAttached(),this._setPanelClass(),this._savePreviouslyFocusedElement(),this._portalOutlet.attachDomPortal(e)),this._document=s,this._breakpointSubscription=i.observe(["(min-width: 960px) and (max-width: 1279.98px)","(min-width: 1280px) and (max-width: 1919.98px)","(min-width: 1920px)"]).subscribe(()=>{this._toggleClass("mat-bottom-sheet-container-medium",i.isMatched("(min-width: 960px) and (max-width: 1279.98px)")),this._toggleClass("mat-bottom-sheet-container-large",i.isMatched("(min-width: 1280px) and (max-width: 1919.98px)")),this._toggleClass("mat-bottom-sheet-container-xlarge",i.isMatched("(min-width: 1920px)"))})}attachComponentPortal(e){return this._validatePortalAttached(),this._setPanelClass(),this._savePreviouslyFocusedElement(),this._portalOutlet.attachComponentPortal(e)}attachTemplatePortal(e){return this._validatePortalAttached(),this._setPanelClass(),this._savePreviouslyFocusedElement(),this._portalOutlet.attachTemplatePortal(e)}enter(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.detectChanges())}exit(){this._destroyed||(this._animationState="hidden",this._changeDetectorRef.markForCheck())}ngOnDestroy(){this._breakpointSubscription.unsubscribe(),this._destroyed=!0}_onAnimationDone(e){"hidden"===e.toState?this._restoreFocus():"visible"===e.toState&&this._trapFocus(),this._animationStateChanged.emit(e)}_onAnimationStart(e){this._animationStateChanged.emit(e)}_toggleClass(e,t){const n=this._elementRef.nativeElement.classList;t?n.add(e):n.remove(e)}_validatePortalAttached(){this._portalOutlet.hasAttached()}_setPanelClass(){const e=this._elementRef.nativeElement,t=this.bottomSheetConfig.panelClass;Array.isArray(t)?t.forEach(t=>e.classList.add(t)):t&&e.classList.add(t)}_trapFocus(){const e=this._elementRef.nativeElement;if(this._focusTrap||(this._focusTrap=this._focusTrapFactory.create(e)),this.bottomSheetConfig.autoFocus)this._focusTrap.focusInitialElementWhenReady();else{const t=this._getActiveElement();t===e||e.contains(t)||e.focus()}}_restoreFocus(){const e=this._elementFocusedBeforeOpened;if(this.bottomSheetConfig.restoreFocus&&e&&"function"==typeof e.focus){const t=this._getActiveElement(),n=this._elementRef.nativeElement;t&&t!==this._document.body&&t!==n&&!n.contains(t)||e.focus()}this._focusTrap&&this._focusTrap.destroy()}_savePreviouslyFocusedElement(){this._elementFocusedBeforeOpened=this._getActiveElement(),this._elementRef.nativeElement.focus&&Promise.resolve().then(()=>this._elementRef.nativeElement.focus())}_getActiveElement(){var e;const t=this._document.activeElement;return(null===(e=null==t?void 0:t.shadowRoot)||void 0===e?void 0:e.activeElement)||t}}return e.\u0275fac=function(t){return new(t||e)(zr(rl),zr(Tl),zr(eE),zr(KO),zr(Hd,8),zr(nM))},e.\u0275cmp=$e({type:e,selectors:[["mat-bottom-sheet-container"]],viewQuery:function(e,t){if(1&e&&Tc(nS,3),2&e){let e;Mc(e=Rc())&&(t._portalOutlet=e.first)}},hostAttrs:["tabindex","-1","role","dialog","aria-modal","true",1,"mat-bottom-sheet-container"],hostVars:2,hostBindings:function(e,t){1&e&&Kr("@state.start",function(e){return t._onAnimationStart(e)})("@state.done",function(e){return t._onAnimationDone(e)}),2&e&&(Ir("aria-label",null==t.bottomSheetConfig?null:t.bottomSheetConfig.ariaLabel),Ba("@state",t._animationState))},features:[vr],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,t){1&e&&Fr(0,eM,0,0,"ng-template",0)},directives:[nS],styles:[".mat-bottom-sheet-container{padding:8px 16px;min-width:100vw;box-sizing:border-box;display:block;outline:0;max-height:80vh;overflow:auto}.cdk-high-contrast-active .mat-bottom-sheet-container{outline:1px solid}.mat-bottom-sheet-container-xlarge,.mat-bottom-sheet-container-large,.mat-bottom-sheet-container-medium{border-top-left-radius:4px;border-top-right-radius:4px}.mat-bottom-sheet-container-medium{min-width:384px;max-width:calc(100vw - 128px)}.mat-bottom-sheet-container-large{min-width:512px;max-width:calc(100vw - 256px)}.mat-bottom-sheet-container-xlarge{min-width:576px;max-width:calc(100vw - 384px)}\n"],encapsulation:2,data:{animation:[iM.bottomSheetState]}}),e})(),oM=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=fe({imports:[[rO,CE,iS],CE]}),e})();class rM{constructor(e,t){this._overlayRef=t,this._afterDismissed=new A,this._afterOpened=new A,this.containerInstance=e,this.disableClose=e.bottomSheetConfig.disableClose,e._animationStateChanged.pipe(db(e=>"done"===e.phaseName&&"visible"===e.toState),lv(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),e._animationStateChanged.pipe(db(e=>"done"===e.phaseName&&"hidden"===e.toState),lv(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),t.dispose()}),t.detachments().pipe(lv(1)).subscribe(()=>{this._afterDismissed.next(this._result),this._afterDismissed.complete()}),G(t.backdropClick(),t.keydownEvents().pipe(db(e=>27===e.keyCode))).subscribe(e=>{this.disableClose||"keydown"===e.type&&mP(e)||(e.preventDefault(),this.dismiss())})}dismiss(e){this._afterDismissed.closed||(this.containerInstance._animationStateChanged.pipe(db(e=>"start"===e.phaseName),lv(1)).subscribe(e=>{this._closeFallbackTimeout=setTimeout(()=>{this._overlayRef.dispose()},e.totalTime+100),this._overlayRef.detachBackdrop()}),this._result=e,this.containerInstance.exit())}afterDismissed(){return this._afterDismissed}afterOpened(){return this._afterOpened}backdropClick(){return this._overlayRef.backdropClick()}keydownEvents(){return this._overlayRef.keydownEvents()}}const aM=new Xn("mat-bottom-sheet-default-options");let lM=(()=>{class e{constructor(e,t,n,i){this._overlay=e,this._injector=t,this._parentBottomSheet=n,this._defaultOptions=i,this._bottomSheetRefAtThisLevel=null}get _openedBottomSheetRef(){const e=this._parentBottomSheet;return e?e._openedBottomSheetRef:this._bottomSheetRefAtThisLevel}set _openedBottomSheetRef(e){this._parentBottomSheet?this._parentBottomSheet._openedBottomSheetRef=e:this._bottomSheetRefAtThisLevel=e}open(e,t){const n=function(e,t){return Object.assign(Object.assign({},e),t)}(this._defaultOptions||new nM,t),i=this._createOverlay(n),s=this._attachContainer(i,n),o=new rM(s,i);if(e instanceof zl)s.attachTemplatePortal(new KC(e,null,{$implicit:n.data,bottomSheetRef:o}));else{const t=new XC(e,void 0,this._createInjector(n,o)),i=s.attachComponentPortal(t);o.instance=i.instance}return o.afterDismissed().subscribe(()=>{this._openedBottomSheetRef==o&&(this._openedBottomSheetRef=null)}),this._openedBottomSheetRef?(this._openedBottomSheetRef.afterDismissed().subscribe(()=>o.containerInstance.enter()),this._openedBottomSheetRef.dismiss()):o.containerInstance.enter(),this._openedBottomSheetRef=o,o}dismiss(e){this._openedBottomSheetRef&&this._openedBottomSheetRef.dismiss(e)}ngOnDestroy(){this._bottomSheetRefAtThisLevel&&this._bottomSheetRefAtThisLevel.dismiss()}_attachContainer(e,t){const n=mr.create({parent:t&&t.viewContainerRef&&t.viewContainerRef.injector||this._injector,providers:[{provide:nM,useValue:t}]}),i=new XC(sM,t.viewContainerRef,n);return e.attach(i).instance}_createOverlay(e){const t=new FD({direction:e.direction,hasBackdrop:e.hasBackdrop,disposeOnNavigation:e.closeOnNavigation,maxWidth:"100%",scrollStrategy:e.scrollStrategy||this._overlay.scrollStrategies.block(),positionStrategy:this._overlay.position().global().centerHorizontally().bottom("0")});return e.backdropClass&&(t.backdropClass=e.backdropClass),this._overlay.create(t)}_createInjector(e,t){const n=e&&e.viewContainerRef&&e.viewContainerRef.injector,i=[{provide:rM,useValue:t},{provide:tM,useValue:e.data}];return!e.direction||n&&n.get(pE,null)||i.push({provide:pE,useValue:{value:e.direction,change:lb()}}),mr.create({parent:n||this._injector,providers:i})}}return e.\u0275fac=function(t){return new(t||e)(gi(eO),gi(mr),gi(e,12),gi(aM,8))},e.\u0275prov=pe({factory:function(){return new e(gi(eO),gi(er),gi(e,12),gi(aM,8))},token:e,providedIn:oM}),e})();const cM=["mat-button",""],dM=["*"],uM=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"];class hM{constructor(e){this._elementRef=e}}const pM=kE(SE(PE(hM)));let gM=(()=>{class e extends pM{constructor(e,t,n){super(e),this._focusMonitor=t,this._animationMode=n,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const i of uM)this._hasHostAttributes(i)&&this._getHostElement().classList.add(i);e.nativeElement.classList.add("mat-button-base"),this.isRoundButton&&(this.color="accent")}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(e,t){e?this._focusMonitor.focusVia(this._getHostElement(),e,t):this._getHostElement().focus(t)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...e){return e.some(e=>this._getHostElement().hasAttribute(e))}}return e.\u0275fac=function(t){return new(t||e)(zr(rl),zr(lE),zr(_f,8))},e.\u0275cmp=$e({type:e,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-icon-button",""],["button","mat-fab",""],["button","mat-mini-fab",""],["button","mat-stroked-button",""],["button","mat-flat-button",""]],viewQuery:function(e,t){if(1&e&&Tc(NE,1),2&e){let e;Mc(e=Rc())&&(t.ripple=e.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(e,t){2&e&&(Ir("disabled",t.disabled||null),ma("_mat-animation-noopable","NoopAnimations"===t._animationMode)("mat-button-disabled",t.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[vr],attrs:cM,ngContentSelectors:dM,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(e,t){1&e&&(sa(),Hr(0,"span",0),oa(1),jr(),Ur(2,"span",1),Ur(3,"span",2)),2&e&&(no(2),ma("mat-button-ripple-round",t.isRoundButton||t.isIconButton),Vr("matRippleDisabled",t._isRippleDisabled())("matRippleCentered",t.isIconButton)("matRippleTrigger",t._getHostElement()))},directives:[NE],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n"],encapsulation:2,changeDetection:0}),e})(),fM=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=fe({imports:[[HE,CE],CE]}),e})(),mM=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=fe({imports:[[CE],CE]}),e})(),bM=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=fe({}),e})(),vM=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=fe({imports:[[HE,CE,VP,bM],CE,bM]}),e})();function yM(e,t){}class wM{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.autoFocus=!0,this.restoreFocus=!0,this.closeOnNavigation=!0}}const _M={dialogContainer:Jh("dialogContainer",[ip("void, exit",np({opacity:0,transform:"scale(0.7)"})),ip("enter",np({transform:"none"})),op("* => enter",ep("150ms cubic-bezier(0, 0, 0.2, 1)",np({transform:"none",opacity:1}))),op("* => void, * => exit",ep("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",np({opacity:0})))])};let xM=(()=>{class e extends eS{constructor(e,t,n,i,s,o){super(),this._elementRef=e,this._focusTrapFactory=t,this._changeDetectorRef=n,this._config=s,this._focusMonitor=o,this._animationStateChanged=new yc,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=e=>(this._portalOutlet.hasAttached(),this._portalOutlet.attachDomPortal(e)),this._ariaLabelledBy=s.ariaLabelledBy||null,this._document=i}_initializeWithAttachedContent(){this._setupFocusTrap(),this._capturePreviouslyFocusedElement(),this._focusDialogContainer()}attachComponentPortal(e){return this._portalOutlet.hasAttached(),this._portalOutlet.attachComponentPortal(e)}attachTemplatePortal(e){return this._portalOutlet.hasAttached(),this._portalOutlet.attachTemplatePortal(e)}_recaptureFocus(){this._containsFocus()||(!this._config.autoFocus||!this._focusTrap.focusInitialElement())&&this._elementRef.nativeElement.focus()}_trapFocus(){this._config.autoFocus?this._focusTrap.focusInitialElementWhenReady():this._containsFocus()||this._elementRef.nativeElement.focus()}_restoreFocus(){const e=this._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&e&&"function"==typeof e.focus){const t=this._getActiveElement(),n=this._elementRef.nativeElement;t&&t!==this._document.body&&t!==n&&!n.contains(t)||(this._focusMonitor?(this._focusMonitor.focusVia(e,this._closeInteractionType),this._closeInteractionType=null):e.focus())}this._focusTrap&&this._focusTrap.destroy()}_setupFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement)}_capturePreviouslyFocusedElement(){this._document&&(this._elementFocusedBeforeDialogWasOpened=this._getActiveElement())}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const e=this._elementRef.nativeElement,t=this._getActiveElement();return e===t||e.contains(t)}_getActiveElement(){var e;const t=this._document.activeElement;return(null===(e=null==t?void 0:t.shadowRoot)||void 0===e?void 0:e.activeElement)||t}}return e.\u0275fac=function(t){return new(t||e)(zr(rl),zr(eE),zr(Tl),zr(Hd,8),zr(wM),zr(lE))},e.\u0275dir=Ke({type:e,viewQuery:function(e,t){if(1&e&&Tc(nS,3),2&e){let e;Mc(e=Rc())&&(t._portalOutlet=e.first)}},features:[vr]}),e})(),AM=(()=>{class e extends xM{constructor(){super(...arguments),this._state="enter"}_onAnimationDone({toState:e,totalTime:t}){"enter"===e?(this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:t})):"exit"===e&&(this._restoreFocus(),this._animationStateChanged.next({state:"closed",totalTime:t}))}_onAnimationStart({toState:e,totalTime:t}){"enter"===e?this._animationStateChanged.next({state:"opening",totalTime:t}):"exit"!==e&&"void"!==e||this._animationStateChanged.next({state:"closing",totalTime:t})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}}return e.\u0275fac=function(t){return CM(t||e)},e.\u0275cmp=$e({type:e,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(e,t){1&e&&Kr("@dialogContainer.start",function(e){return t._onAnimationStart(e)})("@dialogContainer.done",function(e){return t._onAnimationDone(e)}),2&e&&(Fa("id",t._id),Ir("role",t._config.role)("aria-labelledby",t._config.ariaLabel?null:t._ariaLabelledBy)("aria-label",t._config.ariaLabel)("aria-describedby",t._config.ariaDescribedBy||null),Ba("@dialogContainer",t._state))},features:[vr],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,t){1&e&&Fr(0,yM,0,0,"ng-template",0)},directives:[nS],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[_M.dialogContainer]}}),e})();const CM=$n(AM);let SM=0;class kM{constructor(e,t,n="mat-dialog-"+SM++){this._overlayRef=e,this._containerInstance=t,this.id=n,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new A,this._afterClosed=new A,this._beforeClosed=new A,this._state=0,t._id=n,t._animationStateChanged.pipe(db(e=>"opened"===e.state),lv(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),t._animationStateChanged.pipe(db(e=>"closed"===e.state),lv(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),e.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._afterClosed.next(this._result),this._afterClosed.complete(),this.componentInstance=null,this._overlayRef.dispose()}),e.keydownEvents().pipe(db(e=>27===e.keyCode&&!this.disableClose&&!mP(e))).subscribe(e=>{e.preventDefault(),PM(this,"keyboard")}),e.backdropClick().subscribe(()=>{this.disableClose?this._containerInstance._recaptureFocus():PM(this,"mouse")})}close(e){this._result=e,this._containerInstance._animationStateChanged.pipe(db(e=>"closing"===e.state),lv(1)).subscribe(t=>{this._beforeClosed.next(e),this._beforeClosed.complete(),this._overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),t.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._afterClosed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._overlayRef.backdropClick()}keydownEvents(){return this._overlayRef.keydownEvents()}updatePosition(e){let t=this._getPositionStrategy();return e&&(e.left||e.right)?e.left?t.left(e.left):t.right(e.right):t.centerHorizontally(),e&&(e.top||e.bottom)?e.top?t.top(e.top):t.bottom(e.bottom):t.centerVertically(),this._overlayRef.updatePosition(),this}updateSize(e="",t=""){return this._overlayRef.updateSize({width:e,height:t}),this._overlayRef.updatePosition(),this}addPanelClass(e){return this._overlayRef.addPanelClass(e),this}removePanelClass(e){return this._overlayRef.removePanelClass(e),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._overlayRef.dispose()}_getPositionStrategy(){return this._overlayRef.getConfig().positionStrategy}}function PM(e,t,n){return void 0!==e._containerInstance&&(e._containerInstance._closeInteractionType=t),e.close(n)}const EM=new Xn("MatDialogData"),DM=new Xn("mat-dialog-default-options"),OM=new Xn("mat-dialog-scroll-strategy"),MM={provide:OM,deps:[eO],useFactory:function(e){return()=>e.scrollStrategies.block()}};let TM=(()=>{class e{constructor(e,t,n,i,s,o,r,a,l){this._overlay=e,this._injector=t,this._defaultOptions=n,this._parentDialog=i,this._overlayContainer=s,this._dialogRefConstructor=r,this._dialogContainerType=a,this._dialogDataToken=l,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new A,this._afterOpenedAtThisLevel=new A,this._ariaHiddenElements=new Map,this.afterAllClosed=iv(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(uv(void 0))),this._scrollStrategy=o}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(e,t){(t=function(e,t){return Object.assign(Object.assign({},t),e)}(t,this._defaultOptions||new wM)).id&&this.getDialogById(t.id);const n=this._createOverlay(t),i=this._attachDialogContainer(n,t),s=this._attachDialogContent(e,i,n,t);return this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(s),s.afterClosed().subscribe(()=>this._removeOpenDialog(s)),this.afterOpened.next(s),i._initializeWithAttachedContent(),s}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(e){return this.openDialogs.find(t=>t.id===e)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_createOverlay(e){const t=this._getOverlayConfig(e);return this._overlay.create(t)}_getOverlayConfig(e){const t=new FD({positionStrategy:this._overlay.position().global(),scrollStrategy:e.scrollStrategy||this._scrollStrategy(),panelClass:e.panelClass,hasBackdrop:e.hasBackdrop,direction:e.direction,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight,disposeOnNavigation:e.closeOnNavigation});return e.backdropClass&&(t.backdropClass=e.backdropClass),t}_attachDialogContainer(e,t){const n=mr.create({parent:t&&t.viewContainerRef&&t.viewContainerRef.injector||this._injector,providers:[{provide:wM,useValue:t}]}),i=new XC(this._dialogContainerType,t.viewContainerRef,n,t.componentFactoryResolver);return e.attach(i).instance}_attachDialogContent(e,t,n,i){const s=new this._dialogRefConstructor(n,t,i.id);if(e instanceof zl)t.attachTemplatePortal(new KC(e,null,{$implicit:i.data,dialogRef:s}));else{const n=this._createInjector(i,s,t),o=t.attachComponentPortal(new XC(e,i.viewContainerRef,n));s.componentInstance=o.instance}return s.updateSize(i.width,i.height).updatePosition(i.position),s}_createInjector(e,t,n){const i=e&&e.viewContainerRef&&e.viewContainerRef.injector,s=[{provide:this._dialogContainerType,useValue:n},{provide:this._dialogDataToken,useValue:e.data},{provide:this._dialogRefConstructor,useValue:t}];return!e.direction||i&&i.get(pE,null)||s.push({provide:pE,useValue:{value:e.direction,change:lb()}}),mr.create({parent:i||this._injector,providers:s})}_removeOpenDialog(e){const t=this.openDialogs.indexOf(e);t>-1&&(this.openDialogs.splice(t,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((e,t)=>{e?t.setAttribute("aria-hidden",e):t.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const e=this._overlayContainer.getContainerElement();if(e.parentElement){const t=e.parentElement.children;for(let n=t.length-1;n>-1;n--){let i=t[n];i===e||"SCRIPT"===i.nodeName||"STYLE"===i.nodeName||i.hasAttribute("aria-live")||(this._ariaHiddenElements.set(i,i.getAttribute("aria-hidden")),i.setAttribute("aria-hidden","true"))}}}_closeDialogs(e){let t=e.length;for(;t--;)e[t].close()}}return e.\u0275fac=function(t){return new(t||e)(zr(eO),zr(mr),zr(void 0),zr(void 0),zr(UD),zr(void 0),zr(Jn),zr(Jn),zr(Xn))},e.\u0275dir=Ke({type:e}),e})(),IM=(()=>{class e extends TM{constructor(e,t,n,i,s,o,r){super(e,t,i,o,r,s,kM,AM,EM)}}return e.\u0275fac=function(t){return new(t||e)(gi(eO),gi(mr),gi(nu,8),gi(DM,8),gi(OM),gi(e,12),gi(UD))},e.\u0275prov=pe({token:e,factory:e.\u0275fac}),e})(),RM=0,LM=(()=>{class e{constructor(e,t,n){this._dialogRef=e,this._elementRef=t,this._dialog=n,this.id="mat-dialog-title-"+RM++}ngOnInit(){this._dialogRef||(this._dialogRef=function(e,t){let n=e.nativeElement.parentElement;for(;n&&!n.classList.contains("mat-dialog-container");)n=n.parentElement;return n?t.find(e=>e.id===n.id):null}(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{const e=this._dialogRef._containerInstance;e&&!e._ariaLabelledBy&&(e._ariaLabelledBy=this.id)})}}return e.\u0275fac=function(t){return new(t||e)(zr(kM,8),zr(rl),zr(IM))},e.\u0275dir=Ke({type:e,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(e,t){2&e&&Fa("id",t.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),e})(),FM=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Ke({type:e,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),e})(),BM=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Ke({type:e,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"]}),e})(),zM=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=fe({providers:[IM,MM],imports:[[rO,iS,CE],CE]}),e})(),VM=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=fe({}),e})(),NM=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=fe({imports:[[uh,CE,VM,iS]]}),e})();const HM=["*"];function jM(e){return Error(`Unable to find icon with the name "${e}"`)}function UM(e){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${e}".`)}function WM(e){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${e}".`)}class GM{constructor(e,t,n){this.url=e,this.svgText=t,this.options=n}}let $M=(()=>{class e{constructor(e,t,n,i){this._httpClient=e,this._sanitizer=t,this._errorHandler=i,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass="material-icons",this._document=n}addSvgIcon(e,t,n){return this.addSvgIconInNamespace("",e,t,n)}addSvgIconLiteral(e,t,n){return this.addSvgIconLiteralInNamespace("",e,t,n)}addSvgIconInNamespace(e,t,n,i){return this._addSvgIconConfig(e,t,new GM(n,null,i))}addSvgIconResolver(e){return this._resolvers.push(e),this}addSvgIconLiteralInNamespace(e,t,n,i){const s=this._sanitizer.sanitize(is.HTML,n);if(!s)throw WM(n);return this._addSvgIconConfig(e,t,new GM("",s,i))}addSvgIconSet(e,t){return this.addSvgIconSetInNamespace("",e,t)}addSvgIconSetLiteral(e,t){return this.addSvgIconSetLiteralInNamespace("",e,t)}addSvgIconSetInNamespace(e,t,n){return this._addSvgIconSetConfig(e,new GM(t,null,n))}addSvgIconSetLiteralInNamespace(e,t,n){const i=this._sanitizer.sanitize(is.HTML,t);if(!i)throw WM(t);return this._addSvgIconSetConfig(e,new GM("",i,n))}registerFontClassAlias(e,t=e){return this._fontCssClassesByAlias.set(e,t),this}classNameForFontAlias(e){return this._fontCssClassesByAlias.get(e)||e}setDefaultFontSetClass(e){return this._defaultFontSetClass=e,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(e){const t=this._sanitizer.sanitize(is.RESOURCE_URL,e);if(!t)throw UM(e);const n=this._cachedIconsByUrl.get(t);return n?lb(qM(n)):this._loadSvgIconFromConfig(new GM(e,null)).pipe(Ov(e=>this._cachedIconsByUrl.set(t,e)),k(e=>qM(e)))}getNamedSvgIcon(e,t=""){const n=YM(t,e);let i=this._svgIconConfigs.get(n);if(i)return this._getSvgFromConfig(i);if(i=this._getIconConfigFromResolvers(t,e),i)return this._svgIconConfigs.set(n,i),this._getSvgFromConfig(i);const s=this._iconSetConfigs.get(t);return s?this._getSvgFromIconSetConfigs(e,s):bC(jM(n))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(e){return e.svgText?lb(qM(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe(k(e=>qM(e)))}_getSvgFromIconSetConfigs(e,t){const n=this._extractIconWithNameFromAnySet(e,t);return n?lb(n):Cf(t.filter(e=>!e.svgText).map(e=>this._loadSvgIconSetFromConfig(e).pipe(fv(t=>{const n=this._sanitizer.sanitize(is.RESOURCE_URL,e.url);return this._errorHandler.handleError(new Error(`Loading icon set URL: ${n} failed: ${t.message}`)),lb(null)})))).pipe(k(()=>{const n=this._extractIconWithNameFromAnySet(e,t);if(!n)throw jM(e);return n}))}_extractIconWithNameFromAnySet(e,t){for(let n=t.length-1;n>=0;n--){const i=t[n];if(i.svgText&&i.svgText.indexOf(e)>-1){const t=this._svgElementFromConfig(i),n=this._extractSvgIconFromSet(t,e,i.options);if(n)return n}}return null}_loadSvgIconFromConfig(e){return this._fetchIcon(e).pipe(Ov(t=>e.svgText=t),k(()=>this._svgElementFromConfig(e)))}_loadSvgIconSetFromConfig(e){return e.svgText?lb(null):this._fetchIcon(e).pipe(Ov(t=>e.svgText=t))}_extractSvgIconFromSet(e,t,n){const i=e.querySelector(`[id="${t}"]`);if(!i)return null;const s=i.cloneNode(!0);if(s.removeAttribute("id"),"svg"===s.nodeName.toLowerCase())return this._setSvgAttributes(s,n);if("symbol"===s.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(s),n);const o=this._svgElementFromString("<svg></svg>");return o.appendChild(s),this._setSvgAttributes(o,n)}_svgElementFromString(e){const t=this._document.createElement("DIV");t.innerHTML=e;const n=t.querySelector("svg");if(!n)throw Error("<svg> tag not found");return n}_toSvgElement(e){const t=this._svgElementFromString("<svg></svg>"),n=e.attributes;for(let i=0;i<n.length;i++){const{name:e,value:s}=n[i];"id"!==e&&t.setAttribute(e,s)}for(let i=0;i<e.childNodes.length;i++)e.childNodes[i].nodeType===this._document.ELEMENT_NODE&&t.appendChild(e.childNodes[i].cloneNode(!0));return t}_setSvgAttributes(e,t){return e.setAttribute("fit",""),e.setAttribute("height","100%"),e.setAttribute("width","100%"),e.setAttribute("preserveAspectRatio","xMidYMid meet"),e.setAttribute("focusable","false"),t&&t.viewBox&&e.setAttribute("viewBox",t.viewBox),e}_fetchIcon(e){var t;const{url:n,options:i}=e,s=null!==(t=null==i?void 0:i.withCredentials)&&void 0!==t&&t;if(!this._httpClient)throw Error("Could not find HttpClient provider for use with Angular Material icons. Please include the HttpClientModule from @angular/common/http in your app imports.");if(null==n)throw Error(`Cannot fetch icon from URL "${n}".`);const o=this._sanitizer.sanitize(is.RESOURCE_URL,n);if(!o)throw UM(n);const r=this._inProgressUrlFetches.get(o);if(r)return r;const a=this._httpClient.get(o,{responseType:"text",withCredentials:s}).pipe(Iv(()=>this._inProgressUrlFetches.delete(o)),ee());return this._inProgressUrlFetches.set(o,a),a}_addSvgIconConfig(e,t,n){return this._svgIconConfigs.set(YM(e,t),n),this}_addSvgIconSetConfig(e,t){const n=this._iconSetConfigs.get(e);return n?n.push(t):this._iconSetConfigs.set(e,[t]),this}_svgElementFromConfig(e){if(!e.svgElement){const t=this._svgElementFromString(e.svgText);this._setSvgAttributes(t,e.options),e.svgElement=t}return e.svgElement}_getIconConfigFromResolvers(e,t){for(let i=0;i<this._resolvers.length;i++){const s=this._resolvers[i](t,e);if(s)return(n=s).url&&n.options?new GM(s.url,null,s.options):new GM(s,null)}var n}}return e.\u0275fac=function(t){return new(t||e)(gi(Db,8),gi(qh),gi(Hd,8),gi(ds))},e.\u0275prov=pe({factory:function(){return new e(gi(Db,8),gi(qh),gi(Hd,8),gi(ds))},token:e,providedIn:"root"}),e})();function qM(e){return e.cloneNode(!0)}function YM(e,t){return e+":"+t}class ZM{constructor(e){this._elementRef=e}}const QM=kE(ZM),XM=new Xn("mat-icon-location",{providedIn:"root",factory:function(){const e=fi(Hd),t=e?e.location:null;return{getPathname:()=>t?t.pathname+t.search:""}}}),KM=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],JM=KM.map(e=>`[${e}]`).join(", "),eT=/^url\(['"]?#(.*?)['"]?\)$/;let tT=(()=>{class e extends QM{constructor(e,t,n,i,s){super(e),this._iconRegistry=t,this._location=i,this._errorHandler=s,this._inline=!1,this._currentIconFetch=u.EMPTY,n||e.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(e){this._inline=xP(e)}get svgIcon(){return this._svgIcon}set svgIcon(e){e!==this._svgIcon&&(e?this._updateSvgIcon(e):this._svgIcon&&this._clearSvgElement(),this._svgIcon=e)}get fontSet(){return this._fontSet}set fontSet(e){const t=this._cleanupFontValue(e);t!==this._fontSet&&(this._fontSet=t,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(e){const t=this._cleanupFontValue(e);t!==this._fontIcon&&(this._fontIcon=t,this._updateFontIconClasses())}_splitIconName(e){if(!e)return["",""];const t=e.split(":");switch(t.length){case 1:return["",t[0]];case 2:return t;default:throw Error(`Invalid icon name: "${e}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const e=this._elementsWithExternalReferences;if(e&&e.size){const e=this._location.getPathname();e!==this._previousPath&&(this._previousPath=e,this._prependPathToReferences(e))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(e){this._clearSvgElement();const t=e.querySelectorAll("style");for(let i=0;i<t.length;i++)t[i].textContent+=" ";const n=this._location.getPathname();this._previousPath=n,this._cacheChildrenWithExternalReferences(e),this._prependPathToReferences(n),this._elementRef.nativeElement.appendChild(e)}_clearSvgElement(){const e=this._elementRef.nativeElement;let t=e.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();t--;){const n=e.childNodes[t];1===n.nodeType&&"svg"!==n.nodeName.toLowerCase()||e.removeChild(n)}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const e=this._elementRef.nativeElement,t=this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet):this._iconRegistry.getDefaultFontSetClass();t!=this._previousFontSetClass&&(this._previousFontSetClass&&e.classList.remove(this._previousFontSetClass),t&&e.classList.add(t),this._previousFontSetClass=t),this.fontIcon!=this._previousFontIconClass&&(this._previousFontIconClass&&e.classList.remove(this._previousFontIconClass),this.fontIcon&&e.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(e){return"string"==typeof e?e.trim().split(" ")[0]:e}_prependPathToReferences(e){const t=this._elementsWithExternalReferences;t&&t.forEach((t,n)=>{t.forEach(t=>{n.setAttribute(t.name,`url('${e}#${t.value}')`)})})}_cacheChildrenWithExternalReferences(e){const t=e.querySelectorAll(JM),n=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let i=0;i<t.length;i++)KM.forEach(e=>{const s=t[i],o=s.getAttribute(e),r=o?o.match(eT):null;if(r){let t=n.get(s);t||(t=[],n.set(s,t)),t.push({name:e,value:r[1]})}})}_updateSvgIcon(e){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),e){const[t,n]=this._splitIconName(e);t&&(this._svgNamespace=t),n&&(this._svgName=n),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(n,t).pipe(lv(1)).subscribe(e=>this._setSvgElement(e),e=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${t}:${n}! ${e.message}`))})}}}return e.\u0275fac=function(t){return new(t||e)(zr(rl),zr($M),Yn("aria-hidden"),zr(XM),zr(ds))},e.\u0275cmp=$e({type:e,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(e,t){2&e&&(Ir("data-mat-icon-type",t._usingFontIcon()?"font":"svg")("data-mat-icon-name",t._svgName||t.fontIcon)("data-mat-icon-namespace",t._svgNamespace||t.fontSet),ma("mat-icon-inline",t.inline)("mat-icon-no-color","primary"!==t.color&&"accent"!==t.color&&"warn"!==t.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[vr],ngContentSelectors:HM,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},styles:[".mat-icon{background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}\n"],encapsulation:2,changeDetection:0}),e})(),nT=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=fe({imports:[[CE],CE]}),e})(),iT=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=fe({imports:[[TP]]}),e})(),sT=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=fe({providers:[ME],imports:[[iT,zO,CE],iT,zO]}),e})(),oT=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=fe({imports:[[CE],CE]}),e})(),rT=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=fe({imports:[[TE,HE,CE,UE,uh],TE,CE,UE,oT]}),e})();const aT=["trigger"],lT=["panel"];function cT(e,t){if(1&e&&(Hr(0,"span",8),Da(1),jr()),2&e){const e=na();no(1),Oa(e.placeholder)}}function dT(e,t){if(1&e&&(Hr(0,"span",12),Da(1),jr()),2&e){const e=na(2);no(1),Oa(e.triggerValue)}}function uT(e,t){1&e&&oa(0,0,["*ngSwitchCase","true"])}function hT(e,t){1&e&&(Hr(0,"span",9),Fr(1,dT,2,1,"span",10),Fr(2,uT,1,0,"ng-content",11),jr()),2&e&&(Vr("ngSwitch",!!na().customTrigger),no(2),Vr("ngSwitchCase",!0))}function pT(e,t){if(1&e){const e=qr();Hr(0,"div",13),Hr(1,"div",14,15),Xr("@transformPanel.done",function(t){return Lt(e),na()._panelDoneAnimatingStream.next(t.toState)})("keydown",function(t){return Lt(e),na()._handleKeydown(t)}),oa(3,1),jr(),jr()}if(2&e){const e=na();Vr("@transformPanelWrap",void 0),no(1),La("mat-select-panel ",e._getPanelTheme(),""),fa("transform-origin",e._transformOrigin)("font-size",e._triggerFontSize,"px"),Vr("ngClass",e.panelClass)("@transformPanel",e.multiple?"showing-multiple":"showing"),Ir("id",e.id+"-panel")("aria-multiselectable",e.multiple)("aria-label",e.ariaLabel||null)("aria-labelledby",e._getPanelAriaLabelledby())}}const gT=[[["mat-select-trigger"]],"*"],fT=["mat-select-trigger","*"],mT={transformPanelWrap:Jh("transformPanelWrap",[op("* => void",ap("@transformPanel",[rp()],{optional:!0}))]),transformPanel:Jh("transformPanel",[ip("void",np({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),ip("showing",np({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),ip("showing-multiple",np({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),op("void => *",ep("120ms cubic-bezier(0, 0, 0.2, 1)")),op("* => void",ep("100ms 25ms linear",np({opacity:0})))])};let bT=0;const vT=new Xn("mat-select-scroll-strategy"),yT=new Xn("MAT_SELECT_CONFIG"),wT={provide:vT,deps:[eO],useFactory:function(e){return()=>e.scrollStrategies.reposition()}};class _T{constructor(e,t){this.source=e,this.value=t}}class xT{constructor(e,t,n,i,s){this._elementRef=e,this._defaultErrorStateMatcher=t,this._parentForm=n,this._parentFormGroup=i,this.ngControl=s}}const AT=PE(EE(SE(DE(xT)))),CT=new Xn("MatSelectTrigger");let ST=(()=>{class e extends AT{constructor(e,t,n,i,s,o,r,a,l,c,d,u,h,p){var g,f,m;super(s,i,r,a,c),this._viewportRuler=e,this._changeDetectorRef=t,this._ngZone=n,this._dir=o,this._parentFormField=l,this.ngControl=c,this._liveAnnouncer=h,this._defaultOptions=p,this._panelOpen=!1,this._compareWith=(e,t)=>e===t,this._uid="mat-select-"+bT++,this._triggerAriaLabelledBy=null,this._destroy=new A,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+bT++,this._panelDoneAnimatingStream=new A,this._overlayPanelClass=(null===(g=this._defaultOptions)||void 0===g?void 0:g.overlayPanelClass)||"",this._focused=!1,this.controlType="mat-select",this._required=!1,this._multiple=!1,this._disableOptionCentering=null!==(m=null===(f=this._defaultOptions)||void 0===f?void 0:f.disableOptionCentering)&&void 0!==m&&m,this.ariaLabel="",this.optionSelectionChanges=iv(()=>{const e=this.options;return e?e.changes.pipe(uv(e),sv(()=>G(...e.map(e=>e.onSelectionChange)))):this._ngZone.onStable.pipe(lv(1),sv(()=>this.optionSelectionChanges))}),this.openedChange=new yc,this._openedStream=this.openedChange.pipe(db(e=>e),k(()=>{})),this._closedStream=this.openedChange.pipe(db(e=>!e),k(()=>{})),this.selectionChange=new yc,this.valueChange=new yc,this.ngControl&&(this.ngControl.valueAccessor=this),null!=(null==p?void 0:p.typeaheadDebounceInterval)&&(this._typeaheadDebounceInterval=p.typeaheadDebounceInterval),this._scrollStrategyFactory=u,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(d)||0,this.id=this.id}get focused(){return this._focused||this._panelOpen}get placeholder(){return this._placeholder}set placeholder(e){this._placeholder=e,this.stateChanges.next()}get required(){return this._required}set required(e){this._required=xP(e),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(e){this._multiple=xP(e)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(e){this._disableOptionCentering=xP(e)}get compareWith(){return this._compareWith}set compareWith(e){this._compareWith=e,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(e){(e!==this._value||this._multiple&&Array.isArray(e))&&(this.options&&this._setSelectionByValue(e),this._value=e)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(e){this._typeaheadDebounceInterval=AP(e)}get id(){return this._id}set id(e){this._id=e||this._uid,this.stateChanges.next()}ngOnInit(){this._selectionModel=new _D(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(H_(),vD(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe(vD(this._destroy)).subscribe(e=>{e.added.forEach(e=>e.select()),e.removed.forEach(e=>e.deselect())}),this.options.changes.pipe(uv(null),vD(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const e=this._getTriggerAriaLabelledby();if(e!==this._triggerAriaLabelledBy){const t=this._elementRef.nativeElement;this._triggerAriaLabelledBy=e,e?t.setAttribute("aria-labelledby",e):t.removeAttribute("aria-labelledby")}this.ngControl&&this.updateErrorState()}ngOnChanges(e){e.disabled&&this.stateChanges.next(),e.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}ngOnDestroy(){this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck())}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}writeValue(e){this.value=e}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){return this.multiple?this._selectionModel.selected:this._selectionModel.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){const e=this._selectionModel.selected.map(e=>e.viewValue);return this._isRtl()&&e.reverse(),e.join(", ")}return this._selectionModel.selected[0].viewValue}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(e){this.disabled||(this.panelOpen?this._handleOpenKeydown(e):this._handleClosedKeydown(e))}_handleClosedKeydown(e){const t=e.keyCode,n=40===t||38===t||37===t||39===t,i=13===t||32===t,s=this._keyManager;if(!s.isTyping()&&i&&!mP(e)||(this.multiple||e.altKey)&&n)e.preventDefault(),this.open();else if(!this.multiple){const t=this.selected;s.onKeydown(e);const n=this.selected;n&&t!==n&&this._liveAnnouncer.announce(n.viewValue,1e4)}}_handleOpenKeydown(e){const t=this._keyManager,n=e.keyCode,i=40===n||38===n,s=t.isTyping();if(i&&e.altKey)e.preventDefault(),this.close();else if(s||13!==n&&32!==n||!t.activeItem||mP(e))if(!s&&this._multiple&&65===n&&e.ctrlKey){e.preventDefault();const t=this.options.some(e=>!e.disabled&&!e.selected);this.options.forEach(e=>{e.disabled||(t?e.select():e.deselect())})}else{const n=t.activeItemIndex;t.onKeydown(e),this._multiple&&i&&e.shiftKey&&t.activeItem&&t.activeItemIndex!==n&&t.activeItem._selectViaInteraction()}else e.preventDefault(),t.activeItem._selectViaInteraction()}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,this.disabled||this.panelOpen||(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_onAttached(){this.overlayDir.positionChange.pipe(lv(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._positioningSettled()})}_getPanelTheme(){return this._parentFormField?"mat-"+this._parentFormField.color:""}get empty(){return!this._selectionModel||this._selectionModel.isEmpty()}_initializeSelection(){Promise.resolve().then(()=>{this._setSelectionByValue(this.ngControl?this.ngControl.value:this._value),this.stateChanges.next()})}_setSelectionByValue(e){if(this._selectionModel.selected.forEach(e=>e.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&e)Array.isArray(e),e.forEach(e=>this._selectValue(e)),this._sortValues();else{const t=this._selectValue(e);t?this._keyManager.updateActiveItem(t):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectValue(e){const t=this.options.find(t=>{if(this._selectionModel.isSelected(t))return!1;try{return null!=t.value&&this._compareWith(t.value,e)}catch(n){return!1}});return t&&this._selectionModel.select(t),t}_initKeyManager(){this._keyManager=new YP(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe(vD(this._destroy)).subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.pipe(vD(this._destroy)).subscribe(()=>{this._panelOpen&&this.panel?this._scrollOptionIntoView(this._keyManager.activeItemIndex||0):this._panelOpen||this.multiple||!this._keyManager.activeItem||this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){const e=G(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(vD(e)).subscribe(e=>{this._onSelect(e.source,e.isUserInput),e.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),G(...this.options.map(e=>e._stateChanges)).pipe(vD(e)).subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()})}_onSelect(e,t){const n=this._selectionModel.isSelected(e);null!=e.value||this._multiple?(n!==e.selected&&(e.selected?this._selectionModel.select(e):this._selectionModel.deselect(e)),t&&this._keyManager.setActiveItem(e),this.multiple&&(this._sortValues(),t&&this.focus())):(e.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(e.value)),n!==this._selectionModel.isSelected(e)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const e=this.options.toArray();this._selectionModel.sort((t,n)=>this.sortComparator?this.sortComparator(t,n,e):e.indexOf(t)-e.indexOf(n)),this.stateChanges.next()}}_propagateChanges(e){let t=null;t=this.multiple?this.selected.map(e=>e.value):this.selected?this.selected.value:e,this._value=t,this.valueChange.emit(t),this._onChange(t),this.selectionChange.emit(this._getChangeEvent(t)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}_canOpen(){var e;return!this._panelOpen&&!this.disabled&&(null===(e=this.options)||void 0===e?void 0:e.length)>0}focus(e){this._elementRef.nativeElement.focus(e)}_getPanelAriaLabelledby(){if(this.ariaLabel)return null;const e=this._getLabelId();return this.ariaLabelledby?e+" "+this.ariaLabelledby:e}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getLabelId(){var e;return(null===(e=this._parentFormField)||void 0===e?void 0:e.getLabelId())||""}_getTriggerAriaLabelledby(){if(this.ariaLabel)return null;let e=this._getLabelId()+" "+this._valueId;return this.ariaLabelledby&&(e+=" "+this.ariaLabelledby),e}_panelDoneAnimating(e){this.openedChange.emit(e)}setDescribedByIds(e){this._ariaDescribedby=e.join(" ")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}return e.\u0275fac=function(t){return new(t||e)(zr(AD),zr(Tl),zr(ad),zr(ME),zr(rl),zr(pE,8),zr(Mm,8),zr(Hm,8),zr(FO,8),zr(sm,10),Yn("tabindex"),zr(vT),zr(iE),zr(yT,8))},e.\u0275dir=Ke({type:e,viewQuery:function(e,t){if(1&e&&(Tc(aT,1),Tc(lT,1),Tc(sO,1)),2&e){let e;Mc(e=Rc())&&(t.trigger=e.first),Mc(e=Rc())&&(t.panel=e.first),Mc(e=Rc())&&(t.overlayDir=e.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],id:"id",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",typeaheadDebounceInterval:"typeaheadDebounceInterval",panelClass:"panelClass",ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",sortComparator:"sortComparator"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[vr,dt]}),e})(),kT=(()=>{class e extends ST{constructor(){super(...arguments),this._scrollTop=0,this._triggerFontSize=0,this._transformOrigin="top",this._offsetY=0,this._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}]}_calculateOverlayScroll(e,t,n){const i=this._getItemHeight();return Math.min(Math.max(0,i*e-t+i/2),n)}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe(vD(this._destroy)).subscribe(()=>{this.panelOpen&&(this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._changeDetectorRef.markForCheck())})}open(){super._canOpen()&&(super.open(),this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement).fontSize||"0"),this._calculateOverlayPosition(),this._ngZone.onStable.pipe(lv(1)).subscribe(()=>{this._triggerFontSize&&this.overlayDir.overlayRef&&this.overlayDir.overlayRef.overlayElement&&(this.overlayDir.overlayRef.overlayElement.style.fontSize=this._triggerFontSize+"px")}))}_scrollOptionIntoView(e){const t=eD(e,this.options,this.optionGroups),n=this._getItemHeight();var i,s,o;this.panel.nativeElement.scrollTop=(s=n,256,(i=(e+t)*n)<(o=this.panel.nativeElement.scrollTop)?i:i+s>o+256?Math.max(0,i-256+s):o)}_positioningSettled(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}_panelDoneAnimating(e){this.panelOpen?this._scrollTop=0:(this.overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),super._panelDoneAnimating(e)}_getChangeEvent(e){return new _T(this,e)}_calculateOverlayOffsetX(){const e=this.overlayDir.overlayRef.overlayElement.getBoundingClientRect(),t=this._viewportRuler.getViewportSize(),n=this._isRtl(),i=this.multiple?56:32;let s;if(this.multiple)s=40;else if(this.disableOptionCentering)s=16;else{let e=this._selectionModel.selected[0]||this.options.first;s=e&&e.group?32:16}n||(s*=-1);const o=0-(e.left+s-(n?i:0)),r=e.right+s-t.width+(n?0:i);o>0?s+=o+8:r>0&&(s-=r+8),this.overlayDir.offsetX=Math.round(s),this.overlayDir.overlayRef.updatePosition()}_calculateOverlayOffsetY(e,t,n){const i=this._getItemHeight(),s=(i-this._triggerRect.height)/2,o=Math.floor(256/i);let r;return this.disableOptionCentering?0:(r=0===this._scrollTop?e*i:this._scrollTop===n?(e-(this._getItemCount()-o))*i+(i-(this._getItemCount()*i-256)%i):t-i/2,Math.round(-1*r-s))}_checkOverlayWithinViewport(e){const t=this._getItemHeight(),n=this._viewportRuler.getViewportSize(),i=this._triggerRect.top-8,s=n.height-this._triggerRect.bottom-8,o=Math.abs(this._offsetY),r=Math.min(this._getItemCount()*t,256)-o-this._triggerRect.height;r>s?this._adjustPanelUp(r,s):o>i?this._adjustPanelDown(o,i,e):this._transformOrigin=this._getOriginBasedOnOption()}_adjustPanelUp(e,t){const n=Math.round(e-t);this._scrollTop-=n,this._offsetY-=n,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}_adjustPanelDown(e,t,n){const i=Math.round(e-t);if(this._scrollTop+=i,this._offsetY+=i,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=n)return this._scrollTop=n,this._offsetY=0,void(this._transformOrigin="50% top 0px")}_calculateOverlayPosition(){const e=this._getItemHeight(),t=this._getItemCount(),n=Math.min(t*e,256),i=t*e-n;let s;s=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),s+=eD(s,this.options,this.optionGroups);const o=n/2;this._scrollTop=this._calculateOverlayScroll(s,o,i),this._offsetY=this._calculateOverlayOffsetY(s,o,i),this._checkOverlayWithinViewport(i)}_getOriginBasedOnOption(){const e=this._getItemHeight(),t=(e-this._triggerRect.height)/2;return`50% ${Math.abs(this._offsetY)-t+e/2}px 0px`}_getItemHeight(){return 3*this._triggerFontSize}_getItemCount(){return this.options.length+this.optionGroups.length}}return e.\u0275fac=function(t){return PT(t||e)},e.\u0275cmp=$e({type:e,selectors:[["mat-select"]],contentQueries:function(e,t,n){if(1&e&&(Ic(n,CT,1),Ic(n,JE,1),Ic(n,ZE,1)),2&e){let e;Mc(e=Rc())&&(t.customTrigger=e.first),Mc(e=Rc())&&(t.options=e),Mc(e=Rc())&&(t.optionGroups=e)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:20,hostBindings:function(e,t){1&e&&Xr("keydown",function(e){return t._handleKeydown(e)})("focus",function(){return t._onFocus()})("blur",function(){return t._onBlur()}),2&e&&(Ir("id",t.id)("tabindex",t.tabIndex)("aria-controls",t.panelOpen?t.id+"-panel":null)("aria-expanded",t.panelOpen)("aria-label",t.ariaLabel||null)("aria-required",t.required.toString())("aria-disabled",t.disabled.toString())("aria-invalid",t.errorState)("aria-describedby",t._ariaDescribedby||null)("aria-activedescendant",t._getAriaActiveDescendant()),ma("mat-select-disabled",t.disabled)("mat-select-invalid",t.errorState)("mat-select-required",t.required)("mat-select-empty",t.empty)("mat-select-multiple",t.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[Ja([{provide:kO,useExisting:e},{provide:WE,useExisting:e}]),vr],ngContentSelectors:fT,decls:9,vars:12,consts:[["cdk-overlay-origin","",1,"mat-select-trigger",3,"click"],["origin","cdkOverlayOrigin","trigger",""],[1,"mat-select-value",3,"ngSwitch"],["class","mat-select-placeholder mat-select-min-line",4,"ngSwitchCase"],["class","mat-select-value-text",3,"ngSwitch",4,"ngSwitchCase"],[1,"mat-select-arrow-wrapper"],[1,"mat-select-arrow"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayMinWidth","cdkConnectedOverlayOffsetY","backdropClick","attach","detach"],[1,"mat-select-placeholder","mat-select-min-line"],[1,"mat-select-value-text",3,"ngSwitch"],["class","mat-select-min-line",4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-select-min-line"],[1,"mat-select-panel-wrap"],["role","listbox","tabindex","-1",3,"ngClass","keydown"],["panel",""]],template:function(e,t){if(1&e&&(sa(gT),Hr(0,"div",0,1),Xr("click",function(){return t.toggle()}),Hr(3,"div",2),Fr(4,cT,2,1,"span",3),Fr(5,hT,3,2,"span",4),jr(),Hr(6,"div",5),Ur(7,"div",6),jr(),jr(),Fr(8,pT,4,14,"ng-template",7),Xr("backdropClick",function(){return t.close()})("attach",function(){return t._onAttached()})("detach",function(){return t.close()})),2&e){const e=Br(1);Ir("aria-owns",t.panelOpen?t.id+"-panel":null),no(3),Vr("ngSwitch",t.empty),Ir("id",t._valueId),no(1),Vr("ngSwitchCase",!0),no(1),Vr("ngSwitchCase",!1),no(3),Vr("cdkConnectedOverlayPanelClass",t._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",t._scrollStrategy)("cdkConnectedOverlayOrigin",e)("cdkConnectedOverlayOpen",t.panelOpen)("cdkConnectedOverlayPositions",t._positions)("cdkConnectedOverlayMinWidth",null==t._triggerRect?null:t._triggerRect.width)("cdkConnectedOverlayOffsetY",t._offsetY)}},directives:[iO,Yu,Zu,sO,Qu,Nu],styles:['.mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-table;cursor:pointer;position:relative;box-sizing:border-box}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-select-value{display:table-cell;max-width:0;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{display:table-cell;vertical-align:middle}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;margin:0 4px}.mat-select-panel-wrap{flex-basis:100%}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%;border-radius:4px;outline:0}.cdk-high-contrast-active .mat-select-panel{outline:solid 1px}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color:transparent;-webkit-text-fill-color:transparent;transition:none;display:block}.mat-select-min-line:empty::before{content:" ";white-space:pre;width:1px}\n'],encapsulation:2,data:{animation:[mT.transformPanelWrap,mT.transformPanel]},changeDetection:0}),e})();const PT=$n(kT);let ET=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=fe({providers:[wT],imports:[[uh,rO,tD,CE],CD,zO,tD,CE]}),e})();const DT={tooltipState:Jh("state",[ip("initial, void, hidden",np({opacity:0,transform:"scale(0)"})),ip("visible",np({transform:"scale(1)"})),op("* => visible",ep("200ms cubic-bezier(0, 0, 0.2, 1)",sp([np({opacity:0,transform:"scale(0)",offset:0}),np({opacity:.5,transform:"scale(0.99)",offset:.5}),np({opacity:1,transform:"scale(1)",offset:1})]))),op("* => hidden",ep("100ms cubic-bezier(0, 0, 0.2, 1)",np({opacity:0})))])},OT=IP({passive:!0}),MT=new Xn("mat-tooltip-scroll-strategy"),TT={provide:MT,deps:[eO],useFactory:function(e){return()=>e.scrollStrategies.reposition({scrollThrottle:20})}},IT=new Xn("mat-tooltip-default-options",{providedIn:"root",factory:function(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let RT=(()=>{class e{constructor(e,t,n,i,s,o,r,a,l,c,d,u){this._overlay=e,this._elementRef=t,this._scrollDispatcher=n,this._viewContainerRef=i,this._ngZone=s,this._platform=o,this._ariaDescriber=r,this._focusMonitor=a,this._dir=c,this._defaultOptions=d,this._position="below",this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this.showDelay=this._defaultOptions.showDelay,this.hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new A,this._handleKeydown=e=>{this._isTooltipVisible()&&27===e.keyCode&&!mP(e)&&(e.preventDefault(),e.stopPropagation(),this._ngZone.run(()=>this.hide(0)))},this._scrollStrategy=l,d&&(d.position&&(this.position=d.position),d.touchGestures&&(this.touchGestures=d.touchGestures)),s.runOutsideAngular(()=>{t.nativeElement.addEventListener("keydown",this._handleKeydown)})}get position(){return this._position}set position(e){e!==this._position&&(this._position=e,this._overlayRef&&(this._updatePosition(),this._tooltipInstance&&this._tooltipInstance.show(0),this._overlayRef.updatePosition()))}get disabled(){return this._disabled}set disabled(e){this._disabled=xP(e),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get message(){return this._message}set message(e){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=e?String(e).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")})}))}get tooltipClass(){return this._tooltipClass}set tooltipClass(e){this._tooltipClass=e,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(vD(this._destroyed)).subscribe(e=>{e?"keyboard"===e&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const e=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),e.removeEventListener("keydown",this._handleKeydown),this._passiveListeners.forEach(([t,n])=>{e.removeEventListener(t,n,OT)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(e,this.message,"tooltip"),this._focusMonitor.stopMonitoring(e)}show(e=this.showDelay){if(this.disabled||!this.message||this._isTooltipVisible()&&!this._tooltipInstance._showTimeoutId&&!this._tooltipInstance._hideTimeoutId)return;const t=this._createOverlay();this._detach(),this._portal=this._portal||new XC(LT,this._viewContainerRef),this._tooltipInstance=t.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe(vD(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),this._tooltipInstance.show(e)}hide(e=this.hideDelay){this._tooltipInstance&&this._tooltipInstance.hide(e)}toggle(){this._isTooltipVisible()?this.hide():this.show()}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(){if(this._overlayRef)return this._overlayRef;const e=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),t=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(".mat-tooltip").withFlexibleDimensions(!1).withViewportMargin(8).withScrollableContainers(e);return t.positionChanges.pipe(vD(this._destroyed)).subscribe(e=>{this._tooltipInstance&&e.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:t,panelClass:"mat-tooltip-panel",scrollStrategy:this._scrollStrategy()}),this._updatePosition(),this._overlayRef.detachments().pipe(vD(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(){const e=this._overlayRef.getConfig().positionStrategy,t=this._getOrigin(),n=this._getOverlayPosition();e.withPositions([Object.assign(Object.assign({},t.main),n.main),Object.assign(Object.assign({},t.fallback),n.fallback)])}_getOrigin(){const e=!this._dir||"ltr"==this._dir.value,t=this.position;let n;"above"==t||"below"==t?n={originX:"center",originY:"above"==t?"top":"bottom"}:"before"==t||"left"==t&&e||"right"==t&&!e?n={originX:"start",originY:"center"}:("after"==t||"right"==t&&e||"left"==t&&!e)&&(n={originX:"end",originY:"center"});const{x:i,y:s}=this._invertPosition(n.originX,n.originY);return{main:n,fallback:{originX:i,originY:s}}}_getOverlayPosition(){const e=!this._dir||"ltr"==this._dir.value,t=this.position;let n;"above"==t?n={overlayX:"center",overlayY:"bottom"}:"below"==t?n={overlayX:"center",overlayY:"top"}:"before"==t||"left"==t&&e||"right"==t&&!e?n={overlayX:"end",overlayY:"center"}:("after"==t||"right"==t&&e||"left"==t&&!e)&&(n={overlayX:"start",overlayY:"center"});const{x:i,y:s}=this._invertPosition(n.overlayX,n.overlayY);return{main:n,fallback:{overlayX:i,overlayY:s}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe(lv(1),vD(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(e){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=e,this._tooltipInstance._markForCheck())}_invertPosition(e,t){return"above"===this.position||"below"===this.position?"top"===t?t="bottom":"bottom"===t&&(t="top"):"end"===e?e="start":"start"===e&&(e="end"),{x:e,y:t}}_setupPointerEnterEventsIfNeeded(){!this._disabled&&this.message&&this._viewInitialized&&!this._passiveListeners.length&&(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",()=>{this._setupPointerExitEventsIfNeeded(),this.show()}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",()=>{this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>this.show(),500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const e=[];if(this._platformSupportsMouseEvents())e.push(["mouseleave",()=>this.hide()],["wheel",e=>this._wheelListener(e)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const t=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};e.push(["touchend",t],["touchcancel",t])}this._addListeners(e),this._passiveListeners.push(...e)}_addListeners(e){e.forEach(([e,t])=>{this._elementRef.nativeElement.addEventListener(e,t,OT)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(e){if(this._isTooltipVisible()){const t=(this._document||document).elementFromPoint(e.clientX,e.clientY),n=this._elementRef.nativeElement;t===n||n.contains(t)||this.hide()}}_disableNativeGesturesIfNecessary(){const e=this.touchGestures;if("off"!==e){const t=this._elementRef.nativeElement,n=t.style;("on"===e||"INPUT"!==t.nodeName&&"TEXTAREA"!==t.nodeName)&&(n.userSelect=n.msUserSelect=n.webkitUserSelect=n.MozUserSelect="none"),"on"!==e&&t.draggable||(n.webkitUserDrag="none"),n.touchAction="none",n.webkitTapHighlightColor="transparent"}}}return e.\u0275fac=function(t){return new(t||e)(zr(eO),zr(rl),zr(xD),zr(Gl),zr(ad),zr(MP),zr(WP),zr(lE),zr(MT),zr(pE,8),zr(IT,8),zr(Hd))},e.\u0275dir=Ke({type:e,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],inputs:{showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]},exportAs:["matTooltip"]}),e})(),LT=(()=>{class e{constructor(e,t){this._changeDetectorRef=e,this._breakpointObserver=t,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new A,this._isHandset=this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)")}show(e){this._hideTimeoutId&&(clearTimeout(this._hideTimeoutId),this._hideTimeoutId=null),this._closeOnInteraction=!0,this._showTimeoutId=setTimeout(()=>{this._visibility="visible",this._showTimeoutId=null,this._markForCheck()},e)}hide(e){this._showTimeoutId&&(clearTimeout(this._showTimeoutId),this._showTimeoutId=null),this._hideTimeoutId=setTimeout(()=>{this._visibility="hidden",this._hideTimeoutId=null,this._markForCheck()},e)}afterHidden(){return this._onHide}isVisible(){return"visible"===this._visibility}ngOnDestroy(){this._onHide.complete()}_animationStart(){this._closeOnInteraction=!1}_animationDone(e){const t=e.toState;"hidden"!==t||this.isVisible()||this._onHide.next(),"visible"!==t&&"hidden"!==t||(this._closeOnInteraction=!0)}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}}return e.\u0275fac=function(t){return new(t||e)(zr(Tl),zr(KO))},e.\u0275cmp=$e({type:e,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(e,t){1&e&&Xr("click",function(){return t._handleBodyInteraction()},!1,gs)("auxclick",function(){return t._handleBodyInteraction()},!1,gs),2&e&&fa("zoom","visible"===t._visibility?1:null)},decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(e,t){if(1&e&&(Hr(0,"div",0),Xr("@state.start",function(){return t._animationStart()})("@state.done",function(e){return t._animationDone(e)}),hc(1,"async"),Da(2),jr()),2&e){let e=null;ma("mat-tooltip-handset",null==(e=pc(1,5,t._isHandset))?null:e.matches),Vr("ngClass",t.tooltipClass)("@state",t._visibility),no(2),Oa(t.message)}},directives:[Nu],pipes:[sh],styles:[".mat-tooltip-panel{pointer-events:none !important}.mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}\n"],encapsulation:2,data:{animation:[DT.tooltipState]},changeDetection:0}),e})(),FT=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=fe({providers:[TT],imports:[[uE,uh,rO,CE],CE,CD]}),e})();function BT(e,t){if(1&e&&(Hr(0,"mat-option",19),Da(1),jr()),2&e){const e=t.$implicit;Vr("value",e),no(1),Ma(" ",e," ")}}function zT(e,t){if(1&e){const e=qr();Hr(0,"mat-form-field",16),Hr(1,"mat-select",17),Xr("selectionChange",function(t){return Lt(e),na(2)._changePageSize(t.value)}),Fr(2,BT,2,2,"mat-option",18),jr(),jr()}if(2&e){const e=na(2);Vr("appearance",e._formFieldAppearance)("color",e.color),no(1),Vr("value",e.pageSize)("disabled",e.disabled)("aria-label",e._intl.itemsPerPageLabel),no(1),Vr("ngForOf",e._displayedPageSizeOptions)}}function VT(e,t){if(1&e&&(Hr(0,"div",20),Da(1),jr()),2&e){const e=na(2);no(1),Oa(e.pageSize)}}function NT(e,t){if(1&e&&(Hr(0,"div",12),Hr(1,"div",13),Da(2),jr(),Fr(3,zT,3,6,"mat-form-field",14),Fr(4,VT,2,1,"div",15),jr()),2&e){const e=na();no(2),Ma(" ",e._intl.itemsPerPageLabel," "),no(1),Vr("ngIf",e._displayedPageSizeOptions.length>1),no(1),Vr("ngIf",e._displayedPageSizeOptions.length<=1)}}function HT(e,t){if(1&e){const e=qr();Hr(0,"button",21),Xr("click",function(){return Lt(e),na().firstPage()}),dn(),Hr(1,"svg",7),Ur(2,"path",22),jr(),jr()}if(2&e){const e=na();Vr("matTooltip",e._intl.firstPageLabel)("matTooltipDisabled",e._previousButtonsDisabled())("matTooltipPosition","above")("disabled",e._previousButtonsDisabled()),Ir("aria-label",e._intl.firstPageLabel)}}function jT(e,t){if(1&e){const e=qr();dn(),un(),Hr(0,"button",23),Xr("click",function(){return Lt(e),na().lastPage()}),dn(),Hr(1,"svg",7),Ur(2,"path",24),jr(),jr()}if(2&e){const e=na();Vr("matTooltip",e._intl.lastPageLabel)("matTooltipDisabled",e._nextButtonsDisabled())("matTooltipPosition","above")("disabled",e._nextButtonsDisabled()),Ir("aria-label",e._intl.lastPageLabel)}}let UT=(()=>{class e{constructor(){this.changes=new A,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=(e,t,n)=>{if(0==n||0==t)return"0 of "+n;const i=e*t;return`${i+1} \u2013 ${i<(n=Math.max(n,0))?Math.min(i+t,n):i+t} of ${n}`}}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=pe({factory:function(){return new e},token:e,providedIn:"root"}),e})();const WT={provide:UT,deps:[[new yi,new wi,UT]],useFactory:function(e){return e||new UT}},GT=new Xn("MAT_PAGINATOR_DEFAULT_OPTIONS");class $T{}const qT=SE(OE($T));let YT=(()=>{class e extends qT{constructor(e,t,n){if(super(),this._intl=e,this._changeDetectorRef=t,this._pageIndex=0,this._length=0,this._pageSizeOptions=[],this._hidePageSize=!1,this._showFirstLastButtons=!1,this.page=new yc,this._intlChanges=e.changes.subscribe(()=>this._changeDetectorRef.markForCheck()),n){const{pageSize:e,pageSizeOptions:t,hidePageSize:i,showFirstLastButtons:s}=n;null!=e&&(this._pageSize=e),null!=t&&(this._pageSizeOptions=t),null!=i&&(this._hidePageSize=i),null!=s&&(this._showFirstLastButtons=s)}}get pageIndex(){return this._pageIndex}set pageIndex(e){this._pageIndex=Math.max(AP(e),0),this._changeDetectorRef.markForCheck()}get length(){return this._length}set length(e){this._length=AP(e),this._changeDetectorRef.markForCheck()}get pageSize(){return this._pageSize}set pageSize(e){this._pageSize=Math.max(AP(e),0),this._updateDisplayedPageSizeOptions()}get pageSizeOptions(){return this._pageSizeOptions}set pageSizeOptions(e){this._pageSizeOptions=(e||[]).map(e=>AP(e)),this._updateDisplayedPageSizeOptions()}get hidePageSize(){return this._hidePageSize}set hidePageSize(e){this._hidePageSize=xP(e)}get showFirstLastButtons(){return this._showFirstLastButtons}set showFirstLastButtons(e){this._showFirstLastButtons=xP(e)}ngOnInit(){this._initialized=!0,this._updateDisplayedPageSizeOptions(),this._markInitialized()}ngOnDestroy(){this._intlChanges.unsubscribe()}nextPage(){if(!this.hasNextPage())return;const e=this.pageIndex;this.pageIndex++,this._emitPageEvent(e)}previousPage(){if(!this.hasPreviousPage())return;const e=this.pageIndex;this.pageIndex--,this._emitPageEvent(e)}firstPage(){if(!this.hasPreviousPage())return;const e=this.pageIndex;this.pageIndex=0,this._emitPageEvent(e)}lastPage(){if(!this.hasNextPage())return;const e=this.pageIndex;this.pageIndex=this.getNumberOfPages()-1,this._emitPageEvent(e)}hasPreviousPage(){return this.pageIndex>=1&&0!=this.pageSize}hasNextPage(){const e=this.getNumberOfPages()-1;return this.pageIndex<e&&0!=this.pageSize}getNumberOfPages(){return this.pageSize?Math.ceil(this.length/this.pageSize):0}_changePageSize(e){const t=this.pageIndex;this.pageIndex=Math.floor(this.pageIndex*this.pageSize/e)||0,this.pageSize=e,this._emitPageEvent(t)}_nextButtonsDisabled(){return this.disabled||!this.hasNextPage()}_previousButtonsDisabled(){return this.disabled||!this.hasPreviousPage()}_updateDisplayedPageSizeOptions(){this._initialized&&(this.pageSize||(this._pageSize=0!=this.pageSizeOptions.length?this.pageSizeOptions[0]:50),this._displayedPageSizeOptions=this.pageSizeOptions.slice(),-1===this._displayedPageSizeOptions.indexOf(this.pageSize)&&this._displayedPageSizeOptions.push(this.pageSize),this._displayedPageSizeOptions.sort((e,t)=>e-t),this._changeDetectorRef.markForCheck())}_emitPageEvent(e){this.page.emit({previousPageIndex:e,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})}}return e.\u0275fac=function(t){return new(t||e)(zr(UT),zr(Tl),zr(void 0))},e.\u0275dir=Ke({type:e,inputs:{pageIndex:"pageIndex",length:"length",pageSize:"pageSize",pageSizeOptions:"pageSizeOptions",hidePageSize:"hidePageSize",showFirstLastButtons:"showFirstLastButtons",color:"color"},outputs:{page:"page"},features:[vr]}),e})(),ZT=(()=>{class e extends YT{constructor(e,t,n){super(e,t,n),n&&null!=n.formFieldAppearance&&(this._formFieldAppearance=n.formFieldAppearance)}}return e.\u0275fac=function(t){return new(t||e)(zr(UT),zr(Tl),zr(GT,8))},e.\u0275cmp=$e({type:e,selectors:[["mat-paginator"]],hostAttrs:[1,"mat-paginator"],inputs:{disabled:"disabled"},exportAs:["matPaginator"],features:[vr],decls:14,vars:14,consts:[[1,"mat-paginator-outer-container"],[1,"mat-paginator-container"],["class","mat-paginator-page-size",4,"ngIf"],[1,"mat-paginator-range-actions"],[1,"mat-paginator-range-label"],["mat-icon-button","","type","button","class","mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-previous",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["viewBox","0 0 24 24","focusable","false",1,"mat-paginator-icon"],["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-next",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"],["mat-icon-button","","type","button","class","mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],[1,"mat-paginator-page-size"],[1,"mat-paginator-page-size-label"],["class","mat-paginator-page-size-select",3,"appearance","color",4,"ngIf"],["class","mat-paginator-page-size-value",4,"ngIf"],[1,"mat-paginator-page-size-select",3,"appearance","color"],[3,"value","disabled","aria-label","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"mat-paginator-page-size-value"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"]],template:function(e,t){1&e&&(Hr(0,"div",0),Hr(1,"div",1),Fr(2,NT,5,3,"div",2),Hr(3,"div",3),Hr(4,"div",4),Da(5),jr(),Fr(6,HT,3,5,"button",5),Hr(7,"button",6),Xr("click",function(){return t.previousPage()}),dn(),Hr(8,"svg",7),Ur(9,"path",8),jr(),jr(),un(),Hr(10,"button",9),Xr("click",function(){return t.nextPage()}),dn(),Hr(11,"svg",7),Ur(12,"path",10),jr(),jr(),Fr(13,jT,3,5,"button",11),jr(),jr(),jr()),2&e&&(no(2),Vr("ngIf",!t.hidePageSize),no(3),Ma(" ",t._intl.getRangeLabel(t.pageIndex,t.pageSize,t.length)," "),no(1),Vr("ngIf",t.showFirstLastButtons),no(1),Vr("matTooltip",t._intl.previousPageLabel)("matTooltipDisabled",t._previousButtonsDisabled())("matTooltipPosition","above")("disabled",t._previousButtonsDisabled()),Ir("aria-label",t._intl.previousPageLabel),no(3),Vr("matTooltip",t._intl.nextPageLabel)("matTooltipDisabled",t._nextButtonsDisabled())("matTooltipPosition","above")("disabled",t._nextButtonsDisabled()),Ir("aria-label",t._intl.nextPageLabel),no(3),Vr("ngIf",t.showFirstLastButtons))},directives:[Wu,gM,RT,BO,kT,ju,JE],styles:[".mat-paginator{display:block}.mat-paginator-outer-container{display:flex}.mat-paginator-container{display:flex;align-items:center;justify-content:flex-end;padding:0 8px;flex-wrap:wrap-reverse;width:100%}.mat-paginator-page-size{display:flex;align-items:baseline;margin-right:8px}[dir=rtl] .mat-paginator-page-size{margin-right:0;margin-left:8px}.mat-paginator-page-size-label{margin:0 4px}.mat-paginator-page-size-select{margin:6px 4px 0 4px;width:56px}.mat-paginator-page-size-select.mat-form-field-appearance-outline{width:64px}.mat-paginator-page-size-select.mat-form-field-appearance-fill{width:64px}.mat-paginator-range-label{margin:0 32px 0 24px}.mat-paginator-range-actions{display:flex;align-items:center}.mat-paginator-icon{width:28px;fill:currentColor}[dir=rtl] .mat-paginator-icon{transform:rotate(180deg)}\n"],encapsulation:2,changeDetection:0}),e})(),QT=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=fe({providers:[WT],imports:[[uh,fM,ET,FT,CE]]}),e})(),XT=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=fe({imports:[[CE,uh],CE]}),e})(),KT=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=fe({imports:[[uh,CE,TP,CD],CD,CE]}),e})(),JT=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=fe({}),e})(),eI=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=fe({imports:[[JT,HE,CE,VP],JT,CE]}),e})(),tI=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=fe({imports:[[uh,CE],CE]}),e})(),nI=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=fe({imports:[[rO,iS,uh,fM,CE],CE]}),e})();const iI=["mat-sort-header",""];function sI(e,t){if(1&e){const e=qr();Hr(0,"div",3),Xr("@arrowPosition.start",function(){return Lt(e),na()._disableViewStateAnimation=!0})("@arrowPosition.done",function(){return Lt(e),na()._disableViewStateAnimation=!1}),Ur(1,"div",4),Hr(2,"div",5),Ur(3,"div",6),Ur(4,"div",7),Ur(5,"div",8),jr(),jr()}if(2&e){const e=na();Vr("@arrowOpacity",e._getArrowViewState())("@arrowPosition",e._getArrowViewState())("@allowChildren",e._getArrowDirectionState()),no(2),Vr("@indicator",e._getArrowDirectionState()),no(1),Vr("@leftPointer",e._getArrowDirectionState()),no(1),Vr("@rightPointer",e._getArrowDirectionState())}}const oI=["*"],rI=new Xn("MAT_SORT_DEFAULT_OPTIONS");class aI{}const lI=OE(SE(aI));let cI=(()=>{class e extends lI{constructor(e){super(),this._defaultOptions=e,this.sortables=new Map,this._stateChanges=new A,this.start="asc",this._direction="",this.sortChange=new yc}get direction(){return this._direction}set direction(e){this._direction=e}get disableClear(){return this._disableClear}set disableClear(e){this._disableClear=xP(e)}register(e){this.sortables.set(e.id,e)}deregister(e){this.sortables.delete(e.id)}sort(e){this.active!=e.id?(this.active=e.id,this.direction=e.start?e.start:this.start):this.direction=this.getNextSortDirection(e),this.sortChange.emit({active:this.active,direction:this.direction})}getNextSortDirection(e){var t,n,i;if(!e)return"";const s=null!==(n=null!==(t=null==e?void 0:e.disableClear)&&void 0!==t?t:this.disableClear)&&void 0!==n?n:!!(null===(i=this._defaultOptions)||void 0===i?void 0:i.disableClear);let o=function(e,t){let n=["asc","desc"];return"desc"==e&&n.reverse(),t||n.push(""),n}(e.start||this.start,s),r=o.indexOf(this.direction)+1;return r>=o.length&&(r=0),o[r]}ngOnInit(){this._markInitialized()}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return e.\u0275fac=function(t){return new(t||e)(zr(rI,8))},e.\u0275dir=Ke({type:e,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{disabled:["matSortDisabled","disabled"],start:["matSortStart","start"],direction:["matSortDirection","direction"],disableClear:["matSortDisableClear","disableClear"],active:["matSortActive","active"]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[vr,dt]}),e})();const dI=wE.ENTERING+" "+yE.STANDARD_CURVE,uI={indicator:Jh("indicator",[ip("active-asc, asc",np({transform:"translateY(0px)"})),ip("active-desc, desc",np({transform:"translateY(10px)"})),op("active-asc <=> active-desc",ep(dI))]),leftPointer:Jh("leftPointer",[ip("active-asc, asc",np({transform:"rotate(-45deg)"})),ip("active-desc, desc",np({transform:"rotate(45deg)"})),op("active-asc <=> active-desc",ep(dI))]),rightPointer:Jh("rightPointer",[ip("active-asc, asc",np({transform:"rotate(45deg)"})),ip("active-desc, desc",np({transform:"rotate(-45deg)"})),op("active-asc <=> active-desc",ep(dI))]),arrowOpacity:Jh("arrowOpacity",[ip("desc-to-active, asc-to-active, active",np({opacity:1})),ip("desc-to-hint, asc-to-hint, hint",np({opacity:.54})),ip("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",np({opacity:0})),op("* => asc, * => desc, * => active, * => hint, * => void",ep("0ms")),op("* <=> *",ep(dI))]),arrowPosition:Jh("arrowPosition",[op("* => desc-to-hint, * => desc-to-active",ep(dI,sp([np({transform:"translateY(-25%)"}),np({transform:"translateY(0)"})]))),op("* => hint-to-desc, * => active-to-desc",ep(dI,sp([np({transform:"translateY(0)"}),np({transform:"translateY(25%)"})]))),op("* => asc-to-hint, * => asc-to-active",ep(dI,sp([np({transform:"translateY(25%)"}),np({transform:"translateY(0)"})]))),op("* => hint-to-asc, * => active-to-asc",ep(dI,sp([np({transform:"translateY(0)"}),np({transform:"translateY(-25%)"})]))),ip("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",np({transform:"translateY(0)"})),ip("hint-to-desc, active-to-desc, desc",np({transform:"translateY(-25%)"})),ip("hint-to-asc, active-to-asc, asc",np({transform:"translateY(25%)"}))]),allowChildren:Jh("allowChildren",[op("* <=> *",[ap("@*",rp(),{optional:!0})])])};let hI=(()=>{class e{constructor(){this.changes=new A,this.sortButtonLabel=e=>"Change sorting for "+e}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=pe({factory:function(){return new e},token:e,providedIn:"root"}),e})();const pI={provide:hI,deps:[[new yi,new wi,hI]],useFactory:function(e){return e||new hI}};class gI{}const fI=SE(gI);let mI=(()=>{class e extends fI{constructor(e,t,n,i,s,o){super(),this._intl=e,this._changeDetectorRef=t,this._sort=n,this._columnDef=i,this._focusMonitor=s,this._elementRef=o,this._showIndicatorHint=!1,this._arrowDirection="",this._disableViewStateAnimation=!1,this.arrowPosition="after",this._handleStateChanges()}get disableClear(){return this._disableClear}set disableClear(e){this._disableClear=xP(e)}ngOnInit(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._updateArrowDirection(),this._setAnimationTransitionState({toState:this._isSorted()?"active":this._arrowDirection}),this._sort.register(this)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{const t=!!e;t!==this._showIndicatorHint&&(this._setIndicatorHintVisible(t),this._changeDetectorRef.markForCheck())})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._rerenderSubscription.unsubscribe()}_setIndicatorHintVisible(e){this._isDisabled()&&e||(this._showIndicatorHint=e,this._isSorted()||(this._updateArrowDirection(),this._setAnimationTransitionState(this._showIndicatorHint?{fromState:this._arrowDirection,toState:"hint"}:{fromState:"hint",toState:this._arrowDirection})))}_setAnimationTransitionState(e){this._viewState=e,this._disableViewStateAnimation&&(this._viewState={toState:e.toState})}_toggleOnInteraction(){this._sort.sort(this),"hint"!==this._viewState.toState&&"active"!==this._viewState.toState||(this._disableViewStateAnimation=!0)}_handleClick(){this._isDisabled()||this._sort.sort(this)}_handleKeydown(e){this._isDisabled()||32!==e.keyCode&&13!==e.keyCode||(e.preventDefault(),this._toggleOnInteraction())}_isSorted(){return this._sort.active==this.id&&("asc"===this._sort.direction||"desc"===this._sort.direction)}_getArrowDirectionState(){return`${this._isSorted()?"active-":""}${this._arrowDirection}`}_getArrowViewState(){const e=this._viewState.fromState;return(e?e+"-to-":"")+this._viewState.toState}_updateArrowDirection(){this._arrowDirection=this._isSorted()?this._sort.direction:this.start||this._sort.start}_isDisabled(){return this._sort.disabled||this.disabled}_getAriaSortAttribute(){return this._isSorted()?"asc"==this._sort.direction?"ascending":"descending":"none"}_renderArrow(){return!this._isDisabled()||this._isSorted()}_handleStateChanges(){this._rerenderSubscription=G(this._sort.sortChange,this._sort._stateChanges,this._intl.changes).subscribe(()=>{this._isSorted()&&(this._updateArrowDirection(),"hint"!==this._viewState.toState&&"active"!==this._viewState.toState||(this._disableViewStateAnimation=!0),this._setAnimationTransitionState({fromState:this._arrowDirection,toState:"active"}),this._showIndicatorHint=!1),!this._isSorted()&&this._viewState&&"active"===this._viewState.toState&&(this._disableViewStateAnimation=!1,this._setAnimationTransitionState({fromState:"active",toState:this._arrowDirection})),this._changeDetectorRef.markForCheck()})}}return e.\u0275fac=function(t){return new(t||e)(zr(hI),zr(Tl),zr(cI,8),zr("MAT_SORT_HEADER_COLUMN_DEF",8),zr(lE),zr(rl))},e.\u0275cmp=$e({type:e,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(e,t){1&e&&Xr("click",function(){return t._handleClick()})("keydown",function(e){return t._handleKeydown(e)})("mouseenter",function(){return t._setIndicatorHintVisible(!0)})("mouseleave",function(){return t._setIndicatorHintVisible(!1)}),2&e&&(Ir("aria-sort",t._getAriaSortAttribute()),ma("mat-sort-header-disabled",t._isDisabled()))},inputs:{disabled:"disabled",arrowPosition:"arrowPosition",disableClear:"disableClear",id:["mat-sort-header","id"],start:"start"},exportAs:["matSortHeader"],features:[vr],attrs:iI,ngContentSelectors:oI,decls:4,vars:6,consts:[["role","button",1,"mat-sort-header-container","mat-focus-indicator"],[1,"mat-sort-header-content"],["class","mat-sort-header-arrow",4,"ngIf"],[1,"mat-sort-header-arrow"],[1,"mat-sort-header-stem"],[1,"mat-sort-header-indicator"],[1,"mat-sort-header-pointer-left"],[1,"mat-sort-header-pointer-right"],[1,"mat-sort-header-pointer-middle"]],template:function(e,t){1&e&&(sa(),Hr(0,"div",0),Hr(1,"div",1),oa(2),jr(),Fr(3,sI,6,6,"div",2),jr()),2&e&&(ma("mat-sort-header-sorted",t._isSorted())("mat-sort-header-position-before","before"==t.arrowPosition),Ir("tabindex",t._isDisabled()?null:0),no(3),Vr("ngIf",t._renderArrow()))},directives:[Wu],styles:[".mat-sort-header-container{display:flex;cursor:pointer;align-items:center;letter-spacing:normal;outline:0}[mat-sort-header].cdk-keyboard-focused .mat-sort-header-container,[mat-sort-header].cdk-program-focused .mat-sort-header-container{border-bottom:solid 1px currentColor}.mat-sort-header-disabled .mat-sort-header-container{cursor:default}.mat-sort-header-content{text-align:center;display:flex;align-items:center}.mat-sort-header-position-before{flex-direction:row-reverse}.mat-sort-header-arrow{height:12px;width:12px;min-width:12px;position:relative;display:flex;opacity:0}.mat-sort-header-arrow,[dir=rtl] .mat-sort-header-position-before .mat-sort-header-arrow{margin:0 0 0 6px}.mat-sort-header-position-before .mat-sort-header-arrow,[dir=rtl] .mat-sort-header-arrow{margin:0 6px 0 0}.mat-sort-header-stem{background:currentColor;height:10px;width:2px;margin:auto;display:flex;align-items:center}.cdk-high-contrast-active .mat-sort-header-stem{width:0;border-left:solid 2px}.mat-sort-header-indicator{width:100%;height:2px;display:flex;align-items:center;position:absolute;top:0;left:0}.mat-sort-header-pointer-middle{margin:auto;height:2px;width:2px;background:currentColor;transform:rotate(45deg)}.cdk-high-contrast-active .mat-sort-header-pointer-middle{width:0;height:0;border-top:solid 2px;border-left:solid 2px}.mat-sort-header-pointer-left,.mat-sort-header-pointer-right{background:currentColor;width:6px;height:2px;position:absolute;top:0}.cdk-high-contrast-active .mat-sort-header-pointer-left,.cdk-high-contrast-active .mat-sort-header-pointer-right{width:0;height:0;border-left:solid 6px;border-top:solid 2px}.mat-sort-header-pointer-left{transform-origin:right;left:0}.mat-sort-header-pointer-right{transform-origin:left;right:0}\n"],encapsulation:2,data:{animation:[uI.indicator,uI.leftPointer,uI.rightPointer,uI.arrowOpacity,uI.arrowPosition,uI.allowChildren]},changeDetection:0}),e})(),bI=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=fe({providers:[pI],imports:[[uh,CE]]}),e})(),vI=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=fe({imports:[[SD]]}),e})(),yI=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=fe({imports:[[vI,CE],CE]}),e})(),wI=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=fe({imports:[[uh,CE,iS,HE,VP,uE],CE]}),e})();const _I=["mat-menu-item",""],xI=["*"];function AI(e,t){if(1&e){const e=qr();Hr(0,"div",0),Xr("keydown",function(t){return Lt(e),na()._handleKeydown(t)})("click",function(){return Lt(e),na().closed.emit("click")})("@transformMenu.start",function(t){return Lt(e),na()._onAnimationStart(t)})("@transformMenu.done",function(t){return Lt(e),na()._onAnimationDone(t)}),Hr(1,"div",1),oa(2),jr(),jr()}if(2&e){const e=na();Vr("id",e.panelId)("ngClass",e._classList)("@transformMenu",e._panelAnimationState),Ir("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby||null)("aria-describedby",e.ariaDescribedby||null)}}const CI={transformMenu:Jh("transformMenu",[ip("void",np({opacity:0,transform:"scale(0.8)"})),op("void => enter",ep("120ms cubic-bezier(0, 0, 0.2, 1)",np({opacity:1,transform:"scale(1)"}))),op("* => void",ep("100ms 25ms linear",np({opacity:0})))]),fadeInItems:Jh("fadeInItems",[ip("showing",np({opacity:1})),op("void => *",[np({opacity:0}),ep("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},SI=new Xn("MatMenuContent"),kI=new Xn("MAT_MENU_PANEL");class PI{}const EI=PE(SE(PI));let DI=(()=>{class e extends EI{constructor(e,t,n,i){super(),this._elementRef=e,this._focusMonitor=n,this._parentMenu=i,this.role="menuitem",this._hovered=new A,this._focused=new A,this._highlighted=!1,this._triggersSubmenu=!1,i&&i.addItem&&i.addItem(this)}focus(e,t){this._focusMonitor&&e?this._focusMonitor.focusVia(this._getHostElement(),e,t):this._getHostElement().focus(t),this._focused.next(this)}ngAfterViewInit(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}ngOnDestroy(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._elementRef.nativeElement}_checkDisabled(e){this.disabled&&(e.preventDefault(),e.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){var e,t;const n=this._elementRef.nativeElement.cloneNode(!0),i=n.querySelectorAll("mat-icon, .material-icons");for(let s=0;s<i.length;s++){const t=i[s];null===(e=t.parentNode)||void 0===e||e.removeChild(t)}return(null===(t=n.textContent)||void 0===t?void 0:t.trim())||""}}return e.\u0275fac=function(t){return new(t||e)(zr(rl),zr(Hd),zr(lE),zr(kI,8))},e.\u0275cmp=$e({type:e,selectors:[["","mat-menu-item",""]],hostAttrs:[1,"mat-focus-indicator"],hostVars:10,hostBindings:function(e,t){1&e&&Xr("click",function(e){return t._checkDisabled(e)})("mouseenter",function(){return t._handleMouseEnter()}),2&e&&(Ir("role",t.role)("tabindex",t._getTabIndex())("aria-disabled",t.disabled.toString())("disabled",t.disabled||null),ma("mat-menu-item",!0)("mat-menu-item-highlighted",t._highlighted)("mat-menu-item-submenu-trigger",t._triggersSubmenu))},inputs:{disabled:"disabled",disableRipple:"disableRipple",role:"role"},exportAs:["matMenuItem"],features:[vr],attrs:_I,ngContentSelectors:xI,decls:2,vars:2,consts:[["matRipple","",1,"mat-menu-ripple",3,"matRippleDisabled","matRippleTrigger"]],template:function(e,t){1&e&&(sa(),oa(0),Ur(1,"div",0)),2&e&&(no(1),Vr("matRippleDisabled",t.disableRipple||t.disabled)("matRippleTrigger",t._getHostElement()))},directives:[NE],encapsulation:2,changeDetection:0}),e})();const OI=new Xn("mat-menu-default-options",{providedIn:"root",factory:function(){return{overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"}}});let MI=0,TI=(()=>{class e{constructor(e,t,n){this._elementRef=e,this._ngZone=t,this._defaultOptions=n,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new _c,this._tabSubscription=u.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new A,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new yc,this.close=this.closed,this.panelId="mat-menu-panel-"+MI++}get xPosition(){return this._xPosition}set xPosition(e){this._xPosition=e,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(e){this._yPosition=e,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(e){this._overlapTrigger=xP(e)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(e){this._hasBackdrop=xP(e)}set panelClass(e){const t=this._previousPanelClass;t&&t.length&&t.split(" ").forEach(e=>{this._classList[e]=!1}),this._previousPanelClass=e,e&&e.length&&(e.split(" ").forEach(e=>{this._classList[e]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(e){this.panelClass=e}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new ZP(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._tabSubscription=this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(uv(this._directDescendantItems),sv(e=>G(...e.map(e=>e._focused)))).subscribe(e=>this._keyManager.updateActiveItem(e))}ngOnDestroy(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}_hovered(){return this._directDescendantItems.changes.pipe(uv(this._directDescendantItems),sv(e=>G(...e.map(e=>e._hovered))))}addItem(e){}removeItem(e){}_handleKeydown(e){const t=e.keyCode,n=this._keyManager;switch(t){case 27:mP(e)||(e.preventDefault(),this.closed.emit("keydown"));break;case 37:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case 39:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:38!==t&&40!==t||n.setFocusOrigin("keyboard"),n.onKeydown(e)}}focusFirstItem(e="program"){this.lazyContent?this._ngZone.onStable.pipe(lv(1)).subscribe(()=>this._focusFirstItem(e)):this._focusFirstItem(e)}_focusFirstItem(e){const t=this._keyManager;if(t.setFocusOrigin(e).setFirstItemActive(),!t.activeItem&&this._directDescendantItems.length){let e=this._directDescendantItems.first._getHostElement().parentElement;for(;e;){if("menu"===e.getAttribute("role")){e.focus();break}e=e.parentElement}}}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(e){const t="mat-elevation-z"+Math.min(4+e,24),n=Object.keys(this._classList).find(e=>e.startsWith("mat-elevation-z"));n&&n!==this._previousElevation||(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[t]=!0,this._previousElevation=t)}setPositionClasses(e=this.xPosition,t=this.yPosition){const n=this._classList;n["mat-menu-before"]="before"===e,n["mat-menu-after"]="after"===e,n["mat-menu-above"]="above"===t,n["mat-menu-below"]="below"===t}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(e){this._animationDone.next(e),this._isAnimating=!1}_onAnimationStart(e){this._isAnimating=!0,"enter"===e.toState&&0===this._keyManager.activeItemIndex&&(e.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe(uv(this._allItems)).subscribe(e=>{this._directDescendantItems.reset(e.filter(e=>e._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return e.\u0275fac=function(t){return new(t||e)(zr(rl),zr(ad),zr(OI))},e.\u0275dir=Ke({type:e,contentQueries:function(e,t,n){if(1&e&&(Ic(n,SI,1),Ic(n,DI,1),Ic(n,DI,0)),2&e){let e;Mc(e=Rc())&&(t.lazyContent=e.first),Mc(e=Rc())&&(t._allItems=e),Mc(e=Rc())&&(t.items=e)}},viewQuery:function(e,t){if(1&e&&Tc(zl,1),2&e){let e;Mc(e=Rc())&&(t.templateRef=e.first)}},inputs:{backdropClass:"backdropClass",xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"]},outputs:{closed:"closed",close:"close"}}),e})(),II=(()=>{class e extends TI{constructor(e,t,n){super(e,t,n)}}return e.\u0275fac=function(t){return new(t||e)(zr(rl),zr(ad),zr(OI))},e.\u0275cmp=$e({type:e,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(e,t){2&e&&Ir("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[Ja([{provide:kI,useExisting:e}]),vr],ngContentSelectors:xI,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(e,t){1&e&&(sa(),Fr(0,AI,3,6,"ng-template"))},directives:[Nu],styles:['mat-menu{display:none}.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]{pointer-events:none}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.cdk-high-contrast-active .mat-menu-item.cdk-program-focused,.cdk-high-contrast-active .mat-menu-item.cdk-keyboard-focused,.cdk-high-contrast-active .mat-menu-item-highlighted{outline:dotted 1px}.mat-menu-item-submenu-trigger{padding-right:32px}.mat-menu-item-submenu-trigger::after{width:0;height:0;border-style:solid;border-width:5px 0 5px 5px;border-color:transparent transparent transparent currentColor;content:"";display:inline-block;position:absolute;top:50%;right:16px;transform:translateY(-50%)}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}[dir=rtl] .mat-menu-item-submenu-trigger::after{right:auto;left:16px;transform:rotateY(180deg) translateY(-50%)}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\n'],encapsulation:2,data:{animation:[CI.transformMenu,CI.fadeInItems]},changeDetection:0}),e})();const RI=new Xn("mat-menu-scroll-strategy"),LI={provide:RI,deps:[eO],useFactory:function(e){return()=>e.scrollStrategies.reposition()}},FI=IP({passive:!0});let BI=(()=>{class e{constructor(e,t,n,i,s,o,r,a){this._overlay=e,this._element=t,this._viewContainerRef=n,this._menuItemInstance=o,this._dir=r,this._focusMonitor=a,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=u.EMPTY,this._hoverSubscription=u.EMPTY,this._menuCloseSubscription=u.EMPTY,this._handleTouchStart=e=>{oE(e)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new yc,this.onMenuOpen=this.menuOpened,this.menuClosed=new yc,this.onMenuClose=this.menuClosed,this._scrollStrategy=i,this._parentMaterialMenu=s instanceof TI?s:void 0,t.nativeElement.addEventListener("touchstart",this._handleTouchStart,FI),o&&(o._triggersSubmenu=this.triggersSubmenu())}get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(e){this.menu=e}get menu(){return this._menu}set menu(e){e!==this._menu&&(this._menu=e,this._menuCloseSubscription.unsubscribe(),e&&(this._menuCloseSubscription=e.close.subscribe(e=>{this._destroyMenu(e),"click"!==e&&"tab"!==e||!this._parentMaterialMenu||this._parentMaterialMenu.closed.emit(e)})))}ngAfterContentInit(){this._checkMenu(),this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,FI),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}triggersSubmenu(){return!(!this._menuItemInstance||!this._parentMaterialMenu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){if(this._menuOpen)return;this._checkMenu();const e=this._createOverlay(),t=e.getConfig();this._setPosition(t.positionStrategy),t.hasBackdrop=null==this.menu.hasBackdrop?!this.triggersSubmenu():this.menu.hasBackdrop,e.attach(this._getPortal()),this.menu.lazyContent&&this.menu.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(),this.menu instanceof TI&&this.menu._startAnimation()}closeMenu(){this.menu.close.emit()}focus(e,t){this._focusMonitor&&e?this._focusMonitor.focusVia(this._element,e,t):this._element.nativeElement.focus(t)}_destroyMenu(e){if(!this._overlayRef||!this.menuOpen)return;const t=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),!this.restoreFocus||"keydown"!==e&&this._openedBy&&this.triggersSubmenu()||this.focus(this._openedBy),this._openedBy=void 0,t instanceof TI?(t._resetAnimation(),t.lazyContent?t._animationDone.pipe(db(e=>"void"===e.toState),lv(1),vD(t.lazyContent._attached)).subscribe({next:()=>t.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),t.lazyContent&&t.lazyContent.detach())}_initMenu(){this.menu.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,this.menu.direction=this.dir,this._setMenuElevation(),this.menu.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(){if(this.menu.setElevation){let e=0,t=this.menu.parentMenu;for(;t;)e++,t=t.parentMenu;this.menu.setElevation(e)}}_setIsMenuOpen(e){this._menuOpen=e,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&(this._menuItemInstance._highlighted=e)}_checkMenu(){}_createOverlay(){if(!this._overlayRef){const e=this._getOverlayConfig();this._subscribeToPositions(e.positionStrategy),this._overlayRef=this._overlay.create(e),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(){return new FD({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:this.menu.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:this.menu.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(e){this.menu.setPositionClasses&&e.positionChanges.subscribe(e=>{this.menu.setPositionClasses("start"===e.connectionPair.overlayX?"after":"before","top"===e.connectionPair.overlayY?"below":"above")})}_setPosition(e){let[t,n]="before"===this.menu.xPosition?["end","start"]:["start","end"],[i,s]="above"===this.menu.yPosition?["bottom","top"]:["top","bottom"],[o,r]=[i,s],[a,l]=[t,n],c=0;this.triggersSubmenu()?(l=t="before"===this.menu.xPosition?"start":"end",n=a="end"===t?"start":"end",c="bottom"===i?8:-8):this.menu.overlapTrigger||(o="top"===i?"bottom":"top",r="top"===s?"bottom":"top"),e.withPositions([{originX:t,originY:o,overlayX:a,overlayY:i,offsetY:c},{originX:n,originY:o,overlayX:l,overlayY:i,offsetY:c},{originX:t,originY:r,overlayX:a,overlayY:s,offsetY:-c},{originX:n,originY:r,overlayX:l,overlayY:s,offsetY:-c}])}_menuClosingActions(){const e=this._overlayRef.backdropClick(),t=this._overlayRef.detachments();return G(e,this._parentMaterialMenu?this._parentMaterialMenu.closed:lb(),this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe(db(e=>e!==this._menuItemInstance),db(()=>this._menuOpen)):lb(),t)}_handleMousedown(e){sE(e)||(this._openedBy=0===e.button?"mouse":void 0,this.triggersSubmenu()&&e.preventDefault())}_handleKeydown(e){const t=e.keyCode;13!==t&&32!==t||(this._openedBy="keyboard"),this.triggersSubmenu()&&(39===t&&"ltr"===this.dir||37===t&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(e){this.triggersSubmenu()?(e.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){this.triggersSubmenu()&&this._parentMaterialMenu&&(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe(db(e=>e===this._menuItemInstance&&!e.disabled),VO(0,hD)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof TI&&this.menu._isAnimating?this.menu._animationDone.pipe(lv(1),VO(0,hD),vD(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(){return this._portal&&this._portal.templateRef===this.menu.templateRef||(this._portal=new KC(this.menu.templateRef,this._viewContainerRef)),this._portal}}return e.\u0275fac=function(t){return new(t||e)(zr(eO),zr(rl),zr(Gl),zr(RI),zr(kI,8),zr(DI,10),zr(pE,8),zr(lE))},e.\u0275dir=Ke({type:e,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:["aria-haspopup","true",1,"mat-menu-trigger"],hostVars:2,hostBindings:function(e,t){1&e&&Xr("mousedown",function(e){return t._handleMousedown(e)})("keydown",function(e){return t._handleKeydown(e)})("click",function(e){return t._handleClick(e)}),2&e&&Ir("aria-expanded",t.menuOpen||null)("aria-controls",t.menuOpen?t.menu.panelId:null)},inputs:{restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"],_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"},exportAs:["matMenuTrigger"]}),e})(),zI=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=fe({providers:[LI],imports:[CE]}),e})(),VI=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=fe({providers:[LI],imports:[[uh,CE,HE,rO,zI],CD,CE,zI]}),e})();function NI(e){const{subscriber:t,counter:n,period:i}=e;t.next(n),this.schedule({subscriber:t,counter:n+1,period:i},i)}function HI(e,t){for(let n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function jI(e,t){const n=t?"":"none";HI(e.style,{touchAction:t?"":"none",webkitUserDrag:t?"":"none",webkitTapHighlightColor:t?"":"transparent",userSelect:n,msUserSelect:n,webkitUserSelect:n,MozUserSelect:n})}function UI(e,t){const n=e.style;n.position=t?"":"fixed",n.top=n.opacity=t?"":"0",n.left=t?"":"-999em"}function WI(e){const t=e.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(e)*t}function GI(e,t){return e.getPropertyValue(t).split(",").map(e=>e.trim())}function $I(e){const t=e.getBoundingClientRect();return{top:t.top,right:t.right,bottom:t.bottom,left:t.left,width:t.width,height:t.height}}function qI(e,t,n){const{top:i,bottom:s,left:o,right:r}=e;return n>=i&&n<=s&&t>=o&&t<=r}function YI(e,t,n){e.top+=t,e.bottom=e.top+e.height,e.left+=n,e.right=e.left+e.width}function ZI(e,t,n,i){const{top:s,right:o,bottom:r,left:a,width:l,height:c}=e,d=l*t,u=c*t;return i>s-u&&i<r+u&&n>a-d&&n<o+d}class QI{constructor(e,t){this._document=e,this._viewportRuler=t,this.positions=new Map}clear(){this.positions.clear()}cache(e){this.clear(),this.positions.set(this._document,{scrollPosition:this._viewportRuler.getViewportScrollPosition()}),e.forEach(e=>{this.positions.set(e,{scrollPosition:{top:e.scrollTop,left:e.scrollLeft},clientRect:$I(e)})})}handleScroll(e){const t=e.target,n=this.positions.get(t);if(!n)return null;const i=t===this._document?t.documentElement:t,s=n.scrollPosition;let o,r;if(t===this._document){const e=this._viewportRuler.getViewportScrollPosition();o=e.top,r=e.left}else o=t.scrollTop,r=t.scrollLeft;const a=s.top-o,l=s.left-r;return this.positions.forEach((e,n)=>{e.clientRect&&t!==n&&i.contains(n)&&YI(e.clientRect,a,l)}),s.top=o,s.left=r,{top:a,left:l}}}function XI(e){const t=e.cloneNode(!0),n=t.querySelectorAll("[id]"),i=e.nodeName.toLowerCase();t.removeAttribute("id");for(let s=0;s<n.length;s++)n[s].removeAttribute("id");return"canvas"===i?tR(e,t):"input"!==i&&"select"!==i&&"textarea"!==i||eR(e,t),KI("canvas",e,t,tR),KI("input, textarea, select",e,t,eR),t}function KI(e,t,n,i){const s=t.querySelectorAll(e);if(s.length){const t=n.querySelectorAll(e);for(let e=0;e<s.length;e++)i(s[e],t[e])}}let JI=0;function eR(e,t){"file"!==t.type&&(t.value=e.value),"radio"===t.type&&t.name&&(t.name=`mat-clone-${t.name}-${JI++}`)}function tR(e,t){const n=t.getContext("2d");if(n)try{n.drawImage(e,0,0)}catch(FH){}}const nR=IP({passive:!0}),iR=IP({passive:!1});class sR{constructor(e,t,n,i,s,o){this._config=t,this._document=n,this._ngZone=i,this._viewportRuler=s,this._dragDropRegistry=o,this._passiveTransform={x:0,y:0},this._activeTransform={x:0,y:0},this._moveEvents=new A,this._pointerMoveSubscription=u.EMPTY,this._pointerUpSubscription=u.EMPTY,this._scrollSubscription=u.EMPTY,this._resizeSubscription=u.EMPTY,this._boundaryElement=null,this._nativeInteractionsEnabled=!0,this._handles=[],this._disabledHandles=new Set,this._direction="ltr",this.dragStartDelay=0,this._disabled=!1,this.beforeStarted=new A,this.started=new A,this.released=new A,this.ended=new A,this.entered=new A,this.exited=new A,this.dropped=new A,this.moved=this._moveEvents,this._pointerDown=e=>{if(this.beforeStarted.next(),this._handles.length){const t=this._handles.find(t=>{const n=e.target;return!!n&&(n===t||t.contains(n))});!t||this._disabledHandles.has(t)||this.disabled||this._initializeDragSequence(t,e)}else this.disabled||this._initializeDragSequence(this._rootElement,e)},this._pointerMove=e=>{const t=this._getPointerPositionOnPage(e);if(!this._hasStartedDragging){if(Math.abs(t.x-this._pickupPositionOnPage.x)+Math.abs(t.y-this._pickupPositionOnPage.y)>=this._config.dragStartThreshold){const t=Date.now()>=this._dragStartTime+this._getDragStartDelay(e),n=this._dropContainer;if(!t)return void this._endDragSequence(e);n&&(n.isDragging()||n.isReceiving())||(e.preventDefault(),this._hasStartedDragging=!0,this._ngZone.run(()=>this._startDragSequence(e)))}return}this._boundaryElement&&(this._previewRect&&(this._previewRect.width||this._previewRect.height)||(this._previewRect=(this._preview||this._rootElement).getBoundingClientRect())),e.preventDefault();const n=this._getConstrainedPointerPosition(t);if(this._hasMoved=!0,this._lastKnownPointerPosition=t,this._updatePointerDirectionDelta(n),this._dropContainer)this._updateActiveDropContainer(n,t);else{const e=this._activeTransform;e.x=n.x-this._pickupPositionOnPage.x+this._passiveTransform.x,e.y=n.y-this._pickupPositionOnPage.y+this._passiveTransform.y,this._applyRootElementTransform(e.x,e.y),"undefined"!=typeof SVGElement&&this._rootElement instanceof SVGElement&&this._rootElement.setAttribute("transform",`translate(${e.x} ${e.y})`)}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:n,event:e,distance:this._getDragDistance(n),delta:this._pointerDirectionDelta})})},this._pointerUp=e=>{this._endDragSequence(e)},this.withRootElement(e).withParent(t.parentDragRef||null),this._parentPositions=new QI(n,s),o.registerDragItem(this)}get disabled(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)}set disabled(e){const t=xP(e);t!==this._disabled&&(this._disabled=t,this._toggleNativeDragInteractions(),this._handles.forEach(e=>jI(e,t)))}getPlaceholderElement(){return this._placeholder}getRootElement(){return this._rootElement}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}withHandles(e){this._handles=e.map(e=>kP(e)),this._handles.forEach(e=>jI(e,this.disabled)),this._toggleNativeDragInteractions();const t=new Set;return this._disabledHandles.forEach(e=>{this._handles.indexOf(e)>-1&&t.add(e)}),this._disabledHandles=t,this}withPreviewTemplate(e){return this._previewTemplate=e,this}withPlaceholderTemplate(e){return this._placeholderTemplate=e,this}withRootElement(e){const t=kP(e);return t!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(()=>{t.addEventListener("mousedown",this._pointerDown,iR),t.addEventListener("touchstart",this._pointerDown,nR)}),this._initialTransform=void 0,this._rootElement=t),"undefined"!=typeof SVGElement&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}withBoundaryElement(e){return this._boundaryElement=e?kP(e):null,this._resizeSubscription.unsubscribe(),e&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}withParent(e){return this._parentDragRef=e,this}dispose(){this._removeRootElementListeners(this._rootElement),this.isDragging()&&aR(this._rootElement),aR(this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._dragDropRegistry.removeDragItem(this),this._removeSubscriptions(),this.beforeStarted.complete(),this.started.complete(),this.released.complete(),this.ended.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this._moveEvents.complete(),this._handles=[],this._disabledHandles.clear(),this._dropContainer=void 0,this._resizeSubscription.unsubscribe(),this._parentPositions.clear(),this._boundaryElement=this._rootElement=this._ownerSVGElement=this._placeholderTemplate=this._previewTemplate=this._anchor=this._parentDragRef=null}isDragging(){return this._hasStartedDragging&&this._dragDropRegistry.isDragging(this)}reset(){this._rootElement.style.transform=this._initialTransform||"",this._activeTransform={x:0,y:0},this._passiveTransform={x:0,y:0}}disableHandle(e){!this._disabledHandles.has(e)&&this._handles.indexOf(e)>-1&&(this._disabledHandles.add(e),jI(e,!0))}enableHandle(e){this._disabledHandles.has(e)&&(this._disabledHandles.delete(e),jI(e,this.disabled))}withDirection(e){return this._direction=e,this}_withDropContainer(e){this._dropContainer=e}getFreeDragPosition(){const e=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:e.x,y:e.y}}setFreeDragPosition(e){return this._activeTransform={x:0,y:0},this._passiveTransform.x=e.x,this._passiveTransform.y=e.y,this._dropContainer||this._applyRootElementTransform(e.x,e.y),this}_sortFromLastPointerPosition(){const e=this._lastKnownPointerPosition;e&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(e),e)}_removeSubscriptions(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe()}_destroyPreview(){this._preview&&aR(this._preview),this._previewRef&&this._previewRef.destroy(),this._preview=this._previewRef=null}_destroyPlaceholder(){this._placeholder&&aR(this._placeholder),this._placeholderRef&&this._placeholderRef.destroy(),this._placeholder=this._placeholderRef=null}_endDragSequence(e){this._dragDropRegistry.isDragging(this)&&(this._removeSubscriptions(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),this._hasStartedDragging&&(this.released.next({source:this}),this._dropContainer?(this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(()=>{this._cleanupDragArtifacts(e),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)})):(this._passiveTransform.x=this._activeTransform.x,this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(()=>{this.ended.next({source:this,distance:this._getDragDistance(this._getPointerPositionOnPage(e))})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this))))}_startDragSequence(e){lR(e)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();const t=this._dropContainer;if(t){const e=this._rootElement,n=e.parentNode,i=this._preview=this._createPreviewElement(),s=this._placeholder=this._createPlaceholderElement(),o=this._anchor=this._anchor||this._document.createComment(""),r=this._getShadowRoot();n.insertBefore(o,e),UI(e,!1),this._document.body.appendChild(n.replaceChild(s,e)),function(e,t){return t||e.fullscreenElement||e.webkitFullscreenElement||e.mozFullScreenElement||e.msFullscreenElement||e.body}(this._document,r).appendChild(i),this.started.next({source:this}),t.start(),this._initialContainer=t,this._initialIndex=t.getItemIndex(this)}else this.started.next({source:this}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(t?t.getScrollableParents():[])}_initializeDragSequence(e,t){this._parentDragRef&&t.stopPropagation();const n=this.isDragging(),i=lR(t),s=!i&&0!==t.button,o=this._rootElement,r=!i&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now();if(t.target&&t.target.draggable&&"mousedown"===t.type&&t.preventDefault(),n||s||r)return;this._handles.length&&(this._rootElementTapHighlight=o.style.webkitTapHighlightColor||"",o.style.webkitTapHighlightColor="transparent"),this._hasStartedDragging=this._hasMoved=!1,this._removeSubscriptions(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scroll.subscribe(e=>{this._updateOnScroll(e)}),this._boundaryElement&&(this._boundaryRect=$I(this._boundaryElement));const a=this._previewTemplate;this._pickupPositionInElement=a&&a.template&&!a.matchSize?{x:0,y:0}:this._getPointerPositionInElement(e,t);const l=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(t);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:l.x,y:l.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,t)}_cleanupDragArtifacts(e){UI(this._rootElement,!0),this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._boundaryRect=this._previewRect=void 0,this._ngZone.run(()=>{const t=this._dropContainer,n=t.getItemIndex(this),i=this._getPointerPositionOnPage(e),s=this._getDragDistance(this._getPointerPositionOnPage(e)),o=t._isOverContainer(i.x,i.y);this.ended.next({source:this,distance:s}),this.dropped.next({item:this,currentIndex:n,previousIndex:this._initialIndex,container:t,previousContainer:this._initialContainer,isPointerOverContainer:o,distance:s}),t.drop(this,n,this._initialIndex,this._initialContainer,o,s),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:e,y:t},{x:n,y:i}){let s=this._initialContainer._getSiblingContainerFromPosition(this,e,t);!s&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(e,t)&&(s=this._initialContainer),s&&s!==this._dropContainer&&this._ngZone.run(()=>{this.exited.next({item:this,container:this._dropContainer}),this._dropContainer.exit(this),this._dropContainer=s,this._dropContainer.enter(this,e,t,s===this._initialContainer&&s.sortingDisabled?this._initialIndex:void 0),this.entered.next({item:this,container:s,currentIndex:s.getItemIndex(this)})}),this._dropContainer._startScrollingIfNecessary(n,i),this._dropContainer._sortItem(this,e,t,this._pointerDirectionDelta),this._preview.style.transform=oR(e-this._pickupPositionInElement.x,t-this._pickupPositionInElement.y)}_createPreviewElement(){const e=this._previewTemplate,t=this.previewClass,n=e?e.template:null;let i;if(n&&e){const t=e.matchSize?this._rootElement.getBoundingClientRect():null,s=e.viewContainer.createEmbeddedView(n,e.context);s.detectChanges(),i=cR(s,this._document),this._previewRef=s,e.matchSize?dR(i,t):i.style.transform=oR(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else{const e=this._rootElement;i=XI(e),dR(i,e.getBoundingClientRect())}return HI(i.style,{pointerEvents:"none",margin:"0",position:"fixed",top:"0",left:"0",zIndex:""+(this._config.zIndex||1e3)}),jI(i,!1),i.classList.add("cdk-drag-preview"),i.setAttribute("dir",this._direction),t&&(Array.isArray(t)?t.forEach(e=>i.classList.add(e)):i.classList.add(t)),i}_animatePreviewToPlaceholder(){if(!this._hasMoved)return Promise.resolve();const e=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._preview.style.transform=oR(e.left,e.top);const t=function(e){const t=getComputedStyle(e),n=GI(t,"transition-property"),i=n.find(e=>"transform"===e||"all"===e);if(!i)return 0;const s=n.indexOf(i),o=GI(t,"transition-duration"),r=GI(t,"transition-delay");return WI(o[s])+WI(r[s])}(this._preview);return 0===t?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(e=>{const n=t=>{(!t||t.target===this._preview&&"transform"===t.propertyName)&&(this._preview.removeEventListener("transitionend",n),e(),clearTimeout(i))},i=setTimeout(n,1.5*t);this._preview.addEventListener("transitionend",n)}))}_createPlaceholderElement(){const e=this._placeholderTemplate,t=e?e.template:null;let n;return t?(this._placeholderRef=e.viewContainer.createEmbeddedView(t,e.context),this._placeholderRef.detectChanges(),n=cR(this._placeholderRef,this._document)):n=XI(this._rootElement),n.classList.add("cdk-drag-placeholder"),n}_getPointerPositionInElement(e,t){const n=this._rootElement.getBoundingClientRect(),i=e===this._rootElement?null:e,s=i?i.getBoundingClientRect():n,o=lR(t)?t.targetTouches[0]:t,r=this._getViewportScrollPosition();return{x:s.left-n.left+(o.pageX-s.left-r.left),y:s.top-n.top+(o.pageY-s.top-r.top)}}_getPointerPositionOnPage(e){const t=this._getViewportScrollPosition(),n=lR(e)?e.touches[0]||e.changedTouches[0]||{pageX:0,pageY:0}:e,i=n.pageX-t.left,s=n.pageY-t.top;if(this._ownerSVGElement){const e=this._ownerSVGElement.getScreenCTM();if(e){const t=this._ownerSVGElement.createSVGPoint();return t.x=i,t.y=s,t.matrixTransform(e.inverse())}}return{x:i,y:s}}_getConstrainedPointerPosition(e){const t=this._dropContainer?this._dropContainer.lockAxis:null;let{x:n,y:i}=this.constrainPosition?this.constrainPosition(e,this):e;if("x"===this.lockAxis||"x"===t?i=this._pickupPositionOnPage.y:"y"!==this.lockAxis&&"y"!==t||(n=this._pickupPositionOnPage.x),this._boundaryRect){const{x:e,y:t}=this._pickupPositionInElement,s=this._boundaryRect,o=this._previewRect,r=s.top+t,a=s.bottom-(o.height-t);n=rR(n,s.left+e,s.right-(o.width-e)),i=rR(i,r,a)}return{x:n,y:i}}_updatePointerDirectionDelta(e){const{x:t,y:n}=e,i=this._pointerDirectionDelta,s=this._pointerPositionAtLastDirectionChange,o=Math.abs(t-s.x),r=Math.abs(n-s.y);return o>this._config.pointerDirectionChangeThreshold&&(i.x=t>s.x?1:-1,s.x=t),r>this._config.pointerDirectionChangeThreshold&&(i.y=n>s.y?1:-1,s.y=n),i}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;const e=this._handles.length>0||!this.isDragging();e!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=e,jI(this._rootElement,e))}_removeRootElementListeners(e){e.removeEventListener("mousedown",this._pointerDown,iR),e.removeEventListener("touchstart",this._pointerDown,nR)}_applyRootElementTransform(e,t){const n=oR(e,t);null==this._initialTransform&&(this._initialTransform=this._rootElement.style.transform||""),this._rootElement.style.transform=this._initialTransform?n+" "+this._initialTransform:n}_getDragDistance(e){const t=this._pickupPositionOnPage;return t?{x:e.x-t.x,y:e.y-t.y}:{x:0,y:0}}_cleanupCachedDimensions(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}_containInsideBoundaryOnResize(){let{x:e,y:t}=this._passiveTransform;if(0===e&&0===t||this.isDragging()||!this._boundaryElement)return;const n=this._boundaryElement.getBoundingClientRect(),i=this._rootElement.getBoundingClientRect();if(0===n.width&&0===n.height||0===i.width&&0===i.height)return;const s=n.left-i.left,o=i.right-n.right,r=n.top-i.top,a=i.bottom-n.bottom;n.width>i.width?(s>0&&(e+=s),o>0&&(e-=o)):e=0,n.height>i.height?(r>0&&(t+=r),a>0&&(t-=a)):t=0,e===this._passiveTransform.x&&t===this._passiveTransform.y||this.setFreeDragPosition({y:t,x:e})}_getDragStartDelay(e){const t=this.dragStartDelay;return"number"==typeof t?t:lR(e)?t.touch:t?t.mouse:0}_updateOnScroll(e){const t=this._parentPositions.handleScroll(e);if(t){const n=e.target;this._boundaryRect&&(n===this._document||n!==this._boundaryElement&&n.contains(this._boundaryElement))&&YI(this._boundaryRect,t.top,t.left),this._pickupPositionOnPage.x+=t.left,this._pickupPositionOnPage.y+=t.top,this._dropContainer||(this._activeTransform.x-=t.left,this._activeTransform.y-=t.top,this._applyRootElementTransform(this._activeTransform.x,this._activeTransform.y))}}_getViewportScrollPosition(){const e=this._parentPositions.positions.get(this._document);return e?e.scrollPosition:this._viewportRuler.getViewportScrollPosition()}_getShadowRoot(){return void 0===this._cachedShadowRoot&&(this._cachedShadowRoot=LP(this._rootElement)),this._cachedShadowRoot}}function oR(e,t){return`translate3d(${Math.round(e)}px, ${Math.round(t)}px, 0)`}function rR(e,t,n){return Math.max(t,Math.min(n,e))}function aR(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function lR(e){return"t"===e.type[0]}function cR(e,t){const n=e.rootNodes;if(1===n.length&&n[0].nodeType===t.ELEMENT_NODE)return n[0];const i=t.createElement("div");return n.forEach(e=>i.appendChild(e)),i}function dR(e,t){e.style.width=t.width+"px",e.style.height=t.height+"px",e.style.transform=oR(t.left,t.top)}function uR(e,t){return Math.max(0,Math.min(t,e))}class hR{constructor(e,t,n,i,s){this._dragDropRegistry=t,this._ngZone=i,this._viewportRuler=s,this.disabled=!1,this.sortingDisabled=!1,this.autoScrollDisabled=!1,this.autoScrollStep=2,this.enterPredicate=()=>!0,this.sortPredicate=()=>!0,this.beforeStarted=new A,this.entered=new A,this.exited=new A,this.dropped=new A,this.sorted=new A,this._isDragging=!1,this._itemPositions=[],this._previousSwap={drag:null,delta:0,overlaps:!1},this._draggables=[],this._siblings=[],this._orientation="vertical",this._activeSiblings=new Set,this._direction="ltr",this._viewportScrollSubscription=u.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new A,this._cachedShadowRoot=null,this._startScrollInterval=()=>{this._stopScrolling(),function(e=0,t=bP){return(!fD(e)||e<0)&&(e=0),t&&"function"==typeof t.schedule||(t=bP),new v(n=>(n.add(t.schedule(NI,e,{subscriber:n,counter:0,period:e})),n))}(0,sD).pipe(vD(this._stopScrollTimers)).subscribe(()=>{const e=this._scrollNode,t=this.autoScrollStep;1===this._verticalScrollDirection?gR(e,-t):2===this._verticalScrollDirection&&gR(e,t),1===this._horizontalScrollDirection?fR(e,-t):2===this._horizontalScrollDirection&&fR(e,t)})},this.element=kP(e),this._document=n,this.withScrollableParents([this.element]),t.registerDropContainer(this),this._parentPositions=new QI(n,s)}dispose(){this._stopScrolling(),this._stopScrollTimers.complete(),this._viewportScrollSubscription.unsubscribe(),this.beforeStarted.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this.sorted.complete(),this._activeSiblings.clear(),this._scrollNode=null,this._parentPositions.clear(),this._dragDropRegistry.removeDropContainer(this)}isDragging(){return this._isDragging}start(){this._draggingStarted(),this._notifyReceivingSiblings()}enter(e,t,n,i){let s;this._draggingStarted(),null==i?(s=this.sortingDisabled?this._draggables.indexOf(e):-1,-1===s&&(s=this._getItemIndexFromPointerPosition(e,t,n))):s=i;const o=this._activeDraggables,r=o.indexOf(e),a=e.getPlaceholderElement();let l=o[s];if(l===e&&(l=o[s+1]),r>-1&&o.splice(r,1),l&&!this._dragDropRegistry.isDragging(l)){const t=l.getRootElement();t.parentElement.insertBefore(a,t),o.splice(s,0,e)}else if(this._shouldEnterAsFirstChild(t,n)){const t=o[0].getRootElement();t.parentNode.insertBefore(a,t),o.unshift(e)}else kP(this.element).appendChild(a),o.push(e);a.style.transform="",this._cacheItemPositions(),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:e,container:this,currentIndex:this.getItemIndex(e)})}exit(e){this._reset(),this.exited.next({item:e,container:this})}drop(e,t,n,i,s,o){this._reset(),this.dropped.next({item:e,currentIndex:t,previousIndex:n,container:this,previousContainer:i,isPointerOverContainer:s,distance:o})}withItems(e){const t=this._draggables;return this._draggables=e,e.forEach(e=>e._withDropContainer(this)),this.isDragging()&&(t.filter(e=>e.isDragging()).every(t=>-1===e.indexOf(t))?this._reset():this._cacheItems()),this}withDirection(e){return this._direction=e,this}connectedTo(e){return this._siblings=e.slice(),this}withOrientation(e){return this._orientation=e,this}withScrollableParents(e){const t=kP(this.element);return this._scrollableElements=-1===e.indexOf(t)?[t,...e]:e.slice(),this}getScrollableParents(){return this._scrollableElements}getItemIndex(e){return this._isDragging?pR("horizontal"===this._orientation&&"rtl"===this._direction?this._itemPositions.slice().reverse():this._itemPositions,t=>t.drag===e):this._draggables.indexOf(e)}isReceiving(){return this._activeSiblings.size>0}_sortItem(e,t,n,i){if(this.sortingDisabled||!this._clientRect||!ZI(this._clientRect,.05,t,n))return;const s=this._itemPositions,o=this._getItemIndexFromPointerPosition(e,t,n,i);if(-1===o&&s.length>0)return;const r="horizontal"===this._orientation,a=pR(s,t=>t.drag===e),l=s[o],c=l.clientRect,d=a>o?1:-1,u=this._getItemOffsetPx(s[a].clientRect,c,d),h=this._getSiblingOffsetPx(a,s,d),p=s.slice();!function(e,t,n){const i=uR(t,e.length-1),s=uR(n,e.length-1);if(i===s)return;const o=e[i],r=s<i?-1:1;for(let a=i;a!==s;a+=r)e[a]=e[a+r];e[s]=o}(s,a,o),this.sorted.next({previousIndex:a,currentIndex:o,container:this,item:e}),s.forEach((t,n)=>{if(p[n]===t)return;const i=t.drag===e,s=i?u:h,o=i?e.getPlaceholderElement():t.drag.getRootElement();t.offset+=s,r?(o.style.transform=`translate3d(${Math.round(t.offset)}px, 0, 0)`,YI(t.clientRect,0,s)):(o.style.transform=`translate3d(0, ${Math.round(t.offset)}px, 0)`,YI(t.clientRect,s,0))}),this._previousSwap.overlaps=qI(c,t,n),this._previousSwap.drag=l.drag,this._previousSwap.delta=r?i.x:i.y}_startScrollingIfNecessary(e,t){if(this.autoScrollDisabled)return;let n,i=0,s=0;if(this._parentPositions.positions.forEach((o,r)=>{r!==this._document&&o.clientRect&&!n&&ZI(o.clientRect,.05,e,t)&&([i,s]=function(e,t,n,i){const s=mR(t,i),o=bR(t,n);let r=0,a=0;if(s){const t=e.scrollTop;1===s?t>0&&(r=1):e.scrollHeight-t>e.clientHeight&&(r=2)}if(o){const t=e.scrollLeft;1===o?t>0&&(a=1):e.scrollWidth-t>e.clientWidth&&(a=2)}return[r,a]}(r,o.clientRect,e,t),(i||s)&&(n=r))}),!i&&!s){const{width:o,height:r}=this._viewportRuler.getViewportSize(),a={width:o,height:r,top:0,right:o,bottom:r,left:0};i=mR(a,t),s=bR(a,e),n=window}!n||i===this._verticalScrollDirection&&s===this._horizontalScrollDirection&&n===this._scrollNode||(this._verticalScrollDirection=i,this._horizontalScrollDirection=s,this._scrollNode=n,(i||s)&&n?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_draggingStarted(){const e=kP(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=e.msScrollSnapType||e.scrollSnapType||"",e.scrollSnapType=e.msScrollSnapType="none",this._cacheItems(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}_cacheParentPositions(){const e=kP(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(e).clientRect}_cacheItemPositions(){const e="horizontal"===this._orientation;this._itemPositions=this._activeDraggables.map(e=>{const t=e.getVisibleElement();return{drag:e,offset:0,clientRect:$I(t)}}).sort((t,n)=>e?t.clientRect.left-n.clientRect.left:t.clientRect.top-n.clientRect.top)}_reset(){this._isDragging=!1;const e=kP(this.element).style;e.scrollSnapType=e.msScrollSnapType=this._initialScrollSnap,this._activeDraggables.forEach(e=>{const t=e.getRootElement();t&&(t.style.transform="")}),this._siblings.forEach(e=>e._stopReceiving(this)),this._activeDraggables=[],this._itemPositions=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1,this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_getSiblingOffsetPx(e,t,n){const i="horizontal"===this._orientation,s=t[e].clientRect,o=t[e+-1*n];let r=s[i?"width":"height"]*n;if(o){const e=i?"left":"top",t=i?"right":"bottom";-1===n?r-=o.clientRect[e]-s[t]:r+=s[e]-o.clientRect[t]}return r}_getItemOffsetPx(e,t,n){const i="horizontal"===this._orientation;let s=i?t.left-e.left:t.top-e.top;return-1===n&&(s+=i?t.width-e.width:t.height-e.height),s}_shouldEnterAsFirstChild(e,t){if(!this._activeDraggables.length)return!1;const n=this._itemPositions,i="horizontal"===this._orientation;if(n[0].drag!==this._activeDraggables[0]){const s=n[n.length-1].clientRect;return i?e>=s.right:t>=s.bottom}{const s=n[0].clientRect;return i?e<=s.left:t<=s.top}}_getItemIndexFromPointerPosition(e,t,n,i){const s="horizontal"===this._orientation,o=pR(this._itemPositions,({drag:o,clientRect:r},a,l)=>{if(o===e)return l.length<2;if(i){const e=s?i.x:i.y;if(o===this._previousSwap.drag&&this._previousSwap.overlaps&&e===this._previousSwap.delta)return!1}return s?t>=Math.floor(r.left)&&t<Math.floor(r.right):n>=Math.floor(r.top)&&n<Math.floor(r.bottom)});return-1!==o&&this.sortPredicate(o,e,this)?o:-1}_cacheItems(){this._activeDraggables=this._draggables.slice(),this._cacheItemPositions(),this._cacheParentPositions()}_isOverContainer(e,t){return null!=this._clientRect&&qI(this._clientRect,e,t)}_getSiblingContainerFromPosition(e,t,n){return this._siblings.find(i=>i._canReceive(e,t,n))}_canReceive(e,t,n){if(!this._clientRect||!qI(this._clientRect,t,n)||!this.enterPredicate(e,this))return!1;const i=this._getShadowRoot().elementFromPoint(t,n);if(!i)return!1;const s=kP(this.element);return i===s||s.contains(i)}_startReceiving(e,t){const n=this._activeSiblings;!n.has(e)&&t.every(e=>this.enterPredicate(e,this)||this._draggables.indexOf(e)>-1)&&(n.add(e),this._cacheParentPositions(),this._listenToScrollEvents())}_stopReceiving(e){this._activeSiblings.delete(e),this._viewportScrollSubscription.unsubscribe()}_listenToScrollEvents(){this._viewportScrollSubscription=this._dragDropRegistry.scroll.subscribe(e=>{if(this.isDragging()){const t=this._parentPositions.handleScroll(e);t&&(this._itemPositions.forEach(({clientRect:e})=>{YI(e,t.top,t.left)}),this._itemPositions.forEach(({drag:e})=>{this._dragDropRegistry.isDragging(e)&&e._sortFromLastPointerPosition()}))}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){const e=LP(kP(this.element));this._cachedShadowRoot=e||this._document}return this._cachedShadowRoot}_notifyReceivingSiblings(){const e=this._activeDraggables.filter(e=>e.isDragging());this._siblings.forEach(t=>t._startReceiving(this,e))}}function pR(e,t){for(let n=0;n<e.length;n++)if(t(e[n],n,e))return n;return-1}function gR(e,t){e===window?e.scrollBy(0,t):e.scrollTop+=t}function fR(e,t){e===window?e.scrollBy(t,0):e.scrollLeft+=t}function mR(e,t){const{top:n,bottom:i,height:s}=e,o=.05*s;return t>=n-o&&t<=n+o?1:t>=i-o&&t<=i+o?2:0}function bR(e,t){const{left:n,right:i,width:s}=e,o=.05*s;return t>=n-o&&t<=n+o?1:t>=i-o&&t<=i+o?2:0}const vR=IP({passive:!1,capture:!0});let yR=(()=>{class e{constructor(e,t){this._ngZone=e,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=[],this._globalListeners=new Map,this._draggingPredicate=e=>e.isDragging(),this.pointerMove=new A,this.pointerUp=new A,this.scroll=new A,this._preventDefaultWhileDragging=e=>{this._activeDragInstances.length>0&&e.preventDefault()},this._persistentTouchmoveListener=e=>{this._activeDragInstances.length>0&&(this._activeDragInstances.some(this._draggingPredicate)&&e.preventDefault(),this.pointerMove.next(e))},this._document=t}registerDropContainer(e){this._dropInstances.has(e)||this._dropInstances.add(e)}registerDragItem(e){this._dragInstances.add(e),1===this._dragInstances.size&&this._ngZone.runOutsideAngular(()=>{this._document.addEventListener("touchmove",this._persistentTouchmoveListener,vR)})}removeDropContainer(e){this._dropInstances.delete(e)}removeDragItem(e){this._dragInstances.delete(e),this.stopDragging(e),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._persistentTouchmoveListener,vR)}startDragging(e,t){if(!(this._activeDragInstances.indexOf(e)>-1)&&(this._activeDragInstances.push(e),1===this._activeDragInstances.length)){const e=t.type.startsWith("touch");this._globalListeners.set(e?"touchend":"mouseup",{handler:e=>this.pointerUp.next(e),options:!0}).set("scroll",{handler:e=>this.scroll.next(e),options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:vR}),e||this._globalListeners.set("mousemove",{handler:e=>this.pointerMove.next(e),options:vR}),this._ngZone.runOutsideAngular(()=>{this._globalListeners.forEach((e,t)=>{this._document.addEventListener(t,e.handler,e.options)})})}}stopDragging(e){const t=this._activeDragInstances.indexOf(e);t>-1&&(this._activeDragInstances.splice(t,1),0===this._activeDragInstances.length&&this._clearGlobalListeners())}isDragging(e){return this._activeDragInstances.indexOf(e)>-1}ngOnDestroy(){this._dragInstances.forEach(e=>this.removeDragItem(e)),this._dropInstances.forEach(e=>this.removeDropContainer(e)),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}_clearGlobalListeners(){this._globalListeners.forEach((e,t)=>{this._document.removeEventListener(t,e.handler,e.options)}),this._globalListeners.clear()}}return e.\u0275fac=function(t){return new(t||e)(gi(ad),gi(Hd))},e.\u0275prov=pe({factory:function(){return new e(gi(ad),gi(Hd))},token:e,providedIn:"root"}),e})();const wR={dragStartThreshold:5,pointerDirectionChangeThreshold:5};let _R=(()=>{class e{constructor(e,t,n,i){this._document=e,this._ngZone=t,this._viewportRuler=n,this._dragDropRegistry=i}createDrag(e,t=wR){return new sR(e,t,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}createDropList(e){return new hR(e,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}return e.\u0275fac=function(t){return new(t||e)(gi(Hd),gi(ad),gi(AD),gi(yR))},e.\u0275prov=pe({factory:function(){return new e(gi(Hd),gi(ad),gi(AD),gi(yR))},token:e,providedIn:"root"}),e})();const xR=new Xn("CDK_DRAG_PARENT"),AR=new Xn("CDK_DRAG_CONFIG"),CR=new Xn("CdkDropList"),SR=new Xn("CdkDragHandle"),kR=new Xn("CdkDragPlaceholder"),PR=new Xn("CdkDragPreview");let ER=(()=>{class e{constructor(t,n,i,s,o,r,a,l,c,d,u){this.element=t,this.dropContainer=n,this._ngZone=s,this._viewContainerRef=o,this._dir=a,this._changeDetectorRef=c,this._selfHandle=d,this._parentDrag=u,this._destroyed=new A,this.started=new yc,this.released=new yc,this.ended=new yc,this.entered=new yc,this.exited=new yc,this.dropped=new yc,this.moved=new v(e=>{const t=this._dragRef.moved.pipe(k(e=>({source:this,pointerPosition:e.pointerPosition,event:e.event,delta:e.delta,distance:e.distance}))).subscribe(e);return()=>{t.unsubscribe()}}),this._dragRef=l.createDrag(t,{dragStartThreshold:r&&null!=r.dragStartThreshold?r.dragStartThreshold:5,pointerDirectionChangeThreshold:r&&null!=r.pointerDirectionChangeThreshold?r.pointerDirectionChangeThreshold:5,zIndex:null==r?void 0:r.zIndex}),this._dragRef.data=this,e._dragInstances.push(this),r&&this._assignDefaults(r),n&&(this._dragRef._withDropContainer(n._dropListRef),n.addItem(this)),this._syncInputs(this._dragRef),this._handleEvents(this._dragRef)}get disabled(){return this._disabled||this.dropContainer&&this.dropContainer.disabled}set disabled(e){this._disabled=xP(e),this._dragRef.disabled=this._disabled}getPlaceholderElement(){return this._dragRef.getPlaceholderElement()}getRootElement(){return this._dragRef.getRootElement()}reset(){this._dragRef.reset()}getFreeDragPosition(){return this._dragRef.getFreeDragPosition()}ngAfterViewInit(){this._ngZone.onStable.pipe(lv(1),vD(this._destroyed)).subscribe(()=>{this._updateRootElement(),this._handles.changes.pipe(uv(this._handles),Ov(e=>{const t=e.filter(e=>e._parentDrag===this).map(e=>e.element);this._selfHandle&&this.rootElementSelector&&t.push(this.element),this._dragRef.withHandles(t)}),sv(e=>G(...e.map(e=>e._stateChanges.pipe(uv(e))))),vD(this._destroyed)).subscribe(e=>{const t=this._dragRef,n=e.element.nativeElement;e.disabled?t.disableHandle(n):t.enableHandle(n)}),this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)})}ngOnChanges(e){const t=e.rootElementSelector,n=e.freeDragPosition;t&&!t.firstChange&&this._updateRootElement(),n&&!n.firstChange&&this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)}ngOnDestroy(){this.dropContainer&&this.dropContainer.removeItem(this);const t=e._dragInstances.indexOf(this);t>-1&&e._dragInstances.splice(t,1),this._destroyed.next(),this._destroyed.complete(),this._dragRef.dispose()}_updateRootElement(){const e=this.element.nativeElement,t=this.rootElementSelector?DR(e,this.rootElementSelector):e;this._dragRef.withRootElement(t||e)}_getBoundaryElement(){const e=this.boundaryElement;return e?"string"==typeof e?DR(this.element.nativeElement,e):kP(e):null}_syncInputs(t){t.beforeStarted.subscribe(()=>{if(!t.isDragging()){const e=this._dir,n=this.dragStartDelay,i=this._placeholderTemplate?{template:this._placeholderTemplate.templateRef,context:this._placeholderTemplate.data,viewContainer:this._viewContainerRef}:null,s=this._previewTemplate?{template:this._previewTemplate.templateRef,context:this._previewTemplate.data,matchSize:this._previewTemplate.matchSize,viewContainer:this._viewContainerRef}:null;t.disabled=this.disabled,t.lockAxis=this.lockAxis,t.dragStartDelay="object"==typeof n&&n?n:AP(n),t.constrainPosition=this.constrainPosition,t.previewClass=this.previewClass,t.withBoundaryElement(this._getBoundaryElement()).withPlaceholderTemplate(i).withPreviewTemplate(s),e&&t.withDirection(e.value)}}),t.beforeStarted.pipe(lv(1)).subscribe(()=>{var n,i;if(this._parentDrag)return void t.withParent(this._parentDrag._dragRef);let s=this.element.nativeElement.parentElement;for(;s;){if(null===(n=s.classList)||void 0===n?void 0:n.contains("cdk-drag")){t.withParent((null===(i=e._dragInstances.find(e=>e.element.nativeElement===s))||void 0===i?void 0:i._dragRef)||null);break}s=s.parentElement}})}_handleEvents(e){e.started.subscribe(()=>{this.started.emit({source:this}),this._changeDetectorRef.markForCheck()}),e.released.subscribe(()=>{this.released.emit({source:this})}),e.ended.subscribe(e=>{this.ended.emit({source:this,distance:e.distance}),this._changeDetectorRef.markForCheck()}),e.entered.subscribe(e=>{this.entered.emit({container:e.container.data,item:this,currentIndex:e.currentIndex})}),e.exited.subscribe(e=>{this.exited.emit({container:e.container.data,item:this})}),e.dropped.subscribe(e=>{this.dropped.emit({previousIndex:e.previousIndex,currentIndex:e.currentIndex,previousContainer:e.previousContainer.data,container:e.container.data,isPointerOverContainer:e.isPointerOverContainer,item:this,distance:e.distance})})}_assignDefaults(e){const{lockAxis:t,dragStartDelay:n,constrainPosition:i,previewClass:s,boundaryElement:o,draggingDisabled:r,rootElementSelector:a}=e;this.disabled=null!=r&&r,this.dragStartDelay=n||0,t&&(this.lockAxis=t),i&&(this.constrainPosition=i),s&&(this.previewClass=s),o&&(this.boundaryElement=o),a&&(this.rootElementSelector=a)}}return e.\u0275fac=function(t){return new(t||e)(zr(rl),zr(CR,12),zr(Hd),zr(ad),zr(Gl),zr(AR,8),zr(pE,8),zr(_R),zr(Tl),zr(SR,10),zr(xR,12))},e.\u0275dir=Ke({type:e,selectors:[["","cdkDrag",""]],contentQueries:function(e,t,n){if(1&e&&(Ic(n,PR,1),Ic(n,kR,1),Ic(n,SR,1)),2&e){let e;Mc(e=Rc())&&(t._previewTemplate=e.first),Mc(e=Rc())&&(t._placeholderTemplate=e.first),Mc(e=Rc())&&(t._handles=e)}},hostAttrs:[1,"cdk-drag"],hostVars:4,hostBindings:function(e,t){2&e&&ma("cdk-drag-disabled",t.disabled)("cdk-drag-dragging",t._dragRef.isDragging())},inputs:{disabled:["cdkDragDisabled","disabled"],dragStartDelay:["cdkDragStartDelay","dragStartDelay"],lockAxis:["cdkDragLockAxis","lockAxis"],constrainPosition:["cdkDragConstrainPosition","constrainPosition"],previewClass:["cdkDragPreviewClass","previewClass"],boundaryElement:["cdkDragBoundary","boundaryElement"],rootElementSelector:["cdkDragRootElement","rootElementSelector"],data:["cdkDragData","data"],freeDragPosition:["cdkDragFreeDragPosition","freeDragPosition"]},outputs:{started:"cdkDragStarted",released:"cdkDragReleased",ended:"cdkDragEnded",entered:"cdkDragEntered",exited:"cdkDragExited",dropped:"cdkDragDropped",moved:"cdkDragMoved"},exportAs:["cdkDrag"],features:[Ja([{provide:xR,useExisting:e}]),dt]}),e._dragInstances=[],e})();function DR(e,t){let n=e.parentElement;for(;n;){if(n.matches?n.matches(t):n.msMatchesSelector(t))return n;n=n.parentElement}return null}let OR=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=fe({providers:[_R],imports:[CD]}),e})();const MR=(e,t,n)=>{if(0===n||0===t)return"";const i=e*t;return i<(n=Math.max(n,0))&&Math.min(i+t,n),`${e+1} / ${Math.ceil(n/t)}`};function TR(){const e=new UT;return e.itemsPerPageLabel="Afficher:",e.nextPageLabel="Page suivante",e.previousPageLabel="Page pr\xe9c\xe9dente",e.getRangeLabel=MR,e}let IR=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=fe({providers:[{provide:UT,useValue:TR()}],imports:[[KT,rT,zM,oM,HE,OR,nI,fM,nT,XT,mM,sT,NM,VI,wI,tI,ET,eI,GO,yI,QT,bI,WO,vM],KT,rT,zM,oM,HE,OR,nI,fM,nT,XT,mM,sT,NM,VI,wI,tI,ET,eI,GO,yI,QT,bI,WO,vM]}),e})(),RR=(()=>{class e{constructor(e,t,n){this.translate=e,this.data=t,this.dialogRef=n,null===this.data.mode&&(this.data.mode=""),null===this.data.msg&&(this.data.msg="")}}return e.\u0275fac=function(t){return new(t||e)(zr(GC),zr(EM),zr(kM))},e.\u0275cmp=$e({type:e,selectors:[["ng-component"]],decls:10,vars:12,consts:[["mat-dialog-title",""],["mat-dialog-content","",3,"innerHTML"],["mat-dialog-actions",""],["mat-button","",1,"actions","btn","red",3,"click"]],template:function(e,t){1&e&&(Hr(0,"div"),Hr(1,"h1",0),Da(2),hc(3,"translate"),jr(),Ur(4,"div",1),hc(5,"translate"),Hr(6,"div",2),Hr(7,"button",3),Xr("click",function(){return t.dialogRef.close()}),Da(8),hc(9,"translate"),jr(),jr(),jr()),2&e&&(La("modalContent ",t.data.mode,""),no(2),Oa(pc(3,6,t.data.title)),no(2),Vr("innerHTML",pc(5,8,t.data.msg),ss),no(4),Oa(pc(9,10,"lang.ok")))},directives:[LM,FM,BM,gM],pipes:[$C],styles:[".modalContent[_ngcontent-%COMP%]{position:relative}.mat-dialog-content[_ngcontent-%COMP%], .mat-dialog-title[_ngcontent-%COMP%]{text-align:center!important;color:#666}.mat-dialog-title[_ngcontent-%COMP%]{font-weight:700}.actions[_ngcontent-%COMP%]{width:100%;margin:10px}.close[_ngcontent-%COMP%]{position:absolute;top:-15px;right:-15px;width:40px;height:40px;font-size:20px;color:#666}.warning[_ngcontent-%COMP%]   .actions[_ngcontent-%COMP%], .warning[_ngcontent-%COMP%]   .mat-dialog-title[_ngcontent-%COMP%]{color:#e74c3c}"]}),e})(),LR=(()=>{class e{constructor(e,t,n,i,s,o,r,a,l){this.translate=e,this.http=t,this.router=n,this.signaturesService=i,this.cookieService=s,this.authService=o,this.localStorage=r,this.dialog=a,this.menu=l}canActivate(e,t){if("login"===e.url.join("/"))return this.authService.isAuth()?(this.router.navigate(["/home"]),!1):(this.http.get("../rest/authenticationInformations").pipe(k(e=>{this.authService.authMode=e.connection,this.authService.changeKey=e.changeKey,this.authService.coreUrl=e.coreUrl,this.localStorage.setAppSession(e.instanceId)})).subscribe(),!0);if(!this.authService.authFailed){this.menu.enable(!0,"left-menu"),this.menu.enable(!1,"right-menu");let e=this.authService.getToken();if(null===e||this.authService.authFailed)return this.http.get("../rest/authenticationInformations").pipe(k(n=>(this.authService.authMode=n.connection,this.authService.changeKey=n.changeKey,this.authService.coreUrl=n.coreUrl,this.localStorage.setAppSession(n.instanceId),e=this.authService.getToken(),null!==e?(this.authService.user=JSON.parse(atob(e.split(".")[1])).user,this.translate.use(this.authService.user.preferences.lang),this.cookieService.set("maarchParapheurLang",this.authService.user.preferences.lang),this.setData(),this.authService.changeKey&&this.dialog.open(RR,{autoFocus:!1,disableClose:!0,data:{mode:"warning",title:"lang.warnPrivateKeyTitle",msg:"lang.warnPrivateKey"}}),!0):(this.authService.setCachedUrl(t.url.replace(/^\//g,"")),this.authService.logout(),!1))));if(void 0===this.authService.user.id){const t=JSON.parse(atob(e.split(".")[1]));this.authService.user=t.user,this.authService.authMode=t.connection,this.translate.use(this.authService.user.preferences.lang),this.cookieService.set("maarchParapheurLang",this.authService.user.preferences.lang),this.setData()}return!0}}setData(){0===this.authService.signatureRoles.length&&this.http.get("../rest/signatureModes").subscribe(e=>{this.authService.signatureRoles=[{id:"visa",type:"visa",color:"#135F7F"}],this.authService.signatureRoles=this.authService.signatureRoles.concat(e.map(e=>Object.assign(Object.assign({},e),{type:"sign"})))}),0===this.signaturesService.signaturesList.length&&this.http.get("../rest/users/"+this.authService.user.id+"/signatures").subscribe(e=>{this.signaturesService.signaturesList=e.signatures}),void 0===this.authService.user.picture&&this.http.get("../rest/users/"+this.authService.user.id+"/picture").subscribe(e=>{this.authService.user.picture=e.picture})}}return e.\u0275fac=function(t){return new(t||e)(gi(GC),gi(Db),gi(r_),gi(sS),gi(sP),gi(rS),gi(oS),gi(IM),gi(KA))},e.\u0275prov=pe({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function FR(e,t){if(1&e&&(Hr(0,"ion-col"),Hr(1,"ion-button",7),Hr(2,"div",8),Ur(3,"ion-icon",9),Hr(4,"ion-label",10),Da(5),hc(6,"translate"),jr(),Hr(7,"ion-note",11),Da(8),hc(9,"translate"),jr(),jr(),jr(),jr()),2&e){const e=t.$implicit;no(1),Vr("routerLink",e.route),no(2),Vr("name",e.icon),no(2),Oa(pc(6,4,"lang."+e.id)),no(3),Ma(" ",pc(9,6,"lang."+e.id+"Desc"),"")}}const BR=function(e){return[e]};let zR=(()=>{class e{constructor(e,t,n){this.signaturesService=e,this.authService=t,this.menu=n}ngOnInit(){this.menu.enable(!1,"right-menu")}}return e.\u0275fac=function(t){return new(t||e)(zr(sS),zr(rS),zr(KA))},e.\u0275cmp=$e({type:e,selectors:[["app-administration"]],decls:12,vars:8,consts:[[3,"translucent"],["color","primary"],["slot","start"],["menu","left-menu"],["mainContent",""],[3,"ngClass"],[4,"ngFor","ngForOf"],["expand","block","size","large","fill","outline","color","secondary",2,"height","200px",3,"routerLink"],[1,"admin-content"],["color","primary",2,"font-size","70px",3,"name"],["color","primary",2,"white-space","normal"],[2,"font-size","8px","white-space","normal","padding","10px"]],template:function(e,t){1&e&&(Hr(0,"ion-header",0),Hr(1,"ion-toolbar",1),Hr(2,"ion-buttons",2),Ur(3,"ion-menu-button",3),jr(),Hr(4,"ion-title"),Da(5),hc(6,"translate"),jr(),jr(),jr(),Hr(7,"ion-content",null,4),Hr(9,"ion-grid"),Hr(10,"ion-row",5),Fr(11,FR,10,8,"ion-col",6),jr(),jr(),jr()),2&e&&(Vr("translucent",!0),no(5),Oa(pc(6,4,"lang.administration")),no(5),Vr("ngClass",ac(6,BR,t.signaturesService.mobileMode?"repeatRowsMobile":"repeatRows")),no(1),Vr("ngForOf",t.authService.user.administrativePrivileges))},directives:[Vx,vA,Cx,Jx,mA,Tx,zx,aA,Nu,ju,Mx,Ax,jA,a_,Nx,Zx,tA],pipes:[$C],styles:[".header[_ngcontent-%COMP%]{background:#135f7f;height:95px;color:#fff;padding-left:10px;font-size:25px}.header[_ngcontent-%COMP%], .header-title[_ngcontent-%COMP%]{display:flex;align-items:center}.header-title[_ngcontent-%COMP%]{flex:1;white-space:pre;overflow:hidden;text-overflow:ellipsis}.header[_ngcontent-%COMP%]   b[_ngcontent-%COMP%]{color:#f99830}.header[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis}.mainView[_ngcontent-%COMP%]{display:flex;flex-direction:column}.container[_ngcontent-%COMP%]{flex:1;overflow:auto}.loader[_ngcontent-%COMP%]{position:absolute;z-index:2;display:flex;background:hsla(0,0%,100%,.8);width:100%;height:100%;justify-content:center;align-items:center;top:0;margin:0;padding:0}.admin-form[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:20px}.actions-form[_ngcontent-%COMP%]{display:flex;justify-content:center}@media (max-width:360px){.actions-form[_ngcontent-%COMP%]{flex-direction:column}}.actions-form[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin:10px;width:150px}@media (max-width:360px){.actions-form[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{width:100%}}.noResult[_ngcontent-%COMP%]{padding:10px;text-align:center;opacity:.5}.emptyTable[_ngcontent-%COMP%]{height:auto}.addButton[_ngcontent-%COMP%]{padding:10px;display:flex;justify-content:flex-end}",".container[_ngcontent-%COMP%]{flex:1;overflow:auto}.container[_ngcontent-%COMP%]   .admin-item[_ngcontent-%COMP%]{padding-top:20px;padding-bottom:20px;text-align:center;width:100%;display:inline-block}@media (min-width:768px){.container[_ngcontent-%COMP%]   .admin-item[_ngcontent-%COMP%]{width:50%}}@media (min-width:992px){.container[_ngcontent-%COMP%]   .admin-item[_ngcontent-%COMP%]{width:33%}}.container[_ngcontent-%COMP%]   .admin-item[_ngcontent-%COMP%]   .mat-stroked-button[_ngcontent-%COMP%]{border-color:#f99830;padding:10px;width:90%;height:160px}.container[_ngcontent-%COMP%]   .admin-item[_ngcontent-%COMP%]   .mat-stroked-button[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{height:auto;width:auto;font-size:50px}.container[_ngcontent-%COMP%]   .admin-item[_ngcontent-%COMP%]   .mat-stroked-button[_ngcontent-%COMP%]    .mat-button-wrapper{display:flex;flex-direction:column}.admin-desc[_ngcontent-%COMP%]{white-space:normal;font-size:10px;line-height:15px;text-align:justify;color:grey;height:60px;overflow:auto}.admin-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center}.repeatRows[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(4,1fr)}.repeatRowsMobile[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));-ms-grid-row-align:10px}"]}),e})();function VR(e,t){if(1&e&&(Hr(0,"div",15),Da(1),hc(2,"translate"),jr()),2&e){const e=na().$implicit;Vr("mat-sort-header",e),no(1),Ma(" ",pc(2,2,"lang."+e)," ")}}function NR(e,t){if(1&e&&(Wr(0),Fr(1,VR,3,4,"div",14),Gr()),2&e){const e=t.$implicit;no(1),Vr("ngIf","actions"!==e)}}function HR(e,t){if(1&e){const e=qr();Hr(0,"div",16),Hr(1,"ion-searchbar",17),Xr("ionChange",function(t){return Lt(e),na().applyFilter(t.detail.value)}),hc(2,"translate"),jr(),jr()}2&e&&(no(1),Vr("placeholder",pc(2,1,"lang.filter")))}function jR(e,t){if(1&e&&(Hr(0,"div",16),Da(1),jr()),2&e){const e=t.$implicit,n=na().$implicit;no(1),Ma(" ",n[e]," ")}}function UR(e,t){if(1&e){const e=qr();Hr(0,"ion-item",7),Hr(1,"ion-label",18),Fr(2,jR,2,1,"div",19),jr(),Hr(3,"ion-button",20),Xr("click",function(n){Lt(e);const i=t.$implicit,s=na();return n.stopPropagation(),s.delete(i)}),hc(4,"translate"),Ur(5,"ion-icon",21),jr(),jr()}if(2&e){const e=t.$implicit,n=na();no(1),aa("routerLink","/administration/users/",e.id,""),no(1),Vr("ngForOf",n.displayedColumns),no(1),ra("title",pc(4,4,"lang.delete")),Vr("disabled",e.id===n.authService.user.id)}}let WR=(()=>{class e{constructor(e,t,n,i,s,o,r,a){this.http=e,this.translate=t,this.latinisePipe=n,this.dialog=i,this.signaturesService=s,this.notificationService=o,this.authService=r,this.alertController=a,this.userList=[],this.loading=!0,this.displayedColumns=this.signaturesService.mobileMode?["firstname","lastname","email"]:["firstname","lastname","email","actions"]}applyFilter(e){e=this.latinisePipe.transform(e.toLowerCase()),this.sortedData=this.userList.filter(t=>{let n=!1;return this.displayedColumns.forEach(i=>{t[i]&&this.latinisePipe.transform(t[i].toLowerCase()).includes(e)&&(n=!0)}),n})}ionViewWillEnter(){this.http.get("../rest/users?mode=all").pipe(k(e=>e.users),Iv(()=>this.loading=!1)).subscribe({next:e=>{this.userList=e,this.sortedData=this.userList.slice()}})}delete(e){return t=this,void 0,i=function*(){const t=yield this.alertController.create({header:this.translate.instant("lang.confirmMsg"),buttons:[{text:this.translate.instant("lang.no"),role:"cancel",cssClass:"secondary",handler:()=>{}},{text:this.translate.instant("lang.yes"),handler:()=>{this.http.delete("../rest/users/"+e.id).pipe(Iv(()=>this.loading=!1)).subscribe({next:t=>{const n=this.userList.findIndex(t=>t.id===e.id);this.userList.splice(n,1),this.sortedData=this.userList.slice(),this.notificationService.success("lang.userDeleted")},error:e=>{this.notificationService.handleErrors(e)}})}}]});yield t.present()},new((n=void 0)||(n=Promise))(function(e,s){function o(e){try{a(i.next(e))}catch(t){s(t)}}function r(e){try{a(i.throw(e))}catch(t){s(t)}}function a(t){var i;t.done?e(t.value):(i=t.value,i instanceof n?i:new n(function(e){e(i)})).then(o,r)}a((i=i.apply(t,[])).next())});var t,n,i}sortData(e){const t=this.userList.slice();this.sortedData=e.active&&""!==e.direction?t.sort((t,n)=>function(e,t,n){return(e<t?-1:1)*(n?1:-1)}(t[e.active],n[e.active],"asc"===e.direction)):t}}return e.\u0275fac=function(t){return new(t||e)(zr(Db),zr(GC),zr(dP),zr(IM),zr(sS),zr(ZC),zr(rS),zr(QA))},e.\u0275cmp=$e({type:e,selectors:[["app-administration-users-list"]],decls:28,vars:18,consts:[[3,"translucent"],["color","primary"],["slot","start"],["menu","left-menu"],["fill","outline","shape","round","routerLink","/administration/users/new"],["slot","end","color","secondary"],["mainContent",""],[2,"display","flex"],["color","primary","matSort","","matSortDirection","asc",2,"display","flex","font-size","12px","align-items","center",3,"matSortActive","matSortChange"],[4,"ngFor","ngForOf"],["style","flex: 1",4,"ngIf"],["slot","end","fill","clear","shape","round","disabled",""],["approxItemHeight","50px",3,"items"],["style","display: flex;",4,"virtualItem"],["disableClear","","style","flex: 1",3,"mat-sort-header",4,"ngIf"],["disableClear","",2,"flex","1",3,"mat-sort-header"],[2,"flex","1"],[2,"padding","1px",3,"placeholder","ionChange"],[2,"display","flex","cursor","pointer",3,"routerLink"],["style","flex: 1",4,"ngFor","ngForOf"],["slot","end","fill","clear","shape","round",3,"disabled","title","click"],["color","danger","slot","icon-only","name","trash"]],template:function(e,t){1&e&&(Hr(0,"ion-header",0),Hr(1,"ion-toolbar",1),Hr(2,"ion-buttons",2),Ur(3,"ion-menu-button",3),Ur(4,"ion-back-button"),jr(),Hr(5,"ion-title"),Da(6),hc(7,"translate"),hc(8,"translate"),jr(),jr(),Hr(9,"ion-toolbar",1),Hr(10,"ion-buttons",2),Hr(11,"ion-button",4),Da(12),hc(13,"translate"),jr(),jr(),Hr(14,"ion-title",5),Da(15),hc(16,"translate"),jr(),jr(),jr(),Hr(17,"ion-content",null,6),Hr(19,"ion-list"),Hr(20,"ion-item",7),Hr(21,"ion-label",8),Xr("matSortChange",function(e){return t.sortData(e)}),Fr(22,NR,2,1,"ng-container",9),Fr(23,HR,3,3,"div",10),jr(),Hr(24,"ion-button",11),Ur(25,"ion-icon"),jr(),jr(),Hr(26,"ion-virtual-scroll",12),Fr(27,UR,6,6,"ion-item",13),jr(),jr(),jr()),2&e&&(Vr("translucent",!0),no(6),Ta("",pc(7,10,"lang.administration")," ",pc(8,12,"lang.manage_usersAlt"),""),no(6),Ma(" ",pc(13,14,"lang.userCreation")," "),no(3),Ta("",t.userList.length," ",pc(16,16,"lang.manage_usersAlt"),""),no(6),Vr("matSortActive",t.displayedColumns[1]),no(1),Vr("ngForOf",t.displayedColumns),no(1),Vr("ngIf",t.displayedColumns.indexOf("actions")>-1),no(3),Vr("items",t.sortedData))},directives:[Vx,vA,Cx,Jx,_x,HA,mA,Ax,jA,a_,Tx,Qx,Gx,Zx,cI,ju,Wu,Nx,$A,GA,mI,lA,ax],pipes:[$C],styles:[".header[_ngcontent-%COMP%]{background:#135f7f;height:95px;color:#fff;padding-left:10px;font-size:25px}.header[_ngcontent-%COMP%], .header-title[_ngcontent-%COMP%]{display:flex;align-items:center}.header-title[_ngcontent-%COMP%]{flex:1;white-space:pre;overflow:hidden;text-overflow:ellipsis}.header[_ngcontent-%COMP%]   b[_ngcontent-%COMP%]{color:#f99830}.header[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis}.mainView[_ngcontent-%COMP%]{display:flex;flex-direction:column}.container[_ngcontent-%COMP%]{flex:1;overflow:auto}.loader[_ngcontent-%COMP%]{position:absolute;z-index:2;display:flex;background:hsla(0,0%,100%,.8);width:100%;height:100%;justify-content:center;align-items:center;top:0;margin:0;padding:0}.admin-form[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:20px}.actions-form[_ngcontent-%COMP%]{display:flex;justify-content:center}@media (max-width:360px){.actions-form[_ngcontent-%COMP%]{flex-direction:column}}.actions-form[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin:10px;width:150px}@media (max-width:360px){.actions-form[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{width:100%}}.noResult[_ngcontent-%COMP%]{padding:10px;text-align:center;opacity:.5}.emptyTable[_ngcontent-%COMP%]{height:auto}.addButton[_ngcontent-%COMP%]{padding:10px;display:flex;justify-content:flex-end}",""]}),e})();function GR(e,t){1&e&&(Ur(0,"div",5),hc(1,"translate")),2&e&&Vr("innerHTML",pc(1,1,na().data.msg),ss)}let $R=(()=>{class e{constructor(e,t,n){this.translate=e,this.data=t,this.dialogRef=n,null===this.data.msg&&(this.data.msg="")}}return e.\u0275fac=function(t){return new(t||e)(zr(GC),zr(EM),zr(kM))},e.\u0275cmp=$e({type:e,selectors:[["ng-component"]],decls:12,vars:13,consts:[["mat-dialog-title",""],["mat-dialog-content","",3,"innerHTML",4,"ngIf"],["mat-dialog-actions",""],["mat-button","",1,"actions","btn","blue",3,"click"],["mat-button","",1,"actions","btn","red",3,"click"],["mat-dialog-content","",3,"innerHTML"]],template:function(e,t){1&e&&(Hr(0,"div"),Hr(1,"h1",0),Da(2),hc(3,"translate"),jr(),Fr(4,GR,2,3,"div",1),Hr(5,"div",2),Hr(6,"button",3),Xr("click",function(){return t.dialogRef.close("yes")}),Da(7),hc(8,"translate"),jr(),Hr(9,"button",4),Xr("click",function(){return t.dialogRef.close("no")}),Da(10),hc(11,"translate"),jr(),jr(),jr()),2&e&&(La("modalContent ",t.data.mode,""),no(2),Oa(pc(3,7,t.data.title)),no(2),Vr("ngIf",null!==t.data.msg),no(3),Oa(pc(8,9,"lang.yes")),no(3),Oa(pc(11,11,"lang.no")))},directives:[LM,Wu,BM,gM,FM],pipes:[$C],styles:[".modalContent[_ngcontent-%COMP%]{position:relative}.mat-dialog-content[_ngcontent-%COMP%], .mat-dialog-title[_ngcontent-%COMP%]{text-align:center!important;color:#666}.mat-dialog-title[_ngcontent-%COMP%]{font-weight:700}.actions[_ngcontent-%COMP%]{width:100%;margin:10px}.close[_ngcontent-%COMP%]{position:absolute;top:-15px;right:-15px;width:40px;height:40px;font-size:20px;color:#666}.warning[_ngcontent-%COMP%]   .mat-dialog-title[_ngcontent-%COMP%]{color:#e74c3c}"]}),e})();function qR(e,t){if(1&e){const e=qr();Hr(0,"ion-item"),Hr(1,"ion-label"),Da(2),hc(3,"translate"),jr(),Hr(4,"ion-checkbox",27),Xr("ionChange",function(t){Lt(e);const n=na().$implicit;return na(2).toggleSignMode(n,t.detail.checked)}),jr(),jr()}if(2&e){const e=na().$implicit,t=na(2);no(1),fa("color",e.color),no(1),Oa(pc(3,5,"lang."+e.id)),no(2),Vr("checked",t.user.signatureModes.indexOf(e.id)>-1)("disabled","stamp"===e.id)}}function YR(e,t){if(1&e&&(Wr(0),Fr(1,qR,5,7,"ion-item",11),Gr()),2&e){const e=t.$implicit;no(1),Vr("ngIf","visa"!==e.id)}}function ZR(e,t){if(1&e&&(Hr(0,"ion-note",33),Da(1),hc(2,"translate"),jr()),2&e){const e=na(3);no(1),Ma(" ",pc(2,1,e.handlePassword.errorMsg),"")}}function QR(e,t){if(1&e){const e=qr();Hr(0,"ion-item",28),Hr(1,"ion-button",29),Xr("click",function(){Lt(e);const t=na(2);return t.hideNewPassword=!t.hideNewPassword}),Ur(2,"ion-icon",30),jr(),Hr(3,"ion-label",14),Da(4),hc(5,"translate"),jr(),Hr(6,"ion-input",31),Xr("ngModelChange",function(t){return Lt(e),na(2).passwordRest.newPassword=t})("ionChange",function(){Lt(e);const t=na(2);return t.checkPasswordValidity(t.passwordRest.newPassword)}),jr(),Fr(7,ZR,3,3,"ion-note",32),jr()}if(2&e){const e=na(2);no(2),Vr("name",e.hideNewPassword?"eye-outline":"eye-off-outline"),no(2),Oa(pc(5,5,"lang.newPassword")),no(2),Vr("type",e.hideNewPassword?"password":"text")("ngModel",e.passwordRest.newPassword),no(1),Vr("ngIf",e.handlePassword.error&&e.passwordRest.newPassword.length>0)}}function XR(e,t){1&e&&(Hr(0,"ion-note",33),Da(1),hc(2,"translate"),jr()),2&e&&(no(1),Ma(" ",pc(2,1,"lang.passwordNotMatch"),""))}function KR(e,t){1&e&&(Hr(0,"ion-note",36),Da(1),hc(2,"translate"),jr()),2&e&&(no(1),Ma(" ",pc(2,1,"lang.samePassword"),""))}function JR(e,t){if(1&e){const e=qr();Hr(0,"ion-item",28),Hr(1,"ion-button",29),Xr("click",function(){Lt(e);const t=na(2);return t.hideNewPasswordConfirm=!t.hideNewPasswordConfirm}),Ur(2,"ion-icon",30),jr(),Hr(3,"ion-label",14),Da(4),hc(5,"translate"),jr(),Hr(6,"ion-input",34),Xr("ngModelChange",function(t){return Lt(e),na(2).passwordRest.passwordConfirmation=t}),jr(),Fr(7,XR,3,3,"ion-note",32),Fr(8,KR,3,3,"ion-note",35),jr()}if(2&e){const e=na(2);no(2),Vr("name",e.hideNewPasswordConfirm?"eye-outline":"eye-off-outline"),no(2),Oa(pc(5,6,"lang.passwordConfirmation")),no(2),Vr("type",e.hideNewPasswordConfirm?"password":"text")("ngModel",e.passwordRest.passwordConfirmation),no(1),Vr("ngIf",e.passwordRest.passwordConfirmation!==e.passwordRest.newPassword&&e.passwordRest.passwordConfirmation.length>0),no(1),Vr("ngIf",e.passwordRest.passwordConfirmation===e.passwordRest.newPassword&&e.passwordRest.newPassword.length>0&&e.passwordRest.passwordConfirmation.length>0&&!e.handlePassword.error)}}function eL(e,t){if(1&e){const e=qr();Wr(0),Hr(1,"form",12,13),Xr("ngSubmit",function(){return Lt(e),na().onSubmit()}),Hr(3,"ion-content"),Hr(4,"ion-item"),Hr(5,"ion-label",14),Da(6),hc(7,"translate"),jr(),Hr(8,"ion-input",15),Xr("ngModelChange",function(t){return Lt(e),na().user.login=t}),jr(),jr(),Hr(9,"ion-item"),Hr(10,"ion-label",14),Da(11),hc(12,"translate"),jr(),Hr(13,"ion-input",16),Xr("ngModelChange",function(t){return Lt(e),na().user.firstname=t}),jr(),jr(),Hr(14,"ion-item"),Hr(15,"ion-label",14),Da(16),hc(17,"translate"),jr(),Hr(18,"ion-input",17),Xr("ngModelChange",function(t){return Lt(e),na().user.lastname=t}),jr(),jr(),Hr(19,"ion-item"),Hr(20,"ion-label",14),Da(21),hc(22,"translate"),jr(),Hr(23,"ion-input",18),Xr("ngModelChange",function(t){return Lt(e),na().user.email=t}),jr(),jr(),Hr(24,"ion-item"),Hr(25,"ion-label"),Da(26),hc(27,"translate"),jr(),Hr(28,"ion-toggle",19),Xr("ngModelChange",function(t){return Lt(e),na().user.isRest=t})("ionChange",function(t){return Lt(e),na().getPassRules(t)}),jr(),jr(),Hr(29,"ion-list"),Hr(30,"ion-list-header"),Hr(31,"ion-label",20),Da(32),hc(33,"translate"),jr(),jr(),Fr(34,YR,2,1,"ng-container",21),jr(),Fr(35,QR,8,7,"ion-item",22),Fr(36,JR,9,8,"ion-item",22),Hr(37,"ion-item",23),Hr(38,"div",24),Hr(39,"ion-button",25),Hr(40,"ion-label",26),Da(41),hc(42,"translate"),jr(),jr(),jr(),jr(),jr(),jr(),Gr()}if(2&e){const e=Br(2),t=na();no(6),Ma("",pc(7,23,"lang.login")," *"),no(2),Vr("maxlength",128)("readonly",!t.creationMode)("ngModel",t.user.login),no(3),Ma("",pc(12,25,"lang.firstname")," *"),no(2),Vr("maxlength",128)("ngModel",t.user.firstname),no(3),Ma("",pc(17,27,"lang.lastname")," *"),no(2),Vr("maxlength",128)("ngModel",t.user.lastname),no(3),Ma("",pc(22,29,"lang.email")," *"),no(2),Vr("maxlength",128)("ngModel",t.user.email),no(3),Oa(pc(27,31,"lang.restUser")),no(2),Vr("disabled",!t.creationMode)("ngModel",t.user.isRest)("checked",t.user.isRest),no(4),Oa(pc(33,33,"lang.signatureModes")),no(2),Vr("ngForOf",t.authService.signatureRoles),no(1),Vr("ngIf",t.user.isRest),no(1),Vr("ngIf",t.user.isRest),no(3),Vr("disabled",!e.form.valid||!t.canValidate()),no(2),Oa(pc(42,35,"lang.validate"))}}function tL(e,t){if(1&e&&(Hr(0,"ion-item"),Hr(1,"ion-label"),Da(2),jr(),jr()),2&e){const e=t.$implicit;no(2),Oa(e.label)}}function nL(e,t){if(1&e&&(Hr(0,"ion-list"),Fr(1,tL,3,1,"ion-item",21),jr()),2&e){const e=na(2);no(1),Vr("ngForOf",e.user.groups)}}function iL(e,t){1&e&&(Hr(0,"ion-list",38),Hr(1,"ion-item",39),Hr(2,"ion-label",40),Da(3),hc(4,"translate"),jr(),jr(),jr()),2&e&&(no(3),Oa(pc(4,1,"lang.noAssociatedGroup")))}function sL(e,t){if(1&e&&(Wr(0),Hr(1,"ion-content"),Fr(2,nL,2,1,"ion-list",11),Fr(3,iL,5,3,"ion-list",37),jr(),Gr()),2&e){const e=na();no(2),Vr("ngIf",e.user.groups.length>0),no(1),Vr("ngIf",0===e.user.groups.length)}}let oL=(()=>{class e{constructor(e,t,n,i,s,o,r,a){this.http=e,this.translate=t,this.route=n,this.router=i,this.signaturesService=s,this.notificationService=o,this.dialog=r,this.authService=a,this.creationMode=!0,this.loading=!0,this.user={id:"",firstname:"",lastname:"",login:"",email:"",picture:"",isRest:!1,signatureModes:["stamp"]},this.title="",this.hideCurrentPassword=!0,this.hideNewPassword=!0,this.hideNewPasswordConfirm=!0,this.currentTool="info",this.passwordRules={minLength:{enabled:!1,value:0},complexityUpper:{enabled:!1,value:0},complexityNumber:{enabled:!1,value:0},complexitySpecial:{enabled:!1,value:0},renewal:{enabled:!1,value:0},historyLastUse:{enabled:!1,value:0}},this.passwordRest={newPassword:"",passwordConfirmation:""},this.ruleText="",this.otherRuleText="",this.showPassword=!1,this.handlePassword={error:!1,errorMsg:""}}ngOnInit(){this.route.params.subscribe(e=>{void 0===e.id?(this.creationMode=!0,this.title=this.translate.instant("lang.userCreation"),this.user={id:"",firstname:"",lastname:"",login:"",email:"",picture:"",signatureModes:["stamp"],isRest:!1},this.loading=!1):(this.creationMode=!1,this.http.get("../rest/users/"+e.id).pipe(k(e=>e.user),Iv(()=>this.loading=!1)).subscribe({next:e=>{this.user=e,this.userClone=JSON.parse(JSON.stringify(this.user)),this.title=this.user.firstname+" "+this.user.lastname,this.user.isRest&&this.getPassRules({detail:{checked:!0}})}}))})}canValidate(){return!(this.user.isRest&&""!==this.passwordRest.newPassword&&(this.handlePassword.error||this.passwordRest.passwordConfirmation!==this.passwordRest.newPassword)||JSON.stringify(this.user)===JSON.stringify(this.userClone)&&""===this.passwordRest.newPassword)}onSubmit(){this.creationMode?this.createUser():this.modifyUser()}modifyUser(){this.loading=!0,this.http.put("../rest/users/"+this.user.id,this.user).pipe(Iv(()=>this.loading=!1),Ov(()=>{this.authService.user.id===this.user.id&&this.authService.updateUserInfoWithTokenRefresh(),""!==this.passwordRest.newPassword&&this.updateRestUser(),this.router.navigate(["/administration/users"]),this.notificationService.success("lang.userUpdated")}),fv(e=>(this.notificationService.handleErrors(e),lb(!1)))).subscribe()}updateRestUser(){const e=new fb({Authorization:"Bearer "+this.authService.getToken()});this.http.put("../rest/users/"+this.user.id+"/password",this.passwordRest,{headers:e}).subscribe(()=>{this.passwordRest.newPassword="",this.passwordRest.passwordConfirmation=""},e=>{this.notificationService.handleErrors(e)})}createUser(){this.loading=!0,this.http.post("../rest/users",this.user).pipe(Iv(()=>this.loading=!1),Ov(e=>{this.user.isRest&&(this.user.id=e.id,this.updateRestUser()),this.router.navigate(["/administration/users"]),this.notificationService.success("lang.userAdded")}),fv(e=>(this.notificationService.handleErrors(e),lb(!1)))).subscribe()}delete(){this.dialog.open($R,{autoFocus:!1,data:{mode:"",title:"lang.confirmMsg",msg:""}}).afterClosed().subscribe(e=>{"yes"===e&&(this.loading=!0,this.http.delete("../rest/users/"+this.user.id).pipe(Iv(()=>this.loading=!1)).subscribe({next:()=>{this.router.navigate(["/administration/users"]),this.notificationService.success("lang.userDeleted")}}))})}cancel(){this.router.navigate(["/administration/users"])}getPassRules(e){e.detail.checked&&(this.handlePassword.error=!1,this.handlePassword.errorMsg="",this.http.get("../rest/passwordRules").subscribe(e=>{const t=[],n=[];e.rules.forEach(e=>{"minLength"===e.label?(this.passwordRules.minLength.enabled=e.enabled,this.passwordRules.minLength.value=e.value,e.enabled&&this.translate.get("lang.minLengthChar",{charLength:e.value}).subscribe(e=>{t.push(e)})):"complexityUpper"===e.label?(this.passwordRules.complexityUpper.enabled=e.enabled,this.passwordRules.complexityUpper.value=e.value,e.enabled&&t.push("lang.upperRequired")):"complexityNumber"===e.label?(this.passwordRules.complexityNumber.enabled=e.enabled,this.passwordRules.complexityNumber.value=e.value,e.enabled&&t.push("lang.numberRequired")):"complexitySpecial"===e.label?(this.passwordRules.complexitySpecial.enabled=e.enabled,this.passwordRules.complexitySpecial.value=e.value,e.enabled&&t.push("lang.specialCharRequired")):"renewal"===e.label?(this.passwordRules.renewal.enabled=e.enabled,this.passwordRules.renewal.value=e.value,e.enabled&&this.translate.get("lang.renewalInfo",{time:e.value}).subscribe(e=>{n.push(e)})):"historyLastUse"===e.label&&(this.passwordRules.historyLastUse.enabled=e.enabled,this.passwordRules.historyLastUse.value=e.value,e.enabled&&this.translate.get("lang.historyUseInfo",{countPwd:e.value}).subscribe(e=>{n.push(e)}))}),this.ruleText=t.join(", "),this.otherRuleText=n.join("<br/>")},e=>{this.notificationService.handleErrors(e)}))}checkPasswordValidity(e){this.handlePassword.error=!0,!e.match(/[A-Z]/g)&&this.passwordRules.complexityUpper.enabled?this.handlePassword.errorMsg="lang.upperRequired":!e.match(/[0-9]/g)&&this.passwordRules.complexityNumber.enabled?this.handlePassword.errorMsg="lang.numberRequired":!e.match(/[^A-Za-z0-9]/g)&&this.passwordRules.complexitySpecial.enabled?this.handlePassword.errorMsg="lang.specialCharRequired":e.length<this.passwordRules.minLength.value&&this.passwordRules.minLength.enabled?this.translate.get("lang.minLengthChar",{charLength:this.passwordRules.minLength.value}).subscribe(e=>{this.handlePassword.errorMsg=e}):(this.handlePassword.error=!1,this.handlePassword.errorMsg="")}toggleSignMode(e,t){t?-1===this.user.signatureModes.indexOf(e.id)&&this.user.signatureModes.push(e.id):this.user.signatureModes=this.user.signatureModes.filter(t=>t!==e.id)}initTab(e){this.currentTool=e}}return e.\u0275fac=function(t){return new(t||e)(zr(Db),zr(GC),zr(Ny),zr(r_),zr(sS),zr(ZC),zr(IM),zr(rS))},e.\u0275cmp=$e({type:e,selectors:[["app-administration-user"]],decls:24,vars:13,consts:[[3,"translucent"],["color","primary"],["slot","start"],["menu","left-menu"],["slot","end"],[3,"src"],[3,"value","ionChange"],["value","info"],["name","information-circle"],["value","groups",3,"disabled"],["name","people-sharp"],[4,"ngIf"],["id","adminForm",2,"display","contents",3,"ngSubmit"],["adminForm","ngForm"],["color","secondary","position","floating"],["name","login","required","","pattern","^[\\w.@-]*$",3,"maxlength","readonly","ngModel","ngModelChange"],["name","firstname","required","",3,"maxlength","ngModel","ngModelChange"],["name","lastname","required","",3,"maxlength","ngModel","ngModelChange"],["type","email","name","email","required","","pattern","(^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\\.[a-zA-Z0-9-.]+$)",3,"maxlength","ngModel","ngModelChange"],["slot","start","color","primary","name","isRest",3,"disabled","ngModel","checked","ngModelChange","ionChange"],["color","secondary"],[4,"ngFor","ngForOf"],["style","align-items: center;",4,"ngIf"],["text-center","","lines","none",2,"position","sticky","bottom","0px","z-index","1"],[2,"display","flex","align-items","center","justify-content","center","width","100%","background","white"],["type","submit","shape","round","size","large","fill","outline","color","primary",3,"disabled"],[2,"font-size","13px"],["slot","start",3,"checked","disabled","ionChange"],[2,"align-items","center"],["slot","end","fill","clear","color","primary",3,"click"],["color","primary",3,"name"],["name","newPasswordRest",3,"type","ngModel","ngModelChange","ionChange"],["color","danger",4,"ngIf"],["color","danger"],["name","passwordConfirmation",3,"type","ngModel","ngModelChange"],["color","success",4,"ngIf"],["color","success"],["class","no-result",4,"ngIf"],[1,"no-result"],["lines","none"],["color","medium",1,"no-result-label"]],template:function(e,t){1&e&&(Hr(0,"ion-header",0),Hr(1,"ion-toolbar",1),Hr(2,"ion-buttons",2),Ur(3,"ion-menu-button",3),Ur(4,"ion-back-button"),jr(),Hr(5,"ion-title"),Da(6),jr(),Hr(7,"ion-avatar",4),Ur(8,"img",5),jr(),jr(),jr(),Hr(9,"ion-header"),Hr(10,"ion-toolbar"),Hr(11,"ion-segment",6),Xr("ionChange",function(e){return t.initTab(e.detail.value)}),Hr(12,"ion-segment-button",7),Hr(13,"ion-label"),Da(14),hc(15,"translate"),jr(),Ur(16,"ion-icon",8),jr(),Hr(17,"ion-segment-button",9),Hr(18,"ion-label"),Da(19),hc(20,"translate"),jr(),Ur(21,"ion-icon",10),jr(),jr(),jr(),jr(),Fr(22,eL,43,37,"ng-container",11),Fr(23,sL,4,2,"ng-container",11)),2&e&&(Vr("translucent",!0),no(6),Oa(t.title),no(2),Vr("src",t.user.picture,os),no(3),Vr("value",t.currentTool),no(3),Oa(pc(15,9,"lang.informations")),no(3),Vr("disabled",t.creationMode),no(2),Oa(pc(20,11,"lang.manage_groups")),no(3),Vr("ngIf","info"===t.currentTool),no(1),Vr("ngIf","groups"===t.currentTool))},directives:[Vx,vA,Cx,Jx,_x,HA,mA,wx,cA,ox,dA,Zx,Nx,Wu,Lm,am,Mm,Tx,Gx,Wx,ax,Jm,ib,tb,rm,Rm,bA,J_,Qx,Xx,ju,Ax,Dx,tA],pipes:[$C],styles:[".header[_ngcontent-%COMP%]{background:#135f7f;height:95px;color:#fff;padding-left:10px;font-size:25px}.header[_ngcontent-%COMP%], .header-title[_ngcontent-%COMP%]{display:flex;align-items:center}.header-title[_ngcontent-%COMP%]{flex:1;white-space:pre;overflow:hidden;text-overflow:ellipsis}.header[_ngcontent-%COMP%]   b[_ngcontent-%COMP%]{color:#f99830}.header[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis}.mainView[_ngcontent-%COMP%]{display:flex;flex-direction:column}.container[_ngcontent-%COMP%]{flex:1;overflow:auto}.loader[_ngcontent-%COMP%]{position:absolute;z-index:2;display:flex;background:hsla(0,0%,100%,.8);width:100%;height:100%;justify-content:center;align-items:center;top:0;margin:0;padding:0}.admin-form[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:20px}.actions-form[_ngcontent-%COMP%]{display:flex;justify-content:center}@media (max-width:360px){.actions-form[_ngcontent-%COMP%]{flex-direction:column}}.actions-form[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin:10px;width:150px}@media (max-width:360px){.actions-form[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{width:100%}}.noResult[_ngcontent-%COMP%]{padding:10px;text-align:center;opacity:.5}.emptyTable[_ngcontent-%COMP%]{height:auto}.addButton[_ngcontent-%COMP%]{padding:10px;display:flex;justify-content:flex-end}",".no-result[_ngcontent-%COMP%]{height:100%;display:flex;align-items:center;justify-content:center}.no-result[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]{width:100%;text-align:center}.no-result-label[_ngcontent-%COMP%]{font-size:30px}"]}),e})();function rL(e,t){if(1&e&&(Hr(0,"div",15),Da(1),hc(2,"translate"),jr()),2&e){const e=na().$implicit;Vr("mat-sort-header",e),no(1),Ma(" ",pc(2,2,"lang."+e)," ")}}function aL(e,t){if(1&e&&(Wr(0),Fr(1,rL,3,4,"div",14),Gr()),2&e){const e=t.$implicit;no(1),Vr("ngIf","actions"!==e)}}function lL(e,t){if(1&e){const e=qr();Hr(0,"div",16),Hr(1,"ion-searchbar",17),Xr("ionChange",function(t){return Lt(e),na().applyFilter(t.detail.value)}),hc(2,"translate"),jr(),jr()}2&e&&(no(1),Vr("placeholder",pc(2,1,"lang.filter")))}function cL(e,t){if(1&e&&(Hr(0,"div",16),Da(1),jr()),2&e){const e=t.$implicit,n=na().$implicit;no(1),Ma(" ",n[e]," ")}}function dL(e,t){if(1&e){const e=qr();Hr(0,"ion-item",7),Hr(1,"ion-label",18),Fr(2,cL,2,1,"div",19),jr(),Hr(3,"ion-button",20),Xr("click",function(n){Lt(e);const i=t.$implicit,s=na();return n.stopPropagation(),s.delete(i)}),hc(4,"translate"),Ur(5,"ion-icon",21),jr(),jr()}if(2&e){const e=t.$implicit,n=na();no(1),aa("routerLink","/administration/groups/",e.id,""),no(1),Vr("ngForOf",n.displayedColumns),no(1),ra("title",pc(4,3,"lang.delete"))}}let uL=(()=>{class e{constructor(e,t,n,i,s,o,r){this.http=e,this.translate=t,this.latinisePipe=n,this.dialog=i,this.signaturesService=s,this.notificationService=o,this.alertController=r,this.groupList=[],this.loading=!0,this.displayedColumns=["label","actions"]}applyFilter(e){e=this.latinisePipe.transform(e.toLowerCase()),this.sortedData=this.groupList.filter(t=>{let n=!1;return this.displayedColumns.forEach(i=>{t[i]&&this.latinisePipe.transform(t[i].toLowerCase()).includes(e)&&(n=!0)}),n})}ionViewWillEnter(){this.http.get("../rest/groups").pipe(k(e=>e.groups),Iv(()=>this.loading=!1)).subscribe({next:e=>{this.groupList=e,this.sortedData=this.groupList.slice()}})}delete(e){return t=this,void 0,i=function*(){const t=yield this.alertController.create({header:this.translate.instant("lang.confirmMsg"),buttons:[{text:this.translate.instant("lang.no"),role:"cancel",cssClass:"secondary",handler:()=>{}},{text:this.translate.instant("lang.yes"),handler:()=>{this.http.delete("../rest/groups/"+e.id).pipe(Iv(()=>this.loading=!1)).subscribe({next:t=>{const n=this.groupList.findIndex(t=>t.id===e.id);this.groupList.splice(n,1),this.sortedData=this.groupList.slice(),this.notificationService.success("lang.groupDeleted")}})}}]});yield t.present()},new((n=void 0)||(n=Promise))(function(e,s){function o(e){try{a(i.next(e))}catch(t){s(t)}}function r(e){try{a(i.throw(e))}catch(t){s(t)}}function a(t){var i;t.done?e(t.value):(i=t.value,i instanceof n?i:new n(function(e){e(i)})).then(o,r)}a((i=i.apply(t,[])).next())});var t,n,i}sortData(e){const t=this.groupList.slice();this.sortedData=e.active&&""!==e.direction?t.sort((t,n)=>function(e,t,n){return(e<t?-1:1)*(n?1:-1)}(t[e.active],n[e.active],"asc"===e.direction)):t}}return e.\u0275fac=function(t){return new(t||e)(zr(Db),zr(GC),zr(dP),zr(IM),zr(sS),zr(ZC),zr(QA))},e.\u0275cmp=$e({type:e,selectors:[["app-administration-groups-list"]],viewQuery:function(e,t){if(1&e&&(Tc(ZT,3),Tc(cI,3)),2&e){let e;Mc(e=Rc())&&(t.paginator=e.first),Mc(e=Rc())&&(t.sort=e.first)}},decls:28,vars:18,consts:[[3,"translucent"],["color","primary"],["slot","start"],["menu","left-menu"],["fill","outline","shape","round","routerLink","/administration/groups/new"],["slot","end","color","secondary"],["mainContent",""],[2,"display","flex"],["color","primary","matSort","","matSortDirection","asc",2,"display","flex","font-size","12px","align-items","center",3,"matSortActive","matSortChange"],[4,"ngFor","ngForOf"],["style","flex: 1",4,"ngIf"],["slot","end","fill","clear","shape","round","disabled",""],["approxItemHeight","50px",3,"items"],["style","display: flex;",4,"virtualItem"],["disableClear","","style","flex: 1",3,"mat-sort-header",4,"ngIf"],["disableClear","",2,"flex","1",3,"mat-sort-header"],[2,"flex","1"],[2,"padding","1px",3,"placeholder","ionChange"],[2,"display","flex","cursor","pointer",3,"routerLink"],["style","flex: 1",4,"ngFor","ngForOf"],["slot","end","fill","clear","shape","round",3,"title","click"],["color","danger","slot","icon-only","name","trash"]],template:function(e,t){1&e&&(Hr(0,"ion-header",0),Hr(1,"ion-toolbar",1),Hr(2,"ion-buttons",2),Ur(3,"ion-menu-button",3),Ur(4,"ion-back-button"),jr(),Hr(5,"ion-title"),Da(6),hc(7,"translate"),hc(8,"translate"),jr(),jr(),Hr(9,"ion-toolbar",1),Hr(10,"ion-buttons",2),Hr(11,"ion-button",4),Da(12),hc(13,"translate"),jr(),jr(),Hr(14,"ion-title",5),Da(15),hc(16,"translate"),jr(),jr(),jr(),Hr(17,"ion-content",null,6),Hr(19,"ion-list"),Hr(20,"ion-item",7),Hr(21,"ion-label",8),Xr("matSortChange",function(e){return t.sortData(e)}),Fr(22,aL,2,1,"ng-container",9),Fr(23,lL,3,3,"div",10),jr(),Hr(24,"ion-button",11),Ur(25,"ion-icon"),jr(),jr(),Hr(26,"ion-virtual-scroll",12),Fr(27,dL,6,5,"ion-item",13),jr(),jr(),jr()),2&e&&(Vr("translucent",!0),no(6),Ta("",pc(7,10,"lang.administration")," ",pc(8,12,"lang.manage_groupsAlt"),""),no(6),Ma(" ",pc(13,14,"lang.groupCreation")," "),no(3),Ta("",t.groupList.length," ",pc(16,16,"lang.manage_groupsAlt"),""),no(6),Vr("matSortActive",t.displayedColumns[0]),no(1),Vr("ngForOf",t.displayedColumns),no(1),Vr("ngIf",t.displayedColumns.indexOf("actions")>-1),no(3),Vr("items",t.sortedData))},directives:[Vx,vA,Cx,Jx,_x,HA,mA,Ax,jA,a_,Tx,Qx,Gx,Zx,cI,ju,Wu,Nx,$A,GA,mI,lA,ax],pipes:[$C],styles:[".header[_ngcontent-%COMP%]{background:#135f7f;height:95px;color:#fff;padding-left:10px;font-size:25px}.header[_ngcontent-%COMP%], .header-title[_ngcontent-%COMP%]{display:flex;align-items:center}.header-title[_ngcontent-%COMP%]{flex:1;white-space:pre;overflow:hidden;text-overflow:ellipsis}.header[_ngcontent-%COMP%]   b[_ngcontent-%COMP%]{color:#f99830}.header[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis}.mainView[_ngcontent-%COMP%]{display:flex;flex-direction:column}.container[_ngcontent-%COMP%]{flex:1;overflow:auto}.loader[_ngcontent-%COMP%]{position:absolute;z-index:2;display:flex;background:hsla(0,0%,100%,.8);width:100%;height:100%;justify-content:center;align-items:center;top:0;margin:0;padding:0}.admin-form[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:20px}.actions-form[_ngcontent-%COMP%]{display:flex;justify-content:center}@media (max-width:360px){.actions-form[_ngcontent-%COMP%]{flex-direction:column}}.actions-form[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin:10px;width:150px}@media (max-width:360px){.actions-form[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{width:100%}}.noResult[_ngcontent-%COMP%]{padding:10px;text-align:center;opacity:.5}.emptyTable[_ngcontent-%COMP%]{height:auto}.addButton[_ngcontent-%COMP%]{padding:10px;display:flex;justify-content:flex-end}",""]}),e})();function hL(e,t){if(1&e){const e=qr();Hr(0,"ion-item",4),Xr("click",function(){Lt(e);const n=t.$implicit;return na().selectUser(n)}),Hr(1,"ion-label"),Da(2),jr(),jr()}if(2&e){const e=t.$implicit;no(2),Ta(" ",e.firstname," ",e.lastname," ")}}let pL=(()=>{class e{constructor(e,t){this.http=e,this.modalController=t,this.usersList=[]}ngOnInit(){this.http.get("../rest/users?mode=all").pipe(k(e=>e.users)).subscribe({next:e=>{this.usersList=e.filter(e=>-1===this.users.findIndex(t=>t.id===e.id))}})}selectUser(e){this.modalController.dismiss(e)}}return e.\u0275fac=function(t){return new(t||e)(zr(Db),zr(JA))},e.\u0275cmp=$e({type:e,selectors:[["app-users"]],inputs:{users:"users"},decls:9,vars:5,consts:[[3,"translucent"],["color","primary"],["approxItemHeight","50px",2,"height","450px",3,"items"],["button","",3,"click",4,"virtualItem"],["button","",3,"click"]],template:function(e,t){1&e&&(Hr(0,"ion-header",0),Hr(1,"ion-toolbar",1),Hr(2,"ion-title"),Da(3),hc(4,"translate"),jr(),jr(),jr(),Hr(5,"ion-content"),Hr(6,"ion-list"),Hr(7,"ion-virtual-scroll",2),Fr(8,hL,3,2,"ion-item",3),jr(),jr(),jr()),2&e&&(Vr("translucent",!0),no(3),Oa(pc(4,3,"lang.users")),no(4),Vr("items",t.usersList))},directives:[Vx,vA,mA,Tx,Qx,$A,GA,Gx,Zx],pipes:[$C],encapsulation:2}),e})();var gL=function(e,t,n,i){return new(n||(n=Promise))(function(s,o){function r(e){try{l(i.next(e))}catch(t){o(t)}}function a(e){try{l(i.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?s(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(r,a)}l((i=i.apply(e,t||[])).next())})};function fL(e,t){1&e&&(Hr(0,"ion-item",17),Hr(1,"ion-label",18),Da(2),hc(3,"translate"),jr(),jr()),2&e&&(no(2),Ma("",pc(3,1,"lang.privileges")," :"))}function mL(e,t){if(1&e){const e=qr();Hr(0,"ion-item",19),Hr(1,"ion-toggle",20),Xr("ngModelChange",function(e){return t.$implicit.checked=e})("click",function(){Lt(e);const n=t.$implicit;return na().togglePrivilege(n,!0)}),jr(),Hr(2,"ion-label",21),Xr("click",function(){Lt(e);const n=t.$implicit;return na().togglePrivilege(n,!1)}),Da(3),hc(4,"translate"),jr(),jr()}if(2&e){const e=t.$implicit;no(1),Vr("name",e.id)("checked",e.checked)("ngModel",e.checked),no(2),Oa(pc(4,4,"lang."+e.id+"Admin"))}}function bL(e,t){1&e&&(Hr(0,"ion-item",17),Hr(1,"ion-label",18),Da(2),hc(3,"translate"),jr(),jr()),2&e&&(no(2),Ma("",pc(3,1,"lang.linkedUsers")," :"))}function vL(e,t){if(1&e&&(Hr(0,"div",31),Da(1),hc(2,"translate"),jr()),2&e){const e=na().$implicit;Vr("mat-sort-header",e),no(1),Ma(" ",pc(2,2,"lang."+e)," ")}}function yL(e,t){if(1&e&&(Wr(0),Fr(1,vL,3,4,"div",30),Gr()),2&e){const e=t.$implicit;no(1),Vr("ngIf","actions"!==e)}}function wL(e,t){if(1&e){const e=qr();Hr(0,"div",32),Hr(1,"ion-button",33),Xr("click",function(){return Lt(e),na(2).openUserList()}),Da(2),hc(3,"translate"),jr(),jr()}2&e&&(no(2),Ma(" ",pc(3,1,"lang.add")," "))}function _L(e,t){if(1&e&&(Hr(0,"div",39),Da(1),jr()),2&e){const e=t.$implicit,n=na().$implicit;no(1),Ma(" ",n[e]," ")}}function xL(e,t){if(1&e){const e=qr();Hr(0,"ion-item",34),Hr(1,"ion-label",35),Fr(2,_L,2,1,"div",36),jr(),Hr(3,"ion-button",37),Xr("click",function(n){Lt(e);const i=t.$implicit,s=na(2);return n.stopPropagation(),s.unlinkUser(i)}),hc(4,"translate"),Ur(5,"ion-icon",38),jr(),jr()}if(2&e){const e=t.$implicit,n=na(2);no(1),aa("routerLink","/administration/users/",e.id,""),no(1),Vr("ngForOf",n.displayedColumns),no(1),ra("title",pc(4,3,"lang.unlinkUser"))}}function AL(e,t){if(1&e){const e=qr();Hr(0,"ion-card",22),Hr(1,"ion-list"),Hr(2,"ion-item",23),Wr(3,13),Hr(4,"ion-label",24),Xr("matSortChange",function(t){return Lt(e),na().sortData(t)}),Fr(5,yL,2,1,"ng-container",25),Fr(6,wL,4,3,"div",26),jr(),Hr(7,"ion-button",27),Ur(8,"ion-icon"),jr(),Gr(),jr(),Hr(9,"ion-virtual-scroll",28),Fr(10,xL,6,5,"ion-item",29),jr(),jr(),jr()}if(2&e){const e=na();no(4),Vr("matSortActive",e.displayedColumns[1]),no(1),Vr("ngForOf",e.displayedColumns),no(1),Vr("ngIf",e.displayedColumns.indexOf("actions")>-1),no(3),Vr("items",e.sortedData)}}function CL(e,t){if(1&e){const e=qr();Hr(0,"ion-button",40),Xr("click",function(){return Lt(e),na().deleteGroup()}),Hr(1,"ion-label",15),Da(2),hc(3,"translate"),jr(),jr()}2&e&&(no(2),Oa(pc(3,1,"lang.delete")))}let SL=(()=>{class e{constructor(e,t,n,i,s,o,r,a,l,c,d){this.http=e,this.translate=t,this.route=n,this.router=i,this.signaturesService=s,this.notificationService=o,this.dialog=r,this.authService=a,this.popoverController=l,this.modalController=c,this.alertController=d,this.creationMode=!0,this.loading=!0,this.title="",this.displayedColumns=["firstname","lastname","actions"],this.group={id:"",label:"",users:[],privileges:[]},this.groupClone=JSON.parse(JSON.stringify(this.group))}ngOnInit(){this.route.params.subscribe(e=>{void 0===e.id?(this.creationMode=!0,this.title=this.translate.instant("lang.groupCreation"),this.loading=!1,this.groupClone=JSON.parse(JSON.stringify(this.group))):(this.creationMode=!1,this.usersList=[],this.http.get("../rest/groups/"+e.id).pipe(k(e=>e.group),Iv(()=>{this.loading=!1})).subscribe({next:e=>{this.group=e,this.groupClone=JSON.parse(JSON.stringify(this.group)),this.title=this.group.label,this.updateDataTable()}}),this.http.get("../rest/users?mode=all").pipe(k(e=>e.users)).subscribe({next:e=>{this.usersList=e}}))})}updateDataTable(){this.sortedData=this.group.users.slice()}openUserList(e){return gL(this,void 0,void 0,function*(){const e=yield this.modalController.create({component:pL,componentProps:{users:this.group.users}});yield e.present();const{data:t}=yield e.onWillDismiss();void 0!==t&&this.linkUser(t)})}canValidate(){return this.group.label!==this.groupClone.label}onSubmit(){this.creationMode?this.createGroup():this.modifyGroup()}linkUser(e){this.http.put("../rest/groups/"+this.group.id+"/users",{userId:e.id}).subscribe({next:()=>{this.group.users.push(e),this.updateDataTable(),this.notificationService.success("lang.userAdded")}})}unlinkUser(e){return gL(this,void 0,void 0,function*(){if(e.id===this.authService.user.id){const t=yield this.alertController.create({header:this.translate.instant("lang.confirmMsg"),buttons:[{text:this.translate.instant("lang.no"),role:"cancel",cssClass:"secondary",handler:()=>{}},{text:this.translate.instant("lang.yes"),handler:()=>{this.deleteUser(e)}}]});yield t.present()}else this.deleteUser(e)})}deleteUser(e){this.http.delete("../rest/groups/"+this.group.id+"/users/"+e.id,{}).subscribe({next:()=>{const t=this.group.users.findIndex(t=>t.id===e.id);this.group.users.splice(t,1),this.updateDataTable(),this.notificationService.success("lang.userDeleted")}})}modifyGroup(){this.loading=!0,this.http.put("../rest/groups/"+this.group.id,this.group).subscribe({next:()=>{this.router.navigate(["/administration/groups"]),this.notificationService.success("lang.groupUpdated")}})}createGroup(){this.loading=!0,this.http.post("../rest/groups",this.group).subscribe({next:e=>{this.router.navigate(["/administration/groups/"+e.id]),this.notificationService.success("lang.groupAdded")}})}deleteGroup(){return gL(this,void 0,void 0,function*(){const e=yield this.alertController.create({header:this.translate.instant("lang.confirmMsg"),buttons:[{text:this.translate.instant("lang.no"),role:"cancel",cssClass:"secondary",handler:()=>{}},{text:this.translate.instant("lang.yes"),handler:()=>{this.http.delete("../rest/groups/"+this.group.id).subscribe({next:()=>{this.router.navigate(["/administration/groups"]),this.notificationService.success("lang.groupDeleted")}})}}]});yield e.present()})}togglePrivilege(e,t){return gL(this,void 0,void 0,function*(){if("manage_groups"===e.id&&e.checked){t||(e.checked=!e.checked);const n=yield this.alertController.create({header:this.translate.instant("lang.confirmMsg"),message:this.translate.instant("lang.groupWarnMsg"),buttons:[{text:this.translate.instant("lang.no"),role:"cancel",cssClass:"secondary",handler:()=>{e.checked=!e.checked}},{text:this.translate.instant("lang.yes"),handler:()=>{this.updatePrivilege(e)}}]});yield n.present()}else t||(e.checked=!e.checked),setTimeout(()=>{this.updatePrivilege(e)},200)})}updatePrivilege(e){this.http.put("../rest/groups/"+this.group.id+"/privilege/"+e.id,{checked:e.checked}).subscribe({next:()=>{this.notificationService.success("lang.privilegeUpdated"),this.authService.updateUserInfoWithTokenRefresh()}})}cancel(){this.router.navigate(["/administration/groups"])}sortData(e){const t=this.group.users.slice();this.sortedData=e.active&&""!==e.direction?t.sort((t,n)=>function(e,t,n){return(e<t?-1:1)*(n?1:-1)}(t[e.active],n[e.active],"asc"===e.direction)):t}}return e.\u0275fac=function(t){return new(t||e)(zr(Db),zr(GC),zr(Ny),zr(r_),zr(sS),zr(ZC),zr(IM),zr(rS),zr(eC),zr(JA),zr(QA))},e.\u0275cmp=$e({type:e,selectors:[["app-administration-group"]],viewQuery:function(e,t){if(1&e&&(Tc(ZT,1),Tc(cI,1)),2&e){let e;Mc(e=Rc())&&(t.paginator=e.first),Mc(e=Rc())&&(t.sort=e.first)}},decls:27,vars:20,consts:[[3,"translucent"],["color","primary"],["slot","start"],["menu","left-menu"],["id","adminForm",2,"display","contents",3,"ngSubmit"],["adminForm","ngForm"],["color","secondary","position","floating"],["name","label","required","",3,"maxlength","ngModel","ngModelChange"],["lines","none",4,"ngIf"],[2,"display","grid","grid-gap","10px"],["style","cursor: pointer",4,"ngFor","ngForOf"],["style","height: 400px; overflow-y: auto;",4,"ngIf"],["text-center","","lines","none",2,"position","sticky","bottom","0px","z-index","1"],[2,"display","flex","align-items","center","justify-content","center","width","100%","background","white"],["type","submit","shape","round","size","large","fill","outline","color","primary",3,"disabled"],[2,"font-size","13px"],["type","button","shape","round","size","large","fill","outline","color","danger",3,"click",4,"ngIf"],["lines","none"],["color","secondary"],[2,"cursor","pointer"],["slot","start","color","primary",3,"name","checked","ngModel","ngModelChange","click"],[3,"click"],[2,"height","400px","overflow-y","auto"],[2,"position","sticky","top","0px","z-index","1"],["color","primary","matSort","","matSortDirection","asc",2,"display","flex","font-size","12px","align-items","center",3,"matSortActive","matSortChange"],[4,"ngFor","ngForOf"],["style","flex: 1;text-align: right;",4,"ngIf"],["slot","end","fill","clear","shape","round","disabled",""],["approxItemHeight","50px",3,"items"],["style","display: flex;",4,"virtualItem"],["disableClear","","style","flex: 1",3,"mat-sort-header",4,"ngIf"],["disableClear","",2,"flex","1",3,"mat-sort-header"],[2,"flex","1","text-align","right"],["slot","end","color","primary","fille","outline","shape","round",3,"click"],[2,"display","flex"],[2,"display","flex","cursor","pointer",3,"routerLink"],["style","flex: 1",4,"ngFor","ngForOf"],["slot","end","fill","clear","shape","round",3,"title","click"],["color","danger","slot","icon-only","name","close-outline"],[2,"flex","1"],["type","button","shape","round","size","large","fill","outline","color","danger",3,"click"]],template:function(e,t){if(1&e&&(Hr(0,"ion-header",0),Hr(1,"ion-toolbar",1),Hr(2,"ion-buttons",2),Ur(3,"ion-menu-button",3),Ur(4,"ion-back-button"),jr(),Hr(5,"ion-title"),Da(6),jr(),jr(),jr(),Hr(7,"form",4,5),Xr("ngSubmit",function(){return t.onSubmit()}),Hr(9,"ion-content"),Hr(10,"ion-item"),Hr(11,"ion-label",6),Da(12),hc(13,"translate"),jr(),Hr(14,"ion-input",7),Xr("ngModelChange",function(e){return t.group.label=e}),jr(),jr(),Fr(15,fL,4,3,"ion-item",8),Hr(16,"div",9),Fr(17,mL,5,6,"ion-item",10),jr(),Fr(18,bL,4,3,"ion-item",8),Fr(19,AL,11,4,"ion-card",11),Hr(20,"ion-item",12),Hr(21,"div",13),Hr(22,"ion-button",14),Hr(23,"ion-label",15),Da(24),hc(25,"translate"),jr(),jr(),Fr(26,CL,4,3,"ion-button",16),jr(),jr(),jr(),jr()),2&e){const e=Br(8);Vr("translucent",!0),no(6),Oa(t.title),no(6),Ma("",pc(13,16,"lang.label")," *"),no(2),Vr("maxlength",128)("ngModel",t.group.label),no(1),Vr("ngIf",!t.creationMode),no(1),ma("grid-2-col",t.signaturesService.mobileMode)("grid-3-col",!t.signaturesService.mobileMode),no(1),Vr("ngForOf",t.group.privileges),no(1),Vr("ngIf",!t.creationMode),no(1),Vr("ngIf",!t.creationMode),no(3),Vr("disabled",!e.form.valid||!t.canValidate()),no(2),Oa(pc(25,18,"lang.validate")),no(2),Vr("ngIf",!t.creationMode)}},directives:[Vx,vA,Cx,Jx,_x,HA,mA,Lm,am,Mm,Tx,Gx,Zx,Wx,ax,Jm,tb,rm,Rm,Wu,ju,Ax,bA,J_,Sx,Qx,cI,Nx,$A,GA,mI,jA,a_],pipes:[$C],styles:[".header[_ngcontent-%COMP%]{background:#135f7f;height:95px;color:#fff;padding-left:10px;font-size:25px}.header[_ngcontent-%COMP%], .header-title[_ngcontent-%COMP%]{display:flex;align-items:center}.header-title[_ngcontent-%COMP%]{flex:1;white-space:pre;overflow:hidden;text-overflow:ellipsis}.header[_ngcontent-%COMP%]   b[_ngcontent-%COMP%]{color:#f99830}.header[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis}.mainView[_ngcontent-%COMP%]{display:flex;flex-direction:column}.container[_ngcontent-%COMP%]{flex:1;overflow:auto}.loader[_ngcontent-%COMP%]{position:absolute;z-index:2;display:flex;background:hsla(0,0%,100%,.8);width:100%;height:100%;justify-content:center;align-items:center;top:0;margin:0;padding:0}.admin-form[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:20px}.actions-form[_ngcontent-%COMP%]{display:flex;justify-content:center}@media (max-width:360px){.actions-form[_ngcontent-%COMP%]{flex-direction:column}}.actions-form[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin:10px;width:150px}@media (max-width:360px){.actions-form[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{width:100%}}.noResult[_ngcontent-%COMP%]{padding:10px;text-align:center;opacity:.5}.emptyTable[_ngcontent-%COMP%]{height:auto}.addButton[_ngcontent-%COMP%]{padding:10px;display:flex;justify-content:flex-end}",".privilegesList[_ngcontent-%COMP%]{padding-top:10px;padding-bottom:10px;display:inline-block;width:100%}@media (min-width:768px){.privilegesList[_ngcontent-%COMP%]{width:50%}}@media (min-width:992px){.privilegesList[_ngcontent-%COMP%]{width:33%}}fieldset[_ngcontent-%COMP%]{border:1px solid #f1f4f4;align-items:center;margin-top:30px}legend[_ngcontent-%COMP%]{color:#f99830}.grid-2-col[_ngcontent-%COMP%]{grid-template-columns:repeat(2,1fr)}.grid-3-col[_ngcontent-%COMP%]{grid-template-columns:repeat(3,1fr)}"]}),e})();function kL(e,t){if(1&e&&(Hr(0,"ion-select-option",10),Da(1),hc(2,"translate"),jr()),2&e){const e=t.$implicit;Vr("value",e.id)("disabled",!e.allowed),no(1),Ma(" ",pc(2,3,"lang."+e.id+"Connection"),"")}}function PL(e,t){if(1&e){const e=qr();Hr(0,"ion-select",8),Xr("ionChange",function(t){return Lt(e),na().changeConnection(t.detail.value)}),hc(1,"translate"),Fr(2,kL,3,5,"ion-select-option",9),jr()}if(2&e){const e=na();ra("cancelText",pc(1,3,"lang.cancel")),Vr("value",e.currentConnection.id),no(2),Vr("ngForOf",e.connectionList)}}function EL(e,t){if(1&e&&(Hr(0,"ion-col"),Hr(1,"ion-button",11),Hr(2,"div",12),Ur(3,"ion-icon",13),Hr(4,"ion-label",14),Da(5),hc(6,"translate"),jr(),Hr(7,"ion-note",15),Da(8),hc(9,"translate"),jr(),jr(),jr(),jr()),2&e){const e=t.$implicit;no(1),Vr("routerLink",e.route),no(2),Vr("name",e.icon),no(2),Ma("",pc(6,4,"lang."+e.id)," "),no(3),Ma(" ",pc(9,6,"lang."+e.id+"Desc"),"")}}let DL=(()=>{class e{constructor(e,t,n,i,s){this.http=e,this.signaturesService=t,this.notificationService=n,this.alertController=i,this.authService=s,this.loading=!0,this.privileges=[{id:"manage_ldap_configurations",icon:"server-sharp",route:"/administration/connections/ldaps"}],this.id=0,this.label="",this.connectionList=[]}ngOnInit(){this.loading=!0,this.http.get("../rest/configurations",{params:{identifier:"connection"}}).pipe(Iv(()=>this.loading=!1)).subscribe({next:e=>{this.label=e.configurations.label,this.id=e.configurations.id,this.connectionList=e.configurations.availableConnections;const t=this.connectionList.findIndex(t=>t.id===e.configurations.value);this.currentConnection=void 0!==this.connectionList[t]?this.connectionList[t]:this.connectionList[0]}})}changeConnection(e){return t=this,void 0,i=function*(){this.http.patch("../rest/configurations/"+this.id,{label:this.label,value:e}).pipe(Iv(()=>this.loading=!1)).subscribe({next:()=>{this.authService.updateUserInfoWithTokenRefresh(),this.notificationService.success("lang.connectionModeUpdated"),this.authService.authMode=e}})},new((n=void 0)||(n=Promise))(function(e,s){function o(e){try{a(i.next(e))}catch(t){s(t)}}function r(e){try{a(i.throw(e))}catch(t){s(t)}}function a(t){var i;t.done?e(t.value):(i=t.value,i instanceof n?i:new n(function(e){e(i)})).then(o,r)}a((i=i.apply(t,[])).next())});var t,n,i}}return e.\u0275fac=function(t){return new(t||e)(zr(Db),zr(sS),zr(ZC),zr(QA),zr(rS))},e.\u0275cmp=$e({type:e,selectors:[["app-administration-connection"]],decls:18,vars:9,consts:[[3,"translucent"],["color","primary"],["slot","start"],["menu","left-menu"],["mainContent",""],["color","secondary"],[3,"value","cancelText","ionChange",4,"ngIf"],[4,"ngFor","ngForOf"],[3,"value","cancelText","ionChange"],[3,"value","disabled",4,"ngFor","ngForOf"],[3,"value","disabled"],["expand","block","size","large","fill","outline","color","secondary",2,"height","200px",3,"routerLink"],[1,"admin-content"],["color","primary",2,"font-size","70px",3,"name"],["color","primary",2,"white-space","normal"],[2,"font-size","8px","white-space","normal","padding","10px"]],template:function(e,t){1&e&&(Hr(0,"ion-header",0),Hr(1,"ion-toolbar",1),Hr(2,"ion-buttons",2),Ur(3,"ion-menu-button",3),Ur(4,"ion-back-button"),jr(),Hr(5,"ion-title"),Da(6),hc(7,"translate"),jr(),jr(),jr(),Hr(8,"ion-content",null,4),Hr(10,"ion-item"),Hr(11,"ion-label",5),Da(12),hc(13,"translate"),jr(),Fr(14,PL,3,5,"ion-select",6),jr(),Hr(15,"ion-grid"),Hr(16,"ion-row"),Fr(17,EL,10,8,"ion-col",7),jr(),jr(),jr()),2&e&&(Vr("translucent",!0),no(6),Oa(pc(7,5,"lang.manage_connections")),no(6),Oa(pc(13,7,"lang.connectionMode")),no(2),Vr("ngIf",t.currentConnection),no(3),Vr("ngForOf",t.privileges))},directives:[Vx,vA,Cx,Jx,_x,HA,mA,Tx,Gx,Zx,Wu,zx,aA,ju,uA,ox,hA,Mx,Ax,jA,a_,Nx,tA],pipes:[$C],styles:[".header[_ngcontent-%COMP%]{background:#135f7f;height:95px;color:#fff;padding-left:10px;font-size:25px}.header[_ngcontent-%COMP%], .header-title[_ngcontent-%COMP%]{display:flex;align-items:center}.header-title[_ngcontent-%COMP%]{flex:1;white-space:pre;overflow:hidden;text-overflow:ellipsis}.header[_ngcontent-%COMP%]   b[_ngcontent-%COMP%]{color:#f99830}.header[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis}.mainView[_ngcontent-%COMP%]{display:flex;flex-direction:column}.container[_ngcontent-%COMP%]{flex:1;overflow:auto}.loader[_ngcontent-%COMP%]{position:absolute;z-index:2;display:flex;background:hsla(0,0%,100%,.8);width:100%;height:100%;justify-content:center;align-items:center;top:0;margin:0;padding:0}.admin-form[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:20px}.actions-form[_ngcontent-%COMP%]{display:flex;justify-content:center}@media (max-width:360px){.actions-form[_ngcontent-%COMP%]{flex-direction:column}}.actions-form[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin:10px;width:150px}@media (max-width:360px){.actions-form[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{width:100%}}.noResult[_ngcontent-%COMP%]{padding:10px;text-align:center;opacity:.5}.emptyTable[_ngcontent-%COMP%]{height:auto}.addButton[_ngcontent-%COMP%]{padding:10px;display:flex;justify-content:flex-end}",".admin-desc[_ngcontent-%COMP%]{white-space:normal;font-size:10px;line-height:15px;text-align:justify;color:grey;height:60px;overflow:auto}.admin-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center}"]}),e})();function OL(e,t){if(1&e&&(Hr(0,"div",15),Da(1),hc(2,"translate"),jr()),2&e){const e=na().$implicit;Vr("mat-sort-header",e),no(1),Ma(" ",pc(2,2,"lang."+e)," ")}}function ML(e,t){if(1&e&&(Wr(0),Fr(1,OL,3,4,"div",14),Gr()),2&e){const e=t.$implicit;no(1),Vr("ngIf","actions"!==e)}}function TL(e,t){if(1&e){const e=qr();Hr(0,"div",16),Hr(1,"ion-searchbar",17),Xr("ionChange",function(t){return Lt(e),na().applyFilter(t.detail.value)}),hc(2,"translate"),jr(),jr()}2&e&&(no(1),Vr("placeholder",pc(2,1,"lang.filter")))}function IL(e,t){if(1&e&&(Hr(0,"div",16),Da(1),jr()),2&e){const e=t.$implicit,n=na().$implicit;no(1),Ma(" ",n[e]," ")}}function RL(e,t){if(1&e){const e=qr();Hr(0,"ion-item",7),Hr(1,"ion-label",18),Fr(2,IL,2,1,"div",19),jr(),Hr(3,"ion-button",20),Xr("click",function(n){Lt(e);const i=t.$implicit,s=na();return n.stopPropagation(),s.delete(i)}),hc(4,"translate"),Ur(5,"ion-icon",21),jr(),jr()}if(2&e){const e=t.$implicit,n=na();no(1),aa("routerLink","/administration/connections/ldaps/",e.id,""),no(1),Vr("ngForOf",n.displayedColumns),no(1),ra("title",pc(4,3,"lang.delete"))}}let LL=(()=>{class e{constructor(e,t,n,i,s,o,r,a){this.http=e,this.translate=t,this.latinisePipe=n,this.dialog=i,this.signaturesService=s,this.notificationService=o,this.authService=r,this.alertController=a,this.ldapList=[],this.loading=!0,this.displayedColumns=["label","actions"]}updateDataTable(){this.sortedData=this.ldapList.slice()}applyFilter(e){e=this.latinisePipe.transform(e.toLowerCase()),this.sortedData=this.ldapList.filter(t=>{let n=!1;return this.displayedColumns.forEach(i=>{t[i]&&this.latinisePipe.transform(t[i].toLowerCase()).includes(e)&&(n=!0)}),n})}ngOnInit(){}ionViewWillEnter(){this.http.get("../rest/configurations",{params:{identifier:"ldapServer"}}).pipe(Iv(()=>this.loading=!1)).subscribe({next:e=>{this.ldapList=e.configurations,this.updateDataTable()}})}delete(e){return t=this,void 0,i=function*(){const t=yield this.alertController.create({header:this.translate.instant("lang.confirmMsg"),buttons:[{text:this.translate.instant("lang.no"),role:"cancel",cssClass:"secondary",handler:()=>{}},{text:this.translate.instant("lang.yes"),handler:()=>{this.http.delete("../rest/configurations/"+e.id).pipe(Iv(()=>this.loading=!1)).subscribe({next:()=>{const t=this.ldapList.findIndex(t=>t.id===e.id);this.ldapList.splice(t,1),this.updateDataTable(),this.notificationService.success("lang.ldapDeleted")}})}}]});yield t.present()},new((n=void 0)||(n=Promise))(function(e,s){function o(e){try{a(i.next(e))}catch(t){s(t)}}function r(e){try{a(i.throw(e))}catch(t){s(t)}}function a(t){var i;t.done?e(t.value):(i=t.value,i instanceof n?i:new n(function(e){e(i)})).then(o,r)}a((i=i.apply(t,[])).next())});var t,n,i}sortData(e){const t=this.ldapList.slice();this.sortedData=e.active&&""!==e.direction?t.sort((t,n)=>function(e,t,n){return(e<t?-1:1)*(n?1:-1)}(t[e.active],n[e.active],"asc"===e.direction)):t}}return e.\u0275fac=function(t){return new(t||e)(zr(Db),zr(GC),zr(dP),zr(IM),zr(sS),zr(ZC),zr(rS),zr(QA))},e.\u0275cmp=$e({type:e,selectors:[["app-administration-ldap-list"]],decls:28,vars:18,consts:[[3,"translucent"],["color","primary"],["slot","start"],["menu","left-menu"],["fill","outline","shape","round","routerLink","/administration/connections/ldaps/new"],["slot","end","color","secondary"],["mainContent",""],[2,"display","flex"],["color","primary","matSort","","matSortDirection","asc",2,"display","flex","font-size","12px","align-items","center",3,"matSortActive","matSortChange"],[4,"ngFor","ngForOf"],["style","flex: 1",4,"ngIf"],["slot","end","fill","clear","shape","round","disabled",""],["approxItemHeight","50px",3,"items"],["style","display: flex;",4,"virtualItem"],["disableClear","","style","flex: 1",3,"mat-sort-header",4,"ngIf"],["disableClear","",2,"flex","1",3,"mat-sort-header"],[2,"flex","1"],[2,"padding","1px",3,"placeholder","ionChange"],[2,"display","flex","cursor","pointer",3,"routerLink"],["style","flex: 1",4,"ngFor","ngForOf"],["slot","end","fill","clear","shape","round",3,"title","click"],["color","danger","slot","icon-only","name","trash"]],template:function(e,t){1&e&&(Hr(0,"ion-header",0),Hr(1,"ion-toolbar",1),Hr(2,"ion-buttons",2),Ur(3,"ion-menu-button",3),Ur(4,"ion-back-button"),jr(),Hr(5,"ion-title"),Da(6),hc(7,"translate"),hc(8,"translate"),jr(),jr(),Hr(9,"ion-toolbar",1),Hr(10,"ion-buttons",2),Hr(11,"ion-button",4),Da(12),hc(13,"translate"),jr(),jr(),Hr(14,"ion-title",5),Da(15),hc(16,"translate"),jr(),jr(),jr(),Hr(17,"ion-content",null,6),Hr(19,"ion-list"),Hr(20,"ion-item",7),Hr(21,"ion-label",8),Xr("matSortChange",function(e){return t.sortData(e)}),Fr(22,ML,2,1,"ng-container",9),Fr(23,TL,3,3,"div",10),jr(),Hr(24,"ion-button",11),Ur(25,"ion-icon"),jr(),jr(),Hr(26,"ion-virtual-scroll",12),Fr(27,RL,6,5,"ion-item",13),jr(),jr(),jr()),2&e&&(Vr("translucent",!0),no(6),Ta("",pc(7,10,"lang.administration")," ",pc(8,12,"lang.manage_ldap_configurationsAlt")," "),no(6),Ma(" ",pc(13,14,"lang.ldapCreation")," "),no(3),Ta("",t.ldapList.length," ",pc(16,16,"lang.manage_ldap_configurationsAlt"),""),no(6),Vr("matSortActive",t.displayedColumns[0]),no(1),Vr("ngForOf",t.displayedColumns),no(1),Vr("ngIf",t.displayedColumns.indexOf("actions")>-1),no(3),Vr("items",t.sortedData))},directives:[Vx,vA,Cx,Jx,_x,HA,mA,Ax,jA,a_,Tx,Qx,Gx,Zx,cI,ju,Wu,Nx,$A,GA,mI,lA,ax],pipes:[$C],styles:[".header[_ngcontent-%COMP%]{background:#135f7f;height:95px;color:#fff;padding-left:10px;font-size:25px}.header[_ngcontent-%COMP%], .header-title[_ngcontent-%COMP%]{display:flex;align-items:center}.header-title[_ngcontent-%COMP%]{flex:1;white-space:pre;overflow:hidden;text-overflow:ellipsis}.header[_ngcontent-%COMP%]   b[_ngcontent-%COMP%]{color:#f99830}.header[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis}.mainView[_ngcontent-%COMP%]{display:flex;flex-direction:column}.container[_ngcontent-%COMP%]{flex:1;overflow:auto}.loader[_ngcontent-%COMP%]{position:absolute;z-index:2;display:flex;background:hsla(0,0%,100%,.8);width:100%;height:100%;justify-content:center;align-items:center;top:0;margin:0;padding:0}.admin-form[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:20px}.actions-form[_ngcontent-%COMP%]{display:flex;justify-content:center}@media (max-width:360px){.actions-form[_ngcontent-%COMP%]{flex-direction:column}}.actions-form[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin:10px;width:150px}@media (max-width:360px){.actions-form[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{width:100%}}.noResult[_ngcontent-%COMP%]{padding:10px;text-align:center;opacity:.5}.emptyTable[_ngcontent-%COMP%]{height:auto}.addButton[_ngcontent-%COMP%]{padding:10px;display:flex;justify-content:flex-end}",""]}),e})();function FL(e,t){return t?n=>n.pipe(FL((n,i)=>F(e(n,i)).pipe(k((e,s)=>t(n,e,i,s))))):t=>t.lift(new BL(e))}class BL{constructor(e){this.project=e}call(e,t){return t.subscribe(new zL(e,this.project))}}class zL extends z{constructor(e,t){super(e),this.project=t,this.hasSubscription=!1,this.hasCompleted=!1,this.index=0}_next(e){this.hasSubscription||this.tryNext(e)}tryNext(e){let t;const n=this.index++;try{t=this.project(e,n)}catch(i){return void this.destination.error(i)}this.hasSubscription=!0,this._innerSub(t)}_innerSub(e){const t=new B(this),n=this.destination;n.add(t);const i=V(e,t);i!==t&&n.add(i)}_complete(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete(),this.unsubscribe()}notifyNext(e){this.destination.next(e)}notifyError(e){this.destination.error(e)}notifyComplete(){this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()}}function VL(e,t){1&e&&(Wr(0),Da(1),hc(2,"translate"),Gr()),2&e&&(no(1),Ma(" ",pc(2,1,"lang.connectionInProgress"),"... "))}function NL(e,t){if(1&e&&(Wr(0),Da(1),Gr()),2&e){const e=na(2);no(1),Ma(" ",e.ldapTest.result," ")}}function HL(e,t){if(1&e&&(Hr(0,"div",16),Fr(1,VL,3,3,"ng-container",17),Fr(2,NL,2,1,"ng-container",17),jr()),2&e){const e=na();no(1),Vr("ngIf",e.loadingTest),no(1),Vr("ngIf",""!==e.ldapTest.result)}}let jL=(()=>{class e{constructor(e,t,n,i,s,o){this.http=e,this.translate=t,this.latinisePipe=n,this.dialog=i,this.notificationService=s,this.alertController=o,this.loadingTest=!1}ngOnInit(){}testLdap(){this.loadingTest=!0,this.ldapTest.result="",this.canValidate?this.http.patch("../rest/configurations/"+this.ldap.id,this.ldap).pipe(Ov(()=>{this.notificationService.success("lang.ldapUpdated")}),FL(()=>this.http.get("../rest/configurations/"+this.ldap.id+"/connection",{params:{login:this.ldapTest.login,password:this.ldapTest.password}})),Ov(e=>{this.ldapTest.result=e.informations,e.connection&&this.notificationService.success("lang.ldapConnectionSucceeded")}),Iv(()=>this.loadingTest=!1),fv(e=>(this.notificationService.handleErrors(e),lb(!1)))).subscribe():this.http.get("../rest/configurations/"+this.ldap.id+"/connection",{params:{login:this.ldapTest.login,password:this.ldapTest.password}}).pipe(Ov(e=>{this.ldapTest.result=e.informations,e.connection&&this.notificationService.success("lang.ldapConnectionSucceeded")}),Iv(()=>this.loadingTest=!1),fv(e=>(this.notificationService.handleErrors(e),lb(!1)))).subscribe()}}return e.\u0275fac=function(t){return new(t||e)(zr(Db),zr(GC),zr(dP),zr(IM),zr(ZC),zr(QA))},e.\u0275cmp=$e({type:e,selectors:[["app-check-connection"]],inputs:{ldapTest:"ldapTest",ldap:"ldap",canValidate:"canValidate"},decls:45,vars:28,consts:[[3,"translucent"],["color","primary"],["slot","start"],[2,"display","contents",3,"ngSubmit"],["adminTestForm","ngForm"],["mainContent",""],["color","secondary","position","floating"],["name","login","required","",3,"ngModel","ngModelChange"],["name","password","required","",3,"ngModel","ngModelChange"],["color","secondary"],["name","uri","readonly","",3,"ngModel","ngModelChange"],["name","pathLogin","readonly","",3,"value"],["class","bash",4,"ngIf"],[1,"ion-no-border"],[1,"ion-justify-content-center"],["type","submit","color","primary",3,"disabled"],[1,"bash"],[4,"ngIf"]],template:function(e,t){if(1&e&&(Hr(0,"ion-header",0),Hr(1,"ion-toolbar",1),Hr(2,"ion-buttons",2),Ur(3,"ion-back-button"),jr(),Hr(4,"ion-title"),Da(5),hc(6,"translate"),jr(),jr(),jr(),Hr(7,"form",3,4),Xr("ngSubmit",function(){return t.testLdap()}),Hr(9,"ion-content",null,5),Hr(11,"ion-item"),Hr(12,"ion-label",6),Da(13),hc(14,"translate"),jr(),Hr(15,"ion-input",7),Xr("ngModelChange",function(e){return t.ldapTest.login=e}),jr(),jr(),Hr(16,"ion-item"),Hr(17,"ion-label",6),Da(18),hc(19,"translate"),jr(),Hr(20,"ion-input",8),Xr("ngModelChange",function(e){return t.ldapTest.password=e}),jr(),jr(),Hr(21,"ion-card"),Hr(22,"ion-card-header"),Hr(23,"ion-card-subtitle",9),Da(24),hc(25,"translate"),jr(),jr(),Hr(26,"ion-card-content"),Hr(27,"ion-item"),Hr(28,"ion-label",1),Da(29),hc(30,"translate"),jr(),Hr(31,"ion-input",10),Xr("ngModelChange",function(e){return t.ldap.value.uri=e}),jr(),jr(),Hr(32,"ion-item"),Hr(33,"ion-label",1),Da(34),hc(35,"translate"),jr(),Ur(36,"ion-input",11),jr(),Fr(37,HL,3,2,"div",12),jr(),jr(),jr(),Hr(38,"ion-footer",13),Hr(39,"ion-toolbar"),Hr(40,"ion-buttons",14),Hr(41,"ion-button",15),Hr(42,"ion-label"),Da(43),hc(44,"translate"),jr(),jr(),jr(),jr(),jr(),jr()),2&e){const e=Br(8);Vr("translucent",!0),no(5),Oa(pc(6,14,"lang.connectionTest")),no(8),Ma("",pc(14,16,"lang.login")," *"),no(2),Vr("ngModel",t.ldapTest.login),no(3),Ma("",pc(19,18,"lang.password")," *"),no(2),Vr("ngModel",t.ldapTest.password),no(4),Ma("",pc(25,20,"lang.ldapInformations")," :"),no(5),Ma("",pc(30,22,"lang.uri")," :"),no(2),Vr("ngModel",t.ldap.value.uri),no(3),Ma("",pc(35,24,"lang.login")," :"),no(2),Vr("value",t.ldap.value.prefix?t.ldap.value.prefix+"\\"+t.ldapTest.login+t.ldap.value.suffix:t.ldapTest.login+t.ldap.value.suffix),no(1),Vr("ngIf",""!==t.ldapTest.result||t.loadingTest),no(4),Vr("disabled",!e.form.valid||t.loadingTest),no(2),Oa(pc(44,26,"lang.connectionTest"))}},directives:[Vx,vA,Cx,_x,HA,mA,Lm,am,Mm,Tx,Gx,Zx,Wx,ax,Jm,rm,Rm,Sx,Px,Ex,kx,Wu,Bx,Ax],pipes:[$C],styles:[".bash[_ngcontent-%COMP%]{background:#34495e;height:310px;border-radius:5px;top:40px;display:absolute;color:#fff;padding:10px;margin:10px}"]}),e})();function UL(e,t){if(1&e){const e=qr();Hr(0,"ion-button",18),Xr("click",function(){return Lt(e),na().checkConnection()}),Hr(1,"ion-label",15),Da(2),hc(3,"translate"),jr(),jr()}2&e&&(no(2),Oa(pc(3,1,"lang.connectionTest")))}function WL(e,t){if(1&e){const e=qr();Hr(0,"ion-button",19),Xr("click",function(){return Lt(e),na().delete()}),Hr(1,"ion-label",15),Da(2),hc(3,"translate"),jr(),jr()}if(2&e){const e=na();Vr("disabled","ldap"===e.authService.authMode&&1===e.ldap.count),no(2),Oa(pc(3,2,"lang.delete"))}}let GL=(()=>{class e{constructor(e,t,n,i,s,o,r,a,l){this.http=e,this.translate=t,this.route=n,this.router=i,this.signaturesService=s,this.notificationService=o,this.dialog=r,this.authService=a,this.modalController=l,this.creationMode=!0,this.loading=!0,this.loadingTest=!1,this.ldapTest={login:"",password:"",result:""},this.ldap={id:0,label:"",identifier:"ldapServer",value:{uri:"",ssl:!1,prefix:"",suffix:"",baseDN:""}},this.title=""}ngOnInit(){this.ldapTest.login=this.authService.user.login,this.route.params.subscribe(e=>{void 0===e.id?(this.creationMode=!0,this.title=this.translate.instant("lang.ldapCreation"),this.loading=!1):(this.creationMode=!1,this.http.get("../rest/configurations/"+e.id).pipe(k(e=>e.configuration),Iv(()=>this.loading=!1)).subscribe({next:e=>{this.ldap=e,this.ldapClone=JSON.parse(JSON.stringify(this.ldap)),this.title=this.ldap.label}}))})}canValidate(){return JSON.stringify(this.ldap)!==JSON.stringify(this.ldapClone)}onSubmit(){this.creationMode?this.createLdap():this.modifyLdap()}modifyLdap(){this.loading=!0,this.http.patch("../rest/configurations/"+this.ldap.id,this.ldap).pipe(Iv(()=>this.loading=!1)).subscribe({next:()=>{this.router.navigate(["/administration/connections/ldaps"]),this.notificationService.success("lang.ldapUpdated")}})}createLdap(){this.loading=!0,this.http.post("../rest/configurations",this.ldap).pipe(Iv(()=>this.loading=!1)).subscribe({next:()=>{this.router.navigate(["/administration/connections/ldaps"]),this.notificationService.success("lang.ldapAdded")}})}delete(){this.dialog.open($R,{autoFocus:!1,data:{mode:"",title:"lang.confirmMsg",msg:""}}).afterClosed().subscribe(e=>{"yes"===e&&(this.loading=!0,this.http.delete("../rest/configurations/"+this.ldap.id).pipe(Iv(()=>this.loading=!1)).subscribe({next:()=>{this.router.navigate(["/administration/connections/ldaps"]),this.notificationService.success("lang.ldapDeleted")}}))})}cancel(){this.router.navigate(["/administration/connections/ldaps"])}checkConnection(e){return t=this,void 0,i=function*(){const e=yield this.modalController.create({component:jL,componentProps:{ldapTest:this.ldapTest,ldap:this.ldap,canValidate:this.canValidate()}});yield e.present()},new((n=void 0)||(n=Promise))(function(e,s){function o(e){try{a(i.next(e))}catch(t){s(t)}}function r(e){try{a(i.throw(e))}catch(t){s(t)}}function a(t){var i;t.done?e(t.value):(i=t.value,i instanceof n?i:new n(function(e){e(i)})).then(o,r)}a((i=i.apply(t,[])).next())});var t,n,i}}return e.\u0275fac=function(t){return new(t||e)(zr(Db),zr(GC),zr(Ny),zr(r_),zr(sS),zr(ZC),zr(IM),zr(rS),zr(JA))},e.\u0275cmp=$e({type:e,selectors:[["app-administration-ldap"]],decls:49,vars:28,consts:[[3,"translucent"],["color","primary"],["slot","start"],["menu","left-menu"],["id","adminForm",2,"display","contents",3,"ngSubmit"],["adminForm","ngForm"],["color","secondary","position","floating"],["name","label","required","",3,"ngModel","ngModelChange"],["name","uri","required","",3,"ngModel","ngModelChange"],["name","baseDN",3,"ngModel","ngModelChange"],["name","prefix",3,"ngModel","ngModelChange"],["name","suffix",3,"ngModel","ngModelChange"],["text-center","","lines","none",2,"position","sticky","bottom","0px","z-index","1"],[2,"display","flex","align-items","center","justify-content","center","width","100%","background","white"],["type","submit","shape","round","size","large","fill","outline","color","primary",3,"disabled"],[2,"font-size","13px"],["type","button","shape","round","size","large","fill","outline","color","medium",3,"click",4,"ngIf"],["type","button","shape","round","size","large","fill","outline","color","danger",3,"disabled","click",4,"ngIf"],["type","button","shape","round","size","large","fill","outline","color","medium",3,"click"],["type","button","shape","round","size","large","fill","outline","color","danger",3,"disabled","click"]],template:function(e,t){if(1&e&&(Hr(0,"ion-header",0),Hr(1,"ion-toolbar",1),Hr(2,"ion-buttons",2),Ur(3,"ion-menu-button",3),Ur(4,"ion-back-button"),jr(),Hr(5,"ion-title"),Da(6),jr(),jr(),jr(),Hr(7,"form",4,5),Xr("ngSubmit",function(){return t.onSubmit()}),Hr(9,"ion-content"),Hr(10,"ion-item"),Hr(11,"ion-label",6),Da(12),hc(13,"translate"),jr(),Hr(14,"ion-input",7),Xr("ngModelChange",function(e){return t.ldap.label=e}),jr(),jr(),Hr(15,"ion-item"),Hr(16,"ion-label",6),Da(17),hc(18,"translate"),jr(),Hr(19,"ion-input",8),Xr("ngModelChange",function(e){return t.ldap.value.uri=e}),jr(),jr(),Hr(20,"ion-item"),Hr(21,"ion-label",6),Da(22),hc(23,"translate"),jr(),Hr(24,"ion-input",9),Xr("ngModelChange",function(e){return t.ldap.value.baseDN=e}),jr(),Hr(25,"ion-note"),Da(26,"ex: dc=maarch,dc=com"),jr(),jr(),Hr(27,"ion-item"),Hr(28,"ion-label",6),Da(29),hc(30,"translate"),jr(),Hr(31,"ion-input",10),Xr("ngModelChange",function(e){return t.ldap.value.prefix=e}),jr(),Hr(32,"ion-note"),Da(33,"ex: MAARCH"),jr(),jr(),Hr(34,"ion-item"),Hr(35,"ion-label",6),Da(36),hc(37,"translate"),jr(),Hr(38,"ion-input",11),Xr("ngModelChange",function(e){return t.ldap.value.suffix=e}),jr(),Hr(39,"ion-note"),Da(40,"ex: @maarch.com"),jr(),jr(),Hr(41,"ion-item",12),Hr(42,"div",13),Hr(43,"ion-button",14),Hr(44,"ion-label",15),Da(45),hc(46,"translate"),jr(),jr(),Fr(47,UL,4,3,"ion-button",16),Fr(48,WL,4,4,"ion-button",17),jr(),jr(),jr(),jr()),2&e){const e=Br(8);Vr("translucent",!0),no(6),Oa(t.title),no(6),Ma("",pc(13,16,"lang.label")," *"),no(2),Vr("ngModel",t.ldap.label),no(3),Ma("",pc(18,18,"lang.uri")," *"),no(2),Vr("ngModel",t.ldap.value.uri),no(3),Oa(pc(23,20,"lang.baseDN")),no(2),Vr("ngModel",t.ldap.value.baseDN),no(5),Oa(pc(30,22,"lang.prefix")),no(2),Vr("ngModel",t.ldap.value.prefix),no(5),Oa(pc(37,24,"lang.suffix")),no(2),Vr("ngModel",t.ldap.value.suffix),no(5),Vr("disabled",!e.form.valid||!t.canValidate()),no(2),Oa(pc(46,26,"lang.validate")),no(2),Vr("ngIf",!t.creationMode),no(1),Vr("ngIf",!t.creationMode)}},directives:[Vx,vA,Cx,Jx,_x,HA,mA,Lm,am,Mm,Tx,Gx,Zx,Wx,ax,Jm,rm,Rm,tA,Ax,Wu],pipes:[$C],styles:[".header[_ngcontent-%COMP%]{background:#135f7f;height:95px;color:#fff;padding-left:10px;font-size:25px}.header[_ngcontent-%COMP%], .header-title[_ngcontent-%COMP%]{display:flex;align-items:center}.header-title[_ngcontent-%COMP%]{flex:1;white-space:pre;overflow:hidden;text-overflow:ellipsis}.header[_ngcontent-%COMP%]   b[_ngcontent-%COMP%]{color:#f99830}.header[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis}.mainView[_ngcontent-%COMP%]{display:flex;flex-direction:column}.container[_ngcontent-%COMP%]{flex:1;overflow:auto}.loader[_ngcontent-%COMP%]{position:absolute;z-index:2;display:flex;background:hsla(0,0%,100%,.8);width:100%;height:100%;justify-content:center;align-items:center;top:0;margin:0;padding:0}.admin-form[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:20px}.actions-form[_ngcontent-%COMP%]{display:flex;justify-content:center}@media (max-width:360px){.actions-form[_ngcontent-%COMP%]{flex-direction:column}}.actions-form[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin:10px;width:150px}@media (max-width:360px){.actions-form[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{width:100%}}.noResult[_ngcontent-%COMP%]{padding:10px;text-align:center;opacity:.5}.emptyTable[_ngcontent-%COMP%]{height:auto}.addButton[_ngcontent-%COMP%]{padding:10px;display:flex;justify-content:flex-end}",""]}),e})();function $L(e,t){if(1&e&&(Hr(0,"ion-item"),Ur(1,"ion-icon",13),Hr(2,"ion-label",14),Da(3),hc(4,"translate"),jr(),jr()),2&e){const e=na();no(1),Vr("color","close-outline"===e.emailSendResult.icon?"danger":"primary")("name",e.emailSendResult.icon),no(1),Vr("color","close-outline"===e.emailSendResult.icon?"danger":"primary"),no(1),Oa(pc(4,4,e.emailSendResult.msg))}}function qL(e,t){if(1&e&&(Hr(0,"div",15),Da(1),jr()),2&e){const e=na();no(1),Ma(" ",e.emailSendResult.debug," ")}}let YL=(()=>{class e{constructor(e,t,n,i,s){this.http=e,this.translate=t,this.dialog=n,this.notificationService=i,this.alertController=s,this.emailSendLoading=!1,this.emailSendResult={icon:"",msg:"",debug:"",error:!1}}ngOnInit(){}testEmailSend(){this.emailSendResult={icon:"paper-plane-outline",msg:"lang.emailSendInProgress",debug:"",error:!1};const e={sender:this.sendmailFrom,recipients:[this.recipientTest],subject:"["+this.translate.instant("lang.doNotReply")+"] "+this.translate.instant("lang.emailSendTest"),status:"EXPRESS",body:this.translate.instant("lang.emailSendTest"),isHtml:!1};this.emailSendLoading=!0,this.http.post("../rest/emails",e).pipe(Ov(e=>{this.emailSendResult=e.isSent?{icon:"checkmark-outline",msg:"lang.emailSendSuccess",debug:"",error:!1}:{icon:"close-outline",msg:"lang.emailSendFailed",debug:e.informations,error:!0}}),Iv(()=>this.emailSendLoading=!1)).subscribe()}}return e.\u0275fac=function(t){return new(t||e)(zr(Db),zr(GC),zr(IM),zr(ZC),zr(QA))},e.\u0275cmp=$e({type:e,selectors:[["app-check-email-connection"]],inputs:{profileInfo:"profileInfo",sendmailFrom:"sendmailFrom",recipientTest:"recipientTest"},decls:25,vars:15,consts:[[3,"translucent"],["color","primary"],["slot","start"],[2,"display","contents",3,"ngSubmit"],["adminTestForm","ngForm"],["mainContent",""],["color","secondary","position","floating"],["name","recipientTest","required","","pattern","(^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\\.[a-zA-Z0-9-.]+$)",3,"ngModel","disabled","ngModelChange"],[4,"ngIf"],["class","bash",4,"ngIf"],[1,"ion-no-border"],[1,"ion-justify-content-center"],["type","submit","color","primary",3,"disabled"],["slot","start",3,"color","name"],[3,"color"],[1,"bash"]],template:function(e,t){if(1&e&&(Hr(0,"ion-header",0),Hr(1,"ion-toolbar",1),Hr(2,"ion-buttons",2),Ur(3,"ion-back-button"),jr(),Hr(4,"ion-title"),Da(5),hc(6,"translate"),jr(),jr(),jr(),Hr(7,"form",3,4),Xr("ngSubmit",function(){return t.testEmailSend()}),Hr(9,"ion-content",null,5),Hr(11,"ion-item"),Hr(12,"ion-label",6),Da(13),hc(14,"translate"),jr(),Hr(15,"ion-input",7),Xr("ngModelChange",function(e){return t.recipientTest=e}),jr(),jr(),Fr(16,$L,5,6,"ion-item",8),Fr(17,qL,2,1,"div",9),jr(),Hr(18,"ion-footer",10),Hr(19,"ion-toolbar"),Hr(20,"ion-buttons",11),Hr(21,"ion-button",12),Hr(22,"ion-label"),Da(23),hc(24,"translate"),jr(),jr(),jr(),jr(),jr(),jr()),2&e){const e=Br(8);Vr("translucent",!0),no(5),Oa(pc(6,9,"lang.emailSendTest")),no(8),Ma("",pc(14,11,"lang.mailTo")," *"),no(2),Vr("ngModel",t.recipientTest)("disabled",t.emailSendLoading),no(1),Vr("ngIf",""!=t.emailSendResult.msg),no(1),Vr("ngIf",t.emailSendResult.error),no(4),Vr("disabled",!e.form.valid||t.emailSendLoading),no(2),Oa(pc(24,13,"lang.connectionTest"))}},directives:[Vx,vA,Cx,_x,HA,mA,Lm,am,Mm,Tx,Gx,Zx,Wx,ax,Jm,ib,rm,Rm,Wu,Bx,Ax,Nx],pipes:[$C],styles:[".bash[_ngcontent-%COMP%]{background:#34495e;height:310px;border-radius:5px;top:40px;display:absolute;color:#fff;padding:10px;margin:10px}"]}),e})();function ZL(e,t){if(1&e&&(Hr(0,"ion-select-option",27),Da(1),hc(2,"translate"),jr()),2&e){const e=t.$implicit;Vr("value",e.id),no(1),Ma("",pc(2,2,e.label)," ")}}function QL(e,t){if(1&e&&(Hr(0,"ion-select-option",27),Da(1),hc(2,"translate"),jr()),2&e){const e=t.$implicit;Vr("value",e.id),no(1),Ma(" ",pc(2,2,e.label)," ")}}function XL(e,t){if(1&e){const e=qr();Hr(0,"form",5,6),Xr("ngSubmit",function(){return Lt(e),na().onSubmit()}),Hr(2,"ion-content"),Hr(3,"ion-item"),Hr(4,"ion-label",7),Da(5),hc(6,"translate"),jr(),Hr(7,"ion-select",8),Xr("ngModelChange",function(t){return Lt(e),na().sendmail.type=t}),Fr(8,ZL,3,4,"ion-select-option",9),jr(),jr(),Hr(9,"ion-grid"),Hr(10,"ion-row"),Hr(11,"ion-col",10),Hr(12,"ion-item"),Hr(13,"ion-label",7),Da(14),hc(15,"translate"),jr(),Hr(16,"ion-select",11),Xr("ngModelChange",function(t){return Lt(e),na().sendmail.secure=t}),Fr(17,QL,3,4,"ion-select-option",9),jr(),jr(),jr(),Hr(18,"ion-col",12),Hr(19,"ion-item"),Hr(20,"ion-label",7),Da(21),hc(22,"translate"),jr(),Hr(23,"ion-input",13),Xr("ngModelChange",function(t){return Lt(e),na().sendmail.host=t}),jr(),jr(),jr(),Hr(24,"ion-col",10),Hr(25,"ion-item"),Hr(26,"ion-label",7),Da(27),hc(28,"translate"),jr(),Hr(29,"ion-input",14),Xr("ngModelChange",function(t){return Lt(e),na().sendmail.port=t}),jr(),jr(),jr(),jr(),jr(),Hr(30,"ion-item"),Hr(31,"ion-toggle",15),Xr("ngModelChange",function(t){return Lt(e),na().sendmail.auth=t})("ngModelChange",function(){return Lt(e),na().cleanAuthInfo()}),jr(),Hr(32,"ion-label"),Da(33),hc(34,"translate"),jr(),jr(),Hr(35,"ion-item"),Hr(36,"ion-label",7),Da(37),hc(38,"translate"),jr(),Hr(39,"ion-input",16),Xr("ngModelChange",function(t){return Lt(e),na().sendmail.user=t}),jr(),jr(),Hr(40,"ion-item",17),Hr(41,"ion-button",18),Xr("click",function(){Lt(e);const t=na();return t.hidePassword=!t.hidePassword}),Ur(42,"ion-icon",19),jr(),Hr(43,"ion-label",7),Da(44),jr(),Hr(45,"ion-input",20),Xr("ngModelChange",function(t){return Lt(e),na().sendmail.password=t}),jr(),jr(),Hr(46,"ion-item"),Hr(47,"ion-label",7),Da(48),hc(49,"translate"),jr(),Hr(50,"ion-input",21),Xr("ngModelChange",function(t){return Lt(e),na().sendmail.from=t}),jr(),jr(),Hr(51,"ion-item",22),Hr(52,"div",23),Hr(53,"ion-button",24),Xr("click",function(){return Lt(e),na().checkConnection()}),Hr(54,"ion-label",25),Da(55),hc(56,"translate"),jr(),jr(),Hr(57,"ion-button",26),Hr(58,"ion-label",25),Da(59),hc(60,"translate"),jr(),jr(),jr(),jr(),jr(),jr()}if(2&e){const e=Br(1),t=na();no(5),Ma("",pc(6,34,"lang.configurationType")," *"),no(2),Vr("ngModel",t.sendmail.type),no(1),Vr("ngForOf",t.smtpTypeList),no(6),Ma("",pc(15,36,"lang.smtpAuth")," * "),no(2),Vr("disabled","smtp"!=t.sendmail.type)("ngModel",t.sendmail.secure)("value",t.sendmail.secure),no(1),Vr("ngForOf",t.smtpSecList),no(4),Ma("",pc(22,38,"lang.host")," *"),no(2),Vr("disabled","smtp"!=t.sendmail.type)("ngModel",t.sendmail.host),no(4),Ma("",pc(28,40,"lang.port")," *"),no(2),Vr("disabled","smtp"!=t.sendmail.type)("ngModel",t.sendmail.port),no(2),Vr("ngModel",t.sendmail.auth)("checked",t.sendmail.auth)("disabled","smtp"!=t.sendmail.type),no(2),Oa(pc(34,42,"lang.enableAuth")),no(4),Ma("",pc(38,44,"lang.id")," *"),no(2),Vr("ngModel",t.sendmail.user)("disabled",!t.sendmail.auth||"smtp"!=t.sendmail.type),no(3),Vr("name",t.hidePassword?"eye-outline":"eye-off-outline"),no(2),Ta("",t.passwordLanguage," ",t.sendmail.passwordAlreadyExists?"":"*",""),no(1),Vr("type",t.hidePassword?"password":"text")("ngModel",t.sendmail.password)("disabled",!t.sendmail.auth||"smtp"!=t.sendmail.type)("required",!t.sendmail.passwordAlreadyExists),no(3),Oa(pc(49,46,"lang.mailFrom")),no(2),Vr("ngModel",t.sendmail.from)("disabled","smtp"!=t.sendmail.type),no(5),Oa(pc(56,48,"lang.connectionTest")),no(2),Vr("disabled",!e.form.valid||!t.canValidate()),no(2),Oa(pc(60,50,"lang.validate"))}}let KL=(()=>{class e{constructor(e,t,n,i,s,o,r,a){this.http=e,this.translate=t,this.route=n,this.signaturesService=i,this.notificationService=s,this.dialog=o,this.authService=r,this.modalController=a,this.loading=!0,this.title="",this.passwordLanguage="",this.hidePassword=!0,this.smtpTypeList=[{id:"smtp",label:"lang.smtpclient"},{id:"sendmail",label:"lang.smtprelay"},{id:"qmail",label:"lang.qmail"},{id:"mail",label:"lang.phpmail"}],this.smtpSecList=[{id:"",label:"lang.none"},{id:"ssl",label:"ssl"},{id:"tls",label:"tls"}]}ngOnInit(){this.route.params.subscribe(()=>{this.http.get("../rest/configurations/1").pipe(k(e=>e.configuration),Iv(()=>this.loading=!1)).subscribe({next:e=>{this.sendmail=e.value,this.sendmailLabel=e.label,this.sendmailClone=JSON.parse(JSON.stringify(this.sendmail)),this.title=this.translate.instant("lang.manage_email_configuration"),this.passwordLanguage=this.translate.instant(this.sendmail.passwordAlreadyExists?"lang.passwordModification":"lang.password")}})})}canValidate(){return JSON.stringify(this.sendmail)!==JSON.stringify(this.sendmailClone)}onSubmit(){this.loading=!0,this.http.patch("../rest/configurations/1",{value:this.sendmail,label:this.sendmailLabel}).pipe(Iv(()=>this.loading=!1)).subscribe({next:()=>{this.sendmailClone=JSON.parse(JSON.stringify(this.sendmail)),this.notificationService.success("lang.emailConfigurationUpdated")}})}cleanAuthInfo(){this.sendmail.passwordAlreadyExists=!1,this.sendmail.user="",this.sendmail.password=""}checkConnection(e){return t=this,void 0,i=function*(){const e=JSON.parse(JSON.stringify(this.authService.user));JSON.stringify(this.sendmailClone)!==JSON.stringify(this.sendmail)&&this.onSubmit();const t=yield this.modalController.create({component:YL,componentProps:{sendmailFrom:this.sendmail.from,recipientTest:e.email}});yield t.present()},new((n=void 0)||(n=Promise))(function(e,s){function o(e){try{a(i.next(e))}catch(t){s(t)}}function r(e){try{a(i.throw(e))}catch(t){s(t)}}function a(t){var i;t.done?e(t.value):(i=t.value,i instanceof n?i:new n(function(e){e(i)})).then(o,r)}a((i=i.apply(t,[])).next())});var t,n,i}}return e.\u0275fac=function(t){return new(t||e)(zr(Db),zr(GC),zr(Ny),zr(sS),zr(ZC),zr(IM),zr(rS),zr(JA))},e.\u0275cmp=$e({type:e,selectors:[["app-administration-sendmail"]],decls:8,vars:3,consts:[[3,"translucent"],["color","primary"],["slot","start"],["menu","left-menu"],["style","display: contents;","id","sendmailForm",3,"ngSubmit",4,"ngIf"],["id","sendmailForm",2,"display","contents",3,"ngSubmit"],["sendmailForm","ngForm"],["color","secondary","position","floating"],["name","smtpType","interface","popover","required","",3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],["size","2"],["name","SMTPSecure","interface","popover","required","",3,"disabled","ngModel","value","ngModelChange"],["size","8"],["name","host","required","",3,"disabled","ngModel","ngModelChange"],["type","number","name","port","required","",3,"disabled","ngModel","ngModelChange"],["name","SMTPAuth",3,"ngModel","checked","disabled","ngModelChange"],["name","user","required","",3,"ngModel","disabled","ngModelChange"],[2,"align-items","center"],["slot","end","fill","clear","color","primary",3,"click"],["color","primary",3,"name"],["name","password",3,"type","ngModel","disabled","required","ngModelChange"],["name","mailFrom","pattern","(^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\\.[a-zA-Z0-9-.]+$)",3,"ngModel","disabled","ngModelChange"],["text-center","","lines","none",2,"position","sticky","bottom","0px","z-index","1"],[2,"display","flex","align-items","center","justify-content","center","width","100%","background","white"],["type","button","shape","round","size","large","fill","outline","color","medium",3,"click"],[2,"font-size","13px"],["type","submit","shape","round","size","large","fill","outline","color","primary",3,"disabled"],[3,"value"]],template:function(e,t){1&e&&(Hr(0,"ion-header",0),Hr(1,"ion-toolbar",1),Hr(2,"ion-buttons",2),Ur(3,"ion-menu-button",3),Ur(4,"ion-back-button"),jr(),Hr(5,"ion-title"),Da(6),jr(),jr(),jr(),Fr(7,XL,61,52,"form",4)),2&e&&(Vr("translucent",!0),no(6),Oa(t.title),no(1),Vr("ngIf",!t.loading))},directives:[Vx,vA,Cx,Jx,_x,HA,mA,Wu,Lm,am,Mm,Tx,Gx,Zx,uA,ox,Jm,rm,Rm,ju,zx,aA,Mx,Wx,ax,tx,bA,J_,Ax,Nx,ib,hA],pipes:[$C],styles:[".testSendTo[_ngcontent-%COMP%]{width:95%;margin-top:10px;margin-left:10px}.bash[_ngcontent-%COMP%]{background:#34495e;height:310px;border-radius:5px;top:40px;display:absolute;color:#fff;padding:10px;margin:10px;word-wrap:break-word}.panel-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;position:relative;height:100%;overflow:hidden}.panel-header[_ngcontent-%COMP%]{box-shadow:0 0 10px 0 #656565;color:#fff;background:#135f7f;height:95px;display:flex;justify-content:center;position:relative;font-size:25px;align-items:center}.panel-content[_ngcontent-%COMP%]{flex:1;overflow:auto}.cancel[_ngcontent-%COMP%]{position:absolute;top:10px;left:0;height:65px;width:65px;font-size:35px;color:#fff}.auth-container[_ngcontent-%COMP%]{display:flex}.auth-container[_ngcontent-%COMP%]   .auth-1[_ngcontent-%COMP%]{width:100px;padding-right:10px}.auth-container[_ngcontent-%COMP%]   .auth-2[_ngcontent-%COMP%]{flex:1}.auth-container[_ngcontent-%COMP%]   .auth-3[_ngcontent-%COMP%]{width:50px;padding-left:10px}@media (max-width:360px){.auth-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}.auth-container[_ngcontent-%COMP%]   .auth-1[_ngcontent-%COMP%]{width:100%;padding-right:0}.auth-container[_ngcontent-%COMP%]   .auth-2[_ngcontent-%COMP%]{width:100%;flex:1}.auth-container[_ngcontent-%COMP%]   .auth-3[_ngcontent-%COMP%]{width:100%;padding-left:0}}"]}),e})();function JL(e,t,n){this.x=e,this.y=t,this.time=n||(new Date).getTime()}function eF(e,t,n,i){this.startPoint=e,this.control1=t,this.control2=n,this.endPoint=i}function tF(e,t){var n=this,i=t||{};this.velocityFilterWeight=i.velocityFilterWeight||.7,this.minWidth=i.minWidth||.5,this.maxWidth=i.maxWidth||2.5,this.throttle="throttle"in i?i.throttle:16,this.minDistance="minDistance"in i?i.minDistance:5,this._strokeMoveUpdate=this.throttle?function(e,t,n){var i,s,o,r=null,a=0;n||(n={});var l=function(){a=!1===n.leading?0:Date.now(),r=null,o=e.apply(i,s),r||(i=s=null)};return function(){var c=Date.now();a||!1!==n.leading||(a=c);var d=t-(c-a);return i=this,s=arguments,d<=0||d>t?(r&&(clearTimeout(r),r=null),a=c,o=e.apply(i,s),r||(i=s=null)):r||!1===n.trailing||(r=setTimeout(l,d)),o}}(tF.prototype._strokeUpdate,this.throttle):tF.prototype._strokeUpdate,this.dotSize=i.dotSize||function(){return(this.minWidth+this.maxWidth)/2},this.penColor=i.penColor||"black",this.backgroundColor=i.backgroundColor||"rgba(0,0,0,0)",this.onBegin=i.onBegin,this.onEnd=i.onEnd,this._canvas=e,this._ctx=e.getContext("2d"),this.clear(),this._handleMouseDown=function(e){1===e.which&&(n._mouseButtonDown=!0,n._strokeBegin(e))},this._handleMouseMove=function(e){n._mouseButtonDown&&n._strokeMoveUpdate(e)},this._handleMouseUp=function(e){1===e.which&&n._mouseButtonDown&&(n._mouseButtonDown=!1,n._strokeEnd(e))},this._handleTouchStart=function(e){1===e.targetTouches.length&&n._strokeBegin(e.changedTouches[0])},this._handleTouchMove=function(e){e.preventDefault(),n._strokeMoveUpdate(e.targetTouches[0])},this._handleTouchEnd=function(e){e.target===n._canvas&&(e.preventDefault(),n._strokeEnd(e))},this.on()}JL.prototype.velocityFrom=function(e){return this.time!==e.time?this.distanceTo(e)/(this.time-e.time):1},JL.prototype.distanceTo=function(e){return Math.sqrt(Math.pow(this.x-e.x,2)+Math.pow(this.y-e.y,2))},JL.prototype.equals=function(e){return this.x===e.x&&this.y===e.y&&this.time===e.time},eF.prototype.length=function(){for(var e=0,t=void 0,n=void 0,i=0;i<=10;i+=1){var s=i/10,o=this._point(s,this.startPoint.x,this.control1.x,this.control2.x,this.endPoint.x),r=this._point(s,this.startPoint.y,this.control1.y,this.control2.y,this.endPoint.y);if(i>0){var a=o-t,l=r-n;e+=Math.sqrt(a*a+l*l)}t=o,n=r}return e},eF.prototype._point=function(e,t,n,i,s){return t*(1-e)*(1-e)*(1-e)+3*n*(1-e)*(1-e)*e+3*i*(1-e)*e*e+s*e*e*e},tF.prototype.clear=function(){var e=this._ctx,t=this._canvas;e.fillStyle=this.backgroundColor,e.clearRect(0,0,t.width,t.height),e.fillRect(0,0,t.width,t.height),this._data=[],this._reset(),this._isEmpty=!0},tF.prototype.fromDataURL=function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=new Image,s=n.ratio||window.devicePixelRatio||1,o=n.width||this._canvas.width/s,r=n.height||this._canvas.height/s;this._reset(),i.src=e,i.onload=function(){t._ctx.drawImage(i,0,0,o,r)},this._isEmpty=!1},tF.prototype.toDataURL=function(e){var t;switch(e){case"image/svg+xml":return this._toSVG();default:for(var n=arguments.length,i=Array(n>1?n-1:0),s=1;s<n;s++)i[s-1]=arguments[s];return(t=this._canvas).toDataURL.apply(t,[e].concat(i))}},tF.prototype.on=function(){this._handleMouseEvents(),this._handleTouchEvents()},tF.prototype.off=function(){this._canvas.removeEventListener("mousedown",this._handleMouseDown),this._canvas.removeEventListener("mousemove",this._handleMouseMove),document.removeEventListener("mouseup",this._handleMouseUp),this._canvas.removeEventListener("touchstart",this._handleTouchStart),this._canvas.removeEventListener("touchmove",this._handleTouchMove),this._canvas.removeEventListener("touchend",this._handleTouchEnd)},tF.prototype.isEmpty=function(){return this._isEmpty},tF.prototype._strokeBegin=function(e){this._data.push([]),this._reset(),this._strokeUpdate(e),"function"==typeof this.onBegin&&this.onBegin(e)},tF.prototype._strokeUpdate=function(e){var t=this._createPoint(e.clientX,e.clientY),n=this._data[this._data.length-1],i=n&&n[n.length-1],s=i&&t.distanceTo(i)<this.minDistance;if(!i||!s){var o=this._addPoint(t),r=o.curve,a=o.widths;r&&a&&this._drawCurve(r,a.start,a.end),this._data[this._data.length-1].push({x:t.x,y:t.y,time:t.time,color:this.penColor})}},tF.prototype._strokeEnd=function(e){var t=this.points[0];if(!(this.points.length>2)&&t&&this._drawDot(t),t){var n=this._data[this._data.length-1];t.equals(n[n.length-1])||n.push({x:t.x,y:t.y,time:t.time,color:this.penColor})}"function"==typeof this.onEnd&&this.onEnd(e)},tF.prototype._handleMouseEvents=function(){this._mouseButtonDown=!1,this._canvas.addEventListener("mousedown",this._handleMouseDown),this._canvas.addEventListener("mousemove",this._handleMouseMove),document.addEventListener("mouseup",this._handleMouseUp)},tF.prototype._handleTouchEvents=function(){this._canvas.style.msTouchAction="none",this._canvas.style.touchAction="none",this._canvas.addEventListener("touchstart",this._handleTouchStart),this._canvas.addEventListener("touchmove",this._handleTouchMove),this._canvas.addEventListener("touchend",this._handleTouchEnd)},tF.prototype._reset=function(){this.points=[],this._lastVelocity=0,this._lastWidth=(this.minWidth+this.maxWidth)/2,this._ctx.fillStyle=this.penColor},tF.prototype._createPoint=function(e,t,n){var i=this._canvas.getBoundingClientRect();return new JL(e-i.left,t-i.top,n||(new Date).getTime())},tF.prototype._addPoint=function(e){var t=this.points,n=void 0;if(t.push(e),t.length>2){3===t.length&&t.unshift(t[0]);var i=(n=this._calculateCurveControlPoints(t[0],t[1],t[2])).c2;n=this._calculateCurveControlPoints(t[1],t[2],t[3]);var s=new eF(t[1],i,n.c1,t[2]),o=this._calculateCurveWidths(s);return t.shift(),{curve:s,widths:o}}return{}},tF.prototype._calculateCurveControlPoints=function(e,t,n){var i=e.x-t.x,s=e.y-t.y,o=t.x-n.x,r=t.y-n.y,a=(e.x+t.x)/2,l=(e.y+t.y)/2,c=(t.x+n.x)/2,d=(t.y+n.y)/2,u=Math.sqrt(i*i+s*s),h=Math.sqrt(o*o+r*r),p=h/(u+h),g=t.x-(c+(a-c)*p),f=t.y-(d+(l-d)*p);return{c1:new JL(a+g,l+f),c2:new JL(c+g,d+f)}},tF.prototype._calculateCurveWidths=function(e){var t={start:null,end:null},n=this.velocityFilterWeight*e.endPoint.velocityFrom(e.startPoint)+(1-this.velocityFilterWeight)*this._lastVelocity,i=this._strokeWidth(n);return t.start=this._lastWidth,t.end=i,this._lastVelocity=n,this._lastWidth=i,t},tF.prototype._strokeWidth=function(e){return Math.max(this.maxWidth/(e+1),this.minWidth)},tF.prototype._drawPoint=function(e,t,n){var i=this._ctx;i.moveTo(e,t),i.arc(e,t,n,0,2*Math.PI,!1),this._isEmpty=!1},tF.prototype._drawCurve=function(e,t,n){var i=this._ctx,s=n-t,o=Math.floor(e.length());i.beginPath();for(var r=0;r<o;r+=1){var a=r/o,l=a*a,c=l*a,d=1-a,u=d*d,h=u*d,p=h*e.startPoint.x;p+=3*u*a*e.control1.x,p+=3*d*l*e.control2.x;var g=h*e.startPoint.y;g+=3*u*a*e.control1.y,g+=3*d*l*e.control2.y,this._drawPoint(p+=c*e.endPoint.x,g+=c*e.endPoint.y,t+c*s)}i.closePath(),i.fill()},tF.prototype._drawDot=function(e){var t=this._ctx,n="function"==typeof this.dotSize?this.dotSize():this.dotSize;t.beginPath(),this._drawPoint(e.x,e.y,n),t.closePath(),t.fill()},tF.prototype._fromData=function(e,t,n){for(var i=0;i<e.length;i+=1){var s=e[i];if(s.length>1)for(var o=0;o<s.length;o+=1){var r=s[o],a=new JL(r.x,r.y,r.time),l=r.color;if(0===o)this.penColor=l,this._reset(),this._addPoint(a);else if(o!==s.length-1){var c=this._addPoint(a),d=c.curve,u=c.widths;d&&u&&t(d,u,l)}}else this._reset(),n(s[0])}},tF.prototype._toSVG=function(){var e=this,t=this._data,n=this._canvas,i=Math.max(window.devicePixelRatio||1,1),s=n.width/i,o=n.height/i,r=document.createElementNS("http://www.w3.org/2000/svg","svg");r.setAttributeNS(null,"width",n.width),r.setAttributeNS(null,"height",n.height),this._fromData(t,function(e,t,n){var i=document.createElement("path");if(!(isNaN(e.control1.x)||isNaN(e.control1.y)||isNaN(e.control2.x)||isNaN(e.control2.y))){var s="M "+e.startPoint.x.toFixed(3)+","+e.startPoint.y.toFixed(3)+" C "+e.control1.x.toFixed(3)+","+e.control1.y.toFixed(3)+" "+e.control2.x.toFixed(3)+","+e.control2.y.toFixed(3)+" "+e.endPoint.x.toFixed(3)+","+e.endPoint.y.toFixed(3);i.setAttribute("d",s),i.setAttribute("stroke-width",(2.25*t.end).toFixed(3)),i.setAttribute("stroke",n),i.setAttribute("fill","none"),i.setAttribute("stroke-linecap","round"),r.appendChild(i)}},function(t){var n=document.createElement("circle"),i="function"==typeof e.dotSize?e.dotSize():e.dotSize;n.setAttribute("r",i),n.setAttribute("cx",t.x),n.setAttribute("cy",t.y),n.setAttribute("fill",t.color),r.appendChild(n)});var a='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 '+s+" "+o+'" width="'+s+'" height="'+o+'">',l=r.innerHTML;if(void 0===l){var c=document.createElement("dummy"),d=r.childNodes;c.innerHTML="";for(var u=0;u<d.length;u+=1)c.appendChild(d[u].cloneNode(!0));l=c.innerHTML}return"data:image/svg+xml;base64,"+btoa(a+l+"</svg>")},tF.prototype.fromData=function(e){var t=this;this.clear(),this._fromData(e,function(e,n){return t._drawCurve(e,n.start,n.end)},function(e){return t._drawDot(e)}),this._data=e},tF.prototype.toData=function(){return this._data};var nF=tF;let iF=(()=>{class e{constructor(e){this.elementRef=e,this.options=this.options||{},this.onBeginEvent=new yc,this.onEndEvent=new yc}ngAfterContentInit(){const e=this.elementRef.nativeElement.querySelector("canvas");this.options.canvasHeight&&(e.height=this.options.canvasHeight),this.options.canvasWidth&&(e.width=this.options.canvasWidth),this.signaturePad=new nF(e,this.options),this.signaturePad.onBegin=this.onBegin.bind(this),this.signaturePad.onEnd=this.onEnd.bind(this)}ngOnDestroy(){const e=this.elementRef.nativeElement.querySelector("canvas");e.width=0,e.height=0}resizeCanvas(){const e=Math.max(window.devicePixelRatio||1,1),t=this.signaturePad.canvas;t.width=t.offsetWidth*e,t.height=t.offsetHeight*e,t.getContext("2d").scale(e,e),this.signaturePad.clear()}toData(){return this.signaturePad?this.signaturePad.toData():[]}fromData(e){this.signaturePad.fromData(e)}toDataURL(e,t){return this.signaturePad.toDataURL(e,t)}fromDataURL(e,t={}){!t.hasOwnProperty("height")&&this.options.canvasHeight&&(t.height=this.options.canvasHeight),!t.hasOwnProperty("width")&&this.options.canvasWidth&&(t.width=this.options.canvasWidth),this.signaturePad.fromDataURL(e,t)}clear(){this.signaturePad.clear()}isEmpty(){return this.signaturePad.isEmpty()}off(){this.signaturePad.off()}on(){this.signaturePad.on()}set(e,t){switch(e){case"canvasHeight":this.signaturePad.canvas.height=t;break;case"canvasWidth":this.signaturePad.canvas.width=t;break;default:this.signaturePad[e]=t}}onBegin(){this.onBeginEvent.emit(!0)}onEnd(){this.onEndEvent.emit(!0)}queryPad(){return this.signaturePad}}return e.\u0275fac=function(t){return new(t||e)(zr(rl))},e.\u0275cmp=$e({type:e,selectors:[["signature-pad"]],inputs:{options:"options"},outputs:{onBeginEvent:"onBeginEvent",onEndEvent:"onEndEvent"},decls:1,vars:0,template:function(e,t){1&e&&Ur(0,"canvas")},encapsulation:2}),e})(),sF=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=fe({imports:[[]]}),e})();const oF=["signaturePad"],rF=function(e,t){return{"border-color":e,"background-color":t}};function aF(e,t){if(1&e){const e=qr();Wr(0,20),Hr(1,"input",21),Xr("change",function(){Lt(e);const n=t.$implicit;return na().onColorChange(n)}),jr(),Gr()}if(2&e){const e=t.$implicit,n=na();no(1),Vr("checked",0===n.idx)("value",e.id)("ngStyle",lc(3,rF,e.id,e.id))}}let lF=(()=>{class e{constructor(e,t,n,i,s,o,r){this.translate=e,this.http=t,this.signaturesService=n,this.notificationService=i,this.authService=s,this.localStorage=o,this.modalController=r,this.reloaded=new yc,this.penColors=[{id:"black"},{id:"#1a75ff"},{id:"#FF0000"}],this.disableState=!1,this.signaturePadOptions={minWidth:1,maxWidth:2.5,backgroundColor:"rgba(255, 255, 255, 0)",canvasWidth:600,canvasHeight:400}}ngAfterViewInit(){this.localStorage.get("signature")}onColorChange(e){this.selectedColor=Object.assign({},this.selectedColor,e),this.signaturePad.set("penColor",this.selectedColor.id)}onDotChange(e){this.signaturePad.set("minWidth",parseFloat(e)),this.signaturePad.set("maxWidth",parseFloat(e)+2)}drawComplete(){this.localStorage.save("signature",JSON.stringify(this.signaturePad.toData())),this.haveSigned=!0}drawClear(){this.signaturePad.clear(),this.haveSigned=!1}closePad(){this.modalController.dismiss("cancel")}saveSignature(){this.disableState=!0,this.haveSigned=!0;const e=this.signaturePad.toDataURL("image/png").replace("data:image/png;base64,","");this.localStorage.save("signature",JSON.stringify(e));const t={id:0,encodedSignature:e,format:"png"};this.http.post("../rest/users/"+this.authService.user.id+"/signatures",t).pipe(Iv(()=>{this.disableState=!1})).subscribe(e=>{t.id=e.signatureId,this.signaturesService.signaturesList.unshift({id:t.id,encodedSignature:t.encodedSignature}),this.modalController.dismiss("reload"),this.notificationService.success("lang.signatureRegistered")})}}return e.\u0275fac=function(t){return new(t||e)(zr(GC),zr(Db),zr(sS),zr(ZC),zr(rS),zr(oS),zr(JA))},e.\u0275cmp=$e({type:e,selectors:[["app-pad"]],viewQuery:function(e,t){if(1&e&&Tc(oF,1),2&e){let e;Mc(e=Rc())&&(t.signaturePad=e.first)}},outputs:{reloaded:"reloaded"},decls:34,vars:16,consts:[[3,"translucent"],["color","primary"],["slot","end"],[3,"click"],["slot","icon-only","name","close-outline"],["color","light",1,"pad"],[1,"pad-actions"],[1,"pad-actions-boxed"],["let","","idx","index",4,"ngFor","ngForOf"],[1,"btn",3,"click"],["type","range","name","dot","min","1","max","10","step","1","value","1",1,"range",3,"input"],["padContent",""],[1,"pad"],[1,"pad-draw"],[1,"padContent",3,"options","onEndEvent"],["signaturePad",""],[1,"draw"],[1,"footer-buttons"],["color","danger",3,"click"],["color","success",3,"click"],["let","","idx","index"],["type","radio","name","colors",1,"radio",3,"checked","value","ngStyle","change"]],template:function(e,t){1&e&&(Hr(0,"ion-header",0),Hr(1,"ion-toolbar",1),Hr(2,"ion-title"),Da(3),hc(4,"translate"),jr(),Hr(5,"ion-buttons",2),Hr(6,"ion-button",3),Xr("click",function(){return t.closePad()}),Ur(7,"ion-icon",4),jr(),jr(),jr(),jr(),Hr(8,"ion-header",0),Hr(9,"ion-toolbar",5),Hr(10,"section",6),Hr(11,"div",7),Fr(12,aF,2,6,"ng-container",8),jr(),Hr(13,"button",9),Xr("click",function(){return t.drawClear()}),Da(14),hc(15,"translate"),jr(),Hr(16,"div",7),Hr(17,"input",10),Xr("input",function(e){return t.onDotChange(e.target.value)}),jr(),jr(),jr(),jr(),jr(),Hr(18,"ion-content",null,11),Hr(20,"article",12),Hr(21,"section",13),Hr(22,"signature-pad",14,15),Xr("onEndEvent",function(){return t.drawComplete()}),jr(),jr(),Ur(24,"div",16),jr(),jr(),Hr(25,"ion-footer",17),Hr(26,"ion-button",18),Xr("click",function(){return t.closePad()}),Hr(27,"ion-label"),Da(28),hc(29,"translate"),jr(),jr(),Hr(30,"ion-button",19),Xr("click",function(){return t.saveSignature()}),Hr(31,"ion-label"),Da(32),hc(33,"translate"),jr(),jr(),jr()),2&e&&(Vr("translucent",!0),no(3),Oa(pc(4,8,"lang.createNewSignature")),no(5),Vr("translucent",!0),no(4),Vr("ngForOf",t.penColors),no(2),Oa(pc(15,10,"lang.erase")),no(8),Vr("options",t.signaturePadOptions),no(6),Oa(pc(29,12,"lang.cancel")),no(4),Oa(pc(33,14,"lang.save")))},directives:[Vx,vA,mA,Cx,Ax,Nx,ju,Tx,iF,Bx,Zx,Xu],pipes:[$C],styles:[".pad-actions[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-evenly;padding:10px 0}.pad-actions-boxed[_ngcontent-%COMP%]{border-radius:60px;height:60px;background:#f1f4f4;padding:0 20px}.pad-actions-boxed[_ngcontent-%COMP%], .pad-draw[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center}.pad-draw[_ngcontent-%COMP%]{background:#fff}.pad[_ngcontent-%COMP%]   .radio[_ngcontent-%COMP%]{-webkit-appearance:none;-moz-appearance:none;appearance:none;position:relative;margin:5px;width:30px;height:30px;border-radius:30px;border-width:none;border-style:solid;outline:none;cursor:pointer;transition:all .2s}.pad[_ngcontent-%COMP%]   .radio[_ngcontent-%COMP%]:checked, .pad[_ngcontent-%COMP%]   .radio[_ngcontent-%COMP%]:hover{transform:scale(1.5)}.padContent[_ngcontent-%COMP%]{border:1px dashed hsla(0,0%,59.2%,.55)}.footer-buttons[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(2,1fr);padding:10px}.footer-buttons[_ngcontent-%COMP%]   ion-button[_ngcontent-%COMP%]{margin:auto;width:150px}"]}),e})();const cF=["slides"];function dF(e,t){if(1&e&&(Hr(0,"small",9),Da(1),hc(2,"translate"),jr()),2&e){const e=na();no(1),Ta("",e.currentWorflow.signaturePositions.length," ",pc(2,2,"lang.prePositionings"),"")}}function uF(e,t){1&e&&(Hr(0,"ion-label",36),Da(1),hc(2,"translate"),jr()),2&e&&(no(1),Oa(pc(2,1,"lang.substitutedSignature")))}function hF(e,t){if(1&e){const e=qr();Hr(0,"ion-card",27),Hr(1,"img",28),Xr("click",function(){Lt(e);const n=t.$implicit;return na(4).selectSignature(n)}),jr(),Hr(2,"ion-toolbar",29),Fr(3,uF,3,3,"ion-label",30),Hr(4,"ion-buttons",31),Hr(5,"ion-button",32),Xr("click",function(){Lt(e);const n=t.$implicit;return na(4).selectSignature(n)}),hc(6,"translate"),Ur(7,"ion-icon",33),jr(),jr(),Hr(8,"ion-buttons",3),Hr(9,"ion-button",34),Xr("click",function(){Lt(e);const n=t.$implicit;return na(4).removeSignature(n)}),hc(10,"translate"),Ur(11,"ion-icon",35),jr(),jr(),jr(),jr()}if(2&e){const e=t.$implicit,n=t.index,i=na(4);no(1),aa("id","imgSign_",n,""),Vr("src",i.sanitization.bypassSecurityTrustUrl("data:image/png;base64,"+e.encodedSignature),os),no(2),Vr("ngIf",e.substituted),no(2),Vr("title",pc(6,5,"lang.selectSignature")),no(4),Vr("title",pc(10,7,"lang.removeSignature"))}}function pF(e,t){if(1&e&&(Hr(0,"ion-slide",24),Hr(1,"div",25),Fr(2,hF,12,9,"ion-card",26),jr(),jr()),2&e){const e=t.$implicit;no(2),Vr("ngForOf",e)}}function gF(e,t){if(1&e&&(Hr(0,"ion-slides",21,22),Fr(2,pF,3,1,"ion-slide",23),jr()),2&e){const e=na(2);Vr("options",e.slideOpts),no(2),Vr("ngForOf",e.signaturesList)}}function fF(e,t){if(1&e){const e=qr();Wr(0),Fr(1,gF,3,2,"ion-slides",10),Hr(2,"ion-fab",11),Hr(3,"ion-fab-button",12),Ur(4,"ion-icon",13),jr(),Hr(5,"ion-fab-list",14),Hr(6,"ion-fab-button",15),Xr("click",function(){return Lt(e),na().addNewDate()}),hc(7,"translate"),Ur(8,"ion-icon",16),jr(),Hr(9,"ion-fab-button",15),Xr("click",function(){return Lt(e),Br(16).click()}),hc(10,"translate"),Ur(11,"ion-icon",17),jr(),Hr(12,"ion-fab-button",15),Xr("click",function(){return Lt(e),na().openSignatures()}),hc(13,"translate"),Ur(14,"ion-icon",18),jr(),jr(),jr(),Hr(15,"input",19,20),Xr("change",function(t){return Lt(e),na().handleFileInput(t.target.files)}),jr(),Gr()}if(2&e){const e=na();no(1),Vr("ngIf",!e.loading),no(5),Vr("title",pc(7,4,"lang.addNewDate")),no(3),Vr("title",pc(10,6,"lang.importNewSignature")),no(3),Vr("title",pc(13,8,"lang.createNewSignature"))}}function mF(e,t){1&e&&(Hr(0,"div",37),Ur(1,"ion-icon",38),Hr(2,"div"),Da(3),hc(4,"translate"),jr(),jr()),2&e&&(no(3),Ma(" ",pc(4,1,"lang.certifiedDocumentMsg")," "))}let bF=(()=>{class e{constructor(e,t,n,i,s,o,r,a,l,c){this.translate=e,this.http=t,this.signaturesService=n,this.bottomSheetRef=i,this.sanitization=s,this.notificationService=o,this.authService=r,this.localStorage=a,this.renderer=l,this.modalController=c,this.loading=!0,this.scrolling=!1,this.signPosMode=!1,this.datePosMode=!1,this.title="lang.signatures",this.slideOpts={initialSlide:0,speed:400,direction:"vertical"},this.signaturesList=[],this.inAllPage=!1,this.count=0}dismissModal(){this.modalController.dismiss("cancel")}scroll(e){this.scrolling||(this.scrolling=!0,e.deltaY<0?this.slides.slidePrev():this.slides.slideNext(),setTimeout(()=>{this.scrolling=!1},500))}ngOnInit(){this.initSignatures(),this.signPosMode=this.currentWorflow.signaturePositions.length>0&&this.emptySigns(),this.getImgDimensions(this.content)}initSignatures(){this.signaturesList=[];let e=[],t=0;this.signaturesService.signaturesListSubstituted.concat(this.signaturesService.signaturesList).forEach(n=>{6===t?(this.signaturesList.push(e),e=[n],t=0):(e.push(n),t++)}),e.length>0&&this.signaturesList.push(e)}ionViewDidEnter(){this.loading=!1}openSignatures(){return e=this,void 0,n=function*(){const e=yield this.modalController.create({component:lF,cssClass:"my-custom-class"});yield e.present();const{data:t}=yield e.onWillDismiss();"reload"===t&&this.initSignatures()},new((t=void 0)||(t=Promise))(function(i,s){function o(e){try{a(n.next(e))}catch(t){s(t)}}function r(e){try{a(n.throw(e))}catch(t){s(t)}}function a(e){var n;e.done?i(e.value):(n=e.value,n instanceof t?n:new t(function(e){e(n)})).then(o,r)}a((n=n.apply(e,[])).next())});var e,t,n}mustPrePosSignature(e,t){return!(!this.signPosMode||0===e.length&&0===t.length)}selectSignature(e){const t=document.getElementById("imgSign_"+this.signaturesList[0].indexOf(e).toString());this.signatureWidth=t.naturalWidth;let n=25;this.signatureScaling=void 0!==this.authService.user.preferences.signatureScaling&&this.authService.user.preferences.signatureScaling,n=!1===this.signatureScaling?this.signatureWidth>=this.documentWidth?100:100*this.signatureWidth/this.documentWidth:this.signatureScaling,e.width=n;const i=this.currentWorflow.signaturePositions.filter(e=>e.page===this.signaturesService.currentPage),s=this.currentWorflow.signaturePositions.filter(e=>e.page!==this.signaturesService.currentPage);this.mustPrePosSignature(i,s)?(i.length>0&&(e.positionX=i[0].positionX,e.positionY=i[0].positionY,this.storeSignature(e,this.signaturesService.currentPage)),s.length>0&&s.forEach(t=>{e.positionX=t.positionX,e.positionY=t.positionY,this.storeSignature(e,t.page)}),1===this.currentWorflow.signaturePositions.length?this.notificationService.success("lang.signatureInDocAddedAlt"):this.translate.get("lang.signaturesInDocAdded",{0:this.currentWorflow.signaturePositions.map(e=>e.page)}).subscribe(e=>{this.notificationService.success(e)}),this.modalController.dismiss(0===i.length&&s.length>0?{redirectPage:s[0].page}:"success")):(e.positionX=60,e.positionY=80,this.storeSignature(e,this.signaturesService.currentPage),this.notificationService.success("lang.signatureInDocAdded"),this.modalController.dismiss("success"))}addNewDate(){const e=this.currentWorflow.datePositions.filter(e=>e.page===this.signaturesService.currentPage),t=this.currentWorflow.datePositions.filter(e=>e.page!==this.signaturesService.currentPage);if(0===e.length&&0===t.length){const e={width:13e3/this.signaturesService.workingAreaWidth,height:3e3/this.signaturesService.workingAreaHeight,positionX:0,positionY:0,font:"Arial",size:15,color:"#666",format:"d MMMM y"};e.positionX=60,e.positionY=80,this.storeDate(e,this.signaturesService.currentPage),this.notificationService.success("lang.dateInDocAdded"),this.modalController.dismiss("success")}else e.length>0&&this.storeDate({width:e[0].width,height:e[0].height,positionX:e[0].positionX,positionY:e[0].positionY,font:"Arial",size:15,color:"#666",format:"d MMMM y"},this.signaturesService.currentPage),t.forEach(e=>{this.storeDate({width:e.width,height:e.height,positionX:e.positionX,positionY:e.positionY,font:"Arial",size:15,color:"#666",format:"d MMMM y"},e.page)}),1===this.currentWorflow.signaturePositions.length?this.notificationService.success("lang.dateInDocAddedAlt"):this.translate.get("lang.dateInDocAdded",{0:this.currentWorflow.signaturePositions.map(e=>e.page)}).subscribe(e=>{this.notificationService.success(e)}),this.modalController.dismiss(0===e.length&&t.length>0?{redirectPage:t[0].page}:"success")}storeSignature(e,t){this.signaturesService.signaturesContent[t]||(this.signaturesService.signaturesContent[t]=[]),this.signaturesService.signaturesContent[t].push(JSON.parse(JSON.stringify(e))),this.localStorage.save(this.signaturesService.mainDocumentId.toString(),JSON.stringify({date:this.signaturesService.datesContent,sign:this.signaturesService.signaturesContent,note:this.signaturesService.notesContent}))}storeDate(e,t){this.signaturesService.datesContent[t]||(this.signaturesService.datesContent[t]=[]),this.signaturesService.datesContent[t].push(JSON.parse(JSON.stringify(e))),this.localStorage.save(this.signaturesService.mainDocumentId.toString(),JSON.stringify({date:this.signaturesService.datesContent,sign:this.signaturesService.signaturesContent,note:this.signaturesService.notesContent}))}removeSignature(e){confirm(this.translate.instant("lang.wantDeleteSignature"))&&this.http.delete("../rest/users/"+this.authService.user.id+"/signatures/"+e.id).subscribe(()=>{this.signaturesService.signaturesList=this.signaturesService.signaturesList.filter(t=>t.id!==e.id),this.notificationService.success("lang.signatureDeleted"),this.initSignatures()},e=>{this.notificationService.error(e.error.errors)})}toggleAllPage(){this.inAllPage=!this.inAllPage}tapEvent(e,t,n){this.count++,setTimeout(()=>{1===this.count?this.count=0:this.count>1&&(this.count=0,this.selectSignature(e))},250)}handleFileInput(e){const t=e.item(0);if(t.size<=1e6)if(-1!==["image/png","image/jpg","image/jpeg","image/gif"].indexOf(t.type)){const e=new FileReader;e.onloadend=n=>{const i=e.result.toString().replace("data:"+t.type+";base64,","");this.localStorage.save("signature",JSON.stringify(i));const s={id:0,encodedSignature:i,format:"png"};this.http.post("../rest/users/"+this.authService.user.id+"/signatures",s).subscribe(e=>{s.id=e.signatureId,this.signaturesService.signaturesList.unshift({id:s.id,encodedSignature:s.encodedSignature}),this.initSignatures(),this.notificationService.success("lang.signatureRegistered")})},e.readAsDataURL(t)}else this.notificationService.error("lang.notAnImage");else this.notificationService.error("lang.maxFileSizeReached")}emptySigns(){let e=!0;for(let t=1;t<=this.signaturesService.totalPage;t++)if(this.signaturesService.signaturesContent[t]&&this.signaturesService.signaturesContent[t].length>0){e=!1;break}return e}getImgDimensions(e){const t=atob(e.slice(0,50)).slice(16,24),n=Uint8Array.from(t,e=>e.charCodeAt(0)),i=new DataView(n.buffer);this.documentWidth=i.getInt32(0)}}return e.\u0275fac=function(t){return new(t||e)(zr(GC),zr(Db),zr(sS),zr(lM),zr(qh),zr(ZC),zr(rS),zr(oS),zr(cl),zr(JA))},e.\u0275cmp=$e({type:e,selectors:[["app-signatures"]],viewQuery:function(e,t){if(1&e&&Tc(cF,1),2&e){let e;Mc(e=Rc())&&(t.slides=e.first)}},inputs:{currentWorflow:"currentWorflow",content:"content"},decls:13,vars:7,consts:[[3,"translucent"],["color","primary"],["class","secondary",4,"ngIf"],["slot","end"],[3,"click"],["slot","icon-only","name","close-outline"],[3,"wheel"],[4,"ngIf","ngIfElse"],["elseCertified",""],[1,"secondary"],["pager","true",3,"options",4,"ngIf"],["horizontal","start","vertical","bottom","slot","fixed"],["color","primary","close-icon","chevron-down"],["name","chevron-up-outline"],["side","top"],["color","light",3,"title","click"],["name","calendar-outline"],["name","download-outline"],["name","add-outline"],["type","file",2,"display","none",3,"change"],["uploadFile",""],["pager","true",3,"options"],["slides",""],["style","display: grid;grid-template-columns: repeat(2, 1fr);",4,"ngFor","ngForOf"],[2,"display","grid","grid-template-columns","repeat(2, 1fr)"],[2,"display","contents"],["class","sign-image",4,"ngFor","ngForOf"],[1,"sign-image"],[2,"width","190px","cursor","pointer",3,"id","src","click"],[2,"position","absolute","top","0px"],["color","secondary",4,"ngIf"],["slot","start"],["size","small","color","primary",3,"title","click"],["slot","icon-only","name","arrow-up-circle-outline"],["size","small","color","danger",3,"title","click"],["slot","icon-only","name","trash-outline"],["color","secondary"],[1,"certified-msg"],["slot","start","name","ribbon-outline","color","success",2,"font-size","70px"]],template:function(e,t){if(1&e&&(Hr(0,"ion-header",0),Hr(1,"ion-toolbar",1),Hr(2,"ion-title"),Da(3),hc(4,"translate"),Fr(5,dF,3,4,"small",2),jr(),Hr(6,"ion-buttons",3),Hr(7,"ion-button",4),Xr("click",function(){return t.dismissModal()}),Ur(8,"ion-icon",5),jr(),jr(),jr(),jr(),Hr(9,"ion-content",6),Xr("wheel",function(e){return t.scroll(e)}),Fr(10,fF,17,10,"ng-container",7),Fr(11,mF,5,3,"ng-template",null,8,zc),jr()),2&e){const e=Br(12);Vr("translucent",!0),no(3),Ma("",pc(4,5,"lang.signatures")," "),no(2),Vr("ngIf",t.signPosMode),no(5),Vr("ngIf",!t.signaturesService.stampLock)("ngIfElse",e)}},directives:[Vx,vA,mA,Wu,Cx,Ax,Nx,Tx,Rx,Lx,Fx,gA,ju,pA,Sx,Zx],pipes:[$C],styles:[".secondary[_ngcontent-%COMP%]{color:var(--ion-color-secondary)}.signatures[_ngcontent-%COMP%]{flex-direction:column}.signatures[_ngcontent-%COMP%], .signatures-top[_ngcontent-%COMP%]{display:flex;align-items:center}.signatures-top[_ngcontent-%COMP%]{height:105px;width:100%;justify-content:space-around;border-bottom:1px solid #e9e8e8}.signatures[_ngcontent-%COMP%]   .list[_ngcontent-%COMP%]{width:100%;padding-top:40px;overflow:auto;display:flex;justify-content:center;flex-wrap:wrap;scroll-behavior:smooth;-webkit-overflow-scrolling:touch}.signatures[_ngcontent-%COMP%]   .list-item[_ngcontent-%COMP%]{transition:all .3s ease-in-out;height:190px;width:190px;margin:8px;border:1px solid hsla(0,0%,59.2%,.55);border-radius:5px;background-color:#fff;box-shadow:0 2px 4px 0 rgba(0,0,0,.04);display:flex;justify-content:center;align-items:center}.signatures[_ngcontent-%COMP%]   .list-item[_ngcontent-%COMP%]   .substituteInfo[_ngcontent-%COMP%]{color:#f99830;font-size:10px;position:absolute;top:0;left:10px}.signatures[_ngcontent-%COMP%]   .list-item.create[_ngcontent-%COMP%]{background-color:#f1f4f4;flex-direction:column;text-align:center}.signatures[_ngcontent-%COMP%]   .list-item[_ngcontent-%COMP%]:active, .signatures[_ngcontent-%COMP%]   .list-item[_ngcontent-%COMP%]:hover{transform:translateY(-20px);cursor:pointer}.sign_icon[_ngcontent-%COMP%]{position:absolute;top:5px}.sign_icon[_ngcontent-%COMP%]   .mat-icon[_ngcontent-%COMP%]{color:#fff;height:auto}.add_icon[_ngcontent-%COMP%]{right:5px}.remove_icon[_ngcontent-%COMP%]{left:5px}.sign-image[_ngcontent-%COMP%]{height:95%}.certified-msg[_ngcontent-%COMP%], .sign-image[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center}.certified-msg[_ngcontent-%COMP%]{height:100%;flex-direction:column;padding:40px}.certified-msg[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]{font-size:30px;color:var(--ion-color-medium)}"]}),e})();const vF=["mainContent"],yF=["canvas"],wF=["img"],_F=["nav"],xF=function(e,t){return{"border-color":e,"background-color":t}};function AF(e,t){if(1&e&&(Wr(0,28),Ur(1,"input",29),Gr()),2&e){const e=t.$implicit,n=na(2);no(1),Vr("checked",0===n.idx)("value",e.id)("ngStyle",lc(3,xF,e.id,e.id))}}function CF(e,t){if(1&e){const e=qr();Hr(0,"ion-content",null,8),Hr(2,"div",9),Fr(3,AF,2,6,"ng-container",10),Ur(4,"hr"),Hr(5,"i",11),Xr("click",function(){return Lt(e),na().undo()}),jr(),jr(),Hr(6,"ion-fab",12),Hr(7,"ion-fab-button",13),Ur(8,"ion-icon",14),jr(),Hr(9,"ion-fab-list",15),Hr(10,"ion-fab-button",16),Xr("click",function(t){Lt(e);const n=na();return t.stopPropagation(),n.editMode=!n.editMode}),hc(11,"translate"),hc(12,"translate"),Ur(13,"ion-icon",17),jr(),Hr(14,"ion-fab-button",18),Xr("click",function(t){Lt(e);const n=na();return t.stopPropagation(),n.getImageDimensions(!n.originalSize)}),hc(15,"translate"),hc(16,"translate"),Ur(17,"ion-icon",17),jr(),jr(),jr(),Hr(18,"div",19),Hr(19,"drag-scroll",20,21),Hr(21,"div",22,23),Hr(23,"ion-img",24,25),Xr("ionImgDidLoad",function(t){return Lt(e),na().imageLoaded(t)}),jr(),Ur(25,"canvas",26,27),jr(),jr(),jr(),jr()}if(2&e){const e=na();no(3),Vr("ngForOf",e.penColors),no(7),Vr("color",e.editMode?"danger":"success")("title",e.editMode?pc(11,19,"lang.lockEdition"):pc(12,21,"lang.unlockEdition")),no(3),Vr("name",e.editMode?"lock-closed-outline":"lock-open-outline"),no(1),Vr("title",e.originalSize?pc(15,23,"lang.originalSize"):pc(16,25,"lang.screenSize")),no(3),Vr("name",e.originalSize?"scan-outline":"crop-outline"),no(2),fa("max-width",e.areaWidth,"px"),no(2),fa("width",e.areaWidth,"px")("height",e.areaHeight,"px"),no(2),fa("width",e.areaWidth,"px")("height",e.areaHeight,"px"),Vr("src",e.content),no(2),fa("display",e.editMode?"initial":"none")}}let SF=(()=>{class e{constructor(e,t,n,i,s){this.signaturesService=e,this.notificationService=t,this.authService=n,this.localStorage=i,this.modalController=s,this.triggerEvent=new yc,this.penColors=[{id:"#000000"},{id:"#1a75ff"},{id:"#FF0000"}],this.areaWidth=0,this.areaHeight=0,this.editMode=!0,this.originalSize=!0,this.loading=!0}ngOnInit(){setTimeout(()=>{this.loading=!1},100)}imageLoaded(e){this.getImageDimensions(!1)}getImageDimensions(e=!1){this.originalSize=e;const t=new Image;t.onload=n=>{this.areaWidth=n.target.naturalWidth,this.areaHeight=n.target.naturalHeight,e||this.getAreaDimension(),this.editMode&&setTimeout(()=>{const e=$("#myBounds").offset();let n,i,s;n=1===Math.sign(e.top)||this.precentScrollTop<=Math.abs(e.top)?this.precentScrollTop-e.top:-1===Math.sign(e.top)&&this.precentScrollTop<=-Math.sign(e.top)?2*(this.precentScrollTop-e.top):100*(this.precentScrollTop-e.top);const o=this.precentScrollLeft-e.left;i=this.precentScrollLeft-document.documentElement.offsetLeft,s=this.precentScrollTop-document.documentElement.offsetTop,i=i/this.areaWidth*100,s=s/this.areaHeight*100,document.getElementsByClassName("drag-scroll-content")[1].scrollTo(o,n),t.style.transform="translate(-"+i+"%,-"+s+"%) scale(2)",this.initPad()},200)},t.src=this.content}getAreaDimension(){const e=100*this.mainContent.el.offsetWidth/this.areaWidth;this.areaWidth=e*this.areaWidth/100,this.areaHeight=e*this.areaHeight/100}dismissModal(){this.modalController.dismiss("cancel")}initPad(){$("#myCanvas").sign({mode:this.authService.user.preferences.writingMode,lineWidth:this.authService.user.preferences.writingSize,changeColor:$(".radio"),undo:$(".undo"),height:this.areaHeight,width:this.areaWidth,fixHeight:56,fixWidth:0,mobileMode:this.signaturesService.mobileMode}),$("input[value='"+this.authService.user.preferences.writingColor+"']").trigger("click")}validateAnnotation(){this.signaturesService.notesContent[this.signaturesService.currentPage]||(this.signaturesService.notesContent[this.signaturesService.currentPage]=[]),this.signaturesService.notesContent[this.signaturesService.currentPage].push({fullPath:this.canvas.nativeElement.toDataURL("image/png"),positionX:0,positionY:0,height:this.signaturesService.workingAreaHeight,width:this.signaturesService.workingAreaWidth}),this.localStorage.save(this.signaturesService.mainDocumentId.toString(),JSON.stringify({date:this.signaturesService.datesContent,sign:this.signaturesService.signaturesContent,note:this.signaturesService.notesContent})),this.modalController.dismiss(""),this.notificationService.success("lang.annotationAdded")}undo(){}}return e.\u0275fac=function(t){return new(t||e)(zr(sS),zr(ZC),zr(rS),zr(oS),zr(JA))},e.\u0275cmp=$e({type:e,selectors:[["app-document-note-pad"]],viewQuery:function(e,t){if(1&e&&(Tc(vF,1),Tc(yF,1),Tc(wF,1),Tc(_F,1,Yk)),2&e){let e;Mc(e=Rc())&&(t.mainContent=e.first),Mc(e=Rc())&&(t.canvas=e.first),Mc(e=Rc())&&(t.img=e.first),Mc(e=Rc())&&(t.ds=e.first)}},inputs:{content:"content",precentScrollTop:"precentScrollTop",precentScrollLeft:"precentScrollLeft"},outputs:{triggerEvent:"triggerEvent"},decls:16,vars:11,consts:[[3,"translucent"],["color","primary"],[4,"ngIf"],[1,"ion-no-border","footer-buttons"],[2,"text-align","center"],["color","danger","shape","round","fill","outline","size","large",3,"click"],[2,"font-size","13px"],["color","success","shape","round","fill","outline","size","large",2,"margin-left","50px",3,"click"],["mainContent",""],[1,"tool-content","tool-content-right"],["let","","idx","index",4,"ngFor","ngForOf"],[1,"fa","fa-undo","fa-2x","undo",3,"click"],["vertical","top","horizontal","start","slot","fixed","activated",""],["close-icon","chevron-up"],["name","chevron-down"],["side","bottom"],[3,"color","title","click"],[3,"name"],[3,"title","click"],[2,"display","contents"],[2,"overflow","auto","height","100%","width","100%","margin","auto"],["nav",""],[2,"position","relative"],["myBounds",""],[1,"img-content",3,"src","ionImgDidLoad"],["img",""],["id","myCanvas",2,"position","absolute","top","0px","left","0px"],["canvas",""],["let","","idx","index"],["type","radio","name","colors",1,"radio",3,"checked","value","ngStyle"]],template:function(e,t){1&e&&(Hr(0,"ion-header",0),Hr(1,"ion-toolbar",1),Hr(2,"ion-title"),Da(3),hc(4,"translate"),jr(),jr(),jr(),Fr(5,CF,27,27,"ion-content",2),Hr(6,"ion-footer",3),Hr(7,"div",4),Hr(8,"ion-button",5),Xr("click",function(){return t.dismissModal()}),Hr(9,"ion-label",6),Da(10),hc(11,"translate"),jr(),jr(),Hr(12,"ion-button",7),Xr("click",function(){return t.validateAnnotation()}),Hr(13,"ion-label",6),Da(14),hc(15,"translate"),jr(),jr(),jr(),jr()),2&e&&(Vr("translucent",!0),no(3),Oa(pc(4,5,"lang.annotateDocument")),no(2),Vr("ngIf",!t.loading),no(5),Oa(pc(11,7,"lang.cancel")),no(4),Oa(pc(15,9,"lang.save")))},directives:[Vx,vA,mA,Wu,Bx,Ax,Zx,Tx,ju,Rx,Lx,Nx,Fx,Yk,Hx,Xu],pipes:[$C],styles:[".tool-content[_ngcontent-%COMP%]{position:fixed}.fullscreen[_ngcontent-%COMP%]{--width:100%;--height:100%}.tool-content[_ngcontent-%COMP%]{z-index:1;display:flex;position:absolute;background:hsla(0,0%,50.2%,.30196078431372547);border-radius:20px;top:170px;transform:translateY(-50%) rotate(-90deg);padding:10px}.tool-content-left[_ngcontent-%COMP%]{left:-40px}.tool-content-right[_ngcontent-%COMP%]{right:-40px}.undo[_ngcontent-%COMP%]{cursor:pointer;transform:rotate(90deg);transition:all .2s}.undo[_ngcontent-%COMP%]:active{transform:rotate(90deg) scale(1.5)}.radio[_ngcontent-%COMP%]{-webkit-appearance:none;-moz-appearance:none;appearance:none;position:relative;margin:5px;width:30px;height:30px;border-radius:30px;border-width:none;border-style:solid;outline:none;cursor:pointer;transition:all .2s}.radio[_ngcontent-%COMP%]:checked, .radio[_ngcontent-%COMP%]:hover{transform:scale(1.5)}.footer-buttons[_ngcontent-%COMP%]{display:grid;padding:10px}.footer-buttons[_ngcontent-%COMP%]   ion-button[_ngcontent-%COMP%]{margin:auto;width:150px}"]}),e})(),kF=(()=>{class e{constructor(e,t,n){this.http=e,this.signaturesService=t,this.router=n,this.currentIndex=0,this.offset=0,this.limit=10}resfreshDocuments(e=!1){this.http.get("../rest/documents?limit="+(this.limit+this.offset)+"&offset=0&mode="+this.signaturesService.mode).subscribe(t=>{this.signaturesService.documentsList=t.documents,this.signaturesService.documentsListCount=t.count,e&&this.router.navigate(void 0!==this.signaturesService.documentsList[this.currentIndex]?["/documents/"+this.signaturesService.documentsList[this.currentIndex].id]:this.signaturesService.documentsList.length>0?["/documents/"+this.signaturesService.documentsList[0].id]:["/home"])})}}return e.\u0275fac=function(t){return new(t||e)(gi(Db),gi(sS),gi(r_))},e.\u0275prov=pe({token:e,factory:e.\u0275fac}),e})(),PF=(()=>{class e{constructor(e,t,n,i){this.signaturesService=e,this.filtersService=t,this.authService=n,this.bottomSheetRef=i,this.date=new Date}ngOnInit(){setTimeout(()=>{this.signaturesService.currentToobal="mainDocumentDetail",this.filtersService.resfreshDocuments(!0),this.bottomSheetRef.dismiss()},2e3)}}return e.\u0275fac=function(t){return new(t||e)(zr(sS),zr(kF),zr(rS),zr(rM))},e.\u0275cmp=$e({type:e,selectors:[["ng-component"]],decls:14,vars:19,consts:[[1,"red",2,"text-align","center"],[1,"fa","fa-thumbs-down","fa-4x"],[2,"font-weight","bold","font-size","30px"],[2,"font-weight","bold","font-size","15px"]],template:function(e,t){1&e&&(Hr(0,"div",0),Hr(1,"h1"),Ur(2,"i",1),jr(),Hr(3,"p"),Da(4),hc(5,"translate"),jr(),Hr(6,"p",2),Da(7),jr(),Hr(8,"p",3),Da(9),hc(10,"translate"),hc(11,"date"),hc(12,"translate"),hc(13,"date"),jr(),jr()),2&e&&(no(4),Oa(pc(5,7,"lang.documentRefusedAs")),no(3),Ta("",t.authService.user.firstname," ",t.authService.user.lastname,""),no(2),Ra("",pc(10,9,"lang.onRange")," ",gc(11,11,t.date,"dd/MM/yyyy")," ",pc(12,14,"lang.atRange")," ",gc(13,16,t.date,"HH:mm"),""))},pipes:[$C,lh],styles:[""]}),e})();const EF=["slides"];function DF(e,t){1&e&&(Hr(0,"span",16),Da(1),hc(2,"translate"),jr()),2&e&&(no(1),Ma("(",pc(2,1,"lang.mainDocument"),")"))}function OF(e,t){1&e&&(Hr(0,"span",16),Da(1),hc(2,"translate"),jr()),2&e&&(no(1),Ma("(",pc(2,1,"lang.attachment"),")"))}const MF=function(e){return{background:e}};function TF(e,t){if(1&e){const e=qr();Hr(0,"ion-slide"),Hr(1,"div",12),Hr(2,"div",13),Xr("click",function(){Lt(e);const n=t.index;return na(2).loadDoc(n)}),jr(),Hr(3,"div",14),Da(4),Fr(5,DF,3,3,"span",15),Fr(6,OF,3,3,"span",15),jr(),jr(),jr()}if(2&e){const e=t.$implicit,n=t.index,i=na(2);no(2),ma("current",n==i.currentDocId),Vr("ngStyle",ac(6,MF,"url("+e.imgContent[1]+") no-repeat scroll center center / contain")),no(2),Ma(" ",e.title,"\xa0"),no(1),Vr("ngIf",0==n),no(1),Vr("ngIf",n>0)}}function IF(e,t){if(1&e&&(Hr(0,"ion-slides",9,10),Fr(2,TF,7,8,"ion-slide",11),jr()),2&e){const e=na();Vr("options",e.slideOpts),no(2),Vr("ngForOf",e.docList)}}let RF=(()=>{class e{constructor(e,t,n,i){this.http=e,this.signaturesService=t,this.sanitizer=n,this.menu=i,this.triggerEvent=new yc,this.loading=!0,this.scrolling=!1,this.slideOpts={initialSlide:0,speed:400,direction:"vertical"}}ngOnInit(){this.docList.forEach((e,t)=>{void 0===e.imgContent[1]&&t>0&&this.http.get("../rest/attachments/"+e.id+"/thumbnails/1").subscribe(t=>{e.imgContent[1]="data:image/png;base64,"+t.fileContent})})}ngAfterViewInit(){this.loading=!1}loadDoc(e){this.triggerEvent.emit(e),this.menu.close("right-menu")}scroll(e){this.scrolling||(this.scrolling=!0,e.deltaY<0?this.slides.slidePrev():this.slides.slideNext(),setTimeout(()=>{this.scrolling=!1},500))}}return e.\u0275fac=function(t){return new(t||e)(zr(Db),zr(sS),zr(qh),zr(KA))},e.\u0275cmp=$e({type:e,selectors:[["app-document-list"]],viewQuery:function(e,t){if(1&e&&Tc(EF,1),2&e){let e;Mc(e=Rc())&&(t.slides=e.first)}},inputs:{docList:"docList",currentDocId:"currentDocId"},outputs:{triggerEvent:"triggerEvent"},decls:12,vars:6,consts:[[3,"translucent"],["color","primary"],["slot","start"],["disabled",""],["slot","icon-only","name","document-outline"],[1,"ion-text-center"],[1,"secondary"],[3,"wheel"],["pager","true",3,"options",4,"ngIf"],["pager","true",3,"options"],["slides",""],[4,"ngFor","ngForOf"],[2,"height","90%","width","100%","position","relative","padding","10px"],[2,"cursor","pointer","height","100%","width","100%","border-radius","4px","transition","box-shadow 280ms cubic-bezier(.4,0,.2,1)","border","solid 1px #E0E0E0",3,"ngStyle","click"],[1,"pjToolsContent"],["class","red",4,"ngIf"],[1,"red"]],template:function(e,t){1&e&&(Hr(0,"ion-header",0),Hr(1,"ion-toolbar",1),Hr(2,"ion-buttons",2),Hr(3,"ion-button",3),Ur(4,"ion-icon",4),jr(),jr(),Hr(5,"ion-title",5),Hr(6,"b",6),Da(7),jr(),Da(8),hc(9,"translate"),jr(),jr(),jr(),Hr(10,"ion-content",7),Xr("wheel",function(e){return t.scroll(e)}),Fr(11,IF,3,2,"ion-slides",8),jr()),2&e&&(Vr("translucent",!0),no(7),Oa(t.docList.length),no(1),Ma("\xa0",pc(9,4,"lang.attachedElements"),""),no(3),Vr("ngIf",!t.loading))},directives:[Vx,vA,Cx,Ax,Nx,mA,Tx,Wu,gA,ju,pA,Xu],pipes:[$C],styles:[".mat-list-item[_ngcontent-%COMP%]{height:auto!important;text-align:center}.mat-card[_ngcontent-%COMP%]{box-shadow:none;border:1px solid #e0e0e0}.mat-icon[_ngcontent-%COMP%]{height:auto}.pjToolsContent[_ngcontent-%COMP%]{position:absolute;border:1px solid #e0e0e0;border-bottom-left-radius:5px;background:#fff;padding:10px;font-weight:600;color:#135f7f;font-size:14px;top:10px}.current[_ngcontent-%COMP%]{box-shadow:0 0 20px 0 #656565}.panel-header[_ngcontent-%COMP%]{box-shadow:0 0 10px 0 #656565;color:#fff;background:#135f7f;height:65px;justify-content:center;font-size:20px;align-items:center}.panel-content[_ngcontent-%COMP%], .panel-header[_ngcontent-%COMP%]{display:flex;position:relative}.panel-content[_ngcontent-%COMP%]{flex-direction:column;height:100%;overflow:hidden}img[_ngcontent-%COMP%]{pointer-events:none}.secondary[_ngcontent-%COMP%]{color:var(--ion-color-secondary)}"]}),e})(),LF=(()=>{class e{constructor(e,t){this.translate=e,this.latinisePipe=t}empty(e){return null==e||!1===e||(Array.isArray(e)?!(e.length>0):""===String(e))}isDate(e){return e instanceof Date&&!isNaN(e.valueOf())}formatFrenchDateToTechnicalDate(e){if(this.empty(e))return e;{let t=e.split("-");return t=t.concat(t[t.length-1].split(" ")),t.splice(2,1),this.empty(t[3])&&(t[3]="00:00:00"),`${t[2]}-${t[1]}-${t[0]} ${t[3]}`}}formatFrenchDateToObjectDate(e,t="-"){if(this.empty(e))return e;{let n=e.split(t);return n=n.concat(n[n.length-1].split(" ")),n.splice(2,1),this.empty(n[3])&&(n[3]="00:00:00"),new Date(`${n[2]}-${n[1]}-${n[0]} ${n[3]}`)}}formatDateObjectToDateString(e,t=!1,n="dd-mm-yyyy"){if(null!==e){const i=[];n.split("-").forEach(t=>{if("dd"===t){let t=e.getDate();t=("00"+t).slice(-2),i.push(t)}else if("mm"===t){let t=e.getMonth()+1;t=("00"+t).slice(-2),i.push(t)}else if("yyyy"===t){const t=e.getFullYear();i.push(t)}});let s="";return t&&(s=" 23:59:59"),`${i.join("-")}${s}`}return e}formatSerializedDateToDateString(e){return this.formatDateObjectToDateString(new Date(e))}listSortingDataAccessor(e,t){return"string"==typeof e[t]?e[t].toLowerCase():e[t]}filterUnSensitive(e,t,n){let i=!1;return t=this.latinisePipe.transform(t),n.forEach(n=>{let s=e[n];"string"!=typeof e[n]&&(s=void 0===s?"":JSON.stringify(s)),i=i||this.latinisePipe.transform(s.toLowerCase()).includes(t)}),i}formatBytes(e,t=2){if("number"==typeof e){if(0===e)return"0 Octet";const n=1024,i=t<0?0:t,s=["Octets","KO","MO","GO","TO","PO","EO","ZO","YO"],o=Math.floor(Math.log(e)/Math.log(n));return parseFloat((e/Math.pow(n,o)).toFixed(i))+" "+s[o]}return e}}return e.\u0275fac=function(t){return new(t||e)(gi(GC),gi(dP))},e.\u0275prov=pe({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();var FF=function(e,t,n,i){return new(n||(n=Promise))(function(s,o){function r(e){try{l(i.next(e))}catch(t){o(t)}}function a(e){try{l(i.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?s(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(r,a)}l((i=i.apply(e,t||[])).next())})};let BF=(()=>{class e{constructor(e,t,n,i,s,o){this.http=e,this.translate=t,this.notificationService=n,this.signaturesService=i,this.functionsService=s,this.alertController=o}sendDocument(e,t,n=null,i=null,s=null,o=null){return new Promise(r=>FF(this,void 0,void 0,function*(){let a={};this.signaturesService.currentAction>0?(a.signatures=null===o?yield this.getElementsFromDoc():o,null!==n&&(a=Object.assign(Object.assign({},a),n),a.step="hashCertificate"),null!==t&&(a.note=t),null!==i&&(a.signatureLength=i),this.functionsService.empty(s)||(a.tmpUniqueId=s),this.http.put("../rest/documents/"+e+"/actions/"+this.signaturesService.currentAction,a).pipe(Ov(e=>{r(null===n||{hashDocument:e.dataToSign,signatureContentLength:e.signatureContentLength,signatureFieldName:e.signatureFieldName,tmpUniqueId:e.tmpUniqueId})}),fv(e=>(this.notificationService.handleErrors(e),r(403===e.status&&null),lb(!1)))).subscribe()):r(!1)}))}getElementsFromDoc(){return FF(this,void 0,void 0,function*(){return new Promise(e=>FF(this,void 0,void 0,function*(){const t=[];for(let e=1;e<=this.signaturesService.totalPage;e++){if(this.signaturesService.datesContent[e])for(let n=0;n<this.signaturesService.datesContent[e].length;n++){const i=this.signaturesService.datesContent[e][n],s=yield this.getSvgContent(n);t.push({encodedImage:s.replace("data:image/svg+xml;base64,",""),width:i.width,height:i.height,positionX:i.positionX,positionY:i.positionY,type:"SVG",page:e})}this.signaturesService.signaturesContent[e]&&this.signaturesService.signaturesContent[e].forEach(n=>{t.push({encodedImage:n.encodedSignature,width:n.width,positionX:n.positionX,positionY:n.positionY,type:"PNG",page:e})}),this.signaturesService.notesContent[e]&&this.signaturesService.notesContent[e].forEach(n=>{t.push({encodedImage:n.fullPath.replace("data:image/png;base64,",""),width:n.width,positionX:n.positionX,positionY:n.positionY,type:"PNG",page:e})})}e(t)}))})}getSvgContent(e){return new Promise(t=>{const n=document.getElementById("testSVG_"+e),i=(new XMLSerializer).serializeToString(n),s=new Blob([i],{type:"image/svg+xml"}),o=new FileReader;o.readAsDataURL(s),o.onloadend=()=>{t(o.result)}})}checkGroupMail(e,t){return new Promise(n=>FF(this,void 0,void 0,function*(){this.functionsService.empty(e.mailingId)?n([this.signaturesService.mainDocumentId]):this.http.get(`../rest/documents/${this.signaturesService.mainDocumentId}/linkedMailing`).pipe(Ov(e=>FF(this,void 0,void 0,function*(){if(e.documents.length>1){const i=yield this.alertController.create({header:this.translate.instant("lang.mailing"),message:this.translate.instant("validate"===t?"lang.makeActionOnDocInMailGroup":"lang.refuseActionDocInMailGroup"),backdropDismiss:!1,buttons:[{text:this.translate.instant("lang.yes"),handler:()=>{n(e.documents)}},{role:"cancel",text:this.translate.instant("lang.no"),cssClass:"secondary",handler:()=>{n([this.signaturesService.mainDocumentId])}}]});yield i.present()}else n([this.signaturesService.mainDocumentId])})),fv(e=>(this.notificationService.handleErrors(e),n([]),lb(!1)))).subscribe()}))}}return e.\u0275fac=function(t){return new(t||e)(gi(Db),gi(GC),gi(ZC),gi(sS),gi(LF),gi(QA))},e.\u0275prov=pe({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();var zF=function(e,t,n,i){return new(n||(n=Promise))(function(s,o){function r(e){try{l(i.next(e))}catch(t){o(t)}}function a(e){try{l(i.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?s(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(r,a)}l((i=i.apply(e,t||[])).next())})};let VF=(()=>{class e{constructor(e,t,n,i,s,o,r,a,l){this.modalController=e,this.http=t,this.translate=n,this.notificationService=i,this.loadingController=s,this.signaturesService=o,this.actionsService=r,this.functionsService=a,this.authService=l,this.filters={expired:!1,keyUsage:[],onlyWithPrivateKey:!0},this.provider=null,this.cert=null,this.certPem=null,this.privateKey=null,this.signatures=[],this.signatureLength=null,this.server=null}ngOnInit(){return zF(this,void 0,void 0,function*(){const e=this.authService.signatureRoles.filter(e=>e.id===this.signatureMode)[0];this.functionsService.empty(e.issuer)||(this.filters.issuerDNMatch=new RegExp(e.issuer,"i")),this.functionsService.empty(e.subject)||(this.filters.subjectDNMatch=new RegExp(e.subject,"i")),this.functionsService.empty(e.keyUsage)||this.filters.keyUsage.push(e.keyUsage)})}certificateChosen(e){return zF(this,void 0,void 0,function*(){this.loadingController.create({message:this.translate.instant("lang.processing"),spinner:"dots"}).then(t=>zF(this,void 0,void 0,function*(){t.present();try{this.server=e.detail.server,this.checkWebsocketSession(),this.provider=yield e.detail.server.getCrypto(e.detail.providerId),this.checkWebsocketSession(),this.cert=yield this.provider.certStorage.getItem(e.detail.certificateId),this.checkWebsocketSession(),this.certPem=yield this.provider.certStorage.exportCert("pem",this.cert),this.checkWebsocketSession(),this.privateKey=yield this.provider.keyStorage.getItem(e.detail.privateKeyId)}catch(i){return this.notificationService.error(i),t.dismiss(),void this.modalController.dismiss(!1)}this.certificate={certificate:this.certPem};let n=!1;for(let e=0;e<this.idsToProcess.length;e++)this.signatures=yield this.actionsService.getElementsFromDoc(),n=yield this.sendAndSign(this.idsToProcess[e]);t.dismiss(),this.modalController.dismiss(n)}))})}checkWebsocketSession(){return zF(this,void 0,void 0,function*(){for(;this.server.client.state!==WebSocket.OPEN;)yield this.server.connect(),yield new Promise(e=>setTimeout(e,150))})}sendAndSign(e){return zF(this,void 0,void 0,function*(){let t=!1,n={};for(;!t;){let i=!1;for(;!1===i;){if(n=yield this.fusionStampAndGenerateSignature(e,n.tmpUniqueId),null===n)return!1;if(!1===n)return!1;if(i=yield this.signDocument(e,n.hashDocument,n.signatureContentLength,n.signatureFieldName,n.tmpUniqueId),!0!==i)return!1;this.signatures.shift(),t=0===this.signatures.length}}return t})}fusionStampAndGenerateSignature(e,t=null){return zF(this,void 0,void 0,function*(){let n={};return n=yield this.actionsService.sendDocument(e,null,this.certificate,this.signatureLength,t,this.signatures),n})}signDocument(e,t,n,i,s){return new Promise(o=>zF(this,void 0,void 0,function*(){const r={name:this.privateKey.algorithm.name,hash:"SHA-256"},a=this.fromHex(t);let l;try{this.checkWebsocketSession(),l=yield this.provider.subtle.sign(r,this.privateKey,a)}catch(h){return this.notificationService.error(h),o(!1),lb(!1)}const c={note:this.note},d={signatures:this.signatures,certificate:this.certPem,hashSignature:this.toHex(l),signatureContentLength:n,signatureFieldName:i,tmpUniqueId:s},u=Object.assign(Object.assign({},c),d);this.http.put("../rest/documents/"+e+"/actions/"+this.signaturesService.currentAction,u).pipe(Ov(()=>{o(!0)}),fv(e=>(void 0!==e.error.newSignatureLength?(this.signatureLength=e.error.newSignatureLength,o(!1)):(this.notificationService.handleErrors(e),o("error")),lb(!1)))).subscribe()}))}cancelSign(){this.modalController.dismiss(!1)}toHex(e){const t=new Uint8Array(e),n=[],i=t.length;for(let s=0;s<i;s++){const e=t[s].toString(16);n.push(1===e.length?"0"+e:e)}return n.join("")}fromHex(e){const t=new Uint8Array(e.length/2);for(let n=0;n<e.length;n+=2){const i=e.slice(n,n+2);t[n/2]=parseInt(i,16)}return t.buffer}}return e.\u0275fac=function(t){return new(t||e)(zr(JA),zr(Db),zr(GC),zr(ZC),zr(XA),zr(sS),zr(BF),zr(LF),zr(rS))},e.\u0275cmp=$e({type:e,selectors:[["signature-method-modal"]],inputs:{note:"note",signatureMode:"signatureMode",idsToProcess:"idsToProcess"},decls:2,vars:1,consts:[["language","fr","hide-footer","",2,"height","100%","width","100%",3,"filters","continue","cancel"]],template:function(e,t){1&e&&(Hr(0,"ion-content"),Hr(1,"peculiar-fortify-certificates",0),Xr("continue",function(e){return t.certificateChosen(e)})("cancel",function(){return t.cancelSign()}),jr(),jr()),2&e&&(no(1),Vr("filters",t.filters))},directives:[Tx],styles:[".content[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;padding:30px!important;height:100%;flex-direction:column}.content[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{font-size:130px;color:var(--ion-color-primary)}.success[_ngcontent-%COMP%]{color:var(--ion-color-success)!important}.danger[_ngcontent-%COMP%]{color:var(--ion-color-danger)!important}@-webkit-keyframes bounce{0%,20%,53%,80%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1);transform:translateZ(0)}40%,43%{-webkit-animation-timing-function:cubic-bezier(.755,.05,.855,.06);animation-timing-function:cubic-bezier(.755,.05,.855,.06);transform:translate3d(0,-30px,0)}70%{-webkit-animation-timing-function:cubic-bezier(.755,.05,.855,.06);animation-timing-function:cubic-bezier(.755,.05,.855,.06);transform:translate3d(0,-15px,0)}90%{transform:translate3d(0,-4px,0)}}@keyframes bounce{0%,20%,53%,80%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1);transform:translateZ(0)}40%,43%{-webkit-animation-timing-function:cubic-bezier(.755,.05,.855,.06);animation-timing-function:cubic-bezier(.755,.05,.855,.06);transform:translate3d(0,-30px,0)}70%{-webkit-animation-timing-function:cubic-bezier(.755,.05,.855,.06);animation-timing-function:cubic-bezier(.755,.05,.855,.06);transform:translate3d(0,-15px,0)}90%{transform:translate3d(0,-4px,0)}}.bounce[_ngcontent-%COMP%]{-webkit-animation-duration:2s;animation-duration:2s;-webkit-animation-name:bounce;animation-name:bounce;transform-origin:center bottom;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite}"]}),e})();var NF=function(e,t,n,i){return new(n||(n=Promise))(function(s,o){function r(e){try{l(i.next(e))}catch(t){o(t)}}function a(e){try{l(i.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?s(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(r,a)}l((i=i.apply(e,t||[])).next())})};let HF=(()=>{class e{constructor(e,t,n,i,s,o,r){this.http=e,this.modalController=t,this.actionsService=n,this.loadingController=i,this.translate=s,this.authService=o,this.notificationService=r}checkAuthenticationAndLaunchAction(e,t=null,n){return NF(this,void 0,void 0,function*(){return["rgs_2stars","rgs_2stars_timestamped","inca_card","inca_card_eidas"].indexOf(e.signatureMode)>-1?0!==this.authService.coreUrl.indexOf("https://")?(yield this.notificationService.error("lang.securedUrlNeeded"),null):yield this.openRgsAuth(t,e.signatureMode,n):yield this.launchDefaultMode(t,n)})}launchDefaultMode(e,t){return NF(this,void 0,void 0,function*(){return new Promise(n=>NF(this,void 0,void 0,function*(){const i=yield this.loadingController.create({message:this.translate.instant("lang.loadingValidation"),spinner:"dots"});i.present();let s=!0;for(let n=0;n<t.length;n++)s=yield this.actionsService.sendDocument(t[n],e);i.dismiss(),n(s)}))})}openRgsAuth(e,t,n){return NF(this,void 0,void 0,function*(){return new Promise(i=>NF(this,void 0,void 0,function*(){const s=yield this.modalController.create({component:VF,componentProps:{note:e,signatureMode:t,idsToProcess:n}});yield s.present();const{data:o}=yield s.onWillDismiss();i(o)}))})}}return e.\u0275fac=function(t){return new(t||e)(gi(Db),gi(JA),gi(BF),gi(XA),gi(GC),gi(rS),gi(ZC))},e.\u0275prov=pe({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),jF=(()=>{class e{constructor(e,t,n,i){this.signaturesService=e,this.filtersService=t,this.authService=n,this.bottomSheetRef=i,this.date=new Date}ngOnInit(){setTimeout(()=>{this.signaturesService.currentToobal="mainDocumentDetail",this.filtersService.resfreshDocuments(!0),this.bottomSheetRef.dismiss()},2e3)}}return e.\u0275fac=function(t){return new(t||e)(zr(sS),zr(kF),zr(rS),zr(rM))},e.\u0275cmp=$e({type:e,selectors:[["ng-component"]],decls:14,vars:19,consts:[[1,"green",2,"text-align","center"],[1,"fa","fa-thumbs-up","fa-4x"],[2,"font-weight","bold","font-size","30px"],[2,"font-weight","bold","font-size","15px"]],template:function(e,t){1&e&&(Hr(0,"div",0),Hr(1,"h1"),Ur(2,"i",1),jr(),Hr(3,"p"),Da(4),hc(5,"translate"),jr(),Hr(6,"p",2),Da(7),jr(),Hr(8,"p",3),Da(9),hc(10,"translate"),hc(11,"date"),hc(12,"translate"),hc(13,"date"),jr(),jr()),2&e&&(no(4),Oa(pc(5,7,"lang.documentValidateAs")),no(3),Ta("",t.authService.user.firstname," ",t.authService.user.lastname,""),no(2),Ra("",pc(10,9,"lang.onRange")," ",gc(11,11,t.date,"dd/MM/yyyy")," ",pc(12,14,"lang.atRange")," ",gc(13,16,t.date,"HH:mm"),""))},pipes:[$C,lh],styles:[""]}),e})();function UF(e,t){if(1&e&&(Wr(0),Hr(1,"div",1),Ur(2,"img",2),jr(),Gr()),2&e){const e=t.$implicit,n=na();no(1),fa("width",n.signaturesService.workingAreaWidth,"px")("height",n.signaturesService.workingAreaHeight,"px"),no(1),fa("width",100,"%"),Vr("src",n.sanitization.bypassSecurityTrustUrl(e.fullPath),os)}}let WF=(()=>{class e{constructor(e,t,n){this.translate=e,this.sanitization=t,this.signaturesService=n}ngOnInit(){}}return e.\u0275fac=function(t){return new(t||e)(zr(GC),zr(qh),zr(sS))},e.\u0275cmp=$e({type:e,selectors:[["app-document-note-list"]],decls:1,vars:1,consts:[[4,"ngFor","ngForOf"],[2,"top","0","left","0","position","absolute"],[3,"src"]],template:function(e,t){1&e&&Fr(0,UF,3,7,"ng-container",0),2&e&&Vr("ngForOf",t.signaturesService.notesContent[t.signaturesService.currentPage])},directives:[ju],encapsulation:2}),e})();const GF=["menuTrigger"],$F=["test"],qF=function(e,t){return{x:e,y:t}};function YF(e,t){if(1&e){const e=qr();Hr(0,"div",1,2),Xr("rzResizing",function(n){Lt(e);const i=t.index;return na().onResizing(n,i)})("rzStart",function(){return Lt(e),na().signaturesService.resizing=!0})("movingOffset",function(){return Lt(e),na().signaturesService.dragging=!0})("endOffset",function(n){Lt(e);const i=t.index;return na().moveSign(n,i)})("rzStop",function(n){Lt(e);const i=t.index,s=na();return s.onResizeStop(n,i),s.signaturesService.resizing=!1}),Hr(2,"ion-item",3),Hr(3,"ion-select",4),Xr("click",function(e){return e.stopPropagation()})("ionChange",function(n){Lt(e);const i=t.index;return na().select(n,i)}),Hr(4,"ion-select-option",5),Da(5),hc(6,"translate"),jr(),Hr(7,"ion-select-option",6),Da(8),hc(9,"translate"),jr(),jr(),jr(),Ur(10,"img",7),jr()}if(2&e){const e=t.$implicit,n=na();fa("width",e.width,"%")("height",n.fix),Vr("position",lc(20,qF,e.positionX*n.signaturesService.workingAreaWidth/100,e.positionY*n.signaturesService.workingAreaHeight/100))("ngDraggable",!n.signaturesService.resizing)("rzAspectRatio",!0)("preventDefaultEvent",!1)("bounds",n.bounds)("inBounds",!0),no(5),Ma("",pc(6,16,"lang.delete")," "),no(2),Vr("disabled",e.inAllPage),no(1),Ma(" ",pc(9,18,"lang.replicate"),""),no(2),fa("width",100,"%"),Vr("src",n.sanitization.bypassSecurityTrustUrl("data:image/png;base64,"+e.encodedSignature),os)}}let ZF=(()=>{class e{constructor(e,t,n,i,s,o,r,a){this.translate=e,this.sanitization=t,this.signaturesService=n,this.notificationService=i,this.localStorage=s,this.dialog=o,this.popoverController=r,this.modalController=a,this.fix="auto",this.today=new Date}ngOnInit(){}select(e,t){this[e.detail.value](t)}moveSign(e,t){const n=100*e.y/this.signaturesService.workingAreaHeight;this.signaturesService.signaturesContent[this.signaturesService.currentPage][t].positionX=100*e.x/this.signaturesService.workingAreaWidth,this.signaturesService.signaturesContent[this.signaturesService.currentPage][t].positionY=n,this.localStorage.save(this.signaturesService.mainDocumentId.toString(),JSON.stringify({date:this.signaturesService.datesContent,sign:this.signaturesService.signaturesContent,note:this.signaturesService.notesContent})),this.signaturesService.dragging=!1}onResizing(e,t){this.test.nativeElement.style.height="auto"}onResizeStop(e,t){this.test.nativeElement.style.height="auto",this.signaturesService.signaturesContent[this.signaturesService.currentPage][t].width=100*e.size.width/this.signaturesService.workingAreaWidth}cloneSign(e){this.dialog.open($R,{autoFocus:!1,width:"450px",data:{title:"lang.wantSignOtherPage",msg:""}}).afterClosed().subscribe(t=>{if("yes"===t){this.signaturesService.signaturesContent[this.signaturesService.currentPage][e].inAllPage=!0,this.signaturesService.signaturesContent[this.signaturesService.currentPage][e].token=Math.random().toString(36).substr(2,9);for(let t=1;t<=this.signaturesService.totalPage;t++)this.signaturesService.signaturesContent[t]||(this.signaturesService.signaturesContent[t]=[]),t!==this.signaturesService.currentPage&&this.signaturesService.signaturesContent[t].push(JSON.parse(JSON.stringify(this.signaturesService.signaturesContent[this.signaturesService.currentPage][e])));this.localStorage.save(this.signaturesService.mainDocumentId.toString(),JSON.stringify({sign:this.signaturesService.signaturesContent,note:this.signaturesService.notesContent}))}}),this.menuSign.closeMenu()}deleteSignature(e){if(!0===this.signaturesService.signaturesContent[this.signaturesService.currentPage][e].inAllPage){const t=this.signaturesService.signaturesContent[this.signaturesService.currentPage][e].token;if(confirm(this.translate.instant("lang.wantDeleteSignatureOtherPage")))for(let e=1;e<=this.signaturesService.totalPage;e++){this.signaturesService.signaturesContent[e]||(this.signaturesService.signaturesContent[e]=[]);for(let n=0;n<=this.signaturesService.signaturesContent[e].length;n++)this.signaturesService.signaturesContent[e][n]&&t===this.signaturesService.signaturesContent[e][n].token&&this.signaturesService.signaturesContent[e].splice(n,1)}else this.signaturesService.signaturesContent[this.signaturesService.currentPage].splice(e,1)}else this.signaturesService.signaturesContent[this.signaturesService.currentPage].splice(e,1);this.emptySigns()&&(this.signaturesService.signaturesContent=[]),this.localStorage.save(this.signaturesService.mainDocumentId.toString(),JSON.stringify({sign:this.signaturesService.signaturesContent,note:this.signaturesService.notesContent}))}emptySigns(){let e=!0;for(let t=1;t<=this.signaturesService.totalPage;t++)if(this.signaturesService.signaturesContent[t]&&this.signaturesService.signaturesContent[t].length>0){e=!1;break}return e}}return e.\u0275fac=function(t){return new(t||e)(zr(GC),zr(qh),zr(sS),zr(ZC),zr(oS),zr(IM),zr(eC),zr(JA))},e.\u0275cmp=$e({type:e,selectors:[["app-document-sign-list"]],viewQuery:function(e,t){if(1&e&&(Tc(GF,1),Tc($F,1)),2&e){let e;Mc(e=Rc())&&(t.menuSign=e.first),Mc(e=Rc())&&(t.test=e.first)}},inputs:{bounds:"bounds"},decls:1,vars:1,consts:[["ngResizable","","style","position:absolute;border: dashed 1px grey;background: rgba(255, 255, 255, 0.6) none repeat scroll 0% 0%;",3,"position","width","ngDraggable","rzAspectRatio","preventDefaultEvent","bounds","inBounds","height","rzResizing","rzStart","movingOffset","endOffset","rzStop",4,"ngFor","ngForOf"],["ngResizable","",2,"position","absolute","border","dashed 1px grey","background","rgba(255, 255, 255, 0.6) none repeat scroll 0% 0%",3,"position","ngDraggable","rzAspectRatio","preventDefaultEvent","bounds","inBounds","rzResizing","rzStart","movingOffset","endOffset","rzStop"],["test",""],[2,"position","absolute","--background","none","right","0","--border-width","0"],["selectedText"," ","value","","interface","popover",3,"click","ionChange"],["value","deleteSignature",1,"action-item"],["value","cloneSign",1,"action-item",3,"disabled"],[1,"img-content",3,"src"]],template:function(e,t){1&e&&Fr(0,YF,11,23,"div",0),2&e&&Vr("ngForOf",t.signaturesService.signaturesContent[t.signaturesService.currentPage])},directives:[ju,tP,Kk,Gx,uA,ox,hA],pipes:[$C],styles:[".action-item ion-radio{--color:transparent;--color-checked:transparent}.test[_ngcontent-%COMP%]{position:absolute;border:1px dashed grey;background:hsla(0,0%,100%,.6) none repeat scroll 0 0;background:none;font:sans-serif}svg[_ngcontent-%COMP%]{width:100%;height:100%;pointer-events:none}text[_ngcontent-%COMP%]{pointer-events:auto}"]}),e})();function QF(e,t){if(1&e&&(Hr(0,"ion-select-option",19),Da(1),hc(2,"date"),hc(3,"translate"),jr()),2&e){const e=t.$implicit,n=na();Vr("value",e),no(1),Ma(" ",mc(2,2,n.today,e,void 0,pc(3,7,"lang.langISO"))," ")}}function XF(e,t){if(1&e&&(Hr(0,"ion-select-option",19),Da(1),jr()),2&e){const e=t.$implicit;ba(na().getFontLabel(e)),Vr("value",e),no(1),Ma(" ",e," ")}}const KF=function(){return{cssClass:"selectFormat"}};let JF=(()=>{class e{constructor(e){this.modalController=e,this.today=new Date,this.dateformats=["dd/MM/y","dd-MM-y","dd.MM.y","d MMM y","d MMMM y"],this.datefonts=["Arial","Verdana","Helvetica","Tahoma","Times New Roman","Courier New"],this.size={Arial:15,Verdana:13,Helvetica:13,Tahoma:13,"Times New Roman":15,"Courier New":13}}ngOnInit(){this.date=JSON.parse(JSON.stringify(this.currentDate))}dismissModal(){this.modalController.dismiss()}getFontLabel(e){return e.replace(" ","_")}onSubmit(){this.modalController.dismiss(this.date)}select(e){this.date.size=this.size[e]}}return e.\u0275fac=function(t){return new(t||e)(zr(JA))},e.\u0275cmp=$e({type:e,selectors:[["ng-component"]],inputs:{currentDate:"currentDate"},decls:45,vars:43,consts:[[3,"translucent"],["color","primary"],["slot","end"],[3,"click"],["slot","icon-only","name","close-outline"],[2,"text-align","center","font-weight","normal","font-size","50px","padding","50px"],["color","secondary"],["interface","popover",3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],["button","","lines","full",3,"click"],["type","color",2,"display","none",3,"ngModel","ngModelChange"],["colorPicker",""],["slot","end","name","ellipse"],[3,"ngModel","interfaceOptions","cancelText","ngModelChange","ionChange"],[3,"value","class",4,"ngFor","ngForOf"],[1,"ion-no-border"],[1,"ion-justify-content-center"],["type","submit","color","primary",3,"click"],["type","button",3,"click"],[3,"value"]],template:function(e,t){if(1&e){const e=qr();Hr(0,"ion-header",0),Hr(1,"ion-toolbar",1),Hr(2,"ion-title"),Da(3),hc(4,"translate"),jr(),Hr(5,"ion-buttons",2),Hr(6,"ion-button",3),Xr("click",function(){return t.dismissModal()}),Ur(7,"ion-icon",4),jr(),jr(),jr(),jr(),Hr(8,"ion-content"),Hr(9,"ion-toolbar"),Hr(10,"ion-title",5),Da(11),hc(12,"date"),hc(13,"translate"),jr(),jr(),Hr(14,"ion-item"),Hr(15,"ion-label",6),Da(16),hc(17,"translate"),jr(),Hr(18,"ion-select",7),Xr("ngModelChange",function(e){return t.date.format=e}),Fr(19,QF,4,9,"ion-select-option",8),jr(),jr(),Hr(20,"ion-item",9),Xr("click",function(){return Lt(e),Br(22).click()}),Hr(21,"input",10,11),Xr("ngModelChange",function(e){return t.date.color=e}),jr(),Hr(23,"ion-label",6),Da(24),hc(25,"translate"),jr(),Ur(26,"ion-icon",12),jr(),Hr(27,"ion-item"),Hr(28,"ion-label",6),Da(29),hc(30,"translate"),jr(),Hr(31,"ion-select",13),Xr("ngModelChange",function(e){return t.date.font=e})("ionChange",function(e){return t.select(e.detail.value)}),hc(32,"translate"),Fr(33,XF,2,4,"ion-select-option",14),jr(),jr(),jr(),Hr(34,"ion-footer",15),Hr(35,"ion-toolbar"),Hr(36,"ion-buttons",16),Hr(37,"ion-button",17),Xr("click",function(){return t.onSubmit()}),Hr(38,"ion-label"),Da(39),hc(40,"translate"),jr(),jr(),Hr(41,"ion-button",18),Xr("click",function(){return t.dismissModal()}),Hr(42,"ion-label"),Da(43),hc(44,"translate"),jr(),jr(),jr(),jr(),jr()}2&e&&(Vr("translucent",!0),no(3),Oa(pc(4,21,"lang.options")),no(7),ba(t.getFontLabel(t.date.font)),fa("color",t.date.color),no(1),Oa(mc(12,23,t.today,t.date.format,void 0,pc(13,28,"lang.langISO"))),no(5),Oa(pc(17,30,"lang.format")),no(2),Vr("ngModel",t.date.format),no(1),Vr("ngForOf",t.dateformats),no(2),Vr("ngModel",t.date.color),no(3),Oa(pc(25,32,"lang.color")),no(2),fa("color",t.date.color),no(3),Oa(pc(30,34,"lang.font")),no(2),Vr("ngModel",t.date.font)("interfaceOptions",rc(42,KF))("cancelText",pc(32,36,"lang.cancel")),no(2),Vr("ngForOf",t.datefonts),no(6),Oa(pc(40,38,"lang.save")),no(4),Oa(pc(44,40,"lang.cancel")))},directives:[Vx,vA,mA,Cx,Ax,Nx,Tx,Gx,Zx,uA,ox,rm,Rm,ju,Tf,Bx,hA],pipes:[$C,lh],styles:[".Arial{font-family:Arial,sans-serif} .Verdana{font-family:Verdana,sans-serif} .Helvetica{font-family:Helvetica,sans-serif} .Tahoma{font-family:Tahoma,sans-serif} .Times_New_Roman{font-family:Times New Roman,serif} .Courier_New{font-family:Courier New,monospace}"]}),e})();const eB=["menuTrigger"],tB=["test2"],nB=function(e,t){return{x:e,y:t}};function iB(e,t){if(1&e){const e=qr();Hr(0,"div",1,2),Xr("rzResizing",function(n){Lt(e);const i=t.index;return na().onResizingDate(n,i)})("rzStart",function(){return Lt(e),na().signaturesService.resizing=!0})("movingOffset",function(){return Lt(e),na().signaturesService.dragging=!0})("endOffset",function(n){Lt(e);const i=t.index;return na().moveDate(n,i)})("rzStop",function(n){Lt(e);const i=t.index,s=na();return s.onResizeDateStop(n,i),s.signaturesService.resizing=!1})("click",function(e){return e.stopPropagation()}),Hr(2,"ion-buttons",3),Hr(3,"ion-button",4),Ur(4,"ion-icon",5),jr(),jr(),Hr(5,"mat-menu",null,6),Hr(7,"button",7),Xr("click",function(){Lt(e);const n=t.index;return na().openDateSettings(n)}),Da(8),hc(9,"translate"),jr(),Hr(10,"button",7),Xr("click",function(){Lt(e);const n=t.index;return na().deleteDate(n)}),Da(11),hc(12,"translate"),jr(),jr(),dn(),Hr(13,"svg",8),Hr(14,"text",9),Da(15),hc(16,"date"),hc(17,"translate"),jr(),jr(),jr()}if(2&e){const e=t.$implicit,n=t.index,i=Br(6),s=na();fa("width",e.width,"%")("height",e.height,"%")("height",s.fix),Vr("id","dateDiv_"+n)("position",lc(34,nB,e.positionX*s.signaturesService.workingAreaWidth/100,e.positionY*s.signaturesService.workingAreaHeight/100))("ngDraggable",!s.signaturesService.resizing)("rzAspectRatio",!0)("preventDefaultEvent",!1)("bounds",s.bounds)("inBounds",!0),no(3),Vr("matMenuTriggerFor",i),no(5),Oa(pc(9,23,"lang.options")),no(3),Oa(pc(12,25,"lang.delete")),no(2),Vr("id","testSVG_"+n),no(1),fa("font-family",e.font)("fill",e.color),Ir("font-size",e.size),no(1),Oa(mc(16,27,s.today,e.format,void 0,pc(17,32,"lang.langISO")))}}let sB=(()=>{class e{constructor(e,t,n,i,s,o,r){this.translate=e,this.signaturesService=t,this.notificationService=n,this.localStorage=i,this.dialog=s,this.popoverController=o,this.modalController=r,this.fix="auto",this.today=new Date}ngOnInit(){}moveDate(e,t){const n=100*e.y/this.signaturesService.workingAreaHeight;this.signaturesService.datesContent[this.signaturesService.currentPage][t].positionX=100*e.x/this.signaturesService.workingAreaWidth,this.signaturesService.datesContent[this.signaturesService.currentPage][t].positionY=n,this.localStorage.save(this.signaturesService.mainDocumentId.toString(),JSON.stringify({date:this.signaturesService.datesContent,sign:this.signaturesService.signaturesContent,note:this.signaturesService.notesContent})),this.signaturesService.dragging=!1}onResizingDate(e,t){this.test2.nativeElement.style.height="auto"}onResizeDateStop(e,t){this.test2.nativeElement.style.height="auto",this.signaturesService.datesContent[this.signaturesService.currentPage][t].height=100*e.size.height/this.signaturesService.workingAreaHeight,this.signaturesService.datesContent[this.signaturesService.currentPage][t].width=100*e.size.width/this.signaturesService.workingAreaWidth}deleteDate(e){this.signaturesService.datesContent[this.signaturesService.currentPage].splice(e,1),this.localStorage.save(this.signaturesService.mainDocumentId.toString(),JSON.stringify({date:this.signaturesService.datesContent,sign:this.signaturesService.signaturesContent,note:this.signaturesService.notesContent}))}openDateSettings(e){return t=this,void 0,i=function*(){const t=yield this.modalController.create({component:JF,componentProps:{currentDate:this.signaturesService.datesContent[this.signaturesService.currentPage][e]}});yield t.present();const{data:n}=yield t.onWillDismiss();void 0!==n&&(this.signaturesService.datesContent[this.signaturesService.currentPage][e]=n)},new((n=void 0)||(n=Promise))(function(e,s){function o(e){try{a(i.next(e))}catch(t){s(t)}}function r(e){try{a(i.throw(e))}catch(t){s(t)}}function a(t){var i;t.done?e(t.value):(i=t.value,i instanceof n?i:new n(function(e){e(i)})).then(o,r)}a((i=i.apply(t,[])).next())});var t,n,i}}return e.\u0275fac=function(t){return new(t||e)(zr(GC),zr(sS),zr(ZC),zr(oS),zr(IM),zr(eC),zr(JA))},e.\u0275cmp=$e({type:e,selectors:[["app-document-date-list"]],viewQuery:function(e,t){if(1&e&&(Tc(eB,1),Tc(tB,1)),2&e){let e;Mc(e=Rc())&&(t.menuSign=e.first),Mc(e=Rc())&&(t.test2=e.first)}},inputs:{bounds:"bounds"},decls:1,vars:1,consts:[["class","test","ngResizable","",3,"id","position","width","height","ngDraggable","rzAspectRatio","preventDefaultEvent","bounds","inBounds","rzResizing","rzStart","movingOffset","endOffset","rzStop","click",4,"ngFor","ngForOf"],["ngResizable","",1,"test",3,"id","position","ngDraggable","rzAspectRatio","preventDefaultEvent","bounds","inBounds","rzResizing","rzStart","movingOffset","endOffset","rzStop","click"],["test2",""],[2,"position","absolute","top","-30px","right","0px"],["slot","icon-only","shape","round","color","secondary",3,"matMenuTriggerFor"],["name","ellipsis-vertical"],["menu","matMenu"],["mat-menu-item","",3,"click"],["viewBox","0 0 130 30","preserveAspectRatio","xMinYMin meet",3,"id"],["y","21"]],template:function(e,t){1&e&&Fr(0,iB,18,37,"div",0),2&e&&Vr("ngForOf",t.signaturesService.datesContent[t.signaturesService.currentPage])},directives:[ju,tP,Kk,Cx,Ax,BI,Nx,II,DI],pipes:[$C,lh],styles:[".action-item ion-radio{--color:transparent;--color-checked:transparent}.test[_ngcontent-%COMP%]{position:absolute;border:1px dashed grey;background:hsla(0,0%,100%,.6) none repeat scroll 0 0;background:none;font:sans-serif}svg[_ngcontent-%COMP%]{width:100%;height:100%;pointer-events:none}text[_ngcontent-%COMP%]{pointer-events:auto}svg.text[_ngcontent-%COMP%]{display:block;font-size:inherit}"]}),e})();var oB=function(e,t,n,i){return new(n||(n=Promise))(function(s,o){function r(e){try{l(i.next(e))}catch(t){o(t)}}function a(e){try{l(i.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?s(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(r,a)}l((i=i.apply(e,t||[])).next())})};function rB(e,t){if(1&e){const e=qr();Hr(0,"ion-item",6),Xr("click",function(){Lt(e);const n=t.$implicit;return na().loadVisaWorkflow(n)}),Hr(1,"ion-label"),Da(2),jr(),Hr(3,"ion-buttons",7),Hr(4,"ion-button",8),Xr("click",function(n){Lt(e);const i=t.$implicit,s=na();return n.stopPropagation(),s.removeModel(i)}),Ur(5,"ion-icon",9),jr(),jr(),jr()}if(2&e){const e=t.$implicit;no(2),Oa(e.title)}}let aB=(()=>{class e{constructor(e,t,n,i,s,o){this.http=e,this.translate=t,this.popoverController=n,this.alertController=i,this.notificationService=s,this.authService=o,this.currentWorkflow=[],this.visaWorkflowModels=[]}ngOnInit(){this.getVisaUserModels()}createModel(){return oB(this,void 0,void 0,function*(){const e=yield this.alertController.create({header:this.translate.instant("lang.newTemplate"),message:this.translate.instant("lang.newTemplateDesc"),inputs:[{name:"title",type:"text",placeholder:this.translate.instant("lang.label")+" *"}],buttons:[{text:this.translate.instant("lang.cancel"),role:"cancel",handler:()=>{}},{text:this.translate.instant("lang.validate"),handler:e=>""!==e.title?(this.saveModel(e.title),!0):(this.notificationService.error(this.translate.instant("lang.label")+" "+this.translate.instant("lang.mandatory")),!1)}]});yield e.present()})}saveModel(e){const t={title:e,items:this.currentWorkflow.map(e=>({userId:e.userId,mode:this.authService.getWorkflowMode(e.role),signatureMode:this.authService.getSignatureMode(e.role)}))};this.http.post("../rest/workflowTemplates",t).pipe(Ov(t=>{this.notificationService.success("lang.modelCreated"),this.visaWorkflowModels.push({id:t.id,title:e})}),fv(e=>(this.notificationService.handleErrors(e),lb(!1)))).subscribe()}removeModel(e){return oB(this,void 0,void 0,function*(){const t=yield this.alertController.create({header:this.translate.instant("lang.delete"),message:this.translate.instant("lang.deleteTemplate"),buttons:[{text:this.translate.instant("lang.no"),role:"cancel",handler:()=>{}},{text:this.translate.instant("lang.yes"),handler:()=>{this.http.delete("../rest/workflowTemplates/"+e.id).pipe(Ov(()=>{this.visaWorkflowModels=this.visaWorkflowModels.filter(t=>t.id!==e.id),this.notificationService.success(`Mod\xe8le ${e.title} supprim\xe9`)}),fv(e=>(this.notificationService.handleErrors(e),lb(!1)))).subscribe()}}]});yield t.present()})}getVisaUserModels(){this.http.get("../rest/workflowTemplates").pipe(Ov(e=>{this.visaWorkflowModels=e.workflowTemplates}),fv(e=>(this.notificationService.handleErrors(e),lb(!1)))).subscribe()}loadVisaWorkflow(e){this.http.get("../rest/workflowTemplates/"+e.id).pipe(Ov(e=>{const t=e.workflowTemplate.items.map(e=>({userId:e.userId,userDisplay:e.userLabel,role:"visa"===e.mode?"visa":e.signatureMode,processDate:null,current:!1,modes:["visa"].concat(e.userSignatureModes)}));this.popoverController.dismiss(t)}),fv(e=>(this.notificationService.handleErrors(e),lb(!1)))).subscribe()}}return e.\u0275fac=function(t){return new(t||e)(zr(Db),zr(GC),zr(eC),zr(QA),zr(ZC),zr(rS))},e.\u0275cmp=$e({type:e,selectors:[["app-visa-workflow-models"]],inputs:{currentWorkflow:"currentWorkflow"},decls:11,vars:8,consts:[["lines","none"],["color","secondary"],["button","",3,"click",4,"ngFor","ngForOf"],["button","",3,"disabled","click"],["color","primary","slot","start","name","add-circle-outline"],["color","primary"],["button","",3,"click"],["slot","end"],["fill","clear","slot","icon-only","shape","round","color","danger",3,"click"],["slot","icon-only","name","trash-outline"]],template:function(e,t){1&e&&(Hr(0,"ion-list",0),Hr(1,"ion-list-header"),Hr(2,"ion-label",1),Da(3),hc(4,"translate"),jr(),jr(),Fr(5,rB,6,1,"ion-item",2),Hr(6,"ion-item",3),Xr("click",function(){return t.createModel()}),Ur(7,"ion-icon",4),Hr(8,"ion-label",5),Da(9),hc(10,"translate"),jr(),jr(),jr()),2&e&&(no(3),Oa(pc(4,4,"lang.circuitModels")),no(2),Vr("ngForOf",t.visaWorkflowModels),no(1),Vr("disabled",0===t.currentWorkflow.length),no(3),Oa(pc(10,6,"lang.newTemplate")))},directives:[Qx,Xx,Zx,ju,Gx,Nx,Cx,Ax],pipes:[$C],styles:[""]}),e})();function lB(e,t){if(1&e){const e=qr();Hr(0,"ion-item"),Hr(1,"ion-checkbox",19),Xr("ionChange",function(t){Lt(e),na(2);const n=Br(3);return na().addUser(t.detail.value,n)}),jr(),Hr(2,"ion-label"),Da(3),jr(),Hr(4,"ion-note",13),Da(5),jr(),jr()}if(2&e){const e=t.$implicit;no(1),Vr("value",e),no(2),Ta("",e.firstname," ",e.lastname,""),no(2),Oa(e.email)}}function cB(e,t){if(1&e&&(Hr(0,"ion-list",17),Fr(1,lB,6,4,"ion-item",18),jr()),2&e){const e=na(2);no(1),Vr("ngForOf",e.visaUsersList)}}function dB(e,t){if(1&e){const e=qr();Wr(0),Hr(1,"ion-item",10),Hr(2,"ion-searchbar",11,12),Xr("ngModelChange",function(t){return Lt(e),na().visaUsersSearchVal=t})("ionChange",function(t){return Lt(e),na().getVisaUsers(t)})("ionFocus",function(){return Lt(e),na().visaUsersSearchVal=""}),hc(4,"translate"),jr(),Hr(5,"ion-buttons",13),Hr(6,"ion-button",14),Xr("click",function(t){return Lt(e),na().openVisaWorkflowModels(t)}),hc(7,"translate"),Ur(8,"ion-icon",15),jr(),jr(),jr(),Fr(9,cB,2,1,"ion-list",16),Gr()}if(2&e){const e=na();no(2),Vr("ngModel",e.visaUsersSearchVal)("placeholder",pc(4,4,"lang.searchUser")),no(4),Vr("title",pc(7,6,"lang.circuitModels")),no(3),Vr("ngIf",e.visaUsersList.length>0)}}function uB(e,t){1&e&&(Hr(0,"ion-list"),Hr(1,"ion-item",10),Hr(2,"ion-label",20),Da(3),hc(4,"translate"),jr(),jr(),jr()),2&e&&(no(3),Oa(pc(4,1,"lang.noUserInWorkflow")))}function hB(e,t){1&e&&(Hr(0,"p",31),Da(1),hc(2,"translate"),jr()),2&e&&(no(1),Ma(" ",pc(2,1,"lang.substituteMsg"),""))}function pB(e,t){if(1&e&&(Hr(0,"h2",32),Da(1),jr()),2&e){const e=na().$implicit;Vr("title",e.userDisplay),no(1),Oa(e.userDisplay)}}function gB(e,t){1&e&&(Hr(0,"h2",33),Da(1),hc(2,"translate"),jr()),2&e&&(Vr("title",na().$implicit.userDisplay),no(1),Ma(" ",pc(2,2,"lang.userDeleted"),""))}function fB(e,t){if(1&e&&(Hr(0,"ion-select-option",37),Da(1),hc(2,"translate"),jr()),2&e){const e=t.$implicit,n=na(2),i=n.index,s=n.$implicit,o=na();Vr("value",e)("disabled",!o.isValidRole(i,e,s.role)),no(1),Ma(" ",pc(2,3,"lang."+e+"User")," ")}}function mB(e,t){if(1&e){const e=qr();Hr(0,"p",34),Hr(1,"ion-select",35),Xr("ngModelChange",function(t){return Lt(e),na().$implicit.role=t}),hc(2,"translate"),Fr(3,fB,3,5,"ion-select-option",36),jr(),jr()}if(2&e){const e=na().$implicit,t=na();let n=null;no(1),fa("color",null==(n=t.getRole(e.role))?null:n.color),Vr("ngModel",e.role)("title",pc(2,7,"lang."+e.role+"User"))("interfaceOptions",t.customPopoverOptions)("disabled",!t.editMode),no(2),Vr("ngForOf",e.modes)}}function bB(e,t){if(1&e&&(Hr(0,"ion-note",41),Da(1),hc(2,"translate"),jr()),2&e){const e=na(2).$implicit;no(1),Ta(" ",pc(2,2,"lang."+e.mode+"ProcessInfo")," ",e.processDate," ")}}function vB(e,t){if(1&e&&(Hr(0,"ion-note",42),Da(1),hc(2,"translate"),jr()),2&e){const e=na(2).$implicit;no(1),Ta(" ",pc(2,2,"lang.refProcessInfo")," ",e.processDate," ")}}function yB(e,t){if(1&e&&(Hr(0,"ion-note",43),Da(1),hc(2,"translate"),jr()),2&e){const e=na(2).$implicit;no(1),Ta(" ",pc(2,2,"lang.stopProcessInfo")," ",e.processDate," ")}}function wB(e,t){if(1&e&&(Hr(0,"p",32),Fr(1,bB,3,4,"ion-note",38),Fr(2,vB,3,4,"ion-note",39),Fr(3,yB,3,4,"ion-note",40),jr()),2&e){const e=na().$implicit;Vr("title",e.processDate),no(1),Vr("ngIf","VAL"===e.status),no(1),Vr("ngIf","REF"===e.status),no(1),Vr("ngIf","STOP"===e.status)}}function _B(e,t){1&e&&Ur(0,"ion-icon",44)}function xB(e,t){if(1&e){const e=qr();Hr(0,"ion-button",45),Xr("click",function(t){Lt(e);const n=na().index,i=na();return t.stopPropagation(),i.removeUser(n)}),Ur(1,"ion-icon",46),jr()}}function AB(e,t){if(1&e&&(Hr(0,"ion-item",21),Hr(1,"ion-reorder",2),Ur(2,"ion-icon",22),hc(3,"translate"),jr(),Hr(4,"ion-avatar",23),Xr("click",function(e){return e.stopPropagation()}),Ur(5,"img",24),jr(),Hr(6,"ion-label"),Fr(7,hB,3,3,"p",25),Fr(8,pB,2,2,"h2",26),Fr(9,gB,3,4,"h2",27),Fr(10,mB,4,9,"p",28),Fr(11,wB,4,4,"p",26),jr(),Fr(12,_B,1,0,"ion-icon",29),Hr(13,"ion-buttons",13),Fr(14,xB,2,0,"ion-button",30),jr(),jr()),2&e){const e=t.$implicit,n=na();ma("current",e.current),no(2),Vr("title",pc(3,11,"lang.reorder")),no(3),Vr("src",e.userPicture,os),no(2),Vr("ngIf",e.current&&e.userId!==n.authService.user.id),no(1),Vr("ngIf",""!==e.userDisplay),no(1),Vr("ngIf",""===e.userDisplay),no(1),Vr("ngIf",null===e.processDate),no(1),Vr("ngIf",null!==e.processDate),no(1),Vr("ngIf",!n.editMode&&e.current),no(2),Vr("ngIf",n.editMode)}}let CB=(()=>{class e{constructor(e,t,n,i,s){this.http=e,this.signaturesService=t,this.authService=n,this.notificationService=i,this.popoverController=s,this.editMode=!1,this.visaWorkflow=[],this.loading=!1,this.visaUsersSearchVal="",this.visaUsersList=[],this.showVisaUsersList=!1,this.customPopoverOptions={header:"Roles"},this.roles=[]}ngOnInit(){this.visaWorkflow.forEach((e,t)=>{this.getAvatarUser(t)})}doReorder(e){this.canMoveUser(e)?this.visaWorkflow=e.detail.complete(this.visaWorkflow):(this.notificationService.error("lang.errorUserSignType"),e.detail.complete(!1))}canMoveUser(e){let t=this.array_move(this.visaWorkflow.slice(),e.detail.from,e.detail.to);return t=t.filter(e=>void 0!==e),this.isValidWorkflow(t)}isValidWorkflow(e=this.visaWorkflow){let t=!0;return e.forEach((n,i)=>{-1===["visa","stamp"].indexOf(n.role)&&e.filter((e,t)=>t>i&&"stamp"===e.role).length>0&&(t=!1)}),t}array_move(e,t,n){if(n>=e.length){let t=n-e.length+1;for(;t--;)e.push(void 0)}return e.splice(n,0,e.splice(t,1)[0]),e}getVisaUsers(e){this.showVisaUsersList=!0,""===e.detail.value?this.resetVisaUsersList():e.detail.value.length>=3&&this.http.get("../rest/autocomplete/users?search="+e.detail.value).pipe(Ov(e=>{this.visaUsersList=e}),fv(e=>(this.notificationService.handleErrors(e),lb(!1)))).subscribe()}addUser(e,t){this.resetVisaUsersList(),e.signatureModes.unshift("visa"),this.visaWorkflow.push({userId:e.id,userDisplay:`${e.firstname} ${e.lastname}`,role:e.signatureModes[e.signatureModes.length-1],processDate:null,current:!1,modes:e.signatureModes}),this.isValidWorkflow()||(this.visaWorkflow[this.visaWorkflow.length-1].role="visa"),this.getAvatarUser(this.visaWorkflow.length-1),this.visaUsersSearchVal="",t.setFocus()}removeUser(e){this.visaWorkflow.splice(e,1)}getAvatarUser(e){void 0===this.visaWorkflow[e].userPicture&&""!==this.visaWorkflow[e].userDisplay&&this.http.get("../rest/users/"+this.visaWorkflow[e].userId+"/picture").pipe(Ov(t=>{this.visaWorkflow[e].userPicture=t.picture}),fv(e=>(this.notificationService.handleErrors(e),lb(!1)))).subscribe()}resetVisaUsersList(){this.visaUsersList=[]}openVisaWorkflowModels(e){return t=this,void 0,i=function*(){const t=yield this.popoverController.create({component:aB,componentProps:{currentWorkflow:this.visaWorkflow},event:e});yield t.present(),t.onDidDismiss().then(e=>{"backdrop"!==e.role&&(this.visaWorkflow=this.visaWorkflow.concat(e.data),this.visaWorkflow.forEach((e,t)=>{this.getAvatarUser(t)}))})},new((n=void 0)||(n=Promise))(function(e,s){function o(e){try{a(i.next(e))}catch(t){s(t)}}function r(e){try{a(i.throw(e))}catch(t){s(t)}}function a(t){var i;t.done?e(t.value):(i=t.value,i instanceof n?i:new n(function(e){e(i)})).then(o,r)}a((i=i.apply(t,[])).next())});var t,n,i}getCurrentWorkflow(){return this.visaWorkflow}getRole(e){return this.authService.signatureRoles.filter(t=>t.id===e)[0]}loadWorkflow(e){this.visaWorkflow=e;const t=this.visaWorkflow.length;for(let n=0;n<t;n++)this.getAvatarUser(n)}isValidRole(e,t,n){return!(this.visaWorkflow.filter((t,n)=>n>e&&["stamp"].indexOf(t.role)>-1).length>0&&["visa","stamp"].indexOf(n)>-1&&-1===["visa","stamp"].indexOf(t)||this.visaWorkflow.filter((t,n)=>n<e&&-1===["visa","stamp"].indexOf(t.role)).length>0&&"stamp"===t)}setPositionsWorkfow(e,t){this.clearPositionsFromResource(e),t.length>0&&Object.keys(t).forEach(n=>{const i=Object.assign(Object.assign({},t[n]),{mainDocument:e.mainDocument});this.visaWorkflow[t[n].sequence].signaturePositions=this.visaWorkflow[t[n].sequence].signaturePositions.filter(t=>t.mainDocument!==e.mainDocument),this.visaWorkflow[t[n].sequence].signaturePositions.push(i)})}clearPositionsFromResource(e){this.visaWorkflow.forEach(t=>{t.signaturePositions=t.signaturePositions.filter(t=>t.mainDocument!==e.mainDocument)})}}return e.\u0275fac=function(t){return new(t||e)(zr(Db),zr(sS),zr(rS),zr(ZC),zr(eC))},e.\u0275cmp=$e({type:e,selectors:[["app-visa-workflow"]],viewQuery:function(e,t){if(1&e&&Tc(rA,1),2&e){let e;Mc(e=Rc())&&(t.reorderGroup=e.first)}},inputs:{editMode:"editMode",visaWorkflow:"visaWorkflow"},decls:13,vars:8,consts:[[3,"translucent"],["color","primary"],["slot","start"],["disabled",""],["slot","icon-only","name","list-outline"],[1,"ion-text-center"],[3,"click"],[4,"ngIf"],[3,"disabled","ionItemReorder"],["class","no-ripple",3,"current",4,"ngFor","ngForOf"],["lines","none"],[3,"ngModel","placeholder","ngModelChange","ionChange","ionFocus"],["searchInput",""],["slot","end"],["fill","clear","slot","icon-only","shape","round","color","primary",3,"title","click"],["slot","icon-only","name","albums-outline"],["style","position: absolute;z-index: 2;width: 100%;box-shadow: 0 4px 2px -2px gray;",4,"ngIf"],[2,"position","absolute","z-index","2","width","100%","box-shadow","0 4px 2px -2px gray"],[4,"ngFor","ngForOf"],["color","primary","slot","start",3,"value","ionChange"],["color","medium",1,"ion-text-center"],[1,"no-ripple"],["name","reorder-three",2,"font-size","30px",3,"title"],["slot","start",1,"avatar-user",2,"cursor","grab",3,"click"],[3,"src"],["class","secondary",4,"ngIf"],[3,"title",4,"ngIf"],["class","danger",3,"title",4,"ngIf"],["style","display: flex;justify-content: start;",4,"ngIf"],["color","success","slot","end","name","caret-back-outline",4,"ngIf"],["style","z-index: 9999","fill","clear","slot","icon-only","shape","round","color","danger",3,"click",4,"ngIf"],[1,"secondary"],[3,"title"],[1,"danger",3,"title"],[2,"display","flex","justify-content","start"],["interface","popover",2,"width","auto","max-width","100%","padding-left","0px",3,"ngModel","title","interfaceOptions","disabled","ngModelChange"],[3,"value","disabled",4,"ngFor","ngForOf"],[3,"value","disabled"],["class","valProcess",4,"ngIf"],["class","refProcess",4,"ngIf"],["class","stopProcess",4,"ngIf"],[1,"valProcess"],[1,"refProcess"],[1,"stopProcess"],["color","success","slot","end","name","caret-back-outline"],["fill","clear","slot","icon-only","shape","round","color","danger",2,"z-index","9999",3,"click"],["slot","icon-only","name","trash-outline"]],template:function(e,t){1&e&&(Hr(0,"ion-header",0),Hr(1,"ion-toolbar",1),Hr(2,"ion-buttons",2),Hr(3,"ion-button",3),Ur(4,"ion-icon",4),jr(),jr(),Hr(5,"ion-title",5),Da(6),hc(7,"translate"),jr(),jr(),jr(),Hr(8,"ion-content",6),Xr("click",function(){return t.resetVisaUsersList()}),Fr(9,dB,10,8,"ng-container",7),Fr(10,uB,5,3,"ion-list",7),Hr(11,"ion-reorder-group",8),Xr("ionItemReorder",function(e){return t.doReorder(e)}),Fr(12,AB,15,13,"ion-item",9),jr(),jr()),2&e&&(Vr("translucent",!0),no(6),Oa(pc(7,6,"lang.circuit")),no(3),Vr("ngIf",t.editMode),no(1),Vr("ngIf",0===t.visaWorkflow.length),no(1),Vr("disabled",!t.editMode),no(1),Vr("ngForOf",t.visaWorkflow))},directives:[Vx,vA,Cx,Ax,Nx,mA,Tx,Wu,rA,ju,Gx,lA,ax,rm,Rm,Qx,Dx,J_,Zx,tA,oA,wx,uA,ox,hA],pipes:[$C],styles:[".current[_ngcontent-%COMP%]{border-left:5px solid var(--ion-color-success)}.primary[_ngcontent-%COMP%]{color:var(--ion-color-primary)}.secondary[_ngcontent-%COMP%]{color:var(--ion-color-secondary)}.success[_ngcontent-%COMP%]{color:var(--ion-color-success)}.danger[_ngcontent-%COMP%]{color:var(--ion-color-danger)}.avatar-user[_ngcontent-%COMP%]{width:50px;height:50px;border:solid var(--ion-color-secondary)}ion-select[_ngcontent-%COMP%]{font-size:12px}.no-ripple[_ngcontent-%COMP%]{--ripple-color:transparent}.item-select-disabled[_ngcontent-%COMP%]   ion-label[_ngcontent-%COMP%], .select-disabled[_ngcontent-%COMP%]{opacity:1}.item-select-disabled[_ngcontent-%COMP%]   ion-select[_ngcontent-%COMP%]::part(icon){display:none!important}.valProcess[_ngcontent-%COMP%]{color:var(--ion-color-success)}.refProcess[_ngcontent-%COMP%], .stopProcess[_ngcontent-%COMP%], .valProcess[_ngcontent-%COMP%]{display:flex;justify-content:flex-start;font-size:12px;text-align:right;padding-top:10px;padding-bottom:10px}.refProcess[_ngcontent-%COMP%], .stopProcess[_ngcontent-%COMP%]{color:var(--ion-color-danger)}"]}),e})();function SB(e,t){if(1&e){const e=qr();Hr(0,"ion-item",9),Xr("click",function(){Lt(e);const n=t.$implicit;return na().goTo(n.id)}),Hr(1,"div"),Hr(2,"ion-label",10),Da(3),jr(),Hr(4,"ion-label",11),Da(5),hc(6,"shorten"),jr(),jr(),Ur(7,"ion-icon",12),jr()}if(2&e){const e=t.$implicit;no(3),Oa(e.reference),no(2),Oa(fc(6,2,e.title,50,"..."))}}let kB=(()=>{class e{constructor(e){this.router=e}ngOnInit(){}goTo(e){this.router.navigate(["/documents/"+e])}}return e.\u0275fac=function(t){return new(t||e)(zr(r_))},e.\u0275cmp=$e({type:e,selectors:[["app-associated-documents"]],inputs:{associatedDocuments:"associatedDocuments"},decls:14,vars:6,consts:[[3,"translucent"],["color","primary"],["slot","start"],["disabled",""],["slot","icon-only","name","link-outline"],[1,"ion-text-center"],[1,"secondary"],[2,"display","flex","flex-direction","column","height","100%"],["class","doc-item",3,"click",4,"ngFor","ngForOf"],[1,"doc-item",3,"click"],[1,"sub-label"],["color","primary",1,"ion-text-wrap"],["slot","end","color","medium","name","arrow-forward-outline"]],template:function(e,t){1&e&&(Hr(0,"ion-header",0),Hr(1,"ion-toolbar",1),Hr(2,"ion-buttons",2),Hr(3,"ion-button",3),Ur(4,"ion-icon",4),jr(),jr(),Hr(5,"ion-title",5),Hr(6,"b",6),Da(7),jr(),Da(8),hc(9,"translate"),jr(),jr(),jr(),Hr(10,"ion-content"),Hr(11,"div",7),Hr(12,"ion-list"),Fr(13,SB,8,6,"ion-item",8),jr(),jr(),jr()),2&e&&(Vr("translucent",!0),no(7),Oa(null==t.associatedDocuments?null:t.associatedDocuments.length),no(1),Ma("\xa0",pc(9,4,"lang.associatedDocuments"),""),no(5),Vr("ngForOf",t.associatedDocuments))},directives:[Vx,vA,Cx,Ax,Nx,mA,Tx,Qx,ju,Gx,Zx],pipes:[$C,lP],styles:[".mat-list-item[_ngcontent-%COMP%]{height:auto!important;text-align:center}.mat-card[_ngcontent-%COMP%]{box-shadow:none;border:1px solid #e0e0e0}.mat-icon[_ngcontent-%COMP%]{height:auto}img[_ngcontent-%COMP%]{pointer-events:none}.secondary[_ngcontent-%COMP%]{color:var(--ion-color-secondary)}.doc-item[_ngcontent-%COMP%]{--inner-padding-bottom:10px;--inner-padding-top:10px;cursor:pointer}.sub-label[_ngcontent-%COMP%]{font-size:11px;--color:var(--ion-color-medium)}"]}),e})();function PB(e,t){1&e&&(Hr(0,"ion-card"),Hr(1,"ion-item",13),Ur(2,"ion-icon",14),Hr(3,"ion-label"),Da(4),hc(5,"translate"),jr(),jr(),jr()),2&e&&(no(4),Oa(pc(5,1,"lang.docIsInMailGroup")))}function EB(e,t){if(1&e&&(Hr(0,"ion-item",8),Hr(1,"ion-label",9),Da(2),hc(3,"translate"),jr(),Ur(4,"ion-input",10),jr()),2&e){const e=na();Vr("title",e.mainDocument.description),no(2),Oa(pc(3,3,"lang.description")),no(2),Vr("value",e.mainDocument.description)}}function DB(e,t){if(1&e&&(Hr(0,"ion-item",8),Hr(1,"ion-label",9),Da(2),hc(3,"translate"),jr(),Ur(4,"ion-input",10),jr()),2&e){const e=na();Vr("title",e.mainDocument.deadline),no(2),Oa(pc(3,3,"lang.processingDeadline")),no(2),Vr("value",e.mainDocument.deadline)}}function OB(e,t){if(1&e&&(Hr(0,"ion-item"),Hr(1,"ion-label",9),Da(2),hc(3,"translate"),jr(),Ur(4,"ion-input",10),jr()),2&e){const e=t.$implicit;no(2),Oa(pc(3,2,e.label)),no(2),Vr("value",e.value)}}let MB=(()=>{class e{constructor(e,t){this.signaturesService=e,this.functionsService=t,this.loading=!1}ngOnInit(){}}return e.\u0275fac=function(t){return new(t||e)(zr(sS),zr(LF))},e.\u0275cmp=$e({type:e,selectors:[["app-main-document-detail"]],inputs:{mainDocument:"mainDocument"},decls:29,vars:23,consts:[[3,"translucent"],["color","primary"],["slot","start"],["disabled",""],["slot","icon-only","name","information-circle"],[1,"ion-text-center"],[4,"ngIf"],["lines","full",1,"ion-no-margin"],[3,"title"],["color","secondary","position","floating"],["readonly","",3,"value"],[3,"title",4,"ngIf"],[4,"ngFor","ngForOf"],["color","danger"],["name","alert-circle","slot","start"]],template:function(e,t){1&e&&(Hr(0,"ion-header",0),Hr(1,"ion-toolbar",1),Hr(2,"ion-buttons",2),Hr(3,"ion-button",3),Ur(4,"ion-icon",4),jr(),jr(),Hr(5,"ion-title",5),Da(6),hc(7,"translate"),jr(),jr(),jr(),Hr(8,"ion-content"),Fr(9,PB,6,3,"ion-card",6),Hr(10,"ion-list",7),Hr(11,"ion-item",8),Hr(12,"ion-label",9),Da(13),hc(14,"translate"),jr(),Ur(15,"ion-input",10),jr(),Fr(16,EB,5,5,"ion-item",11),Fr(17,DB,5,5,"ion-item",11),Hr(18,"ion-item",8),Hr(19,"ion-label",9),Da(20),hc(21,"translate"),jr(),Ur(22,"ion-input",10),jr(),Hr(23,"ion-item",8),Hr(24,"ion-label",9),Da(25),hc(26,"translate"),jr(),Ur(27,"ion-input",10),jr(),Fr(28,OB,5,4,"ion-item",12),jr(),jr()),2&e&&(Vr("translucent",!0),no(6),Oa(pc(7,15,"lang.informations")),no(3),Vr("ngIf",!t.functionsService.empty(t.mainDocument.mailingId)),no(2),Vr("title",t.mainDocument.sender),no(2),Oa(pc(14,17,"lang.emittedBy")),no(2),Vr("value",t.mainDocument.sender),no(1),Vr("ngIf",null!=t.mainDocument.description),no(1),Vr("ngIf",null!=t.mainDocument.deadline),no(1),Vr("title",t.mainDocument.reference),no(2),Oa(pc(21,19,"lang.reference")),no(2),Vr("value",t.mainDocument.reference),no(1),Vr("title",t.mainDocument.title),no(2),Oa(pc(26,21,"lang.subject")),no(2),Vr("value",t.mainDocument.title),no(1),Vr("ngForOf",t.mainDocument.metadata))},directives:[Vx,vA,Cx,Ax,Nx,mA,Tx,Wu,Qx,Gx,Zx,Wx,ax,ju,Sx],pipes:[$C],styles:[".mat-list-item[_ngcontent-%COMP%]{height:auto!important;text-align:center}.mat-card[_ngcontent-%COMP%]{box-shadow:none;border:1px solid #e0e0e0}.mat-icon[_ngcontent-%COMP%]{height:auto}.current[_ngcontent-%COMP%]{box-shadow:0 0 20px 0 #656565}.panel-header[_ngcontent-%COMP%]{box-shadow:0 0 10px 0 #656565;color:#fff;background:#135f7f;height:65px;justify-content:center;font-size:20px;align-items:center}.panel-content[_ngcontent-%COMP%], .panel-header[_ngcontent-%COMP%]{display:flex;position:relative}.panel-content[_ngcontent-%COMP%]{flex-direction:column;height:100%;overflow:hidden}.closePanel[_ngcontent-%COMP%]{position:absolute;left:0;font-size:24px}.panel-content[_ngcontent-%COMP%]    .mat-form-field-label{color:#f99830}.panel-content[_ngcontent-%COMP%]    .mat-input-element:disabled{color:#135f7f}"]}),e})();var TB=function(e,t,n,i){return new(n||(n=Promise))(function(s,o){function r(e){try{l(i.next(e))}catch(t){o(t)}}function a(e){try{l(i.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?s(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(r,a)}l((i=i.apply(e,t||[])).next())})};const IB=["mainContent"],RB=["img"],LB=["snav"],FB=["dragElem"],BB=["appDocumentNotePad"],zB=["appDocumentList"],VB=["rightContent"],NB=["pagesList"];function HB(e,t){if(1&e){const e=qr();Hr(0,"ion-segment-button",20),Xr("click",function(){return Lt(e),na(2).openAssociatedDocuments()}),Hr(1,"ion-label",11),Da(2),hc(3,"ucfirst"),hc(4,"translate"),jr(),Ur(5,"ion-icon",21),Hr(6,"ion-badge",15),Da(7),jr(),jr()}if(2&e){const e=na(2);no(2),Oa(pc(3,2,pc(4,4,"lang.associatedDocuments"))),no(5),Ma(" ",e.mainDocument.linkedDocuments.length," ")}}function jB(e,t){if(1&e){const e=qr();Hr(0,"ion-buttons",22),Hr(1,"ion-button",23),Xr("click",function(t){return Lt(e),na(2).openAction(t)}),Ur(2,"ion-icon",24),jr(),jr()}}function UB(e,t){if(1&e){const e=qr();Hr(0,"ion-header",6),Hr(1,"ion-toolbar",7),Hr(2,"ion-buttons",8),Ur(3,"ion-menu-button"),jr(),Hr(4,"ion-segment",9),Xr("ionChange",function(t){return Lt(e),na().signaturesService.currentToobal=t.detail.value}),Hr(5,"ion-segment-button",10),Xr("click",function(){return Lt(e),na().openMainDocumentDetail()}),Hr(6,"ion-label",11),Da(7),hc(8,"translate"),jr(),Ur(9,"ion-icon",12),jr(),Hr(10,"ion-segment-button",13),Xr("click",function(){return Lt(e),na().openDocumentList()}),Hr(11,"ion-label",11),Da(12),hc(13,"ucfirst"),hc(14,"translate"),jr(),Ur(15,"ion-icon",14),Hr(16,"ion-badge",15),Da(17),jr(),jr(),Fr(18,HB,8,6,"ion-segment-button",16),Hr(19,"ion-segment-button",17),Xr("click",function(){return Lt(e),na().openVisaWorkflow()}),Hr(20,"ion-label",11),Da(21),hc(22,"translate"),jr(),Ur(23,"ion-icon",18),Hr(24,"ion-badge",15),Da(25),jr(),jr(),jr(),Fr(26,jB,3,0,"ion-buttons",19),jr(),jr()}if(2&e){const e=na();Vr("translucent",!0),no(4),Vr("value",e.signaturesService.currentToobal),no(3),Oa(pc(8,9,"lang.informations")),no(5),Oa(pc(13,11,pc(14,13,"lang.attachedElements"))),no(5),Ma(" ",e.mainDocument.attachments.length+1," "),no(1),Vr("ngIf",void 0!==e.mainDocument.linkedDocuments&&e.mainDocument.linkedDocuments.length>0),no(3),Oa(pc(22,15,"lang.circuit")),no(4),Ma(" ",e.mainDocument.workflow.length," "),no(1),Vr("ngIf",!e.detailMode)}}function WB(e,t){1&e&&(Hr(0,"ion-toolbar",25),Hr(1,"ion-label",26),Da(2),hc(3,"translate"),jr(),jr()),2&e&&(no(2),Oa(pc(3,1,"lang.substitutionInfo")))}function GB(e,t){1&e&&(Hr(0,"ion-toolbar",27),Hr(1,"ion-label",26),Da(2),hc(3,"translate"),jr(),jr()),2&e&&(no(2),Oa(pc(3,1,"lang.convertingDocument")))}function $B(e,t){if(1&e){const e=qr();Hr(0,"ion-fab-button",40),Xr("movingOffset",function(){return Lt(e),na(3).signaturesService.dragging=!0})("endOffset",function(){return Lt(e),na(3).signaturesService.dragging=!1})("click",function(){return Lt(e),na(3).expandedNote=!0}),hc(1,"translate"),Ur(2,"ion-icon",41),jr()}if(2&e){na(2);const e=Br(7),t=na();Vr("bounds",e)("inBounds",!0)("title",pc(1,4,"lang.expandNote"))("disabled",t.signaturesService.dragging)}}function qB(e,t){if(1&e&&(Wr(0),Hr(1,"div",48),Da(2),jr(),Hr(3,"div",49),Da(4),jr(),Gr()),2&e){const e=na(4);no(2),Ta(" ",e.mainDocument.notes.creator," (",e.mainDocument.notes.creationDate,") : "),no(2),Ma(" ",e.mainDocument.notes.value," ")}}function YB(e,t){if(1&e&&(Hr(0,"div"),Hr(1,"div",48),Da(2),jr(),Hr(3,"div",49),Da(4),jr(),jr()),2&e){const e=na().$implicit;no(2),Ta(" ",e.userDisplay," (",e.processDate,") : "),no(2),Ma(" ",e.note," ")}}function ZB(e,t){if(1&e&&(Wr(0),Fr(1,YB,5,3,"div",3),Gr()),2&e){const e=t.$implicit;no(1),Vr("ngIf",e.note)}}function QB(e,t){if(1&e){const e=qr();Hr(0,"div",42),Xr("movingOffset",function(){return Lt(e),na(3).signaturesService.dragging=!0})("endOffset",function(){return Lt(e),na(3).signaturesService.dragging=!1}),Hr(1,"div",43),Ur(2,"i",44),Hr(3,"span",45),Da(4),hc(5,"translate"),jr(),Hr(6,"i",46),Xr("click",function(){return Lt(e),na(3).expandedNote=!1}),hc(7,"translate"),jr(),jr(),Fr(8,qB,5,3,"ng-container",3),Fr(9,ZB,2,1,"ng-container",47),jr()}if(2&e){na(2);const e=Br(7),t=na();Vr("bounds",e)("inBounds",!0),no(4),Oa(pc(5,6,"lang.note")),no(2),Vr("title",pc(7,8,"lang.collapseNote")),no(2),Vr("ngIf",null!=t.mainDocument.notes),no(1),Vr("ngForOf",t.mainDocument.workflow)}}function XB(e,t){if(1&e&&(Wr(0),Fr(1,$B,3,6,"ion-fab-button",38),Fr(2,QB,10,10,"div",39),Gr()),2&e){const e=na(2);no(1),Vr("ngIf",!e.expandedNote),no(1),Vr("ngIf",e.expandedNote)}}function KB(e,t){1&e&&Ur(0,"app-document-note-list")}function JB(e,t){1&e&&Ur(0,"app-document-sign-list",50),2&e&&(na(),Vr("bounds",Br(7)))}function ez(e,t){1&e&&Ur(0,"app-document-date-list",50),2&e&&(na(),Vr("bounds",Br(7)))}function tz(e,t){if(1&e){const e=qr();Hr(0,"ion-img",51,52),Xr("ionImgDidLoad",function(t){return Lt(e),na(2).imageLoaded(t)}),jr()}if(2&e){const e=na(2);fa("width",e.signaturesService.workingAreaWidth,"px")("height",e.signaturesService.workingAreaHeight,"px"),Vr("src",e.docList[e.currentDoc].imgContent[e.pageNum])}}function nz(e,t){if(1&e&&(Hr(0,"ion-select-option",59),Da(1),jr()),2&e){const e=t.index,n=na(3);Vr("value",e+1)("disabled",e+1===n.pageNum),no(1),Oa(e+1)}}const iz=function(e){return{cssClass:e}};function sz(e,t){if(1&e){const e=qr();Hr(0,"section",53),Hr(1,"div",54),Da(2),jr(),Hr(3,"div",55),Xr("click",function(t){return Lt(e),na(2).openSelect(t)}),Da(4),hc(5,"translate"),jr(),Hr(6,"ion-select",56,57),Xr("ngModelChange",function(t){return Lt(e),na(2).pageNum=t})("ionChange",function(t){return Lt(e),na(2).goTo(t.target.value)}),Fr(8,nz,2,3,"ion-select-option",58),jr(),jr()}if(2&e){const e=na(2);no(2),Ma(" ",e.docList[e.currentDoc].title," "),no(2),Ia("",pc(5,7,"lang.page")," ",e.pageNum," / ",e.totalPages,""),no(2),Vr("ngModel",e.pageNum)("interfaceOptions",ac(9,iz,e.totalPages>10?"popover-class":"custom-popover-class")),no(2),Vr("ngForOf",e.pagesArray(e.totalPages))}}function oz(e,t){1&e&&(Hr(0,"ion-item",60),Ur(1,"ion-icon",61),Hr(2,"ion-label"),Da(3),hc(4,"translate"),jr(),jr()),2&e&&(no(3),Oa(pc(4,1,"lang.certifiedDocument")))}function rz(e,t){if(1&e){const e=qr();Hr(0,"ion-fab-button",64),Xr("click",function(){return Lt(e),na(3).prevPage()}),Ur(1,"ion-icon",65),jr()}}function az(e,t){if(1&e){const e=qr();Hr(0,"ion-fab-button",66),Xr("click",function(){return Lt(e),na(3).nextPage()}),Ur(1,"ion-icon",67),jr()}}function lz(e,t){if(1&e&&(Wr(0),Fr(1,rz,2,0,"ion-fab-button",62),Fr(2,az,2,0,"ion-fab-button",63),Gr()),2&e){const e=na(2);no(1),Vr("ngIf",e.pageNum>1&&!e.loadingImage),no(1),Vr("ngIf",e.pageNum<e.totalPages&&!e.loadingImage)}}function cz(e,t){if(1&e){const e=qr();Hr(0,"ion-content",null,28),Fr(2,XB,3,2,"ng-container",3),Hr(3,"div",29),Hr(4,"drag-scroll",30,31),Xr("click",function(t){Lt(e);const n=na();return 0==n.currentDoc&&!n.detailMode&&n.openAction(t)}),Hr(6,"div",32,33),Fr(8,KB,1,0,"app-document-note-list",3),Fr(9,JB,1,1,"app-document-sign-list",34),Fr(10,ez,1,1,"app-document-date-list",34),Fr(11,tz,2,5,"ion-img",35),jr(),jr(),jr(),Fr(12,sz,9,11,"section",36),Fr(13,oz,5,3,"ion-item",37),Fr(14,lz,3,2,"ng-container",3),jr()}if(2&e){const e=na();no(2),Vr("ngIf",null!=e.mainDocument.notes||e.hasWorkflowNotes),no(2),fa("max-width",e.signaturesService.workingAreaWidth,"px"),Vr("drag-scroll-disabled",(e.signaturesService.dragging||e.signaturesService.resizing)&&e.signaturesService.mobileMode)("drag-disabled",(e.signaturesService.dragging||e.signaturesService.resizing)&&!e.signaturesService.mobileMode),no(2),fa("width",e.signaturesService.workingAreaWidth,"px")("height",e.signaturesService.workingAreaHeight,"px"),no(2),Vr("ngIf",0==e.currentDoc&&!e.loadingImage),no(1),Vr("ngIf",0===e.currentDoc&&!e.loadingImage&&e.signaturesService.signaturesContent[e.pageNum]),no(1),Vr("ngIf",0===e.currentDoc&&!e.loadingImage&&e.signaturesService.datesContent[e.pageNum]),no(1),Vr("ngIf",void 0!==e.docList[e.currentDoc]&&!e.functionsService.empty(e.docList[e.currentDoc].imgContent[e.pageNum])),no(1),Vr("ngIf",!e.signaturesService.dragging&&!e.signaturesService.resizing&&e.docList[e.currentDoc]),no(1),Vr("ngIf",e.mainDocument.isCertified),no(1),Vr("ngIf",!e.signaturesService.dragging&&!e.signaturesService.resizing&&!e.loadingImage)}}function dz(e,t){if(1&e&&Ur(0,"ion-icon",72),2&e){const e=na().$implicit;Vr("slot","start")("name",e.logo)}}function uz(e,t){if(1&e){const e=qr();Hr(0,"ion-button",70),Xr("click",function(){Lt(e);const n=t.$implicit;return na(2).launchEvent(n)}),Fr(1,dz,1,2,"ion-icon",71),Hr(2,"ion-label",26),Da(3),hc(4,"translate"),jr(),jr()}if(2&e){const e=t.$implicit;Vr("disabled","CONVERTING"===na(2).mainDocument.status)("color",e.color),no(1),Vr("ngIf",""!==e.logo),no(2),Oa(pc(4,4,e.label))}}function hz(e,t){if(1&e&&(Hr(0,"ion-footer",68),Fr(1,uz,5,6,"ion-button",69),jr()),2&e){const e=na();no(1),Vr("ngForOf",e.actionsList)}}function pz(e,t){1&e&&Ur(0,"app-visa-workflow",77),2&e&&Vr("visaWorkflow",na(2).mainDocument.workflow)}function gz(e,t){if(1&e){const e=qr();Hr(0,"app-document-list",78,79),Xr("triggerEvent",function(t){return Lt(e),na(2).loadDoc(t)}),jr()}if(2&e){const e=na(2);Vr("currentDocId",e.currentDoc)("docList",e.docList)}}function fz(e,t){1&e&&Ur(0,"app-associated-documents",80,81),2&e&&Vr("associatedDocuments",na(2).mainDocument.linkedDocuments)}function mz(e,t){1&e&&Ur(0,"app-main-document-detail",82,83),2&e&&Vr("mainDocument",na(2).mainDocument)}function bz(e,t){if(1&e&&(Fr(0,pz,1,1,"app-visa-workflow",73),Fr(1,gz,2,2,"app-document-list",74),Fr(2,fz,2,1,"app-associated-documents",75),Fr(3,mz,2,1,"app-main-document-detail",76)),2&e){const e=na();Vr("ngIf","visaWorkflow"==e.signaturesService.currentToobal),no(1),Vr("ngIf","documentList"==e.signaturesService.currentToobal),no(1),Vr("ngIf","associatedDocuments"==e.signaturesService.currentToobal),no(1),Vr("ngIf","mainDocumentDetail"==e.signaturesService.currentToobal)}}let vz=(()=>{class e{constructor(e,t,n,i,s,o,r,a,l,c,d,u,h,p,g,f,m,b,v,y,w,_,x){this.translate=e,this.router=t,this.route=n,this.http=i,this.signaturesService=s,this.notificationService=o,this.cookieService=r,this.sanitizer=a,this.dialog=l,this.bottomSheet=c,this.authService=d,this.localStorage=u,this.menu=h,this.actionSheetController=p,this.loadingController=g,this.viewContainerRef=f,this.modalController=m,this.pdfViewerService=b,this.alertController=v,this.signatureMethodService=y,this.navCtrl=w,this.functionsService=_,this.actionsService=x,this.posX=0,this.posY=0,this.enterApp=!0,this.detailMode=!1,this.pageNum=1,this.signaturesContent=[],this.currentDoc=0,this.docList=[],this.actionsList=[{id:2,label:"lang.reject",color:"danger",logo:"thumbs-down-outline",event:"refuseDocument"},{id:3,label:"lang.signatures",color:"",logo:"",event:"openSignatures"},{id:1,label:"lang.validate",color:"success",logo:"thumbs-up-outline",event:"validateDocument"}],this.freezeSidenavClose=!1,this.startX=0,this.startY=0,this.widthDoc="100%",this.resetDragPos=!1,this.mainDocument={id:0,status,attachments:[],workflow:[]},this.loadingUI=!1,this.expandedNote=!0,this.hasWorkflowNotes=!1,this.currentTool="info",this.load=null,this.dragging=!1,this.resizing=!1,this.pdfname=null,this.loadingdocument=!0,this.loadingpdf=!1,this.loadingImage=!0,this.fileContent="",this.draggable=!1}imageLoaded(e){this.getImageDimensions(!0),this.load.dismiss(),this.menu.enable(!0,"right-menu"),this.loadingImage=!1,document.getElementsByClassName("drag-scroll-content")[0].scrollTop=0}getImageDimensions(e=!1){const t=new Image;t.onload=t=>{this.signaturesService.workingAreaWidth=t.target.naturalWidth,this.signaturesService.workingAreaHeight=t.target.naturalHeight,e&&this.getAreaDimension()},t.src=this.docList[this.currentDoc].imgContent[this.pageNum]}getAreaDimension(){const e=100*this.mainContent.el.offsetWidth/this.signaturesService.workingAreaWidth;this.signaturesService.workingAreaWidth=e*this.signaturesService.workingAreaWidth/100,this.signaturesService.workingAreaHeight=e*this.signaturesService.workingAreaHeight/100}openAction(e){return TB(this,void 0,void 0,function*(){this.posX=e.clientX,this.posY=e.clientY;const t=[];this.checkEmptyNote()||t.push({text:this.translate.instant("lang.cancelPreviousNote"),icon:"arrow-undo-outline",handler:()=>{this.undoTag()}}),this.signaturesService.stampLock||t.push({text:this.translate.instant("lang.affixSignature"),icon:"ribbon-outline",handler:()=>{this.openSignatures()}}),t.push({text:this.translate.instant("lang.annotateDocument"),icon:"receipt-outline",handler:()=>{this.openNoteEditor()}}),this.checkEmptiness()||t.push({text:this.translate.instant("lang.deleteAll"),icon:"color-wand-outline",handler:()=>{this.removeTags()}});const n=yield this.actionSheetController.create({header:"Actions",cssClass:"my-custom-class",buttons:t});yield n.present()})}openSignatures(){return TB(this,void 0,void 0,function*(){const e=yield this.modalController.create({component:bF,cssClass:"my-custom-class",componentProps:{currentWorflow:this.mainDocument.workflow.filter(e=>!0===e.current)[0],content:this.fileContent}});yield e.present();const{data:t}=yield e.onWillDismiss();this.dragging=!1,void 0!==t&&("success"===t||void 0!==t.redirectPage&&this.goTo(t.redirectPage))})}openNoteEditor(){return TB(this,void 0,void 0,function*(){const e=yield this.modalController.create({component:SF,cssClass:"fullscreen",componentProps:{precentScrollLeft:this.posX,precentScrollTop:this.posY,content:this.docList[this.currentDoc].imgContent[this.pageNum]}});yield e.present(),yield e.onWillDismiss()})}scrollToElem(){const e=this.signaturesService.signaturesContent[this.pageNum][this.signaturesService.signaturesContent[this.pageNum].length-1].positionY-75-($("#myBounds")[0].getBoundingClientRect().top-70)-$(window).height();document.getElementsByClassName("drag-scroll-content")[0].scrollTo(1e3,-e)}ionViewWillEnter(){this.signaturesService.initTemplate(this.rightContent,this.viewContainerRef,"rightContent")}ngOnInit(){this.menu.enable(!1,"right-menu"),this.menu.enable(!0,"left-menu"),this.route.params.subscribe(e=>{void 0!==e.id&&this.loadingController.create({message:this.translate.instant("lang.loadingDocument"),spinner:"dots"}).then(t=>{this.load=t,this.load.present(),this.http.get("../rest/documents/"+e.id).pipe(Ov(e=>{this.mainDocument=e.document,this.mainDocument.workflow=this.mainDocument.workflow.map(e=>(e.note&&(this.hasWorkflowNotes=!0),e.userSignatureModes.unshift("visa"),Object.assign(Object.assign({},e),{role:"visa"===e.mode?"visa":e.signatureMode,modes:e.userSignatureModes}))),this.totalPages=this.mainDocument.pages,this.signaturesService.mainDocumentId=this.mainDocument.id,this.signaturesService.totalPage=this.mainDocument.pages,this.menu.enable(!0,"right-menu"),this.initDoc();const t=this.mainDocument.workflow.filter(e=>!0===e.current);this.mainDocument.isCertified=this.mainDocument.workflow.filter(e=>"REF"!==e.status&&"STOP"!==e.status&&"sign"===e.mode&&"stamp"!==e.signatureMode&&null!==e.processDate).length>0,0===t.length||this.mainDocument.readOnly?(this.actionsList=[{id:4,label:"lang.back",color:"medium",logo:"chevron-back-outline",event:"back"}],this.detailMode=!0):(this.signaturesService.stampLock=this.mainDocument.isCertified&&("stamp"===t[0].signatureMode&&"sign"===t[0].mode||"visa"===t[0].mode),t[0].userId!==this.authService.user.id?this.http.get("../rest/users/"+t[0].userId+"/signatures").subscribe(e=>{this.signaturesService.signaturesListSubstituted=e.signatures}):this.signaturesService.signaturesListSubstituted=[],t[0].datePositions.length>0&&this.functionsService.empty(this.signaturesService.datesContent)&&t[0].datePositions.forEach(e=>{this.signaturesService.datesContent[e.page]||(this.signaturesService.datesContent[e.page]=[]),this.signaturesService.datesContent[e.page][0]={width:e.width,height:e.height,positionX:e.positionX,positionY:e.positionY,font:e.font,size:e.size,color:e.color,format:e.format}})),this.docList.push({id:this.mainDocument.id,title:this.mainDocument.title,pages:this.mainDocument.pages,imgContent:[],imgUrl:"../rest/documents/"+this.mainDocument.id+"/thumbnails"}),this.mainDocument.attachments.forEach(e=>{this.docList.push({id:e.id,title:e.title,pages:e.pages,imgContent:[],imgUrl:"../rest/attachments/"+e.id+"/thumbnails"})}),this.menu.enable(!0,"right-menu"),this.renderImage(),this.loadingdocument=!1}),fv(e=>(console.log("error",e),setTimeout(()=>{this.load.dismiss()},200),this.notificationService.handleErrors(e),this.router.navigate(["/home"]),lb(!1)))).subscribe()})})}renderPdf(){this.http.get("../rest/documents/"+this.docList[this.currentDoc].id+"/content").subscribe(e=>{this.pdfname="data:application/pdf;base64,"+e.encodedDocument,this.loadingpdf=!0})}onPagesLoaded(e){return TB(this,void 0,void 0,function*(){this.totalPages=e.pagesCount,this.exportAsImage()})}exportAsImage(){return TB(this,void 0,void 0,function*(){const e=yield this.pdfViewerService.getPageAsImage(this.pageNum,{width:1e3});this.docList[this.currentDoc].imgContent[this.pageNum]=e,this.loadingpdf=!1,this.load.dismiss()})}renderImage(){void 0===this.docList[this.currentDoc].imgContent[this.pageNum]&&(0===this.currentDoc?this.http.get("../rest/documents/"+this.docList[this.currentDoc].id+"/thumbnails/"+this.pageNum).pipe(Ov(e=>{this.docList[this.currentDoc].imgContent[this.pageNum]="data:image/png;base64,"+e.fileContent,this.fileContent=e.fileContent}),fv(e=>(this.load.dismiss(),this.notificationService.handleErrors(e),this.router.navigate(["/home"]),lb(!1)))).subscribe():this.http.get("../rest/attachments/"+this.docList[this.currentDoc].id+"/thumbnails/"+this.pageNum).pipe(Ov(e=>{this.docList[this.currentDoc].imgContent[this.pageNum]="data:image/png;base64,"+e.fileContent}),fv(e=>(this.load.dismiss(),this.notificationService.handleErrors(e),this.router.navigate(["/home"]),lb(!1)))).subscribe())}initDoc(){this.docList=[],this.signaturesService.signaturesContent=[],this.signaturesService.notesContent=[],this.signaturesService.datesContent=[],this.signaturesService.currentToobal="mainDocumentDetail";const e=this.localStorage.get(this.mainDocument.id.toString());if(e){const t=JSON.parse(e);this.signaturesService.notesContent=void 0!==t.note?t.note:[],this.signaturesService.signaturesContent=void 0!==t.sign?t.sign:[],this.signaturesService.datesContent=void 0!==t.date?t.date:[]}this.signaturesService.currentAction=0,this.signaturesService.currentPage=1,this.pageNum=1,this.signaturesContent.currentDoc=1,this.currentDoc=0}testDrag(e){const t=e.source.getRootElement(),n=t.getBoundingClientRect(),i=this.getPosition(t);this.signaturesService.y=n.y-i.top,this.signaturesService.x=n.x-i.left}getPosition(e){let t=0,n=0;for(;e&&!isNaN(e.offsetLeft)&&!isNaN(e.offsetTop);)t+=e.offsetLeft-e.scrollLeft,n+=e.offsetTop-e.scrollTop,e=e.offsetParent;return{top:n,left:t}}zoomForNotes(){this.widthDoc="200%",this.signaturesService.scale=2,$(".example-box").css({transform:"translate3d("+this.signaturesService.x*this.signaturesService.scale+"px, "+this.signaturesService.y*this.signaturesService.scale+"px, 0px)"}),this.signaturesService.workingAreaHeight*=this.signaturesService.scale,this.signaturesService.workingAreaWidth*=this.signaturesService.scale}zoomForView(){this.resetDragPos=!0,this.widthDoc="100%",this.signaturesService.workingAreaHeight=this.signaturesService.workingAreaHeight/2,this.signaturesService.workingAreaWidth=this.signaturesService.workingAreaWidth/2,setTimeout(()=>{this.resetDragPos=!1},200),this.signaturesService.scale=1}prevPage(){this.loadingImage=!0,this.pageNum--,0===this.pageNum&&(this.pageNum=1),0===this.currentDoc&&(this.signaturesService.currentPage=this.pageNum),this.renderImage()}nextPage(){this.loadingImage=!0,this.pageNum>=this.totalPages?this.pageNum=this.totalPages:this.pageNum++,0===this.currentDoc&&(this.signaturesService.currentPage=this.pageNum),this.renderImage()}goTo(e){this.loadingController.create({message:this.translate.instant("lang.loadingDocument"),spinner:"dots"}).then(e=>{this.load=e,this.load.present(),this.loadingImage=!0,this.load.dismiss()}),this.pageNum=e,0===this.currentDoc&&(this.signaturesService.currentPage=this.pageNum),this.renderImage()}pagesArray(e){return Array(e)}initWorkingArea(){}refuseDocument(){return TB(this,void 0,void 0,function*(){let e=this.translate.instant("lang.rejectDocumentWarning");0===this.signaturesService.notesContent.length&&(e=this.translate.instant("lang.refuseDocumentWithoutNote"));const t=yield this.alertController.create({cssClass:"custom-alert-danger",header:this.translate.instant("lang.reject"),message:e,inputs:[{name:"paragraph",id:"paragraph",type:"textarea",placeholder:this.translate.instant("lang.addReason")}],buttons:[{text:this.translate.instant("lang.reject"),handler:e=>TB(this,void 0,void 0,function*(){const t=yield this.actionsService.checkGroupMail(this.mainDocument,"reject"),n=yield this.signatureMethodService.launchDefaultMode(e.paragraph,t);this.functionsService.empty(n)||(this.bottomSheet.open(PF,{disableClose:!0,direction:"ltr"}),this.localStorage.remove(this.mainDocument.id.toString()))})}]});yield t.present()})}validateDocument(e){return TB(this,void 0,void 0,function*(){let e=this.translate.instant("lang.validateDocumentWarning");0===this.signaturesService.signaturesContent.length&&0===this.signaturesService.notesContent.length&&(e=this.translate.instant("lang.validateDocumentWithoutSignOrNote")),this.signaturesService.stampLock&&(e=this.translate.instant("lang.certifiedDocumentMsg2"));const t=yield this.alertController.create({cssClass:"custom-alert-success",header:this.translate.instant("lang.validate"),message:e,inputs:[{name:"paragraph",id:"paragraph",type:"textarea",placeholder:this.translate.instant("lang.addReason")}],buttons:[{text:this.translate.instant("lang.validate"),handler:e=>TB(this,void 0,void 0,function*(){const t=this.mainDocument.workflow.filter(e=>!0===e.current)[0],n=yield this.actionsService.checkGroupMail(this.mainDocument,"validate"),i=yield this.signatureMethodService.checkAuthenticationAndLaunchAction(t,e.paragraph,n);this.functionsService.empty(i)||(this.bottomSheet.open(jF,{disableClose:!0,direction:"ltr"}),this.localStorage.remove(this.mainDocument.id.toString()))})}]});yield t.present()})}removeTags(){return TB(this,void 0,void 0,function*(){this.signaturesService.currentAction=0;const e=yield this.alertController.create({header:this.translate.instant("lang.deleteNoteAndSignature"),buttons:[{text:this.translate.instant("lang.validate"),handler:()=>{this.signaturesService.signaturesContent=[],this.signaturesService.notesContent=[],this.signaturesService.datesContent=[],this.localStorage.remove(this.mainDocument.id.toString()),this.notificationService.success("lang.noteAndSignatureDeleted")}}]});yield e.present()})}loadDoc(e){this.pageNum=1,this.currentDoc=e,this.totalPages=this.docList[e].pages}launchEvent(e){this.backToDetails(),this.signaturesService.currentAction=e.id,this[e.event]()}undoTag(){this.signaturesService.notesContent[this.pageNum]&&(this.signaturesService.notesContent[this.pageNum].pop(),this.localStorage.remove(this.mainDocument.id.toString()),this.localStorage.save(this.mainDocument.id.toString(),JSON.stringify({sign:this.signaturesService.signaturesContent,note:this.signaturesService.notesContent})),this.isEmptyNote()&&(this.signaturesService.notesContent=[]))}checkEmptyNote(){return!this.signaturesService.notesContent[this.pageNum]||"undefined"===this.signaturesService.notesContent[this.pageNum]||0===this.signaturesService.notesContent[this.pageNum].length}isEmptyNote(){let e=!0;for(let t=1;t<=this.signaturesService.totalPage;t++)if(this.signaturesService.notesContent[t]&&this.signaturesService.notesContent[t].length>0){e=!1;break}return e}checkEmptiness(){let e=!0;for(let t=1;t<=this.signaturesService.totalPage;t++){if(this.signaturesService.datesContent[t]&&this.signaturesService.datesContent[t].length>0){e=!1;break}if(this.signaturesService.notesContent[t]&&this.signaturesService.notesContent[t].length>0){e=!1;break}if(this.signaturesService.signaturesContent[t]&&this.signaturesService.signaturesContent[t].length>0){e=!1;break}}return e}openVisaWorkflow(){this.menu.open("right-menu"),this.signaturesService.currentToobal="visaWorkflow"}openDocumentList(){this.menu.open("right-menu"),this.signaturesService.currentToobal="documentList"}openAssociatedDocuments(){this.menu.open("right-menu"),this.signaturesService.currentToobal="associatedDocuments"}openMainDocumentDetail(){this.menu.open("right-menu"),this.signaturesService.currentToobal="mainDocumentDetail"}backToDetails(){this.signaturesService.currentToobal="mainDocumentDetail"}deleteSubstution(){confirm(this.translate.instant("lang.deleteSubstitution")+" ?")&&this.http.put("../rest/users/"+this.authService.user.id+"/substitute",{substitute:null}).subscribe(()=>{this.authService.updateUserInfoWithTokenRefresh(),this.notificationService.success("lang.substitutionDeleted")})}back(){this.navCtrl.back()}ionViewWillLeave(){this.signaturesService.detachTemplate("rightContent"),this.loadingController.dismiss()}openSelect(e){this.totalPages>1&&(this.pagesList.interface="popover",this.pagesList.open(e))}fromHex(e){const t=new Uint8Array(e.length/2);for(let n=0;n<e.length;n+=2){const i=e.slice(n,n+2);t[n/2]=parseInt(i,16)}return t.buffer}}return e.\u0275fac=function(t){return new(t||e)(zr(GC),zr(r_),zr(Ny),zr(Db),zr(sS),zr(ZC),zr(sP),zr(qh),zr(IM),zr(lM),zr(rS),zr(oS),zr(KA),zr(ZA),zr(XA),zr(Gl),zr(JA),zr(QS),zr(QA),zr(HF),zr(ux),zr(LF),zr(BF))},e.\u0275cmp=$e({type:e,selectors:[["app-document"]],viewQuery:function(e,t){if(1&e&&(Tc(IB,1),Tc(RB,1),Tc(LB,3),Tc(FB,1),Tc(BB,1),Tc(zB,1),Tc(VB,3),Tc(NB,1)),2&e){let e;Mc(e=Rc())&&(t.mainContent=e.first),Mc(e=Rc())&&(t.img=e.first),Mc(e=Rc())&&(t.snav=e.first),Mc(e=Rc())&&(t.dragElem=e.first),Mc(e=Rc())&&(t.appDocumentNotePad=e.first),Mc(e=Rc())&&(t.appDocumentList=e.first),Mc(e=Rc())&&(t.rightContent=e.first),Mc(e=Rc())&&(t.pagesList=e.first)}},decls:7,vars:5,consts:[[3,"translucent",4,"ngIf"],["class","ion-text-center","color","primary",4,"ngIf"],["class","ion-text-center","color","danger",4,"ngIf"],[4,"ngIf"],["class","ion-no-border footer-buttons",4,"ngIf"],["rightContent",""],[3,"translucent"],["color","light"],["slot","start"],["value","favorite",3,"value","ionChange"],["value","mainDocumentDetail",3,"click"],["color","primary"],["color","primary","name","information-circle"],["value","documentList",3,"click"],["color","primary","name","document-attach-outline"],["color","danger",2,"position","absolute","top","10px","right","40%"],["value","associatedDocuments",3,"click",4,"ngIf"],["value","visaWorkflow",3,"click"],["color","primary","name","list-outline"],["slot","end",4,"ngIf"],["value","associatedDocuments",3,"click"],["color","primary","name","link-outline"],["slot","end"],["color","primary",3,"click"],["slot","icon-only","name","settings-sharp"],["color","primary",1,"ion-text-center"],[2,"font-size","13px"],["color","danger",1,"ion-text-center"],["mainContent",""],[2,"display","contents"],[2,"overflow","auto","height","100%","width","100%","margin","auto",3,"drag-scroll-disabled","drag-disabled","click"],["nav",""],["id","myBounds",2,"position","relative","cursor","grab"],["myBounds",""],[3,"bounds",4,"ngIf"],["class","img-content",3,"src","width","height","ionImgDidLoad",4,"ngIf"],["class","page-info",4,"ngIf"],["lines","none","class","certified",4,"ngIf"],["ngDraggable","","style","top: 40px;right: 40px;z-index:2;position:absolute;",3,"bounds","inBounds","title","disabled","movingOffset","endOffset","click",4,"ngIf"],["ngDraggable","","class","note",3,"bounds","inBounds","movingOffset","endOffset",4,"ngIf"],["ngDraggable","",2,"top","40px","right","40px","z-index","2","position","absolute",3,"bounds","inBounds","title","disabled","movingOffset","endOffset","click"],["name","chatbubble-ellipses-outline"],["ngDraggable","",1,"note",3,"bounds","inBounds","movingOffset","endOffset"],[1,"note-title"],[1,"far","fa-sticky-note",2,"padding-right","5px"],[2,"flex","1"],[1,"fa","fa-minus-square",2,"cursor","pointer",3,"title","click"],[4,"ngFor","ngForOf"],[1,"note-creator"],[1,"note-content"],[3,"bounds"],[1,"img-content",3,"src","ionImgDidLoad"],["img",""],[1,"page-info"],[1,"page-info-doc"],[1,"page-info-page",3,"click"],["interface","popover","hidden","true",2,"max-height","100%",3,"ngModel","interfaceOptions","ngModelChange","ionChange"],["pagesList",""],[3,"value","disabled",4,"ngFor","ngForOf"],[3,"value","disabled"],["lines","none",1,"certified"],["slot","start","name","ribbon-outline","color","success"],["class","paginate-left",3,"click",4,"ngIf"],["class","paginate-right",3,"click",4,"ngIf"],[1,"paginate-left",3,"click"],["name","chevron-back-outline"],[1,"paginate-right",3,"click"],["name","chevron-forward-outline"],[1,"ion-no-border","footer-buttons"],["shape","round","size","large","fill","outline",3,"disabled","color","click",4,"ngFor","ngForOf"],["shape","round","size","large","fill","outline",3,"disabled","color","click"],[3,"slot","name",4,"ngIf"],[3,"slot","name"],["style","display: contents;",3,"visaWorkflow",4,"ngIf"],["style","display: contents;",3,"currentDocId","docList","triggerEvent",4,"ngIf"],["style","display: contents;",3,"associatedDocuments",4,"ngIf"],["style","display: contents;",3,"mainDocument",4,"ngIf"],[2,"display","contents",3,"visaWorkflow"],[2,"display","contents",3,"currentDocId","docList","triggerEvent"],["appDocumentList",""],[2,"display","contents",3,"associatedDocuments"],["appAssociatedDocuments",""],[2,"display","contents",3,"mainDocument"],["appMainDocumentDetail",""]],template:function(e,t){1&e&&(Fr(0,UB,27,17,"ion-header",0),Fr(1,WB,4,3,"ion-toolbar",1),Fr(2,GB,4,3,"ion-toolbar",2),Fr(3,cz,15,16,"ion-content",3),Fr(4,hz,2,1,"ion-footer",4),Fr(5,bz,4,4,"ng-template",null,5,zc)),2&e&&(Vr("ngIf",!t.loadingdocument),no(1),Vr("ngIf",null!==t.authService.user.substitute&&t.docList[t.currentDoc]),no(1),Vr("ngIf",0!==t.mainDocument.id&&"READY"!==t.mainDocument.status),no(1),Vr("ngIf",!t.loadingdocument),no(1),Vr("ngIf",!t.loadingImage&&0===t.currentDoc))},directives:[Wu,Vx,vA,Cx,Jx,cA,ox,dA,Zx,Nx,xx,Ax,Tx,Yk,Lx,Kk,ju,WF,ZF,sB,Hx,uA,rm,Rm,hA,Gx,Bx,CB,RF,kB,MB],pipes:[$C,cP],styles:[".enterApp[_ngcontent-%COMP%]{position:fixed;height:100vh;width:100vw;background-color:#135f7f;z-index:2;display:flex;flex-direction:column;justify-content:center;align-items:center}.maarchLogo[_ngcontent-%COMP%]{position:absolute;transition:all 1s ease-in-out;width:250px;height:auto;padding-bottom:10px}.mainView[_ngcontent-%COMP%]{height:100%;width:auto;display:flex;flex-direction:column;overflow:hidden}.header[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{height:70px;width:auto}.header[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{height:auto;width:auto;font-size:40px}.article[_ngcontent-%COMP%]{display:flex;justify-content:center;overflow:hidden;flex:1;top:0;left:0}.canvas-wrapper[_ngcontent-%COMP%]{position:relative;padding-bottom:120px}canvas[_ngcontent-%COMP%]{margin:0 auto;display:block}.header[_ngcontent-%COMP%]{position:absolute;z-index:1;width:100%;height:80px;align-items:center;padding:0}.header[_ngcontent-%COMP%], .header-action[_ngcontent-%COMP%]{display:flex;justify-content:center}.header-action[_ngcontent-%COMP%]{color:#135f7f}.header-action-button[_ngcontent-%COMP%]{white-space:normal;word-break:break-word;width:135px!important}.header-infos[_ngcontent-%COMP%]{background:#f1f4f4;border-radius:5px;display:flex;justify-content:space-between;align-items:flex-start;width:100%;padding-top:12px;padding-bottom:7px;position:relative;overflow-y:hidden;overflow-x:auto}.header-info[_ngcontent-%COMP%]{border-right:1px solid #979797;width:200px;height:60px;font-size:12px;padding-left:20px}.header-info[_ngcontent-%COMP%]:last-of-type{border:none}.header-info[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{margin:0;padding:0}.header-expand[_ngcontent-%COMP%]{width:70%;position:absolute;left:50%;transform:translateX(-50%);top:25px;border:1px solid #f1f4f4}.header-expand[_ngcontent-%COMP%]   .mat-form-field[_ngcontent-%COMP%]{padding-top:10px}.header-expand[_ngcontent-%COMP%]    .mat-expansion-panel{box-shadow:none}.header-expand[_ngcontent-%COMP%]    .mat-form-field-label{color:#135f7f}.header-expand[_ngcontent-%COMP%]     .mat-form-field-underline{display:none}.header-expand-content[_ngcontent-%COMP%]{width:33%;display:inline-block}.header-expand-content[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{text-overflow:ellipsis}.header-expand-content[_ngcontent-%COMP%]   .mat-form-field[_ngcontent-%COMP%]{width:100%}.header-expand[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]:disabled{opacity:1;color:#666}.header-expand[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]{flex:1;font-size:12px}.page-info[_ngcontent-%COMP%]{position:absolute;bottom:70px;height:30px;width:auto;max-width:70%;color:rgba(var(--ion-color-dark-rgb),.8);font-size:12px;font-weight:300;line-height:30px;display:flex;align-items:center;justify-content:center;opacity:.5;left:50%;transform:translateX(-50%);font-weight:500;transition:all .3s ease-in-out}.page-info-doc[_ngcontent-%COMP%]{max-width:80%;background-color:#f1f4f4;border-radius:14px;padding:0 20px;z-index:1;white-space:pre;overflow:hidden;text-overflow:ellipsis}.page-info-page[_ngcontent-%COMP%]{cursor:pointer;text-align:center;border-radius:0 14px 14px 0;padding:0 20px;background:#fff;border:1px solid #ecf0f1;margin-left:-15px;height:28px;white-space:pre;display:flex;align-items:center}.page-info[_ngcontent-%COMP%]:hover{opacity:1}.btn-next[_ngcontent-%COMP%]{color:#666;background:hsla(0,0%,77.6%,.5019607843137255);border-radius:20px;padding:10px;border:none;outline:none;position:absolute;right:25px;top:50%;cursor:pointer;z-index:1}.btn-next.disabled[_ngcontent-%COMP%]{cursor:not-allowed}.btn-previous[_ngcontent-%COMP%]{color:#666;background:hsla(0,0%,77.6%,.5019607843137255);border-radius:20px;padding:10px;border:none;outline:none;position:absolute;left:25px;top:50%;cursor:pointer;z-index:1}.btn-previous.disabled[_ngcontent-%COMP%], button.disabled[_ngcontent-%COMP%]{cursor:not-allowed}.overlay[_ngcontent-%COMP%]{position:absolute;z-index:1;left:0;top:0;right:0;bottom:0;background:rgba(0,0,0,.5)}.pdf-page-canvas[_ngcontent-%COMP%]{opacity:1;transition:opacity .5s ease-in}.pdf-page-canvas-loading-doc[_ngcontent-%COMP%]{opacity:0}.ellipsis[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.leftPosDesk[_ngcontent-%COMP%]{left:25%!important}.mat-badge-content[_ngcontent-%COMP%]{background:#e74c3c}.substutionModal[_ngcontent-%COMP%]{color:#fff;background:#135f7f}.substutionModal[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]{padding:10px}.substutionModal[_ngcontent-%COMP%]   .msgModal[_ngcontent-%COMP%]{text-align:center;flex:1}.substitutedInformations[_ngcontent-%COMP%]{top:85px;z-index:1;white-space:pre;overflow:hidden;text-overflow:ellipsis;background:#135f7f;color:#fff;font-size:13px;text-align:center}.note[_ngcontent-%COMP%]{top:40px;right:40px;z-index:2;cursor:-webkit-grab;cursor:grab;position:absolute;background-color:#fff8bb;width:300px;max-height:400px;overflow:auto;box-shadow:0 2px 1px -1px rgba(0,0,0,.2),0 1px 1px 0 rgba(0,0,0,.14),0 1px 3px 0 rgba(0,0,0,.12)}.note-title[_ngcontent-%COMP%]{background-color:#fff8bb;position:-webkit-sticky;position:sticky;top:0;display:flex;align-items:center;font-weight:700}.note-creator[_ngcontent-%COMP%], .note-title[_ngcontent-%COMP%]{padding:10px;color:#135f7f}.note-creator[_ngcontent-%COMP%]{font-size:12px;text-decoration:underline}.note-content[_ngcontent-%COMP%]{padding:0 10px 10px;color:#4f4f4f}.footer-buttons[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(3,1fr);padding:10px}.footer-buttons[_ngcontent-%COMP%]   ion-button[_ngcontent-%COMP%]{margin:auto;width:150px}.paginate-left[_ngcontent-%COMP%]{left:20px}.paginate-left[_ngcontent-%COMP%], .paginate-right[_ngcontent-%COMP%]{position:absolute;top:40%;transform:translateY(-50%);--background:hsla(0,0%,77.6%,0.5019607843137255);--color:#666}.paginate-right[_ngcontent-%COMP%]{right:20px}.certified[_ngcontent-%COMP%]{position:absolute;top:10px;left:10px;border:1px solid var(--ion-color-success);color:var(--ion-color-success)}  .popover-class .popover-content{height:50%;top:50px}  .custom-popover-class .popover-class{height:10%;top:50px}"]}),e})();var yz=function(e,t,n,i){return new(n||(n=Promise))(function(s,o){function r(e){try{l(i.next(e))}catch(t){o(t)}}function a(e){try{l(i.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?s(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(r,a)}l((i=i.apply(e,t||[])).next())})};function wz(e,t){1&e&&(Hr(0,"a",13),Da(1),hc(2,"translate"),jr()),2&e&&(no(1),Oa(pc(2,1,"lang.forgotPassword")))}function _z(e,t){1&e&&(Hr(0,"a",14),Da(1),hc(2,"translate"),jr()),2&e&&(no(1),Oa(pc(2,1,"lang.ldapEnabled")))}function xz(e,t){1&e&&(Hr(0,"a",14),Da(1),hc(2,"translate"),jr()),2&e&&(no(1),Oa(pc(2,1,"lang.kerberosEnabled")))}function Az(e,t){1&e&&(Hr(0,"a",14),Da(1),hc(2,"translate"),jr()),2&e&&(no(1),Oa(pc(2,1,"lang.x509Enabled")))}function Cz(e,t){if(1&e&&(Hr(0,"a",15),hc(1,"translate"),Da(2),jr()),2&e){const e=na();la("href","",pc(1,3,"lang.repoUrl"),"/commit/",e.commitHash,"",os),no(2),Oa(e.commitHash.substring(0,8))}}let Sz=(()=>{class e{constructor(e,t,n,i,s,o,r,a,l,c){this.http=e,this.router=t,this.authService=n,this.signaturesService=i,this.notificationService=s,this.dialog=o,this.formBuilder=r,this.loadingController=a,this.translate=l,this.menu=c,this.loading=!1,this.showForm=!1,this.commitHash=null}ngOnInit(){return yz(this,void 0,void 0,function*(){this.loginForm=this.formBuilder.group({login:[null,zf.required],password:[null,zf.required]}),this.environment=zd,this.signaturesService.reset(),yield this.loadCommitInformation()})}ionViewWillEnter(){this.menu.enable(!1,"left-menu"),this.menu.enable(!1,"right-menu")}ngAfterViewInit(){setTimeout(()=>{this.showForm=!0,this.fixAutoFill(),this.initConnection()},500)}fixAutoFill(){setTimeout(()=>{this.loginForm.get("login").setValue($("#login").val()),this.loginForm.get("password").setValue($("#password").val())},100)}onSubmit(){return yz(this,void 0,void 0,function*(){const e=yield this.loadingController.create({cssClass:"my-custom-class",message:this.translate.instant("lang.connexion")});yield e.present(),this.authService.authFailed=!1,this.loginForm.invalid?(e.dismiss(),this.notificationService.error("lang.requiredLoginPassword")):this.http.post("../rest/authenticate",{login:this.loginForm.get("login").value,password:this.loginForm.get("password").value},{observe:"response"}).pipe(Ov(t=>{this.loading=!1,this.showForm=!1,this.authService.saveTokens(t.headers.get("Token"),t.headers.get("Refresh-Token")),this.authService.setUser({}),this.authService.getCachedUrl()?(this.router.navigateByUrl(this.authService.getCachedUrl()),this.authService.cleanCachedUrl()):this.router.navigate(["/home"]),e.dismiss()}),fv(t=>(this.loading=!1,this.authService.authFailed=!0,401===t.status&&-1===["kerberos","x509","azure_saml"].indexOf(this.authService.authMode)?(this.notificationService.error("lang.wrongLoginPassword"),e.dismiss()):"azure_saml"===this.authService.authMode&&"Authentication Failed : not logged"===t.error.errors?(e.dismiss(),window.location.href=t.error.authUri):(e.dismiss(),this.notificationService.handleErrors(t)),lb(!1)))).subscribe()})}initConnection(){["kerberos","x509","azure_saml"].indexOf(this.authService.authMode)>-1&&(this.loginForm.disable(),this.loginForm.setValidators(null),this.onSubmit())}loadCommitInformation(){return new Promise(e=>{this.http.get("../rest/commitInformation").pipe(Ov(t=>{this.commitHash=t.hash,e(!0)}),fv(e=>(this.notificationService.handleErrors(e),lb(!1)))).subscribe()})}}return e.\u0275fac=function(t){return new(t||e)(zr(Db),zr(r_),zr(rS),zr(sS),zr(ZC),zr(IM),zr(ab),zr(XA),zr(GC),zr(KA))},e.\u0275cmp=$e({type:e,selectors:[["ng-component"]],decls:27,vars:18,consts:[[1,"login-content"],["svgIcon","maarchLogo",1,"maarchLogo"],[2,"width","400px","position","absolute","left","50%","top","50%","transform","translate(-50%,-50%)"],[3,"formGroup","ngSubmit"],["position","floating"],["formControlName","login","type","text",3,"keyup.enter"],["name","password","matInput","","type","password","formControlName","password",3,"keyup.enter"],[1,"connection-type"],["routerLink","/forgot-password","class","forgot-password",4,"ngIf"],["href","","class","forgot-password",4,"ngIf"],["type","submit","expand","block",3,"disabled"],[1,"version-info"],["style","color: white","target","blank",3,"href",4,"ngIf"],["routerLink","/forgot-password",1,"forgot-password"],["href","",1,"forgot-password"],["target","blank",2,"color","white",3,"href"]],template:function(e,t){1&e&&(Hr(0,"ion-content",0),Ur(1,"mat-icon",1),Hr(2,"ion-card",2),Hr(3,"ion-card-content"),Hr(4,"form",3),Xr("ngSubmit",function(){return t.onSubmit()}),Hr(5,"ion-item"),Hr(6,"ion-label",4),Da(7),hc(8,"translate"),jr(),Hr(9,"ion-input",5),Xr("keyup.enter",function(){return t.onSubmit()}),jr(),jr(),Hr(10,"ion-item"),Hr(11,"ion-label",4),Da(12),hc(13,"translate"),jr(),Hr(14,"ion-input",6),Xr("keyup.enter",function(){return t.onSubmit()}),jr(),jr(),Hr(15,"div",7),Fr(16,wz,3,3,"a",8),Fr(17,_z,3,3,"a",9),Fr(18,xz,3,3,"a",9),Fr(19,Az,3,3,"a",9),jr(),Hr(20,"ion-button",10),Da(21),hc(22,"translate"),jr(),jr(),jr(),jr(),Hr(23,"ion-note",11),Da(24),Fr(25,Cz,3,5,"a",12),Da(26),jr(),jr()),2&e&&(no(4),Vr("formGroup",t.loginForm),no(3),Oa(pc(8,12,"lang.login")),no(5),Oa(pc(13,14,"lang.password")),no(4),Vr("ngIf","default"===t.authService.authMode),no(1),Vr("ngIf","ldap"===t.authService.authMode),no(1),Vr("ngIf","kerberos"===t.authService.authMode),no(1),Vr("ngIf","x509"===t.authService.authMode),no(1),Vr("disabled",t.loginForm.invalid||t.loading),no(1),Ma(" ",pc(22,16,"lang.connect")," "),no(3),Ma(" Maarch Parapheur ",t.environment.VERSION," "),no(1),Vr("ngIf",null!==t.commitHash),no(1),Ma(" Powered by ",t.environment.AUTHOR," "))},directives:[Tx,tT,Sx,kx,Lm,am,Hm,Gx,Zx,Wx,ax,rm,Um,Wu,Ax,tA,l_,jA],pipes:[$C],styles:[".version-info[_ngcontent-%COMP%]{color:#fff;position:absolute;bottom:5px}.maarchLogo[_ngcontent-%COMP%]{position:absolute;top:10%;left:50%;transform:translateX(-50%);width:250px;height:auto;padding-bottom:10px}.login-content[_ngcontent-%COMP%]{--background:var(--ion-color-primary)}.forgot-password[_ngcontent-%COMP%]{display:block;text-align:right}.connection-type[_ngcontent-%COMP%]{display:flex;justify-content:flex-end}"]}),e})(),kz=(()=>{class e{constructor(e,t,n,i,s){this.router=e,this.http=t,this.notificationService=s,this.loadingForm=!1,this.loading=!1,this.newLogin={login:"",password:""},this.labelButton="lang.send",this.appVersion="",this.appAuthor="",n.addSvgIcon("maarchLogo",i.bypassSecurityTrustResourceUrl("../src/frontend/assets/logo_white.svg"))}ngOnInit(){}generateLink(){this.labelButton="lang.generation",this.loading=!0,this.http.post("../rest/password",{login:this.newLogin.login}).pipe(Iv(()=>{this.labelButton="lang.send",this.loading=!1})).subscribe(e=>{this.loadingForm=!0,this.notificationService.success("lang.requestSentByEmail"),this.router.navigate(["/login"])},e=>{this.notificationService.handleErrors(e)})}}return e.\u0275fac=function(t){return new(t||e)(zr(r_),zr(Db),zr($M),zr(qh),zr(ZC))},e.\u0275cmp=$e({type:e,selectors:[["ng-component"]],decls:28,vars:15,consts:[[3,"translucent"],["color","primary"],["slot","start"],["mainContent",""],["id","passForm",2,"display","contents",3,"ngSubmit"],["passForm","ngForm"],["offset","3","size","6"],[1,"info"],[3,"innerHTML"],["color","secondary","position","floating"],["name","login","matInput","","type","text","oninput","this.value = this.value.toLowerCase()",3,"ngModel","ngModelChange"],["text-center","","lines","none",2,"position","sticky","bottom","0px","z-index","1"],[2,"display","flex","align-items","center","justify-content","center","width","100%","background","white"],["type","submit","shape","round","size","large","fill","outline","color","primary",3,"disabled"],[2,"font-size","13px"]],template:function(e,t){1&e&&(Hr(0,"ion-header",0),Hr(1,"ion-toolbar",1),Hr(2,"ion-buttons",2),Ur(3,"ion-back-button"),jr(),Hr(4,"ion-title"),Da(5),hc(6,"translate"),jr(),jr(),jr(),Hr(7,"ion-content",null,3),Hr(9,"form",4,5),Xr("ngSubmit",function(){return t.generateLink()}),Hr(11,"ion-grid"),Hr(12,"ion-row"),Hr(13,"ion-col",6),Hr(14,"ion-card",7),Ur(15,"ion-card-content",8),hc(16,"translate"),jr(),Hr(17,"ion-item"),Hr(18,"ion-label",9),Da(19),hc(20,"translate"),jr(),Hr(21,"ion-input",10),Xr("ngModelChange",function(e){return t.newLogin.login=e}),jr(),jr(),jr(),jr(),jr(),Hr(22,"ion-item",11),Hr(23,"div",12),Hr(24,"ion-button",13),Hr(25,"ion-label",14),Da(26),hc(27,"translate"),jr(),jr(),jr(),jr(),jr(),jr()),2&e&&(Vr("translucent",!0),no(5),Oa(pc(6,7,"lang.forgotPassword")),no(10),Vr("innerHTML",pc(16,9,"lang.afterClickingSendLinkChangePassword"),ss),no(4),Ma("",pc(20,11,"lang.enterLogin")," *"),no(2),Vr("ngModel",t.newLogin.login),no(3),Vr("disabled",""==t.newLogin.login||t.loading),no(2),Oa(pc(27,13,t.labelButton)))},directives:[Vx,vA,Cx,_x,HA,mA,Tx,Lm,am,Mm,zx,aA,Mx,Sx,kx,Gx,Zx,Wx,ax,rm,Rm,Ax],pipes:[$C],styles:[".login-content[_ngcontent-%COMP%]{background-color:#135f7f;height:100vh;width:100vw;display:flex;flex-direction:column;justify-content:center;align-items:center}.login-form[_ngcontent-%COMP%]{max-width:600px;text-align:center}.input-row[_ngcontent-%COMP%]{width:100%;padding-top:10px;padding-bottom:10px}.maarchLogo[_ngcontent-%COMP%]{position:absolute;transition:all 1s ease-in-out;width:250px;height:auto;padding-bottom:10px;transform:translateY(-200px)}footer[_ngcontent-%COMP%]{color:#fff;position:absolute;bottom:5px;font-size:10px;opacity:.5}"]}),e})();function Pz(e,t){if(1&e&&(Hr(0,"ion-note",22),Da(1),hc(2,"translate"),jr()),2&e){const e=na();no(1),Ma(" ",pc(2,1,e.handlePassword.errorMsg),"")}}function Ez(e,t){1&e&&(Hr(0,"ion-note",23),Da(1),hc(2,"translate"),jr()),2&e&&(no(1),Ma(" ",pc(2,1,"lang.samePassword"),""))}function Dz(e,t){1&e&&(Hr(0,"ion-note",22),Da(1),hc(2,"translate"),jr()),2&e&&(no(1),Ma(" ",pc(2,1,"lang.passwordNotMatch"),""))}let Oz=(()=>{class e{constructor(e,t,n,i,s,o,r,a){this.translate=e,this.router=t,this.route=n,this.http=i,this.notificationService=r,this.menu=a,this.loadingForm=!1,this.loading=!1,this.token="",this.password={newPassword:"",passwordConfirmation:""},this.labelButton="lang.update",this.hideNewPassword=!0,this.hideNewPasswordConfirm=!0,this.passwordRules={minLength:{enabled:!1,value:0},complexityUpper:{enabled:!1,value:0},complexityNumber:{enabled:!1,value:0},complexitySpecial:{enabled:!1,value:0},renewal:{enabled:!1,value:0},historyLastUse:{enabled:!1,value:0}},this.handlePassword={error:!1,errorMsg:""},this.ruleText="",this.otherRuleText="",s.addSvgIcon("maarchLogo",o.bypassSecurityTrustResourceUrl("../src/frontend/assets/logo_white.svg")),this.route.queryParams.subscribe(e=>{this.token=e.token})}ngOnInit(){this.getPassRules()}ionViewWillEnter(){this.menu.enable(!1,"left-menu"),this.menu.enable(!1,"right-menu")}updatePassword(){this.labelButton="lang.sending",this.loading=!0,this.http.put("../rest/password",{token:this.token,password:this.password.newPassword}).pipe(Iv(()=>{this.labelButton="lang.update",this.loading=!1})).subscribe(e=>{this.loadingForm=!0,this.notificationService.success("lang.passwordChanged"),this.router.navigate(["/login"])},e=>{this.notificationService.handleErrors(e)})}checkPasswordValidity(e){this.handlePassword.error=!0,!e.match(/[A-Z]/g)&&this.passwordRules.complexityUpper.enabled?this.handlePassword.errorMsg="lang.upperRequired":!e.match(/[0-9]/g)&&this.passwordRules.complexityNumber.enabled?this.handlePassword.errorMsg="lang.numberRequired":!e.match(/[^A-Za-z0-9]/g)&&this.passwordRules.complexitySpecial.enabled?this.handlePassword.errorMsg="lang.specialCharRequired":e.length<this.passwordRules.minLength.value&&this.passwordRules.minLength.enabled?this.translate.get("lang.minLengthChar",{charLength:this.passwordRules.minLength.value}).subscribe(e=>{this.handlePassword.errorMsg=e}):(this.handlePassword.error=!1,this.handlePassword.errorMsg="")}getPassRules(){this.handlePassword.error=!1,this.handlePassword.errorMsg="",this.http.get("../rest/passwordRules").subscribe(e=>{const t=[],n=[];e.rules.forEach(e=>{"minLength"===e.label?(this.passwordRules.minLength.enabled=e.enabled,this.passwordRules.minLength.value=e.value,e.enabled&&this.translate.get("lang.minLengthChar",{charLength:e.value}).subscribe(e=>{t.push(e)})):"complexityUpper"===e.label?(this.passwordRules.complexityUpper.enabled=e.enabled,this.passwordRules.complexityUpper.value=e.value,e.enabled&&t.push("lang.upperRequired")):"complexityNumber"===e.label?(this.passwordRules.complexityNumber.enabled=e.enabled,this.passwordRules.complexityNumber.value=e.value,e.enabled&&t.push("lang.numberRequired")):"complexitySpecial"===e.label?(this.passwordRules.complexitySpecial.enabled=e.enabled,this.passwordRules.complexitySpecial.value=e.value,e.enabled&&t.push("lang.specialCharRequired")):"renewal"===e.label?(this.passwordRules.renewal.enabled=e.enabled,this.passwordRules.renewal.value=e.value,e.enabled&&this.translate.get("lang.renewalInfo",{time:e.value}).subscribe(e=>{n.push(e)})):"historyLastUse"===e.label&&(this.passwordRules.historyLastUse.enabled=e.enabled,this.passwordRules.historyLastUse.value=e.value,e.enabled&&this.translate.get("lang.historyUseInfo",{countPwd:e.value}).subscribe(e=>{n.push(e)}))}),this.ruleText=t.join(", "),this.otherRuleText=n.join("<br/>")},e=>{this.notificationService.handleErrors(e)})}allowValidate(){return!(!this.handlePassword.error&&this.password.newPassword===this.password.passwordConfirmation&&0!==this.password.newPassword.length&&0!==this.password.passwordConfirmation.length)}}return e.\u0275fac=function(t){return new(t||e)(zr(GC),zr(r_),zr(Ny),zr(Db),zr($M),zr(qh),zr(ZC),zr(KA))},e.\u0275cmp=$e({type:e,selectors:[["ng-component"]],decls:47,vars:35,consts:[[3,"translucent"],["color","primary"],["slot","start"],["mainContent",""],["id","passForm",2,"display","contents",3,"ngSubmit"],["passForm","ngForm"],["offset","3","size","6"],[1,"info"],[3,"innerHTML"],["color","secondary","position","stacked"],["name","newPassword",3,"ngModel","placeholder","type","ngModelChange","keyup"],["slot","end","color","light",1,"showpassButton",3,"click"],["slot","icon-only","color","primary",3,"name"],["color","danger",4,"ngIf"],["name","passwordConfirmation",3,"ngModel","placeholder","type","ngModelChange"],["lines","none"],["color","success",4,"ngIf"],["text-center","","lines","none",2,"position","sticky","bottom","0px","z-index","1"],[2,"display","flex","align-items","center","justify-content","center","width","100%","background","white"],["type","submit","shape","round","size","large","fill","outline","color","primary",3,"disabled"],[2,"font-size","13px"],["type","button","shape","round","size","large","fill","outline","color","medium","routerLink","/login"],["color","danger"],["color","success"]],template:function(e,t){1&e&&(Hr(0,"ion-header",0),Hr(1,"ion-toolbar",1),Hr(2,"ion-buttons",2),Ur(3,"ion-back-button"),jr(),Hr(4,"ion-title"),Da(5),hc(6,"translate"),jr(),jr(),jr(),Hr(7,"ion-content",null,3),Hr(9,"form",4,5),Xr("ngSubmit",function(){return t.updatePassword()}),Hr(11,"ion-grid"),Hr(12,"ion-row"),Hr(13,"ion-col",6),Hr(14,"ion-card",7),Ur(15,"ion-card-content",8),hc(16,"translate"),jr(),Hr(17,"ion-item"),Hr(18,"ion-label",9),Da(19),hc(20,"translate"),jr(),Hr(21,"ion-input",10),Xr("ngModelChange",function(e){return t.password.newPassword=e})("keyup",function(){return t.checkPasswordValidity(t.password.newPassword)}),hc(22,"translate"),jr(),Hr(23,"ion-button",11),Xr("click",function(){return t.hideNewPassword=!t.hideNewPassword}),Ur(24,"ion-icon",12),jr(),Fr(25,Pz,3,3,"ion-note",13),jr(),Hr(26,"ion-item"),Hr(27,"ion-label",9),Da(28),hc(29,"translate"),jr(),Hr(30,"ion-input",14),Xr("ngModelChange",function(e){return t.password.passwordConfirmation=e}),hc(31,"translate"),jr(),Hr(32,"ion-button",11),Xr("click",function(){return t.hideNewPasswordConfirm=!t.hideNewPasswordConfirm}),Ur(33,"ion-icon",12),jr(),jr(),Hr(34,"ion-item",15),Fr(35,Ez,3,3,"ion-note",16),Fr(36,Dz,3,3,"ion-note",13),jr(),jr(),jr(),jr(),Hr(37,"ion-item",17),Hr(38,"div",18),Hr(39,"ion-button",19),Hr(40,"ion-label",20),Da(41),hc(42,"translate"),jr(),jr(),Hr(43,"ion-button",21),Hr(44,"ion-label",20),Da(45),hc(46,"translate"),jr(),jr(),jr(),jr(),jr(),jr()),2&e&&(Vr("translucent",!0),no(5),Oa(pc(6,19,"lang.newPassword")),no(10),Vr("innerHTML",pc(16,21,"lang.logInOncePasswordChanged"),ss),no(4),Oa(pc(20,23,"lang.newPassword")),no(2),ra("placeholder",pc(22,25,"lang.newPassword")),Vr("ngModel",t.password.newPassword)("type",t.hideNewPassword?"password":"text"),no(3),Vr("name",t.hideNewPassword?"eye-outline":"eye-off-outline"),no(1),Vr("ngIf",t.handlePassword.error),no(3),Ma("",pc(29,27,"lang.passwordConfirmation")," "),no(2),ra("placeholder",pc(31,29,"lang.passwordConfirmation")),Vr("ngModel",t.password.passwordConfirmation)("type",t.hideNewPasswordConfirm?"password":"text"),no(3),Vr("name",t.hideNewPasswordConfirm?"eye-outline":"eye-off-outline"),no(2),Vr("ngIf",t.password.passwordConfirmation===t.password.newPassword&&t.password.newPassword.length>0&&t.password.passwordConfirmation.length>0),no(1),Vr("ngIf",t.password.passwordConfirmation!==t.password.newPassword),no(3),Vr("disabled",t.allowValidate()||t.loading),no(2),Oa(pc(42,31,t.labelButton)),no(4),Oa(pc(46,33,"lang.cancel")))},directives:[Vx,vA,Cx,_x,HA,mA,Tx,Lm,am,Mm,zx,aA,Mx,Sx,kx,Gx,Zx,Wx,ax,rm,Rm,Ax,Nx,Wu,jA,a_,tA],pipes:[$C],styles:[".login-form[_ngcontent-%COMP%]{max-width:600px;text-align:center}.input-row[_ngcontent-%COMP%]{width:100%;padding-top:10px;padding-bottom:10px}.maarchLogo[_ngcontent-%COMP%]{position:absolute;transition:all 1s ease-in-out;width:250px;height:auto;padding-bottom:10px;transform:translateY(-230px)}footer[_ngcontent-%COMP%]{color:#fff;position:absolute;bottom:5px;font-size:10px;opacity:.5}.showpassButton[_ngcontent-%COMP%]{--background:none;--box-shadow:none}"]}),e})(),Mz=(()=>{class e{constructor(e,t,n,i){this.http=e,this.translate=t,this.notify=n,this.signaturesService=i,this.loading=!1,this.passwordRules={minLength:{enabled:!1,value:0},complexityUpper:{enabled:!1,value:0},complexityNumber:{enabled:!1,value:0},complexitySpecial:{enabled:!1,value:0},renewal:{enabled:!1,value:0},historyLastUse:{enabled:!1,value:0},lockTime:{enabled:!1,value:0},lockAttempts:{enabled:!1,value:0}},this.passwordRulesClone={},this.passwordRulesList=[]}ngOnInit(){this.loading=!0,this.http.get("../rest/passwordRules").subscribe(e=>{this.passwordRulesList=e.rules,e.rules.forEach(e=>{this.passwordRules[e.label].enabled=e.enabled,this.passwordRules[e.label].value=e.value,this.passwordRules[e.label].label=this.translate.instant("lang.password_"+e.label+"Required"),this.passwordRules[e.label].id=e.label,this.loading=!1}),this.passwordRulesClone=JSON.parse(JSON.stringify(this.passwordRules))},e=>{this.notify.error(e.error.errors)})}cancelModification(){this.passwordRules=JSON.parse(JSON.stringify(this.passwordRulesClone)),this.passwordRulesList.forEach(e=>{e.enabled=this.passwordRules[e.label].enabled,e.value=this.passwordRules[e.label].value})}checkModif(){return JSON.stringify(this.passwordRules)===JSON.stringify(this.passwordRulesClone)}disabledForm(){return!(this.passwordRules.lockTime.enabled||this.passwordRules.minLength.enabled||this.passwordRules.lockAttempts.enabled||this.passwordRules.renewal.enabled||this.passwordRules.historyLastUse.enabled)}toggleRule(e){this.passwordRulesList.forEach(t=>{"lockAttempts"!==e.id||"lockTime"!==t.label&&"lockAttempts"!==t.label?e.id===t.label&&(t.enabled=e.enabled):(t.enabled=e.enabled,this.passwordRules.lockTime.enabled=e.enabled)})}onSubmit(){this.passwordRulesList.forEach(e=>{e.enabled=this.passwordRules[e.label].enabled,e.value=this.passwordRules[e.label].value}),this.http.put("../rest/passwordRules",{rules:this.passwordRulesList}).subscribe(()=>{this.passwordRulesClone=JSON.parse(JSON.stringify(this.passwordRules)),this.notify.success("lang.passwordRulesUpdated")},e=>{this.notify.error(e.error.errors)})}}return e.\u0275fac=function(t){return new(t||e)(zr(Db),zr(GC),zr(ZC),zr(sS))},e.\u0275cmp=$e({type:e,selectors:[["ng-component"]],decls:69,vars:49,consts:[[3,"translucent"],["color","primary"],["slot","start"],["menu","left-menu"],["id","passwordForm",2,"display","contents",3,"ngSubmit"],["passwordForm","ngForm"],["color","secondary"],["slot","start","name","complexityUpper",3,"ngModel","checked","ngModelChange"],["slot","start","name","complexityNumber",3,"ngModel","checked","ngModelChange"],["slot","start","name","complexitySpecial",3,"ngModel","checked","ngModelChange"],["slot","start","name","minLengthToggle",3,"ngModel","checked","ngModelChange"],["color","secondary","position","floating"],["name","minLength","min","1","pattern","^[1-9][0-9]*",3,"disabled","ngModel","ngModelChange"],["slot","end"],["slot","start","name","lockAttemptsToggle",3,"ngModel","checked","ngModelChange"],["name","lockAttempts","min","1","pattern","^[1-9][0-9]*",3,"disabled","ngModel","ngModelChange"],["name","lockTime","min","1","pattern","^[1-9][0-9]*",3,"disabled","ngModel","ngModelChange"],["slot","start","name","renewalToggle",3,"ngModel","checked","ngModelChange"],["name","renewal","min","1","pattern","^[1-9][0-9]*",3,"disabled","ngModel","ngModelChange"],["slot","start","name","historyLastUseToggle",3,"ngModel","checked","ngModelChange"],["name","historyLastUse","min","1","pattern","^[1-9][0-9]*",3,"disabled","ngModel","ngModelChange"],["text-center","","lines","none",2,"position","sticky","bottom","0px","z-index","1"],[2,"display","flex","align-items","center","justify-content","center","width","100%","background","white"],["type","submit","shape","round","size","large","fill","outline","color","primary",3,"disabled"],[2,"font-size","13px"]],template:function(e,t){if(1&e&&(Hr(0,"ion-header",0),Hr(1,"ion-toolbar",1),Hr(2,"ion-buttons",2),Ur(3,"ion-menu-button",3),Ur(4,"ion-back-button"),jr(),Hr(5,"ion-title"),Da(6),hc(7,"translate"),jr(),jr(),jr(),Hr(8,"form",4,5),Xr("ngSubmit",function(){return t.onSubmit()}),Hr(10,"ion-content"),Hr(11,"ion-row"),Hr(12,"ion-col"),Hr(13,"ion-item"),Hr(14,"ion-label",6),Da(15),jr(),Hr(16,"ion-toggle",7),Xr("ngModelChange",function(e){return t.passwordRules.complexityUpper.enabled=e})("ngModelChange",function(){return t.toggleRule(t.passwordRules.complexityUpper)}),jr(),jr(),jr(),Hr(17,"ion-col"),Hr(18,"ion-item"),Hr(19,"ion-label",6),Da(20),jr(),Hr(21,"ion-toggle",8),Xr("ngModelChange",function(e){return t.passwordRules.complexityNumber.enabled=e})("ngModelChange",function(){return t.toggleRule(t.passwordRules.complexityNumber)}),jr(),jr(),jr(),Hr(22,"ion-col"),Hr(23,"ion-item"),Hr(24,"ion-label",6),Da(25),jr(),Hr(26,"ion-toggle",9),Xr("ngModelChange",function(e){return t.passwordRules.complexitySpecial.enabled=e})("ngModelChange",function(){return t.toggleRule(t.passwordRules.complexitySpecial)}),jr(),jr(),jr(),jr(),Hr(27,"ion-item"),Hr(28,"ion-toggle",10),Xr("ngModelChange",function(e){return t.passwordRules.minLength.enabled=e})("ngModelChange",function(){return t.toggleRule(t.passwordRules.minLength)}),jr(),Hr(29,"ion-label",11),Da(30),jr(),Hr(31,"ion-input",12),Xr("ngModelChange",function(e){return t.passwordRules.minLength.value=e}),jr(),Hr(32,"ion-note",13),Da(33),hc(34,"translate"),jr(),jr(),Hr(35,"ion-row"),Hr(36,"ion-col"),Hr(37,"ion-item"),Hr(38,"ion-toggle",14),Xr("ngModelChange",function(e){return t.passwordRules.lockAttempts.enabled=e})("ngModelChange",function(){return t.toggleRule(t.passwordRules.lockAttempts)}),jr(),Hr(39,"ion-label",11),Da(40),jr(),Hr(41,"ion-input",15),Xr("ngModelChange",function(e){return t.passwordRules.lockAttempts.value=e}),jr(),jr(),jr(),Hr(42,"ion-col"),Hr(43,"ion-item"),Hr(44,"ion-label",11),Da(45),jr(),Hr(46,"ion-input",16),Xr("ngModelChange",function(e){return t.passwordRules.lockTime.value=e}),jr(),Hr(47,"ion-note",13),Da(48),hc(49,"translate"),jr(),jr(),jr(),jr(),Hr(50,"ion-item"),Hr(51,"ion-toggle",17),Xr("ngModelChange",function(e){return t.passwordRules.renewal.enabled=e})("ngModelChange",function(){return t.toggleRule(t.passwordRules.renewal)}),jr(),Hr(52,"ion-label",11),Da(53),jr(),Hr(54,"ion-input",18),Xr("ngModelChange",function(e){return t.passwordRules.renewal.value=e}),jr(),Hr(55,"ion-note",13),Da(56),hc(57,"translate"),jr(),jr(),Hr(58,"ion-item"),Hr(59,"ion-toggle",19),Xr("ngModelChange",function(e){return t.passwordRules.historyLastUse.enabled=e})("ngModelChange",function(){return t.toggleRule(t.passwordRules.historyLastUse)}),jr(),Hr(60,"ion-label",11),Da(61),jr(),Hr(62,"ion-input",20),Xr("ngModelChange",function(e){return t.passwordRules.historyLastUse.value=e}),jr(),jr(),Hr(63,"ion-item",21),Hr(64,"div",22),Hr(65,"ion-button",23),Hr(66,"ion-label",24),Da(67),hc(68,"translate"),jr(),jr(),jr(),jr(),jr(),jr()),2&e){const e=Br(9);Vr("translucent",!0),no(6),Oa(pc(7,39,"lang.manage_password_rules")),no(9),Oa(t.passwordRules.complexityUpper.label),no(1),Vr("ngModel",t.passwordRules.complexityUpper.enabled)("checked",t.passwordRules.complexityUpper.enabled),no(4),Oa(t.passwordRules.complexityNumber.label),no(1),Vr("ngModel",t.passwordRules.complexityNumber.enabled)("checked",t.passwordRules.complexityNumber.enabled),no(4),Oa(t.passwordRules.complexitySpecial.label),no(1),Vr("ngModel",t.passwordRules.complexitySpecial.enabled)("checked",t.passwordRules.complexitySpecial.enabled),no(2),Vr("ngModel",t.passwordRules.minLength.enabled)("checked",t.passwordRules.minLength.enabled),no(2),Oa(t.passwordRules.minLength.label),no(1),Vr("disabled",!t.passwordRules.minLength.enabled)("ngModel",t.passwordRules.minLength.value),no(2),Oa(pc(34,41,"lang.chars")),no(5),Vr("ngModel",t.passwordRules.lockAttempts.enabled)("checked",t.passwordRules.lockAttempts.enabled),no(2),Oa(t.passwordRules.lockAttempts.label),no(1),Vr("disabled",!t.passwordRules.lockAttempts.enabled)("ngModel",t.passwordRules.lockAttempts.value),no(4),Oa(t.passwordRules.lockTime.label),no(1),Vr("disabled",!t.passwordRules.lockTime.enabled)("ngModel",t.passwordRules.lockTime.value),no(2),Oa(pc(49,43,"lang.minutes")),no(3),Vr("ngModel",t.passwordRules.renewal.enabled)("checked",t.passwordRules.renewal.enabled),no(2),Oa(t.passwordRules.renewal.label),no(1),Vr("disabled",!t.passwordRules.renewal.enabled)("ngModel",t.passwordRules.renewal.value),no(2),Oa(pc(57,45,"lang.days")),no(3),Vr("ngModel",t.passwordRules.historyLastUse.enabled)("checked",t.passwordRules.historyLastUse.enabled),no(2),Oa(t.passwordRules.historyLastUse.label),no(1),Vr("disabled",!t.passwordRules.historyLastUse.enabled)("ngModel",t.passwordRules.historyLastUse.value),no(3),Vr("disabled",!e.valid&&!t.disabledForm()||t.checkModif()),no(2),Oa(pc(68,47,"lang.validate"))}},directives:[Vx,vA,Cx,Jx,_x,HA,mA,Lm,am,Mm,Tx,aA,Mx,Gx,Zx,bA,J_,rm,Rm,Wx,ax,ib,tA,Ax],pipes:[$C],encapsulation:2}),e})();function Tz(e,t){1&e&&(Hr(0,"ion-note",17),Da(1),hc(2,"translate"),jr()),2&e&&(no(1),Oa(pc(2,1,"lang.requiredField")))}function Iz(e,t){1&e&&(Hr(0,"ion-item",26),Ur(1,"ion-icon",27),Hr(2,"ion-label",28),Da(3),hc(4,"translate"),jr(),jr()),2&e&&(no(3),Oa(pc(4,1,"lang.passwordValid")))}function Rz(e,t){1&e&&(Hr(0,"ion-item",26),Ur(1,"ion-icon",27),Hr(2,"ion-label",28),Da(3),hc(4,"translate"),jr(),jr()),2&e&&(no(3),Oa(pc(4,1,"lang.passwordMatch")))}function Lz(e,t){1&e&&Ur(0,"ion-item",29),2&e&&Vr("innerHTML",na().otherRuleText,ss)}let Fz=(()=>{class e{constructor(e,t,n,i,s,o,r){this.http=e,this.notify=t,this._formBuilder=n,this.translate=i,this.signaturesService=s,this.authService=o,this.router=r,this.config={},this.loading=!1,this.user={},this.ruleText="",this.hidePassword=!0,this.validPassword=!1,this.passwordRules={minLength:{enabled:!1,value:0},complexityUpper:{enabled:!1,value:0},complexityNumber:{enabled:!1,value:0},complexitySpecial:{enabled:!1,value:0},renewal:{enabled:!1,value:0},historyLastUse:{enabled:!1,value:0}},this.passwordModel={currentPassword:"",newPassword:"",reNewPassword:""},this.user=JSON.parse(atob(this.authService.getToken().split(".")[1])).user}ngOnInit(){this.http.get("../rest/passwordRules").subscribe(e=>{const t=[],n=[],i=[];t.push(zf.required),e.rules.forEach(e=>{"minLength"===e.label?(this.passwordRules.minLength.enabled=e.enabled,this.passwordRules.minLength.value=e.value,e.enabled&&(t.push(zf.minLength(this.passwordRules.minLength.value)),n.push(e.value+" "+this.translate.instant("lang.password_"+e.label)))):"complexityUpper"===e.label?(this.passwordRules.complexityUpper.enabled=e.enabled,this.passwordRules.complexityUpper.value=e.value,e.enabled&&(t.push(this.regexValidator(new RegExp("[A-Z]"),{complexityUpper:""})),n.push(this.translate.instant("lang.password_"+e.label)))):"complexityNumber"===e.label?(this.passwordRules.complexityNumber.enabled=e.enabled,this.passwordRules.complexityNumber.value=e.value,e.enabled&&(t.push(this.regexValidator(new RegExp("[0-9]"),{complexityNumber:""})),n.push(this.translate.instant("lang.password_"+e.label)))):"complexitySpecial"===e.label?(this.passwordRules.complexitySpecial.enabled=e.enabled,this.passwordRules.complexitySpecial.value=e.value,e.enabled&&(t.push(this.regexValidator(new RegExp("[^A-Za-z0-9]"),{complexitySpecial:""})),n.push(this.translate.instant("lang.password_"+e.label)))):"renewal"===e.label?(this.passwordRules.renewal.enabled=e.enabled,this.passwordRules.renewal.value=e.value,e.enabled&&i.push(this.translate.instant("lang.password_"+e.label)+" <b>"+e.value+" "+this.translate.instant("lang.days")+"</b>. "+this.translate.instant("lang.password2_"+e.label)+".")):"historyLastUse"===e.label&&(this.passwordRules.historyLastUse.enabled=e.enabled,this.passwordRules.historyLastUse.value=e.value,e.enabled&&i.push(this.translate.instant("lang.password_historyLastUseDesc")+" <b>"+e.value+"</b> "+this.translate.instant("lang.password_historyLastUseDesc2")+"."))}),this.ruleText=n.join(", "),this.otherRuleText=i.join("<br/>"),this.firstFormGroup.controls.newPasswordCtrl.setValidators(t)},e=>{this.notify.error(e.error.errors)}),this.firstFormGroup=this._formBuilder.group({newPasswordCtrl:[""],retypePasswordCtrl:["",zf.compose([zf.required])],currentPasswordCtrl:["",zf.compose([zf.required])]},{validator:this.matchValidator})}regexValidator(e,t){return n=>n.value?e.test(n.value)?null:t:null}matchValidator(e){return e.controls.newPasswordCtrl.value!==e.controls.retypePasswordCtrl.value&&(e.controls.retypePasswordCtrl.setErrors({mismatch:!0}),{mismatch:!0})}getErrorMessage(){return this.firstFormGroup.controls.retypePasswordCtrl.setErrors(this.firstFormGroup.controls.newPasswordCtrl.value!==this.firstFormGroup.controls.retypePasswordCtrl.value?{mismatch:!0}:null),this.firstFormGroup.controls.newPasswordCtrl.hasError("required")?this.translate.instant("lang.requiredField")+" !":this.firstFormGroup.controls.newPasswordCtrl.hasError("minlength")&&this.passwordRules.minLength.enabled?this.passwordRules.minLength.value+" "+this.translate.instant("lang.password_minLength")+" !":null!=this.firstFormGroup.controls.newPasswordCtrl.errors&&void 0!==this.firstFormGroup.controls.newPasswordCtrl.errors.complexityUpper&&this.passwordRules.complexityUpper.enabled?this.translate.instant("lang.password_complexityUpper")+" !":null!=this.firstFormGroup.controls.newPasswordCtrl.errors&&void 0!==this.firstFormGroup.controls.newPasswordCtrl.errors.complexityNumber&&this.passwordRules.complexityNumber.enabled?this.translate.instant("lang.password_complexityNumber")+" !":null!=this.firstFormGroup.controls.newPasswordCtrl.errors&&void 0!==this.firstFormGroup.controls.newPasswordCtrl.errors.complexitySpecial&&this.passwordRules.complexitySpecial.enabled?this.translate.instant("lang.password_complexitySpecial")+" !":(this.firstFormGroup.controls.newPasswordCtrl.setErrors(null),this.validPassword=!0,"")}onSubmit(){this.passwordModel.currentPassword=this.firstFormGroup.controls.currentPasswordCtrl.value,this.passwordModel.newPassword=this.firstFormGroup.controls.newPasswordCtrl.value,this.passwordModel.passwordConfirmation=this.firstFormGroup.controls.retypePasswordCtrl.value,this.http.put("../rest/users/"+this.user.id+"/password",this.passwordModel).subscribe(()=>{this.notify.success(this.translate.instant("lang.passwordChanged")),void 0===this.authService.user.picture&&this.http.get("../rest/users/"+this.authService.user.id+"/picture").subscribe(e=>{this.authService.user.picture=e.picture}),this.router.navigate(["/home"])},e=>{this.notify.handleErrors(e)})}logout(){this.authService.logout()}}return e.\u0275fac=function(t){return new(t||e)(zr(Db),zr(ZC),zr(ab),zr(GC),zr(sS),zr(rS),zr(r_))},e.\u0275cmp=$e({type:e,selectors:[["ng-component"]],decls:68,vars:53,consts:[[3,"translucent"],["color","primary"],["slot","start"],["mainContent",""],[2,"display","contents",3,"formGroup","ngSubmit"],["offset","3","size","6"],[1,"info"],["color","secondary","position","stacked"],["formControlName","currentPasswordCtrl","required","",3,"placeholder","type"],["slot","end","color","light",1,"showpassButton",3,"click"],["slot","icon-only","color","primary",3,"name"],["color","danger",4,"ngIf"],["lines","full"],["color","dark"],["formControlName","newPasswordCtrl","required","",3,"placeholder","type"],["inputPasswd",""],["lines","none",4,"ngIf"],["color","danger"],["required","","formControlName","retypePasswordCtrl",3,"placeholder","type"],["inputPasswd2",""],["text-center","","lines","none",2,"position","sticky","bottom","0px","z-index","1"],[2,"display","flex","align-items","center","justify-content","center","width","100%","background","white"],["type","submit","shape","round","size","large","fill","outline","color","primary",3,"disabled"],[2,"font-size","13px"],["type","button","shape","round","size","large","fill","outline","color","default",3,"click"],["color","warning","class","alert-warning","role","alert",3,"innerHTML",4,"ngIf"],["lines","none"],["slot","start","color","success","name","checkmark-outline"],["color","success"],["color","warning","role","alert",1,"alert-warning",3,"innerHTML"]],template:function(e,t){1&e&&(Hr(0,"ion-header",0),Hr(1,"ion-toolbar",1),Ur(2,"ion-buttons",2),Hr(3,"ion-title"),Da(4),hc(5,"translate"),jr(),jr(),jr(),Hr(6,"ion-content",null,3),Hr(8,"form",4),Xr("ngSubmit",function(){return t.onSubmit()}),Hr(9,"ion-grid"),Hr(10,"ion-row"),Hr(11,"ion-col",5),Hr(12,"ion-card",6),Hr(13,"ion-card-content"),Da(14),hc(15,"translate"),Hr(16,"b"),Da(17),jr(),Da(18),hc(19,"translate"),jr(),jr(),Hr(20,"ion-item"),Hr(21,"ion-label",7),Da(22),hc(23,"translate"),jr(),Ur(24,"ion-input",8),hc(25,"translate"),Hr(26,"ion-button",9),Xr("click",function(){return t.hidePassword=!t.hidePassword}),Ur(27,"ion-icon",10),jr(),Fr(28,Tz,3,3,"ion-note",11),jr(),Hr(29,"ion-list-header",12),Hr(30,"ion-label",13),Da(31),jr(),jr(),Hr(32,"ion-item"),Hr(33,"ion-label",7),Da(34),hc(35,"translate"),jr(),Ur(36,"ion-input",14,15),hc(38,"translate"),Hr(39,"ion-button",9),Xr("click",function(){return t.hidePassword=!t.hidePassword}),Ur(40,"ion-icon",10),jr(),Fr(41,Iz,5,3,"ion-item",16),Hr(42,"ion-note",17),Da(43),jr(),jr(),Hr(44,"ion-item"),Hr(45,"ion-label",7),Da(46),hc(47,"translate"),jr(),Ur(48,"ion-input",18,19),hc(50,"translate"),Hr(51,"ion-button",9),Xr("click",function(){return t.hidePassword=!t.hidePassword}),Ur(52,"ion-icon",10),jr(),Fr(53,Rz,5,3,"ion-item",16),Hr(54,"ion-note",17),Da(55),hc(56,"translate"),jr(),jr(),jr(),jr(),jr(),Hr(57,"ion-item",20),Hr(58,"div",21),Hr(59,"ion-button",22),Hr(60,"ion-label",23),Da(61),hc(62,"translate"),jr(),jr(),Hr(63,"ion-button",24),Xr("click",function(){return t.logout()}),Hr(64,"ion-label",23),Da(65),hc(66,"translate"),jr(),jr(),jr(),jr(),jr(),Fr(67,Lz,1,1,"ion-item",25),jr()),2&e&&(Vr("translucent",!0),no(4),Oa(pc(5,29,"lang.passwordModification")),no(4),Vr("formGroup",t.firstFormGroup),no(6),Ma(" ",pc(15,31,"lang.hello")," "),no(3),Ta(" ",t.user.firstname," ",t.user.lastname,""),no(1),Ma(", ",pc(19,33,"lang.changePasswordInfo"),". "),no(4),Oa(pc(23,35,"lang.typeCurrentPassword")),no(2),ra("placeholder",pc(25,37,"lang.typeCurrentPassword")),Vr("type",t.hidePassword?"password":"text"),no(3),Vr("name",t.hidePassword?"eye-outline":"eye-off-outline"),no(1),Vr("ngIf",t.firstFormGroup.controls.currentPasswordCtrl.hasError("required")),no(3),Oa(t.ruleText),no(3),Ma("",pc(35,39,"lang.passwordConfirmation")," "),no(2),ra("placeholder",pc(38,41,"lang.passwordConfirmation")),Vr("type",t.hidePassword?"password":"text"),no(4),Vr("name",t.hidePassword?"eye-outline":"eye-off-outline"),no(1),Vr("ngIf",t.validPassword),no(2),Oa(t.getErrorMessage()),no(3),Ma("",pc(47,43,"lang.passwordConfirmation")," "),no(2),ra("placeholder",pc(50,45,"lang.passwordConfirmation")),Vr("type",t.hidePassword?"password":"text"),no(4),Vr("name",t.hidePassword?"eye-outline":"eye-off-outline"),no(1),Vr("ngIf",!t.firstFormGroup.controls.retypePasswordCtrl.hasError("mismatch")&&""!=t.firstFormGroup.controls.retypePasswordCtrl.value),no(2),Oa(pc(56,47,"lang.passwordNotMatch")),no(4),Vr("disabled",!t.firstFormGroup.valid),no(2),Oa(pc(62,49,"lang.validate")),no(4),Oa(pc(66,51,"lang.logout")),no(2),Vr("ngIf",t.passwordRules.renewal.enabled||t.passwordRules.historyLastUse.enabled))},directives:[Vx,vA,Cx,mA,Tx,Lm,am,Hm,zx,aA,Mx,Sx,kx,Gx,Zx,Wx,ax,rm,Um,Jm,Ax,Nx,Wu,Xx,tA],pipes:[$C],styles:[".alert-warning[_ngcontent-%COMP%]{text-align:center;width:100%;margin:0;color:#8a6d3b;background-color:#fcf8e3;border-color:#faebcc;padding-top:15px;padding-bottom:15px}.alert-warning[_ngcontent-%COMP%], .container[_ngcontent-%COMP%]{left:0;bottom:0;position:absolute}.container[_ngcontent-%COMP%]{margin-top:-63px;display:flex;flex-direction:column;top:64px;right:0;height:100%}"]}),e})();var Bz=n("b0Xh");const zz=["passwordContent"];function Vz(e,t){if(1&e&&(Hr(0,"ion-note",35),Da(1),hc(2,"translate"),jr()),2&e){const e=na(3);no(1),Ma(" ",pc(2,1,e.handlePassword.errorMsg),"")}}function Nz(e,t){if(1&e){const e=qr();Hr(0,"div"),Hr(1,"ion-list-header",26),Hr(2,"ion-label",1),Da(3),hc(4,"translate"),jr(),jr(),Hr(5,"ion-item"),Hr(6,"ion-label",29),Da(7),hc(8,"translate"),jr(),Hr(9,"ion-input",30),Xr("ngModelChange",function(t){return Lt(e),na(2).password.currentPassword=t}),hc(10,"translate"),jr(),Hr(11,"ion-button",31),Xr("click",function(){Lt(e);const t=na(2);return t.hideCurrentPassword=!t.hideCurrentPassword}),Ur(12,"ion-icon",32),jr(),jr(),Hr(13,"ion-item"),Hr(14,"ion-label",29),Da(15),hc(16,"translate"),jr(),Hr(17,"ion-input",33),Xr("ngModelChange",function(t){return Lt(e),na(2).password.newPassword=t})("keyup",function(){Lt(e);const t=na(2);return t.checkPasswordValidity(t.password.newPassword)}),hc(18,"translate"),jr(),Hr(19,"ion-button",31),Xr("click",function(){Lt(e);const t=na(2);return t.hideNewPassword=!t.hideNewPassword}),Ur(20,"ion-icon",32),jr(),Fr(21,Vz,3,3,"ion-note",28),jr(),Hr(22,"ion-item"),Hr(23,"ion-label",29),Da(24),hc(25,"translate"),jr(),Hr(26,"ion-input",34),Xr("ngModelChange",function(t){return Lt(e),na(2).password.passwordConfirmation=t}),hc(27,"translate"),jr(),Hr(28,"ion-button",31),Xr("click",function(){Lt(e);const t=na(2);return t.hideNewPasswordConfirm=!t.hideNewPasswordConfirm}),Ur(29,"ion-icon",32),jr(),jr(),jr()}if(2&e){const e=na(2);no(3),Oa(pc(4,17,"lang.changePassword")),no(4),Oa(pc(8,19,"lang.currentPassword")),no(2),ra("placeholder",pc(10,21,"lang.currentPassword")),Vr("ngModel",e.password.currentPassword)("type",e.hideCurrentPassword?"password":"text"),no(3),Vr("name",e.hideCurrentPassword?"eye-outline":"eye-off-outline"),no(3),Oa(pc(16,23,"lang.newPassword")),no(2),ra("placeholder",pc(18,25,"lang.newPassword")),Vr("ngModel",e.password.newPassword)("type",e.hideNewPassword?"password":"text"),no(3),Vr("name",e.hideNewPassword?"eye-outline":"eye-off-outline"),no(1),Vr("ngIf",e.handlePassword.error),no(3),Ma("",pc(25,27,"lang.passwordConfirmation")," "),no(2),ra("placeholder",pc(27,29,"lang.passwordConfirmation")),Vr("ngModel",e.password.passwordConfirmation)("type",e.hideNewPasswordConfirm?"password":"text"),no(3),Vr("name",e.hideNewPasswordConfirm?"eye-outline":"eye-off-outline")}}function Hz(e,t){1&e&&(Hr(0,"ion-note",36),Da(1),hc(2,"translate"),jr()),2&e&&(no(1),Ma(" ",pc(2,1,"lang.samePassword"),""))}function jz(e,t){1&e&&(Hr(0,"ion-note",35),Da(1),hc(2,"translate"),jr()),2&e&&(no(1),Ma(" ",pc(2,1,"lang.passwordNotMatch"),""))}function Uz(e,t){if(1&e){const e=qr();Wr(0),Hr(1,"ion-list",16),Hr(2,"ion-item"),Hr(3,"ion-avatar",17),Xr("click",function(){return Lt(e),Br(10).click()}),Ur(4,"img",18),jr(),Hr(5,"ion-label",19),Da(6),hc(7,"translate"),jr(),Hr(8,"ion-input",20),Xr("ngModelChange",function(t){return Lt(e),na().profileInfo.login=t}),jr(),Hr(9,"input",21,22),Xr("change",function(t){return Lt(e),na().handleFileInput(t.target.files)}),jr(),jr(),Hr(11,"ion-item"),Hr(12,"ion-label",19),Da(13),hc(14,"translate"),jr(),Hr(15,"ion-input",23),Xr("ngModelChange",function(t){return Lt(e),na().profileInfo.email=t}),jr(),jr(),Hr(16,"ion-item"),Hr(17,"ion-label",19),Da(18),hc(19,"translate"),jr(),Hr(20,"ion-input",24),Xr("ngModelChange",function(t){return Lt(e),na().profileInfo.firstname=t}),jr(),jr(),Hr(21,"ion-item"),Hr(22,"ion-label",19),Da(23),hc(24,"translate"),jr(),Hr(25,"ion-input",25),Xr("ngModelChange",function(t){return Lt(e),na().profileInfo.lastname=t}),jr(),jr(),Fr(26,Nz,30,31,"div",14),Hr(27,"ion-item",26),Fr(28,Hz,3,3,"ion-note",27),Fr(29,jz,3,3,"ion-note",28),jr(),jr(),Gr()}if(2&e){const e=na();no(4),Vr("src",e.avatarInfo.picture,os),no(2),Oa(pc(7,19,"lang.login")),no(2),Vr("maxlength",128)("ngModel",e.profileInfo.login),no(5),Oa(pc(14,21,"lang.email")),no(2),Vr("maxlength",128)("ngModel",e.profileInfo.email)("readonly","default"!==e.authService.authMode),no(3),Oa(pc(19,23,"lang.firstname")),no(2),Vr("maxlength",128)("ngModel",e.profileInfo.firstname)("readonly","default"!==e.authService.authMode),no(3),Oa(pc(24,25,"lang.lastname")),no(2),Vr("maxlength",128)("ngModel",e.profileInfo.lastname)("readonly","default"!==e.authService.authMode),no(1),Vr("ngIf","default"===e.authService.authMode),no(2),Vr("ngIf",e.password.passwordConfirmation===e.password.newPassword&&e.password.newPassword.length>0&&e.password.passwordConfirmation.length>0),no(1),Vr("ngIf",e.password.passwordConfirmation!==e.password.newPassword)}}function Wz(e,t){if(1&e&&(Hr(0,"ion-select-option",63),Da(1),hc(2,"translate"),jr()),2&e){const e=t.$implicit;Vr("value",e),no(1),Oa(pc(2,2,"lang."+e))}}function Gz(e,t){1&e&&(Ur(0,"ion-note",64),hc(1,"translate")),2&e&&Vr("innerHTML",pc(1,1,"lang.freeModeInfo"),ss)}function $z(e,t){1&e&&(Ur(0,"ion-note",64),hc(1,"translate")),2&e&&Vr("innerHTML",pc(1,1,"lang.standardModeInfo"),ss)}function qz(e,t){if(1&e&&(Hr(0,"ion-select-option",63),Da(1),jr()),2&e){const e=t.index;Vr("value",e+1),no(1),Ma("",e+1," ")}}const Yz=function(e){return{value:e}};function Zz(e,t){if(1&e&&(Ur(0,"ion-note",65),hc(1,"translate")),2&e){const e=na(2);Vr("innerHTML",gc(1,1,"lang.scalingDocWith",ac(4,Yz,e.signatureScaling)),ss)}}function Qz(e,t){if(1&e){const e=qr();Wr(0),Hr(1,"ion-list",16),Hr(2,"ion-item"),Hr(3,"ion-label"),Da(4),hc(5,"translate"),jr(),Hr(6,"ion-toggle",37),Xr("ionChange",function(){Lt(e);const t=na();return t.preferenceInfo.notifications=!t.preferenceInfo.notifications}),jr(),jr(),Hr(7,"ion-list"),Hr(8,"ion-item"),Hr(9,"ion-label",38),Da(10),hc(11,"translate"),jr(),Hr(12,"ion-select",39),Xr("ngModelChange",function(t){return Lt(e),na().preferenceInfo.lang=t}),Fr(13,Wz,3,4,"ion-select-option",40),jr(),jr(),jr(),Hr(14,"ion-list"),Hr(15,"ion-item"),Hr(16,"ion-label",38),Da(17),hc(18,"translate"),jr(),Hr(19,"ion-select",41),Xr("ngModelChange",function(t){return Lt(e),na().preferenceInfo.writingMode=t}),Hr(20,"ion-select-option",42),Da(21),hc(22,"translate"),jr(),Hr(23,"ion-select-option",43),Da(24),hc(25,"translate"),Ur(26,"i",44),jr(),jr(),Fr(27,Gz,2,3,"ion-note",45),Fr(28,$z,2,3,"ion-note",45),jr(),jr(),Hr(29,"ion-list"),Hr(30,"ion-item"),Hr(31,"ion-label",38),Da(32),hc(33,"translate"),jr(),Hr(34,"ion-select",46),Xr("ngModelChange",function(t){return Lt(e),na().preferenceInfo.writingSize=t})("ionChange",function(){return Lt(e),na().drawSample()}),Fr(35,qz,2,2,"ion-select-option",40),jr(),Hr(36,"ion-note",2),Ur(37,"canvas",47),jr(),jr(),jr(),Hr(38,"ion-list"),Hr(39,"ion-item"),Hr(40,"ion-label",38),Da(41),hc(42,"translate"),jr(),Hr(43,"ion-select",48),Xr("ngModelChange",function(t){return Lt(e),na().preferenceInfo.writingColor=t}),Hr(44,"ion-select-option",49),Da(45),hc(46,"translate"),jr(),Hr(47,"ion-select-option",50),Da(48),hc(49,"translate"),jr(),Hr(50,"ion-select-option",51),Da(51),hc(52,"translate"),jr(),jr(),Hr(53,"ion-note",2),Ur(54,"div",52),jr(),jr(),jr(),Hr(55,"ion-list"),Hr(56,"ion-row"),Hr(57,"iotn-item"),Hr(58,"ion-label",53),Da(59),hc(60,"translate"),jr(),jr(),jr(),Hr(61,"ion-row"),Hr(62,"ion-col",54),Hr(63,"ion-item",55),Hr(64,"ion-range",56),Xr("ngModelChange",function(t){return Lt(e),na().signatureScaling=t}),Ur(65,"ion-icon",57),Ur(66,"ion-icon",58),jr(),jr(),Fr(67,Zz,2,6,"ion-note",59),jr(),Hr(68,"ion-col",60),Hr(69,"ion-item",61),Hr(70,"ion-label"),Da(71),hc(72,"translate"),jr(),Hr(73,"ion-toggle",62),Xr("ionChange",function(){Lt(e);const t=na();return t.originalSize=!t.originalSize}),jr(),jr(),jr(),jr(),jr(),jr(),Gr()}if(2&e){const e=na();no(4),Oa(pc(5,27,"lang.receiveNotif")),no(2),Vr("checked",e.preferenceInfo.notifications),no(4),Oa(pc(11,29,"lang.language")),no(2),Vr("ngModel",e.preferenceInfo.lang),no(1),Vr("ngForOf",e.profileInfo.availableLanguages),no(4),Ma("",pc(18,31,"lang.annotationMode")," "),no(2),Vr("ngModel",e.preferenceInfo.writingMode),no(2),Oa(pc(22,33,"lang.free")),no(3),Ma("",pc(25,35,"lang.appleStylus")," "),no(3),Vr("ngIf","stylus"===e.preferenceInfo.writingMode),no(1),Vr("ngIf","direct"===e.preferenceInfo.writingMode),no(4),Oa(pc(33,37,"lang.stylusWidh")),no(2),Vr("ngModel",e.preferenceInfo.writingSize),no(1),Vr("ngForOf",e.counter(10)),no(6),Oa(pc(42,39,"lang.defaultColor")),no(2),Vr("ngModel",e.preferenceInfo.writingColor),no(2),Oa(pc(46,41,"lang.black")),no(3),Oa(pc(49,43,"lang.blue")),no(3),Oa(pc(52,45,"lang.red")),no(3),fa("background-color",e.preferenceInfo.writingColor),no(5),Oa(pc(60,47,"lang.signatureScaling")),no(5),Vr("disabled",e.originalSize)("ngModel",e.signatureScaling),no(3),Vr("ngIf",!e.originalSize),no(4),Oa(pc(72,49,"lang.originalSize")),no(2),Vr("checked",e.originalSize)}}function Xz(e,t){if(1&e){const e=qr();Hr(0,"ion-list"),Hr(1,"ion-item"),Ur(2,"ion-input",66),Hr(3,"ion-button",67),Xr("click",function(){return Lt(e),na(2).deleteSubstitute()}),Ur(4,"ion-icon",68),jr(),jr(),jr()}if(2&e){const e=na(2);no(2),Vr("value",e.authService.user.substituteUser)}}function Kz(e,t){if(1&e){const e=qr();Hr(0,"ion-list"),Hr(1,"ion-item"),Hr(2,"ion-searchbar",69),Xr("ionChange",function(t){return Lt(e),na(2).test(t)}),hc(3,"translate"),jr(),jr(),jr()}2&e&&(no(2),Vr("placeholder",pc(3,1,"lang.chooseSubstitute")))}function Jz(e,t){if(1&e&&(Hr(0,"ion-note",2),Da(1),jr()),2&e){const e=na().$implicit;no(1),Oa(e.email)}}function eV(e,t){1&e&&(Hr(0,"ion-note",74),Da(1),hc(2,"translate"),jr()),2&e&&(no(1),Oa(pc(2,1,"lang.delegatedUser")))}function tV(e,t){if(1&e){const e=qr();Hr(0,"ion-item"),Hr(1,"ion-checkbox",71),Xr("ionChange",function(t){return Lt(e),na(3).selectSubstitute(t.detail.value)}),jr(),Hr(2,"ion-label"),Da(3),jr(),Fr(4,Jz,2,1,"ion-note",72),Fr(5,eV,3,3,"ion-note",73),jr()}if(2&e){const e=t.$implicit;no(1),Vr("disabled",e.substitute)("value",e),no(2),Ta("",e.firstname," ",e.lastname,""),no(1),Vr("ngIf",!e.substitute),no(1),Vr("ngIf",e.substitute)}}function nV(e,t){if(1&e&&(Hr(0,"ion-list"),Fr(1,tV,6,6,"ion-item",70),jr()),2&e){const e=na(2);no(1),Vr("ngForOf",e.userList)}}function iV(e,t){if(1&e){const e=qr();Hr(0,"button",78),Xr("click",function(){Lt(e);const n=t.index;return na(3).toggleSignature(n)}),Ur(1,"img",79),jr()}if(2&e){const e=t.$implicit,n=na(3);ma("selected",e.substituted),no(1),Vr("src",n.sanitizer.bypassSecurityTrustUrl("data:image/png;base64,"+e.encodedSignature),os)}}function sV(e,t){if(1&e&&(Wr(0),Hr(1,"ion-item",26),Hr(2,"ion-label",75),Da(3),hc(4,"translate"),jr(),jr(),Hr(5,"div",76),Fr(6,iV,2,3,"button",77),jr(),Gr()),2&e){const e=na(2);no(3),Ma(" ",pc(4,2,"lang.signSubstituted")," : "),no(3),Vr("ngForOf",e.signaturesService.signaturesList)}}function oV(e,t){if(1&e&&(Wr(0),Fr(1,Xz,5,1,"ion-list",14),Fr(2,Kz,4,3,"ion-list",14),Fr(3,nV,2,1,"ion-list",14),Fr(4,sV,7,4,"ng-container",14),Gr()),2&e){const e=na();no(1),Vr("ngIf",null!==e.authService.user.substitute),no(1),Vr("ngIf",null===e.authService.user.substitute),no(1),Vr("ngIf",null===e.authService.user.substitute),no(1),Vr("ngIf",null!=e.authService.user.substitute&&e.signaturesService.signaturesList.length>0)}}function rV(e,t){if(1&e){const e=qr();Hr(0,"ion-footer",80),Hr(1,"ion-toolbar"),Hr(2,"ion-buttons",81),Hr(3,"ion-button",82),Xr("click",function(){return Lt(e),na().submitProfile()}),Hr(4,"ion-label"),Da(5),hc(6,"translate"),jr(),jr(),jr(),jr(),jr()}if(2&e){const e=na(),t=Br(27);no(3),Vr("disabled",e.allowValidate()||!t.form.valid),no(2),Oa(pc(6,2,"lang.save"))}}const aV=function(){return["info","pref"]};let lV=(()=>{class e{constructor(e,t,n,i,s,o,r,a,l,c,d){this.translate=e,this.http=t,this.router=n,this.sanitizer=i,this.notificationService=s,this.signaturesService=o,this.authService=r,this.cookieService=a,this.filtersService=l,this.renderer=c,this.modalController=d,this.currentTool="info",this.profileInfo={substitute:null,preferences:[]},this.preferenceInfo={},this.avatarInfo={picture:"",pictureOrientation:""},this.hideCurrentPassword=!0,this.hideNewPassword=!0,this.hideNewPasswordConfirm=!0,this.passwordRules={minLength:{enabled:!1,value:0},complexityUpper:{enabled:!1,value:0},complexityNumber:{enabled:!1,value:0},complexitySpecial:{enabled:!1,value:0},renewal:{enabled:!1,value:0},historyLastUse:{enabled:!1,value:0}},this.password={currentPassword:"",newPassword:"",passwordConfirmation:""},this.handlePassword={error:!1,errorMsg:""},this.usersList=[],this.ruleText="",this.otherRuleText="",this.disableState=!1,this.msgButton="lang.validate",this.loading=!1,this.slideOpts={initialSlide:0,speed:400},this.showHideContent=!1,this.userList=[],this.signatureScaling=25,this.originalSize=!1}ngOnInit(){this.initProfileInfo(),this.getPassRules()}dismissModal(){this.modalController.dismiss("cancel")}test(e){""===e.detail.value?this.userList=[]:e.detail.value.length>=3&&this.http.get("../rest/autocomplete/users?search="+e.detail.value).pipe(Ov(e=>{this.userList=e.filter(e=>e.id!==this.profileInfo.id)}),fv(e=>(this.notificationService.handleErrors(e),lb(!1)))).subscribe()}initProfileInfo(){this.profileInfo=JSON.parse(JSON.stringify(this.authService.user)),this.preferenceInfo=this.profileInfo.preferences,this.avatarInfo.picture=this.profileInfo.picture,void 0!==this.preferenceInfo.signatureScaling?!1===this.preferenceInfo.signatureScaling?this.originalSize=!0:this.signatureScaling=this.preferenceInfo.signatureScaling:this.originalSize=!0,delete this.profileInfo.picture,delete this.profileInfo.preferences}initTab(e){this.currentTool=e,"pref"===e&&setTimeout(()=>{this.drawSample()},200)}closeProfile(){setTimeout(()=>{this.initProfileInfo()},200),this.dismissModal()}getPassRules(){this.handlePassword.error=!1,this.handlePassword.errorMsg="",this.http.get("../rest/passwordRules").subscribe(e=>{const t=[],n=[];e.rules.forEach(e=>{"minLength"===e.label?(this.passwordRules.minLength.enabled=e.enabled,this.passwordRules.minLength.value=e.value,e.enabled&&this.translate.get("lang.minLengthChar",{charLength:e.value}).subscribe(e=>{t.push(e)})):"complexityUpper"===e.label?(this.passwordRules.complexityUpper.enabled=e.enabled,this.passwordRules.complexityUpper.value=e.value,e.enabled&&t.push("lang.upperRequired")):"complexityNumber"===e.label?(this.passwordRules.complexityNumber.enabled=e.enabled,this.passwordRules.complexityNumber.value=e.value,e.enabled&&t.push("lang.numberRequired")):"complexitySpecial"===e.label?(this.passwordRules.complexitySpecial.enabled=e.enabled,this.passwordRules.complexitySpecial.value=e.value,e.enabled&&t.push("lang.specialCharRequired")):"renewal"===e.label?(this.passwordRules.renewal.enabled=e.enabled,this.passwordRules.renewal.value=e.value,e.enabled&&this.translate.get("lang.renewalInfo",{time:e.value}).subscribe(e=>{n.push(e)})):"historyLastUse"===e.label&&(this.passwordRules.historyLastUse.enabled=e.enabled,this.passwordRules.historyLastUse.value=e.value,e.enabled&&this.translate.get("lang.historyUseInfo",{countPwd:e.value}).subscribe(e=>{n.push(e)}))}),this.ruleText=t.join(", "),this.otherRuleText=n.join("<br/>")},e=>{this.notificationService.handleErrors(e)})}checkPasswordValidity(e){this.handlePassword.error=!0,!e.match(/[A-Z]/g)&&this.passwordRules.complexityUpper.enabled?this.handlePassword.errorMsg="lang.upperRequired":!e.match(/[0-9]/g)&&this.passwordRules.complexityNumber.enabled?this.handlePassword.errorMsg="lang.numberRequired":!e.match(/[^A-Za-z0-9]/g)&&this.passwordRules.complexitySpecial.enabled?this.handlePassword.errorMsg="lang.specialCharRequired":e.length<this.passwordRules.minLength.value&&this.passwordRules.minLength.enabled?this.translate.get("lang.minLengthChar",{charLength:this.passwordRules.minLength.value}).subscribe(e=>{this.handlePassword.errorMsg=e}):(this.handlePassword.error=!1,this.handlePassword.errorMsg="")}allowValidate(){return!!this.disableState||!(""===this.password.newPassword||!this.handlePassword.error&&this.password.newPassword===this.password.passwordConfirmation&&0!==this.password.currentPassword.length&&0!==this.password.newPassword.length&&0!==this.password.passwordConfirmation.length)}submitProfile(){return e=this,void 0,n=function*(){this.disableState=!0,this.msgButton="lang.sending",this.preferenceInfo=Object.assign(Object.assign({},this.preferenceInfo),{signatureScaling:!this.originalSize&&this.signatureScaling}),this.http.put("../rest/users/"+this.authService.user.id+"/preferences",this.preferenceInfo).pipe(Ov(()=>{this.disableState=!1,this.msgButton="lang.validate",this.setLang(this.preferenceInfo.lang),this.cookieService.set("maarchParapheurLang",this.preferenceInfo.lang)}),FL(()=>"default"===this.authService.authMode?this.http.put("../rest/users/"+this.authService.user.id,this.profileInfo):new Promise(e=>{e(!0)})),FL(()=>{if(this.authService.updateUserInfoWithTokenRefresh(),""===this.password.newPassword)return this.closeProfile(),this.notificationService.success("lang.profileUpdated"),lb(!1);if("default"===this.authService.authMode){const e=new fb({Authorization:"Bearer "+this.authService.getToken()});return this.http.put("../rest/users/"+this.authService.user.id+"/password",this.password,{observe:"response",headers:e})}return lb(!1)}),db(e=>!!e),Ov(e=>{this.authService.saveTokens(e.headers.get("Token"),e.headers.get("Refresh-Token")),this.password.newPassword="",this.password.passwordConfirmation="",this.password.currentPassword="",this.notificationService.success("lang.profileUpdated")}),fv(e=>(401===e.status?this.notificationService.error("lang.wrongPassword"):this.notificationService.handleErrors(e),lb(!1)))).subscribe()},new((t=void 0)||(t=Promise))(function(i,s){function o(e){try{a(n.next(e))}catch(t){s(t)}}function r(e){try{a(n.throw(e))}catch(t){s(t)}}function a(e){var n;e.done?i(e.value):(n=e.value,n instanceof t?n:new t(function(e){e(n)})).then(o,r)}a((n=n.apply(e,[])).next())});var e,t,n}changePicture(){this.msgButton="lang.sending",this.disableState=!0,this.http.put("../rest/users/"+this.authService.user.id+"/picture",this.avatarInfo).pipe(Ov(()=>{this.authService.user.picture=this.avatarInfo.picture,this.notificationService.success("lang.profileUpdated")}),Iv(()=>{this.msgButton="lang.validate",this.disableState=!1})).subscribe()}selectSubstitute(e){this.userList=[],this.http.put("../rest/users/"+this.authService.user.id+"/substitute",{substitute:e.id}).subscribe(()=>{this.authService.updateUserInfoWithTokenRefresh(),this.filtersService.resfreshDocuments(),this.signaturesService.documentsList.length>0&&!1===this.signaturesService.documentsList[this.signaturesService.indexDocumentsList].owner&&this.router.navigate(["/documents"]),this.notificationService.success("lang.substituteEnabled")})}deleteSubstitute(){confirm(this.translate.instant("lang.deleteSubstitution")+" ?")&&(this.profileInfo.substitute=null,this.http.put("../rest/users/"+this.authService.user.id+"/substitute",{substitute:this.profileInfo.substitute}).subscribe(()=>{this.authService.updateUserInfoWithTokenRefresh(),this.filtersService.resfreshDocuments(),this.signaturesService.documentsList.length>0&&!1===this.signaturesService.documentsList[this.signaturesService.indexDocumentsList].owner&&this.router.navigate(["/documents"]),this.notificationService.success("lang.substitutionDeleted")}))}handleFileInput(e){this.passwordContent&&this.passwordContent.close();const t=e.item(0);if(t.size<=5e6)if(-1!==["image/png","image/jpg","image/jpeg","image/gif"].indexOf(t.type)){const e=new FileReader;e.onloadend=t=>{const n=new Image;n.src=e.result.toString(),this.avatarInfo.picture=e.result,n.onload=()=>this.fixImgOrientation(n)},e.readAsDataURL(t)}else this.notificationService.error("lang.notAnImage");else this.notificationService.error("lang.imageTooBig")}fixImgOrientation(e){Bz.getData(e,()=>{let t=0;switch(Bz.getTag(e,"Orientation")){case 3:t=180;break;case 6:t=90;break;case 8:t=-90}this.avatarInfo.pictureOrientation=t,this.changePicture()})}drawSample(){const e=document.getElementById("sampleNote").getContext("2d");e.clearRect(0,0,100,100),e.beginPath(),e.lineWidth=this.preferenceInfo.writingSize,e.moveTo(0,0),e.lineTo(100,100),e.moveTo(100,0),e.lineTo(0,100),e.stroke()}initProfileTab(e){1===e.index&&this.drawSample()}counter(e){return new Array(e)}setLang(e){this.translate.use(e)}toggleSignature(e){this.http.patch("../rest/users/"+this.authService.user.id+"/signatures/"+this.signaturesService.signaturesList[e].id+"/substituted",{substituted:!this.signaturesService.signaturesList[e].substituted}).subscribe(()=>{this.signaturesService.signaturesList[e].substituted=!this.signaturesService.signaturesList[e].substituted,this.notificationService.success("lang.modificationSaved")})}}return e.\u0275fac=function(t){return new(t||e)(zr(GC),zr(Db),zr(r_),zr(qh),zr(ZC),zr(sS),zr(rS),zr(sP),zr(kF),zr(cl),zr(JA))},e.\u0275cmp=$e({type:e,selectors:[["app-my-profile"]],viewQuery:function(e,t){if(1&e&&Tc(zz,1),2&e){let e;Mc(e=Rc())&&(t.passwordContent=e.first)}},decls:33,vars:19,consts:[[3,"translucent"],["color","primary"],["slot","end"],[3,"click"],["slot","icon-only","name","close-outline"],[3,"value","ionChange"],["value","info"],["name","information-circle"],["value","pref"],["name","brush-outline"],["value","deleg"],["name","hand-left-outline"],[2,"display","contents",3,"ngSubmit"],["profileForm","ngForm"],[4,"ngIf"],["class","ion-no-border",4,"ngIf"],["lines","full",1,"ion-no-margin"],["slot","start",2,"cursor","pointer",3,"click"],[3,"src"],["color","secondary","position","floating"],["name","login","readonly","","required","",3,"maxlength","ngModel","ngModelChange"],["type","file",2,"display","none",3,"change"],["uploadFile",""],["name","email","pattern","(^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\\.[a-zA-Z0-9-.]+$)","required","",3,"maxlength","ngModel","readonly","ngModelChange"],["name","firstname","required","",3,"maxlength","ngModel","readonly","ngModelChange"],["name","lastname","required","",3,"maxlength","ngModel","readonly","ngModelChange"],["lines","none"],["color","success",4,"ngIf"],["color","danger",4,"ngIf"],["color","secondary","position","stacked"],["name","currentPassword",3,"ngModel","placeholder","type","ngModelChange"],["slot","end","color","light",1,"showpassButton",3,"click"],["slot","icon-only","color","primary",3,"name"],["name","newPassword",3,"ngModel","placeholder","type","ngModelChange","keyup"],["name","passwordConfirmation",3,"ngModel","placeholder","type","ngModelChange"],["color","danger"],["color","success"],["slot","start",3,"checked","ionChange"],["position","floating","color","secondary"],["name","langUser",3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],["name","writingMode",3,"ngModel","ngModelChange"],["value","direct"],["value","stylus"],[1,"fab","fa-apple"],[3,"innerHTML",4,"ngIf"],["name","writingSize",3,"ngModel","ngModelChange","ionChange"],["id","sampleNote","width","100","height","100"],["name","writingColor",3,"ngModel","ngModelChange"],["value","#000000"],["value","#1a75ff"],["value","#FF0000"],[2,"height","25px","width","25px","border-radius","20px"],["color","secondary",2,"opacity","1","margin-left","15px"],["size","7"],["lines","none",2,"margin-left","-10px"],["min","10","max","50","pin","","color","primary","name","signatureScaling",3,"disabled","ngModel","ngModelChange"],["slot","start","size","small","name","scan-circle-outline"],["slot","end","name","scan-outline"],["style","margin-left: 20px; font-size: 14px;",3,"innerHTML",4,"ngIf"],["size","5"],["lines","none",2,"margin-top","22px","margin-left","10px"],["slot","start","name","originalSize","color","primary",2,"cursor","pointer",3,"checked","ionChange"],[3,"value"],[3,"innerHTML"],[2,"margin-left","20px","font-size","14px",3,"innerHTML"],["readonly","",3,"value"],["slot","end","color","danger",3,"click"],["name","close-outline"],[3,"placeholder","ionChange"],[4,"ngFor","ngForOf"],["color","primary","slot","start",3,"disabled","value","ionChange"],["slot","end",4,"ngIf"],["slot","end","color","danger",4,"ngIf"],["slot","end","color","danger"],["color","secondary"],[2,"display","grid","grid-template-columns","repeat(2, 1fr)"],["type","button","class","signListButton","mat-stroked-button","",3,"selected","click",4,"ngFor","ngForOf"],["type","button","mat-stroked-button","",1,"signListButton",3,"click"],[2,"width","190px",3,"src"],[1,"ion-no-border"],[1,"ion-justify-content-center"],["type","submit","color","primary",3,"disabled","click"]],template:function(e,t){1&e&&(Hr(0,"ion-header",0),Hr(1,"ion-toolbar",1),Hr(2,"ion-title"),Da(3),hc(4,"translate"),jr(),Hr(5,"ion-buttons",2),Hr(6,"ion-button",3),Xr("click",function(){return t.dismissModal()}),Ur(7,"ion-icon",4),jr(),jr(),jr(),jr(),Hr(8,"ion-header"),Hr(9,"ion-toolbar"),Hr(10,"ion-segment",5),Xr("ionChange",function(e){return t.initTab(e.detail.value)}),Hr(11,"ion-segment-button",6),Hr(12,"ion-label"),Da(13),hc(14,"translate"),jr(),Ur(15,"ion-icon",7),jr(),Hr(16,"ion-segment-button",8),Hr(17,"ion-label"),Da(18),hc(19,"translate"),jr(),Ur(20,"ion-icon",9),jr(),Hr(21,"ion-segment-button",10),Hr(22,"ion-label"),Da(23),hc(24,"translate"),jr(),Ur(25,"ion-icon",11),jr(),jr(),jr(),jr(),Hr(26,"form",12,13),Xr("ngSubmit",function(){return t.submitProfile()}),Hr(28,"ion-content"),Fr(29,Uz,30,27,"ng-container",14),Fr(30,Qz,74,51,"ng-container",14),Fr(31,oV,5,4,"ng-container",14),jr(),jr(),Fr(32,rV,7,4,"ion-footer",15)),2&e&&(Vr("translucent",!0),no(3),Oa(pc(4,10,"lang.myProfil")),no(7),Vr("value",t.currentTool),no(3),Oa(pc(14,12,"lang.informations")),no(5),Oa(pc(19,14,"lang.preferences")),no(5),Oa(pc(24,16,"lang.substitute")),no(6),Vr("ngIf","info"===t.currentTool),no(1),Vr("ngIf","pref"===t.currentTool),no(1),Vr("ngIf","deleg"===t.currentTool),no(1),Vr("ngIf",rc(18,aV).indexOf(t.currentTool)>-1))},directives:[Vx,vA,mA,Cx,Ax,Nx,cA,ox,dA,Zx,Lm,am,Mm,Tx,Wu,Qx,Gx,wx,Wx,ax,Jm,tb,rm,Rm,ib,Xx,tA,bA,J_,uA,ju,hA,aA,Mx,sA,lA,Dx,gM,Bx],pipes:[$C],styles:['.sidebar[_ngcontent-%COMP%]{position:relative;height:100%;overflow:auto}.sidebar-header[_ngcontent-%COMP%]{background:#f1f4f4;height:50px;display:flex;align-items:center;justify-content:center;font-size:14px;font-weight:600;padding-top:10px}.sidebar-header-icon[_ngcontent-%COMP%]{margin-right:15px;position:relative}.sidebar-header-icon.notification[_ngcontent-%COMP%]:after{position:absolute;right:-5px;top:-5px;width:10px;height:10px;border-radius:50%;background:#e74c3c;content:""}.sidebar-header-subtitle[_ngcontent-%COMP%]{color:#9b9b9b}.sidebar-btn[_ngcontent-%COMP%]{height:50px;display:flex;align-items:center;justify-content:space-around}.sidebar[_ngcontent-%COMP%]   .nav[_ngcontent-%COMP%]{margin-top:0}.profile-header[_ngcontent-%COMP%]{background:#135f7f;height:95px;display:flex;justify-content:center;position:relative}.user[_ngcontent-%COMP%]{color:#fff;color:#f99830;position:absolute;top:15px;font-weight:700;font-size:20px}.input-row[_ngcontent-%COMP%]{width:100%;padding-top:10px;padding-bottom:10px}.profile-content[_ngcontent-%COMP%]{padding:10px;text-align:center}.actions[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{padding:10px;margin:10px;color:#fff;font-size:20px}.actions[_ngcontent-%COMP%]   .cancel[_ngcontent-%COMP%]{position:absolute;top:0;left:0;height:65px;width:65px;font-size:35px}.actions[_ngcontent-%COMP%]   .validate[_ngcontent-%COMP%]{position:absolute;top:10px;right:0;font-size:20px}canvas[_ngcontent-%COMP%]{background-color:#f1f4f4}fieldset[_ngcontent-%COMP%]{border:1px solid #f1f4f4;align-items:center}legend[_ngcontent-%COMP%]{color:#f99830}.form-container[_ngcontent-%COMP%]{display:table;width:100%}.form-2-col[_ngcontent-%COMP%]{width:50%}.form-2-col[_ngcontent-%COMP%], .form-col[_ngcontent-%COMP%]{display:table-cell;vertical-align:middle}.notification[_ngcontent-%COMP%]{text-align:left;padding:10px}.panel-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;position:relative;height:100%;overflow:hidden}.panel-header[_ngcontent-%COMP%]{box-shadow:0 0 10px 0 #656565;color:#fff;background:#135f7f;height:95px;display:flex;justify-content:center;position:relative;font-size:20px;align-items:center}.panel-content[_ngcontent-%COMP%]{flex:1;overflow:auto}.mat-icon[_ngcontent-%COMP%]{height:auto}.selected[_ngcontent-%COMP%]{border:solid #f99830}.selectedSubstitute[_ngcontent-%COMP%]{width:100%}.selectedSubstitute[_ngcontent-%COMP%]    .mat-input-element{cursor:default}.selectedSubstitute[_ngcontent-%COMP%]    .mat-form-field-suffix{top:0;display:flex}.showpassButton[_ngcontent-%COMP%]{--background:none;--box-shadow:none}']}),e})();function cV(e,t){if(1&e){const e=qr();Hr(0,"ion-button",3),Xr("click",function(){return Lt(e),na().menu.open("left-menu")}),Da(1),hc(2,"translate"),jr()}2&e&&(no(1),Ma(" ",pc(2,1,"lang.accessMenu")," "))}let dV=(()=>{class e{constructor(e,t,n,i){this.signaturesService=e,this.translate=t,this.menu=n,this.modalController=i,this.loading=!1}ngOnInit(){this.menu.enable(!0,"left-menu"),this.menu.enable(!1,"right-menu"),this.menu.open("left-menu")}}return e.\u0275fac=function(t){return new(t||e)(zr(sS),zr(GC),zr(KA),zr(JA))},e.\u0275cmp=$e({type:e,selectors:[["ng-component"]],decls:3,vars:1,consts:[["color","primary"],["svgIcon","maarchLogo",1,"maarchLogo"],["class","menu-button","color","light","fill","outline","size","large",3,"click",4,"ngIf"],["color","light","fill","outline","size","large",1,"menu-button",3,"click"]],template:function(e,t){1&e&&(Hr(0,"ion-content",0),Ur(1,"mat-icon",1),Fr(2,cV,3,3,"ion-button",2),jr()),2&e&&(no(2),Vr("ngIf",t.signaturesService.mobileMode))},directives:[Tx,tT,Wu,Ax],pipes:[$C],styles:[".maarchLogo[_ngcontent-%COMP%]{top:50%;width:250px;height:auto}.maarchLogo[_ngcontent-%COMP%], .menu-button[_ngcontent-%COMP%]{position:absolute;left:50%;transform:translate(-50%,-50%)}.menu-button[_ngcontent-%COMP%]{top:60%}"]}),e})();var uV=function(e,t,n,i){return new(n||(n=Promise))(function(s,o){function r(e){try{l(i.next(e))}catch(t){o(t)}}function a(e){try{l(i.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?s(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(r,a)}l((i=i.apply(e,t||[])).next())})};function hV(e,t){if(1&e){const e=qr();Hr(0,"ion-chip",25),Xr("click",function(){Lt(e);const t=na().$implicit,n=na().index;return na().goToSignUserPage(n,t.page)}),hc(1,"translate"),Hr(2,"ion-label"),Da(3),jr(),jr()}if(2&e){const e=na().$implicit,t=na().index,n=na();Vr("title",pc(1,3,"lang.accessToPage")+" "+e.page)("color",t===n.currentUser&&e.page===n.currentPage?"primary":"medium"),no(3),Oa(e.page)}}function pV(e,t){if(1&e&&(Wr(0),Fr(1,hV,4,5,"ion-chip",24),Gr()),2&e){const e=t.$implicit,n=na().index;no(1),Vr("ngIf",e.sequence==n)}}function gV(e,t){if(1&e&&(Hr(0,"ion-segment-button",21),Hr(1,"ion-label"),Hr(2,"h2"),Da(3),jr(),Hr(4,"p",22),Fr(5,pV,2,1,"ng-container",7),jr(),jr(),Ur(6,"ion-icon",23),jr()),2&e){const e=t.$implicit,n=t.index,i=na();Vr("value",n),no(3),Oa(e.userDisplay),no(2),Vr("ngForOf",i.signList),no(1),Vr("name","sign"===e.mode?"pencil-outline":"checkmark-done-outline")}}const fV=function(e,t){return{x:e,y:t}};function mV(e,t){if(1&e){const e=qr();Hr(0,"div",27),Xr("movingOffset",function(){return Lt(e),na(2).dragging=!0})("endOffset",function(t){Lt(e);const n=na(2);return n.moveSign(t,n.i)})("click",function(){Lt(e);const t=na().$implicit,n=na();return n.currentUser!=t.sequence&&n.goToSignUserPage(t.sequence,n.currentPage)}),Hr(1,"ion-buttons",28),Hr(2,"ion-button",29),Xr("click",function(){Lt(e);const t=na().index;return na().deleteSign(t)}),hc(3,"translate"),Ur(4,"ion-icon",30),jr(),jr(),Hr(5,"span",31),Da(6),jr(),Da(7),hc(8,"uppercase"),hc(9,"translate"),jr()}if(2&e){const e=na().$implicit,t=na(),n=Br(11);fa("width",25,"%"),ma("signDisabled",t.currentUser!==e.sequence)("hide",!t.pagesLoaded),Vr("position",lc(20,fV,e.position.positionX*t.workingAreaWidth/100,e.position.positionY*t.workingAreaHeight/100))("ngDraggable",t.currentUser===e.sequence)("preventDefaultEvent",!1)("bounds",n)("inBounds",!0),no(2),Vr("title",pc(3,14,"lang.delete")),no(4),Oa(t.getUserName(e.sequence)),no(1),Ma(" ",pc(8,16,pc(9,18,"lang.signature"))," ")}}function bV(e,t){if(1&e&&(Wr(0),Fr(1,mV,10,23,"div",26),Gr()),2&e){const e=t.$implicit,n=na();no(1),Vr("ngIf",e.page===n.currentPage)}}function vV(e,t){if(1&e){const e=qr();Hr(0,"ion-button",32),Xr("click",function(){return Lt(e),na().initSign()}),Da(1),hc(2,"translate"),jr()}2&e&&(no(1),Ma(" ",pc(2,1,"lang.createSignaturePosition"),""))}function yV(e,t){if(1&e&&(Hr(0,"ion-select-option",33),Da(1),jr()),2&e){const e=t.index;Vr("value",t.$implicit),no(1),Oa(e+1)}}function wV(e,t){if(1&e){const e=qr();Hr(0,"ion-fab-button",36),Xr("click",function(){Lt(e);const t=na(2);return t.changePage(t.currentPage-1)}),Ur(1,"ion-icon",37),jr()}}function _V(e,t){if(1&e){const e=qr();Hr(0,"ion-fab-button",38),Xr("click",function(){Lt(e);const t=na(2);return t.changePage(t.currentPage+1)}),Ur(1,"ion-icon",39),jr()}}function xV(e,t){if(1&e&&(Wr(0),Fr(1,wV,2,0,"ion-fab-button",34),Fr(2,_V,2,0,"ion-fab-button",35),Gr()),2&e){const e=na();no(1),Vr("ngIf",e.currentPage>1),no(1),Vr("ngIf",e.currentPage<e.pages.length)}}let AV=(()=>{class e{constructor(e,t,n,i,s,o){this.translate=e,this.http=t,this.signaturesService=n,this.pdfViewerService=i,this.modalController=s,this.loadingController=o,this.workflow=[],this.resource=[],this.pdfContent=null,this.loading=!1,this.dragging=!1,this.pages=[],this.currentUser=0,this.currentPage=1,this.currentSignature={positionX:0,positionY:0},this.workingAreaWidth=0,this.workingAreaHeight=0,this.signList=[],this.imgContent=null,this.load=null,this.pagesLoaded=!1}ngOnInit(){this.loadingController.create({message:this.translate.instant("lang.processing"),spinner:"dots"}).then(e=>{this.load=e,this.load.present()}),this.resource.signPos&&this.initSignPos()}initSignPos(){this.workflow.forEach((e,t)=>{var n;(null===(n=e.signaturePositions)||void 0===n?void 0:n.length)>0&&(this.signList=this.signList.concat(e.signaturePositions.filter(e=>e.mainDocument===this.resource.mainDocument).map(e=>Object.assign(Object.assign({},e),{sequence:t}))))})}onSubmit(){this.modalController.dismiss(this.formatData())}onPagesLoaded(e){return uV(this,void 0,void 0,function*(){this.pages=Array.from({length:e.pagesCount}).map((e,t)=>t+1),this.changePage(1)})}exportAsImage(){return uV(this,void 0,void 0,function*(){const e=yield this.pdfViewerService.getPageAsImage(this.currentPage,{width:1e3});this.getImageDimensions(e),this.imgContent=e,this.pagesLoaded=!0})}getImageDimensions(e){const t=new Image;t.onload=e=>{this.workingAreaWidth=e.target.naturalWidth,this.workingAreaHeight=e.target.naturalHeight},t.src=e}changePage(e){this.currentPage=e,this.exportAsImage()}moveSign(e,t){const n=100*e.x/this.workingAreaWidth,i=100*e.y/this.workingAreaHeight;this.signList.filter(e=>e.sequence===this.currentUser&&e.page===this.currentPage)[0].position.positionX=n,this.signList.filter(e=>e.sequence===this.currentUser&&e.page===this.currentPage)[0].position.positionY=i,this.dragging=!1}emptySign(){return 0===this.signList.filter(e=>e.sequence===this.currentUser&&e.page===this.currentPage).length}initSign(){this.signList.push({sequence:this.currentUser,page:this.currentPage,position:{positionX:75,positionY:90}});let e=0;Array.from(document.getElementsByClassName("drag-scroll-content")).forEach((t,n)=>{if(null!==t.offsetParent)return e=n,!0}),document.getElementsByClassName("drag-scroll-content")[e].scrollTop=this.workingAreaHeight}getUserSignPosPage(e){return this.signList.filter(t=>t.sequence===e)}selectUser(e){this.currentUser=+e}getUserName(e){return this.workflow[e].userDisplay}goToSignUserPage(e,t){this.currentUser=e,this.currentPage=t,this.exportAsImage()}deleteSign(e){this.signList.splice(e,1)}formatData(){let e=[];return this.workflow.forEach((t,n)=>{this.signList.filter(e=>e.sequence===n).length>0&&(e=e.concat(this.signList.filter(e=>e.sequence===n)))}),e}imageLoaded(e){this.load.dismiss()}}return e.\u0275fac=function(t){return new(t||e)(zr(GC),zr(Db),zr(sS),zr(QS),zr(JA),zr(XA))},e.\u0275cmp=$e({type:e,selectors:[["ng-component"]],inputs:{workflow:"workflow",resource:"resource",pdfContent:"pdfContent"},decls:37,vars:35,consts:[[3,"translucent"],["color","primary"],["color","warning","scrollable","",2,"justify-content","center",3,"value","ionChange"],["layout","icon-start",3,"value",4,"ngFor","ngForOf"],[2,"overflow","auto","height","100%","width","100%","margin","auto",3,"drag-disabled","drag-scroll-disabled"],["id","myBounds",2,"margin","auto","position","relative","box-shadow","0px 0px 5px 0px #656565"],["myBounds",""],[4,"ngFor","ngForOf"],[1,"img-content",3,"src","ionImgDidLoad"],["color","primary","style","position: fixed;top: 50%;left: 50%;transform: translate(-50%,-50%);font-size:20px;",3,"click",4,"ngIf"],[2,"display","none",3,"src","useBrowserLocale","textLayer","pdfLoaded"],[1,"page-info"],[1,"page-info-doc"],[1,"page-info-page",3,"click"],["interface","action-sheet","hidden","true",2,"max-height","30%",3,"cancelText","ionChange"],["pagesList",""],[3,"value",4,"ngFor","ngForOf"],[4,"ngIf"],[1,"ion-no-border","footer-buttons"],["type","button","color","primary","fill","outline","shape","round","size","large",3,"click"],["type","button","color","medium","fill","outline","shape","round","size","large",3,"click"],["layout","icon-start",3,"value"],[1,"chip-item-content"],[3,"name"],["class","chip-item","outline","",3,"title","color","click",4,"ngIf"],["outline","",1,"chip-item",3,"title","color","click"],["class","signature",3,"signDisabled","position","width","ngDraggable","preventDefaultEvent","bounds","inBounds","hide","movingOffset","endOffset","click",4,"ngIf"],[1,"signature",3,"position","ngDraggable","preventDefaultEvent","bounds","inBounds","movingOffset","endOffset","click"],[2,"position","absolute","top","-50px","right","0px"],["fill","clear","slot","icon-only","shape","round","size","small","color","danger",3,"title","click"],["slot","icon-only","name","trash-outline"],[1,"signUserName"],["color","primary",2,"position","fixed","top","50%","left","50%","transform","translate(-50%,-50%)","font-size","20px",3,"click"],[3,"value"],["class","paginate-left",3,"click",4,"ngIf"],["class","paginate-right",3,"click",4,"ngIf"],[1,"paginate-left",3,"click"],["name","chevron-back-outline"],[1,"paginate-right",3,"click"],["name","chevron-forward-outline"]],template:function(e,t){if(1&e){const e=qr();Hr(0,"ion-header",0),Hr(1,"ion-toolbar",1),Hr(2,"ion-title"),Da(3),hc(4,"translate"),jr(),jr(),Hr(5,"ion-toolbar",1),Hr(6,"ion-segment",2),Xr("ionChange",function(e){return t.selectUser(e.detail.value)}),Fr(7,gV,7,4,"ion-segment-button",3),jr(),jr(),jr(),Hr(8,"ion-content"),Hr(9,"drag-scroll",4),Hr(10,"div",5,6),Fr(12,bV,2,1,"ng-container",7),Hr(13,"ion-img",8),Xr("ionImgDidLoad",function(e){return t.imageLoaded(e)}),jr(),Fr(14,vV,3,3,"ion-button",9),jr(),jr(),Hr(15,"ngx-extended-pdf-viewer",10),Xr("pdfLoaded",function(e){return t.onPagesLoaded(e)}),jr(),Hr(16,"section",11),Hr(17,"div",12),Da(18),jr(),Hr(19,"div",13),Xr("click",function(){Lt(e);const n=Br(23);return t.pages.length>1&&n.open()}),Da(20),hc(21,"translate"),jr(),Hr(22,"ion-select",14,15),Xr("ionChange",function(e){return t.changePage(e.target.value)}),hc(24,"translate"),Fr(25,yV,2,2,"ion-select-option",16),jr(),jr(),Fr(26,xV,3,2,"ng-container",17),jr(),Hr(27,"ion-footer",18),Hr(28,"div"),Hr(29,"ion-button",19),Xr("click",function(){return t.onSubmit()}),Hr(30,"ion-label"),Da(31),hc(32,"translate"),jr(),jr(),Hr(33,"ion-button",20),Xr("click",function(){return t.modalController.dismiss()}),Hr(34,"ion-label"),Da(35),hc(36,"translate"),jr(),jr(),jr(),jr()}2&e&&(Vr("translucent",!0),no(3),Oa(pc(4,25,"lang.adminSignaturesPositions")),no(3),Vr("value",t.currentUser),no(1),Vr("ngForOf",t.workflow),no(2),Vr("drag-disabled",t.dragging&&!t.signaturesService.mobileMode)("drag-scroll-disabled",t.dragging&&t.signaturesService.mobileMode),no(1),fa("width",t.workingAreaWidth,"px")("height",t.workingAreaHeight,"px"),no(2),Vr("ngForOf",t.signList),no(1),Vr("src",t.imgContent),no(1),Vr("ngIf",t.emptySign()),no(1),Vr("src",t.pdfContent)("useBrowserLocale",!0)("textLayer",!1),no(3),Oa(t.resource.title),no(2),Ia("",pc(21,27,"lang.page")," ",t.currentPage," / ",t.pages.length,""),no(2),Vr("cancelText",pc(24,29,"lang.cancel")),no(3),Vr("ngForOf",t.pages),no(1),Vr("ngIf",t.pages.length>1),no(5),Oa(pc(32,31,"lang.save")),no(4),Oa(pc(36,33,"lang.cancel")))},directives:[Vx,vA,mA,cA,ox,ju,Tx,Yk,Hx,Wu,ZS,uA,Bx,Ax,Zx,dA,Nx,Ox,Kk,Cx,hA,Lx],pipes:[$C,ah],styles:[".containerMobile[_ngcontent-%COMP%]{flex-direction:column}.containerMobile[_ngcontent-%COMP%]   .signPosForm[_ngcontent-%COMP%]{flex:none!important;height:auto}.containerMobile[_ngcontent-%COMP%]   .signatureContainer[_ngcontent-%COMP%], .signPosForm[_ngcontent-%COMP%]{flex:1}.signatureContainer[_ngcontent-%COMP%]{position:relative;overflow:auto;width:1050px;display:flex;justify-content:center}.posSignButton[_ngcontent-%COMP%]{position:-webkit-sticky;position:sticky;top:0;left:50%;transform:translateX(-50%)}.signature[_ngcontent-%COMP%]{z-index:2;position:absolute;border:1px dashed var(--ion-color-danger);background:rgba(var(--ion-color-danger-rgb),.6) none repeat scroll 0 0;font-weight:700;font-size:20px;color:#fff;height:110px;display:flex;align-items:center;justify-content:center}.signDisabled[_ngcontent-%COMP%]{z-index:1;opacity:.2;cursor:pointer}.signUserName[_ngcontent-%COMP%]{position:absolute;font-size:12px;bottom:20px;font-weight:400;color:#fff;font-style:italic}.chip-item-content[_ngcontent-%COMP%]{z-index:9999;position:absolute;margin:0;bottom:0}.chip-item[_ngcontent-%COMP%]{font-size:7px;width:15px;height:15px;padding:0;margin:0 5px;color:#fff;border-color:#fff;justify-content:center}img[_ngcontent-%COMP%]{pointer-events:none}.paginate-left[_ngcontent-%COMP%]{left:20px}.paginate-left[_ngcontent-%COMP%], .paginate-right[_ngcontent-%COMP%]{position:absolute;top:40%;transform:translateY(-50%);--background:hsla(0,0%,77.6%,0.5019607843137255);--color:#666}.paginate-right[_ngcontent-%COMP%]{right:20px}.page-info[_ngcontent-%COMP%]{position:absolute;bottom:70px;height:30px;width:auto;max-width:70%;color:rgba(var(--ion-color-dark-rgb),.8);font-size:12px;font-weight:300;line-height:30px;display:flex;align-items:center;justify-content:center;opacity:.5;left:50%;transform:translateX(-50%);font-weight:500;transition:all .3s ease-in-out;z-index:9999}.page-info-doc[_ngcontent-%COMP%]{max-width:80%;background-color:#f1f4f4;border-radius:14px;padding:0 20px;z-index:1;white-space:pre;overflow:hidden;text-overflow:ellipsis}.page-info-page[_ngcontent-%COMP%]{cursor:pointer;text-align:center;border-radius:0 14px 14px 0;padding:0 20px;background:#fff;border:1px solid #ecf0f1;margin-left:-15px;height:28px;white-space:pre;display:flex;align-items:center}.page-info[_ngcontent-%COMP%]:hover{opacity:1}.hide[_ngcontent-%COMP%]{display:none}"]}),e})(),CV=(()=>{class e{constructor(){this.fileDropped=new yc,this.disabled=!1,this.background="none",this.opacity="1"}onDragOver(e){this.disabled||(e.preventDefault(),e.stopPropagation(),this.background="#9ecbec",this.opacity="0.8")}onDragLeave(e){this.disabled||(e.preventDefault(),e.stopPropagation(),this.background="rgba(255,255,255,0)",this.opacity="1")}ondrop(e){if(!this.disabled){e.preventDefault(),e.stopPropagation(),this.background="rgba(255,255,255,0)",this.opacity="1";const t=e.dataTransfer.files;t.length>0&&this.fileDropped.emit(t)}}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Ke({type:e,selectors:[["","appUploadFileDragDrop",""]],hostVars:4,hostBindings:function(e,t){1&e&&Xr("dragover",function(e){return t.onDragOver(e)})("dragleave",function(e){return t.onDragLeave(e)})("drop",function(e){return t.ondrop(e)}),2&e&&fa("background-color",t.background)("opacity",t.opacity)},inputs:{disabled:"disabled"},outputs:{fileDropped:"fileDropped"}}),e})();var SV=function(e,t,n,i){return new(n||(n=Promise))(function(s,o){function r(e){try{l(i.next(e))}catch(t){o(t)}}function a(e){try{l(i.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?s(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(r,a)}l((i=i.apply(e,t||[])).next())})};const kV=["appVisaWorkflow"],PV=["rightContent"],EV=["docToUpload"];function DV(e,t){1&e&&Ur(0,"ion-icon",34)}function OV(e,t){1&e&&Ur(0,"ion-icon",35)}function MV(e,t){1&e&&Ur(0,"i",36)}function TV(e,t){if(1&e){const e=qr();Hr(0,"ion-item"),Hr(1,"ion-buttons",2),Hr(2,"ion-button",22),Xr("click",function(){const e=t.$implicit;return e.mainDocument=!e.mainDocument}),hc(3,"translate"),hc(4,"translate"),Fr(5,DV,1,0,"ion-icon",23),Fr(6,OV,1,0,"ion-icon",24),jr(),jr(),Hr(7,"ion-item",25),Hr(8,"ion-label",26),Da(9),hc(10,"translate"),jr(),Hr(11,"ion-input",27),Xr("ngModelChange",function(e){return t.$implicit.reference=e}),hc(12,"translate"),jr(),jr(),Hr(13,"ion-item",25),Hr(14,"ion-label",26),Da(15),hc(16,"translate"),jr(),Hr(17,"ion-input",28),Xr("ngModelChange",function(e){return t.$implicit.title=e}),hc(18,"translate"),jr(),jr(),Hr(19,"ion-buttons",5),Hr(20,"ion-button",29),Xr("click",function(){Lt(e);const n=t.index;return na(2).signPos(n)}),hc(21,"translate"),Fr(22,MV,1,0,"i",30),Ur(23,"ion-icon",31),jr(),Hr(24,"ion-button",32),Xr("click",function(){Lt(e);const n=t.index;return na(2).deleteFile(n)}),hc(25,"translate"),Ur(26,"ion-icon",33),jr(),jr(),jr()}if(2&e){const e=t.$implicit,n=t.index,i=na(2);no(2),Vr("title",e.mainDocument?pc(3,15,"lang.docToSign"):pc(4,17,"lang.attachDocToSign")),no(3),Vr("ngIf",e.mainDocument),no(1),Vr("ngIf",!e.mainDocument),no(3),Oa(pc(10,19,"lang.reference")),no(2),ra("placeholder",pc(12,21,"lang.fileReference")),Vr("maxlength",53)("ngModel",e.reference)("disabled",!e.mainDocument),no(4),Ma("",pc(16,23,"lang.subject")," *"),no(2),ra("placeholder",pc(18,25,"lang.filename")),Vr("ngModel",e.title),no(3),Vr("disabled",!e.mainDocument)("title",pc(21,27,"lang.setSignaturesPosition")),no(2),Vr("ngIf",void 0!==i.filesToUpload[n].signPos&&i.filesToUpload[n].signPos.length>0),no(2),Vr("title",pc(25,29,"lang.delete"))}}function IV(e,t){if(1&e&&(Hr(0,"ion-list"),Hr(1,"ion-list-header"),Hr(2,"ion-label",1),Da(3),hc(4,"translate"),jr(),jr(),Fr(5,TV,27,31,"ion-item",21),jr()),2&e){const e=na();no(3),Oa(pc(4,2,"lang.documentsToUpload")),no(2),Vr("ngForOf",e.filesToUpload)}}function RV(e,t){1&e&&Ur(0,"app-visa-workflow",37,38),2&e&&Vr("editMode",!0)}let LV=(()=>{class e{constructor(e,t,n,i,s,o,r,a,l,c,d,u){this.http=e,this.translate=t,this.router=n,this.menu=i,this.signaturesService=s,this.viewContainerRef=o,this.notificationService=r,this.authService=a,this.loadingController=l,this.alertController=c,this.datePipe=d,this.modalController=u,this.loading=!1,this.filesToUpload=[],this.errors=[],this.fromDocument=null}ngOnInit(){}ionViewWillEnter(){this.menu.enable(!0,"left-menu"),this.menu.enable(!0,"right-menu"),this.filesToUpload=[],this.signaturesService.initTemplate(this.rightContent,this.viewContainerRef,"rightContent"),void 0!==window.history.state.documentId&&(this.fromDocument=window.history.state.documentId,this.getDocumentData(this.fromDocument))}getDocumentData(e){return new Promise(t=>{this.http.get("../rest/documents/"+e).pipe(Ov(n=>{let i="",s=n.document.reference.split("/");s=s.slice(3,s.length),s.length>0&&(i=s.join("/")),this.filesToUpload.push({title:n.document.title,reference:i,mainDocument:!0,content:"",linkId:n.document.linkId,metadata:n.document.metadata}),this.getDocumentContent(e),this.appVisaWorkflow.loadWorkflow(n.document.workflow.map(e=>(e.userSignatureModes.unshift("visa"),Object.assign(Object.assign({},e),{processDate:null,current:!1,role:"visa"===e.mode?"visa":e.signatureMode,modes:e.userSignatureModes}))));for(let e=0;e<n.document.attachments.length;e++)this.getAttachment(n.document.attachments[e].id);t(!0)}),fv(e=>(this.notificationService.handleErrors(e),lb(!1)))).subscribe()})}getDocumentContent(e){return new Promise(t=>{this.http.get(`../rest/documents/${e}/content?type=original`).pipe(Ov(e=>{this.filesToUpload[0].content=e.encodedDocument,t(!0)}),fv(e=>(this.notificationService.handleErrors(e),lb(!1)))).subscribe()})}getAttachment(e){return new Promise(t=>{this.http.get("../rest/attachments/"+e).pipe(Ov(e=>{this.filesToUpload.push({title:e.attachment.title,mainDocument:!1,content:e.attachment.encodedDocument}),t(!0)}),fv(e=>(this.notificationService.handleErrors(e),lb(!1)))).subscribe()})}ionViewWillLeave(){this.signaturesService.detachTemplate("rightContent")}onSubmit(){this.isValid()&&this.promptSaveDoc()}promptSaveDoc(){return SV(this,void 0,void 0,function*(){const e=yield this.alertController.create({cssClass:"alert-info-no-msg",header:this.translate.instant("lang.areYouSure"),inputs:[{name:"note",id:"note",type:"textarea",placeholder:this.translate.instant("lang.addNote")}],buttons:[{text:this.translate.instant("lang.cancel"),role:"cancel",cssClass:"secondary",handler:()=>{}},{text:this.translate.instant("lang.validate"),handler:e=>{this.loadingController.create({message:this.translate.instant("lang.processing"),spinner:"dots"}).then(t=>SV(this,void 0,void 0,function*(){t.present();const n=this.formatData(e.note);for(let e=0;e<n.length;e++)yield this.saveDocument(n[e],e);t.dismiss(),0===this.errors.length&&(this.notificationService.success("lang.documentsImported"),this.router.navigate(["/home"]))}))}}]});yield e.present()})}saveDocument(e,t){return new Promise(t=>{this.http.post("../rest/documents",e).pipe(Ov(()=>{this.errors=[]}),Iv(()=>t(!0)),fv(t=>(this.errors.push(e.title),this.notificationService.handleErrors(t),lb(!1)))).subscribe()})}formatData(e){const t=new Date;let n=null,i=null;""!==e&&(n={value:e,creator:`${this.authService.user.firstname} ${this.authService.user.lastname}`,creationDate:this.datePipe.transform(t,"dd-MM-y")});const s=[],o=this.filesToUpload.filter(e=>e.mainDocument),r=this.filesToUpload.filter(e=>!e.mainDocument);return o.length>1&&(i=this.datePipe.transform(t,"ddMMYhmmss")+"_"+Math.random().toString(36).substr(2,9)),o.forEach(e=>{const o={};null!==this.fromDocument&&e.metadata.forEach(e=>{o[e.label]=e.value});let a="";""!==e.reference&&(a=this.datePipe.transform(t,"y/MM/dd")+"/"+e.reference),s.push({title:e.title,reference:a,encodedDocument:e.content,isZipped:!1,linkId:null!==this.fromDocument?e.linkId:i,sender:`${this.authService.user.firstname} ${this.authService.user.lastname}`,notes:n,attachments:r.map(e=>({title:e.title,encodedDocument:e.content})),workflow:this.appVisaWorkflow.getCurrentWorkflow().map((t,n)=>({userId:t.userId,mode:this.authService.getWorkflowMode(t.role),signatureMode:this.authService.getSignatureMode(t.role),signaturePositions:void 0!==t.signaturePositions?this.formatPositions(t.signaturePositions.filter(t=>t.mainDocument===e.mainDocument&&void 0!==e.signPos)).map(e=>({page:e.page,positionX:e.position.positionX,positionY:e.position.positionY})):[]})),metadata:o})}),s}formatPositions(e){return delete e.mainDocument,e}dndUploadFile(e){this.uploadTrigger({target:{files:[e[0]]}})}uploadTrigger(e){if(e.target.files&&e.target.files[0]&&this.isExtensionAllowed(e.target.files)){for(let t=0;t<e.target.files.length;t++){const n=e.target.files[t].name,i={title:n.substr(0,n.lastIndexOf(".")),reference:n.substr(0,n.lastIndexOf(".")).substr(0,53),mainDocument:!0,content:""},s=new FileReader;s.readAsArrayBuffer(e.target.files[t]),s.onload=e=>{i.mainDocument=0===this.filesToUpload.length,i.reference=0===this.filesToUpload.length?i.reference:"",i.content=this.getBase64Document(e.target.result),this.filesToUpload.push(i),1===this.filesToUpload.length&&setTimeout(()=>{this.menu.open("right-menu")},500)}}this.fileImport.nativeElement.value=""}else this.loading=!1}isExtensionAllowed(e){for(let t=0;t<e.length;t++)if("pdf"!==e[t].name.toLowerCase().split(".").pop())return this.notificationService.error("lang.onlyPdfAuthorized"),!1;return!0}getBase64Document(e){const t=new Uint8Array(e).reduce((e,t)=>e+String.fromCharCode(t),"");return btoa(t)}deleteFile(e){this.filesToUpload.splice(e,1)}signPos(e){return SV(this,void 0,void 0,function*(){if(this.appVisaWorkflow.getCurrentWorkflow().length>0){this.appVisaWorkflow.getCurrentWorkflow().forEach((e,t)=>{void 0===e.signaturePositions&&(this.appVisaWorkflow.visaWorkflow[t].signaturePositions=[])});const t=yield this.modalController.create({component:AV,cssClass:"custom-alert-fullscreen",componentProps:{workflow:this.appVisaWorkflow.getCurrentWorkflow(),resource:this.filesToUpload[e],pdfContent:"data:application/pdf;base64,"+this.filesToUpload[e].content}});yield t.present();const{data:n}=yield t.onWillDismiss();void 0!==n&&(this.filesToUpload[e].signPos=n,this.appVisaWorkflow.setPositionsWorkfow(this.filesToUpload[e],n))}else this.notificationService.error("lang.mustSetWorkflowBeforeSignPositions")})}isValid(){return this.filesToUpload.filter(e=>""===e.title).length>0?(this.notificationService.error("lang.subjectMandatory"),!1):0===this.filesToUpload.filter(e=>e.mainDocument).length?(this.notificationService.error("lang.mainDocumentMandatory"),!1):0!==this.appVisaWorkflow.getCurrentWorkflow().length||(this.notificationService.error("lang.workflowUserstMandatory"),this.menu.open("right-menu"),!1)}}return e.\u0275fac=function(t){return new(t||e)(zr(Db),zr(GC),zr(r_),zr(KA),zr(sS),zr(Gl),zr(ZC),zr(rS),zr(XA),zr(QA),zr(lh),zr(JA))},e.\u0275cmp=$e({type:e,selectors:[["ng-component"]],viewQuery:function(e,t){if(1&e&&(Tc(kV,1),Tc(PV,3),Tc(EV,1)),2&e){let e;Mc(e=Rc())&&(t.appVisaWorkflow=e.first),Mc(e=Rc())&&(t.rightContent=e.first),Mc(e=Rc())&&(t.fileImport=e.first)}},features:[Ja([lh])],decls:31,vars:14,consts:[[3,"translucent"],["color","primary"],["slot","start"],["menu","left-menu"],[1,"ion-text-center"],["slot","end"],["menu","right-menu"],["name","list-outline"],[2,"display","flex","flex-direction","column","height","100%"],[4,"ngIf"],["type","file","name","files[]","multiple","","accept","application/pdf",2,"display","none",3,"change"],["docToUpload",""],["appUploadFileDragDrop","",1,"dnd-area",3,"fileDropped"],["fill","outline","color","medium","size","large",3,"click"],["lines","none",1,"ion-text-center","no-background"],["color","medium"],[1,"ion-no-border"],[1,"ion-text-center",2,"background","white"],["color","primary","shape","round","size","large","fill","outline",3,"click"],[2,"font-size","13px"],["rightContent",""],[4,"ngFor","ngForOf"],["fill","clear","slot","icon-only","shape","round","color","primary",3,"title","click"],["slot","icon-only","name","pencil-outline",4,"ngIf"],["slot","icon-only","name","document-attach-outline",4,"ngIf"],[2,"width","100%"],["position","floating","color","secondary"],["matInput","","type","text",3,"placeholder","maxlength","ngModel","disabled","ngModelChange"],["matInput","","type","text",3,"placeholder","ngModel","ngModelChange"],["fill","clear","slot","icon-only","shape","round","color","primary",3,"disabled","title","click"],["class","badge-sign-pos",4,"ngIf"],["slot","icon-only","name","contract-outline"],["fill","clear","slot","icon-only","shape","round","color","danger",3,"title","click"],["slot","icon-only","name","trash-outline"],["slot","icon-only","name","pencil-outline"],["slot","icon-only","name","document-attach-outline"],[1,"badge-sign-pos"],[2,"display","contents",3,"editMode"],["appVisaWorkflow",""]],template:function(e,t){if(1&e){const e=qr();Hr(0,"ion-header",0),Hr(1,"ion-toolbar",1),Hr(2,"ion-buttons",2),Ur(3,"ion-menu-button",3),jr(),Hr(4,"ion-title",4),Da(5),hc(6,"translate"),jr(),Hr(7,"ion-buttons",5),Hr(8,"ion-menu-button",6),Ur(9,"ion-icon",7),jr(),jr(),jr(),jr(),Hr(10,"ion-content"),Hr(11,"div",8),Fr(12,IV,6,4,"ion-list",9),Hr(13,"input",10,11),Xr("change",function(e){return t.uploadTrigger(e)}),jr(),Hr(15,"div",12),Xr("fileDropped",function(e){return t.dndUploadFile(e)}),Hr(16,"ion-button",13),Xr("click",function(){return Lt(e),Br(14).click()}),Da(17),hc(18,"translate"),jr(),Hr(19,"ion-item",14),Hr(20,"ion-label",15),Da(21),hc(22,"translate"),jr(),jr(),jr(),jr(),jr(),Hr(23,"ion-footer",16),Hr(24,"div",17),Hr(25,"ion-button",18),Xr("click",function(){return t.onSubmit()}),Hr(26,"ion-label",19),Da(27),hc(28,"translate"),jr(),jr(),jr(),jr(),Fr(29,RV,2,1,"ng-template",null,20,zc)}2&e&&(Vr("translucent",!0),no(5),Oa(pc(6,6,"lang.newDocumentToVisa")),no(7),Vr("ngIf",t.filesToUpload.length>0),no(5),Ma(" ",pc(18,8,"lang.chooseDocuments")," "),no(4),Ma(" ",pc(22,10,"lang.dndDocuments")," "),no(6),Oa(pc(28,12,"lang.validate")))},directives:[Vx,vA,Cx,Jx,mA,Nx,Tx,Wu,CV,Ax,Gx,Zx,Bx,Qx,Xx,ju,Wx,ax,tb,rm,Rm,CB],pipes:[$C],styles:[".dnd-area[_ngcontent-%COMP%]{border:5px dashed;margin:20px;text-align:center;color:grey;padding:50px 10px;flex:1;align-items:center;display:flex;flex-direction:column;justify-content:center}.no-background[_ngcontent-%COMP%]{--background:none} .alert-info-no-msg .alert-message{display:none} .alert-info-no-msg .alert-title{color:var(--ion-color-primary)}.badge-sign-pos[_ngcontent-%COMP%]{width:10px;height:10px;background:var(--ion-color-danger);position:absolute;top:0;right:0;border-radius:5px}"]}),e})();const FV=["searchInput"];function BV(e,t){if(1&e){const e=qr();Hr(0,"ion-searchbar",6,7),Xr("ngModelChange",function(t){return Lt(e),na().searchValue=t})("ionChange",function(t){return Lt(e),na().getDatas(t)}),hc(2,"translate"),jr()}2&e&&Vr("ngModel",na().searchValue)("placeholder",pc(2,2,"lang.search"))}function zV(e,t){if(1&e){const e=qr();Hr(0,"ion-item"),Hr(1,"ion-checkbox",10),Xr("ionChange",function(t){return Lt(e),na(2).selectItem(t.detail.value)}),jr(),Hr(2,"ion-label"),Da(3),jr(),Hr(4,"ion-note",11),Da(5),jr(),jr()}if(2&e){const e=t.$implicit;no(1),Vr("value",e),no(2),Ta("",e.firstname," ",e.lastname,""),no(2),Oa(e.email)}}function VV(e,t){if(1&e&&(Hr(0,"ion-list",8),Fr(1,zV,6,4,"ion-item",9),jr()),2&e){const e=na();no(1),Vr("ngForOf",e.itemList)}}function NV(e,t){1&e&&(Hr(0,"ion-label",12),Da(1),hc(2,"translate"),jr()),2&e&&(no(1),Oa(pc(2,1,"lang.noItem")))}function HV(e,t){if(1&e){const e=qr();Hr(0,"ion-chip",13),Xr("click",function(){Lt(e);const n=t.index;return na().removeItem(n)}),Hr(1,"ion-label",14),Da(2),jr(),Ur(3,"ion-icon",15),jr()}if(2&e){const e=t.$implicit;no(2),Ta("",e.firstname," ",e.lastname,"")}}function jV(e,t){if(1&e){const e=qr();Hr(0,"ion-buttons",11),Hr(1,"ion-button",16),Xr("click",function(){return Lt(e),na().toggleEdit()}),Hr(2,"ion-label",17),Da(3),hc(4,"translate"),jr(),jr(),jr()}2&e&&(no(3),Oa(pc(4,1,"lang.edit")))}let UV=(()=>{class e{constructor(e,t){this.http=e,this.notificationService=t,this.currentItems=[],this.selectedOpt=new yc,this.myControl=new km,this.loading=!1,this.searchValue="",this.editMode=!1,this.itemList=[]}ngOnInit(){}getDatas(e){""===e.detail.value?this.itemList=[]:this.http.get("../rest/autocomplete/users?search="+e.detail.value).pipe(Ov(e=>{this.itemList=e}),fv(e=>(this.notificationService.handleErrors(e),lb(!1)))).subscribe()}selectItem(e){this.currentItems.push(e),this.searchValue="",this.itemList=[],this.editMode=!1,this.selectedOpt.emit(e)}removeItem(e){this.currentItems.splice(e,1)}toggleEdit(){this.editMode=!this.editMode,this.editMode&&setTimeout(()=>{this.searchInput.setFocus()},0)}}return e.\u0275fac=function(t){return new(t||e)(zr(Db),zr(ZC))},e.\u0275cmp=$e({type:e,selectors:[["plugin-autocomplete"]],viewQuery:function(e,t){if(1&e&&Tc(FV,1),2&e){let e;Mc(e=Rc())&&(t.searchInput=e.first)}},inputs:{currentItems:"currentItems",singleMode:"singleMode",required:"required",options:["datas","options"],routeDatas:"routeDatas",placeholder:["labelPlaceholder","placeholder"],key:["targetSearchKey","key"],subInfoKey:"subInfoKey"},outputs:{selectedOpt:"triggerEvent"},decls:8,vars:5,consts:[[3,"ngModel","placeholder","ngModelChange","ionChange",4,"ngIf"],["class","item-list",4,"ngIf"],["lines","none"],["color","medium","style","font-style: italic;",4,"ngIf"],["style","height: auto;",3,"click",4,"ngFor","ngForOf"],["slot","end",4,"ngIf"],[3,"ngModel","placeholder","ngModelChange","ionChange"],["searchInput",""],[1,"item-list"],[4,"ngFor","ngForOf"],["color","primary","slot","start",3,"value","ionChange"],["slot","end"],["color","medium",2,"font-style","italic"],[2,"height","auto",3,"click"],[1,"ion-text-wrap"],["name","close-circle"],["size","small",3,"click"],["color","medium"]],template:function(e,t){1&e&&(Fr(0,BV,3,4,"ion-searchbar",0),Fr(1,VV,2,1,"ion-list",1),Hr(2,"ion-list"),Hr(3,"ion-item",2),Fr(4,NV,3,3,"ion-label",3),Hr(5,"p"),Fr(6,HV,4,2,"ion-chip",4),jr(),Fr(7,jV,5,3,"ion-buttons",5),jr(),jr()),2&e&&(Vr("ngIf",t.editMode),no(1),Vr("ngIf",t.itemList.length>0),no(3),Vr("ngIf",0===t.currentItems.length),no(2),Vr("ngForOf",t.currentItems),no(1),Vr("ngIf",!t.editMode))},directives:[Wu,Qx,Gx,ju,lA,ax,rm,Rm,Dx,J_,Zx,tA,Ox,Nx,Cx,Ax],pipes:[$C],styles:[""]}),e})();var WV=function(e,t,n,i){return new(n||(n=Promise))(function(s,o){function r(e){try{l(i.next(e))}catch(t){o(t)}}function a(e){try{l(i.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?s(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(r,a)}l((i=i.apply(e,t||[])).next())})};const GV=["appVisaWorkflow"],$V=["rightContent"];function qV(e,t){1&e&&Ur(0,"ion-icon",26)}function YV(e,t){1&e&&Ur(0,"ion-icon",27)}function ZV(e,t){1&e&&Ur(0,"ion-icon",28)}function QV(e,t){if(1&e){const e=qr();Hr(0,"ion-chip",21),Xr("click",function(){Lt(e);const t=na().$implicit;return na(2).removeFilter(t)}),hc(1,"translate"),Fr(2,qV,1,0,"ion-icon",22),Fr(3,YV,1,0,"ion-icon",23),Fr(4,ZV,1,0,"ion-icon",24),Hr(5,"ion-label"),Da(6),jr(),Ur(7,"ion-icon",25),jr()}if(2&e){const e=na().$implicit;Vr("title",pc(1,5,"lang."+e.id+"Search")),no(2),Vr("ngIf","title"===e.id),no(1),Vr("ngIf","reference"===e.id),no(1),Vr("ngIf","documentId"===e.id),no(2),Oa(e.val)}}function XV(e,t){if(1&e){const e=qr();Hr(0,"ion-chip",21),Xr("click",function(){Lt(e);const n=t.$implicit,i=na(2).$implicit;return na(2).removeFilter(i,n.id)}),hc(1,"translate"),Ur(2,"ion-icon",30),Hr(3,"ion-label"),Da(4),hc(5,"translate"),jr(),Ur(6,"ion-icon",25),jr()}if(2&e){const e=t.$implicit;Vr("title",pc(1,2,"lang.workflowStatesSearch")),no(4),Oa(pc(5,4,e.label))}}function KV(e,t){if(1&e&&(Hr(0,"div"),Fr(1,XV,7,6,"ion-chip",29),jr()),2&e){const e=na().$implicit;no(1),Vr("ngForOf",e.val)}}function JV(e,t){if(1&e){const e=qr();Hr(0,"ion-chip",21),Xr("click",function(){Lt(e);const n=t.$implicit,i=na(2).$implicit;return na(2).removeFilter(i,n)}),hc(1,"translate"),Ur(2,"ion-icon",31),Hr(3,"ion-label"),Da(4),jr(),Ur(5,"ion-icon",25),jr()}if(2&e){const e=t.$implicit;Vr("title",pc(1,3,"lang.workflowUsersSearch")),no(4),Ta("",e.firstname," ",e.lastname,"")}}function eN(e,t){if(1&e&&(Hr(0,"div"),Fr(1,JV,6,5,"ion-chip",29),jr()),2&e){const e=na().$implicit;no(1),Vr("ngForOf",e.val)}}function tN(e,t){if(1&e&&(Hr(0,"div"),Fr(1,QV,8,7,"ion-chip",20),Fr(2,KV,2,1,"div",10),Fr(3,eN,2,1,"div",10),jr()),2&e){const e=t.$implicit;no(1),Vr("ngIf",("title"===e.id||"reference"===e.id||"documentId"===e.id)&&""!==e.val),no(1),Vr("ngIf","workflowStates"===e.id&&e.val.length>0),no(1),Vr("ngIf","workflowUsers"===e.id&&e.val.length>0)}}function nN(e,t){if(1&e){const e=qr();Hr(0,"ion-toolbar",14),Hr(1,"div",15),Hr(2,"ion-button",16),Xr("click",function(){return Lt(e),na().clearFilters()}),hc(3,"translate"),Ur(4,"ion-icon",17),jr(),Hr(5,"div",18),Fr(6,tN,4,3,"div",19),jr(),jr(),jr()}if(2&e){const e=na();no(2),Vr("title",pc(3,2,"lang.clearFilters")),no(4),Vr("ngForOf",e.currentFilters)}}function iN(e,t){1&e&&(Hr(0,"ion-list",32),Hr(1,"ion-item",33),Hr(2,"ion-label",34),Da(3),hc(4,"translate"),jr(),jr(),jr()),2&e&&(no(3),Oa(pc(4,1,"lang.noResult")))}function sN(e,t){1&e&&Ur(0,"ion-icon",57)}function oN(e,t){1&e&&Ur(0,"ion-icon",58)}function rN(e,t){1&e&&Ur(0,"ion-icon",59)}function aN(e,t){if(1&e&&(Hr(0,"ion-badge",60),Da(1),hc(2,"translate"),jr()),2&e){const e=na().$implicit;no(1),Oa(pc(2,1,"lang."+e.mode+"User"))}}const lN=function(){return["END","STOP"]};function cN(e,t){if(1&e&&(Wr(0),Fr(1,sN,1,0,"ion-icon",52),Hr(2,"span",53),Da(3),hc(4,"translate"),Fr(5,oN,1,0,"ion-icon",54),Fr(6,rN,1,0,"ion-icon",55),Fr(7,aN,3,3,"ion-badge",56),jr(),Gr()),2&e){const e=t.$implicit,n=t.index,i=na(3);no(1),Vr("ngIf",n>0),no(1),ma("success",null!==e.processDate&&"STOP"!==e.status)("typist-interrupt","REF"===e.status)("interrupt",null===e.processDate&&"END"===e.status||"STOP"===e.status)("current",e.current)("no-visa",null===e.processDate&&null===e.status&&!e.current),no(1),Ma("",i.functionsService.empty(e.userDisplay)?pc(4,15,"lang.userDeleted"):e.userDisplay,"\xa0 "),no(2),Vr("ngIf",null!==e.processDate&&"REF"!==e.status&&"STOP"!==e.status),no(1),Vr("ngIf",null!==e.processDate&&"REF"===e.status),no(1),Vr("ngIf",null===e.processDate&&(null===e.status||rc(17,lN).indexOf(e.status)>-1))}}function dN(e,t){1&e&&Ur(0,"ion-icon",61)}function uN(e,t){1&e&&Ur(0,"ion-icon",62)}function hN(e,t){1&e&&Ur(0,"ion-icon",63)}function pN(e,t){1&e&&Ur(0,"ion-icon",64)}function gN(e,t){if(1&e&&(Wr(0),Ur(1,"ion-icon",66),Da(2),Gr()),2&e){const e=t.$implicit;no(2),Ma(" ",e," ")}}function fN(e,t){if(1&e&&(Hr(0,"p",65),Fr(1,gN,3,1,"ng-container",19),jr()),2&e){const e=na().$implicit;no(1),Vr("ngForOf",e.reason)}}function mN(e,t){if(1&e){const e=qr();Hr(0,"ion-button",67),Xr("click",function(t){Lt(e);const n=na().$implicit,i=Br(7),s=na(2);return t.stopPropagation(),s.toggleSlide(i,n.id)}),Ur(1,"ion-icon",68),jr()}}function bN(e,t){if(1&e){const e=qr();Hr(0,"ion-button",67),Xr("click",function(t){Lt(e);const n=na().$implicit,i=Br(7),s=na(2);return t.stopPropagation(),s.toggleSlide(i,n.id)}),Ur(1,"ion-icon",69),jr()}}function vN(e,t){if(1&e){const e=qr();Hr(0,"ion-item-option",50),Xr("click",function(){Lt(e);const t=na().$implicit;return na(2).openPromptProof(t)}),Ur(1,"ion-icon",70),Da(2),hc(3,"translate"),jr()}2&e&&(no(2),Ma(" ",pc(3,1,"lang.download")," "))}function yN(e,t){if(1&e){const e=qr();Hr(0,"ion-item"),Hr(1,"ion-label"),Hr(2,"ion-toolbar",37),Hr(3,"ion-title",38),Hr(4,"p",39),Fr(5,cN,8,18,"ng-container",19),jr(),jr(),jr(),Hr(6,"ion-item-sliding",40,41),Xr("ionDrag",function(n){Lt(e);const i=t.$implicit;return na(2).onSliding(n,i.id)}),Hr(8,"ion-item",33),Fr(9,dN,1,0,"ion-icon",42),Fr(10,uN,1,0,"ion-icon",43),Fr(11,hN,1,0,"ion-icon",44),Fr(12,pN,1,0,"ion-icon",45),Hr(13,"ion-label",46),Xr("click",function(){Lt(e);const n=t.$implicit;return na(2).goTo(n.id)}),hc(14,"translate"),Hr(15,"p"),Da(16),jr(),Hr(17,"h2"),Da(18),jr(),Fr(19,fN,2,1,"p",47),jr(),Hr(20,"ion-buttons",5),Fr(21,mN,2,0,"ion-button",48),Fr(22,bN,2,0,"ion-button",48),jr(),jr(),Hr(23,"ion-item-options"),Fr(24,vN,4,3,"ion-item-option",49),Hr(25,"ion-item-option",50),Xr("click",function(){Lt(e);const n=t.$implicit;return na(2).openActions(n)}),Ur(26,"ion-icon",51),Da(27),hc(28,"translate"),jr(),jr(),jr(),jr(),jr()}if(2&e){const e=t.$implicit,n=na(2);no(5),Vr("ngForOf",e.workflow),no(4),Vr("ngIf","PROG"==e.state),no(1),Vr("ngIf","STOP"==e.state),no(1),Vr("ngIf","VAL"==e.state),no(1),Vr("ngIf","REF"==e.state),no(1),Vr("title",pc(14,13,"lang.accessDocument")),no(3),Oa(e.reference),no(2),Oa(e.title),no(1),Vr("ngIf",e.reason.length>0),no(2),Vr("ngIf",n.openedLine===e.id),no(1),Vr("ngIf",n.openedLine!==e.id),no(2),Vr("ngIf","PROG"!==e.state),no(3),Ma(" ",pc(28,15,"lang.actions")," ")}}function wN(e,t){if(1&e&&(Hr(0,"ion-list"),Hr(1,"ion-virtual-scroll",35),Fr(2,yN,29,17,"ion-item",36),jr(),jr()),2&e){const e=na();no(1),Vr("items",e.ressources)}}function _N(e,t){if(1&e){const e=qr();Wr(0),Hr(1,"ion-item"),Hr(2,"ion-label",76),Da(3),hc(4,"translate"),jr(),Hr(5,"ion-input",77),Xr("ngModelChange",function(t){return Lt(e),na().$implicit.val=t})("keyup.enter",function(){return Lt(e),na(3).launchSearch()})("ionChange",function(){return Lt(e),na(3).checkInput()}),jr(),jr(),Gr()}if(2&e){const e=na().$implicit;no(3),Ma("",pc(4,3,"lang."+e.id+"Search")," "),no(2),Vr("ngModel",e.val)("value",e.val)}}function xN(e,t){if(1&e){const e=qr();Hr(0,"ion-item"),Hr(1,"ion-label"),Da(2),hc(3,"translate"),jr(),Hr(4,"ion-checkbox",79),Xr("ngModelChange",function(){Lt(e);const n=t.$implicit,i=na(2).$implicit;return na(2).toggleItem(i,n,!n.selected)})("ngModelChange",function(e){return t.$implicit.selected=e}),jr(),jr()}if(2&e){const e=t.$implicit;no(2),Oa(pc(3,4,e.label)),no(2),Vr("ngModel",e.selected)("checked",e.selected)("value",e.id)}}function AN(e,t){if(1&e&&(Wr(0),Hr(1,"ion-list-header"),Hr(2,"ion-label",78),Da(3),hc(4,"translate"),jr(),jr(),Fr(5,xN,5,6,"ion-item",19),Gr()),2&e){const e=na().$implicit;no(3),Oa(pc(4,2,"lang."+e.id+"Search")),no(2),Vr("ngForOf",e.values)}}function CN(e,t){if(1&e&&(Wr(0),Hr(1,"ion-list-header"),Hr(2,"ion-label",78),Da(3),hc(4,"translate"),jr(),jr(),Ur(5,"plugin-autocomplete",80),Gr()),2&e){const e=na().$implicit;no(3),Oa(pc(4,2,"lang."+e.id+"Search")),no(2),Vr("currentItems",e.val)}}function SN(e,t){if(1&e&&(Hr(0,"ion-list"),Fr(1,_N,6,5,"ng-container",10),Fr(2,AN,6,4,"ng-container",10),Fr(3,CN,6,4,"ng-container",10),jr()),2&e){const e=t.$implicit;no(1),Vr("ngIf","text"===e.type),no(1),Vr("ngIf","checkbox"===e.type),no(1),Vr("ngIf","autocompleteUsers"===e.type)}}function kN(e,t){if(1&e){const e=qr();Hr(0,"ion-header",0),Hr(1,"ion-toolbar",1),Hr(2,"ion-buttons",2),Ur(3,"ion-back-button"),jr(),Hr(4,"ion-title",71),Da(5),hc(6,"translate"),jr(),jr(),jr(),Hr(7,"ion-content"),Fr(8,SN,4,3,"ion-list",19),jr(),Hr(9,"ion-footer",72),Hr(10,"div",73),Hr(11,"ion-button",74),Xr("click",function(){return Lt(e),na().onSubmit()}),Hr(12,"ion-label",75),Da(13),hc(14,"translate"),jr(),jr(),jr(),jr()}if(2&e){const e=na();Vr("translucent",!0),no(5),Oa(pc(6,4,"lang.filters")),no(3),Vr("ngForOf",e.filters),no(5),Oa(pc(14,6,"lang.search"))}}let PN=(()=>{class e{constructor(e,t,n,i,s,o,r,a,l,c,d,u,h,p){this.http=e,this.translate=t,this.router=n,this.menu=i,this.signaturesService=s,this.viewContainerRef=o,this.notificationService=r,this.authService=a,this.loadingController=l,this.alertController=c,this.actionSheetController=d,this.datePipe=u,this.functionsService=h,this._activatedRoute=p,this.loading=!1,this.filesToUpload=[],this.errors=[],this.filters=[{id:"title",type:"text",val:"",values:[]},{id:"reference",type:"text",val:"",values:[]},{id:"documentId",type:"text",val:"",values:[]},{id:"workflowStates",type:"checkbox",val:[],values:[{id:"PROG",label:"lang.inprogress",selected:!1},{id:"STOP",label:"lang.interrupt",selected:!1},{id:"VAL",label:"lang.end",selected:!1},{id:"REF",label:"lang.refused",selected:!1}]},{id:"workflowUsers",type:"autocompleteUsers",val:[],values:[]}],this.actions=[{icon:"hand-left-outline",id:"interruptWorkflow"},{icon:"document-outline",id:"newWorkflow"}],this.ressources=[],this.currentFilters=[],this.offset=0,this.limit=10,this.count=0,this.openedLine=""}ngOnInit(){this._activatedRoute.queryParamMap.subscribe(e=>{this.functionsService.empty(e.get("documentId"))||(this.documentId=e.get("documentId"),this.filters.filter(e=>"documentId"===e.id)[0].val=this.documentId,this.search())})}ionViewWillEnter(){this.menu.enable(!0,"left-menu"),this.menu.enable(!0,"right-menu"),this.signaturesService.initTemplate(this.rightContent,this.viewContainerRef,"rightContent"),setTimeout(()=>{this.menu.open("right-menu")},500)}ionViewWillLeave(){this.signaturesService.detachTemplate("rightContent")}toggleSlide(e,t){e.getOpenAmount().then(n=>{0===n?(this.openedLine=t,e.open("end")):(this.openedLine="",e.close("end"))})}onSliding(e,t){this.openedLine=1===e.detail.ratio?t:""}onSubmit(){this.search(),this.menu.close("right-menu")}toggleItem(e,t,n){if(n)e.val.push(t.id);else{const n=e.val.indexOf(t.id);e.val.splice(n,1)}}formatDatas(){const e={};return JSON.parse(JSON.stringify(this.filters.filter(e=>"text"===e.type&&""!==e.val||"text"!==e.type&&e.val.length>0))).forEach(t=>{e[t.id]="workflowUsers"===t.id?t.val.map(e=>e.id):"workflowStates"===t.id?t.values.filter(e=>e.selected).map(e=>e.id):t.val}),e}formatListDatas(e){return e.map(e=>Object.assign(Object.assign({},e),{reason:this.getReason(e),currentUser:this.getCurrentUser(e)}))}getNbFilters(){let e=0;for(let t=0;t<this.currentFilters.length;t++)Array.isArray(this.currentFilters[t].val)||""===this.currentFilters[t].val||e++,Array.isArray(this.currentFilters[t].val)&&this.currentFilters[t].val.length>0&&(e+=this.currentFilters[t].val.length);return e}openActions(e){return WV(this,void 0,void 0,function*(){const t=[];this.actions.forEach(n=>{this.canShowButton(n.id,e)&&t.push({text:this.translate.instant("PROG"===e.state&&"newWorkflow"===n.id?"lang."+n.id+"Prog":"lang."+n.id),icon:n.icon,handler:()=>{this[n.id](e)}})});const n=yield this.actionSheetController.create({header:this.translate.instant("lang.actions")+(null!==e.reference?" - "+e.reference:""),buttons:t});yield n.present()})}canShowButton(e,t){return!("interruptWorkflow"!==e||!t.canInterrupt)||!("newWorkflow"!==e||!t.canReaffect)}search(){this.loadingController.create({message:this.translate.instant("lang.processing"),spinner:"dots"}).then(e=>WV(this,void 0,void 0,function*(){e.present(),yield this.launchSearch(),e.dismiss()}))}launchSearch(){return this.ressources=[],this.offset=0,this.refreshCurrentFilter(),new Promise(e=>{this.http.post("../rest/search/documents?limit=10&offset=0",this.formatDatas()).pipe(Ov(t=>{this.ressources=this.formatListDatas(t.documents),this.count=t.count,this.infiniteScroll.disabled=!1,e(!0)}),fv(t=>(this.notificationService.handleErrors(t),e(!1),lb(!1)))).subscribe()})}refreshCurrentFilter(){this.currentFilters=JSON.parse(JSON.stringify(this.filters.filter(e=>!this.functionsService.empty(e.val)))),this.currentFilters.filter(e=>"workflowStates"===e.id).length>0&&(this.currentFilters.filter(e=>"workflowStates"===e.id)[0].val=this.currentFilters.filter(e=>"workflowStates"===e.id)[0].values.filter(e=>e.selected),0===this.currentFilters.filter(e=>"workflowStates"===e.id)[0].val.length&&(this.currentFilters=this.currentFilters.filter(e=>"workflowStates"!==e.id)))}loadData(e){this.count<=this.limit?(e.target.complete(),e.target.disabled=!0):(this.offset=this.offset+this.limit,this.http.post("../rest/search/documents?limit="+this.limit+"&offset="+this.offset,this.formatDatas()).pipe(Ov(t=>{this.ressources=this.ressources.concat(this.formatListDatas(t.documents)),e.target.complete(),this.count===this.ressources.length&&(e.target.disabled=!0)})).subscribe())}interruptWorkflow(e){return WV(this,void 0,void 0,function*(){return new Promise(t=>WV(this,void 0,void 0,function*(){const n=yield this.alertController.create({header:this.translate.instant("lang.warning"),message:this.translate.instant("lang.warnInterrupt"),buttons:[{text:this.translate.instant("lang.cancel"),role:"cancel",cssClass:"secondary",handler:()=>{}},{text:this.translate.instant("lang.validate"),handler:()=>{this.loadingController.create({message:this.translate.instant("lang.processing"),spinner:"dots"}).then(n=>WV(this,void 0,void 0,function*(){n.present(),yield this.launchInterrupt(e),this.launchSearch(),t(!0),n.dismiss()}))}}]});yield n.present()}))})}launchInterrupt(e){return new Promise(t=>{this.http.put(`../rest/documents/${e.id}/workflows/interrupt`,{}).pipe(Ov(()=>{this.notificationService.success("lang.documentInterrupted"),t(!0)}),fv(e=>(this.notificationService.handleErrors(e),t(!1),lb(!1)))).subscribe()})}newWorkflow(e){return WV(this,void 0,void 0,function*(){"PROG"===e.state&&(yield this.interruptWorkflow(e)),this.router.navigate(["/indexation"],{state:{documentId:e.id}})})}openPromptProof(e){return WV(this,void 0,void 0,function*(){const t=yield this.alertController.create({cssClass:"promptProof",header:this.translate.instant("lang.download"),inputs:[{name:"option1",type:"radio",label:this.translate.instant("lang.proof"),value:"onlyProof",checked:!0},{name:"option1",type:"radio",label:this.translate.instant("lang.completeFolder"),value:"all"}],buttons:[{text:this.translate.instant("lang.cancel"),role:"cancel",cssClass:"secondary",handler:()=>{}},{text:this.translate.instant("lang.validate"),handler:n=>WV(this,void 0,void 0,function*(){yield this.downloadProof(e,n),t.dismiss()})}]});yield t.present()})}downloadProof(e,t){const n="onlyProof"===t?"&onlyProof=true":"";return new Promise(t=>{this.http.get(`../rest/documents/${e.id}/proof?mode=stream${n}`,{responseType:"blob"}).pipe(Ov(n=>{const i=new Date,s="proof_"+e.id+"_"+this.datePipe.transform(i,"dd-MM-y")+"."+n.type.replace("application/",""),o=document.createElement("a");o.href=window.URL.createObjectURL(n),o.setAttribute("download",s),document.body.appendChild(o),o.click(),t(!0)}),fv(e=>(this.notificationService.handleErrors(e),t(!1),lb(!1)))).subscribe()})}getReason(e){return e.workflow.map(e=>e.reason).filter(e=>null!==e)}getCurrentUser(e){const t=e.workflow.filter(e=>!0===e.current);return t.length>0?t[0].userId:null}goTo(e){this.router.navigate(["/documents/"+e])}clearFilters(){for(let e=0;e<this.filters.length;e++)Array.isArray(this.filters[e].val)||""===this.filters[e].val||(this.filters[e].val=""),Array.isArray(this.filters[e].val)&&(this.filters[e].val=[],this.filters[e].values=this.filters[e].values.map(e=>Object.assign(Object.assign({},e),{selected:!1})));this.ressources.length>0&&this.launchSearch()}removeFilter(e,t){if(Array.isArray(e.val))if("workflowStates"===e.id)this.filters.find(t=>t.id===e.id).values.filter(e=>e.id===t)[0].selected=!1;else{const n=e.val.indexOf(t);this.filters.filter(t=>t.id===e.id)[0].val.splice(n,1)}else this.filters.find(t=>t.id===e.id).val="";this.launchSearch()}getLabel(e){return this.filters.filter(e=>"workflowStates"===e.id)[0].values.find(t=>t.id===e).label}checkInput(){""===this.filters.find(e=>"title"===e.id).val&&""===this.filters.find(e=>"reference"===e.id).val&&""===this.filters.find(e=>"documentId"===e.id).val&&0===this.filters.find(e=>"workflowStates"===e.id).val.length&&0===this.filters.find(e=>"workflowUsers"===e.id).val.length&&(this.clearFilters(),this.currentFilters=[])}}return e.\u0275fac=function(t){return new(t||e)(zr(Db),zr(GC),zr(r_),zr(KA),zr(sS),zr(Gl),zr(ZC),zr(rS),zr(XA),zr(QA),zr(ZA),zr(lh),zr(LF),zr(Ny))},e.\u0275cmp=$e({type:e,selectors:[["ng-component"]],viewQuery:function(e,t){if(1&e&&(Tc(GV,1),Tc($V,3),Tc(jx,1)),2&e){let e;Mc(e=Rc())&&(t.appVisaWorkflow=e.first),Mc(e=Rc())&&(t.rightContent=e.first),Mc(e=Rc())&&(t.infiniteScroll=e.first)}},features:[Ja([lh])],decls:22,vars:14,consts:[[3,"translucent"],["color","primary"],["slot","start"],["menu","left-menu"],["slot","end","color","secondary"],["slot","end"],["menu","right-menu"],["name","funnel-outline"],["color","primary","style","padding-left: 1px;padding-right: 1px;",4,"ngIf"],["class","no-result",4,"ngIf"],[4,"ngIf"],["threshold","100px",3,"ionInfinite"],["loadingSpinner","bubbles",3,"loadingText"],["rightContent",""],["color","primary",2,"padding-left","1px","padding-right","1px"],[2,"display","flex"],["shape","round","size","small","fill","clear","slot","start","color","primary",1,"clearFilter",3,"title","click"],["slot","icon-only","name","trash-bin-outline","color","light"],["slot","start",1,"scrollfilters"],[4,"ngFor","ngForOf"],["outline","","color","primary","style","background: white;",3,"title","click",4,"ngIf"],["outline","","color","primary",2,"background","white",3,"title","click"],["name","document-text-outline",4,"ngIf"],["name","compass-outline",4,"ngIf"],["name","bookmark-outline",4,"ngIf"],["name","close-circle"],["name","document-text-outline"],["name","compass-outline"],["name","bookmark-outline"],["outline","","color","primary","style","background: white;",3,"title","click",4,"ngFor","ngForOf"],["name","swap-horizontal-outline"],["name","person-outline"],[1,"no-result"],["lines","none"],["color","medium",1,"no-result-label"],["approxItemHeight","165px",3,"items"],[4,"virtualItem"],["color","light"],["size","small"],[2,"display","flex","align-items","center","white-space","pre","overflow-x","auto","overflow-y","hidden"],[3,"ionDrag"],["slidingItem",""],["color","primary","slot","start","name","hourglass-outline",4,"ngIf"],["color","danger","slot","start","name","hand-left-outline",4,"ngIf"],["color","success","slot","start","name","thumbs-up-outline",4,"ngIf"],["color","danger","slot","start","name","thumbs-down-outline",4,"ngIf"],[2,"cursor","pointer",3,"title","click"],["class","primary",4,"ngIf"],["slot","icon-only","fill","clear","shape","round",3,"click",4,"ngIf"],["color","primary",3,"click",4,"ngIf"],["color","primary",3,"click"],["slot","bottom","name","settings-sharp"],["name","chevron-forward-outline",4,"ngIf"],[1,"workflow-item","success"],["name","thumbs-up-outline",4,"ngIf"],["name","thumbs-down-outline",4,"ngIf"],["color","medium",4,"ngIf"],["name","chevron-forward-outline"],["name","thumbs-up-outline"],["name","thumbs-down-outline"],["color","medium"],["color","primary","slot","start","name","hourglass-outline"],["color","danger","slot","start","name","hand-left-outline"],["color","success","slot","start","name","thumbs-up-outline"],["color","danger","slot","start","name","thumbs-down-outline"],[1,"primary"],["name","chatbox-outline"],["slot","icon-only","fill","clear","shape","round",3,"click"],["color","medium","slot","icon-only","name","arrow-forward-outline"],["color","medium","slot","icon-only","name","arrow-back-outline"],["slot","bottom","name","ribbon-sharp"],[1,"ion-text-center"],[1,"ion-no-border"],[1,"ion-text-center",2,"background","white"],["color","primary","shape","round","size","large","fill","outline",3,"click"],[2,"font-size","13px"],["color","secondary","position","floating"],[3,"ngModel","value","ngModelChange","keyup.enter","ionChange"],["color","secondary"],["slot","end",1,"workflowStates",3,"ngModel","checked","value","ngModelChange"],[3,"currentItems"]],template:function(e,t){1&e&&(Hr(0,"ion-header",0),Hr(1,"ion-toolbar",1),Hr(2,"ion-buttons",2),Ur(3,"ion-menu-button",3),jr(),Hr(4,"ion-title"),Da(5),hc(6,"translate"),jr(),Hr(7,"ion-title",4),Da(8),hc(9,"translate"),jr(),Hr(10,"ion-buttons",5),Hr(11,"ion-menu-button",6),Ur(12,"ion-icon",7),jr(),jr(),jr(),Fr(13,nN,7,4,"ion-toolbar",8),jr(),Hr(14,"ion-content"),Fr(15,iN,5,3,"ion-list",9),Fr(16,wN,3,1,"ion-list",10),Hr(17,"ion-infinite-scroll",11),Xr("ionInfinite",function(e){return t.loadData(e)}),Ur(18,"ion-infinite-scroll-content",12),hc(19,"translate"),jr(),jr(),Fr(20,kN,15,8,"ng-template",null,13,zc)),2&e&&(Vr("translucent",!0),no(5),Oa(pc(6,8,"lang.search")),no(3),Ta("",t.count," ",pc(9,10,"lang.results"),""),no(5),Vr("ngIf",t.currentFilters.length>0),no(2),Vr("ngIf",0===t.ressources.length),no(1),Vr("ngIf",t.ressources.length>0),no(2),Vr("loadingText",pc(19,12,"lang.loadingMoreData")))},directives:[Vx,vA,Cx,Jx,mA,Nx,Wu,Tx,jx,Ux,Ax,ju,Ox,Zx,Qx,Gx,$A,GA,Yx,qx,$x,xx,_x,HA,Bx,Wx,ax,rm,Rm,Xx,Dx,J_,UV],pipes:[$C],styles:[".line-container[_ngcontent-%COMP%]{display:grid;grid-template-columns:2fr 1fr;grid-gap:10px;width:100%}.line-workflow[_ngcontent-%COMP%]{font-size:12px}.primary[_ngcontent-%COMP%]{color:var(--ion-color-primary)}.secondary[_ngcontent-%COMP%]{color:var(--ion-color-secondary)}.success[_ngcontent-%COMP%]{color:var(--ion-color-success)}.workflow-item[_ngcontent-%COMP%]{display:flex;align-items:center}.no-visa[_ngcontent-%COMP%]{opacity:.3}.current[_ngcontent-%COMP%]{font-weight:700;color:var(--ion-color-primary)}.interrupt[_ngcontent-%COMP%], .typist-interrupt[_ngcontent-%COMP%]{color:var(--ion-color-danger)}.interrupt[_ngcontent-%COMP%]{text-decoration:line-through}.no-result[_ngcontent-%COMP%]{height:100%;display:flex;align-items:center;justify-content:center}.no-result[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]{width:100%;text-align:center}.no-result-label[_ngcontent-%COMP%]{font-size:50px}.scrollfilters[_ngcontent-%COMP%]{overflow:auto;white-space:nowrap}.scrollfilters[_ngcontent-%COMP%]   div[_ngcontent-%COMP%], .scrollfilters[_ngcontent-%COMP%]   ion-chip[_ngcontent-%COMP%]{height:auto;display:inline-block}"]}),e})(),EN=(()=>{class e{constructor(e){this.latinisePipe=e}transform(e,t){return null!==e?(e.sort((e,n)=>{const i=this.latinisePipe.transform(e[t]).toLocaleLowerCase(),s=this.latinisePipe.transform(n[t]).toLocaleLowerCase();return i<s?-1:i>s?1:0}),e):[]}}return e.\u0275fac=function(t){return new(t||e)(zr(dP))},e.\u0275pipe=Je({name:"sortBy",type:e,pure:!0}),e})();const DN=["rightContent"];function ON(e,t){if(1&e){const e=qr();Hr(0,"ion-chip",18),Xr("click",function(){Lt(e);const n=t.$implicit;return na(2).removeFilter(n)}),hc(1,"translate"),Ur(2,"ion-icon",19),Hr(3,"ion-label"),Da(4),hc(5,"translate"),jr(),Ur(6,"ion-icon",20),jr()}if(2&e){const e=t.$implicit;Vr("title",pc(1,2,"lang.actions")),no(4),Oa(pc(5,4,"lang."+e))}}function MN(e,t){if(1&e){const e=qr();Hr(0,"ion-chip",18),Xr("click",function(){Lt(e);const t=na(2);return t.removeFilter(t.filters.user)}),hc(1,"translate"),Ur(2,"ion-icon",21),Hr(3,"ion-label"),Da(4),jr(),Ur(5,"ion-icon",20),jr()}if(2&e){const e=na(2);Vr("title",pc(1,2,"lang.userName")),no(4),Oa(e.filters.user)}}function TN(e,t){if(1&e){const e=qr();Hr(0,"ion-chip",18),Xr("click",function(){Lt(e);const t=na(2);return t.removeFilter(t.filters.date.start)}),hc(1,"translate"),Ur(2,"ion-icon",22),Hr(3,"ion-label"),Da(4),hc(5,"date"),jr(),Ur(6,"ion-icon",20),jr()}if(2&e){const e=na(2);Vr("title",pc(1,2,"lang.since")),no(4),Oa(gc(5,4,e.filters.date.start,"dd/MM/yyyy"))}}function IN(e,t){if(1&e){const e=qr();Hr(0,"ion-chip",18),Xr("click",function(){Lt(e);const t=na(2);return t.removeFilter(t.filters.date.end)}),hc(1,"translate"),Ur(2,"ion-icon",23),Hr(3,"ion-label"),Da(4),hc(5,"date"),jr(),Ur(6,"ion-icon",20),jr()}if(2&e){const e=na(2);Vr("title",pc(1,2,"lang.until")),no(4),Oa(gc(5,4,e.filters.date.end,"dd/MM/yyyy"))}}function RN(e,t){if(1&e){const e=qr();Hr(0,"ion-toolbar",12),Hr(1,"ion-button",13),Xr("click",function(){return Lt(e),na().clearFilters()}),hc(2,"translate"),Ur(3,"ion-icon",14),jr(),Hr(4,"div",15),Fr(5,ON,7,6,"ion-chip",16),Fr(6,MN,6,4,"ion-chip",17),Fr(7,TN,7,7,"ion-chip",17),Fr(8,IN,7,7,"ion-chip",17),jr(),jr()}if(2&e){const e=na();no(1),Vr("title",pc(2,5,"lang.clearFilters")),no(4),Vr("ngForOf",e.filters.messageTypes),no(1),Vr("ngIf",""!==e.filters.user),no(1),Vr("ngIf",null!==e.filters.date.start),no(1),Vr("ngIf",null!==e.filters.date.end)}}function LN(e,t){if(1&e&&(Hr(0,"ion-item",28),Ur(1,"ion-icon",29),Hr(2,"ion-label"),Hr(3,"p"),Da(4),hc(5,"titlecase"),hc(6,"translate"),Hr(7,"span",30),Da(8),hc(9,"date"),jr(),Da(10),hc(11,"translate"),Hr(12,"span",30),Da(13),jr(),jr(),Hr(14,"h2"),Da(15),jr(),jr(),Hr(16,"ion-note",5),Hr(17,"p",31),hc(18,"translate"),Da(19),hc(20,"translate"),hc(21,"shorten"),hc(22,"translate"),jr(),Hr(23,"p",32),Da(24),jr(),jr(),jr()),2&e){const e=t.$implicit,n=na(2);no(1),Vr("name",n.aventTypesIcon[e.type]),no(3),Ma("",pc(5,10,pc(6,12,"lang.the"))," "),no(4),Oa(gc(9,14,e.date,"dd/MM/yyyy HH:mm")),no(2),Ma(" ",pc(11,17,"lang.by")," "),no(3),Oa(e.user),no(2),Oa(e.message),no(2),Vr("title",pc(18,19,"lang.resource")+" : "+e.objectId),no(2),Ta("",pc(20,21,"lang."+e.objectType)," : ",null!==e.objectLabel?fc(21,23,e.objectLabel,50,"..."):pc(22,27,"lang.undefined"),""),no(5),Ma("IP : ",e.ip,"")}}function FN(e,t){if(1&e){const e=qr();Hr(0,"ion-list"),Hr(1,"ion-virtual-scroll",24),Fr(2,LN,25,29,"ion-item",25),jr(),Hr(3,"ion-infinite-scroll",26),Xr("ionInfinite",function(t){return Lt(e),na().loadData(t)}),Ur(4,"ion-infinite-scroll-content",27),hc(5,"translate"),jr(),jr()}if(2&e){const e=na();no(1),Vr("items",e.resources),no(3),Vr("loadingText",pc(5,2,"lang.loadingMoreData"))}}function BN(e,t){if(1&e){const e=qr();Hr(0,"ion-buttons",5),Hr(1,"ion-button",42),Xr("click",function(){Lt(e);const t=na(2);return t.filters.date.start=null,t.getDatas()}),Ur(2,"ion-icon",43),jr(),jr()}}function zN(e,t){if(1&e){const e=qr();Hr(0,"ion-buttons",5),Hr(1,"ion-button",42),Xr("click",function(){Lt(e);const t=na(2);return t.filters.date.end=null,t.getDatas()}),Ur(2,"ion-icon",43),jr(),jr()}}function VN(e,t){if(1&e){const e=qr();Hr(0,"ion-item",31),Hr(1,"ion-checkbox",44),Xr("ionChange",function(t){return Lt(e),na(2).toggleAction(t.detail)}),jr(),Hr(2,"ion-label"),Da(3),jr(),jr()}if(2&e){const e=t.$implicit;Vr("title",e.label),no(1),Vr("value",e.id),no(2),Oa(e.label)}}function NN(e,t){if(1&e){const e=qr();Hr(0,"ion-header",0),Hr(1,"ion-toolbar",1),Hr(2,"ion-buttons",2),Ur(3,"ion-back-button"),jr(),Hr(4,"ion-title",33),Da(5),hc(6,"translate"),jr(),jr(),jr(),Hr(7,"ion-content"),Hr(8,"ion-list"),Hr(9,"ion-item",34),Hr(10,"ion-searchbar",35),Xr("ionChange",function(t){return Lt(e),na().applyFilter(t.detail.value)}),hc(11,"translate"),jr(),jr(),Hr(12,"ion-item"),Hr(13,"ion-label",36),Da(14),hc(15,"translate"),jr(),Hr(16,"ion-datetime",37),Xr("ngModelChange",function(t){return Lt(e),na().filters.date.start=t})("ionChange",function(){return Lt(e),na().getDatas()}),hc(17,"translate"),hc(18,"translate"),jr(),Fr(19,BN,3,0,"ion-buttons",38),jr(),Hr(20,"ion-item"),Hr(21,"ion-label",36),Da(22),hc(23,"translate"),jr(),Hr(24,"ion-datetime",39),Xr("ngModelChange",function(t){return Lt(e),na().filters.date.end=t})("ionChange",function(){return Lt(e),na().getDatas()}),hc(25,"translate"),hc(26,"translate"),jr(),Fr(27,zN,3,0,"ion-buttons",38),jr(),Hr(28,"ion-item",40),Hr(29,"ion-label",36),Da(30),hc(31,"translate"),jr(),jr(),Fr(32,VN,4,3,"ion-item",41),jr(),jr()}if(2&e){const e=na();Vr("translucent",!0),no(5),Oa(pc(6,17,"lang.filters")),no(5),Vr("placeholder",pc(11,19,"lang.enterUserName")),no(4),Ma("",pc(15,21,"lang.since"),": "),no(2),Vr("doneText",pc(17,23,"lang.validate"))("cancelText",pc(18,25,"lang.cancel"))("ngModel",e.filters.date.start)("max",null!==e.filters.date.end?e.filters.date.end:void 0),no(3),Vr("ngIf",null!==e.filters.date.start),no(3),Ma("",pc(23,27,"lang.until"),": "),no(2),Vr("doneText",pc(25,29,"lang.validate"))("cancelText",pc(26,31,"lang.cancel"))("ngModel",e.filters.date.end)("min",null!==e.filters.date.start?e.filters.date.start:void 0),no(3),Vr("ngIf",null!==e.filters.date.end),no(3),Ma("",pc(31,33,"lang.actions"),": "),no(2),Vr("ngForOf",e.actions)}}let HN=(()=>{class e{constructor(e,t,n,i,s,o,r,a,l,c,d){this.http=e,this.translate=t,this.menu=n,this.latinisePipe=i,this.viewContainerRef=s,this.dialog=o,this.signaturesService=r,this.notificationService=a,this.authService=l,this.alertController=c,this.sortPipe=d,this.displayedColumns=["creation_date","user","info","ip"],this.loading=!0,this.resources=[],this.offset=0,this.limit=10,this.count=0,this.filters={user:"",messageTypes:[],date:{start:null,end:null}},this.aventTypesIcon={VIEW:"eye-outline",CREATION:"add-circle-outline",ACTION:"settings-outline",THUMBNAIL:"image-outline",EMAIL:"mail-outline",SUPPRESSION:"trash-bin-outline",MODIFICATION:"create-outline",LOGIN:"log-in-outline",LOGOUT:"log-out-outline"},this.actions=[]}applyFilter(e){e=this.latinisePipe.transform(e.toLowerCase()),this.filters.user=e,this.getDatas()}openFilters(){this.menu.open("right-menu")}ionViewWillEnter(){return e=this,void 0,n=function*(){this.filters.messageTypes=[],this.filters.user="",this.filters.date.start=this.filters.date.end=null,this.menu.enable(!0,"left-menu"),this.menu.enable(!0,"right-menu"),this.signaturesService.initTemplate(this.rightContent,this.viewContainerRef,"rightContent"),this.getActions(),this.getDatas()},new((t=void 0)||(t=Promise))(function(i,s){function o(e){try{a(n.next(e))}catch(t){s(t)}}function r(e){try{a(n.throw(e))}catch(t){s(t)}}function a(e){var n;e.done?i(e.value):(n=e.value,n instanceof t?n:new t(function(e){e(n)})).then(o,r)}a((n=n.apply(e,[])).next())});var e,t,n}getActions(){this.http.get("../rest/history/messageTypes",this.filters).pipe(Ov(e=>{this.actions=e.messageTypes.map(e=>({id:e,label:this.translate.instant("lang."+e)})),this.actions=this.sortPipe.transform(this.actions,"label")}),fv(e=>(this.notificationService.handleErrors(e),lb(!1)))).subscribe()}getDatas(){return this.resources=[],this.offset=0,new Promise(e=>{this.http.post("../rest/history?limit=10&offset=0",this.filters).pipe(Ov(t=>{this.resources=t.history,this.count=t.total,e(!0)}),fv(t=>(this.notificationService.handleErrors(t),e(!1),lb(!1)))).subscribe()})}sortData(e){console.log(e)}loadData(e){this.count<=this.limit?(e.target.complete(),e.target.disabled=!0):(this.offset=this.offset+this.limit,this.http.post("../rest/history?limit="+this.limit+"&offset="+this.offset,this.filters).pipe(Ov(t=>{this.resources=this.resources.concat(t.history),e.target.complete(),this.count===this.resources.length&&(e.target.disabled=!0)})).subscribe())}getNbFilters(){let e=0;return""!==this.filters.user&&e++,null!==this.filters.date.start&&e++,null!==this.filters.date.end&&e++,this.filters.messageTypes.length>0&&(e+=this.filters.messageTypes.length),e}toggleAction(e){e.checked?this.filters.messageTypes.push(e.value):this.filters.messageTypes=this.filters.messageTypes.filter(t=>t!==e.value),this.getDatas()}clearFilters(){$(".checkedAction").each(function(){$(this).prop("checked",!1)}),document.querySelector("ion-searchbar").getInputElement().then(e=>{e.value=""}),this.filters.user="",this.filters.date.start=this.filters.date.end=null,this.getDatas()}removeFilter(e){this.filters.messageTypes.includes(e)&&$(".checkedAction").each(function(){if($(this).val()===e)return $(this).prop("checked",!1),!1}),this.filters.user===e&&(document.querySelector("ion-searchbar").getInputElement().then(e=>{e.value=""}),this.filters.user=""),this.filters.date.start===e&&(this.filters.date.start=null),this.filters.date.end===e&&(this.filters.date.end=null),this.getDatas()}}return e.\u0275fac=function(t){return new(t||e)(zr(Db),zr(GC),zr(KA),zr(dP),zr(Gl),zr(IM),zr(sS),zr(ZC),zr(rS),zr(QA),zr(EN))},e.\u0275cmp=$e({type:e,selectors:[["app-administration-history-list"]],viewQuery:function(e,t){if(1&e&&Tc(DN,3),2&e){let e;Mc(e=Rc())&&(t.rightContent=e.first)}},features:[Ja([EN])],decls:20,vars:10,consts:[[3,"translucent"],["color","primary"],["slot","start"],["menu","left-menu"],["slot","end","color","secondary"],["slot","end"],["menu","right-menu"],["name","funnel-outline"],["color","primary","color","primary","style","padding-left: 1px;padding-right: 1px;",4,"ngIf"],["mainContent",""],[4,"ngIf"],["rightContent",""],["color","primary","color","primary",2,"padding-left","1px","padding-right","1px"],["shape","round","size","small","fill","clear","slot","start","color","primary",1,"clearFilter",3,"title","click"],["slot","icon-only","name","trash-bin-outline","color","light"],["slot","start",1,"scrollfilters"],["outline","","color","primary",3,"title","click",4,"ngFor","ngForOf"],["outline","","color","primary",3,"title","click",4,"ngIf"],["outline","","color","primary",3,"title","click"],["name","swap-horizontal-outline"],["name","close-circle"],["name","person-outline"],["name","today-outline"],["name","calendar-outline"],["approxItemHeight","90px",3,"items"],["lines","full","class","canSelect",4,"virtualItem"],["threshold","100px",3,"ionInfinite"],["loadingSpinner","bubbles",3,"loadingText"],["lines","full",1,"canSelect"],["color","primary","slot","start",3,"name"],[1,"primary"],[3,"title"],[2,"float","right","margin-top","0px"],[1,"ion-text-center"],["lines","none"],[3,"placeholder","ionChange"],["color","secondary"],["displayFormat","DD/MM/YYYY",3,"doneText","cancelText","ngModel","max","ngModelChange","ionChange"],["slot","end",4,"ngIf"],["displayFormat","DD/MM/YYYY",3,"doneText","cancelText","ngModel","min","ngModelChange","ionChange"],["lines","none",2,"position","sticky","top","0","z-index","2"],[3,"title",4,"ngFor","ngForOf"],["color","danger","shape","round","fill","clear",3,"click"],["slot","icon-only","name","close-outline"],["slot","start",1,"checkedAction",3,"value","ionChange"]],template:function(e,t){1&e&&(Hr(0,"ion-header",0),Hr(1,"ion-toolbar",1),Hr(2,"ion-buttons",2),Ur(3,"ion-menu-button",3),Ur(4,"ion-back-button"),jr(),Hr(5,"ion-title"),Da(6),hc(7,"translate"),jr(),Hr(8,"ion-title",4),Da(9),hc(10,"translate"),jr(),Hr(11,"ion-buttons",5),Hr(12,"ion-menu-button",6),Ur(13,"ion-icon",7),jr(),jr(),jr(),Fr(14,RN,9,7,"ion-toolbar",8),jr(),Hr(15,"ion-content",null,9),Fr(17,FN,6,4,"ion-list",10),jr(),Fr(18,NN,33,35,"ng-template",null,11,zc)),2&e&&(Vr("translucent",!0),no(6),Oa(pc(7,6,"lang.history")),no(3),Ta("",t.count," ",pc(10,8,"lang.entries"),""),no(5),Vr("ngIf",t.getNbFilters()>0),no(3),Vr("ngIf",t.resources.length>0))},directives:[Vx,vA,Cx,Jx,_x,HA,mA,Nx,Wu,Tx,Ax,ju,Ox,Zx,Qx,$A,GA,jx,Ux,Gx,tA,lA,ax,Ix,ox,rm,Rm,Dx,J_],pipes:[$C,lh,rh,lP],styles:[".flex1[_ngcontent-%COMP%]{flex:1}.flex2[_ngcontent-%COMP%]{flex:2}.primary[_ngcontent-%COMP%]{color:var(--ion-color-primary)}  .test .alert-wrapper{min-width:350px}.canSelect[_ngcontent-%COMP%]   *[_ngcontent-%COMP%]{user-select:text!important;-webkit-user-select:text!important;-khtml-user-select:text!important;-moz-user-select:text!important;-ms-user-select:text!important}.scrollfilters[_ngcontent-%COMP%]{overflow:auto;white-space:nowrap;height:50%}.scrollfilters[_ngcontent-%COMP%]   ion-chip[_ngcontent-%COMP%]{height:auto;margin:4px;display:inline-block}ion-button.clearFilter[_ngcontent-%COMP%]{position:-webkit-sticky;position:sticky;left:0;z-index:1}ion-chip[_ngcontent-%COMP%]{background-color:#fff}"]}),e})();const jN=["customizationForm"];function UN(e,t){if(1&e){const e=qr();Hr(0,"ion-button",14),Xr("click",function(){return Lt(e),na(2).watermark.enabled=!1}),Da(1),hc(2,"translate"),jr()}2&e&&(no(1),Ma(" ",pc(2,1,"lang.disableWatermark"),""))}function WN(e,t){if(1&e){const e=qr();Hr(0,"ion-item"),Hr(1,"ion-button",15),Xr("click",function(){return Lt(e),na(2).watermark.enabled=!0}),Da(2),hc(3,"translate"),jr(),jr()}2&e&&(no(2),Ma("",pc(3,1,"lang.enableWatermark")," "))}function GN(e,t){if(1&e){const e=qr();Wr(0),Hr(1,"ion-card"),Hr(2,"ion-item",1),Ur(3,"ion-icon",16),Ur(4,"ion-label",17),hc(5,"translate"),jr(),jr(),Hr(6,"ion-item"),Hr(7,"ion-label",18),Da(8),hc(9,"translate"),jr(),Hr(10,"ion-input",19),Xr("ngModelChange",function(t){return Lt(e),na(2).watermark.text=t}),jr(),Ur(11,"ion-note",20),hc(12,"translate"),jr(),Hr(13,"ion-radio-group",21),Xr("ionChange",function(t){return Lt(e),na(2).watermark.align=t.detail.value}),Hr(14,"ion-list-header"),Hr(15,"ion-label",7),Da(16),hc(17,"translate"),jr(),jr(),Hr(18,"ion-item"),Hr(19,"ion-label"),Da(20),hc(21,"translate"),jr(),Ur(22,"ion-radio",22),jr(),Hr(23,"ion-item"),Hr(24,"ion-label"),Da(25),hc(26,"translate"),jr(),Ur(27,"ion-radio",23),jr(),Hr(28,"ion-item"),Hr(29,"ion-label"),Da(30),hc(31,"translate"),jr(),Ur(32,"ion-radio",24),jr(),jr(),Hr(33,"ion-item"),Hr(34,"ion-label",18),Da(35),hc(36,"translate"),jr(),Hr(37,"ion-input",25),Xr("ngModelChange",function(t){return Lt(e),na(2).watermark.posY=t})("keypress",function(t){return Lt(e),na(2).isNumber(t)}),jr(),Hr(38,"ion-note",26),Da(39,"px"),jr(),jr(),Gr()}if(2&e){const e=na(2);no(4),Vr("innerHTML",pc(5,12,"lang.watermarkDesc"),ss),no(4),Oa(pc(9,14,"lang.content")),no(2),Vr("ngModel",e.watermark.text),no(1),Vr("innerHTML",pc(12,16,"lang.watermarkContentDesc"),ss),no(2),Vr("value",e.watermark.align),no(3),Oa(pc(17,18,"lang.alignment")),no(4),Oa(pc(21,20,"lang.left")),no(5),Oa(pc(26,22,"lang.center")),no(5),Oa(pc(31,24,"lang.right")),no(5),Ma("",pc(36,26,"lang.positionY")," "),no(2),Vr("ngModel",e.watermark.posY)("min",0)}}function $N(e,t){if(1&e){const e=qr();Hr(0,"form",5,6),Xr("ngSubmit",function(){return Lt(e),na().onSubmit()}),Hr(2,"ion-content"),Hr(3,"ion-list"),Hr(4,"ion-list-header"),Hr(5,"ion-label",7),Da(6),hc(7,"translate"),jr(),Fr(8,UN,3,3,"ion-button",8),jr(),Fr(9,WN,4,3,"ion-item",9),Fr(10,GN,40,28,"ng-container",9),jr(),Hr(11,"ion-item",10),Hr(12,"div",11),Hr(13,"ion-button",12),Hr(14,"ion-label",13),Da(15),hc(16,"translate"),jr(),jr(),jr(),jr(),jr(),jr()}if(2&e){const e=na();no(6),Ma(" ",pc(7,5,"lang.watermark")," "),no(2),Vr("ngIf",e.watermark.enabled),no(1),Vr("ngIf",!e.watermark.enabled),no(1),Vr("ngIf",e.watermark.enabled),no(5),Oa(pc(16,7,"lang.validate"))}}let qN=(()=>{class e{constructor(e,t,n,i,s){this.http=e,this.translate=t,this.notificationService=n,this.authService=i,this.functions=s,this.loading=!0,this.loginMessage="",this.applicationUrl="",this.watermark={enabled:!1,text:"Document n\xb0[id]",align:"R",posY:10}}ngOnInit(){return e=this,void 0,n=function*(){yield this.getWatermark(),this.loading=!1},new((t=void 0)||(t=Promise))(function(i,s){function o(e){try{a(n.next(e))}catch(t){s(t)}}function r(e){try{a(n.throw(e))}catch(t){s(t)}}function a(e){var n;e.done?i(e.value):(n=e.value,n instanceof t?n:new t(function(e){e(n)})).then(o,r)}a((n=n.apply(e,[])).next())});var e,t,n}getWatermark(){return new Promise(e=>{this.http.get("../rest/customization/watermark").pipe(Ov(t=>{this.functions.empty(t.configuration)||(this.watermark=t.configuration),e(!0)}),fv(e=>(this.notificationService.handleErrors(e),lb(!1)))).subscribe()})}onSubmit(){this.http.put("../rest/customization",{id:this.authService.user.id,watermark:this.watermark}).pipe(Ov(()=>{this.notificationService.success(this.translate.instant("lang.modificationSaved"))}),fv(e=>(this.notificationService.handleErrors(e),lb(!1)))).subscribe()}isNumber(e){const t=(e=e||window.event).which?e.which:e.keyCode;return!(t>31&&(t<48||t>57))}}return e.\u0275fac=function(t){return new(t||e)(zr(Db),zr(GC),zr(ZC),zr(rS),zr(LF))},e.\u0275cmp=$e({type:e,selectors:[["ng-component"]],viewQuery:function(e,t){if(1&e&&Tc(jN,1),2&e){let e;Mc(e=Rc())&&(t.customizationForm=e.first)}},decls:9,vars:5,consts:[[3,"translucent"],["color","primary"],["slot","start"],["menu","left-menu"],["style","display: contents;","id","customizationForm",3,"ngSubmit",4,"ngIf"],["id","customizationForm",2,"display","contents",3,"ngSubmit"],["customizationForm","ngForm"],["color","secondary"],["size","small","color","danger",3,"click",4,"ngIf"],[4,"ngIf"],["text-center","","lines","none",2,"position","sticky","bottom","0px","z-index","1"],[2,"display","flex","align-items","center","justify-content","center","width","100%","background","white"],["type","submit","shape","round","size","large","fill","outline","color","primary"],[2,"font-size","13px"],["size","small","color","danger",3,"click"],["size","small","color","primary",3,"click"],["name","information-circle","slot","start"],[2,"white-space","initial",3,"innerHTML"],["color","secondary","position","floating"],["name","watermarkContent",3,"ngModel","ngModelChange"],[3,"innerHTML"],[3,"value","ionChange"],["slot","start","value","L"],["slot","start","value","C"],["slot","start","value","R"],["type","number","name","watermarkPosY",3,"ngModel","min","ngModelChange","keypress"],["slot","end"]],template:function(e,t){1&e&&(Hr(0,"ion-header",0),Hr(1,"ion-toolbar",1),Hr(2,"ion-buttons",2),Ur(3,"ion-menu-button",3),Ur(4,"ion-back-button"),jr(),Hr(5,"ion-title"),Da(6),hc(7,"translate"),jr(),jr(),jr(),Fr(8,$N,17,9,"form",4)),2&e&&(Vr("translucent",!0),no(6),Oa(pc(7,3,"lang.customization")),no(2),Vr("ngIf",!t.loading))},directives:[Vx,vA,Cx,Jx,_x,HA,mA,Wu,Lm,am,Mm,Tx,Qx,Xx,Zx,Gx,Ax,Sx,Nx,Wx,ax,rm,Rm,tA,iA,ox,nA,ix,tx],pipes:[$C],styles:[".header[_ngcontent-%COMP%]{background:#135f7f;height:95px;color:#fff;padding-left:10px;font-size:25px}.header[_ngcontent-%COMP%], .header-title[_ngcontent-%COMP%]{display:flex;align-items:center}.header-title[_ngcontent-%COMP%]{flex:1;white-space:pre;overflow:hidden;text-overflow:ellipsis}.header[_ngcontent-%COMP%]   b[_ngcontent-%COMP%]{color:#f99830}.header[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis}.mainView[_ngcontent-%COMP%]{display:flex;flex-direction:column}.container[_ngcontent-%COMP%]{flex:1;overflow:auto}.loader[_ngcontent-%COMP%]{position:absolute;z-index:2;display:flex;background:hsla(0,0%,100%,.8);width:100%;height:100%;justify-content:center;align-items:center;top:0;margin:0;padding:0}.admin-form[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:20px}.actions-form[_ngcontent-%COMP%]{display:flex;justify-content:center}@media (max-width:360px){.actions-form[_ngcontent-%COMP%]{flex-direction:column}}.actions-form[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin:10px;width:150px}@media (max-width:360px){.actions-form[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{width:100%}}.noResult[_ngcontent-%COMP%]{padding:10px;text-align:center;opacity:.5}.emptyTable[_ngcontent-%COMP%]{height:auto}.addButton[_ngcontent-%COMP%]{padding:10px;display:flex;justify-content:flex-end}",""]}),e})(),YN=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=fe({imports:[[w_.forRoot([{path:"home",canActivate:[LR],component:dV},{path:"indexation",canActivate:[LR],component:LV},{path:"profile",canActivate:[LR],component:lV},{path:"search",canActivate:[LR],component:PN},{path:"administration",canActivate:[LR],component:zR},{path:"administration/users",canActivate:[LR],component:WR},{path:"administration/users/new",canActivate:[LR],component:oL},{path:"administration/users/:id",canActivate:[LR],component:oL},{path:"administration/groups",canActivate:[LR],component:uL},{path:"administration/groups/new",canActivate:[LR],component:SL},{path:"administration/groups/:id",canActivate:[LR],component:SL},{path:"administration/connections",canActivate:[LR],component:DL},{path:"administration/connections/ldaps",canActivate:[LR],component:LL},{path:"administration/connections/ldaps/new",canActivate:[LR],component:GL},{path:"administration/connections/ldaps/:id",canActivate:[LR],component:GL},{path:"administration/emailConfiguration",canActivate:[LR],component:KL},{path:"administration/passwordRules",canActivate:[LR],component:Mz},{path:"administration/history",canActivate:[LR],component:HN},{path:"administration/customization",canActivate:[LR],component:qN},{path:"documents/:id",canActivate:[LR],component:vz},{path:"login",canActivate:[LR],component:Sz},{path:"forgot-password",component:kz},{path:"update-password",component:Oz},{path:"password-modification",component:Fz},{path:"**",redirectTo:"login",pathMatch:"full"}],{relativeLinkResolution:"legacy"})],w_]}),e})();function ZN(e,t){if(1&e){const e=qr();Hr(0,"ion-item",3),Xr("click",function(){return Lt(e),na().menu.close("left-menu")}),Ur(1,"ion-icon",4),Hr(2,"ion-label"),Da(3),hc(4,"translate"),jr(),jr()}if(2&e){const e=t.$implicit;ma("item-active",na().isActiveRoute(e.route)),Vr("routerLink",e.route),no(1),Vr("name",e.icon),no(2),Oa(pc(4,5,"lang."+e.id))}}let QN=(()=>{class e{constructor(e,t,n,i){this.route=e,this.router=t,this.authService=n,this.menu=i,this.loading=!0,this.privileges=[]}ngOnInit(){}openHome(){this.router.navigate(["/documents/"])}isActiveRoute(e){return this.router.url.split("/").indexOf(e.replace("/administration/",""))>-1}}return e.\u0275fac=function(t){return new(t||e)(zr(Ny),zr(r_),zr(rS),zr(KA))},e.\u0275cmp=$e({type:e,selectors:[["app-admin-sidebar"]],decls:8,vars:4,consts:[["color","light"],[2,"text-align","center","font-size","14px"],["routerDirection","root",3,"routerLink","item-active","click",4,"ngFor","ngForOf"],["routerDirection","root",3,"routerLink","click"],["slot","start","color","primary",3,"name"]],template:function(e,t){1&e&&(Hr(0,"ion-header"),Hr(1,"ion-toolbar",0),Hr(2,"ion-title",1),Da(3),hc(4,"translate"),jr(),jr(),jr(),Hr(5,"ion-content"),Hr(6,"ion-list"),Fr(7,ZN,5,7,"ion-item",2),jr(),jr()),2&e&&(no(3),Ma(" ",pc(4,2,"lang.administration")," "),no(4),Vr("ngForOf",t.authService.user.administrativePrivileges))},directives:[Vx,vA,mA,Tx,Qx,ju,Gx,jA,a_,Nx,Zx],pipes:[$C],styles:[".item-active[_ngcontent-%COMP%]{border-left:5px solid var(--ion-color-primary);--background:rgba(var(--ion-color-primary-rgb),0.14);color:var(--ion-color-primary);font-weight:700}"]}),e})();const XN=["listContent"],KN=["searchInput"];function JN(e,t){if(1&e){const e=qr();Hr(0,"ion-button",8),Xr("click",function(){return Lt(e),na().authService.logout()}),hc(1,"translate"),Ur(2,"ion-icon",15),jr()}2&e&&Vr("title",pc(1,1,"lang.logout"))}function eH(e,t){if(1&e){const e=qr();Hr(0,"ion-button",8),Xr("click",function(){return Lt(e),na().openAdmin()}),hc(1,"translate"),Ur(2,"ion-icon",16),jr()}2&e&&Vr("title",pc(1,1,"lang.administration"))}function tH(e,t){if(1&e){const e=qr();Hr(0,"ion-button",8),Xr("click",function(){return Lt(e),na().openHome()}),hc(1,"translate"),Ur(2,"ion-icon",17),jr()}2&e&&Vr("title",pc(1,1,"lang.homePage"))}function nH(e,t){if(1&e){const e=qr();Hr(0,"ion-button",8),Xr("click",function(){return Lt(e),na().openIndexation()}),hc(1,"translate"),Ur(2,"ion-icon",18),Ur(3,"ion-icon",19),jr()}2&e&&Vr("title",pc(1,1,"lang.indexationAdmin"))}function iH(e,t){if(1&e&&(Hr(0,"span",26),Da(1),hc(2,"translate"),jr()),2&e){const e=na(3);no(1),Oa(pc(2,1,"lang."+e.signaturesService.mode+"Label"))}}function sH(e,t){if(1&e){const e=qr();Hr(0,"ion-title",23),Xr("click",function(t){return Lt(e),na(2).search(t)}),hc(1,"translate"),Hr(2,"span"),Da(3),jr(),Da(4),hc(5,"translate"),Fr(6,iH,3,3,"span",24),Da(7," \xa0 "),Ur(8,"ion-icon",25),jr()}if(2&e){const e=na(2);Vr("title",pc(1,6,"lang.filterInfo")),no(2),ma("primary",""!=e.signaturesService.mode),no(1),Oa(e.signaturesService.documentsListCount.current),no(1),Ma(" ",pc(5,8,"lang.documents")," "),no(2),Vr("ngIf",""!=e.signaturesService.mode)}}function oH(e,t){if(1&e){const e=qr();Hr(0,"ion-searchbar",27,28),Xr("ionCancel",function(t){Lt(e);const n=na(2);return n.search(t),n.searchMode=!n.searchMode}),hc(2,"translate"),jr()}if(2&e){const e=na(2);Vr("placeholder",pc(2,2,"lang.filterInfo"))("formControl",e.searchTerm)}}function rH(e,t){if(1&e&&(Hr(0,"ion-header"),Hr(1,"ion-toolbar",20),Fr(2,sH,9,10,"ion-title",21),Fr(3,oH,3,4,"ion-searchbar",22),jr(),jr()),2&e){const e=na();no(2),Vr("ngIf",!e.searchMode),no(1),Vr("ngIf",e.searchMode)}}function aH(e,t){if(1&e){const e=qr();Hr(0,"ion-header",29),Hr(1,"ion-toolbar",30),Hr(2,"ion-segment",31),Hr(3,"ion-segment-button",32),Xr("click",function(){return Lt(e),na().filter("sign")}),Hr(4,"ion-label"),Da(5),hc(6,"titlecase"),hc(7,"translate"),jr(),Ur(8,"ion-icon",33),Hr(9,"ion-badge",34),Da(10),jr(),jr(),Hr(11,"ion-segment-button",35),Xr("click",function(){return Lt(e),na().filter("visa")}),Hr(12,"ion-label"),Da(13),hc(14,"titlecase"),hc(15,"translate"),jr(),Ur(16,"ion-icon",36),Hr(17,"ion-badge",34),Da(18),jr(),jr(),Hr(19,"ion-segment-button",37),Xr("click",function(){return Lt(e),na().filter("note")}),Hr(20,"ion-label"),Da(21),hc(22,"titlecase"),hc(23,"translate"),jr(),Ur(24,"ion-icon",38),Hr(25,"ion-badge",34),Da(26),jr(),jr(),jr(),jr(),jr()}if(2&e){const e=na();no(2),Vr("value",e.signaturesService.mode),no(1),ma("segment-button-notFocused","sign"!==e.signaturesService.mode),no(2),Oa(pc(6,13,pc(7,15,"lang.signLabel"))),no(5),Oa(e.signaturesService.documentsListCount.sign),no(1),ma("segment-button-notFocused","visa"!==e.signaturesService.mode),no(2),Oa(pc(14,17,pc(15,19,"lang.visaLabel"))),no(5),Oa(e.signaturesService.documentsListCount.visa),no(1),ma("segment-button-notFocused","note"!==e.signaturesService.mode),no(2),Oa(pc(22,21,pc(23,23,"lang.noteLabel"))),no(5),Oa(e.signaturesService.documentsListCount.note)}}function lH(e,t){1&e&&Ur(0,"app-admin-sidebar",39)}function cH(e,t){1&e&&(Hr(0,"ion-item",44),Hr(1,"ion-label",45),Da(2),hc(3,"titlecase"),hc(4,"translate"),jr(),jr()),2&e&&(no(2),Ma(" ",pc(3,1,pc(4,3,"lang.noResult"))," "))}function dH(e,t){1&e&&Ur(0,"ion-icon",56)}function uH(e,t){1&e&&Ur(0,"ion-icon",57)}function hH(e,t){1&e&&Ur(0,"ion-icon",58)}function pH(e,t){1&e&&Ur(0,"ion-icon",59)}function gH(e,t){1&e&&(Hr(0,"ion-label",60),Da(1),hc(2,"translate"),jr()),2&e&&(no(1),Ma(" ",pc(2,1,"lang.substitutedDoc"),""))}const fH=function(e){return[e]};function mH(e,t){if(1&e){const e=qr();Hr(0,"ion-menu-toggle",46),Hr(1,"ion-item",47),Xr("click",function(){Lt(e);const n=t.index;return na(2).filterService.currentIndex=n}),Fr(2,dH,1,0,"ion-icon",48),Fr(3,uH,1,0,"ion-icon",49),Fr(4,hH,1,0,"ion-icon",50),Fr(5,pH,1,0,"ion-icon",51),Hr(6,"div"),Hr(7,"ion-label",52),Da(8),jr(),Hr(9,"ion-label",53),Da(10),hc(11,"shorten"),jr(),Fr(12,gH,3,3,"ion-label",54),jr(),Ur(13,"ion-icon",55),jr(),jr()}if(2&e){const e=t.$implicit,n=na(2);no(1),ma("selected",n.router.url==="/documents/"+e.id),Vr("routerLink",ac(14,fH,"/documents/"+e.id)),no(1),Vr("ngIf","sign"==e.mode),no(1),Vr("ngIf","visa"==e.mode),no(1),Vr("ngIf","note"==e.mode),no(1),Vr("ngIf",!n.functionsService.empty(e.mailingId)),no(3),Oa(e.reference),no(2),Oa(fc(11,10,e.title,50,"...")),no(2),Vr("ngIf",!e.owner)}}function bH(e,t){if(1&e){const e=qr();Hr(0,"ion-infinite-scroll",61),Xr("ionInfinite",function(t){return Lt(e),na(2).loadData(t)}),Ur(1,"ion-infinite-scroll-content",62),hc(2,"translate"),jr()}2&e&&(no(1),Vr("loadingText",pc(2,1,"lang.loadingMoreData")))}function vH(e,t){if(1&e&&(Hr(0,"ion-content"),Hr(1,"ion-list",40),Fr(2,cH,5,5,"ion-item",41),Fr(3,mH,14,16,"ion-menu-toggle",42),jr(),Fr(4,bH,3,3,"ion-infinite-scroll",43),jr()),2&e){const e=na();no(2),Vr("ngIf",0==e.signaturesService.documentsList.length),no(1),Vr("ngForOf",e.signaturesService.documentsList),no(1),Vr("ngIf",e.signaturesService.documentsList.length>0)}}let yH=(()=>{class e{constructor(e,t,n,i,s,o,r,a,l,c){this.http=e,this.signaturesService=t,this.route=n,this.router=i,this.menu=s,this.notificationService=o,this.authService=r,this.modalController=a,this.functionsService=l,this.filterService=c,this.loadingList=!1,this.searchMode=!1,this.searchTerm=new km,this.searchTerm.valueChanges.pipe(vP(500),H_(),Ov(e=>this.loadingList=!0),sv(e=>this.http.get("../rest/documents?limit="+this.filterService.limit+"&search="+e))).subscribe(e=>{this.signaturesService.documentsList=e.documents,this.signaturesService.documentsListCount=e.count,this.loadingList=!1})}ngOnInit(){$(".avatar").css({background:"url(data:image/png;base64,"+this.authService.user.picture+") no-repeat #135F7F"}).css({"background-size":"cover"}).css({"background-position":"center"}),this.http.get("../rest/documents?limit="+this.filterService.limit+"&offset="+this.filterService.offset+"&mode="+this.signaturesService.mode).subscribe(e=>{this.signaturesService.documentsList=e.documents,this.signaturesService.documentsListCount=e.count})}ngAfterViewInit(){this.filter("")}openProfile(){return e=this,void 0,n=function*(){const e=yield this.modalController.create({component:lV,cssClass:"my-custom-class"});yield e.present()},new((t=void 0)||(t=Promise))(function(i,s){function o(e){try{a(n.next(e))}catch(t){s(t)}}function r(e){try{a(n.throw(e))}catch(t){s(t)}}function a(e){var n;e.done?i(e.value):(n=e.value,n instanceof t?n:new t(function(e){e(n)})).then(o,r)}a((n=n.apply(e,[])).next())});var e,t,n}openAdmin(){this.menu.close("left-menu"),this.router.navigate(["/administration/"])}openHome(){this.router.navigate(["/home"])}openIndexation(){this.menu.close("left-menu"),this.router.navigate(["/indexation"])}openSearch(){this.menu.close("left-menu"),this.router.navigate(["/search"])}search(e){this.searchMode=!0,this.signaturesService.mode="",this.filter(""),setTimeout(()=>{"ionCancel"!==e.type&&(this.searchInput.value="",this.searchInput.setFocus())},0)}filter(e){this.signaturesService.documentsList=[],""!==e&&(this.searchMode=!1),this.loadingList=!0,this.signaturesService.mode=this.signaturesService.mode===e?"":e,this.filterService.offset=0,this.http.get("../rest/documents?limit="+this.filterService.limit+"&offset="+this.filterService.offset+"&mode="+this.signaturesService.mode).pipe(Iv(()=>{this.loadingList=!1})).subscribe(e=>{this.signaturesService.documentsList=e.documents,this.signaturesService.documentsListCount=e.count,this.loadingList=!1})}checkClose(){return!(!(-1!==this.route.routeConfig.path.indexOf("administration")||this.signaturesService.mainDocumentId>0)||!this.signaturesService.mobileMode)}loadData(e){this.filterService.offset=this.filterService.offset+this.filterService.limit,this.http.get("../rest/documents?limit="+this.filterService.limit+"&offset="+this.filterService.offset+"&mode="+this.signaturesService.mode).pipe(Ov(t=>{this.signaturesService.documentsList=this.signaturesService.documentsList.concat(t.documents),e.target.complete(),this.signaturesService.documentsList.length===this.signaturesService.documentsListCount.current&&(e.target.disabled=!0)})).subscribe()}isAdminRoute(){return this.router.url.split("/").indexOf("administration")>-1}canIndex(){return this.authService.user.appPrivileges.map(e=>e.id).indexOf("indexation")>-1}}return e.\u0275fac=function(t){return new(t||e)(zr(Db),zr(sS),zr(Ny),zr(r_),zr(KA),zr(ZC),zr(rS),zr(JA),zr(LF),zr(kF))},e.\u0275cmp=$e({type:e,selectors:[["app-sidebar"]],viewQuery:function(e,t){if(1&e&&(Tc(XN,1),Tc(KN,1)),2&e){let e;Mc(e=Rc())&&(t.listContent=e.first),Mc(e=Rc())&&(t.searchInput=e.first)}},decls:23,vars:16,consts:[[3,"translucent"],["color","primary"],["color","primary","lines","none"],["color","secondary",1,"ion-text-center"],[2,"font-weight","bold","font-size","24px"],["slot","start"],[3,"title","click",4,"ngIf"],["slot","end"],[3,"title","click"],["slot","icon-only","name","search-outline"],[1,"avatar-user",3,"click"],[3,"src"],[4,"ngIf"],["style","background: white;",4,"ngIf"],["style","display: contents;",4,"ngIf"],["slot","icon-only","name","power"],["slot","icon-only","name","settings-outline"],["slot","icon-only","name","home"],["slot","icon-only","name","document-outline"],["slot","icon-only","name","add-circle",2,"position","absolute","top","0px","font-size","15px","right","-5px"],["color","light"],["style","text-align: center;font-size: 14px;",3,"title","click",4,"ngIf"],["showCancelButton","always",3,"placeholder","formControl","ionCancel",4,"ngIf"],[2,"text-align","center","font-size","14px",3,"title","click"],["class","primary",4,"ngIf"],["color","primary","name","search-outline"],[1,"primary"],["showCancelButton","always",3,"placeholder","formControl","ionCancel"],["searchInput",""],[2,"background","white"],[1,"filters"],["value","heart",3,"value"],["value","sign",3,"click"],["color","primary","name","pencil-outline"],["color","secondary"],["value","visa",3,"click"],["color","primary","name","checkmark-done-outline"],["value","note",3,"click"],["color","primary","name","chatbubble-ellipses-outline"],[2,"display","contents"],["id","labels-list"],["lines","none",4,"ngIf"],["auto-hide","false",4,"ngFor","ngForOf"],["threshold","100px",3,"ionInfinite",4,"ngIf"],["lines","none"],["color","medium",1,"ion-text-center"],["auto-hide","false"],["routerDirection","root","detail","false",1,"doc-item",3,"routerLink","click"],["color","primary","slot","start","name","pencil-outline",4,"ngIf"],["color","primary","slot","start","name","checkmark-done-outline",4,"ngIf"],["color","primary","slot","start","name","chatbubble-ellipses-outline",4,"ngIf"],["slot","start","color","danger","name","layers","class","groupMailIcon",4,"ngIf"],[1,"sub-label"],["color","primary",1,"ion-text-wrap"],["color","secondary","class","sub-label",4,"ngIf"],["slot","end","color","medium","name","arrow-forward-outline"],["color","primary","slot","start","name","pencil-outline"],["color","primary","slot","start","name","checkmark-done-outline"],["color","primary","slot","start","name","chatbubble-ellipses-outline"],["slot","start","color","danger","name","layers",1,"groupMailIcon"],["color","secondary",1,"sub-label"],["threshold","100px",3,"ionInfinite"],["loadingSpinner","bubbles",3,"loadingText"]],template:function(e,t){1&e&&(Hr(0,"ion-header",0),Hr(1,"ion-toolbar",1),Hr(2,"ion-item",2),Hr(3,"ion-label",3),Hr(4,"h2",4),Da(5),jr(),jr(),jr(),jr(),jr(),Hr(6,"ion-header",0),Hr(7,"ion-toolbar",1),Hr(8,"ion-buttons",5),Fr(9,JN,3,3,"ion-button",6),Fr(10,eH,3,3,"ion-button",6),Fr(11,tH,3,3,"ion-button",6),jr(),Hr(12,"ion-buttons",7),Hr(13,"ion-button",8),Xr("click",function(){return t.openSearch()}),hc(14,"translate"),Ur(15,"ion-icon",9),jr(),Fr(16,nH,4,3,"ion-button",6),jr(),jr(),jr(),Hr(17,"ion-avatar",10),Xr("click",function(){return t.openProfile()}),Ur(18,"img",11),jr(),Fr(19,rH,4,2,"ion-header",12),Fr(20,aH,27,25,"ion-header",13),Fr(21,lH,1,0,"app-admin-sidebar",14),Fr(22,vH,5,3,"ion-content",12)),2&e&&(Vr("translucent",!0),no(5),Ta("",t.authService.user.firstname," ",t.authService.user.lastname,""),no(1),Vr("translucent",!0),no(3),Vr("ngIf","x509"!==t.authService.authMode&&"kerberos"!==t.authService.authMode&&"azure_saml"!==t.authService.authMode),no(1),Vr("ngIf",!t.isAdminRoute()&&t.authService.user.administrativePrivileges.length>0),no(1),Vr("ngIf",t.isAdminRoute()),no(2),Vr("title",pc(14,14,"lang.search")),no(3),Vr("ngIf",t.canIndex()),no(2),Vr("src",t.authService.user.picture,os),no(1),Vr("ngIf",!t.isAdminRoute()),no(1),Vr("ngIf",!t.isAdminRoute()),no(1),Vr("ngIf",t.isAdminRoute()),no(1),Vr("ngIf",!t.isAdminRoute()))},directives:[Vx,vA,Gx,Zx,Cx,Wu,Ax,Nx,wx,mA,lA,ax,rm,Vm,cA,ox,dA,xx,QN,Tx,Qx,ju,eA,jA,a_,jx,Ux],pipes:[$C,rh,lP],styles:['.main-header[_ngcontent-%COMP%]{height:205px;overflow:auto}.sidebar[_ngcontent-%COMP%]{position:relative;height:100%;overflow:hidden;display:flex;flex-direction:column}.sidebar-header[_ngcontent-%COMP%]{background:#f1f4f4;height:50px;display:flex;align-items:center;justify-content:center;font-size:14px;font-weight:600;padding-top:10px}.sidebar-header-icon[_ngcontent-%COMP%]{margin-right:15px;position:relative}.sidebar-header-icon.notification[_ngcontent-%COMP%]:after{position:absolute;right:-5px;top:-5px;width:10px;height:10px;border-radius:50%;background:#e74c3c;content:""}.sidebar-header-subtitle[_ngcontent-%COMP%]{color:#9b9b9b}.sidebar-btn[_ngcontent-%COMP%]{height:50px;display:flex;align-items:center;justify-content:space-around}.sidebar[_ngcontent-%COMP%]   .nav[_ngcontent-%COMP%]{flex:1;overflow-y:scroll;margin-top:0;overflow-x:hidden;margin-bottom:0;padding:0;position:relative}.sidebar[_ngcontent-%COMP%]   .nav-item[_ngcontent-%COMP%]{height:70px;display:flex;align-items:center;border-bottom:1px solid #e6e6e6;margin:0;padding:5px 5px 5px 30px;cursor:pointer}.sidebar[_ngcontent-%COMP%]   .nav-item.active[_ngcontent-%COMP%]{border-left:5px solid #135f7f;background:rgba(19,95,127,.14)}.sidebar[_ngcontent-%COMP%]   .nav-item.active[_ngcontent-%COMP%]:after{position:absolute;right:10px;content:"";height:60px;background:#f1f4f4}.sidebar[_ngcontent-%COMP%]   .nav-item-right[_ngcontent-%COMP%]{text-align:center}.sidebar[_ngcontent-%COMP%]   .nav-item-left[_ngcontent-%COMP%]{width:50px}.sidebar[_ngcontent-%COMP%]   .nav-item-left[_ngcontent-%COMP%]   .fas[_ngcontent-%COMP%], .sidebar[_ngcontent-%COMP%]   .nav-item-left[_ngcontent-%COMP%]   .material-icons[_ngcontent-%COMP%]{background:#f1f4f4;border-radius:50%;color:#135f7f;font-size:22px;height:25px;width:25px;padding:10px;margin-right:10px}.sidebar[_ngcontent-%COMP%]   .nav-item-middle[_ngcontent-%COMP%]{width:180px;height:50px;font-size:12px;color:#4f4f4f}.sidebar[_ngcontent-%COMP%]   .nav-item-title[_ngcontent-%COMP%]{font-weight:600;color:#135f7f;font-size:14px}.profile-header[_ngcontent-%COMP%]{background:#135f7f;height:95px;display:flex;justify-content:center;position:relative}.avatar[_ngcontent-%COMP%]{cursor:pointer;position:absolute;width:65px;height:65px;border-radius:40px;bottom:-20px;border:3px solid #f99830;background-size:cover;background-repeat:no-repeat;background-position:50%;transition:all .2s}.avatar[_ngcontent-%COMP%]:hover{box-shadow:0 0 5px 0 #656565}.user[_ngcontent-%COMP%]{color:#fff;padding-top:10px;font-weight:700;font-size:20px;max-width:90%;right:0;white-space:pre;overflow:hidden;text-overflow:ellipsis;padding-right:10px}.filter[_ngcontent-%COMP%]{font-size:10px;width:95px;padding-left:0;padding-right:0}.filter.active[_ngcontent-%COMP%]{background:#135f7f}.mat-badge-content[_ngcontent-%COMP%]{right:0!important;top:-8px!important;background:#f99830}.noResult[_ngcontent-%COMP%]{position:absolute;top:50%;text-align:center;width:100%;opacity:.5}.noDoc[_ngcontent-%COMP%]   .mat-badge-content[_ngcontent-%COMP%]{background:#ddd}.sub-label[_ngcontent-%COMP%]{font-size:11px;--color:var(--ion-color-medium)}ion-item.selected[_ngcontent-%COMP%]{--background:rgba(var(--ion-color-primary-rgb),0.2)}.doc-item[_ngcontent-%COMP%]{--inner-padding-bottom:10px;--inner-padding-top:10px}.filters[_ngcontent-%COMP%]   ion-badge[_ngcontent-%COMP%]{position:absolute;top:10px;right:0;color:#fff}.avatar-user[_ngcontent-%COMP%]{cursor:pointer;position:absolute;z-index:99;left:50%;transform:translateX(-50%);top:60px;border:solid var(--ion-color-secondary);width:71px;height:71px}.groupMailIcon[_ngcontent-%COMP%]{position:absolute;left:40px;font-size:14px;bottom:10px}.segment-button-notFocused[_ngcontent-%COMP%]{--indicator-color:none}']}),e})();function wH(e,t){if(1&e){const e=qr();Hr(0,"ion-segment-button",10),Xr("ionChange",function(t){return Lt(e),na(2).setActiveLang(t)}),Hr(1,"ion-label"),Da(2),Hr(3,"ion-badge",11),Da(4),jr(),jr(),jr()}if(2&e){const e=na().$implicit,t=na();Vr("value",t.currentLang),no(2),Ma("",e.key," "),no(2),Oa(t.missingLang[e.key].length)}}function _H(e,t){if(1&e&&(Hr(0,"span"),Fr(1,wH,5,3,"ion-segment-button",9),jr()),2&e){const e=t.$implicit;no(1),Vr("ngIf","fr"!==e.key)}}function xH(e,t){if(1&e){const e=qr();Hr(0,"ion-item"),Hr(1,"ion-label",13),Da(2),jr(),Hr(3,"ion-input",14),Xr("ngModelChange",function(e){return t.$implicit.value=e}),jr(),Hr(4,"ion-button",15),Xr("click",function(){Lt(e);const n=t.$implicit;return na(2).openTranslation(n.value)}),Ur(5,"ion-icon",16),jr(),jr()}if(2&e){const e=t.$implicit;no(2),Oa(e.id),no(1),Vr("ngModel",e.value)}}function AH(e,t){if(1&e&&(Hr(0,"ion-list",12),Fr(1,xH,6,2,"ion-item",5),jr()),2&e){const e=na();no(1),Vr("ngForOf",e.missingLang[e.currentLang])}}let CH=(()=>{class e{constructor(e,t,n,i){this.http=e,this.notify=t,this.translate=n,this.modalController=i,this.missingLang={},this.currentLang="en",this.data={}}ngOnInit(){this.getLangs()}dismissModal(){this.modalController.dismiss("cancel")}getLangs(){this.http.get("../rest/languages").pipe(Ov(e=>{this.allLang=e.languages,Object.keys(this.allLang).forEach(e=>{this.missingLang[e]=Object.keys(this.allLang.fr.lang).filter(t=>-1===Object.keys(this.allLang[e].lang).indexOf(t)).map(e=>({id:e,value:this.allLang.fr.lang[e]+"__TO_TRANSLATE"}))})}),fv(e=>(this.notify.handleErrors(e),lb(!1)))).subscribe()}openTranslation(e){window.open("https://translate.google.fr/?hl=fr#view=home&op=translate&sl=fr&tl="+this.currentLang+"&text="+e.replace("__TO_TRANSLATE",""),"_blank")}setActiveLang(e){this.currentLang=e.detail.value}generateMissingLang(e){const t={},n=this.allLang[this.currentLang],i=/__TO_TRANSLATE$/g;this.missingLang[this.currentLang].forEach(n=>{null===n.value.match(i)&&e?t[n.id]=n.value:e||(t[n.id]=n.value)}),n.lang=Object.assign(Object.assign({},n.lang),t),this.http.put("../rest/languages",{langId:this.currentLang,jsonContent:n}).pipe(Ov(e=>{Object.keys(t).forEach(e=>{delete this.allLang[this.currentLang][e],this.missingLang[this.currentLang]=this.missingLang[this.currentLang].filter(t=>t.id!==e),this.data.countMissingLang--}),this.modalController.dismiss("cancel")}),fv(e=>(this.notify.handleErrors(e),lb(!1)))).subscribe()}}return e.\u0275fac=function(t){return new(t||e)(zr(Db),zr(ZC),zr(GC),zr(JA))},e.\u0275cmp=$e({type:e,selectors:[["ng-component"]],decls:22,vars:14,consts:[["translucent",""],["color","primary"],["slot","end"],[3,"click"],["slot","icon-only","name","close-outline"],[4,"ngFor","ngForOf"],["lines","full",4,"ngIf"],[3,"translucent"],["size","small","color","primary",3,"click"],[3,"value","ionChange",4,"ngIf"],[3,"value","ionChange"],["color","secondary"],["lines","full"],["position","stacked"],["type","text",3,"ngModel","ngModelChange"],["slot","end","color","primary",3,"click"],["name","language-outline"]],template:function(e,t){1&e&&(Hr(0,"ion-header",0),Hr(1,"ion-toolbar",1),Hr(2,"ion-title"),Da(3),hc(4,"translate"),jr(),Hr(5,"ion-buttons",2),Hr(6,"ion-button",3),Xr("click",function(){return t.dismissModal()}),Ur(7,"ion-icon",4),jr(),jr(),jr(),jr(),Hr(8,"ion-header"),Hr(9,"ion-segment"),Fr(10,_H,2,1,"span",5),hc(11,"keyvalue"),jr(),jr(),Hr(12,"ion-content"),Wr(13),Fr(14,AH,2,1,"ion-list",6),Gr(),jr(),Hr(15,"ion-footer",7),Hr(16,"ion-button",8),Xr("click",function(){return t.generateMissingLang(!1)}),Da(17),hc(18,"translate"),jr(),Hr(19,"ion-button",8),Xr("click",function(){return t.generateMissingLang(!0)}),Da(20),hc(21,"translate"),jr(),jr()),2&e&&(no(3),Oa(pc(4,6,"lang.langChecking")),no(7),Vr("ngForOf",pc(11,8,t.allLang)),no(4),Vr("ngIf","en"===t.currentLang),no(1),Vr("translucent",!0),no(2),Oa(pc(18,10,"lang.generateLangVar")),no(3),Oa(pc(21,12,"lang.generateLangVarIgnoreTranslate")))},directives:[Vx,vA,mA,Cx,Ax,Nx,cA,ox,ju,Tx,Wu,Bx,dA,Zx,xx,Qx,Gx,Wx,ax,rm,Rm],pipes:[$C,ch],styles:[".mat-dialog-content[_ngcontent-%COMP%]{padding-top:0}.lang-container[_ngcontent-%COMP%]    .mat-tab-header{position:-webkit-sticky;position:sticky;top:0;z-index:2}.lang-container[_ngcontent-%COMP%]    .mat-tab-label-container{background:#fff}"]}),e})(),SH=(()=>{class e{constructor(e,t,n,i){this.notify=e,this.http=t,this.functionsService=n,this.modalController=i,this.countMissingLang=0}ngOnInit(){this.getLangs()}openLangTool(){return e=this,void 0,n=function*(){const e=yield this.modalController.create({component:CH,cssClass:"my-custom-class"});yield e.present()},new((t=void 0)||(t=Promise))(function(i,s){function o(e){try{a(n.next(e))}catch(t){s(t)}}function r(e){try{a(n.throw(e))}catch(t){s(t)}}function a(e){var n;e.done?i(e.value):(n=e.value,n instanceof t?n:new t(function(e){e(n)})).then(o,r)}a((n=n.apply(e,[])).next())});var e,t,n}getLangs(){this.http.get("../rest/languages").pipe(Ov(e=>{this.allLang=e.languages,Object.keys(this.allLang).forEach(e=>{this.countMissingLang+=Object.keys(this.allLang.fr.lang).filter(t=>-1===Object.keys(this.allLang[e].lang).indexOf(t)).length})}),fv(e=>(this.notify.handleErrors(e),lb(!1)))).subscribe()}}return e.\u0275fac=function(t){return new(t||e)(zr(ZC),zr(Db),zr(LF),zr(JA))},e.\u0275cmp=$e({type:e,selectors:[["app-dev-tool"]],decls:11,vars:7,consts:[["cdkDrag","","horizontal","end","vertical","top",3,"title"],["color","light"],["name","language-outline"],["side","start"],["color","light",3,"click"],["color","secondary"]],template:function(e,t){1&e&&(Hr(0,"ion-fab",0),hc(1,"translate"),Hr(2,"ion-fab-button",1),Ur(3,"ion-icon",2),jr(),Hr(4,"ion-fab-list",3),Hr(5,"ion-button",4),Xr("click",function(){return t.openLangTool()}),Hr(6,"ion-label"),Da(7),hc(8,"translate"),Hr(9,"ion-badge",5),Da(10),jr(),jr(),jr(),jr(),jr()),2&e&&(Vr("title",pc(1,3,"lang.missingLang")),no(7),Ma("",pc(8,5,"lang.missingLang")," "),no(3),Ma(" ",t.countMissingLang,""))},directives:[Rx,ER,Lx,Nx,Fx,Ax,Zx,xx],pipes:[$C],styles:[".devToolListMenu{min-height:auto!important;width:250px}"]}),e})();function kH(e,t){1&e&&Ur(0,"app-sidebar",10)}function PH(e,t){1&e&&Ur(0,"app-dev-tool")}const EH=function(e){return[e]};let DH=(()=>{class e{constructor(e,t,n,i,s,o,r,a,l,c,d,u){if(this.translate=e,this.http=t,this.signaturesService=n,this.sanitizer=i,this.cookieService=s,this.notificationService=o,this.dialog=r,this.authService=l,this.menu=c,this.router=d,this.platform=u,this.showLeftContent=!1,this.showRightContent=!1,a.addSvgIcon("maarchLogo",i.bypassSecurityTrustResourceUrl("../src/frontend/assets/logo_white.svg")),this.cookieService.check("maarchParapheurLang")){const t=this.cookieService.get("maarchParapheurLang");e.setDefaultLang(t)}else this.cookieService.set("maarchParapheurLang","fr"),e.setDefaultLang("fr");zd.production||(this.debugMode=!0)}test(){return!0}allowedRoute(){const e=this.router.url.split("?")[0];return-1===["/","/login","/forgot-password","/update-password","/password-modification"].indexOf(e)}}return e.\u0275fac=function(t){return new(t||e)(zr(GC),zr(Db),zr(sS),zr(qh),zr(sP),zr(ZC),zr(IM),zr($M),zr(rS),zr(KA),zr(r_),zr(lx))},e.\u0275cmp=$e({type:e,selectors:[["app-root"]],decls:11,vars:5,consts:[["contentId","main-content"],["menuId","left-menu","contentId","main-content","type","overlay","disabled","",1,"left-menu",3,"ionDidOpen","ionDidClose"],["leftMenu",""],["style","display: contents;",4,"ngIf"],["id","leftContent",2,"display","contents"],["id","main-content"],["menuId","right-menu","contentId","main-content","side","end","type","overlay","disabled","",3,"ngClass","ionDidOpen","ionDidClose"],["rightMenu",""],["id","rightContent",2,"display","contents"],[4,"ngIf"],[2,"display","contents"]],template:function(e,t){1&e&&(Hr(0,"ion-app"),Hr(1,"ion-split-pane",0),Hr(2,"ion-menu",1,2),Xr("ionDidOpen",function(){return t.showLeftContent=!0})("ionDidClose",function(){return t.showLeftContent=!1}),Fr(4,kH,1,0,"app-sidebar",3),Ur(5,"div",4),jr(),Ur(6,"ion-router-outlet",5),Hr(7,"ion-menu",6,7),Xr("ionDidOpen",function(){return t.showRightContent=!0})("ionDidClose",function(){return t.showRightContent=!1}),Ur(9,"div",8),jr(),jr(),jr(),Fr(10,PH,1,0,"app-dev-tool",9)),2&e&&(no(4),Vr("ngIf",t.allowedRoute()),no(3),Vr("ngClass",ac(3,EH,t.signaturesService.mobileMode?"right-menu-responsive":"right-menu")),no(3),Vr("ngIf",t.debugMode&&t.authService.isAuth()))},directives:[yx,fA,Kx,Wu,VA,Nu,yH,SH],styles:[".left-menu{--width:350px;--min-width:350px;--max-width:350px}.right-menu{--width:450px;--min-width:450px;--max-width:450px}.right-menu-responsive{--width:89%;--min-width:89%;--max-width:89%}.split-pane-visible>.left-menu{width:350px!important;--max-width:350px!important;--min-width:350px!important}.split-pane-visible>.right-menu{width:450px!important;--max-width:450px!important;--min-width:450px!important}"],encapsulation:2}),e})();var OH,MH,TH;OH=lC.a,TH=void 0,"string"!=typeof(MH="fr-FR")&&(TH=MH,MH=OH[Ua.LocaleId]),MH=MH.toLowerCase().replace(/_/g,"-"),Na[MH]=OH,TH&&(Na[MH][Ua.ExtraData]=TH);let IH=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e,bootstrap:[DH]}),e.\u0275inj=fe({providers:[{provide:Mb,useClass:aS,multi:!0},sS,kF,ZC,{provide:Qw,useClass:nC},sP,dP],imports:[[ob,rb,Xh,Af,Wb,rC.forRoot({mode:"md"}),qC.forRoot({loader:{provide:SC,useFactory:LH,deps:[Db]}}),sF,Wk,Zk,fP,nP,IR,YN,Hh]]}),e})();class RH{constructor(e){this.http=e}getTranslation(e){return this.http.get("../rest/languages/"+e)}}function LH(e){return new RH(e)}zd.production&&function(){if(wd)throw new Error("Cannot enable prod mode after platform setup.");yd=!1}(),Zh().bootstrapModule(IH).catch(e=>console.log(e))},meiF:function(e,t,n){"use strict";n.d(t,"a",function(){return d});var i=n("1vRN");let s;const o=e=>{if(void 0===s){const t=void 0!==e.style.webkitAnimationName;s=void 0===e.style.animationName&&t?"-webkit-":""}return s},r=(e,t,n)=>{const i=t.startsWith("animation")?o(e):"";e.style.setProperty(i+t,n)},a=(e,t)=>{const n=t.startsWith("animation")?o(e):"";e.style.removeProperty(n+t)},l=[],c=(e=[],t)=>{if(void 0!==t){const n=Array.isArray(t)?t:[t];return[...e,...n]}return e},d=e=>{let t,n,s,d,u,h,p,g,f,m,b,v,y,w=[],_=[],x=[],A=!1,C={},S=[],k=[],P={},E=0,D=!1,O=!1,M=!0,T=!1,I=!0;const R=e,L=[],F=[],B=[],z=[],V=[],N=[],H=[],j=[],U=[],W=[],G="function"==typeof AnimationEffect||"function"==typeof window.AnimationEffect,$="function"==typeof Element&&"function"==typeof Element.prototype.animate&&G,q=(e,t)=>((t&&t.oneTimeCallback?F:L).push({c:e,o:t}),y),Y=()=>{if($)W.forEach(e=>{e.cancel()}),W.length=0;else{const e=B.slice();Object(i.q)(()=>{e.forEach(e=>{a(e,"animation-name"),a(e,"animation-duration"),a(e,"animation-timing-function"),a(e,"animation-iteration-count"),a(e,"animation-delay"),a(e,"animation-play-state"),a(e,"animation-fill-mode"),a(e,"animation-direction")})})}},Z=()=>{V.forEach(e=>{e&&e.parentNode&&e.parentNode.removeChild(e)}),V.length=0},Q=()=>void 0!==u?u:p?p.getFill():"both",X=()=>void 0!==f?f:void 0!==h?h:p?p.getDirection():"normal",K=()=>D?"linear":void 0!==s?s:p?p.getEasing():"linear",J=()=>O?0:void 0!==m?m:void 0!==n?n:p?p.getDuration():0,ee=()=>void 0!==d?d:p?p.getIterations():1,te=()=>void 0!==b?b:void 0!==t?t:p?p.getDelay():0,ne=()=>{0!==E&&(E--,0===E&&((()=>{de(),j.forEach(e=>e()),U.forEach(e=>e());const e=M?1:0,t=S,n=k,i=P;B.forEach(e=>{const s=e.classList;t.forEach(e=>s.add(e)),n.forEach(e=>s.remove(e));for(const t in i)i.hasOwnProperty(t)&&r(e,t,i[t])}),L.forEach(t=>t.c(e,y)),F.forEach(t=>t.c(e,y)),F.length=0,I=!0,M&&(T=!0),M=!0})(),p&&p.animationFinish()))},ie=(t=!0)=>{(()=>{N.forEach(e=>e()),H.forEach(e=>e());const e=_,t=x,n=C;B.forEach(i=>{const s=i.classList;e.forEach(e=>s.add(e)),t.forEach(e=>s.remove(e));for(const e in n)n.hasOwnProperty(e)&&r(i,e,n[e])})})(),w.length>0&&($?(B.forEach(e=>{const t=e.animate(w,{id:R,delay:te(),duration:J(),easing:K(),iterations:ee(),fill:Q(),direction:X()});t.pause(),W.push(t)}),W.length>0&&(W[0].onfinish=()=>{ne()})):((t=!0)=>{Z();const n=((s=w).forEach(e=>{for(const t in e)if(e.hasOwnProperty(t)){const n=e[t];if("easing"===t)e["animation-timing-function"]=n,delete e[t];else{const i=t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();i!==t&&(e[i]=n,delete e[t])}}}),s);var s;B.forEach(s=>{if(n.length>0){const a=((e=[])=>e.map(e=>{const t=e.offset,n=[];for(const i in e)e.hasOwnProperty(i)&&"offset"!==i&&n.push(`${i}: ${e[i]};`);return`${100*t}% { ${n.join(" ")} }`}).join(" "))(n);v=void 0!==e?e:(e=>{let t=l.indexOf(e);return t<0&&(t=l.push(e)-1),"ion-animation-"+t})(a);const c=((e,t,n)=>{const i=(e=>{const t=e.getRootNode();return t.head||t})(n),s=o(n),r=i.querySelector("#"+e);if(r)return r;const a=(n.ownerDocument||document).createElement("style");return a.id=e,a.textContent=`@${s}keyframes ${e} { ${t} } @${s}keyframes ${e}-alt { ${t} }`,i.appendChild(a),a})(v,a,s);V.push(c),r(s,"animation-duration",J()+"ms"),r(s,"animation-timing-function",K()),r(s,"animation-delay",te()+"ms"),r(s,"animation-fill-mode",Q()),r(s,"animation-direction",X());const d=ee()===1/0?"infinite":ee().toString();r(s,"animation-iteration-count",d),r(s,"animation-play-state","paused"),t&&r(s,"animation-name",c.id+"-alt"),Object(i.q)(()=>{r(s,"animation-name",c.id||null)})}})})(t)),A=!0},se=e=>{if(e=Math.min(Math.max(e,0),.9999),$)W.forEach(t=>{t.currentTime=t.effect.getComputedTiming().delay+J()*e,t.pause()});else{const t=`-${J()*e}ms`;B.forEach(e=>{w.length>0&&(r(e,"animation-delay",t),r(e,"animation-play-state","paused"))})}},oe=e=>{W.forEach(e=>{e.effect.updateTiming({delay:te(),duration:J(),easing:K(),iterations:ee(),fill:Q(),direction:X()})}),void 0!==e&&se(e)},re=(e=!0,t)=>{Object(i.q)(()=>{B.forEach(n=>{r(n,"animation-name",v||null),r(n,"animation-duration",J()+"ms"),r(n,"animation-timing-function",K()),r(n,"animation-delay",void 0!==t?`-${t*J()}ms`:te()+"ms"),r(n,"animation-fill-mode",Q()||null),r(n,"animation-direction",X()||null);const s=ee()===1/0?"infinite":ee().toString();r(n,"animation-iteration-count",s),e&&r(n,"animation-name",v+"-alt"),Object(i.q)(()=>{r(n,"animation-name",v||null)})})})},ae=(e=!1,t=!0,n)=>(e&&z.forEach(i=>{i.update(e,t,n)}),$?oe(n):re(t,n),y),le=()=>{A&&($?W.forEach(e=>{e.pause()}):B.forEach(e=>{r(e,"animation-play-state","paused")}))},ce=()=>{g=void 0,ne()},de=()=>{g&&clearTimeout(g)},ue=e=>new Promise(t=>{e&&e.sync&&(O=!0,q(()=>O=!1,{oneTimeCallback:!0})),A||ie(),T&&($?(se(0),oe()):re(),T=!1),I&&(E=z.length+1,I=!1),q(()=>t(),{oneTimeCallback:!0}),z.forEach(e=>{e.play()}),$?(W.forEach(e=>{e.play()}),0!==w.length&&0!==B.length||ne()):(()=>{if(de(),Object(i.q)(()=>{B.forEach(e=>{w.length>0&&r(e,"animation-play-state","running")})}),0===w.length||0===B.length)ne();else{const e=te()||0,t=J()||0,n=ee()||1;isFinite(n)&&(g=setTimeout(ce,e+t*n+100)),((e,t)=>{let n;const s={passive:!0},o=t=>{e===t.target&&(n&&n(),de(),Object(i.q)(()=>{B.forEach(e=>{a(e,"animation-duration"),a(e,"animation-delay"),a(e,"animation-play-state")}),Object(i.q)(ne)}))};e&&(e.addEventListener("webkitAnimationEnd",o,s),e.addEventListener("animationend",o,s),n=()=>{e.removeEventListener("webkitAnimationEnd",o,s),e.removeEventListener("animationend",o,s)})})(B[0])}})()}),he=(e,t)=>{const n=w[0];return void 0===n||void 0!==n.offset&&0!==n.offset?w=[{offset:0,[e]:t},...w]:n[e]=t,y};return y={parentAnimation:p,elements:B,childAnimations:z,id:R,animationFinish:ne,from:he,to:(e,t)=>{const n=w[w.length-1];return void 0===n||void 0!==n.offset&&1!==n.offset?w=[...w,{offset:1,[e]:t}]:n[e]=t,y},fromTo:(e,t,n)=>he(e,t).to(e,n),parent:e=>(p=e,y),play:ue,pause:()=>(z.forEach(e=>{e.pause()}),le(),y),stop:()=>{z.forEach(e=>{e.stop()}),A&&(Y(),A=!1),D=!1,O=!1,I=!0,f=void 0,m=void 0,b=void 0,E=0,T=!1,M=!0},destroy:e=>(z.forEach(t=>{t.destroy(e)}),(e=>{Y(),e&&Z()})(e),B.length=0,z.length=0,w.length=0,L.length=0,F.length=0,A=!1,I=!0,y),keyframes:e=>(w=e,y),addAnimation:e=>{if(null!=e)if(Array.isArray(e))for(const t of e)t.parent(y),z.push(t);else e.parent(y),z.push(e);return y},addElement:e=>{if(null!=e)if(1===e.nodeType)B.push(e);else if(e.length>=0)for(let t=0;t<e.length;t++)B.push(e[t]);else console.error("Invalid addElement value");return y},update:ae,fill:e=>(u=e,ae(!0),y),direction:e=>(h=e,ae(!0),y),iterations:e=>(d=e,ae(!0),y),duration:e=>($||0!==e||(e=1),n=e,ae(!0),y),easing:e=>(s=e,ae(!0),y),delay:e=>(t=e,ae(!0),y),getWebAnimations:()=>W,getKeyframes:()=>w,getFill:Q,getDirection:X,getDelay:te,getIterations:ee,getEasing:K,getDuration:J,afterAddRead:e=>(j.push(e),y),afterAddWrite:e=>(U.push(e),y),afterClearStyles:(e=[])=>{for(const t of e)P[t]="";return y},afterStyles:(e={})=>(P=e,y),afterRemoveClass:e=>(k=c(k,e),y),afterAddClass:e=>(S=c(S,e),y),beforeAddRead:e=>(N.push(e),y),beforeAddWrite:e=>(H.push(e),y),beforeClearStyles:(e=[])=>{for(const t of e)C[t]="";return y},beforeStyles:(e={})=>(C=e,y),beforeRemoveClass:e=>(x=c(x,e),y),beforeAddClass:e=>(_=c(_,e),y),onFinish:q,progressStart:(e=!1,t)=>(z.forEach(n=>{n.progressStart(e,t)}),le(),D=e,A?ae(!1,!0,t):ie(),y),progressStep:e=>(z.forEach(t=>{t.progressStep(e)}),se(e),y),progressEnd:(e,t,n)=>(D=!1,z.forEach(i=>{i.progressEnd(e,t,n)}),void 0!==n&&(m=n),T=!1,M=!0,0===e?(f="reverse"===X()?"normal":"reverse","reverse"===f&&(M=!1),$?(ae(),se(1-t)):(b=(1-t)*J()*-1,ae(!1,!1))):1===e&&($?(ae(),se(t)):(b=t*J()*-1,ae(!1,!1))),void 0!==e&&(q(()=>{m=void 0,f=void 0,b=void 0},{oneTimeCallback:!0}),p||ue()),y)}}},r7QR:function(e,t,n){"use strict";n.d(t,"a",function(){return u});var i=n("B4Jq"),s=n("1vRN"),o=n("E/Mt"),r=n("meiF");const a=e=>Object(r.a)().duration(e?400:300),l=e=>{let t,n;const i=e.width+8,s=Object(r.a)(),l=Object(r.a)();e.isEndSide?(t=i+"px",n="0px"):(t=-i+"px",n="0px"),s.addElement(e.menuInnerEl).fromTo("transform",`translateX(${t})`,`translateX(${n})`);const c="ios"===Object(o.b)(e),d=c?.2:.25;return l.addElement(e.backdropEl).fromTo("opacity",.01,d),a(c).addAnimation([s,l])},c=e=>{let t,n;const i=Object(o.b)(e),s=e.width;e.isEndSide?(t=-s+"px",n=s+"px"):(t=s+"px",n=-s+"px");const l=Object(r.a)().addElement(e.menuInnerEl).fromTo("transform",`translateX(${n})`,"translateX(0px)"),c=Object(r.a)().addElement(e.contentEl).fromTo("transform","translateX(0px)",`translateX(${t})`),d=Object(r.a)().addElement(e.backdropEl).fromTo("opacity",.01,.32);return a("ios"===i).addAnimation([l,c,d])},d=e=>{const t=Object(o.b)(e),n=e.width*(e.isEndSide?-1:1)+"px",i=Object(r.a)().addElement(e.contentEl).fromTo("transform","translateX(0px)",`translateX(${n})`);return a("ios"===t).addAnimation(i)},u=(()=>{const e=new Map,t=[],n=async e=>(await g(),"start"===e||"end"===e?p(t=>t.side===e&&!t.disabled)||p(t=>t.side===e):null!=e?p(t=>t.menuId===e):p(e=>!e.disabled)||(t.length>0?t[0].el:void 0)),o=async()=>(await g(),u()),r=(t,n)=>{e.set(t,n)},a=e=>{const n=e.side;t.filter(t=>t.side===n&&t!==e).forEach(e=>e.disabled=!0)},u=()=>p(e=>e._isOpen),h=()=>t.some(e=>e.isAnimating),p=e=>{const n=t.find(e);if(void 0!==n)return n.el},g=()=>Promise.all(Array.from(document.querySelectorAll("ion-menu")).map(e=>new Promise(t=>Object(s.c)(e,t))));return r("reveal",d),r("push",c),r("overlay",l),"undefined"!=typeof document&&document.addEventListener("ionBackButton",e=>{const t=u();t&&e.detail.register(i.MENU_BACK_BUTTON_PRIORITY,()=>t.close())}),{registerAnimation:r,get:n,getMenus:async()=>(await g(),t.map(e=>e.el)),getOpen:o,isEnabled:async e=>{const t=await n(e);return!!t&&!t.disabled},swipeGesture:async(e,t)=>{const i=await n(t);return i&&(i.swipeGesture=e),i},isAnimating:async()=>(await g(),h()),isOpen:async e=>{if(null!=e){const t=await n(e);return void 0!==t&&t.isOpen()}return void 0!==await o()},enable:async(e,t)=>{const i=await n(t);return i&&(i.disabled=!e),i},toggle:async e=>{const t=await n(e);return!!t&&t.toggle()},close:async e=>{const t=await(void 0!==e?n(e):o());return void 0!==t&&t.close()},open:async e=>{const t=await n(e);return!!t&&t.open()},_getOpenSync:u,_createAnimation:(t,n)=>{const i=e.get(t);if(!i)throw new Error("animation not registered");return i(n)},_register:e=>{t.indexOf(e)<0&&(e.disabled||a(e),t.push(e))},_unregister:e=>{const n=t.indexOf(e);n>-1&&t.splice(n,1)},_setOpen:async(e,t,n)=>{if(h())return!1;if(t){const t=await o();t&&e.el!==t&&await t.setOpen(!1,!1)}return e._setOpen(t,n)},_setActiveMenu:a}})()},wEJo:function(e,t,n){"use strict";n.d(t,"a",function(){return Ne}),n.d(t,"b",function(){return h}),n.d(t,"c",function(){return I}),n.d(t,"d",function(){return m}),n.d(t,"e",function(){return we}),n.d(t,"f",function(){return Ve}),n.d(t,"g",function(){return te}),n.d(t,"h",function(){return ze}),n.d(t,"i",function(){return E}),n.d(t,"j",function(){return M}),n.d(t,"k",function(){return ee}),n.d(t,"l",function(){return ce}),n.d(t,"m",function(){return _e}),n.d(t,"n",function(){return g}),n.d(t,"o",function(){return Ce}),n.d(t,"p",function(){return P}),n.d(t,"q",function(){return u});let i,s,o,r=!1,a=!1,l=!1,c=!1,d=!1;const u="undefined"!=typeof window?window:{},h=u.CSS,p=u.document||{head:{}},g={$flags$:0,$resourcesUrl$:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,i)=>e.addEventListener(t,n,i),rel:(e,t,n,i)=>e.removeEventListener(t,n,i),ce:(e,t)=>new CustomEvent(e,t)},f=(()=>(p.head.attachShadow+"").indexOf("[native")>-1)(),m=e=>Promise.resolve(e),b=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replace}catch(e){}return!1})(),v=(e,t,n,i)=>{n&&n.map(([n,i,s])=>{const o=w(e,n),r=y(t,s),a=_(n);g.ael(o,i,r,a),(t.$rmListeners$=t.$rmListeners$||[]).push(()=>g.rel(o,i,r,a))})},y=(e,t)=>n=>{try{256&e.$flags$?e.$lazyInstance$[t](n):(e.$queuedListeners$=e.$queuedListeners$||[]).push([t,n])}catch(i){Pe(i)}},w=(e,t)=>4&t?p:8&t?u:16&t?p.body:e,_=e=>0!=(2&e),x="http://www.w3.org/1999/xlink",A=new WeakMap,C=(e,t,n)=>{let i=Oe.get(e);b&&n?(i=i||new CSSStyleSheet,i.replace(t)):i=t,Oe.set(e,i)},S=(e,t,n,i)=>{let s=k(t,n),o=Oe.get(s);if(e=11===e.nodeType?e:p,o)if("string"==typeof o){let n,r=A.get(e=e.head||e);if(r||A.set(e,r=new Set),!r.has(s)){if(e.host&&(n=e.querySelector(`[sty-id="${s}"]`)))n.innerHTML=o;else{if(g.$cssShim$){n=g.$cssShim$.createHostStyle(i,s,o,!!(10&t.$flags$));const e=n["s-sc"];e&&(s=e,r=null)}else n=p.createElement("style"),n.innerHTML=o;e.insertBefore(n,e.querySelector("link"))}r&&r.add(s)}}else e.adoptedStyleSheets.includes(o)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,o]);return s},k=(e,t)=>"sc-"+(t&&32&e.$flags$?e.$tagName$+"-"+t:e.$tagName$),P=e=>Me.push(e),E=e=>Ae(e).$modeName$,D={},O=e=>"object"==(e=typeof e)||"function"===e,M=(e,t,...n)=>{let i=null,s=null,o=null,r=!1,a=!1,l=[];const c=t=>{for(let n=0;n<t.length;n++)i=t[n],Array.isArray(i)?c(i):null!=i&&"boolean"!=typeof i&&((r="function"!=typeof e&&!O(i))&&(i=String(i)),r&&a?l[l.length-1].$text$+=i:l.push(r?T(null,i):i),a=r)};if(c(n),t){t.key&&(s=t.key),t.name&&(o=t.name);{const e=t.className||t.class;e&&(t.class="object"!=typeof e?e:Object.keys(e).filter(t=>e[t]).join(" "))}}if("function"==typeof e)return e(null===t?{}:t,l,R);const d=T(e,null);return d.$attrs$=t,l.length>0&&(d.$children$=l),d.$key$=s,d.$name$=o,d},T=(e,t)=>({$flags$:0,$tag$:e,$text$:t,$elm$:null,$children$:null,$attrs$:null,$key$:null,$name$:null}),I={},R={forEach:(e,t)=>e.map(L).forEach(t),map:(e,t)=>e.map(L).map(t).map(F)},L=e=>({vattrs:e.$attrs$,vchildren:e.$children$,vkey:e.$key$,vname:e.$name$,vtag:e.$tag$,vtext:e.$text$}),F=e=>{if("function"==typeof e.vtag){const t=Object.assign({},e.vattrs);return e.vkey&&(t.key=e.vkey),e.vname&&(t.name=e.vname),M(e.vtag,t,...e.vchildren||[])}const t=T(e.vtag,e.vtext);return t.$attrs$=e.vattrs,t.$children$=e.vchildren,t.$key$=e.vkey,t.$name$=e.vname,t},B=(e,t,n,i,s,o)=>{if(n!==i){let a=ke(e,t),l=t.toLowerCase();if("class"===t){const t=e.classList,s=V(n),o=V(i);t.remove(...s.filter(e=>e&&!o.includes(e))),t.add(...o.filter(e=>e&&!s.includes(e)))}else if("style"===t){for(const t in n)i&&null!=i[t]||(t.includes("-")?e.style.removeProperty(t):e.style[t]="");for(const t in i)n&&i[t]===n[t]||(t.includes("-")?e.style.setProperty(t,i[t]):e.style[t]=i[t])}else if("key"===t);else if("ref"===t)i&&i(e);else if(a||"o"!==t[0]||"n"!==t[1]){const c=O(i);if((a||c&&null!==i)&&!s)try{if(e.tagName.includes("-"))e[t]=i;else{let s=null==i?"":i;"list"===t?a=!1:null!=n&&e[t]==s||(e[t]=s)}}catch(r){}let d=!1;l!==(l=l.replace(/^xlink\:?/,""))&&(t=l,d=!0),null==i||!1===i?!1===i&&""!==e.getAttribute(t)||(d?e.removeAttributeNS(x,t):e.removeAttribute(t)):(!a||4&o||s)&&!c&&(i=!0===i?"":i,d?e.setAttributeNS(x,t,i):e.setAttribute(t,i))}else t="-"===t[2]?t.slice(3):ke(u,l)?l.slice(2):l[2]+t.slice(3),n&&g.rel(e,t,n,!1),i&&g.ael(e,t,i,!1)}},z=/\s/,V=e=>e?e.split(z):[],N=(e,t,n,i)=>{const s=11===t.$elm$.nodeType&&t.$elm$.host?t.$elm$.host:t.$elm$,o=e&&e.$attrs$||D,r=t.$attrs$||D;for(i in o)i in r||B(s,i,o[i],void 0,n,t.$flags$);for(i in r)B(s,i,o[i],r[i],n,t.$flags$)},H=(e,t,n,a)=>{let d,u,h,g=t.$children$[n],f=0;if(r||(l=!0,"slot"===g.$tag$&&(i&&a.classList.add(i+"-s"),g.$flags$|=g.$children$?2:1)),null!==g.$text$)d=g.$elm$=p.createTextNode(g.$text$);else if(1&g.$flags$)d=g.$elm$=p.createTextNode("");else{if(c||(c="svg"===g.$tag$),d=g.$elm$=p.createElementNS(c?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",2&g.$flags$?"slot-fb":g.$tag$),c&&"foreignObject"===g.$tag$&&(c=!1),N(null,g,c),null!=i&&d["s-si"]!==i&&d.classList.add(d["s-si"]=i),g.$children$)for(f=0;f<g.$children$.length;++f)u=H(e,g,f,d),u&&d.appendChild(u);"svg"===g.$tag$?c=!1:"foreignObject"===d.tagName&&(c=!0)}return d["s-hn"]=o,3&g.$flags$&&(d["s-sr"]=!0,d["s-cr"]=s,d["s-sn"]=g.$name$||"",h=e&&e.$children$&&e.$children$[n],h&&h.$tag$===g.$tag$&&e.$elm$&&j(e.$elm$,!1)),d},j=(e,t)=>{g.$flags$|=1;const n=e.childNodes;for(let i=n.length-1;i>=0;i--){const e=n[i];e["s-hn"]!==o&&e["s-ol"]&&(q(e).insertBefore(e,$(e)),e["s-ol"].remove(),e["s-ol"]=void 0,l=!0),t&&j(e,t)}g.$flags$&=-2},U=(e,t,n,i,s,r)=>{let a,l=e["s-cr"]&&e["s-cr"].parentNode||e;for(l.shadowRoot&&l.tagName===o&&(l=l.shadowRoot);s<=r;++s)i[s]&&(a=H(null,n,s,e),a&&(i[s].$elm$=a,l.insertBefore(a,$(t))))},W=(e,t,n,i,s)=>{for(;t<=n;++t)(i=e[t])&&(s=i.$elm$,J(i),a=!0,s["s-ol"]?s["s-ol"].remove():j(s,!0),s.remove())},G=(e,t)=>e.$tag$===t.$tag$&&("slot"===e.$tag$?e.$name$===t.$name$:e.$key$===t.$key$),$=e=>e&&e["s-ol"]||e,q=e=>(e["s-ol"]?e["s-ol"]:e).parentNode,Y=(e,t)=>{const n=t.$elm$=e.$elm$,i=e.$children$,s=t.$children$,o=t.$tag$,r=t.$text$;let a;null===r?(c="svg"===o||"foreignObject"!==o&&c,"slot"===o||N(e,t,c),null!==i&&null!==s?((e,t,n,i)=>{let s,o,r=0,a=0,l=0,c=0,d=t.length-1,u=t[0],h=t[d],p=i.length-1,g=i[0],f=i[p];for(;r<=d&&a<=p;)if(null==u)u=t[++r];else if(null==h)h=t[--d];else if(null==g)g=i[++a];else if(null==f)f=i[--p];else if(G(u,g))Y(u,g),u=t[++r],g=i[++a];else if(G(h,f))Y(h,f),h=t[--d],f=i[--p];else if(G(u,f))"slot"!==u.$tag$&&"slot"!==f.$tag$||j(u.$elm$.parentNode,!1),Y(u,f),e.insertBefore(u.$elm$,h.$elm$.nextSibling),u=t[++r],f=i[--p];else if(G(h,g))"slot"!==u.$tag$&&"slot"!==f.$tag$||j(h.$elm$.parentNode,!1),Y(h,g),e.insertBefore(h.$elm$,u.$elm$),h=t[--d],g=i[++a];else{for(l=-1,c=r;c<=d;++c)if(t[c]&&null!==t[c].$key$&&t[c].$key$===g.$key$){l=c;break}l>=0?(o=t[l],o.$tag$!==g.$tag$?s=H(t&&t[a],n,l,e):(Y(o,g),t[l]=void 0,s=o.$elm$),g=i[++a]):(s=H(t&&t[a],n,a,e),g=i[++a]),s&&q(u.$elm$).insertBefore(s,$(u.$elm$))}r>d?U(e,null==i[p+1]?null:i[p+1].$elm$,n,i,a,p):a>p&&W(t,r,d)})(n,i,t,s):null!==s?(null!==e.$text$&&(n.textContent=""),U(n,null,t,s,0,s.length-1)):null!==i&&W(i,0,i.length-1),c&&"svg"===o&&(c=!1)):(a=n["s-cr"])?a.parentNode.textContent=r:e.$text$!==r&&(n.data=r)},Z=e=>{let t,n,i,s,o,r,a=e.childNodes;for(n=0,i=a.length;n<i;n++)if(t=a[n],1===t.nodeType){if(t["s-sr"])for(o=t["s-sn"],t.hidden=!1,s=0;s<i;s++)if(r=a[s].nodeType,a[s]["s-hn"]!==t["s-hn"]||""!==o){if(1===r&&o===a[s].getAttribute("slot")){t.hidden=!0;break}}else if(1===r||3===r&&""!==a[s].textContent.trim()){t.hidden=!0;break}Z(t)}},Q=[],X=e=>{let t,n,i,s,o,r,l=0,c=e.childNodes,d=c.length;for(;l<d;l++){if(t=c[l],t["s-sr"]&&(n=t["s-cr"])&&n.parentNode)for(i=n.parentNode.childNodes,s=t["s-sn"],r=i.length-1;r>=0;r--)n=i[r],n["s-cn"]||n["s-nr"]||n["s-hn"]===t["s-hn"]||(K(n,s)?(o=Q.find(e=>e.$nodeToRelocate$===n),a=!0,n["s-sn"]=n["s-sn"]||s,o?o.$slotRefNode$=t:Q.push({$slotRefNode$:t,$nodeToRelocate$:n}),n["s-sr"]&&Q.map(e=>{K(e.$nodeToRelocate$,n["s-sn"])&&(o=Q.find(e=>e.$nodeToRelocate$===n),o&&!e.$slotRefNode$&&(e.$slotRefNode$=o.$slotRefNode$))})):Q.some(e=>e.$nodeToRelocate$===n)||Q.push({$nodeToRelocate$:n}));1===t.nodeType&&X(t)}},K=(e,t)=>1===e.nodeType?null===e.getAttribute("slot")&&""===t||e.getAttribute("slot")===t:e["s-sn"]===t||""===t,J=e=>{e.$attrs$&&e.$attrs$.ref&&e.$attrs$.ref(null),e.$children$&&e.$children$.map(J)},ee=e=>Ae(e).$hostElement$,te=(e,t,n)=>{const i=ee(e);return{emit:e=>ne(i,t,{bubbles:!!(4&n),composed:!!(2&n),cancelable:!!(1&n),detail:e})}},ne=(e,t,n)=>{const i=g.ce(t,n);return e.dispatchEvent(i),i},ie=(e,t)=>{t&&!e.$onRenderResolve$&&t["s-p"]&&t["s-p"].push(new Promise(t=>e.$onRenderResolve$=t))},se=(e,t)=>{if(e.$flags$|=16,!(4&e.$flags$))return ie(e,e.$ancestorComponent$),Ve(()=>oe(e,t));e.$flags$|=512},oe=(e,t)=>{const n=e.$lazyInstance$;let i;return t&&(e.$flags$|=256,e.$queuedListeners$&&(e.$queuedListeners$.map(([e,t])=>ue(n,e,t)),e.$queuedListeners$=null),i=ue(n,"componentWillLoad")),i=he(i,()=>ue(n,"componentWillRender")),he(i,()=>re(e,n,t))},re=async(e,t,n)=>{const i=e.$hostElement$,s=i["s-rc"];n&&(e=>{const t=e.$cmpMeta$,n=e.$hostElement$,i=t.$flags$,s=S(f&&n.shadowRoot?n.shadowRoot:n.getRootNode(),t,e.$modeName$,n);10&i&&(n["s-sc"]=s,n.classList.add(s+"-h"),2&i&&n.classList.add(s+"-s"))})(e),ae(e,t),g.$cssShim$&&g.$cssShim$.updateHost(i),s&&(s.map(e=>e()),i["s-rc"]=void 0);{const t=i["s-p"],n=()=>le(e);0===t.length?n():(Promise.all(t).then(n),e.$flags$|=4,t.length=0)}},ae=(e,t,n)=>{try{t=t.render&&t.render(),e.$flags$&=-17,e.$flags$|=2,((e,t)=>{const n=e.$hostElement$,c=e.$cmpMeta$,d=e.$vnode$||T(null,null),u=(h=t)&&h.$tag$===I?t:M(null,null,t);var h;if(o=n.tagName,c.$attrsToReflect$&&(u.$attrs$=u.$attrs$||{},c.$attrsToReflect$.map(([e,t])=>u.$attrs$[t]=n[e])),u.$tag$=null,u.$flags$|=4,e.$vnode$=u,u.$elm$=d.$elm$=n.shadowRoot||n,i=n["s-sc"],s=n["s-cr"],r=f&&0!=(1&c.$flags$),a=!1,Y(d,u),g.$flags$|=1,l){let e,t,n,i,s,o;X(u.$elm$);let r=0;for(;r<Q.length;r++)e=Q[r],t=e.$nodeToRelocate$,t["s-ol"]||(n=p.createTextNode(""),n["s-nr"]=t,t.parentNode.insertBefore(t["s-ol"]=n,t));for(r=0;r<Q.length;r++)if(e=Q[r],t=e.$nodeToRelocate$,e.$slotRefNode$){for(i=e.$slotRefNode$.parentNode,s=e.$slotRefNode$.nextSibling,n=t["s-ol"];n=n.previousSibling;)if(o=n["s-nr"],o&&o["s-sn"]===t["s-sn"]&&i===o.parentNode&&(o=o.nextSibling,!o||!o["s-nr"])){s=o;break}(!s&&i!==t.parentNode||t.nextSibling!==s)&&t!==s&&(!t["s-hn"]&&t["s-ol"]&&(t["s-hn"]=t["s-ol"].parentNode.nodeName),i.insertBefore(t,s))}else 1===t.nodeType&&(t.hidden=!0)}a&&Z(u.$elm$),g.$flags$&=-2,Q.length=0})(e,t)}catch(c){Pe(c,e.$hostElement$)}return null},le=e=>{const t=e.$hostElement$,n=e.$lazyInstance$,i=e.$ancestorComponent$;64&e.$flags$?ue(n,"componentDidUpdate"):(e.$flags$|=64,pe(t),ue(n,"componentDidLoad"),e.$onReadyResolve$(t),i||de()),e.$onInstanceResolve$(t),e.$onRenderResolve$&&(e.$onRenderResolve$(),e.$onRenderResolve$=void 0),512&e.$flags$&&Be(()=>se(e,!1)),e.$flags$&=-517},ce=e=>{{const t=Ae(e),n=t.$hostElement$.isConnected;return n&&2==(18&t.$flags$)&&se(t,!1),n}},de=e=>{pe(p.documentElement),Be(()=>ne(u,"appload",{detail:{namespace:"ionic"}}))},ue=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(i){Pe(i)}},he=(e,t)=>e&&e.then?e.then(t):t(),pe=e=>e.classList.add("hydrated"),ge=(e,t,n,i,s,o,r)=>{let a,l,c,d;if(1===o.nodeType){for(a=o.getAttribute("c-id"),a&&(l=a.split("."),l[0]!==r&&"0"!==l[0]||(c={$flags$:0,$hostId$:l[0],$nodeId$:l[1],$depth$:l[2],$index$:l[3],$tag$:o.tagName.toLowerCase(),$elm$:o,$attrs$:null,$children$:null,$key$:null,$name$:null,$text$:null},t.push(c),o.removeAttribute("c-id"),e.$children$||(e.$children$=[]),e.$children$[c.$index$]=c,e=c,i&&"0"===c.$depth$&&(i[c.$index$]=c.$elm$))),d=o.childNodes.length-1;d>=0;d--)ge(e,t,n,i,s,o.childNodes[d],r);if(o.shadowRoot)for(d=o.shadowRoot.childNodes.length-1;d>=0;d--)ge(e,t,n,i,s,o.shadowRoot.childNodes[d],r)}else if(8===o.nodeType)l=o.nodeValue.split("."),l[1]!==r&&"0"!==l[1]||(a=l[0],c={$flags$:0,$hostId$:l[1],$nodeId$:l[2],$depth$:l[3],$index$:l[4],$elm$:o,$attrs$:null,$children$:null,$key$:null,$name$:null,$tag$:null,$text$:null},"t"===a?(c.$elm$=o.nextSibling,c.$elm$&&3===c.$elm$.nodeType&&(c.$text$=c.$elm$.textContent,t.push(c),o.remove(),e.$children$||(e.$children$=[]),e.$children$[c.$index$]=c,i&&"0"===c.$depth$&&(i[c.$index$]=c.$elm$))):c.$hostId$===r&&("s"===a?(c.$tag$="slot",o["s-sn"]=l[5]?c.$name$=l[5]:"",o["s-sr"]=!0,i&&(c.$elm$=p.createElement(c.$tag$),c.$name$&&c.$elm$.setAttribute("name",c.$name$),o.parentNode.insertBefore(c.$elm$,o),o.remove(),"0"===c.$depth$&&(i[c.$index$]=c.$elm$)),n.push(c),e.$children$||(e.$children$=[]),e.$children$[c.$index$]=c):"r"===a&&(i?o.remove():(s["s-cr"]=o,o["s-cn"]=!0))));else if(e&&"style"===e.$tag$){const t=T(null,o.textContent);t.$elm$=o,t.$index$="0",e.$children$=[t]}},fe=(e,t)=>{if(1===e.nodeType){let n=0;for(;n<e.childNodes.length;n++)fe(e.childNodes[n],t);if(e.shadowRoot)for(n=0;n<e.shadowRoot.childNodes.length;n++)fe(e.shadowRoot.childNodes[n],t)}else if(8===e.nodeType){const n=e.nodeValue.split(".");"o"===n[0]&&(t.set(n[1]+"."+n[2],e),e.nodeValue="",e["s-en"]=n[3])}},me=(e,t,n)=>{if(t.$members$){e.watchers&&(t.$watchers$=e.watchers);const i=Object.entries(t.$members$),s=e.prototype;if(i.map(([e,[i]])=>{31&i||2&n&&32&i?Object.defineProperty(s,e,{get(){return t=e,Ae(this).$instanceValues$.get(t);var t},set(n){((e,t,n,i)=>{const s=Ae(this),o=s.$hostElement$,r=s.$instanceValues$.get(t),a=s.$flags$,l=s.$lazyInstance$;var c,d;if(d=i.$members$[t][0],n=null==(c=n)||O(c)?c:4&d?"false"!==c&&(""===c||!!c):2&d?parseFloat(c):1&d?String(c):c,!(8&a&&void 0!==r||n===r)&&(s.$instanceValues$.set(t,n),l)){if(i.$watchers$&&128&a){const e=i.$watchers$[t];e&&e.map(e=>{try{l[e](n,r,t)}catch(i){Pe(i,o)}})}2==(18&a)&&se(s,!1)}})(0,e,n,t)},configurable:!0,enumerable:!0}):1&n&&64&i&&Object.defineProperty(s,e,{value(...t){const n=Ae(this);return n.$onInstancePromise$.then(()=>n.$lazyInstance$[e](...t))}})}),1&n){const n=new Map;s.attributeChangedCallback=function(e,t,i){g.jmp(()=>{const t=n.get(e);this[t]=(null!==i||"boolean"!=typeof this[t])&&i})},e.observedAttributes=i.filter(([e,t])=>15&t[0]).map(([e,i])=>{const s=i[1]||e;return n.set(s,e),512&i[0]&&t.$attrsToReflect$.push([e,s]),s})}}return e},be=e=>{ue(e,"connectedCallback")},ve=e=>{if(0==(1&g.$flags$)){const t=Ae(e),i=t.$cmpMeta$,s=()=>{};if(1&t.$flags$)v(e,t,i.$listeners$),be(t.$lazyInstance$);else{let s;if(t.$flags$|=1,s=e.getAttribute("s-id"),s){if(f&&1&i.$flags$){const t=S(e.shadowRoot,i,e.getAttribute("s-mode"));e.classList.remove(t+"-h",t+"-s")}((e,t,n,i)=>{const s=e.shadowRoot,o=[],r=s?[]:null,a=i.$vnode$=T(t,null);g.$orgLocNodes$||fe(p.body,g.$orgLocNodes$=new Map),e["s-id"]=n,e.removeAttribute("s-id"),ge(a,o,[],r,e,e,n),o.map(e=>{const n=e.$hostId$+"."+e.$nodeId$,i=g.$orgLocNodes$.get(n),o=e.$elm$;i&&f&&""===i["s-en"]&&i.parentNode.insertBefore(o,i.nextSibling),s||(o["s-hn"]=t,i&&(o["s-ol"]=i,o["s-ol"]["s-nr"]=o)),g.$orgLocNodes$.delete(n)}),s&&r.map(e=>{e&&s.appendChild(e)})})(e,i.$tagName$,s,t)}s||12&i.$flags$&&ye(e);{let n=e;for(;n=n.parentNode||n.host;)if(1===n.nodeType&&n.hasAttribute("s-id")&&n["s-p"]||n["s-p"]){ie(t,t.$ancestorComponent$=n);break}}i.$members$&&Object.entries(i.$members$).map(([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}}),Be(()=>(async(e,t,i,s,o)=>{if(0==(32&t.$flags$)){{if(t.$flags$|=32,(o=De(i)).then){const e=()=>{};o=await o,e()}o.isProxied||(i.$watchers$=o.watchers,me(o,i,2),o.isProxied=!0);const e=()=>{};t.$flags$|=8;try{new o(t)}catch(l){Pe(l)}t.$flags$&=-9,t.$flags$|=128,e(),be(t.$lazyInstance$)}if(o.style){let s=o.style;"string"!=typeof s&&(s=s[t.$modeName$=(e=>Me.map(t=>t(e)).find(e=>!!e))(e)]);const r=k(i,t.$modeName$);if(!Oe.has(r)){const e=()=>{};8&i.$flags$&&(s=await n.e(56).then(n.bind(null,"JmUR")).then(e=>e.scopeCss(s,r,!1))),C(r,s,!!(1&i.$flags$)),e()}}}const r=t.$ancestorComponent$,a=()=>se(t,!0);r&&r["s-rc"]?r["s-rc"].push(a):a()})(e,t,i))}s()}},ye=e=>{const t=e["s-cr"]=p.createComment("");t["s-cn"]=!0,e.insertBefore(t,e.firstChild)},we=(e,t={})=>{const n=[],i=t.exclude||[],s=u.customElements,o=p.head,r=o.querySelector("meta[charset]"),a=p.createElement("style"),l=[],c=p.querySelectorAll("[sty-id]");let d,h=!0,m=0;for(Object.assign(g,t),g.$resourcesUrl$=new URL(t.resourcesUrl||"./",p.baseURI).href,g.$flags$|=2;m<c.length;m++)C(c[m].getAttribute("sty-id"),c[m].innerHTML.replace(/\/\*!@([^\/]+)\*\/[^\{]+\{/g,"$1{"),!0);e.map(e=>e[1].map(t=>{const o={$flags$:t[0],$tagName$:t[1],$members$:t[2],$listeners$:t[3]};o.$members$=t[2],o.$listeners$=t[3],o.$attrsToReflect$=[],o.$watchers$={},!f&&1&o.$flags$&&(o.$flags$|=8);const r=o.$tagName$,a=class extends HTMLElement{constructor(e){super(e),Se(e=this,o),1&o.$flags$&&(f?e.attachShadow({mode:"open",delegatesFocus:!!(16&o.$flags$)}):"shadowRoot"in e||(e.shadowRoot=e))}connectedCallback(){d&&(clearTimeout(d),d=null),h?l.push(this):g.jmp(()=>ve(this))}disconnectedCallback(){g.jmp(()=>(e=>{if(0==(1&g.$flags$)){const t=Ae(e),n=t.$lazyInstance$;t.$rmListeners$&&(t.$rmListeners$.map(e=>e()),t.$rmListeners$=void 0),g.$cssShim$&&g.$cssShim$.removeHost(e),ue(n,"disconnectedCallback")}})(this))}componentOnReady(){return Ae(this).$onReadyPromise$}};o.$lazyBundleId$=e[0],i.includes(r)||s.get(r)||(n.push(r),s.define(r,me(a,o,1)))})),a.innerHTML=n+"{visibility:hidden}.hydrated{visibility:inherit}",a.setAttribute("data-styles",""),o.insertBefore(a,r?r.nextSibling:o.firstChild),h=!1,l.length?l.map(e=>e.connectedCallback()):g.jmp(()=>d=setTimeout(de,30))},_e=e=>{const t=new URL(e,g.$resourcesUrl$);return t.origin!==u.location.origin?t.href:t.pathname},xe=new WeakMap,Ae=e=>xe.get(e),Ce=(e,t)=>xe.set(t.$lazyInstance$=e,t),Se=(e,t)=>{const n={$flags$:0,$hostElement$:e,$cmpMeta$:t,$instanceValues$:new Map};return n.$onInstancePromise$=new Promise(e=>n.$onInstanceResolve$=e),n.$onReadyPromise$=new Promise(e=>n.$onReadyResolve$=e),e["s-p"]=[],e["s-rc"]=[],v(e,n,t.$listeners$),xe.set(e,n)},ke=(e,t)=>t in e,Pe=(e,t)=>(0,console.error)(e,t),Ee=new Map,De=(e,t,i)=>{const s=e.$tagName$.replace(/-/g,"_"),o=e.$lazyBundleId$,r=Ee.get(o);return r?r[s]:n("kLfG")(`./${o}.entry.js`).then(e=>(Ee.set(o,e),e[s]),Pe)},Oe=new Map,Me=[],Te=[],Ie=[],Re=(e,t)=>n=>{e.push(n),d||(d=!0,t&&4&g.$flags$?Be(Fe):g.raf(Fe))},Le=e=>{for(let n=0;n<e.length;n++)try{e[n](performance.now())}catch(t){Pe(t)}e.length=0},Fe=()=>{Le(Te),Le(Ie),(d=Te.length>0)&&g.raf(Fe)},Be=e=>m().then(e),ze=Re(Te,!1),Ve=Re(Ie,!0),Ne={isDev:!1,isBrowser:!0,isServer:!1,isTesting:!1}},y08P:function(e,t,n){"use strict";n.d(t,"a",function(){return o});class i{constructor(e,t,n,i,s){this.id=t,this.name=n,this.disableScroll=s,this.priority=1e6*i+t,this.ctrl=e}canStart(){return!!this.ctrl&&this.ctrl.canStart(this.name)}start(){return!!this.ctrl&&this.ctrl.start(this.name,this.id,this.priority)}capture(){if(!this.ctrl)return!1;const e=this.ctrl.capture(this.name,this.id,this.priority);return e&&this.disableScroll&&this.ctrl.disableScroll(this.id),e}release(){this.ctrl&&(this.ctrl.release(this.id),this.disableScroll&&this.ctrl.enableScroll(this.id))}destroy(){this.release(),this.ctrl=void 0}}class s{constructor(e,t,n,i){this.id=t,this.disable=n,this.disableScroll=i,this.ctrl=e}block(){if(this.ctrl){if(this.disable)for(const e of this.disable)this.ctrl.disableGesture(e,this.id);this.disableScroll&&this.ctrl.disableScroll(this.id)}}unblock(){if(this.ctrl){if(this.disable)for(const e of this.disable)this.ctrl.enableGesture(e,this.id);this.disableScroll&&this.ctrl.enableScroll(this.id)}}destroy(){this.unblock(),this.ctrl=void 0}}const o=new class{constructor(){this.gestureId=0,this.requestedStart=new Map,this.disabledGestures=new Map,this.disabledScroll=new Set}createGesture(e){return new i(this,this.newID(),e.name,e.priority||0,!!e.disableScroll)}createBlocker(e={}){return new s(this,this.newID(),e.disable,!!e.disableScroll)}start(e,t,n){return this.canStart(e)?(this.requestedStart.set(t,n),!0):(this.requestedStart.delete(t),!1)}capture(e,t,n){if(!this.start(e,t,n))return!1;const i=this.requestedStart;let s=-1e4;if(i.forEach(e=>{s=Math.max(s,e)}),s===n){this.capturedId=t,i.clear();const n=new CustomEvent("ionGestureCaptured",{detail:{gestureName:e}});return document.dispatchEvent(n),!0}return i.delete(t),!1}release(e){this.requestedStart.delete(e),this.capturedId===e&&(this.capturedId=void 0)}disableGesture(e,t){let n=this.disabledGestures.get(e);void 0===n&&(n=new Set,this.disabledGestures.set(e,n)),n.add(t)}enableGesture(e,t){const n=this.disabledGestures.get(e);void 0!==n&&n.delete(t)}disableScroll(e){this.disabledScroll.add(e),1===this.disabledScroll.size&&document.body.classList.add("backdrop-no-scroll")}enableScroll(e){this.disabledScroll.delete(e),0===this.disabledScroll.size&&document.body.classList.remove("backdrop-no-scroll")}canStart(e){return void 0===this.capturedId&&!this.isDisabled(e)}isCaptured(){return void 0!==this.capturedId}isScrollDisabled(){return this.disabledScroll.size>0}isDisabled(e){const t=this.disabledGestures.get(e);return!!(t&&t.size>0)}newID(){return this.gestureId++,this.gestureId}}}},[[0,1]]]);
\ No newline at end of file
diff --git a/dist/main-es5.9e57fcce9488c78ee1db.js b/dist/main-es5.f27a4a82a99f81d8756f.js
similarity index 99%
rename from dist/main-es5.9e57fcce9488c78ee1db.js
rename to dist/main-es5.f27a4a82a99f81d8756f.js
index 0279ea6106d04e494e0335166f9d1201d14d8ebf..772bad708cd74d1d2c13dfd9e78e791b5d578751 100644
--- a/dist/main-es5.9e57fcce9488c78ee1db.js
+++ b/dist/main-es5.f27a4a82a99f81d8756f.js
@@ -1 +1 @@
-!function(){function e(n){var i="function"==typeof Map?new Map:void 0;return(e=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==i){if(i.has(e))return i.get(e);i.set(e,r)}function r(){return t(e,arguments,c(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),o(r,e)})(n)}function t(e,n,i){return(t=u()?Reflect.construct:function(e,t,n){var i=[null];i.push.apply(i,t);var r=new(Function.bind.apply(e,i));return n&&o(r,n.prototype),r}).apply(null,arguments)}function i(e,t,n){return(i="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var i=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=c(e)););return e}(e,t);if(i){var r=Object.getOwnPropertyDescriptor(i,t);return r.get?r.get.call(n):r.value}})(e,t,n||e)}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&o(e,t)}function o(e,t){return(o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function a(e){var t=u();return function(){var n,i=c(e);if(t){var r=c(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return s(this,n)}}function s(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return l(e)}function l(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function u(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=b(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,r=function(){};return{s:r,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function f(e,t){return g(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var i,r,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(i=n.next()).done)&&(o.push(i.value),!t||o.length!==t);a=!0);}catch(l){s=!0,r=l}finally{try{a||null==n.return||n.return()}finally{if(s)throw r}}return o}(e,t)||b(e,t)||p()}function p(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function g(e){if(Array.isArray(e))return e}function v(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function m(e,t,n){return t&&v(e.prototype,t),n&&v(e,n),e}function y(e){return function(e){if(Array.isArray(e))return _(e)}(e)||w(e)||b(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function b(e,t){if(e){if("string"==typeof e)return _(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_(e,t):void 0}}function w(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function _(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function k(e,t,n,i,r,o,a){try{var s=e[o](a),l=s.value}catch(u){return void n(u)}s.done?t(l):Promise.resolve(l).then(i,r)}function x(e){return function(){var t=this,n=arguments;return new Promise(function(i,r){var o=e.apply(t,n);function a(e){k(o,i,r,a,s,"next",e)}function s(e){k(o,i,r,a,s,"throw",e)}a(void 0)})}}function A(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(window.webpackJsonp=window.webpackJsonp||[]).push([[3],{0:function(e,t,n){e.exports=n("m9/o")},"1vRN":function(e,t,n){"use strict";n.d(t,"a",function(){return o}),n.d(t,"b",function(){return a}),n.d(t,"c",function(){return i}),n.d(t,"d",function(){return d}),n.d(t,"e",function(){return h}),n.d(t,"f",function(){return y}),n.d(t,"g",function(){return s}),n.d(t,"h",function(){return c}),n.d(t,"i",function(){return r}),n.d(t,"j",function(){return f}),n.d(t,"k",function(){return u}),n.d(t,"l",function(){return p}),n.d(t,"m",function(){return m}),n.d(t,"n",function(){return b}),n.d(t,"o",function(){return g}),n.d(t,"p",function(){return v}),n.d(t,"q",function(){return l});var i=function(e,t){e.componentOnReady?e.componentOnReady().then(function(e){return t(e)}):l(function(){return t(e)})},r=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n={};return t.forEach(function(t){e.hasAttribute(t)&&(null!==e.getAttribute(t)&&(n[t]=e.getAttribute(t)),e.removeAttribute(t))}),n},o=function(e,t,n,i){if("undefined"!=typeof window){var r=window,o=r&&r.Ionic&&r.Ionic.config;if(o){var a=o.get("_ael");if(a)return a(e,t,n,i);if(o._ael)return o._ael(e,t,n,i)}}return e.addEventListener(t,n,i)},a=function(e,t,n,i){if("undefined"!=typeof window){var r=window,o=r&&r.Ionic&&r.Ionic.config;if(o){var a=o.get("_rel");if(a)return a(e,t,n,i);if(o._rel)return o._rel(e,t,n,i)}}return e.removeEventListener(t,n,i)},s=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;return e.shadowRoot||t},l=function(e){return"function"==typeof __zone_symbol__requestAnimationFrame?__zone_symbol__requestAnimationFrame(e):"function"==typeof requestAnimationFrame?requestAnimationFrame(e):setTimeout(e)},u=function(e){return!!e.shadowRoot&&!!e.attachShadow},c=function(e){var t=e.closest("ion-item");return t?t.querySelector("ion-label"):null},d=function(e,t){var n,i=e.getAttribute("aria-labelledby"),r=e.id,o=null!==i&&""!==i.trim()?i:t+"-lbl",a=null!==i&&""!==i.trim()?document.getElementById(i):c(e);return a?(null===i&&(a.id=o),n=a.textContent,a.setAttribute("aria-hidden","true")):""!==r.trim()&&((a=document.querySelector('label[for="'.concat(r,'"]')))&&(""!==a.id?o=a.id:a.id=o=r+"-lbl",n=a.textContent)),{label:a,labelId:o,labelText:n}},h=function(e,t,n,i,r){if(e||u(t)){var o=t.querySelector("input.aux-input");o||((o=t.ownerDocument.createElement("input")).type="hidden",o.classList.add("aux-input"),t.appendChild(o)),o.disabled=r,o.name=n,o.value=i||""}},f=function(e,t,n){return Math.max(e,Math.min(t,n))},p=function(e,t){if(!e){var n="ASSERT: "+t;throw console.error(n),new Error(n)}},g=function(e){return e.timeStamp||Date.now()},v=function(e){if(e){var t=e.changedTouches;if(t&&t.length>0){var n=t[0];return{x:n.clientX,y:n.clientY}}if(void 0!==e.pageX)return{x:e.pageX,y:e.pageY}}return{x:0,y:0}},m=function(e){var t="rtl"===document.dir;switch(e){case"start":return t;case"end":return!t;default:throw new Error('"'.concat(e,'" is not a valid value for [side]. Use "start" or "end" instead.'))}},y=function(e,t){var n=e._original||e;return{_original:e,emit:b(n.emit.bind(n),t)}},b=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(){for(var i=arguments.length,r=new Array(i),o=0;o<i;o++)r[o]=arguments[o];clearTimeout(t),t=setTimeout.apply(void 0,[e,n].concat(r))}}},"39oe":function(e,t,n){"use strict";n.d(t,"a",function(){return i});var i=function(e){try{if(e instanceof function(){return function e(t){A(this,e),this.value=t}}())return e.value;if(!a()||"string"!=typeof e||""===e)return e;var t=document.createDocumentFragment(),n=document.createElement("div");t.appendChild(n),n.innerHTML=e,l.forEach(function(e){for(var n=t.querySelectorAll(e),i=n.length-1;i>=0;i--){var a=n[i];a.parentNode?a.parentNode.removeChild(a):t.removeChild(a);for(var s=o(a),l=0;l<s.length;l++)r(s[l])}});for(var i=o(t),s=0;s<i.length;s++)r(i[s]);var u=document.createElement("div");u.appendChild(t);var c=u.querySelector("div");return null!==c?c.innerHTML:u.innerHTML}catch(d){return console.error(d),""}},r=function e(t){if(!t.nodeType||1===t.nodeType){for(var n=t.attributes.length-1;n>=0;n--){var i=t.attributes.item(n),r=i.name;if(s.includes(r.toLowerCase())){var a=i.value;null!=a&&a.toLowerCase().includes("javascript:")&&t.removeAttribute(r)}else t.removeAttribute(r)}for(var l=o(t),u=0;u<l.length;u++)e(l[u])}},o=function(e){return null!=e.children?e.children:e.childNodes},a=function(){var e=window,t=e&&e.Ionic&&e.Ionic.config;return!t||(t.get?t.get("sanitizerEnabled",!0):!0===t.sanitizerEnabled||void 0===t.sanitizerEnabled)},s=["class","id","href","src","name","slot"],l=["script","style","iframe","meta","link","object","embed"]},"7OTs":function(e,t,n){"use strict";n.d(t,"a",function(){return L}),n.d(t,"b",function(){return u}),n.d(t,"c",function(){return c}),n.d(t,"d",function(){return p}),n.d(t,"e",function(){return C}),n.d(t,"f",function(){return v}),n.d(t,"g",function(){return P}),n.d(t,"h",function(){return O}),n.d(t,"i",function(){return s}),n.d(t,"j",function(){return T}),n.d(t,"k",function(){return d}),n.d(t,"l",function(){return h}),n.d(t,"m",function(){return f}),n.d(t,"n",function(){return R}),n.d(t,"o",function(){return g});var i=n("E/Mt"),r=n("B4Jq"),o=n("1vRN"),a=0,s=new WeakMap,l=function(e){return{create:function(t){return m(e,t)},dismiss:function(t,n,i){return k(document,t,n,e,i)},getTop:(t=x(regeneratorRuntime.mark(function t(){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",A(document,e));case 1:case"end":return t.stop()}},t)})),function(){return t.apply(this,arguments)})};var t},u=l("ion-alert"),c=l("ion-action-sheet"),d=l("ion-loading"),h=l("ion-modal"),f=l("ion-picker"),p=l("ion-popover"),g=l("ion-toast"),v=function(e){"undefined"!=typeof document&&_(document);var t=a++;e.overlayIndex=t,e.hasAttribute("id")||(e.id="ion-overlay-"+t)},m=function(e,t){return"undefined"!=typeof customElements?customElements.whenDefined(e).then(function(){var n=document.createElement(e);return n.classList.add("overlay-hidden"),Object.assign(n,t),E(document).appendChild(n),new Promise(function(e){return Object(o.c)(n,e)})}):Promise.resolve()},b='[tabindex]:not([tabindex^="-"]), input:not([type=hidden]):not([tabindex^="-"]), textarea:not([tabindex^="-"]), button:not([tabindex^="-"]), select:not([tabindex^="-"]), .ion-focusable:not([tabindex^="-"])',w="input:not([type=hidden]), textarea, button, select",_=function(e){0===a&&(a=1,e.addEventListener("focus",function(t){return function(e,t){var n,i,r,a=A(t),s=e.target;if(a&&s)if(a===s)a.lastFocus=void 0;else{var l=Object(o.g)(a);if(!l.contains(s))return;var u=l.querySelector(".ion-overlay-wrapper");if(!u)return;if(u.contains(s))a.lastFocus=s;else{var c=a.lastFocus;n=a,i=u.querySelector(b),(r=i&&i.shadowRoot)&&(i=r.querySelector(w)||i),i?i.focus():n.focus(),c===t.activeElement&&function(e,t){var n=Array.from(e.querySelectorAll(b)),i=n.length>0?n[n.length-1]:null,r=i&&i.shadowRoot;r&&(i=r.querySelector(w)||i),i?i.focus():t.focus()}(u,a),a.lastFocus=t.activeElement}}}(t,e)},!0),e.addEventListener("ionBackButton",function(t){var n=A(e);n&&n.backdropDismiss&&t.detail.register(r.OVERLAY_BACK_BUTTON_PRIORITY,function(){return n.dismiss(void 0,L)})}),e.addEventListener("keyup",function(t){if("Escape"===t.key){var n=A(e);n&&n.backdropDismiss&&n.dismiss(void 0,L)}}))},k=function(e,t,n,i,r){var o=A(e,i,r);return o?o.dismiss(t,n):Promise.reject("overlay does not exist")},A=function(e,t,n){var i=function(e,t){return void 0===t&&(t="ion-alert,ion-action-sheet,ion-loading,ion-modal,ion-picker,ion-popover,ion-toast"),Array.from(e.querySelectorAll(t)).filter(function(e){return e.overlayIndex>0})}(e,t);return void 0===n?i[i.length-1]:i.find(function(e){return e.id===n})},C=function(){var e=x(regeneratorRuntime.mark(function e(t,n,r,o,a){var s,l;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!t.presented){e.next=2;break}return e.abrupt("return");case 2:return t.presented=!0,t.willPresent.emit(),s=Object(i.b)(t),l=t.enterAnimation?t.enterAnimation:i.c.get(n,"ios"===s?r:o),e.next=6,D(t,l,t.el,a);case 6:if(e.t0=e.sent,!e.t0){e.next=9;break}t.didPresent.emit();case 9:"ION-TOAST"!==t.el.tagName&&S(t.el),t.keyboardClose&&t.el.focus();case 11:case"end":return e.stop()}},e)}));return function(t,n,i,r,o){return e.apply(this,arguments)}}(),S=function(){var e=x(regeneratorRuntime.mark(function e(t){var n,i;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(n=document.activeElement){e.next=3;break}return e.abrupt("return");case 3:return(i=n&&n.shadowRoot)&&(n=i.querySelector(w)||n),e.next=7,t.onDidDismiss();case 7:n.focus();case 8:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}(),P=function(){var e=x(regeneratorRuntime.mark(function e(t,n,r,o,a,l,u){var c,d;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t.presented){e.next=2;break}return e.abrupt("return",!1);case 2:if(t.presented=!1,e.prev=3,t.el.style.setProperty("pointer-events","none"),t.willDismiss.emit({data:n,role:r}),c=Object(i.b)(t),d=t.leaveAnimation?t.leaveAnimation:i.c.get(o,"ios"===c?a:l),e.t0="gesture"!==r,!e.t0){e.next=10;break}return e.next=10,D(t,d,t.el,u);case 10:t.didDismiss.emit({data:n,role:r}),s.delete(t),e.next=17;break;case 14:e.prev=14,e.t1=e.catch(3),console.error(e.t1);case 17:return e.abrupt("return",(t.el.remove(),!0));case 18:case"end":return e.stop()}},e,null,[[3,14]])}));return function(t,n,i,r,o,a,s){return e.apply(this,arguments)}}(),E=function(e){return e.querySelector("ion-app")||e.body},D=function(){var e=x(regeneratorRuntime.mark(function e(t,n,r,o){var a,l;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r.classList.remove("overlay-hidden"),a=n(r.shadowRoot||t.el,o),t.animated&&i.c.getBoolean("animated",!0)||a.duration(0),t.keyboardClose&&a.beforeAddWrite(function(){var e=r.ownerDocument.activeElement;e&&e.matches("input, ion-input, ion-textarea")&&e.blur()}),l=s.get(t)||[],s.set(t,[].concat(y(l),[a])),e.next=7,a.play();case 7:return e.abrupt("return",!0);case 8:case"end":return e.stop()}},e)}));return function(t,n,i,r){return e.apply(this,arguments)}}(),O=function(e,t){var n,i=new Promise(function(e){return n=e});return M(e,t,function(e){n(e.detail)}),i},M=function(e,t,n){Object(o.a)(e,t,function i(r){Object(o.b)(e,t,i),n(r)})},T=function(e){return"cancel"===e||e===L},I=function(e){return e()},R=function(e,t){if("function"==typeof e)return i.c.get("_zoneGate",I)(function(){try{return e(t)}catch(n){console.error(n)}})},L="backdrop"},B4Jq:function(e,t,n){"use strict";n.r(t),n.d(t,"MENU_BACK_BUTTON_PRIORITY",function(){return a}),n.d(t,"OVERLAY_BACK_BUTTON_PRIORITY",function(){return o}),n.d(t,"blockHardwareBackButton",function(){return i}),n.d(t,"startHardwareBackButton",function(){return r});var i=function(){document.addEventListener("backbutton",function(){})},r=function(){var e=document,t=!1;e.addEventListener("backbutton",function(){if(!t){var n=0,i=[],r=new CustomEvent("ionBackButton",{bubbles:!1,detail:{register:function(e,t){i.push({priority:e,handler:t,id:n++})}}});e.dispatchEvent(r);!function e(){if(i.length>0){var n={priority:Number.MIN_SAFE_INTEGER,handler:function(){},id:-1};i.forEach(function(e){e.priority>=n.priority&&(n=e)}),t=!0,i=i.filter(function(e){return e.id!==n.id}),(r=x(regeneratorRuntime.mark(function t(n){var i;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,!n||!n.handler){t.next=7;break}if(i=n.handler(e),t.t0=null!=i,!t.t0){t.next=7;break}return t.next=7,i;case 7:t.next=12;break;case 9:t.prev=9,t.t1=t.catch(0),console.error(t.t1);case 12:case"end":return t.stop()}},t,null,[[0,9]])})),function(e){return r.apply(this,arguments)})(n).then(function(){return t=!1})}var r}()}})},o=100,a=99},"E/Mt":function(e,t,n){"use strict";n.d(t,"a",function(){return a}),n.d(t,"b",function(){return _}),n.d(t,"c",function(){return w}),n.d(t,"d",function(){return o}),n.d(t,"e",function(){return k});var i,r=n("wEJo"),o=function(e){return s(e)},a=function(e,t){return"string"==typeof e&&(t=e,e=void 0),o(e).includes(t)},s=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window;if(void 0===e)return[];e.Ionic=e.Ionic||{};var t=e.Ionic.platforms;return null==t&&(t=e.Ionic.platforms=l(e)).forEach(function(t){return e.document.documentElement.classList.add("plt-"+t)}),t},l=function(e){return Object.keys(b).filter(function(t){return b[t](e)})},u=function(e){return!!v(e,/iPad/i)||!(!v(e,/Macintosh/i)||!d(e))},c=function(e){return v(e,/android|sink/i)},d=function(e){return y(e,"(any-pointer:coarse)")},h=function(e){return p(e)||g(e)},p=function(e){return!!(e.cordova||e.phonegap||e.PhoneGap)},g=function(e){var t=e.Capacitor;return!(!t||!t.isNative)},v=function(e,t){return t.test(e.navigator.userAgent)},y=function(e,t){return e.matchMedia(t).matches},b={ipad:u,iphone:function(e){return v(e,/iPhone/i)},ios:function(e){return v(e,/iPhone|iPod/i)||u(e)},android:c,phablet:function(e){var t=e.innerWidth,n=e.innerHeight,i=Math.min(t,n),r=Math.max(t,n);return i>390&&i<520&&r>620&&r<800},tablet:function(e){var t=e.innerWidth,n=e.innerHeight,i=Math.min(t,n),r=Math.max(t,n);return u(e)||function(e){return c(e)&&!v(e,/mobile/i)}(e)||i>460&&i<820&&r>780&&r<1400},cordova:p,capacitor:g,electron:function(e){return v(e,/electron/i)},pwa:function(e){return!(!e.matchMedia("(display-mode: standalone)").matches&&!e.navigator.standalone)},mobile:d,mobileweb:function(e){return d(e)&&!h(e)},desktop:function(e){return!d(e)},hybrid:h},w=new(function(){function e(){A(this,e),this.m=new Map}return m(e,[{key:"reset",value:function(e){this.m=new Map(Object.entries(e))}},{key:"get",value:function(e,t){var n=this.m.get(e);return void 0!==n?n:t}},{key:"getBoolean",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.m.get(e);return void 0===n?t:"string"==typeof n?"true"===n:!!n}},{key:"getNumber",value:function(e,t){var n=parseFloat(this.m.get(e));return isNaN(n)?void 0!==t?t:NaN:n}},{key:"set",value:function(e,t){this.m.set(e,t)}}]),e}()),_=function(e){return e&&Object(r.i)(e)||i},k=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if("undefined"!=typeof window){var t=window.document,n=window,o=n.Ionic=n.Ionic||{};s(n);var l=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},function(e){try{var t=e.sessionStorage.getItem("ionic-persist-config");return null!==t?JSON.parse(t):{}}catch(n){return{}}}(n)),{persistConfig:!1}),o.config),function(e){var t={};return e.location.search.slice(1).split("&").map(function(e){return e.split("=")}).map(function(e){var t=f(e,2),n=t[0],i=t[1];return[decodeURIComponent(n),decodeURIComponent(i)]}).filter(function(e){return"ionic:"===f(e,1)[0].substr(0,"ionic:".length)}).map(function(e){var t=f(e,2),n=t[0],i=t[1];return[n.slice("ionic:".length),i]}).forEach(function(e){var n=f(e,2),i=n[0],r=n[1];t[i]=r}),t}(n)),e);w.reset(l),w.getBoolean("persistConfig")&&function(e,t){try{e.sessionStorage.setItem("ionic-persist-config",JSON.stringify(t))}catch(n){return}}(n,l),o.config=w,o.mode=i=w.get("mode",t.documentElement.getAttribute("mode")||(a(n,"ios")?"ios":"md")),w.set("mode",i),t.documentElement.setAttribute("mode",i),t.documentElement.classList.add(i),w.getBoolean("_testing")&&w.set("animated",!1);var u=function(e){return e.tagName&&e.tagName.startsWith("ION-")},c=function(e){return["ios","md"].includes(e)};Object(r.p)(function(e){for(;e;){var t=e.mode||e.getAttribute("mode");if(t){if(c(t))return t;u(e)&&console.warn('Invalid ionic mode: "'+t+'", expected: "ios" or "md"')}e=e.parentElement}return i})}}},Hfs6:function(e,t,n){var i,r,o;!function(a){if("object"==typeof e.exports){var s=a(0,t);void 0!==s&&(e.exports=s)}else r=[n,t],void 0===(o="function"==typeof(i=a)?i.apply(t,r):i)||(e.exports=o)}(function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=void 0;t.default=["fr",[["AM","PM"],n,n],n,[["D","L","M","M","J","V","S"],["dim.","lun.","mar.","mer.","jeu.","ven.","sam."],["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"],["di","lu","ma","me","je","ve","sa"]],n,[["J","F","M","A","M","J","J","A","S","O","N","D"],["janv.","f\xe9vr.","mars","avr.","mai","juin","juil.","ao\xfbt","sept.","oct.","nov.","d\xe9c."],["janvier","f\xe9vrier","mars","avril","mai","juin","juillet","ao\xfbt","septembre","octobre","novembre","d\xe9cembre"]],n,[["av. J.-C.","ap. J.-C."],n,["avant J\xe9sus-Christ","apr\xe8s J\xe9sus-Christ"]],1,[6,0],["dd/MM/y","d MMM y","d MMMM y","EEEE d MMMM y"],["HH:mm","HH:mm:ss","HH:mm:ss z","HH:mm:ss zzzz"],["{1} {0}","{1} '\xe0' {0}",n,n],[",","\u202f",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0\xa0%","#,##0.00\xa0\xa4","#E0"],"EUR","\u20ac","euro",{ARS:["$AR","$"],AUD:["$AU","$"],BEF:["FB"],BMD:["$BM","$"],BND:["$BN","$"],BZD:["$BZ","$"],CAD:["$CA","$"],CLP:["$CL","$"],CNY:[n,"\xa5"],COP:["$CO","$"],CYP:["\xa3CY"],EGP:[n,"\xa3E"],FJD:["$FJ","$"],FKP:["\xa3FK","\xa3"],FRF:["F"],GBP:["\xa3GB","\xa3"],GIP:["\xa3GI","\xa3"],HKD:[n,"$"],IEP:["\xa3IE"],ILP:["\xa3IL"],ITL:["\u20a4IT"],JPY:[n,"\xa5"],KMF:[n,"FC"],LBP:["\xa3LB","\xa3L"],MTP:["\xa3MT"],MXN:["$MX","$"],NAD:["$NA","$"],NIO:[n,"$C"],NZD:["$NZ","$"],RHD:["$RH"],RON:[n,"L"],RWF:[n,"FR"],SBD:["$SB","$"],SGD:["$SG","$"],SRD:["$SR","$"],TOP:[n,"$T"],TTD:["$TT","$"],TWD:[n,"NT$"],USD:["$US","$"],UYU:["$UY","$"],WST:["$WS"],XCD:[n,"$"],XPF:["FCFP"],ZMW:[n,"Kw"]},"ltr",function(e){var t=Math.floor(Math.abs(e));return 0===t||1===t?1:5}]})},MYvV:function(e,t){function n(e){return Promise.resolve().then(function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t})}n.keys=function(){return[]},n.resolve=n,e.exports=n,n.id="MYvV"},RQGG:function(e,t,n){"use strict";n.r(t),n.d(t,"mdTransitionAnimation",function(){return o});var i=n("meiF"),r=n("k4ps");n("1vRN"),n("wEJo");var o=function(e,t){var n="back"===t.direction,o=t.enteringEl,a=t.leavingEl,s=Object(r.g)(o),l=s.querySelector("ion-toolbar"),u=Object(i.a)();if(u.addElement(s).fill("both").beforeRemoveClass("ion-page-invisible"),n?u.duration(t.duration||200).easing("cubic-bezier(0.47,0,0.745,0.715)"):u.duration(t.duration||280).easing("cubic-bezier(0.36,0.66,0.04,1)").fromTo("transform","translateY(40px)","translateY(0px)").fromTo("opacity",.01,1),l){var c=Object(i.a)();c.addElement(l),u.addAnimation(c)}if(a&&n){u.duration(t.duration||200).easing("cubic-bezier(0.47,0,0.745,0.715)");var d=Object(i.a)();d.addElement(Object(r.g)(a)).onFinish(function(e){1===e&&d.elements.length>0&&d.elements[0].style.setProperty("display","none")}).fromTo("transform","translateY(0px)","translateY(40px)").fromTo("opacity",1,0),u.addAnimation(d)}return u}},b0Xh:function(e,t,i){var r;(function(){var i=function e(t){return t instanceof e?t:this instanceof e?void(this.EXIFwrapped=t):new e(t)};e.exports&&(t=e.exports=i),t.EXIF=i;var o=i.Tags={36864:"ExifVersion",40960:"FlashpixVersion",40961:"ColorSpace",40962:"PixelXDimension",40963:"PixelYDimension",37121:"ComponentsConfiguration",37122:"CompressedBitsPerPixel",37500:"MakerNote",37510:"UserComment",40964:"RelatedSoundFile",36867:"DateTimeOriginal",36868:"DateTimeDigitized",37520:"SubsecTime",37521:"SubsecTimeOriginal",37522:"SubsecTimeDigitized",33434:"ExposureTime",33437:"FNumber",34850:"ExposureProgram",34852:"SpectralSensitivity",34855:"ISOSpeedRatings",34856:"OECF",37377:"ShutterSpeedValue",37378:"ApertureValue",37379:"BrightnessValue",37380:"ExposureBias",37381:"MaxApertureValue",37382:"SubjectDistance",37383:"MeteringMode",37384:"LightSource",37385:"Flash",37396:"SubjectArea",37386:"FocalLength",41483:"FlashEnergy",41484:"SpatialFrequencyResponse",41486:"FocalPlaneXResolution",41487:"FocalPlaneYResolution",41488:"FocalPlaneResolutionUnit",41492:"SubjectLocation",41493:"ExposureIndex",41495:"SensingMethod",41728:"FileSource",41729:"SceneType",41730:"CFAPattern",41985:"CustomRendered",41986:"ExposureMode",41987:"WhiteBalance",41988:"DigitalZoomRation",41989:"FocalLengthIn35mmFilm",41990:"SceneCaptureType",41991:"GainControl",41992:"Contrast",41993:"Saturation",41994:"Sharpness",41995:"DeviceSettingDescription",41996:"SubjectDistanceRange",40965:"InteroperabilityIFDPointer",42016:"ImageUniqueID"},a=i.TiffTags={256:"ImageWidth",257:"ImageHeight",34665:"ExifIFDPointer",34853:"GPSInfoIFDPointer",40965:"InteroperabilityIFDPointer",258:"BitsPerSample",259:"Compression",262:"PhotometricInterpretation",274:"Orientation",277:"SamplesPerPixel",284:"PlanarConfiguration",530:"YCbCrSubSampling",531:"YCbCrPositioning",282:"XResolution",283:"YResolution",296:"ResolutionUnit",273:"StripOffsets",278:"RowsPerStrip",279:"StripByteCounts",513:"JPEGInterchangeFormat",514:"JPEGInterchangeFormatLength",301:"TransferFunction",318:"WhitePoint",319:"PrimaryChromaticities",529:"YCbCrCoefficients",532:"ReferenceBlackWhite",306:"DateTime",270:"ImageDescription",271:"Make",272:"Model",305:"Software",315:"Artist",33432:"Copyright"},s=i.GPSTags={0:"GPSVersionID",1:"GPSLatitudeRef",2:"GPSLatitude",3:"GPSLongitudeRef",4:"GPSLongitude",5:"GPSAltitudeRef",6:"GPSAltitude",7:"GPSTimeStamp",8:"GPSSatellites",9:"GPSStatus",10:"GPSMeasureMode",11:"GPSDOP",12:"GPSSpeedRef",13:"GPSSpeed",14:"GPSTrackRef",15:"GPSTrack",16:"GPSImgDirectionRef",17:"GPSImgDirection",18:"GPSMapDatum",19:"GPSDestLatitudeRef",20:"GPSDestLatitude",21:"GPSDestLongitudeRef",22:"GPSDestLongitude",23:"GPSDestBearingRef",24:"GPSDestBearing",25:"GPSDestDistanceRef",26:"GPSDestDistance",27:"GPSProcessingMethod",28:"GPSAreaInformation",29:"GPSDateStamp",30:"GPSDifferential"},l=i.IFD1Tags={256:"ImageWidth",257:"ImageHeight",258:"BitsPerSample",259:"Compression",262:"PhotometricInterpretation",273:"StripOffsets",274:"Orientation",277:"SamplesPerPixel",278:"RowsPerStrip",279:"StripByteCounts",282:"XResolution",283:"YResolution",284:"PlanarConfiguration",296:"ResolutionUnit",513:"JpegIFOffset",514:"JpegIFByteCount",529:"YCbCrCoefficients",530:"YCbCrSubSampling",531:"YCbCrPositioning",532:"ReferenceBlackWhite"},u=i.StringValues={ExposureProgram:{0:"Not defined",1:"Manual",2:"Normal program",3:"Aperture priority",4:"Shutter priority",5:"Creative program",6:"Action program",7:"Portrait mode",8:"Landscape mode"},MeteringMode:{0:"Unknown",1:"Average",2:"CenterWeightedAverage",3:"Spot",4:"MultiSpot",5:"Pattern",6:"Partial",255:"Other"},LightSource:{0:"Unknown",1:"Daylight",2:"Fluorescent",3:"Tungsten (incandescent light)",4:"Flash",9:"Fine weather",10:"Cloudy weather",11:"Shade",12:"Daylight fluorescent (D 5700 - 7100K)",13:"Day white fluorescent (N 4600 - 5400K)",14:"Cool white fluorescent (W 3900 - 4500K)",15:"White fluorescent (WW 3200 - 3700K)",17:"Standard light A",18:"Standard light B",19:"Standard light C",20:"D55",21:"D65",22:"D75",23:"D50",24:"ISO studio tungsten",255:"Other"},Flash:{0:"Flash did not fire",1:"Flash fired",5:"Strobe return light not detected",7:"Strobe return light detected",9:"Flash fired, compulsory flash mode",13:"Flash fired, compulsory flash mode, return light not detected",15:"Flash fired, compulsory flash mode, return light detected",16:"Flash did not fire, compulsory flash mode",24:"Flash did not fire, auto mode",25:"Flash fired, auto mode",29:"Flash fired, auto mode, return light not detected",31:"Flash fired, auto mode, return light detected",32:"No flash function",65:"Flash fired, red-eye reduction mode",69:"Flash fired, red-eye reduction mode, return light not detected",71:"Flash fired, red-eye reduction mode, return light detected",73:"Flash fired, compulsory flash mode, red-eye reduction mode",77:"Flash fired, compulsory flash mode, red-eye reduction mode, return light not detected",79:"Flash fired, compulsory flash mode, red-eye reduction mode, return light detected",89:"Flash fired, auto mode, red-eye reduction mode",93:"Flash fired, auto mode, return light not detected, red-eye reduction mode",95:"Flash fired, auto mode, return light detected, red-eye reduction mode"},SensingMethod:{1:"Not defined",2:"One-chip color area sensor",3:"Two-chip color area sensor",4:"Three-chip color area sensor",5:"Color sequential area sensor",7:"Trilinear sensor",8:"Color sequential linear sensor"},SceneCaptureType:{0:"Standard",1:"Landscape",2:"Portrait",3:"Night scene"},SceneType:{1:"Directly photographed"},CustomRendered:{0:"Normal process",1:"Custom process"},WhiteBalance:{0:"Auto white balance",1:"Manual white balance"},GainControl:{0:"None",1:"Low gain up",2:"High gain up",3:"Low gain down",4:"High gain down"},Contrast:{0:"Normal",1:"Soft",2:"Hard"},Saturation:{0:"Normal",1:"Low saturation",2:"High saturation"},Sharpness:{0:"Normal",1:"Soft",2:"Hard"},SubjectDistanceRange:{0:"Unknown",1:"Macro",2:"Close view",3:"Distant view"},FileSource:{3:"DSC"},Components:{0:"",1:"Y",2:"Cb",3:"Cr",4:"R",5:"G",6:"B"}};function c(e){return!!e.exifdata}function d(e){var t=new DataView(e);if(255!=t.getUint8(0)||216!=t.getUint8(1))return!1;for(var n=2,i=e.byteLength;n<i;){if(255!=t.getUint8(n))return!1;if(225==t.getUint8(n+1))return m(t,n+4,t.getUint16(n+2));n+=2+t.getUint16(n+2)}}var h={120:"caption",110:"credit",25:"keywords",55:"dateCreated",80:"byline",85:"bylineTitle",122:"captionWriter",105:"headline",116:"copyright",15:"category"};function f(e,t,n){for(var i,r,o,a,s=new DataView(e),l={},u=t;u<t+n;)28===s.getUint8(u)&&2===s.getUint8(u+1)&&(a=s.getUint8(u+2))in h&&(o=s.getInt16(u+3),r=h[a],i=v(s,u+5,o),l.hasOwnProperty(r)?l[r]instanceof Array?l[r].push(i):l[r]=[l[r],i]:l[r]=i),u++;return l}function p(e,t,n,i,r){var o,a,s=e.getUint16(n,!r),l={};for(a=0;a<s;a++)l[i[e.getUint16(o=n+12*a+2,!r)]]=g(e,o,t,0,r);return l}function g(e,t,n,i,r){var o,a,s,l,u,c,d=e.getUint16(t+2,!r),h=e.getUint32(t+4,!r),f=e.getUint32(t+8,!r)+n;switch(d){case 1:case 7:if(1==h)return e.getUint8(t+8,!r);for(o=h>4?f:t+8,a=[],l=0;l<h;l++)a[l]=e.getUint8(o+l);return a;case 2:return v(e,o=h>4?f:t+8,h-1);case 3:if(1==h)return e.getUint16(t+8,!r);for(o=h>2?f:t+8,a=[],l=0;l<h;l++)a[l]=e.getUint16(o+2*l,!r);return a;case 4:if(1==h)return e.getUint32(t+8,!r);for(a=[],l=0;l<h;l++)a[l]=e.getUint32(f+4*l,!r);return a;case 5:if(1==h)return u=e.getUint32(f,!r),c=e.getUint32(f+4,!r),(s=new Number(u/c)).numerator=u,s.denominator=c,s;for(a=[],l=0;l<h;l++)u=e.getUint32(f+8*l,!r),c=e.getUint32(f+4+8*l,!r),a[l]=new Number(u/c),a[l].numerator=u,a[l].denominator=c;return a;case 9:if(1==h)return e.getInt32(t+8,!r);for(a=[],l=0;l<h;l++)a[l]=e.getInt32(f+4*l,!r);return a;case 10:if(1==h)return e.getInt32(f,!r)/e.getInt32(f+4,!r);for(a=[],l=0;l<h;l++)a[l]=e.getInt32(f+8*l,!r)/e.getInt32(f+4+8*l,!r);return a}}function v(e,t,i){var r="";for(n=t;n<t+i;n++)r+=String.fromCharCode(e.getUint8(n));return r}function m(e,t){if("Exif"!=v(e,t,4))return!1;var n,i,r,c,d,h=t+6;if(18761==e.getUint16(h))n=!1;else{if(19789!=e.getUint16(h))return!1;n=!0}if(42!=e.getUint16(h+2,!n))return!1;var f=e.getUint32(h+4,!n);if(f<8)return!1;if((i=p(e,h,h+f,a,n)).ExifIFDPointer)for(r in c=p(e,h,h+i.ExifIFDPointer,o,n)){switch(r){case"LightSource":case"Flash":case"MeteringMode":case"ExposureProgram":case"SensingMethod":case"SceneCaptureType":case"SceneType":case"CustomRendered":case"WhiteBalance":case"GainControl":case"Contrast":case"Saturation":case"Sharpness":case"SubjectDistanceRange":case"FileSource":c[r]=u[r][c[r]];break;case"ExifVersion":case"FlashpixVersion":c[r]=String.fromCharCode(c[r][0],c[r][1],c[r][2],c[r][3]);break;case"ComponentsConfiguration":c[r]=u.Components[c[r][0]]+u.Components[c[r][1]]+u.Components[c[r][2]]+u.Components[c[r][3]]}i[r]=c[r]}if(i.GPSInfoIFDPointer)for(r in d=p(e,h,h+i.GPSInfoIFDPointer,s,n)){switch(r){case"GPSVersionID":d[r]=d[r][0]+"."+d[r][1]+"."+d[r][2]+"."+d[r][3]}i[r]=d[r]}return i.thumbnail=function(e,t,n,i){var r=function(e,t,n){var i=e.getUint16(t,!n);return e.getUint32(t+2+12*i,!n)}(e,t+n,i);if(!r)return{};if(r>e.byteLength)return{};var o=p(e,t,t+r,l,i);if(o.Compression)switch(o.Compression){case 6:o.JpegIFOffset&&o.JpegIFByteCount&&(o.blob=new Blob([new Uint8Array(e.buffer,t+o.JpegIFOffset,o.JpegIFByteCount)],{type:"image/jpeg"}));break;case 1:console.log("Thumbnail image format is TIFF, which is not implemented.");break;default:console.log("Unknown thumbnail image format '%s'",o.Compression)}else 2==o.PhotometricInterpretation&&console.log("Thumbnail image format is RGB, which is not implemented.");return o}(e,h,f,n),i}function y(e){var t={};if(1==e.nodeType){if(e.attributes.length>0){t["@attributes"]={};for(var n=0;n<e.attributes.length;n++){var i=e.attributes.item(n);t["@attributes"][i.nodeName]=i.nodeValue}}}else if(3==e.nodeType)return e.nodeValue;if(e.hasChildNodes())for(var r=0;r<e.childNodes.length;r++){var o=e.childNodes.item(r),a=o.nodeName;if(null==t[a])t[a]=y(o);else{if(null==t[a].push){var s=t[a];t[a]=[],t[a].push(s)}t[a].push(y(o))}}return t}function b(e){try{var t={};if(e.children.length>0)for(var n=0;n<e.children.length;n++){var i=e.children.item(n),r=i.attributes;for(var o in r){var a=r[o],s=a.nodeName;void 0!==s&&(t[s]=a.nodeValue)}var l=i.nodeName;if(void 0===t[l])t[l]=y(i);else{if(void 0===t[l].push){var u=t[l];t[l]=[],t[l].push(u)}t[l].push(y(i))}}else t=e.textContent;return t}catch(c){console.log(c.message)}}i.enableXmp=function(){i.isXmpEnabled=!0},i.disableXmp=function(){i.isXmpEnabled=!1},i.getData=function(e,t){return!((self.Image&&e instanceof self.Image||self.HTMLImageElement&&e instanceof self.HTMLImageElement)&&!e.complete||(c(e)?t&&t.call(e):function(e,t){function n(n){var r=d(n);e.exifdata=r||{};var o=function(e){var t=new DataView(e);if(255!=t.getUint8(0)||216!=t.getUint8(1))return!1;for(var n=2,i=e.byteLength,r=function(e,t){return 56===e.getUint8(t)&&66===e.getUint8(t+1)&&73===e.getUint8(t+2)&&77===e.getUint8(t+3)&&4===e.getUint8(t+4)&&4===e.getUint8(t+5)};n<i;){if(r(t,n)){var o=t.getUint8(n+7);return o%2!=0&&(o+=1),0===o&&(o=4),f(e,n+8+o,t.getUint16(n+6+o))}n++}}(n);if(e.iptcdata=o||{},i.isXmpEnabled){var a=function(e){if("DOMParser"in self){var t=new DataView(e);if(255!=t.getUint8(0)||216!=t.getUint8(1))return!1;for(var n=2,i=e.byteLength,r=new DOMParser;n<i-4;){if("http"==v(t,n,4)){var o=n-1,a=t.getUint16(n-2)-1,s=v(t,o,a),l=s.indexOf("xmpmeta>")+8,u=(s=s.substring(s.indexOf("<x:xmpmeta"),l)).indexOf("x:xmpmeta")+10;return s=s.slice(0,u)+'xmlns:Iptc4xmpCore="http://iptc.org/std/Iptc4xmpCore/1.0/xmlns/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tiff="http://ns.adobe.com/tiff/1.0/" xmlns:plus="http://schemas.android.com/apk/lib/com.google.android.gms.plus" xmlns:ext="http://www.gettyimages.com/xsltExtension/1.0" xmlns:exif="http://ns.adobe.com/exif/1.0/" xmlns:stEvt="http://ns.adobe.com/xap/1.0/sType/ResourceEvent#" xmlns:stRef="http://ns.adobe.com/xap/1.0/sType/ResourceRef#" xmlns:crs="http://ns.adobe.com/camera-raw-settings/1.0/" xmlns:xapGImg="http://ns.adobe.com/xap/1.0/g/img/" xmlns:Iptc4xmpExt="http://iptc.org/std/Iptc4xmpExt/2008-02-29/" '+s.slice(u),b(r.parseFromString(s,"text/xml"))}n++}}}(n);e.xmpdata=a||{}}t&&t.call(e)}if(e.src)if(/^data\:/i.test(e.src))n(function(e,t){t=t||e.match(/^data\:([^\;]+)\;base64,/im)[1]||"",e=e.replace(/^data\:([^\;]+)\;base64,/gim,"");for(var n=atob(e),i=n.length,r=new ArrayBuffer(i),o=new Uint8Array(r),a=0;a<i;a++)o[a]=n.charCodeAt(a);return r}(e.src));else if(/^blob\:/i.test(e.src))(o=new FileReader).onload=function(e){n(e.target.result)},function(e,t){var n=new XMLHttpRequest;n.open("GET",e,!0),n.responseType="blob",n.onload=function(e){200!=this.status&&0!==this.status||o.readAsArrayBuffer(this.response)},n.send()}(e.src);else{var r=new XMLHttpRequest;r.onload=function(){if(200!=this.status&&0!==this.status)throw"Could not load image";n(r.response),r=null},r.open("GET",e.src,!0),r.responseType="arraybuffer",r.send(null)}else if(self.FileReader&&(e instanceof self.Blob||e instanceof self.File)){var o;(o=new FileReader).onload=function(e){n(e.target.result)},o.readAsArrayBuffer(e)}}(e,t),0))},i.getTag=function(e,t){if(c(e))return e.exifdata[t]},i.getIptcTag=function(e,t){if(c(e))return e.iptcdata[t]},i.getAllTags=function(e){if(!c(e))return{};var t,n=e.exifdata,i={};for(t in n)n.hasOwnProperty(t)&&(i[t]=n[t]);return i},i.getAllIptcTags=function(e){if(!c(e))return{};var t,n=e.iptcdata,i={};for(t in n)n.hasOwnProperty(t)&&(i[t]=n[t]);return i},i.pretty=function(e){if(!c(e))return"";var t,n=e.exifdata,i="";for(t in n)n.hasOwnProperty(t)&&(i+="object"==typeof n[t]?n[t]instanceof Number?t+" : "+n[t]+" ["+n[t].numerator+"/"+n[t].denominator+"]\r\n":t+" : ["+n[t].length+" values]\r\n":t+" : "+n[t]+"\r\n");return i},i.readFromBinaryFile=function(e){return d(e)},void 0===(r=(function(){return i}).apply(t,[]))||(e.exports=r)}).call(this)},bC4P:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var i=function(e,t,n,i,a){return o(e[1],t[1],n[1],i[1],a).map(function(o){return r(e[0],t[0],n[0],i[0],o)})},r=function(e,t,n,i,r){return r*(3*t*Math.pow(r-1,2)+r*(-3*n*r+3*n+i*r))-e*Math.pow(r-1,3)},o=function(e,t,n,i,r){return a((i-=r)-3*(n-=r)+3*(t-=r)-(e-=r),3*n-6*t+3*e,3*t-3*e,e).filter(function(e){return e>=0&&e<=1})},a=function(e,t,n,i){if(0===e)return function(e,t,n){var i=t*t-4*e*n;return i<0?[]:[(-t+Math.sqrt(i))/(2*e),(-t-Math.sqrt(i))/(2*e)]}(t,n,i);var r=(3*(n/=e)-(t/=e)*t)/3,o=(2*t*t*t-9*t*n+27*(i/=e))/27;if(0===r)return[Math.pow(-o,1/3)];if(0===o)return[Math.sqrt(-r),-Math.sqrt(-r)];var a=Math.pow(o/2,2)+Math.pow(r/3,3);if(0===a)return[Math.pow(o/2,.5)-t/3];if(a>0)return[Math.pow(-o/2+Math.sqrt(a),1/3)-Math.pow(o/2+Math.sqrt(a),1/3)-t/3];var s=Math.sqrt(Math.pow(-r/3,3)),l=Math.acos(-o/(2*Math.sqrt(Math.pow(-r/3,3)))),u=2*Math.pow(s,1/3);return[u*Math.cos(l/3)-t/3,u*Math.cos((l+2*Math.PI)/3)-t/3,u*Math.cos((l+4*Math.PI)/3)-t/3]}},iWo5:function(e,t,n){"use strict";n.r(t),n.d(t,"createGesture",function(){return l});var i=n("y08P");n.d(t,"GESTURE_CONTROLLER",function(){return i.a});var r,o=function(e,t,n,i){var r,o,s=a(e)?{capture:!!i.capture,passive:!!i.passive}:!!i.capture;return e.__zone_symbol__addEventListener?(r="__zone_symbol__addEventListener",o="__zone_symbol__removeEventListener"):(r="addEventListener",o="removeEventListener"),e[r](t,n,s),function(){e[o](t,n,s)}},a=function(e){if(void 0===r)try{var t=Object.defineProperty({},"passive",{get:function(){r=!0}});e.addEventListener("optsTest",function(){},t)}catch(n){r=!1}return!!r},s=function(e){return e instanceof Document?e:e.ownerDocument},l=function(e){var t=!1,n=!1,r=!0,a=!1,l=Object.assign({disableScroll:!1,direction:"x",gesturePriority:0,passive:!0,maxAngle:40,threshold:10},e),h=l.canStart,f=l.onWillStart,p=l.onStart,g=l.onEnd,v=l.notCaptured,m=l.onMove,y=l.threshold,b=l.passive,w=l.blurOnStart,_={type:"pan",startX:0,startY:0,startTime:0,currentX:0,currentY:0,velocityX:0,velocityY:0,deltaX:0,deltaY:0,currentTime:0,event:void 0,data:void 0},k=function(e,t,n){var i=n*(Math.PI/180),r="x"===e,o=Math.cos(i),a=t*t,s=0,l=0,u=!1,c=0;return{start:function(e,t){s=e,l=t,c=0,u=!0},detect:function(e,t){if(!u)return!1;var n=e-s,i=t-l,d=n*n+i*i;if(d<a)return!1;var h=Math.sqrt(d),f=(r?n:i)/h;return c=f>o?1:f<-o?-1:0,u=!1,!0},isGesture:function(){return 0!==c},getDirection:function(){return c}}}(l.direction,l.threshold,l.maxAngle),x=i.a.createGesture({name:e.gestureName,priority:e.gesturePriority,disableScroll:e.disableScroll}),A=function(){t&&(a=!1,m&&m(_))},C=function(){return!(x&&!x.capture()||(t=!0,r=!1,_.startX=_.currentX,_.startY=_.currentY,_.startTime=_.currentTime,f?f(_).then(S):S(),0))},S=function(){w&&function(){if("undefined"!=typeof document){var e=document.activeElement;null!==e&&e.blur&&e.blur()}}(),p&&p(_),r=!0},P=function(){t=!1,n=!1,a=!1,r=!0,x.release()},E=function(e){var n=t,i=r;P(),i&&(u(_,e),n?g&&g(_):v&&v(_))},D=function(e,t,n,i,r){var a,l,u,c,d,h,f,p=0,g=function(i){p=Date.now()+2e3,t(i)&&(!l&&n&&(l=o(e,"touchmove",n,r)),u||(u=o(e,"touchend",m,r)),c||(c=o(e,"touchcancel",m,r)))},v=function(i){p>Date.now()||t(i)&&(!h&&n&&(h=o(s(e),"mousemove",n,r)),f||(f=o(s(e),"mouseup",y,r)))},m=function(e){b(),i&&i(e)},y=function(e){w(),i&&i(e)},b=function(){l&&l(),u&&u(),c&&c(),l=u=c=void 0},w=function(){h&&h(),f&&f(),h=f=void 0},_=function(){b(),w()},k=function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];t?(a||(a=o(e,"touchstart",g,r)),d||(d=o(e,"mousedown",v,r))):(a&&a(),d&&d(),a=d=void 0,_())};return{enable:k,stop:_,destroy:function(){k(!1),i=n=t=void 0}}}(l.el,function(e){var t=d(e);return!(n||!r)&&(c(e,_),_.startX=_.currentX,_.startY=_.currentY,_.startTime=_.currentTime=t,_.velocityX=_.velocityY=_.deltaX=_.deltaY=0,_.event=e,(!h||!1!==h(_))&&(x.release(),!!x.start()&&(n=!0,0===y?C():(k.start(_.startX,_.startY),!0))))},function(e){t?!a&&r&&(a=!0,u(_,e),requestAnimationFrame(A)):(u(_,e),k.detect(_.currentX,_.currentY)&&(k.isGesture()&&C()||O()))},E,{capture:!1,passive:b}),O=function(){P(),D.stop(),v&&v(_)};return{enable:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];e||(t&&E(void 0),P()),D.enable(e)},destroy:function(){x.destroy(),D.destroy()}}},u=function(e,t){if(t){var n=e.currentX,i=e.currentY,r=e.currentTime;c(t,e);var o=e.currentX,a=e.currentY,s=(e.currentTime=d(t))-r;if(s>0&&s<100){var l=(a-i)/s;e.velocityX=(o-n)/s*.7+.3*e.velocityX,e.velocityY=.7*l+.3*e.velocityY}e.deltaX=o-e.startX,e.deltaY=a-e.startY,e.event=t}},c=function(e,t){var n=0,i=0;if(e){var r=e.changedTouches;if(r&&r.length>0){var o=r[0];n=o.clientX,i=o.clientY}else void 0!==e.pageX&&(n=e.pageX,i=e.pageY)}t.currentX=n,t.currentY=i},d=function(e){return e.timeStamp||Date.now()}},k4ps:function(e,t,n){"use strict";n.d(t,"a",function(){return o}),n.d(t,"b",function(){return a}),n.d(t,"c",function(){return s}),n.d(t,"d",function(){return l}),n.d(t,"e",function(){return u}),n.d(t,"f",function(){return C}),n.d(t,"g",function(){return E}),n.d(t,"h",function(){return k}),n.d(t,"i",function(){return S}),n.d(t,"j",function(){return c});var i=n("wEJo"),r=n("1vRN"),o="ionViewWillEnter",a="ionViewDidEnter",s="ionViewWillLeave",l="ionViewDidLeave",u="ionViewWillUnload",c=function(e){return new Promise(function(t,n){Object(i.f)(function(){d(e),h(e).then(function(n){n.animation&&n.animation.destroy(),f(e),t(n)},function(t){f(e),n(t)})})})},d=function(e){var t=e.enteringEl,n=e.leavingEl;P(t,n,e.direction),e.showGoBack?t.classList.add("can-go-back"):t.classList.remove("can-go-back"),S(t,!1),n&&S(n,!1)},h=function(){var e=x(regeneratorRuntime.mark(function e(t){var n;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,p(t);case 2:return n=e.sent,e.abrupt("return",n&&i.a.isBrowser?g(n,t):v(t));case 4:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}(),f=function(e){var t=e.leavingEl;e.enteringEl.classList.remove("ion-page-invisible"),void 0!==t&&t.classList.remove("ion-page-invisible")},p=function(){var e=x(regeneratorRuntime.mark(function e(t){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!t.leavingEl||!t.animated||0===t.duration){e.next=16;break}if(!t.animationBuilder){e.next=5;break}e.t0=t.animationBuilder,e.next=15;break;case 5:if("ios"!==t.mode){e.next=11;break}return e.next=8,Promise.resolve().then(n.bind(null,"lTIg"));case 8:e.t1=e.sent.iosTransitionAnimation,e.next=14;break;case 11:return e.next=13,Promise.resolve().then(n.bind(null,"RQGG"));case 13:e.t1=e.sent.mdTransitionAnimation;case 14:e.t0=e.t1;case 15:return e.abrupt("return",e.t0);case 16:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}(),g=function(){var e=x(regeneratorRuntime.mark(function e(t,n){var i,r;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,m(n,!0);case 2:return i=t(n.baseEl,n),w(n.enteringEl,n.leavingEl),e.next=6,b(i,n);case 6:return r=e.sent,e.abrupt("return",(n.progressCallback&&n.progressCallback(void 0),r&&_(n.enteringEl,n.leavingEl),{hasCompleted:r,animation:i}));case 8:case"end":return e.stop()}},e)}));return function(t,n){return e.apply(this,arguments)}}(),v=function(){var e=x(regeneratorRuntime.mark(function e(t){var n,i;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.enteringEl,i=t.leavingEl,e.next=3,m(t,!1);case 3:return w(n,i),_(n,i),e.abrupt("return",{hasCompleted:!0});case 6:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}(),m=function(){var e=x(regeneratorRuntime.mark(function e(t,n){var i;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return i=(void 0!==t.deepWait?t.deepWait:n)?[C(t.enteringEl),C(t.leavingEl)]:[A(t.enteringEl),A(t.leavingEl)],e.next=3,Promise.all(i);case 3:return e.next=5,y(t.viewIsReady,t.enteringEl);case 5:case"end":return e.stop()}},e)}));return function(t,n){return e.apply(this,arguments)}}(),y=function(){var e=x(regeneratorRuntime.mark(function e(t,n){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(e.t0=t,!e.t0){e.next=4;break}return e.next=4,t(n);case 4:case"end":return e.stop()}},e)}));return function(t,n){return e.apply(this,arguments)}}(),b=function(e,t){var n=t.progressCallback,i=new Promise(function(t){e.onFinish(function(e){return t(1===e)})});return n?(e.progressStart(!0),n(e)):e.play(),i},w=function(e,t){k(t,s),k(e,o)},_=function(e,t){k(e,a),k(t,l)},k=function(e,t){if(e){var n=new CustomEvent(t,{bubbles:!1,cancelable:!1});e.dispatchEvent(n)}},A=function(e){return e?new Promise(function(t){return Object(r.c)(e,t)}):Promise.resolve()},C=function(){var e=x(regeneratorRuntime.mark(function e(t){var n;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!(n=t)){e.next=12;break}if(e.t0=null!=n.componentOnReady,!e.t0){e.next=8;break}return e.next=6,n.componentOnReady();case 6:e.t1=e.sent,e.t0=null!=e.t1;case 8:if(!e.t0){e.next=10;break}return e.abrupt("return");case 10:return e.next=12,Promise.all(Array.from(n.children).map(C));case 12:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}(),S=function(e,t){t?(e.setAttribute("aria-hidden","true"),e.classList.add("ion-page-hidden")):(e.hidden=!1,e.removeAttribute("aria-hidden"),e.classList.remove("ion-page-hidden"))},P=function(e,t,n){void 0!==e&&(e.style.zIndex="back"===n?"99":"101"),void 0!==t&&(t.style.zIndex="100")},E=function(e){return e.classList.contains("ion-page")?e:e.querySelector(":scope > .ion-page, :scope > ion-nav, :scope > ion-tabs")||e}},kLfG:function(e,t,n){var i={"./ion-action-sheet.entry.js":["dUtr",0,12],"./ion-alert.entry.js":["Q8AI",0,13],"./ion-app_8.entry.js":["hgI1",0,14],"./ion-avatar_3.entry.js":["CfoV",0,15],"./ion-back-button.entry.js":["Nt02",0,16],"./ion-backdrop.entry.js":["Q2Bp",17],"./ion-button_2.entry.js":["0Pbj",0,18],"./ion-card_5.entry.js":["ydQj",0,19],"./ion-checkbox.entry.js":["4fMi",0,20],"./ion-chip.entry.js":["czK9",0,21],"./ion-col_3.entry.js":["/CAe",22],"./ion-datetime_3.entry.js":["WgF3",0,23],"./ion-fab_3.entry.js":["uQcF",0,24],"./ion-img.entry.js":["wHD8",25],"./ion-infinite-scroll_2.entry.js":["2lz6",26],"./ion-input.entry.js":["ercB",0,27],"./ion-item-option_3.entry.js":["MGMP",0,28],"./ion-item_8.entry.js":["9bur",0,29],"./ion-loading.entry.js":["cABk",0,30],"./ion-menu_3.entry.js":["kyFE",0,31],"./ion-modal.entry.js":["TvZU",0,32],"./ion-nav_2.entry.js":["vnES",0,33],"./ion-popover.entry.js":["qCuA",0,34],"./ion-progress-bar.entry.js":["0tOe",0,35],"./ion-radio_2.entry.js":["h11V",0,36],"./ion-range.entry.js":["XGij",0,37],"./ion-refresher_2.entry.js":["nYbb",0,38],"./ion-reorder_2.entry.js":["smMY",0,39],"./ion-ripple-effect.entry.js":["STjf",40],"./ion-route_4.entry.js":["k5eQ",0,41],"./ion-searchbar.entry.js":["OR5t",0,42],"./ion-segment_2.entry.js":["fSgp",0,43],"./ion-select_3.entry.js":["lfGF",0,44],"./ion-slide_2.entry.js":["5xYT",45],"./ion-spinner.entry.js":["nI0H",0,46],"./ion-split-pane.entry.js":["NAQR",47],"./ion-tab-bar_2.entry.js":["knkW",0,48],"./ion-tab_2.entry.js":["TpdJ",0,49],"./ion-text.entry.js":["ISmu",0,50],"./ion-textarea.entry.js":["U7LX",0,51],"./ion-toast.entry.js":["L3sA",0,52],"./ion-toggle.entry.js":["IUOf",0,53],"./ion-virtual-scroll.entry.js":["8Mb5",54]};function r(e){if(!n.o(i,e))return Promise.resolve().then(function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t});var t=i[e],r=t[0];return Promise.all(t.slice(1).map(n.e)).then(function(){return n(r)})}r.keys=function(){return Object.keys(i)},r.id="kLfG",e.exports=r},kiQV:function(e){e.exports=JSON.parse('{"name":"parapheur","version":"21.03.7","description":"Annoter ou Signer vos documents sur votre tablette","homepage":"https://labs.maarch.org/maarch/MaarchParapheur","scripts":{"dep-list":"npm list --depth=0","check-update":"ncu","upgrade":"ncu -u","lint":"eslint -c .eslintrc.js --ext .ts src/frontend","lint-fix":"eslint -c .eslintrc.js --ext .ts src/frontend/ --fix","reload-packages":"rm -Rf node_modules && rm package-lock.json && npm cache clean --force && npm i","reload-packages-prod":"rm -Rf node_modules && rm package-lock.json && npm cache clean --force && npm i --production","build":"ng build","build-watch":"ng build --watch","build-prod":"ng build --prod","build-release":"npm run build-prod && npm run reload-packages-prod"},"private":true,"keywords":[],"author":"Maarch","license":"GPL-3.0","dependencies":{"core-js":"3.6.4","tslib":"2.1.0","zone.js":"0.10.2"},"devDependencies":{"@angular-devkit/build-angular":"0.1100.7","@angular-eslint/eslint-plugin":"2.0.2","@angular/animations":"11.2.6","@angular/cdk":"11.2.5","@angular/cli":"11.2.5","@angular/common":"11.2.6","@angular/compiler":"11.2.6","@angular/compiler-cli":"11.2.6","@angular/core":"11.2.6","@angular/forms":"11.2.6","@angular/language-service":"11.2.6","@angular/material":"11.2.5","@angular/platform-browser":"11.2.6","@angular/platform-browser-dynamic":"11.2.6","@angular/router":"11.2.6","@biesbjerg/ngx-translate-extract":"6.0.3","@fortawesome/fontawesome-free":"5.15.3","@ionic/angular":"5.6.3","@ngrx/store":"9.2.1","@ngrx/store-devtools":"9.2.1","@ngx-translate/core":"12.1.2","@ngx-translate/http-loader":"4.0.0","@peculiar/fortify-webcomponents":"0.17.3","@types/hammerjs":"2.0.39","@types/jasmine":"3.6.7","@types/jasminewd2":"2.0.8","@types/jquery":"3.5.5","@types/node":"13.13.47","@typescript-eslint/eslint-plugin":"4.19.0","@typescript-eslint/eslint-plugin-tslint":"4.19.0","@typescript-eslint/parser":"4.19.0","angular2-draggable":"2.3.2","angular2-signaturepad":"3.0.4","codelyzer":"5.1.2","eslint":"7.22.0","eslint-config-prettier":"8.1.0","eslint-plugin-import":"2.22.1","exif-js":"2.3.0","hammerjs":"2.0.8","jquery":"3.6.0","ngx-cookie-service":"3.0.3","ngx-drag-scroll":"9.0.0-beta.4","ngx-extended-pdf-viewer":"5.0.1","ngx-pipes":"2.7.3","npm-check-updates":"4.1.0","prettier":"2.2.1","rxjs":"6.6.6","stylus":"0.54.7","stylus-loader":"3.0.2","tslint":"6.1.0","typescript":"4.0.5","typescript-tools":"0.3.1"},"repository":{}}')},lTIg:function(e,t,n){"use strict";n.r(t),n.d(t,"iosTransitionAnimation",function(){return f}),n.d(t,"shadow",function(){return a});var i=n("meiF"),r=n("k4ps");n("1vRN"),n("wEJo");var o=function(e){return document.querySelector(e+".ion-cloned-element")},a=function(e){return e.shadowRoot||e},s=function(e){var t="ION-TABS"===e.tagName?e:e.querySelector("ion-tabs"),n="ion-content ion-header:not(.header-collapse-condense-inactive) ion-title.title-large";if(null!=t){var i=t.querySelector("ion-tab:not(.tab-hidden), .ion-page:not(.ion-page-hidden)");return null!=i?i.querySelector(n):null}return e.querySelector(n)},l=function(e,t){var n="ION-TABS"===e.tagName?e:e.querySelector("ion-tabs"),i=[];if(null!=n){var r=n.querySelector("ion-tab:not(.tab-hidden), .ion-page:not(.ion-page-hidden)");null!=r&&(i=r.querySelectorAll("ion-buttons"))}else i=e.querySelectorAll("ion-buttons");var o,a=h(i);try{for(a.s();!(o=a.n()).done;){var s=o.value,l=s.closest("ion-header"),u=l&&!l.classList.contains("header-collapse-condense-inactive"),c=s.querySelector("ion-back-button"),d=s.classList.contains("buttons-collapse"),f="start"===s.slot||""===s.slot;if(null!==c&&f&&(d&&u&&t||!d))return c}}catch(p){a.e(p)}finally{a.f()}return null},u=function(e,t,n,r,s,l){var u=t?"calc(100% - ".concat(l.right+4,"px)"):l.left-4+"px",c=t?"7px":"-7px",d=t?"-4px":"4px",h=t?"-4px":"4px",f=t?"right":"left",p=t?"left":"right",g=n?[{offset:0,opacity:1,transform:"translate3d(".concat(d,", ").concat(l.top-46,"px, 0) scale(1)")},{offset:.6,opacity:0},{offset:1,opacity:0,transform:"translate3d(".concat(c,", ").concat(s.top-40,"px, 0) scale(2.1)")}]:[{offset:0,opacity:0,transform:"translate3d(".concat(c,", ").concat(s.top-40,"px, 0) scale(2.1)")},{offset:1,opacity:1,transform:"translate3d(".concat(d,", ").concat(l.top-46,"px, 0) scale(1)")}],v=n?[{offset:0,opacity:1,transform:"translate3d(".concat(h,", ").concat(l.top-46,"px, 0) scale(1)")},{offset:.2,opacity:0,transform:"translate3d(".concat(h,", ").concat(l.top-41,"px, 0) scale(0.6)")},{offset:1,opacity:0,transform:"translate3d(".concat(h,", ").concat(l.top-41,"px, 0) scale(0.6)")}]:[{offset:0,opacity:0,transform:"translate3d(".concat(h,", ").concat(l.top-41,"px, 0) scale(0.6)")},{offset:1,opacity:1,transform:"translate3d(".concat(h,", ").concat(l.top-46,"px, 0) scale(1)")}],m=Object(i.a)(),y=Object(i.a)(),b=o("ion-back-button"),w=a(b).querySelector(".button-text"),_=a(b).querySelector("ion-icon");b.text=r.text,b.mode=r.mode,b.icon=r.icon,b.color=r.color,b.disabled=r.disabled,b.style.setProperty("display","block"),b.style.setProperty("position","fixed"),y.addElement(_),m.addElement(w),m.beforeStyles({"transform-origin":f+" center"}).beforeAddWrite(function(){r.style.setProperty("display","none"),b.style.setProperty(f,u)}).afterAddWrite(function(){r.style.setProperty("display",""),b.style.setProperty("display","none"),b.style.removeProperty(f)}).keyframes(g),y.beforeStyles({"transform-origin":p+" center"}).keyframes(v),e.addAnimation([m,y])},c=function(e,t,n,r,a,s){var l=t?"calc(100% - ".concat(a.right,"px)"):a.left+"px",u=t?"-18px":"18px",c=t?"right":"left",h=n?[{offset:0,opacity:0,transform:"translate3d(".concat(u,", ").concat(s.top-4,"px, 0) scale(0.49)")},{offset:.1,opacity:0},{offset:1,opacity:1,transform:"translate3d(0, ".concat(a.top-2,"px, 0) scale(1)")}]:[{offset:0,opacity:.99,transform:"translate3d(0, ".concat(a.top-2,"px, 0) scale(1)")},{offset:.6,opacity:0},{offset:1,opacity:0,transform:"translate3d(".concat(u,", ").concat(s.top-4,"px, 0) scale(0.5)")}],f=o("ion-title"),p=Object(i.a)();f.innerText=r.innerText,f.size=r.size,f.color=r.color,p.addElement(f),p.beforeStyles(d({"transform-origin":c+" center",height:"46px",display:"",position:"relative"},c,l)).beforeAddWrite(function(){r.style.setProperty("display","none")}).afterAddWrite(function(){r.style.setProperty("display",""),f.style.setProperty("display","none")}).keyframes(h),e.addAnimation(p)},f=function(e,t){try{var n="opacity",o="transform",d="0%",h="rtl"===e.ownerDocument.dir,f=h?"-99.5%":"99.5%",p=h?"33%":"-33%",g=t.enteringEl,v=t.leavingEl,m="back"===t.direction,y=g.querySelector(":scope > ion-content"),b=g.querySelectorAll(":scope > ion-header > *:not(ion-toolbar), :scope > ion-footer > *"),w=g.querySelectorAll(":scope > ion-header > ion-toolbar"),_=Object(i.a)(),k=Object(i.a)();if(_.addElement(g).duration(t.duration||540).easing(t.easing||"cubic-bezier(0.32,0.72,0,1)").fill("both").beforeRemoveClass("ion-page-invisible"),v&&e){var x=Object(i.a)();x.addElement(e),_.addAnimation(x)}if(y||0!==w.length||0!==b.length?(k.addElement(y),k.addElement(b)):k.addElement(g.querySelector(":scope > .ion-page, :scope > ion-nav, :scope > ion-tabs")),_.addAnimation(k),m?k.beforeClearStyles([n]).fromTo("transform","translateX(".concat(p,")"),"translateX(".concat(d,")")).fromTo(n,.8,1):k.beforeClearStyles([n]).fromTo("transform","translateX(".concat(f,")"),"translateX(".concat(d,")")),y){var A=a(y).querySelector(".transition-effect");if(A){var C=A.querySelector(".transition-cover"),S=A.querySelector(".transition-shadow"),P=Object(i.a)(),E=Object(i.a)(),D=Object(i.a)();P.addElement(A).beforeStyles({opacity:"1",display:"block"}).afterStyles({opacity:"",display:""}),E.addElement(C).beforeClearStyles([n]).fromTo(n,0,.1),D.addElement(S).beforeClearStyles([n]).fromTo(n,.03,.7),P.addAnimation([E,D]),k.addAnimation([P])}}var O=g.querySelector("ion-header.header-collapse-condense"),M=function(e,t,n,i,r){var o=l(i,n),a=s(r),d=s(i),h=l(r,n),f=null!==o&&null!==a&&!n,p=null!==d&&null!==h&&n;if(f){var g=a.getBoundingClientRect(),v=o.getBoundingClientRect();c(e,t,n,a,g,v),u(e,t,n,o,g,v)}else if(p){var m=d.getBoundingClientRect(),y=h.getBoundingClientRect();c(e,t,n,d,m,y),u(e,t,n,h,m,y)}return{forward:f,backward:p}}(_,h,m,g,v),T=M.forward,I=M.backward;if(w.forEach(function(e){var t=Object(i.a)();t.addElement(e),_.addAnimation(t);var r=Object(i.a)();r.addElement(e.querySelector("ion-title"));var o,s=Object(i.a)(),l=Array.from(e.querySelectorAll("ion-buttons,[menuToggle]")),u=e.closest("ion-header"),c=u&&u.classList.contains("header-collapse-condense-inactive");o=l.filter(m?function(e){var t=e.classList.contains("buttons-collapse");return t&&!c||!t}:function(e){return!e.classList.contains("buttons-collapse")}),s.addElement(o);var g=Object(i.a)();g.addElement(e.querySelectorAll(":scope > *:not(ion-title):not(ion-buttons):not([menuToggle])"));var v=Object(i.a)();v.addElement(a(e).querySelector(".toolbar-background"));var y=Object(i.a)(),b=e.querySelector("ion-back-button");if(b&&y.addElement(b),t.addAnimation([r,s,g,v,y]),s.fromTo(n,.01,1),g.fromTo(n,.01,1),m)c||r.fromTo("transform","translateX(".concat(p,")"),"translateX(".concat(d,")")).fromTo(n,.01,1),g.fromTo("transform","translateX(".concat(p,")"),"translateX(".concat(d,")")),y.fromTo(n,.01,1);else if(O||r.fromTo("transform","translateX(".concat(f,")"),"translateX(".concat(d,")")).fromTo(n,.01,1),g.fromTo("transform","translateX(".concat(f,")"),"translateX(".concat(d,")")),v.beforeClearStyles([n,"transform"]),(null==u?void 0:u.translucent)?v.fromTo("transform",h?"translateX(-100%)":"translateX(100%)","translateX(0px)"):v.fromTo(n,.01,"var(--opacity)"),T||y.fromTo(n,.01,1),b&&!T){var w=Object(i.a)();w.addElement(a(b).querySelector(".button-text")).fromTo("transform",h?"translateX(-100px)":"translateX(100px)","translateX(0px)"),t.addAnimation(w)}}),v){var R=Object(i.a)(),L=v.querySelector(":scope > ion-content"),F=v.querySelectorAll(":scope > ion-header > ion-toolbar"),B=v.querySelectorAll(":scope > ion-header > *:not(ion-toolbar), :scope > ion-footer > *");if(L||0!==F.length||0!==B.length?(R.addElement(L),R.addElement(B)):R.addElement(v.querySelector(":scope > .ion-page, :scope > ion-nav, :scope > ion-tabs")),_.addAnimation(R),m){R.beforeClearStyles([n]).fromTo("transform","translateX(".concat(d,")"),h?"translateX(-100%)":"translateX(100%)");var V=Object(r.g)(v);_.afterAddWrite(function(){"normal"===_.getDirection()&&V.style.setProperty("display","none")})}else R.fromTo("transform","translateX(".concat(d,")"),"translateX(".concat(p,")")).fromTo(n,1,.8);if(L){var z=a(L).querySelector(".transition-effect");if(z){var N=z.querySelector(".transition-cover"),H=z.querySelector(".transition-shadow"),j=Object(i.a)(),U=Object(i.a)(),W=Object(i.a)();j.addElement(z).beforeStyles({opacity:"1",display:"block"}).afterStyles({opacity:"",display:""}),U.addElement(N).beforeClearStyles([n]).fromTo(n,.1,0),W.addElement(H).beforeClearStyles([n]).fromTo(n,.7,.03),j.addAnimation([U,W]),R.addAnimation([j])}}F.forEach(function(e){var t=Object(i.a)();t.addElement(e);var r=Object(i.a)();r.addElement(e.querySelector("ion-title"));var s=Object(i.a)(),l=e.querySelectorAll("ion-buttons,[menuToggle]"),u=e.closest("ion-header"),c=u&&u.classList.contains("header-collapse-condense-inactive"),f=Array.from(l).filter(function(e){var t=e.classList.contains("buttons-collapse");return t&&!c||!t});s.addElement(f);var g=Object(i.a)(),v=e.querySelectorAll(":scope > *:not(ion-title):not(ion-buttons):not([menuToggle])");v.length>0&&g.addElement(v);var y=Object(i.a)();y.addElement(a(e).querySelector(".toolbar-background"));var b=Object(i.a)(),w=e.querySelector("ion-back-button");if(w&&b.addElement(w),t.addAnimation([r,s,g,b,y]),_.addAnimation(t),b.fromTo(n,.99,0),s.fromTo(n,.99,0),g.fromTo(n,.99,0),m){if(c||r.fromTo("transform","translateX(".concat(d,")"),h?"translateX(-100%)":"translateX(100%)").fromTo(n,.99,0),g.fromTo("transform","translateX(".concat(d,")"),h?"translateX(-100%)":"translateX(100%)"),y.beforeClearStyles([n,"transform"]),(null==u?void 0:u.translucent)?y.fromTo("transform","translateX(0px)",h?"translateX(-100%)":"translateX(100%)"):y.fromTo(n,"var(--opacity)",0),w&&!I){var k=Object(i.a)();k.addElement(a(w).querySelector(".button-text")).fromTo("transform","translateX(".concat(d,")"),"translateX(".concat((h?-124:124)+"px",")")),t.addAnimation(k)}}else c||r.fromTo("transform","translateX(".concat(d,")"),"translateX(".concat(p,")")).fromTo(n,.99,0).afterClearStyles([o,n]),g.fromTo("transform","translateX(".concat(d,")"),"translateX(".concat(p,")")).afterClearStyles([o,n]),b.afterClearStyles([n]),r.afterClearStyles([n]),s.afterClearStyles([n])})}return _}catch(G){throw G}}},"m9/o":function(n,o,u){"use strict";function v(e){return"function"==typeof e}u.r(o);var _=!1,k={Promise:void 0,set useDeprecatedSynchronousErrorHandling(e){if(e){var t=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+t.stack)}else _&&console.log("RxJS: Back to a better error behavior. Thank you. <3");_=e},get useDeprecatedSynchronousErrorHandling(){return _}};function x(e){setTimeout(function(){throw e},0)}var C={closed:!0,next:function(e){},error:function(e){if(k.useDeprecatedSynchronousErrorHandling)throw e;x(e)},complete:function(){}},S=Array.isArray||function(e){return e&&"number"==typeof e.length};function P(e){return null!==e&&"object"==typeof e}var E,D=function(){function e(e){return Error.call(this),this.message=e?"".concat(e.length," errors occurred during unsubscription:\n").concat(e.map(function(e,t){return"".concat(t+1,") ").concat(e.toString())}).join("\n  ")):"",this.name="UnsubscriptionError",this.errors=e,this}return e.prototype=Object.create(Error.prototype),e}(),O=((E=function(){function e(t){A(this,e),this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._ctorUnsubscribe=!0,this._unsubscribe=t)}return m(e,[{key:"unsubscribe",value:function(){var t;if(!this.closed){var n=this._parentOrParents,i=this._ctorUnsubscribe,r=this._unsubscribe,o=this._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof e)n.remove(this);else if(null!==n)for(var a=0;a<n.length;++a)n[a].remove(this);if(v(r)){i&&(this._unsubscribe=void 0);try{r.call(this)}catch(c){t=c instanceof D?M(c.errors):[c]}}if(S(o))for(var s=-1,l=o.length;++s<l;){var u=o[s];if(P(u))try{u.unsubscribe()}catch(c){t=t||[],c instanceof D?t=t.concat(M(c.errors)):t.push(c)}}if(t)throw new D(t)}}},{key:"add",value:function(t){var n=t;if(!t)return e.EMPTY;switch(typeof t){case"function":n=new e(t);case"object":if(n===this||n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if(!(n instanceof e)){var i=n;(n=new e)._subscriptions=[i]}break;default:throw new Error("unrecognized teardown "+t+" added to Subscription.")}var r=n._parentOrParents;if(null===r)n._parentOrParents=this;else if(r instanceof e){if(r===this)return n;n._parentOrParents=[r,this]}else{if(-1!==r.indexOf(this))return n;r.push(this)}var o=this._subscriptions;return null===o?this._subscriptions=[n]:o.push(n),n}},{key:"remove",value:function(e){var t=this._subscriptions;if(t){var n=t.indexOf(e);-1!==n&&t.splice(n,1)}}}]),e}()).EMPTY=function(e){return e.closed=!0,e}(new E),E);function M(e){return e.reduce(function(e,t){return e.concat(t instanceof D?t.errors:t)},[])}var T="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random(),I=function(e){r(n,e);var t=a(n);function n(e,i,r){var o;switch(A(this,n),(o=t.call(this)).syncErrorValue=null,o.syncErrorThrown=!1,o.syncErrorThrowable=!1,o.isStopped=!1,arguments.length){case 0:o.destination=C;break;case 1:if(!e){o.destination=C;break}if("object"==typeof e){e instanceof n?(o.syncErrorThrowable=e.syncErrorThrowable,o.destination=e,e.add(l(o))):(o.syncErrorThrowable=!0,o.destination=new R(l(o),e));break}default:o.syncErrorThrowable=!0,o.destination=new R(l(o),e,i,r)}return o}return m(n,[{key:T,value:function(){return this}},{key:"next",value:function(e){this.isStopped||this._next(e)}},{key:"error",value:function(e){this.isStopped||(this.isStopped=!0,this._error(e))}},{key:"complete",value:function(){this.isStopped||(this.isStopped=!0,this._complete())}},{key:"unsubscribe",value:function(){this.closed||(this.isStopped=!0,i(c(n.prototype),"unsubscribe",this).call(this))}},{key:"_next",value:function(e){this.destination.next(e)}},{key:"_error",value:function(e){this.destination.error(e),this.unsubscribe()}},{key:"_complete",value:function(){this.destination.complete(),this.unsubscribe()}},{key:"_unsubscribeAndRecycle",value:function(){var e=this._parentOrParents;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=e,this}}],[{key:"create",value:function(e,t,i){var r=new n(e,t,i);return r.syncErrorThrowable=!1,r}}]),n}(O),R=function(e){r(n,e);var t=a(n);function n(e,i,r,o){var a,s;A(this,n),(a=t.call(this))._parentSubscriber=e;var u=l(a);return v(i)?s=i:i&&(s=i.next,r=i.error,o=i.complete,i!==C&&(v((u=Object.create(i)).unsubscribe)&&a.add(u.unsubscribe.bind(u)),u.unsubscribe=a.unsubscribe.bind(l(a)))),a._context=u,a._next=s,a._error=r,a._complete=o,a}return m(n,[{key:"next",value:function(e){if(!this.isStopped&&this._next){var t=this._parentSubscriber;k.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?this.__tryOrSetError(t,this._next,e)&&this.unsubscribe():this.__tryOrUnsub(this._next,e)}}},{key:"error",value:function(e){if(!this.isStopped){var t=this._parentSubscriber,n=k.useDeprecatedSynchronousErrorHandling;if(this._error)n&&t.syncErrorThrowable?(this.__tryOrSetError(t,this._error,e),this.unsubscribe()):(this.__tryOrUnsub(this._error,e),this.unsubscribe());else if(t.syncErrorThrowable)n?(t.syncErrorValue=e,t.syncErrorThrown=!0):x(e),this.unsubscribe();else{if(this.unsubscribe(),n)throw e;x(e)}}}},{key:"complete",value:function(){var e=this;if(!this.isStopped){var t=this._parentSubscriber;if(this._complete){var n=function(){return e._complete.call(e._context)};k.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?(this.__tryOrSetError(t,n),this.unsubscribe()):(this.__tryOrUnsub(n),this.unsubscribe())}else this.unsubscribe()}}},{key:"__tryOrUnsub",value:function(e,t){try{e.call(this._context,t)}catch(n){if(this.unsubscribe(),k.useDeprecatedSynchronousErrorHandling)throw n;x(n)}}},{key:"__tryOrSetError",value:function(e,t,n){if(!k.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{t.call(this._context,n)}catch(i){return k.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=i,e.syncErrorThrown=!0,!0):(x(i),!0)}return!1}},{key:"_unsubscribe",value:function(){var e=this._parentSubscriber;this._context=null,this._parentSubscriber=null,e.unsubscribe()}}]),n}(I),L="function"==typeof Symbol&&Symbol.observable||"@@observable";function F(e){return e}var B,V=((B=function(){function e(t){A(this,e),this._isScalar=!1,t&&(this._subscribe=t)}return m(e,[{key:"lift",value:function(t){var n=new e;return n.source=this,n.operator=t,n}},{key:"subscribe",value:function(e,t,n){var i=this.operator,r=function(e,t,n){if(e){if(e instanceof I)return e;if(e[T])return e[T]()}return e||t||n?new I(e,t,n):new I(C)}(e,t,n);if(r.add(i?i.call(r,this.source):this.source||k.useDeprecatedSynchronousErrorHandling&&!r.syncErrorThrowable?this._subscribe(r):this._trySubscribe(r)),k.useDeprecatedSynchronousErrorHandling&&r.syncErrorThrowable&&(r.syncErrorThrowable=!1,r.syncErrorThrown))throw r.syncErrorValue;return r}},{key:"_trySubscribe",value:function(e){try{return this._subscribe(e)}catch(t){k.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=t),function(e){for(;e;){var t=e,n=t.closed,i=t.destination,r=t.isStopped;if(n||r)return!1;e=i&&i instanceof I?i:null}return!0}(e)?e.error(t):console.warn(t)}}},{key:"forEach",value:function(e,t){var n=this;return new(t=z(t))(function(t,i){var r;r=n.subscribe(function(t){try{e(t)}catch(n){i(n),r&&r.unsubscribe()}},i,t)})}},{key:"_subscribe",value:function(e){var t=this.source;return t&&t.subscribe(e)}},{key:L,value:function(){return this}},{key:"pipe",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?this:(0===(i=t).length?F:1===i.length?i[0]:function(e){return i.reduce(function(e,t){return t(e)},e)})(this);var i}},{key:"toPromise",value:function(e){var t=this;return new(e=z(e))(function(e,n){var i;t.subscribe(function(e){return i=e},function(e){return n(e)},function(){return e(i)})})}}]),e}()).create=function(e){return new B(e)},B);function z(e){if(e||(e=k.Promise||Promise),!e)throw new Error("no Promise impl found");return e}var N,H=function(){function e(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return e.prototype=Object.create(Error.prototype),e}(),j=function(e){r(n,e);var t=a(n);function n(e,i){var r;return A(this,n),(r=t.call(this)).subject=e,r.subscriber=i,r.closed=!1,r}return m(n,[{key:"unsubscribe",value:function(){if(!this.closed){this.closed=!0;var e=this.subject,t=e.observers;if(this.subject=null,t&&0!==t.length&&!e.isStopped&&!e.closed){var n=t.indexOf(this.subscriber);-1!==n&&t.splice(n,1)}}}}]),n}(O),U=function(e){r(n,e);var t=a(n);function n(e){var i;return A(this,n),(i=t.call(this,e)).destination=e,i}return n}(I),W=((N=function(e){r(n,e);var t=a(n);function n(){var e;return A(this,n),(e=t.call(this)).observers=[],e.closed=!1,e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return m(n,[{key:T,value:function(){return new U(this)}},{key:"lift",value:function(e){var t=new G(this,this);return t.operator=e,t}},{key:"next",value:function(e){if(this.closed)throw new H;if(!this.isStopped)for(var t=this.observers,n=t.length,i=t.slice(),r=0;r<n;r++)i[r].next(e)}},{key:"error",value:function(e){if(this.closed)throw new H;this.hasError=!0,this.thrownError=e,this.isStopped=!0;for(var t=this.observers,n=t.length,i=t.slice(),r=0;r<n;r++)i[r].error(e);this.observers.length=0}},{key:"complete",value:function(){if(this.closed)throw new H;this.isStopped=!0;for(var e=this.observers,t=e.length,n=e.slice(),i=0;i<t;i++)n[i].complete();this.observers.length=0}},{key:"unsubscribe",value:function(){this.isStopped=!0,this.closed=!0,this.observers=null}},{key:"_trySubscribe",value:function(e){if(this.closed)throw new H;return i(c(n.prototype),"_trySubscribe",this).call(this,e)}},{key:"_subscribe",value:function(e){if(this.closed)throw new H;return this.hasError?(e.error(this.thrownError),O.EMPTY):this.isStopped?(e.complete(),O.EMPTY):(this.observers.push(e),new j(this,e))}},{key:"asObservable",value:function(){var e=new V;return e.source=this,e}}]),n}(V)).create=function(e,t){return new G(e,t)},N),G=function(e){r(n,e);var t=a(n);function n(e,i){var r;return A(this,n),(r=t.call(this)).destination=e,r.source=i,r}return m(n,[{key:"next",value:function(e){var t=this.destination;t&&t.next&&t.next(e)}},{key:"error",value:function(e){var t=this.destination;t&&t.error&&this.destination.error(e)}},{key:"complete",value:function(){var e=this.destination;e&&e.complete&&this.destination.complete()}},{key:"_subscribe",value:function(e){return this.source?this.source.subscribe(e):O.EMPTY}}]),n}(W);function q(e){return e&&"function"==typeof e.schedule}function Y(e,t){return function(n){if("function"!=typeof e)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new Z(e,t))}}var Z=function(){function e(t,n){A(this,e),this.project=t,this.thisArg=n}return m(e,[{key:"call",value:function(e,t){return t.subscribe(new Q(e,this.project,this.thisArg))}}]),e}(),Q=function(e){r(n,e);var t=a(n);function n(e,i,r){var o;return A(this,n),(o=t.call(this,e)).project=i,o.count=0,o.thisArg=r||l(o),o}return m(n,[{key:"_next",value:function(e){var t;try{t=this.project.call(this.thisArg,e,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(t)}}]),n}(I),X=function(e){return function(t){for(var n=0,i=e.length;n<i&&!t.closed;n++)t.next(e[n]);t.complete()}};var K="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator",J=function(e){return e&&"number"==typeof e.length&&"function"!=typeof e};function ee(e){return!!e&&"function"!=typeof e.subscribe&&"function"==typeof e.then}var te=function(e){if(e&&"function"==typeof e[L])return i=e,function(e){var t=i[L]();if("function"!=typeof t.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return t.subscribe(e)};if(J(e))return X(e);if(ee(e))return n=e,function(e){return n.then(function(t){e.closed||(e.next(t),e.complete())},function(t){return e.error(t)}).then(null,x),e};if(e&&"function"==typeof e[K])return t=e,function(e){for(var n=t[K]();;){var i=void 0;try{i=n.next()}catch(r){return e.error(r),e}if(i.done){e.complete();break}if(e.next(i.value),e.closed)break}return"function"==typeof n.return&&e.add(function(){n.return&&n.return()}),e};var t,n,i,r=P(e)?"an invalid object":"'".concat(e,"'");throw new TypeError("You provided ".concat(r," where a stream was expected. You can provide an Observable, Promise, Array, or Iterable."))};function ne(e,t){return new V(function(n){var i=new O,r=0;return i.add(t.schedule(function(){r!==e.length?(n.next(e[r++]),n.closed||i.add(this.schedule())):n.complete()})),i})}function ie(e,t){return t?function(e,t){if(null!=e){if(function(e){return e&&"function"==typeof e[L]}(e))return function(e,t){return new V(function(n){var i=new O;return i.add(t.schedule(function(){var r=e[L]();i.add(r.subscribe({next:function(e){i.add(t.schedule(function(){return n.next(e)}))},error:function(e){i.add(t.schedule(function(){return n.error(e)}))},complete:function(){i.add(t.schedule(function(){return n.complete()}))}}))})),i})}(e,t);if(ee(e))return function(e,t){return new V(function(n){var i=new O;return i.add(t.schedule(function(){return e.then(function(e){i.add(t.schedule(function(){n.next(e),i.add(t.schedule(function(){return n.complete()}))}))},function(e){i.add(t.schedule(function(){return n.error(e)}))})})),i})}(e,t);if(J(e))return ne(e,t);if(function(e){return e&&"function"==typeof e[K]}(e)||"string"==typeof e)return function(e,t){if(!e)throw new Error("Iterable cannot be null");return new V(function(n){var i,r=new O;return r.add(function(){i&&"function"==typeof i.return&&i.return()}),r.add(t.schedule(function(){i=e[K](),r.add(t.schedule(function(){if(!n.closed){var e,t;try{var r=i.next();e=r.value,t=r.done}catch(o){return void n.error(o)}t?n.complete():(n.next(e),this.schedule())}}))})),r})}(e,t)}throw new TypeError((null!==e&&typeof e||e)+" is not observable")}(e,t):e instanceof V?e:new V(te(e))}var re=function(e){r(n,e);var t=a(n);function n(e){var i;return A(this,n),(i=t.call(this)).parent=e,i}return m(n,[{key:"_next",value:function(e){this.parent.notifyNext(e)}},{key:"_error",value:function(e){this.parent.notifyError(e),this.unsubscribe()}},{key:"_complete",value:function(){this.parent.notifyComplete(),this.unsubscribe()}}]),n}(I),oe=function(e){r(n,e);var t=a(n);function n(){return A(this,n),t.apply(this,arguments)}return m(n,[{key:"notifyNext",value:function(e){this.destination.next(e)}},{key:"notifyError",value:function(e){this.destination.error(e)}},{key:"notifyComplete",value:function(){this.destination.complete()}}]),n}(I);function ae(e,t){if(!t.closed)return e instanceof V?e.subscribe(t):te(e)(t)}function se(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return"function"==typeof t?function(i){return i.pipe(se(function(n,i){return ie(e(n,i)).pipe(Y(function(e,r){return t(n,e,i,r)}))},n))}:("number"==typeof t&&(n=t),function(t){return t.lift(new le(e,n))})}var le=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY;A(this,e),this.project=t,this.concurrent=n}return m(e,[{key:"call",value:function(e,t){return t.subscribe(new ue(e,this.project,this.concurrent))}}]),e}(),ue=function(e){r(n,e);var t=a(n);function n(e,i){var r,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return A(this,n),(r=t.call(this,e)).project=i,r.concurrent=o,r.hasCompleted=!1,r.buffer=[],r.active=0,r.index=0,r}return m(n,[{key:"_next",value:function(e){this.active<this.concurrent?this._tryNext(e):this.buffer.push(e)}},{key:"_tryNext",value:function(e){var t,n=this.index++;try{t=this.project(e,n)}catch(i){return void this.destination.error(i)}this.active++,this._innerSub(t)}},{key:"_innerSub",value:function(e){var t=new re(this),n=this.destination;n.add(t);var i=ae(e,t);i!==t&&n.add(i)}},{key:"_complete",value:function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}},{key:"notifyNext",value:function(e){this.destination.next(e)}},{key:"notifyComplete",value:function(){var e=this.buffer;this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}]),n}(oe);function ce(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.POSITIVE_INFINITY;return se(F,e)}function de(e,t){return t?ne(e,t):new V(X(e))}function he(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var i=Number.POSITIVE_INFINITY,r=null,o=t[t.length-1];return q(o)?(r=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(i=t.pop())):"number"==typeof o&&(i=t.pop()),null===r&&1===t.length&&t[0]instanceof V?t[0]:ce(i)(de(t,r))}function fe(){return function(e){return e.lift(new ge(e))}}var pe,ge=function(){function e(t){A(this,e),this.connectable=t}return m(e,[{key:"call",value:function(e,t){var n=this.connectable;n._refCount++;var i=new ve(e,n),r=t.subscribe(i);return i.closed||(i.connection=n.connect()),r}}]),e}(),ve=function(e){r(n,e);var t=a(n);function n(e,i){var r;return A(this,n),(r=t.call(this,e)).connectable=i,r}return m(n,[{key:"_unsubscribe",value:function(){var e=this.connectable;if(e){this.connectable=null;var t=e._refCount;if(t<=0)this.connection=null;else if(e._refCount=t-1,t>1)this.connection=null;else{var n=this.connection,i=e._connection;this.connection=null,!i||n&&i!==n||i.unsubscribe()}}else this.connection=null}}]),n}(I),me=function(e){r(n,e);var t=a(n);function n(e,i){var r;return A(this,n),(r=t.call(this)).source=e,r.subjectFactory=i,r._refCount=0,r._isComplete=!1,r}return m(n,[{key:"_subscribe",value:function(e){return this.getSubject().subscribe(e)}},{key:"getSubject",value:function(){var e=this._subject;return e&&!e.isStopped||(this._subject=this.subjectFactory()),this._subject}},{key:"connect",value:function(){var e=this._connection;return e||(this._isComplete=!1,(e=this._connection=new O).add(this.source.subscribe(new be(this.getSubject(),this))),e.closed&&(this._connection=null,e=O.EMPTY)),e}},{key:"refCount",value:function(){return fe()(this)}}]),n}(V),ye={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:(pe=me.prototype)._subscribe},_isComplete:{value:pe._isComplete,writable:!0},getSubject:{value:pe.getSubject},connect:{value:pe.connect},refCount:{value:pe.refCount}},be=function(e){r(n,e);var t=a(n);function n(e,i){var r;return A(this,n),(r=t.call(this,e)).connectable=i,r}return m(n,[{key:"_error",value:function(e){this._unsubscribe(),i(c(n.prototype),"_error",this).call(this,e)}},{key:"_complete",value:function(){this.connectable._isComplete=!0,this._unsubscribe(),i(c(n.prototype),"_complete",this).call(this)}},{key:"_unsubscribe",value:function(){var e=this.connectable;if(e){this.connectable=null;var t=e._connection;e._refCount=0,e._subject=null,e._connection=null,t&&t.unsubscribe()}}}]),n}(U);function we(){return new W}function _e(){return function(e){return fe()((t=we,function(e){var n;n="function"==typeof t?t:function(){return t};var i=Object.create(e,ye);return i.source=e,i.subjectFactory=n,i})(e));var t}}function ke(e){for(var t in e)if(e[t]===ke)return t;throw Error("Could not find renamed property on target object.")}function xe(e,t){for(var n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function Ae(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(Ae).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return""+e.overriddenName;if(e.name)return""+e.name;var t=e.toString();if(null==t)return""+t;var n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}function Ce(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}var Se=ke({__forward_ref__:ke});function Pe(e){return e.__forward_ref__=Pe,e.toString=function(){return Ae(this())},e}function Ee(e){return De(e)?e():e}function De(e){return"function"==typeof e&&e.hasOwnProperty(Se)&&e.__forward_ref__===Pe}var Oe=function(e){r(n,e);var t=a(n);function n(e,i){var r;return A(this,n),(r=t.call(this,function(e,t){return"".concat(e?"NG0".concat(e,": "):"").concat(t)}(e,i))).code=e,r}return n}(e(Error));function Me(e){return"string"==typeof e?e:null==e?"":String(e)}function Te(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():Me(e)}function Ie(e,t){var n=t?" in "+t:"";throw new Oe("201","No provider for ".concat(Te(e)," found").concat(n))}function Re(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}var Le=Re;function Fe(e){return{providers:e.providers||[],imports:e.imports||[]}}function Be(e){return Ve(e,He)||Ve(e,Ue)}function Ve(e,t){return e.hasOwnProperty(t)?e[t]:null}function ze(e){return e&&(e.hasOwnProperty(je)||e.hasOwnProperty(We))?e[je]:null}var Ne,He=ke({"\u0275prov":ke}),je=ke({"\u0275inj":ke}),Ue=ke({ngInjectableDef:ke}),We=ke({ngInjectorDef:ke}),Ge=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}({});function qe(e){var t=Ne;return Ne=e,t}function Ye(e,t,n){var i=Be(e);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:n&Ge.Optional?null:void 0!==t?t:void Ie(Ae(e),"Injector")}function Ze(e){return{toString:e}.toString()}var Qe=function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e}({}),Xe=function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}({}),Ke="undefined"!=typeof globalThis&&globalThis,Je="undefined"!=typeof window&&window,$e="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,et="undefined"!=typeof global&&global,tt=Ke||et||Je||$e,nt={},it=[],rt=[],ot=ke({"\u0275cmp":ke}),at=ke({"\u0275dir":ke}),st=ke({"\u0275pipe":ke}),lt=ke({"\u0275mod":ke}),ut=ke({"\u0275loc":ke}),ct=ke({"\u0275fac":ke}),dt=ke({__NG_ELEMENT_ID__:ke}),ht=0;function ft(e){return Ze(function(){var t={},n={type:e.type,providersResolver:null,decls:e.decls,vars:e.vars,factory:null,template:e.template||null,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputs:null,outputs:null,exportAs:e.exportAs||null,onPush:e.changeDetection===Qe.OnPush,directiveDefs:null,pipeDefs:null,selectors:e.selectors||rt,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||Xe.Emulated,id:"c",styles:e.styles||rt,_:null,setInput:null,schemas:e.schemas||null,tView:null},i=e.directives,r=e.features,o=e.pipes;return n.id+=ht++,n.inputs=yt(e.inputs,t),n.outputs=yt(e.outputs),r&&r.forEach(function(e){return e(n)}),n.directiveDefs=i?function(){return("function"==typeof i?i():i).map(pt)}:null,n.pipeDefs=o?function(){return("function"==typeof o?o():o).map(gt)}:null,n})}function pt(e){return _t(e)||function(e){return e[at]||null}(e)}function gt(e){return function(e){return e[st]||null}(e)}var vt={};function mt(e){var t={type:e.type,bootstrap:e.bootstrap||rt,declarations:e.declarations||rt,imports:e.imports||rt,exports:e.exports||rt,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null};return null!=e.id&&Ze(function(){vt[e.id]=e.type}),t}function yt(e,t){if(null==e)return nt;var n={};for(var i in e)if(e.hasOwnProperty(i)){var r=e[i],o=r;Array.isArray(r)&&(o=r[1],r=r[0]),n[r]=i,t&&(t[r]=o)}return n}var bt=ft;function wt(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,onDestroy:e.type.prototype.ngOnDestroy||null}}function _t(e){return e[ot]||null}function kt(e,t){var n=e[lt]||null;if(!n&&!0===t)throw new Error("Type ".concat(Ae(e)," does not have '\u0275mod' property."));return n}function xt(e){return Array.isArray(e)&&"object"==typeof e[1]}function At(e){return Array.isArray(e)&&!0===e[1]}function Ct(e){return 0!=(8&e.flags)}function St(e){return 2==(2&e.flags)}function Pt(e){return 1==(1&e.flags)}function Et(e){return null!==e.template}function Dt(e,t){return e.hasOwnProperty(ct)?e[ct]:null}var Ot=function(){function e(t,n,i){A(this,e),this.previousValue=t,this.currentValue=n,this.firstChange=i}return m(e,[{key:"isFirstChange",value:function(){return this.firstChange}}]),e}();function Mt(){return Tt}function Tt(e){return e.type.prototype.ngOnChanges&&(e.setInput=Rt),It}function It(){var e=Lt(this),t=null==e?void 0:e.current;if(t){var n=e.previous;if(n===nt)e.previous=t;else for(var i in t)n[i]=t[i];e.current=null,this.ngOnChanges(t)}}function Rt(e,t,n,i){var r=Lt(e)||function(e,t){return e.__ngSimpleChanges__=t}(e,{previous:nt,current:null}),o=r.current||(r.current={}),a=r.previous,s=this.declaredInputs[n],l=a[s];o[s]=new Ot(l&&l.currentValue,t,a===nt),e[i]=t}function Lt(e){return e.__ngSimpleChanges__||null}Mt.ngInherit=!0;var Ft=void 0;function Bt(){return void 0!==Ft?Ft:"undefined"!=typeof document?document:void 0}function Vt(e){return!!e.listen}var zt={createRenderer:function(e,t){return Bt()}};function Nt(e){for(;Array.isArray(e);)e=e[0];return e}function Ht(e,t){return Nt(t[e])}function jt(e,t){return Nt(t[e.index])}function Ut(e,t){return e.data[t]}function Wt(e,t){return e[t]}function Gt(e,t){var n=t[e];return xt(n)?n:n[0]}function qt(e){var t=function(e){return e.__ngContext__||null}(e);return t?Array.isArray(t)?t:t.lView:null}function Yt(e){return 4==(4&e[2])}function Zt(e){return 128==(128&e[2])}function Qt(e,t){return null==t?null:e[t]}function Xt(e){e[18]=0}function Kt(e,t){e[5]+=t;for(var n=e,i=e[3];null!==i&&(1===t&&1===n[5]||-1===t&&0===n[5]);)i[5]+=t,n=i,i=i[3]}var Jt={lFrame:xn(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function $t(){return Jt.bindingsEnabled}function en(){return Jt.lFrame.lView}function tn(){return Jt.lFrame.tView}function nn(e){Jt.lFrame.contextLView=e}function rn(){for(var e=on();null!==e&&64===e.type;)e=e.parent;return e}function on(){return Jt.lFrame.currentTNode}function an(e,t){var n=Jt.lFrame;n.currentTNode=e,n.isParent=t}function sn(){return Jt.lFrame.isParent}function ln(){Jt.lFrame.isParent=!1}function un(){return Jt.isInCheckNoChangesMode}function cn(e){Jt.isInCheckNoChangesMode=e}function dn(){var e=Jt.lFrame,t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function hn(){return Jt.lFrame.bindingIndex}function fn(){return Jt.lFrame.bindingIndex++}function pn(e){var t=Jt.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function gn(e){Jt.lFrame.currentDirectiveIndex=e}function vn(e){var t=Jt.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}function mn(){return Jt.lFrame.currentQueryIndex}function yn(e){Jt.lFrame.currentQueryIndex=e}function bn(e){var t=e[1];return 2===t.type?t.declTNode:1===t.type?e[6]:null}function wn(e,t,n){if(n&Ge.SkipSelf){for(var i=t,r=e;!(null!==(i=i.parent)||n&Ge.Host||(i=bn(r),null===i)||(r=r[15],10&i.type)););if(null===i)return!1;t=i,e=r}var o=Jt.lFrame=kn();return o.currentTNode=t,o.lView=e,!0}function _n(e){var t=kn(),n=e[1];Jt.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function kn(){var e=Jt.lFrame,t=null===e?null:e.child;return null===t?xn(e):t}function xn(e){var t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return null!==e&&(e.child=t),t}function An(){var e=Jt.lFrame;return Jt.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var Cn=An;function Sn(){var e=An();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function Pn(){return Jt.lFrame.selectedIndex}function En(e){Jt.lFrame.selectedIndex=e}function Dn(){var e=Jt.lFrame;return Ut(e.tView,e.selectedIndex)}function On(){Jt.lFrame.currentNamespace="http://www.w3.org/2000/svg"}function Mn(){Jt.lFrame.currentNamespace=null}function Tn(e,t){for(var n=t.directiveStart,i=t.directiveEnd;n<i;n++){var r=e.data[n].type.prototype,o=r.ngAfterContentInit,a=r.ngAfterContentChecked,s=r.ngAfterViewInit,l=r.ngAfterViewChecked,u=r.ngOnDestroy;o&&(e.contentHooks||(e.contentHooks=[])).push(-n,o),a&&((e.contentHooks||(e.contentHooks=[])).push(n,a),(e.contentCheckHooks||(e.contentCheckHooks=[])).push(n,a)),s&&(e.viewHooks||(e.viewHooks=[])).push(-n,s),l&&((e.viewHooks||(e.viewHooks=[])).push(n,l),(e.viewCheckHooks||(e.viewCheckHooks=[])).push(n,l)),null!=u&&(e.destroyHooks||(e.destroyHooks=[])).push(n,u)}}function In(e,t,n){Fn(e,t,3,n)}function Rn(e,t,n,i){(3&e[2])===n&&Fn(e,t,n,i)}function Ln(e,t){var n=e[2];(3&n)===t&&(n&=2047,n+=1,e[2]=n)}function Fn(e,t,n,i){for(var r=null!=i?i:-1,o=t.length-1,a=0,s=void 0!==i?65535&e[18]:0;s<o;s++)if("number"==typeof t[s+1]){if(a=t[s],null!=i&&a>=i)break}else t[s]<0&&(e[18]+=65536),(a<r||-1==r)&&(Bn(e,n,t,s),e[18]=(4294901760&e[18])+s+2),s++}function Bn(e,t,n,i){var r=n[i]<0,o=n[i+1],a=e[r?-n[i]:n[i]];r?e[2]>>11<e[18]>>16&&(3&e[2])===t&&(e[2]+=2048,o.call(a)):o.call(a)}var Vn=function e(t,n,i){A(this,e),this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=i};function zn(e,t,n){for(var i=Vt(e),r=0;r<n.length;){var o=n[r];if("number"==typeof o){if(0!==o)break;r++;var a=n[r++],s=n[r++],l=n[r++];i?e.setAttribute(t,s,l,a):t.setAttributeNS(a,s,l)}else{var u=o,c=n[++r];Hn(u)?i&&e.setProperty(t,u,c):i?e.setAttribute(t,u,c):t.setAttribute(u,c),r++}}return r}function Nn(e){return 3===e||4===e||6===e}function Hn(e){return 64===e.charCodeAt(0)}function jn(e,t){if(null===t||0===t.length);else if(null===e||0===e.length)e=t.slice();else for(var n=-1,i=0;i<t.length;i++){var r=t[i];"number"==typeof r?n=r:0===n||Un(e,n,r,null,-1===n||2===n?t[++i]:null)}return e}function Un(e,t,n,i,r){var o=0,a=e.length;if(-1===t)a=-1;else for(;o<e.length;){var s=e[o++];if("number"==typeof s){if(s===t){a=-1;break}if(s>t){a=o-1;break}}}for(;o<e.length;){var l=e[o];if("number"==typeof l)break;if(l===n){if(null===i)return void(null!==r&&(e[o+1]=r));if(i===e[o+1])return void(e[o+2]=r)}o++,null!==i&&o++,null!==r&&o++}-1!==a&&(e.splice(a,0,t),o=a+1),e.splice(o++,0,n),null!==i&&e.splice(o++,0,i),null!==r&&e.splice(o++,0,r)}function Wn(e){return-1!==e}function Gn(e){return 32767&e}function qn(e,t){for(var n=e>>16,i=t;n>0;)i=i[15],n--;return i}var Yn=!0;function Zn(e){var t=Yn;return Yn=e,t}var Qn=0;function Xn(e,t){var n=Jn(e,t);if(-1!==n)return n;var i=t[1];i.firstCreatePass&&(e.injectorIndex=t.length,Kn(i.data,e),Kn(t,null),Kn(i.blueprint,null));var r=$n(e,t),o=e.injectorIndex;if(Wn(r))for(var a=Gn(r),s=qn(r,t),l=s[1].data,u=0;u<8;u++)t[o+u]=s[a+u]|l[a+u];return t[o+8]=r,o}function Kn(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Jn(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function $n(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;for(var n=0,i=null,r=t;null!==r;){var o=r[1],a=o.type;if(null===(i=2===a?o.declTNode:1===a?r[6]:null))return-1;if(n++,r=r[15],-1!==i.injectorIndex)return i.injectorIndex|n<<16}return-1}function ei(e,t,n){!function(e,t,n){var i;"string"==typeof n?i=n.charCodeAt(0)||0:n.hasOwnProperty(dt)&&(i=n[dt]),null==i&&(i=n[dt]=Qn++);var r=255&i;t.data[e+(r>>5)]|=1<<r}(e,t,n)}function ti(e,t,n){if(n&Ge.Optional)return e;Ie(t,"NodeInjector")}function ni(e,t,n,i){if(n&Ge.Optional&&void 0===i&&(i=null),0==(n&(Ge.Self|Ge.Host))){var r=e[9],o=qe(void 0);try{return r?r.get(t,i,n&Ge.Optional):Ye(t,i,n&Ge.Optional)}finally{qe(o)}}return ti(i,t,n)}function ii(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Ge.Default,r=arguments.length>4?arguments[4]:void 0;if(null!==e){var o=function(e){if("string"==typeof e)return e.charCodeAt(0)||0;var t=e.hasOwnProperty(dt)?e[dt]:void 0;return"number"==typeof t?t>=0?255&t:oi:t}(n);if("function"==typeof o){if(!wn(t,e,i))return i&Ge.Host?ti(r,n,i):ni(t,n,i,r);try{var a=o();if(null!=a||i&Ge.Optional)return a;Ie(n)}finally{Cn()}}else if("number"==typeof o){var s=null,l=Jn(e,t),u=-1,c=i&Ge.Host?t[16][6]:null;for((-1===l||i&Ge.SkipSelf)&&(-1!==(u=-1===l?$n(e,t):t[l+8])&&ci(i,!1)?(s=t[1],l=Gn(u),t=qn(u,t)):l=-1);-1!==l;){var d=t[1];if(ui(o,l,d.data)){var h=ai(l,t,n,s,i,c);if(h!==ri)return h}-1!==(u=t[l+8])&&ci(i,t[1].data[l+8]===c)&&ui(o,l,t)?(s=d,l=Gn(u),t=qn(u,t)):l=-1}}}return ni(t,n,i,r)}var ri={};function oi(){return new di(rn(),en())}function ai(e,t,n,i,r,o){var a=t[1],s=a.data[e+8],l=si(s,a,n,null==i?St(s)&&Yn:i!=a&&0!=(3&s.type),r&Ge.Host&&o===s);return null!==l?li(t,a,l,s):ri}function si(e,t,n,i,r){for(var o=e.providerIndexes,a=t.data,s=1048575&o,l=e.directiveStart,u=o>>20,c=r?s+u:e.directiveEnd,d=i?s:s+u;d<c;d++){var h=a[d];if(d<l&&n===h||d>=l&&h.type===n)return d}if(r){var f=a[l];if(f&&Et(f)&&f.type===n)return l}return null}function li(e,t,n,i){var r=e[n],o=t.data;if(r instanceof Vn){var a=r;a.resolving&&function(e,t){throw new Oe("200","Circular dependency in DI detected for "+e)}(Te(o[n]));var s=Zn(a.canSeeViewProviders);a.resolving=!0;var l=a.injectImpl?qe(a.injectImpl):null;wn(e,i,Ge.Default);try{r=e[n]=a.factory(void 0,o,e,i),t.firstCreatePass&&n>=i.directiveStart&&function(e,t,n){var i=t.type.prototype,r=i.ngOnChanges,o=i.ngOnInit,a=i.ngDoCheck;if(r){var s=Tt(t);(n.preOrderHooks||(n.preOrderHooks=[])).push(e,s),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,s)}o&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-e,o),a&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e,a),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,a))}(n,o[n],t)}finally{null!==l&&qe(l),Zn(s),a.resolving=!1,Cn()}}return r}function ui(e,t,n){return!!(n[t+(e>>5)]&1<<e)}function ci(e,t){return!(e&Ge.Self||e&Ge.Host&&t)}var di=function(){function e(t,n){A(this,e),this._tNode=t,this._lView=n}return m(e,[{key:"get",value:function(e,t){return ii(this._tNode,this._lView,e,void 0,t)}}]),e}();function hi(e){return Ze(function(){for(var t=e.prototype.constructor,n=t[ct]||fi(t),i=Object.prototype,r=Object.getPrototypeOf(e.prototype).constructor;r&&r!==i;){var o=r[ct]||fi(r);if(o&&o!==n)return o;r=Object.getPrototypeOf(r)}return function(e){return new e}})}function fi(e){return De(e)?function(){var t=fi(Ee(e));return t&&t()}:Dt(e)}function pi(e){return function(e,t){if("class"===t)return e.classes;if("style"===t)return e.styles;var n=e.attrs;if(n)for(var i=n.length,r=0;r<i;){var o=n[r];if(Nn(o))break;if(0===o)r+=2;else if("number"==typeof o)for(r++;r<i&&"string"==typeof n[r];)r++;else{if(o===t)return n[r+1];r+=2}}return null}(rn(),e)}function gi(e,n,i){return Ze(function(){var r=function(e){return function(){if(e){var t=e.apply(void 0,arguments);for(var n in t)this[n]=t[n]}}}(n);function o(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];if(this instanceof o)return r.apply(this,n),this;var a=t(o,n);return s.annotation=a,s;function s(e,t,n){for(var i=e.hasOwnProperty("__parameters__")?e.__parameters__:Object.defineProperty(e,"__parameters__",{value:[]}).__parameters__;i.length<=n;)i.push(null);return(i[n]=i[n]||[]).push(a),e}}return i&&(o.prototype=Object.create(i.prototype)),o.prototype.ngMetadataName=e,o.annotationCls=o,o})}var vi=gi("Attribute",function(e){return{attributeName:e,__NG_ELEMENT_ID__:function(){return pi(e)}}}),mi=function(){function e(t,n){A(this,e),this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof n?this.__NG_ELEMENT_ID__=n:void 0!==n&&(this.\u0275prov=Re({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}return m(e,[{key:"toString",value:function(){return"InjectionToken "+this._desc}}]),e}(),yi=new mi("AnalyzeForEntryComponents"),bi=Function;function wi(e,t){void 0===t&&(t=e);for(var n=0;n<e.length;n++){var i=e[n];Array.isArray(i)?(t===e&&(t=e.slice(0,n)),wi(i,t)):t!==e&&t.push(i)}return t}function _i(e,t){e.forEach(function(e){return Array.isArray(e)?_i(e,t):t(e)})}function ki(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function xi(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function Ai(e,t){for(var n=[],i=0;i<e;i++)n.push(t);return n}function Ci(e,t,n){var i=Pi(e,t);return i>=0?e[1|i]=n:function(e,t,n,i){var r=e.length;if(r==t)e.push(n,i);else if(1===r)e.push(i,e[0]),e[0]=n;else{for(r--,e.push(e[r-1],e[r]);r>t;)e[r]=e[r-2],r--;e[t]=n,e[t+1]=i}}(e,i=~i,t,n),i}function Si(e,t){var n=Pi(e,t);if(n>=0)return e[1|n]}function Pi(e,t){return function(e,t,n){for(var i=0,r=e.length>>1;r!==i;){var o=i+(r-i>>1),a=e[o<<1];if(t===a)return o<<1;a>t?r=o:i=o+1}return~(r<<1)}(e,t)}var Ei={},Di=/\n/gm,Oi=ke({provide:String,useValue:ke}),Mi=void 0;function Ti(e){var t=Mi;return Mi=e,t}function Ii(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ge.Default;if(void 0===Mi)throw new Error("inject() must be called from an injection context");return null===Mi?Ye(e,void 0,t):Mi.get(e,t&Ge.Optional?null:void 0,t)}function Ri(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ge.Default;return(Ne||Ii)(Ee(e),t)}var Li=Ri;function Fi(e){for(var t=[],n=0;n<e.length;n++){var i=Ee(e[n]);if(Array.isArray(i)){if(0===i.length)throw new Error("Arguments array must have arguments.");for(var r=void 0,o=Ge.Default,a=0;a<i.length;a++){var s=i[a],l=s.__NG_DI_FLAG__;"number"==typeof l?-1===l?r=s.token:o|=l:r=s}t.push(Ri(r,o))}else t.push(Ri(i))}return t}function Bi(e,t){return e.__NG_DI_FLAG__=t,e.prototype.__NG_DI_FLAG__=t,e}var Vi,zi,Ni=Bi(gi("Inject",function(e){return{token:e}}),-1),Hi=Bi(gi("Optional"),8),ji=Bi(gi("SkipSelf"),4);function Ui(e){var t;return(null===(t=function(){if(void 0===Vi&&(Vi=null,tt.trustedTypes))try{Vi=tt.trustedTypes.createPolicy("angular",{createHTML:function(e){return e},createScript:function(e){return e},createScriptURL:function(e){return e}})}catch(t){}return Vi}())||void 0===t?void 0:t.createHTML(e))||e}function Wi(e){var t;return(null===(t=function(){if(void 0===zi&&(zi=null,tt.trustedTypes))try{zi=tt.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:function(e){return e},createScript:function(e){return e},createScriptURL:function(e){return e}})}catch(t){}return zi}())||void 0===t?void 0:t.createHTML(e))||e}var Gi=function(){function e(t){A(this,e),this.changingThisBreaksApplicationSecurity=t}return m(e,[{key:"toString",value:function(){return"SafeValue must use [property]=binding: "+this.changingThisBreaksApplicationSecurity+" (see https://g.co/ng/security#xss)"}}]),e}(),qi=function(e){r(n,e);var t=a(n);function n(){return A(this,n),t.apply(this,arguments)}return m(n,[{key:"getTypeName",value:function(){return"HTML"}}]),n}(Gi),Yi=function(e){r(n,e);var t=a(n);function n(){return A(this,n),t.apply(this,arguments)}return m(n,[{key:"getTypeName",value:function(){return"Style"}}]),n}(Gi),Zi=function(e){r(n,e);var t=a(n);function n(){return A(this,n),t.apply(this,arguments)}return m(n,[{key:"getTypeName",value:function(){return"Script"}}]),n}(Gi),Qi=function(e){r(n,e);var t=a(n);function n(){return A(this,n),t.apply(this,arguments)}return m(n,[{key:"getTypeName",value:function(){return"URL"}}]),n}(Gi),Xi=function(e){r(n,e);var t=a(n);function n(){return A(this,n),t.apply(this,arguments)}return m(n,[{key:"getTypeName",value:function(){return"ResourceURL"}}]),n}(Gi);function Ki(e){return e instanceof Gi?e.changingThisBreaksApplicationSecurity:e}function Ji(e,t){var n=$i(e);if(null!=n&&n!==t){if("ResourceURL"===n&&"URL"===t)return!0;throw new Error("Required a safe ".concat(t,", got a ").concat(n," (see https://g.co/ng/security#xss)"))}return n===t}function $i(e){return e instanceof Gi&&e.getTypeName()||null}var er=function(){function e(t){A(this,e),this.inertDocumentHelper=t}return m(e,[{key:"getInertBodyElement",value:function(e){e="<body><remove></remove>"+e;try{var t=(new window.DOMParser).parseFromString(Ui(e),"text/html").body;return null===t?this.inertDocumentHelper.getInertBodyElement(e):(t.removeChild(t.firstChild),t)}catch(n){return null}}}]),e}(),tr=function(){function e(t){if(A(this,e),this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){var n=this.inertDocument.createElement("html");this.inertDocument.appendChild(n);var i=this.inertDocument.createElement("body");n.appendChild(i)}}return m(e,[{key:"getInertBodyElement",value:function(e){var t=this.inertDocument.createElement("template");if("content"in t)return t.innerHTML=Ui(e),t;var n=this.inertDocument.createElement("body");return n.innerHTML=Ui(e),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(n),n}},{key:"stripCustomNsAttrs",value:function(e){for(var t=e.attributes,n=t.length-1;0<n;n--){var i=t.item(n).name;"xmlns:ns1"!==i&&0!==i.indexOf("ns1:")||e.removeAttribute(i)}for(var r=e.firstChild;r;)r.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(r),r=r.nextSibling}}]),e}(),nr=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi,ir=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i;function rr(e){return(e=String(e)).match(nr)||e.match(ir)?e:"unsafe:"+e}function or(e){var t,n={},i=h(e.split(","));try{for(i.s();!(t=i.n()).done;){n[t.value]=!0}}catch(r){i.e(r)}finally{i.f()}return n}function ar(){for(var e={},t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];for(var r=0,o=n;r<o.length;r++){var a=o[r];for(var s in a)a.hasOwnProperty(s)&&(e[s]=!0)}return e}var sr,lr=or("area,br,col,hr,img,wbr"),ur=or("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),cr=or("rp,rt"),dr=ar(cr,ur),hr=ar(lr,ar(ur,or("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),ar(cr,or("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),dr),fr=or("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),pr=or("srcset"),gr=ar(fr,pr,or("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),or("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),vr=or("script,style,template"),mr=function(){function e(){A(this,e),this.sanitizedSomething=!1,this.buf=[]}return m(e,[{key:"sanitizeChildren",value:function(e){for(var t=e.firstChild,n=!0;t;)if(t.nodeType===Node.ELEMENT_NODE?n=this.startElement(t):t.nodeType===Node.TEXT_NODE?this.chars(t.nodeValue):this.sanitizedSomething=!0,n&&t.firstChild)t=t.firstChild;else for(;t;){t.nodeType===Node.ELEMENT_NODE&&this.endElement(t);var i=this.checkClobberedElement(t,t.nextSibling);if(i){t=i;break}t=this.checkClobberedElement(t,t.parentNode)}return this.buf.join("")}},{key:"startElement",value:function(e){var t=e.nodeName.toLowerCase();if(!hr.hasOwnProperty(t))return this.sanitizedSomething=!0,!vr.hasOwnProperty(t);this.buf.push("<"),this.buf.push(t);for(var n,i=e.attributes,r=0;r<i.length;r++){var o=i.item(r),a=o.name,s=a.toLowerCase();if(gr.hasOwnProperty(s)){var l=o.value;fr[s]&&(l=rr(l)),pr[s]&&(n=l,l=(n=String(n)).split(",").map(function(e){return rr(e.trim())}).join(", ")),this.buf.push(" ",a,'="',wr(l),'"')}else this.sanitizedSomething=!0}return this.buf.push(">"),!0}},{key:"endElement",value:function(e){var t=e.nodeName.toLowerCase();hr.hasOwnProperty(t)&&!lr.hasOwnProperty(t)&&(this.buf.push("</"),this.buf.push(t),this.buf.push(">"))}},{key:"chars",value:function(e){this.buf.push(wr(e))}},{key:"checkClobberedElement",value:function(e,t){if(t&&(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error("Failed to sanitize html because the element is clobbered: "+e.outerHTML);return t}}]),e}(),yr=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,br=/([^\#-~ |!])/g;function wr(e){return e.replace(/&/g,"&amp;").replace(yr,function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"}).replace(br,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}function _r(e,t){var n=null;try{sr=sr||function(e){var t=new tr(e);return function(){try{return!!(new window.DOMParser).parseFromString(Ui(""),"text/html")}catch(e){return!1}}()?new er(t):t}(e);var i=t?String(t):"";n=sr.getInertBodyElement(i);var r=5,o=i;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,i=o,o=n.innerHTML,n=sr.getInertBodyElement(i)}while(i!==o);return Ui((new mr).sanitizeChildren(kr(n)||n))}finally{if(n)for(var a=kr(n)||n;a.firstChild;)a.removeChild(a.firstChild)}}function kr(e){return"content"in e&&function(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var xr=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}({});function Ar(e){var t=Sr();return t?Wi(t.sanitize(xr.HTML,e)||""):Ji(e,"HTML")?Wi(Ki(e)):_r(Bt(),Me(e))}function Cr(e){var t=Sr();return t?t.sanitize(xr.URL,e)||"":Ji(e,"URL")?Ki(e):rr(Me(e))}function Sr(){var e=en();return e&&e[12]}function Pr(e){return e.ngDebugContext}function Er(e){return e.ngOriginalError}function Dr(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];e.error.apply(e,n)}var Or=function(){function e(){A(this,e),this._console=console}return m(e,[{key:"handleError",value:function(e){var t=this._findOriginalError(e),n=this._findContext(e),i=function(e){return e.ngErrorLogger||Dr}(e);i(this._console,"ERROR",e),t&&i(this._console,"ORIGINAL ERROR",t),n&&i(this._console,"ERROR CONTEXT",n)}},{key:"_findContext",value:function(e){return e?Pr(e)?Pr(e):this._findContext(Er(e)):null}},{key:"_findOriginalError",value:function(e){for(var t=Er(e);t&&Er(t);)t=Er(t);return t}}]),e}();function Mr(e,t){e.__ngContext__=t}var Tr=("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(tt);function Ir(e){return{name:"window",target:e.ownerDocument.defaultView}}function Rr(e){return{name:"body",target:e.ownerDocument.body}}function Lr(e){return e instanceof Function?e():e}var Fr=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}({});function Br(e,t){return(void 0)(e,t)}function Vr(e){var t=e[3];return At(t)?t[3]:t}function zr(e){return Hr(e[13])}function Nr(e){return Hr(e[4])}function Hr(e){for(;null!==e&&!At(e);)e=e[4];return e}function jr(e,t,n,i,r){if(null!=i){var o,a=!1;At(i)?o=i:xt(i)&&(a=!0,i=i[0]);var s=Nt(i);0===e&&null!==n?null==r?Xr(t,n,s):Qr(t,n,s,r||null,!0):1===e&&null!==n?Qr(t,n,s,r||null,!0):2===e?function(e,t,n){var i=Jr(e,t);i&&function(e,t,n,i){Vt(e)?e.removeChild(t,n,i):t.removeChild(n)}(e,i,t,n)}(t,s,a):3===e&&t.destroyNode(s),null!=o&&function(e,t,n,i,r){var o=n[7];o!==Nt(n)&&jr(t,e,i,o,r);for(var a=10;a<n.length;a++){var s=n[a];ao(s[1],s,e,t,i,o)}}(t,e,o,n,r)}}function Ur(e,t,n){return Vt(e)?e.createElement(t,n):null===n?e.createElement(t):e.createElementNS(n,t)}function Wr(e,t){var n=e[9],i=n.indexOf(t),r=t[3];1024&t[2]&&(t[2]&=-1025,Kt(r,-1)),n.splice(i,1)}function Gr(e,t){if(!(e.length<=10)){var n,i=10+t,r=e[i];if(r){var o=r[17];null!==o&&o!==e&&Wr(o,r),t>0&&(e[i-1][4]=r[4]);var a=xi(e,10+t);ao(r[1],n=r,n[11],2,null,null),n[0]=null,n[6]=null;var s=a[19];null!==s&&s.detachView(a[1]),r[3]=null,r[4]=null,r[2]&=-129}return r}}function qr(e,t){if(!(256&t[2])){var n=t[11];Vt(n)&&n.destroyNode&&ao(e,t,n,3,null,null),function(e){var t=e[13];if(!t)return Yr(e[1],e);for(;t;){var n=null;if(xt(t))n=t[13];else{var i=t[10];i&&(n=i)}if(!n){for(;t&&!t[4]&&t!==e;)xt(t)&&Yr(t[1],t),t=t[3];null===t&&(t=e),xt(t)&&Yr(t[1],t),n=t&&t[4]}t=n}}(t)}}function Yr(e,t){if(!(256&t[2])){t[2]&=-129,t[2]|=256,function(e,t){var n;if(null!=e&&null!=(n=e.destroyHooks))for(var i=0;i<n.length;i+=2){var r=t[n[i]];if(!(r instanceof Vn)){var o=n[i+1];if(Array.isArray(o))for(var a=0;a<o.length;a+=2)o[a+1].call(r[o[a]]);else o.call(r)}}}(e,t),function(e,t){var n=e.cleanup,i=t[7],r=-1;if(null!==n)for(var o=0;o<n.length-1;o+=2)if("string"==typeof n[o]){var a=n[o+1],s="function"==typeof a?a(t):Nt(t[a]),l=i[r=n[o+2]],u=n[o+3];"boolean"==typeof u?s.removeEventListener(n[o],l,u):u>=0?i[r=u]():i[r=-u].unsubscribe(),o+=2}else{var c=i[r=n[o+1]];n[o].call(c)}if(null!==i){for(var d=r+1;d<i.length;d++)(0,i[d])();t[7]=null}}(e,t),1===t[1].type&&Vt(t[11])&&t[11].destroy();var n=t[17];if(null!==n&&At(t[3])){n!==t[3]&&Wr(n,t);var i=t[19];null!==i&&i.detachView(e)}}}function Zr(e,t,n){return function(e,t,n){for(var i=t;null!==i&&40&i.type;)i=(t=i).parent;if(null===i)return n[0];if(2&i.flags){var r=e.data[i.directiveStart].encapsulation;if(r===Xe.None||r===Xe.Emulated)return null}return jt(i,n)}(e,t.parent,n)}function Qr(e,t,n,i,r){Vt(e)?e.insertBefore(t,n,i,r):t.insertBefore(n,i,r)}function Xr(e,t,n){Vt(e)?e.appendChild(t,n):t.appendChild(n)}function Kr(e,t,n,i,r){null!==i?Qr(e,t,n,i,r):Xr(e,t,n)}function Jr(e,t){return Vt(e)?e.parentNode(t):t.parentNode}function $r(e,t,n){return eo(e,t,n)}var eo=function(e,t,n){return 40&e.type?jt(e,n):null};function to(e,t,n,i){var r=Zr(e,i,t),o=t[11],a=$r(i.parent||t[6],i,t);if(null!=r)if(Array.isArray(n))for(var s=0;s<n.length;s++)Kr(o,r,n[s],a,!1);else Kr(o,r,n,a,!1)}function no(e,t){if(null!==t){var n=t.type;if(3&n)return jt(t,e);if(4&n)return ro(-1,e[t.index]);if(8&n){var i=t.child;if(null!==i)return no(e,i);var r=e[t.index];return At(r)?ro(-1,r):Nt(r)}if(32&n)return Br(t,e)()||Nt(e[t.index]);var o=io(e,t);return null!==o?Array.isArray(o)?o[0]:no(Vr(e[16]),o):no(e,t.next)}return null}function io(e,t){return null!==t?e[16][6].projection[t.projection]:null}function ro(e,t){var n=10+e+1;if(n<t.length){var i=t[n],r=i[1].firstChild;if(null!==r)return no(i,r)}return t[7]}function oo(e,t,n,i,r,o,a){for(;null!=n;){var s=i[n.index],l=n.type;if(a&&0===t&&(s&&Mr(Nt(s),i),n.flags|=4),64!=(64&n.flags))if(8&l)oo(e,t,n.child,i,r,o,!1),jr(t,e,r,s,o);else if(32&l){for(var u=Br(n,i),c=void 0;c=u();)jr(t,e,r,c,o);jr(t,e,r,s,o)}else 16&l?so(e,t,i,n,r,o):jr(t,e,r,s,o);n=a?n.projectionNext:n.next}}function ao(e,t,n,i,r,o){oo(n,i,e.firstChild,t,r,o,!1)}function so(e,t,n,i,r,o){var a=n[16],s=a[6].projection[i.projection];if(Array.isArray(s))for(var l=0;l<s.length;l++)jr(t,e,r,s[l],o);else oo(e,t,s,a[3],r,o,!0)}function lo(e,t,n){Vt(e)?e.setAttribute(t,"style",n):t.style.cssText=n}function uo(e,t,n){Vt(e)?""===n?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n):t.className=n}function co(e,t,n){for(var i=e.length;;){var r=e.indexOf(t,n);if(-1===r)return r;if(0===r||e.charCodeAt(r-1)<=32){var o=t.length;if(r+o===i||e.charCodeAt(r+o)<=32)return r}n=r+1}}function ho(e,t,n){for(var i=0;i<e.length;){var r=e[i++];if(n&&"class"===r){if(-1!==co((r=e[i]).toLowerCase(),t,0))return!0}else if(1===r){for(;i<e.length&&"string"==typeof(r=e[i++]);)if(r.toLowerCase()===t)return!0;return!1}}return!1}function fo(e){return 4===e.type&&"ng-template"!==e.value}function po(e,t,n){return t===(4!==e.type||n?e.value:"ng-template")}function go(e,t,n){for(var i=4,r=e.attrs||[],o=function(e){for(var t=0;t<e.length;t++)if(Nn(e[t]))return t;return e.length}(r),a=!1,s=0;s<t.length;s++){var l=t[s];if("number"!=typeof l){if(!a)if(4&i){if(i=2|1&i,""!==l&&!po(e,l,n)||""===l&&1===t.length){if(vo(i))return!1;a=!0}}else{var u=8&i?l:t[++s];if(8&i&&null!==e.attrs){if(!ho(e.attrs,u,n)){if(vo(i))return!1;a=!0}continue}var c=mo(8&i?"class":l,r,fo(e),n);if(-1===c){if(vo(i))return!1;a=!0;continue}if(""!==u){var d;d=c>o?"":r[c+1].toLowerCase();var h=8&i?d:null;if(h&&-1!==co(h,u,0)||2&i&&u!==d){if(vo(i))return!1;a=!0}}}}else{if(!a&&!vo(i)&&!vo(l))return!1;if(a&&vo(l))continue;a=!1,i=l|1&i}}return vo(i)||a}function vo(e){return 0==(1&e)}function mo(e,t,n,i){if(null===t)return-1;var r=0;if(i||!n){for(var o=!1;r<t.length;){var a=t[r];if(a===e)return r;if(3===a||6===a)o=!0;else{if(1===a||2===a){for(var s=t[++r];"string"==typeof s;)s=t[++r];continue}if(4===a)break;if(0===a){r+=4;continue}}r+=o?1:2}return-1}return function(e,t){var n=e.indexOf(4);if(n>-1)for(n++;n<e.length;){var i=e[n];if("number"==typeof i)return-1;if(i===t)return n;n++}return-1}(t,e)}function yo(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=0;i<t.length;i++)if(go(e,t[i],n))return!0;return!1}function bo(e,t){e:for(var n=0;n<t.length;n++){var i=t[n];if(e.length===i.length){for(var r=0;r<e.length;r++)if(e[r]!==i[r])continue e;return!0}}return!1}function wo(e,t){return e?":not("+t.trim()+")":t}function _o(e){for(var t=e[0],n=1,i=2,r="",o=!1;n<e.length;){var a=e[n];if("string"==typeof a)if(2&i){var s=e[++n];r+="["+a+(s.length>0?'="'+s+'"':"")+"]"}else 8&i?r+="."+a:4&i&&(r+=" "+a);else""===r||vo(a)||(t+=wo(o,r),r=""),i=a,o=o||!vo(i);n++}return""!==r&&(t+=wo(o,r)),t}var ko={};function xo(e){Ao(tn(),en(),Pn()+e,un())}function Ao(e,t,n,i){if(!i)if(3==(3&t[2])){var r=e.preOrderCheckHooks;null!==r&&In(t,r,n)}else{var o=e.preOrderHooks;null!==o&&Rn(t,o,0,n)}En(n)}function Co(e,t){return e<<17|t<<2}function So(e){return e>>17&32767}function Po(e){return 2|e}function Eo(e){return(131068&e)>>2}function Do(e,t){return-131069&e|t<<2}function Oo(e){return 1|e}function Mo(e,t){var n=e.contentQueries;if(null!==n)for(var i=0;i<n.length;i+=2){var r=n[i],o=n[i+1];if(-1!==o){var a=e.data[o];yn(r),a.contentQueries(2,t[o],o)}}}function To(e,t,n,i,r,o,a,s,l,u){var c=t.blueprint.slice();return c[0]=r,c[2]=140|i,Xt(c),c[3]=c[15]=e,c[8]=n,c[10]=a||e&&e[10],c[11]=s||e&&e[11],c[12]=l||e&&e[12]||null,c[9]=u||e&&e[9]||null,c[6]=o,c[16]=2==t.type?e[16]:c,c}function Io(e,t,n,i,r){var o,a,s=e.data[t];if(null===s)s=function(e,t,n,i,r){var o=on(),a=sn(),s=e.data[t]=function(e,t,n,i,r,o){return{type:n,index:i,insertBeforeIndex:null,injectorIndex:t?t.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,value:r,attrs:o,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tViews:null,next:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,a?o:o&&o.parent,n,t,i,r);return null===e.firstChild&&(e.firstChild=s),null!==o&&(a?null==o.child&&null!==s.parent&&(o.child=s):null===o.next&&(o.next=s)),s}(e,t,n,i,r),Jt.lFrame.inI18n&&(s.flags|=64);else if(64&s.type){s.type=n,s.value=i,s.attrs=r;var l=(o=Jt.lFrame,a=o.currentTNode,o.isParent?a:a.parent);s.injectorIndex=null===l?-1:l.injectorIndex}return an(s,!0),s}function Ro(e,t,n,i){if(0===n)return-1;for(var r=t.length,o=0;o<n;o++)t.push(i),e.blueprint.push(i),e.data.push(null);return r}function Lo(e,t,n){_n(t);try{var i=e.viewQuery;null!==i&&da(1,i,n);var r=e.template;null!==r&&Vo(e,t,r,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),e.staticContentQueries&&Mo(e,t),e.staticViewQueries&&da(2,e.viewQuery,n);var o=e.components;null!==o&&function(e,t){for(var n=0;n<t.length;n++)aa(e,t[n])}(t,o)}catch(a){throw e.firstCreatePass&&(e.incompleteFirstPass=!0),a}finally{t[2]&=-5,Sn()}}function Fo(e,t,n,i){var r=t[2];if(256!=(256&r)){_n(t);var o=un();try{Xt(t),Jt.lFrame.bindingIndex=e.bindingStartIndex,null!==n&&Vo(e,t,n,2,i);var a=3==(3&r);if(!o)if(a){var s=e.preOrderCheckHooks;null!==s&&In(t,s,null)}else{var l=e.preOrderHooks;null!==l&&Rn(t,l,0,null),Ln(t,0)}if(function(e){for(var t=zr(e);null!==t;t=Nr(t))if(t[2])for(var n=t[9],i=0;i<n.length;i++){var r=n[i],o=r[3];0==(1024&r[2])&&Kt(o,1),r[2]|=1024}}(t),function(e){for(var t=zr(e);null!==t;t=Nr(t))for(var n=10;n<t.length;n++){var i=t[n],r=i[1];Zt(i)&&Fo(r,i,r.template,i[8])}}(t),null!==e.contentQueries&&Mo(e,t),!o)if(a){var u=e.contentCheckHooks;null!==u&&In(t,u)}else{var c=e.contentHooks;null!==c&&Rn(t,c,1),Ln(t,1)}!function(e,t){var n,i,r,o=e.hostBindingOpCodes;if(null!==o)try{for(var a=0;a<o.length;a++){var s=o[a];if(s<0)En(~s);else{var l=s,u=o[++a],c=o[++a];n=u,i=l,r=void 0,(r=Jt.lFrame).bindingIndex=r.bindingRootIndex=n,gn(i),c(2,t[l])}}}finally{En(-1)}}(e,t);var d=e.components;null!==d&&function(e,t){for(var n=0;n<t.length;n++)ra(e,t[n])}(t,d);var h=e.viewQuery;if(null!==h&&da(2,h,i),!o)if(a){var f=e.viewCheckHooks;null!==f&&In(t,f)}else{var p=e.viewHooks;null!==p&&Rn(t,p,2),Ln(t,2)}!0===e.firstUpdatePass&&(e.firstUpdatePass=!1),o||(t[2]&=-73),1024&t[2]&&(t[2]&=-1025,Kt(t[3],-1))}finally{Sn()}}}function Bo(e,t,n,i){var r=t[10],o=!un(),a=Yt(t);try{o&&!a&&r.begin&&r.begin(),a&&Lo(e,t,i),Fo(e,t,n,i)}finally{o&&!a&&r.end&&r.end()}}function Vo(e,t,n,i,r){var o=Pn();try{En(-1),2&i&&t.length>20&&Ao(e,t,20,un()),n(i,r)}finally{En(o)}}function zo(e,t,n){if(Ct(t))for(var i=t.directiveEnd,r=t.directiveStart;r<i;r++){var o=e.data[r];o.contentQueries&&o.contentQueries(1,n[r],r)}}function No(e,t,n){$t()&&(function(e,t,n,i){var r=n.directiveStart,o=n.directiveEnd;e.firstCreatePass||Xn(n,t),Mr(i,t);for(var a=n.initialInputs,s=r;s<o;s++){var l=e.data[s],u=Et(l);u&&ea(t,n,l);var c=li(t,e,s,n);Mr(c,t),null!==a&&ta(0,s-r,c,l,0,a),u&&(Gt(n.index,t)[8]=c)}}(e,t,n,jt(n,t)),128==(128&n.flags)&&function(e,t,n){var i=n.directiveStart,r=n.directiveEnd,o=n.index,a=Jt.lFrame.currentDirectiveIndex;try{En(o);for(var s=i;s<r;s++){var l=e.data[s],u=t[s];gn(s),null===l.hostBindings&&0===l.hostVars&&null===l.hostAttrs||Qo(l,u)}}finally{En(-1),gn(a)}}(e,t,n))}function Ho(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:jt,i=t.localNames;if(null!==i)for(var r=t.index+1,o=0;o<i.length;o+=2){var a=i[o+1],s=-1===a?n(t,e):e[a];e[r++]=s}}function jo(e){var t=e.tView;return null===t||t.incompleteFirstPass?e.tView=Uo(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts):t}function Uo(e,t,n,i,r,o,a,s,l,u){var c=20+i,d=c+r,h=function(e,t){for(var n=[],i=0;i<t;i++)n.push(i<e?null:ko);return n}(c,d),f="function"==typeof u?u():u;return h[1]={type:e,blueprint:h,template:n,queries:null,viewQuery:s,declTNode:t,data:h.slice().fill(null,c),bindingStartIndex:c,expandoStartIndex:d,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof o?o():o,pipeRegistry:"function"==typeof a?a():a,firstChild:null,schemas:l,consts:f,incompleteFirstPass:!1}}function Wo(e,t,n,i){var r=fa(t);null===n?r.push(i):(r.push(n),e.firstCreatePass&&pa(e).push(i,r.length-1))}function Go(e,t,n){for(var i in e)if(e.hasOwnProperty(i)){var r=e[i];(n=null===n?{}:n).hasOwnProperty(i)?n[i].push(t,r):n[i]=[t,r]}return n}function qo(e,t,n,i,r,o,a,s){var l,u,c=jt(t,n),d=t.inputs;!s&&null!=d&&(l=d[i])?(ma(e,n,l,i,r),St(t)&&function(e,t){var n=Gt(t,e);16&n[2]||(n[2]|=64)}(n,t.index)):3&t.type&&(i="class"===(u=i)?"className":"for"===u?"htmlFor":"formaction"===u?"formAction":"innerHtml"===u?"innerHTML":"readonly"===u?"readOnly":"tabindex"===u?"tabIndex":u,r=null!=a?a(r,t.value||"",i):r,Vt(o)?o.setProperty(c,i,r):Hn(i)||(c.setProperty?c.setProperty(i,r):c[i]=r))}function Yo(e,t,n,i){var r=!1;if($t()){var o=function(e,t,n){var i=e.directiveRegistry,r=null;if(i)for(var o=0;o<i.length;o++){var a=i[o];yo(n,a.selectors,!1)&&(r||(r=[]),ei(Xn(n,t),e,a.type),Et(a)?(Xo(e,n),r.unshift(a)):r.push(a))}return r}(e,t,n),a=null===i?null:{"":-1};if(null!==o){r=!0,Jo(n,e.data.length,o.length);for(var s=0;s<o.length;s++){var l=o[s];l.providersResolver&&l.providersResolver(l)}for(var u=!1,c=!1,d=Ro(e,t,o.length,null),h=0;h<o.length;h++){var f=o[h];n.mergedAttrs=jn(n.mergedAttrs,f.hostAttrs),$o(e,n,t,d,f),Ko(d,f,a),null!==f.contentQueries&&(n.flags|=8),null===f.hostBindings&&null===f.hostAttrs&&0===f.hostVars||(n.flags|=128);var p=f.type.prototype;!u&&(p.ngOnChanges||p.ngOnInit||p.ngDoCheck)&&((e.preOrderHooks||(e.preOrderHooks=[])).push(n.index),u=!0),c||!p.ngOnChanges&&!p.ngDoCheck||((e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(n.index),c=!0),d++}!function(e,t){for(var n=t.directiveEnd,i=e.data,r=t.attrs,o=[],a=null,s=null,l=t.directiveStart;l<n;l++){var u=i[l],c=u.inputs,d=null===r||fo(t)?null:na(c,r);o.push(d),a=Go(c,l,a),s=Go(u.outputs,l,s)}null!==a&&(a.hasOwnProperty("class")&&(t.flags|=16),a.hasOwnProperty("style")&&(t.flags|=32)),t.initialInputs=o,t.inputs=a,t.outputs=s}(e,n)}a&&function(e,t,n){if(t)for(var i=e.localNames=[],r=0;r<t.length;r+=2){var o=n[t[r+1]];if(null==o)throw new Oe("301","Export of name '".concat(t[r+1],"' not found!"));i.push(t[r],o)}}(n,i,a)}return n.mergedAttrs=jn(n.mergedAttrs,n.attrs),r}function Zo(e,t,n,i,r,o){var a=o.hostBindings;if(a){var s=e.hostBindingOpCodes;null===s&&(s=e.hostBindingOpCodes=[]);var l=~t.index;(function(e){for(var t=e.length;t>0;){var n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(s)!=l&&s.push(l),s.push(i,r,a)}}function Qo(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function Xo(e,t){t.flags|=2,(e.components||(e.components=[])).push(t.index)}function Ko(e,t,n){if(n){if(t.exportAs)for(var i=0;i<t.exportAs.length;i++)n[t.exportAs[i]]=e;Et(t)&&(n[""]=e)}}function Jo(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t}function $o(e,t,n,i,r){e.data[i]=r;var o=r.factory||(r.factory=Dt(r.type)),a=new Vn(o,Et(r),null);e.blueprint[i]=a,n[i]=a,Zo(e,t,0,i,Ro(e,n,r.hostVars,ko),r)}function ea(e,t,n){var i=jt(t,e),r=jo(n),o=e[10],a=sa(e,To(e,r,null,n.onPush?64:16,i,t,o,o.createRenderer(i,n),null,null));e[t.index]=a}function ta(e,t,n,i,r,o){var a=o[t];if(null!==a)for(var s=i.setInput,l=0;l<a.length;){var u=a[l++],c=a[l++],d=a[l++];null!==s?i.setInput(n,d,u,c):n[c]=d}}function na(e,t){for(var n=null,i=0;i<t.length;){var r=t[i];if(0!==r)if(5!==r){if("number"==typeof r)break;e.hasOwnProperty(r)&&(null===n&&(n=[]),n.push(r,e[r],t[i+1])),i+=2}else i+=2;else i+=4}return n}function ia(e,t,n,i){return new Array(e,!0,!1,t,null,0,i,n,null,null)}function ra(e,t){var n=Gt(t,e);if(Zt(n)){var i=n[1];80&n[2]?Fo(i,n,i.template,n[8]):n[5]>0&&oa(n)}}function oa(e){for(var t=zr(e);null!==t;t=Nr(t))for(var n=10;n<t.length;n++){var i=t[n];if(1024&i[2]){var r=i[1];Fo(r,i,r.template,i[8])}else i[5]>0&&oa(i)}var o=e[1].components;if(null!==o)for(var a=0;a<o.length;a++){var s=Gt(o[a],e);Zt(s)&&s[5]>0&&oa(s)}}function aa(e,t){var n=Gt(t,e),i=n[1];!function(e,t){for(var n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n])}(i,n),Lo(i,n,n[8])}function sa(e,t){return e[13]?e[14][4]=t:e[13]=t,e[14]=t,t}function la(e){for(;e;){e[2]|=64;var t=Vr(e);if(0!=(512&e[2])&&!t)return e;e=t}return null}function ua(e,t,n){var i=t[10];i.begin&&i.begin();try{Fo(e,t,e.template,n)}catch(r){throw va(t,r),r}finally{i.end&&i.end()}}function ca(e){!function(e){for(var t=0;t<e.components.length;t++){var n=e.components[t],i=qt(n),r=i[1];Bo(r,i,r.template,n)}}(e[8])}function da(e,t,n){yn(0),t(e,n)}var ha=Promise.resolve(null);function fa(e){return e[7]||(e[7]=[])}function pa(e){return e.cleanup||(e.cleanup=[])}function ga(e,t,n){return(null===e||Et(e))&&(n=function(e){for(;Array.isArray(e);){if("object"==typeof e[1])return e;e=e[0]}return null}(n[t.index])),n[11]}function va(e,t){var n=e[9],i=n?n.get(Or,null):null;i&&i.handleError(t)}function ma(e,t,n,i,r){for(var o=0;o<n.length;){var a=n[o++],s=n[o++],l=t[a],u=e.data[a];null!==u.setInput?u.setInput(l,r,i,s):l[s]=r}}function ya(e,t,n){var i=Ht(t,e);!function(e,t,n){Vt(e)?e.setValue(t,n):t.textContent=n}(e[11],i,n)}function ba(e,t,n){var i=n?e.styles:null,r=n?e.classes:null,o=0;if(null!==t)for(var a=0;a<t.length;a++){var s=t[a];"number"==typeof s?o=s:1==o?r=Ce(r,s):2==o&&(i=Ce(i,s+": "+t[++a]+";"))}n?e.styles=i:e.stylesWithoutHost=i,n?e.classes=r:e.classesWithoutHost=r}var wa=new mi("INJECTOR",-1),_a=function(){function e(){A(this,e)}return m(e,[{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ei;if(t===Ei){var n=new Error("NullInjectorError: No provider for ".concat(Ae(e),"!"));throw n.name="NullInjectorError",n}return t}}]),e}(),ka=new mi("Set Injector scope."),xa={},Aa={},Ca=[],Sa=void 0;function Pa(){return void 0===Sa&&(Sa=new _a),Sa}function Ea(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3?arguments[3]:void 0;return new Da(e,n,t||Pa(),i)}var Da=function(){function e(t,n,i){var r=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;A(this,e),this.parent=i,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;var a=[];n&&_i(n,function(e){return r.processProvider(e,t,n)}),_i([t],function(e){return r.processInjectorType(e,[],a)}),this.records.set(wa,Ta(void 0,this));var s=this.records.get(ka);this.scope=null!=s?s.value:null,this.source=o||("object"==typeof t?null:Ae(t))}return m(e,[{key:"destroyed",get:function(){return this._destroyed}},{key:"destroy",value:function(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(function(e){return e.ngOnDestroy()})}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}},{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ei,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Ge.Default;this.assertNotDestroyed();var i,r=Ti(this);try{if(!(n&Ge.SkipSelf)){var o=this.records.get(e);if(void 0===o){var a=("function"==typeof(i=e)||"object"==typeof i&&i instanceof mi)&&Be(e);o=a&&this.injectableDefInScope(a)?Ta(Oa(e),xa):null,this.records.set(e,o)}if(null!=o)return this.hydrate(e,o)}return(n&Ge.Self?Pa():this.parent).get(e,t=n&Ge.Optional&&t===Ei?null:t)}catch(s){if("NullInjectorError"===s.name){if((s.ngTempTokenPath=s.ngTempTokenPath||[]).unshift(Ae(e)),r)throw s;return function(e,t,n,i){var r=e.ngTempTokenPath;throw t.__source&&r.unshift(t.__source),e.message=function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.substr(2):e;var r=Ae(t);if(Array.isArray(t))r=t.map(Ae).join(" -> ");else if("object"==typeof t){var o=[];for(var a in t)if(t.hasOwnProperty(a)){var s=t[a];o.push(a+":"+("string"==typeof s?JSON.stringify(s):Ae(s)))}r="{".concat(o.join(", "),"}")}return"".concat(n).concat(i?"("+i+")":"","[").concat(r,"]: ").concat(e.replace(Di,"\n  "))}("\n"+e.message,r,"R3InjectorError",i),e.ngTokenPath=r,e.ngTempTokenPath=null,e}(s,e,0,this.source)}throw s}finally{Ti(r)}}},{key:"_resolveInjectorDefTypes",value:function(){var e=this;this.injectorDefTypes.forEach(function(t){return e.get(t)})}},{key:"toString",value:function(){var e=[];return this.records.forEach(function(t,n){return e.push(Ae(n))}),"R3Injector[".concat(e.join(", "),"]")}},{key:"assertNotDestroyed",value:function(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}},{key:"processInjectorType",value:function(e,t,n){var i=this;if(!(e=Ee(e)))return!1;var r=ze(e),o=null==r&&e.ngModule||void 0,a=void 0===o?e:o,s=-1!==n.indexOf(a);if(void 0!==o&&(r=ze(o)),null==r)return!1;if(null!=r.imports&&!s){var l;n.push(a);try{_i(r.imports,function(e){i.processInjectorType(e,t,n)&&(void 0===l&&(l=[]),l.push(e))})}finally{}if(void 0!==l)for(var u=function(e){var t=l[e],n=t.ngModule,r=t.providers;_i(r,function(e){return i.processProvider(e,n,r||Ca)})},c=0;c<l.length;c++)u(c)}this.injectorDefTypes.add(a);var d=Dt(a)||function(){return new a};this.records.set(a,Ta(d,xa));var h=r.providers;if(null!=h&&!s){var f=e;_i(h,function(e){return i.processProvider(e,f,h)})}return void 0!==o&&void 0!==e.providers}},{key:"processProvider",value:function(e,t,n){var i=Ra(e=Ee(e))?e:Ee(e&&e.provide),r=function(e,t,n){return Ia(e)?Ta(void 0,e.useValue):Ta(Ma(e),xa)}(e);if(Ra(e)||!0!==e.multi)this.records.get(i);else{var o=this.records.get(i);o||((o=Ta(void 0,xa,!0)).factory=function(){return Fi(o.multi)},this.records.set(i,o)),i=e,o.multi.push(e)}this.records.set(i,r)}},{key:"hydrate",value:function(e,t){var n;return t.value===xa&&(t.value=Aa,t.value=t.factory()),"object"==typeof t.value&&t.value&&null!==(n=t.value)&&"object"==typeof n&&"function"==typeof n.ngOnDestroy&&this.onDestroy.add(t.value),t.value}},{key:"injectableDefInScope",value:function(e){return!!e.providedIn&&("string"==typeof e.providedIn?"any"===e.providedIn||e.providedIn===this.scope:this.injectorDefTypes.has(e.providedIn))}}]),e}();function Oa(e){var t=Be(e),n=null!==t?t.factory:Dt(e);if(null!==n)return n;if(e instanceof mi)throw new Error("Token ".concat(Ae(e)," is missing a \u0275prov definition."));if(e instanceof Function)return function(e){var t=e.length;if(t>0){var n=Ai(t,"?");throw new Error("Can't resolve all parameters for ".concat(Ae(e),": (").concat(n.join(", "),")."))}var i=function(e){var t=e&&(e[He]||e[Ue]);if(t){var n=function(e){if(e.hasOwnProperty("name"))return e.name;var t=(""+e).match(/^function\s*([^\s(]+)/);return null===t?"":t[1]}(e);return console.warn('DEPRECATED: DI is instantiating a token "'.concat(n,'" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "').concat(n,'" class.')),t}return null}(e);return null!==i?function(){return i.factory(e)}:function(){return new e}}(e);throw new Error("unreachable")}function Ma(e,n,i){var r,o=void 0;if(Ra(e)){var a=Ee(e);return Dt(a)||Oa(a)}if(Ia(e))o=function(){return Ee(e.useValue)};else if((r=e)&&r.useFactory)o=function(){return e.useFactory.apply(e,y(Fi(e.deps||[])))};else if(function(e){return!(!e||!e.useExisting)}(e))o=function(){return Ri(Ee(e.useExisting))};else{var s=Ee(e&&(e.useClass||e.provide));if(!function(e){return!!e.deps}(e))return Dt(s)||Oa(s);o=function(){return t(s,y(Fi(e.deps)))}}return o}function Ta(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{factory:e,value:t,multi:n?[]:void 0}}function Ia(e){return null!==e&&"object"==typeof e&&Oi in e}function Ra(e){return"function"==typeof e}var La=function(e,t,n){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3?arguments[3]:void 0,r=Ea(e,t,n,i);return r._resolveInjectorDefTypes(),r}({name:n},t,e,n)},Fa=function(){var e=function(){function e(){A(this,e)}return m(e,null,[{key:"create",value:function(e,t){return Array.isArray(e)?La(e,t,""):La(e.providers,e.parent,e.name||"")}}]),e}();return e.THROW_IF_NOT_FOUND=Ei,e.NULL=new _a,e.\u0275prov=Re({token:e,providedIn:"any",factory:function(){return Ri(wa)}}),e.__NG_ELEMENT_ID__=-1,e}();function Ba(e,t){Tn(qt(e)[1],rn())}function Va(e){for(var t=Object.getPrototypeOf(e.type.prototype).constructor,n=!0,i=[e];t;){var r=void 0;if(Et(e))r=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new Error("Directives cannot inherit Components");r=t.\u0275dir}if(r){if(n){i.push(r);var o=e;o.inputs=za(e.inputs),o.declaredInputs=za(e.declaredInputs),o.outputs=za(e.outputs);var a=r.hostBindings;a&&ja(e,a);var s=r.viewQuery,l=r.contentQueries;if(s&&Na(e,s),l&&Ha(e,l),xe(e.inputs,r.inputs),xe(e.declaredInputs,r.declaredInputs),xe(e.outputs,r.outputs),Et(r)&&r.data.animation){var u=e.data;u.animation=(u.animation||[]).concat(r.data.animation)}}var c=r.features;if(c)for(var d=0;d<c.length;d++){var h=c[d];h&&h.ngInherit&&h(e),h===Va&&(n=!1)}}t=Object.getPrototypeOf(t)}!function(e){for(var t=0,n=null,i=e.length-1;i>=0;i--){var r=e[i];r.hostVars=t+=r.hostVars,r.hostAttrs=jn(r.hostAttrs,n=jn(n,r.hostAttrs))}}(i)}function za(e){return e===nt?{}:e===rt?[]:e}function Na(e,t){var n=e.viewQuery;e.viewQuery=n?function(e,i){t(e,i),n(e,i)}:t}function Ha(e,t){var n=e.contentQueries;e.contentQueries=n?function(e,i,r){t(e,i,r),n(e,i,r)}:t}function ja(e,t){var n=e.hostBindings;e.hostBindings=n?function(e,i){t(e,i),n(e,i)}:t}var Ua=null;function Wa(){if(!Ua){var e=tt.Symbol;if(e&&e.iterator)Ua=e.iterator;else for(var t=Object.getOwnPropertyNames(Map.prototype),n=0;n<t.length;++n){var i=t[n];"entries"!==i&&"size"!==i&&Map.prototype[i]===Map.prototype.entries&&(Ua=i)}}return Ua}var Ga=function(){function e(t){A(this,e),this.wrapped=t}return m(e,null,[{key:"wrap",value:function(t){return new e(t)}},{key:"unwrap",value:function(t){return e.isWrapped(t)?t.wrapped:t}},{key:"isWrapped",value:function(t){return t instanceof e}}]),e}();function qa(e){return!!Ya(e)&&(Array.isArray(e)||!(e instanceof Map)&&Wa()in e)}function Ya(e){return null!==e&&("function"==typeof e||"object"==typeof e)}function Za(e,t,n){return e[t]=n}function Qa(e,t,n){return!Object.is(e[t],n)&&(e[t]=n,!0)}function Xa(e,t,n,i){var r=Qa(e,t,n);return Qa(e,t+1,i)||r}function Ka(e,t,n,i,r){var o=Xa(e,t,n,i);return Qa(e,t+2,r)||o}function Ja(e,t,n,i,r,o){var a=Xa(e,t,n,i);return Xa(e,t+2,r,o)||a}function $a(e,t,n,i){var r=en();return Qa(r,fn(),t)&&(tn(),function(e,t,n,i,r,o){var a=jt(e,t);!function(e,t,n,i,r,o,a){if(null==o)Vt(e)?e.removeAttribute(t,r,n):t.removeAttribute(r);else{var s=null==a?Me(o):a(o,i||"",r);Vt(e)?e.setAttribute(t,r,s,n):n?t.setAttributeNS(n,r,s):t.setAttribute(r,s)}}(t[11],a,o,e.value,n,i,r)}(Dn(),r,e,t,n,i)),$a}function es(e,t,n,i){return Qa(e,fn(),n)?t+Me(n)+i:ko}function ts(e,t,n,i,r,o){var a=Xa(e,hn(),n,r);return pn(2),a?t+Me(n)+i+Me(r)+o:ko}function ns(e,t,n,i,r,o,a,s){var l=en(),u=tn(),c=e+20,d=u.firstCreatePass?function(e,t,n,i,r,o,a,s,l){var u=t.consts,c=Io(t,e,4,a||null,Qt(u,s));Yo(t,n,c,Qt(u,l)),Tn(t,c);var d=c.tViews=Uo(2,c,i,r,o,t.directiveRegistry,t.pipeRegistry,null,t.schemas,u);return null!==t.queries&&(t.queries.template(t,c),d.queries=t.queries.embeddedTView(c)),c}(c,u,l,t,n,i,r,o,a):u.data[c];an(d,!1);var h=l[11].createComment("");to(u,l,h,d),Mr(h,l),sa(l,l[c]=ia(h,l,h,d)),Pt(d)&&No(u,l,d),null!=a&&Ho(l,d,s)}function is(e){return Wt(Jt.lFrame.contextLView,20+e)}function rs(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ge.Default,n=en();return null===n?Ri(e,t):ii(rn(),n,Ee(e),t)}function os(e,t,n){var i=en();return Qa(i,fn(),t)&&qo(tn(),Dn(),i,e,t,i[11],n,!1),os}function as(e,t,n,i,r){var o=r?"class":"style";ma(e,n,t.inputs[o],o,i)}function ss(e,t,n,i){var r=en(),o=tn(),a=20+e,s=r[11],l=r[a]=Ur(s,t,Jt.lFrame.currentNamespace),u=o.firstCreatePass?function(e,t,n,i,r,o,a){var s=t.consts,l=Io(t,e,2,r,Qt(s,o));return Yo(t,n,l,Qt(s,a)),null!==l.attrs&&ba(l,l.attrs,!1),null!==l.mergedAttrs&&ba(l,l.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,l),l}(a,o,r,0,t,n,i):o.data[a];an(u,!0);var c=u.mergedAttrs;null!==c&&zn(s,l,c);var d=u.classes;null!==d&&uo(s,l,d);var h=u.styles;null!==h&&lo(s,l,h),64!=(64&u.flags)&&to(o,r,l,u),0===Jt.lFrame.elementDepthCount&&Mr(l,r),Jt.lFrame.elementDepthCount++,Pt(u)&&(No(o,r,u),zo(o,u,r)),null!==i&&Ho(r,u)}function ls(){var e=rn();sn()?ln():an(e=e.parent,!1);var t=e;Jt.lFrame.elementDepthCount--;var n=tn();n.firstCreatePass&&(Tn(n,e),Ct(e)&&n.queries.elementEnd(e)),null!=t.classesWithoutHost&&function(e){return 0!=(16&e.flags)}(t)&&as(n,t,en(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function(e){return 0!=(32&e.flags)}(t)&&as(n,t,en(),t.stylesWithoutHost,!1)}function us(e,t,n,i){ss(e,t,n,i),ls()}function cs(e,t,n){var i=en(),r=tn(),o=e+20,a=r.firstCreatePass?function(e,t,n,i,r){var o=t.consts,a=Qt(o,i),s=Io(t,e,8,"ng-container",a);return null!==a&&ba(s,a,!0),Yo(t,n,s,Qt(o,r)),null!==t.queries&&t.queries.elementStart(t,s),s}(o,r,i,t,n):r.data[o];an(a,!0);var s=i[o]=i[11].createComment("");to(r,i,s,a),Mr(s,i),Pt(a)&&(No(r,i,a),zo(r,a,i)),null!=n&&Ho(i,a)}function ds(){var e=rn(),t=tn();sn()?ln():an(e=e.parent,!1),t.firstCreatePass&&(Tn(t,e),Ct(e)&&t.queries.elementEnd(e))}function hs(e,t,n){cs(e,t,n),ds()}function fs(){return en()}function ps(e){return!!e&&"function"==typeof e.then}function gs(e){return!!e&&"function"==typeof e.subscribe}var vs=gs;function ms(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3?arguments[3]:void 0,r=en(),o=tn(),a=rn();return bs(o,r,r[11],a,e,t,n,i),ms}function ys(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3?arguments[3]:void 0,r=rn(),o=en(),a=tn();return bs(a,o,ga(vn(a.data),r,o),r,e,t,n,i),ys}function bs(e,t,n,i,r,o){var a=arguments.length>6&&void 0!==arguments[6]&&arguments[6],s=arguments.length>7?arguments[7]:void 0,l=Pt(i),u=e.firstCreatePass&&pa(e),c=fa(t),d=!0;if(3&i.type){var h=jt(i,t),f=s?s(h):nt,p=f.target||h,g=c.length,v=s?function(e){return s(Nt(e[i.index])).target}:i.index;if(Vt(n)){var m=null;if(!s&&l&&(m=function(e,t,n,i){var r=e.cleanup;if(null!=r)for(var o=0;o<r.length-1;o+=2){var a=r[o];if(a===n&&r[o+1]===i){var s=t[7],l=r[o+2];return s.length>l?s[l]:null}"string"==typeof a&&(o+=2)}return null}(e,t,r,i.index)),null!==m)(m.__ngLastListenerFn__||m).__ngNextListenerFn__=o,m.__ngLastListenerFn__=o,d=!1;else{o=_s(i,t,o,!1);var y=n.listen(f.name||p,r,o);c.push(o,y),u&&u.push(r,v,g,g+1)}}else o=_s(i,t,o,!0),p.addEventListener(r,o,a),c.push(o),u&&u.push(r,v,g,a)}else o=_s(i,t,o,!1);var b,w=i.outputs;if(d&&null!==w&&(b=w[r])){var _=b.length;if(_)for(var k=0;k<_;k+=2){var x=t[b[k]][b[k+1]].subscribe(o),A=c.length;c.push(o,x),u&&u.push(r,i.index,A,-(A+1))}}}function ws(e,t,n){try{return!1!==t(n)}catch(i){return va(e,i),!1}}function _s(e,t,n,i){return function r(o){if(o===Function)return n;var a=2&e.flags?Gt(e.index,t):t;0==(32&t[2])&&la(a);for(var s=ws(t,n,o),l=r.__ngNextListenerFn__;l;)s=ws(t,l,o)&&s,l=l.__ngNextListenerFn__;return i&&!1===s&&(o.preventDefault(),o.returnValue=!1),s}}function ks(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return function(e){return(Jt.lFrame.contextLView=function(e,t){for(;e>0;)t=t[15],e--;return t}(e,Jt.lFrame.contextLView))[8]}(e)}function xs(e,t){for(var n=null,i=function(e){var t=e.attrs;if(null!=t){var n=t.indexOf(5);if(0==(1&n))return t[n+1]}return null}(e),r=0;r<t.length;r++){var o=t[r];if("*"!==o){if(null===i?yo(e,o,!0):bo(i,o))return r}else n=r}return n}function As(e){var t=en()[16][6];if(!t.projection)for(var n=t.projection=Ai(e?e.length:1,null),i=n.slice(),r=t.child;null!==r;){var o=e?xs(r,e):0;null!==o&&(i[o]?i[o].projectionNext=r:n[o]=r,i[o]=r),r=r.next}}function Cs(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0,i=en(),r=tn(),o=Io(r,20+e,16,null,n||null);null===o.projection&&(o.projection=t),ln(),64!=(64&o.flags)&&function(e,t,n){so(t[11],0,t,n,Zr(e,n,t),$r(n.parent||t[6],n,t))}(r,i,o)}function Ss(e,t,n){return Ps(e,"",t,"",n),Ss}function Ps(e,t,n,i,r){var o=en(),a=es(o,t,n,i);return a!==ko&&qo(tn(),Dn(),o,e,a,o[11],r,!1),Ps}function Es(e,t,n,i,r,o,a){var s=en(),l=ts(s,t,n,i,r,o);return l!==ko&&qo(tn(),Dn(),s,e,l,s[11],a,!1),Es}function Ds(e,t,n,i,r){for(var o=e[n+1],a=null===t,s=i?So(o):Eo(o),l=!1;0!==s&&(!1===l||a);){var u=e[s+1];Os(e[s],t)&&(l=!0,e[s+1]=i?Oo(u):Po(u)),s=i?So(u):Eo(u)}l&&(e[n+1]=i?Po(o):Oo(o))}function Os(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&Pi(e,t)>=0}var Ms={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Ts(e){return e.substring(Ms.key,Ms.keyEnd)}function Is(e,t){var n=Ms.textEnd;return n===t?-1:(t=Ms.keyEnd=function(e,t,n){for(;t<n&&e.charCodeAt(t)>32;)t++;return t}(e,Ms.key=t,n),Rs(e,t,n))}function Rs(e,t,n){for(;t<n&&e.charCodeAt(t)<=32;)t++;return t}function Ls(e,t,n){return zs(e,t,n,!1),Ls}function Fs(e,t){return zs(e,t,null,!0),Fs}function Bs(e){Ns(Ci,Vs,e,!0)}function Vs(e,t){for(var n=function(e){return function(e){Ms.key=0,Ms.keyEnd=0,Ms.value=0,Ms.valueEnd=0,Ms.textEnd=e.length}(e),Is(e,Rs(e,0,Ms.textEnd))}(t);n>=0;n=Is(t,n))Ci(e,Ts(t),!0)}function zs(e,t,n,i){var r=en(),o=tn(),a=pn(2);o.firstUpdatePass&&js(o,e,a,i),t!==ko&&Qa(r,a,t)&&Gs(o,o.data[Pn()],r,r[11],e,r[a+1]=function(e,t){return null==e||("string"==typeof t?e+=t:"object"==typeof e&&(e=Ae(Ki(e)))),e}(t,n),i,a)}function Ns(e,t,n,i){var r=tn(),o=pn(2);r.firstUpdatePass&&js(r,null,o,i);var a=en();if(n!==ko&&Qa(a,o,n)){var s=r.data[Pn()];if(Zs(s,i)&&!Hs(r,o)){var l=i?s.classesWithoutHost:s.stylesWithoutHost;null!==l&&(n=Ce(l,n||"")),as(r,s,a,n,i)}else!function(e,t,n,i,r,o,a,s){r===ko&&(r=it);for(var l=0,u=0,c=0<r.length?r[0]:null,d=0<o.length?o[0]:null;null!==c||null!==d;){var h=l<r.length?r[l+1]:void 0,f=u<o.length?o[u+1]:void 0,p=null,g=void 0;c===d?(l+=2,u+=2,h!==f&&(p=d,g=f)):null===d||null!==c&&c<d?(l+=2,p=c):(u+=2,p=d,g=f),null!==p&&Gs(e,t,n,i,p,g,a,s),c=l<r.length?r[l]:null,d=u<o.length?o[u]:null}}(r,s,a,a[11],a[o+1],a[o+1]=function(e,t,n){if(null==n||""===n)return it;var i=[],r=Ki(n);if(Array.isArray(r))for(var o=0;o<r.length;o++)e(i,r[o],!0);else if("object"==typeof r)for(var a in r)r.hasOwnProperty(a)&&e(i,a,r[a]);else"string"==typeof r&&t(i,r);return i}(e,t,n),i,o)}}function Hs(e,t){return t>=e.expandoStartIndex}function js(e,t,n,i){var r=e.data;if(null===r[n+1]){var o=r[Pn()],a=Hs(e,n);Zs(o,i)&&null===t&&!a&&(t=!1),t=function(e,t,n,i){var r=vn(e),o=i?t.residualClasses:t.residualStyles;if(null===r)0===(i?t.classBindings:t.styleBindings)&&(n=Ws(n=Us(null,e,t,n,i),t.attrs,i),o=null);else{var a=t.directiveStylingLast;if(-1===a||e[a]!==r)if(n=Us(r,e,t,n,i),null===o){var s=function(e,t,n){var i=n?t.classBindings:t.styleBindings;if(0!==Eo(i))return e[So(i)]}(e,t,i);void 0!==s&&Array.isArray(s)&&function(e,t,n,i){e[So(n?t.classBindings:t.styleBindings)]=i}(e,t,i,s=Ws(s=Us(null,e,t,s[1],i),t.attrs,i))}else o=function(e,t,n){for(var i=void 0,r=t.directiveEnd,o=1+t.directiveStylingLast;o<r;o++)i=Ws(i,e[o].hostAttrs,n);return Ws(i,t.attrs,n)}(e,t,i)}return void 0!==o&&(i?t.residualClasses=o:t.residualStyles=o),n}(r,o,t,i),function(e,t,n,i,r,o){var a=o?t.classBindings:t.styleBindings,s=So(a),l=Eo(a);e[i]=n;var u,c=!1;if(Array.isArray(n)){var d=n;(null===(u=d[1])||Pi(d,u)>0)&&(c=!0)}else u=n;if(r)if(0!==l){var h=So(e[s+1]);e[i+1]=Co(h,s),0!==h&&(e[h+1]=Do(e[h+1],i)),e[s+1]=131071&e[s+1]|i<<17}else e[i+1]=Co(s,0),0!==s&&(e[s+1]=Do(e[s+1],i)),s=i;else e[i+1]=Co(l,0),0===s?s=i:e[l+1]=Do(e[l+1],i),l=i;c&&(e[i+1]=Po(e[i+1])),Ds(e,u,i,!0),Ds(e,u,i,!1),function(e,t,n,i,r){var o=r?e.residualClasses:e.residualStyles;null!=o&&"string"==typeof t&&Pi(o,t)>=0&&(n[i+1]=Oo(n[i+1]))}(t,u,e,i,o),a=Co(s,l),o?t.classBindings=a:t.styleBindings=a}(r,o,t,n,a,i)}}function Us(e,t,n,i,r){var o=null,a=n.directiveEnd,s=n.directiveStylingLast;for(-1===s?s=n.directiveStart:s++;s<a&&(i=Ws(i,(o=t[s]).hostAttrs,r),o!==e);)s++;return null!==e&&(n.directiveStylingLast=s),i}function Ws(e,t,n){var i=n?1:2,r=-1;if(null!==t)for(var o=0;o<t.length;o++){var a=t[o];"number"==typeof a?r=a:r===i&&(Array.isArray(e)||(e=void 0===e?[]:["",e]),Ci(e,a,!!n||t[++o]))}return void 0===e?null:e}function Gs(e,t,n,i,r,o,a,s){if(3&t.type){var l=e.data,u=l[s+1];Ys(1==(1&u)?qs(l,t,n,r,Eo(u),a):void 0)||(Ys(o)||2==(2&u)&&(o=qs(l,null,n,r,s,a)),function(e,t,n,i,r){var o=Vt(e);if(t)r?o?e.addClass(n,i):n.classList.add(i):o?e.removeClass(n,i):n.classList.remove(i);else{var a=-1===i.indexOf("-")?void 0:Fr.DashCase;if(null==r)o?e.removeStyle(n,i,a):n.style.removeProperty(i);else{var s="string"==typeof r&&r.endsWith("!important");s&&(r=r.slice(0,-10),a|=Fr.Important),o?e.setStyle(n,i,r,a):n.style.setProperty(i,r,s?"important":"")}}}(i,a,Ht(Pn(),n),r,o))}}function qs(e,t,n,i,r,o){for(var a=null===t,s=void 0;r>0;){var l=e[r],u=Array.isArray(l),c=u?l[1]:l,d=null===c,h=n[r+1];h===ko&&(h=d?it:void 0);var f=d?Si(h,i):c===i?h:void 0;if(u&&!Ys(f)&&(f=Si(l,i)),Ys(f)&&(s=f,a))return s;var p=e[r+1];r=a?So(p):Eo(p)}if(null!==t){var g=o?t.residualClasses:t.residualStyles;null!=g&&(s=Si(g,i))}return s}function Ys(e){return void 0!==e}function Zs(e,t){return 0!=(e.flags&(t?16:32))}function Qs(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=en(),i=tn(),r=e+20,o=i.firstCreatePass?Io(i,r,1,t,null):i.data[r],a=n[r]=function(e,t){return Vt(e)?e.createText(t):e.createTextNode(t)}(n[11],t);to(i,n,a,o),an(o,!1)}function Xs(e){return Ks("",e,""),Xs}function Ks(e,t,n){var i=en(),r=es(i,e,t,n);return r!==ko&&ya(i,Pn(),r),Ks}function Js(e,t,n,i,r){var o=en(),a=ts(o,e,t,n,i,r);return a!==ko&&ya(o,Pn(),a),Js}function $s(e,t,n,i,r,o,a){var s=en(),l=function(e,t,n,i,r,o,a,s){var l=Ka(e,hn(),n,r,a);return pn(3),l?t+Me(n)+i+Me(r)+o+Me(a)+s:ko}(s,e,t,n,i,r,o,a);return l!==ko&&ya(s,Pn(),l),$s}function el(e,t,n,i,r,o,a,s,l){var u=en(),c=function(e,t,n,i,r,o,a,s,l,u){var c=Ja(e,hn(),n,r,a,l);return pn(4),c?t+Me(n)+i+Me(r)+o+Me(a)+s+Me(l)+u:ko}(u,e,t,n,i,r,o,a,s,l);return c!==ko&&ya(u,Pn(),c),el}function tl(e,t,n){Ns(Ci,Vs,es(en(),e,t,n),!0)}function nl(e,t,n){var i=en();return Qa(i,fn(),t)&&qo(tn(),Dn(),i,e,t,i[11],n,!0),nl}function il(e,t,n){var i=en();if(Qa(i,fn(),t)){var r=tn(),o=Dn();qo(r,o,i,e,t,ga(vn(r.data),o,i),n,!0)}return il}var rl=void 0,ol=["en",[["a","p"],["AM","PM"],rl],[["AM","PM"],rl,rl],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],rl,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],rl,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",rl,"{1} 'at' {0}",rl],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(e){var t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return 1===t&&0===n?1:5}],al={};function sl(e){var t=function(e){return e.toLowerCase().replace(/_/g,"-")}(e),n=ll(t);if(n)return n;var i=t.split("-")[0];if(n=ll(i))return n;if("en"===i)return ol;throw new Error('Missing locale data for the locale "'.concat(e,'".'))}function ll(e){return e in al||(al[e]=tt.ng&&tt.ng.common&&tt.ng.common.locales&&tt.ng.common.locales[e]),al[e]}var ul=function(e){return e[e.LocaleId=0]="LocaleId",e[e.DayPeriodsFormat=1]="DayPeriodsFormat",e[e.DayPeriodsStandalone=2]="DayPeriodsStandalone",e[e.DaysFormat=3]="DaysFormat",e[e.DaysStandalone=4]="DaysStandalone",e[e.MonthsFormat=5]="MonthsFormat",e[e.MonthsStandalone=6]="MonthsStandalone",e[e.Eras=7]="Eras",e[e.FirstDayOfWeek=8]="FirstDayOfWeek",e[e.WeekendRange=9]="WeekendRange",e[e.DateFormat=10]="DateFormat",e[e.TimeFormat=11]="TimeFormat",e[e.DateTimeFormat=12]="DateTimeFormat",e[e.NumberSymbols=13]="NumberSymbols",e[e.NumberFormats=14]="NumberFormats",e[e.CurrencyCode=15]="CurrencyCode",e[e.CurrencySymbol=16]="CurrencySymbol",e[e.CurrencyName=17]="CurrencyName",e[e.Currencies=18]="Currencies",e[e.Directionality=19]="Directionality",e[e.PluralCase=20]="PluralCase",e[e.ExtraData=21]="ExtraData",e}({});function cl(e){var t;null==(t=e)&&function(e,t,n,i){throw new Error("ASSERTION ERROR: Expected localeId to be defined"+" [Expected=> null != ".concat(t," <=Actual]"))}(0,t),"string"==typeof e&&e.toLowerCase().replace(/_/g,"-")}function dl(e,t,n,i,r){if(e=Ee(e),Array.isArray(e))for(var o=0;o<e.length;o++)dl(e[o],t,n,i,r);else{var a=tn(),s=en(),l=Ra(e)?e:Ee(e.provide),u=Ma(e),c=rn(),d=1048575&c.providerIndexes,h=c.directiveStart,f=c.providerIndexes>>20;if(Ra(e)||!e.multi){var p=new Vn(u,r,rs),g=pl(l,t,r?d:d+f,h);-1===g?(ei(Xn(c,s),a,l),hl(a,e,t.length),t.push(l),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),n.push(p),s.push(p)):(n[g]=p,s[g]=p)}else{var v=pl(l,t,d+f,h),m=pl(l,t,d,d+f),y=v>=0&&n[v],b=m>=0&&n[m];if(r&&!b||!r&&!y){ei(Xn(c,s),a,l);var w=function(e,t,n,i,r){var o=new Vn(e,n,rs);return o.multi=[],o.index=t,o.componentProviders=0,fl(o,r,i&&!n),o}(r?vl:gl,n.length,r,i,u);!r&&b&&(n[m].providerFactory=w),hl(a,e,t.length,0),t.push(l),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),n.push(w),s.push(w)}else hl(a,e,v>-1?v:m,fl(n[r?m:v],u,!r&&i));!r&&i&&b&&n[m].componentProviders++}}}function hl(e,t,n,i){var r=Ra(t);if(r||t.useClass){var o=(t.useClass||t).prototype.ngOnDestroy;if(o){var a=e.destroyHooks||(e.destroyHooks=[]);if(!r&&t.multi){var s=a.indexOf(n);-1===s?a.push(n,[i,o]):a[s+1].push(i,o)}else a.push(n,o)}}}function fl(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function pl(e,t,n,i){for(var r=n;r<i;r++)if(t[r]===e)return r;return-1}function gl(e,t,n,i){return ml(this.multi,[])}function vl(e,t,n,i){var r,o=this.multi;if(this.providerFactory){var a=this.providerFactory.componentProviders,s=li(n,n[1],this.providerFactory.index,i);ml(o,r=s.slice(0,a));for(var l=a;l<s.length;l++)r.push(s[l])}else ml(o,r=[]);return r}function ml(e,t){for(var n=0;n<e.length;n++)t.push((0,e[n])());return t}function yl(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return function(n){n.providersResolver=function(n,i){return function(e,t,n){var i=tn();if(i.firstCreatePass){var r=Et(e);dl(n,i.data,i.blueprint,r,!0),dl(t,i.data,i.blueprint,r,!1)}}(n,i?i(e):e,t)}}}var bl=function e(){A(this,e)},wl=function(){function e(){A(this,e)}return m(e,[{key:"resolveComponentFactory",value:function(e){throw function(e){var t=Error("No component factory found for ".concat(Ae(e),". Did you add it to @NgModule.entryComponents?"));return t.ngComponent=e,t}(e)}}]),e}(),_l=function(){var e=function e(){A(this,e)};return e.NULL=new wl,e}();function kl(){}function xl(e,t){return new Cl(jt(e,t))}var Al=function(){return xl(rn(),en())},Cl=function(){var e=function e(t){A(this,e),this.nativeElement=t};return e.__NG_ELEMENT_ID__=Al,e}();function Sl(e){return e instanceof Cl?e.nativeElement:e}var Pl=function e(){A(this,e)},El=function(){var e=function e(){A(this,e)};return e.__NG_ELEMENT_ID__=function(){return Dl()},e}(),Dl=function(){var e=en(),t=Gt(rn().index,e);return function(e){return e[11]}(xt(t)?t:e)},Ol=function(){var e=function e(){A(this,e)};return e.\u0275prov=Re({token:e,providedIn:"root",factory:function(){return null}}),e}(),Ml=function e(t){A(this,e),this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")},Tl=new Ml("11.2.6"),Il=function(){function e(){A(this,e)}return m(e,[{key:"supports",value:function(e){return qa(e)}},{key:"create",value:function(e){return new Ll(e)}}]),e}(),Rl=function(e,t){return t},Ll=function(){function e(t){A(this,e),this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||Rl}return m(e,[{key:"forEachItem",value:function(e){var t;for(t=this._itHead;null!==t;t=t._next)e(t)}},{key:"forEachOperation",value:function(e){for(var t=this._itHead,n=this._removalsHead,i=0,r=null;t||n;){var o=!n||t&&t.currentIndex<zl(n,i,r)?t:n,a=zl(o,i,r),s=o.currentIndex;if(o===n)i--,n=n._nextRemoved;else if(t=t._next,null==o.previousIndex)i++;else{r||(r=[]);var l=a-i,u=s-i;if(l!=u){for(var c=0;c<l;c++){var d=c<r.length?r[c]:r[c]=0,h=d+c;u<=h&&h<l&&(r[c]=d+1)}r[o.previousIndex]=u-l}}a!==s&&e(o,a,s)}}},{key:"forEachPreviousItem",value:function(e){var t;for(t=this._previousItHead;null!==t;t=t._nextPrevious)e(t)}},{key:"forEachAddedItem",value:function(e){var t;for(t=this._additionsHead;null!==t;t=t._nextAdded)e(t)}},{key:"forEachMovedItem",value:function(e){var t;for(t=this._movesHead;null!==t;t=t._nextMoved)e(t)}},{key:"forEachRemovedItem",value:function(e){var t;for(t=this._removalsHead;null!==t;t=t._nextRemoved)e(t)}},{key:"forEachIdentityChange",value:function(e){var t;for(t=this._identityChangesHead;null!==t;t=t._nextIdentityChange)e(t)}},{key:"diff",value:function(e){if(null==e&&(e=[]),!qa(e))throw new Error("Error trying to diff '".concat(Ae(e),"'. Only arrays and iterables are allowed"));return this.check(e)?this:null}},{key:"onDestroy",value:function(){}},{key:"check",value:function(e){var t=this;this._reset();var n,i,r,o=this._itHead,a=!1;if(Array.isArray(e)){this.length=e.length;for(var s=0;s<this.length;s++)i=e[s],r=this._trackByFn(s,i),null!==o&&Object.is(o.trackById,r)?(a&&(o=this._verifyReinsertion(o,i,r,s)),Object.is(o.item,i)||this._addIdentityChange(o,i)):(o=this._mismatch(o,i,r,s),a=!0),o=o._next}else n=0,function(e,t){if(Array.isArray(e))for(var n=0;n<e.length;n++)t(e[n]);else for(var i,r=e[Wa()]();!(i=r.next()).done;)t(i.value)}(e,function(e){r=t._trackByFn(n,e),null!==o&&Object.is(o.trackById,r)?(a&&(o=t._verifyReinsertion(o,e,r,n)),Object.is(o.item,e)||t._addIdentityChange(o,e)):(o=t._mismatch(o,e,r,n),a=!0),o=o._next,n++}),this.length=n;return this._truncate(o),this.collection=e,this.isDirty}},{key:"isDirty",get:function(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}},{key:"_reset",value:function(){if(this.isDirty){var e;for(e=this._previousItHead=this._itHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._additionsHead;null!==e;e=e._nextAdded)e.previousIndex=e.currentIndex;for(this._additionsHead=this._additionsTail=null,e=this._movesHead;null!==e;e=e._nextMoved)e.previousIndex=e.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}},{key:"_mismatch",value:function(e,t,n,i){var r;return null===e?r=this._itTail:(r=e._prev,this._remove(e)),null!==(e=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(Object.is(e.item,t)||this._addIdentityChange(e,t),this._reinsertAfter(e,r,i)):null!==(e=null===this._linkedRecords?null:this._linkedRecords.get(n,i))?(Object.is(e.item,t)||this._addIdentityChange(e,t),this._moveAfter(e,r,i)):e=this._addAfter(new Fl(t,n),r,i),e}},{key:"_verifyReinsertion",value:function(e,t,n,i){var r=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==r?e=this._reinsertAfter(r,e._prev,i):e.currentIndex!=i&&(e.currentIndex=i,this._addToMoves(e,i)),e}},{key:"_truncate",value:function(e){for(;null!==e;){var t=e._next;this._addToRemovals(this._unlink(e)),e=t}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}},{key:"_reinsertAfter",value:function(e,t,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(e);var i=e._prevRemoved,r=e._nextRemoved;return null===i?this._removalsHead=r:i._nextRemoved=r,null===r?this._removalsTail=i:r._prevRemoved=i,this._insertAfter(e,t,n),this._addToMoves(e,n),e}},{key:"_moveAfter",value:function(e,t,n){return this._unlink(e),this._insertAfter(e,t,n),this._addToMoves(e,n),e}},{key:"_addAfter",value:function(e,t,n){return this._insertAfter(e,t,n),this._additionsTail=null===this._additionsTail?this._additionsHead=e:this._additionsTail._nextAdded=e,e}},{key:"_insertAfter",value:function(e,t,n){var i=null===t?this._itHead:t._next;return e._next=i,e._prev=t,null===i?this._itTail=e:i._prev=e,null===t?this._itHead=e:t._next=e,null===this._linkedRecords&&(this._linkedRecords=new Vl),this._linkedRecords.put(e),e.currentIndex=n,e}},{key:"_remove",value:function(e){return this._addToRemovals(this._unlink(e))}},{key:"_unlink",value:function(e){null!==this._linkedRecords&&this._linkedRecords.remove(e);var t=e._prev,n=e._next;return null===t?this._itHead=n:t._next=n,null===n?this._itTail=t:n._prev=t,e}},{key:"_addToMoves",value:function(e,t){return e.previousIndex===t||(this._movesTail=null===this._movesTail?this._movesHead=e:this._movesTail._nextMoved=e),e}},{key:"_addToRemovals",value:function(e){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Vl),this._unlinkedRecords.put(e),e.currentIndex=null,e._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=e,e._prevRemoved=null):(e._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=e),e}},{key:"_addIdentityChange",value:function(e,t){return e.item=t,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=e:this._identityChangesTail._nextIdentityChange=e,e}}]),e}(),Fl=function e(t,n){A(this,e),this.item=t,this.trackById=n,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null},Bl=function(){function e(){A(this,e),this._head=null,this._tail=null}return m(e,[{key:"add",value:function(e){null===this._head?(this._head=this._tail=e,e._nextDup=null,e._prevDup=null):(this._tail._nextDup=e,e._prevDup=this._tail,e._nextDup=null,this._tail=e)}},{key:"get",value:function(e,t){var n;for(n=this._head;null!==n;n=n._nextDup)if((null===t||t<=n.currentIndex)&&Object.is(n.trackById,e))return n;return null}},{key:"remove",value:function(e){var t=e._prevDup,n=e._nextDup;return null===t?this._head=n:t._nextDup=n,null===n?this._tail=t:n._prevDup=t,null===this._head}}]),e}(),Vl=function(){function e(){A(this,e),this.map=new Map}return m(e,[{key:"put",value:function(e){var t=e.trackById,n=this.map.get(t);n||(n=new Bl,this.map.set(t,n)),n.add(e)}},{key:"get",value:function(e,t){var n=this.map.get(e);return n?n.get(e,t):null}},{key:"remove",value:function(e){var t=e.trackById;return this.map.get(t).remove(e)&&this.map.delete(t),e}},{key:"isEmpty",get:function(){return 0===this.map.size}},{key:"clear",value:function(){this.map.clear()}}]),e}();function zl(e,t,n){var i=e.previousIndex;if(null===i)return i;var r=0;return n&&i<n.length&&(r=n[i]),i+t+r}var Nl=function(){function e(){A(this,e)}return m(e,[{key:"supports",value:function(e){return e instanceof Map||Ya(e)}},{key:"create",value:function(){return new Hl}}]),e}(),Hl=function(){function e(){A(this,e),this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}return m(e,[{key:"isDirty",get:function(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}},{key:"forEachItem",value:function(e){var t;for(t=this._mapHead;null!==t;t=t._next)e(t)}},{key:"forEachPreviousItem",value:function(e){var t;for(t=this._previousMapHead;null!==t;t=t._nextPrevious)e(t)}},{key:"forEachChangedItem",value:function(e){var t;for(t=this._changesHead;null!==t;t=t._nextChanged)e(t)}},{key:"forEachAddedItem",value:function(e){var t;for(t=this._additionsHead;null!==t;t=t._nextAdded)e(t)}},{key:"forEachRemovedItem",value:function(e){var t;for(t=this._removalsHead;null!==t;t=t._nextRemoved)e(t)}},{key:"diff",value:function(e){if(e){if(!(e instanceof Map||Ya(e)))throw new Error("Error trying to diff '".concat(Ae(e),"'. Only maps and objects are allowed"))}else e=new Map;return this.check(e)?this:null}},{key:"onDestroy",value:function(){}},{key:"check",value:function(e){var t=this;this._reset();var n=this._mapHead;if(this._appendAfter=null,this._forEach(e,function(e,i){if(n&&n.key===i)t._maybeAddToChanges(n,e),t._appendAfter=n,n=n._next;else{var r=t._getOrCreateRecordForKey(i,e);n=t._insertBeforeOrAppend(n,r)}}),n){n._prev&&(n._prev._next=null),this._removalsHead=n;for(var i=n;null!==i;i=i._nextRemoved)i===this._mapHead&&(this._mapHead=null),this._records.delete(i.key),i._nextRemoved=i._next,i.previousValue=i.currentValue,i.currentValue=null,i._prev=null,i._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}},{key:"_insertBeforeOrAppend",value:function(e,t){if(e){var n=e._prev;return t._next=e,t._prev=n,e._prev=t,n&&(n._next=t),e===this._mapHead&&(this._mapHead=t),this._appendAfter=e,e}return this._appendAfter?(this._appendAfter._next=t,t._prev=this._appendAfter):this._mapHead=t,this._appendAfter=t,null}},{key:"_getOrCreateRecordForKey",value:function(e,t){if(this._records.has(e)){var n=this._records.get(e);this._maybeAddToChanges(n,t);var i=n._prev,r=n._next;return i&&(i._next=r),r&&(r._prev=i),n._next=null,n._prev=null,n}var o=new jl(e);return this._records.set(e,o),o.currentValue=t,this._addToAdditions(o),o}},{key:"_reset",value:function(){if(this.isDirty){var e;for(this._previousMapHead=this._mapHead,e=this._previousMapHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._changesHead;null!==e;e=e._nextChanged)e.previousValue=e.currentValue;for(e=this._additionsHead;null!=e;e=e._nextAdded)e.previousValue=e.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}},{key:"_maybeAddToChanges",value:function(e,t){Object.is(t,e.currentValue)||(e.previousValue=e.currentValue,e.currentValue=t,this._addToChanges(e))}},{key:"_addToAdditions",value:function(e){null===this._additionsHead?this._additionsHead=this._additionsTail=e:(this._additionsTail._nextAdded=e,this._additionsTail=e)}},{key:"_addToChanges",value:function(e){null===this._changesHead?this._changesHead=this._changesTail=e:(this._changesTail._nextChanged=e,this._changesTail=e)}},{key:"_forEach",value:function(e,t){e instanceof Map?e.forEach(t):Object.keys(e).forEach(function(n){return t(e[n],n)})}}]),e}(),jl=function e(t){A(this,e),this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null};function Ul(){return new Wl([new Il])}var Wl=function(){var e=function(){function e(t){A(this,e),this.factories=t}return m(e,[{key:"find",value:function(e){var t,n=this.factories.find(function(t){return t.supports(e)});if(null!=n)return n;throw new Error("Cannot find a differ supporting object '".concat(e,"' of type '").concat((t=e).name||typeof t,"'"))}}],[{key:"create",value:function(t,n){if(null!=n){var i=n.factories.slice();t=t.concat(i)}return new e(t)}},{key:"extend",value:function(t){return{provide:e,useFactory:function(n){return e.create(t,n||Ul())},deps:[[e,new ji,new Hi]]}}}]),e}();return e.\u0275prov=Re({token:e,providedIn:"root",factory:Ul}),e}();function Gl(){return new ql([new Nl])}var ql=function(){var e=function(){function e(t){A(this,e),this.factories=t}return m(e,[{key:"find",value:function(e){var t=this.factories.find(function(t){return t.supports(e)});if(t)return t;throw new Error("Cannot find a differ supporting object '".concat(e,"'"))}}],[{key:"create",value:function(t,n){if(n){var i=n.factories.slice();t=t.concat(i)}return new e(t)}},{key:"extend",value:function(t){return{provide:e,useFactory:function(n){return e.create(t,n||Gl())},deps:[[e,new ji,new Hi]]}}}]),e}();return e.\u0275prov=Re({token:e,providedIn:"root",factory:Gl}),e}();function Yl(e,t,n,i){for(var r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];null!==n;){var o=t[n.index];if(null!==o&&i.push(Nt(o)),At(o))for(var a=10;a<o.length;a++){var s=o[a],l=s[1].firstChild;null!==l&&Yl(s[1],s,l,i)}var u=n.type;if(8&u)Yl(e,t,n.child,i);else if(32&u)for(var c=Br(n,t),d=void 0;d=c();)i.push(d);else if(16&u){var h=io(t,n);if(Array.isArray(h))i.push.apply(i,y(h));else{var f=Vr(t[16]);Yl(f[1],f,h,i,!0)}}n=r?n.projectionNext:n.next}return i}var Zl=function(){function e(t,n){A(this,e),this._lView=t,this._cdRefInjectingView=n,this._appRef=null,this._attachedToViewContainer=!1}return m(e,[{key:"rootNodes",get:function(){var e=this._lView,t=e[1];return Yl(t,e,t.firstChild,[])}},{key:"context",get:function(){return this._lView[8]}},{key:"destroyed",get:function(){return 256==(256&this._lView[2])}},{key:"destroy",value:function(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){var e=this._lView[3];if(At(e)){var t=e[8],n=t?t.indexOf(this):-1;n>-1&&(Gr(e,n),xi(t,n))}this._attachedToViewContainer=!1}qr(this._lView[1],this._lView)}},{key:"onDestroy",value:function(e){Wo(this._lView[1],this._lView,null,e)}},{key:"markForCheck",value:function(){la(this._cdRefInjectingView||this._lView)}},{key:"detach",value:function(){this._lView[2]&=-129}},{key:"reattach",value:function(){this._lView[2]|=128}},{key:"detectChanges",value:function(){ua(this._lView[1],this._lView,this.context)}},{key:"checkNoChanges",value:function(){!function(e,t,n){cn(!0);try{ua(e,t,n)}finally{cn(!1)}}(this._lView[1],this._lView,this.context)}},{key:"attachToViewContainerRef",value:function(){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._attachedToViewContainer=!0}},{key:"detachFromAppRef",value:function(){var e;this._appRef=null,ao(this._lView[1],e=this._lView,e[11],2,null,null)}},{key:"attachToAppRef",value:function(e){if(this._attachedToViewContainer)throw new Error("This view is already attached to a ViewContainer!");this._appRef=e}}]),e}(),Ql=function(e){r(n,e);var t=a(n);function n(e){var i;return A(this,n),(i=t.call(this,e))._view=e,i}return m(n,[{key:"detectChanges",value:function(){ca(this._view)}},{key:"checkNoChanges",value:function(){!function(e){cn(!0);try{ca(e)}finally{cn(!1)}}(this._view)}},{key:"context",get:function(){return null}}]),n}(Zl),Xl=Jl,Kl=function(){var e=function e(){A(this,e)};return e.__NG_ELEMENT_ID__=Xl,e.__ChangeDetectorRef__=!0,e}();function Jl(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return function(e,t,n){if(!n&&St(e)){var i=Gt(e.index,t);return new Zl(i,i)}return 47&e.type?new Zl(t[16],t):null}(rn(),en(),e)}var $l=[new Nl],eu=new Wl([new Il]),tu=new ql($l),nu=function(){return ou(rn(),en())},iu=function(){var e=function e(){A(this,e)};return e.__NG_ELEMENT_ID__=nu,e}(),ru=function(e){r(n,e);var t=a(n);function n(e,i,r){var o;return A(this,n),(o=t.call(this))._declarationLView=e,o._declarationTContainer=i,o.elementRef=r,o}return m(n,[{key:"createEmbeddedView",value:function(e){var t=this._declarationTContainer.tViews,n=To(this._declarationLView,t,e,16,null,t.declTNode,null,null,null,null);n[17]=this._declarationLView[this._declarationTContainer.index];var i=this._declarationLView[19];return null!==i&&(n[19]=i.createEmbeddedView(t)),Lo(t,n,e),new Zl(n)}}]),n}(iu);function ou(e,t){return 4&e.type?new ru(t,e,xl(e,t)):null}var au=function e(){A(this,e)},su=function e(){A(this,e)},lu=function(){return fu(rn(),en())},uu=function(){var e=function e(){A(this,e)};return e.__NG_ELEMENT_ID__=lu,e}(),cu=function(e){r(n,e);var t=a(n);function n(e,i,r){var o;return A(this,n),(o=t.call(this))._lContainer=e,o._hostTNode=i,o._hostLView=r,o}return m(n,[{key:"element",get:function(){return xl(this._hostTNode,this._hostLView)}},{key:"injector",get:function(){return new di(this._hostTNode,this._hostLView)}},{key:"parentInjector",get:function(){var e=$n(this._hostTNode,this._hostLView);if(Wn(e)){var t=qn(e,this._hostLView),n=Gn(e);return new di(t[1].data[n+8],t)}return new di(null,this._hostLView)}},{key:"clear",value:function(){for(;this.length>0;)this.remove(this.length-1)}},{key:"get",value:function(e){var t=du(this._lContainer);return null!==t&&t[e]||null}},{key:"length",get:function(){return this._lContainer.length-10}},{key:"createEmbeddedView",value:function(e,t,n){var i=e.createEmbeddedView(t||{});return this.insert(i,n),i}},{key:"createComponent",value:function(e,t,n,i,r){var o=n||this.parentInjector;if(!r&&null==e.ngModule&&o){var a=o.get(au,null);a&&(r=a)}var s=e.create(o,i,void 0,r);return this.insert(s.hostView,t),s}},{key:"insert",value:function(e,t){var i=e._lView,r=i[1];if(At(i[3])){var o=this.indexOf(e);if(-1!==o)this.detach(o);else{var a=i[3],s=new n(a,a[6],a[3]);s.detach(s.indexOf(e))}}var l=this._adjustIndex(t),u=this._lContainer;!function(e,t,n,i){var r=10+i,o=n.length;i>0&&(n[r-1][4]=t),i<o-10?(t[4]=n[r],ki(n,10+i,t)):(n.push(t),t[4]=null),t[3]=n;var a=t[17];null!==a&&n!==a&&function(e,t){var n=e[9];t[16]!==t[3][3][16]&&(e[2]=!0),null===n?e[9]=[t]:n.push(t)}(a,t);var s=t[19];null!==s&&s.insertView(e),t[2]|=128}(r,i,u,l);var c=ro(l,u),d=i[11],h=Jr(d,u[7]);return null!==h&&function(e,t,n,i,r,o){i[0]=r,i[6]=t,ao(e,i,n,1,r,o)}(r,u[6],d,i,h,c),e.attachToViewContainerRef(),ki(hu(u),l,e),e}},{key:"move",value:function(e,t){return this.insert(e,t)}},{key:"indexOf",value:function(e){var t=du(this._lContainer);return null!==t?t.indexOf(e):-1}},{key:"remove",value:function(e){var t=this._adjustIndex(e,-1),n=Gr(this._lContainer,t);n&&(xi(hu(this._lContainer),t),qr(n[1],n))}},{key:"detach",value:function(e){var t=this._adjustIndex(e,-1),n=Gr(this._lContainer,t);return n&&null!=xi(hu(this._lContainer),t)?new Zl(n):null}},{key:"_adjustIndex",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return null==e?this.length+t:e}}]),n}(uu);function du(e){return e[8]}function hu(e){return e[8]||(e[8]=[])}function fu(e,t){var n,i=t[e.index];if(At(i))n=i;else{var r;if(8&e.type)r=Nt(i);else{var o=t[11];r=o.createComment("");var a=jt(e,t);Qr(o,Jr(o,a),r,function(e,t){return Vt(e)?e.nextSibling(t):t.nextSibling}(o,a),!1)}t[e.index]=n=ia(i,t,r,e),sa(t,n)}return new cu(n,e,t)}var pu={},gu=function(e){r(n,e);var t=a(n);function n(e){var i;return A(this,n),(i=t.call(this)).ngModule=e,i}return m(n,[{key:"resolveComponentFactory",value:function(e){var t=_t(e);return new yu(t,this.ngModule)}}]),n}(_l);function vu(e){var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push({propName:e[n],templateName:n});return t}var mu=new mi("SCHEDULER_TOKEN",{providedIn:"root",factory:function(){return Tr}}),yu=function(e){r(n,e);var t=a(n);function n(e,i){var r;return A(this,n),(r=t.call(this)).componentDef=e,r.ngModule=i,r.componentType=e.type,r.selector=e.selectors.map(_o).join(","),r.ngContentSelectors=e.ngContentSelectors?e.ngContentSelectors:[],r.isBoundToModule=!!i,r}return m(n,[{key:"inputs",get:function(){return vu(this.componentDef.inputs)}},{key:"outputs",get:function(){return vu(this.componentDef.outputs)}},{key:"create",value:function(e,t,n,i){var r,o,a=(i=i||this.ngModule)?function(e,t){return{get:function(n,i,r){var o=e.get(n,pu,r);return o!==pu||i===pu?o:t.get(n,i,r)}}}(e,i.injector):e,s=a.get(Pl,zt),l=a.get(Ol,null),u=s.createRenderer(null,this.componentDef),c=this.componentDef.selectors[0][0]||"div",d=n?function(e,t,n){if(Vt(e))return e.selectRootElement(t,n===Xe.ShadowDom);var i="string"==typeof t?e.querySelector(t):t;return i.textContent="",i}(u,n,this.componentDef.encapsulation):Ur(s.createRenderer(null,this.componentDef),c,function(e){var t=e.toLowerCase();return"svg"===t?"http://www.w3.org/2000/svg":"math"===t?"http://www.w3.org/1998/MathML/":null}(c)),h=this.componentDef.onPush?576:528,f={components:[],scheduler:Tr,clean:ha,playerHandler:null,flags:0},p=Uo(0,null,null,1,0,null,null,null,null,null),g=To(null,p,f,h,null,null,s,u,l,a);_n(g);try{var v=function(e,t,n,i,r,o){var a=n[1];n[20]=e;var s=Io(a,20,2,"#host",null),l=s.mergedAttrs=t.hostAttrs;null!==l&&(ba(s,l,!0),null!==e&&(zn(r,e,l),null!==s.classes&&uo(r,e,s.classes),null!==s.styles&&lo(r,e,s.styles)));var u=i.createRenderer(e,t),c=To(n,jo(t),null,t.onPush?64:16,n[20],s,i,u,null,null);return a.firstCreatePass&&(ei(Xn(s,n),a,t.type),Xo(a,s),Jo(s,n.length,1)),sa(n,c),n[20]=c}(d,this.componentDef,g,s,u);if(d)if(n)zn(u,d,["ng-version",Tl.full]);else{var m=function(e){for(var t=[],n=[],i=1,r=2;i<e.length;){var o=e[i];if("string"==typeof o)2===r?""!==o&&t.push(o,e[++i]):8===r&&n.push(o);else{if(!vo(r))break;r=o}i++}return{attrs:t,classes:n}}(this.componentDef.selectors[0]),y=m.attrs,b=m.classes;y&&zn(u,d,y),b&&b.length>0&&uo(u,d,b.join(" "))}if(o=Ut(p,20),void 0!==t)for(var w=o.projection=[],_=0;_<this.ngContentSelectors.length;_++){var k=t[_];w.push(null!=k?Array.from(k):null)}r=function(e,t,n,i,r){var o=n[1],a=function(e,t,n){var i=rn();e.firstCreatePass&&(n.providersResolver&&n.providersResolver(n),$o(e,i,t,Ro(e,t,1,null),n));var r=li(t,e,i.directiveStart,i);Mr(r,t);var o=jt(i,t);return o&&Mr(o,t),r}(o,n,t);if(i.components.push(a),e[8]=a,r&&r.forEach(function(e){return e(a,t)}),t.contentQueries){var s=rn();t.contentQueries(1,a,s.directiveStart)}var l=rn();return!o.firstCreatePass||null===t.hostBindings&&null===t.hostAttrs||(En(l.index),Zo(n[1],l,0,l.directiveStart,l.directiveEnd,t),Qo(t,a)),a}(v,this.componentDef,g,f,[Ba]),Lo(p,g,null)}finally{Sn()}return new bu(this.componentType,r,xl(o,g),g,o)}}]),n}(bl),bu=function(e){r(n,e);var t=a(n);function n(e,i,r,o,a){var s;return A(this,n),(s=t.call(this)).location=r,s._rootLView=o,s._tNode=a,s.instance=i,s.hostView=s.changeDetectorRef=new Ql(o),s.componentType=e,s}return m(n,[{key:"injector",get:function(){return new di(this._tNode,this._rootLView)}},{key:"destroy",value:function(){this.hostView.destroy()}},{key:"onDestroy",value:function(e){this.hostView.onDestroy(e)}}]),n}(function(){return function e(){A(this,e)}}()),wu=new Map,_u=function(e){r(n,e);var t=a(n);function n(e,i){var r;A(this,n),(r=t.call(this))._parent=i,r._bootstrapComponents=[],r.injector=l(r),r.destroyCbs=[],r.componentFactoryResolver=new gu(l(r));var o=kt(e),a=e[ut]||null;return a&&cl(a),r._bootstrapComponents=Lr(o.bootstrap),r._r3Injector=Ea(e,i,[{provide:au,useValue:l(r)},{provide:_l,useValue:r.componentFactoryResolver}],Ae(e)),r._r3Injector._resolveInjectorDefTypes(),r.instance=r.get(e),r}return m(n,[{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Fa.THROW_IF_NOT_FOUND,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Ge.Default;return e===Fa||e===au||e===wa?this:this._r3Injector.get(e,t,n)}},{key:"destroy",value:function(){var e=this._r3Injector;!e.destroyed&&e.destroy(),this.destroyCbs.forEach(function(e){return e()}),this.destroyCbs=null}},{key:"onDestroy",value:function(e){this.destroyCbs.push(e)}}]),n}(au),ku=function(e){r(n,e);var t=a(n);function n(e){var i,r,o;return A(this,n),(i=t.call(this)).moduleType=e,null!==kt(e)&&(r=e,o=new Set,function e(t){var n=kt(t,!0),i=n.id;null!==i&&(function(e,t,n){if(t&&t!==n)throw new Error("Duplicate module registered for ".concat(e," - ").concat(Ae(t)," vs ").concat(Ae(t.name)))}(i,wu.get(i),t),wu.set(i,t));var r,a=h(Lr(n.imports));try{for(a.s();!(r=a.n()).done;){var s=r.value;o.has(s)||(o.add(s),e(s))}}catch(l){a.e(l)}finally{a.f()}}(r)),i}return m(n,[{key:"create",value:function(e){return new _u(this.moduleType,e)}}]),n}(su);function xu(e,t,n){var i=dn()+e,r=en();return r[i]===ko?Za(r,i,n?t.call(n):t()):function(e,t){return e[t]}(r,i)}function Au(e,t,n,i){return Pu(en(),dn(),e,t,n,i)}function Cu(e,t,n,i,r){return Eu(en(),dn(),e,t,n,i,r)}function Su(e,t){var n=e[t];return n===ko?void 0:n}function Pu(e,t,n,i,r,o){var a=t+n;return Qa(e,a,r)?Za(e,a+1,o?i.call(o,r):i(r)):Su(e,a+1)}function Eu(e,t,n,i,r,o,a){var s=t+n;return Xa(e,s,r,o)?Za(e,s+2,a?i.call(a,r,o):i(r,o)):Su(e,s+2)}function Du(e,t){var n,i=tn(),r=e+20;i.firstCreatePass?(n=function(e,t){if(t)for(var n=t.length-1;n>=0;n--){var i=t[n];if(e===i.name)return i}throw new Oe("302","The pipe '".concat(e,"' could not be found!"))}(t,i.pipeRegistry),i.data[r]=n,n.onDestroy&&(i.destroyHooks||(i.destroyHooks=[])).push(r,n.onDestroy)):n=i.data[r];var o=n.factory||(n.factory=Dt(n.type)),a=qe(rs);try{var s=Zn(!1),l=o();return Zn(s),function(e,t,n,i){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=i}(i,en(),r,l),l}finally{qe(a)}}function Ou(e,t,n){var i=e+20,r=en(),o=Wt(r,i);return Lu(r,Ru(r,i)?Pu(r,dn(),t,o.transform,n,o):o.transform(n))}function Mu(e,t,n,i){var r=e+20,o=en(),a=Wt(o,r);return Lu(o,Ru(o,r)?Eu(o,dn(),t,a.transform,n,i,a):a.transform(n,i))}function Tu(e,t,n,i,r){var o=e+20,a=en(),s=Wt(a,o);return Lu(a,Ru(a,o)?function(e,t,n,i,r,o,a,s){var l=t+n;return Ka(e,l,r,o,a)?Za(e,l+3,s?i.call(s,r,o,a):i(r,o,a)):Su(e,l+3)}(a,dn(),t,s.transform,n,i,r,s):s.transform(n,i,r))}function Iu(e,t,n,i,r,o){var a=e+20,s=en(),l=Wt(s,a);return Lu(s,Ru(s,a)?function(e,t,n,i,r,o,a,s,l){var u=t+n;return Ja(e,u,r,o,a,s)?Za(e,u+4,l?i.call(l,r,o,a,s):i(r,o,a,s)):Su(e,u+4)}(s,dn(),t,l.transform,n,i,r,o,l):l.transform(n,i,r,o))}function Ru(e,t){return e[1].data[t].pure}function Lu(e,t){return Ga.isWrapped(t)&&(t=Ga.unwrap(t),e[hn()]=ko),t}var Fu=function(e){r(n,e);var t=a(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return A(this,n),(e=t.call(this)).__isAsync=i,e}return m(n,[{key:"emit",value:function(e){i(c(n.prototype),"next",this).call(this,e)}},{key:"subscribe",value:function(e,t,r){var o,a=function(e){return null},s=function(){return null};e&&"object"==typeof e?(o=this.__isAsync?function(t){setTimeout(function(){return e.next(t)})}:function(t){e.next(t)},e.error&&(a=this.__isAsync?function(t){setTimeout(function(){return e.error(t)})}:function(t){e.error(t)}),e.complete&&(s=this.__isAsync?function(){setTimeout(function(){return e.complete()})}:function(){e.complete()})):(o=this.__isAsync?function(t){setTimeout(function(){return e(t)})}:function(t){e(t)},t&&(a=this.__isAsync?function(e){setTimeout(function(){return t(e)})}:function(e){t(e)}),r&&(s=this.__isAsync?function(){setTimeout(function(){return r()})}:function(){r()}));var l=i(c(n.prototype),"subscribe",this).call(this,o,a,s);return e instanceof O&&e.add(l),l}}]),n}(W);function Bu(){return this._results[Wa()]()}var Vu=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];A(this,e),this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;var n=Wa(),i=e.prototype;i[n]||(i[n]=Bu)}return m(e,[{key:"changes",get:function(){return this._changes||(this._changes=new Fu)}},{key:"get",value:function(e){return this._results[e]}},{key:"map",value:function(e){return this._results.map(e)}},{key:"filter",value:function(e){return this._results.filter(e)}},{key:"find",value:function(e){return this._results.find(e)}},{key:"reduce",value:function(e,t){return this._results.reduce(e,t)}},{key:"forEach",value:function(e){this._results.forEach(e)}},{key:"some",value:function(e){return this._results.some(e)}},{key:"toArray",value:function(){return this._results.slice()}},{key:"toString",value:function(){return this._results.toString()}},{key:"reset",value:function(e,t){this.dirty=!1;var n=wi(e);(this._changesDetected=!function(e,t,n){if(e.length!==t.length)return!1;for(var i=0;i<e.length;i++){var r=e[i],o=t[i];if(n&&(r=n(r),o=n(o)),o!==r)return!1}return!0}(this._results,n,t))&&(this._results=n,this.length=n.length,this.last=n[this.length-1],this.first=n[0])}},{key:"notifyOnChanges",value:function(){!this._changes||!this._changesDetected&&this._emitDistinctChangesOnly||this._changes.emit(this)}},{key:"setDirty",value:function(){this.dirty=!0}},{key:"destroy",value:function(){this.changes.complete(),this.changes.unsubscribe()}}]),e}(),zu=function(){function e(t){A(this,e),this.queryList=t,this.matches=null}return m(e,[{key:"clone",value:function(){return new e(this.queryList)}},{key:"setDirty",value:function(){this.queryList.setDirty()}}]),e}(),Nu=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];A(this,e),this.queries=t}return m(e,[{key:"createEmbeddedView",value:function(t){var n=t.queries;if(null!==n){for(var i=null!==t.contentQueries?t.contentQueries[0]:n.length,r=[],o=0;o<i;o++){var a=n.getByIndex(o);r.push(this.queries[a.indexInDeclarationView].clone())}return new e(r)}return null}},{key:"insertView",value:function(e){this.dirtyQueriesWithMatches(e)}},{key:"detachView",value:function(e){this.dirtyQueriesWithMatches(e)}},{key:"dirtyQueriesWithMatches",value:function(e){for(var t=0;t<this.queries.length;t++)null!==ec(e,t).matches&&this.queries[t].setDirty()}}]),e}(),Hu=function e(t,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;A(this,e),this.predicate=t,this.flags=n,this.read=i},ju=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];A(this,e),this.queries=t}return m(e,[{key:"elementStart",value:function(e,t){for(var n=0;n<this.queries.length;n++)this.queries[n].elementStart(e,t)}},{key:"elementEnd",value:function(e){for(var t=0;t<this.queries.length;t++)this.queries[t].elementEnd(e)}},{key:"embeddedTView",value:function(t){for(var n=null,i=0;i<this.length;i++){var r=null!==n?n.length:0,o=this.getByIndex(i).embeddedTView(t,r);o&&(o.indexInDeclarationView=i,null!==n?n.push(o):n=[o])}return null!==n?new e(n):null}},{key:"template",value:function(e,t){for(var n=0;n<this.queries.length;n++)this.queries[n].template(e,t)}},{key:"getByIndex",value:function(e){return this.queries[e]}},{key:"length",get:function(){return this.queries.length}},{key:"track",value:function(e){this.queries.push(e)}}]),e}(),Uu=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;A(this,e),this.metadata=t,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=n}return m(e,[{key:"elementStart",value:function(e,t){this.isApplyingToNode(t)&&this.matchTNode(e,t)}},{key:"elementEnd",value:function(e){this._declarationNodeIndex===e.index&&(this._appliesToNextNode=!1)}},{key:"template",value:function(e,t){this.elementStart(e,t)}},{key:"embeddedTView",value:function(t,n){return this.isApplyingToNode(t)?(this.crossesNgTemplate=!0,this.addMatch(-t.index,n),new e(this.metadata)):null}},{key:"isApplyingToNode",value:function(e){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){for(var t=this._declarationNodeIndex,n=e.parent;null!==n&&8&n.type&&n.index!==t;)n=n.parent;return t===(null!==n?n.index:-1)}return this._appliesToNextNode}},{key:"matchTNode",value:function(e,t){var n=this.metadata.predicate;if(Array.isArray(n))for(var i=0;i<n.length;i++){var r=n[i];this.matchTNodeWithReadOption(e,t,Wu(t,r)),this.matchTNodeWithReadOption(e,t,si(t,e,r,!1,!1))}else n===iu?4&t.type&&this.matchTNodeWithReadOption(e,t,-1):this.matchTNodeWithReadOption(e,t,si(t,e,n,!1,!1))}},{key:"matchTNodeWithReadOption",value:function(e,t,n){if(null!==n){var i=this.metadata.read;if(null!==i)if(i===Cl||i===uu||i===iu&&4&t.type)this.addMatch(t.index,-2);else{var r=si(t,e,i,!1,!1);null!==r&&this.addMatch(t.index,r)}else this.addMatch(t.index,n)}}},{key:"addMatch",value:function(e,t){null===this.matches?this.matches=[e,t]:this.matches.push(e,t)}}]),e}();function Wu(e,t){var n=e.localNames;if(null!==n)for(var i=0;i<n.length;i+=2)if(n[i]===t)return n[i+1];return null}function Gu(e,t,n,i){return-1===n?function(e,t){return 11&e.type?xl(e,t):4&e.type?ou(e,t):null}(t,e):-2===n?function(e,t,n){return n===Cl?xl(t,e):n===iu?ou(t,e):n===uu?fu(t,e):void 0}(e,t,i):li(e,e[1],n,t)}function qu(e,t,n,i){var r=t[19].queries[i];if(null===r.matches){for(var o=e.data,a=n.matches,s=[],l=0;l<a.length;l+=2){var u=a[l];s.push(u<0?null:Gu(t,o[u],a[l+1],n.metadata.read))}r.matches=s}return r.matches}function Yu(e,t,n,i){var r=e.queries.getByIndex(n),o=r.matches;if(null!==o)for(var a=qu(e,t,r,n),s=0;s<o.length;s+=2){var l=o[s];if(l>0)i.push(a[s/2]);else{for(var u=o[s+1],c=t[-l],d=10;d<c.length;d++){var h=c[d];h[17]===h[3]&&Yu(h[1],h,u,i)}if(null!==c[9])for(var f=c[9],p=0;p<f.length;p++){var g=f[p];Yu(g[1],g,u,i)}}}return i}function Zu(e){var t=en(),n=tn(),i=mn();yn(i+1);var r=ec(n,i);if(e.dirty&&Yt(t)===(2==(2&r.metadata.flags))){if(null===r.matches)e.reset([]);else{var o=r.crossesNgTemplate?Yu(n,t,i,[]):qu(n,t,r,i);e.reset(o,Sl),e.notifyOnChanges()}return!0}return!1}function Qu(e,t,n){var i=tn();i.firstCreatePass&&($u(i,new Hu(e,t,n),-1),2==(2&t)&&(i.staticViewQueries=!0)),Ju(i,en(),t)}function Xu(e,t,n,i){var r=tn();if(r.firstCreatePass){var o=rn();$u(r,new Hu(t,n,i),o.index),function(e,t){var n=e.contentQueries||(e.contentQueries=[]);t!==(n.length?n[n.length-1]:-1)&&n.push(e.queries.length-1,t)}(r,e),2==(2&n)&&(r.staticContentQueries=!0)}Ju(r,en(),n)}function Ku(){return e=en(),t=mn(),e[19].queries[t].queryList;var e,t}function Ju(e,t,n){var i=new Vu(4==(4&n));Wo(e,t,i,i.destroy),null===t[19]&&(t[19]=new Nu),t[19].queries.push(new zu(i))}function $u(e,t,n){null===e.queries&&(e.queries=new ju),e.queries.track(new Uu(t,n))}function ec(e,t){return e.queries.getByIndex(t)}function tc(e,t){return ou(e,t)}function nc(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ge.Default,t=Jl(!0);if(null!=t||e&Ge.Optional)return t;Ie("ChangeDetectorRef")}var ic=new mi("Application Initializer"),rc=function(){var e=function(){function e(t){var n=this;A(this,e),this.appInits=t,this.resolve=kl,this.reject=kl,this.initialized=!1,this.done=!1,this.donePromise=new Promise(function(e,t){n.resolve=e,n.reject=t})}return m(e,[{key:"runInitializers",value:function(){var e=this;if(!this.initialized){var t=[],n=function(){e.done=!0,e.resolve()};if(this.appInits)for(var i=0;i<this.appInits.length;i++){var r=this.appInits[i]();ps(r)&&t.push(r)}Promise.all(t).then(function(){n()}).catch(function(t){e.reject(t)}),0===t.length&&n(),this.initialized=!0}}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ri(ic,8))},e.\u0275prov=Re({token:e,factory:e.\u0275fac}),e}(),oc=new mi("AppId"),ac={provide:oc,useFactory:function(){return"".concat(sc()).concat(sc()).concat(sc())},deps:[]};function sc(){return String.fromCharCode(97+Math.floor(25*Math.random()))}var lc=new mi("Platform Initializer"),uc=new mi("Platform ID"),cc=new mi("appBootstrapListener"),dc=function(){var e=function(){function e(){A(this,e)}return m(e,[{key:"log",value:function(e){console.log(e)}},{key:"warn",value:function(e){console.warn(e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Re({token:e,factory:e.\u0275fac}),e}(),hc=new mi("LocaleId"),fc=new mi("DefaultCurrencyCode"),pc=function e(t,n){A(this,e),this.ngModuleFactory=t,this.componentFactories=n},gc=function(e){return new ku(e)},vc=gc,mc=function(e){return Promise.resolve(gc(e))},yc=function(e){var t=gc(e),n=Lr(kt(e).declarations).reduce(function(e,t){var n=_t(t);return n&&e.push(new yu(n)),e},[]);return new pc(t,n)},bc=yc,wc=function(e){return Promise.resolve(yc(e))},_c=function(){var e=function(){function e(){A(this,e),this.compileModuleSync=vc,this.compileModuleAsync=mc,this.compileModuleAndAllComponentsSync=bc,this.compileModuleAndAllComponentsAsync=wc}return m(e,[{key:"clearCache",value:function(){}},{key:"clearCacheFor",value:function(e){}},{key:"getModuleId",value:function(e){}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Re({token:e,factory:e.\u0275fac}),e}(),kc=Promise.resolve(0);function xc(e){"undefined"==typeof Zone?kc.then(function(){e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}var Ac=function(){function e(t){var n,i,r=t.enableLongStackTrace,o=void 0!==r&&r,a=t.shouldCoalesceEventChangeDetection,s=void 0!==a&&a,l=t.shouldCoalesceRunChangeDetection,u=void 0!==l&&l;if(A(this,e),this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Fu(!1),this.onMicrotaskEmpty=new Fu(!1),this.onStable=new Fu(!1),this.onError=new Fu(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched(),this._nesting=0,this._outer=this._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(this._inner=this._inner.fork(new Zone.TaskTrackingZoneSpec)),o&&Zone.longStackTraceZoneSpec&&(this._inner=this._inner.fork(Zone.longStackTraceZoneSpec)),this.shouldCoalesceEventChangeDetection=!u&&s,this.shouldCoalesceRunChangeDetection=u,this.lastRequestAnimationFrameId=-1,this.nativeRequestAnimationFrame=function(){var e=tt.requestAnimationFrame,t=tt.cancelAnimationFrame;if("undefined"!=typeof Zone&&e&&t){var n=e[Zone.__symbol__("OriginalDelegate")];n&&(e=n);var i=t[Zone.__symbol__("OriginalDelegate")];i&&(t=i)}return{nativeRequestAnimationFrame:e,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,i=function(){!function(e){-1===e.lastRequestAnimationFrameId&&(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(tt,function(){e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",function(){e.lastRequestAnimationFrameId=-1,Pc(e),Sc(e)},void 0,function(){},function(){})),e.fakeTopEventTask.invoke()}),Pc(e))}(n)},(n=this)._inner=n._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:function(e,t,r,o,a,s){try{return Ec(n),e.invokeTask(r,o,a,s)}finally{(n.shouldCoalesceEventChangeDetection&&"eventTask"===o.type||n.shouldCoalesceRunChangeDetection)&&i(),Dc(n)}},onInvoke:function(e,t,r,o,a,s,l){try{return Ec(n),e.invoke(r,o,a,s,l)}finally{n.shouldCoalesceRunChangeDetection&&i(),Dc(n)}},onHasTask:function(e,t,i,r){e.hasTask(i,r),t===i&&("microTask"==r.change?(n._hasPendingMicrotasks=r.microTask,Pc(n),Sc(n)):"macroTask"==r.change&&(n.hasPendingMacrotasks=r.macroTask))},onHandleError:function(e,t,i,r){return e.handleError(i,r),n.runOutsideAngular(function(){return n.onError.emit(r)}),!1}})}return m(e,[{key:"run",value:function(e,t,n){return this._inner.run(e,t,n)}},{key:"runTask",value:function(e,t,n,i){var r=this._inner,o=r.scheduleEventTask("NgZoneEvent: "+i,e,Cc,kl,kl);try{return r.runTask(o,t,n)}finally{r.cancelTask(o)}}},{key:"runGuarded",value:function(e,t,n){return this._inner.runGuarded(e,t,n)}},{key:"runOutsideAngular",value:function(e){return this._outer.run(e)}}],[{key:"isInAngularZone",value:function(){return!0===Zone.current.get("isAngularZone")}},{key:"assertInAngularZone",value:function(){if(!e.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}},{key:"assertNotInAngularZone",value:function(){if(e.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}}]),e}(),Cc={};function Sc(e){if(0==e._nesting&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(function(){return e.onStable.emit(null)})}finally{e.isStable=!0}}}function Pc(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function Ec(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Dc(e){e._nesting--,Sc(e)}var Oc,Mc=function(){function e(){A(this,e),this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Fu,this.onMicrotaskEmpty=new Fu,this.onStable=new Fu,this.onError=new Fu}return m(e,[{key:"run",value:function(e,t,n){return e.apply(t,n)}},{key:"runGuarded",value:function(e,t,n){return e.apply(t,n)}},{key:"runOutsideAngular",value:function(e){return e()}},{key:"runTask",value:function(e,t,n,i){return e.apply(t,n)}}]),e}(),Tc=function(){var e=function(){function e(t){var n=this;A(this,e),this._ngZone=t,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),t.run(function(){n.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}return m(e,[{key:"_watchAngularEvents",value:function(){var e=this;this._ngZone.onUnstable.subscribe({next:function(){e._didWork=!0,e._isZoneStable=!1}}),this._ngZone.runOutsideAngular(function(){e._ngZone.onStable.subscribe({next:function(){Ac.assertNotInAngularZone(),xc(function(){e._isZoneStable=!0,e._runCallbacksIfReady()})}})})}},{key:"increasePendingRequestCount",value:function(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}},{key:"decreasePendingRequestCount",value:function(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}},{key:"isStable",value:function(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}},{key:"_runCallbacksIfReady",value:function(){var e=this;if(this.isStable())xc(function(){for(;0!==e._callbacks.length;){var t=e._callbacks.pop();clearTimeout(t.timeoutId),t.doneCb(e._didWork)}e._didWork=!1});else{var t=this.getPendingTasks();this._callbacks=this._callbacks.filter(function(e){return!e.updateCb||!e.updateCb(t)||(clearTimeout(e.timeoutId),!1)}),this._didWork=!0}}},{key:"getPendingTasks",value:function(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(function(e){return{source:e.source,creationLocation:e.creationLocation,data:e.data}}):[]}},{key:"addCallback",value:function(e,t,n){var i=this,r=-1;t&&t>0&&(r=setTimeout(function(){i._callbacks=i._callbacks.filter(function(e){return e.timeoutId!==r}),e(i._didWork,i.getPendingTasks())},t)),this._callbacks.push({doneCb:e,timeoutId:r,updateCb:n})}},{key:"whenStable",value:function(e,t,n){if(n&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/dist/task-tracking.js" loaded?');this.addCallback(e,t,n),this._runCallbacksIfReady()}},{key:"getPendingRequestCount",value:function(){return this._pendingCount}},{key:"findProviders",value:function(e,t,n){return[]}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ri(Ac))},e.\u0275prov=Re({token:e,factory:e.\u0275fac}),e}(),Ic=function(){var e=function(){function e(){A(this,e),this._applications=new Map,Rc.addToWindow(this)}return m(e,[{key:"registerApplication",value:function(e,t){this._applications.set(e,t)}},{key:"unregisterApplication",value:function(e){this._applications.delete(e)}},{key:"unregisterAllApplications",value:function(){this._applications.clear()}},{key:"getTestability",value:function(e){return this._applications.get(e)||null}},{key:"getAllTestabilities",value:function(){return Array.from(this._applications.values())}},{key:"getAllRootElements",value:function(){return Array.from(this._applications.keys())}},{key:"findTestabilityInTree",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return Rc.findTestabilityInTree(this,e,t)}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Re({token:e,factory:e.\u0275fac}),e}(),Rc=new(function(){function e(){A(this,e)}return m(e,[{key:"addToWindow",value:function(e){}},{key:"findTestabilityInTree",value:function(e,t,n){return null}}]),e}()),Lc=!0,Fc=!1;function Bc(){return Fc=!0,Lc}var Vc=new mi("AllowMultipleToken"),zc=function e(t,n){A(this,e),this.name=t,this.token=n};function Nc(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i="Platform: "+t,r=new mi(i);return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],o=Hc();if(!o||o.injector.get(Vc,!1))if(e)e(n.concat(t).concat({provide:r,useValue:!0}));else{var a=n.concat(t).concat({provide:r,useValue:!0},{provide:ka,useValue:"platform"});!function(e){if(Oc&&!Oc.destroyed&&!Oc.injector.get(Vc,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");Oc=e.get(jc);var t=e.get(lc,null);t&&t.forEach(function(e){return e()})}(Fa.create({providers:a,name:i}))}return function(e){var t=Hc();if(!t)throw new Error("No platform exists!");if(!t.injector.get(e,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return t}(r)}}function Hc(){return Oc&&!Oc.destroyed?Oc:null}var jc=function(){var e=function(){function e(t){A(this,e),this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}return m(e,[{key:"bootstrapModuleFactory",value:function(e,t){var n,i,r=this,o=(n=t?t.ngZone:void 0,i={ngZoneEventCoalescing:t&&t.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:t&&t.ngZoneRunCoalescing||!1},"noop"===n?new Mc:("zone.js"===n?void 0:n)||new Ac({enableLongStackTrace:Bc(),shouldCoalesceEventChangeDetection:!!(null==i?void 0:i.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==i?void 0:i.ngZoneRunCoalescing)})),a=[{provide:Ac,useValue:o}];return o.run(function(){var t=Fa.create({providers:a,parent:r.injector,name:e.moduleType.name}),n=e.create(t),i=n.injector.get(Or,null);if(!i)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return o.runOutsideAngular(function(){var e=o.onError.subscribe({next:function(e){i.handleError(e)}});n.onDestroy(function(){qc(r._modules,n),e.unsubscribe()})}),function(e,t,i){try{var o=((a=n.injector.get(rc)).runInitializers(),a.donePromise.then(function(){return cl(n.injector.get(hc,"en-US")||"en-US"),r._moduleDoBootstrap(n),n}));return ps(o)?o.catch(function(n){throw t.runOutsideAngular(function(){return e.handleError(n)}),n}):o}catch(s){throw t.runOutsideAngular(function(){return e.handleError(s)}),s}var a}(i,o)})}},{key:"bootstrapModule",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=Uc({},n);return function(e,t,n){var i=new ku(n);return Promise.resolve(i)}(0,0,e).then(function(e){return t.bootstrapModuleFactory(e,i)})}},{key:"_moduleDoBootstrap",value:function(e){var t=e.injector.get(Gc);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(function(e){return t.bootstrap(e)});else{if(!e.instance.ngDoBootstrap)throw new Error("The module ".concat(Ae(e.instance.constructor),' was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.'));e.instance.ngDoBootstrap(t)}this._modules.push(e)}},{key:"onDestroy",value:function(e){this._destroyListeners.push(e)}},{key:"injector",get:function(){return this._injector}},{key:"destroy",value:function(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(function(e){return e.destroy()}),this._destroyListeners.forEach(function(e){return e()}),this._destroyed=!0}},{key:"destroyed",get:function(){return this._destroyed}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ri(Fa))},e.\u0275prov=Re({token:e,factory:e.\u0275fac}),e}();function Uc(e,t){return Array.isArray(t)?t.reduce(Uc,e):Object.assign(Object.assign({},e),t)}var Wc,Gc=((Wc=function(){function e(t,n,i,r,o){var a=this;A(this,e),this._zone=t,this._injector=n,this._exceptionHandler=i,this._componentFactoryResolver=r,this._initStatus=o,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:function(){a._zone.run(function(){a.tick()})}});var s=new V(function(e){a._stable=a._zone.isStable&&!a._zone.hasPendingMacrotasks&&!a._zone.hasPendingMicrotasks,a._zone.runOutsideAngular(function(){e.next(a._stable),e.complete()})}),l=new V(function(e){var t;a._zone.runOutsideAngular(function(){t=a._zone.onStable.subscribe(function(){Ac.assertNotInAngularZone(),xc(function(){a._stable||a._zone.hasPendingMacrotasks||a._zone.hasPendingMicrotasks||(a._stable=!0,e.next(!0))})})});var n=a._zone.onUnstable.subscribe(function(){Ac.assertInAngularZone(),a._stable&&(a._stable=!1,a._zone.runOutsideAngular(function(){e.next(!1)}))});return function(){t.unsubscribe(),n.unsubscribe()}});this.isStable=he(s,l.pipe(_e()))}return m(e,[{key:"bootstrap",value:function(e,t){var n,i=this;if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");n=e instanceof bl?e:this._componentFactoryResolver.resolveComponentFactory(e),this.componentTypes.push(n.componentType);var r=n.isBoundToModule?void 0:this._injector.get(au),o=n.create(Fa.NULL,[],t||n.selector,r),a=o.location.nativeElement,s=o.injector.get(Tc,null),l=s&&o.injector.get(Ic);return s&&l&&l.registerApplication(a,s),o.onDestroy(function(){i.detachView(o.hostView),qc(i.components,o),l&&l.unregisterApplication(a)}),this._loadComponent(o),o}},{key:"tick",value:function(){var e=this;if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;var t,n=h(this._views);try{for(n.s();!(t=n.n()).done;)t.value.detectChanges()}catch(i){n.e(i)}finally{n.f()}}catch(r){this._zone.runOutsideAngular(function(){return e._exceptionHandler.handleError(r)})}finally{this._runningTick=!1}}},{key:"attachView",value:function(e){var t=e;this._views.push(t),t.attachToAppRef(this)}},{key:"detachView",value:function(e){var t=e;qc(this._views,t),t.detachFromAppRef()}},{key:"_loadComponent",value:function(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(cc,[]).concat(this._bootstrapListeners).forEach(function(t){return t(e)})}},{key:"ngOnDestroy",value:function(){this._views.slice().forEach(function(e){return e.destroy()}),this._onMicrotaskEmptySubscription.unsubscribe()}},{key:"viewCount",get:function(){return this._views.length}}]),e}()).\u0275fac=function(e){return new(e||Wc)(Ri(Ac),Ri(Fa),Ri(Or),Ri(_l),Ri(rc))},Wc.\u0275prov=Re({token:Wc,factory:Wc.\u0275fac}),Wc);function qc(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var Yc=function e(){A(this,e)},Zc=function e(){A(this,e)},Qc={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"},Xc=function(){var e=function(){function e(t,n){A(this,e),this._compiler=t,this._config=n||Qc}return m(e,[{key:"load",value:function(e){return this.loadAndCompile(e)}},{key:"loadAndCompile",value:function(e){var t=this,n=f(e.split("#"),2),i=n[0],r=n[1];return void 0===r&&(r="default"),u("MYvV")(i).then(function(e){return e[r]}).then(function(e){return Kc(e,i,r)}).then(function(e){return t._compiler.compileModuleAsync(e)})}},{key:"loadFactory",value:function(e){var t=f(e.split("#"),2),n=t[0],i=t[1],r="NgFactory";return void 0===i&&(i="default",r=""),u("MYvV")(this._config.factoryPathPrefix+n+this._config.factoryPathSuffix).then(function(e){return e[i+r]}).then(function(e){return Kc(e,n,i)})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ri(_c),Ri(Zc,8))},e.\u0275prov=Re({token:e,factory:e.\u0275fac}),e}();function Kc(e,t,n){if(!e)throw new Error("Cannot find '".concat(n,"' in '").concat(t,"'"));return e}var Jc=Nc(null,"core",[{provide:uc,useValue:"unknown"},{provide:jc,deps:[Fa]},{provide:Ic,deps:[]},{provide:dc,deps:[]}]),$c=[{provide:Gc,useClass:Gc,deps:[Ac,Fa,Or,_l,rc]},{provide:mu,deps:[Ac],useFactory:function(e){var t=[];return e.onStable.subscribe(function(){for(;t.length;)t.pop()()}),function(e){t.push(e)}}},{provide:rc,useClass:rc,deps:[[new Hi,ic]]},{provide:_c,useClass:_c,deps:[]},ac,{provide:Wl,useFactory:function(){return eu},deps:[]},{provide:ql,useFactory:function(){return tu},deps:[]},{provide:hc,useFactory:function(e){return cl(e=e||"undefined"!=typeof $localize&&$localize.locale||"en-US"),e},deps:[[new Ni(hc),new Hi,new ji]]},{provide:fc,useValue:"USD"}],ed=function(){var e=function e(t){A(this,e)};return e.\u0275fac=function(t){return new(t||e)(Ri(Gc))},e.\u0275mod=mt({type:e}),e.\u0275inj=Fe({providers:$c}),e}(),td={production:!0,VERSION:u("kiQV").version,AUTHOR:u("kiQV").author},nd=null;function id(){return nd}var rd,od=new mi("DocumentToken"),ad=((rd=function e(){A(this,e)}).\u0275fac=function(e){return new(e||rd)},rd.\u0275prov=Re({factory:sd,token:rd,providedIn:"platform"}),rd);function sd(){return Ri(cd)}var ld,ud=new mi("Location Initialized"),cd=((ld=function(e){r(n,e);var t=a(n);function n(e){var i;return A(this,n),(i=t.call(this))._doc=e,i._init(),i}return m(n,[{key:"_init",value:function(){this.location=id().getLocation(),this._history=id().getHistory()}},{key:"getBaseHrefFromDOM",value:function(){return id().getBaseHref(this._doc)}},{key:"onPopState",value:function(e){id().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",e,!1)}},{key:"onHashChange",value:function(e){id().getGlobalEventTarget(this._doc,"window").addEventListener("hashchange",e,!1)}},{key:"href",get:function(){return this.location.href}},{key:"protocol",get:function(){return this.location.protocol}},{key:"hostname",get:function(){return this.location.hostname}},{key:"port",get:function(){return this.location.port}},{key:"pathname",get:function(){return this.location.pathname},set:function(e){this.location.pathname=e}},{key:"search",get:function(){return this.location.search}},{key:"hash",get:function(){return this.location.hash}},{key:"pushState",value:function(e,t,n){dd()?this._history.pushState(e,t,n):this.location.hash=n}},{key:"replaceState",value:function(e,t,n){dd()?this._history.replaceState(e,t,n):this.location.hash=n}},{key:"forward",value:function(){this._history.forward()}},{key:"back",value:function(){this._history.back()}},{key:"getState",value:function(){return this._history.state}}]),n}(ad)).\u0275fac=function(e){return new(e||ld)(Ri(od))},ld.\u0275prov=Re({factory:hd,token:ld,providedIn:"platform"}),ld);function dd(){return!!window.history.pushState}function hd(){return new cd(Ri(od))}function fd(e,t){if(0==e.length)return t;if(0==t.length)return e;var n=0;return e.endsWith("/")&&n++,t.startsWith("/")&&n++,2==n?e+t.substring(1):1==n?e+t:e+"/"+t}function pd(e){var t=e.match(/#|\?|$/),n=t&&t.index||e.length;return e.slice(0,n-("/"===e[n-1]?1:0))+e.slice(n)}function gd(e){return e&&"?"!==e[0]?"?"+e:e}var vd,md=((vd=function e(){A(this,e)}).\u0275fac=function(e){return new(e||vd)},vd.\u0275prov=Re({factory:yd,token:vd,providedIn:"root"}),vd);function yd(e){var t=Ri(od).location;return new xd(Ri(ad),t&&t.origin||"")}var bd,wd,_d,kd=new mi("appBaseHref"),xd=((_d=function(e){r(n,e);var t=a(n);function n(e,i){var r;if(A(this,n),(r=t.call(this))._platformLocation=e,null==i&&(i=r._platformLocation.getBaseHrefFromDOM()),null==i)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");return r._baseHref=i,s(r)}return m(n,[{key:"onPopState",value:function(e){this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e)}},{key:"getBaseHref",value:function(){return this._baseHref}},{key:"prepareExternalUrl",value:function(e){return fd(this._baseHref,e)}},{key:"path",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this._platformLocation.pathname+gd(this._platformLocation.search),n=this._platformLocation.hash;return n&&e?"".concat(t).concat(n):t}},{key:"pushState",value:function(e,t,n,i){var r=this.prepareExternalUrl(n+gd(i));this._platformLocation.pushState(e,t,r)}},{key:"replaceState",value:function(e,t,n,i){var r=this.prepareExternalUrl(n+gd(i));this._platformLocation.replaceState(e,t,r)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}}]),n}(md)).\u0275fac=function(e){return new(e||_d)(Ri(ad),Ri(kd,8))},_d.\u0275prov=Re({token:_d,factory:_d.\u0275fac}),_d),Ad=((wd=function(e){r(n,e);var t=a(n);function n(e,i){var r;return A(this,n),(r=t.call(this))._platformLocation=e,r._baseHref="",null!=i&&(r._baseHref=i),r}return m(n,[{key:"onPopState",value:function(e){this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e)}},{key:"getBaseHref",value:function(){return this._baseHref}},{key:"path",value:function(){var e=this._platformLocation.hash;return null==e&&(e="#"),e.length>0?e.substring(1):e}},{key:"prepareExternalUrl",value:function(e){var t=fd(this._baseHref,e);return t.length>0?"#"+t:t}},{key:"pushState",value:function(e,t,n,i){var r=this.prepareExternalUrl(n+gd(i));0==r.length&&(r=this._platformLocation.pathname),this._platformLocation.pushState(e,t,r)}},{key:"replaceState",value:function(e,t,n,i){var r=this.prepareExternalUrl(n+gd(i));0==r.length&&(r=this._platformLocation.pathname),this._platformLocation.replaceState(e,t,r)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}}]),n}(md)).\u0275fac=function(e){return new(e||wd)(Ri(ad),Ri(kd,8))},wd.\u0275prov=Re({token:wd,factory:wd.\u0275fac}),wd),Cd=((bd=function(){function e(t,n){var i=this;A(this,e),this._subject=new Fu,this._urlChangeListeners=[],this._platformStrategy=t;var r=this._platformStrategy.getBaseHref();this._platformLocation=n,this._baseHref=pd(Pd(r)),this._platformStrategy.onPopState(function(e){i._subject.emit({url:i.path(!0),pop:!0,state:e.state,type:e.type})})}return m(e,[{key:"path",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.normalize(this._platformStrategy.path(e))}},{key:"getState",value:function(){return this._platformLocation.getState()}},{key:"isCurrentPathEqualTo",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return this.path()==this.normalize(e+gd(t))}},{key:"normalize",value:function(t){return e.stripTrailingSlash(function(e,t){return e&&t.startsWith(e)?t.substring(e.length):t}(this._baseHref,Pd(t)))}},{key:"prepareExternalUrl",value:function(e){return e&&"/"!==e[0]&&(e="/"+e),this._platformStrategy.prepareExternalUrl(e)}},{key:"go",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._platformStrategy.pushState(n,"",e,t),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+gd(t)),n)}},{key:"replaceState",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._platformStrategy.replaceState(n,"",e,t),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+gd(t)),n)}},{key:"forward",value:function(){this._platformStrategy.forward()}},{key:"back",value:function(){this._platformStrategy.back()}},{key:"onUrlChange",value:function(e){var t=this;this._urlChangeListeners.push(e),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(function(e){t._notifyUrlChangeListeners(e.url,e.state)}))}},{key:"_notifyUrlChangeListeners",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;this._urlChangeListeners.forEach(function(n){return n(e,t)})}},{key:"subscribe",value:function(e,t,n){return this._subject.subscribe({next:e,error:t,complete:n})}}]),e}()).\u0275fac=function(e){return new(e||bd)(Ri(md),Ri(ad))},bd.normalizeQueryParams=gd,bd.joinWithSlash=fd,bd.stripTrailingSlash=pd,bd.\u0275prov=Re({factory:Sd,token:bd,providedIn:"root"}),bd);function Sd(){return new Cd(Ri(md),Ri(ad))}function Pd(e){return e.replace(/\/index.html$/,"")}var Ed=function(e){return e[e.Zero=0]="Zero",e[e.One=1]="One",e[e.Two=2]="Two",e[e.Few=3]="Few",e[e.Many=4]="Many",e[e.Other=5]="Other",e}({}),Dd=function(e){return e[e.Format=0]="Format",e[e.Standalone=1]="Standalone",e}({}),Od=function(e){return e[e.Narrow=0]="Narrow",e[e.Abbreviated=1]="Abbreviated",e[e.Wide=2]="Wide",e[e.Short=3]="Short",e}({}),Md=function(e){return e[e.Short=0]="Short",e[e.Medium=1]="Medium",e[e.Long=2]="Long",e[e.Full=3]="Full",e}({}),Td=function(e){return e[e.Decimal=0]="Decimal",e[e.Group=1]="Group",e[e.List=2]="List",e[e.PercentSign=3]="PercentSign",e[e.PlusSign=4]="PlusSign",e[e.MinusSign=5]="MinusSign",e[e.Exponential=6]="Exponential",e[e.SuperscriptingExponent=7]="SuperscriptingExponent",e[e.PerMille=8]="PerMille",e[e[1/0]=9]="Infinity",e[e.NaN=10]="NaN",e[e.TimeSeparator=11]="TimeSeparator",e[e.CurrencyDecimal=12]="CurrencyDecimal",e[e.CurrencyGroup=13]="CurrencyGroup",e}({});function Id(e,t){return Vd(sl(e)[ul.DateFormat],t)}function Rd(e,t){return Vd(sl(e)[ul.TimeFormat],t)}function Ld(e,t){return Vd(sl(e)[ul.DateTimeFormat],t)}function Fd(e,t){var n=sl(e),i=n[ul.NumberSymbols][t];if(void 0===i){if(t===Td.CurrencyDecimal)return n[ul.NumberSymbols][Td.Decimal];if(t===Td.CurrencyGroup)return n[ul.NumberSymbols][Td.Group]}return i}function Bd(e){if(!e[ul.ExtraData])throw new Error('Missing extra locale data for the locale "'.concat(e[ul.LocaleId],'". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.'))}function Vd(e,t){for(var n=t;n>-1;n--)if(void 0!==e[n])return e[n];throw new Error("Locale data API: locale data undefined")}function zd(e){var t=f(e.split(":"),2);return{hours:+t[0],minutes:+t[1]}}var Nd=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Hd={},jd=/((?:[^GyYMLwWdEabBhHmsSzZO']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/,Ud=function(e){return e[e.Short=0]="Short",e[e.ShortGMT=1]="ShortGMT",e[e.Long=2]="Long",e[e.Extended=3]="Extended",e}({}),Wd=function(e){return e[e.FullYear=0]="FullYear",e[e.Month=1]="Month",e[e.Date=2]="Date",e[e.Hours=3]="Hours",e[e.Minutes=4]="Minutes",e[e.Seconds=5]="Seconds",e[e.FractionalSeconds=6]="FractionalSeconds",e[e.Day=7]="Day",e}({}),Gd=function(e){return e[e.DayPeriods=0]="DayPeriods",e[e.Days=1]="Days",e[e.Months=2]="Months",e[e.Eras=3]="Eras",e}({});function qd(e,t,n,i){var r=function(e){if(oh(e))return e;if("number"==typeof e&&!isNaN(e))return new Date(e);if("string"==typeof e){if(e=e.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(e)){var t=f(e.split("-").map(function(e){return+e}),3),n=t[0],i=t[1],r=void 0===i?1:i,o=t[2];return Yd(n,r-1,void 0===o?1:o)}var a,s=parseFloat(e);if(!isNaN(e-s))return new Date(s);if(a=e.match(Nd))return function(e){var t=new Date(0),n=0,i=0,r=e[8]?t.setUTCFullYear:t.setFullYear,o=e[8]?t.setUTCHours:t.setHours;e[9]&&(n=Number(e[9]+e[10]),i=Number(e[9]+e[11])),r.call(t,Number(e[1]),Number(e[2])-1,Number(e[3]));var a=Number(e[4]||0)-n,s=Number(e[5]||0)-i,l=Number(e[6]||0),u=Math.floor(1e3*parseFloat("0."+(e[7]||0)));return o.call(t,a,s,l,u),t}(a)}var l=new Date(e);if(!oh(l))throw new Error('Unable to convert "'.concat(e,'" into a date'));return l}(e);t=Zd(n,t)||t;for(var o,a=[];t;){if(!(o=jd.exec(t))){a.push(t);break}var s=(a=a.concat(o.slice(1))).pop();if(!s)break;t=s}var l=r.getTimezoneOffset();i&&(l=rh(i,l),r=function(e,t,n){var i=e.getTimezoneOffset();return function(e,t){return(e=new Date(e.getTime())).setMinutes(e.getMinutes()+t),e}(e,-1*(rh(t,i)-i))}(r,i));var u="";return a.forEach(function(e){var t=function(e){if(ih[e])return ih[e];var t;switch(e){case"G":case"GG":case"GGG":t=Jd(Gd.Eras,Od.Abbreviated);break;case"GGGG":t=Jd(Gd.Eras,Od.Wide);break;case"GGGGG":t=Jd(Gd.Eras,Od.Narrow);break;case"y":t=Kd(Wd.FullYear,1,0,!1,!0);break;case"yy":t=Kd(Wd.FullYear,2,0,!0,!0);break;case"yyy":t=Kd(Wd.FullYear,3,0,!1,!0);break;case"yyyy":t=Kd(Wd.FullYear,4,0,!1,!0);break;case"Y":t=nh(1);break;case"YY":t=nh(2,!0);break;case"YYY":t=nh(3);break;case"YYYY":t=nh(4);break;case"M":case"L":t=Kd(Wd.Month,1,1);break;case"MM":case"LL":t=Kd(Wd.Month,2,1);break;case"MMM":t=Jd(Gd.Months,Od.Abbreviated);break;case"MMMM":t=Jd(Gd.Months,Od.Wide);break;case"MMMMM":t=Jd(Gd.Months,Od.Narrow);break;case"LLL":t=Jd(Gd.Months,Od.Abbreviated,Dd.Standalone);break;case"LLLL":t=Jd(Gd.Months,Od.Wide,Dd.Standalone);break;case"LLLLL":t=Jd(Gd.Months,Od.Narrow,Dd.Standalone);break;case"w":t=th(1);break;case"ww":t=th(2);break;case"W":t=th(1,!0);break;case"d":t=Kd(Wd.Date,1);break;case"dd":t=Kd(Wd.Date,2);break;case"E":case"EE":case"EEE":t=Jd(Gd.Days,Od.Abbreviated);break;case"EEEE":t=Jd(Gd.Days,Od.Wide);break;case"EEEEE":t=Jd(Gd.Days,Od.Narrow);break;case"EEEEEE":t=Jd(Gd.Days,Od.Short);break;case"a":case"aa":case"aaa":t=Jd(Gd.DayPeriods,Od.Abbreviated);break;case"aaaa":t=Jd(Gd.DayPeriods,Od.Wide);break;case"aaaaa":t=Jd(Gd.DayPeriods,Od.Narrow);break;case"b":case"bb":case"bbb":t=Jd(Gd.DayPeriods,Od.Abbreviated,Dd.Standalone,!0);break;case"bbbb":t=Jd(Gd.DayPeriods,Od.Wide,Dd.Standalone,!0);break;case"bbbbb":t=Jd(Gd.DayPeriods,Od.Narrow,Dd.Standalone,!0);break;case"B":case"BB":case"BBB":t=Jd(Gd.DayPeriods,Od.Abbreviated,Dd.Format,!0);break;case"BBBB":t=Jd(Gd.DayPeriods,Od.Wide,Dd.Format,!0);break;case"BBBBB":t=Jd(Gd.DayPeriods,Od.Narrow,Dd.Format,!0);break;case"h":t=Kd(Wd.Hours,1,-12);break;case"hh":t=Kd(Wd.Hours,2,-12);break;case"H":t=Kd(Wd.Hours,1);break;case"HH":t=Kd(Wd.Hours,2);break;case"m":t=Kd(Wd.Minutes,1);break;case"mm":t=Kd(Wd.Minutes,2);break;case"s":t=Kd(Wd.Seconds,1);break;case"ss":t=Kd(Wd.Seconds,2);break;case"S":t=Kd(Wd.FractionalSeconds,1);break;case"SS":t=Kd(Wd.FractionalSeconds,2);break;case"SSS":t=Kd(Wd.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":t=$d(Ud.Short);break;case"ZZZZZ":t=$d(Ud.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":t=$d(Ud.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":t=$d(Ud.Long);break;default:return null}return ih[e]=t,t}(e);u+=t?t(r,n,l):"''"===e?"'":e.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),u}function Yd(e,t,n){var i=new Date(0);return i.setFullYear(e,t,n),i.setHours(0,0,0),i}function Zd(e,t){var n=function(e){return sl(e)[ul.LocaleId]}(e);if(Hd[n]=Hd[n]||{},Hd[n][t])return Hd[n][t];var i="";switch(t){case"shortDate":i=Id(e,Md.Short);break;case"mediumDate":i=Id(e,Md.Medium);break;case"longDate":i=Id(e,Md.Long);break;case"fullDate":i=Id(e,Md.Full);break;case"shortTime":i=Rd(e,Md.Short);break;case"mediumTime":i=Rd(e,Md.Medium);break;case"longTime":i=Rd(e,Md.Long);break;case"fullTime":i=Rd(e,Md.Full);break;case"short":var r=Zd(e,"shortTime"),o=Zd(e,"shortDate");i=Qd(Ld(e,Md.Short),[r,o]);break;case"medium":var a=Zd(e,"mediumTime"),s=Zd(e,"mediumDate");i=Qd(Ld(e,Md.Medium),[a,s]);break;case"long":var l=Zd(e,"longTime"),u=Zd(e,"longDate");i=Qd(Ld(e,Md.Long),[l,u]);break;case"full":var c=Zd(e,"fullTime"),d=Zd(e,"fullDate");i=Qd(Ld(e,Md.Full),[c,d])}return i&&(Hd[n][t]=i),i}function Qd(e,t){return t&&(e=e.replace(/\{([^}]+)}/g,function(e,n){return null!=t&&n in t?t[n]:e})),e}function Xd(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"-",i=arguments.length>3?arguments[3]:void 0,r=arguments.length>4?arguments[4]:void 0,o="";(e<0||r&&e<=0)&&(r?e=1-e:(e=-e,o=n));for(var a=String(e);a.length<t;)a="0"+a;return i&&(a=a.substr(a.length-t)),o+a}function Kd(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return function(o,a){var s,l=function(e,t){switch(e){case Wd.FullYear:return t.getFullYear();case Wd.Month:return t.getMonth();case Wd.Date:return t.getDate();case Wd.Hours:return t.getHours();case Wd.Minutes:return t.getMinutes();case Wd.Seconds:return t.getSeconds();case Wd.FractionalSeconds:return t.getMilliseconds();case Wd.Day:return t.getDay();default:throw new Error('Unknown DateType value "'.concat(e,'".'))}}(e,o);if((n>0||l>-n)&&(l+=n),e===Wd.Hours)0===l&&-12===n&&(l=12);else if(e===Wd.FractionalSeconds)return s=t,Xd(l,3).substr(0,s);var u=Fd(a,Td.MinusSign);return Xd(l,t,u,i,r)}}function Jd(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Dd.Format,i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return function(r,o){return function(e,t,n,i,r,o){switch(n){case Gd.Months:return function(e,t,n){var i=sl(e),r=Vd([i[ul.MonthsFormat],i[ul.MonthsStandalone]],t);return Vd(r,n)}(t,r,i)[e.getMonth()];case Gd.Days:return function(e,t,n){var i=sl(e),r=Vd([i[ul.DaysFormat],i[ul.DaysStandalone]],t);return Vd(r,n)}(t,r,i)[e.getDay()];case Gd.DayPeriods:var a=e.getHours(),s=e.getMinutes();if(o){var l=function(e){var t=sl(e);return Bd(t),(t[ul.ExtraData][2]||[]).map(function(e){return"string"==typeof e?zd(e):[zd(e[0]),zd(e[1])]})}(t),u=function(e,t,n){var i=sl(e);Bd(i);var r=Vd([i[ul.ExtraData][0],i[ul.ExtraData][1]],t)||[];return Vd(r,n)||[]}(t,r,i),c=l.findIndex(function(e){if(Array.isArray(e)){var t=f(e,2),n=t[0],i=t[1],r=a>=n.hours&&s>=n.minutes,o=a<i.hours||a===i.hours&&s<i.minutes;if(n.hours<i.hours){if(r&&o)return!0}else if(r||o)return!0}else if(e.hours===a&&e.minutes===s)return!0;return!1});if(-1!==c)return u[c]}return function(e,t,n){var i=sl(e),r=Vd([i[ul.DayPeriodsFormat],i[ul.DayPeriodsStandalone]],t);return Vd(r,n)}(t,r,i)[a<12?0:1];case Gd.Eras:return function(e,t){return Vd(sl(e)[ul.Eras],t)}(t,i)[e.getFullYear()<=0?0:1];default:throw new Error("unexpected translation type "+n)}}(r,o,e,t,n,i)}}function $d(e){return function(t,n,i){var r=-1*i,o=Fd(n,Td.MinusSign),a=r>0?Math.floor(r/60):Math.ceil(r/60);switch(e){case Ud.Short:return(r>=0?"+":"")+Xd(a,2,o)+Xd(Math.abs(r%60),2,o);case Ud.ShortGMT:return"GMT"+(r>=0?"+":"")+Xd(a,1,o);case Ud.Long:return"GMT"+(r>=0?"+":"")+Xd(a,2,o)+":"+Xd(Math.abs(r%60),2,o);case Ud.Extended:return 0===i?"Z":(r>=0?"+":"")+Xd(a,2,o)+":"+Xd(Math.abs(r%60),2,o);default:throw new Error('Unknown zone width "'.concat(e,'"'))}}}function eh(e){return Yd(e.getFullYear(),e.getMonth(),e.getDate()+(4-e.getDay()))}function th(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(n,i){var r,o,a;if(t){var s=new Date(n.getFullYear(),n.getMonth(),1).getDay()-1,l=n.getDate();r=1+Math.floor((l+s)/7)}else{var u=eh(n),c=(o=u.getFullYear(),a=Yd(o,0,1).getDay(),Yd(o,0,1+(a<=4?4:11)-a)),d=u.getTime()-c.getTime();r=1+Math.round(d/6048e5)}return Xd(r,e,Fd(i,Td.MinusSign))}}function nh(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(n,i){return Xd(eh(n).getFullYear(),e,Fd(i,Td.MinusSign),t)}}var ih={};function rh(e,t){e=e.replace(/:/g,"");var n=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return isNaN(n)?t:n}function oh(e){return e instanceof Date&&!isNaN(e.valueOf())}var ah,sh=function e(){A(this,e)},lh=((ah=function(e){r(n,e);var t=a(n);function n(e){var i;return A(this,n),(i=t.call(this)).locale=e,i}return m(n,[{key:"getPluralCategory",value:function(e,t){switch(function(e){return sl(e)[ul.PluralCase]}(t||this.locale)(e)){case Ed.Zero:return"zero";case Ed.One:return"one";case Ed.Two:return"two";case Ed.Few:return"few";case Ed.Many:return"many";default:return"other"}}}]),n}(sh)).\u0275fac=function(e){return new(e||ah)(Ri(hc))},ah.\u0275prov=Re({token:ah,factory:ah.\u0275fac}),ah);function uh(e,t){t=encodeURIComponent(t);var n,i=h(e.split(";"));try{for(i.s();!(n=i.n()).done;){var r=n.value,o=r.indexOf("="),a=f(-1==o?[r,""]:[r.slice(0,o),r.slice(o+1)],2),s=a[0],l=a[1];if(s.trim()===t)return decodeURIComponent(l)}}catch(u){i.e(u)}finally{i.f()}return null}var ch,dh,hh,fh=((ch=function(){function e(t,n,i,r){A(this,e),this._iterableDiffers=t,this._keyValueDiffers=n,this._ngEl=i,this._renderer=r,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}return m(e,[{key:"klass",set:function(e){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof e?e.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}},{key:"ngClass",set:function(e){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof e?e.split(/\s+/):e,this._rawClass&&(qa(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}},{key:"ngDoCheck",value:function(){if(this._iterableDiffer){var e=this._iterableDiffer.diff(this._rawClass);e&&this._applyIterableChanges(e)}else if(this._keyValueDiffer){var t=this._keyValueDiffer.diff(this._rawClass);t&&this._applyKeyValueChanges(t)}}},{key:"_applyKeyValueChanges",value:function(e){var t=this;e.forEachAddedItem(function(e){return t._toggleClass(e.key,e.currentValue)}),e.forEachChangedItem(function(e){return t._toggleClass(e.key,e.currentValue)}),e.forEachRemovedItem(function(e){e.previousValue&&t._toggleClass(e.key,!1)})}},{key:"_applyIterableChanges",value:function(e){var t=this;e.forEachAddedItem(function(e){if("string"!=typeof e.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got "+Ae(e.item));t._toggleClass(e.item,!0)}),e.forEachRemovedItem(function(e){return t._toggleClass(e.item,!1)})}},{key:"_applyClasses",value:function(e){var t=this;e&&(Array.isArray(e)||e instanceof Set?e.forEach(function(e){return t._toggleClass(e,!0)}):Object.keys(e).forEach(function(n){return t._toggleClass(n,!!e[n])}))}},{key:"_removeClasses",value:function(e){var t=this;e&&(Array.isArray(e)||e instanceof Set?e.forEach(function(e){return t._toggleClass(e,!1)}):Object.keys(e).forEach(function(e){return t._toggleClass(e,!1)}))}},{key:"_toggleClass",value:function(e,t){var n=this;(e=e.trim())&&e.split(/\s+/g).forEach(function(e){t?n._renderer.addClass(n._ngEl.nativeElement,e):n._renderer.removeClass(n._ngEl.nativeElement,e)})}}]),e}()).\u0275fac=function(e){return new(e||ch)(rs(Wl),rs(ql),rs(Cl),rs(El))},ch.\u0275dir=bt({type:ch,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),ch),ph=function(){function e(t,n,i,r){A(this,e),this.$implicit=t,this.ngForOf=n,this.index=i,this.count=r}return m(e,[{key:"first",get:function(){return 0===this.index}},{key:"last",get:function(){return this.index===this.count-1}},{key:"even",get:function(){return this.index%2==0}},{key:"odd",get:function(){return!this.even}}]),e}(),gh=((dh=function(){function e(t,n,i){A(this,e),this._viewContainer=t,this._template=n,this._differs=i,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}return m(e,[{key:"ngForOf",set:function(e){this._ngForOf=e,this._ngForOfDirty=!0}},{key:"ngForTrackBy",get:function(){return this._trackByFn},set:function(e){this._trackByFn=e}},{key:"ngForTemplate",set:function(e){e&&(this._template=e)}},{key:"ngDoCheck",value:function(){if(this._ngForOfDirty){this._ngForOfDirty=!1;var e=this._ngForOf;if(!this._differ&&e)try{this._differ=this._differs.find(e).create(this.ngForTrackBy)}catch(i){throw new Error("Cannot find a differ supporting object '".concat(e,"' of type '").concat((t=e).name||typeof t,"'. NgFor only supports binding to Iterables such as Arrays."))}}var t;if(this._differ){var n=this._differ.diff(this._ngForOf);n&&this._applyChanges(n)}}},{key:"_applyChanges",value:function(e){var t=this,n=[];e.forEachOperation(function(e,i,r){if(null==e.previousIndex){var o=t._viewContainer.createEmbeddedView(t._template,new ph(null,t._ngForOf,-1,-1),null===r?void 0:r),a=new vh(e,o);n.push(a)}else if(null==r)t._viewContainer.remove(null===i?void 0:i);else if(null!==i){var s=t._viewContainer.get(i);t._viewContainer.move(s,r);var l=new vh(e,s);n.push(l)}});for(var i=0;i<n.length;i++)this._perViewChange(n[i].view,n[i].record);for(var r=0,o=this._viewContainer.length;r<o;r++){var a=this._viewContainer.get(r);a.context.index=r,a.context.count=o,a.context.ngForOf=this._ngForOf}e.forEachIdentityChange(function(e){t._viewContainer.get(e.currentIndex).context.$implicit=e.item})}},{key:"_perViewChange",value:function(e,t){e.context.$implicit=t.item}}],[{key:"ngTemplateContextGuard",value:function(e,t){return!0}}]),e}()).\u0275fac=function(e){return new(e||dh)(rs(uu),rs(iu),rs(Wl))},dh.\u0275dir=bt({type:dh,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),dh),vh=function e(t,n){A(this,e),this.record=t,this.view=n},mh=((hh=function(){function e(t,n){A(this,e),this._viewContainer=t,this._context=new yh,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=n}return m(e,[{key:"ngIf",set:function(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}},{key:"ngIfThen",set:function(e){bh("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}},{key:"ngIfElse",set:function(e){bh("ngIfElse",e),this._elseTemplateRef=e,this._elseViewRef=null,this._updateView()}},{key:"_updateView",value:function(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}}],[{key:"ngTemplateContextGuard",value:function(e,t){return!0}}]),e}()).\u0275fac=function(e){return new(e||hh)(rs(uu),rs(iu))},hh.\u0275dir=bt({type:hh,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),hh),yh=function e(){A(this,e),this.$implicit=null,this.ngIf=null};function bh(e,t){if(t&&!t.createEmbeddedView)throw new Error("".concat(e," must be a TemplateRef, but received '").concat(Ae(t),"'."))}var wh,_h,kh,xh,Ah,Ch=function(){function e(t,n){A(this,e),this._viewContainerRef=t,this._templateRef=n,this._created=!1}return m(e,[{key:"create",value:function(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}},{key:"destroy",value:function(){this._created=!1,this._viewContainerRef.clear()}},{key:"enforceState",value:function(e){e&&!this._created?this.create():!e&&this._created&&this.destroy()}}]),e}(),Sh=((Ah=function(){function e(){A(this,e),this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}return m(e,[{key:"ngSwitch",set:function(e){this._ngSwitch=e,0===this._caseCount&&this._updateDefaultCases(!0)}},{key:"_addCase",value:function(){return this._caseCount++}},{key:"_addDefault",value:function(e){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(e)}},{key:"_matchCase",value:function(e){var t=e==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||t,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),t}},{key:"_updateDefaultCases",value:function(e){if(this._defaultViews&&e!==this._defaultUsed){this._defaultUsed=e;for(var t=0;t<this._defaultViews.length;t++)this._defaultViews[t].enforceState(e)}}}]),e}()).\u0275fac=function(e){return new(e||Ah)},Ah.\u0275dir=bt({type:Ah,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"}}),Ah),Ph=((xh=function(){function e(t,n,i){A(this,e),this.ngSwitch=i,i._addCase(),this._view=new Ch(t,n)}return m(e,[{key:"ngDoCheck",value:function(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}]),e}()).\u0275fac=function(e){return new(e||xh)(rs(uu),rs(iu),rs(Sh,1))},xh.\u0275dir=bt({type:xh,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),xh),Eh=((kh=function e(t,n,i){A(this,e),i._addDefault(new Ch(t,n))}).\u0275fac=function(e){return new(e||kh)(rs(uu),rs(iu),rs(Sh,1))},kh.\u0275dir=bt({type:kh,selectors:[["","ngSwitchDefault",""]]}),kh),Dh=((_h=function(){function e(t,n,i){A(this,e),this._ngEl=t,this._differs=n,this._renderer=i,this._ngStyle=null,this._differ=null}return m(e,[{key:"ngStyle",set:function(e){this._ngStyle=e,!this._differ&&e&&(this._differ=this._differs.find(e).create())}},{key:"ngDoCheck",value:function(){if(this._differ){var e=this._differ.diff(this._ngStyle);e&&this._applyChanges(e)}}},{key:"_setStyle",value:function(e,t){var n=f(e.split("."),2),i=n[0],r=n[1];null!=(t=null!=t&&r?"".concat(t).concat(r):t)?this._renderer.setStyle(this._ngEl.nativeElement,i,t):this._renderer.removeStyle(this._ngEl.nativeElement,i)}},{key:"_applyChanges",value:function(e){var t=this;e.forEachRemovedItem(function(e){return t._setStyle(e.key,null)}),e.forEachAddedItem(function(e){return t._setStyle(e.key,e.currentValue)}),e.forEachChangedItem(function(e){return t._setStyle(e.key,e.currentValue)})}}]),e}()).\u0275fac=function(e){return new(e||_h)(rs(Cl),rs(ql),rs(El))},_h.\u0275dir=bt({type:_h,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),_h),Oh=((wh=function(){function e(t){A(this,e),this._viewContainerRef=t,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}return m(e,[{key:"ngOnChanges",value:function(e){if(this._shouldRecreateView(e)){var t=this._viewContainerRef;this._viewRef&&t.remove(t.indexOf(this._viewRef)),this._viewRef=this.ngTemplateOutlet?t.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext):null}else this._viewRef&&this.ngTemplateOutletContext&&this._updateExistingContext(this.ngTemplateOutletContext)}},{key:"_shouldRecreateView",value:function(e){var t=e.ngTemplateOutletContext;return!!e.ngTemplateOutlet||t&&this._hasContextShapeChanged(t)}},{key:"_hasContextShapeChanged",value:function(e){var t=Object.keys(e.previousValue||{}),n=Object.keys(e.currentValue||{});if(t.length===n.length){var i,r=h(n);try{for(r.s();!(i=r.n()).done;){var o=i.value;if(-1===t.indexOf(o))return!0}}catch(a){r.e(a)}finally{r.f()}return!1}return!0}},{key:"_updateExistingContext",value:function(e){for(var t=0,n=Object.keys(e);t<n.length;t++){var i=n[t];this._viewRef.context[i]=this.ngTemplateOutletContext[i]}}}]),e}()).\u0275fac=function(e){return new(e||wh)(rs(uu))},wh.\u0275dir=bt({type:wh,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[Mt]}),wh);function Mh(e,t){return Error("InvalidPipeArgument: '".concat(t,"' for pipe '").concat(Ae(e),"'"))}var Th,Ih,Rh,Lh,Fh,Bh=function(){function e(){A(this,e)}return m(e,[{key:"createSubscription",value:function(e,t){return e.subscribe({next:t,error:function(e){throw e}})}},{key:"dispose",value:function(e){e.unsubscribe()}},{key:"onDestroy",value:function(e){e.unsubscribe()}}]),e}(),Vh=new(function(){function e(){A(this,e)}return m(e,[{key:"createSubscription",value:function(e,t){return e.then(t,function(e){throw e})}},{key:"dispose",value:function(e){}},{key:"onDestroy",value:function(e){}}]),e}()),zh=new Bh,Nh=((Th=function(){function e(t){A(this,e),this._ref=t,this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null}return m(e,[{key:"ngOnDestroy",value:function(){this._subscription&&this._dispose()}},{key:"transform",value:function(e){return this._obj?e!==this._obj?(this._dispose(),this.transform(e)):this._latestValue:(e&&this._subscribe(e),this._latestValue)}},{key:"_subscribe",value:function(e){var t=this;this._obj=e,this._strategy=this._selectStrategy(e),this._subscription=this._strategy.createSubscription(e,function(n){return t._updateLatestValue(e,n)})}},{key:"_selectStrategy",value:function(t){if(ps(t))return Vh;if(gs(t))return zh;throw Mh(e,t)}},{key:"_dispose",value:function(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}},{key:"_updateLatestValue",value:function(e,t){e===this._obj&&(this._latestValue=t,this._ref.markForCheck())}}]),e}()).\u0275fac=function(e){return new(e||Th)(nc())},Th.\u0275pipe=wt({name:"async",type:Th,pure:!1}),Th),Hh=/(?:[A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D])\S*/g,jh=((Fh=function(){function e(){A(this,e)}return m(e,[{key:"transform",value:function(t){if(null==t)return null;if("string"!=typeof t)throw Mh(e,t);return t.replace(Hh,function(e){return e[0].toUpperCase()+e.substr(1).toLowerCase()})}}]),e}()).\u0275fac=function(e){return new(e||Fh)},Fh.\u0275pipe=wt({name:"titlecase",type:Fh,pure:!0}),Fh),Uh=((Lh=function(){function e(){A(this,e)}return m(e,[{key:"transform",value:function(t){if(null==t)return null;if("string"!=typeof t)throw Mh(e,t);return t.toUpperCase()}}]),e}()).\u0275fac=function(e){return new(e||Lh)},Lh.\u0275pipe=wt({name:"uppercase",type:Lh,pure:!0}),Lh),Wh=((Rh=function(){function e(t){A(this,e),this.locale=t}return m(e,[{key:"transform",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"mediumDate",i=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0;if(null==t||""===t||t!=t)return null;try{return qd(t,n,r||this.locale,i)}catch(o){throw Mh(e,o.message)}}}]),e}()).\u0275fac=function(e){return new(e||Rh)(rs(hc))},Rh.\u0275pipe=wt({name:"date",type:Rh,pure:!0}),Rh),Gh=((Ih=function(){function e(t){A(this,e),this.differs=t,this.keyValues=[]}return m(e,[{key:"transform",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:qh;if(!e||!(e instanceof Map)&&"object"!=typeof e)return null;this.differ||(this.differ=this.differs.find(e).create());var i=this.differ.diff(e);return i&&(this.keyValues=[],i.forEachItem(function(e){t.keyValues.push({key:e.key,value:e.currentValue})}),this.keyValues.sort(n)),this.keyValues}}]),e}()).\u0275fac=function(e){return new(e||Ih)(rs(ql))},Ih.\u0275pipe=wt({name:"keyvalue",type:Ih,pure:!1}),Ih);function qh(e,t){var n=e.key,i=t.key;if(n===i)return 0;if(void 0===n)return 1;if(void 0===i)return-1;if(null===n)return 1;if(null===i)return-1;if("string"==typeof n&&"string"==typeof i)return n<i?-1:1;if("number"==typeof n&&"number"==typeof i)return n-i;if("boolean"==typeof n&&"boolean"==typeof i)return n<i?-1:1;var r=String(n),o=String(i);return r==o?0:r<o?-1:1}var Yh,Zh=((Yh=function e(){A(this,e)}).\u0275fac=function(e){return new(e||Yh)},Yh.\u0275mod=mt({type:Yh}),Yh.\u0275inj=Fe({providers:[{provide:sh,useClass:lh}]}),Yh);function Qh(e){return"browser"===e}var Xh,Kh=((Xh=function e(){A(this,e)}).\u0275prov=Re({token:Xh,providedIn:"root",factory:function(){return new Jh(Ri(od),window)}}),Xh),Jh=function(){function e(t,n){A(this,e),this.document=t,this.window=n,this.offset=function(){return[0,0]}}return m(e,[{key:"setOffset",value:function(e){this.offset=Array.isArray(e)?function(){return e}:e}},{key:"getScrollPosition",value:function(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}},{key:"scrollToPosition",value:function(e){this.supportsScrolling()&&this.window.scrollTo(e[0],e[1])}},{key:"scrollToAnchor",value:function(e){var t;if(this.supportsScrolling()){var n=null!==(t=this.document.getElementById(e))&&void 0!==t?t:this.document.getElementsByName(e)[0];void 0!==n&&(this.scrollToElement(n),this.attemptFocus(n))}}},{key:"setHistoryScrollRestoration",value:function(e){if(this.supportScrollRestoration()){var t=this.window.history;t&&t.scrollRestoration&&(t.scrollRestoration=e)}}},{key:"scrollToElement",value:function(e){var t=e.getBoundingClientRect(),n=t.left+this.window.pageXOffset,i=t.top+this.window.pageYOffset,r=this.offset();this.window.scrollTo(n-r[0],i-r[1])}},{key:"attemptFocus",value:function(e){return e.focus(),this.document.activeElement===e}},{key:"supportScrollRestoration",value:function(){try{if(!this.supportsScrolling())return!1;var e=$h(this.window.history)||$h(Object.getPrototypeOf(this.window.history));return!(!e||!e.writable&&!e.set)}catch(t){return!1}}},{key:"supportsScrolling",value:function(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(e){return!1}}}]),e}();function $h(e){return Object.getOwnPropertyDescriptor(e,"scrollRestoration")}var ef,tf,nf,rf,of=function(e){r(n,e);var t=a(n);function n(){return A(this,n),t.apply(this,arguments)}return m(n,[{key:"getProperty",value:function(e,t){return e[t]}},{key:"log",value:function(e){window.console&&window.console.log&&window.console.log(e)}},{key:"logGroup",value:function(e){window.console&&window.console.group&&window.console.group(e)}},{key:"logGroupEnd",value:function(){window.console&&window.console.groupEnd&&window.console.groupEnd()}},{key:"onAndCancel",value:function(e,t,n){return e.addEventListener(t,n,!1),function(){e.removeEventListener(t,n,!1)}}},{key:"dispatchEvent",value:function(e,t){e.dispatchEvent(t)}},{key:"remove",value:function(e){return e.parentNode&&e.parentNode.removeChild(e),e}},{key:"getValue",value:function(e){return e.value}},{key:"createElement",value:function(e,t){return(t=t||this.getDefaultDocument()).createElement(e)}},{key:"createHtmlDocument",value:function(){return document.implementation.createHTMLDocument("fakeTitle")}},{key:"getDefaultDocument",value:function(){return document}},{key:"isElementNode",value:function(e){return e.nodeType===Node.ELEMENT_NODE}},{key:"isShadowRoot",value:function(e){return e instanceof DocumentFragment}},{key:"getGlobalEventTarget",value:function(e,t){return"window"===t?window:"document"===t?e:"body"===t?e.body:null}},{key:"getHistory",value:function(){return window.history}},{key:"getLocation",value:function(){return window.location}},{key:"getBaseHref",value:function(e){var t,n=af||(af=document.querySelector("base"))?af.getAttribute("href"):null;return null==n?null:(t=n,ef||(ef=document.createElement("a")),ef.setAttribute("href",t),"/"===ef.pathname.charAt(0)?ef.pathname:"/"+ef.pathname)}},{key:"resetBaseElement",value:function(){af=null}},{key:"getUserAgent",value:function(){return window.navigator.userAgent}},{key:"performanceNow",value:function(){return window.performance&&window.performance.now?window.performance.now():(new Date).getTime()}},{key:"supportsCookies",value:function(){return!0}},{key:"getCookie",value:function(e){return uh(document.cookie,e)}}],[{key:"makeCurrent",value:function(){var e;e=new n,nd||(nd=e)}}]),n}(function(e){r(n,e);var t=a(n);function n(){return A(this,n),t.call(this)}return m(n,[{key:"supportsDOMEvents",value:function(){return!0}}]),n}(function(){return function e(){A(this,e)}}())),af=null,sf=new mi("TRANSITION_ID"),lf=[{provide:ic,useFactory:function(e,t,n){return function(){n.get(rc).donePromise.then(function(){var n=id();Array.prototype.slice.apply(t.querySelectorAll("style[ng-transition]")).filter(function(t){return t.getAttribute("ng-transition")===e}).forEach(function(e){return n.remove(e)})})}},deps:[sf,od,Fa],multi:!0}],uf=function(){function e(){A(this,e)}return m(e,[{key:"addToWindow",value:function(e){tt.getAngularTestability=function(t){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=e.findTestabilityInTree(t,n);if(null==i)throw new Error("Could not find testability for element.");return i},tt.getAllAngularTestabilities=function(){return e.getAllTestabilities()},tt.getAllAngularRootElements=function(){return e.getAllRootElements()},tt.frameworkStabilizers||(tt.frameworkStabilizers=[]),tt.frameworkStabilizers.push(function(e){var t=tt.getAllAngularTestabilities(),n=t.length,i=!1,r=function(t){i=i||t,0==--n&&e(i)};t.forEach(function(e){e.whenStable(r)})})}},{key:"findTestabilityInTree",value:function(e,t,n){if(null==t)return null;var i=e.getTestability(t);return null!=i?i:n?id().isShadowRoot(t)?this.findTestabilityInTree(e,t.host,!0):this.findTestabilityInTree(e,t.parentElement,!0):null}}],[{key:"init",value:function(){var t;t=new e,Rc=t}}]),e}(),cf=new mi("EventManagerPlugins"),df=((tf=function(){function e(t,n){var i=this;A(this,e),this._zone=n,this._eventNameToPlugin=new Map,t.forEach(function(e){return e.manager=i}),this._plugins=t.slice().reverse()}return m(e,[{key:"addEventListener",value:function(e,t,n){return this._findPluginFor(t).addEventListener(e,t,n)}},{key:"addGlobalEventListener",value:function(e,t,n){return this._findPluginFor(t).addGlobalEventListener(e,t,n)}},{key:"getZone",value:function(){return this._zone}},{key:"_findPluginFor",value:function(e){var t=this._eventNameToPlugin.get(e);if(t)return t;for(var n=this._plugins,i=0;i<n.length;i++){var r=n[i];if(r.supports(e))return this._eventNameToPlugin.set(e,r),r}throw new Error("No event manager plugin found for event "+e)}}]),e}()).\u0275fac=function(e){return new(e||tf)(Ri(cf),Ri(Ac))},tf.\u0275prov=Re({token:tf,factory:tf.\u0275fac}),tf),hf=function(){function e(t){A(this,e),this._doc=t}return m(e,[{key:"addGlobalEventListener",value:function(e,t,n){var i=id().getGlobalEventTarget(this._doc,e);if(!i)throw new Error("Unsupported event target ".concat(i," for event ").concat(t));return this.addEventListener(i,t,n)}}]),e}(),ff=((rf=function(){function e(){A(this,e),this._stylesSet=new Set}return m(e,[{key:"addStyles",value:function(e){var t=this,n=new Set;e.forEach(function(e){t._stylesSet.has(e)||(t._stylesSet.add(e),n.add(e))}),this.onStylesAdded(n)}},{key:"onStylesAdded",value:function(e){}},{key:"getAllStyles",value:function(){return Array.from(this._stylesSet)}}]),e}()).\u0275fac=function(e){return new(e||rf)},rf.\u0275prov=Re({token:rf,factory:rf.\u0275fac}),rf),pf=((nf=function(e){r(n,e);var t=a(n);function n(e){var i;return A(this,n),(i=t.call(this))._doc=e,i._hostNodes=new Set,i._styleNodes=new Set,i._hostNodes.add(e.head),i}return m(n,[{key:"_addStylesToHost",value:function(e,t){var n=this;e.forEach(function(e){var i=n._doc.createElement("style");i.textContent=e,n._styleNodes.add(t.appendChild(i))})}},{key:"addHost",value:function(e){this._addStylesToHost(this._stylesSet,e),this._hostNodes.add(e)}},{key:"removeHost",value:function(e){this._hostNodes.delete(e)}},{key:"onStylesAdded",value:function(e){var t=this;this._hostNodes.forEach(function(n){return t._addStylesToHost(e,n)})}},{key:"ngOnDestroy",value:function(){this._styleNodes.forEach(function(e){return id().remove(e)})}}]),n}(ff)).\u0275fac=function(e){return new(e||nf)(Ri(od))},nf.\u0275prov=Re({token:nf,factory:nf.\u0275fac}),nf),gf={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},vf=/%COMP%/g;function mf(e,t,n){for(var i=0;i<t.length;i++){var r=t[i];Array.isArray(r)?mf(e,r,n):(r=r.replace(vf,e),n.push(r))}return n}function yf(e){return function(t){if("__ngUnwrap__"===t)return e;!1===e(t)&&(t.preventDefault(),t.returnValue=!1)}}var bf,wf,_f,kf,xf,Af,Cf,Sf,Pf,Ef=((bf=function(){function e(t,n,i){A(this,e),this.eventManager=t,this.sharedStylesHost=n,this.appId=i,this.rendererByCompId=new Map,this.defaultRenderer=new Df(t)}return m(e,[{key:"createRenderer",value:function(e,t){if(!e||!t)return this.defaultRenderer;switch(t.encapsulation){case Xe.Emulated:var n=this.rendererByCompId.get(t.id);return n||(n=new Of(this.eventManager,this.sharedStylesHost,t,this.appId),this.rendererByCompId.set(t.id,n)),n.applyToHost(e),n;case 1:case Xe.ShadowDom:return new Mf(this.eventManager,this.sharedStylesHost,e,t);default:if(!this.rendererByCompId.has(t.id)){var i=mf(t.id,t.styles,[]);this.sharedStylesHost.addStyles(i),this.rendererByCompId.set(t.id,this.defaultRenderer)}return this.defaultRenderer}}},{key:"begin",value:function(){}},{key:"end",value:function(){}}]),e}()).\u0275fac=function(e){return new(e||bf)(Ri(df),Ri(pf),Ri(oc))},bf.\u0275prov=Re({token:bf,factory:bf.\u0275fac}),bf),Df=function(){function e(t){A(this,e),this.eventManager=t,this.data=Object.create(null)}return m(e,[{key:"destroy",value:function(){}},{key:"createElement",value:function(e,t){return t?document.createElementNS(gf[t]||t,e):document.createElement(e)}},{key:"createComment",value:function(e){return document.createComment(e)}},{key:"createText",value:function(e){return document.createTextNode(e)}},{key:"appendChild",value:function(e,t){e.appendChild(t)}},{key:"insertBefore",value:function(e,t,n){e&&e.insertBefore(t,n)}},{key:"removeChild",value:function(e,t){e&&e.removeChild(t)}},{key:"selectRootElement",value:function(e,t){var n="string"==typeof e?document.querySelector(e):e;if(!n)throw new Error('The selector "'.concat(e,'" did not match any elements'));return t||(n.textContent=""),n}},{key:"parentNode",value:function(e){return e.parentNode}},{key:"nextSibling",value:function(e){return e.nextSibling}},{key:"setAttribute",value:function(e,t,n,i){if(i){t=i+":"+t;var r=gf[i];r?e.setAttributeNS(r,t,n):e.setAttribute(t,n)}else e.setAttribute(t,n)}},{key:"removeAttribute",value:function(e,t,n){if(n){var i=gf[n];i?e.removeAttributeNS(i,t):e.removeAttribute("".concat(n,":").concat(t))}else e.removeAttribute(t)}},{key:"addClass",value:function(e,t){e.classList.add(t)}},{key:"removeClass",value:function(e,t){e.classList.remove(t)}},{key:"setStyle",value:function(e,t,n,i){i&(Fr.DashCase|Fr.Important)?e.style.setProperty(t,n,i&Fr.Important?"important":""):e.style[t]=n}},{key:"removeStyle",value:function(e,t,n){n&Fr.DashCase?e.style.removeProperty(t):e.style[t]=""}},{key:"setProperty",value:function(e,t,n){e[t]=n}},{key:"setValue",value:function(e,t){e.nodeValue=t}},{key:"listen",value:function(e,t,n){return"string"==typeof e?this.eventManager.addGlobalEventListener(e,t,yf(n)):this.eventManager.addEventListener(e,t,yf(n))}}]),e}(),Of=function(e){r(n,e);var t=a(n);function n(e,i,r,o){var a;A(this,n),(a=t.call(this,e)).component=r;var s=mf(o+"-"+r.id,r.styles,[]);return i.addStyles(s),a.contentAttr="_ngcontent-%COMP%".replace(vf,o+"-"+r.id),a.hostAttr="_nghost-%COMP%".replace(vf,o+"-"+r.id),a}return m(n,[{key:"applyToHost",value:function(e){i(c(n.prototype),"setAttribute",this).call(this,e,this.hostAttr,"")}},{key:"createElement",value:function(e,t){var r=i(c(n.prototype),"createElement",this).call(this,e,t);return i(c(n.prototype),"setAttribute",this).call(this,r,this.contentAttr,""),r}}]),n}(Df),Mf=function(e){r(n,e);var t=a(n);function n(e,i,r,o){var a;A(this,n),(a=t.call(this,e)).sharedStylesHost=i,a.hostEl=r,a.shadowRoot=r.attachShadow({mode:"open"}),a.sharedStylesHost.addHost(a.shadowRoot);for(var s=mf(o.id,o.styles,[]),l=0;l<s.length;l++){var u=document.createElement("style");u.textContent=s[l],a.shadowRoot.appendChild(u)}return a}return m(n,[{key:"nodeOrShadowRoot",value:function(e){return e===this.hostEl?this.shadowRoot:e}},{key:"destroy",value:function(){this.sharedStylesHost.removeHost(this.shadowRoot)}},{key:"appendChild",value:function(e,t){return i(c(n.prototype),"appendChild",this).call(this,this.nodeOrShadowRoot(e),t)}},{key:"insertBefore",value:function(e,t,r){return i(c(n.prototype),"insertBefore",this).call(this,this.nodeOrShadowRoot(e),t,r)}},{key:"removeChild",value:function(e,t){return i(c(n.prototype),"removeChild",this).call(this,this.nodeOrShadowRoot(e),t)}},{key:"parentNode",value:function(e){return this.nodeOrShadowRoot(i(c(n.prototype),"parentNode",this).call(this,this.nodeOrShadowRoot(e)))}}]),n}(Df),Tf=((wf=function(e){r(n,e);var t=a(n);function n(e){return A(this,n),t.call(this,e)}return m(n,[{key:"supports",value:function(e){return!0}},{key:"addEventListener",value:function(e,t,n){var i=this;return e.addEventListener(t,n,!1),function(){return i.removeEventListener(e,t,n)}}},{key:"removeEventListener",value:function(e,t,n){return e.removeEventListener(t,n)}}]),n}(hf)).\u0275fac=function(e){return new(e||wf)(Ri(od))},wf.\u0275prov=Re({token:wf,factory:wf.\u0275fac}),wf),If={pan:!0,panstart:!0,panmove:!0,panend:!0,pancancel:!0,panleft:!0,panright:!0,panup:!0,pandown:!0,pinch:!0,pinchstart:!0,pinchmove:!0,pinchend:!0,pinchcancel:!0,pinchin:!0,pinchout:!0,press:!0,pressup:!0,rotate:!0,rotatestart:!0,rotatemove:!0,rotateend:!0,rotatecancel:!0,swipe:!0,swipeleft:!0,swiperight:!0,swipeup:!0,swipedown:!0,tap:!0,doubletap:!0},Rf=new mi("HammerGestureConfig"),Lf=new mi("HammerLoader"),Ff=((_f=function(){function e(){A(this,e),this.events=[],this.overrides={}}return m(e,[{key:"buildHammer",value:function(e){var t=new Hammer(e,this.options);for(var n in t.get("pinch").set({enable:!0}),t.get("rotate").set({enable:!0}),this.overrides)t.get(n).set(this.overrides[n]);return t}}]),e}()).\u0275fac=function(e){return new(e||_f)},_f.\u0275prov=Re({token:_f,factory:_f.\u0275fac}),_f),Bf=[{provide:cf,useClass:(kf=function(e){r(n,e);var t=a(n);function n(e,i,r,o){var a;return A(this,n),(a=t.call(this,e))._config=i,a.console=r,a.loader=o,a._loaderPromise=null,a}return m(n,[{key:"supports",value:function(e){return!(!If.hasOwnProperty(e.toLowerCase())&&!this.isCustomEvent(e)||!window.Hammer&&!this.loader)}},{key:"addEventListener",value:function(e,t,n){var i=this,r=this.manager.getZone();if(t=t.toLowerCase(),!window.Hammer&&this.loader){this._loaderPromise=this._loaderPromise||this.loader();var o=!1,a=function(){o=!0};return this._loaderPromise.then(function(){window.Hammer?o||(a=i.addEventListener(e,t,n)):a=function(){}}).catch(function(){a=function(){}}),function(){a()}}return r.runOutsideAngular(function(){var o=i._config.buildHammer(e),a=function(e){r.runGuarded(function(){n(e)})};return o.on(t,a),function(){o.off(t,a),"function"==typeof o.destroy&&o.destroy()}})}},{key:"isCustomEvent",value:function(e){return this._config.events.indexOf(e)>-1}}]),n}(hf),kf.\u0275fac=function(e){return new(e||kf)(Ri(od),Ri(Rf),Ri(dc),Ri(Lf,8))},kf.\u0275prov=Re({token:kf,factory:kf.\u0275fac}),kf),multi:!0,deps:[od,Rf,dc,[new Hi,Lf]]},{provide:Rf,useClass:Ff,deps:[]}],Vf=((xf=function e(){A(this,e)}).\u0275fac=function(e){return new(e||xf)},xf.\u0275mod=mt({type:xf}),xf.\u0275inj=Fe({providers:Bf}),xf),zf=["alt","control","meta","shift"],Nf={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},Hf={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},jf={alt:function(e){return e.altKey},control:function(e){return e.ctrlKey},meta:function(e){return e.metaKey},shift:function(e){return e.shiftKey}},Uf=((Sf=function(e){r(n,e);var t=a(n);function n(e){return A(this,n),t.call(this,e)}return m(n,[{key:"supports",value:function(e){return null!=n.parseEventName(e)}},{key:"addEventListener",value:function(e,t,i){var r=n.parseEventName(t),o=n.eventCallback(r.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(function(){return id().onAndCancel(e,r.domEventName,o)})}}],[{key:"parseEventName",value:function(e){var t=e.toLowerCase().split("."),i=t.shift();if(0===t.length||"keydown"!==i&&"keyup"!==i)return null;var r=n._normalizeKey(t.pop()),o="";if(zf.forEach(function(e){var n=t.indexOf(e);n>-1&&(t.splice(n,1),o+=e+".")}),o+=r,0!=t.length||0===r.length)return null;var a={};return a.domEventName=i,a.fullKey=o,a}},{key:"getEventFullKey",value:function(e){var t="",n=function(e){var t=e.key;if(null==t){if(null==(t=e.keyIdentifier))return"Unidentified";t.startsWith("U+")&&(t=String.fromCharCode(parseInt(t.substring(2),16)),3===e.location&&Hf.hasOwnProperty(t)&&(t=Hf[t]))}return Nf[t]||t}(e);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),zf.forEach(function(i){i!=n&&(0,jf[i])(e)&&(t+=i+".")}),t+=n}},{key:"eventCallback",value:function(e,t,i){return function(r){n.getEventFullKey(r)===e&&i.runGuarded(function(){return t(r)})}}},{key:"_normalizeKey",value:function(e){switch(e){case"esc":return"escape";default:return e}}}]),n}(hf)).\u0275fac=function(e){return new(e||Sf)(Ri(od))},Sf.\u0275prov=Re({token:Sf,factory:Sf.\u0275fac}),Sf),Wf=((Cf=function e(){A(this,e)}).\u0275fac=function(e){return new(e||Cf)},Cf.\u0275prov=Re({factory:function(){return Ri(Gf)},token:Cf,providedIn:"root"}),Cf),Gf=((Af=function(e){r(n,e);var t=a(n);function n(e){var i;return A(this,n),(i=t.call(this))._doc=e,i}return m(n,[{key:"sanitize",value:function(e,t){if(null==t)return null;switch(e){case xr.NONE:return t;case xr.HTML:return Ji(t,"HTML")?Ki(t):_r(this._doc,String(t)).toString();case xr.STYLE:return Ji(t,"Style")?Ki(t):t;case xr.SCRIPT:if(Ji(t,"Script"))return Ki(t);throw new Error("unsafe value used in a script context");case xr.URL:return $i(t),Ji(t,"URL")?Ki(t):rr(String(t));case xr.RESOURCE_URL:if(Ji(t,"ResourceURL"))return Ki(t);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error("Unexpected SecurityContext ".concat(e," (see https://g.co/ng/security#xss)"))}}},{key:"bypassSecurityTrustHtml",value:function(e){return new qi(e)}},{key:"bypassSecurityTrustStyle",value:function(e){return new Yi(e)}},{key:"bypassSecurityTrustScript",value:function(e){return new Zi(e)}},{key:"bypassSecurityTrustUrl",value:function(e){return new Qi(e)}},{key:"bypassSecurityTrustResourceUrl",value:function(e){return new Xi(e)}}]),n}(Wf)).\u0275fac=function(e){return new(e||Af)(Ri(od))},Af.\u0275prov=Re({factory:function(){return e=Ri(wa),new Gf(e.get(od));var e},token:Af,providedIn:"root"}),Af),qf=Nc(Jc,"browser",[{provide:uc,useValue:"browser"},{provide:lc,useValue:function(){of.makeCurrent(),uf.init()},multi:!0},{provide:od,useFactory:function(){return function(e){Ft=e}(document),document},deps:[]}]),Yf=[[],{provide:ka,useValue:"root"},{provide:Or,useFactory:function(){return new Or},deps:[]},{provide:cf,useClass:Tf,multi:!0,deps:[od,Ac,uc]},{provide:cf,useClass:Uf,multi:!0,deps:[od]},[],{provide:Ef,useClass:Ef,deps:[df,pf,oc]},{provide:Pl,useExisting:Ef},{provide:ff,useExisting:pf},{provide:pf,useClass:pf,deps:[od]},{provide:Tc,useClass:Tc,deps:[Ac]},{provide:df,useClass:df,deps:[cf,Ac]},[]],Zf=((Pf=function(){function e(t){if(A(this,e),t)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}return m(e,null,[{key:"withServerTransition",value:function(t){return{ngModule:e,providers:[{provide:oc,useValue:t.appId},{provide:sf,useExisting:oc},lf]}}}]),e}()).\u0275fac=function(e){return new(e||Pf)(Ri(Pf,12))},Pf.\u0275mod=mt({type:Pf}),Pf.\u0275inj=Fe({providers:Yf,imports:[Zh,ed]}),Pf);"undefined"!=typeof window&&window;var Qf=function e(){A(this,e)};function Xf(e,t){return{type:7,name:e,definitions:t,options:{}}}function Kf(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:4,styles:t,timings:e}}function Jf(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:2,steps:e,options:t}}function $f(e){return{type:6,styles:e,offset:null}}function ep(e,t,n){return{type:0,name:e,styles:t,options:n}}function tp(e){return{type:5,steps:e}}function np(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:1,expr:e,animation:t,options:n}}function ip(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return{type:9,options:e}}function rp(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:11,selector:e,animation:t,options:n}}function op(e){Promise.resolve(null).then(e)}var ap=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;A(this,e),this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=t+n}return m(e,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[])}},{key:"onStart",value:function(e){this._onStartFns.push(e)}},{key:"onDone",value:function(e){this._onDoneFns.push(e)}},{key:"onDestroy",value:function(e){this._onDestroyFns.push(e)}},{key:"hasStarted",value:function(){return this._started}},{key:"init",value:function(){}},{key:"play",value:function(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}},{key:"triggerMicrotask",value:function(){var e=this;op(function(){return e._onFinish()})}},{key:"_onStart",value:function(){this._onStartFns.forEach(function(e){return e()}),this._onStartFns=[]}},{key:"pause",value:function(){}},{key:"restart",value:function(){}},{key:"finish",value:function(){this._onFinish()}},{key:"destroy",value:function(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(function(e){return e()}),this._onDestroyFns=[])}},{key:"reset",value:function(){}},{key:"setPosition",value:function(e){this._position=this.totalTime?e*this.totalTime:1}},{key:"getPosition",value:function(){return this.totalTime?this._position/this.totalTime:1}},{key:"triggerCallback",value:function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(function(e){return e()}),t.length=0}}]),e}(),sp=function(){function e(t){var n=this;A(this,e),this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;var i=0,r=0,o=0,a=this.players.length;0==a?op(function(){return n._onFinish()}):this.players.forEach(function(e){e.onDone(function(){++i==a&&n._onFinish()}),e.onDestroy(function(){++r==a&&n._onDestroy()}),e.onStart(function(){++o==a&&n._onStart()})}),this.totalTime=this.players.reduce(function(e,t){return Math.max(e,t.totalTime)},0)}return m(e,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[])}},{key:"init",value:function(){this.players.forEach(function(e){return e.init()})}},{key:"onStart",value:function(e){this._onStartFns.push(e)}},{key:"_onStart",value:function(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(function(e){return e()}),this._onStartFns=[])}},{key:"onDone",value:function(e){this._onDoneFns.push(e)}},{key:"onDestroy",value:function(e){this._onDestroyFns.push(e)}},{key:"hasStarted",value:function(){return this._started}},{key:"play",value:function(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(function(e){return e.play()})}},{key:"pause",value:function(){this.players.forEach(function(e){return e.pause()})}},{key:"restart",value:function(){this.players.forEach(function(e){return e.restart()})}},{key:"finish",value:function(){this._onFinish(),this.players.forEach(function(e){return e.finish()})}},{key:"destroy",value:function(){this._onDestroy()}},{key:"_onDestroy",value:function(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(function(e){return e.destroy()}),this._onDestroyFns.forEach(function(e){return e()}),this._onDestroyFns=[])}},{key:"reset",value:function(){this.players.forEach(function(e){return e.reset()}),this._destroyed=!1,this._finished=!1,this._started=!1}},{key:"setPosition",value:function(e){var t=e*this.totalTime;this.players.forEach(function(e){var n=e.totalTime?Math.min(1,t/e.totalTime):1;e.setPosition(n)})}},{key:"getPosition",value:function(){var e=this.players.reduce(function(e,t){return null===e||t.totalTime>e.totalTime?t:e},null);return null!=e?e.getPosition():0}},{key:"beforeDestroy",value:function(){this.players.forEach(function(e){e.beforeDestroy&&e.beforeDestroy()})}},{key:"triggerCallback",value:function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(function(e){return e()}),t.length=0}}]),e}();function lp(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function up(e){switch(e.length){case 0:return new ap;case 1:return e[0];default:return new sp(e)}}function cp(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},a=[],s=[],l=-1,u=null;if(i.forEach(function(e){var n=e.offset,i=n==l,c=i&&u||{};Object.keys(e).forEach(function(n){var i=n,s=e[n];if("offset"!==n)switch(i=t.normalizePropertyName(i,a),s){case"!":s=r[n];break;case"*":s=o[n];break;default:s=t.normalizeStyleValue(n,i,s,a)}c[i]=s}),i||s.push(c),u=c,l=n}),a.length){var c="\n - ";throw new Error("Unable to animate due to the following errors:".concat(c).concat(a.join(c)))}return s}function dp(e,t,n,i){switch(t){case"start":e.onStart(function(){return i(n&&hp(n,"start",e))});break;case"done":e.onDone(function(){return i(n&&hp(n,"done",e))});break;case"destroy":e.onDestroy(function(){return i(n&&hp(n,"destroy",e))})}}function hp(e,t,n){var i=n.totalTime,r=fp(e.element,e.triggerName,e.fromState,e.toState,t||e.phaseName,null==i?e.totalTime:i,!!n.disabled),o=e._data;return null!=o&&(r._data=o),r}function fp(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,a=arguments.length>6?arguments[6]:void 0;return{element:e,triggerName:t,fromState:n,toState:i,phaseName:r,totalTime:o,disabled:!!a}}function pp(e,t,n){var i;return e instanceof Map?(i=e.get(t))||e.set(t,i=n):(i=e[t])||(i=e[t]=n),i}function gp(e){var t=e.indexOf(":");return[e.substring(1,t),e.substr(t+1)]}var vp=function(e,t){return!1},mp=function(e,t){return!1},yp=function(e,t,n){return[]},bp=lp();(bp||"undefined"!=typeof Element)&&(vp=function(e,t){return e.contains(t)},mp=function(){if(bp||Element.prototype.matches)return function(e,t){return e.matches(t)};var e=Element.prototype,t=e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector;return t?function(e,n){return t.apply(e,[n])}:mp}(),yp=function(e,t,n){var i=[];if(n)for(var r=e.querySelectorAll(t),o=0;o<r.length;o++)i.push(r[o]);else{var a=e.querySelector(t);a&&i.push(a)}return i});var wp=null,_p=!1;function kp(e){wp||(wp=("undefined"!=typeof document?document.body:null)||{},_p=!!wp.style&&"WebkitAppearance"in wp.style);var t=!0;return wp.style&&!function(e){return"ebkit"==e.substring(1,6)}(e)&&(!(t=e in wp.style)&&_p)&&(t="Webkit"+e.charAt(0).toUpperCase()+e.substr(1)in wp.style),t}var xp=mp,Ap=vp,Cp=yp;function Sp(e){var t={};return Object.keys(e).forEach(function(n){var i=n.replace(/([a-z])([A-Z])/g,"$1-$2");t[i]=e[n]}),t}var Pp,Ep=((Pp=function(){function e(){A(this,e)}return m(e,[{key:"validateStyleProperty",value:function(e){return kp(e)}},{key:"matchesElement",value:function(e,t){return xp(e,t)}},{key:"containsElement",value:function(e,t){return Ap(e,t)}},{key:"query",value:function(e,t,n){return Cp(e,t,n)}},{key:"computeStyle",value:function(e,t,n){return n||""}},{key:"animate",value:function(e,t,n,i,r){return new ap(n,i)}}]),e}()).\u0275fac=function(e){return new(e||Pp)},Pp.\u0275prov=Re({token:Pp,factory:Pp.\u0275fac}),Pp),Dp=function(){var e=function e(){A(this,e)};return e.NOOP=new Ep,e}();function Op(e){if("number"==typeof e)return e;var t=e.match(/^(-?[\.\d]+)(m?s)/);return!t||t.length<2?0:Mp(parseFloat(t[1]),t[2])}function Mp(e,t){switch(t){case"s":return 1e3*e;default:return e}}function Tp(e,t,n){return e.hasOwnProperty("duration")?e:function(e,t,n){var i,r=0,o="";if("string"==typeof e){var a=e.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===a)return t.push('The provided timing value "'.concat(e,'" is invalid.')),{duration:0,delay:0,easing:""};i=Mp(parseFloat(a[1]),a[2]);var s=a[3];null!=s&&(r=Mp(parseFloat(s),a[4]));var l=a[5];l&&(o=l)}else i=e;if(!n){var u=!1,c=t.length;i<0&&(t.push("Duration values below 0 are not allowed for this animation step."),u=!0),r<0&&(t.push("Delay values below 0 are not allowed for this animation step."),u=!0),u&&t.splice(c,0,'The provided timing value "'.concat(e,'" is invalid.'))}return{duration:i,delay:r,easing:o}}(e,t,n)}function Ip(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).forEach(function(n){t[n]=e[n]}),t}function Rp(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(t)for(var i in e)n[i]=e[i];else Ip(e,n);return n}function Lp(e,t,n){return n?t+":"+n+";":""}function Fp(e){for(var t="",n=0;n<e.style.length;n++){var i=e.style.item(n);t+=Lp(0,i,e.style.getPropertyValue(i))}for(var r in e.style)e.style.hasOwnProperty(r)&&!r.startsWith("_")&&(t+=Lp(0,r.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),e.style[r]));e.setAttribute("style",t)}function Bp(e,t,n){e.style&&(Object.keys(t).forEach(function(i){var r=Gp(i);n&&!n.hasOwnProperty(i)&&(n[i]=e.style[r]),e.style[r]=t[i]}),lp()&&Fp(e))}function Vp(e,t){e.style&&(Object.keys(t).forEach(function(t){var n=Gp(t);e.style[n]=""}),lp()&&Fp(e))}function zp(e){return Array.isArray(e)?1==e.length?e[0]:Jf(e):e}var Np=new RegExp("{{\\s*(.+?)\\s*}}","g");function Hp(e){var t=[];if("string"==typeof e){for(var n;n=Np.exec(e);)t.push(n[1]);Np.lastIndex=0}return t}function jp(e,t,n){var i=e.toString(),r=i.replace(Np,function(e,i){var r=t[i];return t.hasOwnProperty(i)||(n.push("Please provide a value for the animation param "+i),r=""),r.toString()});return r==i?e:r}function Up(e){for(var t=[],n=e.next();!n.done;)t.push(n.value),n=e.next();return t}var Wp=/-+([a-z0-9])/g;function Gp(e){return e.replace(Wp,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t[1].toUpperCase()})}function qp(e,t){return 0===e||0===t}function Yp(e,t,n){var i=Object.keys(n);if(i.length&&t.length){var r=t[0],o=[];if(i.forEach(function(e){r.hasOwnProperty(e)||o.push(e),r[e]=n[e]}),o.length)for(var a=function(){var n=t[s];o.forEach(function(t){n[t]=Qp(e,t)})},s=1;s<t.length;s++)a()}return t}function Zp(e,t,n){switch(t.type){case 7:return e.visitTrigger(t,n);case 0:return e.visitState(t,n);case 1:return e.visitTransition(t,n);case 2:return e.visitSequence(t,n);case 3:return e.visitGroup(t,n);case 4:return e.visitAnimate(t,n);case 5:return e.visitKeyframes(t,n);case 6:return e.visitStyle(t,n);case 8:return e.visitReference(t,n);case 9:return e.visitAnimateChild(t,n);case 10:return e.visitAnimateRef(t,n);case 11:return e.visitQuery(t,n);case 12:return e.visitStagger(t,n);default:throw new Error("Unable to resolve animation metadata node #"+t.type)}}function Qp(e,t){return window.getComputedStyle(e)[t]}var Xp=new Set(["true","1"]),Kp=new Set(["false","0"]);function Jp(e,t){var n=Xp.has(e)||Kp.has(e),i=Xp.has(t)||Kp.has(t);return function(r,o){var a="*"==e||e==r,s="*"==t||t==o;return!a&&n&&"boolean"==typeof r&&(a=r?Xp.has(e):Kp.has(e)),!s&&i&&"boolean"==typeof o&&(s=o?Xp.has(t):Kp.has(t)),a&&s}}var $p=new RegExp("s*:selfs*,?","g");function eg(e,t,n){return new tg(e).build(t,n)}var tg=function(){function e(t){A(this,e),this._driver=t}return m(e,[{key:"build",value:function(e,t){var n=new ng(t);return this._resetContextStyleTimingState(n),Zp(this,zp(e),n)}},{key:"_resetContextStyleTimingState",value:function(e){e.currentQuerySelector="",e.collectedStyles={},e.collectedStyles[""]={},e.currentTime=0}},{key:"visitTrigger",value:function(e,t){var n=this,i=t.queryCount=0,r=t.depCount=0,o=[],a=[];return"@"==e.name.charAt(0)&&t.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),e.definitions.forEach(function(e){if(n._resetContextStyleTimingState(t),0==e.type){var s=e,l=s.name;l.toString().split(/\s*,\s*/).forEach(function(e){s.name=e,o.push(n.visitState(s,t))}),s.name=l}else if(1==e.type){var u=n.visitTransition(e,t);i+=u.queryCount,r+=u.depCount,a.push(u)}else t.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:e.name,states:o,transitions:a,queryCount:i,depCount:r,options:null}}},{key:"visitState",value:function(e,t){var n=this.visitStyle(e.styles,t),i=e.options&&e.options.params||null;if(n.containsDynamicStyles){var r=new Set,o=i||{};if(n.styles.forEach(function(e){if(ig(e)){var t=e;Object.keys(t).forEach(function(e){Hp(t[e]).forEach(function(e){o.hasOwnProperty(e)||r.add(e)})})}}),r.size){var a=Up(r.values());t.errors.push('state("'.concat(e.name,'", ...) must define default values for all the following style substitutions: ').concat(a.join(", ")))}}return{type:0,name:e.name,style:n,options:i?{params:i}:null}}},{key:"visitTransition",value:function(e,t){t.queryCount=0,t.depCount=0;var n,i,r,o=Zp(this,zp(e.animation),t);return{type:1,matchers:(n=e.expr,i=t.errors,r=[],"string"==typeof n?n.split(/\s*,\s*/).forEach(function(e){return function(e,t,n){if(":"==e[0]){var i=function(e,t){switch(e){case":enter":return"void => *";case":leave":return"* => void";case":increment":return function(e,t){return parseFloat(t)>parseFloat(e)};case":decrement":return function(e,t){return parseFloat(t)<parseFloat(e)};default:return t.push('The transition alias value "'.concat(e,'" is not supported')),"* => *"}}(e,n);if("function"==typeof i)return void t.push(i);e=i}var r=e.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==r||r.length<4)return n.push('The provided transition expression "'.concat(e,'" is not supported')),t;var o=r[1],a=r[2],s=r[3];t.push(Jp(o,s)),"<"!=a[0]||"*"==o&&"*"==s||t.push(Jp(s,o))}(e,r,i)}):r.push(n),r),animation:o,queryCount:t.queryCount,depCount:t.depCount,options:rg(e.options)}}},{key:"visitSequence",value:function(e,t){var n=this;return{type:2,steps:e.steps.map(function(e){return Zp(n,e,t)}),options:rg(e.options)}}},{key:"visitGroup",value:function(e,t){var n=this,i=t.currentTime,r=0,o=e.steps.map(function(e){t.currentTime=i;var o=Zp(n,e,t);return r=Math.max(r,t.currentTime),o});return t.currentTime=r,{type:3,steps:o,options:rg(e.options)}}},{key:"visitAnimate",value:function(e,t){var n,i=function(e,t){var n=null;if(e.hasOwnProperty("duration"))n=e;else if("number"==typeof e)return og(Tp(e,t).duration,0,"");var i=e;if(i.split(/\s+/).some(function(e){return"{"==e.charAt(0)&&"{"==e.charAt(1)})){var r=og(0,0,"");return r.dynamic=!0,r.strValue=i,r}return og((n=n||Tp(i,t)).duration,n.delay,n.easing)}(e.timings,t.errors);t.currentAnimateTimings=i;var r=e.styles?e.styles:$f({});if(5==r.type)n=this.visitKeyframes(r,t);else{var o=e.styles,a=!1;if(!o){a=!0;var s={};i.easing&&(s.easing=i.easing),o=$f(s)}t.currentTime+=i.duration+i.delay;var l=this.visitStyle(o,t);l.isEmptyStep=a,n=l}return t.currentAnimateTimings=null,{type:4,timings:i,style:n,options:null}}},{key:"visitStyle",value:function(e,t){var n=this._makeStyleAst(e,t);return this._validateStyleAst(n,t),n}},{key:"_makeStyleAst",value:function(e,t){var n=[];Array.isArray(e.styles)?e.styles.forEach(function(e){"string"==typeof e?"*"==e?n.push(e):t.errors.push("The provided style string value ".concat(e," is not allowed.")):n.push(e)}):n.push(e.styles);var i=!1,r=null;return n.forEach(function(e){if(ig(e)){var t=e,n=t.easing;if(n&&(r=n,delete t.easing),!i)for(var o in t)if(t[o].toString().indexOf("{{")>=0){i=!0;break}}}),{type:6,styles:n,easing:r,offset:e.offset,containsDynamicStyles:i,options:null}}},{key:"_validateStyleAst",value:function(e,t){var n=this,i=t.currentAnimateTimings,r=t.currentTime,o=t.currentTime;i&&o>0&&(o-=i.duration+i.delay),e.styles.forEach(function(e){"string"!=typeof e&&Object.keys(e).forEach(function(i){if(n._driver.validateStyleProperty(i)){var a,s,l,u,c,d=t.collectedStyles[t.currentQuerySelector],h=d[i],f=!0;h&&(o!=r&&o>=h.startTime&&r<=h.endTime&&(t.errors.push('The CSS property "'.concat(i,'" that exists between the times of "').concat(h.startTime,'ms" and "').concat(h.endTime,'ms" is also being animated in a parallel animation between the times of "').concat(o,'ms" and "').concat(r,'ms"')),f=!1),o=h.startTime),f&&(d[i]={startTime:o,endTime:r}),t.options&&(a=e[i],s=t.options,l=t.errors,u=s.params||{},(c=Hp(a)).length&&c.forEach(function(e){u.hasOwnProperty(e)||l.push("Unable to resolve the local animation param ".concat(e," in the given list of values"))}))}else t.errors.push('The provided animation property "'.concat(i,'" is not a supported CSS property for animations'))})})}},{key:"visitKeyframes",value:function(e,t){var n=this,i={type:5,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push("keyframes() must be placed inside of a call to animate()"),i;var r=0,o=[],a=!1,s=!1,l=0,u=e.steps.map(function(e){var i=n._makeStyleAst(e,t),u=null!=i.offset?i.offset:function(e){if("string"==typeof e)return null;var t=null;if(Array.isArray(e))e.forEach(function(e){if(ig(e)&&e.hasOwnProperty("offset")){var n=e;t=parseFloat(n.offset),delete n.offset}});else if(ig(e)&&e.hasOwnProperty("offset")){var n=e;t=parseFloat(n.offset),delete n.offset}return t}(i.styles),c=0;return null!=u&&(r++,c=i.offset=u),s=s||c<0||c>1,a=a||c<l,l=c,o.push(c),i});s&&t.errors.push("Please ensure that all keyframe offsets are between 0 and 1"),a&&t.errors.push("Please ensure that all keyframe offsets are in order");var c=e.steps.length,d=0;r>0&&r<c?t.errors.push("Not all style() steps within the declared keyframes() contain offsets"):0==r&&(d=1/(c-1));var h=c-1,f=t.currentTime,p=t.currentAnimateTimings,g=p.duration;return u.forEach(function(e,r){var a=d>0?r==h?1:d*r:o[r],s=a*g;t.currentTime=f+p.delay+s,p.duration=s,n._validateStyleAst(e,t),e.offset=a,i.styles.push(e)}),i}},{key:"visitReference",value:function(e,t){return{type:8,animation:Zp(this,zp(e.animation),t),options:rg(e.options)}}},{key:"visitAnimateChild",value:function(e,t){return t.depCount++,{type:9,options:rg(e.options)}}},{key:"visitAnimateRef",value:function(e,t){return{type:10,animation:this.visitReference(e.animation,t),options:rg(e.options)}}},{key:"visitQuery",value:function(e,t){var n=t.currentQuerySelector,i=e.options||{};t.queryCount++,t.currentQuery=e;var r=f(function(e){var t=!!e.split(/\s*,\s*/).find(function(e){return":self"==e});return t&&(e=e.replace($p,"")),[e=e.replace(/@\*/g,".ng-trigger").replace(/@\w+/g,function(e){return".ng-trigger-"+e.substr(1)}).replace(/:animating/g,".ng-animating"),t]}(e.selector),2),o=r[0],a=r[1];t.currentQuerySelector=n.length?n+" "+o:o,pp(t.collectedStyles,t.currentQuerySelector,{});var s=Zp(this,zp(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=n,{type:11,selector:o,limit:i.limit||0,optional:!!i.optional,includeSelf:a,animation:s,originalSelector:e.selector,options:rg(e.options)}}},{key:"visitStagger",value:function(e,t){t.currentQuery||t.errors.push("stagger() can only be used inside of query()");var n="full"===e.timings?{duration:0,delay:0,easing:"full"}:Tp(e.timings,t.errors,!0);return{type:12,animation:Zp(this,zp(e.animation),t),timings:n,options:null}}}]),e}(),ng=function e(t){A(this,e),this.errors=t,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null};function ig(e){return!Array.isArray(e)&&"object"==typeof e}function rg(e){var t;return e?(e=Ip(e)).params&&(e.params=(t=e.params)?Ip(t):null):e={},e}function og(e,t,n){return{duration:e,delay:t,easing:n}}function ag(e,t,n,i,r,o){var a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,s=arguments.length>7&&void 0!==arguments[7]&&arguments[7];return{type:1,element:e,keyframes:t,preStyleProps:n,postStyleProps:i,duration:r,delay:o,totalTime:r+o,easing:a,subTimeline:s}}var sg=function(){function e(){A(this,e),this._map=new Map}return m(e,[{key:"consume",value:function(e){var t=this._map.get(e);return t?this._map.delete(e):t=[],t}},{key:"append",value:function(e,t){var n,i=this._map.get(e);i||this._map.set(e,i=[]),(n=i).push.apply(n,y(t))}},{key:"has",value:function(e){return this._map.has(e)}},{key:"clear",value:function(){this._map.clear()}}]),e}(),lg=new RegExp(":enter","g"),ug=new RegExp(":leave","g");function cg(e,t,n,i,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:{},s=arguments.length>7?arguments[7]:void 0,l=arguments.length>8?arguments[8]:void 0,u=arguments.length>9&&void 0!==arguments[9]?arguments[9]:[];return(new dg).buildKeyframes(e,t,n,i,r,o,a,s,l,u)}var dg=function(){function e(){A(this,e)}return m(e,[{key:"buildKeyframes",value:function(e,t,n,i,r,o,a,s,l){var u=arguments.length>9&&void 0!==arguments[9]?arguments[9]:[];l=l||new sg;var c=new fg(e,t,l,i,r,u,[]);c.options=s,c.currentTimeline.setStyles([o],null,c.errors,s),Zp(this,n,c);var d=c.timelines.filter(function(e){return e.containsAnimation()});if(d.length&&Object.keys(a).length){var h=d[d.length-1];h.allowOnlyTimelineStyles()||h.setStyles([a],null,c.errors,s)}return d.length?d.map(function(e){return e.buildKeyframes()}):[ag(t,[],[],[],0,0,"",!1)]}},{key:"visitTrigger",value:function(e,t){}},{key:"visitState",value:function(e,t){}},{key:"visitTransition",value:function(e,t){}},{key:"visitAnimateChild",value:function(e,t){var n=t.subInstructions.consume(t.element);if(n){var i=t.createSubContext(e.options),r=t.currentTimeline.currentTime,o=this._visitSubInstructions(n,i,i.options);r!=o&&t.transformIntoNewTimeline(o)}t.previousNode=e}},{key:"visitAnimateRef",value:function(e,t){var n=t.createSubContext(e.options);n.transformIntoNewTimeline(),this.visitReference(e.animation,n),t.transformIntoNewTimeline(n.currentTimeline.currentTime),t.previousNode=e}},{key:"_visitSubInstructions",value:function(e,t,n){var i=t.currentTimeline.currentTime,r=null!=n.duration?Op(n.duration):null,o=null!=n.delay?Op(n.delay):null;return 0!==r&&e.forEach(function(e){var n=t.appendInstructionToTimeline(e,r,o);i=Math.max(i,n.duration+n.delay)}),i}},{key:"visitReference",value:function(e,t){t.updateOptions(e.options,!0),Zp(this,e.animation,t),t.previousNode=e}},{key:"visitSequence",value:function(e,t){var n=this,i=t.subContextCount,r=t,o=e.options;if(o&&(o.params||o.delay)&&((r=t.createSubContext(o)).transformIntoNewTimeline(),null!=o.delay)){6==r.previousNode.type&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=hg);var a=Op(o.delay);r.delayNextStep(a)}e.steps.length&&(e.steps.forEach(function(e){return Zp(n,e,r)}),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>i&&r.transformIntoNewTimeline()),t.previousNode=e}},{key:"visitGroup",value:function(e,t){var n=this,i=[],r=t.currentTimeline.currentTime,o=e.options&&e.options.delay?Op(e.options.delay):0;e.steps.forEach(function(a){var s=t.createSubContext(e.options);o&&s.delayNextStep(o),Zp(n,a,s),r=Math.max(r,s.currentTimeline.currentTime),i.push(s.currentTimeline)}),i.forEach(function(e){return t.currentTimeline.mergeTimelineCollectedStyles(e)}),t.transformIntoNewTimeline(r),t.previousNode=e}},{key:"_visitTiming",value:function(e,t){if(e.dynamic){var n=e.strValue;return Tp(t.params?jp(n,t.params,t.errors):n,t.errors)}return{duration:e.duration,delay:e.delay,easing:e.easing}}},{key:"visitAnimate",value:function(e,t){var n=t.currentAnimateTimings=this._visitTiming(e.timings,t),i=t.currentTimeline;n.delay&&(t.incrementTime(n.delay),i.snapshotCurrentStyles());var r=e.style;5==r.type?this.visitKeyframes(r,t):(t.incrementTime(n.duration),this.visitStyle(r,t),i.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e}},{key:"visitStyle",value:function(e,t){var n=t.currentTimeline,i=t.currentAnimateTimings;!i&&n.getCurrentStyleProperties().length&&n.forwardFrame();var r=i&&i.easing||e.easing;e.isEmptyStep?n.applyEmptyStep(r):n.setStyles(e.styles,r,t.errors,t.options),t.previousNode=e}},{key:"visitKeyframes",value:function(e,t){var n=t.currentAnimateTimings,i=t.currentTimeline.duration,r=n.duration,o=t.createSubContext().currentTimeline;o.easing=n.easing,e.styles.forEach(function(e){o.forwardTime((e.offset||0)*r),o.setStyles(e.styles,e.easing,t.errors,t.options),o.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(o),t.transformIntoNewTimeline(i+r),t.previousNode=e}},{key:"visitQuery",value:function(e,t){var n=this,i=t.currentTimeline.currentTime,r=e.options||{},o=r.delay?Op(r.delay):0;o&&(6===t.previousNode.type||0==i&&t.currentTimeline.getCurrentStyleProperties().length)&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=hg);var a=i,s=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!r.optional,t.errors);t.currentQueryTotal=s.length;var l=null;s.forEach(function(i,r){t.currentQueryIndex=r;var s=t.createSubContext(e.options,i);o&&s.delayNextStep(o),i===t.element&&(l=s.currentTimeline),Zp(n,e.animation,s),s.currentTimeline.applyStylesToKeyframe(),a=Math.max(a,s.currentTimeline.currentTime)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(a),l&&(t.currentTimeline.mergeTimelineCollectedStyles(l),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e}},{key:"visitStagger",value:function(e,t){var n=t.parentContext,i=t.currentTimeline,r=e.timings,o=Math.abs(r.duration),a=o*(t.currentQueryTotal-1),s=o*t.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":s=a-s;break;case"full":s=n.currentStaggerTime}var l=t.currentTimeline;s&&l.delayNextStep(s);var u=l.currentTime;Zp(this,e.animation,t),t.previousNode=e,n.currentStaggerTime=i.currentTime-u+(i.startTime-n.currentTimeline.startTime)}}]),e}(),hg={},fg=function(){function e(t,n,i,r,o,a,s,l){A(this,e),this._driver=t,this.element=n,this.subInstructions=i,this._enterClassName=r,this._leaveClassName=o,this.errors=a,this.timelines=s,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=hg,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new pg(this._driver,n,0),s.push(this.currentTimeline)}return m(e,[{key:"params",get:function(){return this.options.params}},{key:"updateOptions",value:function(e,t){var n=this;if(e){var i=e,r=this.options;null!=i.duration&&(r.duration=Op(i.duration)),null!=i.delay&&(r.delay=Op(i.delay));var o=i.params;if(o){var a=r.params;a||(a=this.options.params={}),Object.keys(o).forEach(function(e){t&&a.hasOwnProperty(e)||(a[e]=jp(o[e],a,n.errors))})}}}},{key:"_copyOptions",value:function(){var e={};if(this.options){var t=this.options.params;if(t){var n=e.params={};Object.keys(t).forEach(function(e){n[e]=t[e]})}}return e}},{key:"createSubContext",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1?arguments[1]:void 0,i=arguments.length>2?arguments[2]:void 0,r=n||this.element,o=new e(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,i||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(t),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o}},{key:"transformIntoNewTimeline",value:function(e){return this.previousNode=hg,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}},{key:"appendInstructionToTimeline",value:function(e,t,n){var i={duration:null!=t?t:e.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+e.delay,easing:""},r=new gg(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,i,e.stretchStartingKeyframe);return this.timelines.push(r),i}},{key:"incrementTime",value:function(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}},{key:"delayNextStep",value:function(e){e>0&&this.currentTimeline.delayNextStep(e)}},{key:"invokeQuery",value:function(e,t,n,i,r,o){var a=[];if(i&&a.push(this.element),e.length>0){e=(e=e.replace(lg,"."+this._enterClassName)).replace(ug,"."+this._leaveClassName);var s=this._driver.query(this.element,e,1!=n);0!==n&&(s=n<0?s.slice(s.length+n,s.length):s.slice(0,n)),a.push.apply(a,y(s))}return r||0!=a.length||o.push('`query("'.concat(t,'")` returned zero elements. (Use `query("').concat(t,'", { optional: true })` if you wish to allow this.)')),a}}]),e}(),pg=function(){function e(t,n,i,r){A(this,e),this._driver=t,this.element=n,this.startTime=i,this._elementTimelineStylesLookup=r,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(n),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(n,this._localTimelineStyles)),this._loadKeyframe()}return m(e,[{key:"containsAnimation",value:function(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}},{key:"getCurrentStyleProperties",value:function(){return Object.keys(this._currentKeyframe)}},{key:"currentTime",get:function(){return this.startTime+this.duration}},{key:"delayNextStep",value:function(e){var t=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e}},{key:"fork",value:function(t,n){return this.applyStylesToKeyframe(),new e(this._driver,t,n||this.currentTime,this._elementTimelineStylesLookup)}},{key:"_loadKeyframe",value:function(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}},{key:"forwardFrame",value:function(){this.duration+=1,this._loadKeyframe()}},{key:"forwardTime",value:function(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}},{key:"_updateStyle",value:function(e,t){this._localTimelineStyles[e]=t,this._globalTimelineStyles[e]=t,this._styleSummary[e]={time:this.currentTime,value:t}}},{key:"allowOnlyTimelineStyles",value:function(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}},{key:"applyEmptyStep",value:function(e){var t=this;e&&(this._previousKeyframe.easing=e),Object.keys(this._globalTimelineStyles).forEach(function(e){t._backFill[e]=t._globalTimelineStyles[e]||"*",t._currentKeyframe[e]="*"}),this._currentEmptyStepKeyframe=this._currentKeyframe}},{key:"setStyles",value:function(e,t,n,i){var r=this;t&&(this._previousKeyframe.easing=t);var o=i&&i.params||{},a=function(e,t){var n,i={};return e.forEach(function(e){"*"===e?(n=n||Object.keys(t)).forEach(function(e){i[e]="*"}):Rp(e,!1,i)}),i}(e,this._globalTimelineStyles);Object.keys(a).forEach(function(e){var t=jp(a[e],o,n);r._pendingStyles[e]=t,r._localTimelineStyles.hasOwnProperty(e)||(r._backFill[e]=r._globalTimelineStyles.hasOwnProperty(e)?r._globalTimelineStyles[e]:"*"),r._updateStyle(e,t)})}},{key:"applyStylesToKeyframe",value:function(){var e=this,t=this._pendingStyles,n=Object.keys(t);0!=n.length&&(this._pendingStyles={},n.forEach(function(n){e._currentKeyframe[n]=t[n]}),Object.keys(this._localTimelineStyles).forEach(function(t){e._currentKeyframe.hasOwnProperty(t)||(e._currentKeyframe[t]=e._localTimelineStyles[t])}))}},{key:"snapshotCurrentStyles",value:function(){var e=this;Object.keys(this._localTimelineStyles).forEach(function(t){var n=e._localTimelineStyles[t];e._pendingStyles[t]=n,e._updateStyle(t,n)})}},{key:"getFinalKeyframe",value:function(){return this._keyframes.get(this.duration)}},{key:"properties",get:function(){var e=[];for(var t in this._currentKeyframe)e.push(t);return e}},{key:"mergeTimelineCollectedStyles",value:function(e){var t=this;Object.keys(e._styleSummary).forEach(function(n){var i=t._styleSummary[n],r=e._styleSummary[n];(!i||r.time>i.time)&&t._updateStyle(n,r.value)})}},{key:"buildKeyframes",value:function(){var e=this;this.applyStylesToKeyframe();var t=new Set,n=new Set,i=1===this._keyframes.size&&0===this.duration,r=[];this._keyframes.forEach(function(o,a){var s=Rp(o,!0);Object.keys(s).forEach(function(e){var i=s[e];"!"==i?t.add(e):"*"==i&&n.add(e)}),i||(s.offset=a/e.duration),r.push(s)});var o=t.size?Up(t.values()):[],a=n.size?Up(n.values()):[];if(i){var s=r[0],l=Ip(s);s.offset=0,l.offset=1,r=[s,l]}return ag(this.element,r,o,a,this.duration,this.startTime,this.easing,!1)}}]),e}(),gg=function(e){r(n,e);var t=a(n);function n(e,i,r,o,a,s){var l,u=arguments.length>6&&void 0!==arguments[6]&&arguments[6];return A(this,n),(l=t.call(this,e,i,s.delay)).element=i,l.keyframes=r,l.preStyleProps=o,l.postStyleProps=a,l._stretchStartingKeyframe=u,l.timings={duration:s.duration,delay:s.delay,easing:s.easing},l}return m(n,[{key:"containsAnimation",value:function(){return this.keyframes.length>1}},{key:"buildKeyframes",value:function(){var e=this.keyframes,t=this.timings,n=t.delay,i=t.duration,r=t.easing;if(this._stretchStartingKeyframe&&n){var o=[],a=i+n,s=n/a,l=Rp(e[0],!1);l.offset=0,o.push(l);var u=Rp(e[0],!1);u.offset=vg(s),o.push(u);for(var c=e.length-1,d=1;d<=c;d++){var h=Rp(e[d],!1);h.offset=vg((n+h.offset*i)/a),o.push(h)}i=a,n=0,r="",e=o}return ag(this.element,e,this.preStyleProps,this.postStyleProps,i,n,r,!0)}}]),n}(pg);function vg(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,n=Math.pow(10,t-1);return Math.round(e*n)/n}var mg=function e(){A(this,e)},yg=function(e){r(n,e);var t=a(n);function n(){return A(this,n),t.apply(this,arguments)}return m(n,[{key:"normalizePropertyName",value:function(e,t){return Gp(e)}},{key:"normalizeStyleValue",value:function(e,t,n,i){var r="",o=n.toString().trim();if(bg[t]&&0!==n&&"0"!==n)if("number"==typeof n)r="px";else{var a=n.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&i.push("Please provide a CSS unit value for ".concat(e,":").concat(n))}return o+r}}]),n}(mg),bg=function(e){var t={};return e.forEach(function(e){return t[e]=!0}),t}("width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(","));function wg(e,t,n,i,r,o,a,s,l,u,c,d,h){return{type:0,element:e,triggerName:t,isRemovalTransition:r,fromState:n,fromStyles:o,toState:i,toStyles:a,timelines:s,queriedElements:l,preStyleProps:u,postStyleProps:c,totalTime:d,errors:h}}var _g={},kg=function(){function e(t,n,i){A(this,e),this._triggerName=t,this.ast=n,this._stateStyles=i}return m(e,[{key:"match",value:function(e,t,n,i){return function(e,t,n,i,r){return e.some(function(e){return e(t,n,i,r)})}(this.ast.matchers,e,t,n,i)}},{key:"buildStyles",value:function(e,t,n){var i=this._stateStyles["*"],r=this._stateStyles[e],o=i?i.buildStyles(t,n):{};return r?r.buildStyles(t,n):o}},{key:"build",value:function(e,t,n,i,r,o,a,s,l,u){var c=[],d=this.ast.options&&this.ast.options.params||_g,h=this.buildStyles(n,a&&a.params||_g,c),f=s&&s.params||_g,p=this.buildStyles(i,f,c),g=new Set,v=new Map,m=new Map,y="void"===i,b={params:Object.assign(Object.assign({},d),f)},w=u?[]:cg(e,t,this.ast.animation,r,o,h,p,b,l,c),_=0;if(w.forEach(function(e){_=Math.max(e.duration+e.delay,_)}),c.length)return wg(t,this._triggerName,n,i,y,h,p,[],[],v,m,_,c);w.forEach(function(e){var n=e.element,i=pp(v,n,{});e.preStyleProps.forEach(function(e){return i[e]=!0});var r=pp(m,n,{});e.postStyleProps.forEach(function(e){return r[e]=!0}),n!==t&&g.add(n)});var k=Up(g.values());return wg(t,this._triggerName,n,i,y,h,p,w,k,v,m,_)}}]),e}(),xg=function(){function e(t,n){A(this,e),this.styles=t,this.defaultParams=n}return m(e,[{key:"buildStyles",value:function(e,t){var n={},i=Ip(this.defaultParams);return Object.keys(e).forEach(function(t){var n=e[t];null!=n&&(i[t]=n)}),this.styles.styles.forEach(function(e){if("string"!=typeof e){var r=e;Object.keys(r).forEach(function(e){var o=r[e];o.length>1&&(o=jp(o,i,t)),n[e]=o})}}),n}}]),e}(),Ag=function(){function e(t,n){var i=this;A(this,e),this.name=t,this.ast=n,this.transitionFactories=[],this.states={},n.states.forEach(function(e){i.states[e.name]=new xg(e.style,e.options&&e.options.params||{})}),Cg(this.states,"true","1"),Cg(this.states,"false","0"),n.transitions.forEach(function(e){i.transitionFactories.push(new kg(t,e,i.states))}),this.fallbackTransition=new kg(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[function(e,t){return!0}],options:null,queryCount:0,depCount:0},this.states)}return m(e,[{key:"containsQueries",get:function(){return this.ast.queryCount>0}},{key:"matchTransition",value:function(e,t,n,i){return this.transitionFactories.find(function(r){return r.match(e,t,n,i)})||null}},{key:"matchStyles",value:function(e,t,n){return this.fallbackTransition.buildStyles(e,t,n)}}]),e}();function Cg(e,t,n){e.hasOwnProperty(t)?e.hasOwnProperty(n)||(e[n]=e[t]):e.hasOwnProperty(n)&&(e[t]=e[n])}var Sg=new sg,Pg=function(){function e(t,n,i){A(this,e),this.bodyNode=t,this._driver=n,this._normalizer=i,this._animations={},this._playersById={},this.players=[]}return m(e,[{key:"register",value:function(e,t){var n=[],i=eg(this._driver,t,n);if(n.length)throw new Error("Unable to build the animation due to the following errors: "+n.join("\n"));this._animations[e]=i}},{key:"_buildPlayer",value:function(e,t,n){var i=e.element,r=cp(0,this._normalizer,0,e.keyframes,t,n);return this._driver.animate(i,r,e.duration,e.delay,e.easing,[],!0)}},{key:"create",value:function(e,t){var n,i=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=[],a=this._animations[e],s=new Map;if(a?(n=cg(this._driver,t,a,"ng-enter","ng-leave",{},{},r,Sg,o)).forEach(function(e){var t=pp(s,e.element,{});e.postStyleProps.forEach(function(e){return t[e]=null})}):(o.push("The requested animation doesn't exist or has already been destroyed"),n=[]),o.length)throw new Error("Unable to create the animation due to the following errors: "+o.join("\n"));s.forEach(function(e,t){Object.keys(e).forEach(function(n){e[n]=i._driver.computeStyle(t,n,"*")})});var l=up(n.map(function(e){var t=s.get(e.element);return i._buildPlayer(e,{},t)}));return this._playersById[e]=l,l.onDestroy(function(){return i.destroy(e)}),this.players.push(l),l}},{key:"destroy",value:function(e){var t=this._getPlayer(e);t.destroy(),delete this._playersById[e];var n=this.players.indexOf(t);n>=0&&this.players.splice(n,1)}},{key:"_getPlayer",value:function(e){var t=this._playersById[e];if(!t)throw new Error("Unable to find the timeline player referenced by "+e);return t}},{key:"listen",value:function(e,t,n,i){var r=fp(t,"","","");return dp(this._getPlayer(e),n,r,i),function(){}}},{key:"command",value:function(e,t,n,i){if("register"!=n)if("create"!=n){var r=this._getPlayer(e);switch(n){case"play":r.play();break;case"pause":r.pause();break;case"reset":r.reset();break;case"restart":r.restart();break;case"finish":r.finish();break;case"init":r.init();break;case"setPosition":r.setPosition(parseFloat(i[0]));break;case"destroy":this.destroy(e)}}else this.create(e,t,i[0]||{});else this.register(e,i[0])}}]),e}(),Eg=[],Dg={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Og={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Mg=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";A(this,e),this.namespaceId=n;var i,r=t&&t.hasOwnProperty("value");if(this.value=null!=(i=r?t.value:t)?i:null,r){var o=Ip(t);delete o.value,this.options=o}else this.options={};this.options.params||(this.options.params={})}return m(e,[{key:"params",get:function(){return this.options.params}},{key:"absorbOptions",value:function(e){var t=e.params;if(t){var n=this.options.params;Object.keys(t).forEach(function(e){null==n[e]&&(n[e]=t[e])})}}}]),e}(),Tg=new Mg("void"),Ig=function(){function e(t,n,i){A(this,e),this.id=t,this.hostElement=n,this._engine=i,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,Ng(n,this._hostClassName)}return m(e,[{key:"listen",value:function(e,t,n,i){var r,o=this;if(!this._triggers.hasOwnProperty(t))throw new Error('Unable to listen on the animation trigger event "'.concat(n,'" because the animation trigger "').concat(t,"\" doesn't exist!"));if(null==n||0==n.length)throw new Error('Unable to listen on the animation trigger "'.concat(t,'" because the provided event is undefined!'));if("start"!=(r=n)&&"done"!=r)throw new Error('The provided animation trigger event "'.concat(n,'" for the animation trigger "').concat(t,'" is not supported!'));var a=pp(this._elementListeners,e,[]),s={name:t,phase:n,callback:i};a.push(s);var l=pp(this._engine.statesByElement,e,{});return l.hasOwnProperty(t)||(Ng(e,"ng-trigger"),Ng(e,"ng-trigger-"+t),l[t]=Tg),function(){o._engine.afterFlush(function(){var e=a.indexOf(s);e>=0&&a.splice(e,1),o._triggers[t]||delete l[t]})}}},{key:"register",value:function(e,t){return!this._triggers[e]&&(this._triggers[e]=t,!0)}},{key:"_getTrigger",value:function(e){var t=this._triggers[e];if(!t)throw new Error('The provided animation trigger "'.concat(e,'" has not been registered!'));return t}},{key:"trigger",value:function(e,t,n){var i=this,r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=this._getTrigger(t),a=new Lg(this.id,t,e),s=this._engine.statesByElement.get(e);s||(Ng(e,"ng-trigger"),Ng(e,"ng-trigger-"+t),this._engine.statesByElement.set(e,s={}));var l=s[t],u=new Mg(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&l&&u.absorbOptions(l.options),s[t]=u,l||(l=Tg),"void"===u.value||l.value!==u.value){var c=pp(this._engine.playersByElement,e,[]);c.forEach(function(e){e.namespaceId==i.id&&e.triggerName==t&&e.queued&&e.destroy()});var d=o.matchTransition(l.value,u.value,e,u.params),h=!1;if(!d){if(!r)return;d=o.fallbackTransition,h=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:d,fromState:l,toState:u,player:a,isFallbackTransition:h}),h||(Ng(e,"ng-animate-queued"),a.onStart(function(){Hg(e,"ng-animate-queued")})),a.onDone(function(){var t=i.players.indexOf(a);t>=0&&i.players.splice(t,1);var n=i._engine.playersByElement.get(e);if(n){var r=n.indexOf(a);r>=0&&n.splice(r,1)}}),this.players.push(a),c.push(a),a}if(!function(e,t){var n=Object.keys(e),i=Object.keys(t);if(n.length!=i.length)return!1;for(var r=0;r<n.length;r++){var o=n[r];if(!t.hasOwnProperty(o)||e[o]!==t[o])return!1}return!0}(l.params,u.params)){var f=[],p=o.matchStyles(l.value,l.params,f),g=o.matchStyles(u.value,u.params,f);f.length?this._engine.reportError(f):this._engine.afterFlush(function(){Vp(e,p),Bp(e,g)})}}},{key:"deregister",value:function(e){var t=this;delete this._triggers[e],this._engine.statesByElement.forEach(function(t,n){delete t[e]}),this._elementListeners.forEach(function(n,i){t._elementListeners.set(i,n.filter(function(t){return t.name!=e}))})}},{key:"clearElementCache",value:function(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);var t=this._engine.playersByElement.get(e);t&&(t.forEach(function(e){return e.destroy()}),this._engine.playersByElement.delete(e))}},{key:"_signalRemovalForInnerTriggers",value:function(e,t){var n=this,i=this._engine.driver.query(e,".ng-trigger",!0);i.forEach(function(e){if(!e.__ng_removed){var i=n._engine.fetchNamespacesByElement(e);i.size?i.forEach(function(n){return n.triggerLeaveAnimation(e,t,!1,!0)}):n.clearElementCache(e)}}),this._engine.afterFlushAnimationsDone(function(){return i.forEach(function(e){return n.clearElementCache(e)})})}},{key:"triggerLeaveAnimation",value:function(e,t,n,i){var r=this,o=this._engine.statesByElement.get(e);if(o){var a=[];if(Object.keys(o).forEach(function(t){if(r._triggers[t]){var n=r.trigger(e,t,"void",i);n&&a.push(n)}}),a.length)return this._engine.markElementAsRemoved(this.id,e,!0,t),n&&up(a).onDone(function(){return r._engine.processLeaveNode(e)}),!0}return!1}},{key:"prepareLeaveAnimationListeners",value:function(e){var t=this,n=this._elementListeners.get(e),i=this._engine.statesByElement.get(e);if(n&&i){var r=new Set;n.forEach(function(n){var o=n.name;if(!r.has(o)){r.add(o);var a=t._triggers[o].fallbackTransition,s=i[o]||Tg,l=new Mg("void"),u=new Lg(t.id,o,e);t._engine.totalQueuedPlayers++,t._queue.push({element:e,triggerName:o,transition:a,fromState:s,toState:l,player:u,isFallbackTransition:!0})}})}}},{key:"removeNode",value:function(e,t){var n=this,i=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,t),!this.triggerLeaveAnimation(e,t,!0)){var r=!1;if(i.totalAnimations){var o=i.players.length?i.playersByQueriedElement.get(e):[];if(o&&o.length)r=!0;else for(var a=e;a=a.parentNode;)if(i.statesByElement.get(a)){r=!0;break}}if(this.prepareLeaveAnimationListeners(e),r)i.markElementAsRemoved(this.id,e,!1,t);else{var s=e.__ng_removed;s&&s!==Dg||(i.afterFlush(function(){return n.clearElementCache(e)}),i.destroyInnerAnimations(e),i._onRemovalComplete(e,t))}}}},{key:"insertNode",value:function(e,t){Ng(e,this._hostClassName)}},{key:"drainQueuedTransitions",value:function(e){var t=this,n=[];return this._queue.forEach(function(i){var r=i.player;if(!r.destroyed){var o=i.element,a=t._elementListeners.get(o);a&&a.forEach(function(t){if(t.name==i.triggerName){var n=fp(o,i.triggerName,i.fromState.value,i.toState.value);n._data=e,dp(i.player,t.phase,n,t.callback)}}),r.markedForDestroy?t._engine.afterFlush(function(){r.destroy()}):n.push(i)}}),this._queue=[],n.sort(function(e,n){var i=e.transition.ast.depCount,r=n.transition.ast.depCount;return 0==i||0==r?i-r:t._engine.driver.containsElement(e.element,n.element)?1:-1})}},{key:"destroy",value:function(e){this.players.forEach(function(e){return e.destroy()}),this._signalRemovalForInnerTriggers(this.hostElement,e)}},{key:"elementContainsData",value:function(e){var t=!1;return this._elementListeners.has(e)&&(t=!0),t=!!this._queue.find(function(t){return t.element===e})||t}}]),e}(),Rg=function(){function e(t,n,i){A(this,e),this.bodyNode=t,this.driver=n,this._normalizer=i,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=function(e,t){}}return m(e,[{key:"_onRemovalComplete",value:function(e,t){this.onRemovalComplete(e,t)}},{key:"queuedPlayers",get:function(){var e=[];return this._namespaceList.forEach(function(t){t.players.forEach(function(t){t.queued&&e.push(t)})}),e}},{key:"createNamespace",value:function(e,t){var n=new Ig(e,t,this);return t.parentNode?this._balanceNamespaceList(n,t):(this.newHostElements.set(t,n),this.collectEnterElement(t)),this._namespaceLookup[e]=n}},{key:"_balanceNamespaceList",value:function(e,t){var n=this._namespaceList.length-1;if(n>=0){for(var i=!1,r=n;r>=0;r--)if(this.driver.containsElement(this._namespaceList[r].hostElement,t)){this._namespaceList.splice(r+1,0,e),i=!0;break}i||this._namespaceList.splice(0,0,e)}else this._namespaceList.push(e);return this.namespacesByHostElement.set(t,e),e}},{key:"register",value:function(e,t){var n=this._namespaceLookup[e];return n||(n=this.createNamespace(e,t)),n}},{key:"registerTrigger",value:function(e,t,n){var i=this._namespaceLookup[e];i&&i.register(t,n)&&this.totalAnimations++}},{key:"destroy",value:function(e,t){var n=this;if(e){var i=this._fetchNamespace(e);this.afterFlush(function(){n.namespacesByHostElement.delete(i.hostElement),delete n._namespaceLookup[e];var t=n._namespaceList.indexOf(i);t>=0&&n._namespaceList.splice(t,1)}),this.afterFlushAnimationsDone(function(){return i.destroy(t)})}}},{key:"_fetchNamespace",value:function(e){return this._namespaceLookup[e]}},{key:"fetchNamespacesByElement",value:function(e){var t=new Set,n=this.statesByElement.get(e);if(n)for(var i=Object.keys(n),r=0;r<i.length;r++){var o=n[i[r]].namespaceId;if(o){var a=this._fetchNamespace(o);a&&t.add(a)}}return t}},{key:"trigger",value:function(e,t,n,i){if(Fg(t)){var r=this._fetchNamespace(e);if(r)return r.trigger(t,n,i),!0}return!1}},{key:"insertNode",value:function(e,t,n,i){if(Fg(t)){var r=t.__ng_removed;if(r&&r.setForRemoval){r.setForRemoval=!1,r.setForMove=!0;var o=this.collectedLeaveElements.indexOf(t);o>=0&&this.collectedLeaveElements.splice(o,1)}if(e){var a=this._fetchNamespace(e);a&&a.insertNode(t,n)}i&&this.collectEnterElement(t)}}},{key:"collectEnterElement",value:function(e){this.collectedEnterElements.push(e)}},{key:"markElementAsDisabled",value:function(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),Ng(e,"ng-animate-disabled")):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),Hg(e,"ng-animate-disabled"))}},{key:"removeNode",value:function(e,t,n,i){if(Fg(t)){var r=e?this._fetchNamespace(e):null;if(r?r.removeNode(t,i):this.markElementAsRemoved(e,t,!1,i),n){var o=this.namespacesByHostElement.get(t);o&&o.id!==e&&o.removeNode(t,i)}}else this._onRemovalComplete(t,i)}},{key:"markElementAsRemoved",value:function(e,t,n,i){this.collectedLeaveElements.push(t),t.__ng_removed={namespaceId:e,setForRemoval:i,hasAnimation:n,removedBeforeQueried:!1}}},{key:"listen",value:function(e,t,n,i,r){return Fg(t)?this._fetchNamespace(e).listen(t,n,i,r):function(){}}},{key:"_buildInstruction",value:function(e,t,n,i,r){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,n,i,e.fromState.options,e.toState.options,t,r)}},{key:"destroyInnerAnimations",value:function(e){var t=this,n=this.driver.query(e,".ng-trigger",!0);n.forEach(function(e){return t.destroyActiveAnimationsForElement(e)}),0!=this.playersByQueriedElement.size&&(n=this.driver.query(e,".ng-animating",!0)).forEach(function(e){return t.finishActiveQueriedAnimationOnElement(e)})}},{key:"destroyActiveAnimationsForElement",value:function(e){var t=this.playersByElement.get(e);t&&t.forEach(function(e){e.queued?e.markedForDestroy=!0:e.destroy()})}},{key:"finishActiveQueriedAnimationOnElement",value:function(e){var t=this.playersByQueriedElement.get(e);t&&t.forEach(function(e){return e.finish()})}},{key:"whenRenderingDone",value:function(){var e=this;return new Promise(function(t){if(e.players.length)return up(e.players).onDone(function(){return t()});t()})}},{key:"processLeaveNode",value:function(e){var t=this,n=e.__ng_removed;if(n&&n.setForRemoval){if(e.__ng_removed=Dg,n.namespaceId){this.destroyInnerAnimations(e);var i=this._fetchNamespace(n.namespaceId);i&&i.clearElementCache(e)}this._onRemovalComplete(e,n.setForRemoval)}this.driver.matchesElement(e,".ng-animate-disabled")&&this.markElementAsDisabled(e,!1),this.driver.query(e,".ng-animate-disabled",!0).forEach(function(e){t.markElementAsDisabled(e,!1)})}},{key:"flush",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1,n=[];if(this.newHostElements.size&&(this.newHostElements.forEach(function(t,n){return e._balanceNamespaceList(t,n)}),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(var i=0;i<this.collectedEnterElements.length;i++)Ng(this.collectedEnterElements[i],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){var r=[];try{n=this._flushAnimations(r,t)}finally{for(var o=0;o<r.length;o++)r[o]()}}else for(var a=0;a<this.collectedLeaveElements.length;a++)this.processLeaveNode(this.collectedLeaveElements[a]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(function(e){return e()}),this._flushFns=[],this._whenQuietFns.length){var s=this._whenQuietFns;this._whenQuietFns=[],n.length?up(n).onDone(function(){s.forEach(function(e){return e()})}):s.forEach(function(e){return e()})}}},{key:"reportError",value:function(e){throw new Error("Unable to process animations due to the following failed trigger transitions\n "+e.join("\n"))}},{key:"_flushAnimations",value:function(e,t){var n=this,i=new sg,r=[],o=new Map,a=[],s=new Map,l=new Map,u=new Map,c=new Set;this.disabledNodes.forEach(function(e){c.add(e);for(var t=n.driver.query(e,".ng-animate-queued",!0),i=0;i<t.length;i++)c.add(t[i])});var d=this.bodyNode,h=Array.from(this.statesByElement.keys()),f=zg(h,this.collectedEnterElements),p=new Map,g=0;f.forEach(function(e,t){var n="ng-enter"+g++;p.set(t,n),e.forEach(function(e){return Ng(e,n)})});for(var v=[],m=new Set,b=new Set,w=0;w<this.collectedLeaveElements.length;w++){var _=this.collectedLeaveElements[w],k=_.__ng_removed;k&&k.setForRemoval&&(v.push(_),m.add(_),k.hasAnimation?this.driver.query(_,".ng-star-inserted",!0).forEach(function(e){return m.add(e)}):b.add(_))}var x=new Map,A=zg(h,Array.from(m));A.forEach(function(e,t){var n="ng-leave"+g++;x.set(t,n),e.forEach(function(e){return Ng(e,n)})}),e.push(function(){f.forEach(function(e,t){var n=p.get(t);e.forEach(function(e){return Hg(e,n)})}),A.forEach(function(e,t){var n=x.get(t);e.forEach(function(e){return Hg(e,n)})}),v.forEach(function(e){n.processLeaveNode(e)})});for(var C=[],S=[],P=this._namespaceList.length-1;P>=0;P--)this._namespaceList[P].drainQueuedTransitions(t).forEach(function(e){var t=e.player,o=e.element;if(C.push(t),n.collectedEnterElements.length){var c=o.__ng_removed;if(c&&c.setForMove)return void t.destroy()}var h=!d||!n.driver.containsElement(d,o),f=x.get(o),g=p.get(o),v=n._buildInstruction(e,i,g,f,h);if(v.errors&&v.errors.length)S.push(v);else{if(h)return t.onStart(function(){return Vp(o,v.fromStyles)}),t.onDestroy(function(){return Bp(o,v.toStyles)}),void r.push(t);if(e.isFallbackTransition)return t.onStart(function(){return Vp(o,v.fromStyles)}),t.onDestroy(function(){return Bp(o,v.toStyles)}),void r.push(t);v.timelines.forEach(function(e){return e.stretchStartingKeyframe=!0}),i.append(o,v.timelines),a.push({instruction:v,player:t,element:o}),v.queriedElements.forEach(function(e){return pp(s,e,[]).push(t)}),v.preStyleProps.forEach(function(e,t){var n=Object.keys(e);if(n.length){var i=l.get(t);i||l.set(t,i=new Set),n.forEach(function(e){return i.add(e)})}}),v.postStyleProps.forEach(function(e,t){var n=Object.keys(e),i=u.get(t);i||u.set(t,i=new Set),n.forEach(function(e){return i.add(e)})})}});if(S.length){var E=[];S.forEach(function(e){E.push("@".concat(e.triggerName," has failed due to:\n")),e.errors.forEach(function(e){return E.push("- ".concat(e,"\n"))})}),C.forEach(function(e){return e.destroy()}),this.reportError(E)}var D=new Map,O=new Map;a.forEach(function(e){var t=e.element;i.has(t)&&(O.set(t,t),n._beforeAnimationBuild(e.player.namespaceId,e.instruction,D))}),r.forEach(function(e){var t=e.element;n._getPreviousPlayers(t,!1,e.namespaceId,e.triggerName,null).forEach(function(e){pp(D,t,[]).push(e),e.destroy()})});var M=v.filter(function(e){return Wg(e,l,u)}),T=new Map;Vg(T,this.driver,b,u,"*").forEach(function(e){Wg(e,l,u)&&M.push(e)});var I=new Map;f.forEach(function(e,t){Vg(I,n.driver,new Set(e),l,"!")}),M.forEach(function(e){var t=T.get(e),n=I.get(e);T.set(e,Object.assign(Object.assign({},t),n))});var R=[],L=[],F={};a.forEach(function(e){var t=e.element,a=e.player,s=e.instruction;if(i.has(t)){if(c.has(t))return a.onDestroy(function(){return Bp(t,s.toStyles)}),a.disabled=!0,a.overrideTotalTime(s.totalTime),void r.push(a);var l=F;if(O.size>1){for(var u=t,d=[];u=u.parentNode;){var h=O.get(u);if(h){l=h;break}d.push(u)}d.forEach(function(e){return O.set(e,l)})}var f=n._buildAnimation(a.namespaceId,s,D,o,I,T);if(a.setRealPlayer(f),l===F)R.push(a);else{var p=n.playersByElement.get(l);p&&p.length&&(a.parentPlayer=up(p)),r.push(a)}}else Vp(t,s.fromStyles),a.onDestroy(function(){return Bp(t,s.toStyles)}),L.push(a),c.has(t)&&r.push(a)}),L.forEach(function(e){var t=o.get(e.element);if(t&&t.length){var n=up(t);e.setRealPlayer(n)}}),r.forEach(function(e){e.parentPlayer?e.syncPlayerEvents(e.parentPlayer):e.destroy()});for(var B=0;B<v.length;B++){var V=v[B],z=V.__ng_removed;if(Hg(V,"ng-leave"),!z||!z.hasAnimation){var N=[];if(s.size){var H=s.get(V);H&&H.length&&N.push.apply(N,y(H));for(var j=this.driver.query(V,".ng-animating",!0),U=0;U<j.length;U++){var W=s.get(j[U]);W&&W.length&&N.push.apply(N,y(W))}}var G=N.filter(function(e){return!e.destroyed});G.length?jg(this,V,G):this.processLeaveNode(V)}}return v.length=0,R.forEach(function(e){n.players.push(e),e.onDone(function(){e.destroy();var t=n.players.indexOf(e);n.players.splice(t,1)}),e.play()}),R}},{key:"elementContainsData",value:function(e,t){var n=!1,i=t.__ng_removed;return i&&i.setForRemoval&&(n=!0),this.playersByElement.has(t)&&(n=!0),this.playersByQueriedElement.has(t)&&(n=!0),this.statesByElement.has(t)&&(n=!0),this._fetchNamespace(e).elementContainsData(t)||n}},{key:"afterFlush",value:function(e){this._flushFns.push(e)}},{key:"afterFlushAnimationsDone",value:function(e){this._whenQuietFns.push(e)}},{key:"_getPreviousPlayers",value:function(e,t,n,i,r){var o=[];if(t){var a=this.playersByQueriedElement.get(e);a&&(o=a)}else{var s=this.playersByElement.get(e);if(s){var l=!r||"void"==r;s.forEach(function(e){e.queued||(l||e.triggerName==i)&&o.push(e)})}}return(n||i)&&(o=o.filter(function(e){return!(n&&n!=e.namespaceId||i&&i!=e.triggerName)})),o}},{key:"_beforeAnimationBuild",value:function(e,t,n){var i,r=this,o=t.element,a=t.isRemovalTransition?void 0:e,s=t.isRemovalTransition?void 0:t.triggerName,l=h(t.timelines);try{var u=function(){var e=i.value.element,l=e!==o,u=pp(n,e,[]);r._getPreviousPlayers(e,l,a,s,t.toState).forEach(function(e){var t=e.getRealPlayer();t.beforeDestroy&&t.beforeDestroy(),e.destroy(),u.push(e)})};for(l.s();!(i=l.n()).done;)u()}catch(c){l.e(c)}finally{l.f()}Vp(o,t.fromStyles)}},{key:"_buildAnimation",value:function(e,t,n,i,r,o){var a=this,s=t.triggerName,l=t.element,u=[],c=new Set,d=new Set,h=t.timelines.map(function(t){var h=t.element;c.add(h);var f=h.__ng_removed;if(f&&f.removedBeforeQueried)return new ap(t.duration,t.delay);var p,g,v=h!==l,m=(p=(n.get(h)||Eg).map(function(e){return e.getRealPlayer()}),g=[],Ug(p,g),g).filter(function(e){return!!e.element&&e.element===h}),y=r.get(h),b=o.get(h),w=cp(0,a._normalizer,0,t.keyframes,y,b),_=a._buildPlayer(t,w,m);if(t.subTimeline&&i&&d.add(h),v){var k=new Lg(e,s,h);k.setRealPlayer(_),u.push(k)}return _});u.forEach(function(e){pp(a.playersByQueriedElement,e.element,[]).push(e),e.onDone(function(){return function(e,t,n){var i;if(e instanceof Map){if(i=e.get(t)){if(i.length){var r=i.indexOf(n);i.splice(r,1)}0==i.length&&e.delete(t)}}else if(i=e[t]){if(i.length){var o=i.indexOf(n);i.splice(o,1)}0==i.length&&delete e[t]}return i}(a.playersByQueriedElement,e.element,e)})}),c.forEach(function(e){return Ng(e,"ng-animating")});var f=up(h);return f.onDestroy(function(){c.forEach(function(e){return Hg(e,"ng-animating")}),Bp(l,t.toStyles)}),d.forEach(function(e){pp(i,e,[]).push(f)}),f}},{key:"_buildPlayer",value:function(e,t,n){return t.length>0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,n):new ap(e.duration,e.delay)}}]),e}(),Lg=function(){function e(t,n,i){A(this,e),this.namespaceId=t,this.triggerName=n,this.element=i,this._player=new ap,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}return m(e,[{key:"setRealPlayer",value:function(e){var t=this;this._containsRealPlayer||(this._player=e,Object.keys(this._queuedCallbacks).forEach(function(n){t._queuedCallbacks[n].forEach(function(t){return dp(e,n,void 0,t)})}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}},{key:"getRealPlayer",value:function(){return this._player}},{key:"overrideTotalTime",value:function(e){this.totalTime=e}},{key:"syncPlayerEvents",value:function(e){var t=this,n=this._player;n.triggerCallback&&e.onStart(function(){return n.triggerCallback("start")}),e.onDone(function(){return t.finish()}),e.onDestroy(function(){return t.destroy()})}},{key:"_queueEvent",value:function(e,t){pp(this._queuedCallbacks,e,[]).push(t)}},{key:"onDone",value:function(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}},{key:"onStart",value:function(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}},{key:"onDestroy",value:function(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}},{key:"init",value:function(){this._player.init()}},{key:"hasStarted",value:function(){return!this.queued&&this._player.hasStarted()}},{key:"play",value:function(){!this.queued&&this._player.play()}},{key:"pause",value:function(){!this.queued&&this._player.pause()}},{key:"restart",value:function(){!this.queued&&this._player.restart()}},{key:"finish",value:function(){this._player.finish()}},{key:"destroy",value:function(){this.destroyed=!0,this._player.destroy()}},{key:"reset",value:function(){!this.queued&&this._player.reset()}},{key:"setPosition",value:function(e){this.queued||this._player.setPosition(e)}},{key:"getPosition",value:function(){return this.queued?0:this._player.getPosition()}},{key:"triggerCallback",value:function(e){var t=this._player;t.triggerCallback&&t.triggerCallback(e)}}]),e}();function Fg(e){return e&&1===e.nodeType}function Bg(e,t){var n=e.style.display;return e.style.display=null!=t?t:"none",n}function Vg(e,t,n,i,r){var o=[];n.forEach(function(e){return o.push(Bg(e))});var a=[];i.forEach(function(n,i){var o={};n.forEach(function(e){var n=o[e]=t.computeStyle(i,e,r);n&&0!=n.length||(i.__ng_removed=Og,a.push(i))}),e.set(i,o)});var s=0;return n.forEach(function(e){return Bg(e,o[s++])}),a}function zg(e,t){var n=new Map;if(e.forEach(function(e){return n.set(e,[])}),0==t.length)return n;var i=new Set(t),r=new Map;function o(e){if(!e)return 1;var t=r.get(e);if(t)return t;var a=e.parentNode;return t=n.has(a)?a:i.has(a)?1:o(a),r.set(e,t),t}return t.forEach(function(e){var t=o(e);1!==t&&n.get(t).push(e)}),n}function Ng(e,t){if(e.classList)e.classList.add(t);else{var n=e.$$classes;n||(n=e.$$classes={}),n[t]=!0}}function Hg(e,t){if(e.classList)e.classList.remove(t);else{var n=e.$$classes;n&&delete n[t]}}function jg(e,t,n){up(n).onDone(function(){return e.processLeaveNode(t)})}function Ug(e,t){for(var n=0;n<e.length;n++){var i=e[n];i instanceof sp?Ug(i.players,t):t.push(i)}}function Wg(e,t,n){var i=n.get(e);if(!i)return!1;var r=t.get(e);return r?i.forEach(function(e){return r.add(e)}):t.set(e,i),n.delete(e),!0}var Gg=function(){function e(t,n,i){var r=this;A(this,e),this.bodyNode=t,this._driver=n,this._triggerCache={},this.onRemovalComplete=function(e,t){},this._transitionEngine=new Rg(t,n,i),this._timelineEngine=new Pg(t,n,i),this._transitionEngine.onRemovalComplete=function(e,t){return r.onRemovalComplete(e,t)}}return m(e,[{key:"registerTrigger",value:function(e,t,n,i,r){var o=e+"-"+i,a=this._triggerCache[o];if(!a){var s=[],l=eg(this._driver,r,s);if(s.length)throw new Error('The animation trigger "'.concat(i,'" has failed to build due to the following errors:\n - ').concat(s.join("\n - ")));a=function(e,t){return new Ag(e,t)}(i,l),this._triggerCache[o]=a}this._transitionEngine.registerTrigger(t,i,a)}},{key:"register",value:function(e,t){this._transitionEngine.register(e,t)}},{key:"destroy",value:function(e,t){this._transitionEngine.destroy(e,t)}},{key:"onInsert",value:function(e,t,n,i){this._transitionEngine.insertNode(e,t,n,i)}},{key:"onRemove",value:function(e,t,n,i){this._transitionEngine.removeNode(e,t,i||!1,n)}},{key:"disableAnimations",value:function(e,t){this._transitionEngine.markElementAsDisabled(e,t)}},{key:"process",value:function(e,t,n,i){if("@"==n.charAt(0)){var r=f(gp(n),2),o=r[0],a=r[1];this._timelineEngine.command(o,t,a,i)}else this._transitionEngine.trigger(e,t,n,i)}},{key:"listen",value:function(e,t,n,i,r){if("@"==n.charAt(0)){var o=f(gp(n),2),a=o[0],s=o[1];return this._timelineEngine.listen(a,t,s,r)}return this._transitionEngine.listen(e,t,n,i,r)}},{key:"flush",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1;this._transitionEngine.flush(e)}},{key:"players",get:function(){return this._transitionEngine.players.concat(this._timelineEngine.players)}},{key:"whenRenderingDone",value:function(){return this._transitionEngine.whenRenderingDone()}}]),e}();function qg(e,t){var n=null,i=null;return Array.isArray(t)&&t.length?(n=Zg(t[0]),t.length>1&&(i=Zg(t[t.length-1]))):t&&(n=Zg(t)),n||i?new Yg(e,n,i):null}var Yg=function(){var e=function(){function e(t,n,i){A(this,e),this._element=t,this._startStyles=n,this._endStyles=i,this._state=0;var r=e.initialStylesByElement.get(t);r||e.initialStylesByElement.set(t,r={}),this._initialStyles=r}return m(e,[{key:"start",value:function(){this._state<1&&(this._startStyles&&Bp(this._element,this._startStyles,this._initialStyles),this._state=1)}},{key:"finish",value:function(){this.start(),this._state<2&&(Bp(this._element,this._initialStyles),this._endStyles&&(Bp(this._element,this._endStyles),this._endStyles=null),this._state=1)}},{key:"destroy",value:function(){this.finish(),this._state<3&&(e.initialStylesByElement.delete(this._element),this._startStyles&&(Vp(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Vp(this._element,this._endStyles),this._endStyles=null),Bp(this._element,this._initialStyles),this._state=3)}}]),e}();return e.initialStylesByElement=new WeakMap,e}();function Zg(e){for(var t=null,n=Object.keys(e),i=0;i<n.length;i++){var r=n[i];Qg(r)&&((t=t||{})[r]=e[r])}return t}function Qg(e){return"display"===e||"position"===e}var Xg=function(){function e(t,n,i,r,o,a,s){var l=this;A(this,e),this._element=t,this._name=n,this._duration=i,this._delay=r,this._easing=o,this._fillMode=a,this._onDoneFn=s,this._finished=!1,this._destroyed=!1,this._startTime=0,this._position=0,this._eventFn=function(e){return l._handleCallback(e)}}return m(e,[{key:"apply",value:function(){var e,t,n;e=this._element,t="".concat(this._duration,"ms ").concat(this._easing," ").concat(this._delay,"ms 1 normal ").concat(this._fillMode," ").concat(this._name),(n=nv(e,"").trim()).length&&(function(e,t){for(var n=0;n<e.length;n++)e.charAt(n)}(n),t="".concat(n,", ").concat(t)),tv(e,"",t),ev(this._element,this._eventFn,!1),this._startTime=Date.now()}},{key:"pause",value:function(){Kg(this._element,this._name,"paused")}},{key:"resume",value:function(){Kg(this._element,this._name,"running")}},{key:"setPosition",value:function(e){var t=Jg(this._element,this._name);this._position=e*this._duration,tv(this._element,"Delay","-".concat(this._position,"ms"),t)}},{key:"getPosition",value:function(){return this._position}},{key:"_handleCallback",value:function(e){var t=e._ngTestManualTimestamp||Date.now(),n=1e3*parseFloat(e.elapsedTime.toFixed(3));e.animationName==this._name&&Math.max(t-this._startTime,0)>=this._delay&&n>=this._duration&&this.finish()}},{key:"finish",value:function(){this._finished||(this._finished=!0,this._onDoneFn(),ev(this._element,this._eventFn,!0))}},{key:"destroy",value:function(){var e,t,n,i;this._destroyed||(this._destroyed=!0,this.finish(),e=this._element,t=this._name,n=nv(e,"").split(","),(i=$g(n,t))>=0&&(n.splice(i,1),tv(e,"",n.join(","))))}}]),e}();function Kg(e,t,n){tv(e,"PlayState",n,Jg(e,t))}function Jg(e,t){var n=nv(e,"");return n.indexOf(",")>0?$g(n.split(","),t):$g([n],t)}function $g(e,t){for(var n=0;n<e.length;n++)if(e[n].indexOf(t)>=0)return n;return-1}function ev(e,t,n){n?e.removeEventListener("animationend",t):e.addEventListener("animationend",t)}function tv(e,t,n,i){var r="animation"+t;if(null!=i){var o=e.style[r];if(o.length){var a=o.split(",");a[i]=n,n=a.join(",")}}e.style[r]=n}function nv(e,t){return e.style["animation"+t]||""}var iv=function(){function e(t,n,i,r,o,a,s,l){A(this,e),this.element=t,this.keyframes=n,this.animationName=i,this._duration=r,this._delay=o,this._finalStyles=s,this._specialStyles=l,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this.currentSnapshot={},this._state=0,this.easing=a||"linear",this.totalTime=r+o,this._buildStyler()}return m(e,[{key:"onStart",value:function(e){this._onStartFns.push(e)}},{key:"onDone",value:function(e){this._onDoneFns.push(e)}},{key:"onDestroy",value:function(e){this._onDestroyFns.push(e)}},{key:"destroy",value:function(){this.init(),this._state>=4||(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(function(e){return e()}),this._onDestroyFns=[])}},{key:"_flushDoneFns",value:function(){this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[]}},{key:"_flushStartFns",value:function(){this._onStartFns.forEach(function(e){return e()}),this._onStartFns=[]}},{key:"finish",value:function(){this.init(),this._state>=3||(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}},{key:"setPosition",value:function(e){this._styler.setPosition(e)}},{key:"getPosition",value:function(){return this._styler.getPosition()}},{key:"hasStarted",value:function(){return this._state>=2}},{key:"init",value:function(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())}},{key:"play",value:function(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}},{key:"pause",value:function(){this.init(),this._styler.pause()}},{key:"restart",value:function(){this.reset(),this.play()}},{key:"reset",value:function(){this._styler.destroy(),this._buildStyler(),this._styler.apply()}},{key:"_buildStyler",value:function(){var e=this;this._styler=new Xg(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",function(){return e.finish()})}},{key:"triggerCallback",value:function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(function(e){return e()}),t.length=0}},{key:"beforeDestroy",value:function(){var e=this;this.init();var t={};if(this.hasStarted()){var n=this._state>=3;Object.keys(this._finalStyles).forEach(function(i){"offset"!=i&&(t[i]=n?e._finalStyles[i]:Qp(e.element,i))})}this.currentSnapshot=t}}]),e}(),rv=function(e){r(n,e);var t=a(n);function n(e,i){var r;return A(this,n),(r=t.call(this)).element=e,r._startingStyles={},r.__initialized=!1,r._styles=Sp(i),r}return m(n,[{key:"init",value:function(){var e=this;!this.__initialized&&this._startingStyles&&(this.__initialized=!0,Object.keys(this._styles).forEach(function(t){e._startingStyles[t]=e.element.style[t]}),i(c(n.prototype),"init",this).call(this))}},{key:"play",value:function(){var e=this;this._startingStyles&&(this.init(),Object.keys(this._styles).forEach(function(t){return e.element.style.setProperty(t,e._styles[t])}),i(c(n.prototype),"play",this).call(this))}},{key:"destroy",value:function(){var e=this;this._startingStyles&&(Object.keys(this._startingStyles).forEach(function(t){var n=e._startingStyles[t];n?e.element.style.setProperty(t,n):e.element.style.removeProperty(t)}),this._startingStyles=null,i(c(n.prototype),"destroy",this).call(this))}}]),n}(ap),ov=function(){function e(){A(this,e),this._count=0,this._head=document.querySelector("head")}return m(e,[{key:"validateStyleProperty",value:function(e){return kp(e)}},{key:"matchesElement",value:function(e,t){return xp(e,t)}},{key:"containsElement",value:function(e,t){return Ap(e,t)}},{key:"query",value:function(e,t,n){return Cp(e,t,n)}},{key:"computeStyle",value:function(e,t,n){return window.getComputedStyle(e)[t]}},{key:"buildKeyframeElement",value:function(e,t,n){n=n.map(function(e){return Sp(e)});var i="@keyframes ".concat(t," {\n"),r="";n.forEach(function(e){r=" ";var t=parseFloat(e.offset);i+="".concat(r).concat(100*t,"% {\n"),r+=" ",Object.keys(e).forEach(function(t){var n=e[t];switch(t){case"offset":return;case"easing":return void(n&&(i+="".concat(r,"animation-timing-function: ").concat(n,";\n")));default:return void(i+="".concat(r).concat(t,": ").concat(n,";\n"))}}),i+=r+"}\n"}),i+="}\n";var o=document.createElement("style");return o.textContent=i,o}},{key:"animate",value:function(e,t,n,i,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],a=o.filter(function(e){return e instanceof iv}),s={};qp(n,i)&&a.forEach(function(e){var t=e.currentSnapshot;Object.keys(t).forEach(function(e){return s[e]=t[e]})});var l=function(e){var t={};return e&&(Array.isArray(e)?e:[e]).forEach(function(e){Object.keys(e).forEach(function(n){"offset"!=n&&"easing"!=n&&(t[n]=e[n])})}),t}(t=Yp(e,t,s));if(0==n)return new rv(e,l);var u="gen_css_kf_"+this._count++,c=this.buildKeyframeElement(e,u,t);document.querySelector("head").appendChild(c);var d=qg(e,t),h=new iv(e,t,u,n,i,r,l,d);return h.onDestroy(function(){var e;(e=c).parentNode.removeChild(e)}),h}}]),e}(),av=function(){function e(t,n,i,r){A(this,e),this.element=t,this.keyframes=n,this.options=i,this._specialStyles=r,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=i.duration,this._delay=i.delay||0,this.time=this._duration+this._delay}return m(e,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[])}},{key:"init",value:function(){this._buildPlayer(),this._preparePlayerBeforeStart()}},{key:"_buildPlayer",value:function(){var e=this;if(!this._initialized){this._initialized=!0;var t=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:{},this.domPlayer.addEventListener("finish",function(){return e._onFinish()})}}},{key:"_preparePlayerBeforeStart",value:function(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}},{key:"_triggerWebAnimation",value:function(e,t,n){return e.animate(t,n)}},{key:"onStart",value:function(e){this._onStartFns.push(e)}},{key:"onDone",value:function(e){this._onDoneFns.push(e)}},{key:"onDestroy",value:function(e){this._onDestroyFns.push(e)}},{key:"play",value:function(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(function(e){return e()}),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}},{key:"pause",value:function(){this.init(),this.domPlayer.pause()}},{key:"finish",value:function(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}},{key:"reset",value:function(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}},{key:"_resetDomPlayerState",value:function(){this.domPlayer&&this.domPlayer.cancel()}},{key:"restart",value:function(){this.reset(),this.play()}},{key:"hasStarted",value:function(){return this._started}},{key:"destroy",value:function(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(function(e){return e()}),this._onDestroyFns=[])}},{key:"setPosition",value:function(e){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=e*this.time}},{key:"getPosition",value:function(){return this.domPlayer.currentTime/this.time}},{key:"totalTime",get:function(){return this._delay+this._duration}},{key:"beforeDestroy",value:function(){var e=this,t={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(function(n){"offset"!=n&&(t[n]=e._finished?e._finalKeyframe[n]:Qp(e.element,n))}),this.currentSnapshot=t}},{key:"triggerCallback",value:function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(function(e){return e()}),t.length=0}}]),e}(),sv=function(){function e(){A(this,e),this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(lv().toString()),this._cssKeyframesDriver=new ov}return m(e,[{key:"validateStyleProperty",value:function(e){return kp(e)}},{key:"matchesElement",value:function(e,t){return xp(e,t)}},{key:"containsElement",value:function(e,t){return Ap(e,t)}},{key:"query",value:function(e,t,n){return Cp(e,t,n)}},{key:"computeStyle",value:function(e,t,n){return window.getComputedStyle(e)[t]}},{key:"overrideWebAnimationsSupport",value:function(e){this._isNativeImpl=e}},{key:"animate",value:function(e,t,n,i,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],a=arguments.length>6?arguments[6]:void 0;if(!a&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(e,t,n,i,r,o);var s={duration:n,delay:i,fill:0==i?"both":"forwards"};r&&(s.easing=r);var l={},u=o.filter(function(e){return e instanceof av});qp(n,i)&&u.forEach(function(e){var t=e.currentSnapshot;Object.keys(t).forEach(function(e){return l[e]=t[e]})});var c=qg(e,t=Yp(e,t=t.map(function(e){return Rp(e,!1)}),l));return new av(e,t,s,c)}}]),e}();function lv(){return"undefined"!=typeof window&&void 0!==window.document&&Element.prototype.animate||{}}var uv,cv=((uv=function(e){r(n,e);var t=a(n);function n(e,i){var r;return A(this,n),(r=t.call(this))._nextAnimationId=0,r._renderer=e.createRenderer(i.body,{id:"0",encapsulation:Xe.None,styles:[],data:{animation:[]}}),r}return m(n,[{key:"build",value:function(e){var t=this._nextAnimationId.toString();this._nextAnimationId++;var n=Array.isArray(e)?Jf(e):e;return fv(this._renderer,null,t,"register",[n]),new dv(t,this._renderer)}}]),n}(Qf)).\u0275fac=function(e){return new(e||uv)(Ri(Pl),Ri(od))},uv.\u0275prov=Re({token:uv,factory:uv.\u0275fac}),uv),dv=function(e){r(n,e);var t=a(n);function n(e,i){var r;return A(this,n),(r=t.call(this))._id=e,r._renderer=i,r}return m(n,[{key:"create",value:function(e,t){return new hv(this._id,e,t||{},this._renderer)}}]),n}(function(){return function e(){A(this,e)}}()),hv=function(){function e(t,n,i,r){A(this,e),this.id=t,this.element=n,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",i)}return m(e,[{key:"_listen",value:function(e,t){return this._renderer.listen(this.element,"@@".concat(this.id,":").concat(e),t)}},{key:"_command",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return fv(this._renderer,this.element,this.id,e,n)}},{key:"onDone",value:function(e){this._listen("done",e)}},{key:"onStart",value:function(e){this._listen("start",e)}},{key:"onDestroy",value:function(e){this._listen("destroy",e)}},{key:"init",value:function(){this._command("init")}},{key:"hasStarted",value:function(){return this._started}},{key:"play",value:function(){this._command("play"),this._started=!0}},{key:"pause",value:function(){this._command("pause")}},{key:"restart",value:function(){this._command("restart")}},{key:"finish",value:function(){this._command("finish")}},{key:"destroy",value:function(){this._command("destroy")}},{key:"reset",value:function(){this._command("reset")}},{key:"setPosition",value:function(e){this._command("setPosition",e)}},{key:"getPosition",value:function(){var e,t;return null!==(t=null===(e=this._renderer.engine.players[+this.id])||void 0===e?void 0:e.getPosition())&&void 0!==t?t:0}}]),e}();function fv(e,t,n,i,r){return e.setProperty(t,"@@".concat(n,":").concat(i),r)}var pv,gv,vv,mv=((pv=function(){function e(t,n,i){A(this,e),this.delegate=t,this.engine=n,this._zone=i,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),n.onRemovalComplete=function(e,t){t&&t.parentNode(e)&&t.removeChild(e.parentNode,e)}}return m(e,[{key:"createRenderer",value:function(e,t){var n=this,i=this.delegate.createRenderer(e,t);if(!(e&&t&&t.data&&t.data.animation)){var r=this._rendererCache.get(i);return r||(r=new yv("",i,this.engine),this._rendererCache.set(i,r)),r}var o=t.id,a=t.id+"-"+this._currentId;return this._currentId++,this.engine.register(a,e),t.data.animation.forEach(function t(i){Array.isArray(i)?i.forEach(t):n.engine.registerTrigger(o,a,e,i.name,i)}),new bv(this,a,i,this.engine)}},{key:"begin",value:function(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}},{key:"_scheduleCountTask",value:function(){var e=this;this.promise.then(function(){e._microtaskId++})}},{key:"scheduleListenerCallback",value:function(e,t,n){var i=this;e>=0&&e<this._microtaskId?this._zone.run(function(){return t(n)}):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(function(){i._zone.run(function(){i._animationCallbacksBuffer.forEach(function(e){var t=f(e,2);(0,t[0])(t[1])}),i._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([t,n]))}},{key:"end",value:function(){var e=this;this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(function(){e._scheduleCountTask(),e.engine.flush(e._microtaskId)}),this.delegate.end&&this.delegate.end()}},{key:"whenRenderingDone",value:function(){return this.engine.whenRenderingDone()}}]),e}()).\u0275fac=function(e){return new(e||pv)(Ri(Pl),Ri(Gg),Ri(Ac))},pv.\u0275prov=Re({token:pv,factory:pv.\u0275fac}),pv),yv=function(){function e(t,n,i){A(this,e),this.namespaceId=t,this.delegate=n,this.engine=i,this.destroyNode=this.delegate.destroyNode?function(e){return n.destroyNode(e)}:null}return m(e,[{key:"data",get:function(){return this.delegate.data}},{key:"destroy",value:function(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}},{key:"createElement",value:function(e,t){return this.delegate.createElement(e,t)}},{key:"createComment",value:function(e){return this.delegate.createComment(e)}},{key:"createText",value:function(e){return this.delegate.createText(e)}},{key:"appendChild",value:function(e,t){this.delegate.appendChild(e,t),this.engine.onInsert(this.namespaceId,t,e,!1)}},{key:"insertBefore",value:function(e,t,n){var i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];this.delegate.insertBefore(e,t,n),this.engine.onInsert(this.namespaceId,t,e,i)}},{key:"removeChild",value:function(e,t,n){this.engine.onRemove(this.namespaceId,t,this.delegate,n)}},{key:"selectRootElement",value:function(e,t){return this.delegate.selectRootElement(e,t)}},{key:"parentNode",value:function(e){return this.delegate.parentNode(e)}},{key:"nextSibling",value:function(e){return this.delegate.nextSibling(e)}},{key:"setAttribute",value:function(e,t,n,i){this.delegate.setAttribute(e,t,n,i)}},{key:"removeAttribute",value:function(e,t,n){this.delegate.removeAttribute(e,t,n)}},{key:"addClass",value:function(e,t){this.delegate.addClass(e,t)}},{key:"removeClass",value:function(e,t){this.delegate.removeClass(e,t)}},{key:"setStyle",value:function(e,t,n,i){this.delegate.setStyle(e,t,n,i)}},{key:"removeStyle",value:function(e,t,n){this.delegate.removeStyle(e,t,n)}},{key:"setProperty",value:function(e,t,n){"@"==t.charAt(0)&&"@.disabled"==t?this.disableAnimations(e,!!n):this.delegate.setProperty(e,t,n)}},{key:"setValue",value:function(e,t){this.delegate.setValue(e,t)}},{key:"listen",value:function(e,t,n){return this.delegate.listen(e,t,n)}},{key:"disableAnimations",value:function(e,t){this.engine.disableAnimations(e,t)}}]),e}(),bv=function(e){r(n,e);var t=a(n);function n(e,i,r,o){var a;return A(this,n),(a=t.call(this,i,r,o)).factory=e,a.namespaceId=i,a}return m(n,[{key:"setProperty",value:function(e,t,n){"@"==t.charAt(0)?"."==t.charAt(1)&&"@.disabled"==t?this.disableAnimations(e,n=void 0===n||!!n):this.engine.process(this.namespaceId,e,t.substr(1),n):this.delegate.setProperty(e,t,n)}},{key:"listen",value:function(e,t,n){var i,r,o=this;if("@"==t.charAt(0)){var a,s=function(e){switch(e){case"body":return document.body;case"document":return document;case"window":return window;default:return e}}(e),l=t.substr(1),u="";return"@"!=l.charAt(0)&&(r=(i=l).indexOf("."),l=(a=f([i.substring(0,r),i.substr(r+1)],2))[0],u=a[1]),this.engine.listen(this.namespaceId,s,l,u,function(e){o.factory.scheduleListenerCallback(e._data||-1,n,e)})}return this.delegate.listen(e,t,n)}}]),n}(yv),wv=((gv=function(e){r(n,e);var t=a(n);function n(e,i,r){return A(this,n),t.call(this,e.body,i,r)}return n}(Gg)).\u0275fac=function(e){return new(e||gv)(Ri(od),Ri(Dp),Ri(mg))},gv.\u0275prov=Re({token:gv,factory:gv.\u0275fac}),gv),_v=new mi("AnimationModuleType"),kv=[{provide:Dp,useFactory:function(){return"function"==typeof lv()?new sv:new ov}},{provide:_v,useValue:"BrowserAnimations"},{provide:Qf,useClass:cv},{provide:mg,useFactory:function(){return new yg}},{provide:Gg,useClass:wv},{provide:Pl,useFactory:function(e,t,n){return new mv(e,t,n)},deps:[Ef,Gg,Ac]}],xv=((vv=function e(){A(this,e)}).\u0275fac=function(e){return new(e||vv)},vv.\u0275mod=mt({type:vv}),vv.\u0275inj=Fe({providers:kv,imports:[Zf]}),vv);function Av(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(1===t.length){var i=t[0];if(S(i))return Cv(i,null);if(P(i)&&Object.getPrototypeOf(i)===Object.prototype){var r=Object.keys(i);return Cv(r.map(function(e){return i[e]}),r)}}if("function"==typeof t[t.length-1]){var o=t.pop();return Cv(t=1===t.length&&S(t[0])?t[0]:t,null).pipe(Y(function(e){return o.apply(void 0,y(e))}))}return Cv(t,null)}function Cv(e,t){return new V(function(n){var i=e.length;if(0!==i)for(var r=new Array(i),o=0,a=0,s=function(s){var l=ie(e[s]),u=!1;n.add(l.subscribe({next:function(e){u||(u=!0,a++),r[s]=e},error:function(e){return n.error(e)},complete:function(){++o!==i&&u||(a===i&&n.next(t?t.reduce(function(e,t,n){return e[t]=r[n],e},{}):r),n.complete())}}))},l=0;l<i;l++)s(l);else n.complete()})}var Sv,Pv,Ev=function e(){A(this,e)},Dv=new mi("NgValueAccessor"),Ov={provide:Dv,useExisting:Pe(function(){return Mv}),multi:!0},Mv=((Sv=function(e){r(n,e);var t=a(n);function n(e,i){var r;return A(this,n),(r=t.call(this))._renderer=e,r._elementRef=i,r.onChange=function(e){},r.onTouched=function(){},r}return m(n,[{key:"writeValue",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"checked",e)}},{key:"registerOnChange",value:function(e){this.onChange=e}},{key:"registerOnTouched",value:function(e){this.onTouched=e}},{key:"setDisabledState",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}}]),n}(Ev)).\u0275fac=function(e){return new(e||Sv)(rs(El),rs(Cl))},Sv.\u0275dir=bt({type:Sv,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(e,t){1&e&&ms("change",function(e){return t.onChange(e.target.checked)})("blur",function(){return t.onTouched()})},features:[yl([Ov]),Va]}),Sv),Tv={provide:Dv,useExisting:Pe(function(){return Rv}),multi:!0},Iv=new mi("CompositionEventMode"),Rv=((Pv=function(){function e(t,n,i){var r;A(this,e),this._renderer=t,this._elementRef=n,this._compositionMode=i,this.onChange=function(e){},this.onTouched=function(){},this._composing=!1,null==this._compositionMode&&(this._compositionMode=(r=id()?id().getUserAgent():"",!/android (\d+)/.test(r.toLowerCase())))}return m(e,[{key:"writeValue",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==e?"":e)}},{key:"registerOnChange",value:function(e){this.onChange=e}},{key:"registerOnTouched",value:function(e){this.onTouched=e}},{key:"setDisabledState",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}},{key:"_handleInput",value:function(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}},{key:"_compositionStart",value:function(){this._composing=!0}},{key:"_compositionEnd",value:function(e){this._composing=!1,this._compositionMode&&this.onChange(e)}}]),e}()).\u0275fac=function(e){return new(e||Pv)(rs(El),rs(Cl),rs(Iv,8))},Pv.\u0275dir=bt({type:Pv,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(e,t){1&e&&ms("input",function(e){return t._handleInput(e.target.value)})("blur",function(){return t.onTouched()})("compositionstart",function(){return t._compositionStart()})("compositionend",function(e){return t._compositionEnd(e.target.value)})},features:[yl([Tv])]}),Pv);function Lv(e){return null==e||0===e.length}function Fv(e){return null!=e&&"number"==typeof e.length}var Bv=new mi("NgValidators"),Vv=new mi("NgAsyncValidators"),zv=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,Nv=function(){function e(){A(this,e)}return m(e,null,[{key:"min",value:function(e){return function(e){return function(t){if(Lv(t.value)||Lv(e))return null;var n=parseFloat(t.value);return!isNaN(n)&&n<e?{min:{min:e,actual:t.value}}:null}}(e)}},{key:"max",value:function(e){return function(e){return function(t){if(Lv(t.value)||Lv(e))return null;var n=parseFloat(t.value);return!isNaN(n)&&n>e?{max:{max:e,actual:t.value}}:null}}(e)}},{key:"required",value:function(e){return Hv(e)}},{key:"requiredTrue",value:function(e){return function(e){return!0===e.value?null:{required:!0}}(e)}},{key:"email",value:function(e){return function(e){return Lv(e.value)||zv.test(e.value)?null:{email:!0}}(e)}},{key:"minLength",value:function(e){return function(e){return function(t){return Lv(t.value)||!Fv(t.value)?null:t.value.length<e?{minlength:{requiredLength:e,actualLength:t.value.length}}:null}}(e)}},{key:"maxLength",value:function(e){return jv(e)}},{key:"pattern",value:function(e){return Uv(e)}},{key:"nullValidator",value:function(e){return null}},{key:"compose",value:function(e){return Xv(e)}},{key:"composeAsync",value:function(e){return Jv(e)}}]),e}();function Hv(e){return Lv(e.value)?{required:!0}:null}function jv(e){return function(t){return Fv(t.value)&&t.value.length>e?{maxlength:{requiredLength:e,actualLength:t.value.length}}:null}}function Uv(e){return e?("string"==typeof e?(n="","^"!==e.charAt(0)&&(n+="^"),n+=e,"$"!==e.charAt(e.length-1)&&(n+="$"),t=new RegExp(n)):(n=e.toString(),t=e),function(e){if(Lv(e.value))return null;var i=e.value;return t.test(i)?null:{pattern:{requiredPattern:n,actualValue:i}}}):Wv;var t,n}function Wv(e){return null}function Gv(e){return null!=e}function qv(e){var t=ps(e)?ie(e):e;return vs(t),t}function Yv(e){var t={};return e.forEach(function(e){t=null!=e?Object.assign(Object.assign({},t),e):t}),0===Object.keys(t).length?null:t}function Zv(e,t){return t.map(function(t){return t(e)})}function Qv(e){return e.map(function(e){return function(e){return!e.validate}(e)?e:function(t){return e.validate(t)}})}function Xv(e){if(!e)return null;var t=e.filter(Gv);return 0==t.length?null:function(e){return Yv(Zv(e,t))}}function Kv(e){return null!=e?Xv(Qv(e)):null}function Jv(e){if(!e)return null;var t=e.filter(Gv);return 0==t.length?null:function(e){return Av(Zv(e,t).map(qv)).pipe(Y(Yv))}}function $v(e){return null!=e?Jv(Qv(e)):null}function em(e,t){return null===e?[t]:Array.isArray(e)?[].concat(y(e),[t]):[e,t]}function tm(e){return e._rawValidators}function nm(e){return e._rawAsyncValidators}var im,rm,om,am,sm=((rm=function(){function e(){A(this,e),this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}return m(e,[{key:"value",get:function(){return this.control?this.control.value:null}},{key:"valid",get:function(){return this.control?this.control.valid:null}},{key:"invalid",get:function(){return this.control?this.control.invalid:null}},{key:"pending",get:function(){return this.control?this.control.pending:null}},{key:"disabled",get:function(){return this.control?this.control.disabled:null}},{key:"enabled",get:function(){return this.control?this.control.enabled:null}},{key:"errors",get:function(){return this.control?this.control.errors:null}},{key:"pristine",get:function(){return this.control?this.control.pristine:null}},{key:"dirty",get:function(){return this.control?this.control.dirty:null}},{key:"touched",get:function(){return this.control?this.control.touched:null}},{key:"status",get:function(){return this.control?this.control.status:null}},{key:"untouched",get:function(){return this.control?this.control.untouched:null}},{key:"statusChanges",get:function(){return this.control?this.control.statusChanges:null}},{key:"valueChanges",get:function(){return this.control?this.control.valueChanges:null}},{key:"path",get:function(){return null}},{key:"_setValidators",value:function(e){this._rawValidators=e||[],this._composedValidatorFn=Kv(this._rawValidators)}},{key:"_setAsyncValidators",value:function(e){this._rawAsyncValidators=e||[],this._composedAsyncValidatorFn=$v(this._rawAsyncValidators)}},{key:"validator",get:function(){return this._composedValidatorFn||null}},{key:"asyncValidator",get:function(){return this._composedAsyncValidatorFn||null}},{key:"_registerOnDestroy",value:function(e){this._onDestroyCallbacks.push(e)}},{key:"_invokeOnDestroyCallbacks",value:function(){this._onDestroyCallbacks.forEach(function(e){return e()}),this._onDestroyCallbacks=[]}},{key:"reset",value:function(e){this.control&&this.control.reset(e)}},{key:"hasError",value:function(e,t){return!!this.control&&this.control.hasError(e,t)}},{key:"getError",value:function(e,t){return this.control?this.control.getError(e,t):null}}]),e}()).\u0275fac=function(e){return new(e||rm)},rm.\u0275dir=bt({type:rm}),rm),lm=((im=function(e){r(n,e);var t=a(n);function n(){return A(this,n),t.apply(this,arguments)}return m(n,[{key:"formDirective",get:function(){return null}},{key:"path",get:function(){return null}}]),n}(sm)).\u0275fac=function(e){return um(e||im)},im.\u0275dir=bt({type:im,features:[Va]}),im),um=hi(lm),cm=function(e){r(n,e);var t=a(n);function n(){var e;return A(this,n),(e=t.apply(this,arguments))._parent=null,e.name=null,e.valueAccessor=null,e}return n}(sm),dm=function(){function e(t){A(this,e),this._cd=t}return m(e,[{key:"is",value:function(e){var t,n;return!!(null===(n=null===(t=this._cd)||void 0===t?void 0:t.control)||void 0===n?void 0:n[e])}}]),e}(),hm=((am=function(e){r(n,e);var t=a(n);function n(e){return A(this,n),t.call(this,e)}return n}(dm)).\u0275fac=function(e){return new(e||am)(rs(cm,2))},am.\u0275dir=bt({type:am,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,t){2&e&&Fs("ng-untouched",t.is("untouched"))("ng-touched",t.is("touched"))("ng-pristine",t.is("pristine"))("ng-dirty",t.is("dirty"))("ng-valid",t.is("valid"))("ng-invalid",t.is("invalid"))("ng-pending",t.is("pending"))},features:[Va]}),am),fm=((om=function(e){r(n,e);var t=a(n);function n(e){return A(this,n),t.call(this,e)}return n}(dm)).\u0275fac=function(e){return new(e||om)(rs(lm,10))},om.\u0275dir=bt({type:om,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:14,hostBindings:function(e,t){2&e&&Fs("ng-untouched",t.is("untouched"))("ng-touched",t.is("touched"))("ng-pristine",t.is("pristine"))("ng-dirty",t.is("dirty"))("ng-valid",t.is("valid"))("ng-invalid",t.is("invalid"))("ng-pending",t.is("pending"))},features:[Va]}),om);function pm(e,t){return[].concat(y(t.path),[e])}function gm(e,t){ym(e,t,!0),t.valueAccessor.writeValue(e.value),function(e,t){t.valueAccessor.registerOnChange(function(n){e._pendingValue=n,e._pendingChange=!0,e._pendingDirty=!0,"change"===e.updateOn&&wm(e,t)})}(e,t),function(e,t){var n=function(e,n){t.valueAccessor.writeValue(e),n&&t.viewToModelUpdate(e)};e.registerOnChange(n),t._registerOnDestroy(function(){e._unregisterOnChange(n)})}(e,t),function(e,t){t.valueAccessor.registerOnTouched(function(){e._pendingTouched=!0,"blur"===e.updateOn&&e._pendingChange&&wm(e,t),"submit"!==e.updateOn&&e.markAsTouched()})}(e,t),function(e,t){if(t.valueAccessor.setDisabledState){var n=function(e){t.valueAccessor.setDisabledState(e)};e.registerOnDisabledChange(n),t._registerOnDestroy(function(){e._unregisterOnDisabledChange(n)})}}(e,t)}function vm(e,t){var n=function(){};t.valueAccessor&&(t.valueAccessor.registerOnChange(n),t.valueAccessor.registerOnTouched(n)),bm(e,t,!0),e&&(t._invokeOnDestroyCallbacks(),e._registerOnCollectionChange(function(){}))}function mm(e,t){e.forEach(function(e){e.registerOnValidatorChange&&e.registerOnValidatorChange(t)})}function ym(e,t,n){var i=tm(e);null!==t.validator?e.setValidators(em(i,t.validator)):"function"==typeof i&&e.setValidators([i]);var r=nm(e);if(null!==t.asyncValidator?e.setAsyncValidators(em(r,t.asyncValidator)):"function"==typeof r&&e.setAsyncValidators([r]),n){var o=function(){return e.updateValueAndValidity()};mm(t._rawValidators,o),mm(t._rawAsyncValidators,o)}}function bm(e,t,n){var i=!1;if(null!==e){if(null!==t.validator){var r=tm(e);if(Array.isArray(r)&&r.length>0){var o=r.filter(function(e){return e!==t.validator});o.length!==r.length&&(i=!0,e.setValidators(o))}}if(null!==t.asyncValidator){var a=nm(e);if(Array.isArray(a)&&a.length>0){var s=a.filter(function(e){return e!==t.asyncValidator});s.length!==a.length&&(i=!0,e.setAsyncValidators(s))}}}if(n){var l=function(){};mm(t._rawValidators,l),mm(t._rawAsyncValidators,l)}return i}function wm(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function _m(e,t){ym(e,t,!1)}function km(e,t){if(!e.hasOwnProperty("model"))return!1;var n=e.model;return!!n.isFirstChange()||!Object.is(t,n.currentValue)}function xm(e,t){e._syncPendingControls(),t.forEach(function(e){var t=e.control;"submit"===t.updateOn&&t._pendingChange&&(e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1)})}function Am(e,t){if(!t)return null;Array.isArray(t);var n=void 0,i=void 0,r=void 0;return t.forEach(function(e){e.constructor===Rv?n=e:Object.getPrototypeOf(e.constructor)===Ev?i=e:r=e}),r||i||n||null}function Cm(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}function Sm(e){return(Om(e)?e.validators:e)||null}function Pm(e){return Array.isArray(e)?Kv(e):e||null}function Em(e,t){return(Om(t)?t.asyncValidators:e)||null}function Dm(e){return Array.isArray(e)?$v(e):e||null}function Om(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}var Mm,Tm,Im,Rm,Lm,Fm,Bm,Vm=function(){function e(t,n){A(this,e),this._hasOwnPendingAsyncValidator=!1,this._onCollectionChange=function(){},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=t,this._rawAsyncValidators=n,this._composedValidatorFn=Pm(this._rawValidators),this._composedAsyncValidatorFn=Dm(this._rawAsyncValidators)}return m(e,[{key:"validator",get:function(){return this._composedValidatorFn},set:function(e){this._rawValidators=this._composedValidatorFn=e}},{key:"asyncValidator",get:function(){return this._composedAsyncValidatorFn},set:function(e){this._rawAsyncValidators=this._composedAsyncValidatorFn=e}},{key:"parent",get:function(){return this._parent}},{key:"valid",get:function(){return"VALID"===this.status}},{key:"invalid",get:function(){return"INVALID"===this.status}},{key:"pending",get:function(){return"PENDING"==this.status}},{key:"disabled",get:function(){return"DISABLED"===this.status}},{key:"enabled",get:function(){return"DISABLED"!==this.status}},{key:"dirty",get:function(){return!this.pristine}},{key:"untouched",get:function(){return!this.touched}},{key:"updateOn",get:function(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}},{key:"setValidators",value:function(e){this._rawValidators=e,this._composedValidatorFn=Pm(e)}},{key:"setAsyncValidators",value:function(e){this._rawAsyncValidators=e,this._composedAsyncValidatorFn=Dm(e)}},{key:"clearValidators",value:function(){this.validator=null}},{key:"clearAsyncValidators",value:function(){this.asyncValidator=null}},{key:"markAsTouched",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!0,this._parent&&!e.onlySelf&&this._parent.markAsTouched(e)}},{key:"markAllAsTouched",value:function(){this.markAsTouched({onlySelf:!0}),this._forEachChild(function(e){return e.markAllAsTouched()})}},{key:"markAsUntouched",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!1,this._pendingTouched=!1,this._forEachChild(function(e){e.markAsUntouched({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}},{key:"markAsDirty",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!1,this._parent&&!e.onlySelf&&this._parent.markAsDirty(e)}},{key:"markAsPristine",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!0,this._pendingDirty=!1,this._forEachChild(function(e){e.markAsPristine({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}},{key:"markAsPending",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.status="PENDING",!1!==e.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!e.onlySelf&&this._parent.markAsPending(e)}},{key:"disable",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this._parentMarkedDirty(e.onlySelf);this.status="DISABLED",this.errors=null,this._forEachChild(function(t){t.disable(Object.assign(Object.assign({},e),{onlySelf:!0}))}),this._updateValue(),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},e),{skipPristineCheck:t})),this._onDisabledChange.forEach(function(e){return e(!0)})}},{key:"enable",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this._parentMarkedDirty(e.onlySelf);this.status="VALID",this._forEachChild(function(t){t.enable(Object.assign(Object.assign({},e),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},e),{skipPristineCheck:t})),this._onDisabledChange.forEach(function(e){return e(!1)})}},{key:"_updateAncestors",value:function(e){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}},{key:"setParent",value:function(e){this._parent=e}},{key:"updateValueAndValidity",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),"VALID"!==this.status&&"PENDING"!==this.status||this._runAsyncValidator(e.emitEvent)),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(e)}},{key:"_updateTreeValidity",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{emitEvent:!0};this._forEachChild(function(t){return t._updateTreeValidity(e)}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}},{key:"_setInitialStatus",value:function(){this.status=this._allControlsDisabled()?"DISABLED":"VALID"}},{key:"_runValidator",value:function(){return this.validator?this.validator(this):null}},{key:"_runAsyncValidator",value:function(e){var t=this;if(this.asyncValidator){this.status="PENDING",this._hasOwnPendingAsyncValidator=!0;var n=qv(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(function(n){t._hasOwnPendingAsyncValidator=!1,t.setErrors(n,{emitEvent:e})})}}},{key:"_cancelExistingSubscription",value:function(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}},{key:"setErrors",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.errors=e,this._updateControlsErrors(!1!==t.emitEvent)}},{key:"get",value:function(e){return function(e,t,n){if(null==t)return null;if(Array.isArray(t)||(t=t.split(".")),Array.isArray(t)&&0===t.length)return null;var i=e;return t.forEach(function(e){i=i instanceof Nm?i.controls.hasOwnProperty(e)?i.controls[e]:null:i instanceof Hm&&i.at(e)||null}),i}(this,e)}},{key:"getError",value:function(e,t){var n=t?this.get(t):this;return n&&n.errors?n.errors[e]:null}},{key:"hasError",value:function(e,t){return!!this.getError(e,t)}},{key:"root",get:function(){for(var e=this;e._parent;)e=e._parent;return e}},{key:"_updateControlsErrors",value:function(e){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(e)}},{key:"_initObservables",value:function(){this.valueChanges=new Fu,this.statusChanges=new Fu}},{key:"_calculateStatus",value:function(){return this._allControlsDisabled()?"DISABLED":this.errors?"INVALID":this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus("PENDING")?"PENDING":this._anyControlsHaveStatus("INVALID")?"INVALID":"VALID"}},{key:"_anyControlsHaveStatus",value:function(e){return this._anyControls(function(t){return t.status===e})}},{key:"_anyControlsDirty",value:function(){return this._anyControls(function(e){return e.dirty})}},{key:"_anyControlsTouched",value:function(){return this._anyControls(function(e){return e.touched})}},{key:"_updatePristine",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!this._anyControlsDirty(),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}},{key:"_updateTouched",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=this._anyControlsTouched(),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}},{key:"_isBoxedValue",value:function(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e}},{key:"_registerOnCollectionChange",value:function(e){this._onCollectionChange=e}},{key:"_setUpdateStrategy",value:function(e){Om(e)&&null!=e.updateOn&&(this._updateOn=e.updateOn)}},{key:"_parentMarkedDirty",value:function(e){return!e&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}]),e}(),zm=function(e){r(n,e);var t=a(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r=arguments.length>1?arguments[1]:void 0,o=arguments.length>2?arguments[2]:void 0;return A(this,n),(e=t.call(this,Sm(r),Em(o,r)))._onChange=[],e._applyFormState(i),e._setUpdateStrategy(r),e._initObservables(),e.updateValueAndValidity({onlySelf:!0,emitEvent:!!o}),e}return m(n,[{key:"setValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.value=this._pendingValue=e,this._onChange.length&&!1!==n.emitModelToViewChange&&this._onChange.forEach(function(e){return e(t.value,!1!==n.emitViewToModelChange)}),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.setValue(e,t)}},{key:"reset",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._applyFormState(e),this.markAsPristine(t),this.markAsUntouched(t),this.setValue(this.value,t),this._pendingChange=!1}},{key:"_updateValue",value:function(){}},{key:"_anyControls",value:function(e){return!1}},{key:"_allControlsDisabled",value:function(){return this.disabled}},{key:"registerOnChange",value:function(e){this._onChange.push(e)}},{key:"_unregisterOnChange",value:function(e){Cm(this._onChange,e)}},{key:"registerOnDisabledChange",value:function(e){this._onDisabledChange.push(e)}},{key:"_unregisterOnDisabledChange",value:function(e){Cm(this._onDisabledChange,e)}},{key:"_forEachChild",value:function(e){}},{key:"_syncPendingControls",value:function(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}},{key:"_applyFormState",value:function(e){this._isBoxedValue(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e}}]),n}(Vm),Nm=function(e){r(n,e);var t=a(n);function n(e,i,r){var o;return A(this,n),(o=t.call(this,Sm(i),Em(r,i))).controls=e,o._initObservables(),o._setUpdateStrategy(i),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!!r}),o}return m(n,[{key:"registerControl",value:function(e,t){return this.controls[e]?this.controls[e]:(this.controls[e]=t,t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange),t)}},{key:"addControl",value:function(e,t){this.registerControl(e,t),this.updateValueAndValidity(),this._onCollectionChange()}},{key:"removeControl",value:function(e){this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),delete this.controls[e],this.updateValueAndValidity(),this._onCollectionChange()}},{key:"setControl",value:function(e,t){this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),delete this.controls[e],t&&this.registerControl(e,t),this.updateValueAndValidity(),this._onCollectionChange()}},{key:"contains",value:function(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled}},{key:"setValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._checkAllValuesPresent(e),Object.keys(e).forEach(function(i){t._throwIfControlMissing(i),t.controls[i].setValue(e[i],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};null!=e&&(Object.keys(e).forEach(function(i){t.controls[i]&&t.controls[i].patchValue(e[i],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n))}},{key:"reset",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild(function(n,i){n.reset(e[i],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}},{key:"getRawValue",value:function(){return this._reduceChildren({},function(e,t,n){return e[n]=t instanceof zm?t.value:t.getRawValue(),e})}},{key:"_syncPendingControls",value:function(){var e=this._reduceChildren(!1,function(e,t){return!!t._syncPendingControls()||e});return e&&this.updateValueAndValidity({onlySelf:!0}),e}},{key:"_throwIfControlMissing",value:function(e){if(!Object.keys(this.controls).length)throw new Error("\n        There are no form controls registered with this group yet. If you're using ngModel,\n        you may want to check next tick (e.g. use setTimeout).\n      ");if(!this.controls[e])throw new Error("Cannot find form control with name: ".concat(e,"."))}},{key:"_forEachChild",value:function(e){var t=this;Object.keys(this.controls).forEach(function(n){var i=t.controls[n];i&&e(i,n)})}},{key:"_setUpControls",value:function(){var e=this;this._forEachChild(function(t){t.setParent(e),t._registerOnCollectionChange(e._onCollectionChange)})}},{key:"_updateValue",value:function(){this.value=this._reduceValue()}},{key:"_anyControls",value:function(e){for(var t=0,n=Object.keys(this.controls);t<n.length;t++){var i=n[t],r=this.controls[i];if(this.contains(i)&&e(r))return!0}return!1}},{key:"_reduceValue",value:function(){var e=this;return this._reduceChildren({},function(t,n,i){return(n.enabled||e.disabled)&&(t[i]=n.value),t})}},{key:"_reduceChildren",value:function(e,t){var n=e;return this._forEachChild(function(e,i){n=t(n,e,i)}),n}},{key:"_allControlsDisabled",value:function(){for(var e=0,t=Object.keys(this.controls);e<t.length;e++){var n=t[e];if(this.controls[n].enabled)return!1}return Object.keys(this.controls).length>0||this.disabled}},{key:"_checkAllValuesPresent",value:function(e){this._forEachChild(function(t,n){if(void 0===e[n])throw new Error("Must supply a value for form control with name: '".concat(n,"'."))})}}]),n}(Vm),Hm=function(e){r(n,e);var t=a(n);function n(e,i,r){var o;return A(this,n),(o=t.call(this,Sm(i),Em(r,i))).controls=e,o._initObservables(),o._setUpdateStrategy(i),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!!r}),o}return m(n,[{key:"at",value:function(e){return this.controls[e]}},{key:"push",value:function(e){this.controls.push(e),this._registerControl(e),this.updateValueAndValidity(),this._onCollectionChange()}},{key:"insert",value:function(e,t){this.controls.splice(e,0,t),this._registerControl(t),this.updateValueAndValidity()}},{key:"removeAt",value:function(e){this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),this.controls.splice(e,1),this.updateValueAndValidity()}},{key:"setControl",value:function(e,t){this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),this.controls.splice(e,1),t&&(this.controls.splice(e,0,t),this._registerControl(t)),this.updateValueAndValidity(),this._onCollectionChange()}},{key:"length",get:function(){return this.controls.length}},{key:"setValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._checkAllValuesPresent(e),e.forEach(function(e,i){t._throwIfControlMissing(i),t.at(i).setValue(e,{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};null!=e&&(e.forEach(function(e,i){t.at(i)&&t.at(i).patchValue(e,{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n))}},{key:"reset",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild(function(n,i){n.reset(e[i],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}},{key:"getRawValue",value:function(){return this.controls.map(function(e){return e instanceof zm?e.value:e.getRawValue()})}},{key:"clear",value:function(){this.controls.length<1||(this._forEachChild(function(e){return e._registerOnCollectionChange(function(){})}),this.controls.splice(0),this.updateValueAndValidity())}},{key:"_syncPendingControls",value:function(){var e=this.controls.reduce(function(e,t){return!!t._syncPendingControls()||e},!1);return e&&this.updateValueAndValidity({onlySelf:!0}),e}},{key:"_throwIfControlMissing",value:function(e){if(!this.controls.length)throw new Error("\n        There are no form controls registered with this array yet. If you're using ngModel,\n        you may want to check next tick (e.g. use setTimeout).\n      ");if(!this.at(e))throw new Error("Cannot find form control at index "+e)}},{key:"_forEachChild",value:function(e){this.controls.forEach(function(t,n){e(t,n)})}},{key:"_updateValue",value:function(){var e=this;this.value=this.controls.filter(function(t){return t.enabled||e.disabled}).map(function(e){return e.value})}},{key:"_anyControls",value:function(e){return this.controls.some(function(t){return t.enabled&&e(t)})}},{key:"_setUpControls",value:function(){var e=this;this._forEachChild(function(t){return e._registerControl(t)})}},{key:"_checkAllValuesPresent",value:function(e){this._forEachChild(function(t,n){if(void 0===e[n])throw new Error("Must supply a value for form control at index: ".concat(n,"."))})}},{key:"_allControlsDisabled",value:function(){var e,t=h(this.controls);try{for(t.s();!(e=t.n()).done;){if(e.value.enabled)return!1}}catch(n){t.e(n)}finally{t.f()}return this.controls.length>0||this.disabled}},{key:"_registerControl",value:function(e){e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)}}]),n}(Vm),jm={provide:lm,useExisting:Pe(function(){return Wm})},Um=Promise.resolve(null),Wm=((Mm=function(e){r(n,e);var t=a(n);function n(e,i){var r;return A(this,n),(r=t.call(this)).submitted=!1,r._directives=[],r.ngSubmit=new Fu,r.form=new Nm({},Kv(e),$v(i)),r}return m(n,[{key:"ngAfterViewInit",value:function(){this._setUpdateStrategy()}},{key:"formDirective",get:function(){return this}},{key:"control",get:function(){return this.form}},{key:"path",get:function(){return[]}},{key:"controls",get:function(){return this.form.controls}},{key:"addControl",value:function(e){var t=this;Um.then(function(){var n=t._findContainer(e.path);e.control=n.registerControl(e.name,e.control),gm(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),t._directives.push(e)})}},{key:"getControl",value:function(e){return this.form.get(e.path)}},{key:"removeControl",value:function(e){var t=this;Um.then(function(){var n=t._findContainer(e.path);n&&n.removeControl(e.name),Cm(t._directives,e)})}},{key:"addFormGroup",value:function(e){var t=this;Um.then(function(){var n=t._findContainer(e.path),i=new Nm({});_m(i,e),n.registerControl(e.name,i),i.updateValueAndValidity({emitEvent:!1})})}},{key:"removeFormGroup",value:function(e){var t=this;Um.then(function(){var n=t._findContainer(e.path);n&&n.removeControl(e.name)})}},{key:"getFormGroup",value:function(e){return this.form.get(e.path)}},{key:"updateModel",value:function(e,t){var n=this;Um.then(function(){n.form.get(e.path).setValue(t)})}},{key:"setValue",value:function(e){this.control.setValue(e)}},{key:"onSubmit",value:function(e){return this.submitted=!0,xm(this.form,this._directives),this.ngSubmit.emit(e),!1}},{key:"onReset",value:function(){this.resetForm()}},{key:"resetForm",value:function(e){this.form.reset(e),this.submitted=!1}},{key:"_setUpdateStrategy",value:function(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}},{key:"_findContainer",value:function(e){return e.pop(),e.length?this.form.get(e):this.form}}]),n}(lm)).\u0275fac=function(e){return new(e||Mm)(rs(Bv,10),rs(Vv,10))},Mm.\u0275dir=bt({type:Mm,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(e,t){1&e&&ms("submit",function(e){return t.onSubmit(e)})("reset",function(){return t.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[yl([jm]),Va]}),Mm),Gm={provide:cm,useExisting:Pe(function(){return Ym})},qm=Promise.resolve(null),Ym=((Rm=function(e){r(n,e);var t=a(n);function n(e,i,r,o){var a;return A(this,n),(a=t.call(this)).control=new zm,a._registered=!1,a.update=new Fu,a._parent=e,a._setValidators(i),a._setAsyncValidators(r),a.valueAccessor=Am(0,o),a}return m(n,[{key:"ngOnChanges",value:function(e){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in e&&this._updateDisabled(e),km(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}},{key:"ngOnDestroy",value:function(){this.formDirective&&this.formDirective.removeControl(this)}},{key:"path",get:function(){return this._parent?pm(this.name,this._parent):[this.name]}},{key:"formDirective",get:function(){return this._parent?this._parent.formDirective:null}},{key:"viewToModelUpdate",value:function(e){this.viewModel=e,this.update.emit(e)}},{key:"_setUpControl",value:function(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}},{key:"_setUpdateStrategy",value:function(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}},{key:"_isStandalone",value:function(){return!this._parent||!(!this.options||!this.options.standalone)}},{key:"_setUpStandalone",value:function(){gm(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}},{key:"_checkForErrors",value:function(){this._isStandalone()||this._checkParentType(),this._checkName()}},{key:"_checkParentType",value:function(){}},{key:"_checkName",value:function(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}},{key:"_updateValue",value:function(e){var t=this;qm.then(function(){t.control.setValue(e,{emitViewToModelChange:!1})})}},{key:"_updateDisabled",value:function(e){var t=this,n=e.isDisabled.currentValue,i=""===n||n&&"false"!==n;qm.then(function(){i&&!t.control.disabled?t.control.disable():!i&&t.control.disabled&&t.control.enable()})}}]),n}(cm)).\u0275fac=function(e){return new(e||Rm)(rs(lm,9),rs(Bv,10),rs(Vv,10),rs(Dv,10))},Rm.\u0275dir=bt({type:Rm,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[yl([Gm]),Va,Mt]}),Rm),Zm=((Im=function e(){A(this,e)}).\u0275fac=function(e){return new(e||Im)},Im.\u0275dir=bt({type:Im,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),Im),Qm=((Tm=function e(){A(this,e)}).\u0275fac=function(e){return new(e||Tm)},Tm.\u0275mod=mt({type:Tm}),Tm.\u0275inj=Fe({}),Tm),Xm=new mi("NgModelWithFormControlWarning"),Km={provide:cm,useExisting:Pe(function(){return Jm})},Jm=((Lm=function(e){r(n,e);var t=a(n);function n(e,i,r,o){var a;return A(this,n),(a=t.call(this))._ngModelWarningConfig=o,a.update=new Fu,a._ngModelWarningSent=!1,a._setValidators(e),a._setAsyncValidators(i),a.valueAccessor=Am(0,r),a}return m(n,[{key:"isDisabled",set:function(e){}},{key:"ngOnChanges",value:function(e){if(this._isControlChanged(e)){var t=e.form.previousValue;t&&vm(t,this,!1),gm(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})}km(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}},{key:"ngOnDestroy",value:function(){this.form&&vm(this.form,this,!1)}},{key:"path",get:function(){return[]}},{key:"control",get:function(){return this.form}},{key:"viewToModelUpdate",value:function(e){this.viewModel=e,this.update.emit(e)}},{key:"_isControlChanged",value:function(e){return e.hasOwnProperty("form")}}]),n}(cm)).\u0275fac=function(e){return new(e||Lm)(rs(Bv,10),rs(Vv,10),rs(Dv,10),rs(Xm,8))},Lm.\u0275dir=bt({type:Lm,selectors:[["","formControl",""]],inputs:{isDisabled:["disabled","isDisabled"],form:["formControl","form"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[yl([Km]),Va,Mt]}),Lm._ngModelWarningSentOnce=!1,Lm),$m={provide:lm,useExisting:Pe(function(){return ey})},ey=((Fm=function(e){r(n,e);var t=a(n);function n(e,i){var r;return A(this,n),(r=t.call(this)).validators=e,r.asyncValidators=i,r.submitted=!1,r._onCollectionChange=function(){return r._updateDomValue()},r.directives=[],r.form=null,r.ngSubmit=new Fu,r._setValidators(e),r._setAsyncValidators(i),r}return m(n,[{key:"ngOnChanges",value:function(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}},{key:"ngOnDestroy",value:function(){this.form&&(bm(this.form,this,!1),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(function(){}))}},{key:"formDirective",get:function(){return this}},{key:"control",get:function(){return this.form}},{key:"path",get:function(){return[]}},{key:"addControl",value:function(e){var t=this.form.get(e.path);return gm(t,e),t.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),t}},{key:"getControl",value:function(e){return this.form.get(e.path)}},{key:"removeControl",value:function(e){vm(e.control||null,e,!1),Cm(this.directives,e)}},{key:"addFormGroup",value:function(e){this._setUpFormContainer(e)}},{key:"removeFormGroup",value:function(e){this._cleanUpFormContainer(e)}},{key:"getFormGroup",value:function(e){return this.form.get(e.path)}},{key:"addFormArray",value:function(e){this._setUpFormContainer(e)}},{key:"removeFormArray",value:function(e){this._cleanUpFormContainer(e)}},{key:"getFormArray",value:function(e){return this.form.get(e.path)}},{key:"updateModel",value:function(e,t){this.form.get(e.path).setValue(t)}},{key:"onSubmit",value:function(e){return this.submitted=!0,xm(this.form,this.directives),this.ngSubmit.emit(e),!1}},{key:"onReset",value:function(){this.resetForm()}},{key:"resetForm",value:function(e){this.form.reset(e),this.submitted=!1}},{key:"_updateDomValue",value:function(){var e=this;this.directives.forEach(function(t){var n=t.control,i=e.form.get(t.path);n!==i&&(vm(n||null,t),i instanceof zm&&(gm(i,t),t.control=i))}),this.form._updateTreeValidity({emitEvent:!1})}},{key:"_setUpFormContainer",value:function(e){var t=this.form.get(e.path);_m(t,e),t.updateValueAndValidity({emitEvent:!1})}},{key:"_cleanUpFormContainer",value:function(e){if(this.form){var t=this.form.get(e.path);t&&function(e,t){return bm(e,t,!1)}(t,e)&&t.updateValueAndValidity({emitEvent:!1})}}},{key:"_updateRegistrations",value:function(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(function(){})}},{key:"_updateValidators",value:function(){ym(this.form,this,!1),this._oldForm&&bm(this._oldForm,this,!1)}},{key:"_checkFormPresent",value:function(){}}]),n}(lm)).\u0275fac=function(e){return new(e||Fm)(rs(Bv,10),rs(Vv,10))},Fm.\u0275dir=bt({type:Fm,selectors:[["","formGroup",""]],hostBindings:function(e,t){1&e&&ms("submit",function(e){return t.onSubmit(e)})("reset",function(){return t.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[yl([$m]),Va,Mt]}),Fm),ty={provide:cm,useExisting:Pe(function(){return ny})},ny=((Bm=function(e){r(n,e);var t=a(n);function n(e,i,r,o,a){var s;return A(this,n),(s=t.call(this))._ngModelWarningConfig=a,s._added=!1,s.update=new Fu,s._ngModelWarningSent=!1,s._parent=e,s._setValidators(i),s._setAsyncValidators(r),s.valueAccessor=Am(0,o),s}return m(n,[{key:"isDisabled",set:function(e){}},{key:"ngOnChanges",value:function(e){this._added||this._setUpControl(),km(e,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}},{key:"ngOnDestroy",value:function(){this.formDirective&&this.formDirective.removeControl(this)}},{key:"viewToModelUpdate",value:function(e){this.viewModel=e,this.update.emit(e)}},{key:"path",get:function(){return pm(null==this.name?this.name:this.name.toString(),this._parent)}},{key:"formDirective",get:function(){return this._parent?this._parent.formDirective:null}},{key:"_checkParentType",value:function(){}},{key:"_setUpControl",value:function(){this._checkParentType(),this.control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0}}]),n}(cm)).\u0275fac=function(e){return new(e||Bm)(rs(lm,13),rs(Bv,10),rs(Vv,10),rs(Dv,10),rs(Xm,8))},Bm.\u0275dir=bt({type:Bm,selectors:[["","formControlName",""]],inputs:{isDisabled:["disabled","isDisabled"],name:["formControlName","name"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[yl([ty]),Va,Mt]}),Bm._ngModelWarningSentOnce=!1,Bm),iy={provide:Dv,useExisting:Pe(function(){return sy}),multi:!0};function ry(e,t){return null==e?""+t:(t&&"object"==typeof t&&(t="Object"),"".concat(e,": ").concat(t).slice(0,50))}var oy,ay,sy=((ay=function(e){r(n,e);var t=a(n);function n(e,i){var r;return A(this,n),(r=t.call(this))._renderer=e,r._elementRef=i,r._optionMap=new Map,r._idCounter=0,r.onChange=function(e){},r.onTouched=function(){},r._compareWith=Object.is,r}return m(n,[{key:"compareWith",set:function(e){this._compareWith=e}},{key:"writeValue",value:function(e){this.value=e;var t=this._getOptionId(e);null==t&&this._renderer.setProperty(this._elementRef.nativeElement,"selectedIndex",-1);var n=ry(t,e);this._renderer.setProperty(this._elementRef.nativeElement,"value",n)}},{key:"registerOnChange",value:function(e){var t=this;this.onChange=function(n){t.value=t._getOptionValue(n),e(t.value)}}},{key:"registerOnTouched",value:function(e){this.onTouched=e}},{key:"setDisabledState",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}},{key:"_registerOption",value:function(){return(this._idCounter++).toString()}},{key:"_getOptionId",value:function(e){for(var t=0,n=Array.from(this._optionMap.keys());t<n.length;t++){var i=n[t];if(this._compareWith(this._optionMap.get(i),e))return i}return null}},{key:"_getOptionValue",value:function(e){var t=function(e){return e.split(":")[0]}(e);return this._optionMap.has(t)?this._optionMap.get(t):e}}]),n}(Ev)).\u0275fac=function(e){return new(e||ay)(rs(El),rs(Cl))},ay.\u0275dir=bt({type:ay,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(e,t){1&e&&ms("change",function(e){return t.onChange(e.target.value)})("blur",function(){return t.onTouched()})},inputs:{compareWith:"compareWith"},features:[yl([iy]),Va]}),ay),ly=((oy=function(){function e(t,n,i){A(this,e),this._element=t,this._renderer=n,this._select=i,this._select&&(this.id=this._select._registerOption())}return m(e,[{key:"ngValue",set:function(e){null!=this._select&&(this._select._optionMap.set(this.id,e),this._setElementValue(ry(this.id,e)),this._select.writeValue(this._select.value))}},{key:"value",set:function(e){this._setElementValue(e),this._select&&this._select.writeValue(this._select.value)}},{key:"_setElementValue",value:function(e){this._renderer.setProperty(this._element.nativeElement,"value",e)}},{key:"ngOnDestroy",value:function(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}]),e}()).\u0275fac=function(e){return new(e||oy)(rs(Cl),rs(El),rs(sy,9))},oy.\u0275dir=bt({type:oy,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),oy),uy={provide:Dv,useExisting:Pe(function(){return wy}),multi:!0};function cy(e,t){return null==e?""+t:("string"==typeof t&&(t="'".concat(t,"'")),t&&"object"==typeof t&&(t="Object"),"".concat(e,": ").concat(t).slice(0,50))}var dy,hy,fy,py,gy,vy,my,yy,by,wy=((hy=function(e){r(n,e);var t=a(n);function n(e,i){var r;return A(this,n),(r=t.call(this))._renderer=e,r._elementRef=i,r._optionMap=new Map,r._idCounter=0,r.onChange=function(e){},r.onTouched=function(){},r._compareWith=Object.is,r}return m(n,[{key:"compareWith",set:function(e){this._compareWith=e}},{key:"writeValue",value:function(e){var t,n=this;if(this.value=e,Array.isArray(e)){var i=e.map(function(e){return n._getOptionId(e)});t=function(e,t){e._setSelected(i.indexOf(t.toString())>-1)}}else t=function(e,t){e._setSelected(!1)};this._optionMap.forEach(t)}},{key:"registerOnChange",value:function(e){var t=this;this.onChange=function(n){var i=[];if(void 0!==n.selectedOptions)for(var r=n.selectedOptions,o=0;o<r.length;o++){var a=r.item(o),s=t._getOptionValue(a.value);i.push(s)}else for(var l=n.options,u=0;u<l.length;u++){var c=l.item(u);if(c.selected){var d=t._getOptionValue(c.value);i.push(d)}}t.value=i,e(i)}}},{key:"registerOnTouched",value:function(e){this.onTouched=e}},{key:"setDisabledState",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}},{key:"_registerOption",value:function(e){var t=(this._idCounter++).toString();return this._optionMap.set(t,e),t}},{key:"_getOptionId",value:function(e){for(var t=0,n=Array.from(this._optionMap.keys());t<n.length;t++){var i=n[t];if(this._compareWith(this._optionMap.get(i)._value,e))return i}return null}},{key:"_getOptionValue",value:function(e){var t=function(e){return e.split(":")[0]}(e);return this._optionMap.has(t)?this._optionMap.get(t)._value:e}}]),n}(Ev)).\u0275fac=function(e){return new(e||hy)(rs(El),rs(Cl))},hy.\u0275dir=bt({type:hy,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(e,t){1&e&&ms("change",function(e){return t.onChange(e.target)})("blur",function(){return t.onTouched()})},inputs:{compareWith:"compareWith"},features:[yl([uy]),Va]}),hy),_y=((dy=function(){function e(t,n,i){A(this,e),this._element=t,this._renderer=n,this._select=i,this._select&&(this.id=this._select._registerOption(this))}return m(e,[{key:"ngValue",set:function(e){null!=this._select&&(this._value=e,this._setElementValue(cy(this.id,e)),this._select.writeValue(this._select.value))}},{key:"value",set:function(e){this._select?(this._value=e,this._setElementValue(cy(this.id,e)),this._select.writeValue(this._select.value)):this._setElementValue(e)}},{key:"_setElementValue",value:function(e){this._renderer.setProperty(this._element.nativeElement,"value",e)}},{key:"_setSelected",value:function(e){this._renderer.setProperty(this._element.nativeElement,"selected",e)}},{key:"ngOnDestroy",value:function(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}]),e}()).\u0275fac=function(e){return new(e||dy)(rs(Cl),rs(El),rs(wy,9))},dy.\u0275dir=bt({type:dy,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),dy),ky={provide:Bv,useExisting:Pe(function(){return xy}),multi:!0},xy=((fy=function(){function e(){A(this,e),this._required=!1}return m(e,[{key:"required",get:function(){return this._required},set:function(e){this._required=null!=e&&!1!==e&&""+e!="false",this._onChange&&this._onChange()}},{key:"validate",value:function(e){return this.required?Hv(e):null}},{key:"registerOnValidatorChange",value:function(e){this._onChange=e}}]),e}()).\u0275fac=function(e){return new(e||fy)},fy.\u0275dir=bt({type:fy,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(e,t){2&e&&$a("required",t.required?"":null)},inputs:{required:"required"},features:[yl([ky])]}),fy),Ay={provide:Bv,useExisting:Pe(function(){return Cy}),multi:!0},Cy=((py=function(){function e(){A(this,e),this._validator=Wv}return m(e,[{key:"ngOnChanges",value:function(e){"maxlength"in e&&(this._createValidator(),this._onChange&&this._onChange())}},{key:"validate",value:function(e){return null!=this.maxlength?this._validator(e):null}},{key:"registerOnValidatorChange",value:function(e){this._onChange=e}},{key:"_createValidator",value:function(){this._validator=jv("number"==typeof this.maxlength?this.maxlength:parseInt(this.maxlength,10))}}]),e}()).\u0275fac=function(e){return new(e||py)},py.\u0275dir=bt({type:py,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(e,t){2&e&&$a("maxlength",t.maxlength?t.maxlength:null)},inputs:{maxlength:"maxlength"},features:[yl([Ay]),Mt]}),py),Sy={provide:Bv,useExisting:Pe(function(){return Py}),multi:!0},Py=((by=function(){function e(){A(this,e),this._validator=Wv}return m(e,[{key:"ngOnChanges",value:function(e){"pattern"in e&&(this._createValidator(),this._onChange&&this._onChange())}},{key:"validate",value:function(e){return this._validator(e)}},{key:"registerOnValidatorChange",value:function(e){this._onChange=e}},{key:"_createValidator",value:function(){this._validator=Uv(this.pattern)}}]),e}()).\u0275fac=function(e){return new(e||by)},by.\u0275dir=bt({type:by,selectors:[["","pattern","","formControlName",""],["","pattern","","formControl",""],["","pattern","","ngModel",""]],hostVars:1,hostBindings:function(e,t){2&e&&$a("pattern",t.pattern?t.pattern:null)},inputs:{pattern:"pattern"},features:[yl([Sy]),Mt]}),by),Ey=((yy=function e(){A(this,e)}).\u0275fac=function(e){return new(e||yy)},yy.\u0275mod=mt({type:yy}),yy.\u0275inj=Fe({imports:[[Qm]]}),yy),Dy=((my=function e(){A(this,e)}).\u0275fac=function(e){return new(e||my)},my.\u0275mod=mt({type:my}),my.\u0275inj=Fe({imports:[Ey]}),my),Oy=((vy=function(){function e(){A(this,e)}return m(e,null,[{key:"withConfig",value:function(t){return{ngModule:e,providers:[{provide:Xm,useValue:t.warnOnNgModelWithFormControl}]}}}]),e}()).\u0275fac=function(e){return new(e||vy)},vy.\u0275mod=mt({type:vy}),vy.\u0275inj=Fe({imports:[Ey]}),vy),My=((gy=function(){function e(){A(this,e)}return m(e,[{key:"group",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=this._reduceControls(e),i=null,r=null,o=void 0;return null!=t&&(function(e){return void 0!==e.asyncValidators||void 0!==e.validators||void 0!==e.updateOn}(t)?(i=null!=t.validators?t.validators:null,r=null!=t.asyncValidators?t.asyncValidators:null,o=null!=t.updateOn?t.updateOn:void 0):(i=null!=t.validator?t.validator:null,r=null!=t.asyncValidator?t.asyncValidator:null)),new Nm(n,{asyncValidators:r,updateOn:o,validators:i})}},{key:"control",value:function(e,t,n){return new zm(e,t,n)}},{key:"array",value:function(e,t,n){var i=this,r=e.map(function(e){return i._createControl(e)});return new Hm(r,t,n)}},{key:"_reduceControls",value:function(e){var t=this,n={};return Object.keys(e).forEach(function(i){n[i]=t._createControl(e[i])}),n}},{key:"_createControl",value:function(e){return e instanceof zm||e instanceof Nm||e instanceof Hm?e:Array.isArray(e)?this.control(e[0],e.length>1?e[1]:null,e.length>2?e[2]:null):this.control(e)}}]),e}()).\u0275fac=function(e){return new(e||gy)},gy.\u0275prov=Re({factory:function(){return new gy},token:gy,providedIn:Oy}),gy);function Ty(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var i=t[t.length-1];return q(i)?(t.pop(),ne(t,i)):de(t)}function Iy(e,t){return se(e,t,1)}function Ry(e,t){return function(n){return n.lift(new Ly(e,t))}}var Ly=function(){function e(t,n){A(this,e),this.predicate=t,this.thisArg=n}return m(e,[{key:"call",value:function(e,t){return t.subscribe(new Fy(e,this.predicate,this.thisArg))}}]),e}(),Fy=function(e){r(n,e);var t=a(n);function n(e,i,r){var o;return A(this,n),(o=t.call(this,e)).predicate=i,o.thisArg=r,o.count=0,o}return m(n,[{key:"_next",value:function(e){var t;try{t=this.predicate.call(this.thisArg,e,this.count++)}catch(n){return void this.destination.error(n)}t&&this.destination.next(e)}}]),n}(I),By=function e(){A(this,e)},Vy=function e(){A(this,e)},zy=function(){function e(t){var n=this;A(this,e),this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?function(){n.headers=new Map,t.split("\n").forEach(function(e){var t=e.indexOf(":");if(t>0){var i=e.slice(0,t),r=i.toLowerCase(),o=e.slice(t+1).trim();n.maybeSetNormalizedName(i,r),n.headers.has(r)?n.headers.get(r).push(o):n.headers.set(r,[o])}})}:function(){n.headers=new Map,Object.keys(t).forEach(function(e){var i=t[e],r=e.toLowerCase();"string"==typeof i&&(i=[i]),i.length>0&&(n.headers.set(r,i),n.maybeSetNormalizedName(e,r))})}:this.headers=new Map}return m(e,[{key:"has",value:function(e){return this.init(),this.headers.has(e.toLowerCase())}},{key:"get",value:function(e){this.init();var t=this.headers.get(e.toLowerCase());return t&&t.length>0?t[0]:null}},{key:"keys",value:function(){return this.init(),Array.from(this.normalizedNames.values())}},{key:"getAll",value:function(e){return this.init(),this.headers.get(e.toLowerCase())||null}},{key:"append",value:function(e,t){return this.clone({name:e,value:t,op:"a"})}},{key:"set",value:function(e,t){return this.clone({name:e,value:t,op:"s"})}},{key:"delete",value:function(e,t){return this.clone({name:e,value:t,op:"d"})}},{key:"maybeSetNormalizedName",value:function(e,t){this.normalizedNames.has(t)||this.normalizedNames.set(t,e)}},{key:"init",value:function(){var t=this;this.lazyInit&&(this.lazyInit instanceof e?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(function(e){return t.applyUpdate(e)}),this.lazyUpdate=null))}},{key:"copyFrom",value:function(e){var t=this;e.init(),Array.from(e.headers.keys()).forEach(function(n){t.headers.set(n,e.headers.get(n)),t.normalizedNames.set(n,e.normalizedNames.get(n))})}},{key:"clone",value:function(t){var n=new e;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof e?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([t]),n}},{key:"applyUpdate",value:function(e){var t=e.name.toLowerCase();switch(e.op){case"a":case"s":var n=e.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(e.name,t);var i=("a"===e.op?this.headers.get(t):void 0)||[];i.push.apply(i,y(n)),this.headers.set(t,i);break;case"d":var r=e.value;if(r){var o=this.headers.get(t);if(!o)return;0===(o=o.filter(function(e){return-1===r.indexOf(e)})).length?(this.headers.delete(t),this.normalizedNames.delete(t)):this.headers.set(t,o)}else this.headers.delete(t),this.normalizedNames.delete(t)}}},{key:"forEach",value:function(e){var t=this;this.init(),Array.from(this.normalizedNames.keys()).forEach(function(n){return e(t.normalizedNames.get(n),t.headers.get(n))})}}]),e}(),Ny=function(){function e(){A(this,e)}return m(e,[{key:"encodeKey",value:function(e){return Hy(e)}},{key:"encodeValue",value:function(e){return Hy(e)}},{key:"decodeKey",value:function(e){return decodeURIComponent(e)}},{key:"decodeValue",value:function(e){return decodeURIComponent(e)}}]),e}();function Hy(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/gi,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/%3D/gi,"=").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}var jy=function(){function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(A(this,e),this.updates=null,this.cloneFrom=null,this.encoder=n.encoder||new Ny,n.fromString){if(n.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(e,t){var n=new Map;return e.length>0&&e.replace(/^\?/,"").split("&").forEach(function(e){var i=e.indexOf("="),r=f(-1==i?[t.decodeKey(e),""]:[t.decodeKey(e.slice(0,i)),t.decodeValue(e.slice(i+1))],2),o=r[0],a=r[1],s=n.get(o)||[];s.push(a),n.set(o,s)}),n}(n.fromString,this.encoder)}else n.fromObject?(this.map=new Map,Object.keys(n.fromObject).forEach(function(e){var i=n.fromObject[e];t.map.set(e,Array.isArray(i)?i:[i])})):this.map=null}return m(e,[{key:"has",value:function(e){return this.init(),this.map.has(e)}},{key:"get",value:function(e){this.init();var t=this.map.get(e);return t?t[0]:null}},{key:"getAll",value:function(e){return this.init(),this.map.get(e)||null}},{key:"keys",value:function(){return this.init(),Array.from(this.map.keys())}},{key:"append",value:function(e,t){return this.clone({param:e,value:t,op:"a"})}},{key:"appendAll",value:function(e){var t=[];return Object.keys(e).forEach(function(n){var i=e[n];Array.isArray(i)?i.forEach(function(e){t.push({param:n,value:e,op:"a"})}):t.push({param:n,value:i,op:"a"})}),this.clone(t)}},{key:"set",value:function(e,t){return this.clone({param:e,value:t,op:"s"})}},{key:"delete",value:function(e,t){return this.clone({param:e,value:t,op:"d"})}},{key:"toString",value:function(){var e=this;return this.init(),this.keys().map(function(t){var n=e.encoder.encodeKey(t);return e.map.get(t).map(function(t){return n+"="+e.encoder.encodeValue(t)}).join("&")}).filter(function(e){return""!==e}).join("&")}},{key:"clone",value:function(t){var n=new e({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat(t),n}},{key:"init",value:function(){var e=this;null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(function(t){return e.map.set(t,e.cloneFrom.map.get(t))}),this.updates.forEach(function(t){switch(t.op){case"a":case"s":var n=("a"===t.op?e.map.get(t.param):void 0)||[];n.push(t.value),e.map.set(t.param,n);break;case"d":if(void 0===t.value){e.map.delete(t.param);break}var i=e.map.get(t.param)||[],r=i.indexOf(t.value);-1!==r&&i.splice(r,1),i.length>0?e.map.set(t.param,i):e.map.delete(t.param)}}),this.cloneFrom=this.updates=null)}}]),e}();function Uy(e){return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer}function Wy(e){return"undefined"!=typeof Blob&&e instanceof Blob}function Gy(e){return"undefined"!=typeof FormData&&e instanceof FormData}var qy=function(){function e(t,n,i,r){var o;if(A(this,e),this.url=n,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||r?(this.body=void 0!==i?i:null,o=r):o=i,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.params&&(this.params=o.params)),this.headers||(this.headers=new zy),this.params){var a=this.params.toString();if(0===a.length)this.urlWithParams=n;else{var s=n.indexOf("?");this.urlWithParams=n+(-1===s?"?":s<n.length-1?"&":"")+a}}else this.params=new jy,this.urlWithParams=n}return m(e,[{key:"serializeBody",value:function(){return null===this.body?null:Uy(this.body)||Wy(this.body)||Gy(this.body)||"string"==typeof this.body?this.body:this.body instanceof jy?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}},{key:"detectContentTypeHeader",value:function(){return null===this.body||Gy(this.body)?null:Wy(this.body)?this.body.type||null:Uy(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof jy?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||Array.isArray(this.body)?"application/json":null}},{key:"clone",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.method||this.method,i=t.url||this.url,r=t.responseType||this.responseType,o=void 0!==t.body?t.body:this.body,a=void 0!==t.withCredentials?t.withCredentials:this.withCredentials,s=void 0!==t.reportProgress?t.reportProgress:this.reportProgress,l=t.headers||this.headers,u=t.params||this.params;return void 0!==t.setHeaders&&(l=Object.keys(t.setHeaders).reduce(function(e,n){return e.set(n,t.setHeaders[n])},l)),t.setParams&&(u=Object.keys(t.setParams).reduce(function(e,n){return e.set(n,t.setParams[n])},u)),new e(n,i,o,{params:u,headers:l,reportProgress:s,responseType:r,withCredentials:a})}}]),e}(),Yy=function(e){return e[e.Sent=0]="Sent",e[e.UploadProgress=1]="UploadProgress",e[e.ResponseHeader=2]="ResponseHeader",e[e.DownloadProgress=3]="DownloadProgress",e[e.Response=4]="Response",e[e.User=5]="User",e}({}),Zy=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"OK";A(this,e),this.headers=t.headers||new zy,this.status=void 0!==t.status?t.status:n,this.statusText=t.statusText||i,this.url=t.url||null,this.ok=this.status>=200&&this.status<300},Qy=function(e){r(n,e);var t=a(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return A(this,n),(e=t.call(this,i)).type=Yy.ResponseHeader,e}return m(n,[{key:"clone",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new n({headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}}]),n}(Zy),Xy=function(e){r(n,e);var t=a(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return A(this,n),(e=t.call(this,i)).type=Yy.Response,e.body=void 0!==i.body?i.body:null,e}return m(n,[{key:"clone",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new n({body:void 0!==e.body?e.body:this.body,headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}}]),n}(Zy),Ky=function(e){r(n,e);var t=a(n);function n(e){var i;return A(this,n),(i=t.call(this,e,0,"Unknown Error")).name="HttpErrorResponse",i.ok=!1,i.message=i.status>=200&&i.status<300?"Http failure during parsing for "+(e.url||"(unknown url)"):"Http failure response for ".concat(e.url||"(unknown url)",": ").concat(e.status," ").concat(e.statusText),i.error=e.error||null,i}return n}(Zy);function Jy(e,t){return{body:t,headers:e.headers,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials}}var $y,eb,tb,nb,ib,rb,ob,ab,sb,lb=(($y=function(){function e(t){A(this,e),this.handler=t}return m(e,[{key:"request",value:function(e,t){var n,i=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e instanceof qy)n=e;else{var o=void 0;o=r.headers instanceof zy?r.headers:new zy(r.headers);var a=void 0;r.params&&(a=r.params instanceof jy?r.params:new jy({fromObject:r.params})),n=new qy(e,t,void 0!==r.body?r.body:null,{headers:o,params:a,reportProgress:r.reportProgress,responseType:r.responseType||"json",withCredentials:r.withCredentials})}var s=Ty(n).pipe(Iy(function(e){return i.handler.handle(e)}));if(e instanceof qy||"events"===r.observe)return s;var l=s.pipe(Ry(function(e){return e instanceof Xy}));switch(r.observe||"body"){case"body":switch(n.responseType){case"arraybuffer":return l.pipe(Y(function(e){if(null!==e.body&&!(e.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return e.body}));case"blob":return l.pipe(Y(function(e){if(null!==e.body&&!(e.body instanceof Blob))throw new Error("Response is not a Blob.");return e.body}));case"text":return l.pipe(Y(function(e){if(null!==e.body&&"string"!=typeof e.body)throw new Error("Response is not a string.");return e.body}));case"json":default:return l.pipe(Y(function(e){return e.body}))}case"response":return l;default:throw new Error("Unreachable: unhandled observe type ".concat(r.observe,"}"))}}},{key:"delete",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("DELETE",e,t)}},{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("GET",e,t)}},{key:"head",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("HEAD",e,t)}},{key:"jsonp",value:function(e,t){return this.request("JSONP",e,{params:(new jy).append(t,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}},{key:"options",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("OPTIONS",e,t)}},{key:"patch",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PATCH",e,Jy(n,t))}},{key:"post",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("POST",e,Jy(n,t))}},{key:"put",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PUT",e,Jy(n,t))}}]),e}()).\u0275fac=function(e){return new(e||$y)(Ri(By))},$y.\u0275prov=Re({token:$y,factory:$y.\u0275fac}),$y),ub=function(){function e(t,n){A(this,e),this.next=t,this.interceptor=n}return m(e,[{key:"handle",value:function(e){return this.interceptor.intercept(e,this.next)}}]),e}(),cb=new mi("HTTP_INTERCEPTORS"),db=((eb=function(){function e(){A(this,e)}return m(e,[{key:"intercept",value:function(e,t){return t.handle(e)}}]),e}()).\u0275fac=function(e){return new(e||eb)},eb.\u0275prov=Re({token:eb,factory:eb.\u0275fac}),eb),hb=/^\)\]\}',?\n/,fb=function e(){A(this,e)},pb=((nb=function(){function e(){A(this,e)}return m(e,[{key:"build",value:function(){return new XMLHttpRequest}}]),e}()).\u0275fac=function(e){return new(e||nb)},nb.\u0275prov=Re({token:nb,factory:nb.\u0275fac}),nb),gb=((tb=function(){function e(t){A(this,e),this.xhrFactory=t}return m(e,[{key:"handle",value:function(e){var t=this;if("JSONP"===e.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new V(function(n){var i=t.xhrFactory.build();if(i.open(e.method,e.urlWithParams),e.withCredentials&&(i.withCredentials=!0),e.headers.forEach(function(e,t){return i.setRequestHeader(e,t.join(","))}),e.headers.has("Accept")||i.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){var r=e.detectContentTypeHeader();null!==r&&i.setRequestHeader("Content-Type",r)}if(e.responseType){var o=e.responseType.toLowerCase();i.responseType="json"!==o?o:"text"}var a=e.serializeBody(),s=null,l=function(){if(null!==s)return s;var t=1223===i.status?204:i.status,n=i.statusText||"OK",r=new zy(i.getAllResponseHeaders()),o=function(e){return"responseURL"in e&&e.responseURL?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null}(i)||e.url;return s=new Qy({headers:r,status:t,statusText:n,url:o})},u=function(){var t=l(),r=t.headers,o=t.status,a=t.statusText,s=t.url,u=null;204!==o&&(u=void 0===i.response?i.responseText:i.response),0===o&&(o=u?200:0);var c=o>=200&&o<300;if("json"===e.responseType&&"string"==typeof u){var d=u;u=u.replace(hb,"");try{u=""!==u?JSON.parse(u):null}catch(h){u=d,c&&(c=!1,u={error:h,text:u})}}c?(n.next(new Xy({body:u,headers:r,status:o,statusText:a,url:s||void 0})),n.complete()):n.error(new Ky({error:u,headers:r,status:o,statusText:a,url:s||void 0}))},c=function(e){var t=l().url,r=new Ky({error:e,status:i.status||0,statusText:i.statusText||"Unknown Error",url:t||void 0});n.error(r)},d=!1,h=function(t){d||(n.next(l()),d=!0);var r={type:Yy.DownloadProgress,loaded:t.loaded};t.lengthComputable&&(r.total=t.total),"text"===e.responseType&&i.responseText&&(r.partialText=i.responseText),n.next(r)},f=function(e){var t={type:Yy.UploadProgress,loaded:e.loaded};e.lengthComputable&&(t.total=e.total),n.next(t)};return i.addEventListener("load",u),i.addEventListener("error",c),i.addEventListener("timeout",c),i.addEventListener("abort",c),e.reportProgress&&(i.addEventListener("progress",h),null!==a&&i.upload&&i.upload.addEventListener("progress",f)),i.send(a),n.next({type:Yy.Sent}),function(){i.removeEventListener("error",c),i.removeEventListener("abort",c),i.removeEventListener("load",u),i.removeEventListener("timeout",c),e.reportProgress&&(i.removeEventListener("progress",h),null!==a&&i.upload&&i.upload.removeEventListener("progress",f)),i.readyState!==i.DONE&&i.abort()}})}}]),e}()).\u0275fac=function(e){return new(e||tb)(Ri(fb))},tb.\u0275prov=Re({token:tb,factory:tb.\u0275fac}),tb),vb=new mi("XSRF_COOKIE_NAME"),mb=new mi("XSRF_HEADER_NAME"),yb=function e(){A(this,e)},bb=((sb=function(){function e(t,n,i){A(this,e),this.doc=t,this.platform=n,this.cookieName=i,this.lastCookieString="",this.lastToken=null,this.parseCount=0}return m(e,[{key:"getToken",value:function(){if("server"===this.platform)return null;var e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=uh(e,this.cookieName),this.lastCookieString=e),this.lastToken}}]),e}()).\u0275fac=function(e){return new(e||sb)(Ri(od),Ri(uc),Ri(vb))},sb.\u0275prov=Re({token:sb,factory:sb.\u0275fac}),sb),wb=((ab=function(){function e(t,n){A(this,e),this.tokenService=t,this.headerName=n}return m(e,[{key:"intercept",value:function(e,t){var n=e.url.toLowerCase();if("GET"===e.method||"HEAD"===e.method||n.startsWith("http://")||n.startsWith("https://"))return t.handle(e);var i=this.tokenService.getToken();return null===i||e.headers.has(this.headerName)||(e=e.clone({headers:e.headers.set(this.headerName,i)})),t.handle(e)}}]),e}()).\u0275fac=function(e){return new(e||ab)(Ri(yb),Ri(mb))},ab.\u0275prov=Re({token:ab,factory:ab.\u0275fac}),ab),_b=((ob=function(){function e(t,n){A(this,e),this.backend=t,this.injector=n,this.chain=null}return m(e,[{key:"handle",value:function(e){if(null===this.chain){var t=this.injector.get(cb,[]);this.chain=t.reduceRight(function(e,t){return new ub(e,t)},this.backend)}return this.chain.handle(e)}}]),e}()).\u0275fac=function(e){return new(e||ob)(Ri(Vy),Ri(Fa))},ob.\u0275prov=Re({token:ob,factory:ob.\u0275fac}),ob),kb=((rb=function(){function e(){A(this,e)}return m(e,null,[{key:"disable",value:function(){return{ngModule:e,providers:[{provide:wb,useClass:db}]}}},{key:"withOptions",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:e,providers:[t.cookieName?{provide:vb,useValue:t.cookieName}:[],t.headerName?{provide:mb,useValue:t.headerName}:[]]}}}]),e}()).\u0275fac=function(e){return new(e||rb)},rb.\u0275mod=mt({type:rb}),rb.\u0275inj=Fe({providers:[wb,{provide:cb,useExisting:wb,multi:!0},{provide:yb,useClass:bb},{provide:vb,useValue:"XSRF-TOKEN"},{provide:mb,useValue:"X-XSRF-TOKEN"}]}),rb),xb=((ib=function e(){A(this,e)}).\u0275fac=function(e){return new(e||ib)},ib.\u0275mod=mt({type:ib}),ib.\u0275inj=Fe({providers:[lb,{provide:By,useClass:_b},gb,{provide:Vy,useExisting:gb},pb,{provide:fb,useExisting:pb}],imports:[[kb.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),ib),Ab=function(e){r(n,e);var t=a(n);function n(e){var i;return A(this,n),(i=t.call(this))._value=e,i}return m(n,[{key:"value",get:function(){return this.getValue()}},{key:"_subscribe",value:function(e){var t=i(c(n.prototype),"_subscribe",this).call(this,e);return t&&!t.closed&&e.next(this._value),t}},{key:"getValue",value:function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new H;return this._value}},{key:"next",value:function(e){i(c(n.prototype),"next",this).call(this,this._value=e)}}]),n}(W),Cb=function(e){r(n,e);var t=a(n);function n(){return A(this,n),t.apply(this,arguments)}return m(n,[{key:"notifyNext",value:function(e,t,n,i,r){this.destination.next(t)}},{key:"notifyError",value:function(e,t){this.destination.error(e)}},{key:"notifyComplete",value:function(e){this.destination.complete()}}]),n}(I),Sb=function(e){r(n,e);var t=a(n);function n(e,i,r){var o;return A(this,n),(o=t.call(this)).parent=e,o.outerValue=i,o.outerIndex=r,o.index=0,o}return m(n,[{key:"_next",value:function(e){this.parent.notifyNext(this.outerValue,e,this.outerIndex,this.index++,this)}},{key:"_error",value:function(e){this.parent.notifyError(e,this),this.unsubscribe()}},{key:"_complete",value:function(){this.parent.notifyComplete(this),this.unsubscribe()}}]),n}(I);function Pb(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:new Sb(e,n,i);if(!r.closed)return t instanceof V?t.subscribe(r):te(t)(r)}var Eb={};function Db(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var i=void 0,r=void 0;return q(t[t.length-1])&&(r=t.pop()),"function"==typeof t[t.length-1]&&(i=t.pop()),1===t.length&&S(t[0])&&(t=t[0]),de(t,r).lift(new Ob(i))}var Ob=function(){function e(t){A(this,e),this.resultSelector=t}return m(e,[{key:"call",value:function(e,t){return t.subscribe(new Mb(e,this.resultSelector))}}]),e}(),Mb=function(e){r(n,e);var t=a(n);function n(e,i){var r;return A(this,n),(r=t.call(this,e)).resultSelector=i,r.active=0,r.values=[],r.observables=[],r}return m(n,[{key:"_next",value:function(e){this.values.push(Eb),this.observables.push(e)}},{key:"_complete",value:function(){var e=this.observables,t=e.length;if(0===t)this.destination.complete();else{this.active=t,this.toRespond=t;for(var n=0;n<t;n++)this.add(Pb(this,e[n],void 0,n))}}},{key:"notifyComplete",value:function(e){0==(this.active-=1)&&this.destination.complete()}},{key:"notifyNext",value:function(e,t,n){var i=this.values,r=this.toRespond?i[n]===Eb?--this.toRespond:this.toRespond:0;i[n]=t,0===r&&(this.resultSelector?this._tryResultSelector(i):this.destination.next(i.slice()))}},{key:"_tryResultSelector",value:function(e){var t;try{t=this.resultSelector.apply(this,e)}catch(n){return void this.destination.error(n)}this.destination.next(t)}}]),n}(Cb),Tb=function(){function e(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return e.prototype=Object.create(Error.prototype),e}();function Ib(){return ce(1)(Ty.apply(void 0,arguments))}var Rb=new V(function(e){return e.complete()});function Lb(e){return e?function(e){return new V(function(t){return e.schedule(function(){return t.complete()})})}(e):Rb}function Fb(e){return new V(function(t){var n;try{n=e()}catch(i){return void t.error(i)}return(n?ie(n):Lb()).subscribe(t)})}function Bb(e,t){return"function"==typeof t?function(n){return n.pipe(Bb(function(n,i){return ie(e(n,i)).pipe(Y(function(e,r){return t(n,e,i,r)}))}))}:function(t){return t.lift(new Vb(e))}}var Vb=function(){function e(t){A(this,e),this.project=t}return m(e,[{key:"call",value:function(e,t){return t.subscribe(new zb(e,this.project))}}]),e}(),zb=function(e){r(n,e);var t=a(n);function n(e,i){var r;return A(this,n),(r=t.call(this,e)).project=i,r.index=0,r}return m(n,[{key:"_next",value:function(e){var t,n=this.index++;try{t=this.project(e,n)}catch(i){return void this.destination.error(i)}this._innerSub(t)}},{key:"_innerSub",value:function(e){var t=this.innerSubscription;t&&t.unsubscribe();var n=new re(this),i=this.destination;i.add(n),this.innerSubscription=ae(e,n),this.innerSubscription!==n&&i.add(this.innerSubscription)}},{key:"_complete",value:function(){var e=this.innerSubscription;e&&!e.closed||i(c(n.prototype),"_complete",this).call(this),this.unsubscribe()}},{key:"_unsubscribe",value:function(){this.innerSubscription=void 0}},{key:"notifyComplete",value:function(){this.innerSubscription=void 0,this.isStopped&&i(c(n.prototype),"_complete",this).call(this)}},{key:"notifyNext",value:function(e){this.destination.next(e)}}]),n}(oe),Nb=function(){function e(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return e.prototype=Object.create(Error.prototype),e}();function Hb(e){return function(t){return 0===e?Lb():t.lift(new jb(e))}}var jb=function(){function e(t){if(A(this,e),this.total=t,this.total<0)throw new Nb}return m(e,[{key:"call",value:function(e,t){return t.subscribe(new Ub(e,this.total))}}]),e}(),Ub=function(e){r(n,e);var t=a(n);function n(e,i){var r;return A(this,n),(r=t.call(this,e)).total=i,r.count=0,r}return m(n,[{key:"_next",value:function(e){var t=this.total,n=++this.count;n<=t&&(this.destination.next(e),n===t&&(this.destination.complete(),this.unsubscribe()))}}]),n}(I);function Wb(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var i=t[t.length-1];return q(i)?(t.pop(),function(e){return Ib(t,e,i)}):function(e){return Ib(t,e)}}function Gb(e,t){var n=!1;return arguments.length>=2&&(n=!0),function(i){return i.lift(new qb(e,t,n))}}var qb=function(){function e(t,n){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];A(this,e),this.accumulator=t,this.seed=n,this.hasSeed=i}return m(e,[{key:"call",value:function(e,t){return t.subscribe(new Yb(e,this.accumulator,this.seed,this.hasSeed))}}]),e}(),Yb=function(e){r(n,e);var t=a(n);function n(e,i,r,o){var a;return A(this,n),(a=t.call(this,e)).accumulator=i,a._seed=r,a.hasSeed=o,a.index=0,a}return m(n,[{key:"seed",get:function(){return this._seed},set:function(e){this.hasSeed=!0,this._seed=e}},{key:"_next",value:function(e){if(this.hasSeed)return this._tryNext(e);this.seed=e,this.destination.next(e)}},{key:"_tryNext",value:function(e){var t,n=this.index++;try{t=this.accumulator(this.seed,e,n)}catch(i){this.destination.error(i)}this.seed=t,this.destination.next(t)}}]),n}(I);function Zb(e){return function(t){var n=new Qb(e),i=t.lift(n);return n.caught=i}}var Qb=function(){function e(t){A(this,e),this.selector=t}return m(e,[{key:"call",value:function(e,t){return t.subscribe(new Xb(e,this.selector,this.caught))}}]),e}(),Xb=function(e){r(n,e);var t=a(n);function n(e,i,r){var o;return A(this,n),(o=t.call(this,e)).selector=i,o.caught=r,o}return m(n,[{key:"error",value:function(e){if(!this.isStopped){var t;try{t=this.selector(e,this.caught)}catch(a){return void i(c(n.prototype),"error",this).call(this,a)}this._unsubscribeAndRecycle();var r=new re(this);this.add(r);var o=ae(t,r);o!==r&&this.add(o)}}}]),n}(oe);function Kb(e){return function(t){return 0===e?Lb():t.lift(new Jb(e))}}var Jb=function(){function e(t){if(A(this,e),this.total=t,this.total<0)throw new Nb}return m(e,[{key:"call",value:function(e,t){return t.subscribe(new $b(e,this.total))}}]),e}(),$b=function(e){r(n,e);var t=a(n);function n(e,i){var r;return A(this,n),(r=t.call(this,e)).total=i,r.ring=new Array,r.count=0,r}return m(n,[{key:"_next",value:function(e){var t=this.ring,n=this.total,i=this.count++;t.length<n?t.push(e):t[i%n]=e}},{key:"_complete",value:function(){var e=this.destination,t=this.count;if(t>0)for(var n=this.count>=this.total?this.total:this.count,i=this.ring,r=0;r<n;r++){var o=t++%n;e.next(i[o])}e.complete()}}]),n}(I);function ew(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:iw;return function(t){return t.lift(new tw(e))}}var tw=function(){function e(t){A(this,e),this.errorFactory=t}return m(e,[{key:"call",value:function(e,t){return t.subscribe(new nw(e,this.errorFactory))}}]),e}(),nw=function(e){r(n,e);var t=a(n);function n(e,i){var r;return A(this,n),(r=t.call(this,e)).errorFactory=i,r.hasValue=!1,r}return m(n,[{key:"_next",value:function(e){this.hasValue=!0,this.destination.next(e)}},{key:"_complete",value:function(){if(this.hasValue)return this.destination.complete();var e;try{e=this.errorFactory()}catch(t){e=t}this.destination.error(e)}}]),n}(I);function iw(){return new Tb}function rw(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return function(t){return t.lift(new ow(e))}}var ow=function(){function e(t){A(this,e),this.defaultValue=t}return m(e,[{key:"call",value:function(e,t){return t.subscribe(new aw(e,this.defaultValue))}}]),e}(),aw=function(e){r(n,e);var t=a(n);function n(e,i){var r;return A(this,n),(r=t.call(this,e)).defaultValue=i,r.isEmpty=!0,r}return m(n,[{key:"_next",value:function(e){this.isEmpty=!1,this.destination.next(e)}},{key:"_complete",value:function(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}]),n}(I);function sw(e,t){var n=arguments.length>=2;return function(i){return i.pipe(e?Ry(function(t,n){return e(t,n,i)}):F,Hb(1),n?rw(t):ew(function(){return new Tb}))}}function lw(){}function uw(e,t,n){return function(i){return i.lift(new cw(e,t,n))}}var cw=function(){function e(t,n,i){A(this,e),this.nextOrObserver=t,this.error=n,this.complete=i}return m(e,[{key:"call",value:function(e,t){return t.subscribe(new dw(e,this.nextOrObserver,this.error,this.complete))}}]),e}(),dw=function(e){r(n,e);var t=a(n);function n(e,i,r,o){var a;return A(this,n),(a=t.call(this,e))._tapNext=lw,a._tapError=lw,a._tapComplete=lw,a._tapError=r||lw,a._tapComplete=o||lw,v(i)?(a._context=l(a),a._tapNext=i):i&&(a._context=i,a._tapNext=i.next||lw,a._tapError=i.error||lw,a._tapComplete=i.complete||lw),a}return m(n,[{key:"_next",value:function(e){try{this._tapNext.call(this._context,e)}catch(t){return void this.destination.error(t)}this.destination.next(e)}},{key:"_error",value:function(e){try{this._tapError.call(this._context,e)}catch(e){return void this.destination.error(e)}this.destination.error(e)}},{key:"_complete",value:function(){try{this._tapComplete.call(this._context)}catch(e){return void this.destination.error(e)}return this.destination.complete()}}]),n}(I);function hw(e){return function(t){return t.lift(new fw(e))}}var fw=function(){function e(t){A(this,e),this.callback=t}return m(e,[{key:"call",value:function(e,t){return t.subscribe(new pw(e,this.callback))}}]),e}(),pw=function(e){r(n,e);var t=a(n);function n(e,i){var r;return A(this,n),(r=t.call(this,e)).add(new O(i)),r}return n}(I),gw=function e(t,n){A(this,e),this.id=t,this.url=n},vw=function(e){r(n,e);var t=a(n);function n(e,i){var r,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"imperative",a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return A(this,n),(r=t.call(this,e,i)).navigationTrigger=o,r.restoredState=a,r}return m(n,[{key:"toString",value:function(){return"NavigationStart(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),n}(gw),mw=function(e){r(n,e);var t=a(n);function n(e,i,r){var o;return A(this,n),(o=t.call(this,e,i)).urlAfterRedirects=r,o}return m(n,[{key:"toString",value:function(){return"NavigationEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"')")}}]),n}(gw),yw=function(e){r(n,e);var t=a(n);function n(e,i,r){var o;return A(this,n),(o=t.call(this,e,i)).reason=r,o}return m(n,[{key:"toString",value:function(){return"NavigationCancel(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),n}(gw),bw=function(e){r(n,e);var t=a(n);function n(e,i,r){var o;return A(this,n),(o=t.call(this,e,i)).error=r,o}return m(n,[{key:"toString",value:function(){return"NavigationError(id: ".concat(this.id,", url: '").concat(this.url,"', error: ").concat(this.error,")")}}]),n}(gw),ww=function(e){r(n,e);var t=a(n);function n(e,i,r,o){var a;return A(this,n),(a=t.call(this,e,i)).urlAfterRedirects=r,a.state=o,a}return m(n,[{key:"toString",value:function(){return"RoutesRecognized(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(gw),_w=function(e){r(n,e);var t=a(n);function n(e,i,r,o){var a;return A(this,n),(a=t.call(this,e,i)).urlAfterRedirects=r,a.state=o,a}return m(n,[{key:"toString",value:function(){return"GuardsCheckStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(gw),kw=function(e){r(n,e);var t=a(n);function n(e,i,r,o,a){var s;return A(this,n),(s=t.call(this,e,i)).urlAfterRedirects=r,s.state=o,s.shouldActivate=a,s}return m(n,[{key:"toString",value:function(){return"GuardsCheckEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,", shouldActivate: ").concat(this.shouldActivate,")")}}]),n}(gw),xw=function(e){r(n,e);var t=a(n);function n(e,i,r,o){var a;return A(this,n),(a=t.call(this,e,i)).urlAfterRedirects=r,a.state=o,a}return m(n,[{key:"toString",value:function(){return"ResolveStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(gw),Aw=function(e){r(n,e);var t=a(n);function n(e,i,r,o){var a;return A(this,n),(a=t.call(this,e,i)).urlAfterRedirects=r,a.state=o,a}return m(n,[{key:"toString",value:function(){return"ResolveEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(gw),Cw=function(){function e(t){A(this,e),this.route=t}return m(e,[{key:"toString",value:function(){return"RouteConfigLoadStart(path: ".concat(this.route.path,")")}}]),e}(),Sw=function(){function e(t){A(this,e),this.route=t}return m(e,[{key:"toString",value:function(){return"RouteConfigLoadEnd(path: ".concat(this.route.path,")")}}]),e}(),Pw=function(){function e(t){A(this,e),this.snapshot=t}return m(e,[{key:"toString",value:function(){return"ChildActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),Ew=function(){function e(t){A(this,e),this.snapshot=t}return m(e,[{key:"toString",value:function(){return"ChildActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),Dw=function(){function e(t){A(this,e),this.snapshot=t}return m(e,[{key:"toString",value:function(){return"ActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),Ow=function(){function e(t){A(this,e),this.snapshot=t}return m(e,[{key:"toString",value:function(){return"ActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),Mw=function(){function e(t,n,i){A(this,e),this.routerEvent=t,this.position=n,this.anchor=i}return m(e,[{key:"toString",value:function(){return"Scroll(anchor: '".concat(this.anchor,"', position: '").concat(this.position?"".concat(this.position[0],", ").concat(this.position[1]):null,"')")}}]),e}(),Tw=function(){function e(t){A(this,e),this.params=t||{}}return m(e,[{key:"has",value:function(e){return Object.prototype.hasOwnProperty.call(this.params,e)}},{key:"get",value:function(e){if(this.has(e)){var t=this.params[e];return Array.isArray(t)?t[0]:t}return null}},{key:"getAll",value:function(e){if(this.has(e)){var t=this.params[e];return Array.isArray(t)?t:[t]}return[]}},{key:"keys",get:function(){return Object.keys(this.params)}}]),e}();function Iw(e){return new Tw(e)}function Rw(e){var t=Error("NavigationCancelingError: "+e);return t.ngNavigationCancelingError=!0,t}function Lw(e,t,n){var i=n.path.split("/");if(i.length>e.length)return null;if("full"===n.pathMatch&&(t.hasChildren()||i.length<e.length))return null;for(var r={},o=0;o<i.length;o++){var a=i[o],s=e[o];if(a.startsWith(":"))r[a.substring(1)]=s;else if(a!==s.path)return null}return{consumed:e.slice(0,i.length),posParams:r}}function Fw(e,t){var n,i=e?Object.keys(e):void 0,r=t?Object.keys(t):void 0;if(!i||!r||i.length!=r.length)return!1;for(var o=0;o<i.length;o++)if(!Bw(e[n=i[o]],t[n]))return!1;return!0}function Bw(e,t){if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;var n=y(e).sort(),i=y(t).sort();return n.every(function(e,t){return i[t]===e})}return e===t}function Vw(e){return Array.prototype.concat.apply([],e)}function zw(e){return e.length>0?e[e.length-1]:null}function Nw(e,t){for(var n in e)e.hasOwnProperty(n)&&t(e[n],n)}function Hw(e){return vs(e)?e:ps(e)?ie(Promise.resolve(e)):Ty(e)}function jw(e,t,n){return n?function(e,t){return Fw(e,t)}(e.queryParams,t.queryParams)&&Uw(e.root,t.root):function(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(function(n){return Bw(e[n],t[n])})}(e.queryParams,t.queryParams)&&Ww(e.root,t.root)}function Uw(e,t){if(!Qw(e.segments,t.segments))return!1;if(e.numberOfChildren!==t.numberOfChildren)return!1;for(var n in t.children){if(!e.children[n])return!1;if(!Uw(e.children[n],t.children[n]))return!1}return!0}function Ww(e,t){return Gw(e,t,t.segments)}function Gw(e,t,n){if(e.segments.length>n.length)return!!Qw(e.segments.slice(0,n.length),n)&&!t.hasChildren();if(e.segments.length===n.length){if(!Qw(e.segments,n))return!1;for(var i in t.children){if(!e.children[i])return!1;if(!Ww(e.children[i],t.children[i]))return!1}return!0}var r=n.slice(0,e.segments.length),o=n.slice(e.segments.length);return!!Qw(e.segments,r)&&!!e.children.primary&&Gw(e.children.primary,t,o)}var qw=function(){function e(t,n,i){A(this,e),this.root=t,this.queryParams=n,this.fragment=i}return m(e,[{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=Iw(this.queryParams)),this._queryParamMap}},{key:"toString",value:function(){return Jw.serialize(this)}}]),e}(),Yw=function(){function e(t,n){var i=this;A(this,e),this.segments=t,this.children=n,this.parent=null,Nw(n,function(e,t){return e.parent=i})}return m(e,[{key:"hasChildren",value:function(){return this.numberOfChildren>0}},{key:"numberOfChildren",get:function(){return Object.keys(this.children).length}},{key:"toString",value:function(){return $w(this)}}]),e}(),Zw=function(){function e(t,n){A(this,e),this.path=t,this.parameters=n}return m(e,[{key:"parameterMap",get:function(){return this._parameterMap||(this._parameterMap=Iw(this.parameters)),this._parameterMap}},{key:"toString",value:function(){return a_(this)}}]),e}();function Qw(e,t){return e.length===t.length&&e.every(function(e,n){return e.path===t[n].path})}var Xw=function e(){A(this,e)},Kw=function(){function e(){A(this,e)}return m(e,[{key:"parse",value:function(e){var t=new d_(e);return new qw(t.parseRootSegment(),t.parseQueryParams(),t.parseFragment())}},{key:"serialize",value:function(e){return"".concat("/"+e_(e.root,!0)).concat((t=e.queryParams,n=Object.keys(t).map(function(e){var n=t[e];return Array.isArray(n)?n.map(function(t){return"".concat(n_(e),"=").concat(n_(t))}).join("&"):"".concat(n_(e),"=").concat(n_(n))}),n.length?"?"+n.join("&"):"")).concat("string"==typeof e.fragment?"#"+encodeURI(e.fragment):"");var t,n}}]),e}(),Jw=new Kw;function $w(e){return e.segments.map(function(e){return a_(e)}).join("/")}function e_(e,t){if(!e.hasChildren())return $w(e);if(t){var n=e.children.primary?e_(e.children.primary,!1):"",i=[];return Nw(e.children,function(e,t){"primary"!==t&&i.push("".concat(t,":").concat(e_(e,!1)))}),i.length>0?"".concat(n,"(").concat(i.join("//"),")"):n}var r=function(e,t){var n=[];return Nw(e.children,function(e,i){"primary"===i&&(n=n.concat(t(e,i)))}),Nw(e.children,function(e,i){"primary"!==i&&(n=n.concat(t(e,i)))}),n}(e,function(t,n){return"primary"===n?[e_(e.children.primary,!1)]:["".concat(n,":").concat(e_(t,!1))]});return 1===Object.keys(e.children).length&&null!=e.children.primary?"".concat($w(e),"/").concat(r[0]):"".concat($w(e),"/(").concat(r.join("//"),")")}function t_(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function n_(e){return t_(e).replace(/%3B/gi,";")}function i_(e){return t_(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function r_(e){return decodeURIComponent(e)}function o_(e){return r_(e.replace(/\+/g,"%20"))}function a_(e){return"".concat(i_(e.path)).concat((t=e.parameters,Object.keys(t).map(function(e){return";".concat(i_(e),"=").concat(i_(t[e]))}).join("")));var t}var s_=/^[^\/()?;=#]+/;function l_(e){var t=e.match(s_);return t?t[0]:""}var u_=/^[^=?&#]+/,c_=/^[^?&#]+/,d_=function(){function e(t){A(this,e),this.url=t,this.remaining=t}return m(e,[{key:"parseRootSegment",value:function(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Yw([],{}):new Yw([],this.parseChildren())}},{key:"parseQueryParams",value:function(){var e={};if(this.consumeOptional("?"))do{this.parseQueryParam(e)}while(this.consumeOptional("&"));return e}},{key:"parseFragment",value:function(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}},{key:"parseChildren",value:function(){if(""===this.remaining)return{};this.consumeOptional("/");var e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());var t={};this.peekStartsWith("/(")&&(this.capture("/"),t=this.parseParens(!0));var n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(e.length>0||Object.keys(t).length>0)&&(n.primary=new Yw(e,t)),n}},{key:"parseSegment",value:function(){var e=l_(this.remaining);if(""===e&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '".concat(this.remaining,"'."));return this.capture(e),new Zw(r_(e),this.parseMatrixParams())}},{key:"parseMatrixParams",value:function(){for(var e={};this.consumeOptional(";");)this.parseParam(e);return e}},{key:"parseParam",value:function(e){var t=l_(this.remaining);if(t){this.capture(t);var n="";if(this.consumeOptional("=")){var i=l_(this.remaining);i&&(n=i,this.capture(n))}e[r_(t)]=r_(n)}}},{key:"parseQueryParam",value:function(e){var t=function(e){var t=e.match(u_);return t?t[0]:""}(this.remaining);if(t){this.capture(t);var n="";if(this.consumeOptional("=")){var i=function(e){var t=e.match(c_);return t?t[0]:""}(this.remaining);i&&(n=i,this.capture(n))}var r=o_(t),o=o_(n);if(e.hasOwnProperty(r)){var a=e[r];Array.isArray(a)||(a=[a],e[r]=a),a.push(o)}else e[r]=o}}},{key:"parseParens",value:function(e){var t={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){var n=l_(this.remaining),i=this.remaining[n.length];if("/"!==i&&")"!==i&&";"!==i)throw new Error("Cannot parse url '".concat(this.url,"'"));var r=void 0;n.indexOf(":")>-1?(r=n.substr(0,n.indexOf(":")),this.capture(r),this.capture(":")):e&&(r="primary");var o=this.parseChildren();t[r]=1===Object.keys(o).length?o.primary:new Yw([],o),this.consumeOptional("//")}return t}},{key:"peekStartsWith",value:function(e){return this.remaining.startsWith(e)}},{key:"consumeOptional",value:function(e){return!!this.peekStartsWith(e)&&(this.remaining=this.remaining.substring(e.length),!0)}},{key:"capture",value:function(e){if(!this.consumeOptional(e))throw new Error('Expected "'.concat(e,'".'))}}]),e}(),h_=function(){function e(t){A(this,e),this._root=t}return m(e,[{key:"root",get:function(){return this._root.value}},{key:"parent",value:function(e){var t=this.pathFromRoot(e);return t.length>1?t[t.length-2]:null}},{key:"children",value:function(e){var t=f_(e,this._root);return t?t.children.map(function(e){return e.value}):[]}},{key:"firstChild",value:function(e){var t=f_(e,this._root);return t&&t.children.length>0?t.children[0].value:null}},{key:"siblings",value:function(e){var t=p_(e,this._root);return t.length<2?[]:t[t.length-2].children.map(function(e){return e.value}).filter(function(t){return t!==e})}},{key:"pathFromRoot",value:function(e){return p_(e,this._root).map(function(e){return e.value})}}]),e}();function f_(e,t){if(e===t.value)return t;var n,i=h(t.children);try{for(i.s();!(n=i.n()).done;){var r=f_(e,n.value);if(r)return r}}catch(o){i.e(o)}finally{i.f()}return null}function p_(e,t){if(e===t.value)return[t];var n,i=h(t.children);try{for(i.s();!(n=i.n()).done;){var r=p_(e,n.value);if(r.length)return r.unshift(t),r}}catch(o){i.e(o)}finally{i.f()}return[]}var g_=function(){function e(t,n){A(this,e),this.value=t,this.children=n}return m(e,[{key:"toString",value:function(){return"TreeNode(".concat(this.value,")")}}]),e}();function v_(e){var t={};return e&&e.children.forEach(function(e){return t[e.value.outlet]=e}),t}var m_=function(e){r(n,e);var t=a(n);function n(e,i){var r;return A(this,n),(r=t.call(this,e)).snapshot=i,x_(l(r),e),r}return m(n,[{key:"toString",value:function(){return this.snapshot.toString()}}]),n}(h_);function y_(e,t){var n=function(e,t){var n=new __([],{},{},"",{},"primary",t,null,e.root,-1,{});return new k_("",new g_(n,[]))}(e,t),i=new Ab([new Zw("",{})]),r=new Ab({}),o=new Ab({}),a=new Ab({}),s=new Ab(""),l=new b_(i,r,a,s,o,"primary",t,n.root);return l.snapshot=n.root,new m_(new g_(l,[]),n)}var b_=function(){function e(t,n,i,r,o,a,s,l){A(this,e),this.url=t,this.params=n,this.queryParams=i,this.fragment=r,this.data=o,this.outlet=a,this.component=s,this._futureSnapshot=l}return m(e,[{key:"routeConfig",get:function(){return this._futureSnapshot.routeConfig}},{key:"root",get:function(){return this._routerState.root}},{key:"parent",get:function(){return this._routerState.parent(this)}},{key:"firstChild",get:function(){return this._routerState.firstChild(this)}},{key:"children",get:function(){return this._routerState.children(this)}},{key:"pathFromRoot",get:function(){return this._routerState.pathFromRoot(this)}},{key:"paramMap",get:function(){return this._paramMap||(this._paramMap=this.params.pipe(Y(function(e){return Iw(e)}))),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(Y(function(e){return Iw(e)}))),this._queryParamMap}},{key:"toString",value:function(){return this.snapshot?this.snapshot.toString():"Future(".concat(this._futureSnapshot,")")}}]),e}();function w_(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"emptyOnly",n=e.pathFromRoot,i=0;if("always"!==t)for(i=n.length-1;i>=1;){var r=n[i],o=n[i-1];if(r.routeConfig&&""===r.routeConfig.path)i--;else{if(o.component)break;i--}}return function(e){return e.reduce(function(e,t){return{params:Object.assign(Object.assign({},e.params),t.params),data:Object.assign(Object.assign({},e.data),t.data),resolve:Object.assign(Object.assign({},e.resolve),t._resolvedData)}},{params:{},data:{},resolve:{}})}(n.slice(i))}var __=function(){function e(t,n,i,r,o,a,s,l,u,c,d){A(this,e),this.url=t,this.params=n,this.queryParams=i,this.fragment=r,this.data=o,this.outlet=a,this.component=s,this.routeConfig=l,this._urlSegment=u,this._lastPathIndex=c,this._resolve=d}return m(e,[{key:"root",get:function(){return this._routerState.root}},{key:"parent",get:function(){return this._routerState.parent(this)}},{key:"firstChild",get:function(){return this._routerState.firstChild(this)}},{key:"children",get:function(){return this._routerState.children(this)}},{key:"pathFromRoot",get:function(){return this._routerState.pathFromRoot(this)}},{key:"paramMap",get:function(){return this._paramMap||(this._paramMap=Iw(this.params)),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=Iw(this.queryParams)),this._queryParamMap}},{key:"toString",value:function(){return"Route(url:'".concat(this.url.map(function(e){return e.toString()}).join("/"),"', path:'").concat(this.routeConfig?this.routeConfig.path:"","')")}}]),e}(),k_=function(e){r(n,e);var t=a(n);function n(e,i){var r;return A(this,n),(r=t.call(this,i)).url=e,x_(l(r),i),r}return m(n,[{key:"toString",value:function(){return A_(this._root)}}]),n}(h_);function x_(e,t){t.value._routerState=e,t.children.forEach(function(t){return x_(e,t)})}function A_(e){var t=e.children.length>0?" { ".concat(e.children.map(A_).join(", ")," } "):"";return"".concat(e.value).concat(t)}function C_(e){if(e.snapshot){var t=e.snapshot,n=e._futureSnapshot;e.snapshot=n,Fw(t.queryParams,n.queryParams)||e.queryParams.next(n.queryParams),t.fragment!==n.fragment&&e.fragment.next(n.fragment),Fw(t.params,n.params)||e.params.next(n.params),function(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;++n)if(!Fw(e[n],t[n]))return!1;return!0}(t.url,n.url)||e.url.next(n.url),Fw(t.data,n.data)||e.data.next(n.data)}else e.snapshot=e._futureSnapshot,e.data.next(e._futureSnapshot.data)}function S_(e,t){var n,i;return Fw(e.params,t.params)&&Qw(n=e.url,i=t.url)&&n.every(function(e,t){return Fw(e.parameters,i[t].parameters)})&&!(!e.parent!=!t.parent)&&(!e.parent||S_(e.parent,t.parent))}function P_(e,t,n){if(n&&e.shouldReuseRoute(t.value,n.value.snapshot)){var i=n.value;i._futureSnapshot=t.value;var r=function(e,t,n){return t.children.map(function(t){var i,r=h(n.children);try{for(r.s();!(i=r.n()).done;){var o=i.value;if(e.shouldReuseRoute(t.value,o.value.snapshot))return P_(e,t,o)}}catch(a){r.e(a)}finally{r.f()}return P_(e,t)})}(e,t,n);return new g_(i,r)}var o=e.retrieve(t.value);if(o){var a=o.route;return E_(t,a),a}var s,l=new b_(new Ab((s=t.value).url),new Ab(s.params),new Ab(s.queryParams),new Ab(s.fragment),new Ab(s.data),s.outlet,s.component,s),u=t.children.map(function(t){return P_(e,t)});return new g_(l,u)}function E_(e,t){if(e.value.routeConfig!==t.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(e.children.length!==t.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");t.value._futureSnapshot=e.value;for(var n=0;n<e.children.length;++n)E_(e.children[n],t.children[n])}function D_(e){return"object"==typeof e&&null!=e&&!e.outlets&&!e.segmentPath}function O_(e){return"object"==typeof e&&null!=e&&e.outlets}function M_(e,t,n,i,r){var o={};return i&&Nw(i,function(e,t){o[t]=Array.isArray(e)?e.map(function(e){return""+e}):""+e}),new qw(n.root===e?t:T_(n.root,e,t),o,r)}function T_(e,t,n){var i={};return Nw(e.children,function(e,r){i[r]=e===t?n:T_(e,t,n)}),new Yw(e.segments,i)}var I_=function(){function e(t,n,i){if(A(this,e),this.isAbsolute=t,this.numberOfDoubleDots=n,this.commands=i,t&&i.length>0&&D_(i[0]))throw new Error("Root segment cannot have matrix parameters");var r=i.find(O_);if(r&&r!==zw(i))throw new Error("{outlets:{}} has to be the last command")}return m(e,[{key:"toRoot",value:function(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}]),e}(),R_=function e(t,n,i){A(this,e),this.segmentGroup=t,this.processChildren=n,this.index=i};function L_(e,t,n){if(e||(e=new Yw([],{})),0===e.segments.length&&e.hasChildren())return F_(e,t,n);var i=function(e,t,n){for(var i=0,r=t,o={match:!1,pathIndex:0,commandIndex:0};r<e.segments.length;){if(i>=n.length)return o;var a=e.segments[r],s=n[i];if(O_(s))break;var l=""+s,u=i<n.length-1?n[i+1]:null;if(r>0&&void 0===l)break;if(l&&u&&"object"==typeof u&&void 0===u.outlets){if(!N_(l,u,a))return o;i+=2}else{if(!N_(l,{},a))return o;i++}r++}return{match:!0,pathIndex:r,commandIndex:i}}(e,t,n),r=n.slice(i.commandIndex);if(i.match&&i.pathIndex<e.segments.length){var o=new Yw(e.segments.slice(0,i.pathIndex),{});return o.children.primary=new Yw(e.segments.slice(i.pathIndex),e.children),F_(o,0,r)}return i.match&&0===r.length?new Yw(e.segments,{}):i.match&&!e.hasChildren()?B_(e,t,n):i.match?F_(e,0,r):B_(e,t,n)}function F_(e,t,n){if(0===n.length)return new Yw(e.segments,{});var i=function(e){return O_(e[0])?e[0].outlets:{primary:e}}(n),r={};return Nw(i,function(n,i){"string"==typeof n&&(n=[n]),null!==n&&(r[i]=L_(e.children[i],t,n))}),Nw(e.children,function(e,t){void 0===i[t]&&(r[t]=e)}),new Yw(e.segments,r)}function B_(e,t,n){for(var i=e.segments.slice(0,t),r=0;r<n.length;){var o=n[r];if(O_(o)){var a=V_(o.outlets);return new Yw(i,a)}if(0===r&&D_(n[0]))i.push(new Zw(e.segments[t].path,z_(n[0]))),r++;else{var s=O_(o)?o.outlets.primary:""+o,l=r<n.length-1?n[r+1]:null;s&&l&&D_(l)?(i.push(new Zw(s,z_(l))),r+=2):(i.push(new Zw(s,{})),r++)}}return new Yw(i,{})}function V_(e){var t={};return Nw(e,function(e,n){"string"==typeof e&&(e=[e]),null!==e&&(t[n]=B_(new Yw([],{}),0,e))}),t}function z_(e){var t={};return Nw(e,function(e,n){return t[n]=""+e}),t}function N_(e,t,n){return e==n.path&&Fw(t,n.parameters)}var H_=function(){function e(t,n,i,r){A(this,e),this.routeReuseStrategy=t,this.futureState=n,this.currState=i,this.forwardEvent=r}return m(e,[{key:"activate",value:function(e){var t=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(t,n,e),C_(this.futureState.root),this.activateChildRoutes(t,n,e)}},{key:"deactivateChildRoutes",value:function(e,t,n){var i=this,r=v_(t);e.children.forEach(function(e){var t=e.value.outlet;i.deactivateRoutes(e,r[t],n),delete r[t]}),Nw(r,function(e,t){i.deactivateRouteAndItsChildren(e,n)})}},{key:"deactivateRoutes",value:function(e,t,n){var i=e.value,r=t?t.value:null;if(i===r)if(i.component){var o=n.getContext(i.outlet);o&&this.deactivateChildRoutes(e,t,o.children)}else this.deactivateChildRoutes(e,t,n);else r&&this.deactivateRouteAndItsChildren(t,n)}},{key:"deactivateRouteAndItsChildren",value:function(e,t){this.routeReuseStrategy.shouldDetach(e.value.snapshot)?this.detachAndStoreRouteSubtree(e,t):this.deactivateRouteAndOutlet(e,t)}},{key:"detachAndStoreRouteSubtree",value:function(e,t){var n=t.getContext(e.value.outlet);if(n&&n.outlet){var i=n.outlet.detach(),r=n.children.onOutletDeactivated();this.routeReuseStrategy.store(e.value.snapshot,{componentRef:i,route:e,contexts:r})}}},{key:"deactivateRouteAndOutlet",value:function(e,t){for(var n=t.getContext(e.value.outlet),i=n&&e.value.component?n.children:t,r=v_(e),o=0,a=Object.keys(r);o<a.length;o++){var s=a[o];this.deactivateRouteAndItsChildren(r[s],i)}n&&n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated())}},{key:"activateChildRoutes",value:function(e,t,n){var i=this,r=v_(t);e.children.forEach(function(e){i.activateRoutes(e,r[e.value.outlet],n),i.forwardEvent(new Ow(e.value.snapshot))}),e.children.length&&this.forwardEvent(new Ew(e.value.snapshot))}},{key:"activateRoutes",value:function(e,t,n){var i=e.value,r=t?t.value:null;if(C_(i),i===r)if(i.component){var o=n.getOrCreateContext(i.outlet);this.activateChildRoutes(e,t,o.children)}else this.activateChildRoutes(e,t,n);else if(i.component){var a=n.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){var s=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),a.children.onOutletReAttached(s.contexts),a.attachRef=s.componentRef,a.route=s.route.value,a.outlet&&a.outlet.attach(s.componentRef,s.route.value),j_(s.route)}else{var l=function(e){for(var t=e.parent;t;t=t.parent){var n=t.routeConfig;if(n&&n._loadedConfig)return n._loadedConfig;if(n&&n.component)return null}return null}(i.snapshot),u=l?l.module.componentFactoryResolver:null;a.attachRef=null,a.route=i,a.resolver=u,a.outlet&&a.outlet.activateWith(i,u),this.activateChildRoutes(e,null,a.children)}}else this.activateChildRoutes(e,null,n)}}]),e}();function j_(e){C_(e.value),e.children.forEach(j_)}var U_=function e(t,n){A(this,e),this.routes=t,this.module=n};function W_(e){return"function"==typeof e}function G_(e){return e instanceof qw}var q_=Symbol("INITIAL_VALUE");function Y_(){return Bb(function(e){return Db(e.map(function(e){return e.pipe(Hb(1),Wb(q_))})).pipe(Gb(function(e,t){var n=!1;return t.reduce(function(e,i,r){if(e!==q_)return e;if(i===q_&&(n=!0),!n){if(!1===i)return i;if(r===t.length-1||G_(i))return i}return e},e)},q_),Ry(function(e){return e!==q_}),Y(function(e){return G_(e)?e:!0===e}),Hb(1))})}var Z_,Q_=((Z_=function e(){A(this,e)}).\u0275fac=function(e){return new(e||Z_)},Z_.\u0275cmp=ft({type:Z_,selectors:[["ng-component"]],decls:1,vars:0,template:function(e,t){1&e&&us(0,"router-outlet")},directives:function(){return[Qk]},encapsulation:2}),Z_);function X_(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=0;n<e.length;n++){var i=e[n];K_(i,J_(t,i))}}function K_(e,t){e.children&&X_(e.children,t)}function J_(e,t){return t?e||t.path?e&&!t.path?e+"/":!e&&t.path?t.path:"".concat(e,"/").concat(t.path):"":e}function $_(e){var t=e.children&&e.children.map($_),n=t?Object.assign(Object.assign({},e),{children:t}):Object.assign({},e);return!n.component&&(t||n.loadChildren)&&n.outlet&&"primary"!==n.outlet&&(n.component=Q_),n}function ek(e){return e.outlet||"primary"}function tk(e,t){var n=e.filter(function(e){return ek(e)===t});return n.push.apply(n,y(e.filter(function(e){return ek(e)!==t}))),n}var nk={matched:!1,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};function ik(e,t,n){var i;if(""===t.path)return"full"===t.pathMatch&&(e.hasChildren()||n.length>0)?Object.assign({},nk):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};var r=(t.matcher||Lw)(n,e,t);if(!r)return Object.assign({},nk);var o={};Nw(r.posParams,function(e,t){o[t]=e.path});var a=r.consumed.length>0?Object.assign(Object.assign({},o),r.consumed[r.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:r.consumed,lastChild:r.consumed.length,parameters:a,positionalParamSegments:null!==(i=r.posParams)&&void 0!==i?i:{}}}function rk(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"corrected";if(n.length>0&&function(e,t,n){return n.some(function(n){return ok(e,t,n)&&"primary"!==ek(n)})}(e,n,i)){var o=new Yw(t,function(e,t,n,i){var r={};r.primary=i,i._sourceSegment=e,i._segmentIndexShift=t.length;var o,a=h(n);try{for(a.s();!(o=a.n()).done;){var s=o.value;if(""===s.path&&"primary"!==ek(s)){var l=new Yw([],{});l._sourceSegment=e,l._segmentIndexShift=t.length,r[ek(s)]=l}}}catch(u){a.e(u)}finally{a.f()}return r}(e,t,i,new Yw(n,e.children)));return o._sourceSegment=e,o._segmentIndexShift=t.length,{segmentGroup:o,slicedSegments:[]}}if(0===n.length&&function(e,t,n){return n.some(function(n){return ok(e,t,n)})}(e,n,i)){var a=new Yw(e.segments,function(e,t,n,i,r,o){var a,s={},l=h(i);try{for(l.s();!(a=l.n()).done;){var u=a.value;if(ok(e,n,u)&&!r[ek(u)]){var c=new Yw([],{});c._sourceSegment=e,c._segmentIndexShift="legacy"===o?e.segments.length:t.length,s[ek(u)]=c}}}catch(d){l.e(d)}finally{l.f()}return Object.assign(Object.assign({},r),s)}(e,t,n,i,e.children,r));return a._sourceSegment=e,a._segmentIndexShift=t.length,{segmentGroup:a,slicedSegments:n}}var s=new Yw(e.segments,e.children);return s._sourceSegment=e,s._segmentIndexShift=t.length,{segmentGroup:s,slicedSegments:n}}function ok(e,t,n){return(!(e.hasChildren()||t.length>0)||"full"!==n.pathMatch)&&""===n.path}function ak(e,t,n,i){return!!(ek(e)===i||"primary"!==i&&ok(t,n,e))&&("**"===e.path||ik(t,e,n).matched)}function sk(e,t,n){return 0===t.length&&!e.children[n]}var lk=function e(t){A(this,e),this.segmentGroup=t||null},uk=function e(t){A(this,e),this.urlTree=t};function ck(e){return new V(function(t){return t.error(new lk(e))})}function dk(e){return new V(function(t){return t.error(new uk(e))})}function hk(e){return new V(function(t){return t.error(new Error("Only absolute redirects can have named outlets. redirectTo: '".concat(e,"'")))})}var fk=function(){function e(t,n,i,r,o){A(this,e),this.configLoader=n,this.urlSerializer=i,this.urlTree=r,this.config=o,this.allowRedirects=!0,this.ngModule=t.get(au)}return m(e,[{key:"apply",value:function(){var e=this,t=rk(this.urlTree.root,[],[],this.config).segmentGroup,n=new Yw(t.segments,t.children);return this.expandSegmentGroup(this.ngModule,this.config,n,"primary").pipe(Y(function(t){return e.createUrlTree(pk(t),e.urlTree.queryParams,e.urlTree.fragment)})).pipe(Zb(function(t){if(t instanceof uk)return e.allowRedirects=!1,e.match(t.urlTree);if(t instanceof lk)throw e.noMatchError(t);throw t}))}},{key:"match",value:function(e){var t=this;return this.expandSegmentGroup(this.ngModule,this.config,e.root,"primary").pipe(Y(function(n){return t.createUrlTree(pk(n),e.queryParams,e.fragment)})).pipe(Zb(function(e){if(e instanceof lk)throw t.noMatchError(e);throw e}))}},{key:"noMatchError",value:function(e){return new Error("Cannot match any routes. URL Segment: '".concat(e.segmentGroup,"'"))}},{key:"createUrlTree",value:function(e,t,n){var i=e.segments.length>0?new Yw([],{primary:e}):e;return new qw(i,t,n)}},{key:"expandSegmentGroup",value:function(e,t,n,i){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(e,t,n).pipe(Y(function(e){return new Yw([],e)})):this.expandSegment(e,n,t,n.segments,i,!0)}},{key:"expandChildren",value:function(e,t,n){for(var i=this,r=[],o=0,a=Object.keys(n.children);o<a.length;o++){var s=a[o];"primary"===s?r.unshift(s):r.push(s)}return ie(r).pipe(Iy(function(r){var o=n.children[r],a=tk(t,r);return i.expandSegmentGroup(e,a,o,r).pipe(Y(function(e){return{segment:e,outlet:r}}))}),Gb(function(e,t){return e[t.outlet]=t.segment,e},{}),function(e,t){var n=arguments.length>=2;return function(i){return i.pipe(e?Ry(function(t,n){return e(t,n,i)}):F,Kb(1),n?rw(t):ew(function(){return new Tb}))}}())}},{key:"expandSegment",value:function(e,t,n,i,r,o){var a=this;return ie(n).pipe(Iy(function(s){return a.expandSegmentAgainstRoute(e,t,n,s,i,r,o).pipe(Zb(function(e){if(e instanceof lk)return Ty(null);throw e}))}),sw(function(e){return!!e}),Zb(function(e,n){if(e instanceof Tb||"EmptyError"===e.name){if(sk(t,i,r))return Ty(new Yw([],{}));throw new lk(t)}throw e}))}},{key:"expandSegmentAgainstRoute",value:function(e,t,n,i,r,o,a){return ak(i,t,r,o)?void 0===i.redirectTo?this.matchSegmentAgainstRoute(e,t,i,r,o):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(e,t,n,i,r,o):ck(t):ck(t)}},{key:"expandSegmentAgainstRouteUsingRedirect",value:function(e,t,n,i,r,o){return"**"===i.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(e,n,i,o):this.expandRegularSegmentAgainstRouteUsingRedirect(e,t,n,i,r,o)}},{key:"expandWildCardWithParamsAgainstRouteUsingRedirect",value:function(e,t,n,i){var r=this,o=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?dk(o):this.lineralizeSegments(n,o).pipe(se(function(n){var o=new Yw(n,{});return r.expandSegment(e,o,t,n,i,!1)}))}},{key:"expandRegularSegmentAgainstRouteUsingRedirect",value:function(e,t,n,i,r,o){var a=this,s=ik(t,i,r),l=s.matched,u=s.consumedSegments,c=s.lastChild,d=s.positionalParamSegments;if(!l)return ck(t);var h=this.applyRedirectCommands(u,i.redirectTo,d);return i.redirectTo.startsWith("/")?dk(h):this.lineralizeSegments(i,h).pipe(se(function(i){return a.expandSegment(e,t,n,i.concat(r.slice(c)),o,!1)}))}},{key:"matchSegmentAgainstRoute",value:function(e,t,n,i,r){var o=this;if("**"===n.path)return n.loadChildren?(n._loadedConfig?Ty(n._loadedConfig):this.configLoader.load(e.injector,n)).pipe(Y(function(e){return n._loadedConfig=e,new Yw(i,{})})):Ty(new Yw(i,{}));var a=ik(t,n,i),s=a.matched,l=a.consumedSegments,u=a.lastChild;if(!s)return ck(t);var c=i.slice(u);return this.getChildConfig(e,n,i).pipe(se(function(e){var i=e.module,a=e.routes,s=rk(t,l,c,a),u=s.segmentGroup,d=s.slicedSegments,h=new Yw(u.segments,u.children);if(0===d.length&&h.hasChildren())return o.expandChildren(i,a,h).pipe(Y(function(e){return new Yw(l,e)}));if(0===a.length&&0===d.length)return Ty(new Yw(l,{}));var f=ek(n)===r;return o.expandSegment(i,h,a,d,f?"primary":r,!0).pipe(Y(function(e){return new Yw(l.concat(e.segments),e.children)}))}))}},{key:"getChildConfig",value:function(e,t,n){var i=this;return t.children?Ty(new U_(t.children,e)):t.loadChildren?void 0!==t._loadedConfig?Ty(t._loadedConfig):this.runCanLoadGuards(e.injector,t,n).pipe(se(function(n){return n?i.configLoader.load(e.injector,t).pipe(Y(function(e){return t._loadedConfig=e,e})):function(e){return new V(function(t){return t.error(Rw("Cannot load children because the guard of the route \"path: '".concat(e.path,"'\" returned false")))})}(t)})):Ty(new U_([],e))}},{key:"runCanLoadGuards",value:function(e,t,n){var i=this,r=t.canLoad;return r&&0!==r.length?Ty(r.map(function(i){var r,o=e.get(i);if(function(e){return e&&W_(e.canLoad)}(o))r=o.canLoad(t,n);else{if(!W_(o))throw new Error("Invalid CanLoad guard");r=o(t,n)}return Hw(r)})).pipe(Y_(),uw(function(e){if(G_(e)){var t=Rw('Redirecting to "'.concat(i.urlSerializer.serialize(e),'"'));throw t.url=e,t}}),Y(function(e){return!0===e})):Ty(!0)}},{key:"lineralizeSegments",value:function(e,t){for(var n=[],i=t.root;;){if(n=n.concat(i.segments),0===i.numberOfChildren)return Ty(n);if(i.numberOfChildren>1||!i.children.primary)return hk(e.redirectTo);i=i.children.primary}}},{key:"applyRedirectCommands",value:function(e,t,n){return this.applyRedirectCreatreUrlTree(t,this.urlSerializer.parse(t),e,n)}},{key:"applyRedirectCreatreUrlTree",value:function(e,t,n,i){var r=this.createSegmentGroup(e,t.root,n,i);return new qw(r,this.createQueryParams(t.queryParams,this.urlTree.queryParams),t.fragment)}},{key:"createQueryParams",value:function(e,t){var n={};return Nw(e,function(e,i){if("string"==typeof e&&e.startsWith(":")){var r=e.substring(1);n[i]=t[r]}else n[i]=e}),n}},{key:"createSegmentGroup",value:function(e,t,n,i){var r=this,o=this.createSegments(e,t.segments,n,i),a={};return Nw(t.children,function(t,o){a[o]=r.createSegmentGroup(e,t,n,i)}),new Yw(o,a)}},{key:"createSegments",value:function(e,t,n,i){var r=this;return t.map(function(t){return t.path.startsWith(":")?r.findPosParam(e,t,i):r.findOrReturn(t,n)})}},{key:"findPosParam",value:function(e,t,n){var i=n[t.path.substring(1)];if(!i)throw new Error("Cannot redirect to '".concat(e,"'. Cannot find '").concat(t.path,"'."));return i}},{key:"findOrReturn",value:function(e,t){var n,i=0,r=h(t);try{for(r.s();!(n=r.n()).done;){var o=n.value;if(o.path===e.path)return t.splice(i),o;i++}}catch(a){r.e(a)}finally{r.f()}return e}}]),e}();function pk(e){for(var t={},n=0,i=Object.keys(e.children);n<i.length;n++){var r=i[n],o=pk(e.children[r]);(o.segments.length>0||o.hasChildren())&&(t[r]=o)}return function(e){if(1===e.numberOfChildren&&e.children.primary){var t=e.children.primary;return new Yw(e.segments.concat(t.segments),t.children)}return e}(new Yw(e.segments,t))}var gk=function e(t){A(this,e),this.path=t,this.route=this.path[this.path.length-1]},vk=function e(t,n){A(this,e),this.component=t,this.route=n};function mk(e,t,n){var i=e._root;return bk(i,t?t._root:null,n,[i.value])}function yk(e,t,n){var i=function(e){if(!e)return null;for(var t=e.parent;t;t=t.parent){var n=t.routeConfig;if(n&&n._loadedConfig)return n._loadedConfig}return null}(t);return(i?i.module.injector:n).get(e)}function bk(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},o=v_(t);return e.children.forEach(function(e){!function(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},o=e.value,a=t?t.value:null,s=n?n.getContext(e.value.outlet):null;if(a&&o.routeConfig===a.routeConfig){var l=function(e,t,n){if("function"==typeof n)return n(e,t);switch(n){case"pathParamsChange":return!Qw(e.url,t.url);case"pathParamsOrQueryParamsChange":return!Qw(e.url,t.url)||!Fw(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!S_(e,t)||!Fw(e.queryParams,t.queryParams);case"paramsChange":default:return!S_(e,t)}}(a,o,o.routeConfig.runGuardsAndResolvers);l?r.canActivateChecks.push(new gk(i)):(o.data=a.data,o._resolvedData=a._resolvedData),bk(e,t,o.component?s?s.children:null:n,i,r),l&&s&&s.outlet&&s.outlet.isActivated&&r.canDeactivateChecks.push(new vk(s.outlet.component,a))}else a&&wk(t,s,r),r.canActivateChecks.push(new gk(i)),bk(e,null,o.component?s?s.children:null:n,i,r)}(e,o[e.value.outlet],n,i.concat([e.value]),r),delete o[e.value.outlet]}),Nw(o,function(e,t){return wk(e,n.getContext(t),r)}),r}function wk(e,t,n){var i=v_(e),r=e.value;Nw(i,function(e,i){wk(e,r.component?t?t.children.getContext(i):null:t,n)}),n.canDeactivateChecks.push(new vk(r.component&&t&&t.outlet&&t.outlet.isActivated?t.outlet.component:null,r))}var _k=function e(){A(this,e)};function kk(e){return new V(function(t){return t.error(e)})}var xk=function(){function e(t,n,i,r,o,a){A(this,e),this.rootComponentType=t,this.config=n,this.urlTree=i,this.url=r,this.paramsInheritanceStrategy=o,this.relativeLinkResolution=a}return m(e,[{key:"recognize",value:function(){var e=rk(this.urlTree.root,[],[],this.config.filter(function(e){return void 0===e.redirectTo}),this.relativeLinkResolution).segmentGroup,t=this.processSegmentGroup(this.config,e,"primary");if(null===t)return null;var n=new __([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},"primary",this.rootComponentType,null,this.urlTree.root,-1,{}),i=new g_(n,t),r=new k_(this.url,i);return this.inheritParamsAndData(r._root),r}},{key:"inheritParamsAndData",value:function(e){var t=this,n=e.value,i=w_(n,this.paramsInheritanceStrategy);n.params=Object.freeze(i.params),n.data=Object.freeze(i.data),e.children.forEach(function(e){return t.inheritParamsAndData(e)})}},{key:"processSegmentGroup",value:function(e,t,n){return 0===t.segments.length&&t.hasChildren()?this.processChildren(e,t):this.processSegment(e,t,t.segments,n)}},{key:"processChildren",value:function(e,t){for(var n=[],i=0,r=Object.keys(t.children);i<r.length;i++){var o=r[i],a=t.children[o],s=tk(e,o),l=this.processSegmentGroup(s,a,o);if(null===l)return null;n.push.apply(n,y(l))}var u=function(e){var t,n=[],i=h(e);try{var r=function(){var e,i=t.value;if(!function(e){var t=e.value.routeConfig;return t&&""===t.path&&void 0===t.redirectTo}(i))return n.push(i),"continue";var r=n.find(function(e){return i.value.routeConfig===e.value.routeConfig});void 0!==r?(e=r.children).push.apply(e,y(i.children)):n.push(i)};for(i.s();!(t=i.n()).done;)r()}catch(o){i.e(o)}finally{i.f()}return n}(n);return u.sort(function(e,t){return"primary"===e.value.outlet?-1:"primary"===t.value.outlet?1:e.value.outlet.localeCompare(t.value.outlet)}),u}},{key:"processSegment",value:function(e,t,n,i){var r,o=h(e);try{for(o.s();!(r=o.n()).done;){var a=r.value,s=this.processSegmentAgainstRoute(a,t,n,i);if(null!==s)return s}}catch(l){o.e(l)}finally{o.f()}return sk(t,n,i)?[]:null}},{key:"processSegmentAgainstRoute",value:function(e,t,n,i){if(e.redirectTo||!ak(e,t,n,i))return null;var r,o=[],a=[];if("**"===e.path){var s=n.length>0?zw(n).parameters:{};r=new __(n,s,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Sk(e),ek(e),e.component,e,Ak(t),Ck(t)+n.length,Pk(e))}else{var l=ik(t,e,n);if(!l.matched)return null;o=l.consumedSegments,a=n.slice(l.lastChild),r=new __(o,l.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Sk(e),ek(e),e.component,e,Ak(t),Ck(t)+o.length,Pk(e))}var u=function(e){return e.children?e.children:e.loadChildren?e._loadedConfig.routes:[]}(e),c=rk(t,o,a,u.filter(function(e){return void 0===e.redirectTo}),this.relativeLinkResolution),d=c.segmentGroup,h=c.slicedSegments;if(0===h.length&&d.hasChildren()){var f=this.processChildren(u,d);return null===f?null:[new g_(r,f)]}if(0===u.length&&0===h.length)return[new g_(r,[])];var p=ek(e)===i,g=this.processSegment(u,d,h,p?"primary":i);return null===g?null:[new g_(r,g)]}}]),e}();function Ak(e){for(var t=e;t._sourceSegment;)t=t._sourceSegment;return t}function Ck(e){for(var t=e,n=t._segmentIndexShift?t._segmentIndexShift:0;t._sourceSegment;)n+=(t=t._sourceSegment)._segmentIndexShift?t._segmentIndexShift:0;return n-1}function Sk(e){return e.data||{}}function Pk(e){return e.resolve||{}}function Ek(e){return Bb(function(t){var n=e(t);return n?ie(n).pipe(Y(function(){return t})):Ty(t)})}var Dk=function e(){A(this,e)},Ok=function(e){r(n,e);var t=a(n);function n(){return A(this,n),t.apply(this,arguments)}return n}(function(){function e(){A(this,e)}return m(e,[{key:"shouldDetach",value:function(e){return!1}},{key:"store",value:function(e,t){}},{key:"shouldAttach",value:function(e){return!1}},{key:"retrieve",value:function(e){return null}},{key:"shouldReuseRoute",value:function(e,t){return e.routeConfig===t.routeConfig}}]),e}()),Mk=new mi("ROUTES"),Tk=function(){function e(t,n,i,r){A(this,e),this.loader=t,this.compiler=n,this.onLoadStartListener=i,this.onLoadEndListener=r}return m(e,[{key:"load",value:function(e,t){var n=this;if(t._loader$)return t._loader$;this.onLoadStartListener&&this.onLoadStartListener(t);var i=this.loadModuleFactory(t.loadChildren).pipe(Y(function(i){n.onLoadEndListener&&n.onLoadEndListener(t);var r=i.create(e);return new U_(Vw(r.injector.get(Mk,void 0,Ge.Self|Ge.Optional)).map($_),r)}),Zb(function(e){throw t._loader$=void 0,e}));return t._loader$=new me(i,function(){return new W}).pipe(fe()),t._loader$}},{key:"loadModuleFactory",value:function(e){var t=this;return"string"==typeof e?ie(this.loader.load(e)):Hw(e()).pipe(se(function(e){return e instanceof su?Ty(e):ie(t.compiler.compileModuleAsync(e))}))}}]),e}(),Ik=function e(){A(this,e),this.outlet=null,this.route=null,this.resolver=null,this.children=new Rk,this.attachRef=null},Rk=function(){function e(){A(this,e),this.contexts=new Map}return m(e,[{key:"onChildOutletCreated",value:function(e,t){var n=this.getOrCreateContext(e);n.outlet=t,this.contexts.set(e,n)}},{key:"onChildOutletDestroyed",value:function(e){var t=this.getContext(e);t&&(t.outlet=null)}},{key:"onOutletDeactivated",value:function(){var e=this.contexts;return this.contexts=new Map,e}},{key:"onOutletReAttached",value:function(e){this.contexts=e}},{key:"getOrCreateContext",value:function(e){var t=this.getContext(e);return t||(t=new Ik,this.contexts.set(e,t)),t}},{key:"getContext",value:function(e){return this.contexts.get(e)||null}}]),e}(),Lk=function(){function e(){A(this,e)}return m(e,[{key:"shouldProcessUrl",value:function(e){return!0}},{key:"extract",value:function(e){return e}},{key:"merge",value:function(e,t){return e}}]),e}();function Fk(e){throw e}function Bk(e,t,n){return t.parse("/")}function Vk(e,t){return Ty(null)}var zk,Nk,Hk,jk=((Hk=function(){function e(t,n,i,r,o,a,s,l){var u=this;A(this,e),this.rootComponentType=t,this.urlSerializer=n,this.rootContexts=i,this.location=r,this.config=l,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.lastLocationChangeInfo=null,this.navigationId=0,this.isNgZoneEnabled=!1,this.events=new W,this.errorHandler=Fk,this.malformedUriErrorHandler=Bk,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:Vk,afterPreactivation:Vk},this.urlHandlingStrategy=new Lk,this.routeReuseStrategy=new Ok,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.ngModule=o.get(au),this.console=o.get(dc);var c=o.get(Ac);this.isNgZoneEnabled=c instanceof Ac&&Ac.isInAngularZone(),this.resetConfig(l),this.currentUrlTree=new qw(new Yw([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new Tk(a,s,function(e){return u.triggerEvent(new Cw(e))},function(e){return u.triggerEvent(new Sw(e))}),this.routerState=y_(this.currentUrlTree,this.rootComponentType),this.transitions=new Ab({id:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}return m(e,[{key:"setupNavigations",value:function(e){var t=this,n=this.events;return e.pipe(Ry(function(e){return 0!==e.id}),Y(function(e){return Object.assign(Object.assign({},e),{extractedUrl:t.urlHandlingStrategy.extract(e.rawUrl)})}),Bb(function(e){var i,r,o,a=!1,s=!1;return Ty(e).pipe(uw(function(e){t.currentNavigation={id:e.id,initialUrl:e.currentRawUrl,extractedUrl:e.extractedUrl,trigger:e.source,extras:e.extras,previousNavigation:t.lastSuccessfulNavigation?Object.assign(Object.assign({},t.lastSuccessfulNavigation),{previousNavigation:null}):null}}),Bb(function(e){var i,r,o,a,s=!t.navigated||e.extractedUrl.toString()!==t.browserUrlTree.toString();if(("reload"===t.onSameUrlNavigation||s)&&t.urlHandlingStrategy.shouldProcessUrl(e.rawUrl))return Ty(e).pipe(Bb(function(e){var i=t.transitions.getValue();return n.next(new vw(e.id,t.serializeUrl(e.extractedUrl),e.source,e.restoredState)),i!==t.transitions.getValue()?Rb:Promise.resolve(e)}),(i=t.ngModule.injector,r=t.configLoader,o=t.urlSerializer,a=t.config,Bb(function(e){return function(e,t,n,i,r){return new fk(e,t,n,i,r).apply()}(i,r,o,e.extractedUrl,a).pipe(Y(function(t){return Object.assign(Object.assign({},e),{urlAfterRedirects:t})}))})),uw(function(e){t.currentNavigation=Object.assign(Object.assign({},t.currentNavigation),{finalUrl:e.urlAfterRedirects})}),function(e,n,i,r,o){return se(function(i){return function(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"emptyOnly",o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"legacy";try{var a=new xk(e,t,n,i,r,o).recognize();return null===a?kk(new _k):Ty(a)}catch(s){return kk(s)}}(e,n,i.urlAfterRedirects,(a=i.urlAfterRedirects,t.serializeUrl(a)),r,o).pipe(Y(function(e){return Object.assign(Object.assign({},i),{targetSnapshot:e})}));var a})}(t.rootComponentType,t.config,0,t.paramsInheritanceStrategy,t.relativeLinkResolution),uw(function(e){"eager"===t.urlUpdateStrategy&&(e.extras.skipLocationChange||t.setBrowserUrl(e.urlAfterRedirects,!!e.extras.replaceUrl,e.id,e.extras.state),t.browserUrlTree=e.urlAfterRedirects);var i=new ww(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);n.next(i)}));if(s&&t.rawUrlTree&&t.urlHandlingStrategy.shouldProcessUrl(t.rawUrlTree)){var l=e.id,u=e.extractedUrl,c=e.source,d=e.restoredState,h=e.extras,f=new vw(l,t.serializeUrl(u),c,d);n.next(f);var p=y_(u,t.rootComponentType).snapshot;return Ty(Object.assign(Object.assign({},e),{targetSnapshot:p,urlAfterRedirects:u,extras:Object.assign(Object.assign({},h),{skipLocationChange:!1,replaceUrl:!1})}))}return t.rawUrlTree=e.rawUrl,t.browserUrlTree=e.urlAfterRedirects,e.resolve(null),Rb}),Ek(function(e){var n=e.targetSnapshot,i=e.id,r=e.extractedUrl,o=e.rawUrl,a=e.extras,s=a.skipLocationChange,l=a.replaceUrl;return t.hooks.beforePreactivation(n,{navigationId:i,appliedUrlTree:r,rawUrlTree:o,skipLocationChange:!!s,replaceUrl:!!l})}),uw(function(e){var n=new _w(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.triggerEvent(n)}),Y(function(e){return Object.assign(Object.assign({},e),{guards:mk(e.targetSnapshot,e.currentSnapshot,t.rootContexts)})}),function(e,t){return se(function(n){var i=n.targetSnapshot,r=n.currentSnapshot,o=n.guards,a=o.canActivateChecks,s=o.canDeactivateChecks;return 0===s.length&&0===a.length?Ty(Object.assign(Object.assign({},n),{guardsResult:!0})):function(e,t,n,i){return ie(e).pipe(se(function(e){return function(e,t,n,i,r){var o=t&&t.routeConfig?t.routeConfig.canDeactivate:null;return o&&0!==o.length?Ty(o.map(function(o){var a,s=yk(o,t,r);if(function(e){return e&&W_(e.canDeactivate)}(s))a=Hw(s.canDeactivate(e,t,n,i));else{if(!W_(s))throw new Error("Invalid CanDeactivate guard");a=Hw(s(e,t,n,i))}return a.pipe(sw())})).pipe(Y_()):Ty(!0)}(e.component,e.route,n,t,i)}),sw(function(e){return!0!==e},!0))}(s,i,r,e).pipe(se(function(n){return n&&"boolean"==typeof n?function(e,t,n,i){return ie(t).pipe(Iy(function(t){return Ib(function(e,t){return null!==e&&t&&t(new Pw(e)),Ty(!0)}(t.route.parent,i),function(e,t){return null!==e&&t&&t(new Dw(e)),Ty(!0)}(t.route,i),function(e,t,n){var i=t[t.length-1],r=t.slice(0,t.length-1).reverse().map(function(e){return function(e){var t=e.routeConfig?e.routeConfig.canActivateChild:null;return t&&0!==t.length?{node:e,guards:t}:null}(e)}).filter(function(e){return null!==e}).map(function(t){return Fb(function(){return Ty(t.guards.map(function(r){var o,a=yk(r,t.node,n);if(function(e){return e&&W_(e.canActivateChild)}(a))o=Hw(a.canActivateChild(i,e));else{if(!W_(a))throw new Error("Invalid CanActivateChild guard");o=Hw(a(i,e))}return o.pipe(sw())})).pipe(Y_())})});return Ty(r).pipe(Y_())}(e,t.path,n),function(e,t,n){var i=t.routeConfig?t.routeConfig.canActivate:null;return i&&0!==i.length?Ty(i.map(function(i){return Fb(function(){var r,o=yk(i,t,n);if(function(e){return e&&W_(e.canActivate)}(o))r=Hw(o.canActivate(t,e));else{if(!W_(o))throw new Error("Invalid CanActivate guard");r=Hw(o(t,e))}return r.pipe(sw())})})).pipe(Y_()):Ty(!0)}(e,t.route,n))}),sw(function(e){return!0!==e},!0))}(i,a,e,t):Ty(n)}),Y(function(e){return Object.assign(Object.assign({},n),{guardsResult:e})}))})}(t.ngModule.injector,function(e){return t.triggerEvent(e)}),uw(function(e){if(G_(e.guardsResult)){var n=Rw('Redirecting to "'.concat(t.serializeUrl(e.guardsResult),'"'));throw n.url=e.guardsResult,n}var i=new kw(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot,!!e.guardsResult);t.triggerEvent(i)}),Ry(function(e){if(!e.guardsResult){t.resetUrlToCurrentUrlTree();var i=new yw(e.id,t.serializeUrl(e.extractedUrl),"");return n.next(i),e.resolve(!1),!1}return!0}),Ek(function(e){if(e.guards.canActivateChecks.length)return Ty(e).pipe(uw(function(e){var n=new xw(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.triggerEvent(n)}),Bb(function(e){var i,r,o=!1;return Ty(e).pipe((i=t.paramsInheritanceStrategy,r=t.ngModule.injector,se(function(e){var t=e.targetSnapshot,n=e.guards.canActivateChecks;if(!n.length)return Ty(e);var o=0;return ie(n).pipe(Iy(function(e){return function(e,t,n,i){return function(e,t,n,i){var r=Object.keys(e);if(0===r.length)return Ty({});var o={};return ie(r).pipe(se(function(r){return function(e,t,n,i){var r=yk(e,t,i);return Hw(r.resolve?r.resolve(t,n):r(t,n))}(e[r],t,n,i).pipe(uw(function(e){o[r]=e}))}),Kb(1),se(function(){return Object.keys(o).length===r.length?Ty(o):Rb}))}(e._resolve,e,t,i).pipe(Y(function(t){return e._resolvedData=t,e.data=Object.assign(Object.assign({},e.data),w_(e,n).resolve),null}))}(e.route,t,i,r)}),uw(function(){return o++}),Kb(1),se(function(t){return o===n.length?Ty(e):Rb}))})),uw({next:function(){return o=!0},complete:function(){if(!o){var i=new yw(e.id,t.serializeUrl(e.extractedUrl),"At least one route resolver didn't emit any value.");n.next(i),e.resolve(!1)}}}))}),uw(function(e){var n=new Aw(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.triggerEvent(n)}))}),Ek(function(e){var n=e.targetSnapshot,i=e.id,r=e.extractedUrl,o=e.rawUrl,a=e.extras,s=a.skipLocationChange,l=a.replaceUrl;return t.hooks.afterPreactivation(n,{navigationId:i,appliedUrlTree:r,rawUrlTree:o,skipLocationChange:!!s,replaceUrl:!!l})}),Y(function(e){var n=function(e,t,n){var i=P_(e,t._root,n?n._root:void 0);return new m_(i,t)}(t.routeReuseStrategy,e.targetSnapshot,e.currentRouterState);return Object.assign(Object.assign({},e),{targetRouterState:n})}),uw(function(e){t.currentUrlTree=e.urlAfterRedirects,t.rawUrlTree=t.urlHandlingStrategy.merge(t.currentUrlTree,e.rawUrl),t.routerState=e.targetRouterState,"deferred"===t.urlUpdateStrategy&&(e.extras.skipLocationChange||t.setBrowserUrl(t.rawUrlTree,!!e.extras.replaceUrl,e.id,e.extras.state),t.browserUrlTree=e.urlAfterRedirects)}),(i=t.rootContexts,r=t.routeReuseStrategy,o=function(e){return t.triggerEvent(e)},Y(function(e){return new H_(r,e.targetRouterState,e.currentRouterState,o).activate(i),e})),uw({next:function(){a=!0},complete:function(){a=!0}}),hw(function(){if(!a&&!s){t.resetUrlToCurrentUrlTree();var i=new yw(e.id,t.serializeUrl(e.extractedUrl),"Navigation ID ".concat(e.id," is not equal to the current navigation id ").concat(t.navigationId));n.next(i),e.resolve(!1)}t.currentNavigation=null}),Zb(function(i){if(s=!0,(l=i)&&l.ngNavigationCancelingError){var r=G_(i.url);r||(t.navigated=!0,t.resetStateAndUrl(e.currentRouterState,e.currentUrlTree,e.rawUrl));var o=new yw(e.id,t.serializeUrl(e.extractedUrl),i.message);n.next(o),r?setTimeout(function(){var n=t.urlHandlingStrategy.merge(i.url,t.rawUrlTree);t.scheduleNavigation(n,"imperative",null,{skipLocationChange:e.extras.skipLocationChange,replaceUrl:"eager"===t.urlUpdateStrategy},{resolve:e.resolve,reject:e.reject,promise:e.promise})},0):e.resolve(!1)}else{t.resetStateAndUrl(e.currentRouterState,e.currentUrlTree,e.rawUrl);var a=new bw(e.id,t.serializeUrl(e.extractedUrl),i);n.next(a);try{e.resolve(t.errorHandler(i))}catch(u){e.reject(u)}}var l;return Rb}))}))}},{key:"resetRootComponentType",value:function(e){this.rootComponentType=e,this.routerState.root.component=this.rootComponentType}},{key:"getTransition",value:function(){var e=this.transitions.value;return e.urlAfterRedirects=this.browserUrlTree,e}},{key:"setTransition",value:function(e){this.transitions.next(Object.assign(Object.assign({},this.getTransition()),e))}},{key:"initialNavigation",value:function(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}},{key:"setUpLocationChangeListener",value:function(){var e=this;this.locationSubscription||(this.locationSubscription=this.location.subscribe(function(t){var n=e.extractLocationChangeInfoFromEvent(t);e.shouldScheduleNavigation(e.lastLocationChangeInfo,n)&&setTimeout(function(){var t=n.source,i=n.state,r=n.urlTree,o={replaceUrl:!0};if(i){var a=Object.assign({},i);delete a.navigationId,0!==Object.keys(a).length&&(o.state=a)}e.scheduleNavigation(r,t,i,o)},0),e.lastLocationChangeInfo=n}))}},{key:"extractLocationChangeInfoFromEvent",value:function(e){var t;return{source:"popstate"===e.type?"popstate":"hashchange",urlTree:this.parseUrl(e.url),state:(null===(t=e.state)||void 0===t?void 0:t.navigationId)?e.state:null,transitionId:this.getTransition().id}}},{key:"shouldScheduleNavigation",value:function(e,t){if(!e)return!0;var n=t.urlTree.toString()===e.urlTree.toString();return!(t.transitionId===e.transitionId&&n&&("hashchange"===t.source&&"popstate"===e.source||"popstate"===t.source&&"hashchange"===e.source))}},{key:"url",get:function(){return this.serializeUrl(this.currentUrlTree)}},{key:"getCurrentNavigation",value:function(){return this.currentNavigation}},{key:"triggerEvent",value:function(e){this.events.next(e)}},{key:"resetConfig",value:function(e){X_(e),this.config=e.map($_),this.navigated=!1,this.lastSuccessfulId=-1}},{key:"ngOnDestroy",value:function(){this.dispose()}},{key:"dispose",value:function(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}},{key:"createUrlTree",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.relativeTo,i=t.queryParams,r=t.fragment,o=t.queryParamsHandling,a=t.preserveFragment,s=n||this.routerState.root,l=a?this.currentUrlTree.fragment:r,u=null;switch(o){case"merge":u=Object.assign(Object.assign({},this.currentUrlTree.queryParams),i);break;case"preserve":u=this.currentUrlTree.queryParams;break;default:u=i||null}return null!==u&&(u=this.removeEmptyProps(u)),function(e,t,n,i,r){if(0===n.length)return M_(t.root,t.root,t,i,r);var o=function(e){if("string"==typeof e[0]&&1===e.length&&"/"===e[0])return new I_(!0,0,e);var t=0,n=!1,i=e.reduce(function(e,i,r){if("object"==typeof i&&null!=i){if(i.outlets){var o={};return Nw(i.outlets,function(e,t){o[t]="string"==typeof e?e.split("/"):e}),[].concat(y(e),[{outlets:o}])}if(i.segmentPath)return[].concat(y(e),[i.segmentPath])}return"string"!=typeof i?[].concat(y(e),[i]):0===r?(i.split("/").forEach(function(i,r){0==r&&"."===i||(0==r&&""===i?n=!0:".."===i?t++:""!=i&&e.push(i))}),e):[].concat(y(e),[i])},[]);return new I_(n,t,i)}(n);if(o.toRoot())return M_(t.root,new Yw([],{}),t,i,r);var a=function(e,t,n){if(e.isAbsolute)return new R_(t.root,!0,0);if(-1===n.snapshot._lastPathIndex){var i=n.snapshot._urlSegment;return new R_(i,i===t.root,0)}var r=D_(e.commands[0])?0:1;return function(e,t,n){for(var i=e,r=t,o=n;o>r;){if(o-=r,!(i=i.parent))throw new Error("Invalid number of '../'");r=i.segments.length}return new R_(i,!1,r-o)}(n.snapshot._urlSegment,n.snapshot._lastPathIndex+r,e.numberOfDoubleDots)}(o,t,e),s=a.processChildren?F_(a.segmentGroup,a.index,o.commands):L_(a.segmentGroup,a.index,o.commands);return M_(a.segmentGroup,s,t,i,r)}(s,this.currentUrlTree,e,u,l)}},{key:"navigateByUrl",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1},n=G_(e)?e:this.parseUrl(e),i=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(i,"imperative",null,t)}},{key:"navigate",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1};return function(e){for(var t=0;t<e.length;t++){var n=e[t];if(null==n)throw new Error("The requested path contains ".concat(n," segment at index ").concat(t))}}(e),this.navigateByUrl(this.createUrlTree(e,t),t)}},{key:"serializeUrl",value:function(e){return this.urlSerializer.serialize(e)}},{key:"parseUrl",value:function(e){var t;try{t=this.urlSerializer.parse(e)}catch(n){t=this.malformedUriErrorHandler(n,this.urlSerializer,e)}return t}},{key:"isActive",value:function(e,t){if(G_(e))return jw(this.currentUrlTree,e,t);var n=this.parseUrl(e);return jw(this.currentUrlTree,n,t)}},{key:"removeEmptyProps",value:function(e){return Object.keys(e).reduce(function(t,n){var i=e[n];return null!=i&&(t[n]=i),t},{})}},{key:"processNavigations",value:function(){var e=this;this.navigations.subscribe(function(t){e.navigated=!0,e.lastSuccessfulId=t.id,e.events.next(new mw(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(e.currentUrlTree))),e.lastSuccessfulNavigation=e.currentNavigation,e.currentNavigation=null,t.resolve(!0)},function(t){e.console.warn("Unhandled Navigation Error: ")})}},{key:"scheduleNavigation",value:function(e,t,n,i,r){if(this.disposed)return Promise.resolve(!1);var o,a,s,l=this.getTransition(),u="imperative"!==t&&"imperative"===(null==l?void 0:l.source),c=(this.lastSuccessfulId===l.id||this.currentNavigation?l.rawUrl:l.urlAfterRedirects).toString()===e.toString();if(u&&c)return Promise.resolve(!0);r?(o=r.resolve,a=r.reject,s=r.promise):s=new Promise(function(e,t){o=e,a=t});var d=++this.navigationId;return this.setTransition({id:d,source:t,restoredState:n,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:e,extras:i,resolve:o,reject:a,promise:s,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),s.catch(function(e){return Promise.reject(e)})}},{key:"setBrowserUrl",value:function(e,t,n,i){var r=this.urlSerializer.serialize(e);i=i||{},this.location.isCurrentPathEqualTo(r)||t?this.location.replaceState(r,"",Object.assign(Object.assign({},i),{navigationId:n})):this.location.go(r,"",Object.assign(Object.assign({},i),{navigationId:n}))}},{key:"resetStateAndUrl",value:function(e,t,n){this.routerState=e,this.currentUrlTree=t,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n),this.resetUrlToCurrentUrlTree()}},{key:"resetUrlToCurrentUrlTree",value:function(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",{navigationId:this.lastSuccessfulId})}}]),e}()).\u0275fac=function(e){return new(e||Hk)(Ri(bi),Ri(Xw),Ri(Rk),Ri(Cd),Ri(Fa),Ri(Yc),Ri(_c),Ri(void 0))},Hk.\u0275prov=Re({token:Hk,factory:Hk.\u0275fac}),Hk),Uk=((Nk=function(){function e(t,n,i,r,o){A(this,e),this.router=t,this.route=n,this.commands=[],this.onChanges=new W,null==i&&r.setAttribute(o.nativeElement,"tabindex","0")}return m(e,[{key:"ngOnChanges",value:function(e){this.onChanges.next(this)}},{key:"routerLink",set:function(e){this.commands=null!=e?Array.isArray(e)?e:[e]:[]}},{key:"onClick",value:function(){var e={skipLocationChange:Gk(this.skipLocationChange),replaceUrl:Gk(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,e),!0}},{key:"urlTree",get:function(){return this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:Gk(this.preserveFragment)})}}]),e}()).\u0275fac=function(e){return new(e||Nk)(rs(jk),rs(b_),pi("tabindex"),rs(El),rs(Cl))},Nk.\u0275dir=bt({type:Nk,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(e,t){1&e&&ms("click",function(){return t.onClick()})},inputs:{routerLink:"routerLink",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo"},features:[Mt]}),Nk),Wk=((zk=function(){function e(t,n,i){var r=this;A(this,e),this.router=t,this.route=n,this.locationStrategy=i,this.commands=[],this.onChanges=new W,this.subscription=t.events.subscribe(function(e){e instanceof mw&&r.updateTargetUrlAndHref()})}return m(e,[{key:"routerLink",set:function(e){this.commands=null!=e?Array.isArray(e)?e:[e]:[]}},{key:"ngOnChanges",value:function(e){this.updateTargetUrlAndHref(),this.onChanges.next(this)}},{key:"ngOnDestroy",value:function(){this.subscription.unsubscribe()}},{key:"onClick",value:function(e,t,n,i,r){if(0!==e||t||n||i||r)return!0;if("string"==typeof this.target&&"_self"!=this.target)return!0;var o={skipLocationChange:Gk(this.skipLocationChange),replaceUrl:Gk(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,o),!1}},{key:"updateTargetUrlAndHref",value:function(){this.href=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree))}},{key:"urlTree",get:function(){return this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:Gk(this.preserveFragment)})}}]),e}()).\u0275fac=function(e){return new(e||zk)(rs(jk),rs(b_),rs(md))},zk.\u0275dir=bt({type:zk,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(e,t){1&e&&ms("click",function(e){return t.onClick(e.button,e.ctrlKey,e.shiftKey,e.altKey,e.metaKey)}),2&e&&(nl("href",t.href,Cr),$a("target",t.target))},inputs:{routerLink:"routerLink",target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo"},features:[Mt]}),zk);function Gk(e){return""===e||!!e}var qk,Yk,Zk,Qk=((qk=function(){function e(t,n,i,r,o){A(this,e),this.parentContexts=t,this.location=n,this.resolver=i,this.changeDetector=o,this.activated=null,this._activatedRoute=null,this.activateEvents=new Fu,this.deactivateEvents=new Fu,this.name=r||"primary",t.onChildOutletCreated(this.name,this)}return m(e,[{key:"ngOnDestroy",value:function(){this.parentContexts.onChildOutletDestroyed(this.name)}},{key:"ngOnInit",value:function(){if(!this.activated){var e=this.parentContexts.getContext(this.name);e&&e.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.resolver||null))}}},{key:"isActivated",get:function(){return!!this.activated}},{key:"component",get:function(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}},{key:"activatedRoute",get:function(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}},{key:"activatedRouteData",get:function(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}},{key:"detach",value:function(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();var e=this.activated;return this.activated=null,this._activatedRoute=null,e}},{key:"attach",value:function(e,t){this.activated=e,this._activatedRoute=t,this.location.insert(e.hostView)}},{key:"deactivate",value:function(){if(this.activated){var e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}},{key:"activateWith",value:function(e,t){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=e;var n=(t=t||this.resolver).resolveComponentFactory(e._futureSnapshot.routeConfig.component),i=this.parentContexts.getOrCreateContext(this.name).children,r=new Xk(e,i,this.location.injector);this.activated=this.location.createComponent(n,this.location.length,r),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}]),e}()).\u0275fac=function(e){return new(e||qk)(rs(Rk),rs(uu),rs(_l),pi("name"),rs(Kl))},qk.\u0275dir=bt({type:qk,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),qk),Xk=function(){function e(t,n,i){A(this,e),this.route=t,this.childContexts=n,this.parent=i}return m(e,[{key:"get",value:function(e,t){return e===b_?this.route:e===Rk?this.childContexts:this.parent.get(e,t)}}]),e}(),Kk=function e(){A(this,e)},Jk=function(){function e(){A(this,e)}return m(e,[{key:"preload",value:function(e,t){return Ty(null)}}]),e}(),$k=((Zk=function(){function e(t,n,i,r,o){A(this,e),this.router=t,this.injector=r,this.preloadingStrategy=o,this.loader=new Tk(n,i,function(e){return t.triggerEvent(new Cw(e))},function(e){return t.triggerEvent(new Sw(e))})}return m(e,[{key:"setUpPreloading",value:function(){var e=this;this.subscription=this.router.events.pipe(Ry(function(e){return e instanceof mw}),Iy(function(){return e.preload()})).subscribe(function(){})}},{key:"preload",value:function(){var e=this.injector.get(au);return this.processRoutes(e,this.router.config)}},{key:"ngOnDestroy",value:function(){this.subscription&&this.subscription.unsubscribe()}},{key:"processRoutes",value:function(e,t){var n,i=[],r=h(t);try{for(r.s();!(n=r.n()).done;){var o=n.value;if(o.loadChildren&&!o.canLoad&&o._loadedConfig){var a=o._loadedConfig;i.push(this.processRoutes(a.module,a.routes))}else o.loadChildren&&!o.canLoad?i.push(this.preloadConfig(e,o)):o.children&&i.push(this.processRoutes(e,o.children))}}catch(s){r.e(s)}finally{r.f()}return ie(i).pipe(ce(),Y(function(e){}))}},{key:"preloadConfig",value:function(e,t){var n=this;return this.preloadingStrategy.preload(t,function(){return(t._loadedConfig?Ty(t._loadedConfig):n.loader.load(e.injector,t)).pipe(se(function(e){return t._loadedConfig=e,n.processRoutes(e.module,e.routes)}))})}}]),e}()).\u0275fac=function(e){return new(e||Zk)(Ri(jk),Ri(Yc),Ri(_c),Ri(Fa),Ri(Kk))},Zk.\u0275prov=Re({token:Zk,factory:Zk.\u0275fac}),Zk),ex=((Yk=function(){function e(t,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};A(this,e),this.router=t,this.viewportScroller=n,this.options=i,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},i.scrollPositionRestoration=i.scrollPositionRestoration||"disabled",i.anchorScrolling=i.anchorScrolling||"disabled"}return m(e,[{key:"init",value:function(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}},{key:"createScrollEvents",value:function(){var e=this;return this.router.events.subscribe(function(t){t instanceof vw?(e.store[e.lastId]=e.viewportScroller.getScrollPosition(),e.lastSource=t.navigationTrigger,e.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof mw&&(e.lastId=t.id,e.scheduleScrollEvent(t,e.router.parseUrl(t.urlAfterRedirects).fragment))})}},{key:"consumeScrollEvents",value:function(){var e=this;return this.router.events.subscribe(function(t){t instanceof Mw&&(t.position?"top"===e.options.scrollPositionRestoration?e.viewportScroller.scrollToPosition([0,0]):"enabled"===e.options.scrollPositionRestoration&&e.viewportScroller.scrollToPosition(t.position):t.anchor&&"enabled"===e.options.anchorScrolling?e.viewportScroller.scrollToAnchor(t.anchor):"disabled"!==e.options.scrollPositionRestoration&&e.viewportScroller.scrollToPosition([0,0]))})}},{key:"scheduleScrollEvent",value:function(e,t){this.router.triggerEvent(new Mw(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,t))}},{key:"ngOnDestroy",value:function(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}]),e}()).\u0275fac=function(e){return new(e||Yk)(Ri(jk),Ri(Kh),Ri(void 0))},Yk.\u0275prov=Re({token:Yk,factory:Yk.\u0275fac}),Yk),tx=new mi("ROUTER_CONFIGURATION"),nx=new mi("ROUTER_FORROOT_GUARD"),ix=[Cd,{provide:Xw,useClass:Kw},{provide:jk,useFactory:function(e,t,n,i,r,o,a){var s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:{},l=arguments.length>8?arguments[8]:void 0,u=arguments.length>9?arguments[9]:void 0,c=new jk(null,e,t,n,i,r,o,Vw(a));if(l&&(c.urlHandlingStrategy=l),u&&(c.routeReuseStrategy=u),function(e,t){e.errorHandler&&(t.errorHandler=e.errorHandler),e.malformedUriErrorHandler&&(t.malformedUriErrorHandler=e.malformedUriErrorHandler),e.onSameUrlNavigation&&(t.onSameUrlNavigation=e.onSameUrlNavigation),e.paramsInheritanceStrategy&&(t.paramsInheritanceStrategy=e.paramsInheritanceStrategy),e.relativeLinkResolution&&(t.relativeLinkResolution=e.relativeLinkResolution),e.urlUpdateStrategy&&(t.urlUpdateStrategy=e.urlUpdateStrategy)}(s,c),s.enableTracing){var d=id();c.events.subscribe(function(e){d.logGroup("Router Event: "+e.constructor.name),d.log(e.toString()),d.log(e),d.logGroupEnd()})}return c},deps:[Xw,Rk,Cd,Fa,Yc,_c,Mk,tx,[function(){return function e(){A(this,e)}}(),new Hi],[Dk,new Hi]]},Rk,{provide:b_,useFactory:function(e){return e.routerState.root},deps:[jk]},{provide:Yc,useClass:Xc},$k,Jk,function(){function e(){A(this,e)}return m(e,[{key:"preload",value:function(e,t){return t().pipe(Zb(function(){return Ty(null)}))}}]),e}(),{provide:tx,useValue:{enableTracing:!1}}];function rx(){return new zc("Router",jk)}var ox,ax=((ox=function(){function e(t,n){A(this,e)}return m(e,null,[{key:"forRoot",value:function(t,n){return{ngModule:e,providers:[ix,cx(t),{provide:nx,useFactory:ux,deps:[[jk,new Hi,new ji]]},{provide:tx,useValue:n||{}},{provide:md,useFactory:lx,deps:[ad,[new Ni(kd),new Hi],tx]},{provide:ex,useFactory:sx,deps:[jk,Kh,tx]},{provide:Kk,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:Jk},{provide:zc,multi:!0,useFactory:rx},[hx,{provide:ic,multi:!0,useFactory:fx,deps:[hx]},{provide:gx,useFactory:px,deps:[hx]},{provide:cc,multi:!0,useExisting:gx}]]}}},{key:"forChild",value:function(t){return{ngModule:e,providers:[cx(t)]}}}]),e}()).\u0275fac=function(e){return new(e||ox)(Ri(nx,8),Ri(jk,8))},ox.\u0275mod=mt({type:ox}),ox.\u0275inj=Fe({}),ox);function sx(e,t,n){return n.scrollOffset&&t.setOffset(n.scrollOffset),new ex(e,t,n)}function lx(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return n.useHash?new Ad(e,t):new xd(e,t)}function ux(e){return"guarded"}function cx(e){return[{provide:yi,multi:!0,useValue:e},{provide:Mk,multi:!0,useValue:e}]}var dx,hx=((dx=function(){function e(t){A(this,e),this.injector=t,this.initNavigation=!1,this.resultOfPreactivationDone=new W}return m(e,[{key:"appInitializer",value:function(){var e=this;return this.injector.get(ud,Promise.resolve(null)).then(function(){var t=null,n=new Promise(function(e){return t=e}),i=e.injector.get(jk),r=e.injector.get(tx);return"disabled"===r.initialNavigation?(i.setUpLocationChangeListener(),t(!0)):"enabled"===r.initialNavigation||"enabledBlocking"===r.initialNavigation?(i.hooks.afterPreactivation=function(){return e.initNavigation?Ty(null):(e.initNavigation=!0,t(!0),e.resultOfPreactivationDone)},i.initialNavigation()):t(!0),n})}},{key:"bootstrapListener",value:function(e){var t=this.injector.get(tx),n=this.injector.get($k),i=this.injector.get(ex),r=this.injector.get(jk),o=this.injector.get(Gc);e===o.components[0]&&("enabledNonBlocking"!==t.initialNavigation&&void 0!==t.initialNavigation||r.initialNavigation(),n.setUpPreloading(),i.init(),r.resetRootComponentType(o.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}}]),e}()).\u0275fac=function(e){return new(e||dx)(Ri(Fa))},dx.\u0275prov=Re({token:dx,factory:dx.\u0275fac}),dx);function fx(e){return e.appInitializer.bind(e)}function px(e){return e.bootstrapListener.bind(e)}var gx=new mi("Router Initializer");function vx(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a}function mx(e,t){return function(n,i){t(n,i,e)}}function yx(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function bx(e,t,n,i){return new(n||(n=Promise))(function(r,o){function a(e){try{l(i.next(e))}catch(t){o(t)}}function s(e){try{l(i.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((i=i.apply(e,t||[])).next())})}u("meiF"),u("lTIg"),u("RQGG"),u("bC4P"),u("iWo5");var wx=u("E/Mt"),_x=u("1vRN"),kx=(u("39oe"),u("k4ps")),xx=u("r7QR"),Ax=u("7OTs"),Cx=(u("y08P"),u("wEJo"));function Sx(e,t,n,i){return v(n)&&(i=n,n=void 0),i?Sx(e,t,n).pipe(Y(function(e){return S(e)?i.apply(void 0,y(e)):i(e)})):new V(function(i){Px(e,t,function(e){i.next(arguments.length>1?Array.prototype.slice.call(arguments):e)},i,n)})}function Px(e,t,n,i,r){var o;if(function(e){return e&&"function"==typeof e.addEventListener&&"function"==typeof e.removeEventListener}(e)){var a=e;e.addEventListener(t,n,r),o=function(){return a.removeEventListener(t,n,r)}}else if(function(e){return e&&"function"==typeof e.on&&"function"==typeof e.off}(e)){var s=e;e.on(t,n),o=function(){return s.off(t,n)}}else if(function(e){return e&&"function"==typeof e.addListener&&"function"==typeof e.removeListener}(e)){var l=e;e.addListener(t,n),o=function(){return l.removeListener(t,n)}}else{if(!e||!e.length)throw new TypeError("Invalid event target");for(var u=0,c=e.length;u<c;u++)Px(e[u],t,n,i,r)}i.add(o)}function Ex(e,t){return function(n){return n.lift(new jx(e,t))}}u("B4Jq");var Dx,Ox,Mx,Tx,Ix,Rx,Lx,Fx,Bx,Vx,zx,Nx,Hx,jx=function(){function e(t,n){A(this,e),this.compare=t,this.keySelector=n}return m(e,[{key:"call",value:function(e,t){return t.subscribe(new Ux(e,this.compare,this.keySelector))}}]),e}(),Ux=function(e){r(n,e);var t=a(n);function n(e,i,r){var o;return A(this,n),(o=t.call(this,e)).keySelector=r,o.hasKey=!1,"function"==typeof i&&(o.compare=i),o}return m(n,[{key:"compare",value:function(e,t){return e===t}},{key:"_next",value:function(e){var t;try{var n=this.keySelector;t=n?n(e):e}catch(r){return this.destination.error(r)}var i=!1;if(this.hasKey)try{i=(0,this.compare)(this.key,t)}catch(r){return this.destination.error(r)}else this.hasKey=!0;i||(this.key=t,this.destination.next(e))}}]),n}(I),Wx=wx.e,Gx=["*"],qx=function(e){return"function"==typeof __zone_symbol__requestAnimationFrame?__zone_symbol__requestAnimationFrame(e):"function"==typeof requestAnimationFrame?requestAnimationFrame(e):setTimeout(e)},Yx=((Dx=function(){function e(t,n){A(this,e),this.injector=t,this.el=n,this.onChange=function(){},this.onTouched=function(){}}return m(e,[{key:"writeValue",value:function(e){this.el.nativeElement.value=this.lastValue=null==e?"":e,Zx(this.el)}},{key:"handleChangeEvent",value:function(e,t){e===this.el.nativeElement&&(t!==this.lastValue&&(this.lastValue=t,this.onChange(t)),Zx(this.el))}},{key:"_handleBlurEvent",value:function(e){e===this.el.nativeElement&&(this.onTouched(),Zx(this.el))}},{key:"registerOnChange",value:function(e){this.onChange=e}},{key:"registerOnTouched",value:function(e){this.onTouched=e}},{key:"setDisabledState",value:function(e){this.el.nativeElement.disabled=e}},{key:"ngOnDestroy",value:function(){this.statusChanges&&this.statusChanges.unsubscribe()}},{key:"ngAfterViewInit",value:function(){var e,t=this;try{e=this.injector.get(cm)}catch(i){}if(e){e.statusChanges&&(this.statusChanges=e.statusChanges.subscribe(function(){return Zx(t.el)}));var n=e.control;n&&["markAsTouched","markAllAsTouched","markAsUntouched","markAsDirty","markAsPristine"].forEach(function(e){if(n[e]){var i=n[e].bind(n);n[e]=function(){i.apply(void 0,arguments),Zx(t.el)}}})}}}]),e}()).\u0275fac=function(e){!function(){throw new Error("invalid")}()},Dx.\u0275dir=bt({type:Dx,hostBindings:function(e,t){1&e&&ms("ionBlur",function(e){return t._handleBlurEvent(e.target)})}}),Dx),Zx=function(e){qx(function(){var t=e.nativeElement,n=Qx(t);Xx(t,n);var i=t.closest("ion-item");i&&Xx(i,n)})},Qx=function(e){for(var t=e.classList,n=[],i=0;i<t.length;i++){var r=t.item(i);null!==r&&Kx(r,"ng-")&&n.push("ion-"+r.substr(3))}return n},Xx=function(e,t){var n=e.classList;["ion-valid","ion-invalid","ion-touched","ion-untouched","ion-dirty","ion-pristine"].forEach(function(e){return n.remove(e)}),t.forEach(function(e){return n.add(e)})},Kx=function(e,t){return e.substr(0,t.length)===t},Jx=((Mx=Ox=function(e){r(n,e);var t=a(n);function n(e,i){return A(this,n),t.call(this,e,i)}return m(n,[{key:"writeValue",value:function(e){this.el.nativeElement.checked=this.lastValue=null!=e&&e,Zx(this.el)}},{key:"_handleIonChange",value:function(e){this.handleChangeEvent(e,e.checked)}}]),n}(Yx)).\u0275fac=function(e){return new(e||Mx)(rs(Fa),rs(Cl))},Mx.\u0275dir=bt({type:Mx,selectors:[["ion-checkbox"],["ion-toggle"]],hostBindings:function(e,t){1&e&&ms("ionChange",function(e){return t._handleIonChange(e.target)})},features:[yl([{provide:Dv,useExisting:Ox,multi:!0}]),Va]}),Mx),$x=((Ix=Tx=function(e){r(n,e);var t=a(n);function n(e,i){return A(this,n),t.call(this,e,i)}return m(n,[{key:"_handleIonChange",value:function(e){this.handleChangeEvent(e,e.value)}},{key:"registerOnChange",value:function(e){i(c(n.prototype),"registerOnChange",this).call(this,function(t){e(""===t?null:parseFloat(t))})}}]),n}(Yx)).\u0275fac=function(e){return new(e||Ix)(rs(Fa),rs(Cl))},Ix.\u0275dir=bt({type:Ix,selectors:[["ion-input","type","number"]],hostBindings:function(e,t){1&e&&ms("ionChange",function(e){return t._handleIonChange(e.target)})},features:[yl([{provide:Dv,useExisting:Tx,multi:!0}]),Va]}),Ix),eA=((Lx=Rx=function(e){r(n,e);var t=a(n);function n(e,i){return A(this,n),t.call(this,e,i)}return m(n,[{key:"_handleIonSelect",value:function(e){this.handleChangeEvent(e,e.checked)}}]),n}(Yx)).\u0275fac=function(e){return new(e||Lx)(rs(Fa),rs(Cl))},Lx.\u0275dir=bt({type:Lx,selectors:[["ion-radio"]],hostBindings:function(e,t){1&e&&ms("ionSelect",function(e){return t._handleIonSelect(e.target)})},features:[yl([{provide:Dv,useExisting:Rx,multi:!0}]),Va]}),Lx),tA=((Bx=Fx=function(e){r(n,e);var t=a(n);function n(e,i){return A(this,n),t.call(this,e,i)}return m(n,[{key:"_handleChangeEvent",value:function(e){this.handleChangeEvent(e,e.value)}}]),n}(Yx)).\u0275fac=function(e){return new(e||Bx)(rs(Fa),rs(Cl))},Bx.\u0275dir=bt({type:Bx,selectors:[["ion-range"],["ion-select"],["ion-radio-group"],["ion-segment"],["ion-datetime"]],hostBindings:function(e,t){1&e&&ms("ionChange",function(e){return t._handleChangeEvent(e.target)})},features:[yl([{provide:Dv,useExisting:Fx,multi:!0}]),Va]}),Bx),nA=((Nx=Vx=function(e){r(n,e);var t=a(n);function n(e,i){return A(this,n),t.call(this,e,i)}return m(n,[{key:"_handleInputEvent",value:function(e){this.handleChangeEvent(e,e.value)}}]),n}(Yx)).\u0275fac=function(e){return new(e||Nx)(rs(Fa),rs(Cl))},Nx.\u0275dir=bt({type:Nx,selectors:[["ion-input",3,"type","number"],["ion-textarea"],["ion-searchbar"]],hostBindings:function(e,t){1&e&&ms("ionChange",function(e){return t._handleInputEvent(e.target)})},features:[yl([{provide:Dv,useExisting:Vx,multi:!0}]),Va]}),Nx),iA=((zx=function(){function e(t,n){var i=this;A(this,e),this.doc=t,this.backButton=new W,this.keyboardDidShow=new W,this.keyboardDidHide=new W,this.pause=new W,this.resume=new W,this.resize=new W,n.run(function(){var e;i.win=t.defaultView,i.backButton.subscribeWithPriority=function(e,t){return this.subscribe(function(i){return i.register(e,function(e){return n.run(function(){return t(e)})})})},oA(i.pause,t,"pause"),oA(i.resume,t,"resume"),oA(i.backButton,t,"ionBackButton"),oA(i.resize,i.win,"resize"),oA(i.keyboardDidShow,i.win,"ionKeyboardDidShow"),oA(i.keyboardDidHide,i.win,"ionKeyboardDidHide"),i._readyPromise=new Promise(function(t){e=t}),i.win&&i.win.cordova?t.addEventListener("deviceready",function(){e("cordova")},{once:!0}):e("dom")})}return m(e,[{key:"is",value:function(e){return Object(wx.a)(this.win,e)}},{key:"platforms",value:function(){return Object(wx.d)(this.win)}},{key:"ready",value:function(){return this._readyPromise}},{key:"isRTL",get:function(){return"rtl"===this.doc.dir}},{key:"getQueryParam",value:function(e){return rA(this.win.location.href,e)}},{key:"isLandscape",value:function(){return!this.isPortrait()}},{key:"isPortrait",value:function(){return this.win.matchMedia&&this.win.matchMedia("(orientation: portrait)").matches}},{key:"testUserAgent",value:function(e){var t=this.win.navigator;return!!(t&&t.userAgent&&t.userAgent.indexOf(e)>=0)}},{key:"url",value:function(){return this.win.location.href}},{key:"width",value:function(){return this.win.innerWidth}},{key:"height",value:function(){return this.win.innerHeight}}]),e}()).\u0275fac=function(e){return new(e||zx)(Ri(od),Ri(Ac))},zx.\u0275prov=Re({token:zx,factory:function(e){return zx.\u0275fac(e)},providedIn:"root"}),zx.ngInjectableDef=Re({factory:function(){return new zx(Ri(od),Ri(Ac))},token:zx,providedIn:"root"}),zx=vx([mx(0,Ni(od))],zx)),rA=function(e,t){t=t.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var n=new RegExp("[\\?&]"+t+"=([^&#]*)").exec(e);return n?decodeURIComponent(n[1].replace(/\+/g," ")):null},oA=function(e,t,n){t&&t.addEventListener(n,function(t){e.next(null!=t?t.detail:void 0)})},aA=((Hx=function(){function e(t,n,i,r){var o=this;A(this,e),this.location=n,this.serializer=i,this.router=r,this.direction=lA,this.animated=uA,this.guessDirection="forward",this.lastNavId=-1,r&&r.events.subscribe(function(e){if(e instanceof vw){var t=e.restoredState?e.restoredState.navigationId:e.id;o.guessDirection=t<o.lastNavId?"back":"forward",o.guessAnimation=e.restoredState?void 0:o.guessDirection,o.lastNavId="forward"===o.guessDirection?e.id:t}}),t.backButton.subscribeWithPriority(0,function(e){o.pop(),e()})}return m(e,[{key:"navigateForward",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.setDirection("forward",t.animated,t.animationDirection,t.animation),this.navigate(e,t)}},{key:"navigateBack",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.setDirection("back",t.animated,t.animationDirection,t.animation),this.navigate(e,t)}},{key:"navigateRoot",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.setDirection("root",t.animated,t.animationDirection,t.animation),this.navigate(e,t)}},{key:"back",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{animated:!0,animationDirection:"back"};return this.setDirection("back",e.animated,e.animationDirection,e.animation),this.location.back()}},{key:"pop",value:function(){return bx(this,void 0,void 0,regeneratorRuntime.mark(function e(){var t;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:t=this.topOutlet;case 1:if(e.t0=t,!e.t0){e.next=6;break}return e.next=5,t.pop();case 5:e.t0=!e.sent;case 6:if(!e.t0){e.next=10;break}t=t.parentOutlet;case 8:e.next=1;break;case 10:case"end":return e.stop()}},e,this)}))}},{key:"setDirection",value:function(e,t,n,i){this.direction=e,this.animated=sA(e,t,n),this.animationBuilder=i}},{key:"setTopOutlet",value:function(e){this.topOutlet=e}},{key:"consumeTransition",value:function(){var e,t="root",n=this.animationBuilder;return"auto"===this.direction?(t=this.guessDirection,e=this.guessAnimation):(e=this.animated,t=this.direction),this.direction=lA,this.animated=uA,this.animationBuilder=void 0,{direction:t,animation:e,animationBuilder:n}}},{key:"navigate",value:function(e,t){if(Array.isArray(e))return this.router.navigate(e,t);var n=this.serializer.parse(e.toString());return void 0!==t.queryParams&&(n.queryParams=Object.assign({},t.queryParams)),void 0!==t.fragment&&(n.fragment=t.fragment),this.router.navigateByUrl(n,t)}}]),e}()).\u0275fac=function(e){return new(e||Hx)(Ri(iA),Ri(Cd),Ri(Xw),Ri(jk,8))},Hx.\u0275prov=Re({token:Hx,factory:function(e){return Hx.\u0275fac(e)},providedIn:"root"}),Hx.ngInjectableDef=Re({factory:function(){return new Hx(Ri(iA),Ri(Cd),Ri(Xw),Ri(jk,8))},token:Hx,providedIn:"root"}),Hx=vx([mx(3,Hi())],Hx)),sA=function(e,t,n){if(!1!==t)return void 0!==n?n:"forward"===e||"back"===e?e:"root"===e&&!0===t?"forward":void 0},lA="auto",uA=void 0,cA=function(e,t,n){n.forEach(function(n){return e[n]=Sx(t,n)})};function dA(e){return function(t){return e.inputs&&(n=t,i=e.inputs,r=n.prototype,i.forEach(function(e){Object.defineProperty(r,e,{get:function(){return this.el[e]},set:function(t){var n=this;this.z.runOutsideAngular(function(){return n.el[e]=t})}})})),e.methods&&function(e,t){var n=e.prototype;t.forEach(function(e){n[e]=function(){var t=this,n=arguments;return this.z.runOutsideAngular(function(){return t.el[e].apply(t.el,n)})}})}(t,e.methods),t;var n,i,r}}var hA,fA,pA,gA,vA,mA,yA,bA,wA,_A,kA,xA,AA,CA,SA,PA,EA,DA,OA,MA,TA,IA,RA,LA,FA,BA,VA,zA,NA,HA,jA,UA,WA,GA,qA,YA,ZA,QA,XA,KA,JA,$A,eC,tC,nC,iC,rC,oC,aC,sC,lC,uC,cC,dC,hC,fC,pC,gC,vC,mC,yC,bC,wC,_C,kC,xC,AC,CC,SC,PC,EC,DC,OC=((hC=function e(t,n,i){A(this,e),this.z=i,t.detach(),this.el=n.nativeElement}).\u0275fac=function(e){return new(e||hC)(rs(Kl),rs(Cl),rs(Ac))},hC.\u0275cmp=ft({type:hC,selectors:[["ion-app"]],ngContentSelectors:Gx,decls:1,vars:0,template:function(e,t){1&e&&(As(),Cs(0))},encapsulation:2,changeDetection:0}),hC),MC=((dC=function e(t,n,i){A(this,e),this.z=i,t.detach(),this.el=n.nativeElement}).\u0275fac=function(e){return new(e||dC)(rs(Kl),rs(Cl),rs(Ac))},dC.\u0275cmp=ft({type:dC,selectors:[["ion-avatar"]],ngContentSelectors:Gx,decls:1,vars:0,template:function(e,t){1&e&&(As(),Cs(0))},encapsulation:2,changeDetection:0}),dC),TC=((cC=function e(t,n,i){A(this,e),this.z=i,t.detach(),this.el=n.nativeElement}).\u0275fac=function(e){return new(e||cC)(rs(Kl),rs(Cl),rs(Ac))},cC.\u0275cmp=ft({type:cC,selectors:[["ion-back-button"]],inputs:{color:"color",defaultHref:"defaultHref",disabled:"disabled",icon:"icon",mode:"mode",routerAnimation:"routerAnimation",text:"text",type:"type"},ngContentSelectors:Gx,decls:1,vars:0,template:function(e,t){1&e&&(As(),Cs(0))},encapsulation:2,changeDetection:0}),cC=vx([dA({inputs:["color","defaultHref","disabled","icon","mode","routerAnimation","text","type"]})],cC)),IC=((uC=function e(t,n,i){A(this,e),this.z=i,t.detach(),this.el=n.nativeElement}).\u0275fac=function(e){return new(e||uC)(rs(Kl),rs(Cl),rs(Ac))},uC.\u0275cmp=ft({type:uC,selectors:[["ion-badge"]],inputs:{color:"color",mode:"mode"},ngContentSelectors:Gx,decls:1,vars:0,template:function(e,t){1&e&&(As(),Cs(0))},encapsulation:2,changeDetection:0}),uC=vx([dA({inputs:["color","mode"]})],uC)),RC=((lC=function e(t,n,i){A(this,e),this.z=i,t.detach(),this.el=n.nativeElement,cA(this,this.el,["ionFocus","ionBlur"])}).\u0275fac=function(e){return new(e||lC)(rs(Kl),rs(Cl),rs(Ac))},lC.\u0275cmp=ft({type:lC,selectors:[["ion-button"]],inputs:{buttonType:"buttonType",color:"color",disabled:"disabled",download:"download",expand:"expand",fill:"fill",href:"href",mode:"mode",rel:"rel",routerAnimation:"routerAnimation",routerDirection:"routerDirection",shape:"shape",size:"size",strong:"strong",target:"target",type:"type"},ngContentSelectors:Gx,decls:1,vars:0,template:function(e,t){1&e&&(As(),Cs(0))},encapsulation:2,changeDetection:0}),lC=vx([dA({inputs:["buttonType","color","disabled","download","expand","fill","href","mode","rel","routerAnimation","routerDirection","shape","size","strong","target","type"]})],lC)),LC=((sC=function e(t,n,i){A(this,e),this.z=i,t.detach(),this.el=n.nativeElement}).\u0275fac=function(e){return new(e||sC)(rs(Kl),rs(Cl),rs(Ac))},sC.\u0275cmp=ft({type:sC,selectors:[["ion-buttons"]],inputs:{collapse:"collapse"},ngContentSelectors:Gx,decls:1,vars:0,template:function(e,t){1&e&&(As(),Cs(0))},encapsulation:2,changeDetection:0}),sC=vx([dA({inputs:["collapse"]})],sC)),FC=((aC=function e(t,n,i){A(this,e),this.z=i,t.detach(),this.el=n.nativeElement}).\u0275fac=function(e){return new(e||aC)(rs(Kl),rs(Cl),rs(Ac))},aC.\u0275cmp=ft({type:aC,selectors:[["ion-card"]],inputs:{button:"button",color:"color",disabled:"disabled",download:"download",href:"href",mode:"mode",rel:"rel",routerAnimation:"routerAnimation",routerDirection:"routerDirection",target:"target",type:"type"},ngContentSelectors:Gx,decls:1,vars:0,template:function(e,t){1&e&&(As(),Cs(0))},encapsulation:2,changeDetection:0}),aC=vx([dA({inputs:["button","color","disabled","download","href","mode","rel","routerAnimation","routerDirection","target","type"]})],aC)),BC=((oC=function e(t,n,i){A(this,e),this.z=i,t.detach(),this.el=n.nativeElement}).\u0275fac=function(e){return new(e||oC)(rs(Kl),rs(Cl),rs(Ac))},oC.\u0275cmp=ft({type:oC,selectors:[["ion-card-content"]],inputs:{mode:"mode"},ngContentSelectors:Gx,decls:1,vars:0,template:function(e,t){1&e&&(As(),Cs(0))},encapsulation:2,changeDetection:0}),oC=vx([dA({inputs:["mode"]})],oC)),VC=((rC=function e(t,n,i){A(this,e),this.z=i,t.detach(),this.el=n.nativeElement}).\u0275fac=function(e){return new(e||rC)(rs(Kl),rs(Cl),rs(Ac))},rC.\u0275cmp=ft({type:rC,selectors:[["ion-card-header"]],inputs:{color:"color",mode:"mode",translucent:"translucent"},ngContentSelectors:Gx,decls:1,vars:0,template:function(e,t){1&e&&(As(),Cs(0))},encapsulation:2,changeDetection:0}),rC=vx([dA({inputs:["color","mode","translucent"]})],rC)),zC=((iC=function e(t,n,i){A(this,e),this.z=i,t.detach(),this.el=n.nativeElement}).\u0275fac=function(e){return new(e||iC)(rs(Kl),rs(Cl),rs(Ac))},iC.\u0275cmp=ft({type:iC,selectors:[["ion-card-subtitle"]],inputs:{color:"color",mode:"mode"},ngContentSelectors:Gx,decls:1,vars:0,template:function(e,t){1&e&&(As(),Cs(0))},encapsulation:2,changeDetection:0}),iC=vx([dA({inputs:["color","mode"]})],iC)),NC=((nC=function e(t,n,i){A(this,e),this.z=i,t.detach(),this.el=n.nativeElement,cA(this,this.el,["ionChange","ionFocus","ionBlur"])}).\u0275fac=function(e){return new(e||nC)(rs(Kl),rs(Cl),rs(Ac))},nC.\u0275cmp=ft({type:nC,selectors:[["ion-checkbox"]],inputs:{checked:"checked",color:"color",disabled:"disabled",indeterminate:"indeterminate",mode:"mode",name:"name",value:"value"},ngContentSelectors:Gx,decls:1,vars:0,template:function(e,t){1&e&&(As(),Cs(0))},encapsulation:2,changeDetection:0}),nC=vx([dA({inputs:["checked","color","disabled","indeterminate","mode","name","value"]})],nC)),HC=((tC=function e(t,n,i){A(this,e),this.z=i,t.detach(),this.el=n.nativeElement}).\u0275fac=function(e){return new(e||tC)(rs(Kl),rs(Cl),rs(Ac))},tC.\u0275cmp=ft({type:tC,selectors:[["ion-chip"]],inputs:{color:"color",disabled:"disabled",mode:"mode",outline:"outline"},ngContentSelectors:Gx,decls:1,vars:0,template:function(e,t){1&e&&(As(),Cs(0))},encapsulation:2,changeDetection:0}),tC=vx([dA({inputs:["color","disabled","mode","outline"]})],tC)),jC=((eC=function e(t,n,i){A(this,e),this.z=i,t.detach(),this.el=n.nativeElement}).\u0275fac=function(e){return new(e||eC)(rs(Kl),rs(Cl),rs(Ac))},eC.\u0275cmp=ft({type:eC,selectors:[["ion-col"]],inputs:{offset:"offset",offsetLg:"offsetLg",offsetMd:"offsetMd",offsetSm:"offsetSm",offsetXl:"offsetXl",offsetXs:"offsetXs",pull:"pull",pullLg:"pullLg",pullMd:"pullMd",pullSm:"pullSm",pullXl:"pullXl",pullXs:"pullXs",push:"push",pushLg:"pushLg",pushMd:"pushMd",pushSm:"pushSm",pushXl:"pushXl",pushXs:"pushXs",size:"size",sizeLg:"sizeLg",sizeMd:"sizeMd",sizeSm:"sizeSm",sizeXl:"sizeXl",sizeXs:"sizeXs"},ngContentSelectors:Gx,decls:1,vars:0,template:function(e,t){1&e&&(As(),Cs(0))},encapsulation:2,changeDetection:0}),eC=vx([dA({inputs:["offset","offsetLg","offsetMd","offsetSm","offsetXl","offsetXs","pull","pullLg","pullMd","pullSm","pullXl","pullXs","push","pushLg","pushMd","pushSm","pushXl","pushXs","size","sizeLg","sizeMd","sizeSm","sizeXl","sizeXs"]})],eC)),UC=(($A=function e(t,n,i){A(this,e),this.z=i,t.detach(),this.el=n.nativeElement,cA(this,this.el,["ionScrollStart","ionScroll","ionScrollEnd"])}).\u0275fac=function(e){return new(e||$A)(rs(Kl),rs(Cl),rs(Ac))},$A.\u0275cmp=ft({type:$A,selectors:[["ion-content"]],inputs:{color:"color",forceOverscroll:"forceOverscroll",fullscreen:"fullscreen",scrollEvents:"scrollEvents",scrollX:"scrollX",scrollY:"scrollY"},ngContentSelectors:Gx,decls:1,vars:0,template:function(e,t){1&e&&(As(),Cs(0))},encapsulation:2,changeDetection:0}),$A=vx([dA({inputs:["color","forceOverscroll","fullscreen","scrollEvents","scrollX","scrollY"],methods:["getScrollElement","scrollToTop","scrollToBottom","scrollByPoint","scrollToPoint"]})],$A)),WC=((JA=function e(t,n,i){A(this,e),this.z=i,t.detach(),this.el=n.nativeElement,cA(this,this.el,["ionCancel","ionChange","ionFocus","ionBlur"])}).\u0275fac=function(e){return new(e||JA)(rs(Kl),rs(Cl),rs(Ac))},JA.\u0275cmp=ft({type:JA,selectors:[["ion-datetime"]],inputs:{cancelText:"cancelText",dayNames:"dayNames",dayShortNames:"dayShortNames",dayValues:"dayValues",disabled:"disabled",displayFormat:"displayFormat",displayTimezone:"displayTimezone",doneText:"doneText",hourValues:"hourValues",max:"max",min:"min",minuteValues:"minuteValues",mode:"mode",monthNames:"monthNames",monthShortNames:"monthShortNames",monthValues:"monthValues",name:"name",pickerFormat:"pickerFormat",pickerOptions:"pickerOptions",placeholder:"placeholder",readonly:"readonly",value:"value",yearValues:"yearValues"},ngContentSelectors:Gx,decls:1,vars:0,template:function(e,t){1&e&&(As(),Cs(0))},encapsulation:2,changeDetection:0}),JA=vx([dA({inputs:["cancelText","dayNames","dayShortNames","dayValues","disabled","displayFormat","displayTimezone","doneText","hourValues","max","min","minuteValues","mode","monthNames","monthShortNames","monthValues","name","pickerFormat","pickerOptions","placeholder","readonly","value","yearValues"],methods:["open"]})],JA)),GC=((KA=function e(t,n,i){A(this,e),this.z=i,t.detach(),this.el=n.nativeElement}).\u0275fac=function(e){return new(e||KA)(rs(Kl),rs(Cl),rs(Ac))},KA.\u0275cmp=ft({type:KA,selectors:[["ion-fab"]],inputs:{activated:"activated",edge:"edge",horizontal:"horizontal",vertical:"vertical"},ngContentSelectors:Gx,decls:1,vars:0,template:function(e,t){1&e&&(As(),Cs(0))},encapsulation:2,changeDetection:0}),KA=vx([dA({inputs:["activated","edge","horizontal","vertical"],methods:["close"]})],KA)),qC=((XA=function e(t,n,i){A(this,e),this.z=i,t.detach(),this.el=n.nativeElement,cA(this,this.el,["ionFocus","ionBlur"])}).\u0275fac=function(e){return new(e||XA)(rs(Kl),rs(Cl),rs(Ac))},XA.\u0275cmp=ft({type:XA,selectors:[["ion-fab-button"]],inputs:{activated:"activated",closeIcon:"closeIcon",color:"color",disabled:"disabled",download:"download",href:"href",mode:"mode",rel:"rel",routerAnimation:"routerAnimation",routerDirection:"routerDirection",show:"show",size:"size",target:"target",translucent:"translucent",type:"type"},ngContentSelectors:Gx,decls:1,vars:0,template:function(e,t){1&e&&(As(),Cs(0))},encapsulation:2,changeDetection:0}),XA=vx([dA({inputs:["activated","closeIcon","color","disabled","download","href","mode","rel","routerAnimation","routerDirection","show","size","target","translucent","type"]})],XA)),YC=((QA=function e(t,n,i){A(this,e),this.z=i,t.detach(),this.el=n.nativeElement}).\u0275fac=function(e){return new(e||QA)(rs(Kl),rs(Cl),rs(Ac))},QA.\u0275cmp=ft({type:QA,selectors:[["ion-fab-list"]],inputs:{activated:"activated",side:"side"},ngContentSelectors:Gx,decls:1,vars:0,template:function(e,t){1&e&&(As(),Cs(0))},encapsulation:2,changeDetection:0}),QA=vx([dA({inputs:["activated","side"]})],QA)),ZC=((ZA=function e(t,n,i){A(this,e),this.z=i,t.detach(),this.el=n.nativeElement}).\u0275fac=function(e){return new(e||ZA)(rs(Kl),rs(Cl),rs(Ac))},ZA.\u0275cmp=ft({type:ZA,selectors:[["ion-footer"]],inputs:{mode:"mode",translucent:"translucent"},ngContentSelectors:Gx,decls:1,vars:0,template:function(e,t){1&e&&(As(),Cs(0))},encapsulation:2,changeDetection:0}),ZA=vx([dA({inputs:["mode","translucent"]})],ZA)),QC=((YA=function e(t,n,i){A(this,e),this.z=i,t.detach(),this.el=n.nativeElement}).\u0275fac=function(e){return new(e||YA)(rs(Kl),rs(Cl),rs(Ac))},YA.\u0275cmp=ft({type:YA,selectors:[["ion-grid"]],inputs:{fixed:"fixed"},ngContentSelectors:Gx,decls:1,vars:0,template:function(e,t){1&e&&(As(),Cs(0))},encapsulation:2,changeDetection:0}),YA=vx([dA({inputs:["fixed"]})],YA)),XC=((qA=function e(t,n,i){A(this,e),this.z=i,t.detach(),this.el=n.nativeElement}).\u0275fac=function(e){return new(e||qA)(rs(Kl),rs(Cl),rs(Ac))},qA.\u0275cmp=ft({type:qA,selectors:[["ion-header"]],inputs:{collapse:"collapse",mode:"mode",translucent:"translucent"},ngContentSelectors:Gx,decls:1,vars:0,template:function(e,t){1&e&&(As(),Cs(0))},encapsulation:2,changeDetection:0}),qA=vx([dA({inputs:["collapse","mode","translucent"]})],qA)),KC=((GA=function e(t,n,i){A(this,e),this.z=i,t.detach(),this.el=n.nativeElement}).\u0275fac=function(e){return new(e||GA)(rs(Kl),rs(Cl),rs(Ac))},GA.\u0275cmp=ft({type:GA,selectors:[["ion-icon"]],inputs:{ariaHidden:"ariaHidden",ariaLabel:"ariaLabel",color:"color",flipRtl:"flipRtl",icon:"icon",ios:"ios",lazy:"lazy",md:"md",mode:"mode",name:"name",sanitize:"sanitize",size:"size",src:"src"},ngContentSelectors:Gx,decls:1,vars:0,template:function(e,t){1&e&&(As(),Cs(0))},encapsulation:2,changeDetection:0}),GA=vx([dA({inputs:["ariaHidden","ariaLabel","color","flipRtl","icon","ios","lazy","md","mode","name","sanitize","size","src"]})],GA)),JC=((WA=function e(t,n,i){A(this,e),this.z=i,t.detach(),this.el=n.nativeElement,cA(this,this.el,["ionImgWillLoad","ionImgDidLoad","ionError"])}).\u0275fac=function(e){return new(e||WA)(rs(Kl),rs(Cl),rs(Ac))},WA.\u0275cmp=ft({type:WA,selectors:[["ion-img"]],inputs:{alt:"alt",src:"src"},ngContentSelectors:Gx,decls:1,vars:0,template:function(e,t){1&e&&(As(),Cs(0))},encapsulation:2,changeDetection:0}),WA=vx([dA({inputs:["alt","src"]})],WA)),$C=((UA=function e(t,n,i){A(this,e),this.z=i,t.detach(),this.el=n.nativeElement,cA(this,this.el,["ionInfinite"])}).\u0275fac=function(e){return new(e||UA)(rs(Kl),rs(Cl),rs(Ac))},UA.\u0275cmp=ft({type:UA,selectors:[["ion-infinite-scroll"]],inputs:{disabled:"disabled",position:"position",threshold:"threshold"},ngContentSelectors:Gx,decls:1,vars:0,template:function(e,t){1&e&&(As(),Cs(0))},encapsulation:2,changeDetection:0}),UA=vx([dA({inputs:["disabled","position","threshold"],methods:["complete"]})],UA)),eS=((jA=function e(t,n,i){A(this,e),this.z=i,t.detach(),this.el=n.nativeElement}).\u0275fac=function(e){return new(e||jA)(rs(Kl),rs(Cl),rs(Ac))},jA.\u0275cmp=ft({type:jA,selectors:[["ion-infinite-scroll-content"]],inputs:{loadingSpinner:"loadingSpinner",loadingText:"loadingText"},ngContentSelectors:Gx,decls:1,vars:0,template:function(e,t){1&e&&(As(),Cs(0))},encapsulation:2,changeDetection:0}),jA=vx([dA({inputs:["loadingSpinner","loadingText"]})],jA)),tS=((HA=function e(t,n,i){A(this,e),this.z=i,t.detach(),this.el=n.nativeElement,cA(this,this.el,["ionInput","ionChange","ionBlur","ionFocus"])}).\u0275fac=function(e){return new(e||HA)(rs(Kl),rs(Cl),rs(Ac))},HA.\u0275cmp=ft({type:HA,selectors:[["ion-input"]],inputs:{accept:"accept",autocapitalize:"autocapitalize",autocomplete:"autocomplete",autocorrect:"autocorrect",autofocus:"autofocus",clearInput:"clearInput",clearOnEdit:"clearOnEdit",color:"color",debounce:"debounce",disabled:"disabled",enterkeyhint:"enterkeyhint",inputmode:"inputmode",max:"max",maxlength:"maxlength",min:"min",minlength:"minlength",mode:"mode",multiple:"multiple",name:"name",pattern:"pattern",placeholder:"placeholder",readonly:"readonly",required:"required",size:"size",spellcheck:"spellcheck",step:"step",type:"type",value:"value"},ngContentSelectors:Gx,decls:1,vars:0,template:function(e,t){1&e&&(As(),Cs(0))},encapsulation:2,changeDetection:0}),HA=vx([dA({inputs:["accept","autocapitalize","autocomplete","autocorrect","autofocus","clearInput","clearOnEdit","color","debounce","disabled","enterkeyhint","inputmode","max","maxlength","min","minlength","mode","multiple","name","pattern","placeholder","readonly","required","size","spellcheck","step","type","value"],methods:["setFocus","getInputElement"]})],HA)),nS=((NA=function e(t,n,i){A(this,e),this.z=i,t.detach(),this.el=n.nativeElement}).\u0275fac=function(e){return new(e||NA)(rs(Kl),rs(Cl),rs(Ac))},NA.\u0275cmp=ft({type:NA,selectors:[["ion-item"]],inputs:{button:"button",color:"color",detail:"detail",detailIcon:"detailIcon",disabled:"disabled",download:"download",href:"href",lines:"lines",mode:"mode",rel:"rel",routerAnimation:"routerAnimation",routerDirection:"routerDirection",target:"target",type:"type"},ngContentSelectors:Gx,decls:1,vars:0,template:function(e,t){1&e&&(As(),Cs(0))},encapsulation:2,changeDetection:0}),NA=vx([dA({inputs:["button","color","detail","detailIcon","disabled","download","href","lines","mode","rel","routerAnimation","routerDirection","target","type"]})],NA)),iS=((zA=function e(t,n,i){A(this,e),this.z=i,t.detach(),this.el=n.nativeElement}).\u0275fac=function(e){return new(e||zA)(rs(Kl),rs(Cl),rs(Ac))},zA.\u0275cmp=ft({type:zA,selectors:[["ion-item-option"]],inputs:{color:"color",disabled:"disabled",download:"download",expandable:"expandable",href:"href",mode:"mode",rel:"rel",target:"target",type:"type"},ngContentSelectors:Gx,decls:1,vars:0,template:function(e,t){1&e&&(As(),Cs(0))},encapsulation:2,changeDetection:0}),zA=vx([dA({inputs:["color","disabled","download","expandable","href","mode","rel","target","type"]})],zA)),rS=((VA=function e(t,n,i){A(this,e),this.z=i,t.detach(),this.el=n.nativeElement,cA(this,this.el,["ionSwipe"])}).\u0275fac=function(e){return new(e||VA)(rs(Kl),rs(Cl),rs(Ac))},VA.\u0275cmp=ft({type:VA,selectors:[["ion-item-options"]],inputs:{side:"side"},ngContentSelectors:Gx,decls:1,vars:0,template:function(e,t){1&e&&(As(),Cs(0))},encapsulation:2,changeDetection:0}),VA=vx([dA({inputs:["side"]})],VA)),oS=((BA=function e(t,n,i){A(this,e),this.z=i,t.detach(),this.el=n.nativeElement,cA(this,this.el,["ionDrag"])}).\u0275fac=function(e){return new(e||BA)(rs(Kl),rs(Cl),rs(Ac))},BA.\u0275cmp=ft({type:BA,selectors:[["ion-item-sliding"]],inputs:{disabled:"disabled"},ngContentSelectors:Gx,decls:1,vars:0,template:function(e,t){1&e&&(As(),Cs(0))},encapsulation:2,changeDetection:0}),BA=vx([dA({inputs:["disabled"],methods:["getOpenAmount","getSlidingRatio","open","close","closeOpened"]})],BA)),aS=((FA=function e(t,n,i){A(this,e),this.z=i,t.detach(),this.el=n.nativeElement}).\u0275fac=function(e){return new(e||FA)(rs(Kl),rs(Cl),rs(Ac))},FA.\u0275cmp=ft({type:FA,selectors:[["ion-label"]],inputs:{color:"color",mode:"mode",position:"position"},ngContentSelectors:Gx,decls:1,vars:0,template:function(e,t){1&e&&(As(),Cs(0))},encapsulation:2,changeDetection:0}),FA=vx([dA({inputs:["color","mode","position"]})],FA)),sS=((LA=function e(t,n,i){A(this,e),this.z=i,t.detach(),this.el=n.nativeElement}).\u0275fac=function(e){return new(e||LA)(rs(Kl),rs(Cl),rs(Ac))},LA.\u0275cmp=ft({type:LA,selectors:[["ion-list"]],inputs:{inset:"inset",lines:"lines",mode:"mode"},ngContentSelectors:Gx,decls:1,vars:0,template:function(e,t){1&e&&(As(),Cs(0))},encapsulation:2,changeDetection:0}),LA=vx([dA({inputs:["inset","lines","mode"],methods:["closeSlidingItems"]})],LA)),lS=((RA=function e(t,n,i){A(this,e),this.z=i,t.detach(),this.el=n.nativeElement}).\u0275fac=function(e){return new(e||RA)(rs(Kl),rs(Cl),rs(Ac))},RA.\u0275cmp=ft({type:RA,selectors:[["ion-list-header"]],inputs:{color:"color",lines:"lines",mode:"mode"},ngContentSelectors:Gx,decls:1,vars:0,template:function(e,t){1&e&&(As(),Cs(0))},encapsulation:2,changeDetection:0}),RA=vx([dA({inputs:["color","lines","mode"]})],RA)),uS=((IA=function e(t,n,i){A(this,e),this.z=i,t.detach(),this.el=n.nativeElement,cA(this,this.el,["ionWillOpen","ionWillClose","ionDidOpen","ionDidClose"])}).\u0275fac=function(e){return new(e||IA)(rs(Kl),rs(Cl),rs(Ac))},IA.\u0275cmp=ft({type:IA,selectors:[["ion-menu"]],inputs:{contentId:"contentId",disabled:"disabled",maxEdgeStart:"maxEdgeStart",menuId:"menuId",side:"side",swipeGesture:"swipeGesture",type:"type"},ngContentSelectors:Gx,decls:1,vars:0,template:function(e,t){1&e&&(As(),Cs(0))},encapsulation:2,changeDetection:0}),IA=vx([dA({inputs:["contentId","disabled","maxEdgeStart","menuId","side","swipeGesture","type"],methods:["isOpen","isActive","open","close","toggle","setOpen"]})],IA)),cS=((TA=function e(t,n,i){A(this,e),this.z=i,t.detach(),this.el=n.nativeElement}).\u0275fac=function(e){return new(e||TA)(rs(Kl),rs(Cl),rs(Ac))},TA.\u0275cmp=ft({type:TA,selectors:[["ion-menu-button"]],inputs:{autoHide:"autoHide",color:"color",disabled:"disabled",menu:"menu",mode:"mode",type:"type"},ngContentSelectors:Gx,decls:1,vars:0,template:function(e,t){1&e&&(As(),Cs(0))},encapsulation:2,changeDetection:0}),TA=vx([dA({inputs:["autoHide","color","disabled","menu","mode","type"]})],TA)),dS=((MA=function e(t,n,i){A(this,e),this.z=i,t.detach(),this.el=n.nativeElement}).\u0275fac=function(e){return new(e||MA)(rs(Kl),rs(Cl),rs(Ac))},MA.\u0275cmp=ft({type:MA,selectors:[["ion-menu-toggle"]],inputs:{autoHide:"autoHide",menu:"menu"},ngContentSelectors:Gx,decls:1,vars:0,template:function(e,t){1&e&&(As(),Cs(0))},encapsulation:2,changeDetection:0}),MA=vx([dA({inputs:["autoHide","menu"]})],MA)),hS=((OA=function e(t,n,i){A(this,e),this.z=i,t.detach(),this.el=n.nativeElement}).\u0275fac=function(e){return new(e||OA)(rs(Kl),rs(Cl),rs(Ac))},OA.\u0275cmp=ft({type:OA,selectors:[["ion-note"]],inputs:{color:"color",mode:"mode"},ngContentSelectors:Gx,decls:1,vars:0,template:function(e,t){1&e&&(As(),Cs(0))},encapsulation:2,changeDetection:0}),OA=vx([dA({inputs:["color","mode"]})],OA)),fS=((DA=function e(t,n,i){A(this,e),this.z=i,t.detach(),this.el=n.nativeElement,cA(this,this.el,["ionFocus","ionBlur"])}).\u0275fac=function(e){return new(e||DA)(rs(Kl),rs(Cl),rs(Ac))},DA.\u0275cmp=ft({type:DA,selectors:[["ion-radio"]],inputs:{color:"color",disabled:"disabled",mode:"mode",name:"name",value:"value"},ngContentSelectors:Gx,decls:1,vars:0,template:function(e,t){1&e&&(As(),Cs(0))},encapsulation:2,changeDetection:0}),DA=vx([dA({inputs:["color","disabled","mode","name","value"]})],DA)),pS=((EA=function e(t,n,i){A(this,e),this.z=i,t.detach(),this.el=n.nativeElement,cA(this,this.el,["ionChange"])}).\u0275fac=function(e){return new(e||EA)(rs(Kl),rs(Cl),rs(Ac))},EA.\u0275cmp=ft({type:EA,selectors:[["ion-radio-group"]],inputs:{allowEmptySelection:"allowEmptySelection",name:"name",value:"value"},ngContentSelectors:Gx,decls:1,vars:0,template:function(e,t){1&e&&(As(),Cs(0))},encapsulation:2,changeDetection:0}),EA=vx([dA({inputs:["allowEmptySelection","name","value"]})],EA)),gS=((PA=function e(t,n,i){A(this,e),this.z=i,t.detach(),this.el=n.nativeElement,cA(this,this.el,["ionChange","ionFocus","ionBlur"])}).\u0275fac=function(e){return new(e||PA)(rs(Kl),rs(Cl),rs(Ac))},PA.\u0275cmp=ft({type:PA,selectors:[["ion-range"]],inputs:{color:"color",debounce:"debounce",disabled:"disabled",dualKnobs:"dualKnobs",max:"max",min:"min",mode:"mode",name:"name",pin:"pin",snaps:"snaps",step:"step",ticks:"ticks",value:"value"},ngContentSelectors:Gx,decls:1,vars:0,template:function(e,t){1&e&&(As(),Cs(0))},encapsulation:2,changeDetection:0}),PA=vx([dA({inputs:["color","debounce","disabled","dualKnobs","max","min","mode","name","pin","snaps","step","ticks","value"]})],PA)),vS=((SA=function e(t,n,i){A(this,e),this.z=i,t.detach(),this.el=n.nativeElement}).\u0275fac=function(e){return new(e||SA)(rs(Kl),rs(Cl),rs(Ac))},SA.\u0275cmp=ft({type:SA,selectors:[["ion-reorder"]],ngContentSelectors:Gx,decls:1,vars:0,template:function(e,t){1&e&&(As(),Cs(0))},encapsulation:2,changeDetection:0}),SA),mS=((CA=function e(t,n,i){A(this,e),this.z=i,t.detach(),this.el=n.nativeElement,cA(this,this.el,["ionItemReorder"])}).\u0275fac=function(e){return new(e||CA)(rs(Kl),rs(Cl),rs(Ac))},CA.\u0275cmp=ft({type:CA,selectors:[["ion-reorder-group"]],inputs:{disabled:"disabled"},ngContentSelectors:Gx,decls:1,vars:0,template:function(e,t){1&e&&(As(),Cs(0))},encapsulation:2,changeDetection:0}),CA=vx([dA({inputs:["disabled"],methods:["complete"]})],CA)),yS=((AA=function e(t,n,i){A(this,e),this.z=i,t.detach(),this.el=n.nativeElement}).\u0275fac=function(e){return new(e||AA)(rs(Kl),rs(Cl),rs(Ac))},AA.\u0275cmp=ft({type:AA,selectors:[["ion-row"]],ngContentSelectors:Gx,decls:1,vars:0,template:function(e,t){1&e&&(As(),Cs(0))},encapsulation:2,changeDetection:0}),AA),bS=((xA=function e(t,n,i){A(this,e),this.z=i,t.detach(),this.el=n.nativeElement,cA(this,this.el,["ionInput","ionChange","ionCancel","ionClear","ionBlur","ionFocus"])}).\u0275fac=function(e){return new(e||xA)(rs(Kl),rs(Cl),rs(Ac))},xA.\u0275cmp=ft({type:xA,selectors:[["ion-searchbar"]],inputs:{animated:"animated",autocomplete:"autocomplete",autocorrect:"autocorrect",cancelButtonIcon:"cancelButtonIcon",cancelButtonText:"cancelButtonText",clearIcon:"clearIcon",color:"color",debounce:"debounce",disabled:"disabled",enterkeyhint:"enterkeyhint",inputmode:"inputmode",mode:"mode",placeholder:"placeholder",searchIcon:"searchIcon",showCancelButton:"showCancelButton",showClearButton:"showClearButton",spellcheck:"spellcheck",type:"type",value:"value"},ngContentSelectors:Gx,decls:1,vars:0,template:function(e,t){1&e&&(As(),Cs(0))},encapsulation:2,changeDetection:0}),xA=vx([dA({inputs:["animated","autocomplete","autocorrect","cancelButtonIcon","cancelButtonText","clearIcon","color","debounce","disabled","enterkeyhint","inputmode","mode","placeholder","searchIcon","showCancelButton","showClearButton","spellcheck","type","value"],methods:["setFocus","getInputElement"]})],xA)),wS=((kA=function e(t,n,i){A(this,e),this.z=i,t.detach(),this.el=n.nativeElement,cA(this,this.el,["ionChange"])}).\u0275fac=function(e){return new(e||kA)(rs(Kl),rs(Cl),rs(Ac))},kA.\u0275cmp=ft({type:kA,selectors:[["ion-segment"]],inputs:{color:"color",disabled:"disabled",mode:"mode",scrollable:"scrollable",swipeGesture:"swipeGesture",value:"value"},ngContentSelectors:Gx,decls:1,vars:0,template:function(e,t){1&e&&(As(),Cs(0))},encapsulation:2,changeDetection:0}),kA=vx([dA({inputs:["color","disabled","mode","scrollable","swipeGesture","value"]})],kA)),_S=((_A=function e(t,n,i){A(this,e),this.z=i,t.detach(),this.el=n.nativeElement}).\u0275fac=function(e){return new(e||_A)(rs(Kl),rs(Cl),rs(Ac))},_A.\u0275cmp=ft({type:_A,selectors:[["ion-segment-button"]],inputs:{disabled:"disabled",layout:"layout",mode:"mode",type:"type",value:"value"},ngContentSelectors:Gx,decls:1,vars:0,template:function(e,t){1&e&&(As(),Cs(0))},encapsulation:2,changeDetection:0}),_A=vx([dA({inputs:["disabled","layout","mode","type","value"]})],_A)),kS=((wA=function e(t,n,i){A(this,e),this.z=i,t.detach(),this.el=n.nativeElement,cA(this,this.el,["ionChange","ionCancel","ionFocus","ionBlur"])}).\u0275fac=function(e){return new(e||wA)(rs(Kl),rs(Cl),rs(Ac))},wA.\u0275cmp=ft({type:wA,selectors:[["ion-select"]],inputs:{cancelText:"cancelText",compareWith:"compareWith",disabled:"disabled",interface:"interface",interfaceOptions:"interfaceOptions",mode:"mode",multiple:"multiple",name:"name",okText:"okText",placeholder:"placeholder",selectedText:"selectedText",value:"value"},ngContentSelectors:Gx,decls:1,vars:0,template:function(e,t){1&e&&(As(),Cs(0))},encapsulation:2,changeDetection:0}),wA=vx([dA({inputs:["cancelText","compareWith","disabled","interface","interfaceOptions","mode","multiple","name","okText","placeholder","selectedText","value"],methods:["open"]})],wA)),xS=((bA=function e(t,n,i){A(this,e),this.z=i,t.detach(),this.el=n.nativeElement}).\u0275fac=function(e){return new(e||bA)(rs(Kl),rs(Cl),rs(Ac))},bA.\u0275cmp=ft({type:bA,selectors:[["ion-select-option"]],inputs:{disabled:"disabled",value:"value"},ngContentSelectors:Gx,decls:1,vars:0,template:function(e,t){1&e&&(As(),Cs(0))},encapsulation:2,changeDetection:0}),bA=vx([dA({inputs:["disabled","value"]})],bA)),AS=((yA=function e(t,n,i){A(this,e),this.z=i,t.detach(),this.el=n.nativeElement}).\u0275fac=function(e){return new(e||yA)(rs(Kl),rs(Cl),rs(Ac))},yA.\u0275cmp=ft({type:yA,selectors:[["ion-slide"]],ngContentSelectors:Gx,decls:1,vars:0,template:function(e,t){1&e&&(As(),Cs(0))},encapsulation:2,changeDetection:0}),yA),CS=((mA=function e(t,n,i){A(this,e),this.z=i,t.detach(),this.el=n.nativeElement,cA(this,this.el,["ionSlidesDidLoad","ionSlideTap","ionSlideDoubleTap","ionSlideWillChange","ionSlideDidChange","ionSlideNextStart","ionSlidePrevStart","ionSlideNextEnd","ionSlidePrevEnd","ionSlideTransitionStart","ionSlideTransitionEnd","ionSlideDrag","ionSlideReachStart","ionSlideReachEnd","ionSlideTouchStart","ionSlideTouchEnd"])}).\u0275fac=function(e){return new(e||mA)(rs(Kl),rs(Cl),rs(Ac))},mA.\u0275cmp=ft({type:mA,selectors:[["ion-slides"]],inputs:{mode:"mode",options:"options",pager:"pager",scrollbar:"scrollbar"},ngContentSelectors:Gx,decls:1,vars:0,template:function(e,t){1&e&&(As(),Cs(0))},encapsulation:2,changeDetection:0}),mA=vx([dA({inputs:["mode","options","pager","scrollbar"],methods:["update","updateAutoHeight","slideTo","slideNext","slidePrev","getActiveIndex","getPreviousIndex","length","isEnd","isBeginning","startAutoplay","stopAutoplay","lockSwipeToNext","lockSwipeToPrev","lockSwipes","getSwiper"]})],mA)),SS=((vA=function e(t,n,i){A(this,e),this.z=i,t.detach(),this.el=n.nativeElement,cA(this,this.el,["ionSplitPaneVisible"])}).\u0275fac=function(e){return new(e||vA)(rs(Kl),rs(Cl),rs(Ac))},vA.\u0275cmp=ft({type:vA,selectors:[["ion-split-pane"]],inputs:{contentId:"contentId",disabled:"disabled",when:"when"},ngContentSelectors:Gx,decls:1,vars:0,template:function(e,t){1&e&&(As(),Cs(0))},encapsulation:2,changeDetection:0}),vA=vx([dA({inputs:["contentId","disabled","when"]})],vA)),PS=((gA=function e(t,n,i){A(this,e),this.z=i,t.detach(),this.el=n.nativeElement}).\u0275fac=function(e){return new(e||gA)(rs(Kl),rs(Cl),rs(Ac))},gA.\u0275cmp=ft({type:gA,selectors:[["ion-title"]],inputs:{color:"color",size:"size"},ngContentSelectors:Gx,decls:1,vars:0,template:function(e,t){1&e&&(As(),Cs(0))},encapsulation:2,changeDetection:0}),gA=vx([dA({inputs:["color","size"]})],gA)),ES=((pA=function e(t,n,i){A(this,e),this.z=i,t.detach(),this.el=n.nativeElement,cA(this,this.el,["ionChange","ionFocus","ionBlur"])}).\u0275fac=function(e){return new(e||pA)(rs(Kl),rs(Cl),rs(Ac))},pA.\u0275cmp=ft({type:pA,selectors:[["ion-toggle"]],inputs:{checked:"checked",color:"color",disabled:"disabled",mode:"mode",name:"name",value:"value"},ngContentSelectors:Gx,decls:1,vars:0,template:function(e,t){1&e&&(As(),Cs(0))},encapsulation:2,changeDetection:0}),pA=vx([dA({inputs:["checked","color","disabled","mode","name","value"]})],pA)),DS=((fA=function e(t,n,i){A(this,e),this.z=i,t.detach(),this.el=n.nativeElement}).\u0275fac=function(e){return new(e||fA)(rs(Kl),rs(Cl),rs(Ac))},fA.\u0275cmp=ft({type:fA,selectors:[["ion-toolbar"]],inputs:{color:"color",mode:"mode"},ngContentSelectors:Gx,decls:1,vars:0,template:function(e,t){1&e&&(As(),Cs(0))},encapsulation:2,changeDetection:0}),fA=vx([dA({inputs:["color","mode"]})],fA)),OS=((hA=function(){function e(){A(this,e)}return m(e,[{key:"get",value:function(e,t){var n=TS();return n?n.get(e,t):null}},{key:"getBoolean",value:function(e,t){var n=TS();return!!n&&n.getBoolean(e,t)}},{key:"getNumber",value:function(e,t){var n=TS();return n?n.getNumber(e,t):0}},{key:"set",value:function(e,t){console.warn("[DEPRECATION][Config]: The Config.set() method is deprecated and will be removed in Ionic Framework 6.0. Please see https://ionicframework.com/docs/angular/config for alternatives.");var n=TS();n&&n.set(e,t)}}]),e}()).\u0275fac=function(e){return new(e||hA)},hA.\u0275prov=Re({token:hA,factory:function(e){return hA.\u0275fac(e)},providedIn:"root"}),hA.ngInjectableDef=Re({factory:function(){return new hA},token:hA,providedIn:"root"}),hA),MS=new mi("USERCONFIG"),TS=function(){if("undefined"!=typeof window){var e=window.Ionic;if(e&&e.config)return e.config}return null},IS=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};A(this,e),this.data=t}return m(e,[{key:"get",value:function(e){return this.data[e]}}]),e}(),RS=((fC=function(){function e(t,n){A(this,e),this.zone=t,this.appRef=n}return m(e,[{key:"create",value:function(e,t,n){return new LS(e,t,n,this.appRef,this.zone)}}]),e}()).\u0275fac=function(e){return new(e||fC)(Ri(Ac),Ri(Gc))},fC.\u0275prov=Re({token:fC,factory:function(e){return fC.\u0275fac(e)}}),fC),LS=function(){function e(t,n,i,r,o){A(this,e),this.resolver=t,this.injector=n,this.location=i,this.appRef=r,this.zone=o,this.elRefMap=new WeakMap,this.elEventsMap=new WeakMap}return m(e,[{key:"attachViewToDom",value:function(e,t,n,i){var r=this;return this.zone.run(function(){return new Promise(function(o){o(FS(r.zone,r.resolver,r.injector,r.location,r.appRef,r.elRefMap,r.elEventsMap,e,t,n,i))})})}},{key:"removeViewFromDom",value:function(e,t){var n=this;return this.zone.run(function(){return new Promise(function(e){var i=n.elRefMap.get(t);if(i){i.destroy(),n.elRefMap.delete(t);var r=n.elEventsMap.get(t);r&&(r(),n.elEventsMap.delete(t))}e()})})}}]),e}(),FS=function(e,t,n,i,r,o,a,s,l,u,c){var d=t.resolveComponentFactory(l),f=Fa.create({providers:NS(u),parent:n}),p=i?i.createComponent(d,i.length,f):d.create(f),g=p.instance,v=p.location.nativeElement;if(u&&Object.assign(g,u),c){var m,y=h(c);try{for(y.s();!(m=y.n()).done;){var b=m.value;v.classList.add(b)}}catch(_){y.e(_)}finally{y.f()}}var w=VS(e,g,v);return s.appendChild(v),i||r.attachView(p.hostView),p.changeDetectorRef.reattach(),o.set(v,p),a.set(v,w),v},BS=[kx.a,kx.b,kx.c,kx.d,kx.e],VS=function(e,t,n){return e.run(function(){var e=BS.filter(function(e){return"function"==typeof t[e]}).map(function(e){var i=function(n){return t[e](n.detail)};return n.addEventListener(e,i),function(){return n.removeEventListener(e,i)}});return function(){return e.forEach(function(e){return e()})}})},zS=new mi("NavParamsToken"),NS=function(e){return[{provide:zS,useValue:e},{provide:IS,useFactory:HS,deps:[zS]}]},HS=function(e){return new IS(e)},jS=function(e,t){return(e=e.filter(function(e){return e.stackId!==t.stackId})).push(t),e},US=function(e,t){var n=e.createUrlTree(["."],{relativeTo:t});return e.serializeUrl(n)},WS=function(e,t){if(e)for(var n=GS(t),i=0;i<n.length;i++){if(i>=e.length)return n[i];if(n[i]!==e[i])return}},GS=function(e){return e.split("/").map(function(e){return e.trim()}).filter(function(e){return""!==e})},qS=function(e){e&&(e.ref.destroy(),e.unlistenEvents())},YS=function(){function e(t,n,i,r,o,a){A(this,e),this.containerEl=n,this.router=i,this.navCtrl=r,this.zone=o,this.location=a,this.views=[],this.skipTransition=!1,this.nextId=0,this.tabsPrefix=void 0!==t?GS(t):void 0}return m(e,[{key:"createView",value:function(e,t){var n=US(this.router,t),i=e&&e.location&&e.location.nativeElement,r=VS(this.zone,e.instance,i);return{id:this.nextId++,stackId:WS(this.tabsPrefix,n),unlistenEvents:r,element:i,ref:e,url:n}}},{key:"getExistingView",value:function(e){var t=US(this.router,e),n=this.views.find(function(e){return e.url===t});return n&&n.ref.changeDetectorRef.reattach(),n}},{key:"setActive",value:function(e){var t=this,n=this.navCtrl.consumeTransition(),i=n.direction,r=n.animation,o=n.animationBuilder,a=this.activeView,s=function(e,t){return!t||e.stackId!==t.stackId}(e,a);s&&(i="back",r=void 0);var l,u=this.views.slice(),c=this.router;c.getCurrentNavigation?l=c.getCurrentNavigation():c.navigations&&c.navigations.value&&(l=c.navigations.value),l&&l.extras&&l.extras.replaceUrl&&this.views.length>0&&this.views.splice(-1,1);var d=this.views.includes(e),h=this.insertView(e,i);d||e.ref.changeDetectorRef.detectChanges();var f=e.animationBuilder;return void 0!==o||"back"!==i||s||void 0===f||(o=f),a&&(a.animationBuilder=o),this.zone.runOutsideAngular(function(){return t.wait(function(){return a&&a.ref.changeDetectorRef.detach(),e.ref.changeDetectorRef.reattach(),t.transition(e,a,r,t.canGoBack(1),!1,o).then(function(){return ZS(e,h,u,t.location)}).then(function(){return{enteringView:e,direction:i,animation:r,tabSwitch:s}})})})}},{key:"canGoBack",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getActiveStackId();return this.getStack(t).length>e}},{key:"pop",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getActiveStackId();return this.zone.run(function(){var i=t.getStack(n);if(i.length<=e)return Promise.resolve(!1);var r=i[i.length-e-1],o=r.url,a=r.savedData;if(a){var s=a.get("primary");s&&s.route&&s.route._routerState&&s.route._routerState.snapshot&&s.route._routerState.snapshot.url&&(o=s.route._routerState.snapshot.url)}var l=t.navCtrl.consumeTransition().animationBuilder;return t.navCtrl.navigateBack(o,Object.assign({},r.savedExtras,{animation:l})).then(function(){return!0})})}},{key:"startBackTransition",value:function(){var e=this,t=this.activeView;if(t){var n=this.getStack(t.stackId),i=n[n.length-2],r=i.animationBuilder;return this.wait(function(){return e.transition(i,t,"back",e.canGoBack(2),!0,r)})}return Promise.resolve()}},{key:"endBackTransition",value:function(e){e?(this.skipTransition=!0,this.pop(1)):this.activeView&&QS(this.activeView,this.views,this.views,this.location)}},{key:"getLastUrl",value:function(e){var t=this.getStack(e);return t.length>0?t[t.length-1]:void 0}},{key:"getRootUrl",value:function(e){var t=this.getStack(e);return t.length>0?t[0]:void 0}},{key:"getActiveStackId",value:function(){return this.activeView?this.activeView.stackId:void 0}},{key:"destroy",value:function(){this.containerEl=void 0,this.views.forEach(qS),this.activeView=void 0,this.views=[]}},{key:"getStack",value:function(e){return this.views.filter(function(t){return t.stackId===e})}},{key:"insertView",value:function(e,t){return this.activeView=e,this.views=function(e,t,n){return"root"===n?jS(e,t):"forward"===n?function(e,t){return e.indexOf(t)>=0?e=e.filter(function(e){return e.stackId!==t.stackId||e.id<=t.id}):e.push(t),e}(e,t):function(e,t){return e.indexOf(t)>=0?e.filter(function(e){return e.stackId!==t.stackId||e.id<=t.id}):jS(e,t)}(e,t)}(this.views,e,t),this.views.slice()}},{key:"transition",value:function(e,t,n,i,r,o){if(this.skipTransition)return this.skipTransition=!1,Promise.resolve(!1);if(t===e)return Promise.resolve(!1);var a=e?e.element:void 0,s=t?t.element:void 0,l=this.containerEl;return a&&a!==s&&(a.classList.add("ion-page"),a.classList.add("ion-page-invisible"),a.parentElement!==l&&l.appendChild(a),l.commit)?l.commit(a,s,{deepWait:!0,duration:void 0===n?0:void 0,direction:n,showGoBack:i,progressAnimation:r,animationBuilder:o}):Promise.resolve(!1)}},{key:"wait",value:function(e){return bx(this,void 0,void 0,regeneratorRuntime.mark(function t(){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(t.t0=void 0!==this.runningTask,!t.t0){t.next=5;break}return t.next=4,this.runningTask;case 4:this.runningTask=void 0;case 5:return t.abrupt("return",this.runningTask=e());case 6:case"end":return t.stop()}},t,this)}))}}]),e}(),ZS=function(e,t,n,i){return"function"==typeof requestAnimationFrame?new Promise(function(r){requestAnimationFrame(function(){QS(e,t,n,i),r()})}):Promise.resolve()},QS=function(e,t,n,i){n.filter(function(e){return!t.includes(e)}).forEach(qS),t.forEach(function(t){var n=i.path().split("?")[0].split("#")[0];if(t!==e&&t.url!==n){var r=t.element;r.setAttribute("aria-hidden","true"),r.classList.add("ion-page-hidden"),t.ref.changeDetectorRef.detach()}})},XS=((pC=function(){function e(t,n,i,r,o,a,s,l,u,c,d,h,f){A(this,e),this.parentContexts=t,this.location=n,this.resolver=i,this.config=a,this.navCtrl=s,this.parentOutlet=f,this.activated=null,this.activatedView=null,this._activatedRoute=null,this.proxyMap=new WeakMap,this.currentActivatedRoute$=new Ab(null),this.stackEvents=new Fu,this.activateEvents=new Fu,this.deactivateEvents=new Fu,this.nativeEl=u.nativeElement,this.name=r||"primary",this.tabsPrefix="true"===o?US(c,h):void 0,this.stackCtrl=new YS(this.tabsPrefix,this.nativeEl,c,s,d,l),t.onChildOutletCreated(this.name,this)}return m(e,[{key:"animation",set:function(e){this.nativeEl.animation=e}},{key:"animated",set:function(e){this.nativeEl.animated=e}},{key:"swipeGesture",set:function(e){var t=this;this._swipeGesture=e,this.nativeEl.swipeHandler=e?{canStart:function(){return t.stackCtrl.canGoBack(1)},onStart:function(){return t.stackCtrl.startBackTransition()},onEnd:function(e){return t.stackCtrl.endBackTransition(e)}}:void 0}},{key:"ngOnDestroy",value:function(){this.stackCtrl.destroy()}},{key:"getContext",value:function(){return this.parentContexts.getContext(this.name)}},{key:"ngOnInit",value:function(){var e=this;if(!this.activated){var t=this.getContext();t&&t.route&&this.activateWith(t.route,t.resolver||null)}new Promise(function(t){return Object(_x.c)(e.nativeEl,t)}).then(function(){void 0===e._swipeGesture&&(e.swipeGesture=e.config.getBoolean("swipeBackEnabled","ios"===e.nativeEl.mode))})}},{key:"isActivated",get:function(){return!!this.activated}},{key:"component",get:function(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}},{key:"activatedRoute",get:function(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}},{key:"activatedRouteData",get:function(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}},{key:"detach",value:function(){throw new Error("incompatible reuse strategy")}},{key:"attach",value:function(e,t){throw new Error("incompatible reuse strategy")}},{key:"deactivate",value:function(){if(this.activated){if(this.activatedView){this.activatedView.savedData=new Map(this.getContext().children.contexts),this.activatedView.savedExtras={};var e=this.getContext();if(e.route){var t=e.route.snapshot;this.activatedView.savedExtras.queryParams=t.queryParams,this.activatedView.savedExtras.fragment=t.fragment}}var n=this.component;this.activatedView=null,this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(n)}}},{key:"activateWith",value:function(e,t){var n,i=this;if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=e;var r=this.stackCtrl.getExistingView(e);if(r){n=this.activated=r.ref;var o=r.savedData;o&&(this.getContext().children.contexts=o),this.updateActivatedRouteProxy(n.instance,e)}else{var a=(t=t||this.resolver).resolveComponentFactory(e._futureSnapshot.routeConfig.component),s=this.parentContexts.getOrCreateContext(this.name).children,l=new Ab(null),u=this.createActivatedRouteProxy(l,e),c=new KS(u,s,this.location.injector);n=this.activated=this.location.createComponent(a,this.location.length,c),l.next(n.instance),r=this.stackCtrl.createView(this.activated,e),this.proxyMap.set(n.instance,u),this.currentActivatedRoute$.next({component:n.instance,activatedRoute:e})}this.activatedView=r,this.stackCtrl.setActive(r).then(function(e){i.navCtrl.setTopOutlet(i),i.activateEvents.emit(n.instance),i.stackEvents.emit(e)})}},{key:"canGoBack",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1?arguments[1]:void 0;return this.stackCtrl.canGoBack(e,t)}},{key:"pop",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1?arguments[1]:void 0;return this.stackCtrl.pop(e,t)}},{key:"getLastUrl",value:function(e){var t=this.stackCtrl.getLastUrl(e);return t?t.url:void 0}},{key:"getLastRouteView",value:function(e){return this.stackCtrl.getLastUrl(e)}},{key:"getRootView",value:function(e){return this.stackCtrl.getRootUrl(e)}},{key:"getActiveStackId",value:function(){return this.stackCtrl.getActiveStackId()}},{key:"createActivatedRouteProxy",value:function(e,t){var n=new b_;return n._futureSnapshot=t._futureSnapshot,n._routerState=t._routerState,n.snapshot=t.snapshot,n.outlet=t.outlet,n.component=t.component,n._paramMap=this.proxyObservable(e,"paramMap"),n._queryParamMap=this.proxyObservable(e,"queryParamMap"),n.url=this.proxyObservable(e,"url"),n.params=this.proxyObservable(e,"params"),n.queryParams=this.proxyObservable(e,"queryParams"),n.fragment=this.proxyObservable(e,"fragment"),n.data=this.proxyObservable(e,"data"),n}},{key:"proxyObservable",value:function(e,t){var n=this;return e.pipe(Ry(function(e){return!!e}),Bb(function(e){return n.currentActivatedRoute$.pipe(Ry(function(t){return null!==t&&t.component===e}),Bb(function(e){return e&&e.activatedRoute[t]}),Ex())}))}},{key:"updateActivatedRouteProxy",value:function(e,t){var n=this.proxyMap.get(e);if(!n)throw new Error("Could not find activated route proxy for view");n._futureSnapshot=t._futureSnapshot,n._routerState=t._routerState,n.snapshot=t.snapshot,n.outlet=t.outlet,n.component=t.component,this.currentActivatedRoute$.next({component:e,activatedRoute:t})}}]),e}()).\u0275fac=function(e){return new(e||pC)(rs(Rk),rs(uu),rs(_l),pi("name"),pi("tabs"),rs(OS),rs(aA),rs(Cd),rs(Cl),rs(jk),rs(Ac),rs(b_),rs(pC,12))},pC.\u0275dir=bt({type:pC,selectors:[["ion-router-outlet"]],inputs:{animated:"animated",animation:"animation",swipeGesture:"swipeGesture"},outputs:{stackEvents:"stackEvents",activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),pC=vx([mx(3,vi("name")),mx(4,Hi()),mx(4,vi("tabs")),mx(12,ji()),mx(12,Hi())],pC)),KS=function(){function e(t,n,i){A(this,e),this.route=t,this.childContexts=n,this.parent=i}return m(e,[{key:"get",value:function(e,t){return e===b_?this.route:e===Rk?this.childContexts:this.parent.get(e,t)}}]),e}(),JS=((wC=function(){function e(t,n,i){A(this,e),this.routerOutlet=t,this.navCtrl=n,this.config=i}return m(e,[{key:"onClick",value:function(e){var t=this.defaultHref||this.config.get("backButtonDefaultHref");this.routerOutlet&&this.routerOutlet.canGoBack()?(this.navCtrl.setDirection("back",void 0,void 0,this.routerAnimation),this.routerOutlet.pop(),e.preventDefault()):null!=t&&(this.navCtrl.navigateBack(t,{animation:this.routerAnimation}),e.preventDefault())}}]),e}()).\u0275fac=function(e){return new(e||wC)(rs(XS,8),rs(aA),rs(OS))},wC.\u0275dir=bt({type:wC,selectors:[["ion-back-button"]],hostBindings:function(e,t){1&e&&ms("click",function(e){return t.onClick(e)})},inputs:{defaultHref:"defaultHref",routerAnimation:"routerAnimation"}}),wC=vx([mx(0,Hi())],wC)),$S=((bC=function(){function e(t,n,i,r,o){A(this,e),this.locationStrategy=t,this.navCtrl=n,this.elementRef=i,this.router=r,this.routerLink=o,this.routerDirection="forward"}return m(e,[{key:"ngOnInit",value:function(){this.updateTargetUrlAndHref()}},{key:"ngOnChanges",value:function(){this.updateTargetUrlAndHref()}},{key:"ngOnDestroy",value:function(){this.subscription&&this.subscription.unsubscribe()}},{key:"updateTargetUrlAndHref",value:function(){if(this.routerLink){var e=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.routerLink.urlTree));this.elementRef.nativeElement.href=e}}},{key:"onClick",value:function(e){this.navCtrl.setDirection(this.routerDirection,void 0,void 0,this.routerAnimation),e.preventDefault()}}]),e}()).\u0275fac=function(e){return new(e||bC)(rs(md),rs(aA),rs(Cl),rs(jk),rs(Uk,8))},bC.\u0275dir=bt({type:bC,selectors:[["","routerLink",""]],hostBindings:function(e,t){1&e&&ms("click",function(e){return t.onClick(e)})},inputs:{routerDirection:"routerDirection",routerAnimation:"routerAnimation"},features:[Mt]}),bC=vx([mx(4,Hi())],bC)),eP=((yC=function e(t){A(this,e),this.templateRef=t}).\u0275fac=function(e){return new(e||yC)(rs(iu))},yC.\u0275dir=bt({type:yC,selectors:[["","virtualFooter",""]]}),yC),tP=((mC=function e(t){A(this,e),this.templateRef=t}).\u0275fac=function(e){return new(e||mC)(rs(iu))},mC.\u0275dir=bt({type:mC,selectors:[["","virtualHeader",""]]}),mC),nP=((vC=function e(t,n){A(this,e),this.templateRef=t,this.viewContainer=n}).\u0275fac=function(e){return new(e||vC)(rs(iu),rs(uu))},vC.\u0275dir=bt({type:vC,selectors:[["","virtualItem",""]]}),vC),iP=((gC=function(){function e(t,n,i){A(this,e),this.z=t,this.iterableDiffers=n,this.refMap=new WeakMap,this.el=i.nativeElement,this.el.nodeRender=this.nodeRender.bind(this)}return m(e,[{key:"ngOnChanges",value:function(e){if(this.trackBy&&"items"in e){var t=e.items.currentValue;if(void 0===this.differ&&null!=t)try{this.differ=this.iterableDiffers.find(t).create(this.trackBy)}catch(n){throw new Error("Cannot find a differ supporting object '".concat(t,"'. VirtualScroll only supports binding to Iterables such as Arrays."))}}}},{key:"ngDoCheck",value:function(){null!==(void 0!==this.differ&&this.items?this.differ.diff(this.items):null)&&this.checkRange(0)}},{key:"nodeRender",value:function(e,t,n){var i=this;return this.z.run(function(){var r;if(e){var o=(r=i.refMap.get(e)).context;o.$implicit=t.value,o.index=t.index}else r=i.itmTmp.viewContainer.createEmbeddedView(i.getComponent(t.type),{$implicit:t.value,index:n},n),e=rP(r),i.refMap.set(e,r);return r.detectChanges(),e})}},{key:"getComponent",value:function(e){switch(e){case"item":return this.itmTmp.templateRef;case"header":return this.hdrTmp.templateRef;case"footer":return this.ftrTmp.templateRef}throw new Error("template for virtual item was not provided")}}]),e}()).\u0275fac=function(e){return new(e||gC)(rs(Ac),rs(Wl),rs(Cl))},gC.\u0275cmp=ft({type:gC,selectors:[["ion-virtual-scroll"]],contentQueries:function(e,t,n){var i;1&e&&(Xu(n,nP,1),Xu(n,tP,1),Xu(n,eP,1)),2&e&&(Zu(i=Ku())&&(t.itmTmp=i.first),Zu(i=Ku())&&(t.hdrTmp=i.first),Zu(i=Ku())&&(t.ftrTmp=i.first))},inputs:{approxItemHeight:"approxItemHeight",approxHeaderHeight:"approxHeaderHeight",approxFooterHeight:"approxFooterHeight",headerFn:"headerFn",footerFn:"footerFn",items:"items",itemHeight:"itemHeight",headerHeight:"headerHeight",footerHeight:"footerHeight",trackBy:"trackBy"},features:[Mt],ngContentSelectors:Gx,decls:1,vars:0,template:function(e,t){1&e&&(As(),Cs(0))},encapsulation:2,changeDetection:0}),gC=vx([dA({inputs:["approxItemHeight","approxHeaderHeight","approxFooterHeight","headerFn","footerFn","items","itemHeight","headerHeight","footerHeight"],methods:["checkEnd","checkRange","positionForItem"]})],gC)),rP=function(e){for(var t=e.rootNodes,n=0;n<t.length;n++)if(1===t[n].nodeType)return t[n];throw new Error("virtual element was not created")},oP=function(){function e(t){A(this,e),this.ctrl=t}return m(e,[{key:"create",value:function(e){return this.ctrl.create(e||{})}},{key:"dismiss",value:function(e,t,n){return this.ctrl.dismiss(e,t,n)}},{key:"getTop",value:function(){return this.ctrl.getTop()}}]),e}(),aP=((PC=function(e){r(n,e);var t=a(n);function n(){return A(this,n),t.call(this,Ax.c)}return n}(oP)).\u0275fac=function(e){return new(e||PC)},PC.\u0275prov=Re({token:PC,factory:function(e){return PC.\u0275fac(e)},providedIn:"root"}),PC.ngInjectableDef=Re({factory:function(){return new PC},token:PC,providedIn:"root"}),PC),sP=((SC=function(e){r(n,e);var t=a(n);function n(){return A(this,n),t.call(this,Ax.b)}return n}(oP)).\u0275fac=function(e){return new(e||SC)},SC.\u0275prov=Re({token:SC,factory:function(e){return SC.\u0275fac(e)},providedIn:"root"}),SC.ngInjectableDef=Re({factory:function(){return new SC},token:SC,providedIn:"root"}),SC),lP=((CC=function(e){r(n,e);var t=a(n);function n(){return A(this,n),t.call(this,Ax.k)}return n}(oP)).\u0275fac=function(e){return new(e||CC)},CC.\u0275prov=Re({token:CC,factory:function(e){return CC.\u0275fac(e)},providedIn:"root"}),CC.ngInjectableDef=Re({factory:function(){return new CC},token:CC,providedIn:"root"}),CC),uP=((AC=function(){function e(){A(this,e)}return m(e,[{key:"open",value:function(e){return xx.a.open(e)}},{key:"close",value:function(e){return xx.a.close(e)}},{key:"toggle",value:function(e){return xx.a.toggle(e)}},{key:"enable",value:function(e,t){return xx.a.enable(e,t)}},{key:"swipeGesture",value:function(e,t){return xx.a.swipeGesture(e,t)}},{key:"isOpen",value:function(e){return xx.a.isOpen(e)}},{key:"isEnabled",value:function(e){return xx.a.isEnabled(e)}},{key:"get",value:function(e){return xx.a.get(e)}},{key:"getOpen",value:function(){return xx.a.getOpen()}},{key:"getMenus",value:function(){return xx.a.getMenus()}}]),e}()).\u0275fac=function(e){return new(e||AC)},AC.\u0275prov=Re({token:AC,factory:function(e){return AC.\u0275fac(e)},providedIn:"root"}),AC.ngInjectableDef=Re({factory:function(){return new AC},token:AC,providedIn:"root"}),AC),cP=((xC=function(e){r(n,e);var t=a(n);function n(e,i,r){var o;return A(this,n),(o=t.call(this,Ax.l)).angularDelegate=e,o.resolver=i,o.injector=r,o}return m(n,[{key:"create",value:function(e){return i(c(n.prototype),"create",this).call(this,Object.assign({},e,{delegate:this.angularDelegate.create(this.resolver,this.injector)}))}}]),n}(oP)).\u0275fac=function(e){return new(e||xC)(Ri(RS),Ri(_l),Ri(Fa))},xC.\u0275prov=Re({token:xC,factory:function(e){return xC.\u0275fac(e)}}),xC),dP=((kC=function(e){r(n,e);var t=a(n);function n(e,i,r){var o;return A(this,n),(o=t.call(this,Ax.d)).angularDelegate=e,o.resolver=i,o.injector=r,o}return m(n,[{key:"create",value:function(e){return i(c(n.prototype),"create",this).call(this,Object.assign({},e,{delegate:this.angularDelegate.create(this.resolver,this.injector)}))}}]),n}(oP)).\u0275fac=function(e){return new(e||kC)(Ri(RS),Ri(_l),Ri(Fa))},kC.\u0275prov=Re({token:kC,factory:function(e){return kC.\u0275fac(e)}}),kC),hP=((_C=function(e){r(n,e);var t=a(n);function n(){return A(this,n),t.call(this,Ax.o)}return n}(oP)).\u0275fac=function(e){return new(e||_C)},_C.\u0275prov=Re({token:_C,factory:function(e){return _C.\u0275fac(e)},providedIn:"root"}),_C.ngInjectableDef=Re({factory:function(){return new _C},token:_C,providedIn:"root"}),_C),fP=function(){function e(){A(this,e)}return m(e,[{key:"shouldDetach",value:function(e){return!1}},{key:"shouldAttach",value:function(e){return!1}},{key:"store",value:function(e,t){}},{key:"retrieve",value:function(e){return null}},{key:"shouldReuseRoute",value:function(e,t){if(e.routeConfig!==t.routeConfig)return!1;var n=e.params,i=t.params,r=Object.keys(n),o=Object.keys(i);if(r.length!==o.length)return!1;for(var a=0,s=r;a<s.length;a++){var l=s[a];if(i[l]!==n[l])return!1}return!0}}]),e}(),pP=!1,gP=function(e,t,n){return function(){var i=t.defaultView;if(i&&"undefined"!=typeof window){pP&&console.warn("Ionic Angular was already initialized. Make sure IonicModule.forRoot() is just called once."),pP=!0,(i.Ionic=i.Ionic||{}).config=Object.assign({},e,{_zoneGate:function(e){return n.run(e)}});var r="__zone_symbol__addEventListener"in t.body?"__zone_symbol__addEventListener":"addEventListener";return function(){var e=[];if("undefined"!=typeof window){var t=window;t.customElements&&(!t.Element||t.Element.prototype.closest&&t.Element.prototype.matches&&t.Element.prototype.remove&&t.Element.prototype.getRootNode)||e.push(u.e(7).then(u.t.bind(null,"QdDj",7))),"function"==typeof Object.assign&&Object.entries&&Array.prototype.find&&Array.prototype.includes&&String.prototype.startsWith&&String.prototype.endsWith&&(!t.NodeList||t.NodeList.prototype.forEach)&&t.fetch&&function(){try{var e=new URL("b","http://a");return e.pathname="c%20d","http://a/c%20d"===e.href&&e.searchParams}catch(t){return!1}}()&&"undefined"!=typeof WeakMap||e.push(u.e(5).then(u.t.bind(null,"t6o4",7)))}return Promise.all(e)}().then(function(){return e={exclude:["ion-tabs","ion-tab"],syncQueue:!0,raf:qx,jmp:function(e){return n.runOutsideAngular(e)},ael:function(e,t,n,i){e[r](t,n,i)},rel:function(e,t,n,i){e.removeEventListener(t,n,i)}},"undefined"==typeof window?Promise.resolve():(Cx.b&&Cx.b.supports&&Cx.b.supports("color","var(--c)")?Object(Cx.d)():u.e(6).then(u.t.bind(null,"9qUq",7)).then(function(){return(Cx.n.$cssShim$=Cx.q.__cssshim)?Cx.n.$cssShim$.i():0})).then(function(){return Wx(),Object(Cx.e)(JSON.parse('[["ion-select_3",[[2,"ion-select-popover",{"header":[1],"subHeader":[1,"sub-header"],"message":[1],"options":[16]},[[0,"ionChange","onSelect"]]],[33,"ion-select",{"disabled":[4],"cancelText":[1,"cancel-text"],"okText":[1,"ok-text"],"placeholder":[1],"name":[1],"selectedText":[1,"selected-text"],"multiple":[4],"interface":[1],"interfaceOptions":[8,"interface-options"],"compareWith":[1,"compare-with"],"value":[1032],"isExpanded":[32],"open":[64]}],[1,"ion-select-option",{"disabled":[4],"value":[8]}]]],["ion-menu_3",[[33,"ion-menu-button",{"color":[1],"disabled":[4],"menu":[1],"autoHide":[4,"auto-hide"],"type":[1],"visible":[32]},[[16,"ionMenuChange","visibilityChanged"],[16,"ionSplitPaneVisible","visibilityChanged"]]],[33,"ion-menu",{"contentId":[513,"content-id"],"menuId":[513,"menu-id"],"type":[1025],"disabled":[1028],"side":[513],"swipeGesture":[4,"swipe-gesture"],"maxEdgeStart":[2,"max-edge-start"],"isPaneVisible":[32],"isEndSide":[32],"isOpen":[64],"isActive":[64],"open":[64],"close":[64],"toggle":[64],"setOpen":[64]},[[16,"ionSplitPaneVisible","onSplitPaneChanged"],[2,"click","onBackdropClick"]]],[1,"ion-menu-toggle",{"menu":[1],"autoHide":[4,"auto-hide"],"visible":[32]},[[16,"ionMenuChange","visibilityChanged"],[16,"ionSplitPaneVisible","visibilityChanged"]]]]],["ion-action-sheet",[[34,"ion-action-sheet",{"overlayIndex":[2,"overlay-index"],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"buttons":[16],"cssClass":[1,"css-class"],"backdropDismiss":[4,"backdrop-dismiss"],"header":[1],"subHeader":[1,"sub-header"],"translucent":[4],"animated":[4],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]}]]],["ion-fab_3",[[33,"ion-fab-button",{"color":[1],"activated":[4],"disabled":[4],"download":[1],"href":[1],"rel":[1],"routerDirection":[1,"router-direction"],"routerAnimation":[16],"target":[1],"show":[4],"translucent":[4],"type":[1],"size":[1],"closeIcon":[1,"close-icon"]}],[1,"ion-fab",{"horizontal":[1],"vertical":[1],"edge":[4],"activated":[1028],"close":[64]}],[1,"ion-fab-list",{"activated":[4],"side":[1]}]]],["ion-refresher_2",[[0,"ion-refresher-content",{"pullingIcon":[1025,"pulling-icon"],"pullingText":[1,"pulling-text"],"refreshingSpinner":[1025,"refreshing-spinner"],"refreshingText":[1,"refreshing-text"]}],[32,"ion-refresher",{"pullMin":[2,"pull-min"],"pullMax":[2,"pull-max"],"closeDuration":[1,"close-duration"],"snapbackDuration":[1,"snapback-duration"],"pullFactor":[2,"pull-factor"],"disabled":[4],"nativeRefresher":[32],"state":[32],"complete":[64],"cancel":[64],"getProgress":[64]}]]],["ion-alert",[[34,"ion-alert",{"overlayIndex":[2,"overlay-index"],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"cssClass":[1,"css-class"],"header":[1],"subHeader":[1,"sub-header"],"message":[1],"buttons":[16],"inputs":[1040],"backdropDismiss":[4,"backdrop-dismiss"],"translucent":[4],"animated":[4],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]},[[4,"keydown","onKeydown"]]]]],["ion-back-button",[[33,"ion-back-button",{"color":[1],"defaultHref":[1025,"default-href"],"disabled":[516],"icon":[1],"text":[1],"type":[1],"routerAnimation":[16]}]]],["ion-loading",[[34,"ion-loading",{"overlayIndex":[2,"overlay-index"],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"message":[1],"cssClass":[1,"css-class"],"duration":[2],"backdropDismiss":[4,"backdrop-dismiss"],"showBackdrop":[4,"show-backdrop"],"spinner":[1025],"translucent":[4],"animated":[4],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]}]]],["ion-toast",[[33,"ion-toast",{"overlayIndex":[2,"overlay-index"],"color":[1],"enterAnimation":[16],"leaveAnimation":[16],"cssClass":[1,"css-class"],"duration":[2],"header":[1],"message":[1],"keyboardClose":[4,"keyboard-close"],"position":[1],"buttons":[16],"translucent":[4],"animated":[4],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]}]]],["ion-card_5",[[33,"ion-card",{"color":[1],"button":[4],"type":[1],"disabled":[4],"download":[1],"href":[1],"rel":[1],"routerDirection":[1,"router-direction"],"routerAnimation":[16],"target":[1]}],[32,"ion-card-content"],[33,"ion-card-header",{"color":[1],"translucent":[4]}],[33,"ion-card-subtitle",{"color":[1]}],[33,"ion-card-title",{"color":[1]}]]],["ion-item-option_3",[[33,"ion-item-option",{"color":[1],"disabled":[4],"download":[1],"expandable":[4],"href":[1],"rel":[1],"target":[1],"type":[1]}],[32,"ion-item-options",{"side":[1],"fireSwipeEvent":[64]}],[0,"ion-item-sliding",{"disabled":[4],"state":[32],"getOpenAmount":[64],"getSlidingRatio":[64],"open":[64],"close":[64],"closeOpened":[64]}]]],["ion-infinite-scroll_2",[[32,"ion-infinite-scroll-content",{"loadingSpinner":[1025,"loading-spinner"],"loadingText":[1,"loading-text"]}],[0,"ion-infinite-scroll",{"threshold":[1],"disabled":[4],"position":[1],"isLoading":[32],"complete":[64]}]]],["ion-reorder_2",[[33,"ion-reorder",null,[[2,"click","onClick"]]],[0,"ion-reorder-group",{"disabled":[4],"state":[32],"complete":[64]}]]],["ion-segment_2",[[33,"ion-segment-button",{"disabled":[4],"layout":[1],"type":[1],"value":[1],"checked":[32]}],[33,"ion-segment",{"color":[1],"disabled":[4],"scrollable":[4],"swipeGesture":[4,"swipe-gesture"],"value":[1025],"activated":[32]}]]],["ion-tab-bar_2",[[33,"ion-tab-button",{"disabled":[4],"download":[1],"href":[1],"rel":[1],"layout":[1025],"selected":[1028],"tab":[1],"target":[1]},[[8,"ionTabBarChanged","onTabBarChanged"]]],[33,"ion-tab-bar",{"color":[1],"selectedTab":[1,"selected-tab"],"translucent":[4],"keyboardVisible":[32]}]]],["ion-chip",[[33,"ion-chip",{"color":[1],"outline":[4],"disabled":[4]}]]],["ion-modal",[[34,"ion-modal",{"overlayIndex":[2,"overlay-index"],"delegate":[16],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"component":[1],"componentProps":[16],"cssClass":[1,"css-class"],"backdropDismiss":[4,"backdrop-dismiss"],"showBackdrop":[4,"show-backdrop"],"animated":[4],"swipeToClose":[4,"swipe-to-close"],"presentingElement":[16],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]}]]],["ion-popover",[[34,"ion-popover",{"delegate":[16],"overlayIndex":[2,"overlay-index"],"enterAnimation":[16],"leaveAnimation":[16],"component":[1],"componentProps":[16],"keyboardClose":[4,"keyboard-close"],"cssClass":[1,"css-class"],"backdropDismiss":[4,"backdrop-dismiss"],"event":[8],"showBackdrop":[4,"show-backdrop"],"translucent":[4],"animated":[4],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]}]]],["ion-searchbar",[[34,"ion-searchbar",{"color":[1],"animated":[4],"autocomplete":[1],"autocorrect":[1],"cancelButtonIcon":[1,"cancel-button-icon"],"cancelButtonText":[1,"cancel-button-text"],"clearIcon":[1,"clear-icon"],"debounce":[2],"disabled":[4],"inputmode":[1],"enterkeyhint":[1],"placeholder":[1],"searchIcon":[1,"search-icon"],"showCancelButton":[1,"show-cancel-button"],"showClearButton":[1,"show-clear-button"],"spellcheck":[4],"type":[1],"value":[1025],"focused":[32],"noAnimate":[32],"setFocus":[64],"getInputElement":[64]}]]],["ion-app_8",[[0,"ion-app"],[34,"ion-buttons",{"collapse":[4]}],[1,"ion-content",{"color":[1],"fullscreen":[4],"forceOverscroll":[1028,"force-overscroll"],"scrollX":[4,"scroll-x"],"scrollY":[4,"scroll-y"],"scrollEvents":[4,"scroll-events"],"getScrollElement":[64],"scrollToTop":[64],"scrollToBottom":[64],"scrollByPoint":[64],"scrollToPoint":[64]},[[8,"appload","onAppLoad"],[2,"click","onClick"]]],[36,"ion-footer",{"translucent":[4]}],[36,"ion-header",{"collapse":[1],"translucent":[4]}],[1,"ion-router-outlet",{"mode":[1025],"delegate":[16],"animated":[4],"animation":[16],"swipeHandler":[16],"commit":[64],"setRouteId":[64],"getRouteId":[64]}],[33,"ion-title",{"color":[1],"size":[1]}],[33,"ion-toolbar",{"color":[1]},[[0,"ionStyle","childrenStyle"]]]]],["ion-route_4",[[0,"ion-route",{"url":[1],"component":[1],"componentProps":[16],"beforeLeave":[16],"beforeEnter":[16]}],[0,"ion-route-redirect",{"from":[1],"to":[1]}],[0,"ion-router",{"root":[1],"useHash":[4,"use-hash"],"canTransition":[64],"push":[64],"back":[64],"printDebug":[64],"navChanged":[64]},[[8,"popstate","onPopState"],[4,"ionBackButton","onBackButton"]]],[1,"ion-router-link",{"color":[1],"href":[1],"rel":[1],"routerDirection":[1,"router-direction"],"routerAnimation":[16],"target":[1]}]]],["ion-avatar_3",[[33,"ion-avatar"],[33,"ion-badge",{"color":[1]}],[1,"ion-thumbnail"]]],["ion-col_3",[[1,"ion-col",{"offset":[1],"offsetXs":[1,"offset-xs"],"offsetSm":[1,"offset-sm"],"offsetMd":[1,"offset-md"],"offsetLg":[1,"offset-lg"],"offsetXl":[1,"offset-xl"],"pull":[1],"pullXs":[1,"pull-xs"],"pullSm":[1,"pull-sm"],"pullMd":[1,"pull-md"],"pullLg":[1,"pull-lg"],"pullXl":[1,"pull-xl"],"push":[1],"pushXs":[1,"push-xs"],"pushSm":[1,"push-sm"],"pushMd":[1,"push-md"],"pushLg":[1,"push-lg"],"pushXl":[1,"push-xl"],"size":[1],"sizeXs":[1,"size-xs"],"sizeSm":[1,"size-sm"],"sizeMd":[1,"size-md"],"sizeLg":[1,"size-lg"],"sizeXl":[1,"size-xl"]},[[9,"resize","onResize"]]],[1,"ion-grid",{"fixed":[4]}],[1,"ion-row"]]],["ion-nav_2",[[1,"ion-nav",{"delegate":[16],"swipeGesture":[1028,"swipe-gesture"],"animated":[4],"animation":[16],"rootParams":[16],"root":[1],"push":[64],"insert":[64],"insertPages":[64],"pop":[64],"popTo":[64],"popToRoot":[64],"removeIndex":[64],"setRoot":[64],"setPages":[64],"setRouteId":[64],"getRouteId":[64],"getActive":[64],"getByIndex":[64],"canGoBack":[64],"getPrevious":[64]}],[0,"ion-nav-link",{"component":[1],"componentProps":[16],"routerDirection":[1,"router-direction"],"routerAnimation":[16]}]]],["ion-slide_2",[[0,"ion-slide"],[36,"ion-slides",{"options":[8],"pager":[4],"scrollbar":[4],"update":[64],"updateAutoHeight":[64],"slideTo":[64],"slideNext":[64],"slidePrev":[64],"getActiveIndex":[64],"getPreviousIndex":[64],"length":[64],"isEnd":[64],"isBeginning":[64],"startAutoplay":[64],"stopAutoplay":[64],"lockSwipeToNext":[64],"lockSwipeToPrev":[64],"lockSwipes":[64],"getSwiper":[64]}]]],["ion-tab_2",[[1,"ion-tab",{"active":[1028],"delegate":[16],"tab":[1],"component":[1],"setActive":[64]}],[1,"ion-tabs",{"useRouter":[1028,"use-router"],"selectedTab":[32],"select":[64],"getTab":[64],"getSelected":[64],"setRouteId":[64],"getRouteId":[64]}]]],["ion-checkbox",[[33,"ion-checkbox",{"color":[1],"name":[1],"checked":[1028],"indeterminate":[1028],"disabled":[4],"value":[1]}]]],["ion-img",[[1,"ion-img",{"alt":[1],"src":[1],"loadSrc":[32],"loadError":[32]}]]],["ion-input",[[34,"ion-input",{"fireFocusEvents":[4,"fire-focus-events"],"color":[1],"accept":[1],"autocapitalize":[1],"autocomplete":[1],"autocorrect":[1],"autofocus":[4],"clearInput":[4,"clear-input"],"clearOnEdit":[4,"clear-on-edit"],"debounce":[2],"disabled":[4],"enterkeyhint":[1],"inputmode":[1],"max":[1],"maxlength":[2],"min":[1],"minlength":[2],"multiple":[4],"name":[1],"pattern":[1],"placeholder":[1],"readonly":[4],"required":[4],"spellcheck":[4],"step":[1],"size":[2],"type":[1],"value":[1032],"hasFocus":[32],"setFocus":[64],"setBlur":[64],"getInputElement":[64]}]]],["ion-progress-bar",[[33,"ion-progress-bar",{"type":[1],"reversed":[4],"value":[2],"buffer":[2],"color":[1]}]]],["ion-range",[[33,"ion-range",{"color":[1],"debounce":[2],"name":[1],"dualKnobs":[4,"dual-knobs"],"min":[2],"max":[2],"pin":[4],"snaps":[4],"step":[2],"ticks":[4],"disabled":[4],"value":[1026],"ratioA":[32],"ratioB":[32],"pressedKnob":[32]}]]],["ion-split-pane",[[33,"ion-split-pane",{"contentId":[513,"content-id"],"disabled":[4],"when":[8],"visible":[32]}]]],["ion-text",[[1,"ion-text",{"color":[1]}]]],["ion-textarea",[[34,"ion-textarea",{"fireFocusEvents":[4,"fire-focus-events"],"color":[1],"autocapitalize":[1],"autofocus":[4],"clearOnEdit":[1028,"clear-on-edit"],"debounce":[2],"disabled":[4],"inputmode":[1],"enterkeyhint":[1],"maxlength":[2],"minlength":[2],"name":[1],"placeholder":[1],"readonly":[4],"required":[4],"spellcheck":[4],"cols":[2],"rows":[2],"wrap":[1],"autoGrow":[4,"auto-grow"],"value":[1025],"hasFocus":[32],"setFocus":[64],"setBlur":[64],"getInputElement":[64]}]]],["ion-toggle",[[33,"ion-toggle",{"color":[1],"name":[1],"checked":[1028],"disabled":[4],"value":[1],"activated":[32]}]]],["ion-virtual-scroll",[[0,"ion-virtual-scroll",{"approxItemHeight":[2,"approx-item-height"],"approxHeaderHeight":[2,"approx-header-height"],"approxFooterHeight":[2,"approx-footer-height"],"headerFn":[16],"footerFn":[16],"items":[16],"itemHeight":[16],"headerHeight":[16],"footerHeight":[16],"renderItem":[16],"renderHeader":[16],"renderFooter":[16],"nodeRender":[16],"domRender":[16],"totalHeight":[32],"positionForItem":[64],"checkRange":[64],"checkEnd":[64]},[[9,"resize","onResize"]]]]],["ion-datetime_3",[[34,"ion-picker",{"overlayIndex":[2,"overlay-index"],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"buttons":[16],"columns":[16],"cssClass":[1,"css-class"],"duration":[2],"showBackdrop":[4,"show-backdrop"],"backdropDismiss":[4,"backdrop-dismiss"],"animated":[4],"presented":[32],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64],"getColumn":[64]}],[33,"ion-datetime",{"name":[1],"disabled":[4],"readonly":[4],"min":[1025],"max":[1025],"displayFormat":[1,"display-format"],"displayTimezone":[1,"display-timezone"],"pickerFormat":[1,"picker-format"],"cancelText":[1,"cancel-text"],"doneText":[1,"done-text"],"yearValues":[8,"year-values"],"monthValues":[8,"month-values"],"dayValues":[8,"day-values"],"hourValues":[8,"hour-values"],"minuteValues":[8,"minute-values"],"monthNames":[1,"month-names"],"monthShortNames":[1,"month-short-names"],"dayNames":[1,"day-names"],"dayShortNames":[1,"day-short-names"],"pickerOptions":[16],"placeholder":[1],"value":[1025],"isExpanded":[32],"open":[64]}],[32,"ion-picker-column",{"col":[16]}]]],["ion-radio_2",[[33,"ion-radio",{"color":[1],"name":[1],"disabled":[4],"value":[8],"checked":[32],"buttonTabindex":[32],"setFocus":[64],"setButtonTabindex":[64]}],[0,"ion-radio-group",{"allowEmptySelection":[4,"allow-empty-selection"],"name":[1],"value":[1032]},[[4,"keydown","onKeydown"]]]]],["ion-spinner",[[1,"ion-spinner",{"color":[1],"duration":[2],"name":[1],"paused":[4]}]]],["ion-backdrop",[[33,"ion-backdrop",{"visible":[4],"tappable":[4],"stopPropagation":[4,"stop-propagation"]},[[2,"click","onMouseDown"]]]]],["ion-ripple-effect",[[1,"ion-ripple-effect",{"type":[1],"addRipple":[64]}]]],["ion-button_2",[[33,"ion-button",{"color":[1],"buttonType":[1025,"button-type"],"disabled":[516],"expand":[513],"fill":[1537],"routerDirection":[1,"router-direction"],"routerAnimation":[16],"download":[1],"href":[1],"rel":[1],"shape":[513],"size":[513],"strong":[4],"target":[1],"type":[1]}],[1,"ion-icon",{"mode":[1025],"color":[1],"ariaLabel":[1537,"aria-label"],"ariaHidden":[513,"aria-hidden"],"ios":[1],"md":[1],"flipRtl":[4,"flip-rtl"],"name":[1],"src":[1],"icon":[8],"size":[1],"lazy":[4],"sanitize":[4],"svgContent":[32],"isVisible":[32]}]]],["ion-item_8",[[33,"ion-item-divider",{"color":[1],"sticky":[4]}],[32,"ion-item-group"],[33,"ion-note",{"color":[1]}],[1,"ion-skeleton-text",{"animated":[4]}],[49,"ion-item",{"color":[1],"button":[4],"detail":[4],"detailIcon":[1,"detail-icon"],"disabled":[4],"download":[1],"href":[1],"rel":[1],"lines":[1],"routerAnimation":[16],"routerDirection":[1,"router-direction"],"target":[1],"type":[1],"multipleInputs":[32]},[[0,"ionColor","labelColorChanged"],[0,"ionStyle","itemStyle"]]],[34,"ion-label",{"color":[1],"position":[1],"noAnimate":[32]}],[32,"ion-list",{"lines":[1],"inset":[4],"closeSlidingItems":[64]}],[33,"ion-list-header",{"color":[1],"lines":[1]}]]]]'),e)});var e})}}},vP=((DC=EC=function(){function e(){A(this,e)}return m(e,null,[{key:"forRoot",value:function(e){return{ngModule:EC,providers:[{provide:MS,useValue:e},{provide:ic,useFactory:gP,multi:!0,deps:[MS,od,Ac]}]}}}]),e}()).\u0275fac=function(e){return new(e||DC)},DC.\u0275mod=mt({type:DC}),DC.\u0275inj=Fe({providers:[RS,cP,dP],imports:[[Zh]]}),DC),mP=u("Hfs6"),yP=u.n(mP);function bP(e){return!!e&&(e instanceof V||"function"==typeof e.lift&&"function"==typeof e.subscribe)}var wP=function(e){r(n,e);var t=a(n);function n(e,i){var r;return A(this,n),(r=t.call(this,e,i)).scheduler=e,r.work=i,r.pending=!1,r}return m(n,[{key:"schedule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(this.closed)return this;this.state=e;var n=this.id,i=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(i,n,t)),this.pending=!0,this.delay=t,this.id=this.id||this.requestAsyncId(i,this.id,t),this}},{key:"requestAsyncId",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return setInterval(e.flush.bind(e,this),n)}},{key:"recycleAsyncId",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==n&&this.delay===n&&!1===this.pending)return t;clearInterval(t)}},{key:"execute",value:function(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(e,t);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}},{key:"_execute",value:function(e,t){var n=!1,i=void 0;try{this.work(e)}catch(r){n=!0,i=!!r&&r||new Error(r)}if(n)return this.unsubscribe(),i}},{key:"_unsubscribe",value:function(){var e=this.id,t=this.scheduler,n=t.actions,i=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==i&&n.splice(i,1),null!=e&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null}}]),n}(function(e){r(n,e);var t=a(n);function n(e,i){return A(this,n),t.call(this)}return m(n,[{key:"schedule",value:function(e){return this}}]),n}(O)),_P=function(e){r(n,e);var t=a(n);function n(e,i){var r;return A(this,n),(r=t.call(this,e,i)).scheduler=e,r.work=i,r}return m(n,[{key:"schedule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return t>0?i(c(n.prototype),"schedule",this).call(this,e,t):(this.delay=t,this.state=e,this.scheduler.flush(this),this)}},{key:"execute",value:function(e,t){return t>0||this.closed?i(c(n.prototype),"execute",this).call(this,e,t):this._execute(e,t)}},{key:"requestAsyncId",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null!==r&&r>0||null===r&&this.delay>0?i(c(n.prototype),"requestAsyncId",this).call(this,e,t,r):e.flush(this)}}]),n}(wP),kP=function(){var e=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.now;A(this,e),this.SchedulerAction=t,this.now=n}return m(e,[{key:"schedule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0;return new this.SchedulerAction(this,e).schedule(n,t)}}]),e}();return e.now=function(){return Date.now()},e}(),xP=function(e){r(n,e);var t=a(n);function n(e){var i,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:kP.now;return A(this,n),(i=t.call(this,e,function(){return n.delegate&&n.delegate!==l(i)?n.delegate.now():r()})).actions=[],i.active=!1,i.scheduled=void 0,i}return m(n,[{key:"schedule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2?arguments[2]:void 0;return n.delegate&&n.delegate!==this?n.delegate.schedule(e,t,r):i(c(n.prototype),"schedule",this).call(this,e,t,r)}},{key:"flush",value:function(e){var t=this.actions;if(this.active)t.push(e);else{var n;this.active=!0;do{if(n=e.execute(e.state,e.delay))break}while(e=t.shift());if(this.active=!1,n){for(;e=t.shift();)e.unsubscribe();throw n}}}}]),n}(kP),AP=new(function(e){r(n,e);var t=a(n);function n(){return A(this,n),t.apply(this,arguments)}return n}(xP))(_P);function CP(e,t){return new V(t?function(n){return t.schedule(SP,0,{error:e,subscriber:n})}:function(t){return t.error(e)})}function SP(e){var t=e.error;e.subscriber.error(t)}var PP,EP=((PP=function(){function e(t,n,i){A(this,e),this.kind=t,this.value=n,this.error=i,this.hasValue="N"===t}return m(e,[{key:"observe",value:function(e){switch(this.kind){case"N":return e.next&&e.next(this.value);case"E":return e.error&&e.error(this.error);case"C":return e.complete&&e.complete()}}},{key:"do",value:function(e,t,n){switch(this.kind){case"N":return e&&e(this.value);case"E":return t&&t(this.error);case"C":return n&&n()}}},{key:"accept",value:function(e,t,n){return e&&"function"==typeof e.next?this.observe(e):this.do(e,t,n)}},{key:"toObservable",value:function(){switch(this.kind){case"N":return Ty(this.value);case"E":return CP(this.error);case"C":return Lb()}throw new Error("unexpected notification kind value")}}],[{key:"createNext",value:function(t){return void 0!==t?new e("N",t):e.undefinedValueNotification}},{key:"createError",value:function(t){return new e("E",void 0,t)}},{key:"createComplete",value:function(){return e.completeNotification}}]),e}()).completeNotification=new PP("C"),PP.undefinedValueNotification=new PP("N",void 0),PP),DP=function(e){r(n,e);var t=a(n);function n(e,i){var r,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return A(this,n),(r=t.call(this,e)).scheduler=i,r.delay=o,r}return m(n,[{key:"scheduleMessage",value:function(e){this.destination.add(this.scheduler.schedule(n.dispatch,this.delay,new OP(e,this.destination)))}},{key:"_next",value:function(e){this.scheduleMessage(EP.createNext(e))}},{key:"_error",value:function(e){this.scheduleMessage(EP.createError(e)),this.unsubscribe()}},{key:"_complete",value:function(){this.scheduleMessage(EP.createComplete()),this.unsubscribe()}}],[{key:"dispatch",value:function(e){var t=e.notification,n=e.destination;t.observe(n),this.unsubscribe()}}]),n}(I),OP=function e(t,n){A(this,e),this.notification=t,this.destination=n},MP=function(e){r(n,e);var t=a(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.POSITIVE_INFINITY,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY,o=arguments.length>2?arguments[2]:void 0;return A(this,n),(e=t.call(this)).scheduler=o,e._events=[],e._infiniteTimeWindow=!1,e._bufferSize=i<1?1:i,e._windowTime=r<1?1:r,r===Number.POSITIVE_INFINITY?(e._infiniteTimeWindow=!0,e.next=e.nextInfiniteTimeWindow):e.next=e.nextTimeWindow,e}return m(n,[{key:"nextInfiniteTimeWindow",value:function(e){if(!this.isStopped){var t=this._events;t.push(e),t.length>this._bufferSize&&t.shift()}i(c(n.prototype),"next",this).call(this,e)}},{key:"nextTimeWindow",value:function(e){this.isStopped||(this._events.push(new TP(this._getNow(),e)),this._trimBufferThenGetEvents()),i(c(n.prototype),"next",this).call(this,e)}},{key:"_subscribe",value:function(e){var t,n=this._infiniteTimeWindow,i=n?this._events:this._trimBufferThenGetEvents(),r=this.scheduler,o=i.length;if(this.closed)throw new H;if(this.isStopped||this.hasError?t=O.EMPTY:(this.observers.push(e),t=new j(this,e)),r&&e.add(e=new DP(e,r)),n)for(var a=0;a<o&&!e.closed;a++)e.next(i[a]);else for(var s=0;s<o&&!e.closed;s++)e.next(i[s].value);return this.hasError?e.error(this.thrownError):this.isStopped&&e.complete(),t}},{key:"_getNow",value:function(){return(this.scheduler||AP).now()}},{key:"_trimBufferThenGetEvents",value:function(){for(var e=this._getNow(),t=this._bufferSize,n=this._windowTime,i=this._events,r=i.length,o=0;o<r&&!(e-i[o].time<n);)o++;return r>t&&(o=Math.max(o,r-t)),o>0&&i.splice(0,o),i}}]),n}(W),TP=function e(t,n){A(this,e),this.time=t,this.value=n};function IP(e,t,n){var i;return i=e&&"object"==typeof e?e:{bufferSize:e,windowTime:t,refCount:!1,scheduler:n},function(e){return e.lift(function(e){var t,n,i=e.bufferSize,r=void 0===i?Number.POSITIVE_INFINITY:i,o=e.windowTime,a=void 0===o?Number.POSITIVE_INFINITY:o,s=e.refCount,l=e.scheduler,u=0,c=!1,d=!1;return function(e){var i;u++,!t||c?(c=!1,t=new MP(r,a,l),i=t.subscribe(this),n=e.subscribe({next:function(e){t.next(e)},error:function(e){c=!0,t.error(e)},complete:function(){d=!0,n=void 0,t.complete()}}),d&&(n=void 0)):i=t.subscribe(this),this.add(function(){u--,i.unsubscribe(),i=void 0,n&&!d&&s&&0===u&&(n.unsubscribe(),n=void 0,t=void 0)})}}(i))}}var RP,LP,FP=function e(){A(this,e)},BP=((RP=function(e){r(n,e);var t=a(n);function n(){return A(this,n),t.apply(this,arguments)}return m(n,[{key:"getTranslation",value:function(e){return Ty({})}}]),n}(FP)).\u0275fac=function(e){return VP(e||RP)},RP.\u0275prov=Re({token:RP,factory:RP.\u0275fac}),RP),VP=hi(BP),zP=function e(){A(this,e)},NP=((LP=function(){function e(){A(this,e)}return m(e,[{key:"handle",value:function(e){return e.key}}]),e}()).\u0275fac=function(e){return new(e||LP)},LP.\u0275prov=Re({token:LP,factory:LP.\u0275fac}),LP);function HP(e,t){if(e===t)return!0;if(null===e||null===t)return!1;if(e!=e&&t!=t)return!0;var n,i,r,o=typeof e;if(o==typeof t&&"object"==o){if(!Array.isArray(e)){if(Array.isArray(t))return!1;for(i in r=Object.create(null),e){if(!HP(e[i],t[i]))return!1;r[i]=!0}for(i in t)if(!(i in r)&&void 0!==t[i])return!1;return!0}if(!Array.isArray(t))return!1;if((n=e.length)==t.length){for(i=0;i<n;i++)if(!HP(e[i],t[i]))return!1;return!0}}return!1}function jP(e){return null!=e}function UP(e){return e&&"object"==typeof e&&!Array.isArray(e)}function WP(e,t){var n=Object.assign({},e);return UP(e)&&UP(t)&&Object.keys(t).forEach(function(i){UP(t[i])&&i in e?n[i]=WP(e[i],t[i]):Object.assign(n,d({},i,t[i]))}),n}var GP,qP,YP,ZP,QP,XP,KP,JP,$P,eE,tE,nE,iE=function e(){A(this,e)},rE=((GP=function(e){r(n,e);var t=a(n);function n(){var e;return A(this,n),(e=t.apply(this,arguments)).templateMatcher=/{{\s?([^{}\s]*)\s?}}/g,e}return m(n,[{key:"interpolate",value:function(e,t){return"string"==typeof e?this.interpolateString(e,t):"function"==typeof e?this.interpolateFunction(e,t):e}},{key:"getValue",value:function(e,t){var n="string"==typeof t?t.split("."):[t];t="";do{t+=n.shift(),!jP(e)||!jP(e[t])||"object"!=typeof e[t]&&n.length?n.length?t+=".":e=void 0:(e=e[t],t="")}while(n.length);return e}},{key:"interpolateFunction",value:function(e,t){return e(t)}},{key:"interpolateString",value:function(e,t){var n=this;return t?e.replace(this.templateMatcher,function(e,i){var r=n.getValue(t,i);return jP(r)?r:e}):e}}]),n}(iE)).\u0275fac=function(e){return oE(e||GP)},GP.\u0275prov=Re({token:GP,factory:GP.\u0275fac}),GP),oE=hi(rE),aE=function e(){A(this,e)},sE=((qP=function(e){r(n,e);var t=a(n);function n(){return A(this,n),t.apply(this,arguments)}return m(n,[{key:"compile",value:function(e,t){return e}},{key:"compileTranslations",value:function(e,t){return e}}]),n}(aE)).\u0275fac=function(e){return lE(e||qP)},qP.\u0275prov=Re({token:qP,factory:qP.\u0275fac}),qP),lE=hi(sE),uE=function e(){A(this,e),this.currentLang=this.defaultLang,this.translations={},this.langs=[],this.onTranslationChange=new Fu,this.onLangChange=new Fu,this.onDefaultLangChange=new Fu},cE=new mi("USE_STORE"),dE=new mi("USE_DEFAULT_LANG"),hE=new mi("DEFAULT_LANGUAGE"),fE=new mi("USE_EXTEND"),pE=((QP=function(){function e(t,n,i,r,o){var a=!(arguments.length>5&&void 0!==arguments[5])||arguments[5],s=arguments.length>6&&void 0!==arguments[6]&&arguments[6],l=arguments.length>7&&void 0!==arguments[7]&&arguments[7],u=arguments.length>8?arguments[8]:void 0;A(this,e),this.store=t,this.currentLoader=n,this.compiler=i,this.parser=r,this.missingTranslationHandler=o,this.useDefaultLang=a,this.isolate=s,this.extend=l,this.pending=!1,this._onTranslationChange=new Fu,this._onLangChange=new Fu,this._onDefaultLangChange=new Fu,this._langs=[],this._translations={},this._translationRequests={},u&&this.setDefaultLang(u)}return m(e,[{key:"onTranslationChange",get:function(){return this.isolate?this._onTranslationChange:this.store.onTranslationChange}},{key:"onLangChange",get:function(){return this.isolate?this._onLangChange:this.store.onLangChange}},{key:"onDefaultLangChange",get:function(){return this.isolate?this._onDefaultLangChange:this.store.onDefaultLangChange}},{key:"defaultLang",get:function(){return this.isolate?this._defaultLang:this.store.defaultLang},set:function(e){this.isolate?this._defaultLang=e:this.store.defaultLang=e}},{key:"currentLang",get:function(){return this.isolate?this._currentLang:this.store.currentLang},set:function(e){this.isolate?this._currentLang=e:this.store.currentLang=e}},{key:"langs",get:function(){return this.isolate?this._langs:this.store.langs},set:function(e){this.isolate?this._langs=e:this.store.langs=e}},{key:"translations",get:function(){return this.isolate?this._translations:this.store.translations},set:function(e){this.isolate?this._translations=e:this.store.translations=e}},{key:"setDefaultLang",value:function(e){var t=this;if(e!==this.defaultLang){var n=this.retrieveTranslations(e);void 0!==n?(null==this.defaultLang&&(this.defaultLang=e),n.pipe(Hb(1)).subscribe(function(n){t.changeDefaultLang(e)})):this.changeDefaultLang(e)}}},{key:"getDefaultLang",value:function(){return this.defaultLang}},{key:"use",value:function(e){var t=this;if(e===this.currentLang)return Ty(this.translations[e]);var n=this.retrieveTranslations(e);return void 0!==n?(this.currentLang||(this.currentLang=e),n.pipe(Hb(1)).subscribe(function(n){t.changeLang(e)}),n):(this.changeLang(e),Ty(this.translations[e]))}},{key:"retrieveTranslations",value:function(e){var t;return(void 0===this.translations[e]||this.extend)&&(this._translationRequests[e]=this._translationRequests[e]||this.getTranslation(e),t=this._translationRequests[e]),t}},{key:"getTranslation",value:function(e){var t=this;this.pending=!0;var n=this.currentLoader.getTranslation(e).pipe(IP(1),Hb(1));return this.loadingTranslations=n.pipe(Y(function(n){return t.compiler.compileTranslations(n,e)}),IP(1),Hb(1)),this.loadingTranslations.subscribe({next:function(n){t.translations[e]=t.extend&&t.translations[e]?Object.assign(Object.assign({},n),t.translations[e]):n,t.updateLangs(),t.pending=!1},error:function(e){t.pending=!1}}),n}},{key:"setTranslation",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];t=this.compiler.compileTranslations(t,e),this.translations[e]=(n||this.extend)&&this.translations[e]?WP(this.translations[e],t):t,this.updateLangs(),this.onTranslationChange.emit({lang:e,translations:this.translations[e]})}},{key:"getLangs",value:function(){return this.langs}},{key:"addLangs",value:function(e){var t=this;e.forEach(function(e){-1===t.langs.indexOf(e)&&t.langs.push(e)})}},{key:"updateLangs",value:function(){this.addLangs(Object.keys(this.translations))}},{key:"getParsedResult",value:function(e,t,n){var i;if(t instanceof Array){var r,o={},a=!1,s=h(t);try{for(s.s();!(r=s.n()).done;){var l=r.value;o[l]=this.getParsedResult(e,l,n),bP(o[l])&&(a=!0)}}catch(c){s.e(c)}finally{s.f()}return a?Av(t.map(function(e){return bP(o[e])?o[e]:Ty(o[e])})).pipe(Y(function(e){var n={};return e.forEach(function(e,i){n[t[i]]=e}),n})):o}if(e&&(i=this.parser.interpolate(this.parser.getValue(e,t),n)),void 0===i&&null!=this.defaultLang&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(i=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],t),n)),void 0===i){var u={key:t,translateService:this};void 0!==n&&(u.interpolateParams=n),i=this.missingTranslationHandler.handle(u)}return void 0!==i?i:t}},{key:"get",value:function(e,t){var n=this;if(!jP(e)||!e.length)throw new Error('Parameter "key" required');if(this.pending)return this.loadingTranslations.pipe(Iy(function(i){return bP(i=n.getParsedResult(i,e,t))?i:Ty(i)}));var i=this.getParsedResult(this.translations[this.currentLang],e,t);return bP(i)?i:Ty(i)}},{key:"getStreamOnTranslationChange",value:function(e,t){var n=this;if(!jP(e)||!e.length)throw new Error('Parameter "key" required');return Ib(Fb(function(){return n.get(e,t)}),this.onTranslationChange.pipe(Bb(function(i){var r=n.getParsedResult(i.translations,e,t);return"function"==typeof r.subscribe?r:Ty(r)})))}},{key:"stream",value:function(e,t){var n=this;if(!jP(e)||!e.length)throw new Error('Parameter "key" required');return Ib(Fb(function(){return n.get(e,t)}),this.onLangChange.pipe(Bb(function(i){var r=n.getParsedResult(i.translations,e,t);return bP(r)?r:Ty(r)})))}},{key:"instant",value:function(e,t){if(!jP(e)||!e.length)throw new Error('Parameter "key" required');var n=this.getParsedResult(this.translations[this.currentLang],e,t);if(bP(n)){if(e instanceof Array){var i={};return e.forEach(function(t,n){i[e[n]]=e[n]}),i}return e}return n}},{key:"set",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.currentLang;this.translations[n][e]=this.compiler.compile(t,n),this.updateLangs(),this.onTranslationChange.emit({lang:n,translations:this.translations[n]})}},{key:"changeLang",value:function(e){this.currentLang=e,this.onLangChange.emit({lang:e,translations:this.translations[e]}),null==this.defaultLang&&this.changeDefaultLang(e)}},{key:"changeDefaultLang",value:function(e){this.defaultLang=e,this.onDefaultLangChange.emit({lang:e,translations:this.translations[e]})}},{key:"reloadLang",value:function(e){return this.resetLang(e),this.getTranslation(e)}},{key:"resetLang",value:function(e){this._translationRequests[e]=void 0,this.translations[e]=void 0}},{key:"getBrowserLang",value:function(){if("undefined"!=typeof window&&void 0!==window.navigator){var e=window.navigator.languages?window.navigator.languages[0]:null;return void 0!==(e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage)?(-1!==e.indexOf("-")&&(e=e.split("-")[0]),-1!==e.indexOf("_")&&(e=e.split("_")[0]),e):void 0}}},{key:"getBrowserCultureLang",value:function(){if("undefined"!=typeof window&&void 0!==window.navigator){var e=window.navigator.languages?window.navigator.languages[0]:null;return e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage}}}]),e}()).\u0275fac=function(e){return new(e||QP)(Ri(uE),Ri(FP),Ri(aE),Ri(iE),Ri(zP),Ri(dE),Ri(cE),Ri(fE),Ri(hE))},QP.\u0275prov=Re({token:QP,factory:QP.\u0275fac}),QP),gE=((ZP=function(){function e(t,n){A(this,e),this.translate=t,this._ref=n,this.value=""}return m(e,[{key:"updateValue",value:function(e,t,n){var i=this,r=function(t){i.value=void 0!==t?t:e,i.lastKey=e,i._ref.markForCheck()};if(n){var o=this.translate.getParsedResult(n,e,t);bP(o.subscribe)?o.subscribe(r):r(o)}this.translate.get(e,t).subscribe(r)}},{key:"transform",value:function(e){var t,n=this;if(!e||!e.length)return e;for(var i=arguments.length,r=new Array(i>1?i-1:0),o=1;o<i;o++)r[o-1]=arguments[o];if(HP(e,this.lastKey)&&HP(r,this.lastParams))return this.value;if(jP(r[0])&&r.length)if("string"==typeof r[0]&&r[0].length){var a=r[0].replace(/(\')?([a-zA-Z0-9_]+)(\')?(\s)?:/g,'"$2":').replace(/:(\s)?(\')(.*?)(\')/g,':"$3"');try{t=JSON.parse(a)}catch(s){throw new SyntaxError("Wrong parameter in TranslatePipe. Expected a valid Object, received: "+r[0])}}else"object"!=typeof r[0]||Array.isArray(r[0])||(t=r[0]);return this.lastKey=e,this.lastParams=r,this.updateValue(e,t),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.onTranslationChange.subscribe(function(i){n.lastKey&&i.lang===n.translate.currentLang&&(n.lastKey=null,n.updateValue(e,t,i.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(function(i){n.lastKey&&(n.lastKey=null,n.updateValue(e,t,i.translations))})),this.onDefaultLangChange||(this.onDefaultLangChange=this.translate.onDefaultLangChange.subscribe(function(){n.lastKey&&(n.lastKey=null,n.updateValue(e,t))})),this.value}},{key:"_dispose",value:function(){void 0!==this.onTranslationChange&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void 0),void 0!==this.onLangChange&&(this.onLangChange.unsubscribe(),this.onLangChange=void 0),void 0!==this.onDefaultLangChange&&(this.onDefaultLangChange.unsubscribe(),this.onDefaultLangChange=void 0)}},{key:"ngOnDestroy",value:function(){this._dispose()}}]),e}()).\u0275fac=function(e){return new(e||ZP)(rs(pE),nc())},ZP.\u0275pipe=wt({name:"translate",type:ZP,pure:!1}),ZP.\u0275prov=Re({token:ZP,factory:ZP.\u0275fac}),ZP),vE=((YP=function(){function e(){A(this,e)}return m(e,null,[{key:"forRoot",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:e,providers:[t.loader||{provide:FP,useClass:BP},t.compiler||{provide:aE,useClass:sE},t.parser||{provide:iE,useClass:rE},t.missingTranslationHandler||{provide:zP,useClass:NP},uE,{provide:cE,useValue:t.isolate},{provide:dE,useValue:t.useDefaultLang},{provide:fE,useValue:t.extend},{provide:hE,useValue:t.defaultLanguage},pE]}}},{key:"forChild",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:e,providers:[t.loader||{provide:FP,useClass:BP},t.compiler||{provide:aE,useClass:sE},t.parser||{provide:iE,useClass:rE},t.missingTranslationHandler||{provide:zP,useClass:NP},{provide:cE,useValue:t.isolate},{provide:dE,useValue:t.useDefaultLang},{provide:fE,useValue:t.extend},{provide:hE,useValue:t.defaultLanguage},pE]}}}]),e}()).\u0275fac=function(e){return new(e||YP)},YP.\u0275mod=mt({type:YP}),YP.\u0275inj=Fe({}),YP),mE=function(e,t,n,i){return new(n||(n=Promise))(function(r,o){function a(e){try{l(i.next(e))}catch(t){o(t)}}function s(e){try{l(i.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((i=i.apply(e,t||[])).next())})},yE=((XP=function(){function e(t,n,i){A(this,e),this.translate=t,this.router=n,this.toastController=i}return m(e,[{key:"success",value:function(e){return mE(this,void 0,void 0,regeneratorRuntime.mark(function t(){var n;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.includes("lang.")?this.translate.instant(e):e,t.next=3,this.toastController.create({cssClass:"notif-success",duration:3e3,message:n,position:"top"});case 3:t.sent.present();case 4:case"end":return t.stop()}},t,this)}))}},{key:"error",value:function(e){return mE(this,void 0,void 0,regeneratorRuntime.mark(function t(){var n;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.includes("lang.")?this.translate.instant(e):e,t.next=3,this.toastController.create({cssClass:"notif-error",duration:3e3,message:n,position:"top"});case 3:t.sent.present();case 4:case"end":return t.stop()}},t,this)}))}},{key:"handleErrors",value:function(e){console.log(e),0===e.status&&"Unknown Error"===e.statusText?this.error("lang.connectionServerFailed"):void 0!==e.error.errors?(this.error(void 0!==e.error.lang?"lang."+e.error.lang:e.error.errors),403!==e.status&&404!==e.status||this.router.navigate(["/home"])):this.error(void 0!==e.error.exception?e.error.exception[0].message:void 0!==e.error.error&&void 0!==e.error.error.message?e.error.error.message:void 0!==e.error.error[0]?e.error.error[0].message:e.message)}}]),e}()).\u0275fac=function(e){return new(e||XP)(Ri(pE),Ri(jk),Ri(hP))},XP.\u0275prov=Re({token:XP,factory:XP.\u0275fac}),XP),bE=function(){function e(){A(this,e)}return m(e,[{key:"attach",value:function(e){return this._attachedHost=e,e.attach(this)}},{key:"detach",value:function(){var e=this._attachedHost;null!=e&&(this._attachedHost=null,e.detach())}},{key:"isAttached",get:function(){return null!=this._attachedHost}},{key:"setAttachedHost",value:function(e){this._attachedHost=e}}]),e}(),wE=function(e){r(n,e);var t=a(n);function n(e,i,r,o){var a;return A(this,n),(a=t.call(this)).component=e,a.viewContainerRef=i,a.injector=r,a.componentFactoryResolver=o,a}return n}(bE),_E=function(e){r(n,e);var t=a(n);function n(e,i,r){var o;return A(this,n),(o=t.call(this)).templateRef=e,o.viewContainerRef=i,o.context=r,o}return m(n,[{key:"origin",get:function(){return this.templateRef.elementRef}},{key:"attach",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.context;return this.context=t,i(c(n.prototype),"attach",this).call(this,e)}},{key:"detach",value:function(){return this.context=void 0,i(c(n.prototype),"detach",this).call(this)}}]),n}(bE),kE=function(e){r(n,e);var t=a(n);function n(e){var i;return A(this,n),(i=t.call(this)).element=e instanceof Cl?e.nativeElement:e,i}return n}(bE),xE=function(){function e(){A(this,e),this._isDisposed=!1,this.attachDomPortal=null}return m(e,[{key:"hasAttached",value:function(){return!!this._attachedPortal}},{key:"attach",value:function(e){return e instanceof wE?(this._attachedPortal=e,this.attachComponentPortal(e)):e instanceof _E?(this._attachedPortal=e,this.attachTemplatePortal(e)):this.attachDomPortal&&e instanceof kE?(this._attachedPortal=e,this.attachDomPortal(e)):void 0}},{key:"detach",value:function(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}},{key:"dispose",value:function(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}},{key:"setDisposeFn",value:function(e){this._disposeFn=e}},{key:"_invokeDisposeFn",value:function(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}]),e}(),AE=function(e){r(n,e);var t=a(n);function n(e,r,o,a,s){var u,d;return A(this,n),(d=t.call(this)).outletElement=e,d._componentFactoryResolver=r,d._appRef=o,d._defaultInjector=a,d.attachDomPortal=function(e){var t=e.element,r=d._document.createComment("dom-portal");t.parentNode.insertBefore(r,t),d.outletElement.appendChild(t),i((u=l(d),c(n.prototype)),"setDisposeFn",u).call(u,function(){r.parentNode&&r.parentNode.replaceChild(t,r)})},d._document=s,d}return m(n,[{key:"attachComponentPortal",value:function(e){var t,n=this,i=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component);return e.viewContainerRef?(t=e.viewContainerRef.createComponent(i,e.viewContainerRef.length,e.injector||e.viewContainerRef.injector),this.setDisposeFn(function(){return t.destroy()})):(t=i.create(e.injector||this._defaultInjector),this._appRef.attachView(t.hostView),this.setDisposeFn(function(){n._appRef.detachView(t.hostView),t.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(t)),t}},{key:"attachTemplatePortal",value:function(e){var t=this,n=e.viewContainerRef,i=n.createEmbeddedView(e.templateRef,e.context);return i.rootNodes.forEach(function(e){return t.outletElement.appendChild(e)}),i.detectChanges(),this.setDisposeFn(function(){var e=n.indexOf(i);-1!==e&&n.remove(e)}),i}},{key:"dispose",value:function(){i(c(n.prototype),"dispose",this).call(this),null!=this.outletElement.parentNode&&this.outletElement.parentNode.removeChild(this.outletElement)}},{key:"_getComponentRootNode",value:function(e){return e.hostView.rootNodes[0]}}]),n}(xE),CE=((nE=function(e){r(n,e);var t=a(n);function n(e,r,o){var a,s;return A(this,n),(s=t.call(this))._componentFactoryResolver=e,s._viewContainerRef=r,s._isInitialized=!1,s.attached=new Fu,s.attachDomPortal=function(e){var t=e.element,r=s._document.createComment("dom-portal");e.setAttachedHost(l(s)),t.parentNode.insertBefore(r,t),s._getRootNode().appendChild(t),i((a=l(s),c(n.prototype)),"setDisposeFn",a).call(a,function(){r.parentNode&&r.parentNode.replaceChild(t,r)})},s._document=o,s}return m(n,[{key:"portal",get:function(){return this._attachedPortal},set:function(e){(!this.hasAttached()||e||this._isInitialized)&&(this.hasAttached()&&i(c(n.prototype),"detach",this).call(this),e&&i(c(n.prototype),"attach",this).call(this,e),this._attachedPortal=e)}},{key:"attachedRef",get:function(){return this._attachedRef}},{key:"ngOnInit",value:function(){this._isInitialized=!0}},{key:"ngOnDestroy",value:function(){i(c(n.prototype),"dispose",this).call(this),this._attachedPortal=null,this._attachedRef=null}},{key:"attachComponentPortal",value:function(e){e.setAttachedHost(this);var t=null!=e.viewContainerRef?e.viewContainerRef:this._viewContainerRef,r=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),o=t.createComponent(r,t.length,e.injector||t.injector);return t!==this._viewContainerRef&&this._getRootNode().appendChild(o.hostView.rootNodes[0]),i(c(n.prototype),"setDisposeFn",this).call(this,function(){return o.destroy()}),this._attachedPortal=e,this._attachedRef=o,this.attached.emit(o),o}},{key:"attachTemplatePortal",value:function(e){var t=this;e.setAttachedHost(this);var r=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context);return i(c(n.prototype),"setDisposeFn",this).call(this,function(){return t._viewContainerRef.clear()}),this._attachedPortal=e,this._attachedRef=r,this.attached.emit(r),r}},{key:"_getRootNode",value:function(){var e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}}]),n}(xE)).\u0275fac=function(e){return new(e||nE)(rs(_l),rs(uu),rs(od))},nE.\u0275dir=bt({type:nE,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[Va]}),nE),SE=((tE=function e(){A(this,e)}).\u0275fac=function(e){return new(e||tE)},tE.\u0275mod=mt({type:tE}),tE.\u0275inj=Fe({}),tE),PE=((eE=function(){function e(t,n,i){A(this,e),this.componentFactoryResolver=t,this.injector=n,this.appRef=i,this.mainDocumentId=0,this.signaturesContent=[],this.datesContent=[],this.notesContent=[],this.signaturesList=[],this.signaturesListSubstituted=[],this.currentPage=1,this.totalPage=1,this.stampLock=!1,this.currentToobal="mainDocumentDetail",this.currentAction=0,this.indexDocumentsList=0,this.documentsList=[],this.documentsListCount={},this.workingAreaWidth=0,this.workingAreaHeight=0,this.mobileMode=!0,this.smartphoneMode=!0,this.mode="",this.scale=1,this.x=0,this.y=90,this.dragging=!1,this.smartphoneMode=window.screen.width<=360,this.mobileMode=!!/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}return m(e,[{key:"reset",value:function(){this.mainDocumentId=0,this.signaturesContent=[],this.datesContent=[],this.notesContent=[],this.signaturesList=[],this.signaturesListSubstituted=[],this.currentPage=1,this.totalPage=1,this.stampLock=!1,this.currentAction=0,this.indexDocumentsList=0,this.documentsList=[],this.documentsListCount={},this.workingAreaWidth=0,this.workingAreaHeight=0,this.currentToobal="mainDocumentDetail",this.smartphoneMode=window.screen.width<=360,this.mobileMode=!!/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),this.mode="",this.scale=1,this.x=0,this.y=90}},{key:"getAppSession",value:function(){this.appSession="AD098AD9ADA0D9IAXKJ90AKS099S"}},{key:"initTemplate",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"adminMenu";document.getElementById(""+n).innerHTML="",this.portalHost=new AE(document.querySelector("#"+n),this.componentFactoryResolver,this.appRef,this.injector);var i=new _E(e,t);this.portalHost.attach(i)}},{key:"detachTemplate",value:function(){this.portalHost.detach()}}]),e}()).\u0275fac=function(e){return new(e||eE)(Ri(_l),Ri(Fa),Ri(Gc))},eE.\u0275prov=Re({token:eE,factory:eE.\u0275fac}),eE),EE=(($P=function(){function e(){A(this,e)}return m(e,[{key:"setAppSession",value:function(e){this.appSession=e}},{key:"getAppSession",value:function(){return this.appSession}},{key:"save",value:function(e,t){localStorage.setItem(e+"_"+this.getAppSession(),t)}},{key:"get",value:function(e){return localStorage.getItem(e+"_"+this.getAppSession())}},{key:"remove",value:function(e){localStorage.removeItem(e+"_"+this.getAppSession())}}]),e}()).\u0275fac=function(e){return new(e||$P)},$P.\u0275prov=Re({token:$P,factory:$P.\u0275fac,providedIn:"root"}),$P),DE=((JP=function(){function e(t,n,i,r,o,a){A(this,e),this.http=t,this.router=n,this.notificationService=i,this.signaturesService=r,this.localStorage=o,this.navCtrl=a,this.authMode="default",this.changeKey=!1,this.coreUrl="",this.user={},this.signatureRoles=[],this.authFailed=!1}return m(e,[{key:"getToken",value:function(){return this.localStorage.get("MaarchParapheurToken")}},{key:"setToken",value:function(e){this.localStorage.save("MaarchParapheurToken",e)}},{key:"getRefreshToken",value:function(){return this.localStorage.get("MaarchParapheurRefreshToken")}},{key:"setRefreshToken",value:function(e){this.localStorage.save("MaarchParapheurRefreshToken",e)}},{key:"clearTokens",value:function(){this.localStorage.remove("MaarchParapheurToken"),this.localStorage.remove("MaarchParapheurRefreshToken")}},{key:"refreshToken",value:function(){var e=this;return this.http.get("../rest/authenticate/token",{params:{refreshToken:this.getRefreshToken()}}).pipe(uw(function(t){e.setToken(t.token),e.updateUserInfo(t.token)}),Zb(function(t){return e.logout(),e.notificationService.error("lang.sessionExpired"),Ty(!1)}))}},{key:"logout",value:function(){var e=this;if(null===this.getRefreshToken())return this.clearTokens(),void this.navCtrl.navigateRoot("/login");this.http.get("../rest/authenticate/logout").pipe(uw(function(){e.clearTokens(),e.navCtrl.navigateRoot("/login")}),Zb(function(t){return e.notificationService.handleErrors(t),e.clearTokens(),e.navCtrl.navigateRoot("/login"),Ty(!1)})).subscribe()}},{key:"saveTokens",value:function(e,t){this.setToken(e),this.setRefreshToken(t)}},{key:"isAuth",value:function(){return null!==this.getToken()}},{key:"updateUserInfo",value:function(e){var t=this.user.picture,n=JSON.parse(atob(e.split(".")[1]));this.user=n.user,this.authMode=n.connection,this.user.picture=t}},{key:"updateUserInfoWithTokenRefresh",value:function(){var e=this;this.http.get("../rest/authenticate/token",{params:{refreshToken:this.getRefreshToken()}}).subscribe({next:function(t){e.setToken(t.token),e.updateUserInfo(e.getToken())},error:function(t){e.notificationService.handleErrors(t)}})}},{key:"setUser",value:function(e){this.user=e}},{key:"getSignatureMode",value:function(e){return"visa"===e?"stamp":e}},{key:"getWorkflowMode",value:function(e){return this.signatureRoles.filter(function(t){return t.id===e})[0].type}},{key:"setCachedUrl",value:function(e){this.localStorage.save("MaarchParapheurCacheUrl",e)}},{key:"getCachedUrl",value:function(){return this.localStorage.get("MaarchParapheurCacheUrl")}},{key:"cleanCachedUrl",value:function(){return this.localStorage.remove("MaarchParapheurCacheUrl")}}]),e}()).\u0275fac=function(e){return new(e||JP)(Ri(lb),Ri(jk),Ri(yE),Ri(PE),Ri(EE),Ri(aA))},JP.\u0275prov=Re({token:JP,factory:JP.\u0275fac,providedIn:"root"}),JP),OE=((KP=function(){function e(t,n,i,r,o){A(this,e),this.http=t,this.router=n,this.notificationService=i,this.signaturesService=r,this.authService=o,this.excludeUrls=["../rest/authenticate","../rest/authenticate/token","../rest/authenticationInformations","../rest/password","../rest/passwordRules","../rest/languages/fr","../rest/languages/en"],this.frontUrl=["../rest/documents/","../rest/users/","../rest/groups/","../rest/configurations/"],this.byPassHandleErrors=[{route:"/password",method:["PUT"]},{route:"/logout",method:["GET"]}],this.isRefreshing=!1,this.refreshTokenSubject=new Ab(null)}return m(e,[{key:"addAuthHeader",value:function(e){var t=this.authService.getToken();return e.clone({setHeaders:{Authorization:"Bearer "+t}})}},{key:"intercept",value:function(e,t){var n=this;return(this.excludeUrls.indexOf(e.url)>-1||e.url.indexOf("/password")>-1)&&-1===e.url.indexOf("/passwordRules")&&-1===e.method.indexOf("PUT")?t.handle(e):(e=this.addAuthHeader(e),t.handle(e).pipe(Zb(function(i){return n.byPassHandleErrors.filter(function(t){return e.url.indexOf(t.route)>-1&&t.method.indexOf(e.method)>-1}).length>0?t.handle(e):401===i.status?n.handle401Error(e,t):"Password expired : User must change his password"===i.error.errors?n.router.navigate(["/password-modification"]):("GET"===e.method&&n.frontUrl.forEach(function(t){if(e.url.indexOf(t)>-1)return"../rest/documents/"===t&&(n.signaturesService.mainDocumentId=null),r=new Ky({error:i.error,status:i.status,statusText:i.statusText,headers:i.headers,url:i.url}),Promise.reject(r)}),r=new Ky({error:i.error,status:i.status,statusText:i.statusText,headers:i.headers,url:i.url}),Promise.reject(r));var r})))}},{key:"handle401Error",value:function(e,t){var n=this;return this.isRefreshing?this.refreshTokenSubject.pipe(Ry(function(e){return null!=e}),Hb(1),Bb(function(){return e=n.addAuthHeader(e),t.handle(e)})):(this.isRefreshing=!0,this.refreshTokenSubject.next(null),this.authService.refreshToken().pipe(Bb(function(i){return n.isRefreshing=!1,n.refreshTokenSubject.next(i.token),e=n.addAuthHeader(e),t.handle(e)})))}}]),e}()).\u0275fac=function(e){return new(e||KP)(Ri(lb),Ri(jk),Ri(yE),Ri(PE),Ri(DE))},KP.\u0275prov=Re({token:KP,factory:KP.\u0275fac}),KP);function ME(e,t){if(1&e){var n=fs();ss(0,"div",2),ss(1,"div",3),ss(2,"button",4),On(),ss(3,"svg",5),us(4,"path",6),ls(),Mn(),ss(5,"span",7),Qs(6,"Presentation Mode"),ls(),ls(),ss(7,"button",8),On(),ss(8,"svg",5),us(9,"path",9),ls(),Mn(),ss(10,"span",10),Qs(11,"Open"),ls(),ls(),ss(12,"button",11),On(),ss(13,"svg",5),us(14,"path",12),ls(),Mn(),ss(15,"span",13),Qs(16,"Print"),ls(),ls(),ss(17,"button",14),On(),ss(18,"svg",5),us(19,"path",15),ls(),Mn(),ss(20,"span",16),Qs(21,"Download"),ls(),ls(),ss(22,"a",17),On(),ss(23,"svg",5),us(24,"path",18),ls(),Mn(),ss(25,"span",19),Qs(26,"Current View"),ls(),ls(),ss(27,"button",20),On(),ss(28,"svg",21),us(29,"path",22),ls(),Mn(),ss(30,"span",23),Qs(31,"Go to First Page"),ls(),ls(),ss(32,"button",24),ms("click",function(){return nn(n),ks().previousPage()}),On(),ss(33,"svg",21),us(34,"path",25),ls(),Mn(),ss(35,"span",26),Qs(36,"Go to Previous Page"),ls(),ls(),ss(37,"button",27),ms("click",function(){return nn(n),ks().nextPage()}),On(),ss(38,"svg",21),us(39,"path",28),ls(),Mn(),ss(40,"span",29),Qs(41,"Go to Next Page"),ls(),ls(),ss(42,"button",30),On(),ss(43,"svg",21),us(44,"path",31),ls(),Mn(),ss(45,"span",32),Qs(46,"Go to Last Page"),ls(),ls(),ss(47,"button",33),On(),ss(48,"svg",5),us(49,"path",34),ls(),Mn(),ss(50,"span",35),Qs(51,"Rotate Clockwise"),ls(),ls(),ss(52,"button",36),On(),ss(53,"svg",5),us(54,"path",37),ls(),Mn(),ss(55,"span",38),Qs(56,"Rotate Counterclockwise"),ls(),ls(),ss(57,"button",39),On(),ss(58,"svg",5),us(59,"path",40),ls(),Mn(),ss(60,"span",41),Qs(61,"Text Selection Tool"),ls(),ls(),ss(62,"button",42),On(),ss(63,"svg",5),us(64,"path",43),ls(),Mn(),ss(65,"span",44),Qs(66,"Hand Tool"),ls(),ls(),ss(67,"button",45),On(),ss(68,"svg",46),us(69,"path",47),ls(),Mn(),ss(70,"span",48),Qs(71,"Vertical Scrolling"),ls(),ls(),ss(72,"button",49),On(),ss(73,"svg",46),us(74,"path",50),ls(),Mn(),ss(75,"span",51),Qs(76,"Horizontal Scrolling"),ls(),ls(),ss(77,"button",52),On(),ss(78,"svg",46),us(79,"path",53),ls(),Mn(),ss(80,"span",54),Qs(81,"Wrapped Scrolling"),ls(),ls(),ss(82,"button",55),ms("click",function(){return nn(n),ks().onSpreadChange("off")}),On(),ss(83,"svg",56),us(84,"path",57),ls(),Mn(),ss(85,"span",58),Qs(86,"No Spreads"),ls(),ls(),ss(87,"button",59),ms("click",function(){return nn(n),ks().onSpreadChange("odd")}),On(),ss(88,"svg",46),us(89,"path",60),ls(),Mn(),ss(90,"span",61),Qs(91,"Odd Spreads"),ls(),ls(),ss(92,"button",62),ms("click",function(){return nn(n),ks().onSpreadChange("even")}),On(),ss(93,"svg",46),us(94,"path",63),ls(),Mn(),ss(95,"span",64),Qs(96,"Even Spreads"),ls(),ls(),ss(97,"button",65),On(),ss(98,"svg",66),us(99,"path",67),us(100,"path",68),us(101,"circle",69),ls(),Mn(),ss(102,"span",70),Qs(103,"Document Properties\u2026"),ls(),ls(),ls(),ls()}if(2&e){var i=ks();Ls("top",i.secondaryToolbarTop)("transform","scale("+i.mobileFriendlyZoomScale+")")("transform-origin","right top"),xo(2),Fs("invisible",!i.showPresentationModeButton),xo(5),Fs("invisible",!i.showOpenFileButton),xo(5),Fs("invisible",!i.showPrintButton),xo(5),Fs("invisible",!i.showDownloadButton),xo(5),Fs("invisible",!i.showBookmarkButton),xo(5),Fs("invisible",!i.showPagingButtons),xo(5),Fs("invisible",!i.showPagingButtons),os("disabled",i.disablePreviousPage),xo(5),Fs("invisible",!i.showPagingButtons),os("disabled",i.disableNextPage),xo(5),Fs("invisible",!i.showPagingButtons),xo(5),Fs("invisible",!i.showRotateButton),xo(5),Fs("invisible",!i.showRotateButton),xo(5),Fs("invisible",!i.showHandToolButton),xo(5),Fs("invisible",!i.showHandToolButton),xo(5),Fs("invisible",!i.showScrollingButton),xo(5),Fs("invisible",!i.showScrollingButton),xo(5),Fs("invisible",!i.showScrollingButton),xo(5),Fs("invisible",!i.showSpreadButton),xo(5),Fs("invisible",!i.showSpreadButton),xo(5),Fs("invisible",!i.showSpreadButton),xo(5),Fs("invisible",!i.showPropertiesButton)}}function TE(e,t){1&e&&Cs(0,0,["*ngTemplateOutlet","customSidebar ? customSidebar : defaultSidebar"])}function IE(e,t){if(1&e){var n=fs();ss(0,"div",2),ss(1,"div",3),us(2,"pdf-sidebar-toolbar"),ls(),ss(3,"pdf-sidebar-content",4),ms("thumbnailDrawn",function(e){return nn(n),ks().thumbnailDrawn.emit(e)}),ls(),us(4,"div",5),ls()}if(2&e){var i=ks();Ls("top",i.sidebarPositionTop),xo(1),Ls("display",i.hideSidebarToolbar?"none":""),xo(2),os("customThumbnail",i.customThumbnail)("hideSidebarToolbar",i.hideSidebarToolbar)}}var RE=["*"],LE=["root"],FE=["pdfSecondaryToolbarComponent"],BE=["pdfsidebar"];function VE(e,t){1&e&&us(0,"link",48)}function zE(e,t){1&e&&us(0,"pdf-dark-theme")}function NE(e,t){1&e&&us(0,"pdf-light-theme")}function HE(e,t){1&e&&Cs(0,0,["*ngTemplateOutlet","customFreeFloatingBar ? customFreeFloatingBar : defaultFreeFloatingBar"])}function jE(e,t){}function UE(e,t){if(1&e&&(ss(0,"div",3),hs(1,0),ls()),2&e){var n=ks(),i=is(4);Ls("transform","scale("+n.mobileFriendlyZoomScale+")")("transform-origin","left center")("left",n.findbarLeft)("top",n.findbarTop),Fs("invisible",!n.showFindButton),xo(1),os("ngTemplateOutlet",n.customFindbarButtons?n.customFindbarButtons:i)}}function WE(e,t){1&e&&(us(0,"pdf-find-input-area",4),us(1,"pdf-findbar-options-one-container"),us(2,"pdf-findbar-options-two-container"),us(3,"pdf-findbar-options-three-container"),us(4,"pdf-findbar-message-container")),2&e&&os("customFindbarInputArea",ks().customFindbarInputArea)}function GE(e,t){1&e&&(ss(0,"div",2),us(1,"pdf-search-input-field"),us(2,"pdf-find-previous"),us(3,"pdf-find-next"),ls())}var qE=["button"],YE="[_nghost-%COMP%]{margin-top:0}[_nghost-%COMP%]:focus{outline:0}button[_ngcontent-%COMP%]:focus, svg[_ngcontent-%COMP%]:focus{outline:0}",ZE=["button1"],QE=["button2"],XE="[_nghost-%COMP%]{margin-top:-1px}[_nghost-%COMP%]:focus{outline:0}button[_ngcontent-%COMP%]:focus, svg[_ngcontent-%COMP%]:focus{outline:0}",KE="button[_ngcontent-%COMP%]   svg[_ngcontent-%COMP%]{margin-top:-2px}[_nghost-%COMP%]:focus{outline:0}button[_ngcontent-%COMP%]:focus, svg[_ngcontent-%COMP%]:focus{outline:0}";function JE(e,t){1&e&&Cs(0,0,["*ngTemplateOutlet","customToolbar ? customToolbar : defaultToolbar"])}function $E(e,t){if(1&e&&(ss(0,"div",7),ss(1,"div",8),us(2,"pdf-toggle-sidebar",9),us(3,"pdf-find-button",10),us(4,"pdf-paging-area",11),ls(),us(5,"pdf-zoom-toolbar",12),ss(6,"div",13),us(7,"pdf-hand-tool",14),us(8,"pdf-select-tool",15),us(9,"pdf-rotate-page",16),us(10,"pdf-presentation-mode",17),us(11,"pdf-open-file",18),us(12,"pdf-print",19),us(13,"pdf-download",20),us(14,"pdf-bookmark",21),us(15,"pdf-toggle-secondary-toolbar",22),ls(),ls()),2&e){var n=ks();xo(2),os("showSidebarButton",n.showSidebarButton),xo(1),os("showFindButton",n.showFindButton)("textLayer",n.textLayer),xo(1),os("showPagingButtons",n.showPagingButtons),xo(1),os("showZoomButtons",n.showZoomButtons)("zoomLevels",n.zoomLevels),xo(2),os("showHandToolButton",n.showHandToolButton),xo(1),os("showSelectToolButton",n.showHandToolButton),xo(1),os("showRotateButton",n.showRotateButton),xo(1),os("showPresentationModeButton",n.showPresentationModeButton),xo(1),os("showOpenFileButton",n.showOpenFileButton),xo(1),os("showPrintButton",n.showPrintButton),xo(1),os("showDownloadButton",n.showDownloadButton),xo(1),os("showBookmarkButton",n.showBookmarkButton),xo(1),os("showSecondaryToolbarButton",n.showSecondaryToolbarButton)}}var eD=["sizeSelector"];function tD(e,t){if(1&e&&(ss(0,"option",5),Qs(1),ls()),2&e){var n=t.$implicit;os("id",n.id),$a("value",n.value)("data-l10n-id",n.dataL10nId)("data-l10n-args",n.dataL10nArgs),xo(1),Ks(" ",n.displayValue," ")}}var nD=["thumbnailViewTemplate"];function iD(e,t){1&e&&Cs(0,0,["*ngTemplateOutlet","customThumbnail ? customThumbnail : defaultThumbnail"])}function rD(e,t){1&e&&(ss(0,"a",8),ss(1,"div",9),us(2,"div",10),ls(),ls())}var oD="undefined"!=typeof window&&!!window.MSInputMethodContext&&!!document.documentMode,aD=/Edge\/\d./i.test(navigator.userAgent),sD="undefined"==typeof ReadableStream||void 0===Promise.allSettled,lD={cursorToolOnLoad:0,defaultUrl:"",defaultZoomValue:"",disableHistory:!1,disablePageLabels:!1,enablePrintAutoRotate:!1,enableWebGL:!1,eventBusDispatchToDOM:!1,externalLinkRel:"noopener noreferrer nofollow",externalLinkTarget:0,historyUpdateUrl:!1,imageResourcesPath:"./images/",maxCanvasPixels:16777216,pdfBugEnabled:!1,removePageBorders:!1,renderer:"canvas",renderInteractiveForms:!0,sidebarViewOnLoad:-1,scrollModeOnLoad:-1,spreadModeOnLoad:-1,textLayerMode:1,useOnlyCssZoom:!1,viewOnLoad:0,cMapPacked:!0,cMapUrl:function(){return"./"+lD.assetsFolder+"/cmaps/"},disableAutoFetch:!1,disableCreateObjectURL:!1,disableFontFace:!1,disableRange:!1,disableStream:!1,isEvalSupported:!0,maxImageSize:-1,pdfBug:!1,postMessageTransfers:!0,verbosity:1,workerPort:null,assetsFolder:"assets",workerSrc:function(){return oD||aD||sD?"./"+lD.assetsFolder+"/pdf.worker-es5.js":"./"+lD.assetsFolder+"/pdf.worker.js"}};window.pdfDefaultOptions?lD=window.pdfDefaultOptions:window.pdfDefaultOptions=lD;var uD={ERRORS:0,WARNINGS:1,INFOS:5};uD[uD.ERRORS]="ERRORS",uD[uD.WARNINGS]="WARNINGS",uD[uD.INFOS]="INFOS";var cD={FOUND:0,NOT_FOUND:1,WRAPPED:2,PENDING:3};cD[cD.FOUND]="FOUND",cD[cD.NOT_FOUND]="NOT_FOUND",cD[cD.WRAPPED]="WRAPPED",cD[cD.PENDING]="PENDING";var dD,hD,fD,pD=["toolbarViewer","numPages","pageNumber","scaleSelectContainer","customScaleOption","previous","next","zoomIn","zoomOut","viewFind","openFile","print","presentationMode","download","viewBookmark","secondaryToolbar","secondaryToolbarToggle","secondaryToolbarButtonContainer","secondaryPresentationMode","secondaryOpenFile","secondaryPrint","secondaryDownload","secondaryViewBookmark","firstPage","lastPage","pageRotateCw","pageRotateCcw","cursorSelectTool","cursorHandTool","scrollVertical","scrollHorizontal","scrollWrapped","spreadNone","spreadOdd","spreadEven","documentProperties","contextFirstPage","contextLastPage","contextPageRotateCw","contextPageRotateCcw","outerContainer","viewerContainer","sidebarToggle","viewThumbnail","viewOutline","viewAttachments","thumbnailView","outlineView","attachmentsView","outerContainer","sidebarResizer","findbar","viewFind","findInput","findInputMultiline","findHighlightAll","findMatchCase","findEntireWord","findMultipleSearchTexts","findIgnoreAccents","findMsg","findResultsCount","findPrevious","findNext","findFuzzy","passwordOverlay","passwordText","password","passwordSubmit","passwordCancel","documentPropertiesOverlay","documentPropertiesClose","fileNameField","fileSizeField","titleField","authorField","subjectField","keywordsField","creationDateField","modificationDateField","creatorField","producerField","versionField","pageCountField","pageSizeField","linearizedField","errorWrapper","errorMessage","errorClose","errorMoreInfo","errorShowMore","errorShowLess","scaleSelectContainer","viewAttachments","viewLayers","viewThumbnail","viewOutline"],gD=((fD=function(){function e(){A(this,e)}return m(e,[{key:"addMissingStandardWidgets",value:function(){var e=this;this.dummyComponentsContainer=document.getElementsByClassName("dummy-pdf-viewer-components")[0];var t=this.dummyComponentsContainer;if(t)for(var n=0;n<t.children.length;n++){var i=t.firstChild;i&&t.removeChild(i)}if(pD.forEach(function(t){if(e.needsDummyWidget(t)){var n=document.createElement("span");n.id=t,n.className="invisible dummy-component",e.dummyComponentsContainer.appendChild(n)}}),this.needsDummyWidget("scaleSelect")){var r=document.createElement("select");r.id="scaleSelect",r.className="invisible dummy-component",this.dummyComponentsContainer.appendChild(r)}}},{key:"needsDummyWidget",value:function(e){return!document.getElementById(e)}}]),e}()).\u0275fac=function(e){return new(e||fD)},fD.\u0275cmp=ft({type:fD,selectors:[["pdf-dummy-components"]],decls:1,vars:0,consts:[[1,"invisible","dummy-pdf-viewer-components"]],template:function(e,t){1&e&&us(0,"span",0)},encapsulation:2}),fD),vD=((hD=function e(){var t=this;A(this,e),this.onPDFJSInit=new W,this.pdfjsVersion=new MP(1),window.pdfjsLib&&window.pdfjsLib.version?this.pdfjsVersion.next(window.pdfjsLib.version):this.onPDFJSInit.subscribe(function(){t.pdfjsVersion.next(window.pdfjsLib.version)})}).\u0275prov=Re({token:hD,factory:hD.\u0275fac=function(e){return new(e||hD)},providedIn:"root"}),hD.ngInjectableDef=Le({factory:function(){return new hD},token:hD,providedIn:"root"}),hD),mD=((dD=function(){function e(t,n){var i=this;A(this,e),this.element=t,this.notificationService=n,this.showPresentationModeButton=!0,this.showOpenFileButton=!0,this.showPrintButton=!0,this.showDownloadButton=!0,this.showBookmarkButton=!0,this.showPagingButtons=!0,this.showRotateButton=!0,this.showHandToolButton=!0,this.showScrollingButton=!0,this.showSpreadButton=!0,this.showPropertiesButton=!0,this.spreadChange=new Fu,this.secondaryMenuIsEmpty=new Fu,this.disablePreviousPage=!0,this.disableNextPage=!0;var r=this.notificationService.onPDFJSInit.subscribe(function(){i.onPdfJsInit(),r.unsubscribe()})}return m(e,[{key:"onPdfJsInit",value:function(){var e=this,t=window.PDFViewerApplication;t.eventBus.on("pagechanging",function(){e.updateUIState()}),t.eventBus.on("pagerendered",function(){e.updateUIState()})}},{key:"updateUIState",value:function(){var e=this;setTimeout(function(){var t=window.PDFViewerApplication,n=t.pdfViewer.currentPageNumber,i=document.getElementById("previousPage");i&&(e.disablePreviousPage=Number(n)<=1,i.disabled=e.disablePreviousPage);var r=document.getElementById("nextPage");r&&(e.disableNextPage=n===t.pagesCount,r.disabled=e.disableNextPage)})}},{key:"onSpreadChange",value:function(e){this.spreadChange.emit(e)}},{key:"ngOnChanges",value:function(e){var t=this;setTimeout(function(){return t.checkVisibility()})}},{key:"onResize",value:function(){var e=this;setTimeout(function(){return e.checkVisibility()})}},{key:"ngAfterViewInit",value:function(){var e=this;setTimeout(function(){return e.checkVisibility()})}},{key:"ngOnInit",value:function(){var e=this;setTimeout(function(){return e.checkVisibility()})}},{key:"checkVisibility",value:function(){var e=0,t=this.element.nativeElement.children.item(0);if(t){var n=t.children.item(0);n&&n instanceof HTMLElement&&(e=this.checkVisibilityRecursively(n))}this.secondaryMenuIsEmpty.emit(0===e)}},{key:"checkVisibilityRecursively",value:function(e){if("none"===e.style.display)return 0;if(e.classList.contains("hidden"))return 0;if(e.classList.contains("invisible"))return 0;if("none"===window.getComputedStyle(e).display)return 0;if(e instanceof HTMLButtonElement||e instanceof HTMLAnchorElement)return 1;var t=0,n=e.children;if(n&&n.length)for(var i=0;i<n.length&&0===t;i++){var r=n.item(i);r&&r instanceof HTMLElement&&(t+=this.checkVisibilityRecursively(r))}return t}},{key:"previousPage",value:function(){window.PDFViewerApplication.eventBus.dispatch("previouspage")}},{key:"nextPage",value:function(){window.PDFViewerApplication.eventBus.dispatch("nextpage")}}]),e}()).\u0275fac=function(e){return new(e||dD)(rs(Cl),rs(vD))},dD.\u0275cmp=ft({type:dD,selectors:[["pdf-secondary-toolbar"]],hostBindings:function(e,t){1&e&&ms("resize",function(){return t.onResize()},!1,Ir)},inputs:{showPresentationModeButton:"showPresentationModeButton",showOpenFileButton:"showOpenFileButton",showPrintButton:"showPrintButton",showDownloadButton:"showDownloadButton",showBookmarkButton:"showBookmarkButton",showPagingButtons:"showPagingButtons",showRotateButton:"showRotateButton",showHandToolButton:"showHandToolButton",showScrollingButton:"showScrollingButton",showSpreadButton:"showSpreadButton",showPropertiesButton:"showPropertiesButton",customSecondaryToolbar:"customSecondaryToolbar",secondaryToolbarTop:"secondaryToolbarTop",mobileFriendlyZoomScale:"mobileFriendlyZoomScale"},outputs:{spreadChange:"spreadChange",secondaryMenuIsEmpty:"secondaryMenuIsEmpty"},features:[Mt],decls:3,vars:1,consts:[[3,"ngTemplateOutlet"],["defaultSecondaryToolbar",""],["id","secondaryToolbar",1,"secondaryToolbar","hidden","doorHangerRight"],["id","secondaryToolbarButtonContainer"],["type","button","id","secondaryPresentationMode","title","Switch to Presentation Mode","data-l10n-id","presentation_mode",1,"secondaryToolbarButton","visibleLargeView"],["viewBox","0 0 24 24",2,"width","22px","height","22px"],["fill","currentColor","d","M5,5H10V7H7V10H5V5M14,5H19V10H17V7H14V5M17,14H19V19H14V17H17V14M10,17V19H5V14H7V17H10Z"],["data-l10n-id","presentation_mode_label"],["type","button","id","secondaryOpenFile","title","Open File","data-l10n-id","open_file",1,"secondaryToolbarButton","visibleMediumView"],["fill","currentColor","d","M14,2L20,8V20A2,2 0 0,1 18,22H6A2,2 0 0,1 4,20V4A2,2 0 0,1 6,2H14M18,20V9H13V4H6V20H18M12,12L16,16H13.5V19H10.5V16H8L12,12Z"],["data-l10n-id","open_file_label"],["type","button","id","secondaryPrint","title","Print","data-l10n-id","print",1,"secondaryToolbarButton","visibleSmallView"],["fill","currentColor","d","M18,3H6V7H18M19,12A1,1 0 0,1 18,11A1,1 0 0,1 19,10A1,1 0 0,1 20,11A1,1 0 0,1 19,12M16,19H8V14H16M19,8H5A3,3 0 0,0 2,11V17H6V21H18V17H22V11A3,3 0 0,0 19,8Z"],["data-l10n-id","print_label"],["type","button","id","secondaryDownload","title","Download","data-l10n-id","download",1,"secondaryToolbarButton","visibleSmallView"],["fill","currentColor","d","M14,2L20,8V20A2,2 0 0,1 18,22H6A2,2 0 0,1 4,20V4A2,2 0 0,1 6,2H14M18,20V9H13V4H6V20H18M12,19L8,15H10.5V12H13.5V15H16L12,19Z"],["data-l10n-id","download_label"],["href","#","id","secondaryViewBookmark","title","Current view (copy or open in new window)","data-l10n-id","bookmark",1,"secondaryToolbarButton","bookmark","visibleTinyView"],["fill","currentColor","d","M17,18L12,15.82L7,18V5H17M17,3H7A2,2 0 0,0 5,5V21L12,18L19,21V5C19,3.89 18.1,3 17,3Z"],["data-l10n-id","bookmark_label"],["type","button","id","firstPage","title","Go to First Page","data-l10n-id","first_page",1,"secondaryToolbarButton","firstPage","visibleLargeView"],["viewBox","0 0 24 24",2,"width","24px","height","24px"],["fill","currentColor","d","M18.41,16.59L13.82,12L18.41,7.41L17,6L11,12L17,18L18.41,16.59M6,6H8V18H6V6Z"],["data-l10n-id","first_page_label"],["type","button","id","previousPage","title","Go to Previous Page","data-l10n-id","previous",1,"secondaryToolbarButton","previousPage","visibleTinyView",3,"disabled","click"],["fill","currentColor","d","M15.41,16.58L10.83,12L15.41,7.41L14,6L8,12L14,18L15.41,16.58Z"],["data-l10n-id","previous_label"],["type","button","id","nextPage","title","Go to Next Page","data-l10n-id","next",1,"secondaryToolbarButton","nextPage","visibleTinyView",3,"disabled","click"],["fill","currentColor","d","M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z"],["data-l10n-id","next_label"],["type","button","id","lastPage","title","Go to Last Page","data-l10n-id","last_page",1,"secondaryToolbarButton","lastPage","visibleLargeView"],["fill","currentColor","d","M5.59,7.41L10.18,12L5.59,16.59L7,18L13,12L7,6L5.59,7.41M16,6H18V18H16V6Z"],["data-l10n-id","last_page_label"],["type","button","id","pageRotateCw","title","Rotate Clockwise","data-l10n-id","page_rotate_cw",1,"secondaryToolbarButton","rotateCw","visibleXLView"],["fill","currentColor","d","M12 3C7.03 3 3 7.03 3 12S7.03 21 12 21C14 21 15.92 20.34 17.5 19.14L16.06 17.7C14.87 18.54 13.45 19 12 19C8.13 19 5 15.87 5 12S8.13 5 12 5 19 8.13 19 12H16L20 16L24 12H21C21 7.03 16.97 3 12 3"],["data-l10n-id","page_rotate_cw_label"],["type","button","id","pageRotateCcw","title","Rotate Counterclockwise","data-l10n-id","page_rotate_ccw",1,"secondaryToolbarButton","rotateCcw","visibleXLView"],["fill","currentColor","d","M12 3C7.03 3 3 7.03 3 12H0L4 16L8 12H5C5 8.13 8.13 5 12 5S19 8.13 19 12 15.87 19 12 19C10.55 19 9.13 18.54 7.94 17.7L6.5 19.14C8.08 20.34 10 21 12 21C16.97 21 21 16.97 21 12S16.97 3 12 3"],["data-l10n-id","page_rotate_ccw_label"],["type","button","id","cursorSelectTool","title","Enable Text Selection Tool","data-l10n-id","cursor_text_select_tool",1,"secondaryToolbarButton","toggled","visibleXXLView"],["fill","currentColor","d","M2 4C2 2.89 2.9 2 4 2H7V4H4V7H2V4M22 4V7H20V4H17V2H20C21.1 2 22 2.89 22 4M2 20V17H4V20H7V22H4C2.9 22 2 21.11 2 20M10 2H14V4H10V2M10 20H14V22H10V20M2 10H4V14H2V10M18.5 13C20.4 13 22 14.6 22 16.5C22 19.1 18.5 23 18.5 23C18.5 23 15 19.1 15 16.5C15 14.6 16.6 13 18.5 13M18.5 17.8C19.2 17.8 19.8 17.2 19.7 16.6C19.7 16 19.1 15.4 18.5 15.4C17.9 15.4 17.3 15.9 17.3 16.6C17.3 17.2 17.8 17.8 18.5 17.8M20 10H22V12.34C21.42 11.84 20.74 11.45 20 11.23V10Z"],["data-l10n-id","cursor_text_select_tool_label"],["type","button","id","cursorHandTool","title","Enable Hand Tool","data-l10n-id","cursor_hand_tool",1,"secondaryToolbarButton","visibleXXLView"],["fill","currentColor","d","M13,6V11H18V7.75L22.25,12L18,16.25V13H13V18H16.25L12,22.25L7.75,18H11V13H6V16.25L1.75,12L6,7.75V11H11V6H7.75L12,1.75L16.25,6H13Z"],["data-l10n-id","cursor_hand_tool_label"],["type","button","id","scrollVertical","title","Use Vertical Scrolling","data-l10n-id","scroll_vertical",1,"secondaryToolbarButton","scrollVertical","toggled"],[2,"width","24px","height","24px","margin-top","3px"],["fill","currentColor","d","M9.5 4c1 0 1.5.5 1.5 1.5v5c0 1-.5 1.5-1.5 1.5h-3c-1 0-1.5-.5-1.5-1.5v-5C5 4.5 5.5 4 6.5 4zM11 0v.5c0 1-.5 1.5-1.5 1.5h-3C5.5 2 5 1.5 5 .5V0h6zM11 16v-.5c0-1-.5-1.5-1.5-1.5h-3c-1 0-1.5.5-1.5 1.5v.5h6z"],["data-l10n-id","scroll_vertical_label"],["type","button","id","scrollHorizontal","title","Use Horizontal Scrolling","data-l10n-id","scroll_horizontal",1,"secondaryToolbarButton","scrollHorizontal"],["fill","currentColor","d","M0 4h1.5c1 0 1.5.5 1.5 1.5v5c0 1-.5 1.5-1.5 1.5H0zM9.5 4c1 0 1.5.5 1.5 1.5v5c0 1-.5 1.5-1.5 1.5h-3c-1 0-1.5-.5-1.5-1.5v-5C5 4.5 5.5 4 6.5 4zM16 4h-1.5c-1 0-1.5.5-1.5 1.5v5c0 1 .5 1.5 1.5 1.5H16z"],["data-l10n-id","scroll_horizontal_label"],["type","button","id","scrollWrapped","title","Use Wrapped Scrolling","data-l10n-id","scroll_wrapped",1,"secondaryToolbarButton","scrollWrapped"],["fill","currentColor","d","M5.5 4c1 0 1.5.5 1.5 1.5v5c0 1-.5 1.5-1.5 1.5h-3c-1 0-1.5-.5-1.5-1.5v-5C1 4.5 1.5 4 2.5 4zM7 0v.5C7 1.5 6.5 2 5.5 2h-3C1.5 2 1 1.5 1 .5V0h6zM7 16v-.5c0-1-.5-1.5-1.5-1.5h-3c-1 0-1.5.5-1.5 1.5v.5h6zM13.5 4c1 0 1.5.5 1.5 1.5v5c0 1-.5 1.5-1.5 1.5h-3c-1 0-1.5-.5-1.5-1.5v-5c0-1 .5-1.5 1.5-1.5zM15 0v.5c0 1-.5 1.5-1.5 1.5h-3C9.5 2 9 1.5 9 .5V0h6zM15 16v-.507c0-1-.5-1.5-1.5-1.5h-3C9.5 14 9 14.5 9 15.5v.5h6z"],["data-l10n-id","scroll_wrapped_label"],["type","button","id","spreadNone","title","Do not join page spreads","data-l10n-id","spread_none",1,"secondaryToolbarButton","spreadNone","toggled",3,"click"],["height","16","width","16"],["fill","currentColor","d","M6 3c-1 0-1.5.5-1.5 1.5v7c0 1 .5 1.5 1.5 1.5h4c1 0 1.5-.5 1.5-1.5v-7c0-1-.5-1.5-1.5-1.5z"],["data-l10n-id","spread_none_label"],["type","button","id","spreadOdd","title","Join page spreads starting with odd-numbered pages","data-l10n-id","spread_odd",1,"secondaryToolbarButton","spreadOdd",3,"click"],["fill","currentColor","d","M10.56 3.5C9.56 3.5 9 4 9 5v6.5c0 1 .5 1.5 1.5 1.5h4c1 0 1.5-.5 1.5-1.5V5c0-1-.5-1.5-1.5-1.5zm1.93 1.2c.8 0 1.4.2 1.8.64.5.4.7 1 .7 1.7 0 .5-.2 1-.5 1.44-.2.3-.6.6-1 .93l-.6.4c-.4.3-.6.4-.7.55-.1.1-.2.2-.3.4h3.2v1.27h-5c0-.5.1-1 .3-1.43.2-.49.7-1 1.5-1.54.7-.5 1.1-.8 1.3-1.02.3-.3.4-.7.4-1.05 0-.3-.1-.6-.3-.77-.2-.2-.4-.3-.7-.3-.4 0-.7.2-.9.5-.1.2-.1.5-.2.9h-1.4c0-.6.2-1.1.3-1.5.4-.7 1.1-1.1 2-1.1zM1.54 3.5C.54 3.5 0 4 0 5v6.5c0 1 .5 1.5 1.54 1.5h4c1 0 1.5-.5 1.5-1.5V5c0-1-.5-1.5-1.5-1.5zm1.8 1.125H4.5V12H3V6.9H1.3v-1c.5 0 .8 0 .97-.03.33-.07.53-.17.73-.37.1-.2.2-.3.25-.5.05-.2.05-.3.05-.3z"],["data-l10n-id","spread_odd_label"],["type","button","id","spreadEven","title","Join page spreads starting with even-numbered pages","data-l10n-id","spread_even",1,"secondaryToolbarButton","spreadEven",3,"click"],["fill","currentColor","d","M1.5 3.5C.5 3.5 0 4 0 5v6.5c0 1 .5 1.5 1.5 1.5h4c1 0 1.5-.5 1.5-1.5V5c0-1-.5-1.5-1.5-1.5zm2 1.2c.8 0 1.4.2 1.8.6.5.4.7 1 .7 1.7 0 .5-.2 1-.5 1.4-.2.3-.5.7-1 1l-.6.4c-.4.3-.6.4-.75.56-.15.14-.25.24-.35.44H6v1.3H1c0-.6.1-1.1.3-1.5.3-.6.7-1 1.5-1.6.7-.4 1.1-.8 1.28-1 .32-.3.42-.6.42-1 0-.3-.1-.6-.23-.8-.17-.2-.37-.3-.77-.3s-.7.1-.9.5c-.04.2-.1.5-.1.9H1.1c0-.6.1-1.1.3-1.5.4-.7 1.1-1.1 2.1-1.1zM10.54 3.54C9.5 3.54 9 4 9 5v6.5c0 1 .5 1.5 1.54 1.5h4c.96 0 1.46-.5 1.46-1.5V5c0-1-.5-1.46-1.5-1.46zm1.9.95c.7 0 1.3.2 1.7.5.4.4.6.8.6 1.4 0 .4-.1.8-.4 1.1-.2.2-.3.3-.5.4.1 0 .3.1.6.3.4.3.5.8.5 1.4 0 .6-.2 1.2-.6 1.6-.4.5-1.1.7-1.9.7-1 0-1.8-.3-2.2-1-.14-.29-.24-.69-.24-1.29h1.4c0 .3 0 .5.1.7.2.4.5.5 1 .5.3 0 .5-.1.7-.3.2-.2.3-.5.3-.8 0-.5-.2-.8-.6-.95-.2-.05-.5-.15-1-.15v-1c.5 0 .8-.1 1-.14.3-.1.5-.4.5-.9 0-.3-.1-.5-.2-.7-.2-.2-.4-.3-.7-.3-.3 0-.6.1-.75.3-.2.2-.2.5-.2.86h-1.34c0-.4.1-.7.19-1.1 0-.12.2-.32.4-.62.2-.2.4-.3.7-.4.3-.1.6-.1 1-.1z"],["data-l10n-id","spread_even_label"],["type","button","id","documentProperties","title","Document Properties\u2026","data-l10n-id","document_properties",1,"secondaryToolbarButton","documentProperties"],["viewBox","0 0 16 16",2,"width","16px","height","16px","margin-top","3px"],["fill","currentColor","d","M8 16a8 8 0 1 1 8-8 8.009 8.009 0 0 1-8 8zM8 2a6 6 0 1 0 6 6 6.006 6.006 0 0 0-6-6z"],["fill","currentColor","d","M8 7a1 1 0 0 0-1 1v3a1 1 0 0 0 2 0V8a1 1 0 0 0-1-1z"],["fill","currentColor","cx","8","cy","5","r","1.188"],["data-l10n-id","document_properties_label"]],template:function(e,t){if(1&e&&(hs(0,0),ns(1,ME,104,48,"ng-template",null,1,tc)),2&e){var n=is(2);os("ngTemplateOutlet",t.customSecondaryToolbar?t.customSecondaryToolbar:n)}},directives:[Oh],styles:["svg[_ngcontent-%COMP%]{position:absolute;display:inline-block;top:0;left:0}"]}),dD),yD={SELECT:0,HAND:1,ZOOM:2};yD[yD.SELECT]="SELECT",yD[yD.HAND]="HAND",yD[yD.ZOOM]="ZOOM";var bD,wD,_D,kD,xD,AD,CD,SD,PD,ED,DD,OD,MD,TD,ID,RD,LD,FD,BD,VD,zD,ND,HD,jD,UD,WD,GD,qD,YD,ZD,QD,XD,KD,JD,$D,eO,tO,nO,iO,rO,oO,aO,sO,lO,uO,cO,dO,hO,fO,pO=function(){function e(t){A(this,e),this._zone=t,this.startX=0,this.startY=0,this.initialPinchDistance=0,this.pinchScale=1,this.isMobile()&&this.initializePinchZoom()}return m(e,[{key:"isMobile",value:function(){return"ontouchstart"in document.documentElement}},{key:"onViewerTouchStart",value:function(e){if(this.initialPinchDistance=0,2===e.touches.length){var t=this.container.getBoundingClientRect();e.touches[0].pageX>=t.left&&e.touches[0].pageX<=t.right&&e.touches[0].pageY>=t.top&&e.touches[1].pageX>=t.left&&e.touches[1].pageX<=t.right&&e.touches[1].pageY>=t.top&&(this.startX=(e.touches[0].pageX+e.touches[1].pageX)/2,this.startY=(e.touches[0].pageY+e.touches[1].pageY)/2,this.initialPinchDistance=Math.hypot(e.touches[1].pageX-e.touches[0].pageX,e.touches[1].pageY-e.touches[0].pageY),e.preventDefault(),e.stopPropagation())}}},{key:"onViewerTouchMove",value:function(e){var t=window.PDFViewerApplicationOptions;if(!(this.initialPinchDistance<=0||2!==e.touches.length)){1!==this.pinchScale&&e.preventDefault();var n=Math.hypot(e.touches[1].pageX-e.touches[0].pageX,e.touches[1].pageY-e.touches[0].pageY),i=this.startX+this.container.scrollLeft,r=this.startY+this.container.scrollTop;this.pinchScale=n/this.initialPinchDistance;var o=Number(t.get("minZoom"));o||(o=.1),this.pinchScale<o&&(this.pinchScale=o);var a=Number(t.get("maxZoom"));a||(a=10),this.pinchScale>a&&(this.pinchScale=a),this.viewer.style.transform="scale(".concat(this.pinchScale,")"),this.viewer.style.transformOrigin="".concat(i,"px ").concat(r,"px"),e.preventDefault(),e.stopPropagation()}}},{key:"onViewerTouchEnd",value:function(e){var t=window.PDFViewerApplication;if(!(this.initialPinchDistance<=0)){this.viewer.style.transform="none",this.viewer.style.transformOrigin="unset",t.pdfViewer.currentScale*=this.pinchScale;var n=this.container.getBoundingClientRect(),i=this.startY-n.top;this.container.scrollLeft+=(this.startX-n.left)*(this.pinchScale-1),this.container.scrollTop+=i*(this.pinchScale-1),this.resetPinchZoomParams(),e.preventDefault(),e.stopPropagation()}}},{key:"resetPinchZoomParams",value:function(){this.startX=this.startY=this.initialPinchDistance=0,this.pinchScale=1}},{key:"initializePinchZoom",value:function(){var e=this;this.viewer=document.getElementById("viewer"),this.container=document.getElementById("viewerContainer"),this._zone.runOutsideAngular(function(){document.addEventListener("touchstart",e.onViewerTouchStart.bind(e)),document.addEventListener("touchmove",e.onViewerTouchMove.bind(e),{passive:!1}),document.addEventListener("touchend",e.onViewerTouchEnd.bind(e))})}},{key:"destroyPinchZoom",value:function(){this.isMobile()&&(document.removeEventListener("touchstart",this.onViewerTouchStart),document.removeEventListener("touchmove",this.onViewerTouchMove),document.removeEventListener("touchend",this.onViewerTouchEnd))}}]),e}(),gO=((fO=function(){function e(t,n){A(this,e),this.elementRef=t,this.ref=n,this.sidebarVisible=!0,this.showSidebarButton=!0,this.thumbnailDrawn=new Fu,this.hideSidebarToolbar=!0}return m(e,[{key:"showToolbarWhenNecessary",value:function(){var e=this.elementRef.nativeElement.querySelectorAll("button"),t=0;e.forEach(function(e){e.hidden||t++}),this.hideSidebarToolbar=t<=1,this.ref.markForCheck()}}]),e}()).\u0275fac=function(e){return new(e||fO)(rs(Cl),rs(Kl))},fO.\u0275cmp=ft({type:fO,selectors:[["pdf-sidebar"]],inputs:{sidebarVisible:"sidebarVisible",showSidebarButton:"showSidebarButton",sidebarPositionTop:"sidebarPositionTop",customSidebar:"customSidebar",customThumbnail:"customThumbnail"},outputs:{thumbnailDrawn:"thumbnailDrawn"},ngContentSelectors:RE,decls:4,vars:1,consts:[[4,"ngTemplateOutlet"],["defaultSidebar",""],["id","sidebarContainer"],["id","additionalSidebarContainer"],[3,"customThumbnail","hideSidebarToolbar","thumbnailDrawn"],["id","sidebarResizer",1,"hidden"]],template:function(e,t){if(1&e&&(As(),ss(0,"div"),ns(1,TE,1,0,"ng-content",0),ls(),ns(2,IE,5,6,"ng-template",null,1,tc)),2&e){var n=is(3);xo(1),os("ngTemplateOutlet",t.customSidebar?t.customSidebar:n)}},directives:function(){return[Oh,sM,aM]},styles:[""]}),fO),vO=((hO=function(){function e(t,n,i,r){A(this,e),this.ngZone=t,this.platformId=n,this.notificationService=i,this.location=r,this.customFindbarButtons=void 0,this.srcChange=new Fu,this.authorization=void 0,this.httpHeaders=void 0,this.contextMenuAllowed=!0,this.afterPrint=new Fu,this.beforePrint=new Fu,this.currentZoomFactor=new Fu,this.enablePrint=!0,this.delayFirstView=0,this.logLevel=uD.WARNINGS,this.enablePinchOnMobile=!1,this.minifiedJSLibraries=!0,this.primaryMenuVisible=!0,this.printResolution=null,this.rotationChange=new Fu,this.minHeight=void 0,this._height="100%",this.useBrowserLocale=!1,this.backgroundColor="#e8e8eb",this.filenameForDownload="document.pdf",this.ignoreKeyboard=!1,this.ignoreKeys=[],this.acceptKeys=[],this.imageResourcesPath="./"+lD.assetsFolder+"/images/",this.language=void 0,this.listenToURL=!1,this.nameddest=void 0,this.password=void 0,this._showSidebarButton=!0,this.viewerPositionTop="32px",this.showUnverifiedSignatures=!1,this.showSidebarOnLoad=void 0,this.sidebarVisible=void 0,this.sidebarVisibleChange=new Fu,this.showFindButton=void 0,this.showPagingButtons=!0,this.showZoomButtons=!0,this.showPresentationModeButton=!1,this.showOpenFileButton=!0,this.showPrintButton=!0,this.showDownloadButton=!0,this.showBookmarkButton=!0,this.theme="light",this.showSecondaryToolbarButton=!0,this.hideKebabMenuForSecondaryToolbar=!1,this.showRotateButton=!0,this.handTool=!0,this.handToolChange=new Fu,this.showHandToolButton=!1,this.showScrollingButton=!0,this.showSpreadButton=!0,this.showPropertiesButton=!0,this.showBorders=!0,this.spreadChange=new Fu,this.thumbnailDrawn=new Fu,this._page=void 0,this.pageChange=new Fu,this.pageLabel=void 0,this.pageLabelChange=new Fu,this.pagesLoaded=new Fu,this.pageRendered=new Fu,this.pdfDownloaded=new Fu,this.pdfLoaded=new Fu,this.pdfLoadingFailed=new Fu,this.textLayer=void 0,this.textlayerRendered=new Fu,this.textLayerRendered=new Fu,this.updateFindMatchesCount=new Fu,this.updateFindState=new Fu,this.zoom=void 0,this.zoomChange=new Fu,this.zoomLevels=["auto","page-actual","page-fit","page-width",.5,1,1.25,1.5,2,3,4],this.maxZoom=10,this.minZoom=.1,this._mobileFriendlyZoom="100%",this.mobileFriendlyZoomScale=1,this.toolbarPaddingTop="0px",this.toolbarWidth="100%",this.toolbarWidthInPixels=100,this.secondaryToolbarTop=void 0,this.findbarTop=void 0,this.findbarLeft=void 0,this._top=void 0,this.shuttingDown=!1}return m(e,[{key:"src",set:function(e){e instanceof Uint8Array?this._src=e.buffer:e instanceof Blob?this._src=URL.createObjectURL(e):"string"==typeof e?(this._src=e,e.length>980&&e.length%4==0&&/^[a-zA-Z\d\/+]+={0,2}$/.test(e)&&console.error("The URL looks like a base64 encoded string. If so, please use the attribute base64 instead of src")):this._src=e}},{key:"base64Src",set:function(e){for(var t=window.atob(e),n=t.length,i=new Uint8Array(n),r=0;r<n;r++)i[r]=t.charCodeAt(r);this.src=i.buffer}},{key:"height",get:function(){return this._height},set:function(e){var t=this;this.minHeight=void 0,e?this._height=e:this.height="100%",setTimeout(function(){t.checkHeight()})}},{key:"showSidebarButton",get:function(){return this._showSidebarButton},set:function(e){this._showSidebarButton=e;var t=1;/msie\s|trident\//i.test(window.navigator.userAgent)&&(t=Number((this._mobileFriendlyZoom||"100").replace("%",""))/100),this.findbarLeft=this._showSidebarButton?(68*t).toString()+"px":"0px"}},{key:"page",get:function(){return this._page},set:function(e){this._page=e?Number(e):void 0}},{key:"mobileFriendlyZoom",get:function(){return this._mobileFriendlyZoom},set:function(e){var t;"true"==e?e="150%":"false"!=e&&null!=e||(e="100%"),this._mobileFriendlyZoom=e,String(e).includes("%")||(e=100*Number(e)+"%"),t=Number((e||"100").replace("%",""))/100,this.mobileFriendlyZoomScale=t,this.toolbarWidth=(100/t).toString()+"%",this.toolbarPaddingTop=8*(t-1)+"px",this.findbarLeft=this.showSidebarButton?(68*t).toString()+"px":"0px",this.secondaryToolbarTop=(36+36*(t-1)).toString()+"px",this.findbarTop=(36+52*(t-1)).toString()+"px"}},{key:"mobileZoom",set:function(e){this.mobileFriendlyZoom=e}},{key:"sidebarPositionTop",get:function(){return this._top?this._top:this.mobileFriendlyZoom?this.mobileFriendlyZoom.endsWith("%")?(2+.29*Number(this.mobileFriendlyZoom.substring(0,this.mobileFriendlyZoom.length-1))).toString()+"px":this.mobileFriendlyZoom.endsWith("px")?this.mobileFriendlyZoom:(16+.16*Number(this.mobileFriendlyZoom)).toString()+"px":"32px"}},{key:"calcViewerPositionTop",value:function(){if(this._top)this.viewerPositionTop=this._top;else{if(this.mobileFriendlyZoom){if(this.mobileFriendlyZoom.endsWith("%")){var e=Number(this.mobileFriendlyZoom.substring(0,this.mobileFriendlyZoom.length-1));return void(this.viewerPositionTop=this.isPrimaryMenuVisible()?(1+.32*e).toString()+"px":"0")}if(this.mobileFriendlyZoom.endsWith("px"))return void(this.viewerPositionTop=this.mobileFriendlyZoom)}this.viewerPositionTop=this.isPrimaryMenuVisible()?"32px":"0"}}},{key:"iOSVersionRequiresES5",value:function(){var e=navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/);return null!=e&&parseInt(e[1],10)<13}},{key:"loadViewer",value:function(){var e=this;if(window["pdfjs-dist/build/pdf"]){var t=!!window.MSInputMethodContext&&!!document.documentMode,n=/Edge\/\d./i.test(navigator.userAgent),i=this.iOSVersionRequiresES5(),r="undefined"==typeof ReadableStream||void 0===Promise.allSettled,o=this.minifiedJSLibraries?".min.js":".js",a=document.createElement("script"),s=lD.assetsFolder;r&&console.log("Using the ES5 version of the PDF viewer."),a.src=this.location.normalize(t||n||i||r?s+"/viewer-es5"+o:s+"/viewer"+o),a.type="text/javascript",a.async=!0,document.getElementsByTagName("head")[0].appendChild(a)}else setTimeout(function(){return e.loadViewer()},25)}},{key:"ngOnInit",value:function(){if(this.onResize(),Qh(this.platformId)){if(!window["pdfjs-dist/build/pdf"]){var e=!!window.MSInputMethodContext&&!!document.documentMode,t=/Edge\/\d./i.test(navigator.userAgent),n="undefined"==typeof ReadableStream||void 0===Promise.allSettled,i=this.iOSVersionRequiresES5(),r=this.minifiedJSLibraries?".min.js":".js";if(this.minifiedJSLibraries&&!lD.workerSrc().endsWith(".min.js")){var o=lD.workerSrc();lD.workerSrc=function(){return o.replace(".js",".min.js")}}var a=lD.assetsFolder,s=document.createElement("script");s.src=this.location.normalize(e||t||i||n?a+"/pdf-es5"+r:a+"/pdf"+r),s.type="text/javascript",s.async=!0,document.getElementsByTagName("head")[0].appendChild(s)}window.webViewerLoad||this.loadViewer()}}},{key:"ngAfterViewInit",value:function(){var e=this;this.shuttingDown||(window.webViewerLoad?this.doInitPDFViewer():setTimeout(function(){return e.ngAfterViewInit()},50))}},{key:"assignTabindexes",value:function(){if(this.startTabindex){var e=this.root.nativeElement.cloneNode(!0);e.classList.add("offscreen"),this.showElementsRecursively(e),document.body.appendChild(e);var t=this.collectElementPositions(e,this.root.nativeElement,[]);document.body.removeChild(e);for(var n=t.sort(function(e,t){return e.y-t.y>15?1:t.y-e.y>15?-1:e.x-t.x}),i=0;i<n.length;i++)n[i].element.tabIndex=this.startTabindex+i}}},{key:"showElementsRecursively",value:function(e){if(e.classList.remove("hidden"),e.classList.remove("invisible"),e.classList.remove("hiddenXXLView"),e.classList.remove("hiddenXLView"),e.classList.remove("hiddenLargeView"),e.classList.remove("hiddenMediumView"),e.classList.remove("hiddenSmallView"),e.classList.remove("hiddenTinyView"),e.classList.remove("visibleXXLView"),e.classList.remove("visibleXLView"),e.classList.remove("visibleLargeView"),e.classList.remove("visibleMediumView"),e.classList.remove("visibleSmallView"),e.classList.remove("visibleTinyView"),!(e instanceof HTMLButtonElement||e instanceof HTMLAnchorElement||e instanceof HTMLInputElement||e instanceof HTMLSelectElement)&&e.childElementCount>0)for(var t=0;t<e.childElementCount;t++){var n=e.children.item(t);n&&this.showElementsRecursively(n)}}},{key:"collectElementPositions",value:function(e,t,n){if(e instanceof HTMLButtonElement||e instanceof HTMLAnchorElement||e instanceof HTMLInputElement||e instanceof HTMLSelectElement){var i=e.getBoundingClientRect(),r={element:t,x:Math.round(i.left),y:Math.round(i.top)};n.push(r)}else if(e.childElementCount>0)for(var o=0;o<e.childElementCount;o++){var a=e.children.item(o),s=t.children.item(o);a&&s&&(n=this.collectElementPositions(a,s,n))}return n}},{key:"doInitPDFViewer",value:function(){var t=this,n=document.querySelectorAll('link[type="application/l10n"]');if(0===n.length)document.querySelector('script[type="application/l10n"]')?this.useBrowserLocale&&console.error("Please set the attribute 'useBrowserLocale' to false if you provide the translations yourself in a script or link tag."):this.useBrowserLocale||(console.error("If you set the attribute 'useBrowserLocale' to false, you must provide the translations yourself in a script or link tag."),console.error("The easiest way to do this is to add them to the index.html."));else if(this.useBrowserLocale){var i=n[0].attributes.origin;i&&"ngx-extended-pdf-viewer"!==i.value&&console.error("Please set the attribute 'useBrowserLocale' to false if you provide the translations yourself in a script or link tag.")}window.addEventListener("afterprint",function(e){t.afterPrint.emit()}),window.addEventListener("beforeprint",function(e){t.beforePrint.emit()}),document.addEventListener("localized",function e(n){document.removeEventListener("localized",e),t.initTimeout=setTimeout(function(){t.shuttingDown||(t.afterLibraryInit(),t.openPDF(),t.assignTabindexes())},t.delayFirstView)}),e.ngxExtendedPdfViewerInitialized&&console.error("You're trying to open two instances of the PDF viewer. Most likely, this will result in errors."),document.addEventListener("webviewerloaded",function e(){t.overrideDefaultSettings(),document.removeEventListener("webviewerloaded",e),t.enablePinchOnMobile&&(t.pinchOnMobileSupport=new pO(t.ngZone))}),this.activateTextlayerIfNecessary(null),setTimeout(function(){if(!t.shuttingDown){t.primaryMenuVisible=!0,t.hideKebabMenuForSecondaryToolbar&&!t.showSecondaryToolbarButton&&(t.isPrimaryMenuVisible()||(t.primaryMenuVisible=!1)),t.calcViewerPositionTop(),t.dummyComponents.addMissingStandardWidgets(),window.webViewerLoad();var e=window.PDFViewerApplication;e.appConfig.defaultUrl="",e.appConfig.filenameForDownload=t.filenameForDownload;var n=window.PDFViewerApplicationOptions;n.set("locale",t.language),n.set("imageResourcesPath",t.imageResourcesPath),n.set("minZoom",t.minZoom),n.set("maxZoom",t.maxZoom),e.isViewerEmbedded=!0,e.printKeyDownListener&&window.addEventListener("keydown",e.printKeyDownListener,!0);var i=document.getElementById("printContainer");i&&document.getElementsByTagName("body")[0].appendChild(i)}},0)}},{key:"afterLibraryInit",value:function(){this.notificationService.onPDFJSInit.next()}},{key:"checkHeight",value:function(){var e=document.getElementsByClassName("zoom")[0];if(e&&0===e.clientHeight&&this._height.includes("%")){var t=window.innerHeight-e.getBoundingClientRect().top;t=t*Number(this._height.replace("%",""))/100,this.minHeight=t>100?t+"px":"100px"}}},{key:"onSpreadChange",value:function(e){this.spreadChange.emit(e)}},{key:"activateTextlayerIfNecessary",value:function(e){var t=this;void 0===this.textLayer?this.handTool?(e&&e.set("textLayerMode",this.showHandToolButton?1:0),this.showHandToolButton||((this.showFindButton||void 0===this.showFindButton)&&(this.ngZone.run(function(){t.showFindButton=!1}),this.logLevel>=uD.WARNINGS&&console.warn('Hiding the "find" button because the text layer of the PDF file is not rendered. Use [textLayer]="true" to enable the find button.')),this.showHandToolButton&&this.logLevel>=uD.WARNINGS&&(console.warn('Hiding the "hand tool / selection mode" menu because the text layer of the PDF file is not rendered. Use [textLayer]="true" to enable the the menu items.'),this.showHandToolButton=!1))):(e&&e.set("textLayerMode",1),this.textLayer=!0,void 0===this.showFindButton&&(this.showFindButton=!0,setTimeout(function(){var e=document.getElementById("viewFind");e&&e.classList.remove("invisible");var t=document.getElementById("findbar");t&&t.classList.remove("invisible")}))):this.textLayer?(e&&e.set("textLayerMode",1),this.textLayer=!0,void 0===this.showFindButton&&(this.showFindButton=!0,setTimeout(function(){var e=document.getElementById("viewFind");e&&e.classList.remove("invisible");var t=document.getElementById("findbar");t&&t.classList.remove("invisible")}))):(e&&e.set("textLayerMode",0),this.textLayer=!1,this.showFindButton&&this.logLevel>=uD.WARNINGS&&(console.warn('Hiding the "find" button because the text layer of the PDF file is not rendered. Use [textLayer]="true" to enable the find button.'),this.ngZone.run(function(){t.showFindButton=!1})),this.showHandToolButton&&this.logLevel>=uD.WARNINGS&&(console.warn('Hiding the "hand tool / selection mode" menu because the text layer of the PDF file is not rendered. Use [textLayer]="true" to enable the the menu items.'),this.showHandToolButton=!1))}},{key:"overrideDefaultSettings",value:function(){var e=window.PDFViewerApplicationOptions;for(var t in lD)e.set(t,lD[t]);e.set("disablePreferences",!0),this.setZoom(),e.set("ignoreKeyboard",this.ignoreKeyboard),e.set("ignoreKeys",this.ignoreKeys),e.set("acceptKeys",this.acceptKeys),this.activateTextlayerIfNecessary(e);var n=this.sidebarVisible;void 0===n&&(n=this.showSidebarOnLoad);var i=window.PDFViewerApplication;void 0!==n&&(i.sidebarViewOnLoad=n?1:0,i.appConfig&&(i.appConfig.sidebarViewOnLoad=n?1:0),e.set("sidebarViewOnLoad",this.sidebarVisible?1:0)),"even"===this.spread?(e.set("spreadModeOnLoad",2),i.pdfViewer&&(i.pdfViewer.spreadMode=2),this.onSpreadChange("even")):"odd"===this.spread?(e.set("spreadModeOnLoad",1),i.pdfViewer&&(i.pdfViewer.spreadMode=1),this.onSpreadChange("odd")):(e.set("spreadModeOnLoad",0),i.pdfViewer&&(i.pdfViewer.spreadMode=0),this.onSpreadChange("off")),this.printResolution&&e.set("printResolution",this.printResolution),!1===this.showBorders&&e.set("removePageBorders",!this.showBorders)}},{key:"openPDF",value:function(){var t=this;ServiceWorkerOptions.showUnverifiedSignatures=this.showUnverifiedSignatures;var n=window.PDFViewerApplication;n.enablePrint=this.enablePrint,e.ngxExtendedPdfViewerInitialized=!0,this.onResize(),this.listenToURL||(n.pdfLinkService.setHash=function(){}),this.initTimeout=null,this.selectCursorTool(),n.eventBus.on("textlayerrendered",function(e){t.textlayerRendered.emit(e),t.textLayerRendered.emit(e)}),n.eventBus.on("pagesloaded",function(e){if(t.pagesLoaded.emit(e),t.rotation){var i=Number(t.rotation);0!==i&&90!==i&&180!==i&&270!==i||(n.pdfViewer.pagesRotation=i)}else n.pdfViewer.pagesRotation=0;setTimeout(function(){t.shuttingDown||(t.nameddest?n.pdfLinkService.navigateTo(t.nameddest):t.page?n.page=Number(t.page):t.pageLabel&&(n.pdfViewer.currentPageLabel=t.pageLabel))}),t.setZoom()}),n.eventBus.on("pagerendered",function(e){t.ngZone.run(function(){t.pageRendered.emit(e)})}),n.eventBus.on("download",function(e){t.ngZone.run(function(){t.pdfDownloaded.emit(e)})}),n.eventBus.on("scalechanging",function(e){setTimeout(function(){t.ngZone.run(function(){t.currentZoomFactor.emit(e.scale);var n=t.root.nativeElement.querySelector("#scaleSelect"),i=t.zoom;n&&(i=n.value),"auto"!==i&&"page-fit"!==i&&"page-actual"!==i&&"page-width"!==i&&t.zoomChange.emit(100*e.scale)})})}),n.eventBus.on("rotationchanging",function(e){t.ngZone.run(function(){t.rotationChange.emit(e.pagesRotation)})}),n.eventBus.on("fileinputchange",function(e){t.ngZone.run(function(){var n=e.fileInput.value.replace("C:\\fakepath\\","");t.srcChange.emit(n)})}),n.eventBus.on("cursortoolchanged",function(e){t.ngZone.run(function(){t.handToolChange.emit(e.tool===yD.HAND)})}),n.eventBus.on("sidebarviewchanged",function(e){t.ngZone.run(function(){t.sidebarVisibleChange.emit(e.view>0),t.sidebarComponent&&t.sidebarComponent.showToolbarWhenNecessary()})});var i=function(){t.ngZone.run(function(){t.sidebarComponent&&t.sidebarComponent.showToolbarWhenNecessary()})};if(n.eventBus.on("outlineloaded",i),n.eventBus.on("attachmentsloaded",i),n.eventBus.on("layersloaded",i),n.eventBus.on("updatefindcontrolstate",function(e){t.updateFindMatchesCount&&(e.state===cD.NOT_FOUND?t.updateFindMatchesCount.emit({current:0,total:0}):e.matchesCount.total&&t.updateFindMatchesCount.emit(e.matchesCount)),t.updateFindState&&t.updateFindState.emit(e.state)}),n.eventBus.on("updatefindmatchescount",function(e){t.updateFindMatchesCount&&e.matchesCount.total&&t.updateFindMatchesCount.emit(e.matchesCount)}),n.eventBus.on("pagechanging",function(e){t.shuttingDown||t.ngZone.run(function(){var e=n.pdfViewer.currentPageNumber,i=n.pdfViewer.currentPageLabel;e!==t.page&&t.pageChange.emit(e),i!==t.pageLabel&&t.pageLabelChange.emit(i)})}),this.checkHeight(),this._src){var r={password:this.password,verbosity:this.logLevel};this._src.range&&(r.range=this._src.range),this.httpHeaders&&(r.httpHeaders=this.httpHeaders),this.authorization&&(r.withCredentials=!0,r.httpHeaders?r.httpHeaders.Authorization||(r.httpHeaders.Authorization=this.authorization):r.httpHeaders={Authorization:this.authorization}),n.onError=function(e){return t.pdfLoadingFailed.emit(e)},n.open(this._src,r).then(function(){return t.pdfLoaded.emit({pagesCount:n.pagesCount})})}setTimeout(function(){t.shuttingDown||t.page&&(n.page=Number(t.page))},100)}},{key:"selectCursorTool",value:function(){window.PDFViewerApplication.eventBus.dispatch("switchcursortool",{tool:this.handTool?1:0})}},{key:"ngOnDestroy",value:function(){var t=window.PDFViewerApplication;if(this.shuttingDown=!0,e.ngxExtendedPdfViewerInitialized=!1,this.initTimeout&&(clearTimeout(this.initTimeout),this.initTimeout=void 0),t){this.pinchOnMobileSupport&&(this.pinchOnMobileSupport.destroyPinchZoom(),this.pinchOnMobileSupport=void 0),t.cleanup(),t.close(),t.printKeyDownListener&&removeEventListener("keydown",t.printKeyDownListener,!0),t._boundEvents&&t.unbindWindowEvents();var n=t.eventBus;if(n)for(var i in t.unbindEvents(),n._listeners)if(n._listeners[i]){for(var r=n._listeners[i],o=0;o<r.length;o++)r[o]=void 0;n._listeners[i]=void 0}t.eventBus=null}var a=document.getElementsByTagName("body");if(a[0])for(var s=a[0].children,l=s.length-1;l>=0;l--){var u=s.item(l);(u&&"printContainer"===u.id||u&&"fileInput"===u.id)&&a[0].removeChild(u)}}},{key:"isPrimaryMenuVisible",value:function(){return!!(this.showBookmarkButton||this.showDownloadButton||this.showFindButton||this.showOpenFileButton||this.showPagingButtons||this.showPresentationModeButton||this.showPrintButton||this.showPropertiesButton||this.showSidebarButton||this.showZoomButtons)}},{key:"ngOnChanges",value:function(t){var n=this,i=window.PDFViewerApplication,r=window.PDFViewerApplicationOptions;if(e.ngxExtendedPdfViewerInitialized){if(("src"in t||"base64Src"in t)&&this._src){this.overrideDefaultSettings();var o={password:this.password,verbosity:this.logLevel};this._src.range&&(o.range=this._src.range),this.httpHeaders&&(o.httpHeaders=this.httpHeaders),this.authorization&&(o.withCredentials=!0,o.httpHeaders?o.httpHeaders.Authorization||(o.httpHeaders.Authorization=this.authorization):o.httpHeaders={Authorization:this.authorization}),i.open(this._src,o).then(function(){return n.pdfLoaded.emit({pagesCount:i.pagesCount})},function(e){return n.pdfLoadingFailed.emit(e)})}if("zoom"in t&&this.setZoom(),"maxZoom"in t&&r.set("maxZoom",this.maxZoom),"minZoom"in t&&r.set("minZoom",this.minZoom),"handTool"in t&&this.selectCursorTool(),"page"in t&&this.page&&this.page!=i.page&&(i.page=this.page),"pageLabel"in t&&this.pageLabel&&this.pageLabel!==i.pdfViewer.currentPageLabel&&(i.pdfViewer.currentPageLabel=this.pageLabel),"rotation"in t)if(this.rotation){var a=Number(this.rotation);0!==a&&90!==a&&180!==a&&270!==a||(i.pdfViewer.pagesRotation=a)}else i.pdfViewer.pagesRotation=0;"sidebarVisible"in t&&(this.sidebarVisible?i.pdfSidebar.open():i.pdfSidebar.close()),"filenameForDownload"in t&&(i.appConfig.filenameForDownload=this.filenameForDownload),"nameddest"in t&&this.nameddest&&i.pdfLinkService.navigateTo(this.nameddest),"spread"in t&&("even"===this.spread?(i.spreadModeOnLoad=2,i.pdfViewer.spreadMode=2,this.onSpreadChange("even")):"odd"===this.spread?(i.spreadModeOnLoad=1,i.pdfViewer.spreadMode=1,this.onSpreadChange("odd")):(i.spreadModeOnLoad=0,i.pdfViewer.spreadMode=0,this.onSpreadChange("off"))),"enablePinchOnMobile"in t&&(t.enablePinchOnMobile.isFirstChange()||t.enablePinchOnMobile.currentValue!==t.enablePinchOnMobile.previousValue&&(this.enablePinchOnMobile?this.pinchOnMobileSupport=new pO(this.ngZone):this.pinchOnMobileSupport&&(this.pinchOnMobileSupport.destroyPinchZoom(),this.pinchOnMobileSupport=void 0))),this.primaryMenuVisible=!0,this.showSecondaryToolbarButton&&!this.hideKebabMenuForSecondaryToolbar||this.isPrimaryMenuVisible()||(this.primaryMenuVisible=!1),this.calcViewerPositionTop()}if(this.onResize(),"printResolution"in t&&r&&r.set("printResolution",this.printResolution),"ignoreKeyboard"in t&&r&&this.overrideDefaultSettings(),"ignoreKeys"in t&&r&&this.overrideDefaultSettings(),"acceptKeys"in t&&r&&this.overrideDefaultSettings(),"showBorders"in t&&!t.showBorders.isFirstChange()&&r){this.overrideDefaultSettings();var s=document.getElementById("viewer");this.showBorders?s.classList.remove("removePageBorders"):s.classList.add("removePageBorders"),i.pdfViewer&&(i.pdfViewer.removePageBorders=!this.showBorders);var l={source:s,scale:(100|Number(this.zoom))/100,presetValue:this.zoom};i.eventBus.dispatch("scalechanging",l)}"showUnverifiedSignatures"in t&&i&&i.pdfDocument&&i.pdfDocument._transport.messageHandler.send("showUnverifiedSignatures",this.showUnverifiedSignatures),"enablePrint"in t&&(t.enablePrint.isFirstChange()||(i.enablePrint=this.enablePrint)),("customFindbar"in t&&!t.customFindbar.isFirstChange()||"customFindbarButtons"in t&&!t.customFindbarButtons.isFirstChange()||"customFindbarInputArea"in t&&!t.customFindbarInputArea.isFirstChange()||"customToolbar"in t&&!t.customToolbar.isFirstChange())&&this.dummyComponents&&this.dummyComponents.addMissingStandardWidgets()}},{key:"setZoom",value:function(){var e=this.zoom;String(e).endsWith("%")?e=Number(String(e).replace("%",""))/100:isNaN(Number(e))||(e=Number(e)/100),e||(e="auto");var t=window.PDFViewerApplication;t&&window.PDFViewerApplicationOptions.set("defaultZoomValue",e),t.pdfViewer&&(t.pdfViewer.currentScaleValue=e)}},{key:"onResize",value:function(){var e=document.getElementsByClassName("html");if(e&&e.length>0){var t=document.getElementById("outerContainer");t&&(this.toolbarWidthInPixels=t.clientWidth,this.secondaryToolbarComponent&&this.secondaryToolbarComponent.checkVisibility())}}},{key:"onContextMenu",value:function(){return this.contextMenuAllowed}},{key:"onSecondaryMenuIsEmpty",value:function(e){this.hideKebabMenuForSecondaryToolbar=e}}]),e}()).\u0275fac=function(e){return new(e||hO)(rs(Ac),rs(uc),rs(vD),rs(Cd))},hO.\u0275cmp=ft({type:hO,selectors:[["ngx-extended-pdf-viewer"]],viewQuery:function(e,t){var n;1&e&&(Qu(gD,1),Qu(LE,1),Qu(FE,1),Qu(BE,1)),2&e&&(Zu(n=Ku())&&(t.dummyComponents=n.first),Zu(n=Ku())&&(t.root=n.first),Zu(n=Ku())&&(t.secondaryToolbarComponent=n.first),Zu(n=Ku())&&(t.sidebarComponent=n.first))},hostBindings:function(e,t){1&e&&ms("contextmenu",function(){return t.onContextMenu()})},inputs:{customFindbarButtons:"customFindbarButtons",authorization:"authorization",httpHeaders:"httpHeaders",contextMenuAllowed:"contextMenuAllowed",enablePrint:"enablePrint",delayFirstView:"delayFirstView",logLevel:"logLevel",enablePinchOnMobile:"enablePinchOnMobile",minifiedJSLibraries:"minifiedJSLibraries",printResolution:"printResolution",useBrowserLocale:"useBrowserLocale",backgroundColor:"backgroundColor",filenameForDownload:"filenameForDownload",ignoreKeyboard:"ignoreKeyboard",ignoreKeys:"ignoreKeys",acceptKeys:"acceptKeys",imageResourcesPath:"imageResourcesPath",language:"language",listenToURL:"listenToURL",nameddest:"nameddest",password:"password",showUnverifiedSignatures:"showUnverifiedSignatures",showSidebarOnLoad:"showSidebarOnLoad",sidebarVisible:"sidebarVisible",showFindButton:"showFindButton",showPagingButtons:"showPagingButtons",showZoomButtons:"showZoomButtons",showPresentationModeButton:"showPresentationModeButton",showOpenFileButton:"showOpenFileButton",showPrintButton:"showPrintButton",showDownloadButton:"showDownloadButton",showBookmarkButton:"showBookmarkButton",theme:"theme",showSecondaryToolbarButton:"showSecondaryToolbarButton",showRotateButton:"showRotateButton",handTool:"handTool",showHandToolButton:"showHandToolButton",showScrollingButton:"showScrollingButton",showSpreadButton:"showSpreadButton",showPropertiesButton:"showPropertiesButton",showBorders:"showBorders",pageLabel:"pageLabel",textLayer:"textLayer",zoom:"zoom",zoomLevels:"zoomLevels",maxZoom:"maxZoom",minZoom:"minZoom",_mobileFriendlyZoom:"_mobileFriendlyZoom",src:"src",base64Src:"base64Src",height:"height",showSidebarButton:"showSidebarButton",page:"page",mobileFriendlyZoom:"mobileFriendlyZoom",mobileZoom:"mobileZoom",customFindbarInputArea:"customFindbarInputArea",customToolbar:"customToolbar",customFindbar:"customFindbar",customSecondaryToolbar:"customSecondaryToolbar",customSidebar:"customSidebar",customThumbnail:"customThumbnail",customFreeFloatingBar:"customFreeFloatingBar",rotation:"rotation",startTabindex:"startTabindex",spread:"spread"},outputs:{srcChange:"srcChange",afterPrint:"afterPrint",beforePrint:"beforePrint",currentZoomFactor:"currentZoomFactor",rotationChange:"rotationChange",sidebarVisibleChange:"sidebarVisibleChange",handToolChange:"handToolChange",spreadChange:"spreadChange",thumbnailDrawn:"thumbnailDrawn",pageChange:"pageChange",pageLabelChange:"pageLabelChange",pagesLoaded:"pagesLoaded",pageRendered:"pageRendered",pdfDownloaded:"pdfDownloaded",pdfLoaded:"pdfLoaded",pdfLoadingFailed:"pdfLoadingFailed",textlayerRendered:"textlayerRendered",textLayerRendered:"textLayerRendered",updateFindMatchesCount:"updateFindMatchesCount",updateFindState:"updateFindState",zoomChange:"zoomChange"},features:[Mt],ngContentSelectors:RE,decls:66,vars:60,consts:[["rel","resource","type","application/l10n","href","assets/locale/locale.properties","origin","ngx-extended-pdf-viewer",4,"ngIf"],[4,"ngIf"],[3,"zoom","width"],[1,"zoom"],["root",""],[1,"html"],[1,"loadingInProgress","body"],["id","outerContainer",3,"resize"],[1,"free-floating-bar"],[4,"ngTemplateOutlet"],[3,"sidebarPositionTop","sidebarVisible","showSidebarButton","customSidebar","customThumbnail","thumbnailDrawn"],["pdfsidebar",""],["id","mainContainer"],[3,"customToolbar","mobileFriendlyZoomScale","primaryMenuVisible","showBookmarkButton","showDownloadButton","showFindButton","showHandToolButton","showOpenFileButton","showPrintButton","showPagingButtons","showPresentationModeButton","showRotateButton","showSecondaryToolbarButton","showSidebarButton","showZoomButtons","textLayer","toolbarPaddingTop","toolbarWidth","zoomLevels"],[3,"customSecondaryToolbar","secondaryToolbarTop","mobileFriendlyZoomScale","showPresentationModeButton","showOpenFileButton","showPrintButton","showDownloadButton","showBookmarkButton","showPagingButtons","showRotateButton","showHandToolButton","showScrollingButton","showSpreadButton","showPropertiesButton","spreadChange","secondaryMenuIsEmpty"],["pdfSecondaryToolbarComponent",""],[3,"findbarLeft","findbarTop","mobileFriendlyZoomScale","showFindButton","customFindbarInputArea","customFindbarButtons"],["id","viewerContainer"],["id","viewer",1,"pdfViewer"],["id","errorWrapper","hidden","true"],["id","errorMessageLeft"],["id","errorMessage"],["type","button","id","errorShowMore","data-l10n-id","error_more_info"],["type","button","id","errorShowLess","data-l10n-id","error_less_info","hidden","true"],["id","errorMessageRight"],["type","button","id","errorClose","data-l10n-id","error_close"],[1,"clearBoth"],["id","errorMoreInfo","hidden","true","readonly","readonly"],["id","overlayContainer",1,"hidden"],["id","passwordOverlay",1,"container","hidden"],[1,"dialog"],[1,"row"],["id","passwordText","data-l10n-id","password_label"],["id","password",1,"toolbarField"],[1,"buttonRow"],["type","button","id","passwordCancel",1,"overlayButton"],["data-l10n-id","password_cancel"],["type","button","id","passwordSubmit",1,"overlayButton"],["data-l10n-id","password_ok"],["id","documentPropertiesOverlay",1,"container","hidden"],["id","printServiceOverlay",1,"container","hidden"],["data-l10n-id","print_progress_message"],["value","0","max","100"],["data-l10n-id","print_progress_percent","data-l10n-args",'{ "progress": 0 }',1,"relative-progress"],["type","button","id","printCancel",1,"overlayButton"],["data-l10n-id","print_progress_close"],["id","printContainer"],["defaultFreeFloatingBar",""],["rel","resource","type","application/l10n","href","assets/locale/locale.properties","origin","ngx-extended-pdf-viewer"]],template:function(e,t){if(1&e&&(As(),ns(0,VE,1,0,"link",0),ns(1,zE,1,0,"pdf-dark-theme",1),ns(2,NE,1,0,"pdf-light-theme",1),us(3,"pdf-dynamic-css",2),ss(4,"div",3,4),ss(6,"div",5),ss(7,"div",6),ss(8,"div",7),ms("resize",function(){return t.onResize()},!1,Ir),ss(9,"div",8),ns(10,HE,1,0,"ng-content",9),ls(),ss(11,"pdf-sidebar",10,11),ms("thumbnailDrawn",function(e){return t.thumbnailDrawn.emit(e)}),ls(),ss(13,"div",12),us(14,"pdf-dummy-components"),us(15,"pdf-toolbar",13),ss(16,"pdf-secondary-toolbar",14,15),ms("spreadChange",function(e){return t.onSpreadChange(e)})("secondaryMenuIsEmpty",function(e){return t.onSecondaryMenuIsEmpty(e)}),ls(),us(18,"pdf-findbar",16),us(19,"pdf-context-menu"),ss(20,"div",17),us(21,"div",18),ls(),ss(22,"div",19),ss(23,"div",20),us(24,"span",21),ss(25,"button",22),Qs(26," More Information "),ls(),ss(27,"button",23),Qs(28," Less Information "),ls(),ls(),ss(29,"div",24),ss(30,"button",25),Qs(31,"Close"),ls(),ls(),us(32,"div",26),us(33,"textarea",27),ls(),ls(),ss(34,"div",28),ss(35,"div",29),ss(36,"div",30),ss(37,"div",31),ss(38,"p",32),Qs(39," Enter the password to open this PDF file: "),ls(),ls(),ss(40,"div",31),us(41,"input",33),ls(),ss(42,"div",34),ss(43,"button",35),ss(44,"span",36),Qs(45,"Cancel"),ls(),ls(),ss(46,"button",37),ss(47,"span",38),Qs(48,"OK"),ls(),ls(),ls(),ls(),ls(),us(49,"pdf-document-properties-overlay",39),ss(50,"div",40),ss(51,"div",30),ss(52,"div",31),ss(53,"span",41),Qs(54,"Preparing document for printing\u2026"),ls(),ls(),ss(55,"div",31),us(56,"progress",42),ss(57,"span",43),Qs(58,"0%"),ls(),ls(),ss(59,"div",34),ss(60,"button",44),ss(61,"span",45),Qs(62,"Cancel"),ls(),ls(),ls(),ls(),ls(),ls(),ls(),us(63,"div",46),ls(),ls(),ls(),ns(64,jE,0,0,"ng-template",null,47,tc)),2&e){var n=is(65);os("ngIf",t.useBrowserLocale),xo(1),os("ngIf","dark"===t.theme),xo(1),os("ngIf","light"===t.theme),xo(1),os("zoom",t.mobileFriendlyZoomScale)("width",t.toolbarWidthInPixels),xo(1),Ls("height",t.height)("min-height",t.minHeight),xo(3),Ls("background-color",t.backgroundColor),xo(3),os("ngTemplateOutlet",t.customFreeFloatingBar?t.customFreeFloatingBar:n),xo(1),os("sidebarPositionTop",t.sidebarPositionTop)("sidebarVisible",t.sidebarVisible)("showSidebarButton",t.showSidebarButton)("customSidebar",t.customSidebar)("customThumbnail",t.customThumbnail),xo(4),os("customToolbar",t.customToolbar)("mobileFriendlyZoomScale",t.mobileFriendlyZoomScale)("primaryMenuVisible",t.primaryMenuVisible)("showBookmarkButton",t.showBookmarkButton)("showDownloadButton",t.showDownloadButton)("showFindButton",t.showFindButton)("showHandToolButton",t.showHandToolButton)("showOpenFileButton",t.showOpenFileButton)("showPrintButton",t.showPrintButton&&t.enablePrint)("showPagingButtons",t.showPagingButtons)("showPresentationModeButton",t.showPresentationModeButton)("showRotateButton",t.showRotateButton)("showSecondaryToolbarButton",t.showSecondaryToolbarButton&&!t.hideKebabMenuForSecondaryToolbar)("showSidebarButton",t.showSidebarButton)("showZoomButtons",t.showZoomButtons)("textLayer",t.textLayer)("toolbarPaddingTop",t.toolbarPaddingTop)("toolbarWidth",t.toolbarWidth)("zoomLevels",t.zoomLevels),xo(1),os("customSecondaryToolbar",t.customSecondaryToolbar)("secondaryToolbarTop",t.secondaryToolbarTop)("mobileFriendlyZoomScale",t.mobileFriendlyZoomScale)("showPresentationModeButton",t.showPresentationModeButton)("showOpenFileButton",t.showOpenFileButton)("showPrintButton",t.showPrintButton&&t.enablePrint)("showDownloadButton",t.showDownloadButton)("showBookmarkButton",t.showBookmarkButton)("showPagingButtons",t.showPagingButtons)("showRotateButton",t.showRotateButton)("showHandToolButton",t.showHandToolButton)("showScrollingButton",t.showScrollingButton)("showSpreadButton",t.showSpreadButton)("showPropertiesButton",t.showPropertiesButton),xo(2),os("findbarLeft",t.findbarLeft)("findbarTop",t.findbarTop)("mobileFriendlyZoomScale",t.mobileFriendlyZoomScale)("showFindButton",t.showFindButton)("customFindbarInputArea",t.customFindbarInputArea)("customFindbarButtons",t.customFindbarButtons),xo(2),Ls("top",t.viewerPositionTop),xo(1),Ls("background-color",t.backgroundColor)}},directives:function(){return[mh,oM,Oh,gO,gD,$O,mD,xO,wO,_O,uM,lM]},encapsulation:2,changeDetection:0}),hO.ngxExtendedPdfViewerInitialized=!1,hO),mO=((dO=function(){function e(){A(this,e)}return m(e,[{key:"findMultiple",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t=Object.assign({},t,{findMultipleSearchTexts:!0});var n=e.join("\n")+"\n";return this.find(n,t)}},{key:"find",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(vO.ngxExtendedPdfViewerInitialized){var n=document.getElementById("findHighlightAll");n&&(n.checked=t.highlightAll||!1);var i=document.getElementById("findMatchCase");i&&(i.checked=t.matchCase||!1);var r=document.getElementById("findEntireWord");r&&(r.checked=t.wholeWords||!1);var o=document.getElementById("findIgnoreAccents");o&&(o.checked=t.ignoreAccents||!1);var a=t.findMultipleSearchTexts||e.includes("\n")||!1,s=document.getElementById("findMultipleSearchTexts");s&&(s.checked=a);var l=document.getElementById("individualWordsMode");l&&(l.checked=!1);var u=document.getElementById("findFuzzy");u&&(u.checked=t.fuzzySearch||!1);var c=a?document.getElementById("findInputMultiline"):document.getElementById("findInput");return c?(c instanceof HTMLTextAreaElement?(c.value=e,c.classList.remove("hidden"),document.getElementById("findInput").classList.add("hidden"),document.getElementById("individualWordsModeLabel").classList.remove("hidden"),document.getElementById("individualWordsMode").classList.remove("hidden")):c instanceof HTMLInputElement&&(c.value=e,c.classList.remove("hidden"),document.getElementById("findInputMultiline").classList.add("hidden"),document.getElementById("individualWordsModeLabel").classList.add("hidden"),document.getElementById("individualWordsMode").classList.add("hidden")),c.dispatchEvent(new Event("input")),!0):(console.error("Unexpected error: the input field used to search isn't part of the DOM."),!1)}return console.error("The PDF viewer hasn't finished initializing. Please call find() later."),!1}},{key:"findNext",value:function(){if(vO.ngxExtendedPdfViewerInitialized){var e=document.getElementById("findNext");return!!e&&(e.click(),!0)}return console.error("The PDF viewer hasn't finished initializing. Please call findNext() later."),!1}},{key:"findPrevious",value:function(){if(vO.ngxExtendedPdfViewerInitialized){var e=document.getElementById("findPrevious");return!!e&&(e.click(),!0)}return console.error("The PDF viewer hasn't finished initializing. Please call findPrevious() later."),!1}},{key:"print",value:function(e){var t=this,n=window.PDFViewerApplication,i=!!window.isInPDFPrintRange&&!e;i||(e||(e={}),this.setPrintRange(e)),window.printPDF(),i||n.eventBus.on("afterprint",function(){t.removePrintRange()})}},{key:"removePrintRange",value:function(){window.isInPDFPrintRange=void 0,window.filteredPageCount=void 0}},{key:"setPrintRange",value:function(e){var t=this,n=window.PDFViewerApplication;window.isInPDFPrintRange=function(n){return t.isInPDFPrintRange(n,e)},window.filteredPageCount=this.filteredPageCount(n.pagesCount,e)}},{key:"filteredPageCount",value:function(e,t){for(var n=0,i=1;i<=e;i++)this.isInPDFPrintRange(i,t)&&n++;return n}},{key:"isInPDFPrintRange",value:function(e,t){var n=e+1;return!(t.from&&n<t.from||t.to&&n>t.to||t.excluded&&t.excluded.some(function(e){return e===n})||t.included&&!t.included.some(function(e){return e===n}))}},{key:"getPageAsText_preview",value:function(e,t){var n=this;return window.PDFViewerApplication.pdfDocument.getPage(e).then(function(e){e.getTextContent().then(function(e){return t(n.convertTextInfoToText(e))})})}},{key:"getPageAsText",value:function(e){var t=this;return window.PDFViewerApplication.pdfDocument.getPage(e).then(function(e){return new Promise(function(t,n){t(e.getTextContent())})}).then(function(e){return new Promise(function(n,i){n(t.convertTextInfoToText(e))})})}},{key:"convertTextInfoToText",value:function(e){return e?e.items.map(function(e){return e.str}).join(""):""}},{key:"getPageAsImage_preview",value:function(e,t,n,i){var r=this;window.PDFViewerApplication.pdfDocument.getPage(e).then(function(e){r.draw_preview(e,t,n,i)}).catch(function(e){i?i({message:"Unable to initialize PDF page service",reason:e}):console.error("Unable to initialize PDF page service",e)})}},{key:"getPageAsImage",value:function(e,t){var n=this;return window.PDFViewerApplication.pdfDocument.getPage(e).then(function(e){return new Promise(function(i,r){i(n.draw(e,t))})})}},{key:"draw",value:function(e,t){var n=1;t.scale?n=t.scale:t.width?n=t.width/e.getViewport({scale:1}).width:t.height&&(n=t.height/e.getViewport({scale:1}).height);var i=e.getViewport({scale:n}),r=this.getPageDrawContext(i.width,i.height),o=r.ctx,a=r.canvas,s=i.clone();return e.render({canvasContext:o,viewport:s}).promise.then(function(){return new Promise(function(e,t){e(a.toDataURL())})})}},{key:"draw_preview",value:function(e,t,n,i){var r=1;t.scale?r=t.scale:t.width?r=t.width/e.getViewport({scale:1}).width:t.height&&(r=t.height/e.getViewport({scale:1}).height);var o=e.getViewport({scale:r}),a=this.getPageDrawContext(o.width,o.height),s=a.ctx,l=a.canvas,u=o.clone();e.render({canvasContext:s,viewport:u}).promise.then(function(){var e=l.toDataURL();n(e)},function(e){i&&i(e)})}},{key:"getPageDrawContext",value:function(e,t){var n=document.createElement("canvas"),i=n.getContext("2d",{alpha:!1});if(!i)throw new Error("Couldn't create the 2d context");return n.width=e,n.height=t,n.style.width=e+"px",n.style.height=t+"px",{ctx:i,canvas:n}}}]),e}()).\u0275fac=function(e){return new(e||dO)},dO.\u0275prov=Re({token:dO,factory:dO.\u0275fac}),dO),yO=((cO=function(){function e(t){var n=this;A(this,e),this.notificationService=t,this.showHandToolButton=!0,this.isSelected=!1;var i=this.notificationService.onPDFJSInit.subscribe(function(){n.onPdfJsInit(),i.unsubscribe()})}return m(e,[{key:"onPdfJsInit",value:function(){var e=this;window.PDFViewerApplication.eventBus.on("cursortoolchanged",function(t){var n=t.tool;return e.isSelected=n===yD.HAND})}},{key:"onClick",value:function(){window.PDFViewerApplication.eventBus.dispatch("switchcursortool",{tool:yD.HAND})}}]),e}()).\u0275fac=function(e){return new(e||cO)(rs(vD))},cO.\u0275cmp=ft({type:cO,selectors:[["pdf-hand-tool"]],inputs:{showHandToolButton:"showHandToolButton"},decls:5,vars:4,consts:[["type","button","id","primaryCursorHandTool","title","Enable hand tool","data-l10n-id","cursor_hand_tool",1,"toolbarButton","hiddenXXLView",3,"click"],["viewBox","0 0 24 24",2,"width","22px","height","22px"],["fill","currentColor","d","M13,6V11H18V7.75L22.25,12L18,16.25V13H13V18H16.25L12,22.25L7.75,18H11V13H6V16.25L1.75,12L6,7.75V11H11V6H7.75L12,1.75L16.25,6H13Z"],["data-l10n-id","cursor_hand_tool_label"]],template:function(e,t){1&e&&(ss(0,"button",0),ms("click",function(){return t.onClick()}),On(),ss(1,"svg",1),us(2,"path",2),ls(),Mn(),ss(3,"span",3),Qs(4,"Hand Tool"),ls(),ls()),2&e&&Fs("invisible",!t.showHandToolButton)("toggled",t.isSelected)},styles:["[_nghost-%COMP%]{margin-top:0}[_nghost-%COMP%]:focus{outline:0}button[_ngcontent-%COMP%]:focus, svg[_ngcontent-%COMP%]:focus{outline:0}.toggled[_ngcontent-%COMP%]{background-color:#646464;border-color:rgba(0,0,0,.4) rgba(0,0,0,.45) rgba(0,0,0,.5);box-shadow:0 1px 1px rgba(0,0,0,.1) inset,0 0 1px rgba(0,0,0,.2) inset,0 1px 0 rgba(255,255,255,.05)}"]}),cO),bO=((uO=function e(){A(this,e),this.showBookmarkButton=!0}).\u0275fac=function(e){return new(e||uO)},uO.\u0275cmp=ft({type:uO,selectors:[["pdf-bookmark"]],inputs:{showBookmarkButton:"showBookmarkButton"},decls:5,vars:2,consts:[["href","#","id","viewBookmark","title","Current view (copy or open in new window)","data-l10n-id","bookmark",1,"toolbarButton","hiddenTinyView"],["viewBox","0 0 24 24",2,"width","24px","height","24px"],["fill","currentColor","d","M17,18L12,15.82L7,18V5H17M17,3H7A2,2 0 0,0 5,5V21L12,18L19,21V5C19,3.89 18.1,3 17,3Z"],["data-l10n-id","bookmark_label"]],template:function(e,t){1&e&&(ss(0,"a",0),On(),ss(1,"svg",1),us(2,"path",2),ls(),Mn(),ss(3,"span",3),Qs(4,"Current View"),ls(),ls()),2&e&&Fs("invisible",!t.showBookmarkButton)},styles:["[_nghost-%COMP%]   a.toolbarButton[_ngcontent-%COMP%]   svg[_ngcontent-%COMP%]{margin-top:4px}[_nghost-%COMP%]:focus{outline:0}a[_ngcontent-%COMP%]:focus, svg[_ngcontent-%COMP%]:focus{outline:0}"]}),uO),wO=((lO=function(){function e(){A(this,e)}return m(e,[{key:"ngOnInit",value:function(){}}]),e}()).\u0275fac=function(e){return new(e||lO)},lO.\u0275cmp=ft({type:lO,selectors:[["pdf-context-menu"]],decls:5,vars:0,consts:[["type","context","id","viewerContextMenu",2,"display","none"],["id","contextFirstPage",2,"display","none"],["id","contextLastPage",2,"display","none"],["id","contextPageRotateCw",2,"display","none"],["id","contextPageRotateCcw",2,"display","none"]],template:function(e,t){1&e&&(ss(0,"div",0),us(1,"div",1),us(2,"div",2),us(3,"div",3),us(4,"div",4),ls())},styles:["[_nghost-%COMP%]{margin-top:4px}"]}),lO),_O=((sO=function(){function e(){A(this,e)}return m(e,[{key:"ngOnInit",value:function(){}}]),e}()).\u0275fac=function(e){return new(e||sO)},sO.\u0275cmp=ft({type:sO,selectors:[["pdf-document-properties-overlay"]],decls:77,vars:0,consts:[[1,"dialog"],[1,"row"],["data-l10n-id","document_properties_file_name"],["id","fileNameField"],["data-l10n-id","document_properties_file_size"],["id","fileSizeField"],["data-l10n-id","document_properties_title"],["id","titleField"],["data-l10n-id","document_properties_author"],["id","authorField"],["data-l10n-id","document_properties_subject"],["id","subjectField"],["data-l10n-id","document_properties_keywords"],["id","keywordsField"],["data-l10n-id","document_properties_creation_date"],["id","creationDateField"],["data-l10n-id","document_properties_modification_date"],["id","modificationDateField"],["data-l10n-id","document_properties_creator"],["id","creatorField"],["data-l10n-id","document_properties_producer"],["id","producerField"],["data-l10n-id","document_properties_version"],["id","versionField"],["data-l10n-id","document_properties_page_count"],["id","pageCountField"],["data-l10n-id","document_properties_page_size"],["id","pageSizeField"],[1,"separator"],["data-l10n-id","document_properties_linearized"],["id","linearizedField"],[1,"buttonRow"],["type","button","id","documentPropertiesClose",1,"overlayButton"],["data-l10n-id","document_properties_close"]],template:function(e,t){1&e&&(ss(0,"div"),ss(1,"div",0),ss(2,"div",1),ss(3,"span",2),Qs(4,"File name:"),ls(),ss(5,"p",3),Qs(6,"-"),ls(),ls(),ss(7,"div",1),ss(8,"span",4),Qs(9,"File size:"),ls(),ss(10,"p",5),Qs(11,"-"),ls(),ls(),ss(12,"div",1),ss(13,"span",6),Qs(14,"Title:"),ls(),ss(15,"p",7),Qs(16,"-"),ls(),ls(),ss(17,"div",1),ss(18,"span",8),Qs(19,"Author:"),ls(),ss(20,"p",9),Qs(21,"-"),ls(),ls(),ss(22,"div",1),ss(23,"span",10),Qs(24,"Subject:"),ls(),ss(25,"p",11),Qs(26,"-"),ls(),ls(),ss(27,"div",1),ss(28,"span",12),Qs(29,"Keywords:"),ls(),ss(30,"p",13),Qs(31,"-"),ls(),ls(),ss(32,"div",1),ss(33,"span",14),Qs(34,"Creation Date:"),ls(),ss(35,"p",15),Qs(36,"-"),ls(),ls(),ss(37,"div",1),ss(38,"span",16),Qs(39,"Modification Date:"),ls(),ss(40,"p",17),Qs(41,"-"),ls(),ls(),ss(42,"div",1),ss(43,"span",18),Qs(44,"Creator:"),ls(),ss(45,"p",19),Qs(46,"-"),ls(),ls(),ss(47,"div",1),ss(48,"span",20),Qs(49,"PDF Producer:"),ls(),ss(50,"p",21),Qs(51,"-"),ls(),ls(),ss(52,"div",1),ss(53,"span",22),Qs(54,"PDF Version:"),ls(),ss(55,"p",23),Qs(56,"-"),ls(),ls(),ss(57,"div",1),ss(58,"span",24),Qs(59,"Page Count:"),ls(),ss(60,"p",25),Qs(61,"-"),ls(),ls(),ss(62,"div",1),ss(63,"span",26),Qs(64,"Page Size:"),ls(),ss(65,"p",27),Qs(66,"-"),ls(),ls(),us(67,"div",28),ss(68,"div",1),ss(69,"span",29),Qs(70,"Fast Web View:"),ls(),ss(71,"p",30),Qs(72,"-"),ls(),ls(),ss(73,"div",31),ss(74,"button",32),ss(75,"span",33),Qs(76,"Close"),ls(),ls(),ls(),ls(),ls())},styles:[""]}),sO),kO=((aO=function e(){A(this,e),this.showDownloadButton=!0}).\u0275fac=function(e){return new(e||aO)},aO.\u0275cmp=ft({type:aO,selectors:[["pdf-download"]],inputs:{showDownloadButton:"showDownloadButton"},decls:5,vars:2,consts:[["type","button","id","download","title","Download","data-l10n-id","download",1,"toolbarButton","hiddenSmallView"],["viewBox","0 0 24 24",2,"width","20px","height","20px"],["fill","currentColor","d","M14,2L20,8V20A2,2 0 0,1 18,22H6A2,2 0 0,1 4,20V4A2,2 0 0,1 6,2H14M18,20V9H13V4H6V20H18M12,19L8,15H10.5V12H13.5V15H16L12,19Z"],["data-l10n-id","download_label"]],template:function(e,t){1&e&&(ss(0,"button",0),On(),ss(1,"svg",1),us(2,"path",2),ls(),Mn(),ss(3,"span",3),Qs(4,"Download"),ls(),ls()),2&e&&Fs("invisible",!t.showDownloadButton)},styles:[YE]}),aO),xO=((oO=function e(){A(this,e),this.showFindButton=!0}).\u0275fac=function(e){return new(e||oO)},oO.\u0275cmp=ft({type:oO,selectors:[["pdf-findbar"]],inputs:{showFindButton:"showFindButton",mobileFriendlyZoomScale:"mobileFriendlyZoomScale",findbarLeft:"findbarLeft",findbarTop:"findbarTop",customFindbarInputArea:"customFindbarInputArea",customFindbar:"customFindbar",customFindbarButtons:"customFindbarButtons"},decls:5,vars:1,consts:[[3,"ngTemplateOutlet"],["defaultFindbar",""],["defaultFindbarButtons",""],["id","findbar",1,"findbar","hidden","doorHanger"],[3,"customFindbarInputArea"]],template:function(e,t){if(1&e&&(hs(0,0),ns(1,UE,2,11,"ng-template",null,1,tc),ns(3,WE,5,1,"ng-template",null,2,tc)),2&e){var n=is(2);os("ngTemplateOutlet",t.customFindbar?t.customFindbar:n)}},directives:function(){return[Oh,IO,CO,PO,SO,AO]},styles:[""]}),oO),AO=((rO=function(){function e(){A(this,e)}return m(e,[{key:"ngOnInit",value:function(){}}]),e}()).\u0275fac=function(e){return new(e||rO)},rO.\u0275cmp=ft({type:rO,selectors:[["pdf-findbar-message-container"]],decls:2,vars:0,consts:[["id","findbarMessageContainer"],["id","findMsg",1,"toolbarLabel"]],template:function(e,t){1&e&&(ss(0,"div",0),us(1,"span",1),ls())},styles:[""]}),rO),CO=((iO=function(){function e(){A(this,e)}return m(e,[{key:"ngOnInit",value:function(){}}]),e}()).\u0275fac=function(e){return new(e||iO)},iO.\u0275cmp=ft({type:iO,selectors:[["pdf-findbar-options-one-container"]],decls:3,vars:0,consts:[["id","findbarOptionsOneContainer"]],template:function(e,t){1&e&&(ss(0,"div",0),us(1,"pdf-find-highlight-all"),us(2,"pdf-find-match-case"),ls())},directives:function(){return[MO,RO]},styles:[""]}),iO),SO=((nO=function(){function e(){A(this,e)}return m(e,[{key:"ngOnInit",value:function(){}}]),e}()).\u0275fac=function(e){return new(e||nO)},nO.\u0275cmp=ft({type:nO,selectors:[["pdf-findbar-options-three-container"]],decls:4,vars:0,consts:[["id","findbarOptionsThreeContainer"]],template:function(e,t){1&e&&(ss(0,"div",0),us(1,"pdf-find-ignore-accents"),us(2,"pdf-find-fuzzily"),us(3,"pdf-find-results-count"),ls())},directives:function(){return[TO,OO,zO]},styles:[""]}),nO),PO=((tO=function(){function e(){A(this,e)}return m(e,[{key:"ngOnInit",value:function(){}}]),e}()).\u0275fac=function(e){return new(e||tO)},tO.\u0275cmp=ft({type:tO,selectors:[["pdf-findbar-options-two-container"]],decls:3,vars:0,consts:[["id","findbarOptionsTwoContainer"]],template:function(e,t){1&e&&(ss(0,"div",0),us(1,"pdf-find-entire-word"),us(2,"pdf-find-entire-phrase"),ls())},directives:function(){return[DO,FO]},styles:[""]}),tO),EO=((eO=function(){function e(){A(this,e),this.showFindButton=void 0,this.textLayer=void 0}return m(e,[{key:"ngOnInit",value:function(){}}]),e}()).\u0275fac=function(e){return new(e||eO)},eO.\u0275cmp=ft({type:eO,selectors:[["pdf-find-button"]],inputs:{showFindButton:"showFindButton",textLayer:"textLayer"},decls:5,vars:2,consts:[["type","button","id","viewFind","title","Find in Document","data-l10n-id","findbar",1,"toolbarButton"],["viewBox","0 0 24 24",2,"width","24px","height","24px"],["fill","currentColor","d","M9.5,3A6.5,6.5 0 0,1 16,9.5C16,11.11 15.41,12.59 14.44,13.73L14.71,14H15.5L20.5,19L19,20.5L14,15.5V14.71L13.73,14.44C12.59,15.41 11.11,16 9.5,16A6.5,6.5 0 0,1 3,9.5A6.5,6.5 0 0,1 9.5,3M9.5,5C7,5 5,7 5,9.5C5,12 7,14 9.5,14C12,14 14,12 14,9.5C14,7 12,5 9.5,5Z"],["data-l10n-id","findbar_label"]],template:function(e,t){1&e&&(ss(0,"button",0),On(),ss(1,"svg",1),us(2,"path",2),ls(),Mn(),ss(3,"span",3),Qs(4,"Find"),ls(),ls()),2&e&&Fs("invisible",!t.showFindButton||!t.textLayer)},styles:[KE]}),eO),DO=(($D=function(){function e(){A(this,e)}return m(e,[{key:"ngOnInit",value:function(){}}]),e}()).\u0275fac=function(e){return new(e||$D)},$D.\u0275cmp=ft({type:$D,selectors:[["pdf-find-entire-word"]],decls:3,vars:0,consts:[["type","checkbox","id","findEntireWord",1,"toolbarField"],["for","findEntireWord","data-l10n-id","find_entire_word_label",1,"toolbarLabel"]],template:function(e,t){1&e&&(us(0,"input",0),ss(1,"label",1),Qs(2," Whole words\n"),ls())},styles:[""]}),$D),OO=((JD=function(){function e(){A(this,e)}return m(e,[{key:"ngOnInit",value:function(){}}]),e}()).\u0275fac=function(e){return new(e||JD)},JD.\u0275cmp=ft({type:JD,selectors:[["pdf-find-fuzzily"]],decls:3,vars:0,consts:[["type","checkbox","id","findFuzzy",1,"toolbarField"],["for","findFuzzy","data-l10n-id","find_fuzzy",1,"toolbarLabel"]],template:function(e,t){1&e&&(us(0,"input",0),ss(1,"label",1),Qs(2," Fuzzy search\n"),ls())},styles:[""]}),JD),MO=((KD=function(){function e(){A(this,e)}return m(e,[{key:"ngOnInit",value:function(){}}]),e}()).\u0275fac=function(e){return new(e||KD)},KD.\u0275cmp=ft({type:KD,selectors:[["pdf-find-highlight-all"]],decls:3,vars:0,consts:[["type","checkbox","id","findHighlightAll",1,"toolbarField"],["for","findHighlightAll","data-l10n-id","find_highlight",1,"toolbarLabel"]],template:function(e,t){1&e&&(us(0,"input",0),ss(1,"label",1),Qs(2," Highlight all\n"),ls())},styles:[""]}),KD),TO=((XD=function(){function e(){A(this,e)}return m(e,[{key:"ngOnInit",value:function(){}}]),e}()).\u0275fac=function(e){return new(e||XD)},XD.\u0275cmp=ft({type:XD,selectors:[["pdf-find-ignore-accents"]],decls:3,vars:0,consts:[["type","checkbox","id","findIgnoreAccents",1,"toolbarField"],["for","findIgnoreAccents","data-l10n-id","find_ignore_accents",1,"toolbarLabel"]],template:function(e,t){1&e&&(us(0,"input",0),ss(1,"label",1),Qs(2," Ignore accents and diacritics\n"),ls())},styles:[""]}),XD),IO=((QD=function e(){A(this,e)}).\u0275fac=function(e){return new(e||QD)},QD.\u0275cmp=ft({type:QD,selectors:[["pdf-find-input-area"]],inputs:{customFindbarInputArea:"customFindbarInputArea"},decls:2,vars:2,consts:[["id","findbarInputContainer",4,"ngIf"],[3,"ngTemplateOutlet"],["id","findbarInputContainer"]],template:function(e,t){1&e&&(ns(0,GE,4,0,"div",0),hs(1,1)),2&e&&(os("ngIf",!t.customFindbarInputArea),xo(1),os("ngTemplateOutlet",t.customFindbarInputArea))},directives:function(){return[mh,Oh,XO,VO,BO]},styles:[""]}),QD),RO=((ZD=function(){function e(){A(this,e)}return m(e,[{key:"ngOnInit",value:function(){}}]),e}()).\u0275fac=function(e){return new(e||ZD)},ZD.\u0275cmp=ft({type:ZD,selectors:[["pdf-find-match-case"]],decls:3,vars:0,consts:[["type","checkbox","id","findMatchCase",1,"toolbarField"],["for","findMatchCase","data-l10n-id","find_match_case_label",1,"toolbarLabel"]],template:function(e,t){1&e&&(us(0,"input",0),ss(1,"label",1),Qs(2," Match case\n"),ls())},styles:[""]}),ZD),LO=((YD=function e(){A(this,e),this.individualWordsMode=!0,this.multipleSearchTexts=!1}).\u0275prov=Re({token:YD,factory:YD.\u0275fac=function(e){return new(e||YD)},providedIn:"root"}),YD.ngInjectableDef=Le({factory:function(){return new YD},token:YD,providedIn:"root"}),YD),FO=((qD=function(){function e(t){A(this,e),this.pdfFindbarService=t}return m(e,[{key:"ngOnInit",value:function(){}}]),e}()).\u0275fac=function(e){return new(e||qD)(rs(LO))},qD.\u0275cmp=ft({type:qD,selectors:[["pdf-find-entire-phrase"]],decls:6,vars:6,consts:[["type","checkbox","id","findMultipleSearchTexts",1,"toolbarField",3,"ngModel","ngModelChange"],["for","findMultipleSearchTexts","data-l10n-id","find_multiple_texts_label",1,"toolbarLabel"],["type","checkbox","id","individualWordsMode",1,"toolbarField",3,"ngModel","ngModelChange"],["for","individualWordsMode","id","individualWordsModeLabel","data-l10n-id","find_individual_words_label",1,"toolbarLabel"]],template:function(e,t){1&e&&(ss(0,"input",0),ms("ngModelChange",function(e){return t.pdfFindbarService.multipleSearchTexts=e}),ls(),ss(1,"label",1),Qs(2," multiple search texts\n"),ls(),ss(3,"input",2),ms("ngModelChange",function(e){return t.pdfFindbarService.individualWordsMode=e}),ls(),ss(4,"label",3),Qs(5," separated by word boundaries\n"),ls()),2&e&&(os("ngModel",t.pdfFindbarService.multipleSearchTexts),xo(3),Fs("hidden",!t.pdfFindbarService.multipleSearchTexts),os("ngModel",t.pdfFindbarService.individualWordsMode),xo(1),Fs("hidden",!t.pdfFindbarService.multipleSearchTexts))},directives:[Mv,hm,Ym],styles:[""]}),qD),BO=((GD=function(){function e(){A(this,e)}return m(e,[{key:"ngOnInit",value:function(){}}]),e}()).\u0275fac=function(e){return new(e||GD)},GD.\u0275cmp=ft({type:GD,selectors:[["pdf-find-next"]],decls:5,vars:0,consts:[["type","button","id","findNext","title","Find the next occurrence of the phrase","data-l10n-id","find_next",1,"toolbarButton"],["viewBox","0 0 24 24",2,"width","24px","height","24px"],["fill","currentColor","d","M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z"],["data-l10n-id","find_next_label"]],template:function(e,t){1&e&&(ss(0,"button",0),On(),ss(1,"svg",1),us(2,"path",2),ls(),Mn(),ss(3,"span",3),Qs(4,"Next"),ls(),ls())},styles:["button.toolbarButton#findNext[_ngcontent-%COMP%]{margin-top:0}"]}),GD),VO=((WD=function(){function e(){A(this,e)}return m(e,[{key:"ngOnInit",value:function(){}}]),e}()).\u0275fac=function(e){return new(e||WD)},WD.\u0275cmp=ft({type:WD,selectors:[["pdf-find-previous"]],decls:5,vars:0,consts:[["type","button","id","findPrevious","title","Find the previous occurrence of the phrase","data-l10n-id","find_previous",1,"toolbarButton"],["viewBox","0 0 24 24",2,"width","24px","height","24px"],["fill","currentColor","d","M15.41,16.58L10.83,12L15.41,7.41L14,6L8,12L14,18L15.41,16.58Z"],["data-l10n-id","find_previous_label"]],template:function(e,t){1&e&&(ss(0,"button",0),On(),ss(1,"svg",1),us(2,"path",2),ls(),Mn(),ss(3,"span",3),Qs(4,"Previous"),ls(),ls())},styles:["button.toolbarButton#findPrevious[_ngcontent-%COMP%]{margin-top:0}"]}),WD),zO=((UD=function(){function e(){A(this,e)}return m(e,[{key:"ngOnInit",value:function(){}}]),e}()).\u0275fac=function(e){return new(e||UD)},UD.\u0275cmp=ft({type:UD,selectors:[["pdf-find-results-count"]],decls:1,vars:0,consts:[["id","findResultsCount",1,"toolbarLabel","hidden"]],template:function(e,t){1&e&&us(0,"span",0)},styles:[""]}),UD),NO=((jD=function(){function e(t){var n=this;A(this,e),this.notificationService=t,this.disableFirstPage=!0;var i=this.notificationService.onPDFJSInit.subscribe(function(){n.onPdfJsInit(),i.unsubscribe()})}return m(e,[{key:"firstPage",value:function(){window.PDFViewerApplication.eventBus.dispatch("firstpage")}},{key:"onPdfJsInit",value:function(){var e=this;window.PDFViewerApplication.eventBus.on("updateuistate",function(t){return e.updateUIState(t)})}},{key:"updateUIState",value:function(e){this.disableFirstPage=e.pageNumber<=1,this.button.nativeElement.disabled=this.disableFirstPage}}]),e}()).\u0275fac=function(e){return new(e||jD)(rs(vD))},jD.\u0275cmp=ft({type:jD,selectors:[["pdf-first-page"]],viewQuery:function(e,t){var n;1&e&&Qu(qE,1),2&e&&Zu(n=Ku())&&(t.button=n.first)},decls:6,vars:1,consts:[["type","button","title","First page","id","primaryFirstPage","data-l10n-id","first_page",1,"toolbarButton","hiddenLargeView",3,"disabled","click"],["button",""],["viewBox","0 0 24 24",2,"width","24px","height","24px"],["fill","currentColor","d","M18.41,16.59L13.82,12L18.41,7.41L17,6L11,12L17,18L18.41,16.59M6,6H8V18H6V6Z"],["data-l10n-id","first_page_label"]],template:function(e,t){1&e&&(ss(0,"button",0,1),ms("click",function(){return t.firstPage()}),On(),ss(2,"svg",2),us(3,"path",3),ls(),Mn(),ss(4,"span",4),Qs(5,"First page"),ls(),ls()),2&e&&os("disabled",t.disableFirstPage)},styles:[""]}),jD),HO=((HD=function(){function e(t){var n=this;A(this,e),this.notificationService=t,this.disableLastPage=!0;var i=this.notificationService.onPDFJSInit.subscribe(function(){n.onPdfJsInit(),i.unsubscribe()})}return m(e,[{key:"firstPage",value:function(){window.PDFViewerApplication.eventBus.dispatch("firstpage")}},{key:"onPdfJsInit",value:function(){var e=this;window.PDFViewerApplication.eventBus.on("updateuistate",function(t){return e.updateUIState(t)})}},{key:"updateUIState",value:function(e){this.disableLastPage=e.pageNumber===e.pagesCount,this.button.nativeElement.disabled=this.disableLastPage}},{key:"lastPage",value:function(){window.PDFViewerApplication.eventBus.dispatch("lastpage")}}]),e}()).\u0275fac=function(e){return new(e||HD)(rs(vD))},HD.\u0275cmp=ft({type:HD,selectors:[["pdf-last-page"]],viewQuery:function(e,t){var n;1&e&&Qu(qE,1),2&e&&Zu(n=Ku())&&(t.button=n.first)},decls:6,vars:1,consts:[["type","button","title","Last page","id","primaryLastPage","data-l10n-id","last_page",1,"toolbarButton","hiddenLargeView",3,"disabled","click"],["button",""],["viewBox","0 0 24 24",2,"width","24px","height","24px"],["fill","currentColor","d","M5.59,7.41L10.18,12L5.59,16.59L7,18L13,12L7,6L5.59,7.41M16,6H18V18H16V6Z"],["data-l10n-id","last_page_label"]],template:function(e,t){1&e&&(ss(0,"button",0,1),ms("click",function(){return t.lastPage()}),On(),ss(2,"svg",2),us(3,"path",3),ls(),Mn(),ss(4,"span",4),Qs(5,"Last page"),ls(),ls()),2&e&&os("disabled",t.disableLastPage)},styles:[""]}),HD),jO=((ND=function(){function e(){A(this,e)}return m(e,[{key:"ngOnInit",value:function(){}}]),e}()).\u0275fac=function(e){return new(e||ND)},ND.\u0275cmp=ft({type:ND,selectors:[["pdf-next-page"]],decls:5,vars:0,consts:[["type","button","title","Next Page","id","next","data-l10n-id","next",1,"toolbarButton"],["viewBox","0 0 24 24",2,"width","24px","height","24px"],["fill","currentColor","d","M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z"],["data-l10n-id","next_label"]],template:function(e,t){1&e&&(ss(0,"button",0),On(),ss(1,"svg",1),us(2,"path",2),ls(),Mn(),ss(3,"span",3),Qs(4,"Next"),ls(),ls())},styles:[""]}),ND),UO=((zD=function e(){A(this,e),this.showOpenFileButton=!0}).\u0275fac=function(e){return new(e||zD)},zD.\u0275cmp=ft({type:zD,selectors:[["pdf-open-file"]],inputs:{showOpenFileButton:"showOpenFileButton"},decls:5,vars:2,consts:[["type","button","id","openFile","title","Open File","data-l10n-id","open_file",1,"toolbarButton","hiddenMediumView"],["viewBox","0 0 24 24",2,"width","24px","height","20px"],["fill","currentColor","d","M14,2L20,8V20A2,2 0 0,1 18,22H6A2,2 0 0,1 4,20V4A2,2 0 0,1 6,2H14M18,20V9H13V4H6V20H18M12,12L16,16H13.5V19H10.5V16H8L12,12Z"],["data-l10n-id","open_file_label"]],template:function(e,t){1&e&&(ss(0,"button",0),On(),ss(1,"svg",1),us(2,"path",2),ls(),Mn(),ss(3,"span",3),Qs(4,"Open"),ls(),ls()),2&e&&Fs("invisible",!t.showOpenFileButton)},styles:[YE]}),zD),WO=((VD=function(){function e(){A(this,e),this.showPagingButtons=!0}return m(e,[{key:"ngOnInit",value:function(){}}]),e}()).\u0275fac=function(e){return new(e||VD)},VD.\u0275cmp=ft({type:VD,selectors:[["pdf-page-number"]],inputs:{showPagingButtons:"showPagingButtons"},decls:2,vars:4,consts:[["type","number","id","pageNumber","title","Page","value","1","size","4","min","1","data-l10n-id","page",1,"toolbarField","pageNumber"],["id","numPages",1,"toolbarLabel","hiddenXLView"]],template:function(e,t){1&e&&(us(0,"input",0),us(1,"span",1)),2&e&&(Fs("invisible",!t.showPagingButtons),xo(1),Fs("invisible",!t.showPagingButtons))},styles:[""]}),VD),GO=((BD=function e(){A(this,e),this.showPagingButtons=!0}).\u0275fac=function(e){return new(e||BD)},BD.\u0275cmp=ft({type:BD,selectors:[["pdf-paging-area"]],inputs:{showPagingButtons:"showPagingButtons"},decls:7,vars:5,consts:[[1,"paging-left","hiddenTinyView"],[2,"margin-right","-3px"],[2,"margin-left","-3px"],[3,"showPagingButtons"],[1,"paging-right","hiddenTinyView"],[2,"margin-right","-3px","margin-left","-3px"]],template:function(e,t){1&e&&(ss(0,"div",0),us(1,"pdf-first-page",1),us(2,"pdf-previous-page",2),ls(),us(3,"pdf-page-number",3),ss(4,"div",4),us(5,"pdf-next-page",5),us(6,"pdf-last-page",2),ls()),2&e&&(Fs("invisible",!t.showPagingButtons),xo(3),os("showPagingButtons",t.showPagingButtons),xo(1),Fs("invisible",!t.showPagingButtons))},directives:function(){return[NO,YO,WO,jO,HO]},styles:[".paging-right[_ngcontent-%COMP%]{float:right;display:block;margin-top:-2px}.paging-left[_ngcontent-%COMP%]{float:left;display:block;margin-top:-2px}"]}),BD),qO=((FD=function e(){A(this,e),this.showPresentationModeButton=!0}).\u0275fac=function(e){return new(e||FD)},FD.\u0275cmp=ft({type:FD,selectors:[["pdf-presentation-mode"]],inputs:{showPresentationModeButton:"showPresentationModeButton"},decls:5,vars:2,consts:[["type","button","id","presentationMode","title","Switch to Presentation Mode","data-l10n-id","presentation_mode",1,"toolbarButton","hiddenLargeView"],["viewBox","0 0 24 24",2,"width","27px","height","27px"],["fill","currentColor","d","M5,5H10V7H7V10H5V5M14,5H19V10H17V7H14V5M17,14H19V19H14V17H17V14M10,17V19H5V14H7V17H10Z"],["data-l10n-id","presentation_mode_label"]],template:function(e,t){1&e&&(ss(0,"button",0),On(),ss(1,"svg",1),us(2,"path",2),ls(),Mn(),ss(3,"span",3),Qs(4,"Presentation Mode"),ls(),ls()),2&e&&Fs("invisible",!t.showPresentationModeButton)},styles:["[_nghost-%COMP%]   button.toolbarButton[_ngcontent-%COMP%]{margin-top:0}[_nghost-%COMP%]:focus{outline:0}button[_ngcontent-%COMP%]:focus, svg[_ngcontent-%COMP%]:focus{outline:0}"]}),FD),YO=((LD=function(){function e(){A(this,e)}return m(e,[{key:"ngOnInit",value:function(){}}]),e}()).\u0275fac=function(e){return new(e||LD)},LD.\u0275cmp=ft({type:LD,selectors:[["pdf-previous-page"]],decls:5,vars:0,consts:[["type","button","title","Previous Page","id","previous","data-l10n-id","previous",1,"toolbarButton"],["viewBox","0 0 24 24",2,"width","24px","height","24px"],["fill","currentColor","d","M15.41,16.58L10.83,12L15.41,7.41L14,6L8,12L14,18L15.41,16.58Z"],["data-l10n-id","previous_label"]],template:function(e,t){1&e&&(ss(0,"button",0),On(),ss(1,"svg",1),us(2,"path",2),ls(),Mn(),ss(3,"span",3),Qs(4,"Previous"),ls(),ls())},styles:[""]}),LD),ZO=((RD=function e(){A(this,e),this.showPrintButton=!0}).\u0275fac=function(e){return new(e||RD)},RD.\u0275cmp=ft({type:RD,selectors:[["pdf-print"]],inputs:{showPrintButton:"showPrintButton"},decls:5,vars:2,consts:[["type","button","id","print","title","Print","data-l10n-id","print",1,"toolbarButton","hiddenSmallView"],["viewBox","0 0 24 24",2,"width","22px","height","22px"],["fill","currentColor","d","M18,3H6V7H18M19,12A1,1 0 0,1 18,11A1,1 0 0,1 19,10A1,1 0 0,1 20,11A1,1 0 0,1 19,12M16,19H8V14H16M19,8H5A3,3 0 0,0 2,11V17H6V21H18V17H22V11A3,3 0 0,0 19,8Z"],["data-l10n-id","print_label"]],template:function(e,t){1&e&&(ss(0,"button",0),On(),ss(1,"svg",1),us(2,"path",2),ls(),Mn(),ss(3,"span",3),Qs(4,"Print"),ls(),ls()),2&e&&Fs("invisible",!t.showPrintButton)},styles:[XE]}),RD),QO=((ID=function(){function e(t){var n=this;A(this,e),this.notificationService=t,this.showRotateButton=!0,this.disableRotate=!0;var i=this.notificationService.onPDFJSInit.subscribe(function(){n.onPdfJsInit(),i.unsubscribe()})}return m(e,[{key:"rotateCW",value:function(){window.PDFViewerApplication.eventBus.dispatch("rotatecw")}},{key:"rotateCCW",value:function(){window.PDFViewerApplication.eventBus.dispatch("rotateccw")}},{key:"onPdfJsInit",value:function(){var e=this;window.PDFViewerApplication.eventBus.on("updateuistate",function(t){return e.updateUIState(t)})}},{key:"updateUIState",value:function(e){this.disableRotate=0===e.pagesCount,this.button1.nativeElement.disabled=this.disableRotate,this.button2.nativeElement.disabled=this.disableRotate}}]),e}()).\u0275fac=function(e){return new(e||ID)(rs(vD))},ID.\u0275cmp=ft({type:ID,selectors:[["pdf-rotate-page"]],viewQuery:function(e,t){var n;1&e&&(Qu(ZE,1),Qu(QE,1)),2&e&&(Zu(n=Ku())&&(t.button1=n.first),Zu(n=Ku())&&(t.button2=n.first))},inputs:{showRotateButton:"showRotateButton"},decls:8,vars:6,consts:[["type","button","id","primaryPageRotateCw","title","Rotate Clockwise","data-l10n-id","page_rotate_cw",1,"toolbarButton","hiddenXLView","rotateCw",3,"disabled","click"],["button1",""],["viewBox","0 0 24 24",2,"width","23px","height","23px"],["fill","currentColor","d","M12 3C7.03 3 3 7.03 3 12S7.03 21 12 21C14 21 15.92 20.34 17.5 19.14L16.06 17.7C14.87 18.54 13.45 19 12 19C8.13 19 5 15.87 5 12S8.13 5 12 5 19 8.13 19 12H16L20 16L24 12H21C21 7.03 16.97 3 12 3"],["type","button","id","primaryPageRotateCcw","title","Rotate Counterclockwise","data-l10n-id","page_rotate_ccw",1,"toolbarButton","hiddenXLView","rotateCcw",3,"disabled","click"],["button2",""],["fill","currentColor","d","M12 3C7.03 3 3 7.03 3 12H0L4 16L8 12H5C5 8.13 8.13 5 12 5S19 8.13 19 12 15.87 19 12 19C10.55 19 9.13 18.54 7.94 17.7L6.5 19.14C8.08 20.34 10 21 12 21C16.97 21 21 16.97 21 12S16.97 3 12 3"]],template:function(e,t){1&e&&(ss(0,"button",0,1),ms("click",function(){return t.rotateCW()}),On(),ss(2,"svg",2),us(3,"path",3),ls(),ls(),Mn(),ss(4,"button",4,5),ms("click",function(){return t.rotateCCW()}),On(),ss(6,"svg",2),us(7,"path",6),ls(),ls()),2&e&&(Fs("invisible",!t.showRotateButton),os("disabled",t.disableRotate),xo(4),Fs("invisible",!t.showRotateButton),os("disabled",t.disableRotate))},styles:[XE]}),ID),XO=((TD=function e(t){A(this,e),this.pdfFindbarService=t}).\u0275fac=function(e){return new(e||TD)(rs(LO))},TD.\u0275cmp=ft({type:TD,selectors:[["pdf-search-input-field"]],decls:2,vars:5,consts:[["autocomplete","search-input-field","id","findInput","title","Find","data-l10n-id","find_input","name","search-input-field",1,"toolbarField",3,"placeholder"],["id","findInputMultiline","type","checkbox","placeholder","Multiple search terms. Each line is a search term.","data-l10n-id","find_input_line_by_line","lines","3",1,"toolbarField"]],template:function(e,t){1&e&&(us(0,"input",0),us(1,"textarea",1)),2&e&&(Fs("hidden",!t.pdfFindbarService.individualWordsMode),os("placeholder","Find in document\u2026"),xo(1),Fs("hidden",t.pdfFindbarService.individualWordsMode))},styles:["textarea[_ngcontent-%COMP%]{width:200px;height:3.5em}textarea[_ngcontent-%COMP%]::-webkit-input-placeholder{color:#bfbfbf}textarea[_ngcontent-%COMP%]::-moz-placeholder{font-style:italic}textarea[_ngcontent-%COMP%]:-ms-input-placeholder{font-style:italic}textarea[_ngcontent-%COMP%]::-ms-input-placeholder{font-style:italic}textarea[_ngcontent-%COMP%]::placeholder{font-style:italic}"]}),TD),KO=((MD=function(){function e(){A(this,e),this.showSecondaryToolbarButton=!0}return m(e,[{key:"ngOnInit",value:function(){}}]),e}()).\u0275fac=function(e){return new(e||MD)},MD.\u0275cmp=ft({type:MD,selectors:[["pdf-toggle-secondary-toolbar"]],inputs:{showSecondaryToolbarButton:"showSecondaryToolbarButton"},decls:5,vars:2,consts:[["type","button","id","secondaryToolbarToggle","title","Tools","data-l10n-id","tools",1,"toolbarButton"],["viewBox","0 0 24 24","onclick","event.preventDefault(); return false;",2,"width","27px","height","27px"],["fill","currentColor","d","M3,6H21V8H3V6M3,11H21V13H3V11M3,16H21V18H3V16Z"],["data-l10n-id","tools_label"]],template:function(e,t){1&e&&(ss(0,"button",0),On(),ss(1,"svg",1),us(2,"path",2),ls(),Mn(),ss(3,"span",3),Qs(4,"Tools"),ls(),ls()),2&e&&Fs("invisible",!t.showSecondaryToolbarButton)},styles:["svg[_ngcontent-%COMP%]{margin-top:-3px}[_nghost-%COMP%]:focus{outline:0}button[_ngcontent-%COMP%]:focus, svg[_ngcontent-%COMP%]:focus{outline:0}"]}),MD),JO=((OD=function(){function e(){A(this,e),this.showSidebarButton=!0}return m(e,[{key:"ngOnInit",value:function(){}}]),e}()).\u0275fac=function(e){return new(e||OD)},OD.\u0275cmp=ft({type:OD,selectors:[["pdf-toggle-sidebar"]],inputs:{showSidebarButton:"showSidebarButton"},decls:5,vars:2,consts:[["type","button","id","sidebarToggle","title","Toggle Sidebar","data-l10n-id","toggle_sidebar",1,"toolbarButton"],["viewBox","0 0 24 24",2,"width","24px","height","24px"],["fill","currentColor","d","M3,9H17V7H3V9M3,13H17V11H3V13M3,17H17V15H3V17M19,17H21V15H19V17M19,7V9H21V7H19M19,13H21V11H19V13Z"],["data-l10n-id","toggle_sidebar_label"]],template:function(e,t){1&e&&(ss(0,"button",0),On(),ss(1,"svg",1),us(2,"path",2),ls(),Mn(),ss(3,"span",3),Qs(4,"Toggle Sidebar"),ls(),ls()),2&e&&Fs("invisible",!t.showSidebarButton)},styles:[KE]}),OD),$O=((DD=function e(){A(this,e),this.mobileFriendlyZoomScale=1,this.primaryMenuVisible=!0,this.showBookmarkButton=!0,this.showDownloadButton=!0,this.showFindButton=void 0,this.showHandToolButton=!0,this.showOpenFileButton=!0,this.showPrintButton=!0,this.showPagingButtons=!0,this.showPresentationModeButton=!1,this.showRotateButton=!0,this.showSecondaryToolbarButton=!0,this.showSidebarButton=!0,this.showZoomButtons=!0,this.textLayer=void 0,this.toolbarPaddingTop="0px",this.toolbarWidth="100%",this.zoomLevels=["auto","page-actual","page-fit","page-width",.5,.75,1,1.25,1.5,2,3,4]}).\u0275fac=function(e){return new(e||DD)},DD.\u0275cmp=ft({type:DD,selectors:[["pdf-toolbar"]],inputs:{mobileFriendlyZoomScale:"mobileFriendlyZoomScale",primaryMenuVisible:"primaryMenuVisible",showBookmarkButton:"showBookmarkButton",showDownloadButton:"showDownloadButton",showFindButton:"showFindButton",showHandToolButton:"showHandToolButton",showOpenFileButton:"showOpenFileButton",showPrintButton:"showPrintButton",showPagingButtons:"showPagingButtons",showPresentationModeButton:"showPresentationModeButton",showRotateButton:"showRotateButton",showSecondaryToolbarButton:"showSecondaryToolbarButton",showSidebarButton:"showSidebarButton",showZoomButtons:"showZoomButtons",textLayer:"textLayer",toolbarPaddingTop:"toolbarPaddingTop",toolbarWidth:"toolbarWidth",zoomLevels:"zoomLevels",customToolbar:"customToolbar"},ngContentSelectors:RE,decls:8,vars:11,consts:[[1,"toolbar"],["id","toolbarContainer"],[4,"ngTemplateOutlet"],["id","loadingBar"],[1,"progress"],[1,"glimmer"],["defaultToolbar",""],["id","toolbarViewer"],["id","toolbarViewerLeft"],[3,"showSidebarButton"],[3,"showFindButton","textLayer"],[3,"showPagingButtons"],[3,"showZoomButtons","zoomLevels"],["id","toolbarViewerRight"],[3,"showHandToolButton"],[3,"showSelectToolButton"],[3,"showRotateButton"],[3,"showPresentationModeButton"],[3,"showOpenFileButton"],[3,"showPrintButton"],[3,"showDownloadButton"],[3,"showBookmarkButton"],[3,"showSecondaryToolbarButton"]],template:function(e,t){if(1&e&&(As(),ss(0,"div",0),ss(1,"div",1),ns(2,JE,1,0,"ng-content",2),ss(3,"div",3),ss(4,"div",4),us(5,"div",5),ls(),ls(),ls(),ls(),ns(6,$E,16,15,"ng-template",null,6,tc)),2&e){var n=is(7);Fs("invisible",!t.primaryMenuVisible),xo(1),Ls("transform","scale("+t.mobileFriendlyZoomScale+")")("transform-origin","left center")("width",t.toolbarWidth)("padding-top",t.toolbarPaddingTop),xo(1),os("ngTemplateOutlet",t.customToolbar?t.customToolbar:n)}},directives:function(){return[Oh,JO,EO,GO,iM,yO,rM,QO,qO,UO,ZO,kO,bO,KO]},styles:[""]}),DD),eM=((ED=function(){function e(){A(this,e),this._zoomLevels=[]}return m(e,[{key:"zoomLevels",set:function(e){var t=this;this._zoomLevels=e.map(function(e){return t.valueToZoomLevel(e)})}},{key:"ngOnInit",value:function(){}},{key:"valueToZoomLevel",value:function(e){e.toString().endsWith("%")&&(e=e.toString().replace("%",""),e=Number(e)/100);var t=Number(e);if(!t){var n=String(e);return{id:this.snakeToCamel(e+"Option"),value:n,dataL10nId:"page_scale_"+n.replace("page-",""),dataL10nArgs:void 0,displayValue:n}}var i=Math.round(100*t);return{id:"scale_"+i,value:String(t),dataL10nId:"page_scale_percent",dataL10nArgs:'{ "scale": '.concat(i," }"),displayValue:String(i)+"%"}}},{key:"snakeToCamel",value:function(e){return e.replace(/([-_][a-z])/g,function(e){return e.toUpperCase().replace("-","").replace("_","")})}}]),e}()).\u0275fac=function(e){return new(e||ED)},ED.\u0275cmp=ft({type:ED,selectors:[["pdf-zoom-dropdown"]],viewQuery:function(e,t){var n;1&e&&Qu(eD,1),2&e&&Zu(n=Ku())&&(t.sizeSelector=n.first)},inputs:{zoomLevels:"zoomLevels"},decls:5,vars:1,consts:[["id","scaleSelectContainer",1,"dropdownToolbarButton"],["id","scaleSelect","title","Zoom","data-l10n-id","zoom"],["sizeSelector",""],[3,"id",4,"ngFor","ngForOf"],["id","customScaleOption","title","","value","custom","disabled","disabled","hidden","true"],[3,"id"]],template:function(e,t){1&e&&(ss(0,"span",0),ss(1,"select",1,2),ns(3,tD,2,5,"option",3),us(4,"option",4),ls(),ls()),2&e&&(xo(3),os("ngForOf",t._zoomLevels))},directives:[gh,ly,_y],styles:[".dropdownToolbarButton[_ngcontent-%COMP%]{display:table-cell;-webkit-appearance:none;width:150px;max-width:150px}.dropdownToolbarButton[_ngcontent-%COMP%] > select[_ngcontent-%COMP%]{width:170px}@media screen and (-webkit-min-device-pixel-ratio:1.1),screen and (min-resolution:1.1dppx){.dropdownToolbarButton[_ngcontent-%COMP%]::after{top:-1px}}"]}),ED),tM=((PD=function(){function e(){A(this,e)}return m(e,[{key:"ngOnInit",value:function(){}}]),e}()).\u0275fac=function(e){return new(e||PD)},PD.\u0275cmp=ft({type:PD,selectors:[["pdf-zoom-in"]],decls:4,vars:0,consts:[["type","button","id","zoomIn","title","Zoom In","data-l10n-id","zoom_in",1,"toolbarButton","zoomIn"],["data-l10n-id","zoom_in_label"]],template:function(e,t){1&e&&(ss(0,"button",0),Qs(1," + "),ss(2,"span",1),Qs(3,"Zoom In"),ls(),ls())},styles:[""]}),PD),nM=((SD=function(){function e(){A(this,e)}return m(e,[{key:"ngOnInit",value:function(){}}]),e}()).\u0275fac=function(e){return new(e||SD)},SD.\u0275cmp=ft({type:SD,selectors:[["pdf-zoom-out"]],decls:4,vars:0,consts:[["type","button","id","zoomOut","title","Zoom Out","data-l10n-id","zoom_out",1,"toolbarButton","zoomOut",2,"margin-top","2px"],["data-l10n-id","zoom_out_label"]],template:function(e,t){1&e&&(ss(0,"button",0),Qs(1," - "),ss(2,"span",1),Qs(3,"Zoom Out"),ls(),ls())},styles:[""]}),SD),iM=((CD=function e(){A(this,e),this.showZoomButtons=!0,this.zoomLevels=["auto","page-actual","page-fit","page-width",.5,.75,1,1.25,1.5,2,3,4]}).\u0275fac=function(e){return new(e||CD)},CD.\u0275cmp=ft({type:CD,selectors:[["pdf-zoom-toolbar"]],inputs:{showZoomButtons:"showZoomButtons",zoomLevels:"zoomLevels"},decls:4,vars:3,consts:[["id","toolbarViewerMiddle"],[2,"width","unset","max-width","unset","padding-top","3px",3,"zoomLevels"]],template:function(e,t){1&e&&(ss(0,"div",0),us(1,"pdf-zoom-out"),us(2,"pdf-zoom-in"),us(3,"pdf-zoom-dropdown",1),ls()),2&e&&(Fs("invisible",!t.showZoomButtons),xo(3),os("zoomLevels",t.zoomLevels))},directives:[nM,tM,eM],styles:[""]}),CD),rM=((AD=function(){function e(t){var n=this;A(this,e),this.notificationService=t,this.showSelectToolButton=!0,this.isSelected=!0;var i=this.notificationService.onPDFJSInit.subscribe(function(){n.onPdfJsInit(),i.unsubscribe()})}return m(e,[{key:"onPdfJsInit",value:function(){var e=this;window.PDFViewerApplication.eventBus.on("cursortoolchanged",function(t){var n=t.tool;return e.isSelected=n===yD.SELECT})}},{key:"onClick",value:function(){window.PDFViewerApplication.eventBus.dispatch("switchcursortool",{tool:yD.SELECT})}}]),e}()).\u0275fac=function(e){return new(e||AD)(rs(vD))},AD.\u0275cmp=ft({type:AD,selectors:[["pdf-select-tool"]],inputs:{showSelectToolButton:"showSelectToolButton"},decls:5,vars:4,consts:[["type","button","id","primaryCursorSelectTool","title","Enable text selection tool","data-l10n-id","cursor_text_select_tool",1,"toolbarButton","hiddenXXLView",3,"click"],["viewBox","0 0 24 24",2,"width","22px","height","22px"],["fill","currentColor","d","M2 4C2 2.89 2.9 2 4 2H7V4H4V7H2V4M22 4V7H20V4H17V2H20C21.1 2 22 2.89 22 4M2 20V17H4V20H7V22H4C2.9 22 2 21.11 2 20M10 2H14V4H10V2M10 20H14V22H10V20M2 10H4V14H2V10M18.5 13C20.4 13 22 14.6 22 16.5C22 19.1 18.5 23 18.5 23C18.5 23 15 19.1 15 16.5C15 14.6 16.6 13 18.5 13M18.5 17.8C19.2 17.8 19.8 17.2 19.7 16.6C19.7 16 19.1 15.4 18.5 15.4C17.9 15.4 17.3 15.9 17.3 16.6C17.3 17.2 17.8 17.8 18.5 17.8M20 10H22V12.34C21.42 11.84 20.74 11.45 20 11.23V10Z"],["data-l10n-id","cursor_text_select_tool_label"]],template:function(e,t){1&e&&(ss(0,"button",0),ms("click",function(){return t.onClick()}),On(),ss(1,"svg",1),us(2,"path",2),ls(),Mn(),ss(3,"span",3),Qs(4,"Text selection tool"),ls(),ls()),2&e&&Fs("invisible",!t.showSelectToolButton)("toggled",t.isSelected)},styles:["[_nghost-%COMP%]{margin-top:0;margin-right:-3px}[_nghost-%COMP%]:focus{outline:0}button[_ngcontent-%COMP%]:focus, svg[_ngcontent-%COMP%]:focus{outline:0}.toggled[_ngcontent-%COMP%]{background-color:#646464;border-color:rgba(0,0,0,.4) rgba(0,0,0,.45) rgba(0,0,0,.5);box-shadow:0 1px 1px rgba(0,0,0,.1) inset,0 0 1px rgba(0,0,0,.2) inset,0 1px 0 rgba(255,255,255,.05)}"]}),AD),oM=((xD=function(){function e(t,n){A(this,e),this.renderer=t,this.document=n,this.zoom=1,this.width=100,this.xs=490,this.sm=560,this.md=610,this.lg=660,this.xl=740,this.xxl=830}return m(e,[{key:"style",get:function(){return"\n@media all and (max-width: ".concat(this.xl,"px) {\n  #toolbarViewerMiddle {\n    display: table;\n    margin: auto;\n    left: auto;\n    position: inherit;\n    transform: none;\n  }\n}\n\n@media all and (max-width: 840px) {\n  #sidebarContent {\n    background-color: rgba(0, 0, 0, 0.7);\n  }\n\n  html[dir='ltr'] #outerContainer.sidebarOpen #viewerContainer {\n    left: 0px !important;\n  }\n  html[dir='rtl'] #outerContainer.sidebarOpen #viewerContainer {\n    right: 0px !important;\n  }\n\n  #outerContainer .hiddenLargeView,\n  #outerContainer .hiddenMediumView {\n    display: inherit;\n  }\n  #outerContainer .visibleLargeView,\n  #outerContainer .visibleMediumView {\n    display: none;\n  }\n}\n\n@media all and (max-width: ").concat(this.lg,"px) {\n  .toolbarButtonSpacer {\n    width: 15px;\n  }\n\n  #outerContainer .hiddenLargeView {\n    display: none;\n  }\n  #outerContainer .visibleLargeView {\n    display: inherit;\n  }\n}\n\n@media all and (max-width: ").concat(this.md,"px) {\n  .toolbarButtonSpacer {\n    display: none;\n  }\n  #outerContainer .hiddenMediumView {\n    display: none;\n  }\n  #outerContainer .visibleMediumView {\n    display: inherit;\n  }\n}\n\n@media all and (max-width: ").concat(this.sm,"px) {\n  .hiddenSmallView,\n  .hiddenSmallView * {\n    display: none;\n  }\n  .visibleSmallView {\n    display: inherit;\n  }\n  .toolbarButtonSpacer {\n    width: 0;\n  }\n  html[dir='ltr'] .findbar {\n    left: 38px;\n  }\n  html[dir='rtl'] .findbar {\n    right: 38px;\n  }\n}\n\n@media all and (max-width: ").concat(this.xs,"px) {\n  #scaleSelectContainer {\n    display: none;\n  }\n}\n\n.visibleXLView,\n.visibleXXLView,\n.visibleTinyView {\n  display: none;\n}\n\n.hiddenXLView,\n.hiddenXXLView {\n  display: unset;\n}\n\n@media all and (max-width: ").concat(this.xl,"px) {\n  #outerContainer .hiddenXLView {\n    display: none;\n  }\n  #outerContainer .visibleXLView {\n    display: inherit;\n  }\n\n  #toolbarViewerMiddle {\n    -webkit-transform: translateX(-36%);\n    transform: translateX(-36%);\n    display: unset;\n    margin: unset;\n    left: 50%;\n    position: absolute;\n  }\n}\n\n@media all and (max-width: ").concat(this.xxl,"px) {\n  #outerContainer .hiddenXXLView {\n    display: none;\n  }\n  #outerContainer .visibleXXLView {\n    display: inherit;\n  }\n}\n\n@media all and (max-width: ").concat(this.md,"px) {\n  #toolbarViewerMiddle {\n    -webkit-transform: translateX(-26%);\n    transform: translateX(-26%);\n  }\n}\n\n@media all and (max-width: ").concat(this.xs,"px) {\n  .hiddenTinyView,\n  .hiddenTinyView * {\n    display: none;\n  }\n  .visibleTinyView {\n    display: inherit;\n  }\n}\n  ")}},{key:"ngOnInit",value:function(){this.injectStyle()}},{key:"ngOnChanges",value:function(){var e=this.document.body.clientWidth/this.width*(this.zoom?this.zoom:1);this.xs=490*e,this.sm=560*e,this.md=610*e,this.lg=660*e,this.xl=740*e,this.xxl=830*e;var t=this.document.getElementById("pdf-dynamic-css");t&&(t.innerHTML=this.style)}},{key:"injectStyle",value:function(){var e=this.document.createElement("STYLE");e.id="pdf-dynamic-css",e.innerHTML=this.style,this.renderer.appendChild(this.document.head,e)}},{key:"ngOnDestroy",value:function(){var e=this.document.getElementById("pdf-dynamic-css");e&&e.parentElement&&e.parentElement.removeChild(e)}}]),e}()).\u0275fac=function(e){return new(e||xD)(rs(El),rs(od))},xD.\u0275cmp=ft({type:xD,selectors:[["pdf-dynamic-css"]],inputs:{zoom:"zoom",width:"width"},features:[Mt],decls:0,vars:0,template:function(e,t){},styles:[""]}),xD),aM=((kD=function(){function e(){var t=this;A(this,e),this.thumbnailDrawn=new Fu,this.top="32px",this._hideSidebarToolbar=!1,window.pdfThumbnailGeneratorReady=function(){return t.pdfThumbnailGeneratorReady()},window.pdfThumbnailGenerator=function(e,n,i,r,o){return t.createThumbnail(e,n,i,r,o)}}return m(e,[{key:"ngOnDestroy",value:function(){this.linkService=void 0}},{key:"pdfThumbnailGeneratorReady",value:function(){if(!this.thumbnailViewTemplate)return!1;var e=this.thumbnailViewTemplate.nativeElement;return!!e&&!!e.innerHTML&&e.innerHTML.length>0}},{key:"createThumbnail",value:function(e,t,n,i,r){this.linkService=t;var o=this.thumbnailViewTemplate.nativeElement.innerHTML.split(/_ng\w+-\w+-\w+=""/g).join("").split(/ng-\w+-\w+/g).join("").split(/<!--[\s\S]*?-->/g).join(""),a=e.canvasWidth+2+"px",s=e.canvasHeight+2+"px",l=o.split("WIDTH_OF_RING").join(a).split("HEIGHT_OF_RING").join(s).split("PAGE_NUMBER").join(n),u=this.createElementFromHTML(l);u.classList.remove("pdf-viewer-template");var c=u;c.href=t.getAnchorUrl("#page="+n),r.then(function(e){c.title=e}),c.onclick=function(){return t.page=n,!1},e.anchor=c;var d=u.getElementsByClassName("image-container")[0];e.ring=d,e.div=u.getElementsByClassName("thumbnail")[0],i.appendChild(u),this.thumbnailDrawn.emit({thumbnail:u,container:i,pageId:n})}},{key:"createElementFromHTML",value:function(e){var t=document.createElement("div");return t.innerHTML=e.trim(),t.firstChild}},{key:"onKeyDown",value:function(e){"ArrowDown"===e.code?this.linkService&&(e.ctrlKey||e.metaKey?this.linkService.page=this.linkService.pagesCount:this.linkService.page<this.linkService.pagesCount&&(this.linkService.page=this.linkService.page+1),e.preventDefault()):"ArrowUp"===e.code&&this.linkService&&(e.ctrlKey||e.metaKey?this.linkService.page=1:this.linkService.page>1&&(this.linkService.page=this.linkService.page-1),e.preventDefault())}},{key:"hideSidebarToolbar",set:function(e){this._hideSidebarToolbar=e,this.top=this._hideSidebarToolbar?"0":"32px"}}]),e}()).\u0275fac=function(e){return new(e||kD)},kD.\u0275cmp=ft({type:kD,selectors:[["pdf-sidebar-content"]],viewQuery:function(e,t){var n;1&e&&Qu(nD,1),2&e&&Zu(n=Ku())&&(t.thumbnailViewTemplate=n.first)},inputs:{hideSidebarToolbar:"hideSidebarToolbar",customThumbnail:"customThumbnail"},outputs:{thumbnailDrawn:"thumbnailDrawn"},ngContentSelectors:RE,decls:10,vars:3,consts:[["id","sidebarContent"],["thumbnailViewTemplate",""],[4,"ngTemplateOutlet"],["id","thumbnailView",3,"keydown"],["id","outlineView",1,"hidden"],["id","attachmentsView",1,"hidden"],["id","layersView",1,"hidden"],["defaultThumbnail",""],[1,"pdf-viewer-template"],["data-page-number","$page",1,"thumbnail"],[1,"thumbnailSelectionRing","image-container",2,"width","WIDTH_OF_RING","height","HEIGHT_OF_RING"]],template:function(e,t){if(1&e&&(As(),ss(0,"div",0),ss(1,"div",null,1),ns(3,iD,1,0,"ng-content",2),ls(),ss(4,"div",3),ms("keydown",function(e){return t.onKeyDown(e)}),ls(),us(5,"div",4),us(6,"div",5),us(7,"div",6),ls(),ns(8,rD,3,0,"ng-template",null,7,tc)),2&e){var n=is(9);Ls("top",t.top),xo(3),os("ngTemplateOutlet",t.customThumbnail?t.customThumbnail:n)}},directives:[Oh],styles:[""]}),kD),sM=((_D=function(){function e(){A(this,e)}return m(e,[{key:"ngOnInit",value:function(){}}]),e}()).\u0275fac=function(e){return new(e||_D)},_D.\u0275cmp=ft({type:_D,selectors:[["pdf-sidebar-toolbar"]],decls:21,vars:0,consts:[["id","toolbarSidebar"],["type","button","id","viewThumbnail","title","Show Thumbnails","data-l10n-id","thumbs",1,"toolbarButton","toggled"],["data-l10n-id","thumbs_label"],["viewBox","0 0 24 24",2,"width","20px","height","20px"],["fill","currentColor","d","M19,19H5V5H19M19,3H5A2,2 0 0,0 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5A2,2 0 0,0 19,3M13.96,12.29L11.21,15.83L9.25,13.47L6.5,17H17.5L13.96,12.29Z"],["type","button","id","viewOutline","title","Show Document Outline (double-click to expand/collapse all items)","data-l10n-id","document_outline","hidden","true",1,"toolbarButton"],["data-l10n-id","document_outline_label"],["fill","currentColor","d","M3,9H17V7H3V9M3,13H17V11H3V13M3,17H17V15H3V17M19,17H21V15H19V17M19,7V9H21V7H19M19,13H21V11H19V13Z"],["type","button","id","viewAttachments","title","Show Attachments","data-l10n-id","attachments","hidden","true",1,"toolbarButton"],["data-l10n-id","attachments_label"],["fill","currentColor","d","M16.5,6V17.5A4,4 0 0,1 12.5,21.5A4,4 0 0,1 8.5,17.5V5A2.5,2.5 0 0,1 11,2.5A2.5,2.5 0 0,1 13.5,5V15.5A1,1 0 0,1 12.5,16.5A1,1 0 0,1 11.5,15.5V6H10V15.5A2.5,2.5 0 0,0 12.5,18A2.5,2.5 0 0,0 15,15.5V5A4,4 0 0,0 11,1A4,4 0 0,0 7,5V17.5A5.5,5.5 0 0,0 12.5,23A5.5,5.5 0 0,0 18,17.5V6H16.5Z"],["id","viewLayers","title","Show Layers (double-click to reset all layers to the default state)","data-l10n-id","layers","hidden","true",1,"toolbarButton"],["data-l10n-id","layers_label"],["xmlns","http://www.w3.org/2000/svg","fill","currentColor","viewBox","0 0 4.233 4.233",2,"width","20px","height","20px"],["d","M.15 2.992c-.198.1-.2.266-.002.365l1.604.802a.93.93 0 00.729-.001l1.602-.801c.198-.1.197-.264 0-.364l-.695-.348c-1.306.595-2.542 0-2.542 0m-.264.53l.658-.329c.6.252 1.238.244 1.754 0l.659.329-1.536.768zM.15 1.935c-.198.1-.198.265 0 .364l1.604.802a.926.926 0 00.727 0l1.603-.802c.198-.099.198-.264 0-.363l-.694-.35c-1.14.56-2.546.001-2.546.001m-.264.53l.664-.332c.52.266 1.261.235 1.75.002l.659.33-1.537.768zM.15.877c-.198.099-.198.264 0 .363l1.604.802a.926.926 0 00.727 0l1.603-.802c.198-.099.198-.264 0-.363L2.481.075a.926.926 0 00-.727 0zm.43.182L2.117.29l1.538.769-1.538.768z"]],template:function(e,t){1&e&&(ss(0,"div",0),ss(1,"button",1),ss(2,"span",2),Qs(3,"Thumbnails"),ls(),On(),ss(4,"svg",3),us(5,"path",4),ls(),ls(),Mn(),ss(6,"button",5),ss(7,"span",6),Qs(8,"Document Outline"),ls(),On(),ss(9,"svg",3),us(10,"path",7),ls(),ls(),Mn(),ss(11,"button",8),ss(12,"span",9),Qs(13,"Attachments"),ls(),On(),ss(14,"svg",3),us(15,"path",10),ls(),ls(),Mn(),ss(16,"button",11),ss(17,"span",12),Qs(18,"Layers"),ls(),On(),ss(19,"svg",13),us(20,"path",14),ls(),ls(),ls())},styles:["button[_ngcontent-%COMP%]{margin-right:4px!important}div#toolbarSidebar[_ngcontent-%COMP%] > button[_ngcontent-%COMP%]:first-child{margin-left:4px!important}"]}),_D),lM=((wD=function e(){A(this,e)}).\u0275fac=function(e){return new(e||wD)},wD.\u0275cmp=ft({type:wD,selectors:[["pdf-light-theme"]],decls:0,vars:0,template:function(e,t){},styles:["ngx-extended-pdf-viewer .dropdownToolbarButton::after{content:url(\"data:image/svg+xml; utf8, <svg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'><path fill='rgb(90, 90, 90)' d='M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z' /></svg>\")}ngx-extended-pdf-viewer .textLayer{position:absolute;left:0;top:0;right:0;bottom:0;overflow:hidden;opacity:.2;line-height:1}ngx-extended-pdf-viewer .textLayer>span{color:transparent;position:absolute;white-space:pre;cursor:text;-webkit-transform-origin:0 0;transform-origin:0 0}ngx-extended-pdf-viewer .textLayer .highlight{margin:-1px;padding:1px;background-color:var(#b400aa);border-radius:4px}ngx-extended-pdf-viewer .textLayer .highlight.begin{border-radius:4px 0 0 4px}ngx-extended-pdf-viewer .textLayer .highlight.end{border-radius:0 4px 4px 0}ngx-extended-pdf-viewer .textLayer .highlight.middle{border-radius:0}ngx-extended-pdf-viewer .textLayer .highlight.selected{background-color:#006400}ngx-extended-pdf-viewer .textLayer ::-moz-selection{background:#00f}ngx-extended-pdf-viewer .textLayer ::selection{background:#00f}ngx-extended-pdf-viewer .textLayer .endOfContent{display:block;position:absolute;left:0;top:100%;right:0;bottom:0;z-index:-1;cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}ngx-extended-pdf-viewer .textLayer .endOfContent.active{top:0}ngx-extended-pdf-viewer .annotationLayer section{position:absolute}ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.pushButton>a,ngx-extended-pdf-viewer .annotationLayer .linkAnnotation>a{position:absolute;font-size:1em;top:0;left:0;width:100%;height:100%}ngx-extended-pdf-viewer .annotationLayer .textAnnotation img{position:absolute;cursor:pointer}ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.checkBox input,ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.radioButton input,ngx-extended-pdf-viewer .annotationLayer .choiceWidgetAnnotation select,ngx-extended-pdf-viewer .annotationLayer .textWidgetAnnotation input,ngx-extended-pdf-viewer .annotationLayer .textWidgetAnnotation textarea{background-color:rgba(0,54,255,.13);color:#5a5a5a;border:1px solid transparent;box-sizing:border-box;font-size:9px;height:100%;margin:0;padding:0 3px;vertical-align:top;width:100%}ngx-extended-pdf-viewer .annotationLayer .choiceWidgetAnnotation select option{padding:0}ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.radioButton input{border-radius:50%}ngx-extended-pdf-viewer .annotationLayer .textWidgetAnnotation textarea{font:message-box;font-size:9px;resize:none}ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.checkBox input[disabled],ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.radioButton input[disabled],ngx-extended-pdf-viewer .annotationLayer .choiceWidgetAnnotation select[disabled],ngx-extended-pdf-viewer .annotationLayer .textWidgetAnnotation input[disabled],ngx-extended-pdf-viewer .annotationLayer .textWidgetAnnotation textarea[disabled]{background:0 0;border:1px solid transparent;cursor:not-allowed}ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after,ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before,ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.radioButton input:checked:before{background-color:#5a5a5a;content:'';display:block;position:absolute}ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after,ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before{height:80%;left:45%;width:1px}ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before{-webkit-transform:rotate(45deg);transform:rotate(45deg)}ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after{-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.radioButton input:checked:before{border-radius:50%;height:50%;left:30%;top:20%;width:50%}ngx-extended-pdf-viewer .annotationLayer .textWidgetAnnotation input.comb{font-family:monospace;padding-left:2px;padding-right:0}ngx-extended-pdf-viewer .annotationLayer .textWidgetAnnotation input.comb:focus{width:115%}ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.checkBox input,ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.radioButton input{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:0}ngx-extended-pdf-viewer .annotationLayer .popupWrapper{position:absolute;width:20em}ngx-extended-pdf-viewer .annotationLayer .popup{position:absolute;z-index:4;max-width:20em;background-color:#ff9;box-shadow:0 2px 5px #888;border-radius:2px;padding:6px;margin-left:5px;cursor:pointer;font:message-box;font-size:9px;word-wrap:break-word}ngx-extended-pdf-viewer .annotationLayer .popup>*{font-size:9px}ngx-extended-pdf-viewer .annotationLayer .popup h1{display:inline-block}ngx-extended-pdf-viewer .annotationLayer .popup span{display:inline-block;margin-left:5px}ngx-extended-pdf-viewer .annotationLayer .popup p{border-top:1px solid #333;margin-top:2px;padding-top:2px}ngx-extended-pdf-viewer .annotationLayer .caretAnnotation,ngx-extended-pdf-viewer .annotationLayer .circleAnnotation svg ellipse,ngx-extended-pdf-viewer .annotationLayer .fileAttachmentAnnotation,ngx-extended-pdf-viewer .annotationLayer .freeTextAnnotation,ngx-extended-pdf-viewer .annotationLayer .highlightAnnotation,ngx-extended-pdf-viewer .annotationLayer .inkAnnotation svg polyline,ngx-extended-pdf-viewer .annotationLayer .lineAnnotation svg line,ngx-extended-pdf-viewer .annotationLayer .polygonAnnotation svg polygon,ngx-extended-pdf-viewer .annotationLayer .polylineAnnotation svg polyline,ngx-extended-pdf-viewer .annotationLayer .squareAnnotation svg rect,ngx-extended-pdf-viewer .annotationLayer .squigglyAnnotation,ngx-extended-pdf-viewer .annotationLayer .stampAnnotation,ngx-extended-pdf-viewer .annotationLayer .strikeoutAnnotation,ngx-extended-pdf-viewer .annotationLayer .underlineAnnotation{cursor:pointer}ngx-extended-pdf-viewer .pdfViewer .canvasWrapper{overflow:hidden}ngx-extended-pdf-viewer .pdfViewer .page{direction:ltr;width:816px;height:1056px;margin:1px auto -8px;position:relative;overflow:visible;border:9px solid transparent;background-clip:content-box;-o-border-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAATCAQAAADYWf5HAAAA6UlEQVR4Xl2Pi2rEMAwE16fm1f7/r14v7w4rI0IzLAF7hLxNevBSEMEF5+OilNCsRd8ZMyn+a4NmsOT8WJw1lFbSYgGFzF2bLFoLjTClWjKKGRWpDYAGXUnZ4uhbBUzF3Oe/GG/ue2fn4GgsyXhNgysV2JnrhKEMg4fEZcALmiKbNhBBRFpSyDOj1G4QOVly6O1FV54ZZq8OVygrciDt6JazRgi1ljTPH0gbrPmHPXAbCiDd4GawIjip1TPh9tt2sz24qaCjr/jAb/GBFTbq9KZ7Ke/Cqt8nayUikZKsWZK7Fe6bg5dOUt8fZHWG2BHc+6EAAAAASUVORK5CYII=) 9 9 repeat;border-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAATCAQAAADYWf5HAAAA6UlEQVR4Xl2Pi2rEMAwE16fm1f7/r14v7w4rI0IzLAF7hLxNevBSEMEF5+OilNCsRd8ZMyn+a4NmsOT8WJw1lFbSYgGFzF2bLFoLjTClWjKKGRWpDYAGXUnZ4uhbBUzF3Oe/GG/ue2fn4GgsyXhNgysV2JnrhKEMg4fEZcALmiKbNhBBRFpSyDOj1G4QOVly6O1FV54ZZq8OVygrciDt6JazRgi1ljTPH0gbrPmHPXAbCiDd4GawIjip1TPh9tt2sz24qaCjr/jAb/GBFTbq9KZ7Ke/Cqt8nayUikZKsWZK7Fe6bg5dOUt8fZHWG2BHc+6EAAAAASUVORK5CYII=) 9 9 repeat;background-color:#fff}ngx-extended-pdf-viewer .pdfViewer.removePageBorders .page{margin:0 auto 10px;border:none}ngx-extended-pdf-viewer .pdfViewer.singlePageView{display:inline-block}ngx-extended-pdf-viewer .pdfViewer.singlePageView .page{margin:0;border:none}ngx-extended-pdf-viewer .pdfViewer.scrollHorizontal,ngx-extended-pdf-viewer .pdfViewer.scrollWrapped,ngx-extended-pdf-viewer .spread{margin-left:3.5px;margin-right:3.5px;text-align:center}ngx-extended-pdf-viewer .pdfViewer.scrollHorizontal,ngx-extended-pdf-viewer .spread{white-space:nowrap}ngx-extended-pdf-viewer .pdfViewer.removePageBorders,ngx-extended-pdf-viewer .pdfViewer.scrollHorizontal .spread,ngx-extended-pdf-viewer .pdfViewer.scrollWrapped .spread{margin-left:0;margin-right:0}ngx-extended-pdf-viewer .pdfViewer.scrollHorizontal .page,ngx-extended-pdf-viewer .pdfViewer.scrollHorizontal .spread,ngx-extended-pdf-viewer .pdfViewer.scrollWrapped .page,ngx-extended-pdf-viewer .pdfViewer.scrollWrapped .spread,ngx-extended-pdf-viewer .spread .page{display:inline-block;vertical-align:middle}ngx-extended-pdf-viewer .pdfViewer.scrollHorizontal .page,ngx-extended-pdf-viewer .pdfViewer.scrollWrapped .page,ngx-extended-pdf-viewer .spread .page{margin-left:-3.5px;margin-right:-3.5px}ngx-extended-pdf-viewer .pdfViewer.removePageBorders .spread .page,ngx-extended-pdf-viewer .pdfViewer.removePageBorders.scrollHorizontal .page,ngx-extended-pdf-viewer .pdfViewer.removePageBorders.scrollWrapped .page{margin-left:5px;margin-right:5px}ngx-extended-pdf-viewer .pdfViewer .page canvas{margin:0;display:block}ngx-extended-pdf-viewer .pdfViewer .page canvas[hidden]{display:none}ngx-extended-pdf-viewer .pdfViewer .page .loadingIcon{position:absolute;display:block;left:0;top:0;right:0;bottom:0;background:url(data:image/gif;base64,R0lGODlhGAAYAPQAAP///wAAAM7Ozvr6+uDg4LCwsOjo6I6OjsjIyJycnNjY2KioqMDAwPLy8nZ2doaGhri4uGhoaAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH/C05FVFNDQVBFMi4wAwEAAAAh/hpDcmVhdGVkIHdpdGggYWpheGxvYWQuaW5mbwAh+QQJBwAAACwAAAAAGAAYAAAFriAgjiQAQWVaDgr5POSgkoTDjFE0NoQ8iw8HQZQTDQjDn4jhSABhAAOhoTqSDg7qSUQwxEaEwwFhXHhHgzOA1xshxAnfTzotGRaHglJqkJcaVEqCgyoCBQkJBQKDDXQGDYaIioyOgYSXA36XIgYMBWRzXZoKBQUMmil0lgalLSIClgBpO0g+s26nUWddXyoEDIsACq5SsTMMDIECwUdJPw0Mzsu0qHYkw72bBmozIQAh+QQJBwAAACwAAAAAGAAYAAAFsCAgjiTAMGVaDgR5HKQwqKNxIKPjjFCk0KNXC6ATKSI7oAhxWIhezwhENTCQEoeGCdWIPEgzESGxEIgGBWstEW4QCGGAIJEoxGmGt5ZkgCRQQHkGd2CESoeIIwoMBQUMP4cNeQQGDYuNj4iSb5WJnmeGng0CDGaBlIQEJziHk3sABidDAHBgagButSKvAAoyuHuUYHgCkAZqebw0AgLBQyyzNKO3byNuoSS8x8OfwIchACH5BAkHAAAALAAAAAAYABgAAAW4ICCOJIAgZVoOBJkkpDKoo5EI43GMjNPSokXCINKJCI4HcCRIQEQvqIOhGhBHhUTDhGo4diOZyFAoKEQDxra2mAEgjghOpCgz3LTBIxJ5kgwMBShACREHZ1V4Kg1rS44pBAgMDAg/Sw0GBAQGDZGTlY+YmpyPpSQDiqYiDQoCliqZBqkGAgKIS5kEjQ21VwCyp76dBHiNvz+MR74AqSOdVwbQuo+abppo10ssjdkAnc0rf8vgl8YqIQAh+QQJBwAAACwAAAAAGAAYAAAFrCAgjiQgCGVaDgZZFCQxqKNRKGOSjMjR0qLXTyciHA7AkaLACMIAiwOC1iAxCrMToHHYjWQiA4NBEA0Q1RpWxHg4cMXxNDk4OBxNUkPAQAEXDgllKgMzQA1pSYopBgonCj9JEA8REQ8QjY+RQJOVl4ugoYssBJuMpYYjDQSliwasiQOwNakALKqsqbWvIohFm7V6rQAGP6+JQLlFg7KDQLKJrLjBKbvAor3IKiEAIfkECQcAAAAsAAAAABgAGAAABbUgII4koChlmhokw5DEoI4NQ4xFMQoJO4uuhignMiQWvxGBIQC+AJBEUyUcIRiyE6CR0CllW4HABxBURTUw4nC4FcWo5CDBRpQaCoF7VjgsyCUDYDMNZ0mHdwYEBAaGMwwHDg4HDA2KjI4qkJKUiJ6faJkiA4qAKQkRB3E0i6YpAw8RERAjA4tnBoMApCMQDhFTuySKoSKMJAq6rD4GzASiJYtgi6PUcs9Kew0xh7rNJMqIhYchACH5BAkHAAAALAAAAAAYABgAAAW0ICCOJEAQZZo2JIKQxqCOjWCMDDMqxT2LAgELkBMZCoXfyCBQiFwiRsGpku0EshNgUNAtrYPT0GQVNRBWwSKBMp98P24iISgNDAS4ipGA6JUpA2WAhDR4eWM/CAkHBwkIDYcGiTOLjY+FmZkNlCN3eUoLDmwlDW+AAwcODl5bYl8wCVYMDw5UWzBtnAANEQ8kBIM0oAAGPgcREIQnVloAChEOqARjzgAQEbczg8YkWJq8nSUhACH5BAkHAAAALAAAAAAYABgAAAWtICCOJGAYZZoOpKKQqDoORDMKwkgwtiwSBBYAJ2owGL5RgxBziQQMgkwoMkhNqAEDARPSaiMDFdDIiRSFQowMXE8Z6RdpYHWnEAWGPVkajPmARVZMPUkCBQkJBQINgwaFPoeJi4GVlQ2Qc3VJBQcLV0ptfAMJBwdcIl+FYjALQgimoGNWIhAQZA4HXSpLMQ8PIgkOSHxAQhERPw7ASTSFyCMMDqBTJL8tf3y2fCEAIfkECQcAAAAsAAAAABgAGAAABa8gII4k0DRlmg6kYZCoOg5EDBDEaAi2jLO3nEkgkMEIL4BLpBAkVy3hCTAQKGAznM0AFNFGBAbj2cA9jQixcGZAGgECBu/9HnTp+FGjjezJFAwFBQwKe2Z+KoCChHmNjVMqA21nKQwJEJRlbnUFCQlFXlpeCWcGBUACCwlrdw8RKGImBwktdyMQEQciB7oACwcIeA4RVwAODiIGvHQKERAjxyMIB5QlVSTLYLZ0sW8hACH5BAkHAAAALAAAAAAYABgAAAW0ICCOJNA0ZZoOpGGQrDoOBCoSxNgQsQzgMZyIlvOJdi+AS2SoyXrK4umWPM5wNiV0UDUIBNkdoepTfMkA7thIECiyRtUAGq8fm2O4jIBgMBA1eAZ6Knx+gHaJR4QwdCMKBxEJRggFDGgQEREPjjAMBQUKIwIRDhBDC2QNDDEKoEkDoiMHDigICGkJBS2dDA6TAAnAEAkCdQ8ORQcHTAkLcQQODLPMIgIJaCWxJMIkPIoAt3EhACH5BAkHAAAALAAAAAAYABgAAAWtICCOJNA0ZZoOpGGQrDoOBCoSxNgQsQzgMZyIlvOJdi+AS2SoyXrK4umWHM5wNiV0UN3xdLiqr+mENcWpM9TIbrsBkEck8oC0DQqBQGGIz+t3eXtob0ZTPgNrIwQJDgtGAgwCWSIMDg4HiiUIDAxFAAoODwxDBWINCEGdSTQkCQcoegADBaQ6MggHjwAFBZUFCm0HB0kJCUy9bAYHCCPGIwqmRq0jySMGmj6yRiEAIfkECQcAAAAsAAAAABgAGAAABbIgII4k0DRlmg6kYZCsOg4EKhLE2BCxDOAxnIiW84l2L4BLZKipBopW8XRLDkeCiAMyMvQAA+uON4JEIo+vqukkKQ6RhLHplVGN+LyKcXA4Dgx5DWwGDXx+gIKENnqNdzIDaiMECwcFRgQCCowiCAcHCZIlCgICVgSfCEMMnA0CXaU2YSQFoQAKUQMMqjoyAglcAAyBAAIMRUYLCUkFlybDeAYJryLNk6xGNCTQXY0juHghACH5BAkHAAAALAAAAAAYABgAAAWzICCOJNA0ZVoOAmkY5KCSSgSNBDE2hDyLjohClBMNij8RJHIQvZwEVOpIekRQJyJs5AMoHA+GMbE1lnm9EcPhOHRnhpwUl3AsknHDm5RN+v8qCAkHBwkIfw1xBAYNgoSGiIqMgJQifZUjBhAJYj95ewIJCQV7KYpzBAkLLQADCHOtOpY5PgNlAAykAEUsQ1wzCgWdCIdeArczBQVbDJ0NAqyeBb64nQAGArBTt8R8mLuyPyEAOwAAAAAAAAAAAA==) center no-repeat}ngx-extended-pdf-viewer .pdfPresentationMode .pdfViewer{margin-left:0;margin-right:0}ngx-extended-pdf-viewer .pdfPresentationMode .pdfViewer .page,ngx-extended-pdf-viewer .pdfPresentationMode .pdfViewer .spread{display:block}ngx-extended-pdf-viewer .pdfPresentationMode .pdfViewer .page,ngx-extended-pdf-viewer .pdfPresentationMode .pdfViewer.removePageBorders .page{margin-left:auto;margin-right:auto}ngx-extended-pdf-viewer .pdfPresentationMode:-ms-fullscreen .pdfViewer .page{margin-bottom:100%!important}ngx-extended-pdf-viewer .pdfPresentationMode:-webkit-full-screen .pdfViewer .page{margin-bottom:100%;border:0}ngx-extended-pdf-viewer .pdfPresentationMode:-moz-full-screen .pdfViewer .page{margin-bottom:100%;border:0}ngx-extended-pdf-viewer .pdfPresentationMode:fullscreen .pdfViewer .page{margin-bottom:100%;border:0}ngx-extended-pdf-viewer .html *{padding:0;margin:0}ngx-extended-pdf-viewer .html{height:100%;width:100%;font-size:10px}ngx-extended-pdf-viewer .body{height:100%;width:100%}ngx-extended-pdf-viewer .body,ngx-extended-pdf-viewer .pdf-viewer button,ngx-extended-pdf-viewer .pdf-viewer input,ngx-extended-pdf-viewer .pdf-viewer select{font:message-box;outline:0}ngx-extended-pdf-viewer select{background-color:#fff!important}ngx-extended-pdf-viewer .hidden,ngx-extended-pdf-viewer [hidden]{display:none!important}ngx-extended-pdf-viewer .pdfViewer.enablePermissions .textLayer>span{-webkit-user-select:none!important;-moz-user-select:none!important;-ms-user-select:none!important;user-select:none!important;cursor:not-allowed}ngx-extended-pdf-viewer #viewerContainer.pdfPresentationMode:-ms-fullscreen{top:0!important;overflow:hidden!important}ngx-extended-pdf-viewer #viewerContainer.pdfPresentationMode:-ms-fullscreen::-ms-backdrop{background-color:#f9f9f9}ngx-extended-pdf-viewer #viewerContainer.pdfPresentationMode:-webkit-full-screen{top:0;border-top:2px solid transparent;background-color:#f9f9f9;width:100%;height:100%;overflow:hidden;cursor:none;-webkit-user-select:none;user-select:none}ngx-extended-pdf-viewer #viewerContainer.pdfPresentationMode:-moz-full-screen{top:0;border-top:2px solid transparent;background-color:#f9f9f9;width:100%;height:100%;overflow:hidden;cursor:none;-moz-user-select:none;user-select:none}ngx-extended-pdf-viewer #viewerContainer.pdfPresentationMode:-ms-fullscreen{border-top:2px solid transparent;background-color:#f9f9f9;width:100%;height:100%;cursor:none;-ms-user-select:none;user-select:none}ngx-extended-pdf-viewer #viewerContainer.pdfPresentationMode:fullscreen{top:0;border-top:2px solid transparent;background-color:#f9f9f9;width:100%;height:100%;overflow:hidden;cursor:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}ngx-extended-pdf-viewer .pdfPresentationMode:-webkit-full-screen a:not(.internalLink){display:none}ngx-extended-pdf-viewer .pdfPresentationMode:-moz-full-screen a:not(.internalLink){display:none}ngx-extended-pdf-viewer .pdfPresentationMode:-ms-fullscreen a:not(.internalLink){display:none}ngx-extended-pdf-viewer .pdfPresentationMode:fullscreen a:not(.internalLink){display:none}ngx-extended-pdf-viewer .pdfPresentationMode:-webkit-full-screen .textLayer>span{cursor:none}ngx-extended-pdf-viewer .pdfPresentationMode:-moz-full-screen .textLayer>span{cursor:none}ngx-extended-pdf-viewer .pdfPresentationMode:-ms-fullscreen .textLayer>span{cursor:none}ngx-extended-pdf-viewer .pdfPresentationMode:fullscreen .textLayer>span{cursor:none}ngx-extended-pdf-viewer .pdfPresentationMode.pdfPresentationModeControls .textLayer>span,ngx-extended-pdf-viewer .pdfPresentationMode.pdfPresentationModeControls>*{cursor:default}ngx-extended-pdf-viewer #outerContainer{width:100%;height:100%;position:relative;-webkit-clip-path:inset(0 0 0 0);clip-path:inset(0 0 0 0)}ngx-extended-pdf-viewer #sidebarContainer{position:absolute;top:32px;bottom:0;width:200px;visibility:hidden;z-index:2;border-top:1px solid #333;transition-duration:.2s;transition-timing-function:ease}html[dir=ltr] ngx-extended-pdf-viewer #sidebarContainer{transition-property:left;left:-200px;left:calc(0px - $sidebar-width)}html[dir=rtl] ngx-extended-pdf-viewer #sidebarContainer{transition-property:right;right:-200px;right:calc(0px - $sidebar-width)}ngx-extended-pdf-viewer .loadingInProgress #sidebarContainer{top:36px}ngx-extended-pdf-viewer #outerContainer.sidebarResizing #sidebarContainer{transition-duration:0s;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}ngx-extended-pdf-viewer #outerContainer.sidebarMoving #sidebarContainer,ngx-extended-pdf-viewer #outerContainer.sidebarOpen #sidebarContainer{visibility:visible}html[dir=ltr] ngx-extended-pdf-viewer #outerContainer.sidebarOpen #sidebarContainer{left:0}html[dir=rtl] ngx-extended-pdf-viewer #outerContainer.sidebarOpen #sidebarContainer{right:0}ngx-extended-pdf-viewer #mainContainer{position:absolute;top:0;right:0;bottom:0;left:0;min-width:320px}ngx-extended-pdf-viewer #sidebarContent{top:32px;bottom:0;overflow:auto;-webkit-overflow-scrolling:touch;position:absolute;width:100%;background-color:#e3e1e6}html[dir=ltr] ngx-extended-pdf-viewer #sidebarContent{left:0}html[dir=rtl] ngx-extended-pdf-viewer #sidebarContent{right:0}ngx-extended-pdf-viewer #viewerContainer{-webkit-overflow-scrolling:touch;top:32px;right:0;bottom:0;left:0;outline:0}ngx-extended-pdf-viewer #viewerContainer:not(.pdfPresentationMode){transition-duration:.2s;transition-timing-function:ease}ngx-extended-pdf-viewer #outerContainer.sidebarResizing #viewerContainer{transition-duration:0s}html[dir=ltr] ngx-extended-pdf-viewer #outerContainer.sidebarOpen #viewerContainer:not(.pdfPresentationMode){transition-property:left;left:200px}html[dir=rtl] ngx-extended-pdf-viewer #outerContainer.sidebarOpen #viewerContainer:not(.pdfPresentationMode){transition-property:right;right:200px}ngx-extended-pdf-viewer .toolbar{position:relative;left:0;right:0;z-index:7;cursor:default;border:1px solid #ddd}ngx-extended-pdf-viewer #toolbarContainer{width:100%}ngx-extended-pdf-viewer #toolbarSidebar{width:100%;height:32px;background-color:var(#e3e1e6);color:#5a5a5a;border:none;padding-top:1px}ngx-extended-pdf-viewer #sidebarResizer{position:absolute;top:0;bottom:0;width:6px;z-index:4;cursor:ew-resize}html[dir=ltr] ngx-extended-pdf-viewer #sidebarResizer{right:-6px}html[dir=rtl] ngx-extended-pdf-viewer #sidebarResizer{left:-6px}ngx-extended-pdf-viewer #toolbarContainer,ngx-extended-pdf-viewer .findbar,ngx-extended-pdf-viewer .secondaryToolbar{position:relative;height:32px;background-color:#f9f9f9}ngx-extended-pdf-viewer #toolbarViewer{height:32px}ngx-extended-pdf-viewer #loadingBar{position:relative;width:100%;height:4px;background-color:#333;border-bottom:1px solid #333}ngx-extended-pdf-viewer #loadingBar .progress{position:absolute;top:0;left:0;width:0%;height:100%;background-color:#ddd;overflow:hidden;transition:width .2s}@-webkit-keyframes progressIndeterminate{0%{left:-142px}100%{left:0}}@keyframes progressIndeterminate{0%{left:-142px}100%{left:0}}ngx-extended-pdf-viewer #loadingBar .progress.indeterminate{background-color:#999;transition:none}ngx-extended-pdf-viewer #loadingBar .progress.indeterminate .glimmer{position:absolute;top:0;left:0;height:100%;width:calc(100% + 150px);background:repeating-linear-gradient(135deg,#bbb 0,#999 5px,#999 45px,#ddd 55px,#ddd 95px,#bbb 100px);-webkit-animation:950ms linear infinite progressIndeterminate;animation:950ms linear infinite progressIndeterminate}ngx-extended-pdf-viewer .findbar,ngx-extended-pdf-viewer .secondaryToolbar{top:40px;position:absolute;z-index:7;height:auto;min-width:16px;padding:0 6px;margin:4px 2px;color:#5a5a5a;font-size:12px;line-height:14px;text-align:left;cursor:default}ngx-extended-pdf-viewer .findbar{min-width:300px}ngx-extended-pdf-viewer .findbar>div{height:32px}ngx-extended-pdf-viewer .findbar.wrapContainers>div{clear:both}ngx-extended-pdf-viewer .findbar.wrapContainers>div#findbarMessageContainer{height:auto}html[dir=ltr] ngx-extended-pdf-viewer .findbar{left:34px}html[dir=rtl] ngx-extended-pdf-viewer .findbar{right:34px}ngx-extended-pdf-viewer .findbar label{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}ngx-extended-pdf-viewer #findInput{width:200px}ngx-extended-pdf-viewer #findInput::-webkit-input-placeholder{color:#bfbfbf}ngx-extended-pdf-viewer #findInput::-moz-placeholder{font-style:italic}ngx-extended-pdf-viewer #findInput:-ms-input-placeholder{font-style:italic}ngx-extended-pdf-viewer #findInput::-ms-input-placeholder{font-style:italic}ngx-extended-pdf-viewer #findInput::placeholder{font-style:italic}ngx-extended-pdf-viewer #findInput[data-status=pending]{background-repeat:no-repeat;background-position:right}html[dir=rtl] ngx-extended-pdf-viewer #findInput[data-status=pending]{background-position:left}ngx-extended-pdf-viewer .secondaryToolbar{padding:6px;height:auto;z-index:8}html[dir=ltr] ngx-extended-pdf-viewer .secondaryToolbar{right:4px}html[dir=rtl] ngx-extended-pdf-viewer .secondaryToolbar{left:4px}ngx-extended-pdf-viewer #secondaryToolbarButtonContainer{max-width:200px;max-height:400px;overflow-y:auto;-webkit-overflow-scrolling:touch;margin-bottom:-4px}ngx-extended-pdf-viewer #secondaryToolbarButtonContainer.hiddenScrollModeButtons>.scrollModeButtons,ngx-extended-pdf-viewer #secondaryToolbarButtonContainer.hiddenSpreadModeButtons>.spreadModeButtons{display:none!important}ngx-extended-pdf-viewer .doorHanger,ngx-extended-pdf-viewer .doorHangerRight{border:1px solid rgba(0,0,0,.5);border-radius:2px}ngx-extended-pdf-viewer .doorHanger:after,ngx-extended-pdf-viewer .doorHanger:before,ngx-extended-pdf-viewer .doorHangerRight:after,ngx-extended-pdf-viewer .doorHangerRight:before{bottom:100%;border:solid transparent;content:' ';height:0;width:0;position:absolute;pointer-events:none}ngx-extended-pdf-viewer .doorHanger:after,ngx-extended-pdf-viewer .doorHangerRight:after{border-bottom-color:#f9f9f9;border-width:8px}ngx-extended-pdf-viewer .doorHanger:before,ngx-extended-pdf-viewer .doorHangerRight:before{border-bottom-color:rgba(0,0,0,.5);border-width:9px}html[dir=ltr] ngx-extended-pdf-viewer .doorHanger:after,html[dir=rtl] ngx-extended-pdf-viewer .doorHangerRight:after{left:13px;margin-left:-8px}html[dir=ltr] ngx-extended-pdf-viewer .doorHanger:before,html[dir=rtl] ngx-extended-pdf-viewer .doorHangerRight:before{left:13px;margin-left:-9px}html[dir=ltr] ngx-extended-pdf-viewer .doorHangerRight:after,html[dir=rtl] ngx-extended-pdf-viewer .doorHanger:after{right:13px;margin-right:-8px}html[dir=ltr] ngx-extended-pdf-viewer .doorHangerRight:before,html[dir=rtl] ngx-extended-pdf-viewer .doorHanger:before{right:13px;margin-right:-9px}ngx-extended-pdf-viewer #findResultsCount{background-color:#5a5a5a;color:#f9f9f9;text-align:center;padding:3px 4px}ngx-extended-pdf-viewer #findMsg{font-style:italic;color:#f66}ngx-extended-pdf-viewer #findMsg:empty{display:none}ngx-extended-pdf-viewer #findInput.notFound{background-color:#f66}ngx-extended-pdf-viewer #toolbarViewerMiddle{position:absolute;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%)}html[dir=ltr] ngx-extended-pdf-viewer #toolbarViewerLeft,html[dir=rtl] ngx-extended-pdf-viewer #toolbarViewerRight{float:left;margin-left:4px}html[dir=ltr] ngx-extended-pdf-viewer #toolbarViewerRight,html[dir=rtl] ngx-extended-pdf-viewer #toolbarViewerLeft{float:right;margin-right:4px}html[dir=ltr] ngx-extended-pdf-viewer #toolbarViewerLeft>*,html[dir=ltr] ngx-extended-pdf-viewer #toolbarViewerMiddle>*,html[dir=ltr] ngx-extended-pdf-viewer #toolbarViewerRight>*,html[dir=ltr] ngx-extended-pdf-viewer .findbar *{position:relative;float:left}html[dir=rtl] ngx-extended-pdf-viewer #toolbarViewerLeft>*,html[dir=rtl] ngx-extended-pdf-viewer #toolbarViewerMiddle>*,html[dir=rtl] ngx-extended-pdf-viewer #toolbarViewerRight>*,html[dir=rtl] ngx-extended-pdf-viewer .findbar *{position:relative;float:right}ngx-extended-pdf-viewer .overlayButton,ngx-extended-pdf-viewer .secondaryToolbarButton,ngx-extended-pdf-viewer .toolbarButton{border:0;background:0 0;width:32px;height:25px}ngx-extended-pdf-viewer .toolbarButton>span{display:inline-block;width:0;height:0;overflow:hidden}ngx-extended-pdf-viewer .overlayButton[disabled],ngx-extended-pdf-viewer .secondaryToolbarButton[disabled],ngx-extended-pdf-viewer .toolbarButton[disabled]{opacity:.5}ngx-extended-pdf-viewer .dropdownToolbarButton,ngx-extended-pdf-viewer .overlayButton,ngx-extended-pdf-viewer .secondaryToolbarButton,ngx-extended-pdf-viewer .toolbarButton{min-width:16px;padding:2px 6px 0;border:1px solid transparent;border-radius:2px;color:#5a5a5a;font-size:12px;line-height:14px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}html[dir=rtl] ngx-extended-pdf-viewer .dropdownToolbarButton,html[dir=rtl] ngx-extended-pdf-viewer .overlayButton,html[dir=rtl] ngx-extended-pdf-viewer .toolbarButton{margin:3px 0 4px 2px}ngx-extended-pdf-viewer .dropdownToolbarButton,ngx-extended-pdf-viewer .overlayButton{background-color:rgba(0,0,0,.2);background-clip:padding-box;border:1px solid rgba(0,0,0,.4)}ngx-extended-pdf-viewer .secondaryToolbarButton.toggled,ngx-extended-pdf-viewer .toolbarButton.toggled{background-color:rgba(0,0,0,.2);border-color:rgba(0,0,0,.4)}ngx-extended-pdf-viewer .dropdownToolbarButton{width:140px;padding:0;overflow:hidden}html[dir=ltr] ngx-extended-pdf-viewer .dropdownToolbarButton::after{right:8px}html[dir=rtl] ngx-extended-pdf-viewer .dropdownToolbarButton::after{left:8px}ngx-extended-pdf-viewer .dropdownToolbarButton>select{width:162px;height:23px;font-size:12px;color:#5a5a5a;margin:0;padding:3px 2px 2px;border:none;background-color:#fff}ngx-extended-pdf-viewer .dropdownToolbarButton>select>option{background:#f9f9f9}ngx-extended-pdf-viewer #customScaleOption{display:none}html[dir=ltr] ngx-extended-pdf-viewer .toolbarButton:first-child,html[dir=rtl] ngx-extended-pdf-viewer .toolbarButton:last-child{margin-left:4px}ngx-extended-pdf-viewer .toolbarButtonSpacer{width:30px;display:inline-block;height:1px}html[dir=ltr] ngx-extended-pdf-viewer #findPrevious,html[dir=rtl] ngx-extended-pdf-viewer #findNext{margin-left:3px}html[dir=ltr] ngx-extended-pdf-viewer #findNext,html[dir=rtl] ngx-extended-pdf-viewer #findPrevious{margin-right:3px}ngx-extended-pdf-viewer .secondaryToolbarButton::before,ngx-extended-pdf-viewer .toolbarButton::before{position:absolute;display:inline-block;top:4px;left:7px}ngx-extended-pdf-viewer .toolbarButton.zoomOut{font-size:30px}ngx-extended-pdf-viewer .toolbarButton.zoomIn{font-size:24px}ngx-extended-pdf-viewer .secondaryToolbarButton.bookmark,ngx-extended-pdf-viewer .toolbarButton.bookmark{box-sizing:border-box;outline:0;padding-top:4px;text-decoration:none}ngx-extended-pdf-viewer .secondaryToolbarButton.bookmark{padding-top:5px}ngx-extended-pdf-viewer .bookmark[href='#']{opacity:.5;pointer-events:none}ngx-extended-pdf-viewer .toolbarButton.pdfSidebarNotification::after{position:absolute;display:inline-block;top:1px;content:'';background-color:#70db55;height:9px;width:9px;border-radius:50%}html[dir=ltr] ngx-extended-pdf-viewer .toolbarButton.pdfSidebarNotification::after{left:17px}html[dir=rtl] ngx-extended-pdf-viewer .toolbarButton.pdfSidebarNotification::after{right:17px}ngx-extended-pdf-viewer .secondaryToolbarButton{position:relative;margin:0 0 4px;padding:3px 0 1px;height:auto;min-height:25px;width:auto;min-width:100%;white-space:normal}html[dir=ltr] ngx-extended-pdf-viewer .secondaryToolbarButton{padding-left:24px;text-align:left}html[dir=rtl] ngx-extended-pdf-viewer .secondaryToolbarButton{padding-right:24px;text-align:right}html[dir=ltr] ngx-extended-pdf-viewer .secondaryToolbarButton.bookmark{padding-left:27px}html[dir=rtl] ngx-extended-pdf-viewer .secondaryToolbarButton.bookmark{padding-right:27px}html[dir=ltr] ngx-extended-pdf-viewer .secondaryToolbarButton>span{padding-right:4px}html[dir=rtl] ngx-extended-pdf-viewer .secondaryToolbarButton>span{padding-left:4px}ngx-extended-pdf-viewer .toolbarField{padding:3px 6px;margin:4px 0;border-radius:2px;background-color:#fff;background-clip:padding-box;color:#5a5a5a;font-size:12px;line-height:14px;outline-style:none;border:1px solid rgba(0,0,0,.4)}ngx-extended-pdf-viewer .toolbarField[type=checkbox]{display:inline-block;margin:8px 0}ngx-extended-pdf-viewer .toolbarField.pageNumber{-moz-appearance:textfield;min-width:16px;text-align:right;width:40px}ngx-extended-pdf-viewer .toolbarField.pageNumber.visiblePageIsLoading{background-repeat:no-repeat;background-position:1px}ngx-extended-pdf-viewer .toolbarField.pageNumber::-webkit-inner-spin-button,ngx-extended-pdf-viewer .toolbarField.pageNumber::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}ngx-extended-pdf-viewer .toolbarLabel{min-width:16px;padding:3px 6px 3px 2px;margin:4px 2px 4px 0;border:1px solid transparent;border-radius:2px;color:#5a5a5a;font-size:12px;line-height:14px;text-align:left;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}ngx-extended-pdf-viewer #thumbnailView{position:absolute;width:calc(100% - 60px);top:0;bottom:0;padding:10px 30px 0;overflow:auto;-webkit-overflow-scrolling:touch}ngx-extended-pdf-viewer #thumbnailView>a:active{outline:0}ngx-extended-pdf-viewer .thumbnail{margin:0 10px 5px}html[dir=ltr] ngx-extended-pdf-viewer .thumbnail{float:left}html[dir=rtl] ngx-extended-pdf-viewer .thumbnail{float:right}ngx-extended-pdf-viewer #thumbnailView>a:last-of-type>.thumbnail{margin-bottom:10px}ngx-extended-pdf-viewer #thumbnailView>a:last-of-type>.thumbnail:not([data-loaded]){margin-bottom:9px}ngx-extended-pdf-viewer .thumbnail:not([data-loaded]){border:1px dashed rgba(255,0,0,.5);margin:-1px 9px 4px}ngx-extended-pdf-viewer .thumbnailImage{border:1px solid transparent;opacity:.8;z-index:1;background-color:#fff;background-clip:content-box}ngx-extended-pdf-viewer .thumbnailSelectionRing{border-radius:2px;padding:7px}ngx-extended-pdf-viewer .thumbnail.selected>.thumbnailSelectionRing>.thumbnailImage{opacity:1}ngx-extended-pdf-viewer .thumbnail.selected>.thumbnailSelectionRing{background-color:rgba(255,255,255,.4);background-clip:padding-box;color:#fff}ngx-extended-pdf-viewer #attachmentsView,ngx-extended-pdf-viewer #layersView,ngx-extended-pdf-viewer #outlineView{position:absolute;width:calc(100% - 8px);top:0;bottom:0;overflow:auto;-webkit-overflow-scrolling:touch;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}ngx-extended-pdf-viewer #outlineView{padding:4px 4px 0}ngx-extended-pdf-viewer #attachmentsView{padding:3px 4px 0}html[dir=ltr] ngx-extended-pdf-viewer .treeItem>.treeItems,html[dir=ltr] ngx-extended-pdf-viewer .treeWithDeepNesting>.treeItem{margin-left:20px}html[dir=rtl] ngx-extended-pdf-viewer .treeItem>.treeItems,html[dir=rtl] ngx-extended-pdf-viewer .treeWithDeepNesting>.treeItem{margin-right:20px}ngx-extended-pdf-viewer .treeItem>a{text-decoration:none;display:inline-block;min-width:95%;min-width:calc(100% - 4px);height:auto;margin-bottom:1px;border-radius:2px;color:#5a5a5a;font-size:13px;line-height:15px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;white-space:normal;cursor:pointer}html[dir=ltr] ngx-extended-pdf-viewer .treeItem>a{padding:2px 0 5px 4px}html[dir=rtl] ngx-extended-pdf-viewer .treeItem>a{padding:2px 4px 5px 0}ngx-extended-pdf-viewer #layersView .treeItem>a>*{cursor:pointer}html[dir=ltr] ngx-extended-pdf-viewer #layersView .treeItem>a>label{padding-left:4px}html[dir=rtl] ngx-extended-pdf-viewer #layersView .treesItem>a>label{padding-right:4px}ngx-extended-pdf-viewer .treeItemToggler{position:relative;height:0;width:0}ngx-extended-pdf-viewer .treeItemToggler::before{content:url(assets/images/treeitem-expanded.svg);display:inline-block;position:absolute;max-width:16px}ngx-extended-pdf-viewer .treeItemToggler.treeItemsHidden::before{content:url(assets/images/treeitem-collapsed.svg);max-width:16px}html[dir=rtl] ngx-extended-pdf-viewer .treeItemToggler.treeItemsHidden::before{-webkit-transform:scaleX(-1);transform:scaleX(-1)}ngx-extended-pdf-viewer .treeItemToggler.treeItemsHidden~.treeItems{display:none}html[dir=ltr] ngx-extended-pdf-viewer .treeItemToggler{float:left}html[dir=rtl] ngx-extended-pdf-viewer .treeItemToggler{float:right}html[dir=ltr] ngx-extended-pdf-viewer .treeItemToggler::before{right:4px}html[dir=rtl] ngx-extended-pdf-viewer .treeItemToggler::before{left:4px}ngx-extended-pdf-viewer .treeItem>a:hover,ngx-extended-pdf-viewer .treeItemToggler:hover,ngx-extended-pdf-viewer .treeItemToggler:hover+a,ngx-extended-pdf-viewer .treeItemToggler:hover~.treeItems{background-clip:padding-box;border-radius:2px}ngx-extended-pdf-viewer .treeItem.selected{background-clip:padding-box}ngx-extended-pdf-viewer ::-moz-selection{background:rgba(0,0,255,.3)}ngx-extended-pdf-viewer ::selection{background:rgba(0,0,255,.3)}ngx-extended-pdf-viewer #errorWrapper{background:#f66;color:#fff;left:0;position:absolute;right:0;z-index:5;padding:3px;font-size:.8em}ngx-extended-pdf-viewer .loadingInProgress #errorWrapper{top:37px}ngx-extended-pdf-viewer #errorMessageLeft{float:left}ngx-extended-pdf-viewer #errorMessageRight{float:right}ngx-extended-pdf-viewer #errorMoreInfo{background-color:#fff;color:#f9f9f9;padding:3px;margin:3px;width:98%}ngx-extended-pdf-viewer .overlayButton{width:auto;margin:3px 4px 2px!important;padding:2px 6px 3px}ngx-extended-pdf-viewer #overlayContainer{display:table;position:absolute;width:100%;height:100%;background-color:rgba(0,0,0,.2);z-index:9}ngx-extended-pdf-viewer #overlayContainer>*{overflow:auto;-webkit-overflow-scrolling:touch}ngx-extended-pdf-viewer #overlayContainer>.container{display:table-cell;vertical-align:middle;text-align:center}ngx-extended-pdf-viewer #overlayContainer>.container .dialog{display:inline-block;padding:15px;border-spacing:4px;color:#5a5a5a;font-size:12px;line-height:14px;background-color:#f9f9f9;border-radius:4px}ngx-extended-pdf-viewer .dialog>.row{display:table-row}ngx-extended-pdf-viewer .dialog>.row>*{display:table-cell}ngx-extended-pdf-viewer .dialog .toolbarField{margin:5px 0}ngx-extended-pdf-viewer .dialog .buttonRow{text-align:center;vertical-align:middle}ngx-extended-pdf-viewer .dialog :link{color:#fff}ngx-extended-pdf-viewer #passwordOverlay>.dialog{text-align:center}ngx-extended-pdf-viewer #passwordOverlay .toolbarField{width:200px}ngx-extended-pdf-viewer #documentPropertiesOverlay>.dialog{text-align:left}ngx-extended-pdf-viewer #documentPropertiesOverlay .row>*{min-width:100px}html[dir=ltr] ngx-extended-pdf-viewer #documentPropertiesOverlay .row>*{text-align:left}html[dir=rtl] ngx-extended-pdf-viewer #documentPropertiesOverlay .row>*{text-align:right}.fileInput{background:#fff;color:#f9f9f9;margin-top:5px;visibility:hidden;position:fixed;right:0;top:0}ngx-extended-pdf-viewer #documentPropertiesOverlay .row>span{width:125px;word-wrap:break-word}ngx-extended-pdf-viewer #documentPropertiesOverlay .row>p{max-width:225px;word-wrap:break-word}ngx-extended-pdf-viewer #documentPropertiesOverlay .buttonRow{margin-top:10px}ngx-extended-pdf-viewer .clearBoth{clear:both}ngx-extended-pdf-viewer .grab-to-pan-grab{cursor:url(data:image/cur;base64,AAACAAEAICAAAA8ADwAwAQAAFgAAACgAAAAgAAAAQAAAAAEAAQAAAAAAgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAH4AAAB+AAAA/gAAAf8AAAP/AAAD/4AAB/+AAA7/gAAM/8AAAP7AAAG2wAABtkAAAzYAAAM2AAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA//////////////////////////////////////////////////AP///wD///4A///8AH//+AB///gAP//wAD//4AA//+AAH//yAB///AAf//wAH//4AL//+AD///yB////z///////////////////////////////////////8=),move!important;cursor:-webkit-grab!important;cursor:grab!important}ngx-extended-pdf-viewer .grab-to-pan-grab :not(input):not(textarea):not(button):not(select):not(:link){cursor:inherit!important}ngx-extended-pdf-viewer .grab-to-pan-grab:active,ngx-extended-pdf-viewer .grab-to-pan-grabbing{cursor:url(data:image/cur;base64,AAACAAEAICAAAA8ADwAwAQAAFgAAACgAAAAgAAAAQAAAAAEAAQAAAAAAgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAH4AAAB+AAAA/gAAAf8AAAP/AAAD/4AAAP+AAAD/gAAB/oAAAbYAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA//////////////////////////////////////////////////AP///wD///4A///8AH//+AB///gAP//8AD///gA///wAP//8AH///kn/////////////////////////////////////////////////////////////////8=),move!important;cursor:-webkit-grabbing!important;cursor:grabbing!important;position:fixed;background:rgba(0,0,0,0);display:block;top:0;left:0;right:0;bottom:0;overflow:hidden;z-index:10}@page{margin:0}#printContainer{display:none}@media screen and (-webkit-min-device-pixel-ratio:1.1),screen and (min-resolution:1.1dppx){ngx-extended-pdf-viewer .toolbarButton::before{-webkit-transform:scale(.5);transform:scale(.5);top:-5px}ngx-extended-pdf-viewer .secondaryToolbarButton::before{-webkit-transform:scale(.5);transform:scale(.5);top:-4px}}html[dir=ltr] ngx-extended-pdf-viewer .toolbarButton::before,html[dir=rtl] ngx-extended-pdf-viewer .toolbarButton::before{left:-1px}html[dir=ltr] ngx-extended-pdf-viewer .secondaryToolbarButton::before{left:-2px}html[dir=rtl] ngx-extended-pdf-viewer .secondaryToolbarButton::before{right:4px;left:186px}ngx-extended-pdf-viewer #findInput[data-status=pending],ngx-extended-pdf-viewer .toolbarField.pageNumber.visiblePageIsLoading{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAiCAYAAAA+stv/AAAACGFjVEwAAAAMAAAAAEy9LREAAAAaZmNUTAAAAAAAAAAgAAAAIgAAAAAAAAAAAGQD6AAA26DBZgAABPNJREFUeNq1l21MW1UYx2tgI+pghBHiNJCYKLiERMUvRvbB0S5ZygrI5toxKAItSwDHRBoIzk1SFT44oy4xfjEaY1PMRKNNyMInPxjfFjEiZsFNwpu1oy4LMFZ6uece/085F2/PiuBtPMkv5/ac8zzP/7yfWswmznktuAJ+A89ubWE+UDbYnaJ8AoS5xq8jv5aififYkV5wVW3SOP8BjsaANzmANqdpJEAjAVEp+CMqV73IW8C+dHr/FbgMfhIiHjTUzYI/AAn4y1C+CzSDVsbYSRWdMC0AxiE4+h78CH6Gw/cNgWY2EWDVgxO3bi3WmxYQCoV6MdTfAn0UfgFPJwnQ/hGA/D4KTugiurq6jpgWkJmZWbG0tPQp1sF3mOvEKIAQ1cE5iZnXuHZd07RrQkC1UcD4+DgNf8V25/sZMAQ+AA5wF4ofOHvm7El8fw0BicVIUPtgMNgHEVfA5PDw8DkxZS16zym32Wy15IPqVldXH0aZEzwH9snB7wFBBBlG/jn4kjP2LvLHUF0+OTl5Ad/fgMvhSPg9YXYQOAQ2MWVH9d4HAoETKNqP7wJQbRQGPGCHUcC9nLMAjQCG+yKG9DPwBQ33ysrKS1lZWY7BwcH2gYGBjoyMDLswKxAibOKbkr2ysrLWbrcfQbvD8/N/HjCuh41cTWzRnUnTPTQ0dBpD+BEaBFH5CbgoRiOE3tQaelsKNkuleru2tran9KBGYori7enpOUYxkwSASqvV6rx69ffX0fBjxjeEDIMy1OcJtkp5hLwjiEsjl9zFxcU1FEsWQKkI2IGju7u7aWFh4S1VZR+OjY35s7Oz95jYRHtoHSixmPdX7AaaFjE6dhErZboblIHDwGEgz4SAPMkH+XyCYsg74FHG+WvI3+aMvYOcuLB6+/b5/v7+JjGvZlNpXV1d7c2bS83SLiDqQSEJeAW8gcrzlAPk7E3khN+SZqJAxsCyCEt8LX4OH4MEo9zAWnzt5XQFqIrilgPrKIrSYOnr63MtLy+TiFeBnzPuR2P/4vLimV5frzNdAY2NjVXRaNQjB49EIh63210tn2gytjTjb8t/gdzI5TrhnJqa6lhbYy9C7cE05r+c7oeJiYlGsQ3l4AWywW5QDboBBX8BdIL7TQRPPohYIreCXZsZPA5Ogy5D4OdBO9j7XwXgDtkrvw0opxGJx+N33IZZFJwxEZjxU8g7YNQeCAQbcnJyEkcrsa2eA7KhkzD1DpAuI/qhKIyCgvVeY9484j53TE9PV6w74uSo/N/mXA8yMzNjJVvyQQ+TpO2nKl75xZyJU+/4yspyWzgcbu3s7HTqx6fH43mSXsQJ4/WeNItghaBeUJgokx4kZKsf66fa24/Nzc214IXlxdZPeRvapVW6H+TKzyw4qUtxwtVT2ezs7HH6rY+WqvIa8kG+JN/2zW7DQ+CA8RklLyKHw1FDdRuiRDmVUR27c84fojrhs0LEKNrms5y7jL0fHR1tEL2xGF84hDApHxkZcUuiXRazCWd1sx4opsS8JSUl1frVLB+t+hVMbWIxxauXq/BhWoDf76+BCOpJq8/nc4r73KKPgHEUDGZlvl6fkzEFq131kg9LGulQbm5uVX5+fhUtHONj4obhglmIRFqkR42dbMhWzLnpVAQqCXnhuFyuo9HoDU84HPHQd2o78fxKM2USW9xytk3t/rck/y8wmf4Gx4B9Xz6i1hAAAAAaZmNUTAAAAAEAAAAgAAAAIgAAAAAAAAAAAGQD6AAAQNMrsgAABQ5mZEFUAAAAAnjapZdtTFtVGMdrwKlkIYiETA37sGyQJXxiX1T2BVbN7FZANFARCi0tMDBF2BgGNcvEzC06EBMSEogi2Czz7ZPiBvFlohLFREKqET8g7y02A0YkLZd77/H/lHPN4dIJ9J7k13P6nPu8nOecnufWFGtjjJnBTfAVeHpHBQOOEsB+vVxV1S8g/5GpbFRV2S39/MrKyoOYTzTkXJbl0zDyIbgOntkamPrdZgDqKPpfdUHXqUz9C/0UeMnI6ruBF3zEg3hEmLtFAQAxAJIfAn+CWbCATE3FHIAkSe/ASD+4Bj4GFwRH34IfNgNQxwR5H5iG43n0fvS+mAPo7u4+w5jyAfDyDHwGjnFH31AAdAbQj3FZDpjEtkRWj7nF4eHhKzEHEB8fn7u4uHhVYUofU9g1rOYTGH6X5jY2Nj7H+Hvs9SjOyjAP4Eu+73NwHgiHw7+Qjd3u93HQqijsVfSPg3sgfrS6utqO8XugH0FcV3Ee6Pmurs56BHFzQ5K+7u3tPU8yrPwPPDeDQP3oFzs6OhrJBs0hmCOQFYMKcFTv/D7wOngTXAFvM0U5h/4wprNHRn56BeP3gXdiYuIiV3sSWDlmEiBbfXzvA36//1OIaFGpIB9UKYpSTT1wgXvFAO7H5MVIBhi7BC5j39/C96vLy8sVcXFx1oaGBkdjY6MTYwtXS+VBmPnYRHOdnV3nenp6zickJOTNzflzuEPunPey7MZ435btbm9vr1hfX7/AlEgm3gCXtGy0tbU9Jaw2E9ytZWrP1dbWPqE5FQlJkru5ubmIfG4JAJzKysoqHBn52UM/N7AZiKJcDjN2BPPJnJ1aMgHdA3rnNwZu2NPT0wvIlz4AageBBVhLyspsk5OTZ3HIXhsaGnoxMTERRvfcHvJ6vS9IoZD7t/Fxh8VieZZnx8J9RW0PgCxwGlgFYgkgWbTBbR6L+BAbC4cP8RQ1IN2N6Imz/9y5U19TU1PE9zXWlllSUlK4vLzqFA8ipxSkmfBRCTwC9Ywp9dRDocpksJEj0bE+CLrvKYC6aIRCktNoALIk2UXHIvBdZnI4HPlLS0skOIMtiIBxTSAYcNOc0QDKy8vzgsGgS+88EAi47HZ7vv5G02M26H9X9lP1D9FPxuf73Y4iQ9uTbWD/s8mGz+crJ5tRnKfqFfaDE6h+lCaRA3t2rr+IFADb5COqwvo6OyozuZIrGA5gbW3tYdLVn37KCK78bdVwH3BvKxygH7cZ3YQUBLGrlQPSoZsw+i9AV4yoNEoShMJD42PjDrPZXEj7NTU1lbtpiJGh7P/bc01/enr6BOmSjXFcxaJtSZbc5HNLMWppaSlaXV11z8/POz0eT5F2fbpcrsf+y87mSpzcWRoo5aRFZEivuGLS1a51T11d0ezsbCX5gK8o1ZAXIoHjIEl7mdCAkZIoN1wpyWZmZp6n71q2ZJkVkA2ypbNtuVs1PAlyxNco/bmwWq0FPADIAZeTjOaU7Xt+mOa4zVzuA7520bACm7j6wcHBMr4ak/iGQ3CV7IGBAbsuaJuR/wVOzVFICrkzMjLytdJMMhGtBNMzqCFuTS5LBupJa2trAYKglVQ1NTUV83pu0jIgZkFQy2p6ualYUSScdtlNNkwG2smkpKS8lJSUPDo44svEbaHA/B0IVOpeaiykQ7pkw0gAB8EpQn9wbDbbc8HgbdfCQsBF4+h6/PXLYIsndqhy5j3oGW9R/xfE2P4FtUR7pWscH34AAAAaZmNUTAAAAAMAAAAgAAAAIgAAAAAAAAAAAGQD6AAArUX4WwAABPlmZEFUAAAABHjatZddTJtVGMdrwOGSgQQJmUG4UnAJ8WJeaFJiFGqydHaQKR+r0LJ+YBDopkvVQEwWUYazi8qFSzDqnKJLxsX0oklJdRfLdGNMXFe98YaP0b6jWbo1YW1f3g//zzyveXtsBd/Gk/xyTs45z/95zkfP89ZktKiq+hT4FHwBmje3MO7oAbCd75dl+ST6v1UVdQbtr/PYVYAdRTnf2NgwQ2QcHAfPcg5Oy/cCUGbQPseN9SiqchH1z8BdzOrfBsfAByyIat3Yl+AbMAO+0/XXgfPYmcuqqlwFlwwHcPduxg+x98D74ISsyv06R6cKBBAAPymKegW7s6Aoyo+GAxgfH+9VVXlMdwwfgsd1AUzTHUD9ve5iXoDTy6ivYuxaKBQ6ajiA0tLSlsXFRT/O+l0ITuCynUD9Bo2l0+mTFADOeiabzZ5hAXwOLoIrYGF9fT1EGls97yfAq5IkeVA3gfvQXdvR0dGF9lF2FMcRRIDmj42NeRHEZ+D05OTkEPVh5T9gziXUv6COTExMDJMGaQEXmAd/gMO88/vJObb7EA2C10EPqMWwORgMDaD9Djg2Pz8/zMyeBzaGhTpWVlY+UhVavXJtaWnpFLqaYQOUMOoVsIrxONXgQX0A2ygAMITt9mGVFMRr4IggJGwlJSU2p9N5oK+vz462lZnVsCAsrG2isUAgMIwdOVxWVmbLZDKfQGMRl/EGdiWGtoB6Ddy8o96pyjnu0dHRroyYGYDzIUwcBj62G0cw9oxutU2gUGnS5gWDQQccLcP+BogrqnoT9RruTHxubu5j8pkTANjb0NDQHg6HnWw3Blkgh8AjGK9ibFaqCNi0sq0WyDFI3E7eDmMXXeSLD4BKPbACm9VqffH69d9c2MKBs2fOOpjofyrl5eUPxeJx+onGspnswtTU1JukzXzUF7LbDnaDF4BNw0gAZMNpkOaTzAdK7tPZA/r1pJJJl91u38/O1WhpIo1kMuUiTdyvVzR95rPOxBpskNVAm2QqspCG3jEfhCktpp1aB086LfYWG4Akig7esYYoQh+/7323EgkPPyisCW4aKzYA0kjk0xcEj8PhaONfNB5Lkf63pF/DT6KfYTT6uwN5wY1ozUWcv5k0otGokzTzOK/hDXaAVuR9/j7sNOB8Z46GDKBd8DMtm1V3SarkZgZFB4BU/DDZ8refdgTpexcf7Tbg5SfL4Kvp6ZcrKiqqKAhiSysHZDMN2/y/AMlLPnPSsSiiUzcp8mvkoMVi2U/nhY+Slr+EVBIy/9uZa/ZIx61kSxqRSOSgXluURC/5zElGIyMjnalUyru6uury+Xyd2vPp8Xie1naHPVAu7gUl6u71YXv1KyZb7Vn3DQ524nvBTT7IV75saOVuaTOohFCbPnqI2PkXTnsxl5eXD2jzaLckSW0nDdLitK2FsuEe8ByopQ5kw8f4e2Gz2UjU9HdQrJ/6aEz+55k/SmNMs4X5gK8tFKygW7/62dnZXrYakz53EMzETB8iXNDdJqMFb7VLc4Sc4W1sbGzTUjP/U9VSMM1BDvFq/RI0jPqnL992BEEr6ff7/V0sn5u0HdDvgs5st/8tf5csi7jtkpc0TEWUPZWVlfuqq6spKVn1HxP6BLYmCG7uo8ZKNmTLztxwqQd7Cf7idHd3v5RI3PLEYoKH2gXsrKxdVCklNslyloJ2/1vh/xcYLH8CCfCBoXIWl6IAAAAaZmNUTAAAAAUAAAAgAAAAIgAAAAAAAAAAAGQD6AAAQI+KIQAABP9mZEFUAAAABnjatZdtTFtVGMdrQIkvMIKEYJbtk4IYjAl+mWFfxmpc7nZZA5PVMqhAO5RqdSQNhTnUodEYjcm+mcWpwQpMnAkfCGExIYs6jVtGSlFjDPIuLyME0qZwc8+9/h937nZ7bKXp1ZP8ck/Py/P8z3Ofe86pLdOi6/qjoBO8Bh7fabwVR3eDnCTtAfAWeJcx9maS/vvBfZacb29vl8NIG3gZPJHogL3B2C0B4H3B+TPgU9ALjlpZvQe8BPxcxC5T3+ughwv4wNReBM4jKiGIHAChjAVEo9FGGPNx568A2eSoO4UAP/gMAvrw/FJV1QsZC2hvb6+FkReBjxs+BfaYBJzV2R0BeD4GLoDPwYCuaZcGBgdPWUmDqomJiWZGecCYEYV66tjc3AySAIoAIvUOF3CGVg++0DV9cG1t7ePs7OyqdN93GXheVXUnng/z5t12u70Gv1+AAB/C6kfi+amjra2tfmNj48zGxvrZzs7OJmpD/0eUeJqmXdR0/euOjg4v2UDbXYDsXALfAHeyT60FnLyNqjooodBd2dsbqqdXwZCQly+PuPi0p4HMsVPD5ORkJwTSu/8K9ffQtF9RlAr8/gSCvkVUrqL+I/gB5JoF3AO8hnOspNWoz8//eSArK+uILEu1sizXYrjEpxVxEXZet2GcFAwGPd3d3a05OTlyPBanPBlDLnyHqJDTn8B1zi5zELKDwdPPbm3FyOk/8Pl8T5lWWw5SlXJjXF9f3zE4vaLp2vd81dfADbRdvzI29jb5TBAADpeUlDhGRkYbRAFRXS9GfwFnp1JAYN4+cJVWDac38BxfWV656HK5GsmXKIDKXh5eWZKk2vFwuCkeV7yhUKhecJxWyc3NfXBqauo8wn8tFo2Nnjv34as8OhL3lbTcCyrAESAbZCKA5gg2yOaT5EP8AvaAE2LYN9fXmxGuGv5eMy3l/f39Qca0MGxO41XM4EnMgglQY+POeebzJ69T339wmkY0TZ+H8wXUzSyCX2xxJe4mZ8lADjRYFqDpv8HWMnJhmZ4a1XXt7ydE/Wpzu93Va6urHtH50spSC/VZFTA0NHRaY9ofsHnTAKJuItK/o69L3NFE7Bb9p2W/SBxEn2Ek8nMjjlLanistvP9KshGJRNxkM4nzInHCA+Ag05mYD8UZOC9OsMEAbJOPFNcvvUzVVeNAsiwgFos9RHPF84UigqteGY3Z8TBioBc7YV5eXgGJINJaOaA5tIua7d1B9ZLPhONYUdBoGhQeDzfRXYDe1/T0dNUtQ3rrv+UE9RnzZ2ZmDtJcshHGtm62raiKl3wmHEZdXV11uOV4FxYWmv1+f52xfXo8nn1GdPgG1SzsoIBf0xBe84pprrGt+32+urm5uRbyQb6SnYaSkKX7QT5dq83qYcTFBZxgwo45Ozv7HP02ooXblYNskC3BtpTqNDwEDoDd1LC1tfWImBe4lDio77Yo3k5t1MeEd26+3oEq7gO+0ih0PzSvfnR0tIGvxmY+Owg+pXJ4eLhREO20ZVpwn2s2HOHM8JaWlh41jmbxUzWOYBpD9wijXYWNjAX09PQ4IIJWcjIQCBzn57nNiIA5CqZpFYFg4DhjCrJd9ZINm4VyKD8/v7qwsLCaEsd8mTAfYCtLSy3CpUaiOTSXbFgRsBccJsTEcTqdx1ZX1zyLi0seqqeYJ/G6pZJN7HDK2VPO+9+K+L8gw/IXI+58OxdsgRwAAAAaZmNUTAAAAAcAAAAgAAAAIgAAAAAAAAAAAGQD6AAArRlZyAAABTdmZEFUAAAACHjatZdrSFxHFMcnZJM+UGtTkUKohT60AT+lUFr0i7oN5SZrJOZhfUb3oVW6pYalYgvRGkTStBQr0tDSB9ZU2wSkglihFNvtE2milX4olPpMVt2NjbHsunvvnf5P9o6swz7ILj3w84z3zMw5c+65M7MsWeGc54B6YOWBwGOAJUPiTpzvAXsB24HK66BbuMad0A7AJO4F9wAWj7hGcABYgQ08JdleCgegUQCvSrZnONc6oN8EhakEcBo4DKwgLcLWBFqAHECmpmlvIDPnoHvw/7mkA7i1uVltOBeUCBscNIFoAZwAnZrGuxHA+a2trbOAxYLFM7a2vlJOjiUeBkwLZ6CZagC0AnL+KJyeBbTqHjy70NfXZwMsFiyeEVI8MzNTr3GtkWsgHMBRwHw+n40CgM3p9XoJCqABdIJucH55ebnTZDIVAxYL0RAFd1pVeQX0E4BB9pvN5mPkWAQAuxWwioqK42s3bzZ6vSvNVqu1AjCsvB19ukAPeNtms1XTHGjv4jxUBP0O+JBz1QIYQX/Ep2bdkWpVLYPOxgQFAwMDVeL56OjoccAgzwOLgRkwt/snG9JOq3/L7Xa78KgwEAjkca5RVj6FbRAMof05uD+yCPcCu3CiiXSDpaUbRbt37z6iWJRyRVHKMakCSLKNIMxGm6GfYrfbq5qbm2vRttz+5zbN8RGyN4CivIT2MNf5ZWgibTsAiKmt7fUTgcC/d5zKtLS0PBex2nwWW/JFP9SQgoV8ghr5jFasc/4l9BVV1698NTLyGvmMHGgCh3Nzc8vGxydq5AA2Ufmw7zOIK6IfxuWDQZ3rX5BjzvWRubmF9ywWSyX5kgMgyQEKsFCqr6H6/f6gfXBwsEo4vhtJT09/aHp6upvr+uVb6+sfd3R0NBnZUQxfUeU+cBAcARZBMgHQGGkOmvNp8iGfao+AajntG+vrDZWVlcfEO09S8i9e/MAZCqljmPM78D1wgx/AODjEyLmo/G1ttA0bS5GvdZ3/DE38gvav0GF0/RvmD/rryFk0UAM1gKUCnExirt+gr5LWOTTQ9Tt8y+rq6kp9a2s22bln1WMlG2CpMDw8fCYUCtGKZ8PopH8PBYM/Dg0Ntco7moyZpSyJ58+WO9FnODv7R62qqrQ9FwCWBLvA++Avv98/2d/f3xrFebb8RaSBEuxeUY/gu+QQWAE3wDLX+SL0JfB41AvJ1hY/oHKsWDhNPQAF+MAa3vsK18OBgL/By4AlPIw0MICdMCMjY58RRMJARD8a4/F4RowgvGAVeMIZ0ZegH4wMYE8wqG4HQMxcm6mnuwC9r7m5ueJwYLwxQU0UiPHz8/MlNLa3t/cMbldXRTZ0BIJPkTLxwI7TsL29/eTGxoYdt5gGp9N5UmyfuFQ8K7JjbFANIHIHJajNOIo2MoM0Vmzrk5OTF/A5/olvf2lqaurdaKehIlVpIcg0rmAOweLiYiVg5FiTdsyFhYUXRT/KlqryMpoDFEpzK7FOwxdAEdgPGG4zT8p1geO0DDDxPGLbZmTTpAtN5PUOFJMPw1diMe6HDsHExESNsRoWeXYYMEjB2NhYrRR0RdK/C4LBYINwhDPDnpeXd1QczfRMgpGN+tA9QjxXMQdgsWDxjF1dXWUIglbicLlcp4zznIkMSFlgBOSgq811StOCjqCq2mkOwGLB4hrxvjIzM0uzsrJKqXAiLxORB9iqx2MFjDD6KDSGxtIcLAXJAYcJqXDCvwvWfLbr1z02agMmEOOk61fSYiISnHLmmOP+N5F/FyQp/wHjxqv8BBis8gAAABpmY1RMAAAACQAAACAAAAAiAAAAAAAAAAAAZAPoAABAamiUAAAFIWZkQVQAAAAKeAG1l2tMHFUUx6+hVE14WQkxVPGLQhvhCxqj0BgLa2KnLIXyECkIy77agpg0wSAIbQHF+EExAV8RbIJ8kfCJEAmQxkdVRNc2pJHEL2JZ6LobQktWdllm5vq/5Yysk32ku/Ekv5w7c+aec+beO/fcYbEK5/wRUCegNosFakQkEezX35dluR7aJhBtwIKhPonxJnAYmIEFHNLZbIqi2IUmWBCHZC5boQVPxJNAY1AAM0gKTkAHI5JAE7CDMxyJABYOFsl42+ut0wUpjp6AeAbXCj8Nfdbr9ZoACweLZDx37rWKEIEeCpcA2dBW7rw9pqilo6OjGrBwsEhGSNHi4qJJEQ735vsEYB7PukUL7na7zYCRDfd2335packmfIDoQguuUZZ5DfRjgEEOGgyGk8KplgDsZsBqamoqPR6Pxe12mUUbiNVvpgTOgJZjx0oqhQ/ynwfOgjbwtH4RJgLqTMhyGXQG+haOjo6e0u5PTk5WAgZ5ARgJA2DCRnPfPDEx0YhbR7a2tg4isQbc64CtC/o8cW9wAvuBFdj0n5fTefNoQkJCiWSUKiRJqoBTCQjJoCQM1BYiGY3GivLy8ir0MbpcrhIEbYefTvjshr6A616MZi/a9/2bAGRfe3tnld//952gepqbm58NettcEE5ytec6OzufQ9A30P9NcF7hvAe6b3tn+62hoSGriMk0oYvj2dnZZdPTM/X6BLxY3bAfICILPefz+R5F3y4Evgj60H7b4bj6ekFBQaWIpU9ASBaQgFEM9TWsfp8vYB0bGztFTu9KkpOTH5ydnX11Z2enz3nD2WW32+todCSKFVLuB/mgBBg1YklA9NH5KAFPUoyQVc0WzObGRlNtbe1JmtdYJbe7+6LJ7w+8B58fYU18Ai34FLwPnmIUnFY+aWqTjcXJAHyOQI9gQ/scWuMSGGS+gK9BBAsF1kA9YPGgyDLeVhnjCuB8TAHiWmjsDx+zhoaG0nXsaPrgLuxwwgZYPAwODtq2fb4v4HNcoKqq0F/iK7k0MDBg1e9oegwgXonqP0P/kPgMr1//7RXa2wsBi4F7QBeYvr1xe7Snp+d0iOAZ+i8iCRRjsYQuwXcFElfVeegr4BtwGbwDHg55Itre5odlTtUMxJsANqDnoX8FC5yrP3KVXwHf4noWvAxY1GKkgFHshCkpKQcoCRB12IsFmZmZ6cvLyyNoXwW/gJ/ADzQiX4OU/5TjQECmBABYvLZoEmcBMV9wVLSbGLdHWROfgVWw7PP7PhR9+/v7W3C6+gr3HOBnMK9y9Tua7r1qKI5Om5ub1tXV1abW1tZqbfu0WCzPaKNDG1QTCPdfsIZhdmHunWj/MT4+XiN8iNI8NTV1IRAIXJZV9fu5ubmeUNVQ0q3SIyBNO2ZprKys1AImAiu6HRPzvgD9FyVyA3o2NTX1AeFL51sKVw1fBEe1Y5Tf739cvy5w4CgDe4dSug/Y8PBwG4bXg0XnwrUT/AlMgJHPIoqRBaILnQ9tGjMzM/X0Niy4dhAMUnjr1q2ZvVFQV6AXYv4xwZw1aYFQM6w5OTknqMyGPJYLmwmC7XZN3R2FVSTxO2DhYJGMvb29ZUhCvKWtra3tJarnTBsB3SgwASR/fn7+A0zDTZXzFYfD8S5g4WARjZivtLS00vT09FK0peDDRHABc7tcZsAE9IyUn59fnZeXV0VzHrNkgeMC3cKh/4J1y9qayyLagBHB/SRqxyX7iEhVzhC53/8j+v+CmOQfnaCvAsiMZ2EAAAAaZmNUTAAAAAsAAAAgAAAAIgAAAAAAAAAAAGQD6AAArfy7fQAABPFmZEFUAAAADHjatVdtTJtVFK5hM8EQQIbEhMxfDmgC/th+TGV/BjVZXlbKh9DKYB2lLV1JmNaQVRiEjMyPv8TE6JQZK1KRf8RkYUkzg84laELI5pIZFQPESm2WQgld+374nHLf7eVa7PZWT/Lk3Jzbc85zzz3vvbcGvaIoykGgk+Fgdg/9ifYDT/J2URS7YHcTaMzPkw/55prcCPQATqCKm3NLktSrkuDmqkRFdDFfYy4EzqgJWLACLQEtNPYCwKESRHW6dROIxeOdXKL6RyBQryYnxOOxTt0EfL5zrXwi4Nm9CNCc1kYEfD5fqyEHqVtaWuqWFOz1w/220EQkEnWqidbX13sYAYuWAPlSjMdpuDOiqNign2fmcpPJ1ELBVAKYTyez2WyvRiIR5/p6uIfG7Mvo0TYn+VIMmkskEodgs7K+Mmb61NLODyCKTdBlmK4NBAKnVPvs7CwlI3kFMDOYyEBz6u8mJydPwXSMYgAWDTG1kvv5b9ZFE/zntbr6x/G8vLyTglloFQSB9lNgbmWMhImNSYSGhoYW+h35kC8X0wOcxfgsf7bs8/uH2hKJrfSPefT19b2kWW01sJdUq7/zer0vaxbSKyExtDeRTHpHR0dtlHMXAaChoqKi6erVuS6eQHyn80sYskkJQfNFeCQkhu4LXQs5jEZjM+XiCZA8x8prphIuooO3t5MutpcI+thyYGpqqiuZSHjv3rnjbm5ubmPVEViujJIPHAZOAmYVOgmUcDEo5hHKkfFW48u+ce+eo6Ojo4Xtq16p9ng87bFY/A3EPA/4gbcYzgEVBpacdSnTbExz/8Ft+rokKRegL+BAG4ZWMQK8adhObtspWSagB7pyJSClJFr1RSzqImk0JLSU1qlU6rzBbrc3RnGi8cnDOOFoLlcCw8PDHZubm2OI+S7wDsPbsVhs1O/3v8afaDxMQI6SPX4Z/yP6DG/d+uk0O9trde79E4ADeD8cDl/CYWbPkLyMdyoA6tEs/7iCdRB4AQgAV4CPgQ8BL/BMRof79xUjnlGaCylnAkeAaeAL4DN8XZ9CfwL9AZoPFYdku4wkIICTsLCwMH20Eh6h7C8CR8vLyw/gPfAexl8hThB6koiwilwGntp1HSeTomvXY2JxqZvd5+bl5eW6HWJK77/1BOvw74HrW1tbI+Q7MDDgjEajH8H2JVUDZD7HAolE/q7LaHBwsH1jY8O1trbm6O/vb1ePT6fTSStyaR4lDpasXZHln6FvA007NvkHWVYWYP8OttDE5QkLxcDVbMabwhePx69goYHp6WlfpttQ4Lr0GFDMP7NWVlY6yAFJfpUV+U/YVoFF9ur5GuMfgZuKrMxjtRNFRUVPUywutrDXbXgCOK59RvF9YTab2WqVv4AwiKxB/0a28fHxflmWF1GJBdhuAN+o1WEx6ygHy5Vd2PvQrWJubq6LVsMqkCYgEwFZWWYutXigBh9WQf4WesagV5LJpENdOe4MV2VlpUW9mmGLEAG2BSqBEqvVehqkFrA91AtoSPmabgJjY2NNIEHld6Obren7nAmSRIA0AejfNW6HQ6HQJQUkYL8xPz8/ZMhBThQXFzeWlpY2ssbJf0BAkn6R5Z0K4GBZ4h41Qk1NTduhqqpWtue6hZqlgcA3zszMzAgqczeVkm4Hg8GhPfwENs5J9hGy3HKmLH7/g/D/C3TK3/RJfVWiL971AAAAGmZjVEwAAAANAAAAIAAAACIAAAAAAAAAAABkA+gAAEA2yQcAAATpZmRBVAAAAA542rWXW0xcRRjH14AaEy6RJsTEtCRGSEGe4ElpTEq3ph5Yy0UostyXUxUqpphKpQZLNRpSHkx4oBgNabfE2oSElKRBfQFj4MELiOiLGFIBS3ddsASyu2fPOeP/287Uw7C46dn4Jb/M8M18l/3mdnDYFcbYflDH2R/fwn6gh8Ejsl7X9XroTxLUl8fJhmwTDZ4LPKAVHJTGThqG8apIQho7qDNd5ba5iSTQJAJwZynWBKxY9CmgRSSI6jTbTuDu1ladFOhI3AQwRwQntrbu1tlOoLPzzUo5EHhirwRozKqjBDo7OysdCUjx/Px8s8Gw1v+u93Ea8PsDrSKQz+fzkI7GrAmQLfl4kA3XpOusBu3TXP2k0+msIGciAYxHg9XU1Lzs9/tbfb41D/X5yfBYNyfZkg8aC4VC2dCdoBgUK9ZRixrfR9fL0GZiuMjr9bqFfnx8nIKRHAUujpMUNCbmjYyMuKE6RD7AcenUtFJM+cyqNCgfr5WV24eTkpJKFZdSqSgKrafCzTJ5Ek7eJ1FKSkoqaB7ZkK3sM9rquirfLclnz56rCoW2afIu2tvbn7X82nywl+SLeW1tbc+JoFaCmqZ2dXVVU8wdCYCSnJycsomJr+plo617Oz+DE08yCPlEEBM3JxooBsWSEyA5wMvrohLOYQcHg5rK1xJOH1j2ka0WDKq/wBf55NVReKyY8hgoAKXAJbCZQIbkg3wWUoyYr5pcrs2NjZba2toKvq52JZ98bGxstsib+/4rSp1duxSISY4EhXxYAsM/o76g3hHUgo1iUAZ7oD7RBDRNa4av12MRDAabHI2NjS8FcKPJwddww9FYogmoqlq+vr7eBp9vgFMC3KKveTyeMvlGk3GCBCW+/0x5Eh2ZhYVfG/jdXmRz7R8CCtb/zOLi4qmqqqoTMYJnykYp4Ahev11PsI0EngK9oMdg7F2074BykB7TIBxmuTrTLQ9SwgnkgI/AB6hCL3iPIRG0XWgLaU7cx8gAXtxmaWlpdLW+CF6g0sYp+zMgLzU1dd/U1NRbOHZ98PchM9j70J8HPeAceHTHc6xpurrjY2Juvpm/565wOHyFMfMv02R34OzSfyTQgTvkKtpPA38HVLLFSXIvLy/3iGqAC4YR6REJCEnu7u6u3tzcVFdXV1s6OjqqxfU5NjbWgMl+cIeZ7E+0v/FgpWASfAmK7+nM60jwGv6+DD7p6+s7Sj7wNLv6+/tbA4HA+WA4fGFgYMAT6zVUpF16KD09/XE4mgY+cBss42KZjAYzzWmTmT9Ch5bdIN329vYl/H0dXEXJh1H+HvJBviTfyl6v4TFwWHxG8RvLB9bAKrg1ODh4mo/9DH5AIjNoo0n19vaqSGaUV+EK+Aw8T2PcZzHF4LHiC0q+QKUHVPpl3Gg36NfwCsxD9z32xQz6U9ykaGlp6WNehREkchl74qLDrsDxLV76FZT7d7fb3SieZuh+ogT4EokEMnCJvaLrxhfQfQ68hqEP2U5gdnb2Ipz8YaL009PT9EsKLTt+zjTNaAJov7GYFYyOjr7NmHENFfBiE7c7EpBjeXl5VQUFBXQqFOvHhB6JfIvg36EyMzimN6WPGiU7O7siKyurnK+5bTkASgh54wwPD5+JRCKToZD29dDQ0Ok97BTeT0iSiTivnDOO3f8g8v8FNuUfG4CCnr3IRI0AAAAaZmNUTAAAAA8AAAAgAAAAIgAAAAAAAAAAAGQD6AAAraAa7gAABPlmZEFUAAAAEHjatVdtTFtVGMaAJiYEIhowKOgPS7ZAYjL9o7AYtpost8Py6ZDxsUHLoEUXMITpRDIxKyNion9Q4tSFdCYYmZNEiMFo4ghDpwhiwg9/CdLabmm2wC5t74fPS8/B64HCdhtP8uTevue87/Pc97znvrdJZoeu6zlALUPO7h7mie4F7hPtiqLUwd5MoHtxnnzIN1HyvUAT4AD2CHPNqqqe4CKEuT2KrjiZ795EBBzjBCxYqlGAEQZ7KtDIBSI7x00LuLm6WisQHbwDAQc5OWF19WataQEdHScrRCLg4XgCaM5oIwEdHR0ViZTBgfn5+eOqjr3+d7/tNBEM3nBwokAg0MQE2I0CyJdi3E3BHVMUvRrXJ5j5EavVWk7BuADMb5BVV1dXBoNBRyDgb6J7djKajMVJvhSD5tbX1y2wHSEO4truqG04b0JRSnHNxHTh8PDwUW4fGxurZG7PAyUMVjLQHF/n9XqPwlREMQC7cGocxCmeWSdNisdredlXnJycfFgqkSokSaL9lJhbJhNhZfc0JJvNVk7ryId8xZh0xcM5xXdLyqlTp6vW19do8Ra43e5nDE9bAMQbBXydy+V6lpMaIUcizq6urheJ8z8CAFteXl7pxMQ3daLTaqzyMxh2HHydeCIIE19P1BMHcYkCaOSy9JZQCn9FBctyxMn2EkHvejxIvhFZdv6OWGz7ShhHbjyn+4F9wGFazGFSQIYQg2I+RRzbdjUxXbdCocaamppytq9mRwHFCIVuNYrFvdlF6WZLlQJ8UcLdFDGMxKKIJDkiN3CDCNRAXaIClEikXiTmiEQQv6Gh4YUbeKOJk3684WguUQEUI7hdfL/fUV9fbxffaCKsCfLfUfxMcdHQ0FBXOBy+pmmaH2rPA/eY3P9C6g8LCwsN7BiK5JmigwW4pOnadVyDQEDTdRJhNUGejWJ24doSa2ZA7FshNZ7Dq8AKkQJ/Q4Sf/V6KRqNmBDwKvAy4gVYIaAFOUEaQ3S3d8AHAT8S6pnPiZU3T/1xaWrqYnZ39EH4XA/t32g6aAx4HHktLS8sYHR2l8/8K0IZsxIToKmWEN6NNx3SQLeua5sP9X8CSfPv2lf7+/pO0X+jl78P2G8T9gqfo3UFAFdALdK+srJSSL7pj1eLiYoshGy46kuIXc8rMzMy7KLo/kO7ZycnJs2inG6/PkZGRI0QOzELgT7qufRcjiz6Hp7oA+wfA02TD73MI7sHvM8Dp9vb2/fy13tnZ+ZLP52tdW1tzdXd3V2/XDSWhSovS09Npay6jEOdwvQZMy7J8kZF9hjr5Ahnxwv4e2a6HQm/g/hzwNtADNFIMiiXEluJ1w0NAMf+MUnS9To+R/wzMAD/09fW1snR/BXwOISTgY7K1tbXVRlX1HZaFt4A3gSdpjsU8QByMa/eBuvgW+z6LID9ie6aRwvPsaZJgv0wCVGQAIj5hLoVzc3OvqSwLEHKG9j7J7ADpVZb6q0j392VlZZvfBrB9CYwAXoALyCgqKqoKh6Mk4CyE9apq9HXTAqampnpAPI1gV8bHx3tYP+cVfwkFuSEAT/qpwW3f4IeDqHLVE4UAvFUTamiHLBZLRX5+fiUVjvFjIoxipAyouupFZQ8KHzVSTk5OaVZWlp3tuemRC9gIYuEMDAy4w3L4Asg/8ng8zXH8JHaf0Egh7NLlrHH9/rch/i8wOf4BRvqEvL0rz4oAAAAaZmNUTAAAABEAAAAgAAAAIgAAAAAAAAAAAGQD6AAAQaGt/gAABQFmZEFUAAAAEnjatZdbTBxVHMbXgCYmCEgbsCGFhFgCCQkJfagKL+2uSTOUu6WEO2UXKlvauiSyIlZSN6FRi0lDjA8kRgmKqeUiKmjS9IU+mHql4A1pgrQVWHXDdoFlmDPj99+e0fGElbITT/LLmT1n/uf7zn3WEmnSNG0vqObs3TbAhNCD4CGxXFGUGpQ3EfQs1lMMxZoVzwSNwA4yhLomxlizbkKoy1A0xcFjM80YqNcFeGMxRgNGDOUx4LhuEKPTELGBlUCgWhCy3ocBqy5OBAIr1REbcLlOl4lC4LFwBqjOWEYGXC5XmcVEOjQ1NdXANMz1P/NdRBVe7x92XWh5ebmRGygyGqBYamMnC65eUbQK5I/z4mSbzVZKjekGUB8Sq6ioeMbr9dqXlxcb6ZnvjEbj4qRYaoPqgsHgPpQdIw3S2mqrhYL/RlGKkSeiOre/v79KLx8bGyMxSk+DAo6NCqhOf29gYKAKRXnUBigSdo2dNMU966BKcXvduvXbwaioqCNSgVQmSRLNp8TDErkJG3+mJOXn55fSexRDsWKblKNzDvFsiXa7XzwaDK6GXhZxOp1PGnqbBcKlLP29lpaWp3RRI+uy7Ghvby8nzX8ZAPnp6enFExOf14hBgXsrP4GzXUogxB1BTHw6UUsapCUaoJQCJHJPQ/gtVvD6uuzgc4lGd5x2Uay8vu6YQVt8+gq4Rkq4oIdBDjgCCnQiNJAgtEFt7icNcQeUg5vgT46PUBn7dWRk5Cyf10hTVmVlZanP5z8uLm79FiUDvwCvqqm/Uw6Q66g3LSYTCRmFRRMWVdN+1lRtCT+WVKBxVELVfjRrQJHlWlFYR5blGsvw8PALqPwJBXc0Vb2D/DZG4zbKZoaGhtxmDdTV1RXSiSmKLy4u2mtra4vEE03EZlL/vtpPFF/q7e11ra2tXcEUTMNtD3ggwvnPpfthenq6jm9DUTxRDEgDb4MfwPeADHwH8nYsLh5ELJRbQUy4gGYuNgNuqPeevwbXNzc3c3dqYHV1dQ8Ji6ufRmRjYyNTFI8HU9gNN8gEhv4b5F/CxBezs7NvJicn78LvA2D/dtOB+j1EbGxsAp2EW+8A4TLCj0dUVaXekvBXMHDd7/ePdHV1naD5urt692WUj8PgKPLW/xC3Uj14dn5+3kqx9E1AHyZGA7IiO8Qv5ugrV696MDzXgsGNz0ZHRztxnYaOz76+vmISB2PgMniHi+UAD3gJZPCyM+jtGU1jJ/F8wm63P6Ef66eczvKFhYVGdMzR0dGx5W0oCas0Ly4u7lE09Bb4GAyDD/wB/wUu9irT2BvIz4PnqWxpaYl6+BxoxaJzIi9BcTzIE9qWwt2Gh8FBkMxFCsEnYATH8ofI33O73fW8rhf0cAPnqAzn/lGmaW00Cig7CVrAPqrjbR4iDa61fUIv3kUDH4HLDL2fm5s7z3tjgQgMsB7GYICxV3hI7uTkZDMfhVOMYSoUpcoSaVJV9FoNDf0lNNZvtVqP6Vczyi6CC3wEdAMJ2dnZJcGgTAZOowOtjMlNERsYHx93KapyCb1/f3Bw0MXvcwsfgYsgZAC5xxCW4/F4amgaZMZau7u7Tf0vOJyamlqSlpZWSgvH+DGxFgi8BvHXyYDP5zsrfNRISUlJRfG7dxdSG2YMpIB8Qlw4nZ2dDQF/oNvnWznX1tZWEyZO4s+mUjSxzS1nCxv3vyXxf0GE6S+R9YNYr/xWtAAAABpmY1RMAAAAEwAAACAAAAAiAAAAAAAAAAAAZAPoAACsN34XAAAFF2ZkQVQAAAAUeNq1l1tMXEUcxmmgJkZuAtkoWHyxXCKJpvJgpD60rNocWCCgFOmyUHa36hKgLqE0vFXQVCymioYXE8LVeCONpIQHEo0xYhtCE6SpvgnULOzCrpCFhbPn4vdf59Dj2BV6Nk7yyxxmdub7ZuY/F+KMJlVVjwAr48j+LYwLHQYP8eWSJNWh/BxB33w9taG2sYrnAztwgDyu7pwsy29oJri6PEmVnKxtfiwGGjQB1lmi3oAeXXkiaNQMYnbOGjawEQxaOaHiAxgo1sSJYHDDatiA291axQuBx6IZoDp9GRlwu91VsYTByfn5+bOyirW+t97lVOHzrTs0Ia/Xa2cGyvUGqC31cdD1bgPLiqreQe5ixVlms7mSOtMMSJIaEaupqXnV5/M5vN4VO32znWHXBye1pT6obmdn5yjKTrO4yufFU8AfqqL4kK+BdXzfRG5CddHw8PAZbVQTExMkRuklYGGYqYDqtN+Njo6eQdFx6gOUc7vGAQ7rDTxKBsAKZsCLHEaUdeR+cVccjo+PLxUsQpUgCLSeAmtmYibM7JuSUFJSUkm/ozZ373pO6ONhL5ckJ3+2JMzM3OhVVGURFR6IryL3stnwT09P23WjLQDRUoH2O5fL9YImqickis6Ojo5q0vyHAVBSV1fX4Pf7r7PZ8Ch/G/GBV1CfxtgvpRH8jiCmJqdsOTk5FaTFG6CUDQRg6e/vb9ve3v5JUdTfPR7Pl0lJSekGdlA6xYEYCjlvYzew5bMwjexojR4Gx0ApsOhIM2AgjeujFDxHGvwOKAU/gzuI/F+RE7/J4fDc2NjYRbauRlNBbW1tZSCw2cjfHdotSgZ+ROT/QqgALDBuIxhn4mJMJKQX5k3ESYr0g6qotwiYuIXCOQ3EwHexGpBE0cYLa4iiWBc3NDR0PhwOf4+Cm1iCCIj+G2JYnB4cHGyN1UB9fX0ZnZi8+MrKisNms5XzJxqPOUb9A/Vv4n/U3d3tCgQ2RrAEdCZcAIcMrn8R3Q8LCwv1bBvy4ia+wRPgPSzBFPJJMAGugWcfWJw/iORIXgwSozWoBt+C66qyJ/wN+ALB8syDGtja2nqchPnopxnZ3d3N58WTSJxxTVGUceRfgc/n5uYuZWVlpeP7aZAHDu07cpCcnJxGJ+H9dwB3GeGPRxQlMloIK1/TqNfW1j5pbm5uoPXy/+mnDj5FR1cxgtf+a801kcXFxWJqS28CepjoDYiS6ORfzAnj4+PtqBgNBoOfDQwMtOI6jRyfPT09L5M4+AiPkivILzGxo+AtYA+FQk9GyrgHicPheF471luamqqXl5ftm5ubzs7OzvvehgIXpcdTUlLondAJPga94LJv3edmBprxVGtDcLXgCd5AZUtLS6/fW3MVL2KVbr5U6ovrW4h2G54CJ0AWE3kR9IEPMaoPkL9rt9trqA7CHfjbrapyi/aEs1gsFfK/1/wp7XkHTjINaO2fSOQddHAVXMFoL8/OzrrZaFAnX4C4W8YMQLCJNSmanJy0cZEPwwYTG3UveD8sh7sKCwurtKsZZe3gbbA3A1SXm5tbHgqJTs0E7oJGwwZGRkYaIdwj43Dq6+uz032uMwcDcsQAZqFJ1+xY+8X207IsItolZ1dXF+LAeDplMpkqMjMzqRNB/5jYCATO0wzIMLC6uvom96gRMjIyylJTU8vYmhtO2aCE4APH6XTW4KyA+JrLarVWR2knsO+YUgKxzy1njtruf0v8/wUG019dDISlQm+mHQAAABpmY1RMAAAAFQAAACAAAAAhAAAAAAAAAAAAZAPoAABQgGYUAAAFD2ZkQVQAAAAWeAGl13tIW9cDB/BTTCtCdbYV2SjKGJ12zL+6f7bpBnUZG1cTQyzVn49Y42266NRNVuqEPXzgqpvsD53stzHcKGHdBttEkCBM6CjdoxsrQoUhSH2kZorYlkaTcO89+570XHd7SC4xOfDxHO/jvO85JyTVQCktgAZFURp5mqQimYcegUNABA2qqp5D7GFpIIIDsD/dCnTAEgTgTeGeR0AMjoNMFUVG/FQ6FfgbVuE2j59MogIHwc16h0H6TMoVwPheR7xMqRagGg0i/X0SFXhJv8YqcPf+/QYgiRCzm7Ozs33I6JZG6QrrBU3T/kH8ikkFHhWvd3V1VQNJhJjdtFgs5dvb21di80DTAtqDXrgGZHNzQ9YLWV9fbwGCdJXechbPzc01E0LKk/2smuEqzEA97MPlo0NDQ2wiLsKyYS6Q2traUxsbG3IQhbM0YMhoi7H1VqvVyfLg+R+jCq2FM8aJaZw4V+E3+AMt/QvxD/Ac3i1dWlm6pFHtFnphFYV+DQThZbBxViBTU1On9B7w+Xz1uFSG//OhSu+VB3Hs69hvrEAO/My791e4Dn/CjXA4/HFmZqZtfHy8a2xsrCsjI0MCgpDPK2HlaRakiooKpyRJ1XimcnV19aRKVWGugKKcRXxgtwIIFr/f/w5m+izviWt6b6DVNyYnJ+sNrS2BRKFEf661o/V5sWAmHAp7LlzoOc3KJIZggQq73V4fCAQ+x4NXeEV+gd+hDPcPc+aBP2f8IvTu98/MNBYVFTlYWWIFWCgECWyD/YPeO3fvXFY07aeFhYVPsrOzjwDZC4QjbB6EQiHPzbmbzWxoeO9IvKy4IQtOQCXYdOYtN+0Jm0ElPANZ4udXCl9hkWGznvkRJhUlehmTro2Pa6qhpK6uzrm1teUWhwMaoIBgln6BxDeYgN8i1n3HTQBJU4OxYCO2lRP8+Qz/+GJUFagPlQJQ1E+BpCOqRF16gaLozk4jGRkZce/s7PwfF76ECQaFT2DyjGMVbAaSDpfLVWVctnXB20G5qanJLq5oIiukE5LKP198qL293bW2ttaLmn4INbAPSApK2f4wPz/vYqtjnMLzxS8iD2QYwTB8hHgIBuGJvRcubM0q4KwABxMdSF5UVXoR8TBmbKxgldIBXGM98TiQvcAceizOpwdKC+LjYgWy4CI3CAP4IvoQvzc9Pe1lKyHShXA0qZZDTk7OYd8lX3282a9QYTOCTJUVCtAH7y8uLr7ldDpr2HgFg8FKdihFpToQv2A25nqLsROWs3fZmYAdTB6uAH14O0awjI6OtkQikXdxsnm7t3egCdtpbPns7OwsY4VDB7SBDAQK0JJGfUUDAm7jmMuy/Ky+rLe1tZ3GRue+dy90tqcn/m4oCbO0DA6hkDpk2Amvg3dlZaUOdlc4itbyNFkOLP/PcBr2QBXyyIUyIW8p0W74KpzUj1GRCH0ambwB7ciUtf41h8PmAGI84XDEZrM52DVh8h0DwvMs52UUJn9OVHe73otDi4u3Ju6pGKHUP+NvFK7Xpvy7AC3w8q5vxdHsXHFxcZW+NRu7mqcJu8eeCYVD/6330agbSCLE7Obw8AfVqhptRdrb3d1dw/dzkqgHGIQT3efP1+AdTxj6+/sdQBIhpjcxXrm5ufa8vDw70pLxMMGO5Kzl+sYChOHPSOwd9i4f85RDIVQw4sSJ/S7Y3JTXDb8LOON7Ek+nFSyc2S5nNX3PJPwLu02sWzaoOecAAAATdEVYdFNvZnR3YXJlAEphcG5nIHIxMTkn6LNhAAAAAElFTkSuQmCC);background-size:16px 17px}ngx-extended-pdf-viewer .dropdownToolbarButton::after{width:24px;height:24px;display:inline-block;position:absolute;margin-top:5px}@media print{body{background:rgba(0,0,0,0)}#errorWrapper,#loadingBox,#secondaryToolbar,#sidebarContainer,.textLayer,.toolbar{display:none}#viewerContainer{overflow:visible}#mainContainer,#viewerContainer,.page,.page canvas{position:static;padding:0;margin:0}.page{float:left;display:none;border:none;box-shadow:none;background-clip:content-box;background-color:#fff}.page[data-loaded]{display:block}.fileInput,body[data-pdfjsprinting] #outerContainer{display:none}#printContainer canvas,#printContainer img,body[data-pdfjsprinting] #printContainer{display:block}#printContainer{height:100%}#printContainer>div{position:relative;top:0;left:0;width:1px;height:1px;overflow:visible;page-break-after:always;page-break-inside:avoid}}ngx-extended-pdf-viewer .visibleLargeView,ngx-extended-pdf-viewer .visibleMediumView,ngx-extended-pdf-viewer .visibleSmallView{display:none}ngx-extended-pdf-viewer #viewerContainer{overflow:auto;-webkit-overflow-scrolling:touch;position:absolute}ngx-extended-pdf-viewer .invisible{display:none!important}body[data-pdfjsprinting] #printContainer,body[data-pdfjsprinting] #printContainer *{padding:0;margin:0;font:message-box;outline:0}#printContainer canvas,#printContainer img{display:block!important}@media print{body[data-pdfjsprinting]>*{display:none!important}body[data-pdfjsprinting] #printContainer{display:block!important}body[data-pdfjsprinting] #printContainer div img{height:100vh!important}body,html{overflow-y:visible!important}html.cdk-global-scrollblock{width:initial;position:initial}}ngx-extended-pdf-viewer .textLayer .highlight.color0{background-color:rgba(180,0,170,.4)}ngx-extended-pdf-viewer .textLayer .highlight.color0.selected{background-color:#b400aa}ngx-extended-pdf-viewer .textLayer .highlight.color1{background-color:rgba(0,100,0,.4)}ngx-extended-pdf-viewer .textLayer .highlight.color1.selected{background-color:#006400}ngx-extended-pdf-viewer .textLayer .highlight.color2{background-color:rgba(0,0,255,.4)}ngx-extended-pdf-viewer .textLayer .highlight.color2.selected{background-color:#00f}ngx-extended-pdf-viewer .textLayer .highlight.color3{background-color:rgba(255,0,0,.4)}ngx-extended-pdf-viewer .textLayer .highlight.color3.selected{background-color:red}ngx-extended-pdf-viewer textLayer .highlight.color4{background-color:rgba(255,94,0,.4)}ngx-extended-pdf-viewer .textLayer .highlight.color4.selected{background-color:#ff5e00}html[dir=ltr] ngx-extended-pdf-viewer .dropdownToolbarButton,html[dir=ltr] ngx-extended-pdf-viewer .overlayButton,html[dir=ltr] ngx-extended-pdf-viewer .toolbarButton{margin:3px 0 4px}html[dir=ltr] ngx-extended-pdf-viewer .toolbarButton:last-child,html[dir=rtl] ngx-extended-pdf-viewer .toolbarButton:first-child{margin-right:0;margin-left:0}html[dir=ltr] ngx-extended-pdf-viewer #secondaryToolbarToggle{margin-right:4px;margin-left:0}html[dir=rtl] ngx-extended-pdf-viewer #secondaryToolbarToggle{margin-right:0;margin-left:4px}ngx-extended-pdf-viewer .dropdownToolbarButton,ngx-extended-pdf-viewer .overlayButton,ngx-extended-pdf-viewer .secondaryToolbarButton,ngx-extended-pdf-viewer .toolbarButton{padding-left:0;padding-right:0}ngx-extended-pdf-viewer .offscreen{position:fixed!important;left:-9999px!important;display:block!important;width:3000px!important}ngx-extended-pdf-viewer .offscreen #sidebarContainer{top:1000px!important}ngx-extended-pdf-viewer .dropdownToolbarButton,ngx-extended-pdf-viewer .toolbarButton{margin-left:-1px!important;margin-right:-2px!important}ngx-extended-pdf-viewer #numPages{padding-right:0}ngx-extended-pdf-viewer .pdf-viewer-template,ngx-extended-pdf-viewer .pdf-viewer-template *{display:none}ngx-extended-pdf-viewer a:focus,ngx-extended-pdf-viewer button:focus,ngx-extended-pdf-viewer input:focus,ngx-extended-pdf-viewer select:focus{outline:0;border:1px solid #00f}ngx-extended-pdf-viewer input[type=checkbox]:focus{outline:#00f solid 1px}"],encapsulation:2}),wD),uM=((bD=function e(){A(this,e)}).\u0275fac=function(e){return new(e||bD)},bD.\u0275cmp=ft({type:bD,selectors:[["pdf-dark-theme"]],decls:0,vars:0,template:function(e,t){},styles:["ngx-extended-pdf-viewer .dropdownToolbarButton::after{content:url(\"data:image/svg+xml; utf8, <svg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'><path fill='rgb(217, 217, 217)' d='M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z' /></svg>\")}ngx-extended-pdf-viewer .textLayer{position:absolute;left:0;top:0;right:0;bottom:0;overflow:hidden;opacity:.2;line-height:1}ngx-extended-pdf-viewer .textLayer>span{color:transparent;position:absolute;white-space:pre;cursor:text;-webkit-transform-origin:0 0;transform-origin:0 0}ngx-extended-pdf-viewer .textLayer .highlight{margin:-1px;padding:1px;background-color:var(#b400aa);border-radius:4px}ngx-extended-pdf-viewer .textLayer .highlight.begin{border-radius:4px 0 0 4px}ngx-extended-pdf-viewer .textLayer .highlight.end{border-radius:0 4px 4px 0}ngx-extended-pdf-viewer .textLayer .highlight.middle{border-radius:0}ngx-extended-pdf-viewer .textLayer .highlight.selected{background-color:#006400}ngx-extended-pdf-viewer .textLayer ::-moz-selection{background:#00f}ngx-extended-pdf-viewer .textLayer ::selection{background:#00f}ngx-extended-pdf-viewer .textLayer .endOfContent{display:block;position:absolute;left:0;top:100%;right:0;bottom:0;z-index:-1;cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}ngx-extended-pdf-viewer .textLayer .endOfContent.active{top:0}ngx-extended-pdf-viewer .annotationLayer section{position:absolute}ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.pushButton>a,ngx-extended-pdf-viewer .annotationLayer .linkAnnotation>a{position:absolute;font-size:1em;top:0;left:0;width:100%;height:100%}ngx-extended-pdf-viewer .annotationLayer .textAnnotation img{position:absolute;cursor:pointer}ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.checkBox input,ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.radioButton input,ngx-extended-pdf-viewer .annotationLayer .choiceWidgetAnnotation select,ngx-extended-pdf-viewer .annotationLayer .textWidgetAnnotation input,ngx-extended-pdf-viewer .annotationLayer .textWidgetAnnotation textarea{background-color:rgba(0,54,255,.13);color:#474747;border:1px solid transparent;box-sizing:border-box;font-size:9px;height:100%;margin:0;padding:0 3px;vertical-align:top;width:100%}ngx-extended-pdf-viewer .annotationLayer .choiceWidgetAnnotation select option{padding:0}ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.radioButton input{border-radius:50%}ngx-extended-pdf-viewer .annotationLayer .textWidgetAnnotation textarea{font:message-box;font-size:9px;resize:none}ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.checkBox input[disabled],ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.radioButton input[disabled],ngx-extended-pdf-viewer .annotationLayer .choiceWidgetAnnotation select[disabled],ngx-extended-pdf-viewer .annotationLayer .textWidgetAnnotation input[disabled],ngx-extended-pdf-viewer .annotationLayer .textWidgetAnnotation textarea[disabled]{background:0 0;border:1px solid transparent;cursor:not-allowed}ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after,ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before,ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.radioButton input:checked:before{background-color:#474747;content:'';display:block;position:absolute}ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after,ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before{height:80%;left:45%;width:1px}ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before{-webkit-transform:rotate(45deg);transform:rotate(45deg)}ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after{-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.radioButton input:checked:before{border-radius:50%;height:50%;left:30%;top:20%;width:50%}ngx-extended-pdf-viewer .annotationLayer .textWidgetAnnotation input.comb{font-family:monospace;padding-left:2px;padding-right:0}ngx-extended-pdf-viewer .annotationLayer .textWidgetAnnotation input.comb:focus{width:115%}ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.checkBox input,ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.radioButton input{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:0}ngx-extended-pdf-viewer .annotationLayer .popupWrapper{position:absolute;width:20em}ngx-extended-pdf-viewer .annotationLayer .popup{position:absolute;z-index:4;max-width:20em;background-color:#ff9;box-shadow:0 2px 5px #888;border-radius:2px;padding:6px;margin-left:5px;cursor:pointer;font:message-box;font-size:9px;word-wrap:break-word}ngx-extended-pdf-viewer .annotationLayer .popup>*{font-size:9px}ngx-extended-pdf-viewer .annotationLayer .popup h1{display:inline-block}ngx-extended-pdf-viewer .annotationLayer .popup span{display:inline-block;margin-left:5px}ngx-extended-pdf-viewer .annotationLayer .popup p{border-top:1px solid #333;margin-top:2px;padding-top:2px}ngx-extended-pdf-viewer .annotationLayer .caretAnnotation,ngx-extended-pdf-viewer .annotationLayer .circleAnnotation svg ellipse,ngx-extended-pdf-viewer .annotationLayer .fileAttachmentAnnotation,ngx-extended-pdf-viewer .annotationLayer .freeTextAnnotation,ngx-extended-pdf-viewer .annotationLayer .highlightAnnotation,ngx-extended-pdf-viewer .annotationLayer .inkAnnotation svg polyline,ngx-extended-pdf-viewer .annotationLayer .lineAnnotation svg line,ngx-extended-pdf-viewer .annotationLayer .polygonAnnotation svg polygon,ngx-extended-pdf-viewer .annotationLayer .polylineAnnotation svg polyline,ngx-extended-pdf-viewer .annotationLayer .squareAnnotation svg rect,ngx-extended-pdf-viewer .annotationLayer .squigglyAnnotation,ngx-extended-pdf-viewer .annotationLayer .stampAnnotation,ngx-extended-pdf-viewer .annotationLayer .strikeoutAnnotation,ngx-extended-pdf-viewer .annotationLayer .underlineAnnotation{cursor:pointer}ngx-extended-pdf-viewer .pdfViewer .canvasWrapper{overflow:hidden}ngx-extended-pdf-viewer .pdfViewer .page{direction:ltr;width:816px;height:1056px;margin:1px auto -8px;position:relative;overflow:visible;border:9px solid transparent;background-clip:content-box;-o-border-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAATCAQAAADYWf5HAAAA6UlEQVR4Xl2Pi2rEMAwE16fm1f7/r14v7w4rI0IzLAF7hLxNevBSEMEF5+OilNCsRd8ZMyn+a4NmsOT8WJw1lFbSYgGFzF2bLFoLjTClWjKKGRWpDYAGXUnZ4uhbBUzF3Oe/GG/ue2fn4GgsyXhNgysV2JnrhKEMg4fEZcALmiKbNhBBRFpSyDOj1G4QOVly6O1FV54ZZq8OVygrciDt6JazRgi1ljTPH0gbrPmHPXAbCiDd4GawIjip1TPh9tt2sz24qaCjr/jAb/GBFTbq9KZ7Ke/Cqt8nayUikZKsWZK7Fe6bg5dOUt8fZHWG2BHc+6EAAAAASUVORK5CYII=) 9 9 repeat;border-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAATCAQAAADYWf5HAAAA6UlEQVR4Xl2Pi2rEMAwE16fm1f7/r14v7w4rI0IzLAF7hLxNevBSEMEF5+OilNCsRd8ZMyn+a4NmsOT8WJw1lFbSYgGFzF2bLFoLjTClWjKKGRWpDYAGXUnZ4uhbBUzF3Oe/GG/ue2fn4GgsyXhNgysV2JnrhKEMg4fEZcALmiKbNhBBRFpSyDOj1G4QOVly6O1FV54ZZq8OVygrciDt6JazRgi1ljTPH0gbrPmHPXAbCiDd4GawIjip1TPh9tt2sz24qaCjr/jAb/GBFTbq9KZ7Ke/Cqt8nayUikZKsWZK7Fe6bg5dOUt8fZHWG2BHc+6EAAAAASUVORK5CYII=) 9 9 repeat;background-color:#fff}ngx-extended-pdf-viewer .pdfViewer.removePageBorders .page{margin:0 auto 10px;border:none}ngx-extended-pdf-viewer .pdfViewer.singlePageView{display:inline-block}ngx-extended-pdf-viewer .pdfViewer.singlePageView .page{margin:0;border:none}ngx-extended-pdf-viewer .pdfViewer.scrollHorizontal,ngx-extended-pdf-viewer .pdfViewer.scrollWrapped,ngx-extended-pdf-viewer .spread{margin-left:3.5px;margin-right:3.5px;text-align:center}ngx-extended-pdf-viewer .pdfViewer.scrollHorizontal,ngx-extended-pdf-viewer .spread{white-space:nowrap}ngx-extended-pdf-viewer .pdfViewer.removePageBorders,ngx-extended-pdf-viewer .pdfViewer.scrollHorizontal .spread,ngx-extended-pdf-viewer .pdfViewer.scrollWrapped .spread{margin-left:0;margin-right:0}ngx-extended-pdf-viewer .pdfViewer.scrollHorizontal .page,ngx-extended-pdf-viewer .pdfViewer.scrollHorizontal .spread,ngx-extended-pdf-viewer .pdfViewer.scrollWrapped .page,ngx-extended-pdf-viewer .pdfViewer.scrollWrapped .spread,ngx-extended-pdf-viewer .spread .page{display:inline-block;vertical-align:middle}ngx-extended-pdf-viewer .pdfViewer.scrollHorizontal .page,ngx-extended-pdf-viewer .pdfViewer.scrollWrapped .page,ngx-extended-pdf-viewer .spread .page{margin-left:-3.5px;margin-right:-3.5px}ngx-extended-pdf-viewer .pdfViewer.removePageBorders .spread .page,ngx-extended-pdf-viewer .pdfViewer.removePageBorders.scrollHorizontal .page,ngx-extended-pdf-viewer .pdfViewer.removePageBorders.scrollWrapped .page{margin-left:5px;margin-right:5px}ngx-extended-pdf-viewer .pdfViewer .page canvas{margin:0;display:block}ngx-extended-pdf-viewer .pdfViewer .page canvas[hidden]{display:none}ngx-extended-pdf-viewer .pdfViewer .page .loadingIcon{position:absolute;display:block;left:0;top:0;right:0;bottom:0;background:url(data:image/gif;base64,R0lGODlhGAAYAPQAAP///wAAAM7Ozvr6+uDg4LCwsOjo6I6OjsjIyJycnNjY2KioqMDAwPLy8nZ2doaGhri4uGhoaAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH/C05FVFNDQVBFMi4wAwEAAAAh/hpDcmVhdGVkIHdpdGggYWpheGxvYWQuaW5mbwAh+QQJBwAAACwAAAAAGAAYAAAFriAgjiQAQWVaDgr5POSgkoTDjFE0NoQ8iw8HQZQTDQjDn4jhSABhAAOhoTqSDg7qSUQwxEaEwwFhXHhHgzOA1xshxAnfTzotGRaHglJqkJcaVEqCgyoCBQkJBQKDDXQGDYaIioyOgYSXA36XIgYMBWRzXZoKBQUMmil0lgalLSIClgBpO0g+s26nUWddXyoEDIsACq5SsTMMDIECwUdJPw0Mzsu0qHYkw72bBmozIQAh+QQJBwAAACwAAAAAGAAYAAAFsCAgjiTAMGVaDgR5HKQwqKNxIKPjjFCk0KNXC6ATKSI7oAhxWIhezwhENTCQEoeGCdWIPEgzESGxEIgGBWstEW4QCGGAIJEoxGmGt5ZkgCRQQHkGd2CESoeIIwoMBQUMP4cNeQQGDYuNj4iSb5WJnmeGng0CDGaBlIQEJziHk3sABidDAHBgagButSKvAAoyuHuUYHgCkAZqebw0AgLBQyyzNKO3byNuoSS8x8OfwIchACH5BAkHAAAALAAAAAAYABgAAAW4ICCOJIAgZVoOBJkkpDKoo5EI43GMjNPSokXCINKJCI4HcCRIQEQvqIOhGhBHhUTDhGo4diOZyFAoKEQDxra2mAEgjghOpCgz3LTBIxJ5kgwMBShACREHZ1V4Kg1rS44pBAgMDAg/Sw0GBAQGDZGTlY+YmpyPpSQDiqYiDQoCliqZBqkGAgKIS5kEjQ21VwCyp76dBHiNvz+MR74AqSOdVwbQuo+abppo10ssjdkAnc0rf8vgl8YqIQAh+QQJBwAAACwAAAAAGAAYAAAFrCAgjiQgCGVaDgZZFCQxqKNRKGOSjMjR0qLXTyciHA7AkaLACMIAiwOC1iAxCrMToHHYjWQiA4NBEA0Q1RpWxHg4cMXxNDk4OBxNUkPAQAEXDgllKgMzQA1pSYopBgonCj9JEA8REQ8QjY+RQJOVl4ugoYssBJuMpYYjDQSliwasiQOwNakALKqsqbWvIohFm7V6rQAGP6+JQLlFg7KDQLKJrLjBKbvAor3IKiEAIfkECQcAAAAsAAAAABgAGAAABbUgII4koChlmhokw5DEoI4NQ4xFMQoJO4uuhignMiQWvxGBIQC+AJBEUyUcIRiyE6CR0CllW4HABxBURTUw4nC4FcWo5CDBRpQaCoF7VjgsyCUDYDMNZ0mHdwYEBAaGMwwHDg4HDA2KjI4qkJKUiJ6faJkiA4qAKQkRB3E0i6YpAw8RERAjA4tnBoMApCMQDhFTuySKoSKMJAq6rD4GzASiJYtgi6PUcs9Kew0xh7rNJMqIhYchACH5BAkHAAAALAAAAAAYABgAAAW0ICCOJEAQZZo2JIKQxqCOjWCMDDMqxT2LAgELkBMZCoXfyCBQiFwiRsGpku0EshNgUNAtrYPT0GQVNRBWwSKBMp98P24iISgNDAS4ipGA6JUpA2WAhDR4eWM/CAkHBwkIDYcGiTOLjY+FmZkNlCN3eUoLDmwlDW+AAwcODl5bYl8wCVYMDw5UWzBtnAANEQ8kBIM0oAAGPgcREIQnVloAChEOqARjzgAQEbczg8YkWJq8nSUhACH5BAkHAAAALAAAAAAYABgAAAWtICCOJGAYZZoOpKKQqDoORDMKwkgwtiwSBBYAJ2owGL5RgxBziQQMgkwoMkhNqAEDARPSaiMDFdDIiRSFQowMXE8Z6RdpYHWnEAWGPVkajPmARVZMPUkCBQkJBQINgwaFPoeJi4GVlQ2Qc3VJBQcLV0ptfAMJBwdcIl+FYjALQgimoGNWIhAQZA4HXSpLMQ8PIgkOSHxAQhERPw7ASTSFyCMMDqBTJL8tf3y2fCEAIfkECQcAAAAsAAAAABgAGAAABa8gII4k0DRlmg6kYZCoOg5EDBDEaAi2jLO3nEkgkMEIL4BLpBAkVy3hCTAQKGAznM0AFNFGBAbj2cA9jQixcGZAGgECBu/9HnTp+FGjjezJFAwFBQwKe2Z+KoCChHmNjVMqA21nKQwJEJRlbnUFCQlFXlpeCWcGBUACCwlrdw8RKGImBwktdyMQEQciB7oACwcIeA4RVwAODiIGvHQKERAjxyMIB5QlVSTLYLZ0sW8hACH5BAkHAAAALAAAAAAYABgAAAW0ICCOJNA0ZZoOpGGQrDoOBCoSxNgQsQzgMZyIlvOJdi+AS2SoyXrK4umWPM5wNiV0UDUIBNkdoepTfMkA7thIECiyRtUAGq8fm2O4jIBgMBA1eAZ6Knx+gHaJR4QwdCMKBxEJRggFDGgQEREPjjAMBQUKIwIRDhBDC2QNDDEKoEkDoiMHDigICGkJBS2dDA6TAAnAEAkCdQ8ORQcHTAkLcQQODLPMIgIJaCWxJMIkPIoAt3EhACH5BAkHAAAALAAAAAAYABgAAAWtICCOJNA0ZZoOpGGQrDoOBCoSxNgQsQzgMZyIlvOJdi+AS2SoyXrK4umWHM5wNiV0UN3xdLiqr+mENcWpM9TIbrsBkEck8oC0DQqBQGGIz+t3eXtob0ZTPgNrIwQJDgtGAgwCWSIMDg4HiiUIDAxFAAoODwxDBWINCEGdSTQkCQcoegADBaQ6MggHjwAFBZUFCm0HB0kJCUy9bAYHCCPGIwqmRq0jySMGmj6yRiEAIfkECQcAAAAsAAAAABgAGAAABbIgII4k0DRlmg6kYZCsOg4EKhLE2BCxDOAxnIiW84l2L4BLZKipBopW8XRLDkeCiAMyMvQAA+uON4JEIo+vqukkKQ6RhLHplVGN+LyKcXA4Dgx5DWwGDXx+gIKENnqNdzIDaiMECwcFRgQCCowiCAcHCZIlCgICVgSfCEMMnA0CXaU2YSQFoQAKUQMMqjoyAglcAAyBAAIMRUYLCUkFlybDeAYJryLNk6xGNCTQXY0juHghACH5BAkHAAAALAAAAAAYABgAAAWzICCOJNA0ZVoOAmkY5KCSSgSNBDE2hDyLjohClBMNij8RJHIQvZwEVOpIekRQJyJs5AMoHA+GMbE1lnm9EcPhOHRnhpwUl3AsknHDm5RN+v8qCAkHBwkIfw1xBAYNgoSGiIqMgJQifZUjBhAJYj95ewIJCQV7KYpzBAkLLQADCHOtOpY5PgNlAAykAEUsQ1wzCgWdCIdeArczBQVbDJ0NAqyeBb64nQAGArBTt8R8mLuyPyEAOwAAAAAAAAAAAA==) center no-repeat}ngx-extended-pdf-viewer .pdfPresentationMode .pdfViewer{margin-left:0;margin-right:0}ngx-extended-pdf-viewer .pdfPresentationMode .pdfViewer .page,ngx-extended-pdf-viewer .pdfPresentationMode .pdfViewer .spread{display:block}ngx-extended-pdf-viewer .pdfPresentationMode .pdfViewer .page,ngx-extended-pdf-viewer .pdfPresentationMode .pdfViewer.removePageBorders .page{margin-left:auto;margin-right:auto}ngx-extended-pdf-viewer .pdfPresentationMode:-ms-fullscreen .pdfViewer .page{margin-bottom:100%!important}ngx-extended-pdf-viewer .pdfPresentationMode:-webkit-full-screen .pdfViewer .page{margin-bottom:100%;border:0}ngx-extended-pdf-viewer .pdfPresentationMode:-moz-full-screen .pdfViewer .page{margin-bottom:100%;border:0}ngx-extended-pdf-viewer .pdfPresentationMode:fullscreen .pdfViewer .page{margin-bottom:100%;border:0}ngx-extended-pdf-viewer .html *{padding:0;margin:0}ngx-extended-pdf-viewer .html{height:100%;width:100%;font-size:10px}ngx-extended-pdf-viewer .body{height:100%;width:100%}ngx-extended-pdf-viewer .body,ngx-extended-pdf-viewer .pdf-viewer button,ngx-extended-pdf-viewer .pdf-viewer input,ngx-extended-pdf-viewer .pdf-viewer select{font:message-box;outline:0}ngx-extended-pdf-viewer select{background-color:rgba(255,255,255,.09)!important}ngx-extended-pdf-viewer .hidden,ngx-extended-pdf-viewer [hidden]{display:none!important}ngx-extended-pdf-viewer .pdfViewer.enablePermissions .textLayer>span{-webkit-user-select:none!important;-moz-user-select:none!important;-ms-user-select:none!important;user-select:none!important;cursor:not-allowed}ngx-extended-pdf-viewer #viewerContainer.pdfPresentationMode:-ms-fullscreen{top:0!important;overflow:hidden!important}ngx-extended-pdf-viewer #viewerContainer.pdfPresentationMode:-ms-fullscreen::-ms-backdrop{background-color:#000}ngx-extended-pdf-viewer #viewerContainer.pdfPresentationMode:-webkit-full-screen{top:0;border-top:2px solid transparent;background-color:#000;width:100%;height:100%;overflow:hidden;cursor:none;-webkit-user-select:none;user-select:none}ngx-extended-pdf-viewer #viewerContainer.pdfPresentationMode:-moz-full-screen{top:0;border-top:2px solid transparent;background-color:#000;width:100%;height:100%;overflow:hidden;cursor:none;-moz-user-select:none;user-select:none}ngx-extended-pdf-viewer #viewerContainer.pdfPresentationMode:-ms-fullscreen{border-top:2px solid transparent;background-color:#000;width:100%;height:100%;cursor:none;-ms-user-select:none;user-select:none}ngx-extended-pdf-viewer #viewerContainer.pdfPresentationMode:fullscreen{top:0;border-top:2px solid transparent;background-color:#000;width:100%;height:100%;overflow:hidden;cursor:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}ngx-extended-pdf-viewer .pdfPresentationMode:-webkit-full-screen a:not(.internalLink){display:none}ngx-extended-pdf-viewer .pdfPresentationMode:-moz-full-screen a:not(.internalLink){display:none}ngx-extended-pdf-viewer .pdfPresentationMode:-ms-fullscreen a:not(.internalLink){display:none}ngx-extended-pdf-viewer .pdfPresentationMode:fullscreen a:not(.internalLink){display:none}ngx-extended-pdf-viewer .pdfPresentationMode:-webkit-full-screen .textLayer>span{cursor:none}ngx-extended-pdf-viewer .pdfPresentationMode:-moz-full-screen .textLayer>span{cursor:none}ngx-extended-pdf-viewer .pdfPresentationMode:-ms-fullscreen .textLayer>span{cursor:none}ngx-extended-pdf-viewer .pdfPresentationMode:fullscreen .textLayer>span{cursor:none}ngx-extended-pdf-viewer .pdfPresentationMode.pdfPresentationModeControls .textLayer>span,ngx-extended-pdf-viewer .pdfPresentationMode.pdfPresentationModeControls>*{cursor:default}ngx-extended-pdf-viewer #outerContainer{width:100%;height:100%;position:relative;-webkit-clip-path:inset(0 0 0 0);clip-path:inset(0 0 0 0)}ngx-extended-pdf-viewer #sidebarContainer{position:absolute;top:32px;bottom:0;width:200px;visibility:hidden;z-index:2;border-top:1px solid #333;transition-duration:.2s;transition-timing-function:ease}html[dir=ltr] ngx-extended-pdf-viewer #sidebarContainer{transition-property:left;left:-200px;left:calc(0px - $sidebar-width)}html[dir=rtl] ngx-extended-pdf-viewer #sidebarContainer{transition-property:right;right:-200px;right:calc(0px - $sidebar-width)}ngx-extended-pdf-viewer .loadingInProgress #sidebarContainer{top:36px}ngx-extended-pdf-viewer #outerContainer.sidebarResizing #sidebarContainer{transition-duration:0s;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}ngx-extended-pdf-viewer #outerContainer.sidebarMoving #sidebarContainer,ngx-extended-pdf-viewer #outerContainer.sidebarOpen #sidebarContainer{visibility:visible}html[dir=ltr] ngx-extended-pdf-viewer #outerContainer.sidebarOpen #sidebarContainer{left:0}html[dir=rtl] ngx-extended-pdf-viewer #outerContainer.sidebarOpen #sidebarContainer{right:0}ngx-extended-pdf-viewer #mainContainer{position:absolute;top:0;right:0;bottom:0;left:0;min-width:320px}ngx-extended-pdf-viewer #sidebarContent{top:32px;bottom:0;overflow:auto;-webkit-overflow-scrolling:touch;position:absolute;width:100%;background-color:rgba(0,0,0,.1)}html[dir=ltr] ngx-extended-pdf-viewer #sidebarContent{left:0}html[dir=rtl] ngx-extended-pdf-viewer #sidebarContent{right:0}ngx-extended-pdf-viewer #viewerContainer{-webkit-overflow-scrolling:touch;top:32px;right:0;bottom:0;left:0;outline:0}ngx-extended-pdf-viewer #viewerContainer:not(.pdfPresentationMode){transition-duration:.2s;transition-timing-function:ease}ngx-extended-pdf-viewer #outerContainer.sidebarResizing #viewerContainer{transition-duration:0s}html[dir=ltr] ngx-extended-pdf-viewer #outerContainer.sidebarOpen #viewerContainer:not(.pdfPresentationMode){transition-property:left;left:200px}html[dir=rtl] ngx-extended-pdf-viewer #outerContainer.sidebarOpen #viewerContainer:not(.pdfPresentationMode){transition-property:right;right:200px}ngx-extended-pdf-viewer .toolbar{position:relative;left:0;right:0;z-index:7;cursor:default;border:1px solid rgba(0,0,0,.5)}ngx-extended-pdf-viewer #toolbarContainer{width:100%}ngx-extended-pdf-viewer #toolbarSidebar{width:100%;height:32px;background-color:#424242;color:#d9d9d9;border:none;padding-top:1px}ngx-extended-pdf-viewer #sidebarResizer{position:absolute;top:0;bottom:0;width:6px;z-index:4;cursor:ew-resize}html[dir=ltr] ngx-extended-pdf-viewer #sidebarResizer{right:-6px}html[dir=rtl] ngx-extended-pdf-viewer #sidebarResizer{left:-6px}ngx-extended-pdf-viewer #toolbarContainer,ngx-extended-pdf-viewer .findbar,ngx-extended-pdf-viewer .secondaryToolbar{position:relative;height:32px;background-color:#474747}ngx-extended-pdf-viewer #toolbarViewer{height:32px}ngx-extended-pdf-viewer #loadingBar{position:relative;width:100%;height:4px;background-color:#333;border-bottom:1px solid #333}ngx-extended-pdf-viewer #loadingBar .progress{position:absolute;top:0;left:0;width:0%;height:100%;background-color:#ddd;overflow:hidden;transition:width .2s}@-webkit-keyframes progressIndeterminate{0%{left:-142px}100%{left:0}}@keyframes progressIndeterminate{0%{left:-142px}100%{left:0}}ngx-extended-pdf-viewer #loadingBar .progress.indeterminate{background-color:#999;transition:none}ngx-extended-pdf-viewer #loadingBar .progress.indeterminate .glimmer{position:absolute;top:0;left:0;height:100%;width:calc(100% + 150px);background:repeating-linear-gradient(135deg,#bbb 0,#999 5px,#999 45px,#ddd 55px,#ddd 95px,#bbb 100px);-webkit-animation:950ms linear infinite progressIndeterminate;animation:950ms linear infinite progressIndeterminate}ngx-extended-pdf-viewer .findbar,ngx-extended-pdf-viewer .secondaryToolbar{top:40px;position:absolute;z-index:7;height:auto;min-width:16px;padding:0 6px;margin:4px 2px;color:#d9d9d9;font-size:12px;line-height:14px;text-align:left;cursor:default}ngx-extended-pdf-viewer .findbar{min-width:300px}ngx-extended-pdf-viewer .findbar>div{height:32px}ngx-extended-pdf-viewer .findbar.wrapContainers>div{clear:both}ngx-extended-pdf-viewer .findbar.wrapContainers>div#findbarMessageContainer{height:auto}html[dir=ltr] ngx-extended-pdf-viewer .findbar{left:34px}html[dir=rtl] ngx-extended-pdf-viewer .findbar{right:34px}ngx-extended-pdf-viewer .findbar label{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}ngx-extended-pdf-viewer #findInput{width:200px}ngx-extended-pdf-viewer #findInput::-webkit-input-placeholder{color:#bfbfbf}ngx-extended-pdf-viewer #findInput::-moz-placeholder{font-style:italic}ngx-extended-pdf-viewer #findInput:-ms-input-placeholder{font-style:italic}ngx-extended-pdf-viewer #findInput::-ms-input-placeholder{font-style:italic}ngx-extended-pdf-viewer #findInput::placeholder{font-style:italic}ngx-extended-pdf-viewer #findInput[data-status=pending]{background-repeat:no-repeat;background-position:right}html[dir=rtl] ngx-extended-pdf-viewer #findInput[data-status=pending]{background-position:left}ngx-extended-pdf-viewer .secondaryToolbar{padding:6px;height:auto;z-index:8}html[dir=ltr] ngx-extended-pdf-viewer .secondaryToolbar{right:4px}html[dir=rtl] ngx-extended-pdf-viewer .secondaryToolbar{left:4px}ngx-extended-pdf-viewer #secondaryToolbarButtonContainer{max-width:200px;max-height:400px;overflow-y:auto;-webkit-overflow-scrolling:touch;margin-bottom:-4px}ngx-extended-pdf-viewer #secondaryToolbarButtonContainer.hiddenScrollModeButtons>.scrollModeButtons,ngx-extended-pdf-viewer #secondaryToolbarButtonContainer.hiddenSpreadModeButtons>.spreadModeButtons{display:none!important}ngx-extended-pdf-viewer .doorHanger,ngx-extended-pdf-viewer .doorHangerRight{border:1px solid rgba(0,0,0,.5);border-radius:2px}ngx-extended-pdf-viewer .doorHanger:after,ngx-extended-pdf-viewer .doorHanger:before,ngx-extended-pdf-viewer .doorHangerRight:after,ngx-extended-pdf-viewer .doorHangerRight:before{bottom:100%;border:solid transparent;content:' ';height:0;width:0;position:absolute;pointer-events:none}ngx-extended-pdf-viewer .doorHanger:after,ngx-extended-pdf-viewer .doorHangerRight:after{border-bottom-color:#474747;border-width:8px}ngx-extended-pdf-viewer .doorHanger:before,ngx-extended-pdf-viewer .doorHangerRight:before{border-bottom-color:rgba(0,0,0,.5);border-width:9px}html[dir=ltr] ngx-extended-pdf-viewer .doorHanger:after,html[dir=rtl] ngx-extended-pdf-viewer .doorHangerRight:after{left:13px;margin-left:-8px}html[dir=ltr] ngx-extended-pdf-viewer .doorHanger:before,html[dir=rtl] ngx-extended-pdf-viewer .doorHangerRight:before{left:13px;margin-left:-9px}html[dir=ltr] ngx-extended-pdf-viewer .doorHangerRight:after,html[dir=rtl] ngx-extended-pdf-viewer .doorHanger:after{right:13px;margin-right:-8px}html[dir=ltr] ngx-extended-pdf-viewer .doorHangerRight:before,html[dir=rtl] ngx-extended-pdf-viewer .doorHanger:before{right:13px;margin-right:-9px}ngx-extended-pdf-viewer #findResultsCount{background-color:#d9d9d9;color:#474747;text-align:center;padding:3px 4px}ngx-extended-pdf-viewer #findMsg{font-style:italic;color:#f66}ngx-extended-pdf-viewer #findMsg:empty{display:none}ngx-extended-pdf-viewer #findInput.notFound{background-color:#f66}ngx-extended-pdf-viewer #toolbarViewerMiddle{position:absolute;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%)}html[dir=ltr] ngx-extended-pdf-viewer #toolbarViewerLeft,html[dir=rtl] ngx-extended-pdf-viewer #toolbarViewerRight{float:left;margin-left:4px}html[dir=ltr] ngx-extended-pdf-viewer #toolbarViewerRight,html[dir=rtl] ngx-extended-pdf-viewer #toolbarViewerLeft{float:right;margin-right:4px}html[dir=ltr] ngx-extended-pdf-viewer #toolbarViewerLeft>*,html[dir=ltr] ngx-extended-pdf-viewer #toolbarViewerMiddle>*,html[dir=ltr] ngx-extended-pdf-viewer #toolbarViewerRight>*,html[dir=ltr] ngx-extended-pdf-viewer .findbar *{position:relative;float:left}html[dir=rtl] ngx-extended-pdf-viewer #toolbarViewerLeft>*,html[dir=rtl] ngx-extended-pdf-viewer #toolbarViewerMiddle>*,html[dir=rtl] ngx-extended-pdf-viewer #toolbarViewerRight>*,html[dir=rtl] ngx-extended-pdf-viewer .findbar *{position:relative;float:right}ngx-extended-pdf-viewer .overlayButton,ngx-extended-pdf-viewer .secondaryToolbarButton,ngx-extended-pdf-viewer .toolbarButton{border:0;background:0 0;width:32px;height:25px}ngx-extended-pdf-viewer .toolbarButton>span{display:inline-block;width:0;height:0;overflow:hidden}ngx-extended-pdf-viewer .overlayButton[disabled],ngx-extended-pdf-viewer .secondaryToolbarButton[disabled],ngx-extended-pdf-viewer .toolbarButton[disabled]{opacity:.5}ngx-extended-pdf-viewer .dropdownToolbarButton,ngx-extended-pdf-viewer .overlayButton,ngx-extended-pdf-viewer .secondaryToolbarButton,ngx-extended-pdf-viewer .toolbarButton{min-width:16px;padding:2px 6px 0;border:1px solid transparent;border-radius:2px;color:#d9d9d9;font-size:12px;line-height:14px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}html[dir=rtl] ngx-extended-pdf-viewer .dropdownToolbarButton,html[dir=rtl] ngx-extended-pdf-viewer .overlayButton,html[dir=rtl] ngx-extended-pdf-viewer .toolbarButton{margin:3px 0 4px 2px}ngx-extended-pdf-viewer .dropdownToolbarButton,ngx-extended-pdf-viewer .overlayButton{background-color:rgba(0,0,0,.2);background-clip:padding-box;border:1px solid rgba(0,0,0,.4)}ngx-extended-pdf-viewer .secondaryToolbarButton.toggled,ngx-extended-pdf-viewer .toolbarButton.toggled{background-color:rgba(0,0,0,.2);border-color:rgba(0,0,0,.4)}ngx-extended-pdf-viewer .dropdownToolbarButton{width:140px;padding:0;overflow:hidden}html[dir=ltr] ngx-extended-pdf-viewer .dropdownToolbarButton::after{right:8px}html[dir=rtl] ngx-extended-pdf-viewer .dropdownToolbarButton::after{left:8px}ngx-extended-pdf-viewer .dropdownToolbarButton>select{width:162px;height:23px;font-size:12px;color:#d9d9d9;margin:0;padding:3px 2px 2px;border:none;background-color:rgba(255,255,255,.09)}ngx-extended-pdf-viewer .dropdownToolbarButton>select>option{background:#474747}ngx-extended-pdf-viewer #customScaleOption{display:none}html[dir=ltr] ngx-extended-pdf-viewer .toolbarButton:first-child,html[dir=rtl] ngx-extended-pdf-viewer .toolbarButton:last-child{margin-left:4px}ngx-extended-pdf-viewer .toolbarButtonSpacer{width:30px;display:inline-block;height:1px}html[dir=ltr] ngx-extended-pdf-viewer #findPrevious,html[dir=rtl] ngx-extended-pdf-viewer #findNext{margin-left:3px}html[dir=ltr] ngx-extended-pdf-viewer #findNext,html[dir=rtl] ngx-extended-pdf-viewer #findPrevious{margin-right:3px}ngx-extended-pdf-viewer .secondaryToolbarButton::before,ngx-extended-pdf-viewer .toolbarButton::before{position:absolute;display:inline-block;top:4px;left:7px}ngx-extended-pdf-viewer .toolbarButton.zoomOut{font-size:30px}ngx-extended-pdf-viewer .toolbarButton.zoomIn{font-size:24px}ngx-extended-pdf-viewer .secondaryToolbarButton.bookmark,ngx-extended-pdf-viewer .toolbarButton.bookmark{box-sizing:border-box;outline:0;padding-top:4px;text-decoration:none}ngx-extended-pdf-viewer .secondaryToolbarButton.bookmark{padding-top:5px}ngx-extended-pdf-viewer .bookmark[href='#']{opacity:.5;pointer-events:none}ngx-extended-pdf-viewer .toolbarButton.pdfSidebarNotification::after{position:absolute;display:inline-block;top:1px;content:'';background-color:#70db55;height:9px;width:9px;border-radius:50%}html[dir=ltr] ngx-extended-pdf-viewer .toolbarButton.pdfSidebarNotification::after{left:17px}html[dir=rtl] ngx-extended-pdf-viewer .toolbarButton.pdfSidebarNotification::after{right:17px}ngx-extended-pdf-viewer .secondaryToolbarButton{position:relative;margin:0 0 4px;padding:3px 0 1px;height:auto;min-height:25px;width:auto;min-width:100%;white-space:normal}html[dir=ltr] ngx-extended-pdf-viewer .secondaryToolbarButton{padding-left:24px;text-align:left}html[dir=rtl] ngx-extended-pdf-viewer .secondaryToolbarButton{padding-right:24px;text-align:right}html[dir=ltr] ngx-extended-pdf-viewer .secondaryToolbarButton.bookmark{padding-left:27px}html[dir=rtl] ngx-extended-pdf-viewer .secondaryToolbarButton.bookmark{padding-right:27px}html[dir=ltr] ngx-extended-pdf-viewer .secondaryToolbarButton>span{padding-right:4px}html[dir=rtl] ngx-extended-pdf-viewer .secondaryToolbarButton>span{padding-left:4px}ngx-extended-pdf-viewer .toolbarField{padding:3px 6px;margin:4px 0;border-radius:2px;background-color:rgba(255,255,255,.09);background-clip:padding-box;color:#d9d9d9;font-size:12px;line-height:14px;outline-style:none;border:1px solid rgba(0,0,0,.4)}ngx-extended-pdf-viewer .toolbarField[type=checkbox]{display:inline-block;margin:8px 0}ngx-extended-pdf-viewer .toolbarField.pageNumber{-moz-appearance:textfield;min-width:16px;text-align:right;width:40px}ngx-extended-pdf-viewer .toolbarField.pageNumber.visiblePageIsLoading{background-repeat:no-repeat;background-position:1px}ngx-extended-pdf-viewer .toolbarField.pageNumber::-webkit-inner-spin-button,ngx-extended-pdf-viewer .toolbarField.pageNumber::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}ngx-extended-pdf-viewer .toolbarLabel{min-width:16px;padding:3px 6px 3px 2px;margin:4px 2px 4px 0;border:1px solid transparent;border-radius:2px;color:#d9d9d9;font-size:12px;line-height:14px;text-align:left;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}ngx-extended-pdf-viewer #thumbnailView{position:absolute;width:calc(100% - 60px);top:0;bottom:0;padding:10px 30px 0;overflow:auto;-webkit-overflow-scrolling:touch}ngx-extended-pdf-viewer #thumbnailView>a:active{outline:0}ngx-extended-pdf-viewer .thumbnail{margin:0 10px 5px}html[dir=ltr] ngx-extended-pdf-viewer .thumbnail{float:left}html[dir=rtl] ngx-extended-pdf-viewer .thumbnail{float:right}ngx-extended-pdf-viewer #thumbnailView>a:last-of-type>.thumbnail{margin-bottom:10px}ngx-extended-pdf-viewer #thumbnailView>a:last-of-type>.thumbnail:not([data-loaded]){margin-bottom:9px}ngx-extended-pdf-viewer .thumbnail:not([data-loaded]){border:1px dashed rgba(255,0,0,.5);margin:-1px 9px 4px}ngx-extended-pdf-viewer .thumbnailImage{border:1px solid transparent;opacity:.8;z-index:1;background-color:#fff;background-clip:content-box}ngx-extended-pdf-viewer .thumbnailSelectionRing{border-radius:2px;padding:7px}ngx-extended-pdf-viewer .thumbnail.selected>.thumbnailSelectionRing>.thumbnailImage{opacity:1}ngx-extended-pdf-viewer .thumbnail.selected>.thumbnailSelectionRing{background-color:rgba(255,255,255,.4);background-clip:padding-box;color:#fff}ngx-extended-pdf-viewer #attachmentsView,ngx-extended-pdf-viewer #layersView,ngx-extended-pdf-viewer #outlineView{position:absolute;width:calc(100% - 8px);top:0;bottom:0;overflow:auto;-webkit-overflow-scrolling:touch;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}ngx-extended-pdf-viewer #outlineView{padding:4px 4px 0}ngx-extended-pdf-viewer #attachmentsView{padding:3px 4px 0}html[dir=ltr] ngx-extended-pdf-viewer .treeItem>.treeItems,html[dir=ltr] ngx-extended-pdf-viewer .treeWithDeepNesting>.treeItem{margin-left:20px}html[dir=rtl] ngx-extended-pdf-viewer .treeItem>.treeItems,html[dir=rtl] ngx-extended-pdf-viewer .treeWithDeepNesting>.treeItem{margin-right:20px}ngx-extended-pdf-viewer .treeItem>a{text-decoration:none;display:inline-block;min-width:95%;min-width:calc(100% - 4px);height:auto;margin-bottom:1px;border-radius:2px;color:#424242;font-size:13px;line-height:15px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;white-space:normal;cursor:pointer}html[dir=ltr] ngx-extended-pdf-viewer .treeItem>a{padding:2px 0 5px 4px}html[dir=rtl] ngx-extended-pdf-viewer .treeItem>a{padding:2px 4px 5px 0}ngx-extended-pdf-viewer #layersView .treeItem>a>*{cursor:pointer}html[dir=ltr] ngx-extended-pdf-viewer #layersView .treeItem>a>label{padding-left:4px}html[dir=rtl] ngx-extended-pdf-viewer #layersView .treesItem>a>label{padding-right:4px}ngx-extended-pdf-viewer .treeItemToggler{position:relative;height:0;width:0}ngx-extended-pdf-viewer .treeItemToggler::before{content:url(assets/images/treeitem-expanded.svg);display:inline-block;position:absolute;max-width:16px}ngx-extended-pdf-viewer .treeItemToggler.treeItemsHidden::before{content:url(assets/images/treeitem-collapsed.svg);max-width:16px}html[dir=rtl] ngx-extended-pdf-viewer .treeItemToggler.treeItemsHidden::before{-webkit-transform:scaleX(-1);transform:scaleX(-1)}ngx-extended-pdf-viewer .treeItemToggler.treeItemsHidden~.treeItems{display:none}html[dir=ltr] ngx-extended-pdf-viewer .treeItemToggler{float:left}html[dir=rtl] ngx-extended-pdf-viewer .treeItemToggler{float:right}html[dir=ltr] ngx-extended-pdf-viewer .treeItemToggler::before{right:4px}html[dir=rtl] ngx-extended-pdf-viewer .treeItemToggler::before{left:4px}ngx-extended-pdf-viewer .treeItem>a:hover,ngx-extended-pdf-viewer .treeItemToggler:hover,ngx-extended-pdf-viewer .treeItemToggler:hover+a,ngx-extended-pdf-viewer .treeItemToggler:hover~.treeItems{background-clip:padding-box;border-radius:2px}ngx-extended-pdf-viewer .treeItem.selected{background-clip:padding-box}ngx-extended-pdf-viewer ::-moz-selection{background:rgba(0,0,255,.3)}ngx-extended-pdf-viewer ::selection{background:rgba(0,0,255,.3)}ngx-extended-pdf-viewer #errorWrapper{background:#f66;color:#fff;left:0;position:absolute;right:0;z-index:5;padding:3px;font-size:.8em}ngx-extended-pdf-viewer .loadingInProgress #errorWrapper{top:37px}ngx-extended-pdf-viewer #errorMessageLeft{float:left}ngx-extended-pdf-viewer #errorMessageRight{float:right}ngx-extended-pdf-viewer #errorMoreInfo{background-color:#fff;color:#000;padding:3px;margin:3px;width:98%}ngx-extended-pdf-viewer .overlayButton{width:auto;margin:3px 4px 2px!important;padding:2px 6px 3px}ngx-extended-pdf-viewer #overlayContainer{display:table;position:absolute;width:100%;height:100%;background-color:rgba(0,0,0,.2);z-index:9}ngx-extended-pdf-viewer #overlayContainer>*{overflow:auto;-webkit-overflow-scrolling:touch}ngx-extended-pdf-viewer #overlayContainer>.container{display:table-cell;vertical-align:middle;text-align:center}ngx-extended-pdf-viewer #overlayContainer>.container .dialog{display:inline-block;padding:15px;border-spacing:4px;color:#d9d9d9;font-size:12px;line-height:14px;background-color:#474747;border-radius:4px}ngx-extended-pdf-viewer .dialog>.row{display:table-row}ngx-extended-pdf-viewer .dialog>.row>*{display:table-cell}ngx-extended-pdf-viewer .dialog .toolbarField{margin:5px 0}ngx-extended-pdf-viewer .dialog .buttonRow{text-align:center;vertical-align:middle}ngx-extended-pdf-viewer .dialog :link{color:#fff}ngx-extended-pdf-viewer #passwordOverlay>.dialog{text-align:center}ngx-extended-pdf-viewer #passwordOverlay .toolbarField{width:200px}ngx-extended-pdf-viewer #documentPropertiesOverlay>.dialog{text-align:left}ngx-extended-pdf-viewer #documentPropertiesOverlay .row>*{min-width:100px}html[dir=ltr] ngx-extended-pdf-viewer #documentPropertiesOverlay .row>*{text-align:left}html[dir=rtl] ngx-extended-pdf-viewer #documentPropertiesOverlay .row>*{text-align:right}.fileInput{background:#fff;color:#000;margin-top:5px;visibility:hidden;position:fixed;right:0;top:0}ngx-extended-pdf-viewer #documentPropertiesOverlay .row>span{width:125px;word-wrap:break-word}ngx-extended-pdf-viewer #documentPropertiesOverlay .row>p{max-width:225px;word-wrap:break-word}ngx-extended-pdf-viewer #documentPropertiesOverlay .buttonRow{margin-top:10px}ngx-extended-pdf-viewer .clearBoth{clear:both}ngx-extended-pdf-viewer .grab-to-pan-grab{cursor:url(data:image/cur;base64,AAACAAEAICAAAA8ADwAwAQAAFgAAACgAAAAgAAAAQAAAAAEAAQAAAAAAgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAH4AAAB+AAAA/gAAAf8AAAP/AAAD/4AAB/+AAA7/gAAM/8AAAP7AAAG2wAABtkAAAzYAAAM2AAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA//////////////////////////////////////////////////AP///wD///4A///8AH//+AB///gAP//wAD//4AA//+AAH//yAB///AAf//wAH//4AL//+AD///yB////z///////////////////////////////////////8=),move!important;cursor:-webkit-grab!important;cursor:grab!important}ngx-extended-pdf-viewer .grab-to-pan-grab :not(input):not(textarea):not(button):not(select):not(:link){cursor:inherit!important}ngx-extended-pdf-viewer .grab-to-pan-grab:active,ngx-extended-pdf-viewer .grab-to-pan-grabbing{cursor:url(data:image/cur;base64,AAACAAEAICAAAA8ADwAwAQAAFgAAACgAAAAgAAAAQAAAAAEAAQAAAAAAgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAH4AAAB+AAAA/gAAAf8AAAP/AAAD/4AAAP+AAAD/gAAB/oAAAbYAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA//////////////////////////////////////////////////AP///wD///4A///8AH//+AB///gAP//8AD///gA///wAP//8AH///kn/////////////////////////////////////////////////////////////////8=),move!important;cursor:-webkit-grabbing!important;cursor:grabbing!important;position:fixed;background:rgba(0,0,0,0);display:block;top:0;left:0;right:0;bottom:0;overflow:hidden;z-index:10}@page{margin:0}#printContainer{display:none}@media screen and (-webkit-min-device-pixel-ratio:1.1),screen and (min-resolution:1.1dppx){ngx-extended-pdf-viewer .toolbarButton::before{-webkit-transform:scale(.5);transform:scale(.5);top:-5px}ngx-extended-pdf-viewer .secondaryToolbarButton::before{-webkit-transform:scale(.5);transform:scale(.5);top:-4px}}html[dir=ltr] ngx-extended-pdf-viewer .toolbarButton::before,html[dir=rtl] ngx-extended-pdf-viewer .toolbarButton::before{left:-1px}html[dir=ltr] ngx-extended-pdf-viewer .secondaryToolbarButton::before{left:-2px}html[dir=rtl] ngx-extended-pdf-viewer .secondaryToolbarButton::before{right:4px;left:186px}ngx-extended-pdf-viewer #findInput[data-status=pending],ngx-extended-pdf-viewer .toolbarField.pageNumber.visiblePageIsLoading{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAiCAYAAAA+stv/AAAACGFjVEwAAAAMAAAAAEy9LREAAAAaZmNUTAAAAAAAAAAgAAAAIgAAAAAAAAAAAGQD6AAA26DBZgAABPNJREFUeNq1l21MW1UYx2tgI+pghBHiNJCYKLiERMUvRvbB0S5ZygrI5toxKAItSwDHRBoIzk1SFT44oy4xfjEaY1PMRKNNyMInPxjfFjEiZsFNwpu1oy4LMFZ6uece/085F2/PiuBtPMkv5/ac8zzP/7yfWswmznktuAJ+A89ubWE+UDbYnaJ8AoS5xq8jv5aififYkV5wVW3SOP8BjsaANzmANqdpJEAjAVEp+CMqV73IW8C+dHr/FbgMfhIiHjTUzYI/AAn4y1C+CzSDVsbYSRWdMC0AxiE4+h78CH6Gw/cNgWY2EWDVgxO3bi3WmxYQCoV6MdTfAn0UfgFPJwnQ/hGA/D4KTugiurq6jpgWkJmZWbG0tPQp1sF3mOvEKIAQ1cE5iZnXuHZd07RrQkC1UcD4+DgNf8V25/sZMAQ+AA5wF4ofOHvm7El8fw0BicVIUPtgMNgHEVfA5PDw8DkxZS16zym32Wy15IPqVldXH0aZEzwH9snB7wFBBBlG/jn4kjP2LvLHUF0+OTl5Ad/fgMvhSPg9YXYQOAQ2MWVH9d4HAoETKNqP7wJQbRQGPGCHUcC9nLMAjQCG+yKG9DPwBQ33ysrKS1lZWY7BwcH2gYGBjoyMDLswKxAibOKbkr2ysrLWbrcfQbvD8/N/HjCuh41cTWzRnUnTPTQ0dBpD+BEaBFH5CbgoRiOE3tQaelsKNkuleru2tran9KBGYori7enpOUYxkwSASqvV6rx69ffX0fBjxjeEDIMy1OcJtkp5hLwjiEsjl9zFxcU1FEsWQKkI2IGju7u7aWFh4S1VZR+OjY35s7Oz95jYRHtoHSixmPdX7AaaFjE6dhErZboblIHDwGEgz4SAPMkH+XyCYsg74FHG+WvI3+aMvYOcuLB6+/b5/v7+JjGvZlNpXV1d7c2bS83SLiDqQSEJeAW8gcrzlAPk7E3khN+SZqJAxsCyCEt8LX4OH4MEo9zAWnzt5XQFqIrilgPrKIrSYOnr63MtLy+TiFeBnzPuR2P/4vLimV5frzNdAY2NjVXRaNQjB49EIh63210tn2gytjTjb8t/gdzI5TrhnJqa6lhbYy9C7cE05r+c7oeJiYlGsQ3l4AWywW5QDboBBX8BdIL7TQRPPohYIreCXZsZPA5Ogy5D4OdBO9j7XwXgDtkrvw0opxGJx+N33IZZFJwxEZjxU8g7YNQeCAQbcnJyEkcrsa2eA7KhkzD1DpAuI/qhKIyCgvVeY9484j53TE9PV6w74uSo/N/mXA8yMzNjJVvyQQ+TpO2nKl75xZyJU+/4yspyWzgcbu3s7HTqx6fH43mSXsQJ4/WeNItghaBeUJgokx4kZKsf66fa24/Nzc214IXlxdZPeRvapVW6H+TKzyw4qUtxwtVT2ezs7HH6rY+WqvIa8kG+JN/2zW7DQ+CA8RklLyKHw1FDdRuiRDmVUR27c84fojrhs0LEKNrms5y7jL0fHR1tEL2xGF84hDApHxkZcUuiXRazCWd1sx4opsS8JSUl1frVLB+t+hVMbWIxxauXq/BhWoDf76+BCOpJq8/nc4r73KKPgHEUDGZlvl6fkzEFq131kg9LGulQbm5uVX5+fhUtHONj4obhglmIRFqkR42dbMhWzLnpVAQqCXnhuFyuo9HoDU84HPHQd2o78fxKM2USW9xytk3t/rck/y8wmf4Gx4B9Xz6i1hAAAAAaZmNUTAAAAAEAAAAgAAAAIgAAAAAAAAAAAGQD6AAAQNMrsgAABQ5mZEFUAAAAAnjapZdtTFtVGMdrwKlkIYiETA37sGyQJXxiX1T2BVbN7FZANFARCi0tMDBF2BgGNcvEzC06EBMSEogi2Czz7ZPiBvFlohLFREKqET8g7y02A0YkLZd77/H/lHPN4dIJ9J7k13P6nPu8nOecnufWFGtjjJnBTfAVeHpHBQOOEsB+vVxV1S8g/5GpbFRV2S39/MrKyoOYTzTkXJbl0zDyIbgOntkamPrdZgDqKPpfdUHXqUz9C/0UeMnI6ruBF3zEg3hEmLtFAQAxAJIfAn+CWbCATE3FHIAkSe/ASD+4Bj4GFwRH34IfNgNQxwR5H5iG43n0fvS+mAPo7u4+w5jyAfDyDHwGjnFH31AAdAbQj3FZDpjEtkRWj7nF4eHhKzEHEB8fn7u4uHhVYUofU9g1rOYTGH6X5jY2Nj7H+Hvs9SjOyjAP4Eu+73NwHgiHw7+Qjd3u93HQqijsVfSPg3sgfrS6utqO8XugH0FcV3Ee6Pmurs56BHFzQ5K+7u3tPU8yrPwPPDeDQP3oFzs6OhrJBs0hmCOQFYMKcFTv/D7wOngTXAFvM0U5h/4wprNHRn56BeP3gXdiYuIiV3sSWDlmEiBbfXzvA36//1OIaFGpIB9UKYpSTT1wgXvFAO7H5MVIBhi7BC5j39/C96vLy8sVcXFx1oaGBkdjY6MTYwtXS+VBmPnYRHOdnV3nenp6zickJOTNzflzuEPunPey7MZ435btbm9vr1hfX7/AlEgm3gCXtGy0tbU9Jaw2E9ytZWrP1dbWPqE5FQlJkru5ubmIfG4JAJzKysoqHBn52UM/N7AZiKJcDjN2BPPJnJ1aMgHdA3rnNwZu2NPT0wvIlz4AageBBVhLyspsk5OTZ3HIXhsaGnoxMTERRvfcHvJ6vS9IoZD7t/Fxh8VieZZnx8J9RW0PgCxwGlgFYgkgWbTBbR6L+BAbC4cP8RQ1IN2N6Imz/9y5U19TU1PE9zXWlllSUlK4vLzqFA8ipxSkmfBRCTwC9Ywp9dRDocpksJEj0bE+CLrvKYC6aIRCktNoALIk2UXHIvBdZnI4HPlLS0skOIMtiIBxTSAYcNOc0QDKy8vzgsGgS+88EAi47HZ7vv5G02M26H9X9lP1D9FPxuf73Y4iQ9uTbWD/s8mGz+crJ5tRnKfqFfaDE6h+lCaRA3t2rr+IFADb5COqwvo6OyozuZIrGA5gbW3tYdLVn37KCK78bdVwH3BvKxygH7cZ3YQUBLGrlQPSoZsw+i9AV4yoNEoShMJD42PjDrPZXEj7NTU1lbtpiJGh7P/bc01/enr6BOmSjXFcxaJtSZbc5HNLMWppaSlaXV11z8/POz0eT5F2fbpcrsf+y87mSpzcWRoo5aRFZEivuGLS1a51T11d0ezsbCX5gK8o1ZAXIoHjIEl7mdCAkZIoN1wpyWZmZp6n71q2ZJkVkA2ypbNtuVs1PAlyxNco/bmwWq0FPADIAZeTjOaU7Xt+mOa4zVzuA7520bACm7j6wcHBMr4ak/iGQ3CV7IGBAbsuaJuR/wVOzVFICrkzMjLytdJMMhGtBNMzqCFuTS5LBupJa2trAYKglVQ1NTUV83pu0jIgZkFQy2p6ualYUSScdtlNNkwG2smkpKS8lJSUPDo44svEbaHA/B0IVOpeaiykQ7pkw0gAB8EpQn9wbDbbc8HgbdfCQsBF4+h6/PXLYIsndqhy5j3oGW9R/xfE2P4FtUR7pWscH34AAAAaZmNUTAAAAAMAAAAgAAAAIgAAAAAAAAAAAGQD6AAArUX4WwAABPlmZEFUAAAABHjatZddTJtVGMdrwOGSgQQJmUG4UnAJ8WJeaFJiFGqydHaQKR+r0LJ+YBDopkvVQEwWUYazi8qFSzDqnKJLxsX0oklJdRfLdGNMXFe98YaP0b6jWbo1YW1f3g//zzyveXtsBd/Gk/xyTs45z/95zkfP89ZktKiq+hT4FHwBmje3MO7oAbCd75dl+ST6v1UVdQbtr/PYVYAdRTnf2NgwQ2QcHAfPcg5Oy/cCUGbQPseN9SiqchH1z8BdzOrfBsfAByyIat3Yl+AbMAO+0/XXgfPYmcuqqlwFlwwHcPduxg+x98D74ISsyv06R6cKBBAAPymKegW7s6Aoyo+GAxgfH+9VVXlMdwwfgsd1AUzTHUD9ve5iXoDTy6ivYuxaKBQ6ajiA0tLSlsXFRT/O+l0ITuCynUD9Bo2l0+mTFADOeiabzZ5hAXwOLoIrYGF9fT1EGls97yfAq5IkeVA3gfvQXdvR0dGF9lF2FMcRRIDmj42NeRHEZ+D05OTkEPVh5T9gziXUv6COTExMDJMGaQEXmAd/gMO88/vJObb7EA2C10EPqMWwORgMDaD9Djg2Pz8/zMyeBzaGhTpWVlY+UhVavXJtaWnpFLqaYQOUMOoVsIrxONXgQX0A2ygAMITt9mGVFMRr4IggJGwlJSU2p9N5oK+vz462lZnVsCAsrG2isUAgMIwdOVxWVmbLZDKfQGMRl/EGdiWGtoB6Ddy8o96pyjnu0dHRroyYGYDzIUwcBj62G0cw9oxutU2gUGnS5gWDQQccLcP+BogrqnoT9RruTHxubu5j8pkTANjb0NDQHg6HnWw3Blkgh8AjGK9ibFaqCNi0sq0WyDFI3E7eDmMXXeSLD4BKPbACm9VqffH69d9c2MKBs2fOOpjofyrl5eUPxeJx+onGspnswtTU1JukzXzUF7LbDnaDF4BNw0gAZMNpkOaTzAdK7tPZA/r1pJJJl91u38/O1WhpIo1kMuUiTdyvVzR95rPOxBpskNVAm2QqspCG3jEfhCktpp1aB086LfYWG4Akig7esYYoQh+/7323EgkPPyisCW4aKzYA0kjk0xcEj8PhaONfNB5Lkf63pF/DT6KfYTT6uwN5wY1ozUWcv5k0otGokzTzOK/hDXaAVuR9/j7sNOB8Z46GDKBd8DMtm1V3SarkZgZFB4BU/DDZ8refdgTpexcf7Tbg5SfL4Kvp6ZcrKiqqKAhiSysHZDMN2/y/AMlLPnPSsSiiUzcp8mvkoMVi2U/nhY+Slr+EVBIy/9uZa/ZIx61kSxqRSOSgXluURC/5zElGIyMjnalUyru6uury+Xyd2vPp8Xie1naHPVAu7gUl6u71YXv1KyZb7Vn3DQ524nvBTT7IV75saOVuaTOohFCbPnqI2PkXTnsxl5eXD2jzaLckSW0nDdLitK2FsuEe8ByopQ5kw8f4e2Gz2UjU9HdQrJ/6aEz+55k/SmNMs4X5gK8tFKygW7/62dnZXrYakz53EMzETB8iXNDdJqMFb7VLc4Sc4W1sbGzTUjP/U9VSMM1BDvFq/RI0jPqnL992BEEr6ff7/V0sn5u0HdDvgs5st/8tf5csi7jtkpc0TEWUPZWVlfuqq6spKVn1HxP6BLYmCG7uo8ZKNmTLztxwqQd7Cf7idHd3v5RI3PLEYoKH2gXsrKxdVCklNslyloJ2/1vh/xcYLH8CCfCBoXIWl6IAAAAaZmNUTAAAAAUAAAAgAAAAIgAAAAAAAAAAAGQD6AAAQI+KIQAABP9mZEFUAAAABnjatZdtTFtVGMdrQIkvMIKEYJbtk4IYjAl+mWFfxmpc7nZZA5PVMqhAO5RqdSQNhTnUodEYjcm+mcWpwQpMnAkfCGExIYs6jVtGSlFjDPIuLyME0qZwc8+9/h937nZ7bKXp1ZP8ck/Py/P8z3Ofe86pLdOi6/qjoBO8Bh7fabwVR3eDnCTtAfAWeJcx9maS/vvBfZacb29vl8NIG3gZPJHogL3B2C0B4H3B+TPgU9ALjlpZvQe8BPxcxC5T3+ughwv4wNReBM4jKiGIHAChjAVEo9FGGPNx568A2eSoO4UAP/gMAvrw/FJV1QsZC2hvb6+FkReBjxs+BfaYBJzV2R0BeD4GLoDPwYCuaZcGBgdPWUmDqomJiWZGecCYEYV66tjc3AySAIoAIvUOF3CGVg++0DV9cG1t7ePs7OyqdN93GXheVXUnng/z5t12u70Gv1+AAB/C6kfi+amjra2tfmNj48zGxvrZzs7OJmpD/0eUeJqmXdR0/euOjg4v2UDbXYDsXALfAHeyT60FnLyNqjooodBd2dsbqqdXwZCQly+PuPi0p4HMsVPD5ORkJwTSu/8K9ffQtF9RlAr8/gSCvkVUrqL+I/gB5JoF3AO8hnOspNWoz8//eSArK+uILEu1sizXYrjEpxVxEXZet2GcFAwGPd3d3a05OTlyPBanPBlDLnyHqJDTn8B1zi5zELKDwdPPbm3FyOk/8Pl8T5lWWw5SlXJjXF9f3zE4vaLp2vd81dfADbRdvzI29jb5TBAADpeUlDhGRkYbRAFRXS9GfwFnp1JAYN4+cJVWDac38BxfWV656HK5GsmXKIDKXh5eWZKk2vFwuCkeV7yhUKhecJxWyc3NfXBqauo8wn8tFo2Nnjv34as8OhL3lbTcCyrAESAbZCKA5gg2yOaT5EP8AvaAE2LYN9fXmxGuGv5eMy3l/f39Qca0MGxO41XM4EnMgglQY+POeebzJ69T339wmkY0TZ+H8wXUzSyCX2xxJe4mZ8lADjRYFqDpv8HWMnJhmZ4a1XXt7ydE/Wpzu93Va6urHtH50spSC/VZFTA0NHRaY9ofsHnTAKJuItK/o69L3NFE7Bb9p2W/SBxEn2Ek8nMjjlLanistvP9KshGJRNxkM4nzInHCA+Ag05mYD8UZOC9OsMEAbJOPFNcvvUzVVeNAsiwgFos9RHPF84UigqteGY3Z8TBioBc7YV5eXgGJINJaOaA5tIua7d1B9ZLPhONYUdBoGhQeDzfRXYDe1/T0dNUtQ3rrv+UE9RnzZ2ZmDtJcshHGtm62raiKl3wmHEZdXV11uOV4FxYWmv1+f52xfXo8nn1GdPgG1SzsoIBf0xBe84pprrGt+32+urm5uRbyQb6SnYaSkKX7QT5dq83qYcTFBZxgwo45Ozv7HP02ooXblYNskC3BtpTqNDwEDoDd1LC1tfWImBe4lDio77Yo3k5t1MeEd26+3oEq7gO+0ih0PzSvfnR0tIGvxmY+Owg+pXJ4eLhREO20ZVpwn2s2HOHM8JaWlh41jmbxUzWOYBpD9wijXYWNjAX09PQ4IIJWcjIQCBzn57nNiIA5CqZpFYFg4DhjCrJd9ZINm4VyKD8/v7qwsLCaEsd8mTAfYCtLSy3CpUaiOTSXbFgRsBccJsTEcTqdx1ZX1zyLi0seqqeYJ/G6pZJN7HDK2VPO+9+K+L8gw/IXI+58OxdsgRwAAAAaZmNUTAAAAAcAAAAgAAAAIgAAAAAAAAAAAGQD6AAArRlZyAAABTdmZEFUAAAACHjatZdrSFxHFMcnZJM+UGtTkUKohT60AT+lUFr0i7oN5SZrJOZhfUb3oVW6pYalYgvRGkTStBQr0tDSB9ZU2wSkglihFNvtE2milX4olPpMVt2NjbHsunvvnf5P9o6swz7ILj3w84z3zMw5c+65M7MsWeGc54B6YOWBwGOAJUPiTpzvAXsB24HK66BbuMad0A7AJO4F9wAWj7hGcABYgQ08JdleCgegUQCvSrZnONc6oN8EhakEcBo4DKwgLcLWBFqAHECmpmlvIDPnoHvw/7mkA7i1uVltOBeUCBscNIFoAZwAnZrGuxHA+a2trbOAxYLFM7a2vlJOjiUeBkwLZ6CZagC0AnL+KJyeBbTqHjy70NfXZwMsFiyeEVI8MzNTr3GtkWsgHMBRwHw+n40CgM3p9XoJCqABdIJucH55ebnTZDIVAxYL0RAFd1pVeQX0E4BB9pvN5mPkWAQAuxWwioqK42s3bzZ6vSvNVqu1AjCsvB19ukAPeNtms1XTHGjv4jxUBP0O+JBz1QIYQX/Ep2bdkWpVLYPOxgQFAwMDVeL56OjoccAgzwOLgRkwt/snG9JOq3/L7Xa78KgwEAjkca5RVj6FbRAMof05uD+yCPcCu3CiiXSDpaUbRbt37z6iWJRyRVHKMakCSLKNIMxGm6GfYrfbq5qbm2vRttz+5zbN8RGyN4CivIT2MNf5ZWgibTsAiKmt7fUTgcC/d5zKtLS0PBex2nwWW/JFP9SQgoV8ghr5jFasc/4l9BVV1698NTLyGvmMHGgCh3Nzc8vGxydq5AA2Ufmw7zOIK6IfxuWDQZ3rX5BjzvWRubmF9ywWSyX5kgMgyQEKsFCqr6H6/f6gfXBwsEo4vhtJT09/aHp6upvr+uVb6+sfd3R0NBnZUQxfUeU+cBAcARZBMgHQGGkOmvNp8iGfao+AajntG+vrDZWVlcfEO09S8i9e/MAZCqljmPM78D1wgx/AODjEyLmo/G1ttA0bS5GvdZ3/DE38gvav0GF0/RvmD/rryFk0UAM1gKUCnExirt+gr5LWOTTQ9Tt8y+rq6kp9a2s22bln1WMlG2CpMDw8fCYUCtGKZ8PopH8PBYM/Dg0Ntco7moyZpSyJ58+WO9FnODv7R62qqrQ9FwCWBLvA++Avv98/2d/f3xrFebb8RaSBEuxeUY/gu+QQWAE3wDLX+SL0JfB41AvJ1hY/oHKsWDhNPQAF+MAa3vsK18OBgL/By4AlPIw0MICdMCMjY58RRMJARD8a4/F4RowgvGAVeMIZ0ZegH4wMYE8wqG4HQMxcm6mnuwC9r7m5ueJwYLwxQU0UiPHz8/MlNLa3t/cMbldXRTZ0BIJPkTLxwI7TsL29/eTGxoYdt5gGp9N5UmyfuFQ8K7JjbFANIHIHJajNOIo2MoM0Vmzrk5OTF/A5/olvf2lqaurdaKehIlVpIcg0rmAOweLiYiVg5FiTdsyFhYUXRT/KlqryMpoDFEpzK7FOwxdAEdgPGG4zT8p1geO0DDDxPGLbZmTTpAtN5PUOFJMPw1diMe6HDsHExESNsRoWeXYYMEjB2NhYrRR0RdK/C4LBYINwhDPDnpeXd1QczfRMgpGN+tA9QjxXMQdgsWDxjF1dXWUIglbicLlcp4zznIkMSFlgBOSgq811StOCjqCq2mkOwGLB4hrxvjIzM0uzsrJKqXAiLxORB9iqx2MFjDD6KDSGxtIcLAXJAYcJqXDCvwvWfLbr1z02agMmEOOk61fSYiISnHLmmOP+N5F/FyQp/wHjxqv8BBis8gAAABpmY1RMAAAACQAAACAAAAAiAAAAAAAAAAAAZAPoAABAamiUAAAFIWZkQVQAAAAKeAG1l2tMHFUUx6+hVE14WQkxVPGLQhvhCxqj0BgLa2KnLIXyECkIy77agpg0wSAIbQHF+EExAV8RbIJ8kfCJEAmQxkdVRNc2pJHEL2JZ6LobQktWdllm5vq/5Yysk32ku/Ekv5w7c+aec+beO/fcYbEK5/wRUCegNosFakQkEezX35dluR7aJhBtwIKhPonxJnAYmIEFHNLZbIqi2IUmWBCHZC5boQVPxJNAY1AAM0gKTkAHI5JAE7CDMxyJABYOFsl42+ut0wUpjp6AeAbXCj8Nfdbr9ZoACweLZDx37rWKEIEeCpcA2dBW7rw9pqilo6OjGrBwsEhGSNHi4qJJEQ735vsEYB7PukUL7na7zYCRDfd2335packmfIDoQguuUZZ5DfRjgEEOGgyGk8KplgDsZsBqamoqPR6Pxe12mUUbiNVvpgTOgJZjx0oqhQ/ynwfOgjbwtH4RJgLqTMhyGXQG+haOjo6e0u5PTk5WAgZ5ARgJA2DCRnPfPDEx0YhbR7a2tg4isQbc64CtC/o8cW9wAvuBFdj0n5fTefNoQkJCiWSUKiRJqoBTCQjJoCQM1BYiGY3GivLy8ir0MbpcrhIEbYefTvjshr6A616MZi/a9/2bAGRfe3tnld//952gepqbm58NettcEE5ytec6OzufQ9A30P9NcF7hvAe6b3tn+62hoSGriMk0oYvj2dnZZdPTM/X6BLxY3bAfICILPefz+R5F3y4Evgj60H7b4bj6ekFBQaWIpU9ASBaQgFEM9TWsfp8vYB0bGztFTu9KkpOTH5ydnX11Z2enz3nD2WW32+todCSKFVLuB/mgBBg1YklA9NH5KAFPUoyQVc0WzObGRlNtbe1JmtdYJbe7+6LJ7w+8B58fYU18Ai34FLwPnmIUnFY+aWqTjcXJAHyOQI9gQ/scWuMSGGS+gK9BBAsF1kA9YPGgyDLeVhnjCuB8TAHiWmjsDx+zhoaG0nXsaPrgLuxwwgZYPAwODtq2fb4v4HNcoKqq0F/iK7k0MDBg1e9oegwgXonqP0P/kPgMr1//7RXa2wsBi4F7QBeYvr1xe7Snp+d0iOAZ+i8iCRRjsYQuwXcFElfVeegr4BtwGbwDHg55Itre5odlTtUMxJsANqDnoX8FC5yrP3KVXwHf4noWvAxY1GKkgFHshCkpKQcoCRB12IsFmZmZ6cvLyyNoXwW/gJ/ADzQiX4OU/5TjQECmBABYvLZoEmcBMV9wVLSbGLdHWROfgVWw7PP7PhR9+/v7W3C6+gr3HOBnMK9y9Tua7r1qKI5Om5ub1tXV1abW1tZqbfu0WCzPaKNDG1QTCPdfsIZhdmHunWj/MT4+XiN8iNI8NTV1IRAIXJZV9fu5ubmeUNVQ0q3SIyBNO2ZprKys1AImAiu6HRPzvgD9FyVyA3o2NTX1AeFL51sKVw1fBEe1Y5Tf739cvy5w4CgDe4dSug/Y8PBwG4bXg0XnwrUT/AlMgJHPIoqRBaILnQ9tGjMzM/X0Niy4dhAMUnjr1q2ZvVFQV6AXYv4xwZw1aYFQM6w5OTknqMyGPJYLmwmC7XZN3R2FVSTxO2DhYJGMvb29ZUhCvKWtra3tJarnTBsB3SgwASR/fn7+A0zDTZXzFYfD8S5g4WARjZivtLS00vT09FK0peDDRHABc7tcZsAE9IyUn59fnZeXV0VzHrNkgeMC3cKh/4J1y9qayyLagBHB/SRqxyX7iEhVzhC53/8j+v+CmOQfnaCvAsiMZ2EAAAAaZmNUTAAAAAsAAAAgAAAAIgAAAAAAAAAAAGQD6AAArfy7fQAABPFmZEFUAAAADHjatVdtTJtVFK5hM8EQQIbEhMxfDmgC/th+TGV/BjVZXlbKh9DKYB2lLV1JmNaQVRiEjMyPv8TE6JQZK1KRf8RkYUkzg84laELI5pIZFQPESm2WQgld+374nHLf7eVa7PZWT/Lk3Jzbc85zzz3vvbcGvaIoykGgk+Fgdg/9ifYDT/J2URS7YHcTaMzPkw/55prcCPQATqCKm3NLktSrkuDmqkRFdDFfYy4EzqgJWLACLQEtNPYCwKESRHW6dROIxeOdXKL6RyBQryYnxOOxTt0EfL5zrXwi4Nm9CNCc1kYEfD5fqyEHqVtaWuqWFOz1w/220EQkEnWqidbX13sYAYuWAPlSjMdpuDOiqNign2fmcpPJ1ELBVAKYTyez2WyvRiIR5/p6uIfG7Mvo0TYn+VIMmkskEodgs7K+Mmb61NLODyCKTdBlmK4NBAKnVPvs7CwlI3kFMDOYyEBz6u8mJydPwXSMYgAWDTG1kvv5b9ZFE/zntbr6x/G8vLyTglloFQSB9lNgbmWMhImNSYSGhoYW+h35kC8X0wOcxfgsf7bs8/uH2hKJrfSPefT19b2kWW01sJdUq7/zer0vaxbSKyExtDeRTHpHR0dtlHMXAaChoqKi6erVuS6eQHyn80sYskkJQfNFeCQkhu4LXQs5jEZjM+XiCZA8x8prphIuooO3t5MutpcI+thyYGpqqiuZSHjv3rnjbm5ubmPVEViujJIPHAZOAmYVOgmUcDEo5hHKkfFW48u+ce+eo6Ojo4Xtq16p9ng87bFY/A3EPA/4gbcYzgEVBpacdSnTbExz/8Ft+rokKRegL+BAG4ZWMQK8adhObtspWSagB7pyJSClJFr1RSzqImk0JLSU1qlU6rzBbrc3RnGi8cnDOOFoLlcCw8PDHZubm2OI+S7wDsPbsVhs1O/3v8afaDxMQI6SPX4Z/yP6DG/d+uk0O9trde79E4ADeD8cDl/CYWbPkLyMdyoA6tEs/7iCdRB4AQgAV4CPgQ8BL/BMRof79xUjnlGaCylnAkeAaeAL4DN8XZ9CfwL9AZoPFYdku4wkIICTsLCwMH20Eh6h7C8CR8vLyw/gPfAexl8hThB6koiwilwGntp1HSeTomvXY2JxqZvd5+bl5eW6HWJK77/1BOvw74HrW1tbI+Q7MDDgjEajH8H2JVUDZD7HAolE/q7LaHBwsH1jY8O1trbm6O/vb1ePT6fTSStyaR4lDpasXZHln6FvA007NvkHWVYWYP8OttDE5QkLxcDVbMabwhePx69goYHp6WlfpttQ4Lr0GFDMP7NWVlY6yAFJfpUV+U/YVoFF9ur5GuMfgZuKrMxjtRNFRUVPUywutrDXbXgCOK59RvF9YTab2WqVv4AwiKxB/0a28fHxflmWF1GJBdhuAN+o1WEx6ygHy5Vd2PvQrWJubq6LVsMqkCYgEwFZWWYutXigBh9WQf4WesagV5LJpENdOe4MV2VlpUW9mmGLEAG2BSqBEqvVehqkFrA91AtoSPmabgJjY2NNIEHld6Obren7nAmSRIA0AejfNW6HQ6HQJQUkYL8xPz8/ZMhBThQXFzeWlpY2ssbJf0BAkn6R5Z0K4GBZ4h41Qk1NTduhqqpWtue6hZqlgcA3zszMzAgqczeVkm4Hg8GhPfwENs5J9hGy3HKmLH7/g/D/C3TK3/RJfVWiL971AAAAGmZjVEwAAAANAAAAIAAAACIAAAAAAAAAAABkA+gAAEA2yQcAAATpZmRBVAAAAA542rWXW0xcRRjH14AaEy6RJsTEtCRGSEGe4ElpTEq3ph5Yy0UostyXUxUqpphKpQZLNRpSHkx4oBgNabfE2oSElKRBfQFj4MELiOiLGFIBS3ddsASyu2fPOeP/287Uw7C46dn4Jb/M8M18l/3mdnDYFcbYflDH2R/fwn6gh8Ejsl7X9XroTxLUl8fJhmwTDZ4LPKAVHJTGThqG8apIQho7qDNd5ba5iSTQJAJwZynWBKxY9CmgRSSI6jTbTuDu1ladFOhI3AQwRwQntrbu1tlOoLPzzUo5EHhirwRozKqjBDo7OysdCUjx/Px8s8Gw1v+u93Ea8PsDrSKQz+fzkI7GrAmQLfl4kA3XpOusBu3TXP2k0+msIGciAYxHg9XU1Lzs9/tbfb41D/X5yfBYNyfZkg8aC4VC2dCdoBgUK9ZRixrfR9fL0GZiuMjr9bqFfnx8nIKRHAUujpMUNCbmjYyMuKE6RD7AcenUtFJM+cyqNCgfr5WV24eTkpJKFZdSqSgKrafCzTJ5Ek7eJ1FKSkoqaB7ZkK3sM9rquirfLclnz56rCoW2afIu2tvbn7X82nywl+SLeW1tbc+JoFaCmqZ2dXVVU8wdCYCSnJycsomJr+plo617Oz+DE08yCPlEEBM3JxooBsWSEyA5wMvrohLOYQcHg5rK1xJOH1j2ka0WDKq/wBf55NVReKyY8hgoAKXAJbCZQIbkg3wWUoyYr5pcrs2NjZba2toKvq52JZ98bGxstsib+/4rSp1duxSISY4EhXxYAsM/o76g3hHUgo1iUAZ7oD7RBDRNa4av12MRDAabHI2NjS8FcKPJwddww9FYogmoqlq+vr7eBp9vgFMC3KKveTyeMvlGk3GCBCW+/0x5Eh2ZhYVfG/jdXmRz7R8CCtb/zOLi4qmqqqoTMYJnykYp4Ahev11PsI0EngK9oMdg7F2074BykB7TIBxmuTrTLQ9SwgnkgI/AB6hCL3iPIRG0XWgLaU7cx8gAXtxmaWlpdLW+CF6g0sYp+zMgLzU1dd/U1NRbOHZ98PchM9j70J8HPeAceHTHc6xpurrjY2Juvpm/565wOHyFMfMv02R34OzSfyTQgTvkKtpPA38HVLLFSXIvLy/3iGqAC4YR6REJCEnu7u6u3tzcVFdXV1s6OjqqxfU5NjbWgMl+cIeZ7E+0v/FgpWASfAmK7+nM60jwGv6+DD7p6+s7Sj7wNLv6+/tbA4HA+WA4fGFgYMAT6zVUpF16KD09/XE4mgY+cBss42KZjAYzzWmTmT9Ch5bdIN329vYl/H0dXEXJh1H+HvJBviTfyl6v4TFwWHxG8RvLB9bAKrg1ODh4mo/9DH5AIjNoo0n19vaqSGaUV+EK+Aw8T2PcZzHF4LHiC0q+QKUHVPpl3Gg36NfwCsxD9z32xQz6U9ykaGlp6WNehREkchl74qLDrsDxLV76FZT7d7fb3SieZuh+ogT4EokEMnCJvaLrxhfQfQ68hqEP2U5gdnb2Ipz8YaL009PT9EsKLTt+zjTNaAJov7GYFYyOjr7NmHENFfBiE7c7EpBjeXl5VQUFBXQqFOvHhB6JfIvg36EyMzimN6WPGiU7O7siKyurnK+5bTkASgh54wwPD5+JRCKToZD29dDQ0Ok97BTeT0iSiTivnDOO3f8g8v8FNuUfG4CCnr3IRI0AAAAaZmNUTAAAAA8AAAAgAAAAIgAAAAAAAAAAAGQD6AAAraAa7gAABPlmZEFUAAAAEHjatVdtTFtVGMaAJiYEIhowKOgPS7ZAYjL9o7AYtpost8Py6ZDxsUHLoEUXMITpRDIxKyNion9Q4tSFdCYYmZNEiMFo4ghDpwhiwg9/CdLabmm2wC5t74fPS8/B64HCdhtP8uTevue87/Pc97znvrdJZoeu6zlALUPO7h7mie4F7hPtiqLUwd5MoHtxnnzIN1HyvUAT4AD2CHPNqqqe4CKEuT2KrjiZ795EBBzjBCxYqlGAEQZ7KtDIBSI7x00LuLm6WisQHbwDAQc5OWF19WataQEdHScrRCLg4XgCaM5oIwEdHR0ViZTBgfn5+eOqjr3+d7/tNBEM3nBwokAg0MQE2I0CyJdi3E3BHVMUvRrXJ5j5EavVWk7BuADMb5BVV1dXBoNBRyDgb6J7djKajMVJvhSD5tbX1y2wHSEO4truqG04b0JRSnHNxHTh8PDwUW4fGxurZG7PAyUMVjLQHF/n9XqPwlREMQC7cGocxCmeWSdNisdredlXnJycfFgqkSokSaL9lJhbJhNhZfc0JJvNVk7ryId8xZh0xcM5xXdLyqlTp6vW19do8Ra43e5nDE9bAMQbBXydy+V6lpMaIUcizq6urheJ8z8CAFteXl7pxMQ3daLTaqzyMxh2HHydeCIIE19P1BMHcYkCaOSy9JZQCn9FBctyxMn2EkHvejxIvhFZdv6OWGz7ShhHbjyn+4F9wGFazGFSQIYQg2I+RRzbdjUxXbdCocaamppytq9mRwHFCIVuNYrFvdlF6WZLlQJ8UcLdFDGMxKKIJDkiN3CDCNRAXaIClEikXiTmiEQQv6Gh4YUbeKOJk3684WguUQEUI7hdfL/fUV9fbxffaCKsCfLfUfxMcdHQ0FBXOBy+pmmaH2rPA/eY3P9C6g8LCwsN7BiK5JmigwW4pOnadVyDQEDTdRJhNUGejWJ24doSa2ZA7FshNZ7Dq8AKkQJ/Q4Sf/V6KRqNmBDwKvAy4gVYIaAFOUEaQ3S3d8AHAT8S6pnPiZU3T/1xaWrqYnZ39EH4XA/t32g6aAx4HHktLS8sYHR2l8/8K0IZsxIToKmWEN6NNx3SQLeua5sP9X8CSfPv2lf7+/pO0X+jl78P2G8T9gqfo3UFAFdALdK+srJSSL7pj1eLiYoshGy46kuIXc8rMzMy7KLo/kO7ZycnJs2inG6/PkZGRI0QOzELgT7qufRcjiz6Hp7oA+wfA02TD73MI7sHvM8Dp9vb2/fy13tnZ+ZLP52tdW1tzdXd3V2/XDSWhSovS09Npay6jEOdwvQZMy7J8kZF9hjr5Ahnxwv4e2a6HQm/g/hzwNtADNFIMiiXEluJ1w0NAMf+MUnS9To+R/wzMAD/09fW1snR/BXwOISTgY7K1tbXVRlX1HZaFt4A3gSdpjsU8QByMa/eBuvgW+z6LID9ie6aRwvPsaZJgv0wCVGQAIj5hLoVzc3OvqSwLEHKG9j7J7ADpVZb6q0j392VlZZvfBrB9CYwAXoALyCgqKqoKh6Mk4CyE9apq9HXTAqampnpAPI1gV8bHx3tYP+cVfwkFuSEAT/qpwW3f4IeDqHLVE4UAvFUTamiHLBZLRX5+fiUVjvFjIoxipAyouupFZQ8KHzVSTk5OaVZWlp3tuemRC9gIYuEMDAy4w3L4Asg/8ng8zXH8JHaf0Egh7NLlrHH9/rch/i8wOf4BRvqEvL0rz4oAAAAaZmNUTAAAABEAAAAgAAAAIgAAAAAAAAAAAGQD6AAAQaGt/gAABQFmZEFUAAAAEnjatZdbTBxVHMbXgCYmCEgbsCGFhFgCCQkJfagKL+2uSTOUu6WEO2UXKlvauiSyIlZSN6FRi0lDjA8kRgmKqeUiKmjS9IU+mHql4A1pgrQVWHXDdoFlmDPj99+e0fGElbITT/LLmT1n/uf7zn3WEmnSNG0vqObs3TbAhNCD4CGxXFGUGpQ3EfQs1lMMxZoVzwSNwA4yhLomxlizbkKoy1A0xcFjM80YqNcFeGMxRgNGDOUx4LhuEKPTELGBlUCgWhCy3ocBqy5OBAIr1REbcLlOl4lC4LFwBqjOWEYGXC5XmcVEOjQ1NdXANMz1P/NdRBVe7x92XWh5ebmRGygyGqBYamMnC65eUbQK5I/z4mSbzVZKjekGUB8Sq6ioeMbr9dqXlxcb6ZnvjEbj4qRYaoPqgsHgPpQdIw3S2mqrhYL/RlGKkSeiOre/v79KLx8bGyMxSk+DAo6NCqhOf29gYKAKRXnUBigSdo2dNMU966BKcXvduvXbwaioqCNSgVQmSRLNp8TDErkJG3+mJOXn55fSexRDsWKblKNzDvFsiXa7XzwaDK6GXhZxOp1PGnqbBcKlLP29lpaWp3RRI+uy7Ghvby8nzX8ZAPnp6enFExOf14hBgXsrP4GzXUogxB1BTHw6UUsapCUaoJQCJHJPQ/gtVvD6uuzgc4lGd5x2Uay8vu6YQVt8+gq4Rkq4oIdBDjgCCnQiNJAgtEFt7icNcQeUg5vgT46PUBn7dWRk5Cyf10hTVmVlZanP5z8uLm79FiUDvwCvqqm/Uw6Q66g3LSYTCRmFRRMWVdN+1lRtCT+WVKBxVELVfjRrQJHlWlFYR5blGsvw8PALqPwJBXc0Vb2D/DZG4zbKZoaGhtxmDdTV1RXSiSmKLy4u2mtra4vEE03EZlL/vtpPFF/q7e11ra2tXcEUTMNtD3ggwvnPpfthenq6jm9DUTxRDEgDb4MfwPeADHwH8nYsLh5ELJRbQUy4gGYuNgNuqPeevwbXNzc3c3dqYHV1dQ8Ji6ufRmRjYyNTFI8HU9gNN8gEhv4b5F/CxBezs7NvJicn78LvA2D/dtOB+j1EbGxsAp2EW+8A4TLCj0dUVaXekvBXMHDd7/ePdHV1naD5urt692WUj8PgKPLW/xC3Uj14dn5+3kqx9E1AHyZGA7IiO8Qv5ugrV696MDzXgsGNz0ZHRztxnYaOz76+vmISB2PgMniHi+UAD3gJZPCyM+jtGU1jJ/F8wm63P6Ef66eczvKFhYVGdMzR0dGx5W0oCas0Ly4u7lE09Bb4GAyDD/wB/wUu9irT2BvIz4PnqWxpaYl6+BxoxaJzIi9BcTzIE9qWwt2Gh8FBkMxFCsEnYATH8ofI33O73fW8rhf0cAPnqAzn/lGmaW00Cig7CVrAPqrjbR4iDa61fUIv3kUDH4HLDL2fm5s7z3tjgQgMsB7GYICxV3hI7uTkZDMfhVOMYSoUpcoSaVJV9FoNDf0lNNZvtVqP6Vczyi6CC3wEdAMJ2dnZJcGgTAZOowOtjMlNERsYHx93KapyCb1/f3Bw0MXvcwsfgYsgZAC5xxCW4/F4amgaZMZau7u7Tf0vOJyamlqSlpZWSgvH+DGxFgi8BvHXyYDP5zsrfNRISUlJRfG7dxdSG2YMpIB8Qlw4nZ2dDQF/oNvnWznX1tZWEyZO4s+mUjSxzS1nCxv3vyXxf0GE6S+R9YNYr/xWtAAAABpmY1RMAAAAEwAAACAAAAAiAAAAAAAAAAAAZAPoAACsN34XAAAFF2ZkQVQAAAAUeNq1l1tMXEUcxmmgJkZuAtkoWHyxXCKJpvJgpD60rNocWCCgFOmyUHa36hKgLqE0vFXQVCymioYXE8LVeCONpIQHEo0xYhtCE6SpvgnULOzCrpCFhbPn4vdf59Dj2BV6Nk7yyxxmdub7ZuY/F+KMJlVVjwAr48j+LYwLHQYP8eWSJNWh/BxB33w9taG2sYrnAztwgDyu7pwsy29oJri6PEmVnKxtfiwGGjQB1lmi3oAeXXkiaNQMYnbOGjawEQxaOaHiAxgo1sSJYHDDatiA291axQuBx6IZoDp9GRlwu91VsYTByfn5+bOyirW+t97lVOHzrTs0Ia/Xa2cGyvUGqC31cdD1bgPLiqreQe5ixVlms7mSOtMMSJIaEaupqXnV5/M5vN4VO32znWHXBye1pT6obmdn5yjKTrO4yufFU8AfqqL4kK+BdXzfRG5CddHw8PAZbVQTExMkRuklYGGYqYDqtN+Njo6eQdFx6gOUc7vGAQ7rDTxKBsAKZsCLHEaUdeR+cVccjo+PLxUsQpUgCLSeAmtmYibM7JuSUFJSUkm/ozZ373pO6ONhL5ckJ3+2JMzM3OhVVGURFR6IryL3stnwT09P23WjLQDRUoH2O5fL9YImqickis6Ojo5q0vyHAVBSV1fX4Pf7r7PZ8Ch/G/GBV1CfxtgvpRH8jiCmJqdsOTk5FaTFG6CUDQRg6e/vb9ve3v5JUdTfPR7Pl0lJSekGdlA6xYEYCjlvYzew5bMwjexojR4Gx0ApsOhIM2AgjeujFDxHGvwOKAU/gzuI/F+RE7/J4fDc2NjYRbauRlNBbW1tZSCw2cjfHdotSgZ+ROT/QqgALDBuIxhn4mJMJKQX5k3ESYr0g6qotwiYuIXCOQ3EwHexGpBE0cYLa4iiWBc3NDR0PhwOf4+Cm1iCCIj+G2JYnB4cHGyN1UB9fX0ZnZi8+MrKisNms5XzJxqPOUb9A/Vv4n/U3d3tCgQ2RrAEdCZcAIcMrn8R3Q8LCwv1bBvy4ia+wRPgPSzBFPJJMAGugWcfWJw/iORIXgwSozWoBt+C66qyJ/wN+ALB8syDGtja2nqchPnopxnZ3d3N58WTSJxxTVGUceRfgc/n5uYuZWVlpeP7aZAHDu07cpCcnJxGJ+H9dwB3GeGPRxQlMloIK1/TqNfW1j5pbm5uoPXy/+mnDj5FR1cxgtf+a801kcXFxWJqS28CepjoDYiS6ORfzAnj4+PtqBgNBoOfDQwMtOI6jRyfPT09L5M4+AiPkivILzGxo+AtYA+FQk9GyrgHicPheF471luamqqXl5ftm5ubzs7OzvvehgIXpcdTUlLondAJPga94LJv3edmBprxVGtDcLXgCd5AZUtLS6/fW3MVL2KVbr5U6ovrW4h2G54CJ0AWE3kR9IEPMaoPkL9rt9trqA7CHfjbrapyi/aEs1gsFfK/1/wp7XkHTjINaO2fSOQddHAVXMFoL8/OzrrZaFAnX4C4W8YMQLCJNSmanJy0cZEPwwYTG3UveD8sh7sKCwurtKsZZe3gbbA3A1SXm5tbHgqJTs0E7oJGwwZGRkYaIdwj43Dq6+uz032uMwcDcsQAZqFJ1+xY+8X207IsItolZ1dXF+LAeDplMpkqMjMzqRNB/5jYCATO0wzIMLC6uvom96gRMjIyylJTU8vYmhtO2aCE4APH6XTW4KyA+JrLarVWR2knsO+YUgKxzy1njtruf0v8/wUG019dDISlQm+mHQAAABpmY1RMAAAAFQAAACAAAAAhAAAAAAAAAAAAZAPoAABQgGYUAAAFD2ZkQVQAAAAWeAGl13tIW9cDB/BTTCtCdbYV2SjKGJ12zL+6f7bpBnUZG1cTQyzVn49Y42266NRNVuqEPXzgqpvsD53stzHcKGHdBttEkCBM6CjdoxsrQoUhSH2kZorYlkaTcO89+570XHd7SC4xOfDxHO/jvO85JyTVQCktgAZFURp5mqQimYcegUNABA2qqp5D7GFpIIIDsD/dCnTAEgTgTeGeR0AMjoNMFUVG/FQ6FfgbVuE2j59MogIHwc16h0H6TMoVwPheR7xMqRagGg0i/X0SFXhJv8YqcPf+/QYgiRCzm7Ozs33I6JZG6QrrBU3T/kH8ikkFHhWvd3V1VQNJhJjdtFgs5dvb21di80DTAtqDXrgGZHNzQ9YLWV9fbwGCdJXechbPzc01E0LKk/2smuEqzEA97MPlo0NDQ2wiLsKyYS6Q2traUxsbG3IQhbM0YMhoi7H1VqvVyfLg+R+jCq2FM8aJaZw4V+E3+AMt/QvxD/Ac3i1dWlm6pFHtFnphFYV+DQThZbBxViBTU1On9B7w+Xz1uFSG//OhSu+VB3Hs69hvrEAO/My791e4Dn/CjXA4/HFmZqZtfHy8a2xsrCsjI0MCgpDPK2HlaRakiooKpyRJ1XimcnV19aRKVWGugKKcRXxgtwIIFr/f/w5m+izviWt6b6DVNyYnJ+sNrS2BRKFEf661o/V5sWAmHAp7LlzoOc3KJIZggQq73V4fCAQ+x4NXeEV+gd+hDPcPc+aBP2f8IvTu98/MNBYVFTlYWWIFWCgECWyD/YPeO3fvXFY07aeFhYVPsrOzjwDZC4QjbB6EQiHPzbmbzWxoeO9IvKy4IQtOQCXYdOYtN+0Jm0ElPANZ4udXCl9hkWGznvkRJhUlehmTro2Pa6qhpK6uzrm1teUWhwMaoIBgln6BxDeYgN8i1n3HTQBJU4OxYCO2lRP8+Qz/+GJUFagPlQJQ1E+BpCOqRF16gaLozk4jGRkZce/s7PwfF76ECQaFT2DyjGMVbAaSDpfLVWVctnXB20G5qanJLq5oIiukE5LKP198qL293bW2ttaLmn4INbAPSApK2f4wPz/vYqtjnMLzxS8iD2QYwTB8hHgIBuGJvRcubM0q4KwABxMdSF5UVXoR8TBmbKxgldIBXGM98TiQvcAceizOpwdKC+LjYgWy4CI3CAP4IvoQvzc9Pe1lKyHShXA0qZZDTk7OYd8lX3282a9QYTOCTJUVCtAH7y8uLr7ldDpr2HgFg8FKdihFpToQv2A25nqLsROWs3fZmYAdTB6uAH14O0awjI6OtkQikXdxsnm7t3egCdtpbPns7OwsY4VDB7SBDAQK0JJGfUUDAm7jmMuy/Ky+rLe1tZ3GRue+dy90tqcn/m4oCbO0DA6hkDpk2Amvg3dlZaUOdlc4itbyNFkOLP/PcBr2QBXyyIUyIW8p0W74KpzUj1GRCH0ambwB7ciUtf41h8PmAGI84XDEZrM52DVh8h0DwvMs52UUJn9OVHe73otDi4u3Ju6pGKHUP+NvFK7Xpvy7AC3w8q5vxdHsXHFxcZW+NRu7mqcJu8eeCYVD/6330agbSCLE7Obw8AfVqhptRdrb3d1dw/dzkqgHGIQT3efP1+AdTxj6+/sdQBIhpjcxXrm5ufa8vDw70pLxMMGO5Kzl+sYChOHPSOwd9i4f85RDIVQw4sSJ/S7Y3JTXDb8LOON7Ek+nFSyc2S5nNX3PJPwLu02sWzaoOecAAAATdEVYdFNvZnR3YXJlAEphcG5nIHIxMTkn6LNhAAAAAElFTkSuQmCC);background-size:16px 17px}ngx-extended-pdf-viewer .dropdownToolbarButton::after{width:24px;height:24px;display:inline-block;position:absolute;margin-top:5px}@media print{body{background:rgba(0,0,0,0)}#errorWrapper,#loadingBox,#secondaryToolbar,#sidebarContainer,.textLayer,.toolbar{display:none}#viewerContainer{overflow:visible}#mainContainer,#viewerContainer,.page,.page canvas{position:static;padding:0;margin:0}.page{float:left;display:none;border:none;box-shadow:none;background-clip:content-box;background-color:#fff}.page[data-loaded]{display:block}.fileInput,body[data-pdfjsprinting] #outerContainer{display:none}#printContainer canvas,#printContainer img,body[data-pdfjsprinting] #printContainer{display:block}#printContainer{height:100%}#printContainer>div{position:relative;top:0;left:0;width:1px;height:1px;overflow:visible;page-break-after:always;page-break-inside:avoid}}ngx-extended-pdf-viewer .visibleLargeView,ngx-extended-pdf-viewer .visibleMediumView,ngx-extended-pdf-viewer .visibleSmallView{display:none}ngx-extended-pdf-viewer #viewerContainer{overflow:auto;-webkit-overflow-scrolling:touch;position:absolute}ngx-extended-pdf-viewer .invisible{display:none!important}body[data-pdfjsprinting] #printContainer,body[data-pdfjsprinting] #printContainer *{padding:0;margin:0;font:message-box;outline:0}#printContainer canvas,#printContainer img{display:block!important}@media print{body[data-pdfjsprinting]>*{display:none!important}body[data-pdfjsprinting] #printContainer{display:block!important}body[data-pdfjsprinting] #printContainer div img{height:100vh!important}body,html{overflow-y:visible!important}html.cdk-global-scrollblock{width:initial;position:initial}}ngx-extended-pdf-viewer .textLayer .highlight.color0{background-color:rgba(180,0,170,.4)}ngx-extended-pdf-viewer .textLayer .highlight.color0.selected{background-color:#b400aa}ngx-extended-pdf-viewer .textLayer .highlight.color1{background-color:rgba(0,100,0,.4)}ngx-extended-pdf-viewer .textLayer .highlight.color1.selected{background-color:#006400}ngx-extended-pdf-viewer .textLayer .highlight.color2{background-color:rgba(0,0,255,.4)}ngx-extended-pdf-viewer .textLayer .highlight.color2.selected{background-color:#00f}ngx-extended-pdf-viewer .textLayer .highlight.color3{background-color:rgba(255,0,0,.4)}ngx-extended-pdf-viewer .textLayer .highlight.color3.selected{background-color:red}ngx-extended-pdf-viewer textLayer .highlight.color4{background-color:rgba(255,94,0,.4)}ngx-extended-pdf-viewer .textLayer .highlight.color4.selected{background-color:#ff5e00}html[dir=ltr] ngx-extended-pdf-viewer .dropdownToolbarButton,html[dir=ltr] ngx-extended-pdf-viewer .overlayButton,html[dir=ltr] ngx-extended-pdf-viewer .toolbarButton{margin:3px 0 4px}html[dir=ltr] ngx-extended-pdf-viewer .toolbarButton:last-child,html[dir=rtl] ngx-extended-pdf-viewer .toolbarButton:first-child{margin-right:0;margin-left:0}html[dir=ltr] ngx-extended-pdf-viewer #secondaryToolbarToggle{margin-right:4px;margin-left:0}html[dir=rtl] ngx-extended-pdf-viewer #secondaryToolbarToggle{margin-right:0;margin-left:4px}ngx-extended-pdf-viewer .dropdownToolbarButton,ngx-extended-pdf-viewer .overlayButton,ngx-extended-pdf-viewer .secondaryToolbarButton,ngx-extended-pdf-viewer .toolbarButton{padding-left:0;padding-right:0}ngx-extended-pdf-viewer .offscreen{position:fixed!important;left:-9999px!important;display:block!important;width:3000px!important}ngx-extended-pdf-viewer .offscreen #sidebarContainer{top:1000px!important}ngx-extended-pdf-viewer .dropdownToolbarButton,ngx-extended-pdf-viewer .toolbarButton{margin-left:-1px!important;margin-right:-2px!important}ngx-extended-pdf-viewer #numPages{padding-right:0}ngx-extended-pdf-viewer .pdf-viewer-template,ngx-extended-pdf-viewer .pdf-viewer-template *{display:none}ngx-extended-pdf-viewer a:focus,ngx-extended-pdf-viewer button:focus,ngx-extended-pdf-viewer input:focus,ngx-extended-pdf-viewer select:focus{outline:0;border:1px solid #00f}ngx-extended-pdf-viewer input[type=checkbox]:focus{outline:#00f solid 1px}"],encapsulation:2}),bD);function cM(e,t,n){return!e||e.some(function(e){return function(e,t,n){var i,r=0;return(e=e.toLowerCase()).includes("ctrl+")&&(r|=1,e=e.replace("ctrl+","")),e.includes("cmd+")&&(r|=8,e=e.replace("cmd+","")),e.includes("alt+")&&(r|=2,e=e.replace("alt+","")),e.includes("shift+")&&(r|=4,e=e.replace("shift+","")),e.includes("meta+")&&(r|=8,e=e.replace("meta+","")),i="up"===e?38:"down"===e?40:"+"===e||'"+"'===e?171:"-"===e||'"-"'===e?173:"esc"===e?27:"enter"===e?13:"space"===e?32:"f4"===e?115:"backspace"===e?8:"home"===e?36:"end"===e?35:"left"===e?37:"right"===e?39:"pagedown"===e?34:"pageup"===e?33:e.toUpperCase().charCodeAt(0),"WHEEL"===n?"wheel"===e&&t===r:i===n&&t===r}(e,t,n)})}Promise.allSettled||window.Zone&&!window["__zone_symbol__Promise.allSettled"]&&console.error("Please update zone.js to version 0.10.3 or higher. Otherwise, you'll run the slow ECMAScript 5 version even on modern browser that can run the fast ESMAScript 2015 version."),"undefined"!=typeof window&&(window.isKeyIgnored=function(e,t){var n=window.PDFViewerApplicationOptions,i=n.get("ignoreKeys"),r=n.get("acceptKeys");return"WHEEL"===t?!!cM(i,e,"WHEEL")||!!(r&&r.length>0)&&!cM(r,e,"WHEEL"):16===t||17===t||18===t||224===t||!!n.get("ignoreKeyboard")||!!(i&&i.length>0&&cM(i,e,t))||!!(r&&r.length>0)&&!cM(r,e,t)});var dM,hM,fM,pM,gM,vM,mM,yM=((dM=function e(){A(this,e)}).\u0275fac=function(e){return new(e||dM)},dM.\u0275mod=mt({type:dM}),dM.\u0275inj=Fe({providers:[mO,vD,Cd,{provide:md,useClass:xd}],imports:[[Zh,Dy]]}),dM),bM=["contentRef"],wM=["*"],_M=((pM=function(){function e(t){A(this,e),this.display="inline-block",this._dragDisabled=!1,this._elementRef=t}return m(e,[{key:"dragDisabled",get:function(){return this._dragDisabled},set:function(e){this._dragDisabled=e}}]),e}()).\u0275fac=function(e){return new(e||pM)(rs(Cl))},pM.\u0275dir=bt({type:pM,selectors:[["","drag-scroll-item",""]],hostVars:2,hostBindings:function(e,t){2&e&&Ls("display",t.display)},inputs:{dragDisabled:["drag-disabled","dragDisabled"]}}),pM=vx([mx(0,Ni(Cl)),yx("design:paramtypes",[Cl])],pM)),kM=((fM=function(){function e(t,n,i){A(this,e),this._elementRef=t,this._renderer=n,this._document=i,this._index=0,this._scrollbarHidden=!1,this._disabled=!1,this._xDisabled=!1,this._xWheelEnabled=!1,this._yDisabled=!1,this._dragDisabled=!1,this._snapDisabled=!1,this._snapOffset=0,this._snapDuration=500,this._isDragging=!1,this.isPressed=!1,this.isScrolling=!1,this.scrollTimer=-1,this.scrollToTimer=-1,this.downX=0,this.downY=0,this.displayType="block",this.elWidth=null,this.elHeight=null,this._pointerEvents="auto",this.scrollbarWidth=null,this.isAnimating=!1,this.prevChildrenLength=0,this.indexBound=0,this.dsInitialized=new Fu,this.indexChanged=new Fu,this.reachesLeftBound=new Fu,this.reachesRightBound=new Fu,this.snapAnimationFinished=new Fu,this.dragStart=new Fu,this.dragEnd=new Fu,this.scrollbarWidth=this.getScrollbarWidth()+"px"}return m(e,[{key:"isDragging",get:function(){return this._isDragging}},{key:"currIndex",get:function(){return this._index},set:function(e){e!==this._index&&(this._index=e,this.indexChanged.emit(e))}},{key:"scrollbarHidden",get:function(){return this._scrollbarHidden},set:function(e){this._scrollbarHidden=e}},{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=e}},{key:"xDisabled",get:function(){return this._xDisabled},set:function(e){this._xDisabled=e}},{key:"yDisabled",get:function(){return this._yDisabled},set:function(e){this._yDisabled=e}},{key:"xWheelEnabled",get:function(){return this._xWheelEnabled},set:function(e){this._xWheelEnabled=e}},{key:"dragDisabled",get:function(){return this._dragDisabled},set:function(e){this._dragDisabled=e}},{key:"snapDisabled",get:function(){return this._snapDisabled},set:function(e){this._snapDisabled=e}},{key:"snapOffset",get:function(){return this._snapOffset},set:function(e){this._snapOffset=e}},{key:"snapDuration",get:function(){return this._snapDuration},set:function(e){this._snapDuration=e}},{key:"ngOnChanges",value:function(){this.setScrollBar(),this.xDisabled||this.disabled||this._scrollbarHidden?this.disableScroll("x"):this.enableScroll("x"),this.yDisabled||this.disabled?this.disableScroll("y"):this.enableScroll("y")}},{key:"ngAfterViewInit",value:function(){this._renderer.setAttribute(this._contentRef.nativeElement,"drag-scroll","true"),this.displayType="undefined"!=typeof window?window.getComputedStyle(this._elementRef.nativeElement).display:"block",this._renderer.setStyle(this._contentRef.nativeElement,"display",this.displayType),this._renderer.setStyle(this._contentRef.nativeElement,"whiteSpace","noWrap"),this.markElDimension(),this._renderer.setStyle(this._contentRef.nativeElement,"width",this.elWidth),this._renderer.setStyle(this._contentRef.nativeElement,"height",this.elHeight),this.wrapper&&this.checkScrollbar(),this._onMouseDownListener=this._renderer.listen(this._contentRef.nativeElement,"mousedown",this.onMouseDownHandler.bind(this)),this._onScrollListener=this._renderer.listen(this._contentRef.nativeElement,"scroll",this.onScrollHandler.bind(this)),this._onDragStartListener=this._renderer.listen("document","dragstart",function(e){e.preventDefault()}),this.checkNavStatus(),this.dsInitialized.emit(),this.adjustMarginToLastChild()}},{key:"ngAfterViewChecked",value:function(){this._children.length!==this.prevChildrenLength&&(this.markElDimension(),this.checkScrollbar(),this.prevChildrenLength=this._children.length,this.checkNavStatus())}},{key:"ngOnDestroy",value:function(){this._renderer.setAttribute(this._contentRef.nativeElement,"drag-scroll","false"),this._onMouseDownListener&&(this._onMouseDownListener=this._onMouseDownListener()),this._onScrollListener&&(this._onScrollListener=this._onScrollListener()),this._onDragStartListener&&(this._onDragStartListener=this._onDragStartListener())}},{key:"onMouseMoveHandler",value:function(e){this.onMouseMove(e)}},{key:"onMouseMove",value:function(e){if(this.isPressed&&!this.disabled){if(!e.buttons&&!e.which)return this.onMouseUpHandler(e);if(this._pointerEvents="none",this._setIsDragging(!0),!this.xDisabled&&!this.dragDisabled){var t=e.clientX;this._contentRef.nativeElement.scrollLeft=this._contentRef.nativeElement.scrollLeft-t+this.downX,this.downX=t}if(!this.yDisabled&&!this.dragDisabled){var n=e.clientY;this._contentRef.nativeElement.scrollTop=this._contentRef.nativeElement.scrollTop-n+this.downY,this.downY=n}}}},{key:"onMouseDownHandler",value:function(e){var t=this.locateDragScrollItem(e.target);if(!t||!t.dragDisabled){this._startGlobalListening("touchstart"===e.type),this.isPressed=!0;var n=e;this.downX=n.clientX,this.downY=n.clientY,clearTimeout(this.scrollToTimer)}}},{key:"onScrollHandler",value:function(){var e=this;this.checkNavStatus(),this.isPressed||this.isAnimating||this.snapDisabled?this.locateCurrentIndex():(this.isScrolling=!0,clearTimeout(this.scrollTimer),this.scrollTimer=setTimeout(function(){e.isScrolling=!1,e.locateCurrentIndex(!0)},500))}},{key:"onMouseUpHandler",value:function(e){this.isPressed&&(this.isPressed=!1,this._pointerEvents="auto",this._setIsDragging(!1),this.snapDisabled?this.locateCurrentIndex():this.locateCurrentIndex(!0),this._stopGlobalListening())}},{key:"moveLeft",value:function(){(0!==this.currIndex||this.snapDisabled)&&(this.currIndex--,clearTimeout(this.scrollToTimer),this.scrollTo(this._contentRef.nativeElement,this.toChildrenLocation(),this.snapDuration))}},{key:"moveRight",value:function(){var e=this.wrapper||this.parentNode,t=e?e.clientWidth:0;!this.isScrollReachesRightEnd()&&this.currIndex<this.maximumIndex(t,this._children.toArray())&&(this.currIndex++,clearTimeout(this.scrollToTimer),this.scrollTo(this._contentRef.nativeElement,this.toChildrenLocation(),this.snapDuration))}},{key:"moveTo",value:function(e){var t=this.wrapper||this.parentNode,n=t?t.clientWidth:0;e>=0&&e!==this.currIndex&&this.currIndex<=this.maximumIndex(n,this._children.toArray())&&(this.currIndex=Math.min(e,this.maximumIndex(n,this._children.toArray())),clearTimeout(this.scrollToTimer),this.scrollTo(this._contentRef.nativeElement,this.toChildrenLocation(),this.snapDuration))}},{key:"checkNavStatus",value:function(){var e=this;setTimeout(function(){var t=Boolean(e._children.length<=1),n=Boolean(e._contentRef.nativeElement.scrollWidth<=e._contentRef.nativeElement.clientWidth);t||n?(e.reachesLeftBound.emit(!0),e.reachesRightBound.emit(!0)):e.isScrollReachesRightEnd()?(e.reachesLeftBound.emit(!1),e.reachesRightBound.emit(!0)):0===e._contentRef.nativeElement.scrollLeft&&e._contentRef.nativeElement.scrollWidth>e._contentRef.nativeElement.clientWidth?(e.reachesLeftBound.emit(!0),e.reachesRightBound.emit(!1)):(e.reachesLeftBound.emit(!1),e.reachesRightBound.emit(!1))},0)}},{key:"onWheel",value:function(e){this._xWheelEnabled&&(e.preventDefault(),this._snapDisabled?this._contentRef.nativeElement.scrollBy(e.deltaY,0):e.deltaY<0?this.moveLeft():e.deltaY>0&&this.moveRight())}},{key:"onWindowResize",value:function(){this.refreshWrapperDimensions(),this.checkNavStatus()}},{key:"_setIsDragging",value:function(e){this._isDragging!==e&&(this._isDragging=e,e?this.dragStart.emit():this.dragEnd.emit())}},{key:"_startGlobalListening",value:function(e){this._onMouseMoveListener||(this._onMouseMoveListener=this._renderer.listen("document",e?"touchmove":"mousemove",this.onMouseMoveHandler.bind(this))),this._onMouseUpListener||(this._onMouseUpListener=this._renderer.listen("document",e?"touchend":"mouseup",this.onMouseUpHandler.bind(this)))}},{key:"_stopGlobalListening",value:function(){this._onMouseMoveListener&&(this._onMouseMoveListener=this._onMouseMoveListener()),this._onMouseUpListener&&(this._onMouseUpListener=this._onMouseUpListener())}},{key:"disableScroll",value:function(e){this._renderer.setStyle(this._contentRef.nativeElement,"overflow-"+e,"hidden")}},{key:"enableScroll",value:function(e){this._renderer.setStyle(this._contentRef.nativeElement,"overflow-"+e,"auto")}},{key:"hideScrollbar",value:function(){"none"===this._contentRef.nativeElement.style.display||this.wrapper||(this.parentNode=this._contentRef.nativeElement.parentNode,this.wrapper=this._renderer.createElement("div"),this._renderer.setAttribute(this.wrapper,"class","drag-scroll-wrapper"),this._renderer.addClass(this.wrapper,"drag-scroll-container"),this.refreshWrapperDimensions(),this._renderer.setStyle(this.wrapper,"overflow","hidden"),this._renderer.setStyle(this._contentRef.nativeElement,"width","calc(100% + ".concat(this.scrollbarWidth,")")),this._renderer.setStyle(this._contentRef.nativeElement,"height","calc(100% + ".concat(this.scrollbarWidth,")")),this._renderer.appendChild(this._elementRef.nativeElement,this.wrapper),this._renderer.appendChild(this.wrapper,this._contentRef.nativeElement),this.adjustMarginToLastChild())}},{key:"showScrollbar",value:function(){this.wrapper&&(this._renderer.setStyle(this._contentRef.nativeElement,"width","100%"),this._renderer.setStyle(this._contentRef.nativeElement,"height",this.wrapper.style.height),null!==this.parentNode&&(this.parentNode.removeChild(this.wrapper),this.parentNode.appendChild(this._contentRef.nativeElement)),this.wrapper=null,this.adjustMarginToLastChild())}},{key:"checkScrollbar",value:function(){this._renderer.setStyle(this._contentRef.nativeElement,"height",this._contentRef.nativeElement.scrollWidth<=this._contentRef.nativeElement.clientWidth?"100%":"calc(100% + ".concat(this.scrollbarWidth,")")),this._renderer.setStyle(this._contentRef.nativeElement,"width",this._contentRef.nativeElement.scrollHeight<=this._contentRef.nativeElement.clientHeight?"100%":"calc(100% + ".concat(this.scrollbarWidth,")"))}},{key:"setScrollBar",value:function(){this.scrollbarHidden?this.hideScrollbar():this.showScrollbar()}},{key:"getScrollbarWidth",value:function(){var e=this._renderer.createElement("div");this._renderer.setStyle(e,"visibility","hidden"),this._renderer.setStyle(e,"width","100px"),this._renderer.setStyle(e,"msOverflowStyle","scrollbar"),this._renderer.appendChild(this._document.body,e);var t=e.offsetWidth;this._renderer.setStyle(e,"overflow","scroll");var n=this._renderer.createElement("div");this._renderer.setStyle(n,"width","100%"),this._renderer.appendChild(e,n);var i=n.offsetWidth;return this._renderer.removeChild(this._document.body,e),t-i||20}},{key:"refreshWrapperDimensions",value:function(){this.wrapper&&(this._renderer.setStyle(this.wrapper,"width","100%"),this._renderer.setStyle(this.wrapper,"height",this._elementRef.nativeElement.style.height||this._elementRef.nativeElement.offsetHeight+"px"))}},{key:"scrollTo",value:function(e,t,n){var i=this;i.isAnimating=!0;var r=e.scrollLeft,o=t-r-this.snapOffset,a=0;!function t(){var s,l,u;a+=20,e.scrollLeft=(s=a,l=r,u=o,(s/=n/2)<1?u/2*s*s+l:-u/2*(--s*(s-2)-1)+l),a<n?i.scrollToTimer=setTimeout(t,20):setTimeout(function(){i.isAnimating=!1,i.snapAnimationFinished.emit(i.currIndex)},20)}()}},{key:"locateCurrentIndex",value:function(e){var t=this;this.currentChildWidth(function(n,i,r,o,a){t._contentRef.nativeElement.scrollLeft>=r&&t._contentRef.nativeElement.scrollLeft<=i?(i-t._contentRef.nativeElement.scrollLeft>n/2&&!t.isScrollReachesRightEnd()?(t.isAnimating||(t.currIndex=o),e&&t.scrollTo(t._contentRef.nativeElement,r,t.snapDuration)):0!==t._contentRef.nativeElement.scrollLeft&&(t.isAnimating||(t.currIndex=o+1),e&&t.scrollTo(t._contentRef.nativeElement,r+n,t.snapDuration)),a()):o+1===t._children.length-1&&(t.isAnimating||(t.currIndex=o+1),a())})}},{key:"currentChildWidth",value:function(e){for(var t=0,n=!1,i=function(){n=!0},r=this._children.toArray(),o=0;o<r.length&&o!==r.length-1&&!n;o++){var a=r[o]._elementRef.nativeElement.clientWidth;e(a,t+r[o+1]._elementRef.nativeElement.clientWidth,t,o,i),t+=a}}},{key:"toChildrenLocation",value:function(){for(var e=0,t=this._children.toArray(),n=0;n<this.currIndex;n++)e+=t[n]._elementRef.nativeElement.clientWidth;return e}},{key:"locateDragScrollItem",value:function(e){for(var t=null,n=this._children.toArray(),i=0;i<n.length;i++)e===n[i]._elementRef.nativeElement&&(t=n[i]);return t}},{key:"markElDimension",value:function(){this.wrapper?(this.elWidth=this.wrapper.style.width,this.elHeight=this.wrapper.style.height):(this.elWidth=this._elementRef.nativeElement.style.width||this._elementRef.nativeElement.offsetWidth+"px",this.elHeight=this._elementRef.nativeElement.style.height||this._elementRef.nativeElement.offsetHeight+"px");var e=this.wrapper||this.parentNode;this._children.length>1&&(this.indexBound=this.maximumIndex(e?e.clientWidth:0,this._children.toArray()))}},{key:"maximumIndex",value:function(e,t){for(var n=0,i=0,r=0;r<=t.length;r++){var o=t[t.length-1-r];if(!o)break;var a=o._elementRef.nativeElement,s=a.clientWidth;if(0===s&&a.firstElementChild&&(s=o._elementRef.nativeElement.firstElementChild.clientWidth),!((i+=s)<e))break;n++}return t.length-n}},{key:"isScrollReachesRightEnd",value:function(){return this._contentRef.nativeElement.scrollLeft+this._contentRef.nativeElement.offsetWidth>=this._contentRef.nativeElement.scrollWidth}},{key:"adjustMarginToLastChild",value:function(){if(this._children&&this._children.length>0&&this.hideScrollbar){var e=this._children.toArray();this._renderer.setStyle(e[e.length-1]._elementRef.nativeElement,"margin-right",this.wrapper&&e.length>1?this.scrollbarWidth:0)}}}]),e}()).\u0275fac=function(e){return new(e||fM)(rs(Cl),rs(El),rs(od))},fM.\u0275cmp=ft({type:fM,selectors:[["drag-scroll"]],contentQueries:function(e,t,n){var i;1&e&&Xu(n,_M,0),2&e&&Zu(i=Ku())&&(t._children=i)},viewQuery:function(e,t){var n;1&e&&Qu(bM,3),2&e&&Zu(n=Ku())&&(t._contentRef=n.first)},hostVars:2,hostBindings:function(e,t){1&e&&ms("wheel",function(e){return t.onWheel(e)})("resize",function(){return t.onWindowResize()},!1,Ir),2&e&&Ls("pointer-events",t._pointerEvents)},inputs:{scrollbarHidden:["scrollbar-hidden","scrollbarHidden"],disabled:["drag-scroll-disabled","disabled"],xDisabled:["drag-scroll-x-disabled","xDisabled"],yDisabled:["drag-scroll-y-disabled","yDisabled"],xWheelEnabled:["scroll-x-wheel-enabled","xWheelEnabled"],dragDisabled:["drag-disabled","dragDisabled"],snapDisabled:["snap-disabled","snapDisabled"],snapOffset:["snap-offset","snapOffset"],snapDuration:["snap-duration","snapDuration"]},outputs:{dsInitialized:"dsInitialized",indexChanged:"indexChanged",reachesLeftBound:"reachesLeftBound",reachesRightBound:"reachesRightBound",snapAnimationFinished:"snapAnimationFinished",dragStart:"dragStart",dragEnd:"dragEnd"},features:[Mt],ngContentSelectors:wM,decls:3,vars:0,consts:[[1,"drag-scroll-content"],["contentRef",""]],template:function(e,t){1&e&&(As(),ss(0,"div",0,1),Cs(2),ls())},styles:["[_nghost-%COMP%] {\n      overflow: hidden;\n      display: block;\n    }\n    .drag-scroll-content[_ngcontent-%COMP%] {\n      height: 100%;\n      overflow: auto;\n      white-space: nowrap;\n    }"]}),fM=vx([mx(0,Ni(Cl)),mx(1,Ni(El)),mx(2,Ni(od)),yx("design:paramtypes",[Cl,El,Object])],fM)),xM=((hM=function e(){A(this,e)}).\u0275fac=function(e){return new(e||hM)},hM.\u0275mod=mt({type:hM}),hM.\u0275inj=Fe({}),hM),AM=function(){function e(t,n){A(this,e),this.x=t,this.y=n}return m(e,[{key:"value",get:function(){return{x:this.x,y:this.y}}},{key:"add",value:function(e){return this.x+=e.x,this.y+=e.y,this}},{key:"subtract",value:function(e){return this.x-=e.x,this.y-=e.y,this}},{key:"multiply",value:function(e){this.x*=e,this.y*=e}},{key:"divide",value:function(e){this.x/=e,this.y/=e}},{key:"reset",value:function(){return this.x=0,this.y=0,this}},{key:"set",value:function(e){return this.x=e.x,this.y=e.y,this}}],[{key:"fromEvent",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(this.isMouseEvent(t))return new e(t.clientX,t.clientY);if(null===n||1===t.changedTouches.length)return new e(t.changedTouches[0].clientX,t.changedTouches[0].clientY);for(var i=0;i<t.changedTouches.length;i++)if(t.changedTouches[i].target===n)return new e(t.changedTouches[i].clientX,t.changedTouches[i].clientY)}},{key:"isMouseEvent",value:function(e){return 8===Object.prototype.toString.apply(e).indexOf("MouseEvent")}},{key:"isIPosition",value:function(e){return!!e&&"x"in e&&"y"in e}},{key:"getCurrent",value:function(t){var n=new e(0,0);if(window){var i=window.getComputedStyle(t);if(i){var r=parseInt(i.getPropertyValue("left"),10),o=parseInt(i.getPropertyValue("top"),10);n.x=isNaN(r)?0:r,n.y=isNaN(o)?0:o}return n}return console.error("Not Supported!"),null}},{key:"copy",value:function(t){return new e(0,0).set(t)}}]),e}(),CM=function(){function e(t,n){A(this,e),this.parent=t,this.renderer=n,this._added=!1;var i=n.createElement("div");n.setStyle(i,"position","absolute"),n.setStyle(i,"width","100%"),n.setStyle(i,"height","100%"),n.setStyle(i,"background-color","transparent"),n.setStyle(i,"top","0"),n.setStyle(i,"left","0"),this._helper=i}return m(e,[{key:"add",value:function(){this.parent&&!this._added&&(this.parent.appendChild(this._helper),this._added=!0)}},{key:"remove",value:function(){this.parent&&this._added&&(this.parent.removeChild(this._helper),this._added=!1)}},{key:"dispose",value:function(){this._helper=null,this._added=!1}},{key:"el",get:function(){return this._helper}}]),e}(),SM=((gM=function(){function e(t,n){A(this,e),this.el=t,this.renderer=n,this.allowDrag=!0,this.moving=!1,this.orignal=null,this.oldTrans=new AM(0,0),this.tempTrans=new AM(0,0),this.currTrans=new AM(0,0),this.oldZIndex="",this._zIndex="",this.needTransform=!1,this.draggingSub=null,this._helperBlock=null,this.started=new Fu,this.stopped=new Fu,this.edge=new Fu,this.outOfBounds={top:!1,right:!1,bottom:!1,left:!1},this.gridSize=1,this.inBounds=!1,this.trackPosition=!0,this.scale=1,this.preventDefaultEvent=!1,this.position={x:0,y:0},this.lockAxis=null,this.movingOffset=new Fu,this.endOffset=new Fu,this._helperBlock=new CM(t.nativeElement,n)}return m(e,[{key:"zIndex",set:function(e){this.renderer.setStyle(this.el.nativeElement,"z-index",e),this._zIndex=e}},{key:"ngDraggable",set:function(e){if(null!=e&&""!==e){this.allowDrag=!!e;var t=this.getDragEl();this.allowDrag?this.renderer.addClass(t,"ng-draggable"):(this.putBack(),this.renderer.removeClass(t,"ng-draggable"))}}},{key:"ngOnInit",value:function(){if(this.allowDrag){var e=this.getDragEl();this.renderer.addClass(e,"ng-draggable")}this.resetPosition()}},{key:"ngOnDestroy",value:function(){this.bounds=null,this.handle=null,this.orignal=null,this.oldTrans=null,this.tempTrans=null,this.currTrans=null,this._helperBlock.dispose(),this._helperBlock=null,this.draggingSub&&this.draggingSub.unsubscribe()}},{key:"ngOnChanges",value:function(e){if(e.position&&!e.position.isFirstChange()){var t=e.position.currentValue;this.moving?this.needTransform=!0:(AM.isIPosition(t)?this.oldTrans.set(t):this.oldTrans.reset(),this.transform())}}},{key:"ngAfterViewInit",value:function(){this.inBounds&&(this.boundsCheck(),this.oldTrans.add(this.tempTrans),this.tempTrans.reset())}},{key:"getDragEl",value:function(){return this.handle?this.handle:this.el.nativeElement}},{key:"resetPosition",value:function(){AM.isIPosition(this.position)?this.oldTrans.set(this.position):this.oldTrans.reset(),this.tempTrans.reset(),this.transform()}},{key:"moveTo",value:function(e){this.orignal&&(e.subtract(this.orignal),this.tempTrans.set(e),this.tempTrans.divide(this.scale),this.transform(),this.bounds&&this.edge.emit(this.boundsCheck()),this.movingOffset.emit(this.currTrans.value))}},{key:"transform",value:function(){var e=this.tempTrans.x+this.oldTrans.x,t=this.tempTrans.y+this.oldTrans.y;"x"===this.lockAxis?(e=this.oldTrans.x,this.tempTrans.x=0):"y"===this.lockAxis&&(t=this.oldTrans.y,this.tempTrans.y=0),this.gridSize>1&&(e=Math.round(e/this.gridSize)*this.gridSize,t=Math.round(t/this.gridSize)*this.gridSize);var n="translate(".concat(Math.round(e),"px, ").concat(Math.round(t),"px)");this.renderer.setStyle(this.el.nativeElement,"transform",n),this.renderer.setStyle(this.el.nativeElement,"-webkit-transform",n),this.renderer.setStyle(this.el.nativeElement,"-ms-transform",n),this.renderer.setStyle(this.el.nativeElement,"-moz-transform",n),this.renderer.setStyle(this.el.nativeElement,"-o-transform",n),this.currTrans.x=e,this.currTrans.y=t}},{key:"pickUp",value:function(){if(this.oldZIndex=this.el.nativeElement.style.zIndex?this.el.nativeElement.style.zIndex:"",window&&(this.oldZIndex=window.getComputedStyle(this.el.nativeElement,null).getPropertyValue("z-index")),this.zIndexMoving&&this.renderer.setStyle(this.el.nativeElement,"z-index",this.zIndexMoving),!this.moving){this.started.emit(this.el.nativeElement),this.moving=!0;var e=this.getDragEl();this.renderer.addClass(e,"ng-dragging"),this.subscribeEvents()}}},{key:"subscribeEvents",value:function(){var e=this;this.draggingSub=Sx(document,"mousemove",{passive:!1}).subscribe(function(t){return e.onMouseMove(t)}),this.draggingSub.add(Sx(document,"touchmove",{passive:!1}).subscribe(function(t){return e.onMouseMove(t)})),this.draggingSub.add(Sx(document,"mouseup",{passive:!1}).subscribe(function(){return e.putBack()})),/msie\s|trident\//i.test(window.navigator.userAgent)||this.draggingSub.add(Sx(document,"mouseleave",{passive:!1}).subscribe(function(){return e.putBack()})),this.draggingSub.add(Sx(document,"touchend",{passive:!1}).subscribe(function(){return e.putBack()})),this.draggingSub.add(Sx(document,"touchcancel",{passive:!1}).subscribe(function(){return e.putBack()}))}},{key:"unsubscribeEvents",value:function(){this.draggingSub.unsubscribe(),this.draggingSub=null}},{key:"boundsCheck",value:function(){if(this.bounds){var e=this.bounds.getBoundingClientRect(),t=this.el.nativeElement.getBoundingClientRect(),n={top:!!this.outOfBounds.top||e.top<t.top,right:!!this.outOfBounds.right||e.right>t.right,bottom:!!this.outOfBounds.bottom||e.bottom>t.bottom,left:!!this.outOfBounds.left||e.left<t.left};return this.inBounds&&(n.top||(this.tempTrans.y-=(t.top-e.top)/this.scale),n.bottom||(this.tempTrans.y-=(t.bottom-e.bottom)/this.scale),n.right||(this.tempTrans.x-=(t.right-e.right)/this.scale),n.left||(this.tempTrans.x-=(t.left-e.left)/this.scale),this.transform()),n}}},{key:"getCurrentOffset",value:function(){return this.currTrans.value}},{key:"putBack",value:function(){if(this._zIndex?this.renderer.setStyle(this.el.nativeElement,"z-index",this._zIndex):this.zIndexMoving&&(this.oldZIndex?this.renderer.setStyle(this.el.nativeElement,"z-index",this.oldZIndex):this.el.nativeElement.style.removeProperty("z-index")),this.moving){this.stopped.emit(this.el.nativeElement),this._helperBlock.remove(),this.needTransform&&(AM.isIPosition(this.position)?this.oldTrans.set(this.position):this.oldTrans.reset(),this.transform(),this.needTransform=!1),this.bounds&&this.edge.emit(this.boundsCheck()),this.moving=!1,this.endOffset.emit(this.currTrans.value),this.trackPosition&&this.oldTrans.add(this.tempTrans),this.tempTrans.reset(),this.trackPosition||this.transform();var e=this.getDragEl();this.renderer.removeClass(e,"ng-dragging"),this.unsubscribeEvents()}}},{key:"checkHandleTarget",value:function(e,t){if("BUTTON"===t.tagName)return!1;if(t===e)return!0;for(var n in t.children)if(t.children.hasOwnProperty(n)&&this.checkHandleTarget(e,t.children[n]))return!0;return!1}},{key:"onMouseDown",value:function(e){e instanceof MouseEvent&&2===e.button||(void 0===this.handle||this.checkHandleTarget(e.target||e.srcElement,this.handle))&&!1!==this.allowDrag&&(this.preventDefaultEvent&&(e.stopPropagation(),e.preventDefault()),this.orignal=AM.fromEvent(e,this.getDragEl()),this.pickUp())}},{key:"onMouseMove",value:function(e){this.moving&&this.allowDrag&&(this.preventDefaultEvent&&(e.stopPropagation(),e.preventDefault()),this._helperBlock.add(),this.moveTo(AM.fromEvent(e,this.getDragEl())))}}]),e}()).\u0275fac=function(e){return new(e||gM)(rs(Cl),rs(El))},gM.\u0275dir=bt({type:gM,selectors:[["","ngDraggable",""]],hostBindings:function(e,t){1&e&&ms("mousedown",function(e){return t.onMouseDown(e)})("touchstart",function(e){return t.onMouseDown(e)})},inputs:{outOfBounds:"outOfBounds",gridSize:"gridSize",inBounds:"inBounds",trackPosition:"trackPosition",scale:"scale",preventDefaultEvent:"preventDefaultEvent",position:"position",lockAxis:"lockAxis",zIndex:"zIndex",ngDraggable:"ngDraggable",bounds:"bounds",handle:"handle",zIndexMoving:"zIndexMoving"},outputs:{started:"started",stopped:"stopped",edge:"edge",movingOffset:"movingOffset",endOffset:"endOffset"},exportAs:["ngDraggable"],features:[Mt]}),gM),PM=function(){function e(t,n,i,r,o){var a=this;A(this,e),this.parent=t,this.renderer=n,this.type=i,this.css=r,this.onMouseDown=o;var s=n.createElement("div");n.addClass(s,"ng-resizable-handle"),n.addClass(s,r),"se"===i&&n.addClass(s,"ng-resizable-diagonal"),this.parent&&t.appendChild(s),this._onResize=function(e){o(e,a)},s.addEventListener("mousedown",this._onResize,{passive:!1}),s.addEventListener("touchstart",this._onResize,{passive:!1}),this._handle=s}return m(e,[{key:"dispose",value:function(){this._handle.removeEventListener("mousedown",this._onResize),this._handle.removeEventListener("touchstart",this._onResize),this.parent&&this.parent.removeChild(this._handle),this._handle=null,this._onResize=null}},{key:"el",get:function(){return this._handle}}]),e}(),EM=function(){function e(t,n){A(this,e),this.width=t,this.height=n}return m(e,[{key:"set",value:function(e){return this.width=e.width,this.height=e.height,this}}],[{key:"getCurrent",value:function(t){var n=new e(0,0);if(window){var i=window.getComputedStyle(t);return i&&(n.width=parseInt(i.getPropertyValue("width"),10),n.height=parseInt(i.getPropertyValue("height"),10)),n}return console.error("Not Supported!"),null}},{key:"copy",value:function(t){return new e(0,0).set(t)}}]),e}(),DM=((mM=function(){function e(t,n){A(this,e),this.el=t,this.renderer=n,this._resizable=!0,this._handles={},this._handleType=[],this._handleResizing=null,this._direction=null,this._directionChanged=null,this._aspectRatio=0,this._containment=null,this._origMousePos=null,this._origSize=null,this._origPos=null,this._currSize=null,this._currPos=null,this._initSize=null,this._initPos=null,this._gridSize=null,this._bounding=null,this._helperBlock=null,this.draggingSub=null,this._adjusted=!1,this.rzHandles="e,s,se",this.rzAspectRatio=!1,this.rzContainment=null,this.rzGrid=null,this.rzMinWidth=null,this.rzMinHeight=null,this.rzMaxWidth=null,this.rzMaxHeight=null,this.preventDefaultEvent=!0,this.rzStart=new Fu,this.rzResizing=new Fu,this.rzStop=new Fu,this._helperBlock=new CM(t.nativeElement,n)}return m(e,[{key:"ngResizable",set:function(e){null!=e&&""!==e&&(this._resizable=!!e,this.updateResizable())}},{key:"ngOnChanges",value:function(e){e.rzHandles&&!e.rzHandles.isFirstChange()&&this.updateResizable(),e.rzAspectRatio&&!e.rzAspectRatio.isFirstChange()&&this.updateAspectRatio(),e.rzContainment&&!e.rzContainment.isFirstChange()&&this.updateContainment()}},{key:"ngOnInit",value:function(){this.updateResizable()}},{key:"ngOnDestroy",value:function(){this.removeHandles(),this._containment=null,this._helperBlock.dispose(),this._helperBlock=null}},{key:"ngAfterViewInit",value:function(){var e=this.el.nativeElement;this._initSize=EM.getCurrent(e),this._initPos=AM.getCurrent(e),this._currSize=EM.copy(this._initSize),this._currPos=AM.copy(this._initPos),this.updateAspectRatio(),this.updateContainment()}},{key:"resetSize",value:function(){this._currSize=EM.copy(this._initSize),this._currPos=AM.copy(this._initPos),this.doResize()}},{key:"getStatus",value:function(){return this._currPos&&this._currSize?{size:{width:this._currSize.width,height:this._currSize.height},position:{top:this._currPos.y,left:this._currPos.x}}:null}},{key:"updateResizable",value:function(){var e=this.el.nativeElement;this.renderer.removeClass(e,"ng-resizable"),this.removeHandles(),this._resizable&&(this.renderer.addClass(e,"ng-resizable"),this.createHandles())}},{key:"updateAspectRatio",value:function(){if("boolean"==typeof this.rzAspectRatio)this._aspectRatio=this.rzAspectRatio&&this._currSize.height?this._currSize.width/this._currSize.height:0;else{var e=Number(this.rzAspectRatio);this._aspectRatio=isNaN(e)?0:e}}},{key:"updateContainment",value:function(){this._containment=this.rzContainment?"string"==typeof this.rzContainment?"parent"===this.rzContainment?this.el.nativeElement.parentElement:document.querySelector(this.rzContainment):this.rzContainment:null}},{key:"createHandles",value:function(){if(this.rzHandles)if("string"==typeof this.rzHandles){var e,t=h("all"===this.rzHandles?["n","e","s","w","ne","se","nw","sw"]:this.rzHandles.replace(/ /g,"").toLowerCase().split(","));try{for(t.s();!(e=t.n()).done;){var n=e.value,i=this.createHandleByType(n,"ng-resizable-"+n);i&&(this._handleType.push(n),this._handles[n]=i)}}catch(l){t.e(l)}finally{t.f()}}else{var r,o=h(Object.keys(this.rzHandles));try{for(o.s();!(r=o.n()).done;){var a=r.value,s=this.createHandleByType(a,this.rzHandles[a]);s&&(this._handleType.push(a),this._handles[a]=s)}}catch(l){o.e(l)}finally{o.f()}}}},{key:"createHandleByType",value:function(e,t){var n=this.el.nativeElement;return e.match(/^(se|sw|ne|nw|n|e|s|w)$/)?new PM(n,this.renderer,e,t,this.onMouseDown.bind(this)):(console.error("Invalid handle type:",e),null)}},{key:"removeHandles",value:function(){var e,t=h(this._handleType);try{for(t.s();!(e=t.n()).done;){var n=e.value;this._handles[n].dispose()}}catch(i){t.e(i)}finally{t.f()}this._handleType=[],this._handles={}}},{key:"onMouseDown",value:function(e,t){e instanceof MouseEvent&&2===e.button||(this.preventDefaultEvent&&(e.stopPropagation(),e.preventDefault()),this._handleResizing||(this._origMousePos=AM.fromEvent(e),this.startResize(t),this.subscribeEvents()))}},{key:"subscribeEvents",value:function(){var e=this;this.draggingSub=Sx(document,"mousemove",{passive:!1}).subscribe(function(t){return e.onMouseMove(t)}),this.draggingSub.add(Sx(document,"touchmove",{passive:!1}).subscribe(function(t){return e.onMouseMove(t)})),this.draggingSub.add(Sx(document,"mouseup",{passive:!1}).subscribe(function(){return e.onMouseLeave()})),/msie\s|trident\//i.test(window.navigator.userAgent)||this.draggingSub.add(Sx(document,"mouseleave",{passive:!1}).subscribe(function(){return e.onMouseLeave()})),this.draggingSub.add(Sx(document,"touchend",{passive:!1}).subscribe(function(){return e.onMouseLeave()})),this.draggingSub.add(Sx(document,"touchcancel",{passive:!1}).subscribe(function(){return e.onMouseLeave()}))}},{key:"unsubscribeEvents",value:function(){this.draggingSub.unsubscribe(),this.draggingSub=null}},{key:"onMouseLeave",value:function(){this._handleResizing&&(this.stopResize(),this._origMousePos=null,this.unsubscribeEvents())}},{key:"onMouseMove",value:function(e){this._handleResizing&&this._resizable&&this._origMousePos&&this._origPos&&this._origSize&&(this.resizeTo(AM.fromEvent(e)),this.onResizing())}},{key:"startResize",value:function(e){var t=this.el.nativeElement;this._origSize=EM.getCurrent(t),this._origPos=AM.getCurrent(t),this._currSize=EM.copy(this._origSize),this._currPos=AM.copy(this._origPos),this._containment&&this.getBounding(),this.getGridSize(),this._helperBlock.add(),this._handleResizing=e,this.updateDirection(),this.rzStart.emit(this.getResizingEvent())}},{key:"stopResize",value:function(){this._helperBlock.remove(),this.rzStop.emit(this.getResizingEvent()),this._handleResizing=null,this._direction=null,this._origSize=null,this._origPos=null,this._containment&&this.resetBounding()}},{key:"onResizing",value:function(){this.rzResizing.emit(this.getResizingEvent())}},{key:"getResizingEvent",value:function(){return{host:this.el.nativeElement,handle:this._handleResizing?this._handleResizing.el:null,size:{width:this._currSize.width,height:this._currSize.height},position:{top:this._currPos.y,left:this._currPos.x},direction:Object.assign({},this._directionChanged)}}},{key:"updateDirection",value:function(){this._direction={n:!!this._handleResizing.type.match(/n/),s:!!this._handleResizing.type.match(/s/),w:!!this._handleResizing.type.match(/w/),e:!!this._handleResizing.type.match(/e/)},this._directionChanged=Object.assign({},this._direction),this.rzAspectRatio&&(this._directionChanged.n&&!this._directionChanged.e&&(this._directionChanged.w=!0),this._directionChanged.s&&!this._directionChanged.w&&(this._directionChanged.e=!0),this._directionChanged.e&&!this._directionChanged.n&&(this._directionChanged.s=!0),this._directionChanged.w&&!this._directionChanged.n&&(this._directionChanged.s=!0))}},{key:"resizeTo",value:function(e){e.subtract(this._origMousePos);var t=Math.round(e.x/this._gridSize.x)*this._gridSize.x,n=Math.round(e.y/this._gridSize.y)*this._gridSize.y;this._direction.n?(this._currPos.y=this._origPos.y+n,this._currSize.height=this._origSize.height-n):this._direction.s&&(this._currSize.height=this._origSize.height+n),this._direction.e?this._currSize.width=this._origSize.width+t:this._direction.w&&(this._currSize.width=this._origSize.width-t,this._currPos.x=this._origPos.x+t),this.checkBounds(),this.checkSize(),this.adjustByRatio(),this.doResize()}},{key:"doResize",value:function(){var e=this.el.nativeElement;(!this._direction||this._direction.n||this._direction.s||this._aspectRatio)&&this.renderer.setStyle(e,"height",this._currSize.height+"px"),(!this._direction||this._direction.w||this._direction.e||this._aspectRatio)&&this.renderer.setStyle(e,"width",this._currSize.width+"px"),this.renderer.setStyle(e,"left",this._currPos.x+"px"),this.renderer.setStyle(e,"top",this._currPos.y+"px")}},{key:"adjustByRatio",value:function(){if(this._aspectRatio&&!this._adjusted)if(this._direction.e||this._direction.w){var e=Math.floor(this._currSize.width/this._aspectRatio);this._direction.n&&(this._currPos.y+=this._currSize.height-e),this._currSize.height=e}else{var t=Math.floor(this._aspectRatio*this._currSize.height);this._direction.n&&(this._currPos.x+=this._currSize.width-t),this._currSize.width=t}}},{key:"checkBounds",value:function(){if(this._containment){var e=this._bounding.width-this._bounding.pr-this._bounding.deltaL-this._bounding.translateX-this._currPos.x,t=this._bounding.height-this._bounding.pb-this._bounding.deltaT-this._bounding.translateY-this._currPos.y;if(this._direction.n&&this._currPos.y+this._bounding.translateY<0&&(this._currPos.y=-this._bounding.translateY,this._currSize.height=this._origSize.height+this._origPos.y+this._bounding.translateY),this._direction.w&&this._currPos.x+this._bounding.translateX<0&&(this._currPos.x=-this._bounding.translateX,this._currSize.width=this._origSize.width+this._origPos.x+this._bounding.translateX),this._currSize.width>e&&(this._currSize.width=e),this._currSize.height>t&&(this._currSize.height=t),this._aspectRatio){if(this._adjusted=!1,(this._direction.w||this._direction.e)&&this._currSize.width/this._aspectRatio>=t){var n=Math.floor(t*this._aspectRatio);this._direction.w&&(this._currPos.x+=this._currSize.width-n),this._currSize.width=n,this._currSize.height=t,this._adjusted=!0}if((this._direction.n||this._direction.s)&&this._currSize.height*this._aspectRatio>=e){var i=Math.floor(e/this._aspectRatio);this._direction.n&&(this._currPos.y+=this._currSize.height-i),this._currSize.width=e,this._currSize.height=i,this._adjusted=!0}}}}},{key:"checkSize",value:function(){var e=this.rzMinHeight?this.rzMinHeight:1,t=this.rzMinWidth?this.rzMinWidth:1;this._currSize.height<e&&(this._currSize.height=e,this._direction.n&&(this._currPos.y=this._origPos.y+(this._origSize.height-e))),this._currSize.width<t&&(this._currSize.width=t,this._direction.w&&(this._currPos.x=this._origPos.x+(this._origSize.width-t))),this.rzMaxHeight&&this._currSize.height>this.rzMaxHeight&&(this._currSize.height=this.rzMaxHeight,this._direction.n&&(this._currPos.y=this._origPos.y+(this._origSize.height-this.rzMaxHeight))),this.rzMaxWidth&&this._currSize.width>this.rzMaxWidth&&(this._currSize.width=this.rzMaxWidth,this._direction.w&&(this._currPos.x=this._origPos.x+(this._origSize.width-this.rzMaxWidth)))}},{key:"getBounding",value:function(){var e=this._containment,t=window.getComputedStyle(e);if(t){var n=t.getPropertyValue("position"),i=window.getComputedStyle(this.el.nativeElement).getPropertyValue("transform").replace(/[^-\d,]/g,"").split(",");this._bounding={},this._bounding.width=e.clientWidth,this._bounding.height=e.clientHeight,this._bounding.pr=parseInt(t.getPropertyValue("padding-right"),10),this._bounding.pb=parseInt(t.getPropertyValue("padding-bottom"),10),this._bounding.deltaL=this.el.nativeElement.offsetLeft-this._currPos.x,this._bounding.deltaT=this.el.nativeElement.offsetTop-this._currPos.y,i.length>=6?(this._bounding.translateX=parseInt(i[4],10),this._bounding.translateY=parseInt(i[5],10)):(this._bounding.translateX=0,this._bounding.translateY=0),this._bounding.position=t.getPropertyValue("position"),"static"===n&&this.renderer.setStyle(e,"position","relative")}}},{key:"resetBounding",value:function(){this._bounding&&"static"===this._bounding.position&&this.renderer.setStyle(this._containment,"position","relative"),this._bounding=null}},{key:"getGridSize",value:function(){this._gridSize={x:1,y:1},this.rzGrid&&("number"==typeof this.rzGrid?this._gridSize={x:this.rzGrid,y:this.rzGrid}:Array.isArray(this.rzGrid)&&(this._gridSize={x:this.rzGrid[0],y:this.rzGrid[1]}))}}]),e}()).\u0275fac=function(e){return new(e||mM)(rs(Cl),rs(El))},mM.\u0275dir=bt({type:mM,selectors:[["","ngResizable",""]],inputs:{rzHandles:"rzHandles",rzAspectRatio:"rzAspectRatio",rzContainment:"rzContainment",rzGrid:"rzGrid",rzMinWidth:"rzMinWidth",rzMinHeight:"rzMinHeight",rzMaxWidth:"rzMaxWidth",rzMaxHeight:"rzMaxHeight",preventDefaultEvent:"preventDefaultEvent",ngResizable:"ngResizable"},outputs:{rzStart:"rzStart",rzResizing:"rzResizing",rzStop:"rzStop"},exportAs:["ngResizable"],features:[Mt]}),mM),OM=((vM=function e(){A(this,e)}).\u0275fac=function(e){return new(e||vM)},vM.\u0275mod=mt({type:vM}),vM.\u0275inj=Fe({imports:[[]]}),vM);function MM(e,t){return function(n,i){t(n,i,e)}}var TM,IM=((TM=function(){function e(t,n){A(this,e),this.document=t,this.platformId=n,this.documentIsAccessible=Qh(this.platformId)}return m(e,[{key:"check",value:function(e){return!!this.documentIsAccessible&&(e=encodeURIComponent(e),this.getCookieRegExp(e).test(this.document.cookie))}},{key:"get",value:function(e){if(!this.documentIsAccessible||!this.check(e))return"";e=encodeURIComponent(e);var t=this.getCookieRegExp(e).exec(this.document.cookie);try{return decodeURIComponent(t[1])}catch(n){return t[1]}}},{key:"getAll",value:function(){if(!this.documentIsAccessible)return{};var e={},t=this.document;return t.cookie&&""!==t.cookie&&t.cookie.split(";").forEach(function(t){var n=f(t.split("="),2),i=n[0],r=n[1];e[decodeURIComponent(i.replace(/^ /,""))]=decodeURIComponent(r)}),e}},{key:"set",value:function(e,t,n,i,r,o){var a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:"Lax";if(this.documentIsAccessible){var s=encodeURIComponent(e)+"="+encodeURIComponent(t)+";";n&&(s+="number"==typeof n?"expires="+new Date((new Date).getTime()+1e3*n*60*60*24).toUTCString()+";":"expires="+n.toUTCString()+";"),i&&(s+="path="+i+";"),r&&(s+="domain="+r+";"),!1===o&&"None"===a&&(o=!0,console.warn("[ngx-cookie-service] Cookie ".concat(e," was forced with secure flag because sameSite=None.More details : https://github.com/stevermeister/ngx-cookie-service/issues/86#issuecomment-597720130"))),o&&(s+="secure;"),s+="sameSite="+a+";",this.document.cookie=s}}},{key:"delete",value:function(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"Lax";this.documentIsAccessible&&this.set(e,"",new Date("Thu, 01 Jan 1970 00:00:01 GMT"),t,n,i,r)}},{key:"deleteAll",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"Lax";if(this.documentIsAccessible){var r=this.getAll();for(var o in r)r.hasOwnProperty(o)&&this.delete(o,e,t,n,i)}}},{key:"getCookieRegExp",value:function(e){var t=e.replace(/([\[\]\{\}\(\)\|\=\;\+\?\,\.\*\^\$])/gi,"\\$1");return new RegExp("(?:^"+t+"|;\\s*"+t+")=(.*?)(?:;|$)","g")}}]),e}()).\u0275fac=function(e){return new(e||TM)(Ri(od),Ri(uc))},TM.\u0275prov=Re({factory:function(){return new TM(Ri(od),Ri(uc))},token:TM,providedIn:"root"}),TM=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a}([MM(0,Ni(od)),MM(1,Ni(uc))],TM));function RM(e){return"string"==typeof e}var LM,FM,BM,VM,zM,NM,HM,jM,UM,WM,GM=((WM=function e(){A(this,e)}).\u0275fac=function(e){return new(e||WM)},WM.\u0275mod=mt({type:WM}),WM.\u0275inj=Fe({imports:[[]]}),WM),qM=((UM=function e(){A(this,e)}).\u0275fac=function(e){return new(e||UM)},UM.\u0275mod=mt({type:UM}),UM.\u0275inj=Fe({imports:[[]]}),UM),YM=((jM=function(){function e(){A(this,e)}return m(e,[{key:"transform",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(!RM(e))return e;if(e.length>t){if(i)return e.slice(0,t)+n;if(~e.indexOf(" ",t))return e.slice(0,e.indexOf(" ",t))+n}return e}}]),e}()).\u0275fac=function(e){return new(e||jM)},jM.\u0275pipe=wt({name:"shorten",type:jM,pure:!0}),jM),ZM=((HM=function(){function e(){A(this,e)}return m(e,[{key:"transform",value:function(e){return RM(e)?function(e){var t,n=e.split(/\s/g),i=g(t=n)||w(t)||b(t)||p(),r=i[0],o=i.slice(1);return[r.toLowerCase().split(/(?=['|-])/g).map(function(e){return e.indexOf("-")+e.indexOf("'")>-2?e.slice(0,2).toUpperCase()+e.slice(2):e.slice(0,1).toUpperCase()+e.slice(1)}).join("")].concat(y(o)).join(" ")}(e):e}}]),e}()).\u0275fac=function(e){return new(e||HM)},HM.\u0275pipe=wt({name:"ucfirst",type:HM,pure:!0}),HM),QM=((NM=function(){function e(){A(this,e),this.latinMap={"\xc1":"A","\u0102":"A","\u1eae":"A","\u1eb6":"A","\u1eb0":"A","\u1eb2":"A","\u1eb4":"A","\u01cd":"A","\xc2":"A","\u1ea4":"A","\u1eac":"A","\u1ea6":"A","\u1ea8":"A","\u1eaa":"A","\xc4":"A","\u01de":"A","\u0226":"A","\u01e0":"A","\u1ea0":"A","\u0200":"A","\xc0":"A","\u1ea2":"A","\u0202":"A","\u0100":"A","\u0104":"A","\xc5":"A","\u01fa":"A","\u1e00":"A","\u023a":"A","\xc3":"A","\ua732":"AA","\xc6":"AE","\u01fc":"AE","\u01e2":"AE","\ua734":"AO","\ua736":"AU","\ua738":"AV","\ua73a":"AV","\ua73c":"AY","\u1e02":"B","\u1e04":"B","\u0181":"B","\u1e06":"B","\u0243":"B","\u0182":"B","\u0106":"C","\u010c":"C","\xc7":"C","\u1e08":"C","\u0108":"C","\u010a":"C","\u0187":"C","\u023b":"C","\u010e":"D","\u1e10":"D","\u1e12":"D","\u1e0a":"D","\u1e0c":"D","\u018a":"D","\u1e0e":"D","\u01f2":"D","\u01c5":"D","\u0110":"D","\u018b":"D","\u01f1":"DZ","\u01c4":"DZ","\xc9":"E","\u0114":"E","\u011a":"E","\u0228":"E","\u1e1c":"E","\xca":"E","\u1ebe":"E","\u1ec6":"E","\u1ec0":"E","\u1ec2":"E","\u1ec4":"E","\u1e18":"E","\xcb":"E","\u0116":"E","\u1eb8":"E","\u0204":"E","\xc8":"E","\u1eba":"E","\u0206":"E","\u0112":"E","\u1e16":"E","\u1e14":"E","\u0118":"E","\u0246":"E","\u1ebc":"E","\u1e1a":"E","\ua76a":"ET","\u1e1e":"F","\u0191":"F","\u01f4":"G","\u011e":"G","\u01e6":"G","\u0122":"G","\u011c":"G","\u0120":"G","\u0193":"G","\u1e20":"G","\u01e4":"G","\u1e2a":"H","\u021e":"H","\u1e28":"H","\u0124":"H","\u2c67":"H","\u1e26":"H","\u1e22":"H","\u1e24":"H","\u0126":"H","\xcd":"I","\u012c":"I","\u01cf":"I","\xce":"I","\xcf":"I","\u1e2e":"I","\u0130":"I","\u1eca":"I","\u0208":"I","\xcc":"I","\u1ec8":"I","\u020a":"I","\u012a":"I","\u012e":"I","\u0197":"I","\u0128":"I","\u1e2c":"I","\ua779":"D","\ua77b":"F","\ua77d":"G","\ua782":"R","\ua784":"S","\ua786":"T","\ua76c":"IS","\u0134":"J","\u0248":"J","\u1e30":"K","\u01e8":"K","\u0136":"K","\u2c69":"K","\ua742":"K","\u1e32":"K","\u0198":"K","\u1e34":"K","\ua740":"K","\ua744":"K","\u0139":"L","\u023d":"L","\u013d":"L","\u013b":"L","\u1e3c":"L","\u1e36":"L","\u1e38":"L","\u2c60":"L","\ua748":"L","\u1e3a":"L","\u013f":"L","\u2c62":"L","\u01c8":"L","\u0141":"L","\u01c7":"LJ","\u1e3e":"M","\u1e40":"M","\u1e42":"M","\u2c6e":"M","\u0143":"N","\u0147":"N","\u0145":"N","\u1e4a":"N","\u1e44":"N","\u1e46":"N","\u01f8":"N","\u019d":"N","\u1e48":"N","\u0220":"N","\u01cb":"N","\xd1":"N","\u01ca":"NJ","\xd3":"O","\u014e":"O","\u01d1":"O","\xd4":"O","\u1ed0":"O","\u1ed8":"O","\u1ed2":"O","\u1ed4":"O","\u1ed6":"O","\xd6":"O","\u022a":"O","\u022e":"O","\u0230":"O","\u1ecc":"O","\u0150":"O","\u020c":"O","\xd2":"O","\u1ece":"O","\u01a0":"O","\u1eda":"O","\u1ee2":"O","\u1edc":"O","\u1ede":"O","\u1ee0":"O","\u020e":"O","\ua74a":"O","\ua74c":"O","\u014c":"O","\u1e52":"O","\u1e50":"O","\u019f":"O","\u01ea":"O","\u01ec":"O","\xd8":"O","\u01fe":"O","\xd5":"O","\u1e4c":"O","\u1e4e":"O","\u022c":"O","\u01a2":"OI","\ua74e":"OO","\u0190":"E","\u0186":"O","\u0222":"OU","\u1e54":"P","\u1e56":"P","\ua752":"P","\u01a4":"P","\ua754":"P","\u2c63":"P","\ua750":"P","\ua758":"Q","\ua756":"Q","\u0154":"R","\u0158":"R","\u0156":"R","\u1e58":"R","\u1e5a":"R","\u1e5c":"R","\u0210":"R","\u0212":"R","\u1e5e":"R","\u024c":"R","\u2c64":"R","\ua73e":"C","\u018e":"E","\u015a":"S","\u1e64":"S","\u0160":"S","\u1e66":"S","\u015e":"S","\u015c":"S","\u0218":"S","\u1e60":"S","\u1e62":"S","\u1e68":"S","\u1e9e":"SS","\u0164":"T","\u0162":"T","\u1e70":"T","\u021a":"T","\u023e":"T","\u1e6a":"T","\u1e6c":"T","\u01ac":"T","\u1e6e":"T","\u01ae":"T","\u0166":"T","\u2c6f":"A","\ua780":"L","\u019c":"M","\u0245":"V","\ua728":"TZ","\xda":"U","\u016c":"U","\u01d3":"U","\xdb":"U","\u1e76":"U","\xdc":"U","\u01d7":"U","\u01d9":"U","\u01db":"U","\u01d5":"U","\u1e72":"U","\u1ee4":"U","\u0170":"U","\u0214":"U","\xd9":"U","\u1ee6":"U","\u01af":"U","\u1ee8":"U","\u1ef0":"U","\u1eea":"U","\u1eec":"U","\u1eee":"U","\u0216":"U","\u016a":"U","\u1e7a":"U","\u0172":"U","\u016e":"U","\u0168":"U","\u1e78":"U","\u1e74":"U","\ua75e":"V","\u1e7e":"V","\u01b2":"V","\u1e7c":"V","\ua760":"VY","\u1e82":"W","\u0174":"W","\u1e84":"W","\u1e86":"W","\u1e88":"W","\u1e80":"W","\u2c72":"W","\u1e8c":"X","\u1e8a":"X","\xdd":"Y","\u0176":"Y","\u0178":"Y","\u1e8e":"Y","\u1ef4":"Y","\u1ef2":"Y","\u01b3":"Y","\u1ef6":"Y","\u1efe":"Y","\u0232":"Y","\u024e":"Y","\u1ef8":"Y","\u0179":"Z","\u017d":"Z","\u1e90":"Z","\u2c6b":"Z","\u017b":"Z","\u1e92":"Z","\u0224":"Z","\u1e94":"Z","\u01b5":"Z","\u0132":"IJ","\u0152":"OE","\u1d00":"A","\u1d01":"AE","\u0299":"B","\u1d03":"B","\u1d04":"C","\u1d05":"D","\u1d07":"E","\ua730":"F","\u0262":"G","\u029b":"G","\u029c":"H","\u026a":"I","\u0281":"R","\u1d0a":"J","\u1d0b":"K","\u029f":"L","\u1d0c":"L","\u1d0d":"M","\u0274":"N","\u1d0f":"O","\u0276":"OE","\u1d10":"O","\u1d15":"OU","\u1d18":"P","\u0280":"R","\u1d0e":"N","\u1d19":"R","\ua731":"S","\u1d1b":"T","\u2c7b":"E","\u1d1a":"R","\u1d1c":"U","\u1d20":"V","\u1d21":"W","\u028f":"Y","\u1d22":"Z","\xe1":"a","\u0103":"a","\u1eaf":"a","\u1eb7":"a","\u1eb1":"a","\u1eb3":"a","\u1eb5":"a","\u01ce":"a","\xe2":"a","\u1ea5":"a","\u1ead":"a","\u1ea7":"a","\u1ea9":"a","\u1eab":"a","\xe4":"a","\u01df":"a","\u0227":"a","\u01e1":"a","\u1ea1":"a","\u0201":"a","\xe0":"a","\u1ea3":"a","\u0203":"a","\u0101":"a","\u0105":"a","\u1d8f":"a","\u1e9a":"a","\xe5":"a","\u01fb":"a","\u1e01":"a","\u2c65":"a","\xe3":"a","\ua733":"aa","\xe6":"ae","\u01fd":"ae","\u01e3":"ae","\ua735":"ao","\ua737":"au","\ua739":"av","\ua73b":"av","\ua73d":"ay","\u1e03":"b","\u1e05":"b","\u0253":"b","\u1e07":"b","\u1d6c":"b","\u1d80":"b","\u0180":"b","\u0183":"b","\u0275":"o","\u0107":"c","\u010d":"c","\xe7":"c","\u1e09":"c","\u0109":"c","\u0255":"c","\u010b":"c","\u0188":"c","\u023c":"c","\u010f":"d","\u1e11":"d","\u1e13":"d","\u0221":"d","\u1e0b":"d","\u1e0d":"d","\u0257":"d","\u1d91":"d","\u1e0f":"d","\u1d6d":"d","\u1d81":"d","\u0111":"d","\u0256":"d","\u018c":"d","\u0131":"i","\u0237":"j","\u025f":"j","\u0284":"j","\u01f3":"dz","\u01c6":"dz","\xe9":"e","\u0115":"e","\u011b":"e","\u0229":"e","\u1e1d":"e","\xea":"e","\u1ebf":"e","\u1ec7":"e","\u1ec1":"e","\u1ec3":"e","\u1ec5":"e","\u1e19":"e","\xeb":"e","\u0117":"e","\u1eb9":"e","\u0205":"e","\xe8":"e","\u1ebb":"e","\u0207":"e","\u0113":"e","\u1e17":"e","\u1e15":"e","\u2c78":"e","\u0119":"e","\u1d92":"e","\u0247":"e","\u1ebd":"e","\u1e1b":"e","\ua76b":"et","\u1e1f":"f","\u0192":"f","\u1d6e":"f","\u1d82":"f","\u01f5":"g","\u011f":"g","\u01e7":"g","\u0123":"g","\u011d":"g","\u0121":"g","\u0260":"g","\u1e21":"g","\u1d83":"g","\u01e5":"g","\u1e2b":"h","\u021f":"h","\u1e29":"h","\u0125":"h","\u2c68":"h","\u1e27":"h","\u1e23":"h","\u1e25":"h","\u0266":"h","\u1e96":"h","\u0127":"h","\u0195":"hv","\xed":"i","\u012d":"i","\u01d0":"i","\xee":"i","\xef":"i","\u1e2f":"i","\u1ecb":"i","\u0209":"i","\xec":"i","\u1ec9":"i","\u020b":"i","\u012b":"i","\u012f":"i","\u1d96":"i","\u0268":"i","\u0129":"i","\u1e2d":"i","\ua77a":"d","\ua77c":"f","\u1d79":"g","\ua783":"r","\ua785":"s","\ua787":"t","\ua76d":"is","\u01f0":"j","\u0135":"j","\u029d":"j","\u0249":"j","\u1e31":"k","\u01e9":"k","\u0137":"k","\u2c6a":"k","\ua743":"k","\u1e33":"k","\u0199":"k","\u1e35":"k","\u1d84":"k","\ua741":"k","\ua745":"k","\u013a":"l","\u019a":"l","\u026c":"l","\u013e":"l","\u013c":"l","\u1e3d":"l","\u0234":"l","\u1e37":"l","\u1e39":"l","\u2c61":"l","\ua749":"l","\u1e3b":"l","\u0140":"l","\u026b":"l","\u1d85":"l","\u026d":"l","\u0142":"l","\u01c9":"lj","\u017f":"s","\u1e9c":"s","\u1e9b":"s","\u1e9d":"s","\u1e3f":"m","\u1e41":"m","\u1e43":"m","\u0271":"m","\u1d6f":"m","\u1d86":"m","\u0144":"n","\u0148":"n","\u0146":"n","\u1e4b":"n","\u0235":"n","\u1e45":"n","\u1e47":"n","\u01f9":"n","\u0272":"n","\u1e49":"n","\u019e":"n","\u1d70":"n","\u1d87":"n","\u0273":"n","\xf1":"n","\u01cc":"nj","\xf3":"o","\u014f":"o","\u01d2":"o","\xf4":"o","\u1ed1":"o","\u1ed9":"o","\u1ed3":"o","\u1ed5":"o","\u1ed7":"o","\xf6":"o","\u022b":"o","\u022f":"o","\u0231":"o","\u1ecd":"o","\u0151":"o","\u020d":"o","\xf2":"o","\u1ecf":"o","\u01a1":"o","\u1edb":"o","\u1ee3":"o","\u1edd":"o","\u1edf":"o","\u1ee1":"o","\u020f":"o","\ua74b":"o","\ua74d":"o","\u2c7a":"o","\u014d":"o","\u1e53":"o","\u1e51":"o","\u01eb":"o","\u01ed":"o","\xf8":"o","\u01ff":"o","\xf5":"o","\u1e4d":"o","\u1e4f":"o","\u022d":"o","\u01a3":"oi","\ua74f":"oo","\u025b":"e","\u1d93":"e","\u0254":"o","\u1d97":"o","\u0223":"ou","\u1e55":"p","\u1e57":"p","\ua753":"p","\u01a5":"p","\u1d71":"p","\u1d88":"p","\ua755":"p","\u1d7d":"p","\ua751":"p","\ua759":"q","\u02a0":"q","\u024b":"q","\ua757":"q","\u0155":"r","\u0159":"r","\u0157":"r","\u1e59":"r","\u1e5b":"r","\u1e5d":"r","\u0211":"r","\u027e":"r","\u1d73":"r","\u0213":"r","\u1e5f":"r","\u027c":"r","\u1d72":"r","\u1d89":"r","\u024d":"r","\u027d":"r","\u2184":"c","\ua73f":"c","\u0258":"e","\u027f":"r","\u015b":"s","\u1e65":"s","\u0161":"s","\u1e67":"s","\u015f":"s","\u015d":"s","\u0219":"s","\u1e61":"s","\u1e63":"s","\u1e69":"s","\u0282":"s","\u1d74":"s","\u1d8a":"s","\u023f":"s","\u0261":"g","\xdf":"ss","\u1d11":"o","\u1d13":"o","\u1d1d":"u","\u0165":"t","\u0163":"t","\u1e71":"t","\u021b":"t","\u0236":"t","\u1e97":"t","\u2c66":"t","\u1e6b":"t","\u1e6d":"t","\u01ad":"t","\u1e6f":"t","\u1d75":"t","\u01ab":"t","\u0288":"t","\u0167":"t","\u1d7a":"th","\u0250":"a","\u1d02":"ae","\u01dd":"e","\u1d77":"g","\u0265":"h","\u02ae":"h","\u02af":"h","\u1d09":"i","\u029e":"k","\ua781":"l","\u026f":"m","\u0270":"m","\u1d14":"oe","\u0279":"r","\u027b":"r","\u027a":"r","\u2c79":"r","\u0287":"t","\u028c":"v","\u028d":"w","\u028e":"y","\ua729":"tz","\xfa":"u","\u016d":"u","\u01d4":"u","\xfb":"u","\u1e77":"u","\xfc":"u","\u01d8":"u","\u01da":"u","\u01dc":"u","\u01d6":"u","\u1e73":"u","\u1ee5":"u","\u0171":"u","\u0215":"u","\xf9":"u","\u1ee7":"u","\u01b0":"u","\u1ee9":"u","\u1ef1":"u","\u1eeb":"u","\u1eed":"u","\u1eef":"u","\u0217":"u","\u016b":"u","\u1e7b":"u","\u0173":"u","\u1d99":"u","\u016f":"u","\u0169":"u","\u1e79":"u","\u1e75":"u","\u1d6b":"ue","\ua778":"um","\u2c74":"v","\ua75f":"v","\u1e7f":"v","\u028b":"v","\u1d8c":"v","\u2c71":"v","\u1e7d":"v","\ua761":"vy","\u1e83":"w","\u0175":"w","\u1e85":"w","\u1e87":"w","\u1e89":"w","\u1e81":"w","\u2c73":"w","\u1e98":"w","\u1e8d":"x","\u1e8b":"x","\u1d8d":"x","\xfd":"y","\u0177":"y","\xff":"y","\u1e8f":"y","\u1ef5":"y","\u1ef3":"y","\u01b4":"y","\u1ef7":"y","\u1eff":"y","\u0233":"y","\u1e99":"y","\u024f":"y","\u1ef9":"y","\u017a":"z","\u017e":"z","\u1e91":"z","\u0291":"z","\u2c6c":"z","\u017c":"z","\u1e93":"z","\u0225":"z","\u1e95":"z","\u1d76":"z","\u1d8e":"z","\u0290":"z","\u01b6":"z","\u0240":"z","\ufb00":"ff","\ufb03":"ffi","\ufb04":"ffl","\ufb01":"fi","\ufb02":"fl","\u0133":"ij","\u0153":"oe","\ufb06":"st","\u2090":"a","\u2091":"e","\u1d62":"i","\u2c7c":"j","\u2092":"o","\u1d63":"r","\u1d64":"u","\u1d65":"v","\u2093":"x"}}return m(e,[{key:"transform",value:function(e){var t=this;return RM(e)?e.replace(/[^A-Za-z0-9]/g,function(e){return t.latinMap[e]||e}):e}}]),e}()).\u0275fac=function(e){return new(e||NM)},NM.\u0275pipe=wt({name:"latinise",type:NM,pure:!0}),NM),XM=((zM=function e(){A(this,e)}).\u0275fac=function(e){return new(e||zM)},zM.\u0275mod=mt({type:zM}),zM.\u0275inj=Fe({imports:[[]]}),zM),KM=((VM=function e(){A(this,e)}).\u0275fac=function(e){return new(e||VM)},VM.\u0275mod=mt({type:VM}),VM.\u0275inj=Fe({imports:[[]]}),VM),JM=((BM=function e(){A(this,e)}).\u0275fac=function(e){return new(e||BM)},BM.\u0275mod=mt({type:BM}),BM.\u0275inj=Fe({imports:[[]]}),BM),$M=((FM=function e(){A(this,e)}).\u0275fac=function(e){return new(e||FM)},FM.\u0275mod=mt({type:FM}),FM.\u0275inj=Fe({imports:[[]]}),FM),eT=((LM=function e(){A(this,e)}).\u0275fac=function(e){return new(e||LM)},LM.\u0275mod=mt({type:LM}),LM.\u0275inj=Fe({imports:[GM,XM,KM,JM,qM,$M]}),LM);function tT(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return n.length?n.some(function(t){return e[t]}):e.altKey||e.shiftKey||e.ctrlKey||e.metaKey}var nT=new xP(wP);function iT(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:nT;return function(n){return n.lift(new oT(e,t))}}var rT,oT=function(){function e(t,n){A(this,e),this.dueTime=t,this.scheduler=n}return m(e,[{key:"call",value:function(e,t){return t.subscribe(new aT(e,this.dueTime,this.scheduler))}}]),e}(),aT=function(e){r(n,e);var t=a(n);function n(e,i,r){var o;return A(this,n),(o=t.call(this,e)).dueTime=i,o.scheduler=r,o.debouncedSubscription=null,o.lastValue=null,o.hasValue=!1,o}return m(n,[{key:"_next",value:function(e){this.clearDebounce(),this.lastValue=e,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(sT,this.dueTime,this))}},{key:"_complete",value:function(){this.debouncedNext(),this.destination.complete()}},{key:"debouncedNext",value:function(){if(this.clearDebounce(),this.hasValue){var e=this.lastValue;this.lastValue=null,this.hasValue=!1,this.destination.next(e)}}},{key:"clearDebounce",value:function(){var e=this.debouncedSubscription;null!==e&&(this.remove(e),e.unsubscribe(),this.debouncedSubscription=null)}}]),n}(I);function sT(e){e.debouncedNext()}function lT(e){return null!=e&&""+e!="false"}function uT(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(e){return!isNaN(parseFloat(e))&&!isNaN(Number(e))}(e)?Number(e):t}function cT(e){return Array.isArray(e)?e:[e]}function dT(e){return null==e?"":"string"==typeof e?e:e+"px"}function hT(e){return e instanceof Cl?e.nativeElement:e}try{rT="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(dQ){rT=!1}var fT,pT,gT,vT,mT=function(){var e=function e(t){A(this,e),this._platformId=t,this.isBrowser=this._platformId?Qh(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!rT)&&"undefined"!=typeof CSS&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT};return e.\u0275fac=function(t){return new(t||e)(Ri(uc))},e.\u0275prov=Re({factory:function(){return new e(Ri(uc))},token:e,providedIn:"root"}),e}(),yT=((vT=function e(){A(this,e)}).\u0275fac=function(e){return new(e||vT)},vT.\u0275mod=mt({type:vT}),vT.\u0275inj=Fe({}),vT);function bT(e){return function(){if(null==fT&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){return fT=!0}}))}finally{fT=fT||!1}return fT}()?e:!!e.capture}function wT(e){if(function(){if(null==gT){var e="undefined"!=typeof document?document.head:null;gT=!(!e||!e.createShadowRoot&&!e.attachShadow)}return gT}()){var t=e.getRootNode?e.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&t instanceof ShadowRoot)return t}return null}var _T,kT,xT,AT,CT=((AT=function(){function e(){A(this,e)}return m(e,[{key:"create",value:function(e){return"undefined"==typeof MutationObserver?null:new MutationObserver(e)}}]),e}()).\u0275fac=function(e){return new(e||AT)},AT.\u0275prov=Re({factory:function(){return new AT},token:AT,providedIn:"root"}),AT),ST=((xT=function(){function e(t){A(this,e),this._mutationObserverFactory=t,this._observedElements=new Map}return m(e,[{key:"ngOnDestroy",value:function(){var e=this;this._observedElements.forEach(function(t,n){return e._cleanupObserver(n)})}},{key:"observe",value:function(e){var t=this,n=hT(e);return new V(function(e){var i=t._observeElement(n).subscribe(e);return function(){i.unsubscribe(),t._unobserveElement(n)}})}},{key:"_observeElement",value:function(e){if(this._observedElements.has(e))this._observedElements.get(e).count++;else{var t=new W,n=this._mutationObserverFactory.create(function(e){return t.next(e)});n&&n.observe(e,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(e,{observer:n,stream:t,count:1})}return this._observedElements.get(e).stream}},{key:"_unobserveElement",value:function(e){this._observedElements.has(e)&&(this._observedElements.get(e).count--,this._observedElements.get(e).count||this._cleanupObserver(e))}},{key:"_cleanupObserver",value:function(e){if(this._observedElements.has(e)){var t=this._observedElements.get(e),n=t.observer,i=t.stream;n&&n.disconnect(),i.complete(),this._observedElements.delete(e)}}}]),e}()).\u0275fac=function(e){return new(e||xT)(Ri(CT))},xT.\u0275prov=Re({factory:function(){return new xT(Ri(CT))},token:xT,providedIn:"root"}),xT),PT=((kT=function(){function e(t,n,i){A(this,e),this._contentObserver=t,this._elementRef=n,this._ngZone=i,this.event=new Fu,this._disabled=!1,this._currentSubscription=null}return m(e,[{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=lT(e),this._disabled?this._unsubscribe():this._subscribe()}},{key:"debounce",get:function(){return this._debounce},set:function(e){this._debounce=uT(e),this._subscribe()}},{key:"ngAfterContentInit",value:function(){this._currentSubscription||this.disabled||this._subscribe()}},{key:"ngOnDestroy",value:function(){this._unsubscribe()}},{key:"_subscribe",value:function(){var e=this;this._unsubscribe();var t=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(function(){e._currentSubscription=(e.debounce?t.pipe(iT(e.debounce)):t).subscribe(e.event)})}},{key:"_unsubscribe",value:function(){var e;null===(e=this._currentSubscription)||void 0===e||e.unsubscribe()}}]),e}()).\u0275fac=function(e){return new(e||kT)(rs(ST),rs(Cl),rs(Ac))},kT.\u0275dir=bt({type:kT,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),kT),ET=((_T=function e(){A(this,e)}).\u0275fac=function(e){return new(e||_T)},_T.\u0275mod=mt({type:_T}),_T.\u0275inj=Fe({providers:[CT]}),_T);function DT(e,t){return(e.getAttribute(t)||"").match(/\S+/g)||[]}var OT,MT=0,TT=new Map,IT=null,RT=((OT=function(){function e(t){A(this,e),this._document=t}return m(e,[{key:"describe",value:function(e,t,n){if(this._canBeDescribed(e,t)){var i=LT(t,n);"string"!=typeof t?(FT(t),TT.set(i,{messageElement:t,referenceCount:0})):TT.has(i)||this._createMessageElement(t,n),this._isElementDescribedByMessage(e,i)||this._addMessageReference(e,i)}}},{key:"removeDescription",value:function(e,t,n){if(t&&this._isElementNode(e)){var i=LT(t,n);if(this._isElementDescribedByMessage(e,i)&&this._removeMessageReference(e,i),"string"==typeof t){var r=TT.get(i);r&&0===r.referenceCount&&this._deleteMessageElement(i)}IT&&0===IT.childNodes.length&&this._deleteMessagesContainer()}}},{key:"ngOnDestroy",value:function(){for(var e=this._document.querySelectorAll("[cdk-describedby-host]"),t=0;t<e.length;t++)this._removeCdkDescribedByReferenceIds(e[t]),e[t].removeAttribute("cdk-describedby-host");IT&&this._deleteMessagesContainer(),TT.clear()}},{key:"_createMessageElement",value:function(e,t){var n=this._document.createElement("div");FT(n),n.textContent=e,t&&n.setAttribute("role",t),this._createMessagesContainer(),IT.appendChild(n),TT.set(LT(e,t),{messageElement:n,referenceCount:0})}},{key:"_deleteMessageElement",value:function(e){var t=TT.get(e),n=t&&t.messageElement;IT&&n&&IT.removeChild(n),TT.delete(e)}},{key:"_createMessagesContainer",value:function(){if(!IT){var e=this._document.getElementById("cdk-describedby-message-container");e&&e.parentNode&&e.parentNode.removeChild(e),(IT=this._document.createElement("div")).id="cdk-describedby-message-container",IT.style.visibility="hidden",IT.classList.add("cdk-visually-hidden"),this._document.body.appendChild(IT)}}},{key:"_deleteMessagesContainer",value:function(){IT&&IT.parentNode&&(IT.parentNode.removeChild(IT),IT=null)}},{key:"_removeCdkDescribedByReferenceIds",value:function(e){var t=DT(e,"aria-describedby").filter(function(e){return 0!=e.indexOf("cdk-describedby-message")});e.setAttribute("aria-describedby",t.join(" "))}},{key:"_addMessageReference",value:function(e,t){var n,i,r,o,a=TT.get(t);n=e,i="aria-describedby",r=a.messageElement.id,(o=DT(n,i)).some(function(e){return e.trim()==r.trim()})||(o.push(r.trim()),n.setAttribute(i,o.join(" "))),e.setAttribute("cdk-describedby-host",""),a.referenceCount++}},{key:"_removeMessageReference",value:function(e,t){var n,i,r,o,a=TT.get(t);a.referenceCount--,n=e,i="aria-describedby",r=a.messageElement.id,(o=DT(n,i).filter(function(e){return e!=r.trim()})).length?n.setAttribute(i,o.join(" ")):n.removeAttribute(i),e.removeAttribute("cdk-describedby-host")}},{key:"_isElementDescribedByMessage",value:function(e,t){var n=DT(e,"aria-describedby"),i=TT.get(t),r=i&&i.messageElement.id;return!!r&&-1!=n.indexOf(r)}},{key:"_canBeDescribed",value:function(e,t){if(!this._isElementNode(e))return!1;if(t&&"object"==typeof t)return!0;var n=null==t?"":(""+t).trim(),i=e.getAttribute("aria-label");return!(!n||i&&i.trim()===n)}},{key:"_isElementNode",value:function(e){return e.nodeType===this._document.ELEMENT_NODE}}]),e}()).\u0275fac=function(e){return new(e||OT)(Ri(od))},OT.\u0275prov=Re({factory:function(){return new OT(Ri(od))},token:OT,providedIn:"root"}),OT);function LT(e,t){return"string"==typeof e?"".concat(t||"","/").concat(e):e}function FT(e){e.id||(e.id="cdk-describedby-message-"+MT++)}var BT,VT=function(){function e(t){var n=this;A(this,e),this._items=t,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new W,this._typeaheadSubscription=O.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=function(e){return e.disabled},this._pressedLetters=[],this.tabOut=new W,this.change=new W,t instanceof Vu&&t.changes.subscribe(function(e){if(n._activeItem){var t=e.toArray().indexOf(n._activeItem);t>-1&&t!==n._activeItemIndex&&(n._activeItemIndex=t)}})}return m(e,[{key:"skipPredicate",value:function(e){return this._skipPredicateFn=e,this}},{key:"withWrap",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._wrap=e,this}},{key:"withVerticalOrientation",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._vertical=e,this}},{key:"withHorizontalOrientation",value:function(e){return this._horizontal=e,this}},{key:"withAllowedModifierKeys",value:function(e){return this._allowedModifierKeys=e,this}},{key:"withTypeAhead",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:200;return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(uw(function(t){return e._pressedLetters.push(t)}),iT(t),Ry(function(){return e._pressedLetters.length>0}),Y(function(){return e._pressedLetters.join("")})).subscribe(function(t){for(var n=e._getItemsArray(),i=1;i<n.length+1;i++){var r=(e._activeItemIndex+i)%n.length,o=n[r];if(!e._skipPredicateFn(o)&&0===o.getLabel().toUpperCase().trim().indexOf(t)){e.setActiveItem(r);break}}e._pressedLetters=[]}),this}},{key:"withHomeAndEnd",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._homeAndEnd=e,this}},{key:"setActiveItem",value:function(e){var t=this._activeItem;this.updateActiveItem(e),this._activeItem!==t&&this.change.next(this._activeItemIndex)}},{key:"onKeydown",value:function(e){var t=this,n=e.keyCode,i=["altKey","ctrlKey","metaKey","shiftKey"].every(function(n){return!e[n]||t._allowedModifierKeys.indexOf(n)>-1});switch(n){case 9:return void this.tabOut.next();case 40:if(this._vertical&&i){this.setNextItemActive();break}return;case 38:if(this._vertical&&i){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&i){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&i){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case 36:if(this._homeAndEnd&&i){this.setFirstItemActive();break}return;case 35:if(this._homeAndEnd&&i){this.setLastItemActive();break}return;default:return void((i||tT(e,"shiftKey"))&&(e.key&&1===e.key.length?this._letterKeyStream.next(e.key.toLocaleUpperCase()):(n>=65&&n<=90||n>=48&&n<=57)&&this._letterKeyStream.next(String.fromCharCode(n))))}this._pressedLetters=[],e.preventDefault()}},{key:"activeItemIndex",get:function(){return this._activeItemIndex}},{key:"activeItem",get:function(){return this._activeItem}},{key:"isTyping",value:function(){return this._pressedLetters.length>0}},{key:"setFirstItemActive",value:function(){this._setActiveItemByIndex(0,1)}},{key:"setLastItemActive",value:function(){this._setActiveItemByIndex(this._items.length-1,-1)}},{key:"setNextItemActive",value:function(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}},{key:"setPreviousItemActive",value:function(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}},{key:"updateActiveItem",value:function(e){var t=this._getItemsArray(),n="number"==typeof e?e:t.indexOf(e),i=t[n];this._activeItem=null==i?null:i,this._activeItemIndex=n}},{key:"_setActiveItemByDelta",value:function(e){this._wrap?this._setActiveInWrapMode(e):this._setActiveInDefaultMode(e)}},{key:"_setActiveInWrapMode",value:function(e){for(var t=this._getItemsArray(),n=1;n<=t.length;n++){var i=(this._activeItemIndex+e*n+t.length)%t.length;if(!this._skipPredicateFn(t[i]))return void this.setActiveItem(i)}}},{key:"_setActiveInDefaultMode",value:function(e){this._setActiveItemByIndex(this._activeItemIndex+e,e)}},{key:"_setActiveItemByIndex",value:function(e,t){var n=this._getItemsArray();if(n[e]){for(;this._skipPredicateFn(n[e]);)if(!n[e+=t])return;this.setActiveItem(e)}}},{key:"_getItemsArray",value:function(){return this._items instanceof Vu?this._items.toArray():this._items}}]),e}(),zT=function(e){r(n,e);var t=a(n);function n(){return A(this,n),t.apply(this,arguments)}return m(n,[{key:"setActiveItem",value:function(e){this.activeItem&&this.activeItem.setInactiveStyles(),i(c(n.prototype),"setActiveItem",this).call(this,e),this.activeItem&&this.activeItem.setActiveStyles()}}]),n}(VT),NT=function(e){r(n,e);var t=a(n);function n(){var e;return A(this,n),(e=t.apply(this,arguments))._origin="program",e}return m(n,[{key:"setFocusOrigin",value:function(e){return this._origin=e,this}},{key:"setActiveItem",value:function(e){i(c(n.prototype),"setActiveItem",this).call(this,e),this.activeItem&&this.activeItem.focus(this._origin)}}]),n}(VT),HT=((BT=function(){function e(t){A(this,e),this._platform=t}return m(e,[{key:"isDisabled",value:function(e){return e.hasAttribute("disabled")}},{key:"isVisible",value:function(e){return function(e){return!!(e.offsetWidth||e.offsetHeight||"function"==typeof e.getClientRects&&e.getClientRects().length)}(e)&&"visible"===getComputedStyle(e).visibility}},{key:"isTabbable",value:function(e){if(!this._platform.isBrowser)return!1;var t,n=function(e){try{return e.frameElement}catch(dQ){return null}}((t=e).ownerDocument&&t.ownerDocument.defaultView||window);if(n){if(-1===UT(n))return!1;if(!this.isVisible(n))return!1}var i=e.nodeName.toLowerCase(),r=UT(e);return e.hasAttribute("contenteditable")?-1!==r:"iframe"!==i&&"object"!==i&&!(this._platform.WEBKIT&&this._platform.IOS&&!function(e){var t=e.nodeName.toLowerCase(),n="input"===t&&e.type;return"text"===n||"password"===n||"select"===t||"textarea"===t}(e))&&("audio"===i?!!e.hasAttribute("controls")&&-1!==r:"video"===i?-1!==r&&(null!==r||this._platform.FIREFOX||e.hasAttribute("controls")):e.tabIndex>=0)}},{key:"isFocusable",value:function(e,t){return function(e){return!function(e){return function(e){return"input"==e.nodeName.toLowerCase()}(e)&&"hidden"==e.type}(e)&&(function(e){var t=e.nodeName.toLowerCase();return"input"===t||"select"===t||"button"===t||"textarea"===t}(e)||function(e){return function(e){return"a"==e.nodeName.toLowerCase()}(e)&&e.hasAttribute("href")}(e)||e.hasAttribute("contenteditable")||jT(e))}(e)&&!this.isDisabled(e)&&((null==t?void 0:t.ignoreVisibility)||this.isVisible(e))}}]),e}()).\u0275fac=function(e){return new(e||BT)(Ri(mT))},BT.\u0275prov=Re({factory:function(){return new BT(Ri(mT))},token:BT,providedIn:"root"}),BT);function jT(e){if(!e.hasAttribute("tabindex")||void 0===e.tabIndex)return!1;var t=e.getAttribute("tabindex");return"-32768"!=t&&!(!t||isNaN(parseInt(t,10)))}function UT(e){if(!jT(e))return null;var t=parseInt(e.getAttribute("tabindex")||"",10);return isNaN(t)?-1:t}var WT,GT=function(){function e(t,n,i,r){var o=this,a=arguments.length>4&&void 0!==arguments[4]&&arguments[4];A(this,e),this._element=t,this._checker=n,this._ngZone=i,this._document=r,this._hasAttached=!1,this.startAnchorListener=function(){return o.focusLastTabbableElement()},this.endAnchorListener=function(){return o.focusFirstTabbableElement()},this._enabled=!0,a||this.attachAnchors()}return m(e,[{key:"enabled",get:function(){return this._enabled},set:function(e){this._enabled=e,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(e,this._startAnchor),this._toggleAnchorTabIndex(e,this._endAnchor))}},{key:"destroy",value:function(){var e=this._startAnchor,t=this._endAnchor;e&&(e.removeEventListener("focus",this.startAnchorListener),e.parentNode&&e.parentNode.removeChild(e)),t&&(t.removeEventListener("focus",this.endAnchorListener),t.parentNode&&t.parentNode.removeChild(t)),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}},{key:"attachAnchors",value:function(){var e=this;return!!this._hasAttached||(this._ngZone.runOutsideAngular(function(){e._startAnchor||(e._startAnchor=e._createAnchor(),e._startAnchor.addEventListener("focus",e.startAnchorListener)),e._endAnchor||(e._endAnchor=e._createAnchor(),e._endAnchor.addEventListener("focus",e.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)}},{key:"focusInitialElementWhenReady",value:function(){var e=this;return new Promise(function(t){e._executeOnStable(function(){return t(e.focusInitialElement())})})}},{key:"focusFirstTabbableElementWhenReady",value:function(){var e=this;return new Promise(function(t){e._executeOnStable(function(){return t(e.focusFirstTabbableElement())})})}},{key:"focusLastTabbableElementWhenReady",value:function(){var e=this;return new Promise(function(t){e._executeOnStable(function(){return t(e.focusLastTabbableElement())})})}},{key:"_getRegionBoundary",value:function(e){for(var t=this._element.querySelectorAll("[cdk-focus-region-".concat(e,"], [cdkFocusRegion").concat(e,"], [cdk-focus-").concat(e,"]")),n=0;n<t.length;n++)t[n].hasAttribute("cdk-focus-"+e)?console.warn("Found use of deprecated attribute 'cdk-focus-".concat(e,"', use 'cdkFocusRegion").concat(e,"' instead. The deprecated attribute will be removed in 8.0.0."),t[n]):t[n].hasAttribute("cdk-focus-region-"+e)&&console.warn("Found use of deprecated attribute 'cdk-focus-region-".concat(e,"', use 'cdkFocusRegion").concat(e,"' instead. The deprecated attribute will be removed in 8.0.0."),t[n]);return"start"==e?t.length?t[0]:this._getFirstTabbableElement(this._element):t.length?t[t.length-1]:this._getLastTabbableElement(this._element)}},{key:"focusInitialElement",value:function(){var e=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(e){if(e.hasAttribute("cdk-focus-initial")&&console.warn("Found use of deprecated attribute 'cdk-focus-initial', use 'cdkFocusInitial' instead. The deprecated attribute will be removed in 8.0.0",e),!this._checker.isFocusable(e)){var t=this._getFirstTabbableElement(e);return null==t||t.focus(),!!t}return e.focus(),!0}return this.focusFirstTabbableElement()}},{key:"focusFirstTabbableElement",value:function(){var e=this._getRegionBoundary("start");return e&&e.focus(),!!e}},{key:"focusLastTabbableElement",value:function(){var e=this._getRegionBoundary("end");return e&&e.focus(),!!e}},{key:"hasAttached",value:function(){return this._hasAttached}},{key:"_getFirstTabbableElement",value:function(e){if(this._checker.isFocusable(e)&&this._checker.isTabbable(e))return e;for(var t=e.children||e.childNodes,n=0;n<t.length;n++){var i=t[n].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(t[n]):null;if(i)return i}return null}},{key:"_getLastTabbableElement",value:function(e){if(this._checker.isFocusable(e)&&this._checker.isTabbable(e))return e;for(var t=e.children||e.childNodes,n=t.length-1;n>=0;n--){var i=t[n].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(t[n]):null;if(i)return i}return null}},{key:"_createAnchor",value:function(){var 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}},{key:"_toggleAnchorTabIndex",value:function(e,t){e?t.setAttribute("tabindex","0"):t.removeAttribute("tabindex")}},{key:"toggleAnchors",value:function(e){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(e,this._startAnchor),this._toggleAnchorTabIndex(e,this._endAnchor))}},{key:"_executeOnStable",value:function(e){this._ngZone.isStable?e():this._ngZone.onStable.pipe(Hb(1)).subscribe(e)}}]),e}(),qT=((WT=function(){function e(t,n,i){A(this,e),this._checker=t,this._ngZone=n,this._document=i}return m(e,[{key:"create",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return new GT(e,this._checker,this._ngZone,this._document,t)}}]),e}()).\u0275fac=function(e){return new(e||WT)(Ri(HT),Ri(Ac),Ri(od))},WT.\u0275prov=Re({factory:function(){return new WT(Ri(HT),Ri(Ac),Ri(od))},token:WT,providedIn:"root"}),WT);"undefined"!=typeof Element&&Element;var YT,ZT=new mi("liveAnnouncerElement",{providedIn:"root",factory:function(){return null}}),QT=new mi("LIVE_ANNOUNCER_DEFAULT_OPTIONS"),XT=((YT=function(){function e(t,n,i,r){A(this,e),this._ngZone=n,this._defaultOptions=r,this._document=i,this._liveElement=t||this._createLiveElement()}return m(e,[{key:"announce",value:function(e){for(var t,n,i,r=this,o=this._defaultOptions,a=arguments.length,s=new Array(a>1?a-1:0),l=1;l<a;l++)s[l-1]=arguments[l];return 1===s.length&&"number"==typeof s[0]?i=s[0]:(n=(t=f(s,2))[0],i=t[1]),this.clear(),clearTimeout(this._previousTimeout),n||(n=o&&o.politeness?o.politeness:"polite"),null==i&&o&&(i=o.duration),this._liveElement.setAttribute("aria-live",n),this._ngZone.runOutsideAngular(function(){return new Promise(function(t){clearTimeout(r._previousTimeout),r._previousTimeout=setTimeout(function(){r._liveElement.textContent=e,t(),"number"==typeof i&&(r._previousTimeout=setTimeout(function(){return r.clear()},i))},100)})})}},{key:"clear",value:function(){this._liveElement&&(this._liveElement.textContent="")}},{key:"ngOnDestroy",value:function(){clearTimeout(this._previousTimeout),this._liveElement&&this._liveElement.parentNode&&(this._liveElement.parentNode.removeChild(this._liveElement),this._liveElement=null)}},{key:"_createLiveElement",value:function(){for(var e=this._document.getElementsByClassName("cdk-live-announcer-element"),t=this._document.createElement("div"),n=0;n<e.length;n++)e[n].parentNode.removeChild(e[n]);return t.classList.add("cdk-live-announcer-element"),t.classList.add("cdk-visually-hidden"),t.setAttribute("aria-atomic","true"),t.setAttribute("aria-live","polite"),this._document.body.appendChild(t),t}}]),e}()).\u0275fac=function(e){return new(e||YT)(Ri(ZT,8),Ri(Ac),Ri(od),Ri(QT,8))},YT.\u0275prov=Re({factory:function(){return new YT(Ri(ZT,8),Ri(Ac),Ri(od),Ri(QT,8))},token:YT,providedIn:"root"}),YT);function KT(e){return 0===e.buttons}function JT(e){var t=e.touches&&e.touches[0]||e.changedTouches&&e.changedTouches[0];return!(!t||-1!==t.identifier||null!=t.radiusX&&1!==t.radiusX||null!=t.radiusY&&1!==t.radiusY)}var $T,eI=new mi("cdk-focus-monitor-default-options"),tI=bT({passive:!0,capture:!0}),nI=(($T=function(){function e(t,n,i,r){var o=this;A(this,e),this._ngZone=t,this._platform=n,this._origin=null,this._windowFocused=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._documentKeydownListener=function(){o._lastTouchTarget=null,o._setOriginForCurrentEventQueue("keyboard")},this._documentMousedownListener=function(e){if(!o._lastTouchTarget){var t=KT(e)?"keyboard":"mouse";o._setOriginForCurrentEventQueue(t)}},this._documentTouchstartListener=function(e){JT(e)?o._lastTouchTarget||o._setOriginForCurrentEventQueue("keyboard"):(null!=o._touchTimeoutId&&clearTimeout(o._touchTimeoutId),o._lastTouchTarget=iI(e),o._touchTimeoutId=setTimeout(function(){return o._lastTouchTarget=null},650))},this._windowFocusListener=function(){o._windowFocused=!0,o._windowFocusTimeoutId=setTimeout(function(){return o._windowFocused=!1})},this._rootNodeFocusAndBlurListener=function(e){for(var t=iI(e),n="focus"===e.type?o._onFocus:o._onBlur,i=t;i;i=i.parentElement)n.call(o,e,i)},this._document=i,this._detectionMode=(null==r?void 0:r.detectionMode)||0}return m(e,[{key:"monitor",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=hT(e);if(!this._platform.isBrowser||1!==n.nodeType)return Ty(null);var i=wT(n)||this._getDocument(),r=this._elementInfo.get(n);if(r)return t&&(r.checkChildren=!0),r.subject;var o={checkChildren:t,subject:new W,rootNode:i};return this._elementInfo.set(n,o),this._registerGlobalListeners(o),o.subject}},{key:"stopMonitoring",value:function(e){var t=hT(e),n=this._elementInfo.get(t);n&&(n.subject.complete(),this._setClasses(t),this._elementInfo.delete(t),this._removeGlobalListeners(n))}},{key:"focusVia",value:function(e,t,n){var i=this,r=hT(e);r===this._getDocument().activeElement?this._getClosestElementsInfo(r).forEach(function(e){var n=f(e,2),r=n[0],o=n[1];return i._originChanged(r,t,o)}):(this._setOriginForCurrentEventQueue(t),"function"==typeof r.focus&&r.focus(n))}},{key:"ngOnDestroy",value:function(){var e=this;this._elementInfo.forEach(function(t,n){return e.stopMonitoring(n)})}},{key:"_getDocument",value:function(){return this._document||document}},{key:"_getWindow",value:function(){return this._getDocument().defaultView||window}},{key:"_toggleClass",value:function(e,t,n){n?e.classList.add(t):e.classList.remove(t)}},{key:"_getFocusOrigin",value:function(e){return this._origin?this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:this._wasCausedByTouch(e)?"touch":"program"}},{key:"_setClasses",value:function(e,t){this._toggleClass(e,"cdk-focused",!!t),this._toggleClass(e,"cdk-touch-focused","touch"===t),this._toggleClass(e,"cdk-keyboard-focused","keyboard"===t),this._toggleClass(e,"cdk-mouse-focused","mouse"===t),this._toggleClass(e,"cdk-program-focused","program"===t)}},{key:"_setOriginForCurrentEventQueue",value:function(e){var t=this;this._ngZone.runOutsideAngular(function(){t._origin=e,0===t._detectionMode&&(t._originTimeoutId=setTimeout(function(){return t._origin=null},1))})}},{key:"_wasCausedByTouch",value:function(e){var t=iI(e);return this._lastTouchTarget instanceof Node&&t instanceof Node&&(t===this._lastTouchTarget||t.contains(this._lastTouchTarget))}},{key:"_onFocus",value:function(e,t){var n=this._elementInfo.get(t);n&&(n.checkChildren||t===iI(e))&&this._originChanged(t,this._getFocusOrigin(e),n)}},{key:"_onBlur",value:function(e,t){var n=this._elementInfo.get(t);!n||n.checkChildren&&e.relatedTarget instanceof Node&&t.contains(e.relatedTarget)||(this._setClasses(t),this._emitOrigin(n.subject,null))}},{key:"_emitOrigin",value:function(e,t){this._ngZone.run(function(){return e.next(t)})}},{key:"_registerGlobalListeners",value:function(e){var t=this;if(this._platform.isBrowser){var n=e.rootNode,i=this._rootNodeFocusListenerCount.get(n)||0;i||this._ngZone.runOutsideAngular(function(){n.addEventListener("focus",t._rootNodeFocusAndBlurListener,tI),n.addEventListener("blur",t._rootNodeFocusAndBlurListener,tI)}),this._rootNodeFocusListenerCount.set(n,i+1),1==++this._monitoredElementCount&&this._ngZone.runOutsideAngular(function(){var e=t._getDocument(),n=t._getWindow();e.addEventListener("keydown",t._documentKeydownListener,tI),e.addEventListener("mousedown",t._documentMousedownListener,tI),e.addEventListener("touchstart",t._documentTouchstartListener,tI),n.addEventListener("focus",t._windowFocusListener)})}}},{key:"_removeGlobalListeners",value:function(e){var t=e.rootNode;if(this._rootNodeFocusListenerCount.has(t)){var n=this._rootNodeFocusListenerCount.get(t);n>1?this._rootNodeFocusListenerCount.set(t,n-1):(t.removeEventListener("focus",this._rootNodeFocusAndBlurListener,tI),t.removeEventListener("blur",this._rootNodeFocusAndBlurListener,tI),this._rootNodeFocusListenerCount.delete(t))}if(!--this._monitoredElementCount){var i=this._getDocument(),r=this._getWindow();i.removeEventListener("keydown",this._documentKeydownListener,tI),i.removeEventListener("mousedown",this._documentMousedownListener,tI),i.removeEventListener("touchstart",this._documentTouchstartListener,tI),r.removeEventListener("focus",this._windowFocusListener),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._touchTimeoutId),clearTimeout(this._originTimeoutId)}}},{key:"_originChanged",value:function(e,t,n){this._setClasses(e,t),this._emitOrigin(n.subject,t),this._lastFocusOrigin=t}},{key:"_getClosestElementsInfo",value:function(e){var t=[];return this._elementInfo.forEach(function(n,i){(i===e||n.checkChildren&&i.contains(e))&&t.push([i,n])}),t}}]),e}()).\u0275fac=function(e){return new(e||$T)(Ri(Ac),Ri(mT),Ri(od,8),Ri(eI,8))},$T.\u0275prov=Re({factory:function(){return new $T(Ri(Ac),Ri(mT),Ri(od,8),Ri(eI,8))},token:$T,providedIn:"root"}),$T);function iI(e){return e.composedPath?e.composedPath()[0]:e.target}var rI,oI,aI,sI,lI=((oI=function(){function e(t,n){A(this,e),this._platform=t,this._document=n}return m(e,[{key:"getHighContrastMode",value:function(){if(!this._platform.isBrowser)return 0;var e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);var t=this._document.defaultView||window,n=t&&t.getComputedStyle?t.getComputedStyle(e):null,i=(n&&n.backgroundColor||"").replace(/ /g,"");switch(this._document.body.removeChild(e),i){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}},{key:"_applyBodyHighContrastModeCssClasses",value:function(){if(this._platform.isBrowser&&this._document.body){var e=this._document.body.classList;e.remove("cdk-high-contrast-active"),e.remove("cdk-high-contrast-black-on-white"),e.remove("cdk-high-contrast-white-on-black");var t=this.getHighContrastMode();1===t?(e.add("cdk-high-contrast-active"),e.add("cdk-high-contrast-black-on-white")):2===t&&(e.add("cdk-high-contrast-active"),e.add("cdk-high-contrast-white-on-black"))}}}]),e}()).\u0275fac=function(e){return new(e||oI)(Ri(mT),Ri(od))},oI.\u0275prov=Re({factory:function(){return new oI(Ri(mT),Ri(od))},token:oI,providedIn:"root"}),oI),uI=((rI=function e(t){A(this,e),t._applyBodyHighContrastModeCssClasses()}).\u0275fac=function(e){return new(e||rI)(Ri(lI))},rI.\u0275mod=mt({type:rI}),rI.\u0275inj=Fe({imports:[[yT,ET]]}),rI),cI=new mi("cdk-dir-doc",{providedIn:"root",factory:function(){return Li(od)}}),dI=((sI=function(){function e(t){if(A(this,e),this.value="ltr",this.change=new Fu,t){var n=t.documentElement?t.documentElement.dir:null,i=(t.body?t.body.dir:null)||n;this.value="ltr"===i||"rtl"===i?i:"ltr"}}return m(e,[{key:"ngOnDestroy",value:function(){this.change.complete()}}]),e}()).\u0275fac=function(e){return new(e||sI)(Ri(cI,8))},sI.\u0275prov=Re({factory:function(){return new sI(Ri(cI,8))},token:sI,providedIn:"root"}),sI),hI=((aI=function e(){A(this,e)}).\u0275fac=function(e){return new(e||aI)},aI.\u0275mod=mt({type:aI}),aI.\u0275inj=Fe({}),aI),fI=new Ml("11.2.5");function pI(e,t){if(1&e&&us(0,"mat-pseudo-checkbox",4),2&e){var n=ks();os("state",n.selected?"checked":"unchecked")("disabled",n.disabled)}}function gI(e,t){if(1&e&&(ss(0,"span",5),Qs(1),ls()),2&e){var n=ks();xo(1),Ks("(",n.group.label,")")}}var vI,mI=["*"],yI=function(){var e=function e(){A(this,e)};return 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)",e}(),bI=function(){var e=function e(){A(this,e)};return e.COMPLEX="375ms",e.ENTERING="225ms",e.EXITING="195ms",e}(),wI=new Ml("11.2.5"),_I=new mi("mat-sanity-checks",{providedIn:"root",factory:function(){return!0}}),kI=((vI=function(){function e(t,n,i){A(this,e),this._hasDoneGlobalChecks=!1,this._document=i,t._applyBodyHighContrastModeCssClasses(),this._sanityChecks=n,this._hasDoneGlobalChecks||(this._checkDoctypeIsDefined(),this._checkThemeIsPresent(),this._checkCdkVersionMatch(),this._hasDoneGlobalChecks=!0)}return m(e,[{key:"_getWindow",value:function(){var e=this._document.defaultView||window;return"object"==typeof e&&e?e:null}},{key:"_checksAreEnabled",value:function(){return Bc()&&!this._isTestEnv()}},{key:"_isTestEnv",value:function(){var e=this._getWindow();return e&&(e.__karma__||e.jasmine)}},{key:"_checkDoctypeIsDefined",value:function(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.doctype)&&!this._document.doctype&&console.warn("Current document does not have a doctype. This may cause some Angular Material components not to behave as expected.")}},{key:"_checkThemeIsPresent",value:function(){if(this._checksAreEnabled()&&!1!==this._sanityChecks&&this._sanityChecks.theme&&this._document.body&&"function"==typeof getComputedStyle){var e=this._document.createElement("div");e.classList.add("mat-theme-loaded-marker"),this._document.body.appendChild(e);var t=getComputedStyle(e);t&&"none"!==t.display&&console.warn("Could not find Angular Material core theme. Most Material components may not work as expected. For more info refer to the theming guide: https://material.angular.io/guide/theming"),this._document.body.removeChild(e)}}},{key:"_checkCdkVersionMatch",value:function(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.version)&&wI.full!==fI.full&&console.warn("The Angular Material version ("+wI.full+") does not match the Angular CDK version ("+fI.full+").\nPlease ensure the versions of these two packages exactly match.")}}]),e}()).\u0275fac=function(e){return new(e||vI)(Ri(lI),Ri(_I,8),Ri(od))},vI.\u0275mod=mt({type:vI}),vI.\u0275inj=Fe({imports:[[hI],hI]}),vI);function xI(e){return function(e){r(n,e);var t=a(n);function n(){var e;A(this,n);for(var i=arguments.length,r=new Array(i),o=0;o<i;o++)r[o]=arguments[o];return(e=t.call.apply(t,[this].concat(r)))._disabled=!1,e}return m(n,[{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=lT(e)}}]),n}(e)}function AI(e,t){return function(e){r(i,e);var n=a(i);function i(){var e;A(this,i);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return(e=n.call.apply(n,[this].concat(o))).defaultColor=t,e.color=t,e}return m(i,[{key:"color",get:function(){return this._color},set:function(e){var t=e||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)}}]),i}(e)}function CI(e){return function(e){r(n,e);var t=a(n);function n(){var e;A(this,n);for(var i=arguments.length,r=new Array(i),o=0;o<i;o++)r[o]=arguments[o];return(e=t.call.apply(t,[this].concat(r)))._disableRipple=!1,e}return m(n,[{key:"disableRipple",get:function(){return this._disableRipple},set:function(e){this._disableRipple=lT(e)}}]),n}(e)}function SI(e){return function(e){r(n,e);var t=a(n);function n(){var e;A(this,n);for(var i=arguments.length,r=new Array(i),o=0;o<i;o++)r[o]=arguments[o];return(e=t.call.apply(t,[this].concat(r)))._isInitialized=!1,e._pendingSubscribers=[],e.initialized=new V(function(t){e._isInitialized?e._notifySubscriber(t):e._pendingSubscribers.push(t)}),e}return m(n,[{key:"_markInitialized",value:function(){this._isInitialized=!0,this._pendingSubscribers.forEach(this._notifySubscriber),this._pendingSubscribers=null}},{key:"_notifySubscriber",value:function(e){e.next(),e.complete()}}]),n}(e)}try{"undefined"!=typeof Intl}catch(dQ){!1}var PI,EI,DI,OI,MI,TI,II,RI,LI,FI=((EI=function(){function e(){A(this,e)}return m(e,[{key:"isErrorState",value:function(e,t){return!!(e&&e.invalid&&(e.touched||t&&t.submitted))}}]),e}()).\u0275fac=function(e){return new(e||EI)},EI.\u0275prov=Re({factory:function(){return new EI},token:EI,providedIn:"root"}),EI),BI=((PI=function e(){A(this,e)}).\u0275fac=function(e){return new(e||PI)},PI.\u0275mod=mt({type:PI}),PI.\u0275inj=Fe({imports:[[kI],kI]}),PI),VI=function(){function e(t,n,i){A(this,e),this._renderer=t,this.element=n,this.config=i,this.state=3}return m(e,[{key:"fadeOut",value:function(){this._renderer.fadeOutRipple(this)}}]),e}(),zI={enterDuration:450,exitDuration:400},NI=bT({passive:!0}),HI=["mousedown","touchstart"],jI=["mouseup","mouseleave","touchend","touchcancel"],UI=function(){function e(t,n,i,r){A(this,e),this._target=t,this._ngZone=n,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,r.isBrowser&&(this._containerElement=hT(i))}return m(e,[{key:"fadeInRipple",value:function(e,t){var n=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),o=Object.assign(Object.assign({},zI),i.animation);i.centered&&(e=r.left+r.width/2,t=r.top+r.height/2);var a=i.radius||function(e,t,n){var i=Math.max(Math.abs(e-n.left),Math.abs(e-n.right)),r=Math.max(Math.abs(t-n.top),Math.abs(t-n.bottom));return Math.sqrt(i*i+r*r)}(e,t,r),s=e-r.left,l=t-r.top,u=o.enterDuration,c=document.createElement("div");c.classList.add("mat-ripple-element"),c.style.left=s-a+"px",c.style.top=l-a+"px",c.style.height=2*a+"px",c.style.width=2*a+"px",null!=i.color&&(c.style.backgroundColor=i.color),c.style.transitionDuration=u+"ms",this._containerElement.appendChild(c),window.getComputedStyle(c).getPropertyValue("opacity"),c.style.transform="scale(1)";var d=new VI(this,c,i);return d.state=0,this._activeRipples.add(d),i.persistent||(this._mostRecentTransientRipple=d),this._runTimeoutOutsideZone(function(){var e=d===n._mostRecentTransientRipple;d.state=1,i.persistent||e&&n._isPointerDown||d.fadeOut()},u),d}},{key:"fadeOutRipple",value:function(e){var t=this._activeRipples.delete(e);if(e===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),t){var n=e.element,i=Object.assign(Object.assign({},zI),e.config.animation);n.style.transitionDuration=i.exitDuration+"ms",n.style.opacity="0",e.state=2,this._runTimeoutOutsideZone(function(){e.state=3,n.parentNode.removeChild(n)},i.exitDuration)}}},{key:"fadeOutAll",value:function(){this._activeRipples.forEach(function(e){return e.fadeOut()})}},{key:"setupTriggerEvents",value:function(e){var t=hT(e);t&&t!==this._triggerElement&&(this._removeTriggerEvents(),this._triggerElement=t,this._registerEvents(HI))}},{key:"handleEvent",value:function(e){"mousedown"===e.type?this._onMousedown(e):"touchstart"===e.type?this._onTouchStart(e):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(jI),this._pointerUpEventsRegistered=!0)}},{key:"_onMousedown",value:function(e){var t=KT(e),n=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+800;this._target.rippleDisabled||t||n||(this._isPointerDown=!0,this.fadeInRipple(e.clientX,e.clientY,this._target.rippleConfig))}},{key:"_onTouchStart",value:function(e){if(!this._target.rippleDisabled&&!JT(e)){this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0;for(var t=e.changedTouches,n=0;n<t.length;n++)this.fadeInRipple(t[n].clientX,t[n].clientY,this._target.rippleConfig)}}},{key:"_onPointerUp",value:function(){this._isPointerDown&&(this._isPointerDown=!1,this._activeRipples.forEach(function(e){!e.config.persistent&&(1===e.state||e.config.terminateOnPointerUp&&0===e.state)&&e.fadeOut()}))}},{key:"_runTimeoutOutsideZone",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this._ngZone.runOutsideAngular(function(){return setTimeout(e,t)})}},{key:"_registerEvents",value:function(e){var t=this;this._ngZone.runOutsideAngular(function(){e.forEach(function(e){t._triggerElement.addEventListener(e,t,NI)})})}},{key:"_removeTriggerEvents",value:function(){var e=this;this._triggerElement&&(HI.forEach(function(t){e._triggerElement.removeEventListener(t,e,NI)}),this._pointerUpEventsRegistered&&jI.forEach(function(t){e._triggerElement.removeEventListener(t,e,NI)}))}}]),e}(),WI=new mi("mat-ripple-global-options"),GI=((TI=function(){function e(t,n,i,r,o){A(this,e),this._elementRef=t,this._animationMode=o,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=r||{},this._rippleRenderer=new UI(this,n,t,i)}return m(e,[{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=e,this._setupTriggerEventsIfEnabled()}},{key:"trigger",get:function(){return this._trigger||this._elementRef.nativeElement},set:function(e){this._trigger=e,this._setupTriggerEventsIfEnabled()}},{key:"ngOnInit",value:function(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}},{key:"ngOnDestroy",value:function(){this._rippleRenderer._removeTriggerEvents()}},{key:"fadeOutAll",value:function(){this._rippleRenderer.fadeOutAll()}},{key:"rippleConfig",get:function(){return{centered:this.centered,radius:this.radius,color:this.color,animation:Object.assign(Object.assign(Object.assign({},this._globalOptions.animation),"NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}},{key:"rippleDisabled",get:function(){return this.disabled||!!this._globalOptions.disabled}},{key:"_setupTriggerEventsIfEnabled",value:function(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}},{key:"launch",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0;return"number"==typeof e?this._rippleRenderer.fadeInRipple(e,t,Object.assign(Object.assign({},this.rippleConfig),n)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),e))}}]),e}()).\u0275fac=function(e){return new(e||TI)(rs(Cl),rs(Ac),rs(mT),rs(WI,8),rs(_v,8))},TI.\u0275dir=bt({type:TI,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(e,t){2&e&&Fs("mat-ripple-unbounded",t.unbounded)},inputs:{radius:["matRippleRadius","radius"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"],color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],animation:["matRippleAnimation","animation"]},exportAs:["matRipple"]}),TI),qI=((MI=function e(){A(this,e)}).\u0275fac=function(e){return new(e||MI)},MI.\u0275mod=mt({type:MI}),MI.\u0275inj=Fe({imports:[[kI,yT],kI]}),MI),YI=((OI=function e(t){A(this,e),this._animationMode=t,this.state="unchecked",this.disabled=!1}).\u0275fac=function(e){return new(e||OI)(rs(_v,8))},OI.\u0275cmp=ft({type:OI,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(e,t){2&e&&Fs("mat-pseudo-checkbox-indeterminate","indeterminate"===t.state)("mat-pseudo-checkbox-checked","checked"===t.state)("mat-pseudo-checkbox-disabled",t.disabled)("_mat-animation-noopable","NoopAnimations"===t._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(e,t){},styles:['.mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:transparent}._mat-animation-noopable.mat-pseudo-checkbox{transition:none;animation:none}._mat-animation-noopable.mat-pseudo-checkbox::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}\n'],encapsulation:2,changeDetection:0}),OI),ZI=((DI=function e(){A(this,e)}).\u0275fac=function(e){return new(e||DI)},DI.\u0275mod=mt({type:DI}),DI.\u0275inj=Fe({imports:[[kI]]}),DI),QI=new mi("MAT_OPTION_PARENT_COMPONENT"),XI=xI(function e(){A(this,e)}),KI=0,JI=((II=function(e){r(n,e);var t=a(n);function n(e){var i,r;return A(this,n),(i=t.call(this))._labelId="mat-optgroup-label-"+KI++,i._inert=null!==(r=null==e?void 0:e.inertGroups)&&void 0!==r&&r,i}return n}(XI)).\u0275fac=function(e){return new(e||II)(rs(QI,8))},II.\u0275dir=bt({type:II,inputs:{label:"label"},features:[Va]}),II),$I=new mi("MatOptgroup"),eR=0,tR=function e(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];A(this,e),this.source=t,this.isUserInput=n},nR=((LI=function(){function e(t,n,i,r){A(this,e),this._element=t,this._changeDetectorRef=n,this._parent=i,this.group=r,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+eR++,this.onSelectionChange=new Fu,this._stateChanges=new W}return m(e,[{key:"multiple",get:function(){return this._parent&&this._parent.multiple}},{key:"selected",get:function(){return this._selected}},{key:"disabled",get:function(){return this.group&&this.group.disabled||this._disabled},set:function(e){this._disabled=lT(e)}},{key:"disableRipple",get:function(){return this._parent&&this._parent.disableRipple}},{key:"active",get:function(){return this._active}},{key:"viewValue",get:function(){return(this._getHostElement().textContent||"").trim()}},{key:"select",value:function(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}},{key:"deselect",value:function(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}},{key:"focus",value:function(e,t){var n=this._getHostElement();"function"==typeof n.focus&&n.focus(t)}},{key:"setActiveStyles",value:function(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}},{key:"setInactiveStyles",value:function(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}},{key:"getLabel",value:function(){return this.viewValue}},{key:"_handleKeydown",value:function(e){13!==e.keyCode&&32!==e.keyCode||tT(e)||(this._selectViaInteraction(),e.preventDefault())}},{key:"_selectViaInteraction",value:function(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}},{key:"_getAriaSelected",value:function(){return this.selected||!this.multiple&&null}},{key:"_getTabIndex",value:function(){return this.disabled?"-1":"0"}},{key:"_getHostElement",value:function(){return this._element.nativeElement}},{key:"ngAfterViewChecked",value:function(){if(this._selected){var e=this.viewValue;e!==this._mostRecentViewValue&&(this._mostRecentViewValue=e,this._stateChanges.next())}}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}},{key:"_emitSelectionChangeEvent",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.onSelectionChange.emit(new tR(this,e))}}]),e}()).\u0275fac=function(e){return new(e||LI)(rs(Cl),rs(Kl),rs(void 0),rs(JI))},LI.\u0275dir=bt({type:LI,inputs:{id:"id",disabled:"disabled",value:"value"},outputs:{onSelectionChange:"onSelectionChange"}}),LI),iR=((RI=function(e){r(n,e);var t=a(n);function n(e,i,r,o){return A(this,n),t.call(this,e,i,r,o)}return n}(nR)).\u0275fac=function(e){return new(e||RI)(rs(Cl),rs(Kl),rs(QI,8),rs($I,8))},RI.\u0275cmp=ft({type:RI,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(e,t){1&e&&ms("click",function(){return t._selectViaInteraction()})("keydown",function(e){return t._handleKeydown(e)}),2&e&&(nl("id",t.id),$a("tabindex",t._getTabIndex())("aria-selected",t._getAriaSelected())("aria-disabled",t.disabled.toString()),Fs("mat-selected",t.selected)("mat-option-multiple",t.multiple)("mat-active",t.active)("mat-option-disabled",t.disabled))},exportAs:["matOption"],features:[Va],ngContentSelectors:mI,decls:5,vars:4,consts:[["class","mat-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mat-option-text"],["class","cdk-visually-hidden",4,"ngIf"],["mat-ripple","",1,"mat-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-option-pseudo-checkbox",3,"state","disabled"],[1,"cdk-visually-hidden"]],template:function(e,t){1&e&&(As(),ns(0,pI,1,2,"mat-pseudo-checkbox",0),ss(1,"span",1),Cs(2),ls(),ns(3,gI,2,1,"span",2),us(4,"div",3)),2&e&&(os("ngIf",t.multiple),xo(3),os("ngIf",t.group&&t.group._inert),xo(1),os("matRippleTrigger",t._getHostElement())("matRippleDisabled",t.disabled||t.disableRipple))},directives:[mh,GI,YI],styles:[".mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:transparent}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.cdk-high-contrast-active .mat-option{margin:0 1px}.cdk-high-contrast-active .mat-option.mat-active{border:solid 1px currentColor;margin:0}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}\n"],encapsulation:2,changeDetection:0}),RI);function rR(e,t,n){if(n.length){for(var i=t.toArray(),r=n.toArray(),o=0,a=0;a<e+1;a++)i[a].group&&i[a].group===r[o]&&o++;return o}return 0}var oR,aR=((oR=function e(){A(this,e)}).\u0275fac=function(e){return new(e||oR)},oR.\u0275mod=mt({type:oR}),oR.\u0275inj=Fe({imports:[[qI,Zh,kI,ZI]]}),oR),sR=function(e){r(n,e);var t=a(n);function n(e,i){var r;return A(this,n),(r=t.call(this,e,i)).scheduler=e,r.work=i,r}return m(n,[{key:"requestAsyncId",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null!==r&&r>0?i(c(n.prototype),"requestAsyncId",this).call(this,e,t,r):(e.actions.push(this),e.scheduled||(e.scheduled=requestAnimationFrame(function(){return e.flush(null)})))}},{key:"recycleAsyncId",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==r&&r>0||null===r&&this.delay>0)return i(c(n.prototype),"recycleAsyncId",this).call(this,e,t,r);0===e.actions.length&&(cancelAnimationFrame(t),e.scheduled=void 0)}}]),n}(wP),lR=new(function(e){r(n,e);var t=a(n);function n(){return A(this,n),t.apply(this,arguments)}return m(n,[{key:"flush",value:function(e){this.active=!0,this.scheduled=void 0;var t,n=this.actions,i=-1,r=n.length;e=e||n.shift();do{if(t=e.execute(e.state,e.delay))break}while(++i<r&&(e=n.shift()));if(this.active=!1,t){for(;++i<r&&(e=n.shift());)e.unsubscribe();throw t}}}]),n}(xP))(sR),uR=1,cR=Promise.resolve(),dR={};function hR(e){return e in dR&&(delete dR[e],!0)}var fR=function(e){var t=uR++;return dR[t]=!0,cR.then(function(){return hR(t)&&e()}),t},pR=function(e){hR(e)},gR=function(e){r(n,e);var t=a(n);function n(e,i){var r;return A(this,n),(r=t.call(this,e,i)).scheduler=e,r.work=i,r}return m(n,[{key:"requestAsyncId",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null!==r&&r>0?i(c(n.prototype),"requestAsyncId",this).call(this,e,t,r):(e.actions.push(this),e.scheduled||(e.scheduled=fR(e.flush.bind(e,null))))}},{key:"recycleAsyncId",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==r&&r>0||null===r&&this.delay>0)return i(c(n.prototype),"recycleAsyncId",this).call(this,e,t,r);0===e.actions.length&&(pR(t),e.scheduled=void 0)}}]),n}(wP),vR=new(function(e){r(n,e);var t=a(n);function n(){return A(this,n),t.apply(this,arguments)}return m(n,[{key:"flush",value:function(e){this.active=!0,this.scheduled=void 0;var t,n=this.actions,i=-1,r=n.length;e=e||n.shift();do{if(t=e.execute(e.state,e.delay))break}while(++i<r&&(e=n.shift()));if(this.active=!1,t){for(;++i<r&&(e=n.shift());)e.unsubscribe();throw t}}}]),n}(xP))(gR),mR=function(){function e(t){A(this,e),this.durationSelector=t}return m(e,[{key:"call",value:function(e,t){return t.subscribe(new yR(e,this.durationSelector))}}]),e}(),yR=function(e){r(n,e);var t=a(n);function n(e,i){var r;return A(this,n),(r=t.call(this,e)).durationSelector=i,r.hasValue=!1,r}return m(n,[{key:"_next",value:function(e){if(this.value=e,this.hasValue=!0,!this.throttled){var t;try{t=(0,this.durationSelector)(e)}catch(i){return this.destination.error(i)}var n=ae(t,new re(this));!n||n.closed?this.clearThrottle():this.add(this.throttled=n)}}},{key:"clearThrottle",value:function(){var e=this.value,t=this.hasValue,n=this.throttled;n&&(this.remove(n),this.throttled=void 0,n.unsubscribe()),t&&(this.value=void 0,this.hasValue=!1,this.destination.next(e))}},{key:"notifyNext",value:function(){this.clearThrottle()}},{key:"notifyComplete",value:function(){this.clearThrottle()}}]),n}(oe);function bR(e){return!S(e)&&e-parseFloat(e)+1>=0}function wR(e){var t=e.index,n=e.period,i=e.subscriber;if(i.next(t),!i.closed){if(-1===n)return i.complete();e.index=t+1,this.schedule(e,n)}}function _R(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:nT;return t=function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,i=-1;return bR(t)?i=Number(t)<1?1:Number(t):q(t)&&(n=t),q(n)||(n=nT),new V(function(t){var r=bR(e)?e:+e-n.now();return n.schedule(wR,r,{index:0,period:i,subscriber:t})})}(e,n)},function(e){return e.lift(new mR(t))}}function kR(e){return function(t){return t.lift(new PR(e))}}var xR,AR,CR,SR,PR=function(){function e(t){A(this,e),this.notifier=t}return m(e,[{key:"call",value:function(e,t){var n=new ER(e),i=ae(this.notifier,new re(n));return i&&!n.seenValue?(n.add(i),t.subscribe(n)):n}}]),e}(),ER=function(e){r(n,e);var t=a(n);function n(e){var i;return A(this,n),(i=t.call(this,e)).seenValue=!1,i}return m(n,[{key:"notifyNext",value:function(){this.seenValue=!0,this.complete()}},{key:"notifyComplete",value:function(){}}]),n}(oe),DR=function(){function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]&&arguments[0],i=arguments.length>1?arguments[1]:void 0,r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];A(this,e),this._multiple=n,this._emitChanges=r,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new W,i&&i.length&&(n?i.forEach(function(e){return t._markSelected(e)}):this._markSelected(i[0]),this._selectedToEmit.length=0)}return m(e,[{key:"selected",get:function(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}},{key:"select",value:function(){for(var e=this,t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];this._verifyValueAssignment(n),n.forEach(function(t){return e._markSelected(t)}),this._emitChangeEvent()}},{key:"deselect",value:function(){for(var e=this,t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];this._verifyValueAssignment(n),n.forEach(function(t){return e._unmarkSelected(t)}),this._emitChangeEvent()}},{key:"toggle",value:function(e){this.isSelected(e)?this.deselect(e):this.select(e)}},{key:"clear",value:function(){this._unmarkAll(),this._emitChangeEvent()}},{key:"isSelected",value:function(e){return this._selection.has(e)}},{key:"isEmpty",value:function(){return 0===this._selection.size}},{key:"hasValue",value:function(){return!this.isEmpty()}},{key:"sort",value:function(e){this._multiple&&this.selected&&this._selected.sort(e)}},{key:"isMultipleSelection",value:function(){return this._multiple}},{key:"_emitChangeEvent",value:function(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}},{key:"_markSelected",value:function(e){this.isSelected(e)||(this._multiple||this._unmarkAll(),this._selection.add(e),this._emitChanges&&this._selectedToEmit.push(e))}},{key:"_unmarkSelected",value:function(e){this.isSelected(e)&&(this._selection.delete(e),this._emitChanges&&this._deselectedToEmit.push(e))}},{key:"_unmarkAll",value:function(){var e=this;this.isEmpty()||this._selection.forEach(function(t){return e._unmarkSelected(t)})}},{key:"_verifyValueAssignment",value:function(e){}}]),e}(),OR=((SR=function(){function e(t,n,i){A(this,e),this._ngZone=t,this._platform=n,this._scrolled=new W,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=i}return m(e,[{key:"register",value:function(e){var t=this;this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe(function(){return t._scrolled.next(e)}))}},{key:"deregister",value:function(e){var t=this.scrollContainers.get(e);t&&(t.unsubscribe(),this.scrollContainers.delete(e))}},{key:"scrolled",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:20;return this._platform.isBrowser?new V(function(n){e._globalSubscription||e._addGlobalListener();var i=t>0?e._scrolled.pipe(_R(t)).subscribe(n):e._scrolled.subscribe(n);return e._scrolledCount++,function(){i.unsubscribe(),e._scrolledCount--,e._scrolledCount||e._removeGlobalListener()}}):Ty()}},{key:"ngOnDestroy",value:function(){var e=this;this._removeGlobalListener(),this.scrollContainers.forEach(function(t,n){return e.deregister(n)}),this._scrolled.complete()}},{key:"ancestorScrolled",value:function(e,t){var n=this.getAncestorScrollContainers(e);return this.scrolled(t).pipe(Ry(function(e){return!e||n.indexOf(e)>-1}))}},{key:"getAncestorScrollContainers",value:function(e){var t=this,n=[];return this.scrollContainers.forEach(function(i,r){t._scrollableContainsElement(r,e)&&n.push(r)}),n}},{key:"_getWindow",value:function(){return this._document.defaultView||window}},{key:"_scrollableContainsElement",value:function(e,t){var n=hT(t),i=e.getElementRef().nativeElement;do{if(n==i)return!0}while(n=n.parentElement);return!1}},{key:"_addGlobalListener",value:function(){var e=this;this._globalSubscription=this._ngZone.runOutsideAngular(function(){return Sx(e._getWindow().document,"scroll").subscribe(function(){return e._scrolled.next()})})}},{key:"_removeGlobalListener",value:function(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}]),e}()).\u0275fac=function(e){return new(e||SR)(Ri(Ac),Ri(mT),Ri(od,8))},SR.\u0275prov=Re({factory:function(){return new SR(Ri(Ac),Ri(mT),Ri(od,8))},token:SR,providedIn:"root"}),SR),MR=((CR=function(){function e(t,n,i){var r=this;A(this,e),this._platform=t,this._change=new W,this._changeListener=function(e){r._change.next(e)},this._document=i,n.runOutsideAngular(function(){if(t.isBrowser){var e=r._getWindow();e.addEventListener("resize",r._changeListener),e.addEventListener("orientationchange",r._changeListener)}r.change().subscribe(function(){return r._updateViewportSize()})})}return m(e,[{key:"ngOnDestroy",value:function(){if(this._platform.isBrowser){var e=this._getWindow();e.removeEventListener("resize",this._changeListener),e.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}},{key:"getViewportSize",value:function(){this._viewportSize||this._updateViewportSize();var e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}},{key:"getViewportRect",value:function(){var e=this.getViewportScrollPosition(),t=this.getViewportSize(),n=t.width,i=t.height;return{top:e.top,left:e.left,bottom:e.top+i,right:e.left+n,height:i,width:n}}},{key:"getViewportScrollPosition",value:function(){if(!this._platform.isBrowser)return{top:0,left:0};var e=this._document,t=this._getWindow(),n=e.documentElement,i=n.getBoundingClientRect();return{top:-i.top||e.body.scrollTop||t.scrollY||n.scrollTop||0,left:-i.left||e.body.scrollLeft||t.scrollX||n.scrollLeft||0}}},{key:"change",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:20;return e>0?this._change.pipe(_R(e)):this._change}},{key:"_getWindow",value:function(){return this._document.defaultView||window}},{key:"_updateViewportSize",value:function(){var e=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:e.innerWidth,height:e.innerHeight}:{width:0,height:0}}}]),e}()).\u0275fac=function(e){return new(e||CR)(Ri(mT),Ri(Ac),Ri(od,8))},CR.\u0275prov=Re({factory:function(){return new CR(Ri(mT),Ri(Ac),Ri(od,8))},token:CR,providedIn:"root"}),CR),TR=((AR=function e(){A(this,e)}).\u0275fac=function(e){return new(e||AR)},AR.\u0275mod=mt({type:AR}),AR.\u0275inj=Fe({}),AR),IR=((xR=function e(){A(this,e)}).\u0275fac=function(e){return new(e||xR)},xR.\u0275mod=mt({type:xR}),xR.\u0275inj=Fe({imports:[[hI,yT,TR],hI,TR]}),xR),RR=function(){function e(t,n){A(this,e),this.predicate=t,this.inclusive=n}return m(e,[{key:"call",value:function(e,t){return t.subscribe(new LR(e,this.predicate,this.inclusive))}}]),e}(),LR=function(e){r(n,e);var t=a(n);function n(e,i,r){var o;return A(this,n),(o=t.call(this,e)).predicate=i,o.inclusive=r,o.index=0,o}return m(n,[{key:"_next",value:function(e){var t,n=this.destination;try{t=this.predicate(e,this.index++)}catch(i){return void n.error(i)}this.nextOrComplete(e,t)}},{key:"nextOrComplete",value:function(e,t){var n=this.destination;Boolean(t)?n.next(e):(this.inclusive&&n.next(e),n.complete())}}]),n}(I),FR=function(){if(null==pT){if("object"!=typeof document||!document)return pT=!1;if("scrollBehavior"in document.documentElement.style)pT=!0;else{var e=Element.prototype.scrollTo;pT=!!e&&!/\{\s*\[native code\]\s*\}/.test(e.toString())}}return pT}(),BR=function(){function e(t,n){A(this,e),this._viewportRuler=t,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=n}return m(e,[{key:"attach",value:function(){}},{key:"enable",value:function(){if(this._canBeEnabled()){var e=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=e.style.left||"",this._previousHTMLStyles.top=e.style.top||"",e.style.left=dT(-this._previousScrollPosition.left),e.style.top=dT(-this._previousScrollPosition.top),e.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}},{key:"disable",value:function(){if(this._isEnabled){var e=this._document.documentElement,t=e.style,n=this._document.body.style,i=t.scrollBehavior||"",r=n.scrollBehavior||"";this._isEnabled=!1,t.left=this._previousHTMLStyles.left,t.top=this._previousHTMLStyles.top,e.classList.remove("cdk-global-scrollblock"),FR&&(t.scrollBehavior=n.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),FR&&(t.scrollBehavior=i,n.scrollBehavior=r)}}},{key:"_canBeEnabled",value:function(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;var e=this._document.body,t=this._viewportRuler.getViewportSize();return e.scrollHeight>t.height||e.scrollWidth>t.width}}]),e}(),VR=function(){function e(t,n,i,r){var o=this;A(this,e),this._scrollDispatcher=t,this._ngZone=n,this._viewportRuler=i,this._config=r,this._scrollSubscription=null,this._detach=function(){o.disable(),o._overlayRef.hasAttached()&&o._ngZone.run(function(){return o._overlayRef.detach()})}}return m(e,[{key:"attach",value:function(e){this._overlayRef=e}},{key:"enable",value:function(){var e=this;if(!this._scrollSubscription){var t=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=t.subscribe(function(){var t=e._viewportRuler.getViewportScrollPosition().top;Math.abs(t-e._initialScrollPosition)>e._config.threshold?e._detach():e._overlayRef.updatePosition()})):this._scrollSubscription=t.subscribe(this._detach)}}},{key:"disable",value:function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}},{key:"detach",value:function(){this.disable(),this._overlayRef=null}}]),e}(),zR=function(){function e(){A(this,e)}return m(e,[{key:"enable",value:function(){}},{key:"disable",value:function(){}},{key:"attach",value:function(){}}]),e}();function NR(e,t){return t.some(function(t){return e.bottom<t.top||e.top>t.bottom||e.right<t.left||e.left>t.right})}function HR(e,t){return t.some(function(t){return e.top<t.top||e.bottom>t.bottom||e.left<t.left||e.right>t.right})}var jR,UR,WR,GR,qR,YR=function(){function e(t,n,i,r){A(this,e),this._scrollDispatcher=t,this._viewportRuler=n,this._ngZone=i,this._config=r,this._scrollSubscription=null}return m(e,[{key:"attach",value:function(e){this._overlayRef=e}},{key:"enable",value:function(){var e=this;this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(function(){if(e._overlayRef.updatePosition(),e._config&&e._config.autoClose){var t=e._overlayRef.overlayElement.getBoundingClientRect(),n=e._viewportRuler.getViewportSize(),i=n.width,r=n.height;NR(t,[{width:i,height:r,bottom:r,right:i,top:0,left:0}])&&(e.disable(),e._ngZone.run(function(){return e._overlayRef.detach()}))}}))}},{key:"disable",value:function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}},{key:"detach",value:function(){this.disable(),this._overlayRef=null}}]),e}(),ZR=((jR=function e(t,n,i,r){var o=this;A(this,e),this._scrollDispatcher=t,this._viewportRuler=n,this._ngZone=i,this.noop=function(){return new zR},this.close=function(e){return new VR(o._scrollDispatcher,o._ngZone,o._viewportRuler,e)},this.block=function(){return new BR(o._viewportRuler,o._document)},this.reposition=function(e){return new YR(o._scrollDispatcher,o._viewportRuler,o._ngZone,e)},this._document=r}).\u0275fac=function(e){return new(e||jR)(Ri(OR),Ri(MR),Ri(Ac),Ri(od))},jR.\u0275prov=Re({factory:function(){return new jR(Ri(OR),Ri(MR),Ri(Ac),Ri(od))},token:jR,providedIn:"root"}),jR),QR=function e(t){if(A(this,e),this.scrollStrategy=new zR,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,t)for(var n=0,i=Object.keys(t);n<i.length;n++){var r=i[n];void 0!==t[r]&&(this[r]=t[r])}},XR=function e(t,n,i,r,o){A(this,e),this.offsetX=i,this.offsetY=r,this.panelClass=o,this.originX=t.originX,this.originY=t.originY,this.overlayX=n.overlayX,this.overlayY=n.overlayY},KR=function e(t,n){A(this,e),this.connectionPair=t,this.scrollableViewProperties=n},JR=((GR=function(){function e(t){A(this,e),this._attachedOverlays=[],this._document=t}return m(e,[{key:"ngOnDestroy",value:function(){this.detach()}},{key:"add",value:function(e){this.remove(e),this._attachedOverlays.push(e)}},{key:"remove",value:function(e){var t=this._attachedOverlays.indexOf(e);t>-1&&this._attachedOverlays.splice(t,1),0===this._attachedOverlays.length&&this.detach()}}]),e}()).\u0275fac=function(e){return new(e||GR)(Ri(od))},GR.\u0275prov=Re({factory:function(){return new GR(Ri(od))},token:GR,providedIn:"root"}),GR),$R=((WR=function(e){r(n,e);var t=a(n);function n(e){var i;return A(this,n),(i=t.call(this,e))._keydownListener=function(e){for(var t=i._attachedOverlays,n=t.length-1;n>-1;n--)if(t[n]._keydownEvents.observers.length>0){t[n]._keydownEvents.next(e);break}},i}return m(n,[{key:"add",value:function(e){i(c(n.prototype),"add",this).call(this,e),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}},{key:"detach",value:function(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}]),n}(JR)).\u0275fac=function(e){return new(e||WR)(Ri(od))},WR.\u0275prov=Re({factory:function(){return new WR(Ri(od))},token:WR,providedIn:"root"}),WR),eL=((UR=function(e){r(n,e);var t=a(n);function n(e,i){var r;return A(this,n),(r=t.call(this,e))._platform=i,r._cursorStyleIsSet=!1,r._clickListener=function(e){for(var t=e.composedPath?e.composedPath()[0]:e.target,n=r._attachedOverlays.slice(),i=n.length-1;i>-1;i--){var o=n[i];if(!(o._outsidePointerEvents.observers.length<1)&&o.hasAttached()){if(o.overlayElement.contains(t))break;o._outsidePointerEvents.next(e)}}},r}return m(n,[{key:"add",value:function(e){i(c(n.prototype),"add",this).call(this,e),this._isAttached||(this._document.body.addEventListener("click",this._clickListener,!0),this._document.body.addEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=this._document.body.style.cursor,this._document.body.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0)}},{key:"detach",value:function(){this._isAttached&&(this._document.body.removeEventListener("click",this._clickListener,!0),this._document.body.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(this._document.body.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1)}}]),n}(JR)).\u0275fac=function(e){return new(e||UR)(Ri(od),Ri(mT))},UR.\u0275prov=Re({factory:function(){return new UR(Ri(od),Ri(mT))},token:UR,providedIn:"root"}),UR),tL=!("undefined"==typeof window||!window||!window.__karma__&&!window.jasmine),nL=((qR=function(){function e(t,n){A(this,e),this._platform=n,this._document=t}return m(e,[{key:"ngOnDestroy",value:function(){var e=this._containerElement;e&&e.parentNode&&e.parentNode.removeChild(e)}},{key:"getContainerElement",value:function(){return this._containerElement||this._createContainer(),this._containerElement}},{key:"_createContainer",value:function(){if(this._platform.isBrowser||tL)for(var e=this._document.querySelectorAll('.cdk-overlay-container[platform="server"], .cdk-overlay-container[platform="test"]'),t=0;t<e.length;t++)e[t].parentNode.removeChild(e[t]);var n=this._document.createElement("div");n.classList.add("cdk-overlay-container"),tL?n.setAttribute("platform","test"):this._platform.isBrowser||n.setAttribute("platform","server"),this._document.body.appendChild(n),this._containerElement=n}}]),e}()).\u0275fac=function(e){return new(e||qR)(Ri(od),Ri(mT))},qR.\u0275prov=Re({factory:function(){return new qR(Ri(od),Ri(mT))},token:qR,providedIn:"root"}),qR),iL=function(){function e(t,n,i,r,o,a,s,l,u){var c=this;A(this,e),this._portalOutlet=t,this._host=n,this._pane=i,this._config=r,this._ngZone=o,this._keyboardDispatcher=a,this._document=s,this._location=l,this._outsideClickDispatcher=u,this._backdropElement=null,this._backdropClick=new W,this._attachments=new W,this._detachments=new W,this._locationChanges=O.EMPTY,this._backdropClickHandler=function(e){return c._backdropClick.next(e)},this._keydownEvents=new W,this._outsidePointerEvents=new W,r.scrollStrategy&&(this._scrollStrategy=r.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=r.positionStrategy}return m(e,[{key:"overlayElement",get:function(){return this._pane}},{key:"backdropElement",get:function(){return this._backdropElement}},{key:"hostElement",get:function(){return this._host}},{key:"attach",value:function(e){var t=this,n=this._portalOutlet.attach(e);return!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host),this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe(Hb(1)).subscribe(function(){t.hasAttached()&&t.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(function(){return t.dispose()})),this._outsideClickDispatcher.add(this),n}},{key:"detach",value:function(){if(this.hasAttached()){this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();var e=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),e}}},{key:"dispose",value:function(){var e=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this.detachBackdrop(),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host&&this._host.parentNode&&(this._host.parentNode.removeChild(this._host),this._host=null),this._previousHostParent=this._pane=null,e&&this._detachments.next(),this._detachments.complete()}},{key:"hasAttached",value:function(){return this._portalOutlet.hasAttached()}},{key:"backdropClick",value:function(){return this._backdropClick}},{key:"attachments",value:function(){return this._attachments}},{key:"detachments",value:function(){return this._detachments}},{key:"keydownEvents",value:function(){return this._keydownEvents}},{key:"outsidePointerEvents",value:function(){return this._outsidePointerEvents}},{key:"getConfig",value:function(){return this._config}},{key:"updatePosition",value:function(){this._positionStrategy&&this._positionStrategy.apply()}},{key:"updatePositionStrategy",value:function(e){e!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=e,this.hasAttached()&&(e.attach(this),this.updatePosition()))}},{key:"updateSize",value:function(e){this._config=Object.assign(Object.assign({},this._config),e),this._updateElementSize()}},{key:"setDirection",value:function(e){this._config=Object.assign(Object.assign({},this._config),{direction:e}),this._updateElementDirection()}},{key:"addPanelClass",value:function(e){this._pane&&this._toggleClasses(this._pane,e,!0)}},{key:"removePanelClass",value:function(e){this._pane&&this._toggleClasses(this._pane,e,!1)}},{key:"getDirection",value:function(){var e=this._config.direction;return e?"string"==typeof e?e:e.value:"ltr"}},{key:"updateScrollStrategy",value:function(e){e!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=e,this.hasAttached()&&(e.attach(this),e.enable()))}},{key:"_updateElementDirection",value:function(){this._host.setAttribute("dir",this.getDirection())}},{key:"_updateElementSize",value:function(){if(this._pane){var e=this._pane.style;e.width=dT(this._config.width),e.height=dT(this._config.height),e.minWidth=dT(this._config.minWidth),e.minHeight=dT(this._config.minHeight),e.maxWidth=dT(this._config.maxWidth),e.maxHeight=dT(this._config.maxHeight)}}},{key:"_togglePointerEvents",value:function(e){this._pane.style.pointerEvents=e?"":"none"}},{key:"_attachBackdrop",value:function(){var e=this;this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(function(){requestAnimationFrame(function(){e._backdropElement&&e._backdropElement.classList.add("cdk-overlay-backdrop-showing")})}):this._backdropElement.classList.add("cdk-overlay-backdrop-showing")}},{key:"_updateStackingOrder",value:function(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}},{key:"detachBackdrop",value:function(){var e,t=this,n=this._backdropElement;if(n){var i=function i(){n&&(n.removeEventListener("click",t._backdropClickHandler),n.removeEventListener("transitionend",i),n.parentNode&&n.parentNode.removeChild(n)),t._backdropElement==n&&(t._backdropElement=null),t._config.backdropClass&&t._toggleClasses(n,t._config.backdropClass,!1),clearTimeout(e)};n.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(function(){n.addEventListener("transitionend",i)}),n.style.pointerEvents="none",e=this._ngZone.runOutsideAngular(function(){return setTimeout(i,500)})}}},{key:"_toggleClasses",value:function(e,t,n){var i=e.classList;cT(t).forEach(function(e){e&&(n?i.add(e):i.remove(e))})}},{key:"_detachContentWhenStable",value:function(){var e=this;this._ngZone.runOutsideAngular(function(){var t=e._ngZone.onStable.pipe(kR(he(e._attachments,e._detachments))).subscribe(function(){e._pane&&e._host&&0!==e._pane.children.length||(e._pane&&e._config.panelClass&&e._toggleClasses(e._pane,e._config.panelClass,!1),e._host&&e._host.parentElement&&(e._previousHostParent=e._host.parentElement,e._previousHostParent.removeChild(e._host)),t.unsubscribe())})})}},{key:"_disposeScrollStrategy",value:function(){var e=this._scrollStrategy;e&&(e.disable(),e.detach&&e.detach())}}]),e}(),rL=/([A-Za-z%]+)$/,oL=function(){function e(t,n,i,r,o){A(this,e),this._viewportRuler=n,this._document=i,this._platform=r,this._overlayContainer=o,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new W,this._resizeSubscription=O.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(t)}return m(e,[{key:"positions",get:function(){return this._preferredPositions}},{key:"attach",value:function(e){var t=this;this._validatePositions(),e.hostElement.classList.add("cdk-overlay-connected-position-bounding-box"),this._overlayRef=e,this._boundingBox=e.hostElement,this._pane=e.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(function(){t._isInitialRender=!0,t.apply()})}},{key:"apply",value:function(){if(!this._isDisposed&&this._platform.isBrowser)if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)this.reapplyLastPosition();else{this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect();var e,t,n=this._originRect,i=this._overlayRect,r=this._viewportRect,o=[],a=h(this._preferredPositions);try{for(a.s();!(t=a.n()).done;){var s=t.value,l=this._getOriginPoint(n,s),u=this._getOverlayPoint(l,i,s),c=this._getOverlayFit(u,i,r,s);if(c.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(s,l);this._canFitWithFlexibleDimensions(c,u,r)?o.push({position:s,origin:l,overlayRect:i,boundingBoxRect:this._calculateBoundingBoxRect(l,s)}):(!e||e.overlayFit.visibleArea<c.visibleArea)&&(e={overlayFit:c,overlayPoint:u,originPoint:l,position:s,overlayRect:i})}}catch(y){a.e(y)}finally{a.f()}if(o.length){var d,f=null,p=-1,g=h(o);try{for(g.s();!(d=g.n()).done;){var v=d.value,m=v.boundingBoxRect.width*v.boundingBoxRect.height*(v.position.weight||1);m>p&&(p=m,f=v)}}catch(y){g.e(y)}finally{g.f()}return this._isPushed=!1,void this._applyPosition(f.position,f.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(e.position,e.originPoint);this._applyPosition(e.position,e.originPoint)}}},{key:"detach",value:function(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}},{key:"dispose",value:function(){this._isDisposed||(this._boundingBox&&aL(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove("cdk-overlay-connected-position-bounding-box"),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}},{key:"reapplyLastPosition",value:function(){if(!this._isDisposed&&(!this._platform||this._platform.isBrowser)){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect();var e=this._lastPosition||this._preferredPositions[0],t=this._getOriginPoint(this._originRect,e);this._applyPosition(e,t)}}},{key:"withScrollableContainers",value:function(e){return this._scrollables=e,this}},{key:"withPositions",value:function(e){return this._preferredPositions=e,-1===e.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}},{key:"withViewportMargin",value:function(e){return this._viewportMargin=e,this}},{key:"withFlexibleDimensions",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._hasFlexibleDimensions=e,this}},{key:"withGrowAfterOpen",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._growAfterOpen=e,this}},{key:"withPush",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._canPush=e,this}},{key:"withLockedPosition",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._positionLocked=e,this}},{key:"setOrigin",value:function(e){return this._origin=e,this}},{key:"withDefaultOffsetX",value:function(e){return this._offsetX=e,this}},{key:"withDefaultOffsetY",value:function(e){return this._offsetY=e,this}},{key:"withTransformOriginOn",value:function(e){return this._transformOriginSelector=e,this}},{key:"_getOriginPoint",value:function(e,t){var n;if("center"==t.originX)n=e.left+e.width/2;else{var i=this._isRtl()?e.right:e.left,r=this._isRtl()?e.left:e.right;n="start"==t.originX?i:r}return{x:n,y:"center"==t.originY?e.top+e.height/2:"top"==t.originY?e.top:e.bottom}}},{key:"_getOverlayPoint",value:function(e,t,n){var i,r;return i="center"==n.overlayX?-t.width/2:"start"===n.overlayX?this._isRtl()?-t.width:0:this._isRtl()?0:-t.width,r="center"==n.overlayY?-t.height/2:"top"==n.overlayY?0:-t.height,{x:e.x+i,y:e.y+r}}},{key:"_getOverlayFit",value:function(e,t,n,i){var r=lL(t),o=e.x,a=e.y,s=this._getOffset(i,"x"),l=this._getOffset(i,"y");s&&(o+=s),l&&(a+=l);var u=0-a,c=a+r.height-n.height,d=this._subtractOverflows(r.width,0-o,o+r.width-n.width),h=this._subtractOverflows(r.height,u,c),f=d*h;return{visibleArea:f,isCompletelyWithinViewport:r.width*r.height===f,fitsInViewportVertically:h===r.height,fitsInViewportHorizontally:d==r.width}}},{key:"_canFitWithFlexibleDimensions",value:function(e,t,n){if(this._hasFlexibleDimensions){var i=n.bottom-t.y,r=n.right-t.x,o=sL(this._overlayRef.getConfig().minHeight),a=sL(this._overlayRef.getConfig().minWidth),s=e.fitsInViewportHorizontally||null!=a&&a<=r;return(e.fitsInViewportVertically||null!=o&&o<=i)&&s}return!1}},{key:"_pushOverlayOnScreen",value:function(e,t,n){if(this._previousPushAmount&&this._positionLocked)return{x:e.x+this._previousPushAmount.x,y:e.y+this._previousPushAmount.y};var i,r,o=lL(t),a=this._viewportRect,s=Math.max(e.x+o.width-a.width,0),l=Math.max(e.y+o.height-a.height,0),u=Math.max(a.top-n.top-e.y,0),c=Math.max(a.left-n.left-e.x,0);return i=o.width<=a.width?c||-s:e.x<this._viewportMargin?a.left-n.left-e.x:0,r=o.height<=a.height?u||-l:e.y<this._viewportMargin?a.top-n.top-e.y:0,this._previousPushAmount={x:i,y:r},{x:e.x+i,y:e.y+r}}},{key:"_applyPosition",value:function(e,t){if(this._setTransformOrigin(e),this._setOverlayElementStyles(t,e),this._setBoundingBoxStyles(t,e),e.panelClass&&this._addPanelClasses(e.panelClass),this._lastPosition=e,this._positionChanges.observers.length){var n=this._getScrollVisibility(),i=new KR(e,n);this._positionChanges.next(i)}this._isInitialRender=!1}},{key:"_setTransformOrigin",value:function(e){if(this._transformOriginSelector){var t,n=this._boundingBox.querySelectorAll(this._transformOriginSelector),i=e.overlayY;t="center"===e.overlayX?"center":this._isRtl()?"start"===e.overlayX?"right":"left":"start"===e.overlayX?"left":"right";for(var r=0;r<n.length;r++)n[r].style.transformOrigin="".concat(t," ").concat(i)}}},{key:"_calculateBoundingBoxRect",value:function(e,t){var n,i,r,o,a,s,l=this._viewportRect,u=this._isRtl();if("top"===t.overlayY)i=e.y,n=l.height-i+this._viewportMargin;else if("bottom"===t.overlayY)r=l.height-e.y+2*this._viewportMargin,n=l.height-r+this._viewportMargin;else{var c=Math.min(l.bottom-e.y+l.top,e.y),d=this._lastBoundingBoxSize.height;n=2*c,i=e.y-c,n>d&&!this._isInitialRender&&!this._growAfterOpen&&(i=e.y-d/2)}if("end"===t.overlayX&&!u||"start"===t.overlayX&&u)s=l.width-e.x+this._viewportMargin,o=e.x-this._viewportMargin;else if("start"===t.overlayX&&!u||"end"===t.overlayX&&u)a=e.x,o=l.right-e.x;else{var h=Math.min(l.right-e.x+l.left,e.x),f=this._lastBoundingBoxSize.width;o=2*h,a=e.x-h,o>f&&!this._isInitialRender&&!this._growAfterOpen&&(a=e.x-f/2)}return{top:i,left:a,bottom:r,right:s,width:o,height:n}}},{key:"_setBoundingBoxStyles",value:function(e,t){var n=this._calculateBoundingBoxRect(e,t);this._isInitialRender||this._growAfterOpen||(n.height=Math.min(n.height,this._lastBoundingBoxSize.height),n.width=Math.min(n.width,this._lastBoundingBoxSize.width));var i={};if(this._hasExactPosition())i.top=i.left="0",i.bottom=i.right=i.maxHeight=i.maxWidth="",i.width=i.height="100%";else{var r=this._overlayRef.getConfig().maxHeight,o=this._overlayRef.getConfig().maxWidth;i.height=dT(n.height),i.top=dT(n.top),i.bottom=dT(n.bottom),i.width=dT(n.width),i.left=dT(n.left),i.right=dT(n.right),i.alignItems="center"===t.overlayX?"center":"end"===t.overlayX?"flex-end":"flex-start",i.justifyContent="center"===t.overlayY?"center":"bottom"===t.overlayY?"flex-end":"flex-start",r&&(i.maxHeight=dT(r)),o&&(i.maxWidth=dT(o))}this._lastBoundingBoxSize=n,aL(this._boundingBox.style,i)}},{key:"_resetBoundingBoxStyles",value:function(){aL(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}},{key:"_resetOverlayElementStyles",value:function(){aL(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}},{key:"_setOverlayElementStyles",value:function(e,t){var n={},i=this._hasExactPosition(),r=this._hasFlexibleDimensions,o=this._overlayRef.getConfig();if(i){var a=this._viewportRuler.getViewportScrollPosition();aL(n,this._getExactOverlayY(t,e,a)),aL(n,this._getExactOverlayX(t,e,a))}else n.position="static";var s="",l=this._getOffset(t,"x"),u=this._getOffset(t,"y");l&&(s+="translateX(".concat(l,"px) ")),u&&(s+="translateY(".concat(u,"px)")),n.transform=s.trim(),o.maxHeight&&(i?n.maxHeight=dT(o.maxHeight):r&&(n.maxHeight="")),o.maxWidth&&(i?n.maxWidth=dT(o.maxWidth):r&&(n.maxWidth="")),aL(this._pane.style,n)}},{key:"_getExactOverlayY",value:function(e,t,n){var i={top:"",bottom:""},r=this._getOverlayPoint(t,this._overlayRect,e);this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,n));var o=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return r.y-=o,"bottom"===e.overlayY?i.bottom=this._document.documentElement.clientHeight-(r.y+this._overlayRect.height)+"px":i.top=dT(r.y),i}},{key:"_getExactOverlayX",value:function(e,t,n){var i={left:"",right:""},r=this._getOverlayPoint(t,this._overlayRect,e);return this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,n)),"right"===(this._isRtl()?"end"===e.overlayX?"left":"right":"end"===e.overlayX?"right":"left")?i.right=this._document.documentElement.clientWidth-(r.x+this._overlayRect.width)+"px":i.left=dT(r.x),i}},{key:"_getScrollVisibility",value:function(){var e=this._getOriginRect(),t=this._pane.getBoundingClientRect(),n=this._scrollables.map(function(e){return e.getElementRef().nativeElement.getBoundingClientRect()});return{isOriginClipped:HR(e,n),isOriginOutsideView:NR(e,n),isOverlayClipped:HR(t,n),isOverlayOutsideView:NR(t,n)}}},{key:"_subtractOverflows",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return n.reduce(function(e,t){return e-Math.max(t,0)},e)}},{key:"_getNarrowedViewportRect",value:function(){var e=this._document.documentElement.clientWidth,t=this._document.documentElement.clientHeight,n=this._viewportRuler.getViewportScrollPosition();return{top:n.top+this._viewportMargin,left:n.left+this._viewportMargin,right:n.left+e-this._viewportMargin,bottom:n.top+t-this._viewportMargin,width:e-2*this._viewportMargin,height:t-2*this._viewportMargin}}},{key:"_isRtl",value:function(){return"rtl"===this._overlayRef.getDirection()}},{key:"_hasExactPosition",value:function(){return!this._hasFlexibleDimensions||this._isPushed}},{key:"_getOffset",value:function(e,t){return"x"===t?null==e.offsetX?this._offsetX:e.offsetX:null==e.offsetY?this._offsetY:e.offsetY}},{key:"_validatePositions",value:function(){}},{key:"_addPanelClasses",value:function(e){var t=this;this._pane&&cT(e).forEach(function(e){""!==e&&-1===t._appliedPanelClasses.indexOf(e)&&(t._appliedPanelClasses.push(e),t._pane.classList.add(e))})}},{key:"_clearPanelClasses",value:function(){var e=this;this._pane&&(this._appliedPanelClasses.forEach(function(t){e._pane.classList.remove(t)}),this._appliedPanelClasses=[])}},{key:"_getOriginRect",value:function(){var e=this._origin;if(e instanceof Cl)return e.nativeElement.getBoundingClientRect();if(e instanceof Element)return e.getBoundingClientRect();var t=e.width||0,n=e.height||0;return{top:e.y,bottom:e.y+n,left:e.x,right:e.x+t,height:n,width:t}}}]),e}();function aL(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function sL(e){if("number"!=typeof e&&null!=e){var t=f(e.split(rL),2),n=t[0],i=t[1];return i&&"px"!==i?null:parseFloat(n)}return e||null}function lL(e){return{top:Math.floor(e.top),right:Math.floor(e.right),bottom:Math.floor(e.bottom),left:Math.floor(e.left),width:Math.floor(e.width),height:Math.floor(e.height)}}var uL,cL,dL,hL,fL,pL=function(){function e(t,n,i,r,o,a,s){A(this,e),this._preferredPositions=[],this._positionStrategy=new oL(i,r,o,a,s).withFlexibleDimensions(!1).withPush(!1).withViewportMargin(0),this.withFallbackPosition(t,n),this.onPositionChange=this._positionStrategy.positionChanges}return m(e,[{key:"positions",get:function(){return this._preferredPositions}},{key:"attach",value:function(e){this._overlayRef=e,this._positionStrategy.attach(e),this._direction&&(e.setDirection(this._direction),this._direction=null)}},{key:"dispose",value:function(){this._positionStrategy.dispose()}},{key:"detach",value:function(){this._positionStrategy.detach()}},{key:"apply",value:function(){this._positionStrategy.apply()}},{key:"recalculateLastPosition",value:function(){this._positionStrategy.reapplyLastPosition()}},{key:"withScrollableContainers",value:function(e){this._positionStrategy.withScrollableContainers(e)}},{key:"withFallbackPosition",value:function(e,t,n,i){var r=new XR(e,t,n,i);return this._preferredPositions.push(r),this._positionStrategy.withPositions(this._preferredPositions),this}},{key:"withDirection",value:function(e){return this._overlayRef?this._overlayRef.setDirection(e):this._direction=e,this}},{key:"withOffsetX",value:function(e){return this._positionStrategy.withDefaultOffsetX(e),this}},{key:"withOffsetY",value:function(e){return this._positionStrategy.withDefaultOffsetY(e),this}},{key:"withLockedPosition",value:function(e){return this._positionStrategy.withLockedPosition(e),this}},{key:"withPositions",value:function(e){return this._preferredPositions=e.slice(),this._positionStrategy.withPositions(this._preferredPositions),this}},{key:"setOrigin",value:function(e){return this._positionStrategy.setOrigin(e),this}}]),e}(),gL=function(){function e(){A(this,e),this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}return m(e,[{key:"attach",value:function(e){var t=e.getConfig();this._overlayRef=e,this._width&&!t.width&&e.updateSize({width:this._width}),this._height&&!t.height&&e.updateSize({height:this._height}),e.hostElement.classList.add("cdk-global-overlay-wrapper"),this._isDisposed=!1}},{key:"top",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._bottomOffset="",this._topOffset=e,this._alignItems="flex-start",this}},{key:"left",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._rightOffset="",this._leftOffset=e,this._justifyContent="flex-start",this}},{key:"bottom",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._topOffset="",this._bottomOffset=e,this._alignItems="flex-end",this}},{key:"right",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._leftOffset="",this._rightOffset=e,this._justifyContent="flex-end",this}},{key:"width",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._overlayRef?this._overlayRef.updateSize({width:e}):this._width=e,this}},{key:"height",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._overlayRef?this._overlayRef.updateSize({height:e}):this._height=e,this}},{key:"centerHorizontally",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.left(e),this._justifyContent="center",this}},{key:"centerVertically",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.top(e),this._alignItems="center",this}},{key:"apply",value:function(){if(this._overlayRef&&this._overlayRef.hasAttached()){var e=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement.style,n=this._overlayRef.getConfig(),i=n.width,r=n.height,o=n.maxWidth,a=n.maxHeight,s=!("100%"!==i&&"100vw"!==i||o&&"100%"!==o&&"100vw"!==o),l=!("100%"!==r&&"100vh"!==r||a&&"100%"!==a&&"100vh"!==a);e.position=this._cssPosition,e.marginLeft=s?"0":this._leftOffset,e.marginTop=l?"0":this._topOffset,e.marginBottom=this._bottomOffset,e.marginRight=this._rightOffset,s?t.justifyContent="flex-start":"center"===this._justifyContent?t.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?t.justifyContent="flex-end":"flex-end"===this._justifyContent&&(t.justifyContent="flex-start"):t.justifyContent=this._justifyContent,t.alignItems=l?"flex-start":this._alignItems}}},{key:"dispose",value:function(){if(!this._isDisposed&&this._overlayRef){var e=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement,n=t.style;t.classList.remove("cdk-global-overlay-wrapper"),n.justifyContent=n.alignItems=e.marginTop=e.marginBottom=e.marginLeft=e.marginRight=e.position="",this._overlayRef=null,this._isDisposed=!0}}}]),e}(),vL=((cL=function(){function e(t,n,i,r){A(this,e),this._viewportRuler=t,this._document=n,this._platform=i,this._overlayContainer=r}return m(e,[{key:"global",value:function(){return new gL}},{key:"connectedTo",value:function(e,t,n){return new pL(t,n,e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}},{key:"flexibleConnectedTo",value:function(e){return new oL(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}]),e}()).\u0275fac=function(e){return new(e||cL)(Ri(MR),Ri(od),Ri(mT),Ri(nL))},cL.\u0275prov=Re({factory:function(){return new cL(Ri(MR),Ri(od),Ri(mT),Ri(nL))},token:cL,providedIn:"root"}),cL),mL=0,yL=((uL=function(){function e(t,n,i,r,o,a,s,l,u,c,d){A(this,e),this.scrollStrategies=t,this._overlayContainer=n,this._componentFactoryResolver=i,this._positionBuilder=r,this._keyboardDispatcher=o,this._injector=a,this._ngZone=s,this._document=l,this._directionality=u,this._location=c,this._outsideClickDispatcher=d}return m(e,[{key:"create",value:function(e){var t=this._createHostElement(),n=this._createPaneElement(t),i=this._createPortalOutlet(n),r=new QR(e);return r.direction=r.direction||this._directionality.value,new iL(i,t,n,r,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}},{key:"position",value:function(){return this._positionBuilder}},{key:"_createPaneElement",value:function(e){var t=this._document.createElement("div");return t.id="cdk-overlay-"+mL++,t.classList.add("cdk-overlay-pane"),e.appendChild(t),t}},{key:"_createHostElement",value:function(){var e=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(e),e}},{key:"_createPortalOutlet",value:function(e){return this._appRef||(this._appRef=this._injector.get(Gc)),new AE(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}]),e}()).\u0275fac=function(e){return new(e||uL)(Ri(ZR),Ri(nL),Ri(_l),Ri(vL),Ri($R),Ri(Fa),Ri(Ac),Ri(od),Ri(dI),Ri(Cd),Ri(eL))},uL.\u0275prov=Re({token:uL,factory:uL.\u0275fac}),uL),bL=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],wL=new mi("cdk-connected-overlay-scroll-strategy"),_L=((hL=function e(t){A(this,e),this.elementRef=t}).\u0275fac=function(e){return new(e||hL)(rs(Cl))},hL.\u0275dir=bt({type:hL,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),hL),kL=((dL=function(){function e(t,n,i,r,o){A(this,e),this._overlay=t,this._dir=o,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=O.EMPTY,this._attachSubscription=O.EMPTY,this._detachSubscription=O.EMPTY,this._positionSubscription=O.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new Fu,this.positionChange=new Fu,this.attach=new Fu,this.detach=new Fu,this.overlayKeydown=new Fu,this.overlayOutsideClick=new Fu,this._templatePortal=new _E(n,i),this._scrollStrategyFactory=r,this.scrollStrategy=this._scrollStrategyFactory()}return m(e,[{key:"offsetX",get:function(){return this._offsetX},set:function(e){this._offsetX=e,this._position&&this._updatePositionStrategy(this._position)}},{key:"offsetY",get:function(){return this._offsetY},set:function(e){this._offsetY=e,this._position&&this._updatePositionStrategy(this._position)}},{key:"hasBackdrop",get:function(){return this._hasBackdrop},set:function(e){this._hasBackdrop=lT(e)}},{key:"lockPosition",get:function(){return this._lockPosition},set:function(e){this._lockPosition=lT(e)}},{key:"flexibleDimensions",get:function(){return this._flexibleDimensions},set:function(e){this._flexibleDimensions=lT(e)}},{key:"growAfterOpen",get:function(){return this._growAfterOpen},set:function(e){this._growAfterOpen=lT(e)}},{key:"push",get:function(){return this._push},set:function(e){this._push=lT(e)}},{key:"overlayRef",get:function(){return this._overlayRef}},{key:"dir",get:function(){return this._dir?this._dir.value:"ltr"}},{key:"ngOnDestroy",value:function(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}},{key:"ngOnChanges",value:function(e){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),e.origin&&this.open&&this._position.apply()),e.open&&(this.open?this._attachOverlay():this._detachOverlay())}},{key:"_createOverlay",value:function(){var e=this;this.positions&&this.positions.length||(this.positions=bL);var t=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=t.attachments().subscribe(function(){return e.attach.emit()}),this._detachSubscription=t.detachments().subscribe(function(){return e.detach.emit()}),t.keydownEvents().subscribe(function(t){e.overlayKeydown.next(t),27!==t.keyCode||e.disableClose||tT(t)||(t.preventDefault(),e._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(function(t){e.overlayOutsideClick.next(t)})}},{key:"_buildConfig",value:function(){var e=this._position=this.positionStrategy||this._createPositionStrategy(),t=new QR({direction:this._dir,positionStrategy:e,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(t.width=this.width),(this.height||0===this.height)&&(t.height=this.height),(this.minWidth||0===this.minWidth)&&(t.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(t.minHeight=this.minHeight),this.backdropClass&&(t.backdropClass=this.backdropClass),this.panelClass&&(t.panelClass=this.panelClass),t}},{key:"_updatePositionStrategy",value:function(e){var t=this,n=this.positions.map(function(e){return{originX:e.originX,originY:e.originY,overlayX:e.overlayX,overlayY:e.overlayY,offsetX:e.offsetX||t.offsetX,offsetY:e.offsetY||t.offsetY,panelClass:e.panelClass||void 0}});return e.setOrigin(this.origin.elementRef).withPositions(n).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}},{key:"_createPositionStrategy",value:function(){var e=this._overlay.position().flexibleConnectedTo(this.origin.elementRef);return this._updatePositionStrategy(e),e}},{key:"_attachOverlay",value:function(){var e=this;this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(function(t){e.backdropClick.emit(t)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(n){return n.lift(new RR(e,t))}}(function(){return e.positionChange.observers.length>0})).subscribe(function(t){e.positionChange.emit(t),0===e.positionChange.observers.length&&e._positionSubscription.unsubscribe()}))}},{key:"_detachOverlay",value:function(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}]),e}()).\u0275fac=function(e){return new(e||dL)(rs(yL),rs(iu),rs(uu),rs(wL),rs(dI,8))},dL.\u0275dir=bt({type:dL,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"],positions:["cdkConnectedOverlayPositions","positions"],origin:["cdkConnectedOverlayOrigin","origin"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[Mt]}),dL),xL={provide:wL,deps:[yL],useFactory:function(e){return function(){return e.scrollStrategies.reposition()}}},AL=((fL=function e(){A(this,e)}).\u0275fac=function(e){return new(e||fL)},fL.\u0275mod=mt({type:fL}),fL.\u0275inj=Fe({providers:[yL,xL],imports:[[hI,SE,IR],IR]}),fL),CL=["underline"],SL=["connectionContainer"],PL=["inputContainer"],EL=["label"];function DL(e,t){1&e&&(cs(0),ss(1,"div",14),us(2,"div",15),us(3,"div",16),us(4,"div",17),ls(),ss(5,"div",18),us(6,"div",15),us(7,"div",16),us(8,"div",17),ls(),ds())}function OL(e,t){1&e&&(ss(0,"div",19),Cs(1,1),ls())}function ML(e,t){if(1&e&&(cs(0),Cs(1,2),ss(2,"span"),Qs(3),ls(),ds()),2&e){var n=ks(2);xo(3),Xs(n._control.placeholder)}}function TL(e,t){1&e&&Cs(0,3,["*ngSwitchCase","true"])}function IL(e,t){1&e&&(ss(0,"span",23),Qs(1," *"),ls())}function RL(e,t){if(1&e){var n=fs();ss(0,"label",20,21),ms("cdkObserveContent",function(){return nn(n),ks().updateOutlineGap()}),ns(2,ML,4,1,"ng-container",12),ns(3,TL,1,0,"ng-content",12),ns(4,IL,2,0,"span",22),ls()}if(2&e){var i=ks();Fs("mat-empty",i._control.empty&&!i._shouldAlwaysFloat())("mat-form-field-empty",i._control.empty&&!i._shouldAlwaysFloat())("mat-accent","accent"==i.color)("mat-warn","warn"==i.color),os("cdkObserveContentDisabled","outline"!=i.appearance)("id",i._labelId)("ngSwitch",i._hasLabel()),$a("for",i._control.id)("aria-owns",i._control.id),xo(2),os("ngSwitchCase",!1),xo(1),os("ngSwitchCase",!0),xo(1),os("ngIf",!i.hideRequiredMarker&&i._control.required&&!i._control.disabled)}}function LL(e,t){1&e&&(ss(0,"div",24),Cs(1,4),ls())}function FL(e,t){if(1&e&&(ss(0,"div",25,26),us(2,"span",27),ls()),2&e){var n=ks();xo(2),Fs("mat-accent","accent"==n.color)("mat-warn","warn"==n.color)}}function BL(e,t){1&e&&(ss(0,"div"),Cs(1,5),ls()),2&e&&os("@transitionMessages",ks()._subscriptAnimationState)}function VL(e,t){if(1&e&&(ss(0,"div",31),Qs(1),ls()),2&e){var n=ks(2);os("id",n._hintLabelId),xo(1),Xs(n.hintLabel)}}function zL(e,t){if(1&e&&(ss(0,"div",28),ns(1,VL,2,2,"div",29),Cs(2,6),us(3,"div",30),Cs(4,7),ls()),2&e){var n=ks();os("@transitionMessages",n._subscriptAnimationState),xo(1),os("ngIf",n.hintLabel)}}var NL,HL,jL,UL,WL,GL=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],qL=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"],YL=new mi("MatError"),ZL={transitionMessages:Xf("transitionMessages",[ep("enter",$f({opacity:1,transform:"translateY(0%)"})),np("void => enter",[$f({opacity:0,transform:"translateY(-5px)"}),Kf("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},QL=((NL=function e(){A(this,e)}).\u0275fac=function(e){return new(e||NL)},NL.\u0275dir=bt({type:NL}),NL),XL=new mi("MatHint"),KL=((jL=function e(){A(this,e)}).\u0275fac=function(e){return new(e||jL)},jL.\u0275dir=bt({type:jL,selectors:[["mat-label"]]}),jL),JL=((HL=function e(){A(this,e)}).\u0275fac=function(e){return new(e||HL)},HL.\u0275dir=bt({type:HL,selectors:[["mat-placeholder"]]}),HL),$L=new mi("MatPrefix"),eF=new mi("MatSuffix"),tF=0,nF=AI(function e(t){A(this,e),this._elementRef=t},"primary"),iF=new mi("MAT_FORM_FIELD_DEFAULT_OPTIONS"),rF=new mi("MatFormField"),oF=((WL=function(e){r(n,e);var t=a(n);function n(e,i,r,o,a,s,l,u){var c;return A(this,n),(c=t.call(this,e))._elementRef=e,c._changeDetectorRef=i,c._dir=o,c._defaults=a,c._platform=s,c._ngZone=l,c._outlineGapCalculationNeededImmediately=!1,c._outlineGapCalculationNeededOnStable=!1,c._destroyed=new W,c._showAlwaysAnimate=!1,c._subscriptAnimationState="",c._hintLabel="",c._hintLabelId="mat-hint-"+tF++,c._labelId="mat-form-field-label-"+tF++,c.floatLabel=c._getDefaultFloatLabelState(),c._animationsEnabled="NoopAnimations"!==u,c.appearance=a&&a.appearance?a.appearance:"legacy",c._hideRequiredMarker=!(!a||null==a.hideRequiredMarker)&&a.hideRequiredMarker,c}return m(n,[{key:"appearance",get:function(){return this._appearance},set:function(e){var t=this._appearance;this._appearance=e||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&t!==e&&(this._outlineGapCalculationNeededOnStable=!0)}},{key:"hideRequiredMarker",get:function(){return this._hideRequiredMarker},set:function(e){this._hideRequiredMarker=lT(e)}},{key:"_shouldAlwaysFloat",value:function(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}},{key:"_canLabelFloat",value:function(){return"never"!==this.floatLabel}},{key:"hintLabel",get:function(){return this._hintLabel},set:function(e){this._hintLabel=e,this._processHints()}},{key:"floatLabel",get:function(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel},set:function(e){e!==this._floatLabel&&(this._floatLabel=e||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}},{key:"_control",get:function(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic},set:function(e){this._explicitFormFieldControl=e}},{key:"getLabelId",value:function(){return this._hasFloatingLabel()?this._labelId:null}},{key:"getConnectedOverlayOrigin",value:function(){return this._connectionContainerRef||this._elementRef}},{key:"ngAfterContentInit",value:function(){var e=this;this._validateControlChild();var t=this._control;t.controlType&&this._elementRef.nativeElement.classList.add("mat-form-field-type-"+t.controlType),t.stateChanges.pipe(Wb(null)).subscribe(function(){e._validatePlaceholders(),e._syncDescribedByIds(),e._changeDetectorRef.markForCheck()}),t.ngControl&&t.ngControl.valueChanges&&t.ngControl.valueChanges.pipe(kR(this._destroyed)).subscribe(function(){return e._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(function(){e._ngZone.onStable.pipe(kR(e._destroyed)).subscribe(function(){e._outlineGapCalculationNeededOnStable&&e.updateOutlineGap()})}),he(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(function(){e._outlineGapCalculationNeededOnStable=!0,e._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(Wb(null)).subscribe(function(){e._processHints(),e._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(Wb(null)).subscribe(function(){e._syncDescribedByIds(),e._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(kR(this._destroyed)).subscribe(function(){"function"==typeof requestAnimationFrame?e._ngZone.runOutsideAngular(function(){requestAnimationFrame(function(){return e.updateOutlineGap()})}):e.updateOutlineGap()})}},{key:"ngAfterContentChecked",value:function(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}},{key:"ngAfterViewInit",value:function(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete()}},{key:"_shouldForward",value:function(e){var t=this._control?this._control.ngControl:null;return t&&t[e]}},{key:"_hasPlaceholder",value:function(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}},{key:"_hasLabel",value:function(){return!(!this._labelChildNonStatic&&!this._labelChildStatic)}},{key:"_shouldLabelFloat",value:function(){return this._canLabelFloat()&&(this._control&&this._control.shouldLabelFloat||this._shouldAlwaysFloat())}},{key:"_hideControlPlaceholder",value:function(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}},{key:"_hasFloatingLabel",value:function(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}},{key:"_getDisplayedMessages",value:function(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}},{key:"_animateAndLockLabel",value:function(){var e=this;this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,Sx(this._label.nativeElement,"transitionend").pipe(Hb(1)).subscribe(function(){e._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}},{key:"_validatePlaceholders",value:function(){}},{key:"_processHints",value:function(){this._validateHints(),this._syncDescribedByIds()}},{key:"_validateHints",value:function(){}},{key:"_getDefaultFloatLabelState",value:function(){return this._defaults&&this._defaults.floatLabel||"auto"}},{key:"_syncDescribedByIds",value:function(){if(this._control){var e=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&e.push.apply(e,y(this._control.userAriaDescribedBy.split(" "))),"hint"===this._getDisplayedMessages()){var t=this._hintChildren?this._hintChildren.find(function(e){return"start"===e.align}):null,n=this._hintChildren?this._hintChildren.find(function(e){return"end"===e.align}):null;t?e.push(t.id):this._hintLabel&&e.push(this._hintLabelId),n&&e.push(n.id)}else this._errorChildren&&e.push.apply(e,y(this._errorChildren.map(function(e){return e.id})));this._control.setDescribedByIds(e)}}},{key:"_validateControlChild",value:function(){}},{key:"updateOutlineGap",value:function(){var e=this._label?this._label.nativeElement:null;if("outline"===this.appearance&&e&&e.children.length&&e.textContent.trim()&&this._platform.isBrowser)if(this._isAttachedToDOM()){var t=0,n=0,i=this._connectionContainerRef.nativeElement,r=i.querySelectorAll(".mat-form-field-outline-start"),o=i.querySelectorAll(".mat-form-field-outline-gap");if(this._label&&this._label.nativeElement.children.length){var a=i.getBoundingClientRect();if(0===a.width&&0===a.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);for(var s=this._getStartEnd(a),l=e.children,u=this._getStartEnd(l[0].getBoundingClientRect()),c=0,d=0;d<l.length;d++)c+=l[d].offsetWidth;t=Math.abs(u-s)-5,n=c>0?.75*c+10:0}for(var h=0;h<r.length;h++)r[h].style.width=t+"px";for(var f=0;f<o.length;f++)o[f].style.width=n+"px";this._outlineGapCalculationNeededOnStable=this._outlineGapCalculationNeededImmediately=!1}else this._outlineGapCalculationNeededImmediately=!0}},{key:"_getStartEnd",value:function(e){return this._dir&&"rtl"===this._dir.value?e.right:e.left}},{key:"_isAttachedToDOM",value:function(){var e=this._elementRef.nativeElement;if(e.getRootNode){var t=e.getRootNode();return t&&t!==e}return document.documentElement.contains(e)}}]),n}(nF)).\u0275fac=function(e){return new(e||WL)(rs(Cl),rs(Kl),rs(Cl),rs(dI,8),rs(iF,8),rs(mT),rs(Ac),rs(_v,8))},WL.\u0275cmp=ft({type:WL,selectors:[["mat-form-field"]],contentQueries:function(e,t,n){var i;1&e&&(Xu(n,QL,1),Xu(n,QL,3),Xu(n,KL,1),Xu(n,KL,3),Xu(n,JL,1),Xu(n,YL,1),Xu(n,XL,1),Xu(n,$L,1),Xu(n,eF,1)),2&e&&(Zu(i=Ku())&&(t._controlNonStatic=i.first),Zu(i=Ku())&&(t._controlStatic=i.first),Zu(i=Ku())&&(t._labelChildNonStatic=i.first),Zu(i=Ku())&&(t._labelChildStatic=i.first),Zu(i=Ku())&&(t._placeholderChild=i.first),Zu(i=Ku())&&(t._errorChildren=i),Zu(i=Ku())&&(t._hintChildren=i),Zu(i=Ku())&&(t._prefixChildren=i),Zu(i=Ku())&&(t._suffixChildren=i))},viewQuery:function(e,t){var n;1&e&&(Qu(CL,1),Qu(SL,3),Qu(PL,1),Qu(EL,1)),2&e&&(Zu(n=Ku())&&(t.underlineRef=n.first),Zu(n=Ku())&&(t._connectionContainerRef=n.first),Zu(n=Ku())&&(t._inputContainerRef=n.first),Zu(n=Ku())&&(t._label=n.first))},hostAttrs:[1,"mat-form-field"],hostVars:44,hostBindings:function(e,t){2&e&&Fs("mat-form-field-appearance-standard","standard"==t.appearance)("mat-form-field-appearance-fill","fill"==t.appearance)("mat-form-field-appearance-outline","outline"==t.appearance)("mat-form-field-appearance-legacy","legacy"==t.appearance)("mat-form-field-invalid",t._control.errorState)("mat-form-field-can-float",t._canLabelFloat())("mat-form-field-should-float",t._shouldLabelFloat())("mat-form-field-has-label",t._hasFloatingLabel())("mat-form-field-hide-placeholder",t._hideControlPlaceholder())("mat-form-field-disabled",t._control.disabled)("mat-form-field-autofilled",t._control.autofilled)("mat-focused",t._control.focused)("mat-accent","accent"==t.color)("mat-warn","warn"==t.color)("ng-untouched",t._shouldForward("untouched"))("ng-touched",t._shouldForward("touched"))("ng-pristine",t._shouldForward("pristine"))("ng-dirty",t._shouldForward("dirty"))("ng-valid",t._shouldForward("valid"))("ng-invalid",t._shouldForward("invalid"))("ng-pending",t._shouldForward("pending"))("_mat-animation-noopable",!t._animationsEnabled)},inputs:{color:"color",floatLabel:"floatLabel",appearance:"appearance",hideRequiredMarker:"hideRequiredMarker",hintLabel:"hintLabel"},exportAs:["matFormField"],features:[yl([{provide:rF,useExisting:WL}]),Va],ngContentSelectors:qL,decls:15,vars:8,consts:[[1,"mat-form-field-wrapper"],[1,"mat-form-field-flex",3,"click"],["connectionContainer",""],[4,"ngIf"],["class","mat-form-field-prefix",4,"ngIf"],[1,"mat-form-field-infix"],["inputContainer",""],[1,"mat-form-field-label-wrapper"],["class","mat-form-field-label",3,"cdkObserveContentDisabled","id","mat-empty","mat-form-field-empty","mat-accent","mat-warn","ngSwitch","cdkObserveContent",4,"ngIf"],["class","mat-form-field-suffix",4,"ngIf"],["class","mat-form-field-underline",4,"ngIf"],[1,"mat-form-field-subscript-wrapper",3,"ngSwitch"],[4,"ngSwitchCase"],["class","mat-form-field-hint-wrapper",4,"ngSwitchCase"],[1,"mat-form-field-outline"],[1,"mat-form-field-outline-start"],[1,"mat-form-field-outline-gap"],[1,"mat-form-field-outline-end"],[1,"mat-form-field-outline","mat-form-field-outline-thick"],[1,"mat-form-field-prefix"],[1,"mat-form-field-label",3,"cdkObserveContentDisabled","id","ngSwitch","cdkObserveContent"],["label",""],["class","mat-placeholder-required mat-form-field-required-marker","aria-hidden","true",4,"ngIf"],["aria-hidden","true",1,"mat-placeholder-required","mat-form-field-required-marker"],[1,"mat-form-field-suffix"],[1,"mat-form-field-underline"],["underline",""],[1,"mat-form-field-ripple"],[1,"mat-form-field-hint-wrapper"],["class","mat-hint",3,"id",4,"ngIf"],[1,"mat-form-field-hint-spacer"],[1,"mat-hint",3,"id"]],template:function(e,t){1&e&&(As(GL),ss(0,"div",0),ss(1,"div",1,2),ms("click",function(e){return t._control.onContainerClick&&t._control.onContainerClick(e)}),ns(3,DL,9,0,"ng-container",3),ns(4,OL,2,0,"div",4),ss(5,"div",5,6),Cs(7),ss(8,"span",7),ns(9,RL,5,16,"label",8),ls(),ls(),ns(10,LL,2,0,"div",9),ls(),ns(11,FL,3,4,"div",10),ss(12,"div",11),ns(13,BL,2,1,"div",12),ns(14,zL,5,2,"div",13),ls(),ls()),2&e&&(xo(3),os("ngIf","outline"==t.appearance),xo(1),os("ngIf",t._prefixChildren.length),xo(5),os("ngIf",t._hasFloatingLabel()),xo(1),os("ngIf",t._suffixChildren.length),xo(1),os("ngIf","outline"!=t.appearance),xo(1),os("ngSwitch",t._getDisplayedMessages()),xo(1),os("ngSwitchCase","error"),xo(1),os("ngSwitchCase","hint"))},directives:[mh,Sh,Ph,PT],styles:[".mat-form-field{display:inline-block;position:relative;text-align:left}[dir=rtl] .mat-form-field{text-align:right}.mat-form-field-wrapper{position:relative}.mat-form-field-flex{display:inline-flex;align-items:baseline;box-sizing:border-box;width:100%}.mat-form-field-prefix,.mat-form-field-suffix{white-space:nowrap;flex:none;position:relative}.mat-form-field-infix{display:block;position:relative;flex:auto;min-width:0;width:180px}.cdk-high-contrast-active .mat-form-field-infix{border-image:linear-gradient(transparent, transparent)}.mat-form-field-label-wrapper{position:absolute;left:0;box-sizing:content-box;width:100%;height:100%;overflow:hidden;pointer-events:none}[dir=rtl] .mat-form-field-label-wrapper{left:auto;right:0}.mat-form-field-label{position:absolute;left:0;font:inherit;pointer-events:none;width:100%;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;transform-origin:0 0;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),color 400ms cubic-bezier(0.25, 0.8, 0.25, 1),width 400ms cubic-bezier(0.25, 0.8, 0.25, 1);display:none}[dir=rtl] .mat-form-field-label{transform-origin:100% 0;left:auto;right:0}.mat-form-field-empty.mat-form-field-label,.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-label{display:block}.mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-label-wrapper .mat-form-field-label{display:none}.mat-form-field-can-float .mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-label-wrapper .mat-form-field-label{display:block;transition:none}.mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label,.mat-input-server[placeholder]:not(:placeholder-shown)+.mat-form-field-label-wrapper .mat-form-field-label{display:none}.mat-form-field-can-float .mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label,.mat-form-field-can-float .mat-input-server[placeholder]:not(:placeholder-shown)+.mat-form-field-label-wrapper .mat-form-field-label{display:block}.mat-form-field-label:not(.mat-form-field-empty){transition:none}.mat-form-field-underline{position:absolute;width:100%;pointer-events:none;transform:scale3d(1, 1.0001, 1)}.mat-form-field-ripple{position:absolute;left:0;width:100%;transform-origin:50%;transform:scaleX(0.5);opacity:0;transition:background-color 300ms cubic-bezier(0.55, 0, 0.55, 0.2)}.mat-form-field.mat-focused .mat-form-field-ripple,.mat-form-field.mat-form-field-invalid .mat-form-field-ripple{opacity:1;transform:none;transition:transform 300ms cubic-bezier(0.25, 0.8, 0.25, 1),opacity 100ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 300ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-subscript-wrapper{position:absolute;box-sizing:border-box;width:100%;overflow:hidden}.mat-form-field-subscript-wrapper .mat-icon,.mat-form-field-label-wrapper .mat-icon{width:1em;height:1em;font-size:inherit;vertical-align:baseline}.mat-form-field-hint-wrapper{display:flex}.mat-form-field-hint-spacer{flex:1 0 1em}.mat-error{display:block}.mat-form-field-control-wrapper{position:relative}.mat-form-field-hint-end{order:1}.mat-form-field._mat-animation-noopable .mat-form-field-label,.mat-form-field._mat-animation-noopable .mat-form-field-ripple{transition:none}\n",'.mat-form-field-appearance-fill .mat-form-field-flex{border-radius:4px 4px 0 0;padding:.75em .75em 0 .75em}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-form-field-flex{outline:solid 1px}.mat-form-field-appearance-fill .mat-form-field-underline::before{content:"";display:block;position:absolute;bottom:0;height:1px;width:100%}.mat-form-field-appearance-fill .mat-form-field-ripple{bottom:0;height:2px}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-form-field-ripple{height:0;border-top:solid 2px}.mat-form-field-appearance-fill:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{opacity:1;transform:none;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-fill._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{transition:none}.mat-form-field-appearance-fill .mat-form-field-subscript-wrapper{padding:0 1em}\n','.mat-input-element{font:inherit;background:transparent;color:currentColor;border:none;outline:none;padding:0;margin:0;width:100%;max-width:100%;vertical-align:bottom;text-align:inherit;box-sizing:content-box}.mat-input-element:-moz-ui-invalid{box-shadow:none}.mat-input-element::-ms-clear,.mat-input-element::-ms-reveal{display:none}.mat-input-element,.mat-input-element::-webkit-search-cancel-button,.mat-input-element::-webkit-search-decoration,.mat-input-element::-webkit-search-results-button,.mat-input-element::-webkit-search-results-decoration{-webkit-appearance:none}.mat-input-element::-webkit-contacts-auto-fill-button,.mat-input-element::-webkit-caps-lock-indicator,.mat-input-element::-webkit-credentials-auto-fill-button{visibility:hidden}.mat-input-element[type=date],.mat-input-element[type=datetime],.mat-input-element[type=datetime-local],.mat-input-element[type=month],.mat-input-element[type=week],.mat-input-element[type=time]{line-height:1}.mat-input-element[type=date]::after,.mat-input-element[type=datetime]::after,.mat-input-element[type=datetime-local]::after,.mat-input-element[type=month]::after,.mat-input-element[type=week]::after,.mat-input-element[type=time]::after{content:" ";white-space:pre;width:1px}.mat-input-element::-webkit-inner-spin-button,.mat-input-element::-webkit-calendar-picker-indicator,.mat-input-element::-webkit-clear-button{font-size:.75em}.mat-input-element::placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::placeholder:-ms-input-placeholder{-ms-user-select:text}.mat-input-element::-moz-placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::-moz-placeholder:-ms-input-placeholder{-ms-user-select:text}.mat-input-element::-webkit-input-placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::-webkit-input-placeholder:-ms-input-placeholder{-ms-user-select:text}.mat-input-element:-ms-input-placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element:-ms-input-placeholder:-ms-input-placeholder{-ms-user-select:text}.mat-form-field-hide-placeholder .mat-input-element::placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.mat-form-field-hide-placeholder .mat-input-element::-moz-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.mat-form-field-hide-placeholder .mat-input-element::-webkit-input-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.mat-form-field-hide-placeholder .mat-input-element:-ms-input-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}textarea.mat-input-element{resize:vertical;overflow:auto}textarea.mat-input-element.cdk-textarea-autosize{resize:none}textarea.mat-input-element{padding:2px 0;margin:-2px 0}select.mat-input-element{-moz-appearance:none;-webkit-appearance:none;position:relative;background-color:transparent;display:inline-flex;box-sizing:border-box;padding-top:1em;top:-1em;margin-bottom:-1em}select.mat-input-element::-ms-expand{display:none}select.mat-input-element::-moz-focus-inner{border:0}select.mat-input-element:not(:disabled){cursor:pointer}select.mat-input-element::-ms-value{color:inherit;background:none}.mat-focused .cdk-high-contrast-active select.mat-input-element::-ms-value{color:inherit}.mat-form-field-type-mat-native-select .mat-form-field-infix::after{content:"";width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;position:absolute;top:50%;right:0;margin-top:-2.5px;pointer-events:none}[dir=rtl] .mat-form-field-type-mat-native-select .mat-form-field-infix::after{right:auto;left:0}.mat-form-field-type-mat-native-select .mat-input-element{padding-right:15px}[dir=rtl] .mat-form-field-type-mat-native-select .mat-input-element{padding-right:0;padding-left:15px}.mat-form-field-type-mat-native-select .mat-form-field-label-wrapper{max-width:calc(100% - 10px)}.mat-form-field-type-mat-native-select.mat-form-field-appearance-outline .mat-form-field-infix::after{margin-top:-5px}.mat-form-field-type-mat-native-select.mat-form-field-appearance-fill .mat-form-field-infix::after{margin-top:-10px}\n',".mat-form-field-appearance-legacy .mat-form-field-label{transform:perspective(100px);-ms-transform:none}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon{width:1em}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon-button,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon-button{font:inherit;vertical-align:baseline}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon-button .mat-icon{font-size:inherit}.mat-form-field-appearance-legacy .mat-form-field-underline{height:1px}.cdk-high-contrast-active .mat-form-field-appearance-legacy .mat-form-field-underline{height:0;border-top:solid 1px}.mat-form-field-appearance-legacy .mat-form-field-ripple{top:0;height:2px;overflow:hidden}.cdk-high-contrast-active .mat-form-field-appearance-legacy .mat-form-field-ripple{height:0;border-top:solid 2px}.mat-form-field-appearance-legacy.mat-form-field-disabled .mat-form-field-underline{background-position:0;background-color:transparent}.cdk-high-contrast-active .mat-form-field-appearance-legacy.mat-form-field-disabled .mat-form-field-underline{border-top-style:dotted;border-top-width:2px}.mat-form-field-appearance-legacy.mat-form-field-invalid:not(.mat-focused) .mat-form-field-ripple{height:1px}\n",".mat-form-field-appearance-outline .mat-form-field-wrapper{margin:.25em 0}.mat-form-field-appearance-outline .mat-form-field-flex{padding:0 .75em 0 .75em;margin-top:-0.25em;position:relative}.mat-form-field-appearance-outline .mat-form-field-prefix,.mat-form-field-appearance-outline .mat-form-field-suffix{top:.25em}.mat-form-field-appearance-outline .mat-form-field-outline{display:flex;position:absolute;top:.25em;left:0;right:0;bottom:0;pointer-events:none}.mat-form-field-appearance-outline .mat-form-field-outline-start,.mat-form-field-appearance-outline .mat-form-field-outline-end{border:1px solid currentColor;min-width:5px}.mat-form-field-appearance-outline .mat-form-field-outline-start{border-radius:5px 0 0 5px;border-right-style:none}[dir=rtl] .mat-form-field-appearance-outline .mat-form-field-outline-start{border-right-style:solid;border-left-style:none;border-radius:0 5px 5px 0}.mat-form-field-appearance-outline .mat-form-field-outline-end{border-radius:0 5px 5px 0;border-left-style:none;flex-grow:1}[dir=rtl] .mat-form-field-appearance-outline .mat-form-field-outline-end{border-left-style:solid;border-right-style:none;border-radius:5px 0 0 5px}.mat-form-field-appearance-outline .mat-form-field-outline-gap{border-radius:.000001px;border:1px solid currentColor;border-left-style:none;border-right-style:none}.mat-form-field-appearance-outline.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-outline-gap{border-top-color:transparent}.mat-form-field-appearance-outline .mat-form-field-outline-thick{opacity:0}.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-start,.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-end,.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-gap{border-width:2px}.mat-form-field-appearance-outline.mat-focused .mat-form-field-outline,.mat-form-field-appearance-outline.mat-form-field-invalid .mat-form-field-outline{opacity:0;transition:opacity 100ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-outline.mat-focused .mat-form-field-outline-thick,.mat-form-field-appearance-outline.mat-form-field-invalid .mat-form-field-outline-thick{opacity:1}.mat-form-field-appearance-outline:not(.mat-form-field-disabled) .mat-form-field-flex:hover .mat-form-field-outline{opacity:0;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-outline:not(.mat-form-field-disabled) .mat-form-field-flex:hover .mat-form-field-outline-thick{opacity:1}.mat-form-field-appearance-outline .mat-form-field-subscript-wrapper{padding:0 1em}.mat-form-field-appearance-outline._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-outline,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-start,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-end,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-gap{transition:none}\n",".mat-form-field-appearance-standard .mat-form-field-flex{padding-top:.75em}.mat-form-field-appearance-standard .mat-form-field-underline{height:1px}.cdk-high-contrast-active .mat-form-field-appearance-standard .mat-form-field-underline{height:0;border-top:solid 1px}.mat-form-field-appearance-standard .mat-form-field-ripple{bottom:0;height:2px}.cdk-high-contrast-active .mat-form-field-appearance-standard .mat-form-field-ripple{height:0;border-top:solid 2px}.mat-form-field-appearance-standard.mat-form-field-disabled .mat-form-field-underline{background-position:0;background-color:transparent}.cdk-high-contrast-active .mat-form-field-appearance-standard.mat-form-field-disabled .mat-form-field-underline{border-top-style:dotted;border-top-width:2px}.mat-form-field-appearance-standard:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{opacity:1;transform:none;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-standard._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{transition:none}\n"],encapsulation:2,data:{animation:[ZL.transitionMessages]},changeDetection:0}),WL),aF=((UL=function e(){A(this,e)}).\u0275fac=function(e){return new(e||UL)},UL.\u0275mod=mt({type:UL}),UL.\u0275inj=Fe({imports:[[Zh,kI,ET],kI]}),UL);function sF(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:nT,i=(t=e)instanceof Date&&!isNaN(+t)?+e-n.now():Math.abs(e);return function(e){return e.lift(new hF(i,n))}}var lF,uF,cF,dF,hF=function(){function e(t,n){A(this,e),this.delay=t,this.scheduler=n}return m(e,[{key:"call",value:function(e,t){return t.subscribe(new fF(e,this.delay,this.scheduler))}}]),e}(),fF=function(e){r(n,e);var t=a(n);function n(e,i,r){var o;return A(this,n),(o=t.call(this,e)).delay=i,o.scheduler=r,o.queue=[],o.active=!1,o.errored=!1,o}return m(n,[{key:"_schedule",value:function(e){this.active=!0,this.destination.add(e.schedule(n.dispatch,this.delay,{source:this,destination:this.destination,scheduler:e}))}},{key:"scheduleNotification",value:function(e){if(!0!==this.errored){var t=this.scheduler,n=new pF(t.now()+this.delay,e);this.queue.push(n),!1===this.active&&this._schedule(t)}}},{key:"_next",value:function(e){this.scheduleNotification(EP.createNext(e))}},{key:"_error",value:function(e){this.errored=!0,this.queue=[],this.destination.error(e),this.unsubscribe()}},{key:"_complete",value:function(){this.scheduleNotification(EP.createComplete()),this.unsubscribe()}}],[{key:"dispatch",value:function(e){for(var t=e.source,n=t.queue,i=e.scheduler,r=e.destination;n.length>0&&n[0].time-i.now()<=0;)n.shift().notification.observe(r);if(n.length>0){var o=Math.max(0,n[0].time-i.now());this.schedule(e,o)}else this.unsubscribe(),t.active=!1}}]),n}(I),pF=function e(t,n){A(this,e),this.time=t,this.notification=n},gF={provide:new mi("mat-autocomplete-scroll-strategy"),deps:[yL],useFactory:function(e){return function(){return e.scrollStrategies.reposition()}}},vF=((uF=function e(){A(this,e)}).\u0275fac=function(e){return new(e||uF)},uF.\u0275mod=mt({type:uF}),uF.\u0275inj=Fe({providers:[gF],imports:[[AL,aR,kI,Zh],TR,aR,kI]}),uF),mF=((lF=function e(){A(this,e)}).\u0275fac=function(e){return new(e||lF)},lF.\u0275mod=mt({type:lF}),lF.\u0275inj=Fe({imports:[[uI,kI],kI]}),lF),yF=function(){function e(t){A(this,e),this.total=t}return m(e,[{key:"call",value:function(e,t){return t.subscribe(new bF(e,this.total))}}]),e}(),bF=function(e){r(n,e);var t=a(n);function n(e,i){var r;return A(this,n),(r=t.call(this,e)).total=i,r.count=0,r}return m(n,[{key:"_next",value:function(e){++this.count>this.total&&this.destination.next(e)}}]),n}(I),wF=new Set,_F=((dF=function(){function e(t){A(this,e),this._platform=t,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):kF}return m(e,[{key:"matchMedia",value:function(e){return this._platform.WEBKIT&&function(e){if(!wF.has(e))try{cF||((cF=document.createElement("style")).setAttribute("type","text/css"),document.head.appendChild(cF)),cF.sheet&&(cF.sheet.insertRule("@media ".concat(e," {.fx-query-test{ }}"),0),wF.add(e))}catch(t){console.error(t)}}(e),this._matchMedia(e)}}]),e}()).\u0275fac=function(e){return new(e||dF)(Ri(mT))},dF.\u0275prov=Re({factory:function(){return new dF(Ri(mT))},token:dF,providedIn:"root"}),dF);function kF(e){return{matches:"all"===e||""===e,media:e,addListener:function(){},removeListener:function(){}}}var xF,AF=((xF=function(){function e(t,n){A(this,e),this._mediaMatcher=t,this._zone=n,this._queries=new Map,this._destroySubject=new W}return m(e,[{key:"ngOnDestroy",value:function(){this._destroySubject.next(),this._destroySubject.complete()}},{key:"isMatched",value:function(e){var t=this;return CF(cT(e)).some(function(e){return t._registerQuery(e).mql.matches})}},{key:"observe",value:function(e){var t=this,n=Db(CF(cT(e)).map(function(e){return t._registerQuery(e).observable}));return(n=Ib(n.pipe(Hb(1)),n.pipe(function(e){return e.lift(new yF(1))},iT(0)))).pipe(Y(function(e){var t={matches:!1,breakpoints:{}};return e.forEach(function(e){var n=e.matches,i=e.query;t.matches=t.matches||n,t.breakpoints[i]=n}),t}))}},{key:"_registerQuery",value:function(e){var t=this;if(this._queries.has(e))return this._queries.get(e);var n=this._mediaMatcher.matchMedia(e),i={observable:new V(function(e){var i=function(n){return t._zone.run(function(){return e.next(n)})};return n.addListener(i),function(){n.removeListener(i)}}).pipe(Wb(n),Y(function(t){var n=t.matches;return{query:e,matches:n}}),kR(this._destroySubject)),mql:n};return this._queries.set(e,i),i}}]),e}()).\u0275fac=function(e){return new(e||xF)(Ri(_F),Ri(Ac))},xF.\u0275prov=Re({factory:function(){return new xF(Ri(_F),Ri(Ac))},token:xF,providedIn:"root"}),xF);function CF(e){return e.map(function(e){return e.split(",")}).reduce(function(e,t){return e.concat(t)}).map(function(e){return e.trim()})}function SF(e,t){}var PF,EF,DF,OF,MF,TF,IF,RF,LF=new mi("MatBottomSheetData"),FF=function e(){A(this,e),this.data=null,this.hasBackdrop=!0,this.disableClose=!1,this.ariaLabel=null,this.closeOnNavigation=!0,this.autoFocus=!1,this.restoreFocus=!0},BF={bottomSheetState:Xf("state",[ep("void, hidden",$f({transform:"translateY(100%)"})),ep("visible",$f({transform:"translateY(0%)"})),np("visible => void, visible => hidden",Kf("".concat(bI.COMPLEX," ").concat(yI.ACCELERATION_CURVE))),np("void => visible",Kf("".concat(bI.EXITING," ").concat(yI.DECELERATION_CURVE)))])},VF=((EF=function(e){r(n,e);var t=a(n);function n(e,i,r,o,a,s){var l;return A(this,n),(l=t.call(this))._elementRef=e,l._changeDetectorRef=i,l._focusTrapFactory=r,l.bottomSheetConfig=s,l._animationState="void",l._animationStateChanged=new Fu,l._elementFocusedBeforeOpened=null,l.attachDomPortal=function(e){return l._validatePortalAttached(),l._setPanelClass(),l._savePreviouslyFocusedElement(),l._portalOutlet.attachDomPortal(e)},l._document=a,l._breakpointSubscription=o.observe(["(min-width: 960px) and (max-width: 1279.98px)","(min-width: 1280px) and (max-width: 1919.98px)","(min-width: 1920px)"]).subscribe(function(){l._toggleClass("mat-bottom-sheet-container-medium",o.isMatched("(min-width: 960px) and (max-width: 1279.98px)")),l._toggleClass("mat-bottom-sheet-container-large",o.isMatched("(min-width: 1280px) and (max-width: 1919.98px)")),l._toggleClass("mat-bottom-sheet-container-xlarge",o.isMatched("(min-width: 1920px)"))}),l}return m(n,[{key:"attachComponentPortal",value:function(e){return this._validatePortalAttached(),this._setPanelClass(),this._savePreviouslyFocusedElement(),this._portalOutlet.attachComponentPortal(e)}},{key:"attachTemplatePortal",value:function(e){return this._validatePortalAttached(),this._setPanelClass(),this._savePreviouslyFocusedElement(),this._portalOutlet.attachTemplatePortal(e)}},{key:"enter",value:function(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.detectChanges())}},{key:"exit",value:function(){this._destroyed||(this._animationState="hidden",this._changeDetectorRef.markForCheck())}},{key:"ngOnDestroy",value:function(){this._breakpointSubscription.unsubscribe(),this._destroyed=!0}},{key:"_onAnimationDone",value:function(e){"hidden"===e.toState?this._restoreFocus():"visible"===e.toState&&this._trapFocus(),this._animationStateChanged.emit(e)}},{key:"_onAnimationStart",value:function(e){this._animationStateChanged.emit(e)}},{key:"_toggleClass",value:function(e,t){var n=this._elementRef.nativeElement.classList;t?n.add(e):n.remove(e)}},{key:"_validatePortalAttached",value:function(){this._portalOutlet.hasAttached()}},{key:"_setPanelClass",value:function(){var e=this._elementRef.nativeElement,t=this.bottomSheetConfig.panelClass;Array.isArray(t)?t.forEach(function(t){return e.classList.add(t)}):t&&e.classList.add(t)}},{key:"_trapFocus",value:function(){var e=this._elementRef.nativeElement;if(this._focusTrap||(this._focusTrap=this._focusTrapFactory.create(e)),this.bottomSheetConfig.autoFocus)this._focusTrap.focusInitialElementWhenReady();else{var t=this._getActiveElement();t===e||e.contains(t)||e.focus()}}},{key:"_restoreFocus",value:function(){var e=this._elementFocusedBeforeOpened;if(this.bottomSheetConfig.restoreFocus&&e&&"function"==typeof e.focus){var t=this._getActiveElement(),n=this._elementRef.nativeElement;t&&t!==this._document.body&&t!==n&&!n.contains(t)||e.focus()}this._focusTrap&&this._focusTrap.destroy()}},{key:"_savePreviouslyFocusedElement",value:function(){var e=this;this._elementFocusedBeforeOpened=this._getActiveElement(),this._elementRef.nativeElement.focus&&Promise.resolve().then(function(){return e._elementRef.nativeElement.focus()})}},{key:"_getActiveElement",value:function(){var e,t=this._document.activeElement;return(null===(e=null==t?void 0:t.shadowRoot)||void 0===e?void 0:e.activeElement)||t}}]),n}(xE)).\u0275fac=function(e){return new(e||EF)(rs(Cl),rs(Kl),rs(qT),rs(AF),rs(od,8),rs(FF))},EF.\u0275cmp=ft({type:EF,selectors:[["mat-bottom-sheet-container"]],viewQuery:function(e,t){var n;1&e&&Qu(CE,3),2&e&&Zu(n=Ku())&&(t._portalOutlet=n.first)},hostAttrs:["tabindex","-1","role","dialog","aria-modal","true",1,"mat-bottom-sheet-container"],hostVars:2,hostBindings:function(e,t){1&e&&ys("@state.start",function(e){return t._onAnimationStart(e)})("@state.done",function(e){return t._onAnimationDone(e)}),2&e&&($a("aria-label",null==t.bottomSheetConfig?null:t.bottomSheetConfig.ariaLabel),il("@state",t._animationState))},features:[Va],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,t){1&e&&ns(0,SF,0,0,"ng-template",0)},directives:[CE],styles:[".mat-bottom-sheet-container{padding:8px 16px;min-width:100vw;box-sizing:border-box;display:block;outline:0;max-height:80vh;overflow:auto}.cdk-high-contrast-active .mat-bottom-sheet-container{outline:1px solid}.mat-bottom-sheet-container-xlarge,.mat-bottom-sheet-container-large,.mat-bottom-sheet-container-medium{border-top-left-radius:4px;border-top-right-radius:4px}.mat-bottom-sheet-container-medium{min-width:384px;max-width:calc(100vw - 128px)}.mat-bottom-sheet-container-large{min-width:512px;max-width:calc(100vw - 256px)}.mat-bottom-sheet-container-xlarge{min-width:576px;max-width:calc(100vw - 384px)}\n"],encapsulation:2,data:{animation:[BF.bottomSheetState]}}),EF),zF=((PF=function e(){A(this,e)}).\u0275fac=function(e){return new(e||PF)},PF.\u0275mod=mt({type:PF}),PF.\u0275inj=Fe({imports:[[AL,kI,SE],kI]}),PF),NF=function(){function e(t,n){var i=this;A(this,e),this._overlayRef=n,this._afterDismissed=new W,this._afterOpened=new W,this.containerInstance=t,this.disableClose=t.bottomSheetConfig.disableClose,t._animationStateChanged.pipe(Ry(function(e){return"done"===e.phaseName&&"visible"===e.toState}),Hb(1)).subscribe(function(){i._afterOpened.next(),i._afterOpened.complete()}),t._animationStateChanged.pipe(Ry(function(e){return"done"===e.phaseName&&"hidden"===e.toState}),Hb(1)).subscribe(function(){clearTimeout(i._closeFallbackTimeout),n.dispose()}),n.detachments().pipe(Hb(1)).subscribe(function(){i._afterDismissed.next(i._result),i._afterDismissed.complete()}),he(n.backdropClick(),n.keydownEvents().pipe(Ry(function(e){return 27===e.keyCode}))).subscribe(function(e){i.disableClose||"keydown"===e.type&&tT(e)||(e.preventDefault(),i.dismiss())})}return m(e,[{key:"dismiss",value:function(e){var t=this;this._afterDismissed.closed||(this.containerInstance._animationStateChanged.pipe(Ry(function(e){return"start"===e.phaseName}),Hb(1)).subscribe(function(e){t._closeFallbackTimeout=setTimeout(function(){t._overlayRef.dispose()},e.totalTime+100),t._overlayRef.detachBackdrop()}),this._result=e,this.containerInstance.exit())}},{key:"afterDismissed",value:function(){return this._afterDismissed}},{key:"afterOpened",value:function(){return this._afterOpened}},{key:"backdropClick",value:function(){return this._overlayRef.backdropClick()}},{key:"keydownEvents",value:function(){return this._overlayRef.keydownEvents()}}]),e}(),HF=new mi("mat-bottom-sheet-default-options"),jF=((DF=function(){function e(t,n,i,r){A(this,e),this._overlay=t,this._injector=n,this._parentBottomSheet=i,this._defaultOptions=r,this._bottomSheetRefAtThisLevel=null}return m(e,[{key:"_openedBottomSheetRef",get:function(){var e=this._parentBottomSheet;return e?e._openedBottomSheetRef:this._bottomSheetRefAtThisLevel},set:function(e){this._parentBottomSheet?this._parentBottomSheet._openedBottomSheetRef=e:this._bottomSheetRefAtThisLevel=e}},{key:"open",value:function(e,t){var n=this,i=function(e,t){return Object.assign(Object.assign({},e),t)}(this._defaultOptions||new FF,t),r=this._createOverlay(i),o=this._attachContainer(r,i),a=new NF(o,r);if(e instanceof iu)o.attachTemplatePortal(new _E(e,null,{$implicit:i.data,bottomSheetRef:a}));else{var s=new wE(e,void 0,this._createInjector(i,a)),l=o.attachComponentPortal(s);a.instance=l.instance}return a.afterDismissed().subscribe(function(){n._openedBottomSheetRef==a&&(n._openedBottomSheetRef=null)}),this._openedBottomSheetRef?(this._openedBottomSheetRef.afterDismissed().subscribe(function(){return a.containerInstance.enter()}),this._openedBottomSheetRef.dismiss()):a.containerInstance.enter(),this._openedBottomSheetRef=a,a}},{key:"dismiss",value:function(e){this._openedBottomSheetRef&&this._openedBottomSheetRef.dismiss(e)}},{key:"ngOnDestroy",value:function(){this._bottomSheetRefAtThisLevel&&this._bottomSheetRefAtThisLevel.dismiss()}},{key:"_attachContainer",value:function(e,t){var n=Fa.create({parent:t&&t.viewContainerRef&&t.viewContainerRef.injector||this._injector,providers:[{provide:FF,useValue:t}]}),i=new wE(VF,t.viewContainerRef,n);return e.attach(i).instance}},{key:"_createOverlay",value:function(e){var t=new QR({direction:e.direction,hasBackdrop:e.hasBackdrop,disposeOnNavigation:e.closeOnNavigation,maxWidth:"100%",scrollStrategy:e.scrollStrategy||this._overlay.scrollStrategies.block(),positionStrategy:this._overlay.position().global().centerHorizontally().bottom("0")});return e.backdropClass&&(t.backdropClass=e.backdropClass),this._overlay.create(t)}},{key:"_createInjector",value:function(e,t){var n=e&&e.viewContainerRef&&e.viewContainerRef.injector,i=[{provide:NF,useValue:t},{provide:LF,useValue:e.data}];return!e.direction||n&&n.get(dI,null)||i.push({provide:dI,useValue:{value:e.direction,change:Ty()}}),Fa.create({parent:n||this._injector,providers:i})}}]),e}()).\u0275fac=function(e){return new(e||DF)(Ri(yL),Ri(Fa),Ri(DF,12),Ri(HF,8))},DF.\u0275prov=Re({factory:function(){return new DF(Ri(yL),Ri(wa),Ri(DF,12),Ri(HF,8))},token:DF,providedIn:zF}),DF),UF=["mat-button",""],WF=["*"],GF=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],qF=AI(xI(CI(function e(t){A(this,e),this._elementRef=t}))),YF=((RF=function(e){r(n,e);var t=a(n);function n(e,i,r){var o;A(this,n),(o=t.call(this,e))._focusMonitor=i,o._animationMode=r,o.isRoundButton=o._hasHostAttributes("mat-fab","mat-mini-fab"),o.isIconButton=o._hasHostAttributes("mat-icon-button");var a,s=h(GF);try{for(s.s();!(a=s.n()).done;){var l=a.value;o._hasHostAttributes(l)&&o._getHostElement().classList.add(l)}}catch(u){s.e(u)}finally{s.f()}return e.nativeElement.classList.add("mat-button-base"),o.isRoundButton&&(o.color="accent"),o}return m(n,[{key:"ngAfterViewInit",value:function(){this._focusMonitor.monitor(this._elementRef,!0)}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef)}},{key:"focus",value:function(e,t){e?this._focusMonitor.focusVia(this._getHostElement(),e,t):this._getHostElement().focus(t)}},{key:"_getHostElement",value:function(){return this._elementRef.nativeElement}},{key:"_isRippleDisabled",value:function(){return this.disableRipple||this.disabled}},{key:"_hasHostAttributes",value:function(){for(var e=this,t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return n.some(function(t){return e._getHostElement().hasAttribute(t)})}}]),n}(qF)).\u0275fac=function(e){return new(e||RF)(rs(Cl),rs(nI),rs(_v,8))},RF.\u0275cmp=ft({type:RF,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-icon-button",""],["button","mat-fab",""],["button","mat-mini-fab",""],["button","mat-stroked-button",""],["button","mat-flat-button",""]],viewQuery:function(e,t){var n;1&e&&Qu(GI,1),2&e&&Zu(n=Ku())&&(t.ripple=n.first)},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(e,t){2&e&&($a("disabled",t.disabled||null),Fs("_mat-animation-noopable","NoopAnimations"===t._animationMode)("mat-button-disabled",t.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[Va],attrs:UF,ngContentSelectors:WF,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(e,t){1&e&&(As(),ss(0,"span",0),Cs(1),ls(),us(2,"span",1),us(3,"span",2)),2&e&&(xo(2),Fs("mat-button-ripple-round",t.isRoundButton||t.isIconButton),os("matRippleDisabled",t._isRippleDisabled())("matRippleCentered",t.isIconButton)("matRippleTrigger",t._getHostElement()))},directives:[GI],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n"],encapsulation:2,changeDetection:0}),RF),ZF=((IF=function e(){A(this,e)}).\u0275fac=function(e){return new(e||IF)},IF.\u0275mod=mt({type:IF}),IF.\u0275inj=Fe({imports:[[qI,kI],kI]}),IF),QF=((TF=function e(){A(this,e)}).\u0275fac=function(e){return new(e||TF)},TF.\u0275mod=mt({type:TF}),TF.\u0275inj=Fe({imports:[[kI],kI]}),TF),XF=((MF=function e(){A(this,e)}).\u0275fac=function(e){return new(e||MF)},MF.\u0275mod=mt({type:MF}),MF.\u0275inj=Fe({}),MF),KF=((OF=function e(){A(this,e)}).\u0275fac=function(e){return new(e||OF)},OF.\u0275mod=mt({type:OF}),OF.\u0275inj=Fe({imports:[[qI,kI,ET,XF],kI,XF]}),OF);function JF(e,t){}var $F,eB,tB=function e(){A(this,e),this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.autoFocus=!0,this.restoreFocus=!0,this.closeOnNavigation=!0},nB={dialogContainer:Xf("dialogContainer",[ep("void, exit",$f({opacity:0,transform:"scale(0.7)"})),ep("enter",$f({transform:"none"})),np("* => enter",Kf("150ms cubic-bezier(0, 0, 0.2, 1)",$f({transform:"none",opacity:1}))),np("* => void, * => exit",Kf("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",$f({opacity:0})))])},iB=((eB=function(e){r(n,e);var t=a(n);function n(e,i,r,o,a,s){var l;return A(this,n),(l=t.call(this))._elementRef=e,l._focusTrapFactory=i,l._changeDetectorRef=r,l._config=a,l._focusMonitor=s,l._animationStateChanged=new Fu,l._elementFocusedBeforeDialogWasOpened=null,l._closeInteractionType=null,l.attachDomPortal=function(e){return l._portalOutlet.hasAttached(),l._portalOutlet.attachDomPortal(e)},l._ariaLabelledBy=a.ariaLabelledBy||null,l._document=o,l}return m(n,[{key:"_initializeWithAttachedContent",value:function(){this._setupFocusTrap(),this._capturePreviouslyFocusedElement(),this._focusDialogContainer()}},{key:"attachComponentPortal",value:function(e){return this._portalOutlet.hasAttached(),this._portalOutlet.attachComponentPortal(e)}},{key:"attachTemplatePortal",value:function(e){return this._portalOutlet.hasAttached(),this._portalOutlet.attachTemplatePortal(e)}},{key:"_recaptureFocus",value:function(){this._containsFocus()||(!this._config.autoFocus||!this._focusTrap.focusInitialElement())&&this._elementRef.nativeElement.focus()}},{key:"_trapFocus",value:function(){this._config.autoFocus?this._focusTrap.focusInitialElementWhenReady():this._containsFocus()||this._elementRef.nativeElement.focus()}},{key:"_restoreFocus",value:function(){var e=this._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&e&&"function"==typeof e.focus){var t=this._getActiveElement(),n=this._elementRef.nativeElement;t&&t!==this._document.body&&t!==n&&!n.contains(t)||(this._focusMonitor?(this._focusMonitor.focusVia(e,this._closeInteractionType),this._closeInteractionType=null):e.focus())}this._focusTrap&&this._focusTrap.destroy()}},{key:"_setupFocusTrap",value:function(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement)}},{key:"_capturePreviouslyFocusedElement",value:function(){this._document&&(this._elementFocusedBeforeDialogWasOpened=this._getActiveElement())}},{key:"_focusDialogContainer",value:function(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}},{key:"_containsFocus",value:function(){var e=this._elementRef.nativeElement,t=this._getActiveElement();return e===t||e.contains(t)}},{key:"_getActiveElement",value:function(){var e,t=this._document.activeElement;return(null===(e=null==t?void 0:t.shadowRoot)||void 0===e?void 0:e.activeElement)||t}}]),n}(xE)).\u0275fac=function(e){return new(e||eB)(rs(Cl),rs(qT),rs(Kl),rs(od,8),rs(tB),rs(nI))},eB.\u0275dir=bt({type:eB,viewQuery:function(e,t){var n;1&e&&Qu(CE,3),2&e&&Zu(n=Ku())&&(t._portalOutlet=n.first)},features:[Va]}),eB),rB=(($F=function(e){r(n,e);var t=a(n);function n(){var e;return A(this,n),(e=t.apply(this,arguments))._state="enter",e}return m(n,[{key:"_onAnimationDone",value:function(e){var t=e.toState,n=e.totalTime;"enter"===t?(this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:n})):"exit"===t&&(this._restoreFocus(),this._animationStateChanged.next({state:"closed",totalTime:n}))}},{key:"_onAnimationStart",value:function(e){var t=e.toState,n=e.totalTime;"enter"===t?this._animationStateChanged.next({state:"opening",totalTime:n}):"exit"!==t&&"void"!==t||this._animationStateChanged.next({state:"closing",totalTime:n})}},{key:"_startExitAnimation",value:function(){this._state="exit",this._changeDetectorRef.markForCheck()}}]),n}(iB)).\u0275fac=function(e){return oB(e||$F)},$F.\u0275cmp=ft({type:$F,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(e,t){1&e&&ys("@dialogContainer.start",function(e){return t._onAnimationStart(e)})("@dialogContainer.done",function(e){return t._onAnimationDone(e)}),2&e&&(nl("id",t._id),$a("role",t._config.role)("aria-labelledby",t._config.ariaLabel?null:t._ariaLabelledBy)("aria-label",t._config.ariaLabel)("aria-describedby",t._config.ariaDescribedBy||null),il("@dialogContainer",t._state))},features:[Va],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,t){1&e&&ns(0,JF,0,0,"ng-template",0)},directives:[CE],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[nB.dialogContainer]}}),$F),oB=hi(rB),aB=0,sB=function(){function e(t,n){var i=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"mat-dialog-"+aB++;A(this,e),this._overlayRef=t,this._containerInstance=n,this.id=r,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new W,this._afterClosed=new W,this._beforeClosed=new W,this._state=0,n._id=r,n._animationStateChanged.pipe(Ry(function(e){return"opened"===e.state}),Hb(1)).subscribe(function(){i._afterOpened.next(),i._afterOpened.complete()}),n._animationStateChanged.pipe(Ry(function(e){return"closed"===e.state}),Hb(1)).subscribe(function(){clearTimeout(i._closeFallbackTimeout),i._finishDialogClose()}),t.detachments().subscribe(function(){i._beforeClosed.next(i._result),i._beforeClosed.complete(),i._afterClosed.next(i._result),i._afterClosed.complete(),i.componentInstance=null,i._overlayRef.dispose()}),t.keydownEvents().pipe(Ry(function(e){return 27===e.keyCode&&!i.disableClose&&!tT(e)})).subscribe(function(e){e.preventDefault(),lB(i,"keyboard")}),t.backdropClick().subscribe(function(){i.disableClose?i._containerInstance._recaptureFocus():lB(i,"mouse")})}return m(e,[{key:"close",value:function(e){var t=this;this._result=e,this._containerInstance._animationStateChanged.pipe(Ry(function(e){return"closing"===e.state}),Hb(1)).subscribe(function(n){t._beforeClosed.next(e),t._beforeClosed.complete(),t._overlayRef.detachBackdrop(),t._closeFallbackTimeout=setTimeout(function(){return t._finishDialogClose()},n.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}},{key:"afterOpened",value:function(){return this._afterOpened}},{key:"afterClosed",value:function(){return this._afterClosed}},{key:"beforeClosed",value:function(){return this._beforeClosed}},{key:"backdropClick",value:function(){return this._overlayRef.backdropClick()}},{key:"keydownEvents",value:function(){return this._overlayRef.keydownEvents()}},{key:"updatePosition",value:function(e){var t=this._getPositionStrategy();return e&&(e.left||e.right)?e.left?t.left(e.left):t.right(e.right):t.centerHorizontally(),e&&(e.top||e.bottom)?e.top?t.top(e.top):t.bottom(e.bottom):t.centerVertically(),this._overlayRef.updatePosition(),this}},{key:"updateSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return this._overlayRef.updateSize({width:e,height:t}),this._overlayRef.updatePosition(),this}},{key:"addPanelClass",value:function(e){return this._overlayRef.addPanelClass(e),this}},{key:"removePanelClass",value:function(e){return this._overlayRef.removePanelClass(e),this}},{key:"getState",value:function(){return this._state}},{key:"_finishDialogClose",value:function(){this._state=2,this._overlayRef.dispose()}},{key:"_getPositionStrategy",value:function(){return this._overlayRef.getConfig().positionStrategy}}]),e}();function lB(e,t,n){return void 0!==e._containerInstance&&(e._containerInstance._closeInteractionType=t),e.close(n)}var uB,cB,dB,hB,fB,pB,gB,vB,mB=new mi("MatDialogData"),yB=new mi("mat-dialog-default-options"),bB=new mi("mat-dialog-scroll-strategy"),wB={provide:bB,deps:[yL],useFactory:function(e){return function(){return e.scrollStrategies.block()}}},_B=((vB=function(){function e(t,n,i,r,o,a,s,l,u){var c=this;A(this,e),this._overlay=t,this._injector=n,this._defaultOptions=i,this._parentDialog=r,this._overlayContainer=o,this._dialogRefConstructor=s,this._dialogContainerType=l,this._dialogDataToken=u,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new W,this._afterOpenedAtThisLevel=new W,this._ariaHiddenElements=new Map,this.afterAllClosed=Fb(function(){return c.openDialogs.length?c._getAfterAllClosed():c._getAfterAllClosed().pipe(Wb(void 0))}),this._scrollStrategy=a}return m(e,[{key:"openDialogs",get:function(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}},{key:"afterOpened",get:function(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}},{key:"_getAfterAllClosed",value:function(){var e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}},{key:"open",value:function(e,t){var n=this;(t=function(e,t){return Object.assign(Object.assign({},t),e)}(t,this._defaultOptions||new tB)).id&&this.getDialogById(t.id);var i=this._createOverlay(t),r=this._attachDialogContainer(i,t),o=this._attachDialogContent(e,r,i,t);return this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(o),o.afterClosed().subscribe(function(){return n._removeOpenDialog(o)}),this.afterOpened.next(o),r._initializeWithAttachedContent(),o}},{key:"closeAll",value:function(){this._closeDialogs(this.openDialogs)}},{key:"getDialogById",value:function(e){return this.openDialogs.find(function(t){return t.id===e})}},{key:"ngOnDestroy",value:function(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}},{key:"_createOverlay",value:function(e){var t=this._getOverlayConfig(e);return this._overlay.create(t)}},{key:"_getOverlayConfig",value:function(e){var t=new QR({positionStrategy:this._overlay.position().global(),scrollStrategy:e.scrollStrategy||this._scrollStrategy(),panelClass:e.panelClass,hasBackdrop:e.hasBackdrop,direction:e.direction,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight,disposeOnNavigation:e.closeOnNavigation});return e.backdropClass&&(t.backdropClass=e.backdropClass),t}},{key:"_attachDialogContainer",value:function(e,t){var n=Fa.create({parent:t&&t.viewContainerRef&&t.viewContainerRef.injector||this._injector,providers:[{provide:tB,useValue:t}]}),i=new wE(this._dialogContainerType,t.viewContainerRef,n,t.componentFactoryResolver);return e.attach(i).instance}},{key:"_attachDialogContent",value:function(e,t,n,i){var r=new this._dialogRefConstructor(n,t,i.id);if(e instanceof iu)t.attachTemplatePortal(new _E(e,null,{$implicit:i.data,dialogRef:r}));else{var o=this._createInjector(i,r,t),a=t.attachComponentPortal(new wE(e,i.viewContainerRef,o));r.componentInstance=a.instance}return r.updateSize(i.width,i.height).updatePosition(i.position),r}},{key:"_createInjector",value:function(e,t,n){var i=e&&e.viewContainerRef&&e.viewContainerRef.injector,r=[{provide:this._dialogContainerType,useValue:n},{provide:this._dialogDataToken,useValue:e.data},{provide:this._dialogRefConstructor,useValue:t}];return!e.direction||i&&i.get(dI,null)||r.push({provide:dI,useValue:{value:e.direction,change:Ty()}}),Fa.create({parent:i||this._injector,providers:r})}},{key:"_removeOpenDialog",value:function(e){var t=this.openDialogs.indexOf(e);t>-1&&(this.openDialogs.splice(t,1),this.openDialogs.length||(this._ariaHiddenElements.forEach(function(e,t){e?t.setAttribute("aria-hidden",e):t.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),this._getAfterAllClosed().next()))}},{key:"_hideNonDialogContentFromAssistiveTechnology",value:function(){var e=this._overlayContainer.getContainerElement();if(e.parentElement)for(var t=e.parentElement.children,n=t.length-1;n>-1;n--){var i=t[n];i===e||"SCRIPT"===i.nodeName||"STYLE"===i.nodeName||i.hasAttribute("aria-live")||(this._ariaHiddenElements.set(i,i.getAttribute("aria-hidden")),i.setAttribute("aria-hidden","true"))}}},{key:"_closeDialogs",value:function(e){for(var t=e.length;t--;)e[t].close()}}]),e}()).\u0275fac=function(e){return new(e||vB)(rs(yL),rs(Fa),rs(void 0),rs(void 0),rs(nL),rs(void 0),rs(bi),rs(bi),rs(mi))},vB.\u0275dir=bt({type:vB}),vB),kB=((gB=function(e){r(n,e);var t=a(n);function n(e,i,r,o,a,s,l){return A(this,n),t.call(this,e,i,o,s,l,a,sB,rB,mB)}return n}(_B)).\u0275fac=function(e){return new(e||gB)(Ri(yL),Ri(Fa),Ri(Cd,8),Ri(yB,8),Ri(bB),Ri(gB,12),Ri(nL))},gB.\u0275prov=Re({token:gB,factory:gB.\u0275fac}),gB),xB=0,AB=((pB=function(){function e(t,n,i){A(this,e),this._dialogRef=t,this._elementRef=n,this._dialog=i,this.id="mat-dialog-title-"+xB++}return m(e,[{key:"ngOnInit",value:function(){var e=this;this._dialogRef||(this._dialogRef=function(e,t){for(var n=e.nativeElement.parentElement;n&&!n.classList.contains("mat-dialog-container");)n=n.parentElement;return n?t.find(function(e){return e.id===n.id}):null}(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(function(){var t=e._dialogRef._containerInstance;t&&!t._ariaLabelledBy&&(t._ariaLabelledBy=e.id)})}}]),e}()).\u0275fac=function(e){return new(e||pB)(rs(sB,8),rs(Cl),rs(kB))},pB.\u0275dir=bt({type:pB,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(e,t){2&e&&nl("id",t.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),pB),CB=((fB=function e(){A(this,e)}).\u0275fac=function(e){return new(e||fB)},fB.\u0275dir=bt({type:fB,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),fB),SB=((hB=function e(){A(this,e)}).\u0275fac=function(e){return new(e||hB)},hB.\u0275dir=bt({type:hB,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"]}),hB),PB=((dB=function e(){A(this,e)}).\u0275fac=function(e){return new(e||dB)},dB.\u0275mod=mt({type:dB}),dB.\u0275inj=Fe({providers:[kB,wB],imports:[[AL,SE,kI],kI]}),dB),EB=((cB=function e(){A(this,e)}).\u0275fac=function(e){return new(e||cB)},cB.\u0275mod=mt({type:cB}),cB.\u0275inj=Fe({}),cB),DB=((uB=function e(){A(this,e)}).\u0275fac=function(e){return new(e||uB)},uB.\u0275mod=mt({type:uB}),uB.\u0275inj=Fe({imports:[[Zh,kI,EB,SE]]}),uB),OB=["*"];function MB(e){return Error('Unable to find icon with the name "'.concat(e,'"'))}function TB(e){return Error("The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was \"".concat(e,'".'))}function IB(e){return Error("The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was \"".concat(e,'".'))}var RB,LB=function e(t,n,i){A(this,e),this.url=t,this.svgText=n,this.options=i},FB=((RB=function(){function e(t,n,i,r){A(this,e),this._httpClient=t,this._sanitizer=n,this._errorHandler=r,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass="material-icons",this._document=i}return m(e,[{key:"addSvgIcon",value:function(e,t,n){return this.addSvgIconInNamespace("",e,t,n)}},{key:"addSvgIconLiteral",value:function(e,t,n){return this.addSvgIconLiteralInNamespace("",e,t,n)}},{key:"addSvgIconInNamespace",value:function(e,t,n,i){return this._addSvgIconConfig(e,t,new LB(n,null,i))}},{key:"addSvgIconResolver",value:function(e){return this._resolvers.push(e),this}},{key:"addSvgIconLiteralInNamespace",value:function(e,t,n,i){var r=this._sanitizer.sanitize(xr.HTML,n);if(!r)throw IB(n);return this._addSvgIconConfig(e,t,new LB("",r,i))}},{key:"addSvgIconSet",value:function(e,t){return this.addSvgIconSetInNamespace("",e,t)}},{key:"addSvgIconSetLiteral",value:function(e,t){return this.addSvgIconSetLiteralInNamespace("",e,t)}},{key:"addSvgIconSetInNamespace",value:function(e,t,n){return this._addSvgIconSetConfig(e,new LB(t,null,n))}},{key:"addSvgIconSetLiteralInNamespace",value:function(e,t,n){var i=this._sanitizer.sanitize(xr.HTML,t);if(!i)throw IB(t);return this._addSvgIconSetConfig(e,new LB("",i,n))}},{key:"registerFontClassAlias",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;return this._fontCssClassesByAlias.set(e,t),this}},{key:"classNameForFontAlias",value:function(e){return this._fontCssClassesByAlias.get(e)||e}},{key:"setDefaultFontSetClass",value:function(e){return this._defaultFontSetClass=e,this}},{key:"getDefaultFontSetClass",value:function(){return this._defaultFontSetClass}},{key:"getSvgIconFromUrl",value:function(e){var t=this,n=this._sanitizer.sanitize(xr.RESOURCE_URL,e);if(!n)throw TB(e);var i=this._cachedIconsByUrl.get(n);return i?Ty(BB(i)):this._loadSvgIconFromConfig(new LB(e,null)).pipe(uw(function(e){return t._cachedIconsByUrl.set(n,e)}),Y(function(e){return BB(e)}))}},{key:"getNamedSvgIcon",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=VB(t,e),i=this._svgIconConfigs.get(n);if(i)return this._getSvgFromConfig(i);if(i=this._getIconConfigFromResolvers(t,e))return this._svgIconConfigs.set(n,i),this._getSvgFromConfig(i);var r=this._iconSetConfigs.get(t);return r?this._getSvgFromIconSetConfigs(e,r):CP(MB(n))}},{key:"ngOnDestroy",value:function(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}},{key:"_getSvgFromConfig",value:function(e){return e.svgText?Ty(BB(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe(Y(function(e){return BB(e)}))}},{key:"_getSvgFromIconSetConfigs",value:function(e,t){var n=this,i=this._extractIconWithNameFromAnySet(e,t);return i?Ty(i):Av(t.filter(function(e){return!e.svgText}).map(function(e){return n._loadSvgIconSetFromConfig(e).pipe(Zb(function(t){var i=n._sanitizer.sanitize(xr.RESOURCE_URL,e.url);return n._errorHandler.handleError(new Error("Loading icon set URL: ".concat(i," failed: ").concat(t.message))),Ty(null)}))})).pipe(Y(function(){var i=n._extractIconWithNameFromAnySet(e,t);if(!i)throw MB(e);return i}))}},{key:"_extractIconWithNameFromAnySet",value:function(e,t){for(var n=t.length-1;n>=0;n--){var i=t[n];if(i.svgText&&i.svgText.indexOf(e)>-1){var r=this._svgElementFromConfig(i),o=this._extractSvgIconFromSet(r,e,i.options);if(o)return o}}return null}},{key:"_loadSvgIconFromConfig",value:function(e){var t=this;return this._fetchIcon(e).pipe(uw(function(t){return e.svgText=t}),Y(function(){return t._svgElementFromConfig(e)}))}},{key:"_loadSvgIconSetFromConfig",value:function(e){return e.svgText?Ty(null):this._fetchIcon(e).pipe(uw(function(t){return e.svgText=t}))}},{key:"_extractSvgIconFromSet",value:function(e,t,n){var i=e.querySelector('[id="'.concat(t,'"]'));if(!i)return null;var r=i.cloneNode(!0);if(r.removeAttribute("id"),"svg"===r.nodeName.toLowerCase())return this._setSvgAttributes(r,n);if("symbol"===r.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(r),n);var o=this._svgElementFromString("<svg></svg>");return o.appendChild(r),this._setSvgAttributes(o,n)}},{key:"_svgElementFromString",value:function(e){var t=this._document.createElement("DIV");t.innerHTML=e;var n=t.querySelector("svg");if(!n)throw Error("<svg> tag not found");return n}},{key:"_toSvgElement",value:function(e){for(var t=this._svgElementFromString("<svg></svg>"),n=e.attributes,i=0;i<n.length;i++){var r=n[i],o=r.name,a=r.value;"id"!==o&&t.setAttribute(o,a)}for(var s=0;s<e.childNodes.length;s++)e.childNodes[s].nodeType===this._document.ELEMENT_NODE&&t.appendChild(e.childNodes[s].cloneNode(!0));return t}},{key:"_setSvgAttributes",value:function(e,t){return e.setAttribute("fit",""),e.setAttribute("height","100%"),e.setAttribute("width","100%"),e.setAttribute("preserveAspectRatio","xMidYMid meet"),e.setAttribute("focusable","false"),t&&t.viewBox&&e.setAttribute("viewBox",t.viewBox),e}},{key:"_fetchIcon",value:function(e){var t,n=this,i=e.url,r=e.options,o=null!==(t=null==r?void 0:r.withCredentials)&&void 0!==t&&t;if(!this._httpClient)throw Error("Could not find HttpClient provider for use with Angular Material icons. Please include the HttpClientModule from @angular/common/http in your app imports.");if(null==i)throw Error('Cannot fetch icon from URL "'.concat(i,'".'));var a=this._sanitizer.sanitize(xr.RESOURCE_URL,i);if(!a)throw TB(i);var s=this._inProgressUrlFetches.get(a);if(s)return s;var l=this._httpClient.get(a,{responseType:"text",withCredentials:o}).pipe(hw(function(){return n._inProgressUrlFetches.delete(a)}),_e());return this._inProgressUrlFetches.set(a,l),l}},{key:"_addSvgIconConfig",value:function(e,t,n){return this._svgIconConfigs.set(VB(e,t),n),this}},{key:"_addSvgIconSetConfig",value:function(e,t){var n=this._iconSetConfigs.get(e);return n?n.push(t):this._iconSetConfigs.set(e,[t]),this}},{key:"_svgElementFromConfig",value:function(e){if(!e.svgElement){var t=this._svgElementFromString(e.svgText);this._setSvgAttributes(t,e.options),e.svgElement=t}return e.svgElement}},{key:"_getIconConfigFromResolvers",value:function(e,t){for(var n=0;n<this._resolvers.length;n++){var i=this._resolvers[n](t,e);if(i)return(r=i).url&&r.options?new LB(i.url,null,i.options):new LB(i,null)}var r}}]),e}()).\u0275fac=function(e){return new(e||RB)(Ri(lb,8),Ri(Wf),Ri(od,8),Ri(Or))},RB.\u0275prov=Re({factory:function(){return new RB(Ri(lb,8),Ri(Wf),Ri(od,8),Ri(Or))},token:RB,providedIn:"root"}),RB);function BB(e){return e.cloneNode(!0)}function VB(e,t){return e+":"+t}var zB,NB,HB,jB,UB,WB,GB=AI(function e(t){A(this,e),this._elementRef=t}),qB=new mi("mat-icon-location",{providedIn:"root",factory:function(){var e=Li(od),t=e?e.location:null;return{getPathname:function(){return t?t.pathname+t.search:""}}}}),YB=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],ZB=YB.map(function(e){return"[".concat(e,"]")}).join(", "),QB=/^url\(['"]?#(.*?)['"]?\)$/,XB=((WB=function(e){r(n,e);var t=a(n);function n(e,i,r,o,a){var s;return A(this,n),(s=t.call(this,e))._iconRegistry=i,s._location=o,s._errorHandler=a,s._inline=!1,s._currentIconFetch=O.EMPTY,r||e.nativeElement.setAttribute("aria-hidden","true"),s}return m(n,[{key:"inline",get:function(){return this._inline},set:function(e){this._inline=lT(e)}},{key:"svgIcon",get:function(){return this._svgIcon},set:function(e){e!==this._svgIcon&&(e?this._updateSvgIcon(e):this._svgIcon&&this._clearSvgElement(),this._svgIcon=e)}},{key:"fontSet",get:function(){return this._fontSet},set:function(e){var t=this._cleanupFontValue(e);t!==this._fontSet&&(this._fontSet=t,this._updateFontIconClasses())}},{key:"fontIcon",get:function(){return this._fontIcon},set:function(e){var t=this._cleanupFontValue(e);t!==this._fontIcon&&(this._fontIcon=t,this._updateFontIconClasses())}},{key:"_splitIconName",value:function(e){if(!e)return["",""];var t=e.split(":");switch(t.length){case 1:return["",t[0]];case 2:return t;default:throw Error('Invalid icon name: "'.concat(e,'"'))}}},{key:"ngOnInit",value:function(){this._updateFontIconClasses()}},{key:"ngAfterViewChecked",value:function(){var e=this._elementsWithExternalReferences;if(e&&e.size){var t=this._location.getPathname();t!==this._previousPath&&(this._previousPath=t,this._prependPathToReferences(t))}}},{key:"ngOnDestroy",value:function(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}},{key:"_usingFontIcon",value:function(){return!this.svgIcon}},{key:"_setSvgElement",value:function(e){this._clearSvgElement();for(var t=e.querySelectorAll("style"),n=0;n<t.length;n++)t[n].textContent+=" ";var i=this._location.getPathname();this._previousPath=i,this._cacheChildrenWithExternalReferences(e),this._prependPathToReferences(i),this._elementRef.nativeElement.appendChild(e)}},{key:"_clearSvgElement",value:function(){var e=this._elementRef.nativeElement,t=e.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();t--;){var n=e.childNodes[t];1===n.nodeType&&"svg"!==n.nodeName.toLowerCase()||e.removeChild(n)}}},{key:"_updateFontIconClasses",value:function(){if(this._usingFontIcon()){var e=this._elementRef.nativeElement,t=this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet):this._iconRegistry.getDefaultFontSetClass();t!=this._previousFontSetClass&&(this._previousFontSetClass&&e.classList.remove(this._previousFontSetClass),t&&e.classList.add(t),this._previousFontSetClass=t),this.fontIcon!=this._previousFontIconClass&&(this._previousFontIconClass&&e.classList.remove(this._previousFontIconClass),this.fontIcon&&e.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}}},{key:"_cleanupFontValue",value:function(e){return"string"==typeof e?e.trim().split(" ")[0]:e}},{key:"_prependPathToReferences",value:function(e){var t=this._elementsWithExternalReferences;t&&t.forEach(function(t,n){t.forEach(function(t){n.setAttribute(t.name,"url('".concat(e,"#").concat(t.value,"')"))})})}},{key:"_cacheChildrenWithExternalReferences",value:function(e){for(var t=e.querySelectorAll(ZB),n=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map,i=function(e){YB.forEach(function(i){var r=t[e],o=r.getAttribute(i),a=o?o.match(QB):null;if(a){var s=n.get(r);s||(s=[],n.set(r,s)),s.push({name:i,value:a[1]})}})},r=0;r<t.length;r++)i(r)}},{key:"_updateSvgIcon",value:function(e){var t=this;if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),e){var n=f(this._splitIconName(e),2),i=n[0],r=n[1];i&&(this._svgNamespace=i),r&&(this._svgName=r),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(r,i).pipe(Hb(1)).subscribe(function(e){return t._setSvgElement(e)},function(e){t._errorHandler.handleError(new Error("Error retrieving icon ".concat(i,":").concat(r,"! ").concat(e.message)))})}}}]),n}(GB)).\u0275fac=function(e){return new(e||WB)(rs(Cl),rs(FB),pi("aria-hidden"),rs(qB),rs(Or))},WB.\u0275cmp=ft({type:WB,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(e,t){2&e&&($a("data-mat-icon-type",t._usingFontIcon()?"font":"svg")("data-mat-icon-name",t._svgName||t.fontIcon)("data-mat-icon-namespace",t._svgNamespace||t.fontSet),Fs("mat-icon-inline",t.inline)("mat-icon-no-color","primary"!==t.color&&"accent"!==t.color&&"warn"!==t.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[Va],ngContentSelectors:OB,decls:1,vars:0,template:function(e,t){1&e&&(As(),Cs(0))},styles:[".mat-icon{background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}\n"],encapsulation:2,changeDetection:0}),WB),KB=((UB=function e(){A(this,e)}).\u0275fac=function(e){return new(e||UB)},UB.\u0275mod=mt({type:UB}),UB.\u0275inj=Fe({imports:[[kI],kI]}),UB),JB=((jB=function e(){A(this,e)}).\u0275fac=function(e){return new(e||jB)},jB.\u0275mod=mt({type:jB}),jB.\u0275inj=Fe({imports:[[yT]]}),jB),$B=((HB=function e(){A(this,e)}).\u0275fac=function(e){return new(e||HB)},HB.\u0275mod=mt({type:HB}),HB.\u0275inj=Fe({providers:[FI],imports:[[JB,aF,kI],JB,aF]}),HB),eV=((NB=function e(){A(this,e)}).\u0275fac=function(e){return new(e||NB)},NB.\u0275mod=mt({type:NB}),NB.\u0275inj=Fe({imports:[[kI],kI]}),NB),tV=((zB=function e(){A(this,e)}).\u0275fac=function(e){return new(e||zB)},zB.\u0275mod=mt({type:zB}),zB.\u0275inj=Fe({imports:[[BI,qI,kI,ZI,Zh],BI,kI,ZI,eV]}),zB),nV=["trigger"],iV=["panel"];function rV(e,t){if(1&e&&(ss(0,"span",8),Qs(1),ls()),2&e){var n=ks();xo(1),Xs(n.placeholder)}}function oV(e,t){if(1&e&&(ss(0,"span",12),Qs(1),ls()),2&e){var n=ks(2);xo(1),Xs(n.triggerValue)}}function aV(e,t){1&e&&Cs(0,0,["*ngSwitchCase","true"])}function sV(e,t){1&e&&(ss(0,"span",9),ns(1,oV,2,1,"span",10),ns(2,aV,1,0,"ng-content",11),ls()),2&e&&(os("ngSwitch",!!ks().customTrigger),xo(2),os("ngSwitchCase",!0))}function lV(e,t){if(1&e){var n=fs();ss(0,"div",13),ss(1,"div",14,15),ms("@transformPanel.done",function(e){return nn(n),ks()._panelDoneAnimatingStream.next(e.toState)})("keydown",function(e){return nn(n),ks()._handleKeydown(e)}),Cs(3,1),ls(),ls()}if(2&e){var i=ks();os("@transformPanelWrap",void 0),xo(1),tl("mat-select-panel ",i._getPanelTheme(),""),Ls("transform-origin",i._transformOrigin)("font-size",i._triggerFontSize,"px"),os("ngClass",i.panelClass)("@transformPanel",i.multiple?"showing-multiple":"showing"),$a("id",i.id+"-panel")("aria-multiselectable",i.multiple)("aria-label",i.ariaLabel||null)("aria-labelledby",i._getPanelAriaLabelledby())}}var uV,cV,dV,hV,fV,pV,gV=[[["mat-select-trigger"]],"*"],vV=["mat-select-trigger","*"],mV={transformPanelWrap:Xf("transformPanelWrap",[np("* => void",rp("@transformPanel",[ip()],{optional:!0}))]),transformPanel:Xf("transformPanel",[ep("void",$f({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),ep("showing",$f({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),ep("showing-multiple",$f({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),np("void => *",Kf("120ms cubic-bezier(0, 0, 0.2, 1)")),np("* => void",Kf("100ms 25ms linear",$f({opacity:0})))])},yV=0,bV=new mi("mat-select-scroll-strategy"),wV=new mi("MAT_SELECT_CONFIG"),_V={provide:bV,deps:[yL],useFactory:function(e){return function(){return e.scrollStrategies.reposition()}}},kV=function e(t,n){A(this,e),this.source=t,this.value=n},xV=CI(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(e){r(i,e);var n=a(i);function i(){var e;A(this,i);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return(e=n.call.apply(n,[this].concat(o)))._tabIndex=t,e.defaultTabIndex=t,e}return m(i,[{key:"tabIndex",get:function(){return this.disabled?-1:this._tabIndex},set:function(e){this._tabIndex=null!=e?uT(e):this.defaultTabIndex}}]),i}(e)}(xI(function(e){r(n,e);var t=a(n);function n(){var e;A(this,n);for(var i=arguments.length,r=new Array(i),o=0;o<i;o++)r[o]=arguments[o];return(e=t.call.apply(t,[this].concat(r))).errorState=!1,e.stateChanges=new W,e}return m(n,[{key:"updateErrorState",value:function(){var e=this.errorState,t=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);t!==e&&(this.errorState=t,this.stateChanges.next())}}]),n}(function e(t,n,i,r,o){A(this,e),this._elementRef=t,this._defaultErrorStateMatcher=n,this._parentForm=i,this._parentFormGroup=r,this.ngControl=o})))),AV=new mi("MatSelectTrigger"),CV=((cV=function(e){r(n,e);var t=a(n);function n(e,i,r,o,a,s,u,c,d,h,f,p,g,v){var m,b,w,_;return A(this,n),(m=t.call(this,a,o,u,c,h))._viewportRuler=e,m._changeDetectorRef=i,m._ngZone=r,m._dir=s,m._parentFormField=d,m.ngControl=h,m._liveAnnouncer=g,m._defaultOptions=v,m._panelOpen=!1,m._compareWith=function(e,t){return e===t},m._uid="mat-select-"+yV++,m._triggerAriaLabelledBy=null,m._destroy=new W,m._onChange=function(){},m._onTouched=function(){},m._valueId="mat-select-value-"+yV++,m._panelDoneAnimatingStream=new W,m._overlayPanelClass=(null===(b=m._defaultOptions)||void 0===b?void 0:b.overlayPanelClass)||"",m._focused=!1,m.controlType="mat-select",m._required=!1,m._multiple=!1,m._disableOptionCentering=null!==(_=null===(w=m._defaultOptions)||void 0===w?void 0:w.disableOptionCentering)&&void 0!==_&&_,m.ariaLabel="",m.optionSelectionChanges=Fb(function(){var e=m.options;return e?e.changes.pipe(Wb(e),Bb(function(){return he.apply(void 0,y(e.map(function(e){return e.onSelectionChange})))})):m._ngZone.onStable.pipe(Hb(1),Bb(function(){return m.optionSelectionChanges}))}),m.openedChange=new Fu,m._openedStream=m.openedChange.pipe(Ry(function(e){return e}),Y(function(){})),m._closedStream=m.openedChange.pipe(Ry(function(e){return!e}),Y(function(){})),m.selectionChange=new Fu,m.valueChange=new Fu,m.ngControl&&(m.ngControl.valueAccessor=l(m)),null!=(null==v?void 0:v.typeaheadDebounceInterval)&&(m._typeaheadDebounceInterval=v.typeaheadDebounceInterval),m._scrollStrategyFactory=p,m._scrollStrategy=m._scrollStrategyFactory(),m.tabIndex=parseInt(f)||0,m.id=m.id,m}return m(n,[{key:"focused",get:function(){return this._focused||this._panelOpen}},{key:"placeholder",get:function(){return this._placeholder},set:function(e){this._placeholder=e,this.stateChanges.next()}},{key:"required",get:function(){return this._required},set:function(e){this._required=lT(e),this.stateChanges.next()}},{key:"multiple",get:function(){return this._multiple},set:function(e){this._multiple=lT(e)}},{key:"disableOptionCentering",get:function(){return this._disableOptionCentering},set:function(e){this._disableOptionCentering=lT(e)}},{key:"compareWith",get:function(){return this._compareWith},set:function(e){this._compareWith=e,this._selectionModel&&this._initializeSelection()}},{key:"value",get:function(){return this._value},set:function(e){(e!==this._value||this._multiple&&Array.isArray(e))&&(this.options&&this._setSelectionByValue(e),this._value=e)}},{key:"typeaheadDebounceInterval",get:function(){return this._typeaheadDebounceInterval},set:function(e){this._typeaheadDebounceInterval=uT(e)}},{key:"id",get:function(){return this._id},set:function(e){this._id=e||this._uid,this.stateChanges.next()}},{key:"ngOnInit",value:function(){var e=this;this._selectionModel=new DR(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(Ex(),kR(this._destroy)).subscribe(function(){return e._panelDoneAnimating(e.panelOpen)})}},{key:"ngAfterContentInit",value:function(){var e=this;this._initKeyManager(),this._selectionModel.changed.pipe(kR(this._destroy)).subscribe(function(e){e.added.forEach(function(e){return e.select()}),e.removed.forEach(function(e){return e.deselect()})}),this.options.changes.pipe(Wb(null),kR(this._destroy)).subscribe(function(){e._resetOptions(),e._initializeSelection()})}},{key:"ngDoCheck",value:function(){var e=this._getTriggerAriaLabelledby();if(e!==this._triggerAriaLabelledBy){var t=this._elementRef.nativeElement;this._triggerAriaLabelledBy=e,e?t.setAttribute("aria-labelledby",e):t.removeAttribute("aria-labelledby")}this.ngControl&&this.updateErrorState()}},{key:"ngOnChanges",value:function(e){e.disabled&&this.stateChanges.next(),e.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}},{key:"ngOnDestroy",value:function(){this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()}},{key:"toggle",value:function(){this.panelOpen?this.close():this.open()}},{key:"open",value:function(){this._canOpen()&&(this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck())}},{key:"close",value:function(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}},{key:"writeValue",value:function(e){this.value=e}},{key:"registerOnChange",value:function(e){this._onChange=e}},{key:"registerOnTouched",value:function(e){this._onTouched=e}},{key:"setDisabledState",value:function(e){this.disabled=e,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}},{key:"panelOpen",get:function(){return this._panelOpen}},{key:"selected",get:function(){return this.multiple?this._selectionModel.selected:this._selectionModel.selected[0]}},{key:"triggerValue",get:function(){if(this.empty)return"";if(this._multiple){var e=this._selectionModel.selected.map(function(e){return e.viewValue});return this._isRtl()&&e.reverse(),e.join(", ")}return this._selectionModel.selected[0].viewValue}},{key:"_isRtl",value:function(){return!!this._dir&&"rtl"===this._dir.value}},{key:"_handleKeydown",value:function(e){this.disabled||(this.panelOpen?this._handleOpenKeydown(e):this._handleClosedKeydown(e))}},{key:"_handleClosedKeydown",value:function(e){var t=e.keyCode,n=40===t||38===t||37===t||39===t,i=13===t||32===t,r=this._keyManager;if(!r.isTyping()&&i&&!tT(e)||(this.multiple||e.altKey)&&n)e.preventDefault(),this.open();else if(!this.multiple){var o=this.selected;r.onKeydown(e);var a=this.selected;a&&o!==a&&this._liveAnnouncer.announce(a.viewValue,1e4)}}},{key:"_handleOpenKeydown",value:function(e){var t=this._keyManager,n=e.keyCode,i=40===n||38===n,r=t.isTyping();if(i&&e.altKey)e.preventDefault(),this.close();else if(r||13!==n&&32!==n||!t.activeItem||tT(e))if(!r&&this._multiple&&65===n&&e.ctrlKey){e.preventDefault();var o=this.options.some(function(e){return!e.disabled&&!e.selected});this.options.forEach(function(e){e.disabled||(o?e.select():e.deselect())})}else{var a=t.activeItemIndex;t.onKeydown(e),this._multiple&&i&&e.shiftKey&&t.activeItem&&t.activeItemIndex!==a&&t.activeItem._selectViaInteraction()}else e.preventDefault(),t.activeItem._selectViaInteraction()}},{key:"_onFocus",value:function(){this.disabled||(this._focused=!0,this.stateChanges.next())}},{key:"_onBlur",value:function(){this._focused=!1,this.disabled||this.panelOpen||(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}},{key:"_onAttached",value:function(){var e=this;this.overlayDir.positionChange.pipe(Hb(1)).subscribe(function(){e._changeDetectorRef.detectChanges(),e._positioningSettled()})}},{key:"_getPanelTheme",value:function(){return this._parentFormField?"mat-"+this._parentFormField.color:""}},{key:"empty",get:function(){return!this._selectionModel||this._selectionModel.isEmpty()}},{key:"_initializeSelection",value:function(){var e=this;Promise.resolve().then(function(){e._setSelectionByValue(e.ngControl?e.ngControl.value:e._value),e.stateChanges.next()})}},{key:"_setSelectionByValue",value:function(e){var t=this;if(this._selectionModel.selected.forEach(function(e){return e.setInactiveStyles()}),this._selectionModel.clear(),this.multiple&&e)Array.isArray(e),e.forEach(function(e){return t._selectValue(e)}),this._sortValues();else{var n=this._selectValue(e);n?this._keyManager.updateActiveItem(n):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}},{key:"_selectValue",value:function(e){var t=this,n=this.options.find(function(n){if(t._selectionModel.isSelected(n))return!1;try{return null!=n.value&&t._compareWith(n.value,e)}catch(i){return!1}});return n&&this._selectionModel.select(n),n}},{key:"_initKeyManager",value:function(){var e=this;this._keyManager=new zT(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe(kR(this._destroy)).subscribe(function(){e.panelOpen&&(!e.multiple&&e._keyManager.activeItem&&e._keyManager.activeItem._selectViaInteraction(),e.focus(),e.close())}),this._keyManager.change.pipe(kR(this._destroy)).subscribe(function(){e._panelOpen&&e.panel?e._scrollOptionIntoView(e._keyManager.activeItemIndex||0):e._panelOpen||e.multiple||!e._keyManager.activeItem||e._keyManager.activeItem._selectViaInteraction()})}},{key:"_resetOptions",value:function(){var e=this,t=he(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(kR(t)).subscribe(function(t){e._onSelect(t.source,t.isUserInput),t.isUserInput&&!e.multiple&&e._panelOpen&&(e.close(),e.focus())}),he.apply(void 0,y(this.options.map(function(e){return e._stateChanges}))).pipe(kR(t)).subscribe(function(){e._changeDetectorRef.markForCheck(),e.stateChanges.next()})}},{key:"_onSelect",value:function(e,t){var n=this._selectionModel.isSelected(e);null!=e.value||this._multiple?(n!==e.selected&&(e.selected?this._selectionModel.select(e):this._selectionModel.deselect(e)),t&&this._keyManager.setActiveItem(e),this.multiple&&(this._sortValues(),t&&this.focus())):(e.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(e.value)),n!==this._selectionModel.isSelected(e)&&this._propagateChanges(),this.stateChanges.next()}},{key:"_sortValues",value:function(){var e=this;if(this.multiple){var t=this.options.toArray();this._selectionModel.sort(function(n,i){return e.sortComparator?e.sortComparator(n,i,t):t.indexOf(n)-t.indexOf(i)}),this.stateChanges.next()}}},{key:"_propagateChanges",value:function(e){var t;t=this.multiple?this.selected.map(function(e){return e.value}):this.selected?this.selected.value:e,this._value=t,this.valueChange.emit(t),this._onChange(t),this.selectionChange.emit(this._getChangeEvent(t)),this._changeDetectorRef.markForCheck()}},{key:"_highlightCorrectOption",value:function(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}},{key:"_canOpen",value:function(){var e;return!this._panelOpen&&!this.disabled&&(null===(e=this.options)||void 0===e?void 0:e.length)>0}},{key:"focus",value:function(e){this._elementRef.nativeElement.focus(e)}},{key:"_getPanelAriaLabelledby",value:function(){if(this.ariaLabel)return null;var e=this._getLabelId();return this.ariaLabelledby?e+" "+this.ariaLabelledby:e}},{key:"_getAriaActiveDescendant",value:function(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}},{key:"_getLabelId",value:function(){var e;return(null===(e=this._parentFormField)||void 0===e?void 0:e.getLabelId())||""}},{key:"_getTriggerAriaLabelledby",value:function(){if(this.ariaLabel)return null;var e=this._getLabelId()+" "+this._valueId;return this.ariaLabelledby&&(e+=" "+this.ariaLabelledby),e}},{key:"_panelDoneAnimating",value:function(e){this.openedChange.emit(e)}},{key:"setDescribedByIds",value:function(e){this._ariaDescribedby=e.join(" ")}},{key:"onContainerClick",value:function(){this.focus(),this.open()}},{key:"shouldLabelFloat",get:function(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}]),n}(xV)).\u0275fac=function(e){return new(e||cV)(rs(MR),rs(Kl),rs(Ac),rs(FI),rs(Cl),rs(dI,8),rs(Wm,8),rs(ey,8),rs(rF,8),rs(cm,10),pi("tabindex"),rs(bV),rs(XT),rs(wV,8))},cV.\u0275dir=bt({type:cV,viewQuery:function(e,t){var n;1&e&&(Qu(nV,1),Qu(iV,1),Qu(kL,1)),2&e&&(Zu(n=Ku())&&(t.trigger=n.first),Zu(n=Ku())&&(t.panel=n.first),Zu(n=Ku())&&(t.overlayDir=n.first))},inputs:{ariaLabel:["aria-label","ariaLabel"],id:"id",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",typeaheadDebounceInterval:"typeaheadDebounceInterval",panelClass:"panelClass",ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",sortComparator:"sortComparator"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[Va,Mt]}),cV),SV=((uV=function(e){r(n,e);var t=a(n);function n(){var e;return A(this,n),(e=t.apply(this,arguments))._scrollTop=0,e._triggerFontSize=0,e._transformOrigin="top",e._offsetY=0,e._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}],e}return m(n,[{key:"_calculateOverlayScroll",value:function(e,t,n){var i=this._getItemHeight();return Math.min(Math.max(0,i*e-t+i/2),n)}},{key:"ngOnInit",value:function(){var e=this;i(c(n.prototype),"ngOnInit",this).call(this),this._viewportRuler.change().pipe(kR(this._destroy)).subscribe(function(){e.panelOpen&&(e._triggerRect=e.trigger.nativeElement.getBoundingClientRect(),e._changeDetectorRef.markForCheck())})}},{key:"open",value:function(){var e=this;i(c(n.prototype),"_canOpen",this).call(this)&&(i(c(n.prototype),"open",this).call(this),this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement).fontSize||"0"),this._calculateOverlayPosition(),this._ngZone.onStable.pipe(Hb(1)).subscribe(function(){e._triggerFontSize&&e.overlayDir.overlayRef&&e.overlayDir.overlayRef.overlayElement&&(e.overlayDir.overlayRef.overlayElement.style.fontSize=e._triggerFontSize+"px")}))}},{key:"_scrollOptionIntoView",value:function(e){var t,n,i,r=rR(e,this.options,this.optionGroups),o=this._getItemHeight();this.panel.nativeElement.scrollTop=(n=o,(t=(e+r)*o)<(i=this.panel.nativeElement.scrollTop)?t:t+n>i+256?Math.max(0,t-256+n):i)}},{key:"_positioningSettled",value:function(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}},{key:"_panelDoneAnimating",value:function(e){this.panelOpen?this._scrollTop=0:(this.overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),i(c(n.prototype),"_panelDoneAnimating",this).call(this,e)}},{key:"_getChangeEvent",value:function(e){return new kV(this,e)}},{key:"_calculateOverlayOffsetX",value:function(){var e,t=this.overlayDir.overlayRef.overlayElement.getBoundingClientRect(),n=this._viewportRuler.getViewportSize(),i=this._isRtl(),r=this.multiple?56:32;if(this.multiple)e=40;else if(this.disableOptionCentering)e=16;else{var o=this._selectionModel.selected[0]||this.options.first;e=o&&o.group?32:16}i||(e*=-1);var a=0-(t.left+e-(i?r:0)),s=t.right+e-n.width+(i?0:r);a>0?e+=a+8:s>0&&(e-=s+8),this.overlayDir.offsetX=Math.round(e),this.overlayDir.overlayRef.updatePosition()}},{key:"_calculateOverlayOffsetY",value:function(e,t,n){var i,r=this._getItemHeight(),o=(r-this._triggerRect.height)/2,a=Math.floor(256/r);return this.disableOptionCentering?0:(i=0===this._scrollTop?e*r:this._scrollTop===n?(e-(this._getItemCount()-a))*r+(r-(this._getItemCount()*r-256)%r):t-r/2,Math.round(-1*i-o))}},{key:"_checkOverlayWithinViewport",value:function(e){var t=this._getItemHeight(),n=this._viewportRuler.getViewportSize(),i=this._triggerRect.top-8,r=n.height-this._triggerRect.bottom-8,o=Math.abs(this._offsetY),a=Math.min(this._getItemCount()*t,256)-o-this._triggerRect.height;a>r?this._adjustPanelUp(a,r):o>i?this._adjustPanelDown(o,i,e):this._transformOrigin=this._getOriginBasedOnOption()}},{key:"_adjustPanelUp",value:function(e,t){var n=Math.round(e-t);this._scrollTop-=n,this._offsetY-=n,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}},{key:"_adjustPanelDown",value:function(e,t,n){var i=Math.round(e-t);if(this._scrollTop+=i,this._offsetY+=i,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=n)return this._scrollTop=n,this._offsetY=0,void(this._transformOrigin="50% top 0px")}},{key:"_calculateOverlayPosition",value:function(){var e,t=this._getItemHeight(),n=this._getItemCount(),i=Math.min(n*t,256),r=n*t-i;e=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),e+=rR(e,this.options,this.optionGroups);var o=i/2;this._scrollTop=this._calculateOverlayScroll(e,o,r),this._offsetY=this._calculateOverlayOffsetY(e,o,r),this._checkOverlayWithinViewport(r)}},{key:"_getOriginBasedOnOption",value:function(){var e=this._getItemHeight(),t=(e-this._triggerRect.height)/2;return"50% ".concat(Math.abs(this._offsetY)-t+e/2,"px 0px")}},{key:"_getItemHeight",value:function(){return 3*this._triggerFontSize}},{key:"_getItemCount",value:function(){return this.options.length+this.optionGroups.length}}]),n}(CV)).\u0275fac=function(e){return PV(e||uV)},uV.\u0275cmp=ft({type:uV,selectors:[["mat-select"]],contentQueries:function(e,t,n){var i;1&e&&(Xu(n,AV,1),Xu(n,iR,1),Xu(n,$I,1)),2&e&&(Zu(i=Ku())&&(t.customTrigger=i.first),Zu(i=Ku())&&(t.options=i),Zu(i=Ku())&&(t.optionGroups=i))},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:20,hostBindings:function(e,t){1&e&&ms("keydown",function(e){return t._handleKeydown(e)})("focus",function(){return t._onFocus()})("blur",function(){return t._onBlur()}),2&e&&($a("id",t.id)("tabindex",t.tabIndex)("aria-controls",t.panelOpen?t.id+"-panel":null)("aria-expanded",t.panelOpen)("aria-label",t.ariaLabel||null)("aria-required",t.required.toString())("aria-disabled",t.disabled.toString())("aria-invalid",t.errorState)("aria-describedby",t._ariaDescribedby||null)("aria-activedescendant",t._getAriaActiveDescendant()),Fs("mat-select-disabled",t.disabled)("mat-select-invalid",t.errorState)("mat-select-required",t.required)("mat-select-empty",t.empty)("mat-select-multiple",t.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[yl([{provide:QL,useExisting:uV},{provide:QI,useExisting:uV}]),Va],ngContentSelectors:vV,decls:9,vars:12,consts:[["cdk-overlay-origin","",1,"mat-select-trigger",3,"click"],["origin","cdkOverlayOrigin","trigger",""],[1,"mat-select-value",3,"ngSwitch"],["class","mat-select-placeholder mat-select-min-line",4,"ngSwitchCase"],["class","mat-select-value-text",3,"ngSwitch",4,"ngSwitchCase"],[1,"mat-select-arrow-wrapper"],[1,"mat-select-arrow"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayMinWidth","cdkConnectedOverlayOffsetY","backdropClick","attach","detach"],[1,"mat-select-placeholder","mat-select-min-line"],[1,"mat-select-value-text",3,"ngSwitch"],["class","mat-select-min-line",4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-select-min-line"],[1,"mat-select-panel-wrap"],["role","listbox","tabindex","-1",3,"ngClass","keydown"],["panel",""]],template:function(e,t){if(1&e&&(As(gV),ss(0,"div",0,1),ms("click",function(){return t.toggle()}),ss(3,"div",2),ns(4,rV,2,1,"span",3),ns(5,sV,3,2,"span",4),ls(),ss(6,"div",5),us(7,"div",6),ls(),ls(),ns(8,lV,4,14,"ng-template",7),ms("backdropClick",function(){return t.close()})("attach",function(){return t._onAttached()})("detach",function(){return t.close()})),2&e){var n=is(1);$a("aria-owns",t.panelOpen?t.id+"-panel":null),xo(3),os("ngSwitch",t.empty),$a("id",t._valueId),xo(1),os("ngSwitchCase",!0),xo(1),os("ngSwitchCase",!1),xo(3),os("cdkConnectedOverlayPanelClass",t._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",t._scrollStrategy)("cdkConnectedOverlayOrigin",n)("cdkConnectedOverlayOpen",t.panelOpen)("cdkConnectedOverlayPositions",t._positions)("cdkConnectedOverlayMinWidth",null==t._triggerRect?null:t._triggerRect.width)("cdkConnectedOverlayOffsetY",t._offsetY)}},directives:[_L,Sh,Ph,kL,Eh,fh],styles:['.mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-table;cursor:pointer;position:relative;box-sizing:border-box}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-select-value{display:table-cell;max-width:0;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{display:table-cell;vertical-align:middle}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;margin:0 4px}.mat-select-panel-wrap{flex-basis:100%}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%;border-radius:4px;outline:0}.cdk-high-contrast-active .mat-select-panel{outline:solid 1px}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color:transparent;-webkit-text-fill-color:transparent;transition:none;display:block}.mat-select-min-line:empty::before{content:" ";white-space:pre;width:1px}\n'],encapsulation:2,data:{animation:[mV.transformPanelWrap,mV.transformPanel]},changeDetection:0}),uV),PV=hi(SV),EV=((dV=function e(){A(this,e)}).\u0275fac=function(e){return new(e||dV)},dV.\u0275mod=mt({type:dV}),dV.\u0275inj=Fe({providers:[_V],imports:[[Zh,AL,aR,kI],TR,aF,aR,kI]}),dV),DV={tooltipState:Xf("state",[ep("initial, void, hidden",$f({opacity:0,transform:"scale(0)"})),ep("visible",$f({transform:"scale(1)"})),np("* => visible",Kf("200ms cubic-bezier(0, 0, 0.2, 1)",tp([$f({opacity:0,transform:"scale(0)",offset:0}),$f({opacity:.5,transform:"scale(0.99)",offset:.5}),$f({opacity:1,transform:"scale(1)",offset:1})]))),np("* => hidden",Kf("100ms cubic-bezier(0, 0, 0.2, 1)",$f({opacity:0})))])},OV=bT({passive:!0}),MV=new mi("mat-tooltip-scroll-strategy"),TV={provide:MV,deps:[yL],useFactory:function(e){return function(){return e.scrollStrategies.reposition({scrollThrottle:20})}}},IV=new mi("mat-tooltip-default-options",{providedIn:"root",factory:function(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}}),RV=((pV=function(){function e(t,n,i,r,o,a,s,l,u,c,d,h){var f=this;A(this,e),this._overlay=t,this._elementRef=n,this._scrollDispatcher=i,this._viewContainerRef=r,this._ngZone=o,this._platform=a,this._ariaDescriber=s,this._focusMonitor=l,this._dir=c,this._defaultOptions=d,this._position="below",this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this.showDelay=this._defaultOptions.showDelay,this.hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new W,this._handleKeydown=function(e){f._isTooltipVisible()&&27===e.keyCode&&!tT(e)&&(e.preventDefault(),e.stopPropagation(),f._ngZone.run(function(){return f.hide(0)}))},this._scrollStrategy=u,d&&(d.position&&(this.position=d.position),d.touchGestures&&(this.touchGestures=d.touchGestures)),o.runOutsideAngular(function(){n.nativeElement.addEventListener("keydown",f._handleKeydown)})}return m(e,[{key:"position",get:function(){return this._position},set:function(e){e!==this._position&&(this._position=e,this._overlayRef&&(this._updatePosition(),this._tooltipInstance&&this._tooltipInstance.show(0),this._overlayRef.updatePosition()))}},{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=lT(e),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}},{key:"message",get:function(){return this._message},set:function(e){var t=this;this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=e?String(e).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(function(){Promise.resolve().then(function(){t._ariaDescriber.describe(t._elementRef.nativeElement,t.message,"tooltip")})}))}},{key:"tooltipClass",get:function(){return this._tooltipClass},set:function(e){this._tooltipClass=e,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}},{key:"ngAfterViewInit",value:function(){var e=this;this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(kR(this._destroyed)).subscribe(function(t){t?"keyboard"===t&&e._ngZone.run(function(){return e.show()}):e._ngZone.run(function(){return e.hide(0)})})}},{key:"ngOnDestroy",value:function(){var e=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),e.removeEventListener("keydown",this._handleKeydown),this._passiveListeners.forEach(function(t){var n=f(t,2),i=n[0],r=n[1];e.removeEventListener(i,r,OV)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(e,this.message,"tooltip"),this._focusMonitor.stopMonitoring(e)}},{key:"show",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.showDelay;if(!this.disabled&&this.message&&(!this._isTooltipVisible()||this._tooltipInstance._showTimeoutId||this._tooltipInstance._hideTimeoutId)){var n=this._createOverlay();this._detach(),this._portal=this._portal||new wE(LV,this._viewContainerRef),this._tooltipInstance=n.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe(kR(this._destroyed)).subscribe(function(){return e._detach()}),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),this._tooltipInstance.show(t)}}},{key:"hide",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.hideDelay;this._tooltipInstance&&this._tooltipInstance.hide(e)}},{key:"toggle",value:function(){this._isTooltipVisible()?this.hide():this.show()}},{key:"_isTooltipVisible",value:function(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}},{key:"_createOverlay",value:function(){var e=this;if(this._overlayRef)return this._overlayRef;var t=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),n=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(".mat-tooltip").withFlexibleDimensions(!1).withViewportMargin(8).withScrollableContainers(t);return n.positionChanges.pipe(kR(this._destroyed)).subscribe(function(t){e._tooltipInstance&&t.scrollableViewProperties.isOverlayClipped&&e._tooltipInstance.isVisible()&&e._ngZone.run(function(){return e.hide(0)})}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:n,panelClass:"mat-tooltip-panel",scrollStrategy:this._scrollStrategy()}),this._updatePosition(),this._overlayRef.detachments().pipe(kR(this._destroyed)).subscribe(function(){return e._detach()}),this._overlayRef}},{key:"_detach",value:function(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}},{key:"_updatePosition",value:function(){var e=this._overlayRef.getConfig().positionStrategy,t=this._getOrigin(),n=this._getOverlayPosition();e.withPositions([Object.assign(Object.assign({},t.main),n.main),Object.assign(Object.assign({},t.fallback),n.fallback)])}},{key:"_getOrigin",value:function(){var e,t=!this._dir||"ltr"==this._dir.value,n=this.position;"above"==n||"below"==n?e={originX:"center",originY:"above"==n?"top":"bottom"}:"before"==n||"left"==n&&t||"right"==n&&!t?e={originX:"start",originY:"center"}:("after"==n||"right"==n&&t||"left"==n&&!t)&&(e={originX:"end",originY:"center"});var i=this._invertPosition(e.originX,e.originY);return{main:e,fallback:{originX:i.x,originY:i.y}}}},{key:"_getOverlayPosition",value:function(){var e,t=!this._dir||"ltr"==this._dir.value,n=this.position;"above"==n?e={overlayX:"center",overlayY:"bottom"}:"below"==n?e={overlayX:"center",overlayY:"top"}:"before"==n||"left"==n&&t||"right"==n&&!t?e={overlayX:"end",overlayY:"center"}:("after"==n||"right"==n&&t||"left"==n&&!t)&&(e={overlayX:"start",overlayY:"center"});var i=this._invertPosition(e.overlayX,e.overlayY);return{main:e,fallback:{overlayX:i.x,overlayY:i.y}}}},{key:"_updateTooltipMessage",value:function(){var e=this;this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe(Hb(1),kR(this._destroyed)).subscribe(function(){e._tooltipInstance&&e._overlayRef.updatePosition()}))}},{key:"_setTooltipClass",value:function(e){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=e,this._tooltipInstance._markForCheck())}},{key:"_invertPosition",value:function(e,t){return"above"===this.position||"below"===this.position?"top"===t?t="bottom":"bottom"===t&&(t="top"):"end"===e?e="start":"start"===e&&(e="end"),{x:e,y:t}}},{key:"_setupPointerEnterEventsIfNeeded",value:function(){var e=this;!this._disabled&&this.message&&this._viewInitialized&&!this._passiveListeners.length&&(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",function(){e._setupPointerExitEventsIfNeeded(),e.show()}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",function(){e._setupPointerExitEventsIfNeeded(),clearTimeout(e._touchstartTimeout),e._touchstartTimeout=setTimeout(function(){return e.show()},500)}])),this._addListeners(this._passiveListeners))}},{key:"_setupPointerExitEventsIfNeeded",value:function(){var e,t=this;if(!this._pointerExitEventsInitialized){this._pointerExitEventsInitialized=!0;var n=[];if(this._platformSupportsMouseEvents())n.push(["mouseleave",function(){return t.hide()}],["wheel",function(e){return t._wheelListener(e)}]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();var i=function(){clearTimeout(t._touchstartTimeout),t.hide(t._defaultOptions.touchendHideDelay)};n.push(["touchend",i],["touchcancel",i])}this._addListeners(n),(e=this._passiveListeners).push.apply(e,n)}}},{key:"_addListeners",value:function(e){var t=this;e.forEach(function(e){var n=f(e,2),i=n[0],r=n[1];t._elementRef.nativeElement.addEventListener(i,r,OV)})}},{key:"_platformSupportsMouseEvents",value:function(){return!this._platform.IOS&&!this._platform.ANDROID}},{key:"_wheelListener",value:function(e){if(this._isTooltipVisible()){var t=(this._document||document).elementFromPoint(e.clientX,e.clientY),n=this._elementRef.nativeElement;t===n||n.contains(t)||this.hide()}}},{key:"_disableNativeGesturesIfNecessary",value:function(){var e=this.touchGestures;if("off"!==e){var t=this._elementRef.nativeElement,n=t.style;("on"===e||"INPUT"!==t.nodeName&&"TEXTAREA"!==t.nodeName)&&(n.userSelect=n.msUserSelect=n.webkitUserSelect=n.MozUserSelect="none"),"on"!==e&&t.draggable||(n.webkitUserDrag="none"),n.touchAction="none",n.webkitTapHighlightColor="transparent"}}}]),e}()).\u0275fac=function(e){return new(e||pV)(rs(yL),rs(Cl),rs(OR),rs(uu),rs(Ac),rs(mT),rs(RT),rs(nI),rs(MV),rs(dI,8),rs(IV,8),rs(od))},pV.\u0275dir=bt({type:pV,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],inputs:{showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]},exportAs:["matTooltip"]}),pV),LV=((fV=function(){function e(t,n){A(this,e),this._changeDetectorRef=t,this._breakpointObserver=n,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new W,this._isHandset=this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)")}return m(e,[{key:"show",value:function(e){var t=this;this._hideTimeoutId&&(clearTimeout(this._hideTimeoutId),this._hideTimeoutId=null),this._closeOnInteraction=!0,this._showTimeoutId=setTimeout(function(){t._visibility="visible",t._showTimeoutId=null,t._markForCheck()},e)}},{key:"hide",value:function(e){var t=this;this._showTimeoutId&&(clearTimeout(this._showTimeoutId),this._showTimeoutId=null),this._hideTimeoutId=setTimeout(function(){t._visibility="hidden",t._hideTimeoutId=null,t._markForCheck()},e)}},{key:"afterHidden",value:function(){return this._onHide}},{key:"isVisible",value:function(){return"visible"===this._visibility}},{key:"ngOnDestroy",value:function(){this._onHide.complete()}},{key:"_animationStart",value:function(){this._closeOnInteraction=!1}},{key:"_animationDone",value:function(e){var t=e.toState;"hidden"!==t||this.isVisible()||this._onHide.next(),"visible"!==t&&"hidden"!==t||(this._closeOnInteraction=!0)}},{key:"_handleBodyInteraction",value:function(){this._closeOnInteraction&&this.hide(0)}},{key:"_markForCheck",value:function(){this._changeDetectorRef.markForCheck()}}]),e}()).\u0275fac=function(e){return new(e||fV)(rs(Kl),rs(AF))},fV.\u0275cmp=ft({type:fV,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(e,t){1&e&&ms("click",function(){return t._handleBodyInteraction()},!1,Rr)("auxclick",function(){return t._handleBodyInteraction()},!1,Rr),2&e&&Ls("zoom","visible"===t._visibility?1:null)},decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(e,t){var n;(1&e&&(ss(0,"div",0),ms("@state.start",function(){return t._animationStart()})("@state.done",function(e){return t._animationDone(e)}),Du(1,"async"),Qs(2),ls()),2&e)&&(Fs("mat-tooltip-handset",null==(n=Ou(1,5,t._isHandset))?null:n.matches),os("ngClass",t.tooltipClass)("@state",t._visibility),xo(2),Xs(t.message))},directives:[fh],pipes:[Nh],styles:[".mat-tooltip-panel{pointer-events:none !important}.mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}\n"],encapsulation:2,data:{animation:[DV.tooltipState]},changeDetection:0}),fV),FV=((hV=function e(){A(this,e)}).\u0275fac=function(e){return new(e||hV)},hV.\u0275mod=mt({type:hV}),hV.\u0275inj=Fe({providers:[TV],imports:[[uI,Zh,AL,kI],kI,TR]}),hV);function BV(e,t){if(1&e&&(ss(0,"mat-option",19),Qs(1),ls()),2&e){var n=t.$implicit;os("value",n),xo(1),Ks(" ",n," ")}}function VV(e,t){if(1&e){var n=fs();ss(0,"mat-form-field",16),ss(1,"mat-select",17),ms("selectionChange",function(e){return nn(n),ks(2)._changePageSize(e.value)}),ns(2,BV,2,2,"mat-option",18),ls(),ls()}if(2&e){var i=ks(2);os("appearance",i._formFieldAppearance)("color",i.color),xo(1),os("value",i.pageSize)("disabled",i.disabled)("aria-label",i._intl.itemsPerPageLabel),xo(1),os("ngForOf",i._displayedPageSizeOptions)}}function zV(e,t){if(1&e&&(ss(0,"div",20),Qs(1),ls()),2&e){var n=ks(2);xo(1),Xs(n.pageSize)}}function NV(e,t){if(1&e&&(ss(0,"div",12),ss(1,"div",13),Qs(2),ls(),ns(3,VV,3,6,"mat-form-field",14),ns(4,zV,2,1,"div",15),ls()),2&e){var n=ks();xo(2),Ks(" ",n._intl.itemsPerPageLabel," "),xo(1),os("ngIf",n._displayedPageSizeOptions.length>1),xo(1),os("ngIf",n._displayedPageSizeOptions.length<=1)}}function HV(e,t){if(1&e){var n=fs();ss(0,"button",21),ms("click",function(){return nn(n),ks().firstPage()}),On(),ss(1,"svg",7),us(2,"path",22),ls(),ls()}if(2&e){var i=ks();os("matTooltip",i._intl.firstPageLabel)("matTooltipDisabled",i._previousButtonsDisabled())("matTooltipPosition","above")("disabled",i._previousButtonsDisabled()),$a("aria-label",i._intl.firstPageLabel)}}function jV(e,t){if(1&e){var n=fs();On(),Mn(),ss(0,"button",23),ms("click",function(){return nn(n),ks().lastPage()}),On(),ss(1,"svg",7),us(2,"path",24),ls(),ls()}if(2&e){var i=ks();os("matTooltip",i._intl.lastPageLabel)("matTooltipDisabled",i._nextButtonsDisabled())("matTooltipPosition","above")("disabled",i._nextButtonsDisabled()),$a("aria-label",i._intl.lastPageLabel)}}var UV,WV,GV,qV,YV,ZV,QV,XV,KV,JV,$V=((UV=function e(){A(this,e),this.changes=new W,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=function(e,t,n){if(0==n||0==t)return"0 of "+n;var i=e*t;return"".concat(i+1," \u2013 ").concat(i<(n=Math.max(n,0))?Math.min(i+t,n):i+t," of ").concat(n)}}).\u0275fac=function(e){return new(e||UV)},UV.\u0275prov=Re({factory:function(){return new UV},token:UV,providedIn:"root"}),UV),ez={provide:$V,deps:[[new Hi,new ji,$V]],useFactory:function(e){return e||new $V}},tz=new mi("MAT_PAGINATOR_DEFAULT_OPTIONS"),nz=xI(SI(function e(){A(this,e)})),iz=((JV=function(e){r(n,e);var t=a(n);function n(e,i,r){var o;if(A(this,n),(o=t.call(this))._intl=e,o._changeDetectorRef=i,o._pageIndex=0,o._length=0,o._pageSizeOptions=[],o._hidePageSize=!1,o._showFirstLastButtons=!1,o.page=new Fu,o._intlChanges=e.changes.subscribe(function(){return o._changeDetectorRef.markForCheck()}),r){var a=r.pageSize,l=r.pageSizeOptions,u=r.hidePageSize,c=r.showFirstLastButtons;null!=a&&(o._pageSize=a),null!=l&&(o._pageSizeOptions=l),null!=u&&(o._hidePageSize=u),null!=c&&(o._showFirstLastButtons=c)}return s(o)}return m(n,[{key:"pageIndex",get:function(){return this._pageIndex},set:function(e){this._pageIndex=Math.max(uT(e),0),this._changeDetectorRef.markForCheck()}},{key:"length",get:function(){return this._length},set:function(e){this._length=uT(e),this._changeDetectorRef.markForCheck()}},{key:"pageSize",get:function(){return this._pageSize},set:function(e){this._pageSize=Math.max(uT(e),0),this._updateDisplayedPageSizeOptions()}},{key:"pageSizeOptions",get:function(){return this._pageSizeOptions},set:function(e){this._pageSizeOptions=(e||[]).map(function(e){return uT(e)}),this._updateDisplayedPageSizeOptions()}},{key:"hidePageSize",get:function(){return this._hidePageSize},set:function(e){this._hidePageSize=lT(e)}},{key:"showFirstLastButtons",get:function(){return this._showFirstLastButtons},set:function(e){this._showFirstLastButtons=lT(e)}},{key:"ngOnInit",value:function(){this._initialized=!0,this._updateDisplayedPageSizeOptions(),this._markInitialized()}},{key:"ngOnDestroy",value:function(){this._intlChanges.unsubscribe()}},{key:"nextPage",value:function(){if(this.hasNextPage()){var e=this.pageIndex;this.pageIndex++,this._emitPageEvent(e)}}},{key:"previousPage",value:function(){if(this.hasPreviousPage()){var e=this.pageIndex;this.pageIndex--,this._emitPageEvent(e)}}},{key:"firstPage",value:function(){if(this.hasPreviousPage()){var e=this.pageIndex;this.pageIndex=0,this._emitPageEvent(e)}}},{key:"lastPage",value:function(){if(this.hasNextPage()){var e=this.pageIndex;this.pageIndex=this.getNumberOfPages()-1,this._emitPageEvent(e)}}},{key:"hasPreviousPage",value:function(){return this.pageIndex>=1&&0!=this.pageSize}},{key:"hasNextPage",value:function(){var e=this.getNumberOfPages()-1;return this.pageIndex<e&&0!=this.pageSize}},{key:"getNumberOfPages",value:function(){return this.pageSize?Math.ceil(this.length/this.pageSize):0}},{key:"_changePageSize",value:function(e){var t=this.pageIndex;this.pageIndex=Math.floor(this.pageIndex*this.pageSize/e)||0,this.pageSize=e,this._emitPageEvent(t)}},{key:"_nextButtonsDisabled",value:function(){return this.disabled||!this.hasNextPage()}},{key:"_previousButtonsDisabled",value:function(){return this.disabled||!this.hasPreviousPage()}},{key:"_updateDisplayedPageSizeOptions",value:function(){this._initialized&&(this.pageSize||(this._pageSize=0!=this.pageSizeOptions.length?this.pageSizeOptions[0]:50),this._displayedPageSizeOptions=this.pageSizeOptions.slice(),-1===this._displayedPageSizeOptions.indexOf(this.pageSize)&&this._displayedPageSizeOptions.push(this.pageSize),this._displayedPageSizeOptions.sort(function(e,t){return e-t}),this._changeDetectorRef.markForCheck())}},{key:"_emitPageEvent",value:function(e){this.page.emit({previousPageIndex:e,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})}}]),n}(nz)).\u0275fac=function(e){return new(e||JV)(rs($V),rs(Kl),rs(void 0))},JV.\u0275dir=bt({type:JV,inputs:{pageIndex:"pageIndex",length:"length",pageSize:"pageSize",pageSizeOptions:"pageSizeOptions",hidePageSize:"hidePageSize",showFirstLastButtons:"showFirstLastButtons",color:"color"},outputs:{page:"page"},features:[Va]}),JV),rz=((KV=function(e){r(n,e);var t=a(n);function n(e,i,r){var o;return A(this,n),o=t.call(this,e,i,r),r&&null!=r.formFieldAppearance&&(o._formFieldAppearance=r.formFieldAppearance),o}return n}(iz)).\u0275fac=function(e){return new(e||KV)(rs($V),rs(Kl),rs(tz,8))},KV.\u0275cmp=ft({type:KV,selectors:[["mat-paginator"]],hostAttrs:[1,"mat-paginator"],inputs:{disabled:"disabled"},exportAs:["matPaginator"],features:[Va],decls:14,vars:14,consts:[[1,"mat-paginator-outer-container"],[1,"mat-paginator-container"],["class","mat-paginator-page-size",4,"ngIf"],[1,"mat-paginator-range-actions"],[1,"mat-paginator-range-label"],["mat-icon-button","","type","button","class","mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-previous",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["viewBox","0 0 24 24","focusable","false",1,"mat-paginator-icon"],["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-next",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"],["mat-icon-button","","type","button","class","mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],[1,"mat-paginator-page-size"],[1,"mat-paginator-page-size-label"],["class","mat-paginator-page-size-select",3,"appearance","color",4,"ngIf"],["class","mat-paginator-page-size-value",4,"ngIf"],[1,"mat-paginator-page-size-select",3,"appearance","color"],[3,"value","disabled","aria-label","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"mat-paginator-page-size-value"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"]],template:function(e,t){1&e&&(ss(0,"div",0),ss(1,"div",1),ns(2,NV,5,3,"div",2),ss(3,"div",3),ss(4,"div",4),Qs(5),ls(),ns(6,HV,3,5,"button",5),ss(7,"button",6),ms("click",function(){return t.previousPage()}),On(),ss(8,"svg",7),us(9,"path",8),ls(),ls(),Mn(),ss(10,"button",9),ms("click",function(){return t.nextPage()}),On(),ss(11,"svg",7),us(12,"path",10),ls(),ls(),ns(13,jV,3,5,"button",11),ls(),ls(),ls()),2&e&&(xo(2),os("ngIf",!t.hidePageSize),xo(3),Ks(" ",t._intl.getRangeLabel(t.pageIndex,t.pageSize,t.length)," "),xo(1),os("ngIf",t.showFirstLastButtons),xo(1),os("matTooltip",t._intl.previousPageLabel)("matTooltipDisabled",t._previousButtonsDisabled())("matTooltipPosition","above")("disabled",t._previousButtonsDisabled()),$a("aria-label",t._intl.previousPageLabel),xo(3),os("matTooltip",t._intl.nextPageLabel)("matTooltipDisabled",t._nextButtonsDisabled())("matTooltipPosition","above")("disabled",t._nextButtonsDisabled()),$a("aria-label",t._intl.nextPageLabel),xo(3),os("ngIf",t.showFirstLastButtons))},directives:[mh,YF,RV,oF,SV,gh,iR],styles:[".mat-paginator{display:block}.mat-paginator-outer-container{display:flex}.mat-paginator-container{display:flex;align-items:center;justify-content:flex-end;padding:0 8px;flex-wrap:wrap-reverse;width:100%}.mat-paginator-page-size{display:flex;align-items:baseline;margin-right:8px}[dir=rtl] .mat-paginator-page-size{margin-right:0;margin-left:8px}.mat-paginator-page-size-label{margin:0 4px}.mat-paginator-page-size-select{margin:6px 4px 0 4px;width:56px}.mat-paginator-page-size-select.mat-form-field-appearance-outline{width:64px}.mat-paginator-page-size-select.mat-form-field-appearance-fill{width:64px}.mat-paginator-range-label{margin:0 32px 0 24px}.mat-paginator-range-actions{display:flex;align-items:center}.mat-paginator-icon{width:28px;fill:currentColor}[dir=rtl] .mat-paginator-icon{transform:rotate(180deg)}\n"],encapsulation:2,changeDetection:0}),KV),oz=((XV=function e(){A(this,e)}).\u0275fac=function(e){return new(e||XV)},XV.\u0275mod=mt({type:XV}),XV.\u0275inj=Fe({providers:[ez],imports:[[Zh,ZF,EV,FV,kI]]}),XV),az=((QV=function e(){A(this,e)}).\u0275fac=function(e){return new(e||QV)},QV.\u0275mod=mt({type:QV}),QV.\u0275inj=Fe({imports:[[kI,Zh],kI]}),QV),sz=((ZV=function e(){A(this,e)}).\u0275fac=function(e){return new(e||ZV)},ZV.\u0275mod=mt({type:ZV}),ZV.\u0275inj=Fe({imports:[[Zh,kI,yT,TR],TR,kI]}),ZV),lz=((YV=function e(){A(this,e)}).\u0275fac=function(e){return new(e||YV)},YV.\u0275mod=mt({type:YV}),YV.\u0275inj=Fe({}),YV),uz=((qV=function e(){A(this,e)}).\u0275fac=function(e){return new(e||qV)},qV.\u0275mod=mt({type:qV}),qV.\u0275inj=Fe({imports:[[lz,qI,kI,ET],lz,kI]}),qV),cz=((GV=function e(){A(this,e)}).\u0275fac=function(e){return new(e||GV)},GV.\u0275mod=mt({type:GV}),GV.\u0275inj=Fe({imports:[[Zh,kI],kI]}),GV),dz=((WV=function e(){A(this,e)}).\u0275fac=function(e){return new(e||WV)},WV.\u0275mod=mt({type:WV}),WV.\u0275inj=Fe({imports:[[AL,SE,Zh,ZF,kI],kI]}),WV),hz=["mat-sort-header",""];function fz(e,t){if(1&e){var n=fs();ss(0,"div",3),ms("@arrowPosition.start",function(){return nn(n),ks()._disableViewStateAnimation=!0})("@arrowPosition.done",function(){return nn(n),ks()._disableViewStateAnimation=!1}),us(1,"div",4),ss(2,"div",5),us(3,"div",6),us(4,"div",7),us(5,"div",8),ls(),ls()}if(2&e){var i=ks();os("@arrowOpacity",i._getArrowViewState())("@arrowPosition",i._getArrowViewState())("@allowChildren",i._getArrowDirectionState()),xo(2),os("@indicator",i._getArrowDirectionState()),xo(1),os("@leftPointer",i._getArrowDirectionState()),xo(1),os("@rightPointer",i._getArrowDirectionState())}}var pz,gz,vz,mz,yz,bz,wz,_z=["*"],kz=new mi("MAT_SORT_DEFAULT_OPTIONS"),xz=SI(xI(function e(){A(this,e)})),Az=((pz=function(e){r(n,e);var t=a(n);function n(e){var i;return A(this,n),(i=t.call(this))._defaultOptions=e,i.sortables=new Map,i._stateChanges=new W,i.start="asc",i._direction="",i.sortChange=new Fu,i}return m(n,[{key:"direction",get:function(){return this._direction},set:function(e){this._direction=e}},{key:"disableClear",get:function(){return this._disableClear},set:function(e){this._disableClear=lT(e)}},{key:"register",value:function(e){this.sortables.set(e.id,e)}},{key:"deregister",value:function(e){this.sortables.delete(e.id)}},{key:"sort",value:function(e){this.active!=e.id?(this.active=e.id,this.direction=e.start?e.start:this.start):this.direction=this.getNextSortDirection(e),this.sortChange.emit({active:this.active,direction:this.direction})}},{key:"getNextSortDirection",value:function(e){var t,n,i;if(!e)return"";var r=null!==(n=null!==(t=null==e?void 0:e.disableClear)&&void 0!==t?t:this.disableClear)&&void 0!==n?n:!!(null===(i=this._defaultOptions)||void 0===i?void 0:i.disableClear),o=function(e,t){var n=["asc","desc"];return"desc"==e&&n.reverse(),t||n.push(""),n}(e.start||this.start,r),a=o.indexOf(this.direction)+1;return a>=o.length&&(a=0),o[a]}},{key:"ngOnInit",value:function(){this._markInitialized()}},{key:"ngOnChanges",value:function(){this._stateChanges.next()}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}}]),n}(xz)).\u0275fac=function(e){return new(e||pz)(rs(kz,8))},pz.\u0275dir=bt({type:pz,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{disabled:["matSortDisabled","disabled"],start:["matSortStart","start"],direction:["matSortDirection","direction"],disableClear:["matSortDisableClear","disableClear"],active:["matSortActive","active"]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[Va,Mt]}),pz),Cz=bI.ENTERING+" "+yI.STANDARD_CURVE,Sz={indicator:Xf("indicator",[ep("active-asc, asc",$f({transform:"translateY(0px)"})),ep("active-desc, desc",$f({transform:"translateY(10px)"})),np("active-asc <=> active-desc",Kf(Cz))]),leftPointer:Xf("leftPointer",[ep("active-asc, asc",$f({transform:"rotate(-45deg)"})),ep("active-desc, desc",$f({transform:"rotate(45deg)"})),np("active-asc <=> active-desc",Kf(Cz))]),rightPointer:Xf("rightPointer",[ep("active-asc, asc",$f({transform:"rotate(45deg)"})),ep("active-desc, desc",$f({transform:"rotate(-45deg)"})),np("active-asc <=> active-desc",Kf(Cz))]),arrowOpacity:Xf("arrowOpacity",[ep("desc-to-active, asc-to-active, active",$f({opacity:1})),ep("desc-to-hint, asc-to-hint, hint",$f({opacity:.54})),ep("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",$f({opacity:0})),np("* => asc, * => desc, * => active, * => hint, * => void",Kf("0ms")),np("* <=> *",Kf(Cz))]),arrowPosition:Xf("arrowPosition",[np("* => desc-to-hint, * => desc-to-active",Kf(Cz,tp([$f({transform:"translateY(-25%)"}),$f({transform:"translateY(0)"})]))),np("* => hint-to-desc, * => active-to-desc",Kf(Cz,tp([$f({transform:"translateY(0)"}),$f({transform:"translateY(25%)"})]))),np("* => asc-to-hint, * => asc-to-active",Kf(Cz,tp([$f({transform:"translateY(25%)"}),$f({transform:"translateY(0)"})]))),np("* => hint-to-asc, * => active-to-asc",Kf(Cz,tp([$f({transform:"translateY(0)"}),$f({transform:"translateY(-25%)"})]))),ep("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",$f({transform:"translateY(0)"})),ep("hint-to-desc, active-to-desc, desc",$f({transform:"translateY(-25%)"})),ep("hint-to-asc, active-to-asc, asc",$f({transform:"translateY(25%)"}))]),allowChildren:Xf("allowChildren",[np("* <=> *",[rp("@*",ip(),{optional:!0})])])},Pz=((gz=function e(){A(this,e),this.changes=new W,this.sortButtonLabel=function(e){return"Change sorting for "+e}}).\u0275fac=function(e){return new(e||gz)},gz.\u0275prov=Re({factory:function(){return new gz},token:gz,providedIn:"root"}),gz),Ez={provide:Pz,deps:[[new Hi,new ji,Pz]],useFactory:function(e){return e||new Pz}},Dz=xI(function e(){A(this,e)}),Oz=((wz=function(e){r(n,e);var t=a(n);function n(e,i,r,o,a,s){var l;return A(this,n),(l=t.call(this))._intl=e,l._changeDetectorRef=i,l._sort=r,l._columnDef=o,l._focusMonitor=a,l._elementRef=s,l._showIndicatorHint=!1,l._arrowDirection="",l._disableViewStateAnimation=!1,l.arrowPosition="after",l._handleStateChanges(),l}return m(n,[{key:"disableClear",get:function(){return this._disableClear},set:function(e){this._disableClear=lT(e)}},{key:"ngOnInit",value:function(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._updateArrowDirection(),this._setAnimationTransitionState({toState:this._isSorted()?"active":this._arrowDirection}),this._sort.register(this)}},{key:"ngAfterViewInit",value:function(){var e=this;this._focusMonitor.monitor(this._elementRef,!0).subscribe(function(t){var n=!!t;n!==e._showIndicatorHint&&(e._setIndicatorHintVisible(n),e._changeDetectorRef.markForCheck())})}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._rerenderSubscription.unsubscribe()}},{key:"_setIndicatorHintVisible",value:function(e){this._isDisabled()&&e||(this._showIndicatorHint=e,this._isSorted()||(this._updateArrowDirection(),this._setAnimationTransitionState(this._showIndicatorHint?{fromState:this._arrowDirection,toState:"hint"}:{fromState:"hint",toState:this._arrowDirection})))}},{key:"_setAnimationTransitionState",value:function(e){this._viewState=e,this._disableViewStateAnimation&&(this._viewState={toState:e.toState})}},{key:"_toggleOnInteraction",value:function(){this._sort.sort(this),"hint"!==this._viewState.toState&&"active"!==this._viewState.toState||(this._disableViewStateAnimation=!0)}},{key:"_handleClick",value:function(){this._isDisabled()||this._sort.sort(this)}},{key:"_handleKeydown",value:function(e){this._isDisabled()||32!==e.keyCode&&13!==e.keyCode||(e.preventDefault(),this._toggleOnInteraction())}},{key:"_isSorted",value:function(){return this._sort.active==this.id&&("asc"===this._sort.direction||"desc"===this._sort.direction)}},{key:"_getArrowDirectionState",value:function(){return"".concat(this._isSorted()?"active-":"").concat(this._arrowDirection)}},{key:"_getArrowViewState",value:function(){var e=this._viewState.fromState;return(e?e+"-to-":"")+this._viewState.toState}},{key:"_updateArrowDirection",value:function(){this._arrowDirection=this._isSorted()?this._sort.direction:this.start||this._sort.start}},{key:"_isDisabled",value:function(){return this._sort.disabled||this.disabled}},{key:"_getAriaSortAttribute",value:function(){return this._isSorted()?"asc"==this._sort.direction?"ascending":"descending":"none"}},{key:"_renderArrow",value:function(){return!this._isDisabled()||this._isSorted()}},{key:"_handleStateChanges",value:function(){var e=this;this._rerenderSubscription=he(this._sort.sortChange,this._sort._stateChanges,this._intl.changes).subscribe(function(){e._isSorted()&&(e._updateArrowDirection(),"hint"!==e._viewState.toState&&"active"!==e._viewState.toState||(e._disableViewStateAnimation=!0),e._setAnimationTransitionState({fromState:e._arrowDirection,toState:"active"}),e._showIndicatorHint=!1),!e._isSorted()&&e._viewState&&"active"===e._viewState.toState&&(e._disableViewStateAnimation=!1,e._setAnimationTransitionState({fromState:"active",toState:e._arrowDirection})),e._changeDetectorRef.markForCheck()})}}]),n}(Dz)).\u0275fac=function(e){return new(e||wz)(rs(Pz),rs(Kl),rs(Az,8),rs("MAT_SORT_HEADER_COLUMN_DEF",8),rs(nI),rs(Cl))},wz.\u0275cmp=ft({type:wz,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(e,t){1&e&&ms("click",function(){return t._handleClick()})("keydown",function(e){return t._handleKeydown(e)})("mouseenter",function(){return t._setIndicatorHintVisible(!0)})("mouseleave",function(){return t._setIndicatorHintVisible(!1)}),2&e&&($a("aria-sort",t._getAriaSortAttribute()),Fs("mat-sort-header-disabled",t._isDisabled()))},inputs:{disabled:"disabled",arrowPosition:"arrowPosition",disableClear:"disableClear",id:["mat-sort-header","id"],start:"start"},exportAs:["matSortHeader"],features:[Va],attrs:hz,ngContentSelectors:_z,decls:4,vars:6,consts:[["role","button",1,"mat-sort-header-container","mat-focus-indicator"],[1,"mat-sort-header-content"],["class","mat-sort-header-arrow",4,"ngIf"],[1,"mat-sort-header-arrow"],[1,"mat-sort-header-stem"],[1,"mat-sort-header-indicator"],[1,"mat-sort-header-pointer-left"],[1,"mat-sort-header-pointer-right"],[1,"mat-sort-header-pointer-middle"]],template:function(e,t){1&e&&(As(),ss(0,"div",0),ss(1,"div",1),Cs(2),ls(),ns(3,fz,6,6,"div",2),ls()),2&e&&(Fs("mat-sort-header-sorted",t._isSorted())("mat-sort-header-position-before","before"==t.arrowPosition),$a("tabindex",t._isDisabled()?null:0),xo(3),os("ngIf",t._renderArrow()))},directives:[mh],styles:[".mat-sort-header-container{display:flex;cursor:pointer;align-items:center;letter-spacing:normal;outline:0}[mat-sort-header].cdk-keyboard-focused .mat-sort-header-container,[mat-sort-header].cdk-program-focused .mat-sort-header-container{border-bottom:solid 1px currentColor}.mat-sort-header-disabled .mat-sort-header-container{cursor:default}.mat-sort-header-content{text-align:center;display:flex;align-items:center}.mat-sort-header-position-before{flex-direction:row-reverse}.mat-sort-header-arrow{height:12px;width:12px;min-width:12px;position:relative;display:flex;opacity:0}.mat-sort-header-arrow,[dir=rtl] .mat-sort-header-position-before .mat-sort-header-arrow{margin:0 0 0 6px}.mat-sort-header-position-before .mat-sort-header-arrow,[dir=rtl] .mat-sort-header-arrow{margin:0 6px 0 0}.mat-sort-header-stem{background:currentColor;height:10px;width:2px;margin:auto;display:flex;align-items:center}.cdk-high-contrast-active .mat-sort-header-stem{width:0;border-left:solid 2px}.mat-sort-header-indicator{width:100%;height:2px;display:flex;align-items:center;position:absolute;top:0;left:0}.mat-sort-header-pointer-middle{margin:auto;height:2px;width:2px;background:currentColor;transform:rotate(45deg)}.cdk-high-contrast-active .mat-sort-header-pointer-middle{width:0;height:0;border-top:solid 2px;border-left:solid 2px}.mat-sort-header-pointer-left,.mat-sort-header-pointer-right{background:currentColor;width:6px;height:2px;position:absolute;top:0}.cdk-high-contrast-active .mat-sort-header-pointer-left,.cdk-high-contrast-active .mat-sort-header-pointer-right{width:0;height:0;border-left:solid 6px;border-top:solid 2px}.mat-sort-header-pointer-left{transform-origin:right;left:0}.mat-sort-header-pointer-right{transform-origin:left;right:0}\n"],encapsulation:2,data:{animation:[Sz.indicator,Sz.leftPointer,Sz.rightPointer,Sz.arrowOpacity,Sz.arrowPosition,Sz.allowChildren]},changeDetection:0}),wz),Mz=((bz=function e(){A(this,e)}).\u0275fac=function(e){return new(e||bz)},bz.\u0275mod=mt({type:bz}),bz.\u0275inj=Fe({providers:[Ez],imports:[[Zh,kI]]}),bz),Tz=((yz=function e(){A(this,e)}).\u0275fac=function(e){return new(e||yz)},yz.\u0275mod=mt({type:yz}),yz.\u0275inj=Fe({imports:[[IR]]}),yz),Iz=((mz=function e(){A(this,e)}).\u0275fac=function(e){return new(e||mz)},mz.\u0275mod=mt({type:mz}),mz.\u0275inj=Fe({imports:[[Tz,kI],kI]}),mz),Rz=((vz=function e(){A(this,e)}).\u0275fac=function(e){return new(e||vz)},vz.\u0275mod=mt({type:vz}),vz.\u0275inj=Fe({imports:[[Zh,kI,SE,qI,ET,uI],kI]}),vz),Lz=["mat-menu-item",""],Fz=["*"];function Bz(e,t){if(1&e){var n=fs();ss(0,"div",0),ms("keydown",function(e){return nn(n),ks()._handleKeydown(e)})("click",function(){return nn(n),ks().closed.emit("click")})("@transformMenu.start",function(e){return nn(n),ks()._onAnimationStart(e)})("@transformMenu.done",function(e){return nn(n),ks()._onAnimationDone(e)}),ss(1,"div",1),Cs(2),ls(),ls()}if(2&e){var i=ks();os("id",i.panelId)("ngClass",i._classList)("@transformMenu",i._panelAnimationState),$a("aria-label",i.ariaLabel||null)("aria-labelledby",i.ariaLabelledby||null)("aria-describedby",i.ariaDescribedby||null)}}var Vz,zz,Nz,Hz,jz,Uz,Wz={transformMenu:Xf("transformMenu",[ep("void",$f({opacity:0,transform:"scale(0.8)"})),np("void => enter",Kf("120ms cubic-bezier(0, 0, 0.2, 1)",$f({opacity:1,transform:"scale(1)"}))),np("* => void",Kf("100ms 25ms linear",$f({opacity:0})))]),fadeInItems:Xf("fadeInItems",[ep("showing",$f({opacity:1})),np("void => *",[$f({opacity:0}),Kf("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},Gz=new mi("MatMenuContent"),qz=new mi("MAT_MENU_PANEL"),Yz=CI(xI(function e(){A(this,e)})),Zz=((Vz=function(e){r(n,e);var t=a(n);function n(e,i,r,o){var a;return A(this,n),(a=t.call(this))._elementRef=e,a._focusMonitor=r,a._parentMenu=o,a.role="menuitem",a._hovered=new W,a._focused=new W,a._highlighted=!1,a._triggersSubmenu=!1,o&&o.addItem&&o.addItem(l(a)),a}return m(n,[{key:"focus",value:function(e,t){this._focusMonitor&&e?this._focusMonitor.focusVia(this._getHostElement(),e,t):this._getHostElement().focus(t),this._focused.next(this)}},{key:"ngAfterViewInit",value:function(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}},{key:"ngOnDestroy",value:function(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}},{key:"_getTabIndex",value:function(){return this.disabled?"-1":"0"}},{key:"_getHostElement",value:function(){return this._elementRef.nativeElement}},{key:"_checkDisabled",value:function(e){this.disabled&&(e.preventDefault(),e.stopPropagation())}},{key:"_handleMouseEnter",value:function(){this._hovered.next(this)}},{key:"getLabel",value:function(){for(var e,t,n=this._elementRef.nativeElement.cloneNode(!0),i=n.querySelectorAll("mat-icon, .material-icons"),r=0;r<i.length;r++){var o=i[r];null===(e=o.parentNode)||void 0===e||e.removeChild(o)}return(null===(t=n.textContent)||void 0===t?void 0:t.trim())||""}}]),n}(Yz)).\u0275fac=function(e){return new(e||Vz)(rs(Cl),rs(od),rs(nI),rs(qz,8))},Vz.\u0275cmp=ft({type:Vz,selectors:[["","mat-menu-item",""]],hostAttrs:[1,"mat-focus-indicator"],hostVars:10,hostBindings:function(e,t){1&e&&ms("click",function(e){return t._checkDisabled(e)})("mouseenter",function(){return t._handleMouseEnter()}),2&e&&($a("role",t.role)("tabindex",t._getTabIndex())("aria-disabled",t.disabled.toString())("disabled",t.disabled||null),Fs("mat-menu-item",!0)("mat-menu-item-highlighted",t._highlighted)("mat-menu-item-submenu-trigger",t._triggersSubmenu))},inputs:{disabled:"disabled",disableRipple:"disableRipple",role:"role"},exportAs:["matMenuItem"],features:[Va],attrs:Lz,ngContentSelectors:Fz,decls:2,vars:2,consts:[["matRipple","",1,"mat-menu-ripple",3,"matRippleDisabled","matRippleTrigger"]],template:function(e,t){1&e&&(As(),Cs(0),us(1,"div",0)),2&e&&(xo(1),os("matRippleDisabled",t.disableRipple||t.disabled)("matRippleTrigger",t._getHostElement()))},directives:[GI],encapsulation:2,changeDetection:0}),Vz),Qz=new mi("mat-menu-default-options",{providedIn:"root",factory:function(){return{overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"}}}),Xz=0,Kz=((Nz=function(){function e(t,n,i){A(this,e),this._elementRef=t,this._ngZone=n,this._defaultOptions=i,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new Vu,this._tabSubscription=O.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new W,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new Fu,this.close=this.closed,this.panelId="mat-menu-panel-"+Xz++}return m(e,[{key:"xPosition",get:function(){return this._xPosition},set:function(e){this._xPosition=e,this.setPositionClasses()}},{key:"yPosition",get:function(){return this._yPosition},set:function(e){this._yPosition=e,this.setPositionClasses()}},{key:"overlapTrigger",get:function(){return this._overlapTrigger},set:function(e){this._overlapTrigger=lT(e)}},{key:"hasBackdrop",get:function(){return this._hasBackdrop},set:function(e){this._hasBackdrop=lT(e)}},{key:"panelClass",set:function(e){var t=this,n=this._previousPanelClass;n&&n.length&&n.split(" ").forEach(function(e){t._classList[e]=!1}),this._previousPanelClass=e,e&&e.length&&(e.split(" ").forEach(function(e){t._classList[e]=!0}),this._elementRef.nativeElement.className="")}},{key:"classList",get:function(){return this.panelClass},set:function(e){this.panelClass=e}},{key:"ngOnInit",value:function(){this.setPositionClasses()}},{key:"ngAfterContentInit",value:function(){var e=this;this._updateDirectDescendants(),this._keyManager=new NT(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._tabSubscription=this._keyManager.tabOut.subscribe(function(){return e.closed.emit("tab")}),this._directDescendantItems.changes.pipe(Wb(this._directDescendantItems),Bb(function(e){return he.apply(void 0,y(e.map(function(e){return e._focused})))})).subscribe(function(t){return e._keyManager.updateActiveItem(t)})}},{key:"ngOnDestroy",value:function(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}},{key:"_hovered",value:function(){return this._directDescendantItems.changes.pipe(Wb(this._directDescendantItems),Bb(function(e){return he.apply(void 0,y(e.map(function(e){return e._hovered})))}))}},{key:"addItem",value:function(e){}},{key:"removeItem",value:function(e){}},{key:"_handleKeydown",value:function(e){var t=e.keyCode,n=this._keyManager;switch(t){case 27:tT(e)||(e.preventDefault(),this.closed.emit("keydown"));break;case 37:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case 39:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:38!==t&&40!==t||n.setFocusOrigin("keyboard"),n.onKeydown(e)}}},{key:"focusFirstItem",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"program";this.lazyContent?this._ngZone.onStable.pipe(Hb(1)).subscribe(function(){return e._focusFirstItem(t)}):this._focusFirstItem(t)}},{key:"_focusFirstItem",value:function(e){var t=this._keyManager;if(t.setFocusOrigin(e).setFirstItemActive(),!t.activeItem&&this._directDescendantItems.length)for(var n=this._directDescendantItems.first._getHostElement().parentElement;n;){if("menu"===n.getAttribute("role")){n.focus();break}n=n.parentElement}}},{key:"resetActiveItem",value:function(){this._keyManager.setActiveItem(-1)}},{key:"setElevation",value:function(e){var t="mat-elevation-z"+Math.min(4+e,24),n=Object.keys(this._classList).find(function(e){return e.startsWith("mat-elevation-z")});n&&n!==this._previousElevation||(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[t]=!0,this._previousElevation=t)}},{key:"setPositionClasses",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.xPosition,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.yPosition,n=this._classList;n["mat-menu-before"]="before"===e,n["mat-menu-after"]="after"===e,n["mat-menu-above"]="above"===t,n["mat-menu-below"]="below"===t}},{key:"_startAnimation",value:function(){this._panelAnimationState="enter"}},{key:"_resetAnimation",value:function(){this._panelAnimationState="void"}},{key:"_onAnimationDone",value:function(e){this._animationDone.next(e),this._isAnimating=!1}},{key:"_onAnimationStart",value:function(e){this._isAnimating=!0,"enter"===e.toState&&0===this._keyManager.activeItemIndex&&(e.element.scrollTop=0)}},{key:"_updateDirectDescendants",value:function(){var e=this;this._allItems.changes.pipe(Wb(this._allItems)).subscribe(function(t){e._directDescendantItems.reset(t.filter(function(t){return t._parentMenu===e})),e._directDescendantItems.notifyOnChanges()})}}]),e}()).\u0275fac=function(e){return new(e||Nz)(rs(Cl),rs(Ac),rs(Qz))},Nz.\u0275dir=bt({type:Nz,contentQueries:function(e,t,n){var i;1&e&&(Xu(n,Gz,1),Xu(n,Zz,1),Xu(n,Zz,0)),2&e&&(Zu(i=Ku())&&(t.lazyContent=i.first),Zu(i=Ku())&&(t._allItems=i),Zu(i=Ku())&&(t.items=i))},viewQuery:function(e,t){var n;1&e&&Qu(iu,1),2&e&&Zu(n=Ku())&&(t.templateRef=n.first)},inputs:{backdropClass:"backdropClass",xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"]},outputs:{closed:"closed",close:"close"}}),Nz),Jz=((zz=function(e){r(n,e);var t=a(n);function n(e,i,r){return A(this,n),t.call(this,e,i,r)}return n}(Kz)).\u0275fac=function(e){return new(e||zz)(rs(Cl),rs(Ac),rs(Qz))},zz.\u0275cmp=ft({type:zz,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(e,t){2&e&&$a("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[yl([{provide:qz,useExisting:zz}]),Va],ngContentSelectors:Fz,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(e,t){1&e&&(As(),ns(0,Bz,3,6,"ng-template"))},directives:[fh],styles:['mat-menu{display:none}.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]{pointer-events:none}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.cdk-high-contrast-active .mat-menu-item.cdk-program-focused,.cdk-high-contrast-active .mat-menu-item.cdk-keyboard-focused,.cdk-high-contrast-active .mat-menu-item-highlighted{outline:dotted 1px}.mat-menu-item-submenu-trigger{padding-right:32px}.mat-menu-item-submenu-trigger::after{width:0;height:0;border-style:solid;border-width:5px 0 5px 5px;border-color:transparent transparent transparent currentColor;content:"";display:inline-block;position:absolute;top:50%;right:16px;transform:translateY(-50%)}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}[dir=rtl] .mat-menu-item-submenu-trigger::after{right:auto;left:16px;transform:rotateY(180deg) translateY(-50%)}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\n'],encapsulation:2,data:{animation:[Wz.transformMenu,Wz.fadeInItems]},changeDetection:0}),zz),$z=new mi("mat-menu-scroll-strategy"),eN={provide:$z,deps:[yL],useFactory:function(e){return function(){return e.scrollStrategies.reposition()}}},tN=bT({passive:!0}),nN=((Uz=function(){function e(t,n,i,r,o,a,s,l){var u=this;A(this,e),this._overlay=t,this._element=n,this._viewContainerRef=i,this._menuItemInstance=a,this._dir=s,this._focusMonitor=l,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=O.EMPTY,this._hoverSubscription=O.EMPTY,this._menuCloseSubscription=O.EMPTY,this._handleTouchStart=function(e){JT(e)||(u._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new Fu,this.onMenuOpen=this.menuOpened,this.menuClosed=new Fu,this.onMenuClose=this.menuClosed,this._scrollStrategy=r,this._parentMaterialMenu=o instanceof Kz?o:void 0,n.nativeElement.addEventListener("touchstart",this._handleTouchStart,tN),a&&(a._triggersSubmenu=this.triggersSubmenu())}return m(e,[{key:"_deprecatedMatMenuTriggerFor",get:function(){return this.menu},set:function(e){this.menu=e}},{key:"menu",get:function(){return this._menu},set:function(e){var t=this;e!==this._menu&&(this._menu=e,this._menuCloseSubscription.unsubscribe(),e&&(this._menuCloseSubscription=e.close.subscribe(function(e){t._destroyMenu(e),"click"!==e&&"tab"!==e||!t._parentMaterialMenu||t._parentMaterialMenu.closed.emit(e)})))}},{key:"ngAfterContentInit",value:function(){this._checkMenu(),this._handleHover()}},{key:"ngOnDestroy",value:function(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,tN),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}},{key:"menuOpen",get:function(){return this._menuOpen}},{key:"dir",get:function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}},{key:"triggersSubmenu",value:function(){return!(!this._menuItemInstance||!this._parentMaterialMenu)}},{key:"toggleMenu",value:function(){return this._menuOpen?this.closeMenu():this.openMenu()}},{key:"openMenu",value:function(){var e=this;if(!this._menuOpen){this._checkMenu();var t=this._createOverlay(),n=t.getConfig();this._setPosition(n.positionStrategy),n.hasBackdrop=null==this.menu.hasBackdrop?!this.triggersSubmenu():this.menu.hasBackdrop,t.attach(this._getPortal()),this.menu.lazyContent&&this.menu.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(function(){return e.closeMenu()}),this._initMenu(),this.menu instanceof Kz&&this.menu._startAnimation()}}},{key:"closeMenu",value:function(){this.menu.close.emit()}},{key:"focus",value:function(e,t){this._focusMonitor&&e?this._focusMonitor.focusVia(this._element,e,t):this._element.nativeElement.focus(t)}},{key:"_destroyMenu",value:function(e){var t=this;if(this._overlayRef&&this.menuOpen){var n=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),!this.restoreFocus||"keydown"!==e&&this._openedBy&&this.triggersSubmenu()||this.focus(this._openedBy),this._openedBy=void 0,n instanceof Kz?(n._resetAnimation(),n.lazyContent?n._animationDone.pipe(Ry(function(e){return"void"===e.toState}),Hb(1),kR(n.lazyContent._attached)).subscribe({next:function(){return n.lazyContent.detach()},complete:function(){return t._setIsMenuOpen(!1)}}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),n.lazyContent&&n.lazyContent.detach())}}},{key:"_initMenu",value:function(){this.menu.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,this.menu.direction=this.dir,this._setMenuElevation(),this.menu.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}},{key:"_setMenuElevation",value:function(){if(this.menu.setElevation){for(var e=0,t=this.menu.parentMenu;t;)e++,t=t.parentMenu;this.menu.setElevation(e)}}},{key:"_setIsMenuOpen",value:function(e){this._menuOpen=e,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&(this._menuItemInstance._highlighted=e)}},{key:"_checkMenu",value:function(){}},{key:"_createOverlay",value:function(){if(!this._overlayRef){var e=this._getOverlayConfig();this._subscribeToPositions(e.positionStrategy),this._overlayRef=this._overlay.create(e),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}},{key:"_getOverlayConfig",value:function(){return new QR({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:this.menu.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:this.menu.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}},{key:"_subscribeToPositions",value:function(e){var t=this;this.menu.setPositionClasses&&e.positionChanges.subscribe(function(e){t.menu.setPositionClasses("start"===e.connectionPair.overlayX?"after":"before","top"===e.connectionPair.overlayY?"below":"above")})}},{key:"_setPosition",value:function(e){var t=f("before"===this.menu.xPosition?["end","start"]:["start","end"],2),n=t[0],i=t[1],r=f("above"===this.menu.yPosition?["bottom","top"]:["top","bottom"],2),o=r[0],a=r[1],s=o,l=a,u=n,c=i,d=0;this.triggersSubmenu()?(c=n="before"===this.menu.xPosition?"start":"end",i=u="end"===n?"start":"end",d="bottom"===o?8:-8):this.menu.overlapTrigger||(s="top"===o?"bottom":"top",l="top"===a?"bottom":"top"),e.withPositions([{originX:n,originY:s,overlayX:u,overlayY:o,offsetY:d},{originX:i,originY:s,overlayX:c,overlayY:o,offsetY:d},{originX:n,originY:l,overlayX:u,overlayY:a,offsetY:-d},{originX:i,originY:l,overlayX:c,overlayY:a,offsetY:-d}])}},{key:"_menuClosingActions",value:function(){var e=this,t=this._overlayRef.backdropClick(),n=this._overlayRef.detachments();return he(t,this._parentMaterialMenu?this._parentMaterialMenu.closed:Ty(),this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe(Ry(function(t){return t!==e._menuItemInstance}),Ry(function(){return e._menuOpen})):Ty(),n)}},{key:"_handleMousedown",value:function(e){KT(e)||(this._openedBy=0===e.button?"mouse":void 0,this.triggersSubmenu()&&e.preventDefault())}},{key:"_handleKeydown",value:function(e){var t=e.keyCode;13!==t&&32!==t||(this._openedBy="keyboard"),this.triggersSubmenu()&&(39===t&&"ltr"===this.dir||37===t&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}},{key:"_handleClick",value:function(e){this.triggersSubmenu()?(e.stopPropagation(),this.openMenu()):this.toggleMenu()}},{key:"_handleHover",value:function(){var e=this;this.triggersSubmenu()&&this._parentMaterialMenu&&(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe(Ry(function(t){return t===e._menuItemInstance&&!t.disabled}),sF(0,vR)).subscribe(function(){e._openedBy="mouse",e.menu instanceof Kz&&e.menu._isAnimating?e.menu._animationDone.pipe(Hb(1),sF(0,vR),kR(e._parentMaterialMenu._hovered())).subscribe(function(){return e.openMenu()}):e.openMenu()}))}},{key:"_getPortal",value:function(){return this._portal&&this._portal.templateRef===this.menu.templateRef||(this._portal=new _E(this.menu.templateRef,this._viewContainerRef)),this._portal}}]),e}()).\u0275fac=function(e){return new(e||Uz)(rs(yL),rs(Cl),rs(uu),rs($z),rs(qz,8),rs(Zz,10),rs(dI,8),rs(nI))},Uz.\u0275dir=bt({type:Uz,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:["aria-haspopup","true",1,"mat-menu-trigger"],hostVars:2,hostBindings:function(e,t){1&e&&ms("mousedown",function(e){return t._handleMousedown(e)})("keydown",function(e){return t._handleKeydown(e)})("click",function(e){return t._handleClick(e)}),2&e&&$a("aria-expanded",t.menuOpen||null)("aria-controls",t.menuOpen?t.menu.panelId:null)},inputs:{restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"],_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"},exportAs:["matMenuTrigger"]}),Uz),iN=((jz=function e(){A(this,e)}).\u0275fac=function(e){return new(e||jz)},jz.\u0275mod=mt({type:jz}),jz.\u0275inj=Fe({providers:[eN],imports:[kI]}),jz),rN=((Hz=function e(){A(this,e)}).\u0275fac=function(e){return new(e||Hz)},Hz.\u0275mod=mt({type:Hz}),Hz.\u0275inj=Fe({providers:[eN],imports:[[Zh,kI,qI,AL,iN],TR,kI,iN]}),Hz);function oN(e){var t=e.subscriber,n=e.counter,i=e.period;t.next(n),this.schedule({subscriber:t,counter:n+1,period:i},i)}function aN(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function sN(e,t){var n=t?"":"none";aN(e.style,{touchAction:t?"":"none",webkitUserDrag:t?"":"none",webkitTapHighlightColor:t?"":"transparent",userSelect:n,msUserSelect:n,webkitUserSelect:n,MozUserSelect:n})}function lN(e,t){var n=e.style;n.position=t?"":"fixed",n.top=n.opacity=t?"":"0",n.left=t?"":"-999em"}function uN(e){var t=e.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(e)*t}function cN(e,t){return e.getPropertyValue(t).split(",").map(function(e){return e.trim()})}function dN(e){var t=e.getBoundingClientRect();return{top:t.top,right:t.right,bottom:t.bottom,left:t.left,width:t.width,height:t.height}}function hN(e,t,n){var i=e.top,r=e.bottom,o=e.left,a=e.right;return n>=i&&n<=r&&t>=o&&t<=a}function fN(e,t,n){e.top+=t,e.bottom=e.top+e.height,e.left+=n,e.right=e.left+e.width}function pN(e,t,n,i){var r=e.top,o=e.right,a=e.bottom,s=e.left,l=e.width*t,u=e.height*t;return i>r-u&&i<a+u&&n>s-l&&n<o+l}var gN=function(){function e(t,n){A(this,e),this._document=t,this._viewportRuler=n,this.positions=new Map}return m(e,[{key:"clear",value:function(){this.positions.clear()}},{key:"cache",value:function(e){var t=this;this.clear(),this.positions.set(this._document,{scrollPosition:this._viewportRuler.getViewportScrollPosition()}),e.forEach(function(e){t.positions.set(e,{scrollPosition:{top:e.scrollTop,left:e.scrollLeft},clientRect:dN(e)})})}},{key:"handleScroll",value:function(e){var t=e.target,n=this.positions.get(t);if(!n)return null;var i,r,o=t===this._document?t.documentElement:t,a=n.scrollPosition;if(t===this._document){var s=this._viewportRuler.getViewportScrollPosition();i=s.top,r=s.left}else i=t.scrollTop,r=t.scrollLeft;var l=a.top-i,u=a.left-r;return this.positions.forEach(function(e,n){e.clientRect&&t!==n&&o.contains(n)&&fN(e.clientRect,l,u)}),a.top=i,a.left=r,{top:l,left:u}}}]),e}();function vN(e){var t=e.cloneNode(!0),n=t.querySelectorAll("[id]"),i=e.nodeName.toLowerCase();t.removeAttribute("id");for(var r=0;r<n.length;r++)n[r].removeAttribute("id");return"canvas"===i?wN(e,t):"input"!==i&&"select"!==i&&"textarea"!==i||bN(e,t),mN("canvas",e,t,wN),mN("input, textarea, select",e,t,bN),t}function mN(e,t,n,i){var r=t.querySelectorAll(e);if(r.length)for(var o=n.querySelectorAll(e),a=0;a<r.length;a++)i(r[a],o[a])}var yN=0;function bN(e,t){"file"!==t.type&&(t.value=e.value),"radio"===t.type&&t.name&&(t.name="mat-clone-".concat(t.name,"-").concat(yN++))}function wN(e,t){var n=t.getContext("2d");if(n)try{n.drawImage(e,0,0)}catch(dQ){}}var _N=bT({passive:!0}),kN=bT({passive:!1}),xN=function(){function e(t,n,i,r,o,a){var s=this;A(this,e),this._config=n,this._document=i,this._ngZone=r,this._viewportRuler=o,this._dragDropRegistry=a,this._passiveTransform={x:0,y:0},this._activeTransform={x:0,y:0},this._moveEvents=new W,this._pointerMoveSubscription=O.EMPTY,this._pointerUpSubscription=O.EMPTY,this._scrollSubscription=O.EMPTY,this._resizeSubscription=O.EMPTY,this._boundaryElement=null,this._nativeInteractionsEnabled=!0,this._handles=[],this._disabledHandles=new Set,this._direction="ltr",this.dragStartDelay=0,this._disabled=!1,this.beforeStarted=new W,this.started=new W,this.released=new W,this.ended=new W,this.entered=new W,this.exited=new W,this.dropped=new W,this.moved=this._moveEvents,this._pointerDown=function(e){if(s.beforeStarted.next(),s._handles.length){var t=s._handles.find(function(t){var n=e.target;return!!n&&(n===t||t.contains(n))});!t||s._disabledHandles.has(t)||s.disabled||s._initializeDragSequence(t,e)}else s.disabled||s._initializeDragSequence(s._rootElement,e)},this._pointerMove=function(e){var t=s._getPointerPositionOnPage(e);if(s._hasStartedDragging){s._boundaryElement&&(s._previewRect&&(s._previewRect.width||s._previewRect.height)||(s._previewRect=(s._preview||s._rootElement).getBoundingClientRect())),e.preventDefault();var n=s._getConstrainedPointerPosition(t);if(s._hasMoved=!0,s._lastKnownPointerPosition=t,s._updatePointerDirectionDelta(n),s._dropContainer)s._updateActiveDropContainer(n,t);else{var i=s._activeTransform;i.x=n.x-s._pickupPositionOnPage.x+s._passiveTransform.x,i.y=n.y-s._pickupPositionOnPage.y+s._passiveTransform.y,s._applyRootElementTransform(i.x,i.y),"undefined"!=typeof SVGElement&&s._rootElement instanceof SVGElement&&s._rootElement.setAttribute("transform","translate(".concat(i.x," ").concat(i.y,")"))}s._moveEvents.observers.length&&s._ngZone.run(function(){s._moveEvents.next({source:s,pointerPosition:n,event:e,distance:s._getDragDistance(n),delta:s._pointerDirectionDelta})})}else if(Math.abs(t.x-s._pickupPositionOnPage.x)+Math.abs(t.y-s._pickupPositionOnPage.y)>=s._config.dragStartThreshold){var r=Date.now()>=s._dragStartTime+s._getDragStartDelay(e),o=s._dropContainer;if(!r)return void s._endDragSequence(e);o&&(o.isDragging()||o.isReceiving())||(e.preventDefault(),s._hasStartedDragging=!0,s._ngZone.run(function(){return s._startDragSequence(e)}))}},this._pointerUp=function(e){s._endDragSequence(e)},this.withRootElement(t).withParent(n.parentDragRef||null),this._parentPositions=new gN(i,o),a.registerDragItem(this)}return m(e,[{key:"disabled",get:function(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)},set:function(e){var t=lT(e);t!==this._disabled&&(this._disabled=t,this._toggleNativeDragInteractions(),this._handles.forEach(function(e){return sN(e,t)}))}},{key:"getPlaceholderElement",value:function(){return this._placeholder}},{key:"getRootElement",value:function(){return this._rootElement}},{key:"getVisibleElement",value:function(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}},{key:"withHandles",value:function(e){var t=this;this._handles=e.map(function(e){return hT(e)}),this._handles.forEach(function(e){return sN(e,t.disabled)}),this._toggleNativeDragInteractions();var n=new Set;return this._disabledHandles.forEach(function(e){t._handles.indexOf(e)>-1&&n.add(e)}),this._disabledHandles=n,this}},{key:"withPreviewTemplate",value:function(e){return this._previewTemplate=e,this}},{key:"withPlaceholderTemplate",value:function(e){return this._placeholderTemplate=e,this}},{key:"withRootElement",value:function(e){var t=this,n=hT(e);return n!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(function(){n.addEventListener("mousedown",t._pointerDown,kN),n.addEventListener("touchstart",t._pointerDown,_N)}),this._initialTransform=void 0,this._rootElement=n),"undefined"!=typeof SVGElement&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}},{key:"withBoundaryElement",value:function(e){var t=this;return this._boundaryElement=e?hT(e):null,this._resizeSubscription.unsubscribe(),e&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(function(){return t._containInsideBoundaryOnResize()})),this}},{key:"withParent",value:function(e){return this._parentDragRef=e,this}},{key:"dispose",value:function(){this._removeRootElementListeners(this._rootElement),this.isDragging()&&SN(this._rootElement),SN(this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._dragDropRegistry.removeDragItem(this),this._removeSubscriptions(),this.beforeStarted.complete(),this.started.complete(),this.released.complete(),this.ended.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this._moveEvents.complete(),this._handles=[],this._disabledHandles.clear(),this._dropContainer=void 0,this._resizeSubscription.unsubscribe(),this._parentPositions.clear(),this._boundaryElement=this._rootElement=this._ownerSVGElement=this._placeholderTemplate=this._previewTemplate=this._anchor=this._parentDragRef=null}},{key:"isDragging",value:function(){return this._hasStartedDragging&&this._dragDropRegistry.isDragging(this)}},{key:"reset",value:function(){this._rootElement.style.transform=this._initialTransform||"",this._activeTransform={x:0,y:0},this._passiveTransform={x:0,y:0}}},{key:"disableHandle",value:function(e){!this._disabledHandles.has(e)&&this._handles.indexOf(e)>-1&&(this._disabledHandles.add(e),sN(e,!0))}},{key:"enableHandle",value:function(e){this._disabledHandles.has(e)&&(this._disabledHandles.delete(e),sN(e,this.disabled))}},{key:"withDirection",value:function(e){return this._direction=e,this}},{key:"_withDropContainer",value:function(e){this._dropContainer=e}},{key:"getFreeDragPosition",value:function(){var e=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:e.x,y:e.y}}},{key:"setFreeDragPosition",value:function(e){return this._activeTransform={x:0,y:0},this._passiveTransform.x=e.x,this._passiveTransform.y=e.y,this._dropContainer||this._applyRootElementTransform(e.x,e.y),this}},{key:"_sortFromLastPointerPosition",value:function(){var e=this._lastKnownPointerPosition;e&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(e),e)}},{key:"_removeSubscriptions",value:function(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe()}},{key:"_destroyPreview",value:function(){this._preview&&SN(this._preview),this._previewRef&&this._previewRef.destroy(),this._preview=this._previewRef=null}},{key:"_destroyPlaceholder",value:function(){this._placeholder&&SN(this._placeholder),this._placeholderRef&&this._placeholderRef.destroy(),this._placeholder=this._placeholderRef=null}},{key:"_endDragSequence",value:function(e){var t=this;this._dragDropRegistry.isDragging(this)&&(this._removeSubscriptions(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),this._hasStartedDragging&&(this.released.next({source:this}),this._dropContainer?(this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(function(){t._cleanupDragArtifacts(e),t._cleanupCachedDimensions(),t._dragDropRegistry.stopDragging(t)})):(this._passiveTransform.x=this._activeTransform.x,this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(function(){t.ended.next({source:t,distance:t._getDragDistance(t._getPointerPositionOnPage(e))})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this))))}},{key:"_startDragSequence",value:function(e){PN(e)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();var t=this._dropContainer;if(t){var n=this._rootElement,i=n.parentNode,r=this._preview=this._createPreviewElement(),o=this._placeholder=this._createPlaceholderElement(),a=this._anchor=this._anchor||this._document.createComment(""),s=this._getShadowRoot();i.insertBefore(a,n),lN(n,!1),this._document.body.appendChild(i.replaceChild(o,n)),function(e,t){return t||e.fullscreenElement||e.webkitFullscreenElement||e.mozFullScreenElement||e.msFullscreenElement||e.body}(this._document,s).appendChild(r),this.started.next({source:this}),t.start(),this._initialContainer=t,this._initialIndex=t.getItemIndex(this)}else this.started.next({source:this}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(t?t.getScrollableParents():[])}},{key:"_initializeDragSequence",value:function(e,t){var n=this;this._parentDragRef&&t.stopPropagation();var i=this.isDragging(),r=PN(t),o=!r&&0!==t.button,a=this._rootElement,s=!r&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now();if(t.target&&t.target.draggable&&"mousedown"===t.type&&t.preventDefault(),!(i||o||s)){this._handles.length&&(this._rootElementTapHighlight=a.style.webkitTapHighlightColor||"",a.style.webkitTapHighlightColor="transparent"),this._hasStartedDragging=this._hasMoved=!1,this._removeSubscriptions(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scroll.subscribe(function(e){n._updateOnScroll(e)}),this._boundaryElement&&(this._boundaryRect=dN(this._boundaryElement));var l=this._previewTemplate;this._pickupPositionInElement=l&&l.template&&!l.matchSize?{x:0,y:0}:this._getPointerPositionInElement(e,t);var u=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(t);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:u.x,y:u.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,t)}}},{key:"_cleanupDragArtifacts",value:function(e){var t=this;lN(this._rootElement,!0),this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._boundaryRect=this._previewRect=void 0,this._ngZone.run(function(){var n=t._dropContainer,i=n.getItemIndex(t),r=t._getPointerPositionOnPage(e),o=t._getDragDistance(t._getPointerPositionOnPage(e)),a=n._isOverContainer(r.x,r.y);t.ended.next({source:t,distance:o}),t.dropped.next({item:t,currentIndex:i,previousIndex:t._initialIndex,container:n,previousContainer:t._initialContainer,isPointerOverContainer:a,distance:o}),n.drop(t,i,t._initialIndex,t._initialContainer,a,o),t._dropContainer=t._initialContainer})}},{key:"_updateActiveDropContainer",value:function(e,t){var n=this,i=e.x,r=e.y,o=t.x,a=t.y,s=this._initialContainer._getSiblingContainerFromPosition(this,i,r);!s&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(i,r)&&(s=this._initialContainer),s&&s!==this._dropContainer&&this._ngZone.run(function(){n.exited.next({item:n,container:n._dropContainer}),n._dropContainer.exit(n),n._dropContainer=s,n._dropContainer.enter(n,i,r,s===n._initialContainer&&s.sortingDisabled?n._initialIndex:void 0),n.entered.next({item:n,container:s,currentIndex:s.getItemIndex(n)})}),this._dropContainer._startScrollingIfNecessary(o,a),this._dropContainer._sortItem(this,i,r,this._pointerDirectionDelta),this._preview.style.transform=AN(i-this._pickupPositionInElement.x,r-this._pickupPositionInElement.y)}},{key:"_createPreviewElement",value:function(){var e,t=this._previewTemplate,n=this.previewClass,i=t?t.template:null;if(i&&t){var r=t.matchSize?this._rootElement.getBoundingClientRect():null,o=t.viewContainer.createEmbeddedView(i,t.context);o.detectChanges(),e=EN(o,this._document),this._previewRef=o,t.matchSize?DN(e,r):e.style.transform=AN(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else{var a=this._rootElement;DN(e=vN(a),a.getBoundingClientRect())}return aN(e.style,{pointerEvents:"none",margin:"0",position:"fixed",top:"0",left:"0",zIndex:""+(this._config.zIndex||1e3)}),sN(e,!1),e.classList.add("cdk-drag-preview"),e.setAttribute("dir",this._direction),n&&(Array.isArray(n)?n.forEach(function(t){return e.classList.add(t)}):e.classList.add(n)),e}},{key:"_animatePreviewToPlaceholder",value:function(){var e=this;if(!this._hasMoved)return Promise.resolve();var t=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._preview.style.transform=AN(t.left,t.top);var n=function(e){var t=getComputedStyle(e),n=cN(t,"transition-property"),i=n.find(function(e){return"transform"===e||"all"===e});if(!i)return 0;var r=n.indexOf(i),o=cN(t,"transition-duration"),a=cN(t,"transition-delay");return uN(o[r])+uN(a[r])}(this._preview);return 0===n?Promise.resolve():this._ngZone.runOutsideAngular(function(){return new Promise(function(t){var i=function n(i){(!i||i.target===e._preview&&"transform"===i.propertyName)&&(e._preview.removeEventListener("transitionend",n),t(),clearTimeout(r))},r=setTimeout(i,1.5*n);e._preview.addEventListener("transitionend",i)})})}},{key:"_createPlaceholderElement",value:function(){var e,t=this._placeholderTemplate,n=t?t.template:null;return n?(this._placeholderRef=t.viewContainer.createEmbeddedView(n,t.context),this._placeholderRef.detectChanges(),e=EN(this._placeholderRef,this._document)):e=vN(this._rootElement),e.classList.add("cdk-drag-placeholder"),e}},{key:"_getPointerPositionInElement",value:function(e,t){var n=this._rootElement.getBoundingClientRect(),i=e===this._rootElement?null:e,r=i?i.getBoundingClientRect():n,o=PN(t)?t.targetTouches[0]:t,a=this._getViewportScrollPosition();return{x:r.left-n.left+(o.pageX-r.left-a.left),y:r.top-n.top+(o.pageY-r.top-a.top)}}},{key:"_getPointerPositionOnPage",value:function(e){var t=this._getViewportScrollPosition(),n=PN(e)?e.touches[0]||e.changedTouches[0]||{pageX:0,pageY:0}:e,i=n.pageX-t.left,r=n.pageY-t.top;if(this._ownerSVGElement){var o=this._ownerSVGElement.getScreenCTM();if(o){var a=this._ownerSVGElement.createSVGPoint();return a.x=i,a.y=r,a.matrixTransform(o.inverse())}}return{x:i,y:r}}},{key:"_getConstrainedPointerPosition",value:function(e){var t=this._dropContainer?this._dropContainer.lockAxis:null,n=this.constrainPosition?this.constrainPosition(e,this):e,i=n.x,r=n.y;if("x"===this.lockAxis||"x"===t?r=this._pickupPositionOnPage.y:"y"!==this.lockAxis&&"y"!==t||(i=this._pickupPositionOnPage.x),this._boundaryRect){var o=this._pickupPositionInElement,a=o.x,s=o.y,l=this._boundaryRect,u=this._previewRect,c=l.top+s,d=l.bottom-(u.height-s);i=CN(i,l.left+a,l.right-(u.width-a)),r=CN(r,c,d)}return{x:i,y:r}}},{key:"_updatePointerDirectionDelta",value:function(e){var t=e.x,n=e.y,i=this._pointerDirectionDelta,r=this._pointerPositionAtLastDirectionChange,o=Math.abs(t-r.x),a=Math.abs(n-r.y);return o>this._config.pointerDirectionChangeThreshold&&(i.x=t>r.x?1:-1,r.x=t),a>this._config.pointerDirectionChangeThreshold&&(i.y=n>r.y?1:-1,r.y=n),i}},{key:"_toggleNativeDragInteractions",value:function(){if(this._rootElement&&this._handles){var e=this._handles.length>0||!this.isDragging();e!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=e,sN(this._rootElement,e))}}},{key:"_removeRootElementListeners",value:function(e){e.removeEventListener("mousedown",this._pointerDown,kN),e.removeEventListener("touchstart",this._pointerDown,_N)}},{key:"_applyRootElementTransform",value:function(e,t){var n=AN(e,t);null==this._initialTransform&&(this._initialTransform=this._rootElement.style.transform||""),this._rootElement.style.transform=this._initialTransform?n+" "+this._initialTransform:n}},{key:"_getDragDistance",value:function(e){var t=this._pickupPositionOnPage;return t?{x:e.x-t.x,y:e.y-t.y}:{x:0,y:0}}},{key:"_cleanupCachedDimensions",value:function(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}},{key:"_containInsideBoundaryOnResize",value:function(){var e=this._passiveTransform,t=e.x,n=e.y;if(!(0===t&&0===n||this.isDragging())&&this._boundaryElement){var i=this._boundaryElement.getBoundingClientRect(),r=this._rootElement.getBoundingClientRect();if(!(0===i.width&&0===i.height||0===r.width&&0===r.height)){var o=i.left-r.left,a=r.right-i.right,s=i.top-r.top,l=r.bottom-i.bottom;i.width>r.width?(o>0&&(t+=o),a>0&&(t-=a)):t=0,i.height>r.height?(s>0&&(n+=s),l>0&&(n-=l)):n=0,t===this._passiveTransform.x&&n===this._passiveTransform.y||this.setFreeDragPosition({y:n,x:t})}}}},{key:"_getDragStartDelay",value:function(e){var t=this.dragStartDelay;return"number"==typeof t?t:PN(e)?t.touch:t?t.mouse:0}},{key:"_updateOnScroll",value:function(e){var t=this._parentPositions.handleScroll(e);if(t){var n=e.target;this._boundaryRect&&(n===this._document||n!==this._boundaryElement&&n.contains(this._boundaryElement))&&fN(this._boundaryRect,t.top,t.left),this._pickupPositionOnPage.x+=t.left,this._pickupPositionOnPage.y+=t.top,this._dropContainer||(this._activeTransform.x-=t.left,this._activeTransform.y-=t.top,this._applyRootElementTransform(this._activeTransform.x,this._activeTransform.y))}}},{key:"_getViewportScrollPosition",value:function(){var e=this._parentPositions.positions.get(this._document);return e?e.scrollPosition:this._viewportRuler.getViewportScrollPosition()}},{key:"_getShadowRoot",value:function(){return void 0===this._cachedShadowRoot&&(this._cachedShadowRoot=wT(this._rootElement)),this._cachedShadowRoot}}]),e}();function AN(e,t){return"translate3d(".concat(Math.round(e),"px, ").concat(Math.round(t),"px, 0)")}function CN(e,t,n){return Math.max(t,Math.min(n,e))}function SN(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function PN(e){return"t"===e.type[0]}function EN(e,t){var n=e.rootNodes;if(1===n.length&&n[0].nodeType===t.ELEMENT_NODE)return n[0];var i=t.createElement("div");return n.forEach(function(e){return i.appendChild(e)}),i}function DN(e,t){e.style.width=t.width+"px",e.style.height=t.height+"px",e.style.transform=AN(t.left,t.top)}function ON(e,t){return Math.max(0,Math.min(t,e))}var MN=function(){function e(t,n,i,r,o){var a=this;A(this,e),this._dragDropRegistry=n,this._ngZone=r,this._viewportRuler=o,this.disabled=!1,this.sortingDisabled=!1,this.autoScrollDisabled=!1,this.autoScrollStep=2,this.enterPredicate=function(){return!0},this.sortPredicate=function(){return!0},this.beforeStarted=new W,this.entered=new W,this.exited=new W,this.dropped=new W,this.sorted=new W,this._isDragging=!1,this._itemPositions=[],this._previousSwap={drag:null,delta:0,overlaps:!1},this._draggables=[],this._siblings=[],this._orientation="vertical",this._activeSiblings=new Set,this._direction="ltr",this._viewportScrollSubscription=O.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new W,this._cachedShadowRoot=null,this._startScrollInterval=function(){a._stopScrolling(),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:nT;return(!bR(e)||e<0)&&(e=0),t&&"function"==typeof t.schedule||(t=nT),new V(function(n){return n.add(t.schedule(oN,e,{subscriber:n,counter:0,period:e})),n})}(0,lR).pipe(kR(a._stopScrollTimers)).subscribe(function(){var e=a._scrollNode,t=a.autoScrollStep;1===a._verticalScrollDirection?IN(e,-t):2===a._verticalScrollDirection&&IN(e,t),1===a._horizontalScrollDirection?RN(e,-t):2===a._horizontalScrollDirection&&RN(e,t)})},this.element=hT(t),this._document=i,this.withScrollableParents([this.element]),n.registerDropContainer(this),this._parentPositions=new gN(i,o)}return m(e,[{key:"dispose",value:function(){this._stopScrolling(),this._stopScrollTimers.complete(),this._viewportScrollSubscription.unsubscribe(),this.beforeStarted.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this.sorted.complete(),this._activeSiblings.clear(),this._scrollNode=null,this._parentPositions.clear(),this._dragDropRegistry.removeDropContainer(this)}},{key:"isDragging",value:function(){return this._isDragging}},{key:"start",value:function(){this._draggingStarted(),this._notifyReceivingSiblings()}},{key:"enter",value:function(e,t,n,i){var r;this._draggingStarted(),null==i?-1===(r=this.sortingDisabled?this._draggables.indexOf(e):-1)&&(r=this._getItemIndexFromPointerPosition(e,t,n)):r=i;var o=this._activeDraggables,a=o.indexOf(e),s=e.getPlaceholderElement(),l=o[r];if(l===e&&(l=o[r+1]),a>-1&&o.splice(a,1),l&&!this._dragDropRegistry.isDragging(l)){var u=l.getRootElement();u.parentElement.insertBefore(s,u),o.splice(r,0,e)}else if(this._shouldEnterAsFirstChild(t,n)){var c=o[0].getRootElement();c.parentNode.insertBefore(s,c),o.unshift(e)}else hT(this.element).appendChild(s),o.push(e);s.style.transform="",this._cacheItemPositions(),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:e,container:this,currentIndex:this.getItemIndex(e)})}},{key:"exit",value:function(e){this._reset(),this.exited.next({item:e,container:this})}},{key:"drop",value:function(e,t,n,i,r,o){this._reset(),this.dropped.next({item:e,currentIndex:t,previousIndex:n,container:this,previousContainer:i,isPointerOverContainer:r,distance:o})}},{key:"withItems",value:function(e){var t=this,n=this._draggables;return this._draggables=e,e.forEach(function(e){return e._withDropContainer(t)}),this.isDragging()&&(n.filter(function(e){return e.isDragging()}).every(function(t){return-1===e.indexOf(t)})?this._reset():this._cacheItems()),this}},{key:"withDirection",value:function(e){return this._direction=e,this}},{key:"connectedTo",value:function(e){return this._siblings=e.slice(),this}},{key:"withOrientation",value:function(e){return this._orientation=e,this}},{key:"withScrollableParents",value:function(e){var t=hT(this.element);return this._scrollableElements=-1===e.indexOf(t)?[t].concat(y(e)):e.slice(),this}},{key:"getScrollableParents",value:function(){return this._scrollableElements}},{key:"getItemIndex",value:function(e){return this._isDragging?TN("horizontal"===this._orientation&&"rtl"===this._direction?this._itemPositions.slice().reverse():this._itemPositions,function(t){return t.drag===e}):this._draggables.indexOf(e)}},{key:"isReceiving",value:function(){return this._activeSiblings.size>0}},{key:"_sortItem",value:function(e,t,n,i){if(!this.sortingDisabled&&this._clientRect&&pN(this._clientRect,.05,t,n)){var r=this._itemPositions,o=this._getItemIndexFromPointerPosition(e,t,n,i);if(!(-1===o&&r.length>0)){var a="horizontal"===this._orientation,s=TN(r,function(t){return t.drag===e}),l=r[o],u=l.clientRect,c=s>o?1:-1,d=this._getItemOffsetPx(r[s].clientRect,u,c),h=this._getSiblingOffsetPx(s,r,c),f=r.slice();!function(e,t,n){var i=ON(t,e.length-1),r=ON(n,e.length-1);if(i!==r){for(var o=e[i],a=r<i?-1:1,s=i;s!==r;s+=a)e[s]=e[s+a];e[r]=o}}(r,s,o),this.sorted.next({previousIndex:s,currentIndex:o,container:this,item:e}),r.forEach(function(t,n){if(f[n]!==t){var i=t.drag===e,r=i?d:h,o=i?e.getPlaceholderElement():t.drag.getRootElement();t.offset+=r,a?(o.style.transform="translate3d(".concat(Math.round(t.offset),"px, 0, 0)"),fN(t.clientRect,0,r)):(o.style.transform="translate3d(0, ".concat(Math.round(t.offset),"px, 0)"),fN(t.clientRect,r,0))}}),this._previousSwap.overlaps=hN(u,t,n),this._previousSwap.drag=l.drag,this._previousSwap.delta=a?i.x:i.y}}}},{key:"_startScrollingIfNecessary",value:function(e,t){var n=this;if(!this.autoScrollDisabled){var i,r=0,o=0;if(this._parentPositions.positions.forEach(function(a,s){var l;s!==n._document&&a.clientRect&&!i&&pN(a.clientRect,.05,e,t)&&(l=f(function(e,t,n,i){var r=LN(t,i),o=FN(t,n),a=0,s=0;if(r){var l=e.scrollTop;1===r?l>0&&(a=1):e.scrollHeight-l>e.clientHeight&&(a=2)}if(o){var u=e.scrollLeft;1===o?u>0&&(s=1):e.scrollWidth-u>e.clientWidth&&(s=2)}return[a,s]}(s,a.clientRect,e,t),2),r=l[0],o=l[1],(r||o)&&(i=s))}),!r&&!o){var a=this._viewportRuler.getViewportSize(),s=a.width,l=a.height,u={width:s,height:l,top:0,right:s,bottom:l,left:0};r=LN(u,t),o=FN(u,e),i=window}!i||r===this._verticalScrollDirection&&o===this._horizontalScrollDirection&&i===this._scrollNode||(this._verticalScrollDirection=r,this._horizontalScrollDirection=o,this._scrollNode=i,(r||o)&&i?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}}},{key:"_stopScrolling",value:function(){this._stopScrollTimers.next()}},{key:"_draggingStarted",value:function(){var e=hT(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=e.msScrollSnapType||e.scrollSnapType||"",e.scrollSnapType=e.msScrollSnapType="none",this._cacheItems(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}},{key:"_cacheParentPositions",value:function(){var e=hT(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(e).clientRect}},{key:"_cacheItemPositions",value:function(){var e="horizontal"===this._orientation;this._itemPositions=this._activeDraggables.map(function(e){var t=e.getVisibleElement();return{drag:e,offset:0,clientRect:dN(t)}}).sort(function(t,n){return e?t.clientRect.left-n.clientRect.left:t.clientRect.top-n.clientRect.top})}},{key:"_reset",value:function(){var e=this;this._isDragging=!1;var t=hT(this.element).style;t.scrollSnapType=t.msScrollSnapType=this._initialScrollSnap,this._activeDraggables.forEach(function(e){var t=e.getRootElement();t&&(t.style.transform="")}),this._siblings.forEach(function(t){return t._stopReceiving(e)}),this._activeDraggables=[],this._itemPositions=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1,this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}},{key:"_getSiblingOffsetPx",value:function(e,t,n){var i="horizontal"===this._orientation,r=t[e].clientRect,o=t[e+-1*n],a=r[i?"width":"height"]*n;if(o){var s=i?"left":"top",l=i?"right":"bottom";-1===n?a-=o.clientRect[s]-r[l]:a+=r[s]-o.clientRect[l]}return a}},{key:"_getItemOffsetPx",value:function(e,t,n){var i="horizontal"===this._orientation,r=i?t.left-e.left:t.top-e.top;return-1===n&&(r+=i?t.width-e.width:t.height-e.height),r}},{key:"_shouldEnterAsFirstChild",value:function(e,t){if(!this._activeDraggables.length)return!1;var n=this._itemPositions,i="horizontal"===this._orientation;if(n[0].drag!==this._activeDraggables[0]){var r=n[n.length-1].clientRect;return i?e>=r.right:t>=r.bottom}var o=n[0].clientRect;return i?e<=o.left:t<=o.top}},{key:"_getItemIndexFromPointerPosition",value:function(e,t,n,i){var r=this,o="horizontal"===this._orientation,a=TN(this._itemPositions,function(a,s,l){var u=a.drag,c=a.clientRect;if(u===e)return l.length<2;if(i){var d=o?i.x:i.y;if(u===r._previousSwap.drag&&r._previousSwap.overlaps&&d===r._previousSwap.delta)return!1}return o?t>=Math.floor(c.left)&&t<Math.floor(c.right):n>=Math.floor(c.top)&&n<Math.floor(c.bottom)});return-1!==a&&this.sortPredicate(a,e,this)?a:-1}},{key:"_cacheItems",value:function(){this._activeDraggables=this._draggables.slice(),this._cacheItemPositions(),this._cacheParentPositions()}},{key:"_isOverContainer",value:function(e,t){return null!=this._clientRect&&hN(this._clientRect,e,t)}},{key:"_getSiblingContainerFromPosition",value:function(e,t,n){return this._siblings.find(function(i){return i._canReceive(e,t,n)})}},{key:"_canReceive",value:function(e,t,n){if(!this._clientRect||!hN(this._clientRect,t,n)||!this.enterPredicate(e,this))return!1;var i=this._getShadowRoot().elementFromPoint(t,n);if(!i)return!1;var r=hT(this.element);return i===r||r.contains(i)}},{key:"_startReceiving",value:function(e,t){var n=this,i=this._activeSiblings;!i.has(e)&&t.every(function(e){return n.enterPredicate(e,n)||n._draggables.indexOf(e)>-1})&&(i.add(e),this._cacheParentPositions(),this._listenToScrollEvents())}},{key:"_stopReceiving",value:function(e){this._activeSiblings.delete(e),this._viewportScrollSubscription.unsubscribe()}},{key:"_listenToScrollEvents",value:function(){var e=this;this._viewportScrollSubscription=this._dragDropRegistry.scroll.subscribe(function(t){if(e.isDragging()){var n=e._parentPositions.handleScroll(t);n&&(e._itemPositions.forEach(function(e){fN(e.clientRect,n.top,n.left)}),e._itemPositions.forEach(function(t){var n=t.drag;e._dragDropRegistry.isDragging(n)&&n._sortFromLastPointerPosition()}))}else e.isReceiving()&&e._cacheParentPositions()})}},{key:"_getShadowRoot",value:function(){if(!this._cachedShadowRoot){var e=wT(hT(this.element));this._cachedShadowRoot=e||this._document}return this._cachedShadowRoot}},{key:"_notifyReceivingSiblings",value:function(){var e=this,t=this._activeDraggables.filter(function(e){return e.isDragging()});this._siblings.forEach(function(n){return n._startReceiving(e,t)})}}]),e}();function TN(e,t){for(var n=0;n<e.length;n++)if(t(e[n],n,e))return n;return-1}function IN(e,t){e===window?e.scrollBy(0,t):e.scrollTop+=t}function RN(e,t){e===window?e.scrollBy(t,0):e.scrollLeft+=t}function LN(e,t){var n=e.top,i=e.bottom,r=.05*e.height;return t>=n-r&&t<=n+r?1:t>=i-r&&t<=i+r?2:0}function FN(e,t){var n=e.left,i=e.right,r=.05*e.width;return t>=n-r&&t<=n+r?1:t>=i-r&&t<=i+r?2:0}var BN,VN,zN,NN=bT({passive:!1,capture:!0}),HN=((BN=function(){function e(t,n){var i=this;A(this,e),this._ngZone=t,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=[],this._globalListeners=new Map,this._draggingPredicate=function(e){return e.isDragging()},this.pointerMove=new W,this.pointerUp=new W,this.scroll=new W,this._preventDefaultWhileDragging=function(e){i._activeDragInstances.length>0&&e.preventDefault()},this._persistentTouchmoveListener=function(e){i._activeDragInstances.length>0&&(i._activeDragInstances.some(i._draggingPredicate)&&e.preventDefault(),i.pointerMove.next(e))},this._document=n}return m(e,[{key:"registerDropContainer",value:function(e){this._dropInstances.has(e)||this._dropInstances.add(e)}},{key:"registerDragItem",value:function(e){var t=this;this._dragInstances.add(e),1===this._dragInstances.size&&this._ngZone.runOutsideAngular(function(){t._document.addEventListener("touchmove",t._persistentTouchmoveListener,NN)})}},{key:"removeDropContainer",value:function(e){this._dropInstances.delete(e)}},{key:"removeDragItem",value:function(e){this._dragInstances.delete(e),this.stopDragging(e),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._persistentTouchmoveListener,NN)}},{key:"startDragging",value:function(e,t){var n=this;if(!(this._activeDragInstances.indexOf(e)>-1)&&(this._activeDragInstances.push(e),1===this._activeDragInstances.length)){var i=t.type.startsWith("touch");this._globalListeners.set(i?"touchend":"mouseup",{handler:function(e){return n.pointerUp.next(e)},options:!0}).set("scroll",{handler:function(e){return n.scroll.next(e)},options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:NN}),i||this._globalListeners.set("mousemove",{handler:function(e){return n.pointerMove.next(e)},options:NN}),this._ngZone.runOutsideAngular(function(){n._globalListeners.forEach(function(e,t){n._document.addEventListener(t,e.handler,e.options)})})}}},{key:"stopDragging",value:function(e){var t=this._activeDragInstances.indexOf(e);t>-1&&(this._activeDragInstances.splice(t,1),0===this._activeDragInstances.length&&this._clearGlobalListeners())}},{key:"isDragging",value:function(e){return this._activeDragInstances.indexOf(e)>-1}},{key:"ngOnDestroy",value:function(){var e=this;this._dragInstances.forEach(function(t){return e.removeDragItem(t)}),this._dropInstances.forEach(function(t){return e.removeDropContainer(t)}),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}},{key:"_clearGlobalListeners",value:function(){var e=this;this._globalListeners.forEach(function(t,n){e._document.removeEventListener(n,t.handler,t.options)}),this._globalListeners.clear()}}]),e}()).\u0275fac=function(e){return new(e||BN)(Ri(Ac),Ri(od))},BN.\u0275prov=Re({factory:function(){return new BN(Ri(Ac),Ri(od))},token:BN,providedIn:"root"}),BN),jN={dragStartThreshold:5,pointerDirectionChangeThreshold:5},UN=((VN=function(){function e(t,n,i,r){A(this,e),this._document=t,this._ngZone=n,this._viewportRuler=i,this._dragDropRegistry=r}return m(e,[{key:"createDrag",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:jN;return new xN(e,t,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}},{key:"createDropList",value:function(e){return new MN(e,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}]),e}()).\u0275fac=function(e){return new(e||VN)(Ri(od),Ri(Ac),Ri(MR),Ri(HN))},VN.\u0275prov=Re({factory:function(){return new VN(Ri(od),Ri(Ac),Ri(MR),Ri(HN))},token:VN,providedIn:"root"}),VN),WN=new mi("CDK_DRAG_PARENT"),GN=new mi("CDK_DRAG_CONFIG"),qN=new mi("CdkDropList"),YN=new mi("CdkDragHandle"),ZN=new mi("CdkDragPlaceholder"),QN=new mi("CdkDragPreview"),XN=((zN=function(){function e(t,n,i,r,o,a,s,l,u,c,d){var h=this;A(this,e),this.element=t,this.dropContainer=n,this._ngZone=r,this._viewContainerRef=o,this._dir=s,this._changeDetectorRef=u,this._selfHandle=c,this._parentDrag=d,this._destroyed=new W,this.started=new Fu,this.released=new Fu,this.ended=new Fu,this.entered=new Fu,this.exited=new Fu,this.dropped=new Fu,this.moved=new V(function(e){var t=h._dragRef.moved.pipe(Y(function(e){return{source:h,pointerPosition:e.pointerPosition,event:e.event,delta:e.delta,distance:e.distance}})).subscribe(e);return function(){t.unsubscribe()}}),this._dragRef=l.createDrag(t,{dragStartThreshold:a&&null!=a.dragStartThreshold?a.dragStartThreshold:5,pointerDirectionChangeThreshold:a&&null!=a.pointerDirectionChangeThreshold?a.pointerDirectionChangeThreshold:5,zIndex:null==a?void 0:a.zIndex}),this._dragRef.data=this,e._dragInstances.push(this),a&&this._assignDefaults(a),n&&(this._dragRef._withDropContainer(n._dropListRef),n.addItem(this)),this._syncInputs(this._dragRef),this._handleEvents(this._dragRef)}return m(e,[{key:"disabled",get:function(){return this._disabled||this.dropContainer&&this.dropContainer.disabled},set:function(e){this._disabled=lT(e),this._dragRef.disabled=this._disabled}},{key:"getPlaceholderElement",value:function(){return this._dragRef.getPlaceholderElement()}},{key:"getRootElement",value:function(){return this._dragRef.getRootElement()}},{key:"reset",value:function(){this._dragRef.reset()}},{key:"getFreeDragPosition",value:function(){return this._dragRef.getFreeDragPosition()}},{key:"ngAfterViewInit",value:function(){var e=this;this._ngZone.onStable.pipe(Hb(1),kR(this._destroyed)).subscribe(function(){e._updateRootElement(),e._handles.changes.pipe(Wb(e._handles),uw(function(t){var n=t.filter(function(t){return t._parentDrag===e}).map(function(e){return e.element});e._selfHandle&&e.rootElementSelector&&n.push(e.element),e._dragRef.withHandles(n)}),Bb(function(e){return he.apply(void 0,y(e.map(function(e){return e._stateChanges.pipe(Wb(e))})))}),kR(e._destroyed)).subscribe(function(t){var n=e._dragRef,i=t.element.nativeElement;t.disabled?n.disableHandle(i):n.enableHandle(i)}),e.freeDragPosition&&e._dragRef.setFreeDragPosition(e.freeDragPosition)})}},{key:"ngOnChanges",value:function(e){var t=e.rootElementSelector,n=e.freeDragPosition;t&&!t.firstChange&&this._updateRootElement(),n&&!n.firstChange&&this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)}},{key:"ngOnDestroy",value:function(){this.dropContainer&&this.dropContainer.removeItem(this);var t=e._dragInstances.indexOf(this);t>-1&&e._dragInstances.splice(t,1),this._destroyed.next(),this._destroyed.complete(),this._dragRef.dispose()}},{key:"_updateRootElement",value:function(){var e=this.element.nativeElement,t=this.rootElementSelector?KN(e,this.rootElementSelector):e;this._dragRef.withRootElement(t||e)}},{key:"_getBoundaryElement",value:function(){var e=this.boundaryElement;return e?"string"==typeof e?KN(this.element.nativeElement,e):hT(e):null}},{key:"_syncInputs",value:function(t){var n=this;t.beforeStarted.subscribe(function(){if(!t.isDragging()){var e=n._dir,i=n.dragStartDelay,r=n._placeholderTemplate?{template:n._placeholderTemplate.templateRef,context:n._placeholderTemplate.data,viewContainer:n._viewContainerRef}:null,o=n._previewTemplate?{template:n._previewTemplate.templateRef,context:n._previewTemplate.data,matchSize:n._previewTemplate.matchSize,viewContainer:n._viewContainerRef}:null;t.disabled=n.disabled,t.lockAxis=n.lockAxis,t.dragStartDelay="object"==typeof i&&i?i:uT(i),t.constrainPosition=n.constrainPosition,t.previewClass=n.previewClass,t.withBoundaryElement(n._getBoundaryElement()).withPlaceholderTemplate(r).withPreviewTemplate(o),e&&t.withDirection(e.value)}}),t.beforeStarted.pipe(Hb(1)).subscribe(function(){var i,r;if(n._parentDrag)t.withParent(n._parentDrag._dragRef);else for(var o=n.element.nativeElement.parentElement;o;){if(null===(i=o.classList)||void 0===i?void 0:i.contains("cdk-drag")){t.withParent((null===(r=e._dragInstances.find(function(e){return e.element.nativeElement===o}))||void 0===r?void 0:r._dragRef)||null);break}o=o.parentElement}})}},{key:"_handleEvents",value:function(e){var t=this;e.started.subscribe(function(){t.started.emit({source:t}),t._changeDetectorRef.markForCheck()}),e.released.subscribe(function(){t.released.emit({source:t})}),e.ended.subscribe(function(e){t.ended.emit({source:t,distance:e.distance}),t._changeDetectorRef.markForCheck()}),e.entered.subscribe(function(e){t.entered.emit({container:e.container.data,item:t,currentIndex:e.currentIndex})}),e.exited.subscribe(function(e){t.exited.emit({container:e.container.data,item:t})}),e.dropped.subscribe(function(e){t.dropped.emit({previousIndex:e.previousIndex,currentIndex:e.currentIndex,previousContainer:e.previousContainer.data,container:e.container.data,isPointerOverContainer:e.isPointerOverContainer,item:t,distance:e.distance})})}},{key:"_assignDefaults",value:function(e){var t=e.lockAxis,n=e.dragStartDelay,i=e.constrainPosition,r=e.previewClass,o=e.boundaryElement,a=e.draggingDisabled,s=e.rootElementSelector;this.disabled=null!=a&&a,this.dragStartDelay=n||0,t&&(this.lockAxis=t),i&&(this.constrainPosition=i),r&&(this.previewClass=r),o&&(this.boundaryElement=o),s&&(this.rootElementSelector=s)}}]),e}()).\u0275fac=function(e){return new(e||zN)(rs(Cl),rs(qN,12),rs(od),rs(Ac),rs(uu),rs(GN,8),rs(dI,8),rs(UN),rs(Kl),rs(YN,10),rs(WN,12))},zN.\u0275dir=bt({type:zN,selectors:[["","cdkDrag",""]],contentQueries:function(e,t,n){var i;1&e&&(Xu(n,QN,1),Xu(n,ZN,1),Xu(n,YN,1)),2&e&&(Zu(i=Ku())&&(t._previewTemplate=i.first),Zu(i=Ku())&&(t._placeholderTemplate=i.first),Zu(i=Ku())&&(t._handles=i))},hostAttrs:[1,"cdk-drag"],hostVars:4,hostBindings:function(e,t){2&e&&Fs("cdk-drag-disabled",t.disabled)("cdk-drag-dragging",t._dragRef.isDragging())},inputs:{disabled:["cdkDragDisabled","disabled"],dragStartDelay:["cdkDragStartDelay","dragStartDelay"],lockAxis:["cdkDragLockAxis","lockAxis"],constrainPosition:["cdkDragConstrainPosition","constrainPosition"],previewClass:["cdkDragPreviewClass","previewClass"],boundaryElement:["cdkDragBoundary","boundaryElement"],rootElementSelector:["cdkDragRootElement","rootElementSelector"],data:["cdkDragData","data"],freeDragPosition:["cdkDragFreeDragPosition","freeDragPosition"]},outputs:{started:"cdkDragStarted",released:"cdkDragReleased",ended:"cdkDragEnded",entered:"cdkDragEntered",exited:"cdkDragExited",dropped:"cdkDragDropped",moved:"cdkDragMoved"},exportAs:["cdkDrag"],features:[yl([{provide:WN,useExisting:zN}]),Mt]}),zN._dragInstances=[],zN);function KN(e,t){for(var n=e.parentElement;n;){if(n.matches?n.matches(t):n.msMatchesSelector(t))return n;n=n.parentElement}return null}var JN,$N=((JN=function e(){A(this,e)}).\u0275fac=function(e){return new(e||JN)},JN.\u0275mod=mt({type:JN}),JN.\u0275inj=Fe({providers:[UN],imports:[TR]}),JN),eH=function(e,t,n){if(0===n||0===t)return"";var i=e*t;return i<(n=Math.max(n,0))&&Math.min(i+t,n),"".concat(e+1," / ").concat(Math.ceil(n/t))};var tH,nH,iH,rH,oH=((rH=function e(){A(this,e)}).\u0275fac=function(e){return new(e||rH)},rH.\u0275mod=mt({type:rH}),rH.\u0275inj=Fe({providers:[{provide:$V,useValue:(iH=new $V,iH.itemsPerPageLabel="Afficher:",iH.nextPageLabel="Page suivante",iH.previousPageLabel="Page pr\xe9c\xe9dente",iH.getRangeLabel=eH,iH)}],imports:[[sz,tV,PB,zF,qI,$N,dz,ZF,KB,az,QF,$B,DB,rN,Rz,cz,EV,uz,mF,Iz,oz,Mz,vF,KF],sz,tV,PB,zF,qI,$N,dz,ZF,KB,az,QF,$B,DB,rN,Rz,cz,EV,uz,mF,Iz,oz,Mz,vF,KF]}),rH),aH=((nH=function e(t,n,i){A(this,e),this.translate=t,this.data=n,this.dialogRef=i,null===this.data.mode&&(this.data.mode=""),null===this.data.msg&&(this.data.msg="")}).\u0275fac=function(e){return new(e||nH)(rs(pE),rs(mB),rs(sB))},nH.\u0275cmp=ft({type:nH,selectors:[["ng-component"]],decls:10,vars:12,consts:[["mat-dialog-title",""],["mat-dialog-content","",3,"innerHTML"],["mat-dialog-actions",""],["mat-button","",1,"actions","btn","red",3,"click"]],template:function(e,t){1&e&&(ss(0,"div"),ss(1,"h1",0),Qs(2),Du(3,"translate"),ls(),us(4,"div",1),Du(5,"translate"),ss(6,"div",2),ss(7,"button",3),ms("click",function(){return t.dialogRef.close()}),Qs(8),Du(9,"translate"),ls(),ls(),ls()),2&e&&(tl("modalContent ",t.data.mode,""),xo(2),Xs(Ou(3,6,t.data.title)),xo(2),os("innerHTML",Ou(5,8,t.data.msg),Ar),xo(4),Xs(Ou(9,10,"lang.ok")))},directives:[AB,CB,SB,YF],pipes:[gE],styles:[".modalContent[_ngcontent-%COMP%]{position:relative}.mat-dialog-content[_ngcontent-%COMP%], .mat-dialog-title[_ngcontent-%COMP%]{text-align:center!important;color:#666}.mat-dialog-title[_ngcontent-%COMP%]{font-weight:700}.actions[_ngcontent-%COMP%]{width:100%;margin:10px}.close[_ngcontent-%COMP%]{position:absolute;top:-15px;right:-15px;width:40px;height:40px;font-size:20px;color:#666}.warning[_ngcontent-%COMP%]   .actions[_ngcontent-%COMP%], .warning[_ngcontent-%COMP%]   .mat-dialog-title[_ngcontent-%COMP%]{color:#e74c3c}"]}),nH),sH=((tH=function(){function e(t,n,i,r,o,a,s,l,u){A(this,e),this.translate=t,this.http=n,this.router=i,this.signaturesService=r,this.cookieService=o,this.authService=a,this.localStorage=s,this.dialog=l,this.menu=u}return m(e,[{key:"canActivate",value:function(e,t){var n=this;if("login"===e.url.join("/"))return this.authService.isAuth()?(this.router.navigate(["/home"]),!1):(this.http.get("../rest/authenticationInformations").pipe(Y(function(e){n.authService.authMode=e.connection,n.authService.changeKey=e.changeKey,n.authService.coreUrl=e.coreUrl,n.localStorage.setAppSession(e.instanceId)})).subscribe(),!0);if(!this.authService.authFailed){this.menu.enable(!0,"left-menu"),this.menu.enable(!1,"right-menu");var i=this.authService.getToken();if(null===i||this.authService.authFailed)return this.http.get("../rest/authenticationInformations").pipe(Y(function(e){return n.authService.authMode=e.connection,n.authService.changeKey=e.changeKey,n.authService.coreUrl=e.coreUrl,n.localStorage.setAppSession(e.instanceId),null!==(i=n.authService.getToken())?(n.authService.user=JSON.parse(atob(i.split(".")[1])).user,n.translate.use(n.authService.user.preferences.lang),n.cookieService.set("maarchParapheurLang",n.authService.user.preferences.lang),n.setData(),n.authService.changeKey&&n.dialog.open(aH,{autoFocus:!1,disableClose:!0,data:{mode:"warning",title:"lang.warnPrivateKeyTitle",msg:"lang.warnPrivateKey"}}),!0):(n.authService.setCachedUrl(t.url.replace(/^\//g,"")),n.authService.logout(),!1)}));if(void 0===this.authService.user.id){var r=JSON.parse(atob(i.split(".")[1]));this.authService.user=r.user,this.authService.authMode=r.connection,this.translate.use(this.authService.user.preferences.lang),this.cookieService.set("maarchParapheurLang",this.authService.user.preferences.lang),this.setData()}return!0}}},{key:"setData",value:function(){var e=this;0===this.authService.signatureRoles.length&&this.http.get("../rest/signatureModes").subscribe(function(t){e.authService.signatureRoles=[{id:"visa",type:"visa",color:"#135F7F"}],e.authService.signatureRoles=e.authService.signatureRoles.concat(t.map(function(e){return Object.assign(Object.assign({},e),{type:"sign"})}))}),0===this.signaturesService.signaturesList.length&&this.http.get("../rest/users/"+this.authService.user.id+"/signatures").subscribe(function(t){e.signaturesService.signaturesList=t.signatures}),void 0===this.authService.user.picture&&this.http.get("../rest/users/"+this.authService.user.id+"/picture").subscribe(function(t){e.authService.user.picture=t.picture})}}]),e}()).\u0275fac=function(e){return new(e||tH)(Ri(pE),Ri(lb),Ri(jk),Ri(PE),Ri(IM),Ri(DE),Ri(EE),Ri(kB),Ri(uP))},tH.\u0275prov=Re({token:tH,factory:tH.\u0275fac,providedIn:"root"}),tH);function lH(e,t){if(1&e&&(ss(0,"ion-col"),ss(1,"ion-button",7),ss(2,"div",8),us(3,"ion-icon",9),ss(4,"ion-label",10),Qs(5),Du(6,"translate"),ls(),ss(7,"ion-note",11),Qs(8),Du(9,"translate"),ls(),ls(),ls(),ls()),2&e){var n=t.$implicit;xo(1),os("routerLink",n.route),xo(2),os("name",n.icon),xo(2),Xs(Ou(6,4,"lang."+n.id)),xo(3),Ks(" ",Ou(9,6,"lang."+n.id+"Desc"),"")}}var uH,cH=function(e){return[e]},dH=((uH=function(){function e(t,n,i){A(this,e),this.signaturesService=t,this.authService=n,this.menu=i}return m(e,[{key:"ngOnInit",value:function(){this.menu.enable(!1,"right-menu")}}]),e}()).\u0275fac=function(e){return new(e||uH)(rs(PE),rs(DE),rs(uP))},uH.\u0275cmp=ft({type:uH,selectors:[["app-administration"]],decls:12,vars:8,consts:[[3,"translucent"],["color","primary"],["slot","start"],["menu","left-menu"],["mainContent",""],[3,"ngClass"],[4,"ngFor","ngForOf"],["expand","block","size","large","fill","outline","color","secondary",2,"height","200px",3,"routerLink"],[1,"admin-content"],["color","primary",2,"font-size","70px",3,"name"],["color","primary",2,"white-space","normal"],[2,"font-size","8px","white-space","normal","padding","10px"]],template:function(e,t){1&e&&(ss(0,"ion-header",0),ss(1,"ion-toolbar",1),ss(2,"ion-buttons",2),us(3,"ion-menu-button",3),ls(),ss(4,"ion-title"),Qs(5),Du(6,"translate"),ls(),ls(),ls(),ss(7,"ion-content",null,4),ss(9,"ion-grid"),ss(10,"ion-row",5),ns(11,lH,10,8,"ion-col",6),ls(),ls(),ls()),2&e&&(os("translucent",!0),xo(5),Xs(Ou(6,4,"lang.administration")),xo(5),os("ngClass",Au(6,cH,t.signaturesService.mobileMode?"repeatRowsMobile":"repeatRows")),xo(1),os("ngForOf",t.authService.user.administrativePrivileges))},directives:[XC,DS,LC,cS,PS,UC,QC,yS,fh,gh,jC,RC,$S,Uk,KC,aS,hS],pipes:[gE],styles:[".header[_ngcontent-%COMP%]{background:#135f7f;height:95px;color:#fff;padding-left:10px;font-size:25px}.header[_ngcontent-%COMP%], .header-title[_ngcontent-%COMP%]{display:flex;align-items:center}.header-title[_ngcontent-%COMP%]{flex:1;white-space:pre;overflow:hidden;text-overflow:ellipsis}.header[_ngcontent-%COMP%]   b[_ngcontent-%COMP%]{color:#f99830}.header[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis}.mainView[_ngcontent-%COMP%]{display:flex;flex-direction:column}.container[_ngcontent-%COMP%]{flex:1;overflow:auto}.loader[_ngcontent-%COMP%]{position:absolute;z-index:2;display:flex;background:hsla(0,0%,100%,.8);width:100%;height:100%;justify-content:center;align-items:center;top:0;margin:0;padding:0}.admin-form[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:20px}.actions-form[_ngcontent-%COMP%]{display:flex;justify-content:center}@media (max-width:360px){.actions-form[_ngcontent-%COMP%]{flex-direction:column}}.actions-form[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin:10px;width:150px}@media (max-width:360px){.actions-form[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{width:100%}}.noResult[_ngcontent-%COMP%]{padding:10px;text-align:center;opacity:.5}.emptyTable[_ngcontent-%COMP%]{height:auto}.addButton[_ngcontent-%COMP%]{padding:10px;display:flex;justify-content:flex-end}",".container[_ngcontent-%COMP%]{flex:1;overflow:auto}.container[_ngcontent-%COMP%]   .admin-item[_ngcontent-%COMP%]{padding-top:20px;padding-bottom:20px;text-align:center;width:100%;display:inline-block}@media (min-width:768px){.container[_ngcontent-%COMP%]   .admin-item[_ngcontent-%COMP%]{width:50%}}@media (min-width:992px){.container[_ngcontent-%COMP%]   .admin-item[_ngcontent-%COMP%]{width:33%}}.container[_ngcontent-%COMP%]   .admin-item[_ngcontent-%COMP%]   .mat-stroked-button[_ngcontent-%COMP%]{border-color:#f99830;padding:10px;width:90%;height:160px}.container[_ngcontent-%COMP%]   .admin-item[_ngcontent-%COMP%]   .mat-stroked-button[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{height:auto;width:auto;font-size:50px}.container[_ngcontent-%COMP%]   .admin-item[_ngcontent-%COMP%]   .mat-stroked-button[_ngcontent-%COMP%]    .mat-button-wrapper{display:flex;flex-direction:column}.admin-desc[_ngcontent-%COMP%]{white-space:normal;font-size:10px;line-height:15px;text-align:justify;color:grey;height:60px;overflow:auto}.admin-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center}.repeatRows[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(4,1fr)}.repeatRowsMobile[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));-ms-grid-row-align:10px}"]}),uH);function hH(e,t){if(1&e&&(ss(0,"div",15),Qs(1),Du(2,"translate"),ls()),2&e){var n=ks().$implicit;os("mat-sort-header",n),xo(1),Ks(" ",Ou(2,2,"lang."+n)," ")}}function fH(e,t){if(1&e&&(cs(0),ns(1,hH,3,4,"div",14),ds()),2&e){var n=t.$implicit;xo(1),os("ngIf","actions"!==n)}}function pH(e,t){if(1&e){var n=fs();ss(0,"div",16),ss(1,"ion-searchbar",17),ms("ionChange",function(e){return nn(n),ks().applyFilter(e.detail.value)}),Du(2,"translate"),ls(),ls()}2&e&&(xo(1),os("placeholder",Ou(2,1,"lang.filter")))}function gH(e,t){if(1&e&&(ss(0,"div",16),Qs(1),ls()),2&e){var n=t.$implicit,i=ks().$implicit;xo(1),Ks(" ",i[n]," ")}}function vH(e,t){if(1&e){var n=fs();ss(0,"ion-item",7),ss(1,"ion-label",18),ns(2,gH,2,1,"div",19),ls(),ss(3,"ion-button",20),ms("click",function(e){nn(n);var i=t.$implicit,r=ks();return e.stopPropagation(),r.delete(i)}),Du(4,"translate"),us(5,"ion-icon",21),ls(),ls()}if(2&e){var i=t.$implicit,r=ks();xo(1),Ps("routerLink","/administration/users/",i.id,""),xo(1),os("ngForOf",r.displayedColumns),xo(1),Ss("title",Ou(4,4,"lang.delete")),os("disabled",i.id===r.authService.user.id)}}var mH,yH=((mH=function(){function e(t,n,i,r,o,a,s,l){A(this,e),this.http=t,this.translate=n,this.latinisePipe=i,this.dialog=r,this.signaturesService=o,this.notificationService=a,this.authService=s,this.alertController=l,this.userList=[],this.loading=!0,this.displayedColumns=this.signaturesService.mobileMode?["firstname","lastname","email"]:["firstname","lastname","email","actions"]}return m(e,[{key:"applyFilter",value:function(e){var t=this;e=this.latinisePipe.transform(e.toLowerCase()),this.sortedData=this.userList.filter(function(n){var i=!1;return t.displayedColumns.forEach(function(r){n[r]&&t.latinisePipe.transform(n[r].toLowerCase()).includes(e)&&(i=!0)}),i})}},{key:"ionViewWillEnter",value:function(){var e=this;this.http.get("../rest/users?mode=all").pipe(Y(function(e){return e.users}),hw(function(){return e.loading=!1})).subscribe({next:function(t){e.userList=t,e.sortedData=e.userList.slice()}})}},{key:"delete",value:function(e){return t=this,i=regeneratorRuntime.mark(function t(){var n,i=this;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.alertController.create({header:this.translate.instant("lang.confirmMsg"),buttons:[{text:this.translate.instant("lang.no"),role:"cancel",cssClass:"secondary",handler:function(){}},{text:this.translate.instant("lang.yes"),handler:function(){i.http.delete("../rest/users/"+e.id).pipe(hw(function(){return i.loading=!1})).subscribe({next:function(t){var n=i.userList.findIndex(function(t){return t.id===e.id});i.userList.splice(n,1),i.sortedData=i.userList.slice(),i.notificationService.success("lang.userDeleted")},error:function(e){i.notificationService.handleErrors(e)}})}}]});case 2:return n=t.sent,t.next=5,n.present();case 5:case"end":return t.stop()}},t,this)}),new((n=void 0)||(n=Promise))(function(e,r){function o(e){try{s(i.next(e))}catch(t){r(t)}}function a(e){try{s(i.throw(e))}catch(t){r(t)}}function s(t){var i;t.done?e(t.value):(i=t.value,i instanceof n?i:new n(function(e){e(i)})).then(o,a)}s((i=i.apply(t,[])).next())});var t,n,i}},{key:"sortData",value:function(e){var t=this.userList.slice();this.sortedData=e.active&&""!==e.direction?t.sort(function(t,n){return function(e,t,n){return(e<t?-1:1)*(n?1:-1)}(t[e.active],n[e.active],"asc"===e.direction)}):t}}]),e}()).\u0275fac=function(e){return new(e||mH)(rs(lb),rs(pE),rs(QM),rs(kB),rs(PE),rs(yE),rs(DE),rs(sP))},mH.\u0275cmp=ft({type:mH,selectors:[["app-administration-users-list"]],decls:28,vars:18,consts:[[3,"translucent"],["color","primary"],["slot","start"],["menu","left-menu"],["fill","outline","shape","round","routerLink","/administration/users/new"],["slot","end","color","secondary"],["mainContent",""],[2,"display","flex"],["color","primary","matSort","","matSortDirection","asc",2,"display","flex","font-size","12px","align-items","center",3,"matSortActive","matSortChange"],[4,"ngFor","ngForOf"],["style","flex: 1",4,"ngIf"],["slot","end","fill","clear","shape","round","disabled",""],["approxItemHeight","50px",3,"items"],["style","display: flex;",4,"virtualItem"],["disableClear","","style","flex: 1",3,"mat-sort-header",4,"ngIf"],["disableClear","",2,"flex","1",3,"mat-sort-header"],[2,"flex","1"],[2,"padding","1px",3,"placeholder","ionChange"],[2,"display","flex","cursor","pointer",3,"routerLink"],["style","flex: 1",4,"ngFor","ngForOf"],["slot","end","fill","clear","shape","round",3,"disabled","title","click"],["color","danger","slot","icon-only","name","trash"]],template:function(e,t){1&e&&(ss(0,"ion-header",0),ss(1,"ion-toolbar",1),ss(2,"ion-buttons",2),us(3,"ion-menu-button",3),us(4,"ion-back-button"),ls(),ss(5,"ion-title"),Qs(6),Du(7,"translate"),Du(8,"translate"),ls(),ls(),ss(9,"ion-toolbar",1),ss(10,"ion-buttons",2),ss(11,"ion-button",4),Qs(12),Du(13,"translate"),ls(),ls(),ss(14,"ion-title",5),Qs(15),Du(16,"translate"),ls(),ls(),ls(),ss(17,"ion-content",null,6),ss(19,"ion-list"),ss(20,"ion-item",7),ss(21,"ion-label",8),ms("matSortChange",function(e){return t.sortData(e)}),ns(22,fH,2,1,"ng-container",9),ns(23,pH,3,3,"div",10),ls(),ss(24,"ion-button",11),us(25,"ion-icon"),ls(),ls(),ss(26,"ion-virtual-scroll",12),ns(27,vH,6,6,"ion-item",13),ls(),ls(),ls()),2&e&&(os("translucent",!0),xo(6),Js("",Ou(7,10,"lang.administration")," ",Ou(8,12,"lang.manage_usersAlt"),""),xo(6),Ks(" ",Ou(13,14,"lang.userCreation")," "),xo(3),Js("",t.userList.length," ",Ou(16,16,"lang.manage_usersAlt"),""),xo(6),os("matSortActive",t.displayedColumns[1]),xo(1),os("ngForOf",t.displayedColumns),xo(1),os("ngIf",t.displayedColumns.indexOf("actions")>-1),xo(3),os("items",t.sortedData))},directives:[XC,DS,LC,cS,TC,JS,PS,RC,$S,Uk,UC,sS,nS,aS,Az,gh,mh,KC,iP,nP,Oz,bS,nA],pipes:[gE],styles:[".header[_ngcontent-%COMP%]{background:#135f7f;height:95px;color:#fff;padding-left:10px;font-size:25px}.header[_ngcontent-%COMP%], .header-title[_ngcontent-%COMP%]{display:flex;align-items:center}.header-title[_ngcontent-%COMP%]{flex:1;white-space:pre;overflow:hidden;text-overflow:ellipsis}.header[_ngcontent-%COMP%]   b[_ngcontent-%COMP%]{color:#f99830}.header[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis}.mainView[_ngcontent-%COMP%]{display:flex;flex-direction:column}.container[_ngcontent-%COMP%]{flex:1;overflow:auto}.loader[_ngcontent-%COMP%]{position:absolute;z-index:2;display:flex;background:hsla(0,0%,100%,.8);width:100%;height:100%;justify-content:center;align-items:center;top:0;margin:0;padding:0}.admin-form[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:20px}.actions-form[_ngcontent-%COMP%]{display:flex;justify-content:center}@media (max-width:360px){.actions-form[_ngcontent-%COMP%]{flex-direction:column}}.actions-form[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin:10px;width:150px}@media (max-width:360px){.actions-form[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{width:100%}}.noResult[_ngcontent-%COMP%]{padding:10px;text-align:center;opacity:.5}.emptyTable[_ngcontent-%COMP%]{height:auto}.addButton[_ngcontent-%COMP%]{padding:10px;display:flex;justify-content:flex-end}",""]}),mH);function bH(e,t){1&e&&(us(0,"div",5),Du(1,"translate")),2&e&&os("innerHTML",Ou(1,1,ks().data.msg),Ar)}var wH,_H=((wH=function e(t,n,i){A(this,e),this.translate=t,this.data=n,this.dialogRef=i,null===this.data.msg&&(this.data.msg="")}).\u0275fac=function(e){return new(e||wH)(rs(pE),rs(mB),rs(sB))},wH.\u0275cmp=ft({type:wH,selectors:[["ng-component"]],decls:12,vars:13,consts:[["mat-dialog-title",""],["mat-dialog-content","",3,"innerHTML",4,"ngIf"],["mat-dialog-actions",""],["mat-button","",1,"actions","btn","blue",3,"click"],["mat-button","",1,"actions","btn","red",3,"click"],["mat-dialog-content","",3,"innerHTML"]],template:function(e,t){1&e&&(ss(0,"div"),ss(1,"h1",0),Qs(2),Du(3,"translate"),ls(),ns(4,bH,2,3,"div",1),ss(5,"div",2),ss(6,"button",3),ms("click",function(){return t.dialogRef.close("yes")}),Qs(7),Du(8,"translate"),ls(),ss(9,"button",4),ms("click",function(){return t.dialogRef.close("no")}),Qs(10),Du(11,"translate"),ls(),ls(),ls()),2&e&&(tl("modalContent ",t.data.mode,""),xo(2),Xs(Ou(3,7,t.data.title)),xo(2),os("ngIf",null!==t.data.msg),xo(3),Xs(Ou(8,9,"lang.yes")),xo(3),Xs(Ou(11,11,"lang.no")))},directives:[AB,mh,SB,YF,CB],pipes:[gE],styles:[".modalContent[_ngcontent-%COMP%]{position:relative}.mat-dialog-content[_ngcontent-%COMP%], .mat-dialog-title[_ngcontent-%COMP%]{text-align:center!important;color:#666}.mat-dialog-title[_ngcontent-%COMP%]{font-weight:700}.actions[_ngcontent-%COMP%]{width:100%;margin:10px}.close[_ngcontent-%COMP%]{position:absolute;top:-15px;right:-15px;width:40px;height:40px;font-size:20px;color:#666}.warning[_ngcontent-%COMP%]   .mat-dialog-title[_ngcontent-%COMP%]{color:#e74c3c}"]}),wH);function kH(e,t){if(1&e){var n=fs();ss(0,"ion-item"),ss(1,"ion-label"),Qs(2),Du(3,"translate"),ls(),ss(4,"ion-checkbox",27),ms("ionChange",function(e){nn(n);var t=ks().$implicit;return ks(2).toggleSignMode(t,e.detail.checked)}),ls(),ls()}if(2&e){var i=ks().$implicit,r=ks(2);xo(1),Ls("color",i.color),xo(1),Xs(Ou(3,5,"lang."+i.id)),xo(2),os("checked",r.user.signatureModes.indexOf(i.id)>-1)("disabled","stamp"===i.id)}}function xH(e,t){if(1&e&&(cs(0),ns(1,kH,5,7,"ion-item",11),ds()),2&e){var n=t.$implicit;xo(1),os("ngIf","visa"!==n.id)}}function AH(e,t){if(1&e&&(ss(0,"ion-note",33),Qs(1),Du(2,"translate"),ls()),2&e){var n=ks(3);xo(1),Ks(" ",Ou(2,1,n.handlePassword.errorMsg),"")}}function CH(e,t){if(1&e){var n=fs();ss(0,"ion-item",28),ss(1,"ion-button",29),ms("click",function(){nn(n);var e=ks(2);return e.hideNewPassword=!e.hideNewPassword}),us(2,"ion-icon",30),ls(),ss(3,"ion-label",14),Qs(4),Du(5,"translate"),ls(),ss(6,"ion-input",31),ms("ngModelChange",function(e){return nn(n),ks(2).passwordRest.newPassword=e})("ionChange",function(){nn(n);var e=ks(2);return e.checkPasswordValidity(e.passwordRest.newPassword)}),ls(),ns(7,AH,3,3,"ion-note",32),ls()}if(2&e){var i=ks(2);xo(2),os("name",i.hideNewPassword?"eye-outline":"eye-off-outline"),xo(2),Xs(Ou(5,5,"lang.newPassword")),xo(2),os("type",i.hideNewPassword?"password":"text")("ngModel",i.passwordRest.newPassword),xo(1),os("ngIf",i.handlePassword.error&&i.passwordRest.newPassword.length>0)}}function SH(e,t){1&e&&(ss(0,"ion-note",33),Qs(1),Du(2,"translate"),ls()),2&e&&(xo(1),Ks(" ",Ou(2,1,"lang.passwordNotMatch"),""))}function PH(e,t){1&e&&(ss(0,"ion-note",36),Qs(1),Du(2,"translate"),ls()),2&e&&(xo(1),Ks(" ",Ou(2,1,"lang.samePassword"),""))}function EH(e,t){if(1&e){var n=fs();ss(0,"ion-item",28),ss(1,"ion-button",29),ms("click",function(){nn(n);var e=ks(2);return e.hideNewPasswordConfirm=!e.hideNewPasswordConfirm}),us(2,"ion-icon",30),ls(),ss(3,"ion-label",14),Qs(4),Du(5,"translate"),ls(),ss(6,"ion-input",34),ms("ngModelChange",function(e){return nn(n),ks(2).passwordRest.passwordConfirmation=e}),ls(),ns(7,SH,3,3,"ion-note",32),ns(8,PH,3,3,"ion-note",35),ls()}if(2&e){var i=ks(2);xo(2),os("name",i.hideNewPasswordConfirm?"eye-outline":"eye-off-outline"),xo(2),Xs(Ou(5,6,"lang.passwordConfirmation")),xo(2),os("type",i.hideNewPasswordConfirm?"password":"text")("ngModel",i.passwordRest.passwordConfirmation),xo(1),os("ngIf",i.passwordRest.passwordConfirmation!==i.passwordRest.newPassword&&i.passwordRest.passwordConfirmation.length>0),xo(1),os("ngIf",i.passwordRest.passwordConfirmation===i.passwordRest.newPassword&&i.passwordRest.newPassword.length>0&&i.passwordRest.passwordConfirmation.length>0&&!i.handlePassword.error)}}function DH(e,t){if(1&e){var n=fs();cs(0),ss(1,"form",12,13),ms("ngSubmit",function(){return nn(n),ks().onSubmit()}),ss(3,"ion-content"),ss(4,"ion-item"),ss(5,"ion-label",14),Qs(6),Du(7,"translate"),ls(),ss(8,"ion-input",15),ms("ngModelChange",function(e){return nn(n),ks().user.login=e}),ls(),ls(),ss(9,"ion-item"),ss(10,"ion-label",14),Qs(11),Du(12,"translate"),ls(),ss(13,"ion-input",16),ms("ngModelChange",function(e){return nn(n),ks().user.firstname=e}),ls(),ls(),ss(14,"ion-item"),ss(15,"ion-label",14),Qs(16),Du(17,"translate"),ls(),ss(18,"ion-input",17),ms("ngModelChange",function(e){return nn(n),ks().user.lastname=e}),ls(),ls(),ss(19,"ion-item"),ss(20,"ion-label",14),Qs(21),Du(22,"translate"),ls(),ss(23,"ion-input",18),ms("ngModelChange",function(e){return nn(n),ks().user.email=e}),ls(),ls(),ss(24,"ion-item"),ss(25,"ion-label"),Qs(26),Du(27,"translate"),ls(),ss(28,"ion-toggle",19),ms("ngModelChange",function(e){return nn(n),ks().user.isRest=e})("ionChange",function(e){return nn(n),ks().getPassRules(e)}),ls(),ls(),ss(29,"ion-list"),ss(30,"ion-list-header"),ss(31,"ion-label",20),Qs(32),Du(33,"translate"),ls(),ls(),ns(34,xH,2,1,"ng-container",21),ls(),ns(35,CH,8,7,"ion-item",22),ns(36,EH,9,8,"ion-item",22),ss(37,"ion-item",23),ss(38,"div",24),ss(39,"ion-button",25),ss(40,"ion-label",26),Qs(41),Du(42,"translate"),ls(),ls(),ls(),ls(),ls(),ls(),ds()}if(2&e){var i=is(2),r=ks();xo(6),Ks("",Ou(7,23,"lang.login")," *"),xo(2),os("maxlength",128)("readonly",!r.creationMode)("ngModel",r.user.login),xo(3),Ks("",Ou(12,25,"lang.firstname")," *"),xo(2),os("maxlength",128)("ngModel",r.user.firstname),xo(3),Ks("",Ou(17,27,"lang.lastname")," *"),xo(2),os("maxlength",128)("ngModel",r.user.lastname),xo(3),Ks("",Ou(22,29,"lang.email")," *"),xo(2),os("maxlength",128)("ngModel",r.user.email),xo(3),Xs(Ou(27,31,"lang.restUser")),xo(2),os("disabled",!r.creationMode)("ngModel",r.user.isRest)("checked",r.user.isRest),xo(4),Xs(Ou(33,33,"lang.signatureModes")),xo(2),os("ngForOf",r.authService.signatureRoles),xo(1),os("ngIf",r.user.isRest),xo(1),os("ngIf",r.user.isRest),xo(3),os("disabled",!i.form.valid||!r.canValidate()),xo(2),Xs(Ou(42,35,"lang.validate"))}}function OH(e,t){if(1&e&&(ss(0,"ion-item"),ss(1,"ion-label"),Qs(2),ls(),ls()),2&e){var n=t.$implicit;xo(2),Xs(n.label)}}function MH(e,t){if(1&e&&(ss(0,"ion-list"),ns(1,OH,3,1,"ion-item",21),ls()),2&e){var n=ks(2);xo(1),os("ngForOf",n.user.groups)}}function TH(e,t){1&e&&(ss(0,"ion-list",38),ss(1,"ion-item",39),ss(2,"ion-label",40),Qs(3),Du(4,"translate"),ls(),ls(),ls()),2&e&&(xo(3),Xs(Ou(4,1,"lang.noAssociatedGroup")))}function IH(e,t){if(1&e&&(cs(0),ss(1,"ion-content"),ns(2,MH,2,1,"ion-list",11),ns(3,TH,5,3,"ion-list",37),ls(),ds()),2&e){var n=ks();xo(2),os("ngIf",n.user.groups.length>0),xo(1),os("ngIf",0===n.user.groups.length)}}var RH,LH=((RH=function(){function e(t,n,i,r,o,a,s,l){A(this,e),this.http=t,this.translate=n,this.route=i,this.router=r,this.signaturesService=o,this.notificationService=a,this.dialog=s,this.authService=l,this.creationMode=!0,this.loading=!0,this.user={id:"",firstname:"",lastname:"",login:"",email:"",picture:"",isRest:!1,signatureModes:["stamp"]},this.title="",this.hideCurrentPassword=!0,this.hideNewPassword=!0,this.hideNewPasswordConfirm=!0,this.currentTool="info",this.passwordRules={minLength:{enabled:!1,value:0},complexityUpper:{enabled:!1,value:0},complexityNumber:{enabled:!1,value:0},complexitySpecial:{enabled:!1,value:0},renewal:{enabled:!1,value:0},historyLastUse:{enabled:!1,value:0}},this.passwordRest={newPassword:"",passwordConfirmation:""},this.ruleText="",this.otherRuleText="",this.showPassword=!1,this.handlePassword={error:!1,errorMsg:""}}return m(e,[{key:"ngOnInit",value:function(){var e=this;this.route.params.subscribe(function(t){void 0===t.id?(e.creationMode=!0,e.title=e.translate.instant("lang.userCreation"),e.user={id:"",firstname:"",lastname:"",login:"",email:"",picture:"",signatureModes:["stamp"],isRest:!1},e.loading=!1):(e.creationMode=!1,e.http.get("../rest/users/"+t.id).pipe(Y(function(e){return e.user}),hw(function(){return e.loading=!1})).subscribe({next:function(t){e.user=t,e.userClone=JSON.parse(JSON.stringify(e.user)),e.title=e.user.firstname+" "+e.user.lastname,e.user.isRest&&e.getPassRules({detail:{checked:!0}})}}))})}},{key:"canValidate",value:function(){return!(this.user.isRest&&""!==this.passwordRest.newPassword&&(this.handlePassword.error||this.passwordRest.passwordConfirmation!==this.passwordRest.newPassword)||JSON.stringify(this.user)===JSON.stringify(this.userClone)&&""===this.passwordRest.newPassword)}},{key:"onSubmit",value:function(){this.creationMode?this.createUser():this.modifyUser()}},{key:"modifyUser",value:function(){var e=this;this.loading=!0,this.http.put("../rest/users/"+this.user.id,this.user).pipe(hw(function(){return e.loading=!1}),uw(function(){e.authService.user.id===e.user.id&&e.authService.updateUserInfoWithTokenRefresh(),""!==e.passwordRest.newPassword&&e.updateRestUser(),e.router.navigate(["/administration/users"]),e.notificationService.success("lang.userUpdated")}),Zb(function(t){return e.notificationService.handleErrors(t),Ty(!1)})).subscribe()}},{key:"updateRestUser",value:function(){var e=this,t=new zy({Authorization:"Bearer "+this.authService.getToken()});this.http.put("../rest/users/"+this.user.id+"/password",this.passwordRest,{headers:t}).subscribe(function(){e.passwordRest.newPassword="",e.passwordRest.passwordConfirmation=""},function(t){e.notificationService.handleErrors(t)})}},{key:"createUser",value:function(){var e=this;this.loading=!0,this.http.post("../rest/users",this.user).pipe(hw(function(){return e.loading=!1}),uw(function(t){e.user.isRest&&(e.user.id=t.id,e.updateRestUser()),e.router.navigate(["/administration/users"]),e.notificationService.success("lang.userAdded")}),Zb(function(t){return e.notificationService.handleErrors(t),Ty(!1)})).subscribe()}},{key:"delete",value:function(){var e=this;this.dialog.open(_H,{autoFocus:!1,data:{mode:"",title:"lang.confirmMsg",msg:""}}).afterClosed().subscribe(function(t){"yes"===t&&(e.loading=!0,e.http.delete("../rest/users/"+e.user.id).pipe(hw(function(){return e.loading=!1})).subscribe({next:function(){e.router.navigate(["/administration/users"]),e.notificationService.success("lang.userDeleted")}}))})}},{key:"cancel",value:function(){this.router.navigate(["/administration/users"])}},{key:"getPassRules",value:function(e){var t=this;e.detail.checked&&(this.handlePassword.error=!1,this.handlePassword.errorMsg="",this.http.get("../rest/passwordRules").subscribe(function(e){var n=[],i=[];e.rules.forEach(function(e){"minLength"===e.label?(t.passwordRules.minLength.enabled=e.enabled,t.passwordRules.minLength.value=e.value,e.enabled&&t.translate.get("lang.minLengthChar",{charLength:e.value}).subscribe(function(e){n.push(e)})):"complexityUpper"===e.label?(t.passwordRules.complexityUpper.enabled=e.enabled,t.passwordRules.complexityUpper.value=e.value,e.enabled&&n.push("lang.upperRequired")):"complexityNumber"===e.label?(t.passwordRules.complexityNumber.enabled=e.enabled,t.passwordRules.complexityNumber.value=e.value,e.enabled&&n.push("lang.numberRequired")):"complexitySpecial"===e.label?(t.passwordRules.complexitySpecial.enabled=e.enabled,t.passwordRules.complexitySpecial.value=e.value,e.enabled&&n.push("lang.specialCharRequired")):"renewal"===e.label?(t.passwordRules.renewal.enabled=e.enabled,t.passwordRules.renewal.value=e.value,e.enabled&&t.translate.get("lang.renewalInfo",{time:e.value}).subscribe(function(e){i.push(e)})):"historyLastUse"===e.label&&(t.passwordRules.historyLastUse.enabled=e.enabled,t.passwordRules.historyLastUse.value=e.value,e.enabled&&t.translate.get("lang.historyUseInfo",{countPwd:e.value}).subscribe(function(e){i.push(e)}))}),t.ruleText=n.join(", "),t.otherRuleText=i.join("<br/>")},function(e){t.notificationService.handleErrors(e)}))}},{key:"checkPasswordValidity",value:function(e){var t=this;this.handlePassword.error=!0,!e.match(/[A-Z]/g)&&this.passwordRules.complexityUpper.enabled?this.handlePassword.errorMsg="lang.upperRequired":!e.match(/[0-9]/g)&&this.passwordRules.complexityNumber.enabled?this.handlePassword.errorMsg="lang.numberRequired":!e.match(/[^A-Za-z0-9]/g)&&this.passwordRules.complexitySpecial.enabled?this.handlePassword.errorMsg="lang.specialCharRequired":e.length<this.passwordRules.minLength.value&&this.passwordRules.minLength.enabled?this.translate.get("lang.minLengthChar",{charLength:this.passwordRules.minLength.value}).subscribe(function(e){t.handlePassword.errorMsg=e}):(this.handlePassword.error=!1,this.handlePassword.errorMsg="")}},{key:"toggleSignMode",value:function(e,t){t?-1===this.user.signatureModes.indexOf(e.id)&&this.user.signatureModes.push(e.id):this.user.signatureModes=this.user.signatureModes.filter(function(t){return t!==e.id})}},{key:"initTab",value:function(e){this.currentTool=e}}]),e}()).\u0275fac=function(e){return new(e||RH)(rs(lb),rs(pE),rs(b_),rs(jk),rs(PE),rs(yE),rs(kB),rs(DE))},RH.\u0275cmp=ft({type:RH,selectors:[["app-administration-user"]],decls:24,vars:13,consts:[[3,"translucent"],["color","primary"],["slot","start"],["menu","left-menu"],["slot","end"],[3,"src"],[3,"value","ionChange"],["value","info"],["name","information-circle"],["value","groups",3,"disabled"],["name","people-sharp"],[4,"ngIf"],["id","adminForm",2,"display","contents",3,"ngSubmit"],["adminForm","ngForm"],["color","secondary","position","floating"],["name","login","required","","pattern","^[\\w.@-]*$",3,"maxlength","readonly","ngModel","ngModelChange"],["name","firstname","required","",3,"maxlength","ngModel","ngModelChange"],["name","lastname","required","",3,"maxlength","ngModel","ngModelChange"],["type","email","name","email","required","","pattern","(^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\\.[a-zA-Z0-9-.]+$)",3,"maxlength","ngModel","ngModelChange"],["slot","start","color","primary","name","isRest",3,"disabled","ngModel","checked","ngModelChange","ionChange"],["color","secondary"],[4,"ngFor","ngForOf"],["style","align-items: center;",4,"ngIf"],["text-center","","lines","none",2,"position","sticky","bottom","0px","z-index","1"],[2,"display","flex","align-items","center","justify-content","center","width","100%","background","white"],["type","submit","shape","round","size","large","fill","outline","color","primary",3,"disabled"],[2,"font-size","13px"],["slot","start",3,"checked","disabled","ionChange"],[2,"align-items","center"],["slot","end","fill","clear","color","primary",3,"click"],["color","primary",3,"name"],["name","newPasswordRest",3,"type","ngModel","ngModelChange","ionChange"],["color","danger",4,"ngIf"],["color","danger"],["name","passwordConfirmation",3,"type","ngModel","ngModelChange"],["color","success",4,"ngIf"],["color","success"],["class","no-result",4,"ngIf"],[1,"no-result"],["lines","none"],["color","medium",1,"no-result-label"]],template:function(e,t){1&e&&(ss(0,"ion-header",0),ss(1,"ion-toolbar",1),ss(2,"ion-buttons",2),us(3,"ion-menu-button",3),us(4,"ion-back-button"),ls(),ss(5,"ion-title"),Qs(6),ls(),ss(7,"ion-avatar",4),us(8,"img",5),ls(),ls(),ls(),ss(9,"ion-header"),ss(10,"ion-toolbar"),ss(11,"ion-segment",6),ms("ionChange",function(e){return t.initTab(e.detail.value)}),ss(12,"ion-segment-button",7),ss(13,"ion-label"),Qs(14),Du(15,"translate"),ls(),us(16,"ion-icon",8),ls(),ss(17,"ion-segment-button",9),ss(18,"ion-label"),Qs(19),Du(20,"translate"),ls(),us(21,"ion-icon",10),ls(),ls(),ls(),ls(),ns(22,DH,43,37,"ng-container",11),ns(23,IH,4,2,"ng-container",11)),2&e&&(os("translucent",!0),xo(6),Xs(t.title),xo(2),os("src",t.user.picture,Cr),xo(3),os("value",t.currentTool),xo(3),Xs(Ou(15,9,"lang.informations")),xo(3),os("disabled",t.creationMode),xo(2),Xs(Ou(20,11,"lang.manage_groups")),xo(3),os("ngIf","info"===t.currentTool),xo(1),os("ngIf","groups"===t.currentTool))},directives:[XC,DS,LC,cS,TC,JS,PS,MC,wS,tA,_S,aS,KC,mh,Zm,fm,Wm,UC,nS,tS,nA,xy,Py,Cy,hm,Ym,ES,Jx,sS,lS,gh,RC,NC,hS],pipes:[gE],styles:[".header[_ngcontent-%COMP%]{background:#135f7f;height:95px;color:#fff;padding-left:10px;font-size:25px}.header[_ngcontent-%COMP%], .header-title[_ngcontent-%COMP%]{display:flex;align-items:center}.header-title[_ngcontent-%COMP%]{flex:1;white-space:pre;overflow:hidden;text-overflow:ellipsis}.header[_ngcontent-%COMP%]   b[_ngcontent-%COMP%]{color:#f99830}.header[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis}.mainView[_ngcontent-%COMP%]{display:flex;flex-direction:column}.container[_ngcontent-%COMP%]{flex:1;overflow:auto}.loader[_ngcontent-%COMP%]{position:absolute;z-index:2;display:flex;background:hsla(0,0%,100%,.8);width:100%;height:100%;justify-content:center;align-items:center;top:0;margin:0;padding:0}.admin-form[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:20px}.actions-form[_ngcontent-%COMP%]{display:flex;justify-content:center}@media (max-width:360px){.actions-form[_ngcontent-%COMP%]{flex-direction:column}}.actions-form[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin:10px;width:150px}@media (max-width:360px){.actions-form[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{width:100%}}.noResult[_ngcontent-%COMP%]{padding:10px;text-align:center;opacity:.5}.emptyTable[_ngcontent-%COMP%]{height:auto}.addButton[_ngcontent-%COMP%]{padding:10px;display:flex;justify-content:flex-end}",".no-result[_ngcontent-%COMP%]{height:100%;display:flex;align-items:center;justify-content:center}.no-result[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]{width:100%;text-align:center}.no-result-label[_ngcontent-%COMP%]{font-size:30px}"]}),RH);function FH(e,t){if(1&e&&(ss(0,"div",15),Qs(1),Du(2,"translate"),ls()),2&e){var n=ks().$implicit;os("mat-sort-header",n),xo(1),Ks(" ",Ou(2,2,"lang."+n)," ")}}function BH(e,t){if(1&e&&(cs(0),ns(1,FH,3,4,"div",14),ds()),2&e){var n=t.$implicit;xo(1),os("ngIf","actions"!==n)}}function VH(e,t){if(1&e){var n=fs();ss(0,"div",16),ss(1,"ion-searchbar",17),ms("ionChange",function(e){return nn(n),ks().applyFilter(e.detail.value)}),Du(2,"translate"),ls(),ls()}2&e&&(xo(1),os("placeholder",Ou(2,1,"lang.filter")))}function zH(e,t){if(1&e&&(ss(0,"div",16),Qs(1),ls()),2&e){var n=t.$implicit,i=ks().$implicit;xo(1),Ks(" ",i[n]," ")}}function NH(e,t){if(1&e){var n=fs();ss(0,"ion-item",7),ss(1,"ion-label",18),ns(2,zH,2,1,"div",19),ls(),ss(3,"ion-button",20),ms("click",function(e){nn(n);var i=t.$implicit,r=ks();return e.stopPropagation(),r.delete(i)}),Du(4,"translate"),us(5,"ion-icon",21),ls(),ls()}if(2&e){var i=t.$implicit,r=ks();xo(1),Ps("routerLink","/administration/groups/",i.id,""),xo(1),os("ngForOf",r.displayedColumns),xo(1),Ss("title",Ou(4,3,"lang.delete"))}}var HH,jH=((HH=function(){function e(t,n,i,r,o,a,s){A(this,e),this.http=t,this.translate=n,this.latinisePipe=i,this.dialog=r,this.signaturesService=o,this.notificationService=a,this.alertController=s,this.groupList=[],this.loading=!0,this.displayedColumns=["label","actions"]}return m(e,[{key:"applyFilter",value:function(e){var t=this;e=this.latinisePipe.transform(e.toLowerCase()),this.sortedData=this.groupList.filter(function(n){var i=!1;return t.displayedColumns.forEach(function(r){n[r]&&t.latinisePipe.transform(n[r].toLowerCase()).includes(e)&&(i=!0)}),i})}},{key:"ionViewWillEnter",value:function(){var e=this;this.http.get("../rest/groups").pipe(Y(function(e){return e.groups}),hw(function(){return e.loading=!1})).subscribe({next:function(t){e.groupList=t,e.sortedData=e.groupList.slice()}})}},{key:"delete",value:function(e){return t=this,i=regeneratorRuntime.mark(function t(){var n,i=this;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.alertController.create({header:this.translate.instant("lang.confirmMsg"),buttons:[{text:this.translate.instant("lang.no"),role:"cancel",cssClass:"secondary",handler:function(){}},{text:this.translate.instant("lang.yes"),handler:function(){i.http.delete("../rest/groups/"+e.id).pipe(hw(function(){return i.loading=!1})).subscribe({next:function(t){var n=i.groupList.findIndex(function(t){return t.id===e.id});i.groupList.splice(n,1),i.sortedData=i.groupList.slice(),i.notificationService.success("lang.groupDeleted")}})}}]});case 2:return n=t.sent,t.next=5,n.present();case 5:case"end":return t.stop()}},t,this)}),new((n=void 0)||(n=Promise))(function(e,r){function o(e){try{s(i.next(e))}catch(t){r(t)}}function a(e){try{s(i.throw(e))}catch(t){r(t)}}function s(t){var i;t.done?e(t.value):(i=t.value,i instanceof n?i:new n(function(e){e(i)})).then(o,a)}s((i=i.apply(t,[])).next())});var t,n,i}},{key:"sortData",value:function(e){var t=this.groupList.slice();this.sortedData=e.active&&""!==e.direction?t.sort(function(t,n){return function(e,t,n){return(e<t?-1:1)*(n?1:-1)}(t[e.active],n[e.active],"asc"===e.direction)}):t}}]),e}()).\u0275fac=function(e){return new(e||HH)(rs(lb),rs(pE),rs(QM),rs(kB),rs(PE),rs(yE),rs(sP))},HH.\u0275cmp=ft({type:HH,selectors:[["app-administration-groups-list"]],viewQuery:function(e,t){var n;1&e&&(Qu(rz,3),Qu(Az,3)),2&e&&(Zu(n=Ku())&&(t.paginator=n.first),Zu(n=Ku())&&(t.sort=n.first))},decls:28,vars:18,consts:[[3,"translucent"],["color","primary"],["slot","start"],["menu","left-menu"],["fill","outline","shape","round","routerLink","/administration/groups/new"],["slot","end","color","secondary"],["mainContent",""],[2,"display","flex"],["color","primary","matSort","","matSortDirection","asc",2,"display","flex","font-size","12px","align-items","center",3,"matSortActive","matSortChange"],[4,"ngFor","ngForOf"],["style","flex: 1",4,"ngIf"],["slot","end","fill","clear","shape","round","disabled",""],["approxItemHeight","50px",3,"items"],["style","display: flex;",4,"virtualItem"],["disableClear","","style","flex: 1",3,"mat-sort-header",4,"ngIf"],["disableClear","",2,"flex","1",3,"mat-sort-header"],[2,"flex","1"],[2,"padding","1px",3,"placeholder","ionChange"],[2,"display","flex","cursor","pointer",3,"routerLink"],["style","flex: 1",4,"ngFor","ngForOf"],["slot","end","fill","clear","shape","round",3,"title","click"],["color","danger","slot","icon-only","name","trash"]],template:function(e,t){1&e&&(ss(0,"ion-header",0),ss(1,"ion-toolbar",1),ss(2,"ion-buttons",2),us(3,"ion-menu-button",3),us(4,"ion-back-button"),ls(),ss(5,"ion-title"),Qs(6),Du(7,"translate"),Du(8,"translate"),ls(),ls(),ss(9,"ion-toolbar",1),ss(10,"ion-buttons",2),ss(11,"ion-button",4),Qs(12),Du(13,"translate"),ls(),ls(),ss(14,"ion-title",5),Qs(15),Du(16,"translate"),ls(),ls(),ls(),ss(17,"ion-content",null,6),ss(19,"ion-list"),ss(20,"ion-item",7),ss(21,"ion-label",8),ms("matSortChange",function(e){return t.sortData(e)}),ns(22,BH,2,1,"ng-container",9),ns(23,VH,3,3,"div",10),ls(),ss(24,"ion-button",11),us(25,"ion-icon"),ls(),ls(),ss(26,"ion-virtual-scroll",12),ns(27,NH,6,5,"ion-item",13),ls(),ls(),ls()),2&e&&(os("translucent",!0),xo(6),Js("",Ou(7,10,"lang.administration")," ",Ou(8,12,"lang.manage_groupsAlt"),""),xo(6),Ks(" ",Ou(13,14,"lang.groupCreation")," "),xo(3),Js("",t.groupList.length," ",Ou(16,16,"lang.manage_groupsAlt"),""),xo(6),os("matSortActive",t.displayedColumns[0]),xo(1),os("ngForOf",t.displayedColumns),xo(1),os("ngIf",t.displayedColumns.indexOf("actions")>-1),xo(3),os("items",t.sortedData))},directives:[XC,DS,LC,cS,TC,JS,PS,RC,$S,Uk,UC,sS,nS,aS,Az,gh,mh,KC,iP,nP,Oz,bS,nA],pipes:[gE],styles:[".header[_ngcontent-%COMP%]{background:#135f7f;height:95px;color:#fff;padding-left:10px;font-size:25px}.header[_ngcontent-%COMP%], .header-title[_ngcontent-%COMP%]{display:flex;align-items:center}.header-title[_ngcontent-%COMP%]{flex:1;white-space:pre;overflow:hidden;text-overflow:ellipsis}.header[_ngcontent-%COMP%]   b[_ngcontent-%COMP%]{color:#f99830}.header[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis}.mainView[_ngcontent-%COMP%]{display:flex;flex-direction:column}.container[_ngcontent-%COMP%]{flex:1;overflow:auto}.loader[_ngcontent-%COMP%]{position:absolute;z-index:2;display:flex;background:hsla(0,0%,100%,.8);width:100%;height:100%;justify-content:center;align-items:center;top:0;margin:0;padding:0}.admin-form[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:20px}.actions-form[_ngcontent-%COMP%]{display:flex;justify-content:center}@media (max-width:360px){.actions-form[_ngcontent-%COMP%]{flex-direction:column}}.actions-form[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin:10px;width:150px}@media (max-width:360px){.actions-form[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{width:100%}}.noResult[_ngcontent-%COMP%]{padding:10px;text-align:center;opacity:.5}.emptyTable[_ngcontent-%COMP%]{height:auto}.addButton[_ngcontent-%COMP%]{padding:10px;display:flex;justify-content:flex-end}",""]}),HH);function UH(e,t){if(1&e){var n=fs();ss(0,"ion-item",4),ms("click",function(){nn(n);var e=t.$implicit;return ks().selectUser(e)}),ss(1,"ion-label"),Qs(2),ls(),ls()}if(2&e){var i=t.$implicit;xo(2),Js(" ",i.firstname," ",i.lastname," ")}}var WH,GH=((WH=function(){function e(t,n){A(this,e),this.http=t,this.modalController=n,this.usersList=[]}return m(e,[{key:"ngOnInit",value:function(){var e=this;this.http.get("../rest/users?mode=all").pipe(Y(function(e){return e.users})).subscribe({next:function(t){e.usersList=t.filter(function(t){return-1===e.users.findIndex(function(e){return e.id===t.id})})}})}},{key:"selectUser",value:function(e){this.modalController.dismiss(e)}}]),e}()).\u0275fac=function(e){return new(e||WH)(rs(lb),rs(cP))},WH.\u0275cmp=ft({type:WH,selectors:[["app-users"]],inputs:{users:"users"},decls:9,vars:5,consts:[[3,"translucent"],["color","primary"],["approxItemHeight","50px",2,"height","450px",3,"items"],["button","",3,"click",4,"virtualItem"],["button","",3,"click"]],template:function(e,t){1&e&&(ss(0,"ion-header",0),ss(1,"ion-toolbar",1),ss(2,"ion-title"),Qs(3),Du(4,"translate"),ls(),ls(),ls(),ss(5,"ion-content"),ss(6,"ion-list"),ss(7,"ion-virtual-scroll",2),ns(8,UH,3,2,"ion-item",3),ls(),ls(),ls()),2&e&&(os("translucent",!0),xo(3),Xs(Ou(4,3,"lang.users")),xo(4),os("items",t.usersList))},directives:[XC,DS,PS,UC,sS,iP,nP,nS,aS],pipes:[gE],encapsulation:2}),WH),qH=function(e,t,n,i){return new(n||(n=Promise))(function(r,o){function a(e){try{l(i.next(e))}catch(t){o(t)}}function s(e){try{l(i.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((i=i.apply(e,t||[])).next())})};function YH(e,t){1&e&&(ss(0,"ion-item",17),ss(1,"ion-label",18),Qs(2),Du(3,"translate"),ls(),ls()),2&e&&(xo(2),Ks("",Ou(3,1,"lang.privileges")," :"))}function ZH(e,t){if(1&e){var n=fs();ss(0,"ion-item",19),ss(1,"ion-toggle",20),ms("ngModelChange",function(e){return t.$implicit.checked=e})("click",function(){nn(n);var e=t.$implicit;return ks().togglePrivilege(e,!0)}),ls(),ss(2,"ion-label",21),ms("click",function(){nn(n);var e=t.$implicit;return ks().togglePrivilege(e,!1)}),Qs(3),Du(4,"translate"),ls(),ls()}if(2&e){var i=t.$implicit;xo(1),os("name",i.id)("checked",i.checked)("ngModel",i.checked),xo(2),Xs(Ou(4,4,"lang."+i.id+"Admin"))}}function QH(e,t){1&e&&(ss(0,"ion-item",17),ss(1,"ion-label",18),Qs(2),Du(3,"translate"),ls(),ls()),2&e&&(xo(2),Ks("",Ou(3,1,"lang.linkedUsers")," :"))}function XH(e,t){if(1&e&&(ss(0,"div",31),Qs(1),Du(2,"translate"),ls()),2&e){var n=ks().$implicit;os("mat-sort-header",n),xo(1),Ks(" ",Ou(2,2,"lang."+n)," ")}}function KH(e,t){if(1&e&&(cs(0),ns(1,XH,3,4,"div",30),ds()),2&e){var n=t.$implicit;xo(1),os("ngIf","actions"!==n)}}function JH(e,t){if(1&e){var n=fs();ss(0,"div",32),ss(1,"ion-button",33),ms("click",function(){return nn(n),ks(2).openUserList()}),Qs(2),Du(3,"translate"),ls(),ls()}2&e&&(xo(2),Ks(" ",Ou(3,1,"lang.add")," "))}function $H(e,t){if(1&e&&(ss(0,"div",39),Qs(1),ls()),2&e){var n=t.$implicit,i=ks().$implicit;xo(1),Ks(" ",i[n]," ")}}function ej(e,t){if(1&e){var n=fs();ss(0,"ion-item",34),ss(1,"ion-label",35),ns(2,$H,2,1,"div",36),ls(),ss(3,"ion-button",37),ms("click",function(e){nn(n);var i=t.$implicit,r=ks(2);return e.stopPropagation(),r.unlinkUser(i)}),Du(4,"translate"),us(5,"ion-icon",38),ls(),ls()}if(2&e){var i=t.$implicit,r=ks(2);xo(1),Ps("routerLink","/administration/users/",i.id,""),xo(1),os("ngForOf",r.displayedColumns),xo(1),Ss("title",Ou(4,3,"lang.unlinkUser"))}}function tj(e,t){if(1&e){var n=fs();ss(0,"ion-card",22),ss(1,"ion-list"),ss(2,"ion-item",23),cs(3,13),ss(4,"ion-label",24),ms("matSortChange",function(e){return nn(n),ks().sortData(e)}),ns(5,KH,2,1,"ng-container",25),ns(6,JH,4,3,"div",26),ls(),ss(7,"ion-button",27),us(8,"ion-icon"),ls(),ds(),ls(),ss(9,"ion-virtual-scroll",28),ns(10,ej,6,5,"ion-item",29),ls(),ls(),ls()}if(2&e){var i=ks();xo(4),os("matSortActive",i.displayedColumns[1]),xo(1),os("ngForOf",i.displayedColumns),xo(1),os("ngIf",i.displayedColumns.indexOf("actions")>-1),xo(3),os("items",i.sortedData)}}function nj(e,t){if(1&e){var n=fs();ss(0,"ion-button",40),ms("click",function(){return nn(n),ks().deleteGroup()}),ss(1,"ion-label",15),Qs(2),Du(3,"translate"),ls(),ls()}2&e&&(xo(2),Xs(Ou(3,1,"lang.delete")))}var ij,rj=((ij=function(){function e(t,n,i,r,o,a,s,l,u,c,d){A(this,e),this.http=t,this.translate=n,this.route=i,this.router=r,this.signaturesService=o,this.notificationService=a,this.dialog=s,this.authService=l,this.popoverController=u,this.modalController=c,this.alertController=d,this.creationMode=!0,this.loading=!0,this.title="",this.displayedColumns=["firstname","lastname","actions"],this.group={id:"",label:"",users:[],privileges:[]},this.groupClone=JSON.parse(JSON.stringify(this.group))}return m(e,[{key:"ngOnInit",value:function(){var e=this;this.route.params.subscribe(function(t){void 0===t.id?(e.creationMode=!0,e.title=e.translate.instant("lang.groupCreation"),e.loading=!1,e.groupClone=JSON.parse(JSON.stringify(e.group))):(e.creationMode=!1,e.usersList=[],e.http.get("../rest/groups/"+t.id).pipe(Y(function(e){return e.group}),hw(function(){e.loading=!1})).subscribe({next:function(t){e.group=t,e.groupClone=JSON.parse(JSON.stringify(e.group)),e.title=e.group.label,e.updateDataTable()}}),e.http.get("../rest/users?mode=all").pipe(Y(function(e){return e.users})).subscribe({next:function(t){e.usersList=t}}))})}},{key:"updateDataTable",value:function(){this.sortedData=this.group.users.slice()}},{key:"openUserList",value:function(e){return qH(this,void 0,void 0,regeneratorRuntime.mark(function e(){var t,n,i;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.modalController.create({component:GH,componentProps:{users:this.group.users}});case 2:return t=e.sent,e.next=5,t.present();case 5:return e.next=7,t.onWillDismiss();case 7:n=e.sent,void 0!==(i=n.data)&&this.linkUser(i);case 10:case"end":return e.stop()}},e,this)}))}},{key:"canValidate",value:function(){return this.group.label!==this.groupClone.label}},{key:"onSubmit",value:function(){this.creationMode?this.createGroup():this.modifyGroup()}},{key:"linkUser",value:function(e){var t=this;this.http.put("../rest/groups/"+this.group.id+"/users",{userId:e.id}).subscribe({next:function(){t.group.users.push(e),t.updateDataTable(),t.notificationService.success("lang.userAdded")}})}},{key:"unlinkUser",value:function(e){return qH(this,void 0,void 0,regeneratorRuntime.mark(function t(){var n,i=this;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(e.id!==this.authService.user.id){t.next=8;break}return t.next=3,this.alertController.create({header:this.translate.instant("lang.confirmMsg"),buttons:[{text:this.translate.instant("lang.no"),role:"cancel",cssClass:"secondary",handler:function(){}},{text:this.translate.instant("lang.yes"),handler:function(){i.deleteUser(e)}}]});case 3:return n=t.sent,t.next=6,n.present();case 6:t.next=9;break;case 8:this.deleteUser(e);case 9:case"end":return t.stop()}},t,this)}))}},{key:"deleteUser",value:function(e){var t=this;this.http.delete("../rest/groups/"+this.group.id+"/users/"+e.id,{}).subscribe({next:function(){var n=t.group.users.findIndex(function(t){return t.id===e.id});t.group.users.splice(n,1),t.updateDataTable(),t.notificationService.success("lang.userDeleted")}})}},{key:"modifyGroup",value:function(){var e=this;this.loading=!0,this.http.put("../rest/groups/"+this.group.id,this.group).subscribe({next:function(){e.router.navigate(["/administration/groups"]),e.notificationService.success("lang.groupUpdated")}})}},{key:"createGroup",value:function(){var e=this;this.loading=!0,this.http.post("../rest/groups",this.group).subscribe({next:function(t){e.router.navigate(["/administration/groups/"+t.id]),e.notificationService.success("lang.groupAdded")}})}},{key:"deleteGroup",value:function(){return qH(this,void 0,void 0,regeneratorRuntime.mark(function e(){var t,n=this;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.alertController.create({header:this.translate.instant("lang.confirmMsg"),buttons:[{text:this.translate.instant("lang.no"),role:"cancel",cssClass:"secondary",handler:function(){}},{text:this.translate.instant("lang.yes"),handler:function(){n.http.delete("../rest/groups/"+n.group.id).subscribe({next:function(){n.router.navigate(["/administration/groups"]),n.notificationService.success("lang.groupDeleted")}})}}]});case 2:return t=e.sent,e.next=5,t.present();case 5:case"end":return e.stop()}},e,this)}))}},{key:"togglePrivilege",value:function(e,t){return qH(this,void 0,void 0,regeneratorRuntime.mark(function n(){var i,r=this;return regeneratorRuntime.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if("manage_groups"!==e.id||!e.checked){n.next=9;break}return t||(e.checked=!e.checked),n.next=4,this.alertController.create({header:this.translate.instant("lang.confirmMsg"),message:this.translate.instant("lang.groupWarnMsg"),buttons:[{text:this.translate.instant("lang.no"),role:"cancel",cssClass:"secondary",handler:function(){e.checked=!e.checked}},{text:this.translate.instant("lang.yes"),handler:function(){r.updatePrivilege(e)}}]});case 4:return i=n.sent,n.next=7,i.present();case 7:n.next=10;break;case 9:t||(e.checked=!e.checked),setTimeout(function(){r.updatePrivilege(e)},200);case 10:case"end":return n.stop()}},n,this)}))}},{key:"updatePrivilege",value:function(e){var t=this;this.http.put("../rest/groups/"+this.group.id+"/privilege/"+e.id,{checked:e.checked}).subscribe({next:function(){t.notificationService.success("lang.privilegeUpdated"),t.authService.updateUserInfoWithTokenRefresh()}})}},{key:"cancel",value:function(){this.router.navigate(["/administration/groups"])}},{key:"sortData",value:function(e){var t=this.group.users.slice();this.sortedData=e.active&&""!==e.direction?t.sort(function(t,n){return function(e,t,n){return(e<t?-1:1)*(n?1:-1)}(t[e.active],n[e.active],"asc"===e.direction)}):t}}]),e}()).\u0275fac=function(e){return new(e||ij)(rs(lb),rs(pE),rs(b_),rs(jk),rs(PE),rs(yE),rs(kB),rs(DE),rs(dP),rs(cP),rs(sP))},ij.\u0275cmp=ft({type:ij,selectors:[["app-administration-group"]],viewQuery:function(e,t){var n;1&e&&(Qu(rz,1),Qu(Az,1)),2&e&&(Zu(n=Ku())&&(t.paginator=n.first),Zu(n=Ku())&&(t.sort=n.first))},decls:27,vars:20,consts:[[3,"translucent"],["color","primary"],["slot","start"],["menu","left-menu"],["id","adminForm",2,"display","contents",3,"ngSubmit"],["adminForm","ngForm"],["color","secondary","position","floating"],["name","label","required","",3,"maxlength","ngModel","ngModelChange"],["lines","none",4,"ngIf"],[2,"display","grid","grid-gap","10px"],["style","cursor: pointer",4,"ngFor","ngForOf"],["style","height: 400px; overflow-y: auto;",4,"ngIf"],["text-center","","lines","none",2,"position","sticky","bottom","0px","z-index","1"],[2,"display","flex","align-items","center","justify-content","center","width","100%","background","white"],["type","submit","shape","round","size","large","fill","outline","color","primary",3,"disabled"],[2,"font-size","13px"],["type","button","shape","round","size","large","fill","outline","color","danger",3,"click",4,"ngIf"],["lines","none"],["color","secondary"],[2,"cursor","pointer"],["slot","start","color","primary",3,"name","checked","ngModel","ngModelChange","click"],[3,"click"],[2,"height","400px","overflow-y","auto"],[2,"position","sticky","top","0px","z-index","1"],["color","primary","matSort","","matSortDirection","asc",2,"display","flex","font-size","12px","align-items","center",3,"matSortActive","matSortChange"],[4,"ngFor","ngForOf"],["style","flex: 1;text-align: right;",4,"ngIf"],["slot","end","fill","clear","shape","round","disabled",""],["approxItemHeight","50px",3,"items"],["style","display: flex;",4,"virtualItem"],["disableClear","","style","flex: 1",3,"mat-sort-header",4,"ngIf"],["disableClear","",2,"flex","1",3,"mat-sort-header"],[2,"flex","1","text-align","right"],["slot","end","color","primary","fille","outline","shape","round",3,"click"],[2,"display","flex"],[2,"display","flex","cursor","pointer",3,"routerLink"],["style","flex: 1",4,"ngFor","ngForOf"],["slot","end","fill","clear","shape","round",3,"title","click"],["color","danger","slot","icon-only","name","close-outline"],[2,"flex","1"],["type","button","shape","round","size","large","fill","outline","color","danger",3,"click"]],template:function(e,t){if(1&e&&(ss(0,"ion-header",0),ss(1,"ion-toolbar",1),ss(2,"ion-buttons",2),us(3,"ion-menu-button",3),us(4,"ion-back-button"),ls(),ss(5,"ion-title"),Qs(6),ls(),ls(),ls(),ss(7,"form",4,5),ms("ngSubmit",function(){return t.onSubmit()}),ss(9,"ion-content"),ss(10,"ion-item"),ss(11,"ion-label",6),Qs(12),Du(13,"translate"),ls(),ss(14,"ion-input",7),ms("ngModelChange",function(e){return t.group.label=e}),ls(),ls(),ns(15,YH,4,3,"ion-item",8),ss(16,"div",9),ns(17,ZH,5,6,"ion-item",10),ls(),ns(18,QH,4,3,"ion-item",8),ns(19,tj,11,4,"ion-card",11),ss(20,"ion-item",12),ss(21,"div",13),ss(22,"ion-button",14),ss(23,"ion-label",15),Qs(24),Du(25,"translate"),ls(),ls(),ns(26,nj,4,3,"ion-button",16),ls(),ls(),ls(),ls()),2&e){var n=is(8);os("translucent",!0),xo(6),Xs(t.title),xo(6),Ks("",Ou(13,16,"lang.label")," *"),xo(2),os("maxlength",128)("ngModel",t.group.label),xo(1),os("ngIf",!t.creationMode),xo(1),Fs("grid-2-col",t.signaturesService.mobileMode)("grid-3-col",!t.signaturesService.mobileMode),xo(1),os("ngForOf",t.group.privileges),xo(1),os("ngIf",!t.creationMode),xo(1),os("ngIf",!t.creationMode),xo(3),os("disabled",!n.form.valid||!t.canValidate()),xo(2),Xs(Ou(25,18,"lang.validate")),xo(2),os("ngIf",!t.creationMode)}},directives:[XC,DS,LC,cS,TC,JS,PS,Zm,fm,Wm,UC,nS,aS,tS,nA,xy,Cy,hm,Ym,mh,gh,RC,ES,Jx,FC,sS,Az,KC,iP,nP,Oz,$S,Uk],pipes:[gE],styles:[".header[_ngcontent-%COMP%]{background:#135f7f;height:95px;color:#fff;padding-left:10px;font-size:25px}.header[_ngcontent-%COMP%], .header-title[_ngcontent-%COMP%]{display:flex;align-items:center}.header-title[_ngcontent-%COMP%]{flex:1;white-space:pre;overflow:hidden;text-overflow:ellipsis}.header[_ngcontent-%COMP%]   b[_ngcontent-%COMP%]{color:#f99830}.header[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis}.mainView[_ngcontent-%COMP%]{display:flex;flex-direction:column}.container[_ngcontent-%COMP%]{flex:1;overflow:auto}.loader[_ngcontent-%COMP%]{position:absolute;z-index:2;display:flex;background:hsla(0,0%,100%,.8);width:100%;height:100%;justify-content:center;align-items:center;top:0;margin:0;padding:0}.admin-form[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:20px}.actions-form[_ngcontent-%COMP%]{display:flex;justify-content:center}@media (max-width:360px){.actions-form[_ngcontent-%COMP%]{flex-direction:column}}.actions-form[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin:10px;width:150px}@media (max-width:360px){.actions-form[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{width:100%}}.noResult[_ngcontent-%COMP%]{padding:10px;text-align:center;opacity:.5}.emptyTable[_ngcontent-%COMP%]{height:auto}.addButton[_ngcontent-%COMP%]{padding:10px;display:flex;justify-content:flex-end}",".privilegesList[_ngcontent-%COMP%]{padding-top:10px;padding-bottom:10px;display:inline-block;width:100%}@media (min-width:768px){.privilegesList[_ngcontent-%COMP%]{width:50%}}@media (min-width:992px){.privilegesList[_ngcontent-%COMP%]{width:33%}}fieldset[_ngcontent-%COMP%]{border:1px solid #f1f4f4;align-items:center;margin-top:30px}legend[_ngcontent-%COMP%]{color:#f99830}.grid-2-col[_ngcontent-%COMP%]{grid-template-columns:repeat(2,1fr)}.grid-3-col[_ngcontent-%COMP%]{grid-template-columns:repeat(3,1fr)}"]}),ij);function oj(e,t){if(1&e&&(ss(0,"ion-select-option",10),Qs(1),Du(2,"translate"),ls()),2&e){var n=t.$implicit;os("value",n.id)("disabled",!n.allowed),xo(1),Ks(" ",Ou(2,3,"lang."+n.id+"Connection"),"")}}function aj(e,t){if(1&e){var n=fs();ss(0,"ion-select",8),ms("ionChange",function(e){return nn(n),ks().changeConnection(e.detail.value)}),Du(1,"translate"),ns(2,oj,3,5,"ion-select-option",9),ls()}if(2&e){var i=ks();Ss("cancelText",Ou(1,3,"lang.cancel")),os("value",i.currentConnection.id),xo(2),os("ngForOf",i.connectionList)}}function sj(e,t){if(1&e&&(ss(0,"ion-col"),ss(1,"ion-button",11),ss(2,"div",12),us(3,"ion-icon",13),ss(4,"ion-label",14),Qs(5),Du(6,"translate"),ls(),ss(7,"ion-note",15),Qs(8),Du(9,"translate"),ls(),ls(),ls(),ls()),2&e){var n=t.$implicit;xo(1),os("routerLink",n.route),xo(2),os("name",n.icon),xo(2),Ks("",Ou(6,4,"lang."+n.id)," "),xo(3),Ks(" ",Ou(9,6,"lang."+n.id+"Desc"),"")}}var lj,uj=((lj=function(){function e(t,n,i,r,o){A(this,e),this.http=t,this.signaturesService=n,this.notificationService=i,this.alertController=r,this.authService=o,this.loading=!0,this.privileges=[{id:"manage_ldap_configurations",icon:"server-sharp",route:"/administration/connections/ldaps"}],this.id=0,this.label="",this.connectionList=[]}return m(e,[{key:"ngOnInit",value:function(){var e=this;this.loading=!0,this.http.get("../rest/configurations",{params:{identifier:"connection"}}).pipe(hw(function(){return e.loading=!1})).subscribe({next:function(t){e.label=t.configurations.label,e.id=t.configurations.id,e.connectionList=t.configurations.availableConnections;var n=e.connectionList.findIndex(function(e){return e.id===t.configurations.value});e.currentConnection=void 0!==e.connectionList[n]?e.connectionList[n]:e.connectionList[0]}})}},{key:"changeConnection",value:function(e){return t=this,i=regeneratorRuntime.mark(function t(){var n=this;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:this.http.patch("../rest/configurations/"+this.id,{label:this.label,value:e}).pipe(hw(function(){return n.loading=!1})).subscribe({next:function(){n.authService.updateUserInfoWithTokenRefresh(),n.notificationService.success("lang.connectionModeUpdated"),n.authService.authMode=e}});case 1:case"end":return t.stop()}},t,this)}),new((n=void 0)||(n=Promise))(function(e,r){function o(e){try{s(i.next(e))}catch(t){r(t)}}function a(e){try{s(i.throw(e))}catch(t){r(t)}}function s(t){var i;t.done?e(t.value):(i=t.value,i instanceof n?i:new n(function(e){e(i)})).then(o,a)}s((i=i.apply(t,[])).next())});var t,n,i}}]),e}()).\u0275fac=function(e){return new(e||lj)(rs(lb),rs(PE),rs(yE),rs(sP),rs(DE))},lj.\u0275cmp=ft({type:lj,selectors:[["app-administration-connection"]],decls:18,vars:9,consts:[[3,"translucent"],["color","primary"],["slot","start"],["menu","left-menu"],["mainContent",""],["color","secondary"],[3,"value","cancelText","ionChange",4,"ngIf"],[4,"ngFor","ngForOf"],[3,"value","cancelText","ionChange"],[3,"value","disabled",4,"ngFor","ngForOf"],[3,"value","disabled"],["expand","block","size","large","fill","outline","color","secondary",2,"height","200px",3,"routerLink"],[1,"admin-content"],["color","primary",2,"font-size","70px",3,"name"],["color","primary",2,"white-space","normal"],[2,"font-size","8px","white-space","normal","padding","10px"]],template:function(e,t){1&e&&(ss(0,"ion-header",0),ss(1,"ion-toolbar",1),ss(2,"ion-buttons",2),us(3,"ion-menu-button",3),us(4,"ion-back-button"),ls(),ss(5,"ion-title"),Qs(6),Du(7,"translate"),ls(),ls(),ls(),ss(8,"ion-content",null,4),ss(10,"ion-item"),ss(11,"ion-label",5),Qs(12),Du(13,"translate"),ls(),ns(14,aj,3,5,"ion-select",6),ls(),ss(15,"ion-grid"),ss(16,"ion-row"),ns(17,sj,10,8,"ion-col",7),ls(),ls(),ls()),2&e&&(os("translucent",!0),xo(6),Xs(Ou(7,5,"lang.manage_connections")),xo(6),Xs(Ou(13,7,"lang.connectionMode")),xo(2),os("ngIf",t.currentConnection),xo(3),os("ngForOf",t.privileges))},directives:[XC,DS,LC,cS,TC,JS,PS,UC,nS,aS,mh,QC,yS,gh,kS,tA,xS,jC,RC,$S,Uk,KC,hS],pipes:[gE],styles:[".header[_ngcontent-%COMP%]{background:#135f7f;height:95px;color:#fff;padding-left:10px;font-size:25px}.header[_ngcontent-%COMP%], .header-title[_ngcontent-%COMP%]{display:flex;align-items:center}.header-title[_ngcontent-%COMP%]{flex:1;white-space:pre;overflow:hidden;text-overflow:ellipsis}.header[_ngcontent-%COMP%]   b[_ngcontent-%COMP%]{color:#f99830}.header[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis}.mainView[_ngcontent-%COMP%]{display:flex;flex-direction:column}.container[_ngcontent-%COMP%]{flex:1;overflow:auto}.loader[_ngcontent-%COMP%]{position:absolute;z-index:2;display:flex;background:hsla(0,0%,100%,.8);width:100%;height:100%;justify-content:center;align-items:center;top:0;margin:0;padding:0}.admin-form[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:20px}.actions-form[_ngcontent-%COMP%]{display:flex;justify-content:center}@media (max-width:360px){.actions-form[_ngcontent-%COMP%]{flex-direction:column}}.actions-form[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin:10px;width:150px}@media (max-width:360px){.actions-form[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{width:100%}}.noResult[_ngcontent-%COMP%]{padding:10px;text-align:center;opacity:.5}.emptyTable[_ngcontent-%COMP%]{height:auto}.addButton[_ngcontent-%COMP%]{padding:10px;display:flex;justify-content:flex-end}",".admin-desc[_ngcontent-%COMP%]{white-space:normal;font-size:10px;line-height:15px;text-align:justify;color:grey;height:60px;overflow:auto}.admin-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center}"]}),lj);function cj(e,t){if(1&e&&(ss(0,"div",15),Qs(1),Du(2,"translate"),ls()),2&e){var n=ks().$implicit;os("mat-sort-header",n),xo(1),Ks(" ",Ou(2,2,"lang."+n)," ")}}function dj(e,t){if(1&e&&(cs(0),ns(1,cj,3,4,"div",14),ds()),2&e){var n=t.$implicit;xo(1),os("ngIf","actions"!==n)}}function hj(e,t){if(1&e){var n=fs();ss(0,"div",16),ss(1,"ion-searchbar",17),ms("ionChange",function(e){return nn(n),ks().applyFilter(e.detail.value)}),Du(2,"translate"),ls(),ls()}2&e&&(xo(1),os("placeholder",Ou(2,1,"lang.filter")))}function fj(e,t){if(1&e&&(ss(0,"div",16),Qs(1),ls()),2&e){var n=t.$implicit,i=ks().$implicit;xo(1),Ks(" ",i[n]," ")}}function pj(e,t){if(1&e){var n=fs();ss(0,"ion-item",7),ss(1,"ion-label",18),ns(2,fj,2,1,"div",19),ls(),ss(3,"ion-button",20),ms("click",function(e){nn(n);var i=t.$implicit,r=ks();return e.stopPropagation(),r.delete(i)}),Du(4,"translate"),us(5,"ion-icon",21),ls(),ls()}if(2&e){var i=t.$implicit,r=ks();xo(1),Ps("routerLink","/administration/connections/ldaps/",i.id,""),xo(1),os("ngForOf",r.displayedColumns),xo(1),Ss("title",Ou(4,3,"lang.delete"))}}var gj,vj=((gj=function(){function e(t,n,i,r,o,a,s,l){A(this,e),this.http=t,this.translate=n,this.latinisePipe=i,this.dialog=r,this.signaturesService=o,this.notificationService=a,this.authService=s,this.alertController=l,this.ldapList=[],this.loading=!0,this.displayedColumns=["label","actions"]}return m(e,[{key:"updateDataTable",value:function(){this.sortedData=this.ldapList.slice()}},{key:"applyFilter",value:function(e){var t=this;e=this.latinisePipe.transform(e.toLowerCase()),this.sortedData=this.ldapList.filter(function(n){var i=!1;return t.displayedColumns.forEach(function(r){n[r]&&t.latinisePipe.transform(n[r].toLowerCase()).includes(e)&&(i=!0)}),i})}},{key:"ngOnInit",value:function(){}},{key:"ionViewWillEnter",value:function(){var e=this;this.http.get("../rest/configurations",{params:{identifier:"ldapServer"}}).pipe(hw(function(){return e.loading=!1})).subscribe({next:function(t){e.ldapList=t.configurations,e.updateDataTable()}})}},{key:"delete",value:function(e){return t=this,i=regeneratorRuntime.mark(function t(){var n,i=this;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.alertController.create({header:this.translate.instant("lang.confirmMsg"),buttons:[{text:this.translate.instant("lang.no"),role:"cancel",cssClass:"secondary",handler:function(){}},{text:this.translate.instant("lang.yes"),handler:function(){i.http.delete("../rest/configurations/"+e.id).pipe(hw(function(){return i.loading=!1})).subscribe({next:function(){var t=i.ldapList.findIndex(function(t){return t.id===e.id});i.ldapList.splice(t,1),i.updateDataTable(),i.notificationService.success("lang.ldapDeleted")}})}}]});case 2:return n=t.sent,t.next=5,n.present();case 5:case"end":return t.stop()}},t,this)}),new((n=void 0)||(n=Promise))(function(e,r){function o(e){try{s(i.next(e))}catch(t){r(t)}}function a(e){try{s(i.throw(e))}catch(t){r(t)}}function s(t){var i;t.done?e(t.value):(i=t.value,i instanceof n?i:new n(function(e){e(i)})).then(o,a)}s((i=i.apply(t,[])).next())});var t,n,i}},{key:"sortData",value:function(e){var t=this.ldapList.slice();this.sortedData=e.active&&""!==e.direction?t.sort(function(t,n){return function(e,t,n){return(e<t?-1:1)*(n?1:-1)}(t[e.active],n[e.active],"asc"===e.direction)}):t}}]),e}()).\u0275fac=function(e){return new(e||gj)(rs(lb),rs(pE),rs(QM),rs(kB),rs(PE),rs(yE),rs(DE),rs(sP))},gj.\u0275cmp=ft({type:gj,selectors:[["app-administration-ldap-list"]],decls:28,vars:18,consts:[[3,"translucent"],["color","primary"],["slot","start"],["menu","left-menu"],["fill","outline","shape","round","routerLink","/administration/connections/ldaps/new"],["slot","end","color","secondary"],["mainContent",""],[2,"display","flex"],["color","primary","matSort","","matSortDirection","asc",2,"display","flex","font-size","12px","align-items","center",3,"matSortActive","matSortChange"],[4,"ngFor","ngForOf"],["style","flex: 1",4,"ngIf"],["slot","end","fill","clear","shape","round","disabled",""],["approxItemHeight","50px",3,"items"],["style","display: flex;",4,"virtualItem"],["disableClear","","style","flex: 1",3,"mat-sort-header",4,"ngIf"],["disableClear","",2,"flex","1",3,"mat-sort-header"],[2,"flex","1"],[2,"padding","1px",3,"placeholder","ionChange"],[2,"display","flex","cursor","pointer",3,"routerLink"],["style","flex: 1",4,"ngFor","ngForOf"],["slot","end","fill","clear","shape","round",3,"title","click"],["color","danger","slot","icon-only","name","trash"]],template:function(e,t){1&e&&(ss(0,"ion-header",0),ss(1,"ion-toolbar",1),ss(2,"ion-buttons",2),us(3,"ion-menu-button",3),us(4,"ion-back-button"),ls(),ss(5,"ion-title"),Qs(6),Du(7,"translate"),Du(8,"translate"),ls(),ls(),ss(9,"ion-toolbar",1),ss(10,"ion-buttons",2),ss(11,"ion-button",4),Qs(12),Du(13,"translate"),ls(),ls(),ss(14,"ion-title",5),Qs(15),Du(16,"translate"),ls(),ls(),ls(),ss(17,"ion-content",null,6),ss(19,"ion-list"),ss(20,"ion-item",7),ss(21,"ion-label",8),ms("matSortChange",function(e){return t.sortData(e)}),ns(22,dj,2,1,"ng-container",9),ns(23,hj,3,3,"div",10),ls(),ss(24,"ion-button",11),us(25,"ion-icon"),ls(),ls(),ss(26,"ion-virtual-scroll",12),ns(27,pj,6,5,"ion-item",13),ls(),ls(),ls()),2&e&&(os("translucent",!0),xo(6),Js("",Ou(7,10,"lang.administration")," ",Ou(8,12,"lang.manage_ldap_configurationsAlt")," "),xo(6),Ks(" ",Ou(13,14,"lang.ldapCreation")," "),xo(3),Js("",t.ldapList.length," ",Ou(16,16,"lang.manage_ldap_configurationsAlt"),""),xo(6),os("matSortActive",t.displayedColumns[0]),xo(1),os("ngForOf",t.displayedColumns),xo(1),os("ngIf",t.displayedColumns.indexOf("actions")>-1),xo(3),os("items",t.sortedData))},directives:[XC,DS,LC,cS,TC,JS,PS,RC,$S,Uk,UC,sS,nS,aS,Az,gh,mh,KC,iP,nP,Oz,bS,nA],pipes:[gE],styles:[".header[_ngcontent-%COMP%]{background:#135f7f;height:95px;color:#fff;padding-left:10px;font-size:25px}.header[_ngcontent-%COMP%], .header-title[_ngcontent-%COMP%]{display:flex;align-items:center}.header-title[_ngcontent-%COMP%]{flex:1;white-space:pre;overflow:hidden;text-overflow:ellipsis}.header[_ngcontent-%COMP%]   b[_ngcontent-%COMP%]{color:#f99830}.header[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis}.mainView[_ngcontent-%COMP%]{display:flex;flex-direction:column}.container[_ngcontent-%COMP%]{flex:1;overflow:auto}.loader[_ngcontent-%COMP%]{position:absolute;z-index:2;display:flex;background:hsla(0,0%,100%,.8);width:100%;height:100%;justify-content:center;align-items:center;top:0;margin:0;padding:0}.admin-form[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:20px}.actions-form[_ngcontent-%COMP%]{display:flex;justify-content:center}@media (max-width:360px){.actions-form[_ngcontent-%COMP%]{flex-direction:column}}.actions-form[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin:10px;width:150px}@media (max-width:360px){.actions-form[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{width:100%}}.noResult[_ngcontent-%COMP%]{padding:10px;text-align:center;opacity:.5}.emptyTable[_ngcontent-%COMP%]{height:auto}.addButton[_ngcontent-%COMP%]{padding:10px;display:flex;justify-content:flex-end}",""]}),gj);function mj(e,t){return t?function(n){return n.pipe(mj(function(n,i){return ie(e(n,i)).pipe(Y(function(e,r){return t(n,e,i,r)}))}))}:function(t){return t.lift(new yj(e))}}var yj=function(){function e(t){A(this,e),this.project=t}return m(e,[{key:"call",value:function(e,t){return t.subscribe(new bj(e,this.project))}}]),e}(),bj=function(e){r(n,e);var t=a(n);function n(e,i){var r;return A(this,n),(r=t.call(this,e)).project=i,r.hasSubscription=!1,r.hasCompleted=!1,r.index=0,r}return m(n,[{key:"_next",value:function(e){this.hasSubscription||this.tryNext(e)}},{key:"tryNext",value:function(e){var t,n=this.index++;try{t=this.project(e,n)}catch(i){return void this.destination.error(i)}this.hasSubscription=!0,this._innerSub(t)}},{key:"_innerSub",value:function(e){var t=new re(this),n=this.destination;n.add(t);var i=ae(e,t);i!==t&&n.add(i)}},{key:"_complete",value:function(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete(),this.unsubscribe()}},{key:"notifyNext",value:function(e){this.destination.next(e)}},{key:"notifyError",value:function(e){this.destination.error(e)}},{key:"notifyComplete",value:function(){this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()}}]),n}(oe);function wj(e,t){1&e&&(cs(0),Qs(1),Du(2,"translate"),ds()),2&e&&(xo(1),Ks(" ",Ou(2,1,"lang.connectionInProgress"),"... "))}function _j(e,t){if(1&e&&(cs(0),Qs(1),ds()),2&e){var n=ks(2);xo(1),Ks(" ",n.ldapTest.result," ")}}function kj(e,t){if(1&e&&(ss(0,"div",16),ns(1,wj,3,3,"ng-container",17),ns(2,_j,2,1,"ng-container",17),ls()),2&e){var n=ks();xo(1),os("ngIf",n.loadingTest),xo(1),os("ngIf",""!==n.ldapTest.result)}}var xj,Aj=((xj=function(){function e(t,n,i,r,o,a){A(this,e),this.http=t,this.translate=n,this.latinisePipe=i,this.dialog=r,this.notificationService=o,this.alertController=a,this.loadingTest=!1}return m(e,[{key:"ngOnInit",value:function(){}},{key:"testLdap",value:function(){var e=this;this.loadingTest=!0,this.ldapTest.result="",this.canValidate?this.http.patch("../rest/configurations/"+this.ldap.id,this.ldap).pipe(uw(function(){e.notificationService.success("lang.ldapUpdated")}),mj(function(){return e.http.get("../rest/configurations/"+e.ldap.id+"/connection",{params:{login:e.ldapTest.login,password:e.ldapTest.password}})}),uw(function(t){e.ldapTest.result=t.informations,t.connection&&e.notificationService.success("lang.ldapConnectionSucceeded")}),hw(function(){return e.loadingTest=!1}),Zb(function(t){return e.notificationService.handleErrors(t),Ty(!1)})).subscribe():this.http.get("../rest/configurations/"+this.ldap.id+"/connection",{params:{login:this.ldapTest.login,password:this.ldapTest.password}}).pipe(uw(function(t){e.ldapTest.result=t.informations,t.connection&&e.notificationService.success("lang.ldapConnectionSucceeded")}),hw(function(){return e.loadingTest=!1}),Zb(function(t){return e.notificationService.handleErrors(t),Ty(!1)})).subscribe()}}]),e}()).\u0275fac=function(e){return new(e||xj)(rs(lb),rs(pE),rs(QM),rs(kB),rs(yE),rs(sP))},xj.\u0275cmp=ft({type:xj,selectors:[["app-check-connection"]],inputs:{ldapTest:"ldapTest",ldap:"ldap",canValidate:"canValidate"},decls:45,vars:28,consts:[[3,"translucent"],["color","primary"],["slot","start"],[2,"display","contents",3,"ngSubmit"],["adminTestForm","ngForm"],["mainContent",""],["color","secondary","position","floating"],["name","login","required","",3,"ngModel","ngModelChange"],["name","password","required","",3,"ngModel","ngModelChange"],["color","secondary"],["name","uri","readonly","",3,"ngModel","ngModelChange"],["name","pathLogin","readonly","",3,"value"],["class","bash",4,"ngIf"],[1,"ion-no-border"],[1,"ion-justify-content-center"],["type","submit","color","primary",3,"disabled"],[1,"bash"],[4,"ngIf"]],template:function(e,t){if(1&e&&(ss(0,"ion-header",0),ss(1,"ion-toolbar",1),ss(2,"ion-buttons",2),us(3,"ion-back-button"),ls(),ss(4,"ion-title"),Qs(5),Du(6,"translate"),ls(),ls(),ls(),ss(7,"form",3,4),ms("ngSubmit",function(){return t.testLdap()}),ss(9,"ion-content",null,5),ss(11,"ion-item"),ss(12,"ion-label",6),Qs(13),Du(14,"translate"),ls(),ss(15,"ion-input",7),ms("ngModelChange",function(e){return t.ldapTest.login=e}),ls(),ls(),ss(16,"ion-item"),ss(17,"ion-label",6),Qs(18),Du(19,"translate"),ls(),ss(20,"ion-input",8),ms("ngModelChange",function(e){return t.ldapTest.password=e}),ls(),ls(),ss(21,"ion-card"),ss(22,"ion-card-header"),ss(23,"ion-card-subtitle",9),Qs(24),Du(25,"translate"),ls(),ls(),ss(26,"ion-card-content"),ss(27,"ion-item"),ss(28,"ion-label",1),Qs(29),Du(30,"translate"),ls(),ss(31,"ion-input",10),ms("ngModelChange",function(e){return t.ldap.value.uri=e}),ls(),ls(),ss(32,"ion-item"),ss(33,"ion-label",1),Qs(34),Du(35,"translate"),ls(),us(36,"ion-input",11),ls(),ns(37,kj,3,2,"div",12),ls(),ls(),ls(),ss(38,"ion-footer",13),ss(39,"ion-toolbar"),ss(40,"ion-buttons",14),ss(41,"ion-button",15),ss(42,"ion-label"),Qs(43),Du(44,"translate"),ls(),ls(),ls(),ls(),ls(),ls()),2&e){var n=is(8);os("translucent",!0),xo(5),Xs(Ou(6,14,"lang.connectionTest")),xo(8),Ks("",Ou(14,16,"lang.login")," *"),xo(2),os("ngModel",t.ldapTest.login),xo(3),Ks("",Ou(19,18,"lang.password")," *"),xo(2),os("ngModel",t.ldapTest.password),xo(4),Ks("",Ou(25,20,"lang.ldapInformations")," :"),xo(5),Ks("",Ou(30,22,"lang.uri")," :"),xo(2),os("ngModel",t.ldap.value.uri),xo(3),Ks("",Ou(35,24,"lang.login")," :"),xo(2),os("value",t.ldap.value.prefix?t.ldap.value.prefix+"\\"+t.ldapTest.login+t.ldap.value.suffix:t.ldapTest.login+t.ldap.value.suffix),xo(1),os("ngIf",""!==t.ldapTest.result||t.loadingTest),xo(4),os("disabled",!n.form.valid||t.loadingTest),xo(2),Xs(Ou(44,26,"lang.connectionTest"))}},directives:[XC,DS,LC,TC,JS,PS,Zm,fm,Wm,UC,nS,aS,tS,nA,xy,hm,Ym,FC,VC,zC,BC,mh,ZC,RC],pipes:[gE],styles:[".bash[_ngcontent-%COMP%]{background:#34495e;height:310px;border-radius:5px;top:40px;display:absolute;color:#fff;padding:10px;margin:10px}"]}),xj);function Cj(e,t){if(1&e){var n=fs();ss(0,"ion-button",18),ms("click",function(){return nn(n),ks().checkConnection()}),ss(1,"ion-label",15),Qs(2),Du(3,"translate"),ls(),ls()}2&e&&(xo(2),Xs(Ou(3,1,"lang.connectionTest")))}function Sj(e,t){if(1&e){var n=fs();ss(0,"ion-button",19),ms("click",function(){return nn(n),ks().delete()}),ss(1,"ion-label",15),Qs(2),Du(3,"translate"),ls(),ls()}if(2&e){var i=ks();os("disabled","ldap"===i.authService.authMode&&1===i.ldap.count),xo(2),Xs(Ou(3,2,"lang.delete"))}}var Pj,Ej=((Pj=function(){function e(t,n,i,r,o,a,s,l,u){A(this,e),this.http=t,this.translate=n,this.route=i,this.router=r,this.signaturesService=o,this.notificationService=a,this.dialog=s,this.authService=l,this.modalController=u,this.creationMode=!0,this.loading=!0,this.loadingTest=!1,this.ldapTest={login:"",password:"",result:""},this.ldap={id:0,label:"",identifier:"ldapServer",value:{uri:"",ssl:!1,prefix:"",suffix:"",baseDN:""}},this.title=""}return m(e,[{key:"ngOnInit",value:function(){var e=this;this.ldapTest.login=this.authService.user.login,this.route.params.subscribe(function(t){void 0===t.id?(e.creationMode=!0,e.title=e.translate.instant("lang.ldapCreation"),e.loading=!1):(e.creationMode=!1,e.http.get("../rest/configurations/"+t.id).pipe(Y(function(e){return e.configuration}),hw(function(){return e.loading=!1})).subscribe({next:function(t){e.ldap=t,e.ldapClone=JSON.parse(JSON.stringify(e.ldap)),e.title=e.ldap.label}}))})}},{key:"canValidate",value:function(){return JSON.stringify(this.ldap)!==JSON.stringify(this.ldapClone)}},{key:"onSubmit",value:function(){this.creationMode?this.createLdap():this.modifyLdap()}},{key:"modifyLdap",value:function(){var e=this;this.loading=!0,this.http.patch("../rest/configurations/"+this.ldap.id,this.ldap).pipe(hw(function(){return e.loading=!1})).subscribe({next:function(){e.router.navigate(["/administration/connections/ldaps"]),e.notificationService.success("lang.ldapUpdated")}})}},{key:"createLdap",value:function(){var e=this;this.loading=!0,this.http.post("../rest/configurations",this.ldap).pipe(hw(function(){return e.loading=!1})).subscribe({next:function(){e.router.navigate(["/administration/connections/ldaps"]),e.notificationService.success("lang.ldapAdded")}})}},{key:"delete",value:function(){var e=this;this.dialog.open(_H,{autoFocus:!1,data:{mode:"",title:"lang.confirmMsg",msg:""}}).afterClosed().subscribe(function(t){"yes"===t&&(e.loading=!0,e.http.delete("../rest/configurations/"+e.ldap.id).pipe(hw(function(){return e.loading=!1})).subscribe({next:function(){e.router.navigate(["/administration/connections/ldaps"]),e.notificationService.success("lang.ldapDeleted")}}))})}},{key:"cancel",value:function(){this.router.navigate(["/administration/connections/ldaps"])}},{key:"checkConnection",value:function(e){return t=this,i=regeneratorRuntime.mark(function e(){var t;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.modalController.create({component:Aj,componentProps:{ldapTest:this.ldapTest,ldap:this.ldap,canValidate:this.canValidate()}});case 2:return t=e.sent,e.next=5,t.present();case 5:case"end":return e.stop()}},e,this)}),new((n=void 0)||(n=Promise))(function(e,r){function o(e){try{s(i.next(e))}catch(t){r(t)}}function a(e){try{s(i.throw(e))}catch(t){r(t)}}function s(t){var i;t.done?e(t.value):(i=t.value,i instanceof n?i:new n(function(e){e(i)})).then(o,a)}s((i=i.apply(t,[])).next())});var t,n,i}}]),e}()).\u0275fac=function(e){return new(e||Pj)(rs(lb),rs(pE),rs(b_),rs(jk),rs(PE),rs(yE),rs(kB),rs(DE),rs(cP))},Pj.\u0275cmp=ft({type:Pj,selectors:[["app-administration-ldap"]],decls:49,vars:28,consts:[[3,"translucent"],["color","primary"],["slot","start"],["menu","left-menu"],["id","adminForm",2,"display","contents",3,"ngSubmit"],["adminForm","ngForm"],["color","secondary","position","floating"],["name","label","required","",3,"ngModel","ngModelChange"],["name","uri","required","",3,"ngModel","ngModelChange"],["name","baseDN",3,"ngModel","ngModelChange"],["name","prefix",3,"ngModel","ngModelChange"],["name","suffix",3,"ngModel","ngModelChange"],["text-center","","lines","none",2,"position","sticky","bottom","0px","z-index","1"],[2,"display","flex","align-items","center","justify-content","center","width","100%","background","white"],["type","submit","shape","round","size","large","fill","outline","color","primary",3,"disabled"],[2,"font-size","13px"],["type","button","shape","round","size","large","fill","outline","color","medium",3,"click",4,"ngIf"],["type","button","shape","round","size","large","fill","outline","color","danger",3,"disabled","click",4,"ngIf"],["type","button","shape","round","size","large","fill","outline","color","medium",3,"click"],["type","button","shape","round","size","large","fill","outline","color","danger",3,"disabled","click"]],template:function(e,t){if(1&e&&(ss(0,"ion-header",0),ss(1,"ion-toolbar",1),ss(2,"ion-buttons",2),us(3,"ion-menu-button",3),us(4,"ion-back-button"),ls(),ss(5,"ion-title"),Qs(6),ls(),ls(),ls(),ss(7,"form",4,5),ms("ngSubmit",function(){return t.onSubmit()}),ss(9,"ion-content"),ss(10,"ion-item"),ss(11,"ion-label",6),Qs(12),Du(13,"translate"),ls(),ss(14,"ion-input",7),ms("ngModelChange",function(e){return t.ldap.label=e}),ls(),ls(),ss(15,"ion-item"),ss(16,"ion-label",6),Qs(17),Du(18,"translate"),ls(),ss(19,"ion-input",8),ms("ngModelChange",function(e){return t.ldap.value.uri=e}),ls(),ls(),ss(20,"ion-item"),ss(21,"ion-label",6),Qs(22),Du(23,"translate"),ls(),ss(24,"ion-input",9),ms("ngModelChange",function(e){return t.ldap.value.baseDN=e}),ls(),ss(25,"ion-note"),Qs(26,"ex: dc=maarch,dc=com"),ls(),ls(),ss(27,"ion-item"),ss(28,"ion-label",6),Qs(29),Du(30,"translate"),ls(),ss(31,"ion-input",10),ms("ngModelChange",function(e){return t.ldap.value.prefix=e}),ls(),ss(32,"ion-note"),Qs(33,"ex: MAARCH"),ls(),ls(),ss(34,"ion-item"),ss(35,"ion-label",6),Qs(36),Du(37,"translate"),ls(),ss(38,"ion-input",11),ms("ngModelChange",function(e){return t.ldap.value.suffix=e}),ls(),ss(39,"ion-note"),Qs(40,"ex: @maarch.com"),ls(),ls(),ss(41,"ion-item",12),ss(42,"div",13),ss(43,"ion-button",14),ss(44,"ion-label",15),Qs(45),Du(46,"translate"),ls(),ls(),ns(47,Cj,4,3,"ion-button",16),ns(48,Sj,4,4,"ion-button",17),ls(),ls(),ls(),ls()),2&e){var n=is(8);os("translucent",!0),xo(6),Xs(t.title),xo(6),Ks("",Ou(13,16,"lang.label")," *"),xo(2),os("ngModel",t.ldap.label),xo(3),Ks("",Ou(18,18,"lang.uri")," *"),xo(2),os("ngModel",t.ldap.value.uri),xo(3),Xs(Ou(23,20,"lang.baseDN")),xo(2),os("ngModel",t.ldap.value.baseDN),xo(5),Xs(Ou(30,22,"lang.prefix")),xo(2),os("ngModel",t.ldap.value.prefix),xo(5),Xs(Ou(37,24,"lang.suffix")),xo(2),os("ngModel",t.ldap.value.suffix),xo(5),os("disabled",!n.form.valid||!t.canValidate()),xo(2),Xs(Ou(46,26,"lang.validate")),xo(2),os("ngIf",!t.creationMode),xo(1),os("ngIf",!t.creationMode)}},directives:[XC,DS,LC,cS,TC,JS,PS,Zm,fm,Wm,UC,nS,aS,tS,nA,xy,hm,Ym,hS,RC,mh],pipes:[gE],styles:[".header[_ngcontent-%COMP%]{background:#135f7f;height:95px;color:#fff;padding-left:10px;font-size:25px}.header[_ngcontent-%COMP%], .header-title[_ngcontent-%COMP%]{display:flex;align-items:center}.header-title[_ngcontent-%COMP%]{flex:1;white-space:pre;overflow:hidden;text-overflow:ellipsis}.header[_ngcontent-%COMP%]   b[_ngcontent-%COMP%]{color:#f99830}.header[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis}.mainView[_ngcontent-%COMP%]{display:flex;flex-direction:column}.container[_ngcontent-%COMP%]{flex:1;overflow:auto}.loader[_ngcontent-%COMP%]{position:absolute;z-index:2;display:flex;background:hsla(0,0%,100%,.8);width:100%;height:100%;justify-content:center;align-items:center;top:0;margin:0;padding:0}.admin-form[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:20px}.actions-form[_ngcontent-%COMP%]{display:flex;justify-content:center}@media (max-width:360px){.actions-form[_ngcontent-%COMP%]{flex-direction:column}}.actions-form[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin:10px;width:150px}@media (max-width:360px){.actions-form[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{width:100%}}.noResult[_ngcontent-%COMP%]{padding:10px;text-align:center;opacity:.5}.emptyTable[_ngcontent-%COMP%]{height:auto}.addButton[_ngcontent-%COMP%]{padding:10px;display:flex;justify-content:flex-end}",""]}),Pj);function Dj(e,t){if(1&e&&(ss(0,"ion-item"),us(1,"ion-icon",13),ss(2,"ion-label",14),Qs(3),Du(4,"translate"),ls(),ls()),2&e){var n=ks();xo(1),os("color","close-outline"===n.emailSendResult.icon?"danger":"primary")("name",n.emailSendResult.icon),xo(1),os("color","close-outline"===n.emailSendResult.icon?"danger":"primary"),xo(1),Xs(Ou(4,4,n.emailSendResult.msg))}}function Oj(e,t){if(1&e&&(ss(0,"div",15),Qs(1),ls()),2&e){var n=ks();xo(1),Ks(" ",n.emailSendResult.debug," ")}}var Mj,Tj=((Mj=function(){function e(t,n,i,r,o){A(this,e),this.http=t,this.translate=n,this.dialog=i,this.notificationService=r,this.alertController=o,this.emailSendLoading=!1,this.emailSendResult={icon:"",msg:"",debug:"",error:!1}}return m(e,[{key:"ngOnInit",value:function(){}},{key:"testEmailSend",value:function(){var e=this;this.emailSendResult={icon:"paper-plane-outline",msg:"lang.emailSendInProgress",debug:"",error:!1};var t={sender:this.sendmailFrom,recipients:[this.recipientTest],subject:"["+this.translate.instant("lang.doNotReply")+"] "+this.translate.instant("lang.emailSendTest"),status:"EXPRESS",body:this.translate.instant("lang.emailSendTest"),isHtml:!1};this.emailSendLoading=!0,this.http.post("../rest/emails",t).pipe(uw(function(t){e.emailSendResult=t.isSent?{icon:"checkmark-outline",msg:"lang.emailSendSuccess",debug:"",error:!1}:{icon:"close-outline",msg:"lang.emailSendFailed",debug:t.informations,error:!0}}),hw(function(){return e.emailSendLoading=!1})).subscribe()}}]),e}()).\u0275fac=function(e){return new(e||Mj)(rs(lb),rs(pE),rs(kB),rs(yE),rs(sP))},Mj.\u0275cmp=ft({type:Mj,selectors:[["app-check-email-connection"]],inputs:{profileInfo:"profileInfo",sendmailFrom:"sendmailFrom",recipientTest:"recipientTest"},decls:25,vars:15,consts:[[3,"translucent"],["color","primary"],["slot","start"],[2,"display","contents",3,"ngSubmit"],["adminTestForm","ngForm"],["mainContent",""],["color","secondary","position","floating"],["name","recipientTest","required","","pattern","(^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\\.[a-zA-Z0-9-.]+$)",3,"ngModel","disabled","ngModelChange"],[4,"ngIf"],["class","bash",4,"ngIf"],[1,"ion-no-border"],[1,"ion-justify-content-center"],["type","submit","color","primary",3,"disabled"],["slot","start",3,"color","name"],[3,"color"],[1,"bash"]],template:function(e,t){if(1&e&&(ss(0,"ion-header",0),ss(1,"ion-toolbar",1),ss(2,"ion-buttons",2),us(3,"ion-back-button"),ls(),ss(4,"ion-title"),Qs(5),Du(6,"translate"),ls(),ls(),ls(),ss(7,"form",3,4),ms("ngSubmit",function(){return t.testEmailSend()}),ss(9,"ion-content",null,5),ss(11,"ion-item"),ss(12,"ion-label",6),Qs(13),Du(14,"translate"),ls(),ss(15,"ion-input",7),ms("ngModelChange",function(e){return t.recipientTest=e}),ls(),ls(),ns(16,Dj,5,6,"ion-item",8),ns(17,Oj,2,1,"div",9),ls(),ss(18,"ion-footer",10),ss(19,"ion-toolbar"),ss(20,"ion-buttons",11),ss(21,"ion-button",12),ss(22,"ion-label"),Qs(23),Du(24,"translate"),ls(),ls(),ls(),ls(),ls(),ls()),2&e){var n=is(8);os("translucent",!0),xo(5),Xs(Ou(6,9,"lang.emailSendTest")),xo(8),Ks("",Ou(14,11,"lang.mailTo")," *"),xo(2),os("ngModel",t.recipientTest)("disabled",t.emailSendLoading),xo(1),os("ngIf",""!=t.emailSendResult.msg),xo(1),os("ngIf",t.emailSendResult.error),xo(4),os("disabled",!n.form.valid||t.emailSendLoading),xo(2),Xs(Ou(24,13,"lang.connectionTest"))}},directives:[XC,DS,LC,TC,JS,PS,Zm,fm,Wm,UC,nS,aS,tS,nA,xy,Py,hm,Ym,mh,ZC,RC,KC],pipes:[gE],styles:[".bash[_ngcontent-%COMP%]{background:#34495e;height:310px;border-radius:5px;top:40px;display:absolute;color:#fff;padding:10px;margin:10px}"]}),Mj);function Ij(e,t){if(1&e&&(ss(0,"ion-select-option",27),Qs(1),Du(2,"translate"),ls()),2&e){var n=t.$implicit;os("value",n.id),xo(1),Ks("",Ou(2,2,n.label)," ")}}function Rj(e,t){if(1&e&&(ss(0,"ion-select-option",27),Qs(1),Du(2,"translate"),ls()),2&e){var n=t.$implicit;os("value",n.id),xo(1),Ks(" ",Ou(2,2,n.label)," ")}}function Lj(e,t){if(1&e){var n=fs();ss(0,"form",5,6),ms("ngSubmit",function(){return nn(n),ks().onSubmit()}),ss(2,"ion-content"),ss(3,"ion-item"),ss(4,"ion-label",7),Qs(5),Du(6,"translate"),ls(),ss(7,"ion-select",8),ms("ngModelChange",function(e){return nn(n),ks().sendmail.type=e}),ns(8,Ij,3,4,"ion-select-option",9),ls(),ls(),ss(9,"ion-grid"),ss(10,"ion-row"),ss(11,"ion-col",10),ss(12,"ion-item"),ss(13,"ion-label",7),Qs(14),Du(15,"translate"),ls(),ss(16,"ion-select",11),ms("ngModelChange",function(e){return nn(n),ks().sendmail.secure=e}),ns(17,Rj,3,4,"ion-select-option",9),ls(),ls(),ls(),ss(18,"ion-col",12),ss(19,"ion-item"),ss(20,"ion-label",7),Qs(21),Du(22,"translate"),ls(),ss(23,"ion-input",13),ms("ngModelChange",function(e){return nn(n),ks().sendmail.host=e}),ls(),ls(),ls(),ss(24,"ion-col",10),ss(25,"ion-item"),ss(26,"ion-label",7),Qs(27),Du(28,"translate"),ls(),ss(29,"ion-input",14),ms("ngModelChange",function(e){return nn(n),ks().sendmail.port=e}),ls(),ls(),ls(),ls(),ls(),ss(30,"ion-item"),ss(31,"ion-toggle",15),ms("ngModelChange",function(e){return nn(n),ks().sendmail.auth=e})("ngModelChange",function(){return nn(n),ks().cleanAuthInfo()}),ls(),ss(32,"ion-label"),Qs(33),Du(34,"translate"),ls(),ls(),ss(35,"ion-item"),ss(36,"ion-label",7),Qs(37),Du(38,"translate"),ls(),ss(39,"ion-input",16),ms("ngModelChange",function(e){return nn(n),ks().sendmail.user=e}),ls(),ls(),ss(40,"ion-item",17),ss(41,"ion-button",18),ms("click",function(){nn(n);var e=ks();return e.hidePassword=!e.hidePassword}),us(42,"ion-icon",19),ls(),ss(43,"ion-label",7),Qs(44),ls(),ss(45,"ion-input",20),ms("ngModelChange",function(e){return nn(n),ks().sendmail.password=e}),ls(),ls(),ss(46,"ion-item"),ss(47,"ion-label",7),Qs(48),Du(49,"translate"),ls(),ss(50,"ion-input",21),ms("ngModelChange",function(e){return nn(n),ks().sendmail.from=e}),ls(),ls(),ss(51,"ion-item",22),ss(52,"div",23),ss(53,"ion-button",24),ms("click",function(){return nn(n),ks().checkConnection()}),ss(54,"ion-label",25),Qs(55),Du(56,"translate"),ls(),ls(),ss(57,"ion-button",26),ss(58,"ion-label",25),Qs(59),Du(60,"translate"),ls(),ls(),ls(),ls(),ls(),ls()}if(2&e){var i=is(1),r=ks();xo(5),Ks("",Ou(6,34,"lang.configurationType")," *"),xo(2),os("ngModel",r.sendmail.type),xo(1),os("ngForOf",r.smtpTypeList),xo(6),Ks("",Ou(15,36,"lang.smtpAuth")," * "),xo(2),os("disabled","smtp"!=r.sendmail.type)("ngModel",r.sendmail.secure)("value",r.sendmail.secure),xo(1),os("ngForOf",r.smtpSecList),xo(4),Ks("",Ou(22,38,"lang.host")," *"),xo(2),os("disabled","smtp"!=r.sendmail.type)("ngModel",r.sendmail.host),xo(4),Ks("",Ou(28,40,"lang.port")," *"),xo(2),os("disabled","smtp"!=r.sendmail.type)("ngModel",r.sendmail.port),xo(2),os("ngModel",r.sendmail.auth)("checked",r.sendmail.auth)("disabled","smtp"!=r.sendmail.type),xo(2),Xs(Ou(34,42,"lang.enableAuth")),xo(4),Ks("",Ou(38,44,"lang.id")," *"),xo(2),os("ngModel",r.sendmail.user)("disabled",!r.sendmail.auth||"smtp"!=r.sendmail.type),xo(3),os("name",r.hidePassword?"eye-outline":"eye-off-outline"),xo(2),Js("",r.passwordLanguage," ",r.sendmail.passwordAlreadyExists?"":"*",""),xo(1),os("type",r.hidePassword?"password":"text")("ngModel",r.sendmail.password)("disabled",!r.sendmail.auth||"smtp"!=r.sendmail.type)("required",!r.sendmail.passwordAlreadyExists),xo(3),Xs(Ou(49,46,"lang.mailFrom")),xo(2),os("ngModel",r.sendmail.from)("disabled","smtp"!=r.sendmail.type),xo(5),Xs(Ou(56,48,"lang.connectionTest")),xo(2),os("disabled",!i.form.valid||!r.canValidate()),xo(2),Xs(Ou(60,50,"lang.validate"))}}var Fj,Bj=((Fj=function(){function e(t,n,i,r,o,a,s,l){A(this,e),this.http=t,this.translate=n,this.route=i,this.signaturesService=r,this.notificationService=o,this.dialog=a,this.authService=s,this.modalController=l,this.loading=!0,this.title="",this.passwordLanguage="",this.hidePassword=!0,this.smtpTypeList=[{id:"smtp",label:"lang.smtpclient"},{id:"sendmail",label:"lang.smtprelay"},{id:"qmail",label:"lang.qmail"},{id:"mail",label:"lang.phpmail"}],this.smtpSecList=[{id:"",label:"lang.none"},{id:"ssl",label:"ssl"},{id:"tls",label:"tls"}]}return m(e,[{key:"ngOnInit",value:function(){var e=this;this.route.params.subscribe(function(){e.http.get("../rest/configurations/1").pipe(Y(function(e){return e.configuration}),hw(function(){return e.loading=!1})).subscribe({next:function(t){e.sendmail=t.value,e.sendmailLabel=t.label,e.sendmailClone=JSON.parse(JSON.stringify(e.sendmail)),e.title=e.translate.instant("lang.manage_email_configuration"),e.passwordLanguage=e.translate.instant(e.sendmail.passwordAlreadyExists?"lang.passwordModification":"lang.password")}})})}},{key:"canValidate",value:function(){return JSON.stringify(this.sendmail)!==JSON.stringify(this.sendmailClone)}},{key:"onSubmit",value:function(){var e=this;this.loading=!0,this.http.patch("../rest/configurations/1",{value:this.sendmail,label:this.sendmailLabel}).pipe(hw(function(){return e.loading=!1})).subscribe({next:function(){e.sendmailClone=JSON.parse(JSON.stringify(e.sendmail)),e.notificationService.success("lang.emailConfigurationUpdated")}})}},{key:"cleanAuthInfo",value:function(){this.sendmail.passwordAlreadyExists=!1,this.sendmail.user="",this.sendmail.password=""}},{key:"checkConnection",value:function(e){return t=this,i=regeneratorRuntime.mark(function e(){var t,n;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=JSON.parse(JSON.stringify(this.authService.user)),JSON.stringify(this.sendmailClone)!==JSON.stringify(this.sendmail)&&this.onSubmit(),e.next=4,this.modalController.create({component:Tj,componentProps:{sendmailFrom:this.sendmail.from,recipientTest:t.email}});case 4:return n=e.sent,e.next=7,n.present();case 7:case"end":return e.stop()}},e,this)}),new((n=void 0)||(n=Promise))(function(e,r){function o(e){try{s(i.next(e))}catch(t){r(t)}}function a(e){try{s(i.throw(e))}catch(t){r(t)}}function s(t){var i;t.done?e(t.value):(i=t.value,i instanceof n?i:new n(function(e){e(i)})).then(o,a)}s((i=i.apply(t,[])).next())});var t,n,i}}]),e}()).\u0275fac=function(e){return new(e||Fj)(rs(lb),rs(pE),rs(b_),rs(PE),rs(yE),rs(kB),rs(DE),rs(cP))},Fj.\u0275cmp=ft({type:Fj,selectors:[["app-administration-sendmail"]],decls:8,vars:3,consts:[[3,"translucent"],["color","primary"],["slot","start"],["menu","left-menu"],["style","display: contents;","id","sendmailForm",3,"ngSubmit",4,"ngIf"],["id","sendmailForm",2,"display","contents",3,"ngSubmit"],["sendmailForm","ngForm"],["color","secondary","position","floating"],["name","smtpType","interface","popover","required","",3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],["size","2"],["name","SMTPSecure","interface","popover","required","",3,"disabled","ngModel","value","ngModelChange"],["size","8"],["name","host","required","",3,"disabled","ngModel","ngModelChange"],["type","number","name","port","required","",3,"disabled","ngModel","ngModelChange"],["name","SMTPAuth",3,"ngModel","checked","disabled","ngModelChange"],["name","user","required","",3,"ngModel","disabled","ngModelChange"],[2,"align-items","center"],["slot","end","fill","clear","color","primary",3,"click"],["color","primary",3,"name"],["name","password",3,"type","ngModel","disabled","required","ngModelChange"],["name","mailFrom","pattern","(^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\\.[a-zA-Z0-9-.]+$)",3,"ngModel","disabled","ngModelChange"],["text-center","","lines","none",2,"position","sticky","bottom","0px","z-index","1"],[2,"display","flex","align-items","center","justify-content","center","width","100%","background","white"],["type","button","shape","round","size","large","fill","outline","color","medium",3,"click"],[2,"font-size","13px"],["type","submit","shape","round","size","large","fill","outline","color","primary",3,"disabled"],[3,"value"]],template:function(e,t){1&e&&(ss(0,"ion-header",0),ss(1,"ion-toolbar",1),ss(2,"ion-buttons",2),us(3,"ion-menu-button",3),us(4,"ion-back-button"),ls(),ss(5,"ion-title"),Qs(6),ls(),ls(),ls(),ns(7,Lj,61,52,"form",4)),2&e&&(os("translucent",!0),xo(6),Xs(t.title),xo(1),os("ngIf",!t.loading))},directives:[XC,DS,LC,cS,TC,JS,PS,mh,Zm,fm,Wm,UC,nS,aS,kS,tA,xy,hm,Ym,gh,QC,yS,jC,tS,nA,$x,ES,Jx,RC,KC,Py,xS],pipes:[gE],styles:[".testSendTo[_ngcontent-%COMP%]{width:95%;margin-top:10px;margin-left:10px}.bash[_ngcontent-%COMP%]{background:#34495e;height:310px;border-radius:5px;top:40px;display:absolute;color:#fff;padding:10px;margin:10px;word-wrap:break-word}.panel-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;position:relative;height:100%;overflow:hidden}.panel-header[_ngcontent-%COMP%]{box-shadow:0 0 10px 0 #656565;color:#fff;background:#135f7f;height:95px;display:flex;justify-content:center;position:relative;font-size:25px;align-items:center}.panel-content[_ngcontent-%COMP%]{flex:1;overflow:auto}.cancel[_ngcontent-%COMP%]{position:absolute;top:10px;left:0;height:65px;width:65px;font-size:35px;color:#fff}.auth-container[_ngcontent-%COMP%]{display:flex}.auth-container[_ngcontent-%COMP%]   .auth-1[_ngcontent-%COMP%]{width:100px;padding-right:10px}.auth-container[_ngcontent-%COMP%]   .auth-2[_ngcontent-%COMP%]{flex:1}.auth-container[_ngcontent-%COMP%]   .auth-3[_ngcontent-%COMP%]{width:50px;padding-left:10px}@media (max-width:360px){.auth-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}.auth-container[_ngcontent-%COMP%]   .auth-1[_ngcontent-%COMP%]{width:100%;padding-right:0}.auth-container[_ngcontent-%COMP%]   .auth-2[_ngcontent-%COMP%]{width:100%;flex:1}.auth-container[_ngcontent-%COMP%]   .auth-3[_ngcontent-%COMP%]{width:100%;padding-left:0}}"]}),Fj);function Vj(e,t,n){this.x=e,this.y=t,this.time=n||(new Date).getTime()}function zj(e,t,n,i){this.startPoint=e,this.control1=t,this.control2=n,this.endPoint=i}function Nj(e,t){var n=this,i=t||{};this.velocityFilterWeight=i.velocityFilterWeight||.7,this.minWidth=i.minWidth||.5,this.maxWidth=i.maxWidth||2.5,this.throttle="throttle"in i?i.throttle:16,this.minDistance="minDistance"in i?i.minDistance:5,this._strokeMoveUpdate=this.throttle?function(e,t,n){var i,r,o,a=null,s=0;n||(n={});var l=function(){s=!1===n.leading?0:Date.now(),a=null,o=e.apply(i,r),a||(i=r=null)};return function(){var u=Date.now();s||!1!==n.leading||(s=u);var c=t-(u-s);return i=this,r=arguments,c<=0||c>t?(a&&(clearTimeout(a),a=null),s=u,o=e.apply(i,r),a||(i=r=null)):a||!1===n.trailing||(a=setTimeout(l,c)),o}}(Nj.prototype._strokeUpdate,this.throttle):Nj.prototype._strokeUpdate,this.dotSize=i.dotSize||function(){return(this.minWidth+this.maxWidth)/2},this.penColor=i.penColor||"black",this.backgroundColor=i.backgroundColor||"rgba(0,0,0,0)",this.onBegin=i.onBegin,this.onEnd=i.onEnd,this._canvas=e,this._ctx=e.getContext("2d"),this.clear(),this._handleMouseDown=function(e){1===e.which&&(n._mouseButtonDown=!0,n._strokeBegin(e))},this._handleMouseMove=function(e){n._mouseButtonDown&&n._strokeMoveUpdate(e)},this._handleMouseUp=function(e){1===e.which&&n._mouseButtonDown&&(n._mouseButtonDown=!1,n._strokeEnd(e))},this._handleTouchStart=function(e){1===e.targetTouches.length&&n._strokeBegin(e.changedTouches[0])},this._handleTouchMove=function(e){e.preventDefault(),n._strokeMoveUpdate(e.targetTouches[0])},this._handleTouchEnd=function(e){e.target===n._canvas&&(e.preventDefault(),n._strokeEnd(e))},this.on()}Vj.prototype.velocityFrom=function(e){return this.time!==e.time?this.distanceTo(e)/(this.time-e.time):1},Vj.prototype.distanceTo=function(e){return Math.sqrt(Math.pow(this.x-e.x,2)+Math.pow(this.y-e.y,2))},Vj.prototype.equals=function(e){return this.x===e.x&&this.y===e.y&&this.time===e.time},zj.prototype.length=function(){for(var e=0,t=void 0,n=void 0,i=0;i<=10;i+=1){var r=i/10,o=this._point(r,this.startPoint.x,this.control1.x,this.control2.x,this.endPoint.x),a=this._point(r,this.startPoint.y,this.control1.y,this.control2.y,this.endPoint.y);if(i>0){var s=o-t,l=a-n;e+=Math.sqrt(s*s+l*l)}t=o,n=a}return e},zj.prototype._point=function(e,t,n,i,r){return t*(1-e)*(1-e)*(1-e)+3*n*(1-e)*(1-e)*e+3*i*(1-e)*e*e+r*e*e*e},Nj.prototype.clear=function(){var e=this._ctx,t=this._canvas;e.fillStyle=this.backgroundColor,e.clearRect(0,0,t.width,t.height),e.fillRect(0,0,t.width,t.height),this._data=[],this._reset(),this._isEmpty=!0},Nj.prototype.fromDataURL=function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=new Image,r=n.ratio||window.devicePixelRatio||1,o=n.width||this._canvas.width/r,a=n.height||this._canvas.height/r;this._reset(),i.src=e,i.onload=function(){t._ctx.drawImage(i,0,0,o,a)},this._isEmpty=!1},Nj.prototype.toDataURL=function(e){var t;switch(e){case"image/svg+xml":return this._toSVG();default:for(var n=arguments.length,i=Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];return(t=this._canvas).toDataURL.apply(t,[e].concat(i))}},Nj.prototype.on=function(){this._handleMouseEvents(),this._handleTouchEvents()},Nj.prototype.off=function(){this._canvas.removeEventListener("mousedown",this._handleMouseDown),this._canvas.removeEventListener("mousemove",this._handleMouseMove),document.removeEventListener("mouseup",this._handleMouseUp),this._canvas.removeEventListener("touchstart",this._handleTouchStart),this._canvas.removeEventListener("touchmove",this._handleTouchMove),this._canvas.removeEventListener("touchend",this._handleTouchEnd)},Nj.prototype.isEmpty=function(){return this._isEmpty},Nj.prototype._strokeBegin=function(e){this._data.push([]),this._reset(),this._strokeUpdate(e),"function"==typeof this.onBegin&&this.onBegin(e)},Nj.prototype._strokeUpdate=function(e){var t=this._createPoint(e.clientX,e.clientY),n=this._data[this._data.length-1],i=n&&n[n.length-1],r=i&&t.distanceTo(i)<this.minDistance;if(!i||!r){var o=this._addPoint(t),a=o.curve,s=o.widths;a&&s&&this._drawCurve(a,s.start,s.end),this._data[this._data.length-1].push({x:t.x,y:t.y,time:t.time,color:this.penColor})}},Nj.prototype._strokeEnd=function(e){var t=this.points[0];if(!(this.points.length>2)&&t&&this._drawDot(t),t){var n=this._data[this._data.length-1];t.equals(n[n.length-1])||n.push({x:t.x,y:t.y,time:t.time,color:this.penColor})}"function"==typeof this.onEnd&&this.onEnd(e)},Nj.prototype._handleMouseEvents=function(){this._mouseButtonDown=!1,this._canvas.addEventListener("mousedown",this._handleMouseDown),this._canvas.addEventListener("mousemove",this._handleMouseMove),document.addEventListener("mouseup",this._handleMouseUp)},Nj.prototype._handleTouchEvents=function(){this._canvas.style.msTouchAction="none",this._canvas.style.touchAction="none",this._canvas.addEventListener("touchstart",this._handleTouchStart),this._canvas.addEventListener("touchmove",this._handleTouchMove),this._canvas.addEventListener("touchend",this._handleTouchEnd)},Nj.prototype._reset=function(){this.points=[],this._lastVelocity=0,this._lastWidth=(this.minWidth+this.maxWidth)/2,this._ctx.fillStyle=this.penColor},Nj.prototype._createPoint=function(e,t,n){var i=this._canvas.getBoundingClientRect();return new Vj(e-i.left,t-i.top,n||(new Date).getTime())},Nj.prototype._addPoint=function(e){var t=this.points,n=void 0;if(t.push(e),t.length>2){3===t.length&&t.unshift(t[0]);var i=(n=this._calculateCurveControlPoints(t[0],t[1],t[2])).c2;n=this._calculateCurveControlPoints(t[1],t[2],t[3]);var r=new zj(t[1],i,n.c1,t[2]),o=this._calculateCurveWidths(r);return t.shift(),{curve:r,widths:o}}return{}},Nj.prototype._calculateCurveControlPoints=function(e,t,n){var i=e.x-t.x,r=e.y-t.y,o=t.x-n.x,a=t.y-n.y,s=(e.x+t.x)/2,l=(e.y+t.y)/2,u=(t.x+n.x)/2,c=(t.y+n.y)/2,d=Math.sqrt(i*i+r*r),h=Math.sqrt(o*o+a*a),f=h/(d+h),p=t.x-(u+(s-u)*f),g=t.y-(c+(l-c)*f);return{c1:new Vj(s+p,l+g),c2:new Vj(u+p,c+g)}},Nj.prototype._calculateCurveWidths=function(e){var t={start:null,end:null},n=this.velocityFilterWeight*e.endPoint.velocityFrom(e.startPoint)+(1-this.velocityFilterWeight)*this._lastVelocity,i=this._strokeWidth(n);return t.start=this._lastWidth,t.end=i,this._lastVelocity=n,this._lastWidth=i,t},Nj.prototype._strokeWidth=function(e){return Math.max(this.maxWidth/(e+1),this.minWidth)},Nj.prototype._drawPoint=function(e,t,n){var i=this._ctx;i.moveTo(e,t),i.arc(e,t,n,0,2*Math.PI,!1),this._isEmpty=!1},Nj.prototype._drawCurve=function(e,t,n){var i=this._ctx,r=n-t,o=Math.floor(e.length());i.beginPath();for(var a=0;a<o;a+=1){var s=a/o,l=s*s,u=l*s,c=1-s,d=c*c,h=d*c,f=h*e.startPoint.x;f+=3*d*s*e.control1.x,f+=3*c*l*e.control2.x;var p=h*e.startPoint.y;p+=3*d*s*e.control1.y,p+=3*c*l*e.control2.y,this._drawPoint(f+=u*e.endPoint.x,p+=u*e.endPoint.y,t+u*r)}i.closePath(),i.fill()},Nj.prototype._drawDot=function(e){var t=this._ctx,n="function"==typeof this.dotSize?this.dotSize():this.dotSize;t.beginPath(),this._drawPoint(e.x,e.y,n),t.closePath(),t.fill()},Nj.prototype._fromData=function(e,t,n){for(var i=0;i<e.length;i+=1){var r=e[i];if(r.length>1)for(var o=0;o<r.length;o+=1){var a=r[o],s=new Vj(a.x,a.y,a.time),l=a.color;if(0===o)this.penColor=l,this._reset(),this._addPoint(s);else if(o!==r.length-1){var u=this._addPoint(s),c=u.curve,d=u.widths;c&&d&&t(c,d,l)}}else this._reset(),n(r[0])}},Nj.prototype._toSVG=function(){var e=this,t=this._data,n=this._canvas,i=Math.max(window.devicePixelRatio||1,1),r=n.width/i,o=n.height/i,a=document.createElementNS("http://www.w3.org/2000/svg","svg");a.setAttributeNS(null,"width",n.width),a.setAttributeNS(null,"height",n.height),this._fromData(t,function(e,t,n){var i=document.createElement("path");if(!(isNaN(e.control1.x)||isNaN(e.control1.y)||isNaN(e.control2.x)||isNaN(e.control2.y))){var r="M "+e.startPoint.x.toFixed(3)+","+e.startPoint.y.toFixed(3)+" C "+e.control1.x.toFixed(3)+","+e.control1.y.toFixed(3)+" "+e.control2.x.toFixed(3)+","+e.control2.y.toFixed(3)+" "+e.endPoint.x.toFixed(3)+","+e.endPoint.y.toFixed(3);i.setAttribute("d",r),i.setAttribute("stroke-width",(2.25*t.end).toFixed(3)),i.setAttribute("stroke",n),i.setAttribute("fill","none"),i.setAttribute("stroke-linecap","round"),a.appendChild(i)}},function(t){var n=document.createElement("circle"),i="function"==typeof e.dotSize?e.dotSize():e.dotSize;n.setAttribute("r",i),n.setAttribute("cx",t.x),n.setAttribute("cy",t.y),n.setAttribute("fill",t.color),a.appendChild(n)});var s='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 '+r+" "+o+'" width="'+r+'" height="'+o+'">',l=a.innerHTML;if(void 0===l){var u=document.createElement("dummy"),c=a.childNodes;u.innerHTML="";for(var d=0;d<c.length;d+=1)u.appendChild(c[d].cloneNode(!0));l=u.innerHTML}return"data:image/svg+xml;base64,"+btoa(s+l+"</svg>")},Nj.prototype.fromData=function(e){var t=this;this.clear(),this._fromData(e,function(e,n){return t._drawCurve(e,n.start,n.end)},function(e){return t._drawDot(e)}),this._data=e},Nj.prototype.toData=function(){return this._data};var Hj,jj,Uj=Nj,Wj=((jj=function(){function e(t){A(this,e),this.elementRef=t,this.options=this.options||{},this.onBeginEvent=new Fu,this.onEndEvent=new Fu}return m(e,[{key:"ngAfterContentInit",value:function(){var e=this.elementRef.nativeElement.querySelector("canvas");this.options.canvasHeight&&(e.height=this.options.canvasHeight),this.options.canvasWidth&&(e.width=this.options.canvasWidth),this.signaturePad=new Uj(e,this.options),this.signaturePad.onBegin=this.onBegin.bind(this),this.signaturePad.onEnd=this.onEnd.bind(this)}},{key:"ngOnDestroy",value:function(){var e=this.elementRef.nativeElement.querySelector("canvas");e.width=0,e.height=0}},{key:"resizeCanvas",value:function(){var e=Math.max(window.devicePixelRatio||1,1),t=this.signaturePad.canvas;t.width=t.offsetWidth*e,t.height=t.offsetHeight*e,t.getContext("2d").scale(e,e),this.signaturePad.clear()}},{key:"toData",value:function(){return this.signaturePad?this.signaturePad.toData():[]}},{key:"fromData",value:function(e){this.signaturePad.fromData(e)}},{key:"toDataURL",value:function(e,t){return this.signaturePad.toDataURL(e,t)}},{key:"fromDataURL",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!t.hasOwnProperty("height")&&this.options.canvasHeight&&(t.height=this.options.canvasHeight),!t.hasOwnProperty("width")&&this.options.canvasWidth&&(t.width=this.options.canvasWidth),this.signaturePad.fromDataURL(e,t)}},{key:"clear",value:function(){this.signaturePad.clear()}},{key:"isEmpty",value:function(){return this.signaturePad.isEmpty()}},{key:"off",value:function(){this.signaturePad.off()}},{key:"on",value:function(){this.signaturePad.on()}},{key:"set",value:function(e,t){switch(e){case"canvasHeight":this.signaturePad.canvas.height=t;break;case"canvasWidth":this.signaturePad.canvas.width=t;break;default:this.signaturePad[e]=t}}},{key:"onBegin",value:function(){this.onBeginEvent.emit(!0)}},{key:"onEnd",value:function(){this.onEndEvent.emit(!0)}},{key:"queryPad",value:function(){return this.signaturePad}}]),e}()).\u0275fac=function(e){return new(e||jj)(rs(Cl))},jj.\u0275cmp=ft({type:jj,selectors:[["signature-pad"]],inputs:{options:"options"},outputs:{onBeginEvent:"onBeginEvent",onEndEvent:"onEndEvent"},decls:1,vars:0,template:function(e,t){1&e&&us(0,"canvas")},encapsulation:2}),jj),Gj=((Hj=function e(){A(this,e)}).\u0275fac=function(e){return new(e||Hj)},Hj.\u0275mod=mt({type:Hj}),Hj.\u0275inj=Fe({imports:[[]]}),Hj),qj=["signaturePad"],Yj=function(e,t){return{"border-color":e,"background-color":t}};function Zj(e,t){if(1&e){var n=fs();cs(0,20),ss(1,"input",21),ms("change",function(){nn(n);var e=t.$implicit;return ks().onColorChange(e)}),ls(),ds()}if(2&e){var i=t.$implicit,r=ks();xo(1),os("checked",0===r.idx)("value",i.id)("ngStyle",Cu(3,Yj,i.id,i.id))}}var Qj,Xj=((Qj=function(){function e(t,n,i,r,o,a,s){A(this,e),this.translate=t,this.http=n,this.signaturesService=i,this.notificationService=r,this.authService=o,this.localStorage=a,this.modalController=s,this.reloaded=new Fu,this.penColors=[{id:"black"},{id:"#1a75ff"},{id:"#FF0000"}],this.disableState=!1,this.signaturePadOptions={minWidth:1,maxWidth:2.5,backgroundColor:"rgba(255, 255, 255, 0)",canvasWidth:600,canvasHeight:400}}return m(e,[{key:"ngAfterViewInit",value:function(){this.localStorage.get("signature")}},{key:"onColorChange",value:function(e){this.selectedColor=Object.assign({},this.selectedColor,e),this.signaturePad.set("penColor",this.selectedColor.id)}},{key:"onDotChange",value:function(e){this.signaturePad.set("minWidth",parseFloat(e)),this.signaturePad.set("maxWidth",parseFloat(e)+2)}},{key:"drawComplete",value:function(){this.localStorage.save("signature",JSON.stringify(this.signaturePad.toData())),this.haveSigned=!0}},{key:"drawClear",value:function(){this.signaturePad.clear(),this.haveSigned=!1}},{key:"closePad",value:function(){this.modalController.dismiss("cancel")}},{key:"saveSignature",value:function(){var e=this;this.disableState=!0,this.haveSigned=!0;var t=this.signaturePad.toDataURL("image/png").replace("data:image/png;base64,","");this.localStorage.save("signature",JSON.stringify(t));var n={id:0,encodedSignature:t,format:"png"};this.http.post("../rest/users/"+this.authService.user.id+"/signatures",n).pipe(hw(function(){e.disableState=!1})).subscribe(function(t){n.id=t.signatureId,e.signaturesService.signaturesList.unshift({id:n.id,encodedSignature:n.encodedSignature}),e.modalController.dismiss("reload"),e.notificationService.success("lang.signatureRegistered")})}}]),e}()).\u0275fac=function(e){return new(e||Qj)(rs(pE),rs(lb),rs(PE),rs(yE),rs(DE),rs(EE),rs(cP))},Qj.\u0275cmp=ft({type:Qj,selectors:[["app-pad"]],viewQuery:function(e,t){var n;1&e&&Qu(qj,1),2&e&&Zu(n=Ku())&&(t.signaturePad=n.first)},outputs:{reloaded:"reloaded"},decls:34,vars:16,consts:[[3,"translucent"],["color","primary"],["slot","end"],[3,"click"],["slot","icon-only","name","close-outline"],["color","light",1,"pad"],[1,"pad-actions"],[1,"pad-actions-boxed"],["let","","idx","index",4,"ngFor","ngForOf"],[1,"btn",3,"click"],["type","range","name","dot","min","1","max","10","step","1","value","1",1,"range",3,"input"],["padContent",""],[1,"pad"],[1,"pad-draw"],[1,"padContent",3,"options","onEndEvent"],["signaturePad",""],[1,"draw"],[1,"footer-buttons"],["color","danger",3,"click"],["color","success",3,"click"],["let","","idx","index"],["type","radio","name","colors",1,"radio",3,"checked","value","ngStyle","change"]],template:function(e,t){1&e&&(ss(0,"ion-header",0),ss(1,"ion-toolbar",1),ss(2,"ion-title"),Qs(3),Du(4,"translate"),ls(),ss(5,"ion-buttons",2),ss(6,"ion-button",3),ms("click",function(){return t.closePad()}),us(7,"ion-icon",4),ls(),ls(),ls(),ls(),ss(8,"ion-header",0),ss(9,"ion-toolbar",5),ss(10,"section",6),ss(11,"div",7),ns(12,Zj,2,6,"ng-container",8),ls(),ss(13,"button",9),ms("click",function(){return t.drawClear()}),Qs(14),Du(15,"translate"),ls(),ss(16,"div",7),ss(17,"input",10),ms("input",function(e){return t.onDotChange(e.target.value)}),ls(),ls(),ls(),ls(),ls(),ss(18,"ion-content",null,11),ss(20,"article",12),ss(21,"section",13),ss(22,"signature-pad",14,15),ms("onEndEvent",function(){return t.drawComplete()}),ls(),ls(),us(24,"div",16),ls(),ls(),ss(25,"ion-footer",17),ss(26,"ion-button",18),ms("click",function(){return t.closePad()}),ss(27,"ion-label"),Qs(28),Du(29,"translate"),ls(),ls(),ss(30,"ion-button",19),ms("click",function(){return t.saveSignature()}),ss(31,"ion-label"),Qs(32),Du(33,"translate"),ls(),ls(),ls()),2&e&&(os("translucent",!0),xo(3),Xs(Ou(4,8,"lang.createNewSignature")),xo(5),os("translucent",!0),xo(4),os("ngForOf",t.penColors),xo(2),Xs(Ou(15,10,"lang.erase")),xo(8),os("options",t.signaturePadOptions),xo(6),Xs(Ou(29,12,"lang.cancel")),xo(4),Xs(Ou(33,14,"lang.save")))},directives:[XC,DS,PS,LC,RC,KC,gh,UC,Wj,ZC,aS,Dh],pipes:[gE],styles:[".pad-actions[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-evenly;padding:10px 0}.pad-actions-boxed[_ngcontent-%COMP%]{border-radius:60px;height:60px;background:#f1f4f4;padding:0 20px}.pad-actions-boxed[_ngcontent-%COMP%], .pad-draw[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center}.pad-draw[_ngcontent-%COMP%]{background:#fff}.pad[_ngcontent-%COMP%]   .radio[_ngcontent-%COMP%]{-webkit-appearance:none;-moz-appearance:none;appearance:none;position:relative;margin:5px;width:30px;height:30px;border-radius:30px;border-width:none;border-style:solid;outline:none;cursor:pointer;transition:all .2s}.pad[_ngcontent-%COMP%]   .radio[_ngcontent-%COMP%]:checked, .pad[_ngcontent-%COMP%]   .radio[_ngcontent-%COMP%]:hover{transform:scale(1.5)}.padContent[_ngcontent-%COMP%]{border:1px dashed hsla(0,0%,59.2%,.55)}.footer-buttons[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(2,1fr);padding:10px}.footer-buttons[_ngcontent-%COMP%]   ion-button[_ngcontent-%COMP%]{margin:auto;width:150px}"]}),Qj),Kj=["slides"];function Jj(e,t){if(1&e&&(ss(0,"small",9),Qs(1),Du(2,"translate"),ls()),2&e){var n=ks();xo(1),Js("",n.currentWorflow.signaturePositions.length," ",Ou(2,2,"lang.prePositionings"),"")}}function $j(e,t){1&e&&(ss(0,"ion-label",36),Qs(1),Du(2,"translate"),ls()),2&e&&(xo(1),Xs(Ou(2,1,"lang.substitutedSignature")))}function eU(e,t){if(1&e){var n=fs();ss(0,"ion-card",27),ss(1,"img",28),ms("click",function(){nn(n);var e=t.$implicit;return ks(4).selectSignature(e)}),ls(),ss(2,"ion-toolbar",29),ns(3,$j,3,3,"ion-label",30),ss(4,"ion-buttons",31),ss(5,"ion-button",32),ms("click",function(){nn(n);var e=t.$implicit;return ks(4).selectSignature(e)}),Du(6,"translate"),us(7,"ion-icon",33),ls(),ls(),ss(8,"ion-buttons",3),ss(9,"ion-button",34),ms("click",function(){nn(n);var e=t.$implicit;return ks(4).removeSignature(e)}),Du(10,"translate"),us(11,"ion-icon",35),ls(),ls(),ls(),ls()}if(2&e){var i=t.$implicit,r=t.index,o=ks(4);xo(1),Ps("id","imgSign_",r,""),os("src",o.sanitization.bypassSecurityTrustUrl("data:image/png;base64,"+i.encodedSignature),Cr),xo(2),os("ngIf",i.substituted),xo(2),os("title",Ou(6,5,"lang.selectSignature")),xo(4),os("title",Ou(10,7,"lang.removeSignature"))}}function tU(e,t){if(1&e&&(ss(0,"ion-slide",24),ss(1,"div",25),ns(2,eU,12,9,"ion-card",26),ls(),ls()),2&e){var n=t.$implicit;xo(2),os("ngForOf",n)}}function nU(e,t){if(1&e&&(ss(0,"ion-slides",21,22),ns(2,tU,3,1,"ion-slide",23),ls()),2&e){var n=ks(2);os("options",n.slideOpts),xo(2),os("ngForOf",n.signaturesList)}}function iU(e,t){if(1&e){var n=fs();cs(0),ns(1,nU,3,2,"ion-slides",10),ss(2,"ion-fab",11),ss(3,"ion-fab-button",12),us(4,"ion-icon",13),ls(),ss(5,"ion-fab-list",14),ss(6,"ion-fab-button",15),ms("click",function(){return nn(n),ks().addNewDate()}),Du(7,"translate"),us(8,"ion-icon",16),ls(),ss(9,"ion-fab-button",15),ms("click",function(){return nn(n),is(16).click()}),Du(10,"translate"),us(11,"ion-icon",17),ls(),ss(12,"ion-fab-button",15),ms("click",function(){return nn(n),ks().openSignatures()}),Du(13,"translate"),us(14,"ion-icon",18),ls(),ls(),ls(),ss(15,"input",19,20),ms("change",function(e){return nn(n),ks().handleFileInput(e.target.files)}),ls(),ds()}if(2&e){var i=ks();xo(1),os("ngIf",!i.loading),xo(5),os("title",Ou(7,4,"lang.addNewDate")),xo(3),os("title",Ou(10,6,"lang.importNewSignature")),xo(3),os("title",Ou(13,8,"lang.createNewSignature"))}}function rU(e,t){1&e&&(ss(0,"div",37),us(1,"ion-icon",38),ss(2,"div"),Qs(3),Du(4,"translate"),ls(),ls()),2&e&&(xo(3),Ks(" ",Ou(4,1,"lang.certifiedDocumentMsg")," "))}var oU,aU=((oU=function(){function e(t,n,i,r,o,a,s,l,u,c){A(this,e),this.translate=t,this.http=n,this.signaturesService=i,this.bottomSheetRef=r,this.sanitization=o,this.notificationService=a,this.authService=s,this.localStorage=l,this.renderer=u,this.modalController=c,this.loading=!0,this.scrolling=!1,this.signPosMode=!1,this.datePosMode=!1,this.title="lang.signatures",this.slideOpts={initialSlide:0,speed:400,direction:"vertical"},this.signaturesList=[],this.inAllPage=!1,this.count=0}return m(e,[{key:"dismissModal",value:function(){this.modalController.dismiss("cancel")}},{key:"scroll",value:function(e){var t=this;this.scrolling||(this.scrolling=!0,e.deltaY<0?this.slides.slidePrev():this.slides.slideNext(),setTimeout(function(){t.scrolling=!1},500))}},{key:"ngOnInit",value:function(){this.initSignatures(),this.signPosMode=this.currentWorflow.signaturePositions.length>0&&this.emptySigns(),this.getImgDimensions(this.content)}},{key:"initSignatures",value:function(){var e=this;this.signaturesList=[];var t=[],n=0;this.signaturesService.signaturesListSubstituted.concat(this.signaturesService.signaturesList).forEach(function(i){6===n?(e.signaturesList.push(t),t=[i],n=0):(t.push(i),n++)}),t.length>0&&this.signaturesList.push(t)}},{key:"ionViewDidEnter",value:function(){this.loading=!1}},{key:"openSignatures",value:function(){return e=this,n=regeneratorRuntime.mark(function e(){var t;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.modalController.create({component:Xj,cssClass:"my-custom-class"});case 2:return t=e.sent,e.next=5,t.present();case 5:return e.next=7,t.onWillDismiss();case 7:"reload"===e.sent.data&&this.initSignatures();case 10:case"end":return e.stop()}},e,this)}),new((t=void 0)||(t=Promise))(function(i,r){function o(e){try{s(n.next(e))}catch(t){r(t)}}function a(e){try{s(n.throw(e))}catch(t){r(t)}}function s(e){var n;e.done?i(e.value):(n=e.value,n instanceof t?n:new t(function(e){e(n)})).then(o,a)}s((n=n.apply(e,[])).next())});var e,t,n}},{key:"mustPrePosSignature",value:function(e,t){return!(!this.signPosMode||0===e.length&&0===t.length)}},{key:"selectSignature",value:function(e){var t,n=this,i=document.getElementById("imgSign_"+this.signaturesList[0].indexOf(e).toString());this.signatureWidth=i.naturalWidth,this.signatureScaling=void 0!==this.authService.user.preferences.signatureScaling&&this.authService.user.preferences.signatureScaling,t=!1===this.signatureScaling?this.signatureWidth>=this.documentWidth?100:100*this.signatureWidth/this.documentWidth:this.signatureScaling,e.width=t;var r=this.currentWorflow.signaturePositions.filter(function(e){return e.page===n.signaturesService.currentPage}),o=this.currentWorflow.signaturePositions.filter(function(e){return e.page!==n.signaturesService.currentPage});this.mustPrePosSignature(r,o)?(r.length>0&&(e.positionX=r[0].positionX,e.positionY=r[0].positionY,this.storeSignature(e,this.signaturesService.currentPage)),o.length>0&&o.forEach(function(t){e.positionX=t.positionX,e.positionY=t.positionY,n.storeSignature(e,t.page)}),1===this.currentWorflow.signaturePositions.length?this.notificationService.success("lang.signatureInDocAddedAlt"):this.translate.get("lang.signaturesInDocAdded",{0:this.currentWorflow.signaturePositions.map(function(e){return e.page})}).subscribe(function(e){n.notificationService.success(e)}),this.modalController.dismiss(0===r.length&&o.length>0?{redirectPage:o[0].page}:"success")):(e.positionX=60,e.positionY=80,this.storeSignature(e,this.signaturesService.currentPage),this.notificationService.success("lang.signatureInDocAdded"),this.modalController.dismiss("success"))}},{key:"addNewDate",value:function(){var e=this,t=this.currentWorflow.datePositions.filter(function(t){return t.page===e.signaturesService.currentPage}),n=this.currentWorflow.datePositions.filter(function(t){return t.page!==e.signaturesService.currentPage});if(0===t.length&&0===n.length){var i={width:13e3/this.signaturesService.workingAreaWidth,height:3e3/this.signaturesService.workingAreaHeight,positionX:0,positionY:0,font:"Arial",size:15,color:"#666",format:"d MMMM y"};i.positionX=60,i.positionY=80,this.storeDate(i,this.signaturesService.currentPage),this.notificationService.success("lang.dateInDocAdded"),this.modalController.dismiss("success")}else t.length>0&&this.storeDate({width:t[0].width,height:t[0].height,positionX:t[0].positionX,positionY:t[0].positionY,font:"Arial",size:15,color:"#666",format:"d MMMM y"},this.signaturesService.currentPage),n.forEach(function(t){e.storeDate({width:t.width,height:t.height,positionX:t.positionX,positionY:t.positionY,font:"Arial",size:15,color:"#666",format:"d MMMM y"},t.page)}),1===this.currentWorflow.signaturePositions.length?this.notificationService.success("lang.dateInDocAddedAlt"):this.translate.get("lang.dateInDocAdded",{0:this.currentWorflow.signaturePositions.map(function(e){return e.page})}).subscribe(function(t){e.notificationService.success(t)}),this.modalController.dismiss(0===t.length&&n.length>0?{redirectPage:n[0].page}:"success")}},{key:"storeSignature",value:function(e,t){this.signaturesService.signaturesContent[t]||(this.signaturesService.signaturesContent[t]=[]),this.signaturesService.signaturesContent[t].push(JSON.parse(JSON.stringify(e))),this.localStorage.save(this.signaturesService.mainDocumentId.toString(),JSON.stringify({date:this.signaturesService.datesContent,sign:this.signaturesService.signaturesContent,note:this.signaturesService.notesContent}))}},{key:"storeDate",value:function(e,t){this.signaturesService.datesContent[t]||(this.signaturesService.datesContent[t]=[]),this.signaturesService.datesContent[t].push(JSON.parse(JSON.stringify(e))),this.localStorage.save(this.signaturesService.mainDocumentId.toString(),JSON.stringify({date:this.signaturesService.datesContent,sign:this.signaturesService.signaturesContent,note:this.signaturesService.notesContent}))}},{key:"removeSignature",value:function(e){var t=this;confirm(this.translate.instant("lang.wantDeleteSignature"))&&this.http.delete("../rest/users/"+this.authService.user.id+"/signatures/"+e.id).subscribe(function(){t.signaturesService.signaturesList=t.signaturesService.signaturesList.filter(function(t){return t.id!==e.id}),t.notificationService.success("lang.signatureDeleted"),t.initSignatures()},function(e){t.notificationService.error(e.error.errors)})}},{key:"toggleAllPage",value:function(){this.inAllPage=!this.inAllPage}},{key:"tapEvent",value:function(e,t,n){var i=this;this.count++,setTimeout(function(){1===i.count?i.count=0:i.count>1&&(i.count=0,i.selectSignature(e))},250)}},{key:"handleFileInput",value:function(e){var t=this,n=e.item(0);if(n.size<=1e6)if(-1!==["image/png","image/jpg","image/jpeg","image/gif"].indexOf(n.type)){var i=new FileReader;i.onloadend=function(e){var r=i.result.toString().replace("data:"+n.type+";base64,","");t.localStorage.save("signature",JSON.stringify(r));var o={id:0,encodedSignature:r,format:"png"};t.http.post("../rest/users/"+t.authService.user.id+"/signatures",o).subscribe(function(e){o.id=e.signatureId,t.signaturesService.signaturesList.unshift({id:o.id,encodedSignature:o.encodedSignature}),t.initSignatures(),t.notificationService.success("lang.signatureRegistered")})},i.readAsDataURL(n)}else this.notificationService.error("lang.notAnImage");else this.notificationService.error("lang.maxFileSizeReached")}},{key:"emptySigns",value:function(){for(var e=!0,t=1;t<=this.signaturesService.totalPage;t++)if(this.signaturesService.signaturesContent[t]&&this.signaturesService.signaturesContent[t].length>0){e=!1;break}return e}},{key:"getImgDimensions",value:function(e){var t=atob(e.slice(0,50)).slice(16,24),n=Uint8Array.from(t,function(e){return e.charCodeAt(0)}),i=new DataView(n.buffer);this.documentWidth=i.getInt32(0)}}]),e}()).\u0275fac=function(e){return new(e||oU)(rs(pE),rs(lb),rs(PE),rs(jF),rs(Wf),rs(yE),rs(DE),rs(EE),rs(El),rs(cP))},oU.\u0275cmp=ft({type:oU,selectors:[["app-signatures"]],viewQuery:function(e,t){var n;1&e&&Qu(Kj,1),2&e&&Zu(n=Ku())&&(t.slides=n.first)},inputs:{currentWorflow:"currentWorflow",content:"content"},decls:13,vars:7,consts:[[3,"translucent"],["color","primary"],["class","secondary",4,"ngIf"],["slot","end"],[3,"click"],["slot","icon-only","name","close-outline"],[3,"wheel"],[4,"ngIf","ngIfElse"],["elseCertified",""],[1,"secondary"],["pager","true",3,"options",4,"ngIf"],["horizontal","start","vertical","bottom","slot","fixed"],["color","primary","close-icon","chevron-down"],["name","chevron-up-outline"],["side","top"],["color","light",3,"title","click"],["name","calendar-outline"],["name","download-outline"],["name","add-outline"],["type","file",2,"display","none",3,"change"],["uploadFile",""],["pager","true",3,"options"],["slides",""],["style","display: grid;grid-template-columns: repeat(2, 1fr);",4,"ngFor","ngForOf"],[2,"display","grid","grid-template-columns","repeat(2, 1fr)"],[2,"display","contents"],["class","sign-image",4,"ngFor","ngForOf"],[1,"sign-image"],[2,"width","190px","cursor","pointer",3,"id","src","click"],[2,"position","absolute","top","0px"],["color","secondary",4,"ngIf"],["slot","start"],["size","small","color","primary",3,"title","click"],["slot","icon-only","name","arrow-up-circle-outline"],["size","small","color","danger",3,"title","click"],["slot","icon-only","name","trash-outline"],["color","secondary"],[1,"certified-msg"],["slot","start","name","ribbon-outline","color","success",2,"font-size","70px"]],template:function(e,t){if(1&e&&(ss(0,"ion-header",0),ss(1,"ion-toolbar",1),ss(2,"ion-title"),Qs(3),Du(4,"translate"),ns(5,Jj,3,4,"small",2),ls(),ss(6,"ion-buttons",3),ss(7,"ion-button",4),ms("click",function(){return t.dismissModal()}),us(8,"ion-icon",5),ls(),ls(),ls(),ls(),ss(9,"ion-content",6),ms("wheel",function(e){return t.scroll(e)}),ns(10,iU,17,10,"ng-container",7),ns(11,rU,5,3,"ng-template",null,8,tc),ls()),2&e){var n=is(12);os("translucent",!0),xo(3),Ks("",Ou(4,5,"lang.signatures")," "),xo(2),os("ngIf",t.signPosMode),xo(5),os("ngIf",!t.signaturesService.stampLock)("ngIfElse",n)}},directives:[XC,DS,PS,mh,LC,RC,KC,UC,GC,qC,YC,CS,gh,AS,FC,aS],pipes:[gE],styles:[".secondary[_ngcontent-%COMP%]{color:var(--ion-color-secondary)}.signatures[_ngcontent-%COMP%]{flex-direction:column}.signatures[_ngcontent-%COMP%], .signatures-top[_ngcontent-%COMP%]{display:flex;align-items:center}.signatures-top[_ngcontent-%COMP%]{height:105px;width:100%;justify-content:space-around;border-bottom:1px solid #e9e8e8}.signatures[_ngcontent-%COMP%]   .list[_ngcontent-%COMP%]{width:100%;padding-top:40px;overflow:auto;display:flex;justify-content:center;flex-wrap:wrap;scroll-behavior:smooth;-webkit-overflow-scrolling:touch}.signatures[_ngcontent-%COMP%]   .list-item[_ngcontent-%COMP%]{transition:all .3s ease-in-out;height:190px;width:190px;margin:8px;border:1px solid hsla(0,0%,59.2%,.55);border-radius:5px;background-color:#fff;box-shadow:0 2px 4px 0 rgba(0,0,0,.04);display:flex;justify-content:center;align-items:center}.signatures[_ngcontent-%COMP%]   .list-item[_ngcontent-%COMP%]   .substituteInfo[_ngcontent-%COMP%]{color:#f99830;font-size:10px;position:absolute;top:0;left:10px}.signatures[_ngcontent-%COMP%]   .list-item.create[_ngcontent-%COMP%]{background-color:#f1f4f4;flex-direction:column;text-align:center}.signatures[_ngcontent-%COMP%]   .list-item[_ngcontent-%COMP%]:active, .signatures[_ngcontent-%COMP%]   .list-item[_ngcontent-%COMP%]:hover{transform:translateY(-20px);cursor:pointer}.sign_icon[_ngcontent-%COMP%]{position:absolute;top:5px}.sign_icon[_ngcontent-%COMP%]   .mat-icon[_ngcontent-%COMP%]{color:#fff;height:auto}.add_icon[_ngcontent-%COMP%]{right:5px}.remove_icon[_ngcontent-%COMP%]{left:5px}.sign-image[_ngcontent-%COMP%]{height:95%}.certified-msg[_ngcontent-%COMP%], .sign-image[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center}.certified-msg[_ngcontent-%COMP%]{height:100%;flex-direction:column;padding:40px}.certified-msg[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]{font-size:30px;color:var(--ion-color-medium)}"]}),oU),sU=["mainContent"],lU=["canvas"],uU=["img"],cU=["nav"],dU=function(e,t){return{"border-color":e,"background-color":t}};function hU(e,t){if(1&e&&(cs(0,28),us(1,"input",29),ds()),2&e){var n=t.$implicit,i=ks(2);xo(1),os("checked",0===i.idx)("value",n.id)("ngStyle",Cu(3,dU,n.id,n.id))}}function fU(e,t){if(1&e){var n=fs();ss(0,"ion-content",null,8),ss(2,"div",9),ns(3,hU,2,6,"ng-container",10),us(4,"hr"),ss(5,"i",11),ms("click",function(){return nn(n),ks().undo()}),ls(),ls(),ss(6,"ion-fab",12),ss(7,"ion-fab-button",13),us(8,"ion-icon",14),ls(),ss(9,"ion-fab-list",15),ss(10,"ion-fab-button",16),ms("click",function(e){nn(n);var t=ks();return e.stopPropagation(),t.editMode=!t.editMode}),Du(11,"translate"),Du(12,"translate"),us(13,"ion-icon",17),ls(),ss(14,"ion-fab-button",18),ms("click",function(e){nn(n);var t=ks();return e.stopPropagation(),t.getImageDimensions(!t.originalSize)}),Du(15,"translate"),Du(16,"translate"),us(17,"ion-icon",17),ls(),ls(),ls(),ss(18,"div",19),ss(19,"drag-scroll",20,21),ss(21,"div",22,23),ss(23,"ion-img",24,25),ms("ionImgDidLoad",function(e){return nn(n),ks().imageLoaded(e)}),ls(),us(25,"canvas",26,27),ls(),ls(),ls(),ls()}if(2&e){var i=ks();xo(3),os("ngForOf",i.penColors),xo(7),os("color",i.editMode?"danger":"success")("title",i.editMode?Ou(11,19,"lang.lockEdition"):Ou(12,21,"lang.unlockEdition")),xo(3),os("name",i.editMode?"lock-closed-outline":"lock-open-outline"),xo(1),os("title",i.originalSize?Ou(15,23,"lang.originalSize"):Ou(16,25,"lang.screenSize")),xo(3),os("name",i.originalSize?"scan-outline":"crop-outline"),xo(2),Ls("max-width",i.areaWidth,"px"),xo(2),Ls("width",i.areaWidth,"px")("height",i.areaHeight,"px"),xo(2),Ls("width",i.areaWidth,"px")("height",i.areaHeight,"px"),os("src",i.content),xo(2),Ls("display",i.editMode?"initial":"none")}}var pU,gU,vU,mU=((vU=function(){function e(t,n,i,r,o){A(this,e),this.signaturesService=t,this.notificationService=n,this.authService=i,this.localStorage=r,this.modalController=o,this.triggerEvent=new Fu,this.penColors=[{id:"#000000"},{id:"#1a75ff"},{id:"#FF0000"}],this.areaWidth=0,this.areaHeight=0,this.editMode=!0,this.originalSize=!0,this.loading=!0}return m(e,[{key:"ngOnInit",value:function(){var e=this;setTimeout(function(){e.loading=!1},100)}},{key:"imageLoaded",value:function(e){this.getImageDimensions(!1)}},{key:"getImageDimensions",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.originalSize=t;var n=new Image;n.onload=function(i){e.areaWidth=i.target.naturalWidth,e.areaHeight=i.target.naturalHeight,t||e.getAreaDimension(),e.editMode&&setTimeout(function(){var t,i,r,o=$("#myBounds").offset();t=1===Math.sign(o.top)||e.precentScrollTop<=Math.abs(o.top)?e.precentScrollTop-o.top:-1===Math.sign(o.top)&&e.precentScrollTop<=-Math.sign(o.top)?2*(e.precentScrollTop-o.top):100*(e.precentScrollTop-o.top);var a=e.precentScrollLeft-o.left;i=e.precentScrollLeft-document.documentElement.offsetLeft,r=e.precentScrollTop-document.documentElement.offsetTop,i=i/e.areaWidth*100,r=r/e.areaHeight*100,document.getElementsByClassName("drag-scroll-content")[1].scrollTo(a,t),n.style.transform="translate(-"+i+"%,-"+r+"%) scale(2)",e.initPad()},200)},n.src=this.content}},{key:"getAreaDimension",value:function(){var e=100*this.mainContent.el.offsetWidth/this.areaWidth;this.areaWidth=e*this.areaWidth/100,this.areaHeight=e*this.areaHeight/100}},{key:"dismissModal",value:function(){this.modalController.dismiss("cancel")}},{key:"initPad",value:function(){$("#myCanvas").sign({mode:this.authService.user.preferences.writingMode,lineWidth:this.authService.user.preferences.writingSize,changeColor:$(".radio"),undo:$(".undo"),height:this.areaHeight,width:this.areaWidth,fixHeight:56,fixWidth:0,mobileMode:this.signaturesService.mobileMode}),$("input[value='"+this.authService.user.preferences.writingColor+"']").trigger("click")}},{key:"validateAnnotation",value:function(){this.signaturesService.notesContent[this.signaturesService.currentPage]||(this.signaturesService.notesContent[this.signaturesService.currentPage]=[]),this.signaturesService.notesContent[this.signaturesService.currentPage].push({fullPath:this.canvas.nativeElement.toDataURL("image/png"),positionX:0,positionY:0,height:this.signaturesService.workingAreaHeight,width:this.signaturesService.workingAreaWidth}),this.localStorage.save(this.signaturesService.mainDocumentId.toString(),JSON.stringify({date:this.signaturesService.datesContent,sign:this.signaturesService.signaturesContent,note:this.signaturesService.notesContent})),this.modalController.dismiss(""),this.notificationService.success("lang.annotationAdded")}},{key:"undo",value:function(){}}]),e}()).\u0275fac=function(e){return new(e||vU)(rs(PE),rs(yE),rs(DE),rs(EE),rs(cP))},vU.\u0275cmp=ft({type:vU,selectors:[["app-document-note-pad"]],viewQuery:function(e,t){var n;1&e&&(Qu(sU,1),Qu(lU,1),Qu(uU,1),Qu(cU,1,kM)),2&e&&(Zu(n=Ku())&&(t.mainContent=n.first),Zu(n=Ku())&&(t.canvas=n.first),Zu(n=Ku())&&(t.img=n.first),Zu(n=Ku())&&(t.ds=n.first))},inputs:{content:"content",precentScrollTop:"precentScrollTop",precentScrollLeft:"precentScrollLeft"},outputs:{triggerEvent:"triggerEvent"},decls:16,vars:11,consts:[[3,"translucent"],["color","primary"],[4,"ngIf"],[1,"ion-no-border","footer-buttons"],[2,"text-align","center"],["color","danger","shape","round","fill","outline","size","large",3,"click"],[2,"font-size","13px"],["color","success","shape","round","fill","outline","size","large",2,"margin-left","50px",3,"click"],["mainContent",""],[1,"tool-content","tool-content-right"],["let","","idx","index",4,"ngFor","ngForOf"],[1,"fa","fa-undo","fa-2x","undo",3,"click"],["vertical","top","horizontal","start","slot","fixed","activated",""],["close-icon","chevron-up"],["name","chevron-down"],["side","bottom"],[3,"color","title","click"],[3,"name"],[3,"title","click"],[2,"display","contents"],[2,"overflow","auto","height","100%","width","100%","margin","auto"],["nav",""],[2,"position","relative"],["myBounds",""],[1,"img-content",3,"src","ionImgDidLoad"],["img",""],["id","myCanvas",2,"position","absolute","top","0px","left","0px"],["canvas",""],["let","","idx","index"],["type","radio","name","colors",1,"radio",3,"checked","value","ngStyle"]],template:function(e,t){1&e&&(ss(0,"ion-header",0),ss(1,"ion-toolbar",1),ss(2,"ion-title"),Qs(3),Du(4,"translate"),ls(),ls(),ls(),ns(5,fU,27,27,"ion-content",2),ss(6,"ion-footer",3),ss(7,"div",4),ss(8,"ion-button",5),ms("click",function(){return t.dismissModal()}),ss(9,"ion-label",6),Qs(10),Du(11,"translate"),ls(),ls(),ss(12,"ion-button",7),ms("click",function(){return t.validateAnnotation()}),ss(13,"ion-label",6),Qs(14),Du(15,"translate"),ls(),ls(),ls(),ls()),2&e&&(os("translucent",!0),xo(3),Xs(Ou(4,5,"lang.annotateDocument")),xo(2),os("ngIf",!t.loading),xo(5),Xs(Ou(11,7,"lang.cancel")),xo(4),Xs(Ou(15,9,"lang.save")))},directives:[XC,DS,PS,mh,ZC,RC,aS,UC,gh,GC,qC,KC,YC,kM,JC,Dh],pipes:[gE],styles:[".tool-content[_ngcontent-%COMP%]{position:fixed}.fullscreen[_ngcontent-%COMP%]{--width:100%;--height:100%}.tool-content[_ngcontent-%COMP%]{z-index:1;display:flex;position:absolute;background:hsla(0,0%,50.2%,.30196078431372547);border-radius:20px;top:170px;transform:translateY(-50%) rotate(-90deg);padding:10px}.tool-content-left[_ngcontent-%COMP%]{left:-40px}.tool-content-right[_ngcontent-%COMP%]{right:-40px}.undo[_ngcontent-%COMP%]{cursor:pointer;transform:rotate(90deg);transition:all .2s}.undo[_ngcontent-%COMP%]:active{transform:rotate(90deg) scale(1.5)}.radio[_ngcontent-%COMP%]{-webkit-appearance:none;-moz-appearance:none;appearance:none;position:relative;margin:5px;width:30px;height:30px;border-radius:30px;border-width:none;border-style:solid;outline:none;cursor:pointer;transition:all .2s}.radio[_ngcontent-%COMP%]:checked, .radio[_ngcontent-%COMP%]:hover{transform:scale(1.5)}.footer-buttons[_ngcontent-%COMP%]{display:grid;padding:10px}.footer-buttons[_ngcontent-%COMP%]   ion-button[_ngcontent-%COMP%]{margin:auto;width:150px}"]}),vU),yU=((gU=function(){function e(t,n,i){A(this,e),this.http=t,this.signaturesService=n,this.router=i,this.currentIndex=0,this.offset=0,this.limit=10}return m(e,[{key:"resfreshDocuments",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.http.get("../rest/documents?limit="+(this.limit+this.offset)+"&offset=0&mode="+this.signaturesService.mode).subscribe(function(n){e.signaturesService.documentsList=n.documents,e.signaturesService.documentsListCount=n.count,t&&e.router.navigate(void 0!==e.signaturesService.documentsList[e.currentIndex]?["/documents/"+e.signaturesService.documentsList[e.currentIndex].id]:e.signaturesService.documentsList.length>0?["/documents/"+e.signaturesService.documentsList[0].id]:["/home"])})}}]),e}()).\u0275fac=function(e){return new(e||gU)(Ri(lb),Ri(PE),Ri(jk))},gU.\u0275prov=Re({token:gU,factory:gU.\u0275fac}),gU),bU=((pU=function(){function e(t,n,i,r){A(this,e),this.signaturesService=t,this.filtersService=n,this.authService=i,this.bottomSheetRef=r,this.date=new Date}return m(e,[{key:"ngOnInit",value:function(){var e=this;setTimeout(function(){e.signaturesService.currentToobal="mainDocumentDetail",e.filtersService.resfreshDocuments(!0),e.bottomSheetRef.dismiss()},2e3)}}]),e}()).\u0275fac=function(e){return new(e||pU)(rs(PE),rs(yU),rs(DE),rs(NF))},pU.\u0275cmp=ft({type:pU,selectors:[["ng-component"]],decls:14,vars:19,consts:[[1,"red",2,"text-align","center"],[1,"fa","fa-thumbs-down","fa-4x"],[2,"font-weight","bold","font-size","30px"],[2,"font-weight","bold","font-size","15px"]],template:function(e,t){1&e&&(ss(0,"div",0),ss(1,"h1"),us(2,"i",1),ls(),ss(3,"p"),Qs(4),Du(5,"translate"),ls(),ss(6,"p",2),Qs(7),ls(),ss(8,"p",3),Qs(9),Du(10,"translate"),Du(11,"date"),Du(12,"translate"),Du(13,"date"),ls(),ls()),2&e&&(xo(4),Xs(Ou(5,7,"lang.documentRefusedAs")),xo(3),Js("",t.authService.user.firstname," ",t.authService.user.lastname,""),xo(2),el("",Ou(10,9,"lang.onRange")," ",Mu(11,11,t.date,"dd/MM/yyyy")," ",Ou(12,14,"lang.atRange")," ",Mu(13,16,t.date,"HH:mm"),""))},pipes:[gE,Wh],styles:[""]}),pU),wU=["slides"];function _U(e,t){1&e&&(ss(0,"span",16),Qs(1),Du(2,"translate"),ls()),2&e&&(xo(1),Ks("(",Ou(2,1,"lang.mainDocument"),")"))}function kU(e,t){1&e&&(ss(0,"span",16),Qs(1),Du(2,"translate"),ls()),2&e&&(xo(1),Ks("(",Ou(2,1,"lang.attachment"),")"))}var xU=function(e){return{background:e}};function AU(e,t){if(1&e){var n=fs();ss(0,"ion-slide"),ss(1,"div",12),ss(2,"div",13),ms("click",function(){nn(n);var e=t.index;return ks(2).loadDoc(e)}),ls(),ss(3,"div",14),Qs(4),ns(5,_U,3,3,"span",15),ns(6,kU,3,3,"span",15),ls(),ls(),ls()}if(2&e){var i=t.$implicit,r=t.index,o=ks(2);xo(2),Fs("current",r==o.currentDocId),os("ngStyle",Au(6,xU,"url("+i.imgContent[1]+") no-repeat scroll center center / contain")),xo(2),Ks(" ",i.title,"\xa0"),xo(1),os("ngIf",0==r),xo(1),os("ngIf",r>0)}}function CU(e,t){if(1&e&&(ss(0,"ion-slides",9,10),ns(2,AU,7,8,"ion-slide",11),ls()),2&e){var n=ks();os("options",n.slideOpts),xo(2),os("ngForOf",n.docList)}}var SU,PU,EU,DU,OU,MU,TU=((PU=function(){function e(t,n,i,r){A(this,e),this.http=t,this.signaturesService=n,this.sanitizer=i,this.menu=r,this.triggerEvent=new Fu,this.loading=!0,this.scrolling=!1,this.slideOpts={initialSlide:0,speed:400,direction:"vertical"}}return m(e,[{key:"ngOnInit",value:function(){var e=this;this.docList.forEach(function(t,n){void 0===t.imgContent[1]&&n>0&&e.http.get("../rest/attachments/"+t.id+"/thumbnails/1").subscribe(function(e){t.imgContent[1]="data:image/png;base64,"+e.fileContent})})}},{key:"ngAfterViewInit",value:function(){this.loading=!1}},{key:"loadDoc",value:function(e){this.triggerEvent.emit(e),this.menu.close("right-menu")}},{key:"scroll",value:function(e){var t=this;this.scrolling||(this.scrolling=!0,e.deltaY<0?this.slides.slidePrev():this.slides.slideNext(),setTimeout(function(){t.scrolling=!1},500))}}]),e}()).\u0275fac=function(e){return new(e||PU)(rs(lb),rs(PE),rs(Wf),rs(uP))},PU.\u0275cmp=ft({type:PU,selectors:[["app-document-list"]],viewQuery:function(e,t){var n;1&e&&Qu(wU,1),2&e&&Zu(n=Ku())&&(t.slides=n.first)},inputs:{docList:"docList",currentDocId:"currentDocId"},outputs:{triggerEvent:"triggerEvent"},decls:12,vars:6,consts:[[3,"translucent"],["color","primary"],["slot","start"],["disabled",""],["slot","icon-only","name","document-outline"],[1,"ion-text-center"],[1,"secondary"],[3,"wheel"],["pager","true",3,"options",4,"ngIf"],["pager","true",3,"options"],["slides",""],[4,"ngFor","ngForOf"],[2,"height","90%","width","100%","position","relative","padding","10px"],[2,"cursor","pointer","height","100%","width","100%","border-radius","4px","transition","box-shadow 280ms cubic-bezier(.4,0,.2,1)","border","solid 1px #E0E0E0",3,"ngStyle","click"],[1,"pjToolsContent"],["class","red",4,"ngIf"],[1,"red"]],template:function(e,t){1&e&&(ss(0,"ion-header",0),ss(1,"ion-toolbar",1),ss(2,"ion-buttons",2),ss(3,"ion-button",3),us(4,"ion-icon",4),ls(),ls(),ss(5,"ion-title",5),ss(6,"b",6),Qs(7),ls(),Qs(8),Du(9,"translate"),ls(),ls(),ls(),ss(10,"ion-content",7),ms("wheel",function(e){return t.scroll(e)}),ns(11,CU,3,2,"ion-slides",8),ls()),2&e&&(os("translucent",!0),xo(7),Xs(t.docList.length),xo(1),Ks("\xa0",Ou(9,4,"lang.attachedElements"),""),xo(3),os("ngIf",!t.loading))},directives:[XC,DS,LC,RC,KC,PS,UC,mh,CS,gh,AS,Dh],pipes:[gE],styles:[".mat-list-item[_ngcontent-%COMP%]{height:auto!important;text-align:center}.mat-card[_ngcontent-%COMP%]{box-shadow:none;border:1px solid #e0e0e0}.mat-icon[_ngcontent-%COMP%]{height:auto}.pjToolsContent[_ngcontent-%COMP%]{position:absolute;border:1px solid #e0e0e0;border-bottom-left-radius:5px;background:#fff;padding:10px;font-weight:600;color:#135f7f;font-size:14px;top:10px}.current[_ngcontent-%COMP%]{box-shadow:0 0 20px 0 #656565}.panel-header[_ngcontent-%COMP%]{box-shadow:0 0 10px 0 #656565;color:#fff;background:#135f7f;height:65px;justify-content:center;font-size:20px;align-items:center}.panel-content[_ngcontent-%COMP%], .panel-header[_ngcontent-%COMP%]{display:flex;position:relative}.panel-content[_ngcontent-%COMP%]{flex-direction:column;height:100%;overflow:hidden}img[_ngcontent-%COMP%]{pointer-events:none}.secondary[_ngcontent-%COMP%]{color:var(--ion-color-secondary)}"]}),PU),IU=((SU=function(){function e(t,n){A(this,e),this.translate=t,this.latinisePipe=n}return m(e,[{key:"empty",value:function(e){return null==e||!1===e||(Array.isArray(e)?!(e.length>0):""===String(e))}},{key:"isDate",value:function(e){return e instanceof Date&&!isNaN(e.valueOf())}},{key:"formatFrenchDateToTechnicalDate",value:function(e){if(this.empty(e))return e;var t=e.split("-");return(t=t.concat(t[t.length-1].split(" "))).splice(2,1),this.empty(t[3])&&(t[3]="00:00:00"),"".concat(t[2],"-").concat(t[1],"-").concat(t[0]," ").concat(t[3])}},{key:"formatFrenchDateToObjectDate",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"-";if(this.empty(e))return e;var n=e.split(t);return(n=n.concat(n[n.length-1].split(" "))).splice(2,1),this.empty(n[3])&&(n[3]="00:00:00"),new Date("".concat(n[2],"-").concat(n[1],"-").concat(n[0]," ").concat(n[3]))}},{key:"formatDateObjectToDateString",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"dd-mm-yyyy";if(null!==e){var i=[];n.split("-").forEach(function(t){if("dd"===t){var n=e.getDate();n=("00"+n).slice(-2),i.push(n)}else if("mm"===t){var r=e.getMonth()+1;r=("00"+r).slice(-2),i.push(r)}else if("yyyy"===t){var o=e.getFullYear();i.push(o)}});var r="";return t&&(r=" 23:59:59"),"".concat(i.join("-")).concat(r)}return e}},{key:"formatSerializedDateToDateString",value:function(e){return this.formatDateObjectToDateString(new Date(e))}},{key:"listSortingDataAccessor",value:function(e,t){return"string"==typeof e[t]?e[t].toLowerCase():e[t]}},{key:"filterUnSensitive",value:function(e,t,n){var i=this,r=!1;return t=this.latinisePipe.transform(t),n.forEach(function(n){var o=e[n];"string"!=typeof e[n]&&(o=void 0===o?"":JSON.stringify(o)),r=r||i.latinisePipe.transform(o.toLowerCase()).includes(t)}),r}},{key:"formatBytes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;if("number"==typeof e){if(0===e)return"0 Octet";var n=1024,i=t<0?0:t,r=["Octets","KO","MO","GO","TO","PO","EO","ZO","YO"],o=Math.floor(Math.log(e)/Math.log(n));return parseFloat((e/Math.pow(n,o)).toFixed(i))+" "+r[o]}return e}}]),e}()).\u0275fac=function(e){return new(e||SU)(Ri(pE),Ri(QM))},SU.\u0275prov=Re({token:SU,factory:SU.\u0275fac,providedIn:"root"}),SU),RU=function(e,t,n,i){return new(n||(n=Promise))(function(r,o){function a(e){try{l(i.next(e))}catch(t){o(t)}}function s(e){try{l(i.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((i=i.apply(e,t||[])).next())})},LU=((EU=function(){function e(t,n,i,r,o,a){A(this,e),this.http=t,this.translate=n,this.notificationService=i,this.signaturesService=r,this.functionsService=o,this.alertController=a}return m(e,[{key:"sendDocument",value:function(e,t){var n=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null;return new Promise(function(s){return RU(n,void 0,void 0,regeneratorRuntime.mark(function n(){var l,u=this;return regeneratorRuntime.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(l={},!(this.signaturesService.currentAction>0)){n.next=17;break}if(null!==a){n.next=8;break}return n.next=5,this.getElementsFromDoc();case 5:n.t0=n.sent,n.next=9;break;case 8:n.t0=a;case 9:l.signatures=n.t0,null!==i&&((l=Object.assign(Object.assign({},l),i)).step="hashCertificate"),null!==t&&(l.note=t),null!==r&&(l.signatureLength=r),this.functionsService.empty(o)||(l.tmpUniqueId=o),this.http.put("../rest/documents/"+e+"/actions/"+this.signaturesService.currentAction,l).pipe(uw(function(e){s(null===i||{hashDocument:e.dataToSign,signatureContentLength:e.signatureContentLength,signatureFieldName:e.signatureFieldName,tmpUniqueId:e.tmpUniqueId})}),Zb(function(e){return u.notificationService.handleErrors(e),s(403===e.status&&null),Ty(!1)})).subscribe(),n.next=18;break;case 17:s(!1);case 18:case"end":return n.stop()}},n,this)}))})}},{key:"getElementsFromDoc",value:function(){return RU(this,void 0,void 0,regeneratorRuntime.mark(function e(){var t=this;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise(function(e){return RU(t,void 0,void 0,regeneratorRuntime.mark(function t(){var n,i,r,o=this;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:n=[],i=regeneratorRuntime.mark(function e(t){var i,r,a;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!o.signaturesService.datesContent[t]){e.next=11;break}i=0;case 2:if(!(i<o.signaturesService.datesContent[t].length)){e.next=11;break}return r=o.signaturesService.datesContent[t][i],e.next=6,o.getSvgContent(i);case 6:a=e.sent,n.push({encodedImage:a.replace("data:image/svg+xml;base64,",""),width:r.width,height:r.height,positionX:r.positionX,positionY:r.positionY,type:"SVG",page:t});case 8:i++,e.next=2;break;case 11:o.signaturesService.signaturesContent[t]&&o.signaturesService.signaturesContent[t].forEach(function(e){n.push({encodedImage:e.encodedSignature,width:e.width,positionX:e.positionX,positionY:e.positionY,type:"PNG",page:t})}),o.signaturesService.notesContent[t]&&o.signaturesService.notesContent[t].forEach(function(e){n.push({encodedImage:e.fullPath.replace("data:image/png;base64,",""),width:e.width,positionX:e.positionX,positionY:e.positionY,type:"PNG",page:t})});case 12:case"end":return e.stop()}},e)}),r=1;case 3:if(!(r<=this.signaturesService.totalPage)){t.next=8;break}return t.delegateYield(i(r),"t0",5);case 5:r++,t.next=3;break;case 8:e(n);case 9:case"end":return t.stop()}},t,this)}))}));case 1:case"end":return e.stop()}},e)}))}},{key:"getSvgContent",value:function(e){return new Promise(function(t){var n=document.getElementById("testSVG_"+e),i=(new XMLSerializer).serializeToString(n),r=new Blob([i],{type:"image/svg+xml"}),o=new FileReader;o.readAsDataURL(r),o.onloadend=function(){t(o.result)}})}},{key:"checkGroupMail",value:function(e,t){var n=this;return new Promise(function(i){return RU(n,void 0,void 0,regeneratorRuntime.mark(function n(){var r=this;return regeneratorRuntime.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:this.functionsService.empty(e.mailingId)?i([this.signaturesService.mainDocumentId]):this.http.get("../rest/documents/".concat(this.signaturesService.mainDocumentId,"/linkedMailing")).pipe(uw(function(e){return RU(r,void 0,void 0,regeneratorRuntime.mark(function n(){var r,o=this;return regeneratorRuntime.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(!(e.documents.length>1)){n.next=8;break}return n.next=3,this.alertController.create({header:this.translate.instant("lang.mailing"),message:this.translate.instant("validate"===t?"lang.makeActionOnDocInMailGroup":"lang.refuseActionDocInMailGroup"),backdropDismiss:!1,buttons:[{text:this.translate.instant("lang.yes"),handler:function(){i(e.documents)}},{role:"cancel",text:this.translate.instant("lang.no"),cssClass:"secondary",handler:function(){i([o.signaturesService.mainDocumentId])}}]});case 3:return r=n.sent,n.next=6,r.present();case 6:n.next=9;break;case 8:i([this.signaturesService.mainDocumentId]);case 9:case"end":return n.stop()}},n,this)}))}),Zb(function(e){return r.notificationService.handleErrors(e),i([]),Ty(!1)})).subscribe();case 1:case"end":return n.stop()}},n,this)}))})}}]),e}()).\u0275fac=function(e){return new(e||EU)(Ri(lb),Ri(pE),Ri(yE),Ri(PE),Ri(IU),Ri(sP))},EU.\u0275prov=Re({token:EU,factory:EU.\u0275fac,providedIn:"root"}),EU),FU=function(e,t,n,i){return new(n||(n=Promise))(function(r,o){function a(e){try{l(i.next(e))}catch(t){o(t)}}function s(e){try{l(i.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((i=i.apply(e,t||[])).next())})},BU=((DU=function(){function e(t,n,i,r,o,a,s,l,u){A(this,e),this.modalController=t,this.http=n,this.translate=i,this.notificationService=r,this.loadingController=o,this.signaturesService=a,this.actionsService=s,this.functionsService=l,this.authService=u,this.filters={expired:!1,keyUsage:[],onlyWithPrivateKey:!0},this.provider=null,this.cert=null,this.certPem=null,this.privateKey=null,this.signatures=[],this.signatureLength=null,this.server=null}return m(e,[{key:"ngOnInit",value:function(){return FU(this,void 0,void 0,regeneratorRuntime.mark(function e(){var t,n=this;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:t=this.authService.signatureRoles.filter(function(e){return e.id===n.signatureMode})[0],this.functionsService.empty(t.issuer)||(this.filters.issuerDNMatch=new RegExp(t.issuer,"i")),this.functionsService.empty(t.subject)||(this.filters.subjectDNMatch=new RegExp(t.subject,"i")),this.functionsService.empty(t.keyUsage)||this.filters.keyUsage.push(t.keyUsage);case 2:case"end":return e.stop()}},e,this)}))}},{key:"certificateChosen",value:function(e){return FU(this,void 0,void 0,regeneratorRuntime.mark(function t(){var n=this;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:this.loadingController.create({message:this.translate.instant("lang.processing"),spinner:"dots"}).then(function(t){return FU(n,void 0,void 0,regeneratorRuntime.mark(function n(){var i,r;return regeneratorRuntime.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return t.present(),n.prev=1,this.server=e.detail.server,this.checkWebsocketSession(),n.next=6,e.detail.server.getCrypto(e.detail.providerId);case 6:return this.provider=n.sent,this.checkWebsocketSession(),n.next=10,this.provider.certStorage.getItem(e.detail.certificateId);case 10:return this.cert=n.sent,this.checkWebsocketSession(),n.next=14,this.provider.certStorage.exportCert("pem",this.cert);case 14:return this.certPem=n.sent,this.checkWebsocketSession(),n.next=18,this.provider.keyStorage.getItem(e.detail.privateKeyId);case 18:this.privateKey=n.sent,n.next=24;break;case 21:return n.prev=21,n.t0=n.catch(1),n.abrupt("return",(this.notificationService.error(n.t0),t.dismiss(),void this.modalController.dismiss(!1)));case 24:this.certificate={certificate:this.certPem},i=!1,r=0;case 27:if(!(r<this.idsToProcess.length)){n.next=37;break}return n.next=30,this.actionsService.getElementsFromDoc();case 30:return this.signatures=n.sent,n.next=33,this.sendAndSign(this.idsToProcess[r]);case 33:i=n.sent;case 34:r++,n.next=27;break;case 37:t.dismiss(),this.modalController.dismiss(i);case 38:case"end":return n.stop()}},n,this,[[1,21]])}))});case 1:case"end":return t.stop()}},t,this)}))}},{key:"checkWebsocketSession",value:function(){return FU(this,void 0,void 0,regeneratorRuntime.mark(function e(){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(this.server.client.state===WebSocket.OPEN){e.next=7;break}return e.next=3,this.server.connect();case 3:return e.next=5,new Promise(function(e){return setTimeout(e,150)});case 5:e.next=0;break;case 7:case"end":return e.stop()}},e,this)}))}},{key:"sendAndSign",value:function(e){return FU(this,void 0,void 0,regeneratorRuntime.mark(function t(){var n,i,r;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:n=!1,i={};case 1:if(n){t.next=21;break}r=!1;case 3:if(!1!==r){t.next=19;break}return t.next=6,this.fusionStampAndGenerateSignature(e,i.tmpUniqueId);case 6:if(null!==(i=t.sent)){t.next=9;break}return t.abrupt("return",!1);case 9:if(!1!==i){t.next=11;break}return t.abrupt("return",!1);case 11:return t.next=13,this.signDocument(e,i.hashDocument,i.signatureContentLength,i.signatureFieldName,i.tmpUniqueId);case 13:if(!0===(r=t.sent)){t.next=16;break}return t.abrupt("return",!1);case 16:this.signatures.shift(),n=0===this.signatures.length;case 17:t.next=3;break;case 19:t.next=1;break;case 21:return t.abrupt("return",n);case 22:case"end":return t.stop()}},t,this)}))}},{key:"fusionStampAndGenerateSignature",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return FU(this,void 0,void 0,regeneratorRuntime.mark(function n(){var i;return regeneratorRuntime.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return i={},n.next=3,this.actionsService.sendDocument(e,null,this.certificate,this.signatureLength,t,this.signatures);case 3:return i=n.sent,n.abrupt("return",i);case 5:case"end":return n.stop()}},n,this)}))}},{key:"signDocument",value:function(e,t,n,i,r){var o=this;return new Promise(function(a){return FU(o,void 0,void 0,regeneratorRuntime.mark(function o(){var s,l,u,c,d,h,f=this;return regeneratorRuntime.wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return s={name:this.privateKey.algorithm.name,hash:"SHA-256"},l=this.fromHex(t),o.prev=1,this.checkWebsocketSession(),o.next=5,this.provider.subtle.sign(s,this.privateKey,l);case 5:u=o.sent,o.next=11;break;case 8:return o.prev=8,o.t0=o.catch(1),o.abrupt("return",(this.notificationService.error(o.t0),a(!1),Ty(!1)));case 11:c={note:this.note},d={signatures:this.signatures,certificate:this.certPem,hashSignature:this.toHex(u),signatureContentLength:n,signatureFieldName:i,tmpUniqueId:r},h=Object.assign(Object.assign({},c),d),this.http.put("../rest/documents/"+e+"/actions/"+this.signaturesService.currentAction,h).pipe(uw(function(){a(!0)}),Zb(function(e){return void 0!==e.error.newSignatureLength?(f.signatureLength=e.error.newSignatureLength,a(!1)):(f.notificationService.handleErrors(e),a("error")),Ty(!1)})).subscribe();case 13:case"end":return o.stop()}},o,this,[[1,8]])}))})}},{key:"cancelSign",value:function(){this.modalController.dismiss(!1)}},{key:"toHex",value:function(e){for(var t=new Uint8Array(e),n=[],i=t.length,r=0;r<i;r++){var o=t[r].toString(16);n.push(1===o.length?"0"+o:o)}return n.join("")}},{key:"fromHex",value:function(e){for(var t=new Uint8Array(e.length/2),n=0;n<e.length;n+=2){var i=e.slice(n,n+2);t[n/2]=parseInt(i,16)}return t.buffer}}]),e}()).\u0275fac=function(e){return new(e||DU)(rs(cP),rs(lb),rs(pE),rs(yE),rs(lP),rs(PE),rs(LU),rs(IU),rs(DE))},DU.\u0275cmp=ft({type:DU,selectors:[["signature-method-modal"]],inputs:{note:"note",signatureMode:"signatureMode",idsToProcess:"idsToProcess"},decls:2,vars:1,consts:[["language","fr","hide-footer","",2,"height","100%","width","100%",3,"filters","continue","cancel"]],template:function(e,t){1&e&&(ss(0,"ion-content"),ss(1,"peculiar-fortify-certificates",0),ms("continue",function(e){return t.certificateChosen(e)})("cancel",function(){return t.cancelSign()}),ls(),ls()),2&e&&(xo(1),os("filters",t.filters))},directives:[UC],styles:[".content[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;padding:30px!important;height:100%;flex-direction:column}.content[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{font-size:130px;color:var(--ion-color-primary)}.success[_ngcontent-%COMP%]{color:var(--ion-color-success)!important}.danger[_ngcontent-%COMP%]{color:var(--ion-color-danger)!important}@-webkit-keyframes bounce{0%,20%,53%,80%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1);transform:translateZ(0)}40%,43%{-webkit-animation-timing-function:cubic-bezier(.755,.05,.855,.06);animation-timing-function:cubic-bezier(.755,.05,.855,.06);transform:translate3d(0,-30px,0)}70%{-webkit-animation-timing-function:cubic-bezier(.755,.05,.855,.06);animation-timing-function:cubic-bezier(.755,.05,.855,.06);transform:translate3d(0,-15px,0)}90%{transform:translate3d(0,-4px,0)}}@keyframes bounce{0%,20%,53%,80%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1);transform:translateZ(0)}40%,43%{-webkit-animation-timing-function:cubic-bezier(.755,.05,.855,.06);animation-timing-function:cubic-bezier(.755,.05,.855,.06);transform:translate3d(0,-30px,0)}70%{-webkit-animation-timing-function:cubic-bezier(.755,.05,.855,.06);animation-timing-function:cubic-bezier(.755,.05,.855,.06);transform:translate3d(0,-15px,0)}90%{transform:translate3d(0,-4px,0)}}.bounce[_ngcontent-%COMP%]{-webkit-animation-duration:2s;animation-duration:2s;-webkit-animation-name:bounce;animation-name:bounce;transform-origin:center bottom;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite}"]}),DU),VU=function(e,t,n,i){return new(n||(n=Promise))(function(r,o){function a(e){try{l(i.next(e))}catch(t){o(t)}}function s(e){try{l(i.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((i=i.apply(e,t||[])).next())})},zU=((MU=function(){function e(t,n,i,r,o,a,s){A(this,e),this.http=t,this.modalController=n,this.actionsService=i,this.loadingController=r,this.translate=o,this.authService=a,this.notificationService=s}return m(e,[{key:"checkAuthenticationAndLaunchAction",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2?arguments[2]:void 0;return VU(this,void 0,void 0,regeneratorRuntime.mark(function i(){return regeneratorRuntime.wrap(function(i){for(;;)switch(i.prev=i.next){case 0:if(!(["rgs_2stars","rgs_2stars_timestamped","inca_card","inca_card_eidas"].indexOf(e.signatureMode)>-1)){i.next=13;break}if(0===this.authService.coreUrl.indexOf("https://")){i.next=7;break}return i.next=4,this.notificationService.error("lang.securedUrlNeeded");case 4:i.t1=null,i.next=10;break;case 7:return i.next=9,this.openRgsAuth(t,e.signatureMode,n);case 9:i.t1=i.sent;case 10:i.t0=i.t1,i.next=16;break;case 13:return i.next=15,this.launchDefaultMode(t,n);case 15:i.t0=i.sent;case 16:return i.abrupt("return",i.t0);case 17:case"end":return i.stop()}},i,this)}))}},{key:"launchDefaultMode",value:function(e,t){return VU(this,void 0,void 0,regeneratorRuntime.mark(function n(){var i=this;return regeneratorRuntime.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",new Promise(function(n){return VU(i,void 0,void 0,regeneratorRuntime.mark(function i(){var r,o,a;return regeneratorRuntime.wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,this.loadingController.create({message:this.translate.instant("lang.loadingValidation"),spinner:"dots"});case 2:(r=i.sent).present(),o=!0,a=0;case 6:if(!(a<t.length)){i.next=13;break}return i.next=9,this.actionsService.sendDocument(t[a],e);case 9:o=i.sent;case 10:a++,i.next=6;break;case 13:r.dismiss(),n(o);case 14:case"end":return i.stop()}},i,this)}))}));case 1:case"end":return n.stop()}},n)}))}},{key:"openRgsAuth",value:function(e,t,n){return VU(this,void 0,void 0,regeneratorRuntime.mark(function i(){var r=this;return regeneratorRuntime.wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return i.abrupt("return",new Promise(function(i){return VU(r,void 0,void 0,regeneratorRuntime.mark(function r(){var o,a,s;return regeneratorRuntime.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,this.modalController.create({component:BU,componentProps:{note:e,signatureMode:t,idsToProcess:n}});case 2:return o=r.sent,r.next=5,o.present();case 5:return r.next=7,o.onWillDismiss();case 7:a=r.sent,s=a.data,i(s);case 10:case"end":return r.stop()}},r,this)}))}));case 1:case"end":return i.stop()}},i)}))}}]),e}()).\u0275fac=function(e){return new(e||MU)(Ri(lb),Ri(cP),Ri(LU),Ri(lP),Ri(pE),Ri(DE),Ri(yE))},MU.\u0275prov=Re({token:MU,factory:MU.\u0275fac,providedIn:"root"}),MU),NU=((OU=function(){function e(t,n,i,r){A(this,e),this.signaturesService=t,this.filtersService=n,this.authService=i,this.bottomSheetRef=r,this.date=new Date}return m(e,[{key:"ngOnInit",value:function(){var e=this;setTimeout(function(){e.signaturesService.currentToobal="mainDocumentDetail",e.filtersService.resfreshDocuments(!0),e.bottomSheetRef.dismiss()},2e3)}}]),e}()).\u0275fac=function(e){return new(e||OU)(rs(PE),rs(yU),rs(DE),rs(NF))},OU.\u0275cmp=ft({type:OU,selectors:[["ng-component"]],decls:14,vars:19,consts:[[1,"green",2,"text-align","center"],[1,"fa","fa-thumbs-up","fa-4x"],[2,"font-weight","bold","font-size","30px"],[2,"font-weight","bold","font-size","15px"]],template:function(e,t){1&e&&(ss(0,"div",0),ss(1,"h1"),us(2,"i",1),ls(),ss(3,"p"),Qs(4),Du(5,"translate"),ls(),ss(6,"p",2),Qs(7),ls(),ss(8,"p",3),Qs(9),Du(10,"translate"),Du(11,"date"),Du(12,"translate"),Du(13,"date"),ls(),ls()),2&e&&(xo(4),Xs(Ou(5,7,"lang.documentValidateAs")),xo(3),Js("",t.authService.user.firstname," ",t.authService.user.lastname,""),xo(2),el("",Ou(10,9,"lang.onRange")," ",Mu(11,11,t.date,"dd/MM/yyyy")," ",Ou(12,14,"lang.atRange")," ",Mu(13,16,t.date,"HH:mm"),""))},pipes:[gE,Wh],styles:[""]}),OU);function HU(e,t){if(1&e&&(cs(0),ss(1,"div",1),us(2,"img",2),ls(),ds()),2&e){var n=t.$implicit,i=ks();xo(1),Ls("width",i.signaturesService.workingAreaWidth,"px")("height",i.signaturesService.workingAreaHeight,"px"),xo(1),Ls("width",100,"%"),os("src",i.sanitization.bypassSecurityTrustUrl(n.fullPath),Cr)}}var jU,UU=((jU=function(){function e(t,n,i){A(this,e),this.translate=t,this.sanitization=n,this.signaturesService=i}return m(e,[{key:"ngOnInit",value:function(){}}]),e}()).\u0275fac=function(e){return new(e||jU)(rs(pE),rs(Wf),rs(PE))},jU.\u0275cmp=ft({type:jU,selectors:[["app-document-note-list"]],decls:1,vars:1,consts:[[4,"ngFor","ngForOf"],[2,"top","0","left","0","position","absolute"],[3,"src"]],template:function(e,t){1&e&&ns(0,HU,3,7,"ng-container",0),2&e&&os("ngForOf",t.signaturesService.notesContent[t.signaturesService.currentPage])},directives:[gh],encapsulation:2}),jU),WU=["menuTrigger"],GU=["test"],qU=function(e,t){return{x:e,y:t}};function YU(e,t){if(1&e){var n=fs();ss(0,"div",1,2),ms("rzResizing",function(e){nn(n);var i=t.index;return ks().onResizing(e,i)})("rzStart",function(){return nn(n),ks().signaturesService.resizing=!0})("movingOffset",function(){return nn(n),ks().signaturesService.dragging=!0})("endOffset",function(e){nn(n);var i=t.index;return ks().moveSign(e,i)})("rzStop",function(e){nn(n);var i=t.index,r=ks();return r.onResizeStop(e,i),r.signaturesService.resizing=!1}),ss(2,"ion-item",3),ss(3,"ion-select",4),ms("click",function(e){return e.stopPropagation()})("ionChange",function(e){nn(n);var i=t.index;return ks().select(e,i)}),ss(4,"ion-select-option",5),Qs(5),Du(6,"translate"),ls(),ss(7,"ion-select-option",6),Qs(8),Du(9,"translate"),ls(),ls(),ls(),us(10,"img",7),ls()}if(2&e){var i=t.$implicit,r=ks();Ls("width",i.width,"%")("height",r.fix),os("position",Cu(20,qU,i.positionX*r.signaturesService.workingAreaWidth/100,i.positionY*r.signaturesService.workingAreaHeight/100))("ngDraggable",!r.signaturesService.resizing)("rzAspectRatio",!0)("preventDefaultEvent",!1)("bounds",r.bounds)("inBounds",!0),xo(5),Ks("",Ou(6,16,"lang.delete")," "),xo(2),os("disabled",i.inAllPage),xo(1),Ks(" ",Ou(9,18,"lang.replicate"),""),xo(2),Ls("width",100,"%"),os("src",r.sanitization.bypassSecurityTrustUrl("data:image/png;base64,"+i.encodedSignature),Cr)}}var ZU,QU=((ZU=function(){function e(t,n,i,r,o,a,s,l){A(this,e),this.translate=t,this.sanitization=n,this.signaturesService=i,this.notificationService=r,this.localStorage=o,this.dialog=a,this.popoverController=s,this.modalController=l,this.fix="auto",this.today=new Date}return m(e,[{key:"ngOnInit",value:function(){}},{key:"select",value:function(e,t){this[e.detail.value](t)}},{key:"moveSign",value:function(e,t){var n=100*e.y/this.signaturesService.workingAreaHeight;this.signaturesService.signaturesContent[this.signaturesService.currentPage][t].positionX=100*e.x/this.signaturesService.workingAreaWidth,this.signaturesService.signaturesContent[this.signaturesService.currentPage][t].positionY=n,this.localStorage.save(this.signaturesService.mainDocumentId.toString(),JSON.stringify({date:this.signaturesService.datesContent,sign:this.signaturesService.signaturesContent,note:this.signaturesService.notesContent})),this.signaturesService.dragging=!1}},{key:"onResizing",value:function(e,t){this.test.nativeElement.style.height="auto"}},{key:"onResizeStop",value:function(e,t){this.test.nativeElement.style.height="auto",this.signaturesService.signaturesContent[this.signaturesService.currentPage][t].width=100*e.size.width/this.signaturesService.workingAreaWidth}},{key:"cloneSign",value:function(e){var t=this;this.dialog.open(_H,{autoFocus:!1,width:"450px",data:{title:"lang.wantSignOtherPage",msg:""}}).afterClosed().subscribe(function(n){if("yes"===n){t.signaturesService.signaturesContent[t.signaturesService.currentPage][e].inAllPage=!0,t.signaturesService.signaturesContent[t.signaturesService.currentPage][e].token=Math.random().toString(36).substr(2,9);for(var i=1;i<=t.signaturesService.totalPage;i++)t.signaturesService.signaturesContent[i]||(t.signaturesService.signaturesContent[i]=[]),i!==t.signaturesService.currentPage&&t.signaturesService.signaturesContent[i].push(JSON.parse(JSON.stringify(t.signaturesService.signaturesContent[t.signaturesService.currentPage][e])));t.localStorage.save(t.signaturesService.mainDocumentId.toString(),JSON.stringify({sign:t.signaturesService.signaturesContent,note:t.signaturesService.notesContent}))}}),this.menuSign.closeMenu()}},{key:"deleteSignature",value:function(e){if(!0===this.signaturesService.signaturesContent[this.signaturesService.currentPage][e].inAllPage){var t=this.signaturesService.signaturesContent[this.signaturesService.currentPage][e].token;if(confirm(this.translate.instant("lang.wantDeleteSignatureOtherPage")))for(var n=1;n<=this.signaturesService.totalPage;n++){this.signaturesService.signaturesContent[n]||(this.signaturesService.signaturesContent[n]=[]);for(var i=0;i<=this.signaturesService.signaturesContent[n].length;i++)this.signaturesService.signaturesContent[n][i]&&t===this.signaturesService.signaturesContent[n][i].token&&this.signaturesService.signaturesContent[n].splice(i,1)}else this.signaturesService.signaturesContent[this.signaturesService.currentPage].splice(e,1)}else this.signaturesService.signaturesContent[this.signaturesService.currentPage].splice(e,1);this.emptySigns()&&(this.signaturesService.signaturesContent=[]),this.localStorage.save(this.signaturesService.mainDocumentId.toString(),JSON.stringify({sign:this.signaturesService.signaturesContent,note:this.signaturesService.notesContent}))}},{key:"emptySigns",value:function(){for(var e=!0,t=1;t<=this.signaturesService.totalPage;t++)if(this.signaturesService.signaturesContent[t]&&this.signaturesService.signaturesContent[t].length>0){e=!1;break}return e}}]),e}()).\u0275fac=function(e){return new(e||ZU)(rs(pE),rs(Wf),rs(PE),rs(yE),rs(EE),rs(kB),rs(dP),rs(cP))},ZU.\u0275cmp=ft({type:ZU,selectors:[["app-document-sign-list"]],viewQuery:function(e,t){var n;1&e&&(Qu(WU,1),Qu(GU,1)),2&e&&(Zu(n=Ku())&&(t.menuSign=n.first),Zu(n=Ku())&&(t.test=n.first))},inputs:{bounds:"bounds"},decls:1,vars:1,consts:[["ngResizable","","style","position:absolute;border: dashed 1px grey;background: rgba(255, 255, 255, 0.6) none repeat scroll 0% 0%;",3,"position","width","ngDraggable","rzAspectRatio","preventDefaultEvent","bounds","inBounds","height","rzResizing","rzStart","movingOffset","endOffset","rzStop",4,"ngFor","ngForOf"],["ngResizable","",2,"position","absolute","border","dashed 1px grey","background","rgba(255, 255, 255, 0.6) none repeat scroll 0% 0%",3,"position","ngDraggable","rzAspectRatio","preventDefaultEvent","bounds","inBounds","rzResizing","rzStart","movingOffset","endOffset","rzStop"],["test",""],[2,"position","absolute","--background","none","right","0","--border-width","0"],["selectedText"," ","value","","interface","popover",3,"click","ionChange"],["value","deleteSignature",1,"action-item"],["value","cloneSign",1,"action-item",3,"disabled"],[1,"img-content",3,"src"]],template:function(e,t){1&e&&ns(0,YU,11,23,"div",0),2&e&&os("ngForOf",t.signaturesService.signaturesContent[t.signaturesService.currentPage])},directives:[gh,DM,SM,nS,kS,tA,xS],pipes:[gE],styles:[".action-item ion-radio{--color:transparent;--color-checked:transparent}.test[_ngcontent-%COMP%]{position:absolute;border:1px dashed grey;background:hsla(0,0%,100%,.6) none repeat scroll 0 0;background:none;font:sans-serif}svg[_ngcontent-%COMP%]{width:100%;height:100%;pointer-events:none}text[_ngcontent-%COMP%]{pointer-events:auto}"]}),ZU);function XU(e,t){if(1&e&&(ss(0,"ion-select-option",19),Qs(1),Du(2,"date"),Du(3,"translate"),ls()),2&e){var n=t.$implicit,i=ks();os("value",n),xo(1),Ks(" ",Iu(2,2,i.today,n,void 0,Ou(3,7,"lang.langISO"))," ")}}function KU(e,t){if(1&e&&(ss(0,"ion-select-option",19),Qs(1),ls()),2&e){var n=t.$implicit;Bs(ks().getFontLabel(n)),os("value",n),xo(1),Ks(" ",n," ")}}var JU,$U=function(){return{cssClass:"selectFormat"}},eW=((JU=function(){function e(t){A(this,e),this.modalController=t,this.today=new Date,this.dateformats=["dd/MM/y","dd-MM-y","dd.MM.y","d MMM y","d MMMM y"],this.datefonts=["Arial","Verdana","Helvetica","Tahoma","Times New Roman","Courier New"],this.size={Arial:15,Verdana:13,Helvetica:13,Tahoma:13,"Times New Roman":15,"Courier New":13}}return m(e,[{key:"ngOnInit",value:function(){this.date=JSON.parse(JSON.stringify(this.currentDate))}},{key:"dismissModal",value:function(){this.modalController.dismiss()}},{key:"getFontLabel",value:function(e){return e.replace(" ","_")}},{key:"onSubmit",value:function(){this.modalController.dismiss(this.date)}},{key:"select",value:function(e){this.date.size=this.size[e]}}]),e}()).\u0275fac=function(e){return new(e||JU)(rs(cP))},JU.\u0275cmp=ft({type:JU,selectors:[["ng-component"]],inputs:{currentDate:"currentDate"},decls:45,vars:43,consts:[[3,"translucent"],["color","primary"],["slot","end"],[3,"click"],["slot","icon-only","name","close-outline"],[2,"text-align","center","font-weight","normal","font-size","50px","padding","50px"],["color","secondary"],["interface","popover",3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],["button","","lines","full",3,"click"],["type","color",2,"display","none",3,"ngModel","ngModelChange"],["colorPicker",""],["slot","end","name","ellipse"],[3,"ngModel","interfaceOptions","cancelText","ngModelChange","ionChange"],[3,"value","class",4,"ngFor","ngForOf"],[1,"ion-no-border"],[1,"ion-justify-content-center"],["type","submit","color","primary",3,"click"],["type","button",3,"click"],[3,"value"]],template:function(e,t){if(1&e){var n=fs();ss(0,"ion-header",0),ss(1,"ion-toolbar",1),ss(2,"ion-title"),Qs(3),Du(4,"translate"),ls(),ss(5,"ion-buttons",2),ss(6,"ion-button",3),ms("click",function(){return t.dismissModal()}),us(7,"ion-icon",4),ls(),ls(),ls(),ls(),ss(8,"ion-content"),ss(9,"ion-toolbar"),ss(10,"ion-title",5),Qs(11),Du(12,"date"),Du(13,"translate"),ls(),ls(),ss(14,"ion-item"),ss(15,"ion-label",6),Qs(16),Du(17,"translate"),ls(),ss(18,"ion-select",7),ms("ngModelChange",function(e){return t.date.format=e}),ns(19,XU,4,9,"ion-select-option",8),ls(),ls(),ss(20,"ion-item",9),ms("click",function(){return nn(n),is(22).click()}),ss(21,"input",10,11),ms("ngModelChange",function(e){return t.date.color=e}),ls(),ss(23,"ion-label",6),Qs(24),Du(25,"translate"),ls(),us(26,"ion-icon",12),ls(),ss(27,"ion-item"),ss(28,"ion-label",6),Qs(29),Du(30,"translate"),ls(),ss(31,"ion-select",13),ms("ngModelChange",function(e){return t.date.font=e})("ionChange",function(e){return t.select(e.detail.value)}),Du(32,"translate"),ns(33,KU,2,4,"ion-select-option",14),ls(),ls(),ls(),ss(34,"ion-footer",15),ss(35,"ion-toolbar"),ss(36,"ion-buttons",16),ss(37,"ion-button",17),ms("click",function(){return t.onSubmit()}),ss(38,"ion-label"),Qs(39),Du(40,"translate"),ls(),ls(),ss(41,"ion-button",18),ms("click",function(){return t.dismissModal()}),ss(42,"ion-label"),Qs(43),Du(44,"translate"),ls(),ls(),ls(),ls(),ls()}2&e&&(os("translucent",!0),xo(3),Xs(Ou(4,21,"lang.options")),xo(7),Bs(t.getFontLabel(t.date.font)),Ls("color",t.date.color),xo(1),Xs(Iu(12,23,t.today,t.date.format,void 0,Ou(13,28,"lang.langISO"))),xo(5),Xs(Ou(17,30,"lang.format")),xo(2),os("ngModel",t.date.format),xo(1),os("ngForOf",t.dateformats),xo(2),os("ngModel",t.date.color),xo(3),Xs(Ou(25,32,"lang.color")),xo(2),Ls("color",t.date.color),xo(3),Xs(Ou(30,34,"lang.font")),xo(2),os("ngModel",t.date.font)("interfaceOptions",xu(42,$U))("cancelText",Ou(32,36,"lang.cancel")),xo(2),os("ngForOf",t.datefonts),xo(6),Xs(Ou(40,38,"lang.save")),xo(4),Xs(Ou(44,40,"lang.cancel")))},directives:[XC,DS,PS,LC,RC,KC,UC,nS,aS,kS,tA,hm,Ym,gh,Rv,ZC,xS],pipes:[gE,Wh],styles:[".Arial{font-family:Arial,sans-serif} .Verdana{font-family:Verdana,sans-serif} .Helvetica{font-family:Helvetica,sans-serif} .Tahoma{font-family:Tahoma,sans-serif} .Times_New_Roman{font-family:Times New Roman,serif} .Courier_New{font-family:Courier New,monospace}"]}),JU),tW=["menuTrigger"],nW=["test2"],iW=function(e,t){return{x:e,y:t}};function rW(e,t){if(1&e){var n=fs();ss(0,"div",1,2),ms("rzResizing",function(e){nn(n);var i=t.index;return ks().onResizingDate(e,i)})("rzStart",function(){return nn(n),ks().signaturesService.resizing=!0})("movingOffset",function(){return nn(n),ks().signaturesService.dragging=!0})("endOffset",function(e){nn(n);var i=t.index;return ks().moveDate(e,i)})("rzStop",function(e){nn(n);var i=t.index,r=ks();return r.onResizeDateStop(e,i),r.signaturesService.resizing=!1})("click",function(e){return e.stopPropagation()}),ss(2,"ion-buttons",3),ss(3,"ion-button",4),us(4,"ion-icon",5),ls(),ls(),ss(5,"mat-menu",null,6),ss(7,"button",7),ms("click",function(){nn(n);var e=t.index;return ks().openDateSettings(e)}),Qs(8),Du(9,"translate"),ls(),ss(10,"button",7),ms("click",function(){nn(n);var e=t.index;return ks().deleteDate(e)}),Qs(11),Du(12,"translate"),ls(),ls(),On(),ss(13,"svg",8),ss(14,"text",9),Qs(15),Du(16,"date"),Du(17,"translate"),ls(),ls(),ls()}if(2&e){var i=t.$implicit,r=t.index,o=is(6),a=ks();Ls("width",i.width,"%")("height",i.height,"%")("height",a.fix),os("id","dateDiv_"+r)("position",Cu(34,iW,i.positionX*a.signaturesService.workingAreaWidth/100,i.positionY*a.signaturesService.workingAreaHeight/100))("ngDraggable",!a.signaturesService.resizing)("rzAspectRatio",!0)("preventDefaultEvent",!1)("bounds",a.bounds)("inBounds",!0),xo(3),os("matMenuTriggerFor",o),xo(5),Xs(Ou(9,23,"lang.options")),xo(3),Xs(Ou(12,25,"lang.delete")),xo(2),os("id","testSVG_"+r),xo(1),Ls("font-family",i.font)("fill",i.color),$a("font-size",i.size),xo(1),Xs(Iu(16,27,a.today,i.format,void 0,Ou(17,32,"lang.langISO")))}}var oW,aW=((oW=function(){function e(t,n,i,r,o,a,s){A(this,e),this.translate=t,this.signaturesService=n,this.notificationService=i,this.localStorage=r,this.dialog=o,this.popoverController=a,this.modalController=s,this.fix="auto",this.today=new Date}return m(e,[{key:"ngOnInit",value:function(){}},{key:"moveDate",value:function(e,t){var n=100*e.y/this.signaturesService.workingAreaHeight;this.signaturesService.datesContent[this.signaturesService.currentPage][t].positionX=100*e.x/this.signaturesService.workingAreaWidth,this.signaturesService.datesContent[this.signaturesService.currentPage][t].positionY=n,this.localStorage.save(this.signaturesService.mainDocumentId.toString(),JSON.stringify({date:this.signaturesService.datesContent,sign:this.signaturesService.signaturesContent,note:this.signaturesService.notesContent})),this.signaturesService.dragging=!1}},{key:"onResizingDate",value:function(e,t){this.test2.nativeElement.style.height="auto"}},{key:"onResizeDateStop",value:function(e,t){this.test2.nativeElement.style.height="auto",this.signaturesService.datesContent[this.signaturesService.currentPage][t].height=100*e.size.height/this.signaturesService.workingAreaHeight,this.signaturesService.datesContent[this.signaturesService.currentPage][t].width=100*e.size.width/this.signaturesService.workingAreaWidth}},{key:"deleteDate",value:function(e){this.signaturesService.datesContent[this.signaturesService.currentPage].splice(e,1),this.localStorage.save(this.signaturesService.mainDocumentId.toString(),JSON.stringify({date:this.signaturesService.datesContent,sign:this.signaturesService.signaturesContent,note:this.signaturesService.notesContent}))}},{key:"openDateSettings",value:function(e){return t=this,i=regeneratorRuntime.mark(function t(){var n,i,r;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.modalController.create({component:eW,componentProps:{currentDate:this.signaturesService.datesContent[this.signaturesService.currentPage][e]}});case 2:return n=t.sent,t.next=5,n.present();case 5:return t.next=7,n.onWillDismiss();case 7:i=t.sent,void 0!==(r=i.data)&&(this.signaturesService.datesContent[this.signaturesService.currentPage][e]=r);case 10:case"end":return t.stop()}},t,this)}),new((n=void 0)||(n=Promise))(function(e,r){function o(e){try{s(i.next(e))}catch(t){r(t)}}function a(e){try{s(i.throw(e))}catch(t){r(t)}}function s(t){var i;t.done?e(t.value):(i=t.value,i instanceof n?i:new n(function(e){e(i)})).then(o,a)}s((i=i.apply(t,[])).next())});var t,n,i}}]),e}()).\u0275fac=function(e){return new(e||oW)(rs(pE),rs(PE),rs(yE),rs(EE),rs(kB),rs(dP),rs(cP))},oW.\u0275cmp=ft({type:oW,selectors:[["app-document-date-list"]],viewQuery:function(e,t){var n;1&e&&(Qu(tW,1),Qu(nW,1)),2&e&&(Zu(n=Ku())&&(t.menuSign=n.first),Zu(n=Ku())&&(t.test2=n.first))},inputs:{bounds:"bounds"},decls:1,vars:1,consts:[["class","test","ngResizable","",3,"id","position","width","height","ngDraggable","rzAspectRatio","preventDefaultEvent","bounds","inBounds","rzResizing","rzStart","movingOffset","endOffset","rzStop","click",4,"ngFor","ngForOf"],["ngResizable","",1,"test",3,"id","position","ngDraggable","rzAspectRatio","preventDefaultEvent","bounds","inBounds","rzResizing","rzStart","movingOffset","endOffset","rzStop","click"],["test2",""],[2,"position","absolute","top","-30px","right","0px"],["slot","icon-only","shape","round","color","secondary",3,"matMenuTriggerFor"],["name","ellipsis-vertical"],["menu","matMenu"],["mat-menu-item","",3,"click"],["viewBox","0 0 130 30","preserveAspectRatio","xMinYMin meet",3,"id"],["y","21"]],template:function(e,t){1&e&&ns(0,rW,18,37,"div",0),2&e&&os("ngForOf",t.signaturesService.datesContent[t.signaturesService.currentPage])},directives:[gh,DM,SM,LC,RC,nN,KC,Jz,Zz],pipes:[gE,Wh],styles:[".action-item ion-radio{--color:transparent;--color-checked:transparent}.test[_ngcontent-%COMP%]{position:absolute;border:1px dashed grey;background:hsla(0,0%,100%,.6) none repeat scroll 0 0;background:none;font:sans-serif}svg[_ngcontent-%COMP%]{width:100%;height:100%;pointer-events:none}text[_ngcontent-%COMP%]{pointer-events:auto}svg.text[_ngcontent-%COMP%]{display:block;font-size:inherit}"]}),oW),sW=function(e,t,n,i){return new(n||(n=Promise))(function(r,o){function a(e){try{l(i.next(e))}catch(t){o(t)}}function s(e){try{l(i.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((i=i.apply(e,t||[])).next())})};function lW(e,t){if(1&e){var n=fs();ss(0,"ion-item",6),ms("click",function(){nn(n);var e=t.$implicit;return ks().loadVisaWorkflow(e)}),ss(1,"ion-label"),Qs(2),ls(),ss(3,"ion-buttons",7),ss(4,"ion-button",8),ms("click",function(e){nn(n);var i=t.$implicit,r=ks();return e.stopPropagation(),r.removeModel(i)}),us(5,"ion-icon",9),ls(),ls(),ls()}if(2&e){var i=t.$implicit;xo(2),Xs(i.title)}}var uW,cW=((uW=function(){function e(t,n,i,r,o,a){A(this,e),this.http=t,this.translate=n,this.popoverController=i,this.alertController=r,this.notificationService=o,this.authService=a,this.currentWorkflow=[],this.visaWorkflowModels=[]}return m(e,[{key:"ngOnInit",value:function(){this.getVisaUserModels()}},{key:"createModel",value:function(){return sW(this,void 0,void 0,regeneratorRuntime.mark(function e(){var t,n=this;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.alertController.create({header:this.translate.instant("lang.newTemplate"),message:this.translate.instant("lang.newTemplateDesc"),inputs:[{name:"title",type:"text",placeholder:this.translate.instant("lang.label")+" *"}],buttons:[{text:this.translate.instant("lang.cancel"),role:"cancel",handler:function(){}},{text:this.translate.instant("lang.validate"),handler:function(e){return""!==e.title?(n.saveModel(e.title),!0):(n.notificationService.error(n.translate.instant("lang.label")+" "+n.translate.instant("lang.mandatory")),!1)}}]});case 2:return t=e.sent,e.next=5,t.present();case 5:case"end":return e.stop()}},e,this)}))}},{key:"saveModel",value:function(e){var t=this,n={title:e,items:this.currentWorkflow.map(function(e){return{userId:e.userId,mode:t.authService.getWorkflowMode(e.role),signatureMode:t.authService.getSignatureMode(e.role)}})};this.http.post("../rest/workflowTemplates",n).pipe(uw(function(n){t.notificationService.success("lang.modelCreated"),t.visaWorkflowModels.push({id:n.id,title:e})}),Zb(function(e){return t.notificationService.handleErrors(e),Ty(!1)})).subscribe()}},{key:"removeModel",value:function(e){return sW(this,void 0,void 0,regeneratorRuntime.mark(function t(){var n,i=this;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.alertController.create({header:this.translate.instant("lang.delete"),message:this.translate.instant("lang.deleteTemplate"),buttons:[{text:this.translate.instant("lang.no"),role:"cancel",handler:function(){}},{text:this.translate.instant("lang.yes"),handler:function(){i.http.delete("../rest/workflowTemplates/"+e.id).pipe(uw(function(){i.visaWorkflowModels=i.visaWorkflowModels.filter(function(t){return t.id!==e.id}),i.notificationService.success("Mod\xe8le ".concat(e.title," supprim\xe9"))}),Zb(function(e){return i.notificationService.handleErrors(e),Ty(!1)})).subscribe()}}]});case 2:return n=t.sent,t.next=5,n.present();case 5:case"end":return t.stop()}},t,this)}))}},{key:"getVisaUserModels",value:function(){var e=this;this.http.get("../rest/workflowTemplates").pipe(uw(function(t){e.visaWorkflowModels=t.workflowTemplates}),Zb(function(t){return e.notificationService.handleErrors(t),Ty(!1)})).subscribe()}},{key:"loadVisaWorkflow",value:function(e){var t=this;this.http.get("../rest/workflowTemplates/"+e.id).pipe(uw(function(e){var n=e.workflowTemplate.items.map(function(e){return{userId:e.userId,userDisplay:e.userLabel,role:"visa"===e.mode?"visa":e.signatureMode,processDate:null,current:!1,modes:["visa"].concat(e.userSignatureModes)}});t.popoverController.dismiss(n)}),Zb(function(e){return t.notificationService.handleErrors(e),Ty(!1)})).subscribe()}}]),e}()).\u0275fac=function(e){return new(e||uW)(rs(lb),rs(pE),rs(dP),rs(sP),rs(yE),rs(DE))},uW.\u0275cmp=ft({type:uW,selectors:[["app-visa-workflow-models"]],inputs:{currentWorkflow:"currentWorkflow"},decls:11,vars:8,consts:[["lines","none"],["color","secondary"],["button","",3,"click",4,"ngFor","ngForOf"],["button","",3,"disabled","click"],["color","primary","slot","start","name","add-circle-outline"],["color","primary"],["button","",3,"click"],["slot","end"],["fill","clear","slot","icon-only","shape","round","color","danger",3,"click"],["slot","icon-only","name","trash-outline"]],template:function(e,t){1&e&&(ss(0,"ion-list",0),ss(1,"ion-list-header"),ss(2,"ion-label",1),Qs(3),Du(4,"translate"),ls(),ls(),ns(5,lW,6,1,"ion-item",2),ss(6,"ion-item",3),ms("click",function(){return t.createModel()}),us(7,"ion-icon",4),ss(8,"ion-label",5),Qs(9),Du(10,"translate"),ls(),ls(),ls()),2&e&&(xo(3),Xs(Ou(4,4,"lang.circuitModels")),xo(2),os("ngForOf",t.visaWorkflowModels),xo(1),os("disabled",0===t.currentWorkflow.length),xo(3),Xs(Ou(10,6,"lang.newTemplate")))},directives:[sS,lS,aS,gh,nS,KC,LC,RC],pipes:[gE],styles:[""]}),uW);function dW(e,t){if(1&e){var n=fs();ss(0,"ion-item"),ss(1,"ion-checkbox",19),ms("ionChange",function(e){nn(n),ks(2);var t=is(3);return ks().addUser(e.detail.value,t)}),ls(),ss(2,"ion-label"),Qs(3),ls(),ss(4,"ion-note",13),Qs(5),ls(),ls()}if(2&e){var i=t.$implicit;xo(1),os("value",i),xo(2),Js("",i.firstname," ",i.lastname,""),xo(2),Xs(i.email)}}function hW(e,t){if(1&e&&(ss(0,"ion-list",17),ns(1,dW,6,4,"ion-item",18),ls()),2&e){var n=ks(2);xo(1),os("ngForOf",n.visaUsersList)}}function fW(e,t){if(1&e){var n=fs();cs(0),ss(1,"ion-item",10),ss(2,"ion-searchbar",11,12),ms("ngModelChange",function(e){return nn(n),ks().visaUsersSearchVal=e})("ionChange",function(e){return nn(n),ks().getVisaUsers(e)})("ionFocus",function(){return nn(n),ks().visaUsersSearchVal=""}),Du(4,"translate"),ls(),ss(5,"ion-buttons",13),ss(6,"ion-button",14),ms("click",function(e){return nn(n),ks().openVisaWorkflowModels(e)}),Du(7,"translate"),us(8,"ion-icon",15),ls(),ls(),ls(),ns(9,hW,2,1,"ion-list",16),ds()}if(2&e){var i=ks();xo(2),os("ngModel",i.visaUsersSearchVal)("placeholder",Ou(4,4,"lang.searchUser")),xo(4),os("title",Ou(7,6,"lang.circuitModels")),xo(3),os("ngIf",i.visaUsersList.length>0)}}function pW(e,t){1&e&&(ss(0,"ion-list"),ss(1,"ion-item",10),ss(2,"ion-label",20),Qs(3),Du(4,"translate"),ls(),ls(),ls()),2&e&&(xo(3),Xs(Ou(4,1,"lang.noUserInWorkflow")))}function gW(e,t){1&e&&(ss(0,"p",31),Qs(1),Du(2,"translate"),ls()),2&e&&(xo(1),Ks(" ",Ou(2,1,"lang.substituteMsg"),""))}function vW(e,t){if(1&e&&(ss(0,"h2",32),Qs(1),ls()),2&e){var n=ks().$implicit;os("title",n.userDisplay),xo(1),Xs(n.userDisplay)}}function mW(e,t){1&e&&(ss(0,"h2",33),Qs(1),Du(2,"translate"),ls()),2&e&&(os("title",ks().$implicit.userDisplay),xo(1),Ks(" ",Ou(2,2,"lang.userDeleted"),""))}function yW(e,t){if(1&e&&(ss(0,"ion-select-option",37),Qs(1),Du(2,"translate"),ls()),2&e){var n=t.$implicit,i=ks(2),r=i.index,o=i.$implicit,a=ks();os("value",n)("disabled",!a.isValidRole(r,n,o.role)),xo(1),Ks(" ",Ou(2,3,"lang."+n+"User")," ")}}function bW(e,t){if(1&e){var n=fs();ss(0,"p",34),ss(1,"ion-select",35),ms("ngModelChange",function(e){return nn(n),ks().$implicit.role=e}),Du(2,"translate"),ns(3,yW,3,5,"ion-select-option",36),ls(),ls()}if(2&e){var i,r=ks().$implicit,o=ks();xo(1),Ls("color",null==(i=o.getRole(r.role))?null:i.color),os("ngModel",r.role)("title",Ou(2,7,"lang."+r.role+"User"))("interfaceOptions",o.customPopoverOptions)("disabled",!o.editMode),xo(2),os("ngForOf",r.modes)}}function wW(e,t){if(1&e&&(ss(0,"ion-note",41),Qs(1),Du(2,"translate"),ls()),2&e){var n=ks(2).$implicit;xo(1),Js(" ",Ou(2,2,"lang."+n.mode+"ProcessInfo")," ",n.processDate," ")}}function _W(e,t){if(1&e&&(ss(0,"ion-note",42),Qs(1),Du(2,"translate"),ls()),2&e){var n=ks(2).$implicit;xo(1),Js(" ",Ou(2,2,"lang.refProcessInfo")," ",n.processDate," ")}}function kW(e,t){if(1&e&&(ss(0,"ion-note",43),Qs(1),Du(2,"translate"),ls()),2&e){var n=ks(2).$implicit;xo(1),Js(" ",Ou(2,2,"lang.stopProcessInfo")," ",n.processDate," ")}}function xW(e,t){if(1&e&&(ss(0,"p",32),ns(1,wW,3,4,"ion-note",38),ns(2,_W,3,4,"ion-note",39),ns(3,kW,3,4,"ion-note",40),ls()),2&e){var n=ks().$implicit;os("title",n.processDate),xo(1),os("ngIf","VAL"===n.status),xo(1),os("ngIf","REF"===n.status),xo(1),os("ngIf","STOP"===n.status)}}function AW(e,t){1&e&&us(0,"ion-icon",44)}function CW(e,t){if(1&e){var n=fs();ss(0,"ion-button",45),ms("click",function(e){nn(n);var t=ks().index,i=ks();return e.stopPropagation(),i.removeUser(t)}),us(1,"ion-icon",46),ls()}}function SW(e,t){if(1&e&&(ss(0,"ion-item",21),ss(1,"ion-reorder",2),us(2,"ion-icon",22),Du(3,"translate"),ls(),ss(4,"ion-avatar",23),ms("click",function(e){return e.stopPropagation()}),us(5,"img",24),ls(),ss(6,"ion-label"),ns(7,gW,3,3,"p",25),ns(8,vW,2,2,"h2",26),ns(9,mW,3,4,"h2",27),ns(10,bW,4,9,"p",28),ns(11,xW,4,4,"p",26),ls(),ns(12,AW,1,0,"ion-icon",29),ss(13,"ion-buttons",13),ns(14,CW,2,0,"ion-button",30),ls(),ls()),2&e){var n=t.$implicit,i=ks();Fs("current",n.current),xo(2),os("title",Ou(3,11,"lang.reorder")),xo(3),os("src",n.userPicture,Cr),xo(2),os("ngIf",n.current&&n.userId!==i.authService.user.id),xo(1),os("ngIf",""!==n.userDisplay),xo(1),os("ngIf",""===n.userDisplay),xo(1),os("ngIf",null===n.processDate),xo(1),os("ngIf",null!==n.processDate),xo(1),os("ngIf",!i.editMode&&n.current),xo(2),os("ngIf",i.editMode)}}var PW,EW=((PW=function(){function e(t,n,i,r,o){A(this,e),this.http=t,this.signaturesService=n,this.authService=i,this.notificationService=r,this.popoverController=o,this.editMode=!1,this.visaWorkflow=[],this.loading=!1,this.visaUsersSearchVal="",this.visaUsersList=[],this.showVisaUsersList=!1,this.customPopoverOptions={header:"Roles"},this.roles=[]}return m(e,[{key:"ngOnInit",value:function(){var e=this;this.visaWorkflow.forEach(function(t,n){e.getAvatarUser(n)})}},{key:"doReorder",value:function(e){this.canMoveUser(e)?this.visaWorkflow=e.detail.complete(this.visaWorkflow):(this.notificationService.error("lang.errorUserSignType"),e.detail.complete(!1))}},{key:"canMoveUser",value:function(e){var t=this.array_move(this.visaWorkflow.slice(),e.detail.from,e.detail.to);return t=t.filter(function(e){return void 0!==e}),this.isValidWorkflow(t)}},{key:"isValidWorkflow",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.visaWorkflow,t=!0;return e.forEach(function(n,i){-1===["visa","stamp"].indexOf(n.role)&&e.filter(function(e,t){return t>i&&"stamp"===e.role}).length>0&&(t=!1)}),t}},{key:"array_move",value:function(e,t,n){if(n>=e.length)for(var i=n-e.length+1;i--;)e.push(void 0);return e.splice(n,0,e.splice(t,1)[0]),e}},{key:"getVisaUsers",value:function(e){var t=this;this.showVisaUsersList=!0,""===e.detail.value?this.resetVisaUsersList():e.detail.value.length>=3&&this.http.get("../rest/autocomplete/users?search="+e.detail.value).pipe(uw(function(e){t.visaUsersList=e}),Zb(function(e){return t.notificationService.handleErrors(e),Ty(!1)})).subscribe()}},{key:"addUser",value:function(e,t){this.resetVisaUsersList(),e.signatureModes.unshift("visa"),this.visaWorkflow.push({userId:e.id,userDisplay:"".concat(e.firstname," ").concat(e.lastname),role:e.signatureModes[e.signatureModes.length-1],processDate:null,current:!1,modes:e.signatureModes}),this.isValidWorkflow()||(this.visaWorkflow[this.visaWorkflow.length-1].role="visa"),this.getAvatarUser(this.visaWorkflow.length-1),this.visaUsersSearchVal="",t.setFocus()}},{key:"removeUser",value:function(e){this.visaWorkflow.splice(e,1)}},{key:"getAvatarUser",value:function(e){var t=this;void 0===this.visaWorkflow[e].userPicture&&""!==this.visaWorkflow[e].userDisplay&&this.http.get("../rest/users/"+this.visaWorkflow[e].userId+"/picture").pipe(uw(function(n){t.visaWorkflow[e].userPicture=n.picture}),Zb(function(e){return t.notificationService.handleErrors(e),Ty(!1)})).subscribe()}},{key:"resetVisaUsersList",value:function(){this.visaUsersList=[]}},{key:"openVisaWorkflowModels",value:function(e){return t=this,i=regeneratorRuntime.mark(function t(){var n,i=this;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.popoverController.create({component:cW,componentProps:{currentWorkflow:this.visaWorkflow},event:e});case 2:return n=t.sent,t.next=5,n.present();case 5:n.onDidDismiss().then(function(e){"backdrop"!==e.role&&(i.visaWorkflow=i.visaWorkflow.concat(e.data),i.visaWorkflow.forEach(function(e,t){i.getAvatarUser(t)}))});case 6:case"end":return t.stop()}},t,this)}),new((n=void 0)||(n=Promise))(function(e,r){function o(e){try{s(i.next(e))}catch(t){r(t)}}function a(e){try{s(i.throw(e))}catch(t){r(t)}}function s(t){var i;t.done?e(t.value):(i=t.value,i instanceof n?i:new n(function(e){e(i)})).then(o,a)}s((i=i.apply(t,[])).next())});var t,n,i}},{key:"getCurrentWorkflow",value:function(){return this.visaWorkflow}},{key:"getRole",value:function(e){return this.authService.signatureRoles.filter(function(t){return t.id===e})[0]}},{key:"loadWorkflow",value:function(e){this.visaWorkflow=e;for(var t=this.visaWorkflow.length,n=0;n<t;n++)this.getAvatarUser(n)}},{key:"isValidRole",value:function(e,t,n){return!(this.visaWorkflow.filter(function(t,n){return n>e&&["stamp"].indexOf(t.role)>-1}).length>0&&["visa","stamp"].indexOf(n)>-1&&-1===["visa","stamp"].indexOf(t)||this.visaWorkflow.filter(function(t,n){return n<e&&-1===["visa","stamp"].indexOf(t.role)}).length>0&&"stamp"===t)}},{key:"setPositionsWorkfow",value:function(e,t){var n=this;this.clearPositionsFromResource(e),t.length>0&&Object.keys(t).forEach(function(i){var r=Object.assign(Object.assign({},t[i]),{mainDocument:e.mainDocument});n.visaWorkflow[t[i].sequence].signaturePositions=n.visaWorkflow[t[i].sequence].signaturePositions.filter(function(t){return t.mainDocument!==e.mainDocument}),n.visaWorkflow[t[i].sequence].signaturePositions.push(r)})}},{key:"clearPositionsFromResource",value:function(e){this.visaWorkflow.forEach(function(t){t.signaturePositions=t.signaturePositions.filter(function(t){return t.mainDocument!==e.mainDocument})})}}]),e}()).\u0275fac=function(e){return new(e||PW)(rs(lb),rs(PE),rs(DE),rs(yE),rs(dP))},PW.\u0275cmp=ft({type:PW,selectors:[["app-visa-workflow"]],viewQuery:function(e,t){var n;1&e&&Qu(mS,1),2&e&&Zu(n=Ku())&&(t.reorderGroup=n.first)},inputs:{editMode:"editMode",visaWorkflow:"visaWorkflow"},decls:13,vars:8,consts:[[3,"translucent"],["color","primary"],["slot","start"],["disabled",""],["slot","icon-only","name","list-outline"],[1,"ion-text-center"],[3,"click"],[4,"ngIf"],[3,"disabled","ionItemReorder"],["class","no-ripple",3,"current",4,"ngFor","ngForOf"],["lines","none"],[3,"ngModel","placeholder","ngModelChange","ionChange","ionFocus"],["searchInput",""],["slot","end"],["fill","clear","slot","icon-only","shape","round","color","primary",3,"title","click"],["slot","icon-only","name","albums-outline"],["style","position: absolute;z-index: 2;width: 100%;box-shadow: 0 4px 2px -2px gray;",4,"ngIf"],[2,"position","absolute","z-index","2","width","100%","box-shadow","0 4px 2px -2px gray"],[4,"ngFor","ngForOf"],["color","primary","slot","start",3,"value","ionChange"],["color","medium",1,"ion-text-center"],[1,"no-ripple"],["name","reorder-three",2,"font-size","30px",3,"title"],["slot","start",1,"avatar-user",2,"cursor","grab",3,"click"],[3,"src"],["class","secondary",4,"ngIf"],[3,"title",4,"ngIf"],["class","danger",3,"title",4,"ngIf"],["style","display: flex;justify-content: start;",4,"ngIf"],["color","success","slot","end","name","caret-back-outline",4,"ngIf"],["style","z-index: 9999","fill","clear","slot","icon-only","shape","round","color","danger",3,"click",4,"ngIf"],[1,"secondary"],[3,"title"],[1,"danger",3,"title"],[2,"display","flex","justify-content","start"],["interface","popover",2,"width","auto","max-width","100%","padding-left","0px",3,"ngModel","title","interfaceOptions","disabled","ngModelChange"],[3,"value","disabled",4,"ngFor","ngForOf"],[3,"value","disabled"],["class","valProcess",4,"ngIf"],["class","refProcess",4,"ngIf"],["class","stopProcess",4,"ngIf"],[1,"valProcess"],[1,"refProcess"],[1,"stopProcess"],["color","success","slot","end","name","caret-back-outline"],["fill","clear","slot","icon-only","shape","round","color","danger",2,"z-index","9999",3,"click"],["slot","icon-only","name","trash-outline"]],template:function(e,t){1&e&&(ss(0,"ion-header",0),ss(1,"ion-toolbar",1),ss(2,"ion-buttons",2),ss(3,"ion-button",3),us(4,"ion-icon",4),ls(),ls(),ss(5,"ion-title",5),Qs(6),Du(7,"translate"),ls(),ls(),ls(),ss(8,"ion-content",6),ms("click",function(){return t.resetVisaUsersList()}),ns(9,fW,10,8,"ng-container",7),ns(10,pW,5,3,"ion-list",7),ss(11,"ion-reorder-group",8),ms("ionItemReorder",function(e){return t.doReorder(e)}),ns(12,SW,15,13,"ion-item",9),ls(),ls()),2&e&&(os("translucent",!0),xo(6),Xs(Ou(7,6,"lang.circuit")),xo(3),os("ngIf",t.editMode),xo(1),os("ngIf",0===t.visaWorkflow.length),xo(1),os("disabled",!t.editMode),xo(1),os("ngForOf",t.visaWorkflow))},directives:[XC,DS,LC,RC,KC,PS,UC,mh,mS,gh,nS,bS,nA,hm,Ym,sS,NC,Jx,aS,hS,vS,MC,kS,tA,xS],pipes:[gE],styles:[".current[_ngcontent-%COMP%]{border-left:5px solid var(--ion-color-success)}.primary[_ngcontent-%COMP%]{color:var(--ion-color-primary)}.secondary[_ngcontent-%COMP%]{color:var(--ion-color-secondary)}.success[_ngcontent-%COMP%]{color:var(--ion-color-success)}.danger[_ngcontent-%COMP%]{color:var(--ion-color-danger)}.avatar-user[_ngcontent-%COMP%]{width:50px;height:50px;border:solid var(--ion-color-secondary)}ion-select[_ngcontent-%COMP%]{font-size:12px}.no-ripple[_ngcontent-%COMP%]{--ripple-color:transparent}.item-select-disabled[_ngcontent-%COMP%]   ion-label[_ngcontent-%COMP%], .select-disabled[_ngcontent-%COMP%]{opacity:1}.item-select-disabled[_ngcontent-%COMP%]   ion-select[_ngcontent-%COMP%]::part(icon){display:none!important}.valProcess[_ngcontent-%COMP%]{color:var(--ion-color-success)}.refProcess[_ngcontent-%COMP%], .stopProcess[_ngcontent-%COMP%], .valProcess[_ngcontent-%COMP%]{display:flex;justify-content:flex-start;font-size:12px;text-align:right;padding-top:10px;padding-bottom:10px}.refProcess[_ngcontent-%COMP%], .stopProcess[_ngcontent-%COMP%]{color:var(--ion-color-danger)}"]}),PW);function DW(e,t){if(1&e){var n=fs();ss(0,"ion-item",9),ms("click",function(){nn(n);var e=t.$implicit;return ks().goTo(e.id)}),ss(1,"div"),ss(2,"ion-label",10),Qs(3),ls(),ss(4,"ion-label",11),Qs(5),Du(6,"shorten"),ls(),ls(),us(7,"ion-icon",12),ls()}if(2&e){var i=t.$implicit;xo(3),Xs(i.reference),xo(2),Xs(Tu(6,2,i.title,50,"..."))}}var OW,MW=((OW=function(){function e(t){A(this,e),this.router=t}return m(e,[{key:"ngOnInit",value:function(){}},{key:"goTo",value:function(e){this.router.navigate(["/documents/"+e])}}]),e}()).\u0275fac=function(e){return new(e||OW)(rs(jk))},OW.\u0275cmp=ft({type:OW,selectors:[["app-associated-documents"]],inputs:{associatedDocuments:"associatedDocuments"},decls:14,vars:6,consts:[[3,"translucent"],["color","primary"],["slot","start"],["disabled",""],["slot","icon-only","name","link-outline"],[1,"ion-text-center"],[1,"secondary"],[2,"display","flex","flex-direction","column","height","100%"],["class","doc-item",3,"click",4,"ngFor","ngForOf"],[1,"doc-item",3,"click"],[1,"sub-label"],["color","primary",1,"ion-text-wrap"],["slot","end","color","medium","name","arrow-forward-outline"]],template:function(e,t){1&e&&(ss(0,"ion-header",0),ss(1,"ion-toolbar",1),ss(2,"ion-buttons",2),ss(3,"ion-button",3),us(4,"ion-icon",4),ls(),ls(),ss(5,"ion-title",5),ss(6,"b",6),Qs(7),ls(),Qs(8),Du(9,"translate"),ls(),ls(),ls(),ss(10,"ion-content"),ss(11,"div",7),ss(12,"ion-list"),ns(13,DW,8,6,"ion-item",8),ls(),ls(),ls()),2&e&&(os("translucent",!0),xo(7),Xs(null==t.associatedDocuments?null:t.associatedDocuments.length),xo(1),Ks("\xa0",Ou(9,4,"lang.associatedDocuments"),""),xo(5),os("ngForOf",t.associatedDocuments))},directives:[XC,DS,LC,RC,KC,PS,UC,sS,gh,nS,aS],pipes:[gE,YM],styles:[".mat-list-item[_ngcontent-%COMP%]{height:auto!important;text-align:center}.mat-card[_ngcontent-%COMP%]{box-shadow:none;border:1px solid #e0e0e0}.mat-icon[_ngcontent-%COMP%]{height:auto}img[_ngcontent-%COMP%]{pointer-events:none}.secondary[_ngcontent-%COMP%]{color:var(--ion-color-secondary)}.doc-item[_ngcontent-%COMP%]{--inner-padding-bottom:10px;--inner-padding-top:10px;cursor:pointer}.sub-label[_ngcontent-%COMP%]{font-size:11px;--color:var(--ion-color-medium)}"]}),OW);function TW(e,t){1&e&&(ss(0,"ion-card"),ss(1,"ion-item",13),us(2,"ion-icon",14),ss(3,"ion-label"),Qs(4),Du(5,"translate"),ls(),ls(),ls()),2&e&&(xo(4),Xs(Ou(5,1,"lang.docIsInMailGroup")))}function IW(e,t){if(1&e&&(ss(0,"ion-item",8),ss(1,"ion-label",9),Qs(2),Du(3,"translate"),ls(),us(4,"ion-input",10),ls()),2&e){var n=ks();os("title",n.mainDocument.description),xo(2),Xs(Ou(3,3,"lang.description")),xo(2),os("value",n.mainDocument.description)}}function RW(e,t){if(1&e&&(ss(0,"ion-item",8),ss(1,"ion-label",9),Qs(2),Du(3,"translate"),ls(),us(4,"ion-input",10),ls()),2&e){var n=ks();os("title",n.mainDocument.deadline),xo(2),Xs(Ou(3,3,"lang.processingDeadline")),xo(2),os("value",n.mainDocument.deadline)}}function LW(e,t){if(1&e&&(ss(0,"ion-item"),ss(1,"ion-label",9),Qs(2),Du(3,"translate"),ls(),us(4,"ion-input",10),ls()),2&e){var n=t.$implicit;xo(2),Xs(Ou(3,2,n.label)),xo(2),os("value",n.value)}}var FW,BW=((FW=function(){function e(t,n){A(this,e),this.signaturesService=t,this.functionsService=n,this.loading=!1}return m(e,[{key:"ngOnInit",value:function(){}}]),e}()).\u0275fac=function(e){return new(e||FW)(rs(PE),rs(IU))},FW.\u0275cmp=ft({type:FW,selectors:[["app-main-document-detail"]],inputs:{mainDocument:"mainDocument"},decls:29,vars:23,consts:[[3,"translucent"],["color","primary"],["slot","start"],["disabled",""],["slot","icon-only","name","information-circle"],[1,"ion-text-center"],[4,"ngIf"],["lines","full",1,"ion-no-margin"],[3,"title"],["color","secondary","position","floating"],["readonly","",3,"value"],[3,"title",4,"ngIf"],[4,"ngFor","ngForOf"],["color","danger"],["name","alert-circle","slot","start"]],template:function(e,t){1&e&&(ss(0,"ion-header",0),ss(1,"ion-toolbar",1),ss(2,"ion-buttons",2),ss(3,"ion-button",3),us(4,"ion-icon",4),ls(),ls(),ss(5,"ion-title",5),Qs(6),Du(7,"translate"),ls(),ls(),ls(),ss(8,"ion-content"),ns(9,TW,6,3,"ion-card",6),ss(10,"ion-list",7),ss(11,"ion-item",8),ss(12,"ion-label",9),Qs(13),Du(14,"translate"),ls(),us(15,"ion-input",10),ls(),ns(16,IW,5,5,"ion-item",11),ns(17,RW,5,5,"ion-item",11),ss(18,"ion-item",8),ss(19,"ion-label",9),Qs(20),Du(21,"translate"),ls(),us(22,"ion-input",10),ls(),ss(23,"ion-item",8),ss(24,"ion-label",9),Qs(25),Du(26,"translate"),ls(),us(27,"ion-input",10),ls(),ns(28,LW,5,4,"ion-item",12),ls(),ls()),2&e&&(os("translucent",!0),xo(6),Xs(Ou(7,15,"lang.informations")),xo(3),os("ngIf",!t.functionsService.empty(t.mainDocument.mailingId)),xo(2),os("title",t.mainDocument.sender),xo(2),Xs(Ou(14,17,"lang.emittedBy")),xo(2),os("value",t.mainDocument.sender),xo(1),os("ngIf",null!=t.mainDocument.description),xo(1),os("ngIf",null!=t.mainDocument.deadline),xo(1),os("title",t.mainDocument.reference),xo(2),Xs(Ou(21,19,"lang.reference")),xo(2),os("value",t.mainDocument.reference),xo(1),os("title",t.mainDocument.title),xo(2),Xs(Ou(26,21,"lang.subject")),xo(2),os("value",t.mainDocument.title),xo(1),os("ngForOf",t.mainDocument.metadata))},directives:[XC,DS,LC,RC,KC,PS,UC,mh,sS,nS,aS,tS,nA,gh,FC],pipes:[gE],styles:[".mat-list-item[_ngcontent-%COMP%]{height:auto!important;text-align:center}.mat-card[_ngcontent-%COMP%]{box-shadow:none;border:1px solid #e0e0e0}.mat-icon[_ngcontent-%COMP%]{height:auto}.current[_ngcontent-%COMP%]{box-shadow:0 0 20px 0 #656565}.panel-header[_ngcontent-%COMP%]{box-shadow:0 0 10px 0 #656565;color:#fff;background:#135f7f;height:65px;justify-content:center;font-size:20px;align-items:center}.panel-content[_ngcontent-%COMP%], .panel-header[_ngcontent-%COMP%]{display:flex;position:relative}.panel-content[_ngcontent-%COMP%]{flex-direction:column;height:100%;overflow:hidden}.closePanel[_ngcontent-%COMP%]{position:absolute;left:0;font-size:24px}.panel-content[_ngcontent-%COMP%]    .mat-form-field-label{color:#f99830}.panel-content[_ngcontent-%COMP%]    .mat-input-element:disabled{color:#135f7f}"]}),FW),VW=function(e,t,n,i){return new(n||(n=Promise))(function(r,o){function a(e){try{l(i.next(e))}catch(t){o(t)}}function s(e){try{l(i.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((i=i.apply(e,t||[])).next())})},zW=["mainContent"],NW=["img"],HW=["snav"],jW=["dragElem"],UW=["appDocumentNotePad"],WW=["appDocumentList"],GW=["rightContent"],qW=["pagesList"];function YW(e,t){if(1&e){var n=fs();ss(0,"ion-segment-button",20),ms("click",function(){return nn(n),ks(2).openAssociatedDocuments()}),ss(1,"ion-label",11),Qs(2),Du(3,"ucfirst"),Du(4,"translate"),ls(),us(5,"ion-icon",21),ss(6,"ion-badge",15),Qs(7),ls(),ls()}if(2&e){var i=ks(2);xo(2),Xs(Ou(3,2,Ou(4,4,"lang.associatedDocuments"))),xo(5),Ks(" ",i.mainDocument.linkedDocuments.length," ")}}function ZW(e,t){if(1&e){var n=fs();ss(0,"ion-buttons",22),ss(1,"ion-button",23),ms("click",function(e){return nn(n),ks(2).openAction(e)}),us(2,"ion-icon",24),ls(),ls()}}function QW(e,t){if(1&e){var n=fs();ss(0,"ion-header",6),ss(1,"ion-toolbar",7),ss(2,"ion-buttons",8),us(3,"ion-menu-button"),ls(),ss(4,"ion-segment",9),ms("ionChange",function(e){return nn(n),ks().signaturesService.currentToobal=e.detail.value}),ss(5,"ion-segment-button",10),ms("click",function(){return nn(n),ks().openMainDocumentDetail()}),ss(6,"ion-label",11),Qs(7),Du(8,"translate"),ls(),us(9,"ion-icon",12),ls(),ss(10,"ion-segment-button",13),ms("click",function(){return nn(n),ks().openDocumentList()}),ss(11,"ion-label",11),Qs(12),Du(13,"ucfirst"),Du(14,"translate"),ls(),us(15,"ion-icon",14),ss(16,"ion-badge",15),Qs(17),ls(),ls(),ns(18,YW,8,6,"ion-segment-button",16),ss(19,"ion-segment-button",17),ms("click",function(){return nn(n),ks().openVisaWorkflow()}),ss(20,"ion-label",11),Qs(21),Du(22,"translate"),ls(),us(23,"ion-icon",18),ss(24,"ion-badge",15),Qs(25),ls(),ls(),ls(),ns(26,ZW,3,0,"ion-buttons",19),ls(),ls()}if(2&e){var i=ks();os("translucent",!0),xo(4),os("value",i.signaturesService.currentToobal),xo(3),Xs(Ou(8,9,"lang.informations")),xo(5),Xs(Ou(13,11,Ou(14,13,"lang.attachedElements"))),xo(5),Ks(" ",i.mainDocument.attachments.length+1," "),xo(1),os("ngIf",void 0!==i.mainDocument.linkedDocuments&&i.mainDocument.linkedDocuments.length>0),xo(3),Xs(Ou(22,15,"lang.circuit")),xo(4),Ks(" ",i.mainDocument.workflow.length," "),xo(1),os("ngIf",!i.detailMode)}}function XW(e,t){1&e&&(ss(0,"ion-toolbar",25),ss(1,"ion-label",26),Qs(2),Du(3,"translate"),ls(),ls()),2&e&&(xo(2),Xs(Ou(3,1,"lang.substitutionInfo")))}function KW(e,t){1&e&&(ss(0,"ion-toolbar",27),ss(1,"ion-label",26),Qs(2),Du(3,"translate"),ls(),ls()),2&e&&(xo(2),Xs(Ou(3,1,"lang.convertingDocument")))}function JW(e,t){if(1&e){var n=fs();ss(0,"ion-fab-button",40),ms("movingOffset",function(){return nn(n),ks(3).signaturesService.dragging=!0})("endOffset",function(){return nn(n),ks(3).signaturesService.dragging=!1})("click",function(){return nn(n),ks(3).expandedNote=!0}),Du(1,"translate"),us(2,"ion-icon",41),ls()}if(2&e){ks(2);var i=is(7),r=ks();os("bounds",i)("inBounds",!0)("title",Ou(1,4,"lang.expandNote"))("disabled",r.signaturesService.dragging)}}function $W(e,t){if(1&e&&(cs(0),ss(1,"div",48),Qs(2),ls(),ss(3,"div",49),Qs(4),ls(),ds()),2&e){var n=ks(4);xo(2),Js(" ",n.mainDocument.notes.creator," (",n.mainDocument.notes.creationDate,") : "),xo(2),Ks(" ",n.mainDocument.notes.value," ")}}function eG(e,t){if(1&e&&(ss(0,"div"),ss(1,"div",48),Qs(2),ls(),ss(3,"div",49),Qs(4),ls(),ls()),2&e){var n=ks().$implicit;xo(2),Js(" ",n.userDisplay," (",n.processDate,") : "),xo(2),Ks(" ",n.note," ")}}function tG(e,t){if(1&e&&(cs(0),ns(1,eG,5,3,"div",3),ds()),2&e){var n=t.$implicit;xo(1),os("ngIf",n.note)}}function nG(e,t){if(1&e){var n=fs();ss(0,"div",42),ms("movingOffset",function(){return nn(n),ks(3).signaturesService.dragging=!0})("endOffset",function(){return nn(n),ks(3).signaturesService.dragging=!1}),ss(1,"div",43),us(2,"i",44),ss(3,"span",45),Qs(4),Du(5,"translate"),ls(),ss(6,"i",46),ms("click",function(){return nn(n),ks(3).expandedNote=!1}),Du(7,"translate"),ls(),ls(),ns(8,$W,5,3,"ng-container",3),ns(9,tG,2,1,"ng-container",47),ls()}if(2&e){ks(2);var i=is(7),r=ks();os("bounds",i)("inBounds",!0),xo(4),Xs(Ou(5,6,"lang.note")),xo(2),os("title",Ou(7,8,"lang.collapseNote")),xo(2),os("ngIf",null!=r.mainDocument.notes),xo(1),os("ngForOf",r.mainDocument.workflow)}}function iG(e,t){if(1&e&&(cs(0),ns(1,JW,3,6,"ion-fab-button",38),ns(2,nG,10,10,"div",39),ds()),2&e){var n=ks(2);xo(1),os("ngIf",!n.expandedNote),xo(1),os("ngIf",n.expandedNote)}}function rG(e,t){1&e&&us(0,"app-document-note-list")}function oG(e,t){1&e&&us(0,"app-document-sign-list",50),2&e&&(ks(),os("bounds",is(7)))}function aG(e,t){1&e&&us(0,"app-document-date-list",50),2&e&&(ks(),os("bounds",is(7)))}function sG(e,t){if(1&e){var n=fs();ss(0,"ion-img",51,52),ms("ionImgDidLoad",function(e){return nn(n),ks(2).imageLoaded(e)}),ls()}if(2&e){var i=ks(2);Ls("width",i.signaturesService.workingAreaWidth,"px")("height",i.signaturesService.workingAreaHeight,"px"),os("src",i.docList[i.currentDoc].imgContent[i.pageNum])}}function lG(e,t){if(1&e&&(ss(0,"ion-select-option",59),Qs(1),ls()),2&e){var n=t.index,i=ks(3);os("value",n+1)("disabled",n+1===i.pageNum),xo(1),Xs(n+1)}}var uG=function(e){return{cssClass:e}};function cG(e,t){if(1&e){var n=fs();ss(0,"section",53),ss(1,"div",54),Qs(2),ls(),ss(3,"div",55),ms("click",function(e){return nn(n),ks(2).openSelect(e)}),Qs(4),Du(5,"translate"),ls(),ss(6,"ion-select",56,57),ms("ngModelChange",function(e){return nn(n),ks(2).pageNum=e})("ionChange",function(e){return nn(n),ks(2).goTo(e.target.value)}),ns(8,lG,2,3,"ion-select-option",58),ls(),ls()}if(2&e){var i=ks(2);xo(2),Ks(" ",i.docList[i.currentDoc].title," "),xo(2),$s("",Ou(5,7,"lang.page")," ",i.pageNum," / ",i.totalPages,""),xo(2),os("ngModel",i.pageNum)("interfaceOptions",Au(9,uG,i.totalPages>10?"popover-class":"custom-popover-class")),xo(2),os("ngForOf",i.pagesArray(i.totalPages))}}function dG(e,t){1&e&&(ss(0,"ion-item",60),us(1,"ion-icon",61),ss(2,"ion-label"),Qs(3),Du(4,"translate"),ls(),ls()),2&e&&(xo(3),Xs(Ou(4,1,"lang.certifiedDocument")))}function hG(e,t){if(1&e){var n=fs();ss(0,"ion-fab-button",64),ms("click",function(){return nn(n),ks(3).prevPage()}),us(1,"ion-icon",65),ls()}}function fG(e,t){if(1&e){var n=fs();ss(0,"ion-fab-button",66),ms("click",function(){return nn(n),ks(3).nextPage()}),us(1,"ion-icon",67),ls()}}function pG(e,t){if(1&e&&(cs(0),ns(1,hG,2,0,"ion-fab-button",62),ns(2,fG,2,0,"ion-fab-button",63),ds()),2&e){var n=ks(2);xo(1),os("ngIf",n.pageNum>1&&!n.loadingImage),xo(1),os("ngIf",n.pageNum<n.totalPages&&!n.loadingImage)}}function gG(e,t){if(1&e){var n=fs();ss(0,"ion-content",null,28),ns(2,iG,3,2,"ng-container",3),ss(3,"div",29),ss(4,"drag-scroll",30,31),ms("click",function(e){nn(n);var t=ks();return 0==t.currentDoc&&!t.detailMode&&t.openAction(e)}),ss(6,"div",32,33),ns(8,rG,1,0,"app-document-note-list",3),ns(9,oG,1,1,"app-document-sign-list",34),ns(10,aG,1,1,"app-document-date-list",34),ns(11,sG,2,5,"ion-img",35),ls(),ls(),ls(),ns(12,cG,9,11,"section",36),ns(13,dG,5,3,"ion-item",37),ns(14,pG,3,2,"ng-container",3),ls()}if(2&e){var i=ks();xo(2),os("ngIf",null!=i.mainDocument.notes||i.hasWorkflowNotes),xo(2),Ls("max-width",i.signaturesService.workingAreaWidth,"px"),os("drag-scroll-disabled",(i.signaturesService.dragging||i.signaturesService.resizing)&&i.signaturesService.mobileMode)("drag-disabled",(i.signaturesService.dragging||i.signaturesService.resizing)&&!i.signaturesService.mobileMode),xo(2),Ls("width",i.signaturesService.workingAreaWidth,"px")("height",i.signaturesService.workingAreaHeight,"px"),xo(2),os("ngIf",0==i.currentDoc&&!i.loadingImage),xo(1),os("ngIf",0===i.currentDoc&&!i.loadingImage&&i.signaturesService.signaturesContent[i.pageNum]),xo(1),os("ngIf",0===i.currentDoc&&!i.loadingImage&&i.signaturesService.datesContent[i.pageNum]),xo(1),os("ngIf",void 0!==i.docList[i.currentDoc]&&!i.functionsService.empty(i.docList[i.currentDoc].imgContent[i.pageNum])),xo(1),os("ngIf",!i.signaturesService.dragging&&!i.signaturesService.resizing&&i.docList[i.currentDoc]),xo(1),os("ngIf",i.mainDocument.isCertified),xo(1),os("ngIf",!i.signaturesService.dragging&&!i.signaturesService.resizing&&!i.loadingImage)}}function vG(e,t){if(1&e&&us(0,"ion-icon",72),2&e){var n=ks().$implicit;os("slot","start")("name",n.logo)}}function mG(e,t){if(1&e){var n=fs();ss(0,"ion-button",70),ms("click",function(){nn(n);var e=t.$implicit;return ks(2).launchEvent(e)}),ns(1,vG,1,2,"ion-icon",71),ss(2,"ion-label",26),Qs(3),Du(4,"translate"),ls(),ls()}if(2&e){var i=t.$implicit;os("disabled","CONVERTING"===ks(2).mainDocument.status)("color",i.color),xo(1),os("ngIf",""!==i.logo),xo(2),Xs(Ou(4,4,i.label))}}function yG(e,t){if(1&e&&(ss(0,"ion-footer",68),ns(1,mG,5,6,"ion-button",69),ls()),2&e){var n=ks();xo(1),os("ngForOf",n.actionsList)}}function bG(e,t){1&e&&us(0,"app-visa-workflow",77),2&e&&os("visaWorkflow",ks(2).mainDocument.workflow)}function wG(e,t){if(1&e){var n=fs();ss(0,"app-document-list",78,79),ms("triggerEvent",function(e){return nn(n),ks(2).loadDoc(e)}),ls()}if(2&e){var i=ks(2);os("currentDocId",i.currentDoc)("docList",i.docList)}}function _G(e,t){1&e&&us(0,"app-associated-documents",80,81),2&e&&os("associatedDocuments",ks(2).mainDocument.linkedDocuments)}function kG(e,t){1&e&&us(0,"app-main-document-detail",82,83),2&e&&os("mainDocument",ks(2).mainDocument)}function xG(e,t){if(1&e&&(ns(0,bG,1,1,"app-visa-workflow",73),ns(1,wG,2,2,"app-document-list",74),ns(2,_G,2,1,"app-associated-documents",75),ns(3,kG,2,1,"app-main-document-detail",76)),2&e){var n=ks();os("ngIf","visaWorkflow"==n.signaturesService.currentToobal),xo(1),os("ngIf","documentList"==n.signaturesService.currentToobal),xo(1),os("ngIf","associatedDocuments"==n.signaturesService.currentToobal),xo(1),os("ngIf","mainDocumentDetail"==n.signaturesService.currentToobal)}}var AG,CG=((AG=function(){function e(t,n,i,r,o,a,s,l,u,c,d,h,f,p,g,v,m,y,b,w,_,k,x){A(this,e),this.translate=t,this.router=n,this.route=i,this.http=r,this.signaturesService=o,this.notificationService=a,this.cookieService=s,this.sanitizer=l,this.dialog=u,this.bottomSheet=c,this.authService=d,this.localStorage=h,this.menu=f,this.actionSheetController=p,this.loadingController=g,this.viewContainerRef=v,this.modalController=m,this.pdfViewerService=y,this.alertController=b,this.signatureMethodService=w,this.navCtrl=_,this.functionsService=k,this.actionsService=x,this.posX=0,this.posY=0,this.enterApp=!0,this.detailMode=!1,this.pageNum=1,this.signaturesContent=[],this.currentDoc=0,this.docList=[],this.actionsList=[{id:2,label:"lang.reject",color:"danger",logo:"thumbs-down-outline",event:"refuseDocument"},{id:3,label:"lang.signatures",color:"",logo:"",event:"openSignatures"},{id:1,label:"lang.validate",color:"success",logo:"thumbs-up-outline",event:"validateDocument"}],this.freezeSidenavClose=!1,this.startX=0,this.startY=0,this.widthDoc="100%",this.resetDragPos=!1,this.mainDocument={id:0,status:status,attachments:[],workflow:[]},this.loadingUI=!1,this.expandedNote=!0,this.hasWorkflowNotes=!1,this.currentTool="info",this.load=null,this.dragging=!1,this.resizing=!1,this.pdfname=null,this.loadingdocument=!0,this.loadingpdf=!1,this.loadingImage=!0,this.fileContent="",this.draggable=!1}return m(e,[{key:"imageLoaded",value:function(e){this.getImageDimensions(!0),this.load.dismiss(),this.menu.enable(!0,"right-menu"),this.loadingImage=!1,document.getElementsByClassName("drag-scroll-content")[0].scrollTop=0}},{key:"getImageDimensions",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=new Image;n.onload=function(n){e.signaturesService.workingAreaWidth=n.target.naturalWidth,e.signaturesService.workingAreaHeight=n.target.naturalHeight,t&&e.getAreaDimension()},n.src=this.docList[this.currentDoc].imgContent[this.pageNum]}},{key:"getAreaDimension",value:function(){var e=100*this.mainContent.el.offsetWidth/this.signaturesService.workingAreaWidth;this.signaturesService.workingAreaWidth=e*this.signaturesService.workingAreaWidth/100,this.signaturesService.workingAreaHeight=e*this.signaturesService.workingAreaHeight/100}},{key:"openAction",value:function(e){return VW(this,void 0,void 0,regeneratorRuntime.mark(function t(){var n,i,r=this;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return this.posX=e.clientX,this.posY=e.clientY,n=[],this.checkEmptyNote()||n.push({text:this.translate.instant("lang.cancelPreviousNote"),icon:"arrow-undo-outline",handler:function(){r.undoTag()}}),this.signaturesService.stampLock||n.push({text:this.translate.instant("lang.affixSignature"),icon:"ribbon-outline",handler:function(){r.openSignatures()}}),n.push({text:this.translate.instant("lang.annotateDocument"),icon:"receipt-outline",handler:function(){r.openNoteEditor()}}),this.checkEmptiness()||n.push({text:this.translate.instant("lang.deleteAll"),icon:"color-wand-outline",handler:function(){r.removeTags()}}),t.next=5,this.actionSheetController.create({header:"Actions",cssClass:"my-custom-class",buttons:n});case 5:return i=t.sent,t.next=8,i.present();case 8:case"end":return t.stop()}},t,this)}))}},{key:"openSignatures",value:function(){return VW(this,void 0,void 0,regeneratorRuntime.mark(function e(){var t,n,i;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.modalController.create({component:aU,cssClass:"my-custom-class",componentProps:{currentWorflow:this.mainDocument.workflow.filter(function(e){return!0===e.current})[0],content:this.fileContent}});case 2:return t=e.sent,e.next=5,t.present();case 5:return e.next=7,t.onWillDismiss();case 7:n=e.sent,i=n.data,this.dragging=!1,void 0!==i&&("success"===i||void 0!==i.redirectPage&&this.goTo(i.redirectPage));case 10:case"end":return e.stop()}},e,this)}))}},{key:"openNoteEditor",value:function(){return VW(this,void 0,void 0,regeneratorRuntime.mark(function e(){var t;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.modalController.create({component:mU,cssClass:"fullscreen",componentProps:{precentScrollLeft:this.posX,precentScrollTop:this.posY,content:this.docList[this.currentDoc].imgContent[this.pageNum]}});case 2:return t=e.sent,e.next=5,t.present();case 5:return e.next=7,t.onWillDismiss();case 7:case"end":return e.stop()}},e,this)}))}},{key:"scrollToElem",value:function(){var e=this.signaturesService.signaturesContent[this.pageNum][this.signaturesService.signaturesContent[this.pageNum].length-1].positionY-75-($("#myBounds")[0].getBoundingClientRect().top-70)-$(window).height();document.getElementsByClassName("drag-scroll-content")[0].scrollTo(1e3,-e)}},{key:"ionViewWillEnter",value:function(){this.signaturesService.initTemplate(this.rightContent,this.viewContainerRef,"rightContent")}},{key:"ngOnInit",value:function(){var e=this;this.menu.enable(!1,"right-menu"),this.menu.enable(!0,"left-menu"),this.route.params.subscribe(function(t){void 0!==t.id&&e.loadingController.create({message:e.translate.instant("lang.loadingDocument"),spinner:"dots"}).then(function(n){e.load=n,e.load.present(),e.http.get("../rest/documents/"+t.id).pipe(uw(function(t){e.mainDocument=t.document,e.mainDocument.workflow=e.mainDocument.workflow.map(function(t){return t.note&&(e.hasWorkflowNotes=!0),t.userSignatureModes.unshift("visa"),Object.assign(Object.assign({},t),{role:"visa"===t.mode?"visa":t.signatureMode,modes:t.userSignatureModes})}),e.totalPages=e.mainDocument.pages,e.signaturesService.mainDocumentId=e.mainDocument.id,e.signaturesService.totalPage=e.mainDocument.pages,e.menu.enable(!0,"right-menu"),e.initDoc();var n=e.mainDocument.workflow.filter(function(e){return!0===e.current});e.mainDocument.isCertified=e.mainDocument.workflow.filter(function(e){return"REF"!==e.status&&"STOP"!==e.status&&"sign"===e.mode&&"stamp"!==e.signatureMode&&null!==e.processDate}).length>0,0===n.length||e.mainDocument.readOnly?(e.actionsList=[{id:4,label:"lang.back",color:"medium",logo:"chevron-back-outline",event:"back"}],e.detailMode=!0):(e.signaturesService.stampLock=e.mainDocument.isCertified&&("stamp"===n[0].signatureMode&&"sign"===n[0].mode||"visa"===n[0].mode),n[0].userId!==e.authService.user.id?e.http.get("../rest/users/"+n[0].userId+"/signatures").subscribe(function(t){e.signaturesService.signaturesListSubstituted=t.signatures}):e.signaturesService.signaturesListSubstituted=[],n[0].datePositions.length>0&&e.functionsService.empty(e.signaturesService.datesContent)&&n[0].datePositions.forEach(function(t){e.signaturesService.datesContent[t.page]||(e.signaturesService.datesContent[t.page]=[]),e.signaturesService.datesContent[t.page][0]={width:t.width,height:t.height,positionX:t.positionX,positionY:t.positionY,font:t.font,size:t.size,color:t.color,format:t.format}})),e.docList.push({id:e.mainDocument.id,title:e.mainDocument.title,pages:e.mainDocument.pages,imgContent:[],imgUrl:"../rest/documents/"+e.mainDocument.id+"/thumbnails"}),e.mainDocument.attachments.forEach(function(t){e.docList.push({id:t.id,title:t.title,pages:t.pages,imgContent:[],imgUrl:"../rest/attachments/"+t.id+"/thumbnails"})}),e.menu.enable(!0,"right-menu"),e.renderImage(),e.loadingdocument=!1}),Zb(function(t){return console.log("error",t),setTimeout(function(){e.load.dismiss()},200),e.notificationService.handleErrors(t),e.router.navigate(["/home"]),Ty(!1)})).subscribe()})})}},{key:"renderPdf",value:function(){var e=this;this.http.get("../rest/documents/"+this.docList[this.currentDoc].id+"/content").subscribe(function(t){e.pdfname="data:application/pdf;base64,"+t.encodedDocument,e.loadingpdf=!0})}},{key:"onPagesLoaded",value:function(e){return VW(this,void 0,void 0,regeneratorRuntime.mark(function t(){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:this.totalPages=e.pagesCount,this.exportAsImage();case 1:case"end":return t.stop()}},t,this)}))}},{key:"exportAsImage",value:function(){return VW(this,void 0,void 0,regeneratorRuntime.mark(function e(){var t;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.pdfViewerService.getPageAsImage(this.pageNum,{width:1e3});case 2:t=e.sent,this.docList[this.currentDoc].imgContent[this.pageNum]=t,this.loadingpdf=!1,this.load.dismiss();case 4:case"end":return e.stop()}},e,this)}))}},{key:"renderImage",value:function(){var e=this;void 0===this.docList[this.currentDoc].imgContent[this.pageNum]&&(0===this.currentDoc?this.http.get("../rest/documents/"+this.docList[this.currentDoc].id+"/thumbnails/"+this.pageNum).pipe(uw(function(t){e.docList[e.currentDoc].imgContent[e.pageNum]="data:image/png;base64,"+t.fileContent,e.fileContent=t.fileContent}),Zb(function(t){return e.load.dismiss(),e.notificationService.handleErrors(t),e.router.navigate(["/home"]),Ty(!1)})).subscribe():this.http.get("../rest/attachments/"+this.docList[this.currentDoc].id+"/thumbnails/"+this.pageNum).pipe(uw(function(t){e.docList[e.currentDoc].imgContent[e.pageNum]="data:image/png;base64,"+t.fileContent}),Zb(function(t){return e.load.dismiss(),e.notificationService.handleErrors(t),e.router.navigate(["/home"]),Ty(!1)})).subscribe())}},{key:"initDoc",value:function(){this.docList=[],this.signaturesService.signaturesContent=[],this.signaturesService.notesContent=[],this.signaturesService.datesContent=[],this.signaturesService.currentToobal="mainDocumentDetail";var e=this.localStorage.get(this.mainDocument.id.toString());if(e){var t=JSON.parse(e);this.signaturesService.notesContent=void 0!==t.note?t.note:[],this.signaturesService.signaturesContent=void 0!==t.sign?t.sign:[],this.signaturesService.datesContent=void 0!==t.date?t.date:[]}this.signaturesService.currentAction=0,this.signaturesService.currentPage=1,this.pageNum=1,this.signaturesContent.currentDoc=1,this.currentDoc=0}},{key:"testDrag",value:function(e){var t=e.source.getRootElement(),n=t.getBoundingClientRect(),i=this.getPosition(t);this.signaturesService.y=n.y-i.top,this.signaturesService.x=n.x-i.left}},{key:"getPosition",value:function(e){for(var t=0,n=0;e&&!isNaN(e.offsetLeft)&&!isNaN(e.offsetTop);)t+=e.offsetLeft-e.scrollLeft,n+=e.offsetTop-e.scrollTop,e=e.offsetParent;return{top:n,left:t}}},{key:"zoomForNotes",value:function(){this.widthDoc="200%",this.signaturesService.scale=2,$(".example-box").css({transform:"translate3d("+this.signaturesService.x*this.signaturesService.scale+"px, "+this.signaturesService.y*this.signaturesService.scale+"px, 0px)"}),this.signaturesService.workingAreaHeight*=this.signaturesService.scale,this.signaturesService.workingAreaWidth*=this.signaturesService.scale}},{key:"zoomForView",value:function(){var e=this;this.resetDragPos=!0,this.widthDoc="100%",this.signaturesService.workingAreaHeight=this.signaturesService.workingAreaHeight/2,this.signaturesService.workingAreaWidth=this.signaturesService.workingAreaWidth/2,setTimeout(function(){e.resetDragPos=!1},200),this.signaturesService.scale=1}},{key:"prevPage",value:function(){this.loadingImage=!0,this.pageNum--,0===this.pageNum&&(this.pageNum=1),0===this.currentDoc&&(this.signaturesService.currentPage=this.pageNum),this.renderImage()}},{key:"nextPage",value:function(){this.loadingImage=!0,this.pageNum>=this.totalPages?this.pageNum=this.totalPages:this.pageNum++,0===this.currentDoc&&(this.signaturesService.currentPage=this.pageNum),this.renderImage()}},{key:"goTo",value:function(e){var t=this;this.loadingController.create({message:this.translate.instant("lang.loadingDocument"),spinner:"dots"}).then(function(e){t.load=e,t.load.present(),t.loadingImage=!0,t.load.dismiss()}),this.pageNum=e,0===this.currentDoc&&(this.signaturesService.currentPage=this.pageNum),this.renderImage()}},{key:"pagesArray",value:function(e){return Array(e)}},{key:"initWorkingArea",value:function(){}},{key:"refuseDocument",value:function(){return VW(this,void 0,void 0,regeneratorRuntime.mark(function e(){var t,n,i=this;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=this.translate.instant("lang.rejectDocumentWarning"),0===this.signaturesService.notesContent.length&&(t=this.translate.instant("lang.refuseDocumentWithoutNote")),e.next=4,this.alertController.create({cssClass:"custom-alert-danger",header:this.translate.instant("lang.reject"),message:t,inputs:[{name:"paragraph",id:"paragraph",type:"textarea",placeholder:this.translate.instant("lang.addReason")}],buttons:[{text:this.translate.instant("lang.reject"),handler:function(e){return VW(i,void 0,void 0,regeneratorRuntime.mark(function t(){var n,i;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.actionsService.checkGroupMail(this.mainDocument,"reject");case 2:return n=t.sent,t.next=5,this.signatureMethodService.launchDefaultMode(e.paragraph,n);case 5:i=t.sent,this.functionsService.empty(i)||(this.bottomSheet.open(bU,{disableClose:!0,direction:"ltr"}),this.localStorage.remove(this.mainDocument.id.toString()));case 7:case"end":return t.stop()}},t,this)}))}}]});case 4:return n=e.sent,e.next=7,n.present();case 7:case"end":return e.stop()}},e,this)}))}},{key:"validateDocument",value:function(e){return VW(this,void 0,void 0,regeneratorRuntime.mark(function e(){var t,n,i=this;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=this.translate.instant("lang.validateDocumentWarning"),0===this.signaturesService.signaturesContent.length&&0===this.signaturesService.notesContent.length&&(t=this.translate.instant("lang.validateDocumentWithoutSignOrNote")),this.signaturesService.stampLock&&(t=this.translate.instant("lang.certifiedDocumentMsg2")),e.next=4,this.alertController.create({cssClass:"custom-alert-success",header:this.translate.instant("lang.validate"),message:t,inputs:[{name:"paragraph",id:"paragraph",type:"textarea",placeholder:this.translate.instant("lang.addReason")}],buttons:[{text:this.translate.instant("lang.validate"),handler:function(e){return VW(i,void 0,void 0,regeneratorRuntime.mark(function t(){var n,i,r;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return n=this.mainDocument.workflow.filter(function(e){return!0===e.current})[0],t.next=3,this.actionsService.checkGroupMail(this.mainDocument,"validate");case 3:return i=t.sent,t.next=6,this.signatureMethodService.checkAuthenticationAndLaunchAction(n,e.paragraph,i);case 6:r=t.sent,this.functionsService.empty(r)||(this.bottomSheet.open(NU,{disableClose:!0,direction:"ltr"}),this.localStorage.remove(this.mainDocument.id.toString()));case 8:case"end":return t.stop()}},t,this)}))}}]});case 4:return n=e.sent,e.next=7,n.present();case 7:case"end":return e.stop()}},e,this)}))}},{key:"removeTags",value:function(){return VW(this,void 0,void 0,regeneratorRuntime.mark(function e(){var t,n=this;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return this.signaturesService.currentAction=0,e.next=3,this.alertController.create({header:this.translate.instant("lang.deleteNoteAndSignature"),buttons:[{text:this.translate.instant("lang.validate"),handler:function(){n.signaturesService.signaturesContent=[],n.signaturesService.notesContent=[],n.signaturesService.datesContent=[],n.localStorage.remove(n.mainDocument.id.toString()),n.notificationService.success("lang.noteAndSignatureDeleted")}}]});case 3:return t=e.sent,e.next=6,t.present();case 6:case"end":return e.stop()}},e,this)}))}},{key:"loadDoc",value:function(e){this.pageNum=1,this.currentDoc=e,this.totalPages=this.docList[e].pages}},{key:"launchEvent",value:function(e){this.backToDetails(),this.signaturesService.currentAction=e.id,this[e.event]()}},{key:"undoTag",value:function(){this.signaturesService.notesContent[this.pageNum]&&(this.signaturesService.notesContent[this.pageNum].pop(),this.localStorage.remove(this.mainDocument.id.toString()),this.localStorage.save(this.mainDocument.id.toString(),JSON.stringify({sign:this.signaturesService.signaturesContent,note:this.signaturesService.notesContent})),this.isEmptyNote()&&(this.signaturesService.notesContent=[]))}},{key:"checkEmptyNote",value:function(){return!this.signaturesService.notesContent[this.pageNum]||"undefined"===this.signaturesService.notesContent[this.pageNum]||0===this.signaturesService.notesContent[this.pageNum].length}},{key:"isEmptyNote",value:function(){for(var e=!0,t=1;t<=this.signaturesService.totalPage;t++)if(this.signaturesService.notesContent[t]&&this.signaturesService.notesContent[t].length>0){e=!1;break}return e}},{key:"checkEmptiness",value:function(){for(var e=!0,t=1;t<=this.signaturesService.totalPage;t++){if(this.signaturesService.datesContent[t]&&this.signaturesService.datesContent[t].length>0){e=!1;break}if(this.signaturesService.notesContent[t]&&this.signaturesService.notesContent[t].length>0){e=!1;break}if(this.signaturesService.signaturesContent[t]&&this.signaturesService.signaturesContent[t].length>0){e=!1;break}}return e}},{key:"openVisaWorkflow",value:function(){this.menu.open("right-menu"),this.signaturesService.currentToobal="visaWorkflow"}},{key:"openDocumentList",value:function(){this.menu.open("right-menu"),this.signaturesService.currentToobal="documentList"}},{key:"openAssociatedDocuments",value:function(){this.menu.open("right-menu"),this.signaturesService.currentToobal="associatedDocuments"}},{key:"openMainDocumentDetail",value:function(){this.menu.open("right-menu"),this.signaturesService.currentToobal="mainDocumentDetail"}},{key:"backToDetails",value:function(){this.signaturesService.currentToobal="mainDocumentDetail"}},{key:"deleteSubstution",value:function(){var e=this;confirm(this.translate.instant("lang.deleteSubstitution")+" ?")&&this.http.put("../rest/users/"+this.authService.user.id+"/substitute",{substitute:null}).subscribe(function(){e.authService.updateUserInfoWithTokenRefresh(),e.notificationService.success("lang.substitutionDeleted")})}},{key:"back",value:function(){this.navCtrl.back()}},{key:"ionViewWillLeave",value:function(){this.signaturesService.detachTemplate("rightContent"),this.loadingController.dismiss()}},{key:"openSelect",value:function(e){this.totalPages>1&&(this.pagesList.interface="popover",this.pagesList.open(e))}},{key:"fromHex",value:function(e){for(var t=new Uint8Array(e.length/2),n=0;n<e.length;n+=2){var i=e.slice(n,n+2);t[n/2]=parseInt(i,16)}return t.buffer}}]),e}()).\u0275fac=function(e){return new(e||AG)(rs(pE),rs(jk),rs(b_),rs(lb),rs(PE),rs(yE),rs(IM),rs(Wf),rs(kB),rs(jF),rs(DE),rs(EE),rs(uP),rs(aP),rs(lP),rs(uu),rs(cP),rs(mO),rs(sP),rs(zU),rs(aA),rs(IU),rs(LU))},AG.\u0275cmp=ft({type:AG,selectors:[["app-document"]],viewQuery:function(e,t){var n;1&e&&(Qu(zW,1),Qu(NW,1),Qu(HW,3),Qu(jW,1),Qu(UW,1),Qu(WW,1),Qu(GW,3),Qu(qW,1)),2&e&&(Zu(n=Ku())&&(t.mainContent=n.first),Zu(n=Ku())&&(t.img=n.first),Zu(n=Ku())&&(t.snav=n.first),Zu(n=Ku())&&(t.dragElem=n.first),Zu(n=Ku())&&(t.appDocumentNotePad=n.first),Zu(n=Ku())&&(t.appDocumentList=n.first),Zu(n=Ku())&&(t.rightContent=n.first),Zu(n=Ku())&&(t.pagesList=n.first))},decls:7,vars:5,consts:[[3,"translucent",4,"ngIf"],["class","ion-text-center","color","primary",4,"ngIf"],["class","ion-text-center","color","danger",4,"ngIf"],[4,"ngIf"],["class","ion-no-border footer-buttons",4,"ngIf"],["rightContent",""],[3,"translucent"],["color","light"],["slot","start"],["value","favorite",3,"value","ionChange"],["value","mainDocumentDetail",3,"click"],["color","primary"],["color","primary","name","information-circle"],["value","documentList",3,"click"],["color","primary","name","document-attach-outline"],["color","danger",2,"position","absolute","top","10px","right","40%"],["value","associatedDocuments",3,"click",4,"ngIf"],["value","visaWorkflow",3,"click"],["color","primary","name","list-outline"],["slot","end",4,"ngIf"],["value","associatedDocuments",3,"click"],["color","primary","name","link-outline"],["slot","end"],["color","primary",3,"click"],["slot","icon-only","name","settings-sharp"],["color","primary",1,"ion-text-center"],[2,"font-size","13px"],["color","danger",1,"ion-text-center"],["mainContent",""],[2,"display","contents"],[2,"overflow","auto","height","100%","width","100%","margin","auto",3,"drag-scroll-disabled","drag-disabled","click"],["nav",""],["id","myBounds",2,"position","relative","cursor","grab"],["myBounds",""],[3,"bounds",4,"ngIf"],["class","img-content",3,"src","width","height","ionImgDidLoad",4,"ngIf"],["class","page-info",4,"ngIf"],["lines","none","class","certified",4,"ngIf"],["ngDraggable","","style","top: 40px;right: 40px;z-index:2;position:absolute;",3,"bounds","inBounds","title","disabled","movingOffset","endOffset","click",4,"ngIf"],["ngDraggable","","class","note",3,"bounds","inBounds","movingOffset","endOffset",4,"ngIf"],["ngDraggable","",2,"top","40px","right","40px","z-index","2","position","absolute",3,"bounds","inBounds","title","disabled","movingOffset","endOffset","click"],["name","chatbubble-ellipses-outline"],["ngDraggable","",1,"note",3,"bounds","inBounds","movingOffset","endOffset"],[1,"note-title"],[1,"far","fa-sticky-note",2,"padding-right","5px"],[2,"flex","1"],[1,"fa","fa-minus-square",2,"cursor","pointer",3,"title","click"],[4,"ngFor","ngForOf"],[1,"note-creator"],[1,"note-content"],[3,"bounds"],[1,"img-content",3,"src","ionImgDidLoad"],["img",""],[1,"page-info"],[1,"page-info-doc"],[1,"page-info-page",3,"click"],["interface","popover","hidden","true",2,"max-height","100%",3,"ngModel","interfaceOptions","ngModelChange","ionChange"],["pagesList",""],[3,"value","disabled",4,"ngFor","ngForOf"],[3,"value","disabled"],["lines","none",1,"certified"],["slot","start","name","ribbon-outline","color","success"],["class","paginate-left",3,"click",4,"ngIf"],["class","paginate-right",3,"click",4,"ngIf"],[1,"paginate-left",3,"click"],["name","chevron-back-outline"],[1,"paginate-right",3,"click"],["name","chevron-forward-outline"],[1,"ion-no-border","footer-buttons"],["shape","round","size","large","fill","outline",3,"disabled","color","click",4,"ngFor","ngForOf"],["shape","round","size","large","fill","outline",3,"disabled","color","click"],[3,"slot","name",4,"ngIf"],[3,"slot","name"],["style","display: contents;",3,"visaWorkflow",4,"ngIf"],["style","display: contents;",3,"currentDocId","docList","triggerEvent",4,"ngIf"],["style","display: contents;",3,"associatedDocuments",4,"ngIf"],["style","display: contents;",3,"mainDocument",4,"ngIf"],[2,"display","contents",3,"visaWorkflow"],[2,"display","contents",3,"currentDocId","docList","triggerEvent"],["appDocumentList",""],[2,"display","contents",3,"associatedDocuments"],["appAssociatedDocuments",""],[2,"display","contents",3,"mainDocument"],["appMainDocumentDetail",""]],template:function(e,t){1&e&&(ns(0,QW,27,17,"ion-header",0),ns(1,XW,4,3,"ion-toolbar",1),ns(2,KW,4,3,"ion-toolbar",2),ns(3,gG,15,16,"ion-content",3),ns(4,yG,2,1,"ion-footer",4),ns(5,xG,4,4,"ng-template",null,5,tc)),2&e&&(os("ngIf",!t.loadingdocument),xo(1),os("ngIf",null!==t.authService.user.substitute&&t.docList[t.currentDoc]),xo(1),os("ngIf",0!==t.mainDocument.id&&"READY"!==t.mainDocument.status),xo(1),os("ngIf",!t.loadingdocument),xo(1),os("ngIf",!t.loadingImage&&0===t.currentDoc))},directives:[mh,XC,DS,LC,cS,wS,tA,_S,aS,KC,IC,RC,UC,kM,qC,SM,gh,UU,QU,aW,JC,kS,hm,Ym,xS,nS,ZC,EW,TU,MW,BW],pipes:[gE,ZM],styles:[".enterApp[_ngcontent-%COMP%]{position:fixed;height:100vh;width:100vw;background-color:#135f7f;z-index:2;display:flex;flex-direction:column;justify-content:center;align-items:center}.maarchLogo[_ngcontent-%COMP%]{position:absolute;transition:all 1s ease-in-out;width:250px;height:auto;padding-bottom:10px}.mainView[_ngcontent-%COMP%]{height:100%;width:auto;display:flex;flex-direction:column;overflow:hidden}.header[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{height:70px;width:auto}.header[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{height:auto;width:auto;font-size:40px}.article[_ngcontent-%COMP%]{display:flex;justify-content:center;overflow:hidden;flex:1;top:0;left:0}.canvas-wrapper[_ngcontent-%COMP%]{position:relative;padding-bottom:120px}canvas[_ngcontent-%COMP%]{margin:0 auto;display:block}.header[_ngcontent-%COMP%]{position:absolute;z-index:1;width:100%;height:80px;align-items:center;padding:0}.header[_ngcontent-%COMP%], .header-action[_ngcontent-%COMP%]{display:flex;justify-content:center}.header-action[_ngcontent-%COMP%]{color:#135f7f}.header-action-button[_ngcontent-%COMP%]{white-space:normal;word-break:break-word;width:135px!important}.header-infos[_ngcontent-%COMP%]{background:#f1f4f4;border-radius:5px;display:flex;justify-content:space-between;align-items:flex-start;width:100%;padding-top:12px;padding-bottom:7px;position:relative;overflow-y:hidden;overflow-x:auto}.header-info[_ngcontent-%COMP%]{border-right:1px solid #979797;width:200px;height:60px;font-size:12px;padding-left:20px}.header-info[_ngcontent-%COMP%]:last-of-type{border:none}.header-info[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{margin:0;padding:0}.header-expand[_ngcontent-%COMP%]{width:70%;position:absolute;left:50%;transform:translateX(-50%);top:25px;border:1px solid #f1f4f4}.header-expand[_ngcontent-%COMP%]   .mat-form-field[_ngcontent-%COMP%]{padding-top:10px}.header-expand[_ngcontent-%COMP%]    .mat-expansion-panel{box-shadow:none}.header-expand[_ngcontent-%COMP%]    .mat-form-field-label{color:#135f7f}.header-expand[_ngcontent-%COMP%]     .mat-form-field-underline{display:none}.header-expand-content[_ngcontent-%COMP%]{width:33%;display:inline-block}.header-expand-content[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{text-overflow:ellipsis}.header-expand-content[_ngcontent-%COMP%]   .mat-form-field[_ngcontent-%COMP%]{width:100%}.header-expand[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]:disabled{opacity:1;color:#666}.header-expand[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]{flex:1;font-size:12px}.page-info[_ngcontent-%COMP%]{position:absolute;bottom:70px;height:30px;width:auto;max-width:70%;color:rgba(var(--ion-color-dark-rgb),.8);font-size:12px;font-weight:300;line-height:30px;display:flex;align-items:center;justify-content:center;opacity:.5;left:50%;transform:translateX(-50%);font-weight:500;transition:all .3s ease-in-out}.page-info-doc[_ngcontent-%COMP%]{max-width:80%;background-color:#f1f4f4;border-radius:14px;padding:0 20px;z-index:1;white-space:pre;overflow:hidden;text-overflow:ellipsis}.page-info-page[_ngcontent-%COMP%]{cursor:pointer;text-align:center;border-radius:0 14px 14px 0;padding:0 20px;background:#fff;border:1px solid #ecf0f1;margin-left:-15px;height:28px;white-space:pre;display:flex;align-items:center}.page-info[_ngcontent-%COMP%]:hover{opacity:1}.btn-next[_ngcontent-%COMP%]{color:#666;background:hsla(0,0%,77.6%,.5019607843137255);border-radius:20px;padding:10px;border:none;outline:none;position:absolute;right:25px;top:50%;cursor:pointer;z-index:1}.btn-next.disabled[_ngcontent-%COMP%]{cursor:not-allowed}.btn-previous[_ngcontent-%COMP%]{color:#666;background:hsla(0,0%,77.6%,.5019607843137255);border-radius:20px;padding:10px;border:none;outline:none;position:absolute;left:25px;top:50%;cursor:pointer;z-index:1}.btn-previous.disabled[_ngcontent-%COMP%], button.disabled[_ngcontent-%COMP%]{cursor:not-allowed}.overlay[_ngcontent-%COMP%]{position:absolute;z-index:1;left:0;top:0;right:0;bottom:0;background:rgba(0,0,0,.5)}.pdf-page-canvas[_ngcontent-%COMP%]{opacity:1;transition:opacity .5s ease-in}.pdf-page-canvas-loading-doc[_ngcontent-%COMP%]{opacity:0}.ellipsis[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.leftPosDesk[_ngcontent-%COMP%]{left:25%!important}.mat-badge-content[_ngcontent-%COMP%]{background:#e74c3c}.substutionModal[_ngcontent-%COMP%]{color:#fff;background:#135f7f}.substutionModal[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]{padding:10px}.substutionModal[_ngcontent-%COMP%]   .msgModal[_ngcontent-%COMP%]{text-align:center;flex:1}.substitutedInformations[_ngcontent-%COMP%]{top:85px;z-index:1;white-space:pre;overflow:hidden;text-overflow:ellipsis;background:#135f7f;color:#fff;font-size:13px;text-align:center}.note[_ngcontent-%COMP%]{top:40px;right:40px;z-index:2;cursor:-webkit-grab;cursor:grab;position:absolute;background-color:#fff8bb;width:300px;max-height:400px;overflow:auto;box-shadow:0 2px 1px -1px rgba(0,0,0,.2),0 1px 1px 0 rgba(0,0,0,.14),0 1px 3px 0 rgba(0,0,0,.12)}.note-title[_ngcontent-%COMP%]{background-color:#fff8bb;position:-webkit-sticky;position:sticky;top:0;display:flex;align-items:center;font-weight:700}.note-creator[_ngcontent-%COMP%], .note-title[_ngcontent-%COMP%]{padding:10px;color:#135f7f}.note-creator[_ngcontent-%COMP%]{font-size:12px;text-decoration:underline}.note-content[_ngcontent-%COMP%]{padding:0 10px 10px;color:#4f4f4f}.footer-buttons[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(3,1fr);padding:10px}.footer-buttons[_ngcontent-%COMP%]   ion-button[_ngcontent-%COMP%]{margin:auto;width:150px}.paginate-left[_ngcontent-%COMP%]{left:20px}.paginate-left[_ngcontent-%COMP%], .paginate-right[_ngcontent-%COMP%]{position:absolute;top:40%;transform:translateY(-50%);--background:hsla(0,0%,77.6%,0.5019607843137255);--color:#666}.paginate-right[_ngcontent-%COMP%]{right:20px}.certified[_ngcontent-%COMP%]{position:absolute;top:10px;left:10px;border:1px solid var(--ion-color-success);color:var(--ion-color-success)}  .popover-class .popover-content{height:50%;top:50px}  .custom-popover-class .popover-class{height:10%;top:50px}"]}),AG),SG=function(e,t,n,i){return new(n||(n=Promise))(function(r,o){function a(e){try{l(i.next(e))}catch(t){o(t)}}function s(e){try{l(i.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((i=i.apply(e,t||[])).next())})};function PG(e,t){1&e&&(ss(0,"a",13),Qs(1),Du(2,"translate"),ls()),2&e&&(xo(1),Xs(Ou(2,1,"lang.forgotPassword")))}function EG(e,t){1&e&&(ss(0,"a",14),Qs(1),Du(2,"translate"),ls()),2&e&&(xo(1),Xs(Ou(2,1,"lang.ldapEnabled")))}function DG(e,t){1&e&&(ss(0,"a",14),Qs(1),Du(2,"translate"),ls()),2&e&&(xo(1),Xs(Ou(2,1,"lang.kerberosEnabled")))}function OG(e,t){1&e&&(ss(0,"a",14),Qs(1),Du(2,"translate"),ls()),2&e&&(xo(1),Xs(Ou(2,1,"lang.x509Enabled")))}function MG(e,t){if(1&e&&(ss(0,"a",15),Du(1,"translate"),Qs(2),ls()),2&e){var n=ks();Es("href","",Ou(1,3,"lang.repoUrl"),"/commit/",n.commitHash,"",Cr),xo(2),Xs(n.commitHash.substring(0,8))}}var TG,IG,RG=((IG=function(){function e(t,n,i,r,o,a,s,l,u,c){A(this,e),this.http=t,this.router=n,this.authService=i,this.signaturesService=r,this.notificationService=o,this.dialog=a,this.formBuilder=s,this.loadingController=l,this.translate=u,this.menu=c,this.loading=!1,this.showForm=!1,this.commitHash=null}return m(e,[{key:"ngOnInit",value:function(){return SG(this,void 0,void 0,regeneratorRuntime.mark(function e(){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return this.loginForm=this.formBuilder.group({login:[null,Nv.required],password:[null,Nv.required]}),this.environment=td,this.signaturesService.reset(),e.next=5,this.loadCommitInformation();case 5:case"end":return e.stop()}},e,this)}))}},{key:"ionViewWillEnter",value:function(){this.menu.enable(!1,"left-menu"),this.menu.enable(!1,"right-menu")}},{key:"ngAfterViewInit",value:function(){var e=this;setTimeout(function(){e.showForm=!0,e.fixAutoFill(),e.initConnection()},500)}},{key:"fixAutoFill",value:function(){var e=this;setTimeout(function(){e.loginForm.get("login").setValue($("#login").val()),e.loginForm.get("password").setValue($("#password").val())},100)}},{key:"onSubmit",value:function(){return SG(this,void 0,void 0,regeneratorRuntime.mark(function e(){var t,n=this;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.loadingController.create({cssClass:"my-custom-class",message:this.translate.instant("lang.connexion")});case 2:return t=e.sent,e.next=5,t.present();case 5:this.authService.authFailed=!1,this.loginForm.invalid?(t.dismiss(),this.notificationService.error("lang.requiredLoginPassword")):this.http.post("../rest/authenticate",{login:this.loginForm.get("login").value,password:this.loginForm.get("password").value},{observe:"response"}).pipe(uw(function(e){n.loading=!1,n.showForm=!1,n.authService.saveTokens(e.headers.get("Token"),e.headers.get("Refresh-Token")),n.authService.setUser({}),n.authService.getCachedUrl()?(n.router.navigateByUrl(n.authService.getCachedUrl()),n.authService.cleanCachedUrl()):n.router.navigate(["/home"]),t.dismiss()}),Zb(function(e){return n.loading=!1,n.authService.authFailed=!0,401===e.status&&-1===["kerberos","x509","azure_saml"].indexOf(n.authService.authMode)?(n.notificationService.error("lang.wrongLoginPassword"),t.dismiss()):"azure_saml"===n.authService.authMode&&"Authentication Failed : not logged"===e.error.errors?(t.dismiss(),window.location.href=e.error.authUri):(t.dismiss(),n.notificationService.handleErrors(e)),Ty(!1)})).subscribe();case 7:case"end":return e.stop()}},e,this)}))}},{key:"initConnection",value:function(){["kerberos","x509","azure_saml"].indexOf(this.authService.authMode)>-1&&(this.loginForm.disable(),this.loginForm.setValidators(null),this.onSubmit())}},{key:"loadCommitInformation",value:function(){var e=this;return new Promise(function(t){e.http.get("../rest/commitInformation").pipe(uw(function(n){e.commitHash=n.hash,t(!0)}),Zb(function(t){return e.notificationService.handleErrors(t),Ty(!1)})).subscribe()})}}]),e}()).\u0275fac=function(e){return new(e||IG)(rs(lb),rs(jk),rs(DE),rs(PE),rs(yE),rs(kB),rs(My),rs(lP),rs(pE),rs(uP))},IG.\u0275cmp=ft({type:IG,selectors:[["ng-component"]],decls:27,vars:18,consts:[[1,"login-content"],["svgIcon","maarchLogo",1,"maarchLogo"],[2,"width","400px","position","absolute","left","50%","top","50%","transform","translate(-50%,-50%)"],[3,"formGroup","ngSubmit"],["position","floating"],["formControlName","login","type","text",3,"keyup.enter"],["name","password","matInput","","type","password","formControlName","password",3,"keyup.enter"],[1,"connection-type"],["routerLink","/forgot-password","class","forgot-password",4,"ngIf"],["href","","class","forgot-password",4,"ngIf"],["type","submit","expand","block",3,"disabled"],[1,"version-info"],["style","color: white","target","blank",3,"href",4,"ngIf"],["routerLink","/forgot-password",1,"forgot-password"],["href","",1,"forgot-password"],["target","blank",2,"color","white",3,"href"]],template:function(e,t){1&e&&(ss(0,"ion-content",0),us(1,"mat-icon",1),ss(2,"ion-card",2),ss(3,"ion-card-content"),ss(4,"form",3),ms("ngSubmit",function(){return t.onSubmit()}),ss(5,"ion-item"),ss(6,"ion-label",4),Qs(7),Du(8,"translate"),ls(),ss(9,"ion-input",5),ms("keyup.enter",function(){return t.onSubmit()}),ls(),ls(),ss(10,"ion-item"),ss(11,"ion-label",4),Qs(12),Du(13,"translate"),ls(),ss(14,"ion-input",6),ms("keyup.enter",function(){return t.onSubmit()}),ls(),ls(),ss(15,"div",7),ns(16,PG,3,3,"a",8),ns(17,EG,3,3,"a",9),ns(18,DG,3,3,"a",9),ns(19,OG,3,3,"a",9),ls(),ss(20,"ion-button",10),Qs(21),Du(22,"translate"),ls(),ls(),ls(),ls(),ss(23,"ion-note",11),Qs(24),ns(25,MG,3,5,"a",12),Qs(26),ls(),ls()),2&e&&(xo(4),os("formGroup",t.loginForm),xo(3),Xs(Ou(8,12,"lang.login")),xo(5),Xs(Ou(13,14,"lang.password")),xo(4),os("ngIf","default"===t.authService.authMode),xo(1),os("ngIf","ldap"===t.authService.authMode),xo(1),os("ngIf","kerberos"===t.authService.authMode),xo(1),os("ngIf","x509"===t.authService.authMode),xo(1),os("disabled",t.loginForm.invalid||t.loading),xo(1),Ks(" ",Ou(22,16,"lang.connect")," "),xo(3),Ks(" Maarch Parapheur ",t.environment.VERSION," "),xo(1),os("ngIf",null!==t.commitHash),xo(1),Ks(" Powered by ",t.environment.AUTHOR," "))},directives:[UC,XB,FC,BC,Zm,fm,ey,nS,aS,tS,nA,hm,ny,mh,RC,hS,Wk,$S],pipes:[gE],styles:[".version-info[_ngcontent-%COMP%]{color:#fff;position:absolute;bottom:5px}.maarchLogo[_ngcontent-%COMP%]{position:absolute;top:10%;left:50%;transform:translateX(-50%);width:250px;height:auto;padding-bottom:10px}.login-content[_ngcontent-%COMP%]{--background:var(--ion-color-primary)}.forgot-password[_ngcontent-%COMP%]{display:block;text-align:right}.connection-type[_ngcontent-%COMP%]{display:flex;justify-content:flex-end}"]}),IG),LG=((TG=function(){function e(t,n,i,r,o){A(this,e),this.router=t,this.http=n,this.notificationService=o,this.loadingForm=!1,this.loading=!1,this.newLogin={login:"",password:""},this.labelButton="lang.send",this.appVersion="",this.appAuthor="",i.addSvgIcon("maarchLogo",r.bypassSecurityTrustResourceUrl("../src/frontend/assets/logo_white.svg"))}return m(e,[{key:"ngOnInit",value:function(){}},{key:"generateLink",value:function(){var e=this;this.labelButton="lang.generation",this.loading=!0,this.http.post("../rest/password",{login:this.newLogin.login}).pipe(hw(function(){e.labelButton="lang.send",e.loading=!1})).subscribe(function(t){e.loadingForm=!0,e.notificationService.success("lang.requestSentByEmail"),e.router.navigate(["/login"])},function(t){e.notificationService.handleErrors(t)})}}]),e}()).\u0275fac=function(e){return new(e||TG)(rs(jk),rs(lb),rs(FB),rs(Wf),rs(yE))},TG.\u0275cmp=ft({type:TG,selectors:[["ng-component"]],decls:28,vars:15,consts:[[3,"translucent"],["color","primary"],["slot","start"],["mainContent",""],["id","passForm",2,"display","contents",3,"ngSubmit"],["passForm","ngForm"],["offset","3","size","6"],[1,"info"],[3,"innerHTML"],["color","secondary","position","floating"],["name","login","matInput","","type","text","oninput","this.value = this.value.toLowerCase()",3,"ngModel","ngModelChange"],["text-center","","lines","none",2,"position","sticky","bottom","0px","z-index","1"],[2,"display","flex","align-items","center","justify-content","center","width","100%","background","white"],["type","submit","shape","round","size","large","fill","outline","color","primary",3,"disabled"],[2,"font-size","13px"]],template:function(e,t){1&e&&(ss(0,"ion-header",0),ss(1,"ion-toolbar",1),ss(2,"ion-buttons",2),us(3,"ion-back-button"),ls(),ss(4,"ion-title"),Qs(5),Du(6,"translate"),ls(),ls(),ls(),ss(7,"ion-content",null,3),ss(9,"form",4,5),ms("ngSubmit",function(){return t.generateLink()}),ss(11,"ion-grid"),ss(12,"ion-row"),ss(13,"ion-col",6),ss(14,"ion-card",7),us(15,"ion-card-content",8),Du(16,"translate"),ls(),ss(17,"ion-item"),ss(18,"ion-label",9),Qs(19),Du(20,"translate"),ls(),ss(21,"ion-input",10),ms("ngModelChange",function(e){return t.newLogin.login=e}),ls(),ls(),ls(),ls(),ls(),ss(22,"ion-item",11),ss(23,"div",12),ss(24,"ion-button",13),ss(25,"ion-label",14),Qs(26),Du(27,"translate"),ls(),ls(),ls(),ls(),ls(),ls()),2&e&&(os("translucent",!0),xo(5),Xs(Ou(6,7,"lang.forgotPassword")),xo(10),os("innerHTML",Ou(16,9,"lang.afterClickingSendLinkChangePassword"),Ar),xo(4),Ks("",Ou(20,11,"lang.enterLogin")," *"),xo(2),os("ngModel",t.newLogin.login),xo(3),os("disabled",""==t.newLogin.login||t.loading),xo(2),Xs(Ou(27,13,t.labelButton)))},directives:[XC,DS,LC,TC,JS,PS,UC,Zm,fm,Wm,QC,yS,jC,FC,BC,nS,aS,tS,nA,hm,Ym,RC],pipes:[gE],styles:[".login-content[_ngcontent-%COMP%]{background-color:#135f7f;height:100vh;width:100vw;display:flex;flex-direction:column;justify-content:center;align-items:center}.login-form[_ngcontent-%COMP%]{max-width:600px;text-align:center}.input-row[_ngcontent-%COMP%]{width:100%;padding-top:10px;padding-bottom:10px}.maarchLogo[_ngcontent-%COMP%]{position:absolute;transition:all 1s ease-in-out;width:250px;height:auto;padding-bottom:10px;transform:translateY(-200px)}footer[_ngcontent-%COMP%]{color:#fff;position:absolute;bottom:5px;font-size:10px;opacity:.5}"]}),TG);function FG(e,t){if(1&e&&(ss(0,"ion-note",22),Qs(1),Du(2,"translate"),ls()),2&e){var n=ks();xo(1),Ks(" ",Ou(2,1,n.handlePassword.errorMsg),"")}}function BG(e,t){1&e&&(ss(0,"ion-note",23),Qs(1),Du(2,"translate"),ls()),2&e&&(xo(1),Ks(" ",Ou(2,1,"lang.samePassword"),""))}function VG(e,t){1&e&&(ss(0,"ion-note",22),Qs(1),Du(2,"translate"),ls()),2&e&&(xo(1),Ks(" ",Ou(2,1,"lang.passwordNotMatch"),""))}var zG,NG,HG=((NG=function(){function e(t,n,i,r,o,a,s,l){var u=this;A(this,e),this.translate=t,this.router=n,this.route=i,this.http=r,this.notificationService=s,this.menu=l,this.loadingForm=!1,this.loading=!1,this.token="",this.password={newPassword:"",passwordConfirmation:""},this.labelButton="lang.update",this.hideNewPassword=!0,this.hideNewPasswordConfirm=!0,this.passwordRules={minLength:{enabled:!1,value:0},complexityUpper:{enabled:!1,value:0},complexityNumber:{enabled:!1,value:0},complexitySpecial:{enabled:!1,value:0},renewal:{enabled:!1,value:0},historyLastUse:{enabled:!1,value:0}},this.handlePassword={error:!1,errorMsg:""},this.ruleText="",this.otherRuleText="",o.addSvgIcon("maarchLogo",a.bypassSecurityTrustResourceUrl("../src/frontend/assets/logo_white.svg")),this.route.queryParams.subscribe(function(e){u.token=e.token})}return m(e,[{key:"ngOnInit",value:function(){this.getPassRules()}},{key:"ionViewWillEnter",value:function(){this.menu.enable(!1,"left-menu"),this.menu.enable(!1,"right-menu")}},{key:"updatePassword",value:function(){var e=this;this.labelButton="lang.sending",this.loading=!0,this.http.put("../rest/password",{token:this.token,password:this.password.newPassword}).pipe(hw(function(){e.labelButton="lang.update",e.loading=!1})).subscribe(function(t){e.loadingForm=!0,e.notificationService.success("lang.passwordChanged"),e.router.navigate(["/login"])},function(t){e.notificationService.handleErrors(t)})}},{key:"checkPasswordValidity",value:function(e){var t=this;this.handlePassword.error=!0,!e.match(/[A-Z]/g)&&this.passwordRules.complexityUpper.enabled?this.handlePassword.errorMsg="lang.upperRequired":!e.match(/[0-9]/g)&&this.passwordRules.complexityNumber.enabled?this.handlePassword.errorMsg="lang.numberRequired":!e.match(/[^A-Za-z0-9]/g)&&this.passwordRules.complexitySpecial.enabled?this.handlePassword.errorMsg="lang.specialCharRequired":e.length<this.passwordRules.minLength.value&&this.passwordRules.minLength.enabled?this.translate.get("lang.minLengthChar",{charLength:this.passwordRules.minLength.value}).subscribe(function(e){t.handlePassword.errorMsg=e}):(this.handlePassword.error=!1,this.handlePassword.errorMsg="")}},{key:"getPassRules",value:function(){var e=this;this.handlePassword.error=!1,this.handlePassword.errorMsg="",this.http.get("../rest/passwordRules").subscribe(function(t){var n=[],i=[];t.rules.forEach(function(t){"minLength"===t.label?(e.passwordRules.minLength.enabled=t.enabled,e.passwordRules.minLength.value=t.value,t.enabled&&e.translate.get("lang.minLengthChar",{charLength:t.value}).subscribe(function(e){n.push(e)})):"complexityUpper"===t.label?(e.passwordRules.complexityUpper.enabled=t.enabled,e.passwordRules.complexityUpper.value=t.value,t.enabled&&n.push("lang.upperRequired")):"complexityNumber"===t.label?(e.passwordRules.complexityNumber.enabled=t.enabled,e.passwordRules.complexityNumber.value=t.value,t.enabled&&n.push("lang.numberRequired")):"complexitySpecial"===t.label?(e.passwordRules.complexitySpecial.enabled=t.enabled,e.passwordRules.complexitySpecial.value=t.value,t.enabled&&n.push("lang.specialCharRequired")):"renewal"===t.label?(e.passwordRules.renewal.enabled=t.enabled,e.passwordRules.renewal.value=t.value,t.enabled&&e.translate.get("lang.renewalInfo",{time:t.value}).subscribe(function(e){i.push(e)})):"historyLastUse"===t.label&&(e.passwordRules.historyLastUse.enabled=t.enabled,e.passwordRules.historyLastUse.value=t.value,t.enabled&&e.translate.get("lang.historyUseInfo",{countPwd:t.value}).subscribe(function(e){i.push(e)}))}),e.ruleText=n.join(", "),e.otherRuleText=i.join("<br/>")},function(t){e.notificationService.handleErrors(t)})}},{key:"allowValidate",value:function(){return!(!this.handlePassword.error&&this.password.newPassword===this.password.passwordConfirmation&&0!==this.password.newPassword.length&&0!==this.password.passwordConfirmation.length)}}]),e}()).\u0275fac=function(e){return new(e||NG)(rs(pE),rs(jk),rs(b_),rs(lb),rs(FB),rs(Wf),rs(yE),rs(uP))},NG.\u0275cmp=ft({type:NG,selectors:[["ng-component"]],decls:47,vars:35,consts:[[3,"translucent"],["color","primary"],["slot","start"],["mainContent",""],["id","passForm",2,"display","contents",3,"ngSubmit"],["passForm","ngForm"],["offset","3","size","6"],[1,"info"],[3,"innerHTML"],["color","secondary","position","stacked"],["name","newPassword",3,"ngModel","placeholder","type","ngModelChange","keyup"],["slot","end","color","light",1,"showpassButton",3,"click"],["slot","icon-only","color","primary",3,"name"],["color","danger",4,"ngIf"],["name","passwordConfirmation",3,"ngModel","placeholder","type","ngModelChange"],["lines","none"],["color","success",4,"ngIf"],["text-center","","lines","none",2,"position","sticky","bottom","0px","z-index","1"],[2,"display","flex","align-items","center","justify-content","center","width","100%","background","white"],["type","submit","shape","round","size","large","fill","outline","color","primary",3,"disabled"],[2,"font-size","13px"],["type","button","shape","round","size","large","fill","outline","color","medium","routerLink","/login"],["color","danger"],["color","success"]],template:function(e,t){1&e&&(ss(0,"ion-header",0),ss(1,"ion-toolbar",1),ss(2,"ion-buttons",2),us(3,"ion-back-button"),ls(),ss(4,"ion-title"),Qs(5),Du(6,"translate"),ls(),ls(),ls(),ss(7,"ion-content",null,3),ss(9,"form",4,5),ms("ngSubmit",function(){return t.updatePassword()}),ss(11,"ion-grid"),ss(12,"ion-row"),ss(13,"ion-col",6),ss(14,"ion-card",7),us(15,"ion-card-content",8),Du(16,"translate"),ls(),ss(17,"ion-item"),ss(18,"ion-label",9),Qs(19),Du(20,"translate"),ls(),ss(21,"ion-input",10),ms("ngModelChange",function(e){return t.password.newPassword=e})("keyup",function(){return t.checkPasswordValidity(t.password.newPassword)}),Du(22,"translate"),ls(),ss(23,"ion-button",11),ms("click",function(){return t.hideNewPassword=!t.hideNewPassword}),us(24,"ion-icon",12),ls(),ns(25,FG,3,3,"ion-note",13),ls(),ss(26,"ion-item"),ss(27,"ion-label",9),Qs(28),Du(29,"translate"),ls(),ss(30,"ion-input",14),ms("ngModelChange",function(e){return t.password.passwordConfirmation=e}),Du(31,"translate"),ls(),ss(32,"ion-button",11),ms("click",function(){return t.hideNewPasswordConfirm=!t.hideNewPasswordConfirm}),us(33,"ion-icon",12),ls(),ls(),ss(34,"ion-item",15),ns(35,BG,3,3,"ion-note",16),ns(36,VG,3,3,"ion-note",13),ls(),ls(),ls(),ls(),ss(37,"ion-item",17),ss(38,"div",18),ss(39,"ion-button",19),ss(40,"ion-label",20),Qs(41),Du(42,"translate"),ls(),ls(),ss(43,"ion-button",21),ss(44,"ion-label",20),Qs(45),Du(46,"translate"),ls(),ls(),ls(),ls(),ls(),ls()),2&e&&(os("translucent",!0),xo(5),Xs(Ou(6,19,"lang.newPassword")),xo(10),os("innerHTML",Ou(16,21,"lang.logInOncePasswordChanged"),Ar),xo(4),Xs(Ou(20,23,"lang.newPassword")),xo(2),Ss("placeholder",Ou(22,25,"lang.newPassword")),os("ngModel",t.password.newPassword)("type",t.hideNewPassword?"password":"text"),xo(3),os("name",t.hideNewPassword?"eye-outline":"eye-off-outline"),xo(1),os("ngIf",t.handlePassword.error),xo(3),Ks("",Ou(29,27,"lang.passwordConfirmation")," "),xo(2),Ss("placeholder",Ou(31,29,"lang.passwordConfirmation")),os("ngModel",t.password.passwordConfirmation)("type",t.hideNewPasswordConfirm?"password":"text"),xo(3),os("name",t.hideNewPasswordConfirm?"eye-outline":"eye-off-outline"),xo(2),os("ngIf",t.password.passwordConfirmation===t.password.newPassword&&t.password.newPassword.length>0&&t.password.passwordConfirmation.length>0),xo(1),os("ngIf",t.password.passwordConfirmation!==t.password.newPassword),xo(3),os("disabled",t.allowValidate()||t.loading),xo(2),Xs(Ou(42,31,t.labelButton)),xo(4),Xs(Ou(46,33,"lang.cancel")))},directives:[XC,DS,LC,TC,JS,PS,UC,Zm,fm,Wm,QC,yS,jC,FC,BC,nS,aS,tS,nA,hm,Ym,RC,KC,mh,$S,Uk,hS],pipes:[gE],styles:[".login-form[_ngcontent-%COMP%]{max-width:600px;text-align:center}.input-row[_ngcontent-%COMP%]{width:100%;padding-top:10px;padding-bottom:10px}.maarchLogo[_ngcontent-%COMP%]{position:absolute;transition:all 1s ease-in-out;width:250px;height:auto;padding-bottom:10px;transform:translateY(-230px)}footer[_ngcontent-%COMP%]{color:#fff;position:absolute;bottom:5px;font-size:10px;opacity:.5}.showpassButton[_ngcontent-%COMP%]{--background:none;--box-shadow:none}"]}),NG),jG=((zG=function(){function e(t,n,i,r){A(this,e),this.http=t,this.translate=n,this.notify=i,this.signaturesService=r,this.loading=!1,this.passwordRules={minLength:{enabled:!1,value:0},complexityUpper:{enabled:!1,value:0},complexityNumber:{enabled:!1,value:0},complexitySpecial:{enabled:!1,value:0},renewal:{enabled:!1,value:0},historyLastUse:{enabled:!1,value:0},lockTime:{enabled:!1,value:0},lockAttempts:{enabled:!1,value:0}},this.passwordRulesClone={},this.passwordRulesList=[]}return m(e,[{key:"ngOnInit",value:function(){var e=this;this.loading=!0,this.http.get("../rest/passwordRules").subscribe(function(t){e.passwordRulesList=t.rules,t.rules.forEach(function(t){e.passwordRules[t.label].enabled=t.enabled,e.passwordRules[t.label].value=t.value,e.passwordRules[t.label].label=e.translate.instant("lang.password_"+t.label+"Required"),e.passwordRules[t.label].id=t.label,e.loading=!1}),e.passwordRulesClone=JSON.parse(JSON.stringify(e.passwordRules))},function(t){e.notify.error(t.error.errors)})}},{key:"cancelModification",value:function(){var e=this;this.passwordRules=JSON.parse(JSON.stringify(this.passwordRulesClone)),this.passwordRulesList.forEach(function(t){t.enabled=e.passwordRules[t.label].enabled,t.value=e.passwordRules[t.label].value})}},{key:"checkModif",value:function(){return JSON.stringify(this.passwordRules)===JSON.stringify(this.passwordRulesClone)}},{key:"disabledForm",value:function(){return!(this.passwordRules.lockTime.enabled||this.passwordRules.minLength.enabled||this.passwordRules.lockAttempts.enabled||this.passwordRules.renewal.enabled||this.passwordRules.historyLastUse.enabled)}},{key:"toggleRule",value:function(e){var t=this;this.passwordRulesList.forEach(function(n){"lockAttempts"!==e.id||"lockTime"!==n.label&&"lockAttempts"!==n.label?e.id===n.label&&(n.enabled=e.enabled):(n.enabled=e.enabled,t.passwordRules.lockTime.enabled=e.enabled)})}},{key:"onSubmit",value:function(){var e=this;this.passwordRulesList.forEach(function(t){t.enabled=e.passwordRules[t.label].enabled,t.value=e.passwordRules[t.label].value}),this.http.put("../rest/passwordRules",{rules:this.passwordRulesList}).subscribe(function(){e.passwordRulesClone=JSON.parse(JSON.stringify(e.passwordRules)),e.notify.success("lang.passwordRulesUpdated")},function(t){e.notify.error(t.error.errors)})}}]),e}()).\u0275fac=function(e){return new(e||zG)(rs(lb),rs(pE),rs(yE),rs(PE))},zG.\u0275cmp=ft({type:zG,selectors:[["ng-component"]],decls:69,vars:49,consts:[[3,"translucent"],["color","primary"],["slot","start"],["menu","left-menu"],["id","passwordForm",2,"display","contents",3,"ngSubmit"],["passwordForm","ngForm"],["color","secondary"],["slot","start","name","complexityUpper",3,"ngModel","checked","ngModelChange"],["slot","start","name","complexityNumber",3,"ngModel","checked","ngModelChange"],["slot","start","name","complexitySpecial",3,"ngModel","checked","ngModelChange"],["slot","start","name","minLengthToggle",3,"ngModel","checked","ngModelChange"],["color","secondary","position","floating"],["name","minLength","min","1","pattern","^[1-9][0-9]*",3,"disabled","ngModel","ngModelChange"],["slot","end"],["slot","start","name","lockAttemptsToggle",3,"ngModel","checked","ngModelChange"],["name","lockAttempts","min","1","pattern","^[1-9][0-9]*",3,"disabled","ngModel","ngModelChange"],["name","lockTime","min","1","pattern","^[1-9][0-9]*",3,"disabled","ngModel","ngModelChange"],["slot","start","name","renewalToggle",3,"ngModel","checked","ngModelChange"],["name","renewal","min","1","pattern","^[1-9][0-9]*",3,"disabled","ngModel","ngModelChange"],["slot","start","name","historyLastUseToggle",3,"ngModel","checked","ngModelChange"],["name","historyLastUse","min","1","pattern","^[1-9][0-9]*",3,"disabled","ngModel","ngModelChange"],["text-center","","lines","none",2,"position","sticky","bottom","0px","z-index","1"],[2,"display","flex","align-items","center","justify-content","center","width","100%","background","white"],["type","submit","shape","round","size","large","fill","outline","color","primary",3,"disabled"],[2,"font-size","13px"]],template:function(e,t){if(1&e&&(ss(0,"ion-header",0),ss(1,"ion-toolbar",1),ss(2,"ion-buttons",2),us(3,"ion-menu-button",3),us(4,"ion-back-button"),ls(),ss(5,"ion-title"),Qs(6),Du(7,"translate"),ls(),ls(),ls(),ss(8,"form",4,5),ms("ngSubmit",function(){return t.onSubmit()}),ss(10,"ion-content"),ss(11,"ion-row"),ss(12,"ion-col"),ss(13,"ion-item"),ss(14,"ion-label",6),Qs(15),ls(),ss(16,"ion-toggle",7),ms("ngModelChange",function(e){return t.passwordRules.complexityUpper.enabled=e})("ngModelChange",function(){return t.toggleRule(t.passwordRules.complexityUpper)}),ls(),ls(),ls(),ss(17,"ion-col"),ss(18,"ion-item"),ss(19,"ion-label",6),Qs(20),ls(),ss(21,"ion-toggle",8),ms("ngModelChange",function(e){return t.passwordRules.complexityNumber.enabled=e})("ngModelChange",function(){return t.toggleRule(t.passwordRules.complexityNumber)}),ls(),ls(),ls(),ss(22,"ion-col"),ss(23,"ion-item"),ss(24,"ion-label",6),Qs(25),ls(),ss(26,"ion-toggle",9),ms("ngModelChange",function(e){return t.passwordRules.complexitySpecial.enabled=e})("ngModelChange",function(){return t.toggleRule(t.passwordRules.complexitySpecial)}),ls(),ls(),ls(),ls(),ss(27,"ion-item"),ss(28,"ion-toggle",10),ms("ngModelChange",function(e){return t.passwordRules.minLength.enabled=e})("ngModelChange",function(){return t.toggleRule(t.passwordRules.minLength)}),ls(),ss(29,"ion-label",11),Qs(30),ls(),ss(31,"ion-input",12),ms("ngModelChange",function(e){return t.passwordRules.minLength.value=e}),ls(),ss(32,"ion-note",13),Qs(33),Du(34,"translate"),ls(),ls(),ss(35,"ion-row"),ss(36,"ion-col"),ss(37,"ion-item"),ss(38,"ion-toggle",14),ms("ngModelChange",function(e){return t.passwordRules.lockAttempts.enabled=e})("ngModelChange",function(){return t.toggleRule(t.passwordRules.lockAttempts)}),ls(),ss(39,"ion-label",11),Qs(40),ls(),ss(41,"ion-input",15),ms("ngModelChange",function(e){return t.passwordRules.lockAttempts.value=e}),ls(),ls(),ls(),ss(42,"ion-col"),ss(43,"ion-item"),ss(44,"ion-label",11),Qs(45),ls(),ss(46,"ion-input",16),ms("ngModelChange",function(e){return t.passwordRules.lockTime.value=e}),ls(),ss(47,"ion-note",13),Qs(48),Du(49,"translate"),ls(),ls(),ls(),ls(),ss(50,"ion-item"),ss(51,"ion-toggle",17),ms("ngModelChange",function(e){return t.passwordRules.renewal.enabled=e})("ngModelChange",function(){return t.toggleRule(t.passwordRules.renewal)}),ls(),ss(52,"ion-label",11),Qs(53),ls(),ss(54,"ion-input",18),ms("ngModelChange",function(e){return t.passwordRules.renewal.value=e}),ls(),ss(55,"ion-note",13),Qs(56),Du(57,"translate"),ls(),ls(),ss(58,"ion-item"),ss(59,"ion-toggle",19),ms("ngModelChange",function(e){return t.passwordRules.historyLastUse.enabled=e})("ngModelChange",function(){return t.toggleRule(t.passwordRules.historyLastUse)}),ls(),ss(60,"ion-label",11),Qs(61),ls(),ss(62,"ion-input",20),ms("ngModelChange",function(e){return t.passwordRules.historyLastUse.value=e}),ls(),ls(),ss(63,"ion-item",21),ss(64,"div",22),ss(65,"ion-button",23),ss(66,"ion-label",24),Qs(67),Du(68,"translate"),ls(),ls(),ls(),ls(),ls(),ls()),2&e){var n=is(9);os("translucent",!0),xo(6),Xs(Ou(7,39,"lang.manage_password_rules")),xo(9),Xs(t.passwordRules.complexityUpper.label),xo(1),os("ngModel",t.passwordRules.complexityUpper.enabled)("checked",t.passwordRules.complexityUpper.enabled),xo(4),Xs(t.passwordRules.complexityNumber.label),xo(1),os("ngModel",t.passwordRules.complexityNumber.enabled)("checked",t.passwordRules.complexityNumber.enabled),xo(4),Xs(t.passwordRules.complexitySpecial.label),xo(1),os("ngModel",t.passwordRules.complexitySpecial.enabled)("checked",t.passwordRules.complexitySpecial.enabled),xo(2),os("ngModel",t.passwordRules.minLength.enabled)("checked",t.passwordRules.minLength.enabled),xo(2),Xs(t.passwordRules.minLength.label),xo(1),os("disabled",!t.passwordRules.minLength.enabled)("ngModel",t.passwordRules.minLength.value),xo(2),Xs(Ou(34,41,"lang.chars")),xo(5),os("ngModel",t.passwordRules.lockAttempts.enabled)("checked",t.passwordRules.lockAttempts.enabled),xo(2),Xs(t.passwordRules.lockAttempts.label),xo(1),os("disabled",!t.passwordRules.lockAttempts.enabled)("ngModel",t.passwordRules.lockAttempts.value),xo(4),Xs(t.passwordRules.lockTime.label),xo(1),os("disabled",!t.passwordRules.lockTime.enabled)("ngModel",t.passwordRules.lockTime.value),xo(2),Xs(Ou(49,43,"lang.minutes")),xo(3),os("ngModel",t.passwordRules.renewal.enabled)("checked",t.passwordRules.renewal.enabled),xo(2),Xs(t.passwordRules.renewal.label),xo(1),os("disabled",!t.passwordRules.renewal.enabled)("ngModel",t.passwordRules.renewal.value),xo(2),Xs(Ou(57,45,"lang.days")),xo(3),os("ngModel",t.passwordRules.historyLastUse.enabled)("checked",t.passwordRules.historyLastUse.enabled),xo(2),Xs(t.passwordRules.historyLastUse.label),xo(1),os("disabled",!t.passwordRules.historyLastUse.enabled)("ngModel",t.passwordRules.historyLastUse.value),xo(3),os("disabled",!n.valid&&!t.disabledForm()||t.checkModif()),xo(2),Xs(Ou(68,47,"lang.validate"))}},directives:[XC,DS,LC,cS,TC,JS,PS,Zm,fm,Wm,UC,yS,jC,nS,aS,ES,Jx,hm,Ym,tS,nA,Py,hS,RC],pipes:[gE],encapsulation:2}),zG);function UG(e,t){1&e&&(ss(0,"ion-note",17),Qs(1),Du(2,"translate"),ls()),2&e&&(xo(1),Xs(Ou(2,1,"lang.requiredField")))}function WG(e,t){1&e&&(ss(0,"ion-item",26),us(1,"ion-icon",27),ss(2,"ion-label",28),Qs(3),Du(4,"translate"),ls(),ls()),2&e&&(xo(3),Xs(Ou(4,1,"lang.passwordValid")))}function GG(e,t){1&e&&(ss(0,"ion-item",26),us(1,"ion-icon",27),ss(2,"ion-label",28),Qs(3),Du(4,"translate"),ls(),ls()),2&e&&(xo(3),Xs(Ou(4,1,"lang.passwordMatch")))}function qG(e,t){1&e&&us(0,"ion-item",29),2&e&&os("innerHTML",ks().otherRuleText,Ar)}var YG,ZG=((YG=function(){function e(t,n,i,r,o,a,s){A(this,e),this.http=t,this.notify=n,this._formBuilder=i,this.translate=r,this.signaturesService=o,this.authService=a,this.router=s,this.config={},this.loading=!1,this.user={},this.ruleText="",this.hidePassword=!0,this.validPassword=!1,this.passwordRules={minLength:{enabled:!1,value:0},complexityUpper:{enabled:!1,value:0},complexityNumber:{enabled:!1,value:0},complexitySpecial:{enabled:!1,value:0},renewal:{enabled:!1,value:0},historyLastUse:{enabled:!1,value:0}},this.passwordModel={currentPassword:"",newPassword:"",reNewPassword:""},this.user=JSON.parse(atob(this.authService.getToken().split(".")[1])).user}return m(e,[{key:"ngOnInit",value:function(){var e=this;this.http.get("../rest/passwordRules").subscribe(function(t){var n=[],i=[],r=[];n.push(Nv.required),t.rules.forEach(function(t){"minLength"===t.label?(e.passwordRules.minLength.enabled=t.enabled,e.passwordRules.minLength.value=t.value,t.enabled&&(n.push(Nv.minLength(e.passwordRules.minLength.value)),i.push(t.value+" "+e.translate.instant("lang.password_"+t.label)))):"complexityUpper"===t.label?(e.passwordRules.complexityUpper.enabled=t.enabled,e.passwordRules.complexityUpper.value=t.value,t.enabled&&(n.push(e.regexValidator(new RegExp("[A-Z]"),{complexityUpper:""})),i.push(e.translate.instant("lang.password_"+t.label)))):"complexityNumber"===t.label?(e.passwordRules.complexityNumber.enabled=t.enabled,e.passwordRules.complexityNumber.value=t.value,t.enabled&&(n.push(e.regexValidator(new RegExp("[0-9]"),{complexityNumber:""})),i.push(e.translate.instant("lang.password_"+t.label)))):"complexitySpecial"===t.label?(e.passwordRules.complexitySpecial.enabled=t.enabled,e.passwordRules.complexitySpecial.value=t.value,t.enabled&&(n.push(e.regexValidator(new RegExp("[^A-Za-z0-9]"),{complexitySpecial:""})),i.push(e.translate.instant("lang.password_"+t.label)))):"renewal"===t.label?(e.passwordRules.renewal.enabled=t.enabled,e.passwordRules.renewal.value=t.value,t.enabled&&r.push(e.translate.instant("lang.password_"+t.label)+" <b>"+t.value+" "+e.translate.instant("lang.days")+"</b>. "+e.translate.instant("lang.password2_"+t.label)+".")):"historyLastUse"===t.label&&(e.passwordRules.historyLastUse.enabled=t.enabled,e.passwordRules.historyLastUse.value=t.value,t.enabled&&r.push(e.translate.instant("lang.password_historyLastUseDesc")+" <b>"+t.value+"</b> "+e.translate.instant("lang.password_historyLastUseDesc2")+"."))}),e.ruleText=i.join(", "),e.otherRuleText=r.join("<br/>"),e.firstFormGroup.controls.newPasswordCtrl.setValidators(n)},function(t){e.notify.error(t.error.errors)}),this.firstFormGroup=this._formBuilder.group({newPasswordCtrl:[""],retypePasswordCtrl:["",Nv.compose([Nv.required])],currentPasswordCtrl:["",Nv.compose([Nv.required])]},{validator:this.matchValidator})}},{key:"regexValidator",value:function(e,t){return function(n){return n.value?e.test(n.value)?null:t:null}}},{key:"matchValidator",value:function(e){return e.controls.newPasswordCtrl.value!==e.controls.retypePasswordCtrl.value&&(e.controls.retypePasswordCtrl.setErrors({mismatch:!0}),{mismatch:!0})}},{key:"getErrorMessage",value:function(){return this.firstFormGroup.controls.retypePasswordCtrl.setErrors(this.firstFormGroup.controls.newPasswordCtrl.value!==this.firstFormGroup.controls.retypePasswordCtrl.value?{mismatch:!0}:null),this.firstFormGroup.controls.newPasswordCtrl.hasError("required")?this.translate.instant("lang.requiredField")+" !":this.firstFormGroup.controls.newPasswordCtrl.hasError("minlength")&&this.passwordRules.minLength.enabled?this.passwordRules.minLength.value+" "+this.translate.instant("lang.password_minLength")+" !":null!=this.firstFormGroup.controls.newPasswordCtrl.errors&&void 0!==this.firstFormGroup.controls.newPasswordCtrl.errors.complexityUpper&&this.passwordRules.complexityUpper.enabled?this.translate.instant("lang.password_complexityUpper")+" !":null!=this.firstFormGroup.controls.newPasswordCtrl.errors&&void 0!==this.firstFormGroup.controls.newPasswordCtrl.errors.complexityNumber&&this.passwordRules.complexityNumber.enabled?this.translate.instant("lang.password_complexityNumber")+" !":null!=this.firstFormGroup.controls.newPasswordCtrl.errors&&void 0!==this.firstFormGroup.controls.newPasswordCtrl.errors.complexitySpecial&&this.passwordRules.complexitySpecial.enabled?this.translate.instant("lang.password_complexitySpecial")+" !":(this.firstFormGroup.controls.newPasswordCtrl.setErrors(null),this.validPassword=!0,"")}},{key:"onSubmit",value:function(){var e=this;this.passwordModel.currentPassword=this.firstFormGroup.controls.currentPasswordCtrl.value,this.passwordModel.newPassword=this.firstFormGroup.controls.newPasswordCtrl.value,this.passwordModel.passwordConfirmation=this.firstFormGroup.controls.retypePasswordCtrl.value,this.http.put("../rest/users/"+this.user.id+"/password",this.passwordModel).subscribe(function(){e.notify.success(e.translate.instant("lang.passwordChanged")),void 0===e.authService.user.picture&&e.http.get("../rest/users/"+e.authService.user.id+"/picture").subscribe(function(t){e.authService.user.picture=t.picture}),e.router.navigate(["/home"])},function(t){e.notify.handleErrors(t)})}},{key:"logout",value:function(){this.authService.logout()}}]),e}()).\u0275fac=function(e){return new(e||YG)(rs(lb),rs(yE),rs(My),rs(pE),rs(PE),rs(DE),rs(jk))},YG.\u0275cmp=ft({type:YG,selectors:[["ng-component"]],decls:68,vars:53,consts:[[3,"translucent"],["color","primary"],["slot","start"],["mainContent",""],[2,"display","contents",3,"formGroup","ngSubmit"],["offset","3","size","6"],[1,"info"],["color","secondary","position","stacked"],["formControlName","currentPasswordCtrl","required","",3,"placeholder","type"],["slot","end","color","light",1,"showpassButton",3,"click"],["slot","icon-only","color","primary",3,"name"],["color","danger",4,"ngIf"],["lines","full"],["color","dark"],["formControlName","newPasswordCtrl","required","",3,"placeholder","type"],["inputPasswd",""],["lines","none",4,"ngIf"],["color","danger"],["required","","formControlName","retypePasswordCtrl",3,"placeholder","type"],["inputPasswd2",""],["text-center","","lines","none",2,"position","sticky","bottom","0px","z-index","1"],[2,"display","flex","align-items","center","justify-content","center","width","100%","background","white"],["type","submit","shape","round","size","large","fill","outline","color","primary",3,"disabled"],[2,"font-size","13px"],["type","button","shape","round","size","large","fill","outline","color","default",3,"click"],["color","warning","class","alert-warning","role","alert",3,"innerHTML",4,"ngIf"],["lines","none"],["slot","start","color","success","name","checkmark-outline"],["color","success"],["color","warning","role","alert",1,"alert-warning",3,"innerHTML"]],template:function(e,t){1&e&&(ss(0,"ion-header",0),ss(1,"ion-toolbar",1),us(2,"ion-buttons",2),ss(3,"ion-title"),Qs(4),Du(5,"translate"),ls(),ls(),ls(),ss(6,"ion-content",null,3),ss(8,"form",4),ms("ngSubmit",function(){return t.onSubmit()}),ss(9,"ion-grid"),ss(10,"ion-row"),ss(11,"ion-col",5),ss(12,"ion-card",6),ss(13,"ion-card-content"),Qs(14),Du(15,"translate"),ss(16,"b"),Qs(17),ls(),Qs(18),Du(19,"translate"),ls(),ls(),ss(20,"ion-item"),ss(21,"ion-label",7),Qs(22),Du(23,"translate"),ls(),us(24,"ion-input",8),Du(25,"translate"),ss(26,"ion-button",9),ms("click",function(){return t.hidePassword=!t.hidePassword}),us(27,"ion-icon",10),ls(),ns(28,UG,3,3,"ion-note",11),ls(),ss(29,"ion-list-header",12),ss(30,"ion-label",13),Qs(31),ls(),ls(),ss(32,"ion-item"),ss(33,"ion-label",7),Qs(34),Du(35,"translate"),ls(),us(36,"ion-input",14,15),Du(38,"translate"),ss(39,"ion-button",9),ms("click",function(){return t.hidePassword=!t.hidePassword}),us(40,"ion-icon",10),ls(),ns(41,WG,5,3,"ion-item",16),ss(42,"ion-note",17),Qs(43),ls(),ls(),ss(44,"ion-item"),ss(45,"ion-label",7),Qs(46),Du(47,"translate"),ls(),us(48,"ion-input",18,19),Du(50,"translate"),ss(51,"ion-button",9),ms("click",function(){return t.hidePassword=!t.hidePassword}),us(52,"ion-icon",10),ls(),ns(53,GG,5,3,"ion-item",16),ss(54,"ion-note",17),Qs(55),Du(56,"translate"),ls(),ls(),ls(),ls(),ls(),ss(57,"ion-item",20),ss(58,"div",21),ss(59,"ion-button",22),ss(60,"ion-label",23),Qs(61),Du(62,"translate"),ls(),ls(),ss(63,"ion-button",24),ms("click",function(){return t.logout()}),ss(64,"ion-label",23),Qs(65),Du(66,"translate"),ls(),ls(),ls(),ls(),ls(),ns(67,qG,1,1,"ion-item",25),ls()),2&e&&(os("translucent",!0),xo(4),Xs(Ou(5,29,"lang.passwordModification")),xo(4),os("formGroup",t.firstFormGroup),xo(6),Ks(" ",Ou(15,31,"lang.hello")," "),xo(3),Js(" ",t.user.firstname," ",t.user.lastname,""),xo(1),Ks(", ",Ou(19,33,"lang.changePasswordInfo"),". "),xo(4),Xs(Ou(23,35,"lang.typeCurrentPassword")),xo(2),Ss("placeholder",Ou(25,37,"lang.typeCurrentPassword")),os("type",t.hidePassword?"password":"text"),xo(3),os("name",t.hidePassword?"eye-outline":"eye-off-outline"),xo(1),os("ngIf",t.firstFormGroup.controls.currentPasswordCtrl.hasError("required")),xo(3),Xs(t.ruleText),xo(3),Ks("",Ou(35,39,"lang.passwordConfirmation")," "),xo(2),Ss("placeholder",Ou(38,41,"lang.passwordConfirmation")),os("type",t.hidePassword?"password":"text"),xo(4),os("name",t.hidePassword?"eye-outline":"eye-off-outline"),xo(1),os("ngIf",t.validPassword),xo(2),Xs(t.getErrorMessage()),xo(3),Ks("",Ou(47,43,"lang.passwordConfirmation")," "),xo(2),Ss("placeholder",Ou(50,45,"lang.passwordConfirmation")),os("type",t.hidePassword?"password":"text"),xo(4),os("name",t.hidePassword?"eye-outline":"eye-off-outline"),xo(1),os("ngIf",!t.firstFormGroup.controls.retypePasswordCtrl.hasError("mismatch")&&""!=t.firstFormGroup.controls.retypePasswordCtrl.value),xo(2),Xs(Ou(56,47,"lang.passwordNotMatch")),xo(4),os("disabled",!t.firstFormGroup.valid),xo(2),Xs(Ou(62,49,"lang.validate")),xo(4),Xs(Ou(66,51,"lang.logout")),xo(2),os("ngIf",t.passwordRules.renewal.enabled||t.passwordRules.historyLastUse.enabled))},directives:[XC,DS,LC,PS,UC,Zm,fm,ey,QC,yS,jC,FC,BC,nS,aS,tS,nA,hm,ny,xy,RC,KC,mh,lS,hS],pipes:[gE],styles:[".alert-warning[_ngcontent-%COMP%]{text-align:center;width:100%;margin:0;color:#8a6d3b;background-color:#fcf8e3;border-color:#faebcc;padding-top:15px;padding-bottom:15px}.alert-warning[_ngcontent-%COMP%], .container[_ngcontent-%COMP%]{left:0;bottom:0;position:absolute}.container[_ngcontent-%COMP%]{margin-top:-63px;display:flex;flex-direction:column;top:64px;right:0;height:100%}"]}),YG),QG=u("b0Xh"),XG=["passwordContent"];function KG(e,t){if(1&e&&(ss(0,"ion-note",35),Qs(1),Du(2,"translate"),ls()),2&e){var n=ks(3);xo(1),Ks(" ",Ou(2,1,n.handlePassword.errorMsg),"")}}function JG(e,t){if(1&e){var n=fs();ss(0,"div"),ss(1,"ion-list-header",26),ss(2,"ion-label",1),Qs(3),Du(4,"translate"),ls(),ls(),ss(5,"ion-item"),ss(6,"ion-label",29),Qs(7),Du(8,"translate"),ls(),ss(9,"ion-input",30),ms("ngModelChange",function(e){return nn(n),ks(2).password.currentPassword=e}),Du(10,"translate"),ls(),ss(11,"ion-button",31),ms("click",function(){nn(n);var e=ks(2);return e.hideCurrentPassword=!e.hideCurrentPassword}),us(12,"ion-icon",32),ls(),ls(),ss(13,"ion-item"),ss(14,"ion-label",29),Qs(15),Du(16,"translate"),ls(),ss(17,"ion-input",33),ms("ngModelChange",function(e){return nn(n),ks(2).password.newPassword=e})("keyup",function(){nn(n);var e=ks(2);return e.checkPasswordValidity(e.password.newPassword)}),Du(18,"translate"),ls(),ss(19,"ion-button",31),ms("click",function(){nn(n);var e=ks(2);return e.hideNewPassword=!e.hideNewPassword}),us(20,"ion-icon",32),ls(),ns(21,KG,3,3,"ion-note",28),ls(),ss(22,"ion-item"),ss(23,"ion-label",29),Qs(24),Du(25,"translate"),ls(),ss(26,"ion-input",34),ms("ngModelChange",function(e){return nn(n),ks(2).password.passwordConfirmation=e}),Du(27,"translate"),ls(),ss(28,"ion-button",31),ms("click",function(){nn(n);var e=ks(2);return e.hideNewPasswordConfirm=!e.hideNewPasswordConfirm}),us(29,"ion-icon",32),ls(),ls(),ls()}if(2&e){var i=ks(2);xo(3),Xs(Ou(4,17,"lang.changePassword")),xo(4),Xs(Ou(8,19,"lang.currentPassword")),xo(2),Ss("placeholder",Ou(10,21,"lang.currentPassword")),os("ngModel",i.password.currentPassword)("type",i.hideCurrentPassword?"password":"text"),xo(3),os("name",i.hideCurrentPassword?"eye-outline":"eye-off-outline"),xo(3),Xs(Ou(16,23,"lang.newPassword")),xo(2),Ss("placeholder",Ou(18,25,"lang.newPassword")),os("ngModel",i.password.newPassword)("type",i.hideNewPassword?"password":"text"),xo(3),os("name",i.hideNewPassword?"eye-outline":"eye-off-outline"),xo(1),os("ngIf",i.handlePassword.error),xo(3),Ks("",Ou(25,27,"lang.passwordConfirmation")," "),xo(2),Ss("placeholder",Ou(27,29,"lang.passwordConfirmation")),os("ngModel",i.password.passwordConfirmation)("type",i.hideNewPasswordConfirm?"password":"text"),xo(3),os("name",i.hideNewPasswordConfirm?"eye-outline":"eye-off-outline")}}function $G(e,t){1&e&&(ss(0,"ion-note",36),Qs(1),Du(2,"translate"),ls()),2&e&&(xo(1),Ks(" ",Ou(2,1,"lang.samePassword"),""))}function eq(e,t){1&e&&(ss(0,"ion-note",35),Qs(1),Du(2,"translate"),ls()),2&e&&(xo(1),Ks(" ",Ou(2,1,"lang.passwordNotMatch"),""))}function tq(e,t){if(1&e){var n=fs();cs(0),ss(1,"ion-list",16),ss(2,"ion-item"),ss(3,"ion-avatar",17),ms("click",function(){return nn(n),is(10).click()}),us(4,"img",18),ls(),ss(5,"ion-label",19),Qs(6),Du(7,"translate"),ls(),ss(8,"ion-input",20),ms("ngModelChange",function(e){return nn(n),ks().profileInfo.login=e}),ls(),ss(9,"input",21,22),ms("change",function(e){return nn(n),ks().handleFileInput(e.target.files)}),ls(),ls(),ss(11,"ion-item"),ss(12,"ion-label",19),Qs(13),Du(14,"translate"),ls(),ss(15,"ion-input",23),ms("ngModelChange",function(e){return nn(n),ks().profileInfo.email=e}),ls(),ls(),ss(16,"ion-item"),ss(17,"ion-label",19),Qs(18),Du(19,"translate"),ls(),ss(20,"ion-input",24),ms("ngModelChange",function(e){return nn(n),ks().profileInfo.firstname=e}),ls(),ls(),ss(21,"ion-item"),ss(22,"ion-label",19),Qs(23),Du(24,"translate"),ls(),ss(25,"ion-input",25),ms("ngModelChange",function(e){return nn(n),ks().profileInfo.lastname=e}),ls(),ls(),ns(26,JG,30,31,"div",14),ss(27,"ion-item",26),ns(28,$G,3,3,"ion-note",27),ns(29,eq,3,3,"ion-note",28),ls(),ls(),ds()}if(2&e){var i=ks();xo(4),os("src",i.avatarInfo.picture,Cr),xo(2),Xs(Ou(7,19,"lang.login")),xo(2),os("maxlength",128)("ngModel",i.profileInfo.login),xo(5),Xs(Ou(14,21,"lang.email")),xo(2),os("maxlength",128)("ngModel",i.profileInfo.email)("readonly","default"!==i.authService.authMode),xo(3),Xs(Ou(19,23,"lang.firstname")),xo(2),os("maxlength",128)("ngModel",i.profileInfo.firstname)("readonly","default"!==i.authService.authMode),xo(3),Xs(Ou(24,25,"lang.lastname")),xo(2),os("maxlength",128)("ngModel",i.profileInfo.lastname)("readonly","default"!==i.authService.authMode),xo(1),os("ngIf","default"===i.authService.authMode),xo(2),os("ngIf",i.password.passwordConfirmation===i.password.newPassword&&i.password.newPassword.length>0&&i.password.passwordConfirmation.length>0),xo(1),os("ngIf",i.password.passwordConfirmation!==i.password.newPassword)}}function nq(e,t){if(1&e&&(ss(0,"ion-select-option",63),Qs(1),Du(2,"translate"),ls()),2&e){var n=t.$implicit;os("value",n),xo(1),Xs(Ou(2,2,"lang."+n))}}function iq(e,t){1&e&&(us(0,"ion-note",64),Du(1,"translate")),2&e&&os("innerHTML",Ou(1,1,"lang.freeModeInfo"),Ar)}function rq(e,t){1&e&&(us(0,"ion-note",64),Du(1,"translate")),2&e&&os("innerHTML",Ou(1,1,"lang.standardModeInfo"),Ar)}function oq(e,t){if(1&e&&(ss(0,"ion-select-option",63),Qs(1),ls()),2&e){var n=t.index;os("value",n+1),xo(1),Ks("",n+1," ")}}var aq=function(e){return{value:e}};function sq(e,t){if(1&e&&(us(0,"ion-note",65),Du(1,"translate")),2&e){var n=ks(2);os("innerHTML",Mu(1,1,"lang.scalingDocWith",Au(4,aq,n.signatureScaling)),Ar)}}function lq(e,t){if(1&e){var n=fs();cs(0),ss(1,"ion-list",16),ss(2,"ion-item"),ss(3,"ion-label"),Qs(4),Du(5,"translate"),ls(),ss(6,"ion-toggle",37),ms("ionChange",function(){nn(n);var e=ks();return e.preferenceInfo.notifications=!e.preferenceInfo.notifications}),ls(),ls(),ss(7,"ion-list"),ss(8,"ion-item"),ss(9,"ion-label",38),Qs(10),Du(11,"translate"),ls(),ss(12,"ion-select",39),ms("ngModelChange",function(e){return nn(n),ks().preferenceInfo.lang=e}),ns(13,nq,3,4,"ion-select-option",40),ls(),ls(),ls(),ss(14,"ion-list"),ss(15,"ion-item"),ss(16,"ion-label",38),Qs(17),Du(18,"translate"),ls(),ss(19,"ion-select",41),ms("ngModelChange",function(e){return nn(n),ks().preferenceInfo.writingMode=e}),ss(20,"ion-select-option",42),Qs(21),Du(22,"translate"),ls(),ss(23,"ion-select-option",43),Qs(24),Du(25,"translate"),us(26,"i",44),ls(),ls(),ns(27,iq,2,3,"ion-note",45),ns(28,rq,2,3,"ion-note",45),ls(),ls(),ss(29,"ion-list"),ss(30,"ion-item"),ss(31,"ion-label",38),Qs(32),Du(33,"translate"),ls(),ss(34,"ion-select",46),ms("ngModelChange",function(e){return nn(n),ks().preferenceInfo.writingSize=e})("ionChange",function(){return nn(n),ks().drawSample()}),ns(35,oq,2,2,"ion-select-option",40),ls(),ss(36,"ion-note",2),us(37,"canvas",47),ls(),ls(),ls(),ss(38,"ion-list"),ss(39,"ion-item"),ss(40,"ion-label",38),Qs(41),Du(42,"translate"),ls(),ss(43,"ion-select",48),ms("ngModelChange",function(e){return nn(n),ks().preferenceInfo.writingColor=e}),ss(44,"ion-select-option",49),Qs(45),Du(46,"translate"),ls(),ss(47,"ion-select-option",50),Qs(48),Du(49,"translate"),ls(),ss(50,"ion-select-option",51),Qs(51),Du(52,"translate"),ls(),ls(),ss(53,"ion-note",2),us(54,"div",52),ls(),ls(),ls(),ss(55,"ion-list"),ss(56,"ion-row"),ss(57,"iotn-item"),ss(58,"ion-label",53),Qs(59),Du(60,"translate"),ls(),ls(),ls(),ss(61,"ion-row"),ss(62,"ion-col",54),ss(63,"ion-item",55),ss(64,"ion-range",56),ms("ngModelChange",function(e){return nn(n),ks().signatureScaling=e}),us(65,"ion-icon",57),us(66,"ion-icon",58),ls(),ls(),ns(67,sq,2,6,"ion-note",59),ls(),ss(68,"ion-col",60),ss(69,"ion-item",61),ss(70,"ion-label"),Qs(71),Du(72,"translate"),ls(),ss(73,"ion-toggle",62),ms("ionChange",function(){nn(n);var e=ks();return e.originalSize=!e.originalSize}),ls(),ls(),ls(),ls(),ls(),ls(),ds()}if(2&e){var i=ks();xo(4),Xs(Ou(5,27,"lang.receiveNotif")),xo(2),os("checked",i.preferenceInfo.notifications),xo(4),Xs(Ou(11,29,"lang.language")),xo(2),os("ngModel",i.preferenceInfo.lang),xo(1),os("ngForOf",i.profileInfo.availableLanguages),xo(4),Ks("",Ou(18,31,"lang.annotationMode")," "),xo(2),os("ngModel",i.preferenceInfo.writingMode),xo(2),Xs(Ou(22,33,"lang.free")),xo(3),Ks("",Ou(25,35,"lang.appleStylus")," "),xo(3),os("ngIf","stylus"===i.preferenceInfo.writingMode),xo(1),os("ngIf","direct"===i.preferenceInfo.writingMode),xo(4),Xs(Ou(33,37,"lang.stylusWidh")),xo(2),os("ngModel",i.preferenceInfo.writingSize),xo(1),os("ngForOf",i.counter(10)),xo(6),Xs(Ou(42,39,"lang.defaultColor")),xo(2),os("ngModel",i.preferenceInfo.writingColor),xo(2),Xs(Ou(46,41,"lang.black")),xo(3),Xs(Ou(49,43,"lang.blue")),xo(3),Xs(Ou(52,45,"lang.red")),xo(3),Ls("background-color",i.preferenceInfo.writingColor),xo(5),Xs(Ou(60,47,"lang.signatureScaling")),xo(5),os("disabled",i.originalSize)("ngModel",i.signatureScaling),xo(3),os("ngIf",!i.originalSize),xo(4),Xs(Ou(72,49,"lang.originalSize")),xo(2),os("checked",i.originalSize)}}function uq(e,t){if(1&e){var n=fs();ss(0,"ion-list"),ss(1,"ion-item"),us(2,"ion-input",66),ss(3,"ion-button",67),ms("click",function(){return nn(n),ks(2).deleteSubstitute()}),us(4,"ion-icon",68),ls(),ls(),ls()}if(2&e){var i=ks(2);xo(2),os("value",i.authService.user.substituteUser)}}function cq(e,t){if(1&e){var n=fs();ss(0,"ion-list"),ss(1,"ion-item"),ss(2,"ion-searchbar",69),ms("ionChange",function(e){return nn(n),ks(2).test(e)}),Du(3,"translate"),ls(),ls(),ls()}2&e&&(xo(2),os("placeholder",Ou(3,1,"lang.chooseSubstitute")))}function dq(e,t){if(1&e&&(ss(0,"ion-note",2),Qs(1),ls()),2&e){var n=ks().$implicit;xo(1),Xs(n.email)}}function hq(e,t){1&e&&(ss(0,"ion-note",74),Qs(1),Du(2,"translate"),ls()),2&e&&(xo(1),Xs(Ou(2,1,"lang.delegatedUser")))}function fq(e,t){if(1&e){var n=fs();ss(0,"ion-item"),ss(1,"ion-checkbox",71),ms("ionChange",function(e){return nn(n),ks(3).selectSubstitute(e.detail.value)}),ls(),ss(2,"ion-label"),Qs(3),ls(),ns(4,dq,2,1,"ion-note",72),ns(5,hq,3,3,"ion-note",73),ls()}if(2&e){var i=t.$implicit;xo(1),os("disabled",i.substitute)("value",i),xo(2),Js("",i.firstname," ",i.lastname,""),xo(1),os("ngIf",!i.substitute),xo(1),os("ngIf",i.substitute)}}function pq(e,t){if(1&e&&(ss(0,"ion-list"),ns(1,fq,6,6,"ion-item",70),ls()),2&e){var n=ks(2);xo(1),os("ngForOf",n.userList)}}function gq(e,t){if(1&e){var n=fs();ss(0,"button",78),ms("click",function(){nn(n);var e=t.index;return ks(3).toggleSignature(e)}),us(1,"img",79),ls()}if(2&e){var i=t.$implicit,r=ks(3);Fs("selected",i.substituted),xo(1),os("src",r.sanitizer.bypassSecurityTrustUrl("data:image/png;base64,"+i.encodedSignature),Cr)}}function vq(e,t){if(1&e&&(cs(0),ss(1,"ion-item",26),ss(2,"ion-label",75),Qs(3),Du(4,"translate"),ls(),ls(),ss(5,"div",76),ns(6,gq,2,3,"button",77),ls(),ds()),2&e){var n=ks(2);xo(3),Ks(" ",Ou(4,2,"lang.signSubstituted")," : "),xo(3),os("ngForOf",n.signaturesService.signaturesList)}}function mq(e,t){if(1&e&&(cs(0),ns(1,uq,5,1,"ion-list",14),ns(2,cq,4,3,"ion-list",14),ns(3,pq,2,1,"ion-list",14),ns(4,vq,7,4,"ng-container",14),ds()),2&e){var n=ks();xo(1),os("ngIf",null!==n.authService.user.substitute),xo(1),os("ngIf",null===n.authService.user.substitute),xo(1),os("ngIf",null===n.authService.user.substitute),xo(1),os("ngIf",null!=n.authService.user.substitute&&n.signaturesService.signaturesList.length>0)}}function yq(e,t){if(1&e){var n=fs();ss(0,"ion-footer",80),ss(1,"ion-toolbar"),ss(2,"ion-buttons",81),ss(3,"ion-button",82),ms("click",function(){return nn(n),ks().submitProfile()}),ss(4,"ion-label"),Qs(5),Du(6,"translate"),ls(),ls(),ls(),ls(),ls()}if(2&e){var i=ks(),r=is(27);xo(3),os("disabled",i.allowValidate()||!r.form.valid),xo(2),Xs(Ou(6,2,"lang.save"))}}var bq,wq=function(){return["info","pref"]},_q=((bq=function(){function e(t,n,i,r,o,a,s,l,u,c,d){A(this,e),this.translate=t,this.http=n,this.router=i,this.sanitizer=r,this.notificationService=o,this.signaturesService=a,this.authService=s,this.cookieService=l,this.filtersService=u,this.renderer=c,this.modalController=d,this.currentTool="info",this.profileInfo={substitute:null,preferences:[]},this.preferenceInfo={},this.avatarInfo={picture:"",pictureOrientation:""},this.hideCurrentPassword=!0,this.hideNewPassword=!0,this.hideNewPasswordConfirm=!0,this.passwordRules={minLength:{enabled:!1,value:0},complexityUpper:{enabled:!1,value:0},complexityNumber:{enabled:!1,value:0},complexitySpecial:{enabled:!1,value:0},renewal:{enabled:!1,value:0},historyLastUse:{enabled:!1,value:0}},this.password={currentPassword:"",newPassword:"",passwordConfirmation:""},this.handlePassword={error:!1,errorMsg:""},this.usersList=[],this.ruleText="",this.otherRuleText="",this.disableState=!1,this.msgButton="lang.validate",this.loading=!1,this.slideOpts={initialSlide:0,speed:400},this.showHideContent=!1,this.userList=[],this.signatureScaling=25,this.originalSize=!1}return m(e,[{key:"ngOnInit",value:function(){this.initProfileInfo(),this.getPassRules()}},{key:"dismissModal",value:function(){this.modalController.dismiss("cancel")}},{key:"test",value:function(e){var t=this;""===e.detail.value?this.userList=[]:e.detail.value.length>=3&&this.http.get("../rest/autocomplete/users?search="+e.detail.value).pipe(uw(function(e){t.userList=e.filter(function(e){return e.id!==t.profileInfo.id})}),Zb(function(e){return t.notificationService.handleErrors(e),Ty(!1)})).subscribe()}},{key:"initProfileInfo",value:function(){this.profileInfo=JSON.parse(JSON.stringify(this.authService.user)),this.preferenceInfo=this.profileInfo.preferences,this.avatarInfo.picture=this.profileInfo.picture,void 0!==this.preferenceInfo.signatureScaling?!1===this.preferenceInfo.signatureScaling?this.originalSize=!0:this.signatureScaling=this.preferenceInfo.signatureScaling:this.originalSize=!0,delete this.profileInfo.picture,delete this.profileInfo.preferences}},{key:"initTab",value:function(e){var t=this;this.currentTool=e,"pref"===e&&setTimeout(function(){t.drawSample()},200)}},{key:"closeProfile",value:function(){var e=this;setTimeout(function(){e.initProfileInfo()},200),this.dismissModal()}},{key:"getPassRules",value:function(){var e=this;this.handlePassword.error=!1,this.handlePassword.errorMsg="",this.http.get("../rest/passwordRules").subscribe(function(t){var n=[],i=[];t.rules.forEach(function(t){"minLength"===t.label?(e.passwordRules.minLength.enabled=t.enabled,e.passwordRules.minLength.value=t.value,t.enabled&&e.translate.get("lang.minLengthChar",{charLength:t.value}).subscribe(function(e){n.push(e)})):"complexityUpper"===t.label?(e.passwordRules.complexityUpper.enabled=t.enabled,e.passwordRules.complexityUpper.value=t.value,t.enabled&&n.push("lang.upperRequired")):"complexityNumber"===t.label?(e.passwordRules.complexityNumber.enabled=t.enabled,e.passwordRules.complexityNumber.value=t.value,t.enabled&&n.push("lang.numberRequired")):"complexitySpecial"===t.label?(e.passwordRules.complexitySpecial.enabled=t.enabled,e.passwordRules.complexitySpecial.value=t.value,t.enabled&&n.push("lang.specialCharRequired")):"renewal"===t.label?(e.passwordRules.renewal.enabled=t.enabled,e.passwordRules.renewal.value=t.value,t.enabled&&e.translate.get("lang.renewalInfo",{time:t.value}).subscribe(function(e){i.push(e)})):"historyLastUse"===t.label&&(e.passwordRules.historyLastUse.enabled=t.enabled,e.passwordRules.historyLastUse.value=t.value,t.enabled&&e.translate.get("lang.historyUseInfo",{countPwd:t.value}).subscribe(function(e){i.push(e)}))}),e.ruleText=n.join(", "),e.otherRuleText=i.join("<br/>")},function(t){e.notificationService.handleErrors(t)})}},{key:"checkPasswordValidity",value:function(e){var t=this;this.handlePassword.error=!0,!e.match(/[A-Z]/g)&&this.passwordRules.complexityUpper.enabled?this.handlePassword.errorMsg="lang.upperRequired":!e.match(/[0-9]/g)&&this.passwordRules.complexityNumber.enabled?this.handlePassword.errorMsg="lang.numberRequired":!e.match(/[^A-Za-z0-9]/g)&&this.passwordRules.complexitySpecial.enabled?this.handlePassword.errorMsg="lang.specialCharRequired":e.length<this.passwordRules.minLength.value&&this.passwordRules.minLength.enabled?this.translate.get("lang.minLengthChar",{charLength:this.passwordRules.minLength.value}).subscribe(function(e){t.handlePassword.errorMsg=e}):(this.handlePassword.error=!1,this.handlePassword.errorMsg="")}},{key:"allowValidate",value:function(){return!!this.disableState||!(""===this.password.newPassword||!this.handlePassword.error&&this.password.newPassword===this.password.passwordConfirmation&&0!==this.password.currentPassword.length&&0!==this.password.newPassword.length&&0!==this.password.passwordConfirmation.length)}},{key:"submitProfile",value:function(){return e=this,n=regeneratorRuntime.mark(function e(){var t=this;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:this.disableState=!0,this.msgButton="lang.sending",this.preferenceInfo=Object.assign(Object.assign({},this.preferenceInfo),{signatureScaling:!this.originalSize&&this.signatureScaling}),this.http.put("../rest/users/"+this.authService.user.id+"/preferences",this.preferenceInfo).pipe(uw(function(){t.disableState=!1,t.msgButton="lang.validate",t.setLang(t.preferenceInfo.lang),t.cookieService.set("maarchParapheurLang",t.preferenceInfo.lang)}),mj(function(){return"default"===t.authService.authMode?t.http.put("../rest/users/"+t.authService.user.id,t.profileInfo):new Promise(function(e){e(!0)})}),mj(function(){if(t.authService.updateUserInfoWithTokenRefresh(),""===t.password.newPassword)return t.closeProfile(),t.notificationService.success("lang.profileUpdated"),Ty(!1);if("default"===t.authService.authMode){var e=new zy({Authorization:"Bearer "+t.authService.getToken()});return t.http.put("../rest/users/"+t.authService.user.id+"/password",t.password,{observe:"response",headers:e})}return Ty(!1)}),Ry(function(e){return!!e}),uw(function(e){t.authService.saveTokens(e.headers.get("Token"),e.headers.get("Refresh-Token")),t.password.newPassword="",t.password.passwordConfirmation="",t.password.currentPassword="",t.notificationService.success("lang.profileUpdated")}),Zb(function(e){return 401===e.status?t.notificationService.error("lang.wrongPassword"):t.notificationService.handleErrors(e),Ty(!1)})).subscribe();case 1:case"end":return e.stop()}},e,this)}),new((t=void 0)||(t=Promise))(function(i,r){function o(e){try{s(n.next(e))}catch(t){r(t)}}function a(e){try{s(n.throw(e))}catch(t){r(t)}}function s(e){var n;e.done?i(e.value):(n=e.value,n instanceof t?n:new t(function(e){e(n)})).then(o,a)}s((n=n.apply(e,[])).next())});var e,t,n}},{key:"changePicture",value:function(){var e=this;this.msgButton="lang.sending",this.disableState=!0,this.http.put("../rest/users/"+this.authService.user.id+"/picture",this.avatarInfo).pipe(uw(function(){e.authService.user.picture=e.avatarInfo.picture,e.notificationService.success("lang.profileUpdated")}),hw(function(){e.msgButton="lang.validate",e.disableState=!1})).subscribe()}},{key:"selectSubstitute",value:function(e){var t=this;this.userList=[],this.http.put("../rest/users/"+this.authService.user.id+"/substitute",{substitute:e.id}).subscribe(function(){t.authService.updateUserInfoWithTokenRefresh(),t.filtersService.resfreshDocuments(),t.signaturesService.documentsList.length>0&&!1===t.signaturesService.documentsList[t.signaturesService.indexDocumentsList].owner&&t.router.navigate(["/documents"]),t.notificationService.success("lang.substituteEnabled")})}},{key:"deleteSubstitute",value:function(){var e=this;confirm(this.translate.instant("lang.deleteSubstitution")+" ?")&&(this.profileInfo.substitute=null,this.http.put("../rest/users/"+this.authService.user.id+"/substitute",{substitute:this.profileInfo.substitute}).subscribe(function(){e.authService.updateUserInfoWithTokenRefresh(),e.filtersService.resfreshDocuments(),e.signaturesService.documentsList.length>0&&!1===e.signaturesService.documentsList[e.signaturesService.indexDocumentsList].owner&&e.router.navigate(["/documents"]),e.notificationService.success("lang.substitutionDeleted")}))}},{key:"handleFileInput",value:function(e){var t=this;this.passwordContent&&this.passwordContent.close();var n=e.item(0);if(n.size<=5e6)if(-1!==["image/png","image/jpg","image/jpeg","image/gif"].indexOf(n.type)){var i=new FileReader;i.onloadend=function(e){var n=new Image;n.src=i.result.toString(),t.avatarInfo.picture=i.result,n.onload=function(){return t.fixImgOrientation(n)}},i.readAsDataURL(n)}else this.notificationService.error("lang.notAnImage");else this.notificationService.error("lang.imageTooBig")}},{key:"fixImgOrientation",value:function(e){var t=this;QG.getData(e,function(){var n=0;switch(QG.getTag(e,"Orientation")){case 3:n=180;break;case 6:n=90;break;case 8:n=-90}t.avatarInfo.pictureOrientation=n,t.changePicture()})}},{key:"drawSample",value:function(){var e=document.getElementById("sampleNote").getContext("2d");e.clearRect(0,0,100,100),e.beginPath(),e.lineWidth=this.preferenceInfo.writingSize,e.moveTo(0,0),e.lineTo(100,100),e.moveTo(100,0),e.lineTo(0,100),e.stroke()}},{key:"initProfileTab",value:function(e){1===e.index&&this.drawSample()}},{key:"counter",value:function(e){return new Array(e)}},{key:"setLang",value:function(e){this.translate.use(e)}},{key:"toggleSignature",value:function(e){var t=this;this.http.patch("../rest/users/"+this.authService.user.id+"/signatures/"+this.signaturesService.signaturesList[e].id+"/substituted",{substituted:!this.signaturesService.signaturesList[e].substituted}).subscribe(function(){t.signaturesService.signaturesList[e].substituted=!t.signaturesService.signaturesList[e].substituted,t.notificationService.success("lang.modificationSaved")})}}]),e}()).\u0275fac=function(e){return new(e||bq)(rs(pE),rs(lb),rs(jk),rs(Wf),rs(yE),rs(PE),rs(DE),rs(IM),rs(yU),rs(El),rs(cP))},bq.\u0275cmp=ft({type:bq,selectors:[["app-my-profile"]],viewQuery:function(e,t){var n;1&e&&Qu(XG,1),2&e&&Zu(n=Ku())&&(t.passwordContent=n.first)},decls:33,vars:19,consts:[[3,"translucent"],["color","primary"],["slot","end"],[3,"click"],["slot","icon-only","name","close-outline"],[3,"value","ionChange"],["value","info"],["name","information-circle"],["value","pref"],["name","brush-outline"],["value","deleg"],["name","hand-left-outline"],[2,"display","contents",3,"ngSubmit"],["profileForm","ngForm"],[4,"ngIf"],["class","ion-no-border",4,"ngIf"],["lines","full",1,"ion-no-margin"],["slot","start",2,"cursor","pointer",3,"click"],[3,"src"],["color","secondary","position","floating"],["name","login","readonly","","required","",3,"maxlength","ngModel","ngModelChange"],["type","file",2,"display","none",3,"change"],["uploadFile",""],["name","email","pattern","(^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\\.[a-zA-Z0-9-.]+$)","required","",3,"maxlength","ngModel","readonly","ngModelChange"],["name","firstname","required","",3,"maxlength","ngModel","readonly","ngModelChange"],["name","lastname","required","",3,"maxlength","ngModel","readonly","ngModelChange"],["lines","none"],["color","success",4,"ngIf"],["color","danger",4,"ngIf"],["color","secondary","position","stacked"],["name","currentPassword",3,"ngModel","placeholder","type","ngModelChange"],["slot","end","color","light",1,"showpassButton",3,"click"],["slot","icon-only","color","primary",3,"name"],["name","newPassword",3,"ngModel","placeholder","type","ngModelChange","keyup"],["name","passwordConfirmation",3,"ngModel","placeholder","type","ngModelChange"],["color","danger"],["color","success"],["slot","start",3,"checked","ionChange"],["position","floating","color","secondary"],["name","langUser",3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],["name","writingMode",3,"ngModel","ngModelChange"],["value","direct"],["value","stylus"],[1,"fab","fa-apple"],[3,"innerHTML",4,"ngIf"],["name","writingSize",3,"ngModel","ngModelChange","ionChange"],["id","sampleNote","width","100","height","100"],["name","writingColor",3,"ngModel","ngModelChange"],["value","#000000"],["value","#1a75ff"],["value","#FF0000"],[2,"height","25px","width","25px","border-radius","20px"],["color","secondary",2,"opacity","1","margin-left","15px"],["size","7"],["lines","none",2,"margin-left","-10px"],["min","10","max","50","pin","","color","primary","name","signatureScaling",3,"disabled","ngModel","ngModelChange"],["slot","start","size","small","name","scan-circle-outline"],["slot","end","name","scan-outline"],["style","margin-left: 20px; font-size: 14px;",3,"innerHTML",4,"ngIf"],["size","5"],["lines","none",2,"margin-top","22px","margin-left","10px"],["slot","start","name","originalSize","color","primary",2,"cursor","pointer",3,"checked","ionChange"],[3,"value"],[3,"innerHTML"],[2,"margin-left","20px","font-size","14px",3,"innerHTML"],["readonly","",3,"value"],["slot","end","color","danger",3,"click"],["name","close-outline"],[3,"placeholder","ionChange"],[4,"ngFor","ngForOf"],["color","primary","slot","start",3,"disabled","value","ionChange"],["slot","end",4,"ngIf"],["slot","end","color","danger",4,"ngIf"],["slot","end","color","danger"],["color","secondary"],[2,"display","grid","grid-template-columns","repeat(2, 1fr)"],["type","button","class","signListButton","mat-stroked-button","",3,"selected","click",4,"ngFor","ngForOf"],["type","button","mat-stroked-button","",1,"signListButton",3,"click"],[2,"width","190px",3,"src"],[1,"ion-no-border"],[1,"ion-justify-content-center"],["type","submit","color","primary",3,"disabled","click"]],template:function(e,t){1&e&&(ss(0,"ion-header",0),ss(1,"ion-toolbar",1),ss(2,"ion-title"),Qs(3),Du(4,"translate"),ls(),ss(5,"ion-buttons",2),ss(6,"ion-button",3),ms("click",function(){return t.dismissModal()}),us(7,"ion-icon",4),ls(),ls(),ls(),ls(),ss(8,"ion-header"),ss(9,"ion-toolbar"),ss(10,"ion-segment",5),ms("ionChange",function(e){return t.initTab(e.detail.value)}),ss(11,"ion-segment-button",6),ss(12,"ion-label"),Qs(13),Du(14,"translate"),ls(),us(15,"ion-icon",7),ls(),ss(16,"ion-segment-button",8),ss(17,"ion-label"),Qs(18),Du(19,"translate"),ls(),us(20,"ion-icon",9),ls(),ss(21,"ion-segment-button",10),ss(22,"ion-label"),Qs(23),Du(24,"translate"),ls(),us(25,"ion-icon",11),ls(),ls(),ls(),ls(),ss(26,"form",12,13),ms("ngSubmit",function(){return t.submitProfile()}),ss(28,"ion-content"),ns(29,tq,30,27,"ng-container",14),ns(30,lq,74,51,"ng-container",14),ns(31,mq,5,4,"ng-container",14),ls(),ls(),ns(32,yq,7,4,"ion-footer",15)),2&e&&(os("translucent",!0),xo(3),Xs(Ou(4,10,"lang.myProfil")),xo(7),os("value",t.currentTool),xo(3),Xs(Ou(14,12,"lang.informations")),xo(5),Xs(Ou(19,14,"lang.preferences")),xo(5),Xs(Ou(24,16,"lang.substitute")),xo(6),os("ngIf","info"===t.currentTool),xo(1),os("ngIf","pref"===t.currentTool),xo(1),os("ngIf","deleg"===t.currentTool),xo(1),os("ngIf",xu(18,wq).indexOf(t.currentTool)>-1))},directives:[XC,DS,PS,LC,RC,KC,wS,tA,_S,aS,Zm,fm,Wm,UC,mh,sS,nS,MC,tS,nA,xy,Cy,hm,Ym,Py,lS,hS,ES,Jx,kS,gh,xS,yS,jC,gS,bS,NC,YF,ZC],pipes:[gE],styles:['.sidebar[_ngcontent-%COMP%]{position:relative;height:100%;overflow:auto}.sidebar-header[_ngcontent-%COMP%]{background:#f1f4f4;height:50px;display:flex;align-items:center;justify-content:center;font-size:14px;font-weight:600;padding-top:10px}.sidebar-header-icon[_ngcontent-%COMP%]{margin-right:15px;position:relative}.sidebar-header-icon.notification[_ngcontent-%COMP%]:after{position:absolute;right:-5px;top:-5px;width:10px;height:10px;border-radius:50%;background:#e74c3c;content:""}.sidebar-header-subtitle[_ngcontent-%COMP%]{color:#9b9b9b}.sidebar-btn[_ngcontent-%COMP%]{height:50px;display:flex;align-items:center;justify-content:space-around}.sidebar[_ngcontent-%COMP%]   .nav[_ngcontent-%COMP%]{margin-top:0}.profile-header[_ngcontent-%COMP%]{background:#135f7f;height:95px;display:flex;justify-content:center;position:relative}.user[_ngcontent-%COMP%]{color:#fff;color:#f99830;position:absolute;top:15px;font-weight:700;font-size:20px}.input-row[_ngcontent-%COMP%]{width:100%;padding-top:10px;padding-bottom:10px}.profile-content[_ngcontent-%COMP%]{padding:10px;text-align:center}.actions[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{padding:10px;margin:10px;color:#fff;font-size:20px}.actions[_ngcontent-%COMP%]   .cancel[_ngcontent-%COMP%]{position:absolute;top:0;left:0;height:65px;width:65px;font-size:35px}.actions[_ngcontent-%COMP%]   .validate[_ngcontent-%COMP%]{position:absolute;top:10px;right:0;font-size:20px}canvas[_ngcontent-%COMP%]{background-color:#f1f4f4}fieldset[_ngcontent-%COMP%]{border:1px solid #f1f4f4;align-items:center}legend[_ngcontent-%COMP%]{color:#f99830}.form-container[_ngcontent-%COMP%]{display:table;width:100%}.form-2-col[_ngcontent-%COMP%]{width:50%}.form-2-col[_ngcontent-%COMP%], .form-col[_ngcontent-%COMP%]{display:table-cell;vertical-align:middle}.notification[_ngcontent-%COMP%]{text-align:left;padding:10px}.panel-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;position:relative;height:100%;overflow:hidden}.panel-header[_ngcontent-%COMP%]{box-shadow:0 0 10px 0 #656565;color:#fff;background:#135f7f;height:95px;display:flex;justify-content:center;position:relative;font-size:20px;align-items:center}.panel-content[_ngcontent-%COMP%]{flex:1;overflow:auto}.mat-icon[_ngcontent-%COMP%]{height:auto}.selected[_ngcontent-%COMP%]{border:solid #f99830}.selectedSubstitute[_ngcontent-%COMP%]{width:100%}.selectedSubstitute[_ngcontent-%COMP%]    .mat-input-element{cursor:default}.selectedSubstitute[_ngcontent-%COMP%]    .mat-form-field-suffix{top:0;display:flex}.showpassButton[_ngcontent-%COMP%]{--background:none;--box-shadow:none}']}),bq);function kq(e,t){if(1&e){var n=fs();ss(0,"ion-button",3),ms("click",function(){return nn(n),ks().menu.open("left-menu")}),Qs(1),Du(2,"translate"),ls()}2&e&&(xo(1),Ks(" ",Ou(2,1,"lang.accessMenu")," "))}var xq,Aq=((xq=function(){function e(t,n,i,r){A(this,e),this.signaturesService=t,this.translate=n,this.menu=i,this.modalController=r,this.loading=!1}return m(e,[{key:"ngOnInit",value:function(){this.menu.enable(!0,"left-menu"),this.menu.enable(!1,"right-menu"),this.menu.open("left-menu")}}]),e}()).\u0275fac=function(e){return new(e||xq)(rs(PE),rs(pE),rs(uP),rs(cP))},xq.\u0275cmp=ft({type:xq,selectors:[["ng-component"]],decls:3,vars:1,consts:[["color","primary"],["svgIcon","maarchLogo",1,"maarchLogo"],["class","menu-button","color","light","fill","outline","size","large",3,"click",4,"ngIf"],["color","light","fill","outline","size","large",1,"menu-button",3,"click"]],template:function(e,t){1&e&&(ss(0,"ion-content",0),us(1,"mat-icon",1),ns(2,kq,3,3,"ion-button",2),ls()),2&e&&(xo(2),os("ngIf",t.signaturesService.mobileMode))},directives:[UC,XB,mh,RC],pipes:[gE],styles:[".maarchLogo[_ngcontent-%COMP%]{top:50%;width:250px;height:auto}.maarchLogo[_ngcontent-%COMP%], .menu-button[_ngcontent-%COMP%]{position:absolute;left:50%;transform:translate(-50%,-50%)}.menu-button[_ngcontent-%COMP%]{top:60%}"]}),xq),Cq=function(e,t,n,i){return new(n||(n=Promise))(function(r,o){function a(e){try{l(i.next(e))}catch(t){o(t)}}function s(e){try{l(i.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((i=i.apply(e,t||[])).next())})};function Sq(e,t){if(1&e){var n=fs();ss(0,"ion-chip",25),ms("click",function(){nn(n);var e=ks().$implicit,t=ks().index;return ks().goToSignUserPage(t,e.page)}),Du(1,"translate"),ss(2,"ion-label"),Qs(3),ls(),ls()}if(2&e){var i=ks().$implicit,r=ks().index,o=ks();os("title",Ou(1,3,"lang.accessToPage")+" "+i.page)("color",r===o.currentUser&&i.page===o.currentPage?"primary":"medium"),xo(3),Xs(i.page)}}function Pq(e,t){if(1&e&&(cs(0),ns(1,Sq,4,5,"ion-chip",24),ds()),2&e){var n=t.$implicit,i=ks().index;xo(1),os("ngIf",n.sequence==i)}}function Eq(e,t){if(1&e&&(ss(0,"ion-segment-button",21),ss(1,"ion-label"),ss(2,"h2"),Qs(3),ls(),ss(4,"p",22),ns(5,Pq,2,1,"ng-container",7),ls(),ls(),us(6,"ion-icon",23),ls()),2&e){var n=t.$implicit,i=t.index,r=ks();os("value",i),xo(3),Xs(n.userDisplay),xo(2),os("ngForOf",r.signList),xo(1),os("name","sign"===n.mode?"pencil-outline":"checkmark-done-outline")}}var Dq=function(e,t){return{x:e,y:t}};function Oq(e,t){if(1&e){var n=fs();ss(0,"div",27),ms("movingOffset",function(){return nn(n),ks(2).dragging=!0})("endOffset",function(e){nn(n);var t=ks(2);return t.moveSign(e,t.i)})("click",function(){nn(n);var e=ks().$implicit,t=ks();return t.currentUser!=e.sequence&&t.goToSignUserPage(e.sequence,t.currentPage)}),ss(1,"ion-buttons",28),ss(2,"ion-button",29),ms("click",function(){nn(n);var e=ks().index;return ks().deleteSign(e)}),Du(3,"translate"),us(4,"ion-icon",30),ls(),ls(),ss(5,"span",31),Qs(6),ls(),Qs(7),Du(8,"uppercase"),Du(9,"translate"),ls()}if(2&e){var i=ks().$implicit,r=ks(),o=is(11);Ls("width",25,"%"),Fs("signDisabled",r.currentUser!==i.sequence)("hide",!r.pagesLoaded),os("position",Cu(20,Dq,i.position.positionX*r.workingAreaWidth/100,i.position.positionY*r.workingAreaHeight/100))("ngDraggable",r.currentUser===i.sequence)("preventDefaultEvent",!1)("bounds",o)("inBounds",!0),xo(2),os("title",Ou(3,14,"lang.delete")),xo(4),Xs(r.getUserName(i.sequence)),xo(1),Ks(" ",Ou(8,16,Ou(9,18,"lang.signature"))," ")}}function Mq(e,t){if(1&e&&(cs(0),ns(1,Oq,10,23,"div",26),ds()),2&e){var n=t.$implicit,i=ks();xo(1),os("ngIf",n.page===i.currentPage)}}function Tq(e,t){if(1&e){var n=fs();ss(0,"ion-button",32),ms("click",function(){return nn(n),ks().initSign()}),Qs(1),Du(2,"translate"),ls()}2&e&&(xo(1),Ks(" ",Ou(2,1,"lang.createSignaturePosition"),""))}function Iq(e,t){if(1&e&&(ss(0,"ion-select-option",33),Qs(1),ls()),2&e){var n=t.index;os("value",t.$implicit),xo(1),Xs(n+1)}}function Rq(e,t){if(1&e){var n=fs();ss(0,"ion-fab-button",36),ms("click",function(){nn(n);var e=ks(2);return e.changePage(e.currentPage-1)}),us(1,"ion-icon",37),ls()}}function Lq(e,t){if(1&e){var n=fs();ss(0,"ion-fab-button",38),ms("click",function(){nn(n);var e=ks(2);return e.changePage(e.currentPage+1)}),us(1,"ion-icon",39),ls()}}function Fq(e,t){if(1&e&&(cs(0),ns(1,Rq,2,0,"ion-fab-button",34),ns(2,Lq,2,0,"ion-fab-button",35),ds()),2&e){var n=ks();xo(1),os("ngIf",n.currentPage>1),xo(1),os("ngIf",n.currentPage<n.pages.length)}}var Bq,Vq,zq=((Vq=function(){function e(t,n,i,r,o,a){A(this,e),this.translate=t,this.http=n,this.signaturesService=i,this.pdfViewerService=r,this.modalController=o,this.loadingController=a,this.workflow=[],this.resource=[],this.pdfContent=null,this.loading=!1,this.dragging=!1,this.pages=[],this.currentUser=0,this.currentPage=1,this.currentSignature={positionX:0,positionY:0},this.workingAreaWidth=0,this.workingAreaHeight=0,this.signList=[],this.imgContent=null,this.load=null,this.pagesLoaded=!1}return m(e,[{key:"ngOnInit",value:function(){var e=this;this.loadingController.create({message:this.translate.instant("lang.processing"),spinner:"dots"}).then(function(t){e.load=t,e.load.present()}),this.resource.signPos&&this.initSignPos()}},{key:"initSignPos",value:function(){var e=this;this.workflow.forEach(function(t,n){var i;(null===(i=t.signaturePositions)||void 0===i?void 0:i.length)>0&&(e.signList=e.signList.concat(t.signaturePositions.filter(function(t){return t.mainDocument===e.resource.mainDocument}).map(function(e){return Object.assign(Object.assign({},e),{sequence:n})})))})}},{key:"onSubmit",value:function(){this.modalController.dismiss(this.formatData())}},{key:"onPagesLoaded",value:function(e){return Cq(this,void 0,void 0,regeneratorRuntime.mark(function t(){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:this.pages=Array.from({length:e.pagesCount}).map(function(e,t){return t+1}),this.changePage(1);case 1:case"end":return t.stop()}},t,this)}))}},{key:"exportAsImage",value:function(){return Cq(this,void 0,void 0,regeneratorRuntime.mark(function e(){var t;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.pdfViewerService.getPageAsImage(this.currentPage,{width:1e3});case 2:t=e.sent,this.getImageDimensions(t),this.imgContent=t,this.pagesLoaded=!0;case 4:case"end":return e.stop()}},e,this)}))}},{key:"getImageDimensions",value:function(e){var t=this,n=new Image;n.onload=function(e){t.workingAreaWidth=e.target.naturalWidth,t.workingAreaHeight=e.target.naturalHeight},n.src=e}},{key:"changePage",value:function(e){this.currentPage=e,this.exportAsImage()}},{key:"moveSign",value:function(e,t){var n=this,i=100*e.x/this.workingAreaWidth,r=100*e.y/this.workingAreaHeight;this.signList.filter(function(e){return e.sequence===n.currentUser&&e.page===n.currentPage})[0].position.positionX=i,this.signList.filter(function(e){return e.sequence===n.currentUser&&e.page===n.currentPage})[0].position.positionY=r,this.dragging=!1}},{key:"emptySign",value:function(){var e=this;return 0===this.signList.filter(function(t){return t.sequence===e.currentUser&&t.page===e.currentPage}).length}},{key:"initSign",value:function(){this.signList.push({sequence:this.currentUser,page:this.currentPage,position:{positionX:75,positionY:90}});var e=0;Array.from(document.getElementsByClassName("drag-scroll-content")).forEach(function(t,n){if(null!==t.offsetParent)return e=n,!0}),document.getElementsByClassName("drag-scroll-content")[e].scrollTop=this.workingAreaHeight}},{key:"getUserSignPosPage",value:function(e){return this.signList.filter(function(t){return t.sequence===e})}},{key:"selectUser",value:function(e){this.currentUser=+e}},{key:"getUserName",value:function(e){return this.workflow[e].userDisplay}},{key:"goToSignUserPage",value:function(e,t){this.currentUser=e,this.currentPage=t,this.exportAsImage()}},{key:"deleteSign",value:function(e){this.signList.splice(e,1)}},{key:"formatData",value:function(){var e=this,t=[];return this.workflow.forEach(function(n,i){e.signList.filter(function(e){return e.sequence===i}).length>0&&(t=t.concat(e.signList.filter(function(e){return e.sequence===i})))}),t}},{key:"imageLoaded",value:function(e){this.load.dismiss()}}]),e}()).\u0275fac=function(e){return new(e||Vq)(rs(pE),rs(lb),rs(PE),rs(mO),rs(cP),rs(lP))},Vq.\u0275cmp=ft({type:Vq,selectors:[["ng-component"]],inputs:{workflow:"workflow",resource:"resource",pdfContent:"pdfContent"},decls:37,vars:35,consts:[[3,"translucent"],["color","primary"],["color","warning","scrollable","",2,"justify-content","center",3,"value","ionChange"],["layout","icon-start",3,"value",4,"ngFor","ngForOf"],[2,"overflow","auto","height","100%","width","100%","margin","auto",3,"drag-disabled","drag-scroll-disabled"],["id","myBounds",2,"margin","auto","position","relative","box-shadow","0px 0px 5px 0px #656565"],["myBounds",""],[4,"ngFor","ngForOf"],[1,"img-content",3,"src","ionImgDidLoad"],["color","primary","style","position: fixed;top: 50%;left: 50%;transform: translate(-50%,-50%);font-size:20px;",3,"click",4,"ngIf"],[2,"display","none",3,"src","useBrowserLocale","textLayer","pdfLoaded"],[1,"page-info"],[1,"page-info-doc"],[1,"page-info-page",3,"click"],["interface","action-sheet","hidden","true",2,"max-height","30%",3,"cancelText","ionChange"],["pagesList",""],[3,"value",4,"ngFor","ngForOf"],[4,"ngIf"],[1,"ion-no-border","footer-buttons"],["type","button","color","primary","fill","outline","shape","round","size","large",3,"click"],["type","button","color","medium","fill","outline","shape","round","size","large",3,"click"],["layout","icon-start",3,"value"],[1,"chip-item-content"],[3,"name"],["class","chip-item","outline","",3,"title","color","click",4,"ngIf"],["outline","",1,"chip-item",3,"title","color","click"],["class","signature",3,"signDisabled","position","width","ngDraggable","preventDefaultEvent","bounds","inBounds","hide","movingOffset","endOffset","click",4,"ngIf"],[1,"signature",3,"position","ngDraggable","preventDefaultEvent","bounds","inBounds","movingOffset","endOffset","click"],[2,"position","absolute","top","-50px","right","0px"],["fill","clear","slot","icon-only","shape","round","size","small","color","danger",3,"title","click"],["slot","icon-only","name","trash-outline"],[1,"signUserName"],["color","primary",2,"position","fixed","top","50%","left","50%","transform","translate(-50%,-50%)","font-size","20px",3,"click"],[3,"value"],["class","paginate-left",3,"click",4,"ngIf"],["class","paginate-right",3,"click",4,"ngIf"],[1,"paginate-left",3,"click"],["name","chevron-back-outline"],[1,"paginate-right",3,"click"],["name","chevron-forward-outline"]],template:function(e,t){if(1&e){var n=fs();ss(0,"ion-header",0),ss(1,"ion-toolbar",1),ss(2,"ion-title"),Qs(3),Du(4,"translate"),ls(),ls(),ss(5,"ion-toolbar",1),ss(6,"ion-segment",2),ms("ionChange",function(e){return t.selectUser(e.detail.value)}),ns(7,Eq,7,4,"ion-segment-button",3),ls(),ls(),ls(),ss(8,"ion-content"),ss(9,"drag-scroll",4),ss(10,"div",5,6),ns(12,Mq,2,1,"ng-container",7),ss(13,"ion-img",8),ms("ionImgDidLoad",function(e){return t.imageLoaded(e)}),ls(),ns(14,Tq,3,3,"ion-button",9),ls(),ls(),ss(15,"ngx-extended-pdf-viewer",10),ms("pdfLoaded",function(e){return t.onPagesLoaded(e)}),ls(),ss(16,"section",11),ss(17,"div",12),Qs(18),ls(),ss(19,"div",13),ms("click",function(){nn(n);var e=is(23);return t.pages.length>1&&e.open()}),Qs(20),Du(21,"translate"),ls(),ss(22,"ion-select",14,15),ms("ionChange",function(e){return t.changePage(e.target.value)}),Du(24,"translate"),ns(25,Iq,2,2,"ion-select-option",16),ls(),ls(),ns(26,Fq,3,2,"ng-container",17),ls(),ss(27,"ion-footer",18),ss(28,"div"),ss(29,"ion-button",19),ms("click",function(){return t.onSubmit()}),ss(30,"ion-label"),Qs(31),Du(32,"translate"),ls(),ls(),ss(33,"ion-button",20),ms("click",function(){return t.modalController.dismiss()}),ss(34,"ion-label"),Qs(35),Du(36,"translate"),ls(),ls(),ls(),ls()}2&e&&(os("translucent",!0),xo(3),Xs(Ou(4,25,"lang.adminSignaturesPositions")),xo(3),os("value",t.currentUser),xo(1),os("ngForOf",t.workflow),xo(2),os("drag-disabled",t.dragging&&!t.signaturesService.mobileMode)("drag-scroll-disabled",t.dragging&&t.signaturesService.mobileMode),xo(1),Ls("width",t.workingAreaWidth,"px")("height",t.workingAreaHeight,"px"),xo(2),os("ngForOf",t.signList),xo(1),os("src",t.imgContent),xo(1),os("ngIf",t.emptySign()),xo(1),os("src",t.pdfContent)("useBrowserLocale",!0)("textLayer",!1),xo(3),Xs(t.resource.title),xo(2),$s("",Ou(21,27,"lang.page")," ",t.currentPage," / ",t.pages.length,""),xo(2),os("cancelText",Ou(24,29,"lang.cancel")),xo(3),os("ngForOf",t.pages),xo(1),os("ngIf",t.pages.length>1),xo(5),Xs(Ou(32,31,"lang.save")),xo(4),Xs(Ou(36,33,"lang.cancel")))},directives:[XC,DS,PS,wS,tA,gh,UC,kM,JC,mh,vO,kS,ZC,RC,aS,_S,KC,HC,SM,LC,xS,qC],pipes:[gE,Uh],styles:[".containerMobile[_ngcontent-%COMP%]{flex-direction:column}.containerMobile[_ngcontent-%COMP%]   .signPosForm[_ngcontent-%COMP%]{flex:none!important;height:auto}.containerMobile[_ngcontent-%COMP%]   .signatureContainer[_ngcontent-%COMP%], .signPosForm[_ngcontent-%COMP%]{flex:1}.signatureContainer[_ngcontent-%COMP%]{position:relative;overflow:auto;width:1050px;display:flex;justify-content:center}.posSignButton[_ngcontent-%COMP%]{position:-webkit-sticky;position:sticky;top:0;left:50%;transform:translateX(-50%)}.signature[_ngcontent-%COMP%]{z-index:2;position:absolute;border:1px dashed var(--ion-color-danger);background:rgba(var(--ion-color-danger-rgb),.6) none repeat scroll 0 0;font-weight:700;font-size:20px;color:#fff;height:110px;display:flex;align-items:center;justify-content:center}.signDisabled[_ngcontent-%COMP%]{z-index:1;opacity:.2;cursor:pointer}.signUserName[_ngcontent-%COMP%]{position:absolute;font-size:12px;bottom:20px;font-weight:400;color:#fff;font-style:italic}.chip-item-content[_ngcontent-%COMP%]{z-index:9999;position:absolute;margin:0;bottom:0}.chip-item[_ngcontent-%COMP%]{font-size:7px;width:15px;height:15px;padding:0;margin:0 5px;color:#fff;border-color:#fff;justify-content:center}img[_ngcontent-%COMP%]{pointer-events:none}.paginate-left[_ngcontent-%COMP%]{left:20px}.paginate-left[_ngcontent-%COMP%], .paginate-right[_ngcontent-%COMP%]{position:absolute;top:40%;transform:translateY(-50%);--background:hsla(0,0%,77.6%,0.5019607843137255);--color:#666}.paginate-right[_ngcontent-%COMP%]{right:20px}.page-info[_ngcontent-%COMP%]{position:absolute;bottom:70px;height:30px;width:auto;max-width:70%;color:rgba(var(--ion-color-dark-rgb),.8);font-size:12px;font-weight:300;line-height:30px;display:flex;align-items:center;justify-content:center;opacity:.5;left:50%;transform:translateX(-50%);font-weight:500;transition:all .3s ease-in-out;z-index:9999}.page-info-doc[_ngcontent-%COMP%]{max-width:80%;background-color:#f1f4f4;border-radius:14px;padding:0 20px;z-index:1;white-space:pre;overflow:hidden;text-overflow:ellipsis}.page-info-page[_ngcontent-%COMP%]{cursor:pointer;text-align:center;border-radius:0 14px 14px 0;padding:0 20px;background:#fff;border:1px solid #ecf0f1;margin-left:-15px;height:28px;white-space:pre;display:flex;align-items:center}.page-info[_ngcontent-%COMP%]:hover{opacity:1}.hide[_ngcontent-%COMP%]{display:none}"]}),Vq),Nq=((Bq=function(){function e(){A(this,e),this.fileDropped=new Fu,this.disabled=!1,this.background="none",this.opacity="1"}return m(e,[{key:"onDragOver",value:function(e){this.disabled||(e.preventDefault(),e.stopPropagation(),this.background="#9ecbec",this.opacity="0.8")}},{key:"onDragLeave",value:function(e){this.disabled||(e.preventDefault(),e.stopPropagation(),this.background="rgba(255,255,255,0)",this.opacity="1")}},{key:"ondrop",value:function(e){if(!this.disabled){e.preventDefault(),e.stopPropagation(),this.background="rgba(255,255,255,0)",this.opacity="1";var t=e.dataTransfer.files;t.length>0&&this.fileDropped.emit(t)}}}]),e}()).\u0275fac=function(e){return new(e||Bq)},Bq.\u0275dir=bt({type:Bq,selectors:[["","appUploadFileDragDrop",""]],hostVars:4,hostBindings:function(e,t){1&e&&ms("dragover",function(e){return t.onDragOver(e)})("dragleave",function(e){return t.onDragLeave(e)})("drop",function(e){return t.ondrop(e)}),2&e&&Ls("background-color",t.background)("opacity",t.opacity)},inputs:{disabled:"disabled"},outputs:{fileDropped:"fileDropped"}}),Bq),Hq=function(e,t,n,i){return new(n||(n=Promise))(function(r,o){function a(e){try{l(i.next(e))}catch(t){o(t)}}function s(e){try{l(i.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((i=i.apply(e,t||[])).next())})},jq=["appVisaWorkflow"],Uq=["rightContent"],Wq=["docToUpload"];function Gq(e,t){1&e&&us(0,"ion-icon",34)}function qq(e,t){1&e&&us(0,"ion-icon",35)}function Yq(e,t){1&e&&us(0,"i",36)}function Zq(e,t){if(1&e){var n=fs();ss(0,"ion-item"),ss(1,"ion-buttons",2),ss(2,"ion-button",22),ms("click",function(){var e=t.$implicit;return e.mainDocument=!e.mainDocument}),Du(3,"translate"),Du(4,"translate"),ns(5,Gq,1,0,"ion-icon",23),ns(6,qq,1,0,"ion-icon",24),ls(),ls(),ss(7,"ion-item",25),ss(8,"ion-label",26),Qs(9),Du(10,"translate"),ls(),ss(11,"ion-input",27),ms("ngModelChange",function(e){return t.$implicit.reference=e}),Du(12,"translate"),ls(),ls(),ss(13,"ion-item",25),ss(14,"ion-label",26),Qs(15),Du(16,"translate"),ls(),ss(17,"ion-input",28),ms("ngModelChange",function(e){return t.$implicit.title=e}),Du(18,"translate"),ls(),ls(),ss(19,"ion-buttons",5),ss(20,"ion-button",29),ms("click",function(){nn(n);var e=t.index;return ks(2).signPos(e)}),Du(21,"translate"),ns(22,Yq,1,0,"i",30),us(23,"ion-icon",31),ls(),ss(24,"ion-button",32),ms("click",function(){nn(n);var e=t.index;return ks(2).deleteFile(e)}),Du(25,"translate"),us(26,"ion-icon",33),ls(),ls(),ls()}if(2&e){var i=t.$implicit,r=t.index,o=ks(2);xo(2),os("title",i.mainDocument?Ou(3,15,"lang.docToSign"):Ou(4,17,"lang.attachDocToSign")),xo(3),os("ngIf",i.mainDocument),xo(1),os("ngIf",!i.mainDocument),xo(3),Xs(Ou(10,19,"lang.reference")),xo(2),Ss("placeholder",Ou(12,21,"lang.fileReference")),os("maxlength",53)("ngModel",i.reference)("disabled",!i.mainDocument),xo(4),Ks("",Ou(16,23,"lang.subject")," *"),xo(2),Ss("placeholder",Ou(18,25,"lang.filename")),os("ngModel",i.title),xo(3),os("disabled",!i.mainDocument)("title",Ou(21,27,"lang.setSignaturesPosition")),xo(2),os("ngIf",void 0!==o.filesToUpload[r].signPos&&o.filesToUpload[r].signPos.length>0),xo(2),os("title",Ou(25,29,"lang.delete"))}}function Qq(e,t){if(1&e&&(ss(0,"ion-list"),ss(1,"ion-list-header"),ss(2,"ion-label",1),Qs(3),Du(4,"translate"),ls(),ls(),ns(5,Zq,27,31,"ion-item",21),ls()),2&e){var n=ks();xo(3),Xs(Ou(4,2,"lang.documentsToUpload")),xo(2),os("ngForOf",n.filesToUpload)}}function Xq(e,t){1&e&&us(0,"app-visa-workflow",37,38),2&e&&os("editMode",!0)}var Kq,Jq=((Kq=function(){function e(t,n,i,r,o,a,s,l,u,c,d,h){A(this,e),this.http=t,this.translate=n,this.router=i,this.menu=r,this.signaturesService=o,this.viewContainerRef=a,this.notificationService=s,this.authService=l,this.loadingController=u,this.alertController=c,this.datePipe=d,this.modalController=h,this.loading=!1,this.filesToUpload=[],this.errors=[],this.fromDocument=null}return m(e,[{key:"ngOnInit",value:function(){}},{key:"ionViewWillEnter",value:function(){this.menu.enable(!0,"left-menu"),this.menu.enable(!0,"right-menu"),this.filesToUpload=[],this.signaturesService.initTemplate(this.rightContent,this.viewContainerRef,"rightContent"),void 0!==window.history.state.documentId&&(this.fromDocument=window.history.state.documentId,this.getDocumentData(this.fromDocument))}},{key:"getDocumentData",value:function(e){var t=this;return new Promise(function(n){t.http.get("../rest/documents/"+e).pipe(uw(function(i){var r="",o=i.document.reference.split("/");(o=o.slice(3,o.length)).length>0&&(r=o.join("/")),t.filesToUpload.push({title:i.document.title,reference:r,mainDocument:!0,content:"",linkId:i.document.linkId,metadata:i.document.metadata}),t.getDocumentContent(e),t.appVisaWorkflow.loadWorkflow(i.document.workflow.map(function(e){return e.userSignatureModes.unshift("visa"),Object.assign(Object.assign({},e),{processDate:null,current:!1,role:"visa"===e.mode?"visa":e.signatureMode,modes:e.userSignatureModes})}));for(var a=0;a<i.document.attachments.length;a++)t.getAttachment(i.document.attachments[a].id);n(!0)}),Zb(function(e){return t.notificationService.handleErrors(e),Ty(!1)})).subscribe()})}},{key:"getDocumentContent",value:function(e){var t=this;return new Promise(function(n){t.http.get("../rest/documents/".concat(e,"/content?type=original")).pipe(uw(function(e){t.filesToUpload[0].content=e.encodedDocument,n(!0)}),Zb(function(e){return t.notificationService.handleErrors(e),Ty(!1)})).subscribe()})}},{key:"getAttachment",value:function(e){var t=this;return new Promise(function(n){t.http.get("../rest/attachments/"+e).pipe(uw(function(e){t.filesToUpload.push({title:e.attachment.title,mainDocument:!1,content:e.attachment.encodedDocument}),n(!0)}),Zb(function(e){return t.notificationService.handleErrors(e),Ty(!1)})).subscribe()})}},{key:"ionViewWillLeave",value:function(){this.signaturesService.detachTemplate("rightContent")}},{key:"onSubmit",value:function(){this.isValid()&&this.promptSaveDoc()}},{key:"promptSaveDoc",value:function(){return Hq(this,void 0,void 0,regeneratorRuntime.mark(function e(){var t,n=this;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.alertController.create({cssClass:"alert-info-no-msg",header:this.translate.instant("lang.areYouSure"),inputs:[{name:"note",id:"note",type:"textarea",placeholder:this.translate.instant("lang.addNote")}],buttons:[{text:this.translate.instant("lang.cancel"),role:"cancel",cssClass:"secondary",handler:function(){}},{text:this.translate.instant("lang.validate"),handler:function(e){n.loadingController.create({message:n.translate.instant("lang.processing"),spinner:"dots"}).then(function(t){return Hq(n,void 0,void 0,regeneratorRuntime.mark(function n(){var i,r;return regeneratorRuntime.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:t.present(),i=this.formatData(e.note),r=0;case 3:if(!(r<i.length)){n.next=9;break}return n.next=6,this.saveDocument(i[r],r);case 6:r++,n.next=3;break;case 9:t.dismiss(),0===this.errors.length&&(this.notificationService.success("lang.documentsImported"),this.router.navigate(["/home"]));case 10:case"end":return n.stop()}},n,this)}))})}}]});case 2:return t=e.sent,e.next=5,t.present();case 5:case"end":return e.stop()}},e,this)}))}},{key:"saveDocument",value:function(e,t){var n=this;return new Promise(function(t){n.http.post("../rest/documents",e).pipe(uw(function(){n.errors=[]}),hw(function(){return t(!0)}),Zb(function(t){return n.errors.push(e.title),n.notificationService.handleErrors(t),Ty(!1)})).subscribe()})}},{key:"formatData",value:function(e){var t=this,n=new Date,i=null,r=null;""!==e&&(i={value:e,creator:"".concat(this.authService.user.firstname," ").concat(this.authService.user.lastname),creationDate:this.datePipe.transform(n,"dd-MM-y")});var o=[],a=this.filesToUpload.filter(function(e){return e.mainDocument}),s=this.filesToUpload.filter(function(e){return!e.mainDocument});return a.length>1&&(r=this.datePipe.transform(n,"ddMMYhmmss")+"_"+Math.random().toString(36).substr(2,9)),a.forEach(function(e){var a={};null!==t.fromDocument&&e.metadata.forEach(function(e){a[e.label]=e.value});var l="";""!==e.reference&&(l=t.datePipe.transform(n,"y/MM/dd")+"/"+e.reference),o.push({title:e.title,reference:l,encodedDocument:e.content,isZipped:!1,linkId:null!==t.fromDocument?e.linkId:r,sender:"".concat(t.authService.user.firstname," ").concat(t.authService.user.lastname),notes:i,attachments:s.map(function(e){return{title:e.title,encodedDocument:e.content}}),workflow:t.appVisaWorkflow.getCurrentWorkflow().map(function(n,i){return{userId:n.userId,mode:t.authService.getWorkflowMode(n.role),signatureMode:t.authService.getSignatureMode(n.role),signaturePositions:void 0!==n.signaturePositions?t.formatPositions(n.signaturePositions.filter(function(t){return t.mainDocument===e.mainDocument&&void 0!==e.signPos})).map(function(e){return{page:e.page,positionX:e.position.positionX,positionY:e.position.positionY}}):[]}}),metadata:a})}),o}},{key:"formatPositions",value:function(e){return delete e.mainDocument,e}},{key:"dndUploadFile",value:function(e){this.uploadTrigger({target:{files:[e[0]]}})}},{key:"uploadTrigger",value:function(e){var t=this;if(e.target.files&&e.target.files[0]&&this.isExtensionAllowed(e.target.files)){for(var n=function(n){var i=e.target.files[n].name,r={title:i.substr(0,i.lastIndexOf(".")),reference:i.substr(0,i.lastIndexOf(".")).substr(0,53),mainDocument:!0,content:""},o=new FileReader;o.readAsArrayBuffer(e.target.files[n]),o.onload=function(e){r.mainDocument=0===t.filesToUpload.length,r.reference=0===t.filesToUpload.length?r.reference:"",r.content=t.getBase64Document(e.target.result),t.filesToUpload.push(r),1===t.filesToUpload.length&&setTimeout(function(){t.menu.open("right-menu")},500)}},i=0;i<e.target.files.length;i++)n(i);this.fileImport.nativeElement.value=""}else this.loading=!1}},{key:"isExtensionAllowed",value:function(e){for(var t=0;t<e.length;t++)if("pdf"!==e[t].name.toLowerCase().split(".").pop())return this.notificationService.error("lang.onlyPdfAuthorized"),!1;return!0}},{key:"getBase64Document",value:function(e){var t=new Uint8Array(e).reduce(function(e,t){return e+String.fromCharCode(t)},"");return btoa(t)}},{key:"deleteFile",value:function(e){this.filesToUpload.splice(e,1)}},{key:"signPos",value:function(e){return Hq(this,void 0,void 0,regeneratorRuntime.mark(function t(){var n,i,r,o=this;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(!(this.appVisaWorkflow.getCurrentWorkflow().length>0)){t.next=14;break}return this.appVisaWorkflow.getCurrentWorkflow().forEach(function(e,t){void 0===e.signaturePositions&&(o.appVisaWorkflow.visaWorkflow[t].signaturePositions=[])}),t.next=4,this.modalController.create({component:zq,cssClass:"custom-alert-fullscreen",componentProps:{workflow:this.appVisaWorkflow.getCurrentWorkflow(),resource:this.filesToUpload[e],pdfContent:"data:application/pdf;base64,"+this.filesToUpload[e].content}});case 4:return n=t.sent,t.next=7,n.present();case 7:return t.next=9,n.onWillDismiss();case 9:i=t.sent,void 0!==(r=i.data)&&(this.filesToUpload[e].signPos=r,this.appVisaWorkflow.setPositionsWorkfow(this.filesToUpload[e],r)),t.next=15;break;case 14:this.notificationService.error("lang.mustSetWorkflowBeforeSignPositions");case 15:case"end":return t.stop()}},t,this)}))}},{key:"isValid",value:function(){return this.filesToUpload.filter(function(e){return""===e.title}).length>0?(this.notificationService.error("lang.subjectMandatory"),!1):0===this.filesToUpload.filter(function(e){return e.mainDocument}).length?(this.notificationService.error("lang.mainDocumentMandatory"),!1):0!==this.appVisaWorkflow.getCurrentWorkflow().length||(this.notificationService.error("lang.workflowUserstMandatory"),this.menu.open("right-menu"),!1)}}]),e}()).\u0275fac=function(e){return new(e||Kq)(rs(lb),rs(pE),rs(jk),rs(uP),rs(PE),rs(uu),rs(yE),rs(DE),rs(lP),rs(sP),rs(Wh),rs(cP))},Kq.\u0275cmp=ft({type:Kq,selectors:[["ng-component"]],viewQuery:function(e,t){var n;1&e&&(Qu(jq,1),Qu(Uq,3),Qu(Wq,1)),2&e&&(Zu(n=Ku())&&(t.appVisaWorkflow=n.first),Zu(n=Ku())&&(t.rightContent=n.first),Zu(n=Ku())&&(t.fileImport=n.first))},features:[yl([Wh])],decls:31,vars:14,consts:[[3,"translucent"],["color","primary"],["slot","start"],["menu","left-menu"],[1,"ion-text-center"],["slot","end"],["menu","right-menu"],["name","list-outline"],[2,"display","flex","flex-direction","column","height","100%"],[4,"ngIf"],["type","file","name","files[]","multiple","","accept","application/pdf",2,"display","none",3,"change"],["docToUpload",""],["appUploadFileDragDrop","",1,"dnd-area",3,"fileDropped"],["fill","outline","color","medium","size","large",3,"click"],["lines","none",1,"ion-text-center","no-background"],["color","medium"],[1,"ion-no-border"],[1,"ion-text-center",2,"background","white"],["color","primary","shape","round","size","large","fill","outline",3,"click"],[2,"font-size","13px"],["rightContent",""],[4,"ngFor","ngForOf"],["fill","clear","slot","icon-only","shape","round","color","primary",3,"title","click"],["slot","icon-only","name","pencil-outline",4,"ngIf"],["slot","icon-only","name","document-attach-outline",4,"ngIf"],[2,"width","100%"],["position","floating","color","secondary"],["matInput","","type","text",3,"placeholder","maxlength","ngModel","disabled","ngModelChange"],["matInput","","type","text",3,"placeholder","ngModel","ngModelChange"],["fill","clear","slot","icon-only","shape","round","color","primary",3,"disabled","title","click"],["class","badge-sign-pos",4,"ngIf"],["slot","icon-only","name","contract-outline"],["fill","clear","slot","icon-only","shape","round","color","danger",3,"title","click"],["slot","icon-only","name","trash-outline"],["slot","icon-only","name","pencil-outline"],["slot","icon-only","name","document-attach-outline"],[1,"badge-sign-pos"],[2,"display","contents",3,"editMode"],["appVisaWorkflow",""]],template:function(e,t){if(1&e){var n=fs();ss(0,"ion-header",0),ss(1,"ion-toolbar",1),ss(2,"ion-buttons",2),us(3,"ion-menu-button",3),ls(),ss(4,"ion-title",4),Qs(5),Du(6,"translate"),ls(),ss(7,"ion-buttons",5),ss(8,"ion-menu-button",6),us(9,"ion-icon",7),ls(),ls(),ls(),ls(),ss(10,"ion-content"),ss(11,"div",8),ns(12,Qq,6,4,"ion-list",9),ss(13,"input",10,11),ms("change",function(e){return t.uploadTrigger(e)}),ls(),ss(15,"div",12),ms("fileDropped",function(e){return t.dndUploadFile(e)}),ss(16,"ion-button",13),ms("click",function(){return nn(n),is(14).click()}),Qs(17),Du(18,"translate"),ls(),ss(19,"ion-item",14),ss(20,"ion-label",15),Qs(21),Du(22,"translate"),ls(),ls(),ls(),ls(),ls(),ss(23,"ion-footer",16),ss(24,"div",17),ss(25,"ion-button",18),ms("click",function(){return t.onSubmit()}),ss(26,"ion-label",19),Qs(27),Du(28,"translate"),ls(),ls(),ls(),ls(),ns(29,Xq,2,1,"ng-template",null,20,tc)}2&e&&(os("translucent",!0),xo(5),Xs(Ou(6,6,"lang.newDocumentToVisa")),xo(7),os("ngIf",t.filesToUpload.length>0),xo(5),Ks(" ",Ou(18,8,"lang.chooseDocuments")," "),xo(4),Ks(" ",Ou(22,10,"lang.dndDocuments")," "),xo(6),Xs(Ou(28,12,"lang.validate")))},directives:[XC,DS,LC,cS,PS,KC,UC,mh,Nq,RC,nS,aS,ZC,sS,lS,gh,tS,nA,Cy,hm,Ym,EW],pipes:[gE],styles:[".dnd-area[_ngcontent-%COMP%]{border:5px dashed;margin:20px;text-align:center;color:grey;padding:50px 10px;flex:1;align-items:center;display:flex;flex-direction:column;justify-content:center}.no-background[_ngcontent-%COMP%]{--background:none} .alert-info-no-msg .alert-message{display:none} .alert-info-no-msg .alert-title{color:var(--ion-color-primary)}.badge-sign-pos[_ngcontent-%COMP%]{width:10px;height:10px;background:var(--ion-color-danger);position:absolute;top:0;right:0;border-radius:5px}"]}),Kq),$q=["searchInput"];function eY(e,t){if(1&e){var n=fs();ss(0,"ion-searchbar",6,7),ms("ngModelChange",function(e){return nn(n),ks().searchValue=e})("ionChange",function(e){return nn(n),ks().getDatas(e)}),Du(2,"translate"),ls()}2&e&&os("ngModel",ks().searchValue)("placeholder",Ou(2,2,"lang.search"))}function tY(e,t){if(1&e){var n=fs();ss(0,"ion-item"),ss(1,"ion-checkbox",10),ms("ionChange",function(e){return nn(n),ks(2).selectItem(e.detail.value)}),ls(),ss(2,"ion-label"),Qs(3),ls(),ss(4,"ion-note",11),Qs(5),ls(),ls()}if(2&e){var i=t.$implicit;xo(1),os("value",i),xo(2),Js("",i.firstname," ",i.lastname,""),xo(2),Xs(i.email)}}function nY(e,t){if(1&e&&(ss(0,"ion-list",8),ns(1,tY,6,4,"ion-item",9),ls()),2&e){var n=ks();xo(1),os("ngForOf",n.itemList)}}function iY(e,t){1&e&&(ss(0,"ion-label",12),Qs(1),Du(2,"translate"),ls()),2&e&&(xo(1),Xs(Ou(2,1,"lang.noItem")))}function rY(e,t){if(1&e){var n=fs();ss(0,"ion-chip",13),ms("click",function(){nn(n);var e=t.index;return ks().removeItem(e)}),ss(1,"ion-label",14),Qs(2),ls(),us(3,"ion-icon",15),ls()}if(2&e){var i=t.$implicit;xo(2),Js("",i.firstname," ",i.lastname,"")}}function oY(e,t){if(1&e){var n=fs();ss(0,"ion-buttons",11),ss(1,"ion-button",16),ms("click",function(){return nn(n),ks().toggleEdit()}),ss(2,"ion-label",17),Qs(3),Du(4,"translate"),ls(),ls(),ls()}2&e&&(xo(3),Xs(Ou(4,1,"lang.edit")))}var aY,sY=((aY=function(){function e(t,n){A(this,e),this.http=t,this.notificationService=n,this.currentItems=[],this.selectedOpt=new Fu,this.myControl=new zm,this.loading=!1,this.searchValue="",this.editMode=!1,this.itemList=[]}return m(e,[{key:"ngOnInit",value:function(){}},{key:"getDatas",value:function(e){var t=this;""===e.detail.value?this.itemList=[]:this.http.get("../rest/autocomplete/users?search="+e.detail.value).pipe(uw(function(e){t.itemList=e}),Zb(function(e){return t.notificationService.handleErrors(e),Ty(!1)})).subscribe()}},{key:"selectItem",value:function(e){this.currentItems.push(e),this.searchValue="",this.itemList=[],this.editMode=!1,this.selectedOpt.emit(e)}},{key:"removeItem",value:function(e){this.currentItems.splice(e,1)}},{key:"toggleEdit",value:function(){var e=this;this.editMode=!this.editMode,this.editMode&&setTimeout(function(){e.searchInput.setFocus()},0)}}]),e}()).\u0275fac=function(e){return new(e||aY)(rs(lb),rs(yE))},aY.\u0275cmp=ft({type:aY,selectors:[["plugin-autocomplete"]],viewQuery:function(e,t){var n;1&e&&Qu($q,1),2&e&&Zu(n=Ku())&&(t.searchInput=n.first)},inputs:{currentItems:"currentItems",singleMode:"singleMode",required:"required",options:["datas","options"],routeDatas:"routeDatas",placeholder:["labelPlaceholder","placeholder"],key:["targetSearchKey","key"],subInfoKey:"subInfoKey"},outputs:{selectedOpt:"triggerEvent"},decls:8,vars:5,consts:[[3,"ngModel","placeholder","ngModelChange","ionChange",4,"ngIf"],["class","item-list",4,"ngIf"],["lines","none"],["color","medium","style","font-style: italic;",4,"ngIf"],["style","height: auto;",3,"click",4,"ngFor","ngForOf"],["slot","end",4,"ngIf"],[3,"ngModel","placeholder","ngModelChange","ionChange"],["searchInput",""],[1,"item-list"],[4,"ngFor","ngForOf"],["color","primary","slot","start",3,"value","ionChange"],["slot","end"],["color","medium",2,"font-style","italic"],[2,"height","auto",3,"click"],[1,"ion-text-wrap"],["name","close-circle"],["size","small",3,"click"],["color","medium"]],template:function(e,t){1&e&&(ns(0,eY,3,4,"ion-searchbar",0),ns(1,nY,2,1,"ion-list",1),ss(2,"ion-list"),ss(3,"ion-item",2),ns(4,iY,3,3,"ion-label",3),ss(5,"p"),ns(6,rY,4,2,"ion-chip",4),ls(),ns(7,oY,5,3,"ion-buttons",5),ls(),ls()),2&e&&(os("ngIf",t.editMode),xo(1),os("ngIf",t.itemList.length>0),xo(3),os("ngIf",0===t.currentItems.length),xo(2),os("ngForOf",t.currentItems),xo(1),os("ngIf",!t.editMode))},directives:[mh,sS,nS,gh,bS,nA,hm,Ym,NC,Jx,aS,hS,HC,KC,LC,RC],pipes:[gE],styles:[""]}),aY),lY=function(e,t,n,i){return new(n||(n=Promise))(function(r,o){function a(e){try{l(i.next(e))}catch(t){o(t)}}function s(e){try{l(i.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((i=i.apply(e,t||[])).next())})},uY=["appVisaWorkflow"],cY=["rightContent"];function dY(e,t){1&e&&us(0,"ion-icon",26)}function hY(e,t){1&e&&us(0,"ion-icon",27)}function fY(e,t){1&e&&us(0,"ion-icon",28)}function pY(e,t){if(1&e){var n=fs();ss(0,"ion-chip",21),ms("click",function(){nn(n);var e=ks().$implicit;return ks(2).removeFilter(e)}),Du(1,"translate"),ns(2,dY,1,0,"ion-icon",22),ns(3,hY,1,0,"ion-icon",23),ns(4,fY,1,0,"ion-icon",24),ss(5,"ion-label"),Qs(6),ls(),us(7,"ion-icon",25),ls()}if(2&e){var i=ks().$implicit;os("title",Ou(1,5,"lang."+i.id+"Search")),xo(2),os("ngIf","title"===i.id),xo(1),os("ngIf","reference"===i.id),xo(1),os("ngIf","documentId"===i.id),xo(2),Xs(i.val)}}function gY(e,t){if(1&e){var n=fs();ss(0,"ion-chip",21),ms("click",function(){nn(n);var e=t.$implicit,i=ks(2).$implicit;return ks(2).removeFilter(i,e.id)}),Du(1,"translate"),us(2,"ion-icon",30),ss(3,"ion-label"),Qs(4),Du(5,"translate"),ls(),us(6,"ion-icon",25),ls()}if(2&e){var i=t.$implicit;os("title",Ou(1,2,"lang.workflowStatesSearch")),xo(4),Xs(Ou(5,4,i.label))}}function vY(e,t){if(1&e&&(ss(0,"div"),ns(1,gY,7,6,"ion-chip",29),ls()),2&e){var n=ks().$implicit;xo(1),os("ngForOf",n.val)}}function mY(e,t){if(1&e){var n=fs();ss(0,"ion-chip",21),ms("click",function(){nn(n);var e=t.$implicit,i=ks(2).$implicit;return ks(2).removeFilter(i,e)}),Du(1,"translate"),us(2,"ion-icon",31),ss(3,"ion-label"),Qs(4),ls(),us(5,"ion-icon",25),ls()}if(2&e){var i=t.$implicit;os("title",Ou(1,3,"lang.workflowUsersSearch")),xo(4),Js("",i.firstname," ",i.lastname,"")}}function yY(e,t){if(1&e&&(ss(0,"div"),ns(1,mY,6,5,"ion-chip",29),ls()),2&e){var n=ks().$implicit;xo(1),os("ngForOf",n.val)}}function bY(e,t){if(1&e&&(ss(0,"div"),ns(1,pY,8,7,"ion-chip",20),ns(2,vY,2,1,"div",10),ns(3,yY,2,1,"div",10),ls()),2&e){var n=t.$implicit;xo(1),os("ngIf",("title"===n.id||"reference"===n.id||"documentId"===n.id)&&""!==n.val),xo(1),os("ngIf","workflowStates"===n.id&&n.val.length>0),xo(1),os("ngIf","workflowUsers"===n.id&&n.val.length>0)}}function wY(e,t){if(1&e){var n=fs();ss(0,"ion-toolbar",14),ss(1,"div",15),ss(2,"ion-button",16),ms("click",function(){return nn(n),ks().clearFilters()}),Du(3,"translate"),us(4,"ion-icon",17),ls(),ss(5,"div",18),ns(6,bY,4,3,"div",19),ls(),ls(),ls()}if(2&e){var i=ks();xo(2),os("title",Ou(3,2,"lang.clearFilters")),xo(4),os("ngForOf",i.currentFilters)}}function _Y(e,t){1&e&&(ss(0,"ion-list",32),ss(1,"ion-item",33),ss(2,"ion-label",34),Qs(3),Du(4,"translate"),ls(),ls(),ls()),2&e&&(xo(3),Xs(Ou(4,1,"lang.noResult")))}function kY(e,t){1&e&&us(0,"ion-icon",57)}function xY(e,t){1&e&&us(0,"ion-icon",58)}function AY(e,t){1&e&&us(0,"ion-icon",59)}function CY(e,t){if(1&e&&(ss(0,"ion-badge",60),Qs(1),Du(2,"translate"),ls()),2&e){var n=ks().$implicit;xo(1),Xs(Ou(2,1,"lang."+n.mode+"User"))}}var SY=function(){return["END","STOP"]};function PY(e,t){if(1&e&&(cs(0),ns(1,kY,1,0,"ion-icon",52),ss(2,"span",53),Qs(3),Du(4,"translate"),ns(5,xY,1,0,"ion-icon",54),ns(6,AY,1,0,"ion-icon",55),ns(7,CY,3,3,"ion-badge",56),ls(),ds()),2&e){var n=t.$implicit,i=t.index,r=ks(3);xo(1),os("ngIf",i>0),xo(1),Fs("success",null!==n.processDate&&"STOP"!==n.status)("typist-interrupt","REF"===n.status)("interrupt",null===n.processDate&&"END"===n.status||"STOP"===n.status)("current",n.current)("no-visa",null===n.processDate&&null===n.status&&!n.current),xo(1),Ks("",r.functionsService.empty(n.userDisplay)?Ou(4,15,"lang.userDeleted"):n.userDisplay,"\xa0 "),xo(2),os("ngIf",null!==n.processDate&&"REF"!==n.status&&"STOP"!==n.status),xo(1),os("ngIf",null!==n.processDate&&"REF"===n.status),xo(1),os("ngIf",null===n.processDate&&(null===n.status||xu(17,SY).indexOf(n.status)>-1))}}function EY(e,t){1&e&&us(0,"ion-icon",61)}function DY(e,t){1&e&&us(0,"ion-icon",62)}function OY(e,t){1&e&&us(0,"ion-icon",63)}function MY(e,t){1&e&&us(0,"ion-icon",64)}function TY(e,t){if(1&e&&(cs(0),us(1,"ion-icon",66),Qs(2),ds()),2&e){var n=t.$implicit;xo(2),Ks(" ",n," ")}}function IY(e,t){if(1&e&&(ss(0,"p",65),ns(1,TY,3,1,"ng-container",19),ls()),2&e){var n=ks().$implicit;xo(1),os("ngForOf",n.reason)}}function RY(e,t){if(1&e){var n=fs();ss(0,"ion-button",67),ms("click",function(e){nn(n);var t=ks().$implicit,i=is(7),r=ks(2);return e.stopPropagation(),r.toggleSlide(i,t.id)}),us(1,"ion-icon",68),ls()}}function LY(e,t){if(1&e){var n=fs();ss(0,"ion-button",67),ms("click",function(e){nn(n);var t=ks().$implicit,i=is(7),r=ks(2);return e.stopPropagation(),r.toggleSlide(i,t.id)}),us(1,"ion-icon",69),ls()}}function FY(e,t){if(1&e){var n=fs();ss(0,"ion-item-option",50),ms("click",function(){nn(n);var e=ks().$implicit;return ks(2).openPromptProof(e)}),us(1,"ion-icon",70),Qs(2),Du(3,"translate"),ls()}2&e&&(xo(2),Ks(" ",Ou(3,1,"lang.download")," "))}function BY(e,t){if(1&e){var n=fs();ss(0,"ion-item"),ss(1,"ion-label"),ss(2,"ion-toolbar",37),ss(3,"ion-title",38),ss(4,"p",39),ns(5,PY,8,18,"ng-container",19),ls(),ls(),ls(),ss(6,"ion-item-sliding",40,41),ms("ionDrag",function(e){nn(n);var i=t.$implicit;return ks(2).onSliding(e,i.id)}),ss(8,"ion-item",33),ns(9,EY,1,0,"ion-icon",42),ns(10,DY,1,0,"ion-icon",43),ns(11,OY,1,0,"ion-icon",44),ns(12,MY,1,0,"ion-icon",45),ss(13,"ion-label",46),ms("click",function(){nn(n);var e=t.$implicit;return ks(2).goTo(e.id)}),Du(14,"translate"),ss(15,"p"),Qs(16),ls(),ss(17,"h2"),Qs(18),ls(),ns(19,IY,2,1,"p",47),ls(),ss(20,"ion-buttons",5),ns(21,RY,2,0,"ion-button",48),ns(22,LY,2,0,"ion-button",48),ls(),ls(),ss(23,"ion-item-options"),ns(24,FY,4,3,"ion-item-option",49),ss(25,"ion-item-option",50),ms("click",function(){nn(n);var e=t.$implicit;return ks(2).openActions(e)}),us(26,"ion-icon",51),Qs(27),Du(28,"translate"),ls(),ls(),ls(),ls(),ls()}if(2&e){var i=t.$implicit,r=ks(2);xo(5),os("ngForOf",i.workflow),xo(4),os("ngIf","PROG"==i.state),xo(1),os("ngIf","STOP"==i.state),xo(1),os("ngIf","VAL"==i.state),xo(1),os("ngIf","REF"==i.state),xo(1),os("title",Ou(14,13,"lang.accessDocument")),xo(3),Xs(i.reference),xo(2),Xs(i.title),xo(1),os("ngIf",i.reason.length>0),xo(2),os("ngIf",r.openedLine===i.id),xo(1),os("ngIf",r.openedLine!==i.id),xo(2),os("ngIf","PROG"!==i.state),xo(3),Ks(" ",Ou(28,15,"lang.actions")," ")}}function VY(e,t){if(1&e&&(ss(0,"ion-list"),ss(1,"ion-virtual-scroll",35),ns(2,BY,29,17,"ion-item",36),ls(),ls()),2&e){var n=ks();xo(1),os("items",n.ressources)}}function zY(e,t){if(1&e){var n=fs();cs(0),ss(1,"ion-item"),ss(2,"ion-label",76),Qs(3),Du(4,"translate"),ls(),ss(5,"ion-input",77),ms("ngModelChange",function(e){return nn(n),ks().$implicit.val=e})("keyup.enter",function(){return nn(n),ks(3).launchSearch()})("ionChange",function(){return nn(n),ks(3).checkInput()}),ls(),ls(),ds()}if(2&e){var i=ks().$implicit;xo(3),Ks("",Ou(4,3,"lang."+i.id+"Search")," "),xo(2),os("ngModel",i.val)("value",i.val)}}function NY(e,t){if(1&e){var n=fs();ss(0,"ion-item"),ss(1,"ion-label"),Qs(2),Du(3,"translate"),ls(),ss(4,"ion-checkbox",79),ms("ngModelChange",function(){nn(n);var e=t.$implicit,i=ks(2).$implicit;return ks(2).toggleItem(i,e,!e.selected)})("ngModelChange",function(e){return t.$implicit.selected=e}),ls(),ls()}if(2&e){var i=t.$implicit;xo(2),Xs(Ou(3,4,i.label)),xo(2),os("ngModel",i.selected)("checked",i.selected)("value",i.id)}}function HY(e,t){if(1&e&&(cs(0),ss(1,"ion-list-header"),ss(2,"ion-label",78),Qs(3),Du(4,"translate"),ls(),ls(),ns(5,NY,5,6,"ion-item",19),ds()),2&e){var n=ks().$implicit;xo(3),Xs(Ou(4,2,"lang."+n.id+"Search")),xo(2),os("ngForOf",n.values)}}function jY(e,t){if(1&e&&(cs(0),ss(1,"ion-list-header"),ss(2,"ion-label",78),Qs(3),Du(4,"translate"),ls(),ls(),us(5,"plugin-autocomplete",80),ds()),2&e){var n=ks().$implicit;xo(3),Xs(Ou(4,2,"lang."+n.id+"Search")),xo(2),os("currentItems",n.val)}}function UY(e,t){if(1&e&&(ss(0,"ion-list"),ns(1,zY,6,5,"ng-container",10),ns(2,HY,6,4,"ng-container",10),ns(3,jY,6,4,"ng-container",10),ls()),2&e){var n=t.$implicit;xo(1),os("ngIf","text"===n.type),xo(1),os("ngIf","checkbox"===n.type),xo(1),os("ngIf","autocompleteUsers"===n.type)}}function WY(e,t){if(1&e){var n=fs();ss(0,"ion-header",0),ss(1,"ion-toolbar",1),ss(2,"ion-buttons",2),us(3,"ion-back-button"),ls(),ss(4,"ion-title",71),Qs(5),Du(6,"translate"),ls(),ls(),ls(),ss(7,"ion-content"),ns(8,UY,4,3,"ion-list",19),ls(),ss(9,"ion-footer",72),ss(10,"div",73),ss(11,"ion-button",74),ms("click",function(){return nn(n),ks().onSubmit()}),ss(12,"ion-label",75),Qs(13),Du(14,"translate"),ls(),ls(),ls(),ls()}if(2&e){var i=ks();os("translucent",!0),xo(5),Xs(Ou(6,4,"lang.filters")),xo(3),os("ngForOf",i.filters),xo(5),Xs(Ou(14,6,"lang.search"))}}var GY,qY,YY=((qY=function(){function e(t,n,i,r,o,a,s,l,u,c,d,h,f,p){A(this,e),this.http=t,this.translate=n,this.router=i,this.menu=r,this.signaturesService=o,this.viewContainerRef=a,this.notificationService=s,this.authService=l,this.loadingController=u,this.alertController=c,this.actionSheetController=d,this.datePipe=h,this.functionsService=f,this._activatedRoute=p,this.loading=!1,this.filesToUpload=[],this.errors=[],this.filters=[{id:"title",type:"text",val:"",values:[]},{id:"reference",type:"text",val:"",values:[]},{id:"documentId",type:"text",val:"",values:[]},{id:"workflowStates",type:"checkbox",val:[],values:[{id:"PROG",label:"lang.inprogress",selected:!1},{id:"STOP",label:"lang.interrupt",selected:!1},{id:"VAL",label:"lang.end",selected:!1},{id:"REF",label:"lang.refused",selected:!1}]},{id:"workflowUsers",type:"autocompleteUsers",val:[],values:[]}],this.actions=[{icon:"hand-left-outline",id:"interruptWorkflow"},{icon:"document-outline",id:"newWorkflow"}],this.ressources=[],this.currentFilters=[],this.offset=0,this.limit=10,this.count=0,this.openedLine=""}return m(e,[{key:"ngOnInit",value:function(){var e=this;this._activatedRoute.queryParamMap.subscribe(function(t){e.functionsService.empty(t.get("documentId"))||(e.documentId=t.get("documentId"),e.filters.filter(function(e){return"documentId"===e.id})[0].val=e.documentId,e.search())})}},{key:"ionViewWillEnter",value:function(){var e=this;this.menu.enable(!0,"left-menu"),this.menu.enable(!0,"right-menu"),this.signaturesService.initTemplate(this.rightContent,this.viewContainerRef,"rightContent"),setTimeout(function(){e.menu.open("right-menu")},500)}},{key:"ionViewWillLeave",value:function(){this.signaturesService.detachTemplate("rightContent")}},{key:"toggleSlide",value:function(e,t){var n=this;e.getOpenAmount().then(function(i){0===i?(n.openedLine=t,e.open("end")):(n.openedLine="",e.close("end"))})}},{key:"onSliding",value:function(e,t){this.openedLine=1===e.detail.ratio?t:""}},{key:"onSubmit",value:function(){this.search(),this.menu.close("right-menu")}},{key:"toggleItem",value:function(e,t,n){if(n)e.val.push(t.id);else{var i=e.val.indexOf(t.id);e.val.splice(i,1)}}},{key:"formatDatas",value:function(){var e={};return JSON.parse(JSON.stringify(this.filters.filter(function(e){return"text"===e.type&&""!==e.val||"text"!==e.type&&e.val.length>0}))).forEach(function(t){e[t.id]="workflowUsers"===t.id?t.val.map(function(e){return e.id}):"workflowStates"===t.id?t.values.filter(function(e){return e.selected}).map(function(e){return e.id}):t.val}),e}},{key:"formatListDatas",value:function(e){var t=this;return e.map(function(e){return Object.assign(Object.assign({},e),{reason:t.getReason(e),currentUser:t.getCurrentUser(e)})})}},{key:"getNbFilters",value:function(){for(var e=0,t=0;t<this.currentFilters.length;t++)Array.isArray(this.currentFilters[t].val)||""===this.currentFilters[t].val||e++,Array.isArray(this.currentFilters[t].val)&&this.currentFilters[t].val.length>0&&(e+=this.currentFilters[t].val.length);return e}},{key:"openActions",value:function(e){return lY(this,void 0,void 0,regeneratorRuntime.mark(function t(){var n,i,r=this;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return n=[],this.actions.forEach(function(t){r.canShowButton(t.id,e)&&n.push({text:r.translate.instant("PROG"===e.state&&"newWorkflow"===t.id?"lang."+t.id+"Prog":"lang."+t.id),icon:t.icon,handler:function(){r[t.id](e)}})}),t.next=4,this.actionSheetController.create({header:this.translate.instant("lang.actions")+(null!==e.reference?" - "+e.reference:""),buttons:n});case 4:return i=t.sent,t.next=7,i.present();case 7:case"end":return t.stop()}},t,this)}))}},{key:"canShowButton",value:function(e,t){return!("interruptWorkflow"!==e||!t.canInterrupt)||!("newWorkflow"!==e||!t.canReaffect)}},{key:"search",value:function(){var e=this;this.loadingController.create({message:this.translate.instant("lang.processing"),spinner:"dots"}).then(function(t){return lY(e,void 0,void 0,regeneratorRuntime.mark(function e(){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t.present(),e.next=3,this.launchSearch();case 3:t.dismiss();case 4:case"end":return e.stop()}},e,this)}))})}},{key:"launchSearch",value:function(){var e=this;return this.ressources=[],this.offset=0,this.refreshCurrentFilter(),new Promise(function(t){e.http.post("../rest/search/documents?limit=10&offset=0",e.formatDatas()).pipe(uw(function(n){e.ressources=e.formatListDatas(n.documents),e.count=n.count,e.infiniteScroll.disabled=!1,t(!0)}),Zb(function(n){return e.notificationService.handleErrors(n),t(!1),Ty(!1)})).subscribe()})}},{key:"refreshCurrentFilter",value:function(){var e=this;this.currentFilters=JSON.parse(JSON.stringify(this.filters.filter(function(t){return!e.functionsService.empty(t.val)}))),this.currentFilters.filter(function(e){return"workflowStates"===e.id}).length>0&&(this.currentFilters.filter(function(e){return"workflowStates"===e.id})[0].val=this.currentFilters.filter(function(e){return"workflowStates"===e.id})[0].values.filter(function(e){return e.selected}),0===this.currentFilters.filter(function(e){return"workflowStates"===e.id})[0].val.length&&(this.currentFilters=this.currentFilters.filter(function(e){return"workflowStates"!==e.id})))}},{key:"loadData",value:function(e){var t=this;this.count<=this.limit?(e.target.complete(),e.target.disabled=!0):(this.offset=this.offset+this.limit,this.http.post("../rest/search/documents?limit="+this.limit+"&offset="+this.offset,this.formatDatas()).pipe(uw(function(n){t.ressources=t.ressources.concat(t.formatListDatas(n.documents)),e.target.complete(),t.count===t.ressources.length&&(e.target.disabled=!0)})).subscribe())}},{key:"interruptWorkflow",value:function(e){return lY(this,void 0,void 0,regeneratorRuntime.mark(function t(){var n=this;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",new Promise(function(t){return lY(n,void 0,void 0,regeneratorRuntime.mark(function n(){var i,r=this;return regeneratorRuntime.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,this.alertController.create({header:this.translate.instant("lang.warning"),message:this.translate.instant("lang.warnInterrupt"),buttons:[{text:this.translate.instant("lang.cancel"),role:"cancel",cssClass:"secondary",handler:function(){}},{text:this.translate.instant("lang.validate"),handler:function(){r.loadingController.create({message:r.translate.instant("lang.processing"),spinner:"dots"}).then(function(n){return lY(r,void 0,void 0,regeneratorRuntime.mark(function i(){return regeneratorRuntime.wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return n.present(),i.next=3,this.launchInterrupt(e);case 3:this.launchSearch(),t(!0),n.dismiss();case 6:case"end":return i.stop()}},i,this)}))})}}]});case 2:return i=n.sent,n.next=5,i.present();case 5:case"end":return n.stop()}},n,this)}))}));case 1:case"end":return t.stop()}},t)}))}},{key:"launchInterrupt",value:function(e){var t=this;return new Promise(function(n){t.http.put("../rest/documents/".concat(e.id,"/workflows/interrupt"),{}).pipe(uw(function(){t.notificationService.success("lang.documentInterrupted"),n(!0)}),Zb(function(e){return t.notificationService.handleErrors(e),n(!1),Ty(!1)})).subscribe()})}},{key:"newWorkflow",value:function(e){return lY(this,void 0,void 0,regeneratorRuntime.mark(function t(){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(t.t0="PROG"===e.state,!t.t0){t.next=4;break}return t.next=4,this.interruptWorkflow(e);case 4:this.router.navigate(["/indexation"],{state:{documentId:e.id}});case 5:case"end":return t.stop()}},t,this)}))}},{key:"openPromptProof",value:function(e){return lY(this,void 0,void 0,regeneratorRuntime.mark(function t(){var n,i=this;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.alertController.create({cssClass:"promptProof",header:this.translate.instant("lang.download"),inputs:[{name:"option1",type:"radio",label:this.translate.instant("lang.proof"),value:"onlyProof",checked:!0},{name:"option1",type:"radio",label:this.translate.instant("lang.completeFolder"),value:"all"}],buttons:[{text:this.translate.instant("lang.cancel"),role:"cancel",cssClass:"secondary",handler:function(){}},{text:this.translate.instant("lang.validate"),handler:function(t){return lY(i,void 0,void 0,regeneratorRuntime.mark(function i(){return regeneratorRuntime.wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,this.downloadProof(e,t);case 2:n.dismiss();case 3:case"end":return i.stop()}},i,this)}))}}]});case 2:return n=t.sent,t.next=5,n.present();case 5:case"end":return t.stop()}},t,this)}))}},{key:"downloadProof",value:function(e,t){var n=this,i="onlyProof"===t?"&onlyProof=true":"";return new Promise(function(t){n.http.get("../rest/documents/".concat(e.id,"/proof?mode=stream").concat(i),{responseType:"blob"}).pipe(uw(function(i){var r=new Date,o="proof_"+e.id+"_"+n.datePipe.transform(r,"dd-MM-y")+"."+i.type.replace("application/",""),a=document.createElement("a");a.href=window.URL.createObjectURL(i),a.setAttribute("download",o),document.body.appendChild(a),a.click(),t(!0)}),Zb(function(e){return n.notificationService.handleErrors(e),t(!1),Ty(!1)})).subscribe()})}},{key:"getReason",value:function(e){return e.workflow.map(function(e){return e.reason}).filter(function(e){return null!==e})}},{key:"getCurrentUser",value:function(e){var t=e.workflow.filter(function(e){return!0===e.current});return t.length>0?t[0].userId:null}},{key:"goTo",value:function(e){this.router.navigate(["/documents/"+e])}},{key:"clearFilters",value:function(){for(var e=0;e<this.filters.length;e++)Array.isArray(this.filters[e].val)||""===this.filters[e].val||(this.filters[e].val=""),Array.isArray(this.filters[e].val)&&(this.filters[e].val=[],this.filters[e].values=this.filters[e].values.map(function(e){return Object.assign(Object.assign({},e),{selected:!1})}));this.ressources.length>0&&this.launchSearch()}},{key:"removeFilter",value:function(e,t){if(Array.isArray(e.val))if("workflowStates"===e.id)this.filters.find(function(t){return t.id===e.id}).values.filter(function(e){return e.id===t})[0].selected=!1;else{var n=e.val.indexOf(t);this.filters.filter(function(t){return t.id===e.id})[0].val.splice(n,1)}else this.filters.find(function(t){return t.id===e.id}).val="";this.launchSearch()}},{key:"getLabel",value:function(e){return this.filters.filter(function(e){return"workflowStates"===e.id})[0].values.find(function(t){return t.id===e}).label}},{key:"checkInput",value:function(){""===this.filters.find(function(e){return"title"===e.id}).val&&""===this.filters.find(function(e){return"reference"===e.id}).val&&""===this.filters.find(function(e){return"documentId"===e.id}).val&&0===this.filters.find(function(e){return"workflowStates"===e.id}).val.length&&0===this.filters.find(function(e){return"workflowUsers"===e.id}).val.length&&(this.clearFilters(),this.currentFilters=[])}}]),e}()).\u0275fac=function(e){return new(e||qY)(rs(lb),rs(pE),rs(jk),rs(uP),rs(PE),rs(uu),rs(yE),rs(DE),rs(lP),rs(sP),rs(aP),rs(Wh),rs(IU),rs(b_))},qY.\u0275cmp=ft({type:qY,selectors:[["ng-component"]],viewQuery:function(e,t){var n;1&e&&(Qu(uY,1),Qu(cY,3),Qu($C,1)),2&e&&(Zu(n=Ku())&&(t.appVisaWorkflow=n.first),Zu(n=Ku())&&(t.rightContent=n.first),Zu(n=Ku())&&(t.infiniteScroll=n.first))},features:[yl([Wh])],decls:22,vars:14,consts:[[3,"translucent"],["color","primary"],["slot","start"],["menu","left-menu"],["slot","end","color","secondary"],["slot","end"],["menu","right-menu"],["name","funnel-outline"],["color","primary","style","padding-left: 1px;padding-right: 1px;",4,"ngIf"],["class","no-result",4,"ngIf"],[4,"ngIf"],["threshold","100px",3,"ionInfinite"],["loadingSpinner","bubbles",3,"loadingText"],["rightContent",""],["color","primary",2,"padding-left","1px","padding-right","1px"],[2,"display","flex"],["shape","round","size","small","fill","clear","slot","start","color","primary",1,"clearFilter",3,"title","click"],["slot","icon-only","name","trash-bin-outline","color","light"],["slot","start",1,"scrollfilters"],[4,"ngFor","ngForOf"],["outline","","color","primary","style","background: white;",3,"title","click",4,"ngIf"],["outline","","color","primary",2,"background","white",3,"title","click"],["name","document-text-outline",4,"ngIf"],["name","compass-outline",4,"ngIf"],["name","bookmark-outline",4,"ngIf"],["name","close-circle"],["name","document-text-outline"],["name","compass-outline"],["name","bookmark-outline"],["outline","","color","primary","style","background: white;",3,"title","click",4,"ngFor","ngForOf"],["name","swap-horizontal-outline"],["name","person-outline"],[1,"no-result"],["lines","none"],["color","medium",1,"no-result-label"],["approxItemHeight","165px",3,"items"],[4,"virtualItem"],["color","light"],["size","small"],[2,"display","flex","align-items","center","white-space","pre","overflow-x","auto","overflow-y","hidden"],[3,"ionDrag"],["slidingItem",""],["color","primary","slot","start","name","hourglass-outline",4,"ngIf"],["color","danger","slot","start","name","hand-left-outline",4,"ngIf"],["color","success","slot","start","name","thumbs-up-outline",4,"ngIf"],["color","danger","slot","start","name","thumbs-down-outline",4,"ngIf"],[2,"cursor","pointer",3,"title","click"],["class","primary",4,"ngIf"],["slot","icon-only","fill","clear","shape","round",3,"click",4,"ngIf"],["color","primary",3,"click",4,"ngIf"],["color","primary",3,"click"],["slot","bottom","name","settings-sharp"],["name","chevron-forward-outline",4,"ngIf"],[1,"workflow-item","success"],["name","thumbs-up-outline",4,"ngIf"],["name","thumbs-down-outline",4,"ngIf"],["color","medium",4,"ngIf"],["name","chevron-forward-outline"],["name","thumbs-up-outline"],["name","thumbs-down-outline"],["color","medium"],["color","primary","slot","start","name","hourglass-outline"],["color","danger","slot","start","name","hand-left-outline"],["color","success","slot","start","name","thumbs-up-outline"],["color","danger","slot","start","name","thumbs-down-outline"],[1,"primary"],["name","chatbox-outline"],["slot","icon-only","fill","clear","shape","round",3,"click"],["color","medium","slot","icon-only","name","arrow-forward-outline"],["color","medium","slot","icon-only","name","arrow-back-outline"],["slot","bottom","name","ribbon-sharp"],[1,"ion-text-center"],[1,"ion-no-border"],[1,"ion-text-center",2,"background","white"],["color","primary","shape","round","size","large","fill","outline",3,"click"],[2,"font-size","13px"],["color","secondary","position","floating"],[3,"ngModel","value","ngModelChange","keyup.enter","ionChange"],["color","secondary"],["slot","end",1,"workflowStates",3,"ngModel","checked","value","ngModelChange"],[3,"currentItems"]],template:function(e,t){1&e&&(ss(0,"ion-header",0),ss(1,"ion-toolbar",1),ss(2,"ion-buttons",2),us(3,"ion-menu-button",3),ls(),ss(4,"ion-title"),Qs(5),Du(6,"translate"),ls(),ss(7,"ion-title",4),Qs(8),Du(9,"translate"),ls(),ss(10,"ion-buttons",5),ss(11,"ion-menu-button",6),us(12,"ion-icon",7),ls(),ls(),ls(),ns(13,wY,7,4,"ion-toolbar",8),ls(),ss(14,"ion-content"),ns(15,_Y,5,3,"ion-list",9),ns(16,VY,3,1,"ion-list",10),ss(17,"ion-infinite-scroll",11),ms("ionInfinite",function(e){return t.loadData(e)}),us(18,"ion-infinite-scroll-content",12),Du(19,"translate"),ls(),ls(),ns(20,WY,15,8,"ng-template",null,13,tc)),2&e&&(os("translucent",!0),xo(5),Xs(Ou(6,8,"lang.search")),xo(3),Js("",t.count," ",Ou(9,10,"lang.results"),""),xo(5),os("ngIf",t.currentFilters.length>0),xo(2),os("ngIf",0===t.ressources.length),xo(1),os("ngIf",t.ressources.length>0),xo(2),os("loadingText",Ou(19,12,"lang.loadingMoreData")))},directives:[XC,DS,LC,cS,PS,KC,mh,UC,$C,eS,RC,gh,HC,aS,sS,nS,iP,nP,oS,rS,iS,IC,TC,JS,ZC,tS,nA,hm,Ym,lS,NC,Jx,sY],pipes:[gE],styles:[".line-container[_ngcontent-%COMP%]{display:grid;grid-template-columns:2fr 1fr;grid-gap:10px;width:100%}.line-workflow[_ngcontent-%COMP%]{font-size:12px}.primary[_ngcontent-%COMP%]{color:var(--ion-color-primary)}.secondary[_ngcontent-%COMP%]{color:var(--ion-color-secondary)}.success[_ngcontent-%COMP%]{color:var(--ion-color-success)}.workflow-item[_ngcontent-%COMP%]{display:flex;align-items:center}.no-visa[_ngcontent-%COMP%]{opacity:.3}.current[_ngcontent-%COMP%]{font-weight:700;color:var(--ion-color-primary)}.interrupt[_ngcontent-%COMP%], .typist-interrupt[_ngcontent-%COMP%]{color:var(--ion-color-danger)}.interrupt[_ngcontent-%COMP%]{text-decoration:line-through}.no-result[_ngcontent-%COMP%]{height:100%;display:flex;align-items:center;justify-content:center}.no-result[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]{width:100%;text-align:center}.no-result-label[_ngcontent-%COMP%]{font-size:50px}.scrollfilters[_ngcontent-%COMP%]{overflow:auto;white-space:nowrap}.scrollfilters[_ngcontent-%COMP%]   div[_ngcontent-%COMP%], .scrollfilters[_ngcontent-%COMP%]   ion-chip[_ngcontent-%COMP%]{height:auto;display:inline-block}"]}),qY),ZY=((GY=function(){function e(t){A(this,e),this.latinisePipe=t}return m(e,[{key:"transform",value:function(e,t){var n=this;return null!==e?(e.sort(function(e,i){var r=n.latinisePipe.transform(e[t]).toLocaleLowerCase(),o=n.latinisePipe.transform(i[t]).toLocaleLowerCase();return r<o?-1:r>o?1:0}),e):[]}}]),e}()).\u0275fac=function(e){return new(e||GY)(rs(QM))},GY.\u0275pipe=wt({name:"sortBy",type:GY,pure:!0}),GY),QY=["rightContent"];function XY(e,t){if(1&e){var n=fs();ss(0,"ion-chip",18),ms("click",function(){nn(n);var e=t.$implicit;return ks(2).removeFilter(e)}),Du(1,"translate"),us(2,"ion-icon",19),ss(3,"ion-label"),Qs(4),Du(5,"translate"),ls(),us(6,"ion-icon",20),ls()}if(2&e){var i=t.$implicit;os("title",Ou(1,2,"lang.actions")),xo(4),Xs(Ou(5,4,"lang."+i))}}function KY(e,t){if(1&e){var n=fs();ss(0,"ion-chip",18),ms("click",function(){nn(n);var e=ks(2);return e.removeFilter(e.filters.user)}),Du(1,"translate"),us(2,"ion-icon",21),ss(3,"ion-label"),Qs(4),ls(),us(5,"ion-icon",20),ls()}if(2&e){var i=ks(2);os("title",Ou(1,2,"lang.userName")),xo(4),Xs(i.filters.user)}}function JY(e,t){if(1&e){var n=fs();ss(0,"ion-chip",18),ms("click",function(){nn(n);var e=ks(2);return e.removeFilter(e.filters.date.start)}),Du(1,"translate"),us(2,"ion-icon",22),ss(3,"ion-label"),Qs(4),Du(5,"date"),ls(),us(6,"ion-icon",20),ls()}if(2&e){var i=ks(2);os("title",Ou(1,2,"lang.since")),xo(4),Xs(Mu(5,4,i.filters.date.start,"dd/MM/yyyy"))}}function $Y(e,t){if(1&e){var n=fs();ss(0,"ion-chip",18),ms("click",function(){nn(n);var e=ks(2);return e.removeFilter(e.filters.date.end)}),Du(1,"translate"),us(2,"ion-icon",23),ss(3,"ion-label"),Qs(4),Du(5,"date"),ls(),us(6,"ion-icon",20),ls()}if(2&e){var i=ks(2);os("title",Ou(1,2,"lang.until")),xo(4),Xs(Mu(5,4,i.filters.date.end,"dd/MM/yyyy"))}}function eZ(e,t){if(1&e){var n=fs();ss(0,"ion-toolbar",12),ss(1,"ion-button",13),ms("click",function(){return nn(n),ks().clearFilters()}),Du(2,"translate"),us(3,"ion-icon",14),ls(),ss(4,"div",15),ns(5,XY,7,6,"ion-chip",16),ns(6,KY,6,4,"ion-chip",17),ns(7,JY,7,7,"ion-chip",17),ns(8,$Y,7,7,"ion-chip",17),ls(),ls()}if(2&e){var i=ks();xo(1),os("title",Ou(2,5,"lang.clearFilters")),xo(4),os("ngForOf",i.filters.messageTypes),xo(1),os("ngIf",""!==i.filters.user),xo(1),os("ngIf",null!==i.filters.date.start),xo(1),os("ngIf",null!==i.filters.date.end)}}function tZ(e,t){if(1&e&&(ss(0,"ion-item",28),us(1,"ion-icon",29),ss(2,"ion-label"),ss(3,"p"),Qs(4),Du(5,"titlecase"),Du(6,"translate"),ss(7,"span",30),Qs(8),Du(9,"date"),ls(),Qs(10),Du(11,"translate"),ss(12,"span",30),Qs(13),ls(),ls(),ss(14,"h2"),Qs(15),ls(),ls(),ss(16,"ion-note",5),ss(17,"p",31),Du(18,"translate"),Qs(19),Du(20,"translate"),Du(21,"shorten"),Du(22,"translate"),ls(),ss(23,"p",32),Qs(24),ls(),ls(),ls()),2&e){var n=t.$implicit,i=ks(2);xo(1),os("name",i.aventTypesIcon[n.type]),xo(3),Ks("",Ou(5,10,Ou(6,12,"lang.the"))," "),xo(4),Xs(Mu(9,14,n.date,"dd/MM/yyyy HH:mm")),xo(2),Ks(" ",Ou(11,17,"lang.by")," "),xo(3),Xs(n.user),xo(2),Xs(n.message),xo(2),os("title",Ou(18,19,"lang.resource")+" : "+n.objectId),xo(2),Js("",Ou(20,21,"lang."+n.objectType)," : ",null!==n.objectLabel?Tu(21,23,n.objectLabel,50,"..."):Ou(22,27,"lang.undefined"),""),xo(5),Ks("IP : ",n.ip,"")}}function nZ(e,t){if(1&e){var n=fs();ss(0,"ion-list"),ss(1,"ion-virtual-scroll",24),ns(2,tZ,25,29,"ion-item",25),ls(),ss(3,"ion-infinite-scroll",26),ms("ionInfinite",function(e){return nn(n),ks().loadData(e)}),us(4,"ion-infinite-scroll-content",27),Du(5,"translate"),ls(),ls()}if(2&e){var i=ks();xo(1),os("items",i.resources),xo(3),os("loadingText",Ou(5,2,"lang.loadingMoreData"))}}function iZ(e,t){if(1&e){var n=fs();ss(0,"ion-buttons",5),ss(1,"ion-button",42),ms("click",function(){nn(n);var e=ks(2);return e.filters.date.start=null,e.getDatas()}),us(2,"ion-icon",43),ls(),ls()}}function rZ(e,t){if(1&e){var n=fs();ss(0,"ion-buttons",5),ss(1,"ion-button",42),ms("click",function(){nn(n);var e=ks(2);return e.filters.date.end=null,e.getDatas()}),us(2,"ion-icon",43),ls(),ls()}}function oZ(e,t){if(1&e){var n=fs();ss(0,"ion-item",31),ss(1,"ion-checkbox",44),ms("ionChange",function(e){return nn(n),ks(2).toggleAction(e.detail)}),ls(),ss(2,"ion-label"),Qs(3),ls(),ls()}if(2&e){var i=t.$implicit;os("title",i.label),xo(1),os("value",i.id),xo(2),Xs(i.label)}}function aZ(e,t){if(1&e){var n=fs();ss(0,"ion-header",0),ss(1,"ion-toolbar",1),ss(2,"ion-buttons",2),us(3,"ion-back-button"),ls(),ss(4,"ion-title",33),Qs(5),Du(6,"translate"),ls(),ls(),ls(),ss(7,"ion-content"),ss(8,"ion-list"),ss(9,"ion-item",34),ss(10,"ion-searchbar",35),ms("ionChange",function(e){return nn(n),ks().applyFilter(e.detail.value)}),Du(11,"translate"),ls(),ls(),ss(12,"ion-item"),ss(13,"ion-label",36),Qs(14),Du(15,"translate"),ls(),ss(16,"ion-datetime",37),ms("ngModelChange",function(e){return nn(n),ks().filters.date.start=e})("ionChange",function(){return nn(n),ks().getDatas()}),Du(17,"translate"),Du(18,"translate"),ls(),ns(19,iZ,3,0,"ion-buttons",38),ls(),ss(20,"ion-item"),ss(21,"ion-label",36),Qs(22),Du(23,"translate"),ls(),ss(24,"ion-datetime",39),ms("ngModelChange",function(e){return nn(n),ks().filters.date.end=e})("ionChange",function(){return nn(n),ks().getDatas()}),Du(25,"translate"),Du(26,"translate"),ls(),ns(27,rZ,3,0,"ion-buttons",38),ls(),ss(28,"ion-item",40),ss(29,"ion-label",36),Qs(30),Du(31,"translate"),ls(),ls(),ns(32,oZ,4,3,"ion-item",41),ls(),ls()}if(2&e){var i=ks();os("translucent",!0),xo(5),Xs(Ou(6,17,"lang.filters")),xo(5),os("placeholder",Ou(11,19,"lang.enterUserName")),xo(4),Ks("",Ou(15,21,"lang.since"),": "),xo(2),os("doneText",Ou(17,23,"lang.validate"))("cancelText",Ou(18,25,"lang.cancel"))("ngModel",i.filters.date.start)("max",null!==i.filters.date.end?i.filters.date.end:void 0),xo(3),os("ngIf",null!==i.filters.date.start),xo(3),Ks("",Ou(23,27,"lang.until"),": "),xo(2),os("doneText",Ou(25,29,"lang.validate"))("cancelText",Ou(26,31,"lang.cancel"))("ngModel",i.filters.date.end)("min",null!==i.filters.date.start?i.filters.date.start:void 0),xo(3),os("ngIf",null!==i.filters.date.end),xo(3),Ks("",Ou(31,33,"lang.actions"),": "),xo(2),os("ngForOf",i.actions)}}var sZ,lZ=((sZ=function(){function e(t,n,i,r,o,a,s,l,u,c,d){A(this,e),this.http=t,this.translate=n,this.menu=i,this.latinisePipe=r,this.viewContainerRef=o,this.dialog=a,this.signaturesService=s,this.notificationService=l,this.authService=u,this.alertController=c,this.sortPipe=d,this.displayedColumns=["creation_date","user","info","ip"],this.loading=!0,this.resources=[],this.offset=0,this.limit=10,this.count=0,this.filters={user:"",messageTypes:[],date:{start:null,end:null}},this.aventTypesIcon={VIEW:"eye-outline",CREATION:"add-circle-outline",ACTION:"settings-outline",THUMBNAIL:"image-outline",EMAIL:"mail-outline",SUPPRESSION:"trash-bin-outline",MODIFICATION:"create-outline",LOGIN:"log-in-outline",LOGOUT:"log-out-outline"},this.actions=[]}return m(e,[{key:"applyFilter",value:function(e){e=this.latinisePipe.transform(e.toLowerCase()),this.filters.user=e,this.getDatas()}},{key:"openFilters",value:function(){this.menu.open("right-menu")}},{key:"ionViewWillEnter",value:function(){return e=this,n=regeneratorRuntime.mark(function e(){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:this.filters.messageTypes=[],this.filters.user="",this.filters.date.start=this.filters.date.end=null,this.menu.enable(!0,"left-menu"),this.menu.enable(!0,"right-menu"),this.signaturesService.initTemplate(this.rightContent,this.viewContainerRef,"rightContent"),this.getActions(),this.getDatas();case 1:case"end":return e.stop()}},e,this)}),new((t=void 0)||(t=Promise))(function(i,r){function o(e){try{s(n.next(e))}catch(t){r(t)}}function a(e){try{s(n.throw(e))}catch(t){r(t)}}function s(e){var n;e.done?i(e.value):(n=e.value,n instanceof t?n:new t(function(e){e(n)})).then(o,a)}s((n=n.apply(e,[])).next())});var e,t,n}},{key:"getActions",value:function(){var e=this;this.http.get("../rest/history/messageTypes",this.filters).pipe(uw(function(t){e.actions=t.messageTypes.map(function(t){return{id:t,label:e.translate.instant("lang."+t)}}),e.actions=e.sortPipe.transform(e.actions,"label")}),Zb(function(t){return e.notificationService.handleErrors(t),Ty(!1)})).subscribe()}},{key:"getDatas",value:function(){var e=this;return this.resources=[],this.offset=0,new Promise(function(t){e.http.post("../rest/history?limit=10&offset=0",e.filters).pipe(uw(function(n){e.resources=n.history,e.count=n.total,t(!0)}),Zb(function(n){return e.notificationService.handleErrors(n),t(!1),Ty(!1)})).subscribe()})}},{key:"sortData",value:function(e){console.log(e)}},{key:"loadData",value:function(e){var t=this;this.count<=this.limit?(e.target.complete(),e.target.disabled=!0):(this.offset=this.offset+this.limit,this.http.post("../rest/history?limit="+this.limit+"&offset="+this.offset,this.filters).pipe(uw(function(n){t.resources=t.resources.concat(n.history),e.target.complete(),t.count===t.resources.length&&(e.target.disabled=!0)})).subscribe())}},{key:"getNbFilters",value:function(){var e=0;return""!==this.filters.user&&e++,null!==this.filters.date.start&&e++,null!==this.filters.date.end&&e++,this.filters.messageTypes.length>0&&(e+=this.filters.messageTypes.length),e}},{key:"toggleAction",value:function(e){e.checked?this.filters.messageTypes.push(e.value):this.filters.messageTypes=this.filters.messageTypes.filter(function(t){return t!==e.value}),this.getDatas()}},{key:"clearFilters",value:function(){$(".checkedAction").each(function(){$(this).prop("checked",!1)}),document.querySelector("ion-searchbar").getInputElement().then(function(e){e.value=""}),this.filters.user="",this.filters.date.start=this.filters.date.end=null,this.getDatas()}},{key:"removeFilter",value:function(e){this.filters.messageTypes.includes(e)&&$(".checkedAction").each(function(){if($(this).val()===e)return $(this).prop("checked",!1),!1}),this.filters.user===e&&(document.querySelector("ion-searchbar").getInputElement().then(function(e){e.value=""}),this.filters.user=""),this.filters.date.start===e&&(this.filters.date.start=null),this.filters.date.end===e&&(this.filters.date.end=null),this.getDatas()}}]),e}()).\u0275fac=function(e){return new(e||sZ)(rs(lb),rs(pE),rs(uP),rs(QM),rs(uu),rs(kB),rs(PE),rs(yE),rs(DE),rs(sP),rs(ZY))},sZ.\u0275cmp=ft({type:sZ,selectors:[["app-administration-history-list"]],viewQuery:function(e,t){var n;1&e&&Qu(QY,3),2&e&&Zu(n=Ku())&&(t.rightContent=n.first)},features:[yl([ZY])],decls:20,vars:10,consts:[[3,"translucent"],["color","primary"],["slot","start"],["menu","left-menu"],["slot","end","color","secondary"],["slot","end"],["menu","right-menu"],["name","funnel-outline"],["color","primary","color","primary","style","padding-left: 1px;padding-right: 1px;",4,"ngIf"],["mainContent",""],[4,"ngIf"],["rightContent",""],["color","primary","color","primary",2,"padding-left","1px","padding-right","1px"],["shape","round","size","small","fill","clear","slot","start","color","primary",1,"clearFilter",3,"title","click"],["slot","icon-only","name","trash-bin-outline","color","light"],["slot","start",1,"scrollfilters"],["outline","","color","primary",3,"title","click",4,"ngFor","ngForOf"],["outline","","color","primary",3,"title","click",4,"ngIf"],["outline","","color","primary",3,"title","click"],["name","swap-horizontal-outline"],["name","close-circle"],["name","person-outline"],["name","today-outline"],["name","calendar-outline"],["approxItemHeight","90px",3,"items"],["lines","full","class","canSelect",4,"virtualItem"],["threshold","100px",3,"ionInfinite"],["loadingSpinner","bubbles",3,"loadingText"],["lines","full",1,"canSelect"],["color","primary","slot","start",3,"name"],[1,"primary"],[3,"title"],[2,"float","right","margin-top","0px"],[1,"ion-text-center"],["lines","none"],[3,"placeholder","ionChange"],["color","secondary"],["displayFormat","DD/MM/YYYY",3,"doneText","cancelText","ngModel","max","ngModelChange","ionChange"],["slot","end",4,"ngIf"],["displayFormat","DD/MM/YYYY",3,"doneText","cancelText","ngModel","min","ngModelChange","ionChange"],["lines","none",2,"position","sticky","top","0","z-index","2"],[3,"title",4,"ngFor","ngForOf"],["color","danger","shape","round","fill","clear",3,"click"],["slot","icon-only","name","close-outline"],["slot","start",1,"checkedAction",3,"value","ionChange"]],template:function(e,t){1&e&&(ss(0,"ion-header",0),ss(1,"ion-toolbar",1),ss(2,"ion-buttons",2),us(3,"ion-menu-button",3),us(4,"ion-back-button"),ls(),ss(5,"ion-title"),Qs(6),Du(7,"translate"),ls(),ss(8,"ion-title",4),Qs(9),Du(10,"translate"),ls(),ss(11,"ion-buttons",5),ss(12,"ion-menu-button",6),us(13,"ion-icon",7),ls(),ls(),ls(),ns(14,eZ,9,7,"ion-toolbar",8),ls(),ss(15,"ion-content",null,9),ns(17,nZ,6,4,"ion-list",10),ls(),ns(18,aZ,33,35,"ng-template",null,11,tc)),2&e&&(os("translucent",!0),xo(6),Xs(Ou(7,6,"lang.history")),xo(3),Js("",t.count," ",Ou(10,8,"lang.entries"),""),xo(5),os("ngIf",t.getNbFilters()>0),xo(3),os("ngIf",t.resources.length>0))},directives:[XC,DS,LC,cS,TC,JS,PS,KC,mh,UC,RC,gh,HC,aS,sS,iP,nP,$C,eS,nS,hS,bS,nA,WC,tA,hm,Ym,NC,Jx],pipes:[gE,Wh,jh,YM],styles:[".flex1[_ngcontent-%COMP%]{flex:1}.flex2[_ngcontent-%COMP%]{flex:2}.primary[_ngcontent-%COMP%]{color:var(--ion-color-primary)}  .test .alert-wrapper{min-width:350px}.canSelect[_ngcontent-%COMP%]   *[_ngcontent-%COMP%]{user-select:text!important;-webkit-user-select:text!important;-khtml-user-select:text!important;-moz-user-select:text!important;-ms-user-select:text!important}.scrollfilters[_ngcontent-%COMP%]{overflow:auto;white-space:nowrap;height:50%}.scrollfilters[_ngcontent-%COMP%]   ion-chip[_ngcontent-%COMP%]{height:auto;margin:4px;display:inline-block}ion-button.clearFilter[_ngcontent-%COMP%]{position:-webkit-sticky;position:sticky;left:0;z-index:1}ion-chip[_ngcontent-%COMP%]{background-color:#fff}"]}),sZ),uZ=["customizationForm"];function cZ(e,t){if(1&e){var n=fs();ss(0,"ion-button",14),ms("click",function(){return nn(n),ks(2).watermark.enabled=!1}),Qs(1),Du(2,"translate"),ls()}2&e&&(xo(1),Ks(" ",Ou(2,1,"lang.disableWatermark"),""))}function dZ(e,t){if(1&e){var n=fs();ss(0,"ion-item"),ss(1,"ion-button",15),ms("click",function(){return nn(n),ks(2).watermark.enabled=!0}),Qs(2),Du(3,"translate"),ls(),ls()}2&e&&(xo(2),Ks("",Ou(3,1,"lang.enableWatermark")," "))}function hZ(e,t){if(1&e){var n=fs();cs(0),ss(1,"ion-card"),ss(2,"ion-item",1),us(3,"ion-icon",16),us(4,"ion-label",17),Du(5,"translate"),ls(),ls(),ss(6,"ion-item"),ss(7,"ion-label",18),Qs(8),Du(9,"translate"),ls(),ss(10,"ion-input",19),ms("ngModelChange",function(e){return nn(n),ks(2).watermark.text=e}),ls(),us(11,"ion-note",20),Du(12,"translate"),ls(),ss(13,"ion-radio-group",21),ms("ionChange",function(e){return nn(n),ks(2).watermark.align=e.detail.value}),ss(14,"ion-list-header"),ss(15,"ion-label",7),Qs(16),Du(17,"translate"),ls(),ls(),ss(18,"ion-item"),ss(19,"ion-label"),Qs(20),Du(21,"translate"),ls(),us(22,"ion-radio",22),ls(),ss(23,"ion-item"),ss(24,"ion-label"),Qs(25),Du(26,"translate"),ls(),us(27,"ion-radio",23),ls(),ss(28,"ion-item"),ss(29,"ion-label"),Qs(30),Du(31,"translate"),ls(),us(32,"ion-radio",24),ls(),ls(),ss(33,"ion-item"),ss(34,"ion-label",18),Qs(35),Du(36,"translate"),ls(),ss(37,"ion-input",25),ms("ngModelChange",function(e){return nn(n),ks(2).watermark.posY=e})("keypress",function(e){return nn(n),ks(2).isNumber(e)}),ls(),ss(38,"ion-note",26),Qs(39,"px"),ls(),ls(),ds()}if(2&e){var i=ks(2);xo(4),os("innerHTML",Ou(5,12,"lang.watermarkDesc"),Ar),xo(4),Xs(Ou(9,14,"lang.content")),xo(2),os("ngModel",i.watermark.text),xo(1),os("innerHTML",Ou(12,16,"lang.watermarkContentDesc"),Ar),xo(2),os("value",i.watermark.align),xo(3),Xs(Ou(17,18,"lang.alignment")),xo(4),Xs(Ou(21,20,"lang.left")),xo(5),Xs(Ou(26,22,"lang.center")),xo(5),Xs(Ou(31,24,"lang.right")),xo(5),Ks("",Ou(36,26,"lang.positionY")," "),xo(2),os("ngModel",i.watermark.posY)("min",0)}}function fZ(e,t){if(1&e){var n=fs();ss(0,"form",5,6),ms("ngSubmit",function(){return nn(n),ks().onSubmit()}),ss(2,"ion-content"),ss(3,"ion-list"),ss(4,"ion-list-header"),ss(5,"ion-label",7),Qs(6),Du(7,"translate"),ls(),ns(8,cZ,3,3,"ion-button",8),ls(),ns(9,dZ,4,3,"ion-item",9),ns(10,hZ,40,28,"ng-container",9),ls(),ss(11,"ion-item",10),ss(12,"div",11),ss(13,"ion-button",12),ss(14,"ion-label",13),Qs(15),Du(16,"translate"),ls(),ls(),ls(),ls(),ls(),ls()}if(2&e){var i=ks();xo(6),Ks(" ",Ou(7,5,"lang.watermark")," "),xo(2),os("ngIf",i.watermark.enabled),xo(1),os("ngIf",!i.watermark.enabled),xo(1),os("ngIf",i.watermark.enabled),xo(5),Xs(Ou(16,7,"lang.validate"))}}var pZ,gZ,vZ=((gZ=function(){function e(t,n,i,r,o){A(this,e),this.http=t,this.translate=n,this.notificationService=i,this.authService=r,this.functions=o,this.loading=!0,this.loginMessage="",this.applicationUrl="",this.watermark={enabled:!1,text:"Document n\xb0[id]",align:"R",posY:10}}return m(e,[{key:"ngOnInit",value:function(){return e=this,n=regeneratorRuntime.mark(function e(){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getWatermark();case 2:this.loading=!1;case 3:case"end":return e.stop()}},e,this)}),new((t=void 0)||(t=Promise))(function(i,r){function o(e){try{s(n.next(e))}catch(t){r(t)}}function a(e){try{s(n.throw(e))}catch(t){r(t)}}function s(e){var n;e.done?i(e.value):(n=e.value,n instanceof t?n:new t(function(e){e(n)})).then(o,a)}s((n=n.apply(e,[])).next())});var e,t,n}},{key:"getWatermark",value:function(){var e=this;return new Promise(function(t){e.http.get("../rest/customization/watermark").pipe(uw(function(n){e.functions.empty(n.configuration)||(e.watermark=n.configuration),t(!0)}),Zb(function(t){return e.notificationService.handleErrors(t),Ty(!1)})).subscribe()})}},{key:"onSubmit",value:function(){var e=this;this.http.put("../rest/customization",{id:this.authService.user.id,watermark:this.watermark}).pipe(uw(function(){e.notificationService.success(e.translate.instant("lang.modificationSaved"))}),Zb(function(t){return e.notificationService.handleErrors(t),Ty(!1)})).subscribe()}},{key:"isNumber",value:function(e){var t=(e=e||window.event).which?e.which:e.keyCode;return!(t>31&&(t<48||t>57))}}]),e}()).\u0275fac=function(e){return new(e||gZ)(rs(lb),rs(pE),rs(yE),rs(DE),rs(IU))},gZ.\u0275cmp=ft({type:gZ,selectors:[["ng-component"]],viewQuery:function(e,t){var n;1&e&&Qu(uZ,1),2&e&&Zu(n=Ku())&&(t.customizationForm=n.first)},decls:9,vars:5,consts:[[3,"translucent"],["color","primary"],["slot","start"],["menu","left-menu"],["style","display: contents;","id","customizationForm",3,"ngSubmit",4,"ngIf"],["id","customizationForm",2,"display","contents",3,"ngSubmit"],["customizationForm","ngForm"],["color","secondary"],["size","small","color","danger",3,"click",4,"ngIf"],[4,"ngIf"],["text-center","","lines","none",2,"position","sticky","bottom","0px","z-index","1"],[2,"display","flex","align-items","center","justify-content","center","width","100%","background","white"],["type","submit","shape","round","size","large","fill","outline","color","primary"],[2,"font-size","13px"],["size","small","color","danger",3,"click"],["size","small","color","primary",3,"click"],["name","information-circle","slot","start"],[2,"white-space","initial",3,"innerHTML"],["color","secondary","position","floating"],["name","watermarkContent",3,"ngModel","ngModelChange"],[3,"innerHTML"],[3,"value","ionChange"],["slot","start","value","L"],["slot","start","value","C"],["slot","start","value","R"],["type","number","name","watermarkPosY",3,"ngModel","min","ngModelChange","keypress"],["slot","end"]],template:function(e,t){1&e&&(ss(0,"ion-header",0),ss(1,"ion-toolbar",1),ss(2,"ion-buttons",2),us(3,"ion-menu-button",3),us(4,"ion-back-button"),ls(),ss(5,"ion-title"),Qs(6),Du(7,"translate"),ls(),ls(),ls(),ns(8,fZ,17,9,"form",4)),2&e&&(os("translucent",!0),xo(6),Xs(Ou(7,3,"lang.customization")),xo(2),os("ngIf",!t.loading))},directives:[XC,DS,LC,cS,TC,JS,PS,mh,Zm,fm,Wm,UC,sS,lS,aS,nS,RC,FC,KC,tS,nA,hm,Ym,hS,pS,tA,fS,eA,$x],pipes:[gE],styles:[".header[_ngcontent-%COMP%]{background:#135f7f;height:95px;color:#fff;padding-left:10px;font-size:25px}.header[_ngcontent-%COMP%], .header-title[_ngcontent-%COMP%]{display:flex;align-items:center}.header-title[_ngcontent-%COMP%]{flex:1;white-space:pre;overflow:hidden;text-overflow:ellipsis}.header[_ngcontent-%COMP%]   b[_ngcontent-%COMP%]{color:#f99830}.header[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis}.mainView[_ngcontent-%COMP%]{display:flex;flex-direction:column}.container[_ngcontent-%COMP%]{flex:1;overflow:auto}.loader[_ngcontent-%COMP%]{position:absolute;z-index:2;display:flex;background:hsla(0,0%,100%,.8);width:100%;height:100%;justify-content:center;align-items:center;top:0;margin:0;padding:0}.admin-form[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:20px}.actions-form[_ngcontent-%COMP%]{display:flex;justify-content:center}@media (max-width:360px){.actions-form[_ngcontent-%COMP%]{flex-direction:column}}.actions-form[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin:10px;width:150px}@media (max-width:360px){.actions-form[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{width:100%}}.noResult[_ngcontent-%COMP%]{padding:10px;text-align:center;opacity:.5}.emptyTable[_ngcontent-%COMP%]{height:auto}.addButton[_ngcontent-%COMP%]{padding:10px;display:flex;justify-content:flex-end}",""]}),gZ),mZ=((pZ=function e(){A(this,e)}).\u0275fac=function(e){return new(e||pZ)},pZ.\u0275mod=mt({type:pZ}),pZ.\u0275inj=Fe({imports:[[ax.forRoot([{path:"home",canActivate:[sH],component:Aq},{path:"indexation",canActivate:[sH],component:Jq},{path:"profile",canActivate:[sH],component:_q},{path:"search",canActivate:[sH],component:YY},{path:"administration",canActivate:[sH],component:dH},{path:"administration/users",canActivate:[sH],component:yH},{path:"administration/users/new",canActivate:[sH],component:LH},{path:"administration/users/:id",canActivate:[sH],component:LH},{path:"administration/groups",canActivate:[sH],component:jH},{path:"administration/groups/new",canActivate:[sH],component:rj},{path:"administration/groups/:id",canActivate:[sH],component:rj},{path:"administration/connections",canActivate:[sH],component:uj},{path:"administration/connections/ldaps",canActivate:[sH],component:vj},{path:"administration/connections/ldaps/new",canActivate:[sH],component:Ej},{path:"administration/connections/ldaps/:id",canActivate:[sH],component:Ej},{path:"administration/emailConfiguration",canActivate:[sH],component:Bj},{path:"administration/passwordRules",canActivate:[sH],component:jG},{path:"administration/history",canActivate:[sH],component:lZ},{path:"administration/customization",canActivate:[sH],component:vZ},{path:"documents/:id",canActivate:[sH],component:CG},{path:"login",canActivate:[sH],component:RG},{path:"forgot-password",component:LG},{path:"update-password",component:HG},{path:"password-modification",component:ZG},{path:"**",redirectTo:"login",pathMatch:"full"}],{relativeLinkResolution:"legacy"})],ax]}),pZ);function yZ(e,t){if(1&e){var n=fs();ss(0,"ion-item",3),ms("click",function(){return nn(n),ks().menu.close("left-menu")}),us(1,"ion-icon",4),ss(2,"ion-label"),Qs(3),Du(4,"translate"),ls(),ls()}if(2&e){var i=t.$implicit;Fs("item-active",ks().isActiveRoute(i.route)),os("routerLink",i.route),xo(1),os("name",i.icon),xo(2),Xs(Ou(4,5,"lang."+i.id))}}var bZ,wZ=((bZ=function(){function e(t,n,i,r){A(this,e),this.route=t,this.router=n,this.authService=i,this.menu=r,this.loading=!0,this.privileges=[]}return m(e,[{key:"ngOnInit",value:function(){}},{key:"openHome",value:function(){this.router.navigate(["/documents/"])}},{key:"isActiveRoute",value:function(e){return this.router.url.split("/").indexOf(e.replace("/administration/",""))>-1}}]),e}()).\u0275fac=function(e){return new(e||bZ)(rs(b_),rs(jk),rs(DE),rs(uP))},bZ.\u0275cmp=ft({type:bZ,selectors:[["app-admin-sidebar"]],decls:8,vars:4,consts:[["color","light"],[2,"text-align","center","font-size","14px"],["routerDirection","root",3,"routerLink","item-active","click",4,"ngFor","ngForOf"],["routerDirection","root",3,"routerLink","click"],["slot","start","color","primary",3,"name"]],template:function(e,t){1&e&&(ss(0,"ion-header"),ss(1,"ion-toolbar",0),ss(2,"ion-title",1),Qs(3),Du(4,"translate"),ls(),ls(),ls(),ss(5,"ion-content"),ss(6,"ion-list"),ns(7,yZ,5,7,"ion-item",2),ls(),ls()),2&e&&(xo(3),Ks(" ",Ou(4,2,"lang.administration")," "),xo(4),os("ngForOf",t.authService.user.administrativePrivileges))},directives:[XC,DS,PS,UC,sS,gh,nS,$S,Uk,KC,aS],pipes:[gE],styles:[".item-active[_ngcontent-%COMP%]{border-left:5px solid var(--ion-color-primary);--background:rgba(var(--ion-color-primary-rgb),0.14);color:var(--ion-color-primary);font-weight:700}"]}),bZ),_Z=["listContent"],kZ=["searchInput"];function xZ(e,t){if(1&e){var n=fs();ss(0,"ion-button",8),ms("click",function(){return nn(n),ks().authService.logout()}),Du(1,"translate"),us(2,"ion-icon",15),ls()}2&e&&os("title",Ou(1,1,"lang.logout"))}function AZ(e,t){if(1&e){var n=fs();ss(0,"ion-button",8),ms("click",function(){return nn(n),ks().openAdmin()}),Du(1,"translate"),us(2,"ion-icon",16),ls()}2&e&&os("title",Ou(1,1,"lang.administration"))}function CZ(e,t){if(1&e){var n=fs();ss(0,"ion-button",8),ms("click",function(){return nn(n),ks().openHome()}),Du(1,"translate"),us(2,"ion-icon",17),ls()}2&e&&os("title",Ou(1,1,"lang.homePage"))}function SZ(e,t){if(1&e){var n=fs();ss(0,"ion-button",8),ms("click",function(){return nn(n),ks().openIndexation()}),Du(1,"translate"),us(2,"ion-icon",18),us(3,"ion-icon",19),ls()}2&e&&os("title",Ou(1,1,"lang.indexationAdmin"))}function PZ(e,t){if(1&e&&(ss(0,"span",26),Qs(1),Du(2,"translate"),ls()),2&e){var n=ks(3);xo(1),Xs(Ou(2,1,"lang."+n.signaturesService.mode+"Label"))}}function EZ(e,t){if(1&e){var n=fs();ss(0,"ion-title",23),ms("click",function(e){return nn(n),ks(2).search(e)}),Du(1,"translate"),ss(2,"span"),Qs(3),ls(),Qs(4),Du(5,"translate"),ns(6,PZ,3,3,"span",24),Qs(7," \xa0 "),us(8,"ion-icon",25),ls()}if(2&e){var i=ks(2);os("title",Ou(1,6,"lang.filterInfo")),xo(2),Fs("primary",""!=i.signaturesService.mode),xo(1),Xs(i.signaturesService.documentsListCount.current),xo(1),Ks(" ",Ou(5,8,"lang.documents")," "),xo(2),os("ngIf",""!=i.signaturesService.mode)}}function DZ(e,t){if(1&e){var n=fs();ss(0,"ion-searchbar",27,28),ms("ionCancel",function(e){nn(n);var t=ks(2);return t.search(e),t.searchMode=!t.searchMode}),Du(2,"translate"),ls()}if(2&e){var i=ks(2);os("placeholder",Ou(2,2,"lang.filterInfo"))("formControl",i.searchTerm)}}function OZ(e,t){if(1&e&&(ss(0,"ion-header"),ss(1,"ion-toolbar",20),ns(2,EZ,9,10,"ion-title",21),ns(3,DZ,3,4,"ion-searchbar",22),ls(),ls()),2&e){var n=ks();xo(2),os("ngIf",!n.searchMode),xo(1),os("ngIf",n.searchMode)}}function MZ(e,t){if(1&e){var n=fs();ss(0,"ion-header",29),ss(1,"ion-toolbar",30),ss(2,"ion-segment",31),ss(3,"ion-segment-button",32),ms("click",function(){return nn(n),ks().filter("sign")}),ss(4,"ion-label"),Qs(5),Du(6,"titlecase"),Du(7,"translate"),ls(),us(8,"ion-icon",33),ss(9,"ion-badge",34),Qs(10),ls(),ls(),ss(11,"ion-segment-button",35),ms("click",function(){return nn(n),ks().filter("visa")}),ss(12,"ion-label"),Qs(13),Du(14,"titlecase"),Du(15,"translate"),ls(),us(16,"ion-icon",36),ss(17,"ion-badge",34),Qs(18),ls(),ls(),ss(19,"ion-segment-button",37),ms("click",function(){return nn(n),ks().filter("note")}),ss(20,"ion-label"),Qs(21),Du(22,"titlecase"),Du(23,"translate"),ls(),us(24,"ion-icon",38),ss(25,"ion-badge",34),Qs(26),ls(),ls(),ls(),ls(),ls()}if(2&e){var i=ks();xo(2),os("value",i.signaturesService.mode),xo(1),Fs("segment-button-notFocused","sign"!==i.signaturesService.mode),xo(2),Xs(Ou(6,13,Ou(7,15,"lang.signLabel"))),xo(5),Xs(i.signaturesService.documentsListCount.sign),xo(1),Fs("segment-button-notFocused","visa"!==i.signaturesService.mode),xo(2),Xs(Ou(14,17,Ou(15,19,"lang.visaLabel"))),xo(5),Xs(i.signaturesService.documentsListCount.visa),xo(1),Fs("segment-button-notFocused","note"!==i.signaturesService.mode),xo(2),Xs(Ou(22,21,Ou(23,23,"lang.noteLabel"))),xo(5),Xs(i.signaturesService.documentsListCount.note)}}function TZ(e,t){1&e&&us(0,"app-admin-sidebar",39)}function IZ(e,t){1&e&&(ss(0,"ion-item",44),ss(1,"ion-label",45),Qs(2),Du(3,"titlecase"),Du(4,"translate"),ls(),ls()),2&e&&(xo(2),Ks(" ",Ou(3,1,Ou(4,3,"lang.noResult"))," "))}function RZ(e,t){1&e&&us(0,"ion-icon",56)}function LZ(e,t){1&e&&us(0,"ion-icon",57)}function FZ(e,t){1&e&&us(0,"ion-icon",58)}function BZ(e,t){1&e&&us(0,"ion-icon",59)}function VZ(e,t){1&e&&(ss(0,"ion-label",60),Qs(1),Du(2,"translate"),ls()),2&e&&(xo(1),Ks(" ",Ou(2,1,"lang.substitutedDoc"),""))}var zZ=function(e){return[e]};function NZ(e,t){if(1&e){var n=fs();ss(0,"ion-menu-toggle",46),ss(1,"ion-item",47),ms("click",function(){nn(n);var e=t.index;return ks(2).filterService.currentIndex=e}),ns(2,RZ,1,0,"ion-icon",48),ns(3,LZ,1,0,"ion-icon",49),ns(4,FZ,1,0,"ion-icon",50),ns(5,BZ,1,0,"ion-icon",51),ss(6,"div"),ss(7,"ion-label",52),Qs(8),ls(),ss(9,"ion-label",53),Qs(10),Du(11,"shorten"),ls(),ns(12,VZ,3,3,"ion-label",54),ls(),us(13,"ion-icon",55),ls(),ls()}if(2&e){var i=t.$implicit,r=ks(2);xo(1),Fs("selected",r.router.url==="/documents/"+i.id),os("routerLink",Au(14,zZ,"/documents/"+i.id)),xo(1),os("ngIf","sign"==i.mode),xo(1),os("ngIf","visa"==i.mode),xo(1),os("ngIf","note"==i.mode),xo(1),os("ngIf",!r.functionsService.empty(i.mailingId)),xo(3),Xs(i.reference),xo(2),Xs(Tu(11,10,i.title,50,"...")),xo(2),os("ngIf",!i.owner)}}function HZ(e,t){if(1&e){var n=fs();ss(0,"ion-infinite-scroll",61),ms("ionInfinite",function(e){return nn(n),ks(2).loadData(e)}),us(1,"ion-infinite-scroll-content",62),Du(2,"translate"),ls()}2&e&&(xo(1),os("loadingText",Ou(2,1,"lang.loadingMoreData")))}function jZ(e,t){if(1&e&&(ss(0,"ion-content"),ss(1,"ion-list",40),ns(2,IZ,5,5,"ion-item",41),ns(3,NZ,14,16,"ion-menu-toggle",42),ls(),ns(4,HZ,3,3,"ion-infinite-scroll",43),ls()),2&e){var n=ks();xo(2),os("ngIf",0==n.signaturesService.documentsList.length),xo(1),os("ngForOf",n.signaturesService.documentsList),xo(1),os("ngIf",n.signaturesService.documentsList.length>0)}}var UZ,WZ=((UZ=function(){function e(t,n,i,r,o,a,s,l,u,c){var d=this;A(this,e),this.http=t,this.signaturesService=n,this.route=i,this.router=r,this.menu=o,this.notificationService=a,this.authService=s,this.modalController=l,this.functionsService=u,this.filterService=c,this.loadingList=!1,this.searchMode=!1,this.searchTerm=new zm,this.searchTerm.valueChanges.pipe(iT(500),Ex(),uw(function(e){return d.loadingList=!0}),Bb(function(e){return d.http.get("../rest/documents?limit="+d.filterService.limit+"&search="+e)})).subscribe(function(e){d.signaturesService.documentsList=e.documents,d.signaturesService.documentsListCount=e.count,d.loadingList=!1})}return m(e,[{key:"ngOnInit",value:function(){var e=this;$(".avatar").css({background:"url(data:image/png;base64,"+this.authService.user.picture+") no-repeat #135F7F"}).css({"background-size":"cover"}).css({"background-position":"center"}),this.http.get("../rest/documents?limit="+this.filterService.limit+"&offset="+this.filterService.offset+"&mode="+this.signaturesService.mode).subscribe(function(t){e.signaturesService.documentsList=t.documents,e.signaturesService.documentsListCount=t.count})}},{key:"ngAfterViewInit",value:function(){this.filter("")}},{key:"openProfile",value:function(){return e=this,n=regeneratorRuntime.mark(function e(){var t;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.modalController.create({component:_q,cssClass:"my-custom-class"});case 2:return t=e.sent,e.next=5,t.present();case 5:case"end":return e.stop()}},e,this)}),new((t=void 0)||(t=Promise))(function(i,r){function o(e){try{s(n.next(e))}catch(t){r(t)}}function a(e){try{s(n.throw(e))}catch(t){r(t)}}function s(e){var n;e.done?i(e.value):(n=e.value,n instanceof t?n:new t(function(e){e(n)})).then(o,a)}s((n=n.apply(e,[])).next())});var e,t,n}},{key:"openAdmin",value:function(){this.menu.close("left-menu"),this.router.navigate(["/administration/"])}},{key:"openHome",value:function(){this.router.navigate(["/home"])}},{key:"openIndexation",value:function(){this.menu.close("left-menu"),this.router.navigate(["/indexation"])}},{key:"openSearch",value:function(){this.menu.close("left-menu"),this.router.navigate(["/search"])}},{key:"search",value:function(e){var t=this;this.searchMode=!0,this.signaturesService.mode="",this.filter(""),setTimeout(function(){"ionCancel"!==e.type&&(t.searchInput.value="",t.searchInput.setFocus())},0)}},{key:"filter",value:function(e){var t=this;this.signaturesService.documentsList=[],""!==e&&(this.searchMode=!1),this.loadingList=!0,this.signaturesService.mode=this.signaturesService.mode===e?"":e,this.filterService.offset=0,this.http.get("../rest/documents?limit="+this.filterService.limit+"&offset="+this.filterService.offset+"&mode="+this.signaturesService.mode).pipe(hw(function(){t.loadingList=!1})).subscribe(function(e){t.signaturesService.documentsList=e.documents,t.signaturesService.documentsListCount=e.count,t.loadingList=!1})}},{key:"checkClose",value:function(){return!(!(-1!==this.route.routeConfig.path.indexOf("administration")||this.signaturesService.mainDocumentId>0)||!this.signaturesService.mobileMode)}},{key:"loadData",value:function(e){var t=this;this.filterService.offset=this.filterService.offset+this.filterService.limit,this.http.get("../rest/documents?limit="+this.filterService.limit+"&offset="+this.filterService.offset+"&mode="+this.signaturesService.mode).pipe(uw(function(n){t.signaturesService.documentsList=t.signaturesService.documentsList.concat(n.documents),e.target.complete(),t.signaturesService.documentsList.length===t.signaturesService.documentsListCount.current&&(e.target.disabled=!0)})).subscribe()}},{key:"isAdminRoute",value:function(){return this.router.url.split("/").indexOf("administration")>-1}},{key:"canIndex",value:function(){return this.authService.user.appPrivileges.map(function(e){return e.id}).indexOf("indexation")>-1}}]),e}()).\u0275fac=function(e){return new(e||UZ)(rs(lb),rs(PE),rs(b_),rs(jk),rs(uP),rs(yE),rs(DE),rs(cP),rs(IU),rs(yU))},UZ.\u0275cmp=ft({type:UZ,selectors:[["app-sidebar"]],viewQuery:function(e,t){var n;1&e&&(Qu(_Z,1),Qu(kZ,1)),2&e&&(Zu(n=Ku())&&(t.listContent=n.first),Zu(n=Ku())&&(t.searchInput=n.first))},decls:23,vars:16,consts:[[3,"translucent"],["color","primary"],["color","primary","lines","none"],["color","secondary",1,"ion-text-center"],[2,"font-weight","bold","font-size","24px"],["slot","start"],[3,"title","click",4,"ngIf"],["slot","end"],[3,"title","click"],["slot","icon-only","name","search-outline"],[1,"avatar-user",3,"click"],[3,"src"],[4,"ngIf"],["style","background: white;",4,"ngIf"],["style","display: contents;",4,"ngIf"],["slot","icon-only","name","power"],["slot","icon-only","name","settings-outline"],["slot","icon-only","name","home"],["slot","icon-only","name","document-outline"],["slot","icon-only","name","add-circle",2,"position","absolute","top","0px","font-size","15px","right","-5px"],["color","light"],["style","text-align: center;font-size: 14px;",3,"title","click",4,"ngIf"],["showCancelButton","always",3,"placeholder","formControl","ionCancel",4,"ngIf"],[2,"text-align","center","font-size","14px",3,"title","click"],["class","primary",4,"ngIf"],["color","primary","name","search-outline"],[1,"primary"],["showCancelButton","always",3,"placeholder","formControl","ionCancel"],["searchInput",""],[2,"background","white"],[1,"filters"],["value","heart",3,"value"],["value","sign",3,"click"],["color","primary","name","pencil-outline"],["color","secondary"],["value","visa",3,"click"],["color","primary","name","checkmark-done-outline"],["value","note",3,"click"],["color","primary","name","chatbubble-ellipses-outline"],[2,"display","contents"],["id","labels-list"],["lines","none",4,"ngIf"],["auto-hide","false",4,"ngFor","ngForOf"],["threshold","100px",3,"ionInfinite",4,"ngIf"],["lines","none"],["color","medium",1,"ion-text-center"],["auto-hide","false"],["routerDirection","root","detail","false",1,"doc-item",3,"routerLink","click"],["color","primary","slot","start","name","pencil-outline",4,"ngIf"],["color","primary","slot","start","name","checkmark-done-outline",4,"ngIf"],["color","primary","slot","start","name","chatbubble-ellipses-outline",4,"ngIf"],["slot","start","color","danger","name","layers","class","groupMailIcon",4,"ngIf"],[1,"sub-label"],["color","primary",1,"ion-text-wrap"],["color","secondary","class","sub-label",4,"ngIf"],["slot","end","color","medium","name","arrow-forward-outline"],["color","primary","slot","start","name","pencil-outline"],["color","primary","slot","start","name","checkmark-done-outline"],["color","primary","slot","start","name","chatbubble-ellipses-outline"],["slot","start","color","danger","name","layers",1,"groupMailIcon"],["color","secondary",1,"sub-label"],["threshold","100px",3,"ionInfinite"],["loadingSpinner","bubbles",3,"loadingText"]],template:function(e,t){1&e&&(ss(0,"ion-header",0),ss(1,"ion-toolbar",1),ss(2,"ion-item",2),ss(3,"ion-label",3),ss(4,"h2",4),Qs(5),ls(),ls(),ls(),ls(),ls(),ss(6,"ion-header",0),ss(7,"ion-toolbar",1),ss(8,"ion-buttons",5),ns(9,xZ,3,3,"ion-button",6),ns(10,AZ,3,3,"ion-button",6),ns(11,CZ,3,3,"ion-button",6),ls(),ss(12,"ion-buttons",7),ss(13,"ion-button",8),ms("click",function(){return t.openSearch()}),Du(14,"translate"),us(15,"ion-icon",9),ls(),ns(16,SZ,4,3,"ion-button",6),ls(),ls(),ls(),ss(17,"ion-avatar",10),ms("click",function(){return t.openProfile()}),us(18,"img",11),ls(),ns(19,OZ,4,2,"ion-header",12),ns(20,MZ,27,25,"ion-header",13),ns(21,TZ,1,0,"app-admin-sidebar",14),ns(22,jZ,5,3,"ion-content",12)),2&e&&(os("translucent",!0),xo(5),Js("",t.authService.user.firstname," ",t.authService.user.lastname,""),xo(1),os("translucent",!0),xo(3),os("ngIf","x509"!==t.authService.authMode&&"kerberos"!==t.authService.authMode&&"azure_saml"!==t.authService.authMode),xo(1),os("ngIf",!t.isAdminRoute()&&t.authService.user.administrativePrivileges.length>0),xo(1),os("ngIf",t.isAdminRoute()),xo(2),os("title",Ou(14,14,"lang.search")),xo(3),os("ngIf",t.canIndex()),xo(2),os("src",t.authService.user.picture,Cr),xo(1),os("ngIf",!t.isAdminRoute()),xo(1),os("ngIf",!t.isAdminRoute()),xo(1),os("ngIf",t.isAdminRoute()),xo(1),os("ngIf",!t.isAdminRoute()))},directives:[XC,DS,nS,aS,LC,mh,RC,KC,MC,PS,bS,nA,hm,Jm,wS,tA,_S,IC,wZ,UC,sS,gh,dS,$S,Uk,$C,eS],pipes:[gE,jh,YM],styles:['.main-header[_ngcontent-%COMP%]{height:205px;overflow:auto}.sidebar[_ngcontent-%COMP%]{position:relative;height:100%;overflow:hidden;display:flex;flex-direction:column}.sidebar-header[_ngcontent-%COMP%]{background:#f1f4f4;height:50px;display:flex;align-items:center;justify-content:center;font-size:14px;font-weight:600;padding-top:10px}.sidebar-header-icon[_ngcontent-%COMP%]{margin-right:15px;position:relative}.sidebar-header-icon.notification[_ngcontent-%COMP%]:after{position:absolute;right:-5px;top:-5px;width:10px;height:10px;border-radius:50%;background:#e74c3c;content:""}.sidebar-header-subtitle[_ngcontent-%COMP%]{color:#9b9b9b}.sidebar-btn[_ngcontent-%COMP%]{height:50px;display:flex;align-items:center;justify-content:space-around}.sidebar[_ngcontent-%COMP%]   .nav[_ngcontent-%COMP%]{flex:1;overflow-y:scroll;margin-top:0;overflow-x:hidden;margin-bottom:0;padding:0;position:relative}.sidebar[_ngcontent-%COMP%]   .nav-item[_ngcontent-%COMP%]{height:70px;display:flex;align-items:center;border-bottom:1px solid #e6e6e6;margin:0;padding:5px 5px 5px 30px;cursor:pointer}.sidebar[_ngcontent-%COMP%]   .nav-item.active[_ngcontent-%COMP%]{border-left:5px solid #135f7f;background:rgba(19,95,127,.14)}.sidebar[_ngcontent-%COMP%]   .nav-item.active[_ngcontent-%COMP%]:after{position:absolute;right:10px;content:"";height:60px;background:#f1f4f4}.sidebar[_ngcontent-%COMP%]   .nav-item-right[_ngcontent-%COMP%]{text-align:center}.sidebar[_ngcontent-%COMP%]   .nav-item-left[_ngcontent-%COMP%]{width:50px}.sidebar[_ngcontent-%COMP%]   .nav-item-left[_ngcontent-%COMP%]   .fas[_ngcontent-%COMP%], .sidebar[_ngcontent-%COMP%]   .nav-item-left[_ngcontent-%COMP%]   .material-icons[_ngcontent-%COMP%]{background:#f1f4f4;border-radius:50%;color:#135f7f;font-size:22px;height:25px;width:25px;padding:10px;margin-right:10px}.sidebar[_ngcontent-%COMP%]   .nav-item-middle[_ngcontent-%COMP%]{width:180px;height:50px;font-size:12px;color:#4f4f4f}.sidebar[_ngcontent-%COMP%]   .nav-item-title[_ngcontent-%COMP%]{font-weight:600;color:#135f7f;font-size:14px}.profile-header[_ngcontent-%COMP%]{background:#135f7f;height:95px;display:flex;justify-content:center;position:relative}.avatar[_ngcontent-%COMP%]{cursor:pointer;position:absolute;width:65px;height:65px;border-radius:40px;bottom:-20px;border:3px solid #f99830;background-size:cover;background-repeat:no-repeat;background-position:50%;transition:all .2s}.avatar[_ngcontent-%COMP%]:hover{box-shadow:0 0 5px 0 #656565}.user[_ngcontent-%COMP%]{color:#fff;padding-top:10px;font-weight:700;font-size:20px;max-width:90%;right:0;white-space:pre;overflow:hidden;text-overflow:ellipsis;padding-right:10px}.filter[_ngcontent-%COMP%]{font-size:10px;width:95px;padding-left:0;padding-right:0}.filter.active[_ngcontent-%COMP%]{background:#135f7f}.mat-badge-content[_ngcontent-%COMP%]{right:0!important;top:-8px!important;background:#f99830}.noResult[_ngcontent-%COMP%]{position:absolute;top:50%;text-align:center;width:100%;opacity:.5}.noDoc[_ngcontent-%COMP%]   .mat-badge-content[_ngcontent-%COMP%]{background:#ddd}.sub-label[_ngcontent-%COMP%]{font-size:11px;--color:var(--ion-color-medium)}ion-item.selected[_ngcontent-%COMP%]{--background:rgba(var(--ion-color-primary-rgb),0.2)}.doc-item[_ngcontent-%COMP%]{--inner-padding-bottom:10px;--inner-padding-top:10px}.filters[_ngcontent-%COMP%]   ion-badge[_ngcontent-%COMP%]{position:absolute;top:10px;right:0;color:#fff}.avatar-user[_ngcontent-%COMP%]{cursor:pointer;position:absolute;z-index:99;left:50%;transform:translateX(-50%);top:60px;border:solid var(--ion-color-secondary);width:71px;height:71px}.groupMailIcon[_ngcontent-%COMP%]{position:absolute;left:40px;font-size:14px;bottom:10px}.segment-button-notFocused[_ngcontent-%COMP%]{--indicator-color:none}']}),UZ);function GZ(e,t){if(1&e){var n=fs();ss(0,"ion-segment-button",10),ms("ionChange",function(e){return nn(n),ks(2).setActiveLang(e)}),ss(1,"ion-label"),Qs(2),ss(3,"ion-badge",11),Qs(4),ls(),ls(),ls()}if(2&e){var i=ks().$implicit,r=ks();os("value",r.currentLang),xo(2),Ks("",i.key," "),xo(2),Xs(r.missingLang[i.key].length)}}function qZ(e,t){if(1&e&&(ss(0,"span"),ns(1,GZ,5,3,"ion-segment-button",9),ls()),2&e){var n=t.$implicit;xo(1),os("ngIf","fr"!==n.key)}}function YZ(e,t){if(1&e){var n=fs();ss(0,"ion-item"),ss(1,"ion-label",13),Qs(2),ls(),ss(3,"ion-input",14),ms("ngModelChange",function(e){return t.$implicit.value=e}),ls(),ss(4,"ion-button",15),ms("click",function(){nn(n);var e=t.$implicit;return ks(2).openTranslation(e.value)}),us(5,"ion-icon",16),ls(),ls()}if(2&e){var i=t.$implicit;xo(2),Xs(i.id),xo(1),os("ngModel",i.value)}}function ZZ(e,t){if(1&e&&(ss(0,"ion-list",12),ns(1,YZ,6,2,"ion-item",5),ls()),2&e){var n=ks();xo(1),os("ngForOf",n.missingLang[n.currentLang])}}var QZ,XZ,KZ=((XZ=function(){function e(t,n,i,r){A(this,e),this.http=t,this.notify=n,this.translate=i,this.modalController=r,this.missingLang={},this.currentLang="en",this.data={}}return m(e,[{key:"ngOnInit",value:function(){this.getLangs()}},{key:"dismissModal",value:function(){this.modalController.dismiss("cancel")}},{key:"getLangs",value:function(){var e=this;this.http.get("../rest/languages").pipe(uw(function(t){e.allLang=t.languages,Object.keys(e.allLang).forEach(function(t){e.missingLang[t]=Object.keys(e.allLang.fr.lang).filter(function(n){return-1===Object.keys(e.allLang[t].lang).indexOf(n)}).map(function(t){return{id:t,value:e.allLang.fr.lang[t]+"__TO_TRANSLATE"}})})}),Zb(function(t){return e.notify.handleErrors(t),Ty(!1)})).subscribe()}},{key:"openTranslation",value:function(e){window.open("https://translate.google.fr/?hl=fr#view=home&op=translate&sl=fr&tl="+this.currentLang+"&text="+e.replace("__TO_TRANSLATE",""),"_blank")}},{key:"setActiveLang",value:function(e){this.currentLang=e.detail.value}},{key:"generateMissingLang",value:function(e){var t=this,n={},i=this.allLang[this.currentLang],r=/__TO_TRANSLATE$/g;this.missingLang[this.currentLang].forEach(function(t){null===t.value.match(r)&&e?n[t.id]=t.value:e||(n[t.id]=t.value)}),i.lang=Object.assign(Object.assign({},i.lang),n),this.http.put("../rest/languages",{langId:this.currentLang,jsonContent:i}).pipe(uw(function(e){Object.keys(n).forEach(function(e){delete t.allLang[t.currentLang][e],t.missingLang[t.currentLang]=t.missingLang[t.currentLang].filter(function(t){return t.id!==e}),t.data.countMissingLang--}),t.modalController.dismiss("cancel")}),Zb(function(e){return t.notify.handleErrors(e),Ty(!1)})).subscribe()}}]),e}()).\u0275fac=function(e){return new(e||XZ)(rs(lb),rs(yE),rs(pE),rs(cP))},XZ.\u0275cmp=ft({type:XZ,selectors:[["ng-component"]],decls:22,vars:14,consts:[["translucent",""],["color","primary"],["slot","end"],[3,"click"],["slot","icon-only","name","close-outline"],[4,"ngFor","ngForOf"],["lines","full",4,"ngIf"],[3,"translucent"],["size","small","color","primary",3,"click"],[3,"value","ionChange",4,"ngIf"],[3,"value","ionChange"],["color","secondary"],["lines","full"],["position","stacked"],["type","text",3,"ngModel","ngModelChange"],["slot","end","color","primary",3,"click"],["name","language-outline"]],template:function(e,t){1&e&&(ss(0,"ion-header",0),ss(1,"ion-toolbar",1),ss(2,"ion-title"),Qs(3),Du(4,"translate"),ls(),ss(5,"ion-buttons",2),ss(6,"ion-button",3),ms("click",function(){return t.dismissModal()}),us(7,"ion-icon",4),ls(),ls(),ls(),ls(),ss(8,"ion-header"),ss(9,"ion-segment"),ns(10,qZ,2,1,"span",5),Du(11,"keyvalue"),ls(),ls(),ss(12,"ion-content"),cs(13),ns(14,ZZ,2,1,"ion-list",6),ds(),ls(),ss(15,"ion-footer",7),ss(16,"ion-button",8),ms("click",function(){return t.generateMissingLang(!1)}),Qs(17),Du(18,"translate"),ls(),ss(19,"ion-button",8),ms("click",function(){return t.generateMissingLang(!0)}),Qs(20),Du(21,"translate"),ls(),ls()),2&e&&(xo(3),Xs(Ou(4,6,"lang.langChecking")),xo(7),os("ngForOf",Ou(11,8,t.allLang)),xo(4),os("ngIf","en"===t.currentLang),xo(1),os("translucent",!0),xo(2),Xs(Ou(18,10,"lang.generateLangVar")),xo(3),Xs(Ou(21,12,"lang.generateLangVarIgnoreTranslate")))},directives:[XC,DS,PS,LC,RC,KC,wS,tA,gh,UC,mh,ZC,_S,aS,IC,sS,nS,tS,nA,hm,Ym],pipes:[gE,Gh],styles:[".mat-dialog-content[_ngcontent-%COMP%]{padding-top:0}.lang-container[_ngcontent-%COMP%]    .mat-tab-header{position:-webkit-sticky;position:sticky;top:0;z-index:2}.lang-container[_ngcontent-%COMP%]    .mat-tab-label-container{background:#fff}"]}),XZ),JZ=((QZ=function(){function e(t,n,i,r){A(this,e),this.notify=t,this.http=n,this.functionsService=i,this.modalController=r,this.countMissingLang=0}return m(e,[{key:"ngOnInit",value:function(){this.getLangs()}},{key:"openLangTool",value:function(){return e=this,n=regeneratorRuntime.mark(function e(){var t;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.modalController.create({component:KZ,cssClass:"my-custom-class"});case 2:return t=e.sent,e.next=5,t.present();case 5:case"end":return e.stop()}},e,this)}),new((t=void 0)||(t=Promise))(function(i,r){function o(e){try{s(n.next(e))}catch(t){r(t)}}function a(e){try{s(n.throw(e))}catch(t){r(t)}}function s(e){var n;e.done?i(e.value):(n=e.value,n instanceof t?n:new t(function(e){e(n)})).then(o,a)}s((n=n.apply(e,[])).next())});var e,t,n}},{key:"getLangs",value:function(){var e=this;this.http.get("../rest/languages").pipe(uw(function(t){e.allLang=t.languages,Object.keys(e.allLang).forEach(function(t){e.countMissingLang+=Object.keys(e.allLang.fr.lang).filter(function(n){return-1===Object.keys(e.allLang[t].lang).indexOf(n)}).length})}),Zb(function(t){return e.notify.handleErrors(t),Ty(!1)})).subscribe()}}]),e}()).\u0275fac=function(e){return new(e||QZ)(rs(yE),rs(lb),rs(IU),rs(cP))},QZ.\u0275cmp=ft({type:QZ,selectors:[["app-dev-tool"]],decls:11,vars:7,consts:[["cdkDrag","","horizontal","end","vertical","top",3,"title"],["color","light"],["name","language-outline"],["side","start"],["color","light",3,"click"],["color","secondary"]],template:function(e,t){1&e&&(ss(0,"ion-fab",0),Du(1,"translate"),ss(2,"ion-fab-button",1),us(3,"ion-icon",2),ls(),ss(4,"ion-fab-list",3),ss(5,"ion-button",4),ms("click",function(){return t.openLangTool()}),ss(6,"ion-label"),Qs(7),Du(8,"translate"),ss(9,"ion-badge",5),Qs(10),ls(),ls(),ls(),ls(),ls()),2&e&&(os("title",Ou(1,3,"lang.missingLang")),xo(7),Ks("",Ou(8,5,"lang.missingLang")," "),xo(3),Ks(" ",t.countMissingLang,""))},directives:[GC,XN,qC,KC,YC,RC,aS,IC],pipes:[gE],styles:[".devToolListMenu{min-height:auto!important;width:250px}"]}),QZ);function $Z(e,t){1&e&&us(0,"app-sidebar",10)}function eQ(e,t){1&e&&us(0,"app-dev-tool")}var tQ,nQ,iQ,rQ,oQ=function(e){return[e]},aQ=((tQ=function(){function e(t,n,i,r,o,a,s,l,u,c,d,h){if(A(this,e),this.translate=t,this.http=n,this.signaturesService=i,this.sanitizer=r,this.cookieService=o,this.notificationService=a,this.dialog=s,this.authService=u,this.menu=c,this.router=d,this.platform=h,this.showLeftContent=!1,this.showRightContent=!1,l.addSvgIcon("maarchLogo",r.bypassSecurityTrustResourceUrl("../src/frontend/assets/logo_white.svg")),this.cookieService.check("maarchParapheurLang")){var f=this.cookieService.get("maarchParapheurLang");t.setDefaultLang(f)}else this.cookieService.set("maarchParapheurLang","fr"),t.setDefaultLang("fr");td.production||(this.debugMode=!0)}return m(e,[{key:"test",value:function(){return!0}},{key:"allowedRoute",value:function(){var e=this.router.url.split("?")[0];return-1===["/","/login","/forgot-password","/update-password","/password-modification"].indexOf(e)}}]),e}()).\u0275fac=function(e){return new(e||tQ)(rs(pE),rs(lb),rs(PE),rs(Wf),rs(IM),rs(yE),rs(kB),rs(FB),rs(DE),rs(uP),rs(jk),rs(iA))},tQ.\u0275cmp=ft({type:tQ,selectors:[["app-root"]],decls:11,vars:5,consts:[["contentId","main-content"],["menuId","left-menu","contentId","main-content","type","overlay","disabled","",1,"left-menu",3,"ionDidOpen","ionDidClose"],["leftMenu",""],["style","display: contents;",4,"ngIf"],["id","leftContent",2,"display","contents"],["id","main-content"],["menuId","right-menu","contentId","main-content","side","end","type","overlay","disabled","",3,"ngClass","ionDidOpen","ionDidClose"],["rightMenu",""],["id","rightContent",2,"display","contents"],[4,"ngIf"],[2,"display","contents"]],template:function(e,t){1&e&&(ss(0,"ion-app"),ss(1,"ion-split-pane",0),ss(2,"ion-menu",1,2),ms("ionDidOpen",function(){return t.showLeftContent=!0})("ionDidClose",function(){return t.showLeftContent=!1}),ns(4,$Z,1,0,"app-sidebar",3),us(5,"div",4),ls(),us(6,"ion-router-outlet",5),ss(7,"ion-menu",6,7),ms("ionDidOpen",function(){return t.showRightContent=!0})("ionDidClose",function(){return t.showRightContent=!1}),us(9,"div",8),ls(),ls(),ls(),ns(10,eQ,1,0,"app-dev-tool",9)),2&e&&(xo(4),os("ngIf",t.allowedRoute()),xo(3),os("ngClass",Au(3,oQ,t.signaturesService.mobileMode?"right-menu-responsive":"right-menu")),xo(3),os("ngIf",t.debugMode&&t.authService.isAuth()))},directives:[OC,SS,uS,mh,XS,fh,WZ,JZ],styles:[".left-menu{--width:350px;--min-width:350px;--max-width:350px}.right-menu{--width:450px;--min-width:450px;--max-width:450px}.right-menu-responsive{--width:89%;--min-width:89%;--max-width:89%}.split-pane-visible>.left-menu{width:350px!important;--max-width:350px!important;--min-width:350px!important}.split-pane-visible>.right-menu{width:450px!important;--max-width:450px!important;--min-width:450px!important}"],encapsulation:2}),tQ);nQ=yP.a,rQ=void 0,"string"!=typeof(iQ="fr-FR")&&(rQ=iQ,iQ=nQ[ul.LocaleId]),iQ=iQ.toLowerCase().replace(/_/g,"-"),al[iQ]=nQ,rQ&&(al[iQ][ul.ExtraData]=rQ);var sQ,lQ=((sQ=function e(){A(this,e)}).\u0275fac=function(e){return new(e||sQ)},sQ.\u0275mod=mt({type:sQ,bootstrap:[aQ]}),sQ.\u0275inj=Fe({providers:[{provide:cb,useClass:OE,multi:!0},PE,yU,yE,{provide:Dk,useClass:fP},IM,QM],imports:[[Dy,Oy,Zf,xv,xb,vP.forRoot({mode:"md"}),vE.forRoot({loader:{provide:FP,useFactory:cQ,deps:[lb]}}),Gj,yM,xM,eT,OM,oH,mZ,Vf]]}),sQ),uQ=function(){function e(t){A(this,e),this.http=t}return m(e,[{key:"getTranslation",value:function(e){return this.http.get("../rest/languages/"+e)}}]),e}();function cQ(e){return new uQ(e)}td.production&&function(){if(Fc)throw new Error("Cannot enable prod mode after platform setup.");Lc=!1}(),qf().bootstrapModule(lQ).catch(function(e){return console.log(e)})},meiF:function(e,t,n){"use strict";n.d(t,"a",function(){return c});var i,r=n("1vRN"),o=function(e){if(void 0===i){var t=void 0!==e.style.webkitAnimationName;i=void 0===e.style.animationName&&t?"-webkit-":""}return i},a=function(e,t,n){var i=t.startsWith("animation")?o(e):"";e.style.setProperty(i+t,n)},s=function(e,t){var n=t.startsWith("animation")?o(e):"";e.style.removeProperty(n+t)},l=[],u=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;if(void 0!==t){var n=Array.isArray(t)?t:[t];return[].concat(y(e),y(n))}return e},c=function(e){var t,n,i,c,f,p,g,v,m,b,w,_,k,x=[],A=[],C=[],S=!1,P={},E=[],D=[],O={},M=0,T=!1,I=!1,R=!0,L=!1,F=!0,B=e,V=[],z=[],N=[],H=[],j=[],U=[],W=[],G=[],q=[],Y=[],Z="function"==typeof AnimationEffect||"function"==typeof window.AnimationEffect,Q="function"==typeof Element&&"function"==typeof Element.prototype.animate&&Z,X=function(e,t){return(t&&t.oneTimeCallback?z:V).push({c:e,o:t}),k},K=function(){if(Q)Y.forEach(function(e){e.cancel()}),Y.length=0;else{var e=N.slice();Object(r.q)(function(){e.forEach(function(e){s(e,"animation-name"),s(e,"animation-duration"),s(e,"animation-timing-function"),s(e,"animation-iteration-count"),s(e,"animation-delay"),s(e,"animation-play-state"),s(e,"animation-fill-mode"),s(e,"animation-direction")})})}},J=function(){j.forEach(function(e){e&&e.parentNode&&e.parentNode.removeChild(e)}),j.length=0},$=function(){return void 0!==f?f:g?g.getFill():"both"},ee=function(){return void 0!==m?m:void 0!==p?p:g?g.getDirection():"normal"},te=function(){return T?"linear":void 0!==i?i:g?g.getEasing():"linear"},ne=function(){return I?0:void 0!==b?b:void 0!==n?n:g?g.getDuration():0},ie=function(){return void 0!==c?c:g?g.getIterations():1},re=function(){return void 0!==w?w:void 0!==t?t:g?g.getDelay():0},oe=function(){0!==M&&(0===--M&&(function(){fe(),G.forEach(function(e){return e()}),q.forEach(function(e){return e()});var e=R?1:0,t=E,n=D,i=O;N.forEach(function(e){var r=e.classList;for(var o in t.forEach(function(e){return r.add(e)}),n.forEach(function(e){return r.remove(e)}),i)i.hasOwnProperty(o)&&a(e,o,i[o])}),V.forEach(function(t){return t.c(e,k)}),z.forEach(function(t){return t.c(e,k)}),z.length=0,F=!0,R&&(L=!0),R=!0}(),g&&g.animationFinish()))},ae=function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];(function(){U.forEach(function(e){return e()}),W.forEach(function(e){return e()});var e=A,t=C,n=P;N.forEach(function(i){var r=i.classList;for(var o in e.forEach(function(e){return r.add(e)}),t.forEach(function(e){return r.remove(e)}),n)n.hasOwnProperty(o)&&a(i,o,n[o])})})(),x.length>0&&(Q?(N.forEach(function(e){var t=e.animate(x,{id:B,delay:re(),duration:ne(),easing:te(),iterations:ie(),fill:$(),direction:ee()});t.pause(),Y.push(t)}),Y.length>0&&(Y[0].onfinish=function(){oe()})):function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];J();var n,i=((n=x).forEach(function(e){for(var t in e)if(e.hasOwnProperty(t)){var n=e[t];if("easing"===t)e["animation-timing-function"]=n,delete e[t];else{var i=t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();i!==t&&(e[i]=n,delete e[t])}}}),n);N.forEach(function(n){if(i.length>0){var s=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.map(function(e){var t=e.offset,n=[];for(var i in e)e.hasOwnProperty(i)&&"offset"!==i&&n.push("".concat(i,": ").concat(e[i],";"));return"".concat(100*t,"% { ").concat(n.join(" ")," }")}).join(" ")}(i),u=function(e,t,n){var i=function(e){var t=e.getRootNode();return t.head||t}(n),r=o(n),a=i.querySelector("#"+e);if(a)return a;var s=(n.ownerDocument||document).createElement("style");return s.id=e,s.textContent="@".concat(r,"keyframes ").concat(e," { ").concat(t," } @").concat(r,"keyframes ").concat(e,"-alt { ").concat(t," }"),i.appendChild(s),s}(_=void 0!==e?e:function(e){var t=l.indexOf(e);return t<0&&(t=l.push(e)-1),"ion-animation-"+t}(s),s,n);j.push(u),a(n,"animation-duration",ne()+"ms"),a(n,"animation-timing-function",te()),a(n,"animation-delay",re()+"ms"),a(n,"animation-fill-mode",$()),a(n,"animation-direction",ee());var c=ie()===1/0?"infinite":ie().toString();a(n,"animation-iteration-count",c),a(n,"animation-play-state","paused"),t&&a(n,"animation-name",u.id+"-alt"),Object(r.q)(function(){a(n,"animation-name",u.id||null)})}})}(t)),S=!0},se=function(e){if(e=Math.min(Math.max(e,0),.9999),Q)Y.forEach(function(t){t.currentTime=t.effect.getComputedTiming().delay+ne()*e,t.pause()});else{var t="-".concat(ne()*e,"ms");N.forEach(function(e){x.length>0&&(a(e,"animation-delay",t),a(e,"animation-play-state","paused"))})}},le=function(e){Y.forEach(function(e){e.effect.updateTiming({delay:re(),duration:ne(),easing:te(),iterations:ie(),fill:$(),direction:ee()})}),void 0!==e&&se(e)},ue=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1?arguments[1]:void 0;Object(r.q)(function(){N.forEach(function(n){a(n,"animation-name",_||null),a(n,"animation-duration",ne()+"ms"),a(n,"animation-timing-function",te()),a(n,"animation-delay",void 0!==t?"-".concat(t*ne(),"ms"):re()+"ms"),a(n,"animation-fill-mode",$()||null),a(n,"animation-direction",ee()||null);var i=ie()===1/0?"infinite":ie().toString();a(n,"animation-iteration-count",i),e&&a(n,"animation-name",_+"-alt"),Object(r.q)(function(){a(n,"animation-name",_||null)})})})},ce=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2?arguments[2]:void 0;return e&&H.forEach(function(i){i.update(e,t,n)}),Q?le(n):ue(t,n),k},de=function(){S&&(Q?Y.forEach(function(e){e.pause()}):N.forEach(function(e){a(e,"animation-play-state","paused")}))},he=function(){v=void 0,oe()},fe=function(){v&&clearTimeout(v)},pe=function(e){return new Promise(function(t){e&&e.sync&&(I=!0,X(function(){return I=!1},{oneTimeCallback:!0})),S||ae(),L&&(Q?(se(0),le()):ue(),L=!1),F&&(M=H.length+1,F=!1),X(function(){return t()},{oneTimeCallback:!0}),H.forEach(function(e){e.play()}),Q?(Y.forEach(function(e){e.play()}),0!==x.length&&0!==N.length||oe()):function(){if(fe(),Object(r.q)(function(){N.forEach(function(e){x.length>0&&a(e,"animation-play-state","running")})}),0===x.length||0===N.length)oe();else{var e=re()||0,t=ne()||0,n=ie()||1;isFinite(n)&&(v=setTimeout(he,e+t*n+100)),function(e,t){var n,i={passive:!0},o=function(t){e===t.target&&(n&&n(),fe(),Object(r.q)(function(){N.forEach(function(e){s(e,"animation-duration"),s(e,"animation-delay"),s(e,"animation-play-state")}),Object(r.q)(oe)}))};e&&(e.addEventListener("webkitAnimationEnd",o,i),e.addEventListener("animationend",o,i),n=function(){e.removeEventListener("webkitAnimationEnd",o,i),e.removeEventListener("animationend",o,i)})}(N[0])}}()})},ge=function(e,t){var n=x[0];return void 0===n||void 0!==n.offset&&0!==n.offset?x=[d({offset:0},e,t)].concat(y(x)):n[e]=t,k};return k={parentAnimation:g,elements:N,childAnimations:H,id:B,animationFinish:oe,from:ge,to:function(e,t){var n=x[x.length-1];return void 0===n||void 0!==n.offset&&1!==n.offset?x=[].concat(y(x),[d({offset:1},e,t)]):n[e]=t,k},fromTo:function(e,t,n){return ge(e,t).to(e,n)},parent:function(e){return g=e,k},play:pe,pause:function(){return H.forEach(function(e){e.pause()}),de(),k},stop:function(){H.forEach(function(e){e.stop()}),S&&(K(),S=!1),T=!1,I=!1,F=!0,m=void 0,b=void 0,w=void 0,M=0,L=!1,R=!0},destroy:function(e){return H.forEach(function(t){t.destroy(e)}),function(e){K(),e&&J()}(e),N.length=0,H.length=0,x.length=0,V.length=0,z.length=0,S=!1,F=!0,k},keyframes:function(e){return x=e,k},addAnimation:function(e){if(null!=e)if(Array.isArray(e)){var t,n=h(e);try{for(n.s();!(t=n.n()).done;){var i=t.value;i.parent(k),H.push(i)}}catch(r){n.e(r)}finally{n.f()}}else e.parent(k),H.push(e);return k},addElement:function(e){if(null!=e)if(1===e.nodeType)N.push(e);else if(e.length>=0)for(var t=0;t<e.length;t++)N.push(e[t]);else console.error("Invalid addElement value");return k},update:ce,fill:function(e){return f=e,ce(!0),k},direction:function(e){return p=e,ce(!0),k},iterations:function(e){return c=e,ce(!0),k},duration:function(e){return Q||0!==e||(e=1),n=e,ce(!0),k},easing:function(e){return i=e,ce(!0),k},delay:function(e){return t=e,ce(!0),k},getWebAnimations:function(){return Y},getKeyframes:function(){return x},getFill:$,getDirection:ee,getDelay:re,getIterations:ie,getEasing:te,getDuration:ne,afterAddRead:function(e){return G.push(e),k},afterAddWrite:function(e){return q.push(e),k},afterClearStyles:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=h(t);try{for(n.s();!(e=n.n()).done;){var i=e.value;O[i]=""}}catch(r){n.e(r)}finally{n.f()}return k},afterStyles:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return O=e,k},afterRemoveClass:function(e){return D=u(D,e),k},afterAddClass:function(e){return E=u(E,e),k},beforeAddRead:function(e){return U.push(e),k},beforeAddWrite:function(e){return W.push(e),k},beforeClearStyles:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=h(t);try{for(n.s();!(e=n.n()).done;){var i=e.value;P[i]=""}}catch(r){n.e(r)}finally{n.f()}return k},beforeStyles:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return P=e,k},beforeRemoveClass:function(e){return C=u(C,e),k},beforeAddClass:function(e){return A=u(A,e),k},onFinish:X,progressStart:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;return H.forEach(function(n){n.progressStart(e,t)}),de(),T=e,S?ce(!1,!0,t):ae(),k},progressStep:function(e){return H.forEach(function(t){t.progressStep(e)}),se(e),k},progressEnd:function(e,t,n){return T=!1,H.forEach(function(i){i.progressEnd(e,t,n)}),void 0!==n&&(b=n),L=!1,R=!0,0===e?("reverse"===(m="reverse"===ee()?"normal":"reverse")&&(R=!1),Q?(ce(),se(1-t)):(w=(1-t)*ne()*-1,ce(!1,!1))):1===e&&(Q?(ce(),se(t)):(w=t*ne()*-1,ce(!1,!1))),void 0!==e&&(X(function(){b=void 0,m=void 0,w=void 0},{oneTimeCallback:!0}),g||pe()),k}}}},r7QR:function(e,t,n){"use strict";n.d(t,"a",function(){return T});var i,r,o,a,s,l,u,c,d,h,f,p,g,v,m,y,b,w,_,k,A=n("B4Jq"),C=n("1vRN"),S=n("E/Mt"),P=n("meiF"),E=function(e){return Object(P.a)().duration(e?400:300)},D=function(e){var t,n,i=e.width+8,r=Object(P.a)(),o=Object(P.a)();e.isEndSide?(t=i+"px",n="0px"):(t=-i+"px",n="0px"),r.addElement(e.menuInnerEl).fromTo("transform","translateX(".concat(t,")"),"translateX(".concat(n,")"));var a="ios"===Object(S.b)(e),s=a?.2:.25;return o.addElement(e.backdropEl).fromTo("opacity",.01,s),E(a).addAnimation([r,o])},O=function(e){var t,n,i=Object(S.b)(e),r=e.width;e.isEndSide?(t=-r+"px",n=r+"px"):(t=r+"px",n=-r+"px");var o=Object(P.a)().addElement(e.menuInnerEl).fromTo("transform","translateX(".concat(n,")"),"translateX(0px)"),a=Object(P.a)().addElement(e.contentEl).fromTo("transform","translateX(0px)","translateX(".concat(t,")")),s=Object(P.a)().addElement(e.backdropEl).fromTo("opacity",.01,.32);return E("ios"===i).addAnimation([o,a,s])},M=function(e){var t=Object(S.b)(e),n=e.width*(e.isEndSide?-1:1)+"px",i=Object(P.a)().addElement(e.contentEl).fromTo("transform","translateX(0px)","translateX(".concat(n,")"));return E("ios"===t).addAnimation(i)},T=(f=new Map,p=[],g=function(){var e=x(regeneratorRuntime.mark(function e(t){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,k();case 2:return e.abrupt("return","start"===t||"end"===t?_(function(e){return e.side===t&&!e.disabled})||_(function(e){return e.side===t}):null!=t?_(function(e){return e.menuId===t}):_(function(e){return!e.disabled})||(p.length>0?p[0].el:void 0));case 3:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}(),v=function(){var e=x(regeneratorRuntime.mark(function e(){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,k();case 2:return e.abrupt("return",b());case 3:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}(),y=function(e){var t=e.side;p.filter(function(n){return n.side===t&&n!==e}).forEach(function(e){return e.disabled=!0})},b=function(){return _(function(e){return e._isOpen})},w=function(){return p.some(function(e){return e.isAnimating})},_=function(e){var t=p.find(e);if(void 0!==t)return t.el},k=function(){return Promise.all(Array.from(document.querySelectorAll("ion-menu")).map(function(e){return new Promise(function(t){return Object(C.c)(e,t)})}))},(m=function(e,t){f.set(e,t)})("reveal",M),m("push",O),m("overlay",D),"undefined"!=typeof document&&document.addEventListener("ionBackButton",function(e){var t=b();t&&e.detail.register(A.MENU_BACK_BUTTON_PRIORITY,function(){return t.close()})}),{registerAnimation:m,get:g,getMenus:(h=x(regeneratorRuntime.mark(function e(){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,k();case 2:return e.abrupt("return",p.map(function(e){return e.el}));case 3:case"end":return e.stop()}},e)})),function(){return h.apply(this,arguments)}),getOpen:v,isEnabled:(d=x(regeneratorRuntime.mark(function e(t){var n;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,g(t);case 2:return n=e.sent,e.abrupt("return",!!n&&!n.disabled);case 4:case"end":return e.stop()}},e)})),function(e){return d.apply(this,arguments)}),swipeGesture:(c=x(regeneratorRuntime.mark(function e(t,n){var i;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,g(n);case 2:return i=e.sent,e.abrupt("return",(i&&(i.swipeGesture=t),i));case 4:case"end":return e.stop()}},e)})),function(e,t){return c.apply(this,arguments)}),isAnimating:(u=x(regeneratorRuntime.mark(function e(){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,k();case 2:return e.abrupt("return",w());case 3:case"end":return e.stop()}},e)})),function(){return u.apply(this,arguments)}),isOpen:(l=x(regeneratorRuntime.mark(function e(t){var n;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(null==t){e.next=5;break}return e.next=3,g(t);case 3:return n=e.sent,e.abrupt("return",void 0!==n&&n.isOpen());case 5:return e.t0=void 0,e.next=8,v();case 8:return e.t1=e.sent,e.abrupt("return",e.t0!==e.t1);case 10:case"end":return e.stop()}},e)})),function(e){return l.apply(this,arguments)}),enable:(s=x(regeneratorRuntime.mark(function e(t,n){var i;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,g(n);case 2:return i=e.sent,e.abrupt("return",(i&&(i.disabled=!t),i));case 4:case"end":return e.stop()}},e)})),function(e,t){return s.apply(this,arguments)}),toggle:(a=x(regeneratorRuntime.mark(function e(t){var n;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,g(t);case 2:return n=e.sent,e.abrupt("return",!!n&&n.toggle());case 4:case"end":return e.stop()}},e)})),function(e){return a.apply(this,arguments)}),close:(o=x(regeneratorRuntime.mark(function e(t){var n;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,void 0!==t?g(t):v();case 2:return n=e.sent,e.abrupt("return",void 0!==n&&n.close());case 4:case"end":return e.stop()}},e)})),function(e){return o.apply(this,arguments)}),open:(r=x(regeneratorRuntime.mark(function e(t){var n;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,g(t);case 2:return n=e.sent,e.abrupt("return",!!n&&n.open());case 4:case"end":return e.stop()}},e)})),function(e){return r.apply(this,arguments)}),_getOpenSync:b,_createAnimation:function(e,t){var n=f.get(e);if(!n)throw new Error("animation not registered");return n(t)},_register:function(e){p.indexOf(e)<0&&(e.disabled||y(e),p.push(e))},_unregister:function(e){var t=p.indexOf(e);t>-1&&p.splice(t,1)},_setOpen:(i=x(regeneratorRuntime.mark(function e(t,n,i){var r;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!w()){e.next=2;break}return e.abrupt("return",!1);case 2:if(!n){e.next=10;break}return e.next=5,v();case 5:if(r=e.sent,e.t0=r&&t.el!==r,!e.t0){e.next=10;break}return e.next=10,r.setOpen(!1,!1);case 10:return e.abrupt("return",t._setOpen(n,i));case 11:case"end":return e.stop()}},e)})),function(e,t,n){return i.apply(this,arguments)}),_setActiveMenu:y})},wEJo:function(t,n,i){"use strict";i.d(n,"a",function(){return Qe}),i.d(n,"b",function(){return b}),i.d(n,"c",function(){return j}),i.d(n,"d",function(){return C}),i.d(n,"e",function(){return De}),i.d(n,"f",function(){return Ze}),i.d(n,"g",function(){return ce}),i.d(n,"h",function(){return Ye}),i.d(n,"i",function(){return B}),i.d(n,"j",function(){return N}),i.d(n,"k",function(){return ue}),i.d(n,"l",function(){return ye}),i.d(n,"m",function(){return Oe}),i.d(n,"n",function(){return _}),i.d(n,"o",function(){return Ie}),i.d(n,"p",function(){return F}),i.d(n,"q",function(){return v});var o,s,u,c=!1,d=!1,h=!1,p=!1,g=!1,v="undefined"!=typeof window?window:{},b=v.CSS,w=v.document||{head:{}},_={$flags$:0,$resourcesUrl$:"",jmp:function(e){return e()},raf:function(e){return requestAnimationFrame(e)},ael:function(e,t,n,i){return e.addEventListener(t,n,i)},rel:function(e,t,n,i){return e.removeEventListener(t,n,i)},ce:function(e,t){return new CustomEvent(e,t)}},k=(w.head.attachShadow+"").indexOf("[native")>-1,C=function(e){return Promise.resolve(e)},S=function(){try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replace}catch(e){}return!1}(),P=function(e,t,n,i){n&&n.map(function(n){var i=f(n,3),r=i[0],o=i[1],a=i[2],s=D(e,r),l=E(t,a),u=O(r);_.ael(s,o,l,u),(t.$rmListeners$=t.$rmListeners$||[]).push(function(){return _.rel(s,o,l,u)})})},E=function(e,t){return function(n){try{256&e.$flags$?e.$lazyInstance$[t](n):(e.$queuedListeners$=e.$queuedListeners$||[]).push([t,n])}catch(i){Fe(i)}}},D=function(e,t){return 4&t?w:8&t?v:16&t?w.body:e},O=function(e){return 0!=(2&e)},M="http://www.w3.org/1999/xlink",T=new WeakMap,I=function(e,t,n){var i=ze.get(e);S&&n?(i=i||new CSSStyleSheet).replace(t):i=t,ze.set(e,i)},R=function(e,t,n,i){var r=L(t,n),o=ze.get(r);if(e=11===e.nodeType?e:w,o)if("string"==typeof o){var a,s=T.get(e=e.head||e);if(s||T.set(e,s=new Set),!s.has(r)){if(e.host&&(a=e.querySelector('[sty-id="'.concat(r,'"]'))))a.innerHTML=o;else{if(_.$cssShim$){var l=(a=_.$cssShim$.createHostStyle(i,r,o,!!(10&t.$flags$)))["s-sc"];l&&(r=l,s=null)}else(a=w.createElement("style")).innerHTML=o;e.insertBefore(a,e.querySelector("link"))}s&&s.add(r)}}else e.adoptedStyleSheets.includes(o)||(e.adoptedStyleSheets=[].concat(y(e.adoptedStyleSheets),[o]));return r},L=function(e,t){return"sc-"+(t&&32&e.$flags$?e.$tagName$+"-"+t:e.$tagName$)},F=function(e){return Ne.push(e)},B=function(e){return Te(e).$modeName$},V={},z=function(e){return"object"==(e=typeof e)||"function"===e},N=function(e,t){for(var n=null,i=null,r=null,o=!1,a=!1,s=[],l=function t(i){for(var r=0;r<i.length;r++)n=i[r],Array.isArray(n)?t(n):null!=n&&"boolean"!=typeof n&&((o="function"!=typeof e&&!z(n))&&(n=String(n)),o&&a?s[s.length-1].$text$+=n:s.push(o?H(null,n):n),a=o)},u=arguments.length,c=new Array(u>2?u-2:0),d=2;d<u;d++)c[d-2]=arguments[d];if(l(c),t){t.key&&(i=t.key),t.name&&(r=t.name);var h=t.className||t.class;h&&(t.class="object"!=typeof h?h:Object.keys(h).filter(function(e){return h[e]}).join(" "))}if("function"==typeof e)return e(null===t?{}:t,s,U);var f=H(e,null);return f.$attrs$=t,s.length>0&&(f.$children$=s),f.$key$=i,f.$name$=r,f},H=function(e,t){return{$flags$:0,$tag$:e,$text$:t,$elm$:null,$children$:null,$attrs$:null,$key$:null,$name$:null}},j={},U={forEach:function(e,t){return e.map(W).forEach(t)},map:function(e,t){return e.map(W).map(t).map(G)}},W=function(e){return{vattrs:e.$attrs$,vchildren:e.$children$,vkey:e.$key$,vname:e.$name$,vtag:e.$tag$,vtext:e.$text$}},G=function(e){if("function"==typeof e.vtag){var t=Object.assign({},e.vattrs);return e.vkey&&(t.key=e.vkey),e.vname&&(t.name=e.vname),N.apply(void 0,[e.vtag,t].concat(y(e.vchildren||[])))}var n=H(e.vtag,e.vtext);return n.$attrs$=e.vattrs,n.$children$=e.vchildren,n.$key$=e.vkey,n.$name$=e.vname,n},q=function(e,t,n,i,r,o){if(n!==i){var a=Le(e,t),s=t.toLowerCase();if("class"===t){var l=e.classList,u=Z(n),c=Z(i);l.remove.apply(l,y(u.filter(function(e){return e&&!c.includes(e)}))),l.add.apply(l,y(c.filter(function(e){return e&&!u.includes(e)})))}else if("style"===t){for(var d in n)i&&null!=i[d]||(d.includes("-")?e.style.removeProperty(d):e.style[d]="");for(var h in i)n&&i[h]===n[h]||(h.includes("-")?e.style.setProperty(h,i[h]):e.style[h]=i[h])}else if("key"===t);else if("ref"===t)i&&i(e);else if(a||"o"!==t[0]||"n"!==t[1]){var f=z(i);if((a||f&&null!==i)&&!r)try{if(e.tagName.includes("-"))e[t]=i;else{var p=null==i?"":i;"list"===t?a=!1:null!=n&&e[t]==p||(e[t]=p)}}catch(m){}var g=!1;s!==(s=s.replace(/^xlink\:?/,""))&&(t=s,g=!0),null==i||!1===i?!1===i&&""!==e.getAttribute(t)||(g?e.removeAttributeNS(M,t):e.removeAttribute(t)):(!a||4&o||r)&&!f&&(i=!0===i?"":i,g?e.setAttributeNS(M,t,i):e.setAttribute(t,i))}else t="-"===t[2]?t.slice(3):Le(v,s)?s.slice(2):s[2]+t.slice(3),n&&_.rel(e,t,n,!1),i&&_.ael(e,t,i,!1)}},Y=/\s/,Z=function(e){return e?e.split(Y):[]},Q=function(e,t,n,i){var r=11===t.$elm$.nodeType&&t.$elm$.host?t.$elm$.host:t.$elm$,o=e&&e.$attrs$||V,a=t.$attrs$||V;for(i in o)i in a||q(r,i,o[i],void 0,n,t.$flags$);for(i in a)q(r,i,o[i],a[i],n,t.$flags$)},X=function e(t,n,i,r){var a,l,d,f=n.$children$[i],g=0;if(c||(h=!0,"slot"===f.$tag$&&(o&&r.classList.add(o+"-s"),f.$flags$|=f.$children$?2:1)),null!==f.$text$)a=f.$elm$=w.createTextNode(f.$text$);else if(1&f.$flags$)a=f.$elm$=w.createTextNode("");else{if(p||(p="svg"===f.$tag$),a=f.$elm$=w.createElementNS(p?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",2&f.$flags$?"slot-fb":f.$tag$),p&&"foreignObject"===f.$tag$&&(p=!1),Q(null,f,p),null!=o&&a["s-si"]!==o&&a.classList.add(a["s-si"]=o),f.$children$)for(g=0;g<f.$children$.length;++g)(l=e(t,f,g,a))&&a.appendChild(l);"svg"===f.$tag$?p=!1:"foreignObject"===a.tagName&&(p=!0)}return a["s-hn"]=u,3&f.$flags$&&(a["s-sr"]=!0,a["s-cr"]=s,a["s-sn"]=f.$name$||"",(d=t&&t.$children$&&t.$children$[i])&&d.$tag$===f.$tag$&&t.$elm$&&K(t.$elm$,!1)),a},K=function e(t,n){_.$flags$|=1;for(var i=t.childNodes,r=i.length-1;r>=0;r--){var o=i[r];o["s-hn"]!==u&&o["s-ol"]&&(ne(o).insertBefore(o,te(o)),o["s-ol"].remove(),o["s-ol"]=void 0,h=!0),n&&e(o,n)}_.$flags$&=-2},J=function(e,t,n,i,r,o){var a,s=e["s-cr"]&&e["s-cr"].parentNode||e;for(s.shadowRoot&&s.tagName===u&&(s=s.shadowRoot);r<=o;++r)i[r]&&((a=X(null,n,r,e))&&(i[r].$elm$=a,s.insertBefore(a,te(t))))},$=function(e,t,n,i,r){for(;t<=n;++t)(i=e[t])&&(r=i.$elm$,le(i),d=!0,r["s-ol"]?r["s-ol"].remove():K(r,!0),r.remove())},ee=function(e,t){return e.$tag$===t.$tag$&&("slot"===e.$tag$?e.$name$===t.$name$:e.$key$===t.$key$)},te=function(e){return e&&e["s-ol"]||e},ne=function(e){return(e["s-ol"]?e["s-ol"]:e).parentNode},ie=function e(t,n){var i,r=n.$elm$=t.$elm$,o=t.$children$,a=n.$children$,s=n.$tag$,l=n.$text$;null===l?(p="svg"===s||"foreignObject"!==s&&p,"slot"===s||Q(t,n,p),null!==o&&null!==a?function(t,n,i,r){for(var o,a,s=0,l=0,u=0,c=0,d=n.length-1,h=n[0],f=n[d],p=r.length-1,g=r[0],v=r[p];s<=d&&l<=p;)if(null==h)h=n[++s];else if(null==f)f=n[--d];else if(null==g)g=r[++l];else if(null==v)v=r[--p];else if(ee(h,g))e(h,g),h=n[++s],g=r[++l];else if(ee(f,v))e(f,v),f=n[--d],v=r[--p];else if(ee(h,v))"slot"!==h.$tag$&&"slot"!==v.$tag$||K(h.$elm$.parentNode,!1),e(h,v),t.insertBefore(h.$elm$,f.$elm$.nextSibling),h=n[++s],v=r[--p];else if(ee(f,g))"slot"!==h.$tag$&&"slot"!==v.$tag$||K(f.$elm$.parentNode,!1),e(f,g),t.insertBefore(f.$elm$,h.$elm$),f=n[--d],g=r[++l];else{for(u=-1,c=s;c<=d;++c)if(n[c]&&null!==n[c].$key$&&n[c].$key$===g.$key$){u=c;break}u>=0?((a=n[u]).$tag$!==g.$tag$?o=X(n&&n[l],i,u,t):(e(a,g),n[u]=void 0,o=a.$elm$),g=r[++l]):(o=X(n&&n[l],i,l,t),g=r[++l]),o&&ne(h.$elm$).insertBefore(o,te(h.$elm$))}s>d?J(t,null==r[p+1]?null:r[p+1].$elm$,i,r,l,p):l>p&&$(n,s,d)}(r,o,n,a):null!==a?(null!==t.$text$&&(r.textContent=""),J(r,null,n,a,0,a.length-1)):null!==o&&$(o,0,o.length-1),p&&"svg"===s&&(p=!1)):(i=r["s-cr"])?i.parentNode.textContent=l:t.$text$!==l&&(r.data=l)},re=function e(t){var n,i,r,o,a,s,l=t.childNodes;for(i=0,r=l.length;i<r;i++)if(1===(n=l[i]).nodeType){if(n["s-sr"])for(a=n["s-sn"],n.hidden=!1,o=0;o<r;o++)if(s=l[o].nodeType,l[o]["s-hn"]!==n["s-hn"]||""!==a){if(1===s&&a===l[o].getAttribute("slot")){n.hidden=!0;break}}else if(1===s||3===s&&""!==l[o].textContent.trim()){n.hidden=!0;break}e(n)}},oe=[],ae=function e(t){for(var n,i,r,o,a,s,l=0,u=t.childNodes,c=u.length;l<c;l++){if((n=u[l])["s-sr"]&&(i=n["s-cr"])&&i.parentNode)for(r=i.parentNode.childNodes,o=n["s-sn"],s=r.length-1;s>=0;s--)(i=r[s])["s-cn"]||i["s-nr"]||i["s-hn"]===n["s-hn"]||(se(i,o)?(a=oe.find(function(e){return e.$nodeToRelocate$===i}),d=!0,i["s-sn"]=i["s-sn"]||o,a?a.$slotRefNode$=n:oe.push({$slotRefNode$:n,$nodeToRelocate$:i}),i["s-sr"]&&oe.map(function(e){se(e.$nodeToRelocate$,i["s-sn"])&&((a=oe.find(function(e){return e.$nodeToRelocate$===i}))&&!e.$slotRefNode$&&(e.$slotRefNode$=a.$slotRefNode$))})):oe.some(function(e){return e.$nodeToRelocate$===i})||oe.push({$nodeToRelocate$:i}));1===n.nodeType&&e(n)}},se=function(e,t){return 1===e.nodeType?null===e.getAttribute("slot")&&""===t||e.getAttribute("slot")===t:e["s-sn"]===t||""===t},le=function e(t){t.$attrs$&&t.$attrs$.ref&&t.$attrs$.ref(null),t.$children$&&t.$children$.map(e)},ue=function(e){return Te(e).$hostElement$},ce=function(e,t,n){var i=ue(e);return{emit:function(e){return de(i,t,{bubbles:!!(4&n),composed:!!(2&n),cancelable:!!(1&n),detail:e})}}},de=function(e,t,n){var i=_.ce(t,n);return e.dispatchEvent(i),i},he=function(e,t){t&&!e.$onRenderResolve$&&t["s-p"]&&t["s-p"].push(new Promise(function(t){return e.$onRenderResolve$=t}))},fe=function(e,t){if(e.$flags$|=16,!(4&e.$flags$))return he(e,e.$ancestorComponent$),Ze(function(){return pe(e,t)});e.$flags$|=512},pe=function(e,t){var n,i=e.$lazyInstance$;return t&&(e.$flags$|=256,e.$queuedListeners$&&(e.$queuedListeners$.map(function(e){var t=f(e,2),n=t[0],r=t[1];return we(i,n,r)}),e.$queuedListeners$=null),n=we(i,"componentWillLoad")),n=_e(n,function(){return we(i,"componentWillRender")}),_e(n,function(){return ge(e,i,t)})},ge=function(){var e=x(regeneratorRuntime.mark(function e(t,n,i){var r,o,a,s;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:r=t.$hostElement$,o=r["s-rc"],i&&function(e){var t=e.$cmpMeta$,n=e.$hostElement$,i=t.$flags$,r=R(k&&n.shadowRoot?n.shadowRoot:n.getRootNode(),t,e.$modeName$,n);10&i&&(n["s-sc"]=r,n.classList.add(r+"-h"),2&i&&n.classList.add(r+"-s"))}(t),ve(t,n),_.$cssShim$&&_.$cssShim$.updateHost(r),o&&(o.map(function(e){return e()}),r["s-rc"]=void 0),a=r["s-p"],s=function(){return me(t)},0===a.length?s():(Promise.all(a).then(s),t.$flags$|=4,a.length=0);case 4:case"end":return e.stop()}},e)}));return function(t,n,i){return e.apply(this,arguments)}}(),ve=function(e,t,n){try{t=t.render&&t.render(),e.$flags$&=-17,e.$flags$|=2,function(e,t){var n,i=e.$hostElement$,r=e.$cmpMeta$,a=e.$vnode$||H(null,null),l=(n=t)&&n.$tag$===j?t:N(null,null,t);if(u=i.tagName,r.$attrsToReflect$&&(l.$attrs$=l.$attrs$||{},r.$attrsToReflect$.map(function(e){var t=f(e,2),n=t[0],r=t[1];return l.$attrs$[r]=i[n]})),l.$tag$=null,l.$flags$|=4,e.$vnode$=l,l.$elm$=a.$elm$=i.shadowRoot||i,o=i["s-sc"],s=i["s-cr"],c=k&&0!=(1&r.$flags$),d=!1,ie(a,l),_.$flags$|=1,h){var p,g,v,m,y,b;ae(l.$elm$);for(var x=0;x<oe.length;x++)(g=(p=oe[x]).$nodeToRelocate$)["s-ol"]||((v=w.createTextNode(""))["s-nr"]=g,g.parentNode.insertBefore(g["s-ol"]=v,g));for(x=0;x<oe.length;x++)if(g=(p=oe[x]).$nodeToRelocate$,p.$slotRefNode$){for(m=p.$slotRefNode$.parentNode,y=p.$slotRefNode$.nextSibling,v=g["s-ol"];v=v.previousSibling;)if((b=v["s-nr"])&&b["s-sn"]===g["s-sn"]&&m===b.parentNode&&(!(b=b.nextSibling)||!b["s-nr"])){y=b;break}(!y&&m!==g.parentNode||g.nextSibling!==y)&&g!==y&&(!g["s-hn"]&&g["s-ol"]&&(g["s-hn"]=g["s-ol"].parentNode.nodeName),m.insertBefore(g,y))}else 1===g.nodeType&&(g.hidden=!0)}d&&re(l.$elm$),_.$flags$&=-2,oe.length=0}(e,t)}catch(i){Fe(i,e.$hostElement$)}return null},me=function(e){var t=e.$hostElement$,n=e.$lazyInstance$,i=e.$ancestorComponent$;64&e.$flags$?we(n,"componentDidUpdate"):(e.$flags$|=64,ke(t),we(n,"componentDidLoad"),e.$onReadyResolve$(t),i||be()),e.$onInstanceResolve$(t),e.$onRenderResolve$&&(e.$onRenderResolve$(),e.$onRenderResolve$=void 0),512&e.$flags$&&qe(function(){return fe(e,!1)}),e.$flags$&=-517},ye=function(e){var t=Te(e),n=t.$hostElement$.isConnected;return n&&2==(18&t.$flags$)&&fe(t,!1),n},be=function(e){ke(w.documentElement),qe(function(){return de(v,"appload",{detail:{namespace:"ionic"}})})},we=function(e,t,n){if(e&&e[t])try{return e[t](n)}catch(i){Fe(i)}},_e=function(e,t){return e&&e.then?e.then(t):t()},ke=function(e){return e.classList.add("hydrated")},xe=function e(t,n,i,r,o,a,s){var l,u,c,d;if(1===a.nodeType){for((l=a.getAttribute("c-id"))&&((u=l.split("."))[0]!==s&&"0"!==u[0]||(c={$flags$:0,$hostId$:u[0],$nodeId$:u[1],$depth$:u[2],$index$:u[3],$tag$:a.tagName.toLowerCase(),$elm$:a,$attrs$:null,$children$:null,$key$:null,$name$:null,$text$:null},n.push(c),a.removeAttribute("c-id"),t.$children$||(t.$children$=[]),t.$children$[c.$index$]=c,t=c,r&&"0"===c.$depth$&&(r[c.$index$]=c.$elm$))),d=a.childNodes.length-1;d>=0;d--)e(t,n,i,r,o,a.childNodes[d],s);if(a.shadowRoot)for(d=a.shadowRoot.childNodes.length-1;d>=0;d--)e(t,n,i,r,o,a.shadowRoot.childNodes[d],s)}else if(8===a.nodeType)(u=a.nodeValue.split("."))[1]!==s&&"0"!==u[1]||(l=u[0],c={$flags$:0,$hostId$:u[1],$nodeId$:u[2],$depth$:u[3],$index$:u[4],$elm$:a,$attrs$:null,$children$:null,$key$:null,$name$:null,$tag$:null,$text$:null},"t"===l?(c.$elm$=a.nextSibling,c.$elm$&&3===c.$elm$.nodeType&&(c.$text$=c.$elm$.textContent,n.push(c),a.remove(),t.$children$||(t.$children$=[]),t.$children$[c.$index$]=c,r&&"0"===c.$depth$&&(r[c.$index$]=c.$elm$))):c.$hostId$===s&&("s"===l?(c.$tag$="slot",a["s-sn"]=u[5]?c.$name$=u[5]:"",a["s-sr"]=!0,r&&(c.$elm$=w.createElement(c.$tag$),c.$name$&&c.$elm$.setAttribute("name",c.$name$),a.parentNode.insertBefore(c.$elm$,a),a.remove(),"0"===c.$depth$&&(r[c.$index$]=c.$elm$)),i.push(c),t.$children$||(t.$children$=[]),t.$children$[c.$index$]=c):"r"===l&&(r?a.remove():(o["s-cr"]=a,a["s-cn"]=!0))));else if(t&&"style"===t.$tag$){var h=H(null,a.textContent);h.$elm$=a,h.$index$="0",t.$children$=[h]}},Ae=function e(t,n){if(1===t.nodeType){for(var i=0;i<t.childNodes.length;i++)e(t.childNodes[i],n);if(t.shadowRoot)for(i=0;i<t.shadowRoot.childNodes.length;i++)e(t.shadowRoot.childNodes[i],n)}else if(8===t.nodeType){var r=t.nodeValue.split(".");"o"===r[0]&&(n.set(r[1]+"."+r[2],t),t.nodeValue="",t["s-en"]=r[3])}},Ce=function(e,t,n){if(t.$members$){e.watchers&&(t.$watchers$=e.watchers);var i=Object.entries(t.$members$),r=e.prototype;if(i.map(function(e){var i=f(e,2),o=i[0],a=f(i[1],1)[0];31&a||2&n&&32&a?Object.defineProperty(r,o,{get:function(){return e=o,Te(this).$instanceValues$.get(e);var e},set:function(e){var n=this;!function(e,t,i,r){var o,a,s=Te(n),l=s.$hostElement$,u=s.$instanceValues$.get(t),c=s.$flags$,d=s.$lazyInstance$;if(a=r.$members$[t][0],i=null==(o=i)||z(o)?o:4&a?"false"!==o&&(""===o||!!o):2&a?parseFloat(o):1&a?String(o):o,!(8&c&&void 0!==u||i===u)&&(s.$instanceValues$.set(t,i),d)){if(r.$watchers$&&128&c){var h=r.$watchers$[t];h&&h.map(function(e){try{d[e](i,u,t)}catch(n){Fe(n,l)}})}2==(18&c)&&fe(s,!1)}}(0,o,e,t)},configurable:!0,enumerable:!0}):1&n&&64&a&&Object.defineProperty(r,o,{value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var i=Te(this);return i.$onInstancePromise$.then(function(){var e;return(e=i.$lazyInstance$)[o].apply(e,t)})}})}),1&n){var o=new Map;r.attributeChangedCallback=function(e,t,n){var i=this;_.jmp(function(){var t=o.get(e);i[t]=(null!==n||"boolean"!=typeof i[t])&&n})},e.observedAttributes=i.filter(function(e){var t=f(e,2);t[0];return 15&t[1][0]}).map(function(e){var n=f(e,2),i=n[0],r=n[1],a=r[1]||i;return o.set(a,i),512&r[0]&&t.$attrsToReflect$.push([i,a]),a})}}return e},Se=function(e){we(e,"connectedCallback")},Pe=function(e){if(0==(1&_.$flags$)){var t=Te(e),n=t.$cmpMeta$;if(1&t.$flags$)P(e,t,n.$listeners$),Se(t.$lazyInstance$);else{var r;if(t.$flags$|=1,r=e.getAttribute("s-id")){if(k&&1&n.$flags$){var o=R(e.shadowRoot,n,e.getAttribute("s-mode"));e.classList.remove(o+"-h",o+"-s")}!function(e,t,n,i){var r=e.shadowRoot,o=[],a=r?[]:null,s=i.$vnode$=H(t,null);_.$orgLocNodes$||Ae(w.body,_.$orgLocNodes$=new Map),e["s-id"]=n,e.removeAttribute("s-id"),xe(s,o,[],a,e,e,n),o.map(function(e){var n=e.$hostId$+"."+e.$nodeId$,i=_.$orgLocNodes$.get(n),o=e.$elm$;i&&k&&""===i["s-en"]&&i.parentNode.insertBefore(o,i.nextSibling),r||(o["s-hn"]=t,i&&(o["s-ol"]=i,o["s-ol"]["s-nr"]=o)),_.$orgLocNodes$.delete(n)}),r&&a.map(function(e){e&&r.appendChild(e)})}(e,n.$tagName$,r,t)}r||12&n.$flags$&&Ee(e);for(var a=e;a=a.parentNode||a.host;)if(1===a.nodeType&&a.hasAttribute("s-id")&&a["s-p"]||a["s-p"]){he(t,t.$ancestorComponent$=a);break}n.$members$&&Object.entries(n.$members$).map(function(t){var n=f(t,2),i=n[0];if(31&f(n[1],1)[0]&&e.hasOwnProperty(i)){var r=e[i];delete e[i],e[i]=r}}),qe(function(){return(r=x(regeneratorRuntime.mark(function e(t,n,r,o,a){var s,l,u,c,d,h;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(0!=(32&n.$flags$)){e.next=25;break}if(n.$flags$|=32,!(a=Ve(r)).then){e.next=7;break}return s=function(){},e.next=5,a;case 5:a=e.sent,s();case 7:a.isProxied||(r.$watchers$=a.watchers,Ce(a,r,2),a.isProxied=!0),n.$flags$|=8;try{new a(n)}catch(o){Fe(o)}if(n.$flags$&=-9,n.$flags$|=128,Se(n.$lazyInstance$),!a.style){e.next=25;break}if("string"!=typeof(l=a.style)&&(l=l[n.$modeName$=function(e){return Ne.map(function(t){return t(e)}).find(function(e){return!!e})}(t)]),u=L(r,n.$modeName$),ze.has(u)){e.next=25;break}if(c=function(){},e.t0=8&r.$flags$,!e.t0){e.next=23;break}return e.next=22,i.e(56).then(i.bind(null,"JmUR")).then(function(e){return e.scopeCss(l,u,!1)});case 22:l=e.sent;case 23:I(u,l,!!(1&r.$flags$)),c();case 25:d=n.$ancestorComponent$,h=function(){return fe(n,!0)},d&&d["s-rc"]?d["s-rc"].push(h):h();case 27:case"end":return e.stop()}},e)})),function(e,t,n,i,o){return r.apply(this,arguments)})(e,t,n);var r})}}},Ee=function(e){var t=e["s-cr"]=w.createComment("");t["s-cn"]=!0,e.insertBefore(t,e.firstChild)},De=function(t){var n,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=[],s=i.exclude||[],u=v.customElements,c=w.head,d=c.querySelector("meta[charset]"),h=w.createElement("style"),f=[],p=w.querySelectorAll("[sty-id]"),g=!0,y=0;for(Object.assign(_,i),_.$resourcesUrl$=new URL(i.resourcesUrl||"./",w.baseURI).href,_.$flags$|=2;y<p.length;y++)I(p[y].getAttribute("sty-id"),p[y].innerHTML.replace(/\/\*!@([^\/]+)\*\/[^\{]+\{/g,"$1{"),!0);t.map(function(t){return t[1].map(function(i){var c={$flags$:i[0],$tagName$:i[1],$members$:i[2],$listeners$:i[3]};c.$members$=i[2],c.$listeners$=i[3],c.$attrsToReflect$=[],c.$watchers$={},!k&&1&c.$flags$&&(c.$flags$|=8);var d=c.$tagName$,h=function(e){r(i,e);var t=a(i);function i(e){var n;return A(this,i),n=t.call(this,e),Re(e=l(n),c),1&c.$flags$&&(k?e.attachShadow({mode:"open",delegatesFocus:!!(16&c.$flags$)}):"shadowRoot"in e||(e.shadowRoot=e)),n}return m(i,[{key:"connectedCallback",value:function(){var e=this;n&&(clearTimeout(n),n=null),g?f.push(this):_.jmp(function(){return Pe(e)})}},{key:"disconnectedCallback",value:function(){var e=this;_.jmp(function(){return function(e){if(0==(1&_.$flags$)){var t=Te(e),n=t.$lazyInstance$;t.$rmListeners$&&(t.$rmListeners$.map(function(e){return e()}),t.$rmListeners$=void 0),_.$cssShim$&&_.$cssShim$.removeHost(e),we(n,"disconnectedCallback")}}(e)})}},{key:"componentOnReady",value:function(){return Te(this).$onReadyPromise$}}]),i}(e(HTMLElement));c.$lazyBundleId$=t[0],s.includes(d)||u.get(d)||(o.push(d),u.define(d,Ce(h,c,1)))})}),h.innerHTML=o+"{visibility:hidden}.hydrated{visibility:inherit}",h.setAttribute("data-styles",""),c.insertBefore(h,d?d.nextSibling:c.firstChild),g=!1,f.length?f.map(function(e){return e.connectedCallback()}):_.jmp(function(){return n=setTimeout(be,30)})},Oe=function(e){var t=new URL(e,_.$resourcesUrl$);return t.origin!==v.location.origin?t.href:t.pathname},Me=new WeakMap,Te=function(e){return Me.get(e)},Ie=function(e,t){return Me.set(t.$lazyInstance$=e,t)},Re=function(e,t){var n={$flags$:0,$hostElement$:e,$cmpMeta$:t,$instanceValues$:new Map};return n.$onInstancePromise$=new Promise(function(e){return n.$onInstanceResolve$=e}),n.$onReadyPromise$=new Promise(function(e){return n.$onReadyResolve$=e}),e["s-p"]=[],e["s-rc"]=[],P(e,n,t.$listeners$),Me.set(e,n)},Le=function(e,t){return t in e},Fe=function(e,t){return(0,console.error)(e,t)},Be=new Map,Ve=function(e,t,n){var r=e.$tagName$.replace(/-/g,"_"),o=e.$lazyBundleId$,a=Be.get(o);return a?a[r]:i("kLfG")("./".concat(o,".entry.js")).then(function(e){return Be.set(o,e),e[r]},Fe)},ze=new Map,Ne=[],He=[],je=[],Ue=function(e,t){return function(n){e.push(n),g||(g=!0,t&&4&_.$flags$?qe(Ge):_.raf(Ge))}},We=function(e){for(var t=0;t<e.length;t++)try{e[t](performance.now())}catch(n){Fe(n)}e.length=0},Ge=function e(){We(He),We(je),(g=He.length>0)&&_.raf(e)},qe=function(e){return C().then(e)},Ye=Ue(He,!1),Ze=Ue(je,!0),Qe={isDev:!1,isBrowser:!0,isServer:!1,isTesting:!1}},y08P:function(e,t,n){"use strict";n.d(t,"a",function(){return o});var i=function(){function e(t,n,i,r,o){A(this,e),this.id=n,this.name=i,this.disableScroll=o,this.priority=1e6*r+n,this.ctrl=t}return m(e,[{key:"canStart",value:function(){return!!this.ctrl&&this.ctrl.canStart(this.name)}},{key:"start",value:function(){return!!this.ctrl&&this.ctrl.start(this.name,this.id,this.priority)}},{key:"capture",value:function(){if(!this.ctrl)return!1;var e=this.ctrl.capture(this.name,this.id,this.priority);return e&&this.disableScroll&&this.ctrl.disableScroll(this.id),e}},{key:"release",value:function(){this.ctrl&&(this.ctrl.release(this.id),this.disableScroll&&this.ctrl.enableScroll(this.id))}},{key:"destroy",value:function(){this.release(),this.ctrl=void 0}}]),e}(),r=function(){function e(t,n,i,r){A(this,e),this.id=n,this.disable=i,this.disableScroll=r,this.ctrl=t}return m(e,[{key:"block",value:function(){if(this.ctrl){if(this.disable){var e,t=h(this.disable);try{for(t.s();!(e=t.n()).done;){var n=e.value;this.ctrl.disableGesture(n,this.id)}}catch(i){t.e(i)}finally{t.f()}}this.disableScroll&&this.ctrl.disableScroll(this.id)}}},{key:"unblock",value:function(){if(this.ctrl){if(this.disable){var e,t=h(this.disable);try{for(t.s();!(e=t.n()).done;){var n=e.value;this.ctrl.enableGesture(n,this.id)}}catch(i){t.e(i)}finally{t.f()}}this.disableScroll&&this.ctrl.enableScroll(this.id)}}},{key:"destroy",value:function(){this.unblock(),this.ctrl=void 0}}]),e}(),o=new(function(){function e(){A(this,e),this.gestureId=0,this.requestedStart=new Map,this.disabledGestures=new Map,this.disabledScroll=new Set}return m(e,[{key:"createGesture",value:function(e){return new i(this,this.newID(),e.name,e.priority||0,!!e.disableScroll)}},{key:"createBlocker",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new r(this,this.newID(),e.disable,!!e.disableScroll)}},{key:"start",value:function(e,t,n){return this.canStart(e)?(this.requestedStart.set(t,n),!0):(this.requestedStart.delete(t),!1)}},{key:"capture",value:function(e,t,n){if(!this.start(e,t,n))return!1;var i=this.requestedStart,r=-1e4;if(i.forEach(function(e){r=Math.max(r,e)}),r===n){this.capturedId=t,i.clear();var o=new CustomEvent("ionGestureCaptured",{detail:{gestureName:e}});return document.dispatchEvent(o),!0}return i.delete(t),!1}},{key:"release",value:function(e){this.requestedStart.delete(e),this.capturedId===e&&(this.capturedId=void 0)}},{key:"disableGesture",value:function(e,t){var n=this.disabledGestures.get(e);void 0===n&&(n=new Set,this.disabledGestures.set(e,n)),n.add(t)}},{key:"enableGesture",value:function(e,t){var n=this.disabledGestures.get(e);void 0!==n&&n.delete(t)}},{key:"disableScroll",value:function(e){this.disabledScroll.add(e),1===this.disabledScroll.size&&document.body.classList.add("backdrop-no-scroll")}},{key:"enableScroll",value:function(e){this.disabledScroll.delete(e),0===this.disabledScroll.size&&document.body.classList.remove("backdrop-no-scroll")}},{key:"canStart",value:function(e){return void 0===this.capturedId&&!this.isDisabled(e)}},{key:"isCaptured",value:function(){return void 0!==this.capturedId}},{key:"isScrollDisabled",value:function(){return this.disabledScroll.size>0}},{key:"isDisabled",value:function(e){var t=this.disabledGestures.get(e);return!!(t&&t.size>0)}},{key:"newID",value:function(){return this.gestureId++,this.gestureId}}]),e}())}},[[0,1]]])}();
\ No newline at end of file
+!function(){function e(n){var i="function"==typeof Map?new Map:void 0;return(e=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==i){if(i.has(e))return i.get(e);i.set(e,r)}function r(){return t(e,arguments,c(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),o(r,e)})(n)}function t(e,n,i){return(t=u()?Reflect.construct:function(e,t,n){var i=[null];i.push.apply(i,t);var r=new(Function.bind.apply(e,i));return n&&o(r,n.prototype),r}).apply(null,arguments)}function i(e,t,n){return(i="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var i=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=c(e)););return e}(e,t);if(i){var r=Object.getOwnPropertyDescriptor(i,t);return r.get?r.get.call(n):r.value}})(e,t,n||e)}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&o(e,t)}function o(e,t){return(o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function a(e){var t=u();return function(){var n,i=c(e);if(t){var r=c(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return s(this,n)}}function s(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return l(e)}function l(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function u(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=b(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,r=function(){};return{s:r,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function f(e,t){return g(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var i,r,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(i=n.next()).done)&&(o.push(i.value),!t||o.length!==t);a=!0);}catch(l){s=!0,r=l}finally{try{a||null==n.return||n.return()}finally{if(s)throw r}}return o}(e,t)||b(e,t)||p()}function p(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function g(e){if(Array.isArray(e))return e}function v(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function m(e,t,n){return t&&v(e.prototype,t),n&&v(e,n),e}function y(e){return function(e){if(Array.isArray(e))return _(e)}(e)||w(e)||b(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function b(e,t){if(e){if("string"==typeof e)return _(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_(e,t):void 0}}function w(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function _(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function k(e,t,n,i,r,o,a){try{var s=e[o](a),l=s.value}catch(u){return void n(u)}s.done?t(l):Promise.resolve(l).then(i,r)}function x(e){return function(){var t=this,n=arguments;return new Promise(function(i,r){var o=e.apply(t,n);function a(e){k(o,i,r,a,s,"next",e)}function s(e){k(o,i,r,a,s,"throw",e)}a(void 0)})}}function A(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(window.webpackJsonp=window.webpackJsonp||[]).push([[3],{0:function(e,t,n){e.exports=n("m9/o")},"1vRN":function(e,t,n){"use strict";n.d(t,"a",function(){return o}),n.d(t,"b",function(){return a}),n.d(t,"c",function(){return i}),n.d(t,"d",function(){return d}),n.d(t,"e",function(){return h}),n.d(t,"f",function(){return y}),n.d(t,"g",function(){return s}),n.d(t,"h",function(){return c}),n.d(t,"i",function(){return r}),n.d(t,"j",function(){return f}),n.d(t,"k",function(){return u}),n.d(t,"l",function(){return p}),n.d(t,"m",function(){return m}),n.d(t,"n",function(){return b}),n.d(t,"o",function(){return g}),n.d(t,"p",function(){return v}),n.d(t,"q",function(){return l});var i=function(e,t){e.componentOnReady?e.componentOnReady().then(function(e){return t(e)}):l(function(){return t(e)})},r=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n={};return t.forEach(function(t){e.hasAttribute(t)&&(null!==e.getAttribute(t)&&(n[t]=e.getAttribute(t)),e.removeAttribute(t))}),n},o=function(e,t,n,i){if("undefined"!=typeof window){var r=window,o=r&&r.Ionic&&r.Ionic.config;if(o){var a=o.get("_ael");if(a)return a(e,t,n,i);if(o._ael)return o._ael(e,t,n,i)}}return e.addEventListener(t,n,i)},a=function(e,t,n,i){if("undefined"!=typeof window){var r=window,o=r&&r.Ionic&&r.Ionic.config;if(o){var a=o.get("_rel");if(a)return a(e,t,n,i);if(o._rel)return o._rel(e,t,n,i)}}return e.removeEventListener(t,n,i)},s=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;return e.shadowRoot||t},l=function(e){return"function"==typeof __zone_symbol__requestAnimationFrame?__zone_symbol__requestAnimationFrame(e):"function"==typeof requestAnimationFrame?requestAnimationFrame(e):setTimeout(e)},u=function(e){return!!e.shadowRoot&&!!e.attachShadow},c=function(e){var t=e.closest("ion-item");return t?t.querySelector("ion-label"):null},d=function(e,t){var n,i=e.getAttribute("aria-labelledby"),r=e.id,o=null!==i&&""!==i.trim()?i:t+"-lbl",a=null!==i&&""!==i.trim()?document.getElementById(i):c(e);return a?(null===i&&(a.id=o),n=a.textContent,a.setAttribute("aria-hidden","true")):""!==r.trim()&&((a=document.querySelector('label[for="'.concat(r,'"]')))&&(""!==a.id?o=a.id:a.id=o=r+"-lbl",n=a.textContent)),{label:a,labelId:o,labelText:n}},h=function(e,t,n,i,r){if(e||u(t)){var o=t.querySelector("input.aux-input");o||((o=t.ownerDocument.createElement("input")).type="hidden",o.classList.add("aux-input"),t.appendChild(o)),o.disabled=r,o.name=n,o.value=i||""}},f=function(e,t,n){return Math.max(e,Math.min(t,n))},p=function(e,t){if(!e){var n="ASSERT: "+t;throw console.error(n),new Error(n)}},g=function(e){return e.timeStamp||Date.now()},v=function(e){if(e){var t=e.changedTouches;if(t&&t.length>0){var n=t[0];return{x:n.clientX,y:n.clientY}}if(void 0!==e.pageX)return{x:e.pageX,y:e.pageY}}return{x:0,y:0}},m=function(e){var t="rtl"===document.dir;switch(e){case"start":return t;case"end":return!t;default:throw new Error('"'.concat(e,'" is not a valid value for [side]. Use "start" or "end" instead.'))}},y=function(e,t){var n=e._original||e;return{_original:e,emit:b(n.emit.bind(n),t)}},b=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(){for(var i=arguments.length,r=new Array(i),o=0;o<i;o++)r[o]=arguments[o];clearTimeout(t),t=setTimeout.apply(void 0,[e,n].concat(r))}}},"39oe":function(e,t,n){"use strict";n.d(t,"a",function(){return i});var i=function(e){try{if(e instanceof function(){return function e(t){A(this,e),this.value=t}}())return e.value;if(!a()||"string"!=typeof e||""===e)return e;var t=document.createDocumentFragment(),n=document.createElement("div");t.appendChild(n),n.innerHTML=e,l.forEach(function(e){for(var n=t.querySelectorAll(e),i=n.length-1;i>=0;i--){var a=n[i];a.parentNode?a.parentNode.removeChild(a):t.removeChild(a);for(var s=o(a),l=0;l<s.length;l++)r(s[l])}});for(var i=o(t),s=0;s<i.length;s++)r(i[s]);var u=document.createElement("div");u.appendChild(t);var c=u.querySelector("div");return null!==c?c.innerHTML:u.innerHTML}catch(d){return console.error(d),""}},r=function e(t){if(!t.nodeType||1===t.nodeType){for(var n=t.attributes.length-1;n>=0;n--){var i=t.attributes.item(n),r=i.name;if(s.includes(r.toLowerCase())){var a=i.value;null!=a&&a.toLowerCase().includes("javascript:")&&t.removeAttribute(r)}else t.removeAttribute(r)}for(var l=o(t),u=0;u<l.length;u++)e(l[u])}},o=function(e){return null!=e.children?e.children:e.childNodes},a=function(){var e=window,t=e&&e.Ionic&&e.Ionic.config;return!t||(t.get?t.get("sanitizerEnabled",!0):!0===t.sanitizerEnabled||void 0===t.sanitizerEnabled)},s=["class","id","href","src","name","slot"],l=["script","style","iframe","meta","link","object","embed"]},"7OTs":function(e,t,n){"use strict";n.d(t,"a",function(){return L}),n.d(t,"b",function(){return u}),n.d(t,"c",function(){return c}),n.d(t,"d",function(){return p}),n.d(t,"e",function(){return C}),n.d(t,"f",function(){return v}),n.d(t,"g",function(){return P}),n.d(t,"h",function(){return O}),n.d(t,"i",function(){return s}),n.d(t,"j",function(){return T}),n.d(t,"k",function(){return d}),n.d(t,"l",function(){return h}),n.d(t,"m",function(){return f}),n.d(t,"n",function(){return R}),n.d(t,"o",function(){return g});var i=n("E/Mt"),r=n("B4Jq"),o=n("1vRN"),a=0,s=new WeakMap,l=function(e){return{create:function(t){return m(e,t)},dismiss:function(t,n,i){return k(document,t,n,e,i)},getTop:(t=x(regeneratorRuntime.mark(function t(){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",A(document,e));case 1:case"end":return t.stop()}},t)})),function(){return t.apply(this,arguments)})};var t},u=l("ion-alert"),c=l("ion-action-sheet"),d=l("ion-loading"),h=l("ion-modal"),f=l("ion-picker"),p=l("ion-popover"),g=l("ion-toast"),v=function(e){"undefined"!=typeof document&&_(document);var t=a++;e.overlayIndex=t,e.hasAttribute("id")||(e.id="ion-overlay-"+t)},m=function(e,t){return"undefined"!=typeof customElements?customElements.whenDefined(e).then(function(){var n=document.createElement(e);return n.classList.add("overlay-hidden"),Object.assign(n,t),E(document).appendChild(n),new Promise(function(e){return Object(o.c)(n,e)})}):Promise.resolve()},b='[tabindex]:not([tabindex^="-"]), input:not([type=hidden]):not([tabindex^="-"]), textarea:not([tabindex^="-"]), button:not([tabindex^="-"]), select:not([tabindex^="-"]), .ion-focusable:not([tabindex^="-"])',w="input:not([type=hidden]), textarea, button, select",_=function(e){0===a&&(a=1,e.addEventListener("focus",function(t){return function(e,t){var n,i,r,a=A(t),s=e.target;if(a&&s)if(a===s)a.lastFocus=void 0;else{var l=Object(o.g)(a);if(!l.contains(s))return;var u=l.querySelector(".ion-overlay-wrapper");if(!u)return;if(u.contains(s))a.lastFocus=s;else{var c=a.lastFocus;n=a,i=u.querySelector(b),(r=i&&i.shadowRoot)&&(i=r.querySelector(w)||i),i?i.focus():n.focus(),c===t.activeElement&&function(e,t){var n=Array.from(e.querySelectorAll(b)),i=n.length>0?n[n.length-1]:null,r=i&&i.shadowRoot;r&&(i=r.querySelector(w)||i),i?i.focus():t.focus()}(u,a),a.lastFocus=t.activeElement}}}(t,e)},!0),e.addEventListener("ionBackButton",function(t){var n=A(e);n&&n.backdropDismiss&&t.detail.register(r.OVERLAY_BACK_BUTTON_PRIORITY,function(){return n.dismiss(void 0,L)})}),e.addEventListener("keyup",function(t){if("Escape"===t.key){var n=A(e);n&&n.backdropDismiss&&n.dismiss(void 0,L)}}))},k=function(e,t,n,i,r){var o=A(e,i,r);return o?o.dismiss(t,n):Promise.reject("overlay does not exist")},A=function(e,t,n){var i=function(e,t){return void 0===t&&(t="ion-alert,ion-action-sheet,ion-loading,ion-modal,ion-picker,ion-popover,ion-toast"),Array.from(e.querySelectorAll(t)).filter(function(e){return e.overlayIndex>0})}(e,t);return void 0===n?i[i.length-1]:i.find(function(e){return e.id===n})},C=function(){var e=x(regeneratorRuntime.mark(function e(t,n,r,o,a){var s,l;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!t.presented){e.next=2;break}return e.abrupt("return");case 2:return t.presented=!0,t.willPresent.emit(),s=Object(i.b)(t),l=t.enterAnimation?t.enterAnimation:i.c.get(n,"ios"===s?r:o),e.next=6,D(t,l,t.el,a);case 6:if(e.t0=e.sent,!e.t0){e.next=9;break}t.didPresent.emit();case 9:"ION-TOAST"!==t.el.tagName&&S(t.el),t.keyboardClose&&t.el.focus();case 11:case"end":return e.stop()}},e)}));return function(t,n,i,r,o){return e.apply(this,arguments)}}(),S=function(){var e=x(regeneratorRuntime.mark(function e(t){var n,i;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(n=document.activeElement){e.next=3;break}return e.abrupt("return");case 3:return(i=n&&n.shadowRoot)&&(n=i.querySelector(w)||n),e.next=7,t.onDidDismiss();case 7:n.focus();case 8:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}(),P=function(){var e=x(regeneratorRuntime.mark(function e(t,n,r,o,a,l,u){var c,d;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t.presented){e.next=2;break}return e.abrupt("return",!1);case 2:if(t.presented=!1,e.prev=3,t.el.style.setProperty("pointer-events","none"),t.willDismiss.emit({data:n,role:r}),c=Object(i.b)(t),d=t.leaveAnimation?t.leaveAnimation:i.c.get(o,"ios"===c?a:l),e.t0="gesture"!==r,!e.t0){e.next=10;break}return e.next=10,D(t,d,t.el,u);case 10:t.didDismiss.emit({data:n,role:r}),s.delete(t),e.next=17;break;case 14:e.prev=14,e.t1=e.catch(3),console.error(e.t1);case 17:return e.abrupt("return",(t.el.remove(),!0));case 18:case"end":return e.stop()}},e,null,[[3,14]])}));return function(t,n,i,r,o,a,s){return e.apply(this,arguments)}}(),E=function(e){return e.querySelector("ion-app")||e.body},D=function(){var e=x(regeneratorRuntime.mark(function e(t,n,r,o){var a,l;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r.classList.remove("overlay-hidden"),a=n(r.shadowRoot||t.el,o),t.animated&&i.c.getBoolean("animated",!0)||a.duration(0),t.keyboardClose&&a.beforeAddWrite(function(){var e=r.ownerDocument.activeElement;e&&e.matches("input, ion-input, ion-textarea")&&e.blur()}),l=s.get(t)||[],s.set(t,[].concat(y(l),[a])),e.next=7,a.play();case 7:return e.abrupt("return",!0);case 8:case"end":return e.stop()}},e)}));return function(t,n,i,r){return e.apply(this,arguments)}}(),O=function(e,t){var n,i=new Promise(function(e){return n=e});return M(e,t,function(e){n(e.detail)}),i},M=function(e,t,n){Object(o.a)(e,t,function i(r){Object(o.b)(e,t,i),n(r)})},T=function(e){return"cancel"===e||e===L},I=function(e){return e()},R=function(e,t){if("function"==typeof e)return i.c.get("_zoneGate",I)(function(){try{return e(t)}catch(n){console.error(n)}})},L="backdrop"},B4Jq:function(e,t,n){"use strict";n.r(t),n.d(t,"MENU_BACK_BUTTON_PRIORITY",function(){return a}),n.d(t,"OVERLAY_BACK_BUTTON_PRIORITY",function(){return o}),n.d(t,"blockHardwareBackButton",function(){return i}),n.d(t,"startHardwareBackButton",function(){return r});var i=function(){document.addEventListener("backbutton",function(){})},r=function(){var e=document,t=!1;e.addEventListener("backbutton",function(){if(!t){var n=0,i=[],r=new CustomEvent("ionBackButton",{bubbles:!1,detail:{register:function(e,t){i.push({priority:e,handler:t,id:n++})}}});e.dispatchEvent(r);!function e(){if(i.length>0){var n={priority:Number.MIN_SAFE_INTEGER,handler:function(){},id:-1};i.forEach(function(e){e.priority>=n.priority&&(n=e)}),t=!0,i=i.filter(function(e){return e.id!==n.id}),(r=x(regeneratorRuntime.mark(function t(n){var i;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,!n||!n.handler){t.next=7;break}if(i=n.handler(e),t.t0=null!=i,!t.t0){t.next=7;break}return t.next=7,i;case 7:t.next=12;break;case 9:t.prev=9,t.t1=t.catch(0),console.error(t.t1);case 12:case"end":return t.stop()}},t,null,[[0,9]])})),function(e){return r.apply(this,arguments)})(n).then(function(){return t=!1})}var r}()}})},o=100,a=99},"E/Mt":function(e,t,n){"use strict";n.d(t,"a",function(){return a}),n.d(t,"b",function(){return _}),n.d(t,"c",function(){return w}),n.d(t,"d",function(){return o}),n.d(t,"e",function(){return k});var i,r=n("wEJo"),o=function(e){return s(e)},a=function(e,t){return"string"==typeof e&&(t=e,e=void 0),o(e).includes(t)},s=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window;if(void 0===e)return[];e.Ionic=e.Ionic||{};var t=e.Ionic.platforms;return null==t&&(t=e.Ionic.platforms=l(e)).forEach(function(t){return e.document.documentElement.classList.add("plt-"+t)}),t},l=function(e){return Object.keys(b).filter(function(t){return b[t](e)})},u=function(e){return!!v(e,/iPad/i)||!(!v(e,/Macintosh/i)||!d(e))},c=function(e){return v(e,/android|sink/i)},d=function(e){return y(e,"(any-pointer:coarse)")},h=function(e){return p(e)||g(e)},p=function(e){return!!(e.cordova||e.phonegap||e.PhoneGap)},g=function(e){var t=e.Capacitor;return!(!t||!t.isNative)},v=function(e,t){return t.test(e.navigator.userAgent)},y=function(e,t){return e.matchMedia(t).matches},b={ipad:u,iphone:function(e){return v(e,/iPhone/i)},ios:function(e){return v(e,/iPhone|iPod/i)||u(e)},android:c,phablet:function(e){var t=e.innerWidth,n=e.innerHeight,i=Math.min(t,n),r=Math.max(t,n);return i>390&&i<520&&r>620&&r<800},tablet:function(e){var t=e.innerWidth,n=e.innerHeight,i=Math.min(t,n),r=Math.max(t,n);return u(e)||function(e){return c(e)&&!v(e,/mobile/i)}(e)||i>460&&i<820&&r>780&&r<1400},cordova:p,capacitor:g,electron:function(e){return v(e,/electron/i)},pwa:function(e){return!(!e.matchMedia("(display-mode: standalone)").matches&&!e.navigator.standalone)},mobile:d,mobileweb:function(e){return d(e)&&!h(e)},desktop:function(e){return!d(e)},hybrid:h},w=new(function(){function e(){A(this,e),this.m=new Map}return m(e,[{key:"reset",value:function(e){this.m=new Map(Object.entries(e))}},{key:"get",value:function(e,t){var n=this.m.get(e);return void 0!==n?n:t}},{key:"getBoolean",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.m.get(e);return void 0===n?t:"string"==typeof n?"true"===n:!!n}},{key:"getNumber",value:function(e,t){var n=parseFloat(this.m.get(e));return isNaN(n)?void 0!==t?t:NaN:n}},{key:"set",value:function(e,t){this.m.set(e,t)}}]),e}()),_=function(e){return e&&Object(r.i)(e)||i},k=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if("undefined"!=typeof window){var t=window.document,n=window,o=n.Ionic=n.Ionic||{};s(n);var l=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},function(e){try{var t=e.sessionStorage.getItem("ionic-persist-config");return null!==t?JSON.parse(t):{}}catch(n){return{}}}(n)),{persistConfig:!1}),o.config),function(e){var t={};return e.location.search.slice(1).split("&").map(function(e){return e.split("=")}).map(function(e){var t=f(e,2),n=t[0],i=t[1];return[decodeURIComponent(n),decodeURIComponent(i)]}).filter(function(e){return"ionic:"===f(e,1)[0].substr(0,"ionic:".length)}).map(function(e){var t=f(e,2),n=t[0],i=t[1];return[n.slice("ionic:".length),i]}).forEach(function(e){var n=f(e,2),i=n[0],r=n[1];t[i]=r}),t}(n)),e);w.reset(l),w.getBoolean("persistConfig")&&function(e,t){try{e.sessionStorage.setItem("ionic-persist-config",JSON.stringify(t))}catch(n){return}}(n,l),o.config=w,o.mode=i=w.get("mode",t.documentElement.getAttribute("mode")||(a(n,"ios")?"ios":"md")),w.set("mode",i),t.documentElement.setAttribute("mode",i),t.documentElement.classList.add(i),w.getBoolean("_testing")&&w.set("animated",!1);var u=function(e){return e.tagName&&e.tagName.startsWith("ION-")},c=function(e){return["ios","md"].includes(e)};Object(r.p)(function(e){for(;e;){var t=e.mode||e.getAttribute("mode");if(t){if(c(t))return t;u(e)&&console.warn('Invalid ionic mode: "'+t+'", expected: "ios" or "md"')}e=e.parentElement}return i})}}},Hfs6:function(e,t,n){var i,r,o;!function(a){if("object"==typeof e.exports){var s=a(0,t);void 0!==s&&(e.exports=s)}else r=[n,t],void 0===(o="function"==typeof(i=a)?i.apply(t,r):i)||(e.exports=o)}(function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=void 0;t.default=["fr",[["AM","PM"],n,n],n,[["D","L","M","M","J","V","S"],["dim.","lun.","mar.","mer.","jeu.","ven.","sam."],["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"],["di","lu","ma","me","je","ve","sa"]],n,[["J","F","M","A","M","J","J","A","S","O","N","D"],["janv.","f\xe9vr.","mars","avr.","mai","juin","juil.","ao\xfbt","sept.","oct.","nov.","d\xe9c."],["janvier","f\xe9vrier","mars","avril","mai","juin","juillet","ao\xfbt","septembre","octobre","novembre","d\xe9cembre"]],n,[["av. J.-C.","ap. J.-C."],n,["avant J\xe9sus-Christ","apr\xe8s J\xe9sus-Christ"]],1,[6,0],["dd/MM/y","d MMM y","d MMMM y","EEEE d MMMM y"],["HH:mm","HH:mm:ss","HH:mm:ss z","HH:mm:ss zzzz"],["{1} {0}","{1} '\xe0' {0}",n,n],[",","\u202f",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0\xa0%","#,##0.00\xa0\xa4","#E0"],"EUR","\u20ac","euro",{ARS:["$AR","$"],AUD:["$AU","$"],BEF:["FB"],BMD:["$BM","$"],BND:["$BN","$"],BZD:["$BZ","$"],CAD:["$CA","$"],CLP:["$CL","$"],CNY:[n,"\xa5"],COP:["$CO","$"],CYP:["\xa3CY"],EGP:[n,"\xa3E"],FJD:["$FJ","$"],FKP:["\xa3FK","\xa3"],FRF:["F"],GBP:["\xa3GB","\xa3"],GIP:["\xa3GI","\xa3"],HKD:[n,"$"],IEP:["\xa3IE"],ILP:["\xa3IL"],ITL:["\u20a4IT"],JPY:[n,"\xa5"],KMF:[n,"FC"],LBP:["\xa3LB","\xa3L"],MTP:["\xa3MT"],MXN:["$MX","$"],NAD:["$NA","$"],NIO:[n,"$C"],NZD:["$NZ","$"],RHD:["$RH"],RON:[n,"L"],RWF:[n,"FR"],SBD:["$SB","$"],SGD:["$SG","$"],SRD:["$SR","$"],TOP:[n,"$T"],TTD:["$TT","$"],TWD:[n,"NT$"],USD:["$US","$"],UYU:["$UY","$"],WST:["$WS"],XCD:[n,"$"],XPF:["FCFP"],ZMW:[n,"Kw"]},"ltr",function(e){var t=Math.floor(Math.abs(e));return 0===t||1===t?1:5}]})},MYvV:function(e,t){function n(e){return Promise.resolve().then(function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t})}n.keys=function(){return[]},n.resolve=n,e.exports=n,n.id="MYvV"},RQGG:function(e,t,n){"use strict";n.r(t),n.d(t,"mdTransitionAnimation",function(){return o});var i=n("meiF"),r=n("k4ps");n("1vRN"),n("wEJo");var o=function(e,t){var n="back"===t.direction,o=t.enteringEl,a=t.leavingEl,s=Object(r.g)(o),l=s.querySelector("ion-toolbar"),u=Object(i.a)();if(u.addElement(s).fill("both").beforeRemoveClass("ion-page-invisible"),n?u.duration(t.duration||200).easing("cubic-bezier(0.47,0,0.745,0.715)"):u.duration(t.duration||280).easing("cubic-bezier(0.36,0.66,0.04,1)").fromTo("transform","translateY(40px)","translateY(0px)").fromTo("opacity",.01,1),l){var c=Object(i.a)();c.addElement(l),u.addAnimation(c)}if(a&&n){u.duration(t.duration||200).easing("cubic-bezier(0.47,0,0.745,0.715)");var d=Object(i.a)();d.addElement(Object(r.g)(a)).onFinish(function(e){1===e&&d.elements.length>0&&d.elements[0].style.setProperty("display","none")}).fromTo("transform","translateY(0px)","translateY(40px)").fromTo("opacity",1,0),u.addAnimation(d)}return u}},b0Xh:function(e,t,i){var r;(function(){var i=function e(t){return t instanceof e?t:this instanceof e?void(this.EXIFwrapped=t):new e(t)};e.exports&&(t=e.exports=i),t.EXIF=i;var o=i.Tags={36864:"ExifVersion",40960:"FlashpixVersion",40961:"ColorSpace",40962:"PixelXDimension",40963:"PixelYDimension",37121:"ComponentsConfiguration",37122:"CompressedBitsPerPixel",37500:"MakerNote",37510:"UserComment",40964:"RelatedSoundFile",36867:"DateTimeOriginal",36868:"DateTimeDigitized",37520:"SubsecTime",37521:"SubsecTimeOriginal",37522:"SubsecTimeDigitized",33434:"ExposureTime",33437:"FNumber",34850:"ExposureProgram",34852:"SpectralSensitivity",34855:"ISOSpeedRatings",34856:"OECF",37377:"ShutterSpeedValue",37378:"ApertureValue",37379:"BrightnessValue",37380:"ExposureBias",37381:"MaxApertureValue",37382:"SubjectDistance",37383:"MeteringMode",37384:"LightSource",37385:"Flash",37396:"SubjectArea",37386:"FocalLength",41483:"FlashEnergy",41484:"SpatialFrequencyResponse",41486:"FocalPlaneXResolution",41487:"FocalPlaneYResolution",41488:"FocalPlaneResolutionUnit",41492:"SubjectLocation",41493:"ExposureIndex",41495:"SensingMethod",41728:"FileSource",41729:"SceneType",41730:"CFAPattern",41985:"CustomRendered",41986:"ExposureMode",41987:"WhiteBalance",41988:"DigitalZoomRation",41989:"FocalLengthIn35mmFilm",41990:"SceneCaptureType",41991:"GainControl",41992:"Contrast",41993:"Saturation",41994:"Sharpness",41995:"DeviceSettingDescription",41996:"SubjectDistanceRange",40965:"InteroperabilityIFDPointer",42016:"ImageUniqueID"},a=i.TiffTags={256:"ImageWidth",257:"ImageHeight",34665:"ExifIFDPointer",34853:"GPSInfoIFDPointer",40965:"InteroperabilityIFDPointer",258:"BitsPerSample",259:"Compression",262:"PhotometricInterpretation",274:"Orientation",277:"SamplesPerPixel",284:"PlanarConfiguration",530:"YCbCrSubSampling",531:"YCbCrPositioning",282:"XResolution",283:"YResolution",296:"ResolutionUnit",273:"StripOffsets",278:"RowsPerStrip",279:"StripByteCounts",513:"JPEGInterchangeFormat",514:"JPEGInterchangeFormatLength",301:"TransferFunction",318:"WhitePoint",319:"PrimaryChromaticities",529:"YCbCrCoefficients",532:"ReferenceBlackWhite",306:"DateTime",270:"ImageDescription",271:"Make",272:"Model",305:"Software",315:"Artist",33432:"Copyright"},s=i.GPSTags={0:"GPSVersionID",1:"GPSLatitudeRef",2:"GPSLatitude",3:"GPSLongitudeRef",4:"GPSLongitude",5:"GPSAltitudeRef",6:"GPSAltitude",7:"GPSTimeStamp",8:"GPSSatellites",9:"GPSStatus",10:"GPSMeasureMode",11:"GPSDOP",12:"GPSSpeedRef",13:"GPSSpeed",14:"GPSTrackRef",15:"GPSTrack",16:"GPSImgDirectionRef",17:"GPSImgDirection",18:"GPSMapDatum",19:"GPSDestLatitudeRef",20:"GPSDestLatitude",21:"GPSDestLongitudeRef",22:"GPSDestLongitude",23:"GPSDestBearingRef",24:"GPSDestBearing",25:"GPSDestDistanceRef",26:"GPSDestDistance",27:"GPSProcessingMethod",28:"GPSAreaInformation",29:"GPSDateStamp",30:"GPSDifferential"},l=i.IFD1Tags={256:"ImageWidth",257:"ImageHeight",258:"BitsPerSample",259:"Compression",262:"PhotometricInterpretation",273:"StripOffsets",274:"Orientation",277:"SamplesPerPixel",278:"RowsPerStrip",279:"StripByteCounts",282:"XResolution",283:"YResolution",284:"PlanarConfiguration",296:"ResolutionUnit",513:"JpegIFOffset",514:"JpegIFByteCount",529:"YCbCrCoefficients",530:"YCbCrSubSampling",531:"YCbCrPositioning",532:"ReferenceBlackWhite"},u=i.StringValues={ExposureProgram:{0:"Not defined",1:"Manual",2:"Normal program",3:"Aperture priority",4:"Shutter priority",5:"Creative program",6:"Action program",7:"Portrait mode",8:"Landscape mode"},MeteringMode:{0:"Unknown",1:"Average",2:"CenterWeightedAverage",3:"Spot",4:"MultiSpot",5:"Pattern",6:"Partial",255:"Other"},LightSource:{0:"Unknown",1:"Daylight",2:"Fluorescent",3:"Tungsten (incandescent light)",4:"Flash",9:"Fine weather",10:"Cloudy weather",11:"Shade",12:"Daylight fluorescent (D 5700 - 7100K)",13:"Day white fluorescent (N 4600 - 5400K)",14:"Cool white fluorescent (W 3900 - 4500K)",15:"White fluorescent (WW 3200 - 3700K)",17:"Standard light A",18:"Standard light B",19:"Standard light C",20:"D55",21:"D65",22:"D75",23:"D50",24:"ISO studio tungsten",255:"Other"},Flash:{0:"Flash did not fire",1:"Flash fired",5:"Strobe return light not detected",7:"Strobe return light detected",9:"Flash fired, compulsory flash mode",13:"Flash fired, compulsory flash mode, return light not detected",15:"Flash fired, compulsory flash mode, return light detected",16:"Flash did not fire, compulsory flash mode",24:"Flash did not fire, auto mode",25:"Flash fired, auto mode",29:"Flash fired, auto mode, return light not detected",31:"Flash fired, auto mode, return light detected",32:"No flash function",65:"Flash fired, red-eye reduction mode",69:"Flash fired, red-eye reduction mode, return light not detected",71:"Flash fired, red-eye reduction mode, return light detected",73:"Flash fired, compulsory flash mode, red-eye reduction mode",77:"Flash fired, compulsory flash mode, red-eye reduction mode, return light not detected",79:"Flash fired, compulsory flash mode, red-eye reduction mode, return light detected",89:"Flash fired, auto mode, red-eye reduction mode",93:"Flash fired, auto mode, return light not detected, red-eye reduction mode",95:"Flash fired, auto mode, return light detected, red-eye reduction mode"},SensingMethod:{1:"Not defined",2:"One-chip color area sensor",3:"Two-chip color area sensor",4:"Three-chip color area sensor",5:"Color sequential area sensor",7:"Trilinear sensor",8:"Color sequential linear sensor"},SceneCaptureType:{0:"Standard",1:"Landscape",2:"Portrait",3:"Night scene"},SceneType:{1:"Directly photographed"},CustomRendered:{0:"Normal process",1:"Custom process"},WhiteBalance:{0:"Auto white balance",1:"Manual white balance"},GainControl:{0:"None",1:"Low gain up",2:"High gain up",3:"Low gain down",4:"High gain down"},Contrast:{0:"Normal",1:"Soft",2:"Hard"},Saturation:{0:"Normal",1:"Low saturation",2:"High saturation"},Sharpness:{0:"Normal",1:"Soft",2:"Hard"},SubjectDistanceRange:{0:"Unknown",1:"Macro",2:"Close view",3:"Distant view"},FileSource:{3:"DSC"},Components:{0:"",1:"Y",2:"Cb",3:"Cr",4:"R",5:"G",6:"B"}};function c(e){return!!e.exifdata}function d(e){var t=new DataView(e);if(255!=t.getUint8(0)||216!=t.getUint8(1))return!1;for(var n=2,i=e.byteLength;n<i;){if(255!=t.getUint8(n))return!1;if(225==t.getUint8(n+1))return m(t,n+4,t.getUint16(n+2));n+=2+t.getUint16(n+2)}}var h={120:"caption",110:"credit",25:"keywords",55:"dateCreated",80:"byline",85:"bylineTitle",122:"captionWriter",105:"headline",116:"copyright",15:"category"};function f(e,t,n){for(var i,r,o,a,s=new DataView(e),l={},u=t;u<t+n;)28===s.getUint8(u)&&2===s.getUint8(u+1)&&(a=s.getUint8(u+2))in h&&(o=s.getInt16(u+3),r=h[a],i=v(s,u+5,o),l.hasOwnProperty(r)?l[r]instanceof Array?l[r].push(i):l[r]=[l[r],i]:l[r]=i),u++;return l}function p(e,t,n,i,r){var o,a,s=e.getUint16(n,!r),l={};for(a=0;a<s;a++)l[i[e.getUint16(o=n+12*a+2,!r)]]=g(e,o,t,0,r);return l}function g(e,t,n,i,r){var o,a,s,l,u,c,d=e.getUint16(t+2,!r),h=e.getUint32(t+4,!r),f=e.getUint32(t+8,!r)+n;switch(d){case 1:case 7:if(1==h)return e.getUint8(t+8,!r);for(o=h>4?f:t+8,a=[],l=0;l<h;l++)a[l]=e.getUint8(o+l);return a;case 2:return v(e,o=h>4?f:t+8,h-1);case 3:if(1==h)return e.getUint16(t+8,!r);for(o=h>2?f:t+8,a=[],l=0;l<h;l++)a[l]=e.getUint16(o+2*l,!r);return a;case 4:if(1==h)return e.getUint32(t+8,!r);for(a=[],l=0;l<h;l++)a[l]=e.getUint32(f+4*l,!r);return a;case 5:if(1==h)return u=e.getUint32(f,!r),c=e.getUint32(f+4,!r),(s=new Number(u/c)).numerator=u,s.denominator=c,s;for(a=[],l=0;l<h;l++)u=e.getUint32(f+8*l,!r),c=e.getUint32(f+4+8*l,!r),a[l]=new Number(u/c),a[l].numerator=u,a[l].denominator=c;return a;case 9:if(1==h)return e.getInt32(t+8,!r);for(a=[],l=0;l<h;l++)a[l]=e.getInt32(f+4*l,!r);return a;case 10:if(1==h)return e.getInt32(f,!r)/e.getInt32(f+4,!r);for(a=[],l=0;l<h;l++)a[l]=e.getInt32(f+8*l,!r)/e.getInt32(f+4+8*l,!r);return a}}function v(e,t,i){var r="";for(n=t;n<t+i;n++)r+=String.fromCharCode(e.getUint8(n));return r}function m(e,t){if("Exif"!=v(e,t,4))return!1;var n,i,r,c,d,h=t+6;if(18761==e.getUint16(h))n=!1;else{if(19789!=e.getUint16(h))return!1;n=!0}if(42!=e.getUint16(h+2,!n))return!1;var f=e.getUint32(h+4,!n);if(f<8)return!1;if((i=p(e,h,h+f,a,n)).ExifIFDPointer)for(r in c=p(e,h,h+i.ExifIFDPointer,o,n)){switch(r){case"LightSource":case"Flash":case"MeteringMode":case"ExposureProgram":case"SensingMethod":case"SceneCaptureType":case"SceneType":case"CustomRendered":case"WhiteBalance":case"GainControl":case"Contrast":case"Saturation":case"Sharpness":case"SubjectDistanceRange":case"FileSource":c[r]=u[r][c[r]];break;case"ExifVersion":case"FlashpixVersion":c[r]=String.fromCharCode(c[r][0],c[r][1],c[r][2],c[r][3]);break;case"ComponentsConfiguration":c[r]=u.Components[c[r][0]]+u.Components[c[r][1]]+u.Components[c[r][2]]+u.Components[c[r][3]]}i[r]=c[r]}if(i.GPSInfoIFDPointer)for(r in d=p(e,h,h+i.GPSInfoIFDPointer,s,n)){switch(r){case"GPSVersionID":d[r]=d[r][0]+"."+d[r][1]+"."+d[r][2]+"."+d[r][3]}i[r]=d[r]}return i.thumbnail=function(e,t,n,i){var r=function(e,t,n){var i=e.getUint16(t,!n);return e.getUint32(t+2+12*i,!n)}(e,t+n,i);if(!r)return{};if(r>e.byteLength)return{};var o=p(e,t,t+r,l,i);if(o.Compression)switch(o.Compression){case 6:o.JpegIFOffset&&o.JpegIFByteCount&&(o.blob=new Blob([new Uint8Array(e.buffer,t+o.JpegIFOffset,o.JpegIFByteCount)],{type:"image/jpeg"}));break;case 1:console.log("Thumbnail image format is TIFF, which is not implemented.");break;default:console.log("Unknown thumbnail image format '%s'",o.Compression)}else 2==o.PhotometricInterpretation&&console.log("Thumbnail image format is RGB, which is not implemented.");return o}(e,h,f,n),i}function y(e){var t={};if(1==e.nodeType){if(e.attributes.length>0){t["@attributes"]={};for(var n=0;n<e.attributes.length;n++){var i=e.attributes.item(n);t["@attributes"][i.nodeName]=i.nodeValue}}}else if(3==e.nodeType)return e.nodeValue;if(e.hasChildNodes())for(var r=0;r<e.childNodes.length;r++){var o=e.childNodes.item(r),a=o.nodeName;if(null==t[a])t[a]=y(o);else{if(null==t[a].push){var s=t[a];t[a]=[],t[a].push(s)}t[a].push(y(o))}}return t}function b(e){try{var t={};if(e.children.length>0)for(var n=0;n<e.children.length;n++){var i=e.children.item(n),r=i.attributes;for(var o in r){var a=r[o],s=a.nodeName;void 0!==s&&(t[s]=a.nodeValue)}var l=i.nodeName;if(void 0===t[l])t[l]=y(i);else{if(void 0===t[l].push){var u=t[l];t[l]=[],t[l].push(u)}t[l].push(y(i))}}else t=e.textContent;return t}catch(c){console.log(c.message)}}i.enableXmp=function(){i.isXmpEnabled=!0},i.disableXmp=function(){i.isXmpEnabled=!1},i.getData=function(e,t){return!((self.Image&&e instanceof self.Image||self.HTMLImageElement&&e instanceof self.HTMLImageElement)&&!e.complete||(c(e)?t&&t.call(e):function(e,t){function n(n){var r=d(n);e.exifdata=r||{};var o=function(e){var t=new DataView(e);if(255!=t.getUint8(0)||216!=t.getUint8(1))return!1;for(var n=2,i=e.byteLength,r=function(e,t){return 56===e.getUint8(t)&&66===e.getUint8(t+1)&&73===e.getUint8(t+2)&&77===e.getUint8(t+3)&&4===e.getUint8(t+4)&&4===e.getUint8(t+5)};n<i;){if(r(t,n)){var o=t.getUint8(n+7);return o%2!=0&&(o+=1),0===o&&(o=4),f(e,n+8+o,t.getUint16(n+6+o))}n++}}(n);if(e.iptcdata=o||{},i.isXmpEnabled){var a=function(e){if("DOMParser"in self){var t=new DataView(e);if(255!=t.getUint8(0)||216!=t.getUint8(1))return!1;for(var n=2,i=e.byteLength,r=new DOMParser;n<i-4;){if("http"==v(t,n,4)){var o=n-1,a=t.getUint16(n-2)-1,s=v(t,o,a),l=s.indexOf("xmpmeta>")+8,u=(s=s.substring(s.indexOf("<x:xmpmeta"),l)).indexOf("x:xmpmeta")+10;return s=s.slice(0,u)+'xmlns:Iptc4xmpCore="http://iptc.org/std/Iptc4xmpCore/1.0/xmlns/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tiff="http://ns.adobe.com/tiff/1.0/" xmlns:plus="http://schemas.android.com/apk/lib/com.google.android.gms.plus" xmlns:ext="http://www.gettyimages.com/xsltExtension/1.0" xmlns:exif="http://ns.adobe.com/exif/1.0/" xmlns:stEvt="http://ns.adobe.com/xap/1.0/sType/ResourceEvent#" xmlns:stRef="http://ns.adobe.com/xap/1.0/sType/ResourceRef#" xmlns:crs="http://ns.adobe.com/camera-raw-settings/1.0/" xmlns:xapGImg="http://ns.adobe.com/xap/1.0/g/img/" xmlns:Iptc4xmpExt="http://iptc.org/std/Iptc4xmpExt/2008-02-29/" '+s.slice(u),b(r.parseFromString(s,"text/xml"))}n++}}}(n);e.xmpdata=a||{}}t&&t.call(e)}if(e.src)if(/^data\:/i.test(e.src))n(function(e,t){t=t||e.match(/^data\:([^\;]+)\;base64,/im)[1]||"",e=e.replace(/^data\:([^\;]+)\;base64,/gim,"");for(var n=atob(e),i=n.length,r=new ArrayBuffer(i),o=new Uint8Array(r),a=0;a<i;a++)o[a]=n.charCodeAt(a);return r}(e.src));else if(/^blob\:/i.test(e.src))(o=new FileReader).onload=function(e){n(e.target.result)},function(e,t){var n=new XMLHttpRequest;n.open("GET",e,!0),n.responseType="blob",n.onload=function(e){200!=this.status&&0!==this.status||o.readAsArrayBuffer(this.response)},n.send()}(e.src);else{var r=new XMLHttpRequest;r.onload=function(){if(200!=this.status&&0!==this.status)throw"Could not load image";n(r.response),r=null},r.open("GET",e.src,!0),r.responseType="arraybuffer",r.send(null)}else if(self.FileReader&&(e instanceof self.Blob||e instanceof self.File)){var o;(o=new FileReader).onload=function(e){n(e.target.result)},o.readAsArrayBuffer(e)}}(e,t),0))},i.getTag=function(e,t){if(c(e))return e.exifdata[t]},i.getIptcTag=function(e,t){if(c(e))return e.iptcdata[t]},i.getAllTags=function(e){if(!c(e))return{};var t,n=e.exifdata,i={};for(t in n)n.hasOwnProperty(t)&&(i[t]=n[t]);return i},i.getAllIptcTags=function(e){if(!c(e))return{};var t,n=e.iptcdata,i={};for(t in n)n.hasOwnProperty(t)&&(i[t]=n[t]);return i},i.pretty=function(e){if(!c(e))return"";var t,n=e.exifdata,i="";for(t in n)n.hasOwnProperty(t)&&(i+="object"==typeof n[t]?n[t]instanceof Number?t+" : "+n[t]+" ["+n[t].numerator+"/"+n[t].denominator+"]\r\n":t+" : ["+n[t].length+" values]\r\n":t+" : "+n[t]+"\r\n");return i},i.readFromBinaryFile=function(e){return d(e)},void 0===(r=(function(){return i}).apply(t,[]))||(e.exports=r)}).call(this)},bC4P:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var i=function(e,t,n,i,a){return o(e[1],t[1],n[1],i[1],a).map(function(o){return r(e[0],t[0],n[0],i[0],o)})},r=function(e,t,n,i,r){return r*(3*t*Math.pow(r-1,2)+r*(-3*n*r+3*n+i*r))-e*Math.pow(r-1,3)},o=function(e,t,n,i,r){return a((i-=r)-3*(n-=r)+3*(t-=r)-(e-=r),3*n-6*t+3*e,3*t-3*e,e).filter(function(e){return e>=0&&e<=1})},a=function(e,t,n,i){if(0===e)return function(e,t,n){var i=t*t-4*e*n;return i<0?[]:[(-t+Math.sqrt(i))/(2*e),(-t-Math.sqrt(i))/(2*e)]}(t,n,i);var r=(3*(n/=e)-(t/=e)*t)/3,o=(2*t*t*t-9*t*n+27*(i/=e))/27;if(0===r)return[Math.pow(-o,1/3)];if(0===o)return[Math.sqrt(-r),-Math.sqrt(-r)];var a=Math.pow(o/2,2)+Math.pow(r/3,3);if(0===a)return[Math.pow(o/2,.5)-t/3];if(a>0)return[Math.pow(-o/2+Math.sqrt(a),1/3)-Math.pow(o/2+Math.sqrt(a),1/3)-t/3];var s=Math.sqrt(Math.pow(-r/3,3)),l=Math.acos(-o/(2*Math.sqrt(Math.pow(-r/3,3)))),u=2*Math.pow(s,1/3);return[u*Math.cos(l/3)-t/3,u*Math.cos((l+2*Math.PI)/3)-t/3,u*Math.cos((l+4*Math.PI)/3)-t/3]}},iWo5:function(e,t,n){"use strict";n.r(t),n.d(t,"createGesture",function(){return l});var i=n("y08P");n.d(t,"GESTURE_CONTROLLER",function(){return i.a});var r,o=function(e,t,n,i){var r,o,s=a(e)?{capture:!!i.capture,passive:!!i.passive}:!!i.capture;return e.__zone_symbol__addEventListener?(r="__zone_symbol__addEventListener",o="__zone_symbol__removeEventListener"):(r="addEventListener",o="removeEventListener"),e[r](t,n,s),function(){e[o](t,n,s)}},a=function(e){if(void 0===r)try{var t=Object.defineProperty({},"passive",{get:function(){r=!0}});e.addEventListener("optsTest",function(){},t)}catch(n){r=!1}return!!r},s=function(e){return e instanceof Document?e:e.ownerDocument},l=function(e){var t=!1,n=!1,r=!0,a=!1,l=Object.assign({disableScroll:!1,direction:"x",gesturePriority:0,passive:!0,maxAngle:40,threshold:10},e),h=l.canStart,f=l.onWillStart,p=l.onStart,g=l.onEnd,v=l.notCaptured,m=l.onMove,y=l.threshold,b=l.passive,w=l.blurOnStart,_={type:"pan",startX:0,startY:0,startTime:0,currentX:0,currentY:0,velocityX:0,velocityY:0,deltaX:0,deltaY:0,currentTime:0,event:void 0,data:void 0},k=function(e,t,n){var i=n*(Math.PI/180),r="x"===e,o=Math.cos(i),a=t*t,s=0,l=0,u=!1,c=0;return{start:function(e,t){s=e,l=t,c=0,u=!0},detect:function(e,t){if(!u)return!1;var n=e-s,i=t-l,d=n*n+i*i;if(d<a)return!1;var h=Math.sqrt(d),f=(r?n:i)/h;return c=f>o?1:f<-o?-1:0,u=!1,!0},isGesture:function(){return 0!==c},getDirection:function(){return c}}}(l.direction,l.threshold,l.maxAngle),x=i.a.createGesture({name:e.gestureName,priority:e.gesturePriority,disableScroll:e.disableScroll}),A=function(){t&&(a=!1,m&&m(_))},C=function(){return!(x&&!x.capture()||(t=!0,r=!1,_.startX=_.currentX,_.startY=_.currentY,_.startTime=_.currentTime,f?f(_).then(S):S(),0))},S=function(){w&&function(){if("undefined"!=typeof document){var e=document.activeElement;null!==e&&e.blur&&e.blur()}}(),p&&p(_),r=!0},P=function(){t=!1,n=!1,a=!1,r=!0,x.release()},E=function(e){var n=t,i=r;P(),i&&(u(_,e),n?g&&g(_):v&&v(_))},D=function(e,t,n,i,r){var a,l,u,c,d,h,f,p=0,g=function(i){p=Date.now()+2e3,t(i)&&(!l&&n&&(l=o(e,"touchmove",n,r)),u||(u=o(e,"touchend",m,r)),c||(c=o(e,"touchcancel",m,r)))},v=function(i){p>Date.now()||t(i)&&(!h&&n&&(h=o(s(e),"mousemove",n,r)),f||(f=o(s(e),"mouseup",y,r)))},m=function(e){b(),i&&i(e)},y=function(e){w(),i&&i(e)},b=function(){l&&l(),u&&u(),c&&c(),l=u=c=void 0},w=function(){h&&h(),f&&f(),h=f=void 0},_=function(){b(),w()},k=function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];t?(a||(a=o(e,"touchstart",g,r)),d||(d=o(e,"mousedown",v,r))):(a&&a(),d&&d(),a=d=void 0,_())};return{enable:k,stop:_,destroy:function(){k(!1),i=n=t=void 0}}}(l.el,function(e){var t=d(e);return!(n||!r)&&(c(e,_),_.startX=_.currentX,_.startY=_.currentY,_.startTime=_.currentTime=t,_.velocityX=_.velocityY=_.deltaX=_.deltaY=0,_.event=e,(!h||!1!==h(_))&&(x.release(),!!x.start()&&(n=!0,0===y?C():(k.start(_.startX,_.startY),!0))))},function(e){t?!a&&r&&(a=!0,u(_,e),requestAnimationFrame(A)):(u(_,e),k.detect(_.currentX,_.currentY)&&(k.isGesture()&&C()||O()))},E,{capture:!1,passive:b}),O=function(){P(),D.stop(),v&&v(_)};return{enable:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];e||(t&&E(void 0),P()),D.enable(e)},destroy:function(){x.destroy(),D.destroy()}}},u=function(e,t){if(t){var n=e.currentX,i=e.currentY,r=e.currentTime;c(t,e);var o=e.currentX,a=e.currentY,s=(e.currentTime=d(t))-r;if(s>0&&s<100){var l=(a-i)/s;e.velocityX=(o-n)/s*.7+.3*e.velocityX,e.velocityY=.7*l+.3*e.velocityY}e.deltaX=o-e.startX,e.deltaY=a-e.startY,e.event=t}},c=function(e,t){var n=0,i=0;if(e){var r=e.changedTouches;if(r&&r.length>0){var o=r[0];n=o.clientX,i=o.clientY}else void 0!==e.pageX&&(n=e.pageX,i=e.pageY)}t.currentX=n,t.currentY=i},d=function(e){return e.timeStamp||Date.now()}},k4ps:function(e,t,n){"use strict";n.d(t,"a",function(){return o}),n.d(t,"b",function(){return a}),n.d(t,"c",function(){return s}),n.d(t,"d",function(){return l}),n.d(t,"e",function(){return u}),n.d(t,"f",function(){return C}),n.d(t,"g",function(){return E}),n.d(t,"h",function(){return k}),n.d(t,"i",function(){return S}),n.d(t,"j",function(){return c});var i=n("wEJo"),r=n("1vRN"),o="ionViewWillEnter",a="ionViewDidEnter",s="ionViewWillLeave",l="ionViewDidLeave",u="ionViewWillUnload",c=function(e){return new Promise(function(t,n){Object(i.f)(function(){d(e),h(e).then(function(n){n.animation&&n.animation.destroy(),f(e),t(n)},function(t){f(e),n(t)})})})},d=function(e){var t=e.enteringEl,n=e.leavingEl;P(t,n,e.direction),e.showGoBack?t.classList.add("can-go-back"):t.classList.remove("can-go-back"),S(t,!1),n&&S(n,!1)},h=function(){var e=x(regeneratorRuntime.mark(function e(t){var n;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,p(t);case 2:return n=e.sent,e.abrupt("return",n&&i.a.isBrowser?g(n,t):v(t));case 4:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}(),f=function(e){var t=e.leavingEl;e.enteringEl.classList.remove("ion-page-invisible"),void 0!==t&&t.classList.remove("ion-page-invisible")},p=function(){var e=x(regeneratorRuntime.mark(function e(t){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!t.leavingEl||!t.animated||0===t.duration){e.next=16;break}if(!t.animationBuilder){e.next=5;break}e.t0=t.animationBuilder,e.next=15;break;case 5:if("ios"!==t.mode){e.next=11;break}return e.next=8,Promise.resolve().then(n.bind(null,"lTIg"));case 8:e.t1=e.sent.iosTransitionAnimation,e.next=14;break;case 11:return e.next=13,Promise.resolve().then(n.bind(null,"RQGG"));case 13:e.t1=e.sent.mdTransitionAnimation;case 14:e.t0=e.t1;case 15:return e.abrupt("return",e.t0);case 16:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}(),g=function(){var e=x(regeneratorRuntime.mark(function e(t,n){var i,r;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,m(n,!0);case 2:return i=t(n.baseEl,n),w(n.enteringEl,n.leavingEl),e.next=6,b(i,n);case 6:return r=e.sent,e.abrupt("return",(n.progressCallback&&n.progressCallback(void 0),r&&_(n.enteringEl,n.leavingEl),{hasCompleted:r,animation:i}));case 8:case"end":return e.stop()}},e)}));return function(t,n){return e.apply(this,arguments)}}(),v=function(){var e=x(regeneratorRuntime.mark(function e(t){var n,i;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.enteringEl,i=t.leavingEl,e.next=3,m(t,!1);case 3:return w(n,i),_(n,i),e.abrupt("return",{hasCompleted:!0});case 6:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}(),m=function(){var e=x(regeneratorRuntime.mark(function e(t,n){var i;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return i=(void 0!==t.deepWait?t.deepWait:n)?[C(t.enteringEl),C(t.leavingEl)]:[A(t.enteringEl),A(t.leavingEl)],e.next=3,Promise.all(i);case 3:return e.next=5,y(t.viewIsReady,t.enteringEl);case 5:case"end":return e.stop()}},e)}));return function(t,n){return e.apply(this,arguments)}}(),y=function(){var e=x(regeneratorRuntime.mark(function e(t,n){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(e.t0=t,!e.t0){e.next=4;break}return e.next=4,t(n);case 4:case"end":return e.stop()}},e)}));return function(t,n){return e.apply(this,arguments)}}(),b=function(e,t){var n=t.progressCallback,i=new Promise(function(t){e.onFinish(function(e){return t(1===e)})});return n?(e.progressStart(!0),n(e)):e.play(),i},w=function(e,t){k(t,s),k(e,o)},_=function(e,t){k(e,a),k(t,l)},k=function(e,t){if(e){var n=new CustomEvent(t,{bubbles:!1,cancelable:!1});e.dispatchEvent(n)}},A=function(e){return e?new Promise(function(t){return Object(r.c)(e,t)}):Promise.resolve()},C=function(){var e=x(regeneratorRuntime.mark(function e(t){var n;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!(n=t)){e.next=12;break}if(e.t0=null!=n.componentOnReady,!e.t0){e.next=8;break}return e.next=6,n.componentOnReady();case 6:e.t1=e.sent,e.t0=null!=e.t1;case 8:if(!e.t0){e.next=10;break}return e.abrupt("return");case 10:return e.next=12,Promise.all(Array.from(n.children).map(C));case 12:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}(),S=function(e,t){t?(e.setAttribute("aria-hidden","true"),e.classList.add("ion-page-hidden")):(e.hidden=!1,e.removeAttribute("aria-hidden"),e.classList.remove("ion-page-hidden"))},P=function(e,t,n){void 0!==e&&(e.style.zIndex="back"===n?"99":"101"),void 0!==t&&(t.style.zIndex="100")},E=function(e){return e.classList.contains("ion-page")?e:e.querySelector(":scope > .ion-page, :scope > ion-nav, :scope > ion-tabs")||e}},kLfG:function(e,t,n){var i={"./ion-action-sheet.entry.js":["dUtr",0,12],"./ion-alert.entry.js":["Q8AI",0,13],"./ion-app_8.entry.js":["hgI1",0,14],"./ion-avatar_3.entry.js":["CfoV",0,15],"./ion-back-button.entry.js":["Nt02",0,16],"./ion-backdrop.entry.js":["Q2Bp",17],"./ion-button_2.entry.js":["0Pbj",0,18],"./ion-card_5.entry.js":["ydQj",0,19],"./ion-checkbox.entry.js":["4fMi",0,20],"./ion-chip.entry.js":["czK9",0,21],"./ion-col_3.entry.js":["/CAe",22],"./ion-datetime_3.entry.js":["WgF3",0,23],"./ion-fab_3.entry.js":["uQcF",0,24],"./ion-img.entry.js":["wHD8",25],"./ion-infinite-scroll_2.entry.js":["2lz6",26],"./ion-input.entry.js":["ercB",0,27],"./ion-item-option_3.entry.js":["MGMP",0,28],"./ion-item_8.entry.js":["9bur",0,29],"./ion-loading.entry.js":["cABk",0,30],"./ion-menu_3.entry.js":["kyFE",0,31],"./ion-modal.entry.js":["TvZU",0,32],"./ion-nav_2.entry.js":["vnES",0,33],"./ion-popover.entry.js":["qCuA",0,34],"./ion-progress-bar.entry.js":["0tOe",0,35],"./ion-radio_2.entry.js":["h11V",0,36],"./ion-range.entry.js":["XGij",0,37],"./ion-refresher_2.entry.js":["nYbb",0,38],"./ion-reorder_2.entry.js":["smMY",0,39],"./ion-ripple-effect.entry.js":["STjf",40],"./ion-route_4.entry.js":["k5eQ",0,41],"./ion-searchbar.entry.js":["OR5t",0,42],"./ion-segment_2.entry.js":["fSgp",0,43],"./ion-select_3.entry.js":["lfGF",0,44],"./ion-slide_2.entry.js":["5xYT",45],"./ion-spinner.entry.js":["nI0H",0,46],"./ion-split-pane.entry.js":["NAQR",47],"./ion-tab-bar_2.entry.js":["knkW",0,48],"./ion-tab_2.entry.js":["TpdJ",0,49],"./ion-text.entry.js":["ISmu",0,50],"./ion-textarea.entry.js":["U7LX",0,51],"./ion-toast.entry.js":["L3sA",0,52],"./ion-toggle.entry.js":["IUOf",0,53],"./ion-virtual-scroll.entry.js":["8Mb5",54]};function r(e){if(!n.o(i,e))return Promise.resolve().then(function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t});var t=i[e],r=t[0];return Promise.all(t.slice(1).map(n.e)).then(function(){return n(r)})}r.keys=function(){return Object.keys(i)},r.id="kLfG",e.exports=r},kiQV:function(e){e.exports=JSON.parse('{"name":"parapheur","version":"21.03.8","description":"Annoter ou Signer vos documents sur votre tablette","homepage":"https://labs.maarch.org/maarch/MaarchParapheur","scripts":{"dep-list":"npm list --depth=0","check-update":"ncu","upgrade":"ncu -u","lint":"eslint -c .eslintrc.js --ext .ts src/frontend","lint-fix":"eslint -c .eslintrc.js --ext .ts src/frontend/ --fix","reload-packages":"rm -Rf node_modules && rm package-lock.json && npm cache clean --force && npm i","reload-packages-prod":"rm -Rf node_modules && rm package-lock.json && npm cache clean --force && npm i --production","build":"ng build","build-watch":"ng build --watch","build-prod":"ng build --prod","build-release":"npm run build-prod && npm run reload-packages-prod"},"private":true,"keywords":[],"author":"Maarch","license":"GPL-3.0","dependencies":{"core-js":"3.6.4","tslib":"2.1.0","zone.js":"0.10.2"},"devDependencies":{"@angular-devkit/build-angular":"0.1100.7","@angular-eslint/eslint-plugin":"2.0.2","@angular/animations":"11.2.6","@angular/cdk":"11.2.5","@angular/cli":"11.2.5","@angular/common":"11.2.6","@angular/compiler":"11.2.6","@angular/compiler-cli":"11.2.6","@angular/core":"11.2.6","@angular/forms":"11.2.6","@angular/language-service":"11.2.6","@angular/material":"11.2.5","@angular/platform-browser":"11.2.6","@angular/platform-browser-dynamic":"11.2.6","@angular/router":"11.2.6","@biesbjerg/ngx-translate-extract":"6.0.3","@fortawesome/fontawesome-free":"5.15.3","@ionic/angular":"5.6.3","@ngrx/store":"9.2.1","@ngrx/store-devtools":"9.2.1","@ngx-translate/core":"12.1.2","@ngx-translate/http-loader":"4.0.0","@peculiar/fortify-webcomponents":"0.17.3","@types/hammerjs":"2.0.39","@types/jasmine":"3.6.7","@types/jasminewd2":"2.0.8","@types/jquery":"3.5.5","@types/node":"13.13.47","@typescript-eslint/eslint-plugin":"4.19.0","@typescript-eslint/eslint-plugin-tslint":"4.19.0","@typescript-eslint/parser":"4.19.0","angular2-draggable":"2.3.2","angular2-signaturepad":"3.0.4","codelyzer":"5.1.2","eslint":"7.22.0","eslint-config-prettier":"8.1.0","eslint-plugin-import":"2.22.1","exif-js":"2.3.0","hammerjs":"2.0.8","jquery":"3.6.0","ngx-cookie-service":"3.0.3","ngx-drag-scroll":"9.0.0-beta.4","ngx-extended-pdf-viewer":"5.0.1","ngx-pipes":"2.7.3","npm-check-updates":"4.1.0","prettier":"2.2.1","rxjs":"6.6.6","stylus":"0.54.7","stylus-loader":"3.0.2","tslint":"6.1.0","typescript":"4.0.5","typescript-tools":"0.3.1"},"repository":{}}')},lTIg:function(e,t,n){"use strict";n.r(t),n.d(t,"iosTransitionAnimation",function(){return f}),n.d(t,"shadow",function(){return a});var i=n("meiF"),r=n("k4ps");n("1vRN"),n("wEJo");var o=function(e){return document.querySelector(e+".ion-cloned-element")},a=function(e){return e.shadowRoot||e},s=function(e){var t="ION-TABS"===e.tagName?e:e.querySelector("ion-tabs"),n="ion-content ion-header:not(.header-collapse-condense-inactive) ion-title.title-large";if(null!=t){var i=t.querySelector("ion-tab:not(.tab-hidden), .ion-page:not(.ion-page-hidden)");return null!=i?i.querySelector(n):null}return e.querySelector(n)},l=function(e,t){var n="ION-TABS"===e.tagName?e:e.querySelector("ion-tabs"),i=[];if(null!=n){var r=n.querySelector("ion-tab:not(.tab-hidden), .ion-page:not(.ion-page-hidden)");null!=r&&(i=r.querySelectorAll("ion-buttons"))}else i=e.querySelectorAll("ion-buttons");var o,a=h(i);try{for(a.s();!(o=a.n()).done;){var s=o.value,l=s.closest("ion-header"),u=l&&!l.classList.contains("header-collapse-condense-inactive"),c=s.querySelector("ion-back-button"),d=s.classList.contains("buttons-collapse"),f="start"===s.slot||""===s.slot;if(null!==c&&f&&(d&&u&&t||!d))return c}}catch(p){a.e(p)}finally{a.f()}return null},u=function(e,t,n,r,s,l){var u=t?"calc(100% - ".concat(l.right+4,"px)"):l.left-4+"px",c=t?"7px":"-7px",d=t?"-4px":"4px",h=t?"-4px":"4px",f=t?"right":"left",p=t?"left":"right",g=n?[{offset:0,opacity:1,transform:"translate3d(".concat(d,", ").concat(l.top-46,"px, 0) scale(1)")},{offset:.6,opacity:0},{offset:1,opacity:0,transform:"translate3d(".concat(c,", ").concat(s.top-40,"px, 0) scale(2.1)")}]:[{offset:0,opacity:0,transform:"translate3d(".concat(c,", ").concat(s.top-40,"px, 0) scale(2.1)")},{offset:1,opacity:1,transform:"translate3d(".concat(d,", ").concat(l.top-46,"px, 0) scale(1)")}],v=n?[{offset:0,opacity:1,transform:"translate3d(".concat(h,", ").concat(l.top-46,"px, 0) scale(1)")},{offset:.2,opacity:0,transform:"translate3d(".concat(h,", ").concat(l.top-41,"px, 0) scale(0.6)")},{offset:1,opacity:0,transform:"translate3d(".concat(h,", ").concat(l.top-41,"px, 0) scale(0.6)")}]:[{offset:0,opacity:0,transform:"translate3d(".concat(h,", ").concat(l.top-41,"px, 0) scale(0.6)")},{offset:1,opacity:1,transform:"translate3d(".concat(h,", ").concat(l.top-46,"px, 0) scale(1)")}],m=Object(i.a)(),y=Object(i.a)(),b=o("ion-back-button"),w=a(b).querySelector(".button-text"),_=a(b).querySelector("ion-icon");b.text=r.text,b.mode=r.mode,b.icon=r.icon,b.color=r.color,b.disabled=r.disabled,b.style.setProperty("display","block"),b.style.setProperty("position","fixed"),y.addElement(_),m.addElement(w),m.beforeStyles({"transform-origin":f+" center"}).beforeAddWrite(function(){r.style.setProperty("display","none"),b.style.setProperty(f,u)}).afterAddWrite(function(){r.style.setProperty("display",""),b.style.setProperty("display","none"),b.style.removeProperty(f)}).keyframes(g),y.beforeStyles({"transform-origin":p+" center"}).keyframes(v),e.addAnimation([m,y])},c=function(e,t,n,r,a,s){var l=t?"calc(100% - ".concat(a.right,"px)"):a.left+"px",u=t?"-18px":"18px",c=t?"right":"left",h=n?[{offset:0,opacity:0,transform:"translate3d(".concat(u,", ").concat(s.top-4,"px, 0) scale(0.49)")},{offset:.1,opacity:0},{offset:1,opacity:1,transform:"translate3d(0, ".concat(a.top-2,"px, 0) scale(1)")}]:[{offset:0,opacity:.99,transform:"translate3d(0, ".concat(a.top-2,"px, 0) scale(1)")},{offset:.6,opacity:0},{offset:1,opacity:0,transform:"translate3d(".concat(u,", ").concat(s.top-4,"px, 0) scale(0.5)")}],f=o("ion-title"),p=Object(i.a)();f.innerText=r.innerText,f.size=r.size,f.color=r.color,p.addElement(f),p.beforeStyles(d({"transform-origin":c+" center",height:"46px",display:"",position:"relative"},c,l)).beforeAddWrite(function(){r.style.setProperty("display","none")}).afterAddWrite(function(){r.style.setProperty("display",""),f.style.setProperty("display","none")}).keyframes(h),e.addAnimation(p)},f=function(e,t){try{var n="opacity",o="transform",d="0%",h="rtl"===e.ownerDocument.dir,f=h?"-99.5%":"99.5%",p=h?"33%":"-33%",g=t.enteringEl,v=t.leavingEl,m="back"===t.direction,y=g.querySelector(":scope > ion-content"),b=g.querySelectorAll(":scope > ion-header > *:not(ion-toolbar), :scope > ion-footer > *"),w=g.querySelectorAll(":scope > ion-header > ion-toolbar"),_=Object(i.a)(),k=Object(i.a)();if(_.addElement(g).duration(t.duration||540).easing(t.easing||"cubic-bezier(0.32,0.72,0,1)").fill("both").beforeRemoveClass("ion-page-invisible"),v&&e){var x=Object(i.a)();x.addElement(e),_.addAnimation(x)}if(y||0!==w.length||0!==b.length?(k.addElement(y),k.addElement(b)):k.addElement(g.querySelector(":scope > .ion-page, :scope > ion-nav, :scope > ion-tabs")),_.addAnimation(k),m?k.beforeClearStyles([n]).fromTo("transform","translateX(".concat(p,")"),"translateX(".concat(d,")")).fromTo(n,.8,1):k.beforeClearStyles([n]).fromTo("transform","translateX(".concat(f,")"),"translateX(".concat(d,")")),y){var A=a(y).querySelector(".transition-effect");if(A){var C=A.querySelector(".transition-cover"),S=A.querySelector(".transition-shadow"),P=Object(i.a)(),E=Object(i.a)(),D=Object(i.a)();P.addElement(A).beforeStyles({opacity:"1",display:"block"}).afterStyles({opacity:"",display:""}),E.addElement(C).beforeClearStyles([n]).fromTo(n,0,.1),D.addElement(S).beforeClearStyles([n]).fromTo(n,.03,.7),P.addAnimation([E,D]),k.addAnimation([P])}}var O=g.querySelector("ion-header.header-collapse-condense"),M=function(e,t,n,i,r){var o=l(i,n),a=s(r),d=s(i),h=l(r,n),f=null!==o&&null!==a&&!n,p=null!==d&&null!==h&&n;if(f){var g=a.getBoundingClientRect(),v=o.getBoundingClientRect();c(e,t,n,a,g,v),u(e,t,n,o,g,v)}else if(p){var m=d.getBoundingClientRect(),y=h.getBoundingClientRect();c(e,t,n,d,m,y),u(e,t,n,h,m,y)}return{forward:f,backward:p}}(_,h,m,g,v),T=M.forward,I=M.backward;if(w.forEach(function(e){var t=Object(i.a)();t.addElement(e),_.addAnimation(t);var r=Object(i.a)();r.addElement(e.querySelector("ion-title"));var o,s=Object(i.a)(),l=Array.from(e.querySelectorAll("ion-buttons,[menuToggle]")),u=e.closest("ion-header"),c=u&&u.classList.contains("header-collapse-condense-inactive");o=l.filter(m?function(e){var t=e.classList.contains("buttons-collapse");return t&&!c||!t}:function(e){return!e.classList.contains("buttons-collapse")}),s.addElement(o);var g=Object(i.a)();g.addElement(e.querySelectorAll(":scope > *:not(ion-title):not(ion-buttons):not([menuToggle])"));var v=Object(i.a)();v.addElement(a(e).querySelector(".toolbar-background"));var y=Object(i.a)(),b=e.querySelector("ion-back-button");if(b&&y.addElement(b),t.addAnimation([r,s,g,v,y]),s.fromTo(n,.01,1),g.fromTo(n,.01,1),m)c||r.fromTo("transform","translateX(".concat(p,")"),"translateX(".concat(d,")")).fromTo(n,.01,1),g.fromTo("transform","translateX(".concat(p,")"),"translateX(".concat(d,")")),y.fromTo(n,.01,1);else if(O||r.fromTo("transform","translateX(".concat(f,")"),"translateX(".concat(d,")")).fromTo(n,.01,1),g.fromTo("transform","translateX(".concat(f,")"),"translateX(".concat(d,")")),v.beforeClearStyles([n,"transform"]),(null==u?void 0:u.translucent)?v.fromTo("transform",h?"translateX(-100%)":"translateX(100%)","translateX(0px)"):v.fromTo(n,.01,"var(--opacity)"),T||y.fromTo(n,.01,1),b&&!T){var w=Object(i.a)();w.addElement(a(b).querySelector(".button-text")).fromTo("transform",h?"translateX(-100px)":"translateX(100px)","translateX(0px)"),t.addAnimation(w)}}),v){var R=Object(i.a)(),L=v.querySelector(":scope > ion-content"),F=v.querySelectorAll(":scope > ion-header > ion-toolbar"),B=v.querySelectorAll(":scope > ion-header > *:not(ion-toolbar), :scope > ion-footer > *");if(L||0!==F.length||0!==B.length?(R.addElement(L),R.addElement(B)):R.addElement(v.querySelector(":scope > .ion-page, :scope > ion-nav, :scope > ion-tabs")),_.addAnimation(R),m){R.beforeClearStyles([n]).fromTo("transform","translateX(".concat(d,")"),h?"translateX(-100%)":"translateX(100%)");var V=Object(r.g)(v);_.afterAddWrite(function(){"normal"===_.getDirection()&&V.style.setProperty("display","none")})}else R.fromTo("transform","translateX(".concat(d,")"),"translateX(".concat(p,")")).fromTo(n,1,.8);if(L){var z=a(L).querySelector(".transition-effect");if(z){var N=z.querySelector(".transition-cover"),H=z.querySelector(".transition-shadow"),j=Object(i.a)(),U=Object(i.a)(),W=Object(i.a)();j.addElement(z).beforeStyles({opacity:"1",display:"block"}).afterStyles({opacity:"",display:""}),U.addElement(N).beforeClearStyles([n]).fromTo(n,.1,0),W.addElement(H).beforeClearStyles([n]).fromTo(n,.7,.03),j.addAnimation([U,W]),R.addAnimation([j])}}F.forEach(function(e){var t=Object(i.a)();t.addElement(e);var r=Object(i.a)();r.addElement(e.querySelector("ion-title"));var s=Object(i.a)(),l=e.querySelectorAll("ion-buttons,[menuToggle]"),u=e.closest("ion-header"),c=u&&u.classList.contains("header-collapse-condense-inactive"),f=Array.from(l).filter(function(e){var t=e.classList.contains("buttons-collapse");return t&&!c||!t});s.addElement(f);var g=Object(i.a)(),v=e.querySelectorAll(":scope > *:not(ion-title):not(ion-buttons):not([menuToggle])");v.length>0&&g.addElement(v);var y=Object(i.a)();y.addElement(a(e).querySelector(".toolbar-background"));var b=Object(i.a)(),w=e.querySelector("ion-back-button");if(w&&b.addElement(w),t.addAnimation([r,s,g,b,y]),_.addAnimation(t),b.fromTo(n,.99,0),s.fromTo(n,.99,0),g.fromTo(n,.99,0),m){if(c||r.fromTo("transform","translateX(".concat(d,")"),h?"translateX(-100%)":"translateX(100%)").fromTo(n,.99,0),g.fromTo("transform","translateX(".concat(d,")"),h?"translateX(-100%)":"translateX(100%)"),y.beforeClearStyles([n,"transform"]),(null==u?void 0:u.translucent)?y.fromTo("transform","translateX(0px)",h?"translateX(-100%)":"translateX(100%)"):y.fromTo(n,"var(--opacity)",0),w&&!I){var k=Object(i.a)();k.addElement(a(w).querySelector(".button-text")).fromTo("transform","translateX(".concat(d,")"),"translateX(".concat((h?-124:124)+"px",")")),t.addAnimation(k)}}else c||r.fromTo("transform","translateX(".concat(d,")"),"translateX(".concat(p,")")).fromTo(n,.99,0).afterClearStyles([o,n]),g.fromTo("transform","translateX(".concat(d,")"),"translateX(".concat(p,")")).afterClearStyles([o,n]),b.afterClearStyles([n]),r.afterClearStyles([n]),s.afterClearStyles([n])})}return _}catch(G){throw G}}},"m9/o":function(n,o,u){"use strict";function v(e){return"function"==typeof e}u.r(o);var _=!1,k={Promise:void 0,set useDeprecatedSynchronousErrorHandling(e){if(e){var t=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+t.stack)}else _&&console.log("RxJS: Back to a better error behavior. Thank you. <3");_=e},get useDeprecatedSynchronousErrorHandling(){return _}};function x(e){setTimeout(function(){throw e},0)}var C={closed:!0,next:function(e){},error:function(e){if(k.useDeprecatedSynchronousErrorHandling)throw e;x(e)},complete:function(){}},S=Array.isArray||function(e){return e&&"number"==typeof e.length};function P(e){return null!==e&&"object"==typeof e}var E,D=function(){function e(e){return Error.call(this),this.message=e?"".concat(e.length," errors occurred during unsubscription:\n").concat(e.map(function(e,t){return"".concat(t+1,") ").concat(e.toString())}).join("\n  ")):"",this.name="UnsubscriptionError",this.errors=e,this}return e.prototype=Object.create(Error.prototype),e}(),O=((E=function(){function e(t){A(this,e),this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._ctorUnsubscribe=!0,this._unsubscribe=t)}return m(e,[{key:"unsubscribe",value:function(){var t;if(!this.closed){var n=this._parentOrParents,i=this._ctorUnsubscribe,r=this._unsubscribe,o=this._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof e)n.remove(this);else if(null!==n)for(var a=0;a<n.length;++a)n[a].remove(this);if(v(r)){i&&(this._unsubscribe=void 0);try{r.call(this)}catch(c){t=c instanceof D?M(c.errors):[c]}}if(S(o))for(var s=-1,l=o.length;++s<l;){var u=o[s];if(P(u))try{u.unsubscribe()}catch(c){t=t||[],c instanceof D?t=t.concat(M(c.errors)):t.push(c)}}if(t)throw new D(t)}}},{key:"add",value:function(t){var n=t;if(!t)return e.EMPTY;switch(typeof t){case"function":n=new e(t);case"object":if(n===this||n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if(!(n instanceof e)){var i=n;(n=new e)._subscriptions=[i]}break;default:throw new Error("unrecognized teardown "+t+" added to Subscription.")}var r=n._parentOrParents;if(null===r)n._parentOrParents=this;else if(r instanceof e){if(r===this)return n;n._parentOrParents=[r,this]}else{if(-1!==r.indexOf(this))return n;r.push(this)}var o=this._subscriptions;return null===o?this._subscriptions=[n]:o.push(n),n}},{key:"remove",value:function(e){var t=this._subscriptions;if(t){var n=t.indexOf(e);-1!==n&&t.splice(n,1)}}}]),e}()).EMPTY=function(e){return e.closed=!0,e}(new E),E);function M(e){return e.reduce(function(e,t){return e.concat(t instanceof D?t.errors:t)},[])}var T="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random(),I=function(e){r(n,e);var t=a(n);function n(e,i,r){var o;switch(A(this,n),(o=t.call(this)).syncErrorValue=null,o.syncErrorThrown=!1,o.syncErrorThrowable=!1,o.isStopped=!1,arguments.length){case 0:o.destination=C;break;case 1:if(!e){o.destination=C;break}if("object"==typeof e){e instanceof n?(o.syncErrorThrowable=e.syncErrorThrowable,o.destination=e,e.add(l(o))):(o.syncErrorThrowable=!0,o.destination=new R(l(o),e));break}default:o.syncErrorThrowable=!0,o.destination=new R(l(o),e,i,r)}return o}return m(n,[{key:T,value:function(){return this}},{key:"next",value:function(e){this.isStopped||this._next(e)}},{key:"error",value:function(e){this.isStopped||(this.isStopped=!0,this._error(e))}},{key:"complete",value:function(){this.isStopped||(this.isStopped=!0,this._complete())}},{key:"unsubscribe",value:function(){this.closed||(this.isStopped=!0,i(c(n.prototype),"unsubscribe",this).call(this))}},{key:"_next",value:function(e){this.destination.next(e)}},{key:"_error",value:function(e){this.destination.error(e),this.unsubscribe()}},{key:"_complete",value:function(){this.destination.complete(),this.unsubscribe()}},{key:"_unsubscribeAndRecycle",value:function(){var e=this._parentOrParents;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=e,this}}],[{key:"create",value:function(e,t,i){var r=new n(e,t,i);return r.syncErrorThrowable=!1,r}}]),n}(O),R=function(e){r(n,e);var t=a(n);function n(e,i,r,o){var a,s;A(this,n),(a=t.call(this))._parentSubscriber=e;var u=l(a);return v(i)?s=i:i&&(s=i.next,r=i.error,o=i.complete,i!==C&&(v((u=Object.create(i)).unsubscribe)&&a.add(u.unsubscribe.bind(u)),u.unsubscribe=a.unsubscribe.bind(l(a)))),a._context=u,a._next=s,a._error=r,a._complete=o,a}return m(n,[{key:"next",value:function(e){if(!this.isStopped&&this._next){var t=this._parentSubscriber;k.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?this.__tryOrSetError(t,this._next,e)&&this.unsubscribe():this.__tryOrUnsub(this._next,e)}}},{key:"error",value:function(e){if(!this.isStopped){var t=this._parentSubscriber,n=k.useDeprecatedSynchronousErrorHandling;if(this._error)n&&t.syncErrorThrowable?(this.__tryOrSetError(t,this._error,e),this.unsubscribe()):(this.__tryOrUnsub(this._error,e),this.unsubscribe());else if(t.syncErrorThrowable)n?(t.syncErrorValue=e,t.syncErrorThrown=!0):x(e),this.unsubscribe();else{if(this.unsubscribe(),n)throw e;x(e)}}}},{key:"complete",value:function(){var e=this;if(!this.isStopped){var t=this._parentSubscriber;if(this._complete){var n=function(){return e._complete.call(e._context)};k.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?(this.__tryOrSetError(t,n),this.unsubscribe()):(this.__tryOrUnsub(n),this.unsubscribe())}else this.unsubscribe()}}},{key:"__tryOrUnsub",value:function(e,t){try{e.call(this._context,t)}catch(n){if(this.unsubscribe(),k.useDeprecatedSynchronousErrorHandling)throw n;x(n)}}},{key:"__tryOrSetError",value:function(e,t,n){if(!k.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{t.call(this._context,n)}catch(i){return k.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=i,e.syncErrorThrown=!0,!0):(x(i),!0)}return!1}},{key:"_unsubscribe",value:function(){var e=this._parentSubscriber;this._context=null,this._parentSubscriber=null,e.unsubscribe()}}]),n}(I),L="function"==typeof Symbol&&Symbol.observable||"@@observable";function F(e){return e}var B,V=((B=function(){function e(t){A(this,e),this._isScalar=!1,t&&(this._subscribe=t)}return m(e,[{key:"lift",value:function(t){var n=new e;return n.source=this,n.operator=t,n}},{key:"subscribe",value:function(e,t,n){var i=this.operator,r=function(e,t,n){if(e){if(e instanceof I)return e;if(e[T])return e[T]()}return e||t||n?new I(e,t,n):new I(C)}(e,t,n);if(r.add(i?i.call(r,this.source):this.source||k.useDeprecatedSynchronousErrorHandling&&!r.syncErrorThrowable?this._subscribe(r):this._trySubscribe(r)),k.useDeprecatedSynchronousErrorHandling&&r.syncErrorThrowable&&(r.syncErrorThrowable=!1,r.syncErrorThrown))throw r.syncErrorValue;return r}},{key:"_trySubscribe",value:function(e){try{return this._subscribe(e)}catch(t){k.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=t),function(e){for(;e;){var t=e,n=t.closed,i=t.destination,r=t.isStopped;if(n||r)return!1;e=i&&i instanceof I?i:null}return!0}(e)?e.error(t):console.warn(t)}}},{key:"forEach",value:function(e,t){var n=this;return new(t=z(t))(function(t,i){var r;r=n.subscribe(function(t){try{e(t)}catch(n){i(n),r&&r.unsubscribe()}},i,t)})}},{key:"_subscribe",value:function(e){var t=this.source;return t&&t.subscribe(e)}},{key:L,value:function(){return this}},{key:"pipe",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?this:(0===(i=t).length?F:1===i.length?i[0]:function(e){return i.reduce(function(e,t){return t(e)},e)})(this);var i}},{key:"toPromise",value:function(e){var t=this;return new(e=z(e))(function(e,n){var i;t.subscribe(function(e){return i=e},function(e){return n(e)},function(){return e(i)})})}}]),e}()).create=function(e){return new B(e)},B);function z(e){if(e||(e=k.Promise||Promise),!e)throw new Error("no Promise impl found");return e}var N,H=function(){function e(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return e.prototype=Object.create(Error.prototype),e}(),j=function(e){r(n,e);var t=a(n);function n(e,i){var r;return A(this,n),(r=t.call(this)).subject=e,r.subscriber=i,r.closed=!1,r}return m(n,[{key:"unsubscribe",value:function(){if(!this.closed){this.closed=!0;var e=this.subject,t=e.observers;if(this.subject=null,t&&0!==t.length&&!e.isStopped&&!e.closed){var n=t.indexOf(this.subscriber);-1!==n&&t.splice(n,1)}}}}]),n}(O),U=function(e){r(n,e);var t=a(n);function n(e){var i;return A(this,n),(i=t.call(this,e)).destination=e,i}return n}(I),W=((N=function(e){r(n,e);var t=a(n);function n(){var e;return A(this,n),(e=t.call(this)).observers=[],e.closed=!1,e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return m(n,[{key:T,value:function(){return new U(this)}},{key:"lift",value:function(e){var t=new G(this,this);return t.operator=e,t}},{key:"next",value:function(e){if(this.closed)throw new H;if(!this.isStopped)for(var t=this.observers,n=t.length,i=t.slice(),r=0;r<n;r++)i[r].next(e)}},{key:"error",value:function(e){if(this.closed)throw new H;this.hasError=!0,this.thrownError=e,this.isStopped=!0;for(var t=this.observers,n=t.length,i=t.slice(),r=0;r<n;r++)i[r].error(e);this.observers.length=0}},{key:"complete",value:function(){if(this.closed)throw new H;this.isStopped=!0;for(var e=this.observers,t=e.length,n=e.slice(),i=0;i<t;i++)n[i].complete();this.observers.length=0}},{key:"unsubscribe",value:function(){this.isStopped=!0,this.closed=!0,this.observers=null}},{key:"_trySubscribe",value:function(e){if(this.closed)throw new H;return i(c(n.prototype),"_trySubscribe",this).call(this,e)}},{key:"_subscribe",value:function(e){if(this.closed)throw new H;return this.hasError?(e.error(this.thrownError),O.EMPTY):this.isStopped?(e.complete(),O.EMPTY):(this.observers.push(e),new j(this,e))}},{key:"asObservable",value:function(){var e=new V;return e.source=this,e}}]),n}(V)).create=function(e,t){return new G(e,t)},N),G=function(e){r(n,e);var t=a(n);function n(e,i){var r;return A(this,n),(r=t.call(this)).destination=e,r.source=i,r}return m(n,[{key:"next",value:function(e){var t=this.destination;t&&t.next&&t.next(e)}},{key:"error",value:function(e){var t=this.destination;t&&t.error&&this.destination.error(e)}},{key:"complete",value:function(){var e=this.destination;e&&e.complete&&this.destination.complete()}},{key:"_subscribe",value:function(e){return this.source?this.source.subscribe(e):O.EMPTY}}]),n}(W);function q(e){return e&&"function"==typeof e.schedule}function Y(e,t){return function(n){if("function"!=typeof e)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new Z(e,t))}}var Z=function(){function e(t,n){A(this,e),this.project=t,this.thisArg=n}return m(e,[{key:"call",value:function(e,t){return t.subscribe(new Q(e,this.project,this.thisArg))}}]),e}(),Q=function(e){r(n,e);var t=a(n);function n(e,i,r){var o;return A(this,n),(o=t.call(this,e)).project=i,o.count=0,o.thisArg=r||l(o),o}return m(n,[{key:"_next",value:function(e){var t;try{t=this.project.call(this.thisArg,e,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(t)}}]),n}(I),X=function(e){return function(t){for(var n=0,i=e.length;n<i&&!t.closed;n++)t.next(e[n]);t.complete()}};var K="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator",J=function(e){return e&&"number"==typeof e.length&&"function"!=typeof e};function ee(e){return!!e&&"function"!=typeof e.subscribe&&"function"==typeof e.then}var te=function(e){if(e&&"function"==typeof e[L])return i=e,function(e){var t=i[L]();if("function"!=typeof t.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return t.subscribe(e)};if(J(e))return X(e);if(ee(e))return n=e,function(e){return n.then(function(t){e.closed||(e.next(t),e.complete())},function(t){return e.error(t)}).then(null,x),e};if(e&&"function"==typeof e[K])return t=e,function(e){for(var n=t[K]();;){var i=void 0;try{i=n.next()}catch(r){return e.error(r),e}if(i.done){e.complete();break}if(e.next(i.value),e.closed)break}return"function"==typeof n.return&&e.add(function(){n.return&&n.return()}),e};var t,n,i,r=P(e)?"an invalid object":"'".concat(e,"'");throw new TypeError("You provided ".concat(r," where a stream was expected. You can provide an Observable, Promise, Array, or Iterable."))};function ne(e,t){return new V(function(n){var i=new O,r=0;return i.add(t.schedule(function(){r!==e.length?(n.next(e[r++]),n.closed||i.add(this.schedule())):n.complete()})),i})}function ie(e,t){return t?function(e,t){if(null!=e){if(function(e){return e&&"function"==typeof e[L]}(e))return function(e,t){return new V(function(n){var i=new O;return i.add(t.schedule(function(){var r=e[L]();i.add(r.subscribe({next:function(e){i.add(t.schedule(function(){return n.next(e)}))},error:function(e){i.add(t.schedule(function(){return n.error(e)}))},complete:function(){i.add(t.schedule(function(){return n.complete()}))}}))})),i})}(e,t);if(ee(e))return function(e,t){return new V(function(n){var i=new O;return i.add(t.schedule(function(){return e.then(function(e){i.add(t.schedule(function(){n.next(e),i.add(t.schedule(function(){return n.complete()}))}))},function(e){i.add(t.schedule(function(){return n.error(e)}))})})),i})}(e,t);if(J(e))return ne(e,t);if(function(e){return e&&"function"==typeof e[K]}(e)||"string"==typeof e)return function(e,t){if(!e)throw new Error("Iterable cannot be null");return new V(function(n){var i,r=new O;return r.add(function(){i&&"function"==typeof i.return&&i.return()}),r.add(t.schedule(function(){i=e[K](),r.add(t.schedule(function(){if(!n.closed){var e,t;try{var r=i.next();e=r.value,t=r.done}catch(o){return void n.error(o)}t?n.complete():(n.next(e),this.schedule())}}))})),r})}(e,t)}throw new TypeError((null!==e&&typeof e||e)+" is not observable")}(e,t):e instanceof V?e:new V(te(e))}var re=function(e){r(n,e);var t=a(n);function n(e){var i;return A(this,n),(i=t.call(this)).parent=e,i}return m(n,[{key:"_next",value:function(e){this.parent.notifyNext(e)}},{key:"_error",value:function(e){this.parent.notifyError(e),this.unsubscribe()}},{key:"_complete",value:function(){this.parent.notifyComplete(),this.unsubscribe()}}]),n}(I),oe=function(e){r(n,e);var t=a(n);function n(){return A(this,n),t.apply(this,arguments)}return m(n,[{key:"notifyNext",value:function(e){this.destination.next(e)}},{key:"notifyError",value:function(e){this.destination.error(e)}},{key:"notifyComplete",value:function(){this.destination.complete()}}]),n}(I);function ae(e,t){if(!t.closed)return e instanceof V?e.subscribe(t):te(e)(t)}function se(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return"function"==typeof t?function(i){return i.pipe(se(function(n,i){return ie(e(n,i)).pipe(Y(function(e,r){return t(n,e,i,r)}))},n))}:("number"==typeof t&&(n=t),function(t){return t.lift(new le(e,n))})}var le=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY;A(this,e),this.project=t,this.concurrent=n}return m(e,[{key:"call",value:function(e,t){return t.subscribe(new ue(e,this.project,this.concurrent))}}]),e}(),ue=function(e){r(n,e);var t=a(n);function n(e,i){var r,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return A(this,n),(r=t.call(this,e)).project=i,r.concurrent=o,r.hasCompleted=!1,r.buffer=[],r.active=0,r.index=0,r}return m(n,[{key:"_next",value:function(e){this.active<this.concurrent?this._tryNext(e):this.buffer.push(e)}},{key:"_tryNext",value:function(e){var t,n=this.index++;try{t=this.project(e,n)}catch(i){return void this.destination.error(i)}this.active++,this._innerSub(t)}},{key:"_innerSub",value:function(e){var t=new re(this),n=this.destination;n.add(t);var i=ae(e,t);i!==t&&n.add(i)}},{key:"_complete",value:function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}},{key:"notifyNext",value:function(e){this.destination.next(e)}},{key:"notifyComplete",value:function(){var e=this.buffer;this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}]),n}(oe);function ce(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.POSITIVE_INFINITY;return se(F,e)}function de(e,t){return t?ne(e,t):new V(X(e))}function he(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var i=Number.POSITIVE_INFINITY,r=null,o=t[t.length-1];return q(o)?(r=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(i=t.pop())):"number"==typeof o&&(i=t.pop()),null===r&&1===t.length&&t[0]instanceof V?t[0]:ce(i)(de(t,r))}function fe(){return function(e){return e.lift(new ge(e))}}var pe,ge=function(){function e(t){A(this,e),this.connectable=t}return m(e,[{key:"call",value:function(e,t){var n=this.connectable;n._refCount++;var i=new ve(e,n),r=t.subscribe(i);return i.closed||(i.connection=n.connect()),r}}]),e}(),ve=function(e){r(n,e);var t=a(n);function n(e,i){var r;return A(this,n),(r=t.call(this,e)).connectable=i,r}return m(n,[{key:"_unsubscribe",value:function(){var e=this.connectable;if(e){this.connectable=null;var t=e._refCount;if(t<=0)this.connection=null;else if(e._refCount=t-1,t>1)this.connection=null;else{var n=this.connection,i=e._connection;this.connection=null,!i||n&&i!==n||i.unsubscribe()}}else this.connection=null}}]),n}(I),me=function(e){r(n,e);var t=a(n);function n(e,i){var r;return A(this,n),(r=t.call(this)).source=e,r.subjectFactory=i,r._refCount=0,r._isComplete=!1,r}return m(n,[{key:"_subscribe",value:function(e){return this.getSubject().subscribe(e)}},{key:"getSubject",value:function(){var e=this._subject;return e&&!e.isStopped||(this._subject=this.subjectFactory()),this._subject}},{key:"connect",value:function(){var e=this._connection;return e||(this._isComplete=!1,(e=this._connection=new O).add(this.source.subscribe(new be(this.getSubject(),this))),e.closed&&(this._connection=null,e=O.EMPTY)),e}},{key:"refCount",value:function(){return fe()(this)}}]),n}(V),ye={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:(pe=me.prototype)._subscribe},_isComplete:{value:pe._isComplete,writable:!0},getSubject:{value:pe.getSubject},connect:{value:pe.connect},refCount:{value:pe.refCount}},be=function(e){r(n,e);var t=a(n);function n(e,i){var r;return A(this,n),(r=t.call(this,e)).connectable=i,r}return m(n,[{key:"_error",value:function(e){this._unsubscribe(),i(c(n.prototype),"_error",this).call(this,e)}},{key:"_complete",value:function(){this.connectable._isComplete=!0,this._unsubscribe(),i(c(n.prototype),"_complete",this).call(this)}},{key:"_unsubscribe",value:function(){var e=this.connectable;if(e){this.connectable=null;var t=e._connection;e._refCount=0,e._subject=null,e._connection=null,t&&t.unsubscribe()}}}]),n}(U);function we(){return new W}function _e(){return function(e){return fe()((t=we,function(e){var n;n="function"==typeof t?t:function(){return t};var i=Object.create(e,ye);return i.source=e,i.subjectFactory=n,i})(e));var t}}function ke(e){for(var t in e)if(e[t]===ke)return t;throw Error("Could not find renamed property on target object.")}function xe(e,t){for(var n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function Ae(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(Ae).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return""+e.overriddenName;if(e.name)return""+e.name;var t=e.toString();if(null==t)return""+t;var n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}function Ce(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}var Se=ke({__forward_ref__:ke});function Pe(e){return e.__forward_ref__=Pe,e.toString=function(){return Ae(this())},e}function Ee(e){return De(e)?e():e}function De(e){return"function"==typeof e&&e.hasOwnProperty(Se)&&e.__forward_ref__===Pe}var Oe=function(e){r(n,e);var t=a(n);function n(e,i){var r;return A(this,n),(r=t.call(this,function(e,t){return"".concat(e?"NG0".concat(e,": "):"").concat(t)}(e,i))).code=e,r}return n}(e(Error));function Me(e){return"string"==typeof e?e:null==e?"":String(e)}function Te(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():Me(e)}function Ie(e,t){var n=t?" in "+t:"";throw new Oe("201","No provider for ".concat(Te(e)," found").concat(n))}function Re(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}var Le=Re;function Fe(e){return{providers:e.providers||[],imports:e.imports||[]}}function Be(e){return Ve(e,He)||Ve(e,Ue)}function Ve(e,t){return e.hasOwnProperty(t)?e[t]:null}function ze(e){return e&&(e.hasOwnProperty(je)||e.hasOwnProperty(We))?e[je]:null}var Ne,He=ke({"\u0275prov":ke}),je=ke({"\u0275inj":ke}),Ue=ke({ngInjectableDef:ke}),We=ke({ngInjectorDef:ke}),Ge=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}({});function qe(e){var t=Ne;return Ne=e,t}function Ye(e,t,n){var i=Be(e);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:n&Ge.Optional?null:void 0!==t?t:void Ie(Ae(e),"Injector")}function Ze(e){return{toString:e}.toString()}var Qe=function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e}({}),Xe=function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}({}),Ke="undefined"!=typeof globalThis&&globalThis,Je="undefined"!=typeof window&&window,$e="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,et="undefined"!=typeof global&&global,tt=Ke||et||Je||$e,nt={},it=[],rt=[],ot=ke({"\u0275cmp":ke}),at=ke({"\u0275dir":ke}),st=ke({"\u0275pipe":ke}),lt=ke({"\u0275mod":ke}),ut=ke({"\u0275loc":ke}),ct=ke({"\u0275fac":ke}),dt=ke({__NG_ELEMENT_ID__:ke}),ht=0;function ft(e){return Ze(function(){var t={},n={type:e.type,providersResolver:null,decls:e.decls,vars:e.vars,factory:null,template:e.template||null,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputs:null,outputs:null,exportAs:e.exportAs||null,onPush:e.changeDetection===Qe.OnPush,directiveDefs:null,pipeDefs:null,selectors:e.selectors||rt,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||Xe.Emulated,id:"c",styles:e.styles||rt,_:null,setInput:null,schemas:e.schemas||null,tView:null},i=e.directives,r=e.features,o=e.pipes;return n.id+=ht++,n.inputs=yt(e.inputs,t),n.outputs=yt(e.outputs),r&&r.forEach(function(e){return e(n)}),n.directiveDefs=i?function(){return("function"==typeof i?i():i).map(pt)}:null,n.pipeDefs=o?function(){return("function"==typeof o?o():o).map(gt)}:null,n})}function pt(e){return _t(e)||function(e){return e[at]||null}(e)}function gt(e){return function(e){return e[st]||null}(e)}var vt={};function mt(e){var t={type:e.type,bootstrap:e.bootstrap||rt,declarations:e.declarations||rt,imports:e.imports||rt,exports:e.exports||rt,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null};return null!=e.id&&Ze(function(){vt[e.id]=e.type}),t}function yt(e,t){if(null==e)return nt;var n={};for(var i in e)if(e.hasOwnProperty(i)){var r=e[i],o=r;Array.isArray(r)&&(o=r[1],r=r[0]),n[r]=i,t&&(t[r]=o)}return n}var bt=ft;function wt(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,onDestroy:e.type.prototype.ngOnDestroy||null}}function _t(e){return e[ot]||null}function kt(e,t){var n=e[lt]||null;if(!n&&!0===t)throw new Error("Type ".concat(Ae(e)," does not have '\u0275mod' property."));return n}function xt(e){return Array.isArray(e)&&"object"==typeof e[1]}function At(e){return Array.isArray(e)&&!0===e[1]}function Ct(e){return 0!=(8&e.flags)}function St(e){return 2==(2&e.flags)}function Pt(e){return 1==(1&e.flags)}function Et(e){return null!==e.template}function Dt(e,t){return e.hasOwnProperty(ct)?e[ct]:null}var Ot=function(){function e(t,n,i){A(this,e),this.previousValue=t,this.currentValue=n,this.firstChange=i}return m(e,[{key:"isFirstChange",value:function(){return this.firstChange}}]),e}();function Mt(){return Tt}function Tt(e){return e.type.prototype.ngOnChanges&&(e.setInput=Rt),It}function It(){var e=Lt(this),t=null==e?void 0:e.current;if(t){var n=e.previous;if(n===nt)e.previous=t;else for(var i in t)n[i]=t[i];e.current=null,this.ngOnChanges(t)}}function Rt(e,t,n,i){var r=Lt(e)||function(e,t){return e.__ngSimpleChanges__=t}(e,{previous:nt,current:null}),o=r.current||(r.current={}),a=r.previous,s=this.declaredInputs[n],l=a[s];o[s]=new Ot(l&&l.currentValue,t,a===nt),e[i]=t}function Lt(e){return e.__ngSimpleChanges__||null}Mt.ngInherit=!0;var Ft=void 0;function Bt(){return void 0!==Ft?Ft:"undefined"!=typeof document?document:void 0}function Vt(e){return!!e.listen}var zt={createRenderer:function(e,t){return Bt()}};function Nt(e){for(;Array.isArray(e);)e=e[0];return e}function Ht(e,t){return Nt(t[e])}function jt(e,t){return Nt(t[e.index])}function Ut(e,t){return e.data[t]}function Wt(e,t){return e[t]}function Gt(e,t){var n=t[e];return xt(n)?n:n[0]}function qt(e){var t=function(e){return e.__ngContext__||null}(e);return t?Array.isArray(t)?t:t.lView:null}function Yt(e){return 4==(4&e[2])}function Zt(e){return 128==(128&e[2])}function Qt(e,t){return null==t?null:e[t]}function Xt(e){e[18]=0}function Kt(e,t){e[5]+=t;for(var n=e,i=e[3];null!==i&&(1===t&&1===n[5]||-1===t&&0===n[5]);)i[5]+=t,n=i,i=i[3]}var Jt={lFrame:xn(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function $t(){return Jt.bindingsEnabled}function en(){return Jt.lFrame.lView}function tn(){return Jt.lFrame.tView}function nn(e){Jt.lFrame.contextLView=e}function rn(){for(var e=on();null!==e&&64===e.type;)e=e.parent;return e}function on(){return Jt.lFrame.currentTNode}function an(e,t){var n=Jt.lFrame;n.currentTNode=e,n.isParent=t}function sn(){return Jt.lFrame.isParent}function ln(){Jt.lFrame.isParent=!1}function un(){return Jt.isInCheckNoChangesMode}function cn(e){Jt.isInCheckNoChangesMode=e}function dn(){var e=Jt.lFrame,t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function hn(){return Jt.lFrame.bindingIndex}function fn(){return Jt.lFrame.bindingIndex++}function pn(e){var t=Jt.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function gn(e){Jt.lFrame.currentDirectiveIndex=e}function vn(e){var t=Jt.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}function mn(){return Jt.lFrame.currentQueryIndex}function yn(e){Jt.lFrame.currentQueryIndex=e}function bn(e){var t=e[1];return 2===t.type?t.declTNode:1===t.type?e[6]:null}function wn(e,t,n){if(n&Ge.SkipSelf){for(var i=t,r=e;!(null!==(i=i.parent)||n&Ge.Host||(i=bn(r),null===i)||(r=r[15],10&i.type)););if(null===i)return!1;t=i,e=r}var o=Jt.lFrame=kn();return o.currentTNode=t,o.lView=e,!0}function _n(e){var t=kn(),n=e[1];Jt.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function kn(){var e=Jt.lFrame,t=null===e?null:e.child;return null===t?xn(e):t}function xn(e){var t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return null!==e&&(e.child=t),t}function An(){var e=Jt.lFrame;return Jt.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var Cn=An;function Sn(){var e=An();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function Pn(){return Jt.lFrame.selectedIndex}function En(e){Jt.lFrame.selectedIndex=e}function Dn(){var e=Jt.lFrame;return Ut(e.tView,e.selectedIndex)}function On(){Jt.lFrame.currentNamespace="http://www.w3.org/2000/svg"}function Mn(){Jt.lFrame.currentNamespace=null}function Tn(e,t){for(var n=t.directiveStart,i=t.directiveEnd;n<i;n++){var r=e.data[n].type.prototype,o=r.ngAfterContentInit,a=r.ngAfterContentChecked,s=r.ngAfterViewInit,l=r.ngAfterViewChecked,u=r.ngOnDestroy;o&&(e.contentHooks||(e.contentHooks=[])).push(-n,o),a&&((e.contentHooks||(e.contentHooks=[])).push(n,a),(e.contentCheckHooks||(e.contentCheckHooks=[])).push(n,a)),s&&(e.viewHooks||(e.viewHooks=[])).push(-n,s),l&&((e.viewHooks||(e.viewHooks=[])).push(n,l),(e.viewCheckHooks||(e.viewCheckHooks=[])).push(n,l)),null!=u&&(e.destroyHooks||(e.destroyHooks=[])).push(n,u)}}function In(e,t,n){Fn(e,t,3,n)}function Rn(e,t,n,i){(3&e[2])===n&&Fn(e,t,n,i)}function Ln(e,t){var n=e[2];(3&n)===t&&(n&=2047,n+=1,e[2]=n)}function Fn(e,t,n,i){for(var r=null!=i?i:-1,o=t.length-1,a=0,s=void 0!==i?65535&e[18]:0;s<o;s++)if("number"==typeof t[s+1]){if(a=t[s],null!=i&&a>=i)break}else t[s]<0&&(e[18]+=65536),(a<r||-1==r)&&(Bn(e,n,t,s),e[18]=(4294901760&e[18])+s+2),s++}function Bn(e,t,n,i){var r=n[i]<0,o=n[i+1],a=e[r?-n[i]:n[i]];r?e[2]>>11<e[18]>>16&&(3&e[2])===t&&(e[2]+=2048,o.call(a)):o.call(a)}var Vn=function e(t,n,i){A(this,e),this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=i};function zn(e,t,n){for(var i=Vt(e),r=0;r<n.length;){var o=n[r];if("number"==typeof o){if(0!==o)break;r++;var a=n[r++],s=n[r++],l=n[r++];i?e.setAttribute(t,s,l,a):t.setAttributeNS(a,s,l)}else{var u=o,c=n[++r];Hn(u)?i&&e.setProperty(t,u,c):i?e.setAttribute(t,u,c):t.setAttribute(u,c),r++}}return r}function Nn(e){return 3===e||4===e||6===e}function Hn(e){return 64===e.charCodeAt(0)}function jn(e,t){if(null===t||0===t.length);else if(null===e||0===e.length)e=t.slice();else for(var n=-1,i=0;i<t.length;i++){var r=t[i];"number"==typeof r?n=r:0===n||Un(e,n,r,null,-1===n||2===n?t[++i]:null)}return e}function Un(e,t,n,i,r){var o=0,a=e.length;if(-1===t)a=-1;else for(;o<e.length;){var s=e[o++];if("number"==typeof s){if(s===t){a=-1;break}if(s>t){a=o-1;break}}}for(;o<e.length;){var l=e[o];if("number"==typeof l)break;if(l===n){if(null===i)return void(null!==r&&(e[o+1]=r));if(i===e[o+1])return void(e[o+2]=r)}o++,null!==i&&o++,null!==r&&o++}-1!==a&&(e.splice(a,0,t),o=a+1),e.splice(o++,0,n),null!==i&&e.splice(o++,0,i),null!==r&&e.splice(o++,0,r)}function Wn(e){return-1!==e}function Gn(e){return 32767&e}function qn(e,t){for(var n=e>>16,i=t;n>0;)i=i[15],n--;return i}var Yn=!0;function Zn(e){var t=Yn;return Yn=e,t}var Qn=0;function Xn(e,t){var n=Jn(e,t);if(-1!==n)return n;var i=t[1];i.firstCreatePass&&(e.injectorIndex=t.length,Kn(i.data,e),Kn(t,null),Kn(i.blueprint,null));var r=$n(e,t),o=e.injectorIndex;if(Wn(r))for(var a=Gn(r),s=qn(r,t),l=s[1].data,u=0;u<8;u++)t[o+u]=s[a+u]|l[a+u];return t[o+8]=r,o}function Kn(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Jn(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function $n(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;for(var n=0,i=null,r=t;null!==r;){var o=r[1],a=o.type;if(null===(i=2===a?o.declTNode:1===a?r[6]:null))return-1;if(n++,r=r[15],-1!==i.injectorIndex)return i.injectorIndex|n<<16}return-1}function ei(e,t,n){!function(e,t,n){var i;"string"==typeof n?i=n.charCodeAt(0)||0:n.hasOwnProperty(dt)&&(i=n[dt]),null==i&&(i=n[dt]=Qn++);var r=255&i;t.data[e+(r>>5)]|=1<<r}(e,t,n)}function ti(e,t,n){if(n&Ge.Optional)return e;Ie(t,"NodeInjector")}function ni(e,t,n,i){if(n&Ge.Optional&&void 0===i&&(i=null),0==(n&(Ge.Self|Ge.Host))){var r=e[9],o=qe(void 0);try{return r?r.get(t,i,n&Ge.Optional):Ye(t,i,n&Ge.Optional)}finally{qe(o)}}return ti(i,t,n)}function ii(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Ge.Default,r=arguments.length>4?arguments[4]:void 0;if(null!==e){var o=function(e){if("string"==typeof e)return e.charCodeAt(0)||0;var t=e.hasOwnProperty(dt)?e[dt]:void 0;return"number"==typeof t?t>=0?255&t:oi:t}(n);if("function"==typeof o){if(!wn(t,e,i))return i&Ge.Host?ti(r,n,i):ni(t,n,i,r);try{var a=o();if(null!=a||i&Ge.Optional)return a;Ie(n)}finally{Cn()}}else if("number"==typeof o){var s=null,l=Jn(e,t),u=-1,c=i&Ge.Host?t[16][6]:null;for((-1===l||i&Ge.SkipSelf)&&(-1!==(u=-1===l?$n(e,t):t[l+8])&&ci(i,!1)?(s=t[1],l=Gn(u),t=qn(u,t)):l=-1);-1!==l;){var d=t[1];if(ui(o,l,d.data)){var h=ai(l,t,n,s,i,c);if(h!==ri)return h}-1!==(u=t[l+8])&&ci(i,t[1].data[l+8]===c)&&ui(o,l,t)?(s=d,l=Gn(u),t=qn(u,t)):l=-1}}}return ni(t,n,i,r)}var ri={};function oi(){return new di(rn(),en())}function ai(e,t,n,i,r,o){var a=t[1],s=a.data[e+8],l=si(s,a,n,null==i?St(s)&&Yn:i!=a&&0!=(3&s.type),r&Ge.Host&&o===s);return null!==l?li(t,a,l,s):ri}function si(e,t,n,i,r){for(var o=e.providerIndexes,a=t.data,s=1048575&o,l=e.directiveStart,u=o>>20,c=r?s+u:e.directiveEnd,d=i?s:s+u;d<c;d++){var h=a[d];if(d<l&&n===h||d>=l&&h.type===n)return d}if(r){var f=a[l];if(f&&Et(f)&&f.type===n)return l}return null}function li(e,t,n,i){var r=e[n],o=t.data;if(r instanceof Vn){var a=r;a.resolving&&function(e,t){throw new Oe("200","Circular dependency in DI detected for "+e)}(Te(o[n]));var s=Zn(a.canSeeViewProviders);a.resolving=!0;var l=a.injectImpl?qe(a.injectImpl):null;wn(e,i,Ge.Default);try{r=e[n]=a.factory(void 0,o,e,i),t.firstCreatePass&&n>=i.directiveStart&&function(e,t,n){var i=t.type.prototype,r=i.ngOnChanges,o=i.ngOnInit,a=i.ngDoCheck;if(r){var s=Tt(t);(n.preOrderHooks||(n.preOrderHooks=[])).push(e,s),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,s)}o&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-e,o),a&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e,a),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,a))}(n,o[n],t)}finally{null!==l&&qe(l),Zn(s),a.resolving=!1,Cn()}}return r}function ui(e,t,n){return!!(n[t+(e>>5)]&1<<e)}function ci(e,t){return!(e&Ge.Self||e&Ge.Host&&t)}var di=function(){function e(t,n){A(this,e),this._tNode=t,this._lView=n}return m(e,[{key:"get",value:function(e,t){return ii(this._tNode,this._lView,e,void 0,t)}}]),e}();function hi(e){return Ze(function(){for(var t=e.prototype.constructor,n=t[ct]||fi(t),i=Object.prototype,r=Object.getPrototypeOf(e.prototype).constructor;r&&r!==i;){var o=r[ct]||fi(r);if(o&&o!==n)return o;r=Object.getPrototypeOf(r)}return function(e){return new e}})}function fi(e){return De(e)?function(){var t=fi(Ee(e));return t&&t()}:Dt(e)}function pi(e){return function(e,t){if("class"===t)return e.classes;if("style"===t)return e.styles;var n=e.attrs;if(n)for(var i=n.length,r=0;r<i;){var o=n[r];if(Nn(o))break;if(0===o)r+=2;else if("number"==typeof o)for(r++;r<i&&"string"==typeof n[r];)r++;else{if(o===t)return n[r+1];r+=2}}return null}(rn(),e)}function gi(e,n,i){return Ze(function(){var r=function(e){return function(){if(e){var t=e.apply(void 0,arguments);for(var n in t)this[n]=t[n]}}}(n);function o(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];if(this instanceof o)return r.apply(this,n),this;var a=t(o,n);return s.annotation=a,s;function s(e,t,n){for(var i=e.hasOwnProperty("__parameters__")?e.__parameters__:Object.defineProperty(e,"__parameters__",{value:[]}).__parameters__;i.length<=n;)i.push(null);return(i[n]=i[n]||[]).push(a),e}}return i&&(o.prototype=Object.create(i.prototype)),o.prototype.ngMetadataName=e,o.annotationCls=o,o})}var vi=gi("Attribute",function(e){return{attributeName:e,__NG_ELEMENT_ID__:function(){return pi(e)}}}),mi=function(){function e(t,n){A(this,e),this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof n?this.__NG_ELEMENT_ID__=n:void 0!==n&&(this.\u0275prov=Re({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}return m(e,[{key:"toString",value:function(){return"InjectionToken "+this._desc}}]),e}(),yi=new mi("AnalyzeForEntryComponents"),bi=Function;function wi(e,t){void 0===t&&(t=e);for(var n=0;n<e.length;n++){var i=e[n];Array.isArray(i)?(t===e&&(t=e.slice(0,n)),wi(i,t)):t!==e&&t.push(i)}return t}function _i(e,t){e.forEach(function(e){return Array.isArray(e)?_i(e,t):t(e)})}function ki(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function xi(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function Ai(e,t){for(var n=[],i=0;i<e;i++)n.push(t);return n}function Ci(e,t,n){var i=Pi(e,t);return i>=0?e[1|i]=n:function(e,t,n,i){var r=e.length;if(r==t)e.push(n,i);else if(1===r)e.push(i,e[0]),e[0]=n;else{for(r--,e.push(e[r-1],e[r]);r>t;)e[r]=e[r-2],r--;e[t]=n,e[t+1]=i}}(e,i=~i,t,n),i}function Si(e,t){var n=Pi(e,t);if(n>=0)return e[1|n]}function Pi(e,t){return function(e,t,n){for(var i=0,r=e.length>>1;r!==i;){var o=i+(r-i>>1),a=e[o<<1];if(t===a)return o<<1;a>t?r=o:i=o+1}return~(r<<1)}(e,t)}var Ei={},Di=/\n/gm,Oi=ke({provide:String,useValue:ke}),Mi=void 0;function Ti(e){var t=Mi;return Mi=e,t}function Ii(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ge.Default;if(void 0===Mi)throw new Error("inject() must be called from an injection context");return null===Mi?Ye(e,void 0,t):Mi.get(e,t&Ge.Optional?null:void 0,t)}function Ri(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ge.Default;return(Ne||Ii)(Ee(e),t)}var Li=Ri;function Fi(e){for(var t=[],n=0;n<e.length;n++){var i=Ee(e[n]);if(Array.isArray(i)){if(0===i.length)throw new Error("Arguments array must have arguments.");for(var r=void 0,o=Ge.Default,a=0;a<i.length;a++){var s=i[a],l=s.__NG_DI_FLAG__;"number"==typeof l?-1===l?r=s.token:o|=l:r=s}t.push(Ri(r,o))}else t.push(Ri(i))}return t}function Bi(e,t){return e.__NG_DI_FLAG__=t,e.prototype.__NG_DI_FLAG__=t,e}var Vi,zi,Ni=Bi(gi("Inject",function(e){return{token:e}}),-1),Hi=Bi(gi("Optional"),8),ji=Bi(gi("SkipSelf"),4);function Ui(e){var t;return(null===(t=function(){if(void 0===Vi&&(Vi=null,tt.trustedTypes))try{Vi=tt.trustedTypes.createPolicy("angular",{createHTML:function(e){return e},createScript:function(e){return e},createScriptURL:function(e){return e}})}catch(t){}return Vi}())||void 0===t?void 0:t.createHTML(e))||e}function Wi(e){var t;return(null===(t=function(){if(void 0===zi&&(zi=null,tt.trustedTypes))try{zi=tt.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:function(e){return e},createScript:function(e){return e},createScriptURL:function(e){return e}})}catch(t){}return zi}())||void 0===t?void 0:t.createHTML(e))||e}var Gi=function(){function e(t){A(this,e),this.changingThisBreaksApplicationSecurity=t}return m(e,[{key:"toString",value:function(){return"SafeValue must use [property]=binding: "+this.changingThisBreaksApplicationSecurity+" (see https://g.co/ng/security#xss)"}}]),e}(),qi=function(e){r(n,e);var t=a(n);function n(){return A(this,n),t.apply(this,arguments)}return m(n,[{key:"getTypeName",value:function(){return"HTML"}}]),n}(Gi),Yi=function(e){r(n,e);var t=a(n);function n(){return A(this,n),t.apply(this,arguments)}return m(n,[{key:"getTypeName",value:function(){return"Style"}}]),n}(Gi),Zi=function(e){r(n,e);var t=a(n);function n(){return A(this,n),t.apply(this,arguments)}return m(n,[{key:"getTypeName",value:function(){return"Script"}}]),n}(Gi),Qi=function(e){r(n,e);var t=a(n);function n(){return A(this,n),t.apply(this,arguments)}return m(n,[{key:"getTypeName",value:function(){return"URL"}}]),n}(Gi),Xi=function(e){r(n,e);var t=a(n);function n(){return A(this,n),t.apply(this,arguments)}return m(n,[{key:"getTypeName",value:function(){return"ResourceURL"}}]),n}(Gi);function Ki(e){return e instanceof Gi?e.changingThisBreaksApplicationSecurity:e}function Ji(e,t){var n=$i(e);if(null!=n&&n!==t){if("ResourceURL"===n&&"URL"===t)return!0;throw new Error("Required a safe ".concat(t,", got a ").concat(n," (see https://g.co/ng/security#xss)"))}return n===t}function $i(e){return e instanceof Gi&&e.getTypeName()||null}var er=function(){function e(t){A(this,e),this.inertDocumentHelper=t}return m(e,[{key:"getInertBodyElement",value:function(e){e="<body><remove></remove>"+e;try{var t=(new window.DOMParser).parseFromString(Ui(e),"text/html").body;return null===t?this.inertDocumentHelper.getInertBodyElement(e):(t.removeChild(t.firstChild),t)}catch(n){return null}}}]),e}(),tr=function(){function e(t){if(A(this,e),this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){var n=this.inertDocument.createElement("html");this.inertDocument.appendChild(n);var i=this.inertDocument.createElement("body");n.appendChild(i)}}return m(e,[{key:"getInertBodyElement",value:function(e){var t=this.inertDocument.createElement("template");if("content"in t)return t.innerHTML=Ui(e),t;var n=this.inertDocument.createElement("body");return n.innerHTML=Ui(e),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(n),n}},{key:"stripCustomNsAttrs",value:function(e){for(var t=e.attributes,n=t.length-1;0<n;n--){var i=t.item(n).name;"xmlns:ns1"!==i&&0!==i.indexOf("ns1:")||e.removeAttribute(i)}for(var r=e.firstChild;r;)r.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(r),r=r.nextSibling}}]),e}(),nr=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi,ir=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i;function rr(e){return(e=String(e)).match(nr)||e.match(ir)?e:"unsafe:"+e}function or(e){var t,n={},i=h(e.split(","));try{for(i.s();!(t=i.n()).done;){n[t.value]=!0}}catch(r){i.e(r)}finally{i.f()}return n}function ar(){for(var e={},t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];for(var r=0,o=n;r<o.length;r++){var a=o[r];for(var s in a)a.hasOwnProperty(s)&&(e[s]=!0)}return e}var sr,lr=or("area,br,col,hr,img,wbr"),ur=or("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),cr=or("rp,rt"),dr=ar(cr,ur),hr=ar(lr,ar(ur,or("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),ar(cr,or("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),dr),fr=or("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),pr=or("srcset"),gr=ar(fr,pr,or("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),or("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),vr=or("script,style,template"),mr=function(){function e(){A(this,e),this.sanitizedSomething=!1,this.buf=[]}return m(e,[{key:"sanitizeChildren",value:function(e){for(var t=e.firstChild,n=!0;t;)if(t.nodeType===Node.ELEMENT_NODE?n=this.startElement(t):t.nodeType===Node.TEXT_NODE?this.chars(t.nodeValue):this.sanitizedSomething=!0,n&&t.firstChild)t=t.firstChild;else for(;t;){t.nodeType===Node.ELEMENT_NODE&&this.endElement(t);var i=this.checkClobberedElement(t,t.nextSibling);if(i){t=i;break}t=this.checkClobberedElement(t,t.parentNode)}return this.buf.join("")}},{key:"startElement",value:function(e){var t=e.nodeName.toLowerCase();if(!hr.hasOwnProperty(t))return this.sanitizedSomething=!0,!vr.hasOwnProperty(t);this.buf.push("<"),this.buf.push(t);for(var n,i=e.attributes,r=0;r<i.length;r++){var o=i.item(r),a=o.name,s=a.toLowerCase();if(gr.hasOwnProperty(s)){var l=o.value;fr[s]&&(l=rr(l)),pr[s]&&(n=l,l=(n=String(n)).split(",").map(function(e){return rr(e.trim())}).join(", ")),this.buf.push(" ",a,'="',wr(l),'"')}else this.sanitizedSomething=!0}return this.buf.push(">"),!0}},{key:"endElement",value:function(e){var t=e.nodeName.toLowerCase();hr.hasOwnProperty(t)&&!lr.hasOwnProperty(t)&&(this.buf.push("</"),this.buf.push(t),this.buf.push(">"))}},{key:"chars",value:function(e){this.buf.push(wr(e))}},{key:"checkClobberedElement",value:function(e,t){if(t&&(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error("Failed to sanitize html because the element is clobbered: "+e.outerHTML);return t}}]),e}(),yr=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,br=/([^\#-~ |!])/g;function wr(e){return e.replace(/&/g,"&amp;").replace(yr,function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"}).replace(br,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}function _r(e,t){var n=null;try{sr=sr||function(e){var t=new tr(e);return function(){try{return!!(new window.DOMParser).parseFromString(Ui(""),"text/html")}catch(e){return!1}}()?new er(t):t}(e);var i=t?String(t):"";n=sr.getInertBodyElement(i);var r=5,o=i;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,i=o,o=n.innerHTML,n=sr.getInertBodyElement(i)}while(i!==o);return Ui((new mr).sanitizeChildren(kr(n)||n))}finally{if(n)for(var a=kr(n)||n;a.firstChild;)a.removeChild(a.firstChild)}}function kr(e){return"content"in e&&function(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var xr=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}({});function Ar(e){var t=Sr();return t?Wi(t.sanitize(xr.HTML,e)||""):Ji(e,"HTML")?Wi(Ki(e)):_r(Bt(),Me(e))}function Cr(e){var t=Sr();return t?t.sanitize(xr.URL,e)||"":Ji(e,"URL")?Ki(e):rr(Me(e))}function Sr(){var e=en();return e&&e[12]}function Pr(e){return e.ngDebugContext}function Er(e){return e.ngOriginalError}function Dr(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];e.error.apply(e,n)}var Or=function(){function e(){A(this,e),this._console=console}return m(e,[{key:"handleError",value:function(e){var t=this._findOriginalError(e),n=this._findContext(e),i=function(e){return e.ngErrorLogger||Dr}(e);i(this._console,"ERROR",e),t&&i(this._console,"ORIGINAL ERROR",t),n&&i(this._console,"ERROR CONTEXT",n)}},{key:"_findContext",value:function(e){return e?Pr(e)?Pr(e):this._findContext(Er(e)):null}},{key:"_findOriginalError",value:function(e){for(var t=Er(e);t&&Er(t);)t=Er(t);return t}}]),e}();function Mr(e,t){e.__ngContext__=t}var Tr=("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(tt);function Ir(e){return{name:"window",target:e.ownerDocument.defaultView}}function Rr(e){return{name:"body",target:e.ownerDocument.body}}function Lr(e){return e instanceof Function?e():e}var Fr=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}({});function Br(e,t){return(void 0)(e,t)}function Vr(e){var t=e[3];return At(t)?t[3]:t}function zr(e){return Hr(e[13])}function Nr(e){return Hr(e[4])}function Hr(e){for(;null!==e&&!At(e);)e=e[4];return e}function jr(e,t,n,i,r){if(null!=i){var o,a=!1;At(i)?o=i:xt(i)&&(a=!0,i=i[0]);var s=Nt(i);0===e&&null!==n?null==r?Xr(t,n,s):Qr(t,n,s,r||null,!0):1===e&&null!==n?Qr(t,n,s,r||null,!0):2===e?function(e,t,n){var i=Jr(e,t);i&&function(e,t,n,i){Vt(e)?e.removeChild(t,n,i):t.removeChild(n)}(e,i,t,n)}(t,s,a):3===e&&t.destroyNode(s),null!=o&&function(e,t,n,i,r){var o=n[7];o!==Nt(n)&&jr(t,e,i,o,r);for(var a=10;a<n.length;a++){var s=n[a];ao(s[1],s,e,t,i,o)}}(t,e,o,n,r)}}function Ur(e,t,n){return Vt(e)?e.createElement(t,n):null===n?e.createElement(t):e.createElementNS(n,t)}function Wr(e,t){var n=e[9],i=n.indexOf(t),r=t[3];1024&t[2]&&(t[2]&=-1025,Kt(r,-1)),n.splice(i,1)}function Gr(e,t){if(!(e.length<=10)){var n,i=10+t,r=e[i];if(r){var o=r[17];null!==o&&o!==e&&Wr(o,r),t>0&&(e[i-1][4]=r[4]);var a=xi(e,10+t);ao(r[1],n=r,n[11],2,null,null),n[0]=null,n[6]=null;var s=a[19];null!==s&&s.detachView(a[1]),r[3]=null,r[4]=null,r[2]&=-129}return r}}function qr(e,t){if(!(256&t[2])){var n=t[11];Vt(n)&&n.destroyNode&&ao(e,t,n,3,null,null),function(e){var t=e[13];if(!t)return Yr(e[1],e);for(;t;){var n=null;if(xt(t))n=t[13];else{var i=t[10];i&&(n=i)}if(!n){for(;t&&!t[4]&&t!==e;)xt(t)&&Yr(t[1],t),t=t[3];null===t&&(t=e),xt(t)&&Yr(t[1],t),n=t&&t[4]}t=n}}(t)}}function Yr(e,t){if(!(256&t[2])){t[2]&=-129,t[2]|=256,function(e,t){var n;if(null!=e&&null!=(n=e.destroyHooks))for(var i=0;i<n.length;i+=2){var r=t[n[i]];if(!(r instanceof Vn)){var o=n[i+1];if(Array.isArray(o))for(var a=0;a<o.length;a+=2)o[a+1].call(r[o[a]]);else o.call(r)}}}(e,t),function(e,t){var n=e.cleanup,i=t[7],r=-1;if(null!==n)for(var o=0;o<n.length-1;o+=2)if("string"==typeof n[o]){var a=n[o+1],s="function"==typeof a?a(t):Nt(t[a]),l=i[r=n[o+2]],u=n[o+3];"boolean"==typeof u?s.removeEventListener(n[o],l,u):u>=0?i[r=u]():i[r=-u].unsubscribe(),o+=2}else{var c=i[r=n[o+1]];n[o].call(c)}if(null!==i){for(var d=r+1;d<i.length;d++)(0,i[d])();t[7]=null}}(e,t),1===t[1].type&&Vt(t[11])&&t[11].destroy();var n=t[17];if(null!==n&&At(t[3])){n!==t[3]&&Wr(n,t);var i=t[19];null!==i&&i.detachView(e)}}}function Zr(e,t,n){return function(e,t,n){for(var i=t;null!==i&&40&i.type;)i=(t=i).parent;if(null===i)return n[0];if(2&i.flags){var r=e.data[i.directiveStart].encapsulation;if(r===Xe.None||r===Xe.Emulated)return null}return jt(i,n)}(e,t.parent,n)}function Qr(e,t,n,i,r){Vt(e)?e.insertBefore(t,n,i,r):t.insertBefore(n,i,r)}function Xr(e,t,n){Vt(e)?e.appendChild(t,n):t.appendChild(n)}function Kr(e,t,n,i,r){null!==i?Qr(e,t,n,i,r):Xr(e,t,n)}function Jr(e,t){return Vt(e)?e.parentNode(t):t.parentNode}function $r(e,t,n){return eo(e,t,n)}var eo=function(e,t,n){return 40&e.type?jt(e,n):null};function to(e,t,n,i){var r=Zr(e,i,t),o=t[11],a=$r(i.parent||t[6],i,t);if(null!=r)if(Array.isArray(n))for(var s=0;s<n.length;s++)Kr(o,r,n[s],a,!1);else Kr(o,r,n,a,!1)}function no(e,t){if(null!==t){var n=t.type;if(3&n)return jt(t,e);if(4&n)return ro(-1,e[t.index]);if(8&n){var i=t.child;if(null!==i)return no(e,i);var r=e[t.index];return At(r)?ro(-1,r):Nt(r)}if(32&n)return Br(t,e)()||Nt(e[t.index]);var o=io(e,t);return null!==o?Array.isArray(o)?o[0]:no(Vr(e[16]),o):no(e,t.next)}return null}function io(e,t){return null!==t?e[16][6].projection[t.projection]:null}function ro(e,t){var n=10+e+1;if(n<t.length){var i=t[n],r=i[1].firstChild;if(null!==r)return no(i,r)}return t[7]}function oo(e,t,n,i,r,o,a){for(;null!=n;){var s=i[n.index],l=n.type;if(a&&0===t&&(s&&Mr(Nt(s),i),n.flags|=4),64!=(64&n.flags))if(8&l)oo(e,t,n.child,i,r,o,!1),jr(t,e,r,s,o);else if(32&l){for(var u=Br(n,i),c=void 0;c=u();)jr(t,e,r,c,o);jr(t,e,r,s,o)}else 16&l?so(e,t,i,n,r,o):jr(t,e,r,s,o);n=a?n.projectionNext:n.next}}function ao(e,t,n,i,r,o){oo(n,i,e.firstChild,t,r,o,!1)}function so(e,t,n,i,r,o){var a=n[16],s=a[6].projection[i.projection];if(Array.isArray(s))for(var l=0;l<s.length;l++)jr(t,e,r,s[l],o);else oo(e,t,s,a[3],r,o,!0)}function lo(e,t,n){Vt(e)?e.setAttribute(t,"style",n):t.style.cssText=n}function uo(e,t,n){Vt(e)?""===n?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n):t.className=n}function co(e,t,n){for(var i=e.length;;){var r=e.indexOf(t,n);if(-1===r)return r;if(0===r||e.charCodeAt(r-1)<=32){var o=t.length;if(r+o===i||e.charCodeAt(r+o)<=32)return r}n=r+1}}function ho(e,t,n){for(var i=0;i<e.length;){var r=e[i++];if(n&&"class"===r){if(-1!==co((r=e[i]).toLowerCase(),t,0))return!0}else if(1===r){for(;i<e.length&&"string"==typeof(r=e[i++]);)if(r.toLowerCase()===t)return!0;return!1}}return!1}function fo(e){return 4===e.type&&"ng-template"!==e.value}function po(e,t,n){return t===(4!==e.type||n?e.value:"ng-template")}function go(e,t,n){for(var i=4,r=e.attrs||[],o=function(e){for(var t=0;t<e.length;t++)if(Nn(e[t]))return t;return e.length}(r),a=!1,s=0;s<t.length;s++){var l=t[s];if("number"!=typeof l){if(!a)if(4&i){if(i=2|1&i,""!==l&&!po(e,l,n)||""===l&&1===t.length){if(vo(i))return!1;a=!0}}else{var u=8&i?l:t[++s];if(8&i&&null!==e.attrs){if(!ho(e.attrs,u,n)){if(vo(i))return!1;a=!0}continue}var c=mo(8&i?"class":l,r,fo(e),n);if(-1===c){if(vo(i))return!1;a=!0;continue}if(""!==u){var d;d=c>o?"":r[c+1].toLowerCase();var h=8&i?d:null;if(h&&-1!==co(h,u,0)||2&i&&u!==d){if(vo(i))return!1;a=!0}}}}else{if(!a&&!vo(i)&&!vo(l))return!1;if(a&&vo(l))continue;a=!1,i=l|1&i}}return vo(i)||a}function vo(e){return 0==(1&e)}function mo(e,t,n,i){if(null===t)return-1;var r=0;if(i||!n){for(var o=!1;r<t.length;){var a=t[r];if(a===e)return r;if(3===a||6===a)o=!0;else{if(1===a||2===a){for(var s=t[++r];"string"==typeof s;)s=t[++r];continue}if(4===a)break;if(0===a){r+=4;continue}}r+=o?1:2}return-1}return function(e,t){var n=e.indexOf(4);if(n>-1)for(n++;n<e.length;){var i=e[n];if("number"==typeof i)return-1;if(i===t)return n;n++}return-1}(t,e)}function yo(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=0;i<t.length;i++)if(go(e,t[i],n))return!0;return!1}function bo(e,t){e:for(var n=0;n<t.length;n++){var i=t[n];if(e.length===i.length){for(var r=0;r<e.length;r++)if(e[r]!==i[r])continue e;return!0}}return!1}function wo(e,t){return e?":not("+t.trim()+")":t}function _o(e){for(var t=e[0],n=1,i=2,r="",o=!1;n<e.length;){var a=e[n];if("string"==typeof a)if(2&i){var s=e[++n];r+="["+a+(s.length>0?'="'+s+'"':"")+"]"}else 8&i?r+="."+a:4&i&&(r+=" "+a);else""===r||vo(a)||(t+=wo(o,r),r=""),i=a,o=o||!vo(i);n++}return""!==r&&(t+=wo(o,r)),t}var ko={};function xo(e){Ao(tn(),en(),Pn()+e,un())}function Ao(e,t,n,i){if(!i)if(3==(3&t[2])){var r=e.preOrderCheckHooks;null!==r&&In(t,r,n)}else{var o=e.preOrderHooks;null!==o&&Rn(t,o,0,n)}En(n)}function Co(e,t){return e<<17|t<<2}function So(e){return e>>17&32767}function Po(e){return 2|e}function Eo(e){return(131068&e)>>2}function Do(e,t){return-131069&e|t<<2}function Oo(e){return 1|e}function Mo(e,t){var n=e.contentQueries;if(null!==n)for(var i=0;i<n.length;i+=2){var r=n[i],o=n[i+1];if(-1!==o){var a=e.data[o];yn(r),a.contentQueries(2,t[o],o)}}}function To(e,t,n,i,r,o,a,s,l,u){var c=t.blueprint.slice();return c[0]=r,c[2]=140|i,Xt(c),c[3]=c[15]=e,c[8]=n,c[10]=a||e&&e[10],c[11]=s||e&&e[11],c[12]=l||e&&e[12]||null,c[9]=u||e&&e[9]||null,c[6]=o,c[16]=2==t.type?e[16]:c,c}function Io(e,t,n,i,r){var o,a,s=e.data[t];if(null===s)s=function(e,t,n,i,r){var o=on(),a=sn(),s=e.data[t]=function(e,t,n,i,r,o){return{type:n,index:i,insertBeforeIndex:null,injectorIndex:t?t.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,value:r,attrs:o,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tViews:null,next:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,a?o:o&&o.parent,n,t,i,r);return null===e.firstChild&&(e.firstChild=s),null!==o&&(a?null==o.child&&null!==s.parent&&(o.child=s):null===o.next&&(o.next=s)),s}(e,t,n,i,r),Jt.lFrame.inI18n&&(s.flags|=64);else if(64&s.type){s.type=n,s.value=i,s.attrs=r;var l=(o=Jt.lFrame,a=o.currentTNode,o.isParent?a:a.parent);s.injectorIndex=null===l?-1:l.injectorIndex}return an(s,!0),s}function Ro(e,t,n,i){if(0===n)return-1;for(var r=t.length,o=0;o<n;o++)t.push(i),e.blueprint.push(i),e.data.push(null);return r}function Lo(e,t,n){_n(t);try{var i=e.viewQuery;null!==i&&da(1,i,n);var r=e.template;null!==r&&Vo(e,t,r,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),e.staticContentQueries&&Mo(e,t),e.staticViewQueries&&da(2,e.viewQuery,n);var o=e.components;null!==o&&function(e,t){for(var n=0;n<t.length;n++)aa(e,t[n])}(t,o)}catch(a){throw e.firstCreatePass&&(e.incompleteFirstPass=!0),a}finally{t[2]&=-5,Sn()}}function Fo(e,t,n,i){var r=t[2];if(256!=(256&r)){_n(t);var o=un();try{Xt(t),Jt.lFrame.bindingIndex=e.bindingStartIndex,null!==n&&Vo(e,t,n,2,i);var a=3==(3&r);if(!o)if(a){var s=e.preOrderCheckHooks;null!==s&&In(t,s,null)}else{var l=e.preOrderHooks;null!==l&&Rn(t,l,0,null),Ln(t,0)}if(function(e){for(var t=zr(e);null!==t;t=Nr(t))if(t[2])for(var n=t[9],i=0;i<n.length;i++){var r=n[i],o=r[3];0==(1024&r[2])&&Kt(o,1),r[2]|=1024}}(t),function(e){for(var t=zr(e);null!==t;t=Nr(t))for(var n=10;n<t.length;n++){var i=t[n],r=i[1];Zt(i)&&Fo(r,i,r.template,i[8])}}(t),null!==e.contentQueries&&Mo(e,t),!o)if(a){var u=e.contentCheckHooks;null!==u&&In(t,u)}else{var c=e.contentHooks;null!==c&&Rn(t,c,1),Ln(t,1)}!function(e,t){var n,i,r,o=e.hostBindingOpCodes;if(null!==o)try{for(var a=0;a<o.length;a++){var s=o[a];if(s<0)En(~s);else{var l=s,u=o[++a],c=o[++a];n=u,i=l,r=void 0,(r=Jt.lFrame).bindingIndex=r.bindingRootIndex=n,gn(i),c(2,t[l])}}}finally{En(-1)}}(e,t);var d=e.components;null!==d&&function(e,t){for(var n=0;n<t.length;n++)ra(e,t[n])}(t,d);var h=e.viewQuery;if(null!==h&&da(2,h,i),!o)if(a){var f=e.viewCheckHooks;null!==f&&In(t,f)}else{var p=e.viewHooks;null!==p&&Rn(t,p,2),Ln(t,2)}!0===e.firstUpdatePass&&(e.firstUpdatePass=!1),o||(t[2]&=-73),1024&t[2]&&(t[2]&=-1025,Kt(t[3],-1))}finally{Sn()}}}function Bo(e,t,n,i){var r=t[10],o=!un(),a=Yt(t);try{o&&!a&&r.begin&&r.begin(),a&&Lo(e,t,i),Fo(e,t,n,i)}finally{o&&!a&&r.end&&r.end()}}function Vo(e,t,n,i,r){var o=Pn();try{En(-1),2&i&&t.length>20&&Ao(e,t,20,un()),n(i,r)}finally{En(o)}}function zo(e,t,n){if(Ct(t))for(var i=t.directiveEnd,r=t.directiveStart;r<i;r++){var o=e.data[r];o.contentQueries&&o.contentQueries(1,n[r],r)}}function No(e,t,n){$t()&&(function(e,t,n,i){var r=n.directiveStart,o=n.directiveEnd;e.firstCreatePass||Xn(n,t),Mr(i,t);for(var a=n.initialInputs,s=r;s<o;s++){var l=e.data[s],u=Et(l);u&&ea(t,n,l);var c=li(t,e,s,n);Mr(c,t),null!==a&&ta(0,s-r,c,l,0,a),u&&(Gt(n.index,t)[8]=c)}}(e,t,n,jt(n,t)),128==(128&n.flags)&&function(e,t,n){var i=n.directiveStart,r=n.directiveEnd,o=n.index,a=Jt.lFrame.currentDirectiveIndex;try{En(o);for(var s=i;s<r;s++){var l=e.data[s],u=t[s];gn(s),null===l.hostBindings&&0===l.hostVars&&null===l.hostAttrs||Qo(l,u)}}finally{En(-1),gn(a)}}(e,t,n))}function Ho(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:jt,i=t.localNames;if(null!==i)for(var r=t.index+1,o=0;o<i.length;o+=2){var a=i[o+1],s=-1===a?n(t,e):e[a];e[r++]=s}}function jo(e){var t=e.tView;return null===t||t.incompleteFirstPass?e.tView=Uo(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts):t}function Uo(e,t,n,i,r,o,a,s,l,u){var c=20+i,d=c+r,h=function(e,t){for(var n=[],i=0;i<t;i++)n.push(i<e?null:ko);return n}(c,d),f="function"==typeof u?u():u;return h[1]={type:e,blueprint:h,template:n,queries:null,viewQuery:s,declTNode:t,data:h.slice().fill(null,c),bindingStartIndex:c,expandoStartIndex:d,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof o?o():o,pipeRegistry:"function"==typeof a?a():a,firstChild:null,schemas:l,consts:f,incompleteFirstPass:!1}}function Wo(e,t,n,i){var r=fa(t);null===n?r.push(i):(r.push(n),e.firstCreatePass&&pa(e).push(i,r.length-1))}function Go(e,t,n){for(var i in e)if(e.hasOwnProperty(i)){var r=e[i];(n=null===n?{}:n).hasOwnProperty(i)?n[i].push(t,r):n[i]=[t,r]}return n}function qo(e,t,n,i,r,o,a,s){var l,u,c=jt(t,n),d=t.inputs;!s&&null!=d&&(l=d[i])?(ma(e,n,l,i,r),St(t)&&function(e,t){var n=Gt(t,e);16&n[2]||(n[2]|=64)}(n,t.index)):3&t.type&&(i="class"===(u=i)?"className":"for"===u?"htmlFor":"formaction"===u?"formAction":"innerHtml"===u?"innerHTML":"readonly"===u?"readOnly":"tabindex"===u?"tabIndex":u,r=null!=a?a(r,t.value||"",i):r,Vt(o)?o.setProperty(c,i,r):Hn(i)||(c.setProperty?c.setProperty(i,r):c[i]=r))}function Yo(e,t,n,i){var r=!1;if($t()){var o=function(e,t,n){var i=e.directiveRegistry,r=null;if(i)for(var o=0;o<i.length;o++){var a=i[o];yo(n,a.selectors,!1)&&(r||(r=[]),ei(Xn(n,t),e,a.type),Et(a)?(Xo(e,n),r.unshift(a)):r.push(a))}return r}(e,t,n),a=null===i?null:{"":-1};if(null!==o){r=!0,Jo(n,e.data.length,o.length);for(var s=0;s<o.length;s++){var l=o[s];l.providersResolver&&l.providersResolver(l)}for(var u=!1,c=!1,d=Ro(e,t,o.length,null),h=0;h<o.length;h++){var f=o[h];n.mergedAttrs=jn(n.mergedAttrs,f.hostAttrs),$o(e,n,t,d,f),Ko(d,f,a),null!==f.contentQueries&&(n.flags|=8),null===f.hostBindings&&null===f.hostAttrs&&0===f.hostVars||(n.flags|=128);var p=f.type.prototype;!u&&(p.ngOnChanges||p.ngOnInit||p.ngDoCheck)&&((e.preOrderHooks||(e.preOrderHooks=[])).push(n.index),u=!0),c||!p.ngOnChanges&&!p.ngDoCheck||((e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(n.index),c=!0),d++}!function(e,t){for(var n=t.directiveEnd,i=e.data,r=t.attrs,o=[],a=null,s=null,l=t.directiveStart;l<n;l++){var u=i[l],c=u.inputs,d=null===r||fo(t)?null:na(c,r);o.push(d),a=Go(c,l,a),s=Go(u.outputs,l,s)}null!==a&&(a.hasOwnProperty("class")&&(t.flags|=16),a.hasOwnProperty("style")&&(t.flags|=32)),t.initialInputs=o,t.inputs=a,t.outputs=s}(e,n)}a&&function(e,t,n){if(t)for(var i=e.localNames=[],r=0;r<t.length;r+=2){var o=n[t[r+1]];if(null==o)throw new Oe("301","Export of name '".concat(t[r+1],"' not found!"));i.push(t[r],o)}}(n,i,a)}return n.mergedAttrs=jn(n.mergedAttrs,n.attrs),r}function Zo(e,t,n,i,r,o){var a=o.hostBindings;if(a){var s=e.hostBindingOpCodes;null===s&&(s=e.hostBindingOpCodes=[]);var l=~t.index;(function(e){for(var t=e.length;t>0;){var n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(s)!=l&&s.push(l),s.push(i,r,a)}}function Qo(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function Xo(e,t){t.flags|=2,(e.components||(e.components=[])).push(t.index)}function Ko(e,t,n){if(n){if(t.exportAs)for(var i=0;i<t.exportAs.length;i++)n[t.exportAs[i]]=e;Et(t)&&(n[""]=e)}}function Jo(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t}function $o(e,t,n,i,r){e.data[i]=r;var o=r.factory||(r.factory=Dt(r.type)),a=new Vn(o,Et(r),null);e.blueprint[i]=a,n[i]=a,Zo(e,t,0,i,Ro(e,n,r.hostVars,ko),r)}function ea(e,t,n){var i=jt(t,e),r=jo(n),o=e[10],a=sa(e,To(e,r,null,n.onPush?64:16,i,t,o,o.createRenderer(i,n),null,null));e[t.index]=a}function ta(e,t,n,i,r,o){var a=o[t];if(null!==a)for(var s=i.setInput,l=0;l<a.length;){var u=a[l++],c=a[l++],d=a[l++];null!==s?i.setInput(n,d,u,c):n[c]=d}}function na(e,t){for(var n=null,i=0;i<t.length;){var r=t[i];if(0!==r)if(5!==r){if("number"==typeof r)break;e.hasOwnProperty(r)&&(null===n&&(n=[]),n.push(r,e[r],t[i+1])),i+=2}else i+=2;else i+=4}return n}function ia(e,t,n,i){return new Array(e,!0,!1,t,null,0,i,n,null,null)}function ra(e,t){var n=Gt(t,e);if(Zt(n)){var i=n[1];80&n[2]?Fo(i,n,i.template,n[8]):n[5]>0&&oa(n)}}function oa(e){for(var t=zr(e);null!==t;t=Nr(t))for(var n=10;n<t.length;n++){var i=t[n];if(1024&i[2]){var r=i[1];Fo(r,i,r.template,i[8])}else i[5]>0&&oa(i)}var o=e[1].components;if(null!==o)for(var a=0;a<o.length;a++){var s=Gt(o[a],e);Zt(s)&&s[5]>0&&oa(s)}}function aa(e,t){var n=Gt(t,e),i=n[1];!function(e,t){for(var n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n])}(i,n),Lo(i,n,n[8])}function sa(e,t){return e[13]?e[14][4]=t:e[13]=t,e[14]=t,t}function la(e){for(;e;){e[2]|=64;var t=Vr(e);if(0!=(512&e[2])&&!t)return e;e=t}return null}function ua(e,t,n){var i=t[10];i.begin&&i.begin();try{Fo(e,t,e.template,n)}catch(r){throw va(t,r),r}finally{i.end&&i.end()}}function ca(e){!function(e){for(var t=0;t<e.components.length;t++){var n=e.components[t],i=qt(n),r=i[1];Bo(r,i,r.template,n)}}(e[8])}function da(e,t,n){yn(0),t(e,n)}var ha=Promise.resolve(null);function fa(e){return e[7]||(e[7]=[])}function pa(e){return e.cleanup||(e.cleanup=[])}function ga(e,t,n){return(null===e||Et(e))&&(n=function(e){for(;Array.isArray(e);){if("object"==typeof e[1])return e;e=e[0]}return null}(n[t.index])),n[11]}function va(e,t){var n=e[9],i=n?n.get(Or,null):null;i&&i.handleError(t)}function ma(e,t,n,i,r){for(var o=0;o<n.length;){var a=n[o++],s=n[o++],l=t[a],u=e.data[a];null!==u.setInput?u.setInput(l,r,i,s):l[s]=r}}function ya(e,t,n){var i=Ht(t,e);!function(e,t,n){Vt(e)?e.setValue(t,n):t.textContent=n}(e[11],i,n)}function ba(e,t,n){var i=n?e.styles:null,r=n?e.classes:null,o=0;if(null!==t)for(var a=0;a<t.length;a++){var s=t[a];"number"==typeof s?o=s:1==o?r=Ce(r,s):2==o&&(i=Ce(i,s+": "+t[++a]+";"))}n?e.styles=i:e.stylesWithoutHost=i,n?e.classes=r:e.classesWithoutHost=r}var wa=new mi("INJECTOR",-1),_a=function(){function e(){A(this,e)}return m(e,[{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ei;if(t===Ei){var n=new Error("NullInjectorError: No provider for ".concat(Ae(e),"!"));throw n.name="NullInjectorError",n}return t}}]),e}(),ka=new mi("Set Injector scope."),xa={},Aa={},Ca=[],Sa=void 0;function Pa(){return void 0===Sa&&(Sa=new _a),Sa}function Ea(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3?arguments[3]:void 0;return new Da(e,n,t||Pa(),i)}var Da=function(){function e(t,n,i){var r=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;A(this,e),this.parent=i,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;var a=[];n&&_i(n,function(e){return r.processProvider(e,t,n)}),_i([t],function(e){return r.processInjectorType(e,[],a)}),this.records.set(wa,Ta(void 0,this));var s=this.records.get(ka);this.scope=null!=s?s.value:null,this.source=o||("object"==typeof t?null:Ae(t))}return m(e,[{key:"destroyed",get:function(){return this._destroyed}},{key:"destroy",value:function(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(function(e){return e.ngOnDestroy()})}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}},{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ei,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Ge.Default;this.assertNotDestroyed();var i,r=Ti(this);try{if(!(n&Ge.SkipSelf)){var o=this.records.get(e);if(void 0===o){var a=("function"==typeof(i=e)||"object"==typeof i&&i instanceof mi)&&Be(e);o=a&&this.injectableDefInScope(a)?Ta(Oa(e),xa):null,this.records.set(e,o)}if(null!=o)return this.hydrate(e,o)}return(n&Ge.Self?Pa():this.parent).get(e,t=n&Ge.Optional&&t===Ei?null:t)}catch(s){if("NullInjectorError"===s.name){if((s.ngTempTokenPath=s.ngTempTokenPath||[]).unshift(Ae(e)),r)throw s;return function(e,t,n,i){var r=e.ngTempTokenPath;throw t.__source&&r.unshift(t.__source),e.message=function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.substr(2):e;var r=Ae(t);if(Array.isArray(t))r=t.map(Ae).join(" -> ");else if("object"==typeof t){var o=[];for(var a in t)if(t.hasOwnProperty(a)){var s=t[a];o.push(a+":"+("string"==typeof s?JSON.stringify(s):Ae(s)))}r="{".concat(o.join(", "),"}")}return"".concat(n).concat(i?"("+i+")":"","[").concat(r,"]: ").concat(e.replace(Di,"\n  "))}("\n"+e.message,r,"R3InjectorError",i),e.ngTokenPath=r,e.ngTempTokenPath=null,e}(s,e,0,this.source)}throw s}finally{Ti(r)}}},{key:"_resolveInjectorDefTypes",value:function(){var e=this;this.injectorDefTypes.forEach(function(t){return e.get(t)})}},{key:"toString",value:function(){var e=[];return this.records.forEach(function(t,n){return e.push(Ae(n))}),"R3Injector[".concat(e.join(", "),"]")}},{key:"assertNotDestroyed",value:function(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}},{key:"processInjectorType",value:function(e,t,n){var i=this;if(!(e=Ee(e)))return!1;var r=ze(e),o=null==r&&e.ngModule||void 0,a=void 0===o?e:o,s=-1!==n.indexOf(a);if(void 0!==o&&(r=ze(o)),null==r)return!1;if(null!=r.imports&&!s){var l;n.push(a);try{_i(r.imports,function(e){i.processInjectorType(e,t,n)&&(void 0===l&&(l=[]),l.push(e))})}finally{}if(void 0!==l)for(var u=function(e){var t=l[e],n=t.ngModule,r=t.providers;_i(r,function(e){return i.processProvider(e,n,r||Ca)})},c=0;c<l.length;c++)u(c)}this.injectorDefTypes.add(a);var d=Dt(a)||function(){return new a};this.records.set(a,Ta(d,xa));var h=r.providers;if(null!=h&&!s){var f=e;_i(h,function(e){return i.processProvider(e,f,h)})}return void 0!==o&&void 0!==e.providers}},{key:"processProvider",value:function(e,t,n){var i=Ra(e=Ee(e))?e:Ee(e&&e.provide),r=function(e,t,n){return Ia(e)?Ta(void 0,e.useValue):Ta(Ma(e),xa)}(e);if(Ra(e)||!0!==e.multi)this.records.get(i);else{var o=this.records.get(i);o||((o=Ta(void 0,xa,!0)).factory=function(){return Fi(o.multi)},this.records.set(i,o)),i=e,o.multi.push(e)}this.records.set(i,r)}},{key:"hydrate",value:function(e,t){var n;return t.value===xa&&(t.value=Aa,t.value=t.factory()),"object"==typeof t.value&&t.value&&null!==(n=t.value)&&"object"==typeof n&&"function"==typeof n.ngOnDestroy&&this.onDestroy.add(t.value),t.value}},{key:"injectableDefInScope",value:function(e){return!!e.providedIn&&("string"==typeof e.providedIn?"any"===e.providedIn||e.providedIn===this.scope:this.injectorDefTypes.has(e.providedIn))}}]),e}();function Oa(e){var t=Be(e),n=null!==t?t.factory:Dt(e);if(null!==n)return n;if(e instanceof mi)throw new Error("Token ".concat(Ae(e)," is missing a \u0275prov definition."));if(e instanceof Function)return function(e){var t=e.length;if(t>0){var n=Ai(t,"?");throw new Error("Can't resolve all parameters for ".concat(Ae(e),": (").concat(n.join(", "),")."))}var i=function(e){var t=e&&(e[He]||e[Ue]);if(t){var n=function(e){if(e.hasOwnProperty("name"))return e.name;var t=(""+e).match(/^function\s*([^\s(]+)/);return null===t?"":t[1]}(e);return console.warn('DEPRECATED: DI is instantiating a token "'.concat(n,'" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "').concat(n,'" class.')),t}return null}(e);return null!==i?function(){return i.factory(e)}:function(){return new e}}(e);throw new Error("unreachable")}function Ma(e,n,i){var r,o=void 0;if(Ra(e)){var a=Ee(e);return Dt(a)||Oa(a)}if(Ia(e))o=function(){return Ee(e.useValue)};else if((r=e)&&r.useFactory)o=function(){return e.useFactory.apply(e,y(Fi(e.deps||[])))};else if(function(e){return!(!e||!e.useExisting)}(e))o=function(){return Ri(Ee(e.useExisting))};else{var s=Ee(e&&(e.useClass||e.provide));if(!function(e){return!!e.deps}(e))return Dt(s)||Oa(s);o=function(){return t(s,y(Fi(e.deps)))}}return o}function Ta(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{factory:e,value:t,multi:n?[]:void 0}}function Ia(e){return null!==e&&"object"==typeof e&&Oi in e}function Ra(e){return"function"==typeof e}var La=function(e,t,n){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3?arguments[3]:void 0,r=Ea(e,t,n,i);return r._resolveInjectorDefTypes(),r}({name:n},t,e,n)},Fa=function(){var e=function(){function e(){A(this,e)}return m(e,null,[{key:"create",value:function(e,t){return Array.isArray(e)?La(e,t,""):La(e.providers,e.parent,e.name||"")}}]),e}();return e.THROW_IF_NOT_FOUND=Ei,e.NULL=new _a,e.\u0275prov=Re({token:e,providedIn:"any",factory:function(){return Ri(wa)}}),e.__NG_ELEMENT_ID__=-1,e}();function Ba(e,t){Tn(qt(e)[1],rn())}function Va(e){for(var t=Object.getPrototypeOf(e.type.prototype).constructor,n=!0,i=[e];t;){var r=void 0;if(Et(e))r=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new Error("Directives cannot inherit Components");r=t.\u0275dir}if(r){if(n){i.push(r);var o=e;o.inputs=za(e.inputs),o.declaredInputs=za(e.declaredInputs),o.outputs=za(e.outputs);var a=r.hostBindings;a&&ja(e,a);var s=r.viewQuery,l=r.contentQueries;if(s&&Na(e,s),l&&Ha(e,l),xe(e.inputs,r.inputs),xe(e.declaredInputs,r.declaredInputs),xe(e.outputs,r.outputs),Et(r)&&r.data.animation){var u=e.data;u.animation=(u.animation||[]).concat(r.data.animation)}}var c=r.features;if(c)for(var d=0;d<c.length;d++){var h=c[d];h&&h.ngInherit&&h(e),h===Va&&(n=!1)}}t=Object.getPrototypeOf(t)}!function(e){for(var t=0,n=null,i=e.length-1;i>=0;i--){var r=e[i];r.hostVars=t+=r.hostVars,r.hostAttrs=jn(r.hostAttrs,n=jn(n,r.hostAttrs))}}(i)}function za(e){return e===nt?{}:e===rt?[]:e}function Na(e,t){var n=e.viewQuery;e.viewQuery=n?function(e,i){t(e,i),n(e,i)}:t}function Ha(e,t){var n=e.contentQueries;e.contentQueries=n?function(e,i,r){t(e,i,r),n(e,i,r)}:t}function ja(e,t){var n=e.hostBindings;e.hostBindings=n?function(e,i){t(e,i),n(e,i)}:t}var Ua=null;function Wa(){if(!Ua){var e=tt.Symbol;if(e&&e.iterator)Ua=e.iterator;else for(var t=Object.getOwnPropertyNames(Map.prototype),n=0;n<t.length;++n){var i=t[n];"entries"!==i&&"size"!==i&&Map.prototype[i]===Map.prototype.entries&&(Ua=i)}}return Ua}var Ga=function(){function e(t){A(this,e),this.wrapped=t}return m(e,null,[{key:"wrap",value:function(t){return new e(t)}},{key:"unwrap",value:function(t){return e.isWrapped(t)?t.wrapped:t}},{key:"isWrapped",value:function(t){return t instanceof e}}]),e}();function qa(e){return!!Ya(e)&&(Array.isArray(e)||!(e instanceof Map)&&Wa()in e)}function Ya(e){return null!==e&&("function"==typeof e||"object"==typeof e)}function Za(e,t,n){return e[t]=n}function Qa(e,t,n){return!Object.is(e[t],n)&&(e[t]=n,!0)}function Xa(e,t,n,i){var r=Qa(e,t,n);return Qa(e,t+1,i)||r}function Ka(e,t,n,i,r){var o=Xa(e,t,n,i);return Qa(e,t+2,r)||o}function Ja(e,t,n,i,r,o){var a=Xa(e,t,n,i);return Xa(e,t+2,r,o)||a}function $a(e,t,n,i){var r=en();return Qa(r,fn(),t)&&(tn(),function(e,t,n,i,r,o){var a=jt(e,t);!function(e,t,n,i,r,o,a){if(null==o)Vt(e)?e.removeAttribute(t,r,n):t.removeAttribute(r);else{var s=null==a?Me(o):a(o,i||"",r);Vt(e)?e.setAttribute(t,r,s,n):n?t.setAttributeNS(n,r,s):t.setAttribute(r,s)}}(t[11],a,o,e.value,n,i,r)}(Dn(),r,e,t,n,i)),$a}function es(e,t,n,i){return Qa(e,fn(),n)?t+Me(n)+i:ko}function ts(e,t,n,i,r,o){var a=Xa(e,hn(),n,r);return pn(2),a?t+Me(n)+i+Me(r)+o:ko}function ns(e,t,n,i,r,o,a,s){var l=en(),u=tn(),c=e+20,d=u.firstCreatePass?function(e,t,n,i,r,o,a,s,l){var u=t.consts,c=Io(t,e,4,a||null,Qt(u,s));Yo(t,n,c,Qt(u,l)),Tn(t,c);var d=c.tViews=Uo(2,c,i,r,o,t.directiveRegistry,t.pipeRegistry,null,t.schemas,u);return null!==t.queries&&(t.queries.template(t,c),d.queries=t.queries.embeddedTView(c)),c}(c,u,l,t,n,i,r,o,a):u.data[c];an(d,!1);var h=l[11].createComment("");to(u,l,h,d),Mr(h,l),sa(l,l[c]=ia(h,l,h,d)),Pt(d)&&No(u,l,d),null!=a&&Ho(l,d,s)}function is(e){return Wt(Jt.lFrame.contextLView,20+e)}function rs(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ge.Default,n=en();return null===n?Ri(e,t):ii(rn(),n,Ee(e),t)}function os(e,t,n){var i=en();return Qa(i,fn(),t)&&qo(tn(),Dn(),i,e,t,i[11],n,!1),os}function as(e,t,n,i,r){var o=r?"class":"style";ma(e,n,t.inputs[o],o,i)}function ss(e,t,n,i){var r=en(),o=tn(),a=20+e,s=r[11],l=r[a]=Ur(s,t,Jt.lFrame.currentNamespace),u=o.firstCreatePass?function(e,t,n,i,r,o,a){var s=t.consts,l=Io(t,e,2,r,Qt(s,o));return Yo(t,n,l,Qt(s,a)),null!==l.attrs&&ba(l,l.attrs,!1),null!==l.mergedAttrs&&ba(l,l.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,l),l}(a,o,r,0,t,n,i):o.data[a];an(u,!0);var c=u.mergedAttrs;null!==c&&zn(s,l,c);var d=u.classes;null!==d&&uo(s,l,d);var h=u.styles;null!==h&&lo(s,l,h),64!=(64&u.flags)&&to(o,r,l,u),0===Jt.lFrame.elementDepthCount&&Mr(l,r),Jt.lFrame.elementDepthCount++,Pt(u)&&(No(o,r,u),zo(o,u,r)),null!==i&&Ho(r,u)}function ls(){var e=rn();sn()?ln():an(e=e.parent,!1);var t=e;Jt.lFrame.elementDepthCount--;var n=tn();n.firstCreatePass&&(Tn(n,e),Ct(e)&&n.queries.elementEnd(e)),null!=t.classesWithoutHost&&function(e){return 0!=(16&e.flags)}(t)&&as(n,t,en(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function(e){return 0!=(32&e.flags)}(t)&&as(n,t,en(),t.stylesWithoutHost,!1)}function us(e,t,n,i){ss(e,t,n,i),ls()}function cs(e,t,n){var i=en(),r=tn(),o=e+20,a=r.firstCreatePass?function(e,t,n,i,r){var o=t.consts,a=Qt(o,i),s=Io(t,e,8,"ng-container",a);return null!==a&&ba(s,a,!0),Yo(t,n,s,Qt(o,r)),null!==t.queries&&t.queries.elementStart(t,s),s}(o,r,i,t,n):r.data[o];an(a,!0);var s=i[o]=i[11].createComment("");to(r,i,s,a),Mr(s,i),Pt(a)&&(No(r,i,a),zo(r,a,i)),null!=n&&Ho(i,a)}function ds(){var e=rn(),t=tn();sn()?ln():an(e=e.parent,!1),t.firstCreatePass&&(Tn(t,e),Ct(e)&&t.queries.elementEnd(e))}function hs(e,t,n){cs(e,t,n),ds()}function fs(){return en()}function ps(e){return!!e&&"function"==typeof e.then}function gs(e){return!!e&&"function"==typeof e.subscribe}var vs=gs;function ms(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3?arguments[3]:void 0,r=en(),o=tn(),a=rn();return bs(o,r,r[11],a,e,t,n,i),ms}function ys(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3?arguments[3]:void 0,r=rn(),o=en(),a=tn();return bs(a,o,ga(vn(a.data),r,o),r,e,t,n,i),ys}function bs(e,t,n,i,r,o){var a=arguments.length>6&&void 0!==arguments[6]&&arguments[6],s=arguments.length>7?arguments[7]:void 0,l=Pt(i),u=e.firstCreatePass&&pa(e),c=fa(t),d=!0;if(3&i.type){var h=jt(i,t),f=s?s(h):nt,p=f.target||h,g=c.length,v=s?function(e){return s(Nt(e[i.index])).target}:i.index;if(Vt(n)){var m=null;if(!s&&l&&(m=function(e,t,n,i){var r=e.cleanup;if(null!=r)for(var o=0;o<r.length-1;o+=2){var a=r[o];if(a===n&&r[o+1]===i){var s=t[7],l=r[o+2];return s.length>l?s[l]:null}"string"==typeof a&&(o+=2)}return null}(e,t,r,i.index)),null!==m)(m.__ngLastListenerFn__||m).__ngNextListenerFn__=o,m.__ngLastListenerFn__=o,d=!1;else{o=_s(i,t,o,!1);var y=n.listen(f.name||p,r,o);c.push(o,y),u&&u.push(r,v,g,g+1)}}else o=_s(i,t,o,!0),p.addEventListener(r,o,a),c.push(o),u&&u.push(r,v,g,a)}else o=_s(i,t,o,!1);var b,w=i.outputs;if(d&&null!==w&&(b=w[r])){var _=b.length;if(_)for(var k=0;k<_;k+=2){var x=t[b[k]][b[k+1]].subscribe(o),A=c.length;c.push(o,x),u&&u.push(r,i.index,A,-(A+1))}}}function ws(e,t,n){try{return!1!==t(n)}catch(i){return va(e,i),!1}}function _s(e,t,n,i){return function r(o){if(o===Function)return n;var a=2&e.flags?Gt(e.index,t):t;0==(32&t[2])&&la(a);for(var s=ws(t,n,o),l=r.__ngNextListenerFn__;l;)s=ws(t,l,o)&&s,l=l.__ngNextListenerFn__;return i&&!1===s&&(o.preventDefault(),o.returnValue=!1),s}}function ks(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return function(e){return(Jt.lFrame.contextLView=function(e,t){for(;e>0;)t=t[15],e--;return t}(e,Jt.lFrame.contextLView))[8]}(e)}function xs(e,t){for(var n=null,i=function(e){var t=e.attrs;if(null!=t){var n=t.indexOf(5);if(0==(1&n))return t[n+1]}return null}(e),r=0;r<t.length;r++){var o=t[r];if("*"!==o){if(null===i?yo(e,o,!0):bo(i,o))return r}else n=r}return n}function As(e){var t=en()[16][6];if(!t.projection)for(var n=t.projection=Ai(e?e.length:1,null),i=n.slice(),r=t.child;null!==r;){var o=e?xs(r,e):0;null!==o&&(i[o]?i[o].projectionNext=r:n[o]=r,i[o]=r),r=r.next}}function Cs(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0,i=en(),r=tn(),o=Io(r,20+e,16,null,n||null);null===o.projection&&(o.projection=t),ln(),64!=(64&o.flags)&&function(e,t,n){so(t[11],0,t,n,Zr(e,n,t),$r(n.parent||t[6],n,t))}(r,i,o)}function Ss(e,t,n){return Ps(e,"",t,"",n),Ss}function Ps(e,t,n,i,r){var o=en(),a=es(o,t,n,i);return a!==ko&&qo(tn(),Dn(),o,e,a,o[11],r,!1),Ps}function Es(e,t,n,i,r,o,a){var s=en(),l=ts(s,t,n,i,r,o);return l!==ko&&qo(tn(),Dn(),s,e,l,s[11],a,!1),Es}function Ds(e,t,n,i,r){for(var o=e[n+1],a=null===t,s=i?So(o):Eo(o),l=!1;0!==s&&(!1===l||a);){var u=e[s+1];Os(e[s],t)&&(l=!0,e[s+1]=i?Oo(u):Po(u)),s=i?So(u):Eo(u)}l&&(e[n+1]=i?Po(o):Oo(o))}function Os(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&Pi(e,t)>=0}var Ms={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Ts(e){return e.substring(Ms.key,Ms.keyEnd)}function Is(e,t){var n=Ms.textEnd;return n===t?-1:(t=Ms.keyEnd=function(e,t,n){for(;t<n&&e.charCodeAt(t)>32;)t++;return t}(e,Ms.key=t,n),Rs(e,t,n))}function Rs(e,t,n){for(;t<n&&e.charCodeAt(t)<=32;)t++;return t}function Ls(e,t,n){return zs(e,t,n,!1),Ls}function Fs(e,t){return zs(e,t,null,!0),Fs}function Bs(e){Ns(Ci,Vs,e,!0)}function Vs(e,t){for(var n=function(e){return function(e){Ms.key=0,Ms.keyEnd=0,Ms.value=0,Ms.valueEnd=0,Ms.textEnd=e.length}(e),Is(e,Rs(e,0,Ms.textEnd))}(t);n>=0;n=Is(t,n))Ci(e,Ts(t),!0)}function zs(e,t,n,i){var r=en(),o=tn(),a=pn(2);o.firstUpdatePass&&js(o,e,a,i),t!==ko&&Qa(r,a,t)&&Gs(o,o.data[Pn()],r,r[11],e,r[a+1]=function(e,t){return null==e||("string"==typeof t?e+=t:"object"==typeof e&&(e=Ae(Ki(e)))),e}(t,n),i,a)}function Ns(e,t,n,i){var r=tn(),o=pn(2);r.firstUpdatePass&&js(r,null,o,i);var a=en();if(n!==ko&&Qa(a,o,n)){var s=r.data[Pn()];if(Zs(s,i)&&!Hs(r,o)){var l=i?s.classesWithoutHost:s.stylesWithoutHost;null!==l&&(n=Ce(l,n||"")),as(r,s,a,n,i)}else!function(e,t,n,i,r,o,a,s){r===ko&&(r=it);for(var l=0,u=0,c=0<r.length?r[0]:null,d=0<o.length?o[0]:null;null!==c||null!==d;){var h=l<r.length?r[l+1]:void 0,f=u<o.length?o[u+1]:void 0,p=null,g=void 0;c===d?(l+=2,u+=2,h!==f&&(p=d,g=f)):null===d||null!==c&&c<d?(l+=2,p=c):(u+=2,p=d,g=f),null!==p&&Gs(e,t,n,i,p,g,a,s),c=l<r.length?r[l]:null,d=u<o.length?o[u]:null}}(r,s,a,a[11],a[o+1],a[o+1]=function(e,t,n){if(null==n||""===n)return it;var i=[],r=Ki(n);if(Array.isArray(r))for(var o=0;o<r.length;o++)e(i,r[o],!0);else if("object"==typeof r)for(var a in r)r.hasOwnProperty(a)&&e(i,a,r[a]);else"string"==typeof r&&t(i,r);return i}(e,t,n),i,o)}}function Hs(e,t){return t>=e.expandoStartIndex}function js(e,t,n,i){var r=e.data;if(null===r[n+1]){var o=r[Pn()],a=Hs(e,n);Zs(o,i)&&null===t&&!a&&(t=!1),t=function(e,t,n,i){var r=vn(e),o=i?t.residualClasses:t.residualStyles;if(null===r)0===(i?t.classBindings:t.styleBindings)&&(n=Ws(n=Us(null,e,t,n,i),t.attrs,i),o=null);else{var a=t.directiveStylingLast;if(-1===a||e[a]!==r)if(n=Us(r,e,t,n,i),null===o){var s=function(e,t,n){var i=n?t.classBindings:t.styleBindings;if(0!==Eo(i))return e[So(i)]}(e,t,i);void 0!==s&&Array.isArray(s)&&function(e,t,n,i){e[So(n?t.classBindings:t.styleBindings)]=i}(e,t,i,s=Ws(s=Us(null,e,t,s[1],i),t.attrs,i))}else o=function(e,t,n){for(var i=void 0,r=t.directiveEnd,o=1+t.directiveStylingLast;o<r;o++)i=Ws(i,e[o].hostAttrs,n);return Ws(i,t.attrs,n)}(e,t,i)}return void 0!==o&&(i?t.residualClasses=o:t.residualStyles=o),n}(r,o,t,i),function(e,t,n,i,r,o){var a=o?t.classBindings:t.styleBindings,s=So(a),l=Eo(a);e[i]=n;var u,c=!1;if(Array.isArray(n)){var d=n;(null===(u=d[1])||Pi(d,u)>0)&&(c=!0)}else u=n;if(r)if(0!==l){var h=So(e[s+1]);e[i+1]=Co(h,s),0!==h&&(e[h+1]=Do(e[h+1],i)),e[s+1]=131071&e[s+1]|i<<17}else e[i+1]=Co(s,0),0!==s&&(e[s+1]=Do(e[s+1],i)),s=i;else e[i+1]=Co(l,0),0===s?s=i:e[l+1]=Do(e[l+1],i),l=i;c&&(e[i+1]=Po(e[i+1])),Ds(e,u,i,!0),Ds(e,u,i,!1),function(e,t,n,i,r){var o=r?e.residualClasses:e.residualStyles;null!=o&&"string"==typeof t&&Pi(o,t)>=0&&(n[i+1]=Oo(n[i+1]))}(t,u,e,i,o),a=Co(s,l),o?t.classBindings=a:t.styleBindings=a}(r,o,t,n,a,i)}}function Us(e,t,n,i,r){var o=null,a=n.directiveEnd,s=n.directiveStylingLast;for(-1===s?s=n.directiveStart:s++;s<a&&(i=Ws(i,(o=t[s]).hostAttrs,r),o!==e);)s++;return null!==e&&(n.directiveStylingLast=s),i}function Ws(e,t,n){var i=n?1:2,r=-1;if(null!==t)for(var o=0;o<t.length;o++){var a=t[o];"number"==typeof a?r=a:r===i&&(Array.isArray(e)||(e=void 0===e?[]:["",e]),Ci(e,a,!!n||t[++o]))}return void 0===e?null:e}function Gs(e,t,n,i,r,o,a,s){if(3&t.type){var l=e.data,u=l[s+1];Ys(1==(1&u)?qs(l,t,n,r,Eo(u),a):void 0)||(Ys(o)||2==(2&u)&&(o=qs(l,null,n,r,s,a)),function(e,t,n,i,r){var o=Vt(e);if(t)r?o?e.addClass(n,i):n.classList.add(i):o?e.removeClass(n,i):n.classList.remove(i);else{var a=-1===i.indexOf("-")?void 0:Fr.DashCase;if(null==r)o?e.removeStyle(n,i,a):n.style.removeProperty(i);else{var s="string"==typeof r&&r.endsWith("!important");s&&(r=r.slice(0,-10),a|=Fr.Important),o?e.setStyle(n,i,r,a):n.style.setProperty(i,r,s?"important":"")}}}(i,a,Ht(Pn(),n),r,o))}}function qs(e,t,n,i,r,o){for(var a=null===t,s=void 0;r>0;){var l=e[r],u=Array.isArray(l),c=u?l[1]:l,d=null===c,h=n[r+1];h===ko&&(h=d?it:void 0);var f=d?Si(h,i):c===i?h:void 0;if(u&&!Ys(f)&&(f=Si(l,i)),Ys(f)&&(s=f,a))return s;var p=e[r+1];r=a?So(p):Eo(p)}if(null!==t){var g=o?t.residualClasses:t.residualStyles;null!=g&&(s=Si(g,i))}return s}function Ys(e){return void 0!==e}function Zs(e,t){return 0!=(e.flags&(t?16:32))}function Qs(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=en(),i=tn(),r=e+20,o=i.firstCreatePass?Io(i,r,1,t,null):i.data[r],a=n[r]=function(e,t){return Vt(e)?e.createText(t):e.createTextNode(t)}(n[11],t);to(i,n,a,o),an(o,!1)}function Xs(e){return Ks("",e,""),Xs}function Ks(e,t,n){var i=en(),r=es(i,e,t,n);return r!==ko&&ya(i,Pn(),r),Ks}function Js(e,t,n,i,r){var o=en(),a=ts(o,e,t,n,i,r);return a!==ko&&ya(o,Pn(),a),Js}function $s(e,t,n,i,r,o,a){var s=en(),l=function(e,t,n,i,r,o,a,s){var l=Ka(e,hn(),n,r,a);return pn(3),l?t+Me(n)+i+Me(r)+o+Me(a)+s:ko}(s,e,t,n,i,r,o,a);return l!==ko&&ya(s,Pn(),l),$s}function el(e,t,n,i,r,o,a,s,l){var u=en(),c=function(e,t,n,i,r,o,a,s,l,u){var c=Ja(e,hn(),n,r,a,l);return pn(4),c?t+Me(n)+i+Me(r)+o+Me(a)+s+Me(l)+u:ko}(u,e,t,n,i,r,o,a,s,l);return c!==ko&&ya(u,Pn(),c),el}function tl(e,t,n){Ns(Ci,Vs,es(en(),e,t,n),!0)}function nl(e,t,n){var i=en();return Qa(i,fn(),t)&&qo(tn(),Dn(),i,e,t,i[11],n,!0),nl}function il(e,t,n){var i=en();if(Qa(i,fn(),t)){var r=tn(),o=Dn();qo(r,o,i,e,t,ga(vn(r.data),o,i),n,!0)}return il}var rl=void 0,ol=["en",[["a","p"],["AM","PM"],rl],[["AM","PM"],rl,rl],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],rl,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],rl,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",rl,"{1} 'at' {0}",rl],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(e){var t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return 1===t&&0===n?1:5}],al={};function sl(e){var t=function(e){return e.toLowerCase().replace(/_/g,"-")}(e),n=ll(t);if(n)return n;var i=t.split("-")[0];if(n=ll(i))return n;if("en"===i)return ol;throw new Error('Missing locale data for the locale "'.concat(e,'".'))}function ll(e){return e in al||(al[e]=tt.ng&&tt.ng.common&&tt.ng.common.locales&&tt.ng.common.locales[e]),al[e]}var ul=function(e){return e[e.LocaleId=0]="LocaleId",e[e.DayPeriodsFormat=1]="DayPeriodsFormat",e[e.DayPeriodsStandalone=2]="DayPeriodsStandalone",e[e.DaysFormat=3]="DaysFormat",e[e.DaysStandalone=4]="DaysStandalone",e[e.MonthsFormat=5]="MonthsFormat",e[e.MonthsStandalone=6]="MonthsStandalone",e[e.Eras=7]="Eras",e[e.FirstDayOfWeek=8]="FirstDayOfWeek",e[e.WeekendRange=9]="WeekendRange",e[e.DateFormat=10]="DateFormat",e[e.TimeFormat=11]="TimeFormat",e[e.DateTimeFormat=12]="DateTimeFormat",e[e.NumberSymbols=13]="NumberSymbols",e[e.NumberFormats=14]="NumberFormats",e[e.CurrencyCode=15]="CurrencyCode",e[e.CurrencySymbol=16]="CurrencySymbol",e[e.CurrencyName=17]="CurrencyName",e[e.Currencies=18]="Currencies",e[e.Directionality=19]="Directionality",e[e.PluralCase=20]="PluralCase",e[e.ExtraData=21]="ExtraData",e}({});function cl(e){var t;null==(t=e)&&function(e,t,n,i){throw new Error("ASSERTION ERROR: Expected localeId to be defined"+" [Expected=> null != ".concat(t," <=Actual]"))}(0,t),"string"==typeof e&&e.toLowerCase().replace(/_/g,"-")}function dl(e,t,n,i,r){if(e=Ee(e),Array.isArray(e))for(var o=0;o<e.length;o++)dl(e[o],t,n,i,r);else{var a=tn(),s=en(),l=Ra(e)?e:Ee(e.provide),u=Ma(e),c=rn(),d=1048575&c.providerIndexes,h=c.directiveStart,f=c.providerIndexes>>20;if(Ra(e)||!e.multi){var p=new Vn(u,r,rs),g=pl(l,t,r?d:d+f,h);-1===g?(ei(Xn(c,s),a,l),hl(a,e,t.length),t.push(l),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),n.push(p),s.push(p)):(n[g]=p,s[g]=p)}else{var v=pl(l,t,d+f,h),m=pl(l,t,d,d+f),y=v>=0&&n[v],b=m>=0&&n[m];if(r&&!b||!r&&!y){ei(Xn(c,s),a,l);var w=function(e,t,n,i,r){var o=new Vn(e,n,rs);return o.multi=[],o.index=t,o.componentProviders=0,fl(o,r,i&&!n),o}(r?vl:gl,n.length,r,i,u);!r&&b&&(n[m].providerFactory=w),hl(a,e,t.length,0),t.push(l),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),n.push(w),s.push(w)}else hl(a,e,v>-1?v:m,fl(n[r?m:v],u,!r&&i));!r&&i&&b&&n[m].componentProviders++}}}function hl(e,t,n,i){var r=Ra(t);if(r||t.useClass){var o=(t.useClass||t).prototype.ngOnDestroy;if(o){var a=e.destroyHooks||(e.destroyHooks=[]);if(!r&&t.multi){var s=a.indexOf(n);-1===s?a.push(n,[i,o]):a[s+1].push(i,o)}else a.push(n,o)}}}function fl(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function pl(e,t,n,i){for(var r=n;r<i;r++)if(t[r]===e)return r;return-1}function gl(e,t,n,i){return ml(this.multi,[])}function vl(e,t,n,i){var r,o=this.multi;if(this.providerFactory){var a=this.providerFactory.componentProviders,s=li(n,n[1],this.providerFactory.index,i);ml(o,r=s.slice(0,a));for(var l=a;l<s.length;l++)r.push(s[l])}else ml(o,r=[]);return r}function ml(e,t){for(var n=0;n<e.length;n++)t.push((0,e[n])());return t}function yl(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return function(n){n.providersResolver=function(n,i){return function(e,t,n){var i=tn();if(i.firstCreatePass){var r=Et(e);dl(n,i.data,i.blueprint,r,!0),dl(t,i.data,i.blueprint,r,!1)}}(n,i?i(e):e,t)}}}var bl=function e(){A(this,e)},wl=function(){function e(){A(this,e)}return m(e,[{key:"resolveComponentFactory",value:function(e){throw function(e){var t=Error("No component factory found for ".concat(Ae(e),". Did you add it to @NgModule.entryComponents?"));return t.ngComponent=e,t}(e)}}]),e}(),_l=function(){var e=function e(){A(this,e)};return e.NULL=new wl,e}();function kl(){}function xl(e,t){return new Cl(jt(e,t))}var Al=function(){return xl(rn(),en())},Cl=function(){var e=function e(t){A(this,e),this.nativeElement=t};return e.__NG_ELEMENT_ID__=Al,e}();function Sl(e){return e instanceof Cl?e.nativeElement:e}var Pl=function e(){A(this,e)},El=function(){var e=function e(){A(this,e)};return e.__NG_ELEMENT_ID__=function(){return Dl()},e}(),Dl=function(){var e=en(),t=Gt(rn().index,e);return function(e){return e[11]}(xt(t)?t:e)},Ol=function(){var e=function e(){A(this,e)};return e.\u0275prov=Re({token:e,providedIn:"root",factory:function(){return null}}),e}(),Ml=function e(t){A(this,e),this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")},Tl=new Ml("11.2.6"),Il=function(){function e(){A(this,e)}return m(e,[{key:"supports",value:function(e){return qa(e)}},{key:"create",value:function(e){return new Ll(e)}}]),e}(),Rl=function(e,t){return t},Ll=function(){function e(t){A(this,e),this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||Rl}return m(e,[{key:"forEachItem",value:function(e){var t;for(t=this._itHead;null!==t;t=t._next)e(t)}},{key:"forEachOperation",value:function(e){for(var t=this._itHead,n=this._removalsHead,i=0,r=null;t||n;){var o=!n||t&&t.currentIndex<zl(n,i,r)?t:n,a=zl(o,i,r),s=o.currentIndex;if(o===n)i--,n=n._nextRemoved;else if(t=t._next,null==o.previousIndex)i++;else{r||(r=[]);var l=a-i,u=s-i;if(l!=u){for(var c=0;c<l;c++){var d=c<r.length?r[c]:r[c]=0,h=d+c;u<=h&&h<l&&(r[c]=d+1)}r[o.previousIndex]=u-l}}a!==s&&e(o,a,s)}}},{key:"forEachPreviousItem",value:function(e){var t;for(t=this._previousItHead;null!==t;t=t._nextPrevious)e(t)}},{key:"forEachAddedItem",value:function(e){var t;for(t=this._additionsHead;null!==t;t=t._nextAdded)e(t)}},{key:"forEachMovedItem",value:function(e){var t;for(t=this._movesHead;null!==t;t=t._nextMoved)e(t)}},{key:"forEachRemovedItem",value:function(e){var t;for(t=this._removalsHead;null!==t;t=t._nextRemoved)e(t)}},{key:"forEachIdentityChange",value:function(e){var t;for(t=this._identityChangesHead;null!==t;t=t._nextIdentityChange)e(t)}},{key:"diff",value:function(e){if(null==e&&(e=[]),!qa(e))throw new Error("Error trying to diff '".concat(Ae(e),"'. Only arrays and iterables are allowed"));return this.check(e)?this:null}},{key:"onDestroy",value:function(){}},{key:"check",value:function(e){var t=this;this._reset();var n,i,r,o=this._itHead,a=!1;if(Array.isArray(e)){this.length=e.length;for(var s=0;s<this.length;s++)i=e[s],r=this._trackByFn(s,i),null!==o&&Object.is(o.trackById,r)?(a&&(o=this._verifyReinsertion(o,i,r,s)),Object.is(o.item,i)||this._addIdentityChange(o,i)):(o=this._mismatch(o,i,r,s),a=!0),o=o._next}else n=0,function(e,t){if(Array.isArray(e))for(var n=0;n<e.length;n++)t(e[n]);else for(var i,r=e[Wa()]();!(i=r.next()).done;)t(i.value)}(e,function(e){r=t._trackByFn(n,e),null!==o&&Object.is(o.trackById,r)?(a&&(o=t._verifyReinsertion(o,e,r,n)),Object.is(o.item,e)||t._addIdentityChange(o,e)):(o=t._mismatch(o,e,r,n),a=!0),o=o._next,n++}),this.length=n;return this._truncate(o),this.collection=e,this.isDirty}},{key:"isDirty",get:function(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}},{key:"_reset",value:function(){if(this.isDirty){var e;for(e=this._previousItHead=this._itHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._additionsHead;null!==e;e=e._nextAdded)e.previousIndex=e.currentIndex;for(this._additionsHead=this._additionsTail=null,e=this._movesHead;null!==e;e=e._nextMoved)e.previousIndex=e.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}},{key:"_mismatch",value:function(e,t,n,i){var r;return null===e?r=this._itTail:(r=e._prev,this._remove(e)),null!==(e=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(Object.is(e.item,t)||this._addIdentityChange(e,t),this._reinsertAfter(e,r,i)):null!==(e=null===this._linkedRecords?null:this._linkedRecords.get(n,i))?(Object.is(e.item,t)||this._addIdentityChange(e,t),this._moveAfter(e,r,i)):e=this._addAfter(new Fl(t,n),r,i),e}},{key:"_verifyReinsertion",value:function(e,t,n,i){var r=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==r?e=this._reinsertAfter(r,e._prev,i):e.currentIndex!=i&&(e.currentIndex=i,this._addToMoves(e,i)),e}},{key:"_truncate",value:function(e){for(;null!==e;){var t=e._next;this._addToRemovals(this._unlink(e)),e=t}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}},{key:"_reinsertAfter",value:function(e,t,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(e);var i=e._prevRemoved,r=e._nextRemoved;return null===i?this._removalsHead=r:i._nextRemoved=r,null===r?this._removalsTail=i:r._prevRemoved=i,this._insertAfter(e,t,n),this._addToMoves(e,n),e}},{key:"_moveAfter",value:function(e,t,n){return this._unlink(e),this._insertAfter(e,t,n),this._addToMoves(e,n),e}},{key:"_addAfter",value:function(e,t,n){return this._insertAfter(e,t,n),this._additionsTail=null===this._additionsTail?this._additionsHead=e:this._additionsTail._nextAdded=e,e}},{key:"_insertAfter",value:function(e,t,n){var i=null===t?this._itHead:t._next;return e._next=i,e._prev=t,null===i?this._itTail=e:i._prev=e,null===t?this._itHead=e:t._next=e,null===this._linkedRecords&&(this._linkedRecords=new Vl),this._linkedRecords.put(e),e.currentIndex=n,e}},{key:"_remove",value:function(e){return this._addToRemovals(this._unlink(e))}},{key:"_unlink",value:function(e){null!==this._linkedRecords&&this._linkedRecords.remove(e);var t=e._prev,n=e._next;return null===t?this._itHead=n:t._next=n,null===n?this._itTail=t:n._prev=t,e}},{key:"_addToMoves",value:function(e,t){return e.previousIndex===t||(this._movesTail=null===this._movesTail?this._movesHead=e:this._movesTail._nextMoved=e),e}},{key:"_addToRemovals",value:function(e){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Vl),this._unlinkedRecords.put(e),e.currentIndex=null,e._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=e,e._prevRemoved=null):(e._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=e),e}},{key:"_addIdentityChange",value:function(e,t){return e.item=t,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=e:this._identityChangesTail._nextIdentityChange=e,e}}]),e}(),Fl=function e(t,n){A(this,e),this.item=t,this.trackById=n,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null},Bl=function(){function e(){A(this,e),this._head=null,this._tail=null}return m(e,[{key:"add",value:function(e){null===this._head?(this._head=this._tail=e,e._nextDup=null,e._prevDup=null):(this._tail._nextDup=e,e._prevDup=this._tail,e._nextDup=null,this._tail=e)}},{key:"get",value:function(e,t){var n;for(n=this._head;null!==n;n=n._nextDup)if((null===t||t<=n.currentIndex)&&Object.is(n.trackById,e))return n;return null}},{key:"remove",value:function(e){var t=e._prevDup,n=e._nextDup;return null===t?this._head=n:t._nextDup=n,null===n?this._tail=t:n._prevDup=t,null===this._head}}]),e}(),Vl=function(){function e(){A(this,e),this.map=new Map}return m(e,[{key:"put",value:function(e){var t=e.trackById,n=this.map.get(t);n||(n=new Bl,this.map.set(t,n)),n.add(e)}},{key:"get",value:function(e,t){var n=this.map.get(e);return n?n.get(e,t):null}},{key:"remove",value:function(e){var t=e.trackById;return this.map.get(t).remove(e)&&this.map.delete(t),e}},{key:"isEmpty",get:function(){return 0===this.map.size}},{key:"clear",value:function(){this.map.clear()}}]),e}();function zl(e,t,n){var i=e.previousIndex;if(null===i)return i;var r=0;return n&&i<n.length&&(r=n[i]),i+t+r}var Nl=function(){function e(){A(this,e)}return m(e,[{key:"supports",value:function(e){return e instanceof Map||Ya(e)}},{key:"create",value:function(){return new Hl}}]),e}(),Hl=function(){function e(){A(this,e),this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}return m(e,[{key:"isDirty",get:function(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}},{key:"forEachItem",value:function(e){var t;for(t=this._mapHead;null!==t;t=t._next)e(t)}},{key:"forEachPreviousItem",value:function(e){var t;for(t=this._previousMapHead;null!==t;t=t._nextPrevious)e(t)}},{key:"forEachChangedItem",value:function(e){var t;for(t=this._changesHead;null!==t;t=t._nextChanged)e(t)}},{key:"forEachAddedItem",value:function(e){var t;for(t=this._additionsHead;null!==t;t=t._nextAdded)e(t)}},{key:"forEachRemovedItem",value:function(e){var t;for(t=this._removalsHead;null!==t;t=t._nextRemoved)e(t)}},{key:"diff",value:function(e){if(e){if(!(e instanceof Map||Ya(e)))throw new Error("Error trying to diff '".concat(Ae(e),"'. Only maps and objects are allowed"))}else e=new Map;return this.check(e)?this:null}},{key:"onDestroy",value:function(){}},{key:"check",value:function(e){var t=this;this._reset();var n=this._mapHead;if(this._appendAfter=null,this._forEach(e,function(e,i){if(n&&n.key===i)t._maybeAddToChanges(n,e),t._appendAfter=n,n=n._next;else{var r=t._getOrCreateRecordForKey(i,e);n=t._insertBeforeOrAppend(n,r)}}),n){n._prev&&(n._prev._next=null),this._removalsHead=n;for(var i=n;null!==i;i=i._nextRemoved)i===this._mapHead&&(this._mapHead=null),this._records.delete(i.key),i._nextRemoved=i._next,i.previousValue=i.currentValue,i.currentValue=null,i._prev=null,i._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}},{key:"_insertBeforeOrAppend",value:function(e,t){if(e){var n=e._prev;return t._next=e,t._prev=n,e._prev=t,n&&(n._next=t),e===this._mapHead&&(this._mapHead=t),this._appendAfter=e,e}return this._appendAfter?(this._appendAfter._next=t,t._prev=this._appendAfter):this._mapHead=t,this._appendAfter=t,null}},{key:"_getOrCreateRecordForKey",value:function(e,t){if(this._records.has(e)){var n=this._records.get(e);this._maybeAddToChanges(n,t);var i=n._prev,r=n._next;return i&&(i._next=r),r&&(r._prev=i),n._next=null,n._prev=null,n}var o=new jl(e);return this._records.set(e,o),o.currentValue=t,this._addToAdditions(o),o}},{key:"_reset",value:function(){if(this.isDirty){var e;for(this._previousMapHead=this._mapHead,e=this._previousMapHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._changesHead;null!==e;e=e._nextChanged)e.previousValue=e.currentValue;for(e=this._additionsHead;null!=e;e=e._nextAdded)e.previousValue=e.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}},{key:"_maybeAddToChanges",value:function(e,t){Object.is(t,e.currentValue)||(e.previousValue=e.currentValue,e.currentValue=t,this._addToChanges(e))}},{key:"_addToAdditions",value:function(e){null===this._additionsHead?this._additionsHead=this._additionsTail=e:(this._additionsTail._nextAdded=e,this._additionsTail=e)}},{key:"_addToChanges",value:function(e){null===this._changesHead?this._changesHead=this._changesTail=e:(this._changesTail._nextChanged=e,this._changesTail=e)}},{key:"_forEach",value:function(e,t){e instanceof Map?e.forEach(t):Object.keys(e).forEach(function(n){return t(e[n],n)})}}]),e}(),jl=function e(t){A(this,e),this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null};function Ul(){return new Wl([new Il])}var Wl=function(){var e=function(){function e(t){A(this,e),this.factories=t}return m(e,[{key:"find",value:function(e){var t,n=this.factories.find(function(t){return t.supports(e)});if(null!=n)return n;throw new Error("Cannot find a differ supporting object '".concat(e,"' of type '").concat((t=e).name||typeof t,"'"))}}],[{key:"create",value:function(t,n){if(null!=n){var i=n.factories.slice();t=t.concat(i)}return new e(t)}},{key:"extend",value:function(t){return{provide:e,useFactory:function(n){return e.create(t,n||Ul())},deps:[[e,new ji,new Hi]]}}}]),e}();return e.\u0275prov=Re({token:e,providedIn:"root",factory:Ul}),e}();function Gl(){return new ql([new Nl])}var ql=function(){var e=function(){function e(t){A(this,e),this.factories=t}return m(e,[{key:"find",value:function(e){var t=this.factories.find(function(t){return t.supports(e)});if(t)return t;throw new Error("Cannot find a differ supporting object '".concat(e,"'"))}}],[{key:"create",value:function(t,n){if(n){var i=n.factories.slice();t=t.concat(i)}return new e(t)}},{key:"extend",value:function(t){return{provide:e,useFactory:function(n){return e.create(t,n||Gl())},deps:[[e,new ji,new Hi]]}}}]),e}();return e.\u0275prov=Re({token:e,providedIn:"root",factory:Gl}),e}();function Yl(e,t,n,i){for(var r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];null!==n;){var o=t[n.index];if(null!==o&&i.push(Nt(o)),At(o))for(var a=10;a<o.length;a++){var s=o[a],l=s[1].firstChild;null!==l&&Yl(s[1],s,l,i)}var u=n.type;if(8&u)Yl(e,t,n.child,i);else if(32&u)for(var c=Br(n,t),d=void 0;d=c();)i.push(d);else if(16&u){var h=io(t,n);if(Array.isArray(h))i.push.apply(i,y(h));else{var f=Vr(t[16]);Yl(f[1],f,h,i,!0)}}n=r?n.projectionNext:n.next}return i}var Zl=function(){function e(t,n){A(this,e),this._lView=t,this._cdRefInjectingView=n,this._appRef=null,this._attachedToViewContainer=!1}return m(e,[{key:"rootNodes",get:function(){var e=this._lView,t=e[1];return Yl(t,e,t.firstChild,[])}},{key:"context",get:function(){return this._lView[8]}},{key:"destroyed",get:function(){return 256==(256&this._lView[2])}},{key:"destroy",value:function(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){var e=this._lView[3];if(At(e)){var t=e[8],n=t?t.indexOf(this):-1;n>-1&&(Gr(e,n),xi(t,n))}this._attachedToViewContainer=!1}qr(this._lView[1],this._lView)}},{key:"onDestroy",value:function(e){Wo(this._lView[1],this._lView,null,e)}},{key:"markForCheck",value:function(){la(this._cdRefInjectingView||this._lView)}},{key:"detach",value:function(){this._lView[2]&=-129}},{key:"reattach",value:function(){this._lView[2]|=128}},{key:"detectChanges",value:function(){ua(this._lView[1],this._lView,this.context)}},{key:"checkNoChanges",value:function(){!function(e,t,n){cn(!0);try{ua(e,t,n)}finally{cn(!1)}}(this._lView[1],this._lView,this.context)}},{key:"attachToViewContainerRef",value:function(){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._attachedToViewContainer=!0}},{key:"detachFromAppRef",value:function(){var e;this._appRef=null,ao(this._lView[1],e=this._lView,e[11],2,null,null)}},{key:"attachToAppRef",value:function(e){if(this._attachedToViewContainer)throw new Error("This view is already attached to a ViewContainer!");this._appRef=e}}]),e}(),Ql=function(e){r(n,e);var t=a(n);function n(e){var i;return A(this,n),(i=t.call(this,e))._view=e,i}return m(n,[{key:"detectChanges",value:function(){ca(this._view)}},{key:"checkNoChanges",value:function(){!function(e){cn(!0);try{ca(e)}finally{cn(!1)}}(this._view)}},{key:"context",get:function(){return null}}]),n}(Zl),Xl=Jl,Kl=function(){var e=function e(){A(this,e)};return e.__NG_ELEMENT_ID__=Xl,e.__ChangeDetectorRef__=!0,e}();function Jl(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return function(e,t,n){if(!n&&St(e)){var i=Gt(e.index,t);return new Zl(i,i)}return 47&e.type?new Zl(t[16],t):null}(rn(),en(),e)}var $l=[new Nl],eu=new Wl([new Il]),tu=new ql($l),nu=function(){return ou(rn(),en())},iu=function(){var e=function e(){A(this,e)};return e.__NG_ELEMENT_ID__=nu,e}(),ru=function(e){r(n,e);var t=a(n);function n(e,i,r){var o;return A(this,n),(o=t.call(this))._declarationLView=e,o._declarationTContainer=i,o.elementRef=r,o}return m(n,[{key:"createEmbeddedView",value:function(e){var t=this._declarationTContainer.tViews,n=To(this._declarationLView,t,e,16,null,t.declTNode,null,null,null,null);n[17]=this._declarationLView[this._declarationTContainer.index];var i=this._declarationLView[19];return null!==i&&(n[19]=i.createEmbeddedView(t)),Lo(t,n,e),new Zl(n)}}]),n}(iu);function ou(e,t){return 4&e.type?new ru(t,e,xl(e,t)):null}var au=function e(){A(this,e)},su=function e(){A(this,e)},lu=function(){return fu(rn(),en())},uu=function(){var e=function e(){A(this,e)};return e.__NG_ELEMENT_ID__=lu,e}(),cu=function(e){r(n,e);var t=a(n);function n(e,i,r){var o;return A(this,n),(o=t.call(this))._lContainer=e,o._hostTNode=i,o._hostLView=r,o}return m(n,[{key:"element",get:function(){return xl(this._hostTNode,this._hostLView)}},{key:"injector",get:function(){return new di(this._hostTNode,this._hostLView)}},{key:"parentInjector",get:function(){var e=$n(this._hostTNode,this._hostLView);if(Wn(e)){var t=qn(e,this._hostLView),n=Gn(e);return new di(t[1].data[n+8],t)}return new di(null,this._hostLView)}},{key:"clear",value:function(){for(;this.length>0;)this.remove(this.length-1)}},{key:"get",value:function(e){var t=du(this._lContainer);return null!==t&&t[e]||null}},{key:"length",get:function(){return this._lContainer.length-10}},{key:"createEmbeddedView",value:function(e,t,n){var i=e.createEmbeddedView(t||{});return this.insert(i,n),i}},{key:"createComponent",value:function(e,t,n,i,r){var o=n||this.parentInjector;if(!r&&null==e.ngModule&&o){var a=o.get(au,null);a&&(r=a)}var s=e.create(o,i,void 0,r);return this.insert(s.hostView,t),s}},{key:"insert",value:function(e,t){var i=e._lView,r=i[1];if(At(i[3])){var o=this.indexOf(e);if(-1!==o)this.detach(o);else{var a=i[3],s=new n(a,a[6],a[3]);s.detach(s.indexOf(e))}}var l=this._adjustIndex(t),u=this._lContainer;!function(e,t,n,i){var r=10+i,o=n.length;i>0&&(n[r-1][4]=t),i<o-10?(t[4]=n[r],ki(n,10+i,t)):(n.push(t),t[4]=null),t[3]=n;var a=t[17];null!==a&&n!==a&&function(e,t){var n=e[9];t[16]!==t[3][3][16]&&(e[2]=!0),null===n?e[9]=[t]:n.push(t)}(a,t);var s=t[19];null!==s&&s.insertView(e),t[2]|=128}(r,i,u,l);var c=ro(l,u),d=i[11],h=Jr(d,u[7]);return null!==h&&function(e,t,n,i,r,o){i[0]=r,i[6]=t,ao(e,i,n,1,r,o)}(r,u[6],d,i,h,c),e.attachToViewContainerRef(),ki(hu(u),l,e),e}},{key:"move",value:function(e,t){return this.insert(e,t)}},{key:"indexOf",value:function(e){var t=du(this._lContainer);return null!==t?t.indexOf(e):-1}},{key:"remove",value:function(e){var t=this._adjustIndex(e,-1),n=Gr(this._lContainer,t);n&&(xi(hu(this._lContainer),t),qr(n[1],n))}},{key:"detach",value:function(e){var t=this._adjustIndex(e,-1),n=Gr(this._lContainer,t);return n&&null!=xi(hu(this._lContainer),t)?new Zl(n):null}},{key:"_adjustIndex",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return null==e?this.length+t:e}}]),n}(uu);function du(e){return e[8]}function hu(e){return e[8]||(e[8]=[])}function fu(e,t){var n,i=t[e.index];if(At(i))n=i;else{var r;if(8&e.type)r=Nt(i);else{var o=t[11];r=o.createComment("");var a=jt(e,t);Qr(o,Jr(o,a),r,function(e,t){return Vt(e)?e.nextSibling(t):t.nextSibling}(o,a),!1)}t[e.index]=n=ia(i,t,r,e),sa(t,n)}return new cu(n,e,t)}var pu={},gu=function(e){r(n,e);var t=a(n);function n(e){var i;return A(this,n),(i=t.call(this)).ngModule=e,i}return m(n,[{key:"resolveComponentFactory",value:function(e){var t=_t(e);return new yu(t,this.ngModule)}}]),n}(_l);function vu(e){var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push({propName:e[n],templateName:n});return t}var mu=new mi("SCHEDULER_TOKEN",{providedIn:"root",factory:function(){return Tr}}),yu=function(e){r(n,e);var t=a(n);function n(e,i){var r;return A(this,n),(r=t.call(this)).componentDef=e,r.ngModule=i,r.componentType=e.type,r.selector=e.selectors.map(_o).join(","),r.ngContentSelectors=e.ngContentSelectors?e.ngContentSelectors:[],r.isBoundToModule=!!i,r}return m(n,[{key:"inputs",get:function(){return vu(this.componentDef.inputs)}},{key:"outputs",get:function(){return vu(this.componentDef.outputs)}},{key:"create",value:function(e,t,n,i){var r,o,a=(i=i||this.ngModule)?function(e,t){return{get:function(n,i,r){var o=e.get(n,pu,r);return o!==pu||i===pu?o:t.get(n,i,r)}}}(e,i.injector):e,s=a.get(Pl,zt),l=a.get(Ol,null),u=s.createRenderer(null,this.componentDef),c=this.componentDef.selectors[0][0]||"div",d=n?function(e,t,n){if(Vt(e))return e.selectRootElement(t,n===Xe.ShadowDom);var i="string"==typeof t?e.querySelector(t):t;return i.textContent="",i}(u,n,this.componentDef.encapsulation):Ur(s.createRenderer(null,this.componentDef),c,function(e){var t=e.toLowerCase();return"svg"===t?"http://www.w3.org/2000/svg":"math"===t?"http://www.w3.org/1998/MathML/":null}(c)),h=this.componentDef.onPush?576:528,f={components:[],scheduler:Tr,clean:ha,playerHandler:null,flags:0},p=Uo(0,null,null,1,0,null,null,null,null,null),g=To(null,p,f,h,null,null,s,u,l,a);_n(g);try{var v=function(e,t,n,i,r,o){var a=n[1];n[20]=e;var s=Io(a,20,2,"#host",null),l=s.mergedAttrs=t.hostAttrs;null!==l&&(ba(s,l,!0),null!==e&&(zn(r,e,l),null!==s.classes&&uo(r,e,s.classes),null!==s.styles&&lo(r,e,s.styles)));var u=i.createRenderer(e,t),c=To(n,jo(t),null,t.onPush?64:16,n[20],s,i,u,null,null);return a.firstCreatePass&&(ei(Xn(s,n),a,t.type),Xo(a,s),Jo(s,n.length,1)),sa(n,c),n[20]=c}(d,this.componentDef,g,s,u);if(d)if(n)zn(u,d,["ng-version",Tl.full]);else{var m=function(e){for(var t=[],n=[],i=1,r=2;i<e.length;){var o=e[i];if("string"==typeof o)2===r?""!==o&&t.push(o,e[++i]):8===r&&n.push(o);else{if(!vo(r))break;r=o}i++}return{attrs:t,classes:n}}(this.componentDef.selectors[0]),y=m.attrs,b=m.classes;y&&zn(u,d,y),b&&b.length>0&&uo(u,d,b.join(" "))}if(o=Ut(p,20),void 0!==t)for(var w=o.projection=[],_=0;_<this.ngContentSelectors.length;_++){var k=t[_];w.push(null!=k?Array.from(k):null)}r=function(e,t,n,i,r){var o=n[1],a=function(e,t,n){var i=rn();e.firstCreatePass&&(n.providersResolver&&n.providersResolver(n),$o(e,i,t,Ro(e,t,1,null),n));var r=li(t,e,i.directiveStart,i);Mr(r,t);var o=jt(i,t);return o&&Mr(o,t),r}(o,n,t);if(i.components.push(a),e[8]=a,r&&r.forEach(function(e){return e(a,t)}),t.contentQueries){var s=rn();t.contentQueries(1,a,s.directiveStart)}var l=rn();return!o.firstCreatePass||null===t.hostBindings&&null===t.hostAttrs||(En(l.index),Zo(n[1],l,0,l.directiveStart,l.directiveEnd,t),Qo(t,a)),a}(v,this.componentDef,g,f,[Ba]),Lo(p,g,null)}finally{Sn()}return new bu(this.componentType,r,xl(o,g),g,o)}}]),n}(bl),bu=function(e){r(n,e);var t=a(n);function n(e,i,r,o,a){var s;return A(this,n),(s=t.call(this)).location=r,s._rootLView=o,s._tNode=a,s.instance=i,s.hostView=s.changeDetectorRef=new Ql(o),s.componentType=e,s}return m(n,[{key:"injector",get:function(){return new di(this._tNode,this._rootLView)}},{key:"destroy",value:function(){this.hostView.destroy()}},{key:"onDestroy",value:function(e){this.hostView.onDestroy(e)}}]),n}(function(){return function e(){A(this,e)}}()),wu=new Map,_u=function(e){r(n,e);var t=a(n);function n(e,i){var r;A(this,n),(r=t.call(this))._parent=i,r._bootstrapComponents=[],r.injector=l(r),r.destroyCbs=[],r.componentFactoryResolver=new gu(l(r));var o=kt(e),a=e[ut]||null;return a&&cl(a),r._bootstrapComponents=Lr(o.bootstrap),r._r3Injector=Ea(e,i,[{provide:au,useValue:l(r)},{provide:_l,useValue:r.componentFactoryResolver}],Ae(e)),r._r3Injector._resolveInjectorDefTypes(),r.instance=r.get(e),r}return m(n,[{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Fa.THROW_IF_NOT_FOUND,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Ge.Default;return e===Fa||e===au||e===wa?this:this._r3Injector.get(e,t,n)}},{key:"destroy",value:function(){var e=this._r3Injector;!e.destroyed&&e.destroy(),this.destroyCbs.forEach(function(e){return e()}),this.destroyCbs=null}},{key:"onDestroy",value:function(e){this.destroyCbs.push(e)}}]),n}(au),ku=function(e){r(n,e);var t=a(n);function n(e){var i,r,o;return A(this,n),(i=t.call(this)).moduleType=e,null!==kt(e)&&(r=e,o=new Set,function e(t){var n=kt(t,!0),i=n.id;null!==i&&(function(e,t,n){if(t&&t!==n)throw new Error("Duplicate module registered for ".concat(e," - ").concat(Ae(t)," vs ").concat(Ae(t.name)))}(i,wu.get(i),t),wu.set(i,t));var r,a=h(Lr(n.imports));try{for(a.s();!(r=a.n()).done;){var s=r.value;o.has(s)||(o.add(s),e(s))}}catch(l){a.e(l)}finally{a.f()}}(r)),i}return m(n,[{key:"create",value:function(e){return new _u(this.moduleType,e)}}]),n}(su);function xu(e,t,n){var i=dn()+e,r=en();return r[i]===ko?Za(r,i,n?t.call(n):t()):function(e,t){return e[t]}(r,i)}function Au(e,t,n,i){return Pu(en(),dn(),e,t,n,i)}function Cu(e,t,n,i,r){return Eu(en(),dn(),e,t,n,i,r)}function Su(e,t){var n=e[t];return n===ko?void 0:n}function Pu(e,t,n,i,r,o){var a=t+n;return Qa(e,a,r)?Za(e,a+1,o?i.call(o,r):i(r)):Su(e,a+1)}function Eu(e,t,n,i,r,o,a){var s=t+n;return Xa(e,s,r,o)?Za(e,s+2,a?i.call(a,r,o):i(r,o)):Su(e,s+2)}function Du(e,t){var n,i=tn(),r=e+20;i.firstCreatePass?(n=function(e,t){if(t)for(var n=t.length-1;n>=0;n--){var i=t[n];if(e===i.name)return i}throw new Oe("302","The pipe '".concat(e,"' could not be found!"))}(t,i.pipeRegistry),i.data[r]=n,n.onDestroy&&(i.destroyHooks||(i.destroyHooks=[])).push(r,n.onDestroy)):n=i.data[r];var o=n.factory||(n.factory=Dt(n.type)),a=qe(rs);try{var s=Zn(!1),l=o();return Zn(s),function(e,t,n,i){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=i}(i,en(),r,l),l}finally{qe(a)}}function Ou(e,t,n){var i=e+20,r=en(),o=Wt(r,i);return Lu(r,Ru(r,i)?Pu(r,dn(),t,o.transform,n,o):o.transform(n))}function Mu(e,t,n,i){var r=e+20,o=en(),a=Wt(o,r);return Lu(o,Ru(o,r)?Eu(o,dn(),t,a.transform,n,i,a):a.transform(n,i))}function Tu(e,t,n,i,r){var o=e+20,a=en(),s=Wt(a,o);return Lu(a,Ru(a,o)?function(e,t,n,i,r,o,a,s){var l=t+n;return Ka(e,l,r,o,a)?Za(e,l+3,s?i.call(s,r,o,a):i(r,o,a)):Su(e,l+3)}(a,dn(),t,s.transform,n,i,r,s):s.transform(n,i,r))}function Iu(e,t,n,i,r,o){var a=e+20,s=en(),l=Wt(s,a);return Lu(s,Ru(s,a)?function(e,t,n,i,r,o,a,s,l){var u=t+n;return Ja(e,u,r,o,a,s)?Za(e,u+4,l?i.call(l,r,o,a,s):i(r,o,a,s)):Su(e,u+4)}(s,dn(),t,l.transform,n,i,r,o,l):l.transform(n,i,r,o))}function Ru(e,t){return e[1].data[t].pure}function Lu(e,t){return Ga.isWrapped(t)&&(t=Ga.unwrap(t),e[hn()]=ko),t}var Fu=function(e){r(n,e);var t=a(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return A(this,n),(e=t.call(this)).__isAsync=i,e}return m(n,[{key:"emit",value:function(e){i(c(n.prototype),"next",this).call(this,e)}},{key:"subscribe",value:function(e,t,r){var o,a=function(e){return null},s=function(){return null};e&&"object"==typeof e?(o=this.__isAsync?function(t){setTimeout(function(){return e.next(t)})}:function(t){e.next(t)},e.error&&(a=this.__isAsync?function(t){setTimeout(function(){return e.error(t)})}:function(t){e.error(t)}),e.complete&&(s=this.__isAsync?function(){setTimeout(function(){return e.complete()})}:function(){e.complete()})):(o=this.__isAsync?function(t){setTimeout(function(){return e(t)})}:function(t){e(t)},t&&(a=this.__isAsync?function(e){setTimeout(function(){return t(e)})}:function(e){t(e)}),r&&(s=this.__isAsync?function(){setTimeout(function(){return r()})}:function(){r()}));var l=i(c(n.prototype),"subscribe",this).call(this,o,a,s);return e instanceof O&&e.add(l),l}}]),n}(W);function Bu(){return this._results[Wa()]()}var Vu=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];A(this,e),this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;var n=Wa(),i=e.prototype;i[n]||(i[n]=Bu)}return m(e,[{key:"changes",get:function(){return this._changes||(this._changes=new Fu)}},{key:"get",value:function(e){return this._results[e]}},{key:"map",value:function(e){return this._results.map(e)}},{key:"filter",value:function(e){return this._results.filter(e)}},{key:"find",value:function(e){return this._results.find(e)}},{key:"reduce",value:function(e,t){return this._results.reduce(e,t)}},{key:"forEach",value:function(e){this._results.forEach(e)}},{key:"some",value:function(e){return this._results.some(e)}},{key:"toArray",value:function(){return this._results.slice()}},{key:"toString",value:function(){return this._results.toString()}},{key:"reset",value:function(e,t){this.dirty=!1;var n=wi(e);(this._changesDetected=!function(e,t,n){if(e.length!==t.length)return!1;for(var i=0;i<e.length;i++){var r=e[i],o=t[i];if(n&&(r=n(r),o=n(o)),o!==r)return!1}return!0}(this._results,n,t))&&(this._results=n,this.length=n.length,this.last=n[this.length-1],this.first=n[0])}},{key:"notifyOnChanges",value:function(){!this._changes||!this._changesDetected&&this._emitDistinctChangesOnly||this._changes.emit(this)}},{key:"setDirty",value:function(){this.dirty=!0}},{key:"destroy",value:function(){this.changes.complete(),this.changes.unsubscribe()}}]),e}(),zu=function(){function e(t){A(this,e),this.queryList=t,this.matches=null}return m(e,[{key:"clone",value:function(){return new e(this.queryList)}},{key:"setDirty",value:function(){this.queryList.setDirty()}}]),e}(),Nu=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];A(this,e),this.queries=t}return m(e,[{key:"createEmbeddedView",value:function(t){var n=t.queries;if(null!==n){for(var i=null!==t.contentQueries?t.contentQueries[0]:n.length,r=[],o=0;o<i;o++){var a=n.getByIndex(o);r.push(this.queries[a.indexInDeclarationView].clone())}return new e(r)}return null}},{key:"insertView",value:function(e){this.dirtyQueriesWithMatches(e)}},{key:"detachView",value:function(e){this.dirtyQueriesWithMatches(e)}},{key:"dirtyQueriesWithMatches",value:function(e){for(var t=0;t<this.queries.length;t++)null!==ec(e,t).matches&&this.queries[t].setDirty()}}]),e}(),Hu=function e(t,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;A(this,e),this.predicate=t,this.flags=n,this.read=i},ju=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];A(this,e),this.queries=t}return m(e,[{key:"elementStart",value:function(e,t){for(var n=0;n<this.queries.length;n++)this.queries[n].elementStart(e,t)}},{key:"elementEnd",value:function(e){for(var t=0;t<this.queries.length;t++)this.queries[t].elementEnd(e)}},{key:"embeddedTView",value:function(t){for(var n=null,i=0;i<this.length;i++){var r=null!==n?n.length:0,o=this.getByIndex(i).embeddedTView(t,r);o&&(o.indexInDeclarationView=i,null!==n?n.push(o):n=[o])}return null!==n?new e(n):null}},{key:"template",value:function(e,t){for(var n=0;n<this.queries.length;n++)this.queries[n].template(e,t)}},{key:"getByIndex",value:function(e){return this.queries[e]}},{key:"length",get:function(){return this.queries.length}},{key:"track",value:function(e){this.queries.push(e)}}]),e}(),Uu=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;A(this,e),this.metadata=t,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=n}return m(e,[{key:"elementStart",value:function(e,t){this.isApplyingToNode(t)&&this.matchTNode(e,t)}},{key:"elementEnd",value:function(e){this._declarationNodeIndex===e.index&&(this._appliesToNextNode=!1)}},{key:"template",value:function(e,t){this.elementStart(e,t)}},{key:"embeddedTView",value:function(t,n){return this.isApplyingToNode(t)?(this.crossesNgTemplate=!0,this.addMatch(-t.index,n),new e(this.metadata)):null}},{key:"isApplyingToNode",value:function(e){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){for(var t=this._declarationNodeIndex,n=e.parent;null!==n&&8&n.type&&n.index!==t;)n=n.parent;return t===(null!==n?n.index:-1)}return this._appliesToNextNode}},{key:"matchTNode",value:function(e,t){var n=this.metadata.predicate;if(Array.isArray(n))for(var i=0;i<n.length;i++){var r=n[i];this.matchTNodeWithReadOption(e,t,Wu(t,r)),this.matchTNodeWithReadOption(e,t,si(t,e,r,!1,!1))}else n===iu?4&t.type&&this.matchTNodeWithReadOption(e,t,-1):this.matchTNodeWithReadOption(e,t,si(t,e,n,!1,!1))}},{key:"matchTNodeWithReadOption",value:function(e,t,n){if(null!==n){var i=this.metadata.read;if(null!==i)if(i===Cl||i===uu||i===iu&&4&t.type)this.addMatch(t.index,-2);else{var r=si(t,e,i,!1,!1);null!==r&&this.addMatch(t.index,r)}else this.addMatch(t.index,n)}}},{key:"addMatch",value:function(e,t){null===this.matches?this.matches=[e,t]:this.matches.push(e,t)}}]),e}();function Wu(e,t){var n=e.localNames;if(null!==n)for(var i=0;i<n.length;i+=2)if(n[i]===t)return n[i+1];return null}function Gu(e,t,n,i){return-1===n?function(e,t){return 11&e.type?xl(e,t):4&e.type?ou(e,t):null}(t,e):-2===n?function(e,t,n){return n===Cl?xl(t,e):n===iu?ou(t,e):n===uu?fu(t,e):void 0}(e,t,i):li(e,e[1],n,t)}function qu(e,t,n,i){var r=t[19].queries[i];if(null===r.matches){for(var o=e.data,a=n.matches,s=[],l=0;l<a.length;l+=2){var u=a[l];s.push(u<0?null:Gu(t,o[u],a[l+1],n.metadata.read))}r.matches=s}return r.matches}function Yu(e,t,n,i){var r=e.queries.getByIndex(n),o=r.matches;if(null!==o)for(var a=qu(e,t,r,n),s=0;s<o.length;s+=2){var l=o[s];if(l>0)i.push(a[s/2]);else{for(var u=o[s+1],c=t[-l],d=10;d<c.length;d++){var h=c[d];h[17]===h[3]&&Yu(h[1],h,u,i)}if(null!==c[9])for(var f=c[9],p=0;p<f.length;p++){var g=f[p];Yu(g[1],g,u,i)}}}return i}function Zu(e){var t=en(),n=tn(),i=mn();yn(i+1);var r=ec(n,i);if(e.dirty&&Yt(t)===(2==(2&r.metadata.flags))){if(null===r.matches)e.reset([]);else{var o=r.crossesNgTemplate?Yu(n,t,i,[]):qu(n,t,r,i);e.reset(o,Sl),e.notifyOnChanges()}return!0}return!1}function Qu(e,t,n){var i=tn();i.firstCreatePass&&($u(i,new Hu(e,t,n),-1),2==(2&t)&&(i.staticViewQueries=!0)),Ju(i,en(),t)}function Xu(e,t,n,i){var r=tn();if(r.firstCreatePass){var o=rn();$u(r,new Hu(t,n,i),o.index),function(e,t){var n=e.contentQueries||(e.contentQueries=[]);t!==(n.length?n[n.length-1]:-1)&&n.push(e.queries.length-1,t)}(r,e),2==(2&n)&&(r.staticContentQueries=!0)}Ju(r,en(),n)}function Ku(){return e=en(),t=mn(),e[19].queries[t].queryList;var e,t}function Ju(e,t,n){var i=new Vu(4==(4&n));Wo(e,t,i,i.destroy),null===t[19]&&(t[19]=new Nu),t[19].queries.push(new zu(i))}function $u(e,t,n){null===e.queries&&(e.queries=new ju),e.queries.track(new Uu(t,n))}function ec(e,t){return e.queries.getByIndex(t)}function tc(e,t){return ou(e,t)}function nc(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ge.Default,t=Jl(!0);if(null!=t||e&Ge.Optional)return t;Ie("ChangeDetectorRef")}var ic=new mi("Application Initializer"),rc=function(){var e=function(){function e(t){var n=this;A(this,e),this.appInits=t,this.resolve=kl,this.reject=kl,this.initialized=!1,this.done=!1,this.donePromise=new Promise(function(e,t){n.resolve=e,n.reject=t})}return m(e,[{key:"runInitializers",value:function(){var e=this;if(!this.initialized){var t=[],n=function(){e.done=!0,e.resolve()};if(this.appInits)for(var i=0;i<this.appInits.length;i++){var r=this.appInits[i]();ps(r)&&t.push(r)}Promise.all(t).then(function(){n()}).catch(function(t){e.reject(t)}),0===t.length&&n(),this.initialized=!0}}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ri(ic,8))},e.\u0275prov=Re({token:e,factory:e.\u0275fac}),e}(),oc=new mi("AppId"),ac={provide:oc,useFactory:function(){return"".concat(sc()).concat(sc()).concat(sc())},deps:[]};function sc(){return String.fromCharCode(97+Math.floor(25*Math.random()))}var lc=new mi("Platform Initializer"),uc=new mi("Platform ID"),cc=new mi("appBootstrapListener"),dc=function(){var e=function(){function e(){A(this,e)}return m(e,[{key:"log",value:function(e){console.log(e)}},{key:"warn",value:function(e){console.warn(e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Re({token:e,factory:e.\u0275fac}),e}(),hc=new mi("LocaleId"),fc=new mi("DefaultCurrencyCode"),pc=function e(t,n){A(this,e),this.ngModuleFactory=t,this.componentFactories=n},gc=function(e){return new ku(e)},vc=gc,mc=function(e){return Promise.resolve(gc(e))},yc=function(e){var t=gc(e),n=Lr(kt(e).declarations).reduce(function(e,t){var n=_t(t);return n&&e.push(new yu(n)),e},[]);return new pc(t,n)},bc=yc,wc=function(e){return Promise.resolve(yc(e))},_c=function(){var e=function(){function e(){A(this,e),this.compileModuleSync=vc,this.compileModuleAsync=mc,this.compileModuleAndAllComponentsSync=bc,this.compileModuleAndAllComponentsAsync=wc}return m(e,[{key:"clearCache",value:function(){}},{key:"clearCacheFor",value:function(e){}},{key:"getModuleId",value:function(e){}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Re({token:e,factory:e.\u0275fac}),e}(),kc=Promise.resolve(0);function xc(e){"undefined"==typeof Zone?kc.then(function(){e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}var Ac=function(){function e(t){var n,i,r=t.enableLongStackTrace,o=void 0!==r&&r,a=t.shouldCoalesceEventChangeDetection,s=void 0!==a&&a,l=t.shouldCoalesceRunChangeDetection,u=void 0!==l&&l;if(A(this,e),this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Fu(!1),this.onMicrotaskEmpty=new Fu(!1),this.onStable=new Fu(!1),this.onError=new Fu(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched(),this._nesting=0,this._outer=this._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(this._inner=this._inner.fork(new Zone.TaskTrackingZoneSpec)),o&&Zone.longStackTraceZoneSpec&&(this._inner=this._inner.fork(Zone.longStackTraceZoneSpec)),this.shouldCoalesceEventChangeDetection=!u&&s,this.shouldCoalesceRunChangeDetection=u,this.lastRequestAnimationFrameId=-1,this.nativeRequestAnimationFrame=function(){var e=tt.requestAnimationFrame,t=tt.cancelAnimationFrame;if("undefined"!=typeof Zone&&e&&t){var n=e[Zone.__symbol__("OriginalDelegate")];n&&(e=n);var i=t[Zone.__symbol__("OriginalDelegate")];i&&(t=i)}return{nativeRequestAnimationFrame:e,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,i=function(){!function(e){-1===e.lastRequestAnimationFrameId&&(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(tt,function(){e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",function(){e.lastRequestAnimationFrameId=-1,Pc(e),Sc(e)},void 0,function(){},function(){})),e.fakeTopEventTask.invoke()}),Pc(e))}(n)},(n=this)._inner=n._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:function(e,t,r,o,a,s){try{return Ec(n),e.invokeTask(r,o,a,s)}finally{(n.shouldCoalesceEventChangeDetection&&"eventTask"===o.type||n.shouldCoalesceRunChangeDetection)&&i(),Dc(n)}},onInvoke:function(e,t,r,o,a,s,l){try{return Ec(n),e.invoke(r,o,a,s,l)}finally{n.shouldCoalesceRunChangeDetection&&i(),Dc(n)}},onHasTask:function(e,t,i,r){e.hasTask(i,r),t===i&&("microTask"==r.change?(n._hasPendingMicrotasks=r.microTask,Pc(n),Sc(n)):"macroTask"==r.change&&(n.hasPendingMacrotasks=r.macroTask))},onHandleError:function(e,t,i,r){return e.handleError(i,r),n.runOutsideAngular(function(){return n.onError.emit(r)}),!1}})}return m(e,[{key:"run",value:function(e,t,n){return this._inner.run(e,t,n)}},{key:"runTask",value:function(e,t,n,i){var r=this._inner,o=r.scheduleEventTask("NgZoneEvent: "+i,e,Cc,kl,kl);try{return r.runTask(o,t,n)}finally{r.cancelTask(o)}}},{key:"runGuarded",value:function(e,t,n){return this._inner.runGuarded(e,t,n)}},{key:"runOutsideAngular",value:function(e){return this._outer.run(e)}}],[{key:"isInAngularZone",value:function(){return!0===Zone.current.get("isAngularZone")}},{key:"assertInAngularZone",value:function(){if(!e.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}},{key:"assertNotInAngularZone",value:function(){if(e.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}}]),e}(),Cc={};function Sc(e){if(0==e._nesting&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(function(){return e.onStable.emit(null)})}finally{e.isStable=!0}}}function Pc(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function Ec(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Dc(e){e._nesting--,Sc(e)}var Oc,Mc=function(){function e(){A(this,e),this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Fu,this.onMicrotaskEmpty=new Fu,this.onStable=new Fu,this.onError=new Fu}return m(e,[{key:"run",value:function(e,t,n){return e.apply(t,n)}},{key:"runGuarded",value:function(e,t,n){return e.apply(t,n)}},{key:"runOutsideAngular",value:function(e){return e()}},{key:"runTask",value:function(e,t,n,i){return e.apply(t,n)}}]),e}(),Tc=function(){var e=function(){function e(t){var n=this;A(this,e),this._ngZone=t,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),t.run(function(){n.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}return m(e,[{key:"_watchAngularEvents",value:function(){var e=this;this._ngZone.onUnstable.subscribe({next:function(){e._didWork=!0,e._isZoneStable=!1}}),this._ngZone.runOutsideAngular(function(){e._ngZone.onStable.subscribe({next:function(){Ac.assertNotInAngularZone(),xc(function(){e._isZoneStable=!0,e._runCallbacksIfReady()})}})})}},{key:"increasePendingRequestCount",value:function(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}},{key:"decreasePendingRequestCount",value:function(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}},{key:"isStable",value:function(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}},{key:"_runCallbacksIfReady",value:function(){var e=this;if(this.isStable())xc(function(){for(;0!==e._callbacks.length;){var t=e._callbacks.pop();clearTimeout(t.timeoutId),t.doneCb(e._didWork)}e._didWork=!1});else{var t=this.getPendingTasks();this._callbacks=this._callbacks.filter(function(e){return!e.updateCb||!e.updateCb(t)||(clearTimeout(e.timeoutId),!1)}),this._didWork=!0}}},{key:"getPendingTasks",value:function(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(function(e){return{source:e.source,creationLocation:e.creationLocation,data:e.data}}):[]}},{key:"addCallback",value:function(e,t,n){var i=this,r=-1;t&&t>0&&(r=setTimeout(function(){i._callbacks=i._callbacks.filter(function(e){return e.timeoutId!==r}),e(i._didWork,i.getPendingTasks())},t)),this._callbacks.push({doneCb:e,timeoutId:r,updateCb:n})}},{key:"whenStable",value:function(e,t,n){if(n&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/dist/task-tracking.js" loaded?');this.addCallback(e,t,n),this._runCallbacksIfReady()}},{key:"getPendingRequestCount",value:function(){return this._pendingCount}},{key:"findProviders",value:function(e,t,n){return[]}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ri(Ac))},e.\u0275prov=Re({token:e,factory:e.\u0275fac}),e}(),Ic=function(){var e=function(){function e(){A(this,e),this._applications=new Map,Rc.addToWindow(this)}return m(e,[{key:"registerApplication",value:function(e,t){this._applications.set(e,t)}},{key:"unregisterApplication",value:function(e){this._applications.delete(e)}},{key:"unregisterAllApplications",value:function(){this._applications.clear()}},{key:"getTestability",value:function(e){return this._applications.get(e)||null}},{key:"getAllTestabilities",value:function(){return Array.from(this._applications.values())}},{key:"getAllRootElements",value:function(){return Array.from(this._applications.keys())}},{key:"findTestabilityInTree",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return Rc.findTestabilityInTree(this,e,t)}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Re({token:e,factory:e.\u0275fac}),e}(),Rc=new(function(){function e(){A(this,e)}return m(e,[{key:"addToWindow",value:function(e){}},{key:"findTestabilityInTree",value:function(e,t,n){return null}}]),e}()),Lc=!0,Fc=!1;function Bc(){return Fc=!0,Lc}var Vc=new mi("AllowMultipleToken"),zc=function e(t,n){A(this,e),this.name=t,this.token=n};function Nc(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i="Platform: "+t,r=new mi(i);return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],o=Hc();if(!o||o.injector.get(Vc,!1))if(e)e(n.concat(t).concat({provide:r,useValue:!0}));else{var a=n.concat(t).concat({provide:r,useValue:!0},{provide:ka,useValue:"platform"});!function(e){if(Oc&&!Oc.destroyed&&!Oc.injector.get(Vc,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");Oc=e.get(jc);var t=e.get(lc,null);t&&t.forEach(function(e){return e()})}(Fa.create({providers:a,name:i}))}return function(e){var t=Hc();if(!t)throw new Error("No platform exists!");if(!t.injector.get(e,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return t}(r)}}function Hc(){return Oc&&!Oc.destroyed?Oc:null}var jc=function(){var e=function(){function e(t){A(this,e),this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}return m(e,[{key:"bootstrapModuleFactory",value:function(e,t){var n,i,r=this,o=(n=t?t.ngZone:void 0,i={ngZoneEventCoalescing:t&&t.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:t&&t.ngZoneRunCoalescing||!1},"noop"===n?new Mc:("zone.js"===n?void 0:n)||new Ac({enableLongStackTrace:Bc(),shouldCoalesceEventChangeDetection:!!(null==i?void 0:i.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==i?void 0:i.ngZoneRunCoalescing)})),a=[{provide:Ac,useValue:o}];return o.run(function(){var t=Fa.create({providers:a,parent:r.injector,name:e.moduleType.name}),n=e.create(t),i=n.injector.get(Or,null);if(!i)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return o.runOutsideAngular(function(){var e=o.onError.subscribe({next:function(e){i.handleError(e)}});n.onDestroy(function(){qc(r._modules,n),e.unsubscribe()})}),function(e,t,i){try{var o=((a=n.injector.get(rc)).runInitializers(),a.donePromise.then(function(){return cl(n.injector.get(hc,"en-US")||"en-US"),r._moduleDoBootstrap(n),n}));return ps(o)?o.catch(function(n){throw t.runOutsideAngular(function(){return e.handleError(n)}),n}):o}catch(s){throw t.runOutsideAngular(function(){return e.handleError(s)}),s}var a}(i,o)})}},{key:"bootstrapModule",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=Uc({},n);return function(e,t,n){var i=new ku(n);return Promise.resolve(i)}(0,0,e).then(function(e){return t.bootstrapModuleFactory(e,i)})}},{key:"_moduleDoBootstrap",value:function(e){var t=e.injector.get(Gc);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(function(e){return t.bootstrap(e)});else{if(!e.instance.ngDoBootstrap)throw new Error("The module ".concat(Ae(e.instance.constructor),' was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.'));e.instance.ngDoBootstrap(t)}this._modules.push(e)}},{key:"onDestroy",value:function(e){this._destroyListeners.push(e)}},{key:"injector",get:function(){return this._injector}},{key:"destroy",value:function(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(function(e){return e.destroy()}),this._destroyListeners.forEach(function(e){return e()}),this._destroyed=!0}},{key:"destroyed",get:function(){return this._destroyed}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ri(Fa))},e.\u0275prov=Re({token:e,factory:e.\u0275fac}),e}();function Uc(e,t){return Array.isArray(t)?t.reduce(Uc,e):Object.assign(Object.assign({},e),t)}var Wc,Gc=((Wc=function(){function e(t,n,i,r,o){var a=this;A(this,e),this._zone=t,this._injector=n,this._exceptionHandler=i,this._componentFactoryResolver=r,this._initStatus=o,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:function(){a._zone.run(function(){a.tick()})}});var s=new V(function(e){a._stable=a._zone.isStable&&!a._zone.hasPendingMacrotasks&&!a._zone.hasPendingMicrotasks,a._zone.runOutsideAngular(function(){e.next(a._stable),e.complete()})}),l=new V(function(e){var t;a._zone.runOutsideAngular(function(){t=a._zone.onStable.subscribe(function(){Ac.assertNotInAngularZone(),xc(function(){a._stable||a._zone.hasPendingMacrotasks||a._zone.hasPendingMicrotasks||(a._stable=!0,e.next(!0))})})});var n=a._zone.onUnstable.subscribe(function(){Ac.assertInAngularZone(),a._stable&&(a._stable=!1,a._zone.runOutsideAngular(function(){e.next(!1)}))});return function(){t.unsubscribe(),n.unsubscribe()}});this.isStable=he(s,l.pipe(_e()))}return m(e,[{key:"bootstrap",value:function(e,t){var n,i=this;if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");n=e instanceof bl?e:this._componentFactoryResolver.resolveComponentFactory(e),this.componentTypes.push(n.componentType);var r=n.isBoundToModule?void 0:this._injector.get(au),o=n.create(Fa.NULL,[],t||n.selector,r),a=o.location.nativeElement,s=o.injector.get(Tc,null),l=s&&o.injector.get(Ic);return s&&l&&l.registerApplication(a,s),o.onDestroy(function(){i.detachView(o.hostView),qc(i.components,o),l&&l.unregisterApplication(a)}),this._loadComponent(o),o}},{key:"tick",value:function(){var e=this;if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;var t,n=h(this._views);try{for(n.s();!(t=n.n()).done;)t.value.detectChanges()}catch(i){n.e(i)}finally{n.f()}}catch(r){this._zone.runOutsideAngular(function(){return e._exceptionHandler.handleError(r)})}finally{this._runningTick=!1}}},{key:"attachView",value:function(e){var t=e;this._views.push(t),t.attachToAppRef(this)}},{key:"detachView",value:function(e){var t=e;qc(this._views,t),t.detachFromAppRef()}},{key:"_loadComponent",value:function(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(cc,[]).concat(this._bootstrapListeners).forEach(function(t){return t(e)})}},{key:"ngOnDestroy",value:function(){this._views.slice().forEach(function(e){return e.destroy()}),this._onMicrotaskEmptySubscription.unsubscribe()}},{key:"viewCount",get:function(){return this._views.length}}]),e}()).\u0275fac=function(e){return new(e||Wc)(Ri(Ac),Ri(Fa),Ri(Or),Ri(_l),Ri(rc))},Wc.\u0275prov=Re({token:Wc,factory:Wc.\u0275fac}),Wc);function qc(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var Yc=function e(){A(this,e)},Zc=function e(){A(this,e)},Qc={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"},Xc=function(){var e=function(){function e(t,n){A(this,e),this._compiler=t,this._config=n||Qc}return m(e,[{key:"load",value:function(e){return this.loadAndCompile(e)}},{key:"loadAndCompile",value:function(e){var t=this,n=f(e.split("#"),2),i=n[0],r=n[1];return void 0===r&&(r="default"),u("MYvV")(i).then(function(e){return e[r]}).then(function(e){return Kc(e,i,r)}).then(function(e){return t._compiler.compileModuleAsync(e)})}},{key:"loadFactory",value:function(e){var t=f(e.split("#"),2),n=t[0],i=t[1],r="NgFactory";return void 0===i&&(i="default",r=""),u("MYvV")(this._config.factoryPathPrefix+n+this._config.factoryPathSuffix).then(function(e){return e[i+r]}).then(function(e){return Kc(e,n,i)})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ri(_c),Ri(Zc,8))},e.\u0275prov=Re({token:e,factory:e.\u0275fac}),e}();function Kc(e,t,n){if(!e)throw new Error("Cannot find '".concat(n,"' in '").concat(t,"'"));return e}var Jc=Nc(null,"core",[{provide:uc,useValue:"unknown"},{provide:jc,deps:[Fa]},{provide:Ic,deps:[]},{provide:dc,deps:[]}]),$c=[{provide:Gc,useClass:Gc,deps:[Ac,Fa,Or,_l,rc]},{provide:mu,deps:[Ac],useFactory:function(e){var t=[];return e.onStable.subscribe(function(){for(;t.length;)t.pop()()}),function(e){t.push(e)}}},{provide:rc,useClass:rc,deps:[[new Hi,ic]]},{provide:_c,useClass:_c,deps:[]},ac,{provide:Wl,useFactory:function(){return eu},deps:[]},{provide:ql,useFactory:function(){return tu},deps:[]},{provide:hc,useFactory:function(e){return cl(e=e||"undefined"!=typeof $localize&&$localize.locale||"en-US"),e},deps:[[new Ni(hc),new Hi,new ji]]},{provide:fc,useValue:"USD"}],ed=function(){var e=function e(t){A(this,e)};return e.\u0275fac=function(t){return new(t||e)(Ri(Gc))},e.\u0275mod=mt({type:e}),e.\u0275inj=Fe({providers:$c}),e}(),td={production:!0,VERSION:u("kiQV").version,AUTHOR:u("kiQV").author},nd=null;function id(){return nd}var rd,od=new mi("DocumentToken"),ad=((rd=function e(){A(this,e)}).\u0275fac=function(e){return new(e||rd)},rd.\u0275prov=Re({factory:sd,token:rd,providedIn:"platform"}),rd);function sd(){return Ri(cd)}var ld,ud=new mi("Location Initialized"),cd=((ld=function(e){r(n,e);var t=a(n);function n(e){var i;return A(this,n),(i=t.call(this))._doc=e,i._init(),i}return m(n,[{key:"_init",value:function(){this.location=id().getLocation(),this._history=id().getHistory()}},{key:"getBaseHrefFromDOM",value:function(){return id().getBaseHref(this._doc)}},{key:"onPopState",value:function(e){id().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",e,!1)}},{key:"onHashChange",value:function(e){id().getGlobalEventTarget(this._doc,"window").addEventListener("hashchange",e,!1)}},{key:"href",get:function(){return this.location.href}},{key:"protocol",get:function(){return this.location.protocol}},{key:"hostname",get:function(){return this.location.hostname}},{key:"port",get:function(){return this.location.port}},{key:"pathname",get:function(){return this.location.pathname},set:function(e){this.location.pathname=e}},{key:"search",get:function(){return this.location.search}},{key:"hash",get:function(){return this.location.hash}},{key:"pushState",value:function(e,t,n){dd()?this._history.pushState(e,t,n):this.location.hash=n}},{key:"replaceState",value:function(e,t,n){dd()?this._history.replaceState(e,t,n):this.location.hash=n}},{key:"forward",value:function(){this._history.forward()}},{key:"back",value:function(){this._history.back()}},{key:"getState",value:function(){return this._history.state}}]),n}(ad)).\u0275fac=function(e){return new(e||ld)(Ri(od))},ld.\u0275prov=Re({factory:hd,token:ld,providedIn:"platform"}),ld);function dd(){return!!window.history.pushState}function hd(){return new cd(Ri(od))}function fd(e,t){if(0==e.length)return t;if(0==t.length)return e;var n=0;return e.endsWith("/")&&n++,t.startsWith("/")&&n++,2==n?e+t.substring(1):1==n?e+t:e+"/"+t}function pd(e){var t=e.match(/#|\?|$/),n=t&&t.index||e.length;return e.slice(0,n-("/"===e[n-1]?1:0))+e.slice(n)}function gd(e){return e&&"?"!==e[0]?"?"+e:e}var vd,md=((vd=function e(){A(this,e)}).\u0275fac=function(e){return new(e||vd)},vd.\u0275prov=Re({factory:yd,token:vd,providedIn:"root"}),vd);function yd(e){var t=Ri(od).location;return new xd(Ri(ad),t&&t.origin||"")}var bd,wd,_d,kd=new mi("appBaseHref"),xd=((_d=function(e){r(n,e);var t=a(n);function n(e,i){var r;if(A(this,n),(r=t.call(this))._platformLocation=e,null==i&&(i=r._platformLocation.getBaseHrefFromDOM()),null==i)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");return r._baseHref=i,s(r)}return m(n,[{key:"onPopState",value:function(e){this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e)}},{key:"getBaseHref",value:function(){return this._baseHref}},{key:"prepareExternalUrl",value:function(e){return fd(this._baseHref,e)}},{key:"path",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this._platformLocation.pathname+gd(this._platformLocation.search),n=this._platformLocation.hash;return n&&e?"".concat(t).concat(n):t}},{key:"pushState",value:function(e,t,n,i){var r=this.prepareExternalUrl(n+gd(i));this._platformLocation.pushState(e,t,r)}},{key:"replaceState",value:function(e,t,n,i){var r=this.prepareExternalUrl(n+gd(i));this._platformLocation.replaceState(e,t,r)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}}]),n}(md)).\u0275fac=function(e){return new(e||_d)(Ri(ad),Ri(kd,8))},_d.\u0275prov=Re({token:_d,factory:_d.\u0275fac}),_d),Ad=((wd=function(e){r(n,e);var t=a(n);function n(e,i){var r;return A(this,n),(r=t.call(this))._platformLocation=e,r._baseHref="",null!=i&&(r._baseHref=i),r}return m(n,[{key:"onPopState",value:function(e){this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e)}},{key:"getBaseHref",value:function(){return this._baseHref}},{key:"path",value:function(){var e=this._platformLocation.hash;return null==e&&(e="#"),e.length>0?e.substring(1):e}},{key:"prepareExternalUrl",value:function(e){var t=fd(this._baseHref,e);return t.length>0?"#"+t:t}},{key:"pushState",value:function(e,t,n,i){var r=this.prepareExternalUrl(n+gd(i));0==r.length&&(r=this._platformLocation.pathname),this._platformLocation.pushState(e,t,r)}},{key:"replaceState",value:function(e,t,n,i){var r=this.prepareExternalUrl(n+gd(i));0==r.length&&(r=this._platformLocation.pathname),this._platformLocation.replaceState(e,t,r)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}}]),n}(md)).\u0275fac=function(e){return new(e||wd)(Ri(ad),Ri(kd,8))},wd.\u0275prov=Re({token:wd,factory:wd.\u0275fac}),wd),Cd=((bd=function(){function e(t,n){var i=this;A(this,e),this._subject=new Fu,this._urlChangeListeners=[],this._platformStrategy=t;var r=this._platformStrategy.getBaseHref();this._platformLocation=n,this._baseHref=pd(Pd(r)),this._platformStrategy.onPopState(function(e){i._subject.emit({url:i.path(!0),pop:!0,state:e.state,type:e.type})})}return m(e,[{key:"path",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.normalize(this._platformStrategy.path(e))}},{key:"getState",value:function(){return this._platformLocation.getState()}},{key:"isCurrentPathEqualTo",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return this.path()==this.normalize(e+gd(t))}},{key:"normalize",value:function(t){return e.stripTrailingSlash(function(e,t){return e&&t.startsWith(e)?t.substring(e.length):t}(this._baseHref,Pd(t)))}},{key:"prepareExternalUrl",value:function(e){return e&&"/"!==e[0]&&(e="/"+e),this._platformStrategy.prepareExternalUrl(e)}},{key:"go",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._platformStrategy.pushState(n,"",e,t),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+gd(t)),n)}},{key:"replaceState",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._platformStrategy.replaceState(n,"",e,t),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+gd(t)),n)}},{key:"forward",value:function(){this._platformStrategy.forward()}},{key:"back",value:function(){this._platformStrategy.back()}},{key:"onUrlChange",value:function(e){var t=this;this._urlChangeListeners.push(e),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(function(e){t._notifyUrlChangeListeners(e.url,e.state)}))}},{key:"_notifyUrlChangeListeners",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;this._urlChangeListeners.forEach(function(n){return n(e,t)})}},{key:"subscribe",value:function(e,t,n){return this._subject.subscribe({next:e,error:t,complete:n})}}]),e}()).\u0275fac=function(e){return new(e||bd)(Ri(md),Ri(ad))},bd.normalizeQueryParams=gd,bd.joinWithSlash=fd,bd.stripTrailingSlash=pd,bd.\u0275prov=Re({factory:Sd,token:bd,providedIn:"root"}),bd);function Sd(){return new Cd(Ri(md),Ri(ad))}function Pd(e){return e.replace(/\/index.html$/,"")}var Ed=function(e){return e[e.Zero=0]="Zero",e[e.One=1]="One",e[e.Two=2]="Two",e[e.Few=3]="Few",e[e.Many=4]="Many",e[e.Other=5]="Other",e}({}),Dd=function(e){return e[e.Format=0]="Format",e[e.Standalone=1]="Standalone",e}({}),Od=function(e){return e[e.Narrow=0]="Narrow",e[e.Abbreviated=1]="Abbreviated",e[e.Wide=2]="Wide",e[e.Short=3]="Short",e}({}),Md=function(e){return e[e.Short=0]="Short",e[e.Medium=1]="Medium",e[e.Long=2]="Long",e[e.Full=3]="Full",e}({}),Td=function(e){return e[e.Decimal=0]="Decimal",e[e.Group=1]="Group",e[e.List=2]="List",e[e.PercentSign=3]="PercentSign",e[e.PlusSign=4]="PlusSign",e[e.MinusSign=5]="MinusSign",e[e.Exponential=6]="Exponential",e[e.SuperscriptingExponent=7]="SuperscriptingExponent",e[e.PerMille=8]="PerMille",e[e[1/0]=9]="Infinity",e[e.NaN=10]="NaN",e[e.TimeSeparator=11]="TimeSeparator",e[e.CurrencyDecimal=12]="CurrencyDecimal",e[e.CurrencyGroup=13]="CurrencyGroup",e}({});function Id(e,t){return Vd(sl(e)[ul.DateFormat],t)}function Rd(e,t){return Vd(sl(e)[ul.TimeFormat],t)}function Ld(e,t){return Vd(sl(e)[ul.DateTimeFormat],t)}function Fd(e,t){var n=sl(e),i=n[ul.NumberSymbols][t];if(void 0===i){if(t===Td.CurrencyDecimal)return n[ul.NumberSymbols][Td.Decimal];if(t===Td.CurrencyGroup)return n[ul.NumberSymbols][Td.Group]}return i}function Bd(e){if(!e[ul.ExtraData])throw new Error('Missing extra locale data for the locale "'.concat(e[ul.LocaleId],'". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.'))}function Vd(e,t){for(var n=t;n>-1;n--)if(void 0!==e[n])return e[n];throw new Error("Locale data API: locale data undefined")}function zd(e){var t=f(e.split(":"),2);return{hours:+t[0],minutes:+t[1]}}var Nd=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Hd={},jd=/((?:[^GyYMLwWdEabBhHmsSzZO']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/,Ud=function(e){return e[e.Short=0]="Short",e[e.ShortGMT=1]="ShortGMT",e[e.Long=2]="Long",e[e.Extended=3]="Extended",e}({}),Wd=function(e){return e[e.FullYear=0]="FullYear",e[e.Month=1]="Month",e[e.Date=2]="Date",e[e.Hours=3]="Hours",e[e.Minutes=4]="Minutes",e[e.Seconds=5]="Seconds",e[e.FractionalSeconds=6]="FractionalSeconds",e[e.Day=7]="Day",e}({}),Gd=function(e){return e[e.DayPeriods=0]="DayPeriods",e[e.Days=1]="Days",e[e.Months=2]="Months",e[e.Eras=3]="Eras",e}({});function qd(e,t,n,i){var r=function(e){if(oh(e))return e;if("number"==typeof e&&!isNaN(e))return new Date(e);if("string"==typeof e){if(e=e.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(e)){var t=f(e.split("-").map(function(e){return+e}),3),n=t[0],i=t[1],r=void 0===i?1:i,o=t[2];return Yd(n,r-1,void 0===o?1:o)}var a,s=parseFloat(e);if(!isNaN(e-s))return new Date(s);if(a=e.match(Nd))return function(e){var t=new Date(0),n=0,i=0,r=e[8]?t.setUTCFullYear:t.setFullYear,o=e[8]?t.setUTCHours:t.setHours;e[9]&&(n=Number(e[9]+e[10]),i=Number(e[9]+e[11])),r.call(t,Number(e[1]),Number(e[2])-1,Number(e[3]));var a=Number(e[4]||0)-n,s=Number(e[5]||0)-i,l=Number(e[6]||0),u=Math.floor(1e3*parseFloat("0."+(e[7]||0)));return o.call(t,a,s,l,u),t}(a)}var l=new Date(e);if(!oh(l))throw new Error('Unable to convert "'.concat(e,'" into a date'));return l}(e);t=Zd(n,t)||t;for(var o,a=[];t;){if(!(o=jd.exec(t))){a.push(t);break}var s=(a=a.concat(o.slice(1))).pop();if(!s)break;t=s}var l=r.getTimezoneOffset();i&&(l=rh(i,l),r=function(e,t,n){var i=e.getTimezoneOffset();return function(e,t){return(e=new Date(e.getTime())).setMinutes(e.getMinutes()+t),e}(e,-1*(rh(t,i)-i))}(r,i));var u="";return a.forEach(function(e){var t=function(e){if(ih[e])return ih[e];var t;switch(e){case"G":case"GG":case"GGG":t=Jd(Gd.Eras,Od.Abbreviated);break;case"GGGG":t=Jd(Gd.Eras,Od.Wide);break;case"GGGGG":t=Jd(Gd.Eras,Od.Narrow);break;case"y":t=Kd(Wd.FullYear,1,0,!1,!0);break;case"yy":t=Kd(Wd.FullYear,2,0,!0,!0);break;case"yyy":t=Kd(Wd.FullYear,3,0,!1,!0);break;case"yyyy":t=Kd(Wd.FullYear,4,0,!1,!0);break;case"Y":t=nh(1);break;case"YY":t=nh(2,!0);break;case"YYY":t=nh(3);break;case"YYYY":t=nh(4);break;case"M":case"L":t=Kd(Wd.Month,1,1);break;case"MM":case"LL":t=Kd(Wd.Month,2,1);break;case"MMM":t=Jd(Gd.Months,Od.Abbreviated);break;case"MMMM":t=Jd(Gd.Months,Od.Wide);break;case"MMMMM":t=Jd(Gd.Months,Od.Narrow);break;case"LLL":t=Jd(Gd.Months,Od.Abbreviated,Dd.Standalone);break;case"LLLL":t=Jd(Gd.Months,Od.Wide,Dd.Standalone);break;case"LLLLL":t=Jd(Gd.Months,Od.Narrow,Dd.Standalone);break;case"w":t=th(1);break;case"ww":t=th(2);break;case"W":t=th(1,!0);break;case"d":t=Kd(Wd.Date,1);break;case"dd":t=Kd(Wd.Date,2);break;case"E":case"EE":case"EEE":t=Jd(Gd.Days,Od.Abbreviated);break;case"EEEE":t=Jd(Gd.Days,Od.Wide);break;case"EEEEE":t=Jd(Gd.Days,Od.Narrow);break;case"EEEEEE":t=Jd(Gd.Days,Od.Short);break;case"a":case"aa":case"aaa":t=Jd(Gd.DayPeriods,Od.Abbreviated);break;case"aaaa":t=Jd(Gd.DayPeriods,Od.Wide);break;case"aaaaa":t=Jd(Gd.DayPeriods,Od.Narrow);break;case"b":case"bb":case"bbb":t=Jd(Gd.DayPeriods,Od.Abbreviated,Dd.Standalone,!0);break;case"bbbb":t=Jd(Gd.DayPeriods,Od.Wide,Dd.Standalone,!0);break;case"bbbbb":t=Jd(Gd.DayPeriods,Od.Narrow,Dd.Standalone,!0);break;case"B":case"BB":case"BBB":t=Jd(Gd.DayPeriods,Od.Abbreviated,Dd.Format,!0);break;case"BBBB":t=Jd(Gd.DayPeriods,Od.Wide,Dd.Format,!0);break;case"BBBBB":t=Jd(Gd.DayPeriods,Od.Narrow,Dd.Format,!0);break;case"h":t=Kd(Wd.Hours,1,-12);break;case"hh":t=Kd(Wd.Hours,2,-12);break;case"H":t=Kd(Wd.Hours,1);break;case"HH":t=Kd(Wd.Hours,2);break;case"m":t=Kd(Wd.Minutes,1);break;case"mm":t=Kd(Wd.Minutes,2);break;case"s":t=Kd(Wd.Seconds,1);break;case"ss":t=Kd(Wd.Seconds,2);break;case"S":t=Kd(Wd.FractionalSeconds,1);break;case"SS":t=Kd(Wd.FractionalSeconds,2);break;case"SSS":t=Kd(Wd.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":t=$d(Ud.Short);break;case"ZZZZZ":t=$d(Ud.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":t=$d(Ud.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":t=$d(Ud.Long);break;default:return null}return ih[e]=t,t}(e);u+=t?t(r,n,l):"''"===e?"'":e.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),u}function Yd(e,t,n){var i=new Date(0);return i.setFullYear(e,t,n),i.setHours(0,0,0),i}function Zd(e,t){var n=function(e){return sl(e)[ul.LocaleId]}(e);if(Hd[n]=Hd[n]||{},Hd[n][t])return Hd[n][t];var i="";switch(t){case"shortDate":i=Id(e,Md.Short);break;case"mediumDate":i=Id(e,Md.Medium);break;case"longDate":i=Id(e,Md.Long);break;case"fullDate":i=Id(e,Md.Full);break;case"shortTime":i=Rd(e,Md.Short);break;case"mediumTime":i=Rd(e,Md.Medium);break;case"longTime":i=Rd(e,Md.Long);break;case"fullTime":i=Rd(e,Md.Full);break;case"short":var r=Zd(e,"shortTime"),o=Zd(e,"shortDate");i=Qd(Ld(e,Md.Short),[r,o]);break;case"medium":var a=Zd(e,"mediumTime"),s=Zd(e,"mediumDate");i=Qd(Ld(e,Md.Medium),[a,s]);break;case"long":var l=Zd(e,"longTime"),u=Zd(e,"longDate");i=Qd(Ld(e,Md.Long),[l,u]);break;case"full":var c=Zd(e,"fullTime"),d=Zd(e,"fullDate");i=Qd(Ld(e,Md.Full),[c,d])}return i&&(Hd[n][t]=i),i}function Qd(e,t){return t&&(e=e.replace(/\{([^}]+)}/g,function(e,n){return null!=t&&n in t?t[n]:e})),e}function Xd(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"-",i=arguments.length>3?arguments[3]:void 0,r=arguments.length>4?arguments[4]:void 0,o="";(e<0||r&&e<=0)&&(r?e=1-e:(e=-e,o=n));for(var a=String(e);a.length<t;)a="0"+a;return i&&(a=a.substr(a.length-t)),o+a}function Kd(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return function(o,a){var s,l=function(e,t){switch(e){case Wd.FullYear:return t.getFullYear();case Wd.Month:return t.getMonth();case Wd.Date:return t.getDate();case Wd.Hours:return t.getHours();case Wd.Minutes:return t.getMinutes();case Wd.Seconds:return t.getSeconds();case Wd.FractionalSeconds:return t.getMilliseconds();case Wd.Day:return t.getDay();default:throw new Error('Unknown DateType value "'.concat(e,'".'))}}(e,o);if((n>0||l>-n)&&(l+=n),e===Wd.Hours)0===l&&-12===n&&(l=12);else if(e===Wd.FractionalSeconds)return s=t,Xd(l,3).substr(0,s);var u=Fd(a,Td.MinusSign);return Xd(l,t,u,i,r)}}function Jd(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Dd.Format,i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return function(r,o){return function(e,t,n,i,r,o){switch(n){case Gd.Months:return function(e,t,n){var i=sl(e),r=Vd([i[ul.MonthsFormat],i[ul.MonthsStandalone]],t);return Vd(r,n)}(t,r,i)[e.getMonth()];case Gd.Days:return function(e,t,n){var i=sl(e),r=Vd([i[ul.DaysFormat],i[ul.DaysStandalone]],t);return Vd(r,n)}(t,r,i)[e.getDay()];case Gd.DayPeriods:var a=e.getHours(),s=e.getMinutes();if(o){var l=function(e){var t=sl(e);return Bd(t),(t[ul.ExtraData][2]||[]).map(function(e){return"string"==typeof e?zd(e):[zd(e[0]),zd(e[1])]})}(t),u=function(e,t,n){var i=sl(e);Bd(i);var r=Vd([i[ul.ExtraData][0],i[ul.ExtraData][1]],t)||[];return Vd(r,n)||[]}(t,r,i),c=l.findIndex(function(e){if(Array.isArray(e)){var t=f(e,2),n=t[0],i=t[1],r=a>=n.hours&&s>=n.minutes,o=a<i.hours||a===i.hours&&s<i.minutes;if(n.hours<i.hours){if(r&&o)return!0}else if(r||o)return!0}else if(e.hours===a&&e.minutes===s)return!0;return!1});if(-1!==c)return u[c]}return function(e,t,n){var i=sl(e),r=Vd([i[ul.DayPeriodsFormat],i[ul.DayPeriodsStandalone]],t);return Vd(r,n)}(t,r,i)[a<12?0:1];case Gd.Eras:return function(e,t){return Vd(sl(e)[ul.Eras],t)}(t,i)[e.getFullYear()<=0?0:1];default:throw new Error("unexpected translation type "+n)}}(r,o,e,t,n,i)}}function $d(e){return function(t,n,i){var r=-1*i,o=Fd(n,Td.MinusSign),a=r>0?Math.floor(r/60):Math.ceil(r/60);switch(e){case Ud.Short:return(r>=0?"+":"")+Xd(a,2,o)+Xd(Math.abs(r%60),2,o);case Ud.ShortGMT:return"GMT"+(r>=0?"+":"")+Xd(a,1,o);case Ud.Long:return"GMT"+(r>=0?"+":"")+Xd(a,2,o)+":"+Xd(Math.abs(r%60),2,o);case Ud.Extended:return 0===i?"Z":(r>=0?"+":"")+Xd(a,2,o)+":"+Xd(Math.abs(r%60),2,o);default:throw new Error('Unknown zone width "'.concat(e,'"'))}}}function eh(e){return Yd(e.getFullYear(),e.getMonth(),e.getDate()+(4-e.getDay()))}function th(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(n,i){var r,o,a;if(t){var s=new Date(n.getFullYear(),n.getMonth(),1).getDay()-1,l=n.getDate();r=1+Math.floor((l+s)/7)}else{var u=eh(n),c=(o=u.getFullYear(),a=Yd(o,0,1).getDay(),Yd(o,0,1+(a<=4?4:11)-a)),d=u.getTime()-c.getTime();r=1+Math.round(d/6048e5)}return Xd(r,e,Fd(i,Td.MinusSign))}}function nh(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(n,i){return Xd(eh(n).getFullYear(),e,Fd(i,Td.MinusSign),t)}}var ih={};function rh(e,t){e=e.replace(/:/g,"");var n=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return isNaN(n)?t:n}function oh(e){return e instanceof Date&&!isNaN(e.valueOf())}var ah,sh=function e(){A(this,e)},lh=((ah=function(e){r(n,e);var t=a(n);function n(e){var i;return A(this,n),(i=t.call(this)).locale=e,i}return m(n,[{key:"getPluralCategory",value:function(e,t){switch(function(e){return sl(e)[ul.PluralCase]}(t||this.locale)(e)){case Ed.Zero:return"zero";case Ed.One:return"one";case Ed.Two:return"two";case Ed.Few:return"few";case Ed.Many:return"many";default:return"other"}}}]),n}(sh)).\u0275fac=function(e){return new(e||ah)(Ri(hc))},ah.\u0275prov=Re({token:ah,factory:ah.\u0275fac}),ah);function uh(e,t){t=encodeURIComponent(t);var n,i=h(e.split(";"));try{for(i.s();!(n=i.n()).done;){var r=n.value,o=r.indexOf("="),a=f(-1==o?[r,""]:[r.slice(0,o),r.slice(o+1)],2),s=a[0],l=a[1];if(s.trim()===t)return decodeURIComponent(l)}}catch(u){i.e(u)}finally{i.f()}return null}var ch,dh,hh,fh=((ch=function(){function e(t,n,i,r){A(this,e),this._iterableDiffers=t,this._keyValueDiffers=n,this._ngEl=i,this._renderer=r,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}return m(e,[{key:"klass",set:function(e){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof e?e.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}},{key:"ngClass",set:function(e){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof e?e.split(/\s+/):e,this._rawClass&&(qa(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}},{key:"ngDoCheck",value:function(){if(this._iterableDiffer){var e=this._iterableDiffer.diff(this._rawClass);e&&this._applyIterableChanges(e)}else if(this._keyValueDiffer){var t=this._keyValueDiffer.diff(this._rawClass);t&&this._applyKeyValueChanges(t)}}},{key:"_applyKeyValueChanges",value:function(e){var t=this;e.forEachAddedItem(function(e){return t._toggleClass(e.key,e.currentValue)}),e.forEachChangedItem(function(e){return t._toggleClass(e.key,e.currentValue)}),e.forEachRemovedItem(function(e){e.previousValue&&t._toggleClass(e.key,!1)})}},{key:"_applyIterableChanges",value:function(e){var t=this;e.forEachAddedItem(function(e){if("string"!=typeof e.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got "+Ae(e.item));t._toggleClass(e.item,!0)}),e.forEachRemovedItem(function(e){return t._toggleClass(e.item,!1)})}},{key:"_applyClasses",value:function(e){var t=this;e&&(Array.isArray(e)||e instanceof Set?e.forEach(function(e){return t._toggleClass(e,!0)}):Object.keys(e).forEach(function(n){return t._toggleClass(n,!!e[n])}))}},{key:"_removeClasses",value:function(e){var t=this;e&&(Array.isArray(e)||e instanceof Set?e.forEach(function(e){return t._toggleClass(e,!1)}):Object.keys(e).forEach(function(e){return t._toggleClass(e,!1)}))}},{key:"_toggleClass",value:function(e,t){var n=this;(e=e.trim())&&e.split(/\s+/g).forEach(function(e){t?n._renderer.addClass(n._ngEl.nativeElement,e):n._renderer.removeClass(n._ngEl.nativeElement,e)})}}]),e}()).\u0275fac=function(e){return new(e||ch)(rs(Wl),rs(ql),rs(Cl),rs(El))},ch.\u0275dir=bt({type:ch,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),ch),ph=function(){function e(t,n,i,r){A(this,e),this.$implicit=t,this.ngForOf=n,this.index=i,this.count=r}return m(e,[{key:"first",get:function(){return 0===this.index}},{key:"last",get:function(){return this.index===this.count-1}},{key:"even",get:function(){return this.index%2==0}},{key:"odd",get:function(){return!this.even}}]),e}(),gh=((dh=function(){function e(t,n,i){A(this,e),this._viewContainer=t,this._template=n,this._differs=i,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}return m(e,[{key:"ngForOf",set:function(e){this._ngForOf=e,this._ngForOfDirty=!0}},{key:"ngForTrackBy",get:function(){return this._trackByFn},set:function(e){this._trackByFn=e}},{key:"ngForTemplate",set:function(e){e&&(this._template=e)}},{key:"ngDoCheck",value:function(){if(this._ngForOfDirty){this._ngForOfDirty=!1;var e=this._ngForOf;if(!this._differ&&e)try{this._differ=this._differs.find(e).create(this.ngForTrackBy)}catch(i){throw new Error("Cannot find a differ supporting object '".concat(e,"' of type '").concat((t=e).name||typeof t,"'. NgFor only supports binding to Iterables such as Arrays."))}}var t;if(this._differ){var n=this._differ.diff(this._ngForOf);n&&this._applyChanges(n)}}},{key:"_applyChanges",value:function(e){var t=this,n=[];e.forEachOperation(function(e,i,r){if(null==e.previousIndex){var o=t._viewContainer.createEmbeddedView(t._template,new ph(null,t._ngForOf,-1,-1),null===r?void 0:r),a=new vh(e,o);n.push(a)}else if(null==r)t._viewContainer.remove(null===i?void 0:i);else if(null!==i){var s=t._viewContainer.get(i);t._viewContainer.move(s,r);var l=new vh(e,s);n.push(l)}});for(var i=0;i<n.length;i++)this._perViewChange(n[i].view,n[i].record);for(var r=0,o=this._viewContainer.length;r<o;r++){var a=this._viewContainer.get(r);a.context.index=r,a.context.count=o,a.context.ngForOf=this._ngForOf}e.forEachIdentityChange(function(e){t._viewContainer.get(e.currentIndex).context.$implicit=e.item})}},{key:"_perViewChange",value:function(e,t){e.context.$implicit=t.item}}],[{key:"ngTemplateContextGuard",value:function(e,t){return!0}}]),e}()).\u0275fac=function(e){return new(e||dh)(rs(uu),rs(iu),rs(Wl))},dh.\u0275dir=bt({type:dh,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),dh),vh=function e(t,n){A(this,e),this.record=t,this.view=n},mh=((hh=function(){function e(t,n){A(this,e),this._viewContainer=t,this._context=new yh,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=n}return m(e,[{key:"ngIf",set:function(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}},{key:"ngIfThen",set:function(e){bh("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}},{key:"ngIfElse",set:function(e){bh("ngIfElse",e),this._elseTemplateRef=e,this._elseViewRef=null,this._updateView()}},{key:"_updateView",value:function(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}}],[{key:"ngTemplateContextGuard",value:function(e,t){return!0}}]),e}()).\u0275fac=function(e){return new(e||hh)(rs(uu),rs(iu))},hh.\u0275dir=bt({type:hh,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),hh),yh=function e(){A(this,e),this.$implicit=null,this.ngIf=null};function bh(e,t){if(t&&!t.createEmbeddedView)throw new Error("".concat(e," must be a TemplateRef, but received '").concat(Ae(t),"'."))}var wh,_h,kh,xh,Ah,Ch=function(){function e(t,n){A(this,e),this._viewContainerRef=t,this._templateRef=n,this._created=!1}return m(e,[{key:"create",value:function(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}},{key:"destroy",value:function(){this._created=!1,this._viewContainerRef.clear()}},{key:"enforceState",value:function(e){e&&!this._created?this.create():!e&&this._created&&this.destroy()}}]),e}(),Sh=((Ah=function(){function e(){A(this,e),this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}return m(e,[{key:"ngSwitch",set:function(e){this._ngSwitch=e,0===this._caseCount&&this._updateDefaultCases(!0)}},{key:"_addCase",value:function(){return this._caseCount++}},{key:"_addDefault",value:function(e){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(e)}},{key:"_matchCase",value:function(e){var t=e==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||t,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),t}},{key:"_updateDefaultCases",value:function(e){if(this._defaultViews&&e!==this._defaultUsed){this._defaultUsed=e;for(var t=0;t<this._defaultViews.length;t++)this._defaultViews[t].enforceState(e)}}}]),e}()).\u0275fac=function(e){return new(e||Ah)},Ah.\u0275dir=bt({type:Ah,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"}}),Ah),Ph=((xh=function(){function e(t,n,i){A(this,e),this.ngSwitch=i,i._addCase(),this._view=new Ch(t,n)}return m(e,[{key:"ngDoCheck",value:function(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}]),e}()).\u0275fac=function(e){return new(e||xh)(rs(uu),rs(iu),rs(Sh,1))},xh.\u0275dir=bt({type:xh,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),xh),Eh=((kh=function e(t,n,i){A(this,e),i._addDefault(new Ch(t,n))}).\u0275fac=function(e){return new(e||kh)(rs(uu),rs(iu),rs(Sh,1))},kh.\u0275dir=bt({type:kh,selectors:[["","ngSwitchDefault",""]]}),kh),Dh=((_h=function(){function e(t,n,i){A(this,e),this._ngEl=t,this._differs=n,this._renderer=i,this._ngStyle=null,this._differ=null}return m(e,[{key:"ngStyle",set:function(e){this._ngStyle=e,!this._differ&&e&&(this._differ=this._differs.find(e).create())}},{key:"ngDoCheck",value:function(){if(this._differ){var e=this._differ.diff(this._ngStyle);e&&this._applyChanges(e)}}},{key:"_setStyle",value:function(e,t){var n=f(e.split("."),2),i=n[0],r=n[1];null!=(t=null!=t&&r?"".concat(t).concat(r):t)?this._renderer.setStyle(this._ngEl.nativeElement,i,t):this._renderer.removeStyle(this._ngEl.nativeElement,i)}},{key:"_applyChanges",value:function(e){var t=this;e.forEachRemovedItem(function(e){return t._setStyle(e.key,null)}),e.forEachAddedItem(function(e){return t._setStyle(e.key,e.currentValue)}),e.forEachChangedItem(function(e){return t._setStyle(e.key,e.currentValue)})}}]),e}()).\u0275fac=function(e){return new(e||_h)(rs(Cl),rs(ql),rs(El))},_h.\u0275dir=bt({type:_h,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),_h),Oh=((wh=function(){function e(t){A(this,e),this._viewContainerRef=t,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}return m(e,[{key:"ngOnChanges",value:function(e){if(this._shouldRecreateView(e)){var t=this._viewContainerRef;this._viewRef&&t.remove(t.indexOf(this._viewRef)),this._viewRef=this.ngTemplateOutlet?t.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext):null}else this._viewRef&&this.ngTemplateOutletContext&&this._updateExistingContext(this.ngTemplateOutletContext)}},{key:"_shouldRecreateView",value:function(e){var t=e.ngTemplateOutletContext;return!!e.ngTemplateOutlet||t&&this._hasContextShapeChanged(t)}},{key:"_hasContextShapeChanged",value:function(e){var t=Object.keys(e.previousValue||{}),n=Object.keys(e.currentValue||{});if(t.length===n.length){var i,r=h(n);try{for(r.s();!(i=r.n()).done;){var o=i.value;if(-1===t.indexOf(o))return!0}}catch(a){r.e(a)}finally{r.f()}return!1}return!0}},{key:"_updateExistingContext",value:function(e){for(var t=0,n=Object.keys(e);t<n.length;t++){var i=n[t];this._viewRef.context[i]=this.ngTemplateOutletContext[i]}}}]),e}()).\u0275fac=function(e){return new(e||wh)(rs(uu))},wh.\u0275dir=bt({type:wh,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[Mt]}),wh);function Mh(e,t){return Error("InvalidPipeArgument: '".concat(t,"' for pipe '").concat(Ae(e),"'"))}var Th,Ih,Rh,Lh,Fh,Bh=function(){function e(){A(this,e)}return m(e,[{key:"createSubscription",value:function(e,t){return e.subscribe({next:t,error:function(e){throw e}})}},{key:"dispose",value:function(e){e.unsubscribe()}},{key:"onDestroy",value:function(e){e.unsubscribe()}}]),e}(),Vh=new(function(){function e(){A(this,e)}return m(e,[{key:"createSubscription",value:function(e,t){return e.then(t,function(e){throw e})}},{key:"dispose",value:function(e){}},{key:"onDestroy",value:function(e){}}]),e}()),zh=new Bh,Nh=((Th=function(){function e(t){A(this,e),this._ref=t,this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null}return m(e,[{key:"ngOnDestroy",value:function(){this._subscription&&this._dispose()}},{key:"transform",value:function(e){return this._obj?e!==this._obj?(this._dispose(),this.transform(e)):this._latestValue:(e&&this._subscribe(e),this._latestValue)}},{key:"_subscribe",value:function(e){var t=this;this._obj=e,this._strategy=this._selectStrategy(e),this._subscription=this._strategy.createSubscription(e,function(n){return t._updateLatestValue(e,n)})}},{key:"_selectStrategy",value:function(t){if(ps(t))return Vh;if(gs(t))return zh;throw Mh(e,t)}},{key:"_dispose",value:function(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}},{key:"_updateLatestValue",value:function(e,t){e===this._obj&&(this._latestValue=t,this._ref.markForCheck())}}]),e}()).\u0275fac=function(e){return new(e||Th)(nc())},Th.\u0275pipe=wt({name:"async",type:Th,pure:!1}),Th),Hh=/(?:[A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D])\S*/g,jh=((Fh=function(){function e(){A(this,e)}return m(e,[{key:"transform",value:function(t){if(null==t)return null;if("string"!=typeof t)throw Mh(e,t);return t.replace(Hh,function(e){return e[0].toUpperCase()+e.substr(1).toLowerCase()})}}]),e}()).\u0275fac=function(e){return new(e||Fh)},Fh.\u0275pipe=wt({name:"titlecase",type:Fh,pure:!0}),Fh),Uh=((Lh=function(){function e(){A(this,e)}return m(e,[{key:"transform",value:function(t){if(null==t)return null;if("string"!=typeof t)throw Mh(e,t);return t.toUpperCase()}}]),e}()).\u0275fac=function(e){return new(e||Lh)},Lh.\u0275pipe=wt({name:"uppercase",type:Lh,pure:!0}),Lh),Wh=((Rh=function(){function e(t){A(this,e),this.locale=t}return m(e,[{key:"transform",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"mediumDate",i=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0;if(null==t||""===t||t!=t)return null;try{return qd(t,n,r||this.locale,i)}catch(o){throw Mh(e,o.message)}}}]),e}()).\u0275fac=function(e){return new(e||Rh)(rs(hc))},Rh.\u0275pipe=wt({name:"date",type:Rh,pure:!0}),Rh),Gh=((Ih=function(){function e(t){A(this,e),this.differs=t,this.keyValues=[]}return m(e,[{key:"transform",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:qh;if(!e||!(e instanceof Map)&&"object"!=typeof e)return null;this.differ||(this.differ=this.differs.find(e).create());var i=this.differ.diff(e);return i&&(this.keyValues=[],i.forEachItem(function(e){t.keyValues.push({key:e.key,value:e.currentValue})}),this.keyValues.sort(n)),this.keyValues}}]),e}()).\u0275fac=function(e){return new(e||Ih)(rs(ql))},Ih.\u0275pipe=wt({name:"keyvalue",type:Ih,pure:!1}),Ih);function qh(e,t){var n=e.key,i=t.key;if(n===i)return 0;if(void 0===n)return 1;if(void 0===i)return-1;if(null===n)return 1;if(null===i)return-1;if("string"==typeof n&&"string"==typeof i)return n<i?-1:1;if("number"==typeof n&&"number"==typeof i)return n-i;if("boolean"==typeof n&&"boolean"==typeof i)return n<i?-1:1;var r=String(n),o=String(i);return r==o?0:r<o?-1:1}var Yh,Zh=((Yh=function e(){A(this,e)}).\u0275fac=function(e){return new(e||Yh)},Yh.\u0275mod=mt({type:Yh}),Yh.\u0275inj=Fe({providers:[{provide:sh,useClass:lh}]}),Yh);function Qh(e){return"browser"===e}var Xh,Kh=((Xh=function e(){A(this,e)}).\u0275prov=Re({token:Xh,providedIn:"root",factory:function(){return new Jh(Ri(od),window)}}),Xh),Jh=function(){function e(t,n){A(this,e),this.document=t,this.window=n,this.offset=function(){return[0,0]}}return m(e,[{key:"setOffset",value:function(e){this.offset=Array.isArray(e)?function(){return e}:e}},{key:"getScrollPosition",value:function(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}},{key:"scrollToPosition",value:function(e){this.supportsScrolling()&&this.window.scrollTo(e[0],e[1])}},{key:"scrollToAnchor",value:function(e){var t;if(this.supportsScrolling()){var n=null!==(t=this.document.getElementById(e))&&void 0!==t?t:this.document.getElementsByName(e)[0];void 0!==n&&(this.scrollToElement(n),this.attemptFocus(n))}}},{key:"setHistoryScrollRestoration",value:function(e){if(this.supportScrollRestoration()){var t=this.window.history;t&&t.scrollRestoration&&(t.scrollRestoration=e)}}},{key:"scrollToElement",value:function(e){var t=e.getBoundingClientRect(),n=t.left+this.window.pageXOffset,i=t.top+this.window.pageYOffset,r=this.offset();this.window.scrollTo(n-r[0],i-r[1])}},{key:"attemptFocus",value:function(e){return e.focus(),this.document.activeElement===e}},{key:"supportScrollRestoration",value:function(){try{if(!this.supportsScrolling())return!1;var e=$h(this.window.history)||$h(Object.getPrototypeOf(this.window.history));return!(!e||!e.writable&&!e.set)}catch(t){return!1}}},{key:"supportsScrolling",value:function(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(e){return!1}}}]),e}();function $h(e){return Object.getOwnPropertyDescriptor(e,"scrollRestoration")}var ef,tf,nf,rf,of=function(e){r(n,e);var t=a(n);function n(){return A(this,n),t.apply(this,arguments)}return m(n,[{key:"getProperty",value:function(e,t){return e[t]}},{key:"log",value:function(e){window.console&&window.console.log&&window.console.log(e)}},{key:"logGroup",value:function(e){window.console&&window.console.group&&window.console.group(e)}},{key:"logGroupEnd",value:function(){window.console&&window.console.groupEnd&&window.console.groupEnd()}},{key:"onAndCancel",value:function(e,t,n){return e.addEventListener(t,n,!1),function(){e.removeEventListener(t,n,!1)}}},{key:"dispatchEvent",value:function(e,t){e.dispatchEvent(t)}},{key:"remove",value:function(e){return e.parentNode&&e.parentNode.removeChild(e),e}},{key:"getValue",value:function(e){return e.value}},{key:"createElement",value:function(e,t){return(t=t||this.getDefaultDocument()).createElement(e)}},{key:"createHtmlDocument",value:function(){return document.implementation.createHTMLDocument("fakeTitle")}},{key:"getDefaultDocument",value:function(){return document}},{key:"isElementNode",value:function(e){return e.nodeType===Node.ELEMENT_NODE}},{key:"isShadowRoot",value:function(e){return e instanceof DocumentFragment}},{key:"getGlobalEventTarget",value:function(e,t){return"window"===t?window:"document"===t?e:"body"===t?e.body:null}},{key:"getHistory",value:function(){return window.history}},{key:"getLocation",value:function(){return window.location}},{key:"getBaseHref",value:function(e){var t,n=af||(af=document.querySelector("base"))?af.getAttribute("href"):null;return null==n?null:(t=n,ef||(ef=document.createElement("a")),ef.setAttribute("href",t),"/"===ef.pathname.charAt(0)?ef.pathname:"/"+ef.pathname)}},{key:"resetBaseElement",value:function(){af=null}},{key:"getUserAgent",value:function(){return window.navigator.userAgent}},{key:"performanceNow",value:function(){return window.performance&&window.performance.now?window.performance.now():(new Date).getTime()}},{key:"supportsCookies",value:function(){return!0}},{key:"getCookie",value:function(e){return uh(document.cookie,e)}}],[{key:"makeCurrent",value:function(){var e;e=new n,nd||(nd=e)}}]),n}(function(e){r(n,e);var t=a(n);function n(){return A(this,n),t.call(this)}return m(n,[{key:"supportsDOMEvents",value:function(){return!0}}]),n}(function(){return function e(){A(this,e)}}())),af=null,sf=new mi("TRANSITION_ID"),lf=[{provide:ic,useFactory:function(e,t,n){return function(){n.get(rc).donePromise.then(function(){var n=id();Array.prototype.slice.apply(t.querySelectorAll("style[ng-transition]")).filter(function(t){return t.getAttribute("ng-transition")===e}).forEach(function(e){return n.remove(e)})})}},deps:[sf,od,Fa],multi:!0}],uf=function(){function e(){A(this,e)}return m(e,[{key:"addToWindow",value:function(e){tt.getAngularTestability=function(t){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=e.findTestabilityInTree(t,n);if(null==i)throw new Error("Could not find testability for element.");return i},tt.getAllAngularTestabilities=function(){return e.getAllTestabilities()},tt.getAllAngularRootElements=function(){return e.getAllRootElements()},tt.frameworkStabilizers||(tt.frameworkStabilizers=[]),tt.frameworkStabilizers.push(function(e){var t=tt.getAllAngularTestabilities(),n=t.length,i=!1,r=function(t){i=i||t,0==--n&&e(i)};t.forEach(function(e){e.whenStable(r)})})}},{key:"findTestabilityInTree",value:function(e,t,n){if(null==t)return null;var i=e.getTestability(t);return null!=i?i:n?id().isShadowRoot(t)?this.findTestabilityInTree(e,t.host,!0):this.findTestabilityInTree(e,t.parentElement,!0):null}}],[{key:"init",value:function(){var t;t=new e,Rc=t}}]),e}(),cf=new mi("EventManagerPlugins"),df=((tf=function(){function e(t,n){var i=this;A(this,e),this._zone=n,this._eventNameToPlugin=new Map,t.forEach(function(e){return e.manager=i}),this._plugins=t.slice().reverse()}return m(e,[{key:"addEventListener",value:function(e,t,n){return this._findPluginFor(t).addEventListener(e,t,n)}},{key:"addGlobalEventListener",value:function(e,t,n){return this._findPluginFor(t).addGlobalEventListener(e,t,n)}},{key:"getZone",value:function(){return this._zone}},{key:"_findPluginFor",value:function(e){var t=this._eventNameToPlugin.get(e);if(t)return t;for(var n=this._plugins,i=0;i<n.length;i++){var r=n[i];if(r.supports(e))return this._eventNameToPlugin.set(e,r),r}throw new Error("No event manager plugin found for event "+e)}}]),e}()).\u0275fac=function(e){return new(e||tf)(Ri(cf),Ri(Ac))},tf.\u0275prov=Re({token:tf,factory:tf.\u0275fac}),tf),hf=function(){function e(t){A(this,e),this._doc=t}return m(e,[{key:"addGlobalEventListener",value:function(e,t,n){var i=id().getGlobalEventTarget(this._doc,e);if(!i)throw new Error("Unsupported event target ".concat(i," for event ").concat(t));return this.addEventListener(i,t,n)}}]),e}(),ff=((rf=function(){function e(){A(this,e),this._stylesSet=new Set}return m(e,[{key:"addStyles",value:function(e){var t=this,n=new Set;e.forEach(function(e){t._stylesSet.has(e)||(t._stylesSet.add(e),n.add(e))}),this.onStylesAdded(n)}},{key:"onStylesAdded",value:function(e){}},{key:"getAllStyles",value:function(){return Array.from(this._stylesSet)}}]),e}()).\u0275fac=function(e){return new(e||rf)},rf.\u0275prov=Re({token:rf,factory:rf.\u0275fac}),rf),pf=((nf=function(e){r(n,e);var t=a(n);function n(e){var i;return A(this,n),(i=t.call(this))._doc=e,i._hostNodes=new Set,i._styleNodes=new Set,i._hostNodes.add(e.head),i}return m(n,[{key:"_addStylesToHost",value:function(e,t){var n=this;e.forEach(function(e){var i=n._doc.createElement("style");i.textContent=e,n._styleNodes.add(t.appendChild(i))})}},{key:"addHost",value:function(e){this._addStylesToHost(this._stylesSet,e),this._hostNodes.add(e)}},{key:"removeHost",value:function(e){this._hostNodes.delete(e)}},{key:"onStylesAdded",value:function(e){var t=this;this._hostNodes.forEach(function(n){return t._addStylesToHost(e,n)})}},{key:"ngOnDestroy",value:function(){this._styleNodes.forEach(function(e){return id().remove(e)})}}]),n}(ff)).\u0275fac=function(e){return new(e||nf)(Ri(od))},nf.\u0275prov=Re({token:nf,factory:nf.\u0275fac}),nf),gf={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},vf=/%COMP%/g;function mf(e,t,n){for(var i=0;i<t.length;i++){var r=t[i];Array.isArray(r)?mf(e,r,n):(r=r.replace(vf,e),n.push(r))}return n}function yf(e){return function(t){if("__ngUnwrap__"===t)return e;!1===e(t)&&(t.preventDefault(),t.returnValue=!1)}}var bf,wf,_f,kf,xf,Af,Cf,Sf,Pf,Ef=((bf=function(){function e(t,n,i){A(this,e),this.eventManager=t,this.sharedStylesHost=n,this.appId=i,this.rendererByCompId=new Map,this.defaultRenderer=new Df(t)}return m(e,[{key:"createRenderer",value:function(e,t){if(!e||!t)return this.defaultRenderer;switch(t.encapsulation){case Xe.Emulated:var n=this.rendererByCompId.get(t.id);return n||(n=new Of(this.eventManager,this.sharedStylesHost,t,this.appId),this.rendererByCompId.set(t.id,n)),n.applyToHost(e),n;case 1:case Xe.ShadowDom:return new Mf(this.eventManager,this.sharedStylesHost,e,t);default:if(!this.rendererByCompId.has(t.id)){var i=mf(t.id,t.styles,[]);this.sharedStylesHost.addStyles(i),this.rendererByCompId.set(t.id,this.defaultRenderer)}return this.defaultRenderer}}},{key:"begin",value:function(){}},{key:"end",value:function(){}}]),e}()).\u0275fac=function(e){return new(e||bf)(Ri(df),Ri(pf),Ri(oc))},bf.\u0275prov=Re({token:bf,factory:bf.\u0275fac}),bf),Df=function(){function e(t){A(this,e),this.eventManager=t,this.data=Object.create(null)}return m(e,[{key:"destroy",value:function(){}},{key:"createElement",value:function(e,t){return t?document.createElementNS(gf[t]||t,e):document.createElement(e)}},{key:"createComment",value:function(e){return document.createComment(e)}},{key:"createText",value:function(e){return document.createTextNode(e)}},{key:"appendChild",value:function(e,t){e.appendChild(t)}},{key:"insertBefore",value:function(e,t,n){e&&e.insertBefore(t,n)}},{key:"removeChild",value:function(e,t){e&&e.removeChild(t)}},{key:"selectRootElement",value:function(e,t){var n="string"==typeof e?document.querySelector(e):e;if(!n)throw new Error('The selector "'.concat(e,'" did not match any elements'));return t||(n.textContent=""),n}},{key:"parentNode",value:function(e){return e.parentNode}},{key:"nextSibling",value:function(e){return e.nextSibling}},{key:"setAttribute",value:function(e,t,n,i){if(i){t=i+":"+t;var r=gf[i];r?e.setAttributeNS(r,t,n):e.setAttribute(t,n)}else e.setAttribute(t,n)}},{key:"removeAttribute",value:function(e,t,n){if(n){var i=gf[n];i?e.removeAttributeNS(i,t):e.removeAttribute("".concat(n,":").concat(t))}else e.removeAttribute(t)}},{key:"addClass",value:function(e,t){e.classList.add(t)}},{key:"removeClass",value:function(e,t){e.classList.remove(t)}},{key:"setStyle",value:function(e,t,n,i){i&(Fr.DashCase|Fr.Important)?e.style.setProperty(t,n,i&Fr.Important?"important":""):e.style[t]=n}},{key:"removeStyle",value:function(e,t,n){n&Fr.DashCase?e.style.removeProperty(t):e.style[t]=""}},{key:"setProperty",value:function(e,t,n){e[t]=n}},{key:"setValue",value:function(e,t){e.nodeValue=t}},{key:"listen",value:function(e,t,n){return"string"==typeof e?this.eventManager.addGlobalEventListener(e,t,yf(n)):this.eventManager.addEventListener(e,t,yf(n))}}]),e}(),Of=function(e){r(n,e);var t=a(n);function n(e,i,r,o){var a;A(this,n),(a=t.call(this,e)).component=r;var s=mf(o+"-"+r.id,r.styles,[]);return i.addStyles(s),a.contentAttr="_ngcontent-%COMP%".replace(vf,o+"-"+r.id),a.hostAttr="_nghost-%COMP%".replace(vf,o+"-"+r.id),a}return m(n,[{key:"applyToHost",value:function(e){i(c(n.prototype),"setAttribute",this).call(this,e,this.hostAttr,"")}},{key:"createElement",value:function(e,t){var r=i(c(n.prototype),"createElement",this).call(this,e,t);return i(c(n.prototype),"setAttribute",this).call(this,r,this.contentAttr,""),r}}]),n}(Df),Mf=function(e){r(n,e);var t=a(n);function n(e,i,r,o){var a;A(this,n),(a=t.call(this,e)).sharedStylesHost=i,a.hostEl=r,a.shadowRoot=r.attachShadow({mode:"open"}),a.sharedStylesHost.addHost(a.shadowRoot);for(var s=mf(o.id,o.styles,[]),l=0;l<s.length;l++){var u=document.createElement("style");u.textContent=s[l],a.shadowRoot.appendChild(u)}return a}return m(n,[{key:"nodeOrShadowRoot",value:function(e){return e===this.hostEl?this.shadowRoot:e}},{key:"destroy",value:function(){this.sharedStylesHost.removeHost(this.shadowRoot)}},{key:"appendChild",value:function(e,t){return i(c(n.prototype),"appendChild",this).call(this,this.nodeOrShadowRoot(e),t)}},{key:"insertBefore",value:function(e,t,r){return i(c(n.prototype),"insertBefore",this).call(this,this.nodeOrShadowRoot(e),t,r)}},{key:"removeChild",value:function(e,t){return i(c(n.prototype),"removeChild",this).call(this,this.nodeOrShadowRoot(e),t)}},{key:"parentNode",value:function(e){return this.nodeOrShadowRoot(i(c(n.prototype),"parentNode",this).call(this,this.nodeOrShadowRoot(e)))}}]),n}(Df),Tf=((wf=function(e){r(n,e);var t=a(n);function n(e){return A(this,n),t.call(this,e)}return m(n,[{key:"supports",value:function(e){return!0}},{key:"addEventListener",value:function(e,t,n){var i=this;return e.addEventListener(t,n,!1),function(){return i.removeEventListener(e,t,n)}}},{key:"removeEventListener",value:function(e,t,n){return e.removeEventListener(t,n)}}]),n}(hf)).\u0275fac=function(e){return new(e||wf)(Ri(od))},wf.\u0275prov=Re({token:wf,factory:wf.\u0275fac}),wf),If={pan:!0,panstart:!0,panmove:!0,panend:!0,pancancel:!0,panleft:!0,panright:!0,panup:!0,pandown:!0,pinch:!0,pinchstart:!0,pinchmove:!0,pinchend:!0,pinchcancel:!0,pinchin:!0,pinchout:!0,press:!0,pressup:!0,rotate:!0,rotatestart:!0,rotatemove:!0,rotateend:!0,rotatecancel:!0,swipe:!0,swipeleft:!0,swiperight:!0,swipeup:!0,swipedown:!0,tap:!0,doubletap:!0},Rf=new mi("HammerGestureConfig"),Lf=new mi("HammerLoader"),Ff=((_f=function(){function e(){A(this,e),this.events=[],this.overrides={}}return m(e,[{key:"buildHammer",value:function(e){var t=new Hammer(e,this.options);for(var n in t.get("pinch").set({enable:!0}),t.get("rotate").set({enable:!0}),this.overrides)t.get(n).set(this.overrides[n]);return t}}]),e}()).\u0275fac=function(e){return new(e||_f)},_f.\u0275prov=Re({token:_f,factory:_f.\u0275fac}),_f),Bf=[{provide:cf,useClass:(kf=function(e){r(n,e);var t=a(n);function n(e,i,r,o){var a;return A(this,n),(a=t.call(this,e))._config=i,a.console=r,a.loader=o,a._loaderPromise=null,a}return m(n,[{key:"supports",value:function(e){return!(!If.hasOwnProperty(e.toLowerCase())&&!this.isCustomEvent(e)||!window.Hammer&&!this.loader)}},{key:"addEventListener",value:function(e,t,n){var i=this,r=this.manager.getZone();if(t=t.toLowerCase(),!window.Hammer&&this.loader){this._loaderPromise=this._loaderPromise||this.loader();var o=!1,a=function(){o=!0};return this._loaderPromise.then(function(){window.Hammer?o||(a=i.addEventListener(e,t,n)):a=function(){}}).catch(function(){a=function(){}}),function(){a()}}return r.runOutsideAngular(function(){var o=i._config.buildHammer(e),a=function(e){r.runGuarded(function(){n(e)})};return o.on(t,a),function(){o.off(t,a),"function"==typeof o.destroy&&o.destroy()}})}},{key:"isCustomEvent",value:function(e){return this._config.events.indexOf(e)>-1}}]),n}(hf),kf.\u0275fac=function(e){return new(e||kf)(Ri(od),Ri(Rf),Ri(dc),Ri(Lf,8))},kf.\u0275prov=Re({token:kf,factory:kf.\u0275fac}),kf),multi:!0,deps:[od,Rf,dc,[new Hi,Lf]]},{provide:Rf,useClass:Ff,deps:[]}],Vf=((xf=function e(){A(this,e)}).\u0275fac=function(e){return new(e||xf)},xf.\u0275mod=mt({type:xf}),xf.\u0275inj=Fe({providers:Bf}),xf),zf=["alt","control","meta","shift"],Nf={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},Hf={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},jf={alt:function(e){return e.altKey},control:function(e){return e.ctrlKey},meta:function(e){return e.metaKey},shift:function(e){return e.shiftKey}},Uf=((Sf=function(e){r(n,e);var t=a(n);function n(e){return A(this,n),t.call(this,e)}return m(n,[{key:"supports",value:function(e){return null!=n.parseEventName(e)}},{key:"addEventListener",value:function(e,t,i){var r=n.parseEventName(t),o=n.eventCallback(r.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(function(){return id().onAndCancel(e,r.domEventName,o)})}}],[{key:"parseEventName",value:function(e){var t=e.toLowerCase().split("."),i=t.shift();if(0===t.length||"keydown"!==i&&"keyup"!==i)return null;var r=n._normalizeKey(t.pop()),o="";if(zf.forEach(function(e){var n=t.indexOf(e);n>-1&&(t.splice(n,1),o+=e+".")}),o+=r,0!=t.length||0===r.length)return null;var a={};return a.domEventName=i,a.fullKey=o,a}},{key:"getEventFullKey",value:function(e){var t="",n=function(e){var t=e.key;if(null==t){if(null==(t=e.keyIdentifier))return"Unidentified";t.startsWith("U+")&&(t=String.fromCharCode(parseInt(t.substring(2),16)),3===e.location&&Hf.hasOwnProperty(t)&&(t=Hf[t]))}return Nf[t]||t}(e);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),zf.forEach(function(i){i!=n&&(0,jf[i])(e)&&(t+=i+".")}),t+=n}},{key:"eventCallback",value:function(e,t,i){return function(r){n.getEventFullKey(r)===e&&i.runGuarded(function(){return t(r)})}}},{key:"_normalizeKey",value:function(e){switch(e){case"esc":return"escape";default:return e}}}]),n}(hf)).\u0275fac=function(e){return new(e||Sf)(Ri(od))},Sf.\u0275prov=Re({token:Sf,factory:Sf.\u0275fac}),Sf),Wf=((Cf=function e(){A(this,e)}).\u0275fac=function(e){return new(e||Cf)},Cf.\u0275prov=Re({factory:function(){return Ri(Gf)},token:Cf,providedIn:"root"}),Cf),Gf=((Af=function(e){r(n,e);var t=a(n);function n(e){var i;return A(this,n),(i=t.call(this))._doc=e,i}return m(n,[{key:"sanitize",value:function(e,t){if(null==t)return null;switch(e){case xr.NONE:return t;case xr.HTML:return Ji(t,"HTML")?Ki(t):_r(this._doc,String(t)).toString();case xr.STYLE:return Ji(t,"Style")?Ki(t):t;case xr.SCRIPT:if(Ji(t,"Script"))return Ki(t);throw new Error("unsafe value used in a script context");case xr.URL:return $i(t),Ji(t,"URL")?Ki(t):rr(String(t));case xr.RESOURCE_URL:if(Ji(t,"ResourceURL"))return Ki(t);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error("Unexpected SecurityContext ".concat(e," (see https://g.co/ng/security#xss)"))}}},{key:"bypassSecurityTrustHtml",value:function(e){return new qi(e)}},{key:"bypassSecurityTrustStyle",value:function(e){return new Yi(e)}},{key:"bypassSecurityTrustScript",value:function(e){return new Zi(e)}},{key:"bypassSecurityTrustUrl",value:function(e){return new Qi(e)}},{key:"bypassSecurityTrustResourceUrl",value:function(e){return new Xi(e)}}]),n}(Wf)).\u0275fac=function(e){return new(e||Af)(Ri(od))},Af.\u0275prov=Re({factory:function(){return e=Ri(wa),new Gf(e.get(od));var e},token:Af,providedIn:"root"}),Af),qf=Nc(Jc,"browser",[{provide:uc,useValue:"browser"},{provide:lc,useValue:function(){of.makeCurrent(),uf.init()},multi:!0},{provide:od,useFactory:function(){return function(e){Ft=e}(document),document},deps:[]}]),Yf=[[],{provide:ka,useValue:"root"},{provide:Or,useFactory:function(){return new Or},deps:[]},{provide:cf,useClass:Tf,multi:!0,deps:[od,Ac,uc]},{provide:cf,useClass:Uf,multi:!0,deps:[od]},[],{provide:Ef,useClass:Ef,deps:[df,pf,oc]},{provide:Pl,useExisting:Ef},{provide:ff,useExisting:pf},{provide:pf,useClass:pf,deps:[od]},{provide:Tc,useClass:Tc,deps:[Ac]},{provide:df,useClass:df,deps:[cf,Ac]},[]],Zf=((Pf=function(){function e(t){if(A(this,e),t)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}return m(e,null,[{key:"withServerTransition",value:function(t){return{ngModule:e,providers:[{provide:oc,useValue:t.appId},{provide:sf,useExisting:oc},lf]}}}]),e}()).\u0275fac=function(e){return new(e||Pf)(Ri(Pf,12))},Pf.\u0275mod=mt({type:Pf}),Pf.\u0275inj=Fe({providers:Yf,imports:[Zh,ed]}),Pf);"undefined"!=typeof window&&window;var Qf=function e(){A(this,e)};function Xf(e,t){return{type:7,name:e,definitions:t,options:{}}}function Kf(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:4,styles:t,timings:e}}function Jf(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:2,steps:e,options:t}}function $f(e){return{type:6,styles:e,offset:null}}function ep(e,t,n){return{type:0,name:e,styles:t,options:n}}function tp(e){return{type:5,steps:e}}function np(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:1,expr:e,animation:t,options:n}}function ip(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return{type:9,options:e}}function rp(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:11,selector:e,animation:t,options:n}}function op(e){Promise.resolve(null).then(e)}var ap=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;A(this,e),this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=t+n}return m(e,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[])}},{key:"onStart",value:function(e){this._onStartFns.push(e)}},{key:"onDone",value:function(e){this._onDoneFns.push(e)}},{key:"onDestroy",value:function(e){this._onDestroyFns.push(e)}},{key:"hasStarted",value:function(){return this._started}},{key:"init",value:function(){}},{key:"play",value:function(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}},{key:"triggerMicrotask",value:function(){var e=this;op(function(){return e._onFinish()})}},{key:"_onStart",value:function(){this._onStartFns.forEach(function(e){return e()}),this._onStartFns=[]}},{key:"pause",value:function(){}},{key:"restart",value:function(){}},{key:"finish",value:function(){this._onFinish()}},{key:"destroy",value:function(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(function(e){return e()}),this._onDestroyFns=[])}},{key:"reset",value:function(){}},{key:"setPosition",value:function(e){this._position=this.totalTime?e*this.totalTime:1}},{key:"getPosition",value:function(){return this.totalTime?this._position/this.totalTime:1}},{key:"triggerCallback",value:function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(function(e){return e()}),t.length=0}}]),e}(),sp=function(){function e(t){var n=this;A(this,e),this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;var i=0,r=0,o=0,a=this.players.length;0==a?op(function(){return n._onFinish()}):this.players.forEach(function(e){e.onDone(function(){++i==a&&n._onFinish()}),e.onDestroy(function(){++r==a&&n._onDestroy()}),e.onStart(function(){++o==a&&n._onStart()})}),this.totalTime=this.players.reduce(function(e,t){return Math.max(e,t.totalTime)},0)}return m(e,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[])}},{key:"init",value:function(){this.players.forEach(function(e){return e.init()})}},{key:"onStart",value:function(e){this._onStartFns.push(e)}},{key:"_onStart",value:function(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(function(e){return e()}),this._onStartFns=[])}},{key:"onDone",value:function(e){this._onDoneFns.push(e)}},{key:"onDestroy",value:function(e){this._onDestroyFns.push(e)}},{key:"hasStarted",value:function(){return this._started}},{key:"play",value:function(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(function(e){return e.play()})}},{key:"pause",value:function(){this.players.forEach(function(e){return e.pause()})}},{key:"restart",value:function(){this.players.forEach(function(e){return e.restart()})}},{key:"finish",value:function(){this._onFinish(),this.players.forEach(function(e){return e.finish()})}},{key:"destroy",value:function(){this._onDestroy()}},{key:"_onDestroy",value:function(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(function(e){return e.destroy()}),this._onDestroyFns.forEach(function(e){return e()}),this._onDestroyFns=[])}},{key:"reset",value:function(){this.players.forEach(function(e){return e.reset()}),this._destroyed=!1,this._finished=!1,this._started=!1}},{key:"setPosition",value:function(e){var t=e*this.totalTime;this.players.forEach(function(e){var n=e.totalTime?Math.min(1,t/e.totalTime):1;e.setPosition(n)})}},{key:"getPosition",value:function(){var e=this.players.reduce(function(e,t){return null===e||t.totalTime>e.totalTime?t:e},null);return null!=e?e.getPosition():0}},{key:"beforeDestroy",value:function(){this.players.forEach(function(e){e.beforeDestroy&&e.beforeDestroy()})}},{key:"triggerCallback",value:function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(function(e){return e()}),t.length=0}}]),e}();function lp(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function up(e){switch(e.length){case 0:return new ap;case 1:return e[0];default:return new sp(e)}}function cp(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},a=[],s=[],l=-1,u=null;if(i.forEach(function(e){var n=e.offset,i=n==l,c=i&&u||{};Object.keys(e).forEach(function(n){var i=n,s=e[n];if("offset"!==n)switch(i=t.normalizePropertyName(i,a),s){case"!":s=r[n];break;case"*":s=o[n];break;default:s=t.normalizeStyleValue(n,i,s,a)}c[i]=s}),i||s.push(c),u=c,l=n}),a.length){var c="\n - ";throw new Error("Unable to animate due to the following errors:".concat(c).concat(a.join(c)))}return s}function dp(e,t,n,i){switch(t){case"start":e.onStart(function(){return i(n&&hp(n,"start",e))});break;case"done":e.onDone(function(){return i(n&&hp(n,"done",e))});break;case"destroy":e.onDestroy(function(){return i(n&&hp(n,"destroy",e))})}}function hp(e,t,n){var i=n.totalTime,r=fp(e.element,e.triggerName,e.fromState,e.toState,t||e.phaseName,null==i?e.totalTime:i,!!n.disabled),o=e._data;return null!=o&&(r._data=o),r}function fp(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,a=arguments.length>6?arguments[6]:void 0;return{element:e,triggerName:t,fromState:n,toState:i,phaseName:r,totalTime:o,disabled:!!a}}function pp(e,t,n){var i;return e instanceof Map?(i=e.get(t))||e.set(t,i=n):(i=e[t])||(i=e[t]=n),i}function gp(e){var t=e.indexOf(":");return[e.substring(1,t),e.substr(t+1)]}var vp=function(e,t){return!1},mp=function(e,t){return!1},yp=function(e,t,n){return[]},bp=lp();(bp||"undefined"!=typeof Element)&&(vp=function(e,t){return e.contains(t)},mp=function(){if(bp||Element.prototype.matches)return function(e,t){return e.matches(t)};var e=Element.prototype,t=e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector;return t?function(e,n){return t.apply(e,[n])}:mp}(),yp=function(e,t,n){var i=[];if(n)for(var r=e.querySelectorAll(t),o=0;o<r.length;o++)i.push(r[o]);else{var a=e.querySelector(t);a&&i.push(a)}return i});var wp=null,_p=!1;function kp(e){wp||(wp=("undefined"!=typeof document?document.body:null)||{},_p=!!wp.style&&"WebkitAppearance"in wp.style);var t=!0;return wp.style&&!function(e){return"ebkit"==e.substring(1,6)}(e)&&(!(t=e in wp.style)&&_p)&&(t="Webkit"+e.charAt(0).toUpperCase()+e.substr(1)in wp.style),t}var xp=mp,Ap=vp,Cp=yp;function Sp(e){var t={};return Object.keys(e).forEach(function(n){var i=n.replace(/([a-z])([A-Z])/g,"$1-$2");t[i]=e[n]}),t}var Pp,Ep=((Pp=function(){function e(){A(this,e)}return m(e,[{key:"validateStyleProperty",value:function(e){return kp(e)}},{key:"matchesElement",value:function(e,t){return xp(e,t)}},{key:"containsElement",value:function(e,t){return Ap(e,t)}},{key:"query",value:function(e,t,n){return Cp(e,t,n)}},{key:"computeStyle",value:function(e,t,n){return n||""}},{key:"animate",value:function(e,t,n,i,r){return new ap(n,i)}}]),e}()).\u0275fac=function(e){return new(e||Pp)},Pp.\u0275prov=Re({token:Pp,factory:Pp.\u0275fac}),Pp),Dp=function(){var e=function e(){A(this,e)};return e.NOOP=new Ep,e}();function Op(e){if("number"==typeof e)return e;var t=e.match(/^(-?[\.\d]+)(m?s)/);return!t||t.length<2?0:Mp(parseFloat(t[1]),t[2])}function Mp(e,t){switch(t){case"s":return 1e3*e;default:return e}}function Tp(e,t,n){return e.hasOwnProperty("duration")?e:function(e,t,n){var i,r=0,o="";if("string"==typeof e){var a=e.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===a)return t.push('The provided timing value "'.concat(e,'" is invalid.')),{duration:0,delay:0,easing:""};i=Mp(parseFloat(a[1]),a[2]);var s=a[3];null!=s&&(r=Mp(parseFloat(s),a[4]));var l=a[5];l&&(o=l)}else i=e;if(!n){var u=!1,c=t.length;i<0&&(t.push("Duration values below 0 are not allowed for this animation step."),u=!0),r<0&&(t.push("Delay values below 0 are not allowed for this animation step."),u=!0),u&&t.splice(c,0,'The provided timing value "'.concat(e,'" is invalid.'))}return{duration:i,delay:r,easing:o}}(e,t,n)}function Ip(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).forEach(function(n){t[n]=e[n]}),t}function Rp(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(t)for(var i in e)n[i]=e[i];else Ip(e,n);return n}function Lp(e,t,n){return n?t+":"+n+";":""}function Fp(e){for(var t="",n=0;n<e.style.length;n++){var i=e.style.item(n);t+=Lp(0,i,e.style.getPropertyValue(i))}for(var r in e.style)e.style.hasOwnProperty(r)&&!r.startsWith("_")&&(t+=Lp(0,r.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),e.style[r]));e.setAttribute("style",t)}function Bp(e,t,n){e.style&&(Object.keys(t).forEach(function(i){var r=Gp(i);n&&!n.hasOwnProperty(i)&&(n[i]=e.style[r]),e.style[r]=t[i]}),lp()&&Fp(e))}function Vp(e,t){e.style&&(Object.keys(t).forEach(function(t){var n=Gp(t);e.style[n]=""}),lp()&&Fp(e))}function zp(e){return Array.isArray(e)?1==e.length?e[0]:Jf(e):e}var Np=new RegExp("{{\\s*(.+?)\\s*}}","g");function Hp(e){var t=[];if("string"==typeof e){for(var n;n=Np.exec(e);)t.push(n[1]);Np.lastIndex=0}return t}function jp(e,t,n){var i=e.toString(),r=i.replace(Np,function(e,i){var r=t[i];return t.hasOwnProperty(i)||(n.push("Please provide a value for the animation param "+i),r=""),r.toString()});return r==i?e:r}function Up(e){for(var t=[],n=e.next();!n.done;)t.push(n.value),n=e.next();return t}var Wp=/-+([a-z0-9])/g;function Gp(e){return e.replace(Wp,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t[1].toUpperCase()})}function qp(e,t){return 0===e||0===t}function Yp(e,t,n){var i=Object.keys(n);if(i.length&&t.length){var r=t[0],o=[];if(i.forEach(function(e){r.hasOwnProperty(e)||o.push(e),r[e]=n[e]}),o.length)for(var a=function(){var n=t[s];o.forEach(function(t){n[t]=Qp(e,t)})},s=1;s<t.length;s++)a()}return t}function Zp(e,t,n){switch(t.type){case 7:return e.visitTrigger(t,n);case 0:return e.visitState(t,n);case 1:return e.visitTransition(t,n);case 2:return e.visitSequence(t,n);case 3:return e.visitGroup(t,n);case 4:return e.visitAnimate(t,n);case 5:return e.visitKeyframes(t,n);case 6:return e.visitStyle(t,n);case 8:return e.visitReference(t,n);case 9:return e.visitAnimateChild(t,n);case 10:return e.visitAnimateRef(t,n);case 11:return e.visitQuery(t,n);case 12:return e.visitStagger(t,n);default:throw new Error("Unable to resolve animation metadata node #"+t.type)}}function Qp(e,t){return window.getComputedStyle(e)[t]}var Xp=new Set(["true","1"]),Kp=new Set(["false","0"]);function Jp(e,t){var n=Xp.has(e)||Kp.has(e),i=Xp.has(t)||Kp.has(t);return function(r,o){var a="*"==e||e==r,s="*"==t||t==o;return!a&&n&&"boolean"==typeof r&&(a=r?Xp.has(e):Kp.has(e)),!s&&i&&"boolean"==typeof o&&(s=o?Xp.has(t):Kp.has(t)),a&&s}}var $p=new RegExp("s*:selfs*,?","g");function eg(e,t,n){return new tg(e).build(t,n)}var tg=function(){function e(t){A(this,e),this._driver=t}return m(e,[{key:"build",value:function(e,t){var n=new ng(t);return this._resetContextStyleTimingState(n),Zp(this,zp(e),n)}},{key:"_resetContextStyleTimingState",value:function(e){e.currentQuerySelector="",e.collectedStyles={},e.collectedStyles[""]={},e.currentTime=0}},{key:"visitTrigger",value:function(e,t){var n=this,i=t.queryCount=0,r=t.depCount=0,o=[],a=[];return"@"==e.name.charAt(0)&&t.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),e.definitions.forEach(function(e){if(n._resetContextStyleTimingState(t),0==e.type){var s=e,l=s.name;l.toString().split(/\s*,\s*/).forEach(function(e){s.name=e,o.push(n.visitState(s,t))}),s.name=l}else if(1==e.type){var u=n.visitTransition(e,t);i+=u.queryCount,r+=u.depCount,a.push(u)}else t.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:e.name,states:o,transitions:a,queryCount:i,depCount:r,options:null}}},{key:"visitState",value:function(e,t){var n=this.visitStyle(e.styles,t),i=e.options&&e.options.params||null;if(n.containsDynamicStyles){var r=new Set,o=i||{};if(n.styles.forEach(function(e){if(ig(e)){var t=e;Object.keys(t).forEach(function(e){Hp(t[e]).forEach(function(e){o.hasOwnProperty(e)||r.add(e)})})}}),r.size){var a=Up(r.values());t.errors.push('state("'.concat(e.name,'", ...) must define default values for all the following style substitutions: ').concat(a.join(", ")))}}return{type:0,name:e.name,style:n,options:i?{params:i}:null}}},{key:"visitTransition",value:function(e,t){t.queryCount=0,t.depCount=0;var n,i,r,o=Zp(this,zp(e.animation),t);return{type:1,matchers:(n=e.expr,i=t.errors,r=[],"string"==typeof n?n.split(/\s*,\s*/).forEach(function(e){return function(e,t,n){if(":"==e[0]){var i=function(e,t){switch(e){case":enter":return"void => *";case":leave":return"* => void";case":increment":return function(e,t){return parseFloat(t)>parseFloat(e)};case":decrement":return function(e,t){return parseFloat(t)<parseFloat(e)};default:return t.push('The transition alias value "'.concat(e,'" is not supported')),"* => *"}}(e,n);if("function"==typeof i)return void t.push(i);e=i}var r=e.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==r||r.length<4)return n.push('The provided transition expression "'.concat(e,'" is not supported')),t;var o=r[1],a=r[2],s=r[3];t.push(Jp(o,s)),"<"!=a[0]||"*"==o&&"*"==s||t.push(Jp(s,o))}(e,r,i)}):r.push(n),r),animation:o,queryCount:t.queryCount,depCount:t.depCount,options:rg(e.options)}}},{key:"visitSequence",value:function(e,t){var n=this;return{type:2,steps:e.steps.map(function(e){return Zp(n,e,t)}),options:rg(e.options)}}},{key:"visitGroup",value:function(e,t){var n=this,i=t.currentTime,r=0,o=e.steps.map(function(e){t.currentTime=i;var o=Zp(n,e,t);return r=Math.max(r,t.currentTime),o});return t.currentTime=r,{type:3,steps:o,options:rg(e.options)}}},{key:"visitAnimate",value:function(e,t){var n,i=function(e,t){var n=null;if(e.hasOwnProperty("duration"))n=e;else if("number"==typeof e)return og(Tp(e,t).duration,0,"");var i=e;if(i.split(/\s+/).some(function(e){return"{"==e.charAt(0)&&"{"==e.charAt(1)})){var r=og(0,0,"");return r.dynamic=!0,r.strValue=i,r}return og((n=n||Tp(i,t)).duration,n.delay,n.easing)}(e.timings,t.errors);t.currentAnimateTimings=i;var r=e.styles?e.styles:$f({});if(5==r.type)n=this.visitKeyframes(r,t);else{var o=e.styles,a=!1;if(!o){a=!0;var s={};i.easing&&(s.easing=i.easing),o=$f(s)}t.currentTime+=i.duration+i.delay;var l=this.visitStyle(o,t);l.isEmptyStep=a,n=l}return t.currentAnimateTimings=null,{type:4,timings:i,style:n,options:null}}},{key:"visitStyle",value:function(e,t){var n=this._makeStyleAst(e,t);return this._validateStyleAst(n,t),n}},{key:"_makeStyleAst",value:function(e,t){var n=[];Array.isArray(e.styles)?e.styles.forEach(function(e){"string"==typeof e?"*"==e?n.push(e):t.errors.push("The provided style string value ".concat(e," is not allowed.")):n.push(e)}):n.push(e.styles);var i=!1,r=null;return n.forEach(function(e){if(ig(e)){var t=e,n=t.easing;if(n&&(r=n,delete t.easing),!i)for(var o in t)if(t[o].toString().indexOf("{{")>=0){i=!0;break}}}),{type:6,styles:n,easing:r,offset:e.offset,containsDynamicStyles:i,options:null}}},{key:"_validateStyleAst",value:function(e,t){var n=this,i=t.currentAnimateTimings,r=t.currentTime,o=t.currentTime;i&&o>0&&(o-=i.duration+i.delay),e.styles.forEach(function(e){"string"!=typeof e&&Object.keys(e).forEach(function(i){if(n._driver.validateStyleProperty(i)){var a,s,l,u,c,d=t.collectedStyles[t.currentQuerySelector],h=d[i],f=!0;h&&(o!=r&&o>=h.startTime&&r<=h.endTime&&(t.errors.push('The CSS property "'.concat(i,'" that exists between the times of "').concat(h.startTime,'ms" and "').concat(h.endTime,'ms" is also being animated in a parallel animation between the times of "').concat(o,'ms" and "').concat(r,'ms"')),f=!1),o=h.startTime),f&&(d[i]={startTime:o,endTime:r}),t.options&&(a=e[i],s=t.options,l=t.errors,u=s.params||{},(c=Hp(a)).length&&c.forEach(function(e){u.hasOwnProperty(e)||l.push("Unable to resolve the local animation param ".concat(e," in the given list of values"))}))}else t.errors.push('The provided animation property "'.concat(i,'" is not a supported CSS property for animations'))})})}},{key:"visitKeyframes",value:function(e,t){var n=this,i={type:5,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push("keyframes() must be placed inside of a call to animate()"),i;var r=0,o=[],a=!1,s=!1,l=0,u=e.steps.map(function(e){var i=n._makeStyleAst(e,t),u=null!=i.offset?i.offset:function(e){if("string"==typeof e)return null;var t=null;if(Array.isArray(e))e.forEach(function(e){if(ig(e)&&e.hasOwnProperty("offset")){var n=e;t=parseFloat(n.offset),delete n.offset}});else if(ig(e)&&e.hasOwnProperty("offset")){var n=e;t=parseFloat(n.offset),delete n.offset}return t}(i.styles),c=0;return null!=u&&(r++,c=i.offset=u),s=s||c<0||c>1,a=a||c<l,l=c,o.push(c),i});s&&t.errors.push("Please ensure that all keyframe offsets are between 0 and 1"),a&&t.errors.push("Please ensure that all keyframe offsets are in order");var c=e.steps.length,d=0;r>0&&r<c?t.errors.push("Not all style() steps within the declared keyframes() contain offsets"):0==r&&(d=1/(c-1));var h=c-1,f=t.currentTime,p=t.currentAnimateTimings,g=p.duration;return u.forEach(function(e,r){var a=d>0?r==h?1:d*r:o[r],s=a*g;t.currentTime=f+p.delay+s,p.duration=s,n._validateStyleAst(e,t),e.offset=a,i.styles.push(e)}),i}},{key:"visitReference",value:function(e,t){return{type:8,animation:Zp(this,zp(e.animation),t),options:rg(e.options)}}},{key:"visitAnimateChild",value:function(e,t){return t.depCount++,{type:9,options:rg(e.options)}}},{key:"visitAnimateRef",value:function(e,t){return{type:10,animation:this.visitReference(e.animation,t),options:rg(e.options)}}},{key:"visitQuery",value:function(e,t){var n=t.currentQuerySelector,i=e.options||{};t.queryCount++,t.currentQuery=e;var r=f(function(e){var t=!!e.split(/\s*,\s*/).find(function(e){return":self"==e});return t&&(e=e.replace($p,"")),[e=e.replace(/@\*/g,".ng-trigger").replace(/@\w+/g,function(e){return".ng-trigger-"+e.substr(1)}).replace(/:animating/g,".ng-animating"),t]}(e.selector),2),o=r[0],a=r[1];t.currentQuerySelector=n.length?n+" "+o:o,pp(t.collectedStyles,t.currentQuerySelector,{});var s=Zp(this,zp(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=n,{type:11,selector:o,limit:i.limit||0,optional:!!i.optional,includeSelf:a,animation:s,originalSelector:e.selector,options:rg(e.options)}}},{key:"visitStagger",value:function(e,t){t.currentQuery||t.errors.push("stagger() can only be used inside of query()");var n="full"===e.timings?{duration:0,delay:0,easing:"full"}:Tp(e.timings,t.errors,!0);return{type:12,animation:Zp(this,zp(e.animation),t),timings:n,options:null}}}]),e}(),ng=function e(t){A(this,e),this.errors=t,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null};function ig(e){return!Array.isArray(e)&&"object"==typeof e}function rg(e){var t;return e?(e=Ip(e)).params&&(e.params=(t=e.params)?Ip(t):null):e={},e}function og(e,t,n){return{duration:e,delay:t,easing:n}}function ag(e,t,n,i,r,o){var a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,s=arguments.length>7&&void 0!==arguments[7]&&arguments[7];return{type:1,element:e,keyframes:t,preStyleProps:n,postStyleProps:i,duration:r,delay:o,totalTime:r+o,easing:a,subTimeline:s}}var sg=function(){function e(){A(this,e),this._map=new Map}return m(e,[{key:"consume",value:function(e){var t=this._map.get(e);return t?this._map.delete(e):t=[],t}},{key:"append",value:function(e,t){var n,i=this._map.get(e);i||this._map.set(e,i=[]),(n=i).push.apply(n,y(t))}},{key:"has",value:function(e){return this._map.has(e)}},{key:"clear",value:function(){this._map.clear()}}]),e}(),lg=new RegExp(":enter","g"),ug=new RegExp(":leave","g");function cg(e,t,n,i,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:{},s=arguments.length>7?arguments[7]:void 0,l=arguments.length>8?arguments[8]:void 0,u=arguments.length>9&&void 0!==arguments[9]?arguments[9]:[];return(new dg).buildKeyframes(e,t,n,i,r,o,a,s,l,u)}var dg=function(){function e(){A(this,e)}return m(e,[{key:"buildKeyframes",value:function(e,t,n,i,r,o,a,s,l){var u=arguments.length>9&&void 0!==arguments[9]?arguments[9]:[];l=l||new sg;var c=new fg(e,t,l,i,r,u,[]);c.options=s,c.currentTimeline.setStyles([o],null,c.errors,s),Zp(this,n,c);var d=c.timelines.filter(function(e){return e.containsAnimation()});if(d.length&&Object.keys(a).length){var h=d[d.length-1];h.allowOnlyTimelineStyles()||h.setStyles([a],null,c.errors,s)}return d.length?d.map(function(e){return e.buildKeyframes()}):[ag(t,[],[],[],0,0,"",!1)]}},{key:"visitTrigger",value:function(e,t){}},{key:"visitState",value:function(e,t){}},{key:"visitTransition",value:function(e,t){}},{key:"visitAnimateChild",value:function(e,t){var n=t.subInstructions.consume(t.element);if(n){var i=t.createSubContext(e.options),r=t.currentTimeline.currentTime,o=this._visitSubInstructions(n,i,i.options);r!=o&&t.transformIntoNewTimeline(o)}t.previousNode=e}},{key:"visitAnimateRef",value:function(e,t){var n=t.createSubContext(e.options);n.transformIntoNewTimeline(),this.visitReference(e.animation,n),t.transformIntoNewTimeline(n.currentTimeline.currentTime),t.previousNode=e}},{key:"_visitSubInstructions",value:function(e,t,n){var i=t.currentTimeline.currentTime,r=null!=n.duration?Op(n.duration):null,o=null!=n.delay?Op(n.delay):null;return 0!==r&&e.forEach(function(e){var n=t.appendInstructionToTimeline(e,r,o);i=Math.max(i,n.duration+n.delay)}),i}},{key:"visitReference",value:function(e,t){t.updateOptions(e.options,!0),Zp(this,e.animation,t),t.previousNode=e}},{key:"visitSequence",value:function(e,t){var n=this,i=t.subContextCount,r=t,o=e.options;if(o&&(o.params||o.delay)&&((r=t.createSubContext(o)).transformIntoNewTimeline(),null!=o.delay)){6==r.previousNode.type&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=hg);var a=Op(o.delay);r.delayNextStep(a)}e.steps.length&&(e.steps.forEach(function(e){return Zp(n,e,r)}),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>i&&r.transformIntoNewTimeline()),t.previousNode=e}},{key:"visitGroup",value:function(e,t){var n=this,i=[],r=t.currentTimeline.currentTime,o=e.options&&e.options.delay?Op(e.options.delay):0;e.steps.forEach(function(a){var s=t.createSubContext(e.options);o&&s.delayNextStep(o),Zp(n,a,s),r=Math.max(r,s.currentTimeline.currentTime),i.push(s.currentTimeline)}),i.forEach(function(e){return t.currentTimeline.mergeTimelineCollectedStyles(e)}),t.transformIntoNewTimeline(r),t.previousNode=e}},{key:"_visitTiming",value:function(e,t){if(e.dynamic){var n=e.strValue;return Tp(t.params?jp(n,t.params,t.errors):n,t.errors)}return{duration:e.duration,delay:e.delay,easing:e.easing}}},{key:"visitAnimate",value:function(e,t){var n=t.currentAnimateTimings=this._visitTiming(e.timings,t),i=t.currentTimeline;n.delay&&(t.incrementTime(n.delay),i.snapshotCurrentStyles());var r=e.style;5==r.type?this.visitKeyframes(r,t):(t.incrementTime(n.duration),this.visitStyle(r,t),i.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e}},{key:"visitStyle",value:function(e,t){var n=t.currentTimeline,i=t.currentAnimateTimings;!i&&n.getCurrentStyleProperties().length&&n.forwardFrame();var r=i&&i.easing||e.easing;e.isEmptyStep?n.applyEmptyStep(r):n.setStyles(e.styles,r,t.errors,t.options),t.previousNode=e}},{key:"visitKeyframes",value:function(e,t){var n=t.currentAnimateTimings,i=t.currentTimeline.duration,r=n.duration,o=t.createSubContext().currentTimeline;o.easing=n.easing,e.styles.forEach(function(e){o.forwardTime((e.offset||0)*r),o.setStyles(e.styles,e.easing,t.errors,t.options),o.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(o),t.transformIntoNewTimeline(i+r),t.previousNode=e}},{key:"visitQuery",value:function(e,t){var n=this,i=t.currentTimeline.currentTime,r=e.options||{},o=r.delay?Op(r.delay):0;o&&(6===t.previousNode.type||0==i&&t.currentTimeline.getCurrentStyleProperties().length)&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=hg);var a=i,s=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!r.optional,t.errors);t.currentQueryTotal=s.length;var l=null;s.forEach(function(i,r){t.currentQueryIndex=r;var s=t.createSubContext(e.options,i);o&&s.delayNextStep(o),i===t.element&&(l=s.currentTimeline),Zp(n,e.animation,s),s.currentTimeline.applyStylesToKeyframe(),a=Math.max(a,s.currentTimeline.currentTime)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(a),l&&(t.currentTimeline.mergeTimelineCollectedStyles(l),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e}},{key:"visitStagger",value:function(e,t){var n=t.parentContext,i=t.currentTimeline,r=e.timings,o=Math.abs(r.duration),a=o*(t.currentQueryTotal-1),s=o*t.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":s=a-s;break;case"full":s=n.currentStaggerTime}var l=t.currentTimeline;s&&l.delayNextStep(s);var u=l.currentTime;Zp(this,e.animation,t),t.previousNode=e,n.currentStaggerTime=i.currentTime-u+(i.startTime-n.currentTimeline.startTime)}}]),e}(),hg={},fg=function(){function e(t,n,i,r,o,a,s,l){A(this,e),this._driver=t,this.element=n,this.subInstructions=i,this._enterClassName=r,this._leaveClassName=o,this.errors=a,this.timelines=s,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=hg,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new pg(this._driver,n,0),s.push(this.currentTimeline)}return m(e,[{key:"params",get:function(){return this.options.params}},{key:"updateOptions",value:function(e,t){var n=this;if(e){var i=e,r=this.options;null!=i.duration&&(r.duration=Op(i.duration)),null!=i.delay&&(r.delay=Op(i.delay));var o=i.params;if(o){var a=r.params;a||(a=this.options.params={}),Object.keys(o).forEach(function(e){t&&a.hasOwnProperty(e)||(a[e]=jp(o[e],a,n.errors))})}}}},{key:"_copyOptions",value:function(){var e={};if(this.options){var t=this.options.params;if(t){var n=e.params={};Object.keys(t).forEach(function(e){n[e]=t[e]})}}return e}},{key:"createSubContext",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1?arguments[1]:void 0,i=arguments.length>2?arguments[2]:void 0,r=n||this.element,o=new e(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,i||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(t),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o}},{key:"transformIntoNewTimeline",value:function(e){return this.previousNode=hg,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}},{key:"appendInstructionToTimeline",value:function(e,t,n){var i={duration:null!=t?t:e.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+e.delay,easing:""},r=new gg(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,i,e.stretchStartingKeyframe);return this.timelines.push(r),i}},{key:"incrementTime",value:function(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}},{key:"delayNextStep",value:function(e){e>0&&this.currentTimeline.delayNextStep(e)}},{key:"invokeQuery",value:function(e,t,n,i,r,o){var a=[];if(i&&a.push(this.element),e.length>0){e=(e=e.replace(lg,"."+this._enterClassName)).replace(ug,"."+this._leaveClassName);var s=this._driver.query(this.element,e,1!=n);0!==n&&(s=n<0?s.slice(s.length+n,s.length):s.slice(0,n)),a.push.apply(a,y(s))}return r||0!=a.length||o.push('`query("'.concat(t,'")` returned zero elements. (Use `query("').concat(t,'", { optional: true })` if you wish to allow this.)')),a}}]),e}(),pg=function(){function e(t,n,i,r){A(this,e),this._driver=t,this.element=n,this.startTime=i,this._elementTimelineStylesLookup=r,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(n),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(n,this._localTimelineStyles)),this._loadKeyframe()}return m(e,[{key:"containsAnimation",value:function(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}},{key:"getCurrentStyleProperties",value:function(){return Object.keys(this._currentKeyframe)}},{key:"currentTime",get:function(){return this.startTime+this.duration}},{key:"delayNextStep",value:function(e){var t=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e}},{key:"fork",value:function(t,n){return this.applyStylesToKeyframe(),new e(this._driver,t,n||this.currentTime,this._elementTimelineStylesLookup)}},{key:"_loadKeyframe",value:function(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}},{key:"forwardFrame",value:function(){this.duration+=1,this._loadKeyframe()}},{key:"forwardTime",value:function(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}},{key:"_updateStyle",value:function(e,t){this._localTimelineStyles[e]=t,this._globalTimelineStyles[e]=t,this._styleSummary[e]={time:this.currentTime,value:t}}},{key:"allowOnlyTimelineStyles",value:function(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}},{key:"applyEmptyStep",value:function(e){var t=this;e&&(this._previousKeyframe.easing=e),Object.keys(this._globalTimelineStyles).forEach(function(e){t._backFill[e]=t._globalTimelineStyles[e]||"*",t._currentKeyframe[e]="*"}),this._currentEmptyStepKeyframe=this._currentKeyframe}},{key:"setStyles",value:function(e,t,n,i){var r=this;t&&(this._previousKeyframe.easing=t);var o=i&&i.params||{},a=function(e,t){var n,i={};return e.forEach(function(e){"*"===e?(n=n||Object.keys(t)).forEach(function(e){i[e]="*"}):Rp(e,!1,i)}),i}(e,this._globalTimelineStyles);Object.keys(a).forEach(function(e){var t=jp(a[e],o,n);r._pendingStyles[e]=t,r._localTimelineStyles.hasOwnProperty(e)||(r._backFill[e]=r._globalTimelineStyles.hasOwnProperty(e)?r._globalTimelineStyles[e]:"*"),r._updateStyle(e,t)})}},{key:"applyStylesToKeyframe",value:function(){var e=this,t=this._pendingStyles,n=Object.keys(t);0!=n.length&&(this._pendingStyles={},n.forEach(function(n){e._currentKeyframe[n]=t[n]}),Object.keys(this._localTimelineStyles).forEach(function(t){e._currentKeyframe.hasOwnProperty(t)||(e._currentKeyframe[t]=e._localTimelineStyles[t])}))}},{key:"snapshotCurrentStyles",value:function(){var e=this;Object.keys(this._localTimelineStyles).forEach(function(t){var n=e._localTimelineStyles[t];e._pendingStyles[t]=n,e._updateStyle(t,n)})}},{key:"getFinalKeyframe",value:function(){return this._keyframes.get(this.duration)}},{key:"properties",get:function(){var e=[];for(var t in this._currentKeyframe)e.push(t);return e}},{key:"mergeTimelineCollectedStyles",value:function(e){var t=this;Object.keys(e._styleSummary).forEach(function(n){var i=t._styleSummary[n],r=e._styleSummary[n];(!i||r.time>i.time)&&t._updateStyle(n,r.value)})}},{key:"buildKeyframes",value:function(){var e=this;this.applyStylesToKeyframe();var t=new Set,n=new Set,i=1===this._keyframes.size&&0===this.duration,r=[];this._keyframes.forEach(function(o,a){var s=Rp(o,!0);Object.keys(s).forEach(function(e){var i=s[e];"!"==i?t.add(e):"*"==i&&n.add(e)}),i||(s.offset=a/e.duration),r.push(s)});var o=t.size?Up(t.values()):[],a=n.size?Up(n.values()):[];if(i){var s=r[0],l=Ip(s);s.offset=0,l.offset=1,r=[s,l]}return ag(this.element,r,o,a,this.duration,this.startTime,this.easing,!1)}}]),e}(),gg=function(e){r(n,e);var t=a(n);function n(e,i,r,o,a,s){var l,u=arguments.length>6&&void 0!==arguments[6]&&arguments[6];return A(this,n),(l=t.call(this,e,i,s.delay)).element=i,l.keyframes=r,l.preStyleProps=o,l.postStyleProps=a,l._stretchStartingKeyframe=u,l.timings={duration:s.duration,delay:s.delay,easing:s.easing},l}return m(n,[{key:"containsAnimation",value:function(){return this.keyframes.length>1}},{key:"buildKeyframes",value:function(){var e=this.keyframes,t=this.timings,n=t.delay,i=t.duration,r=t.easing;if(this._stretchStartingKeyframe&&n){var o=[],a=i+n,s=n/a,l=Rp(e[0],!1);l.offset=0,o.push(l);var u=Rp(e[0],!1);u.offset=vg(s),o.push(u);for(var c=e.length-1,d=1;d<=c;d++){var h=Rp(e[d],!1);h.offset=vg((n+h.offset*i)/a),o.push(h)}i=a,n=0,r="",e=o}return ag(this.element,e,this.preStyleProps,this.postStyleProps,i,n,r,!0)}}]),n}(pg);function vg(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,n=Math.pow(10,t-1);return Math.round(e*n)/n}var mg=function e(){A(this,e)},yg=function(e){r(n,e);var t=a(n);function n(){return A(this,n),t.apply(this,arguments)}return m(n,[{key:"normalizePropertyName",value:function(e,t){return Gp(e)}},{key:"normalizeStyleValue",value:function(e,t,n,i){var r="",o=n.toString().trim();if(bg[t]&&0!==n&&"0"!==n)if("number"==typeof n)r="px";else{var a=n.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&i.push("Please provide a CSS unit value for ".concat(e,":").concat(n))}return o+r}}]),n}(mg),bg=function(e){var t={};return e.forEach(function(e){return t[e]=!0}),t}("width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(","));function wg(e,t,n,i,r,o,a,s,l,u,c,d,h){return{type:0,element:e,triggerName:t,isRemovalTransition:r,fromState:n,fromStyles:o,toState:i,toStyles:a,timelines:s,queriedElements:l,preStyleProps:u,postStyleProps:c,totalTime:d,errors:h}}var _g={},kg=function(){function e(t,n,i){A(this,e),this._triggerName=t,this.ast=n,this._stateStyles=i}return m(e,[{key:"match",value:function(e,t,n,i){return function(e,t,n,i,r){return e.some(function(e){return e(t,n,i,r)})}(this.ast.matchers,e,t,n,i)}},{key:"buildStyles",value:function(e,t,n){var i=this._stateStyles["*"],r=this._stateStyles[e],o=i?i.buildStyles(t,n):{};return r?r.buildStyles(t,n):o}},{key:"build",value:function(e,t,n,i,r,o,a,s,l,u){var c=[],d=this.ast.options&&this.ast.options.params||_g,h=this.buildStyles(n,a&&a.params||_g,c),f=s&&s.params||_g,p=this.buildStyles(i,f,c),g=new Set,v=new Map,m=new Map,y="void"===i,b={params:Object.assign(Object.assign({},d),f)},w=u?[]:cg(e,t,this.ast.animation,r,o,h,p,b,l,c),_=0;if(w.forEach(function(e){_=Math.max(e.duration+e.delay,_)}),c.length)return wg(t,this._triggerName,n,i,y,h,p,[],[],v,m,_,c);w.forEach(function(e){var n=e.element,i=pp(v,n,{});e.preStyleProps.forEach(function(e){return i[e]=!0});var r=pp(m,n,{});e.postStyleProps.forEach(function(e){return r[e]=!0}),n!==t&&g.add(n)});var k=Up(g.values());return wg(t,this._triggerName,n,i,y,h,p,w,k,v,m,_)}}]),e}(),xg=function(){function e(t,n){A(this,e),this.styles=t,this.defaultParams=n}return m(e,[{key:"buildStyles",value:function(e,t){var n={},i=Ip(this.defaultParams);return Object.keys(e).forEach(function(t){var n=e[t];null!=n&&(i[t]=n)}),this.styles.styles.forEach(function(e){if("string"!=typeof e){var r=e;Object.keys(r).forEach(function(e){var o=r[e];o.length>1&&(o=jp(o,i,t)),n[e]=o})}}),n}}]),e}(),Ag=function(){function e(t,n){var i=this;A(this,e),this.name=t,this.ast=n,this.transitionFactories=[],this.states={},n.states.forEach(function(e){i.states[e.name]=new xg(e.style,e.options&&e.options.params||{})}),Cg(this.states,"true","1"),Cg(this.states,"false","0"),n.transitions.forEach(function(e){i.transitionFactories.push(new kg(t,e,i.states))}),this.fallbackTransition=new kg(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[function(e,t){return!0}],options:null,queryCount:0,depCount:0},this.states)}return m(e,[{key:"containsQueries",get:function(){return this.ast.queryCount>0}},{key:"matchTransition",value:function(e,t,n,i){return this.transitionFactories.find(function(r){return r.match(e,t,n,i)})||null}},{key:"matchStyles",value:function(e,t,n){return this.fallbackTransition.buildStyles(e,t,n)}}]),e}();function Cg(e,t,n){e.hasOwnProperty(t)?e.hasOwnProperty(n)||(e[n]=e[t]):e.hasOwnProperty(n)&&(e[t]=e[n])}var Sg=new sg,Pg=function(){function e(t,n,i){A(this,e),this.bodyNode=t,this._driver=n,this._normalizer=i,this._animations={},this._playersById={},this.players=[]}return m(e,[{key:"register",value:function(e,t){var n=[],i=eg(this._driver,t,n);if(n.length)throw new Error("Unable to build the animation due to the following errors: "+n.join("\n"));this._animations[e]=i}},{key:"_buildPlayer",value:function(e,t,n){var i=e.element,r=cp(0,this._normalizer,0,e.keyframes,t,n);return this._driver.animate(i,r,e.duration,e.delay,e.easing,[],!0)}},{key:"create",value:function(e,t){var n,i=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=[],a=this._animations[e],s=new Map;if(a?(n=cg(this._driver,t,a,"ng-enter","ng-leave",{},{},r,Sg,o)).forEach(function(e){var t=pp(s,e.element,{});e.postStyleProps.forEach(function(e){return t[e]=null})}):(o.push("The requested animation doesn't exist or has already been destroyed"),n=[]),o.length)throw new Error("Unable to create the animation due to the following errors: "+o.join("\n"));s.forEach(function(e,t){Object.keys(e).forEach(function(n){e[n]=i._driver.computeStyle(t,n,"*")})});var l=up(n.map(function(e){var t=s.get(e.element);return i._buildPlayer(e,{},t)}));return this._playersById[e]=l,l.onDestroy(function(){return i.destroy(e)}),this.players.push(l),l}},{key:"destroy",value:function(e){var t=this._getPlayer(e);t.destroy(),delete this._playersById[e];var n=this.players.indexOf(t);n>=0&&this.players.splice(n,1)}},{key:"_getPlayer",value:function(e){var t=this._playersById[e];if(!t)throw new Error("Unable to find the timeline player referenced by "+e);return t}},{key:"listen",value:function(e,t,n,i){var r=fp(t,"","","");return dp(this._getPlayer(e),n,r,i),function(){}}},{key:"command",value:function(e,t,n,i){if("register"!=n)if("create"!=n){var r=this._getPlayer(e);switch(n){case"play":r.play();break;case"pause":r.pause();break;case"reset":r.reset();break;case"restart":r.restart();break;case"finish":r.finish();break;case"init":r.init();break;case"setPosition":r.setPosition(parseFloat(i[0]));break;case"destroy":this.destroy(e)}}else this.create(e,t,i[0]||{});else this.register(e,i[0])}}]),e}(),Eg=[],Dg={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Og={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Mg=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";A(this,e),this.namespaceId=n;var i,r=t&&t.hasOwnProperty("value");if(this.value=null!=(i=r?t.value:t)?i:null,r){var o=Ip(t);delete o.value,this.options=o}else this.options={};this.options.params||(this.options.params={})}return m(e,[{key:"params",get:function(){return this.options.params}},{key:"absorbOptions",value:function(e){var t=e.params;if(t){var n=this.options.params;Object.keys(t).forEach(function(e){null==n[e]&&(n[e]=t[e])})}}}]),e}(),Tg=new Mg("void"),Ig=function(){function e(t,n,i){A(this,e),this.id=t,this.hostElement=n,this._engine=i,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,Ng(n,this._hostClassName)}return m(e,[{key:"listen",value:function(e,t,n,i){var r,o=this;if(!this._triggers.hasOwnProperty(t))throw new Error('Unable to listen on the animation trigger event "'.concat(n,'" because the animation trigger "').concat(t,"\" doesn't exist!"));if(null==n||0==n.length)throw new Error('Unable to listen on the animation trigger "'.concat(t,'" because the provided event is undefined!'));if("start"!=(r=n)&&"done"!=r)throw new Error('The provided animation trigger event "'.concat(n,'" for the animation trigger "').concat(t,'" is not supported!'));var a=pp(this._elementListeners,e,[]),s={name:t,phase:n,callback:i};a.push(s);var l=pp(this._engine.statesByElement,e,{});return l.hasOwnProperty(t)||(Ng(e,"ng-trigger"),Ng(e,"ng-trigger-"+t),l[t]=Tg),function(){o._engine.afterFlush(function(){var e=a.indexOf(s);e>=0&&a.splice(e,1),o._triggers[t]||delete l[t]})}}},{key:"register",value:function(e,t){return!this._triggers[e]&&(this._triggers[e]=t,!0)}},{key:"_getTrigger",value:function(e){var t=this._triggers[e];if(!t)throw new Error('The provided animation trigger "'.concat(e,'" has not been registered!'));return t}},{key:"trigger",value:function(e,t,n){var i=this,r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=this._getTrigger(t),a=new Lg(this.id,t,e),s=this._engine.statesByElement.get(e);s||(Ng(e,"ng-trigger"),Ng(e,"ng-trigger-"+t),this._engine.statesByElement.set(e,s={}));var l=s[t],u=new Mg(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&l&&u.absorbOptions(l.options),s[t]=u,l||(l=Tg),"void"===u.value||l.value!==u.value){var c=pp(this._engine.playersByElement,e,[]);c.forEach(function(e){e.namespaceId==i.id&&e.triggerName==t&&e.queued&&e.destroy()});var d=o.matchTransition(l.value,u.value,e,u.params),h=!1;if(!d){if(!r)return;d=o.fallbackTransition,h=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:d,fromState:l,toState:u,player:a,isFallbackTransition:h}),h||(Ng(e,"ng-animate-queued"),a.onStart(function(){Hg(e,"ng-animate-queued")})),a.onDone(function(){var t=i.players.indexOf(a);t>=0&&i.players.splice(t,1);var n=i._engine.playersByElement.get(e);if(n){var r=n.indexOf(a);r>=0&&n.splice(r,1)}}),this.players.push(a),c.push(a),a}if(!function(e,t){var n=Object.keys(e),i=Object.keys(t);if(n.length!=i.length)return!1;for(var r=0;r<n.length;r++){var o=n[r];if(!t.hasOwnProperty(o)||e[o]!==t[o])return!1}return!0}(l.params,u.params)){var f=[],p=o.matchStyles(l.value,l.params,f),g=o.matchStyles(u.value,u.params,f);f.length?this._engine.reportError(f):this._engine.afterFlush(function(){Vp(e,p),Bp(e,g)})}}},{key:"deregister",value:function(e){var t=this;delete this._triggers[e],this._engine.statesByElement.forEach(function(t,n){delete t[e]}),this._elementListeners.forEach(function(n,i){t._elementListeners.set(i,n.filter(function(t){return t.name!=e}))})}},{key:"clearElementCache",value:function(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);var t=this._engine.playersByElement.get(e);t&&(t.forEach(function(e){return e.destroy()}),this._engine.playersByElement.delete(e))}},{key:"_signalRemovalForInnerTriggers",value:function(e,t){var n=this,i=this._engine.driver.query(e,".ng-trigger",!0);i.forEach(function(e){if(!e.__ng_removed){var i=n._engine.fetchNamespacesByElement(e);i.size?i.forEach(function(n){return n.triggerLeaveAnimation(e,t,!1,!0)}):n.clearElementCache(e)}}),this._engine.afterFlushAnimationsDone(function(){return i.forEach(function(e){return n.clearElementCache(e)})})}},{key:"triggerLeaveAnimation",value:function(e,t,n,i){var r=this,o=this._engine.statesByElement.get(e);if(o){var a=[];if(Object.keys(o).forEach(function(t){if(r._triggers[t]){var n=r.trigger(e,t,"void",i);n&&a.push(n)}}),a.length)return this._engine.markElementAsRemoved(this.id,e,!0,t),n&&up(a).onDone(function(){return r._engine.processLeaveNode(e)}),!0}return!1}},{key:"prepareLeaveAnimationListeners",value:function(e){var t=this,n=this._elementListeners.get(e),i=this._engine.statesByElement.get(e);if(n&&i){var r=new Set;n.forEach(function(n){var o=n.name;if(!r.has(o)){r.add(o);var a=t._triggers[o].fallbackTransition,s=i[o]||Tg,l=new Mg("void"),u=new Lg(t.id,o,e);t._engine.totalQueuedPlayers++,t._queue.push({element:e,triggerName:o,transition:a,fromState:s,toState:l,player:u,isFallbackTransition:!0})}})}}},{key:"removeNode",value:function(e,t){var n=this,i=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,t),!this.triggerLeaveAnimation(e,t,!0)){var r=!1;if(i.totalAnimations){var o=i.players.length?i.playersByQueriedElement.get(e):[];if(o&&o.length)r=!0;else for(var a=e;a=a.parentNode;)if(i.statesByElement.get(a)){r=!0;break}}if(this.prepareLeaveAnimationListeners(e),r)i.markElementAsRemoved(this.id,e,!1,t);else{var s=e.__ng_removed;s&&s!==Dg||(i.afterFlush(function(){return n.clearElementCache(e)}),i.destroyInnerAnimations(e),i._onRemovalComplete(e,t))}}}},{key:"insertNode",value:function(e,t){Ng(e,this._hostClassName)}},{key:"drainQueuedTransitions",value:function(e){var t=this,n=[];return this._queue.forEach(function(i){var r=i.player;if(!r.destroyed){var o=i.element,a=t._elementListeners.get(o);a&&a.forEach(function(t){if(t.name==i.triggerName){var n=fp(o,i.triggerName,i.fromState.value,i.toState.value);n._data=e,dp(i.player,t.phase,n,t.callback)}}),r.markedForDestroy?t._engine.afterFlush(function(){r.destroy()}):n.push(i)}}),this._queue=[],n.sort(function(e,n){var i=e.transition.ast.depCount,r=n.transition.ast.depCount;return 0==i||0==r?i-r:t._engine.driver.containsElement(e.element,n.element)?1:-1})}},{key:"destroy",value:function(e){this.players.forEach(function(e){return e.destroy()}),this._signalRemovalForInnerTriggers(this.hostElement,e)}},{key:"elementContainsData",value:function(e){var t=!1;return this._elementListeners.has(e)&&(t=!0),t=!!this._queue.find(function(t){return t.element===e})||t}}]),e}(),Rg=function(){function e(t,n,i){A(this,e),this.bodyNode=t,this.driver=n,this._normalizer=i,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=function(e,t){}}return m(e,[{key:"_onRemovalComplete",value:function(e,t){this.onRemovalComplete(e,t)}},{key:"queuedPlayers",get:function(){var e=[];return this._namespaceList.forEach(function(t){t.players.forEach(function(t){t.queued&&e.push(t)})}),e}},{key:"createNamespace",value:function(e,t){var n=new Ig(e,t,this);return t.parentNode?this._balanceNamespaceList(n,t):(this.newHostElements.set(t,n),this.collectEnterElement(t)),this._namespaceLookup[e]=n}},{key:"_balanceNamespaceList",value:function(e,t){var n=this._namespaceList.length-1;if(n>=0){for(var i=!1,r=n;r>=0;r--)if(this.driver.containsElement(this._namespaceList[r].hostElement,t)){this._namespaceList.splice(r+1,0,e),i=!0;break}i||this._namespaceList.splice(0,0,e)}else this._namespaceList.push(e);return this.namespacesByHostElement.set(t,e),e}},{key:"register",value:function(e,t){var n=this._namespaceLookup[e];return n||(n=this.createNamespace(e,t)),n}},{key:"registerTrigger",value:function(e,t,n){var i=this._namespaceLookup[e];i&&i.register(t,n)&&this.totalAnimations++}},{key:"destroy",value:function(e,t){var n=this;if(e){var i=this._fetchNamespace(e);this.afterFlush(function(){n.namespacesByHostElement.delete(i.hostElement),delete n._namespaceLookup[e];var t=n._namespaceList.indexOf(i);t>=0&&n._namespaceList.splice(t,1)}),this.afterFlushAnimationsDone(function(){return i.destroy(t)})}}},{key:"_fetchNamespace",value:function(e){return this._namespaceLookup[e]}},{key:"fetchNamespacesByElement",value:function(e){var t=new Set,n=this.statesByElement.get(e);if(n)for(var i=Object.keys(n),r=0;r<i.length;r++){var o=n[i[r]].namespaceId;if(o){var a=this._fetchNamespace(o);a&&t.add(a)}}return t}},{key:"trigger",value:function(e,t,n,i){if(Fg(t)){var r=this._fetchNamespace(e);if(r)return r.trigger(t,n,i),!0}return!1}},{key:"insertNode",value:function(e,t,n,i){if(Fg(t)){var r=t.__ng_removed;if(r&&r.setForRemoval){r.setForRemoval=!1,r.setForMove=!0;var o=this.collectedLeaveElements.indexOf(t);o>=0&&this.collectedLeaveElements.splice(o,1)}if(e){var a=this._fetchNamespace(e);a&&a.insertNode(t,n)}i&&this.collectEnterElement(t)}}},{key:"collectEnterElement",value:function(e){this.collectedEnterElements.push(e)}},{key:"markElementAsDisabled",value:function(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),Ng(e,"ng-animate-disabled")):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),Hg(e,"ng-animate-disabled"))}},{key:"removeNode",value:function(e,t,n,i){if(Fg(t)){var r=e?this._fetchNamespace(e):null;if(r?r.removeNode(t,i):this.markElementAsRemoved(e,t,!1,i),n){var o=this.namespacesByHostElement.get(t);o&&o.id!==e&&o.removeNode(t,i)}}else this._onRemovalComplete(t,i)}},{key:"markElementAsRemoved",value:function(e,t,n,i){this.collectedLeaveElements.push(t),t.__ng_removed={namespaceId:e,setForRemoval:i,hasAnimation:n,removedBeforeQueried:!1}}},{key:"listen",value:function(e,t,n,i,r){return Fg(t)?this._fetchNamespace(e).listen(t,n,i,r):function(){}}},{key:"_buildInstruction",value:function(e,t,n,i,r){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,n,i,e.fromState.options,e.toState.options,t,r)}},{key:"destroyInnerAnimations",value:function(e){var t=this,n=this.driver.query(e,".ng-trigger",!0);n.forEach(function(e){return t.destroyActiveAnimationsForElement(e)}),0!=this.playersByQueriedElement.size&&(n=this.driver.query(e,".ng-animating",!0)).forEach(function(e){return t.finishActiveQueriedAnimationOnElement(e)})}},{key:"destroyActiveAnimationsForElement",value:function(e){var t=this.playersByElement.get(e);t&&t.forEach(function(e){e.queued?e.markedForDestroy=!0:e.destroy()})}},{key:"finishActiveQueriedAnimationOnElement",value:function(e){var t=this.playersByQueriedElement.get(e);t&&t.forEach(function(e){return e.finish()})}},{key:"whenRenderingDone",value:function(){var e=this;return new Promise(function(t){if(e.players.length)return up(e.players).onDone(function(){return t()});t()})}},{key:"processLeaveNode",value:function(e){var t=this,n=e.__ng_removed;if(n&&n.setForRemoval){if(e.__ng_removed=Dg,n.namespaceId){this.destroyInnerAnimations(e);var i=this._fetchNamespace(n.namespaceId);i&&i.clearElementCache(e)}this._onRemovalComplete(e,n.setForRemoval)}this.driver.matchesElement(e,".ng-animate-disabled")&&this.markElementAsDisabled(e,!1),this.driver.query(e,".ng-animate-disabled",!0).forEach(function(e){t.markElementAsDisabled(e,!1)})}},{key:"flush",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1,n=[];if(this.newHostElements.size&&(this.newHostElements.forEach(function(t,n){return e._balanceNamespaceList(t,n)}),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(var i=0;i<this.collectedEnterElements.length;i++)Ng(this.collectedEnterElements[i],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){var r=[];try{n=this._flushAnimations(r,t)}finally{for(var o=0;o<r.length;o++)r[o]()}}else for(var a=0;a<this.collectedLeaveElements.length;a++)this.processLeaveNode(this.collectedLeaveElements[a]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(function(e){return e()}),this._flushFns=[],this._whenQuietFns.length){var s=this._whenQuietFns;this._whenQuietFns=[],n.length?up(n).onDone(function(){s.forEach(function(e){return e()})}):s.forEach(function(e){return e()})}}},{key:"reportError",value:function(e){throw new Error("Unable to process animations due to the following failed trigger transitions\n "+e.join("\n"))}},{key:"_flushAnimations",value:function(e,t){var n=this,i=new sg,r=[],o=new Map,a=[],s=new Map,l=new Map,u=new Map,c=new Set;this.disabledNodes.forEach(function(e){c.add(e);for(var t=n.driver.query(e,".ng-animate-queued",!0),i=0;i<t.length;i++)c.add(t[i])});var d=this.bodyNode,h=Array.from(this.statesByElement.keys()),f=zg(h,this.collectedEnterElements),p=new Map,g=0;f.forEach(function(e,t){var n="ng-enter"+g++;p.set(t,n),e.forEach(function(e){return Ng(e,n)})});for(var v=[],m=new Set,b=new Set,w=0;w<this.collectedLeaveElements.length;w++){var _=this.collectedLeaveElements[w],k=_.__ng_removed;k&&k.setForRemoval&&(v.push(_),m.add(_),k.hasAnimation?this.driver.query(_,".ng-star-inserted",!0).forEach(function(e){return m.add(e)}):b.add(_))}var x=new Map,A=zg(h,Array.from(m));A.forEach(function(e,t){var n="ng-leave"+g++;x.set(t,n),e.forEach(function(e){return Ng(e,n)})}),e.push(function(){f.forEach(function(e,t){var n=p.get(t);e.forEach(function(e){return Hg(e,n)})}),A.forEach(function(e,t){var n=x.get(t);e.forEach(function(e){return Hg(e,n)})}),v.forEach(function(e){n.processLeaveNode(e)})});for(var C=[],S=[],P=this._namespaceList.length-1;P>=0;P--)this._namespaceList[P].drainQueuedTransitions(t).forEach(function(e){var t=e.player,o=e.element;if(C.push(t),n.collectedEnterElements.length){var c=o.__ng_removed;if(c&&c.setForMove)return void t.destroy()}var h=!d||!n.driver.containsElement(d,o),f=x.get(o),g=p.get(o),v=n._buildInstruction(e,i,g,f,h);if(v.errors&&v.errors.length)S.push(v);else{if(h)return t.onStart(function(){return Vp(o,v.fromStyles)}),t.onDestroy(function(){return Bp(o,v.toStyles)}),void r.push(t);if(e.isFallbackTransition)return t.onStart(function(){return Vp(o,v.fromStyles)}),t.onDestroy(function(){return Bp(o,v.toStyles)}),void r.push(t);v.timelines.forEach(function(e){return e.stretchStartingKeyframe=!0}),i.append(o,v.timelines),a.push({instruction:v,player:t,element:o}),v.queriedElements.forEach(function(e){return pp(s,e,[]).push(t)}),v.preStyleProps.forEach(function(e,t){var n=Object.keys(e);if(n.length){var i=l.get(t);i||l.set(t,i=new Set),n.forEach(function(e){return i.add(e)})}}),v.postStyleProps.forEach(function(e,t){var n=Object.keys(e),i=u.get(t);i||u.set(t,i=new Set),n.forEach(function(e){return i.add(e)})})}});if(S.length){var E=[];S.forEach(function(e){E.push("@".concat(e.triggerName," has failed due to:\n")),e.errors.forEach(function(e){return E.push("- ".concat(e,"\n"))})}),C.forEach(function(e){return e.destroy()}),this.reportError(E)}var D=new Map,O=new Map;a.forEach(function(e){var t=e.element;i.has(t)&&(O.set(t,t),n._beforeAnimationBuild(e.player.namespaceId,e.instruction,D))}),r.forEach(function(e){var t=e.element;n._getPreviousPlayers(t,!1,e.namespaceId,e.triggerName,null).forEach(function(e){pp(D,t,[]).push(e),e.destroy()})});var M=v.filter(function(e){return Wg(e,l,u)}),T=new Map;Vg(T,this.driver,b,u,"*").forEach(function(e){Wg(e,l,u)&&M.push(e)});var I=new Map;f.forEach(function(e,t){Vg(I,n.driver,new Set(e),l,"!")}),M.forEach(function(e){var t=T.get(e),n=I.get(e);T.set(e,Object.assign(Object.assign({},t),n))});var R=[],L=[],F={};a.forEach(function(e){var t=e.element,a=e.player,s=e.instruction;if(i.has(t)){if(c.has(t))return a.onDestroy(function(){return Bp(t,s.toStyles)}),a.disabled=!0,a.overrideTotalTime(s.totalTime),void r.push(a);var l=F;if(O.size>1){for(var u=t,d=[];u=u.parentNode;){var h=O.get(u);if(h){l=h;break}d.push(u)}d.forEach(function(e){return O.set(e,l)})}var f=n._buildAnimation(a.namespaceId,s,D,o,I,T);if(a.setRealPlayer(f),l===F)R.push(a);else{var p=n.playersByElement.get(l);p&&p.length&&(a.parentPlayer=up(p)),r.push(a)}}else Vp(t,s.fromStyles),a.onDestroy(function(){return Bp(t,s.toStyles)}),L.push(a),c.has(t)&&r.push(a)}),L.forEach(function(e){var t=o.get(e.element);if(t&&t.length){var n=up(t);e.setRealPlayer(n)}}),r.forEach(function(e){e.parentPlayer?e.syncPlayerEvents(e.parentPlayer):e.destroy()});for(var B=0;B<v.length;B++){var V=v[B],z=V.__ng_removed;if(Hg(V,"ng-leave"),!z||!z.hasAnimation){var N=[];if(s.size){var H=s.get(V);H&&H.length&&N.push.apply(N,y(H));for(var j=this.driver.query(V,".ng-animating",!0),U=0;U<j.length;U++){var W=s.get(j[U]);W&&W.length&&N.push.apply(N,y(W))}}var G=N.filter(function(e){return!e.destroyed});G.length?jg(this,V,G):this.processLeaveNode(V)}}return v.length=0,R.forEach(function(e){n.players.push(e),e.onDone(function(){e.destroy();var t=n.players.indexOf(e);n.players.splice(t,1)}),e.play()}),R}},{key:"elementContainsData",value:function(e,t){var n=!1,i=t.__ng_removed;return i&&i.setForRemoval&&(n=!0),this.playersByElement.has(t)&&(n=!0),this.playersByQueriedElement.has(t)&&(n=!0),this.statesByElement.has(t)&&(n=!0),this._fetchNamespace(e).elementContainsData(t)||n}},{key:"afterFlush",value:function(e){this._flushFns.push(e)}},{key:"afterFlushAnimationsDone",value:function(e){this._whenQuietFns.push(e)}},{key:"_getPreviousPlayers",value:function(e,t,n,i,r){var o=[];if(t){var a=this.playersByQueriedElement.get(e);a&&(o=a)}else{var s=this.playersByElement.get(e);if(s){var l=!r||"void"==r;s.forEach(function(e){e.queued||(l||e.triggerName==i)&&o.push(e)})}}return(n||i)&&(o=o.filter(function(e){return!(n&&n!=e.namespaceId||i&&i!=e.triggerName)})),o}},{key:"_beforeAnimationBuild",value:function(e,t,n){var i,r=this,o=t.element,a=t.isRemovalTransition?void 0:e,s=t.isRemovalTransition?void 0:t.triggerName,l=h(t.timelines);try{var u=function(){var e=i.value.element,l=e!==o,u=pp(n,e,[]);r._getPreviousPlayers(e,l,a,s,t.toState).forEach(function(e){var t=e.getRealPlayer();t.beforeDestroy&&t.beforeDestroy(),e.destroy(),u.push(e)})};for(l.s();!(i=l.n()).done;)u()}catch(c){l.e(c)}finally{l.f()}Vp(o,t.fromStyles)}},{key:"_buildAnimation",value:function(e,t,n,i,r,o){var a=this,s=t.triggerName,l=t.element,u=[],c=new Set,d=new Set,h=t.timelines.map(function(t){var h=t.element;c.add(h);var f=h.__ng_removed;if(f&&f.removedBeforeQueried)return new ap(t.duration,t.delay);var p,g,v=h!==l,m=(p=(n.get(h)||Eg).map(function(e){return e.getRealPlayer()}),g=[],Ug(p,g),g).filter(function(e){return!!e.element&&e.element===h}),y=r.get(h),b=o.get(h),w=cp(0,a._normalizer,0,t.keyframes,y,b),_=a._buildPlayer(t,w,m);if(t.subTimeline&&i&&d.add(h),v){var k=new Lg(e,s,h);k.setRealPlayer(_),u.push(k)}return _});u.forEach(function(e){pp(a.playersByQueriedElement,e.element,[]).push(e),e.onDone(function(){return function(e,t,n){var i;if(e instanceof Map){if(i=e.get(t)){if(i.length){var r=i.indexOf(n);i.splice(r,1)}0==i.length&&e.delete(t)}}else if(i=e[t]){if(i.length){var o=i.indexOf(n);i.splice(o,1)}0==i.length&&delete e[t]}return i}(a.playersByQueriedElement,e.element,e)})}),c.forEach(function(e){return Ng(e,"ng-animating")});var f=up(h);return f.onDestroy(function(){c.forEach(function(e){return Hg(e,"ng-animating")}),Bp(l,t.toStyles)}),d.forEach(function(e){pp(i,e,[]).push(f)}),f}},{key:"_buildPlayer",value:function(e,t,n){return t.length>0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,n):new ap(e.duration,e.delay)}}]),e}(),Lg=function(){function e(t,n,i){A(this,e),this.namespaceId=t,this.triggerName=n,this.element=i,this._player=new ap,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}return m(e,[{key:"setRealPlayer",value:function(e){var t=this;this._containsRealPlayer||(this._player=e,Object.keys(this._queuedCallbacks).forEach(function(n){t._queuedCallbacks[n].forEach(function(t){return dp(e,n,void 0,t)})}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}},{key:"getRealPlayer",value:function(){return this._player}},{key:"overrideTotalTime",value:function(e){this.totalTime=e}},{key:"syncPlayerEvents",value:function(e){var t=this,n=this._player;n.triggerCallback&&e.onStart(function(){return n.triggerCallback("start")}),e.onDone(function(){return t.finish()}),e.onDestroy(function(){return t.destroy()})}},{key:"_queueEvent",value:function(e,t){pp(this._queuedCallbacks,e,[]).push(t)}},{key:"onDone",value:function(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}},{key:"onStart",value:function(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}},{key:"onDestroy",value:function(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}},{key:"init",value:function(){this._player.init()}},{key:"hasStarted",value:function(){return!this.queued&&this._player.hasStarted()}},{key:"play",value:function(){!this.queued&&this._player.play()}},{key:"pause",value:function(){!this.queued&&this._player.pause()}},{key:"restart",value:function(){!this.queued&&this._player.restart()}},{key:"finish",value:function(){this._player.finish()}},{key:"destroy",value:function(){this.destroyed=!0,this._player.destroy()}},{key:"reset",value:function(){!this.queued&&this._player.reset()}},{key:"setPosition",value:function(e){this.queued||this._player.setPosition(e)}},{key:"getPosition",value:function(){return this.queued?0:this._player.getPosition()}},{key:"triggerCallback",value:function(e){var t=this._player;t.triggerCallback&&t.triggerCallback(e)}}]),e}();function Fg(e){return e&&1===e.nodeType}function Bg(e,t){var n=e.style.display;return e.style.display=null!=t?t:"none",n}function Vg(e,t,n,i,r){var o=[];n.forEach(function(e){return o.push(Bg(e))});var a=[];i.forEach(function(n,i){var o={};n.forEach(function(e){var n=o[e]=t.computeStyle(i,e,r);n&&0!=n.length||(i.__ng_removed=Og,a.push(i))}),e.set(i,o)});var s=0;return n.forEach(function(e){return Bg(e,o[s++])}),a}function zg(e,t){var n=new Map;if(e.forEach(function(e){return n.set(e,[])}),0==t.length)return n;var i=new Set(t),r=new Map;function o(e){if(!e)return 1;var t=r.get(e);if(t)return t;var a=e.parentNode;return t=n.has(a)?a:i.has(a)?1:o(a),r.set(e,t),t}return t.forEach(function(e){var t=o(e);1!==t&&n.get(t).push(e)}),n}function Ng(e,t){if(e.classList)e.classList.add(t);else{var n=e.$$classes;n||(n=e.$$classes={}),n[t]=!0}}function Hg(e,t){if(e.classList)e.classList.remove(t);else{var n=e.$$classes;n&&delete n[t]}}function jg(e,t,n){up(n).onDone(function(){return e.processLeaveNode(t)})}function Ug(e,t){for(var n=0;n<e.length;n++){var i=e[n];i instanceof sp?Ug(i.players,t):t.push(i)}}function Wg(e,t,n){var i=n.get(e);if(!i)return!1;var r=t.get(e);return r?i.forEach(function(e){return r.add(e)}):t.set(e,i),n.delete(e),!0}var Gg=function(){function e(t,n,i){var r=this;A(this,e),this.bodyNode=t,this._driver=n,this._triggerCache={},this.onRemovalComplete=function(e,t){},this._transitionEngine=new Rg(t,n,i),this._timelineEngine=new Pg(t,n,i),this._transitionEngine.onRemovalComplete=function(e,t){return r.onRemovalComplete(e,t)}}return m(e,[{key:"registerTrigger",value:function(e,t,n,i,r){var o=e+"-"+i,a=this._triggerCache[o];if(!a){var s=[],l=eg(this._driver,r,s);if(s.length)throw new Error('The animation trigger "'.concat(i,'" has failed to build due to the following errors:\n - ').concat(s.join("\n - ")));a=function(e,t){return new Ag(e,t)}(i,l),this._triggerCache[o]=a}this._transitionEngine.registerTrigger(t,i,a)}},{key:"register",value:function(e,t){this._transitionEngine.register(e,t)}},{key:"destroy",value:function(e,t){this._transitionEngine.destroy(e,t)}},{key:"onInsert",value:function(e,t,n,i){this._transitionEngine.insertNode(e,t,n,i)}},{key:"onRemove",value:function(e,t,n,i){this._transitionEngine.removeNode(e,t,i||!1,n)}},{key:"disableAnimations",value:function(e,t){this._transitionEngine.markElementAsDisabled(e,t)}},{key:"process",value:function(e,t,n,i){if("@"==n.charAt(0)){var r=f(gp(n),2),o=r[0],a=r[1];this._timelineEngine.command(o,t,a,i)}else this._transitionEngine.trigger(e,t,n,i)}},{key:"listen",value:function(e,t,n,i,r){if("@"==n.charAt(0)){var o=f(gp(n),2),a=o[0],s=o[1];return this._timelineEngine.listen(a,t,s,r)}return this._transitionEngine.listen(e,t,n,i,r)}},{key:"flush",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1;this._transitionEngine.flush(e)}},{key:"players",get:function(){return this._transitionEngine.players.concat(this._timelineEngine.players)}},{key:"whenRenderingDone",value:function(){return this._transitionEngine.whenRenderingDone()}}]),e}();function qg(e,t){var n=null,i=null;return Array.isArray(t)&&t.length?(n=Zg(t[0]),t.length>1&&(i=Zg(t[t.length-1]))):t&&(n=Zg(t)),n||i?new Yg(e,n,i):null}var Yg=function(){var e=function(){function e(t,n,i){A(this,e),this._element=t,this._startStyles=n,this._endStyles=i,this._state=0;var r=e.initialStylesByElement.get(t);r||e.initialStylesByElement.set(t,r={}),this._initialStyles=r}return m(e,[{key:"start",value:function(){this._state<1&&(this._startStyles&&Bp(this._element,this._startStyles,this._initialStyles),this._state=1)}},{key:"finish",value:function(){this.start(),this._state<2&&(Bp(this._element,this._initialStyles),this._endStyles&&(Bp(this._element,this._endStyles),this._endStyles=null),this._state=1)}},{key:"destroy",value:function(){this.finish(),this._state<3&&(e.initialStylesByElement.delete(this._element),this._startStyles&&(Vp(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Vp(this._element,this._endStyles),this._endStyles=null),Bp(this._element,this._initialStyles),this._state=3)}}]),e}();return e.initialStylesByElement=new WeakMap,e}();function Zg(e){for(var t=null,n=Object.keys(e),i=0;i<n.length;i++){var r=n[i];Qg(r)&&((t=t||{})[r]=e[r])}return t}function Qg(e){return"display"===e||"position"===e}var Xg=function(){function e(t,n,i,r,o,a,s){var l=this;A(this,e),this._element=t,this._name=n,this._duration=i,this._delay=r,this._easing=o,this._fillMode=a,this._onDoneFn=s,this._finished=!1,this._destroyed=!1,this._startTime=0,this._position=0,this._eventFn=function(e){return l._handleCallback(e)}}return m(e,[{key:"apply",value:function(){var e,t,n;e=this._element,t="".concat(this._duration,"ms ").concat(this._easing," ").concat(this._delay,"ms 1 normal ").concat(this._fillMode," ").concat(this._name),(n=nv(e,"").trim()).length&&(function(e,t){for(var n=0;n<e.length;n++)e.charAt(n)}(n),t="".concat(n,", ").concat(t)),tv(e,"",t),ev(this._element,this._eventFn,!1),this._startTime=Date.now()}},{key:"pause",value:function(){Kg(this._element,this._name,"paused")}},{key:"resume",value:function(){Kg(this._element,this._name,"running")}},{key:"setPosition",value:function(e){var t=Jg(this._element,this._name);this._position=e*this._duration,tv(this._element,"Delay","-".concat(this._position,"ms"),t)}},{key:"getPosition",value:function(){return this._position}},{key:"_handleCallback",value:function(e){var t=e._ngTestManualTimestamp||Date.now(),n=1e3*parseFloat(e.elapsedTime.toFixed(3));e.animationName==this._name&&Math.max(t-this._startTime,0)>=this._delay&&n>=this._duration&&this.finish()}},{key:"finish",value:function(){this._finished||(this._finished=!0,this._onDoneFn(),ev(this._element,this._eventFn,!0))}},{key:"destroy",value:function(){var e,t,n,i;this._destroyed||(this._destroyed=!0,this.finish(),e=this._element,t=this._name,n=nv(e,"").split(","),(i=$g(n,t))>=0&&(n.splice(i,1),tv(e,"",n.join(","))))}}]),e}();function Kg(e,t,n){tv(e,"PlayState",n,Jg(e,t))}function Jg(e,t){var n=nv(e,"");return n.indexOf(",")>0?$g(n.split(","),t):$g([n],t)}function $g(e,t){for(var n=0;n<e.length;n++)if(e[n].indexOf(t)>=0)return n;return-1}function ev(e,t,n){n?e.removeEventListener("animationend",t):e.addEventListener("animationend",t)}function tv(e,t,n,i){var r="animation"+t;if(null!=i){var o=e.style[r];if(o.length){var a=o.split(",");a[i]=n,n=a.join(",")}}e.style[r]=n}function nv(e,t){return e.style["animation"+t]||""}var iv=function(){function e(t,n,i,r,o,a,s,l){A(this,e),this.element=t,this.keyframes=n,this.animationName=i,this._duration=r,this._delay=o,this._finalStyles=s,this._specialStyles=l,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this.currentSnapshot={},this._state=0,this.easing=a||"linear",this.totalTime=r+o,this._buildStyler()}return m(e,[{key:"onStart",value:function(e){this._onStartFns.push(e)}},{key:"onDone",value:function(e){this._onDoneFns.push(e)}},{key:"onDestroy",value:function(e){this._onDestroyFns.push(e)}},{key:"destroy",value:function(){this.init(),this._state>=4||(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(function(e){return e()}),this._onDestroyFns=[])}},{key:"_flushDoneFns",value:function(){this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[]}},{key:"_flushStartFns",value:function(){this._onStartFns.forEach(function(e){return e()}),this._onStartFns=[]}},{key:"finish",value:function(){this.init(),this._state>=3||(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}},{key:"setPosition",value:function(e){this._styler.setPosition(e)}},{key:"getPosition",value:function(){return this._styler.getPosition()}},{key:"hasStarted",value:function(){return this._state>=2}},{key:"init",value:function(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())}},{key:"play",value:function(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}},{key:"pause",value:function(){this.init(),this._styler.pause()}},{key:"restart",value:function(){this.reset(),this.play()}},{key:"reset",value:function(){this._styler.destroy(),this._buildStyler(),this._styler.apply()}},{key:"_buildStyler",value:function(){var e=this;this._styler=new Xg(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",function(){return e.finish()})}},{key:"triggerCallback",value:function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(function(e){return e()}),t.length=0}},{key:"beforeDestroy",value:function(){var e=this;this.init();var t={};if(this.hasStarted()){var n=this._state>=3;Object.keys(this._finalStyles).forEach(function(i){"offset"!=i&&(t[i]=n?e._finalStyles[i]:Qp(e.element,i))})}this.currentSnapshot=t}}]),e}(),rv=function(e){r(n,e);var t=a(n);function n(e,i){var r;return A(this,n),(r=t.call(this)).element=e,r._startingStyles={},r.__initialized=!1,r._styles=Sp(i),r}return m(n,[{key:"init",value:function(){var e=this;!this.__initialized&&this._startingStyles&&(this.__initialized=!0,Object.keys(this._styles).forEach(function(t){e._startingStyles[t]=e.element.style[t]}),i(c(n.prototype),"init",this).call(this))}},{key:"play",value:function(){var e=this;this._startingStyles&&(this.init(),Object.keys(this._styles).forEach(function(t){return e.element.style.setProperty(t,e._styles[t])}),i(c(n.prototype),"play",this).call(this))}},{key:"destroy",value:function(){var e=this;this._startingStyles&&(Object.keys(this._startingStyles).forEach(function(t){var n=e._startingStyles[t];n?e.element.style.setProperty(t,n):e.element.style.removeProperty(t)}),this._startingStyles=null,i(c(n.prototype),"destroy",this).call(this))}}]),n}(ap),ov=function(){function e(){A(this,e),this._count=0,this._head=document.querySelector("head")}return m(e,[{key:"validateStyleProperty",value:function(e){return kp(e)}},{key:"matchesElement",value:function(e,t){return xp(e,t)}},{key:"containsElement",value:function(e,t){return Ap(e,t)}},{key:"query",value:function(e,t,n){return Cp(e,t,n)}},{key:"computeStyle",value:function(e,t,n){return window.getComputedStyle(e)[t]}},{key:"buildKeyframeElement",value:function(e,t,n){n=n.map(function(e){return Sp(e)});var i="@keyframes ".concat(t," {\n"),r="";n.forEach(function(e){r=" ";var t=parseFloat(e.offset);i+="".concat(r).concat(100*t,"% {\n"),r+=" ",Object.keys(e).forEach(function(t){var n=e[t];switch(t){case"offset":return;case"easing":return void(n&&(i+="".concat(r,"animation-timing-function: ").concat(n,";\n")));default:return void(i+="".concat(r).concat(t,": ").concat(n,";\n"))}}),i+=r+"}\n"}),i+="}\n";var o=document.createElement("style");return o.textContent=i,o}},{key:"animate",value:function(e,t,n,i,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],a=o.filter(function(e){return e instanceof iv}),s={};qp(n,i)&&a.forEach(function(e){var t=e.currentSnapshot;Object.keys(t).forEach(function(e){return s[e]=t[e]})});var l=function(e){var t={};return e&&(Array.isArray(e)?e:[e]).forEach(function(e){Object.keys(e).forEach(function(n){"offset"!=n&&"easing"!=n&&(t[n]=e[n])})}),t}(t=Yp(e,t,s));if(0==n)return new rv(e,l);var u="gen_css_kf_"+this._count++,c=this.buildKeyframeElement(e,u,t);document.querySelector("head").appendChild(c);var d=qg(e,t),h=new iv(e,t,u,n,i,r,l,d);return h.onDestroy(function(){var e;(e=c).parentNode.removeChild(e)}),h}}]),e}(),av=function(){function e(t,n,i,r){A(this,e),this.element=t,this.keyframes=n,this.options=i,this._specialStyles=r,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=i.duration,this._delay=i.delay||0,this.time=this._duration+this._delay}return m(e,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[])}},{key:"init",value:function(){this._buildPlayer(),this._preparePlayerBeforeStart()}},{key:"_buildPlayer",value:function(){var e=this;if(!this._initialized){this._initialized=!0;var t=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:{},this.domPlayer.addEventListener("finish",function(){return e._onFinish()})}}},{key:"_preparePlayerBeforeStart",value:function(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}},{key:"_triggerWebAnimation",value:function(e,t,n){return e.animate(t,n)}},{key:"onStart",value:function(e){this._onStartFns.push(e)}},{key:"onDone",value:function(e){this._onDoneFns.push(e)}},{key:"onDestroy",value:function(e){this._onDestroyFns.push(e)}},{key:"play",value:function(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(function(e){return e()}),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}},{key:"pause",value:function(){this.init(),this.domPlayer.pause()}},{key:"finish",value:function(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}},{key:"reset",value:function(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}},{key:"_resetDomPlayerState",value:function(){this.domPlayer&&this.domPlayer.cancel()}},{key:"restart",value:function(){this.reset(),this.play()}},{key:"hasStarted",value:function(){return this._started}},{key:"destroy",value:function(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(function(e){return e()}),this._onDestroyFns=[])}},{key:"setPosition",value:function(e){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=e*this.time}},{key:"getPosition",value:function(){return this.domPlayer.currentTime/this.time}},{key:"totalTime",get:function(){return this._delay+this._duration}},{key:"beforeDestroy",value:function(){var e=this,t={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(function(n){"offset"!=n&&(t[n]=e._finished?e._finalKeyframe[n]:Qp(e.element,n))}),this.currentSnapshot=t}},{key:"triggerCallback",value:function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(function(e){return e()}),t.length=0}}]),e}(),sv=function(){function e(){A(this,e),this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(lv().toString()),this._cssKeyframesDriver=new ov}return m(e,[{key:"validateStyleProperty",value:function(e){return kp(e)}},{key:"matchesElement",value:function(e,t){return xp(e,t)}},{key:"containsElement",value:function(e,t){return Ap(e,t)}},{key:"query",value:function(e,t,n){return Cp(e,t,n)}},{key:"computeStyle",value:function(e,t,n){return window.getComputedStyle(e)[t]}},{key:"overrideWebAnimationsSupport",value:function(e){this._isNativeImpl=e}},{key:"animate",value:function(e,t,n,i,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],a=arguments.length>6?arguments[6]:void 0;if(!a&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(e,t,n,i,r,o);var s={duration:n,delay:i,fill:0==i?"both":"forwards"};r&&(s.easing=r);var l={},u=o.filter(function(e){return e instanceof av});qp(n,i)&&u.forEach(function(e){var t=e.currentSnapshot;Object.keys(t).forEach(function(e){return l[e]=t[e]})});var c=qg(e,t=Yp(e,t=t.map(function(e){return Rp(e,!1)}),l));return new av(e,t,s,c)}}]),e}();function lv(){return"undefined"!=typeof window&&void 0!==window.document&&Element.prototype.animate||{}}var uv,cv=((uv=function(e){r(n,e);var t=a(n);function n(e,i){var r;return A(this,n),(r=t.call(this))._nextAnimationId=0,r._renderer=e.createRenderer(i.body,{id:"0",encapsulation:Xe.None,styles:[],data:{animation:[]}}),r}return m(n,[{key:"build",value:function(e){var t=this._nextAnimationId.toString();this._nextAnimationId++;var n=Array.isArray(e)?Jf(e):e;return fv(this._renderer,null,t,"register",[n]),new dv(t,this._renderer)}}]),n}(Qf)).\u0275fac=function(e){return new(e||uv)(Ri(Pl),Ri(od))},uv.\u0275prov=Re({token:uv,factory:uv.\u0275fac}),uv),dv=function(e){r(n,e);var t=a(n);function n(e,i){var r;return A(this,n),(r=t.call(this))._id=e,r._renderer=i,r}return m(n,[{key:"create",value:function(e,t){return new hv(this._id,e,t||{},this._renderer)}}]),n}(function(){return function e(){A(this,e)}}()),hv=function(){function e(t,n,i,r){A(this,e),this.id=t,this.element=n,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",i)}return m(e,[{key:"_listen",value:function(e,t){return this._renderer.listen(this.element,"@@".concat(this.id,":").concat(e),t)}},{key:"_command",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return fv(this._renderer,this.element,this.id,e,n)}},{key:"onDone",value:function(e){this._listen("done",e)}},{key:"onStart",value:function(e){this._listen("start",e)}},{key:"onDestroy",value:function(e){this._listen("destroy",e)}},{key:"init",value:function(){this._command("init")}},{key:"hasStarted",value:function(){return this._started}},{key:"play",value:function(){this._command("play"),this._started=!0}},{key:"pause",value:function(){this._command("pause")}},{key:"restart",value:function(){this._command("restart")}},{key:"finish",value:function(){this._command("finish")}},{key:"destroy",value:function(){this._command("destroy")}},{key:"reset",value:function(){this._command("reset")}},{key:"setPosition",value:function(e){this._command("setPosition",e)}},{key:"getPosition",value:function(){var e,t;return null!==(t=null===(e=this._renderer.engine.players[+this.id])||void 0===e?void 0:e.getPosition())&&void 0!==t?t:0}}]),e}();function fv(e,t,n,i,r){return e.setProperty(t,"@@".concat(n,":").concat(i),r)}var pv,gv,vv,mv=((pv=function(){function e(t,n,i){A(this,e),this.delegate=t,this.engine=n,this._zone=i,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),n.onRemovalComplete=function(e,t){t&&t.parentNode(e)&&t.removeChild(e.parentNode,e)}}return m(e,[{key:"createRenderer",value:function(e,t){var n=this,i=this.delegate.createRenderer(e,t);if(!(e&&t&&t.data&&t.data.animation)){var r=this._rendererCache.get(i);return r||(r=new yv("",i,this.engine),this._rendererCache.set(i,r)),r}var o=t.id,a=t.id+"-"+this._currentId;return this._currentId++,this.engine.register(a,e),t.data.animation.forEach(function t(i){Array.isArray(i)?i.forEach(t):n.engine.registerTrigger(o,a,e,i.name,i)}),new bv(this,a,i,this.engine)}},{key:"begin",value:function(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}},{key:"_scheduleCountTask",value:function(){var e=this;this.promise.then(function(){e._microtaskId++})}},{key:"scheduleListenerCallback",value:function(e,t,n){var i=this;e>=0&&e<this._microtaskId?this._zone.run(function(){return t(n)}):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(function(){i._zone.run(function(){i._animationCallbacksBuffer.forEach(function(e){var t=f(e,2);(0,t[0])(t[1])}),i._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([t,n]))}},{key:"end",value:function(){var e=this;this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(function(){e._scheduleCountTask(),e.engine.flush(e._microtaskId)}),this.delegate.end&&this.delegate.end()}},{key:"whenRenderingDone",value:function(){return this.engine.whenRenderingDone()}}]),e}()).\u0275fac=function(e){return new(e||pv)(Ri(Pl),Ri(Gg),Ri(Ac))},pv.\u0275prov=Re({token:pv,factory:pv.\u0275fac}),pv),yv=function(){function e(t,n,i){A(this,e),this.namespaceId=t,this.delegate=n,this.engine=i,this.destroyNode=this.delegate.destroyNode?function(e){return n.destroyNode(e)}:null}return m(e,[{key:"data",get:function(){return this.delegate.data}},{key:"destroy",value:function(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}},{key:"createElement",value:function(e,t){return this.delegate.createElement(e,t)}},{key:"createComment",value:function(e){return this.delegate.createComment(e)}},{key:"createText",value:function(e){return this.delegate.createText(e)}},{key:"appendChild",value:function(e,t){this.delegate.appendChild(e,t),this.engine.onInsert(this.namespaceId,t,e,!1)}},{key:"insertBefore",value:function(e,t,n){var i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];this.delegate.insertBefore(e,t,n),this.engine.onInsert(this.namespaceId,t,e,i)}},{key:"removeChild",value:function(e,t,n){this.engine.onRemove(this.namespaceId,t,this.delegate,n)}},{key:"selectRootElement",value:function(e,t){return this.delegate.selectRootElement(e,t)}},{key:"parentNode",value:function(e){return this.delegate.parentNode(e)}},{key:"nextSibling",value:function(e){return this.delegate.nextSibling(e)}},{key:"setAttribute",value:function(e,t,n,i){this.delegate.setAttribute(e,t,n,i)}},{key:"removeAttribute",value:function(e,t,n){this.delegate.removeAttribute(e,t,n)}},{key:"addClass",value:function(e,t){this.delegate.addClass(e,t)}},{key:"removeClass",value:function(e,t){this.delegate.removeClass(e,t)}},{key:"setStyle",value:function(e,t,n,i){this.delegate.setStyle(e,t,n,i)}},{key:"removeStyle",value:function(e,t,n){this.delegate.removeStyle(e,t,n)}},{key:"setProperty",value:function(e,t,n){"@"==t.charAt(0)&&"@.disabled"==t?this.disableAnimations(e,!!n):this.delegate.setProperty(e,t,n)}},{key:"setValue",value:function(e,t){this.delegate.setValue(e,t)}},{key:"listen",value:function(e,t,n){return this.delegate.listen(e,t,n)}},{key:"disableAnimations",value:function(e,t){this.engine.disableAnimations(e,t)}}]),e}(),bv=function(e){r(n,e);var t=a(n);function n(e,i,r,o){var a;return A(this,n),(a=t.call(this,i,r,o)).factory=e,a.namespaceId=i,a}return m(n,[{key:"setProperty",value:function(e,t,n){"@"==t.charAt(0)?"."==t.charAt(1)&&"@.disabled"==t?this.disableAnimations(e,n=void 0===n||!!n):this.engine.process(this.namespaceId,e,t.substr(1),n):this.delegate.setProperty(e,t,n)}},{key:"listen",value:function(e,t,n){var i,r,o=this;if("@"==t.charAt(0)){var a,s=function(e){switch(e){case"body":return document.body;case"document":return document;case"window":return window;default:return e}}(e),l=t.substr(1),u="";return"@"!=l.charAt(0)&&(r=(i=l).indexOf("."),l=(a=f([i.substring(0,r),i.substr(r+1)],2))[0],u=a[1]),this.engine.listen(this.namespaceId,s,l,u,function(e){o.factory.scheduleListenerCallback(e._data||-1,n,e)})}return this.delegate.listen(e,t,n)}}]),n}(yv),wv=((gv=function(e){r(n,e);var t=a(n);function n(e,i,r){return A(this,n),t.call(this,e.body,i,r)}return n}(Gg)).\u0275fac=function(e){return new(e||gv)(Ri(od),Ri(Dp),Ri(mg))},gv.\u0275prov=Re({token:gv,factory:gv.\u0275fac}),gv),_v=new mi("AnimationModuleType"),kv=[{provide:Dp,useFactory:function(){return"function"==typeof lv()?new sv:new ov}},{provide:_v,useValue:"BrowserAnimations"},{provide:Qf,useClass:cv},{provide:mg,useFactory:function(){return new yg}},{provide:Gg,useClass:wv},{provide:Pl,useFactory:function(e,t,n){return new mv(e,t,n)},deps:[Ef,Gg,Ac]}],xv=((vv=function e(){A(this,e)}).\u0275fac=function(e){return new(e||vv)},vv.\u0275mod=mt({type:vv}),vv.\u0275inj=Fe({providers:kv,imports:[Zf]}),vv);function Av(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(1===t.length){var i=t[0];if(S(i))return Cv(i,null);if(P(i)&&Object.getPrototypeOf(i)===Object.prototype){var r=Object.keys(i);return Cv(r.map(function(e){return i[e]}),r)}}if("function"==typeof t[t.length-1]){var o=t.pop();return Cv(t=1===t.length&&S(t[0])?t[0]:t,null).pipe(Y(function(e){return o.apply(void 0,y(e))}))}return Cv(t,null)}function Cv(e,t){return new V(function(n){var i=e.length;if(0!==i)for(var r=new Array(i),o=0,a=0,s=function(s){var l=ie(e[s]),u=!1;n.add(l.subscribe({next:function(e){u||(u=!0,a++),r[s]=e},error:function(e){return n.error(e)},complete:function(){++o!==i&&u||(a===i&&n.next(t?t.reduce(function(e,t,n){return e[t]=r[n],e},{}):r),n.complete())}}))},l=0;l<i;l++)s(l);else n.complete()})}var Sv,Pv,Ev=function e(){A(this,e)},Dv=new mi("NgValueAccessor"),Ov={provide:Dv,useExisting:Pe(function(){return Mv}),multi:!0},Mv=((Sv=function(e){r(n,e);var t=a(n);function n(e,i){var r;return A(this,n),(r=t.call(this))._renderer=e,r._elementRef=i,r.onChange=function(e){},r.onTouched=function(){},r}return m(n,[{key:"writeValue",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"checked",e)}},{key:"registerOnChange",value:function(e){this.onChange=e}},{key:"registerOnTouched",value:function(e){this.onTouched=e}},{key:"setDisabledState",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}}]),n}(Ev)).\u0275fac=function(e){return new(e||Sv)(rs(El),rs(Cl))},Sv.\u0275dir=bt({type:Sv,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(e,t){1&e&&ms("change",function(e){return t.onChange(e.target.checked)})("blur",function(){return t.onTouched()})},features:[yl([Ov]),Va]}),Sv),Tv={provide:Dv,useExisting:Pe(function(){return Rv}),multi:!0},Iv=new mi("CompositionEventMode"),Rv=((Pv=function(){function e(t,n,i){var r;A(this,e),this._renderer=t,this._elementRef=n,this._compositionMode=i,this.onChange=function(e){},this.onTouched=function(){},this._composing=!1,null==this._compositionMode&&(this._compositionMode=(r=id()?id().getUserAgent():"",!/android (\d+)/.test(r.toLowerCase())))}return m(e,[{key:"writeValue",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==e?"":e)}},{key:"registerOnChange",value:function(e){this.onChange=e}},{key:"registerOnTouched",value:function(e){this.onTouched=e}},{key:"setDisabledState",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}},{key:"_handleInput",value:function(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}},{key:"_compositionStart",value:function(){this._composing=!0}},{key:"_compositionEnd",value:function(e){this._composing=!1,this._compositionMode&&this.onChange(e)}}]),e}()).\u0275fac=function(e){return new(e||Pv)(rs(El),rs(Cl),rs(Iv,8))},Pv.\u0275dir=bt({type:Pv,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(e,t){1&e&&ms("input",function(e){return t._handleInput(e.target.value)})("blur",function(){return t.onTouched()})("compositionstart",function(){return t._compositionStart()})("compositionend",function(e){return t._compositionEnd(e.target.value)})},features:[yl([Tv])]}),Pv);function Lv(e){return null==e||0===e.length}function Fv(e){return null!=e&&"number"==typeof e.length}var Bv=new mi("NgValidators"),Vv=new mi("NgAsyncValidators"),zv=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,Nv=function(){function e(){A(this,e)}return m(e,null,[{key:"min",value:function(e){return function(e){return function(t){if(Lv(t.value)||Lv(e))return null;var n=parseFloat(t.value);return!isNaN(n)&&n<e?{min:{min:e,actual:t.value}}:null}}(e)}},{key:"max",value:function(e){return function(e){return function(t){if(Lv(t.value)||Lv(e))return null;var n=parseFloat(t.value);return!isNaN(n)&&n>e?{max:{max:e,actual:t.value}}:null}}(e)}},{key:"required",value:function(e){return Hv(e)}},{key:"requiredTrue",value:function(e){return function(e){return!0===e.value?null:{required:!0}}(e)}},{key:"email",value:function(e){return function(e){return Lv(e.value)||zv.test(e.value)?null:{email:!0}}(e)}},{key:"minLength",value:function(e){return function(e){return function(t){return Lv(t.value)||!Fv(t.value)?null:t.value.length<e?{minlength:{requiredLength:e,actualLength:t.value.length}}:null}}(e)}},{key:"maxLength",value:function(e){return jv(e)}},{key:"pattern",value:function(e){return Uv(e)}},{key:"nullValidator",value:function(e){return null}},{key:"compose",value:function(e){return Xv(e)}},{key:"composeAsync",value:function(e){return Jv(e)}}]),e}();function Hv(e){return Lv(e.value)?{required:!0}:null}function jv(e){return function(t){return Fv(t.value)&&t.value.length>e?{maxlength:{requiredLength:e,actualLength:t.value.length}}:null}}function Uv(e){return e?("string"==typeof e?(n="","^"!==e.charAt(0)&&(n+="^"),n+=e,"$"!==e.charAt(e.length-1)&&(n+="$"),t=new RegExp(n)):(n=e.toString(),t=e),function(e){if(Lv(e.value))return null;var i=e.value;return t.test(i)?null:{pattern:{requiredPattern:n,actualValue:i}}}):Wv;var t,n}function Wv(e){return null}function Gv(e){return null!=e}function qv(e){var t=ps(e)?ie(e):e;return vs(t),t}function Yv(e){var t={};return e.forEach(function(e){t=null!=e?Object.assign(Object.assign({},t),e):t}),0===Object.keys(t).length?null:t}function Zv(e,t){return t.map(function(t){return t(e)})}function Qv(e){return e.map(function(e){return function(e){return!e.validate}(e)?e:function(t){return e.validate(t)}})}function Xv(e){if(!e)return null;var t=e.filter(Gv);return 0==t.length?null:function(e){return Yv(Zv(e,t))}}function Kv(e){return null!=e?Xv(Qv(e)):null}function Jv(e){if(!e)return null;var t=e.filter(Gv);return 0==t.length?null:function(e){return Av(Zv(e,t).map(qv)).pipe(Y(Yv))}}function $v(e){return null!=e?Jv(Qv(e)):null}function em(e,t){return null===e?[t]:Array.isArray(e)?[].concat(y(e),[t]):[e,t]}function tm(e){return e._rawValidators}function nm(e){return e._rawAsyncValidators}var im,rm,om,am,sm=((rm=function(){function e(){A(this,e),this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}return m(e,[{key:"value",get:function(){return this.control?this.control.value:null}},{key:"valid",get:function(){return this.control?this.control.valid:null}},{key:"invalid",get:function(){return this.control?this.control.invalid:null}},{key:"pending",get:function(){return this.control?this.control.pending:null}},{key:"disabled",get:function(){return this.control?this.control.disabled:null}},{key:"enabled",get:function(){return this.control?this.control.enabled:null}},{key:"errors",get:function(){return this.control?this.control.errors:null}},{key:"pristine",get:function(){return this.control?this.control.pristine:null}},{key:"dirty",get:function(){return this.control?this.control.dirty:null}},{key:"touched",get:function(){return this.control?this.control.touched:null}},{key:"status",get:function(){return this.control?this.control.status:null}},{key:"untouched",get:function(){return this.control?this.control.untouched:null}},{key:"statusChanges",get:function(){return this.control?this.control.statusChanges:null}},{key:"valueChanges",get:function(){return this.control?this.control.valueChanges:null}},{key:"path",get:function(){return null}},{key:"_setValidators",value:function(e){this._rawValidators=e||[],this._composedValidatorFn=Kv(this._rawValidators)}},{key:"_setAsyncValidators",value:function(e){this._rawAsyncValidators=e||[],this._composedAsyncValidatorFn=$v(this._rawAsyncValidators)}},{key:"validator",get:function(){return this._composedValidatorFn||null}},{key:"asyncValidator",get:function(){return this._composedAsyncValidatorFn||null}},{key:"_registerOnDestroy",value:function(e){this._onDestroyCallbacks.push(e)}},{key:"_invokeOnDestroyCallbacks",value:function(){this._onDestroyCallbacks.forEach(function(e){return e()}),this._onDestroyCallbacks=[]}},{key:"reset",value:function(e){this.control&&this.control.reset(e)}},{key:"hasError",value:function(e,t){return!!this.control&&this.control.hasError(e,t)}},{key:"getError",value:function(e,t){return this.control?this.control.getError(e,t):null}}]),e}()).\u0275fac=function(e){return new(e||rm)},rm.\u0275dir=bt({type:rm}),rm),lm=((im=function(e){r(n,e);var t=a(n);function n(){return A(this,n),t.apply(this,arguments)}return m(n,[{key:"formDirective",get:function(){return null}},{key:"path",get:function(){return null}}]),n}(sm)).\u0275fac=function(e){return um(e||im)},im.\u0275dir=bt({type:im,features:[Va]}),im),um=hi(lm),cm=function(e){r(n,e);var t=a(n);function n(){var e;return A(this,n),(e=t.apply(this,arguments))._parent=null,e.name=null,e.valueAccessor=null,e}return n}(sm),dm=function(){function e(t){A(this,e),this._cd=t}return m(e,[{key:"is",value:function(e){var t,n;return!!(null===(n=null===(t=this._cd)||void 0===t?void 0:t.control)||void 0===n?void 0:n[e])}}]),e}(),hm=((am=function(e){r(n,e);var t=a(n);function n(e){return A(this,n),t.call(this,e)}return n}(dm)).\u0275fac=function(e){return new(e||am)(rs(cm,2))},am.\u0275dir=bt({type:am,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,t){2&e&&Fs("ng-untouched",t.is("untouched"))("ng-touched",t.is("touched"))("ng-pristine",t.is("pristine"))("ng-dirty",t.is("dirty"))("ng-valid",t.is("valid"))("ng-invalid",t.is("invalid"))("ng-pending",t.is("pending"))},features:[Va]}),am),fm=((om=function(e){r(n,e);var t=a(n);function n(e){return A(this,n),t.call(this,e)}return n}(dm)).\u0275fac=function(e){return new(e||om)(rs(lm,10))},om.\u0275dir=bt({type:om,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:14,hostBindings:function(e,t){2&e&&Fs("ng-untouched",t.is("untouched"))("ng-touched",t.is("touched"))("ng-pristine",t.is("pristine"))("ng-dirty",t.is("dirty"))("ng-valid",t.is("valid"))("ng-invalid",t.is("invalid"))("ng-pending",t.is("pending"))},features:[Va]}),om);function pm(e,t){return[].concat(y(t.path),[e])}function gm(e,t){ym(e,t,!0),t.valueAccessor.writeValue(e.value),function(e,t){t.valueAccessor.registerOnChange(function(n){e._pendingValue=n,e._pendingChange=!0,e._pendingDirty=!0,"change"===e.updateOn&&wm(e,t)})}(e,t),function(e,t){var n=function(e,n){t.valueAccessor.writeValue(e),n&&t.viewToModelUpdate(e)};e.registerOnChange(n),t._registerOnDestroy(function(){e._unregisterOnChange(n)})}(e,t),function(e,t){t.valueAccessor.registerOnTouched(function(){e._pendingTouched=!0,"blur"===e.updateOn&&e._pendingChange&&wm(e,t),"submit"!==e.updateOn&&e.markAsTouched()})}(e,t),function(e,t){if(t.valueAccessor.setDisabledState){var n=function(e){t.valueAccessor.setDisabledState(e)};e.registerOnDisabledChange(n),t._registerOnDestroy(function(){e._unregisterOnDisabledChange(n)})}}(e,t)}function vm(e,t){var n=function(){};t.valueAccessor&&(t.valueAccessor.registerOnChange(n),t.valueAccessor.registerOnTouched(n)),bm(e,t,!0),e&&(t._invokeOnDestroyCallbacks(),e._registerOnCollectionChange(function(){}))}function mm(e,t){e.forEach(function(e){e.registerOnValidatorChange&&e.registerOnValidatorChange(t)})}function ym(e,t,n){var i=tm(e);null!==t.validator?e.setValidators(em(i,t.validator)):"function"==typeof i&&e.setValidators([i]);var r=nm(e);if(null!==t.asyncValidator?e.setAsyncValidators(em(r,t.asyncValidator)):"function"==typeof r&&e.setAsyncValidators([r]),n){var o=function(){return e.updateValueAndValidity()};mm(t._rawValidators,o),mm(t._rawAsyncValidators,o)}}function bm(e,t,n){var i=!1;if(null!==e){if(null!==t.validator){var r=tm(e);if(Array.isArray(r)&&r.length>0){var o=r.filter(function(e){return e!==t.validator});o.length!==r.length&&(i=!0,e.setValidators(o))}}if(null!==t.asyncValidator){var a=nm(e);if(Array.isArray(a)&&a.length>0){var s=a.filter(function(e){return e!==t.asyncValidator});s.length!==a.length&&(i=!0,e.setAsyncValidators(s))}}}if(n){var l=function(){};mm(t._rawValidators,l),mm(t._rawAsyncValidators,l)}return i}function wm(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function _m(e,t){ym(e,t,!1)}function km(e,t){if(!e.hasOwnProperty("model"))return!1;var n=e.model;return!!n.isFirstChange()||!Object.is(t,n.currentValue)}function xm(e,t){e._syncPendingControls(),t.forEach(function(e){var t=e.control;"submit"===t.updateOn&&t._pendingChange&&(e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1)})}function Am(e,t){if(!t)return null;Array.isArray(t);var n=void 0,i=void 0,r=void 0;return t.forEach(function(e){e.constructor===Rv?n=e:Object.getPrototypeOf(e.constructor)===Ev?i=e:r=e}),r||i||n||null}function Cm(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}function Sm(e){return(Om(e)?e.validators:e)||null}function Pm(e){return Array.isArray(e)?Kv(e):e||null}function Em(e,t){return(Om(t)?t.asyncValidators:e)||null}function Dm(e){return Array.isArray(e)?$v(e):e||null}function Om(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}var Mm,Tm,Im,Rm,Lm,Fm,Bm,Vm=function(){function e(t,n){A(this,e),this._hasOwnPendingAsyncValidator=!1,this._onCollectionChange=function(){},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=t,this._rawAsyncValidators=n,this._composedValidatorFn=Pm(this._rawValidators),this._composedAsyncValidatorFn=Dm(this._rawAsyncValidators)}return m(e,[{key:"validator",get:function(){return this._composedValidatorFn},set:function(e){this._rawValidators=this._composedValidatorFn=e}},{key:"asyncValidator",get:function(){return this._composedAsyncValidatorFn},set:function(e){this._rawAsyncValidators=this._composedAsyncValidatorFn=e}},{key:"parent",get:function(){return this._parent}},{key:"valid",get:function(){return"VALID"===this.status}},{key:"invalid",get:function(){return"INVALID"===this.status}},{key:"pending",get:function(){return"PENDING"==this.status}},{key:"disabled",get:function(){return"DISABLED"===this.status}},{key:"enabled",get:function(){return"DISABLED"!==this.status}},{key:"dirty",get:function(){return!this.pristine}},{key:"untouched",get:function(){return!this.touched}},{key:"updateOn",get:function(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}},{key:"setValidators",value:function(e){this._rawValidators=e,this._composedValidatorFn=Pm(e)}},{key:"setAsyncValidators",value:function(e){this._rawAsyncValidators=e,this._composedAsyncValidatorFn=Dm(e)}},{key:"clearValidators",value:function(){this.validator=null}},{key:"clearAsyncValidators",value:function(){this.asyncValidator=null}},{key:"markAsTouched",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!0,this._parent&&!e.onlySelf&&this._parent.markAsTouched(e)}},{key:"markAllAsTouched",value:function(){this.markAsTouched({onlySelf:!0}),this._forEachChild(function(e){return e.markAllAsTouched()})}},{key:"markAsUntouched",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!1,this._pendingTouched=!1,this._forEachChild(function(e){e.markAsUntouched({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}},{key:"markAsDirty",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!1,this._parent&&!e.onlySelf&&this._parent.markAsDirty(e)}},{key:"markAsPristine",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!0,this._pendingDirty=!1,this._forEachChild(function(e){e.markAsPristine({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}},{key:"markAsPending",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.status="PENDING",!1!==e.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!e.onlySelf&&this._parent.markAsPending(e)}},{key:"disable",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this._parentMarkedDirty(e.onlySelf);this.status="DISABLED",this.errors=null,this._forEachChild(function(t){t.disable(Object.assign(Object.assign({},e),{onlySelf:!0}))}),this._updateValue(),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},e),{skipPristineCheck:t})),this._onDisabledChange.forEach(function(e){return e(!0)})}},{key:"enable",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this._parentMarkedDirty(e.onlySelf);this.status="VALID",this._forEachChild(function(t){t.enable(Object.assign(Object.assign({},e),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},e),{skipPristineCheck:t})),this._onDisabledChange.forEach(function(e){return e(!1)})}},{key:"_updateAncestors",value:function(e){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}},{key:"setParent",value:function(e){this._parent=e}},{key:"updateValueAndValidity",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),"VALID"!==this.status&&"PENDING"!==this.status||this._runAsyncValidator(e.emitEvent)),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(e)}},{key:"_updateTreeValidity",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{emitEvent:!0};this._forEachChild(function(t){return t._updateTreeValidity(e)}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}},{key:"_setInitialStatus",value:function(){this.status=this._allControlsDisabled()?"DISABLED":"VALID"}},{key:"_runValidator",value:function(){return this.validator?this.validator(this):null}},{key:"_runAsyncValidator",value:function(e){var t=this;if(this.asyncValidator){this.status="PENDING",this._hasOwnPendingAsyncValidator=!0;var n=qv(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(function(n){t._hasOwnPendingAsyncValidator=!1,t.setErrors(n,{emitEvent:e})})}}},{key:"_cancelExistingSubscription",value:function(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}},{key:"setErrors",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.errors=e,this._updateControlsErrors(!1!==t.emitEvent)}},{key:"get",value:function(e){return function(e,t,n){if(null==t)return null;if(Array.isArray(t)||(t=t.split(".")),Array.isArray(t)&&0===t.length)return null;var i=e;return t.forEach(function(e){i=i instanceof Nm?i.controls.hasOwnProperty(e)?i.controls[e]:null:i instanceof Hm&&i.at(e)||null}),i}(this,e)}},{key:"getError",value:function(e,t){var n=t?this.get(t):this;return n&&n.errors?n.errors[e]:null}},{key:"hasError",value:function(e,t){return!!this.getError(e,t)}},{key:"root",get:function(){for(var e=this;e._parent;)e=e._parent;return e}},{key:"_updateControlsErrors",value:function(e){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(e)}},{key:"_initObservables",value:function(){this.valueChanges=new Fu,this.statusChanges=new Fu}},{key:"_calculateStatus",value:function(){return this._allControlsDisabled()?"DISABLED":this.errors?"INVALID":this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus("PENDING")?"PENDING":this._anyControlsHaveStatus("INVALID")?"INVALID":"VALID"}},{key:"_anyControlsHaveStatus",value:function(e){return this._anyControls(function(t){return t.status===e})}},{key:"_anyControlsDirty",value:function(){return this._anyControls(function(e){return e.dirty})}},{key:"_anyControlsTouched",value:function(){return this._anyControls(function(e){return e.touched})}},{key:"_updatePristine",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!this._anyControlsDirty(),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}},{key:"_updateTouched",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=this._anyControlsTouched(),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}},{key:"_isBoxedValue",value:function(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e}},{key:"_registerOnCollectionChange",value:function(e){this._onCollectionChange=e}},{key:"_setUpdateStrategy",value:function(e){Om(e)&&null!=e.updateOn&&(this._updateOn=e.updateOn)}},{key:"_parentMarkedDirty",value:function(e){return!e&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}]),e}(),zm=function(e){r(n,e);var t=a(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r=arguments.length>1?arguments[1]:void 0,o=arguments.length>2?arguments[2]:void 0;return A(this,n),(e=t.call(this,Sm(r),Em(o,r)))._onChange=[],e._applyFormState(i),e._setUpdateStrategy(r),e._initObservables(),e.updateValueAndValidity({onlySelf:!0,emitEvent:!!o}),e}return m(n,[{key:"setValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.value=this._pendingValue=e,this._onChange.length&&!1!==n.emitModelToViewChange&&this._onChange.forEach(function(e){return e(t.value,!1!==n.emitViewToModelChange)}),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.setValue(e,t)}},{key:"reset",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._applyFormState(e),this.markAsPristine(t),this.markAsUntouched(t),this.setValue(this.value,t),this._pendingChange=!1}},{key:"_updateValue",value:function(){}},{key:"_anyControls",value:function(e){return!1}},{key:"_allControlsDisabled",value:function(){return this.disabled}},{key:"registerOnChange",value:function(e){this._onChange.push(e)}},{key:"_unregisterOnChange",value:function(e){Cm(this._onChange,e)}},{key:"registerOnDisabledChange",value:function(e){this._onDisabledChange.push(e)}},{key:"_unregisterOnDisabledChange",value:function(e){Cm(this._onDisabledChange,e)}},{key:"_forEachChild",value:function(e){}},{key:"_syncPendingControls",value:function(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}},{key:"_applyFormState",value:function(e){this._isBoxedValue(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e}}]),n}(Vm),Nm=function(e){r(n,e);var t=a(n);function n(e,i,r){var o;return A(this,n),(o=t.call(this,Sm(i),Em(r,i))).controls=e,o._initObservables(),o._setUpdateStrategy(i),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!!r}),o}return m(n,[{key:"registerControl",value:function(e,t){return this.controls[e]?this.controls[e]:(this.controls[e]=t,t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange),t)}},{key:"addControl",value:function(e,t){this.registerControl(e,t),this.updateValueAndValidity(),this._onCollectionChange()}},{key:"removeControl",value:function(e){this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),delete this.controls[e],this.updateValueAndValidity(),this._onCollectionChange()}},{key:"setControl",value:function(e,t){this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),delete this.controls[e],t&&this.registerControl(e,t),this.updateValueAndValidity(),this._onCollectionChange()}},{key:"contains",value:function(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled}},{key:"setValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._checkAllValuesPresent(e),Object.keys(e).forEach(function(i){t._throwIfControlMissing(i),t.controls[i].setValue(e[i],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};null!=e&&(Object.keys(e).forEach(function(i){t.controls[i]&&t.controls[i].patchValue(e[i],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n))}},{key:"reset",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild(function(n,i){n.reset(e[i],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}},{key:"getRawValue",value:function(){return this._reduceChildren({},function(e,t,n){return e[n]=t instanceof zm?t.value:t.getRawValue(),e})}},{key:"_syncPendingControls",value:function(){var e=this._reduceChildren(!1,function(e,t){return!!t._syncPendingControls()||e});return e&&this.updateValueAndValidity({onlySelf:!0}),e}},{key:"_throwIfControlMissing",value:function(e){if(!Object.keys(this.controls).length)throw new Error("\n        There are no form controls registered with this group yet. If you're using ngModel,\n        you may want to check next tick (e.g. use setTimeout).\n      ");if(!this.controls[e])throw new Error("Cannot find form control with name: ".concat(e,"."))}},{key:"_forEachChild",value:function(e){var t=this;Object.keys(this.controls).forEach(function(n){var i=t.controls[n];i&&e(i,n)})}},{key:"_setUpControls",value:function(){var e=this;this._forEachChild(function(t){t.setParent(e),t._registerOnCollectionChange(e._onCollectionChange)})}},{key:"_updateValue",value:function(){this.value=this._reduceValue()}},{key:"_anyControls",value:function(e){for(var t=0,n=Object.keys(this.controls);t<n.length;t++){var i=n[t],r=this.controls[i];if(this.contains(i)&&e(r))return!0}return!1}},{key:"_reduceValue",value:function(){var e=this;return this._reduceChildren({},function(t,n,i){return(n.enabled||e.disabled)&&(t[i]=n.value),t})}},{key:"_reduceChildren",value:function(e,t){var n=e;return this._forEachChild(function(e,i){n=t(n,e,i)}),n}},{key:"_allControlsDisabled",value:function(){for(var e=0,t=Object.keys(this.controls);e<t.length;e++){var n=t[e];if(this.controls[n].enabled)return!1}return Object.keys(this.controls).length>0||this.disabled}},{key:"_checkAllValuesPresent",value:function(e){this._forEachChild(function(t,n){if(void 0===e[n])throw new Error("Must supply a value for form control with name: '".concat(n,"'."))})}}]),n}(Vm),Hm=function(e){r(n,e);var t=a(n);function n(e,i,r){var o;return A(this,n),(o=t.call(this,Sm(i),Em(r,i))).controls=e,o._initObservables(),o._setUpdateStrategy(i),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!!r}),o}return m(n,[{key:"at",value:function(e){return this.controls[e]}},{key:"push",value:function(e){this.controls.push(e),this._registerControl(e),this.updateValueAndValidity(),this._onCollectionChange()}},{key:"insert",value:function(e,t){this.controls.splice(e,0,t),this._registerControl(t),this.updateValueAndValidity()}},{key:"removeAt",value:function(e){this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),this.controls.splice(e,1),this.updateValueAndValidity()}},{key:"setControl",value:function(e,t){this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),this.controls.splice(e,1),t&&(this.controls.splice(e,0,t),this._registerControl(t)),this.updateValueAndValidity(),this._onCollectionChange()}},{key:"length",get:function(){return this.controls.length}},{key:"setValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._checkAllValuesPresent(e),e.forEach(function(e,i){t._throwIfControlMissing(i),t.at(i).setValue(e,{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};null!=e&&(e.forEach(function(e,i){t.at(i)&&t.at(i).patchValue(e,{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n))}},{key:"reset",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild(function(n,i){n.reset(e[i],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}},{key:"getRawValue",value:function(){return this.controls.map(function(e){return e instanceof zm?e.value:e.getRawValue()})}},{key:"clear",value:function(){this.controls.length<1||(this._forEachChild(function(e){return e._registerOnCollectionChange(function(){})}),this.controls.splice(0),this.updateValueAndValidity())}},{key:"_syncPendingControls",value:function(){var e=this.controls.reduce(function(e,t){return!!t._syncPendingControls()||e},!1);return e&&this.updateValueAndValidity({onlySelf:!0}),e}},{key:"_throwIfControlMissing",value:function(e){if(!this.controls.length)throw new Error("\n        There are no form controls registered with this array yet. If you're using ngModel,\n        you may want to check next tick (e.g. use setTimeout).\n      ");if(!this.at(e))throw new Error("Cannot find form control at index "+e)}},{key:"_forEachChild",value:function(e){this.controls.forEach(function(t,n){e(t,n)})}},{key:"_updateValue",value:function(){var e=this;this.value=this.controls.filter(function(t){return t.enabled||e.disabled}).map(function(e){return e.value})}},{key:"_anyControls",value:function(e){return this.controls.some(function(t){return t.enabled&&e(t)})}},{key:"_setUpControls",value:function(){var e=this;this._forEachChild(function(t){return e._registerControl(t)})}},{key:"_checkAllValuesPresent",value:function(e){this._forEachChild(function(t,n){if(void 0===e[n])throw new Error("Must supply a value for form control at index: ".concat(n,"."))})}},{key:"_allControlsDisabled",value:function(){var e,t=h(this.controls);try{for(t.s();!(e=t.n()).done;){if(e.value.enabled)return!1}}catch(n){t.e(n)}finally{t.f()}return this.controls.length>0||this.disabled}},{key:"_registerControl",value:function(e){e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)}}]),n}(Vm),jm={provide:lm,useExisting:Pe(function(){return Wm})},Um=Promise.resolve(null),Wm=((Mm=function(e){r(n,e);var t=a(n);function n(e,i){var r;return A(this,n),(r=t.call(this)).submitted=!1,r._directives=[],r.ngSubmit=new Fu,r.form=new Nm({},Kv(e),$v(i)),r}return m(n,[{key:"ngAfterViewInit",value:function(){this._setUpdateStrategy()}},{key:"formDirective",get:function(){return this}},{key:"control",get:function(){return this.form}},{key:"path",get:function(){return[]}},{key:"controls",get:function(){return this.form.controls}},{key:"addControl",value:function(e){var t=this;Um.then(function(){var n=t._findContainer(e.path);e.control=n.registerControl(e.name,e.control),gm(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),t._directives.push(e)})}},{key:"getControl",value:function(e){return this.form.get(e.path)}},{key:"removeControl",value:function(e){var t=this;Um.then(function(){var n=t._findContainer(e.path);n&&n.removeControl(e.name),Cm(t._directives,e)})}},{key:"addFormGroup",value:function(e){var t=this;Um.then(function(){var n=t._findContainer(e.path),i=new Nm({});_m(i,e),n.registerControl(e.name,i),i.updateValueAndValidity({emitEvent:!1})})}},{key:"removeFormGroup",value:function(e){var t=this;Um.then(function(){var n=t._findContainer(e.path);n&&n.removeControl(e.name)})}},{key:"getFormGroup",value:function(e){return this.form.get(e.path)}},{key:"updateModel",value:function(e,t){var n=this;Um.then(function(){n.form.get(e.path).setValue(t)})}},{key:"setValue",value:function(e){this.control.setValue(e)}},{key:"onSubmit",value:function(e){return this.submitted=!0,xm(this.form,this._directives),this.ngSubmit.emit(e),!1}},{key:"onReset",value:function(){this.resetForm()}},{key:"resetForm",value:function(e){this.form.reset(e),this.submitted=!1}},{key:"_setUpdateStrategy",value:function(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}},{key:"_findContainer",value:function(e){return e.pop(),e.length?this.form.get(e):this.form}}]),n}(lm)).\u0275fac=function(e){return new(e||Mm)(rs(Bv,10),rs(Vv,10))},Mm.\u0275dir=bt({type:Mm,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(e,t){1&e&&ms("submit",function(e){return t.onSubmit(e)})("reset",function(){return t.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[yl([jm]),Va]}),Mm),Gm={provide:cm,useExisting:Pe(function(){return Ym})},qm=Promise.resolve(null),Ym=((Rm=function(e){r(n,e);var t=a(n);function n(e,i,r,o){var a;return A(this,n),(a=t.call(this)).control=new zm,a._registered=!1,a.update=new Fu,a._parent=e,a._setValidators(i),a._setAsyncValidators(r),a.valueAccessor=Am(0,o),a}return m(n,[{key:"ngOnChanges",value:function(e){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in e&&this._updateDisabled(e),km(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}},{key:"ngOnDestroy",value:function(){this.formDirective&&this.formDirective.removeControl(this)}},{key:"path",get:function(){return this._parent?pm(this.name,this._parent):[this.name]}},{key:"formDirective",get:function(){return this._parent?this._parent.formDirective:null}},{key:"viewToModelUpdate",value:function(e){this.viewModel=e,this.update.emit(e)}},{key:"_setUpControl",value:function(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}},{key:"_setUpdateStrategy",value:function(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}},{key:"_isStandalone",value:function(){return!this._parent||!(!this.options||!this.options.standalone)}},{key:"_setUpStandalone",value:function(){gm(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}},{key:"_checkForErrors",value:function(){this._isStandalone()||this._checkParentType(),this._checkName()}},{key:"_checkParentType",value:function(){}},{key:"_checkName",value:function(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}},{key:"_updateValue",value:function(e){var t=this;qm.then(function(){t.control.setValue(e,{emitViewToModelChange:!1})})}},{key:"_updateDisabled",value:function(e){var t=this,n=e.isDisabled.currentValue,i=""===n||n&&"false"!==n;qm.then(function(){i&&!t.control.disabled?t.control.disable():!i&&t.control.disabled&&t.control.enable()})}}]),n}(cm)).\u0275fac=function(e){return new(e||Rm)(rs(lm,9),rs(Bv,10),rs(Vv,10),rs(Dv,10))},Rm.\u0275dir=bt({type:Rm,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[yl([Gm]),Va,Mt]}),Rm),Zm=((Im=function e(){A(this,e)}).\u0275fac=function(e){return new(e||Im)},Im.\u0275dir=bt({type:Im,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),Im),Qm=((Tm=function e(){A(this,e)}).\u0275fac=function(e){return new(e||Tm)},Tm.\u0275mod=mt({type:Tm}),Tm.\u0275inj=Fe({}),Tm),Xm=new mi("NgModelWithFormControlWarning"),Km={provide:cm,useExisting:Pe(function(){return Jm})},Jm=((Lm=function(e){r(n,e);var t=a(n);function n(e,i,r,o){var a;return A(this,n),(a=t.call(this))._ngModelWarningConfig=o,a.update=new Fu,a._ngModelWarningSent=!1,a._setValidators(e),a._setAsyncValidators(i),a.valueAccessor=Am(0,r),a}return m(n,[{key:"isDisabled",set:function(e){}},{key:"ngOnChanges",value:function(e){if(this._isControlChanged(e)){var t=e.form.previousValue;t&&vm(t,this,!1),gm(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})}km(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}},{key:"ngOnDestroy",value:function(){this.form&&vm(this.form,this,!1)}},{key:"path",get:function(){return[]}},{key:"control",get:function(){return this.form}},{key:"viewToModelUpdate",value:function(e){this.viewModel=e,this.update.emit(e)}},{key:"_isControlChanged",value:function(e){return e.hasOwnProperty("form")}}]),n}(cm)).\u0275fac=function(e){return new(e||Lm)(rs(Bv,10),rs(Vv,10),rs(Dv,10),rs(Xm,8))},Lm.\u0275dir=bt({type:Lm,selectors:[["","formControl",""]],inputs:{isDisabled:["disabled","isDisabled"],form:["formControl","form"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[yl([Km]),Va,Mt]}),Lm._ngModelWarningSentOnce=!1,Lm),$m={provide:lm,useExisting:Pe(function(){return ey})},ey=((Fm=function(e){r(n,e);var t=a(n);function n(e,i){var r;return A(this,n),(r=t.call(this)).validators=e,r.asyncValidators=i,r.submitted=!1,r._onCollectionChange=function(){return r._updateDomValue()},r.directives=[],r.form=null,r.ngSubmit=new Fu,r._setValidators(e),r._setAsyncValidators(i),r}return m(n,[{key:"ngOnChanges",value:function(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}},{key:"ngOnDestroy",value:function(){this.form&&(bm(this.form,this,!1),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(function(){}))}},{key:"formDirective",get:function(){return this}},{key:"control",get:function(){return this.form}},{key:"path",get:function(){return[]}},{key:"addControl",value:function(e){var t=this.form.get(e.path);return gm(t,e),t.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),t}},{key:"getControl",value:function(e){return this.form.get(e.path)}},{key:"removeControl",value:function(e){vm(e.control||null,e,!1),Cm(this.directives,e)}},{key:"addFormGroup",value:function(e){this._setUpFormContainer(e)}},{key:"removeFormGroup",value:function(e){this._cleanUpFormContainer(e)}},{key:"getFormGroup",value:function(e){return this.form.get(e.path)}},{key:"addFormArray",value:function(e){this._setUpFormContainer(e)}},{key:"removeFormArray",value:function(e){this._cleanUpFormContainer(e)}},{key:"getFormArray",value:function(e){return this.form.get(e.path)}},{key:"updateModel",value:function(e,t){this.form.get(e.path).setValue(t)}},{key:"onSubmit",value:function(e){return this.submitted=!0,xm(this.form,this.directives),this.ngSubmit.emit(e),!1}},{key:"onReset",value:function(){this.resetForm()}},{key:"resetForm",value:function(e){this.form.reset(e),this.submitted=!1}},{key:"_updateDomValue",value:function(){var e=this;this.directives.forEach(function(t){var n=t.control,i=e.form.get(t.path);n!==i&&(vm(n||null,t),i instanceof zm&&(gm(i,t),t.control=i))}),this.form._updateTreeValidity({emitEvent:!1})}},{key:"_setUpFormContainer",value:function(e){var t=this.form.get(e.path);_m(t,e),t.updateValueAndValidity({emitEvent:!1})}},{key:"_cleanUpFormContainer",value:function(e){if(this.form){var t=this.form.get(e.path);t&&function(e,t){return bm(e,t,!1)}(t,e)&&t.updateValueAndValidity({emitEvent:!1})}}},{key:"_updateRegistrations",value:function(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(function(){})}},{key:"_updateValidators",value:function(){ym(this.form,this,!1),this._oldForm&&bm(this._oldForm,this,!1)}},{key:"_checkFormPresent",value:function(){}}]),n}(lm)).\u0275fac=function(e){return new(e||Fm)(rs(Bv,10),rs(Vv,10))},Fm.\u0275dir=bt({type:Fm,selectors:[["","formGroup",""]],hostBindings:function(e,t){1&e&&ms("submit",function(e){return t.onSubmit(e)})("reset",function(){return t.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[yl([$m]),Va,Mt]}),Fm),ty={provide:cm,useExisting:Pe(function(){return ny})},ny=((Bm=function(e){r(n,e);var t=a(n);function n(e,i,r,o,a){var s;return A(this,n),(s=t.call(this))._ngModelWarningConfig=a,s._added=!1,s.update=new Fu,s._ngModelWarningSent=!1,s._parent=e,s._setValidators(i),s._setAsyncValidators(r),s.valueAccessor=Am(0,o),s}return m(n,[{key:"isDisabled",set:function(e){}},{key:"ngOnChanges",value:function(e){this._added||this._setUpControl(),km(e,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}},{key:"ngOnDestroy",value:function(){this.formDirective&&this.formDirective.removeControl(this)}},{key:"viewToModelUpdate",value:function(e){this.viewModel=e,this.update.emit(e)}},{key:"path",get:function(){return pm(null==this.name?this.name:this.name.toString(),this._parent)}},{key:"formDirective",get:function(){return this._parent?this._parent.formDirective:null}},{key:"_checkParentType",value:function(){}},{key:"_setUpControl",value:function(){this._checkParentType(),this.control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0}}]),n}(cm)).\u0275fac=function(e){return new(e||Bm)(rs(lm,13),rs(Bv,10),rs(Vv,10),rs(Dv,10),rs(Xm,8))},Bm.\u0275dir=bt({type:Bm,selectors:[["","formControlName",""]],inputs:{isDisabled:["disabled","isDisabled"],name:["formControlName","name"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[yl([ty]),Va,Mt]}),Bm._ngModelWarningSentOnce=!1,Bm),iy={provide:Dv,useExisting:Pe(function(){return sy}),multi:!0};function ry(e,t){return null==e?""+t:(t&&"object"==typeof t&&(t="Object"),"".concat(e,": ").concat(t).slice(0,50))}var oy,ay,sy=((ay=function(e){r(n,e);var t=a(n);function n(e,i){var r;return A(this,n),(r=t.call(this))._renderer=e,r._elementRef=i,r._optionMap=new Map,r._idCounter=0,r.onChange=function(e){},r.onTouched=function(){},r._compareWith=Object.is,r}return m(n,[{key:"compareWith",set:function(e){this._compareWith=e}},{key:"writeValue",value:function(e){this.value=e;var t=this._getOptionId(e);null==t&&this._renderer.setProperty(this._elementRef.nativeElement,"selectedIndex",-1);var n=ry(t,e);this._renderer.setProperty(this._elementRef.nativeElement,"value",n)}},{key:"registerOnChange",value:function(e){var t=this;this.onChange=function(n){t.value=t._getOptionValue(n),e(t.value)}}},{key:"registerOnTouched",value:function(e){this.onTouched=e}},{key:"setDisabledState",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}},{key:"_registerOption",value:function(){return(this._idCounter++).toString()}},{key:"_getOptionId",value:function(e){for(var t=0,n=Array.from(this._optionMap.keys());t<n.length;t++){var i=n[t];if(this._compareWith(this._optionMap.get(i),e))return i}return null}},{key:"_getOptionValue",value:function(e){var t=function(e){return e.split(":")[0]}(e);return this._optionMap.has(t)?this._optionMap.get(t):e}}]),n}(Ev)).\u0275fac=function(e){return new(e||ay)(rs(El),rs(Cl))},ay.\u0275dir=bt({type:ay,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(e,t){1&e&&ms("change",function(e){return t.onChange(e.target.value)})("blur",function(){return t.onTouched()})},inputs:{compareWith:"compareWith"},features:[yl([iy]),Va]}),ay),ly=((oy=function(){function e(t,n,i){A(this,e),this._element=t,this._renderer=n,this._select=i,this._select&&(this.id=this._select._registerOption())}return m(e,[{key:"ngValue",set:function(e){null!=this._select&&(this._select._optionMap.set(this.id,e),this._setElementValue(ry(this.id,e)),this._select.writeValue(this._select.value))}},{key:"value",set:function(e){this._setElementValue(e),this._select&&this._select.writeValue(this._select.value)}},{key:"_setElementValue",value:function(e){this._renderer.setProperty(this._element.nativeElement,"value",e)}},{key:"ngOnDestroy",value:function(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}]),e}()).\u0275fac=function(e){return new(e||oy)(rs(Cl),rs(El),rs(sy,9))},oy.\u0275dir=bt({type:oy,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),oy),uy={provide:Dv,useExisting:Pe(function(){return wy}),multi:!0};function cy(e,t){return null==e?""+t:("string"==typeof t&&(t="'".concat(t,"'")),t&&"object"==typeof t&&(t="Object"),"".concat(e,": ").concat(t).slice(0,50))}var dy,hy,fy,py,gy,vy,my,yy,by,wy=((hy=function(e){r(n,e);var t=a(n);function n(e,i){var r;return A(this,n),(r=t.call(this))._renderer=e,r._elementRef=i,r._optionMap=new Map,r._idCounter=0,r.onChange=function(e){},r.onTouched=function(){},r._compareWith=Object.is,r}return m(n,[{key:"compareWith",set:function(e){this._compareWith=e}},{key:"writeValue",value:function(e){var t,n=this;if(this.value=e,Array.isArray(e)){var i=e.map(function(e){return n._getOptionId(e)});t=function(e,t){e._setSelected(i.indexOf(t.toString())>-1)}}else t=function(e,t){e._setSelected(!1)};this._optionMap.forEach(t)}},{key:"registerOnChange",value:function(e){var t=this;this.onChange=function(n){var i=[];if(void 0!==n.selectedOptions)for(var r=n.selectedOptions,o=0;o<r.length;o++){var a=r.item(o),s=t._getOptionValue(a.value);i.push(s)}else for(var l=n.options,u=0;u<l.length;u++){var c=l.item(u);if(c.selected){var d=t._getOptionValue(c.value);i.push(d)}}t.value=i,e(i)}}},{key:"registerOnTouched",value:function(e){this.onTouched=e}},{key:"setDisabledState",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}},{key:"_registerOption",value:function(e){var t=(this._idCounter++).toString();return this._optionMap.set(t,e),t}},{key:"_getOptionId",value:function(e){for(var t=0,n=Array.from(this._optionMap.keys());t<n.length;t++){var i=n[t];if(this._compareWith(this._optionMap.get(i)._value,e))return i}return null}},{key:"_getOptionValue",value:function(e){var t=function(e){return e.split(":")[0]}(e);return this._optionMap.has(t)?this._optionMap.get(t)._value:e}}]),n}(Ev)).\u0275fac=function(e){return new(e||hy)(rs(El),rs(Cl))},hy.\u0275dir=bt({type:hy,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(e,t){1&e&&ms("change",function(e){return t.onChange(e.target)})("blur",function(){return t.onTouched()})},inputs:{compareWith:"compareWith"},features:[yl([uy]),Va]}),hy),_y=((dy=function(){function e(t,n,i){A(this,e),this._element=t,this._renderer=n,this._select=i,this._select&&(this.id=this._select._registerOption(this))}return m(e,[{key:"ngValue",set:function(e){null!=this._select&&(this._value=e,this._setElementValue(cy(this.id,e)),this._select.writeValue(this._select.value))}},{key:"value",set:function(e){this._select?(this._value=e,this._setElementValue(cy(this.id,e)),this._select.writeValue(this._select.value)):this._setElementValue(e)}},{key:"_setElementValue",value:function(e){this._renderer.setProperty(this._element.nativeElement,"value",e)}},{key:"_setSelected",value:function(e){this._renderer.setProperty(this._element.nativeElement,"selected",e)}},{key:"ngOnDestroy",value:function(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}]),e}()).\u0275fac=function(e){return new(e||dy)(rs(Cl),rs(El),rs(wy,9))},dy.\u0275dir=bt({type:dy,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),dy),ky={provide:Bv,useExisting:Pe(function(){return xy}),multi:!0},xy=((fy=function(){function e(){A(this,e),this._required=!1}return m(e,[{key:"required",get:function(){return this._required},set:function(e){this._required=null!=e&&!1!==e&&""+e!="false",this._onChange&&this._onChange()}},{key:"validate",value:function(e){return this.required?Hv(e):null}},{key:"registerOnValidatorChange",value:function(e){this._onChange=e}}]),e}()).\u0275fac=function(e){return new(e||fy)},fy.\u0275dir=bt({type:fy,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(e,t){2&e&&$a("required",t.required?"":null)},inputs:{required:"required"},features:[yl([ky])]}),fy),Ay={provide:Bv,useExisting:Pe(function(){return Cy}),multi:!0},Cy=((py=function(){function e(){A(this,e),this._validator=Wv}return m(e,[{key:"ngOnChanges",value:function(e){"maxlength"in e&&(this._createValidator(),this._onChange&&this._onChange())}},{key:"validate",value:function(e){return null!=this.maxlength?this._validator(e):null}},{key:"registerOnValidatorChange",value:function(e){this._onChange=e}},{key:"_createValidator",value:function(){this._validator=jv("number"==typeof this.maxlength?this.maxlength:parseInt(this.maxlength,10))}}]),e}()).\u0275fac=function(e){return new(e||py)},py.\u0275dir=bt({type:py,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(e,t){2&e&&$a("maxlength",t.maxlength?t.maxlength:null)},inputs:{maxlength:"maxlength"},features:[yl([Ay]),Mt]}),py),Sy={provide:Bv,useExisting:Pe(function(){return Py}),multi:!0},Py=((by=function(){function e(){A(this,e),this._validator=Wv}return m(e,[{key:"ngOnChanges",value:function(e){"pattern"in e&&(this._createValidator(),this._onChange&&this._onChange())}},{key:"validate",value:function(e){return this._validator(e)}},{key:"registerOnValidatorChange",value:function(e){this._onChange=e}},{key:"_createValidator",value:function(){this._validator=Uv(this.pattern)}}]),e}()).\u0275fac=function(e){return new(e||by)},by.\u0275dir=bt({type:by,selectors:[["","pattern","","formControlName",""],["","pattern","","formControl",""],["","pattern","","ngModel",""]],hostVars:1,hostBindings:function(e,t){2&e&&$a("pattern",t.pattern?t.pattern:null)},inputs:{pattern:"pattern"},features:[yl([Sy]),Mt]}),by),Ey=((yy=function e(){A(this,e)}).\u0275fac=function(e){return new(e||yy)},yy.\u0275mod=mt({type:yy}),yy.\u0275inj=Fe({imports:[[Qm]]}),yy),Dy=((my=function e(){A(this,e)}).\u0275fac=function(e){return new(e||my)},my.\u0275mod=mt({type:my}),my.\u0275inj=Fe({imports:[Ey]}),my),Oy=((vy=function(){function e(){A(this,e)}return m(e,null,[{key:"withConfig",value:function(t){return{ngModule:e,providers:[{provide:Xm,useValue:t.warnOnNgModelWithFormControl}]}}}]),e}()).\u0275fac=function(e){return new(e||vy)},vy.\u0275mod=mt({type:vy}),vy.\u0275inj=Fe({imports:[Ey]}),vy),My=((gy=function(){function e(){A(this,e)}return m(e,[{key:"group",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=this._reduceControls(e),i=null,r=null,o=void 0;return null!=t&&(function(e){return void 0!==e.asyncValidators||void 0!==e.validators||void 0!==e.updateOn}(t)?(i=null!=t.validators?t.validators:null,r=null!=t.asyncValidators?t.asyncValidators:null,o=null!=t.updateOn?t.updateOn:void 0):(i=null!=t.validator?t.validator:null,r=null!=t.asyncValidator?t.asyncValidator:null)),new Nm(n,{asyncValidators:r,updateOn:o,validators:i})}},{key:"control",value:function(e,t,n){return new zm(e,t,n)}},{key:"array",value:function(e,t,n){var i=this,r=e.map(function(e){return i._createControl(e)});return new Hm(r,t,n)}},{key:"_reduceControls",value:function(e){var t=this,n={};return Object.keys(e).forEach(function(i){n[i]=t._createControl(e[i])}),n}},{key:"_createControl",value:function(e){return e instanceof zm||e instanceof Nm||e instanceof Hm?e:Array.isArray(e)?this.control(e[0],e.length>1?e[1]:null,e.length>2?e[2]:null):this.control(e)}}]),e}()).\u0275fac=function(e){return new(e||gy)},gy.\u0275prov=Re({factory:function(){return new gy},token:gy,providedIn:Oy}),gy);function Ty(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var i=t[t.length-1];return q(i)?(t.pop(),ne(t,i)):de(t)}function Iy(e,t){return se(e,t,1)}function Ry(e,t){return function(n){return n.lift(new Ly(e,t))}}var Ly=function(){function e(t,n){A(this,e),this.predicate=t,this.thisArg=n}return m(e,[{key:"call",value:function(e,t){return t.subscribe(new Fy(e,this.predicate,this.thisArg))}}]),e}(),Fy=function(e){r(n,e);var t=a(n);function n(e,i,r){var o;return A(this,n),(o=t.call(this,e)).predicate=i,o.thisArg=r,o.count=0,o}return m(n,[{key:"_next",value:function(e){var t;try{t=this.predicate.call(this.thisArg,e,this.count++)}catch(n){return void this.destination.error(n)}t&&this.destination.next(e)}}]),n}(I),By=function e(){A(this,e)},Vy=function e(){A(this,e)},zy=function(){function e(t){var n=this;A(this,e),this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?function(){n.headers=new Map,t.split("\n").forEach(function(e){var t=e.indexOf(":");if(t>0){var i=e.slice(0,t),r=i.toLowerCase(),o=e.slice(t+1).trim();n.maybeSetNormalizedName(i,r),n.headers.has(r)?n.headers.get(r).push(o):n.headers.set(r,[o])}})}:function(){n.headers=new Map,Object.keys(t).forEach(function(e){var i=t[e],r=e.toLowerCase();"string"==typeof i&&(i=[i]),i.length>0&&(n.headers.set(r,i),n.maybeSetNormalizedName(e,r))})}:this.headers=new Map}return m(e,[{key:"has",value:function(e){return this.init(),this.headers.has(e.toLowerCase())}},{key:"get",value:function(e){this.init();var t=this.headers.get(e.toLowerCase());return t&&t.length>0?t[0]:null}},{key:"keys",value:function(){return this.init(),Array.from(this.normalizedNames.values())}},{key:"getAll",value:function(e){return this.init(),this.headers.get(e.toLowerCase())||null}},{key:"append",value:function(e,t){return this.clone({name:e,value:t,op:"a"})}},{key:"set",value:function(e,t){return this.clone({name:e,value:t,op:"s"})}},{key:"delete",value:function(e,t){return this.clone({name:e,value:t,op:"d"})}},{key:"maybeSetNormalizedName",value:function(e,t){this.normalizedNames.has(t)||this.normalizedNames.set(t,e)}},{key:"init",value:function(){var t=this;this.lazyInit&&(this.lazyInit instanceof e?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(function(e){return t.applyUpdate(e)}),this.lazyUpdate=null))}},{key:"copyFrom",value:function(e){var t=this;e.init(),Array.from(e.headers.keys()).forEach(function(n){t.headers.set(n,e.headers.get(n)),t.normalizedNames.set(n,e.normalizedNames.get(n))})}},{key:"clone",value:function(t){var n=new e;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof e?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([t]),n}},{key:"applyUpdate",value:function(e){var t=e.name.toLowerCase();switch(e.op){case"a":case"s":var n=e.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(e.name,t);var i=("a"===e.op?this.headers.get(t):void 0)||[];i.push.apply(i,y(n)),this.headers.set(t,i);break;case"d":var r=e.value;if(r){var o=this.headers.get(t);if(!o)return;0===(o=o.filter(function(e){return-1===r.indexOf(e)})).length?(this.headers.delete(t),this.normalizedNames.delete(t)):this.headers.set(t,o)}else this.headers.delete(t),this.normalizedNames.delete(t)}}},{key:"forEach",value:function(e){var t=this;this.init(),Array.from(this.normalizedNames.keys()).forEach(function(n){return e(t.normalizedNames.get(n),t.headers.get(n))})}}]),e}(),Ny=function(){function e(){A(this,e)}return m(e,[{key:"encodeKey",value:function(e){return Hy(e)}},{key:"encodeValue",value:function(e){return Hy(e)}},{key:"decodeKey",value:function(e){return decodeURIComponent(e)}},{key:"decodeValue",value:function(e){return decodeURIComponent(e)}}]),e}();function Hy(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/gi,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/%3D/gi,"=").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}var jy=function(){function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(A(this,e),this.updates=null,this.cloneFrom=null,this.encoder=n.encoder||new Ny,n.fromString){if(n.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(e,t){var n=new Map;return e.length>0&&e.replace(/^\?/,"").split("&").forEach(function(e){var i=e.indexOf("="),r=f(-1==i?[t.decodeKey(e),""]:[t.decodeKey(e.slice(0,i)),t.decodeValue(e.slice(i+1))],2),o=r[0],a=r[1],s=n.get(o)||[];s.push(a),n.set(o,s)}),n}(n.fromString,this.encoder)}else n.fromObject?(this.map=new Map,Object.keys(n.fromObject).forEach(function(e){var i=n.fromObject[e];t.map.set(e,Array.isArray(i)?i:[i])})):this.map=null}return m(e,[{key:"has",value:function(e){return this.init(),this.map.has(e)}},{key:"get",value:function(e){this.init();var t=this.map.get(e);return t?t[0]:null}},{key:"getAll",value:function(e){return this.init(),this.map.get(e)||null}},{key:"keys",value:function(){return this.init(),Array.from(this.map.keys())}},{key:"append",value:function(e,t){return this.clone({param:e,value:t,op:"a"})}},{key:"appendAll",value:function(e){var t=[];return Object.keys(e).forEach(function(n){var i=e[n];Array.isArray(i)?i.forEach(function(e){t.push({param:n,value:e,op:"a"})}):t.push({param:n,value:i,op:"a"})}),this.clone(t)}},{key:"set",value:function(e,t){return this.clone({param:e,value:t,op:"s"})}},{key:"delete",value:function(e,t){return this.clone({param:e,value:t,op:"d"})}},{key:"toString",value:function(){var e=this;return this.init(),this.keys().map(function(t){var n=e.encoder.encodeKey(t);return e.map.get(t).map(function(t){return n+"="+e.encoder.encodeValue(t)}).join("&")}).filter(function(e){return""!==e}).join("&")}},{key:"clone",value:function(t){var n=new e({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat(t),n}},{key:"init",value:function(){var e=this;null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(function(t){return e.map.set(t,e.cloneFrom.map.get(t))}),this.updates.forEach(function(t){switch(t.op){case"a":case"s":var n=("a"===t.op?e.map.get(t.param):void 0)||[];n.push(t.value),e.map.set(t.param,n);break;case"d":if(void 0===t.value){e.map.delete(t.param);break}var i=e.map.get(t.param)||[],r=i.indexOf(t.value);-1!==r&&i.splice(r,1),i.length>0?e.map.set(t.param,i):e.map.delete(t.param)}}),this.cloneFrom=this.updates=null)}}]),e}();function Uy(e){return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer}function Wy(e){return"undefined"!=typeof Blob&&e instanceof Blob}function Gy(e){return"undefined"!=typeof FormData&&e instanceof FormData}var qy=function(){function e(t,n,i,r){var o;if(A(this,e),this.url=n,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||r?(this.body=void 0!==i?i:null,o=r):o=i,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.params&&(this.params=o.params)),this.headers||(this.headers=new zy),this.params){var a=this.params.toString();if(0===a.length)this.urlWithParams=n;else{var s=n.indexOf("?");this.urlWithParams=n+(-1===s?"?":s<n.length-1?"&":"")+a}}else this.params=new jy,this.urlWithParams=n}return m(e,[{key:"serializeBody",value:function(){return null===this.body?null:Uy(this.body)||Wy(this.body)||Gy(this.body)||"string"==typeof this.body?this.body:this.body instanceof jy?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}},{key:"detectContentTypeHeader",value:function(){return null===this.body||Gy(this.body)?null:Wy(this.body)?this.body.type||null:Uy(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof jy?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||Array.isArray(this.body)?"application/json":null}},{key:"clone",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.method||this.method,i=t.url||this.url,r=t.responseType||this.responseType,o=void 0!==t.body?t.body:this.body,a=void 0!==t.withCredentials?t.withCredentials:this.withCredentials,s=void 0!==t.reportProgress?t.reportProgress:this.reportProgress,l=t.headers||this.headers,u=t.params||this.params;return void 0!==t.setHeaders&&(l=Object.keys(t.setHeaders).reduce(function(e,n){return e.set(n,t.setHeaders[n])},l)),t.setParams&&(u=Object.keys(t.setParams).reduce(function(e,n){return e.set(n,t.setParams[n])},u)),new e(n,i,o,{params:u,headers:l,reportProgress:s,responseType:r,withCredentials:a})}}]),e}(),Yy=function(e){return e[e.Sent=0]="Sent",e[e.UploadProgress=1]="UploadProgress",e[e.ResponseHeader=2]="ResponseHeader",e[e.DownloadProgress=3]="DownloadProgress",e[e.Response=4]="Response",e[e.User=5]="User",e}({}),Zy=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"OK";A(this,e),this.headers=t.headers||new zy,this.status=void 0!==t.status?t.status:n,this.statusText=t.statusText||i,this.url=t.url||null,this.ok=this.status>=200&&this.status<300},Qy=function(e){r(n,e);var t=a(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return A(this,n),(e=t.call(this,i)).type=Yy.ResponseHeader,e}return m(n,[{key:"clone",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new n({headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}}]),n}(Zy),Xy=function(e){r(n,e);var t=a(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return A(this,n),(e=t.call(this,i)).type=Yy.Response,e.body=void 0!==i.body?i.body:null,e}return m(n,[{key:"clone",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new n({body:void 0!==e.body?e.body:this.body,headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}}]),n}(Zy),Ky=function(e){r(n,e);var t=a(n);function n(e){var i;return A(this,n),(i=t.call(this,e,0,"Unknown Error")).name="HttpErrorResponse",i.ok=!1,i.message=i.status>=200&&i.status<300?"Http failure during parsing for "+(e.url||"(unknown url)"):"Http failure response for ".concat(e.url||"(unknown url)",": ").concat(e.status," ").concat(e.statusText),i.error=e.error||null,i}return n}(Zy);function Jy(e,t){return{body:t,headers:e.headers,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials}}var $y,eb,tb,nb,ib,rb,ob,ab,sb,lb=(($y=function(){function e(t){A(this,e),this.handler=t}return m(e,[{key:"request",value:function(e,t){var n,i=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e instanceof qy)n=e;else{var o=void 0;o=r.headers instanceof zy?r.headers:new zy(r.headers);var a=void 0;r.params&&(a=r.params instanceof jy?r.params:new jy({fromObject:r.params})),n=new qy(e,t,void 0!==r.body?r.body:null,{headers:o,params:a,reportProgress:r.reportProgress,responseType:r.responseType||"json",withCredentials:r.withCredentials})}var s=Ty(n).pipe(Iy(function(e){return i.handler.handle(e)}));if(e instanceof qy||"events"===r.observe)return s;var l=s.pipe(Ry(function(e){return e instanceof Xy}));switch(r.observe||"body"){case"body":switch(n.responseType){case"arraybuffer":return l.pipe(Y(function(e){if(null!==e.body&&!(e.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return e.body}));case"blob":return l.pipe(Y(function(e){if(null!==e.body&&!(e.body instanceof Blob))throw new Error("Response is not a Blob.");return e.body}));case"text":return l.pipe(Y(function(e){if(null!==e.body&&"string"!=typeof e.body)throw new Error("Response is not a string.");return e.body}));case"json":default:return l.pipe(Y(function(e){return e.body}))}case"response":return l;default:throw new Error("Unreachable: unhandled observe type ".concat(r.observe,"}"))}}},{key:"delete",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("DELETE",e,t)}},{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("GET",e,t)}},{key:"head",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("HEAD",e,t)}},{key:"jsonp",value:function(e,t){return this.request("JSONP",e,{params:(new jy).append(t,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}},{key:"options",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("OPTIONS",e,t)}},{key:"patch",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PATCH",e,Jy(n,t))}},{key:"post",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("POST",e,Jy(n,t))}},{key:"put",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PUT",e,Jy(n,t))}}]),e}()).\u0275fac=function(e){return new(e||$y)(Ri(By))},$y.\u0275prov=Re({token:$y,factory:$y.\u0275fac}),$y),ub=function(){function e(t,n){A(this,e),this.next=t,this.interceptor=n}return m(e,[{key:"handle",value:function(e){return this.interceptor.intercept(e,this.next)}}]),e}(),cb=new mi("HTTP_INTERCEPTORS"),db=((eb=function(){function e(){A(this,e)}return m(e,[{key:"intercept",value:function(e,t){return t.handle(e)}}]),e}()).\u0275fac=function(e){return new(e||eb)},eb.\u0275prov=Re({token:eb,factory:eb.\u0275fac}),eb),hb=/^\)\]\}',?\n/,fb=function e(){A(this,e)},pb=((nb=function(){function e(){A(this,e)}return m(e,[{key:"build",value:function(){return new XMLHttpRequest}}]),e}()).\u0275fac=function(e){return new(e||nb)},nb.\u0275prov=Re({token:nb,factory:nb.\u0275fac}),nb),gb=((tb=function(){function e(t){A(this,e),this.xhrFactory=t}return m(e,[{key:"handle",value:function(e){var t=this;if("JSONP"===e.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new V(function(n){var i=t.xhrFactory.build();if(i.open(e.method,e.urlWithParams),e.withCredentials&&(i.withCredentials=!0),e.headers.forEach(function(e,t){return i.setRequestHeader(e,t.join(","))}),e.headers.has("Accept")||i.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){var r=e.detectContentTypeHeader();null!==r&&i.setRequestHeader("Content-Type",r)}if(e.responseType){var o=e.responseType.toLowerCase();i.responseType="json"!==o?o:"text"}var a=e.serializeBody(),s=null,l=function(){if(null!==s)return s;var t=1223===i.status?204:i.status,n=i.statusText||"OK",r=new zy(i.getAllResponseHeaders()),o=function(e){return"responseURL"in e&&e.responseURL?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null}(i)||e.url;return s=new Qy({headers:r,status:t,statusText:n,url:o})},u=function(){var t=l(),r=t.headers,o=t.status,a=t.statusText,s=t.url,u=null;204!==o&&(u=void 0===i.response?i.responseText:i.response),0===o&&(o=u?200:0);var c=o>=200&&o<300;if("json"===e.responseType&&"string"==typeof u){var d=u;u=u.replace(hb,"");try{u=""!==u?JSON.parse(u):null}catch(h){u=d,c&&(c=!1,u={error:h,text:u})}}c?(n.next(new Xy({body:u,headers:r,status:o,statusText:a,url:s||void 0})),n.complete()):n.error(new Ky({error:u,headers:r,status:o,statusText:a,url:s||void 0}))},c=function(e){var t=l().url,r=new Ky({error:e,status:i.status||0,statusText:i.statusText||"Unknown Error",url:t||void 0});n.error(r)},d=!1,h=function(t){d||(n.next(l()),d=!0);var r={type:Yy.DownloadProgress,loaded:t.loaded};t.lengthComputable&&(r.total=t.total),"text"===e.responseType&&i.responseText&&(r.partialText=i.responseText),n.next(r)},f=function(e){var t={type:Yy.UploadProgress,loaded:e.loaded};e.lengthComputable&&(t.total=e.total),n.next(t)};return i.addEventListener("load",u),i.addEventListener("error",c),i.addEventListener("timeout",c),i.addEventListener("abort",c),e.reportProgress&&(i.addEventListener("progress",h),null!==a&&i.upload&&i.upload.addEventListener("progress",f)),i.send(a),n.next({type:Yy.Sent}),function(){i.removeEventListener("error",c),i.removeEventListener("abort",c),i.removeEventListener("load",u),i.removeEventListener("timeout",c),e.reportProgress&&(i.removeEventListener("progress",h),null!==a&&i.upload&&i.upload.removeEventListener("progress",f)),i.readyState!==i.DONE&&i.abort()}})}}]),e}()).\u0275fac=function(e){return new(e||tb)(Ri(fb))},tb.\u0275prov=Re({token:tb,factory:tb.\u0275fac}),tb),vb=new mi("XSRF_COOKIE_NAME"),mb=new mi("XSRF_HEADER_NAME"),yb=function e(){A(this,e)},bb=((sb=function(){function e(t,n,i){A(this,e),this.doc=t,this.platform=n,this.cookieName=i,this.lastCookieString="",this.lastToken=null,this.parseCount=0}return m(e,[{key:"getToken",value:function(){if("server"===this.platform)return null;var e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=uh(e,this.cookieName),this.lastCookieString=e),this.lastToken}}]),e}()).\u0275fac=function(e){return new(e||sb)(Ri(od),Ri(uc),Ri(vb))},sb.\u0275prov=Re({token:sb,factory:sb.\u0275fac}),sb),wb=((ab=function(){function e(t,n){A(this,e),this.tokenService=t,this.headerName=n}return m(e,[{key:"intercept",value:function(e,t){var n=e.url.toLowerCase();if("GET"===e.method||"HEAD"===e.method||n.startsWith("http://")||n.startsWith("https://"))return t.handle(e);var i=this.tokenService.getToken();return null===i||e.headers.has(this.headerName)||(e=e.clone({headers:e.headers.set(this.headerName,i)})),t.handle(e)}}]),e}()).\u0275fac=function(e){return new(e||ab)(Ri(yb),Ri(mb))},ab.\u0275prov=Re({token:ab,factory:ab.\u0275fac}),ab),_b=((ob=function(){function e(t,n){A(this,e),this.backend=t,this.injector=n,this.chain=null}return m(e,[{key:"handle",value:function(e){if(null===this.chain){var t=this.injector.get(cb,[]);this.chain=t.reduceRight(function(e,t){return new ub(e,t)},this.backend)}return this.chain.handle(e)}}]),e}()).\u0275fac=function(e){return new(e||ob)(Ri(Vy),Ri(Fa))},ob.\u0275prov=Re({token:ob,factory:ob.\u0275fac}),ob),kb=((rb=function(){function e(){A(this,e)}return m(e,null,[{key:"disable",value:function(){return{ngModule:e,providers:[{provide:wb,useClass:db}]}}},{key:"withOptions",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:e,providers:[t.cookieName?{provide:vb,useValue:t.cookieName}:[],t.headerName?{provide:mb,useValue:t.headerName}:[]]}}}]),e}()).\u0275fac=function(e){return new(e||rb)},rb.\u0275mod=mt({type:rb}),rb.\u0275inj=Fe({providers:[wb,{provide:cb,useExisting:wb,multi:!0},{provide:yb,useClass:bb},{provide:vb,useValue:"XSRF-TOKEN"},{provide:mb,useValue:"X-XSRF-TOKEN"}]}),rb),xb=((ib=function e(){A(this,e)}).\u0275fac=function(e){return new(e||ib)},ib.\u0275mod=mt({type:ib}),ib.\u0275inj=Fe({providers:[lb,{provide:By,useClass:_b},gb,{provide:Vy,useExisting:gb},pb,{provide:fb,useExisting:pb}],imports:[[kb.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),ib),Ab=function(e){r(n,e);var t=a(n);function n(e){var i;return A(this,n),(i=t.call(this))._value=e,i}return m(n,[{key:"value",get:function(){return this.getValue()}},{key:"_subscribe",value:function(e){var t=i(c(n.prototype),"_subscribe",this).call(this,e);return t&&!t.closed&&e.next(this._value),t}},{key:"getValue",value:function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new H;return this._value}},{key:"next",value:function(e){i(c(n.prototype),"next",this).call(this,this._value=e)}}]),n}(W),Cb=function(e){r(n,e);var t=a(n);function n(){return A(this,n),t.apply(this,arguments)}return m(n,[{key:"notifyNext",value:function(e,t,n,i,r){this.destination.next(t)}},{key:"notifyError",value:function(e,t){this.destination.error(e)}},{key:"notifyComplete",value:function(e){this.destination.complete()}}]),n}(I),Sb=function(e){r(n,e);var t=a(n);function n(e,i,r){var o;return A(this,n),(o=t.call(this)).parent=e,o.outerValue=i,o.outerIndex=r,o.index=0,o}return m(n,[{key:"_next",value:function(e){this.parent.notifyNext(this.outerValue,e,this.outerIndex,this.index++,this)}},{key:"_error",value:function(e){this.parent.notifyError(e,this),this.unsubscribe()}},{key:"_complete",value:function(){this.parent.notifyComplete(this),this.unsubscribe()}}]),n}(I);function Pb(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:new Sb(e,n,i);if(!r.closed)return t instanceof V?t.subscribe(r):te(t)(r)}var Eb={};function Db(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var i=void 0,r=void 0;return q(t[t.length-1])&&(r=t.pop()),"function"==typeof t[t.length-1]&&(i=t.pop()),1===t.length&&S(t[0])&&(t=t[0]),de(t,r).lift(new Ob(i))}var Ob=function(){function e(t){A(this,e),this.resultSelector=t}return m(e,[{key:"call",value:function(e,t){return t.subscribe(new Mb(e,this.resultSelector))}}]),e}(),Mb=function(e){r(n,e);var t=a(n);function n(e,i){var r;return A(this,n),(r=t.call(this,e)).resultSelector=i,r.active=0,r.values=[],r.observables=[],r}return m(n,[{key:"_next",value:function(e){this.values.push(Eb),this.observables.push(e)}},{key:"_complete",value:function(){var e=this.observables,t=e.length;if(0===t)this.destination.complete();else{this.active=t,this.toRespond=t;for(var n=0;n<t;n++)this.add(Pb(this,e[n],void 0,n))}}},{key:"notifyComplete",value:function(e){0==(this.active-=1)&&this.destination.complete()}},{key:"notifyNext",value:function(e,t,n){var i=this.values,r=this.toRespond?i[n]===Eb?--this.toRespond:this.toRespond:0;i[n]=t,0===r&&(this.resultSelector?this._tryResultSelector(i):this.destination.next(i.slice()))}},{key:"_tryResultSelector",value:function(e){var t;try{t=this.resultSelector.apply(this,e)}catch(n){return void this.destination.error(n)}this.destination.next(t)}}]),n}(Cb),Tb=function(){function e(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return e.prototype=Object.create(Error.prototype),e}();function Ib(){return ce(1)(Ty.apply(void 0,arguments))}var Rb=new V(function(e){return e.complete()});function Lb(e){return e?function(e){return new V(function(t){return e.schedule(function(){return t.complete()})})}(e):Rb}function Fb(e){return new V(function(t){var n;try{n=e()}catch(i){return void t.error(i)}return(n?ie(n):Lb()).subscribe(t)})}function Bb(e,t){return"function"==typeof t?function(n){return n.pipe(Bb(function(n,i){return ie(e(n,i)).pipe(Y(function(e,r){return t(n,e,i,r)}))}))}:function(t){return t.lift(new Vb(e))}}var Vb=function(){function e(t){A(this,e),this.project=t}return m(e,[{key:"call",value:function(e,t){return t.subscribe(new zb(e,this.project))}}]),e}(),zb=function(e){r(n,e);var t=a(n);function n(e,i){var r;return A(this,n),(r=t.call(this,e)).project=i,r.index=0,r}return m(n,[{key:"_next",value:function(e){var t,n=this.index++;try{t=this.project(e,n)}catch(i){return void this.destination.error(i)}this._innerSub(t)}},{key:"_innerSub",value:function(e){var t=this.innerSubscription;t&&t.unsubscribe();var n=new re(this),i=this.destination;i.add(n),this.innerSubscription=ae(e,n),this.innerSubscription!==n&&i.add(this.innerSubscription)}},{key:"_complete",value:function(){var e=this.innerSubscription;e&&!e.closed||i(c(n.prototype),"_complete",this).call(this),this.unsubscribe()}},{key:"_unsubscribe",value:function(){this.innerSubscription=void 0}},{key:"notifyComplete",value:function(){this.innerSubscription=void 0,this.isStopped&&i(c(n.prototype),"_complete",this).call(this)}},{key:"notifyNext",value:function(e){this.destination.next(e)}}]),n}(oe),Nb=function(){function e(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return e.prototype=Object.create(Error.prototype),e}();function Hb(e){return function(t){return 0===e?Lb():t.lift(new jb(e))}}var jb=function(){function e(t){if(A(this,e),this.total=t,this.total<0)throw new Nb}return m(e,[{key:"call",value:function(e,t){return t.subscribe(new Ub(e,this.total))}}]),e}(),Ub=function(e){r(n,e);var t=a(n);function n(e,i){var r;return A(this,n),(r=t.call(this,e)).total=i,r.count=0,r}return m(n,[{key:"_next",value:function(e){var t=this.total,n=++this.count;n<=t&&(this.destination.next(e),n===t&&(this.destination.complete(),this.unsubscribe()))}}]),n}(I);function Wb(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var i=t[t.length-1];return q(i)?(t.pop(),function(e){return Ib(t,e,i)}):function(e){return Ib(t,e)}}function Gb(e,t){var n=!1;return arguments.length>=2&&(n=!0),function(i){return i.lift(new qb(e,t,n))}}var qb=function(){function e(t,n){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];A(this,e),this.accumulator=t,this.seed=n,this.hasSeed=i}return m(e,[{key:"call",value:function(e,t){return t.subscribe(new Yb(e,this.accumulator,this.seed,this.hasSeed))}}]),e}(),Yb=function(e){r(n,e);var t=a(n);function n(e,i,r,o){var a;return A(this,n),(a=t.call(this,e)).accumulator=i,a._seed=r,a.hasSeed=o,a.index=0,a}return m(n,[{key:"seed",get:function(){return this._seed},set:function(e){this.hasSeed=!0,this._seed=e}},{key:"_next",value:function(e){if(this.hasSeed)return this._tryNext(e);this.seed=e,this.destination.next(e)}},{key:"_tryNext",value:function(e){var t,n=this.index++;try{t=this.accumulator(this.seed,e,n)}catch(i){this.destination.error(i)}this.seed=t,this.destination.next(t)}}]),n}(I);function Zb(e){return function(t){var n=new Qb(e),i=t.lift(n);return n.caught=i}}var Qb=function(){function e(t){A(this,e),this.selector=t}return m(e,[{key:"call",value:function(e,t){return t.subscribe(new Xb(e,this.selector,this.caught))}}]),e}(),Xb=function(e){r(n,e);var t=a(n);function n(e,i,r){var o;return A(this,n),(o=t.call(this,e)).selector=i,o.caught=r,o}return m(n,[{key:"error",value:function(e){if(!this.isStopped){var t;try{t=this.selector(e,this.caught)}catch(a){return void i(c(n.prototype),"error",this).call(this,a)}this._unsubscribeAndRecycle();var r=new re(this);this.add(r);var o=ae(t,r);o!==r&&this.add(o)}}}]),n}(oe);function Kb(e){return function(t){return 0===e?Lb():t.lift(new Jb(e))}}var Jb=function(){function e(t){if(A(this,e),this.total=t,this.total<0)throw new Nb}return m(e,[{key:"call",value:function(e,t){return t.subscribe(new $b(e,this.total))}}]),e}(),$b=function(e){r(n,e);var t=a(n);function n(e,i){var r;return A(this,n),(r=t.call(this,e)).total=i,r.ring=new Array,r.count=0,r}return m(n,[{key:"_next",value:function(e){var t=this.ring,n=this.total,i=this.count++;t.length<n?t.push(e):t[i%n]=e}},{key:"_complete",value:function(){var e=this.destination,t=this.count;if(t>0)for(var n=this.count>=this.total?this.total:this.count,i=this.ring,r=0;r<n;r++){var o=t++%n;e.next(i[o])}e.complete()}}]),n}(I);function ew(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:iw;return function(t){return t.lift(new tw(e))}}var tw=function(){function e(t){A(this,e),this.errorFactory=t}return m(e,[{key:"call",value:function(e,t){return t.subscribe(new nw(e,this.errorFactory))}}]),e}(),nw=function(e){r(n,e);var t=a(n);function n(e,i){var r;return A(this,n),(r=t.call(this,e)).errorFactory=i,r.hasValue=!1,r}return m(n,[{key:"_next",value:function(e){this.hasValue=!0,this.destination.next(e)}},{key:"_complete",value:function(){if(this.hasValue)return this.destination.complete();var e;try{e=this.errorFactory()}catch(t){e=t}this.destination.error(e)}}]),n}(I);function iw(){return new Tb}function rw(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return function(t){return t.lift(new ow(e))}}var ow=function(){function e(t){A(this,e),this.defaultValue=t}return m(e,[{key:"call",value:function(e,t){return t.subscribe(new aw(e,this.defaultValue))}}]),e}(),aw=function(e){r(n,e);var t=a(n);function n(e,i){var r;return A(this,n),(r=t.call(this,e)).defaultValue=i,r.isEmpty=!0,r}return m(n,[{key:"_next",value:function(e){this.isEmpty=!1,this.destination.next(e)}},{key:"_complete",value:function(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}]),n}(I);function sw(e,t){var n=arguments.length>=2;return function(i){return i.pipe(e?Ry(function(t,n){return e(t,n,i)}):F,Hb(1),n?rw(t):ew(function(){return new Tb}))}}function lw(){}function uw(e,t,n){return function(i){return i.lift(new cw(e,t,n))}}var cw=function(){function e(t,n,i){A(this,e),this.nextOrObserver=t,this.error=n,this.complete=i}return m(e,[{key:"call",value:function(e,t){return t.subscribe(new dw(e,this.nextOrObserver,this.error,this.complete))}}]),e}(),dw=function(e){r(n,e);var t=a(n);function n(e,i,r,o){var a;return A(this,n),(a=t.call(this,e))._tapNext=lw,a._tapError=lw,a._tapComplete=lw,a._tapError=r||lw,a._tapComplete=o||lw,v(i)?(a._context=l(a),a._tapNext=i):i&&(a._context=i,a._tapNext=i.next||lw,a._tapError=i.error||lw,a._tapComplete=i.complete||lw),a}return m(n,[{key:"_next",value:function(e){try{this._tapNext.call(this._context,e)}catch(t){return void this.destination.error(t)}this.destination.next(e)}},{key:"_error",value:function(e){try{this._tapError.call(this._context,e)}catch(e){return void this.destination.error(e)}this.destination.error(e)}},{key:"_complete",value:function(){try{this._tapComplete.call(this._context)}catch(e){return void this.destination.error(e)}return this.destination.complete()}}]),n}(I);function hw(e){return function(t){return t.lift(new fw(e))}}var fw=function(){function e(t){A(this,e),this.callback=t}return m(e,[{key:"call",value:function(e,t){return t.subscribe(new pw(e,this.callback))}}]),e}(),pw=function(e){r(n,e);var t=a(n);function n(e,i){var r;return A(this,n),(r=t.call(this,e)).add(new O(i)),r}return n}(I),gw=function e(t,n){A(this,e),this.id=t,this.url=n},vw=function(e){r(n,e);var t=a(n);function n(e,i){var r,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"imperative",a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return A(this,n),(r=t.call(this,e,i)).navigationTrigger=o,r.restoredState=a,r}return m(n,[{key:"toString",value:function(){return"NavigationStart(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),n}(gw),mw=function(e){r(n,e);var t=a(n);function n(e,i,r){var o;return A(this,n),(o=t.call(this,e,i)).urlAfterRedirects=r,o}return m(n,[{key:"toString",value:function(){return"NavigationEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"')")}}]),n}(gw),yw=function(e){r(n,e);var t=a(n);function n(e,i,r){var o;return A(this,n),(o=t.call(this,e,i)).reason=r,o}return m(n,[{key:"toString",value:function(){return"NavigationCancel(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),n}(gw),bw=function(e){r(n,e);var t=a(n);function n(e,i,r){var o;return A(this,n),(o=t.call(this,e,i)).error=r,o}return m(n,[{key:"toString",value:function(){return"NavigationError(id: ".concat(this.id,", url: '").concat(this.url,"', error: ").concat(this.error,")")}}]),n}(gw),ww=function(e){r(n,e);var t=a(n);function n(e,i,r,o){var a;return A(this,n),(a=t.call(this,e,i)).urlAfterRedirects=r,a.state=o,a}return m(n,[{key:"toString",value:function(){return"RoutesRecognized(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(gw),_w=function(e){r(n,e);var t=a(n);function n(e,i,r,o){var a;return A(this,n),(a=t.call(this,e,i)).urlAfterRedirects=r,a.state=o,a}return m(n,[{key:"toString",value:function(){return"GuardsCheckStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(gw),kw=function(e){r(n,e);var t=a(n);function n(e,i,r,o,a){var s;return A(this,n),(s=t.call(this,e,i)).urlAfterRedirects=r,s.state=o,s.shouldActivate=a,s}return m(n,[{key:"toString",value:function(){return"GuardsCheckEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,", shouldActivate: ").concat(this.shouldActivate,")")}}]),n}(gw),xw=function(e){r(n,e);var t=a(n);function n(e,i,r,o){var a;return A(this,n),(a=t.call(this,e,i)).urlAfterRedirects=r,a.state=o,a}return m(n,[{key:"toString",value:function(){return"ResolveStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(gw),Aw=function(e){r(n,e);var t=a(n);function n(e,i,r,o){var a;return A(this,n),(a=t.call(this,e,i)).urlAfterRedirects=r,a.state=o,a}return m(n,[{key:"toString",value:function(){return"ResolveEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(gw),Cw=function(){function e(t){A(this,e),this.route=t}return m(e,[{key:"toString",value:function(){return"RouteConfigLoadStart(path: ".concat(this.route.path,")")}}]),e}(),Sw=function(){function e(t){A(this,e),this.route=t}return m(e,[{key:"toString",value:function(){return"RouteConfigLoadEnd(path: ".concat(this.route.path,")")}}]),e}(),Pw=function(){function e(t){A(this,e),this.snapshot=t}return m(e,[{key:"toString",value:function(){return"ChildActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),Ew=function(){function e(t){A(this,e),this.snapshot=t}return m(e,[{key:"toString",value:function(){return"ChildActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),Dw=function(){function e(t){A(this,e),this.snapshot=t}return m(e,[{key:"toString",value:function(){return"ActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),Ow=function(){function e(t){A(this,e),this.snapshot=t}return m(e,[{key:"toString",value:function(){return"ActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),Mw=function(){function e(t,n,i){A(this,e),this.routerEvent=t,this.position=n,this.anchor=i}return m(e,[{key:"toString",value:function(){return"Scroll(anchor: '".concat(this.anchor,"', position: '").concat(this.position?"".concat(this.position[0],", ").concat(this.position[1]):null,"')")}}]),e}(),Tw=function(){function e(t){A(this,e),this.params=t||{}}return m(e,[{key:"has",value:function(e){return Object.prototype.hasOwnProperty.call(this.params,e)}},{key:"get",value:function(e){if(this.has(e)){var t=this.params[e];return Array.isArray(t)?t[0]:t}return null}},{key:"getAll",value:function(e){if(this.has(e)){var t=this.params[e];return Array.isArray(t)?t:[t]}return[]}},{key:"keys",get:function(){return Object.keys(this.params)}}]),e}();function Iw(e){return new Tw(e)}function Rw(e){var t=Error("NavigationCancelingError: "+e);return t.ngNavigationCancelingError=!0,t}function Lw(e,t,n){var i=n.path.split("/");if(i.length>e.length)return null;if("full"===n.pathMatch&&(t.hasChildren()||i.length<e.length))return null;for(var r={},o=0;o<i.length;o++){var a=i[o],s=e[o];if(a.startsWith(":"))r[a.substring(1)]=s;else if(a!==s.path)return null}return{consumed:e.slice(0,i.length),posParams:r}}function Fw(e,t){var n,i=e?Object.keys(e):void 0,r=t?Object.keys(t):void 0;if(!i||!r||i.length!=r.length)return!1;for(var o=0;o<i.length;o++)if(!Bw(e[n=i[o]],t[n]))return!1;return!0}function Bw(e,t){if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;var n=y(e).sort(),i=y(t).sort();return n.every(function(e,t){return i[t]===e})}return e===t}function Vw(e){return Array.prototype.concat.apply([],e)}function zw(e){return e.length>0?e[e.length-1]:null}function Nw(e,t){for(var n in e)e.hasOwnProperty(n)&&t(e[n],n)}function Hw(e){return vs(e)?e:ps(e)?ie(Promise.resolve(e)):Ty(e)}function jw(e,t,n){return n?function(e,t){return Fw(e,t)}(e.queryParams,t.queryParams)&&Uw(e.root,t.root):function(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(function(n){return Bw(e[n],t[n])})}(e.queryParams,t.queryParams)&&Ww(e.root,t.root)}function Uw(e,t){if(!Qw(e.segments,t.segments))return!1;if(e.numberOfChildren!==t.numberOfChildren)return!1;for(var n in t.children){if(!e.children[n])return!1;if(!Uw(e.children[n],t.children[n]))return!1}return!0}function Ww(e,t){return Gw(e,t,t.segments)}function Gw(e,t,n){if(e.segments.length>n.length)return!!Qw(e.segments.slice(0,n.length),n)&&!t.hasChildren();if(e.segments.length===n.length){if(!Qw(e.segments,n))return!1;for(var i in t.children){if(!e.children[i])return!1;if(!Ww(e.children[i],t.children[i]))return!1}return!0}var r=n.slice(0,e.segments.length),o=n.slice(e.segments.length);return!!Qw(e.segments,r)&&!!e.children.primary&&Gw(e.children.primary,t,o)}var qw=function(){function e(t,n,i){A(this,e),this.root=t,this.queryParams=n,this.fragment=i}return m(e,[{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=Iw(this.queryParams)),this._queryParamMap}},{key:"toString",value:function(){return Jw.serialize(this)}}]),e}(),Yw=function(){function e(t,n){var i=this;A(this,e),this.segments=t,this.children=n,this.parent=null,Nw(n,function(e,t){return e.parent=i})}return m(e,[{key:"hasChildren",value:function(){return this.numberOfChildren>0}},{key:"numberOfChildren",get:function(){return Object.keys(this.children).length}},{key:"toString",value:function(){return $w(this)}}]),e}(),Zw=function(){function e(t,n){A(this,e),this.path=t,this.parameters=n}return m(e,[{key:"parameterMap",get:function(){return this._parameterMap||(this._parameterMap=Iw(this.parameters)),this._parameterMap}},{key:"toString",value:function(){return a_(this)}}]),e}();function Qw(e,t){return e.length===t.length&&e.every(function(e,n){return e.path===t[n].path})}var Xw=function e(){A(this,e)},Kw=function(){function e(){A(this,e)}return m(e,[{key:"parse",value:function(e){var t=new d_(e);return new qw(t.parseRootSegment(),t.parseQueryParams(),t.parseFragment())}},{key:"serialize",value:function(e){return"".concat("/"+e_(e.root,!0)).concat((t=e.queryParams,n=Object.keys(t).map(function(e){var n=t[e];return Array.isArray(n)?n.map(function(t){return"".concat(n_(e),"=").concat(n_(t))}).join("&"):"".concat(n_(e),"=").concat(n_(n))}),n.length?"?"+n.join("&"):"")).concat("string"==typeof e.fragment?"#"+encodeURI(e.fragment):"");var t,n}}]),e}(),Jw=new Kw;function $w(e){return e.segments.map(function(e){return a_(e)}).join("/")}function e_(e,t){if(!e.hasChildren())return $w(e);if(t){var n=e.children.primary?e_(e.children.primary,!1):"",i=[];return Nw(e.children,function(e,t){"primary"!==t&&i.push("".concat(t,":").concat(e_(e,!1)))}),i.length>0?"".concat(n,"(").concat(i.join("//"),")"):n}var r=function(e,t){var n=[];return Nw(e.children,function(e,i){"primary"===i&&(n=n.concat(t(e,i)))}),Nw(e.children,function(e,i){"primary"!==i&&(n=n.concat(t(e,i)))}),n}(e,function(t,n){return"primary"===n?[e_(e.children.primary,!1)]:["".concat(n,":").concat(e_(t,!1))]});return 1===Object.keys(e.children).length&&null!=e.children.primary?"".concat($w(e),"/").concat(r[0]):"".concat($w(e),"/(").concat(r.join("//"),")")}function t_(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function n_(e){return t_(e).replace(/%3B/gi,";")}function i_(e){return t_(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function r_(e){return decodeURIComponent(e)}function o_(e){return r_(e.replace(/\+/g,"%20"))}function a_(e){return"".concat(i_(e.path)).concat((t=e.parameters,Object.keys(t).map(function(e){return";".concat(i_(e),"=").concat(i_(t[e]))}).join("")));var t}var s_=/^[^\/()?;=#]+/;function l_(e){var t=e.match(s_);return t?t[0]:""}var u_=/^[^=?&#]+/,c_=/^[^?&#]+/,d_=function(){function e(t){A(this,e),this.url=t,this.remaining=t}return m(e,[{key:"parseRootSegment",value:function(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Yw([],{}):new Yw([],this.parseChildren())}},{key:"parseQueryParams",value:function(){var e={};if(this.consumeOptional("?"))do{this.parseQueryParam(e)}while(this.consumeOptional("&"));return e}},{key:"parseFragment",value:function(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}},{key:"parseChildren",value:function(){if(""===this.remaining)return{};this.consumeOptional("/");var e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());var t={};this.peekStartsWith("/(")&&(this.capture("/"),t=this.parseParens(!0));var n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(e.length>0||Object.keys(t).length>0)&&(n.primary=new Yw(e,t)),n}},{key:"parseSegment",value:function(){var e=l_(this.remaining);if(""===e&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '".concat(this.remaining,"'."));return this.capture(e),new Zw(r_(e),this.parseMatrixParams())}},{key:"parseMatrixParams",value:function(){for(var e={};this.consumeOptional(";");)this.parseParam(e);return e}},{key:"parseParam",value:function(e){var t=l_(this.remaining);if(t){this.capture(t);var n="";if(this.consumeOptional("=")){var i=l_(this.remaining);i&&(n=i,this.capture(n))}e[r_(t)]=r_(n)}}},{key:"parseQueryParam",value:function(e){var t=function(e){var t=e.match(u_);return t?t[0]:""}(this.remaining);if(t){this.capture(t);var n="";if(this.consumeOptional("=")){var i=function(e){var t=e.match(c_);return t?t[0]:""}(this.remaining);i&&(n=i,this.capture(n))}var r=o_(t),o=o_(n);if(e.hasOwnProperty(r)){var a=e[r];Array.isArray(a)||(a=[a],e[r]=a),a.push(o)}else e[r]=o}}},{key:"parseParens",value:function(e){var t={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){var n=l_(this.remaining),i=this.remaining[n.length];if("/"!==i&&")"!==i&&";"!==i)throw new Error("Cannot parse url '".concat(this.url,"'"));var r=void 0;n.indexOf(":")>-1?(r=n.substr(0,n.indexOf(":")),this.capture(r),this.capture(":")):e&&(r="primary");var o=this.parseChildren();t[r]=1===Object.keys(o).length?o.primary:new Yw([],o),this.consumeOptional("//")}return t}},{key:"peekStartsWith",value:function(e){return this.remaining.startsWith(e)}},{key:"consumeOptional",value:function(e){return!!this.peekStartsWith(e)&&(this.remaining=this.remaining.substring(e.length),!0)}},{key:"capture",value:function(e){if(!this.consumeOptional(e))throw new Error('Expected "'.concat(e,'".'))}}]),e}(),h_=function(){function e(t){A(this,e),this._root=t}return m(e,[{key:"root",get:function(){return this._root.value}},{key:"parent",value:function(e){var t=this.pathFromRoot(e);return t.length>1?t[t.length-2]:null}},{key:"children",value:function(e){var t=f_(e,this._root);return t?t.children.map(function(e){return e.value}):[]}},{key:"firstChild",value:function(e){var t=f_(e,this._root);return t&&t.children.length>0?t.children[0].value:null}},{key:"siblings",value:function(e){var t=p_(e,this._root);return t.length<2?[]:t[t.length-2].children.map(function(e){return e.value}).filter(function(t){return t!==e})}},{key:"pathFromRoot",value:function(e){return p_(e,this._root).map(function(e){return e.value})}}]),e}();function f_(e,t){if(e===t.value)return t;var n,i=h(t.children);try{for(i.s();!(n=i.n()).done;){var r=f_(e,n.value);if(r)return r}}catch(o){i.e(o)}finally{i.f()}return null}function p_(e,t){if(e===t.value)return[t];var n,i=h(t.children);try{for(i.s();!(n=i.n()).done;){var r=p_(e,n.value);if(r.length)return r.unshift(t),r}}catch(o){i.e(o)}finally{i.f()}return[]}var g_=function(){function e(t,n){A(this,e),this.value=t,this.children=n}return m(e,[{key:"toString",value:function(){return"TreeNode(".concat(this.value,")")}}]),e}();function v_(e){var t={};return e&&e.children.forEach(function(e){return t[e.value.outlet]=e}),t}var m_=function(e){r(n,e);var t=a(n);function n(e,i){var r;return A(this,n),(r=t.call(this,e)).snapshot=i,x_(l(r),e),r}return m(n,[{key:"toString",value:function(){return this.snapshot.toString()}}]),n}(h_);function y_(e,t){var n=function(e,t){var n=new __([],{},{},"",{},"primary",t,null,e.root,-1,{});return new k_("",new g_(n,[]))}(e,t),i=new Ab([new Zw("",{})]),r=new Ab({}),o=new Ab({}),a=new Ab({}),s=new Ab(""),l=new b_(i,r,a,s,o,"primary",t,n.root);return l.snapshot=n.root,new m_(new g_(l,[]),n)}var b_=function(){function e(t,n,i,r,o,a,s,l){A(this,e),this.url=t,this.params=n,this.queryParams=i,this.fragment=r,this.data=o,this.outlet=a,this.component=s,this._futureSnapshot=l}return m(e,[{key:"routeConfig",get:function(){return this._futureSnapshot.routeConfig}},{key:"root",get:function(){return this._routerState.root}},{key:"parent",get:function(){return this._routerState.parent(this)}},{key:"firstChild",get:function(){return this._routerState.firstChild(this)}},{key:"children",get:function(){return this._routerState.children(this)}},{key:"pathFromRoot",get:function(){return this._routerState.pathFromRoot(this)}},{key:"paramMap",get:function(){return this._paramMap||(this._paramMap=this.params.pipe(Y(function(e){return Iw(e)}))),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(Y(function(e){return Iw(e)}))),this._queryParamMap}},{key:"toString",value:function(){return this.snapshot?this.snapshot.toString():"Future(".concat(this._futureSnapshot,")")}}]),e}();function w_(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"emptyOnly",n=e.pathFromRoot,i=0;if("always"!==t)for(i=n.length-1;i>=1;){var r=n[i],o=n[i-1];if(r.routeConfig&&""===r.routeConfig.path)i--;else{if(o.component)break;i--}}return function(e){return e.reduce(function(e,t){return{params:Object.assign(Object.assign({},e.params),t.params),data:Object.assign(Object.assign({},e.data),t.data),resolve:Object.assign(Object.assign({},e.resolve),t._resolvedData)}},{params:{},data:{},resolve:{}})}(n.slice(i))}var __=function(){function e(t,n,i,r,o,a,s,l,u,c,d){A(this,e),this.url=t,this.params=n,this.queryParams=i,this.fragment=r,this.data=o,this.outlet=a,this.component=s,this.routeConfig=l,this._urlSegment=u,this._lastPathIndex=c,this._resolve=d}return m(e,[{key:"root",get:function(){return this._routerState.root}},{key:"parent",get:function(){return this._routerState.parent(this)}},{key:"firstChild",get:function(){return this._routerState.firstChild(this)}},{key:"children",get:function(){return this._routerState.children(this)}},{key:"pathFromRoot",get:function(){return this._routerState.pathFromRoot(this)}},{key:"paramMap",get:function(){return this._paramMap||(this._paramMap=Iw(this.params)),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=Iw(this.queryParams)),this._queryParamMap}},{key:"toString",value:function(){return"Route(url:'".concat(this.url.map(function(e){return e.toString()}).join("/"),"', path:'").concat(this.routeConfig?this.routeConfig.path:"","')")}}]),e}(),k_=function(e){r(n,e);var t=a(n);function n(e,i){var r;return A(this,n),(r=t.call(this,i)).url=e,x_(l(r),i),r}return m(n,[{key:"toString",value:function(){return A_(this._root)}}]),n}(h_);function x_(e,t){t.value._routerState=e,t.children.forEach(function(t){return x_(e,t)})}function A_(e){var t=e.children.length>0?" { ".concat(e.children.map(A_).join(", ")," } "):"";return"".concat(e.value).concat(t)}function C_(e){if(e.snapshot){var t=e.snapshot,n=e._futureSnapshot;e.snapshot=n,Fw(t.queryParams,n.queryParams)||e.queryParams.next(n.queryParams),t.fragment!==n.fragment&&e.fragment.next(n.fragment),Fw(t.params,n.params)||e.params.next(n.params),function(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;++n)if(!Fw(e[n],t[n]))return!1;return!0}(t.url,n.url)||e.url.next(n.url),Fw(t.data,n.data)||e.data.next(n.data)}else e.snapshot=e._futureSnapshot,e.data.next(e._futureSnapshot.data)}function S_(e,t){var n,i;return Fw(e.params,t.params)&&Qw(n=e.url,i=t.url)&&n.every(function(e,t){return Fw(e.parameters,i[t].parameters)})&&!(!e.parent!=!t.parent)&&(!e.parent||S_(e.parent,t.parent))}function P_(e,t,n){if(n&&e.shouldReuseRoute(t.value,n.value.snapshot)){var i=n.value;i._futureSnapshot=t.value;var r=function(e,t,n){return t.children.map(function(t){var i,r=h(n.children);try{for(r.s();!(i=r.n()).done;){var o=i.value;if(e.shouldReuseRoute(t.value,o.value.snapshot))return P_(e,t,o)}}catch(a){r.e(a)}finally{r.f()}return P_(e,t)})}(e,t,n);return new g_(i,r)}var o=e.retrieve(t.value);if(o){var a=o.route;return E_(t,a),a}var s,l=new b_(new Ab((s=t.value).url),new Ab(s.params),new Ab(s.queryParams),new Ab(s.fragment),new Ab(s.data),s.outlet,s.component,s),u=t.children.map(function(t){return P_(e,t)});return new g_(l,u)}function E_(e,t){if(e.value.routeConfig!==t.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(e.children.length!==t.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");t.value._futureSnapshot=e.value;for(var n=0;n<e.children.length;++n)E_(e.children[n],t.children[n])}function D_(e){return"object"==typeof e&&null!=e&&!e.outlets&&!e.segmentPath}function O_(e){return"object"==typeof e&&null!=e&&e.outlets}function M_(e,t,n,i,r){var o={};return i&&Nw(i,function(e,t){o[t]=Array.isArray(e)?e.map(function(e){return""+e}):""+e}),new qw(n.root===e?t:T_(n.root,e,t),o,r)}function T_(e,t,n){var i={};return Nw(e.children,function(e,r){i[r]=e===t?n:T_(e,t,n)}),new Yw(e.segments,i)}var I_=function(){function e(t,n,i){if(A(this,e),this.isAbsolute=t,this.numberOfDoubleDots=n,this.commands=i,t&&i.length>0&&D_(i[0]))throw new Error("Root segment cannot have matrix parameters");var r=i.find(O_);if(r&&r!==zw(i))throw new Error("{outlets:{}} has to be the last command")}return m(e,[{key:"toRoot",value:function(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}]),e}(),R_=function e(t,n,i){A(this,e),this.segmentGroup=t,this.processChildren=n,this.index=i};function L_(e,t,n){if(e||(e=new Yw([],{})),0===e.segments.length&&e.hasChildren())return F_(e,t,n);var i=function(e,t,n){for(var i=0,r=t,o={match:!1,pathIndex:0,commandIndex:0};r<e.segments.length;){if(i>=n.length)return o;var a=e.segments[r],s=n[i];if(O_(s))break;var l=""+s,u=i<n.length-1?n[i+1]:null;if(r>0&&void 0===l)break;if(l&&u&&"object"==typeof u&&void 0===u.outlets){if(!N_(l,u,a))return o;i+=2}else{if(!N_(l,{},a))return o;i++}r++}return{match:!0,pathIndex:r,commandIndex:i}}(e,t,n),r=n.slice(i.commandIndex);if(i.match&&i.pathIndex<e.segments.length){var o=new Yw(e.segments.slice(0,i.pathIndex),{});return o.children.primary=new Yw(e.segments.slice(i.pathIndex),e.children),F_(o,0,r)}return i.match&&0===r.length?new Yw(e.segments,{}):i.match&&!e.hasChildren()?B_(e,t,n):i.match?F_(e,0,r):B_(e,t,n)}function F_(e,t,n){if(0===n.length)return new Yw(e.segments,{});var i=function(e){return O_(e[0])?e[0].outlets:{primary:e}}(n),r={};return Nw(i,function(n,i){"string"==typeof n&&(n=[n]),null!==n&&(r[i]=L_(e.children[i],t,n))}),Nw(e.children,function(e,t){void 0===i[t]&&(r[t]=e)}),new Yw(e.segments,r)}function B_(e,t,n){for(var i=e.segments.slice(0,t),r=0;r<n.length;){var o=n[r];if(O_(o)){var a=V_(o.outlets);return new Yw(i,a)}if(0===r&&D_(n[0]))i.push(new Zw(e.segments[t].path,z_(n[0]))),r++;else{var s=O_(o)?o.outlets.primary:""+o,l=r<n.length-1?n[r+1]:null;s&&l&&D_(l)?(i.push(new Zw(s,z_(l))),r+=2):(i.push(new Zw(s,{})),r++)}}return new Yw(i,{})}function V_(e){var t={};return Nw(e,function(e,n){"string"==typeof e&&(e=[e]),null!==e&&(t[n]=B_(new Yw([],{}),0,e))}),t}function z_(e){var t={};return Nw(e,function(e,n){return t[n]=""+e}),t}function N_(e,t,n){return e==n.path&&Fw(t,n.parameters)}var H_=function(){function e(t,n,i,r){A(this,e),this.routeReuseStrategy=t,this.futureState=n,this.currState=i,this.forwardEvent=r}return m(e,[{key:"activate",value:function(e){var t=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(t,n,e),C_(this.futureState.root),this.activateChildRoutes(t,n,e)}},{key:"deactivateChildRoutes",value:function(e,t,n){var i=this,r=v_(t);e.children.forEach(function(e){var t=e.value.outlet;i.deactivateRoutes(e,r[t],n),delete r[t]}),Nw(r,function(e,t){i.deactivateRouteAndItsChildren(e,n)})}},{key:"deactivateRoutes",value:function(e,t,n){var i=e.value,r=t?t.value:null;if(i===r)if(i.component){var o=n.getContext(i.outlet);o&&this.deactivateChildRoutes(e,t,o.children)}else this.deactivateChildRoutes(e,t,n);else r&&this.deactivateRouteAndItsChildren(t,n)}},{key:"deactivateRouteAndItsChildren",value:function(e,t){this.routeReuseStrategy.shouldDetach(e.value.snapshot)?this.detachAndStoreRouteSubtree(e,t):this.deactivateRouteAndOutlet(e,t)}},{key:"detachAndStoreRouteSubtree",value:function(e,t){var n=t.getContext(e.value.outlet);if(n&&n.outlet){var i=n.outlet.detach(),r=n.children.onOutletDeactivated();this.routeReuseStrategy.store(e.value.snapshot,{componentRef:i,route:e,contexts:r})}}},{key:"deactivateRouteAndOutlet",value:function(e,t){for(var n=t.getContext(e.value.outlet),i=n&&e.value.component?n.children:t,r=v_(e),o=0,a=Object.keys(r);o<a.length;o++){var s=a[o];this.deactivateRouteAndItsChildren(r[s],i)}n&&n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated())}},{key:"activateChildRoutes",value:function(e,t,n){var i=this,r=v_(t);e.children.forEach(function(e){i.activateRoutes(e,r[e.value.outlet],n),i.forwardEvent(new Ow(e.value.snapshot))}),e.children.length&&this.forwardEvent(new Ew(e.value.snapshot))}},{key:"activateRoutes",value:function(e,t,n){var i=e.value,r=t?t.value:null;if(C_(i),i===r)if(i.component){var o=n.getOrCreateContext(i.outlet);this.activateChildRoutes(e,t,o.children)}else this.activateChildRoutes(e,t,n);else if(i.component){var a=n.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){var s=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),a.children.onOutletReAttached(s.contexts),a.attachRef=s.componentRef,a.route=s.route.value,a.outlet&&a.outlet.attach(s.componentRef,s.route.value),j_(s.route)}else{var l=function(e){for(var t=e.parent;t;t=t.parent){var n=t.routeConfig;if(n&&n._loadedConfig)return n._loadedConfig;if(n&&n.component)return null}return null}(i.snapshot),u=l?l.module.componentFactoryResolver:null;a.attachRef=null,a.route=i,a.resolver=u,a.outlet&&a.outlet.activateWith(i,u),this.activateChildRoutes(e,null,a.children)}}else this.activateChildRoutes(e,null,n)}}]),e}();function j_(e){C_(e.value),e.children.forEach(j_)}var U_=function e(t,n){A(this,e),this.routes=t,this.module=n};function W_(e){return"function"==typeof e}function G_(e){return e instanceof qw}var q_=Symbol("INITIAL_VALUE");function Y_(){return Bb(function(e){return Db(e.map(function(e){return e.pipe(Hb(1),Wb(q_))})).pipe(Gb(function(e,t){var n=!1;return t.reduce(function(e,i,r){if(e!==q_)return e;if(i===q_&&(n=!0),!n){if(!1===i)return i;if(r===t.length-1||G_(i))return i}return e},e)},q_),Ry(function(e){return e!==q_}),Y(function(e){return G_(e)?e:!0===e}),Hb(1))})}var Z_,Q_=((Z_=function e(){A(this,e)}).\u0275fac=function(e){return new(e||Z_)},Z_.\u0275cmp=ft({type:Z_,selectors:[["ng-component"]],decls:1,vars:0,template:function(e,t){1&e&&us(0,"router-outlet")},directives:function(){return[Qk]},encapsulation:2}),Z_);function X_(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=0;n<e.length;n++){var i=e[n];K_(i,J_(t,i))}}function K_(e,t){e.children&&X_(e.children,t)}function J_(e,t){return t?e||t.path?e&&!t.path?e+"/":!e&&t.path?t.path:"".concat(e,"/").concat(t.path):"":e}function $_(e){var t=e.children&&e.children.map($_),n=t?Object.assign(Object.assign({},e),{children:t}):Object.assign({},e);return!n.component&&(t||n.loadChildren)&&n.outlet&&"primary"!==n.outlet&&(n.component=Q_),n}function ek(e){return e.outlet||"primary"}function tk(e,t){var n=e.filter(function(e){return ek(e)===t});return n.push.apply(n,y(e.filter(function(e){return ek(e)!==t}))),n}var nk={matched:!1,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};function ik(e,t,n){var i;if(""===t.path)return"full"===t.pathMatch&&(e.hasChildren()||n.length>0)?Object.assign({},nk):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};var r=(t.matcher||Lw)(n,e,t);if(!r)return Object.assign({},nk);var o={};Nw(r.posParams,function(e,t){o[t]=e.path});var a=r.consumed.length>0?Object.assign(Object.assign({},o),r.consumed[r.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:r.consumed,lastChild:r.consumed.length,parameters:a,positionalParamSegments:null!==(i=r.posParams)&&void 0!==i?i:{}}}function rk(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"corrected";if(n.length>0&&function(e,t,n){return n.some(function(n){return ok(e,t,n)&&"primary"!==ek(n)})}(e,n,i)){var o=new Yw(t,function(e,t,n,i){var r={};r.primary=i,i._sourceSegment=e,i._segmentIndexShift=t.length;var o,a=h(n);try{for(a.s();!(o=a.n()).done;){var s=o.value;if(""===s.path&&"primary"!==ek(s)){var l=new Yw([],{});l._sourceSegment=e,l._segmentIndexShift=t.length,r[ek(s)]=l}}}catch(u){a.e(u)}finally{a.f()}return r}(e,t,i,new Yw(n,e.children)));return o._sourceSegment=e,o._segmentIndexShift=t.length,{segmentGroup:o,slicedSegments:[]}}if(0===n.length&&function(e,t,n){return n.some(function(n){return ok(e,t,n)})}(e,n,i)){var a=new Yw(e.segments,function(e,t,n,i,r,o){var a,s={},l=h(i);try{for(l.s();!(a=l.n()).done;){var u=a.value;if(ok(e,n,u)&&!r[ek(u)]){var c=new Yw([],{});c._sourceSegment=e,c._segmentIndexShift="legacy"===o?e.segments.length:t.length,s[ek(u)]=c}}}catch(d){l.e(d)}finally{l.f()}return Object.assign(Object.assign({},r),s)}(e,t,n,i,e.children,r));return a._sourceSegment=e,a._segmentIndexShift=t.length,{segmentGroup:a,slicedSegments:n}}var s=new Yw(e.segments,e.children);return s._sourceSegment=e,s._segmentIndexShift=t.length,{segmentGroup:s,slicedSegments:n}}function ok(e,t,n){return(!(e.hasChildren()||t.length>0)||"full"!==n.pathMatch)&&""===n.path}function ak(e,t,n,i){return!!(ek(e)===i||"primary"!==i&&ok(t,n,e))&&("**"===e.path||ik(t,e,n).matched)}function sk(e,t,n){return 0===t.length&&!e.children[n]}var lk=function e(t){A(this,e),this.segmentGroup=t||null},uk=function e(t){A(this,e),this.urlTree=t};function ck(e){return new V(function(t){return t.error(new lk(e))})}function dk(e){return new V(function(t){return t.error(new uk(e))})}function hk(e){return new V(function(t){return t.error(new Error("Only absolute redirects can have named outlets. redirectTo: '".concat(e,"'")))})}var fk=function(){function e(t,n,i,r,o){A(this,e),this.configLoader=n,this.urlSerializer=i,this.urlTree=r,this.config=o,this.allowRedirects=!0,this.ngModule=t.get(au)}return m(e,[{key:"apply",value:function(){var e=this,t=rk(this.urlTree.root,[],[],this.config).segmentGroup,n=new Yw(t.segments,t.children);return this.expandSegmentGroup(this.ngModule,this.config,n,"primary").pipe(Y(function(t){return e.createUrlTree(pk(t),e.urlTree.queryParams,e.urlTree.fragment)})).pipe(Zb(function(t){if(t instanceof uk)return e.allowRedirects=!1,e.match(t.urlTree);if(t instanceof lk)throw e.noMatchError(t);throw t}))}},{key:"match",value:function(e){var t=this;return this.expandSegmentGroup(this.ngModule,this.config,e.root,"primary").pipe(Y(function(n){return t.createUrlTree(pk(n),e.queryParams,e.fragment)})).pipe(Zb(function(e){if(e instanceof lk)throw t.noMatchError(e);throw e}))}},{key:"noMatchError",value:function(e){return new Error("Cannot match any routes. URL Segment: '".concat(e.segmentGroup,"'"))}},{key:"createUrlTree",value:function(e,t,n){var i=e.segments.length>0?new Yw([],{primary:e}):e;return new qw(i,t,n)}},{key:"expandSegmentGroup",value:function(e,t,n,i){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(e,t,n).pipe(Y(function(e){return new Yw([],e)})):this.expandSegment(e,n,t,n.segments,i,!0)}},{key:"expandChildren",value:function(e,t,n){for(var i=this,r=[],o=0,a=Object.keys(n.children);o<a.length;o++){var s=a[o];"primary"===s?r.unshift(s):r.push(s)}return ie(r).pipe(Iy(function(r){var o=n.children[r],a=tk(t,r);return i.expandSegmentGroup(e,a,o,r).pipe(Y(function(e){return{segment:e,outlet:r}}))}),Gb(function(e,t){return e[t.outlet]=t.segment,e},{}),function(e,t){var n=arguments.length>=2;return function(i){return i.pipe(e?Ry(function(t,n){return e(t,n,i)}):F,Kb(1),n?rw(t):ew(function(){return new Tb}))}}())}},{key:"expandSegment",value:function(e,t,n,i,r,o){var a=this;return ie(n).pipe(Iy(function(s){return a.expandSegmentAgainstRoute(e,t,n,s,i,r,o).pipe(Zb(function(e){if(e instanceof lk)return Ty(null);throw e}))}),sw(function(e){return!!e}),Zb(function(e,n){if(e instanceof Tb||"EmptyError"===e.name){if(sk(t,i,r))return Ty(new Yw([],{}));throw new lk(t)}throw e}))}},{key:"expandSegmentAgainstRoute",value:function(e,t,n,i,r,o,a){return ak(i,t,r,o)?void 0===i.redirectTo?this.matchSegmentAgainstRoute(e,t,i,r,o):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(e,t,n,i,r,o):ck(t):ck(t)}},{key:"expandSegmentAgainstRouteUsingRedirect",value:function(e,t,n,i,r,o){return"**"===i.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(e,n,i,o):this.expandRegularSegmentAgainstRouteUsingRedirect(e,t,n,i,r,o)}},{key:"expandWildCardWithParamsAgainstRouteUsingRedirect",value:function(e,t,n,i){var r=this,o=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?dk(o):this.lineralizeSegments(n,o).pipe(se(function(n){var o=new Yw(n,{});return r.expandSegment(e,o,t,n,i,!1)}))}},{key:"expandRegularSegmentAgainstRouteUsingRedirect",value:function(e,t,n,i,r,o){var a=this,s=ik(t,i,r),l=s.matched,u=s.consumedSegments,c=s.lastChild,d=s.positionalParamSegments;if(!l)return ck(t);var h=this.applyRedirectCommands(u,i.redirectTo,d);return i.redirectTo.startsWith("/")?dk(h):this.lineralizeSegments(i,h).pipe(se(function(i){return a.expandSegment(e,t,n,i.concat(r.slice(c)),o,!1)}))}},{key:"matchSegmentAgainstRoute",value:function(e,t,n,i,r){var o=this;if("**"===n.path)return n.loadChildren?(n._loadedConfig?Ty(n._loadedConfig):this.configLoader.load(e.injector,n)).pipe(Y(function(e){return n._loadedConfig=e,new Yw(i,{})})):Ty(new Yw(i,{}));var a=ik(t,n,i),s=a.matched,l=a.consumedSegments,u=a.lastChild;if(!s)return ck(t);var c=i.slice(u);return this.getChildConfig(e,n,i).pipe(se(function(e){var i=e.module,a=e.routes,s=rk(t,l,c,a),u=s.segmentGroup,d=s.slicedSegments,h=new Yw(u.segments,u.children);if(0===d.length&&h.hasChildren())return o.expandChildren(i,a,h).pipe(Y(function(e){return new Yw(l,e)}));if(0===a.length&&0===d.length)return Ty(new Yw(l,{}));var f=ek(n)===r;return o.expandSegment(i,h,a,d,f?"primary":r,!0).pipe(Y(function(e){return new Yw(l.concat(e.segments),e.children)}))}))}},{key:"getChildConfig",value:function(e,t,n){var i=this;return t.children?Ty(new U_(t.children,e)):t.loadChildren?void 0!==t._loadedConfig?Ty(t._loadedConfig):this.runCanLoadGuards(e.injector,t,n).pipe(se(function(n){return n?i.configLoader.load(e.injector,t).pipe(Y(function(e){return t._loadedConfig=e,e})):function(e){return new V(function(t){return t.error(Rw("Cannot load children because the guard of the route \"path: '".concat(e.path,"'\" returned false")))})}(t)})):Ty(new U_([],e))}},{key:"runCanLoadGuards",value:function(e,t,n){var i=this,r=t.canLoad;return r&&0!==r.length?Ty(r.map(function(i){var r,o=e.get(i);if(function(e){return e&&W_(e.canLoad)}(o))r=o.canLoad(t,n);else{if(!W_(o))throw new Error("Invalid CanLoad guard");r=o(t,n)}return Hw(r)})).pipe(Y_(),uw(function(e){if(G_(e)){var t=Rw('Redirecting to "'.concat(i.urlSerializer.serialize(e),'"'));throw t.url=e,t}}),Y(function(e){return!0===e})):Ty(!0)}},{key:"lineralizeSegments",value:function(e,t){for(var n=[],i=t.root;;){if(n=n.concat(i.segments),0===i.numberOfChildren)return Ty(n);if(i.numberOfChildren>1||!i.children.primary)return hk(e.redirectTo);i=i.children.primary}}},{key:"applyRedirectCommands",value:function(e,t,n){return this.applyRedirectCreatreUrlTree(t,this.urlSerializer.parse(t),e,n)}},{key:"applyRedirectCreatreUrlTree",value:function(e,t,n,i){var r=this.createSegmentGroup(e,t.root,n,i);return new qw(r,this.createQueryParams(t.queryParams,this.urlTree.queryParams),t.fragment)}},{key:"createQueryParams",value:function(e,t){var n={};return Nw(e,function(e,i){if("string"==typeof e&&e.startsWith(":")){var r=e.substring(1);n[i]=t[r]}else n[i]=e}),n}},{key:"createSegmentGroup",value:function(e,t,n,i){var r=this,o=this.createSegments(e,t.segments,n,i),a={};return Nw(t.children,function(t,o){a[o]=r.createSegmentGroup(e,t,n,i)}),new Yw(o,a)}},{key:"createSegments",value:function(e,t,n,i){var r=this;return t.map(function(t){return t.path.startsWith(":")?r.findPosParam(e,t,i):r.findOrReturn(t,n)})}},{key:"findPosParam",value:function(e,t,n){var i=n[t.path.substring(1)];if(!i)throw new Error("Cannot redirect to '".concat(e,"'. Cannot find '").concat(t.path,"'."));return i}},{key:"findOrReturn",value:function(e,t){var n,i=0,r=h(t);try{for(r.s();!(n=r.n()).done;){var o=n.value;if(o.path===e.path)return t.splice(i),o;i++}}catch(a){r.e(a)}finally{r.f()}return e}}]),e}();function pk(e){for(var t={},n=0,i=Object.keys(e.children);n<i.length;n++){var r=i[n],o=pk(e.children[r]);(o.segments.length>0||o.hasChildren())&&(t[r]=o)}return function(e){if(1===e.numberOfChildren&&e.children.primary){var t=e.children.primary;return new Yw(e.segments.concat(t.segments),t.children)}return e}(new Yw(e.segments,t))}var gk=function e(t){A(this,e),this.path=t,this.route=this.path[this.path.length-1]},vk=function e(t,n){A(this,e),this.component=t,this.route=n};function mk(e,t,n){var i=e._root;return bk(i,t?t._root:null,n,[i.value])}function yk(e,t,n){var i=function(e){if(!e)return null;for(var t=e.parent;t;t=t.parent){var n=t.routeConfig;if(n&&n._loadedConfig)return n._loadedConfig}return null}(t);return(i?i.module.injector:n).get(e)}function bk(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},o=v_(t);return e.children.forEach(function(e){!function(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},o=e.value,a=t?t.value:null,s=n?n.getContext(e.value.outlet):null;if(a&&o.routeConfig===a.routeConfig){var l=function(e,t,n){if("function"==typeof n)return n(e,t);switch(n){case"pathParamsChange":return!Qw(e.url,t.url);case"pathParamsOrQueryParamsChange":return!Qw(e.url,t.url)||!Fw(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!S_(e,t)||!Fw(e.queryParams,t.queryParams);case"paramsChange":default:return!S_(e,t)}}(a,o,o.routeConfig.runGuardsAndResolvers);l?r.canActivateChecks.push(new gk(i)):(o.data=a.data,o._resolvedData=a._resolvedData),bk(e,t,o.component?s?s.children:null:n,i,r),l&&s&&s.outlet&&s.outlet.isActivated&&r.canDeactivateChecks.push(new vk(s.outlet.component,a))}else a&&wk(t,s,r),r.canActivateChecks.push(new gk(i)),bk(e,null,o.component?s?s.children:null:n,i,r)}(e,o[e.value.outlet],n,i.concat([e.value]),r),delete o[e.value.outlet]}),Nw(o,function(e,t){return wk(e,n.getContext(t),r)}),r}function wk(e,t,n){var i=v_(e),r=e.value;Nw(i,function(e,i){wk(e,r.component?t?t.children.getContext(i):null:t,n)}),n.canDeactivateChecks.push(new vk(r.component&&t&&t.outlet&&t.outlet.isActivated?t.outlet.component:null,r))}var _k=function e(){A(this,e)};function kk(e){return new V(function(t){return t.error(e)})}var xk=function(){function e(t,n,i,r,o,a){A(this,e),this.rootComponentType=t,this.config=n,this.urlTree=i,this.url=r,this.paramsInheritanceStrategy=o,this.relativeLinkResolution=a}return m(e,[{key:"recognize",value:function(){var e=rk(this.urlTree.root,[],[],this.config.filter(function(e){return void 0===e.redirectTo}),this.relativeLinkResolution).segmentGroup,t=this.processSegmentGroup(this.config,e,"primary");if(null===t)return null;var n=new __([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},"primary",this.rootComponentType,null,this.urlTree.root,-1,{}),i=new g_(n,t),r=new k_(this.url,i);return this.inheritParamsAndData(r._root),r}},{key:"inheritParamsAndData",value:function(e){var t=this,n=e.value,i=w_(n,this.paramsInheritanceStrategy);n.params=Object.freeze(i.params),n.data=Object.freeze(i.data),e.children.forEach(function(e){return t.inheritParamsAndData(e)})}},{key:"processSegmentGroup",value:function(e,t,n){return 0===t.segments.length&&t.hasChildren()?this.processChildren(e,t):this.processSegment(e,t,t.segments,n)}},{key:"processChildren",value:function(e,t){for(var n=[],i=0,r=Object.keys(t.children);i<r.length;i++){var o=r[i],a=t.children[o],s=tk(e,o),l=this.processSegmentGroup(s,a,o);if(null===l)return null;n.push.apply(n,y(l))}var u=function(e){var t,n=[],i=h(e);try{var r=function(){var e,i=t.value;if(!function(e){var t=e.value.routeConfig;return t&&""===t.path&&void 0===t.redirectTo}(i))return n.push(i),"continue";var r=n.find(function(e){return i.value.routeConfig===e.value.routeConfig});void 0!==r?(e=r.children).push.apply(e,y(i.children)):n.push(i)};for(i.s();!(t=i.n()).done;)r()}catch(o){i.e(o)}finally{i.f()}return n}(n);return u.sort(function(e,t){return"primary"===e.value.outlet?-1:"primary"===t.value.outlet?1:e.value.outlet.localeCompare(t.value.outlet)}),u}},{key:"processSegment",value:function(e,t,n,i){var r,o=h(e);try{for(o.s();!(r=o.n()).done;){var a=r.value,s=this.processSegmentAgainstRoute(a,t,n,i);if(null!==s)return s}}catch(l){o.e(l)}finally{o.f()}return sk(t,n,i)?[]:null}},{key:"processSegmentAgainstRoute",value:function(e,t,n,i){if(e.redirectTo||!ak(e,t,n,i))return null;var r,o=[],a=[];if("**"===e.path){var s=n.length>0?zw(n).parameters:{};r=new __(n,s,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Sk(e),ek(e),e.component,e,Ak(t),Ck(t)+n.length,Pk(e))}else{var l=ik(t,e,n);if(!l.matched)return null;o=l.consumedSegments,a=n.slice(l.lastChild),r=new __(o,l.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Sk(e),ek(e),e.component,e,Ak(t),Ck(t)+o.length,Pk(e))}var u=function(e){return e.children?e.children:e.loadChildren?e._loadedConfig.routes:[]}(e),c=rk(t,o,a,u.filter(function(e){return void 0===e.redirectTo}),this.relativeLinkResolution),d=c.segmentGroup,h=c.slicedSegments;if(0===h.length&&d.hasChildren()){var f=this.processChildren(u,d);return null===f?null:[new g_(r,f)]}if(0===u.length&&0===h.length)return[new g_(r,[])];var p=ek(e)===i,g=this.processSegment(u,d,h,p?"primary":i);return null===g?null:[new g_(r,g)]}}]),e}();function Ak(e){for(var t=e;t._sourceSegment;)t=t._sourceSegment;return t}function Ck(e){for(var t=e,n=t._segmentIndexShift?t._segmentIndexShift:0;t._sourceSegment;)n+=(t=t._sourceSegment)._segmentIndexShift?t._segmentIndexShift:0;return n-1}function Sk(e){return e.data||{}}function Pk(e){return e.resolve||{}}function Ek(e){return Bb(function(t){var n=e(t);return n?ie(n).pipe(Y(function(){return t})):Ty(t)})}var Dk=function e(){A(this,e)},Ok=function(e){r(n,e);var t=a(n);function n(){return A(this,n),t.apply(this,arguments)}return n}(function(){function e(){A(this,e)}return m(e,[{key:"shouldDetach",value:function(e){return!1}},{key:"store",value:function(e,t){}},{key:"shouldAttach",value:function(e){return!1}},{key:"retrieve",value:function(e){return null}},{key:"shouldReuseRoute",value:function(e,t){return e.routeConfig===t.routeConfig}}]),e}()),Mk=new mi("ROUTES"),Tk=function(){function e(t,n,i,r){A(this,e),this.loader=t,this.compiler=n,this.onLoadStartListener=i,this.onLoadEndListener=r}return m(e,[{key:"load",value:function(e,t){var n=this;if(t._loader$)return t._loader$;this.onLoadStartListener&&this.onLoadStartListener(t);var i=this.loadModuleFactory(t.loadChildren).pipe(Y(function(i){n.onLoadEndListener&&n.onLoadEndListener(t);var r=i.create(e);return new U_(Vw(r.injector.get(Mk,void 0,Ge.Self|Ge.Optional)).map($_),r)}),Zb(function(e){throw t._loader$=void 0,e}));return t._loader$=new me(i,function(){return new W}).pipe(fe()),t._loader$}},{key:"loadModuleFactory",value:function(e){var t=this;return"string"==typeof e?ie(this.loader.load(e)):Hw(e()).pipe(se(function(e){return e instanceof su?Ty(e):ie(t.compiler.compileModuleAsync(e))}))}}]),e}(),Ik=function e(){A(this,e),this.outlet=null,this.route=null,this.resolver=null,this.children=new Rk,this.attachRef=null},Rk=function(){function e(){A(this,e),this.contexts=new Map}return m(e,[{key:"onChildOutletCreated",value:function(e,t){var n=this.getOrCreateContext(e);n.outlet=t,this.contexts.set(e,n)}},{key:"onChildOutletDestroyed",value:function(e){var t=this.getContext(e);t&&(t.outlet=null)}},{key:"onOutletDeactivated",value:function(){var e=this.contexts;return this.contexts=new Map,e}},{key:"onOutletReAttached",value:function(e){this.contexts=e}},{key:"getOrCreateContext",value:function(e){var t=this.getContext(e);return t||(t=new Ik,this.contexts.set(e,t)),t}},{key:"getContext",value:function(e){return this.contexts.get(e)||null}}]),e}(),Lk=function(){function e(){A(this,e)}return m(e,[{key:"shouldProcessUrl",value:function(e){return!0}},{key:"extract",value:function(e){return e}},{key:"merge",value:function(e,t){return e}}]),e}();function Fk(e){throw e}function Bk(e,t,n){return t.parse("/")}function Vk(e,t){return Ty(null)}var zk,Nk,Hk,jk=((Hk=function(){function e(t,n,i,r,o,a,s,l){var u=this;A(this,e),this.rootComponentType=t,this.urlSerializer=n,this.rootContexts=i,this.location=r,this.config=l,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.lastLocationChangeInfo=null,this.navigationId=0,this.isNgZoneEnabled=!1,this.events=new W,this.errorHandler=Fk,this.malformedUriErrorHandler=Bk,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:Vk,afterPreactivation:Vk},this.urlHandlingStrategy=new Lk,this.routeReuseStrategy=new Ok,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.ngModule=o.get(au),this.console=o.get(dc);var c=o.get(Ac);this.isNgZoneEnabled=c instanceof Ac&&Ac.isInAngularZone(),this.resetConfig(l),this.currentUrlTree=new qw(new Yw([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new Tk(a,s,function(e){return u.triggerEvent(new Cw(e))},function(e){return u.triggerEvent(new Sw(e))}),this.routerState=y_(this.currentUrlTree,this.rootComponentType),this.transitions=new Ab({id:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}return m(e,[{key:"setupNavigations",value:function(e){var t=this,n=this.events;return e.pipe(Ry(function(e){return 0!==e.id}),Y(function(e){return Object.assign(Object.assign({},e),{extractedUrl:t.urlHandlingStrategy.extract(e.rawUrl)})}),Bb(function(e){var i,r,o,a=!1,s=!1;return Ty(e).pipe(uw(function(e){t.currentNavigation={id:e.id,initialUrl:e.currentRawUrl,extractedUrl:e.extractedUrl,trigger:e.source,extras:e.extras,previousNavigation:t.lastSuccessfulNavigation?Object.assign(Object.assign({},t.lastSuccessfulNavigation),{previousNavigation:null}):null}}),Bb(function(e){var i,r,o,a,s=!t.navigated||e.extractedUrl.toString()!==t.browserUrlTree.toString();if(("reload"===t.onSameUrlNavigation||s)&&t.urlHandlingStrategy.shouldProcessUrl(e.rawUrl))return Ty(e).pipe(Bb(function(e){var i=t.transitions.getValue();return n.next(new vw(e.id,t.serializeUrl(e.extractedUrl),e.source,e.restoredState)),i!==t.transitions.getValue()?Rb:Promise.resolve(e)}),(i=t.ngModule.injector,r=t.configLoader,o=t.urlSerializer,a=t.config,Bb(function(e){return function(e,t,n,i,r){return new fk(e,t,n,i,r).apply()}(i,r,o,e.extractedUrl,a).pipe(Y(function(t){return Object.assign(Object.assign({},e),{urlAfterRedirects:t})}))})),uw(function(e){t.currentNavigation=Object.assign(Object.assign({},t.currentNavigation),{finalUrl:e.urlAfterRedirects})}),function(e,n,i,r,o){return se(function(i){return function(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"emptyOnly",o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"legacy";try{var a=new xk(e,t,n,i,r,o).recognize();return null===a?kk(new _k):Ty(a)}catch(s){return kk(s)}}(e,n,i.urlAfterRedirects,(a=i.urlAfterRedirects,t.serializeUrl(a)),r,o).pipe(Y(function(e){return Object.assign(Object.assign({},i),{targetSnapshot:e})}));var a})}(t.rootComponentType,t.config,0,t.paramsInheritanceStrategy,t.relativeLinkResolution),uw(function(e){"eager"===t.urlUpdateStrategy&&(e.extras.skipLocationChange||t.setBrowserUrl(e.urlAfterRedirects,!!e.extras.replaceUrl,e.id,e.extras.state),t.browserUrlTree=e.urlAfterRedirects);var i=new ww(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);n.next(i)}));if(s&&t.rawUrlTree&&t.urlHandlingStrategy.shouldProcessUrl(t.rawUrlTree)){var l=e.id,u=e.extractedUrl,c=e.source,d=e.restoredState,h=e.extras,f=new vw(l,t.serializeUrl(u),c,d);n.next(f);var p=y_(u,t.rootComponentType).snapshot;return Ty(Object.assign(Object.assign({},e),{targetSnapshot:p,urlAfterRedirects:u,extras:Object.assign(Object.assign({},h),{skipLocationChange:!1,replaceUrl:!1})}))}return t.rawUrlTree=e.rawUrl,t.browserUrlTree=e.urlAfterRedirects,e.resolve(null),Rb}),Ek(function(e){var n=e.targetSnapshot,i=e.id,r=e.extractedUrl,o=e.rawUrl,a=e.extras,s=a.skipLocationChange,l=a.replaceUrl;return t.hooks.beforePreactivation(n,{navigationId:i,appliedUrlTree:r,rawUrlTree:o,skipLocationChange:!!s,replaceUrl:!!l})}),uw(function(e){var n=new _w(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.triggerEvent(n)}),Y(function(e){return Object.assign(Object.assign({},e),{guards:mk(e.targetSnapshot,e.currentSnapshot,t.rootContexts)})}),function(e,t){return se(function(n){var i=n.targetSnapshot,r=n.currentSnapshot,o=n.guards,a=o.canActivateChecks,s=o.canDeactivateChecks;return 0===s.length&&0===a.length?Ty(Object.assign(Object.assign({},n),{guardsResult:!0})):function(e,t,n,i){return ie(e).pipe(se(function(e){return function(e,t,n,i,r){var o=t&&t.routeConfig?t.routeConfig.canDeactivate:null;return o&&0!==o.length?Ty(o.map(function(o){var a,s=yk(o,t,r);if(function(e){return e&&W_(e.canDeactivate)}(s))a=Hw(s.canDeactivate(e,t,n,i));else{if(!W_(s))throw new Error("Invalid CanDeactivate guard");a=Hw(s(e,t,n,i))}return a.pipe(sw())})).pipe(Y_()):Ty(!0)}(e.component,e.route,n,t,i)}),sw(function(e){return!0!==e},!0))}(s,i,r,e).pipe(se(function(n){return n&&"boolean"==typeof n?function(e,t,n,i){return ie(t).pipe(Iy(function(t){return Ib(function(e,t){return null!==e&&t&&t(new Pw(e)),Ty(!0)}(t.route.parent,i),function(e,t){return null!==e&&t&&t(new Dw(e)),Ty(!0)}(t.route,i),function(e,t,n){var i=t[t.length-1],r=t.slice(0,t.length-1).reverse().map(function(e){return function(e){var t=e.routeConfig?e.routeConfig.canActivateChild:null;return t&&0!==t.length?{node:e,guards:t}:null}(e)}).filter(function(e){return null!==e}).map(function(t){return Fb(function(){return Ty(t.guards.map(function(r){var o,a=yk(r,t.node,n);if(function(e){return e&&W_(e.canActivateChild)}(a))o=Hw(a.canActivateChild(i,e));else{if(!W_(a))throw new Error("Invalid CanActivateChild guard");o=Hw(a(i,e))}return o.pipe(sw())})).pipe(Y_())})});return Ty(r).pipe(Y_())}(e,t.path,n),function(e,t,n){var i=t.routeConfig?t.routeConfig.canActivate:null;return i&&0!==i.length?Ty(i.map(function(i){return Fb(function(){var r,o=yk(i,t,n);if(function(e){return e&&W_(e.canActivate)}(o))r=Hw(o.canActivate(t,e));else{if(!W_(o))throw new Error("Invalid CanActivate guard");r=Hw(o(t,e))}return r.pipe(sw())})})).pipe(Y_()):Ty(!0)}(e,t.route,n))}),sw(function(e){return!0!==e},!0))}(i,a,e,t):Ty(n)}),Y(function(e){return Object.assign(Object.assign({},n),{guardsResult:e})}))})}(t.ngModule.injector,function(e){return t.triggerEvent(e)}),uw(function(e){if(G_(e.guardsResult)){var n=Rw('Redirecting to "'.concat(t.serializeUrl(e.guardsResult),'"'));throw n.url=e.guardsResult,n}var i=new kw(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot,!!e.guardsResult);t.triggerEvent(i)}),Ry(function(e){if(!e.guardsResult){t.resetUrlToCurrentUrlTree();var i=new yw(e.id,t.serializeUrl(e.extractedUrl),"");return n.next(i),e.resolve(!1),!1}return!0}),Ek(function(e){if(e.guards.canActivateChecks.length)return Ty(e).pipe(uw(function(e){var n=new xw(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.triggerEvent(n)}),Bb(function(e){var i,r,o=!1;return Ty(e).pipe((i=t.paramsInheritanceStrategy,r=t.ngModule.injector,se(function(e){var t=e.targetSnapshot,n=e.guards.canActivateChecks;if(!n.length)return Ty(e);var o=0;return ie(n).pipe(Iy(function(e){return function(e,t,n,i){return function(e,t,n,i){var r=Object.keys(e);if(0===r.length)return Ty({});var o={};return ie(r).pipe(se(function(r){return function(e,t,n,i){var r=yk(e,t,i);return Hw(r.resolve?r.resolve(t,n):r(t,n))}(e[r],t,n,i).pipe(uw(function(e){o[r]=e}))}),Kb(1),se(function(){return Object.keys(o).length===r.length?Ty(o):Rb}))}(e._resolve,e,t,i).pipe(Y(function(t){return e._resolvedData=t,e.data=Object.assign(Object.assign({},e.data),w_(e,n).resolve),null}))}(e.route,t,i,r)}),uw(function(){return o++}),Kb(1),se(function(t){return o===n.length?Ty(e):Rb}))})),uw({next:function(){return o=!0},complete:function(){if(!o){var i=new yw(e.id,t.serializeUrl(e.extractedUrl),"At least one route resolver didn't emit any value.");n.next(i),e.resolve(!1)}}}))}),uw(function(e){var n=new Aw(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.triggerEvent(n)}))}),Ek(function(e){var n=e.targetSnapshot,i=e.id,r=e.extractedUrl,o=e.rawUrl,a=e.extras,s=a.skipLocationChange,l=a.replaceUrl;return t.hooks.afterPreactivation(n,{navigationId:i,appliedUrlTree:r,rawUrlTree:o,skipLocationChange:!!s,replaceUrl:!!l})}),Y(function(e){var n=function(e,t,n){var i=P_(e,t._root,n?n._root:void 0);return new m_(i,t)}(t.routeReuseStrategy,e.targetSnapshot,e.currentRouterState);return Object.assign(Object.assign({},e),{targetRouterState:n})}),uw(function(e){t.currentUrlTree=e.urlAfterRedirects,t.rawUrlTree=t.urlHandlingStrategy.merge(t.currentUrlTree,e.rawUrl),t.routerState=e.targetRouterState,"deferred"===t.urlUpdateStrategy&&(e.extras.skipLocationChange||t.setBrowserUrl(t.rawUrlTree,!!e.extras.replaceUrl,e.id,e.extras.state),t.browserUrlTree=e.urlAfterRedirects)}),(i=t.rootContexts,r=t.routeReuseStrategy,o=function(e){return t.triggerEvent(e)},Y(function(e){return new H_(r,e.targetRouterState,e.currentRouterState,o).activate(i),e})),uw({next:function(){a=!0},complete:function(){a=!0}}),hw(function(){if(!a&&!s){t.resetUrlToCurrentUrlTree();var i=new yw(e.id,t.serializeUrl(e.extractedUrl),"Navigation ID ".concat(e.id," is not equal to the current navigation id ").concat(t.navigationId));n.next(i),e.resolve(!1)}t.currentNavigation=null}),Zb(function(i){if(s=!0,(l=i)&&l.ngNavigationCancelingError){var r=G_(i.url);r||(t.navigated=!0,t.resetStateAndUrl(e.currentRouterState,e.currentUrlTree,e.rawUrl));var o=new yw(e.id,t.serializeUrl(e.extractedUrl),i.message);n.next(o),r?setTimeout(function(){var n=t.urlHandlingStrategy.merge(i.url,t.rawUrlTree);t.scheduleNavigation(n,"imperative",null,{skipLocationChange:e.extras.skipLocationChange,replaceUrl:"eager"===t.urlUpdateStrategy},{resolve:e.resolve,reject:e.reject,promise:e.promise})},0):e.resolve(!1)}else{t.resetStateAndUrl(e.currentRouterState,e.currentUrlTree,e.rawUrl);var a=new bw(e.id,t.serializeUrl(e.extractedUrl),i);n.next(a);try{e.resolve(t.errorHandler(i))}catch(u){e.reject(u)}}var l;return Rb}))}))}},{key:"resetRootComponentType",value:function(e){this.rootComponentType=e,this.routerState.root.component=this.rootComponentType}},{key:"getTransition",value:function(){var e=this.transitions.value;return e.urlAfterRedirects=this.browserUrlTree,e}},{key:"setTransition",value:function(e){this.transitions.next(Object.assign(Object.assign({},this.getTransition()),e))}},{key:"initialNavigation",value:function(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}},{key:"setUpLocationChangeListener",value:function(){var e=this;this.locationSubscription||(this.locationSubscription=this.location.subscribe(function(t){var n=e.extractLocationChangeInfoFromEvent(t);e.shouldScheduleNavigation(e.lastLocationChangeInfo,n)&&setTimeout(function(){var t=n.source,i=n.state,r=n.urlTree,o={replaceUrl:!0};if(i){var a=Object.assign({},i);delete a.navigationId,0!==Object.keys(a).length&&(o.state=a)}e.scheduleNavigation(r,t,i,o)},0),e.lastLocationChangeInfo=n}))}},{key:"extractLocationChangeInfoFromEvent",value:function(e){var t;return{source:"popstate"===e.type?"popstate":"hashchange",urlTree:this.parseUrl(e.url),state:(null===(t=e.state)||void 0===t?void 0:t.navigationId)?e.state:null,transitionId:this.getTransition().id}}},{key:"shouldScheduleNavigation",value:function(e,t){if(!e)return!0;var n=t.urlTree.toString()===e.urlTree.toString();return!(t.transitionId===e.transitionId&&n&&("hashchange"===t.source&&"popstate"===e.source||"popstate"===t.source&&"hashchange"===e.source))}},{key:"url",get:function(){return this.serializeUrl(this.currentUrlTree)}},{key:"getCurrentNavigation",value:function(){return this.currentNavigation}},{key:"triggerEvent",value:function(e){this.events.next(e)}},{key:"resetConfig",value:function(e){X_(e),this.config=e.map($_),this.navigated=!1,this.lastSuccessfulId=-1}},{key:"ngOnDestroy",value:function(){this.dispose()}},{key:"dispose",value:function(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}},{key:"createUrlTree",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.relativeTo,i=t.queryParams,r=t.fragment,o=t.queryParamsHandling,a=t.preserveFragment,s=n||this.routerState.root,l=a?this.currentUrlTree.fragment:r,u=null;switch(o){case"merge":u=Object.assign(Object.assign({},this.currentUrlTree.queryParams),i);break;case"preserve":u=this.currentUrlTree.queryParams;break;default:u=i||null}return null!==u&&(u=this.removeEmptyProps(u)),function(e,t,n,i,r){if(0===n.length)return M_(t.root,t.root,t,i,r);var o=function(e){if("string"==typeof e[0]&&1===e.length&&"/"===e[0])return new I_(!0,0,e);var t=0,n=!1,i=e.reduce(function(e,i,r){if("object"==typeof i&&null!=i){if(i.outlets){var o={};return Nw(i.outlets,function(e,t){o[t]="string"==typeof e?e.split("/"):e}),[].concat(y(e),[{outlets:o}])}if(i.segmentPath)return[].concat(y(e),[i.segmentPath])}return"string"!=typeof i?[].concat(y(e),[i]):0===r?(i.split("/").forEach(function(i,r){0==r&&"."===i||(0==r&&""===i?n=!0:".."===i?t++:""!=i&&e.push(i))}),e):[].concat(y(e),[i])},[]);return new I_(n,t,i)}(n);if(o.toRoot())return M_(t.root,new Yw([],{}),t,i,r);var a=function(e,t,n){if(e.isAbsolute)return new R_(t.root,!0,0);if(-1===n.snapshot._lastPathIndex){var i=n.snapshot._urlSegment;return new R_(i,i===t.root,0)}var r=D_(e.commands[0])?0:1;return function(e,t,n){for(var i=e,r=t,o=n;o>r;){if(o-=r,!(i=i.parent))throw new Error("Invalid number of '../'");r=i.segments.length}return new R_(i,!1,r-o)}(n.snapshot._urlSegment,n.snapshot._lastPathIndex+r,e.numberOfDoubleDots)}(o,t,e),s=a.processChildren?F_(a.segmentGroup,a.index,o.commands):L_(a.segmentGroup,a.index,o.commands);return M_(a.segmentGroup,s,t,i,r)}(s,this.currentUrlTree,e,u,l)}},{key:"navigateByUrl",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1},n=G_(e)?e:this.parseUrl(e),i=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(i,"imperative",null,t)}},{key:"navigate",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1};return function(e){for(var t=0;t<e.length;t++){var n=e[t];if(null==n)throw new Error("The requested path contains ".concat(n," segment at index ").concat(t))}}(e),this.navigateByUrl(this.createUrlTree(e,t),t)}},{key:"serializeUrl",value:function(e){return this.urlSerializer.serialize(e)}},{key:"parseUrl",value:function(e){var t;try{t=this.urlSerializer.parse(e)}catch(n){t=this.malformedUriErrorHandler(n,this.urlSerializer,e)}return t}},{key:"isActive",value:function(e,t){if(G_(e))return jw(this.currentUrlTree,e,t);var n=this.parseUrl(e);return jw(this.currentUrlTree,n,t)}},{key:"removeEmptyProps",value:function(e){return Object.keys(e).reduce(function(t,n){var i=e[n];return null!=i&&(t[n]=i),t},{})}},{key:"processNavigations",value:function(){var e=this;this.navigations.subscribe(function(t){e.navigated=!0,e.lastSuccessfulId=t.id,e.events.next(new mw(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(e.currentUrlTree))),e.lastSuccessfulNavigation=e.currentNavigation,e.currentNavigation=null,t.resolve(!0)},function(t){e.console.warn("Unhandled Navigation Error: ")})}},{key:"scheduleNavigation",value:function(e,t,n,i,r){if(this.disposed)return Promise.resolve(!1);var o,a,s,l=this.getTransition(),u="imperative"!==t&&"imperative"===(null==l?void 0:l.source),c=(this.lastSuccessfulId===l.id||this.currentNavigation?l.rawUrl:l.urlAfterRedirects).toString()===e.toString();if(u&&c)return Promise.resolve(!0);r?(o=r.resolve,a=r.reject,s=r.promise):s=new Promise(function(e,t){o=e,a=t});var d=++this.navigationId;return this.setTransition({id:d,source:t,restoredState:n,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:e,extras:i,resolve:o,reject:a,promise:s,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),s.catch(function(e){return Promise.reject(e)})}},{key:"setBrowserUrl",value:function(e,t,n,i){var r=this.urlSerializer.serialize(e);i=i||{},this.location.isCurrentPathEqualTo(r)||t?this.location.replaceState(r,"",Object.assign(Object.assign({},i),{navigationId:n})):this.location.go(r,"",Object.assign(Object.assign({},i),{navigationId:n}))}},{key:"resetStateAndUrl",value:function(e,t,n){this.routerState=e,this.currentUrlTree=t,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n),this.resetUrlToCurrentUrlTree()}},{key:"resetUrlToCurrentUrlTree",value:function(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",{navigationId:this.lastSuccessfulId})}}]),e}()).\u0275fac=function(e){return new(e||Hk)(Ri(bi),Ri(Xw),Ri(Rk),Ri(Cd),Ri(Fa),Ri(Yc),Ri(_c),Ri(void 0))},Hk.\u0275prov=Re({token:Hk,factory:Hk.\u0275fac}),Hk),Uk=((Nk=function(){function e(t,n,i,r,o){A(this,e),this.router=t,this.route=n,this.commands=[],this.onChanges=new W,null==i&&r.setAttribute(o.nativeElement,"tabindex","0")}return m(e,[{key:"ngOnChanges",value:function(e){this.onChanges.next(this)}},{key:"routerLink",set:function(e){this.commands=null!=e?Array.isArray(e)?e:[e]:[]}},{key:"onClick",value:function(){var e={skipLocationChange:Gk(this.skipLocationChange),replaceUrl:Gk(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,e),!0}},{key:"urlTree",get:function(){return this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:Gk(this.preserveFragment)})}}]),e}()).\u0275fac=function(e){return new(e||Nk)(rs(jk),rs(b_),pi("tabindex"),rs(El),rs(Cl))},Nk.\u0275dir=bt({type:Nk,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(e,t){1&e&&ms("click",function(){return t.onClick()})},inputs:{routerLink:"routerLink",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo"},features:[Mt]}),Nk),Wk=((zk=function(){function e(t,n,i){var r=this;A(this,e),this.router=t,this.route=n,this.locationStrategy=i,this.commands=[],this.onChanges=new W,this.subscription=t.events.subscribe(function(e){e instanceof mw&&r.updateTargetUrlAndHref()})}return m(e,[{key:"routerLink",set:function(e){this.commands=null!=e?Array.isArray(e)?e:[e]:[]}},{key:"ngOnChanges",value:function(e){this.updateTargetUrlAndHref(),this.onChanges.next(this)}},{key:"ngOnDestroy",value:function(){this.subscription.unsubscribe()}},{key:"onClick",value:function(e,t,n,i,r){if(0!==e||t||n||i||r)return!0;if("string"==typeof this.target&&"_self"!=this.target)return!0;var o={skipLocationChange:Gk(this.skipLocationChange),replaceUrl:Gk(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,o),!1}},{key:"updateTargetUrlAndHref",value:function(){this.href=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree))}},{key:"urlTree",get:function(){return this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:Gk(this.preserveFragment)})}}]),e}()).\u0275fac=function(e){return new(e||zk)(rs(jk),rs(b_),rs(md))},zk.\u0275dir=bt({type:zk,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(e,t){1&e&&ms("click",function(e){return t.onClick(e.button,e.ctrlKey,e.shiftKey,e.altKey,e.metaKey)}),2&e&&(nl("href",t.href,Cr),$a("target",t.target))},inputs:{routerLink:"routerLink",target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo"},features:[Mt]}),zk);function Gk(e){return""===e||!!e}var qk,Yk,Zk,Qk=((qk=function(){function e(t,n,i,r,o){A(this,e),this.parentContexts=t,this.location=n,this.resolver=i,this.changeDetector=o,this.activated=null,this._activatedRoute=null,this.activateEvents=new Fu,this.deactivateEvents=new Fu,this.name=r||"primary",t.onChildOutletCreated(this.name,this)}return m(e,[{key:"ngOnDestroy",value:function(){this.parentContexts.onChildOutletDestroyed(this.name)}},{key:"ngOnInit",value:function(){if(!this.activated){var e=this.parentContexts.getContext(this.name);e&&e.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.resolver||null))}}},{key:"isActivated",get:function(){return!!this.activated}},{key:"component",get:function(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}},{key:"activatedRoute",get:function(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}},{key:"activatedRouteData",get:function(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}},{key:"detach",value:function(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();var e=this.activated;return this.activated=null,this._activatedRoute=null,e}},{key:"attach",value:function(e,t){this.activated=e,this._activatedRoute=t,this.location.insert(e.hostView)}},{key:"deactivate",value:function(){if(this.activated){var e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}},{key:"activateWith",value:function(e,t){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=e;var n=(t=t||this.resolver).resolveComponentFactory(e._futureSnapshot.routeConfig.component),i=this.parentContexts.getOrCreateContext(this.name).children,r=new Xk(e,i,this.location.injector);this.activated=this.location.createComponent(n,this.location.length,r),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}]),e}()).\u0275fac=function(e){return new(e||qk)(rs(Rk),rs(uu),rs(_l),pi("name"),rs(Kl))},qk.\u0275dir=bt({type:qk,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),qk),Xk=function(){function e(t,n,i){A(this,e),this.route=t,this.childContexts=n,this.parent=i}return m(e,[{key:"get",value:function(e,t){return e===b_?this.route:e===Rk?this.childContexts:this.parent.get(e,t)}}]),e}(),Kk=function e(){A(this,e)},Jk=function(){function e(){A(this,e)}return m(e,[{key:"preload",value:function(e,t){return Ty(null)}}]),e}(),$k=((Zk=function(){function e(t,n,i,r,o){A(this,e),this.router=t,this.injector=r,this.preloadingStrategy=o,this.loader=new Tk(n,i,function(e){return t.triggerEvent(new Cw(e))},function(e){return t.triggerEvent(new Sw(e))})}return m(e,[{key:"setUpPreloading",value:function(){var e=this;this.subscription=this.router.events.pipe(Ry(function(e){return e instanceof mw}),Iy(function(){return e.preload()})).subscribe(function(){})}},{key:"preload",value:function(){var e=this.injector.get(au);return this.processRoutes(e,this.router.config)}},{key:"ngOnDestroy",value:function(){this.subscription&&this.subscription.unsubscribe()}},{key:"processRoutes",value:function(e,t){var n,i=[],r=h(t);try{for(r.s();!(n=r.n()).done;){var o=n.value;if(o.loadChildren&&!o.canLoad&&o._loadedConfig){var a=o._loadedConfig;i.push(this.processRoutes(a.module,a.routes))}else o.loadChildren&&!o.canLoad?i.push(this.preloadConfig(e,o)):o.children&&i.push(this.processRoutes(e,o.children))}}catch(s){r.e(s)}finally{r.f()}return ie(i).pipe(ce(),Y(function(e){}))}},{key:"preloadConfig",value:function(e,t){var n=this;return this.preloadingStrategy.preload(t,function(){return(t._loadedConfig?Ty(t._loadedConfig):n.loader.load(e.injector,t)).pipe(se(function(e){return t._loadedConfig=e,n.processRoutes(e.module,e.routes)}))})}}]),e}()).\u0275fac=function(e){return new(e||Zk)(Ri(jk),Ri(Yc),Ri(_c),Ri(Fa),Ri(Kk))},Zk.\u0275prov=Re({token:Zk,factory:Zk.\u0275fac}),Zk),ex=((Yk=function(){function e(t,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};A(this,e),this.router=t,this.viewportScroller=n,this.options=i,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},i.scrollPositionRestoration=i.scrollPositionRestoration||"disabled",i.anchorScrolling=i.anchorScrolling||"disabled"}return m(e,[{key:"init",value:function(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}},{key:"createScrollEvents",value:function(){var e=this;return this.router.events.subscribe(function(t){t instanceof vw?(e.store[e.lastId]=e.viewportScroller.getScrollPosition(),e.lastSource=t.navigationTrigger,e.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof mw&&(e.lastId=t.id,e.scheduleScrollEvent(t,e.router.parseUrl(t.urlAfterRedirects).fragment))})}},{key:"consumeScrollEvents",value:function(){var e=this;return this.router.events.subscribe(function(t){t instanceof Mw&&(t.position?"top"===e.options.scrollPositionRestoration?e.viewportScroller.scrollToPosition([0,0]):"enabled"===e.options.scrollPositionRestoration&&e.viewportScroller.scrollToPosition(t.position):t.anchor&&"enabled"===e.options.anchorScrolling?e.viewportScroller.scrollToAnchor(t.anchor):"disabled"!==e.options.scrollPositionRestoration&&e.viewportScroller.scrollToPosition([0,0]))})}},{key:"scheduleScrollEvent",value:function(e,t){this.router.triggerEvent(new Mw(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,t))}},{key:"ngOnDestroy",value:function(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}]),e}()).\u0275fac=function(e){return new(e||Yk)(Ri(jk),Ri(Kh),Ri(void 0))},Yk.\u0275prov=Re({token:Yk,factory:Yk.\u0275fac}),Yk),tx=new mi("ROUTER_CONFIGURATION"),nx=new mi("ROUTER_FORROOT_GUARD"),ix=[Cd,{provide:Xw,useClass:Kw},{provide:jk,useFactory:function(e,t,n,i,r,o,a){var s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:{},l=arguments.length>8?arguments[8]:void 0,u=arguments.length>9?arguments[9]:void 0,c=new jk(null,e,t,n,i,r,o,Vw(a));if(l&&(c.urlHandlingStrategy=l),u&&(c.routeReuseStrategy=u),function(e,t){e.errorHandler&&(t.errorHandler=e.errorHandler),e.malformedUriErrorHandler&&(t.malformedUriErrorHandler=e.malformedUriErrorHandler),e.onSameUrlNavigation&&(t.onSameUrlNavigation=e.onSameUrlNavigation),e.paramsInheritanceStrategy&&(t.paramsInheritanceStrategy=e.paramsInheritanceStrategy),e.relativeLinkResolution&&(t.relativeLinkResolution=e.relativeLinkResolution),e.urlUpdateStrategy&&(t.urlUpdateStrategy=e.urlUpdateStrategy)}(s,c),s.enableTracing){var d=id();c.events.subscribe(function(e){d.logGroup("Router Event: "+e.constructor.name),d.log(e.toString()),d.log(e),d.logGroupEnd()})}return c},deps:[Xw,Rk,Cd,Fa,Yc,_c,Mk,tx,[function(){return function e(){A(this,e)}}(),new Hi],[Dk,new Hi]]},Rk,{provide:b_,useFactory:function(e){return e.routerState.root},deps:[jk]},{provide:Yc,useClass:Xc},$k,Jk,function(){function e(){A(this,e)}return m(e,[{key:"preload",value:function(e,t){return t().pipe(Zb(function(){return Ty(null)}))}}]),e}(),{provide:tx,useValue:{enableTracing:!1}}];function rx(){return new zc("Router",jk)}var ox,ax=((ox=function(){function e(t,n){A(this,e)}return m(e,null,[{key:"forRoot",value:function(t,n){return{ngModule:e,providers:[ix,cx(t),{provide:nx,useFactory:ux,deps:[[jk,new Hi,new ji]]},{provide:tx,useValue:n||{}},{provide:md,useFactory:lx,deps:[ad,[new Ni(kd),new Hi],tx]},{provide:ex,useFactory:sx,deps:[jk,Kh,tx]},{provide:Kk,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:Jk},{provide:zc,multi:!0,useFactory:rx},[hx,{provide:ic,multi:!0,useFactory:fx,deps:[hx]},{provide:gx,useFactory:px,deps:[hx]},{provide:cc,multi:!0,useExisting:gx}]]}}},{key:"forChild",value:function(t){return{ngModule:e,providers:[cx(t)]}}}]),e}()).\u0275fac=function(e){return new(e||ox)(Ri(nx,8),Ri(jk,8))},ox.\u0275mod=mt({type:ox}),ox.\u0275inj=Fe({}),ox);function sx(e,t,n){return n.scrollOffset&&t.setOffset(n.scrollOffset),new ex(e,t,n)}function lx(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return n.useHash?new Ad(e,t):new xd(e,t)}function ux(e){return"guarded"}function cx(e){return[{provide:yi,multi:!0,useValue:e},{provide:Mk,multi:!0,useValue:e}]}var dx,hx=((dx=function(){function e(t){A(this,e),this.injector=t,this.initNavigation=!1,this.resultOfPreactivationDone=new W}return m(e,[{key:"appInitializer",value:function(){var e=this;return this.injector.get(ud,Promise.resolve(null)).then(function(){var t=null,n=new Promise(function(e){return t=e}),i=e.injector.get(jk),r=e.injector.get(tx);return"disabled"===r.initialNavigation?(i.setUpLocationChangeListener(),t(!0)):"enabled"===r.initialNavigation||"enabledBlocking"===r.initialNavigation?(i.hooks.afterPreactivation=function(){return e.initNavigation?Ty(null):(e.initNavigation=!0,t(!0),e.resultOfPreactivationDone)},i.initialNavigation()):t(!0),n})}},{key:"bootstrapListener",value:function(e){var t=this.injector.get(tx),n=this.injector.get($k),i=this.injector.get(ex),r=this.injector.get(jk),o=this.injector.get(Gc);e===o.components[0]&&("enabledNonBlocking"!==t.initialNavigation&&void 0!==t.initialNavigation||r.initialNavigation(),n.setUpPreloading(),i.init(),r.resetRootComponentType(o.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}}]),e}()).\u0275fac=function(e){return new(e||dx)(Ri(Fa))},dx.\u0275prov=Re({token:dx,factory:dx.\u0275fac}),dx);function fx(e){return e.appInitializer.bind(e)}function px(e){return e.bootstrapListener.bind(e)}var gx=new mi("Router Initializer");function vx(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a}function mx(e,t){return function(n,i){t(n,i,e)}}function yx(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function bx(e,t,n,i){return new(n||(n=Promise))(function(r,o){function a(e){try{l(i.next(e))}catch(t){o(t)}}function s(e){try{l(i.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((i=i.apply(e,t||[])).next())})}u("meiF"),u("lTIg"),u("RQGG"),u("bC4P"),u("iWo5");var wx=u("E/Mt"),_x=u("1vRN"),kx=(u("39oe"),u("k4ps")),xx=u("r7QR"),Ax=u("7OTs"),Cx=(u("y08P"),u("wEJo"));function Sx(e,t,n,i){return v(n)&&(i=n,n=void 0),i?Sx(e,t,n).pipe(Y(function(e){return S(e)?i.apply(void 0,y(e)):i(e)})):new V(function(i){Px(e,t,function(e){i.next(arguments.length>1?Array.prototype.slice.call(arguments):e)},i,n)})}function Px(e,t,n,i,r){var o;if(function(e){return e&&"function"==typeof e.addEventListener&&"function"==typeof e.removeEventListener}(e)){var a=e;e.addEventListener(t,n,r),o=function(){return a.removeEventListener(t,n,r)}}else if(function(e){return e&&"function"==typeof e.on&&"function"==typeof e.off}(e)){var s=e;e.on(t,n),o=function(){return s.off(t,n)}}else if(function(e){return e&&"function"==typeof e.addListener&&"function"==typeof e.removeListener}(e)){var l=e;e.addListener(t,n),o=function(){return l.removeListener(t,n)}}else{if(!e||!e.length)throw new TypeError("Invalid event target");for(var u=0,c=e.length;u<c;u++)Px(e[u],t,n,i,r)}i.add(o)}function Ex(e,t){return function(n){return n.lift(new jx(e,t))}}u("B4Jq");var Dx,Ox,Mx,Tx,Ix,Rx,Lx,Fx,Bx,Vx,zx,Nx,Hx,jx=function(){function e(t,n){A(this,e),this.compare=t,this.keySelector=n}return m(e,[{key:"call",value:function(e,t){return t.subscribe(new Ux(e,this.compare,this.keySelector))}}]),e}(),Ux=function(e){r(n,e);var t=a(n);function n(e,i,r){var o;return A(this,n),(o=t.call(this,e)).keySelector=r,o.hasKey=!1,"function"==typeof i&&(o.compare=i),o}return m(n,[{key:"compare",value:function(e,t){return e===t}},{key:"_next",value:function(e){var t;try{var n=this.keySelector;t=n?n(e):e}catch(r){return this.destination.error(r)}var i=!1;if(this.hasKey)try{i=(0,this.compare)(this.key,t)}catch(r){return this.destination.error(r)}else this.hasKey=!0;i||(this.key=t,this.destination.next(e))}}]),n}(I),Wx=wx.e,Gx=["*"],qx=function(e){return"function"==typeof __zone_symbol__requestAnimationFrame?__zone_symbol__requestAnimationFrame(e):"function"==typeof requestAnimationFrame?requestAnimationFrame(e):setTimeout(e)},Yx=((Dx=function(){function e(t,n){A(this,e),this.injector=t,this.el=n,this.onChange=function(){},this.onTouched=function(){}}return m(e,[{key:"writeValue",value:function(e){this.el.nativeElement.value=this.lastValue=null==e?"":e,Zx(this.el)}},{key:"handleChangeEvent",value:function(e,t){e===this.el.nativeElement&&(t!==this.lastValue&&(this.lastValue=t,this.onChange(t)),Zx(this.el))}},{key:"_handleBlurEvent",value:function(e){e===this.el.nativeElement&&(this.onTouched(),Zx(this.el))}},{key:"registerOnChange",value:function(e){this.onChange=e}},{key:"registerOnTouched",value:function(e){this.onTouched=e}},{key:"setDisabledState",value:function(e){this.el.nativeElement.disabled=e}},{key:"ngOnDestroy",value:function(){this.statusChanges&&this.statusChanges.unsubscribe()}},{key:"ngAfterViewInit",value:function(){var e,t=this;try{e=this.injector.get(cm)}catch(i){}if(e){e.statusChanges&&(this.statusChanges=e.statusChanges.subscribe(function(){return Zx(t.el)}));var n=e.control;n&&["markAsTouched","markAllAsTouched","markAsUntouched","markAsDirty","markAsPristine"].forEach(function(e){if(n[e]){var i=n[e].bind(n);n[e]=function(){i.apply(void 0,arguments),Zx(t.el)}}})}}}]),e}()).\u0275fac=function(e){!function(){throw new Error("invalid")}()},Dx.\u0275dir=bt({type:Dx,hostBindings:function(e,t){1&e&&ms("ionBlur",function(e){return t._handleBlurEvent(e.target)})}}),Dx),Zx=function(e){qx(function(){var t=e.nativeElement,n=Qx(t);Xx(t,n);var i=t.closest("ion-item");i&&Xx(i,n)})},Qx=function(e){for(var t=e.classList,n=[],i=0;i<t.length;i++){var r=t.item(i);null!==r&&Kx(r,"ng-")&&n.push("ion-"+r.substr(3))}return n},Xx=function(e,t){var n=e.classList;["ion-valid","ion-invalid","ion-touched","ion-untouched","ion-dirty","ion-pristine"].forEach(function(e){return n.remove(e)}),t.forEach(function(e){return n.add(e)})},Kx=function(e,t){return e.substr(0,t.length)===t},Jx=((Mx=Ox=function(e){r(n,e);var t=a(n);function n(e,i){return A(this,n),t.call(this,e,i)}return m(n,[{key:"writeValue",value:function(e){this.el.nativeElement.checked=this.lastValue=null!=e&&e,Zx(this.el)}},{key:"_handleIonChange",value:function(e){this.handleChangeEvent(e,e.checked)}}]),n}(Yx)).\u0275fac=function(e){return new(e||Mx)(rs(Fa),rs(Cl))},Mx.\u0275dir=bt({type:Mx,selectors:[["ion-checkbox"],["ion-toggle"]],hostBindings:function(e,t){1&e&&ms("ionChange",function(e){return t._handleIonChange(e.target)})},features:[yl([{provide:Dv,useExisting:Ox,multi:!0}]),Va]}),Mx),$x=((Ix=Tx=function(e){r(n,e);var t=a(n);function n(e,i){return A(this,n),t.call(this,e,i)}return m(n,[{key:"_handleIonChange",value:function(e){this.handleChangeEvent(e,e.value)}},{key:"registerOnChange",value:function(e){i(c(n.prototype),"registerOnChange",this).call(this,function(t){e(""===t?null:parseFloat(t))})}}]),n}(Yx)).\u0275fac=function(e){return new(e||Ix)(rs(Fa),rs(Cl))},Ix.\u0275dir=bt({type:Ix,selectors:[["ion-input","type","number"]],hostBindings:function(e,t){1&e&&ms("ionChange",function(e){return t._handleIonChange(e.target)})},features:[yl([{provide:Dv,useExisting:Tx,multi:!0}]),Va]}),Ix),eA=((Lx=Rx=function(e){r(n,e);var t=a(n);function n(e,i){return A(this,n),t.call(this,e,i)}return m(n,[{key:"_handleIonSelect",value:function(e){this.handleChangeEvent(e,e.checked)}}]),n}(Yx)).\u0275fac=function(e){return new(e||Lx)(rs(Fa),rs(Cl))},Lx.\u0275dir=bt({type:Lx,selectors:[["ion-radio"]],hostBindings:function(e,t){1&e&&ms("ionSelect",function(e){return t._handleIonSelect(e.target)})},features:[yl([{provide:Dv,useExisting:Rx,multi:!0}]),Va]}),Lx),tA=((Bx=Fx=function(e){r(n,e);var t=a(n);function n(e,i){return A(this,n),t.call(this,e,i)}return m(n,[{key:"_handleChangeEvent",value:function(e){this.handleChangeEvent(e,e.value)}}]),n}(Yx)).\u0275fac=function(e){return new(e||Bx)(rs(Fa),rs(Cl))},Bx.\u0275dir=bt({type:Bx,selectors:[["ion-range"],["ion-select"],["ion-radio-group"],["ion-segment"],["ion-datetime"]],hostBindings:function(e,t){1&e&&ms("ionChange",function(e){return t._handleChangeEvent(e.target)})},features:[yl([{provide:Dv,useExisting:Fx,multi:!0}]),Va]}),Bx),nA=((Nx=Vx=function(e){r(n,e);var t=a(n);function n(e,i){return A(this,n),t.call(this,e,i)}return m(n,[{key:"_handleInputEvent",value:function(e){this.handleChangeEvent(e,e.value)}}]),n}(Yx)).\u0275fac=function(e){return new(e||Nx)(rs(Fa),rs(Cl))},Nx.\u0275dir=bt({type:Nx,selectors:[["ion-input",3,"type","number"],["ion-textarea"],["ion-searchbar"]],hostBindings:function(e,t){1&e&&ms("ionChange",function(e){return t._handleInputEvent(e.target)})},features:[yl([{provide:Dv,useExisting:Vx,multi:!0}]),Va]}),Nx),iA=((zx=function(){function e(t,n){var i=this;A(this,e),this.doc=t,this.backButton=new W,this.keyboardDidShow=new W,this.keyboardDidHide=new W,this.pause=new W,this.resume=new W,this.resize=new W,n.run(function(){var e;i.win=t.defaultView,i.backButton.subscribeWithPriority=function(e,t){return this.subscribe(function(i){return i.register(e,function(e){return n.run(function(){return t(e)})})})},oA(i.pause,t,"pause"),oA(i.resume,t,"resume"),oA(i.backButton,t,"ionBackButton"),oA(i.resize,i.win,"resize"),oA(i.keyboardDidShow,i.win,"ionKeyboardDidShow"),oA(i.keyboardDidHide,i.win,"ionKeyboardDidHide"),i._readyPromise=new Promise(function(t){e=t}),i.win&&i.win.cordova?t.addEventListener("deviceready",function(){e("cordova")},{once:!0}):e("dom")})}return m(e,[{key:"is",value:function(e){return Object(wx.a)(this.win,e)}},{key:"platforms",value:function(){return Object(wx.d)(this.win)}},{key:"ready",value:function(){return this._readyPromise}},{key:"isRTL",get:function(){return"rtl"===this.doc.dir}},{key:"getQueryParam",value:function(e){return rA(this.win.location.href,e)}},{key:"isLandscape",value:function(){return!this.isPortrait()}},{key:"isPortrait",value:function(){return this.win.matchMedia&&this.win.matchMedia("(orientation: portrait)").matches}},{key:"testUserAgent",value:function(e){var t=this.win.navigator;return!!(t&&t.userAgent&&t.userAgent.indexOf(e)>=0)}},{key:"url",value:function(){return this.win.location.href}},{key:"width",value:function(){return this.win.innerWidth}},{key:"height",value:function(){return this.win.innerHeight}}]),e}()).\u0275fac=function(e){return new(e||zx)(Ri(od),Ri(Ac))},zx.\u0275prov=Re({token:zx,factory:function(e){return zx.\u0275fac(e)},providedIn:"root"}),zx.ngInjectableDef=Re({factory:function(){return new zx(Ri(od),Ri(Ac))},token:zx,providedIn:"root"}),zx=vx([mx(0,Ni(od))],zx)),rA=function(e,t){t=t.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var n=new RegExp("[\\?&]"+t+"=([^&#]*)").exec(e);return n?decodeURIComponent(n[1].replace(/\+/g," ")):null},oA=function(e,t,n){t&&t.addEventListener(n,function(t){e.next(null!=t?t.detail:void 0)})},aA=((Hx=function(){function e(t,n,i,r){var o=this;A(this,e),this.location=n,this.serializer=i,this.router=r,this.direction=lA,this.animated=uA,this.guessDirection="forward",this.lastNavId=-1,r&&r.events.subscribe(function(e){if(e instanceof vw){var t=e.restoredState?e.restoredState.navigationId:e.id;o.guessDirection=t<o.lastNavId?"back":"forward",o.guessAnimation=e.restoredState?void 0:o.guessDirection,o.lastNavId="forward"===o.guessDirection?e.id:t}}),t.backButton.subscribeWithPriority(0,function(e){o.pop(),e()})}return m(e,[{key:"navigateForward",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.setDirection("forward",t.animated,t.animationDirection,t.animation),this.navigate(e,t)}},{key:"navigateBack",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.setDirection("back",t.animated,t.animationDirection,t.animation),this.navigate(e,t)}},{key:"navigateRoot",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.setDirection("root",t.animated,t.animationDirection,t.animation),this.navigate(e,t)}},{key:"back",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{animated:!0,animationDirection:"back"};return this.setDirection("back",e.animated,e.animationDirection,e.animation),this.location.back()}},{key:"pop",value:function(){return bx(this,void 0,void 0,regeneratorRuntime.mark(function e(){var t;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:t=this.topOutlet;case 1:if(e.t0=t,!e.t0){e.next=6;break}return e.next=5,t.pop();case 5:e.t0=!e.sent;case 6:if(!e.t0){e.next=10;break}t=t.parentOutlet;case 8:e.next=1;break;case 10:case"end":return e.stop()}},e,this)}))}},{key:"setDirection",value:function(e,t,n,i){this.direction=e,this.animated=sA(e,t,n),this.animationBuilder=i}},{key:"setTopOutlet",value:function(e){this.topOutlet=e}},{key:"consumeTransition",value:function(){var e,t="root",n=this.animationBuilder;return"auto"===this.direction?(t=this.guessDirection,e=this.guessAnimation):(e=this.animated,t=this.direction),this.direction=lA,this.animated=uA,this.animationBuilder=void 0,{direction:t,animation:e,animationBuilder:n}}},{key:"navigate",value:function(e,t){if(Array.isArray(e))return this.router.navigate(e,t);var n=this.serializer.parse(e.toString());return void 0!==t.queryParams&&(n.queryParams=Object.assign({},t.queryParams)),void 0!==t.fragment&&(n.fragment=t.fragment),this.router.navigateByUrl(n,t)}}]),e}()).\u0275fac=function(e){return new(e||Hx)(Ri(iA),Ri(Cd),Ri(Xw),Ri(jk,8))},Hx.\u0275prov=Re({token:Hx,factory:function(e){return Hx.\u0275fac(e)},providedIn:"root"}),Hx.ngInjectableDef=Re({factory:function(){return new Hx(Ri(iA),Ri(Cd),Ri(Xw),Ri(jk,8))},token:Hx,providedIn:"root"}),Hx=vx([mx(3,Hi())],Hx)),sA=function(e,t,n){if(!1!==t)return void 0!==n?n:"forward"===e||"back"===e?e:"root"===e&&!0===t?"forward":void 0},lA="auto",uA=void 0,cA=function(e,t,n){n.forEach(function(n){return e[n]=Sx(t,n)})};function dA(e){return function(t){return e.inputs&&(n=t,i=e.inputs,r=n.prototype,i.forEach(function(e){Object.defineProperty(r,e,{get:function(){return this.el[e]},set:function(t){var n=this;this.z.runOutsideAngular(function(){return n.el[e]=t})}})})),e.methods&&function(e,t){var n=e.prototype;t.forEach(function(e){n[e]=function(){var t=this,n=arguments;return this.z.runOutsideAngular(function(){return t.el[e].apply(t.el,n)})}})}(t,e.methods),t;var n,i,r}}var hA,fA,pA,gA,vA,mA,yA,bA,wA,_A,kA,xA,AA,CA,SA,PA,EA,DA,OA,MA,TA,IA,RA,LA,FA,BA,VA,zA,NA,HA,jA,UA,WA,GA,qA,YA,ZA,QA,XA,KA,JA,$A,eC,tC,nC,iC,rC,oC,aC,sC,lC,uC,cC,dC,hC,fC,pC,gC,vC,mC,yC,bC,wC,_C,kC,xC,AC,CC,SC,PC,EC,DC,OC=((hC=function e(t,n,i){A(this,e),this.z=i,t.detach(),this.el=n.nativeElement}).\u0275fac=function(e){return new(e||hC)(rs(Kl),rs(Cl),rs(Ac))},hC.\u0275cmp=ft({type:hC,selectors:[["ion-app"]],ngContentSelectors:Gx,decls:1,vars:0,template:function(e,t){1&e&&(As(),Cs(0))},encapsulation:2,changeDetection:0}),hC),MC=((dC=function e(t,n,i){A(this,e),this.z=i,t.detach(),this.el=n.nativeElement}).\u0275fac=function(e){return new(e||dC)(rs(Kl),rs(Cl),rs(Ac))},dC.\u0275cmp=ft({type:dC,selectors:[["ion-avatar"]],ngContentSelectors:Gx,decls:1,vars:0,template:function(e,t){1&e&&(As(),Cs(0))},encapsulation:2,changeDetection:0}),dC),TC=((cC=function e(t,n,i){A(this,e),this.z=i,t.detach(),this.el=n.nativeElement}).\u0275fac=function(e){return new(e||cC)(rs(Kl),rs(Cl),rs(Ac))},cC.\u0275cmp=ft({type:cC,selectors:[["ion-back-button"]],inputs:{color:"color",defaultHref:"defaultHref",disabled:"disabled",icon:"icon",mode:"mode",routerAnimation:"routerAnimation",text:"text",type:"type"},ngContentSelectors:Gx,decls:1,vars:0,template:function(e,t){1&e&&(As(),Cs(0))},encapsulation:2,changeDetection:0}),cC=vx([dA({inputs:["color","defaultHref","disabled","icon","mode","routerAnimation","text","type"]})],cC)),IC=((uC=function e(t,n,i){A(this,e),this.z=i,t.detach(),this.el=n.nativeElement}).\u0275fac=function(e){return new(e||uC)(rs(Kl),rs(Cl),rs(Ac))},uC.\u0275cmp=ft({type:uC,selectors:[["ion-badge"]],inputs:{color:"color",mode:"mode"},ngContentSelectors:Gx,decls:1,vars:0,template:function(e,t){1&e&&(As(),Cs(0))},encapsulation:2,changeDetection:0}),uC=vx([dA({inputs:["color","mode"]})],uC)),RC=((lC=function e(t,n,i){A(this,e),this.z=i,t.detach(),this.el=n.nativeElement,cA(this,this.el,["ionFocus","ionBlur"])}).\u0275fac=function(e){return new(e||lC)(rs(Kl),rs(Cl),rs(Ac))},lC.\u0275cmp=ft({type:lC,selectors:[["ion-button"]],inputs:{buttonType:"buttonType",color:"color",disabled:"disabled",download:"download",expand:"expand",fill:"fill",href:"href",mode:"mode",rel:"rel",routerAnimation:"routerAnimation",routerDirection:"routerDirection",shape:"shape",size:"size",strong:"strong",target:"target",type:"type"},ngContentSelectors:Gx,decls:1,vars:0,template:function(e,t){1&e&&(As(),Cs(0))},encapsulation:2,changeDetection:0}),lC=vx([dA({inputs:["buttonType","color","disabled","download","expand","fill","href","mode","rel","routerAnimation","routerDirection","shape","size","strong","target","type"]})],lC)),LC=((sC=function e(t,n,i){A(this,e),this.z=i,t.detach(),this.el=n.nativeElement}).\u0275fac=function(e){return new(e||sC)(rs(Kl),rs(Cl),rs(Ac))},sC.\u0275cmp=ft({type:sC,selectors:[["ion-buttons"]],inputs:{collapse:"collapse"},ngContentSelectors:Gx,decls:1,vars:0,template:function(e,t){1&e&&(As(),Cs(0))},encapsulation:2,changeDetection:0}),sC=vx([dA({inputs:["collapse"]})],sC)),FC=((aC=function e(t,n,i){A(this,e),this.z=i,t.detach(),this.el=n.nativeElement}).\u0275fac=function(e){return new(e||aC)(rs(Kl),rs(Cl),rs(Ac))},aC.\u0275cmp=ft({type:aC,selectors:[["ion-card"]],inputs:{button:"button",color:"color",disabled:"disabled",download:"download",href:"href",mode:"mode",rel:"rel",routerAnimation:"routerAnimation",routerDirection:"routerDirection",target:"target",type:"type"},ngContentSelectors:Gx,decls:1,vars:0,template:function(e,t){1&e&&(As(),Cs(0))},encapsulation:2,changeDetection:0}),aC=vx([dA({inputs:["button","color","disabled","download","href","mode","rel","routerAnimation","routerDirection","target","type"]})],aC)),BC=((oC=function e(t,n,i){A(this,e),this.z=i,t.detach(),this.el=n.nativeElement}).\u0275fac=function(e){return new(e||oC)(rs(Kl),rs(Cl),rs(Ac))},oC.\u0275cmp=ft({type:oC,selectors:[["ion-card-content"]],inputs:{mode:"mode"},ngContentSelectors:Gx,decls:1,vars:0,template:function(e,t){1&e&&(As(),Cs(0))},encapsulation:2,changeDetection:0}),oC=vx([dA({inputs:["mode"]})],oC)),VC=((rC=function e(t,n,i){A(this,e),this.z=i,t.detach(),this.el=n.nativeElement}).\u0275fac=function(e){return new(e||rC)(rs(Kl),rs(Cl),rs(Ac))},rC.\u0275cmp=ft({type:rC,selectors:[["ion-card-header"]],inputs:{color:"color",mode:"mode",translucent:"translucent"},ngContentSelectors:Gx,decls:1,vars:0,template:function(e,t){1&e&&(As(),Cs(0))},encapsulation:2,changeDetection:0}),rC=vx([dA({inputs:["color","mode","translucent"]})],rC)),zC=((iC=function e(t,n,i){A(this,e),this.z=i,t.detach(),this.el=n.nativeElement}).\u0275fac=function(e){return new(e||iC)(rs(Kl),rs(Cl),rs(Ac))},iC.\u0275cmp=ft({type:iC,selectors:[["ion-card-subtitle"]],inputs:{color:"color",mode:"mode"},ngContentSelectors:Gx,decls:1,vars:0,template:function(e,t){1&e&&(As(),Cs(0))},encapsulation:2,changeDetection:0}),iC=vx([dA({inputs:["color","mode"]})],iC)),NC=((nC=function e(t,n,i){A(this,e),this.z=i,t.detach(),this.el=n.nativeElement,cA(this,this.el,["ionChange","ionFocus","ionBlur"])}).\u0275fac=function(e){return new(e||nC)(rs(Kl),rs(Cl),rs(Ac))},nC.\u0275cmp=ft({type:nC,selectors:[["ion-checkbox"]],inputs:{checked:"checked",color:"color",disabled:"disabled",indeterminate:"indeterminate",mode:"mode",name:"name",value:"value"},ngContentSelectors:Gx,decls:1,vars:0,template:function(e,t){1&e&&(As(),Cs(0))},encapsulation:2,changeDetection:0}),nC=vx([dA({inputs:["checked","color","disabled","indeterminate","mode","name","value"]})],nC)),HC=((tC=function e(t,n,i){A(this,e),this.z=i,t.detach(),this.el=n.nativeElement}).\u0275fac=function(e){return new(e||tC)(rs(Kl),rs(Cl),rs(Ac))},tC.\u0275cmp=ft({type:tC,selectors:[["ion-chip"]],inputs:{color:"color",disabled:"disabled",mode:"mode",outline:"outline"},ngContentSelectors:Gx,decls:1,vars:0,template:function(e,t){1&e&&(As(),Cs(0))},encapsulation:2,changeDetection:0}),tC=vx([dA({inputs:["color","disabled","mode","outline"]})],tC)),jC=((eC=function e(t,n,i){A(this,e),this.z=i,t.detach(),this.el=n.nativeElement}).\u0275fac=function(e){return new(e||eC)(rs(Kl),rs(Cl),rs(Ac))},eC.\u0275cmp=ft({type:eC,selectors:[["ion-col"]],inputs:{offset:"offset",offsetLg:"offsetLg",offsetMd:"offsetMd",offsetSm:"offsetSm",offsetXl:"offsetXl",offsetXs:"offsetXs",pull:"pull",pullLg:"pullLg",pullMd:"pullMd",pullSm:"pullSm",pullXl:"pullXl",pullXs:"pullXs",push:"push",pushLg:"pushLg",pushMd:"pushMd",pushSm:"pushSm",pushXl:"pushXl",pushXs:"pushXs",size:"size",sizeLg:"sizeLg",sizeMd:"sizeMd",sizeSm:"sizeSm",sizeXl:"sizeXl",sizeXs:"sizeXs"},ngContentSelectors:Gx,decls:1,vars:0,template:function(e,t){1&e&&(As(),Cs(0))},encapsulation:2,changeDetection:0}),eC=vx([dA({inputs:["offset","offsetLg","offsetMd","offsetSm","offsetXl","offsetXs","pull","pullLg","pullMd","pullSm","pullXl","pullXs","push","pushLg","pushMd","pushSm","pushXl","pushXs","size","sizeLg","sizeMd","sizeSm","sizeXl","sizeXs"]})],eC)),UC=(($A=function e(t,n,i){A(this,e),this.z=i,t.detach(),this.el=n.nativeElement,cA(this,this.el,["ionScrollStart","ionScroll","ionScrollEnd"])}).\u0275fac=function(e){return new(e||$A)(rs(Kl),rs(Cl),rs(Ac))},$A.\u0275cmp=ft({type:$A,selectors:[["ion-content"]],inputs:{color:"color",forceOverscroll:"forceOverscroll",fullscreen:"fullscreen",scrollEvents:"scrollEvents",scrollX:"scrollX",scrollY:"scrollY"},ngContentSelectors:Gx,decls:1,vars:0,template:function(e,t){1&e&&(As(),Cs(0))},encapsulation:2,changeDetection:0}),$A=vx([dA({inputs:["color","forceOverscroll","fullscreen","scrollEvents","scrollX","scrollY"],methods:["getScrollElement","scrollToTop","scrollToBottom","scrollByPoint","scrollToPoint"]})],$A)),WC=((JA=function e(t,n,i){A(this,e),this.z=i,t.detach(),this.el=n.nativeElement,cA(this,this.el,["ionCancel","ionChange","ionFocus","ionBlur"])}).\u0275fac=function(e){return new(e||JA)(rs(Kl),rs(Cl),rs(Ac))},JA.\u0275cmp=ft({type:JA,selectors:[["ion-datetime"]],inputs:{cancelText:"cancelText",dayNames:"dayNames",dayShortNames:"dayShortNames",dayValues:"dayValues",disabled:"disabled",displayFormat:"displayFormat",displayTimezone:"displayTimezone",doneText:"doneText",hourValues:"hourValues",max:"max",min:"min",minuteValues:"minuteValues",mode:"mode",monthNames:"monthNames",monthShortNames:"monthShortNames",monthValues:"monthValues",name:"name",pickerFormat:"pickerFormat",pickerOptions:"pickerOptions",placeholder:"placeholder",readonly:"readonly",value:"value",yearValues:"yearValues"},ngContentSelectors:Gx,decls:1,vars:0,template:function(e,t){1&e&&(As(),Cs(0))},encapsulation:2,changeDetection:0}),JA=vx([dA({inputs:["cancelText","dayNames","dayShortNames","dayValues","disabled","displayFormat","displayTimezone","doneText","hourValues","max","min","minuteValues","mode","monthNames","monthShortNames","monthValues","name","pickerFormat","pickerOptions","placeholder","readonly","value","yearValues"],methods:["open"]})],JA)),GC=((KA=function e(t,n,i){A(this,e),this.z=i,t.detach(),this.el=n.nativeElement}).\u0275fac=function(e){return new(e||KA)(rs(Kl),rs(Cl),rs(Ac))},KA.\u0275cmp=ft({type:KA,selectors:[["ion-fab"]],inputs:{activated:"activated",edge:"edge",horizontal:"horizontal",vertical:"vertical"},ngContentSelectors:Gx,decls:1,vars:0,template:function(e,t){1&e&&(As(),Cs(0))},encapsulation:2,changeDetection:0}),KA=vx([dA({inputs:["activated","edge","horizontal","vertical"],methods:["close"]})],KA)),qC=((XA=function e(t,n,i){A(this,e),this.z=i,t.detach(),this.el=n.nativeElement,cA(this,this.el,["ionFocus","ionBlur"])}).\u0275fac=function(e){return new(e||XA)(rs(Kl),rs(Cl),rs(Ac))},XA.\u0275cmp=ft({type:XA,selectors:[["ion-fab-button"]],inputs:{activated:"activated",closeIcon:"closeIcon",color:"color",disabled:"disabled",download:"download",href:"href",mode:"mode",rel:"rel",routerAnimation:"routerAnimation",routerDirection:"routerDirection",show:"show",size:"size",target:"target",translucent:"translucent",type:"type"},ngContentSelectors:Gx,decls:1,vars:0,template:function(e,t){1&e&&(As(),Cs(0))},encapsulation:2,changeDetection:0}),XA=vx([dA({inputs:["activated","closeIcon","color","disabled","download","href","mode","rel","routerAnimation","routerDirection","show","size","target","translucent","type"]})],XA)),YC=((QA=function e(t,n,i){A(this,e),this.z=i,t.detach(),this.el=n.nativeElement}).\u0275fac=function(e){return new(e||QA)(rs(Kl),rs(Cl),rs(Ac))},QA.\u0275cmp=ft({type:QA,selectors:[["ion-fab-list"]],inputs:{activated:"activated",side:"side"},ngContentSelectors:Gx,decls:1,vars:0,template:function(e,t){1&e&&(As(),Cs(0))},encapsulation:2,changeDetection:0}),QA=vx([dA({inputs:["activated","side"]})],QA)),ZC=((ZA=function e(t,n,i){A(this,e),this.z=i,t.detach(),this.el=n.nativeElement}).\u0275fac=function(e){return new(e||ZA)(rs(Kl),rs(Cl),rs(Ac))},ZA.\u0275cmp=ft({type:ZA,selectors:[["ion-footer"]],inputs:{mode:"mode",translucent:"translucent"},ngContentSelectors:Gx,decls:1,vars:0,template:function(e,t){1&e&&(As(),Cs(0))},encapsulation:2,changeDetection:0}),ZA=vx([dA({inputs:["mode","translucent"]})],ZA)),QC=((YA=function e(t,n,i){A(this,e),this.z=i,t.detach(),this.el=n.nativeElement}).\u0275fac=function(e){return new(e||YA)(rs(Kl),rs(Cl),rs(Ac))},YA.\u0275cmp=ft({type:YA,selectors:[["ion-grid"]],inputs:{fixed:"fixed"},ngContentSelectors:Gx,decls:1,vars:0,template:function(e,t){1&e&&(As(),Cs(0))},encapsulation:2,changeDetection:0}),YA=vx([dA({inputs:["fixed"]})],YA)),XC=((qA=function e(t,n,i){A(this,e),this.z=i,t.detach(),this.el=n.nativeElement}).\u0275fac=function(e){return new(e||qA)(rs(Kl),rs(Cl),rs(Ac))},qA.\u0275cmp=ft({type:qA,selectors:[["ion-header"]],inputs:{collapse:"collapse",mode:"mode",translucent:"translucent"},ngContentSelectors:Gx,decls:1,vars:0,template:function(e,t){1&e&&(As(),Cs(0))},encapsulation:2,changeDetection:0}),qA=vx([dA({inputs:["collapse","mode","translucent"]})],qA)),KC=((GA=function e(t,n,i){A(this,e),this.z=i,t.detach(),this.el=n.nativeElement}).\u0275fac=function(e){return new(e||GA)(rs(Kl),rs(Cl),rs(Ac))},GA.\u0275cmp=ft({type:GA,selectors:[["ion-icon"]],inputs:{ariaHidden:"ariaHidden",ariaLabel:"ariaLabel",color:"color",flipRtl:"flipRtl",icon:"icon",ios:"ios",lazy:"lazy",md:"md",mode:"mode",name:"name",sanitize:"sanitize",size:"size",src:"src"},ngContentSelectors:Gx,decls:1,vars:0,template:function(e,t){1&e&&(As(),Cs(0))},encapsulation:2,changeDetection:0}),GA=vx([dA({inputs:["ariaHidden","ariaLabel","color","flipRtl","icon","ios","lazy","md","mode","name","sanitize","size","src"]})],GA)),JC=((WA=function e(t,n,i){A(this,e),this.z=i,t.detach(),this.el=n.nativeElement,cA(this,this.el,["ionImgWillLoad","ionImgDidLoad","ionError"])}).\u0275fac=function(e){return new(e||WA)(rs(Kl),rs(Cl),rs(Ac))},WA.\u0275cmp=ft({type:WA,selectors:[["ion-img"]],inputs:{alt:"alt",src:"src"},ngContentSelectors:Gx,decls:1,vars:0,template:function(e,t){1&e&&(As(),Cs(0))},encapsulation:2,changeDetection:0}),WA=vx([dA({inputs:["alt","src"]})],WA)),$C=((UA=function e(t,n,i){A(this,e),this.z=i,t.detach(),this.el=n.nativeElement,cA(this,this.el,["ionInfinite"])}).\u0275fac=function(e){return new(e||UA)(rs(Kl),rs(Cl),rs(Ac))},UA.\u0275cmp=ft({type:UA,selectors:[["ion-infinite-scroll"]],inputs:{disabled:"disabled",position:"position",threshold:"threshold"},ngContentSelectors:Gx,decls:1,vars:0,template:function(e,t){1&e&&(As(),Cs(0))},encapsulation:2,changeDetection:0}),UA=vx([dA({inputs:["disabled","position","threshold"],methods:["complete"]})],UA)),eS=((jA=function e(t,n,i){A(this,e),this.z=i,t.detach(),this.el=n.nativeElement}).\u0275fac=function(e){return new(e||jA)(rs(Kl),rs(Cl),rs(Ac))},jA.\u0275cmp=ft({type:jA,selectors:[["ion-infinite-scroll-content"]],inputs:{loadingSpinner:"loadingSpinner",loadingText:"loadingText"},ngContentSelectors:Gx,decls:1,vars:0,template:function(e,t){1&e&&(As(),Cs(0))},encapsulation:2,changeDetection:0}),jA=vx([dA({inputs:["loadingSpinner","loadingText"]})],jA)),tS=((HA=function e(t,n,i){A(this,e),this.z=i,t.detach(),this.el=n.nativeElement,cA(this,this.el,["ionInput","ionChange","ionBlur","ionFocus"])}).\u0275fac=function(e){return new(e||HA)(rs(Kl),rs(Cl),rs(Ac))},HA.\u0275cmp=ft({type:HA,selectors:[["ion-input"]],inputs:{accept:"accept",autocapitalize:"autocapitalize",autocomplete:"autocomplete",autocorrect:"autocorrect",autofocus:"autofocus",clearInput:"clearInput",clearOnEdit:"clearOnEdit",color:"color",debounce:"debounce",disabled:"disabled",enterkeyhint:"enterkeyhint",inputmode:"inputmode",max:"max",maxlength:"maxlength",min:"min",minlength:"minlength",mode:"mode",multiple:"multiple",name:"name",pattern:"pattern",placeholder:"placeholder",readonly:"readonly",required:"required",size:"size",spellcheck:"spellcheck",step:"step",type:"type",value:"value"},ngContentSelectors:Gx,decls:1,vars:0,template:function(e,t){1&e&&(As(),Cs(0))},encapsulation:2,changeDetection:0}),HA=vx([dA({inputs:["accept","autocapitalize","autocomplete","autocorrect","autofocus","clearInput","clearOnEdit","color","debounce","disabled","enterkeyhint","inputmode","max","maxlength","min","minlength","mode","multiple","name","pattern","placeholder","readonly","required","size","spellcheck","step","type","value"],methods:["setFocus","getInputElement"]})],HA)),nS=((NA=function e(t,n,i){A(this,e),this.z=i,t.detach(),this.el=n.nativeElement}).\u0275fac=function(e){return new(e||NA)(rs(Kl),rs(Cl),rs(Ac))},NA.\u0275cmp=ft({type:NA,selectors:[["ion-item"]],inputs:{button:"button",color:"color",detail:"detail",detailIcon:"detailIcon",disabled:"disabled",download:"download",href:"href",lines:"lines",mode:"mode",rel:"rel",routerAnimation:"routerAnimation",routerDirection:"routerDirection",target:"target",type:"type"},ngContentSelectors:Gx,decls:1,vars:0,template:function(e,t){1&e&&(As(),Cs(0))},encapsulation:2,changeDetection:0}),NA=vx([dA({inputs:["button","color","detail","detailIcon","disabled","download","href","lines","mode","rel","routerAnimation","routerDirection","target","type"]})],NA)),iS=((zA=function e(t,n,i){A(this,e),this.z=i,t.detach(),this.el=n.nativeElement}).\u0275fac=function(e){return new(e||zA)(rs(Kl),rs(Cl),rs(Ac))},zA.\u0275cmp=ft({type:zA,selectors:[["ion-item-option"]],inputs:{color:"color",disabled:"disabled",download:"download",expandable:"expandable",href:"href",mode:"mode",rel:"rel",target:"target",type:"type"},ngContentSelectors:Gx,decls:1,vars:0,template:function(e,t){1&e&&(As(),Cs(0))},encapsulation:2,changeDetection:0}),zA=vx([dA({inputs:["color","disabled","download","expandable","href","mode","rel","target","type"]})],zA)),rS=((VA=function e(t,n,i){A(this,e),this.z=i,t.detach(),this.el=n.nativeElement,cA(this,this.el,["ionSwipe"])}).\u0275fac=function(e){return new(e||VA)(rs(Kl),rs(Cl),rs(Ac))},VA.\u0275cmp=ft({type:VA,selectors:[["ion-item-options"]],inputs:{side:"side"},ngContentSelectors:Gx,decls:1,vars:0,template:function(e,t){1&e&&(As(),Cs(0))},encapsulation:2,changeDetection:0}),VA=vx([dA({inputs:["side"]})],VA)),oS=((BA=function e(t,n,i){A(this,e),this.z=i,t.detach(),this.el=n.nativeElement,cA(this,this.el,["ionDrag"])}).\u0275fac=function(e){return new(e||BA)(rs(Kl),rs(Cl),rs(Ac))},BA.\u0275cmp=ft({type:BA,selectors:[["ion-item-sliding"]],inputs:{disabled:"disabled"},ngContentSelectors:Gx,decls:1,vars:0,template:function(e,t){1&e&&(As(),Cs(0))},encapsulation:2,changeDetection:0}),BA=vx([dA({inputs:["disabled"],methods:["getOpenAmount","getSlidingRatio","open","close","closeOpened"]})],BA)),aS=((FA=function e(t,n,i){A(this,e),this.z=i,t.detach(),this.el=n.nativeElement}).\u0275fac=function(e){return new(e||FA)(rs(Kl),rs(Cl),rs(Ac))},FA.\u0275cmp=ft({type:FA,selectors:[["ion-label"]],inputs:{color:"color",mode:"mode",position:"position"},ngContentSelectors:Gx,decls:1,vars:0,template:function(e,t){1&e&&(As(),Cs(0))},encapsulation:2,changeDetection:0}),FA=vx([dA({inputs:["color","mode","position"]})],FA)),sS=((LA=function e(t,n,i){A(this,e),this.z=i,t.detach(),this.el=n.nativeElement}).\u0275fac=function(e){return new(e||LA)(rs(Kl),rs(Cl),rs(Ac))},LA.\u0275cmp=ft({type:LA,selectors:[["ion-list"]],inputs:{inset:"inset",lines:"lines",mode:"mode"},ngContentSelectors:Gx,decls:1,vars:0,template:function(e,t){1&e&&(As(),Cs(0))},encapsulation:2,changeDetection:0}),LA=vx([dA({inputs:["inset","lines","mode"],methods:["closeSlidingItems"]})],LA)),lS=((RA=function e(t,n,i){A(this,e),this.z=i,t.detach(),this.el=n.nativeElement}).\u0275fac=function(e){return new(e||RA)(rs(Kl),rs(Cl),rs(Ac))},RA.\u0275cmp=ft({type:RA,selectors:[["ion-list-header"]],inputs:{color:"color",lines:"lines",mode:"mode"},ngContentSelectors:Gx,decls:1,vars:0,template:function(e,t){1&e&&(As(),Cs(0))},encapsulation:2,changeDetection:0}),RA=vx([dA({inputs:["color","lines","mode"]})],RA)),uS=((IA=function e(t,n,i){A(this,e),this.z=i,t.detach(),this.el=n.nativeElement,cA(this,this.el,["ionWillOpen","ionWillClose","ionDidOpen","ionDidClose"])}).\u0275fac=function(e){return new(e||IA)(rs(Kl),rs(Cl),rs(Ac))},IA.\u0275cmp=ft({type:IA,selectors:[["ion-menu"]],inputs:{contentId:"contentId",disabled:"disabled",maxEdgeStart:"maxEdgeStart",menuId:"menuId",side:"side",swipeGesture:"swipeGesture",type:"type"},ngContentSelectors:Gx,decls:1,vars:0,template:function(e,t){1&e&&(As(),Cs(0))},encapsulation:2,changeDetection:0}),IA=vx([dA({inputs:["contentId","disabled","maxEdgeStart","menuId","side","swipeGesture","type"],methods:["isOpen","isActive","open","close","toggle","setOpen"]})],IA)),cS=((TA=function e(t,n,i){A(this,e),this.z=i,t.detach(),this.el=n.nativeElement}).\u0275fac=function(e){return new(e||TA)(rs(Kl),rs(Cl),rs(Ac))},TA.\u0275cmp=ft({type:TA,selectors:[["ion-menu-button"]],inputs:{autoHide:"autoHide",color:"color",disabled:"disabled",menu:"menu",mode:"mode",type:"type"},ngContentSelectors:Gx,decls:1,vars:0,template:function(e,t){1&e&&(As(),Cs(0))},encapsulation:2,changeDetection:0}),TA=vx([dA({inputs:["autoHide","color","disabled","menu","mode","type"]})],TA)),dS=((MA=function e(t,n,i){A(this,e),this.z=i,t.detach(),this.el=n.nativeElement}).\u0275fac=function(e){return new(e||MA)(rs(Kl),rs(Cl),rs(Ac))},MA.\u0275cmp=ft({type:MA,selectors:[["ion-menu-toggle"]],inputs:{autoHide:"autoHide",menu:"menu"},ngContentSelectors:Gx,decls:1,vars:0,template:function(e,t){1&e&&(As(),Cs(0))},encapsulation:2,changeDetection:0}),MA=vx([dA({inputs:["autoHide","menu"]})],MA)),hS=((OA=function e(t,n,i){A(this,e),this.z=i,t.detach(),this.el=n.nativeElement}).\u0275fac=function(e){return new(e||OA)(rs(Kl),rs(Cl),rs(Ac))},OA.\u0275cmp=ft({type:OA,selectors:[["ion-note"]],inputs:{color:"color",mode:"mode"},ngContentSelectors:Gx,decls:1,vars:0,template:function(e,t){1&e&&(As(),Cs(0))},encapsulation:2,changeDetection:0}),OA=vx([dA({inputs:["color","mode"]})],OA)),fS=((DA=function e(t,n,i){A(this,e),this.z=i,t.detach(),this.el=n.nativeElement,cA(this,this.el,["ionFocus","ionBlur"])}).\u0275fac=function(e){return new(e||DA)(rs(Kl),rs(Cl),rs(Ac))},DA.\u0275cmp=ft({type:DA,selectors:[["ion-radio"]],inputs:{color:"color",disabled:"disabled",mode:"mode",name:"name",value:"value"},ngContentSelectors:Gx,decls:1,vars:0,template:function(e,t){1&e&&(As(),Cs(0))},encapsulation:2,changeDetection:0}),DA=vx([dA({inputs:["color","disabled","mode","name","value"]})],DA)),pS=((EA=function e(t,n,i){A(this,e),this.z=i,t.detach(),this.el=n.nativeElement,cA(this,this.el,["ionChange"])}).\u0275fac=function(e){return new(e||EA)(rs(Kl),rs(Cl),rs(Ac))},EA.\u0275cmp=ft({type:EA,selectors:[["ion-radio-group"]],inputs:{allowEmptySelection:"allowEmptySelection",name:"name",value:"value"},ngContentSelectors:Gx,decls:1,vars:0,template:function(e,t){1&e&&(As(),Cs(0))},encapsulation:2,changeDetection:0}),EA=vx([dA({inputs:["allowEmptySelection","name","value"]})],EA)),gS=((PA=function e(t,n,i){A(this,e),this.z=i,t.detach(),this.el=n.nativeElement,cA(this,this.el,["ionChange","ionFocus","ionBlur"])}).\u0275fac=function(e){return new(e||PA)(rs(Kl),rs(Cl),rs(Ac))},PA.\u0275cmp=ft({type:PA,selectors:[["ion-range"]],inputs:{color:"color",debounce:"debounce",disabled:"disabled",dualKnobs:"dualKnobs",max:"max",min:"min",mode:"mode",name:"name",pin:"pin",snaps:"snaps",step:"step",ticks:"ticks",value:"value"},ngContentSelectors:Gx,decls:1,vars:0,template:function(e,t){1&e&&(As(),Cs(0))},encapsulation:2,changeDetection:0}),PA=vx([dA({inputs:["color","debounce","disabled","dualKnobs","max","min","mode","name","pin","snaps","step","ticks","value"]})],PA)),vS=((SA=function e(t,n,i){A(this,e),this.z=i,t.detach(),this.el=n.nativeElement}).\u0275fac=function(e){return new(e||SA)(rs(Kl),rs(Cl),rs(Ac))},SA.\u0275cmp=ft({type:SA,selectors:[["ion-reorder"]],ngContentSelectors:Gx,decls:1,vars:0,template:function(e,t){1&e&&(As(),Cs(0))},encapsulation:2,changeDetection:0}),SA),mS=((CA=function e(t,n,i){A(this,e),this.z=i,t.detach(),this.el=n.nativeElement,cA(this,this.el,["ionItemReorder"])}).\u0275fac=function(e){return new(e||CA)(rs(Kl),rs(Cl),rs(Ac))},CA.\u0275cmp=ft({type:CA,selectors:[["ion-reorder-group"]],inputs:{disabled:"disabled"},ngContentSelectors:Gx,decls:1,vars:0,template:function(e,t){1&e&&(As(),Cs(0))},encapsulation:2,changeDetection:0}),CA=vx([dA({inputs:["disabled"],methods:["complete"]})],CA)),yS=((AA=function e(t,n,i){A(this,e),this.z=i,t.detach(),this.el=n.nativeElement}).\u0275fac=function(e){return new(e||AA)(rs(Kl),rs(Cl),rs(Ac))},AA.\u0275cmp=ft({type:AA,selectors:[["ion-row"]],ngContentSelectors:Gx,decls:1,vars:0,template:function(e,t){1&e&&(As(),Cs(0))},encapsulation:2,changeDetection:0}),AA),bS=((xA=function e(t,n,i){A(this,e),this.z=i,t.detach(),this.el=n.nativeElement,cA(this,this.el,["ionInput","ionChange","ionCancel","ionClear","ionBlur","ionFocus"])}).\u0275fac=function(e){return new(e||xA)(rs(Kl),rs(Cl),rs(Ac))},xA.\u0275cmp=ft({type:xA,selectors:[["ion-searchbar"]],inputs:{animated:"animated",autocomplete:"autocomplete",autocorrect:"autocorrect",cancelButtonIcon:"cancelButtonIcon",cancelButtonText:"cancelButtonText",clearIcon:"clearIcon",color:"color",debounce:"debounce",disabled:"disabled",enterkeyhint:"enterkeyhint",inputmode:"inputmode",mode:"mode",placeholder:"placeholder",searchIcon:"searchIcon",showCancelButton:"showCancelButton",showClearButton:"showClearButton",spellcheck:"spellcheck",type:"type",value:"value"},ngContentSelectors:Gx,decls:1,vars:0,template:function(e,t){1&e&&(As(),Cs(0))},encapsulation:2,changeDetection:0}),xA=vx([dA({inputs:["animated","autocomplete","autocorrect","cancelButtonIcon","cancelButtonText","clearIcon","color","debounce","disabled","enterkeyhint","inputmode","mode","placeholder","searchIcon","showCancelButton","showClearButton","spellcheck","type","value"],methods:["setFocus","getInputElement"]})],xA)),wS=((kA=function e(t,n,i){A(this,e),this.z=i,t.detach(),this.el=n.nativeElement,cA(this,this.el,["ionChange"])}).\u0275fac=function(e){return new(e||kA)(rs(Kl),rs(Cl),rs(Ac))},kA.\u0275cmp=ft({type:kA,selectors:[["ion-segment"]],inputs:{color:"color",disabled:"disabled",mode:"mode",scrollable:"scrollable",swipeGesture:"swipeGesture",value:"value"},ngContentSelectors:Gx,decls:1,vars:0,template:function(e,t){1&e&&(As(),Cs(0))},encapsulation:2,changeDetection:0}),kA=vx([dA({inputs:["color","disabled","mode","scrollable","swipeGesture","value"]})],kA)),_S=((_A=function e(t,n,i){A(this,e),this.z=i,t.detach(),this.el=n.nativeElement}).\u0275fac=function(e){return new(e||_A)(rs(Kl),rs(Cl),rs(Ac))},_A.\u0275cmp=ft({type:_A,selectors:[["ion-segment-button"]],inputs:{disabled:"disabled",layout:"layout",mode:"mode",type:"type",value:"value"},ngContentSelectors:Gx,decls:1,vars:0,template:function(e,t){1&e&&(As(),Cs(0))},encapsulation:2,changeDetection:0}),_A=vx([dA({inputs:["disabled","layout","mode","type","value"]})],_A)),kS=((wA=function e(t,n,i){A(this,e),this.z=i,t.detach(),this.el=n.nativeElement,cA(this,this.el,["ionChange","ionCancel","ionFocus","ionBlur"])}).\u0275fac=function(e){return new(e||wA)(rs(Kl),rs(Cl),rs(Ac))},wA.\u0275cmp=ft({type:wA,selectors:[["ion-select"]],inputs:{cancelText:"cancelText",compareWith:"compareWith",disabled:"disabled",interface:"interface",interfaceOptions:"interfaceOptions",mode:"mode",multiple:"multiple",name:"name",okText:"okText",placeholder:"placeholder",selectedText:"selectedText",value:"value"},ngContentSelectors:Gx,decls:1,vars:0,template:function(e,t){1&e&&(As(),Cs(0))},encapsulation:2,changeDetection:0}),wA=vx([dA({inputs:["cancelText","compareWith","disabled","interface","interfaceOptions","mode","multiple","name","okText","placeholder","selectedText","value"],methods:["open"]})],wA)),xS=((bA=function e(t,n,i){A(this,e),this.z=i,t.detach(),this.el=n.nativeElement}).\u0275fac=function(e){return new(e||bA)(rs(Kl),rs(Cl),rs(Ac))},bA.\u0275cmp=ft({type:bA,selectors:[["ion-select-option"]],inputs:{disabled:"disabled",value:"value"},ngContentSelectors:Gx,decls:1,vars:0,template:function(e,t){1&e&&(As(),Cs(0))},encapsulation:2,changeDetection:0}),bA=vx([dA({inputs:["disabled","value"]})],bA)),AS=((yA=function e(t,n,i){A(this,e),this.z=i,t.detach(),this.el=n.nativeElement}).\u0275fac=function(e){return new(e||yA)(rs(Kl),rs(Cl),rs(Ac))},yA.\u0275cmp=ft({type:yA,selectors:[["ion-slide"]],ngContentSelectors:Gx,decls:1,vars:0,template:function(e,t){1&e&&(As(),Cs(0))},encapsulation:2,changeDetection:0}),yA),CS=((mA=function e(t,n,i){A(this,e),this.z=i,t.detach(),this.el=n.nativeElement,cA(this,this.el,["ionSlidesDidLoad","ionSlideTap","ionSlideDoubleTap","ionSlideWillChange","ionSlideDidChange","ionSlideNextStart","ionSlidePrevStart","ionSlideNextEnd","ionSlidePrevEnd","ionSlideTransitionStart","ionSlideTransitionEnd","ionSlideDrag","ionSlideReachStart","ionSlideReachEnd","ionSlideTouchStart","ionSlideTouchEnd"])}).\u0275fac=function(e){return new(e||mA)(rs(Kl),rs(Cl),rs(Ac))},mA.\u0275cmp=ft({type:mA,selectors:[["ion-slides"]],inputs:{mode:"mode",options:"options",pager:"pager",scrollbar:"scrollbar"},ngContentSelectors:Gx,decls:1,vars:0,template:function(e,t){1&e&&(As(),Cs(0))},encapsulation:2,changeDetection:0}),mA=vx([dA({inputs:["mode","options","pager","scrollbar"],methods:["update","updateAutoHeight","slideTo","slideNext","slidePrev","getActiveIndex","getPreviousIndex","length","isEnd","isBeginning","startAutoplay","stopAutoplay","lockSwipeToNext","lockSwipeToPrev","lockSwipes","getSwiper"]})],mA)),SS=((vA=function e(t,n,i){A(this,e),this.z=i,t.detach(),this.el=n.nativeElement,cA(this,this.el,["ionSplitPaneVisible"])}).\u0275fac=function(e){return new(e||vA)(rs(Kl),rs(Cl),rs(Ac))},vA.\u0275cmp=ft({type:vA,selectors:[["ion-split-pane"]],inputs:{contentId:"contentId",disabled:"disabled",when:"when"},ngContentSelectors:Gx,decls:1,vars:0,template:function(e,t){1&e&&(As(),Cs(0))},encapsulation:2,changeDetection:0}),vA=vx([dA({inputs:["contentId","disabled","when"]})],vA)),PS=((gA=function e(t,n,i){A(this,e),this.z=i,t.detach(),this.el=n.nativeElement}).\u0275fac=function(e){return new(e||gA)(rs(Kl),rs(Cl),rs(Ac))},gA.\u0275cmp=ft({type:gA,selectors:[["ion-title"]],inputs:{color:"color",size:"size"},ngContentSelectors:Gx,decls:1,vars:0,template:function(e,t){1&e&&(As(),Cs(0))},encapsulation:2,changeDetection:0}),gA=vx([dA({inputs:["color","size"]})],gA)),ES=((pA=function e(t,n,i){A(this,e),this.z=i,t.detach(),this.el=n.nativeElement,cA(this,this.el,["ionChange","ionFocus","ionBlur"])}).\u0275fac=function(e){return new(e||pA)(rs(Kl),rs(Cl),rs(Ac))},pA.\u0275cmp=ft({type:pA,selectors:[["ion-toggle"]],inputs:{checked:"checked",color:"color",disabled:"disabled",mode:"mode",name:"name",value:"value"},ngContentSelectors:Gx,decls:1,vars:0,template:function(e,t){1&e&&(As(),Cs(0))},encapsulation:2,changeDetection:0}),pA=vx([dA({inputs:["checked","color","disabled","mode","name","value"]})],pA)),DS=((fA=function e(t,n,i){A(this,e),this.z=i,t.detach(),this.el=n.nativeElement}).\u0275fac=function(e){return new(e||fA)(rs(Kl),rs(Cl),rs(Ac))},fA.\u0275cmp=ft({type:fA,selectors:[["ion-toolbar"]],inputs:{color:"color",mode:"mode"},ngContentSelectors:Gx,decls:1,vars:0,template:function(e,t){1&e&&(As(),Cs(0))},encapsulation:2,changeDetection:0}),fA=vx([dA({inputs:["color","mode"]})],fA)),OS=((hA=function(){function e(){A(this,e)}return m(e,[{key:"get",value:function(e,t){var n=TS();return n?n.get(e,t):null}},{key:"getBoolean",value:function(e,t){var n=TS();return!!n&&n.getBoolean(e,t)}},{key:"getNumber",value:function(e,t){var n=TS();return n?n.getNumber(e,t):0}},{key:"set",value:function(e,t){console.warn("[DEPRECATION][Config]: The Config.set() method is deprecated and will be removed in Ionic Framework 6.0. Please see https://ionicframework.com/docs/angular/config for alternatives.");var n=TS();n&&n.set(e,t)}}]),e}()).\u0275fac=function(e){return new(e||hA)},hA.\u0275prov=Re({token:hA,factory:function(e){return hA.\u0275fac(e)},providedIn:"root"}),hA.ngInjectableDef=Re({factory:function(){return new hA},token:hA,providedIn:"root"}),hA),MS=new mi("USERCONFIG"),TS=function(){if("undefined"!=typeof window){var e=window.Ionic;if(e&&e.config)return e.config}return null},IS=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};A(this,e),this.data=t}return m(e,[{key:"get",value:function(e){return this.data[e]}}]),e}(),RS=((fC=function(){function e(t,n){A(this,e),this.zone=t,this.appRef=n}return m(e,[{key:"create",value:function(e,t,n){return new LS(e,t,n,this.appRef,this.zone)}}]),e}()).\u0275fac=function(e){return new(e||fC)(Ri(Ac),Ri(Gc))},fC.\u0275prov=Re({token:fC,factory:function(e){return fC.\u0275fac(e)}}),fC),LS=function(){function e(t,n,i,r,o){A(this,e),this.resolver=t,this.injector=n,this.location=i,this.appRef=r,this.zone=o,this.elRefMap=new WeakMap,this.elEventsMap=new WeakMap}return m(e,[{key:"attachViewToDom",value:function(e,t,n,i){var r=this;return this.zone.run(function(){return new Promise(function(o){o(FS(r.zone,r.resolver,r.injector,r.location,r.appRef,r.elRefMap,r.elEventsMap,e,t,n,i))})})}},{key:"removeViewFromDom",value:function(e,t){var n=this;return this.zone.run(function(){return new Promise(function(e){var i=n.elRefMap.get(t);if(i){i.destroy(),n.elRefMap.delete(t);var r=n.elEventsMap.get(t);r&&(r(),n.elEventsMap.delete(t))}e()})})}}]),e}(),FS=function(e,t,n,i,r,o,a,s,l,u,c){var d=t.resolveComponentFactory(l),f=Fa.create({providers:NS(u),parent:n}),p=i?i.createComponent(d,i.length,f):d.create(f),g=p.instance,v=p.location.nativeElement;if(u&&Object.assign(g,u),c){var m,y=h(c);try{for(y.s();!(m=y.n()).done;){var b=m.value;v.classList.add(b)}}catch(_){y.e(_)}finally{y.f()}}var w=VS(e,g,v);return s.appendChild(v),i||r.attachView(p.hostView),p.changeDetectorRef.reattach(),o.set(v,p),a.set(v,w),v},BS=[kx.a,kx.b,kx.c,kx.d,kx.e],VS=function(e,t,n){return e.run(function(){var e=BS.filter(function(e){return"function"==typeof t[e]}).map(function(e){var i=function(n){return t[e](n.detail)};return n.addEventListener(e,i),function(){return n.removeEventListener(e,i)}});return function(){return e.forEach(function(e){return e()})}})},zS=new mi("NavParamsToken"),NS=function(e){return[{provide:zS,useValue:e},{provide:IS,useFactory:HS,deps:[zS]}]},HS=function(e){return new IS(e)},jS=function(e,t){return(e=e.filter(function(e){return e.stackId!==t.stackId})).push(t),e},US=function(e,t){var n=e.createUrlTree(["."],{relativeTo:t});return e.serializeUrl(n)},WS=function(e,t){if(e)for(var n=GS(t),i=0;i<n.length;i++){if(i>=e.length)return n[i];if(n[i]!==e[i])return}},GS=function(e){return e.split("/").map(function(e){return e.trim()}).filter(function(e){return""!==e})},qS=function(e){e&&(e.ref.destroy(),e.unlistenEvents())},YS=function(){function e(t,n,i,r,o,a){A(this,e),this.containerEl=n,this.router=i,this.navCtrl=r,this.zone=o,this.location=a,this.views=[],this.skipTransition=!1,this.nextId=0,this.tabsPrefix=void 0!==t?GS(t):void 0}return m(e,[{key:"createView",value:function(e,t){var n=US(this.router,t),i=e&&e.location&&e.location.nativeElement,r=VS(this.zone,e.instance,i);return{id:this.nextId++,stackId:WS(this.tabsPrefix,n),unlistenEvents:r,element:i,ref:e,url:n}}},{key:"getExistingView",value:function(e){var t=US(this.router,e),n=this.views.find(function(e){return e.url===t});return n&&n.ref.changeDetectorRef.reattach(),n}},{key:"setActive",value:function(e){var t=this,n=this.navCtrl.consumeTransition(),i=n.direction,r=n.animation,o=n.animationBuilder,a=this.activeView,s=function(e,t){return!t||e.stackId!==t.stackId}(e,a);s&&(i="back",r=void 0);var l,u=this.views.slice(),c=this.router;c.getCurrentNavigation?l=c.getCurrentNavigation():c.navigations&&c.navigations.value&&(l=c.navigations.value),l&&l.extras&&l.extras.replaceUrl&&this.views.length>0&&this.views.splice(-1,1);var d=this.views.includes(e),h=this.insertView(e,i);d||e.ref.changeDetectorRef.detectChanges();var f=e.animationBuilder;return void 0!==o||"back"!==i||s||void 0===f||(o=f),a&&(a.animationBuilder=o),this.zone.runOutsideAngular(function(){return t.wait(function(){return a&&a.ref.changeDetectorRef.detach(),e.ref.changeDetectorRef.reattach(),t.transition(e,a,r,t.canGoBack(1),!1,o).then(function(){return ZS(e,h,u,t.location)}).then(function(){return{enteringView:e,direction:i,animation:r,tabSwitch:s}})})})}},{key:"canGoBack",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getActiveStackId();return this.getStack(t).length>e}},{key:"pop",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getActiveStackId();return this.zone.run(function(){var i=t.getStack(n);if(i.length<=e)return Promise.resolve(!1);var r=i[i.length-e-1],o=r.url,a=r.savedData;if(a){var s=a.get("primary");s&&s.route&&s.route._routerState&&s.route._routerState.snapshot&&s.route._routerState.snapshot.url&&(o=s.route._routerState.snapshot.url)}var l=t.navCtrl.consumeTransition().animationBuilder;return t.navCtrl.navigateBack(o,Object.assign({},r.savedExtras,{animation:l})).then(function(){return!0})})}},{key:"startBackTransition",value:function(){var e=this,t=this.activeView;if(t){var n=this.getStack(t.stackId),i=n[n.length-2],r=i.animationBuilder;return this.wait(function(){return e.transition(i,t,"back",e.canGoBack(2),!0,r)})}return Promise.resolve()}},{key:"endBackTransition",value:function(e){e?(this.skipTransition=!0,this.pop(1)):this.activeView&&QS(this.activeView,this.views,this.views,this.location)}},{key:"getLastUrl",value:function(e){var t=this.getStack(e);return t.length>0?t[t.length-1]:void 0}},{key:"getRootUrl",value:function(e){var t=this.getStack(e);return t.length>0?t[0]:void 0}},{key:"getActiveStackId",value:function(){return this.activeView?this.activeView.stackId:void 0}},{key:"destroy",value:function(){this.containerEl=void 0,this.views.forEach(qS),this.activeView=void 0,this.views=[]}},{key:"getStack",value:function(e){return this.views.filter(function(t){return t.stackId===e})}},{key:"insertView",value:function(e,t){return this.activeView=e,this.views=function(e,t,n){return"root"===n?jS(e,t):"forward"===n?function(e,t){return e.indexOf(t)>=0?e=e.filter(function(e){return e.stackId!==t.stackId||e.id<=t.id}):e.push(t),e}(e,t):function(e,t){return e.indexOf(t)>=0?e.filter(function(e){return e.stackId!==t.stackId||e.id<=t.id}):jS(e,t)}(e,t)}(this.views,e,t),this.views.slice()}},{key:"transition",value:function(e,t,n,i,r,o){if(this.skipTransition)return this.skipTransition=!1,Promise.resolve(!1);if(t===e)return Promise.resolve(!1);var a=e?e.element:void 0,s=t?t.element:void 0,l=this.containerEl;return a&&a!==s&&(a.classList.add("ion-page"),a.classList.add("ion-page-invisible"),a.parentElement!==l&&l.appendChild(a),l.commit)?l.commit(a,s,{deepWait:!0,duration:void 0===n?0:void 0,direction:n,showGoBack:i,progressAnimation:r,animationBuilder:o}):Promise.resolve(!1)}},{key:"wait",value:function(e){return bx(this,void 0,void 0,regeneratorRuntime.mark(function t(){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(t.t0=void 0!==this.runningTask,!t.t0){t.next=5;break}return t.next=4,this.runningTask;case 4:this.runningTask=void 0;case 5:return t.abrupt("return",this.runningTask=e());case 6:case"end":return t.stop()}},t,this)}))}}]),e}(),ZS=function(e,t,n,i){return"function"==typeof requestAnimationFrame?new Promise(function(r){requestAnimationFrame(function(){QS(e,t,n,i),r()})}):Promise.resolve()},QS=function(e,t,n,i){n.filter(function(e){return!t.includes(e)}).forEach(qS),t.forEach(function(t){var n=i.path().split("?")[0].split("#")[0];if(t!==e&&t.url!==n){var r=t.element;r.setAttribute("aria-hidden","true"),r.classList.add("ion-page-hidden"),t.ref.changeDetectorRef.detach()}})},XS=((pC=function(){function e(t,n,i,r,o,a,s,l,u,c,d,h,f){A(this,e),this.parentContexts=t,this.location=n,this.resolver=i,this.config=a,this.navCtrl=s,this.parentOutlet=f,this.activated=null,this.activatedView=null,this._activatedRoute=null,this.proxyMap=new WeakMap,this.currentActivatedRoute$=new Ab(null),this.stackEvents=new Fu,this.activateEvents=new Fu,this.deactivateEvents=new Fu,this.nativeEl=u.nativeElement,this.name=r||"primary",this.tabsPrefix="true"===o?US(c,h):void 0,this.stackCtrl=new YS(this.tabsPrefix,this.nativeEl,c,s,d,l),t.onChildOutletCreated(this.name,this)}return m(e,[{key:"animation",set:function(e){this.nativeEl.animation=e}},{key:"animated",set:function(e){this.nativeEl.animated=e}},{key:"swipeGesture",set:function(e){var t=this;this._swipeGesture=e,this.nativeEl.swipeHandler=e?{canStart:function(){return t.stackCtrl.canGoBack(1)},onStart:function(){return t.stackCtrl.startBackTransition()},onEnd:function(e){return t.stackCtrl.endBackTransition(e)}}:void 0}},{key:"ngOnDestroy",value:function(){this.stackCtrl.destroy()}},{key:"getContext",value:function(){return this.parentContexts.getContext(this.name)}},{key:"ngOnInit",value:function(){var e=this;if(!this.activated){var t=this.getContext();t&&t.route&&this.activateWith(t.route,t.resolver||null)}new Promise(function(t){return Object(_x.c)(e.nativeEl,t)}).then(function(){void 0===e._swipeGesture&&(e.swipeGesture=e.config.getBoolean("swipeBackEnabled","ios"===e.nativeEl.mode))})}},{key:"isActivated",get:function(){return!!this.activated}},{key:"component",get:function(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}},{key:"activatedRoute",get:function(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}},{key:"activatedRouteData",get:function(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}},{key:"detach",value:function(){throw new Error("incompatible reuse strategy")}},{key:"attach",value:function(e,t){throw new Error("incompatible reuse strategy")}},{key:"deactivate",value:function(){if(this.activated){if(this.activatedView){this.activatedView.savedData=new Map(this.getContext().children.contexts),this.activatedView.savedExtras={};var e=this.getContext();if(e.route){var t=e.route.snapshot;this.activatedView.savedExtras.queryParams=t.queryParams,this.activatedView.savedExtras.fragment=t.fragment}}var n=this.component;this.activatedView=null,this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(n)}}},{key:"activateWith",value:function(e,t){var n,i=this;if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=e;var r=this.stackCtrl.getExistingView(e);if(r){n=this.activated=r.ref;var o=r.savedData;o&&(this.getContext().children.contexts=o),this.updateActivatedRouteProxy(n.instance,e)}else{var a=(t=t||this.resolver).resolveComponentFactory(e._futureSnapshot.routeConfig.component),s=this.parentContexts.getOrCreateContext(this.name).children,l=new Ab(null),u=this.createActivatedRouteProxy(l,e),c=new KS(u,s,this.location.injector);n=this.activated=this.location.createComponent(a,this.location.length,c),l.next(n.instance),r=this.stackCtrl.createView(this.activated,e),this.proxyMap.set(n.instance,u),this.currentActivatedRoute$.next({component:n.instance,activatedRoute:e})}this.activatedView=r,this.stackCtrl.setActive(r).then(function(e){i.navCtrl.setTopOutlet(i),i.activateEvents.emit(n.instance),i.stackEvents.emit(e)})}},{key:"canGoBack",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1?arguments[1]:void 0;return this.stackCtrl.canGoBack(e,t)}},{key:"pop",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1?arguments[1]:void 0;return this.stackCtrl.pop(e,t)}},{key:"getLastUrl",value:function(e){var t=this.stackCtrl.getLastUrl(e);return t?t.url:void 0}},{key:"getLastRouteView",value:function(e){return this.stackCtrl.getLastUrl(e)}},{key:"getRootView",value:function(e){return this.stackCtrl.getRootUrl(e)}},{key:"getActiveStackId",value:function(){return this.stackCtrl.getActiveStackId()}},{key:"createActivatedRouteProxy",value:function(e,t){var n=new b_;return n._futureSnapshot=t._futureSnapshot,n._routerState=t._routerState,n.snapshot=t.snapshot,n.outlet=t.outlet,n.component=t.component,n._paramMap=this.proxyObservable(e,"paramMap"),n._queryParamMap=this.proxyObservable(e,"queryParamMap"),n.url=this.proxyObservable(e,"url"),n.params=this.proxyObservable(e,"params"),n.queryParams=this.proxyObservable(e,"queryParams"),n.fragment=this.proxyObservable(e,"fragment"),n.data=this.proxyObservable(e,"data"),n}},{key:"proxyObservable",value:function(e,t){var n=this;return e.pipe(Ry(function(e){return!!e}),Bb(function(e){return n.currentActivatedRoute$.pipe(Ry(function(t){return null!==t&&t.component===e}),Bb(function(e){return e&&e.activatedRoute[t]}),Ex())}))}},{key:"updateActivatedRouteProxy",value:function(e,t){var n=this.proxyMap.get(e);if(!n)throw new Error("Could not find activated route proxy for view");n._futureSnapshot=t._futureSnapshot,n._routerState=t._routerState,n.snapshot=t.snapshot,n.outlet=t.outlet,n.component=t.component,this.currentActivatedRoute$.next({component:e,activatedRoute:t})}}]),e}()).\u0275fac=function(e){return new(e||pC)(rs(Rk),rs(uu),rs(_l),pi("name"),pi("tabs"),rs(OS),rs(aA),rs(Cd),rs(Cl),rs(jk),rs(Ac),rs(b_),rs(pC,12))},pC.\u0275dir=bt({type:pC,selectors:[["ion-router-outlet"]],inputs:{animated:"animated",animation:"animation",swipeGesture:"swipeGesture"},outputs:{stackEvents:"stackEvents",activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),pC=vx([mx(3,vi("name")),mx(4,Hi()),mx(4,vi("tabs")),mx(12,ji()),mx(12,Hi())],pC)),KS=function(){function e(t,n,i){A(this,e),this.route=t,this.childContexts=n,this.parent=i}return m(e,[{key:"get",value:function(e,t){return e===b_?this.route:e===Rk?this.childContexts:this.parent.get(e,t)}}]),e}(),JS=((wC=function(){function e(t,n,i){A(this,e),this.routerOutlet=t,this.navCtrl=n,this.config=i}return m(e,[{key:"onClick",value:function(e){var t=this.defaultHref||this.config.get("backButtonDefaultHref");this.routerOutlet&&this.routerOutlet.canGoBack()?(this.navCtrl.setDirection("back",void 0,void 0,this.routerAnimation),this.routerOutlet.pop(),e.preventDefault()):null!=t&&(this.navCtrl.navigateBack(t,{animation:this.routerAnimation}),e.preventDefault())}}]),e}()).\u0275fac=function(e){return new(e||wC)(rs(XS,8),rs(aA),rs(OS))},wC.\u0275dir=bt({type:wC,selectors:[["ion-back-button"]],hostBindings:function(e,t){1&e&&ms("click",function(e){return t.onClick(e)})},inputs:{defaultHref:"defaultHref",routerAnimation:"routerAnimation"}}),wC=vx([mx(0,Hi())],wC)),$S=((bC=function(){function e(t,n,i,r,o){A(this,e),this.locationStrategy=t,this.navCtrl=n,this.elementRef=i,this.router=r,this.routerLink=o,this.routerDirection="forward"}return m(e,[{key:"ngOnInit",value:function(){this.updateTargetUrlAndHref()}},{key:"ngOnChanges",value:function(){this.updateTargetUrlAndHref()}},{key:"ngOnDestroy",value:function(){this.subscription&&this.subscription.unsubscribe()}},{key:"updateTargetUrlAndHref",value:function(){if(this.routerLink){var e=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.routerLink.urlTree));this.elementRef.nativeElement.href=e}}},{key:"onClick",value:function(e){this.navCtrl.setDirection(this.routerDirection,void 0,void 0,this.routerAnimation),e.preventDefault()}}]),e}()).\u0275fac=function(e){return new(e||bC)(rs(md),rs(aA),rs(Cl),rs(jk),rs(Uk,8))},bC.\u0275dir=bt({type:bC,selectors:[["","routerLink",""]],hostBindings:function(e,t){1&e&&ms("click",function(e){return t.onClick(e)})},inputs:{routerDirection:"routerDirection",routerAnimation:"routerAnimation"},features:[Mt]}),bC=vx([mx(4,Hi())],bC)),eP=((yC=function e(t){A(this,e),this.templateRef=t}).\u0275fac=function(e){return new(e||yC)(rs(iu))},yC.\u0275dir=bt({type:yC,selectors:[["","virtualFooter",""]]}),yC),tP=((mC=function e(t){A(this,e),this.templateRef=t}).\u0275fac=function(e){return new(e||mC)(rs(iu))},mC.\u0275dir=bt({type:mC,selectors:[["","virtualHeader",""]]}),mC),nP=((vC=function e(t,n){A(this,e),this.templateRef=t,this.viewContainer=n}).\u0275fac=function(e){return new(e||vC)(rs(iu),rs(uu))},vC.\u0275dir=bt({type:vC,selectors:[["","virtualItem",""]]}),vC),iP=((gC=function(){function e(t,n,i){A(this,e),this.z=t,this.iterableDiffers=n,this.refMap=new WeakMap,this.el=i.nativeElement,this.el.nodeRender=this.nodeRender.bind(this)}return m(e,[{key:"ngOnChanges",value:function(e){if(this.trackBy&&"items"in e){var t=e.items.currentValue;if(void 0===this.differ&&null!=t)try{this.differ=this.iterableDiffers.find(t).create(this.trackBy)}catch(n){throw new Error("Cannot find a differ supporting object '".concat(t,"'. VirtualScroll only supports binding to Iterables such as Arrays."))}}}},{key:"ngDoCheck",value:function(){null!==(void 0!==this.differ&&this.items?this.differ.diff(this.items):null)&&this.checkRange(0)}},{key:"nodeRender",value:function(e,t,n){var i=this;return this.z.run(function(){var r;if(e){var o=(r=i.refMap.get(e)).context;o.$implicit=t.value,o.index=t.index}else r=i.itmTmp.viewContainer.createEmbeddedView(i.getComponent(t.type),{$implicit:t.value,index:n},n),e=rP(r),i.refMap.set(e,r);return r.detectChanges(),e})}},{key:"getComponent",value:function(e){switch(e){case"item":return this.itmTmp.templateRef;case"header":return this.hdrTmp.templateRef;case"footer":return this.ftrTmp.templateRef}throw new Error("template for virtual item was not provided")}}]),e}()).\u0275fac=function(e){return new(e||gC)(rs(Ac),rs(Wl),rs(Cl))},gC.\u0275cmp=ft({type:gC,selectors:[["ion-virtual-scroll"]],contentQueries:function(e,t,n){var i;1&e&&(Xu(n,nP,1),Xu(n,tP,1),Xu(n,eP,1)),2&e&&(Zu(i=Ku())&&(t.itmTmp=i.first),Zu(i=Ku())&&(t.hdrTmp=i.first),Zu(i=Ku())&&(t.ftrTmp=i.first))},inputs:{approxItemHeight:"approxItemHeight",approxHeaderHeight:"approxHeaderHeight",approxFooterHeight:"approxFooterHeight",headerFn:"headerFn",footerFn:"footerFn",items:"items",itemHeight:"itemHeight",headerHeight:"headerHeight",footerHeight:"footerHeight",trackBy:"trackBy"},features:[Mt],ngContentSelectors:Gx,decls:1,vars:0,template:function(e,t){1&e&&(As(),Cs(0))},encapsulation:2,changeDetection:0}),gC=vx([dA({inputs:["approxItemHeight","approxHeaderHeight","approxFooterHeight","headerFn","footerFn","items","itemHeight","headerHeight","footerHeight"],methods:["checkEnd","checkRange","positionForItem"]})],gC)),rP=function(e){for(var t=e.rootNodes,n=0;n<t.length;n++)if(1===t[n].nodeType)return t[n];throw new Error("virtual element was not created")},oP=function(){function e(t){A(this,e),this.ctrl=t}return m(e,[{key:"create",value:function(e){return this.ctrl.create(e||{})}},{key:"dismiss",value:function(e,t,n){return this.ctrl.dismiss(e,t,n)}},{key:"getTop",value:function(){return this.ctrl.getTop()}}]),e}(),aP=((PC=function(e){r(n,e);var t=a(n);function n(){return A(this,n),t.call(this,Ax.c)}return n}(oP)).\u0275fac=function(e){return new(e||PC)},PC.\u0275prov=Re({token:PC,factory:function(e){return PC.\u0275fac(e)},providedIn:"root"}),PC.ngInjectableDef=Re({factory:function(){return new PC},token:PC,providedIn:"root"}),PC),sP=((SC=function(e){r(n,e);var t=a(n);function n(){return A(this,n),t.call(this,Ax.b)}return n}(oP)).\u0275fac=function(e){return new(e||SC)},SC.\u0275prov=Re({token:SC,factory:function(e){return SC.\u0275fac(e)},providedIn:"root"}),SC.ngInjectableDef=Re({factory:function(){return new SC},token:SC,providedIn:"root"}),SC),lP=((CC=function(e){r(n,e);var t=a(n);function n(){return A(this,n),t.call(this,Ax.k)}return n}(oP)).\u0275fac=function(e){return new(e||CC)},CC.\u0275prov=Re({token:CC,factory:function(e){return CC.\u0275fac(e)},providedIn:"root"}),CC.ngInjectableDef=Re({factory:function(){return new CC},token:CC,providedIn:"root"}),CC),uP=((AC=function(){function e(){A(this,e)}return m(e,[{key:"open",value:function(e){return xx.a.open(e)}},{key:"close",value:function(e){return xx.a.close(e)}},{key:"toggle",value:function(e){return xx.a.toggle(e)}},{key:"enable",value:function(e,t){return xx.a.enable(e,t)}},{key:"swipeGesture",value:function(e,t){return xx.a.swipeGesture(e,t)}},{key:"isOpen",value:function(e){return xx.a.isOpen(e)}},{key:"isEnabled",value:function(e){return xx.a.isEnabled(e)}},{key:"get",value:function(e){return xx.a.get(e)}},{key:"getOpen",value:function(){return xx.a.getOpen()}},{key:"getMenus",value:function(){return xx.a.getMenus()}}]),e}()).\u0275fac=function(e){return new(e||AC)},AC.\u0275prov=Re({token:AC,factory:function(e){return AC.\u0275fac(e)},providedIn:"root"}),AC.ngInjectableDef=Re({factory:function(){return new AC},token:AC,providedIn:"root"}),AC),cP=((xC=function(e){r(n,e);var t=a(n);function n(e,i,r){var o;return A(this,n),(o=t.call(this,Ax.l)).angularDelegate=e,o.resolver=i,o.injector=r,o}return m(n,[{key:"create",value:function(e){return i(c(n.prototype),"create",this).call(this,Object.assign({},e,{delegate:this.angularDelegate.create(this.resolver,this.injector)}))}}]),n}(oP)).\u0275fac=function(e){return new(e||xC)(Ri(RS),Ri(_l),Ri(Fa))},xC.\u0275prov=Re({token:xC,factory:function(e){return xC.\u0275fac(e)}}),xC),dP=((kC=function(e){r(n,e);var t=a(n);function n(e,i,r){var o;return A(this,n),(o=t.call(this,Ax.d)).angularDelegate=e,o.resolver=i,o.injector=r,o}return m(n,[{key:"create",value:function(e){return i(c(n.prototype),"create",this).call(this,Object.assign({},e,{delegate:this.angularDelegate.create(this.resolver,this.injector)}))}}]),n}(oP)).\u0275fac=function(e){return new(e||kC)(Ri(RS),Ri(_l),Ri(Fa))},kC.\u0275prov=Re({token:kC,factory:function(e){return kC.\u0275fac(e)}}),kC),hP=((_C=function(e){r(n,e);var t=a(n);function n(){return A(this,n),t.call(this,Ax.o)}return n}(oP)).\u0275fac=function(e){return new(e||_C)},_C.\u0275prov=Re({token:_C,factory:function(e){return _C.\u0275fac(e)},providedIn:"root"}),_C.ngInjectableDef=Re({factory:function(){return new _C},token:_C,providedIn:"root"}),_C),fP=function(){function e(){A(this,e)}return m(e,[{key:"shouldDetach",value:function(e){return!1}},{key:"shouldAttach",value:function(e){return!1}},{key:"store",value:function(e,t){}},{key:"retrieve",value:function(e){return null}},{key:"shouldReuseRoute",value:function(e,t){if(e.routeConfig!==t.routeConfig)return!1;var n=e.params,i=t.params,r=Object.keys(n),o=Object.keys(i);if(r.length!==o.length)return!1;for(var a=0,s=r;a<s.length;a++){var l=s[a];if(i[l]!==n[l])return!1}return!0}}]),e}(),pP=!1,gP=function(e,t,n){return function(){var i=t.defaultView;if(i&&"undefined"!=typeof window){pP&&console.warn("Ionic Angular was already initialized. Make sure IonicModule.forRoot() is just called once."),pP=!0,(i.Ionic=i.Ionic||{}).config=Object.assign({},e,{_zoneGate:function(e){return n.run(e)}});var r="__zone_symbol__addEventListener"in t.body?"__zone_symbol__addEventListener":"addEventListener";return function(){var e=[];if("undefined"!=typeof window){var t=window;t.customElements&&(!t.Element||t.Element.prototype.closest&&t.Element.prototype.matches&&t.Element.prototype.remove&&t.Element.prototype.getRootNode)||e.push(u.e(7).then(u.t.bind(null,"QdDj",7))),"function"==typeof Object.assign&&Object.entries&&Array.prototype.find&&Array.prototype.includes&&String.prototype.startsWith&&String.prototype.endsWith&&(!t.NodeList||t.NodeList.prototype.forEach)&&t.fetch&&function(){try{var e=new URL("b","http://a");return e.pathname="c%20d","http://a/c%20d"===e.href&&e.searchParams}catch(t){return!1}}()&&"undefined"!=typeof WeakMap||e.push(u.e(5).then(u.t.bind(null,"t6o4",7)))}return Promise.all(e)}().then(function(){return e={exclude:["ion-tabs","ion-tab"],syncQueue:!0,raf:qx,jmp:function(e){return n.runOutsideAngular(e)},ael:function(e,t,n,i){e[r](t,n,i)},rel:function(e,t,n,i){e.removeEventListener(t,n,i)}},"undefined"==typeof window?Promise.resolve():(Cx.b&&Cx.b.supports&&Cx.b.supports("color","var(--c)")?Object(Cx.d)():u.e(6).then(u.t.bind(null,"9qUq",7)).then(function(){return(Cx.n.$cssShim$=Cx.q.__cssshim)?Cx.n.$cssShim$.i():0})).then(function(){return Wx(),Object(Cx.e)(JSON.parse('[["ion-select_3",[[2,"ion-select-popover",{"header":[1],"subHeader":[1,"sub-header"],"message":[1],"options":[16]},[[0,"ionChange","onSelect"]]],[33,"ion-select",{"disabled":[4],"cancelText":[1,"cancel-text"],"okText":[1,"ok-text"],"placeholder":[1],"name":[1],"selectedText":[1,"selected-text"],"multiple":[4],"interface":[1],"interfaceOptions":[8,"interface-options"],"compareWith":[1,"compare-with"],"value":[1032],"isExpanded":[32],"open":[64]}],[1,"ion-select-option",{"disabled":[4],"value":[8]}]]],["ion-menu_3",[[33,"ion-menu-button",{"color":[1],"disabled":[4],"menu":[1],"autoHide":[4,"auto-hide"],"type":[1],"visible":[32]},[[16,"ionMenuChange","visibilityChanged"],[16,"ionSplitPaneVisible","visibilityChanged"]]],[33,"ion-menu",{"contentId":[513,"content-id"],"menuId":[513,"menu-id"],"type":[1025],"disabled":[1028],"side":[513],"swipeGesture":[4,"swipe-gesture"],"maxEdgeStart":[2,"max-edge-start"],"isPaneVisible":[32],"isEndSide":[32],"isOpen":[64],"isActive":[64],"open":[64],"close":[64],"toggle":[64],"setOpen":[64]},[[16,"ionSplitPaneVisible","onSplitPaneChanged"],[2,"click","onBackdropClick"]]],[1,"ion-menu-toggle",{"menu":[1],"autoHide":[4,"auto-hide"],"visible":[32]},[[16,"ionMenuChange","visibilityChanged"],[16,"ionSplitPaneVisible","visibilityChanged"]]]]],["ion-action-sheet",[[34,"ion-action-sheet",{"overlayIndex":[2,"overlay-index"],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"buttons":[16],"cssClass":[1,"css-class"],"backdropDismiss":[4,"backdrop-dismiss"],"header":[1],"subHeader":[1,"sub-header"],"translucent":[4],"animated":[4],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]}]]],["ion-fab_3",[[33,"ion-fab-button",{"color":[1],"activated":[4],"disabled":[4],"download":[1],"href":[1],"rel":[1],"routerDirection":[1,"router-direction"],"routerAnimation":[16],"target":[1],"show":[4],"translucent":[4],"type":[1],"size":[1],"closeIcon":[1,"close-icon"]}],[1,"ion-fab",{"horizontal":[1],"vertical":[1],"edge":[4],"activated":[1028],"close":[64]}],[1,"ion-fab-list",{"activated":[4],"side":[1]}]]],["ion-refresher_2",[[0,"ion-refresher-content",{"pullingIcon":[1025,"pulling-icon"],"pullingText":[1,"pulling-text"],"refreshingSpinner":[1025,"refreshing-spinner"],"refreshingText":[1,"refreshing-text"]}],[32,"ion-refresher",{"pullMin":[2,"pull-min"],"pullMax":[2,"pull-max"],"closeDuration":[1,"close-duration"],"snapbackDuration":[1,"snapback-duration"],"pullFactor":[2,"pull-factor"],"disabled":[4],"nativeRefresher":[32],"state":[32],"complete":[64],"cancel":[64],"getProgress":[64]}]]],["ion-alert",[[34,"ion-alert",{"overlayIndex":[2,"overlay-index"],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"cssClass":[1,"css-class"],"header":[1],"subHeader":[1,"sub-header"],"message":[1],"buttons":[16],"inputs":[1040],"backdropDismiss":[4,"backdrop-dismiss"],"translucent":[4],"animated":[4],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]},[[4,"keydown","onKeydown"]]]]],["ion-back-button",[[33,"ion-back-button",{"color":[1],"defaultHref":[1025,"default-href"],"disabled":[516],"icon":[1],"text":[1],"type":[1],"routerAnimation":[16]}]]],["ion-loading",[[34,"ion-loading",{"overlayIndex":[2,"overlay-index"],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"message":[1],"cssClass":[1,"css-class"],"duration":[2],"backdropDismiss":[4,"backdrop-dismiss"],"showBackdrop":[4,"show-backdrop"],"spinner":[1025],"translucent":[4],"animated":[4],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]}]]],["ion-toast",[[33,"ion-toast",{"overlayIndex":[2,"overlay-index"],"color":[1],"enterAnimation":[16],"leaveAnimation":[16],"cssClass":[1,"css-class"],"duration":[2],"header":[1],"message":[1],"keyboardClose":[4,"keyboard-close"],"position":[1],"buttons":[16],"translucent":[4],"animated":[4],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]}]]],["ion-card_5",[[33,"ion-card",{"color":[1],"button":[4],"type":[1],"disabled":[4],"download":[1],"href":[1],"rel":[1],"routerDirection":[1,"router-direction"],"routerAnimation":[16],"target":[1]}],[32,"ion-card-content"],[33,"ion-card-header",{"color":[1],"translucent":[4]}],[33,"ion-card-subtitle",{"color":[1]}],[33,"ion-card-title",{"color":[1]}]]],["ion-item-option_3",[[33,"ion-item-option",{"color":[1],"disabled":[4],"download":[1],"expandable":[4],"href":[1],"rel":[1],"target":[1],"type":[1]}],[32,"ion-item-options",{"side":[1],"fireSwipeEvent":[64]}],[0,"ion-item-sliding",{"disabled":[4],"state":[32],"getOpenAmount":[64],"getSlidingRatio":[64],"open":[64],"close":[64],"closeOpened":[64]}]]],["ion-infinite-scroll_2",[[32,"ion-infinite-scroll-content",{"loadingSpinner":[1025,"loading-spinner"],"loadingText":[1,"loading-text"]}],[0,"ion-infinite-scroll",{"threshold":[1],"disabled":[4],"position":[1],"isLoading":[32],"complete":[64]}]]],["ion-reorder_2",[[33,"ion-reorder",null,[[2,"click","onClick"]]],[0,"ion-reorder-group",{"disabled":[4],"state":[32],"complete":[64]}]]],["ion-segment_2",[[33,"ion-segment-button",{"disabled":[4],"layout":[1],"type":[1],"value":[1],"checked":[32]}],[33,"ion-segment",{"color":[1],"disabled":[4],"scrollable":[4],"swipeGesture":[4,"swipe-gesture"],"value":[1025],"activated":[32]}]]],["ion-tab-bar_2",[[33,"ion-tab-button",{"disabled":[4],"download":[1],"href":[1],"rel":[1],"layout":[1025],"selected":[1028],"tab":[1],"target":[1]},[[8,"ionTabBarChanged","onTabBarChanged"]]],[33,"ion-tab-bar",{"color":[1],"selectedTab":[1,"selected-tab"],"translucent":[4],"keyboardVisible":[32]}]]],["ion-chip",[[33,"ion-chip",{"color":[1],"outline":[4],"disabled":[4]}]]],["ion-modal",[[34,"ion-modal",{"overlayIndex":[2,"overlay-index"],"delegate":[16],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"component":[1],"componentProps":[16],"cssClass":[1,"css-class"],"backdropDismiss":[4,"backdrop-dismiss"],"showBackdrop":[4,"show-backdrop"],"animated":[4],"swipeToClose":[4,"swipe-to-close"],"presentingElement":[16],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]}]]],["ion-popover",[[34,"ion-popover",{"delegate":[16],"overlayIndex":[2,"overlay-index"],"enterAnimation":[16],"leaveAnimation":[16],"component":[1],"componentProps":[16],"keyboardClose":[4,"keyboard-close"],"cssClass":[1,"css-class"],"backdropDismiss":[4,"backdrop-dismiss"],"event":[8],"showBackdrop":[4,"show-backdrop"],"translucent":[4],"animated":[4],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]}]]],["ion-searchbar",[[34,"ion-searchbar",{"color":[1],"animated":[4],"autocomplete":[1],"autocorrect":[1],"cancelButtonIcon":[1,"cancel-button-icon"],"cancelButtonText":[1,"cancel-button-text"],"clearIcon":[1,"clear-icon"],"debounce":[2],"disabled":[4],"inputmode":[1],"enterkeyhint":[1],"placeholder":[1],"searchIcon":[1,"search-icon"],"showCancelButton":[1,"show-cancel-button"],"showClearButton":[1,"show-clear-button"],"spellcheck":[4],"type":[1],"value":[1025],"focused":[32],"noAnimate":[32],"setFocus":[64],"getInputElement":[64]}]]],["ion-app_8",[[0,"ion-app"],[34,"ion-buttons",{"collapse":[4]}],[1,"ion-content",{"color":[1],"fullscreen":[4],"forceOverscroll":[1028,"force-overscroll"],"scrollX":[4,"scroll-x"],"scrollY":[4,"scroll-y"],"scrollEvents":[4,"scroll-events"],"getScrollElement":[64],"scrollToTop":[64],"scrollToBottom":[64],"scrollByPoint":[64],"scrollToPoint":[64]},[[8,"appload","onAppLoad"],[2,"click","onClick"]]],[36,"ion-footer",{"translucent":[4]}],[36,"ion-header",{"collapse":[1],"translucent":[4]}],[1,"ion-router-outlet",{"mode":[1025],"delegate":[16],"animated":[4],"animation":[16],"swipeHandler":[16],"commit":[64],"setRouteId":[64],"getRouteId":[64]}],[33,"ion-title",{"color":[1],"size":[1]}],[33,"ion-toolbar",{"color":[1]},[[0,"ionStyle","childrenStyle"]]]]],["ion-route_4",[[0,"ion-route",{"url":[1],"component":[1],"componentProps":[16],"beforeLeave":[16],"beforeEnter":[16]}],[0,"ion-route-redirect",{"from":[1],"to":[1]}],[0,"ion-router",{"root":[1],"useHash":[4,"use-hash"],"canTransition":[64],"push":[64],"back":[64],"printDebug":[64],"navChanged":[64]},[[8,"popstate","onPopState"],[4,"ionBackButton","onBackButton"]]],[1,"ion-router-link",{"color":[1],"href":[1],"rel":[1],"routerDirection":[1,"router-direction"],"routerAnimation":[16],"target":[1]}]]],["ion-avatar_3",[[33,"ion-avatar"],[33,"ion-badge",{"color":[1]}],[1,"ion-thumbnail"]]],["ion-col_3",[[1,"ion-col",{"offset":[1],"offsetXs":[1,"offset-xs"],"offsetSm":[1,"offset-sm"],"offsetMd":[1,"offset-md"],"offsetLg":[1,"offset-lg"],"offsetXl":[1,"offset-xl"],"pull":[1],"pullXs":[1,"pull-xs"],"pullSm":[1,"pull-sm"],"pullMd":[1,"pull-md"],"pullLg":[1,"pull-lg"],"pullXl":[1,"pull-xl"],"push":[1],"pushXs":[1,"push-xs"],"pushSm":[1,"push-sm"],"pushMd":[1,"push-md"],"pushLg":[1,"push-lg"],"pushXl":[1,"push-xl"],"size":[1],"sizeXs":[1,"size-xs"],"sizeSm":[1,"size-sm"],"sizeMd":[1,"size-md"],"sizeLg":[1,"size-lg"],"sizeXl":[1,"size-xl"]},[[9,"resize","onResize"]]],[1,"ion-grid",{"fixed":[4]}],[1,"ion-row"]]],["ion-nav_2",[[1,"ion-nav",{"delegate":[16],"swipeGesture":[1028,"swipe-gesture"],"animated":[4],"animation":[16],"rootParams":[16],"root":[1],"push":[64],"insert":[64],"insertPages":[64],"pop":[64],"popTo":[64],"popToRoot":[64],"removeIndex":[64],"setRoot":[64],"setPages":[64],"setRouteId":[64],"getRouteId":[64],"getActive":[64],"getByIndex":[64],"canGoBack":[64],"getPrevious":[64]}],[0,"ion-nav-link",{"component":[1],"componentProps":[16],"routerDirection":[1,"router-direction"],"routerAnimation":[16]}]]],["ion-slide_2",[[0,"ion-slide"],[36,"ion-slides",{"options":[8],"pager":[4],"scrollbar":[4],"update":[64],"updateAutoHeight":[64],"slideTo":[64],"slideNext":[64],"slidePrev":[64],"getActiveIndex":[64],"getPreviousIndex":[64],"length":[64],"isEnd":[64],"isBeginning":[64],"startAutoplay":[64],"stopAutoplay":[64],"lockSwipeToNext":[64],"lockSwipeToPrev":[64],"lockSwipes":[64],"getSwiper":[64]}]]],["ion-tab_2",[[1,"ion-tab",{"active":[1028],"delegate":[16],"tab":[1],"component":[1],"setActive":[64]}],[1,"ion-tabs",{"useRouter":[1028,"use-router"],"selectedTab":[32],"select":[64],"getTab":[64],"getSelected":[64],"setRouteId":[64],"getRouteId":[64]}]]],["ion-checkbox",[[33,"ion-checkbox",{"color":[1],"name":[1],"checked":[1028],"indeterminate":[1028],"disabled":[4],"value":[1]}]]],["ion-img",[[1,"ion-img",{"alt":[1],"src":[1],"loadSrc":[32],"loadError":[32]}]]],["ion-input",[[34,"ion-input",{"fireFocusEvents":[4,"fire-focus-events"],"color":[1],"accept":[1],"autocapitalize":[1],"autocomplete":[1],"autocorrect":[1],"autofocus":[4],"clearInput":[4,"clear-input"],"clearOnEdit":[4,"clear-on-edit"],"debounce":[2],"disabled":[4],"enterkeyhint":[1],"inputmode":[1],"max":[1],"maxlength":[2],"min":[1],"minlength":[2],"multiple":[4],"name":[1],"pattern":[1],"placeholder":[1],"readonly":[4],"required":[4],"spellcheck":[4],"step":[1],"size":[2],"type":[1],"value":[1032],"hasFocus":[32],"setFocus":[64],"setBlur":[64],"getInputElement":[64]}]]],["ion-progress-bar",[[33,"ion-progress-bar",{"type":[1],"reversed":[4],"value":[2],"buffer":[2],"color":[1]}]]],["ion-range",[[33,"ion-range",{"color":[1],"debounce":[2],"name":[1],"dualKnobs":[4,"dual-knobs"],"min":[2],"max":[2],"pin":[4],"snaps":[4],"step":[2],"ticks":[4],"disabled":[4],"value":[1026],"ratioA":[32],"ratioB":[32],"pressedKnob":[32]}]]],["ion-split-pane",[[33,"ion-split-pane",{"contentId":[513,"content-id"],"disabled":[4],"when":[8],"visible":[32]}]]],["ion-text",[[1,"ion-text",{"color":[1]}]]],["ion-textarea",[[34,"ion-textarea",{"fireFocusEvents":[4,"fire-focus-events"],"color":[1],"autocapitalize":[1],"autofocus":[4],"clearOnEdit":[1028,"clear-on-edit"],"debounce":[2],"disabled":[4],"inputmode":[1],"enterkeyhint":[1],"maxlength":[2],"minlength":[2],"name":[1],"placeholder":[1],"readonly":[4],"required":[4],"spellcheck":[4],"cols":[2],"rows":[2],"wrap":[1],"autoGrow":[4,"auto-grow"],"value":[1025],"hasFocus":[32],"setFocus":[64],"setBlur":[64],"getInputElement":[64]}]]],["ion-toggle",[[33,"ion-toggle",{"color":[1],"name":[1],"checked":[1028],"disabled":[4],"value":[1],"activated":[32]}]]],["ion-virtual-scroll",[[0,"ion-virtual-scroll",{"approxItemHeight":[2,"approx-item-height"],"approxHeaderHeight":[2,"approx-header-height"],"approxFooterHeight":[2,"approx-footer-height"],"headerFn":[16],"footerFn":[16],"items":[16],"itemHeight":[16],"headerHeight":[16],"footerHeight":[16],"renderItem":[16],"renderHeader":[16],"renderFooter":[16],"nodeRender":[16],"domRender":[16],"totalHeight":[32],"positionForItem":[64],"checkRange":[64],"checkEnd":[64]},[[9,"resize","onResize"]]]]],["ion-datetime_3",[[34,"ion-picker",{"overlayIndex":[2,"overlay-index"],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"buttons":[16],"columns":[16],"cssClass":[1,"css-class"],"duration":[2],"showBackdrop":[4,"show-backdrop"],"backdropDismiss":[4,"backdrop-dismiss"],"animated":[4],"presented":[32],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64],"getColumn":[64]}],[33,"ion-datetime",{"name":[1],"disabled":[4],"readonly":[4],"min":[1025],"max":[1025],"displayFormat":[1,"display-format"],"displayTimezone":[1,"display-timezone"],"pickerFormat":[1,"picker-format"],"cancelText":[1,"cancel-text"],"doneText":[1,"done-text"],"yearValues":[8,"year-values"],"monthValues":[8,"month-values"],"dayValues":[8,"day-values"],"hourValues":[8,"hour-values"],"minuteValues":[8,"minute-values"],"monthNames":[1,"month-names"],"monthShortNames":[1,"month-short-names"],"dayNames":[1,"day-names"],"dayShortNames":[1,"day-short-names"],"pickerOptions":[16],"placeholder":[1],"value":[1025],"isExpanded":[32],"open":[64]}],[32,"ion-picker-column",{"col":[16]}]]],["ion-radio_2",[[33,"ion-radio",{"color":[1],"name":[1],"disabled":[4],"value":[8],"checked":[32],"buttonTabindex":[32],"setFocus":[64],"setButtonTabindex":[64]}],[0,"ion-radio-group",{"allowEmptySelection":[4,"allow-empty-selection"],"name":[1],"value":[1032]},[[4,"keydown","onKeydown"]]]]],["ion-spinner",[[1,"ion-spinner",{"color":[1],"duration":[2],"name":[1],"paused":[4]}]]],["ion-backdrop",[[33,"ion-backdrop",{"visible":[4],"tappable":[4],"stopPropagation":[4,"stop-propagation"]},[[2,"click","onMouseDown"]]]]],["ion-ripple-effect",[[1,"ion-ripple-effect",{"type":[1],"addRipple":[64]}]]],["ion-button_2",[[33,"ion-button",{"color":[1],"buttonType":[1025,"button-type"],"disabled":[516],"expand":[513],"fill":[1537],"routerDirection":[1,"router-direction"],"routerAnimation":[16],"download":[1],"href":[1],"rel":[1],"shape":[513],"size":[513],"strong":[4],"target":[1],"type":[1]}],[1,"ion-icon",{"mode":[1025],"color":[1],"ariaLabel":[1537,"aria-label"],"ariaHidden":[513,"aria-hidden"],"ios":[1],"md":[1],"flipRtl":[4,"flip-rtl"],"name":[1],"src":[1],"icon":[8],"size":[1],"lazy":[4],"sanitize":[4],"svgContent":[32],"isVisible":[32]}]]],["ion-item_8",[[33,"ion-item-divider",{"color":[1],"sticky":[4]}],[32,"ion-item-group"],[33,"ion-note",{"color":[1]}],[1,"ion-skeleton-text",{"animated":[4]}],[49,"ion-item",{"color":[1],"button":[4],"detail":[4],"detailIcon":[1,"detail-icon"],"disabled":[4],"download":[1],"href":[1],"rel":[1],"lines":[1],"routerAnimation":[16],"routerDirection":[1,"router-direction"],"target":[1],"type":[1],"multipleInputs":[32]},[[0,"ionColor","labelColorChanged"],[0,"ionStyle","itemStyle"]]],[34,"ion-label",{"color":[1],"position":[1],"noAnimate":[32]}],[32,"ion-list",{"lines":[1],"inset":[4],"closeSlidingItems":[64]}],[33,"ion-list-header",{"color":[1],"lines":[1]}]]]]'),e)});var e})}}},vP=((DC=EC=function(){function e(){A(this,e)}return m(e,null,[{key:"forRoot",value:function(e){return{ngModule:EC,providers:[{provide:MS,useValue:e},{provide:ic,useFactory:gP,multi:!0,deps:[MS,od,Ac]}]}}}]),e}()).\u0275fac=function(e){return new(e||DC)},DC.\u0275mod=mt({type:DC}),DC.\u0275inj=Fe({providers:[RS,cP,dP],imports:[[Zh]]}),DC),mP=u("Hfs6"),yP=u.n(mP);function bP(e){return!!e&&(e instanceof V||"function"==typeof e.lift&&"function"==typeof e.subscribe)}var wP=function(e){r(n,e);var t=a(n);function n(e,i){var r;return A(this,n),(r=t.call(this,e,i)).scheduler=e,r.work=i,r.pending=!1,r}return m(n,[{key:"schedule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(this.closed)return this;this.state=e;var n=this.id,i=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(i,n,t)),this.pending=!0,this.delay=t,this.id=this.id||this.requestAsyncId(i,this.id,t),this}},{key:"requestAsyncId",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return setInterval(e.flush.bind(e,this),n)}},{key:"recycleAsyncId",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==n&&this.delay===n&&!1===this.pending)return t;clearInterval(t)}},{key:"execute",value:function(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(e,t);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}},{key:"_execute",value:function(e,t){var n=!1,i=void 0;try{this.work(e)}catch(r){n=!0,i=!!r&&r||new Error(r)}if(n)return this.unsubscribe(),i}},{key:"_unsubscribe",value:function(){var e=this.id,t=this.scheduler,n=t.actions,i=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==i&&n.splice(i,1),null!=e&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null}}]),n}(function(e){r(n,e);var t=a(n);function n(e,i){return A(this,n),t.call(this)}return m(n,[{key:"schedule",value:function(e){return this}}]),n}(O)),_P=function(e){r(n,e);var t=a(n);function n(e,i){var r;return A(this,n),(r=t.call(this,e,i)).scheduler=e,r.work=i,r}return m(n,[{key:"schedule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return t>0?i(c(n.prototype),"schedule",this).call(this,e,t):(this.delay=t,this.state=e,this.scheduler.flush(this),this)}},{key:"execute",value:function(e,t){return t>0||this.closed?i(c(n.prototype),"execute",this).call(this,e,t):this._execute(e,t)}},{key:"requestAsyncId",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null!==r&&r>0||null===r&&this.delay>0?i(c(n.prototype),"requestAsyncId",this).call(this,e,t,r):e.flush(this)}}]),n}(wP),kP=function(){var e=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.now;A(this,e),this.SchedulerAction=t,this.now=n}return m(e,[{key:"schedule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0;return new this.SchedulerAction(this,e).schedule(n,t)}}]),e}();return e.now=function(){return Date.now()},e}(),xP=function(e){r(n,e);var t=a(n);function n(e){var i,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:kP.now;return A(this,n),(i=t.call(this,e,function(){return n.delegate&&n.delegate!==l(i)?n.delegate.now():r()})).actions=[],i.active=!1,i.scheduled=void 0,i}return m(n,[{key:"schedule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2?arguments[2]:void 0;return n.delegate&&n.delegate!==this?n.delegate.schedule(e,t,r):i(c(n.prototype),"schedule",this).call(this,e,t,r)}},{key:"flush",value:function(e){var t=this.actions;if(this.active)t.push(e);else{var n;this.active=!0;do{if(n=e.execute(e.state,e.delay))break}while(e=t.shift());if(this.active=!1,n){for(;e=t.shift();)e.unsubscribe();throw n}}}}]),n}(kP),AP=new(function(e){r(n,e);var t=a(n);function n(){return A(this,n),t.apply(this,arguments)}return n}(xP))(_P);function CP(e,t){return new V(t?function(n){return t.schedule(SP,0,{error:e,subscriber:n})}:function(t){return t.error(e)})}function SP(e){var t=e.error;e.subscriber.error(t)}var PP,EP=((PP=function(){function e(t,n,i){A(this,e),this.kind=t,this.value=n,this.error=i,this.hasValue="N"===t}return m(e,[{key:"observe",value:function(e){switch(this.kind){case"N":return e.next&&e.next(this.value);case"E":return e.error&&e.error(this.error);case"C":return e.complete&&e.complete()}}},{key:"do",value:function(e,t,n){switch(this.kind){case"N":return e&&e(this.value);case"E":return t&&t(this.error);case"C":return n&&n()}}},{key:"accept",value:function(e,t,n){return e&&"function"==typeof e.next?this.observe(e):this.do(e,t,n)}},{key:"toObservable",value:function(){switch(this.kind){case"N":return Ty(this.value);case"E":return CP(this.error);case"C":return Lb()}throw new Error("unexpected notification kind value")}}],[{key:"createNext",value:function(t){return void 0!==t?new e("N",t):e.undefinedValueNotification}},{key:"createError",value:function(t){return new e("E",void 0,t)}},{key:"createComplete",value:function(){return e.completeNotification}}]),e}()).completeNotification=new PP("C"),PP.undefinedValueNotification=new PP("N",void 0),PP),DP=function(e){r(n,e);var t=a(n);function n(e,i){var r,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return A(this,n),(r=t.call(this,e)).scheduler=i,r.delay=o,r}return m(n,[{key:"scheduleMessage",value:function(e){this.destination.add(this.scheduler.schedule(n.dispatch,this.delay,new OP(e,this.destination)))}},{key:"_next",value:function(e){this.scheduleMessage(EP.createNext(e))}},{key:"_error",value:function(e){this.scheduleMessage(EP.createError(e)),this.unsubscribe()}},{key:"_complete",value:function(){this.scheduleMessage(EP.createComplete()),this.unsubscribe()}}],[{key:"dispatch",value:function(e){var t=e.notification,n=e.destination;t.observe(n),this.unsubscribe()}}]),n}(I),OP=function e(t,n){A(this,e),this.notification=t,this.destination=n},MP=function(e){r(n,e);var t=a(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.POSITIVE_INFINITY,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY,o=arguments.length>2?arguments[2]:void 0;return A(this,n),(e=t.call(this)).scheduler=o,e._events=[],e._infiniteTimeWindow=!1,e._bufferSize=i<1?1:i,e._windowTime=r<1?1:r,r===Number.POSITIVE_INFINITY?(e._infiniteTimeWindow=!0,e.next=e.nextInfiniteTimeWindow):e.next=e.nextTimeWindow,e}return m(n,[{key:"nextInfiniteTimeWindow",value:function(e){if(!this.isStopped){var t=this._events;t.push(e),t.length>this._bufferSize&&t.shift()}i(c(n.prototype),"next",this).call(this,e)}},{key:"nextTimeWindow",value:function(e){this.isStopped||(this._events.push(new TP(this._getNow(),e)),this._trimBufferThenGetEvents()),i(c(n.prototype),"next",this).call(this,e)}},{key:"_subscribe",value:function(e){var t,n=this._infiniteTimeWindow,i=n?this._events:this._trimBufferThenGetEvents(),r=this.scheduler,o=i.length;if(this.closed)throw new H;if(this.isStopped||this.hasError?t=O.EMPTY:(this.observers.push(e),t=new j(this,e)),r&&e.add(e=new DP(e,r)),n)for(var a=0;a<o&&!e.closed;a++)e.next(i[a]);else for(var s=0;s<o&&!e.closed;s++)e.next(i[s].value);return this.hasError?e.error(this.thrownError):this.isStopped&&e.complete(),t}},{key:"_getNow",value:function(){return(this.scheduler||AP).now()}},{key:"_trimBufferThenGetEvents",value:function(){for(var e=this._getNow(),t=this._bufferSize,n=this._windowTime,i=this._events,r=i.length,o=0;o<r&&!(e-i[o].time<n);)o++;return r>t&&(o=Math.max(o,r-t)),o>0&&i.splice(0,o),i}}]),n}(W),TP=function e(t,n){A(this,e),this.time=t,this.value=n};function IP(e,t,n){var i;return i=e&&"object"==typeof e?e:{bufferSize:e,windowTime:t,refCount:!1,scheduler:n},function(e){return e.lift(function(e){var t,n,i=e.bufferSize,r=void 0===i?Number.POSITIVE_INFINITY:i,o=e.windowTime,a=void 0===o?Number.POSITIVE_INFINITY:o,s=e.refCount,l=e.scheduler,u=0,c=!1,d=!1;return function(e){var i;u++,!t||c?(c=!1,t=new MP(r,a,l),i=t.subscribe(this),n=e.subscribe({next:function(e){t.next(e)},error:function(e){c=!0,t.error(e)},complete:function(){d=!0,n=void 0,t.complete()}}),d&&(n=void 0)):i=t.subscribe(this),this.add(function(){u--,i.unsubscribe(),i=void 0,n&&!d&&s&&0===u&&(n.unsubscribe(),n=void 0,t=void 0)})}}(i))}}var RP,LP,FP=function e(){A(this,e)},BP=((RP=function(e){r(n,e);var t=a(n);function n(){return A(this,n),t.apply(this,arguments)}return m(n,[{key:"getTranslation",value:function(e){return Ty({})}}]),n}(FP)).\u0275fac=function(e){return VP(e||RP)},RP.\u0275prov=Re({token:RP,factory:RP.\u0275fac}),RP),VP=hi(BP),zP=function e(){A(this,e)},NP=((LP=function(){function e(){A(this,e)}return m(e,[{key:"handle",value:function(e){return e.key}}]),e}()).\u0275fac=function(e){return new(e||LP)},LP.\u0275prov=Re({token:LP,factory:LP.\u0275fac}),LP);function HP(e,t){if(e===t)return!0;if(null===e||null===t)return!1;if(e!=e&&t!=t)return!0;var n,i,r,o=typeof e;if(o==typeof t&&"object"==o){if(!Array.isArray(e)){if(Array.isArray(t))return!1;for(i in r=Object.create(null),e){if(!HP(e[i],t[i]))return!1;r[i]=!0}for(i in t)if(!(i in r)&&void 0!==t[i])return!1;return!0}if(!Array.isArray(t))return!1;if((n=e.length)==t.length){for(i=0;i<n;i++)if(!HP(e[i],t[i]))return!1;return!0}}return!1}function jP(e){return null!=e}function UP(e){return e&&"object"==typeof e&&!Array.isArray(e)}function WP(e,t){var n=Object.assign({},e);return UP(e)&&UP(t)&&Object.keys(t).forEach(function(i){UP(t[i])&&i in e?n[i]=WP(e[i],t[i]):Object.assign(n,d({},i,t[i]))}),n}var GP,qP,YP,ZP,QP,XP,KP,JP,$P,eE,tE,nE,iE=function e(){A(this,e)},rE=((GP=function(e){r(n,e);var t=a(n);function n(){var e;return A(this,n),(e=t.apply(this,arguments)).templateMatcher=/{{\s?([^{}\s]*)\s?}}/g,e}return m(n,[{key:"interpolate",value:function(e,t){return"string"==typeof e?this.interpolateString(e,t):"function"==typeof e?this.interpolateFunction(e,t):e}},{key:"getValue",value:function(e,t){var n="string"==typeof t?t.split("."):[t];t="";do{t+=n.shift(),!jP(e)||!jP(e[t])||"object"!=typeof e[t]&&n.length?n.length?t+=".":e=void 0:(e=e[t],t="")}while(n.length);return e}},{key:"interpolateFunction",value:function(e,t){return e(t)}},{key:"interpolateString",value:function(e,t){var n=this;return t?e.replace(this.templateMatcher,function(e,i){var r=n.getValue(t,i);return jP(r)?r:e}):e}}]),n}(iE)).\u0275fac=function(e){return oE(e||GP)},GP.\u0275prov=Re({token:GP,factory:GP.\u0275fac}),GP),oE=hi(rE),aE=function e(){A(this,e)},sE=((qP=function(e){r(n,e);var t=a(n);function n(){return A(this,n),t.apply(this,arguments)}return m(n,[{key:"compile",value:function(e,t){return e}},{key:"compileTranslations",value:function(e,t){return e}}]),n}(aE)).\u0275fac=function(e){return lE(e||qP)},qP.\u0275prov=Re({token:qP,factory:qP.\u0275fac}),qP),lE=hi(sE),uE=function e(){A(this,e),this.currentLang=this.defaultLang,this.translations={},this.langs=[],this.onTranslationChange=new Fu,this.onLangChange=new Fu,this.onDefaultLangChange=new Fu},cE=new mi("USE_STORE"),dE=new mi("USE_DEFAULT_LANG"),hE=new mi("DEFAULT_LANGUAGE"),fE=new mi("USE_EXTEND"),pE=((QP=function(){function e(t,n,i,r,o){var a=!(arguments.length>5&&void 0!==arguments[5])||arguments[5],s=arguments.length>6&&void 0!==arguments[6]&&arguments[6],l=arguments.length>7&&void 0!==arguments[7]&&arguments[7],u=arguments.length>8?arguments[8]:void 0;A(this,e),this.store=t,this.currentLoader=n,this.compiler=i,this.parser=r,this.missingTranslationHandler=o,this.useDefaultLang=a,this.isolate=s,this.extend=l,this.pending=!1,this._onTranslationChange=new Fu,this._onLangChange=new Fu,this._onDefaultLangChange=new Fu,this._langs=[],this._translations={},this._translationRequests={},u&&this.setDefaultLang(u)}return m(e,[{key:"onTranslationChange",get:function(){return this.isolate?this._onTranslationChange:this.store.onTranslationChange}},{key:"onLangChange",get:function(){return this.isolate?this._onLangChange:this.store.onLangChange}},{key:"onDefaultLangChange",get:function(){return this.isolate?this._onDefaultLangChange:this.store.onDefaultLangChange}},{key:"defaultLang",get:function(){return this.isolate?this._defaultLang:this.store.defaultLang},set:function(e){this.isolate?this._defaultLang=e:this.store.defaultLang=e}},{key:"currentLang",get:function(){return this.isolate?this._currentLang:this.store.currentLang},set:function(e){this.isolate?this._currentLang=e:this.store.currentLang=e}},{key:"langs",get:function(){return this.isolate?this._langs:this.store.langs},set:function(e){this.isolate?this._langs=e:this.store.langs=e}},{key:"translations",get:function(){return this.isolate?this._translations:this.store.translations},set:function(e){this.isolate?this._translations=e:this.store.translations=e}},{key:"setDefaultLang",value:function(e){var t=this;if(e!==this.defaultLang){var n=this.retrieveTranslations(e);void 0!==n?(null==this.defaultLang&&(this.defaultLang=e),n.pipe(Hb(1)).subscribe(function(n){t.changeDefaultLang(e)})):this.changeDefaultLang(e)}}},{key:"getDefaultLang",value:function(){return this.defaultLang}},{key:"use",value:function(e){var t=this;if(e===this.currentLang)return Ty(this.translations[e]);var n=this.retrieveTranslations(e);return void 0!==n?(this.currentLang||(this.currentLang=e),n.pipe(Hb(1)).subscribe(function(n){t.changeLang(e)}),n):(this.changeLang(e),Ty(this.translations[e]))}},{key:"retrieveTranslations",value:function(e){var t;return(void 0===this.translations[e]||this.extend)&&(this._translationRequests[e]=this._translationRequests[e]||this.getTranslation(e),t=this._translationRequests[e]),t}},{key:"getTranslation",value:function(e){var t=this;this.pending=!0;var n=this.currentLoader.getTranslation(e).pipe(IP(1),Hb(1));return this.loadingTranslations=n.pipe(Y(function(n){return t.compiler.compileTranslations(n,e)}),IP(1),Hb(1)),this.loadingTranslations.subscribe({next:function(n){t.translations[e]=t.extend&&t.translations[e]?Object.assign(Object.assign({},n),t.translations[e]):n,t.updateLangs(),t.pending=!1},error:function(e){t.pending=!1}}),n}},{key:"setTranslation",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];t=this.compiler.compileTranslations(t,e),this.translations[e]=(n||this.extend)&&this.translations[e]?WP(this.translations[e],t):t,this.updateLangs(),this.onTranslationChange.emit({lang:e,translations:this.translations[e]})}},{key:"getLangs",value:function(){return this.langs}},{key:"addLangs",value:function(e){var t=this;e.forEach(function(e){-1===t.langs.indexOf(e)&&t.langs.push(e)})}},{key:"updateLangs",value:function(){this.addLangs(Object.keys(this.translations))}},{key:"getParsedResult",value:function(e,t,n){var i;if(t instanceof Array){var r,o={},a=!1,s=h(t);try{for(s.s();!(r=s.n()).done;){var l=r.value;o[l]=this.getParsedResult(e,l,n),bP(o[l])&&(a=!0)}}catch(c){s.e(c)}finally{s.f()}return a?Av(t.map(function(e){return bP(o[e])?o[e]:Ty(o[e])})).pipe(Y(function(e){var n={};return e.forEach(function(e,i){n[t[i]]=e}),n})):o}if(e&&(i=this.parser.interpolate(this.parser.getValue(e,t),n)),void 0===i&&null!=this.defaultLang&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(i=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],t),n)),void 0===i){var u={key:t,translateService:this};void 0!==n&&(u.interpolateParams=n),i=this.missingTranslationHandler.handle(u)}return void 0!==i?i:t}},{key:"get",value:function(e,t){var n=this;if(!jP(e)||!e.length)throw new Error('Parameter "key" required');if(this.pending)return this.loadingTranslations.pipe(Iy(function(i){return bP(i=n.getParsedResult(i,e,t))?i:Ty(i)}));var i=this.getParsedResult(this.translations[this.currentLang],e,t);return bP(i)?i:Ty(i)}},{key:"getStreamOnTranslationChange",value:function(e,t){var n=this;if(!jP(e)||!e.length)throw new Error('Parameter "key" required');return Ib(Fb(function(){return n.get(e,t)}),this.onTranslationChange.pipe(Bb(function(i){var r=n.getParsedResult(i.translations,e,t);return"function"==typeof r.subscribe?r:Ty(r)})))}},{key:"stream",value:function(e,t){var n=this;if(!jP(e)||!e.length)throw new Error('Parameter "key" required');return Ib(Fb(function(){return n.get(e,t)}),this.onLangChange.pipe(Bb(function(i){var r=n.getParsedResult(i.translations,e,t);return bP(r)?r:Ty(r)})))}},{key:"instant",value:function(e,t){if(!jP(e)||!e.length)throw new Error('Parameter "key" required');var n=this.getParsedResult(this.translations[this.currentLang],e,t);if(bP(n)){if(e instanceof Array){var i={};return e.forEach(function(t,n){i[e[n]]=e[n]}),i}return e}return n}},{key:"set",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.currentLang;this.translations[n][e]=this.compiler.compile(t,n),this.updateLangs(),this.onTranslationChange.emit({lang:n,translations:this.translations[n]})}},{key:"changeLang",value:function(e){this.currentLang=e,this.onLangChange.emit({lang:e,translations:this.translations[e]}),null==this.defaultLang&&this.changeDefaultLang(e)}},{key:"changeDefaultLang",value:function(e){this.defaultLang=e,this.onDefaultLangChange.emit({lang:e,translations:this.translations[e]})}},{key:"reloadLang",value:function(e){return this.resetLang(e),this.getTranslation(e)}},{key:"resetLang",value:function(e){this._translationRequests[e]=void 0,this.translations[e]=void 0}},{key:"getBrowserLang",value:function(){if("undefined"!=typeof window&&void 0!==window.navigator){var e=window.navigator.languages?window.navigator.languages[0]:null;return void 0!==(e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage)?(-1!==e.indexOf("-")&&(e=e.split("-")[0]),-1!==e.indexOf("_")&&(e=e.split("_")[0]),e):void 0}}},{key:"getBrowserCultureLang",value:function(){if("undefined"!=typeof window&&void 0!==window.navigator){var e=window.navigator.languages?window.navigator.languages[0]:null;return e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage}}}]),e}()).\u0275fac=function(e){return new(e||QP)(Ri(uE),Ri(FP),Ri(aE),Ri(iE),Ri(zP),Ri(dE),Ri(cE),Ri(fE),Ri(hE))},QP.\u0275prov=Re({token:QP,factory:QP.\u0275fac}),QP),gE=((ZP=function(){function e(t,n){A(this,e),this.translate=t,this._ref=n,this.value=""}return m(e,[{key:"updateValue",value:function(e,t,n){var i=this,r=function(t){i.value=void 0!==t?t:e,i.lastKey=e,i._ref.markForCheck()};if(n){var o=this.translate.getParsedResult(n,e,t);bP(o.subscribe)?o.subscribe(r):r(o)}this.translate.get(e,t).subscribe(r)}},{key:"transform",value:function(e){var t,n=this;if(!e||!e.length)return e;for(var i=arguments.length,r=new Array(i>1?i-1:0),o=1;o<i;o++)r[o-1]=arguments[o];if(HP(e,this.lastKey)&&HP(r,this.lastParams))return this.value;if(jP(r[0])&&r.length)if("string"==typeof r[0]&&r[0].length){var a=r[0].replace(/(\')?([a-zA-Z0-9_]+)(\')?(\s)?:/g,'"$2":').replace(/:(\s)?(\')(.*?)(\')/g,':"$3"');try{t=JSON.parse(a)}catch(s){throw new SyntaxError("Wrong parameter in TranslatePipe. Expected a valid Object, received: "+r[0])}}else"object"!=typeof r[0]||Array.isArray(r[0])||(t=r[0]);return this.lastKey=e,this.lastParams=r,this.updateValue(e,t),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.onTranslationChange.subscribe(function(i){n.lastKey&&i.lang===n.translate.currentLang&&(n.lastKey=null,n.updateValue(e,t,i.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(function(i){n.lastKey&&(n.lastKey=null,n.updateValue(e,t,i.translations))})),this.onDefaultLangChange||(this.onDefaultLangChange=this.translate.onDefaultLangChange.subscribe(function(){n.lastKey&&(n.lastKey=null,n.updateValue(e,t))})),this.value}},{key:"_dispose",value:function(){void 0!==this.onTranslationChange&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void 0),void 0!==this.onLangChange&&(this.onLangChange.unsubscribe(),this.onLangChange=void 0),void 0!==this.onDefaultLangChange&&(this.onDefaultLangChange.unsubscribe(),this.onDefaultLangChange=void 0)}},{key:"ngOnDestroy",value:function(){this._dispose()}}]),e}()).\u0275fac=function(e){return new(e||ZP)(rs(pE),nc())},ZP.\u0275pipe=wt({name:"translate",type:ZP,pure:!1}),ZP.\u0275prov=Re({token:ZP,factory:ZP.\u0275fac}),ZP),vE=((YP=function(){function e(){A(this,e)}return m(e,null,[{key:"forRoot",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:e,providers:[t.loader||{provide:FP,useClass:BP},t.compiler||{provide:aE,useClass:sE},t.parser||{provide:iE,useClass:rE},t.missingTranslationHandler||{provide:zP,useClass:NP},uE,{provide:cE,useValue:t.isolate},{provide:dE,useValue:t.useDefaultLang},{provide:fE,useValue:t.extend},{provide:hE,useValue:t.defaultLanguage},pE]}}},{key:"forChild",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:e,providers:[t.loader||{provide:FP,useClass:BP},t.compiler||{provide:aE,useClass:sE},t.parser||{provide:iE,useClass:rE},t.missingTranslationHandler||{provide:zP,useClass:NP},{provide:cE,useValue:t.isolate},{provide:dE,useValue:t.useDefaultLang},{provide:fE,useValue:t.extend},{provide:hE,useValue:t.defaultLanguage},pE]}}}]),e}()).\u0275fac=function(e){return new(e||YP)},YP.\u0275mod=mt({type:YP}),YP.\u0275inj=Fe({}),YP),mE=function(e,t,n,i){return new(n||(n=Promise))(function(r,o){function a(e){try{l(i.next(e))}catch(t){o(t)}}function s(e){try{l(i.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((i=i.apply(e,t||[])).next())})},yE=((XP=function(){function e(t,n,i){A(this,e),this.translate=t,this.router=n,this.toastController=i}return m(e,[{key:"success",value:function(e){return mE(this,void 0,void 0,regeneratorRuntime.mark(function t(){var n;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.includes("lang.")?this.translate.instant(e):e,t.next=3,this.toastController.create({cssClass:"notif-success",duration:3e3,message:n,position:"top"});case 3:t.sent.present();case 4:case"end":return t.stop()}},t,this)}))}},{key:"error",value:function(e){return mE(this,void 0,void 0,regeneratorRuntime.mark(function t(){var n;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.includes("lang.")?this.translate.instant(e):e,t.next=3,this.toastController.create({cssClass:"notif-error",duration:3e3,message:n,position:"top"});case 3:t.sent.present();case 4:case"end":return t.stop()}},t,this)}))}},{key:"handleErrors",value:function(e){console.log(e),0===e.status&&"Unknown Error"===e.statusText?this.error("lang.connectionServerFailed"):void 0!==e.error.errors?(this.error(void 0!==e.error.lang?"lang."+e.error.lang:e.error.errors),403!==e.status&&404!==e.status||this.router.navigate(["/home"])):this.error(void 0!==e.error.exception?e.error.exception[0].message:void 0!==e.error.error&&void 0!==e.error.error.message?e.error.error.message:void 0!==e.error.error[0]?e.error.error[0].message:e.message)}}]),e}()).\u0275fac=function(e){return new(e||XP)(Ri(pE),Ri(jk),Ri(hP))},XP.\u0275prov=Re({token:XP,factory:XP.\u0275fac}),XP),bE=function(){function e(){A(this,e)}return m(e,[{key:"attach",value:function(e){return this._attachedHost=e,e.attach(this)}},{key:"detach",value:function(){var e=this._attachedHost;null!=e&&(this._attachedHost=null,e.detach())}},{key:"isAttached",get:function(){return null!=this._attachedHost}},{key:"setAttachedHost",value:function(e){this._attachedHost=e}}]),e}(),wE=function(e){r(n,e);var t=a(n);function n(e,i,r,o){var a;return A(this,n),(a=t.call(this)).component=e,a.viewContainerRef=i,a.injector=r,a.componentFactoryResolver=o,a}return n}(bE),_E=function(e){r(n,e);var t=a(n);function n(e,i,r){var o;return A(this,n),(o=t.call(this)).templateRef=e,o.viewContainerRef=i,o.context=r,o}return m(n,[{key:"origin",get:function(){return this.templateRef.elementRef}},{key:"attach",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.context;return this.context=t,i(c(n.prototype),"attach",this).call(this,e)}},{key:"detach",value:function(){return this.context=void 0,i(c(n.prototype),"detach",this).call(this)}}]),n}(bE),kE=function(e){r(n,e);var t=a(n);function n(e){var i;return A(this,n),(i=t.call(this)).element=e instanceof Cl?e.nativeElement:e,i}return n}(bE),xE=function(){function e(){A(this,e),this._isDisposed=!1,this.attachDomPortal=null}return m(e,[{key:"hasAttached",value:function(){return!!this._attachedPortal}},{key:"attach",value:function(e){return e instanceof wE?(this._attachedPortal=e,this.attachComponentPortal(e)):e instanceof _E?(this._attachedPortal=e,this.attachTemplatePortal(e)):this.attachDomPortal&&e instanceof kE?(this._attachedPortal=e,this.attachDomPortal(e)):void 0}},{key:"detach",value:function(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}},{key:"dispose",value:function(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}},{key:"setDisposeFn",value:function(e){this._disposeFn=e}},{key:"_invokeDisposeFn",value:function(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}]),e}(),AE=function(e){r(n,e);var t=a(n);function n(e,r,o,a,s){var u,d;return A(this,n),(d=t.call(this)).outletElement=e,d._componentFactoryResolver=r,d._appRef=o,d._defaultInjector=a,d.attachDomPortal=function(e){var t=e.element,r=d._document.createComment("dom-portal");t.parentNode.insertBefore(r,t),d.outletElement.appendChild(t),i((u=l(d),c(n.prototype)),"setDisposeFn",u).call(u,function(){r.parentNode&&r.parentNode.replaceChild(t,r)})},d._document=s,d}return m(n,[{key:"attachComponentPortal",value:function(e){var t,n=this,i=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component);return e.viewContainerRef?(t=e.viewContainerRef.createComponent(i,e.viewContainerRef.length,e.injector||e.viewContainerRef.injector),this.setDisposeFn(function(){return t.destroy()})):(t=i.create(e.injector||this._defaultInjector),this._appRef.attachView(t.hostView),this.setDisposeFn(function(){n._appRef.detachView(t.hostView),t.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(t)),t}},{key:"attachTemplatePortal",value:function(e){var t=this,n=e.viewContainerRef,i=n.createEmbeddedView(e.templateRef,e.context);return i.rootNodes.forEach(function(e){return t.outletElement.appendChild(e)}),i.detectChanges(),this.setDisposeFn(function(){var e=n.indexOf(i);-1!==e&&n.remove(e)}),i}},{key:"dispose",value:function(){i(c(n.prototype),"dispose",this).call(this),null!=this.outletElement.parentNode&&this.outletElement.parentNode.removeChild(this.outletElement)}},{key:"_getComponentRootNode",value:function(e){return e.hostView.rootNodes[0]}}]),n}(xE),CE=((nE=function(e){r(n,e);var t=a(n);function n(e,r,o){var a,s;return A(this,n),(s=t.call(this))._componentFactoryResolver=e,s._viewContainerRef=r,s._isInitialized=!1,s.attached=new Fu,s.attachDomPortal=function(e){var t=e.element,r=s._document.createComment("dom-portal");e.setAttachedHost(l(s)),t.parentNode.insertBefore(r,t),s._getRootNode().appendChild(t),i((a=l(s),c(n.prototype)),"setDisposeFn",a).call(a,function(){r.parentNode&&r.parentNode.replaceChild(t,r)})},s._document=o,s}return m(n,[{key:"portal",get:function(){return this._attachedPortal},set:function(e){(!this.hasAttached()||e||this._isInitialized)&&(this.hasAttached()&&i(c(n.prototype),"detach",this).call(this),e&&i(c(n.prototype),"attach",this).call(this,e),this._attachedPortal=e)}},{key:"attachedRef",get:function(){return this._attachedRef}},{key:"ngOnInit",value:function(){this._isInitialized=!0}},{key:"ngOnDestroy",value:function(){i(c(n.prototype),"dispose",this).call(this),this._attachedPortal=null,this._attachedRef=null}},{key:"attachComponentPortal",value:function(e){e.setAttachedHost(this);var t=null!=e.viewContainerRef?e.viewContainerRef:this._viewContainerRef,r=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),o=t.createComponent(r,t.length,e.injector||t.injector);return t!==this._viewContainerRef&&this._getRootNode().appendChild(o.hostView.rootNodes[0]),i(c(n.prototype),"setDisposeFn",this).call(this,function(){return o.destroy()}),this._attachedPortal=e,this._attachedRef=o,this.attached.emit(o),o}},{key:"attachTemplatePortal",value:function(e){var t=this;e.setAttachedHost(this);var r=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context);return i(c(n.prototype),"setDisposeFn",this).call(this,function(){return t._viewContainerRef.clear()}),this._attachedPortal=e,this._attachedRef=r,this.attached.emit(r),r}},{key:"_getRootNode",value:function(){var e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}}]),n}(xE)).\u0275fac=function(e){return new(e||nE)(rs(_l),rs(uu),rs(od))},nE.\u0275dir=bt({type:nE,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[Va]}),nE),SE=((tE=function e(){A(this,e)}).\u0275fac=function(e){return new(e||tE)},tE.\u0275mod=mt({type:tE}),tE.\u0275inj=Fe({}),tE),PE=((eE=function(){function e(t,n,i){A(this,e),this.componentFactoryResolver=t,this.injector=n,this.appRef=i,this.mainDocumentId=0,this.signaturesContent=[],this.datesContent=[],this.notesContent=[],this.signaturesList=[],this.signaturesListSubstituted=[],this.currentPage=1,this.totalPage=1,this.stampLock=!1,this.currentToobal="mainDocumentDetail",this.currentAction=0,this.indexDocumentsList=0,this.documentsList=[],this.documentsListCount={},this.workingAreaWidth=0,this.workingAreaHeight=0,this.mobileMode=!0,this.smartphoneMode=!0,this.mode="",this.scale=1,this.x=0,this.y=90,this.dragging=!1,this.smartphoneMode=window.screen.width<=360,this.mobileMode=!!/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}return m(e,[{key:"reset",value:function(){this.mainDocumentId=0,this.signaturesContent=[],this.datesContent=[],this.notesContent=[],this.signaturesList=[],this.signaturesListSubstituted=[],this.currentPage=1,this.totalPage=1,this.stampLock=!1,this.currentAction=0,this.indexDocumentsList=0,this.documentsList=[],this.documentsListCount={},this.workingAreaWidth=0,this.workingAreaHeight=0,this.currentToobal="mainDocumentDetail",this.smartphoneMode=window.screen.width<=360,this.mobileMode=!!/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),this.mode="",this.scale=1,this.x=0,this.y=90}},{key:"getAppSession",value:function(){this.appSession="AD098AD9ADA0D9IAXKJ90AKS099S"}},{key:"initTemplate",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"adminMenu";document.getElementById(""+n).innerHTML="",this.portalHost=new AE(document.querySelector("#"+n),this.componentFactoryResolver,this.appRef,this.injector);var i=new _E(e,t);this.portalHost.attach(i)}},{key:"detachTemplate",value:function(){this.portalHost.detach()}}]),e}()).\u0275fac=function(e){return new(e||eE)(Ri(_l),Ri(Fa),Ri(Gc))},eE.\u0275prov=Re({token:eE,factory:eE.\u0275fac}),eE),EE=(($P=function(){function e(){A(this,e)}return m(e,[{key:"setAppSession",value:function(e){this.appSession=e}},{key:"getAppSession",value:function(){return this.appSession}},{key:"save",value:function(e,t){localStorage.setItem(e+"_"+this.getAppSession(),t)}},{key:"get",value:function(e){return localStorage.getItem(e+"_"+this.getAppSession())}},{key:"remove",value:function(e){localStorage.removeItem(e+"_"+this.getAppSession())}}]),e}()).\u0275fac=function(e){return new(e||$P)},$P.\u0275prov=Re({token:$P,factory:$P.\u0275fac,providedIn:"root"}),$P),DE=((JP=function(){function e(t,n,i,r,o,a){A(this,e),this.http=t,this.router=n,this.notificationService=i,this.signaturesService=r,this.localStorage=o,this.navCtrl=a,this.authMode="default",this.changeKey=!1,this.coreUrl="",this.user={},this.signatureRoles=[],this.authFailed=!1}return m(e,[{key:"getToken",value:function(){return this.localStorage.get("MaarchParapheurToken")}},{key:"setToken",value:function(e){this.localStorage.save("MaarchParapheurToken",e)}},{key:"getRefreshToken",value:function(){return this.localStorage.get("MaarchParapheurRefreshToken")}},{key:"setRefreshToken",value:function(e){this.localStorage.save("MaarchParapheurRefreshToken",e)}},{key:"clearTokens",value:function(){this.localStorage.remove("MaarchParapheurToken"),this.localStorage.remove("MaarchParapheurRefreshToken")}},{key:"refreshToken",value:function(){var e=this;return this.http.get("../rest/authenticate/token",{params:{refreshToken:this.getRefreshToken()}}).pipe(uw(function(t){e.setToken(t.token),e.updateUserInfo(t.token)}),Zb(function(t){return e.logout(),e.notificationService.error("lang.sessionExpired"),Ty(!1)}))}},{key:"logout",value:function(){var e=this;if(null===this.getRefreshToken())return this.clearTokens(),void this.navCtrl.navigateRoot("/login");this.http.get("../rest/authenticate/logout").pipe(uw(function(){e.clearTokens(),e.navCtrl.navigateRoot("/login")}),Zb(function(t){return e.notificationService.handleErrors(t),e.clearTokens(),e.navCtrl.navigateRoot("/login"),Ty(!1)})).subscribe()}},{key:"saveTokens",value:function(e,t){this.setToken(e),this.setRefreshToken(t)}},{key:"isAuth",value:function(){return null!==this.getToken()}},{key:"updateUserInfo",value:function(e){var t=this.user.picture,n=JSON.parse(atob(e.split(".")[1]));this.user=n.user,this.authMode=n.connection,this.user.picture=t}},{key:"updateUserInfoWithTokenRefresh",value:function(){var e=this;this.http.get("../rest/authenticate/token",{params:{refreshToken:this.getRefreshToken()}}).subscribe({next:function(t){e.setToken(t.token),e.updateUserInfo(e.getToken())},error:function(t){e.notificationService.handleErrors(t)}})}},{key:"setUser",value:function(e){this.user=e}},{key:"getSignatureMode",value:function(e){return"visa"===e?"stamp":e}},{key:"getWorkflowMode",value:function(e){return this.signatureRoles.filter(function(t){return t.id===e})[0].type}},{key:"setCachedUrl",value:function(e){this.localStorage.save("MaarchParapheurCacheUrl",e)}},{key:"getCachedUrl",value:function(){return this.localStorage.get("MaarchParapheurCacheUrl")}},{key:"cleanCachedUrl",value:function(){return this.localStorage.remove("MaarchParapheurCacheUrl")}}]),e}()).\u0275fac=function(e){return new(e||JP)(Ri(lb),Ri(jk),Ri(yE),Ri(PE),Ri(EE),Ri(aA))},JP.\u0275prov=Re({token:JP,factory:JP.\u0275fac,providedIn:"root"}),JP),OE=((KP=function(){function e(t,n,i,r,o){A(this,e),this.http=t,this.router=n,this.notificationService=i,this.signaturesService=r,this.authService=o,this.excludeUrls=["../rest/authenticate","../rest/authenticate/token","../rest/authenticationInformations","../rest/password","../rest/passwordRules","../rest/languages/fr","../rest/languages/en"],this.frontUrl=["../rest/documents/","../rest/users/","../rest/groups/","../rest/configurations/"],this.byPassHandleErrors=[{route:"/password",method:["PUT"]},{route:"/logout",method:["GET"]}],this.isRefreshing=!1,this.refreshTokenSubject=new Ab(null)}return m(e,[{key:"addAuthHeader",value:function(e){var t=this.authService.getToken();return e.clone({setHeaders:{Authorization:"Bearer "+t}})}},{key:"intercept",value:function(e,t){var n=this;return(this.excludeUrls.indexOf(e.url)>-1||e.url.indexOf("/password")>-1)&&-1===e.url.indexOf("/passwordRules")&&-1===e.method.indexOf("PUT")?t.handle(e):(e=this.addAuthHeader(e),t.handle(e).pipe(Zb(function(i){return n.byPassHandleErrors.filter(function(t){return e.url.indexOf(t.route)>-1&&t.method.indexOf(e.method)>-1}).length>0?t.handle(e):401===i.status?n.handle401Error(e,t):"Password expired : User must change his password"===i.error.errors?n.router.navigate(["/password-modification"]):("GET"===e.method&&n.frontUrl.forEach(function(t){if(e.url.indexOf(t)>-1)return"../rest/documents/"===t&&(n.signaturesService.mainDocumentId=null),r=new Ky({error:i.error,status:i.status,statusText:i.statusText,headers:i.headers,url:i.url}),Promise.reject(r)}),r=new Ky({error:i.error,status:i.status,statusText:i.statusText,headers:i.headers,url:i.url}),Promise.reject(r));var r})))}},{key:"handle401Error",value:function(e,t){var n=this;return this.isRefreshing?this.refreshTokenSubject.pipe(Ry(function(e){return null!=e}),Hb(1),Bb(function(){return e=n.addAuthHeader(e),t.handle(e)})):(this.isRefreshing=!0,this.refreshTokenSubject.next(null),this.authService.refreshToken().pipe(Bb(function(i){return n.isRefreshing=!1,n.refreshTokenSubject.next(i.token),e=n.addAuthHeader(e),t.handle(e)})))}}]),e}()).\u0275fac=function(e){return new(e||KP)(Ri(lb),Ri(jk),Ri(yE),Ri(PE),Ri(DE))},KP.\u0275prov=Re({token:KP,factory:KP.\u0275fac}),KP);function ME(e,t){if(1&e){var n=fs();ss(0,"div",2),ss(1,"div",3),ss(2,"button",4),On(),ss(3,"svg",5),us(4,"path",6),ls(),Mn(),ss(5,"span",7),Qs(6,"Presentation Mode"),ls(),ls(),ss(7,"button",8),On(),ss(8,"svg",5),us(9,"path",9),ls(),Mn(),ss(10,"span",10),Qs(11,"Open"),ls(),ls(),ss(12,"button",11),On(),ss(13,"svg",5),us(14,"path",12),ls(),Mn(),ss(15,"span",13),Qs(16,"Print"),ls(),ls(),ss(17,"button",14),On(),ss(18,"svg",5),us(19,"path",15),ls(),Mn(),ss(20,"span",16),Qs(21,"Download"),ls(),ls(),ss(22,"a",17),On(),ss(23,"svg",5),us(24,"path",18),ls(),Mn(),ss(25,"span",19),Qs(26,"Current View"),ls(),ls(),ss(27,"button",20),On(),ss(28,"svg",21),us(29,"path",22),ls(),Mn(),ss(30,"span",23),Qs(31,"Go to First Page"),ls(),ls(),ss(32,"button",24),ms("click",function(){return nn(n),ks().previousPage()}),On(),ss(33,"svg",21),us(34,"path",25),ls(),Mn(),ss(35,"span",26),Qs(36,"Go to Previous Page"),ls(),ls(),ss(37,"button",27),ms("click",function(){return nn(n),ks().nextPage()}),On(),ss(38,"svg",21),us(39,"path",28),ls(),Mn(),ss(40,"span",29),Qs(41,"Go to Next Page"),ls(),ls(),ss(42,"button",30),On(),ss(43,"svg",21),us(44,"path",31),ls(),Mn(),ss(45,"span",32),Qs(46,"Go to Last Page"),ls(),ls(),ss(47,"button",33),On(),ss(48,"svg",5),us(49,"path",34),ls(),Mn(),ss(50,"span",35),Qs(51,"Rotate Clockwise"),ls(),ls(),ss(52,"button",36),On(),ss(53,"svg",5),us(54,"path",37),ls(),Mn(),ss(55,"span",38),Qs(56,"Rotate Counterclockwise"),ls(),ls(),ss(57,"button",39),On(),ss(58,"svg",5),us(59,"path",40),ls(),Mn(),ss(60,"span",41),Qs(61,"Text Selection Tool"),ls(),ls(),ss(62,"button",42),On(),ss(63,"svg",5),us(64,"path",43),ls(),Mn(),ss(65,"span",44),Qs(66,"Hand Tool"),ls(),ls(),ss(67,"button",45),On(),ss(68,"svg",46),us(69,"path",47),ls(),Mn(),ss(70,"span",48),Qs(71,"Vertical Scrolling"),ls(),ls(),ss(72,"button",49),On(),ss(73,"svg",46),us(74,"path",50),ls(),Mn(),ss(75,"span",51),Qs(76,"Horizontal Scrolling"),ls(),ls(),ss(77,"button",52),On(),ss(78,"svg",46),us(79,"path",53),ls(),Mn(),ss(80,"span",54),Qs(81,"Wrapped Scrolling"),ls(),ls(),ss(82,"button",55),ms("click",function(){return nn(n),ks().onSpreadChange("off")}),On(),ss(83,"svg",56),us(84,"path",57),ls(),Mn(),ss(85,"span",58),Qs(86,"No Spreads"),ls(),ls(),ss(87,"button",59),ms("click",function(){return nn(n),ks().onSpreadChange("odd")}),On(),ss(88,"svg",46),us(89,"path",60),ls(),Mn(),ss(90,"span",61),Qs(91,"Odd Spreads"),ls(),ls(),ss(92,"button",62),ms("click",function(){return nn(n),ks().onSpreadChange("even")}),On(),ss(93,"svg",46),us(94,"path",63),ls(),Mn(),ss(95,"span",64),Qs(96,"Even Spreads"),ls(),ls(),ss(97,"button",65),On(),ss(98,"svg",66),us(99,"path",67),us(100,"path",68),us(101,"circle",69),ls(),Mn(),ss(102,"span",70),Qs(103,"Document Properties\u2026"),ls(),ls(),ls(),ls()}if(2&e){var i=ks();Ls("top",i.secondaryToolbarTop)("transform","scale("+i.mobileFriendlyZoomScale+")")("transform-origin","right top"),xo(2),Fs("invisible",!i.showPresentationModeButton),xo(5),Fs("invisible",!i.showOpenFileButton),xo(5),Fs("invisible",!i.showPrintButton),xo(5),Fs("invisible",!i.showDownloadButton),xo(5),Fs("invisible",!i.showBookmarkButton),xo(5),Fs("invisible",!i.showPagingButtons),xo(5),Fs("invisible",!i.showPagingButtons),os("disabled",i.disablePreviousPage),xo(5),Fs("invisible",!i.showPagingButtons),os("disabled",i.disableNextPage),xo(5),Fs("invisible",!i.showPagingButtons),xo(5),Fs("invisible",!i.showRotateButton),xo(5),Fs("invisible",!i.showRotateButton),xo(5),Fs("invisible",!i.showHandToolButton),xo(5),Fs("invisible",!i.showHandToolButton),xo(5),Fs("invisible",!i.showScrollingButton),xo(5),Fs("invisible",!i.showScrollingButton),xo(5),Fs("invisible",!i.showScrollingButton),xo(5),Fs("invisible",!i.showSpreadButton),xo(5),Fs("invisible",!i.showSpreadButton),xo(5),Fs("invisible",!i.showSpreadButton),xo(5),Fs("invisible",!i.showPropertiesButton)}}function TE(e,t){1&e&&Cs(0,0,["*ngTemplateOutlet","customSidebar ? customSidebar : defaultSidebar"])}function IE(e,t){if(1&e){var n=fs();ss(0,"div",2),ss(1,"div",3),us(2,"pdf-sidebar-toolbar"),ls(),ss(3,"pdf-sidebar-content",4),ms("thumbnailDrawn",function(e){return nn(n),ks().thumbnailDrawn.emit(e)}),ls(),us(4,"div",5),ls()}if(2&e){var i=ks();Ls("top",i.sidebarPositionTop),xo(1),Ls("display",i.hideSidebarToolbar?"none":""),xo(2),os("customThumbnail",i.customThumbnail)("hideSidebarToolbar",i.hideSidebarToolbar)}}var RE=["*"],LE=["root"],FE=["pdfSecondaryToolbarComponent"],BE=["pdfsidebar"];function VE(e,t){1&e&&us(0,"link",48)}function zE(e,t){1&e&&us(0,"pdf-dark-theme")}function NE(e,t){1&e&&us(0,"pdf-light-theme")}function HE(e,t){1&e&&Cs(0,0,["*ngTemplateOutlet","customFreeFloatingBar ? customFreeFloatingBar : defaultFreeFloatingBar"])}function jE(e,t){}function UE(e,t){if(1&e&&(ss(0,"div",3),hs(1,0),ls()),2&e){var n=ks(),i=is(4);Ls("transform","scale("+n.mobileFriendlyZoomScale+")")("transform-origin","left center")("left",n.findbarLeft)("top",n.findbarTop),Fs("invisible",!n.showFindButton),xo(1),os("ngTemplateOutlet",n.customFindbarButtons?n.customFindbarButtons:i)}}function WE(e,t){1&e&&(us(0,"pdf-find-input-area",4),us(1,"pdf-findbar-options-one-container"),us(2,"pdf-findbar-options-two-container"),us(3,"pdf-findbar-options-three-container"),us(4,"pdf-findbar-message-container")),2&e&&os("customFindbarInputArea",ks().customFindbarInputArea)}function GE(e,t){1&e&&(ss(0,"div",2),us(1,"pdf-search-input-field"),us(2,"pdf-find-previous"),us(3,"pdf-find-next"),ls())}var qE=["button"],YE="[_nghost-%COMP%]{margin-top:0}[_nghost-%COMP%]:focus{outline:0}button[_ngcontent-%COMP%]:focus, svg[_ngcontent-%COMP%]:focus{outline:0}",ZE=["button1"],QE=["button2"],XE="[_nghost-%COMP%]{margin-top:-1px}[_nghost-%COMP%]:focus{outline:0}button[_ngcontent-%COMP%]:focus, svg[_ngcontent-%COMP%]:focus{outline:0}",KE="button[_ngcontent-%COMP%]   svg[_ngcontent-%COMP%]{margin-top:-2px}[_nghost-%COMP%]:focus{outline:0}button[_ngcontent-%COMP%]:focus, svg[_ngcontent-%COMP%]:focus{outline:0}";function JE(e,t){1&e&&Cs(0,0,["*ngTemplateOutlet","customToolbar ? customToolbar : defaultToolbar"])}function $E(e,t){if(1&e&&(ss(0,"div",7),ss(1,"div",8),us(2,"pdf-toggle-sidebar",9),us(3,"pdf-find-button",10),us(4,"pdf-paging-area",11),ls(),us(5,"pdf-zoom-toolbar",12),ss(6,"div",13),us(7,"pdf-hand-tool",14),us(8,"pdf-select-tool",15),us(9,"pdf-rotate-page",16),us(10,"pdf-presentation-mode",17),us(11,"pdf-open-file",18),us(12,"pdf-print",19),us(13,"pdf-download",20),us(14,"pdf-bookmark",21),us(15,"pdf-toggle-secondary-toolbar",22),ls(),ls()),2&e){var n=ks();xo(2),os("showSidebarButton",n.showSidebarButton),xo(1),os("showFindButton",n.showFindButton)("textLayer",n.textLayer),xo(1),os("showPagingButtons",n.showPagingButtons),xo(1),os("showZoomButtons",n.showZoomButtons)("zoomLevels",n.zoomLevels),xo(2),os("showHandToolButton",n.showHandToolButton),xo(1),os("showSelectToolButton",n.showHandToolButton),xo(1),os("showRotateButton",n.showRotateButton),xo(1),os("showPresentationModeButton",n.showPresentationModeButton),xo(1),os("showOpenFileButton",n.showOpenFileButton),xo(1),os("showPrintButton",n.showPrintButton),xo(1),os("showDownloadButton",n.showDownloadButton),xo(1),os("showBookmarkButton",n.showBookmarkButton),xo(1),os("showSecondaryToolbarButton",n.showSecondaryToolbarButton)}}var eD=["sizeSelector"];function tD(e,t){if(1&e&&(ss(0,"option",5),Qs(1),ls()),2&e){var n=t.$implicit;os("id",n.id),$a("value",n.value)("data-l10n-id",n.dataL10nId)("data-l10n-args",n.dataL10nArgs),xo(1),Ks(" ",n.displayValue," ")}}var nD=["thumbnailViewTemplate"];function iD(e,t){1&e&&Cs(0,0,["*ngTemplateOutlet","customThumbnail ? customThumbnail : defaultThumbnail"])}function rD(e,t){1&e&&(ss(0,"a",8),ss(1,"div",9),us(2,"div",10),ls(),ls())}var oD="undefined"!=typeof window&&!!window.MSInputMethodContext&&!!document.documentMode,aD=/Edge\/\d./i.test(navigator.userAgent),sD="undefined"==typeof ReadableStream||void 0===Promise.allSettled,lD={cursorToolOnLoad:0,defaultUrl:"",defaultZoomValue:"",disableHistory:!1,disablePageLabels:!1,enablePrintAutoRotate:!1,enableWebGL:!1,eventBusDispatchToDOM:!1,externalLinkRel:"noopener noreferrer nofollow",externalLinkTarget:0,historyUpdateUrl:!1,imageResourcesPath:"./images/",maxCanvasPixels:16777216,pdfBugEnabled:!1,removePageBorders:!1,renderer:"canvas",renderInteractiveForms:!0,sidebarViewOnLoad:-1,scrollModeOnLoad:-1,spreadModeOnLoad:-1,textLayerMode:1,useOnlyCssZoom:!1,viewOnLoad:0,cMapPacked:!0,cMapUrl:function(){return"./"+lD.assetsFolder+"/cmaps/"},disableAutoFetch:!1,disableCreateObjectURL:!1,disableFontFace:!1,disableRange:!1,disableStream:!1,isEvalSupported:!0,maxImageSize:-1,pdfBug:!1,postMessageTransfers:!0,verbosity:1,workerPort:null,assetsFolder:"assets",workerSrc:function(){return oD||aD||sD?"./"+lD.assetsFolder+"/pdf.worker-es5.js":"./"+lD.assetsFolder+"/pdf.worker.js"}};window.pdfDefaultOptions?lD=window.pdfDefaultOptions:window.pdfDefaultOptions=lD;var uD={ERRORS:0,WARNINGS:1,INFOS:5};uD[uD.ERRORS]="ERRORS",uD[uD.WARNINGS]="WARNINGS",uD[uD.INFOS]="INFOS";var cD={FOUND:0,NOT_FOUND:1,WRAPPED:2,PENDING:3};cD[cD.FOUND]="FOUND",cD[cD.NOT_FOUND]="NOT_FOUND",cD[cD.WRAPPED]="WRAPPED",cD[cD.PENDING]="PENDING";var dD,hD,fD,pD=["toolbarViewer","numPages","pageNumber","scaleSelectContainer","customScaleOption","previous","next","zoomIn","zoomOut","viewFind","openFile","print","presentationMode","download","viewBookmark","secondaryToolbar","secondaryToolbarToggle","secondaryToolbarButtonContainer","secondaryPresentationMode","secondaryOpenFile","secondaryPrint","secondaryDownload","secondaryViewBookmark","firstPage","lastPage","pageRotateCw","pageRotateCcw","cursorSelectTool","cursorHandTool","scrollVertical","scrollHorizontal","scrollWrapped","spreadNone","spreadOdd","spreadEven","documentProperties","contextFirstPage","contextLastPage","contextPageRotateCw","contextPageRotateCcw","outerContainer","viewerContainer","sidebarToggle","viewThumbnail","viewOutline","viewAttachments","thumbnailView","outlineView","attachmentsView","outerContainer","sidebarResizer","findbar","viewFind","findInput","findInputMultiline","findHighlightAll","findMatchCase","findEntireWord","findMultipleSearchTexts","findIgnoreAccents","findMsg","findResultsCount","findPrevious","findNext","findFuzzy","passwordOverlay","passwordText","password","passwordSubmit","passwordCancel","documentPropertiesOverlay","documentPropertiesClose","fileNameField","fileSizeField","titleField","authorField","subjectField","keywordsField","creationDateField","modificationDateField","creatorField","producerField","versionField","pageCountField","pageSizeField","linearizedField","errorWrapper","errorMessage","errorClose","errorMoreInfo","errorShowMore","errorShowLess","scaleSelectContainer","viewAttachments","viewLayers","viewThumbnail","viewOutline"],gD=((fD=function(){function e(){A(this,e)}return m(e,[{key:"addMissingStandardWidgets",value:function(){var e=this;this.dummyComponentsContainer=document.getElementsByClassName("dummy-pdf-viewer-components")[0];var t=this.dummyComponentsContainer;if(t)for(var n=0;n<t.children.length;n++){var i=t.firstChild;i&&t.removeChild(i)}if(pD.forEach(function(t){if(e.needsDummyWidget(t)){var n=document.createElement("span");n.id=t,n.className="invisible dummy-component",e.dummyComponentsContainer.appendChild(n)}}),this.needsDummyWidget("scaleSelect")){var r=document.createElement("select");r.id="scaleSelect",r.className="invisible dummy-component",this.dummyComponentsContainer.appendChild(r)}}},{key:"needsDummyWidget",value:function(e){return!document.getElementById(e)}}]),e}()).\u0275fac=function(e){return new(e||fD)},fD.\u0275cmp=ft({type:fD,selectors:[["pdf-dummy-components"]],decls:1,vars:0,consts:[[1,"invisible","dummy-pdf-viewer-components"]],template:function(e,t){1&e&&us(0,"span",0)},encapsulation:2}),fD),vD=((hD=function e(){var t=this;A(this,e),this.onPDFJSInit=new W,this.pdfjsVersion=new MP(1),window.pdfjsLib&&window.pdfjsLib.version?this.pdfjsVersion.next(window.pdfjsLib.version):this.onPDFJSInit.subscribe(function(){t.pdfjsVersion.next(window.pdfjsLib.version)})}).\u0275prov=Re({token:hD,factory:hD.\u0275fac=function(e){return new(e||hD)},providedIn:"root"}),hD.ngInjectableDef=Le({factory:function(){return new hD},token:hD,providedIn:"root"}),hD),mD=((dD=function(){function e(t,n){var i=this;A(this,e),this.element=t,this.notificationService=n,this.showPresentationModeButton=!0,this.showOpenFileButton=!0,this.showPrintButton=!0,this.showDownloadButton=!0,this.showBookmarkButton=!0,this.showPagingButtons=!0,this.showRotateButton=!0,this.showHandToolButton=!0,this.showScrollingButton=!0,this.showSpreadButton=!0,this.showPropertiesButton=!0,this.spreadChange=new Fu,this.secondaryMenuIsEmpty=new Fu,this.disablePreviousPage=!0,this.disableNextPage=!0;var r=this.notificationService.onPDFJSInit.subscribe(function(){i.onPdfJsInit(),r.unsubscribe()})}return m(e,[{key:"onPdfJsInit",value:function(){var e=this,t=window.PDFViewerApplication;t.eventBus.on("pagechanging",function(){e.updateUIState()}),t.eventBus.on("pagerendered",function(){e.updateUIState()})}},{key:"updateUIState",value:function(){var e=this;setTimeout(function(){var t=window.PDFViewerApplication,n=t.pdfViewer.currentPageNumber,i=document.getElementById("previousPage");i&&(e.disablePreviousPage=Number(n)<=1,i.disabled=e.disablePreviousPage);var r=document.getElementById("nextPage");r&&(e.disableNextPage=n===t.pagesCount,r.disabled=e.disableNextPage)})}},{key:"onSpreadChange",value:function(e){this.spreadChange.emit(e)}},{key:"ngOnChanges",value:function(e){var t=this;setTimeout(function(){return t.checkVisibility()})}},{key:"onResize",value:function(){var e=this;setTimeout(function(){return e.checkVisibility()})}},{key:"ngAfterViewInit",value:function(){var e=this;setTimeout(function(){return e.checkVisibility()})}},{key:"ngOnInit",value:function(){var e=this;setTimeout(function(){return e.checkVisibility()})}},{key:"checkVisibility",value:function(){var e=0,t=this.element.nativeElement.children.item(0);if(t){var n=t.children.item(0);n&&n instanceof HTMLElement&&(e=this.checkVisibilityRecursively(n))}this.secondaryMenuIsEmpty.emit(0===e)}},{key:"checkVisibilityRecursively",value:function(e){if("none"===e.style.display)return 0;if(e.classList.contains("hidden"))return 0;if(e.classList.contains("invisible"))return 0;if("none"===window.getComputedStyle(e).display)return 0;if(e instanceof HTMLButtonElement||e instanceof HTMLAnchorElement)return 1;var t=0,n=e.children;if(n&&n.length)for(var i=0;i<n.length&&0===t;i++){var r=n.item(i);r&&r instanceof HTMLElement&&(t+=this.checkVisibilityRecursively(r))}return t}},{key:"previousPage",value:function(){window.PDFViewerApplication.eventBus.dispatch("previouspage")}},{key:"nextPage",value:function(){window.PDFViewerApplication.eventBus.dispatch("nextpage")}}]),e}()).\u0275fac=function(e){return new(e||dD)(rs(Cl),rs(vD))},dD.\u0275cmp=ft({type:dD,selectors:[["pdf-secondary-toolbar"]],hostBindings:function(e,t){1&e&&ms("resize",function(){return t.onResize()},!1,Ir)},inputs:{showPresentationModeButton:"showPresentationModeButton",showOpenFileButton:"showOpenFileButton",showPrintButton:"showPrintButton",showDownloadButton:"showDownloadButton",showBookmarkButton:"showBookmarkButton",showPagingButtons:"showPagingButtons",showRotateButton:"showRotateButton",showHandToolButton:"showHandToolButton",showScrollingButton:"showScrollingButton",showSpreadButton:"showSpreadButton",showPropertiesButton:"showPropertiesButton",customSecondaryToolbar:"customSecondaryToolbar",secondaryToolbarTop:"secondaryToolbarTop",mobileFriendlyZoomScale:"mobileFriendlyZoomScale"},outputs:{spreadChange:"spreadChange",secondaryMenuIsEmpty:"secondaryMenuIsEmpty"},features:[Mt],decls:3,vars:1,consts:[[3,"ngTemplateOutlet"],["defaultSecondaryToolbar",""],["id","secondaryToolbar",1,"secondaryToolbar","hidden","doorHangerRight"],["id","secondaryToolbarButtonContainer"],["type","button","id","secondaryPresentationMode","title","Switch to Presentation Mode","data-l10n-id","presentation_mode",1,"secondaryToolbarButton","visibleLargeView"],["viewBox","0 0 24 24",2,"width","22px","height","22px"],["fill","currentColor","d","M5,5H10V7H7V10H5V5M14,5H19V10H17V7H14V5M17,14H19V19H14V17H17V14M10,17V19H5V14H7V17H10Z"],["data-l10n-id","presentation_mode_label"],["type","button","id","secondaryOpenFile","title","Open File","data-l10n-id","open_file",1,"secondaryToolbarButton","visibleMediumView"],["fill","currentColor","d","M14,2L20,8V20A2,2 0 0,1 18,22H6A2,2 0 0,1 4,20V4A2,2 0 0,1 6,2H14M18,20V9H13V4H6V20H18M12,12L16,16H13.5V19H10.5V16H8L12,12Z"],["data-l10n-id","open_file_label"],["type","button","id","secondaryPrint","title","Print","data-l10n-id","print",1,"secondaryToolbarButton","visibleSmallView"],["fill","currentColor","d","M18,3H6V7H18M19,12A1,1 0 0,1 18,11A1,1 0 0,1 19,10A1,1 0 0,1 20,11A1,1 0 0,1 19,12M16,19H8V14H16M19,8H5A3,3 0 0,0 2,11V17H6V21H18V17H22V11A3,3 0 0,0 19,8Z"],["data-l10n-id","print_label"],["type","button","id","secondaryDownload","title","Download","data-l10n-id","download",1,"secondaryToolbarButton","visibleSmallView"],["fill","currentColor","d","M14,2L20,8V20A2,2 0 0,1 18,22H6A2,2 0 0,1 4,20V4A2,2 0 0,1 6,2H14M18,20V9H13V4H6V20H18M12,19L8,15H10.5V12H13.5V15H16L12,19Z"],["data-l10n-id","download_label"],["href","#","id","secondaryViewBookmark","title","Current view (copy or open in new window)","data-l10n-id","bookmark",1,"secondaryToolbarButton","bookmark","visibleTinyView"],["fill","currentColor","d","M17,18L12,15.82L7,18V5H17M17,3H7A2,2 0 0,0 5,5V21L12,18L19,21V5C19,3.89 18.1,3 17,3Z"],["data-l10n-id","bookmark_label"],["type","button","id","firstPage","title","Go to First Page","data-l10n-id","first_page",1,"secondaryToolbarButton","firstPage","visibleLargeView"],["viewBox","0 0 24 24",2,"width","24px","height","24px"],["fill","currentColor","d","M18.41,16.59L13.82,12L18.41,7.41L17,6L11,12L17,18L18.41,16.59M6,6H8V18H6V6Z"],["data-l10n-id","first_page_label"],["type","button","id","previousPage","title","Go to Previous Page","data-l10n-id","previous",1,"secondaryToolbarButton","previousPage","visibleTinyView",3,"disabled","click"],["fill","currentColor","d","M15.41,16.58L10.83,12L15.41,7.41L14,6L8,12L14,18L15.41,16.58Z"],["data-l10n-id","previous_label"],["type","button","id","nextPage","title","Go to Next Page","data-l10n-id","next",1,"secondaryToolbarButton","nextPage","visibleTinyView",3,"disabled","click"],["fill","currentColor","d","M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z"],["data-l10n-id","next_label"],["type","button","id","lastPage","title","Go to Last Page","data-l10n-id","last_page",1,"secondaryToolbarButton","lastPage","visibleLargeView"],["fill","currentColor","d","M5.59,7.41L10.18,12L5.59,16.59L7,18L13,12L7,6L5.59,7.41M16,6H18V18H16V6Z"],["data-l10n-id","last_page_label"],["type","button","id","pageRotateCw","title","Rotate Clockwise","data-l10n-id","page_rotate_cw",1,"secondaryToolbarButton","rotateCw","visibleXLView"],["fill","currentColor","d","M12 3C7.03 3 3 7.03 3 12S7.03 21 12 21C14 21 15.92 20.34 17.5 19.14L16.06 17.7C14.87 18.54 13.45 19 12 19C8.13 19 5 15.87 5 12S8.13 5 12 5 19 8.13 19 12H16L20 16L24 12H21C21 7.03 16.97 3 12 3"],["data-l10n-id","page_rotate_cw_label"],["type","button","id","pageRotateCcw","title","Rotate Counterclockwise","data-l10n-id","page_rotate_ccw",1,"secondaryToolbarButton","rotateCcw","visibleXLView"],["fill","currentColor","d","M12 3C7.03 3 3 7.03 3 12H0L4 16L8 12H5C5 8.13 8.13 5 12 5S19 8.13 19 12 15.87 19 12 19C10.55 19 9.13 18.54 7.94 17.7L6.5 19.14C8.08 20.34 10 21 12 21C16.97 21 21 16.97 21 12S16.97 3 12 3"],["data-l10n-id","page_rotate_ccw_label"],["type","button","id","cursorSelectTool","title","Enable Text Selection Tool","data-l10n-id","cursor_text_select_tool",1,"secondaryToolbarButton","toggled","visibleXXLView"],["fill","currentColor","d","M2 4C2 2.89 2.9 2 4 2H7V4H4V7H2V4M22 4V7H20V4H17V2H20C21.1 2 22 2.89 22 4M2 20V17H4V20H7V22H4C2.9 22 2 21.11 2 20M10 2H14V4H10V2M10 20H14V22H10V20M2 10H4V14H2V10M18.5 13C20.4 13 22 14.6 22 16.5C22 19.1 18.5 23 18.5 23C18.5 23 15 19.1 15 16.5C15 14.6 16.6 13 18.5 13M18.5 17.8C19.2 17.8 19.8 17.2 19.7 16.6C19.7 16 19.1 15.4 18.5 15.4C17.9 15.4 17.3 15.9 17.3 16.6C17.3 17.2 17.8 17.8 18.5 17.8M20 10H22V12.34C21.42 11.84 20.74 11.45 20 11.23V10Z"],["data-l10n-id","cursor_text_select_tool_label"],["type","button","id","cursorHandTool","title","Enable Hand Tool","data-l10n-id","cursor_hand_tool",1,"secondaryToolbarButton","visibleXXLView"],["fill","currentColor","d","M13,6V11H18V7.75L22.25,12L18,16.25V13H13V18H16.25L12,22.25L7.75,18H11V13H6V16.25L1.75,12L6,7.75V11H11V6H7.75L12,1.75L16.25,6H13Z"],["data-l10n-id","cursor_hand_tool_label"],["type","button","id","scrollVertical","title","Use Vertical Scrolling","data-l10n-id","scroll_vertical",1,"secondaryToolbarButton","scrollVertical","toggled"],[2,"width","24px","height","24px","margin-top","3px"],["fill","currentColor","d","M9.5 4c1 0 1.5.5 1.5 1.5v5c0 1-.5 1.5-1.5 1.5h-3c-1 0-1.5-.5-1.5-1.5v-5C5 4.5 5.5 4 6.5 4zM11 0v.5c0 1-.5 1.5-1.5 1.5h-3C5.5 2 5 1.5 5 .5V0h6zM11 16v-.5c0-1-.5-1.5-1.5-1.5h-3c-1 0-1.5.5-1.5 1.5v.5h6z"],["data-l10n-id","scroll_vertical_label"],["type","button","id","scrollHorizontal","title","Use Horizontal Scrolling","data-l10n-id","scroll_horizontal",1,"secondaryToolbarButton","scrollHorizontal"],["fill","currentColor","d","M0 4h1.5c1 0 1.5.5 1.5 1.5v5c0 1-.5 1.5-1.5 1.5H0zM9.5 4c1 0 1.5.5 1.5 1.5v5c0 1-.5 1.5-1.5 1.5h-3c-1 0-1.5-.5-1.5-1.5v-5C5 4.5 5.5 4 6.5 4zM16 4h-1.5c-1 0-1.5.5-1.5 1.5v5c0 1 .5 1.5 1.5 1.5H16z"],["data-l10n-id","scroll_horizontal_label"],["type","button","id","scrollWrapped","title","Use Wrapped Scrolling","data-l10n-id","scroll_wrapped",1,"secondaryToolbarButton","scrollWrapped"],["fill","currentColor","d","M5.5 4c1 0 1.5.5 1.5 1.5v5c0 1-.5 1.5-1.5 1.5h-3c-1 0-1.5-.5-1.5-1.5v-5C1 4.5 1.5 4 2.5 4zM7 0v.5C7 1.5 6.5 2 5.5 2h-3C1.5 2 1 1.5 1 .5V0h6zM7 16v-.5c0-1-.5-1.5-1.5-1.5h-3c-1 0-1.5.5-1.5 1.5v.5h6zM13.5 4c1 0 1.5.5 1.5 1.5v5c0 1-.5 1.5-1.5 1.5h-3c-1 0-1.5-.5-1.5-1.5v-5c0-1 .5-1.5 1.5-1.5zM15 0v.5c0 1-.5 1.5-1.5 1.5h-3C9.5 2 9 1.5 9 .5V0h6zM15 16v-.507c0-1-.5-1.5-1.5-1.5h-3C9.5 14 9 14.5 9 15.5v.5h6z"],["data-l10n-id","scroll_wrapped_label"],["type","button","id","spreadNone","title","Do not join page spreads","data-l10n-id","spread_none",1,"secondaryToolbarButton","spreadNone","toggled",3,"click"],["height","16","width","16"],["fill","currentColor","d","M6 3c-1 0-1.5.5-1.5 1.5v7c0 1 .5 1.5 1.5 1.5h4c1 0 1.5-.5 1.5-1.5v-7c0-1-.5-1.5-1.5-1.5z"],["data-l10n-id","spread_none_label"],["type","button","id","spreadOdd","title","Join page spreads starting with odd-numbered pages","data-l10n-id","spread_odd",1,"secondaryToolbarButton","spreadOdd",3,"click"],["fill","currentColor","d","M10.56 3.5C9.56 3.5 9 4 9 5v6.5c0 1 .5 1.5 1.5 1.5h4c1 0 1.5-.5 1.5-1.5V5c0-1-.5-1.5-1.5-1.5zm1.93 1.2c.8 0 1.4.2 1.8.64.5.4.7 1 .7 1.7 0 .5-.2 1-.5 1.44-.2.3-.6.6-1 .93l-.6.4c-.4.3-.6.4-.7.55-.1.1-.2.2-.3.4h3.2v1.27h-5c0-.5.1-1 .3-1.43.2-.49.7-1 1.5-1.54.7-.5 1.1-.8 1.3-1.02.3-.3.4-.7.4-1.05 0-.3-.1-.6-.3-.77-.2-.2-.4-.3-.7-.3-.4 0-.7.2-.9.5-.1.2-.1.5-.2.9h-1.4c0-.6.2-1.1.3-1.5.4-.7 1.1-1.1 2-1.1zM1.54 3.5C.54 3.5 0 4 0 5v6.5c0 1 .5 1.5 1.54 1.5h4c1 0 1.5-.5 1.5-1.5V5c0-1-.5-1.5-1.5-1.5zm1.8 1.125H4.5V12H3V6.9H1.3v-1c.5 0 .8 0 .97-.03.33-.07.53-.17.73-.37.1-.2.2-.3.25-.5.05-.2.05-.3.05-.3z"],["data-l10n-id","spread_odd_label"],["type","button","id","spreadEven","title","Join page spreads starting with even-numbered pages","data-l10n-id","spread_even",1,"secondaryToolbarButton","spreadEven",3,"click"],["fill","currentColor","d","M1.5 3.5C.5 3.5 0 4 0 5v6.5c0 1 .5 1.5 1.5 1.5h4c1 0 1.5-.5 1.5-1.5V5c0-1-.5-1.5-1.5-1.5zm2 1.2c.8 0 1.4.2 1.8.6.5.4.7 1 .7 1.7 0 .5-.2 1-.5 1.4-.2.3-.5.7-1 1l-.6.4c-.4.3-.6.4-.75.56-.15.14-.25.24-.35.44H6v1.3H1c0-.6.1-1.1.3-1.5.3-.6.7-1 1.5-1.6.7-.4 1.1-.8 1.28-1 .32-.3.42-.6.42-1 0-.3-.1-.6-.23-.8-.17-.2-.37-.3-.77-.3s-.7.1-.9.5c-.04.2-.1.5-.1.9H1.1c0-.6.1-1.1.3-1.5.4-.7 1.1-1.1 2.1-1.1zM10.54 3.54C9.5 3.54 9 4 9 5v6.5c0 1 .5 1.5 1.54 1.5h4c.96 0 1.46-.5 1.46-1.5V5c0-1-.5-1.46-1.5-1.46zm1.9.95c.7 0 1.3.2 1.7.5.4.4.6.8.6 1.4 0 .4-.1.8-.4 1.1-.2.2-.3.3-.5.4.1 0 .3.1.6.3.4.3.5.8.5 1.4 0 .6-.2 1.2-.6 1.6-.4.5-1.1.7-1.9.7-1 0-1.8-.3-2.2-1-.14-.29-.24-.69-.24-1.29h1.4c0 .3 0 .5.1.7.2.4.5.5 1 .5.3 0 .5-.1.7-.3.2-.2.3-.5.3-.8 0-.5-.2-.8-.6-.95-.2-.05-.5-.15-1-.15v-1c.5 0 .8-.1 1-.14.3-.1.5-.4.5-.9 0-.3-.1-.5-.2-.7-.2-.2-.4-.3-.7-.3-.3 0-.6.1-.75.3-.2.2-.2.5-.2.86h-1.34c0-.4.1-.7.19-1.1 0-.12.2-.32.4-.62.2-.2.4-.3.7-.4.3-.1.6-.1 1-.1z"],["data-l10n-id","spread_even_label"],["type","button","id","documentProperties","title","Document Properties\u2026","data-l10n-id","document_properties",1,"secondaryToolbarButton","documentProperties"],["viewBox","0 0 16 16",2,"width","16px","height","16px","margin-top","3px"],["fill","currentColor","d","M8 16a8 8 0 1 1 8-8 8.009 8.009 0 0 1-8 8zM8 2a6 6 0 1 0 6 6 6.006 6.006 0 0 0-6-6z"],["fill","currentColor","d","M8 7a1 1 0 0 0-1 1v3a1 1 0 0 0 2 0V8a1 1 0 0 0-1-1z"],["fill","currentColor","cx","8","cy","5","r","1.188"],["data-l10n-id","document_properties_label"]],template:function(e,t){if(1&e&&(hs(0,0),ns(1,ME,104,48,"ng-template",null,1,tc)),2&e){var n=is(2);os("ngTemplateOutlet",t.customSecondaryToolbar?t.customSecondaryToolbar:n)}},directives:[Oh],styles:["svg[_ngcontent-%COMP%]{position:absolute;display:inline-block;top:0;left:0}"]}),dD),yD={SELECT:0,HAND:1,ZOOM:2};yD[yD.SELECT]="SELECT",yD[yD.HAND]="HAND",yD[yD.ZOOM]="ZOOM";var bD,wD,_D,kD,xD,AD,CD,SD,PD,ED,DD,OD,MD,TD,ID,RD,LD,FD,BD,VD,zD,ND,HD,jD,UD,WD,GD,qD,YD,ZD,QD,XD,KD,JD,$D,eO,tO,nO,iO,rO,oO,aO,sO,lO,uO,cO,dO,hO,fO,pO=function(){function e(t){A(this,e),this._zone=t,this.startX=0,this.startY=0,this.initialPinchDistance=0,this.pinchScale=1,this.isMobile()&&this.initializePinchZoom()}return m(e,[{key:"isMobile",value:function(){return"ontouchstart"in document.documentElement}},{key:"onViewerTouchStart",value:function(e){if(this.initialPinchDistance=0,2===e.touches.length){var t=this.container.getBoundingClientRect();e.touches[0].pageX>=t.left&&e.touches[0].pageX<=t.right&&e.touches[0].pageY>=t.top&&e.touches[1].pageX>=t.left&&e.touches[1].pageX<=t.right&&e.touches[1].pageY>=t.top&&(this.startX=(e.touches[0].pageX+e.touches[1].pageX)/2,this.startY=(e.touches[0].pageY+e.touches[1].pageY)/2,this.initialPinchDistance=Math.hypot(e.touches[1].pageX-e.touches[0].pageX,e.touches[1].pageY-e.touches[0].pageY),e.preventDefault(),e.stopPropagation())}}},{key:"onViewerTouchMove",value:function(e){var t=window.PDFViewerApplicationOptions;if(!(this.initialPinchDistance<=0||2!==e.touches.length)){1!==this.pinchScale&&e.preventDefault();var n=Math.hypot(e.touches[1].pageX-e.touches[0].pageX,e.touches[1].pageY-e.touches[0].pageY),i=this.startX+this.container.scrollLeft,r=this.startY+this.container.scrollTop;this.pinchScale=n/this.initialPinchDistance;var o=Number(t.get("minZoom"));o||(o=.1),this.pinchScale<o&&(this.pinchScale=o);var a=Number(t.get("maxZoom"));a||(a=10),this.pinchScale>a&&(this.pinchScale=a),this.viewer.style.transform="scale(".concat(this.pinchScale,")"),this.viewer.style.transformOrigin="".concat(i,"px ").concat(r,"px"),e.preventDefault(),e.stopPropagation()}}},{key:"onViewerTouchEnd",value:function(e){var t=window.PDFViewerApplication;if(!(this.initialPinchDistance<=0)){this.viewer.style.transform="none",this.viewer.style.transformOrigin="unset",t.pdfViewer.currentScale*=this.pinchScale;var n=this.container.getBoundingClientRect(),i=this.startY-n.top;this.container.scrollLeft+=(this.startX-n.left)*(this.pinchScale-1),this.container.scrollTop+=i*(this.pinchScale-1),this.resetPinchZoomParams(),e.preventDefault(),e.stopPropagation()}}},{key:"resetPinchZoomParams",value:function(){this.startX=this.startY=this.initialPinchDistance=0,this.pinchScale=1}},{key:"initializePinchZoom",value:function(){var e=this;this.viewer=document.getElementById("viewer"),this.container=document.getElementById("viewerContainer"),this._zone.runOutsideAngular(function(){document.addEventListener("touchstart",e.onViewerTouchStart.bind(e)),document.addEventListener("touchmove",e.onViewerTouchMove.bind(e),{passive:!1}),document.addEventListener("touchend",e.onViewerTouchEnd.bind(e))})}},{key:"destroyPinchZoom",value:function(){this.isMobile()&&(document.removeEventListener("touchstart",this.onViewerTouchStart),document.removeEventListener("touchmove",this.onViewerTouchMove),document.removeEventListener("touchend",this.onViewerTouchEnd))}}]),e}(),gO=((fO=function(){function e(t,n){A(this,e),this.elementRef=t,this.ref=n,this.sidebarVisible=!0,this.showSidebarButton=!0,this.thumbnailDrawn=new Fu,this.hideSidebarToolbar=!0}return m(e,[{key:"showToolbarWhenNecessary",value:function(){var e=this.elementRef.nativeElement.querySelectorAll("button"),t=0;e.forEach(function(e){e.hidden||t++}),this.hideSidebarToolbar=t<=1,this.ref.markForCheck()}}]),e}()).\u0275fac=function(e){return new(e||fO)(rs(Cl),rs(Kl))},fO.\u0275cmp=ft({type:fO,selectors:[["pdf-sidebar"]],inputs:{sidebarVisible:"sidebarVisible",showSidebarButton:"showSidebarButton",sidebarPositionTop:"sidebarPositionTop",customSidebar:"customSidebar",customThumbnail:"customThumbnail"},outputs:{thumbnailDrawn:"thumbnailDrawn"},ngContentSelectors:RE,decls:4,vars:1,consts:[[4,"ngTemplateOutlet"],["defaultSidebar",""],["id","sidebarContainer"],["id","additionalSidebarContainer"],[3,"customThumbnail","hideSidebarToolbar","thumbnailDrawn"],["id","sidebarResizer",1,"hidden"]],template:function(e,t){if(1&e&&(As(),ss(0,"div"),ns(1,TE,1,0,"ng-content",0),ls(),ns(2,IE,5,6,"ng-template",null,1,tc)),2&e){var n=is(3);xo(1),os("ngTemplateOutlet",t.customSidebar?t.customSidebar:n)}},directives:function(){return[Oh,sM,aM]},styles:[""]}),fO),vO=((hO=function(){function e(t,n,i,r){A(this,e),this.ngZone=t,this.platformId=n,this.notificationService=i,this.location=r,this.customFindbarButtons=void 0,this.srcChange=new Fu,this.authorization=void 0,this.httpHeaders=void 0,this.contextMenuAllowed=!0,this.afterPrint=new Fu,this.beforePrint=new Fu,this.currentZoomFactor=new Fu,this.enablePrint=!0,this.delayFirstView=0,this.logLevel=uD.WARNINGS,this.enablePinchOnMobile=!1,this.minifiedJSLibraries=!0,this.primaryMenuVisible=!0,this.printResolution=null,this.rotationChange=new Fu,this.minHeight=void 0,this._height="100%",this.useBrowserLocale=!1,this.backgroundColor="#e8e8eb",this.filenameForDownload="document.pdf",this.ignoreKeyboard=!1,this.ignoreKeys=[],this.acceptKeys=[],this.imageResourcesPath="./"+lD.assetsFolder+"/images/",this.language=void 0,this.listenToURL=!1,this.nameddest=void 0,this.password=void 0,this._showSidebarButton=!0,this.viewerPositionTop="32px",this.showUnverifiedSignatures=!1,this.showSidebarOnLoad=void 0,this.sidebarVisible=void 0,this.sidebarVisibleChange=new Fu,this.showFindButton=void 0,this.showPagingButtons=!0,this.showZoomButtons=!0,this.showPresentationModeButton=!1,this.showOpenFileButton=!0,this.showPrintButton=!0,this.showDownloadButton=!0,this.showBookmarkButton=!0,this.theme="light",this.showSecondaryToolbarButton=!0,this.hideKebabMenuForSecondaryToolbar=!1,this.showRotateButton=!0,this.handTool=!0,this.handToolChange=new Fu,this.showHandToolButton=!1,this.showScrollingButton=!0,this.showSpreadButton=!0,this.showPropertiesButton=!0,this.showBorders=!0,this.spreadChange=new Fu,this.thumbnailDrawn=new Fu,this._page=void 0,this.pageChange=new Fu,this.pageLabel=void 0,this.pageLabelChange=new Fu,this.pagesLoaded=new Fu,this.pageRendered=new Fu,this.pdfDownloaded=new Fu,this.pdfLoaded=new Fu,this.pdfLoadingFailed=new Fu,this.textLayer=void 0,this.textlayerRendered=new Fu,this.textLayerRendered=new Fu,this.updateFindMatchesCount=new Fu,this.updateFindState=new Fu,this.zoom=void 0,this.zoomChange=new Fu,this.zoomLevels=["auto","page-actual","page-fit","page-width",.5,1,1.25,1.5,2,3,4],this.maxZoom=10,this.minZoom=.1,this._mobileFriendlyZoom="100%",this.mobileFriendlyZoomScale=1,this.toolbarPaddingTop="0px",this.toolbarWidth="100%",this.toolbarWidthInPixels=100,this.secondaryToolbarTop=void 0,this.findbarTop=void 0,this.findbarLeft=void 0,this._top=void 0,this.shuttingDown=!1}return m(e,[{key:"src",set:function(e){e instanceof Uint8Array?this._src=e.buffer:e instanceof Blob?this._src=URL.createObjectURL(e):"string"==typeof e?(this._src=e,e.length>980&&e.length%4==0&&/^[a-zA-Z\d\/+]+={0,2}$/.test(e)&&console.error("The URL looks like a base64 encoded string. If so, please use the attribute base64 instead of src")):this._src=e}},{key:"base64Src",set:function(e){for(var t=window.atob(e),n=t.length,i=new Uint8Array(n),r=0;r<n;r++)i[r]=t.charCodeAt(r);this.src=i.buffer}},{key:"height",get:function(){return this._height},set:function(e){var t=this;this.minHeight=void 0,e?this._height=e:this.height="100%",setTimeout(function(){t.checkHeight()})}},{key:"showSidebarButton",get:function(){return this._showSidebarButton},set:function(e){this._showSidebarButton=e;var t=1;/msie\s|trident\//i.test(window.navigator.userAgent)&&(t=Number((this._mobileFriendlyZoom||"100").replace("%",""))/100),this.findbarLeft=this._showSidebarButton?(68*t).toString()+"px":"0px"}},{key:"page",get:function(){return this._page},set:function(e){this._page=e?Number(e):void 0}},{key:"mobileFriendlyZoom",get:function(){return this._mobileFriendlyZoom},set:function(e){var t;"true"==e?e="150%":"false"!=e&&null!=e||(e="100%"),this._mobileFriendlyZoom=e,String(e).includes("%")||(e=100*Number(e)+"%"),t=Number((e||"100").replace("%",""))/100,this.mobileFriendlyZoomScale=t,this.toolbarWidth=(100/t).toString()+"%",this.toolbarPaddingTop=8*(t-1)+"px",this.findbarLeft=this.showSidebarButton?(68*t).toString()+"px":"0px",this.secondaryToolbarTop=(36+36*(t-1)).toString()+"px",this.findbarTop=(36+52*(t-1)).toString()+"px"}},{key:"mobileZoom",set:function(e){this.mobileFriendlyZoom=e}},{key:"sidebarPositionTop",get:function(){return this._top?this._top:this.mobileFriendlyZoom?this.mobileFriendlyZoom.endsWith("%")?(2+.29*Number(this.mobileFriendlyZoom.substring(0,this.mobileFriendlyZoom.length-1))).toString()+"px":this.mobileFriendlyZoom.endsWith("px")?this.mobileFriendlyZoom:(16+.16*Number(this.mobileFriendlyZoom)).toString()+"px":"32px"}},{key:"calcViewerPositionTop",value:function(){if(this._top)this.viewerPositionTop=this._top;else{if(this.mobileFriendlyZoom){if(this.mobileFriendlyZoom.endsWith("%")){var e=Number(this.mobileFriendlyZoom.substring(0,this.mobileFriendlyZoom.length-1));return void(this.viewerPositionTop=this.isPrimaryMenuVisible()?(1+.32*e).toString()+"px":"0")}if(this.mobileFriendlyZoom.endsWith("px"))return void(this.viewerPositionTop=this.mobileFriendlyZoom)}this.viewerPositionTop=this.isPrimaryMenuVisible()?"32px":"0"}}},{key:"iOSVersionRequiresES5",value:function(){var e=navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/);return null!=e&&parseInt(e[1],10)<13}},{key:"loadViewer",value:function(){var e=this;if(window["pdfjs-dist/build/pdf"]){var t=!!window.MSInputMethodContext&&!!document.documentMode,n=/Edge\/\d./i.test(navigator.userAgent),i=this.iOSVersionRequiresES5(),r="undefined"==typeof ReadableStream||void 0===Promise.allSettled,o=this.minifiedJSLibraries?".min.js":".js",a=document.createElement("script"),s=lD.assetsFolder;r&&console.log("Using the ES5 version of the PDF viewer."),a.src=this.location.normalize(t||n||i||r?s+"/viewer-es5"+o:s+"/viewer"+o),a.type="text/javascript",a.async=!0,document.getElementsByTagName("head")[0].appendChild(a)}else setTimeout(function(){return e.loadViewer()},25)}},{key:"ngOnInit",value:function(){if(this.onResize(),Qh(this.platformId)){if(!window["pdfjs-dist/build/pdf"]){var e=!!window.MSInputMethodContext&&!!document.documentMode,t=/Edge\/\d./i.test(navigator.userAgent),n="undefined"==typeof ReadableStream||void 0===Promise.allSettled,i=this.iOSVersionRequiresES5(),r=this.minifiedJSLibraries?".min.js":".js";if(this.minifiedJSLibraries&&!lD.workerSrc().endsWith(".min.js")){var o=lD.workerSrc();lD.workerSrc=function(){return o.replace(".js",".min.js")}}var a=lD.assetsFolder,s=document.createElement("script");s.src=this.location.normalize(e||t||i||n?a+"/pdf-es5"+r:a+"/pdf"+r),s.type="text/javascript",s.async=!0,document.getElementsByTagName("head")[0].appendChild(s)}window.webViewerLoad||this.loadViewer()}}},{key:"ngAfterViewInit",value:function(){var e=this;this.shuttingDown||(window.webViewerLoad?this.doInitPDFViewer():setTimeout(function(){return e.ngAfterViewInit()},50))}},{key:"assignTabindexes",value:function(){if(this.startTabindex){var e=this.root.nativeElement.cloneNode(!0);e.classList.add("offscreen"),this.showElementsRecursively(e),document.body.appendChild(e);var t=this.collectElementPositions(e,this.root.nativeElement,[]);document.body.removeChild(e);for(var n=t.sort(function(e,t){return e.y-t.y>15?1:t.y-e.y>15?-1:e.x-t.x}),i=0;i<n.length;i++)n[i].element.tabIndex=this.startTabindex+i}}},{key:"showElementsRecursively",value:function(e){if(e.classList.remove("hidden"),e.classList.remove("invisible"),e.classList.remove("hiddenXXLView"),e.classList.remove("hiddenXLView"),e.classList.remove("hiddenLargeView"),e.classList.remove("hiddenMediumView"),e.classList.remove("hiddenSmallView"),e.classList.remove("hiddenTinyView"),e.classList.remove("visibleXXLView"),e.classList.remove("visibleXLView"),e.classList.remove("visibleLargeView"),e.classList.remove("visibleMediumView"),e.classList.remove("visibleSmallView"),e.classList.remove("visibleTinyView"),!(e instanceof HTMLButtonElement||e instanceof HTMLAnchorElement||e instanceof HTMLInputElement||e instanceof HTMLSelectElement)&&e.childElementCount>0)for(var t=0;t<e.childElementCount;t++){var n=e.children.item(t);n&&this.showElementsRecursively(n)}}},{key:"collectElementPositions",value:function(e,t,n){if(e instanceof HTMLButtonElement||e instanceof HTMLAnchorElement||e instanceof HTMLInputElement||e instanceof HTMLSelectElement){var i=e.getBoundingClientRect(),r={element:t,x:Math.round(i.left),y:Math.round(i.top)};n.push(r)}else if(e.childElementCount>0)for(var o=0;o<e.childElementCount;o++){var a=e.children.item(o),s=t.children.item(o);a&&s&&(n=this.collectElementPositions(a,s,n))}return n}},{key:"doInitPDFViewer",value:function(){var t=this,n=document.querySelectorAll('link[type="application/l10n"]');if(0===n.length)document.querySelector('script[type="application/l10n"]')?this.useBrowserLocale&&console.error("Please set the attribute 'useBrowserLocale' to false if you provide the translations yourself in a script or link tag."):this.useBrowserLocale||(console.error("If you set the attribute 'useBrowserLocale' to false, you must provide the translations yourself in a script or link tag."),console.error("The easiest way to do this is to add them to the index.html."));else if(this.useBrowserLocale){var i=n[0].attributes.origin;i&&"ngx-extended-pdf-viewer"!==i.value&&console.error("Please set the attribute 'useBrowserLocale' to false if you provide the translations yourself in a script or link tag.")}window.addEventListener("afterprint",function(e){t.afterPrint.emit()}),window.addEventListener("beforeprint",function(e){t.beforePrint.emit()}),document.addEventListener("localized",function e(n){document.removeEventListener("localized",e),t.initTimeout=setTimeout(function(){t.shuttingDown||(t.afterLibraryInit(),t.openPDF(),t.assignTabindexes())},t.delayFirstView)}),e.ngxExtendedPdfViewerInitialized&&console.error("You're trying to open two instances of the PDF viewer. Most likely, this will result in errors."),document.addEventListener("webviewerloaded",function e(){t.overrideDefaultSettings(),document.removeEventListener("webviewerloaded",e),t.enablePinchOnMobile&&(t.pinchOnMobileSupport=new pO(t.ngZone))}),this.activateTextlayerIfNecessary(null),setTimeout(function(){if(!t.shuttingDown){t.primaryMenuVisible=!0,t.hideKebabMenuForSecondaryToolbar&&!t.showSecondaryToolbarButton&&(t.isPrimaryMenuVisible()||(t.primaryMenuVisible=!1)),t.calcViewerPositionTop(),t.dummyComponents.addMissingStandardWidgets(),window.webViewerLoad();var e=window.PDFViewerApplication;e.appConfig.defaultUrl="",e.appConfig.filenameForDownload=t.filenameForDownload;var n=window.PDFViewerApplicationOptions;n.set("locale",t.language),n.set("imageResourcesPath",t.imageResourcesPath),n.set("minZoom",t.minZoom),n.set("maxZoom",t.maxZoom),e.isViewerEmbedded=!0,e.printKeyDownListener&&window.addEventListener("keydown",e.printKeyDownListener,!0);var i=document.getElementById("printContainer");i&&document.getElementsByTagName("body")[0].appendChild(i)}},0)}},{key:"afterLibraryInit",value:function(){this.notificationService.onPDFJSInit.next()}},{key:"checkHeight",value:function(){var e=document.getElementsByClassName("zoom")[0];if(e&&0===e.clientHeight&&this._height.includes("%")){var t=window.innerHeight-e.getBoundingClientRect().top;t=t*Number(this._height.replace("%",""))/100,this.minHeight=t>100?t+"px":"100px"}}},{key:"onSpreadChange",value:function(e){this.spreadChange.emit(e)}},{key:"activateTextlayerIfNecessary",value:function(e){var t=this;void 0===this.textLayer?this.handTool?(e&&e.set("textLayerMode",this.showHandToolButton?1:0),this.showHandToolButton||((this.showFindButton||void 0===this.showFindButton)&&(this.ngZone.run(function(){t.showFindButton=!1}),this.logLevel>=uD.WARNINGS&&console.warn('Hiding the "find" button because the text layer of the PDF file is not rendered. Use [textLayer]="true" to enable the find button.')),this.showHandToolButton&&this.logLevel>=uD.WARNINGS&&(console.warn('Hiding the "hand tool / selection mode" menu because the text layer of the PDF file is not rendered. Use [textLayer]="true" to enable the the menu items.'),this.showHandToolButton=!1))):(e&&e.set("textLayerMode",1),this.textLayer=!0,void 0===this.showFindButton&&(this.showFindButton=!0,setTimeout(function(){var e=document.getElementById("viewFind");e&&e.classList.remove("invisible");var t=document.getElementById("findbar");t&&t.classList.remove("invisible")}))):this.textLayer?(e&&e.set("textLayerMode",1),this.textLayer=!0,void 0===this.showFindButton&&(this.showFindButton=!0,setTimeout(function(){var e=document.getElementById("viewFind");e&&e.classList.remove("invisible");var t=document.getElementById("findbar");t&&t.classList.remove("invisible")}))):(e&&e.set("textLayerMode",0),this.textLayer=!1,this.showFindButton&&this.logLevel>=uD.WARNINGS&&(console.warn('Hiding the "find" button because the text layer of the PDF file is not rendered. Use [textLayer]="true" to enable the find button.'),this.ngZone.run(function(){t.showFindButton=!1})),this.showHandToolButton&&this.logLevel>=uD.WARNINGS&&(console.warn('Hiding the "hand tool / selection mode" menu because the text layer of the PDF file is not rendered. Use [textLayer]="true" to enable the the menu items.'),this.showHandToolButton=!1))}},{key:"overrideDefaultSettings",value:function(){var e=window.PDFViewerApplicationOptions;for(var t in lD)e.set(t,lD[t]);e.set("disablePreferences",!0),this.setZoom(),e.set("ignoreKeyboard",this.ignoreKeyboard),e.set("ignoreKeys",this.ignoreKeys),e.set("acceptKeys",this.acceptKeys),this.activateTextlayerIfNecessary(e);var n=this.sidebarVisible;void 0===n&&(n=this.showSidebarOnLoad);var i=window.PDFViewerApplication;void 0!==n&&(i.sidebarViewOnLoad=n?1:0,i.appConfig&&(i.appConfig.sidebarViewOnLoad=n?1:0),e.set("sidebarViewOnLoad",this.sidebarVisible?1:0)),"even"===this.spread?(e.set("spreadModeOnLoad",2),i.pdfViewer&&(i.pdfViewer.spreadMode=2),this.onSpreadChange("even")):"odd"===this.spread?(e.set("spreadModeOnLoad",1),i.pdfViewer&&(i.pdfViewer.spreadMode=1),this.onSpreadChange("odd")):(e.set("spreadModeOnLoad",0),i.pdfViewer&&(i.pdfViewer.spreadMode=0),this.onSpreadChange("off")),this.printResolution&&e.set("printResolution",this.printResolution),!1===this.showBorders&&e.set("removePageBorders",!this.showBorders)}},{key:"openPDF",value:function(){var t=this;ServiceWorkerOptions.showUnverifiedSignatures=this.showUnverifiedSignatures;var n=window.PDFViewerApplication;n.enablePrint=this.enablePrint,e.ngxExtendedPdfViewerInitialized=!0,this.onResize(),this.listenToURL||(n.pdfLinkService.setHash=function(){}),this.initTimeout=null,this.selectCursorTool(),n.eventBus.on("textlayerrendered",function(e){t.textlayerRendered.emit(e),t.textLayerRendered.emit(e)}),n.eventBus.on("pagesloaded",function(e){if(t.pagesLoaded.emit(e),t.rotation){var i=Number(t.rotation);0!==i&&90!==i&&180!==i&&270!==i||(n.pdfViewer.pagesRotation=i)}else n.pdfViewer.pagesRotation=0;setTimeout(function(){t.shuttingDown||(t.nameddest?n.pdfLinkService.navigateTo(t.nameddest):t.page?n.page=Number(t.page):t.pageLabel&&(n.pdfViewer.currentPageLabel=t.pageLabel))}),t.setZoom()}),n.eventBus.on("pagerendered",function(e){t.ngZone.run(function(){t.pageRendered.emit(e)})}),n.eventBus.on("download",function(e){t.ngZone.run(function(){t.pdfDownloaded.emit(e)})}),n.eventBus.on("scalechanging",function(e){setTimeout(function(){t.ngZone.run(function(){t.currentZoomFactor.emit(e.scale);var n=t.root.nativeElement.querySelector("#scaleSelect"),i=t.zoom;n&&(i=n.value),"auto"!==i&&"page-fit"!==i&&"page-actual"!==i&&"page-width"!==i&&t.zoomChange.emit(100*e.scale)})})}),n.eventBus.on("rotationchanging",function(e){t.ngZone.run(function(){t.rotationChange.emit(e.pagesRotation)})}),n.eventBus.on("fileinputchange",function(e){t.ngZone.run(function(){var n=e.fileInput.value.replace("C:\\fakepath\\","");t.srcChange.emit(n)})}),n.eventBus.on("cursortoolchanged",function(e){t.ngZone.run(function(){t.handToolChange.emit(e.tool===yD.HAND)})}),n.eventBus.on("sidebarviewchanged",function(e){t.ngZone.run(function(){t.sidebarVisibleChange.emit(e.view>0),t.sidebarComponent&&t.sidebarComponent.showToolbarWhenNecessary()})});var i=function(){t.ngZone.run(function(){t.sidebarComponent&&t.sidebarComponent.showToolbarWhenNecessary()})};if(n.eventBus.on("outlineloaded",i),n.eventBus.on("attachmentsloaded",i),n.eventBus.on("layersloaded",i),n.eventBus.on("updatefindcontrolstate",function(e){t.updateFindMatchesCount&&(e.state===cD.NOT_FOUND?t.updateFindMatchesCount.emit({current:0,total:0}):e.matchesCount.total&&t.updateFindMatchesCount.emit(e.matchesCount)),t.updateFindState&&t.updateFindState.emit(e.state)}),n.eventBus.on("updatefindmatchescount",function(e){t.updateFindMatchesCount&&e.matchesCount.total&&t.updateFindMatchesCount.emit(e.matchesCount)}),n.eventBus.on("pagechanging",function(e){t.shuttingDown||t.ngZone.run(function(){var e=n.pdfViewer.currentPageNumber,i=n.pdfViewer.currentPageLabel;e!==t.page&&t.pageChange.emit(e),i!==t.pageLabel&&t.pageLabelChange.emit(i)})}),this.checkHeight(),this._src){var r={password:this.password,verbosity:this.logLevel};this._src.range&&(r.range=this._src.range),this.httpHeaders&&(r.httpHeaders=this.httpHeaders),this.authorization&&(r.withCredentials=!0,r.httpHeaders?r.httpHeaders.Authorization||(r.httpHeaders.Authorization=this.authorization):r.httpHeaders={Authorization:this.authorization}),n.onError=function(e){return t.pdfLoadingFailed.emit(e)},n.open(this._src,r).then(function(){return t.pdfLoaded.emit({pagesCount:n.pagesCount})})}setTimeout(function(){t.shuttingDown||t.page&&(n.page=Number(t.page))},100)}},{key:"selectCursorTool",value:function(){window.PDFViewerApplication.eventBus.dispatch("switchcursortool",{tool:this.handTool?1:0})}},{key:"ngOnDestroy",value:function(){var t=window.PDFViewerApplication;if(this.shuttingDown=!0,e.ngxExtendedPdfViewerInitialized=!1,this.initTimeout&&(clearTimeout(this.initTimeout),this.initTimeout=void 0),t){this.pinchOnMobileSupport&&(this.pinchOnMobileSupport.destroyPinchZoom(),this.pinchOnMobileSupport=void 0),t.cleanup(),t.close(),t.printKeyDownListener&&removeEventListener("keydown",t.printKeyDownListener,!0),t._boundEvents&&t.unbindWindowEvents();var n=t.eventBus;if(n)for(var i in t.unbindEvents(),n._listeners)if(n._listeners[i]){for(var r=n._listeners[i],o=0;o<r.length;o++)r[o]=void 0;n._listeners[i]=void 0}t.eventBus=null}var a=document.getElementsByTagName("body");if(a[0])for(var s=a[0].children,l=s.length-1;l>=0;l--){var u=s.item(l);(u&&"printContainer"===u.id||u&&"fileInput"===u.id)&&a[0].removeChild(u)}}},{key:"isPrimaryMenuVisible",value:function(){return!!(this.showBookmarkButton||this.showDownloadButton||this.showFindButton||this.showOpenFileButton||this.showPagingButtons||this.showPresentationModeButton||this.showPrintButton||this.showPropertiesButton||this.showSidebarButton||this.showZoomButtons)}},{key:"ngOnChanges",value:function(t){var n=this,i=window.PDFViewerApplication,r=window.PDFViewerApplicationOptions;if(e.ngxExtendedPdfViewerInitialized){if(("src"in t||"base64Src"in t)&&this._src){this.overrideDefaultSettings();var o={password:this.password,verbosity:this.logLevel};this._src.range&&(o.range=this._src.range),this.httpHeaders&&(o.httpHeaders=this.httpHeaders),this.authorization&&(o.withCredentials=!0,o.httpHeaders?o.httpHeaders.Authorization||(o.httpHeaders.Authorization=this.authorization):o.httpHeaders={Authorization:this.authorization}),i.open(this._src,o).then(function(){return n.pdfLoaded.emit({pagesCount:i.pagesCount})},function(e){return n.pdfLoadingFailed.emit(e)})}if("zoom"in t&&this.setZoom(),"maxZoom"in t&&r.set("maxZoom",this.maxZoom),"minZoom"in t&&r.set("minZoom",this.minZoom),"handTool"in t&&this.selectCursorTool(),"page"in t&&this.page&&this.page!=i.page&&(i.page=this.page),"pageLabel"in t&&this.pageLabel&&this.pageLabel!==i.pdfViewer.currentPageLabel&&(i.pdfViewer.currentPageLabel=this.pageLabel),"rotation"in t)if(this.rotation){var a=Number(this.rotation);0!==a&&90!==a&&180!==a&&270!==a||(i.pdfViewer.pagesRotation=a)}else i.pdfViewer.pagesRotation=0;"sidebarVisible"in t&&(this.sidebarVisible?i.pdfSidebar.open():i.pdfSidebar.close()),"filenameForDownload"in t&&(i.appConfig.filenameForDownload=this.filenameForDownload),"nameddest"in t&&this.nameddest&&i.pdfLinkService.navigateTo(this.nameddest),"spread"in t&&("even"===this.spread?(i.spreadModeOnLoad=2,i.pdfViewer.spreadMode=2,this.onSpreadChange("even")):"odd"===this.spread?(i.spreadModeOnLoad=1,i.pdfViewer.spreadMode=1,this.onSpreadChange("odd")):(i.spreadModeOnLoad=0,i.pdfViewer.spreadMode=0,this.onSpreadChange("off"))),"enablePinchOnMobile"in t&&(t.enablePinchOnMobile.isFirstChange()||t.enablePinchOnMobile.currentValue!==t.enablePinchOnMobile.previousValue&&(this.enablePinchOnMobile?this.pinchOnMobileSupport=new pO(this.ngZone):this.pinchOnMobileSupport&&(this.pinchOnMobileSupport.destroyPinchZoom(),this.pinchOnMobileSupport=void 0))),this.primaryMenuVisible=!0,this.showSecondaryToolbarButton&&!this.hideKebabMenuForSecondaryToolbar||this.isPrimaryMenuVisible()||(this.primaryMenuVisible=!1),this.calcViewerPositionTop()}if(this.onResize(),"printResolution"in t&&r&&r.set("printResolution",this.printResolution),"ignoreKeyboard"in t&&r&&this.overrideDefaultSettings(),"ignoreKeys"in t&&r&&this.overrideDefaultSettings(),"acceptKeys"in t&&r&&this.overrideDefaultSettings(),"showBorders"in t&&!t.showBorders.isFirstChange()&&r){this.overrideDefaultSettings();var s=document.getElementById("viewer");this.showBorders?s.classList.remove("removePageBorders"):s.classList.add("removePageBorders"),i.pdfViewer&&(i.pdfViewer.removePageBorders=!this.showBorders);var l={source:s,scale:(100|Number(this.zoom))/100,presetValue:this.zoom};i.eventBus.dispatch("scalechanging",l)}"showUnverifiedSignatures"in t&&i&&i.pdfDocument&&i.pdfDocument._transport.messageHandler.send("showUnverifiedSignatures",this.showUnverifiedSignatures),"enablePrint"in t&&(t.enablePrint.isFirstChange()||(i.enablePrint=this.enablePrint)),("customFindbar"in t&&!t.customFindbar.isFirstChange()||"customFindbarButtons"in t&&!t.customFindbarButtons.isFirstChange()||"customFindbarInputArea"in t&&!t.customFindbarInputArea.isFirstChange()||"customToolbar"in t&&!t.customToolbar.isFirstChange())&&this.dummyComponents&&this.dummyComponents.addMissingStandardWidgets()}},{key:"setZoom",value:function(){var e=this.zoom;String(e).endsWith("%")?e=Number(String(e).replace("%",""))/100:isNaN(Number(e))||(e=Number(e)/100),e||(e="auto");var t=window.PDFViewerApplication;t&&window.PDFViewerApplicationOptions.set("defaultZoomValue",e),t.pdfViewer&&(t.pdfViewer.currentScaleValue=e)}},{key:"onResize",value:function(){var e=document.getElementsByClassName("html");if(e&&e.length>0){var t=document.getElementById("outerContainer");t&&(this.toolbarWidthInPixels=t.clientWidth,this.secondaryToolbarComponent&&this.secondaryToolbarComponent.checkVisibility())}}},{key:"onContextMenu",value:function(){return this.contextMenuAllowed}},{key:"onSecondaryMenuIsEmpty",value:function(e){this.hideKebabMenuForSecondaryToolbar=e}}]),e}()).\u0275fac=function(e){return new(e||hO)(rs(Ac),rs(uc),rs(vD),rs(Cd))},hO.\u0275cmp=ft({type:hO,selectors:[["ngx-extended-pdf-viewer"]],viewQuery:function(e,t){var n;1&e&&(Qu(gD,1),Qu(LE,1),Qu(FE,1),Qu(BE,1)),2&e&&(Zu(n=Ku())&&(t.dummyComponents=n.first),Zu(n=Ku())&&(t.root=n.first),Zu(n=Ku())&&(t.secondaryToolbarComponent=n.first),Zu(n=Ku())&&(t.sidebarComponent=n.first))},hostBindings:function(e,t){1&e&&ms("contextmenu",function(){return t.onContextMenu()})},inputs:{customFindbarButtons:"customFindbarButtons",authorization:"authorization",httpHeaders:"httpHeaders",contextMenuAllowed:"contextMenuAllowed",enablePrint:"enablePrint",delayFirstView:"delayFirstView",logLevel:"logLevel",enablePinchOnMobile:"enablePinchOnMobile",minifiedJSLibraries:"minifiedJSLibraries",printResolution:"printResolution",useBrowserLocale:"useBrowserLocale",backgroundColor:"backgroundColor",filenameForDownload:"filenameForDownload",ignoreKeyboard:"ignoreKeyboard",ignoreKeys:"ignoreKeys",acceptKeys:"acceptKeys",imageResourcesPath:"imageResourcesPath",language:"language",listenToURL:"listenToURL",nameddest:"nameddest",password:"password",showUnverifiedSignatures:"showUnverifiedSignatures",showSidebarOnLoad:"showSidebarOnLoad",sidebarVisible:"sidebarVisible",showFindButton:"showFindButton",showPagingButtons:"showPagingButtons",showZoomButtons:"showZoomButtons",showPresentationModeButton:"showPresentationModeButton",showOpenFileButton:"showOpenFileButton",showPrintButton:"showPrintButton",showDownloadButton:"showDownloadButton",showBookmarkButton:"showBookmarkButton",theme:"theme",showSecondaryToolbarButton:"showSecondaryToolbarButton",showRotateButton:"showRotateButton",handTool:"handTool",showHandToolButton:"showHandToolButton",showScrollingButton:"showScrollingButton",showSpreadButton:"showSpreadButton",showPropertiesButton:"showPropertiesButton",showBorders:"showBorders",pageLabel:"pageLabel",textLayer:"textLayer",zoom:"zoom",zoomLevels:"zoomLevels",maxZoom:"maxZoom",minZoom:"minZoom",_mobileFriendlyZoom:"_mobileFriendlyZoom",src:"src",base64Src:"base64Src",height:"height",showSidebarButton:"showSidebarButton",page:"page",mobileFriendlyZoom:"mobileFriendlyZoom",mobileZoom:"mobileZoom",customFindbarInputArea:"customFindbarInputArea",customToolbar:"customToolbar",customFindbar:"customFindbar",customSecondaryToolbar:"customSecondaryToolbar",customSidebar:"customSidebar",customThumbnail:"customThumbnail",customFreeFloatingBar:"customFreeFloatingBar",rotation:"rotation",startTabindex:"startTabindex",spread:"spread"},outputs:{srcChange:"srcChange",afterPrint:"afterPrint",beforePrint:"beforePrint",currentZoomFactor:"currentZoomFactor",rotationChange:"rotationChange",sidebarVisibleChange:"sidebarVisibleChange",handToolChange:"handToolChange",spreadChange:"spreadChange",thumbnailDrawn:"thumbnailDrawn",pageChange:"pageChange",pageLabelChange:"pageLabelChange",pagesLoaded:"pagesLoaded",pageRendered:"pageRendered",pdfDownloaded:"pdfDownloaded",pdfLoaded:"pdfLoaded",pdfLoadingFailed:"pdfLoadingFailed",textlayerRendered:"textlayerRendered",textLayerRendered:"textLayerRendered",updateFindMatchesCount:"updateFindMatchesCount",updateFindState:"updateFindState",zoomChange:"zoomChange"},features:[Mt],ngContentSelectors:RE,decls:66,vars:60,consts:[["rel","resource","type","application/l10n","href","assets/locale/locale.properties","origin","ngx-extended-pdf-viewer",4,"ngIf"],[4,"ngIf"],[3,"zoom","width"],[1,"zoom"],["root",""],[1,"html"],[1,"loadingInProgress","body"],["id","outerContainer",3,"resize"],[1,"free-floating-bar"],[4,"ngTemplateOutlet"],[3,"sidebarPositionTop","sidebarVisible","showSidebarButton","customSidebar","customThumbnail","thumbnailDrawn"],["pdfsidebar",""],["id","mainContainer"],[3,"customToolbar","mobileFriendlyZoomScale","primaryMenuVisible","showBookmarkButton","showDownloadButton","showFindButton","showHandToolButton","showOpenFileButton","showPrintButton","showPagingButtons","showPresentationModeButton","showRotateButton","showSecondaryToolbarButton","showSidebarButton","showZoomButtons","textLayer","toolbarPaddingTop","toolbarWidth","zoomLevels"],[3,"customSecondaryToolbar","secondaryToolbarTop","mobileFriendlyZoomScale","showPresentationModeButton","showOpenFileButton","showPrintButton","showDownloadButton","showBookmarkButton","showPagingButtons","showRotateButton","showHandToolButton","showScrollingButton","showSpreadButton","showPropertiesButton","spreadChange","secondaryMenuIsEmpty"],["pdfSecondaryToolbarComponent",""],[3,"findbarLeft","findbarTop","mobileFriendlyZoomScale","showFindButton","customFindbarInputArea","customFindbarButtons"],["id","viewerContainer"],["id","viewer",1,"pdfViewer"],["id","errorWrapper","hidden","true"],["id","errorMessageLeft"],["id","errorMessage"],["type","button","id","errorShowMore","data-l10n-id","error_more_info"],["type","button","id","errorShowLess","data-l10n-id","error_less_info","hidden","true"],["id","errorMessageRight"],["type","button","id","errorClose","data-l10n-id","error_close"],[1,"clearBoth"],["id","errorMoreInfo","hidden","true","readonly","readonly"],["id","overlayContainer",1,"hidden"],["id","passwordOverlay",1,"container","hidden"],[1,"dialog"],[1,"row"],["id","passwordText","data-l10n-id","password_label"],["id","password",1,"toolbarField"],[1,"buttonRow"],["type","button","id","passwordCancel",1,"overlayButton"],["data-l10n-id","password_cancel"],["type","button","id","passwordSubmit",1,"overlayButton"],["data-l10n-id","password_ok"],["id","documentPropertiesOverlay",1,"container","hidden"],["id","printServiceOverlay",1,"container","hidden"],["data-l10n-id","print_progress_message"],["value","0","max","100"],["data-l10n-id","print_progress_percent","data-l10n-args",'{ "progress": 0 }',1,"relative-progress"],["type","button","id","printCancel",1,"overlayButton"],["data-l10n-id","print_progress_close"],["id","printContainer"],["defaultFreeFloatingBar",""],["rel","resource","type","application/l10n","href","assets/locale/locale.properties","origin","ngx-extended-pdf-viewer"]],template:function(e,t){if(1&e&&(As(),ns(0,VE,1,0,"link",0),ns(1,zE,1,0,"pdf-dark-theme",1),ns(2,NE,1,0,"pdf-light-theme",1),us(3,"pdf-dynamic-css",2),ss(4,"div",3,4),ss(6,"div",5),ss(7,"div",6),ss(8,"div",7),ms("resize",function(){return t.onResize()},!1,Ir),ss(9,"div",8),ns(10,HE,1,0,"ng-content",9),ls(),ss(11,"pdf-sidebar",10,11),ms("thumbnailDrawn",function(e){return t.thumbnailDrawn.emit(e)}),ls(),ss(13,"div",12),us(14,"pdf-dummy-components"),us(15,"pdf-toolbar",13),ss(16,"pdf-secondary-toolbar",14,15),ms("spreadChange",function(e){return t.onSpreadChange(e)})("secondaryMenuIsEmpty",function(e){return t.onSecondaryMenuIsEmpty(e)}),ls(),us(18,"pdf-findbar",16),us(19,"pdf-context-menu"),ss(20,"div",17),us(21,"div",18),ls(),ss(22,"div",19),ss(23,"div",20),us(24,"span",21),ss(25,"button",22),Qs(26," More Information "),ls(),ss(27,"button",23),Qs(28," Less Information "),ls(),ls(),ss(29,"div",24),ss(30,"button",25),Qs(31,"Close"),ls(),ls(),us(32,"div",26),us(33,"textarea",27),ls(),ls(),ss(34,"div",28),ss(35,"div",29),ss(36,"div",30),ss(37,"div",31),ss(38,"p",32),Qs(39," Enter the password to open this PDF file: "),ls(),ls(),ss(40,"div",31),us(41,"input",33),ls(),ss(42,"div",34),ss(43,"button",35),ss(44,"span",36),Qs(45,"Cancel"),ls(),ls(),ss(46,"button",37),ss(47,"span",38),Qs(48,"OK"),ls(),ls(),ls(),ls(),ls(),us(49,"pdf-document-properties-overlay",39),ss(50,"div",40),ss(51,"div",30),ss(52,"div",31),ss(53,"span",41),Qs(54,"Preparing document for printing\u2026"),ls(),ls(),ss(55,"div",31),us(56,"progress",42),ss(57,"span",43),Qs(58,"0%"),ls(),ls(),ss(59,"div",34),ss(60,"button",44),ss(61,"span",45),Qs(62,"Cancel"),ls(),ls(),ls(),ls(),ls(),ls(),ls(),us(63,"div",46),ls(),ls(),ls(),ns(64,jE,0,0,"ng-template",null,47,tc)),2&e){var n=is(65);os("ngIf",t.useBrowserLocale),xo(1),os("ngIf","dark"===t.theme),xo(1),os("ngIf","light"===t.theme),xo(1),os("zoom",t.mobileFriendlyZoomScale)("width",t.toolbarWidthInPixels),xo(1),Ls("height",t.height)("min-height",t.minHeight),xo(3),Ls("background-color",t.backgroundColor),xo(3),os("ngTemplateOutlet",t.customFreeFloatingBar?t.customFreeFloatingBar:n),xo(1),os("sidebarPositionTop",t.sidebarPositionTop)("sidebarVisible",t.sidebarVisible)("showSidebarButton",t.showSidebarButton)("customSidebar",t.customSidebar)("customThumbnail",t.customThumbnail),xo(4),os("customToolbar",t.customToolbar)("mobileFriendlyZoomScale",t.mobileFriendlyZoomScale)("primaryMenuVisible",t.primaryMenuVisible)("showBookmarkButton",t.showBookmarkButton)("showDownloadButton",t.showDownloadButton)("showFindButton",t.showFindButton)("showHandToolButton",t.showHandToolButton)("showOpenFileButton",t.showOpenFileButton)("showPrintButton",t.showPrintButton&&t.enablePrint)("showPagingButtons",t.showPagingButtons)("showPresentationModeButton",t.showPresentationModeButton)("showRotateButton",t.showRotateButton)("showSecondaryToolbarButton",t.showSecondaryToolbarButton&&!t.hideKebabMenuForSecondaryToolbar)("showSidebarButton",t.showSidebarButton)("showZoomButtons",t.showZoomButtons)("textLayer",t.textLayer)("toolbarPaddingTop",t.toolbarPaddingTop)("toolbarWidth",t.toolbarWidth)("zoomLevels",t.zoomLevels),xo(1),os("customSecondaryToolbar",t.customSecondaryToolbar)("secondaryToolbarTop",t.secondaryToolbarTop)("mobileFriendlyZoomScale",t.mobileFriendlyZoomScale)("showPresentationModeButton",t.showPresentationModeButton)("showOpenFileButton",t.showOpenFileButton)("showPrintButton",t.showPrintButton&&t.enablePrint)("showDownloadButton",t.showDownloadButton)("showBookmarkButton",t.showBookmarkButton)("showPagingButtons",t.showPagingButtons)("showRotateButton",t.showRotateButton)("showHandToolButton",t.showHandToolButton)("showScrollingButton",t.showScrollingButton)("showSpreadButton",t.showSpreadButton)("showPropertiesButton",t.showPropertiesButton),xo(2),os("findbarLeft",t.findbarLeft)("findbarTop",t.findbarTop)("mobileFriendlyZoomScale",t.mobileFriendlyZoomScale)("showFindButton",t.showFindButton)("customFindbarInputArea",t.customFindbarInputArea)("customFindbarButtons",t.customFindbarButtons),xo(2),Ls("top",t.viewerPositionTop),xo(1),Ls("background-color",t.backgroundColor)}},directives:function(){return[mh,oM,Oh,gO,gD,$O,mD,xO,wO,_O,uM,lM]},encapsulation:2,changeDetection:0}),hO.ngxExtendedPdfViewerInitialized=!1,hO),mO=((dO=function(){function e(){A(this,e)}return m(e,[{key:"findMultiple",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t=Object.assign({},t,{findMultipleSearchTexts:!0});var n=e.join("\n")+"\n";return this.find(n,t)}},{key:"find",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(vO.ngxExtendedPdfViewerInitialized){var n=document.getElementById("findHighlightAll");n&&(n.checked=t.highlightAll||!1);var i=document.getElementById("findMatchCase");i&&(i.checked=t.matchCase||!1);var r=document.getElementById("findEntireWord");r&&(r.checked=t.wholeWords||!1);var o=document.getElementById("findIgnoreAccents");o&&(o.checked=t.ignoreAccents||!1);var a=t.findMultipleSearchTexts||e.includes("\n")||!1,s=document.getElementById("findMultipleSearchTexts");s&&(s.checked=a);var l=document.getElementById("individualWordsMode");l&&(l.checked=!1);var u=document.getElementById("findFuzzy");u&&(u.checked=t.fuzzySearch||!1);var c=a?document.getElementById("findInputMultiline"):document.getElementById("findInput");return c?(c instanceof HTMLTextAreaElement?(c.value=e,c.classList.remove("hidden"),document.getElementById("findInput").classList.add("hidden"),document.getElementById("individualWordsModeLabel").classList.remove("hidden"),document.getElementById("individualWordsMode").classList.remove("hidden")):c instanceof HTMLInputElement&&(c.value=e,c.classList.remove("hidden"),document.getElementById("findInputMultiline").classList.add("hidden"),document.getElementById("individualWordsModeLabel").classList.add("hidden"),document.getElementById("individualWordsMode").classList.add("hidden")),c.dispatchEvent(new Event("input")),!0):(console.error("Unexpected error: the input field used to search isn't part of the DOM."),!1)}return console.error("The PDF viewer hasn't finished initializing. Please call find() later."),!1}},{key:"findNext",value:function(){if(vO.ngxExtendedPdfViewerInitialized){var e=document.getElementById("findNext");return!!e&&(e.click(),!0)}return console.error("The PDF viewer hasn't finished initializing. Please call findNext() later."),!1}},{key:"findPrevious",value:function(){if(vO.ngxExtendedPdfViewerInitialized){var e=document.getElementById("findPrevious");return!!e&&(e.click(),!0)}return console.error("The PDF viewer hasn't finished initializing. Please call findPrevious() later."),!1}},{key:"print",value:function(e){var t=this,n=window.PDFViewerApplication,i=!!window.isInPDFPrintRange&&!e;i||(e||(e={}),this.setPrintRange(e)),window.printPDF(),i||n.eventBus.on("afterprint",function(){t.removePrintRange()})}},{key:"removePrintRange",value:function(){window.isInPDFPrintRange=void 0,window.filteredPageCount=void 0}},{key:"setPrintRange",value:function(e){var t=this,n=window.PDFViewerApplication;window.isInPDFPrintRange=function(n){return t.isInPDFPrintRange(n,e)},window.filteredPageCount=this.filteredPageCount(n.pagesCount,e)}},{key:"filteredPageCount",value:function(e,t){for(var n=0,i=1;i<=e;i++)this.isInPDFPrintRange(i,t)&&n++;return n}},{key:"isInPDFPrintRange",value:function(e,t){var n=e+1;return!(t.from&&n<t.from||t.to&&n>t.to||t.excluded&&t.excluded.some(function(e){return e===n})||t.included&&!t.included.some(function(e){return e===n}))}},{key:"getPageAsText_preview",value:function(e,t){var n=this;return window.PDFViewerApplication.pdfDocument.getPage(e).then(function(e){e.getTextContent().then(function(e){return t(n.convertTextInfoToText(e))})})}},{key:"getPageAsText",value:function(e){var t=this;return window.PDFViewerApplication.pdfDocument.getPage(e).then(function(e){return new Promise(function(t,n){t(e.getTextContent())})}).then(function(e){return new Promise(function(n,i){n(t.convertTextInfoToText(e))})})}},{key:"convertTextInfoToText",value:function(e){return e?e.items.map(function(e){return e.str}).join(""):""}},{key:"getPageAsImage_preview",value:function(e,t,n,i){var r=this;window.PDFViewerApplication.pdfDocument.getPage(e).then(function(e){r.draw_preview(e,t,n,i)}).catch(function(e){i?i({message:"Unable to initialize PDF page service",reason:e}):console.error("Unable to initialize PDF page service",e)})}},{key:"getPageAsImage",value:function(e,t){var n=this;return window.PDFViewerApplication.pdfDocument.getPage(e).then(function(e){return new Promise(function(i,r){i(n.draw(e,t))})})}},{key:"draw",value:function(e,t){var n=1;t.scale?n=t.scale:t.width?n=t.width/e.getViewport({scale:1}).width:t.height&&(n=t.height/e.getViewport({scale:1}).height);var i=e.getViewport({scale:n}),r=this.getPageDrawContext(i.width,i.height),o=r.ctx,a=r.canvas,s=i.clone();return e.render({canvasContext:o,viewport:s}).promise.then(function(){return new Promise(function(e,t){e(a.toDataURL())})})}},{key:"draw_preview",value:function(e,t,n,i){var r=1;t.scale?r=t.scale:t.width?r=t.width/e.getViewport({scale:1}).width:t.height&&(r=t.height/e.getViewport({scale:1}).height);var o=e.getViewport({scale:r}),a=this.getPageDrawContext(o.width,o.height),s=a.ctx,l=a.canvas,u=o.clone();e.render({canvasContext:s,viewport:u}).promise.then(function(){var e=l.toDataURL();n(e)},function(e){i&&i(e)})}},{key:"getPageDrawContext",value:function(e,t){var n=document.createElement("canvas"),i=n.getContext("2d",{alpha:!1});if(!i)throw new Error("Couldn't create the 2d context");return n.width=e,n.height=t,n.style.width=e+"px",n.style.height=t+"px",{ctx:i,canvas:n}}}]),e}()).\u0275fac=function(e){return new(e||dO)},dO.\u0275prov=Re({token:dO,factory:dO.\u0275fac}),dO),yO=((cO=function(){function e(t){var n=this;A(this,e),this.notificationService=t,this.showHandToolButton=!0,this.isSelected=!1;var i=this.notificationService.onPDFJSInit.subscribe(function(){n.onPdfJsInit(),i.unsubscribe()})}return m(e,[{key:"onPdfJsInit",value:function(){var e=this;window.PDFViewerApplication.eventBus.on("cursortoolchanged",function(t){var n=t.tool;return e.isSelected=n===yD.HAND})}},{key:"onClick",value:function(){window.PDFViewerApplication.eventBus.dispatch("switchcursortool",{tool:yD.HAND})}}]),e}()).\u0275fac=function(e){return new(e||cO)(rs(vD))},cO.\u0275cmp=ft({type:cO,selectors:[["pdf-hand-tool"]],inputs:{showHandToolButton:"showHandToolButton"},decls:5,vars:4,consts:[["type","button","id","primaryCursorHandTool","title","Enable hand tool","data-l10n-id","cursor_hand_tool",1,"toolbarButton","hiddenXXLView",3,"click"],["viewBox","0 0 24 24",2,"width","22px","height","22px"],["fill","currentColor","d","M13,6V11H18V7.75L22.25,12L18,16.25V13H13V18H16.25L12,22.25L7.75,18H11V13H6V16.25L1.75,12L6,7.75V11H11V6H7.75L12,1.75L16.25,6H13Z"],["data-l10n-id","cursor_hand_tool_label"]],template:function(e,t){1&e&&(ss(0,"button",0),ms("click",function(){return t.onClick()}),On(),ss(1,"svg",1),us(2,"path",2),ls(),Mn(),ss(3,"span",3),Qs(4,"Hand Tool"),ls(),ls()),2&e&&Fs("invisible",!t.showHandToolButton)("toggled",t.isSelected)},styles:["[_nghost-%COMP%]{margin-top:0}[_nghost-%COMP%]:focus{outline:0}button[_ngcontent-%COMP%]:focus, svg[_ngcontent-%COMP%]:focus{outline:0}.toggled[_ngcontent-%COMP%]{background-color:#646464;border-color:rgba(0,0,0,.4) rgba(0,0,0,.45) rgba(0,0,0,.5);box-shadow:0 1px 1px rgba(0,0,0,.1) inset,0 0 1px rgba(0,0,0,.2) inset,0 1px 0 rgba(255,255,255,.05)}"]}),cO),bO=((uO=function e(){A(this,e),this.showBookmarkButton=!0}).\u0275fac=function(e){return new(e||uO)},uO.\u0275cmp=ft({type:uO,selectors:[["pdf-bookmark"]],inputs:{showBookmarkButton:"showBookmarkButton"},decls:5,vars:2,consts:[["href","#","id","viewBookmark","title","Current view (copy or open in new window)","data-l10n-id","bookmark",1,"toolbarButton","hiddenTinyView"],["viewBox","0 0 24 24",2,"width","24px","height","24px"],["fill","currentColor","d","M17,18L12,15.82L7,18V5H17M17,3H7A2,2 0 0,0 5,5V21L12,18L19,21V5C19,3.89 18.1,3 17,3Z"],["data-l10n-id","bookmark_label"]],template:function(e,t){1&e&&(ss(0,"a",0),On(),ss(1,"svg",1),us(2,"path",2),ls(),Mn(),ss(3,"span",3),Qs(4,"Current View"),ls(),ls()),2&e&&Fs("invisible",!t.showBookmarkButton)},styles:["[_nghost-%COMP%]   a.toolbarButton[_ngcontent-%COMP%]   svg[_ngcontent-%COMP%]{margin-top:4px}[_nghost-%COMP%]:focus{outline:0}a[_ngcontent-%COMP%]:focus, svg[_ngcontent-%COMP%]:focus{outline:0}"]}),uO),wO=((lO=function(){function e(){A(this,e)}return m(e,[{key:"ngOnInit",value:function(){}}]),e}()).\u0275fac=function(e){return new(e||lO)},lO.\u0275cmp=ft({type:lO,selectors:[["pdf-context-menu"]],decls:5,vars:0,consts:[["type","context","id","viewerContextMenu",2,"display","none"],["id","contextFirstPage",2,"display","none"],["id","contextLastPage",2,"display","none"],["id","contextPageRotateCw",2,"display","none"],["id","contextPageRotateCcw",2,"display","none"]],template:function(e,t){1&e&&(ss(0,"div",0),us(1,"div",1),us(2,"div",2),us(3,"div",3),us(4,"div",4),ls())},styles:["[_nghost-%COMP%]{margin-top:4px}"]}),lO),_O=((sO=function(){function e(){A(this,e)}return m(e,[{key:"ngOnInit",value:function(){}}]),e}()).\u0275fac=function(e){return new(e||sO)},sO.\u0275cmp=ft({type:sO,selectors:[["pdf-document-properties-overlay"]],decls:77,vars:0,consts:[[1,"dialog"],[1,"row"],["data-l10n-id","document_properties_file_name"],["id","fileNameField"],["data-l10n-id","document_properties_file_size"],["id","fileSizeField"],["data-l10n-id","document_properties_title"],["id","titleField"],["data-l10n-id","document_properties_author"],["id","authorField"],["data-l10n-id","document_properties_subject"],["id","subjectField"],["data-l10n-id","document_properties_keywords"],["id","keywordsField"],["data-l10n-id","document_properties_creation_date"],["id","creationDateField"],["data-l10n-id","document_properties_modification_date"],["id","modificationDateField"],["data-l10n-id","document_properties_creator"],["id","creatorField"],["data-l10n-id","document_properties_producer"],["id","producerField"],["data-l10n-id","document_properties_version"],["id","versionField"],["data-l10n-id","document_properties_page_count"],["id","pageCountField"],["data-l10n-id","document_properties_page_size"],["id","pageSizeField"],[1,"separator"],["data-l10n-id","document_properties_linearized"],["id","linearizedField"],[1,"buttonRow"],["type","button","id","documentPropertiesClose",1,"overlayButton"],["data-l10n-id","document_properties_close"]],template:function(e,t){1&e&&(ss(0,"div"),ss(1,"div",0),ss(2,"div",1),ss(3,"span",2),Qs(4,"File name:"),ls(),ss(5,"p",3),Qs(6,"-"),ls(),ls(),ss(7,"div",1),ss(8,"span",4),Qs(9,"File size:"),ls(),ss(10,"p",5),Qs(11,"-"),ls(),ls(),ss(12,"div",1),ss(13,"span",6),Qs(14,"Title:"),ls(),ss(15,"p",7),Qs(16,"-"),ls(),ls(),ss(17,"div",1),ss(18,"span",8),Qs(19,"Author:"),ls(),ss(20,"p",9),Qs(21,"-"),ls(),ls(),ss(22,"div",1),ss(23,"span",10),Qs(24,"Subject:"),ls(),ss(25,"p",11),Qs(26,"-"),ls(),ls(),ss(27,"div",1),ss(28,"span",12),Qs(29,"Keywords:"),ls(),ss(30,"p",13),Qs(31,"-"),ls(),ls(),ss(32,"div",1),ss(33,"span",14),Qs(34,"Creation Date:"),ls(),ss(35,"p",15),Qs(36,"-"),ls(),ls(),ss(37,"div",1),ss(38,"span",16),Qs(39,"Modification Date:"),ls(),ss(40,"p",17),Qs(41,"-"),ls(),ls(),ss(42,"div",1),ss(43,"span",18),Qs(44,"Creator:"),ls(),ss(45,"p",19),Qs(46,"-"),ls(),ls(),ss(47,"div",1),ss(48,"span",20),Qs(49,"PDF Producer:"),ls(),ss(50,"p",21),Qs(51,"-"),ls(),ls(),ss(52,"div",1),ss(53,"span",22),Qs(54,"PDF Version:"),ls(),ss(55,"p",23),Qs(56,"-"),ls(),ls(),ss(57,"div",1),ss(58,"span",24),Qs(59,"Page Count:"),ls(),ss(60,"p",25),Qs(61,"-"),ls(),ls(),ss(62,"div",1),ss(63,"span",26),Qs(64,"Page Size:"),ls(),ss(65,"p",27),Qs(66,"-"),ls(),ls(),us(67,"div",28),ss(68,"div",1),ss(69,"span",29),Qs(70,"Fast Web View:"),ls(),ss(71,"p",30),Qs(72,"-"),ls(),ls(),ss(73,"div",31),ss(74,"button",32),ss(75,"span",33),Qs(76,"Close"),ls(),ls(),ls(),ls(),ls())},styles:[""]}),sO),kO=((aO=function e(){A(this,e),this.showDownloadButton=!0}).\u0275fac=function(e){return new(e||aO)},aO.\u0275cmp=ft({type:aO,selectors:[["pdf-download"]],inputs:{showDownloadButton:"showDownloadButton"},decls:5,vars:2,consts:[["type","button","id","download","title","Download","data-l10n-id","download",1,"toolbarButton","hiddenSmallView"],["viewBox","0 0 24 24",2,"width","20px","height","20px"],["fill","currentColor","d","M14,2L20,8V20A2,2 0 0,1 18,22H6A2,2 0 0,1 4,20V4A2,2 0 0,1 6,2H14M18,20V9H13V4H6V20H18M12,19L8,15H10.5V12H13.5V15H16L12,19Z"],["data-l10n-id","download_label"]],template:function(e,t){1&e&&(ss(0,"button",0),On(),ss(1,"svg",1),us(2,"path",2),ls(),Mn(),ss(3,"span",3),Qs(4,"Download"),ls(),ls()),2&e&&Fs("invisible",!t.showDownloadButton)},styles:[YE]}),aO),xO=((oO=function e(){A(this,e),this.showFindButton=!0}).\u0275fac=function(e){return new(e||oO)},oO.\u0275cmp=ft({type:oO,selectors:[["pdf-findbar"]],inputs:{showFindButton:"showFindButton",mobileFriendlyZoomScale:"mobileFriendlyZoomScale",findbarLeft:"findbarLeft",findbarTop:"findbarTop",customFindbarInputArea:"customFindbarInputArea",customFindbar:"customFindbar",customFindbarButtons:"customFindbarButtons"},decls:5,vars:1,consts:[[3,"ngTemplateOutlet"],["defaultFindbar",""],["defaultFindbarButtons",""],["id","findbar",1,"findbar","hidden","doorHanger"],[3,"customFindbarInputArea"]],template:function(e,t){if(1&e&&(hs(0,0),ns(1,UE,2,11,"ng-template",null,1,tc),ns(3,WE,5,1,"ng-template",null,2,tc)),2&e){var n=is(2);os("ngTemplateOutlet",t.customFindbar?t.customFindbar:n)}},directives:function(){return[Oh,IO,CO,PO,SO,AO]},styles:[""]}),oO),AO=((rO=function(){function e(){A(this,e)}return m(e,[{key:"ngOnInit",value:function(){}}]),e}()).\u0275fac=function(e){return new(e||rO)},rO.\u0275cmp=ft({type:rO,selectors:[["pdf-findbar-message-container"]],decls:2,vars:0,consts:[["id","findbarMessageContainer"],["id","findMsg",1,"toolbarLabel"]],template:function(e,t){1&e&&(ss(0,"div",0),us(1,"span",1),ls())},styles:[""]}),rO),CO=((iO=function(){function e(){A(this,e)}return m(e,[{key:"ngOnInit",value:function(){}}]),e}()).\u0275fac=function(e){return new(e||iO)},iO.\u0275cmp=ft({type:iO,selectors:[["pdf-findbar-options-one-container"]],decls:3,vars:0,consts:[["id","findbarOptionsOneContainer"]],template:function(e,t){1&e&&(ss(0,"div",0),us(1,"pdf-find-highlight-all"),us(2,"pdf-find-match-case"),ls())},directives:function(){return[MO,RO]},styles:[""]}),iO),SO=((nO=function(){function e(){A(this,e)}return m(e,[{key:"ngOnInit",value:function(){}}]),e}()).\u0275fac=function(e){return new(e||nO)},nO.\u0275cmp=ft({type:nO,selectors:[["pdf-findbar-options-three-container"]],decls:4,vars:0,consts:[["id","findbarOptionsThreeContainer"]],template:function(e,t){1&e&&(ss(0,"div",0),us(1,"pdf-find-ignore-accents"),us(2,"pdf-find-fuzzily"),us(3,"pdf-find-results-count"),ls())},directives:function(){return[TO,OO,zO]},styles:[""]}),nO),PO=((tO=function(){function e(){A(this,e)}return m(e,[{key:"ngOnInit",value:function(){}}]),e}()).\u0275fac=function(e){return new(e||tO)},tO.\u0275cmp=ft({type:tO,selectors:[["pdf-findbar-options-two-container"]],decls:3,vars:0,consts:[["id","findbarOptionsTwoContainer"]],template:function(e,t){1&e&&(ss(0,"div",0),us(1,"pdf-find-entire-word"),us(2,"pdf-find-entire-phrase"),ls())},directives:function(){return[DO,FO]},styles:[""]}),tO),EO=((eO=function(){function e(){A(this,e),this.showFindButton=void 0,this.textLayer=void 0}return m(e,[{key:"ngOnInit",value:function(){}}]),e}()).\u0275fac=function(e){return new(e||eO)},eO.\u0275cmp=ft({type:eO,selectors:[["pdf-find-button"]],inputs:{showFindButton:"showFindButton",textLayer:"textLayer"},decls:5,vars:2,consts:[["type","button","id","viewFind","title","Find in Document","data-l10n-id","findbar",1,"toolbarButton"],["viewBox","0 0 24 24",2,"width","24px","height","24px"],["fill","currentColor","d","M9.5,3A6.5,6.5 0 0,1 16,9.5C16,11.11 15.41,12.59 14.44,13.73L14.71,14H15.5L20.5,19L19,20.5L14,15.5V14.71L13.73,14.44C12.59,15.41 11.11,16 9.5,16A6.5,6.5 0 0,1 3,9.5A6.5,6.5 0 0,1 9.5,3M9.5,5C7,5 5,7 5,9.5C5,12 7,14 9.5,14C12,14 14,12 14,9.5C14,7 12,5 9.5,5Z"],["data-l10n-id","findbar_label"]],template:function(e,t){1&e&&(ss(0,"button",0),On(),ss(1,"svg",1),us(2,"path",2),ls(),Mn(),ss(3,"span",3),Qs(4,"Find"),ls(),ls()),2&e&&Fs("invisible",!t.showFindButton||!t.textLayer)},styles:[KE]}),eO),DO=(($D=function(){function e(){A(this,e)}return m(e,[{key:"ngOnInit",value:function(){}}]),e}()).\u0275fac=function(e){return new(e||$D)},$D.\u0275cmp=ft({type:$D,selectors:[["pdf-find-entire-word"]],decls:3,vars:0,consts:[["type","checkbox","id","findEntireWord",1,"toolbarField"],["for","findEntireWord","data-l10n-id","find_entire_word_label",1,"toolbarLabel"]],template:function(e,t){1&e&&(us(0,"input",0),ss(1,"label",1),Qs(2," Whole words\n"),ls())},styles:[""]}),$D),OO=((JD=function(){function e(){A(this,e)}return m(e,[{key:"ngOnInit",value:function(){}}]),e}()).\u0275fac=function(e){return new(e||JD)},JD.\u0275cmp=ft({type:JD,selectors:[["pdf-find-fuzzily"]],decls:3,vars:0,consts:[["type","checkbox","id","findFuzzy",1,"toolbarField"],["for","findFuzzy","data-l10n-id","find_fuzzy",1,"toolbarLabel"]],template:function(e,t){1&e&&(us(0,"input",0),ss(1,"label",1),Qs(2," Fuzzy search\n"),ls())},styles:[""]}),JD),MO=((KD=function(){function e(){A(this,e)}return m(e,[{key:"ngOnInit",value:function(){}}]),e}()).\u0275fac=function(e){return new(e||KD)},KD.\u0275cmp=ft({type:KD,selectors:[["pdf-find-highlight-all"]],decls:3,vars:0,consts:[["type","checkbox","id","findHighlightAll",1,"toolbarField"],["for","findHighlightAll","data-l10n-id","find_highlight",1,"toolbarLabel"]],template:function(e,t){1&e&&(us(0,"input",0),ss(1,"label",1),Qs(2," Highlight all\n"),ls())},styles:[""]}),KD),TO=((XD=function(){function e(){A(this,e)}return m(e,[{key:"ngOnInit",value:function(){}}]),e}()).\u0275fac=function(e){return new(e||XD)},XD.\u0275cmp=ft({type:XD,selectors:[["pdf-find-ignore-accents"]],decls:3,vars:0,consts:[["type","checkbox","id","findIgnoreAccents",1,"toolbarField"],["for","findIgnoreAccents","data-l10n-id","find_ignore_accents",1,"toolbarLabel"]],template:function(e,t){1&e&&(us(0,"input",0),ss(1,"label",1),Qs(2," Ignore accents and diacritics\n"),ls())},styles:[""]}),XD),IO=((QD=function e(){A(this,e)}).\u0275fac=function(e){return new(e||QD)},QD.\u0275cmp=ft({type:QD,selectors:[["pdf-find-input-area"]],inputs:{customFindbarInputArea:"customFindbarInputArea"},decls:2,vars:2,consts:[["id","findbarInputContainer",4,"ngIf"],[3,"ngTemplateOutlet"],["id","findbarInputContainer"]],template:function(e,t){1&e&&(ns(0,GE,4,0,"div",0),hs(1,1)),2&e&&(os("ngIf",!t.customFindbarInputArea),xo(1),os("ngTemplateOutlet",t.customFindbarInputArea))},directives:function(){return[mh,Oh,XO,VO,BO]},styles:[""]}),QD),RO=((ZD=function(){function e(){A(this,e)}return m(e,[{key:"ngOnInit",value:function(){}}]),e}()).\u0275fac=function(e){return new(e||ZD)},ZD.\u0275cmp=ft({type:ZD,selectors:[["pdf-find-match-case"]],decls:3,vars:0,consts:[["type","checkbox","id","findMatchCase",1,"toolbarField"],["for","findMatchCase","data-l10n-id","find_match_case_label",1,"toolbarLabel"]],template:function(e,t){1&e&&(us(0,"input",0),ss(1,"label",1),Qs(2," Match case\n"),ls())},styles:[""]}),ZD),LO=((YD=function e(){A(this,e),this.individualWordsMode=!0,this.multipleSearchTexts=!1}).\u0275prov=Re({token:YD,factory:YD.\u0275fac=function(e){return new(e||YD)},providedIn:"root"}),YD.ngInjectableDef=Le({factory:function(){return new YD},token:YD,providedIn:"root"}),YD),FO=((qD=function(){function e(t){A(this,e),this.pdfFindbarService=t}return m(e,[{key:"ngOnInit",value:function(){}}]),e}()).\u0275fac=function(e){return new(e||qD)(rs(LO))},qD.\u0275cmp=ft({type:qD,selectors:[["pdf-find-entire-phrase"]],decls:6,vars:6,consts:[["type","checkbox","id","findMultipleSearchTexts",1,"toolbarField",3,"ngModel","ngModelChange"],["for","findMultipleSearchTexts","data-l10n-id","find_multiple_texts_label",1,"toolbarLabel"],["type","checkbox","id","individualWordsMode",1,"toolbarField",3,"ngModel","ngModelChange"],["for","individualWordsMode","id","individualWordsModeLabel","data-l10n-id","find_individual_words_label",1,"toolbarLabel"]],template:function(e,t){1&e&&(ss(0,"input",0),ms("ngModelChange",function(e){return t.pdfFindbarService.multipleSearchTexts=e}),ls(),ss(1,"label",1),Qs(2," multiple search texts\n"),ls(),ss(3,"input",2),ms("ngModelChange",function(e){return t.pdfFindbarService.individualWordsMode=e}),ls(),ss(4,"label",3),Qs(5," separated by word boundaries\n"),ls()),2&e&&(os("ngModel",t.pdfFindbarService.multipleSearchTexts),xo(3),Fs("hidden",!t.pdfFindbarService.multipleSearchTexts),os("ngModel",t.pdfFindbarService.individualWordsMode),xo(1),Fs("hidden",!t.pdfFindbarService.multipleSearchTexts))},directives:[Mv,hm,Ym],styles:[""]}),qD),BO=((GD=function(){function e(){A(this,e)}return m(e,[{key:"ngOnInit",value:function(){}}]),e}()).\u0275fac=function(e){return new(e||GD)},GD.\u0275cmp=ft({type:GD,selectors:[["pdf-find-next"]],decls:5,vars:0,consts:[["type","button","id","findNext","title","Find the next occurrence of the phrase","data-l10n-id","find_next",1,"toolbarButton"],["viewBox","0 0 24 24",2,"width","24px","height","24px"],["fill","currentColor","d","M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z"],["data-l10n-id","find_next_label"]],template:function(e,t){1&e&&(ss(0,"button",0),On(),ss(1,"svg",1),us(2,"path",2),ls(),Mn(),ss(3,"span",3),Qs(4,"Next"),ls(),ls())},styles:["button.toolbarButton#findNext[_ngcontent-%COMP%]{margin-top:0}"]}),GD),VO=((WD=function(){function e(){A(this,e)}return m(e,[{key:"ngOnInit",value:function(){}}]),e}()).\u0275fac=function(e){return new(e||WD)},WD.\u0275cmp=ft({type:WD,selectors:[["pdf-find-previous"]],decls:5,vars:0,consts:[["type","button","id","findPrevious","title","Find the previous occurrence of the phrase","data-l10n-id","find_previous",1,"toolbarButton"],["viewBox","0 0 24 24",2,"width","24px","height","24px"],["fill","currentColor","d","M15.41,16.58L10.83,12L15.41,7.41L14,6L8,12L14,18L15.41,16.58Z"],["data-l10n-id","find_previous_label"]],template:function(e,t){1&e&&(ss(0,"button",0),On(),ss(1,"svg",1),us(2,"path",2),ls(),Mn(),ss(3,"span",3),Qs(4,"Previous"),ls(),ls())},styles:["button.toolbarButton#findPrevious[_ngcontent-%COMP%]{margin-top:0}"]}),WD),zO=((UD=function(){function e(){A(this,e)}return m(e,[{key:"ngOnInit",value:function(){}}]),e}()).\u0275fac=function(e){return new(e||UD)},UD.\u0275cmp=ft({type:UD,selectors:[["pdf-find-results-count"]],decls:1,vars:0,consts:[["id","findResultsCount",1,"toolbarLabel","hidden"]],template:function(e,t){1&e&&us(0,"span",0)},styles:[""]}),UD),NO=((jD=function(){function e(t){var n=this;A(this,e),this.notificationService=t,this.disableFirstPage=!0;var i=this.notificationService.onPDFJSInit.subscribe(function(){n.onPdfJsInit(),i.unsubscribe()})}return m(e,[{key:"firstPage",value:function(){window.PDFViewerApplication.eventBus.dispatch("firstpage")}},{key:"onPdfJsInit",value:function(){var e=this;window.PDFViewerApplication.eventBus.on("updateuistate",function(t){return e.updateUIState(t)})}},{key:"updateUIState",value:function(e){this.disableFirstPage=e.pageNumber<=1,this.button.nativeElement.disabled=this.disableFirstPage}}]),e}()).\u0275fac=function(e){return new(e||jD)(rs(vD))},jD.\u0275cmp=ft({type:jD,selectors:[["pdf-first-page"]],viewQuery:function(e,t){var n;1&e&&Qu(qE,1),2&e&&Zu(n=Ku())&&(t.button=n.first)},decls:6,vars:1,consts:[["type","button","title","First page","id","primaryFirstPage","data-l10n-id","first_page",1,"toolbarButton","hiddenLargeView",3,"disabled","click"],["button",""],["viewBox","0 0 24 24",2,"width","24px","height","24px"],["fill","currentColor","d","M18.41,16.59L13.82,12L18.41,7.41L17,6L11,12L17,18L18.41,16.59M6,6H8V18H6V6Z"],["data-l10n-id","first_page_label"]],template:function(e,t){1&e&&(ss(0,"button",0,1),ms("click",function(){return t.firstPage()}),On(),ss(2,"svg",2),us(3,"path",3),ls(),Mn(),ss(4,"span",4),Qs(5,"First page"),ls(),ls()),2&e&&os("disabled",t.disableFirstPage)},styles:[""]}),jD),HO=((HD=function(){function e(t){var n=this;A(this,e),this.notificationService=t,this.disableLastPage=!0;var i=this.notificationService.onPDFJSInit.subscribe(function(){n.onPdfJsInit(),i.unsubscribe()})}return m(e,[{key:"firstPage",value:function(){window.PDFViewerApplication.eventBus.dispatch("firstpage")}},{key:"onPdfJsInit",value:function(){var e=this;window.PDFViewerApplication.eventBus.on("updateuistate",function(t){return e.updateUIState(t)})}},{key:"updateUIState",value:function(e){this.disableLastPage=e.pageNumber===e.pagesCount,this.button.nativeElement.disabled=this.disableLastPage}},{key:"lastPage",value:function(){window.PDFViewerApplication.eventBus.dispatch("lastpage")}}]),e}()).\u0275fac=function(e){return new(e||HD)(rs(vD))},HD.\u0275cmp=ft({type:HD,selectors:[["pdf-last-page"]],viewQuery:function(e,t){var n;1&e&&Qu(qE,1),2&e&&Zu(n=Ku())&&(t.button=n.first)},decls:6,vars:1,consts:[["type","button","title","Last page","id","primaryLastPage","data-l10n-id","last_page",1,"toolbarButton","hiddenLargeView",3,"disabled","click"],["button",""],["viewBox","0 0 24 24",2,"width","24px","height","24px"],["fill","currentColor","d","M5.59,7.41L10.18,12L5.59,16.59L7,18L13,12L7,6L5.59,7.41M16,6H18V18H16V6Z"],["data-l10n-id","last_page_label"]],template:function(e,t){1&e&&(ss(0,"button",0,1),ms("click",function(){return t.lastPage()}),On(),ss(2,"svg",2),us(3,"path",3),ls(),Mn(),ss(4,"span",4),Qs(5,"Last page"),ls(),ls()),2&e&&os("disabled",t.disableLastPage)},styles:[""]}),HD),jO=((ND=function(){function e(){A(this,e)}return m(e,[{key:"ngOnInit",value:function(){}}]),e}()).\u0275fac=function(e){return new(e||ND)},ND.\u0275cmp=ft({type:ND,selectors:[["pdf-next-page"]],decls:5,vars:0,consts:[["type","button","title","Next Page","id","next","data-l10n-id","next",1,"toolbarButton"],["viewBox","0 0 24 24",2,"width","24px","height","24px"],["fill","currentColor","d","M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z"],["data-l10n-id","next_label"]],template:function(e,t){1&e&&(ss(0,"button",0),On(),ss(1,"svg",1),us(2,"path",2),ls(),Mn(),ss(3,"span",3),Qs(4,"Next"),ls(),ls())},styles:[""]}),ND),UO=((zD=function e(){A(this,e),this.showOpenFileButton=!0}).\u0275fac=function(e){return new(e||zD)},zD.\u0275cmp=ft({type:zD,selectors:[["pdf-open-file"]],inputs:{showOpenFileButton:"showOpenFileButton"},decls:5,vars:2,consts:[["type","button","id","openFile","title","Open File","data-l10n-id","open_file",1,"toolbarButton","hiddenMediumView"],["viewBox","0 0 24 24",2,"width","24px","height","20px"],["fill","currentColor","d","M14,2L20,8V20A2,2 0 0,1 18,22H6A2,2 0 0,1 4,20V4A2,2 0 0,1 6,2H14M18,20V9H13V4H6V20H18M12,12L16,16H13.5V19H10.5V16H8L12,12Z"],["data-l10n-id","open_file_label"]],template:function(e,t){1&e&&(ss(0,"button",0),On(),ss(1,"svg",1),us(2,"path",2),ls(),Mn(),ss(3,"span",3),Qs(4,"Open"),ls(),ls()),2&e&&Fs("invisible",!t.showOpenFileButton)},styles:[YE]}),zD),WO=((VD=function(){function e(){A(this,e),this.showPagingButtons=!0}return m(e,[{key:"ngOnInit",value:function(){}}]),e}()).\u0275fac=function(e){return new(e||VD)},VD.\u0275cmp=ft({type:VD,selectors:[["pdf-page-number"]],inputs:{showPagingButtons:"showPagingButtons"},decls:2,vars:4,consts:[["type","number","id","pageNumber","title","Page","value","1","size","4","min","1","data-l10n-id","page",1,"toolbarField","pageNumber"],["id","numPages",1,"toolbarLabel","hiddenXLView"]],template:function(e,t){1&e&&(us(0,"input",0),us(1,"span",1)),2&e&&(Fs("invisible",!t.showPagingButtons),xo(1),Fs("invisible",!t.showPagingButtons))},styles:[""]}),VD),GO=((BD=function e(){A(this,e),this.showPagingButtons=!0}).\u0275fac=function(e){return new(e||BD)},BD.\u0275cmp=ft({type:BD,selectors:[["pdf-paging-area"]],inputs:{showPagingButtons:"showPagingButtons"},decls:7,vars:5,consts:[[1,"paging-left","hiddenTinyView"],[2,"margin-right","-3px"],[2,"margin-left","-3px"],[3,"showPagingButtons"],[1,"paging-right","hiddenTinyView"],[2,"margin-right","-3px","margin-left","-3px"]],template:function(e,t){1&e&&(ss(0,"div",0),us(1,"pdf-first-page",1),us(2,"pdf-previous-page",2),ls(),us(3,"pdf-page-number",3),ss(4,"div",4),us(5,"pdf-next-page",5),us(6,"pdf-last-page",2),ls()),2&e&&(Fs("invisible",!t.showPagingButtons),xo(3),os("showPagingButtons",t.showPagingButtons),xo(1),Fs("invisible",!t.showPagingButtons))},directives:function(){return[NO,YO,WO,jO,HO]},styles:[".paging-right[_ngcontent-%COMP%]{float:right;display:block;margin-top:-2px}.paging-left[_ngcontent-%COMP%]{float:left;display:block;margin-top:-2px}"]}),BD),qO=((FD=function e(){A(this,e),this.showPresentationModeButton=!0}).\u0275fac=function(e){return new(e||FD)},FD.\u0275cmp=ft({type:FD,selectors:[["pdf-presentation-mode"]],inputs:{showPresentationModeButton:"showPresentationModeButton"},decls:5,vars:2,consts:[["type","button","id","presentationMode","title","Switch to Presentation Mode","data-l10n-id","presentation_mode",1,"toolbarButton","hiddenLargeView"],["viewBox","0 0 24 24",2,"width","27px","height","27px"],["fill","currentColor","d","M5,5H10V7H7V10H5V5M14,5H19V10H17V7H14V5M17,14H19V19H14V17H17V14M10,17V19H5V14H7V17H10Z"],["data-l10n-id","presentation_mode_label"]],template:function(e,t){1&e&&(ss(0,"button",0),On(),ss(1,"svg",1),us(2,"path",2),ls(),Mn(),ss(3,"span",3),Qs(4,"Presentation Mode"),ls(),ls()),2&e&&Fs("invisible",!t.showPresentationModeButton)},styles:["[_nghost-%COMP%]   button.toolbarButton[_ngcontent-%COMP%]{margin-top:0}[_nghost-%COMP%]:focus{outline:0}button[_ngcontent-%COMP%]:focus, svg[_ngcontent-%COMP%]:focus{outline:0}"]}),FD),YO=((LD=function(){function e(){A(this,e)}return m(e,[{key:"ngOnInit",value:function(){}}]),e}()).\u0275fac=function(e){return new(e||LD)},LD.\u0275cmp=ft({type:LD,selectors:[["pdf-previous-page"]],decls:5,vars:0,consts:[["type","button","title","Previous Page","id","previous","data-l10n-id","previous",1,"toolbarButton"],["viewBox","0 0 24 24",2,"width","24px","height","24px"],["fill","currentColor","d","M15.41,16.58L10.83,12L15.41,7.41L14,6L8,12L14,18L15.41,16.58Z"],["data-l10n-id","previous_label"]],template:function(e,t){1&e&&(ss(0,"button",0),On(),ss(1,"svg",1),us(2,"path",2),ls(),Mn(),ss(3,"span",3),Qs(4,"Previous"),ls(),ls())},styles:[""]}),LD),ZO=((RD=function e(){A(this,e),this.showPrintButton=!0}).\u0275fac=function(e){return new(e||RD)},RD.\u0275cmp=ft({type:RD,selectors:[["pdf-print"]],inputs:{showPrintButton:"showPrintButton"},decls:5,vars:2,consts:[["type","button","id","print","title","Print","data-l10n-id","print",1,"toolbarButton","hiddenSmallView"],["viewBox","0 0 24 24",2,"width","22px","height","22px"],["fill","currentColor","d","M18,3H6V7H18M19,12A1,1 0 0,1 18,11A1,1 0 0,1 19,10A1,1 0 0,1 20,11A1,1 0 0,1 19,12M16,19H8V14H16M19,8H5A3,3 0 0,0 2,11V17H6V21H18V17H22V11A3,3 0 0,0 19,8Z"],["data-l10n-id","print_label"]],template:function(e,t){1&e&&(ss(0,"button",0),On(),ss(1,"svg",1),us(2,"path",2),ls(),Mn(),ss(3,"span",3),Qs(4,"Print"),ls(),ls()),2&e&&Fs("invisible",!t.showPrintButton)},styles:[XE]}),RD),QO=((ID=function(){function e(t){var n=this;A(this,e),this.notificationService=t,this.showRotateButton=!0,this.disableRotate=!0;var i=this.notificationService.onPDFJSInit.subscribe(function(){n.onPdfJsInit(),i.unsubscribe()})}return m(e,[{key:"rotateCW",value:function(){window.PDFViewerApplication.eventBus.dispatch("rotatecw")}},{key:"rotateCCW",value:function(){window.PDFViewerApplication.eventBus.dispatch("rotateccw")}},{key:"onPdfJsInit",value:function(){var e=this;window.PDFViewerApplication.eventBus.on("updateuistate",function(t){return e.updateUIState(t)})}},{key:"updateUIState",value:function(e){this.disableRotate=0===e.pagesCount,this.button1.nativeElement.disabled=this.disableRotate,this.button2.nativeElement.disabled=this.disableRotate}}]),e}()).\u0275fac=function(e){return new(e||ID)(rs(vD))},ID.\u0275cmp=ft({type:ID,selectors:[["pdf-rotate-page"]],viewQuery:function(e,t){var n;1&e&&(Qu(ZE,1),Qu(QE,1)),2&e&&(Zu(n=Ku())&&(t.button1=n.first),Zu(n=Ku())&&(t.button2=n.first))},inputs:{showRotateButton:"showRotateButton"},decls:8,vars:6,consts:[["type","button","id","primaryPageRotateCw","title","Rotate Clockwise","data-l10n-id","page_rotate_cw",1,"toolbarButton","hiddenXLView","rotateCw",3,"disabled","click"],["button1",""],["viewBox","0 0 24 24",2,"width","23px","height","23px"],["fill","currentColor","d","M12 3C7.03 3 3 7.03 3 12S7.03 21 12 21C14 21 15.92 20.34 17.5 19.14L16.06 17.7C14.87 18.54 13.45 19 12 19C8.13 19 5 15.87 5 12S8.13 5 12 5 19 8.13 19 12H16L20 16L24 12H21C21 7.03 16.97 3 12 3"],["type","button","id","primaryPageRotateCcw","title","Rotate Counterclockwise","data-l10n-id","page_rotate_ccw",1,"toolbarButton","hiddenXLView","rotateCcw",3,"disabled","click"],["button2",""],["fill","currentColor","d","M12 3C7.03 3 3 7.03 3 12H0L4 16L8 12H5C5 8.13 8.13 5 12 5S19 8.13 19 12 15.87 19 12 19C10.55 19 9.13 18.54 7.94 17.7L6.5 19.14C8.08 20.34 10 21 12 21C16.97 21 21 16.97 21 12S16.97 3 12 3"]],template:function(e,t){1&e&&(ss(0,"button",0,1),ms("click",function(){return t.rotateCW()}),On(),ss(2,"svg",2),us(3,"path",3),ls(),ls(),Mn(),ss(4,"button",4,5),ms("click",function(){return t.rotateCCW()}),On(),ss(6,"svg",2),us(7,"path",6),ls(),ls()),2&e&&(Fs("invisible",!t.showRotateButton),os("disabled",t.disableRotate),xo(4),Fs("invisible",!t.showRotateButton),os("disabled",t.disableRotate))},styles:[XE]}),ID),XO=((TD=function e(t){A(this,e),this.pdfFindbarService=t}).\u0275fac=function(e){return new(e||TD)(rs(LO))},TD.\u0275cmp=ft({type:TD,selectors:[["pdf-search-input-field"]],decls:2,vars:5,consts:[["autocomplete","search-input-field","id","findInput","title","Find","data-l10n-id","find_input","name","search-input-field",1,"toolbarField",3,"placeholder"],["id","findInputMultiline","type","checkbox","placeholder","Multiple search terms. Each line is a search term.","data-l10n-id","find_input_line_by_line","lines","3",1,"toolbarField"]],template:function(e,t){1&e&&(us(0,"input",0),us(1,"textarea",1)),2&e&&(Fs("hidden",!t.pdfFindbarService.individualWordsMode),os("placeholder","Find in document\u2026"),xo(1),Fs("hidden",t.pdfFindbarService.individualWordsMode))},styles:["textarea[_ngcontent-%COMP%]{width:200px;height:3.5em}textarea[_ngcontent-%COMP%]::-webkit-input-placeholder{color:#bfbfbf}textarea[_ngcontent-%COMP%]::-moz-placeholder{font-style:italic}textarea[_ngcontent-%COMP%]:-ms-input-placeholder{font-style:italic}textarea[_ngcontent-%COMP%]::-ms-input-placeholder{font-style:italic}textarea[_ngcontent-%COMP%]::placeholder{font-style:italic}"]}),TD),KO=((MD=function(){function e(){A(this,e),this.showSecondaryToolbarButton=!0}return m(e,[{key:"ngOnInit",value:function(){}}]),e}()).\u0275fac=function(e){return new(e||MD)},MD.\u0275cmp=ft({type:MD,selectors:[["pdf-toggle-secondary-toolbar"]],inputs:{showSecondaryToolbarButton:"showSecondaryToolbarButton"},decls:5,vars:2,consts:[["type","button","id","secondaryToolbarToggle","title","Tools","data-l10n-id","tools",1,"toolbarButton"],["viewBox","0 0 24 24","onclick","event.preventDefault(); return false;",2,"width","27px","height","27px"],["fill","currentColor","d","M3,6H21V8H3V6M3,11H21V13H3V11M3,16H21V18H3V16Z"],["data-l10n-id","tools_label"]],template:function(e,t){1&e&&(ss(0,"button",0),On(),ss(1,"svg",1),us(2,"path",2),ls(),Mn(),ss(3,"span",3),Qs(4,"Tools"),ls(),ls()),2&e&&Fs("invisible",!t.showSecondaryToolbarButton)},styles:["svg[_ngcontent-%COMP%]{margin-top:-3px}[_nghost-%COMP%]:focus{outline:0}button[_ngcontent-%COMP%]:focus, svg[_ngcontent-%COMP%]:focus{outline:0}"]}),MD),JO=((OD=function(){function e(){A(this,e),this.showSidebarButton=!0}return m(e,[{key:"ngOnInit",value:function(){}}]),e}()).\u0275fac=function(e){return new(e||OD)},OD.\u0275cmp=ft({type:OD,selectors:[["pdf-toggle-sidebar"]],inputs:{showSidebarButton:"showSidebarButton"},decls:5,vars:2,consts:[["type","button","id","sidebarToggle","title","Toggle Sidebar","data-l10n-id","toggle_sidebar",1,"toolbarButton"],["viewBox","0 0 24 24",2,"width","24px","height","24px"],["fill","currentColor","d","M3,9H17V7H3V9M3,13H17V11H3V13M3,17H17V15H3V17M19,17H21V15H19V17M19,7V9H21V7H19M19,13H21V11H19V13Z"],["data-l10n-id","toggle_sidebar_label"]],template:function(e,t){1&e&&(ss(0,"button",0),On(),ss(1,"svg",1),us(2,"path",2),ls(),Mn(),ss(3,"span",3),Qs(4,"Toggle Sidebar"),ls(),ls()),2&e&&Fs("invisible",!t.showSidebarButton)},styles:[KE]}),OD),$O=((DD=function e(){A(this,e),this.mobileFriendlyZoomScale=1,this.primaryMenuVisible=!0,this.showBookmarkButton=!0,this.showDownloadButton=!0,this.showFindButton=void 0,this.showHandToolButton=!0,this.showOpenFileButton=!0,this.showPrintButton=!0,this.showPagingButtons=!0,this.showPresentationModeButton=!1,this.showRotateButton=!0,this.showSecondaryToolbarButton=!0,this.showSidebarButton=!0,this.showZoomButtons=!0,this.textLayer=void 0,this.toolbarPaddingTop="0px",this.toolbarWidth="100%",this.zoomLevels=["auto","page-actual","page-fit","page-width",.5,.75,1,1.25,1.5,2,3,4]}).\u0275fac=function(e){return new(e||DD)},DD.\u0275cmp=ft({type:DD,selectors:[["pdf-toolbar"]],inputs:{mobileFriendlyZoomScale:"mobileFriendlyZoomScale",primaryMenuVisible:"primaryMenuVisible",showBookmarkButton:"showBookmarkButton",showDownloadButton:"showDownloadButton",showFindButton:"showFindButton",showHandToolButton:"showHandToolButton",showOpenFileButton:"showOpenFileButton",showPrintButton:"showPrintButton",showPagingButtons:"showPagingButtons",showPresentationModeButton:"showPresentationModeButton",showRotateButton:"showRotateButton",showSecondaryToolbarButton:"showSecondaryToolbarButton",showSidebarButton:"showSidebarButton",showZoomButtons:"showZoomButtons",textLayer:"textLayer",toolbarPaddingTop:"toolbarPaddingTop",toolbarWidth:"toolbarWidth",zoomLevels:"zoomLevels",customToolbar:"customToolbar"},ngContentSelectors:RE,decls:8,vars:11,consts:[[1,"toolbar"],["id","toolbarContainer"],[4,"ngTemplateOutlet"],["id","loadingBar"],[1,"progress"],[1,"glimmer"],["defaultToolbar",""],["id","toolbarViewer"],["id","toolbarViewerLeft"],[3,"showSidebarButton"],[3,"showFindButton","textLayer"],[3,"showPagingButtons"],[3,"showZoomButtons","zoomLevels"],["id","toolbarViewerRight"],[3,"showHandToolButton"],[3,"showSelectToolButton"],[3,"showRotateButton"],[3,"showPresentationModeButton"],[3,"showOpenFileButton"],[3,"showPrintButton"],[3,"showDownloadButton"],[3,"showBookmarkButton"],[3,"showSecondaryToolbarButton"]],template:function(e,t){if(1&e&&(As(),ss(0,"div",0),ss(1,"div",1),ns(2,JE,1,0,"ng-content",2),ss(3,"div",3),ss(4,"div",4),us(5,"div",5),ls(),ls(),ls(),ls(),ns(6,$E,16,15,"ng-template",null,6,tc)),2&e){var n=is(7);Fs("invisible",!t.primaryMenuVisible),xo(1),Ls("transform","scale("+t.mobileFriendlyZoomScale+")")("transform-origin","left center")("width",t.toolbarWidth)("padding-top",t.toolbarPaddingTop),xo(1),os("ngTemplateOutlet",t.customToolbar?t.customToolbar:n)}},directives:function(){return[Oh,JO,EO,GO,iM,yO,rM,QO,qO,UO,ZO,kO,bO,KO]},styles:[""]}),DD),eM=((ED=function(){function e(){A(this,e),this._zoomLevels=[]}return m(e,[{key:"zoomLevels",set:function(e){var t=this;this._zoomLevels=e.map(function(e){return t.valueToZoomLevel(e)})}},{key:"ngOnInit",value:function(){}},{key:"valueToZoomLevel",value:function(e){e.toString().endsWith("%")&&(e=e.toString().replace("%",""),e=Number(e)/100);var t=Number(e);if(!t){var n=String(e);return{id:this.snakeToCamel(e+"Option"),value:n,dataL10nId:"page_scale_"+n.replace("page-",""),dataL10nArgs:void 0,displayValue:n}}var i=Math.round(100*t);return{id:"scale_"+i,value:String(t),dataL10nId:"page_scale_percent",dataL10nArgs:'{ "scale": '.concat(i," }"),displayValue:String(i)+"%"}}},{key:"snakeToCamel",value:function(e){return e.replace(/([-_][a-z])/g,function(e){return e.toUpperCase().replace("-","").replace("_","")})}}]),e}()).\u0275fac=function(e){return new(e||ED)},ED.\u0275cmp=ft({type:ED,selectors:[["pdf-zoom-dropdown"]],viewQuery:function(e,t){var n;1&e&&Qu(eD,1),2&e&&Zu(n=Ku())&&(t.sizeSelector=n.first)},inputs:{zoomLevels:"zoomLevels"},decls:5,vars:1,consts:[["id","scaleSelectContainer",1,"dropdownToolbarButton"],["id","scaleSelect","title","Zoom","data-l10n-id","zoom"],["sizeSelector",""],[3,"id",4,"ngFor","ngForOf"],["id","customScaleOption","title","","value","custom","disabled","disabled","hidden","true"],[3,"id"]],template:function(e,t){1&e&&(ss(0,"span",0),ss(1,"select",1,2),ns(3,tD,2,5,"option",3),us(4,"option",4),ls(),ls()),2&e&&(xo(3),os("ngForOf",t._zoomLevels))},directives:[gh,ly,_y],styles:[".dropdownToolbarButton[_ngcontent-%COMP%]{display:table-cell;-webkit-appearance:none;width:150px;max-width:150px}.dropdownToolbarButton[_ngcontent-%COMP%] > select[_ngcontent-%COMP%]{width:170px}@media screen and (-webkit-min-device-pixel-ratio:1.1),screen and (min-resolution:1.1dppx){.dropdownToolbarButton[_ngcontent-%COMP%]::after{top:-1px}}"]}),ED),tM=((PD=function(){function e(){A(this,e)}return m(e,[{key:"ngOnInit",value:function(){}}]),e}()).\u0275fac=function(e){return new(e||PD)},PD.\u0275cmp=ft({type:PD,selectors:[["pdf-zoom-in"]],decls:4,vars:0,consts:[["type","button","id","zoomIn","title","Zoom In","data-l10n-id","zoom_in",1,"toolbarButton","zoomIn"],["data-l10n-id","zoom_in_label"]],template:function(e,t){1&e&&(ss(0,"button",0),Qs(1," + "),ss(2,"span",1),Qs(3,"Zoom In"),ls(),ls())},styles:[""]}),PD),nM=((SD=function(){function e(){A(this,e)}return m(e,[{key:"ngOnInit",value:function(){}}]),e}()).\u0275fac=function(e){return new(e||SD)},SD.\u0275cmp=ft({type:SD,selectors:[["pdf-zoom-out"]],decls:4,vars:0,consts:[["type","button","id","zoomOut","title","Zoom Out","data-l10n-id","zoom_out",1,"toolbarButton","zoomOut",2,"margin-top","2px"],["data-l10n-id","zoom_out_label"]],template:function(e,t){1&e&&(ss(0,"button",0),Qs(1," - "),ss(2,"span",1),Qs(3,"Zoom Out"),ls(),ls())},styles:[""]}),SD),iM=((CD=function e(){A(this,e),this.showZoomButtons=!0,this.zoomLevels=["auto","page-actual","page-fit","page-width",.5,.75,1,1.25,1.5,2,3,4]}).\u0275fac=function(e){return new(e||CD)},CD.\u0275cmp=ft({type:CD,selectors:[["pdf-zoom-toolbar"]],inputs:{showZoomButtons:"showZoomButtons",zoomLevels:"zoomLevels"},decls:4,vars:3,consts:[["id","toolbarViewerMiddle"],[2,"width","unset","max-width","unset","padding-top","3px",3,"zoomLevels"]],template:function(e,t){1&e&&(ss(0,"div",0),us(1,"pdf-zoom-out"),us(2,"pdf-zoom-in"),us(3,"pdf-zoom-dropdown",1),ls()),2&e&&(Fs("invisible",!t.showZoomButtons),xo(3),os("zoomLevels",t.zoomLevels))},directives:[nM,tM,eM],styles:[""]}),CD),rM=((AD=function(){function e(t){var n=this;A(this,e),this.notificationService=t,this.showSelectToolButton=!0,this.isSelected=!0;var i=this.notificationService.onPDFJSInit.subscribe(function(){n.onPdfJsInit(),i.unsubscribe()})}return m(e,[{key:"onPdfJsInit",value:function(){var e=this;window.PDFViewerApplication.eventBus.on("cursortoolchanged",function(t){var n=t.tool;return e.isSelected=n===yD.SELECT})}},{key:"onClick",value:function(){window.PDFViewerApplication.eventBus.dispatch("switchcursortool",{tool:yD.SELECT})}}]),e}()).\u0275fac=function(e){return new(e||AD)(rs(vD))},AD.\u0275cmp=ft({type:AD,selectors:[["pdf-select-tool"]],inputs:{showSelectToolButton:"showSelectToolButton"},decls:5,vars:4,consts:[["type","button","id","primaryCursorSelectTool","title","Enable text selection tool","data-l10n-id","cursor_text_select_tool",1,"toolbarButton","hiddenXXLView",3,"click"],["viewBox","0 0 24 24",2,"width","22px","height","22px"],["fill","currentColor","d","M2 4C2 2.89 2.9 2 4 2H7V4H4V7H2V4M22 4V7H20V4H17V2H20C21.1 2 22 2.89 22 4M2 20V17H4V20H7V22H4C2.9 22 2 21.11 2 20M10 2H14V4H10V2M10 20H14V22H10V20M2 10H4V14H2V10M18.5 13C20.4 13 22 14.6 22 16.5C22 19.1 18.5 23 18.5 23C18.5 23 15 19.1 15 16.5C15 14.6 16.6 13 18.5 13M18.5 17.8C19.2 17.8 19.8 17.2 19.7 16.6C19.7 16 19.1 15.4 18.5 15.4C17.9 15.4 17.3 15.9 17.3 16.6C17.3 17.2 17.8 17.8 18.5 17.8M20 10H22V12.34C21.42 11.84 20.74 11.45 20 11.23V10Z"],["data-l10n-id","cursor_text_select_tool_label"]],template:function(e,t){1&e&&(ss(0,"button",0),ms("click",function(){return t.onClick()}),On(),ss(1,"svg",1),us(2,"path",2),ls(),Mn(),ss(3,"span",3),Qs(4,"Text selection tool"),ls(),ls()),2&e&&Fs("invisible",!t.showSelectToolButton)("toggled",t.isSelected)},styles:["[_nghost-%COMP%]{margin-top:0;margin-right:-3px}[_nghost-%COMP%]:focus{outline:0}button[_ngcontent-%COMP%]:focus, svg[_ngcontent-%COMP%]:focus{outline:0}.toggled[_ngcontent-%COMP%]{background-color:#646464;border-color:rgba(0,0,0,.4) rgba(0,0,0,.45) rgba(0,0,0,.5);box-shadow:0 1px 1px rgba(0,0,0,.1) inset,0 0 1px rgba(0,0,0,.2) inset,0 1px 0 rgba(255,255,255,.05)}"]}),AD),oM=((xD=function(){function e(t,n){A(this,e),this.renderer=t,this.document=n,this.zoom=1,this.width=100,this.xs=490,this.sm=560,this.md=610,this.lg=660,this.xl=740,this.xxl=830}return m(e,[{key:"style",get:function(){return"\n@media all and (max-width: ".concat(this.xl,"px) {\n  #toolbarViewerMiddle {\n    display: table;\n    margin: auto;\n    left: auto;\n    position: inherit;\n    transform: none;\n  }\n}\n\n@media all and (max-width: 840px) {\n  #sidebarContent {\n    background-color: rgba(0, 0, 0, 0.7);\n  }\n\n  html[dir='ltr'] #outerContainer.sidebarOpen #viewerContainer {\n    left: 0px !important;\n  }\n  html[dir='rtl'] #outerContainer.sidebarOpen #viewerContainer {\n    right: 0px !important;\n  }\n\n  #outerContainer .hiddenLargeView,\n  #outerContainer .hiddenMediumView {\n    display: inherit;\n  }\n  #outerContainer .visibleLargeView,\n  #outerContainer .visibleMediumView {\n    display: none;\n  }\n}\n\n@media all and (max-width: ").concat(this.lg,"px) {\n  .toolbarButtonSpacer {\n    width: 15px;\n  }\n\n  #outerContainer .hiddenLargeView {\n    display: none;\n  }\n  #outerContainer .visibleLargeView {\n    display: inherit;\n  }\n}\n\n@media all and (max-width: ").concat(this.md,"px) {\n  .toolbarButtonSpacer {\n    display: none;\n  }\n  #outerContainer .hiddenMediumView {\n    display: none;\n  }\n  #outerContainer .visibleMediumView {\n    display: inherit;\n  }\n}\n\n@media all and (max-width: ").concat(this.sm,"px) {\n  .hiddenSmallView,\n  .hiddenSmallView * {\n    display: none;\n  }\n  .visibleSmallView {\n    display: inherit;\n  }\n  .toolbarButtonSpacer {\n    width: 0;\n  }\n  html[dir='ltr'] .findbar {\n    left: 38px;\n  }\n  html[dir='rtl'] .findbar {\n    right: 38px;\n  }\n}\n\n@media all and (max-width: ").concat(this.xs,"px) {\n  #scaleSelectContainer {\n    display: none;\n  }\n}\n\n.visibleXLView,\n.visibleXXLView,\n.visibleTinyView {\n  display: none;\n}\n\n.hiddenXLView,\n.hiddenXXLView {\n  display: unset;\n}\n\n@media all and (max-width: ").concat(this.xl,"px) {\n  #outerContainer .hiddenXLView {\n    display: none;\n  }\n  #outerContainer .visibleXLView {\n    display: inherit;\n  }\n\n  #toolbarViewerMiddle {\n    -webkit-transform: translateX(-36%);\n    transform: translateX(-36%);\n    display: unset;\n    margin: unset;\n    left: 50%;\n    position: absolute;\n  }\n}\n\n@media all and (max-width: ").concat(this.xxl,"px) {\n  #outerContainer .hiddenXXLView {\n    display: none;\n  }\n  #outerContainer .visibleXXLView {\n    display: inherit;\n  }\n}\n\n@media all and (max-width: ").concat(this.md,"px) {\n  #toolbarViewerMiddle {\n    -webkit-transform: translateX(-26%);\n    transform: translateX(-26%);\n  }\n}\n\n@media all and (max-width: ").concat(this.xs,"px) {\n  .hiddenTinyView,\n  .hiddenTinyView * {\n    display: none;\n  }\n  .visibleTinyView {\n    display: inherit;\n  }\n}\n  ")}},{key:"ngOnInit",value:function(){this.injectStyle()}},{key:"ngOnChanges",value:function(){var e=this.document.body.clientWidth/this.width*(this.zoom?this.zoom:1);this.xs=490*e,this.sm=560*e,this.md=610*e,this.lg=660*e,this.xl=740*e,this.xxl=830*e;var t=this.document.getElementById("pdf-dynamic-css");t&&(t.innerHTML=this.style)}},{key:"injectStyle",value:function(){var e=this.document.createElement("STYLE");e.id="pdf-dynamic-css",e.innerHTML=this.style,this.renderer.appendChild(this.document.head,e)}},{key:"ngOnDestroy",value:function(){var e=this.document.getElementById("pdf-dynamic-css");e&&e.parentElement&&e.parentElement.removeChild(e)}}]),e}()).\u0275fac=function(e){return new(e||xD)(rs(El),rs(od))},xD.\u0275cmp=ft({type:xD,selectors:[["pdf-dynamic-css"]],inputs:{zoom:"zoom",width:"width"},features:[Mt],decls:0,vars:0,template:function(e,t){},styles:[""]}),xD),aM=((kD=function(){function e(){var t=this;A(this,e),this.thumbnailDrawn=new Fu,this.top="32px",this._hideSidebarToolbar=!1,window.pdfThumbnailGeneratorReady=function(){return t.pdfThumbnailGeneratorReady()},window.pdfThumbnailGenerator=function(e,n,i,r,o){return t.createThumbnail(e,n,i,r,o)}}return m(e,[{key:"ngOnDestroy",value:function(){this.linkService=void 0}},{key:"pdfThumbnailGeneratorReady",value:function(){if(!this.thumbnailViewTemplate)return!1;var e=this.thumbnailViewTemplate.nativeElement;return!!e&&!!e.innerHTML&&e.innerHTML.length>0}},{key:"createThumbnail",value:function(e,t,n,i,r){this.linkService=t;var o=this.thumbnailViewTemplate.nativeElement.innerHTML.split(/_ng\w+-\w+-\w+=""/g).join("").split(/ng-\w+-\w+/g).join("").split(/<!--[\s\S]*?-->/g).join(""),a=e.canvasWidth+2+"px",s=e.canvasHeight+2+"px",l=o.split("WIDTH_OF_RING").join(a).split("HEIGHT_OF_RING").join(s).split("PAGE_NUMBER").join(n),u=this.createElementFromHTML(l);u.classList.remove("pdf-viewer-template");var c=u;c.href=t.getAnchorUrl("#page="+n),r.then(function(e){c.title=e}),c.onclick=function(){return t.page=n,!1},e.anchor=c;var d=u.getElementsByClassName("image-container")[0];e.ring=d,e.div=u.getElementsByClassName("thumbnail")[0],i.appendChild(u),this.thumbnailDrawn.emit({thumbnail:u,container:i,pageId:n})}},{key:"createElementFromHTML",value:function(e){var t=document.createElement("div");return t.innerHTML=e.trim(),t.firstChild}},{key:"onKeyDown",value:function(e){"ArrowDown"===e.code?this.linkService&&(e.ctrlKey||e.metaKey?this.linkService.page=this.linkService.pagesCount:this.linkService.page<this.linkService.pagesCount&&(this.linkService.page=this.linkService.page+1),e.preventDefault()):"ArrowUp"===e.code&&this.linkService&&(e.ctrlKey||e.metaKey?this.linkService.page=1:this.linkService.page>1&&(this.linkService.page=this.linkService.page-1),e.preventDefault())}},{key:"hideSidebarToolbar",set:function(e){this._hideSidebarToolbar=e,this.top=this._hideSidebarToolbar?"0":"32px"}}]),e}()).\u0275fac=function(e){return new(e||kD)},kD.\u0275cmp=ft({type:kD,selectors:[["pdf-sidebar-content"]],viewQuery:function(e,t){var n;1&e&&Qu(nD,1),2&e&&Zu(n=Ku())&&(t.thumbnailViewTemplate=n.first)},inputs:{hideSidebarToolbar:"hideSidebarToolbar",customThumbnail:"customThumbnail"},outputs:{thumbnailDrawn:"thumbnailDrawn"},ngContentSelectors:RE,decls:10,vars:3,consts:[["id","sidebarContent"],["thumbnailViewTemplate",""],[4,"ngTemplateOutlet"],["id","thumbnailView",3,"keydown"],["id","outlineView",1,"hidden"],["id","attachmentsView",1,"hidden"],["id","layersView",1,"hidden"],["defaultThumbnail",""],[1,"pdf-viewer-template"],["data-page-number","$page",1,"thumbnail"],[1,"thumbnailSelectionRing","image-container",2,"width","WIDTH_OF_RING","height","HEIGHT_OF_RING"]],template:function(e,t){if(1&e&&(As(),ss(0,"div",0),ss(1,"div",null,1),ns(3,iD,1,0,"ng-content",2),ls(),ss(4,"div",3),ms("keydown",function(e){return t.onKeyDown(e)}),ls(),us(5,"div",4),us(6,"div",5),us(7,"div",6),ls(),ns(8,rD,3,0,"ng-template",null,7,tc)),2&e){var n=is(9);Ls("top",t.top),xo(3),os("ngTemplateOutlet",t.customThumbnail?t.customThumbnail:n)}},directives:[Oh],styles:[""]}),kD),sM=((_D=function(){function e(){A(this,e)}return m(e,[{key:"ngOnInit",value:function(){}}]),e}()).\u0275fac=function(e){return new(e||_D)},_D.\u0275cmp=ft({type:_D,selectors:[["pdf-sidebar-toolbar"]],decls:21,vars:0,consts:[["id","toolbarSidebar"],["type","button","id","viewThumbnail","title","Show Thumbnails","data-l10n-id","thumbs",1,"toolbarButton","toggled"],["data-l10n-id","thumbs_label"],["viewBox","0 0 24 24",2,"width","20px","height","20px"],["fill","currentColor","d","M19,19H5V5H19M19,3H5A2,2 0 0,0 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5A2,2 0 0,0 19,3M13.96,12.29L11.21,15.83L9.25,13.47L6.5,17H17.5L13.96,12.29Z"],["type","button","id","viewOutline","title","Show Document Outline (double-click to expand/collapse all items)","data-l10n-id","document_outline","hidden","true",1,"toolbarButton"],["data-l10n-id","document_outline_label"],["fill","currentColor","d","M3,9H17V7H3V9M3,13H17V11H3V13M3,17H17V15H3V17M19,17H21V15H19V17M19,7V9H21V7H19M19,13H21V11H19V13Z"],["type","button","id","viewAttachments","title","Show Attachments","data-l10n-id","attachments","hidden","true",1,"toolbarButton"],["data-l10n-id","attachments_label"],["fill","currentColor","d","M16.5,6V17.5A4,4 0 0,1 12.5,21.5A4,4 0 0,1 8.5,17.5V5A2.5,2.5 0 0,1 11,2.5A2.5,2.5 0 0,1 13.5,5V15.5A1,1 0 0,1 12.5,16.5A1,1 0 0,1 11.5,15.5V6H10V15.5A2.5,2.5 0 0,0 12.5,18A2.5,2.5 0 0,0 15,15.5V5A4,4 0 0,0 11,1A4,4 0 0,0 7,5V17.5A5.5,5.5 0 0,0 12.5,23A5.5,5.5 0 0,0 18,17.5V6H16.5Z"],["id","viewLayers","title","Show Layers (double-click to reset all layers to the default state)","data-l10n-id","layers","hidden","true",1,"toolbarButton"],["data-l10n-id","layers_label"],["xmlns","http://www.w3.org/2000/svg","fill","currentColor","viewBox","0 0 4.233 4.233",2,"width","20px","height","20px"],["d","M.15 2.992c-.198.1-.2.266-.002.365l1.604.802a.93.93 0 00.729-.001l1.602-.801c.198-.1.197-.264 0-.364l-.695-.348c-1.306.595-2.542 0-2.542 0m-.264.53l.658-.329c.6.252 1.238.244 1.754 0l.659.329-1.536.768zM.15 1.935c-.198.1-.198.265 0 .364l1.604.802a.926.926 0 00.727 0l1.603-.802c.198-.099.198-.264 0-.363l-.694-.35c-1.14.56-2.546.001-2.546.001m-.264.53l.664-.332c.52.266 1.261.235 1.75.002l.659.33-1.537.768zM.15.877c-.198.099-.198.264 0 .363l1.604.802a.926.926 0 00.727 0l1.603-.802c.198-.099.198-.264 0-.363L2.481.075a.926.926 0 00-.727 0zm.43.182L2.117.29l1.538.769-1.538.768z"]],template:function(e,t){1&e&&(ss(0,"div",0),ss(1,"button",1),ss(2,"span",2),Qs(3,"Thumbnails"),ls(),On(),ss(4,"svg",3),us(5,"path",4),ls(),ls(),Mn(),ss(6,"button",5),ss(7,"span",6),Qs(8,"Document Outline"),ls(),On(),ss(9,"svg",3),us(10,"path",7),ls(),ls(),Mn(),ss(11,"button",8),ss(12,"span",9),Qs(13,"Attachments"),ls(),On(),ss(14,"svg",3),us(15,"path",10),ls(),ls(),Mn(),ss(16,"button",11),ss(17,"span",12),Qs(18,"Layers"),ls(),On(),ss(19,"svg",13),us(20,"path",14),ls(),ls(),ls())},styles:["button[_ngcontent-%COMP%]{margin-right:4px!important}div#toolbarSidebar[_ngcontent-%COMP%] > button[_ngcontent-%COMP%]:first-child{margin-left:4px!important}"]}),_D),lM=((wD=function e(){A(this,e)}).\u0275fac=function(e){return new(e||wD)},wD.\u0275cmp=ft({type:wD,selectors:[["pdf-light-theme"]],decls:0,vars:0,template:function(e,t){},styles:["ngx-extended-pdf-viewer .dropdownToolbarButton::after{content:url(\"data:image/svg+xml; utf8, <svg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'><path fill='rgb(90, 90, 90)' d='M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z' /></svg>\")}ngx-extended-pdf-viewer .textLayer{position:absolute;left:0;top:0;right:0;bottom:0;overflow:hidden;opacity:.2;line-height:1}ngx-extended-pdf-viewer .textLayer>span{color:transparent;position:absolute;white-space:pre;cursor:text;-webkit-transform-origin:0 0;transform-origin:0 0}ngx-extended-pdf-viewer .textLayer .highlight{margin:-1px;padding:1px;background-color:var(#b400aa);border-radius:4px}ngx-extended-pdf-viewer .textLayer .highlight.begin{border-radius:4px 0 0 4px}ngx-extended-pdf-viewer .textLayer .highlight.end{border-radius:0 4px 4px 0}ngx-extended-pdf-viewer .textLayer .highlight.middle{border-radius:0}ngx-extended-pdf-viewer .textLayer .highlight.selected{background-color:#006400}ngx-extended-pdf-viewer .textLayer ::-moz-selection{background:#00f}ngx-extended-pdf-viewer .textLayer ::selection{background:#00f}ngx-extended-pdf-viewer .textLayer .endOfContent{display:block;position:absolute;left:0;top:100%;right:0;bottom:0;z-index:-1;cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}ngx-extended-pdf-viewer .textLayer .endOfContent.active{top:0}ngx-extended-pdf-viewer .annotationLayer section{position:absolute}ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.pushButton>a,ngx-extended-pdf-viewer .annotationLayer .linkAnnotation>a{position:absolute;font-size:1em;top:0;left:0;width:100%;height:100%}ngx-extended-pdf-viewer .annotationLayer .textAnnotation img{position:absolute;cursor:pointer}ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.checkBox input,ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.radioButton input,ngx-extended-pdf-viewer .annotationLayer .choiceWidgetAnnotation select,ngx-extended-pdf-viewer .annotationLayer .textWidgetAnnotation input,ngx-extended-pdf-viewer .annotationLayer .textWidgetAnnotation textarea{background-color:rgba(0,54,255,.13);color:#5a5a5a;border:1px solid transparent;box-sizing:border-box;font-size:9px;height:100%;margin:0;padding:0 3px;vertical-align:top;width:100%}ngx-extended-pdf-viewer .annotationLayer .choiceWidgetAnnotation select option{padding:0}ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.radioButton input{border-radius:50%}ngx-extended-pdf-viewer .annotationLayer .textWidgetAnnotation textarea{font:message-box;font-size:9px;resize:none}ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.checkBox input[disabled],ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.radioButton input[disabled],ngx-extended-pdf-viewer .annotationLayer .choiceWidgetAnnotation select[disabled],ngx-extended-pdf-viewer .annotationLayer .textWidgetAnnotation input[disabled],ngx-extended-pdf-viewer .annotationLayer .textWidgetAnnotation textarea[disabled]{background:0 0;border:1px solid transparent;cursor:not-allowed}ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after,ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before,ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.radioButton input:checked:before{background-color:#5a5a5a;content:'';display:block;position:absolute}ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after,ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before{height:80%;left:45%;width:1px}ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before{-webkit-transform:rotate(45deg);transform:rotate(45deg)}ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after{-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.radioButton input:checked:before{border-radius:50%;height:50%;left:30%;top:20%;width:50%}ngx-extended-pdf-viewer .annotationLayer .textWidgetAnnotation input.comb{font-family:monospace;padding-left:2px;padding-right:0}ngx-extended-pdf-viewer .annotationLayer .textWidgetAnnotation input.comb:focus{width:115%}ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.checkBox input,ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.radioButton input{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:0}ngx-extended-pdf-viewer .annotationLayer .popupWrapper{position:absolute;width:20em}ngx-extended-pdf-viewer .annotationLayer .popup{position:absolute;z-index:4;max-width:20em;background-color:#ff9;box-shadow:0 2px 5px #888;border-radius:2px;padding:6px;margin-left:5px;cursor:pointer;font:message-box;font-size:9px;word-wrap:break-word}ngx-extended-pdf-viewer .annotationLayer .popup>*{font-size:9px}ngx-extended-pdf-viewer .annotationLayer .popup h1{display:inline-block}ngx-extended-pdf-viewer .annotationLayer .popup span{display:inline-block;margin-left:5px}ngx-extended-pdf-viewer .annotationLayer .popup p{border-top:1px solid #333;margin-top:2px;padding-top:2px}ngx-extended-pdf-viewer .annotationLayer .caretAnnotation,ngx-extended-pdf-viewer .annotationLayer .circleAnnotation svg ellipse,ngx-extended-pdf-viewer .annotationLayer .fileAttachmentAnnotation,ngx-extended-pdf-viewer .annotationLayer .freeTextAnnotation,ngx-extended-pdf-viewer .annotationLayer .highlightAnnotation,ngx-extended-pdf-viewer .annotationLayer .inkAnnotation svg polyline,ngx-extended-pdf-viewer .annotationLayer .lineAnnotation svg line,ngx-extended-pdf-viewer .annotationLayer .polygonAnnotation svg polygon,ngx-extended-pdf-viewer .annotationLayer .polylineAnnotation svg polyline,ngx-extended-pdf-viewer .annotationLayer .squareAnnotation svg rect,ngx-extended-pdf-viewer .annotationLayer .squigglyAnnotation,ngx-extended-pdf-viewer .annotationLayer .stampAnnotation,ngx-extended-pdf-viewer .annotationLayer .strikeoutAnnotation,ngx-extended-pdf-viewer .annotationLayer .underlineAnnotation{cursor:pointer}ngx-extended-pdf-viewer .pdfViewer .canvasWrapper{overflow:hidden}ngx-extended-pdf-viewer .pdfViewer .page{direction:ltr;width:816px;height:1056px;margin:1px auto -8px;position:relative;overflow:visible;border:9px solid transparent;background-clip:content-box;-o-border-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAATCAQAAADYWf5HAAAA6UlEQVR4Xl2Pi2rEMAwE16fm1f7/r14v7w4rI0IzLAF7hLxNevBSEMEF5+OilNCsRd8ZMyn+a4NmsOT8WJw1lFbSYgGFzF2bLFoLjTClWjKKGRWpDYAGXUnZ4uhbBUzF3Oe/GG/ue2fn4GgsyXhNgysV2JnrhKEMg4fEZcALmiKbNhBBRFpSyDOj1G4QOVly6O1FV54ZZq8OVygrciDt6JazRgi1ljTPH0gbrPmHPXAbCiDd4GawIjip1TPh9tt2sz24qaCjr/jAb/GBFTbq9KZ7Ke/Cqt8nayUikZKsWZK7Fe6bg5dOUt8fZHWG2BHc+6EAAAAASUVORK5CYII=) 9 9 repeat;border-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAATCAQAAADYWf5HAAAA6UlEQVR4Xl2Pi2rEMAwE16fm1f7/r14v7w4rI0IzLAF7hLxNevBSEMEF5+OilNCsRd8ZMyn+a4NmsOT8WJw1lFbSYgGFzF2bLFoLjTClWjKKGRWpDYAGXUnZ4uhbBUzF3Oe/GG/ue2fn4GgsyXhNgysV2JnrhKEMg4fEZcALmiKbNhBBRFpSyDOj1G4QOVly6O1FV54ZZq8OVygrciDt6JazRgi1ljTPH0gbrPmHPXAbCiDd4GawIjip1TPh9tt2sz24qaCjr/jAb/GBFTbq9KZ7Ke/Cqt8nayUikZKsWZK7Fe6bg5dOUt8fZHWG2BHc+6EAAAAASUVORK5CYII=) 9 9 repeat;background-color:#fff}ngx-extended-pdf-viewer .pdfViewer.removePageBorders .page{margin:0 auto 10px;border:none}ngx-extended-pdf-viewer .pdfViewer.singlePageView{display:inline-block}ngx-extended-pdf-viewer .pdfViewer.singlePageView .page{margin:0;border:none}ngx-extended-pdf-viewer .pdfViewer.scrollHorizontal,ngx-extended-pdf-viewer .pdfViewer.scrollWrapped,ngx-extended-pdf-viewer .spread{margin-left:3.5px;margin-right:3.5px;text-align:center}ngx-extended-pdf-viewer .pdfViewer.scrollHorizontal,ngx-extended-pdf-viewer .spread{white-space:nowrap}ngx-extended-pdf-viewer .pdfViewer.removePageBorders,ngx-extended-pdf-viewer .pdfViewer.scrollHorizontal .spread,ngx-extended-pdf-viewer .pdfViewer.scrollWrapped .spread{margin-left:0;margin-right:0}ngx-extended-pdf-viewer .pdfViewer.scrollHorizontal .page,ngx-extended-pdf-viewer .pdfViewer.scrollHorizontal .spread,ngx-extended-pdf-viewer .pdfViewer.scrollWrapped .page,ngx-extended-pdf-viewer .pdfViewer.scrollWrapped .spread,ngx-extended-pdf-viewer .spread .page{display:inline-block;vertical-align:middle}ngx-extended-pdf-viewer .pdfViewer.scrollHorizontal .page,ngx-extended-pdf-viewer .pdfViewer.scrollWrapped .page,ngx-extended-pdf-viewer .spread .page{margin-left:-3.5px;margin-right:-3.5px}ngx-extended-pdf-viewer .pdfViewer.removePageBorders .spread .page,ngx-extended-pdf-viewer .pdfViewer.removePageBorders.scrollHorizontal .page,ngx-extended-pdf-viewer .pdfViewer.removePageBorders.scrollWrapped .page{margin-left:5px;margin-right:5px}ngx-extended-pdf-viewer .pdfViewer .page canvas{margin:0;display:block}ngx-extended-pdf-viewer .pdfViewer .page canvas[hidden]{display:none}ngx-extended-pdf-viewer .pdfViewer .page .loadingIcon{position:absolute;display:block;left:0;top:0;right:0;bottom:0;background:url(data:image/gif;base64,R0lGODlhGAAYAPQAAP///wAAAM7Ozvr6+uDg4LCwsOjo6I6OjsjIyJycnNjY2KioqMDAwPLy8nZ2doaGhri4uGhoaAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH/C05FVFNDQVBFMi4wAwEAAAAh/hpDcmVhdGVkIHdpdGggYWpheGxvYWQuaW5mbwAh+QQJBwAAACwAAAAAGAAYAAAFriAgjiQAQWVaDgr5POSgkoTDjFE0NoQ8iw8HQZQTDQjDn4jhSABhAAOhoTqSDg7qSUQwxEaEwwFhXHhHgzOA1xshxAnfTzotGRaHglJqkJcaVEqCgyoCBQkJBQKDDXQGDYaIioyOgYSXA36XIgYMBWRzXZoKBQUMmil0lgalLSIClgBpO0g+s26nUWddXyoEDIsACq5SsTMMDIECwUdJPw0Mzsu0qHYkw72bBmozIQAh+QQJBwAAACwAAAAAGAAYAAAFsCAgjiTAMGVaDgR5HKQwqKNxIKPjjFCk0KNXC6ATKSI7oAhxWIhezwhENTCQEoeGCdWIPEgzESGxEIgGBWstEW4QCGGAIJEoxGmGt5ZkgCRQQHkGd2CESoeIIwoMBQUMP4cNeQQGDYuNj4iSb5WJnmeGng0CDGaBlIQEJziHk3sABidDAHBgagButSKvAAoyuHuUYHgCkAZqebw0AgLBQyyzNKO3byNuoSS8x8OfwIchACH5BAkHAAAALAAAAAAYABgAAAW4ICCOJIAgZVoOBJkkpDKoo5EI43GMjNPSokXCINKJCI4HcCRIQEQvqIOhGhBHhUTDhGo4diOZyFAoKEQDxra2mAEgjghOpCgz3LTBIxJ5kgwMBShACREHZ1V4Kg1rS44pBAgMDAg/Sw0GBAQGDZGTlY+YmpyPpSQDiqYiDQoCliqZBqkGAgKIS5kEjQ21VwCyp76dBHiNvz+MR74AqSOdVwbQuo+abppo10ssjdkAnc0rf8vgl8YqIQAh+QQJBwAAACwAAAAAGAAYAAAFrCAgjiQgCGVaDgZZFCQxqKNRKGOSjMjR0qLXTyciHA7AkaLACMIAiwOC1iAxCrMToHHYjWQiA4NBEA0Q1RpWxHg4cMXxNDk4OBxNUkPAQAEXDgllKgMzQA1pSYopBgonCj9JEA8REQ8QjY+RQJOVl4ugoYssBJuMpYYjDQSliwasiQOwNakALKqsqbWvIohFm7V6rQAGP6+JQLlFg7KDQLKJrLjBKbvAor3IKiEAIfkECQcAAAAsAAAAABgAGAAABbUgII4koChlmhokw5DEoI4NQ4xFMQoJO4uuhignMiQWvxGBIQC+AJBEUyUcIRiyE6CR0CllW4HABxBURTUw4nC4FcWo5CDBRpQaCoF7VjgsyCUDYDMNZ0mHdwYEBAaGMwwHDg4HDA2KjI4qkJKUiJ6faJkiA4qAKQkRB3E0i6YpAw8RERAjA4tnBoMApCMQDhFTuySKoSKMJAq6rD4GzASiJYtgi6PUcs9Kew0xh7rNJMqIhYchACH5BAkHAAAALAAAAAAYABgAAAW0ICCOJEAQZZo2JIKQxqCOjWCMDDMqxT2LAgELkBMZCoXfyCBQiFwiRsGpku0EshNgUNAtrYPT0GQVNRBWwSKBMp98P24iISgNDAS4ipGA6JUpA2WAhDR4eWM/CAkHBwkIDYcGiTOLjY+FmZkNlCN3eUoLDmwlDW+AAwcODl5bYl8wCVYMDw5UWzBtnAANEQ8kBIM0oAAGPgcREIQnVloAChEOqARjzgAQEbczg8YkWJq8nSUhACH5BAkHAAAALAAAAAAYABgAAAWtICCOJGAYZZoOpKKQqDoORDMKwkgwtiwSBBYAJ2owGL5RgxBziQQMgkwoMkhNqAEDARPSaiMDFdDIiRSFQowMXE8Z6RdpYHWnEAWGPVkajPmARVZMPUkCBQkJBQINgwaFPoeJi4GVlQ2Qc3VJBQcLV0ptfAMJBwdcIl+FYjALQgimoGNWIhAQZA4HXSpLMQ8PIgkOSHxAQhERPw7ASTSFyCMMDqBTJL8tf3y2fCEAIfkECQcAAAAsAAAAABgAGAAABa8gII4k0DRlmg6kYZCoOg5EDBDEaAi2jLO3nEkgkMEIL4BLpBAkVy3hCTAQKGAznM0AFNFGBAbj2cA9jQixcGZAGgECBu/9HnTp+FGjjezJFAwFBQwKe2Z+KoCChHmNjVMqA21nKQwJEJRlbnUFCQlFXlpeCWcGBUACCwlrdw8RKGImBwktdyMQEQciB7oACwcIeA4RVwAODiIGvHQKERAjxyMIB5QlVSTLYLZ0sW8hACH5BAkHAAAALAAAAAAYABgAAAW0ICCOJNA0ZZoOpGGQrDoOBCoSxNgQsQzgMZyIlvOJdi+AS2SoyXrK4umWPM5wNiV0UDUIBNkdoepTfMkA7thIECiyRtUAGq8fm2O4jIBgMBA1eAZ6Knx+gHaJR4QwdCMKBxEJRggFDGgQEREPjjAMBQUKIwIRDhBDC2QNDDEKoEkDoiMHDigICGkJBS2dDA6TAAnAEAkCdQ8ORQcHTAkLcQQODLPMIgIJaCWxJMIkPIoAt3EhACH5BAkHAAAALAAAAAAYABgAAAWtICCOJNA0ZZoOpGGQrDoOBCoSxNgQsQzgMZyIlvOJdi+AS2SoyXrK4umWHM5wNiV0UN3xdLiqr+mENcWpM9TIbrsBkEck8oC0DQqBQGGIz+t3eXtob0ZTPgNrIwQJDgtGAgwCWSIMDg4HiiUIDAxFAAoODwxDBWINCEGdSTQkCQcoegADBaQ6MggHjwAFBZUFCm0HB0kJCUy9bAYHCCPGIwqmRq0jySMGmj6yRiEAIfkECQcAAAAsAAAAABgAGAAABbIgII4k0DRlmg6kYZCsOg4EKhLE2BCxDOAxnIiW84l2L4BLZKipBopW8XRLDkeCiAMyMvQAA+uON4JEIo+vqukkKQ6RhLHplVGN+LyKcXA4Dgx5DWwGDXx+gIKENnqNdzIDaiMECwcFRgQCCowiCAcHCZIlCgICVgSfCEMMnA0CXaU2YSQFoQAKUQMMqjoyAglcAAyBAAIMRUYLCUkFlybDeAYJryLNk6xGNCTQXY0juHghACH5BAkHAAAALAAAAAAYABgAAAWzICCOJNA0ZVoOAmkY5KCSSgSNBDE2hDyLjohClBMNij8RJHIQvZwEVOpIekRQJyJs5AMoHA+GMbE1lnm9EcPhOHRnhpwUl3AsknHDm5RN+v8qCAkHBwkIfw1xBAYNgoSGiIqMgJQifZUjBhAJYj95ewIJCQV7KYpzBAkLLQADCHOtOpY5PgNlAAykAEUsQ1wzCgWdCIdeArczBQVbDJ0NAqyeBb64nQAGArBTt8R8mLuyPyEAOwAAAAAAAAAAAA==) center no-repeat}ngx-extended-pdf-viewer .pdfPresentationMode .pdfViewer{margin-left:0;margin-right:0}ngx-extended-pdf-viewer .pdfPresentationMode .pdfViewer .page,ngx-extended-pdf-viewer .pdfPresentationMode .pdfViewer .spread{display:block}ngx-extended-pdf-viewer .pdfPresentationMode .pdfViewer .page,ngx-extended-pdf-viewer .pdfPresentationMode .pdfViewer.removePageBorders .page{margin-left:auto;margin-right:auto}ngx-extended-pdf-viewer .pdfPresentationMode:-ms-fullscreen .pdfViewer .page{margin-bottom:100%!important}ngx-extended-pdf-viewer .pdfPresentationMode:-webkit-full-screen .pdfViewer .page{margin-bottom:100%;border:0}ngx-extended-pdf-viewer .pdfPresentationMode:-moz-full-screen .pdfViewer .page{margin-bottom:100%;border:0}ngx-extended-pdf-viewer .pdfPresentationMode:fullscreen .pdfViewer .page{margin-bottom:100%;border:0}ngx-extended-pdf-viewer .html *{padding:0;margin:0}ngx-extended-pdf-viewer .html{height:100%;width:100%;font-size:10px}ngx-extended-pdf-viewer .body{height:100%;width:100%}ngx-extended-pdf-viewer .body,ngx-extended-pdf-viewer .pdf-viewer button,ngx-extended-pdf-viewer .pdf-viewer input,ngx-extended-pdf-viewer .pdf-viewer select{font:message-box;outline:0}ngx-extended-pdf-viewer select{background-color:#fff!important}ngx-extended-pdf-viewer .hidden,ngx-extended-pdf-viewer [hidden]{display:none!important}ngx-extended-pdf-viewer .pdfViewer.enablePermissions .textLayer>span{-webkit-user-select:none!important;-moz-user-select:none!important;-ms-user-select:none!important;user-select:none!important;cursor:not-allowed}ngx-extended-pdf-viewer #viewerContainer.pdfPresentationMode:-ms-fullscreen{top:0!important;overflow:hidden!important}ngx-extended-pdf-viewer #viewerContainer.pdfPresentationMode:-ms-fullscreen::-ms-backdrop{background-color:#f9f9f9}ngx-extended-pdf-viewer #viewerContainer.pdfPresentationMode:-webkit-full-screen{top:0;border-top:2px solid transparent;background-color:#f9f9f9;width:100%;height:100%;overflow:hidden;cursor:none;-webkit-user-select:none;user-select:none}ngx-extended-pdf-viewer #viewerContainer.pdfPresentationMode:-moz-full-screen{top:0;border-top:2px solid transparent;background-color:#f9f9f9;width:100%;height:100%;overflow:hidden;cursor:none;-moz-user-select:none;user-select:none}ngx-extended-pdf-viewer #viewerContainer.pdfPresentationMode:-ms-fullscreen{border-top:2px solid transparent;background-color:#f9f9f9;width:100%;height:100%;cursor:none;-ms-user-select:none;user-select:none}ngx-extended-pdf-viewer #viewerContainer.pdfPresentationMode:fullscreen{top:0;border-top:2px solid transparent;background-color:#f9f9f9;width:100%;height:100%;overflow:hidden;cursor:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}ngx-extended-pdf-viewer .pdfPresentationMode:-webkit-full-screen a:not(.internalLink){display:none}ngx-extended-pdf-viewer .pdfPresentationMode:-moz-full-screen a:not(.internalLink){display:none}ngx-extended-pdf-viewer .pdfPresentationMode:-ms-fullscreen a:not(.internalLink){display:none}ngx-extended-pdf-viewer .pdfPresentationMode:fullscreen a:not(.internalLink){display:none}ngx-extended-pdf-viewer .pdfPresentationMode:-webkit-full-screen .textLayer>span{cursor:none}ngx-extended-pdf-viewer .pdfPresentationMode:-moz-full-screen .textLayer>span{cursor:none}ngx-extended-pdf-viewer .pdfPresentationMode:-ms-fullscreen .textLayer>span{cursor:none}ngx-extended-pdf-viewer .pdfPresentationMode:fullscreen .textLayer>span{cursor:none}ngx-extended-pdf-viewer .pdfPresentationMode.pdfPresentationModeControls .textLayer>span,ngx-extended-pdf-viewer .pdfPresentationMode.pdfPresentationModeControls>*{cursor:default}ngx-extended-pdf-viewer #outerContainer{width:100%;height:100%;position:relative;-webkit-clip-path:inset(0 0 0 0);clip-path:inset(0 0 0 0)}ngx-extended-pdf-viewer #sidebarContainer{position:absolute;top:32px;bottom:0;width:200px;visibility:hidden;z-index:2;border-top:1px solid #333;transition-duration:.2s;transition-timing-function:ease}html[dir=ltr] ngx-extended-pdf-viewer #sidebarContainer{transition-property:left;left:-200px;left:calc(0px - $sidebar-width)}html[dir=rtl] ngx-extended-pdf-viewer #sidebarContainer{transition-property:right;right:-200px;right:calc(0px - $sidebar-width)}ngx-extended-pdf-viewer .loadingInProgress #sidebarContainer{top:36px}ngx-extended-pdf-viewer #outerContainer.sidebarResizing #sidebarContainer{transition-duration:0s;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}ngx-extended-pdf-viewer #outerContainer.sidebarMoving #sidebarContainer,ngx-extended-pdf-viewer #outerContainer.sidebarOpen #sidebarContainer{visibility:visible}html[dir=ltr] ngx-extended-pdf-viewer #outerContainer.sidebarOpen #sidebarContainer{left:0}html[dir=rtl] ngx-extended-pdf-viewer #outerContainer.sidebarOpen #sidebarContainer{right:0}ngx-extended-pdf-viewer #mainContainer{position:absolute;top:0;right:0;bottom:0;left:0;min-width:320px}ngx-extended-pdf-viewer #sidebarContent{top:32px;bottom:0;overflow:auto;-webkit-overflow-scrolling:touch;position:absolute;width:100%;background-color:#e3e1e6}html[dir=ltr] ngx-extended-pdf-viewer #sidebarContent{left:0}html[dir=rtl] ngx-extended-pdf-viewer #sidebarContent{right:0}ngx-extended-pdf-viewer #viewerContainer{-webkit-overflow-scrolling:touch;top:32px;right:0;bottom:0;left:0;outline:0}ngx-extended-pdf-viewer #viewerContainer:not(.pdfPresentationMode){transition-duration:.2s;transition-timing-function:ease}ngx-extended-pdf-viewer #outerContainer.sidebarResizing #viewerContainer{transition-duration:0s}html[dir=ltr] ngx-extended-pdf-viewer #outerContainer.sidebarOpen #viewerContainer:not(.pdfPresentationMode){transition-property:left;left:200px}html[dir=rtl] ngx-extended-pdf-viewer #outerContainer.sidebarOpen #viewerContainer:not(.pdfPresentationMode){transition-property:right;right:200px}ngx-extended-pdf-viewer .toolbar{position:relative;left:0;right:0;z-index:7;cursor:default;border:1px solid #ddd}ngx-extended-pdf-viewer #toolbarContainer{width:100%}ngx-extended-pdf-viewer #toolbarSidebar{width:100%;height:32px;background-color:var(#e3e1e6);color:#5a5a5a;border:none;padding-top:1px}ngx-extended-pdf-viewer #sidebarResizer{position:absolute;top:0;bottom:0;width:6px;z-index:4;cursor:ew-resize}html[dir=ltr] ngx-extended-pdf-viewer #sidebarResizer{right:-6px}html[dir=rtl] ngx-extended-pdf-viewer #sidebarResizer{left:-6px}ngx-extended-pdf-viewer #toolbarContainer,ngx-extended-pdf-viewer .findbar,ngx-extended-pdf-viewer .secondaryToolbar{position:relative;height:32px;background-color:#f9f9f9}ngx-extended-pdf-viewer #toolbarViewer{height:32px}ngx-extended-pdf-viewer #loadingBar{position:relative;width:100%;height:4px;background-color:#333;border-bottom:1px solid #333}ngx-extended-pdf-viewer #loadingBar .progress{position:absolute;top:0;left:0;width:0%;height:100%;background-color:#ddd;overflow:hidden;transition:width .2s}@-webkit-keyframes progressIndeterminate{0%{left:-142px}100%{left:0}}@keyframes progressIndeterminate{0%{left:-142px}100%{left:0}}ngx-extended-pdf-viewer #loadingBar .progress.indeterminate{background-color:#999;transition:none}ngx-extended-pdf-viewer #loadingBar .progress.indeterminate .glimmer{position:absolute;top:0;left:0;height:100%;width:calc(100% + 150px);background:repeating-linear-gradient(135deg,#bbb 0,#999 5px,#999 45px,#ddd 55px,#ddd 95px,#bbb 100px);-webkit-animation:950ms linear infinite progressIndeterminate;animation:950ms linear infinite progressIndeterminate}ngx-extended-pdf-viewer .findbar,ngx-extended-pdf-viewer .secondaryToolbar{top:40px;position:absolute;z-index:7;height:auto;min-width:16px;padding:0 6px;margin:4px 2px;color:#5a5a5a;font-size:12px;line-height:14px;text-align:left;cursor:default}ngx-extended-pdf-viewer .findbar{min-width:300px}ngx-extended-pdf-viewer .findbar>div{height:32px}ngx-extended-pdf-viewer .findbar.wrapContainers>div{clear:both}ngx-extended-pdf-viewer .findbar.wrapContainers>div#findbarMessageContainer{height:auto}html[dir=ltr] ngx-extended-pdf-viewer .findbar{left:34px}html[dir=rtl] ngx-extended-pdf-viewer .findbar{right:34px}ngx-extended-pdf-viewer .findbar label{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}ngx-extended-pdf-viewer #findInput{width:200px}ngx-extended-pdf-viewer #findInput::-webkit-input-placeholder{color:#bfbfbf}ngx-extended-pdf-viewer #findInput::-moz-placeholder{font-style:italic}ngx-extended-pdf-viewer #findInput:-ms-input-placeholder{font-style:italic}ngx-extended-pdf-viewer #findInput::-ms-input-placeholder{font-style:italic}ngx-extended-pdf-viewer #findInput::placeholder{font-style:italic}ngx-extended-pdf-viewer #findInput[data-status=pending]{background-repeat:no-repeat;background-position:right}html[dir=rtl] ngx-extended-pdf-viewer #findInput[data-status=pending]{background-position:left}ngx-extended-pdf-viewer .secondaryToolbar{padding:6px;height:auto;z-index:8}html[dir=ltr] ngx-extended-pdf-viewer .secondaryToolbar{right:4px}html[dir=rtl] ngx-extended-pdf-viewer .secondaryToolbar{left:4px}ngx-extended-pdf-viewer #secondaryToolbarButtonContainer{max-width:200px;max-height:400px;overflow-y:auto;-webkit-overflow-scrolling:touch;margin-bottom:-4px}ngx-extended-pdf-viewer #secondaryToolbarButtonContainer.hiddenScrollModeButtons>.scrollModeButtons,ngx-extended-pdf-viewer #secondaryToolbarButtonContainer.hiddenSpreadModeButtons>.spreadModeButtons{display:none!important}ngx-extended-pdf-viewer .doorHanger,ngx-extended-pdf-viewer .doorHangerRight{border:1px solid rgba(0,0,0,.5);border-radius:2px}ngx-extended-pdf-viewer .doorHanger:after,ngx-extended-pdf-viewer .doorHanger:before,ngx-extended-pdf-viewer .doorHangerRight:after,ngx-extended-pdf-viewer .doorHangerRight:before{bottom:100%;border:solid transparent;content:' ';height:0;width:0;position:absolute;pointer-events:none}ngx-extended-pdf-viewer .doorHanger:after,ngx-extended-pdf-viewer .doorHangerRight:after{border-bottom-color:#f9f9f9;border-width:8px}ngx-extended-pdf-viewer .doorHanger:before,ngx-extended-pdf-viewer .doorHangerRight:before{border-bottom-color:rgba(0,0,0,.5);border-width:9px}html[dir=ltr] ngx-extended-pdf-viewer .doorHanger:after,html[dir=rtl] ngx-extended-pdf-viewer .doorHangerRight:after{left:13px;margin-left:-8px}html[dir=ltr] ngx-extended-pdf-viewer .doorHanger:before,html[dir=rtl] ngx-extended-pdf-viewer .doorHangerRight:before{left:13px;margin-left:-9px}html[dir=ltr] ngx-extended-pdf-viewer .doorHangerRight:after,html[dir=rtl] ngx-extended-pdf-viewer .doorHanger:after{right:13px;margin-right:-8px}html[dir=ltr] ngx-extended-pdf-viewer .doorHangerRight:before,html[dir=rtl] ngx-extended-pdf-viewer .doorHanger:before{right:13px;margin-right:-9px}ngx-extended-pdf-viewer #findResultsCount{background-color:#5a5a5a;color:#f9f9f9;text-align:center;padding:3px 4px}ngx-extended-pdf-viewer #findMsg{font-style:italic;color:#f66}ngx-extended-pdf-viewer #findMsg:empty{display:none}ngx-extended-pdf-viewer #findInput.notFound{background-color:#f66}ngx-extended-pdf-viewer #toolbarViewerMiddle{position:absolute;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%)}html[dir=ltr] ngx-extended-pdf-viewer #toolbarViewerLeft,html[dir=rtl] ngx-extended-pdf-viewer #toolbarViewerRight{float:left;margin-left:4px}html[dir=ltr] ngx-extended-pdf-viewer #toolbarViewerRight,html[dir=rtl] ngx-extended-pdf-viewer #toolbarViewerLeft{float:right;margin-right:4px}html[dir=ltr] ngx-extended-pdf-viewer #toolbarViewerLeft>*,html[dir=ltr] ngx-extended-pdf-viewer #toolbarViewerMiddle>*,html[dir=ltr] ngx-extended-pdf-viewer #toolbarViewerRight>*,html[dir=ltr] ngx-extended-pdf-viewer .findbar *{position:relative;float:left}html[dir=rtl] ngx-extended-pdf-viewer #toolbarViewerLeft>*,html[dir=rtl] ngx-extended-pdf-viewer #toolbarViewerMiddle>*,html[dir=rtl] ngx-extended-pdf-viewer #toolbarViewerRight>*,html[dir=rtl] ngx-extended-pdf-viewer .findbar *{position:relative;float:right}ngx-extended-pdf-viewer .overlayButton,ngx-extended-pdf-viewer .secondaryToolbarButton,ngx-extended-pdf-viewer .toolbarButton{border:0;background:0 0;width:32px;height:25px}ngx-extended-pdf-viewer .toolbarButton>span{display:inline-block;width:0;height:0;overflow:hidden}ngx-extended-pdf-viewer .overlayButton[disabled],ngx-extended-pdf-viewer .secondaryToolbarButton[disabled],ngx-extended-pdf-viewer .toolbarButton[disabled]{opacity:.5}ngx-extended-pdf-viewer .dropdownToolbarButton,ngx-extended-pdf-viewer .overlayButton,ngx-extended-pdf-viewer .secondaryToolbarButton,ngx-extended-pdf-viewer .toolbarButton{min-width:16px;padding:2px 6px 0;border:1px solid transparent;border-radius:2px;color:#5a5a5a;font-size:12px;line-height:14px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}html[dir=rtl] ngx-extended-pdf-viewer .dropdownToolbarButton,html[dir=rtl] ngx-extended-pdf-viewer .overlayButton,html[dir=rtl] ngx-extended-pdf-viewer .toolbarButton{margin:3px 0 4px 2px}ngx-extended-pdf-viewer .dropdownToolbarButton,ngx-extended-pdf-viewer .overlayButton{background-color:rgba(0,0,0,.2);background-clip:padding-box;border:1px solid rgba(0,0,0,.4)}ngx-extended-pdf-viewer .secondaryToolbarButton.toggled,ngx-extended-pdf-viewer .toolbarButton.toggled{background-color:rgba(0,0,0,.2);border-color:rgba(0,0,0,.4)}ngx-extended-pdf-viewer .dropdownToolbarButton{width:140px;padding:0;overflow:hidden}html[dir=ltr] ngx-extended-pdf-viewer .dropdownToolbarButton::after{right:8px}html[dir=rtl] ngx-extended-pdf-viewer .dropdownToolbarButton::after{left:8px}ngx-extended-pdf-viewer .dropdownToolbarButton>select{width:162px;height:23px;font-size:12px;color:#5a5a5a;margin:0;padding:3px 2px 2px;border:none;background-color:#fff}ngx-extended-pdf-viewer .dropdownToolbarButton>select>option{background:#f9f9f9}ngx-extended-pdf-viewer #customScaleOption{display:none}html[dir=ltr] ngx-extended-pdf-viewer .toolbarButton:first-child,html[dir=rtl] ngx-extended-pdf-viewer .toolbarButton:last-child{margin-left:4px}ngx-extended-pdf-viewer .toolbarButtonSpacer{width:30px;display:inline-block;height:1px}html[dir=ltr] ngx-extended-pdf-viewer #findPrevious,html[dir=rtl] ngx-extended-pdf-viewer #findNext{margin-left:3px}html[dir=ltr] ngx-extended-pdf-viewer #findNext,html[dir=rtl] ngx-extended-pdf-viewer #findPrevious{margin-right:3px}ngx-extended-pdf-viewer .secondaryToolbarButton::before,ngx-extended-pdf-viewer .toolbarButton::before{position:absolute;display:inline-block;top:4px;left:7px}ngx-extended-pdf-viewer .toolbarButton.zoomOut{font-size:30px}ngx-extended-pdf-viewer .toolbarButton.zoomIn{font-size:24px}ngx-extended-pdf-viewer .secondaryToolbarButton.bookmark,ngx-extended-pdf-viewer .toolbarButton.bookmark{box-sizing:border-box;outline:0;padding-top:4px;text-decoration:none}ngx-extended-pdf-viewer .secondaryToolbarButton.bookmark{padding-top:5px}ngx-extended-pdf-viewer .bookmark[href='#']{opacity:.5;pointer-events:none}ngx-extended-pdf-viewer .toolbarButton.pdfSidebarNotification::after{position:absolute;display:inline-block;top:1px;content:'';background-color:#70db55;height:9px;width:9px;border-radius:50%}html[dir=ltr] ngx-extended-pdf-viewer .toolbarButton.pdfSidebarNotification::after{left:17px}html[dir=rtl] ngx-extended-pdf-viewer .toolbarButton.pdfSidebarNotification::after{right:17px}ngx-extended-pdf-viewer .secondaryToolbarButton{position:relative;margin:0 0 4px;padding:3px 0 1px;height:auto;min-height:25px;width:auto;min-width:100%;white-space:normal}html[dir=ltr] ngx-extended-pdf-viewer .secondaryToolbarButton{padding-left:24px;text-align:left}html[dir=rtl] ngx-extended-pdf-viewer .secondaryToolbarButton{padding-right:24px;text-align:right}html[dir=ltr] ngx-extended-pdf-viewer .secondaryToolbarButton.bookmark{padding-left:27px}html[dir=rtl] ngx-extended-pdf-viewer .secondaryToolbarButton.bookmark{padding-right:27px}html[dir=ltr] ngx-extended-pdf-viewer .secondaryToolbarButton>span{padding-right:4px}html[dir=rtl] ngx-extended-pdf-viewer .secondaryToolbarButton>span{padding-left:4px}ngx-extended-pdf-viewer .toolbarField{padding:3px 6px;margin:4px 0;border-radius:2px;background-color:#fff;background-clip:padding-box;color:#5a5a5a;font-size:12px;line-height:14px;outline-style:none;border:1px solid rgba(0,0,0,.4)}ngx-extended-pdf-viewer .toolbarField[type=checkbox]{display:inline-block;margin:8px 0}ngx-extended-pdf-viewer .toolbarField.pageNumber{-moz-appearance:textfield;min-width:16px;text-align:right;width:40px}ngx-extended-pdf-viewer .toolbarField.pageNumber.visiblePageIsLoading{background-repeat:no-repeat;background-position:1px}ngx-extended-pdf-viewer .toolbarField.pageNumber::-webkit-inner-spin-button,ngx-extended-pdf-viewer .toolbarField.pageNumber::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}ngx-extended-pdf-viewer .toolbarLabel{min-width:16px;padding:3px 6px 3px 2px;margin:4px 2px 4px 0;border:1px solid transparent;border-radius:2px;color:#5a5a5a;font-size:12px;line-height:14px;text-align:left;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}ngx-extended-pdf-viewer #thumbnailView{position:absolute;width:calc(100% - 60px);top:0;bottom:0;padding:10px 30px 0;overflow:auto;-webkit-overflow-scrolling:touch}ngx-extended-pdf-viewer #thumbnailView>a:active{outline:0}ngx-extended-pdf-viewer .thumbnail{margin:0 10px 5px}html[dir=ltr] ngx-extended-pdf-viewer .thumbnail{float:left}html[dir=rtl] ngx-extended-pdf-viewer .thumbnail{float:right}ngx-extended-pdf-viewer #thumbnailView>a:last-of-type>.thumbnail{margin-bottom:10px}ngx-extended-pdf-viewer #thumbnailView>a:last-of-type>.thumbnail:not([data-loaded]){margin-bottom:9px}ngx-extended-pdf-viewer .thumbnail:not([data-loaded]){border:1px dashed rgba(255,0,0,.5);margin:-1px 9px 4px}ngx-extended-pdf-viewer .thumbnailImage{border:1px solid transparent;opacity:.8;z-index:1;background-color:#fff;background-clip:content-box}ngx-extended-pdf-viewer .thumbnailSelectionRing{border-radius:2px;padding:7px}ngx-extended-pdf-viewer .thumbnail.selected>.thumbnailSelectionRing>.thumbnailImage{opacity:1}ngx-extended-pdf-viewer .thumbnail.selected>.thumbnailSelectionRing{background-color:rgba(255,255,255,.4);background-clip:padding-box;color:#fff}ngx-extended-pdf-viewer #attachmentsView,ngx-extended-pdf-viewer #layersView,ngx-extended-pdf-viewer #outlineView{position:absolute;width:calc(100% - 8px);top:0;bottom:0;overflow:auto;-webkit-overflow-scrolling:touch;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}ngx-extended-pdf-viewer #outlineView{padding:4px 4px 0}ngx-extended-pdf-viewer #attachmentsView{padding:3px 4px 0}html[dir=ltr] ngx-extended-pdf-viewer .treeItem>.treeItems,html[dir=ltr] ngx-extended-pdf-viewer .treeWithDeepNesting>.treeItem{margin-left:20px}html[dir=rtl] ngx-extended-pdf-viewer .treeItem>.treeItems,html[dir=rtl] ngx-extended-pdf-viewer .treeWithDeepNesting>.treeItem{margin-right:20px}ngx-extended-pdf-viewer .treeItem>a{text-decoration:none;display:inline-block;min-width:95%;min-width:calc(100% - 4px);height:auto;margin-bottom:1px;border-radius:2px;color:#5a5a5a;font-size:13px;line-height:15px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;white-space:normal;cursor:pointer}html[dir=ltr] ngx-extended-pdf-viewer .treeItem>a{padding:2px 0 5px 4px}html[dir=rtl] ngx-extended-pdf-viewer .treeItem>a{padding:2px 4px 5px 0}ngx-extended-pdf-viewer #layersView .treeItem>a>*{cursor:pointer}html[dir=ltr] ngx-extended-pdf-viewer #layersView .treeItem>a>label{padding-left:4px}html[dir=rtl] ngx-extended-pdf-viewer #layersView .treesItem>a>label{padding-right:4px}ngx-extended-pdf-viewer .treeItemToggler{position:relative;height:0;width:0}ngx-extended-pdf-viewer .treeItemToggler::before{content:url(assets/images/treeitem-expanded.svg);display:inline-block;position:absolute;max-width:16px}ngx-extended-pdf-viewer .treeItemToggler.treeItemsHidden::before{content:url(assets/images/treeitem-collapsed.svg);max-width:16px}html[dir=rtl] ngx-extended-pdf-viewer .treeItemToggler.treeItemsHidden::before{-webkit-transform:scaleX(-1);transform:scaleX(-1)}ngx-extended-pdf-viewer .treeItemToggler.treeItemsHidden~.treeItems{display:none}html[dir=ltr] ngx-extended-pdf-viewer .treeItemToggler{float:left}html[dir=rtl] ngx-extended-pdf-viewer .treeItemToggler{float:right}html[dir=ltr] ngx-extended-pdf-viewer .treeItemToggler::before{right:4px}html[dir=rtl] ngx-extended-pdf-viewer .treeItemToggler::before{left:4px}ngx-extended-pdf-viewer .treeItem>a:hover,ngx-extended-pdf-viewer .treeItemToggler:hover,ngx-extended-pdf-viewer .treeItemToggler:hover+a,ngx-extended-pdf-viewer .treeItemToggler:hover~.treeItems{background-clip:padding-box;border-radius:2px}ngx-extended-pdf-viewer .treeItem.selected{background-clip:padding-box}ngx-extended-pdf-viewer ::-moz-selection{background:rgba(0,0,255,.3)}ngx-extended-pdf-viewer ::selection{background:rgba(0,0,255,.3)}ngx-extended-pdf-viewer #errorWrapper{background:#f66;color:#fff;left:0;position:absolute;right:0;z-index:5;padding:3px;font-size:.8em}ngx-extended-pdf-viewer .loadingInProgress #errorWrapper{top:37px}ngx-extended-pdf-viewer #errorMessageLeft{float:left}ngx-extended-pdf-viewer #errorMessageRight{float:right}ngx-extended-pdf-viewer #errorMoreInfo{background-color:#fff;color:#f9f9f9;padding:3px;margin:3px;width:98%}ngx-extended-pdf-viewer .overlayButton{width:auto;margin:3px 4px 2px!important;padding:2px 6px 3px}ngx-extended-pdf-viewer #overlayContainer{display:table;position:absolute;width:100%;height:100%;background-color:rgba(0,0,0,.2);z-index:9}ngx-extended-pdf-viewer #overlayContainer>*{overflow:auto;-webkit-overflow-scrolling:touch}ngx-extended-pdf-viewer #overlayContainer>.container{display:table-cell;vertical-align:middle;text-align:center}ngx-extended-pdf-viewer #overlayContainer>.container .dialog{display:inline-block;padding:15px;border-spacing:4px;color:#5a5a5a;font-size:12px;line-height:14px;background-color:#f9f9f9;border-radius:4px}ngx-extended-pdf-viewer .dialog>.row{display:table-row}ngx-extended-pdf-viewer .dialog>.row>*{display:table-cell}ngx-extended-pdf-viewer .dialog .toolbarField{margin:5px 0}ngx-extended-pdf-viewer .dialog .buttonRow{text-align:center;vertical-align:middle}ngx-extended-pdf-viewer .dialog :link{color:#fff}ngx-extended-pdf-viewer #passwordOverlay>.dialog{text-align:center}ngx-extended-pdf-viewer #passwordOverlay .toolbarField{width:200px}ngx-extended-pdf-viewer #documentPropertiesOverlay>.dialog{text-align:left}ngx-extended-pdf-viewer #documentPropertiesOverlay .row>*{min-width:100px}html[dir=ltr] ngx-extended-pdf-viewer #documentPropertiesOverlay .row>*{text-align:left}html[dir=rtl] ngx-extended-pdf-viewer #documentPropertiesOverlay .row>*{text-align:right}.fileInput{background:#fff;color:#f9f9f9;margin-top:5px;visibility:hidden;position:fixed;right:0;top:0}ngx-extended-pdf-viewer #documentPropertiesOverlay .row>span{width:125px;word-wrap:break-word}ngx-extended-pdf-viewer #documentPropertiesOverlay .row>p{max-width:225px;word-wrap:break-word}ngx-extended-pdf-viewer #documentPropertiesOverlay .buttonRow{margin-top:10px}ngx-extended-pdf-viewer .clearBoth{clear:both}ngx-extended-pdf-viewer .grab-to-pan-grab{cursor:url(data:image/cur;base64,AAACAAEAICAAAA8ADwAwAQAAFgAAACgAAAAgAAAAQAAAAAEAAQAAAAAAgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAH4AAAB+AAAA/gAAAf8AAAP/AAAD/4AAB/+AAA7/gAAM/8AAAP7AAAG2wAABtkAAAzYAAAM2AAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA//////////////////////////////////////////////////AP///wD///4A///8AH//+AB///gAP//wAD//4AA//+AAH//yAB///AAf//wAH//4AL//+AD///yB////z///////////////////////////////////////8=),move!important;cursor:-webkit-grab!important;cursor:grab!important}ngx-extended-pdf-viewer .grab-to-pan-grab :not(input):not(textarea):not(button):not(select):not(:link){cursor:inherit!important}ngx-extended-pdf-viewer .grab-to-pan-grab:active,ngx-extended-pdf-viewer .grab-to-pan-grabbing{cursor:url(data:image/cur;base64,AAACAAEAICAAAA8ADwAwAQAAFgAAACgAAAAgAAAAQAAAAAEAAQAAAAAAgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAH4AAAB+AAAA/gAAAf8AAAP/AAAD/4AAAP+AAAD/gAAB/oAAAbYAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA//////////////////////////////////////////////////AP///wD///4A///8AH//+AB///gAP//8AD///gA///wAP//8AH///kn/////////////////////////////////////////////////////////////////8=),move!important;cursor:-webkit-grabbing!important;cursor:grabbing!important;position:fixed;background:rgba(0,0,0,0);display:block;top:0;left:0;right:0;bottom:0;overflow:hidden;z-index:10}@page{margin:0}#printContainer{display:none}@media screen and (-webkit-min-device-pixel-ratio:1.1),screen and (min-resolution:1.1dppx){ngx-extended-pdf-viewer .toolbarButton::before{-webkit-transform:scale(.5);transform:scale(.5);top:-5px}ngx-extended-pdf-viewer .secondaryToolbarButton::before{-webkit-transform:scale(.5);transform:scale(.5);top:-4px}}html[dir=ltr] ngx-extended-pdf-viewer .toolbarButton::before,html[dir=rtl] ngx-extended-pdf-viewer .toolbarButton::before{left:-1px}html[dir=ltr] ngx-extended-pdf-viewer .secondaryToolbarButton::before{left:-2px}html[dir=rtl] ngx-extended-pdf-viewer .secondaryToolbarButton::before{right:4px;left:186px}ngx-extended-pdf-viewer #findInput[data-status=pending],ngx-extended-pdf-viewer .toolbarField.pageNumber.visiblePageIsLoading{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAiCAYAAAA+stv/AAAACGFjVEwAAAAMAAAAAEy9LREAAAAaZmNUTAAAAAAAAAAgAAAAIgAAAAAAAAAAAGQD6AAA26DBZgAABPNJREFUeNq1l21MW1UYx2tgI+pghBHiNJCYKLiERMUvRvbB0S5ZygrI5toxKAItSwDHRBoIzk1SFT44oy4xfjEaY1PMRKNNyMInPxjfFjEiZsFNwpu1oy4LMFZ6uece/085F2/PiuBtPMkv5/ac8zzP/7yfWswmznktuAJ+A89ubWE+UDbYnaJ8AoS5xq8jv5aififYkV5wVW3SOP8BjsaANzmANqdpJEAjAVEp+CMqV73IW8C+dHr/FbgMfhIiHjTUzYI/AAn4y1C+CzSDVsbYSRWdMC0AxiE4+h78CH6Gw/cNgWY2EWDVgxO3bi3WmxYQCoV6MdTfAn0UfgFPJwnQ/hGA/D4KTugiurq6jpgWkJmZWbG0tPQp1sF3mOvEKIAQ1cE5iZnXuHZd07RrQkC1UcD4+DgNf8V25/sZMAQ+AA5wF4ofOHvm7El8fw0BicVIUPtgMNgHEVfA5PDw8DkxZS16zym32Wy15IPqVldXH0aZEzwH9snB7wFBBBlG/jn4kjP2LvLHUF0+OTl5Ad/fgMvhSPg9YXYQOAQ2MWVH9d4HAoETKNqP7wJQbRQGPGCHUcC9nLMAjQCG+yKG9DPwBQ33ysrKS1lZWY7BwcH2gYGBjoyMDLswKxAibOKbkr2ysrLWbrcfQbvD8/N/HjCuh41cTWzRnUnTPTQ0dBpD+BEaBFH5CbgoRiOE3tQaelsKNkuleru2tran9KBGYori7enpOUYxkwSASqvV6rx69ffX0fBjxjeEDIMy1OcJtkp5hLwjiEsjl9zFxcU1FEsWQKkI2IGju7u7aWFh4S1VZR+OjY35s7Oz95jYRHtoHSixmPdX7AaaFjE6dhErZboblIHDwGEgz4SAPMkH+XyCYsg74FHG+WvI3+aMvYOcuLB6+/b5/v7+JjGvZlNpXV1d7c2bS83SLiDqQSEJeAW8gcrzlAPk7E3khN+SZqJAxsCyCEt8LX4OH4MEo9zAWnzt5XQFqIrilgPrKIrSYOnr63MtLy+TiFeBnzPuR2P/4vLimV5frzNdAY2NjVXRaNQjB49EIh63210tn2gytjTjb8t/gdzI5TrhnJqa6lhbYy9C7cE05r+c7oeJiYlGsQ3l4AWywW5QDboBBX8BdIL7TQRPPohYIreCXZsZPA5Ogy5D4OdBO9j7XwXgDtkrvw0opxGJx+N33IZZFJwxEZjxU8g7YNQeCAQbcnJyEkcrsa2eA7KhkzD1DpAuI/qhKIyCgvVeY9484j53TE9PV6w74uSo/N/mXA8yMzNjJVvyQQ+TpO2nKl75xZyJU+/4yspyWzgcbu3s7HTqx6fH43mSXsQJ4/WeNItghaBeUJgokx4kZKsf66fa24/Nzc214IXlxdZPeRvapVW6H+TKzyw4qUtxwtVT2ezs7HH6rY+WqvIa8kG+JN/2zW7DQ+CA8RklLyKHw1FDdRuiRDmVUR27c84fojrhs0LEKNrms5y7jL0fHR1tEL2xGF84hDApHxkZcUuiXRazCWd1sx4opsS8JSUl1frVLB+t+hVMbWIxxauXq/BhWoDf76+BCOpJq8/nc4r73KKPgHEUDGZlvl6fkzEFq131kg9LGulQbm5uVX5+fhUtHONj4obhglmIRFqkR42dbMhWzLnpVAQqCXnhuFyuo9HoDU84HPHQd2o78fxKM2USW9xytk3t/rck/y8wmf4Gx4B9Xz6i1hAAAAAaZmNUTAAAAAEAAAAgAAAAIgAAAAAAAAAAAGQD6AAAQNMrsgAABQ5mZEFUAAAAAnjapZdtTFtVGMdrwKlkIYiETA37sGyQJXxiX1T2BVbN7FZANFARCi0tMDBF2BgGNcvEzC06EBMSEogi2Czz7ZPiBvFlohLFREKqET8g7y02A0YkLZd77/H/lHPN4dIJ9J7k13P6nPu8nOecnufWFGtjjJnBTfAVeHpHBQOOEsB+vVxV1S8g/5GpbFRV2S39/MrKyoOYTzTkXJbl0zDyIbgOntkamPrdZgDqKPpfdUHXqUz9C/0UeMnI6ruBF3zEg3hEmLtFAQAxAJIfAn+CWbCATE3FHIAkSe/ASD+4Bj4GFwRH34IfNgNQxwR5H5iG43n0fvS+mAPo7u4+w5jyAfDyDHwGjnFH31AAdAbQj3FZDpjEtkRWj7nF4eHhKzEHEB8fn7u4uHhVYUofU9g1rOYTGH6X5jY2Nj7H+Hvs9SjOyjAP4Eu+73NwHgiHw7+Qjd3u93HQqijsVfSPg3sgfrS6utqO8XugH0FcV3Ee6Pmurs56BHFzQ5K+7u3tPU8yrPwPPDeDQP3oFzs6OhrJBs0hmCOQFYMKcFTv/D7wOngTXAFvM0U5h/4wprNHRn56BeP3gXdiYuIiV3sSWDlmEiBbfXzvA36//1OIaFGpIB9UKYpSTT1wgXvFAO7H5MVIBhi7BC5j39/C96vLy8sVcXFx1oaGBkdjY6MTYwtXS+VBmPnYRHOdnV3nenp6zickJOTNzflzuEPunPey7MZ435btbm9vr1hfX7/AlEgm3gCXtGy0tbU9Jaw2E9ytZWrP1dbWPqE5FQlJkru5ubmIfG4JAJzKysoqHBn52UM/N7AZiKJcDjN2BPPJnJ1aMgHdA3rnNwZu2NPT0wvIlz4AageBBVhLyspsk5OTZ3HIXhsaGnoxMTERRvfcHvJ6vS9IoZD7t/Fxh8VieZZnx8J9RW0PgCxwGlgFYgkgWbTBbR6L+BAbC4cP8RQ1IN2N6Imz/9y5U19TU1PE9zXWlllSUlK4vLzqFA8ipxSkmfBRCTwC9Ywp9dRDocpksJEj0bE+CLrvKYC6aIRCktNoALIk2UXHIvBdZnI4HPlLS0skOIMtiIBxTSAYcNOc0QDKy8vzgsGgS+88EAi47HZ7vv5G02M26H9X9lP1D9FPxuf73Y4iQ9uTbWD/s8mGz+crJ5tRnKfqFfaDE6h+lCaRA3t2rr+IFADb5COqwvo6OyozuZIrGA5gbW3tYdLVn37KCK78bdVwH3BvKxygH7cZ3YQUBLGrlQPSoZsw+i9AV4yoNEoShMJD42PjDrPZXEj7NTU1lbtpiJGh7P/bc01/enr6BOmSjXFcxaJtSZbc5HNLMWppaSlaXV11z8/POz0eT5F2fbpcrsf+y87mSpzcWRoo5aRFZEivuGLS1a51T11d0ezsbCX5gK8o1ZAXIoHjIEl7mdCAkZIoN1wpyWZmZp6n71q2ZJkVkA2ypbNtuVs1PAlyxNco/bmwWq0FPADIAZeTjOaU7Xt+mOa4zVzuA7520bACm7j6wcHBMr4ak/iGQ3CV7IGBAbsuaJuR/wVOzVFICrkzMjLytdJMMhGtBNMzqCFuTS5LBupJa2trAYKglVQ1NTUV83pu0jIgZkFQy2p6ualYUSScdtlNNkwG2smkpKS8lJSUPDo44svEbaHA/B0IVOpeaiykQ7pkw0gAB8EpQn9wbDbbc8HgbdfCQsBF4+h6/PXLYIsndqhy5j3oGW9R/xfE2P4FtUR7pWscH34AAAAaZmNUTAAAAAMAAAAgAAAAIgAAAAAAAAAAAGQD6AAArUX4WwAABPlmZEFUAAAABHjatZddTJtVGMdrwOGSgQQJmUG4UnAJ8WJeaFJiFGqydHaQKR+r0LJ+YBDopkvVQEwWUYazi8qFSzDqnKJLxsX0oklJdRfLdGNMXFe98YaP0b6jWbo1YW1f3g//zzyveXtsBd/Gk/xyTs45z/95zkfP89ZktKiq+hT4FHwBmje3MO7oAbCd75dl+ST6v1UVdQbtr/PYVYAdRTnf2NgwQ2QcHAfPcg5Oy/cCUGbQPseN9SiqchH1z8BdzOrfBsfAByyIat3Yl+AbMAO+0/XXgfPYmcuqqlwFlwwHcPduxg+x98D74ISsyv06R6cKBBAAPymKegW7s6Aoyo+GAxgfH+9VVXlMdwwfgsd1AUzTHUD9ve5iXoDTy6ivYuxaKBQ6ajiA0tLSlsXFRT/O+l0ITuCynUD9Bo2l0+mTFADOeiabzZ5hAXwOLoIrYGF9fT1EGls97yfAq5IkeVA3gfvQXdvR0dGF9lF2FMcRRIDmj42NeRHEZ+D05OTkEPVh5T9gziXUv6COTExMDJMGaQEXmAd/gMO88/vJObb7EA2C10EPqMWwORgMDaD9Djg2Pz8/zMyeBzaGhTpWVlY+UhVavXJtaWnpFLqaYQOUMOoVsIrxONXgQX0A2ygAMITt9mGVFMRr4IggJGwlJSU2p9N5oK+vz462lZnVsCAsrG2isUAgMIwdOVxWVmbLZDKfQGMRl/EGdiWGtoB6Ddy8o96pyjnu0dHRroyYGYDzIUwcBj62G0cw9oxutU2gUGnS5gWDQQccLcP+BogrqnoT9RruTHxubu5j8pkTANjb0NDQHg6HnWw3Blkgh8AjGK9ibFaqCNi0sq0WyDFI3E7eDmMXXeSLD4BKPbACm9VqffH69d9c2MKBs2fOOpjofyrl5eUPxeJx+onGspnswtTU1JukzXzUF7LbDnaDF4BNw0gAZMNpkOaTzAdK7tPZA/r1pJJJl91u38/O1WhpIo1kMuUiTdyvVzR95rPOxBpskNVAm2QqspCG3jEfhCktpp1aB086LfYWG4Akig7esYYoQh+/7323EgkPPyisCW4aKzYA0kjk0xcEj8PhaONfNB5Lkf63pF/DT6KfYTT6uwN5wY1ozUWcv5k0otGokzTzOK/hDXaAVuR9/j7sNOB8Z46GDKBd8DMtm1V3SarkZgZFB4BU/DDZ8refdgTpexcf7Tbg5SfL4Kvp6ZcrKiqqKAhiSysHZDMN2/y/AMlLPnPSsSiiUzcp8mvkoMVi2U/nhY+Slr+EVBIy/9uZa/ZIx61kSxqRSOSgXluURC/5zElGIyMjnalUyru6uury+Xyd2vPp8Xie1naHPVAu7gUl6u71YXv1KyZb7Vn3DQ524nvBTT7IV75saOVuaTOohFCbPnqI2PkXTnsxl5eXD2jzaLckSW0nDdLitK2FsuEe8ByopQ5kw8f4e2Gz2UjU9HdQrJ/6aEz+55k/SmNMs4X5gK8tFKygW7/62dnZXrYakz53EMzETB8iXNDdJqMFb7VLc4Sc4W1sbGzTUjP/U9VSMM1BDvFq/RI0jPqnL992BEEr6ff7/V0sn5u0HdDvgs5st/8tf5csi7jtkpc0TEWUPZWVlfuqq6spKVn1HxP6BLYmCG7uo8ZKNmTLztxwqQd7Cf7idHd3v5RI3PLEYoKH2gXsrKxdVCklNslyloJ2/1vh/xcYLH8CCfCBoXIWl6IAAAAaZmNUTAAAAAUAAAAgAAAAIgAAAAAAAAAAAGQD6AAAQI+KIQAABP9mZEFUAAAABnjatZdtTFtVGMdrQIkvMIKEYJbtk4IYjAl+mWFfxmpc7nZZA5PVMqhAO5RqdSQNhTnUodEYjcm+mcWpwQpMnAkfCGExIYs6jVtGSlFjDPIuLyME0qZwc8+9/h937nZ7bKXp1ZP8ck/Py/P8z3Ofe86pLdOi6/qjoBO8Bh7fabwVR3eDnCTtAfAWeJcx9maS/vvBfZacb29vl8NIG3gZPJHogL3B2C0B4H3B+TPgU9ALjlpZvQe8BPxcxC5T3+ughwv4wNReBM4jKiGIHAChjAVEo9FGGPNx568A2eSoO4UAP/gMAvrw/FJV1QsZC2hvb6+FkReBjxs+BfaYBJzV2R0BeD4GLoDPwYCuaZcGBgdPWUmDqomJiWZGecCYEYV66tjc3AySAIoAIvUOF3CGVg++0DV9cG1t7ePs7OyqdN93GXheVXUnng/z5t12u70Gv1+AAB/C6kfi+amjra2tfmNj48zGxvrZzs7OJmpD/0eUeJqmXdR0/euOjg4v2UDbXYDsXALfAHeyT60FnLyNqjooodBd2dsbqqdXwZCQly+PuPi0p4HMsVPD5ORkJwTSu/8K9ffQtF9RlAr8/gSCvkVUrqL+I/gB5JoF3AO8hnOspNWoz8//eSArK+uILEu1sizXYrjEpxVxEXZet2GcFAwGPd3d3a05OTlyPBanPBlDLnyHqJDTn8B1zi5zELKDwdPPbm3FyOk/8Pl8T5lWWw5SlXJjXF9f3zE4vaLp2vd81dfADbRdvzI29jb5TBAADpeUlDhGRkYbRAFRXS9GfwFnp1JAYN4+cJVWDac38BxfWV656HK5GsmXKIDKXh5eWZKk2vFwuCkeV7yhUKhecJxWyc3NfXBqauo8wn8tFo2Nnjv34as8OhL3lbTcCyrAESAbZCKA5gg2yOaT5EP8AvaAE2LYN9fXmxGuGv5eMy3l/f39Qca0MGxO41XM4EnMgglQY+POeebzJ69T339wmkY0TZ+H8wXUzSyCX2xxJe4mZ8lADjRYFqDpv8HWMnJhmZ4a1XXt7ydE/Wpzu93Va6urHtH50spSC/VZFTA0NHRaY9ofsHnTAKJuItK/o69L3NFE7Bb9p2W/SBxEn2Ek8nMjjlLanistvP9KshGJRNxkM4nzInHCA+Ag05mYD8UZOC9OsMEAbJOPFNcvvUzVVeNAsiwgFos9RHPF84UigqteGY3Z8TBioBc7YV5eXgGJINJaOaA5tIua7d1B9ZLPhONYUdBoGhQeDzfRXYDe1/T0dNUtQ3rrv+UE9RnzZ2ZmDtJcshHGtm62raiKl3wmHEZdXV11uOV4FxYWmv1+f52xfXo8nn1GdPgG1SzsoIBf0xBe84pprrGt+32+urm5uRbyQb6SnYaSkKX7QT5dq83qYcTFBZxgwo45Ozv7HP02ooXblYNskC3BtpTqNDwEDoDd1LC1tfWImBe4lDio77Yo3k5t1MeEd26+3oEq7gO+0ih0PzSvfnR0tIGvxmY+Owg+pXJ4eLhREO20ZVpwn2s2HOHM8JaWlh41jmbxUzWOYBpD9wijXYWNjAX09PQ4IIJWcjIQCBzn57nNiIA5CqZpFYFg4DhjCrJd9ZINm4VyKD8/v7qwsLCaEsd8mTAfYCtLSy3CpUaiOTSXbFgRsBccJsTEcTqdx1ZX1zyLi0seqqeYJ/G6pZJN7HDK2VPO+9+K+L8gw/IXI+58OxdsgRwAAAAaZmNUTAAAAAcAAAAgAAAAIgAAAAAAAAAAAGQD6AAArRlZyAAABTdmZEFUAAAACHjatZdrSFxHFMcnZJM+UGtTkUKohT60AT+lUFr0i7oN5SZrJOZhfUb3oVW6pYalYgvRGkTStBQr0tDSB9ZU2wSkglihFNvtE2milX4olPpMVt2NjbHsunvvnf5P9o6swz7ILj3w84z3zMw5c+65M7MsWeGc54B6YOWBwGOAJUPiTpzvAXsB24HK66BbuMad0A7AJO4F9wAWj7hGcABYgQ08JdleCgegUQCvSrZnONc6oN8EhakEcBo4DKwgLcLWBFqAHECmpmlvIDPnoHvw/7mkA7i1uVltOBeUCBscNIFoAZwAnZrGuxHA+a2trbOAxYLFM7a2vlJOjiUeBkwLZ6CZagC0AnL+KJyeBbTqHjy70NfXZwMsFiyeEVI8MzNTr3GtkWsgHMBRwHw+n40CgM3p9XoJCqABdIJucH55ebnTZDIVAxYL0RAFd1pVeQX0E4BB9pvN5mPkWAQAuxWwioqK42s3bzZ6vSvNVqu1AjCsvB19ukAPeNtms1XTHGjv4jxUBP0O+JBz1QIYQX/Ep2bdkWpVLYPOxgQFAwMDVeL56OjoccAgzwOLgRkwt/snG9JOq3/L7Xa78KgwEAjkca5RVj6FbRAMof05uD+yCPcCu3CiiXSDpaUbRbt37z6iWJRyRVHKMakCSLKNIMxGm6GfYrfbq5qbm2vRttz+5zbN8RGyN4CivIT2MNf5ZWgibTsAiKmt7fUTgcC/d5zKtLS0PBex2nwWW/JFP9SQgoV8ghr5jFasc/4l9BVV1698NTLyGvmMHGgCh3Nzc8vGxydq5AA2Ufmw7zOIK6IfxuWDQZ3rX5BjzvWRubmF9ywWSyX5kgMgyQEKsFCqr6H6/f6gfXBwsEo4vhtJT09/aHp6upvr+uVb6+sfd3R0NBnZUQxfUeU+cBAcARZBMgHQGGkOmvNp8iGfao+AajntG+vrDZWVlcfEO09S8i9e/MAZCqljmPM78D1wgx/AODjEyLmo/G1ttA0bS5GvdZ3/DE38gvav0GF0/RvmD/rryFk0UAM1gKUCnExirt+gr5LWOTTQ9Tt8y+rq6kp9a2s22bln1WMlG2CpMDw8fCYUCtGKZ8PopH8PBYM/Dg0Ntco7moyZpSyJ58+WO9FnODv7R62qqrQ9FwCWBLvA++Avv98/2d/f3xrFebb8RaSBEuxeUY/gu+QQWAE3wDLX+SL0JfB41AvJ1hY/oHKsWDhNPQAF+MAa3vsK18OBgL/By4AlPIw0MICdMCMjY58RRMJARD8a4/F4RowgvGAVeMIZ0ZegH4wMYE8wqG4HQMxcm6mnuwC9r7m5ueJwYLwxQU0UiPHz8/MlNLa3t/cMbldXRTZ0BIJPkTLxwI7TsL29/eTGxoYdt5gGp9N5UmyfuFQ8K7JjbFANIHIHJajNOIo2MoM0Vmzrk5OTF/A5/olvf2lqaurdaKehIlVpIcg0rmAOweLiYiVg5FiTdsyFhYUXRT/KlqryMpoDFEpzK7FOwxdAEdgPGG4zT8p1geO0DDDxPGLbZmTTpAtN5PUOFJMPw1diMe6HDsHExESNsRoWeXYYMEjB2NhYrRR0RdK/C4LBYINwhDPDnpeXd1QczfRMgpGN+tA9QjxXMQdgsWDxjF1dXWUIglbicLlcp4zznIkMSFlgBOSgq811StOCjqCq2mkOwGLB4hrxvjIzM0uzsrJKqXAiLxORB9iqx2MFjDD6KDSGxtIcLAXJAYcJqXDCvwvWfLbr1z02agMmEOOk61fSYiISnHLmmOP+N5F/FyQp/wHjxqv8BBis8gAAABpmY1RMAAAACQAAACAAAAAiAAAAAAAAAAAAZAPoAABAamiUAAAFIWZkQVQAAAAKeAG1l2tMHFUUx6+hVE14WQkxVPGLQhvhCxqj0BgLa2KnLIXyECkIy77agpg0wSAIbQHF+EExAV8RbIJ8kfCJEAmQxkdVRNc2pJHEL2JZ6LobQktWdllm5vq/5Yysk32ku/Ekv5w7c+aec+beO/fcYbEK5/wRUCegNosFakQkEezX35dluR7aJhBtwIKhPonxJnAYmIEFHNLZbIqi2IUmWBCHZC5boQVPxJNAY1AAM0gKTkAHI5JAE7CDMxyJABYOFsl42+ut0wUpjp6AeAbXCj8Nfdbr9ZoACweLZDx37rWKEIEeCpcA2dBW7rw9pqilo6OjGrBwsEhGSNHi4qJJEQ735vsEYB7PukUL7na7zYCRDfd2335packmfIDoQguuUZZ5DfRjgEEOGgyGk8KplgDsZsBqamoqPR6Pxe12mUUbiNVvpgTOgJZjx0oqhQ/ynwfOgjbwtH4RJgLqTMhyGXQG+haOjo6e0u5PTk5WAgZ5ARgJA2DCRnPfPDEx0YhbR7a2tg4isQbc64CtC/o8cW9wAvuBFdj0n5fTefNoQkJCiWSUKiRJqoBTCQjJoCQM1BYiGY3GivLy8ir0MbpcrhIEbYefTvjshr6A616MZi/a9/2bAGRfe3tnld//952gepqbm58NettcEE5ytec6OzufQ9A30P9NcF7hvAe6b3tn+62hoSGriMk0oYvj2dnZZdPTM/X6BLxY3bAfICILPefz+R5F3y4Evgj60H7b4bj6ekFBQaWIpU9ASBaQgFEM9TWsfp8vYB0bGztFTu9KkpOTH5ydnX11Z2enz3nD2WW32+todCSKFVLuB/mgBBg1YklA9NH5KAFPUoyQVc0WzObGRlNtbe1JmtdYJbe7+6LJ7w+8B58fYU18Ai34FLwPnmIUnFY+aWqTjcXJAHyOQI9gQ/scWuMSGGS+gK9BBAsF1kA9YPGgyDLeVhnjCuB8TAHiWmjsDx+zhoaG0nXsaPrgLuxwwgZYPAwODtq2fb4v4HNcoKqq0F/iK7k0MDBg1e9oegwgXonqP0P/kPgMr1//7RXa2wsBi4F7QBeYvr1xe7Snp+d0iOAZ+i8iCRRjsYQuwXcFElfVeegr4BtwGbwDHg55Itre5odlTtUMxJsANqDnoX8FC5yrP3KVXwHf4noWvAxY1GKkgFHshCkpKQcoCRB12IsFmZmZ6cvLyyNoXwW/gJ/ADzQiX4OU/5TjQECmBABYvLZoEmcBMV9wVLSbGLdHWROfgVWw7PP7PhR9+/v7W3C6+gr3HOBnMK9y9Tua7r1qKI5Om5ub1tXV1abW1tZqbfu0WCzPaKNDG1QTCPdfsIZhdmHunWj/MT4+XiN8iNI8NTV1IRAIXJZV9fu5ubmeUNVQ0q3SIyBNO2ZprKys1AImAiu6HRPzvgD9FyVyA3o2NTX1AeFL51sKVw1fBEe1Y5Tf739cvy5w4CgDe4dSug/Y8PBwG4bXg0XnwrUT/AlMgJHPIoqRBaILnQ9tGjMzM/X0Niy4dhAMUnjr1q2ZvVFQV6AXYv4xwZw1aYFQM6w5OTknqMyGPJYLmwmC7XZN3R2FVSTxO2DhYJGMvb29ZUhCvKWtra3tJarnTBsB3SgwASR/fn7+A0zDTZXzFYfD8S5g4WARjZivtLS00vT09FK0peDDRHABc7tcZsAE9IyUn59fnZeXV0VzHrNkgeMC3cKh/4J1y9qayyLagBHB/SRqxyX7iEhVzhC53/8j+v+CmOQfnaCvAsiMZ2EAAAAaZmNUTAAAAAsAAAAgAAAAIgAAAAAAAAAAAGQD6AAArfy7fQAABPFmZEFUAAAADHjatVdtTJtVFK5hM8EQQIbEhMxfDmgC/th+TGV/BjVZXlbKh9DKYB2lLV1JmNaQVRiEjMyPv8TE6JQZK1KRf8RkYUkzg84laELI5pIZFQPESm2WQgld+374nHLf7eVa7PZWT/Lk3Jzbc85zzz3vvbcGvaIoykGgk+Fgdg/9ifYDT/J2URS7YHcTaMzPkw/55prcCPQATqCKm3NLktSrkuDmqkRFdDFfYy4EzqgJWLACLQEtNPYCwKESRHW6dROIxeOdXKL6RyBQryYnxOOxTt0EfL5zrXwi4Nm9CNCc1kYEfD5fqyEHqVtaWuqWFOz1w/220EQkEnWqidbX13sYAYuWAPlSjMdpuDOiqNign2fmcpPJ1ELBVAKYTyez2WyvRiIR5/p6uIfG7Mvo0TYn+VIMmkskEodgs7K+Mmb61NLODyCKTdBlmK4NBAKnVPvs7CwlI3kFMDOYyEBz6u8mJydPwXSMYgAWDTG1kvv5b9ZFE/zntbr6x/G8vLyTglloFQSB9lNgbmWMhImNSYSGhoYW+h35kC8X0wOcxfgsf7bs8/uH2hKJrfSPefT19b2kWW01sJdUq7/zer0vaxbSKyExtDeRTHpHR0dtlHMXAaChoqKi6erVuS6eQHyn80sYskkJQfNFeCQkhu4LXQs5jEZjM+XiCZA8x8prphIuooO3t5MutpcI+thyYGpqqiuZSHjv3rnjbm5ubmPVEViujJIPHAZOAmYVOgmUcDEo5hHKkfFW48u+ce+eo6Ojo4Xtq16p9ng87bFY/A3EPA/4gbcYzgEVBpacdSnTbExz/8Ft+rokKRegL+BAG4ZWMQK8adhObtspWSagB7pyJSClJFr1RSzqImk0JLSU1qlU6rzBbrc3RnGi8cnDOOFoLlcCw8PDHZubm2OI+S7wDsPbsVhs1O/3v8afaDxMQI6SPX4Z/yP6DG/d+uk0O9trde79E4ADeD8cDl/CYWbPkLyMdyoA6tEs/7iCdRB4AQgAV4CPgQ8BL/BMRof79xUjnlGaCylnAkeAaeAL4DN8XZ9CfwL9AZoPFYdku4wkIICTsLCwMH20Eh6h7C8CR8vLyw/gPfAexl8hThB6koiwilwGntp1HSeTomvXY2JxqZvd5+bl5eW6HWJK77/1BOvw74HrW1tbI+Q7MDDgjEajH8H2JVUDZD7HAolE/q7LaHBwsH1jY8O1trbm6O/vb1ePT6fTSStyaR4lDpasXZHln6FvA007NvkHWVYWYP8OttDE5QkLxcDVbMabwhePx69goYHp6WlfpttQ4Lr0GFDMP7NWVlY6yAFJfpUV+U/YVoFF9ur5GuMfgZuKrMxjtRNFRUVPUywutrDXbXgCOK59RvF9YTab2WqVv4AwiKxB/0a28fHxflmWF1GJBdhuAN+o1WEx6ygHy5Vd2PvQrWJubq6LVsMqkCYgEwFZWWYutXigBh9WQf4WesagV5LJpENdOe4MV2VlpUW9mmGLEAG2BSqBEqvVehqkFrA91AtoSPmabgJjY2NNIEHld6Obren7nAmSRIA0AejfNW6HQ6HQJQUkYL8xPz8/ZMhBThQXFzeWlpY2ssbJf0BAkn6R5Z0K4GBZ4h41Qk1NTduhqqpWtue6hZqlgcA3zszMzAgqczeVkm4Hg8GhPfwENs5J9hGy3HKmLH7/g/D/C3TK3/RJfVWiL971AAAAGmZjVEwAAAANAAAAIAAAACIAAAAAAAAAAABkA+gAAEA2yQcAAATpZmRBVAAAAA542rWXW0xcRRjH14AaEy6RJsTEtCRGSEGe4ElpTEq3ph5Yy0UostyXUxUqpphKpQZLNRpSHkx4oBgNabfE2oSElKRBfQFj4MELiOiLGFIBS3ddsASyu2fPOeP/287Uw7C46dn4Jb/M8M18l/3mdnDYFcbYflDH2R/fwn6gh8Ejsl7X9XroTxLUl8fJhmwTDZ4LPKAVHJTGThqG8apIQho7qDNd5ba5iSTQJAJwZynWBKxY9CmgRSSI6jTbTuDu1ladFOhI3AQwRwQntrbu1tlOoLPzzUo5EHhirwRozKqjBDo7OysdCUjx/Px8s8Gw1v+u93Ea8PsDrSKQz+fzkI7GrAmQLfl4kA3XpOusBu3TXP2k0+msIGciAYxHg9XU1Lzs9/tbfb41D/X5yfBYNyfZkg8aC4VC2dCdoBgUK9ZRixrfR9fL0GZiuMjr9bqFfnx8nIKRHAUujpMUNCbmjYyMuKE6RD7AcenUtFJM+cyqNCgfr5WV24eTkpJKFZdSqSgKrafCzTJ5Ek7eJ1FKSkoqaB7ZkK3sM9rquirfLclnz56rCoW2afIu2tvbn7X82nywl+SLeW1tbc+JoFaCmqZ2dXVVU8wdCYCSnJycsomJr+plo617Oz+DE08yCPlEEBM3JxooBsWSEyA5wMvrohLOYQcHg5rK1xJOH1j2ka0WDKq/wBf55NVReKyY8hgoAKXAJbCZQIbkg3wWUoyYr5pcrs2NjZba2toKvq52JZ98bGxstsib+/4rSp1duxSISY4EhXxYAsM/o76g3hHUgo1iUAZ7oD7RBDRNa4av12MRDAabHI2NjS8FcKPJwddww9FYogmoqlq+vr7eBp9vgFMC3KKveTyeMvlGk3GCBCW+/0x5Eh2ZhYVfG/jdXmRz7R8CCtb/zOLi4qmqqqoTMYJnykYp4Ahev11PsI0EngK9oMdg7F2074BykB7TIBxmuTrTLQ9SwgnkgI/AB6hCL3iPIRG0XWgLaU7cx8gAXtxmaWlpdLW+CF6g0sYp+zMgLzU1dd/U1NRbOHZ98PchM9j70J8HPeAceHTHc6xpurrjY2Juvpm/565wOHyFMfMv02R34OzSfyTQgTvkKtpPA38HVLLFSXIvLy/3iGqAC4YR6REJCEnu7u6u3tzcVFdXV1s6OjqqxfU5NjbWgMl+cIeZ7E+0v/FgpWASfAmK7+nM60jwGv6+DD7p6+s7Sj7wNLv6+/tbA4HA+WA4fGFgYMAT6zVUpF16KD09/XE4mgY+cBss42KZjAYzzWmTmT9Ch5bdIN329vYl/H0dXEXJh1H+HvJBviTfyl6v4TFwWHxG8RvLB9bAKrg1ODh4mo/9DH5AIjNoo0n19vaqSGaUV+EK+Aw8T2PcZzHF4LHiC0q+QKUHVPpl3Gg36NfwCsxD9z32xQz6U9ykaGlp6WNehREkchl74qLDrsDxLV76FZT7d7fb3SieZuh+ogT4EokEMnCJvaLrxhfQfQ68hqEP2U5gdnb2Ipz8YaL009PT9EsKLTt+zjTNaAJov7GYFYyOjr7NmHENFfBiE7c7EpBjeXl5VQUFBXQqFOvHhB6JfIvg36EyMzimN6WPGiU7O7siKyurnK+5bTkASgh54wwPD5+JRCKToZD29dDQ0Ok97BTeT0iSiTivnDOO3f8g8v8FNuUfG4CCnr3IRI0AAAAaZmNUTAAAAA8AAAAgAAAAIgAAAAAAAAAAAGQD6AAAraAa7gAABPlmZEFUAAAAEHjatVdtTFtVGMaAJiYEIhowKOgPS7ZAYjL9o7AYtpost8Py6ZDxsUHLoEUXMITpRDIxKyNion9Q4tSFdCYYmZNEiMFo4ghDpwhiwg9/CdLabmm2wC5t74fPS8/B64HCdhtP8uTevue87/Pc97znvrdJZoeu6zlALUPO7h7mie4F7hPtiqLUwd5MoHtxnnzIN1HyvUAT4AD2CHPNqqqe4CKEuT2KrjiZ795EBBzjBCxYqlGAEQZ7KtDIBSI7x00LuLm6WisQHbwDAQc5OWF19WataQEdHScrRCLg4XgCaM5oIwEdHR0ViZTBgfn5+eOqjr3+d7/tNBEM3nBwokAg0MQE2I0CyJdi3E3BHVMUvRrXJ5j5EavVWk7BuADMb5BVV1dXBoNBRyDgb6J7djKajMVJvhSD5tbX1y2wHSEO4truqG04b0JRSnHNxHTh8PDwUW4fGxurZG7PAyUMVjLQHF/n9XqPwlREMQC7cGocxCmeWSdNisdredlXnJycfFgqkSokSaL9lJhbJhNhZfc0JJvNVk7ryId8xZh0xcM5xXdLyqlTp6vW19do8Ra43e5nDE9bAMQbBXydy+V6lpMaIUcizq6urheJ8z8CAFteXl7pxMQ3daLTaqzyMxh2HHydeCIIE19P1BMHcYkCaOSy9JZQCn9FBctyxMn2EkHvejxIvhFZdv6OWGz7ShhHbjyn+4F9wGFazGFSQIYQg2I+RRzbdjUxXbdCocaamppytq9mRwHFCIVuNYrFvdlF6WZLlQJ8UcLdFDGMxKKIJDkiN3CDCNRAXaIClEikXiTmiEQQv6Gh4YUbeKOJk3684WguUQEUI7hdfL/fUV9fbxffaCKsCfLfUfxMcdHQ0FBXOBy+pmmaH2rPA/eY3P9C6g8LCwsN7BiK5JmigwW4pOnadVyDQEDTdRJhNUGejWJ24doSa2ZA7FshNZ7Dq8AKkQJ/Q4Sf/V6KRqNmBDwKvAy4gVYIaAFOUEaQ3S3d8AHAT8S6pnPiZU3T/1xaWrqYnZ39EH4XA/t32g6aAx4HHktLS8sYHR2l8/8K0IZsxIToKmWEN6NNx3SQLeua5sP9X8CSfPv2lf7+/pO0X+jl78P2G8T9gqfo3UFAFdALdK+srJSSL7pj1eLiYoshGy46kuIXc8rMzMy7KLo/kO7ZycnJs2inG6/PkZGRI0QOzELgT7qufRcjiz6Hp7oA+wfA02TD73MI7sHvM8Dp9vb2/fy13tnZ+ZLP52tdW1tzdXd3V2/XDSWhSovS09Npay6jEOdwvQZMy7J8kZF9hjr5Ahnxwv4e2a6HQm/g/hzwNtADNFIMiiXEluJ1w0NAMf+MUnS9To+R/wzMAD/09fW1snR/BXwOISTgY7K1tbXVRlX1HZaFt4A3gSdpjsU8QByMa/eBuvgW+z6LID9ie6aRwvPsaZJgv0wCVGQAIj5hLoVzc3OvqSwLEHKG9j7J7ADpVZb6q0j392VlZZvfBrB9CYwAXoALyCgqKqoKh6Mk4CyE9apq9HXTAqampnpAPI1gV8bHx3tYP+cVfwkFuSEAT/qpwW3f4IeDqHLVE4UAvFUTamiHLBZLRX5+fiUVjvFjIoxipAyouupFZQ8KHzVSTk5OaVZWlp3tuemRC9gIYuEMDAy4w3L4Asg/8ng8zXH8JHaf0Egh7NLlrHH9/rch/i8wOf4BRvqEvL0rz4oAAAAaZmNUTAAAABEAAAAgAAAAIgAAAAAAAAAAAGQD6AAAQaGt/gAABQFmZEFUAAAAEnjatZdbTBxVHMbXgCYmCEgbsCGFhFgCCQkJfagKL+2uSTOUu6WEO2UXKlvauiSyIlZSN6FRi0lDjA8kRgmKqeUiKmjS9IU+mHql4A1pgrQVWHXDdoFlmDPj99+e0fGElbITT/LLmT1n/uf7zn3WEmnSNG0vqObs3TbAhNCD4CGxXFGUGpQ3EfQs1lMMxZoVzwSNwA4yhLomxlizbkKoy1A0xcFjM80YqNcFeGMxRgNGDOUx4LhuEKPTELGBlUCgWhCy3ocBqy5OBAIr1REbcLlOl4lC4LFwBqjOWEYGXC5XmcVEOjQ1NdXANMz1P/NdRBVe7x92XWh5ebmRGygyGqBYamMnC65eUbQK5I/z4mSbzVZKjekGUB8Sq6ioeMbr9dqXlxcb6ZnvjEbj4qRYaoPqgsHgPpQdIw3S2mqrhYL/RlGKkSeiOre/v79KLx8bGyMxSk+DAo6NCqhOf29gYKAKRXnUBigSdo2dNMU966BKcXvduvXbwaioqCNSgVQmSRLNp8TDErkJG3+mJOXn55fSexRDsWKblKNzDvFsiXa7XzwaDK6GXhZxOp1PGnqbBcKlLP29lpaWp3RRI+uy7Ghvby8nzX8ZAPnp6enFExOf14hBgXsrP4GzXUogxB1BTHw6UUsapCUaoJQCJHJPQ/gtVvD6uuzgc4lGd5x2Uay8vu6YQVt8+gq4Rkq4oIdBDjgCCnQiNJAgtEFt7icNcQeUg5vgT46PUBn7dWRk5Cyf10hTVmVlZanP5z8uLm79FiUDvwCvqqm/Uw6Q66g3LSYTCRmFRRMWVdN+1lRtCT+WVKBxVELVfjRrQJHlWlFYR5blGsvw8PALqPwJBXc0Vb2D/DZG4zbKZoaGhtxmDdTV1RXSiSmKLy4u2mtra4vEE03EZlL/vtpPFF/q7e11ra2tXcEUTMNtD3ggwvnPpfthenq6jm9DUTxRDEgDb4MfwPeADHwH8nYsLh5ELJRbQUy4gGYuNgNuqPeevwbXNzc3c3dqYHV1dQ8Ji6ufRmRjYyNTFI8HU9gNN8gEhv4b5F/CxBezs7NvJicn78LvA2D/dtOB+j1EbGxsAp2EW+8A4TLCj0dUVaXekvBXMHDd7/ePdHV1naD5urt692WUj8PgKPLW/xC3Uj14dn5+3kqx9E1AHyZGA7IiO8Qv5ugrV696MDzXgsGNz0ZHRztxnYaOz76+vmISB2PgMniHi+UAD3gJZPCyM+jtGU1jJ/F8wm63P6Ef66eczvKFhYVGdMzR0dGx5W0oCas0Ly4u7lE09Bb4GAyDD/wB/wUu9irT2BvIz4PnqWxpaYl6+BxoxaJzIi9BcTzIE9qWwt2Gh8FBkMxFCsEnYATH8ofI33O73fW8rhf0cAPnqAzn/lGmaW00Cig7CVrAPqrjbR4iDa61fUIv3kUDH4HLDL2fm5s7z3tjgQgMsB7GYICxV3hI7uTkZDMfhVOMYSoUpcoSaVJV9FoNDf0lNNZvtVqP6Vczyi6CC3wEdAMJ2dnZJcGgTAZOowOtjMlNERsYHx93KapyCb1/f3Bw0MXvcwsfgYsgZAC5xxCW4/F4amgaZMZau7u7Tf0vOJyamlqSlpZWSgvH+DGxFgi8BvHXyYDP5zsrfNRISUlJRfG7dxdSG2YMpIB8Qlw4nZ2dDQF/oNvnWznX1tZWEyZO4s+mUjSxzS1nCxv3vyXxf0GE6S+R9YNYr/xWtAAAABpmY1RMAAAAEwAAACAAAAAiAAAAAAAAAAAAZAPoAACsN34XAAAFF2ZkQVQAAAAUeNq1l1tMXEUcxmmgJkZuAtkoWHyxXCKJpvJgpD60rNocWCCgFOmyUHa36hKgLqE0vFXQVCymioYXE8LVeCONpIQHEo0xYhtCE6SpvgnULOzCrpCFhbPn4vdf59Dj2BV6Nk7yyxxmdub7ZuY/F+KMJlVVjwAr48j+LYwLHQYP8eWSJNWh/BxB33w9taG2sYrnAztwgDyu7pwsy29oJri6PEmVnKxtfiwGGjQB1lmi3oAeXXkiaNQMYnbOGjawEQxaOaHiAxgo1sSJYHDDatiA291axQuBx6IZoDp9GRlwu91VsYTByfn5+bOyirW+t97lVOHzrTs0Ia/Xa2cGyvUGqC31cdD1bgPLiqreQe5ixVlms7mSOtMMSJIaEaupqXnV5/M5vN4VO32znWHXBye1pT6obmdn5yjKTrO4yufFU8AfqqL4kK+BdXzfRG5CddHw8PAZbVQTExMkRuklYGGYqYDqtN+Njo6eQdFx6gOUc7vGAQ7rDTxKBsAKZsCLHEaUdeR+cVccjo+PLxUsQpUgCLSeAmtmYibM7JuSUFJSUkm/ozZ373pO6ONhL5ckJ3+2JMzM3OhVVGURFR6IryL3stnwT09P23WjLQDRUoH2O5fL9YImqickis6Ojo5q0vyHAVBSV1fX4Pf7r7PZ8Ch/G/GBV1CfxtgvpRH8jiCmJqdsOTk5FaTFG6CUDQRg6e/vb9ve3v5JUdTfPR7Pl0lJSekGdlA6xYEYCjlvYzew5bMwjexojR4Gx0ApsOhIM2AgjeujFDxHGvwOKAU/gzuI/F+RE7/J4fDc2NjYRbauRlNBbW1tZSCw2cjfHdotSgZ+ROT/QqgALDBuIxhn4mJMJKQX5k3ESYr0g6qotwiYuIXCOQ3EwHexGpBE0cYLa4iiWBc3NDR0PhwOf4+Cm1iCCIj+G2JYnB4cHGyN1UB9fX0ZnZi8+MrKisNms5XzJxqPOUb9A/Vv4n/U3d3tCgQ2RrAEdCZcAIcMrn8R3Q8LCwv1bBvy4ia+wRPgPSzBFPJJMAGugWcfWJw/iORIXgwSozWoBt+C66qyJ/wN+ALB8syDGtja2nqchPnopxnZ3d3N58WTSJxxTVGUceRfgc/n5uYuZWVlpeP7aZAHDu07cpCcnJxGJ+H9dwB3GeGPRxQlMloIK1/TqNfW1j5pbm5uoPXy/+mnDj5FR1cxgtf+a801kcXFxWJqS28CepjoDYiS6ORfzAnj4+PtqBgNBoOfDQwMtOI6jRyfPT09L5M4+AiPkivILzGxo+AtYA+FQk9GyrgHicPheF471luamqqXl5ftm5ubzs7OzvvehgIXpcdTUlLondAJPga94LJv3edmBprxVGtDcLXgCd5AZUtLS6/fW3MVL2KVbr5U6ovrW4h2G54CJ0AWE3kR9IEPMaoPkL9rt9trqA7CHfjbrapyi/aEs1gsFfK/1/wp7XkHTjINaO2fSOQddHAVXMFoL8/OzrrZaFAnX4C4W8YMQLCJNSmanJy0cZEPwwYTG3UveD8sh7sKCwurtKsZZe3gbbA3A1SXm5tbHgqJTs0E7oJGwwZGRkYaIdwj43Dq6+uz032uMwcDcsQAZqFJ1+xY+8X207IsItolZ1dXF+LAeDplMpkqMjMzqRNB/5jYCATO0wzIMLC6uvom96gRMjIyylJTU8vYmhtO2aCE4APH6XTW4KyA+JrLarVWR2knsO+YUgKxzy1njtruf0v8/wUG019dDISlQm+mHQAAABpmY1RMAAAAFQAAACAAAAAhAAAAAAAAAAAAZAPoAABQgGYUAAAFD2ZkQVQAAAAWeAGl13tIW9cDB/BTTCtCdbYV2SjKGJ12zL+6f7bpBnUZG1cTQyzVn49Y42266NRNVuqEPXzgqpvsD53stzHcKGHdBttEkCBM6CjdoxsrQoUhSH2kZorYlkaTcO89+570XHd7SC4xOfDxHO/jvO85JyTVQCktgAZFURp5mqQimYcegUNABA2qqp5D7GFpIIIDsD/dCnTAEgTgTeGeR0AMjoNMFUVG/FQ6FfgbVuE2j59MogIHwc16h0H6TMoVwPheR7xMqRagGg0i/X0SFXhJv8YqcPf+/QYgiRCzm7Ozs33I6JZG6QrrBU3T/kH8ikkFHhWvd3V1VQNJhJjdtFgs5dvb21di80DTAtqDXrgGZHNzQ9YLWV9fbwGCdJXechbPzc01E0LKk/2smuEqzEA97MPlo0NDQ2wiLsKyYS6Q2traUxsbG3IQhbM0YMhoi7H1VqvVyfLg+R+jCq2FM8aJaZw4V+E3+AMt/QvxD/Ac3i1dWlm6pFHtFnphFYV+DQThZbBxViBTU1On9B7w+Xz1uFSG//OhSu+VB3Hs69hvrEAO/My791e4Dn/CjXA4/HFmZqZtfHy8a2xsrCsjI0MCgpDPK2HlaRakiooKpyRJ1XimcnV19aRKVWGugKKcRXxgtwIIFr/f/w5m+izviWt6b6DVNyYnJ+sNrS2BRKFEf661o/V5sWAmHAp7LlzoOc3KJIZggQq73V4fCAQ+x4NXeEV+gd+hDPcPc+aBP2f8IvTu98/MNBYVFTlYWWIFWCgECWyD/YPeO3fvXFY07aeFhYVPsrOzjwDZC4QjbB6EQiHPzbmbzWxoeO9IvKy4IQtOQCXYdOYtN+0Jm0ElPANZ4udXCl9hkWGznvkRJhUlehmTro2Pa6qhpK6uzrm1teUWhwMaoIBgln6BxDeYgN8i1n3HTQBJU4OxYCO2lRP8+Qz/+GJUFagPlQJQ1E+BpCOqRF16gaLozk4jGRkZce/s7PwfF76ECQaFT2DyjGMVbAaSDpfLVWVctnXB20G5qanJLq5oIiukE5LKP198qL293bW2ttaLmn4INbAPSApK2f4wPz/vYqtjnMLzxS8iD2QYwTB8hHgIBuGJvRcubM0q4KwABxMdSF5UVXoR8TBmbKxgldIBXGM98TiQvcAceizOpwdKC+LjYgWy4CI3CAP4IvoQvzc9Pe1lKyHShXA0qZZDTk7OYd8lX3282a9QYTOCTJUVCtAH7y8uLr7ldDpr2HgFg8FKdihFpToQv2A25nqLsROWs3fZmYAdTB6uAH14O0awjI6OtkQikXdxsnm7t3egCdtpbPns7OwsY4VDB7SBDAQK0JJGfUUDAm7jmMuy/Ky+rLe1tZ3GRue+dy90tqcn/m4oCbO0DA6hkDpk2Amvg3dlZaUOdlc4itbyNFkOLP/PcBr2QBXyyIUyIW8p0W74KpzUj1GRCH0ambwB7ciUtf41h8PmAGI84XDEZrM52DVh8h0DwvMs52UUJn9OVHe73otDi4u3Ju6pGKHUP+NvFK7Xpvy7AC3w8q5vxdHsXHFxcZW+NRu7mqcJu8eeCYVD/6330agbSCLE7Obw8AfVqhptRdrb3d1dw/dzkqgHGIQT3efP1+AdTxj6+/sdQBIhpjcxXrm5ufa8vDw70pLxMMGO5Kzl+sYChOHPSOwd9i4f85RDIVQw4sSJ/S7Y3JTXDb8LOON7Ek+nFSyc2S5nNX3PJPwLu02sWzaoOecAAAATdEVYdFNvZnR3YXJlAEphcG5nIHIxMTkn6LNhAAAAAElFTkSuQmCC);background-size:16px 17px}ngx-extended-pdf-viewer .dropdownToolbarButton::after{width:24px;height:24px;display:inline-block;position:absolute;margin-top:5px}@media print{body{background:rgba(0,0,0,0)}#errorWrapper,#loadingBox,#secondaryToolbar,#sidebarContainer,.textLayer,.toolbar{display:none}#viewerContainer{overflow:visible}#mainContainer,#viewerContainer,.page,.page canvas{position:static;padding:0;margin:0}.page{float:left;display:none;border:none;box-shadow:none;background-clip:content-box;background-color:#fff}.page[data-loaded]{display:block}.fileInput,body[data-pdfjsprinting] #outerContainer{display:none}#printContainer canvas,#printContainer img,body[data-pdfjsprinting] #printContainer{display:block}#printContainer{height:100%}#printContainer>div{position:relative;top:0;left:0;width:1px;height:1px;overflow:visible;page-break-after:always;page-break-inside:avoid}}ngx-extended-pdf-viewer .visibleLargeView,ngx-extended-pdf-viewer .visibleMediumView,ngx-extended-pdf-viewer .visibleSmallView{display:none}ngx-extended-pdf-viewer #viewerContainer{overflow:auto;-webkit-overflow-scrolling:touch;position:absolute}ngx-extended-pdf-viewer .invisible{display:none!important}body[data-pdfjsprinting] #printContainer,body[data-pdfjsprinting] #printContainer *{padding:0;margin:0;font:message-box;outline:0}#printContainer canvas,#printContainer img{display:block!important}@media print{body[data-pdfjsprinting]>*{display:none!important}body[data-pdfjsprinting] #printContainer{display:block!important}body[data-pdfjsprinting] #printContainer div img{height:100vh!important}body,html{overflow-y:visible!important}html.cdk-global-scrollblock{width:initial;position:initial}}ngx-extended-pdf-viewer .textLayer .highlight.color0{background-color:rgba(180,0,170,.4)}ngx-extended-pdf-viewer .textLayer .highlight.color0.selected{background-color:#b400aa}ngx-extended-pdf-viewer .textLayer .highlight.color1{background-color:rgba(0,100,0,.4)}ngx-extended-pdf-viewer .textLayer .highlight.color1.selected{background-color:#006400}ngx-extended-pdf-viewer .textLayer .highlight.color2{background-color:rgba(0,0,255,.4)}ngx-extended-pdf-viewer .textLayer .highlight.color2.selected{background-color:#00f}ngx-extended-pdf-viewer .textLayer .highlight.color3{background-color:rgba(255,0,0,.4)}ngx-extended-pdf-viewer .textLayer .highlight.color3.selected{background-color:red}ngx-extended-pdf-viewer textLayer .highlight.color4{background-color:rgba(255,94,0,.4)}ngx-extended-pdf-viewer .textLayer .highlight.color4.selected{background-color:#ff5e00}html[dir=ltr] ngx-extended-pdf-viewer .dropdownToolbarButton,html[dir=ltr] ngx-extended-pdf-viewer .overlayButton,html[dir=ltr] ngx-extended-pdf-viewer .toolbarButton{margin:3px 0 4px}html[dir=ltr] ngx-extended-pdf-viewer .toolbarButton:last-child,html[dir=rtl] ngx-extended-pdf-viewer .toolbarButton:first-child{margin-right:0;margin-left:0}html[dir=ltr] ngx-extended-pdf-viewer #secondaryToolbarToggle{margin-right:4px;margin-left:0}html[dir=rtl] ngx-extended-pdf-viewer #secondaryToolbarToggle{margin-right:0;margin-left:4px}ngx-extended-pdf-viewer .dropdownToolbarButton,ngx-extended-pdf-viewer .overlayButton,ngx-extended-pdf-viewer .secondaryToolbarButton,ngx-extended-pdf-viewer .toolbarButton{padding-left:0;padding-right:0}ngx-extended-pdf-viewer .offscreen{position:fixed!important;left:-9999px!important;display:block!important;width:3000px!important}ngx-extended-pdf-viewer .offscreen #sidebarContainer{top:1000px!important}ngx-extended-pdf-viewer .dropdownToolbarButton,ngx-extended-pdf-viewer .toolbarButton{margin-left:-1px!important;margin-right:-2px!important}ngx-extended-pdf-viewer #numPages{padding-right:0}ngx-extended-pdf-viewer .pdf-viewer-template,ngx-extended-pdf-viewer .pdf-viewer-template *{display:none}ngx-extended-pdf-viewer a:focus,ngx-extended-pdf-viewer button:focus,ngx-extended-pdf-viewer input:focus,ngx-extended-pdf-viewer select:focus{outline:0;border:1px solid #00f}ngx-extended-pdf-viewer input[type=checkbox]:focus{outline:#00f solid 1px}"],encapsulation:2}),wD),uM=((bD=function e(){A(this,e)}).\u0275fac=function(e){return new(e||bD)},bD.\u0275cmp=ft({type:bD,selectors:[["pdf-dark-theme"]],decls:0,vars:0,template:function(e,t){},styles:["ngx-extended-pdf-viewer .dropdownToolbarButton::after{content:url(\"data:image/svg+xml; utf8, <svg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'><path fill='rgb(217, 217, 217)' d='M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z' /></svg>\")}ngx-extended-pdf-viewer .textLayer{position:absolute;left:0;top:0;right:0;bottom:0;overflow:hidden;opacity:.2;line-height:1}ngx-extended-pdf-viewer .textLayer>span{color:transparent;position:absolute;white-space:pre;cursor:text;-webkit-transform-origin:0 0;transform-origin:0 0}ngx-extended-pdf-viewer .textLayer .highlight{margin:-1px;padding:1px;background-color:var(#b400aa);border-radius:4px}ngx-extended-pdf-viewer .textLayer .highlight.begin{border-radius:4px 0 0 4px}ngx-extended-pdf-viewer .textLayer .highlight.end{border-radius:0 4px 4px 0}ngx-extended-pdf-viewer .textLayer .highlight.middle{border-radius:0}ngx-extended-pdf-viewer .textLayer .highlight.selected{background-color:#006400}ngx-extended-pdf-viewer .textLayer ::-moz-selection{background:#00f}ngx-extended-pdf-viewer .textLayer ::selection{background:#00f}ngx-extended-pdf-viewer .textLayer .endOfContent{display:block;position:absolute;left:0;top:100%;right:0;bottom:0;z-index:-1;cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}ngx-extended-pdf-viewer .textLayer .endOfContent.active{top:0}ngx-extended-pdf-viewer .annotationLayer section{position:absolute}ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.pushButton>a,ngx-extended-pdf-viewer .annotationLayer .linkAnnotation>a{position:absolute;font-size:1em;top:0;left:0;width:100%;height:100%}ngx-extended-pdf-viewer .annotationLayer .textAnnotation img{position:absolute;cursor:pointer}ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.checkBox input,ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.radioButton input,ngx-extended-pdf-viewer .annotationLayer .choiceWidgetAnnotation select,ngx-extended-pdf-viewer .annotationLayer .textWidgetAnnotation input,ngx-extended-pdf-viewer .annotationLayer .textWidgetAnnotation textarea{background-color:rgba(0,54,255,.13);color:#474747;border:1px solid transparent;box-sizing:border-box;font-size:9px;height:100%;margin:0;padding:0 3px;vertical-align:top;width:100%}ngx-extended-pdf-viewer .annotationLayer .choiceWidgetAnnotation select option{padding:0}ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.radioButton input{border-radius:50%}ngx-extended-pdf-viewer .annotationLayer .textWidgetAnnotation textarea{font:message-box;font-size:9px;resize:none}ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.checkBox input[disabled],ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.radioButton input[disabled],ngx-extended-pdf-viewer .annotationLayer .choiceWidgetAnnotation select[disabled],ngx-extended-pdf-viewer .annotationLayer .textWidgetAnnotation input[disabled],ngx-extended-pdf-viewer .annotationLayer .textWidgetAnnotation textarea[disabled]{background:0 0;border:1px solid transparent;cursor:not-allowed}ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after,ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before,ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.radioButton input:checked:before{background-color:#474747;content:'';display:block;position:absolute}ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after,ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before{height:80%;left:45%;width:1px}ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before{-webkit-transform:rotate(45deg);transform:rotate(45deg)}ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after{-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.radioButton input:checked:before{border-radius:50%;height:50%;left:30%;top:20%;width:50%}ngx-extended-pdf-viewer .annotationLayer .textWidgetAnnotation input.comb{font-family:monospace;padding-left:2px;padding-right:0}ngx-extended-pdf-viewer .annotationLayer .textWidgetAnnotation input.comb:focus{width:115%}ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.checkBox input,ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.radioButton input{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:0}ngx-extended-pdf-viewer .annotationLayer .popupWrapper{position:absolute;width:20em}ngx-extended-pdf-viewer .annotationLayer .popup{position:absolute;z-index:4;max-width:20em;background-color:#ff9;box-shadow:0 2px 5px #888;border-radius:2px;padding:6px;margin-left:5px;cursor:pointer;font:message-box;font-size:9px;word-wrap:break-word}ngx-extended-pdf-viewer .annotationLayer .popup>*{font-size:9px}ngx-extended-pdf-viewer .annotationLayer .popup h1{display:inline-block}ngx-extended-pdf-viewer .annotationLayer .popup span{display:inline-block;margin-left:5px}ngx-extended-pdf-viewer .annotationLayer .popup p{border-top:1px solid #333;margin-top:2px;padding-top:2px}ngx-extended-pdf-viewer .annotationLayer .caretAnnotation,ngx-extended-pdf-viewer .annotationLayer .circleAnnotation svg ellipse,ngx-extended-pdf-viewer .annotationLayer .fileAttachmentAnnotation,ngx-extended-pdf-viewer .annotationLayer .freeTextAnnotation,ngx-extended-pdf-viewer .annotationLayer .highlightAnnotation,ngx-extended-pdf-viewer .annotationLayer .inkAnnotation svg polyline,ngx-extended-pdf-viewer .annotationLayer .lineAnnotation svg line,ngx-extended-pdf-viewer .annotationLayer .polygonAnnotation svg polygon,ngx-extended-pdf-viewer .annotationLayer .polylineAnnotation svg polyline,ngx-extended-pdf-viewer .annotationLayer .squareAnnotation svg rect,ngx-extended-pdf-viewer .annotationLayer .squigglyAnnotation,ngx-extended-pdf-viewer .annotationLayer .stampAnnotation,ngx-extended-pdf-viewer .annotationLayer .strikeoutAnnotation,ngx-extended-pdf-viewer .annotationLayer .underlineAnnotation{cursor:pointer}ngx-extended-pdf-viewer .pdfViewer .canvasWrapper{overflow:hidden}ngx-extended-pdf-viewer .pdfViewer .page{direction:ltr;width:816px;height:1056px;margin:1px auto -8px;position:relative;overflow:visible;border:9px solid transparent;background-clip:content-box;-o-border-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAATCAQAAADYWf5HAAAA6UlEQVR4Xl2Pi2rEMAwE16fm1f7/r14v7w4rI0IzLAF7hLxNevBSEMEF5+OilNCsRd8ZMyn+a4NmsOT8WJw1lFbSYgGFzF2bLFoLjTClWjKKGRWpDYAGXUnZ4uhbBUzF3Oe/GG/ue2fn4GgsyXhNgysV2JnrhKEMg4fEZcALmiKbNhBBRFpSyDOj1G4QOVly6O1FV54ZZq8OVygrciDt6JazRgi1ljTPH0gbrPmHPXAbCiDd4GawIjip1TPh9tt2sz24qaCjr/jAb/GBFTbq9KZ7Ke/Cqt8nayUikZKsWZK7Fe6bg5dOUt8fZHWG2BHc+6EAAAAASUVORK5CYII=) 9 9 repeat;border-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAATCAQAAADYWf5HAAAA6UlEQVR4Xl2Pi2rEMAwE16fm1f7/r14v7w4rI0IzLAF7hLxNevBSEMEF5+OilNCsRd8ZMyn+a4NmsOT8WJw1lFbSYgGFzF2bLFoLjTClWjKKGRWpDYAGXUnZ4uhbBUzF3Oe/GG/ue2fn4GgsyXhNgysV2JnrhKEMg4fEZcALmiKbNhBBRFpSyDOj1G4QOVly6O1FV54ZZq8OVygrciDt6JazRgi1ljTPH0gbrPmHPXAbCiDd4GawIjip1TPh9tt2sz24qaCjr/jAb/GBFTbq9KZ7Ke/Cqt8nayUikZKsWZK7Fe6bg5dOUt8fZHWG2BHc+6EAAAAASUVORK5CYII=) 9 9 repeat;background-color:#fff}ngx-extended-pdf-viewer .pdfViewer.removePageBorders .page{margin:0 auto 10px;border:none}ngx-extended-pdf-viewer .pdfViewer.singlePageView{display:inline-block}ngx-extended-pdf-viewer .pdfViewer.singlePageView .page{margin:0;border:none}ngx-extended-pdf-viewer .pdfViewer.scrollHorizontal,ngx-extended-pdf-viewer .pdfViewer.scrollWrapped,ngx-extended-pdf-viewer .spread{margin-left:3.5px;margin-right:3.5px;text-align:center}ngx-extended-pdf-viewer .pdfViewer.scrollHorizontal,ngx-extended-pdf-viewer .spread{white-space:nowrap}ngx-extended-pdf-viewer .pdfViewer.removePageBorders,ngx-extended-pdf-viewer .pdfViewer.scrollHorizontal .spread,ngx-extended-pdf-viewer .pdfViewer.scrollWrapped .spread{margin-left:0;margin-right:0}ngx-extended-pdf-viewer .pdfViewer.scrollHorizontal .page,ngx-extended-pdf-viewer .pdfViewer.scrollHorizontal .spread,ngx-extended-pdf-viewer .pdfViewer.scrollWrapped .page,ngx-extended-pdf-viewer .pdfViewer.scrollWrapped .spread,ngx-extended-pdf-viewer .spread .page{display:inline-block;vertical-align:middle}ngx-extended-pdf-viewer .pdfViewer.scrollHorizontal .page,ngx-extended-pdf-viewer .pdfViewer.scrollWrapped .page,ngx-extended-pdf-viewer .spread .page{margin-left:-3.5px;margin-right:-3.5px}ngx-extended-pdf-viewer .pdfViewer.removePageBorders .spread .page,ngx-extended-pdf-viewer .pdfViewer.removePageBorders.scrollHorizontal .page,ngx-extended-pdf-viewer .pdfViewer.removePageBorders.scrollWrapped .page{margin-left:5px;margin-right:5px}ngx-extended-pdf-viewer .pdfViewer .page canvas{margin:0;display:block}ngx-extended-pdf-viewer .pdfViewer .page canvas[hidden]{display:none}ngx-extended-pdf-viewer .pdfViewer .page .loadingIcon{position:absolute;display:block;left:0;top:0;right:0;bottom:0;background:url(data:image/gif;base64,R0lGODlhGAAYAPQAAP///wAAAM7Ozvr6+uDg4LCwsOjo6I6OjsjIyJycnNjY2KioqMDAwPLy8nZ2doaGhri4uGhoaAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH/C05FVFNDQVBFMi4wAwEAAAAh/hpDcmVhdGVkIHdpdGggYWpheGxvYWQuaW5mbwAh+QQJBwAAACwAAAAAGAAYAAAFriAgjiQAQWVaDgr5POSgkoTDjFE0NoQ8iw8HQZQTDQjDn4jhSABhAAOhoTqSDg7qSUQwxEaEwwFhXHhHgzOA1xshxAnfTzotGRaHglJqkJcaVEqCgyoCBQkJBQKDDXQGDYaIioyOgYSXA36XIgYMBWRzXZoKBQUMmil0lgalLSIClgBpO0g+s26nUWddXyoEDIsACq5SsTMMDIECwUdJPw0Mzsu0qHYkw72bBmozIQAh+QQJBwAAACwAAAAAGAAYAAAFsCAgjiTAMGVaDgR5HKQwqKNxIKPjjFCk0KNXC6ATKSI7oAhxWIhezwhENTCQEoeGCdWIPEgzESGxEIgGBWstEW4QCGGAIJEoxGmGt5ZkgCRQQHkGd2CESoeIIwoMBQUMP4cNeQQGDYuNj4iSb5WJnmeGng0CDGaBlIQEJziHk3sABidDAHBgagButSKvAAoyuHuUYHgCkAZqebw0AgLBQyyzNKO3byNuoSS8x8OfwIchACH5BAkHAAAALAAAAAAYABgAAAW4ICCOJIAgZVoOBJkkpDKoo5EI43GMjNPSokXCINKJCI4HcCRIQEQvqIOhGhBHhUTDhGo4diOZyFAoKEQDxra2mAEgjghOpCgz3LTBIxJ5kgwMBShACREHZ1V4Kg1rS44pBAgMDAg/Sw0GBAQGDZGTlY+YmpyPpSQDiqYiDQoCliqZBqkGAgKIS5kEjQ21VwCyp76dBHiNvz+MR74AqSOdVwbQuo+abppo10ssjdkAnc0rf8vgl8YqIQAh+QQJBwAAACwAAAAAGAAYAAAFrCAgjiQgCGVaDgZZFCQxqKNRKGOSjMjR0qLXTyciHA7AkaLACMIAiwOC1iAxCrMToHHYjWQiA4NBEA0Q1RpWxHg4cMXxNDk4OBxNUkPAQAEXDgllKgMzQA1pSYopBgonCj9JEA8REQ8QjY+RQJOVl4ugoYssBJuMpYYjDQSliwasiQOwNakALKqsqbWvIohFm7V6rQAGP6+JQLlFg7KDQLKJrLjBKbvAor3IKiEAIfkECQcAAAAsAAAAABgAGAAABbUgII4koChlmhokw5DEoI4NQ4xFMQoJO4uuhignMiQWvxGBIQC+AJBEUyUcIRiyE6CR0CllW4HABxBURTUw4nC4FcWo5CDBRpQaCoF7VjgsyCUDYDMNZ0mHdwYEBAaGMwwHDg4HDA2KjI4qkJKUiJ6faJkiA4qAKQkRB3E0i6YpAw8RERAjA4tnBoMApCMQDhFTuySKoSKMJAq6rD4GzASiJYtgi6PUcs9Kew0xh7rNJMqIhYchACH5BAkHAAAALAAAAAAYABgAAAW0ICCOJEAQZZo2JIKQxqCOjWCMDDMqxT2LAgELkBMZCoXfyCBQiFwiRsGpku0EshNgUNAtrYPT0GQVNRBWwSKBMp98P24iISgNDAS4ipGA6JUpA2WAhDR4eWM/CAkHBwkIDYcGiTOLjY+FmZkNlCN3eUoLDmwlDW+AAwcODl5bYl8wCVYMDw5UWzBtnAANEQ8kBIM0oAAGPgcREIQnVloAChEOqARjzgAQEbczg8YkWJq8nSUhACH5BAkHAAAALAAAAAAYABgAAAWtICCOJGAYZZoOpKKQqDoORDMKwkgwtiwSBBYAJ2owGL5RgxBziQQMgkwoMkhNqAEDARPSaiMDFdDIiRSFQowMXE8Z6RdpYHWnEAWGPVkajPmARVZMPUkCBQkJBQINgwaFPoeJi4GVlQ2Qc3VJBQcLV0ptfAMJBwdcIl+FYjALQgimoGNWIhAQZA4HXSpLMQ8PIgkOSHxAQhERPw7ASTSFyCMMDqBTJL8tf3y2fCEAIfkECQcAAAAsAAAAABgAGAAABa8gII4k0DRlmg6kYZCoOg5EDBDEaAi2jLO3nEkgkMEIL4BLpBAkVy3hCTAQKGAznM0AFNFGBAbj2cA9jQixcGZAGgECBu/9HnTp+FGjjezJFAwFBQwKe2Z+KoCChHmNjVMqA21nKQwJEJRlbnUFCQlFXlpeCWcGBUACCwlrdw8RKGImBwktdyMQEQciB7oACwcIeA4RVwAODiIGvHQKERAjxyMIB5QlVSTLYLZ0sW8hACH5BAkHAAAALAAAAAAYABgAAAW0ICCOJNA0ZZoOpGGQrDoOBCoSxNgQsQzgMZyIlvOJdi+AS2SoyXrK4umWPM5wNiV0UDUIBNkdoepTfMkA7thIECiyRtUAGq8fm2O4jIBgMBA1eAZ6Knx+gHaJR4QwdCMKBxEJRggFDGgQEREPjjAMBQUKIwIRDhBDC2QNDDEKoEkDoiMHDigICGkJBS2dDA6TAAnAEAkCdQ8ORQcHTAkLcQQODLPMIgIJaCWxJMIkPIoAt3EhACH5BAkHAAAALAAAAAAYABgAAAWtICCOJNA0ZZoOpGGQrDoOBCoSxNgQsQzgMZyIlvOJdi+AS2SoyXrK4umWHM5wNiV0UN3xdLiqr+mENcWpM9TIbrsBkEck8oC0DQqBQGGIz+t3eXtob0ZTPgNrIwQJDgtGAgwCWSIMDg4HiiUIDAxFAAoODwxDBWINCEGdSTQkCQcoegADBaQ6MggHjwAFBZUFCm0HB0kJCUy9bAYHCCPGIwqmRq0jySMGmj6yRiEAIfkECQcAAAAsAAAAABgAGAAABbIgII4k0DRlmg6kYZCsOg4EKhLE2BCxDOAxnIiW84l2L4BLZKipBopW8XRLDkeCiAMyMvQAA+uON4JEIo+vqukkKQ6RhLHplVGN+LyKcXA4Dgx5DWwGDXx+gIKENnqNdzIDaiMECwcFRgQCCowiCAcHCZIlCgICVgSfCEMMnA0CXaU2YSQFoQAKUQMMqjoyAglcAAyBAAIMRUYLCUkFlybDeAYJryLNk6xGNCTQXY0juHghACH5BAkHAAAALAAAAAAYABgAAAWzICCOJNA0ZVoOAmkY5KCSSgSNBDE2hDyLjohClBMNij8RJHIQvZwEVOpIekRQJyJs5AMoHA+GMbE1lnm9EcPhOHRnhpwUl3AsknHDm5RN+v8qCAkHBwkIfw1xBAYNgoSGiIqMgJQifZUjBhAJYj95ewIJCQV7KYpzBAkLLQADCHOtOpY5PgNlAAykAEUsQ1wzCgWdCIdeArczBQVbDJ0NAqyeBb64nQAGArBTt8R8mLuyPyEAOwAAAAAAAAAAAA==) center no-repeat}ngx-extended-pdf-viewer .pdfPresentationMode .pdfViewer{margin-left:0;margin-right:0}ngx-extended-pdf-viewer .pdfPresentationMode .pdfViewer .page,ngx-extended-pdf-viewer .pdfPresentationMode .pdfViewer .spread{display:block}ngx-extended-pdf-viewer .pdfPresentationMode .pdfViewer .page,ngx-extended-pdf-viewer .pdfPresentationMode .pdfViewer.removePageBorders .page{margin-left:auto;margin-right:auto}ngx-extended-pdf-viewer .pdfPresentationMode:-ms-fullscreen .pdfViewer .page{margin-bottom:100%!important}ngx-extended-pdf-viewer .pdfPresentationMode:-webkit-full-screen .pdfViewer .page{margin-bottom:100%;border:0}ngx-extended-pdf-viewer .pdfPresentationMode:-moz-full-screen .pdfViewer .page{margin-bottom:100%;border:0}ngx-extended-pdf-viewer .pdfPresentationMode:fullscreen .pdfViewer .page{margin-bottom:100%;border:0}ngx-extended-pdf-viewer .html *{padding:0;margin:0}ngx-extended-pdf-viewer .html{height:100%;width:100%;font-size:10px}ngx-extended-pdf-viewer .body{height:100%;width:100%}ngx-extended-pdf-viewer .body,ngx-extended-pdf-viewer .pdf-viewer button,ngx-extended-pdf-viewer .pdf-viewer input,ngx-extended-pdf-viewer .pdf-viewer select{font:message-box;outline:0}ngx-extended-pdf-viewer select{background-color:rgba(255,255,255,.09)!important}ngx-extended-pdf-viewer .hidden,ngx-extended-pdf-viewer [hidden]{display:none!important}ngx-extended-pdf-viewer .pdfViewer.enablePermissions .textLayer>span{-webkit-user-select:none!important;-moz-user-select:none!important;-ms-user-select:none!important;user-select:none!important;cursor:not-allowed}ngx-extended-pdf-viewer #viewerContainer.pdfPresentationMode:-ms-fullscreen{top:0!important;overflow:hidden!important}ngx-extended-pdf-viewer #viewerContainer.pdfPresentationMode:-ms-fullscreen::-ms-backdrop{background-color:#000}ngx-extended-pdf-viewer #viewerContainer.pdfPresentationMode:-webkit-full-screen{top:0;border-top:2px solid transparent;background-color:#000;width:100%;height:100%;overflow:hidden;cursor:none;-webkit-user-select:none;user-select:none}ngx-extended-pdf-viewer #viewerContainer.pdfPresentationMode:-moz-full-screen{top:0;border-top:2px solid transparent;background-color:#000;width:100%;height:100%;overflow:hidden;cursor:none;-moz-user-select:none;user-select:none}ngx-extended-pdf-viewer #viewerContainer.pdfPresentationMode:-ms-fullscreen{border-top:2px solid transparent;background-color:#000;width:100%;height:100%;cursor:none;-ms-user-select:none;user-select:none}ngx-extended-pdf-viewer #viewerContainer.pdfPresentationMode:fullscreen{top:0;border-top:2px solid transparent;background-color:#000;width:100%;height:100%;overflow:hidden;cursor:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}ngx-extended-pdf-viewer .pdfPresentationMode:-webkit-full-screen a:not(.internalLink){display:none}ngx-extended-pdf-viewer .pdfPresentationMode:-moz-full-screen a:not(.internalLink){display:none}ngx-extended-pdf-viewer .pdfPresentationMode:-ms-fullscreen a:not(.internalLink){display:none}ngx-extended-pdf-viewer .pdfPresentationMode:fullscreen a:not(.internalLink){display:none}ngx-extended-pdf-viewer .pdfPresentationMode:-webkit-full-screen .textLayer>span{cursor:none}ngx-extended-pdf-viewer .pdfPresentationMode:-moz-full-screen .textLayer>span{cursor:none}ngx-extended-pdf-viewer .pdfPresentationMode:-ms-fullscreen .textLayer>span{cursor:none}ngx-extended-pdf-viewer .pdfPresentationMode:fullscreen .textLayer>span{cursor:none}ngx-extended-pdf-viewer .pdfPresentationMode.pdfPresentationModeControls .textLayer>span,ngx-extended-pdf-viewer .pdfPresentationMode.pdfPresentationModeControls>*{cursor:default}ngx-extended-pdf-viewer #outerContainer{width:100%;height:100%;position:relative;-webkit-clip-path:inset(0 0 0 0);clip-path:inset(0 0 0 0)}ngx-extended-pdf-viewer #sidebarContainer{position:absolute;top:32px;bottom:0;width:200px;visibility:hidden;z-index:2;border-top:1px solid #333;transition-duration:.2s;transition-timing-function:ease}html[dir=ltr] ngx-extended-pdf-viewer #sidebarContainer{transition-property:left;left:-200px;left:calc(0px - $sidebar-width)}html[dir=rtl] ngx-extended-pdf-viewer #sidebarContainer{transition-property:right;right:-200px;right:calc(0px - $sidebar-width)}ngx-extended-pdf-viewer .loadingInProgress #sidebarContainer{top:36px}ngx-extended-pdf-viewer #outerContainer.sidebarResizing #sidebarContainer{transition-duration:0s;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}ngx-extended-pdf-viewer #outerContainer.sidebarMoving #sidebarContainer,ngx-extended-pdf-viewer #outerContainer.sidebarOpen #sidebarContainer{visibility:visible}html[dir=ltr] ngx-extended-pdf-viewer #outerContainer.sidebarOpen #sidebarContainer{left:0}html[dir=rtl] ngx-extended-pdf-viewer #outerContainer.sidebarOpen #sidebarContainer{right:0}ngx-extended-pdf-viewer #mainContainer{position:absolute;top:0;right:0;bottom:0;left:0;min-width:320px}ngx-extended-pdf-viewer #sidebarContent{top:32px;bottom:0;overflow:auto;-webkit-overflow-scrolling:touch;position:absolute;width:100%;background-color:rgba(0,0,0,.1)}html[dir=ltr] ngx-extended-pdf-viewer #sidebarContent{left:0}html[dir=rtl] ngx-extended-pdf-viewer #sidebarContent{right:0}ngx-extended-pdf-viewer #viewerContainer{-webkit-overflow-scrolling:touch;top:32px;right:0;bottom:0;left:0;outline:0}ngx-extended-pdf-viewer #viewerContainer:not(.pdfPresentationMode){transition-duration:.2s;transition-timing-function:ease}ngx-extended-pdf-viewer #outerContainer.sidebarResizing #viewerContainer{transition-duration:0s}html[dir=ltr] ngx-extended-pdf-viewer #outerContainer.sidebarOpen #viewerContainer:not(.pdfPresentationMode){transition-property:left;left:200px}html[dir=rtl] ngx-extended-pdf-viewer #outerContainer.sidebarOpen #viewerContainer:not(.pdfPresentationMode){transition-property:right;right:200px}ngx-extended-pdf-viewer .toolbar{position:relative;left:0;right:0;z-index:7;cursor:default;border:1px solid rgba(0,0,0,.5)}ngx-extended-pdf-viewer #toolbarContainer{width:100%}ngx-extended-pdf-viewer #toolbarSidebar{width:100%;height:32px;background-color:#424242;color:#d9d9d9;border:none;padding-top:1px}ngx-extended-pdf-viewer #sidebarResizer{position:absolute;top:0;bottom:0;width:6px;z-index:4;cursor:ew-resize}html[dir=ltr] ngx-extended-pdf-viewer #sidebarResizer{right:-6px}html[dir=rtl] ngx-extended-pdf-viewer #sidebarResizer{left:-6px}ngx-extended-pdf-viewer #toolbarContainer,ngx-extended-pdf-viewer .findbar,ngx-extended-pdf-viewer .secondaryToolbar{position:relative;height:32px;background-color:#474747}ngx-extended-pdf-viewer #toolbarViewer{height:32px}ngx-extended-pdf-viewer #loadingBar{position:relative;width:100%;height:4px;background-color:#333;border-bottom:1px solid #333}ngx-extended-pdf-viewer #loadingBar .progress{position:absolute;top:0;left:0;width:0%;height:100%;background-color:#ddd;overflow:hidden;transition:width .2s}@-webkit-keyframes progressIndeterminate{0%{left:-142px}100%{left:0}}@keyframes progressIndeterminate{0%{left:-142px}100%{left:0}}ngx-extended-pdf-viewer #loadingBar .progress.indeterminate{background-color:#999;transition:none}ngx-extended-pdf-viewer #loadingBar .progress.indeterminate .glimmer{position:absolute;top:0;left:0;height:100%;width:calc(100% + 150px);background:repeating-linear-gradient(135deg,#bbb 0,#999 5px,#999 45px,#ddd 55px,#ddd 95px,#bbb 100px);-webkit-animation:950ms linear infinite progressIndeterminate;animation:950ms linear infinite progressIndeterminate}ngx-extended-pdf-viewer .findbar,ngx-extended-pdf-viewer .secondaryToolbar{top:40px;position:absolute;z-index:7;height:auto;min-width:16px;padding:0 6px;margin:4px 2px;color:#d9d9d9;font-size:12px;line-height:14px;text-align:left;cursor:default}ngx-extended-pdf-viewer .findbar{min-width:300px}ngx-extended-pdf-viewer .findbar>div{height:32px}ngx-extended-pdf-viewer .findbar.wrapContainers>div{clear:both}ngx-extended-pdf-viewer .findbar.wrapContainers>div#findbarMessageContainer{height:auto}html[dir=ltr] ngx-extended-pdf-viewer .findbar{left:34px}html[dir=rtl] ngx-extended-pdf-viewer .findbar{right:34px}ngx-extended-pdf-viewer .findbar label{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}ngx-extended-pdf-viewer #findInput{width:200px}ngx-extended-pdf-viewer #findInput::-webkit-input-placeholder{color:#bfbfbf}ngx-extended-pdf-viewer #findInput::-moz-placeholder{font-style:italic}ngx-extended-pdf-viewer #findInput:-ms-input-placeholder{font-style:italic}ngx-extended-pdf-viewer #findInput::-ms-input-placeholder{font-style:italic}ngx-extended-pdf-viewer #findInput::placeholder{font-style:italic}ngx-extended-pdf-viewer #findInput[data-status=pending]{background-repeat:no-repeat;background-position:right}html[dir=rtl] ngx-extended-pdf-viewer #findInput[data-status=pending]{background-position:left}ngx-extended-pdf-viewer .secondaryToolbar{padding:6px;height:auto;z-index:8}html[dir=ltr] ngx-extended-pdf-viewer .secondaryToolbar{right:4px}html[dir=rtl] ngx-extended-pdf-viewer .secondaryToolbar{left:4px}ngx-extended-pdf-viewer #secondaryToolbarButtonContainer{max-width:200px;max-height:400px;overflow-y:auto;-webkit-overflow-scrolling:touch;margin-bottom:-4px}ngx-extended-pdf-viewer #secondaryToolbarButtonContainer.hiddenScrollModeButtons>.scrollModeButtons,ngx-extended-pdf-viewer #secondaryToolbarButtonContainer.hiddenSpreadModeButtons>.spreadModeButtons{display:none!important}ngx-extended-pdf-viewer .doorHanger,ngx-extended-pdf-viewer .doorHangerRight{border:1px solid rgba(0,0,0,.5);border-radius:2px}ngx-extended-pdf-viewer .doorHanger:after,ngx-extended-pdf-viewer .doorHanger:before,ngx-extended-pdf-viewer .doorHangerRight:after,ngx-extended-pdf-viewer .doorHangerRight:before{bottom:100%;border:solid transparent;content:' ';height:0;width:0;position:absolute;pointer-events:none}ngx-extended-pdf-viewer .doorHanger:after,ngx-extended-pdf-viewer .doorHangerRight:after{border-bottom-color:#474747;border-width:8px}ngx-extended-pdf-viewer .doorHanger:before,ngx-extended-pdf-viewer .doorHangerRight:before{border-bottom-color:rgba(0,0,0,.5);border-width:9px}html[dir=ltr] ngx-extended-pdf-viewer .doorHanger:after,html[dir=rtl] ngx-extended-pdf-viewer .doorHangerRight:after{left:13px;margin-left:-8px}html[dir=ltr] ngx-extended-pdf-viewer .doorHanger:before,html[dir=rtl] ngx-extended-pdf-viewer .doorHangerRight:before{left:13px;margin-left:-9px}html[dir=ltr] ngx-extended-pdf-viewer .doorHangerRight:after,html[dir=rtl] ngx-extended-pdf-viewer .doorHanger:after{right:13px;margin-right:-8px}html[dir=ltr] ngx-extended-pdf-viewer .doorHangerRight:before,html[dir=rtl] ngx-extended-pdf-viewer .doorHanger:before{right:13px;margin-right:-9px}ngx-extended-pdf-viewer #findResultsCount{background-color:#d9d9d9;color:#474747;text-align:center;padding:3px 4px}ngx-extended-pdf-viewer #findMsg{font-style:italic;color:#f66}ngx-extended-pdf-viewer #findMsg:empty{display:none}ngx-extended-pdf-viewer #findInput.notFound{background-color:#f66}ngx-extended-pdf-viewer #toolbarViewerMiddle{position:absolute;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%)}html[dir=ltr] ngx-extended-pdf-viewer #toolbarViewerLeft,html[dir=rtl] ngx-extended-pdf-viewer #toolbarViewerRight{float:left;margin-left:4px}html[dir=ltr] ngx-extended-pdf-viewer #toolbarViewerRight,html[dir=rtl] ngx-extended-pdf-viewer #toolbarViewerLeft{float:right;margin-right:4px}html[dir=ltr] ngx-extended-pdf-viewer #toolbarViewerLeft>*,html[dir=ltr] ngx-extended-pdf-viewer #toolbarViewerMiddle>*,html[dir=ltr] ngx-extended-pdf-viewer #toolbarViewerRight>*,html[dir=ltr] ngx-extended-pdf-viewer .findbar *{position:relative;float:left}html[dir=rtl] ngx-extended-pdf-viewer #toolbarViewerLeft>*,html[dir=rtl] ngx-extended-pdf-viewer #toolbarViewerMiddle>*,html[dir=rtl] ngx-extended-pdf-viewer #toolbarViewerRight>*,html[dir=rtl] ngx-extended-pdf-viewer .findbar *{position:relative;float:right}ngx-extended-pdf-viewer .overlayButton,ngx-extended-pdf-viewer .secondaryToolbarButton,ngx-extended-pdf-viewer .toolbarButton{border:0;background:0 0;width:32px;height:25px}ngx-extended-pdf-viewer .toolbarButton>span{display:inline-block;width:0;height:0;overflow:hidden}ngx-extended-pdf-viewer .overlayButton[disabled],ngx-extended-pdf-viewer .secondaryToolbarButton[disabled],ngx-extended-pdf-viewer .toolbarButton[disabled]{opacity:.5}ngx-extended-pdf-viewer .dropdownToolbarButton,ngx-extended-pdf-viewer .overlayButton,ngx-extended-pdf-viewer .secondaryToolbarButton,ngx-extended-pdf-viewer .toolbarButton{min-width:16px;padding:2px 6px 0;border:1px solid transparent;border-radius:2px;color:#d9d9d9;font-size:12px;line-height:14px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}html[dir=rtl] ngx-extended-pdf-viewer .dropdownToolbarButton,html[dir=rtl] ngx-extended-pdf-viewer .overlayButton,html[dir=rtl] ngx-extended-pdf-viewer .toolbarButton{margin:3px 0 4px 2px}ngx-extended-pdf-viewer .dropdownToolbarButton,ngx-extended-pdf-viewer .overlayButton{background-color:rgba(0,0,0,.2);background-clip:padding-box;border:1px solid rgba(0,0,0,.4)}ngx-extended-pdf-viewer .secondaryToolbarButton.toggled,ngx-extended-pdf-viewer .toolbarButton.toggled{background-color:rgba(0,0,0,.2);border-color:rgba(0,0,0,.4)}ngx-extended-pdf-viewer .dropdownToolbarButton{width:140px;padding:0;overflow:hidden}html[dir=ltr] ngx-extended-pdf-viewer .dropdownToolbarButton::after{right:8px}html[dir=rtl] ngx-extended-pdf-viewer .dropdownToolbarButton::after{left:8px}ngx-extended-pdf-viewer .dropdownToolbarButton>select{width:162px;height:23px;font-size:12px;color:#d9d9d9;margin:0;padding:3px 2px 2px;border:none;background-color:rgba(255,255,255,.09)}ngx-extended-pdf-viewer .dropdownToolbarButton>select>option{background:#474747}ngx-extended-pdf-viewer #customScaleOption{display:none}html[dir=ltr] ngx-extended-pdf-viewer .toolbarButton:first-child,html[dir=rtl] ngx-extended-pdf-viewer .toolbarButton:last-child{margin-left:4px}ngx-extended-pdf-viewer .toolbarButtonSpacer{width:30px;display:inline-block;height:1px}html[dir=ltr] ngx-extended-pdf-viewer #findPrevious,html[dir=rtl] ngx-extended-pdf-viewer #findNext{margin-left:3px}html[dir=ltr] ngx-extended-pdf-viewer #findNext,html[dir=rtl] ngx-extended-pdf-viewer #findPrevious{margin-right:3px}ngx-extended-pdf-viewer .secondaryToolbarButton::before,ngx-extended-pdf-viewer .toolbarButton::before{position:absolute;display:inline-block;top:4px;left:7px}ngx-extended-pdf-viewer .toolbarButton.zoomOut{font-size:30px}ngx-extended-pdf-viewer .toolbarButton.zoomIn{font-size:24px}ngx-extended-pdf-viewer .secondaryToolbarButton.bookmark,ngx-extended-pdf-viewer .toolbarButton.bookmark{box-sizing:border-box;outline:0;padding-top:4px;text-decoration:none}ngx-extended-pdf-viewer .secondaryToolbarButton.bookmark{padding-top:5px}ngx-extended-pdf-viewer .bookmark[href='#']{opacity:.5;pointer-events:none}ngx-extended-pdf-viewer .toolbarButton.pdfSidebarNotification::after{position:absolute;display:inline-block;top:1px;content:'';background-color:#70db55;height:9px;width:9px;border-radius:50%}html[dir=ltr] ngx-extended-pdf-viewer .toolbarButton.pdfSidebarNotification::after{left:17px}html[dir=rtl] ngx-extended-pdf-viewer .toolbarButton.pdfSidebarNotification::after{right:17px}ngx-extended-pdf-viewer .secondaryToolbarButton{position:relative;margin:0 0 4px;padding:3px 0 1px;height:auto;min-height:25px;width:auto;min-width:100%;white-space:normal}html[dir=ltr] ngx-extended-pdf-viewer .secondaryToolbarButton{padding-left:24px;text-align:left}html[dir=rtl] ngx-extended-pdf-viewer .secondaryToolbarButton{padding-right:24px;text-align:right}html[dir=ltr] ngx-extended-pdf-viewer .secondaryToolbarButton.bookmark{padding-left:27px}html[dir=rtl] ngx-extended-pdf-viewer .secondaryToolbarButton.bookmark{padding-right:27px}html[dir=ltr] ngx-extended-pdf-viewer .secondaryToolbarButton>span{padding-right:4px}html[dir=rtl] ngx-extended-pdf-viewer .secondaryToolbarButton>span{padding-left:4px}ngx-extended-pdf-viewer .toolbarField{padding:3px 6px;margin:4px 0;border-radius:2px;background-color:rgba(255,255,255,.09);background-clip:padding-box;color:#d9d9d9;font-size:12px;line-height:14px;outline-style:none;border:1px solid rgba(0,0,0,.4)}ngx-extended-pdf-viewer .toolbarField[type=checkbox]{display:inline-block;margin:8px 0}ngx-extended-pdf-viewer .toolbarField.pageNumber{-moz-appearance:textfield;min-width:16px;text-align:right;width:40px}ngx-extended-pdf-viewer .toolbarField.pageNumber.visiblePageIsLoading{background-repeat:no-repeat;background-position:1px}ngx-extended-pdf-viewer .toolbarField.pageNumber::-webkit-inner-spin-button,ngx-extended-pdf-viewer .toolbarField.pageNumber::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}ngx-extended-pdf-viewer .toolbarLabel{min-width:16px;padding:3px 6px 3px 2px;margin:4px 2px 4px 0;border:1px solid transparent;border-radius:2px;color:#d9d9d9;font-size:12px;line-height:14px;text-align:left;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}ngx-extended-pdf-viewer #thumbnailView{position:absolute;width:calc(100% - 60px);top:0;bottom:0;padding:10px 30px 0;overflow:auto;-webkit-overflow-scrolling:touch}ngx-extended-pdf-viewer #thumbnailView>a:active{outline:0}ngx-extended-pdf-viewer .thumbnail{margin:0 10px 5px}html[dir=ltr] ngx-extended-pdf-viewer .thumbnail{float:left}html[dir=rtl] ngx-extended-pdf-viewer .thumbnail{float:right}ngx-extended-pdf-viewer #thumbnailView>a:last-of-type>.thumbnail{margin-bottom:10px}ngx-extended-pdf-viewer #thumbnailView>a:last-of-type>.thumbnail:not([data-loaded]){margin-bottom:9px}ngx-extended-pdf-viewer .thumbnail:not([data-loaded]){border:1px dashed rgba(255,0,0,.5);margin:-1px 9px 4px}ngx-extended-pdf-viewer .thumbnailImage{border:1px solid transparent;opacity:.8;z-index:1;background-color:#fff;background-clip:content-box}ngx-extended-pdf-viewer .thumbnailSelectionRing{border-radius:2px;padding:7px}ngx-extended-pdf-viewer .thumbnail.selected>.thumbnailSelectionRing>.thumbnailImage{opacity:1}ngx-extended-pdf-viewer .thumbnail.selected>.thumbnailSelectionRing{background-color:rgba(255,255,255,.4);background-clip:padding-box;color:#fff}ngx-extended-pdf-viewer #attachmentsView,ngx-extended-pdf-viewer #layersView,ngx-extended-pdf-viewer #outlineView{position:absolute;width:calc(100% - 8px);top:0;bottom:0;overflow:auto;-webkit-overflow-scrolling:touch;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}ngx-extended-pdf-viewer #outlineView{padding:4px 4px 0}ngx-extended-pdf-viewer #attachmentsView{padding:3px 4px 0}html[dir=ltr] ngx-extended-pdf-viewer .treeItem>.treeItems,html[dir=ltr] ngx-extended-pdf-viewer .treeWithDeepNesting>.treeItem{margin-left:20px}html[dir=rtl] ngx-extended-pdf-viewer .treeItem>.treeItems,html[dir=rtl] ngx-extended-pdf-viewer .treeWithDeepNesting>.treeItem{margin-right:20px}ngx-extended-pdf-viewer .treeItem>a{text-decoration:none;display:inline-block;min-width:95%;min-width:calc(100% - 4px);height:auto;margin-bottom:1px;border-radius:2px;color:#424242;font-size:13px;line-height:15px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;white-space:normal;cursor:pointer}html[dir=ltr] ngx-extended-pdf-viewer .treeItem>a{padding:2px 0 5px 4px}html[dir=rtl] ngx-extended-pdf-viewer .treeItem>a{padding:2px 4px 5px 0}ngx-extended-pdf-viewer #layersView .treeItem>a>*{cursor:pointer}html[dir=ltr] ngx-extended-pdf-viewer #layersView .treeItem>a>label{padding-left:4px}html[dir=rtl] ngx-extended-pdf-viewer #layersView .treesItem>a>label{padding-right:4px}ngx-extended-pdf-viewer .treeItemToggler{position:relative;height:0;width:0}ngx-extended-pdf-viewer .treeItemToggler::before{content:url(assets/images/treeitem-expanded.svg);display:inline-block;position:absolute;max-width:16px}ngx-extended-pdf-viewer .treeItemToggler.treeItemsHidden::before{content:url(assets/images/treeitem-collapsed.svg);max-width:16px}html[dir=rtl] ngx-extended-pdf-viewer .treeItemToggler.treeItemsHidden::before{-webkit-transform:scaleX(-1);transform:scaleX(-1)}ngx-extended-pdf-viewer .treeItemToggler.treeItemsHidden~.treeItems{display:none}html[dir=ltr] ngx-extended-pdf-viewer .treeItemToggler{float:left}html[dir=rtl] ngx-extended-pdf-viewer .treeItemToggler{float:right}html[dir=ltr] ngx-extended-pdf-viewer .treeItemToggler::before{right:4px}html[dir=rtl] ngx-extended-pdf-viewer .treeItemToggler::before{left:4px}ngx-extended-pdf-viewer .treeItem>a:hover,ngx-extended-pdf-viewer .treeItemToggler:hover,ngx-extended-pdf-viewer .treeItemToggler:hover+a,ngx-extended-pdf-viewer .treeItemToggler:hover~.treeItems{background-clip:padding-box;border-radius:2px}ngx-extended-pdf-viewer .treeItem.selected{background-clip:padding-box}ngx-extended-pdf-viewer ::-moz-selection{background:rgba(0,0,255,.3)}ngx-extended-pdf-viewer ::selection{background:rgba(0,0,255,.3)}ngx-extended-pdf-viewer #errorWrapper{background:#f66;color:#fff;left:0;position:absolute;right:0;z-index:5;padding:3px;font-size:.8em}ngx-extended-pdf-viewer .loadingInProgress #errorWrapper{top:37px}ngx-extended-pdf-viewer #errorMessageLeft{float:left}ngx-extended-pdf-viewer #errorMessageRight{float:right}ngx-extended-pdf-viewer #errorMoreInfo{background-color:#fff;color:#000;padding:3px;margin:3px;width:98%}ngx-extended-pdf-viewer .overlayButton{width:auto;margin:3px 4px 2px!important;padding:2px 6px 3px}ngx-extended-pdf-viewer #overlayContainer{display:table;position:absolute;width:100%;height:100%;background-color:rgba(0,0,0,.2);z-index:9}ngx-extended-pdf-viewer #overlayContainer>*{overflow:auto;-webkit-overflow-scrolling:touch}ngx-extended-pdf-viewer #overlayContainer>.container{display:table-cell;vertical-align:middle;text-align:center}ngx-extended-pdf-viewer #overlayContainer>.container .dialog{display:inline-block;padding:15px;border-spacing:4px;color:#d9d9d9;font-size:12px;line-height:14px;background-color:#474747;border-radius:4px}ngx-extended-pdf-viewer .dialog>.row{display:table-row}ngx-extended-pdf-viewer .dialog>.row>*{display:table-cell}ngx-extended-pdf-viewer .dialog .toolbarField{margin:5px 0}ngx-extended-pdf-viewer .dialog .buttonRow{text-align:center;vertical-align:middle}ngx-extended-pdf-viewer .dialog :link{color:#fff}ngx-extended-pdf-viewer #passwordOverlay>.dialog{text-align:center}ngx-extended-pdf-viewer #passwordOverlay .toolbarField{width:200px}ngx-extended-pdf-viewer #documentPropertiesOverlay>.dialog{text-align:left}ngx-extended-pdf-viewer #documentPropertiesOverlay .row>*{min-width:100px}html[dir=ltr] ngx-extended-pdf-viewer #documentPropertiesOverlay .row>*{text-align:left}html[dir=rtl] ngx-extended-pdf-viewer #documentPropertiesOverlay .row>*{text-align:right}.fileInput{background:#fff;color:#000;margin-top:5px;visibility:hidden;position:fixed;right:0;top:0}ngx-extended-pdf-viewer #documentPropertiesOverlay .row>span{width:125px;word-wrap:break-word}ngx-extended-pdf-viewer #documentPropertiesOverlay .row>p{max-width:225px;word-wrap:break-word}ngx-extended-pdf-viewer #documentPropertiesOverlay .buttonRow{margin-top:10px}ngx-extended-pdf-viewer .clearBoth{clear:both}ngx-extended-pdf-viewer .grab-to-pan-grab{cursor:url(data:image/cur;base64,AAACAAEAICAAAA8ADwAwAQAAFgAAACgAAAAgAAAAQAAAAAEAAQAAAAAAgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAH4AAAB+AAAA/gAAAf8AAAP/AAAD/4AAB/+AAA7/gAAM/8AAAP7AAAG2wAABtkAAAzYAAAM2AAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA//////////////////////////////////////////////////AP///wD///4A///8AH//+AB///gAP//wAD//4AA//+AAH//yAB///AAf//wAH//4AL//+AD///yB////z///////////////////////////////////////8=),move!important;cursor:-webkit-grab!important;cursor:grab!important}ngx-extended-pdf-viewer .grab-to-pan-grab :not(input):not(textarea):not(button):not(select):not(:link){cursor:inherit!important}ngx-extended-pdf-viewer .grab-to-pan-grab:active,ngx-extended-pdf-viewer .grab-to-pan-grabbing{cursor:url(data:image/cur;base64,AAACAAEAICAAAA8ADwAwAQAAFgAAACgAAAAgAAAAQAAAAAEAAQAAAAAAgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAH4AAAB+AAAA/gAAAf8AAAP/AAAD/4AAAP+AAAD/gAAB/oAAAbYAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA//////////////////////////////////////////////////AP///wD///4A///8AH//+AB///gAP//8AD///gA///wAP//8AH///kn/////////////////////////////////////////////////////////////////8=),move!important;cursor:-webkit-grabbing!important;cursor:grabbing!important;position:fixed;background:rgba(0,0,0,0);display:block;top:0;left:0;right:0;bottom:0;overflow:hidden;z-index:10}@page{margin:0}#printContainer{display:none}@media screen and (-webkit-min-device-pixel-ratio:1.1),screen and (min-resolution:1.1dppx){ngx-extended-pdf-viewer .toolbarButton::before{-webkit-transform:scale(.5);transform:scale(.5);top:-5px}ngx-extended-pdf-viewer .secondaryToolbarButton::before{-webkit-transform:scale(.5);transform:scale(.5);top:-4px}}html[dir=ltr] ngx-extended-pdf-viewer .toolbarButton::before,html[dir=rtl] ngx-extended-pdf-viewer .toolbarButton::before{left:-1px}html[dir=ltr] ngx-extended-pdf-viewer .secondaryToolbarButton::before{left:-2px}html[dir=rtl] ngx-extended-pdf-viewer .secondaryToolbarButton::before{right:4px;left:186px}ngx-extended-pdf-viewer #findInput[data-status=pending],ngx-extended-pdf-viewer .toolbarField.pageNumber.visiblePageIsLoading{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAiCAYAAAA+stv/AAAACGFjVEwAAAAMAAAAAEy9LREAAAAaZmNUTAAAAAAAAAAgAAAAIgAAAAAAAAAAAGQD6AAA26DBZgAABPNJREFUeNq1l21MW1UYx2tgI+pghBHiNJCYKLiERMUvRvbB0S5ZygrI5toxKAItSwDHRBoIzk1SFT44oy4xfjEaY1PMRKNNyMInPxjfFjEiZsFNwpu1oy4LMFZ6uece/085F2/PiuBtPMkv5/ac8zzP/7yfWswmznktuAJ+A89ubWE+UDbYnaJ8AoS5xq8jv5aififYkV5wVW3SOP8BjsaANzmANqdpJEAjAVEp+CMqV73IW8C+dHr/FbgMfhIiHjTUzYI/AAn4y1C+CzSDVsbYSRWdMC0AxiE4+h78CH6Gw/cNgWY2EWDVgxO3bi3WmxYQCoV6MdTfAn0UfgFPJwnQ/hGA/D4KTugiurq6jpgWkJmZWbG0tPQp1sF3mOvEKIAQ1cE5iZnXuHZd07RrQkC1UcD4+DgNf8V25/sZMAQ+AA5wF4ofOHvm7El8fw0BicVIUPtgMNgHEVfA5PDw8DkxZS16zym32Wy15IPqVldXH0aZEzwH9snB7wFBBBlG/jn4kjP2LvLHUF0+OTl5Ad/fgMvhSPg9YXYQOAQ2MWVH9d4HAoETKNqP7wJQbRQGPGCHUcC9nLMAjQCG+yKG9DPwBQ33ysrKS1lZWY7BwcH2gYGBjoyMDLswKxAibOKbkr2ysrLWbrcfQbvD8/N/HjCuh41cTWzRnUnTPTQ0dBpD+BEaBFH5CbgoRiOE3tQaelsKNkuleru2tran9KBGYori7enpOUYxkwSASqvV6rx69ffX0fBjxjeEDIMy1OcJtkp5hLwjiEsjl9zFxcU1FEsWQKkI2IGju7u7aWFh4S1VZR+OjY35s7Oz95jYRHtoHSixmPdX7AaaFjE6dhErZboblIHDwGEgz4SAPMkH+XyCYsg74FHG+WvI3+aMvYOcuLB6+/b5/v7+JjGvZlNpXV1d7c2bS83SLiDqQSEJeAW8gcrzlAPk7E3khN+SZqJAxsCyCEt8LX4OH4MEo9zAWnzt5XQFqIrilgPrKIrSYOnr63MtLy+TiFeBnzPuR2P/4vLimV5frzNdAY2NjVXRaNQjB49EIh63210tn2gytjTjb8t/gdzI5TrhnJqa6lhbYy9C7cE05r+c7oeJiYlGsQ3l4AWywW5QDboBBX8BdIL7TQRPPohYIreCXZsZPA5Ogy5D4OdBO9j7XwXgDtkrvw0opxGJx+N33IZZFJwxEZjxU8g7YNQeCAQbcnJyEkcrsa2eA7KhkzD1DpAuI/qhKIyCgvVeY9484j53TE9PV6w74uSo/N/mXA8yMzNjJVvyQQ+TpO2nKl75xZyJU+/4yspyWzgcbu3s7HTqx6fH43mSXsQJ4/WeNItghaBeUJgokx4kZKsf66fa24/Nzc214IXlxdZPeRvapVW6H+TKzyw4qUtxwtVT2ezs7HH6rY+WqvIa8kG+JN/2zW7DQ+CA8RklLyKHw1FDdRuiRDmVUR27c84fojrhs0LEKNrms5y7jL0fHR1tEL2xGF84hDApHxkZcUuiXRazCWd1sx4opsS8JSUl1frVLB+t+hVMbWIxxauXq/BhWoDf76+BCOpJq8/nc4r73KKPgHEUDGZlvl6fkzEFq131kg9LGulQbm5uVX5+fhUtHONj4obhglmIRFqkR42dbMhWzLnpVAQqCXnhuFyuo9HoDU84HPHQd2o78fxKM2USW9xytk3t/rck/y8wmf4Gx4B9Xz6i1hAAAAAaZmNUTAAAAAEAAAAgAAAAIgAAAAAAAAAAAGQD6AAAQNMrsgAABQ5mZEFUAAAAAnjapZdtTFtVGMdrwKlkIYiETA37sGyQJXxiX1T2BVbN7FZANFARCi0tMDBF2BgGNcvEzC06EBMSEogi2Czz7ZPiBvFlohLFREKqET8g7y02A0YkLZd77/H/lHPN4dIJ9J7k13P6nPu8nOecnufWFGtjjJnBTfAVeHpHBQOOEsB+vVxV1S8g/5GpbFRV2S39/MrKyoOYTzTkXJbl0zDyIbgOntkamPrdZgDqKPpfdUHXqUz9C/0UeMnI6ruBF3zEg3hEmLtFAQAxAJIfAn+CWbCATE3FHIAkSe/ASD+4Bj4GFwRH34IfNgNQxwR5H5iG43n0fvS+mAPo7u4+w5jyAfDyDHwGjnFH31AAdAbQj3FZDpjEtkRWj7nF4eHhKzEHEB8fn7u4uHhVYUofU9g1rOYTGH6X5jY2Nj7H+Hvs9SjOyjAP4Eu+73NwHgiHw7+Qjd3u93HQqijsVfSPg3sgfrS6utqO8XugH0FcV3Ee6Pmurs56BHFzQ5K+7u3tPU8yrPwPPDeDQP3oFzs6OhrJBs0hmCOQFYMKcFTv/D7wOngTXAFvM0U5h/4wprNHRn56BeP3gXdiYuIiV3sSWDlmEiBbfXzvA36//1OIaFGpIB9UKYpSTT1wgXvFAO7H5MVIBhi7BC5j39/C96vLy8sVcXFx1oaGBkdjY6MTYwtXS+VBmPnYRHOdnV3nenp6zickJOTNzflzuEPunPey7MZ435btbm9vr1hfX7/AlEgm3gCXtGy0tbU9Jaw2E9ytZWrP1dbWPqE5FQlJkru5ubmIfG4JAJzKysoqHBn52UM/N7AZiKJcDjN2BPPJnJ1aMgHdA3rnNwZu2NPT0wvIlz4AageBBVhLyspsk5OTZ3HIXhsaGnoxMTERRvfcHvJ6vS9IoZD7t/Fxh8VieZZnx8J9RW0PgCxwGlgFYgkgWbTBbR6L+BAbC4cP8RQ1IN2N6Imz/9y5U19TU1PE9zXWlllSUlK4vLzqFA8ipxSkmfBRCTwC9Ywp9dRDocpksJEj0bE+CLrvKYC6aIRCktNoALIk2UXHIvBdZnI4HPlLS0skOIMtiIBxTSAYcNOc0QDKy8vzgsGgS+88EAi47HZ7vv5G02M26H9X9lP1D9FPxuf73Y4iQ9uTbWD/s8mGz+crJ5tRnKfqFfaDE6h+lCaRA3t2rr+IFADb5COqwvo6OyozuZIrGA5gbW3tYdLVn37KCK78bdVwH3BvKxygH7cZ3YQUBLGrlQPSoZsw+i9AV4yoNEoShMJD42PjDrPZXEj7NTU1lbtpiJGh7P/bc01/enr6BOmSjXFcxaJtSZbc5HNLMWppaSlaXV11z8/POz0eT5F2fbpcrsf+y87mSpzcWRoo5aRFZEivuGLS1a51T11d0ezsbCX5gK8o1ZAXIoHjIEl7mdCAkZIoN1wpyWZmZp6n71q2ZJkVkA2ypbNtuVs1PAlyxNco/bmwWq0FPADIAZeTjOaU7Xt+mOa4zVzuA7520bACm7j6wcHBMr4ak/iGQ3CV7IGBAbsuaJuR/wVOzVFICrkzMjLytdJMMhGtBNMzqCFuTS5LBupJa2trAYKglVQ1NTUV83pu0jIgZkFQy2p6ualYUSScdtlNNkwG2smkpKS8lJSUPDo44svEbaHA/B0IVOpeaiykQ7pkw0gAB8EpQn9wbDbbc8HgbdfCQsBF4+h6/PXLYIsndqhy5j3oGW9R/xfE2P4FtUR7pWscH34AAAAaZmNUTAAAAAMAAAAgAAAAIgAAAAAAAAAAAGQD6AAArUX4WwAABPlmZEFUAAAABHjatZddTJtVGMdrwOGSgQQJmUG4UnAJ8WJeaFJiFGqydHaQKR+r0LJ+YBDopkvVQEwWUYazi8qFSzDqnKJLxsX0oklJdRfLdGNMXFe98YaP0b6jWbo1YW1f3g//zzyveXtsBd/Gk/xyTs45z/95zkfP89ZktKiq+hT4FHwBmje3MO7oAbCd75dl+ST6v1UVdQbtr/PYVYAdRTnf2NgwQ2QcHAfPcg5Oy/cCUGbQPseN9SiqchH1z8BdzOrfBsfAByyIat3Yl+AbMAO+0/XXgfPYmcuqqlwFlwwHcPduxg+x98D74ISsyv06R6cKBBAAPymKegW7s6Aoyo+GAxgfH+9VVXlMdwwfgsd1AUzTHUD9ve5iXoDTy6ivYuxaKBQ6ajiA0tLSlsXFRT/O+l0ITuCynUD9Bo2l0+mTFADOeiabzZ5hAXwOLoIrYGF9fT1EGls97yfAq5IkeVA3gfvQXdvR0dGF9lF2FMcRRIDmj42NeRHEZ+D05OTkEPVh5T9gziXUv6COTExMDJMGaQEXmAd/gMO88/vJObb7EA2C10EPqMWwORgMDaD9Djg2Pz8/zMyeBzaGhTpWVlY+UhVavXJtaWnpFLqaYQOUMOoVsIrxONXgQX0A2ygAMITt9mGVFMRr4IggJGwlJSU2p9N5oK+vz462lZnVsCAsrG2isUAgMIwdOVxWVmbLZDKfQGMRl/EGdiWGtoB6Ddy8o96pyjnu0dHRroyYGYDzIUwcBj62G0cw9oxutU2gUGnS5gWDQQccLcP+BogrqnoT9RruTHxubu5j8pkTANjb0NDQHg6HnWw3Blkgh8AjGK9ibFaqCNi0sq0WyDFI3E7eDmMXXeSLD4BKPbACm9VqffH69d9c2MKBs2fOOpjofyrl5eUPxeJx+onGspnswtTU1JukzXzUF7LbDnaDF4BNw0gAZMNpkOaTzAdK7tPZA/r1pJJJl91u38/O1WhpIo1kMuUiTdyvVzR95rPOxBpskNVAm2QqspCG3jEfhCktpp1aB086LfYWG4Akig7esYYoQh+/7323EgkPPyisCW4aKzYA0kjk0xcEj8PhaONfNB5Lkf63pF/DT6KfYTT6uwN5wY1ozUWcv5k0otGokzTzOK/hDXaAVuR9/j7sNOB8Z46GDKBd8DMtm1V3SarkZgZFB4BU/DDZ8refdgTpexcf7Tbg5SfL4Kvp6ZcrKiqqKAhiSysHZDMN2/y/AMlLPnPSsSiiUzcp8mvkoMVi2U/nhY+Slr+EVBIy/9uZa/ZIx61kSxqRSOSgXluURC/5zElGIyMjnalUyru6uury+Xyd2vPp8Xie1naHPVAu7gUl6u71YXv1KyZb7Vn3DQ524nvBTT7IV75saOVuaTOohFCbPnqI2PkXTnsxl5eXD2jzaLckSW0nDdLitK2FsuEe8ByopQ5kw8f4e2Gz2UjU9HdQrJ/6aEz+55k/SmNMs4X5gK8tFKygW7/62dnZXrYakz53EMzETB8iXNDdJqMFb7VLc4Sc4W1sbGzTUjP/U9VSMM1BDvFq/RI0jPqnL992BEEr6ff7/V0sn5u0HdDvgs5st/8tf5csi7jtkpc0TEWUPZWVlfuqq6spKVn1HxP6BLYmCG7uo8ZKNmTLztxwqQd7Cf7idHd3v5RI3PLEYoKH2gXsrKxdVCklNslyloJ2/1vh/xcYLH8CCfCBoXIWl6IAAAAaZmNUTAAAAAUAAAAgAAAAIgAAAAAAAAAAAGQD6AAAQI+KIQAABP9mZEFUAAAABnjatZdtTFtVGMdrQIkvMIKEYJbtk4IYjAl+mWFfxmpc7nZZA5PVMqhAO5RqdSQNhTnUodEYjcm+mcWpwQpMnAkfCGExIYs6jVtGSlFjDPIuLyME0qZwc8+9/h937nZ7bKXp1ZP8ck/Py/P8z3Ofe86pLdOi6/qjoBO8Bh7fabwVR3eDnCTtAfAWeJcx9maS/vvBfZacb29vl8NIG3gZPJHogL3B2C0B4H3B+TPgU9ALjlpZvQe8BPxcxC5T3+ughwv4wNReBM4jKiGIHAChjAVEo9FGGPNx568A2eSoO4UAP/gMAvrw/FJV1QsZC2hvb6+FkReBjxs+BfaYBJzV2R0BeD4GLoDPwYCuaZcGBgdPWUmDqomJiWZGecCYEYV66tjc3AySAIoAIvUOF3CGVg++0DV9cG1t7ePs7OyqdN93GXheVXUnng/z5t12u70Gv1+AAB/C6kfi+amjra2tfmNj48zGxvrZzs7OJmpD/0eUeJqmXdR0/euOjg4v2UDbXYDsXALfAHeyT60FnLyNqjooodBd2dsbqqdXwZCQly+PuPi0p4HMsVPD5ORkJwTSu/8K9ffQtF9RlAr8/gSCvkVUrqL+I/gB5JoF3AO8hnOspNWoz8//eSArK+uILEu1sizXYrjEpxVxEXZet2GcFAwGPd3d3a05OTlyPBanPBlDLnyHqJDTn8B1zi5zELKDwdPPbm3FyOk/8Pl8T5lWWw5SlXJjXF9f3zE4vaLp2vd81dfADbRdvzI29jb5TBAADpeUlDhGRkYbRAFRXS9GfwFnp1JAYN4+cJVWDac38BxfWV656HK5GsmXKIDKXh5eWZKk2vFwuCkeV7yhUKhecJxWyc3NfXBqauo8wn8tFo2Nnjv34as8OhL3lbTcCyrAESAbZCKA5gg2yOaT5EP8AvaAE2LYN9fXmxGuGv5eMy3l/f39Qca0MGxO41XM4EnMgglQY+POeebzJ69T339wmkY0TZ+H8wXUzSyCX2xxJe4mZ8lADjRYFqDpv8HWMnJhmZ4a1XXt7ydE/Wpzu93Va6urHtH50spSC/VZFTA0NHRaY9ofsHnTAKJuItK/o69L3NFE7Bb9p2W/SBxEn2Ek8nMjjlLanistvP9KshGJRNxkM4nzInHCA+Ag05mYD8UZOC9OsMEAbJOPFNcvvUzVVeNAsiwgFos9RHPF84UigqteGY3Z8TBioBc7YV5eXgGJINJaOaA5tIua7d1B9ZLPhONYUdBoGhQeDzfRXYDe1/T0dNUtQ3rrv+UE9RnzZ2ZmDtJcshHGtm62raiKl3wmHEZdXV11uOV4FxYWmv1+f52xfXo8nn1GdPgG1SzsoIBf0xBe84pprrGt+32+urm5uRbyQb6SnYaSkKX7QT5dq83qYcTFBZxgwo45Ozv7HP02ooXblYNskC3BtpTqNDwEDoDd1LC1tfWImBe4lDio77Yo3k5t1MeEd26+3oEq7gO+0ih0PzSvfnR0tIGvxmY+Owg+pXJ4eLhREO20ZVpwn2s2HOHM8JaWlh41jmbxUzWOYBpD9wijXYWNjAX09PQ4IIJWcjIQCBzn57nNiIA5CqZpFYFg4DhjCrJd9ZINm4VyKD8/v7qwsLCaEsd8mTAfYCtLSy3CpUaiOTSXbFgRsBccJsTEcTqdx1ZX1zyLi0seqqeYJ/G6pZJN7HDK2VPO+9+K+L8gw/IXI+58OxdsgRwAAAAaZmNUTAAAAAcAAAAgAAAAIgAAAAAAAAAAAGQD6AAArRlZyAAABTdmZEFUAAAACHjatZdrSFxHFMcnZJM+UGtTkUKohT60AT+lUFr0i7oN5SZrJOZhfUb3oVW6pYalYgvRGkTStBQr0tDSB9ZU2wSkglihFNvtE2milX4olPpMVt2NjbHsunvvnf5P9o6swz7ILj3w84z3zMw5c+65M7MsWeGc54B6YOWBwGOAJUPiTpzvAXsB24HK66BbuMad0A7AJO4F9wAWj7hGcABYgQ08JdleCgegUQCvSrZnONc6oN8EhakEcBo4DKwgLcLWBFqAHECmpmlvIDPnoHvw/7mkA7i1uVltOBeUCBscNIFoAZwAnZrGuxHA+a2trbOAxYLFM7a2vlJOjiUeBkwLZ6CZagC0AnL+KJyeBbTqHjy70NfXZwMsFiyeEVI8MzNTr3GtkWsgHMBRwHw+n40CgM3p9XoJCqABdIJucH55ebnTZDIVAxYL0RAFd1pVeQX0E4BB9pvN5mPkWAQAuxWwioqK42s3bzZ6vSvNVqu1AjCsvB19ukAPeNtms1XTHGjv4jxUBP0O+JBz1QIYQX/Ep2bdkWpVLYPOxgQFAwMDVeL56OjoccAgzwOLgRkwt/snG9JOq3/L7Xa78KgwEAjkca5RVj6FbRAMof05uD+yCPcCu3CiiXSDpaUbRbt37z6iWJRyRVHKMakCSLKNIMxGm6GfYrfbq5qbm2vRttz+5zbN8RGyN4CivIT2MNf5ZWgibTsAiKmt7fUTgcC/d5zKtLS0PBex2nwWW/JFP9SQgoV8ghr5jFasc/4l9BVV1698NTLyGvmMHGgCh3Nzc8vGxydq5AA2Ufmw7zOIK6IfxuWDQZ3rX5BjzvWRubmF9ywWSyX5kgMgyQEKsFCqr6H6/f6gfXBwsEo4vhtJT09/aHp6upvr+uVb6+sfd3R0NBnZUQxfUeU+cBAcARZBMgHQGGkOmvNp8iGfao+AajntG+vrDZWVlcfEO09S8i9e/MAZCqljmPM78D1wgx/AODjEyLmo/G1ttA0bS5GvdZ3/DE38gvav0GF0/RvmD/rryFk0UAM1gKUCnExirt+gr5LWOTTQ9Tt8y+rq6kp9a2s22bln1WMlG2CpMDw8fCYUCtGKZ8PopH8PBYM/Dg0Ntco7moyZpSyJ58+WO9FnODv7R62qqrQ9FwCWBLvA++Avv98/2d/f3xrFebb8RaSBEuxeUY/gu+QQWAE3wDLX+SL0JfB41AvJ1hY/oHKsWDhNPQAF+MAa3vsK18OBgL/By4AlPIw0MICdMCMjY58RRMJARD8a4/F4RowgvGAVeMIZ0ZegH4wMYE8wqG4HQMxcm6mnuwC9r7m5ueJwYLwxQU0UiPHz8/MlNLa3t/cMbldXRTZ0BIJPkTLxwI7TsL29/eTGxoYdt5gGp9N5UmyfuFQ8K7JjbFANIHIHJajNOIo2MoM0Vmzrk5OTF/A5/olvf2lqaurdaKehIlVpIcg0rmAOweLiYiVg5FiTdsyFhYUXRT/KlqryMpoDFEpzK7FOwxdAEdgPGG4zT8p1geO0DDDxPGLbZmTTpAtN5PUOFJMPw1diMe6HDsHExESNsRoWeXYYMEjB2NhYrRR0RdK/C4LBYINwhDPDnpeXd1QczfRMgpGN+tA9QjxXMQdgsWDxjF1dXWUIglbicLlcp4zznIkMSFlgBOSgq811StOCjqCq2mkOwGLB4hrxvjIzM0uzsrJKqXAiLxORB9iqx2MFjDD6KDSGxtIcLAXJAYcJqXDCvwvWfLbr1z02agMmEOOk61fSYiISnHLmmOP+N5F/FyQp/wHjxqv8BBis8gAAABpmY1RMAAAACQAAACAAAAAiAAAAAAAAAAAAZAPoAABAamiUAAAFIWZkQVQAAAAKeAG1l2tMHFUUx6+hVE14WQkxVPGLQhvhCxqj0BgLa2KnLIXyECkIy77agpg0wSAIbQHF+EExAV8RbIJ8kfCJEAmQxkdVRNc2pJHEL2JZ6LobQktWdllm5vq/5Yysk32ku/Ekv5w7c+aec+beO/fcYbEK5/wRUCegNosFakQkEezX35dluR7aJhBtwIKhPonxJnAYmIEFHNLZbIqi2IUmWBCHZC5boQVPxJNAY1AAM0gKTkAHI5JAE7CDMxyJABYOFsl42+ut0wUpjp6AeAbXCj8Nfdbr9ZoACweLZDx37rWKEIEeCpcA2dBW7rw9pqilo6OjGrBwsEhGSNHi4qJJEQ735vsEYB7PukUL7na7zYCRDfd2335packmfIDoQguuUZZ5DfRjgEEOGgyGk8KplgDsZsBqamoqPR6Pxe12mUUbiNVvpgTOgJZjx0oqhQ/ynwfOgjbwtH4RJgLqTMhyGXQG+haOjo6e0u5PTk5WAgZ5ARgJA2DCRnPfPDEx0YhbR7a2tg4isQbc64CtC/o8cW9wAvuBFdj0n5fTefNoQkJCiWSUKiRJqoBTCQjJoCQM1BYiGY3GivLy8ir0MbpcrhIEbYefTvjshr6A616MZi/a9/2bAGRfe3tnld//952gepqbm58NettcEE5ytec6OzufQ9A30P9NcF7hvAe6b3tn+62hoSGriMk0oYvj2dnZZdPTM/X6BLxY3bAfICILPefz+R5F3y4Evgj60H7b4bj6ekFBQaWIpU9ASBaQgFEM9TWsfp8vYB0bGztFTu9KkpOTH5ydnX11Z2enz3nD2WW32+todCSKFVLuB/mgBBg1YklA9NH5KAFPUoyQVc0WzObGRlNtbe1JmtdYJbe7+6LJ7w+8B58fYU18Ai34FLwPnmIUnFY+aWqTjcXJAHyOQI9gQ/scWuMSGGS+gK9BBAsF1kA9YPGgyDLeVhnjCuB8TAHiWmjsDx+zhoaG0nXsaPrgLuxwwgZYPAwODtq2fb4v4HNcoKqq0F/iK7k0MDBg1e9oegwgXonqP0P/kPgMr1//7RXa2wsBi4F7QBeYvr1xe7Snp+d0iOAZ+i8iCRRjsYQuwXcFElfVeegr4BtwGbwDHg55Itre5odlTtUMxJsANqDnoX8FC5yrP3KVXwHf4noWvAxY1GKkgFHshCkpKQcoCRB12IsFmZmZ6cvLyyNoXwW/gJ/ADzQiX4OU/5TjQECmBABYvLZoEmcBMV9wVLSbGLdHWROfgVWw7PP7PhR9+/v7W3C6+gr3HOBnMK9y9Tua7r1qKI5Om5ub1tXV1abW1tZqbfu0WCzPaKNDG1QTCPdfsIZhdmHunWj/MT4+XiN8iNI8NTV1IRAIXJZV9fu5ubmeUNVQ0q3SIyBNO2ZprKys1AImAiu6HRPzvgD9FyVyA3o2NTX1AeFL51sKVw1fBEe1Y5Tf739cvy5w4CgDe4dSug/Y8PBwG4bXg0XnwrUT/AlMgJHPIoqRBaILnQ9tGjMzM/X0Niy4dhAMUnjr1q2ZvVFQV6AXYv4xwZw1aYFQM6w5OTknqMyGPJYLmwmC7XZN3R2FVSTxO2DhYJGMvb29ZUhCvKWtra3tJarnTBsB3SgwASR/fn7+A0zDTZXzFYfD8S5g4WARjZivtLS00vT09FK0peDDRHABc7tcZsAE9IyUn59fnZeXV0VzHrNkgeMC3cKh/4J1y9qayyLagBHB/SRqxyX7iEhVzhC53/8j+v+CmOQfnaCvAsiMZ2EAAAAaZmNUTAAAAAsAAAAgAAAAIgAAAAAAAAAAAGQD6AAArfy7fQAABPFmZEFUAAAADHjatVdtTJtVFK5hM8EQQIbEhMxfDmgC/th+TGV/BjVZXlbKh9DKYB2lLV1JmNaQVRiEjMyPv8TE6JQZK1KRf8RkYUkzg84laELI5pIZFQPESm2WQgld+374nHLf7eVa7PZWT/Lk3Jzbc85zzz3vvbcGvaIoykGgk+Fgdg/9ifYDT/J2URS7YHcTaMzPkw/55prcCPQATqCKm3NLktSrkuDmqkRFdDFfYy4EzqgJWLACLQEtNPYCwKESRHW6dROIxeOdXKL6RyBQryYnxOOxTt0EfL5zrXwi4Nm9CNCc1kYEfD5fqyEHqVtaWuqWFOz1w/220EQkEnWqidbX13sYAYuWAPlSjMdpuDOiqNign2fmcpPJ1ELBVAKYTyez2WyvRiIR5/p6uIfG7Mvo0TYn+VIMmkskEodgs7K+Mmb61NLODyCKTdBlmK4NBAKnVPvs7CwlI3kFMDOYyEBz6u8mJydPwXSMYgAWDTG1kvv5b9ZFE/zntbr6x/G8vLyTglloFQSB9lNgbmWMhImNSYSGhoYW+h35kC8X0wOcxfgsf7bs8/uH2hKJrfSPefT19b2kWW01sJdUq7/zer0vaxbSKyExtDeRTHpHR0dtlHMXAaChoqKi6erVuS6eQHyn80sYskkJQfNFeCQkhu4LXQs5jEZjM+XiCZA8x8prphIuooO3t5MutpcI+thyYGpqqiuZSHjv3rnjbm5ubmPVEViujJIPHAZOAmYVOgmUcDEo5hHKkfFW48u+ce+eo6Ojo4Xtq16p9ng87bFY/A3EPA/4gbcYzgEVBpacdSnTbExz/8Ft+rokKRegL+BAG4ZWMQK8adhObtspWSagB7pyJSClJFr1RSzqImk0JLSU1qlU6rzBbrc3RnGi8cnDOOFoLlcCw8PDHZubm2OI+S7wDsPbsVhs1O/3v8afaDxMQI6SPX4Z/yP6DG/d+uk0O9trde79E4ADeD8cDl/CYWbPkLyMdyoA6tEs/7iCdRB4AQgAV4CPgQ8BL/BMRof79xUjnlGaCylnAkeAaeAL4DN8XZ9CfwL9AZoPFYdku4wkIICTsLCwMH20Eh6h7C8CR8vLyw/gPfAexl8hThB6koiwilwGntp1HSeTomvXY2JxqZvd5+bl5eW6HWJK77/1BOvw74HrW1tbI+Q7MDDgjEajH8H2JVUDZD7HAolE/q7LaHBwsH1jY8O1trbm6O/vb1ePT6fTSStyaR4lDpasXZHln6FvA007NvkHWVYWYP8OttDE5QkLxcDVbMabwhePx69goYHp6WlfpttQ4Lr0GFDMP7NWVlY6yAFJfpUV+U/YVoFF9ur5GuMfgZuKrMxjtRNFRUVPUywutrDXbXgCOK59RvF9YTab2WqVv4AwiKxB/0a28fHxflmWF1GJBdhuAN+o1WEx6ygHy5Vd2PvQrWJubq6LVsMqkCYgEwFZWWYutXigBh9WQf4WesagV5LJpENdOe4MV2VlpUW9mmGLEAG2BSqBEqvVehqkFrA91AtoSPmabgJjY2NNIEHld6Obren7nAmSRIA0AejfNW6HQ6HQJQUkYL8xPz8/ZMhBThQXFzeWlpY2ssbJf0BAkn6R5Z0K4GBZ4h41Qk1NTduhqqpWtue6hZqlgcA3zszMzAgqczeVkm4Hg8GhPfwENs5J9hGy3HKmLH7/g/D/C3TK3/RJfVWiL971AAAAGmZjVEwAAAANAAAAIAAAACIAAAAAAAAAAABkA+gAAEA2yQcAAATpZmRBVAAAAA542rWXW0xcRRjH14AaEy6RJsTEtCRGSEGe4ElpTEq3ph5Yy0UostyXUxUqpphKpQZLNRpSHkx4oBgNabfE2oSElKRBfQFj4MELiOiLGFIBS3ddsASyu2fPOeP/287Uw7C46dn4Jb/M8M18l/3mdnDYFcbYflDH2R/fwn6gh8Ejsl7X9XroTxLUl8fJhmwTDZ4LPKAVHJTGThqG8apIQho7qDNd5ba5iSTQJAJwZynWBKxY9CmgRSSI6jTbTuDu1ladFOhI3AQwRwQntrbu1tlOoLPzzUo5EHhirwRozKqjBDo7OysdCUjx/Px8s8Gw1v+u93Ea8PsDrSKQz+fzkI7GrAmQLfl4kA3XpOusBu3TXP2k0+msIGciAYxHg9XU1Lzs9/tbfb41D/X5yfBYNyfZkg8aC4VC2dCdoBgUK9ZRixrfR9fL0GZiuMjr9bqFfnx8nIKRHAUujpMUNCbmjYyMuKE6RD7AcenUtFJM+cyqNCgfr5WV24eTkpJKFZdSqSgKrafCzTJ5Ek7eJ1FKSkoqaB7ZkK3sM9rquirfLclnz56rCoW2afIu2tvbn7X82nywl+SLeW1tbc+JoFaCmqZ2dXVVU8wdCYCSnJycsomJr+plo617Oz+DE08yCPlEEBM3JxooBsWSEyA5wMvrohLOYQcHg5rK1xJOH1j2ka0WDKq/wBf55NVReKyY8hgoAKXAJbCZQIbkg3wWUoyYr5pcrs2NjZba2toKvq52JZ98bGxstsib+/4rSp1duxSISY4EhXxYAsM/o76g3hHUgo1iUAZ7oD7RBDRNa4av12MRDAabHI2NjS8FcKPJwddww9FYogmoqlq+vr7eBp9vgFMC3KKveTyeMvlGk3GCBCW+/0x5Eh2ZhYVfG/jdXmRz7R8CCtb/zOLi4qmqqqoTMYJnykYp4Ahev11PsI0EngK9oMdg7F2074BykB7TIBxmuTrTLQ9SwgnkgI/AB6hCL3iPIRG0XWgLaU7cx8gAXtxmaWlpdLW+CF6g0sYp+zMgLzU1dd/U1NRbOHZ98PchM9j70J8HPeAceHTHc6xpurrjY2Juvpm/565wOHyFMfMv02R34OzSfyTQgTvkKtpPA38HVLLFSXIvLy/3iGqAC4YR6REJCEnu7u6u3tzcVFdXV1s6OjqqxfU5NjbWgMl+cIeZ7E+0v/FgpWASfAmK7+nM60jwGv6+DD7p6+s7Sj7wNLv6+/tbA4HA+WA4fGFgYMAT6zVUpF16KD09/XE4mgY+cBss42KZjAYzzWmTmT9Ch5bdIN329vYl/H0dXEXJh1H+HvJBviTfyl6v4TFwWHxG8RvLB9bAKrg1ODh4mo/9DH5AIjNoo0n19vaqSGaUV+EK+Aw8T2PcZzHF4LHiC0q+QKUHVPpl3Gg36NfwCsxD9z32xQz6U9ykaGlp6WNehREkchl74qLDrsDxLV76FZT7d7fb3SieZuh+ogT4EokEMnCJvaLrxhfQfQ68hqEP2U5gdnb2Ipz8YaL009PT9EsKLTt+zjTNaAJov7GYFYyOjr7NmHENFfBiE7c7EpBjeXl5VQUFBXQqFOvHhB6JfIvg36EyMzimN6WPGiU7O7siKyurnK+5bTkASgh54wwPD5+JRCKToZD29dDQ0Ok97BTeT0iSiTivnDOO3f8g8v8FNuUfG4CCnr3IRI0AAAAaZmNUTAAAAA8AAAAgAAAAIgAAAAAAAAAAAGQD6AAAraAa7gAABPlmZEFUAAAAEHjatVdtTFtVGMaAJiYEIhowKOgPS7ZAYjL9o7AYtpost8Py6ZDxsUHLoEUXMITpRDIxKyNion9Q4tSFdCYYmZNEiMFo4ghDpwhiwg9/CdLabmm2wC5t74fPS8/B64HCdhtP8uTevue87/Pc97znvrdJZoeu6zlALUPO7h7mie4F7hPtiqLUwd5MoHtxnnzIN1HyvUAT4AD2CHPNqqqe4CKEuT2KrjiZ795EBBzjBCxYqlGAEQZ7KtDIBSI7x00LuLm6WisQHbwDAQc5OWF19WataQEdHScrRCLg4XgCaM5oIwEdHR0ViZTBgfn5+eOqjr3+d7/tNBEM3nBwokAg0MQE2I0CyJdi3E3BHVMUvRrXJ5j5EavVWk7BuADMb5BVV1dXBoNBRyDgb6J7djKajMVJvhSD5tbX1y2wHSEO4truqG04b0JRSnHNxHTh8PDwUW4fGxurZG7PAyUMVjLQHF/n9XqPwlREMQC7cGocxCmeWSdNisdredlXnJycfFgqkSokSaL9lJhbJhNhZfc0JJvNVk7ryId8xZh0xcM5xXdLyqlTp6vW19do8Ra43e5nDE9bAMQbBXydy+V6lpMaIUcizq6urheJ8z8CAFteXl7pxMQ3daLTaqzyMxh2HHydeCIIE19P1BMHcYkCaOSy9JZQCn9FBctyxMn2EkHvejxIvhFZdv6OWGz7ShhHbjyn+4F9wGFazGFSQIYQg2I+RRzbdjUxXbdCocaamppytq9mRwHFCIVuNYrFvdlF6WZLlQJ8UcLdFDGMxKKIJDkiN3CDCNRAXaIClEikXiTmiEQQv6Gh4YUbeKOJk3684WguUQEUI7hdfL/fUV9fbxffaCKsCfLfUfxMcdHQ0FBXOBy+pmmaH2rPA/eY3P9C6g8LCwsN7BiK5JmigwW4pOnadVyDQEDTdRJhNUGejWJ24doSa2ZA7FshNZ7Dq8AKkQJ/Q4Sf/V6KRqNmBDwKvAy4gVYIaAFOUEaQ3S3d8AHAT8S6pnPiZU3T/1xaWrqYnZ39EH4XA/t32g6aAx4HHktLS8sYHR2l8/8K0IZsxIToKmWEN6NNx3SQLeua5sP9X8CSfPv2lf7+/pO0X+jl78P2G8T9gqfo3UFAFdALdK+srJSSL7pj1eLiYoshGy46kuIXc8rMzMy7KLo/kO7ZycnJs2inG6/PkZGRI0QOzELgT7qufRcjiz6Hp7oA+wfA02TD73MI7sHvM8Dp9vb2/fy13tnZ+ZLP52tdW1tzdXd3V2/XDSWhSovS09Npay6jEOdwvQZMy7J8kZF9hjr5Ahnxwv4e2a6HQm/g/hzwNtADNFIMiiXEluJ1w0NAMf+MUnS9To+R/wzMAD/09fW1snR/BXwOISTgY7K1tbXVRlX1HZaFt4A3gSdpjsU8QByMa/eBuvgW+z6LID9ie6aRwvPsaZJgv0wCVGQAIj5hLoVzc3OvqSwLEHKG9j7J7ADpVZb6q0j392VlZZvfBrB9CYwAXoALyCgqKqoKh6Mk4CyE9apq9HXTAqampnpAPI1gV8bHx3tYP+cVfwkFuSEAT/qpwW3f4IeDqHLVE4UAvFUTamiHLBZLRX5+fiUVjvFjIoxipAyouupFZQ8KHzVSTk5OaVZWlp3tuemRC9gIYuEMDAy4w3L4Asg/8ng8zXH8JHaf0Egh7NLlrHH9/rch/i8wOf4BRvqEvL0rz4oAAAAaZmNUTAAAABEAAAAgAAAAIgAAAAAAAAAAAGQD6AAAQaGt/gAABQFmZEFUAAAAEnjatZdbTBxVHMbXgCYmCEgbsCGFhFgCCQkJfagKL+2uSTOUu6WEO2UXKlvauiSyIlZSN6FRi0lDjA8kRgmKqeUiKmjS9IU+mHql4A1pgrQVWHXDdoFlmDPj99+e0fGElbITT/LLmT1n/uf7zn3WEmnSNG0vqObs3TbAhNCD4CGxXFGUGpQ3EfQs1lMMxZoVzwSNwA4yhLomxlizbkKoy1A0xcFjM80YqNcFeGMxRgNGDOUx4LhuEKPTELGBlUCgWhCy3ocBqy5OBAIr1REbcLlOl4lC4LFwBqjOWEYGXC5XmcVEOjQ1NdXANMz1P/NdRBVe7x92XWh5ebmRGygyGqBYamMnC65eUbQK5I/z4mSbzVZKjekGUB8Sq6ioeMbr9dqXlxcb6ZnvjEbj4qRYaoPqgsHgPpQdIw3S2mqrhYL/RlGKkSeiOre/v79KLx8bGyMxSk+DAo6NCqhOf29gYKAKRXnUBigSdo2dNMU966BKcXvduvXbwaioqCNSgVQmSRLNp8TDErkJG3+mJOXn55fSexRDsWKblKNzDvFsiXa7XzwaDK6GXhZxOp1PGnqbBcKlLP29lpaWp3RRI+uy7Ghvby8nzX8ZAPnp6enFExOf14hBgXsrP4GzXUogxB1BTHw6UUsapCUaoJQCJHJPQ/gtVvD6uuzgc4lGd5x2Uay8vu6YQVt8+gq4Rkq4oIdBDjgCCnQiNJAgtEFt7icNcQeUg5vgT46PUBn7dWRk5Cyf10hTVmVlZanP5z8uLm79FiUDvwCvqqm/Uw6Q66g3LSYTCRmFRRMWVdN+1lRtCT+WVKBxVELVfjRrQJHlWlFYR5blGsvw8PALqPwJBXc0Vb2D/DZG4zbKZoaGhtxmDdTV1RXSiSmKLy4u2mtra4vEE03EZlL/vtpPFF/q7e11ra2tXcEUTMNtD3ggwvnPpfthenq6jm9DUTxRDEgDb4MfwPeADHwH8nYsLh5ELJRbQUy4gGYuNgNuqPeevwbXNzc3c3dqYHV1dQ8Ji6ufRmRjYyNTFI8HU9gNN8gEhv4b5F/CxBezs7NvJicn78LvA2D/dtOB+j1EbGxsAp2EW+8A4TLCj0dUVaXekvBXMHDd7/ePdHV1naD5urt692WUj8PgKPLW/xC3Uj14dn5+3kqx9E1AHyZGA7IiO8Qv5ugrV696MDzXgsGNz0ZHRztxnYaOz76+vmISB2PgMniHi+UAD3gJZPCyM+jtGU1jJ/F8wm63P6Ef66eczvKFhYVGdMzR0dGx5W0oCas0Ly4u7lE09Bb4GAyDD/wB/wUu9irT2BvIz4PnqWxpaYl6+BxoxaJzIi9BcTzIE9qWwt2Gh8FBkMxFCsEnYATH8ofI33O73fW8rhf0cAPnqAzn/lGmaW00Cig7CVrAPqrjbR4iDa61fUIv3kUDH4HLDL2fm5s7z3tjgQgMsB7GYICxV3hI7uTkZDMfhVOMYSoUpcoSaVJV9FoNDf0lNNZvtVqP6Vczyi6CC3wEdAMJ2dnZJcGgTAZOowOtjMlNERsYHx93KapyCb1/f3Bw0MXvcwsfgYsgZAC5xxCW4/F4amgaZMZau7u7Tf0vOJyamlqSlpZWSgvH+DGxFgi8BvHXyYDP5zsrfNRISUlJRfG7dxdSG2YMpIB8Qlw4nZ2dDQF/oNvnWznX1tZWEyZO4s+mUjSxzS1nCxv3vyXxf0GE6S+R9YNYr/xWtAAAABpmY1RMAAAAEwAAACAAAAAiAAAAAAAAAAAAZAPoAACsN34XAAAFF2ZkQVQAAAAUeNq1l1tMXEUcxmmgJkZuAtkoWHyxXCKJpvJgpD60rNocWCCgFOmyUHa36hKgLqE0vFXQVCymioYXE8LVeCONpIQHEo0xYhtCE6SpvgnULOzCrpCFhbPn4vdf59Dj2BV6Nk7yyxxmdub7ZuY/F+KMJlVVjwAr48j+LYwLHQYP8eWSJNWh/BxB33w9taG2sYrnAztwgDyu7pwsy29oJri6PEmVnKxtfiwGGjQB1lmi3oAeXXkiaNQMYnbOGjawEQxaOaHiAxgo1sSJYHDDatiA291axQuBx6IZoDp9GRlwu91VsYTByfn5+bOyirW+t97lVOHzrTs0Ia/Xa2cGyvUGqC31cdD1bgPLiqreQe5ixVlms7mSOtMMSJIaEaupqXnV5/M5vN4VO32znWHXBye1pT6obmdn5yjKTrO4yufFU8AfqqL4kK+BdXzfRG5CddHw8PAZbVQTExMkRuklYGGYqYDqtN+Njo6eQdFx6gOUc7vGAQ7rDTxKBsAKZsCLHEaUdeR+cVccjo+PLxUsQpUgCLSeAmtmYibM7JuSUFJSUkm/ozZ373pO6ONhL5ckJ3+2JMzM3OhVVGURFR6IryL3stnwT09P23WjLQDRUoH2O5fL9YImqickis6Ojo5q0vyHAVBSV1fX4Pf7r7PZ8Ch/G/GBV1CfxtgvpRH8jiCmJqdsOTk5FaTFG6CUDQRg6e/vb9ve3v5JUdTfPR7Pl0lJSekGdlA6xYEYCjlvYzew5bMwjexojR4Gx0ApsOhIM2AgjeujFDxHGvwOKAU/gzuI/F+RE7/J4fDc2NjYRbauRlNBbW1tZSCw2cjfHdotSgZ+ROT/QqgALDBuIxhn4mJMJKQX5k3ESYr0g6qotwiYuIXCOQ3EwHexGpBE0cYLa4iiWBc3NDR0PhwOf4+Cm1iCCIj+G2JYnB4cHGyN1UB9fX0ZnZi8+MrKisNms5XzJxqPOUb9A/Vv4n/U3d3tCgQ2RrAEdCZcAIcMrn8R3Q8LCwv1bBvy4ia+wRPgPSzBFPJJMAGugWcfWJw/iORIXgwSozWoBt+C66qyJ/wN+ALB8syDGtja2nqchPnopxnZ3d3N58WTSJxxTVGUceRfgc/n5uYuZWVlpeP7aZAHDu07cpCcnJxGJ+H9dwB3GeGPRxQlMloIK1/TqNfW1j5pbm5uoPXy/+mnDj5FR1cxgtf+a801kcXFxWJqS28CepjoDYiS6ORfzAnj4+PtqBgNBoOfDQwMtOI6jRyfPT09L5M4+AiPkivILzGxo+AtYA+FQk9GyrgHicPheF471luamqqXl5ftm5ubzs7OzvvehgIXpcdTUlLondAJPga94LJv3edmBprxVGtDcLXgCd5AZUtLS6/fW3MVL2KVbr5U6ovrW4h2G54CJ0AWE3kR9IEPMaoPkL9rt9trqA7CHfjbrapyi/aEs1gsFfK/1/wp7XkHTjINaO2fSOQddHAVXMFoL8/OzrrZaFAnX4C4W8YMQLCJNSmanJy0cZEPwwYTG3UveD8sh7sKCwurtKsZZe3gbbA3A1SXm5tbHgqJTs0E7oJGwwZGRkYaIdwj43Dq6+uz032uMwcDcsQAZqFJ1+xY+8X207IsItolZ1dXF+LAeDplMpkqMjMzqRNB/5jYCATO0wzIMLC6uvom96gRMjIyylJTU8vYmhtO2aCE4APH6XTW4KyA+JrLarVWR2knsO+YUgKxzy1njtruf0v8/wUG019dDISlQm+mHQAAABpmY1RMAAAAFQAAACAAAAAhAAAAAAAAAAAAZAPoAABQgGYUAAAFD2ZkQVQAAAAWeAGl13tIW9cDB/BTTCtCdbYV2SjKGJ12zL+6f7bpBnUZG1cTQyzVn49Y42266NRNVuqEPXzgqpvsD53stzHcKGHdBttEkCBM6CjdoxsrQoUhSH2kZorYlkaTcO89+570XHd7SC4xOfDxHO/jvO85JyTVQCktgAZFURp5mqQimYcegUNABA2qqp5D7GFpIIIDsD/dCnTAEgTgTeGeR0AMjoNMFUVG/FQ6FfgbVuE2j59MogIHwc16h0H6TMoVwPheR7xMqRagGg0i/X0SFXhJv8YqcPf+/QYgiRCzm7Ozs33I6JZG6QrrBU3T/kH8ikkFHhWvd3V1VQNJhJjdtFgs5dvb21di80DTAtqDXrgGZHNzQ9YLWV9fbwGCdJXechbPzc01E0LKk/2smuEqzEA97MPlo0NDQ2wiLsKyYS6Q2traUxsbG3IQhbM0YMhoi7H1VqvVyfLg+R+jCq2FM8aJaZw4V+E3+AMt/QvxD/Ac3i1dWlm6pFHtFnphFYV+DQThZbBxViBTU1On9B7w+Xz1uFSG//OhSu+VB3Hs69hvrEAO/My791e4Dn/CjXA4/HFmZqZtfHy8a2xsrCsjI0MCgpDPK2HlaRakiooKpyRJ1XimcnV19aRKVWGugKKcRXxgtwIIFr/f/w5m+izviWt6b6DVNyYnJ+sNrS2BRKFEf661o/V5sWAmHAp7LlzoOc3KJIZggQq73V4fCAQ+x4NXeEV+gd+hDPcPc+aBP2f8IvTu98/MNBYVFTlYWWIFWCgECWyD/YPeO3fvXFY07aeFhYVPsrOzjwDZC4QjbB6EQiHPzbmbzWxoeO9IvKy4IQtOQCXYdOYtN+0Jm0ElPANZ4udXCl9hkWGznvkRJhUlehmTro2Pa6qhpK6uzrm1teUWhwMaoIBgln6BxDeYgN8i1n3HTQBJU4OxYCO2lRP8+Qz/+GJUFagPlQJQ1E+BpCOqRF16gaLozk4jGRkZce/s7PwfF76ECQaFT2DyjGMVbAaSDpfLVWVctnXB20G5qanJLq5oIiukE5LKP198qL293bW2ttaLmn4INbAPSApK2f4wPz/vYqtjnMLzxS8iD2QYwTB8hHgIBuGJvRcubM0q4KwABxMdSF5UVXoR8TBmbKxgldIBXGM98TiQvcAceizOpwdKC+LjYgWy4CI3CAP4IvoQvzc9Pe1lKyHShXA0qZZDTk7OYd8lX3282a9QYTOCTJUVCtAH7y8uLr7ldDpr2HgFg8FKdihFpToQv2A25nqLsROWs3fZmYAdTB6uAH14O0awjI6OtkQikXdxsnm7t3egCdtpbPns7OwsY4VDB7SBDAQK0JJGfUUDAm7jmMuy/Ky+rLe1tZ3GRue+dy90tqcn/m4oCbO0DA6hkDpk2Amvg3dlZaUOdlc4itbyNFkOLP/PcBr2QBXyyIUyIW8p0W74KpzUj1GRCH0ambwB7ciUtf41h8PmAGI84XDEZrM52DVh8h0DwvMs52UUJn9OVHe73otDi4u3Ju6pGKHUP+NvFK7Xpvy7AC3w8q5vxdHsXHFxcZW+NRu7mqcJu8eeCYVD/6330agbSCLE7Obw8AfVqhptRdrb3d1dw/dzkqgHGIQT3efP1+AdTxj6+/sdQBIhpjcxXrm5ufa8vDw70pLxMMGO5Kzl+sYChOHPSOwd9i4f85RDIVQw4sSJ/S7Y3JTXDb8LOON7Ek+nFSyc2S5nNX3PJPwLu02sWzaoOecAAAATdEVYdFNvZnR3YXJlAEphcG5nIHIxMTkn6LNhAAAAAElFTkSuQmCC);background-size:16px 17px}ngx-extended-pdf-viewer .dropdownToolbarButton::after{width:24px;height:24px;display:inline-block;position:absolute;margin-top:5px}@media print{body{background:rgba(0,0,0,0)}#errorWrapper,#loadingBox,#secondaryToolbar,#sidebarContainer,.textLayer,.toolbar{display:none}#viewerContainer{overflow:visible}#mainContainer,#viewerContainer,.page,.page canvas{position:static;padding:0;margin:0}.page{float:left;display:none;border:none;box-shadow:none;background-clip:content-box;background-color:#fff}.page[data-loaded]{display:block}.fileInput,body[data-pdfjsprinting] #outerContainer{display:none}#printContainer canvas,#printContainer img,body[data-pdfjsprinting] #printContainer{display:block}#printContainer{height:100%}#printContainer>div{position:relative;top:0;left:0;width:1px;height:1px;overflow:visible;page-break-after:always;page-break-inside:avoid}}ngx-extended-pdf-viewer .visibleLargeView,ngx-extended-pdf-viewer .visibleMediumView,ngx-extended-pdf-viewer .visibleSmallView{display:none}ngx-extended-pdf-viewer #viewerContainer{overflow:auto;-webkit-overflow-scrolling:touch;position:absolute}ngx-extended-pdf-viewer .invisible{display:none!important}body[data-pdfjsprinting] #printContainer,body[data-pdfjsprinting] #printContainer *{padding:0;margin:0;font:message-box;outline:0}#printContainer canvas,#printContainer img{display:block!important}@media print{body[data-pdfjsprinting]>*{display:none!important}body[data-pdfjsprinting] #printContainer{display:block!important}body[data-pdfjsprinting] #printContainer div img{height:100vh!important}body,html{overflow-y:visible!important}html.cdk-global-scrollblock{width:initial;position:initial}}ngx-extended-pdf-viewer .textLayer .highlight.color0{background-color:rgba(180,0,170,.4)}ngx-extended-pdf-viewer .textLayer .highlight.color0.selected{background-color:#b400aa}ngx-extended-pdf-viewer .textLayer .highlight.color1{background-color:rgba(0,100,0,.4)}ngx-extended-pdf-viewer .textLayer .highlight.color1.selected{background-color:#006400}ngx-extended-pdf-viewer .textLayer .highlight.color2{background-color:rgba(0,0,255,.4)}ngx-extended-pdf-viewer .textLayer .highlight.color2.selected{background-color:#00f}ngx-extended-pdf-viewer .textLayer .highlight.color3{background-color:rgba(255,0,0,.4)}ngx-extended-pdf-viewer .textLayer .highlight.color3.selected{background-color:red}ngx-extended-pdf-viewer textLayer .highlight.color4{background-color:rgba(255,94,0,.4)}ngx-extended-pdf-viewer .textLayer .highlight.color4.selected{background-color:#ff5e00}html[dir=ltr] ngx-extended-pdf-viewer .dropdownToolbarButton,html[dir=ltr] ngx-extended-pdf-viewer .overlayButton,html[dir=ltr] ngx-extended-pdf-viewer .toolbarButton{margin:3px 0 4px}html[dir=ltr] ngx-extended-pdf-viewer .toolbarButton:last-child,html[dir=rtl] ngx-extended-pdf-viewer .toolbarButton:first-child{margin-right:0;margin-left:0}html[dir=ltr] ngx-extended-pdf-viewer #secondaryToolbarToggle{margin-right:4px;margin-left:0}html[dir=rtl] ngx-extended-pdf-viewer #secondaryToolbarToggle{margin-right:0;margin-left:4px}ngx-extended-pdf-viewer .dropdownToolbarButton,ngx-extended-pdf-viewer .overlayButton,ngx-extended-pdf-viewer .secondaryToolbarButton,ngx-extended-pdf-viewer .toolbarButton{padding-left:0;padding-right:0}ngx-extended-pdf-viewer .offscreen{position:fixed!important;left:-9999px!important;display:block!important;width:3000px!important}ngx-extended-pdf-viewer .offscreen #sidebarContainer{top:1000px!important}ngx-extended-pdf-viewer .dropdownToolbarButton,ngx-extended-pdf-viewer .toolbarButton{margin-left:-1px!important;margin-right:-2px!important}ngx-extended-pdf-viewer #numPages{padding-right:0}ngx-extended-pdf-viewer .pdf-viewer-template,ngx-extended-pdf-viewer .pdf-viewer-template *{display:none}ngx-extended-pdf-viewer a:focus,ngx-extended-pdf-viewer button:focus,ngx-extended-pdf-viewer input:focus,ngx-extended-pdf-viewer select:focus{outline:0;border:1px solid #00f}ngx-extended-pdf-viewer input[type=checkbox]:focus{outline:#00f solid 1px}"],encapsulation:2}),bD);function cM(e,t,n){return!e||e.some(function(e){return function(e,t,n){var i,r=0;return(e=e.toLowerCase()).includes("ctrl+")&&(r|=1,e=e.replace("ctrl+","")),e.includes("cmd+")&&(r|=8,e=e.replace("cmd+","")),e.includes("alt+")&&(r|=2,e=e.replace("alt+","")),e.includes("shift+")&&(r|=4,e=e.replace("shift+","")),e.includes("meta+")&&(r|=8,e=e.replace("meta+","")),i="up"===e?38:"down"===e?40:"+"===e||'"+"'===e?171:"-"===e||'"-"'===e?173:"esc"===e?27:"enter"===e?13:"space"===e?32:"f4"===e?115:"backspace"===e?8:"home"===e?36:"end"===e?35:"left"===e?37:"right"===e?39:"pagedown"===e?34:"pageup"===e?33:e.toUpperCase().charCodeAt(0),"WHEEL"===n?"wheel"===e&&t===r:i===n&&t===r}(e,t,n)})}Promise.allSettled||window.Zone&&!window["__zone_symbol__Promise.allSettled"]&&console.error("Please update zone.js to version 0.10.3 or higher. Otherwise, you'll run the slow ECMAScript 5 version even on modern browser that can run the fast ESMAScript 2015 version."),"undefined"!=typeof window&&(window.isKeyIgnored=function(e,t){var n=window.PDFViewerApplicationOptions,i=n.get("ignoreKeys"),r=n.get("acceptKeys");return"WHEEL"===t?!!cM(i,e,"WHEEL")||!!(r&&r.length>0)&&!cM(r,e,"WHEEL"):16===t||17===t||18===t||224===t||!!n.get("ignoreKeyboard")||!!(i&&i.length>0&&cM(i,e,t))||!!(r&&r.length>0)&&!cM(r,e,t)});var dM,hM,fM,pM,gM,vM,mM,yM=((dM=function e(){A(this,e)}).\u0275fac=function(e){return new(e||dM)},dM.\u0275mod=mt({type:dM}),dM.\u0275inj=Fe({providers:[mO,vD,Cd,{provide:md,useClass:xd}],imports:[[Zh,Dy]]}),dM),bM=["contentRef"],wM=["*"],_M=((pM=function(){function e(t){A(this,e),this.display="inline-block",this._dragDisabled=!1,this._elementRef=t}return m(e,[{key:"dragDisabled",get:function(){return this._dragDisabled},set:function(e){this._dragDisabled=e}}]),e}()).\u0275fac=function(e){return new(e||pM)(rs(Cl))},pM.\u0275dir=bt({type:pM,selectors:[["","drag-scroll-item",""]],hostVars:2,hostBindings:function(e,t){2&e&&Ls("display",t.display)},inputs:{dragDisabled:["drag-disabled","dragDisabled"]}}),pM=vx([mx(0,Ni(Cl)),yx("design:paramtypes",[Cl])],pM)),kM=((fM=function(){function e(t,n,i){A(this,e),this._elementRef=t,this._renderer=n,this._document=i,this._index=0,this._scrollbarHidden=!1,this._disabled=!1,this._xDisabled=!1,this._xWheelEnabled=!1,this._yDisabled=!1,this._dragDisabled=!1,this._snapDisabled=!1,this._snapOffset=0,this._snapDuration=500,this._isDragging=!1,this.isPressed=!1,this.isScrolling=!1,this.scrollTimer=-1,this.scrollToTimer=-1,this.downX=0,this.downY=0,this.displayType="block",this.elWidth=null,this.elHeight=null,this._pointerEvents="auto",this.scrollbarWidth=null,this.isAnimating=!1,this.prevChildrenLength=0,this.indexBound=0,this.dsInitialized=new Fu,this.indexChanged=new Fu,this.reachesLeftBound=new Fu,this.reachesRightBound=new Fu,this.snapAnimationFinished=new Fu,this.dragStart=new Fu,this.dragEnd=new Fu,this.scrollbarWidth=this.getScrollbarWidth()+"px"}return m(e,[{key:"isDragging",get:function(){return this._isDragging}},{key:"currIndex",get:function(){return this._index},set:function(e){e!==this._index&&(this._index=e,this.indexChanged.emit(e))}},{key:"scrollbarHidden",get:function(){return this._scrollbarHidden},set:function(e){this._scrollbarHidden=e}},{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=e}},{key:"xDisabled",get:function(){return this._xDisabled},set:function(e){this._xDisabled=e}},{key:"yDisabled",get:function(){return this._yDisabled},set:function(e){this._yDisabled=e}},{key:"xWheelEnabled",get:function(){return this._xWheelEnabled},set:function(e){this._xWheelEnabled=e}},{key:"dragDisabled",get:function(){return this._dragDisabled},set:function(e){this._dragDisabled=e}},{key:"snapDisabled",get:function(){return this._snapDisabled},set:function(e){this._snapDisabled=e}},{key:"snapOffset",get:function(){return this._snapOffset},set:function(e){this._snapOffset=e}},{key:"snapDuration",get:function(){return this._snapDuration},set:function(e){this._snapDuration=e}},{key:"ngOnChanges",value:function(){this.setScrollBar(),this.xDisabled||this.disabled||this._scrollbarHidden?this.disableScroll("x"):this.enableScroll("x"),this.yDisabled||this.disabled?this.disableScroll("y"):this.enableScroll("y")}},{key:"ngAfterViewInit",value:function(){this._renderer.setAttribute(this._contentRef.nativeElement,"drag-scroll","true"),this.displayType="undefined"!=typeof window?window.getComputedStyle(this._elementRef.nativeElement).display:"block",this._renderer.setStyle(this._contentRef.nativeElement,"display",this.displayType),this._renderer.setStyle(this._contentRef.nativeElement,"whiteSpace","noWrap"),this.markElDimension(),this._renderer.setStyle(this._contentRef.nativeElement,"width",this.elWidth),this._renderer.setStyle(this._contentRef.nativeElement,"height",this.elHeight),this.wrapper&&this.checkScrollbar(),this._onMouseDownListener=this._renderer.listen(this._contentRef.nativeElement,"mousedown",this.onMouseDownHandler.bind(this)),this._onScrollListener=this._renderer.listen(this._contentRef.nativeElement,"scroll",this.onScrollHandler.bind(this)),this._onDragStartListener=this._renderer.listen("document","dragstart",function(e){e.preventDefault()}),this.checkNavStatus(),this.dsInitialized.emit(),this.adjustMarginToLastChild()}},{key:"ngAfterViewChecked",value:function(){this._children.length!==this.prevChildrenLength&&(this.markElDimension(),this.checkScrollbar(),this.prevChildrenLength=this._children.length,this.checkNavStatus())}},{key:"ngOnDestroy",value:function(){this._renderer.setAttribute(this._contentRef.nativeElement,"drag-scroll","false"),this._onMouseDownListener&&(this._onMouseDownListener=this._onMouseDownListener()),this._onScrollListener&&(this._onScrollListener=this._onScrollListener()),this._onDragStartListener&&(this._onDragStartListener=this._onDragStartListener())}},{key:"onMouseMoveHandler",value:function(e){this.onMouseMove(e)}},{key:"onMouseMove",value:function(e){if(this.isPressed&&!this.disabled){if(!e.buttons&&!e.which)return this.onMouseUpHandler(e);if(this._pointerEvents="none",this._setIsDragging(!0),!this.xDisabled&&!this.dragDisabled){var t=e.clientX;this._contentRef.nativeElement.scrollLeft=this._contentRef.nativeElement.scrollLeft-t+this.downX,this.downX=t}if(!this.yDisabled&&!this.dragDisabled){var n=e.clientY;this._contentRef.nativeElement.scrollTop=this._contentRef.nativeElement.scrollTop-n+this.downY,this.downY=n}}}},{key:"onMouseDownHandler",value:function(e){var t=this.locateDragScrollItem(e.target);if(!t||!t.dragDisabled){this._startGlobalListening("touchstart"===e.type),this.isPressed=!0;var n=e;this.downX=n.clientX,this.downY=n.clientY,clearTimeout(this.scrollToTimer)}}},{key:"onScrollHandler",value:function(){var e=this;this.checkNavStatus(),this.isPressed||this.isAnimating||this.snapDisabled?this.locateCurrentIndex():(this.isScrolling=!0,clearTimeout(this.scrollTimer),this.scrollTimer=setTimeout(function(){e.isScrolling=!1,e.locateCurrentIndex(!0)},500))}},{key:"onMouseUpHandler",value:function(e){this.isPressed&&(this.isPressed=!1,this._pointerEvents="auto",this._setIsDragging(!1),this.snapDisabled?this.locateCurrentIndex():this.locateCurrentIndex(!0),this._stopGlobalListening())}},{key:"moveLeft",value:function(){(0!==this.currIndex||this.snapDisabled)&&(this.currIndex--,clearTimeout(this.scrollToTimer),this.scrollTo(this._contentRef.nativeElement,this.toChildrenLocation(),this.snapDuration))}},{key:"moveRight",value:function(){var e=this.wrapper||this.parentNode,t=e?e.clientWidth:0;!this.isScrollReachesRightEnd()&&this.currIndex<this.maximumIndex(t,this._children.toArray())&&(this.currIndex++,clearTimeout(this.scrollToTimer),this.scrollTo(this._contentRef.nativeElement,this.toChildrenLocation(),this.snapDuration))}},{key:"moveTo",value:function(e){var t=this.wrapper||this.parentNode,n=t?t.clientWidth:0;e>=0&&e!==this.currIndex&&this.currIndex<=this.maximumIndex(n,this._children.toArray())&&(this.currIndex=Math.min(e,this.maximumIndex(n,this._children.toArray())),clearTimeout(this.scrollToTimer),this.scrollTo(this._contentRef.nativeElement,this.toChildrenLocation(),this.snapDuration))}},{key:"checkNavStatus",value:function(){var e=this;setTimeout(function(){var t=Boolean(e._children.length<=1),n=Boolean(e._contentRef.nativeElement.scrollWidth<=e._contentRef.nativeElement.clientWidth);t||n?(e.reachesLeftBound.emit(!0),e.reachesRightBound.emit(!0)):e.isScrollReachesRightEnd()?(e.reachesLeftBound.emit(!1),e.reachesRightBound.emit(!0)):0===e._contentRef.nativeElement.scrollLeft&&e._contentRef.nativeElement.scrollWidth>e._contentRef.nativeElement.clientWidth?(e.reachesLeftBound.emit(!0),e.reachesRightBound.emit(!1)):(e.reachesLeftBound.emit(!1),e.reachesRightBound.emit(!1))},0)}},{key:"onWheel",value:function(e){this._xWheelEnabled&&(e.preventDefault(),this._snapDisabled?this._contentRef.nativeElement.scrollBy(e.deltaY,0):e.deltaY<0?this.moveLeft():e.deltaY>0&&this.moveRight())}},{key:"onWindowResize",value:function(){this.refreshWrapperDimensions(),this.checkNavStatus()}},{key:"_setIsDragging",value:function(e){this._isDragging!==e&&(this._isDragging=e,e?this.dragStart.emit():this.dragEnd.emit())}},{key:"_startGlobalListening",value:function(e){this._onMouseMoveListener||(this._onMouseMoveListener=this._renderer.listen("document",e?"touchmove":"mousemove",this.onMouseMoveHandler.bind(this))),this._onMouseUpListener||(this._onMouseUpListener=this._renderer.listen("document",e?"touchend":"mouseup",this.onMouseUpHandler.bind(this)))}},{key:"_stopGlobalListening",value:function(){this._onMouseMoveListener&&(this._onMouseMoveListener=this._onMouseMoveListener()),this._onMouseUpListener&&(this._onMouseUpListener=this._onMouseUpListener())}},{key:"disableScroll",value:function(e){this._renderer.setStyle(this._contentRef.nativeElement,"overflow-"+e,"hidden")}},{key:"enableScroll",value:function(e){this._renderer.setStyle(this._contentRef.nativeElement,"overflow-"+e,"auto")}},{key:"hideScrollbar",value:function(){"none"===this._contentRef.nativeElement.style.display||this.wrapper||(this.parentNode=this._contentRef.nativeElement.parentNode,this.wrapper=this._renderer.createElement("div"),this._renderer.setAttribute(this.wrapper,"class","drag-scroll-wrapper"),this._renderer.addClass(this.wrapper,"drag-scroll-container"),this.refreshWrapperDimensions(),this._renderer.setStyle(this.wrapper,"overflow","hidden"),this._renderer.setStyle(this._contentRef.nativeElement,"width","calc(100% + ".concat(this.scrollbarWidth,")")),this._renderer.setStyle(this._contentRef.nativeElement,"height","calc(100% + ".concat(this.scrollbarWidth,")")),this._renderer.appendChild(this._elementRef.nativeElement,this.wrapper),this._renderer.appendChild(this.wrapper,this._contentRef.nativeElement),this.adjustMarginToLastChild())}},{key:"showScrollbar",value:function(){this.wrapper&&(this._renderer.setStyle(this._contentRef.nativeElement,"width","100%"),this._renderer.setStyle(this._contentRef.nativeElement,"height",this.wrapper.style.height),null!==this.parentNode&&(this.parentNode.removeChild(this.wrapper),this.parentNode.appendChild(this._contentRef.nativeElement)),this.wrapper=null,this.adjustMarginToLastChild())}},{key:"checkScrollbar",value:function(){this._renderer.setStyle(this._contentRef.nativeElement,"height",this._contentRef.nativeElement.scrollWidth<=this._contentRef.nativeElement.clientWidth?"100%":"calc(100% + ".concat(this.scrollbarWidth,")")),this._renderer.setStyle(this._contentRef.nativeElement,"width",this._contentRef.nativeElement.scrollHeight<=this._contentRef.nativeElement.clientHeight?"100%":"calc(100% + ".concat(this.scrollbarWidth,")"))}},{key:"setScrollBar",value:function(){this.scrollbarHidden?this.hideScrollbar():this.showScrollbar()}},{key:"getScrollbarWidth",value:function(){var e=this._renderer.createElement("div");this._renderer.setStyle(e,"visibility","hidden"),this._renderer.setStyle(e,"width","100px"),this._renderer.setStyle(e,"msOverflowStyle","scrollbar"),this._renderer.appendChild(this._document.body,e);var t=e.offsetWidth;this._renderer.setStyle(e,"overflow","scroll");var n=this._renderer.createElement("div");this._renderer.setStyle(n,"width","100%"),this._renderer.appendChild(e,n);var i=n.offsetWidth;return this._renderer.removeChild(this._document.body,e),t-i||20}},{key:"refreshWrapperDimensions",value:function(){this.wrapper&&(this._renderer.setStyle(this.wrapper,"width","100%"),this._renderer.setStyle(this.wrapper,"height",this._elementRef.nativeElement.style.height||this._elementRef.nativeElement.offsetHeight+"px"))}},{key:"scrollTo",value:function(e,t,n){var i=this;i.isAnimating=!0;var r=e.scrollLeft,o=t-r-this.snapOffset,a=0;!function t(){var s,l,u;a+=20,e.scrollLeft=(s=a,l=r,u=o,(s/=n/2)<1?u/2*s*s+l:-u/2*(--s*(s-2)-1)+l),a<n?i.scrollToTimer=setTimeout(t,20):setTimeout(function(){i.isAnimating=!1,i.snapAnimationFinished.emit(i.currIndex)},20)}()}},{key:"locateCurrentIndex",value:function(e){var t=this;this.currentChildWidth(function(n,i,r,o,a){t._contentRef.nativeElement.scrollLeft>=r&&t._contentRef.nativeElement.scrollLeft<=i?(i-t._contentRef.nativeElement.scrollLeft>n/2&&!t.isScrollReachesRightEnd()?(t.isAnimating||(t.currIndex=o),e&&t.scrollTo(t._contentRef.nativeElement,r,t.snapDuration)):0!==t._contentRef.nativeElement.scrollLeft&&(t.isAnimating||(t.currIndex=o+1),e&&t.scrollTo(t._contentRef.nativeElement,r+n,t.snapDuration)),a()):o+1===t._children.length-1&&(t.isAnimating||(t.currIndex=o+1),a())})}},{key:"currentChildWidth",value:function(e){for(var t=0,n=!1,i=function(){n=!0},r=this._children.toArray(),o=0;o<r.length&&o!==r.length-1&&!n;o++){var a=r[o]._elementRef.nativeElement.clientWidth;e(a,t+r[o+1]._elementRef.nativeElement.clientWidth,t,o,i),t+=a}}},{key:"toChildrenLocation",value:function(){for(var e=0,t=this._children.toArray(),n=0;n<this.currIndex;n++)e+=t[n]._elementRef.nativeElement.clientWidth;return e}},{key:"locateDragScrollItem",value:function(e){for(var t=null,n=this._children.toArray(),i=0;i<n.length;i++)e===n[i]._elementRef.nativeElement&&(t=n[i]);return t}},{key:"markElDimension",value:function(){this.wrapper?(this.elWidth=this.wrapper.style.width,this.elHeight=this.wrapper.style.height):(this.elWidth=this._elementRef.nativeElement.style.width||this._elementRef.nativeElement.offsetWidth+"px",this.elHeight=this._elementRef.nativeElement.style.height||this._elementRef.nativeElement.offsetHeight+"px");var e=this.wrapper||this.parentNode;this._children.length>1&&(this.indexBound=this.maximumIndex(e?e.clientWidth:0,this._children.toArray()))}},{key:"maximumIndex",value:function(e,t){for(var n=0,i=0,r=0;r<=t.length;r++){var o=t[t.length-1-r];if(!o)break;var a=o._elementRef.nativeElement,s=a.clientWidth;if(0===s&&a.firstElementChild&&(s=o._elementRef.nativeElement.firstElementChild.clientWidth),!((i+=s)<e))break;n++}return t.length-n}},{key:"isScrollReachesRightEnd",value:function(){return this._contentRef.nativeElement.scrollLeft+this._contentRef.nativeElement.offsetWidth>=this._contentRef.nativeElement.scrollWidth}},{key:"adjustMarginToLastChild",value:function(){if(this._children&&this._children.length>0&&this.hideScrollbar){var e=this._children.toArray();this._renderer.setStyle(e[e.length-1]._elementRef.nativeElement,"margin-right",this.wrapper&&e.length>1?this.scrollbarWidth:0)}}}]),e}()).\u0275fac=function(e){return new(e||fM)(rs(Cl),rs(El),rs(od))},fM.\u0275cmp=ft({type:fM,selectors:[["drag-scroll"]],contentQueries:function(e,t,n){var i;1&e&&Xu(n,_M,0),2&e&&Zu(i=Ku())&&(t._children=i)},viewQuery:function(e,t){var n;1&e&&Qu(bM,3),2&e&&Zu(n=Ku())&&(t._contentRef=n.first)},hostVars:2,hostBindings:function(e,t){1&e&&ms("wheel",function(e){return t.onWheel(e)})("resize",function(){return t.onWindowResize()},!1,Ir),2&e&&Ls("pointer-events",t._pointerEvents)},inputs:{scrollbarHidden:["scrollbar-hidden","scrollbarHidden"],disabled:["drag-scroll-disabled","disabled"],xDisabled:["drag-scroll-x-disabled","xDisabled"],yDisabled:["drag-scroll-y-disabled","yDisabled"],xWheelEnabled:["scroll-x-wheel-enabled","xWheelEnabled"],dragDisabled:["drag-disabled","dragDisabled"],snapDisabled:["snap-disabled","snapDisabled"],snapOffset:["snap-offset","snapOffset"],snapDuration:["snap-duration","snapDuration"]},outputs:{dsInitialized:"dsInitialized",indexChanged:"indexChanged",reachesLeftBound:"reachesLeftBound",reachesRightBound:"reachesRightBound",snapAnimationFinished:"snapAnimationFinished",dragStart:"dragStart",dragEnd:"dragEnd"},features:[Mt],ngContentSelectors:wM,decls:3,vars:0,consts:[[1,"drag-scroll-content"],["contentRef",""]],template:function(e,t){1&e&&(As(),ss(0,"div",0,1),Cs(2),ls())},styles:["[_nghost-%COMP%] {\n      overflow: hidden;\n      display: block;\n    }\n    .drag-scroll-content[_ngcontent-%COMP%] {\n      height: 100%;\n      overflow: auto;\n      white-space: nowrap;\n    }"]}),fM=vx([mx(0,Ni(Cl)),mx(1,Ni(El)),mx(2,Ni(od)),yx("design:paramtypes",[Cl,El,Object])],fM)),xM=((hM=function e(){A(this,e)}).\u0275fac=function(e){return new(e||hM)},hM.\u0275mod=mt({type:hM}),hM.\u0275inj=Fe({}),hM),AM=function(){function e(t,n){A(this,e),this.x=t,this.y=n}return m(e,[{key:"value",get:function(){return{x:this.x,y:this.y}}},{key:"add",value:function(e){return this.x+=e.x,this.y+=e.y,this}},{key:"subtract",value:function(e){return this.x-=e.x,this.y-=e.y,this}},{key:"multiply",value:function(e){this.x*=e,this.y*=e}},{key:"divide",value:function(e){this.x/=e,this.y/=e}},{key:"reset",value:function(){return this.x=0,this.y=0,this}},{key:"set",value:function(e){return this.x=e.x,this.y=e.y,this}}],[{key:"fromEvent",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(this.isMouseEvent(t))return new e(t.clientX,t.clientY);if(null===n||1===t.changedTouches.length)return new e(t.changedTouches[0].clientX,t.changedTouches[0].clientY);for(var i=0;i<t.changedTouches.length;i++)if(t.changedTouches[i].target===n)return new e(t.changedTouches[i].clientX,t.changedTouches[i].clientY)}},{key:"isMouseEvent",value:function(e){return 8===Object.prototype.toString.apply(e).indexOf("MouseEvent")}},{key:"isIPosition",value:function(e){return!!e&&"x"in e&&"y"in e}},{key:"getCurrent",value:function(t){var n=new e(0,0);if(window){var i=window.getComputedStyle(t);if(i){var r=parseInt(i.getPropertyValue("left"),10),o=parseInt(i.getPropertyValue("top"),10);n.x=isNaN(r)?0:r,n.y=isNaN(o)?0:o}return n}return console.error("Not Supported!"),null}},{key:"copy",value:function(t){return new e(0,0).set(t)}}]),e}(),CM=function(){function e(t,n){A(this,e),this.parent=t,this.renderer=n,this._added=!1;var i=n.createElement("div");n.setStyle(i,"position","absolute"),n.setStyle(i,"width","100%"),n.setStyle(i,"height","100%"),n.setStyle(i,"background-color","transparent"),n.setStyle(i,"top","0"),n.setStyle(i,"left","0"),this._helper=i}return m(e,[{key:"add",value:function(){this.parent&&!this._added&&(this.parent.appendChild(this._helper),this._added=!0)}},{key:"remove",value:function(){this.parent&&this._added&&(this.parent.removeChild(this._helper),this._added=!1)}},{key:"dispose",value:function(){this._helper=null,this._added=!1}},{key:"el",get:function(){return this._helper}}]),e}(),SM=((gM=function(){function e(t,n){A(this,e),this.el=t,this.renderer=n,this.allowDrag=!0,this.moving=!1,this.orignal=null,this.oldTrans=new AM(0,0),this.tempTrans=new AM(0,0),this.currTrans=new AM(0,0),this.oldZIndex="",this._zIndex="",this.needTransform=!1,this.draggingSub=null,this._helperBlock=null,this.started=new Fu,this.stopped=new Fu,this.edge=new Fu,this.outOfBounds={top:!1,right:!1,bottom:!1,left:!1},this.gridSize=1,this.inBounds=!1,this.trackPosition=!0,this.scale=1,this.preventDefaultEvent=!1,this.position={x:0,y:0},this.lockAxis=null,this.movingOffset=new Fu,this.endOffset=new Fu,this._helperBlock=new CM(t.nativeElement,n)}return m(e,[{key:"zIndex",set:function(e){this.renderer.setStyle(this.el.nativeElement,"z-index",e),this._zIndex=e}},{key:"ngDraggable",set:function(e){if(null!=e&&""!==e){this.allowDrag=!!e;var t=this.getDragEl();this.allowDrag?this.renderer.addClass(t,"ng-draggable"):(this.putBack(),this.renderer.removeClass(t,"ng-draggable"))}}},{key:"ngOnInit",value:function(){if(this.allowDrag){var e=this.getDragEl();this.renderer.addClass(e,"ng-draggable")}this.resetPosition()}},{key:"ngOnDestroy",value:function(){this.bounds=null,this.handle=null,this.orignal=null,this.oldTrans=null,this.tempTrans=null,this.currTrans=null,this._helperBlock.dispose(),this._helperBlock=null,this.draggingSub&&this.draggingSub.unsubscribe()}},{key:"ngOnChanges",value:function(e){if(e.position&&!e.position.isFirstChange()){var t=e.position.currentValue;this.moving?this.needTransform=!0:(AM.isIPosition(t)?this.oldTrans.set(t):this.oldTrans.reset(),this.transform())}}},{key:"ngAfterViewInit",value:function(){this.inBounds&&(this.boundsCheck(),this.oldTrans.add(this.tempTrans),this.tempTrans.reset())}},{key:"getDragEl",value:function(){return this.handle?this.handle:this.el.nativeElement}},{key:"resetPosition",value:function(){AM.isIPosition(this.position)?this.oldTrans.set(this.position):this.oldTrans.reset(),this.tempTrans.reset(),this.transform()}},{key:"moveTo",value:function(e){this.orignal&&(e.subtract(this.orignal),this.tempTrans.set(e),this.tempTrans.divide(this.scale),this.transform(),this.bounds&&this.edge.emit(this.boundsCheck()),this.movingOffset.emit(this.currTrans.value))}},{key:"transform",value:function(){var e=this.tempTrans.x+this.oldTrans.x,t=this.tempTrans.y+this.oldTrans.y;"x"===this.lockAxis?(e=this.oldTrans.x,this.tempTrans.x=0):"y"===this.lockAxis&&(t=this.oldTrans.y,this.tempTrans.y=0),this.gridSize>1&&(e=Math.round(e/this.gridSize)*this.gridSize,t=Math.round(t/this.gridSize)*this.gridSize);var n="translate(".concat(Math.round(e),"px, ").concat(Math.round(t),"px)");this.renderer.setStyle(this.el.nativeElement,"transform",n),this.renderer.setStyle(this.el.nativeElement,"-webkit-transform",n),this.renderer.setStyle(this.el.nativeElement,"-ms-transform",n),this.renderer.setStyle(this.el.nativeElement,"-moz-transform",n),this.renderer.setStyle(this.el.nativeElement,"-o-transform",n),this.currTrans.x=e,this.currTrans.y=t}},{key:"pickUp",value:function(){if(this.oldZIndex=this.el.nativeElement.style.zIndex?this.el.nativeElement.style.zIndex:"",window&&(this.oldZIndex=window.getComputedStyle(this.el.nativeElement,null).getPropertyValue("z-index")),this.zIndexMoving&&this.renderer.setStyle(this.el.nativeElement,"z-index",this.zIndexMoving),!this.moving){this.started.emit(this.el.nativeElement),this.moving=!0;var e=this.getDragEl();this.renderer.addClass(e,"ng-dragging"),this.subscribeEvents()}}},{key:"subscribeEvents",value:function(){var e=this;this.draggingSub=Sx(document,"mousemove",{passive:!1}).subscribe(function(t){return e.onMouseMove(t)}),this.draggingSub.add(Sx(document,"touchmove",{passive:!1}).subscribe(function(t){return e.onMouseMove(t)})),this.draggingSub.add(Sx(document,"mouseup",{passive:!1}).subscribe(function(){return e.putBack()})),/msie\s|trident\//i.test(window.navigator.userAgent)||this.draggingSub.add(Sx(document,"mouseleave",{passive:!1}).subscribe(function(){return e.putBack()})),this.draggingSub.add(Sx(document,"touchend",{passive:!1}).subscribe(function(){return e.putBack()})),this.draggingSub.add(Sx(document,"touchcancel",{passive:!1}).subscribe(function(){return e.putBack()}))}},{key:"unsubscribeEvents",value:function(){this.draggingSub.unsubscribe(),this.draggingSub=null}},{key:"boundsCheck",value:function(){if(this.bounds){var e=this.bounds.getBoundingClientRect(),t=this.el.nativeElement.getBoundingClientRect(),n={top:!!this.outOfBounds.top||e.top<t.top,right:!!this.outOfBounds.right||e.right>t.right,bottom:!!this.outOfBounds.bottom||e.bottom>t.bottom,left:!!this.outOfBounds.left||e.left<t.left};return this.inBounds&&(n.top||(this.tempTrans.y-=(t.top-e.top)/this.scale),n.bottom||(this.tempTrans.y-=(t.bottom-e.bottom)/this.scale),n.right||(this.tempTrans.x-=(t.right-e.right)/this.scale),n.left||(this.tempTrans.x-=(t.left-e.left)/this.scale),this.transform()),n}}},{key:"getCurrentOffset",value:function(){return this.currTrans.value}},{key:"putBack",value:function(){if(this._zIndex?this.renderer.setStyle(this.el.nativeElement,"z-index",this._zIndex):this.zIndexMoving&&(this.oldZIndex?this.renderer.setStyle(this.el.nativeElement,"z-index",this.oldZIndex):this.el.nativeElement.style.removeProperty("z-index")),this.moving){this.stopped.emit(this.el.nativeElement),this._helperBlock.remove(),this.needTransform&&(AM.isIPosition(this.position)?this.oldTrans.set(this.position):this.oldTrans.reset(),this.transform(),this.needTransform=!1),this.bounds&&this.edge.emit(this.boundsCheck()),this.moving=!1,this.endOffset.emit(this.currTrans.value),this.trackPosition&&this.oldTrans.add(this.tempTrans),this.tempTrans.reset(),this.trackPosition||this.transform();var e=this.getDragEl();this.renderer.removeClass(e,"ng-dragging"),this.unsubscribeEvents()}}},{key:"checkHandleTarget",value:function(e,t){if("BUTTON"===t.tagName)return!1;if(t===e)return!0;for(var n in t.children)if(t.children.hasOwnProperty(n)&&this.checkHandleTarget(e,t.children[n]))return!0;return!1}},{key:"onMouseDown",value:function(e){e instanceof MouseEvent&&2===e.button||(void 0===this.handle||this.checkHandleTarget(e.target||e.srcElement,this.handle))&&!1!==this.allowDrag&&(this.preventDefaultEvent&&(e.stopPropagation(),e.preventDefault()),this.orignal=AM.fromEvent(e,this.getDragEl()),this.pickUp())}},{key:"onMouseMove",value:function(e){this.moving&&this.allowDrag&&(this.preventDefaultEvent&&(e.stopPropagation(),e.preventDefault()),this._helperBlock.add(),this.moveTo(AM.fromEvent(e,this.getDragEl())))}}]),e}()).\u0275fac=function(e){return new(e||gM)(rs(Cl),rs(El))},gM.\u0275dir=bt({type:gM,selectors:[["","ngDraggable",""]],hostBindings:function(e,t){1&e&&ms("mousedown",function(e){return t.onMouseDown(e)})("touchstart",function(e){return t.onMouseDown(e)})},inputs:{outOfBounds:"outOfBounds",gridSize:"gridSize",inBounds:"inBounds",trackPosition:"trackPosition",scale:"scale",preventDefaultEvent:"preventDefaultEvent",position:"position",lockAxis:"lockAxis",zIndex:"zIndex",ngDraggable:"ngDraggable",bounds:"bounds",handle:"handle",zIndexMoving:"zIndexMoving"},outputs:{started:"started",stopped:"stopped",edge:"edge",movingOffset:"movingOffset",endOffset:"endOffset"},exportAs:["ngDraggable"],features:[Mt]}),gM),PM=function(){function e(t,n,i,r,o){var a=this;A(this,e),this.parent=t,this.renderer=n,this.type=i,this.css=r,this.onMouseDown=o;var s=n.createElement("div");n.addClass(s,"ng-resizable-handle"),n.addClass(s,r),"se"===i&&n.addClass(s,"ng-resizable-diagonal"),this.parent&&t.appendChild(s),this._onResize=function(e){o(e,a)},s.addEventListener("mousedown",this._onResize,{passive:!1}),s.addEventListener("touchstart",this._onResize,{passive:!1}),this._handle=s}return m(e,[{key:"dispose",value:function(){this._handle.removeEventListener("mousedown",this._onResize),this._handle.removeEventListener("touchstart",this._onResize),this.parent&&this.parent.removeChild(this._handle),this._handle=null,this._onResize=null}},{key:"el",get:function(){return this._handle}}]),e}(),EM=function(){function e(t,n){A(this,e),this.width=t,this.height=n}return m(e,[{key:"set",value:function(e){return this.width=e.width,this.height=e.height,this}}],[{key:"getCurrent",value:function(t){var n=new e(0,0);if(window){var i=window.getComputedStyle(t);return i&&(n.width=parseInt(i.getPropertyValue("width"),10),n.height=parseInt(i.getPropertyValue("height"),10)),n}return console.error("Not Supported!"),null}},{key:"copy",value:function(t){return new e(0,0).set(t)}}]),e}(),DM=((mM=function(){function e(t,n){A(this,e),this.el=t,this.renderer=n,this._resizable=!0,this._handles={},this._handleType=[],this._handleResizing=null,this._direction=null,this._directionChanged=null,this._aspectRatio=0,this._containment=null,this._origMousePos=null,this._origSize=null,this._origPos=null,this._currSize=null,this._currPos=null,this._initSize=null,this._initPos=null,this._gridSize=null,this._bounding=null,this._helperBlock=null,this.draggingSub=null,this._adjusted=!1,this.rzHandles="e,s,se",this.rzAspectRatio=!1,this.rzContainment=null,this.rzGrid=null,this.rzMinWidth=null,this.rzMinHeight=null,this.rzMaxWidth=null,this.rzMaxHeight=null,this.preventDefaultEvent=!0,this.rzStart=new Fu,this.rzResizing=new Fu,this.rzStop=new Fu,this._helperBlock=new CM(t.nativeElement,n)}return m(e,[{key:"ngResizable",set:function(e){null!=e&&""!==e&&(this._resizable=!!e,this.updateResizable())}},{key:"ngOnChanges",value:function(e){e.rzHandles&&!e.rzHandles.isFirstChange()&&this.updateResizable(),e.rzAspectRatio&&!e.rzAspectRatio.isFirstChange()&&this.updateAspectRatio(),e.rzContainment&&!e.rzContainment.isFirstChange()&&this.updateContainment()}},{key:"ngOnInit",value:function(){this.updateResizable()}},{key:"ngOnDestroy",value:function(){this.removeHandles(),this._containment=null,this._helperBlock.dispose(),this._helperBlock=null}},{key:"ngAfterViewInit",value:function(){var e=this.el.nativeElement;this._initSize=EM.getCurrent(e),this._initPos=AM.getCurrent(e),this._currSize=EM.copy(this._initSize),this._currPos=AM.copy(this._initPos),this.updateAspectRatio(),this.updateContainment()}},{key:"resetSize",value:function(){this._currSize=EM.copy(this._initSize),this._currPos=AM.copy(this._initPos),this.doResize()}},{key:"getStatus",value:function(){return this._currPos&&this._currSize?{size:{width:this._currSize.width,height:this._currSize.height},position:{top:this._currPos.y,left:this._currPos.x}}:null}},{key:"updateResizable",value:function(){var e=this.el.nativeElement;this.renderer.removeClass(e,"ng-resizable"),this.removeHandles(),this._resizable&&(this.renderer.addClass(e,"ng-resizable"),this.createHandles())}},{key:"updateAspectRatio",value:function(){if("boolean"==typeof this.rzAspectRatio)this._aspectRatio=this.rzAspectRatio&&this._currSize.height?this._currSize.width/this._currSize.height:0;else{var e=Number(this.rzAspectRatio);this._aspectRatio=isNaN(e)?0:e}}},{key:"updateContainment",value:function(){this._containment=this.rzContainment?"string"==typeof this.rzContainment?"parent"===this.rzContainment?this.el.nativeElement.parentElement:document.querySelector(this.rzContainment):this.rzContainment:null}},{key:"createHandles",value:function(){if(this.rzHandles)if("string"==typeof this.rzHandles){var e,t=h("all"===this.rzHandles?["n","e","s","w","ne","se","nw","sw"]:this.rzHandles.replace(/ /g,"").toLowerCase().split(","));try{for(t.s();!(e=t.n()).done;){var n=e.value,i=this.createHandleByType(n,"ng-resizable-"+n);i&&(this._handleType.push(n),this._handles[n]=i)}}catch(l){t.e(l)}finally{t.f()}}else{var r,o=h(Object.keys(this.rzHandles));try{for(o.s();!(r=o.n()).done;){var a=r.value,s=this.createHandleByType(a,this.rzHandles[a]);s&&(this._handleType.push(a),this._handles[a]=s)}}catch(l){o.e(l)}finally{o.f()}}}},{key:"createHandleByType",value:function(e,t){var n=this.el.nativeElement;return e.match(/^(se|sw|ne|nw|n|e|s|w)$/)?new PM(n,this.renderer,e,t,this.onMouseDown.bind(this)):(console.error("Invalid handle type:",e),null)}},{key:"removeHandles",value:function(){var e,t=h(this._handleType);try{for(t.s();!(e=t.n()).done;){var n=e.value;this._handles[n].dispose()}}catch(i){t.e(i)}finally{t.f()}this._handleType=[],this._handles={}}},{key:"onMouseDown",value:function(e,t){e instanceof MouseEvent&&2===e.button||(this.preventDefaultEvent&&(e.stopPropagation(),e.preventDefault()),this._handleResizing||(this._origMousePos=AM.fromEvent(e),this.startResize(t),this.subscribeEvents()))}},{key:"subscribeEvents",value:function(){var e=this;this.draggingSub=Sx(document,"mousemove",{passive:!1}).subscribe(function(t){return e.onMouseMove(t)}),this.draggingSub.add(Sx(document,"touchmove",{passive:!1}).subscribe(function(t){return e.onMouseMove(t)})),this.draggingSub.add(Sx(document,"mouseup",{passive:!1}).subscribe(function(){return e.onMouseLeave()})),/msie\s|trident\//i.test(window.navigator.userAgent)||this.draggingSub.add(Sx(document,"mouseleave",{passive:!1}).subscribe(function(){return e.onMouseLeave()})),this.draggingSub.add(Sx(document,"touchend",{passive:!1}).subscribe(function(){return e.onMouseLeave()})),this.draggingSub.add(Sx(document,"touchcancel",{passive:!1}).subscribe(function(){return e.onMouseLeave()}))}},{key:"unsubscribeEvents",value:function(){this.draggingSub.unsubscribe(),this.draggingSub=null}},{key:"onMouseLeave",value:function(){this._handleResizing&&(this.stopResize(),this._origMousePos=null,this.unsubscribeEvents())}},{key:"onMouseMove",value:function(e){this._handleResizing&&this._resizable&&this._origMousePos&&this._origPos&&this._origSize&&(this.resizeTo(AM.fromEvent(e)),this.onResizing())}},{key:"startResize",value:function(e){var t=this.el.nativeElement;this._origSize=EM.getCurrent(t),this._origPos=AM.getCurrent(t),this._currSize=EM.copy(this._origSize),this._currPos=AM.copy(this._origPos),this._containment&&this.getBounding(),this.getGridSize(),this._helperBlock.add(),this._handleResizing=e,this.updateDirection(),this.rzStart.emit(this.getResizingEvent())}},{key:"stopResize",value:function(){this._helperBlock.remove(),this.rzStop.emit(this.getResizingEvent()),this._handleResizing=null,this._direction=null,this._origSize=null,this._origPos=null,this._containment&&this.resetBounding()}},{key:"onResizing",value:function(){this.rzResizing.emit(this.getResizingEvent())}},{key:"getResizingEvent",value:function(){return{host:this.el.nativeElement,handle:this._handleResizing?this._handleResizing.el:null,size:{width:this._currSize.width,height:this._currSize.height},position:{top:this._currPos.y,left:this._currPos.x},direction:Object.assign({},this._directionChanged)}}},{key:"updateDirection",value:function(){this._direction={n:!!this._handleResizing.type.match(/n/),s:!!this._handleResizing.type.match(/s/),w:!!this._handleResizing.type.match(/w/),e:!!this._handleResizing.type.match(/e/)},this._directionChanged=Object.assign({},this._direction),this.rzAspectRatio&&(this._directionChanged.n&&!this._directionChanged.e&&(this._directionChanged.w=!0),this._directionChanged.s&&!this._directionChanged.w&&(this._directionChanged.e=!0),this._directionChanged.e&&!this._directionChanged.n&&(this._directionChanged.s=!0),this._directionChanged.w&&!this._directionChanged.n&&(this._directionChanged.s=!0))}},{key:"resizeTo",value:function(e){e.subtract(this._origMousePos);var t=Math.round(e.x/this._gridSize.x)*this._gridSize.x,n=Math.round(e.y/this._gridSize.y)*this._gridSize.y;this._direction.n?(this._currPos.y=this._origPos.y+n,this._currSize.height=this._origSize.height-n):this._direction.s&&(this._currSize.height=this._origSize.height+n),this._direction.e?this._currSize.width=this._origSize.width+t:this._direction.w&&(this._currSize.width=this._origSize.width-t,this._currPos.x=this._origPos.x+t),this.checkBounds(),this.checkSize(),this.adjustByRatio(),this.doResize()}},{key:"doResize",value:function(){var e=this.el.nativeElement;(!this._direction||this._direction.n||this._direction.s||this._aspectRatio)&&this.renderer.setStyle(e,"height",this._currSize.height+"px"),(!this._direction||this._direction.w||this._direction.e||this._aspectRatio)&&this.renderer.setStyle(e,"width",this._currSize.width+"px"),this.renderer.setStyle(e,"left",this._currPos.x+"px"),this.renderer.setStyle(e,"top",this._currPos.y+"px")}},{key:"adjustByRatio",value:function(){if(this._aspectRatio&&!this._adjusted)if(this._direction.e||this._direction.w){var e=Math.floor(this._currSize.width/this._aspectRatio);this._direction.n&&(this._currPos.y+=this._currSize.height-e),this._currSize.height=e}else{var t=Math.floor(this._aspectRatio*this._currSize.height);this._direction.n&&(this._currPos.x+=this._currSize.width-t),this._currSize.width=t}}},{key:"checkBounds",value:function(){if(this._containment){var e=this._bounding.width-this._bounding.pr-this._bounding.deltaL-this._bounding.translateX-this._currPos.x,t=this._bounding.height-this._bounding.pb-this._bounding.deltaT-this._bounding.translateY-this._currPos.y;if(this._direction.n&&this._currPos.y+this._bounding.translateY<0&&(this._currPos.y=-this._bounding.translateY,this._currSize.height=this._origSize.height+this._origPos.y+this._bounding.translateY),this._direction.w&&this._currPos.x+this._bounding.translateX<0&&(this._currPos.x=-this._bounding.translateX,this._currSize.width=this._origSize.width+this._origPos.x+this._bounding.translateX),this._currSize.width>e&&(this._currSize.width=e),this._currSize.height>t&&(this._currSize.height=t),this._aspectRatio){if(this._adjusted=!1,(this._direction.w||this._direction.e)&&this._currSize.width/this._aspectRatio>=t){var n=Math.floor(t*this._aspectRatio);this._direction.w&&(this._currPos.x+=this._currSize.width-n),this._currSize.width=n,this._currSize.height=t,this._adjusted=!0}if((this._direction.n||this._direction.s)&&this._currSize.height*this._aspectRatio>=e){var i=Math.floor(e/this._aspectRatio);this._direction.n&&(this._currPos.y+=this._currSize.height-i),this._currSize.width=e,this._currSize.height=i,this._adjusted=!0}}}}},{key:"checkSize",value:function(){var e=this.rzMinHeight?this.rzMinHeight:1,t=this.rzMinWidth?this.rzMinWidth:1;this._currSize.height<e&&(this._currSize.height=e,this._direction.n&&(this._currPos.y=this._origPos.y+(this._origSize.height-e))),this._currSize.width<t&&(this._currSize.width=t,this._direction.w&&(this._currPos.x=this._origPos.x+(this._origSize.width-t))),this.rzMaxHeight&&this._currSize.height>this.rzMaxHeight&&(this._currSize.height=this.rzMaxHeight,this._direction.n&&(this._currPos.y=this._origPos.y+(this._origSize.height-this.rzMaxHeight))),this.rzMaxWidth&&this._currSize.width>this.rzMaxWidth&&(this._currSize.width=this.rzMaxWidth,this._direction.w&&(this._currPos.x=this._origPos.x+(this._origSize.width-this.rzMaxWidth)))}},{key:"getBounding",value:function(){var e=this._containment,t=window.getComputedStyle(e);if(t){var n=t.getPropertyValue("position"),i=window.getComputedStyle(this.el.nativeElement).getPropertyValue("transform").replace(/[^-\d,]/g,"").split(",");this._bounding={},this._bounding.width=e.clientWidth,this._bounding.height=e.clientHeight,this._bounding.pr=parseInt(t.getPropertyValue("padding-right"),10),this._bounding.pb=parseInt(t.getPropertyValue("padding-bottom"),10),this._bounding.deltaL=this.el.nativeElement.offsetLeft-this._currPos.x,this._bounding.deltaT=this.el.nativeElement.offsetTop-this._currPos.y,i.length>=6?(this._bounding.translateX=parseInt(i[4],10),this._bounding.translateY=parseInt(i[5],10)):(this._bounding.translateX=0,this._bounding.translateY=0),this._bounding.position=t.getPropertyValue("position"),"static"===n&&this.renderer.setStyle(e,"position","relative")}}},{key:"resetBounding",value:function(){this._bounding&&"static"===this._bounding.position&&this.renderer.setStyle(this._containment,"position","relative"),this._bounding=null}},{key:"getGridSize",value:function(){this._gridSize={x:1,y:1},this.rzGrid&&("number"==typeof this.rzGrid?this._gridSize={x:this.rzGrid,y:this.rzGrid}:Array.isArray(this.rzGrid)&&(this._gridSize={x:this.rzGrid[0],y:this.rzGrid[1]}))}}]),e}()).\u0275fac=function(e){return new(e||mM)(rs(Cl),rs(El))},mM.\u0275dir=bt({type:mM,selectors:[["","ngResizable",""]],inputs:{rzHandles:"rzHandles",rzAspectRatio:"rzAspectRatio",rzContainment:"rzContainment",rzGrid:"rzGrid",rzMinWidth:"rzMinWidth",rzMinHeight:"rzMinHeight",rzMaxWidth:"rzMaxWidth",rzMaxHeight:"rzMaxHeight",preventDefaultEvent:"preventDefaultEvent",ngResizable:"ngResizable"},outputs:{rzStart:"rzStart",rzResizing:"rzResizing",rzStop:"rzStop"},exportAs:["ngResizable"],features:[Mt]}),mM),OM=((vM=function e(){A(this,e)}).\u0275fac=function(e){return new(e||vM)},vM.\u0275mod=mt({type:vM}),vM.\u0275inj=Fe({imports:[[]]}),vM);function MM(e,t){return function(n,i){t(n,i,e)}}var TM,IM=((TM=function(){function e(t,n){A(this,e),this.document=t,this.platformId=n,this.documentIsAccessible=Qh(this.platformId)}return m(e,[{key:"check",value:function(e){return!!this.documentIsAccessible&&(e=encodeURIComponent(e),this.getCookieRegExp(e).test(this.document.cookie))}},{key:"get",value:function(e){if(!this.documentIsAccessible||!this.check(e))return"";e=encodeURIComponent(e);var t=this.getCookieRegExp(e).exec(this.document.cookie);try{return decodeURIComponent(t[1])}catch(n){return t[1]}}},{key:"getAll",value:function(){if(!this.documentIsAccessible)return{};var e={},t=this.document;return t.cookie&&""!==t.cookie&&t.cookie.split(";").forEach(function(t){var n=f(t.split("="),2),i=n[0],r=n[1];e[decodeURIComponent(i.replace(/^ /,""))]=decodeURIComponent(r)}),e}},{key:"set",value:function(e,t,n,i,r,o){var a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:"Lax";if(this.documentIsAccessible){var s=encodeURIComponent(e)+"="+encodeURIComponent(t)+";";n&&(s+="number"==typeof n?"expires="+new Date((new Date).getTime()+1e3*n*60*60*24).toUTCString()+";":"expires="+n.toUTCString()+";"),i&&(s+="path="+i+";"),r&&(s+="domain="+r+";"),!1===o&&"None"===a&&(o=!0,console.warn("[ngx-cookie-service] Cookie ".concat(e," was forced with secure flag because sameSite=None.More details : https://github.com/stevermeister/ngx-cookie-service/issues/86#issuecomment-597720130"))),o&&(s+="secure;"),s+="sameSite="+a+";",this.document.cookie=s}}},{key:"delete",value:function(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"Lax";this.documentIsAccessible&&this.set(e,"",new Date("Thu, 01 Jan 1970 00:00:01 GMT"),t,n,i,r)}},{key:"deleteAll",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"Lax";if(this.documentIsAccessible){var r=this.getAll();for(var o in r)r.hasOwnProperty(o)&&this.delete(o,e,t,n,i)}}},{key:"getCookieRegExp",value:function(e){var t=e.replace(/([\[\]\{\}\(\)\|\=\;\+\?\,\.\*\^\$])/gi,"\\$1");return new RegExp("(?:^"+t+"|;\\s*"+t+")=(.*?)(?:;|$)","g")}}]),e}()).\u0275fac=function(e){return new(e||TM)(Ri(od),Ri(uc))},TM.\u0275prov=Re({factory:function(){return new TM(Ri(od),Ri(uc))},token:TM,providedIn:"root"}),TM=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a}([MM(0,Ni(od)),MM(1,Ni(uc))],TM));function RM(e){return"string"==typeof e}var LM,FM,BM,VM,zM,NM,HM,jM,UM,WM,GM=((WM=function e(){A(this,e)}).\u0275fac=function(e){return new(e||WM)},WM.\u0275mod=mt({type:WM}),WM.\u0275inj=Fe({imports:[[]]}),WM),qM=((UM=function e(){A(this,e)}).\u0275fac=function(e){return new(e||UM)},UM.\u0275mod=mt({type:UM}),UM.\u0275inj=Fe({imports:[[]]}),UM),YM=((jM=function(){function e(){A(this,e)}return m(e,[{key:"transform",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(!RM(e))return e;if(e.length>t){if(i)return e.slice(0,t)+n;if(~e.indexOf(" ",t))return e.slice(0,e.indexOf(" ",t))+n}return e}}]),e}()).\u0275fac=function(e){return new(e||jM)},jM.\u0275pipe=wt({name:"shorten",type:jM,pure:!0}),jM),ZM=((HM=function(){function e(){A(this,e)}return m(e,[{key:"transform",value:function(e){return RM(e)?function(e){var t,n=e.split(/\s/g),i=g(t=n)||w(t)||b(t)||p(),r=i[0],o=i.slice(1);return[r.toLowerCase().split(/(?=['|-])/g).map(function(e){return e.indexOf("-")+e.indexOf("'")>-2?e.slice(0,2).toUpperCase()+e.slice(2):e.slice(0,1).toUpperCase()+e.slice(1)}).join("")].concat(y(o)).join(" ")}(e):e}}]),e}()).\u0275fac=function(e){return new(e||HM)},HM.\u0275pipe=wt({name:"ucfirst",type:HM,pure:!0}),HM),QM=((NM=function(){function e(){A(this,e),this.latinMap={"\xc1":"A","\u0102":"A","\u1eae":"A","\u1eb6":"A","\u1eb0":"A","\u1eb2":"A","\u1eb4":"A","\u01cd":"A","\xc2":"A","\u1ea4":"A","\u1eac":"A","\u1ea6":"A","\u1ea8":"A","\u1eaa":"A","\xc4":"A","\u01de":"A","\u0226":"A","\u01e0":"A","\u1ea0":"A","\u0200":"A","\xc0":"A","\u1ea2":"A","\u0202":"A","\u0100":"A","\u0104":"A","\xc5":"A","\u01fa":"A","\u1e00":"A","\u023a":"A","\xc3":"A","\ua732":"AA","\xc6":"AE","\u01fc":"AE","\u01e2":"AE","\ua734":"AO","\ua736":"AU","\ua738":"AV","\ua73a":"AV","\ua73c":"AY","\u1e02":"B","\u1e04":"B","\u0181":"B","\u1e06":"B","\u0243":"B","\u0182":"B","\u0106":"C","\u010c":"C","\xc7":"C","\u1e08":"C","\u0108":"C","\u010a":"C","\u0187":"C","\u023b":"C","\u010e":"D","\u1e10":"D","\u1e12":"D","\u1e0a":"D","\u1e0c":"D","\u018a":"D","\u1e0e":"D","\u01f2":"D","\u01c5":"D","\u0110":"D","\u018b":"D","\u01f1":"DZ","\u01c4":"DZ","\xc9":"E","\u0114":"E","\u011a":"E","\u0228":"E","\u1e1c":"E","\xca":"E","\u1ebe":"E","\u1ec6":"E","\u1ec0":"E","\u1ec2":"E","\u1ec4":"E","\u1e18":"E","\xcb":"E","\u0116":"E","\u1eb8":"E","\u0204":"E","\xc8":"E","\u1eba":"E","\u0206":"E","\u0112":"E","\u1e16":"E","\u1e14":"E","\u0118":"E","\u0246":"E","\u1ebc":"E","\u1e1a":"E","\ua76a":"ET","\u1e1e":"F","\u0191":"F","\u01f4":"G","\u011e":"G","\u01e6":"G","\u0122":"G","\u011c":"G","\u0120":"G","\u0193":"G","\u1e20":"G","\u01e4":"G","\u1e2a":"H","\u021e":"H","\u1e28":"H","\u0124":"H","\u2c67":"H","\u1e26":"H","\u1e22":"H","\u1e24":"H","\u0126":"H","\xcd":"I","\u012c":"I","\u01cf":"I","\xce":"I","\xcf":"I","\u1e2e":"I","\u0130":"I","\u1eca":"I","\u0208":"I","\xcc":"I","\u1ec8":"I","\u020a":"I","\u012a":"I","\u012e":"I","\u0197":"I","\u0128":"I","\u1e2c":"I","\ua779":"D","\ua77b":"F","\ua77d":"G","\ua782":"R","\ua784":"S","\ua786":"T","\ua76c":"IS","\u0134":"J","\u0248":"J","\u1e30":"K","\u01e8":"K","\u0136":"K","\u2c69":"K","\ua742":"K","\u1e32":"K","\u0198":"K","\u1e34":"K","\ua740":"K","\ua744":"K","\u0139":"L","\u023d":"L","\u013d":"L","\u013b":"L","\u1e3c":"L","\u1e36":"L","\u1e38":"L","\u2c60":"L","\ua748":"L","\u1e3a":"L","\u013f":"L","\u2c62":"L","\u01c8":"L","\u0141":"L","\u01c7":"LJ","\u1e3e":"M","\u1e40":"M","\u1e42":"M","\u2c6e":"M","\u0143":"N","\u0147":"N","\u0145":"N","\u1e4a":"N","\u1e44":"N","\u1e46":"N","\u01f8":"N","\u019d":"N","\u1e48":"N","\u0220":"N","\u01cb":"N","\xd1":"N","\u01ca":"NJ","\xd3":"O","\u014e":"O","\u01d1":"O","\xd4":"O","\u1ed0":"O","\u1ed8":"O","\u1ed2":"O","\u1ed4":"O","\u1ed6":"O","\xd6":"O","\u022a":"O","\u022e":"O","\u0230":"O","\u1ecc":"O","\u0150":"O","\u020c":"O","\xd2":"O","\u1ece":"O","\u01a0":"O","\u1eda":"O","\u1ee2":"O","\u1edc":"O","\u1ede":"O","\u1ee0":"O","\u020e":"O","\ua74a":"O","\ua74c":"O","\u014c":"O","\u1e52":"O","\u1e50":"O","\u019f":"O","\u01ea":"O","\u01ec":"O","\xd8":"O","\u01fe":"O","\xd5":"O","\u1e4c":"O","\u1e4e":"O","\u022c":"O","\u01a2":"OI","\ua74e":"OO","\u0190":"E","\u0186":"O","\u0222":"OU","\u1e54":"P","\u1e56":"P","\ua752":"P","\u01a4":"P","\ua754":"P","\u2c63":"P","\ua750":"P","\ua758":"Q","\ua756":"Q","\u0154":"R","\u0158":"R","\u0156":"R","\u1e58":"R","\u1e5a":"R","\u1e5c":"R","\u0210":"R","\u0212":"R","\u1e5e":"R","\u024c":"R","\u2c64":"R","\ua73e":"C","\u018e":"E","\u015a":"S","\u1e64":"S","\u0160":"S","\u1e66":"S","\u015e":"S","\u015c":"S","\u0218":"S","\u1e60":"S","\u1e62":"S","\u1e68":"S","\u1e9e":"SS","\u0164":"T","\u0162":"T","\u1e70":"T","\u021a":"T","\u023e":"T","\u1e6a":"T","\u1e6c":"T","\u01ac":"T","\u1e6e":"T","\u01ae":"T","\u0166":"T","\u2c6f":"A","\ua780":"L","\u019c":"M","\u0245":"V","\ua728":"TZ","\xda":"U","\u016c":"U","\u01d3":"U","\xdb":"U","\u1e76":"U","\xdc":"U","\u01d7":"U","\u01d9":"U","\u01db":"U","\u01d5":"U","\u1e72":"U","\u1ee4":"U","\u0170":"U","\u0214":"U","\xd9":"U","\u1ee6":"U","\u01af":"U","\u1ee8":"U","\u1ef0":"U","\u1eea":"U","\u1eec":"U","\u1eee":"U","\u0216":"U","\u016a":"U","\u1e7a":"U","\u0172":"U","\u016e":"U","\u0168":"U","\u1e78":"U","\u1e74":"U","\ua75e":"V","\u1e7e":"V","\u01b2":"V","\u1e7c":"V","\ua760":"VY","\u1e82":"W","\u0174":"W","\u1e84":"W","\u1e86":"W","\u1e88":"W","\u1e80":"W","\u2c72":"W","\u1e8c":"X","\u1e8a":"X","\xdd":"Y","\u0176":"Y","\u0178":"Y","\u1e8e":"Y","\u1ef4":"Y","\u1ef2":"Y","\u01b3":"Y","\u1ef6":"Y","\u1efe":"Y","\u0232":"Y","\u024e":"Y","\u1ef8":"Y","\u0179":"Z","\u017d":"Z","\u1e90":"Z","\u2c6b":"Z","\u017b":"Z","\u1e92":"Z","\u0224":"Z","\u1e94":"Z","\u01b5":"Z","\u0132":"IJ","\u0152":"OE","\u1d00":"A","\u1d01":"AE","\u0299":"B","\u1d03":"B","\u1d04":"C","\u1d05":"D","\u1d07":"E","\ua730":"F","\u0262":"G","\u029b":"G","\u029c":"H","\u026a":"I","\u0281":"R","\u1d0a":"J","\u1d0b":"K","\u029f":"L","\u1d0c":"L","\u1d0d":"M","\u0274":"N","\u1d0f":"O","\u0276":"OE","\u1d10":"O","\u1d15":"OU","\u1d18":"P","\u0280":"R","\u1d0e":"N","\u1d19":"R","\ua731":"S","\u1d1b":"T","\u2c7b":"E","\u1d1a":"R","\u1d1c":"U","\u1d20":"V","\u1d21":"W","\u028f":"Y","\u1d22":"Z","\xe1":"a","\u0103":"a","\u1eaf":"a","\u1eb7":"a","\u1eb1":"a","\u1eb3":"a","\u1eb5":"a","\u01ce":"a","\xe2":"a","\u1ea5":"a","\u1ead":"a","\u1ea7":"a","\u1ea9":"a","\u1eab":"a","\xe4":"a","\u01df":"a","\u0227":"a","\u01e1":"a","\u1ea1":"a","\u0201":"a","\xe0":"a","\u1ea3":"a","\u0203":"a","\u0101":"a","\u0105":"a","\u1d8f":"a","\u1e9a":"a","\xe5":"a","\u01fb":"a","\u1e01":"a","\u2c65":"a","\xe3":"a","\ua733":"aa","\xe6":"ae","\u01fd":"ae","\u01e3":"ae","\ua735":"ao","\ua737":"au","\ua739":"av","\ua73b":"av","\ua73d":"ay","\u1e03":"b","\u1e05":"b","\u0253":"b","\u1e07":"b","\u1d6c":"b","\u1d80":"b","\u0180":"b","\u0183":"b","\u0275":"o","\u0107":"c","\u010d":"c","\xe7":"c","\u1e09":"c","\u0109":"c","\u0255":"c","\u010b":"c","\u0188":"c","\u023c":"c","\u010f":"d","\u1e11":"d","\u1e13":"d","\u0221":"d","\u1e0b":"d","\u1e0d":"d","\u0257":"d","\u1d91":"d","\u1e0f":"d","\u1d6d":"d","\u1d81":"d","\u0111":"d","\u0256":"d","\u018c":"d","\u0131":"i","\u0237":"j","\u025f":"j","\u0284":"j","\u01f3":"dz","\u01c6":"dz","\xe9":"e","\u0115":"e","\u011b":"e","\u0229":"e","\u1e1d":"e","\xea":"e","\u1ebf":"e","\u1ec7":"e","\u1ec1":"e","\u1ec3":"e","\u1ec5":"e","\u1e19":"e","\xeb":"e","\u0117":"e","\u1eb9":"e","\u0205":"e","\xe8":"e","\u1ebb":"e","\u0207":"e","\u0113":"e","\u1e17":"e","\u1e15":"e","\u2c78":"e","\u0119":"e","\u1d92":"e","\u0247":"e","\u1ebd":"e","\u1e1b":"e","\ua76b":"et","\u1e1f":"f","\u0192":"f","\u1d6e":"f","\u1d82":"f","\u01f5":"g","\u011f":"g","\u01e7":"g","\u0123":"g","\u011d":"g","\u0121":"g","\u0260":"g","\u1e21":"g","\u1d83":"g","\u01e5":"g","\u1e2b":"h","\u021f":"h","\u1e29":"h","\u0125":"h","\u2c68":"h","\u1e27":"h","\u1e23":"h","\u1e25":"h","\u0266":"h","\u1e96":"h","\u0127":"h","\u0195":"hv","\xed":"i","\u012d":"i","\u01d0":"i","\xee":"i","\xef":"i","\u1e2f":"i","\u1ecb":"i","\u0209":"i","\xec":"i","\u1ec9":"i","\u020b":"i","\u012b":"i","\u012f":"i","\u1d96":"i","\u0268":"i","\u0129":"i","\u1e2d":"i","\ua77a":"d","\ua77c":"f","\u1d79":"g","\ua783":"r","\ua785":"s","\ua787":"t","\ua76d":"is","\u01f0":"j","\u0135":"j","\u029d":"j","\u0249":"j","\u1e31":"k","\u01e9":"k","\u0137":"k","\u2c6a":"k","\ua743":"k","\u1e33":"k","\u0199":"k","\u1e35":"k","\u1d84":"k","\ua741":"k","\ua745":"k","\u013a":"l","\u019a":"l","\u026c":"l","\u013e":"l","\u013c":"l","\u1e3d":"l","\u0234":"l","\u1e37":"l","\u1e39":"l","\u2c61":"l","\ua749":"l","\u1e3b":"l","\u0140":"l","\u026b":"l","\u1d85":"l","\u026d":"l","\u0142":"l","\u01c9":"lj","\u017f":"s","\u1e9c":"s","\u1e9b":"s","\u1e9d":"s","\u1e3f":"m","\u1e41":"m","\u1e43":"m","\u0271":"m","\u1d6f":"m","\u1d86":"m","\u0144":"n","\u0148":"n","\u0146":"n","\u1e4b":"n","\u0235":"n","\u1e45":"n","\u1e47":"n","\u01f9":"n","\u0272":"n","\u1e49":"n","\u019e":"n","\u1d70":"n","\u1d87":"n","\u0273":"n","\xf1":"n","\u01cc":"nj","\xf3":"o","\u014f":"o","\u01d2":"o","\xf4":"o","\u1ed1":"o","\u1ed9":"o","\u1ed3":"o","\u1ed5":"o","\u1ed7":"o","\xf6":"o","\u022b":"o","\u022f":"o","\u0231":"o","\u1ecd":"o","\u0151":"o","\u020d":"o","\xf2":"o","\u1ecf":"o","\u01a1":"o","\u1edb":"o","\u1ee3":"o","\u1edd":"o","\u1edf":"o","\u1ee1":"o","\u020f":"o","\ua74b":"o","\ua74d":"o","\u2c7a":"o","\u014d":"o","\u1e53":"o","\u1e51":"o","\u01eb":"o","\u01ed":"o","\xf8":"o","\u01ff":"o","\xf5":"o","\u1e4d":"o","\u1e4f":"o","\u022d":"o","\u01a3":"oi","\ua74f":"oo","\u025b":"e","\u1d93":"e","\u0254":"o","\u1d97":"o","\u0223":"ou","\u1e55":"p","\u1e57":"p","\ua753":"p","\u01a5":"p","\u1d71":"p","\u1d88":"p","\ua755":"p","\u1d7d":"p","\ua751":"p","\ua759":"q","\u02a0":"q","\u024b":"q","\ua757":"q","\u0155":"r","\u0159":"r","\u0157":"r","\u1e59":"r","\u1e5b":"r","\u1e5d":"r","\u0211":"r","\u027e":"r","\u1d73":"r","\u0213":"r","\u1e5f":"r","\u027c":"r","\u1d72":"r","\u1d89":"r","\u024d":"r","\u027d":"r","\u2184":"c","\ua73f":"c","\u0258":"e","\u027f":"r","\u015b":"s","\u1e65":"s","\u0161":"s","\u1e67":"s","\u015f":"s","\u015d":"s","\u0219":"s","\u1e61":"s","\u1e63":"s","\u1e69":"s","\u0282":"s","\u1d74":"s","\u1d8a":"s","\u023f":"s","\u0261":"g","\xdf":"ss","\u1d11":"o","\u1d13":"o","\u1d1d":"u","\u0165":"t","\u0163":"t","\u1e71":"t","\u021b":"t","\u0236":"t","\u1e97":"t","\u2c66":"t","\u1e6b":"t","\u1e6d":"t","\u01ad":"t","\u1e6f":"t","\u1d75":"t","\u01ab":"t","\u0288":"t","\u0167":"t","\u1d7a":"th","\u0250":"a","\u1d02":"ae","\u01dd":"e","\u1d77":"g","\u0265":"h","\u02ae":"h","\u02af":"h","\u1d09":"i","\u029e":"k","\ua781":"l","\u026f":"m","\u0270":"m","\u1d14":"oe","\u0279":"r","\u027b":"r","\u027a":"r","\u2c79":"r","\u0287":"t","\u028c":"v","\u028d":"w","\u028e":"y","\ua729":"tz","\xfa":"u","\u016d":"u","\u01d4":"u","\xfb":"u","\u1e77":"u","\xfc":"u","\u01d8":"u","\u01da":"u","\u01dc":"u","\u01d6":"u","\u1e73":"u","\u1ee5":"u","\u0171":"u","\u0215":"u","\xf9":"u","\u1ee7":"u","\u01b0":"u","\u1ee9":"u","\u1ef1":"u","\u1eeb":"u","\u1eed":"u","\u1eef":"u","\u0217":"u","\u016b":"u","\u1e7b":"u","\u0173":"u","\u1d99":"u","\u016f":"u","\u0169":"u","\u1e79":"u","\u1e75":"u","\u1d6b":"ue","\ua778":"um","\u2c74":"v","\ua75f":"v","\u1e7f":"v","\u028b":"v","\u1d8c":"v","\u2c71":"v","\u1e7d":"v","\ua761":"vy","\u1e83":"w","\u0175":"w","\u1e85":"w","\u1e87":"w","\u1e89":"w","\u1e81":"w","\u2c73":"w","\u1e98":"w","\u1e8d":"x","\u1e8b":"x","\u1d8d":"x","\xfd":"y","\u0177":"y","\xff":"y","\u1e8f":"y","\u1ef5":"y","\u1ef3":"y","\u01b4":"y","\u1ef7":"y","\u1eff":"y","\u0233":"y","\u1e99":"y","\u024f":"y","\u1ef9":"y","\u017a":"z","\u017e":"z","\u1e91":"z","\u0291":"z","\u2c6c":"z","\u017c":"z","\u1e93":"z","\u0225":"z","\u1e95":"z","\u1d76":"z","\u1d8e":"z","\u0290":"z","\u01b6":"z","\u0240":"z","\ufb00":"ff","\ufb03":"ffi","\ufb04":"ffl","\ufb01":"fi","\ufb02":"fl","\u0133":"ij","\u0153":"oe","\ufb06":"st","\u2090":"a","\u2091":"e","\u1d62":"i","\u2c7c":"j","\u2092":"o","\u1d63":"r","\u1d64":"u","\u1d65":"v","\u2093":"x"}}return m(e,[{key:"transform",value:function(e){var t=this;return RM(e)?e.replace(/[^A-Za-z0-9]/g,function(e){return t.latinMap[e]||e}):e}}]),e}()).\u0275fac=function(e){return new(e||NM)},NM.\u0275pipe=wt({name:"latinise",type:NM,pure:!0}),NM),XM=((zM=function e(){A(this,e)}).\u0275fac=function(e){return new(e||zM)},zM.\u0275mod=mt({type:zM}),zM.\u0275inj=Fe({imports:[[]]}),zM),KM=((VM=function e(){A(this,e)}).\u0275fac=function(e){return new(e||VM)},VM.\u0275mod=mt({type:VM}),VM.\u0275inj=Fe({imports:[[]]}),VM),JM=((BM=function e(){A(this,e)}).\u0275fac=function(e){return new(e||BM)},BM.\u0275mod=mt({type:BM}),BM.\u0275inj=Fe({imports:[[]]}),BM),$M=((FM=function e(){A(this,e)}).\u0275fac=function(e){return new(e||FM)},FM.\u0275mod=mt({type:FM}),FM.\u0275inj=Fe({imports:[[]]}),FM),eT=((LM=function e(){A(this,e)}).\u0275fac=function(e){return new(e||LM)},LM.\u0275mod=mt({type:LM}),LM.\u0275inj=Fe({imports:[GM,XM,KM,JM,qM,$M]}),LM);function tT(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return n.length?n.some(function(t){return e[t]}):e.altKey||e.shiftKey||e.ctrlKey||e.metaKey}var nT=new xP(wP);function iT(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:nT;return function(n){return n.lift(new oT(e,t))}}var rT,oT=function(){function e(t,n){A(this,e),this.dueTime=t,this.scheduler=n}return m(e,[{key:"call",value:function(e,t){return t.subscribe(new aT(e,this.dueTime,this.scheduler))}}]),e}(),aT=function(e){r(n,e);var t=a(n);function n(e,i,r){var o;return A(this,n),(o=t.call(this,e)).dueTime=i,o.scheduler=r,o.debouncedSubscription=null,o.lastValue=null,o.hasValue=!1,o}return m(n,[{key:"_next",value:function(e){this.clearDebounce(),this.lastValue=e,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(sT,this.dueTime,this))}},{key:"_complete",value:function(){this.debouncedNext(),this.destination.complete()}},{key:"debouncedNext",value:function(){if(this.clearDebounce(),this.hasValue){var e=this.lastValue;this.lastValue=null,this.hasValue=!1,this.destination.next(e)}}},{key:"clearDebounce",value:function(){var e=this.debouncedSubscription;null!==e&&(this.remove(e),e.unsubscribe(),this.debouncedSubscription=null)}}]),n}(I);function sT(e){e.debouncedNext()}function lT(e){return null!=e&&""+e!="false"}function uT(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(e){return!isNaN(parseFloat(e))&&!isNaN(Number(e))}(e)?Number(e):t}function cT(e){return Array.isArray(e)?e:[e]}function dT(e){return null==e?"":"string"==typeof e?e:e+"px"}function hT(e){return e instanceof Cl?e.nativeElement:e}try{rT="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(dQ){rT=!1}var fT,pT,gT,vT,mT=function(){var e=function e(t){A(this,e),this._platformId=t,this.isBrowser=this._platformId?Qh(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!rT)&&"undefined"!=typeof CSS&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT};return e.\u0275fac=function(t){return new(t||e)(Ri(uc))},e.\u0275prov=Re({factory:function(){return new e(Ri(uc))},token:e,providedIn:"root"}),e}(),yT=((vT=function e(){A(this,e)}).\u0275fac=function(e){return new(e||vT)},vT.\u0275mod=mt({type:vT}),vT.\u0275inj=Fe({}),vT);function bT(e){return function(){if(null==fT&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){return fT=!0}}))}finally{fT=fT||!1}return fT}()?e:!!e.capture}function wT(e){if(function(){if(null==gT){var e="undefined"!=typeof document?document.head:null;gT=!(!e||!e.createShadowRoot&&!e.attachShadow)}return gT}()){var t=e.getRootNode?e.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&t instanceof ShadowRoot)return t}return null}var _T,kT,xT,AT,CT=((AT=function(){function e(){A(this,e)}return m(e,[{key:"create",value:function(e){return"undefined"==typeof MutationObserver?null:new MutationObserver(e)}}]),e}()).\u0275fac=function(e){return new(e||AT)},AT.\u0275prov=Re({factory:function(){return new AT},token:AT,providedIn:"root"}),AT),ST=((xT=function(){function e(t){A(this,e),this._mutationObserverFactory=t,this._observedElements=new Map}return m(e,[{key:"ngOnDestroy",value:function(){var e=this;this._observedElements.forEach(function(t,n){return e._cleanupObserver(n)})}},{key:"observe",value:function(e){var t=this,n=hT(e);return new V(function(e){var i=t._observeElement(n).subscribe(e);return function(){i.unsubscribe(),t._unobserveElement(n)}})}},{key:"_observeElement",value:function(e){if(this._observedElements.has(e))this._observedElements.get(e).count++;else{var t=new W,n=this._mutationObserverFactory.create(function(e){return t.next(e)});n&&n.observe(e,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(e,{observer:n,stream:t,count:1})}return this._observedElements.get(e).stream}},{key:"_unobserveElement",value:function(e){this._observedElements.has(e)&&(this._observedElements.get(e).count--,this._observedElements.get(e).count||this._cleanupObserver(e))}},{key:"_cleanupObserver",value:function(e){if(this._observedElements.has(e)){var t=this._observedElements.get(e),n=t.observer,i=t.stream;n&&n.disconnect(),i.complete(),this._observedElements.delete(e)}}}]),e}()).\u0275fac=function(e){return new(e||xT)(Ri(CT))},xT.\u0275prov=Re({factory:function(){return new xT(Ri(CT))},token:xT,providedIn:"root"}),xT),PT=((kT=function(){function e(t,n,i){A(this,e),this._contentObserver=t,this._elementRef=n,this._ngZone=i,this.event=new Fu,this._disabled=!1,this._currentSubscription=null}return m(e,[{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=lT(e),this._disabled?this._unsubscribe():this._subscribe()}},{key:"debounce",get:function(){return this._debounce},set:function(e){this._debounce=uT(e),this._subscribe()}},{key:"ngAfterContentInit",value:function(){this._currentSubscription||this.disabled||this._subscribe()}},{key:"ngOnDestroy",value:function(){this._unsubscribe()}},{key:"_subscribe",value:function(){var e=this;this._unsubscribe();var t=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(function(){e._currentSubscription=(e.debounce?t.pipe(iT(e.debounce)):t).subscribe(e.event)})}},{key:"_unsubscribe",value:function(){var e;null===(e=this._currentSubscription)||void 0===e||e.unsubscribe()}}]),e}()).\u0275fac=function(e){return new(e||kT)(rs(ST),rs(Cl),rs(Ac))},kT.\u0275dir=bt({type:kT,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),kT),ET=((_T=function e(){A(this,e)}).\u0275fac=function(e){return new(e||_T)},_T.\u0275mod=mt({type:_T}),_T.\u0275inj=Fe({providers:[CT]}),_T);function DT(e,t){return(e.getAttribute(t)||"").match(/\S+/g)||[]}var OT,MT=0,TT=new Map,IT=null,RT=((OT=function(){function e(t){A(this,e),this._document=t}return m(e,[{key:"describe",value:function(e,t,n){if(this._canBeDescribed(e,t)){var i=LT(t,n);"string"!=typeof t?(FT(t),TT.set(i,{messageElement:t,referenceCount:0})):TT.has(i)||this._createMessageElement(t,n),this._isElementDescribedByMessage(e,i)||this._addMessageReference(e,i)}}},{key:"removeDescription",value:function(e,t,n){if(t&&this._isElementNode(e)){var i=LT(t,n);if(this._isElementDescribedByMessage(e,i)&&this._removeMessageReference(e,i),"string"==typeof t){var r=TT.get(i);r&&0===r.referenceCount&&this._deleteMessageElement(i)}IT&&0===IT.childNodes.length&&this._deleteMessagesContainer()}}},{key:"ngOnDestroy",value:function(){for(var e=this._document.querySelectorAll("[cdk-describedby-host]"),t=0;t<e.length;t++)this._removeCdkDescribedByReferenceIds(e[t]),e[t].removeAttribute("cdk-describedby-host");IT&&this._deleteMessagesContainer(),TT.clear()}},{key:"_createMessageElement",value:function(e,t){var n=this._document.createElement("div");FT(n),n.textContent=e,t&&n.setAttribute("role",t),this._createMessagesContainer(),IT.appendChild(n),TT.set(LT(e,t),{messageElement:n,referenceCount:0})}},{key:"_deleteMessageElement",value:function(e){var t=TT.get(e),n=t&&t.messageElement;IT&&n&&IT.removeChild(n),TT.delete(e)}},{key:"_createMessagesContainer",value:function(){if(!IT){var e=this._document.getElementById("cdk-describedby-message-container");e&&e.parentNode&&e.parentNode.removeChild(e),(IT=this._document.createElement("div")).id="cdk-describedby-message-container",IT.style.visibility="hidden",IT.classList.add("cdk-visually-hidden"),this._document.body.appendChild(IT)}}},{key:"_deleteMessagesContainer",value:function(){IT&&IT.parentNode&&(IT.parentNode.removeChild(IT),IT=null)}},{key:"_removeCdkDescribedByReferenceIds",value:function(e){var t=DT(e,"aria-describedby").filter(function(e){return 0!=e.indexOf("cdk-describedby-message")});e.setAttribute("aria-describedby",t.join(" "))}},{key:"_addMessageReference",value:function(e,t){var n,i,r,o,a=TT.get(t);n=e,i="aria-describedby",r=a.messageElement.id,(o=DT(n,i)).some(function(e){return e.trim()==r.trim()})||(o.push(r.trim()),n.setAttribute(i,o.join(" "))),e.setAttribute("cdk-describedby-host",""),a.referenceCount++}},{key:"_removeMessageReference",value:function(e,t){var n,i,r,o,a=TT.get(t);a.referenceCount--,n=e,i="aria-describedby",r=a.messageElement.id,(o=DT(n,i).filter(function(e){return e!=r.trim()})).length?n.setAttribute(i,o.join(" ")):n.removeAttribute(i),e.removeAttribute("cdk-describedby-host")}},{key:"_isElementDescribedByMessage",value:function(e,t){var n=DT(e,"aria-describedby"),i=TT.get(t),r=i&&i.messageElement.id;return!!r&&-1!=n.indexOf(r)}},{key:"_canBeDescribed",value:function(e,t){if(!this._isElementNode(e))return!1;if(t&&"object"==typeof t)return!0;var n=null==t?"":(""+t).trim(),i=e.getAttribute("aria-label");return!(!n||i&&i.trim()===n)}},{key:"_isElementNode",value:function(e){return e.nodeType===this._document.ELEMENT_NODE}}]),e}()).\u0275fac=function(e){return new(e||OT)(Ri(od))},OT.\u0275prov=Re({factory:function(){return new OT(Ri(od))},token:OT,providedIn:"root"}),OT);function LT(e,t){return"string"==typeof e?"".concat(t||"","/").concat(e):e}function FT(e){e.id||(e.id="cdk-describedby-message-"+MT++)}var BT,VT=function(){function e(t){var n=this;A(this,e),this._items=t,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new W,this._typeaheadSubscription=O.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=function(e){return e.disabled},this._pressedLetters=[],this.tabOut=new W,this.change=new W,t instanceof Vu&&t.changes.subscribe(function(e){if(n._activeItem){var t=e.toArray().indexOf(n._activeItem);t>-1&&t!==n._activeItemIndex&&(n._activeItemIndex=t)}})}return m(e,[{key:"skipPredicate",value:function(e){return this._skipPredicateFn=e,this}},{key:"withWrap",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._wrap=e,this}},{key:"withVerticalOrientation",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._vertical=e,this}},{key:"withHorizontalOrientation",value:function(e){return this._horizontal=e,this}},{key:"withAllowedModifierKeys",value:function(e){return this._allowedModifierKeys=e,this}},{key:"withTypeAhead",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:200;return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(uw(function(t){return e._pressedLetters.push(t)}),iT(t),Ry(function(){return e._pressedLetters.length>0}),Y(function(){return e._pressedLetters.join("")})).subscribe(function(t){for(var n=e._getItemsArray(),i=1;i<n.length+1;i++){var r=(e._activeItemIndex+i)%n.length,o=n[r];if(!e._skipPredicateFn(o)&&0===o.getLabel().toUpperCase().trim().indexOf(t)){e.setActiveItem(r);break}}e._pressedLetters=[]}),this}},{key:"withHomeAndEnd",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._homeAndEnd=e,this}},{key:"setActiveItem",value:function(e){var t=this._activeItem;this.updateActiveItem(e),this._activeItem!==t&&this.change.next(this._activeItemIndex)}},{key:"onKeydown",value:function(e){var t=this,n=e.keyCode,i=["altKey","ctrlKey","metaKey","shiftKey"].every(function(n){return!e[n]||t._allowedModifierKeys.indexOf(n)>-1});switch(n){case 9:return void this.tabOut.next();case 40:if(this._vertical&&i){this.setNextItemActive();break}return;case 38:if(this._vertical&&i){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&i){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&i){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case 36:if(this._homeAndEnd&&i){this.setFirstItemActive();break}return;case 35:if(this._homeAndEnd&&i){this.setLastItemActive();break}return;default:return void((i||tT(e,"shiftKey"))&&(e.key&&1===e.key.length?this._letterKeyStream.next(e.key.toLocaleUpperCase()):(n>=65&&n<=90||n>=48&&n<=57)&&this._letterKeyStream.next(String.fromCharCode(n))))}this._pressedLetters=[],e.preventDefault()}},{key:"activeItemIndex",get:function(){return this._activeItemIndex}},{key:"activeItem",get:function(){return this._activeItem}},{key:"isTyping",value:function(){return this._pressedLetters.length>0}},{key:"setFirstItemActive",value:function(){this._setActiveItemByIndex(0,1)}},{key:"setLastItemActive",value:function(){this._setActiveItemByIndex(this._items.length-1,-1)}},{key:"setNextItemActive",value:function(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}},{key:"setPreviousItemActive",value:function(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}},{key:"updateActiveItem",value:function(e){var t=this._getItemsArray(),n="number"==typeof e?e:t.indexOf(e),i=t[n];this._activeItem=null==i?null:i,this._activeItemIndex=n}},{key:"_setActiveItemByDelta",value:function(e){this._wrap?this._setActiveInWrapMode(e):this._setActiveInDefaultMode(e)}},{key:"_setActiveInWrapMode",value:function(e){for(var t=this._getItemsArray(),n=1;n<=t.length;n++){var i=(this._activeItemIndex+e*n+t.length)%t.length;if(!this._skipPredicateFn(t[i]))return void this.setActiveItem(i)}}},{key:"_setActiveInDefaultMode",value:function(e){this._setActiveItemByIndex(this._activeItemIndex+e,e)}},{key:"_setActiveItemByIndex",value:function(e,t){var n=this._getItemsArray();if(n[e]){for(;this._skipPredicateFn(n[e]);)if(!n[e+=t])return;this.setActiveItem(e)}}},{key:"_getItemsArray",value:function(){return this._items instanceof Vu?this._items.toArray():this._items}}]),e}(),zT=function(e){r(n,e);var t=a(n);function n(){return A(this,n),t.apply(this,arguments)}return m(n,[{key:"setActiveItem",value:function(e){this.activeItem&&this.activeItem.setInactiveStyles(),i(c(n.prototype),"setActiveItem",this).call(this,e),this.activeItem&&this.activeItem.setActiveStyles()}}]),n}(VT),NT=function(e){r(n,e);var t=a(n);function n(){var e;return A(this,n),(e=t.apply(this,arguments))._origin="program",e}return m(n,[{key:"setFocusOrigin",value:function(e){return this._origin=e,this}},{key:"setActiveItem",value:function(e){i(c(n.prototype),"setActiveItem",this).call(this,e),this.activeItem&&this.activeItem.focus(this._origin)}}]),n}(VT),HT=((BT=function(){function e(t){A(this,e),this._platform=t}return m(e,[{key:"isDisabled",value:function(e){return e.hasAttribute("disabled")}},{key:"isVisible",value:function(e){return function(e){return!!(e.offsetWidth||e.offsetHeight||"function"==typeof e.getClientRects&&e.getClientRects().length)}(e)&&"visible"===getComputedStyle(e).visibility}},{key:"isTabbable",value:function(e){if(!this._platform.isBrowser)return!1;var t,n=function(e){try{return e.frameElement}catch(dQ){return null}}((t=e).ownerDocument&&t.ownerDocument.defaultView||window);if(n){if(-1===UT(n))return!1;if(!this.isVisible(n))return!1}var i=e.nodeName.toLowerCase(),r=UT(e);return e.hasAttribute("contenteditable")?-1!==r:"iframe"!==i&&"object"!==i&&!(this._platform.WEBKIT&&this._platform.IOS&&!function(e){var t=e.nodeName.toLowerCase(),n="input"===t&&e.type;return"text"===n||"password"===n||"select"===t||"textarea"===t}(e))&&("audio"===i?!!e.hasAttribute("controls")&&-1!==r:"video"===i?-1!==r&&(null!==r||this._platform.FIREFOX||e.hasAttribute("controls")):e.tabIndex>=0)}},{key:"isFocusable",value:function(e,t){return function(e){return!function(e){return function(e){return"input"==e.nodeName.toLowerCase()}(e)&&"hidden"==e.type}(e)&&(function(e){var t=e.nodeName.toLowerCase();return"input"===t||"select"===t||"button"===t||"textarea"===t}(e)||function(e){return function(e){return"a"==e.nodeName.toLowerCase()}(e)&&e.hasAttribute("href")}(e)||e.hasAttribute("contenteditable")||jT(e))}(e)&&!this.isDisabled(e)&&((null==t?void 0:t.ignoreVisibility)||this.isVisible(e))}}]),e}()).\u0275fac=function(e){return new(e||BT)(Ri(mT))},BT.\u0275prov=Re({factory:function(){return new BT(Ri(mT))},token:BT,providedIn:"root"}),BT);function jT(e){if(!e.hasAttribute("tabindex")||void 0===e.tabIndex)return!1;var t=e.getAttribute("tabindex");return"-32768"!=t&&!(!t||isNaN(parseInt(t,10)))}function UT(e){if(!jT(e))return null;var t=parseInt(e.getAttribute("tabindex")||"",10);return isNaN(t)?-1:t}var WT,GT=function(){function e(t,n,i,r){var o=this,a=arguments.length>4&&void 0!==arguments[4]&&arguments[4];A(this,e),this._element=t,this._checker=n,this._ngZone=i,this._document=r,this._hasAttached=!1,this.startAnchorListener=function(){return o.focusLastTabbableElement()},this.endAnchorListener=function(){return o.focusFirstTabbableElement()},this._enabled=!0,a||this.attachAnchors()}return m(e,[{key:"enabled",get:function(){return this._enabled},set:function(e){this._enabled=e,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(e,this._startAnchor),this._toggleAnchorTabIndex(e,this._endAnchor))}},{key:"destroy",value:function(){var e=this._startAnchor,t=this._endAnchor;e&&(e.removeEventListener("focus",this.startAnchorListener),e.parentNode&&e.parentNode.removeChild(e)),t&&(t.removeEventListener("focus",this.endAnchorListener),t.parentNode&&t.parentNode.removeChild(t)),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}},{key:"attachAnchors",value:function(){var e=this;return!!this._hasAttached||(this._ngZone.runOutsideAngular(function(){e._startAnchor||(e._startAnchor=e._createAnchor(),e._startAnchor.addEventListener("focus",e.startAnchorListener)),e._endAnchor||(e._endAnchor=e._createAnchor(),e._endAnchor.addEventListener("focus",e.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)}},{key:"focusInitialElementWhenReady",value:function(){var e=this;return new Promise(function(t){e._executeOnStable(function(){return t(e.focusInitialElement())})})}},{key:"focusFirstTabbableElementWhenReady",value:function(){var e=this;return new Promise(function(t){e._executeOnStable(function(){return t(e.focusFirstTabbableElement())})})}},{key:"focusLastTabbableElementWhenReady",value:function(){var e=this;return new Promise(function(t){e._executeOnStable(function(){return t(e.focusLastTabbableElement())})})}},{key:"_getRegionBoundary",value:function(e){for(var t=this._element.querySelectorAll("[cdk-focus-region-".concat(e,"], [cdkFocusRegion").concat(e,"], [cdk-focus-").concat(e,"]")),n=0;n<t.length;n++)t[n].hasAttribute("cdk-focus-"+e)?console.warn("Found use of deprecated attribute 'cdk-focus-".concat(e,"', use 'cdkFocusRegion").concat(e,"' instead. The deprecated attribute will be removed in 8.0.0."),t[n]):t[n].hasAttribute("cdk-focus-region-"+e)&&console.warn("Found use of deprecated attribute 'cdk-focus-region-".concat(e,"', use 'cdkFocusRegion").concat(e,"' instead. The deprecated attribute will be removed in 8.0.0."),t[n]);return"start"==e?t.length?t[0]:this._getFirstTabbableElement(this._element):t.length?t[t.length-1]:this._getLastTabbableElement(this._element)}},{key:"focusInitialElement",value:function(){var e=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(e){if(e.hasAttribute("cdk-focus-initial")&&console.warn("Found use of deprecated attribute 'cdk-focus-initial', use 'cdkFocusInitial' instead. The deprecated attribute will be removed in 8.0.0",e),!this._checker.isFocusable(e)){var t=this._getFirstTabbableElement(e);return null==t||t.focus(),!!t}return e.focus(),!0}return this.focusFirstTabbableElement()}},{key:"focusFirstTabbableElement",value:function(){var e=this._getRegionBoundary("start");return e&&e.focus(),!!e}},{key:"focusLastTabbableElement",value:function(){var e=this._getRegionBoundary("end");return e&&e.focus(),!!e}},{key:"hasAttached",value:function(){return this._hasAttached}},{key:"_getFirstTabbableElement",value:function(e){if(this._checker.isFocusable(e)&&this._checker.isTabbable(e))return e;for(var t=e.children||e.childNodes,n=0;n<t.length;n++){var i=t[n].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(t[n]):null;if(i)return i}return null}},{key:"_getLastTabbableElement",value:function(e){if(this._checker.isFocusable(e)&&this._checker.isTabbable(e))return e;for(var t=e.children||e.childNodes,n=t.length-1;n>=0;n--){var i=t[n].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(t[n]):null;if(i)return i}return null}},{key:"_createAnchor",value:function(){var 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}},{key:"_toggleAnchorTabIndex",value:function(e,t){e?t.setAttribute("tabindex","0"):t.removeAttribute("tabindex")}},{key:"toggleAnchors",value:function(e){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(e,this._startAnchor),this._toggleAnchorTabIndex(e,this._endAnchor))}},{key:"_executeOnStable",value:function(e){this._ngZone.isStable?e():this._ngZone.onStable.pipe(Hb(1)).subscribe(e)}}]),e}(),qT=((WT=function(){function e(t,n,i){A(this,e),this._checker=t,this._ngZone=n,this._document=i}return m(e,[{key:"create",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return new GT(e,this._checker,this._ngZone,this._document,t)}}]),e}()).\u0275fac=function(e){return new(e||WT)(Ri(HT),Ri(Ac),Ri(od))},WT.\u0275prov=Re({factory:function(){return new WT(Ri(HT),Ri(Ac),Ri(od))},token:WT,providedIn:"root"}),WT);"undefined"!=typeof Element&&Element;var YT,ZT=new mi("liveAnnouncerElement",{providedIn:"root",factory:function(){return null}}),QT=new mi("LIVE_ANNOUNCER_DEFAULT_OPTIONS"),XT=((YT=function(){function e(t,n,i,r){A(this,e),this._ngZone=n,this._defaultOptions=r,this._document=i,this._liveElement=t||this._createLiveElement()}return m(e,[{key:"announce",value:function(e){for(var t,n,i,r=this,o=this._defaultOptions,a=arguments.length,s=new Array(a>1?a-1:0),l=1;l<a;l++)s[l-1]=arguments[l];return 1===s.length&&"number"==typeof s[0]?i=s[0]:(n=(t=f(s,2))[0],i=t[1]),this.clear(),clearTimeout(this._previousTimeout),n||(n=o&&o.politeness?o.politeness:"polite"),null==i&&o&&(i=o.duration),this._liveElement.setAttribute("aria-live",n),this._ngZone.runOutsideAngular(function(){return new Promise(function(t){clearTimeout(r._previousTimeout),r._previousTimeout=setTimeout(function(){r._liveElement.textContent=e,t(),"number"==typeof i&&(r._previousTimeout=setTimeout(function(){return r.clear()},i))},100)})})}},{key:"clear",value:function(){this._liveElement&&(this._liveElement.textContent="")}},{key:"ngOnDestroy",value:function(){clearTimeout(this._previousTimeout),this._liveElement&&this._liveElement.parentNode&&(this._liveElement.parentNode.removeChild(this._liveElement),this._liveElement=null)}},{key:"_createLiveElement",value:function(){for(var e=this._document.getElementsByClassName("cdk-live-announcer-element"),t=this._document.createElement("div"),n=0;n<e.length;n++)e[n].parentNode.removeChild(e[n]);return t.classList.add("cdk-live-announcer-element"),t.classList.add("cdk-visually-hidden"),t.setAttribute("aria-atomic","true"),t.setAttribute("aria-live","polite"),this._document.body.appendChild(t),t}}]),e}()).\u0275fac=function(e){return new(e||YT)(Ri(ZT,8),Ri(Ac),Ri(od),Ri(QT,8))},YT.\u0275prov=Re({factory:function(){return new YT(Ri(ZT,8),Ri(Ac),Ri(od),Ri(QT,8))},token:YT,providedIn:"root"}),YT);function KT(e){return 0===e.buttons}function JT(e){var t=e.touches&&e.touches[0]||e.changedTouches&&e.changedTouches[0];return!(!t||-1!==t.identifier||null!=t.radiusX&&1!==t.radiusX||null!=t.radiusY&&1!==t.radiusY)}var $T,eI=new mi("cdk-focus-monitor-default-options"),tI=bT({passive:!0,capture:!0}),nI=(($T=function(){function e(t,n,i,r){var o=this;A(this,e),this._ngZone=t,this._platform=n,this._origin=null,this._windowFocused=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._documentKeydownListener=function(){o._lastTouchTarget=null,o._setOriginForCurrentEventQueue("keyboard")},this._documentMousedownListener=function(e){if(!o._lastTouchTarget){var t=KT(e)?"keyboard":"mouse";o._setOriginForCurrentEventQueue(t)}},this._documentTouchstartListener=function(e){JT(e)?o._lastTouchTarget||o._setOriginForCurrentEventQueue("keyboard"):(null!=o._touchTimeoutId&&clearTimeout(o._touchTimeoutId),o._lastTouchTarget=iI(e),o._touchTimeoutId=setTimeout(function(){return o._lastTouchTarget=null},650))},this._windowFocusListener=function(){o._windowFocused=!0,o._windowFocusTimeoutId=setTimeout(function(){return o._windowFocused=!1})},this._rootNodeFocusAndBlurListener=function(e){for(var t=iI(e),n="focus"===e.type?o._onFocus:o._onBlur,i=t;i;i=i.parentElement)n.call(o,e,i)},this._document=i,this._detectionMode=(null==r?void 0:r.detectionMode)||0}return m(e,[{key:"monitor",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=hT(e);if(!this._platform.isBrowser||1!==n.nodeType)return Ty(null);var i=wT(n)||this._getDocument(),r=this._elementInfo.get(n);if(r)return t&&(r.checkChildren=!0),r.subject;var o={checkChildren:t,subject:new W,rootNode:i};return this._elementInfo.set(n,o),this._registerGlobalListeners(o),o.subject}},{key:"stopMonitoring",value:function(e){var t=hT(e),n=this._elementInfo.get(t);n&&(n.subject.complete(),this._setClasses(t),this._elementInfo.delete(t),this._removeGlobalListeners(n))}},{key:"focusVia",value:function(e,t,n){var i=this,r=hT(e);r===this._getDocument().activeElement?this._getClosestElementsInfo(r).forEach(function(e){var n=f(e,2),r=n[0],o=n[1];return i._originChanged(r,t,o)}):(this._setOriginForCurrentEventQueue(t),"function"==typeof r.focus&&r.focus(n))}},{key:"ngOnDestroy",value:function(){var e=this;this._elementInfo.forEach(function(t,n){return e.stopMonitoring(n)})}},{key:"_getDocument",value:function(){return this._document||document}},{key:"_getWindow",value:function(){return this._getDocument().defaultView||window}},{key:"_toggleClass",value:function(e,t,n){n?e.classList.add(t):e.classList.remove(t)}},{key:"_getFocusOrigin",value:function(e){return this._origin?this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:this._wasCausedByTouch(e)?"touch":"program"}},{key:"_setClasses",value:function(e,t){this._toggleClass(e,"cdk-focused",!!t),this._toggleClass(e,"cdk-touch-focused","touch"===t),this._toggleClass(e,"cdk-keyboard-focused","keyboard"===t),this._toggleClass(e,"cdk-mouse-focused","mouse"===t),this._toggleClass(e,"cdk-program-focused","program"===t)}},{key:"_setOriginForCurrentEventQueue",value:function(e){var t=this;this._ngZone.runOutsideAngular(function(){t._origin=e,0===t._detectionMode&&(t._originTimeoutId=setTimeout(function(){return t._origin=null},1))})}},{key:"_wasCausedByTouch",value:function(e){var t=iI(e);return this._lastTouchTarget instanceof Node&&t instanceof Node&&(t===this._lastTouchTarget||t.contains(this._lastTouchTarget))}},{key:"_onFocus",value:function(e,t){var n=this._elementInfo.get(t);n&&(n.checkChildren||t===iI(e))&&this._originChanged(t,this._getFocusOrigin(e),n)}},{key:"_onBlur",value:function(e,t){var n=this._elementInfo.get(t);!n||n.checkChildren&&e.relatedTarget instanceof Node&&t.contains(e.relatedTarget)||(this._setClasses(t),this._emitOrigin(n.subject,null))}},{key:"_emitOrigin",value:function(e,t){this._ngZone.run(function(){return e.next(t)})}},{key:"_registerGlobalListeners",value:function(e){var t=this;if(this._platform.isBrowser){var n=e.rootNode,i=this._rootNodeFocusListenerCount.get(n)||0;i||this._ngZone.runOutsideAngular(function(){n.addEventListener("focus",t._rootNodeFocusAndBlurListener,tI),n.addEventListener("blur",t._rootNodeFocusAndBlurListener,tI)}),this._rootNodeFocusListenerCount.set(n,i+1),1==++this._monitoredElementCount&&this._ngZone.runOutsideAngular(function(){var e=t._getDocument(),n=t._getWindow();e.addEventListener("keydown",t._documentKeydownListener,tI),e.addEventListener("mousedown",t._documentMousedownListener,tI),e.addEventListener("touchstart",t._documentTouchstartListener,tI),n.addEventListener("focus",t._windowFocusListener)})}}},{key:"_removeGlobalListeners",value:function(e){var t=e.rootNode;if(this._rootNodeFocusListenerCount.has(t)){var n=this._rootNodeFocusListenerCount.get(t);n>1?this._rootNodeFocusListenerCount.set(t,n-1):(t.removeEventListener("focus",this._rootNodeFocusAndBlurListener,tI),t.removeEventListener("blur",this._rootNodeFocusAndBlurListener,tI),this._rootNodeFocusListenerCount.delete(t))}if(!--this._monitoredElementCount){var i=this._getDocument(),r=this._getWindow();i.removeEventListener("keydown",this._documentKeydownListener,tI),i.removeEventListener("mousedown",this._documentMousedownListener,tI),i.removeEventListener("touchstart",this._documentTouchstartListener,tI),r.removeEventListener("focus",this._windowFocusListener),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._touchTimeoutId),clearTimeout(this._originTimeoutId)}}},{key:"_originChanged",value:function(e,t,n){this._setClasses(e,t),this._emitOrigin(n.subject,t),this._lastFocusOrigin=t}},{key:"_getClosestElementsInfo",value:function(e){var t=[];return this._elementInfo.forEach(function(n,i){(i===e||n.checkChildren&&i.contains(e))&&t.push([i,n])}),t}}]),e}()).\u0275fac=function(e){return new(e||$T)(Ri(Ac),Ri(mT),Ri(od,8),Ri(eI,8))},$T.\u0275prov=Re({factory:function(){return new $T(Ri(Ac),Ri(mT),Ri(od,8),Ri(eI,8))},token:$T,providedIn:"root"}),$T);function iI(e){return e.composedPath?e.composedPath()[0]:e.target}var rI,oI,aI,sI,lI=((oI=function(){function e(t,n){A(this,e),this._platform=t,this._document=n}return m(e,[{key:"getHighContrastMode",value:function(){if(!this._platform.isBrowser)return 0;var e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);var t=this._document.defaultView||window,n=t&&t.getComputedStyle?t.getComputedStyle(e):null,i=(n&&n.backgroundColor||"").replace(/ /g,"");switch(this._document.body.removeChild(e),i){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}},{key:"_applyBodyHighContrastModeCssClasses",value:function(){if(this._platform.isBrowser&&this._document.body){var e=this._document.body.classList;e.remove("cdk-high-contrast-active"),e.remove("cdk-high-contrast-black-on-white"),e.remove("cdk-high-contrast-white-on-black");var t=this.getHighContrastMode();1===t?(e.add("cdk-high-contrast-active"),e.add("cdk-high-contrast-black-on-white")):2===t&&(e.add("cdk-high-contrast-active"),e.add("cdk-high-contrast-white-on-black"))}}}]),e}()).\u0275fac=function(e){return new(e||oI)(Ri(mT),Ri(od))},oI.\u0275prov=Re({factory:function(){return new oI(Ri(mT),Ri(od))},token:oI,providedIn:"root"}),oI),uI=((rI=function e(t){A(this,e),t._applyBodyHighContrastModeCssClasses()}).\u0275fac=function(e){return new(e||rI)(Ri(lI))},rI.\u0275mod=mt({type:rI}),rI.\u0275inj=Fe({imports:[[yT,ET]]}),rI),cI=new mi("cdk-dir-doc",{providedIn:"root",factory:function(){return Li(od)}}),dI=((sI=function(){function e(t){if(A(this,e),this.value="ltr",this.change=new Fu,t){var n=t.documentElement?t.documentElement.dir:null,i=(t.body?t.body.dir:null)||n;this.value="ltr"===i||"rtl"===i?i:"ltr"}}return m(e,[{key:"ngOnDestroy",value:function(){this.change.complete()}}]),e}()).\u0275fac=function(e){return new(e||sI)(Ri(cI,8))},sI.\u0275prov=Re({factory:function(){return new sI(Ri(cI,8))},token:sI,providedIn:"root"}),sI),hI=((aI=function e(){A(this,e)}).\u0275fac=function(e){return new(e||aI)},aI.\u0275mod=mt({type:aI}),aI.\u0275inj=Fe({}),aI),fI=new Ml("11.2.5");function pI(e,t){if(1&e&&us(0,"mat-pseudo-checkbox",4),2&e){var n=ks();os("state",n.selected?"checked":"unchecked")("disabled",n.disabled)}}function gI(e,t){if(1&e&&(ss(0,"span",5),Qs(1),ls()),2&e){var n=ks();xo(1),Ks("(",n.group.label,")")}}var vI,mI=["*"],yI=function(){var e=function e(){A(this,e)};return 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)",e}(),bI=function(){var e=function e(){A(this,e)};return e.COMPLEX="375ms",e.ENTERING="225ms",e.EXITING="195ms",e}(),wI=new Ml("11.2.5"),_I=new mi("mat-sanity-checks",{providedIn:"root",factory:function(){return!0}}),kI=((vI=function(){function e(t,n,i){A(this,e),this._hasDoneGlobalChecks=!1,this._document=i,t._applyBodyHighContrastModeCssClasses(),this._sanityChecks=n,this._hasDoneGlobalChecks||(this._checkDoctypeIsDefined(),this._checkThemeIsPresent(),this._checkCdkVersionMatch(),this._hasDoneGlobalChecks=!0)}return m(e,[{key:"_getWindow",value:function(){var e=this._document.defaultView||window;return"object"==typeof e&&e?e:null}},{key:"_checksAreEnabled",value:function(){return Bc()&&!this._isTestEnv()}},{key:"_isTestEnv",value:function(){var e=this._getWindow();return e&&(e.__karma__||e.jasmine)}},{key:"_checkDoctypeIsDefined",value:function(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.doctype)&&!this._document.doctype&&console.warn("Current document does not have a doctype. This may cause some Angular Material components not to behave as expected.")}},{key:"_checkThemeIsPresent",value:function(){if(this._checksAreEnabled()&&!1!==this._sanityChecks&&this._sanityChecks.theme&&this._document.body&&"function"==typeof getComputedStyle){var e=this._document.createElement("div");e.classList.add("mat-theme-loaded-marker"),this._document.body.appendChild(e);var t=getComputedStyle(e);t&&"none"!==t.display&&console.warn("Could not find Angular Material core theme. Most Material components may not work as expected. For more info refer to the theming guide: https://material.angular.io/guide/theming"),this._document.body.removeChild(e)}}},{key:"_checkCdkVersionMatch",value:function(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.version)&&wI.full!==fI.full&&console.warn("The Angular Material version ("+wI.full+") does not match the Angular CDK version ("+fI.full+").\nPlease ensure the versions of these two packages exactly match.")}}]),e}()).\u0275fac=function(e){return new(e||vI)(Ri(lI),Ri(_I,8),Ri(od))},vI.\u0275mod=mt({type:vI}),vI.\u0275inj=Fe({imports:[[hI],hI]}),vI);function xI(e){return function(e){r(n,e);var t=a(n);function n(){var e;A(this,n);for(var i=arguments.length,r=new Array(i),o=0;o<i;o++)r[o]=arguments[o];return(e=t.call.apply(t,[this].concat(r)))._disabled=!1,e}return m(n,[{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=lT(e)}}]),n}(e)}function AI(e,t){return function(e){r(i,e);var n=a(i);function i(){var e;A(this,i);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return(e=n.call.apply(n,[this].concat(o))).defaultColor=t,e.color=t,e}return m(i,[{key:"color",get:function(){return this._color},set:function(e){var t=e||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)}}]),i}(e)}function CI(e){return function(e){r(n,e);var t=a(n);function n(){var e;A(this,n);for(var i=arguments.length,r=new Array(i),o=0;o<i;o++)r[o]=arguments[o];return(e=t.call.apply(t,[this].concat(r)))._disableRipple=!1,e}return m(n,[{key:"disableRipple",get:function(){return this._disableRipple},set:function(e){this._disableRipple=lT(e)}}]),n}(e)}function SI(e){return function(e){r(n,e);var t=a(n);function n(){var e;A(this,n);for(var i=arguments.length,r=new Array(i),o=0;o<i;o++)r[o]=arguments[o];return(e=t.call.apply(t,[this].concat(r)))._isInitialized=!1,e._pendingSubscribers=[],e.initialized=new V(function(t){e._isInitialized?e._notifySubscriber(t):e._pendingSubscribers.push(t)}),e}return m(n,[{key:"_markInitialized",value:function(){this._isInitialized=!0,this._pendingSubscribers.forEach(this._notifySubscriber),this._pendingSubscribers=null}},{key:"_notifySubscriber",value:function(e){e.next(),e.complete()}}]),n}(e)}try{"undefined"!=typeof Intl}catch(dQ){!1}var PI,EI,DI,OI,MI,TI,II,RI,LI,FI=((EI=function(){function e(){A(this,e)}return m(e,[{key:"isErrorState",value:function(e,t){return!!(e&&e.invalid&&(e.touched||t&&t.submitted))}}]),e}()).\u0275fac=function(e){return new(e||EI)},EI.\u0275prov=Re({factory:function(){return new EI},token:EI,providedIn:"root"}),EI),BI=((PI=function e(){A(this,e)}).\u0275fac=function(e){return new(e||PI)},PI.\u0275mod=mt({type:PI}),PI.\u0275inj=Fe({imports:[[kI],kI]}),PI),VI=function(){function e(t,n,i){A(this,e),this._renderer=t,this.element=n,this.config=i,this.state=3}return m(e,[{key:"fadeOut",value:function(){this._renderer.fadeOutRipple(this)}}]),e}(),zI={enterDuration:450,exitDuration:400},NI=bT({passive:!0}),HI=["mousedown","touchstart"],jI=["mouseup","mouseleave","touchend","touchcancel"],UI=function(){function e(t,n,i,r){A(this,e),this._target=t,this._ngZone=n,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,r.isBrowser&&(this._containerElement=hT(i))}return m(e,[{key:"fadeInRipple",value:function(e,t){var n=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),o=Object.assign(Object.assign({},zI),i.animation);i.centered&&(e=r.left+r.width/2,t=r.top+r.height/2);var a=i.radius||function(e,t,n){var i=Math.max(Math.abs(e-n.left),Math.abs(e-n.right)),r=Math.max(Math.abs(t-n.top),Math.abs(t-n.bottom));return Math.sqrt(i*i+r*r)}(e,t,r),s=e-r.left,l=t-r.top,u=o.enterDuration,c=document.createElement("div");c.classList.add("mat-ripple-element"),c.style.left=s-a+"px",c.style.top=l-a+"px",c.style.height=2*a+"px",c.style.width=2*a+"px",null!=i.color&&(c.style.backgroundColor=i.color),c.style.transitionDuration=u+"ms",this._containerElement.appendChild(c),window.getComputedStyle(c).getPropertyValue("opacity"),c.style.transform="scale(1)";var d=new VI(this,c,i);return d.state=0,this._activeRipples.add(d),i.persistent||(this._mostRecentTransientRipple=d),this._runTimeoutOutsideZone(function(){var e=d===n._mostRecentTransientRipple;d.state=1,i.persistent||e&&n._isPointerDown||d.fadeOut()},u),d}},{key:"fadeOutRipple",value:function(e){var t=this._activeRipples.delete(e);if(e===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),t){var n=e.element,i=Object.assign(Object.assign({},zI),e.config.animation);n.style.transitionDuration=i.exitDuration+"ms",n.style.opacity="0",e.state=2,this._runTimeoutOutsideZone(function(){e.state=3,n.parentNode.removeChild(n)},i.exitDuration)}}},{key:"fadeOutAll",value:function(){this._activeRipples.forEach(function(e){return e.fadeOut()})}},{key:"setupTriggerEvents",value:function(e){var t=hT(e);t&&t!==this._triggerElement&&(this._removeTriggerEvents(),this._triggerElement=t,this._registerEvents(HI))}},{key:"handleEvent",value:function(e){"mousedown"===e.type?this._onMousedown(e):"touchstart"===e.type?this._onTouchStart(e):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(jI),this._pointerUpEventsRegistered=!0)}},{key:"_onMousedown",value:function(e){var t=KT(e),n=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+800;this._target.rippleDisabled||t||n||(this._isPointerDown=!0,this.fadeInRipple(e.clientX,e.clientY,this._target.rippleConfig))}},{key:"_onTouchStart",value:function(e){if(!this._target.rippleDisabled&&!JT(e)){this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0;for(var t=e.changedTouches,n=0;n<t.length;n++)this.fadeInRipple(t[n].clientX,t[n].clientY,this._target.rippleConfig)}}},{key:"_onPointerUp",value:function(){this._isPointerDown&&(this._isPointerDown=!1,this._activeRipples.forEach(function(e){!e.config.persistent&&(1===e.state||e.config.terminateOnPointerUp&&0===e.state)&&e.fadeOut()}))}},{key:"_runTimeoutOutsideZone",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this._ngZone.runOutsideAngular(function(){return setTimeout(e,t)})}},{key:"_registerEvents",value:function(e){var t=this;this._ngZone.runOutsideAngular(function(){e.forEach(function(e){t._triggerElement.addEventListener(e,t,NI)})})}},{key:"_removeTriggerEvents",value:function(){var e=this;this._triggerElement&&(HI.forEach(function(t){e._triggerElement.removeEventListener(t,e,NI)}),this._pointerUpEventsRegistered&&jI.forEach(function(t){e._triggerElement.removeEventListener(t,e,NI)}))}}]),e}(),WI=new mi("mat-ripple-global-options"),GI=((TI=function(){function e(t,n,i,r,o){A(this,e),this._elementRef=t,this._animationMode=o,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=r||{},this._rippleRenderer=new UI(this,n,t,i)}return m(e,[{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=e,this._setupTriggerEventsIfEnabled()}},{key:"trigger",get:function(){return this._trigger||this._elementRef.nativeElement},set:function(e){this._trigger=e,this._setupTriggerEventsIfEnabled()}},{key:"ngOnInit",value:function(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}},{key:"ngOnDestroy",value:function(){this._rippleRenderer._removeTriggerEvents()}},{key:"fadeOutAll",value:function(){this._rippleRenderer.fadeOutAll()}},{key:"rippleConfig",get:function(){return{centered:this.centered,radius:this.radius,color:this.color,animation:Object.assign(Object.assign(Object.assign({},this._globalOptions.animation),"NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}},{key:"rippleDisabled",get:function(){return this.disabled||!!this._globalOptions.disabled}},{key:"_setupTriggerEventsIfEnabled",value:function(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}},{key:"launch",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0;return"number"==typeof e?this._rippleRenderer.fadeInRipple(e,t,Object.assign(Object.assign({},this.rippleConfig),n)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),e))}}]),e}()).\u0275fac=function(e){return new(e||TI)(rs(Cl),rs(Ac),rs(mT),rs(WI,8),rs(_v,8))},TI.\u0275dir=bt({type:TI,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(e,t){2&e&&Fs("mat-ripple-unbounded",t.unbounded)},inputs:{radius:["matRippleRadius","radius"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"],color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],animation:["matRippleAnimation","animation"]},exportAs:["matRipple"]}),TI),qI=((MI=function e(){A(this,e)}).\u0275fac=function(e){return new(e||MI)},MI.\u0275mod=mt({type:MI}),MI.\u0275inj=Fe({imports:[[kI,yT],kI]}),MI),YI=((OI=function e(t){A(this,e),this._animationMode=t,this.state="unchecked",this.disabled=!1}).\u0275fac=function(e){return new(e||OI)(rs(_v,8))},OI.\u0275cmp=ft({type:OI,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(e,t){2&e&&Fs("mat-pseudo-checkbox-indeterminate","indeterminate"===t.state)("mat-pseudo-checkbox-checked","checked"===t.state)("mat-pseudo-checkbox-disabled",t.disabled)("_mat-animation-noopable","NoopAnimations"===t._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(e,t){},styles:['.mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:transparent}._mat-animation-noopable.mat-pseudo-checkbox{transition:none;animation:none}._mat-animation-noopable.mat-pseudo-checkbox::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}\n'],encapsulation:2,changeDetection:0}),OI),ZI=((DI=function e(){A(this,e)}).\u0275fac=function(e){return new(e||DI)},DI.\u0275mod=mt({type:DI}),DI.\u0275inj=Fe({imports:[[kI]]}),DI),QI=new mi("MAT_OPTION_PARENT_COMPONENT"),XI=xI(function e(){A(this,e)}),KI=0,JI=((II=function(e){r(n,e);var t=a(n);function n(e){var i,r;return A(this,n),(i=t.call(this))._labelId="mat-optgroup-label-"+KI++,i._inert=null!==(r=null==e?void 0:e.inertGroups)&&void 0!==r&&r,i}return n}(XI)).\u0275fac=function(e){return new(e||II)(rs(QI,8))},II.\u0275dir=bt({type:II,inputs:{label:"label"},features:[Va]}),II),$I=new mi("MatOptgroup"),eR=0,tR=function e(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];A(this,e),this.source=t,this.isUserInput=n},nR=((LI=function(){function e(t,n,i,r){A(this,e),this._element=t,this._changeDetectorRef=n,this._parent=i,this.group=r,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+eR++,this.onSelectionChange=new Fu,this._stateChanges=new W}return m(e,[{key:"multiple",get:function(){return this._parent&&this._parent.multiple}},{key:"selected",get:function(){return this._selected}},{key:"disabled",get:function(){return this.group&&this.group.disabled||this._disabled},set:function(e){this._disabled=lT(e)}},{key:"disableRipple",get:function(){return this._parent&&this._parent.disableRipple}},{key:"active",get:function(){return this._active}},{key:"viewValue",get:function(){return(this._getHostElement().textContent||"").trim()}},{key:"select",value:function(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}},{key:"deselect",value:function(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}},{key:"focus",value:function(e,t){var n=this._getHostElement();"function"==typeof n.focus&&n.focus(t)}},{key:"setActiveStyles",value:function(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}},{key:"setInactiveStyles",value:function(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}},{key:"getLabel",value:function(){return this.viewValue}},{key:"_handleKeydown",value:function(e){13!==e.keyCode&&32!==e.keyCode||tT(e)||(this._selectViaInteraction(),e.preventDefault())}},{key:"_selectViaInteraction",value:function(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}},{key:"_getAriaSelected",value:function(){return this.selected||!this.multiple&&null}},{key:"_getTabIndex",value:function(){return this.disabled?"-1":"0"}},{key:"_getHostElement",value:function(){return this._element.nativeElement}},{key:"ngAfterViewChecked",value:function(){if(this._selected){var e=this.viewValue;e!==this._mostRecentViewValue&&(this._mostRecentViewValue=e,this._stateChanges.next())}}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}},{key:"_emitSelectionChangeEvent",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.onSelectionChange.emit(new tR(this,e))}}]),e}()).\u0275fac=function(e){return new(e||LI)(rs(Cl),rs(Kl),rs(void 0),rs(JI))},LI.\u0275dir=bt({type:LI,inputs:{id:"id",disabled:"disabled",value:"value"},outputs:{onSelectionChange:"onSelectionChange"}}),LI),iR=((RI=function(e){r(n,e);var t=a(n);function n(e,i,r,o){return A(this,n),t.call(this,e,i,r,o)}return n}(nR)).\u0275fac=function(e){return new(e||RI)(rs(Cl),rs(Kl),rs(QI,8),rs($I,8))},RI.\u0275cmp=ft({type:RI,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(e,t){1&e&&ms("click",function(){return t._selectViaInteraction()})("keydown",function(e){return t._handleKeydown(e)}),2&e&&(nl("id",t.id),$a("tabindex",t._getTabIndex())("aria-selected",t._getAriaSelected())("aria-disabled",t.disabled.toString()),Fs("mat-selected",t.selected)("mat-option-multiple",t.multiple)("mat-active",t.active)("mat-option-disabled",t.disabled))},exportAs:["matOption"],features:[Va],ngContentSelectors:mI,decls:5,vars:4,consts:[["class","mat-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mat-option-text"],["class","cdk-visually-hidden",4,"ngIf"],["mat-ripple","",1,"mat-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-option-pseudo-checkbox",3,"state","disabled"],[1,"cdk-visually-hidden"]],template:function(e,t){1&e&&(As(),ns(0,pI,1,2,"mat-pseudo-checkbox",0),ss(1,"span",1),Cs(2),ls(),ns(3,gI,2,1,"span",2),us(4,"div",3)),2&e&&(os("ngIf",t.multiple),xo(3),os("ngIf",t.group&&t.group._inert),xo(1),os("matRippleTrigger",t._getHostElement())("matRippleDisabled",t.disabled||t.disableRipple))},directives:[mh,GI,YI],styles:[".mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:transparent}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.cdk-high-contrast-active .mat-option{margin:0 1px}.cdk-high-contrast-active .mat-option.mat-active{border:solid 1px currentColor;margin:0}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}\n"],encapsulation:2,changeDetection:0}),RI);function rR(e,t,n){if(n.length){for(var i=t.toArray(),r=n.toArray(),o=0,a=0;a<e+1;a++)i[a].group&&i[a].group===r[o]&&o++;return o}return 0}var oR,aR=((oR=function e(){A(this,e)}).\u0275fac=function(e){return new(e||oR)},oR.\u0275mod=mt({type:oR}),oR.\u0275inj=Fe({imports:[[qI,Zh,kI,ZI]]}),oR),sR=function(e){r(n,e);var t=a(n);function n(e,i){var r;return A(this,n),(r=t.call(this,e,i)).scheduler=e,r.work=i,r}return m(n,[{key:"requestAsyncId",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null!==r&&r>0?i(c(n.prototype),"requestAsyncId",this).call(this,e,t,r):(e.actions.push(this),e.scheduled||(e.scheduled=requestAnimationFrame(function(){return e.flush(null)})))}},{key:"recycleAsyncId",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==r&&r>0||null===r&&this.delay>0)return i(c(n.prototype),"recycleAsyncId",this).call(this,e,t,r);0===e.actions.length&&(cancelAnimationFrame(t),e.scheduled=void 0)}}]),n}(wP),lR=new(function(e){r(n,e);var t=a(n);function n(){return A(this,n),t.apply(this,arguments)}return m(n,[{key:"flush",value:function(e){this.active=!0,this.scheduled=void 0;var t,n=this.actions,i=-1,r=n.length;e=e||n.shift();do{if(t=e.execute(e.state,e.delay))break}while(++i<r&&(e=n.shift()));if(this.active=!1,t){for(;++i<r&&(e=n.shift());)e.unsubscribe();throw t}}}]),n}(xP))(sR),uR=1,cR=Promise.resolve(),dR={};function hR(e){return e in dR&&(delete dR[e],!0)}var fR=function(e){var t=uR++;return dR[t]=!0,cR.then(function(){return hR(t)&&e()}),t},pR=function(e){hR(e)},gR=function(e){r(n,e);var t=a(n);function n(e,i){var r;return A(this,n),(r=t.call(this,e,i)).scheduler=e,r.work=i,r}return m(n,[{key:"requestAsyncId",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null!==r&&r>0?i(c(n.prototype),"requestAsyncId",this).call(this,e,t,r):(e.actions.push(this),e.scheduled||(e.scheduled=fR(e.flush.bind(e,null))))}},{key:"recycleAsyncId",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==r&&r>0||null===r&&this.delay>0)return i(c(n.prototype),"recycleAsyncId",this).call(this,e,t,r);0===e.actions.length&&(pR(t),e.scheduled=void 0)}}]),n}(wP),vR=new(function(e){r(n,e);var t=a(n);function n(){return A(this,n),t.apply(this,arguments)}return m(n,[{key:"flush",value:function(e){this.active=!0,this.scheduled=void 0;var t,n=this.actions,i=-1,r=n.length;e=e||n.shift();do{if(t=e.execute(e.state,e.delay))break}while(++i<r&&(e=n.shift()));if(this.active=!1,t){for(;++i<r&&(e=n.shift());)e.unsubscribe();throw t}}}]),n}(xP))(gR),mR=function(){function e(t){A(this,e),this.durationSelector=t}return m(e,[{key:"call",value:function(e,t){return t.subscribe(new yR(e,this.durationSelector))}}]),e}(),yR=function(e){r(n,e);var t=a(n);function n(e,i){var r;return A(this,n),(r=t.call(this,e)).durationSelector=i,r.hasValue=!1,r}return m(n,[{key:"_next",value:function(e){if(this.value=e,this.hasValue=!0,!this.throttled){var t;try{t=(0,this.durationSelector)(e)}catch(i){return this.destination.error(i)}var n=ae(t,new re(this));!n||n.closed?this.clearThrottle():this.add(this.throttled=n)}}},{key:"clearThrottle",value:function(){var e=this.value,t=this.hasValue,n=this.throttled;n&&(this.remove(n),this.throttled=void 0,n.unsubscribe()),t&&(this.value=void 0,this.hasValue=!1,this.destination.next(e))}},{key:"notifyNext",value:function(){this.clearThrottle()}},{key:"notifyComplete",value:function(){this.clearThrottle()}}]),n}(oe);function bR(e){return!S(e)&&e-parseFloat(e)+1>=0}function wR(e){var t=e.index,n=e.period,i=e.subscriber;if(i.next(t),!i.closed){if(-1===n)return i.complete();e.index=t+1,this.schedule(e,n)}}function _R(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:nT;return t=function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,i=-1;return bR(t)?i=Number(t)<1?1:Number(t):q(t)&&(n=t),q(n)||(n=nT),new V(function(t){var r=bR(e)?e:+e-n.now();return n.schedule(wR,r,{index:0,period:i,subscriber:t})})}(e,n)},function(e){return e.lift(new mR(t))}}function kR(e){return function(t){return t.lift(new PR(e))}}var xR,AR,CR,SR,PR=function(){function e(t){A(this,e),this.notifier=t}return m(e,[{key:"call",value:function(e,t){var n=new ER(e),i=ae(this.notifier,new re(n));return i&&!n.seenValue?(n.add(i),t.subscribe(n)):n}}]),e}(),ER=function(e){r(n,e);var t=a(n);function n(e){var i;return A(this,n),(i=t.call(this,e)).seenValue=!1,i}return m(n,[{key:"notifyNext",value:function(){this.seenValue=!0,this.complete()}},{key:"notifyComplete",value:function(){}}]),n}(oe),DR=function(){function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]&&arguments[0],i=arguments.length>1?arguments[1]:void 0,r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];A(this,e),this._multiple=n,this._emitChanges=r,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new W,i&&i.length&&(n?i.forEach(function(e){return t._markSelected(e)}):this._markSelected(i[0]),this._selectedToEmit.length=0)}return m(e,[{key:"selected",get:function(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}},{key:"select",value:function(){for(var e=this,t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];this._verifyValueAssignment(n),n.forEach(function(t){return e._markSelected(t)}),this._emitChangeEvent()}},{key:"deselect",value:function(){for(var e=this,t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];this._verifyValueAssignment(n),n.forEach(function(t){return e._unmarkSelected(t)}),this._emitChangeEvent()}},{key:"toggle",value:function(e){this.isSelected(e)?this.deselect(e):this.select(e)}},{key:"clear",value:function(){this._unmarkAll(),this._emitChangeEvent()}},{key:"isSelected",value:function(e){return this._selection.has(e)}},{key:"isEmpty",value:function(){return 0===this._selection.size}},{key:"hasValue",value:function(){return!this.isEmpty()}},{key:"sort",value:function(e){this._multiple&&this.selected&&this._selected.sort(e)}},{key:"isMultipleSelection",value:function(){return this._multiple}},{key:"_emitChangeEvent",value:function(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}},{key:"_markSelected",value:function(e){this.isSelected(e)||(this._multiple||this._unmarkAll(),this._selection.add(e),this._emitChanges&&this._selectedToEmit.push(e))}},{key:"_unmarkSelected",value:function(e){this.isSelected(e)&&(this._selection.delete(e),this._emitChanges&&this._deselectedToEmit.push(e))}},{key:"_unmarkAll",value:function(){var e=this;this.isEmpty()||this._selection.forEach(function(t){return e._unmarkSelected(t)})}},{key:"_verifyValueAssignment",value:function(e){}}]),e}(),OR=((SR=function(){function e(t,n,i){A(this,e),this._ngZone=t,this._platform=n,this._scrolled=new W,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=i}return m(e,[{key:"register",value:function(e){var t=this;this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe(function(){return t._scrolled.next(e)}))}},{key:"deregister",value:function(e){var t=this.scrollContainers.get(e);t&&(t.unsubscribe(),this.scrollContainers.delete(e))}},{key:"scrolled",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:20;return this._platform.isBrowser?new V(function(n){e._globalSubscription||e._addGlobalListener();var i=t>0?e._scrolled.pipe(_R(t)).subscribe(n):e._scrolled.subscribe(n);return e._scrolledCount++,function(){i.unsubscribe(),e._scrolledCount--,e._scrolledCount||e._removeGlobalListener()}}):Ty()}},{key:"ngOnDestroy",value:function(){var e=this;this._removeGlobalListener(),this.scrollContainers.forEach(function(t,n){return e.deregister(n)}),this._scrolled.complete()}},{key:"ancestorScrolled",value:function(e,t){var n=this.getAncestorScrollContainers(e);return this.scrolled(t).pipe(Ry(function(e){return!e||n.indexOf(e)>-1}))}},{key:"getAncestorScrollContainers",value:function(e){var t=this,n=[];return this.scrollContainers.forEach(function(i,r){t._scrollableContainsElement(r,e)&&n.push(r)}),n}},{key:"_getWindow",value:function(){return this._document.defaultView||window}},{key:"_scrollableContainsElement",value:function(e,t){var n=hT(t),i=e.getElementRef().nativeElement;do{if(n==i)return!0}while(n=n.parentElement);return!1}},{key:"_addGlobalListener",value:function(){var e=this;this._globalSubscription=this._ngZone.runOutsideAngular(function(){return Sx(e._getWindow().document,"scroll").subscribe(function(){return e._scrolled.next()})})}},{key:"_removeGlobalListener",value:function(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}]),e}()).\u0275fac=function(e){return new(e||SR)(Ri(Ac),Ri(mT),Ri(od,8))},SR.\u0275prov=Re({factory:function(){return new SR(Ri(Ac),Ri(mT),Ri(od,8))},token:SR,providedIn:"root"}),SR),MR=((CR=function(){function e(t,n,i){var r=this;A(this,e),this._platform=t,this._change=new W,this._changeListener=function(e){r._change.next(e)},this._document=i,n.runOutsideAngular(function(){if(t.isBrowser){var e=r._getWindow();e.addEventListener("resize",r._changeListener),e.addEventListener("orientationchange",r._changeListener)}r.change().subscribe(function(){return r._updateViewportSize()})})}return m(e,[{key:"ngOnDestroy",value:function(){if(this._platform.isBrowser){var e=this._getWindow();e.removeEventListener("resize",this._changeListener),e.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}},{key:"getViewportSize",value:function(){this._viewportSize||this._updateViewportSize();var e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}},{key:"getViewportRect",value:function(){var e=this.getViewportScrollPosition(),t=this.getViewportSize(),n=t.width,i=t.height;return{top:e.top,left:e.left,bottom:e.top+i,right:e.left+n,height:i,width:n}}},{key:"getViewportScrollPosition",value:function(){if(!this._platform.isBrowser)return{top:0,left:0};var e=this._document,t=this._getWindow(),n=e.documentElement,i=n.getBoundingClientRect();return{top:-i.top||e.body.scrollTop||t.scrollY||n.scrollTop||0,left:-i.left||e.body.scrollLeft||t.scrollX||n.scrollLeft||0}}},{key:"change",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:20;return e>0?this._change.pipe(_R(e)):this._change}},{key:"_getWindow",value:function(){return this._document.defaultView||window}},{key:"_updateViewportSize",value:function(){var e=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:e.innerWidth,height:e.innerHeight}:{width:0,height:0}}}]),e}()).\u0275fac=function(e){return new(e||CR)(Ri(mT),Ri(Ac),Ri(od,8))},CR.\u0275prov=Re({factory:function(){return new CR(Ri(mT),Ri(Ac),Ri(od,8))},token:CR,providedIn:"root"}),CR),TR=((AR=function e(){A(this,e)}).\u0275fac=function(e){return new(e||AR)},AR.\u0275mod=mt({type:AR}),AR.\u0275inj=Fe({}),AR),IR=((xR=function e(){A(this,e)}).\u0275fac=function(e){return new(e||xR)},xR.\u0275mod=mt({type:xR}),xR.\u0275inj=Fe({imports:[[hI,yT,TR],hI,TR]}),xR),RR=function(){function e(t,n){A(this,e),this.predicate=t,this.inclusive=n}return m(e,[{key:"call",value:function(e,t){return t.subscribe(new LR(e,this.predicate,this.inclusive))}}]),e}(),LR=function(e){r(n,e);var t=a(n);function n(e,i,r){var o;return A(this,n),(o=t.call(this,e)).predicate=i,o.inclusive=r,o.index=0,o}return m(n,[{key:"_next",value:function(e){var t,n=this.destination;try{t=this.predicate(e,this.index++)}catch(i){return void n.error(i)}this.nextOrComplete(e,t)}},{key:"nextOrComplete",value:function(e,t){var n=this.destination;Boolean(t)?n.next(e):(this.inclusive&&n.next(e),n.complete())}}]),n}(I),FR=function(){if(null==pT){if("object"!=typeof document||!document)return pT=!1;if("scrollBehavior"in document.documentElement.style)pT=!0;else{var e=Element.prototype.scrollTo;pT=!!e&&!/\{\s*\[native code\]\s*\}/.test(e.toString())}}return pT}(),BR=function(){function e(t,n){A(this,e),this._viewportRuler=t,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=n}return m(e,[{key:"attach",value:function(){}},{key:"enable",value:function(){if(this._canBeEnabled()){var e=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=e.style.left||"",this._previousHTMLStyles.top=e.style.top||"",e.style.left=dT(-this._previousScrollPosition.left),e.style.top=dT(-this._previousScrollPosition.top),e.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}},{key:"disable",value:function(){if(this._isEnabled){var e=this._document.documentElement,t=e.style,n=this._document.body.style,i=t.scrollBehavior||"",r=n.scrollBehavior||"";this._isEnabled=!1,t.left=this._previousHTMLStyles.left,t.top=this._previousHTMLStyles.top,e.classList.remove("cdk-global-scrollblock"),FR&&(t.scrollBehavior=n.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),FR&&(t.scrollBehavior=i,n.scrollBehavior=r)}}},{key:"_canBeEnabled",value:function(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;var e=this._document.body,t=this._viewportRuler.getViewportSize();return e.scrollHeight>t.height||e.scrollWidth>t.width}}]),e}(),VR=function(){function e(t,n,i,r){var o=this;A(this,e),this._scrollDispatcher=t,this._ngZone=n,this._viewportRuler=i,this._config=r,this._scrollSubscription=null,this._detach=function(){o.disable(),o._overlayRef.hasAttached()&&o._ngZone.run(function(){return o._overlayRef.detach()})}}return m(e,[{key:"attach",value:function(e){this._overlayRef=e}},{key:"enable",value:function(){var e=this;if(!this._scrollSubscription){var t=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=t.subscribe(function(){var t=e._viewportRuler.getViewportScrollPosition().top;Math.abs(t-e._initialScrollPosition)>e._config.threshold?e._detach():e._overlayRef.updatePosition()})):this._scrollSubscription=t.subscribe(this._detach)}}},{key:"disable",value:function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}},{key:"detach",value:function(){this.disable(),this._overlayRef=null}}]),e}(),zR=function(){function e(){A(this,e)}return m(e,[{key:"enable",value:function(){}},{key:"disable",value:function(){}},{key:"attach",value:function(){}}]),e}();function NR(e,t){return t.some(function(t){return e.bottom<t.top||e.top>t.bottom||e.right<t.left||e.left>t.right})}function HR(e,t){return t.some(function(t){return e.top<t.top||e.bottom>t.bottom||e.left<t.left||e.right>t.right})}var jR,UR,WR,GR,qR,YR=function(){function e(t,n,i,r){A(this,e),this._scrollDispatcher=t,this._viewportRuler=n,this._ngZone=i,this._config=r,this._scrollSubscription=null}return m(e,[{key:"attach",value:function(e){this._overlayRef=e}},{key:"enable",value:function(){var e=this;this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(function(){if(e._overlayRef.updatePosition(),e._config&&e._config.autoClose){var t=e._overlayRef.overlayElement.getBoundingClientRect(),n=e._viewportRuler.getViewportSize(),i=n.width,r=n.height;NR(t,[{width:i,height:r,bottom:r,right:i,top:0,left:0}])&&(e.disable(),e._ngZone.run(function(){return e._overlayRef.detach()}))}}))}},{key:"disable",value:function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}},{key:"detach",value:function(){this.disable(),this._overlayRef=null}}]),e}(),ZR=((jR=function e(t,n,i,r){var o=this;A(this,e),this._scrollDispatcher=t,this._viewportRuler=n,this._ngZone=i,this.noop=function(){return new zR},this.close=function(e){return new VR(o._scrollDispatcher,o._ngZone,o._viewportRuler,e)},this.block=function(){return new BR(o._viewportRuler,o._document)},this.reposition=function(e){return new YR(o._scrollDispatcher,o._viewportRuler,o._ngZone,e)},this._document=r}).\u0275fac=function(e){return new(e||jR)(Ri(OR),Ri(MR),Ri(Ac),Ri(od))},jR.\u0275prov=Re({factory:function(){return new jR(Ri(OR),Ri(MR),Ri(Ac),Ri(od))},token:jR,providedIn:"root"}),jR),QR=function e(t){if(A(this,e),this.scrollStrategy=new zR,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,t)for(var n=0,i=Object.keys(t);n<i.length;n++){var r=i[n];void 0!==t[r]&&(this[r]=t[r])}},XR=function e(t,n,i,r,o){A(this,e),this.offsetX=i,this.offsetY=r,this.panelClass=o,this.originX=t.originX,this.originY=t.originY,this.overlayX=n.overlayX,this.overlayY=n.overlayY},KR=function e(t,n){A(this,e),this.connectionPair=t,this.scrollableViewProperties=n},JR=((GR=function(){function e(t){A(this,e),this._attachedOverlays=[],this._document=t}return m(e,[{key:"ngOnDestroy",value:function(){this.detach()}},{key:"add",value:function(e){this.remove(e),this._attachedOverlays.push(e)}},{key:"remove",value:function(e){var t=this._attachedOverlays.indexOf(e);t>-1&&this._attachedOverlays.splice(t,1),0===this._attachedOverlays.length&&this.detach()}}]),e}()).\u0275fac=function(e){return new(e||GR)(Ri(od))},GR.\u0275prov=Re({factory:function(){return new GR(Ri(od))},token:GR,providedIn:"root"}),GR),$R=((WR=function(e){r(n,e);var t=a(n);function n(e){var i;return A(this,n),(i=t.call(this,e))._keydownListener=function(e){for(var t=i._attachedOverlays,n=t.length-1;n>-1;n--)if(t[n]._keydownEvents.observers.length>0){t[n]._keydownEvents.next(e);break}},i}return m(n,[{key:"add",value:function(e){i(c(n.prototype),"add",this).call(this,e),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}},{key:"detach",value:function(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}]),n}(JR)).\u0275fac=function(e){return new(e||WR)(Ri(od))},WR.\u0275prov=Re({factory:function(){return new WR(Ri(od))},token:WR,providedIn:"root"}),WR),eL=((UR=function(e){r(n,e);var t=a(n);function n(e,i){var r;return A(this,n),(r=t.call(this,e))._platform=i,r._cursorStyleIsSet=!1,r._clickListener=function(e){for(var t=e.composedPath?e.composedPath()[0]:e.target,n=r._attachedOverlays.slice(),i=n.length-1;i>-1;i--){var o=n[i];if(!(o._outsidePointerEvents.observers.length<1)&&o.hasAttached()){if(o.overlayElement.contains(t))break;o._outsidePointerEvents.next(e)}}},r}return m(n,[{key:"add",value:function(e){i(c(n.prototype),"add",this).call(this,e),this._isAttached||(this._document.body.addEventListener("click",this._clickListener,!0),this._document.body.addEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=this._document.body.style.cursor,this._document.body.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0)}},{key:"detach",value:function(){this._isAttached&&(this._document.body.removeEventListener("click",this._clickListener,!0),this._document.body.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(this._document.body.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1)}}]),n}(JR)).\u0275fac=function(e){return new(e||UR)(Ri(od),Ri(mT))},UR.\u0275prov=Re({factory:function(){return new UR(Ri(od),Ri(mT))},token:UR,providedIn:"root"}),UR),tL=!("undefined"==typeof window||!window||!window.__karma__&&!window.jasmine),nL=((qR=function(){function e(t,n){A(this,e),this._platform=n,this._document=t}return m(e,[{key:"ngOnDestroy",value:function(){var e=this._containerElement;e&&e.parentNode&&e.parentNode.removeChild(e)}},{key:"getContainerElement",value:function(){return this._containerElement||this._createContainer(),this._containerElement}},{key:"_createContainer",value:function(){if(this._platform.isBrowser||tL)for(var e=this._document.querySelectorAll('.cdk-overlay-container[platform="server"], .cdk-overlay-container[platform="test"]'),t=0;t<e.length;t++)e[t].parentNode.removeChild(e[t]);var n=this._document.createElement("div");n.classList.add("cdk-overlay-container"),tL?n.setAttribute("platform","test"):this._platform.isBrowser||n.setAttribute("platform","server"),this._document.body.appendChild(n),this._containerElement=n}}]),e}()).\u0275fac=function(e){return new(e||qR)(Ri(od),Ri(mT))},qR.\u0275prov=Re({factory:function(){return new qR(Ri(od),Ri(mT))},token:qR,providedIn:"root"}),qR),iL=function(){function e(t,n,i,r,o,a,s,l,u){var c=this;A(this,e),this._portalOutlet=t,this._host=n,this._pane=i,this._config=r,this._ngZone=o,this._keyboardDispatcher=a,this._document=s,this._location=l,this._outsideClickDispatcher=u,this._backdropElement=null,this._backdropClick=new W,this._attachments=new W,this._detachments=new W,this._locationChanges=O.EMPTY,this._backdropClickHandler=function(e){return c._backdropClick.next(e)},this._keydownEvents=new W,this._outsidePointerEvents=new W,r.scrollStrategy&&(this._scrollStrategy=r.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=r.positionStrategy}return m(e,[{key:"overlayElement",get:function(){return this._pane}},{key:"backdropElement",get:function(){return this._backdropElement}},{key:"hostElement",get:function(){return this._host}},{key:"attach",value:function(e){var t=this,n=this._portalOutlet.attach(e);return!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host),this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe(Hb(1)).subscribe(function(){t.hasAttached()&&t.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(function(){return t.dispose()})),this._outsideClickDispatcher.add(this),n}},{key:"detach",value:function(){if(this.hasAttached()){this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();var e=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),e}}},{key:"dispose",value:function(){var e=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this.detachBackdrop(),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host&&this._host.parentNode&&(this._host.parentNode.removeChild(this._host),this._host=null),this._previousHostParent=this._pane=null,e&&this._detachments.next(),this._detachments.complete()}},{key:"hasAttached",value:function(){return this._portalOutlet.hasAttached()}},{key:"backdropClick",value:function(){return this._backdropClick}},{key:"attachments",value:function(){return this._attachments}},{key:"detachments",value:function(){return this._detachments}},{key:"keydownEvents",value:function(){return this._keydownEvents}},{key:"outsidePointerEvents",value:function(){return this._outsidePointerEvents}},{key:"getConfig",value:function(){return this._config}},{key:"updatePosition",value:function(){this._positionStrategy&&this._positionStrategy.apply()}},{key:"updatePositionStrategy",value:function(e){e!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=e,this.hasAttached()&&(e.attach(this),this.updatePosition()))}},{key:"updateSize",value:function(e){this._config=Object.assign(Object.assign({},this._config),e),this._updateElementSize()}},{key:"setDirection",value:function(e){this._config=Object.assign(Object.assign({},this._config),{direction:e}),this._updateElementDirection()}},{key:"addPanelClass",value:function(e){this._pane&&this._toggleClasses(this._pane,e,!0)}},{key:"removePanelClass",value:function(e){this._pane&&this._toggleClasses(this._pane,e,!1)}},{key:"getDirection",value:function(){var e=this._config.direction;return e?"string"==typeof e?e:e.value:"ltr"}},{key:"updateScrollStrategy",value:function(e){e!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=e,this.hasAttached()&&(e.attach(this),e.enable()))}},{key:"_updateElementDirection",value:function(){this._host.setAttribute("dir",this.getDirection())}},{key:"_updateElementSize",value:function(){if(this._pane){var e=this._pane.style;e.width=dT(this._config.width),e.height=dT(this._config.height),e.minWidth=dT(this._config.minWidth),e.minHeight=dT(this._config.minHeight),e.maxWidth=dT(this._config.maxWidth),e.maxHeight=dT(this._config.maxHeight)}}},{key:"_togglePointerEvents",value:function(e){this._pane.style.pointerEvents=e?"":"none"}},{key:"_attachBackdrop",value:function(){var e=this;this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(function(){requestAnimationFrame(function(){e._backdropElement&&e._backdropElement.classList.add("cdk-overlay-backdrop-showing")})}):this._backdropElement.classList.add("cdk-overlay-backdrop-showing")}},{key:"_updateStackingOrder",value:function(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}},{key:"detachBackdrop",value:function(){var e,t=this,n=this._backdropElement;if(n){var i=function i(){n&&(n.removeEventListener("click",t._backdropClickHandler),n.removeEventListener("transitionend",i),n.parentNode&&n.parentNode.removeChild(n)),t._backdropElement==n&&(t._backdropElement=null),t._config.backdropClass&&t._toggleClasses(n,t._config.backdropClass,!1),clearTimeout(e)};n.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(function(){n.addEventListener("transitionend",i)}),n.style.pointerEvents="none",e=this._ngZone.runOutsideAngular(function(){return setTimeout(i,500)})}}},{key:"_toggleClasses",value:function(e,t,n){var i=e.classList;cT(t).forEach(function(e){e&&(n?i.add(e):i.remove(e))})}},{key:"_detachContentWhenStable",value:function(){var e=this;this._ngZone.runOutsideAngular(function(){var t=e._ngZone.onStable.pipe(kR(he(e._attachments,e._detachments))).subscribe(function(){e._pane&&e._host&&0!==e._pane.children.length||(e._pane&&e._config.panelClass&&e._toggleClasses(e._pane,e._config.panelClass,!1),e._host&&e._host.parentElement&&(e._previousHostParent=e._host.parentElement,e._previousHostParent.removeChild(e._host)),t.unsubscribe())})})}},{key:"_disposeScrollStrategy",value:function(){var e=this._scrollStrategy;e&&(e.disable(),e.detach&&e.detach())}}]),e}(),rL=/([A-Za-z%]+)$/,oL=function(){function e(t,n,i,r,o){A(this,e),this._viewportRuler=n,this._document=i,this._platform=r,this._overlayContainer=o,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new W,this._resizeSubscription=O.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(t)}return m(e,[{key:"positions",get:function(){return this._preferredPositions}},{key:"attach",value:function(e){var t=this;this._validatePositions(),e.hostElement.classList.add("cdk-overlay-connected-position-bounding-box"),this._overlayRef=e,this._boundingBox=e.hostElement,this._pane=e.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(function(){t._isInitialRender=!0,t.apply()})}},{key:"apply",value:function(){if(!this._isDisposed&&this._platform.isBrowser)if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)this.reapplyLastPosition();else{this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect();var e,t,n=this._originRect,i=this._overlayRect,r=this._viewportRect,o=[],a=h(this._preferredPositions);try{for(a.s();!(t=a.n()).done;){var s=t.value,l=this._getOriginPoint(n,s),u=this._getOverlayPoint(l,i,s),c=this._getOverlayFit(u,i,r,s);if(c.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(s,l);this._canFitWithFlexibleDimensions(c,u,r)?o.push({position:s,origin:l,overlayRect:i,boundingBoxRect:this._calculateBoundingBoxRect(l,s)}):(!e||e.overlayFit.visibleArea<c.visibleArea)&&(e={overlayFit:c,overlayPoint:u,originPoint:l,position:s,overlayRect:i})}}catch(y){a.e(y)}finally{a.f()}if(o.length){var d,f=null,p=-1,g=h(o);try{for(g.s();!(d=g.n()).done;){var v=d.value,m=v.boundingBoxRect.width*v.boundingBoxRect.height*(v.position.weight||1);m>p&&(p=m,f=v)}}catch(y){g.e(y)}finally{g.f()}return this._isPushed=!1,void this._applyPosition(f.position,f.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(e.position,e.originPoint);this._applyPosition(e.position,e.originPoint)}}},{key:"detach",value:function(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}},{key:"dispose",value:function(){this._isDisposed||(this._boundingBox&&aL(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove("cdk-overlay-connected-position-bounding-box"),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}},{key:"reapplyLastPosition",value:function(){if(!this._isDisposed&&(!this._platform||this._platform.isBrowser)){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect();var e=this._lastPosition||this._preferredPositions[0],t=this._getOriginPoint(this._originRect,e);this._applyPosition(e,t)}}},{key:"withScrollableContainers",value:function(e){return this._scrollables=e,this}},{key:"withPositions",value:function(e){return this._preferredPositions=e,-1===e.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}},{key:"withViewportMargin",value:function(e){return this._viewportMargin=e,this}},{key:"withFlexibleDimensions",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._hasFlexibleDimensions=e,this}},{key:"withGrowAfterOpen",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._growAfterOpen=e,this}},{key:"withPush",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._canPush=e,this}},{key:"withLockedPosition",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._positionLocked=e,this}},{key:"setOrigin",value:function(e){return this._origin=e,this}},{key:"withDefaultOffsetX",value:function(e){return this._offsetX=e,this}},{key:"withDefaultOffsetY",value:function(e){return this._offsetY=e,this}},{key:"withTransformOriginOn",value:function(e){return this._transformOriginSelector=e,this}},{key:"_getOriginPoint",value:function(e,t){var n;if("center"==t.originX)n=e.left+e.width/2;else{var i=this._isRtl()?e.right:e.left,r=this._isRtl()?e.left:e.right;n="start"==t.originX?i:r}return{x:n,y:"center"==t.originY?e.top+e.height/2:"top"==t.originY?e.top:e.bottom}}},{key:"_getOverlayPoint",value:function(e,t,n){var i,r;return i="center"==n.overlayX?-t.width/2:"start"===n.overlayX?this._isRtl()?-t.width:0:this._isRtl()?0:-t.width,r="center"==n.overlayY?-t.height/2:"top"==n.overlayY?0:-t.height,{x:e.x+i,y:e.y+r}}},{key:"_getOverlayFit",value:function(e,t,n,i){var r=lL(t),o=e.x,a=e.y,s=this._getOffset(i,"x"),l=this._getOffset(i,"y");s&&(o+=s),l&&(a+=l);var u=0-a,c=a+r.height-n.height,d=this._subtractOverflows(r.width,0-o,o+r.width-n.width),h=this._subtractOverflows(r.height,u,c),f=d*h;return{visibleArea:f,isCompletelyWithinViewport:r.width*r.height===f,fitsInViewportVertically:h===r.height,fitsInViewportHorizontally:d==r.width}}},{key:"_canFitWithFlexibleDimensions",value:function(e,t,n){if(this._hasFlexibleDimensions){var i=n.bottom-t.y,r=n.right-t.x,o=sL(this._overlayRef.getConfig().minHeight),a=sL(this._overlayRef.getConfig().minWidth),s=e.fitsInViewportHorizontally||null!=a&&a<=r;return(e.fitsInViewportVertically||null!=o&&o<=i)&&s}return!1}},{key:"_pushOverlayOnScreen",value:function(e,t,n){if(this._previousPushAmount&&this._positionLocked)return{x:e.x+this._previousPushAmount.x,y:e.y+this._previousPushAmount.y};var i,r,o=lL(t),a=this._viewportRect,s=Math.max(e.x+o.width-a.width,0),l=Math.max(e.y+o.height-a.height,0),u=Math.max(a.top-n.top-e.y,0),c=Math.max(a.left-n.left-e.x,0);return i=o.width<=a.width?c||-s:e.x<this._viewportMargin?a.left-n.left-e.x:0,r=o.height<=a.height?u||-l:e.y<this._viewportMargin?a.top-n.top-e.y:0,this._previousPushAmount={x:i,y:r},{x:e.x+i,y:e.y+r}}},{key:"_applyPosition",value:function(e,t){if(this._setTransformOrigin(e),this._setOverlayElementStyles(t,e),this._setBoundingBoxStyles(t,e),e.panelClass&&this._addPanelClasses(e.panelClass),this._lastPosition=e,this._positionChanges.observers.length){var n=this._getScrollVisibility(),i=new KR(e,n);this._positionChanges.next(i)}this._isInitialRender=!1}},{key:"_setTransformOrigin",value:function(e){if(this._transformOriginSelector){var t,n=this._boundingBox.querySelectorAll(this._transformOriginSelector),i=e.overlayY;t="center"===e.overlayX?"center":this._isRtl()?"start"===e.overlayX?"right":"left":"start"===e.overlayX?"left":"right";for(var r=0;r<n.length;r++)n[r].style.transformOrigin="".concat(t," ").concat(i)}}},{key:"_calculateBoundingBoxRect",value:function(e,t){var n,i,r,o,a,s,l=this._viewportRect,u=this._isRtl();if("top"===t.overlayY)i=e.y,n=l.height-i+this._viewportMargin;else if("bottom"===t.overlayY)r=l.height-e.y+2*this._viewportMargin,n=l.height-r+this._viewportMargin;else{var c=Math.min(l.bottom-e.y+l.top,e.y),d=this._lastBoundingBoxSize.height;n=2*c,i=e.y-c,n>d&&!this._isInitialRender&&!this._growAfterOpen&&(i=e.y-d/2)}if("end"===t.overlayX&&!u||"start"===t.overlayX&&u)s=l.width-e.x+this._viewportMargin,o=e.x-this._viewportMargin;else if("start"===t.overlayX&&!u||"end"===t.overlayX&&u)a=e.x,o=l.right-e.x;else{var h=Math.min(l.right-e.x+l.left,e.x),f=this._lastBoundingBoxSize.width;o=2*h,a=e.x-h,o>f&&!this._isInitialRender&&!this._growAfterOpen&&(a=e.x-f/2)}return{top:i,left:a,bottom:r,right:s,width:o,height:n}}},{key:"_setBoundingBoxStyles",value:function(e,t){var n=this._calculateBoundingBoxRect(e,t);this._isInitialRender||this._growAfterOpen||(n.height=Math.min(n.height,this._lastBoundingBoxSize.height),n.width=Math.min(n.width,this._lastBoundingBoxSize.width));var i={};if(this._hasExactPosition())i.top=i.left="0",i.bottom=i.right=i.maxHeight=i.maxWidth="",i.width=i.height="100%";else{var r=this._overlayRef.getConfig().maxHeight,o=this._overlayRef.getConfig().maxWidth;i.height=dT(n.height),i.top=dT(n.top),i.bottom=dT(n.bottom),i.width=dT(n.width),i.left=dT(n.left),i.right=dT(n.right),i.alignItems="center"===t.overlayX?"center":"end"===t.overlayX?"flex-end":"flex-start",i.justifyContent="center"===t.overlayY?"center":"bottom"===t.overlayY?"flex-end":"flex-start",r&&(i.maxHeight=dT(r)),o&&(i.maxWidth=dT(o))}this._lastBoundingBoxSize=n,aL(this._boundingBox.style,i)}},{key:"_resetBoundingBoxStyles",value:function(){aL(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}},{key:"_resetOverlayElementStyles",value:function(){aL(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}},{key:"_setOverlayElementStyles",value:function(e,t){var n={},i=this._hasExactPosition(),r=this._hasFlexibleDimensions,o=this._overlayRef.getConfig();if(i){var a=this._viewportRuler.getViewportScrollPosition();aL(n,this._getExactOverlayY(t,e,a)),aL(n,this._getExactOverlayX(t,e,a))}else n.position="static";var s="",l=this._getOffset(t,"x"),u=this._getOffset(t,"y");l&&(s+="translateX(".concat(l,"px) ")),u&&(s+="translateY(".concat(u,"px)")),n.transform=s.trim(),o.maxHeight&&(i?n.maxHeight=dT(o.maxHeight):r&&(n.maxHeight="")),o.maxWidth&&(i?n.maxWidth=dT(o.maxWidth):r&&(n.maxWidth="")),aL(this._pane.style,n)}},{key:"_getExactOverlayY",value:function(e,t,n){var i={top:"",bottom:""},r=this._getOverlayPoint(t,this._overlayRect,e);this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,n));var o=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return r.y-=o,"bottom"===e.overlayY?i.bottom=this._document.documentElement.clientHeight-(r.y+this._overlayRect.height)+"px":i.top=dT(r.y),i}},{key:"_getExactOverlayX",value:function(e,t,n){var i={left:"",right:""},r=this._getOverlayPoint(t,this._overlayRect,e);return this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,n)),"right"===(this._isRtl()?"end"===e.overlayX?"left":"right":"end"===e.overlayX?"right":"left")?i.right=this._document.documentElement.clientWidth-(r.x+this._overlayRect.width)+"px":i.left=dT(r.x),i}},{key:"_getScrollVisibility",value:function(){var e=this._getOriginRect(),t=this._pane.getBoundingClientRect(),n=this._scrollables.map(function(e){return e.getElementRef().nativeElement.getBoundingClientRect()});return{isOriginClipped:HR(e,n),isOriginOutsideView:NR(e,n),isOverlayClipped:HR(t,n),isOverlayOutsideView:NR(t,n)}}},{key:"_subtractOverflows",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return n.reduce(function(e,t){return e-Math.max(t,0)},e)}},{key:"_getNarrowedViewportRect",value:function(){var e=this._document.documentElement.clientWidth,t=this._document.documentElement.clientHeight,n=this._viewportRuler.getViewportScrollPosition();return{top:n.top+this._viewportMargin,left:n.left+this._viewportMargin,right:n.left+e-this._viewportMargin,bottom:n.top+t-this._viewportMargin,width:e-2*this._viewportMargin,height:t-2*this._viewportMargin}}},{key:"_isRtl",value:function(){return"rtl"===this._overlayRef.getDirection()}},{key:"_hasExactPosition",value:function(){return!this._hasFlexibleDimensions||this._isPushed}},{key:"_getOffset",value:function(e,t){return"x"===t?null==e.offsetX?this._offsetX:e.offsetX:null==e.offsetY?this._offsetY:e.offsetY}},{key:"_validatePositions",value:function(){}},{key:"_addPanelClasses",value:function(e){var t=this;this._pane&&cT(e).forEach(function(e){""!==e&&-1===t._appliedPanelClasses.indexOf(e)&&(t._appliedPanelClasses.push(e),t._pane.classList.add(e))})}},{key:"_clearPanelClasses",value:function(){var e=this;this._pane&&(this._appliedPanelClasses.forEach(function(t){e._pane.classList.remove(t)}),this._appliedPanelClasses=[])}},{key:"_getOriginRect",value:function(){var e=this._origin;if(e instanceof Cl)return e.nativeElement.getBoundingClientRect();if(e instanceof Element)return e.getBoundingClientRect();var t=e.width||0,n=e.height||0;return{top:e.y,bottom:e.y+n,left:e.x,right:e.x+t,height:n,width:t}}}]),e}();function aL(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function sL(e){if("number"!=typeof e&&null!=e){var t=f(e.split(rL),2),n=t[0],i=t[1];return i&&"px"!==i?null:parseFloat(n)}return e||null}function lL(e){return{top:Math.floor(e.top),right:Math.floor(e.right),bottom:Math.floor(e.bottom),left:Math.floor(e.left),width:Math.floor(e.width),height:Math.floor(e.height)}}var uL,cL,dL,hL,fL,pL=function(){function e(t,n,i,r,o,a,s){A(this,e),this._preferredPositions=[],this._positionStrategy=new oL(i,r,o,a,s).withFlexibleDimensions(!1).withPush(!1).withViewportMargin(0),this.withFallbackPosition(t,n),this.onPositionChange=this._positionStrategy.positionChanges}return m(e,[{key:"positions",get:function(){return this._preferredPositions}},{key:"attach",value:function(e){this._overlayRef=e,this._positionStrategy.attach(e),this._direction&&(e.setDirection(this._direction),this._direction=null)}},{key:"dispose",value:function(){this._positionStrategy.dispose()}},{key:"detach",value:function(){this._positionStrategy.detach()}},{key:"apply",value:function(){this._positionStrategy.apply()}},{key:"recalculateLastPosition",value:function(){this._positionStrategy.reapplyLastPosition()}},{key:"withScrollableContainers",value:function(e){this._positionStrategy.withScrollableContainers(e)}},{key:"withFallbackPosition",value:function(e,t,n,i){var r=new XR(e,t,n,i);return this._preferredPositions.push(r),this._positionStrategy.withPositions(this._preferredPositions),this}},{key:"withDirection",value:function(e){return this._overlayRef?this._overlayRef.setDirection(e):this._direction=e,this}},{key:"withOffsetX",value:function(e){return this._positionStrategy.withDefaultOffsetX(e),this}},{key:"withOffsetY",value:function(e){return this._positionStrategy.withDefaultOffsetY(e),this}},{key:"withLockedPosition",value:function(e){return this._positionStrategy.withLockedPosition(e),this}},{key:"withPositions",value:function(e){return this._preferredPositions=e.slice(),this._positionStrategy.withPositions(this._preferredPositions),this}},{key:"setOrigin",value:function(e){return this._positionStrategy.setOrigin(e),this}}]),e}(),gL=function(){function e(){A(this,e),this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}return m(e,[{key:"attach",value:function(e){var t=e.getConfig();this._overlayRef=e,this._width&&!t.width&&e.updateSize({width:this._width}),this._height&&!t.height&&e.updateSize({height:this._height}),e.hostElement.classList.add("cdk-global-overlay-wrapper"),this._isDisposed=!1}},{key:"top",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._bottomOffset="",this._topOffset=e,this._alignItems="flex-start",this}},{key:"left",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._rightOffset="",this._leftOffset=e,this._justifyContent="flex-start",this}},{key:"bottom",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._topOffset="",this._bottomOffset=e,this._alignItems="flex-end",this}},{key:"right",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._leftOffset="",this._rightOffset=e,this._justifyContent="flex-end",this}},{key:"width",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._overlayRef?this._overlayRef.updateSize({width:e}):this._width=e,this}},{key:"height",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._overlayRef?this._overlayRef.updateSize({height:e}):this._height=e,this}},{key:"centerHorizontally",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.left(e),this._justifyContent="center",this}},{key:"centerVertically",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.top(e),this._alignItems="center",this}},{key:"apply",value:function(){if(this._overlayRef&&this._overlayRef.hasAttached()){var e=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement.style,n=this._overlayRef.getConfig(),i=n.width,r=n.height,o=n.maxWidth,a=n.maxHeight,s=!("100%"!==i&&"100vw"!==i||o&&"100%"!==o&&"100vw"!==o),l=!("100%"!==r&&"100vh"!==r||a&&"100%"!==a&&"100vh"!==a);e.position=this._cssPosition,e.marginLeft=s?"0":this._leftOffset,e.marginTop=l?"0":this._topOffset,e.marginBottom=this._bottomOffset,e.marginRight=this._rightOffset,s?t.justifyContent="flex-start":"center"===this._justifyContent?t.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?t.justifyContent="flex-end":"flex-end"===this._justifyContent&&(t.justifyContent="flex-start"):t.justifyContent=this._justifyContent,t.alignItems=l?"flex-start":this._alignItems}}},{key:"dispose",value:function(){if(!this._isDisposed&&this._overlayRef){var e=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement,n=t.style;t.classList.remove("cdk-global-overlay-wrapper"),n.justifyContent=n.alignItems=e.marginTop=e.marginBottom=e.marginLeft=e.marginRight=e.position="",this._overlayRef=null,this._isDisposed=!0}}}]),e}(),vL=((cL=function(){function e(t,n,i,r){A(this,e),this._viewportRuler=t,this._document=n,this._platform=i,this._overlayContainer=r}return m(e,[{key:"global",value:function(){return new gL}},{key:"connectedTo",value:function(e,t,n){return new pL(t,n,e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}},{key:"flexibleConnectedTo",value:function(e){return new oL(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}]),e}()).\u0275fac=function(e){return new(e||cL)(Ri(MR),Ri(od),Ri(mT),Ri(nL))},cL.\u0275prov=Re({factory:function(){return new cL(Ri(MR),Ri(od),Ri(mT),Ri(nL))},token:cL,providedIn:"root"}),cL),mL=0,yL=((uL=function(){function e(t,n,i,r,o,a,s,l,u,c,d){A(this,e),this.scrollStrategies=t,this._overlayContainer=n,this._componentFactoryResolver=i,this._positionBuilder=r,this._keyboardDispatcher=o,this._injector=a,this._ngZone=s,this._document=l,this._directionality=u,this._location=c,this._outsideClickDispatcher=d}return m(e,[{key:"create",value:function(e){var t=this._createHostElement(),n=this._createPaneElement(t),i=this._createPortalOutlet(n),r=new QR(e);return r.direction=r.direction||this._directionality.value,new iL(i,t,n,r,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}},{key:"position",value:function(){return this._positionBuilder}},{key:"_createPaneElement",value:function(e){var t=this._document.createElement("div");return t.id="cdk-overlay-"+mL++,t.classList.add("cdk-overlay-pane"),e.appendChild(t),t}},{key:"_createHostElement",value:function(){var e=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(e),e}},{key:"_createPortalOutlet",value:function(e){return this._appRef||(this._appRef=this._injector.get(Gc)),new AE(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}]),e}()).\u0275fac=function(e){return new(e||uL)(Ri(ZR),Ri(nL),Ri(_l),Ri(vL),Ri($R),Ri(Fa),Ri(Ac),Ri(od),Ri(dI),Ri(Cd),Ri(eL))},uL.\u0275prov=Re({token:uL,factory:uL.\u0275fac}),uL),bL=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],wL=new mi("cdk-connected-overlay-scroll-strategy"),_L=((hL=function e(t){A(this,e),this.elementRef=t}).\u0275fac=function(e){return new(e||hL)(rs(Cl))},hL.\u0275dir=bt({type:hL,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),hL),kL=((dL=function(){function e(t,n,i,r,o){A(this,e),this._overlay=t,this._dir=o,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=O.EMPTY,this._attachSubscription=O.EMPTY,this._detachSubscription=O.EMPTY,this._positionSubscription=O.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new Fu,this.positionChange=new Fu,this.attach=new Fu,this.detach=new Fu,this.overlayKeydown=new Fu,this.overlayOutsideClick=new Fu,this._templatePortal=new _E(n,i),this._scrollStrategyFactory=r,this.scrollStrategy=this._scrollStrategyFactory()}return m(e,[{key:"offsetX",get:function(){return this._offsetX},set:function(e){this._offsetX=e,this._position&&this._updatePositionStrategy(this._position)}},{key:"offsetY",get:function(){return this._offsetY},set:function(e){this._offsetY=e,this._position&&this._updatePositionStrategy(this._position)}},{key:"hasBackdrop",get:function(){return this._hasBackdrop},set:function(e){this._hasBackdrop=lT(e)}},{key:"lockPosition",get:function(){return this._lockPosition},set:function(e){this._lockPosition=lT(e)}},{key:"flexibleDimensions",get:function(){return this._flexibleDimensions},set:function(e){this._flexibleDimensions=lT(e)}},{key:"growAfterOpen",get:function(){return this._growAfterOpen},set:function(e){this._growAfterOpen=lT(e)}},{key:"push",get:function(){return this._push},set:function(e){this._push=lT(e)}},{key:"overlayRef",get:function(){return this._overlayRef}},{key:"dir",get:function(){return this._dir?this._dir.value:"ltr"}},{key:"ngOnDestroy",value:function(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}},{key:"ngOnChanges",value:function(e){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),e.origin&&this.open&&this._position.apply()),e.open&&(this.open?this._attachOverlay():this._detachOverlay())}},{key:"_createOverlay",value:function(){var e=this;this.positions&&this.positions.length||(this.positions=bL);var t=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=t.attachments().subscribe(function(){return e.attach.emit()}),this._detachSubscription=t.detachments().subscribe(function(){return e.detach.emit()}),t.keydownEvents().subscribe(function(t){e.overlayKeydown.next(t),27!==t.keyCode||e.disableClose||tT(t)||(t.preventDefault(),e._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(function(t){e.overlayOutsideClick.next(t)})}},{key:"_buildConfig",value:function(){var e=this._position=this.positionStrategy||this._createPositionStrategy(),t=new QR({direction:this._dir,positionStrategy:e,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(t.width=this.width),(this.height||0===this.height)&&(t.height=this.height),(this.minWidth||0===this.minWidth)&&(t.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(t.minHeight=this.minHeight),this.backdropClass&&(t.backdropClass=this.backdropClass),this.panelClass&&(t.panelClass=this.panelClass),t}},{key:"_updatePositionStrategy",value:function(e){var t=this,n=this.positions.map(function(e){return{originX:e.originX,originY:e.originY,overlayX:e.overlayX,overlayY:e.overlayY,offsetX:e.offsetX||t.offsetX,offsetY:e.offsetY||t.offsetY,panelClass:e.panelClass||void 0}});return e.setOrigin(this.origin.elementRef).withPositions(n).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}},{key:"_createPositionStrategy",value:function(){var e=this._overlay.position().flexibleConnectedTo(this.origin.elementRef);return this._updatePositionStrategy(e),e}},{key:"_attachOverlay",value:function(){var e=this;this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(function(t){e.backdropClick.emit(t)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(n){return n.lift(new RR(e,t))}}(function(){return e.positionChange.observers.length>0})).subscribe(function(t){e.positionChange.emit(t),0===e.positionChange.observers.length&&e._positionSubscription.unsubscribe()}))}},{key:"_detachOverlay",value:function(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}]),e}()).\u0275fac=function(e){return new(e||dL)(rs(yL),rs(iu),rs(uu),rs(wL),rs(dI,8))},dL.\u0275dir=bt({type:dL,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"],positions:["cdkConnectedOverlayPositions","positions"],origin:["cdkConnectedOverlayOrigin","origin"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[Mt]}),dL),xL={provide:wL,deps:[yL],useFactory:function(e){return function(){return e.scrollStrategies.reposition()}}},AL=((fL=function e(){A(this,e)}).\u0275fac=function(e){return new(e||fL)},fL.\u0275mod=mt({type:fL}),fL.\u0275inj=Fe({providers:[yL,xL],imports:[[hI,SE,IR],IR]}),fL),CL=["underline"],SL=["connectionContainer"],PL=["inputContainer"],EL=["label"];function DL(e,t){1&e&&(cs(0),ss(1,"div",14),us(2,"div",15),us(3,"div",16),us(4,"div",17),ls(),ss(5,"div",18),us(6,"div",15),us(7,"div",16),us(8,"div",17),ls(),ds())}function OL(e,t){1&e&&(ss(0,"div",19),Cs(1,1),ls())}function ML(e,t){if(1&e&&(cs(0),Cs(1,2),ss(2,"span"),Qs(3),ls(),ds()),2&e){var n=ks(2);xo(3),Xs(n._control.placeholder)}}function TL(e,t){1&e&&Cs(0,3,["*ngSwitchCase","true"])}function IL(e,t){1&e&&(ss(0,"span",23),Qs(1," *"),ls())}function RL(e,t){if(1&e){var n=fs();ss(0,"label",20,21),ms("cdkObserveContent",function(){return nn(n),ks().updateOutlineGap()}),ns(2,ML,4,1,"ng-container",12),ns(3,TL,1,0,"ng-content",12),ns(4,IL,2,0,"span",22),ls()}if(2&e){var i=ks();Fs("mat-empty",i._control.empty&&!i._shouldAlwaysFloat())("mat-form-field-empty",i._control.empty&&!i._shouldAlwaysFloat())("mat-accent","accent"==i.color)("mat-warn","warn"==i.color),os("cdkObserveContentDisabled","outline"!=i.appearance)("id",i._labelId)("ngSwitch",i._hasLabel()),$a("for",i._control.id)("aria-owns",i._control.id),xo(2),os("ngSwitchCase",!1),xo(1),os("ngSwitchCase",!0),xo(1),os("ngIf",!i.hideRequiredMarker&&i._control.required&&!i._control.disabled)}}function LL(e,t){1&e&&(ss(0,"div",24),Cs(1,4),ls())}function FL(e,t){if(1&e&&(ss(0,"div",25,26),us(2,"span",27),ls()),2&e){var n=ks();xo(2),Fs("mat-accent","accent"==n.color)("mat-warn","warn"==n.color)}}function BL(e,t){1&e&&(ss(0,"div"),Cs(1,5),ls()),2&e&&os("@transitionMessages",ks()._subscriptAnimationState)}function VL(e,t){if(1&e&&(ss(0,"div",31),Qs(1),ls()),2&e){var n=ks(2);os("id",n._hintLabelId),xo(1),Xs(n.hintLabel)}}function zL(e,t){if(1&e&&(ss(0,"div",28),ns(1,VL,2,2,"div",29),Cs(2,6),us(3,"div",30),Cs(4,7),ls()),2&e){var n=ks();os("@transitionMessages",n._subscriptAnimationState),xo(1),os("ngIf",n.hintLabel)}}var NL,HL,jL,UL,WL,GL=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],qL=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"],YL=new mi("MatError"),ZL={transitionMessages:Xf("transitionMessages",[ep("enter",$f({opacity:1,transform:"translateY(0%)"})),np("void => enter",[$f({opacity:0,transform:"translateY(-5px)"}),Kf("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},QL=((NL=function e(){A(this,e)}).\u0275fac=function(e){return new(e||NL)},NL.\u0275dir=bt({type:NL}),NL),XL=new mi("MatHint"),KL=((jL=function e(){A(this,e)}).\u0275fac=function(e){return new(e||jL)},jL.\u0275dir=bt({type:jL,selectors:[["mat-label"]]}),jL),JL=((HL=function e(){A(this,e)}).\u0275fac=function(e){return new(e||HL)},HL.\u0275dir=bt({type:HL,selectors:[["mat-placeholder"]]}),HL),$L=new mi("MatPrefix"),eF=new mi("MatSuffix"),tF=0,nF=AI(function e(t){A(this,e),this._elementRef=t},"primary"),iF=new mi("MAT_FORM_FIELD_DEFAULT_OPTIONS"),rF=new mi("MatFormField"),oF=((WL=function(e){r(n,e);var t=a(n);function n(e,i,r,o,a,s,l,u){var c;return A(this,n),(c=t.call(this,e))._elementRef=e,c._changeDetectorRef=i,c._dir=o,c._defaults=a,c._platform=s,c._ngZone=l,c._outlineGapCalculationNeededImmediately=!1,c._outlineGapCalculationNeededOnStable=!1,c._destroyed=new W,c._showAlwaysAnimate=!1,c._subscriptAnimationState="",c._hintLabel="",c._hintLabelId="mat-hint-"+tF++,c._labelId="mat-form-field-label-"+tF++,c.floatLabel=c._getDefaultFloatLabelState(),c._animationsEnabled="NoopAnimations"!==u,c.appearance=a&&a.appearance?a.appearance:"legacy",c._hideRequiredMarker=!(!a||null==a.hideRequiredMarker)&&a.hideRequiredMarker,c}return m(n,[{key:"appearance",get:function(){return this._appearance},set:function(e){var t=this._appearance;this._appearance=e||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&t!==e&&(this._outlineGapCalculationNeededOnStable=!0)}},{key:"hideRequiredMarker",get:function(){return this._hideRequiredMarker},set:function(e){this._hideRequiredMarker=lT(e)}},{key:"_shouldAlwaysFloat",value:function(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}},{key:"_canLabelFloat",value:function(){return"never"!==this.floatLabel}},{key:"hintLabel",get:function(){return this._hintLabel},set:function(e){this._hintLabel=e,this._processHints()}},{key:"floatLabel",get:function(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel},set:function(e){e!==this._floatLabel&&(this._floatLabel=e||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}},{key:"_control",get:function(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic},set:function(e){this._explicitFormFieldControl=e}},{key:"getLabelId",value:function(){return this._hasFloatingLabel()?this._labelId:null}},{key:"getConnectedOverlayOrigin",value:function(){return this._connectionContainerRef||this._elementRef}},{key:"ngAfterContentInit",value:function(){var e=this;this._validateControlChild();var t=this._control;t.controlType&&this._elementRef.nativeElement.classList.add("mat-form-field-type-"+t.controlType),t.stateChanges.pipe(Wb(null)).subscribe(function(){e._validatePlaceholders(),e._syncDescribedByIds(),e._changeDetectorRef.markForCheck()}),t.ngControl&&t.ngControl.valueChanges&&t.ngControl.valueChanges.pipe(kR(this._destroyed)).subscribe(function(){return e._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(function(){e._ngZone.onStable.pipe(kR(e._destroyed)).subscribe(function(){e._outlineGapCalculationNeededOnStable&&e.updateOutlineGap()})}),he(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(function(){e._outlineGapCalculationNeededOnStable=!0,e._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(Wb(null)).subscribe(function(){e._processHints(),e._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(Wb(null)).subscribe(function(){e._syncDescribedByIds(),e._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(kR(this._destroyed)).subscribe(function(){"function"==typeof requestAnimationFrame?e._ngZone.runOutsideAngular(function(){requestAnimationFrame(function(){return e.updateOutlineGap()})}):e.updateOutlineGap()})}},{key:"ngAfterContentChecked",value:function(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}},{key:"ngAfterViewInit",value:function(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete()}},{key:"_shouldForward",value:function(e){var t=this._control?this._control.ngControl:null;return t&&t[e]}},{key:"_hasPlaceholder",value:function(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}},{key:"_hasLabel",value:function(){return!(!this._labelChildNonStatic&&!this._labelChildStatic)}},{key:"_shouldLabelFloat",value:function(){return this._canLabelFloat()&&(this._control&&this._control.shouldLabelFloat||this._shouldAlwaysFloat())}},{key:"_hideControlPlaceholder",value:function(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}},{key:"_hasFloatingLabel",value:function(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}},{key:"_getDisplayedMessages",value:function(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}},{key:"_animateAndLockLabel",value:function(){var e=this;this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,Sx(this._label.nativeElement,"transitionend").pipe(Hb(1)).subscribe(function(){e._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}},{key:"_validatePlaceholders",value:function(){}},{key:"_processHints",value:function(){this._validateHints(),this._syncDescribedByIds()}},{key:"_validateHints",value:function(){}},{key:"_getDefaultFloatLabelState",value:function(){return this._defaults&&this._defaults.floatLabel||"auto"}},{key:"_syncDescribedByIds",value:function(){if(this._control){var e=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&e.push.apply(e,y(this._control.userAriaDescribedBy.split(" "))),"hint"===this._getDisplayedMessages()){var t=this._hintChildren?this._hintChildren.find(function(e){return"start"===e.align}):null,n=this._hintChildren?this._hintChildren.find(function(e){return"end"===e.align}):null;t?e.push(t.id):this._hintLabel&&e.push(this._hintLabelId),n&&e.push(n.id)}else this._errorChildren&&e.push.apply(e,y(this._errorChildren.map(function(e){return e.id})));this._control.setDescribedByIds(e)}}},{key:"_validateControlChild",value:function(){}},{key:"updateOutlineGap",value:function(){var e=this._label?this._label.nativeElement:null;if("outline"===this.appearance&&e&&e.children.length&&e.textContent.trim()&&this._platform.isBrowser)if(this._isAttachedToDOM()){var t=0,n=0,i=this._connectionContainerRef.nativeElement,r=i.querySelectorAll(".mat-form-field-outline-start"),o=i.querySelectorAll(".mat-form-field-outline-gap");if(this._label&&this._label.nativeElement.children.length){var a=i.getBoundingClientRect();if(0===a.width&&0===a.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);for(var s=this._getStartEnd(a),l=e.children,u=this._getStartEnd(l[0].getBoundingClientRect()),c=0,d=0;d<l.length;d++)c+=l[d].offsetWidth;t=Math.abs(u-s)-5,n=c>0?.75*c+10:0}for(var h=0;h<r.length;h++)r[h].style.width=t+"px";for(var f=0;f<o.length;f++)o[f].style.width=n+"px";this._outlineGapCalculationNeededOnStable=this._outlineGapCalculationNeededImmediately=!1}else this._outlineGapCalculationNeededImmediately=!0}},{key:"_getStartEnd",value:function(e){return this._dir&&"rtl"===this._dir.value?e.right:e.left}},{key:"_isAttachedToDOM",value:function(){var e=this._elementRef.nativeElement;if(e.getRootNode){var t=e.getRootNode();return t&&t!==e}return document.documentElement.contains(e)}}]),n}(nF)).\u0275fac=function(e){return new(e||WL)(rs(Cl),rs(Kl),rs(Cl),rs(dI,8),rs(iF,8),rs(mT),rs(Ac),rs(_v,8))},WL.\u0275cmp=ft({type:WL,selectors:[["mat-form-field"]],contentQueries:function(e,t,n){var i;1&e&&(Xu(n,QL,1),Xu(n,QL,3),Xu(n,KL,1),Xu(n,KL,3),Xu(n,JL,1),Xu(n,YL,1),Xu(n,XL,1),Xu(n,$L,1),Xu(n,eF,1)),2&e&&(Zu(i=Ku())&&(t._controlNonStatic=i.first),Zu(i=Ku())&&(t._controlStatic=i.first),Zu(i=Ku())&&(t._labelChildNonStatic=i.first),Zu(i=Ku())&&(t._labelChildStatic=i.first),Zu(i=Ku())&&(t._placeholderChild=i.first),Zu(i=Ku())&&(t._errorChildren=i),Zu(i=Ku())&&(t._hintChildren=i),Zu(i=Ku())&&(t._prefixChildren=i),Zu(i=Ku())&&(t._suffixChildren=i))},viewQuery:function(e,t){var n;1&e&&(Qu(CL,1),Qu(SL,3),Qu(PL,1),Qu(EL,1)),2&e&&(Zu(n=Ku())&&(t.underlineRef=n.first),Zu(n=Ku())&&(t._connectionContainerRef=n.first),Zu(n=Ku())&&(t._inputContainerRef=n.first),Zu(n=Ku())&&(t._label=n.first))},hostAttrs:[1,"mat-form-field"],hostVars:44,hostBindings:function(e,t){2&e&&Fs("mat-form-field-appearance-standard","standard"==t.appearance)("mat-form-field-appearance-fill","fill"==t.appearance)("mat-form-field-appearance-outline","outline"==t.appearance)("mat-form-field-appearance-legacy","legacy"==t.appearance)("mat-form-field-invalid",t._control.errorState)("mat-form-field-can-float",t._canLabelFloat())("mat-form-field-should-float",t._shouldLabelFloat())("mat-form-field-has-label",t._hasFloatingLabel())("mat-form-field-hide-placeholder",t._hideControlPlaceholder())("mat-form-field-disabled",t._control.disabled)("mat-form-field-autofilled",t._control.autofilled)("mat-focused",t._control.focused)("mat-accent","accent"==t.color)("mat-warn","warn"==t.color)("ng-untouched",t._shouldForward("untouched"))("ng-touched",t._shouldForward("touched"))("ng-pristine",t._shouldForward("pristine"))("ng-dirty",t._shouldForward("dirty"))("ng-valid",t._shouldForward("valid"))("ng-invalid",t._shouldForward("invalid"))("ng-pending",t._shouldForward("pending"))("_mat-animation-noopable",!t._animationsEnabled)},inputs:{color:"color",floatLabel:"floatLabel",appearance:"appearance",hideRequiredMarker:"hideRequiredMarker",hintLabel:"hintLabel"},exportAs:["matFormField"],features:[yl([{provide:rF,useExisting:WL}]),Va],ngContentSelectors:qL,decls:15,vars:8,consts:[[1,"mat-form-field-wrapper"],[1,"mat-form-field-flex",3,"click"],["connectionContainer",""],[4,"ngIf"],["class","mat-form-field-prefix",4,"ngIf"],[1,"mat-form-field-infix"],["inputContainer",""],[1,"mat-form-field-label-wrapper"],["class","mat-form-field-label",3,"cdkObserveContentDisabled","id","mat-empty","mat-form-field-empty","mat-accent","mat-warn","ngSwitch","cdkObserveContent",4,"ngIf"],["class","mat-form-field-suffix",4,"ngIf"],["class","mat-form-field-underline",4,"ngIf"],[1,"mat-form-field-subscript-wrapper",3,"ngSwitch"],[4,"ngSwitchCase"],["class","mat-form-field-hint-wrapper",4,"ngSwitchCase"],[1,"mat-form-field-outline"],[1,"mat-form-field-outline-start"],[1,"mat-form-field-outline-gap"],[1,"mat-form-field-outline-end"],[1,"mat-form-field-outline","mat-form-field-outline-thick"],[1,"mat-form-field-prefix"],[1,"mat-form-field-label",3,"cdkObserveContentDisabled","id","ngSwitch","cdkObserveContent"],["label",""],["class","mat-placeholder-required mat-form-field-required-marker","aria-hidden","true",4,"ngIf"],["aria-hidden","true",1,"mat-placeholder-required","mat-form-field-required-marker"],[1,"mat-form-field-suffix"],[1,"mat-form-field-underline"],["underline",""],[1,"mat-form-field-ripple"],[1,"mat-form-field-hint-wrapper"],["class","mat-hint",3,"id",4,"ngIf"],[1,"mat-form-field-hint-spacer"],[1,"mat-hint",3,"id"]],template:function(e,t){1&e&&(As(GL),ss(0,"div",0),ss(1,"div",1,2),ms("click",function(e){return t._control.onContainerClick&&t._control.onContainerClick(e)}),ns(3,DL,9,0,"ng-container",3),ns(4,OL,2,0,"div",4),ss(5,"div",5,6),Cs(7),ss(8,"span",7),ns(9,RL,5,16,"label",8),ls(),ls(),ns(10,LL,2,0,"div",9),ls(),ns(11,FL,3,4,"div",10),ss(12,"div",11),ns(13,BL,2,1,"div",12),ns(14,zL,5,2,"div",13),ls(),ls()),2&e&&(xo(3),os("ngIf","outline"==t.appearance),xo(1),os("ngIf",t._prefixChildren.length),xo(5),os("ngIf",t._hasFloatingLabel()),xo(1),os("ngIf",t._suffixChildren.length),xo(1),os("ngIf","outline"!=t.appearance),xo(1),os("ngSwitch",t._getDisplayedMessages()),xo(1),os("ngSwitchCase","error"),xo(1),os("ngSwitchCase","hint"))},directives:[mh,Sh,Ph,PT],styles:[".mat-form-field{display:inline-block;position:relative;text-align:left}[dir=rtl] .mat-form-field{text-align:right}.mat-form-field-wrapper{position:relative}.mat-form-field-flex{display:inline-flex;align-items:baseline;box-sizing:border-box;width:100%}.mat-form-field-prefix,.mat-form-field-suffix{white-space:nowrap;flex:none;position:relative}.mat-form-field-infix{display:block;position:relative;flex:auto;min-width:0;width:180px}.cdk-high-contrast-active .mat-form-field-infix{border-image:linear-gradient(transparent, transparent)}.mat-form-field-label-wrapper{position:absolute;left:0;box-sizing:content-box;width:100%;height:100%;overflow:hidden;pointer-events:none}[dir=rtl] .mat-form-field-label-wrapper{left:auto;right:0}.mat-form-field-label{position:absolute;left:0;font:inherit;pointer-events:none;width:100%;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;transform-origin:0 0;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),color 400ms cubic-bezier(0.25, 0.8, 0.25, 1),width 400ms cubic-bezier(0.25, 0.8, 0.25, 1);display:none}[dir=rtl] .mat-form-field-label{transform-origin:100% 0;left:auto;right:0}.mat-form-field-empty.mat-form-field-label,.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-label{display:block}.mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-label-wrapper .mat-form-field-label{display:none}.mat-form-field-can-float .mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-label-wrapper .mat-form-field-label{display:block;transition:none}.mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label,.mat-input-server[placeholder]:not(:placeholder-shown)+.mat-form-field-label-wrapper .mat-form-field-label{display:none}.mat-form-field-can-float .mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label,.mat-form-field-can-float .mat-input-server[placeholder]:not(:placeholder-shown)+.mat-form-field-label-wrapper .mat-form-field-label{display:block}.mat-form-field-label:not(.mat-form-field-empty){transition:none}.mat-form-field-underline{position:absolute;width:100%;pointer-events:none;transform:scale3d(1, 1.0001, 1)}.mat-form-field-ripple{position:absolute;left:0;width:100%;transform-origin:50%;transform:scaleX(0.5);opacity:0;transition:background-color 300ms cubic-bezier(0.55, 0, 0.55, 0.2)}.mat-form-field.mat-focused .mat-form-field-ripple,.mat-form-field.mat-form-field-invalid .mat-form-field-ripple{opacity:1;transform:none;transition:transform 300ms cubic-bezier(0.25, 0.8, 0.25, 1),opacity 100ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 300ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-subscript-wrapper{position:absolute;box-sizing:border-box;width:100%;overflow:hidden}.mat-form-field-subscript-wrapper .mat-icon,.mat-form-field-label-wrapper .mat-icon{width:1em;height:1em;font-size:inherit;vertical-align:baseline}.mat-form-field-hint-wrapper{display:flex}.mat-form-field-hint-spacer{flex:1 0 1em}.mat-error{display:block}.mat-form-field-control-wrapper{position:relative}.mat-form-field-hint-end{order:1}.mat-form-field._mat-animation-noopable .mat-form-field-label,.mat-form-field._mat-animation-noopable .mat-form-field-ripple{transition:none}\n",'.mat-form-field-appearance-fill .mat-form-field-flex{border-radius:4px 4px 0 0;padding:.75em .75em 0 .75em}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-form-field-flex{outline:solid 1px}.mat-form-field-appearance-fill .mat-form-field-underline::before{content:"";display:block;position:absolute;bottom:0;height:1px;width:100%}.mat-form-field-appearance-fill .mat-form-field-ripple{bottom:0;height:2px}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-form-field-ripple{height:0;border-top:solid 2px}.mat-form-field-appearance-fill:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{opacity:1;transform:none;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-fill._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{transition:none}.mat-form-field-appearance-fill .mat-form-field-subscript-wrapper{padding:0 1em}\n','.mat-input-element{font:inherit;background:transparent;color:currentColor;border:none;outline:none;padding:0;margin:0;width:100%;max-width:100%;vertical-align:bottom;text-align:inherit;box-sizing:content-box}.mat-input-element:-moz-ui-invalid{box-shadow:none}.mat-input-element::-ms-clear,.mat-input-element::-ms-reveal{display:none}.mat-input-element,.mat-input-element::-webkit-search-cancel-button,.mat-input-element::-webkit-search-decoration,.mat-input-element::-webkit-search-results-button,.mat-input-element::-webkit-search-results-decoration{-webkit-appearance:none}.mat-input-element::-webkit-contacts-auto-fill-button,.mat-input-element::-webkit-caps-lock-indicator,.mat-input-element::-webkit-credentials-auto-fill-button{visibility:hidden}.mat-input-element[type=date],.mat-input-element[type=datetime],.mat-input-element[type=datetime-local],.mat-input-element[type=month],.mat-input-element[type=week],.mat-input-element[type=time]{line-height:1}.mat-input-element[type=date]::after,.mat-input-element[type=datetime]::after,.mat-input-element[type=datetime-local]::after,.mat-input-element[type=month]::after,.mat-input-element[type=week]::after,.mat-input-element[type=time]::after{content:" ";white-space:pre;width:1px}.mat-input-element::-webkit-inner-spin-button,.mat-input-element::-webkit-calendar-picker-indicator,.mat-input-element::-webkit-clear-button{font-size:.75em}.mat-input-element::placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::placeholder:-ms-input-placeholder{-ms-user-select:text}.mat-input-element::-moz-placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::-moz-placeholder:-ms-input-placeholder{-ms-user-select:text}.mat-input-element::-webkit-input-placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::-webkit-input-placeholder:-ms-input-placeholder{-ms-user-select:text}.mat-input-element:-ms-input-placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element:-ms-input-placeholder:-ms-input-placeholder{-ms-user-select:text}.mat-form-field-hide-placeholder .mat-input-element::placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.mat-form-field-hide-placeholder .mat-input-element::-moz-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.mat-form-field-hide-placeholder .mat-input-element::-webkit-input-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.mat-form-field-hide-placeholder .mat-input-element:-ms-input-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}textarea.mat-input-element{resize:vertical;overflow:auto}textarea.mat-input-element.cdk-textarea-autosize{resize:none}textarea.mat-input-element{padding:2px 0;margin:-2px 0}select.mat-input-element{-moz-appearance:none;-webkit-appearance:none;position:relative;background-color:transparent;display:inline-flex;box-sizing:border-box;padding-top:1em;top:-1em;margin-bottom:-1em}select.mat-input-element::-ms-expand{display:none}select.mat-input-element::-moz-focus-inner{border:0}select.mat-input-element:not(:disabled){cursor:pointer}select.mat-input-element::-ms-value{color:inherit;background:none}.mat-focused .cdk-high-contrast-active select.mat-input-element::-ms-value{color:inherit}.mat-form-field-type-mat-native-select .mat-form-field-infix::after{content:"";width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;position:absolute;top:50%;right:0;margin-top:-2.5px;pointer-events:none}[dir=rtl] .mat-form-field-type-mat-native-select .mat-form-field-infix::after{right:auto;left:0}.mat-form-field-type-mat-native-select .mat-input-element{padding-right:15px}[dir=rtl] .mat-form-field-type-mat-native-select .mat-input-element{padding-right:0;padding-left:15px}.mat-form-field-type-mat-native-select .mat-form-field-label-wrapper{max-width:calc(100% - 10px)}.mat-form-field-type-mat-native-select.mat-form-field-appearance-outline .mat-form-field-infix::after{margin-top:-5px}.mat-form-field-type-mat-native-select.mat-form-field-appearance-fill .mat-form-field-infix::after{margin-top:-10px}\n',".mat-form-field-appearance-legacy .mat-form-field-label{transform:perspective(100px);-ms-transform:none}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon{width:1em}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon-button,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon-button{font:inherit;vertical-align:baseline}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon-button .mat-icon{font-size:inherit}.mat-form-field-appearance-legacy .mat-form-field-underline{height:1px}.cdk-high-contrast-active .mat-form-field-appearance-legacy .mat-form-field-underline{height:0;border-top:solid 1px}.mat-form-field-appearance-legacy .mat-form-field-ripple{top:0;height:2px;overflow:hidden}.cdk-high-contrast-active .mat-form-field-appearance-legacy .mat-form-field-ripple{height:0;border-top:solid 2px}.mat-form-field-appearance-legacy.mat-form-field-disabled .mat-form-field-underline{background-position:0;background-color:transparent}.cdk-high-contrast-active .mat-form-field-appearance-legacy.mat-form-field-disabled .mat-form-field-underline{border-top-style:dotted;border-top-width:2px}.mat-form-field-appearance-legacy.mat-form-field-invalid:not(.mat-focused) .mat-form-field-ripple{height:1px}\n",".mat-form-field-appearance-outline .mat-form-field-wrapper{margin:.25em 0}.mat-form-field-appearance-outline .mat-form-field-flex{padding:0 .75em 0 .75em;margin-top:-0.25em;position:relative}.mat-form-field-appearance-outline .mat-form-field-prefix,.mat-form-field-appearance-outline .mat-form-field-suffix{top:.25em}.mat-form-field-appearance-outline .mat-form-field-outline{display:flex;position:absolute;top:.25em;left:0;right:0;bottom:0;pointer-events:none}.mat-form-field-appearance-outline .mat-form-field-outline-start,.mat-form-field-appearance-outline .mat-form-field-outline-end{border:1px solid currentColor;min-width:5px}.mat-form-field-appearance-outline .mat-form-field-outline-start{border-radius:5px 0 0 5px;border-right-style:none}[dir=rtl] .mat-form-field-appearance-outline .mat-form-field-outline-start{border-right-style:solid;border-left-style:none;border-radius:0 5px 5px 0}.mat-form-field-appearance-outline .mat-form-field-outline-end{border-radius:0 5px 5px 0;border-left-style:none;flex-grow:1}[dir=rtl] .mat-form-field-appearance-outline .mat-form-field-outline-end{border-left-style:solid;border-right-style:none;border-radius:5px 0 0 5px}.mat-form-field-appearance-outline .mat-form-field-outline-gap{border-radius:.000001px;border:1px solid currentColor;border-left-style:none;border-right-style:none}.mat-form-field-appearance-outline.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-outline-gap{border-top-color:transparent}.mat-form-field-appearance-outline .mat-form-field-outline-thick{opacity:0}.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-start,.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-end,.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-gap{border-width:2px}.mat-form-field-appearance-outline.mat-focused .mat-form-field-outline,.mat-form-field-appearance-outline.mat-form-field-invalid .mat-form-field-outline{opacity:0;transition:opacity 100ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-outline.mat-focused .mat-form-field-outline-thick,.mat-form-field-appearance-outline.mat-form-field-invalid .mat-form-field-outline-thick{opacity:1}.mat-form-field-appearance-outline:not(.mat-form-field-disabled) .mat-form-field-flex:hover .mat-form-field-outline{opacity:0;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-outline:not(.mat-form-field-disabled) .mat-form-field-flex:hover .mat-form-field-outline-thick{opacity:1}.mat-form-field-appearance-outline .mat-form-field-subscript-wrapper{padding:0 1em}.mat-form-field-appearance-outline._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-outline,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-start,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-end,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-gap{transition:none}\n",".mat-form-field-appearance-standard .mat-form-field-flex{padding-top:.75em}.mat-form-field-appearance-standard .mat-form-field-underline{height:1px}.cdk-high-contrast-active .mat-form-field-appearance-standard .mat-form-field-underline{height:0;border-top:solid 1px}.mat-form-field-appearance-standard .mat-form-field-ripple{bottom:0;height:2px}.cdk-high-contrast-active .mat-form-field-appearance-standard .mat-form-field-ripple{height:0;border-top:solid 2px}.mat-form-field-appearance-standard.mat-form-field-disabled .mat-form-field-underline{background-position:0;background-color:transparent}.cdk-high-contrast-active .mat-form-field-appearance-standard.mat-form-field-disabled .mat-form-field-underline{border-top-style:dotted;border-top-width:2px}.mat-form-field-appearance-standard:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{opacity:1;transform:none;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-standard._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{transition:none}\n"],encapsulation:2,data:{animation:[ZL.transitionMessages]},changeDetection:0}),WL),aF=((UL=function e(){A(this,e)}).\u0275fac=function(e){return new(e||UL)},UL.\u0275mod=mt({type:UL}),UL.\u0275inj=Fe({imports:[[Zh,kI,ET],kI]}),UL);function sF(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:nT,i=(t=e)instanceof Date&&!isNaN(+t)?+e-n.now():Math.abs(e);return function(e){return e.lift(new hF(i,n))}}var lF,uF,cF,dF,hF=function(){function e(t,n){A(this,e),this.delay=t,this.scheduler=n}return m(e,[{key:"call",value:function(e,t){return t.subscribe(new fF(e,this.delay,this.scheduler))}}]),e}(),fF=function(e){r(n,e);var t=a(n);function n(e,i,r){var o;return A(this,n),(o=t.call(this,e)).delay=i,o.scheduler=r,o.queue=[],o.active=!1,o.errored=!1,o}return m(n,[{key:"_schedule",value:function(e){this.active=!0,this.destination.add(e.schedule(n.dispatch,this.delay,{source:this,destination:this.destination,scheduler:e}))}},{key:"scheduleNotification",value:function(e){if(!0!==this.errored){var t=this.scheduler,n=new pF(t.now()+this.delay,e);this.queue.push(n),!1===this.active&&this._schedule(t)}}},{key:"_next",value:function(e){this.scheduleNotification(EP.createNext(e))}},{key:"_error",value:function(e){this.errored=!0,this.queue=[],this.destination.error(e),this.unsubscribe()}},{key:"_complete",value:function(){this.scheduleNotification(EP.createComplete()),this.unsubscribe()}}],[{key:"dispatch",value:function(e){for(var t=e.source,n=t.queue,i=e.scheduler,r=e.destination;n.length>0&&n[0].time-i.now()<=0;)n.shift().notification.observe(r);if(n.length>0){var o=Math.max(0,n[0].time-i.now());this.schedule(e,o)}else this.unsubscribe(),t.active=!1}}]),n}(I),pF=function e(t,n){A(this,e),this.time=t,this.notification=n},gF={provide:new mi("mat-autocomplete-scroll-strategy"),deps:[yL],useFactory:function(e){return function(){return e.scrollStrategies.reposition()}}},vF=((uF=function e(){A(this,e)}).\u0275fac=function(e){return new(e||uF)},uF.\u0275mod=mt({type:uF}),uF.\u0275inj=Fe({providers:[gF],imports:[[AL,aR,kI,Zh],TR,aR,kI]}),uF),mF=((lF=function e(){A(this,e)}).\u0275fac=function(e){return new(e||lF)},lF.\u0275mod=mt({type:lF}),lF.\u0275inj=Fe({imports:[[uI,kI],kI]}),lF),yF=function(){function e(t){A(this,e),this.total=t}return m(e,[{key:"call",value:function(e,t){return t.subscribe(new bF(e,this.total))}}]),e}(),bF=function(e){r(n,e);var t=a(n);function n(e,i){var r;return A(this,n),(r=t.call(this,e)).total=i,r.count=0,r}return m(n,[{key:"_next",value:function(e){++this.count>this.total&&this.destination.next(e)}}]),n}(I),wF=new Set,_F=((dF=function(){function e(t){A(this,e),this._platform=t,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):kF}return m(e,[{key:"matchMedia",value:function(e){return this._platform.WEBKIT&&function(e){if(!wF.has(e))try{cF||((cF=document.createElement("style")).setAttribute("type","text/css"),document.head.appendChild(cF)),cF.sheet&&(cF.sheet.insertRule("@media ".concat(e," {.fx-query-test{ }}"),0),wF.add(e))}catch(t){console.error(t)}}(e),this._matchMedia(e)}}]),e}()).\u0275fac=function(e){return new(e||dF)(Ri(mT))},dF.\u0275prov=Re({factory:function(){return new dF(Ri(mT))},token:dF,providedIn:"root"}),dF);function kF(e){return{matches:"all"===e||""===e,media:e,addListener:function(){},removeListener:function(){}}}var xF,AF=((xF=function(){function e(t,n){A(this,e),this._mediaMatcher=t,this._zone=n,this._queries=new Map,this._destroySubject=new W}return m(e,[{key:"ngOnDestroy",value:function(){this._destroySubject.next(),this._destroySubject.complete()}},{key:"isMatched",value:function(e){var t=this;return CF(cT(e)).some(function(e){return t._registerQuery(e).mql.matches})}},{key:"observe",value:function(e){var t=this,n=Db(CF(cT(e)).map(function(e){return t._registerQuery(e).observable}));return(n=Ib(n.pipe(Hb(1)),n.pipe(function(e){return e.lift(new yF(1))},iT(0)))).pipe(Y(function(e){var t={matches:!1,breakpoints:{}};return e.forEach(function(e){var n=e.matches,i=e.query;t.matches=t.matches||n,t.breakpoints[i]=n}),t}))}},{key:"_registerQuery",value:function(e){var t=this;if(this._queries.has(e))return this._queries.get(e);var n=this._mediaMatcher.matchMedia(e),i={observable:new V(function(e){var i=function(n){return t._zone.run(function(){return e.next(n)})};return n.addListener(i),function(){n.removeListener(i)}}).pipe(Wb(n),Y(function(t){var n=t.matches;return{query:e,matches:n}}),kR(this._destroySubject)),mql:n};return this._queries.set(e,i),i}}]),e}()).\u0275fac=function(e){return new(e||xF)(Ri(_F),Ri(Ac))},xF.\u0275prov=Re({factory:function(){return new xF(Ri(_F),Ri(Ac))},token:xF,providedIn:"root"}),xF);function CF(e){return e.map(function(e){return e.split(",")}).reduce(function(e,t){return e.concat(t)}).map(function(e){return e.trim()})}function SF(e,t){}var PF,EF,DF,OF,MF,TF,IF,RF,LF=new mi("MatBottomSheetData"),FF=function e(){A(this,e),this.data=null,this.hasBackdrop=!0,this.disableClose=!1,this.ariaLabel=null,this.closeOnNavigation=!0,this.autoFocus=!1,this.restoreFocus=!0},BF={bottomSheetState:Xf("state",[ep("void, hidden",$f({transform:"translateY(100%)"})),ep("visible",$f({transform:"translateY(0%)"})),np("visible => void, visible => hidden",Kf("".concat(bI.COMPLEX," ").concat(yI.ACCELERATION_CURVE))),np("void => visible",Kf("".concat(bI.EXITING," ").concat(yI.DECELERATION_CURVE)))])},VF=((EF=function(e){r(n,e);var t=a(n);function n(e,i,r,o,a,s){var l;return A(this,n),(l=t.call(this))._elementRef=e,l._changeDetectorRef=i,l._focusTrapFactory=r,l.bottomSheetConfig=s,l._animationState="void",l._animationStateChanged=new Fu,l._elementFocusedBeforeOpened=null,l.attachDomPortal=function(e){return l._validatePortalAttached(),l._setPanelClass(),l._savePreviouslyFocusedElement(),l._portalOutlet.attachDomPortal(e)},l._document=a,l._breakpointSubscription=o.observe(["(min-width: 960px) and (max-width: 1279.98px)","(min-width: 1280px) and (max-width: 1919.98px)","(min-width: 1920px)"]).subscribe(function(){l._toggleClass("mat-bottom-sheet-container-medium",o.isMatched("(min-width: 960px) and (max-width: 1279.98px)")),l._toggleClass("mat-bottom-sheet-container-large",o.isMatched("(min-width: 1280px) and (max-width: 1919.98px)")),l._toggleClass("mat-bottom-sheet-container-xlarge",o.isMatched("(min-width: 1920px)"))}),l}return m(n,[{key:"attachComponentPortal",value:function(e){return this._validatePortalAttached(),this._setPanelClass(),this._savePreviouslyFocusedElement(),this._portalOutlet.attachComponentPortal(e)}},{key:"attachTemplatePortal",value:function(e){return this._validatePortalAttached(),this._setPanelClass(),this._savePreviouslyFocusedElement(),this._portalOutlet.attachTemplatePortal(e)}},{key:"enter",value:function(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.detectChanges())}},{key:"exit",value:function(){this._destroyed||(this._animationState="hidden",this._changeDetectorRef.markForCheck())}},{key:"ngOnDestroy",value:function(){this._breakpointSubscription.unsubscribe(),this._destroyed=!0}},{key:"_onAnimationDone",value:function(e){"hidden"===e.toState?this._restoreFocus():"visible"===e.toState&&this._trapFocus(),this._animationStateChanged.emit(e)}},{key:"_onAnimationStart",value:function(e){this._animationStateChanged.emit(e)}},{key:"_toggleClass",value:function(e,t){var n=this._elementRef.nativeElement.classList;t?n.add(e):n.remove(e)}},{key:"_validatePortalAttached",value:function(){this._portalOutlet.hasAttached()}},{key:"_setPanelClass",value:function(){var e=this._elementRef.nativeElement,t=this.bottomSheetConfig.panelClass;Array.isArray(t)?t.forEach(function(t){return e.classList.add(t)}):t&&e.classList.add(t)}},{key:"_trapFocus",value:function(){var e=this._elementRef.nativeElement;if(this._focusTrap||(this._focusTrap=this._focusTrapFactory.create(e)),this.bottomSheetConfig.autoFocus)this._focusTrap.focusInitialElementWhenReady();else{var t=this._getActiveElement();t===e||e.contains(t)||e.focus()}}},{key:"_restoreFocus",value:function(){var e=this._elementFocusedBeforeOpened;if(this.bottomSheetConfig.restoreFocus&&e&&"function"==typeof e.focus){var t=this._getActiveElement(),n=this._elementRef.nativeElement;t&&t!==this._document.body&&t!==n&&!n.contains(t)||e.focus()}this._focusTrap&&this._focusTrap.destroy()}},{key:"_savePreviouslyFocusedElement",value:function(){var e=this;this._elementFocusedBeforeOpened=this._getActiveElement(),this._elementRef.nativeElement.focus&&Promise.resolve().then(function(){return e._elementRef.nativeElement.focus()})}},{key:"_getActiveElement",value:function(){var e,t=this._document.activeElement;return(null===(e=null==t?void 0:t.shadowRoot)||void 0===e?void 0:e.activeElement)||t}}]),n}(xE)).\u0275fac=function(e){return new(e||EF)(rs(Cl),rs(Kl),rs(qT),rs(AF),rs(od,8),rs(FF))},EF.\u0275cmp=ft({type:EF,selectors:[["mat-bottom-sheet-container"]],viewQuery:function(e,t){var n;1&e&&Qu(CE,3),2&e&&Zu(n=Ku())&&(t._portalOutlet=n.first)},hostAttrs:["tabindex","-1","role","dialog","aria-modal","true",1,"mat-bottom-sheet-container"],hostVars:2,hostBindings:function(e,t){1&e&&ys("@state.start",function(e){return t._onAnimationStart(e)})("@state.done",function(e){return t._onAnimationDone(e)}),2&e&&($a("aria-label",null==t.bottomSheetConfig?null:t.bottomSheetConfig.ariaLabel),il("@state",t._animationState))},features:[Va],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,t){1&e&&ns(0,SF,0,0,"ng-template",0)},directives:[CE],styles:[".mat-bottom-sheet-container{padding:8px 16px;min-width:100vw;box-sizing:border-box;display:block;outline:0;max-height:80vh;overflow:auto}.cdk-high-contrast-active .mat-bottom-sheet-container{outline:1px solid}.mat-bottom-sheet-container-xlarge,.mat-bottom-sheet-container-large,.mat-bottom-sheet-container-medium{border-top-left-radius:4px;border-top-right-radius:4px}.mat-bottom-sheet-container-medium{min-width:384px;max-width:calc(100vw - 128px)}.mat-bottom-sheet-container-large{min-width:512px;max-width:calc(100vw - 256px)}.mat-bottom-sheet-container-xlarge{min-width:576px;max-width:calc(100vw - 384px)}\n"],encapsulation:2,data:{animation:[BF.bottomSheetState]}}),EF),zF=((PF=function e(){A(this,e)}).\u0275fac=function(e){return new(e||PF)},PF.\u0275mod=mt({type:PF}),PF.\u0275inj=Fe({imports:[[AL,kI,SE],kI]}),PF),NF=function(){function e(t,n){var i=this;A(this,e),this._overlayRef=n,this._afterDismissed=new W,this._afterOpened=new W,this.containerInstance=t,this.disableClose=t.bottomSheetConfig.disableClose,t._animationStateChanged.pipe(Ry(function(e){return"done"===e.phaseName&&"visible"===e.toState}),Hb(1)).subscribe(function(){i._afterOpened.next(),i._afterOpened.complete()}),t._animationStateChanged.pipe(Ry(function(e){return"done"===e.phaseName&&"hidden"===e.toState}),Hb(1)).subscribe(function(){clearTimeout(i._closeFallbackTimeout),n.dispose()}),n.detachments().pipe(Hb(1)).subscribe(function(){i._afterDismissed.next(i._result),i._afterDismissed.complete()}),he(n.backdropClick(),n.keydownEvents().pipe(Ry(function(e){return 27===e.keyCode}))).subscribe(function(e){i.disableClose||"keydown"===e.type&&tT(e)||(e.preventDefault(),i.dismiss())})}return m(e,[{key:"dismiss",value:function(e){var t=this;this._afterDismissed.closed||(this.containerInstance._animationStateChanged.pipe(Ry(function(e){return"start"===e.phaseName}),Hb(1)).subscribe(function(e){t._closeFallbackTimeout=setTimeout(function(){t._overlayRef.dispose()},e.totalTime+100),t._overlayRef.detachBackdrop()}),this._result=e,this.containerInstance.exit())}},{key:"afterDismissed",value:function(){return this._afterDismissed}},{key:"afterOpened",value:function(){return this._afterOpened}},{key:"backdropClick",value:function(){return this._overlayRef.backdropClick()}},{key:"keydownEvents",value:function(){return this._overlayRef.keydownEvents()}}]),e}(),HF=new mi("mat-bottom-sheet-default-options"),jF=((DF=function(){function e(t,n,i,r){A(this,e),this._overlay=t,this._injector=n,this._parentBottomSheet=i,this._defaultOptions=r,this._bottomSheetRefAtThisLevel=null}return m(e,[{key:"_openedBottomSheetRef",get:function(){var e=this._parentBottomSheet;return e?e._openedBottomSheetRef:this._bottomSheetRefAtThisLevel},set:function(e){this._parentBottomSheet?this._parentBottomSheet._openedBottomSheetRef=e:this._bottomSheetRefAtThisLevel=e}},{key:"open",value:function(e,t){var n=this,i=function(e,t){return Object.assign(Object.assign({},e),t)}(this._defaultOptions||new FF,t),r=this._createOverlay(i),o=this._attachContainer(r,i),a=new NF(o,r);if(e instanceof iu)o.attachTemplatePortal(new _E(e,null,{$implicit:i.data,bottomSheetRef:a}));else{var s=new wE(e,void 0,this._createInjector(i,a)),l=o.attachComponentPortal(s);a.instance=l.instance}return a.afterDismissed().subscribe(function(){n._openedBottomSheetRef==a&&(n._openedBottomSheetRef=null)}),this._openedBottomSheetRef?(this._openedBottomSheetRef.afterDismissed().subscribe(function(){return a.containerInstance.enter()}),this._openedBottomSheetRef.dismiss()):a.containerInstance.enter(),this._openedBottomSheetRef=a,a}},{key:"dismiss",value:function(e){this._openedBottomSheetRef&&this._openedBottomSheetRef.dismiss(e)}},{key:"ngOnDestroy",value:function(){this._bottomSheetRefAtThisLevel&&this._bottomSheetRefAtThisLevel.dismiss()}},{key:"_attachContainer",value:function(e,t){var n=Fa.create({parent:t&&t.viewContainerRef&&t.viewContainerRef.injector||this._injector,providers:[{provide:FF,useValue:t}]}),i=new wE(VF,t.viewContainerRef,n);return e.attach(i).instance}},{key:"_createOverlay",value:function(e){var t=new QR({direction:e.direction,hasBackdrop:e.hasBackdrop,disposeOnNavigation:e.closeOnNavigation,maxWidth:"100%",scrollStrategy:e.scrollStrategy||this._overlay.scrollStrategies.block(),positionStrategy:this._overlay.position().global().centerHorizontally().bottom("0")});return e.backdropClass&&(t.backdropClass=e.backdropClass),this._overlay.create(t)}},{key:"_createInjector",value:function(e,t){var n=e&&e.viewContainerRef&&e.viewContainerRef.injector,i=[{provide:NF,useValue:t},{provide:LF,useValue:e.data}];return!e.direction||n&&n.get(dI,null)||i.push({provide:dI,useValue:{value:e.direction,change:Ty()}}),Fa.create({parent:n||this._injector,providers:i})}}]),e}()).\u0275fac=function(e){return new(e||DF)(Ri(yL),Ri(Fa),Ri(DF,12),Ri(HF,8))},DF.\u0275prov=Re({factory:function(){return new DF(Ri(yL),Ri(wa),Ri(DF,12),Ri(HF,8))},token:DF,providedIn:zF}),DF),UF=["mat-button",""],WF=["*"],GF=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],qF=AI(xI(CI(function e(t){A(this,e),this._elementRef=t}))),YF=((RF=function(e){r(n,e);var t=a(n);function n(e,i,r){var o;A(this,n),(o=t.call(this,e))._focusMonitor=i,o._animationMode=r,o.isRoundButton=o._hasHostAttributes("mat-fab","mat-mini-fab"),o.isIconButton=o._hasHostAttributes("mat-icon-button");var a,s=h(GF);try{for(s.s();!(a=s.n()).done;){var l=a.value;o._hasHostAttributes(l)&&o._getHostElement().classList.add(l)}}catch(u){s.e(u)}finally{s.f()}return e.nativeElement.classList.add("mat-button-base"),o.isRoundButton&&(o.color="accent"),o}return m(n,[{key:"ngAfterViewInit",value:function(){this._focusMonitor.monitor(this._elementRef,!0)}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef)}},{key:"focus",value:function(e,t){e?this._focusMonitor.focusVia(this._getHostElement(),e,t):this._getHostElement().focus(t)}},{key:"_getHostElement",value:function(){return this._elementRef.nativeElement}},{key:"_isRippleDisabled",value:function(){return this.disableRipple||this.disabled}},{key:"_hasHostAttributes",value:function(){for(var e=this,t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return n.some(function(t){return e._getHostElement().hasAttribute(t)})}}]),n}(qF)).\u0275fac=function(e){return new(e||RF)(rs(Cl),rs(nI),rs(_v,8))},RF.\u0275cmp=ft({type:RF,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-icon-button",""],["button","mat-fab",""],["button","mat-mini-fab",""],["button","mat-stroked-button",""],["button","mat-flat-button",""]],viewQuery:function(e,t){var n;1&e&&Qu(GI,1),2&e&&Zu(n=Ku())&&(t.ripple=n.first)},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(e,t){2&e&&($a("disabled",t.disabled||null),Fs("_mat-animation-noopable","NoopAnimations"===t._animationMode)("mat-button-disabled",t.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[Va],attrs:UF,ngContentSelectors:WF,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(e,t){1&e&&(As(),ss(0,"span",0),Cs(1),ls(),us(2,"span",1),us(3,"span",2)),2&e&&(xo(2),Fs("mat-button-ripple-round",t.isRoundButton||t.isIconButton),os("matRippleDisabled",t._isRippleDisabled())("matRippleCentered",t.isIconButton)("matRippleTrigger",t._getHostElement()))},directives:[GI],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n"],encapsulation:2,changeDetection:0}),RF),ZF=((IF=function e(){A(this,e)}).\u0275fac=function(e){return new(e||IF)},IF.\u0275mod=mt({type:IF}),IF.\u0275inj=Fe({imports:[[qI,kI],kI]}),IF),QF=((TF=function e(){A(this,e)}).\u0275fac=function(e){return new(e||TF)},TF.\u0275mod=mt({type:TF}),TF.\u0275inj=Fe({imports:[[kI],kI]}),TF),XF=((MF=function e(){A(this,e)}).\u0275fac=function(e){return new(e||MF)},MF.\u0275mod=mt({type:MF}),MF.\u0275inj=Fe({}),MF),KF=((OF=function e(){A(this,e)}).\u0275fac=function(e){return new(e||OF)},OF.\u0275mod=mt({type:OF}),OF.\u0275inj=Fe({imports:[[qI,kI,ET,XF],kI,XF]}),OF);function JF(e,t){}var $F,eB,tB=function e(){A(this,e),this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.autoFocus=!0,this.restoreFocus=!0,this.closeOnNavigation=!0},nB={dialogContainer:Xf("dialogContainer",[ep("void, exit",$f({opacity:0,transform:"scale(0.7)"})),ep("enter",$f({transform:"none"})),np("* => enter",Kf("150ms cubic-bezier(0, 0, 0.2, 1)",$f({transform:"none",opacity:1}))),np("* => void, * => exit",Kf("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",$f({opacity:0})))])},iB=((eB=function(e){r(n,e);var t=a(n);function n(e,i,r,o,a,s){var l;return A(this,n),(l=t.call(this))._elementRef=e,l._focusTrapFactory=i,l._changeDetectorRef=r,l._config=a,l._focusMonitor=s,l._animationStateChanged=new Fu,l._elementFocusedBeforeDialogWasOpened=null,l._closeInteractionType=null,l.attachDomPortal=function(e){return l._portalOutlet.hasAttached(),l._portalOutlet.attachDomPortal(e)},l._ariaLabelledBy=a.ariaLabelledBy||null,l._document=o,l}return m(n,[{key:"_initializeWithAttachedContent",value:function(){this._setupFocusTrap(),this._capturePreviouslyFocusedElement(),this._focusDialogContainer()}},{key:"attachComponentPortal",value:function(e){return this._portalOutlet.hasAttached(),this._portalOutlet.attachComponentPortal(e)}},{key:"attachTemplatePortal",value:function(e){return this._portalOutlet.hasAttached(),this._portalOutlet.attachTemplatePortal(e)}},{key:"_recaptureFocus",value:function(){this._containsFocus()||(!this._config.autoFocus||!this._focusTrap.focusInitialElement())&&this._elementRef.nativeElement.focus()}},{key:"_trapFocus",value:function(){this._config.autoFocus?this._focusTrap.focusInitialElementWhenReady():this._containsFocus()||this._elementRef.nativeElement.focus()}},{key:"_restoreFocus",value:function(){var e=this._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&e&&"function"==typeof e.focus){var t=this._getActiveElement(),n=this._elementRef.nativeElement;t&&t!==this._document.body&&t!==n&&!n.contains(t)||(this._focusMonitor?(this._focusMonitor.focusVia(e,this._closeInteractionType),this._closeInteractionType=null):e.focus())}this._focusTrap&&this._focusTrap.destroy()}},{key:"_setupFocusTrap",value:function(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement)}},{key:"_capturePreviouslyFocusedElement",value:function(){this._document&&(this._elementFocusedBeforeDialogWasOpened=this._getActiveElement())}},{key:"_focusDialogContainer",value:function(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}},{key:"_containsFocus",value:function(){var e=this._elementRef.nativeElement,t=this._getActiveElement();return e===t||e.contains(t)}},{key:"_getActiveElement",value:function(){var e,t=this._document.activeElement;return(null===(e=null==t?void 0:t.shadowRoot)||void 0===e?void 0:e.activeElement)||t}}]),n}(xE)).\u0275fac=function(e){return new(e||eB)(rs(Cl),rs(qT),rs(Kl),rs(od,8),rs(tB),rs(nI))},eB.\u0275dir=bt({type:eB,viewQuery:function(e,t){var n;1&e&&Qu(CE,3),2&e&&Zu(n=Ku())&&(t._portalOutlet=n.first)},features:[Va]}),eB),rB=(($F=function(e){r(n,e);var t=a(n);function n(){var e;return A(this,n),(e=t.apply(this,arguments))._state="enter",e}return m(n,[{key:"_onAnimationDone",value:function(e){var t=e.toState,n=e.totalTime;"enter"===t?(this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:n})):"exit"===t&&(this._restoreFocus(),this._animationStateChanged.next({state:"closed",totalTime:n}))}},{key:"_onAnimationStart",value:function(e){var t=e.toState,n=e.totalTime;"enter"===t?this._animationStateChanged.next({state:"opening",totalTime:n}):"exit"!==t&&"void"!==t||this._animationStateChanged.next({state:"closing",totalTime:n})}},{key:"_startExitAnimation",value:function(){this._state="exit",this._changeDetectorRef.markForCheck()}}]),n}(iB)).\u0275fac=function(e){return oB(e||$F)},$F.\u0275cmp=ft({type:$F,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(e,t){1&e&&ys("@dialogContainer.start",function(e){return t._onAnimationStart(e)})("@dialogContainer.done",function(e){return t._onAnimationDone(e)}),2&e&&(nl("id",t._id),$a("role",t._config.role)("aria-labelledby",t._config.ariaLabel?null:t._ariaLabelledBy)("aria-label",t._config.ariaLabel)("aria-describedby",t._config.ariaDescribedBy||null),il("@dialogContainer",t._state))},features:[Va],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,t){1&e&&ns(0,JF,0,0,"ng-template",0)},directives:[CE],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[nB.dialogContainer]}}),$F),oB=hi(rB),aB=0,sB=function(){function e(t,n){var i=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"mat-dialog-"+aB++;A(this,e),this._overlayRef=t,this._containerInstance=n,this.id=r,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new W,this._afterClosed=new W,this._beforeClosed=new W,this._state=0,n._id=r,n._animationStateChanged.pipe(Ry(function(e){return"opened"===e.state}),Hb(1)).subscribe(function(){i._afterOpened.next(),i._afterOpened.complete()}),n._animationStateChanged.pipe(Ry(function(e){return"closed"===e.state}),Hb(1)).subscribe(function(){clearTimeout(i._closeFallbackTimeout),i._finishDialogClose()}),t.detachments().subscribe(function(){i._beforeClosed.next(i._result),i._beforeClosed.complete(),i._afterClosed.next(i._result),i._afterClosed.complete(),i.componentInstance=null,i._overlayRef.dispose()}),t.keydownEvents().pipe(Ry(function(e){return 27===e.keyCode&&!i.disableClose&&!tT(e)})).subscribe(function(e){e.preventDefault(),lB(i,"keyboard")}),t.backdropClick().subscribe(function(){i.disableClose?i._containerInstance._recaptureFocus():lB(i,"mouse")})}return m(e,[{key:"close",value:function(e){var t=this;this._result=e,this._containerInstance._animationStateChanged.pipe(Ry(function(e){return"closing"===e.state}),Hb(1)).subscribe(function(n){t._beforeClosed.next(e),t._beforeClosed.complete(),t._overlayRef.detachBackdrop(),t._closeFallbackTimeout=setTimeout(function(){return t._finishDialogClose()},n.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}},{key:"afterOpened",value:function(){return this._afterOpened}},{key:"afterClosed",value:function(){return this._afterClosed}},{key:"beforeClosed",value:function(){return this._beforeClosed}},{key:"backdropClick",value:function(){return this._overlayRef.backdropClick()}},{key:"keydownEvents",value:function(){return this._overlayRef.keydownEvents()}},{key:"updatePosition",value:function(e){var t=this._getPositionStrategy();return e&&(e.left||e.right)?e.left?t.left(e.left):t.right(e.right):t.centerHorizontally(),e&&(e.top||e.bottom)?e.top?t.top(e.top):t.bottom(e.bottom):t.centerVertically(),this._overlayRef.updatePosition(),this}},{key:"updateSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return this._overlayRef.updateSize({width:e,height:t}),this._overlayRef.updatePosition(),this}},{key:"addPanelClass",value:function(e){return this._overlayRef.addPanelClass(e),this}},{key:"removePanelClass",value:function(e){return this._overlayRef.removePanelClass(e),this}},{key:"getState",value:function(){return this._state}},{key:"_finishDialogClose",value:function(){this._state=2,this._overlayRef.dispose()}},{key:"_getPositionStrategy",value:function(){return this._overlayRef.getConfig().positionStrategy}}]),e}();function lB(e,t,n){return void 0!==e._containerInstance&&(e._containerInstance._closeInteractionType=t),e.close(n)}var uB,cB,dB,hB,fB,pB,gB,vB,mB=new mi("MatDialogData"),yB=new mi("mat-dialog-default-options"),bB=new mi("mat-dialog-scroll-strategy"),wB={provide:bB,deps:[yL],useFactory:function(e){return function(){return e.scrollStrategies.block()}}},_B=((vB=function(){function e(t,n,i,r,o,a,s,l,u){var c=this;A(this,e),this._overlay=t,this._injector=n,this._defaultOptions=i,this._parentDialog=r,this._overlayContainer=o,this._dialogRefConstructor=s,this._dialogContainerType=l,this._dialogDataToken=u,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new W,this._afterOpenedAtThisLevel=new W,this._ariaHiddenElements=new Map,this.afterAllClosed=Fb(function(){return c.openDialogs.length?c._getAfterAllClosed():c._getAfterAllClosed().pipe(Wb(void 0))}),this._scrollStrategy=a}return m(e,[{key:"openDialogs",get:function(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}},{key:"afterOpened",get:function(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}},{key:"_getAfterAllClosed",value:function(){var e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}},{key:"open",value:function(e,t){var n=this;(t=function(e,t){return Object.assign(Object.assign({},t),e)}(t,this._defaultOptions||new tB)).id&&this.getDialogById(t.id);var i=this._createOverlay(t),r=this._attachDialogContainer(i,t),o=this._attachDialogContent(e,r,i,t);return this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(o),o.afterClosed().subscribe(function(){return n._removeOpenDialog(o)}),this.afterOpened.next(o),r._initializeWithAttachedContent(),o}},{key:"closeAll",value:function(){this._closeDialogs(this.openDialogs)}},{key:"getDialogById",value:function(e){return this.openDialogs.find(function(t){return t.id===e})}},{key:"ngOnDestroy",value:function(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}},{key:"_createOverlay",value:function(e){var t=this._getOverlayConfig(e);return this._overlay.create(t)}},{key:"_getOverlayConfig",value:function(e){var t=new QR({positionStrategy:this._overlay.position().global(),scrollStrategy:e.scrollStrategy||this._scrollStrategy(),panelClass:e.panelClass,hasBackdrop:e.hasBackdrop,direction:e.direction,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight,disposeOnNavigation:e.closeOnNavigation});return e.backdropClass&&(t.backdropClass=e.backdropClass),t}},{key:"_attachDialogContainer",value:function(e,t){var n=Fa.create({parent:t&&t.viewContainerRef&&t.viewContainerRef.injector||this._injector,providers:[{provide:tB,useValue:t}]}),i=new wE(this._dialogContainerType,t.viewContainerRef,n,t.componentFactoryResolver);return e.attach(i).instance}},{key:"_attachDialogContent",value:function(e,t,n,i){var r=new this._dialogRefConstructor(n,t,i.id);if(e instanceof iu)t.attachTemplatePortal(new _E(e,null,{$implicit:i.data,dialogRef:r}));else{var o=this._createInjector(i,r,t),a=t.attachComponentPortal(new wE(e,i.viewContainerRef,o));r.componentInstance=a.instance}return r.updateSize(i.width,i.height).updatePosition(i.position),r}},{key:"_createInjector",value:function(e,t,n){var i=e&&e.viewContainerRef&&e.viewContainerRef.injector,r=[{provide:this._dialogContainerType,useValue:n},{provide:this._dialogDataToken,useValue:e.data},{provide:this._dialogRefConstructor,useValue:t}];return!e.direction||i&&i.get(dI,null)||r.push({provide:dI,useValue:{value:e.direction,change:Ty()}}),Fa.create({parent:i||this._injector,providers:r})}},{key:"_removeOpenDialog",value:function(e){var t=this.openDialogs.indexOf(e);t>-1&&(this.openDialogs.splice(t,1),this.openDialogs.length||(this._ariaHiddenElements.forEach(function(e,t){e?t.setAttribute("aria-hidden",e):t.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),this._getAfterAllClosed().next()))}},{key:"_hideNonDialogContentFromAssistiveTechnology",value:function(){var e=this._overlayContainer.getContainerElement();if(e.parentElement)for(var t=e.parentElement.children,n=t.length-1;n>-1;n--){var i=t[n];i===e||"SCRIPT"===i.nodeName||"STYLE"===i.nodeName||i.hasAttribute("aria-live")||(this._ariaHiddenElements.set(i,i.getAttribute("aria-hidden")),i.setAttribute("aria-hidden","true"))}}},{key:"_closeDialogs",value:function(e){for(var t=e.length;t--;)e[t].close()}}]),e}()).\u0275fac=function(e){return new(e||vB)(rs(yL),rs(Fa),rs(void 0),rs(void 0),rs(nL),rs(void 0),rs(bi),rs(bi),rs(mi))},vB.\u0275dir=bt({type:vB}),vB),kB=((gB=function(e){r(n,e);var t=a(n);function n(e,i,r,o,a,s,l){return A(this,n),t.call(this,e,i,o,s,l,a,sB,rB,mB)}return n}(_B)).\u0275fac=function(e){return new(e||gB)(Ri(yL),Ri(Fa),Ri(Cd,8),Ri(yB,8),Ri(bB),Ri(gB,12),Ri(nL))},gB.\u0275prov=Re({token:gB,factory:gB.\u0275fac}),gB),xB=0,AB=((pB=function(){function e(t,n,i){A(this,e),this._dialogRef=t,this._elementRef=n,this._dialog=i,this.id="mat-dialog-title-"+xB++}return m(e,[{key:"ngOnInit",value:function(){var e=this;this._dialogRef||(this._dialogRef=function(e,t){for(var n=e.nativeElement.parentElement;n&&!n.classList.contains("mat-dialog-container");)n=n.parentElement;return n?t.find(function(e){return e.id===n.id}):null}(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(function(){var t=e._dialogRef._containerInstance;t&&!t._ariaLabelledBy&&(t._ariaLabelledBy=e.id)})}}]),e}()).\u0275fac=function(e){return new(e||pB)(rs(sB,8),rs(Cl),rs(kB))},pB.\u0275dir=bt({type:pB,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(e,t){2&e&&nl("id",t.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),pB),CB=((fB=function e(){A(this,e)}).\u0275fac=function(e){return new(e||fB)},fB.\u0275dir=bt({type:fB,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),fB),SB=((hB=function e(){A(this,e)}).\u0275fac=function(e){return new(e||hB)},hB.\u0275dir=bt({type:hB,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"]}),hB),PB=((dB=function e(){A(this,e)}).\u0275fac=function(e){return new(e||dB)},dB.\u0275mod=mt({type:dB}),dB.\u0275inj=Fe({providers:[kB,wB],imports:[[AL,SE,kI],kI]}),dB),EB=((cB=function e(){A(this,e)}).\u0275fac=function(e){return new(e||cB)},cB.\u0275mod=mt({type:cB}),cB.\u0275inj=Fe({}),cB),DB=((uB=function e(){A(this,e)}).\u0275fac=function(e){return new(e||uB)},uB.\u0275mod=mt({type:uB}),uB.\u0275inj=Fe({imports:[[Zh,kI,EB,SE]]}),uB),OB=["*"];function MB(e){return Error('Unable to find icon with the name "'.concat(e,'"'))}function TB(e){return Error("The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was \"".concat(e,'".'))}function IB(e){return Error("The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was \"".concat(e,'".'))}var RB,LB=function e(t,n,i){A(this,e),this.url=t,this.svgText=n,this.options=i},FB=((RB=function(){function e(t,n,i,r){A(this,e),this._httpClient=t,this._sanitizer=n,this._errorHandler=r,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass="material-icons",this._document=i}return m(e,[{key:"addSvgIcon",value:function(e,t,n){return this.addSvgIconInNamespace("",e,t,n)}},{key:"addSvgIconLiteral",value:function(e,t,n){return this.addSvgIconLiteralInNamespace("",e,t,n)}},{key:"addSvgIconInNamespace",value:function(e,t,n,i){return this._addSvgIconConfig(e,t,new LB(n,null,i))}},{key:"addSvgIconResolver",value:function(e){return this._resolvers.push(e),this}},{key:"addSvgIconLiteralInNamespace",value:function(e,t,n,i){var r=this._sanitizer.sanitize(xr.HTML,n);if(!r)throw IB(n);return this._addSvgIconConfig(e,t,new LB("",r,i))}},{key:"addSvgIconSet",value:function(e,t){return this.addSvgIconSetInNamespace("",e,t)}},{key:"addSvgIconSetLiteral",value:function(e,t){return this.addSvgIconSetLiteralInNamespace("",e,t)}},{key:"addSvgIconSetInNamespace",value:function(e,t,n){return this._addSvgIconSetConfig(e,new LB(t,null,n))}},{key:"addSvgIconSetLiteralInNamespace",value:function(e,t,n){var i=this._sanitizer.sanitize(xr.HTML,t);if(!i)throw IB(t);return this._addSvgIconSetConfig(e,new LB("",i,n))}},{key:"registerFontClassAlias",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;return this._fontCssClassesByAlias.set(e,t),this}},{key:"classNameForFontAlias",value:function(e){return this._fontCssClassesByAlias.get(e)||e}},{key:"setDefaultFontSetClass",value:function(e){return this._defaultFontSetClass=e,this}},{key:"getDefaultFontSetClass",value:function(){return this._defaultFontSetClass}},{key:"getSvgIconFromUrl",value:function(e){var t=this,n=this._sanitizer.sanitize(xr.RESOURCE_URL,e);if(!n)throw TB(e);var i=this._cachedIconsByUrl.get(n);return i?Ty(BB(i)):this._loadSvgIconFromConfig(new LB(e,null)).pipe(uw(function(e){return t._cachedIconsByUrl.set(n,e)}),Y(function(e){return BB(e)}))}},{key:"getNamedSvgIcon",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=VB(t,e),i=this._svgIconConfigs.get(n);if(i)return this._getSvgFromConfig(i);if(i=this._getIconConfigFromResolvers(t,e))return this._svgIconConfigs.set(n,i),this._getSvgFromConfig(i);var r=this._iconSetConfigs.get(t);return r?this._getSvgFromIconSetConfigs(e,r):CP(MB(n))}},{key:"ngOnDestroy",value:function(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}},{key:"_getSvgFromConfig",value:function(e){return e.svgText?Ty(BB(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe(Y(function(e){return BB(e)}))}},{key:"_getSvgFromIconSetConfigs",value:function(e,t){var n=this,i=this._extractIconWithNameFromAnySet(e,t);return i?Ty(i):Av(t.filter(function(e){return!e.svgText}).map(function(e){return n._loadSvgIconSetFromConfig(e).pipe(Zb(function(t){var i=n._sanitizer.sanitize(xr.RESOURCE_URL,e.url);return n._errorHandler.handleError(new Error("Loading icon set URL: ".concat(i," failed: ").concat(t.message))),Ty(null)}))})).pipe(Y(function(){var i=n._extractIconWithNameFromAnySet(e,t);if(!i)throw MB(e);return i}))}},{key:"_extractIconWithNameFromAnySet",value:function(e,t){for(var n=t.length-1;n>=0;n--){var i=t[n];if(i.svgText&&i.svgText.indexOf(e)>-1){var r=this._svgElementFromConfig(i),o=this._extractSvgIconFromSet(r,e,i.options);if(o)return o}}return null}},{key:"_loadSvgIconFromConfig",value:function(e){var t=this;return this._fetchIcon(e).pipe(uw(function(t){return e.svgText=t}),Y(function(){return t._svgElementFromConfig(e)}))}},{key:"_loadSvgIconSetFromConfig",value:function(e){return e.svgText?Ty(null):this._fetchIcon(e).pipe(uw(function(t){return e.svgText=t}))}},{key:"_extractSvgIconFromSet",value:function(e,t,n){var i=e.querySelector('[id="'.concat(t,'"]'));if(!i)return null;var r=i.cloneNode(!0);if(r.removeAttribute("id"),"svg"===r.nodeName.toLowerCase())return this._setSvgAttributes(r,n);if("symbol"===r.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(r),n);var o=this._svgElementFromString("<svg></svg>");return o.appendChild(r),this._setSvgAttributes(o,n)}},{key:"_svgElementFromString",value:function(e){var t=this._document.createElement("DIV");t.innerHTML=e;var n=t.querySelector("svg");if(!n)throw Error("<svg> tag not found");return n}},{key:"_toSvgElement",value:function(e){for(var t=this._svgElementFromString("<svg></svg>"),n=e.attributes,i=0;i<n.length;i++){var r=n[i],o=r.name,a=r.value;"id"!==o&&t.setAttribute(o,a)}for(var s=0;s<e.childNodes.length;s++)e.childNodes[s].nodeType===this._document.ELEMENT_NODE&&t.appendChild(e.childNodes[s].cloneNode(!0));return t}},{key:"_setSvgAttributes",value:function(e,t){return e.setAttribute("fit",""),e.setAttribute("height","100%"),e.setAttribute("width","100%"),e.setAttribute("preserveAspectRatio","xMidYMid meet"),e.setAttribute("focusable","false"),t&&t.viewBox&&e.setAttribute("viewBox",t.viewBox),e}},{key:"_fetchIcon",value:function(e){var t,n=this,i=e.url,r=e.options,o=null!==(t=null==r?void 0:r.withCredentials)&&void 0!==t&&t;if(!this._httpClient)throw Error("Could not find HttpClient provider for use with Angular Material icons. Please include the HttpClientModule from @angular/common/http in your app imports.");if(null==i)throw Error('Cannot fetch icon from URL "'.concat(i,'".'));var a=this._sanitizer.sanitize(xr.RESOURCE_URL,i);if(!a)throw TB(i);var s=this._inProgressUrlFetches.get(a);if(s)return s;var l=this._httpClient.get(a,{responseType:"text",withCredentials:o}).pipe(hw(function(){return n._inProgressUrlFetches.delete(a)}),_e());return this._inProgressUrlFetches.set(a,l),l}},{key:"_addSvgIconConfig",value:function(e,t,n){return this._svgIconConfigs.set(VB(e,t),n),this}},{key:"_addSvgIconSetConfig",value:function(e,t){var n=this._iconSetConfigs.get(e);return n?n.push(t):this._iconSetConfigs.set(e,[t]),this}},{key:"_svgElementFromConfig",value:function(e){if(!e.svgElement){var t=this._svgElementFromString(e.svgText);this._setSvgAttributes(t,e.options),e.svgElement=t}return e.svgElement}},{key:"_getIconConfigFromResolvers",value:function(e,t){for(var n=0;n<this._resolvers.length;n++){var i=this._resolvers[n](t,e);if(i)return(r=i).url&&r.options?new LB(i.url,null,i.options):new LB(i,null)}var r}}]),e}()).\u0275fac=function(e){return new(e||RB)(Ri(lb,8),Ri(Wf),Ri(od,8),Ri(Or))},RB.\u0275prov=Re({factory:function(){return new RB(Ri(lb,8),Ri(Wf),Ri(od,8),Ri(Or))},token:RB,providedIn:"root"}),RB);function BB(e){return e.cloneNode(!0)}function VB(e,t){return e+":"+t}var zB,NB,HB,jB,UB,WB,GB=AI(function e(t){A(this,e),this._elementRef=t}),qB=new mi("mat-icon-location",{providedIn:"root",factory:function(){var e=Li(od),t=e?e.location:null;return{getPathname:function(){return t?t.pathname+t.search:""}}}}),YB=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],ZB=YB.map(function(e){return"[".concat(e,"]")}).join(", "),QB=/^url\(['"]?#(.*?)['"]?\)$/,XB=((WB=function(e){r(n,e);var t=a(n);function n(e,i,r,o,a){var s;return A(this,n),(s=t.call(this,e))._iconRegistry=i,s._location=o,s._errorHandler=a,s._inline=!1,s._currentIconFetch=O.EMPTY,r||e.nativeElement.setAttribute("aria-hidden","true"),s}return m(n,[{key:"inline",get:function(){return this._inline},set:function(e){this._inline=lT(e)}},{key:"svgIcon",get:function(){return this._svgIcon},set:function(e){e!==this._svgIcon&&(e?this._updateSvgIcon(e):this._svgIcon&&this._clearSvgElement(),this._svgIcon=e)}},{key:"fontSet",get:function(){return this._fontSet},set:function(e){var t=this._cleanupFontValue(e);t!==this._fontSet&&(this._fontSet=t,this._updateFontIconClasses())}},{key:"fontIcon",get:function(){return this._fontIcon},set:function(e){var t=this._cleanupFontValue(e);t!==this._fontIcon&&(this._fontIcon=t,this._updateFontIconClasses())}},{key:"_splitIconName",value:function(e){if(!e)return["",""];var t=e.split(":");switch(t.length){case 1:return["",t[0]];case 2:return t;default:throw Error('Invalid icon name: "'.concat(e,'"'))}}},{key:"ngOnInit",value:function(){this._updateFontIconClasses()}},{key:"ngAfterViewChecked",value:function(){var e=this._elementsWithExternalReferences;if(e&&e.size){var t=this._location.getPathname();t!==this._previousPath&&(this._previousPath=t,this._prependPathToReferences(t))}}},{key:"ngOnDestroy",value:function(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}},{key:"_usingFontIcon",value:function(){return!this.svgIcon}},{key:"_setSvgElement",value:function(e){this._clearSvgElement();for(var t=e.querySelectorAll("style"),n=0;n<t.length;n++)t[n].textContent+=" ";var i=this._location.getPathname();this._previousPath=i,this._cacheChildrenWithExternalReferences(e),this._prependPathToReferences(i),this._elementRef.nativeElement.appendChild(e)}},{key:"_clearSvgElement",value:function(){var e=this._elementRef.nativeElement,t=e.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();t--;){var n=e.childNodes[t];1===n.nodeType&&"svg"!==n.nodeName.toLowerCase()||e.removeChild(n)}}},{key:"_updateFontIconClasses",value:function(){if(this._usingFontIcon()){var e=this._elementRef.nativeElement,t=this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet):this._iconRegistry.getDefaultFontSetClass();t!=this._previousFontSetClass&&(this._previousFontSetClass&&e.classList.remove(this._previousFontSetClass),t&&e.classList.add(t),this._previousFontSetClass=t),this.fontIcon!=this._previousFontIconClass&&(this._previousFontIconClass&&e.classList.remove(this._previousFontIconClass),this.fontIcon&&e.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}}},{key:"_cleanupFontValue",value:function(e){return"string"==typeof e?e.trim().split(" ")[0]:e}},{key:"_prependPathToReferences",value:function(e){var t=this._elementsWithExternalReferences;t&&t.forEach(function(t,n){t.forEach(function(t){n.setAttribute(t.name,"url('".concat(e,"#").concat(t.value,"')"))})})}},{key:"_cacheChildrenWithExternalReferences",value:function(e){for(var t=e.querySelectorAll(ZB),n=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map,i=function(e){YB.forEach(function(i){var r=t[e],o=r.getAttribute(i),a=o?o.match(QB):null;if(a){var s=n.get(r);s||(s=[],n.set(r,s)),s.push({name:i,value:a[1]})}})},r=0;r<t.length;r++)i(r)}},{key:"_updateSvgIcon",value:function(e){var t=this;if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),e){var n=f(this._splitIconName(e),2),i=n[0],r=n[1];i&&(this._svgNamespace=i),r&&(this._svgName=r),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(r,i).pipe(Hb(1)).subscribe(function(e){return t._setSvgElement(e)},function(e){t._errorHandler.handleError(new Error("Error retrieving icon ".concat(i,":").concat(r,"! ").concat(e.message)))})}}}]),n}(GB)).\u0275fac=function(e){return new(e||WB)(rs(Cl),rs(FB),pi("aria-hidden"),rs(qB),rs(Or))},WB.\u0275cmp=ft({type:WB,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(e,t){2&e&&($a("data-mat-icon-type",t._usingFontIcon()?"font":"svg")("data-mat-icon-name",t._svgName||t.fontIcon)("data-mat-icon-namespace",t._svgNamespace||t.fontSet),Fs("mat-icon-inline",t.inline)("mat-icon-no-color","primary"!==t.color&&"accent"!==t.color&&"warn"!==t.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[Va],ngContentSelectors:OB,decls:1,vars:0,template:function(e,t){1&e&&(As(),Cs(0))},styles:[".mat-icon{background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}\n"],encapsulation:2,changeDetection:0}),WB),KB=((UB=function e(){A(this,e)}).\u0275fac=function(e){return new(e||UB)},UB.\u0275mod=mt({type:UB}),UB.\u0275inj=Fe({imports:[[kI],kI]}),UB),JB=((jB=function e(){A(this,e)}).\u0275fac=function(e){return new(e||jB)},jB.\u0275mod=mt({type:jB}),jB.\u0275inj=Fe({imports:[[yT]]}),jB),$B=((HB=function e(){A(this,e)}).\u0275fac=function(e){return new(e||HB)},HB.\u0275mod=mt({type:HB}),HB.\u0275inj=Fe({providers:[FI],imports:[[JB,aF,kI],JB,aF]}),HB),eV=((NB=function e(){A(this,e)}).\u0275fac=function(e){return new(e||NB)},NB.\u0275mod=mt({type:NB}),NB.\u0275inj=Fe({imports:[[kI],kI]}),NB),tV=((zB=function e(){A(this,e)}).\u0275fac=function(e){return new(e||zB)},zB.\u0275mod=mt({type:zB}),zB.\u0275inj=Fe({imports:[[BI,qI,kI,ZI,Zh],BI,kI,ZI,eV]}),zB),nV=["trigger"],iV=["panel"];function rV(e,t){if(1&e&&(ss(0,"span",8),Qs(1),ls()),2&e){var n=ks();xo(1),Xs(n.placeholder)}}function oV(e,t){if(1&e&&(ss(0,"span",12),Qs(1),ls()),2&e){var n=ks(2);xo(1),Xs(n.triggerValue)}}function aV(e,t){1&e&&Cs(0,0,["*ngSwitchCase","true"])}function sV(e,t){1&e&&(ss(0,"span",9),ns(1,oV,2,1,"span",10),ns(2,aV,1,0,"ng-content",11),ls()),2&e&&(os("ngSwitch",!!ks().customTrigger),xo(2),os("ngSwitchCase",!0))}function lV(e,t){if(1&e){var n=fs();ss(0,"div",13),ss(1,"div",14,15),ms("@transformPanel.done",function(e){return nn(n),ks()._panelDoneAnimatingStream.next(e.toState)})("keydown",function(e){return nn(n),ks()._handleKeydown(e)}),Cs(3,1),ls(),ls()}if(2&e){var i=ks();os("@transformPanelWrap",void 0),xo(1),tl("mat-select-panel ",i._getPanelTheme(),""),Ls("transform-origin",i._transformOrigin)("font-size",i._triggerFontSize,"px"),os("ngClass",i.panelClass)("@transformPanel",i.multiple?"showing-multiple":"showing"),$a("id",i.id+"-panel")("aria-multiselectable",i.multiple)("aria-label",i.ariaLabel||null)("aria-labelledby",i._getPanelAriaLabelledby())}}var uV,cV,dV,hV,fV,pV,gV=[[["mat-select-trigger"]],"*"],vV=["mat-select-trigger","*"],mV={transformPanelWrap:Xf("transformPanelWrap",[np("* => void",rp("@transformPanel",[ip()],{optional:!0}))]),transformPanel:Xf("transformPanel",[ep("void",$f({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),ep("showing",$f({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),ep("showing-multiple",$f({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),np("void => *",Kf("120ms cubic-bezier(0, 0, 0.2, 1)")),np("* => void",Kf("100ms 25ms linear",$f({opacity:0})))])},yV=0,bV=new mi("mat-select-scroll-strategy"),wV=new mi("MAT_SELECT_CONFIG"),_V={provide:bV,deps:[yL],useFactory:function(e){return function(){return e.scrollStrategies.reposition()}}},kV=function e(t,n){A(this,e),this.source=t,this.value=n},xV=CI(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(e){r(i,e);var n=a(i);function i(){var e;A(this,i);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return(e=n.call.apply(n,[this].concat(o)))._tabIndex=t,e.defaultTabIndex=t,e}return m(i,[{key:"tabIndex",get:function(){return this.disabled?-1:this._tabIndex},set:function(e){this._tabIndex=null!=e?uT(e):this.defaultTabIndex}}]),i}(e)}(xI(function(e){r(n,e);var t=a(n);function n(){var e;A(this,n);for(var i=arguments.length,r=new Array(i),o=0;o<i;o++)r[o]=arguments[o];return(e=t.call.apply(t,[this].concat(r))).errorState=!1,e.stateChanges=new W,e}return m(n,[{key:"updateErrorState",value:function(){var e=this.errorState,t=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);t!==e&&(this.errorState=t,this.stateChanges.next())}}]),n}(function e(t,n,i,r,o){A(this,e),this._elementRef=t,this._defaultErrorStateMatcher=n,this._parentForm=i,this._parentFormGroup=r,this.ngControl=o})))),AV=new mi("MatSelectTrigger"),CV=((cV=function(e){r(n,e);var t=a(n);function n(e,i,r,o,a,s,u,c,d,h,f,p,g,v){var m,b,w,_;return A(this,n),(m=t.call(this,a,o,u,c,h))._viewportRuler=e,m._changeDetectorRef=i,m._ngZone=r,m._dir=s,m._parentFormField=d,m.ngControl=h,m._liveAnnouncer=g,m._defaultOptions=v,m._panelOpen=!1,m._compareWith=function(e,t){return e===t},m._uid="mat-select-"+yV++,m._triggerAriaLabelledBy=null,m._destroy=new W,m._onChange=function(){},m._onTouched=function(){},m._valueId="mat-select-value-"+yV++,m._panelDoneAnimatingStream=new W,m._overlayPanelClass=(null===(b=m._defaultOptions)||void 0===b?void 0:b.overlayPanelClass)||"",m._focused=!1,m.controlType="mat-select",m._required=!1,m._multiple=!1,m._disableOptionCentering=null!==(_=null===(w=m._defaultOptions)||void 0===w?void 0:w.disableOptionCentering)&&void 0!==_&&_,m.ariaLabel="",m.optionSelectionChanges=Fb(function(){var e=m.options;return e?e.changes.pipe(Wb(e),Bb(function(){return he.apply(void 0,y(e.map(function(e){return e.onSelectionChange})))})):m._ngZone.onStable.pipe(Hb(1),Bb(function(){return m.optionSelectionChanges}))}),m.openedChange=new Fu,m._openedStream=m.openedChange.pipe(Ry(function(e){return e}),Y(function(){})),m._closedStream=m.openedChange.pipe(Ry(function(e){return!e}),Y(function(){})),m.selectionChange=new Fu,m.valueChange=new Fu,m.ngControl&&(m.ngControl.valueAccessor=l(m)),null!=(null==v?void 0:v.typeaheadDebounceInterval)&&(m._typeaheadDebounceInterval=v.typeaheadDebounceInterval),m._scrollStrategyFactory=p,m._scrollStrategy=m._scrollStrategyFactory(),m.tabIndex=parseInt(f)||0,m.id=m.id,m}return m(n,[{key:"focused",get:function(){return this._focused||this._panelOpen}},{key:"placeholder",get:function(){return this._placeholder},set:function(e){this._placeholder=e,this.stateChanges.next()}},{key:"required",get:function(){return this._required},set:function(e){this._required=lT(e),this.stateChanges.next()}},{key:"multiple",get:function(){return this._multiple},set:function(e){this._multiple=lT(e)}},{key:"disableOptionCentering",get:function(){return this._disableOptionCentering},set:function(e){this._disableOptionCentering=lT(e)}},{key:"compareWith",get:function(){return this._compareWith},set:function(e){this._compareWith=e,this._selectionModel&&this._initializeSelection()}},{key:"value",get:function(){return this._value},set:function(e){(e!==this._value||this._multiple&&Array.isArray(e))&&(this.options&&this._setSelectionByValue(e),this._value=e)}},{key:"typeaheadDebounceInterval",get:function(){return this._typeaheadDebounceInterval},set:function(e){this._typeaheadDebounceInterval=uT(e)}},{key:"id",get:function(){return this._id},set:function(e){this._id=e||this._uid,this.stateChanges.next()}},{key:"ngOnInit",value:function(){var e=this;this._selectionModel=new DR(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(Ex(),kR(this._destroy)).subscribe(function(){return e._panelDoneAnimating(e.panelOpen)})}},{key:"ngAfterContentInit",value:function(){var e=this;this._initKeyManager(),this._selectionModel.changed.pipe(kR(this._destroy)).subscribe(function(e){e.added.forEach(function(e){return e.select()}),e.removed.forEach(function(e){return e.deselect()})}),this.options.changes.pipe(Wb(null),kR(this._destroy)).subscribe(function(){e._resetOptions(),e._initializeSelection()})}},{key:"ngDoCheck",value:function(){var e=this._getTriggerAriaLabelledby();if(e!==this._triggerAriaLabelledBy){var t=this._elementRef.nativeElement;this._triggerAriaLabelledBy=e,e?t.setAttribute("aria-labelledby",e):t.removeAttribute("aria-labelledby")}this.ngControl&&this.updateErrorState()}},{key:"ngOnChanges",value:function(e){e.disabled&&this.stateChanges.next(),e.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}},{key:"ngOnDestroy",value:function(){this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()}},{key:"toggle",value:function(){this.panelOpen?this.close():this.open()}},{key:"open",value:function(){this._canOpen()&&(this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck())}},{key:"close",value:function(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}},{key:"writeValue",value:function(e){this.value=e}},{key:"registerOnChange",value:function(e){this._onChange=e}},{key:"registerOnTouched",value:function(e){this._onTouched=e}},{key:"setDisabledState",value:function(e){this.disabled=e,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}},{key:"panelOpen",get:function(){return this._panelOpen}},{key:"selected",get:function(){return this.multiple?this._selectionModel.selected:this._selectionModel.selected[0]}},{key:"triggerValue",get:function(){if(this.empty)return"";if(this._multiple){var e=this._selectionModel.selected.map(function(e){return e.viewValue});return this._isRtl()&&e.reverse(),e.join(", ")}return this._selectionModel.selected[0].viewValue}},{key:"_isRtl",value:function(){return!!this._dir&&"rtl"===this._dir.value}},{key:"_handleKeydown",value:function(e){this.disabled||(this.panelOpen?this._handleOpenKeydown(e):this._handleClosedKeydown(e))}},{key:"_handleClosedKeydown",value:function(e){var t=e.keyCode,n=40===t||38===t||37===t||39===t,i=13===t||32===t,r=this._keyManager;if(!r.isTyping()&&i&&!tT(e)||(this.multiple||e.altKey)&&n)e.preventDefault(),this.open();else if(!this.multiple){var o=this.selected;r.onKeydown(e);var a=this.selected;a&&o!==a&&this._liveAnnouncer.announce(a.viewValue,1e4)}}},{key:"_handleOpenKeydown",value:function(e){var t=this._keyManager,n=e.keyCode,i=40===n||38===n,r=t.isTyping();if(i&&e.altKey)e.preventDefault(),this.close();else if(r||13!==n&&32!==n||!t.activeItem||tT(e))if(!r&&this._multiple&&65===n&&e.ctrlKey){e.preventDefault();var o=this.options.some(function(e){return!e.disabled&&!e.selected});this.options.forEach(function(e){e.disabled||(o?e.select():e.deselect())})}else{var a=t.activeItemIndex;t.onKeydown(e),this._multiple&&i&&e.shiftKey&&t.activeItem&&t.activeItemIndex!==a&&t.activeItem._selectViaInteraction()}else e.preventDefault(),t.activeItem._selectViaInteraction()}},{key:"_onFocus",value:function(){this.disabled||(this._focused=!0,this.stateChanges.next())}},{key:"_onBlur",value:function(){this._focused=!1,this.disabled||this.panelOpen||(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}},{key:"_onAttached",value:function(){var e=this;this.overlayDir.positionChange.pipe(Hb(1)).subscribe(function(){e._changeDetectorRef.detectChanges(),e._positioningSettled()})}},{key:"_getPanelTheme",value:function(){return this._parentFormField?"mat-"+this._parentFormField.color:""}},{key:"empty",get:function(){return!this._selectionModel||this._selectionModel.isEmpty()}},{key:"_initializeSelection",value:function(){var e=this;Promise.resolve().then(function(){e._setSelectionByValue(e.ngControl?e.ngControl.value:e._value),e.stateChanges.next()})}},{key:"_setSelectionByValue",value:function(e){var t=this;if(this._selectionModel.selected.forEach(function(e){return e.setInactiveStyles()}),this._selectionModel.clear(),this.multiple&&e)Array.isArray(e),e.forEach(function(e){return t._selectValue(e)}),this._sortValues();else{var n=this._selectValue(e);n?this._keyManager.updateActiveItem(n):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}},{key:"_selectValue",value:function(e){var t=this,n=this.options.find(function(n){if(t._selectionModel.isSelected(n))return!1;try{return null!=n.value&&t._compareWith(n.value,e)}catch(i){return!1}});return n&&this._selectionModel.select(n),n}},{key:"_initKeyManager",value:function(){var e=this;this._keyManager=new zT(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe(kR(this._destroy)).subscribe(function(){e.panelOpen&&(!e.multiple&&e._keyManager.activeItem&&e._keyManager.activeItem._selectViaInteraction(),e.focus(),e.close())}),this._keyManager.change.pipe(kR(this._destroy)).subscribe(function(){e._panelOpen&&e.panel?e._scrollOptionIntoView(e._keyManager.activeItemIndex||0):e._panelOpen||e.multiple||!e._keyManager.activeItem||e._keyManager.activeItem._selectViaInteraction()})}},{key:"_resetOptions",value:function(){var e=this,t=he(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(kR(t)).subscribe(function(t){e._onSelect(t.source,t.isUserInput),t.isUserInput&&!e.multiple&&e._panelOpen&&(e.close(),e.focus())}),he.apply(void 0,y(this.options.map(function(e){return e._stateChanges}))).pipe(kR(t)).subscribe(function(){e._changeDetectorRef.markForCheck(),e.stateChanges.next()})}},{key:"_onSelect",value:function(e,t){var n=this._selectionModel.isSelected(e);null!=e.value||this._multiple?(n!==e.selected&&(e.selected?this._selectionModel.select(e):this._selectionModel.deselect(e)),t&&this._keyManager.setActiveItem(e),this.multiple&&(this._sortValues(),t&&this.focus())):(e.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(e.value)),n!==this._selectionModel.isSelected(e)&&this._propagateChanges(),this.stateChanges.next()}},{key:"_sortValues",value:function(){var e=this;if(this.multiple){var t=this.options.toArray();this._selectionModel.sort(function(n,i){return e.sortComparator?e.sortComparator(n,i,t):t.indexOf(n)-t.indexOf(i)}),this.stateChanges.next()}}},{key:"_propagateChanges",value:function(e){var t;t=this.multiple?this.selected.map(function(e){return e.value}):this.selected?this.selected.value:e,this._value=t,this.valueChange.emit(t),this._onChange(t),this.selectionChange.emit(this._getChangeEvent(t)),this._changeDetectorRef.markForCheck()}},{key:"_highlightCorrectOption",value:function(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}},{key:"_canOpen",value:function(){var e;return!this._panelOpen&&!this.disabled&&(null===(e=this.options)||void 0===e?void 0:e.length)>0}},{key:"focus",value:function(e){this._elementRef.nativeElement.focus(e)}},{key:"_getPanelAriaLabelledby",value:function(){if(this.ariaLabel)return null;var e=this._getLabelId();return this.ariaLabelledby?e+" "+this.ariaLabelledby:e}},{key:"_getAriaActiveDescendant",value:function(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}},{key:"_getLabelId",value:function(){var e;return(null===(e=this._parentFormField)||void 0===e?void 0:e.getLabelId())||""}},{key:"_getTriggerAriaLabelledby",value:function(){if(this.ariaLabel)return null;var e=this._getLabelId()+" "+this._valueId;return this.ariaLabelledby&&(e+=" "+this.ariaLabelledby),e}},{key:"_panelDoneAnimating",value:function(e){this.openedChange.emit(e)}},{key:"setDescribedByIds",value:function(e){this._ariaDescribedby=e.join(" ")}},{key:"onContainerClick",value:function(){this.focus(),this.open()}},{key:"shouldLabelFloat",get:function(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}]),n}(xV)).\u0275fac=function(e){return new(e||cV)(rs(MR),rs(Kl),rs(Ac),rs(FI),rs(Cl),rs(dI,8),rs(Wm,8),rs(ey,8),rs(rF,8),rs(cm,10),pi("tabindex"),rs(bV),rs(XT),rs(wV,8))},cV.\u0275dir=bt({type:cV,viewQuery:function(e,t){var n;1&e&&(Qu(nV,1),Qu(iV,1),Qu(kL,1)),2&e&&(Zu(n=Ku())&&(t.trigger=n.first),Zu(n=Ku())&&(t.panel=n.first),Zu(n=Ku())&&(t.overlayDir=n.first))},inputs:{ariaLabel:["aria-label","ariaLabel"],id:"id",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",typeaheadDebounceInterval:"typeaheadDebounceInterval",panelClass:"panelClass",ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",sortComparator:"sortComparator"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[Va,Mt]}),cV),SV=((uV=function(e){r(n,e);var t=a(n);function n(){var e;return A(this,n),(e=t.apply(this,arguments))._scrollTop=0,e._triggerFontSize=0,e._transformOrigin="top",e._offsetY=0,e._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}],e}return m(n,[{key:"_calculateOverlayScroll",value:function(e,t,n){var i=this._getItemHeight();return Math.min(Math.max(0,i*e-t+i/2),n)}},{key:"ngOnInit",value:function(){var e=this;i(c(n.prototype),"ngOnInit",this).call(this),this._viewportRuler.change().pipe(kR(this._destroy)).subscribe(function(){e.panelOpen&&(e._triggerRect=e.trigger.nativeElement.getBoundingClientRect(),e._changeDetectorRef.markForCheck())})}},{key:"open",value:function(){var e=this;i(c(n.prototype),"_canOpen",this).call(this)&&(i(c(n.prototype),"open",this).call(this),this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement).fontSize||"0"),this._calculateOverlayPosition(),this._ngZone.onStable.pipe(Hb(1)).subscribe(function(){e._triggerFontSize&&e.overlayDir.overlayRef&&e.overlayDir.overlayRef.overlayElement&&(e.overlayDir.overlayRef.overlayElement.style.fontSize=e._triggerFontSize+"px")}))}},{key:"_scrollOptionIntoView",value:function(e){var t,n,i,r=rR(e,this.options,this.optionGroups),o=this._getItemHeight();this.panel.nativeElement.scrollTop=(n=o,(t=(e+r)*o)<(i=this.panel.nativeElement.scrollTop)?t:t+n>i+256?Math.max(0,t-256+n):i)}},{key:"_positioningSettled",value:function(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}},{key:"_panelDoneAnimating",value:function(e){this.panelOpen?this._scrollTop=0:(this.overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),i(c(n.prototype),"_panelDoneAnimating",this).call(this,e)}},{key:"_getChangeEvent",value:function(e){return new kV(this,e)}},{key:"_calculateOverlayOffsetX",value:function(){var e,t=this.overlayDir.overlayRef.overlayElement.getBoundingClientRect(),n=this._viewportRuler.getViewportSize(),i=this._isRtl(),r=this.multiple?56:32;if(this.multiple)e=40;else if(this.disableOptionCentering)e=16;else{var o=this._selectionModel.selected[0]||this.options.first;e=o&&o.group?32:16}i||(e*=-1);var a=0-(t.left+e-(i?r:0)),s=t.right+e-n.width+(i?0:r);a>0?e+=a+8:s>0&&(e-=s+8),this.overlayDir.offsetX=Math.round(e),this.overlayDir.overlayRef.updatePosition()}},{key:"_calculateOverlayOffsetY",value:function(e,t,n){var i,r=this._getItemHeight(),o=(r-this._triggerRect.height)/2,a=Math.floor(256/r);return this.disableOptionCentering?0:(i=0===this._scrollTop?e*r:this._scrollTop===n?(e-(this._getItemCount()-a))*r+(r-(this._getItemCount()*r-256)%r):t-r/2,Math.round(-1*i-o))}},{key:"_checkOverlayWithinViewport",value:function(e){var t=this._getItemHeight(),n=this._viewportRuler.getViewportSize(),i=this._triggerRect.top-8,r=n.height-this._triggerRect.bottom-8,o=Math.abs(this._offsetY),a=Math.min(this._getItemCount()*t,256)-o-this._triggerRect.height;a>r?this._adjustPanelUp(a,r):o>i?this._adjustPanelDown(o,i,e):this._transformOrigin=this._getOriginBasedOnOption()}},{key:"_adjustPanelUp",value:function(e,t){var n=Math.round(e-t);this._scrollTop-=n,this._offsetY-=n,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}},{key:"_adjustPanelDown",value:function(e,t,n){var i=Math.round(e-t);if(this._scrollTop+=i,this._offsetY+=i,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=n)return this._scrollTop=n,this._offsetY=0,void(this._transformOrigin="50% top 0px")}},{key:"_calculateOverlayPosition",value:function(){var e,t=this._getItemHeight(),n=this._getItemCount(),i=Math.min(n*t,256),r=n*t-i;e=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),e+=rR(e,this.options,this.optionGroups);var o=i/2;this._scrollTop=this._calculateOverlayScroll(e,o,r),this._offsetY=this._calculateOverlayOffsetY(e,o,r),this._checkOverlayWithinViewport(r)}},{key:"_getOriginBasedOnOption",value:function(){var e=this._getItemHeight(),t=(e-this._triggerRect.height)/2;return"50% ".concat(Math.abs(this._offsetY)-t+e/2,"px 0px")}},{key:"_getItemHeight",value:function(){return 3*this._triggerFontSize}},{key:"_getItemCount",value:function(){return this.options.length+this.optionGroups.length}}]),n}(CV)).\u0275fac=function(e){return PV(e||uV)},uV.\u0275cmp=ft({type:uV,selectors:[["mat-select"]],contentQueries:function(e,t,n){var i;1&e&&(Xu(n,AV,1),Xu(n,iR,1),Xu(n,$I,1)),2&e&&(Zu(i=Ku())&&(t.customTrigger=i.first),Zu(i=Ku())&&(t.options=i),Zu(i=Ku())&&(t.optionGroups=i))},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:20,hostBindings:function(e,t){1&e&&ms("keydown",function(e){return t._handleKeydown(e)})("focus",function(){return t._onFocus()})("blur",function(){return t._onBlur()}),2&e&&($a("id",t.id)("tabindex",t.tabIndex)("aria-controls",t.panelOpen?t.id+"-panel":null)("aria-expanded",t.panelOpen)("aria-label",t.ariaLabel||null)("aria-required",t.required.toString())("aria-disabled",t.disabled.toString())("aria-invalid",t.errorState)("aria-describedby",t._ariaDescribedby||null)("aria-activedescendant",t._getAriaActiveDescendant()),Fs("mat-select-disabled",t.disabled)("mat-select-invalid",t.errorState)("mat-select-required",t.required)("mat-select-empty",t.empty)("mat-select-multiple",t.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[yl([{provide:QL,useExisting:uV},{provide:QI,useExisting:uV}]),Va],ngContentSelectors:vV,decls:9,vars:12,consts:[["cdk-overlay-origin","",1,"mat-select-trigger",3,"click"],["origin","cdkOverlayOrigin","trigger",""],[1,"mat-select-value",3,"ngSwitch"],["class","mat-select-placeholder mat-select-min-line",4,"ngSwitchCase"],["class","mat-select-value-text",3,"ngSwitch",4,"ngSwitchCase"],[1,"mat-select-arrow-wrapper"],[1,"mat-select-arrow"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayMinWidth","cdkConnectedOverlayOffsetY","backdropClick","attach","detach"],[1,"mat-select-placeholder","mat-select-min-line"],[1,"mat-select-value-text",3,"ngSwitch"],["class","mat-select-min-line",4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-select-min-line"],[1,"mat-select-panel-wrap"],["role","listbox","tabindex","-1",3,"ngClass","keydown"],["panel",""]],template:function(e,t){if(1&e&&(As(gV),ss(0,"div",0,1),ms("click",function(){return t.toggle()}),ss(3,"div",2),ns(4,rV,2,1,"span",3),ns(5,sV,3,2,"span",4),ls(),ss(6,"div",5),us(7,"div",6),ls(),ls(),ns(8,lV,4,14,"ng-template",7),ms("backdropClick",function(){return t.close()})("attach",function(){return t._onAttached()})("detach",function(){return t.close()})),2&e){var n=is(1);$a("aria-owns",t.panelOpen?t.id+"-panel":null),xo(3),os("ngSwitch",t.empty),$a("id",t._valueId),xo(1),os("ngSwitchCase",!0),xo(1),os("ngSwitchCase",!1),xo(3),os("cdkConnectedOverlayPanelClass",t._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",t._scrollStrategy)("cdkConnectedOverlayOrigin",n)("cdkConnectedOverlayOpen",t.panelOpen)("cdkConnectedOverlayPositions",t._positions)("cdkConnectedOverlayMinWidth",null==t._triggerRect?null:t._triggerRect.width)("cdkConnectedOverlayOffsetY",t._offsetY)}},directives:[_L,Sh,Ph,kL,Eh,fh],styles:['.mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-table;cursor:pointer;position:relative;box-sizing:border-box}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-select-value{display:table-cell;max-width:0;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{display:table-cell;vertical-align:middle}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;margin:0 4px}.mat-select-panel-wrap{flex-basis:100%}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%;border-radius:4px;outline:0}.cdk-high-contrast-active .mat-select-panel{outline:solid 1px}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color:transparent;-webkit-text-fill-color:transparent;transition:none;display:block}.mat-select-min-line:empty::before{content:" ";white-space:pre;width:1px}\n'],encapsulation:2,data:{animation:[mV.transformPanelWrap,mV.transformPanel]},changeDetection:0}),uV),PV=hi(SV),EV=((dV=function e(){A(this,e)}).\u0275fac=function(e){return new(e||dV)},dV.\u0275mod=mt({type:dV}),dV.\u0275inj=Fe({providers:[_V],imports:[[Zh,AL,aR,kI],TR,aF,aR,kI]}),dV),DV={tooltipState:Xf("state",[ep("initial, void, hidden",$f({opacity:0,transform:"scale(0)"})),ep("visible",$f({transform:"scale(1)"})),np("* => visible",Kf("200ms cubic-bezier(0, 0, 0.2, 1)",tp([$f({opacity:0,transform:"scale(0)",offset:0}),$f({opacity:.5,transform:"scale(0.99)",offset:.5}),$f({opacity:1,transform:"scale(1)",offset:1})]))),np("* => hidden",Kf("100ms cubic-bezier(0, 0, 0.2, 1)",$f({opacity:0})))])},OV=bT({passive:!0}),MV=new mi("mat-tooltip-scroll-strategy"),TV={provide:MV,deps:[yL],useFactory:function(e){return function(){return e.scrollStrategies.reposition({scrollThrottle:20})}}},IV=new mi("mat-tooltip-default-options",{providedIn:"root",factory:function(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}}),RV=((pV=function(){function e(t,n,i,r,o,a,s,l,u,c,d,h){var f=this;A(this,e),this._overlay=t,this._elementRef=n,this._scrollDispatcher=i,this._viewContainerRef=r,this._ngZone=o,this._platform=a,this._ariaDescriber=s,this._focusMonitor=l,this._dir=c,this._defaultOptions=d,this._position="below",this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this.showDelay=this._defaultOptions.showDelay,this.hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new W,this._handleKeydown=function(e){f._isTooltipVisible()&&27===e.keyCode&&!tT(e)&&(e.preventDefault(),e.stopPropagation(),f._ngZone.run(function(){return f.hide(0)}))},this._scrollStrategy=u,d&&(d.position&&(this.position=d.position),d.touchGestures&&(this.touchGestures=d.touchGestures)),o.runOutsideAngular(function(){n.nativeElement.addEventListener("keydown",f._handleKeydown)})}return m(e,[{key:"position",get:function(){return this._position},set:function(e){e!==this._position&&(this._position=e,this._overlayRef&&(this._updatePosition(),this._tooltipInstance&&this._tooltipInstance.show(0),this._overlayRef.updatePosition()))}},{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=lT(e),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}},{key:"message",get:function(){return this._message},set:function(e){var t=this;this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=e?String(e).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(function(){Promise.resolve().then(function(){t._ariaDescriber.describe(t._elementRef.nativeElement,t.message,"tooltip")})}))}},{key:"tooltipClass",get:function(){return this._tooltipClass},set:function(e){this._tooltipClass=e,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}},{key:"ngAfterViewInit",value:function(){var e=this;this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(kR(this._destroyed)).subscribe(function(t){t?"keyboard"===t&&e._ngZone.run(function(){return e.show()}):e._ngZone.run(function(){return e.hide(0)})})}},{key:"ngOnDestroy",value:function(){var e=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),e.removeEventListener("keydown",this._handleKeydown),this._passiveListeners.forEach(function(t){var n=f(t,2),i=n[0],r=n[1];e.removeEventListener(i,r,OV)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(e,this.message,"tooltip"),this._focusMonitor.stopMonitoring(e)}},{key:"show",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.showDelay;if(!this.disabled&&this.message&&(!this._isTooltipVisible()||this._tooltipInstance._showTimeoutId||this._tooltipInstance._hideTimeoutId)){var n=this._createOverlay();this._detach(),this._portal=this._portal||new wE(LV,this._viewContainerRef),this._tooltipInstance=n.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe(kR(this._destroyed)).subscribe(function(){return e._detach()}),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),this._tooltipInstance.show(t)}}},{key:"hide",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.hideDelay;this._tooltipInstance&&this._tooltipInstance.hide(e)}},{key:"toggle",value:function(){this._isTooltipVisible()?this.hide():this.show()}},{key:"_isTooltipVisible",value:function(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}},{key:"_createOverlay",value:function(){var e=this;if(this._overlayRef)return this._overlayRef;var t=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),n=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(".mat-tooltip").withFlexibleDimensions(!1).withViewportMargin(8).withScrollableContainers(t);return n.positionChanges.pipe(kR(this._destroyed)).subscribe(function(t){e._tooltipInstance&&t.scrollableViewProperties.isOverlayClipped&&e._tooltipInstance.isVisible()&&e._ngZone.run(function(){return e.hide(0)})}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:n,panelClass:"mat-tooltip-panel",scrollStrategy:this._scrollStrategy()}),this._updatePosition(),this._overlayRef.detachments().pipe(kR(this._destroyed)).subscribe(function(){return e._detach()}),this._overlayRef}},{key:"_detach",value:function(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}},{key:"_updatePosition",value:function(){var e=this._overlayRef.getConfig().positionStrategy,t=this._getOrigin(),n=this._getOverlayPosition();e.withPositions([Object.assign(Object.assign({},t.main),n.main),Object.assign(Object.assign({},t.fallback),n.fallback)])}},{key:"_getOrigin",value:function(){var e,t=!this._dir||"ltr"==this._dir.value,n=this.position;"above"==n||"below"==n?e={originX:"center",originY:"above"==n?"top":"bottom"}:"before"==n||"left"==n&&t||"right"==n&&!t?e={originX:"start",originY:"center"}:("after"==n||"right"==n&&t||"left"==n&&!t)&&(e={originX:"end",originY:"center"});var i=this._invertPosition(e.originX,e.originY);return{main:e,fallback:{originX:i.x,originY:i.y}}}},{key:"_getOverlayPosition",value:function(){var e,t=!this._dir||"ltr"==this._dir.value,n=this.position;"above"==n?e={overlayX:"center",overlayY:"bottom"}:"below"==n?e={overlayX:"center",overlayY:"top"}:"before"==n||"left"==n&&t||"right"==n&&!t?e={overlayX:"end",overlayY:"center"}:("after"==n||"right"==n&&t||"left"==n&&!t)&&(e={overlayX:"start",overlayY:"center"});var i=this._invertPosition(e.overlayX,e.overlayY);return{main:e,fallback:{overlayX:i.x,overlayY:i.y}}}},{key:"_updateTooltipMessage",value:function(){var e=this;this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe(Hb(1),kR(this._destroyed)).subscribe(function(){e._tooltipInstance&&e._overlayRef.updatePosition()}))}},{key:"_setTooltipClass",value:function(e){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=e,this._tooltipInstance._markForCheck())}},{key:"_invertPosition",value:function(e,t){return"above"===this.position||"below"===this.position?"top"===t?t="bottom":"bottom"===t&&(t="top"):"end"===e?e="start":"start"===e&&(e="end"),{x:e,y:t}}},{key:"_setupPointerEnterEventsIfNeeded",value:function(){var e=this;!this._disabled&&this.message&&this._viewInitialized&&!this._passiveListeners.length&&(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",function(){e._setupPointerExitEventsIfNeeded(),e.show()}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",function(){e._setupPointerExitEventsIfNeeded(),clearTimeout(e._touchstartTimeout),e._touchstartTimeout=setTimeout(function(){return e.show()},500)}])),this._addListeners(this._passiveListeners))}},{key:"_setupPointerExitEventsIfNeeded",value:function(){var e,t=this;if(!this._pointerExitEventsInitialized){this._pointerExitEventsInitialized=!0;var n=[];if(this._platformSupportsMouseEvents())n.push(["mouseleave",function(){return t.hide()}],["wheel",function(e){return t._wheelListener(e)}]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();var i=function(){clearTimeout(t._touchstartTimeout),t.hide(t._defaultOptions.touchendHideDelay)};n.push(["touchend",i],["touchcancel",i])}this._addListeners(n),(e=this._passiveListeners).push.apply(e,n)}}},{key:"_addListeners",value:function(e){var t=this;e.forEach(function(e){var n=f(e,2),i=n[0],r=n[1];t._elementRef.nativeElement.addEventListener(i,r,OV)})}},{key:"_platformSupportsMouseEvents",value:function(){return!this._platform.IOS&&!this._platform.ANDROID}},{key:"_wheelListener",value:function(e){if(this._isTooltipVisible()){var t=(this._document||document).elementFromPoint(e.clientX,e.clientY),n=this._elementRef.nativeElement;t===n||n.contains(t)||this.hide()}}},{key:"_disableNativeGesturesIfNecessary",value:function(){var e=this.touchGestures;if("off"!==e){var t=this._elementRef.nativeElement,n=t.style;("on"===e||"INPUT"!==t.nodeName&&"TEXTAREA"!==t.nodeName)&&(n.userSelect=n.msUserSelect=n.webkitUserSelect=n.MozUserSelect="none"),"on"!==e&&t.draggable||(n.webkitUserDrag="none"),n.touchAction="none",n.webkitTapHighlightColor="transparent"}}}]),e}()).\u0275fac=function(e){return new(e||pV)(rs(yL),rs(Cl),rs(OR),rs(uu),rs(Ac),rs(mT),rs(RT),rs(nI),rs(MV),rs(dI,8),rs(IV,8),rs(od))},pV.\u0275dir=bt({type:pV,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],inputs:{showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]},exportAs:["matTooltip"]}),pV),LV=((fV=function(){function e(t,n){A(this,e),this._changeDetectorRef=t,this._breakpointObserver=n,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new W,this._isHandset=this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)")}return m(e,[{key:"show",value:function(e){var t=this;this._hideTimeoutId&&(clearTimeout(this._hideTimeoutId),this._hideTimeoutId=null),this._closeOnInteraction=!0,this._showTimeoutId=setTimeout(function(){t._visibility="visible",t._showTimeoutId=null,t._markForCheck()},e)}},{key:"hide",value:function(e){var t=this;this._showTimeoutId&&(clearTimeout(this._showTimeoutId),this._showTimeoutId=null),this._hideTimeoutId=setTimeout(function(){t._visibility="hidden",t._hideTimeoutId=null,t._markForCheck()},e)}},{key:"afterHidden",value:function(){return this._onHide}},{key:"isVisible",value:function(){return"visible"===this._visibility}},{key:"ngOnDestroy",value:function(){this._onHide.complete()}},{key:"_animationStart",value:function(){this._closeOnInteraction=!1}},{key:"_animationDone",value:function(e){var t=e.toState;"hidden"!==t||this.isVisible()||this._onHide.next(),"visible"!==t&&"hidden"!==t||(this._closeOnInteraction=!0)}},{key:"_handleBodyInteraction",value:function(){this._closeOnInteraction&&this.hide(0)}},{key:"_markForCheck",value:function(){this._changeDetectorRef.markForCheck()}}]),e}()).\u0275fac=function(e){return new(e||fV)(rs(Kl),rs(AF))},fV.\u0275cmp=ft({type:fV,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(e,t){1&e&&ms("click",function(){return t._handleBodyInteraction()},!1,Rr)("auxclick",function(){return t._handleBodyInteraction()},!1,Rr),2&e&&Ls("zoom","visible"===t._visibility?1:null)},decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(e,t){var n;(1&e&&(ss(0,"div",0),ms("@state.start",function(){return t._animationStart()})("@state.done",function(e){return t._animationDone(e)}),Du(1,"async"),Qs(2),ls()),2&e)&&(Fs("mat-tooltip-handset",null==(n=Ou(1,5,t._isHandset))?null:n.matches),os("ngClass",t.tooltipClass)("@state",t._visibility),xo(2),Xs(t.message))},directives:[fh],pipes:[Nh],styles:[".mat-tooltip-panel{pointer-events:none !important}.mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}\n"],encapsulation:2,data:{animation:[DV.tooltipState]},changeDetection:0}),fV),FV=((hV=function e(){A(this,e)}).\u0275fac=function(e){return new(e||hV)},hV.\u0275mod=mt({type:hV}),hV.\u0275inj=Fe({providers:[TV],imports:[[uI,Zh,AL,kI],kI,TR]}),hV);function BV(e,t){if(1&e&&(ss(0,"mat-option",19),Qs(1),ls()),2&e){var n=t.$implicit;os("value",n),xo(1),Ks(" ",n," ")}}function VV(e,t){if(1&e){var n=fs();ss(0,"mat-form-field",16),ss(1,"mat-select",17),ms("selectionChange",function(e){return nn(n),ks(2)._changePageSize(e.value)}),ns(2,BV,2,2,"mat-option",18),ls(),ls()}if(2&e){var i=ks(2);os("appearance",i._formFieldAppearance)("color",i.color),xo(1),os("value",i.pageSize)("disabled",i.disabled)("aria-label",i._intl.itemsPerPageLabel),xo(1),os("ngForOf",i._displayedPageSizeOptions)}}function zV(e,t){if(1&e&&(ss(0,"div",20),Qs(1),ls()),2&e){var n=ks(2);xo(1),Xs(n.pageSize)}}function NV(e,t){if(1&e&&(ss(0,"div",12),ss(1,"div",13),Qs(2),ls(),ns(3,VV,3,6,"mat-form-field",14),ns(4,zV,2,1,"div",15),ls()),2&e){var n=ks();xo(2),Ks(" ",n._intl.itemsPerPageLabel," "),xo(1),os("ngIf",n._displayedPageSizeOptions.length>1),xo(1),os("ngIf",n._displayedPageSizeOptions.length<=1)}}function HV(e,t){if(1&e){var n=fs();ss(0,"button",21),ms("click",function(){return nn(n),ks().firstPage()}),On(),ss(1,"svg",7),us(2,"path",22),ls(),ls()}if(2&e){var i=ks();os("matTooltip",i._intl.firstPageLabel)("matTooltipDisabled",i._previousButtonsDisabled())("matTooltipPosition","above")("disabled",i._previousButtonsDisabled()),$a("aria-label",i._intl.firstPageLabel)}}function jV(e,t){if(1&e){var n=fs();On(),Mn(),ss(0,"button",23),ms("click",function(){return nn(n),ks().lastPage()}),On(),ss(1,"svg",7),us(2,"path",24),ls(),ls()}if(2&e){var i=ks();os("matTooltip",i._intl.lastPageLabel)("matTooltipDisabled",i._nextButtonsDisabled())("matTooltipPosition","above")("disabled",i._nextButtonsDisabled()),$a("aria-label",i._intl.lastPageLabel)}}var UV,WV,GV,qV,YV,ZV,QV,XV,KV,JV,$V=((UV=function e(){A(this,e),this.changes=new W,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=function(e,t,n){if(0==n||0==t)return"0 of "+n;var i=e*t;return"".concat(i+1," \u2013 ").concat(i<(n=Math.max(n,0))?Math.min(i+t,n):i+t," of ").concat(n)}}).\u0275fac=function(e){return new(e||UV)},UV.\u0275prov=Re({factory:function(){return new UV},token:UV,providedIn:"root"}),UV),ez={provide:$V,deps:[[new Hi,new ji,$V]],useFactory:function(e){return e||new $V}},tz=new mi("MAT_PAGINATOR_DEFAULT_OPTIONS"),nz=xI(SI(function e(){A(this,e)})),iz=((JV=function(e){r(n,e);var t=a(n);function n(e,i,r){var o;if(A(this,n),(o=t.call(this))._intl=e,o._changeDetectorRef=i,o._pageIndex=0,o._length=0,o._pageSizeOptions=[],o._hidePageSize=!1,o._showFirstLastButtons=!1,o.page=new Fu,o._intlChanges=e.changes.subscribe(function(){return o._changeDetectorRef.markForCheck()}),r){var a=r.pageSize,l=r.pageSizeOptions,u=r.hidePageSize,c=r.showFirstLastButtons;null!=a&&(o._pageSize=a),null!=l&&(o._pageSizeOptions=l),null!=u&&(o._hidePageSize=u),null!=c&&(o._showFirstLastButtons=c)}return s(o)}return m(n,[{key:"pageIndex",get:function(){return this._pageIndex},set:function(e){this._pageIndex=Math.max(uT(e),0),this._changeDetectorRef.markForCheck()}},{key:"length",get:function(){return this._length},set:function(e){this._length=uT(e),this._changeDetectorRef.markForCheck()}},{key:"pageSize",get:function(){return this._pageSize},set:function(e){this._pageSize=Math.max(uT(e),0),this._updateDisplayedPageSizeOptions()}},{key:"pageSizeOptions",get:function(){return this._pageSizeOptions},set:function(e){this._pageSizeOptions=(e||[]).map(function(e){return uT(e)}),this._updateDisplayedPageSizeOptions()}},{key:"hidePageSize",get:function(){return this._hidePageSize},set:function(e){this._hidePageSize=lT(e)}},{key:"showFirstLastButtons",get:function(){return this._showFirstLastButtons},set:function(e){this._showFirstLastButtons=lT(e)}},{key:"ngOnInit",value:function(){this._initialized=!0,this._updateDisplayedPageSizeOptions(),this._markInitialized()}},{key:"ngOnDestroy",value:function(){this._intlChanges.unsubscribe()}},{key:"nextPage",value:function(){if(this.hasNextPage()){var e=this.pageIndex;this.pageIndex++,this._emitPageEvent(e)}}},{key:"previousPage",value:function(){if(this.hasPreviousPage()){var e=this.pageIndex;this.pageIndex--,this._emitPageEvent(e)}}},{key:"firstPage",value:function(){if(this.hasPreviousPage()){var e=this.pageIndex;this.pageIndex=0,this._emitPageEvent(e)}}},{key:"lastPage",value:function(){if(this.hasNextPage()){var e=this.pageIndex;this.pageIndex=this.getNumberOfPages()-1,this._emitPageEvent(e)}}},{key:"hasPreviousPage",value:function(){return this.pageIndex>=1&&0!=this.pageSize}},{key:"hasNextPage",value:function(){var e=this.getNumberOfPages()-1;return this.pageIndex<e&&0!=this.pageSize}},{key:"getNumberOfPages",value:function(){return this.pageSize?Math.ceil(this.length/this.pageSize):0}},{key:"_changePageSize",value:function(e){var t=this.pageIndex;this.pageIndex=Math.floor(this.pageIndex*this.pageSize/e)||0,this.pageSize=e,this._emitPageEvent(t)}},{key:"_nextButtonsDisabled",value:function(){return this.disabled||!this.hasNextPage()}},{key:"_previousButtonsDisabled",value:function(){return this.disabled||!this.hasPreviousPage()}},{key:"_updateDisplayedPageSizeOptions",value:function(){this._initialized&&(this.pageSize||(this._pageSize=0!=this.pageSizeOptions.length?this.pageSizeOptions[0]:50),this._displayedPageSizeOptions=this.pageSizeOptions.slice(),-1===this._displayedPageSizeOptions.indexOf(this.pageSize)&&this._displayedPageSizeOptions.push(this.pageSize),this._displayedPageSizeOptions.sort(function(e,t){return e-t}),this._changeDetectorRef.markForCheck())}},{key:"_emitPageEvent",value:function(e){this.page.emit({previousPageIndex:e,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})}}]),n}(nz)).\u0275fac=function(e){return new(e||JV)(rs($V),rs(Kl),rs(void 0))},JV.\u0275dir=bt({type:JV,inputs:{pageIndex:"pageIndex",length:"length",pageSize:"pageSize",pageSizeOptions:"pageSizeOptions",hidePageSize:"hidePageSize",showFirstLastButtons:"showFirstLastButtons",color:"color"},outputs:{page:"page"},features:[Va]}),JV),rz=((KV=function(e){r(n,e);var t=a(n);function n(e,i,r){var o;return A(this,n),o=t.call(this,e,i,r),r&&null!=r.formFieldAppearance&&(o._formFieldAppearance=r.formFieldAppearance),o}return n}(iz)).\u0275fac=function(e){return new(e||KV)(rs($V),rs(Kl),rs(tz,8))},KV.\u0275cmp=ft({type:KV,selectors:[["mat-paginator"]],hostAttrs:[1,"mat-paginator"],inputs:{disabled:"disabled"},exportAs:["matPaginator"],features:[Va],decls:14,vars:14,consts:[[1,"mat-paginator-outer-container"],[1,"mat-paginator-container"],["class","mat-paginator-page-size",4,"ngIf"],[1,"mat-paginator-range-actions"],[1,"mat-paginator-range-label"],["mat-icon-button","","type","button","class","mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-previous",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["viewBox","0 0 24 24","focusable","false",1,"mat-paginator-icon"],["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-next",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"],["mat-icon-button","","type","button","class","mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],[1,"mat-paginator-page-size"],[1,"mat-paginator-page-size-label"],["class","mat-paginator-page-size-select",3,"appearance","color",4,"ngIf"],["class","mat-paginator-page-size-value",4,"ngIf"],[1,"mat-paginator-page-size-select",3,"appearance","color"],[3,"value","disabled","aria-label","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"mat-paginator-page-size-value"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"]],template:function(e,t){1&e&&(ss(0,"div",0),ss(1,"div",1),ns(2,NV,5,3,"div",2),ss(3,"div",3),ss(4,"div",4),Qs(5),ls(),ns(6,HV,3,5,"button",5),ss(7,"button",6),ms("click",function(){return t.previousPage()}),On(),ss(8,"svg",7),us(9,"path",8),ls(),ls(),Mn(),ss(10,"button",9),ms("click",function(){return t.nextPage()}),On(),ss(11,"svg",7),us(12,"path",10),ls(),ls(),ns(13,jV,3,5,"button",11),ls(),ls(),ls()),2&e&&(xo(2),os("ngIf",!t.hidePageSize),xo(3),Ks(" ",t._intl.getRangeLabel(t.pageIndex,t.pageSize,t.length)," "),xo(1),os("ngIf",t.showFirstLastButtons),xo(1),os("matTooltip",t._intl.previousPageLabel)("matTooltipDisabled",t._previousButtonsDisabled())("matTooltipPosition","above")("disabled",t._previousButtonsDisabled()),$a("aria-label",t._intl.previousPageLabel),xo(3),os("matTooltip",t._intl.nextPageLabel)("matTooltipDisabled",t._nextButtonsDisabled())("matTooltipPosition","above")("disabled",t._nextButtonsDisabled()),$a("aria-label",t._intl.nextPageLabel),xo(3),os("ngIf",t.showFirstLastButtons))},directives:[mh,YF,RV,oF,SV,gh,iR],styles:[".mat-paginator{display:block}.mat-paginator-outer-container{display:flex}.mat-paginator-container{display:flex;align-items:center;justify-content:flex-end;padding:0 8px;flex-wrap:wrap-reverse;width:100%}.mat-paginator-page-size{display:flex;align-items:baseline;margin-right:8px}[dir=rtl] .mat-paginator-page-size{margin-right:0;margin-left:8px}.mat-paginator-page-size-label{margin:0 4px}.mat-paginator-page-size-select{margin:6px 4px 0 4px;width:56px}.mat-paginator-page-size-select.mat-form-field-appearance-outline{width:64px}.mat-paginator-page-size-select.mat-form-field-appearance-fill{width:64px}.mat-paginator-range-label{margin:0 32px 0 24px}.mat-paginator-range-actions{display:flex;align-items:center}.mat-paginator-icon{width:28px;fill:currentColor}[dir=rtl] .mat-paginator-icon{transform:rotate(180deg)}\n"],encapsulation:2,changeDetection:0}),KV),oz=((XV=function e(){A(this,e)}).\u0275fac=function(e){return new(e||XV)},XV.\u0275mod=mt({type:XV}),XV.\u0275inj=Fe({providers:[ez],imports:[[Zh,ZF,EV,FV,kI]]}),XV),az=((QV=function e(){A(this,e)}).\u0275fac=function(e){return new(e||QV)},QV.\u0275mod=mt({type:QV}),QV.\u0275inj=Fe({imports:[[kI,Zh],kI]}),QV),sz=((ZV=function e(){A(this,e)}).\u0275fac=function(e){return new(e||ZV)},ZV.\u0275mod=mt({type:ZV}),ZV.\u0275inj=Fe({imports:[[Zh,kI,yT,TR],TR,kI]}),ZV),lz=((YV=function e(){A(this,e)}).\u0275fac=function(e){return new(e||YV)},YV.\u0275mod=mt({type:YV}),YV.\u0275inj=Fe({}),YV),uz=((qV=function e(){A(this,e)}).\u0275fac=function(e){return new(e||qV)},qV.\u0275mod=mt({type:qV}),qV.\u0275inj=Fe({imports:[[lz,qI,kI,ET],lz,kI]}),qV),cz=((GV=function e(){A(this,e)}).\u0275fac=function(e){return new(e||GV)},GV.\u0275mod=mt({type:GV}),GV.\u0275inj=Fe({imports:[[Zh,kI],kI]}),GV),dz=((WV=function e(){A(this,e)}).\u0275fac=function(e){return new(e||WV)},WV.\u0275mod=mt({type:WV}),WV.\u0275inj=Fe({imports:[[AL,SE,Zh,ZF,kI],kI]}),WV),hz=["mat-sort-header",""];function fz(e,t){if(1&e){var n=fs();ss(0,"div",3),ms("@arrowPosition.start",function(){return nn(n),ks()._disableViewStateAnimation=!0})("@arrowPosition.done",function(){return nn(n),ks()._disableViewStateAnimation=!1}),us(1,"div",4),ss(2,"div",5),us(3,"div",6),us(4,"div",7),us(5,"div",8),ls(),ls()}if(2&e){var i=ks();os("@arrowOpacity",i._getArrowViewState())("@arrowPosition",i._getArrowViewState())("@allowChildren",i._getArrowDirectionState()),xo(2),os("@indicator",i._getArrowDirectionState()),xo(1),os("@leftPointer",i._getArrowDirectionState()),xo(1),os("@rightPointer",i._getArrowDirectionState())}}var pz,gz,vz,mz,yz,bz,wz,_z=["*"],kz=new mi("MAT_SORT_DEFAULT_OPTIONS"),xz=SI(xI(function e(){A(this,e)})),Az=((pz=function(e){r(n,e);var t=a(n);function n(e){var i;return A(this,n),(i=t.call(this))._defaultOptions=e,i.sortables=new Map,i._stateChanges=new W,i.start="asc",i._direction="",i.sortChange=new Fu,i}return m(n,[{key:"direction",get:function(){return this._direction},set:function(e){this._direction=e}},{key:"disableClear",get:function(){return this._disableClear},set:function(e){this._disableClear=lT(e)}},{key:"register",value:function(e){this.sortables.set(e.id,e)}},{key:"deregister",value:function(e){this.sortables.delete(e.id)}},{key:"sort",value:function(e){this.active!=e.id?(this.active=e.id,this.direction=e.start?e.start:this.start):this.direction=this.getNextSortDirection(e),this.sortChange.emit({active:this.active,direction:this.direction})}},{key:"getNextSortDirection",value:function(e){var t,n,i;if(!e)return"";var r=null!==(n=null!==(t=null==e?void 0:e.disableClear)&&void 0!==t?t:this.disableClear)&&void 0!==n?n:!!(null===(i=this._defaultOptions)||void 0===i?void 0:i.disableClear),o=function(e,t){var n=["asc","desc"];return"desc"==e&&n.reverse(),t||n.push(""),n}(e.start||this.start,r),a=o.indexOf(this.direction)+1;return a>=o.length&&(a=0),o[a]}},{key:"ngOnInit",value:function(){this._markInitialized()}},{key:"ngOnChanges",value:function(){this._stateChanges.next()}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}}]),n}(xz)).\u0275fac=function(e){return new(e||pz)(rs(kz,8))},pz.\u0275dir=bt({type:pz,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{disabled:["matSortDisabled","disabled"],start:["matSortStart","start"],direction:["matSortDirection","direction"],disableClear:["matSortDisableClear","disableClear"],active:["matSortActive","active"]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[Va,Mt]}),pz),Cz=bI.ENTERING+" "+yI.STANDARD_CURVE,Sz={indicator:Xf("indicator",[ep("active-asc, asc",$f({transform:"translateY(0px)"})),ep("active-desc, desc",$f({transform:"translateY(10px)"})),np("active-asc <=> active-desc",Kf(Cz))]),leftPointer:Xf("leftPointer",[ep("active-asc, asc",$f({transform:"rotate(-45deg)"})),ep("active-desc, desc",$f({transform:"rotate(45deg)"})),np("active-asc <=> active-desc",Kf(Cz))]),rightPointer:Xf("rightPointer",[ep("active-asc, asc",$f({transform:"rotate(45deg)"})),ep("active-desc, desc",$f({transform:"rotate(-45deg)"})),np("active-asc <=> active-desc",Kf(Cz))]),arrowOpacity:Xf("arrowOpacity",[ep("desc-to-active, asc-to-active, active",$f({opacity:1})),ep("desc-to-hint, asc-to-hint, hint",$f({opacity:.54})),ep("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",$f({opacity:0})),np("* => asc, * => desc, * => active, * => hint, * => void",Kf("0ms")),np("* <=> *",Kf(Cz))]),arrowPosition:Xf("arrowPosition",[np("* => desc-to-hint, * => desc-to-active",Kf(Cz,tp([$f({transform:"translateY(-25%)"}),$f({transform:"translateY(0)"})]))),np("* => hint-to-desc, * => active-to-desc",Kf(Cz,tp([$f({transform:"translateY(0)"}),$f({transform:"translateY(25%)"})]))),np("* => asc-to-hint, * => asc-to-active",Kf(Cz,tp([$f({transform:"translateY(25%)"}),$f({transform:"translateY(0)"})]))),np("* => hint-to-asc, * => active-to-asc",Kf(Cz,tp([$f({transform:"translateY(0)"}),$f({transform:"translateY(-25%)"})]))),ep("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",$f({transform:"translateY(0)"})),ep("hint-to-desc, active-to-desc, desc",$f({transform:"translateY(-25%)"})),ep("hint-to-asc, active-to-asc, asc",$f({transform:"translateY(25%)"}))]),allowChildren:Xf("allowChildren",[np("* <=> *",[rp("@*",ip(),{optional:!0})])])},Pz=((gz=function e(){A(this,e),this.changes=new W,this.sortButtonLabel=function(e){return"Change sorting for "+e}}).\u0275fac=function(e){return new(e||gz)},gz.\u0275prov=Re({factory:function(){return new gz},token:gz,providedIn:"root"}),gz),Ez={provide:Pz,deps:[[new Hi,new ji,Pz]],useFactory:function(e){return e||new Pz}},Dz=xI(function e(){A(this,e)}),Oz=((wz=function(e){r(n,e);var t=a(n);function n(e,i,r,o,a,s){var l;return A(this,n),(l=t.call(this))._intl=e,l._changeDetectorRef=i,l._sort=r,l._columnDef=o,l._focusMonitor=a,l._elementRef=s,l._showIndicatorHint=!1,l._arrowDirection="",l._disableViewStateAnimation=!1,l.arrowPosition="after",l._handleStateChanges(),l}return m(n,[{key:"disableClear",get:function(){return this._disableClear},set:function(e){this._disableClear=lT(e)}},{key:"ngOnInit",value:function(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._updateArrowDirection(),this._setAnimationTransitionState({toState:this._isSorted()?"active":this._arrowDirection}),this._sort.register(this)}},{key:"ngAfterViewInit",value:function(){var e=this;this._focusMonitor.monitor(this._elementRef,!0).subscribe(function(t){var n=!!t;n!==e._showIndicatorHint&&(e._setIndicatorHintVisible(n),e._changeDetectorRef.markForCheck())})}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._rerenderSubscription.unsubscribe()}},{key:"_setIndicatorHintVisible",value:function(e){this._isDisabled()&&e||(this._showIndicatorHint=e,this._isSorted()||(this._updateArrowDirection(),this._setAnimationTransitionState(this._showIndicatorHint?{fromState:this._arrowDirection,toState:"hint"}:{fromState:"hint",toState:this._arrowDirection})))}},{key:"_setAnimationTransitionState",value:function(e){this._viewState=e,this._disableViewStateAnimation&&(this._viewState={toState:e.toState})}},{key:"_toggleOnInteraction",value:function(){this._sort.sort(this),"hint"!==this._viewState.toState&&"active"!==this._viewState.toState||(this._disableViewStateAnimation=!0)}},{key:"_handleClick",value:function(){this._isDisabled()||this._sort.sort(this)}},{key:"_handleKeydown",value:function(e){this._isDisabled()||32!==e.keyCode&&13!==e.keyCode||(e.preventDefault(),this._toggleOnInteraction())}},{key:"_isSorted",value:function(){return this._sort.active==this.id&&("asc"===this._sort.direction||"desc"===this._sort.direction)}},{key:"_getArrowDirectionState",value:function(){return"".concat(this._isSorted()?"active-":"").concat(this._arrowDirection)}},{key:"_getArrowViewState",value:function(){var e=this._viewState.fromState;return(e?e+"-to-":"")+this._viewState.toState}},{key:"_updateArrowDirection",value:function(){this._arrowDirection=this._isSorted()?this._sort.direction:this.start||this._sort.start}},{key:"_isDisabled",value:function(){return this._sort.disabled||this.disabled}},{key:"_getAriaSortAttribute",value:function(){return this._isSorted()?"asc"==this._sort.direction?"ascending":"descending":"none"}},{key:"_renderArrow",value:function(){return!this._isDisabled()||this._isSorted()}},{key:"_handleStateChanges",value:function(){var e=this;this._rerenderSubscription=he(this._sort.sortChange,this._sort._stateChanges,this._intl.changes).subscribe(function(){e._isSorted()&&(e._updateArrowDirection(),"hint"!==e._viewState.toState&&"active"!==e._viewState.toState||(e._disableViewStateAnimation=!0),e._setAnimationTransitionState({fromState:e._arrowDirection,toState:"active"}),e._showIndicatorHint=!1),!e._isSorted()&&e._viewState&&"active"===e._viewState.toState&&(e._disableViewStateAnimation=!1,e._setAnimationTransitionState({fromState:"active",toState:e._arrowDirection})),e._changeDetectorRef.markForCheck()})}}]),n}(Dz)).\u0275fac=function(e){return new(e||wz)(rs(Pz),rs(Kl),rs(Az,8),rs("MAT_SORT_HEADER_COLUMN_DEF",8),rs(nI),rs(Cl))},wz.\u0275cmp=ft({type:wz,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(e,t){1&e&&ms("click",function(){return t._handleClick()})("keydown",function(e){return t._handleKeydown(e)})("mouseenter",function(){return t._setIndicatorHintVisible(!0)})("mouseleave",function(){return t._setIndicatorHintVisible(!1)}),2&e&&($a("aria-sort",t._getAriaSortAttribute()),Fs("mat-sort-header-disabled",t._isDisabled()))},inputs:{disabled:"disabled",arrowPosition:"arrowPosition",disableClear:"disableClear",id:["mat-sort-header","id"],start:"start"},exportAs:["matSortHeader"],features:[Va],attrs:hz,ngContentSelectors:_z,decls:4,vars:6,consts:[["role","button",1,"mat-sort-header-container","mat-focus-indicator"],[1,"mat-sort-header-content"],["class","mat-sort-header-arrow",4,"ngIf"],[1,"mat-sort-header-arrow"],[1,"mat-sort-header-stem"],[1,"mat-sort-header-indicator"],[1,"mat-sort-header-pointer-left"],[1,"mat-sort-header-pointer-right"],[1,"mat-sort-header-pointer-middle"]],template:function(e,t){1&e&&(As(),ss(0,"div",0),ss(1,"div",1),Cs(2),ls(),ns(3,fz,6,6,"div",2),ls()),2&e&&(Fs("mat-sort-header-sorted",t._isSorted())("mat-sort-header-position-before","before"==t.arrowPosition),$a("tabindex",t._isDisabled()?null:0),xo(3),os("ngIf",t._renderArrow()))},directives:[mh],styles:[".mat-sort-header-container{display:flex;cursor:pointer;align-items:center;letter-spacing:normal;outline:0}[mat-sort-header].cdk-keyboard-focused .mat-sort-header-container,[mat-sort-header].cdk-program-focused .mat-sort-header-container{border-bottom:solid 1px currentColor}.mat-sort-header-disabled .mat-sort-header-container{cursor:default}.mat-sort-header-content{text-align:center;display:flex;align-items:center}.mat-sort-header-position-before{flex-direction:row-reverse}.mat-sort-header-arrow{height:12px;width:12px;min-width:12px;position:relative;display:flex;opacity:0}.mat-sort-header-arrow,[dir=rtl] .mat-sort-header-position-before .mat-sort-header-arrow{margin:0 0 0 6px}.mat-sort-header-position-before .mat-sort-header-arrow,[dir=rtl] .mat-sort-header-arrow{margin:0 6px 0 0}.mat-sort-header-stem{background:currentColor;height:10px;width:2px;margin:auto;display:flex;align-items:center}.cdk-high-contrast-active .mat-sort-header-stem{width:0;border-left:solid 2px}.mat-sort-header-indicator{width:100%;height:2px;display:flex;align-items:center;position:absolute;top:0;left:0}.mat-sort-header-pointer-middle{margin:auto;height:2px;width:2px;background:currentColor;transform:rotate(45deg)}.cdk-high-contrast-active .mat-sort-header-pointer-middle{width:0;height:0;border-top:solid 2px;border-left:solid 2px}.mat-sort-header-pointer-left,.mat-sort-header-pointer-right{background:currentColor;width:6px;height:2px;position:absolute;top:0}.cdk-high-contrast-active .mat-sort-header-pointer-left,.cdk-high-contrast-active .mat-sort-header-pointer-right{width:0;height:0;border-left:solid 6px;border-top:solid 2px}.mat-sort-header-pointer-left{transform-origin:right;left:0}.mat-sort-header-pointer-right{transform-origin:left;right:0}\n"],encapsulation:2,data:{animation:[Sz.indicator,Sz.leftPointer,Sz.rightPointer,Sz.arrowOpacity,Sz.arrowPosition,Sz.allowChildren]},changeDetection:0}),wz),Mz=((bz=function e(){A(this,e)}).\u0275fac=function(e){return new(e||bz)},bz.\u0275mod=mt({type:bz}),bz.\u0275inj=Fe({providers:[Ez],imports:[[Zh,kI]]}),bz),Tz=((yz=function e(){A(this,e)}).\u0275fac=function(e){return new(e||yz)},yz.\u0275mod=mt({type:yz}),yz.\u0275inj=Fe({imports:[[IR]]}),yz),Iz=((mz=function e(){A(this,e)}).\u0275fac=function(e){return new(e||mz)},mz.\u0275mod=mt({type:mz}),mz.\u0275inj=Fe({imports:[[Tz,kI],kI]}),mz),Rz=((vz=function e(){A(this,e)}).\u0275fac=function(e){return new(e||vz)},vz.\u0275mod=mt({type:vz}),vz.\u0275inj=Fe({imports:[[Zh,kI,SE,qI,ET,uI],kI]}),vz),Lz=["mat-menu-item",""],Fz=["*"];function Bz(e,t){if(1&e){var n=fs();ss(0,"div",0),ms("keydown",function(e){return nn(n),ks()._handleKeydown(e)})("click",function(){return nn(n),ks().closed.emit("click")})("@transformMenu.start",function(e){return nn(n),ks()._onAnimationStart(e)})("@transformMenu.done",function(e){return nn(n),ks()._onAnimationDone(e)}),ss(1,"div",1),Cs(2),ls(),ls()}if(2&e){var i=ks();os("id",i.panelId)("ngClass",i._classList)("@transformMenu",i._panelAnimationState),$a("aria-label",i.ariaLabel||null)("aria-labelledby",i.ariaLabelledby||null)("aria-describedby",i.ariaDescribedby||null)}}var Vz,zz,Nz,Hz,jz,Uz,Wz={transformMenu:Xf("transformMenu",[ep("void",$f({opacity:0,transform:"scale(0.8)"})),np("void => enter",Kf("120ms cubic-bezier(0, 0, 0.2, 1)",$f({opacity:1,transform:"scale(1)"}))),np("* => void",Kf("100ms 25ms linear",$f({opacity:0})))]),fadeInItems:Xf("fadeInItems",[ep("showing",$f({opacity:1})),np("void => *",[$f({opacity:0}),Kf("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},Gz=new mi("MatMenuContent"),qz=new mi("MAT_MENU_PANEL"),Yz=CI(xI(function e(){A(this,e)})),Zz=((Vz=function(e){r(n,e);var t=a(n);function n(e,i,r,o){var a;return A(this,n),(a=t.call(this))._elementRef=e,a._focusMonitor=r,a._parentMenu=o,a.role="menuitem",a._hovered=new W,a._focused=new W,a._highlighted=!1,a._triggersSubmenu=!1,o&&o.addItem&&o.addItem(l(a)),a}return m(n,[{key:"focus",value:function(e,t){this._focusMonitor&&e?this._focusMonitor.focusVia(this._getHostElement(),e,t):this._getHostElement().focus(t),this._focused.next(this)}},{key:"ngAfterViewInit",value:function(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}},{key:"ngOnDestroy",value:function(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}},{key:"_getTabIndex",value:function(){return this.disabled?"-1":"0"}},{key:"_getHostElement",value:function(){return this._elementRef.nativeElement}},{key:"_checkDisabled",value:function(e){this.disabled&&(e.preventDefault(),e.stopPropagation())}},{key:"_handleMouseEnter",value:function(){this._hovered.next(this)}},{key:"getLabel",value:function(){for(var e,t,n=this._elementRef.nativeElement.cloneNode(!0),i=n.querySelectorAll("mat-icon, .material-icons"),r=0;r<i.length;r++){var o=i[r];null===(e=o.parentNode)||void 0===e||e.removeChild(o)}return(null===(t=n.textContent)||void 0===t?void 0:t.trim())||""}}]),n}(Yz)).\u0275fac=function(e){return new(e||Vz)(rs(Cl),rs(od),rs(nI),rs(qz,8))},Vz.\u0275cmp=ft({type:Vz,selectors:[["","mat-menu-item",""]],hostAttrs:[1,"mat-focus-indicator"],hostVars:10,hostBindings:function(e,t){1&e&&ms("click",function(e){return t._checkDisabled(e)})("mouseenter",function(){return t._handleMouseEnter()}),2&e&&($a("role",t.role)("tabindex",t._getTabIndex())("aria-disabled",t.disabled.toString())("disabled",t.disabled||null),Fs("mat-menu-item",!0)("mat-menu-item-highlighted",t._highlighted)("mat-menu-item-submenu-trigger",t._triggersSubmenu))},inputs:{disabled:"disabled",disableRipple:"disableRipple",role:"role"},exportAs:["matMenuItem"],features:[Va],attrs:Lz,ngContentSelectors:Fz,decls:2,vars:2,consts:[["matRipple","",1,"mat-menu-ripple",3,"matRippleDisabled","matRippleTrigger"]],template:function(e,t){1&e&&(As(),Cs(0),us(1,"div",0)),2&e&&(xo(1),os("matRippleDisabled",t.disableRipple||t.disabled)("matRippleTrigger",t._getHostElement()))},directives:[GI],encapsulation:2,changeDetection:0}),Vz),Qz=new mi("mat-menu-default-options",{providedIn:"root",factory:function(){return{overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"}}}),Xz=0,Kz=((Nz=function(){function e(t,n,i){A(this,e),this._elementRef=t,this._ngZone=n,this._defaultOptions=i,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new Vu,this._tabSubscription=O.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new W,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new Fu,this.close=this.closed,this.panelId="mat-menu-panel-"+Xz++}return m(e,[{key:"xPosition",get:function(){return this._xPosition},set:function(e){this._xPosition=e,this.setPositionClasses()}},{key:"yPosition",get:function(){return this._yPosition},set:function(e){this._yPosition=e,this.setPositionClasses()}},{key:"overlapTrigger",get:function(){return this._overlapTrigger},set:function(e){this._overlapTrigger=lT(e)}},{key:"hasBackdrop",get:function(){return this._hasBackdrop},set:function(e){this._hasBackdrop=lT(e)}},{key:"panelClass",set:function(e){var t=this,n=this._previousPanelClass;n&&n.length&&n.split(" ").forEach(function(e){t._classList[e]=!1}),this._previousPanelClass=e,e&&e.length&&(e.split(" ").forEach(function(e){t._classList[e]=!0}),this._elementRef.nativeElement.className="")}},{key:"classList",get:function(){return this.panelClass},set:function(e){this.panelClass=e}},{key:"ngOnInit",value:function(){this.setPositionClasses()}},{key:"ngAfterContentInit",value:function(){var e=this;this._updateDirectDescendants(),this._keyManager=new NT(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._tabSubscription=this._keyManager.tabOut.subscribe(function(){return e.closed.emit("tab")}),this._directDescendantItems.changes.pipe(Wb(this._directDescendantItems),Bb(function(e){return he.apply(void 0,y(e.map(function(e){return e._focused})))})).subscribe(function(t){return e._keyManager.updateActiveItem(t)})}},{key:"ngOnDestroy",value:function(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}},{key:"_hovered",value:function(){return this._directDescendantItems.changes.pipe(Wb(this._directDescendantItems),Bb(function(e){return he.apply(void 0,y(e.map(function(e){return e._hovered})))}))}},{key:"addItem",value:function(e){}},{key:"removeItem",value:function(e){}},{key:"_handleKeydown",value:function(e){var t=e.keyCode,n=this._keyManager;switch(t){case 27:tT(e)||(e.preventDefault(),this.closed.emit("keydown"));break;case 37:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case 39:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:38!==t&&40!==t||n.setFocusOrigin("keyboard"),n.onKeydown(e)}}},{key:"focusFirstItem",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"program";this.lazyContent?this._ngZone.onStable.pipe(Hb(1)).subscribe(function(){return e._focusFirstItem(t)}):this._focusFirstItem(t)}},{key:"_focusFirstItem",value:function(e){var t=this._keyManager;if(t.setFocusOrigin(e).setFirstItemActive(),!t.activeItem&&this._directDescendantItems.length)for(var n=this._directDescendantItems.first._getHostElement().parentElement;n;){if("menu"===n.getAttribute("role")){n.focus();break}n=n.parentElement}}},{key:"resetActiveItem",value:function(){this._keyManager.setActiveItem(-1)}},{key:"setElevation",value:function(e){var t="mat-elevation-z"+Math.min(4+e,24),n=Object.keys(this._classList).find(function(e){return e.startsWith("mat-elevation-z")});n&&n!==this._previousElevation||(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[t]=!0,this._previousElevation=t)}},{key:"setPositionClasses",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.xPosition,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.yPosition,n=this._classList;n["mat-menu-before"]="before"===e,n["mat-menu-after"]="after"===e,n["mat-menu-above"]="above"===t,n["mat-menu-below"]="below"===t}},{key:"_startAnimation",value:function(){this._panelAnimationState="enter"}},{key:"_resetAnimation",value:function(){this._panelAnimationState="void"}},{key:"_onAnimationDone",value:function(e){this._animationDone.next(e),this._isAnimating=!1}},{key:"_onAnimationStart",value:function(e){this._isAnimating=!0,"enter"===e.toState&&0===this._keyManager.activeItemIndex&&(e.element.scrollTop=0)}},{key:"_updateDirectDescendants",value:function(){var e=this;this._allItems.changes.pipe(Wb(this._allItems)).subscribe(function(t){e._directDescendantItems.reset(t.filter(function(t){return t._parentMenu===e})),e._directDescendantItems.notifyOnChanges()})}}]),e}()).\u0275fac=function(e){return new(e||Nz)(rs(Cl),rs(Ac),rs(Qz))},Nz.\u0275dir=bt({type:Nz,contentQueries:function(e,t,n){var i;1&e&&(Xu(n,Gz,1),Xu(n,Zz,1),Xu(n,Zz,0)),2&e&&(Zu(i=Ku())&&(t.lazyContent=i.first),Zu(i=Ku())&&(t._allItems=i),Zu(i=Ku())&&(t.items=i))},viewQuery:function(e,t){var n;1&e&&Qu(iu,1),2&e&&Zu(n=Ku())&&(t.templateRef=n.first)},inputs:{backdropClass:"backdropClass",xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"]},outputs:{closed:"closed",close:"close"}}),Nz),Jz=((zz=function(e){r(n,e);var t=a(n);function n(e,i,r){return A(this,n),t.call(this,e,i,r)}return n}(Kz)).\u0275fac=function(e){return new(e||zz)(rs(Cl),rs(Ac),rs(Qz))},zz.\u0275cmp=ft({type:zz,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(e,t){2&e&&$a("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[yl([{provide:qz,useExisting:zz}]),Va],ngContentSelectors:Fz,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(e,t){1&e&&(As(),ns(0,Bz,3,6,"ng-template"))},directives:[fh],styles:['mat-menu{display:none}.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]{pointer-events:none}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.cdk-high-contrast-active .mat-menu-item.cdk-program-focused,.cdk-high-contrast-active .mat-menu-item.cdk-keyboard-focused,.cdk-high-contrast-active .mat-menu-item-highlighted{outline:dotted 1px}.mat-menu-item-submenu-trigger{padding-right:32px}.mat-menu-item-submenu-trigger::after{width:0;height:0;border-style:solid;border-width:5px 0 5px 5px;border-color:transparent transparent transparent currentColor;content:"";display:inline-block;position:absolute;top:50%;right:16px;transform:translateY(-50%)}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}[dir=rtl] .mat-menu-item-submenu-trigger::after{right:auto;left:16px;transform:rotateY(180deg) translateY(-50%)}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\n'],encapsulation:2,data:{animation:[Wz.transformMenu,Wz.fadeInItems]},changeDetection:0}),zz),$z=new mi("mat-menu-scroll-strategy"),eN={provide:$z,deps:[yL],useFactory:function(e){return function(){return e.scrollStrategies.reposition()}}},tN=bT({passive:!0}),nN=((Uz=function(){function e(t,n,i,r,o,a,s,l){var u=this;A(this,e),this._overlay=t,this._element=n,this._viewContainerRef=i,this._menuItemInstance=a,this._dir=s,this._focusMonitor=l,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=O.EMPTY,this._hoverSubscription=O.EMPTY,this._menuCloseSubscription=O.EMPTY,this._handleTouchStart=function(e){JT(e)||(u._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new Fu,this.onMenuOpen=this.menuOpened,this.menuClosed=new Fu,this.onMenuClose=this.menuClosed,this._scrollStrategy=r,this._parentMaterialMenu=o instanceof Kz?o:void 0,n.nativeElement.addEventListener("touchstart",this._handleTouchStart,tN),a&&(a._triggersSubmenu=this.triggersSubmenu())}return m(e,[{key:"_deprecatedMatMenuTriggerFor",get:function(){return this.menu},set:function(e){this.menu=e}},{key:"menu",get:function(){return this._menu},set:function(e){var t=this;e!==this._menu&&(this._menu=e,this._menuCloseSubscription.unsubscribe(),e&&(this._menuCloseSubscription=e.close.subscribe(function(e){t._destroyMenu(e),"click"!==e&&"tab"!==e||!t._parentMaterialMenu||t._parentMaterialMenu.closed.emit(e)})))}},{key:"ngAfterContentInit",value:function(){this._checkMenu(),this._handleHover()}},{key:"ngOnDestroy",value:function(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,tN),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}},{key:"menuOpen",get:function(){return this._menuOpen}},{key:"dir",get:function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}},{key:"triggersSubmenu",value:function(){return!(!this._menuItemInstance||!this._parentMaterialMenu)}},{key:"toggleMenu",value:function(){return this._menuOpen?this.closeMenu():this.openMenu()}},{key:"openMenu",value:function(){var e=this;if(!this._menuOpen){this._checkMenu();var t=this._createOverlay(),n=t.getConfig();this._setPosition(n.positionStrategy),n.hasBackdrop=null==this.menu.hasBackdrop?!this.triggersSubmenu():this.menu.hasBackdrop,t.attach(this._getPortal()),this.menu.lazyContent&&this.menu.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(function(){return e.closeMenu()}),this._initMenu(),this.menu instanceof Kz&&this.menu._startAnimation()}}},{key:"closeMenu",value:function(){this.menu.close.emit()}},{key:"focus",value:function(e,t){this._focusMonitor&&e?this._focusMonitor.focusVia(this._element,e,t):this._element.nativeElement.focus(t)}},{key:"_destroyMenu",value:function(e){var t=this;if(this._overlayRef&&this.menuOpen){var n=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),!this.restoreFocus||"keydown"!==e&&this._openedBy&&this.triggersSubmenu()||this.focus(this._openedBy),this._openedBy=void 0,n instanceof Kz?(n._resetAnimation(),n.lazyContent?n._animationDone.pipe(Ry(function(e){return"void"===e.toState}),Hb(1),kR(n.lazyContent._attached)).subscribe({next:function(){return n.lazyContent.detach()},complete:function(){return t._setIsMenuOpen(!1)}}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),n.lazyContent&&n.lazyContent.detach())}}},{key:"_initMenu",value:function(){this.menu.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,this.menu.direction=this.dir,this._setMenuElevation(),this.menu.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}},{key:"_setMenuElevation",value:function(){if(this.menu.setElevation){for(var e=0,t=this.menu.parentMenu;t;)e++,t=t.parentMenu;this.menu.setElevation(e)}}},{key:"_setIsMenuOpen",value:function(e){this._menuOpen=e,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&(this._menuItemInstance._highlighted=e)}},{key:"_checkMenu",value:function(){}},{key:"_createOverlay",value:function(){if(!this._overlayRef){var e=this._getOverlayConfig();this._subscribeToPositions(e.positionStrategy),this._overlayRef=this._overlay.create(e),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}},{key:"_getOverlayConfig",value:function(){return new QR({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:this.menu.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:this.menu.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}},{key:"_subscribeToPositions",value:function(e){var t=this;this.menu.setPositionClasses&&e.positionChanges.subscribe(function(e){t.menu.setPositionClasses("start"===e.connectionPair.overlayX?"after":"before","top"===e.connectionPair.overlayY?"below":"above")})}},{key:"_setPosition",value:function(e){var t=f("before"===this.menu.xPosition?["end","start"]:["start","end"],2),n=t[0],i=t[1],r=f("above"===this.menu.yPosition?["bottom","top"]:["top","bottom"],2),o=r[0],a=r[1],s=o,l=a,u=n,c=i,d=0;this.triggersSubmenu()?(c=n="before"===this.menu.xPosition?"start":"end",i=u="end"===n?"start":"end",d="bottom"===o?8:-8):this.menu.overlapTrigger||(s="top"===o?"bottom":"top",l="top"===a?"bottom":"top"),e.withPositions([{originX:n,originY:s,overlayX:u,overlayY:o,offsetY:d},{originX:i,originY:s,overlayX:c,overlayY:o,offsetY:d},{originX:n,originY:l,overlayX:u,overlayY:a,offsetY:-d},{originX:i,originY:l,overlayX:c,overlayY:a,offsetY:-d}])}},{key:"_menuClosingActions",value:function(){var e=this,t=this._overlayRef.backdropClick(),n=this._overlayRef.detachments();return he(t,this._parentMaterialMenu?this._parentMaterialMenu.closed:Ty(),this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe(Ry(function(t){return t!==e._menuItemInstance}),Ry(function(){return e._menuOpen})):Ty(),n)}},{key:"_handleMousedown",value:function(e){KT(e)||(this._openedBy=0===e.button?"mouse":void 0,this.triggersSubmenu()&&e.preventDefault())}},{key:"_handleKeydown",value:function(e){var t=e.keyCode;13!==t&&32!==t||(this._openedBy="keyboard"),this.triggersSubmenu()&&(39===t&&"ltr"===this.dir||37===t&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}},{key:"_handleClick",value:function(e){this.triggersSubmenu()?(e.stopPropagation(),this.openMenu()):this.toggleMenu()}},{key:"_handleHover",value:function(){var e=this;this.triggersSubmenu()&&this._parentMaterialMenu&&(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe(Ry(function(t){return t===e._menuItemInstance&&!t.disabled}),sF(0,vR)).subscribe(function(){e._openedBy="mouse",e.menu instanceof Kz&&e.menu._isAnimating?e.menu._animationDone.pipe(Hb(1),sF(0,vR),kR(e._parentMaterialMenu._hovered())).subscribe(function(){return e.openMenu()}):e.openMenu()}))}},{key:"_getPortal",value:function(){return this._portal&&this._portal.templateRef===this.menu.templateRef||(this._portal=new _E(this.menu.templateRef,this._viewContainerRef)),this._portal}}]),e}()).\u0275fac=function(e){return new(e||Uz)(rs(yL),rs(Cl),rs(uu),rs($z),rs(qz,8),rs(Zz,10),rs(dI,8),rs(nI))},Uz.\u0275dir=bt({type:Uz,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:["aria-haspopup","true",1,"mat-menu-trigger"],hostVars:2,hostBindings:function(e,t){1&e&&ms("mousedown",function(e){return t._handleMousedown(e)})("keydown",function(e){return t._handleKeydown(e)})("click",function(e){return t._handleClick(e)}),2&e&&$a("aria-expanded",t.menuOpen||null)("aria-controls",t.menuOpen?t.menu.panelId:null)},inputs:{restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"],_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"},exportAs:["matMenuTrigger"]}),Uz),iN=((jz=function e(){A(this,e)}).\u0275fac=function(e){return new(e||jz)},jz.\u0275mod=mt({type:jz}),jz.\u0275inj=Fe({providers:[eN],imports:[kI]}),jz),rN=((Hz=function e(){A(this,e)}).\u0275fac=function(e){return new(e||Hz)},Hz.\u0275mod=mt({type:Hz}),Hz.\u0275inj=Fe({providers:[eN],imports:[[Zh,kI,qI,AL,iN],TR,kI,iN]}),Hz);function oN(e){var t=e.subscriber,n=e.counter,i=e.period;t.next(n),this.schedule({subscriber:t,counter:n+1,period:i},i)}function aN(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function sN(e,t){var n=t?"":"none";aN(e.style,{touchAction:t?"":"none",webkitUserDrag:t?"":"none",webkitTapHighlightColor:t?"":"transparent",userSelect:n,msUserSelect:n,webkitUserSelect:n,MozUserSelect:n})}function lN(e,t){var n=e.style;n.position=t?"":"fixed",n.top=n.opacity=t?"":"0",n.left=t?"":"-999em"}function uN(e){var t=e.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(e)*t}function cN(e,t){return e.getPropertyValue(t).split(",").map(function(e){return e.trim()})}function dN(e){var t=e.getBoundingClientRect();return{top:t.top,right:t.right,bottom:t.bottom,left:t.left,width:t.width,height:t.height}}function hN(e,t,n){var i=e.top,r=e.bottom,o=e.left,a=e.right;return n>=i&&n<=r&&t>=o&&t<=a}function fN(e,t,n){e.top+=t,e.bottom=e.top+e.height,e.left+=n,e.right=e.left+e.width}function pN(e,t,n,i){var r=e.top,o=e.right,a=e.bottom,s=e.left,l=e.width*t,u=e.height*t;return i>r-u&&i<a+u&&n>s-l&&n<o+l}var gN=function(){function e(t,n){A(this,e),this._document=t,this._viewportRuler=n,this.positions=new Map}return m(e,[{key:"clear",value:function(){this.positions.clear()}},{key:"cache",value:function(e){var t=this;this.clear(),this.positions.set(this._document,{scrollPosition:this._viewportRuler.getViewportScrollPosition()}),e.forEach(function(e){t.positions.set(e,{scrollPosition:{top:e.scrollTop,left:e.scrollLeft},clientRect:dN(e)})})}},{key:"handleScroll",value:function(e){var t=e.target,n=this.positions.get(t);if(!n)return null;var i,r,o=t===this._document?t.documentElement:t,a=n.scrollPosition;if(t===this._document){var s=this._viewportRuler.getViewportScrollPosition();i=s.top,r=s.left}else i=t.scrollTop,r=t.scrollLeft;var l=a.top-i,u=a.left-r;return this.positions.forEach(function(e,n){e.clientRect&&t!==n&&o.contains(n)&&fN(e.clientRect,l,u)}),a.top=i,a.left=r,{top:l,left:u}}}]),e}();function vN(e){var t=e.cloneNode(!0),n=t.querySelectorAll("[id]"),i=e.nodeName.toLowerCase();t.removeAttribute("id");for(var r=0;r<n.length;r++)n[r].removeAttribute("id");return"canvas"===i?wN(e,t):"input"!==i&&"select"!==i&&"textarea"!==i||bN(e,t),mN("canvas",e,t,wN),mN("input, textarea, select",e,t,bN),t}function mN(e,t,n,i){var r=t.querySelectorAll(e);if(r.length)for(var o=n.querySelectorAll(e),a=0;a<r.length;a++)i(r[a],o[a])}var yN=0;function bN(e,t){"file"!==t.type&&(t.value=e.value),"radio"===t.type&&t.name&&(t.name="mat-clone-".concat(t.name,"-").concat(yN++))}function wN(e,t){var n=t.getContext("2d");if(n)try{n.drawImage(e,0,0)}catch(dQ){}}var _N=bT({passive:!0}),kN=bT({passive:!1}),xN=function(){function e(t,n,i,r,o,a){var s=this;A(this,e),this._config=n,this._document=i,this._ngZone=r,this._viewportRuler=o,this._dragDropRegistry=a,this._passiveTransform={x:0,y:0},this._activeTransform={x:0,y:0},this._moveEvents=new W,this._pointerMoveSubscription=O.EMPTY,this._pointerUpSubscription=O.EMPTY,this._scrollSubscription=O.EMPTY,this._resizeSubscription=O.EMPTY,this._boundaryElement=null,this._nativeInteractionsEnabled=!0,this._handles=[],this._disabledHandles=new Set,this._direction="ltr",this.dragStartDelay=0,this._disabled=!1,this.beforeStarted=new W,this.started=new W,this.released=new W,this.ended=new W,this.entered=new W,this.exited=new W,this.dropped=new W,this.moved=this._moveEvents,this._pointerDown=function(e){if(s.beforeStarted.next(),s._handles.length){var t=s._handles.find(function(t){var n=e.target;return!!n&&(n===t||t.contains(n))});!t||s._disabledHandles.has(t)||s.disabled||s._initializeDragSequence(t,e)}else s.disabled||s._initializeDragSequence(s._rootElement,e)},this._pointerMove=function(e){var t=s._getPointerPositionOnPage(e);if(s._hasStartedDragging){s._boundaryElement&&(s._previewRect&&(s._previewRect.width||s._previewRect.height)||(s._previewRect=(s._preview||s._rootElement).getBoundingClientRect())),e.preventDefault();var n=s._getConstrainedPointerPosition(t);if(s._hasMoved=!0,s._lastKnownPointerPosition=t,s._updatePointerDirectionDelta(n),s._dropContainer)s._updateActiveDropContainer(n,t);else{var i=s._activeTransform;i.x=n.x-s._pickupPositionOnPage.x+s._passiveTransform.x,i.y=n.y-s._pickupPositionOnPage.y+s._passiveTransform.y,s._applyRootElementTransform(i.x,i.y),"undefined"!=typeof SVGElement&&s._rootElement instanceof SVGElement&&s._rootElement.setAttribute("transform","translate(".concat(i.x," ").concat(i.y,")"))}s._moveEvents.observers.length&&s._ngZone.run(function(){s._moveEvents.next({source:s,pointerPosition:n,event:e,distance:s._getDragDistance(n),delta:s._pointerDirectionDelta})})}else if(Math.abs(t.x-s._pickupPositionOnPage.x)+Math.abs(t.y-s._pickupPositionOnPage.y)>=s._config.dragStartThreshold){var r=Date.now()>=s._dragStartTime+s._getDragStartDelay(e),o=s._dropContainer;if(!r)return void s._endDragSequence(e);o&&(o.isDragging()||o.isReceiving())||(e.preventDefault(),s._hasStartedDragging=!0,s._ngZone.run(function(){return s._startDragSequence(e)}))}},this._pointerUp=function(e){s._endDragSequence(e)},this.withRootElement(t).withParent(n.parentDragRef||null),this._parentPositions=new gN(i,o),a.registerDragItem(this)}return m(e,[{key:"disabled",get:function(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)},set:function(e){var t=lT(e);t!==this._disabled&&(this._disabled=t,this._toggleNativeDragInteractions(),this._handles.forEach(function(e){return sN(e,t)}))}},{key:"getPlaceholderElement",value:function(){return this._placeholder}},{key:"getRootElement",value:function(){return this._rootElement}},{key:"getVisibleElement",value:function(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}},{key:"withHandles",value:function(e){var t=this;this._handles=e.map(function(e){return hT(e)}),this._handles.forEach(function(e){return sN(e,t.disabled)}),this._toggleNativeDragInteractions();var n=new Set;return this._disabledHandles.forEach(function(e){t._handles.indexOf(e)>-1&&n.add(e)}),this._disabledHandles=n,this}},{key:"withPreviewTemplate",value:function(e){return this._previewTemplate=e,this}},{key:"withPlaceholderTemplate",value:function(e){return this._placeholderTemplate=e,this}},{key:"withRootElement",value:function(e){var t=this,n=hT(e);return n!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(function(){n.addEventListener("mousedown",t._pointerDown,kN),n.addEventListener("touchstart",t._pointerDown,_N)}),this._initialTransform=void 0,this._rootElement=n),"undefined"!=typeof SVGElement&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}},{key:"withBoundaryElement",value:function(e){var t=this;return this._boundaryElement=e?hT(e):null,this._resizeSubscription.unsubscribe(),e&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(function(){return t._containInsideBoundaryOnResize()})),this}},{key:"withParent",value:function(e){return this._parentDragRef=e,this}},{key:"dispose",value:function(){this._removeRootElementListeners(this._rootElement),this.isDragging()&&SN(this._rootElement),SN(this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._dragDropRegistry.removeDragItem(this),this._removeSubscriptions(),this.beforeStarted.complete(),this.started.complete(),this.released.complete(),this.ended.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this._moveEvents.complete(),this._handles=[],this._disabledHandles.clear(),this._dropContainer=void 0,this._resizeSubscription.unsubscribe(),this._parentPositions.clear(),this._boundaryElement=this._rootElement=this._ownerSVGElement=this._placeholderTemplate=this._previewTemplate=this._anchor=this._parentDragRef=null}},{key:"isDragging",value:function(){return this._hasStartedDragging&&this._dragDropRegistry.isDragging(this)}},{key:"reset",value:function(){this._rootElement.style.transform=this._initialTransform||"",this._activeTransform={x:0,y:0},this._passiveTransform={x:0,y:0}}},{key:"disableHandle",value:function(e){!this._disabledHandles.has(e)&&this._handles.indexOf(e)>-1&&(this._disabledHandles.add(e),sN(e,!0))}},{key:"enableHandle",value:function(e){this._disabledHandles.has(e)&&(this._disabledHandles.delete(e),sN(e,this.disabled))}},{key:"withDirection",value:function(e){return this._direction=e,this}},{key:"_withDropContainer",value:function(e){this._dropContainer=e}},{key:"getFreeDragPosition",value:function(){var e=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:e.x,y:e.y}}},{key:"setFreeDragPosition",value:function(e){return this._activeTransform={x:0,y:0},this._passiveTransform.x=e.x,this._passiveTransform.y=e.y,this._dropContainer||this._applyRootElementTransform(e.x,e.y),this}},{key:"_sortFromLastPointerPosition",value:function(){var e=this._lastKnownPointerPosition;e&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(e),e)}},{key:"_removeSubscriptions",value:function(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe()}},{key:"_destroyPreview",value:function(){this._preview&&SN(this._preview),this._previewRef&&this._previewRef.destroy(),this._preview=this._previewRef=null}},{key:"_destroyPlaceholder",value:function(){this._placeholder&&SN(this._placeholder),this._placeholderRef&&this._placeholderRef.destroy(),this._placeholder=this._placeholderRef=null}},{key:"_endDragSequence",value:function(e){var t=this;this._dragDropRegistry.isDragging(this)&&(this._removeSubscriptions(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),this._hasStartedDragging&&(this.released.next({source:this}),this._dropContainer?(this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(function(){t._cleanupDragArtifacts(e),t._cleanupCachedDimensions(),t._dragDropRegistry.stopDragging(t)})):(this._passiveTransform.x=this._activeTransform.x,this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(function(){t.ended.next({source:t,distance:t._getDragDistance(t._getPointerPositionOnPage(e))})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this))))}},{key:"_startDragSequence",value:function(e){PN(e)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();var t=this._dropContainer;if(t){var n=this._rootElement,i=n.parentNode,r=this._preview=this._createPreviewElement(),o=this._placeholder=this._createPlaceholderElement(),a=this._anchor=this._anchor||this._document.createComment(""),s=this._getShadowRoot();i.insertBefore(a,n),lN(n,!1),this._document.body.appendChild(i.replaceChild(o,n)),function(e,t){return t||e.fullscreenElement||e.webkitFullscreenElement||e.mozFullScreenElement||e.msFullscreenElement||e.body}(this._document,s).appendChild(r),this.started.next({source:this}),t.start(),this._initialContainer=t,this._initialIndex=t.getItemIndex(this)}else this.started.next({source:this}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(t?t.getScrollableParents():[])}},{key:"_initializeDragSequence",value:function(e,t){var n=this;this._parentDragRef&&t.stopPropagation();var i=this.isDragging(),r=PN(t),o=!r&&0!==t.button,a=this._rootElement,s=!r&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now();if(t.target&&t.target.draggable&&"mousedown"===t.type&&t.preventDefault(),!(i||o||s)){this._handles.length&&(this._rootElementTapHighlight=a.style.webkitTapHighlightColor||"",a.style.webkitTapHighlightColor="transparent"),this._hasStartedDragging=this._hasMoved=!1,this._removeSubscriptions(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scroll.subscribe(function(e){n._updateOnScroll(e)}),this._boundaryElement&&(this._boundaryRect=dN(this._boundaryElement));var l=this._previewTemplate;this._pickupPositionInElement=l&&l.template&&!l.matchSize?{x:0,y:0}:this._getPointerPositionInElement(e,t);var u=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(t);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:u.x,y:u.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,t)}}},{key:"_cleanupDragArtifacts",value:function(e){var t=this;lN(this._rootElement,!0),this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._boundaryRect=this._previewRect=void 0,this._ngZone.run(function(){var n=t._dropContainer,i=n.getItemIndex(t),r=t._getPointerPositionOnPage(e),o=t._getDragDistance(t._getPointerPositionOnPage(e)),a=n._isOverContainer(r.x,r.y);t.ended.next({source:t,distance:o}),t.dropped.next({item:t,currentIndex:i,previousIndex:t._initialIndex,container:n,previousContainer:t._initialContainer,isPointerOverContainer:a,distance:o}),n.drop(t,i,t._initialIndex,t._initialContainer,a,o),t._dropContainer=t._initialContainer})}},{key:"_updateActiveDropContainer",value:function(e,t){var n=this,i=e.x,r=e.y,o=t.x,a=t.y,s=this._initialContainer._getSiblingContainerFromPosition(this,i,r);!s&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(i,r)&&(s=this._initialContainer),s&&s!==this._dropContainer&&this._ngZone.run(function(){n.exited.next({item:n,container:n._dropContainer}),n._dropContainer.exit(n),n._dropContainer=s,n._dropContainer.enter(n,i,r,s===n._initialContainer&&s.sortingDisabled?n._initialIndex:void 0),n.entered.next({item:n,container:s,currentIndex:s.getItemIndex(n)})}),this._dropContainer._startScrollingIfNecessary(o,a),this._dropContainer._sortItem(this,i,r,this._pointerDirectionDelta),this._preview.style.transform=AN(i-this._pickupPositionInElement.x,r-this._pickupPositionInElement.y)}},{key:"_createPreviewElement",value:function(){var e,t=this._previewTemplate,n=this.previewClass,i=t?t.template:null;if(i&&t){var r=t.matchSize?this._rootElement.getBoundingClientRect():null,o=t.viewContainer.createEmbeddedView(i,t.context);o.detectChanges(),e=EN(o,this._document),this._previewRef=o,t.matchSize?DN(e,r):e.style.transform=AN(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else{var a=this._rootElement;DN(e=vN(a),a.getBoundingClientRect())}return aN(e.style,{pointerEvents:"none",margin:"0",position:"fixed",top:"0",left:"0",zIndex:""+(this._config.zIndex||1e3)}),sN(e,!1),e.classList.add("cdk-drag-preview"),e.setAttribute("dir",this._direction),n&&(Array.isArray(n)?n.forEach(function(t){return e.classList.add(t)}):e.classList.add(n)),e}},{key:"_animatePreviewToPlaceholder",value:function(){var e=this;if(!this._hasMoved)return Promise.resolve();var t=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._preview.style.transform=AN(t.left,t.top);var n=function(e){var t=getComputedStyle(e),n=cN(t,"transition-property"),i=n.find(function(e){return"transform"===e||"all"===e});if(!i)return 0;var r=n.indexOf(i),o=cN(t,"transition-duration"),a=cN(t,"transition-delay");return uN(o[r])+uN(a[r])}(this._preview);return 0===n?Promise.resolve():this._ngZone.runOutsideAngular(function(){return new Promise(function(t){var i=function n(i){(!i||i.target===e._preview&&"transform"===i.propertyName)&&(e._preview.removeEventListener("transitionend",n),t(),clearTimeout(r))},r=setTimeout(i,1.5*n);e._preview.addEventListener("transitionend",i)})})}},{key:"_createPlaceholderElement",value:function(){var e,t=this._placeholderTemplate,n=t?t.template:null;return n?(this._placeholderRef=t.viewContainer.createEmbeddedView(n,t.context),this._placeholderRef.detectChanges(),e=EN(this._placeholderRef,this._document)):e=vN(this._rootElement),e.classList.add("cdk-drag-placeholder"),e}},{key:"_getPointerPositionInElement",value:function(e,t){var n=this._rootElement.getBoundingClientRect(),i=e===this._rootElement?null:e,r=i?i.getBoundingClientRect():n,o=PN(t)?t.targetTouches[0]:t,a=this._getViewportScrollPosition();return{x:r.left-n.left+(o.pageX-r.left-a.left),y:r.top-n.top+(o.pageY-r.top-a.top)}}},{key:"_getPointerPositionOnPage",value:function(e){var t=this._getViewportScrollPosition(),n=PN(e)?e.touches[0]||e.changedTouches[0]||{pageX:0,pageY:0}:e,i=n.pageX-t.left,r=n.pageY-t.top;if(this._ownerSVGElement){var o=this._ownerSVGElement.getScreenCTM();if(o){var a=this._ownerSVGElement.createSVGPoint();return a.x=i,a.y=r,a.matrixTransform(o.inverse())}}return{x:i,y:r}}},{key:"_getConstrainedPointerPosition",value:function(e){var t=this._dropContainer?this._dropContainer.lockAxis:null,n=this.constrainPosition?this.constrainPosition(e,this):e,i=n.x,r=n.y;if("x"===this.lockAxis||"x"===t?r=this._pickupPositionOnPage.y:"y"!==this.lockAxis&&"y"!==t||(i=this._pickupPositionOnPage.x),this._boundaryRect){var o=this._pickupPositionInElement,a=o.x,s=o.y,l=this._boundaryRect,u=this._previewRect,c=l.top+s,d=l.bottom-(u.height-s);i=CN(i,l.left+a,l.right-(u.width-a)),r=CN(r,c,d)}return{x:i,y:r}}},{key:"_updatePointerDirectionDelta",value:function(e){var t=e.x,n=e.y,i=this._pointerDirectionDelta,r=this._pointerPositionAtLastDirectionChange,o=Math.abs(t-r.x),a=Math.abs(n-r.y);return o>this._config.pointerDirectionChangeThreshold&&(i.x=t>r.x?1:-1,r.x=t),a>this._config.pointerDirectionChangeThreshold&&(i.y=n>r.y?1:-1,r.y=n),i}},{key:"_toggleNativeDragInteractions",value:function(){if(this._rootElement&&this._handles){var e=this._handles.length>0||!this.isDragging();e!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=e,sN(this._rootElement,e))}}},{key:"_removeRootElementListeners",value:function(e){e.removeEventListener("mousedown",this._pointerDown,kN),e.removeEventListener("touchstart",this._pointerDown,_N)}},{key:"_applyRootElementTransform",value:function(e,t){var n=AN(e,t);null==this._initialTransform&&(this._initialTransform=this._rootElement.style.transform||""),this._rootElement.style.transform=this._initialTransform?n+" "+this._initialTransform:n}},{key:"_getDragDistance",value:function(e){var t=this._pickupPositionOnPage;return t?{x:e.x-t.x,y:e.y-t.y}:{x:0,y:0}}},{key:"_cleanupCachedDimensions",value:function(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}},{key:"_containInsideBoundaryOnResize",value:function(){var e=this._passiveTransform,t=e.x,n=e.y;if(!(0===t&&0===n||this.isDragging())&&this._boundaryElement){var i=this._boundaryElement.getBoundingClientRect(),r=this._rootElement.getBoundingClientRect();if(!(0===i.width&&0===i.height||0===r.width&&0===r.height)){var o=i.left-r.left,a=r.right-i.right,s=i.top-r.top,l=r.bottom-i.bottom;i.width>r.width?(o>0&&(t+=o),a>0&&(t-=a)):t=0,i.height>r.height?(s>0&&(n+=s),l>0&&(n-=l)):n=0,t===this._passiveTransform.x&&n===this._passiveTransform.y||this.setFreeDragPosition({y:n,x:t})}}}},{key:"_getDragStartDelay",value:function(e){var t=this.dragStartDelay;return"number"==typeof t?t:PN(e)?t.touch:t?t.mouse:0}},{key:"_updateOnScroll",value:function(e){var t=this._parentPositions.handleScroll(e);if(t){var n=e.target;this._boundaryRect&&(n===this._document||n!==this._boundaryElement&&n.contains(this._boundaryElement))&&fN(this._boundaryRect,t.top,t.left),this._pickupPositionOnPage.x+=t.left,this._pickupPositionOnPage.y+=t.top,this._dropContainer||(this._activeTransform.x-=t.left,this._activeTransform.y-=t.top,this._applyRootElementTransform(this._activeTransform.x,this._activeTransform.y))}}},{key:"_getViewportScrollPosition",value:function(){var e=this._parentPositions.positions.get(this._document);return e?e.scrollPosition:this._viewportRuler.getViewportScrollPosition()}},{key:"_getShadowRoot",value:function(){return void 0===this._cachedShadowRoot&&(this._cachedShadowRoot=wT(this._rootElement)),this._cachedShadowRoot}}]),e}();function AN(e,t){return"translate3d(".concat(Math.round(e),"px, ").concat(Math.round(t),"px, 0)")}function CN(e,t,n){return Math.max(t,Math.min(n,e))}function SN(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function PN(e){return"t"===e.type[0]}function EN(e,t){var n=e.rootNodes;if(1===n.length&&n[0].nodeType===t.ELEMENT_NODE)return n[0];var i=t.createElement("div");return n.forEach(function(e){return i.appendChild(e)}),i}function DN(e,t){e.style.width=t.width+"px",e.style.height=t.height+"px",e.style.transform=AN(t.left,t.top)}function ON(e,t){return Math.max(0,Math.min(t,e))}var MN=function(){function e(t,n,i,r,o){var a=this;A(this,e),this._dragDropRegistry=n,this._ngZone=r,this._viewportRuler=o,this.disabled=!1,this.sortingDisabled=!1,this.autoScrollDisabled=!1,this.autoScrollStep=2,this.enterPredicate=function(){return!0},this.sortPredicate=function(){return!0},this.beforeStarted=new W,this.entered=new W,this.exited=new W,this.dropped=new W,this.sorted=new W,this._isDragging=!1,this._itemPositions=[],this._previousSwap={drag:null,delta:0,overlaps:!1},this._draggables=[],this._siblings=[],this._orientation="vertical",this._activeSiblings=new Set,this._direction="ltr",this._viewportScrollSubscription=O.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new W,this._cachedShadowRoot=null,this._startScrollInterval=function(){a._stopScrolling(),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:nT;return(!bR(e)||e<0)&&(e=0),t&&"function"==typeof t.schedule||(t=nT),new V(function(n){return n.add(t.schedule(oN,e,{subscriber:n,counter:0,period:e})),n})}(0,lR).pipe(kR(a._stopScrollTimers)).subscribe(function(){var e=a._scrollNode,t=a.autoScrollStep;1===a._verticalScrollDirection?IN(e,-t):2===a._verticalScrollDirection&&IN(e,t),1===a._horizontalScrollDirection?RN(e,-t):2===a._horizontalScrollDirection&&RN(e,t)})},this.element=hT(t),this._document=i,this.withScrollableParents([this.element]),n.registerDropContainer(this),this._parentPositions=new gN(i,o)}return m(e,[{key:"dispose",value:function(){this._stopScrolling(),this._stopScrollTimers.complete(),this._viewportScrollSubscription.unsubscribe(),this.beforeStarted.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this.sorted.complete(),this._activeSiblings.clear(),this._scrollNode=null,this._parentPositions.clear(),this._dragDropRegistry.removeDropContainer(this)}},{key:"isDragging",value:function(){return this._isDragging}},{key:"start",value:function(){this._draggingStarted(),this._notifyReceivingSiblings()}},{key:"enter",value:function(e,t,n,i){var r;this._draggingStarted(),null==i?-1===(r=this.sortingDisabled?this._draggables.indexOf(e):-1)&&(r=this._getItemIndexFromPointerPosition(e,t,n)):r=i;var o=this._activeDraggables,a=o.indexOf(e),s=e.getPlaceholderElement(),l=o[r];if(l===e&&(l=o[r+1]),a>-1&&o.splice(a,1),l&&!this._dragDropRegistry.isDragging(l)){var u=l.getRootElement();u.parentElement.insertBefore(s,u),o.splice(r,0,e)}else if(this._shouldEnterAsFirstChild(t,n)){var c=o[0].getRootElement();c.parentNode.insertBefore(s,c),o.unshift(e)}else hT(this.element).appendChild(s),o.push(e);s.style.transform="",this._cacheItemPositions(),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:e,container:this,currentIndex:this.getItemIndex(e)})}},{key:"exit",value:function(e){this._reset(),this.exited.next({item:e,container:this})}},{key:"drop",value:function(e,t,n,i,r,o){this._reset(),this.dropped.next({item:e,currentIndex:t,previousIndex:n,container:this,previousContainer:i,isPointerOverContainer:r,distance:o})}},{key:"withItems",value:function(e){var t=this,n=this._draggables;return this._draggables=e,e.forEach(function(e){return e._withDropContainer(t)}),this.isDragging()&&(n.filter(function(e){return e.isDragging()}).every(function(t){return-1===e.indexOf(t)})?this._reset():this._cacheItems()),this}},{key:"withDirection",value:function(e){return this._direction=e,this}},{key:"connectedTo",value:function(e){return this._siblings=e.slice(),this}},{key:"withOrientation",value:function(e){return this._orientation=e,this}},{key:"withScrollableParents",value:function(e){var t=hT(this.element);return this._scrollableElements=-1===e.indexOf(t)?[t].concat(y(e)):e.slice(),this}},{key:"getScrollableParents",value:function(){return this._scrollableElements}},{key:"getItemIndex",value:function(e){return this._isDragging?TN("horizontal"===this._orientation&&"rtl"===this._direction?this._itemPositions.slice().reverse():this._itemPositions,function(t){return t.drag===e}):this._draggables.indexOf(e)}},{key:"isReceiving",value:function(){return this._activeSiblings.size>0}},{key:"_sortItem",value:function(e,t,n,i){if(!this.sortingDisabled&&this._clientRect&&pN(this._clientRect,.05,t,n)){var r=this._itemPositions,o=this._getItemIndexFromPointerPosition(e,t,n,i);if(!(-1===o&&r.length>0)){var a="horizontal"===this._orientation,s=TN(r,function(t){return t.drag===e}),l=r[o],u=l.clientRect,c=s>o?1:-1,d=this._getItemOffsetPx(r[s].clientRect,u,c),h=this._getSiblingOffsetPx(s,r,c),f=r.slice();!function(e,t,n){var i=ON(t,e.length-1),r=ON(n,e.length-1);if(i!==r){for(var o=e[i],a=r<i?-1:1,s=i;s!==r;s+=a)e[s]=e[s+a];e[r]=o}}(r,s,o),this.sorted.next({previousIndex:s,currentIndex:o,container:this,item:e}),r.forEach(function(t,n){if(f[n]!==t){var i=t.drag===e,r=i?d:h,o=i?e.getPlaceholderElement():t.drag.getRootElement();t.offset+=r,a?(o.style.transform="translate3d(".concat(Math.round(t.offset),"px, 0, 0)"),fN(t.clientRect,0,r)):(o.style.transform="translate3d(0, ".concat(Math.round(t.offset),"px, 0)"),fN(t.clientRect,r,0))}}),this._previousSwap.overlaps=hN(u,t,n),this._previousSwap.drag=l.drag,this._previousSwap.delta=a?i.x:i.y}}}},{key:"_startScrollingIfNecessary",value:function(e,t){var n=this;if(!this.autoScrollDisabled){var i,r=0,o=0;if(this._parentPositions.positions.forEach(function(a,s){var l;s!==n._document&&a.clientRect&&!i&&pN(a.clientRect,.05,e,t)&&(l=f(function(e,t,n,i){var r=LN(t,i),o=FN(t,n),a=0,s=0;if(r){var l=e.scrollTop;1===r?l>0&&(a=1):e.scrollHeight-l>e.clientHeight&&(a=2)}if(o){var u=e.scrollLeft;1===o?u>0&&(s=1):e.scrollWidth-u>e.clientWidth&&(s=2)}return[a,s]}(s,a.clientRect,e,t),2),r=l[0],o=l[1],(r||o)&&(i=s))}),!r&&!o){var a=this._viewportRuler.getViewportSize(),s=a.width,l=a.height,u={width:s,height:l,top:0,right:s,bottom:l,left:0};r=LN(u,t),o=FN(u,e),i=window}!i||r===this._verticalScrollDirection&&o===this._horizontalScrollDirection&&i===this._scrollNode||(this._verticalScrollDirection=r,this._horizontalScrollDirection=o,this._scrollNode=i,(r||o)&&i?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}}},{key:"_stopScrolling",value:function(){this._stopScrollTimers.next()}},{key:"_draggingStarted",value:function(){var e=hT(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=e.msScrollSnapType||e.scrollSnapType||"",e.scrollSnapType=e.msScrollSnapType="none",this._cacheItems(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}},{key:"_cacheParentPositions",value:function(){var e=hT(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(e).clientRect}},{key:"_cacheItemPositions",value:function(){var e="horizontal"===this._orientation;this._itemPositions=this._activeDraggables.map(function(e){var t=e.getVisibleElement();return{drag:e,offset:0,clientRect:dN(t)}}).sort(function(t,n){return e?t.clientRect.left-n.clientRect.left:t.clientRect.top-n.clientRect.top})}},{key:"_reset",value:function(){var e=this;this._isDragging=!1;var t=hT(this.element).style;t.scrollSnapType=t.msScrollSnapType=this._initialScrollSnap,this._activeDraggables.forEach(function(e){var t=e.getRootElement();t&&(t.style.transform="")}),this._siblings.forEach(function(t){return t._stopReceiving(e)}),this._activeDraggables=[],this._itemPositions=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1,this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}},{key:"_getSiblingOffsetPx",value:function(e,t,n){var i="horizontal"===this._orientation,r=t[e].clientRect,o=t[e+-1*n],a=r[i?"width":"height"]*n;if(o){var s=i?"left":"top",l=i?"right":"bottom";-1===n?a-=o.clientRect[s]-r[l]:a+=r[s]-o.clientRect[l]}return a}},{key:"_getItemOffsetPx",value:function(e,t,n){var i="horizontal"===this._orientation,r=i?t.left-e.left:t.top-e.top;return-1===n&&(r+=i?t.width-e.width:t.height-e.height),r}},{key:"_shouldEnterAsFirstChild",value:function(e,t){if(!this._activeDraggables.length)return!1;var n=this._itemPositions,i="horizontal"===this._orientation;if(n[0].drag!==this._activeDraggables[0]){var r=n[n.length-1].clientRect;return i?e>=r.right:t>=r.bottom}var o=n[0].clientRect;return i?e<=o.left:t<=o.top}},{key:"_getItemIndexFromPointerPosition",value:function(e,t,n,i){var r=this,o="horizontal"===this._orientation,a=TN(this._itemPositions,function(a,s,l){var u=a.drag,c=a.clientRect;if(u===e)return l.length<2;if(i){var d=o?i.x:i.y;if(u===r._previousSwap.drag&&r._previousSwap.overlaps&&d===r._previousSwap.delta)return!1}return o?t>=Math.floor(c.left)&&t<Math.floor(c.right):n>=Math.floor(c.top)&&n<Math.floor(c.bottom)});return-1!==a&&this.sortPredicate(a,e,this)?a:-1}},{key:"_cacheItems",value:function(){this._activeDraggables=this._draggables.slice(),this._cacheItemPositions(),this._cacheParentPositions()}},{key:"_isOverContainer",value:function(e,t){return null!=this._clientRect&&hN(this._clientRect,e,t)}},{key:"_getSiblingContainerFromPosition",value:function(e,t,n){return this._siblings.find(function(i){return i._canReceive(e,t,n)})}},{key:"_canReceive",value:function(e,t,n){if(!this._clientRect||!hN(this._clientRect,t,n)||!this.enterPredicate(e,this))return!1;var i=this._getShadowRoot().elementFromPoint(t,n);if(!i)return!1;var r=hT(this.element);return i===r||r.contains(i)}},{key:"_startReceiving",value:function(e,t){var n=this,i=this._activeSiblings;!i.has(e)&&t.every(function(e){return n.enterPredicate(e,n)||n._draggables.indexOf(e)>-1})&&(i.add(e),this._cacheParentPositions(),this._listenToScrollEvents())}},{key:"_stopReceiving",value:function(e){this._activeSiblings.delete(e),this._viewportScrollSubscription.unsubscribe()}},{key:"_listenToScrollEvents",value:function(){var e=this;this._viewportScrollSubscription=this._dragDropRegistry.scroll.subscribe(function(t){if(e.isDragging()){var n=e._parentPositions.handleScroll(t);n&&(e._itemPositions.forEach(function(e){fN(e.clientRect,n.top,n.left)}),e._itemPositions.forEach(function(t){var n=t.drag;e._dragDropRegistry.isDragging(n)&&n._sortFromLastPointerPosition()}))}else e.isReceiving()&&e._cacheParentPositions()})}},{key:"_getShadowRoot",value:function(){if(!this._cachedShadowRoot){var e=wT(hT(this.element));this._cachedShadowRoot=e||this._document}return this._cachedShadowRoot}},{key:"_notifyReceivingSiblings",value:function(){var e=this,t=this._activeDraggables.filter(function(e){return e.isDragging()});this._siblings.forEach(function(n){return n._startReceiving(e,t)})}}]),e}();function TN(e,t){for(var n=0;n<e.length;n++)if(t(e[n],n,e))return n;return-1}function IN(e,t){e===window?e.scrollBy(0,t):e.scrollTop+=t}function RN(e,t){e===window?e.scrollBy(t,0):e.scrollLeft+=t}function LN(e,t){var n=e.top,i=e.bottom,r=.05*e.height;return t>=n-r&&t<=n+r?1:t>=i-r&&t<=i+r?2:0}function FN(e,t){var n=e.left,i=e.right,r=.05*e.width;return t>=n-r&&t<=n+r?1:t>=i-r&&t<=i+r?2:0}var BN,VN,zN,NN=bT({passive:!1,capture:!0}),HN=((BN=function(){function e(t,n){var i=this;A(this,e),this._ngZone=t,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=[],this._globalListeners=new Map,this._draggingPredicate=function(e){return e.isDragging()},this.pointerMove=new W,this.pointerUp=new W,this.scroll=new W,this._preventDefaultWhileDragging=function(e){i._activeDragInstances.length>0&&e.preventDefault()},this._persistentTouchmoveListener=function(e){i._activeDragInstances.length>0&&(i._activeDragInstances.some(i._draggingPredicate)&&e.preventDefault(),i.pointerMove.next(e))},this._document=n}return m(e,[{key:"registerDropContainer",value:function(e){this._dropInstances.has(e)||this._dropInstances.add(e)}},{key:"registerDragItem",value:function(e){var t=this;this._dragInstances.add(e),1===this._dragInstances.size&&this._ngZone.runOutsideAngular(function(){t._document.addEventListener("touchmove",t._persistentTouchmoveListener,NN)})}},{key:"removeDropContainer",value:function(e){this._dropInstances.delete(e)}},{key:"removeDragItem",value:function(e){this._dragInstances.delete(e),this.stopDragging(e),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._persistentTouchmoveListener,NN)}},{key:"startDragging",value:function(e,t){var n=this;if(!(this._activeDragInstances.indexOf(e)>-1)&&(this._activeDragInstances.push(e),1===this._activeDragInstances.length)){var i=t.type.startsWith("touch");this._globalListeners.set(i?"touchend":"mouseup",{handler:function(e){return n.pointerUp.next(e)},options:!0}).set("scroll",{handler:function(e){return n.scroll.next(e)},options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:NN}),i||this._globalListeners.set("mousemove",{handler:function(e){return n.pointerMove.next(e)},options:NN}),this._ngZone.runOutsideAngular(function(){n._globalListeners.forEach(function(e,t){n._document.addEventListener(t,e.handler,e.options)})})}}},{key:"stopDragging",value:function(e){var t=this._activeDragInstances.indexOf(e);t>-1&&(this._activeDragInstances.splice(t,1),0===this._activeDragInstances.length&&this._clearGlobalListeners())}},{key:"isDragging",value:function(e){return this._activeDragInstances.indexOf(e)>-1}},{key:"ngOnDestroy",value:function(){var e=this;this._dragInstances.forEach(function(t){return e.removeDragItem(t)}),this._dropInstances.forEach(function(t){return e.removeDropContainer(t)}),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}},{key:"_clearGlobalListeners",value:function(){var e=this;this._globalListeners.forEach(function(t,n){e._document.removeEventListener(n,t.handler,t.options)}),this._globalListeners.clear()}}]),e}()).\u0275fac=function(e){return new(e||BN)(Ri(Ac),Ri(od))},BN.\u0275prov=Re({factory:function(){return new BN(Ri(Ac),Ri(od))},token:BN,providedIn:"root"}),BN),jN={dragStartThreshold:5,pointerDirectionChangeThreshold:5},UN=((VN=function(){function e(t,n,i,r){A(this,e),this._document=t,this._ngZone=n,this._viewportRuler=i,this._dragDropRegistry=r}return m(e,[{key:"createDrag",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:jN;return new xN(e,t,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}},{key:"createDropList",value:function(e){return new MN(e,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}]),e}()).\u0275fac=function(e){return new(e||VN)(Ri(od),Ri(Ac),Ri(MR),Ri(HN))},VN.\u0275prov=Re({factory:function(){return new VN(Ri(od),Ri(Ac),Ri(MR),Ri(HN))},token:VN,providedIn:"root"}),VN),WN=new mi("CDK_DRAG_PARENT"),GN=new mi("CDK_DRAG_CONFIG"),qN=new mi("CdkDropList"),YN=new mi("CdkDragHandle"),ZN=new mi("CdkDragPlaceholder"),QN=new mi("CdkDragPreview"),XN=((zN=function(){function e(t,n,i,r,o,a,s,l,u,c,d){var h=this;A(this,e),this.element=t,this.dropContainer=n,this._ngZone=r,this._viewContainerRef=o,this._dir=s,this._changeDetectorRef=u,this._selfHandle=c,this._parentDrag=d,this._destroyed=new W,this.started=new Fu,this.released=new Fu,this.ended=new Fu,this.entered=new Fu,this.exited=new Fu,this.dropped=new Fu,this.moved=new V(function(e){var t=h._dragRef.moved.pipe(Y(function(e){return{source:h,pointerPosition:e.pointerPosition,event:e.event,delta:e.delta,distance:e.distance}})).subscribe(e);return function(){t.unsubscribe()}}),this._dragRef=l.createDrag(t,{dragStartThreshold:a&&null!=a.dragStartThreshold?a.dragStartThreshold:5,pointerDirectionChangeThreshold:a&&null!=a.pointerDirectionChangeThreshold?a.pointerDirectionChangeThreshold:5,zIndex:null==a?void 0:a.zIndex}),this._dragRef.data=this,e._dragInstances.push(this),a&&this._assignDefaults(a),n&&(this._dragRef._withDropContainer(n._dropListRef),n.addItem(this)),this._syncInputs(this._dragRef),this._handleEvents(this._dragRef)}return m(e,[{key:"disabled",get:function(){return this._disabled||this.dropContainer&&this.dropContainer.disabled},set:function(e){this._disabled=lT(e),this._dragRef.disabled=this._disabled}},{key:"getPlaceholderElement",value:function(){return this._dragRef.getPlaceholderElement()}},{key:"getRootElement",value:function(){return this._dragRef.getRootElement()}},{key:"reset",value:function(){this._dragRef.reset()}},{key:"getFreeDragPosition",value:function(){return this._dragRef.getFreeDragPosition()}},{key:"ngAfterViewInit",value:function(){var e=this;this._ngZone.onStable.pipe(Hb(1),kR(this._destroyed)).subscribe(function(){e._updateRootElement(),e._handles.changes.pipe(Wb(e._handles),uw(function(t){var n=t.filter(function(t){return t._parentDrag===e}).map(function(e){return e.element});e._selfHandle&&e.rootElementSelector&&n.push(e.element),e._dragRef.withHandles(n)}),Bb(function(e){return he.apply(void 0,y(e.map(function(e){return e._stateChanges.pipe(Wb(e))})))}),kR(e._destroyed)).subscribe(function(t){var n=e._dragRef,i=t.element.nativeElement;t.disabled?n.disableHandle(i):n.enableHandle(i)}),e.freeDragPosition&&e._dragRef.setFreeDragPosition(e.freeDragPosition)})}},{key:"ngOnChanges",value:function(e){var t=e.rootElementSelector,n=e.freeDragPosition;t&&!t.firstChange&&this._updateRootElement(),n&&!n.firstChange&&this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)}},{key:"ngOnDestroy",value:function(){this.dropContainer&&this.dropContainer.removeItem(this);var t=e._dragInstances.indexOf(this);t>-1&&e._dragInstances.splice(t,1),this._destroyed.next(),this._destroyed.complete(),this._dragRef.dispose()}},{key:"_updateRootElement",value:function(){var e=this.element.nativeElement,t=this.rootElementSelector?KN(e,this.rootElementSelector):e;this._dragRef.withRootElement(t||e)}},{key:"_getBoundaryElement",value:function(){var e=this.boundaryElement;return e?"string"==typeof e?KN(this.element.nativeElement,e):hT(e):null}},{key:"_syncInputs",value:function(t){var n=this;t.beforeStarted.subscribe(function(){if(!t.isDragging()){var e=n._dir,i=n.dragStartDelay,r=n._placeholderTemplate?{template:n._placeholderTemplate.templateRef,context:n._placeholderTemplate.data,viewContainer:n._viewContainerRef}:null,o=n._previewTemplate?{template:n._previewTemplate.templateRef,context:n._previewTemplate.data,matchSize:n._previewTemplate.matchSize,viewContainer:n._viewContainerRef}:null;t.disabled=n.disabled,t.lockAxis=n.lockAxis,t.dragStartDelay="object"==typeof i&&i?i:uT(i),t.constrainPosition=n.constrainPosition,t.previewClass=n.previewClass,t.withBoundaryElement(n._getBoundaryElement()).withPlaceholderTemplate(r).withPreviewTemplate(o),e&&t.withDirection(e.value)}}),t.beforeStarted.pipe(Hb(1)).subscribe(function(){var i,r;if(n._parentDrag)t.withParent(n._parentDrag._dragRef);else for(var o=n.element.nativeElement.parentElement;o;){if(null===(i=o.classList)||void 0===i?void 0:i.contains("cdk-drag")){t.withParent((null===(r=e._dragInstances.find(function(e){return e.element.nativeElement===o}))||void 0===r?void 0:r._dragRef)||null);break}o=o.parentElement}})}},{key:"_handleEvents",value:function(e){var t=this;e.started.subscribe(function(){t.started.emit({source:t}),t._changeDetectorRef.markForCheck()}),e.released.subscribe(function(){t.released.emit({source:t})}),e.ended.subscribe(function(e){t.ended.emit({source:t,distance:e.distance}),t._changeDetectorRef.markForCheck()}),e.entered.subscribe(function(e){t.entered.emit({container:e.container.data,item:t,currentIndex:e.currentIndex})}),e.exited.subscribe(function(e){t.exited.emit({container:e.container.data,item:t})}),e.dropped.subscribe(function(e){t.dropped.emit({previousIndex:e.previousIndex,currentIndex:e.currentIndex,previousContainer:e.previousContainer.data,container:e.container.data,isPointerOverContainer:e.isPointerOverContainer,item:t,distance:e.distance})})}},{key:"_assignDefaults",value:function(e){var t=e.lockAxis,n=e.dragStartDelay,i=e.constrainPosition,r=e.previewClass,o=e.boundaryElement,a=e.draggingDisabled,s=e.rootElementSelector;this.disabled=null!=a&&a,this.dragStartDelay=n||0,t&&(this.lockAxis=t),i&&(this.constrainPosition=i),r&&(this.previewClass=r),o&&(this.boundaryElement=o),s&&(this.rootElementSelector=s)}}]),e}()).\u0275fac=function(e){return new(e||zN)(rs(Cl),rs(qN,12),rs(od),rs(Ac),rs(uu),rs(GN,8),rs(dI,8),rs(UN),rs(Kl),rs(YN,10),rs(WN,12))},zN.\u0275dir=bt({type:zN,selectors:[["","cdkDrag",""]],contentQueries:function(e,t,n){var i;1&e&&(Xu(n,QN,1),Xu(n,ZN,1),Xu(n,YN,1)),2&e&&(Zu(i=Ku())&&(t._previewTemplate=i.first),Zu(i=Ku())&&(t._placeholderTemplate=i.first),Zu(i=Ku())&&(t._handles=i))},hostAttrs:[1,"cdk-drag"],hostVars:4,hostBindings:function(e,t){2&e&&Fs("cdk-drag-disabled",t.disabled)("cdk-drag-dragging",t._dragRef.isDragging())},inputs:{disabled:["cdkDragDisabled","disabled"],dragStartDelay:["cdkDragStartDelay","dragStartDelay"],lockAxis:["cdkDragLockAxis","lockAxis"],constrainPosition:["cdkDragConstrainPosition","constrainPosition"],previewClass:["cdkDragPreviewClass","previewClass"],boundaryElement:["cdkDragBoundary","boundaryElement"],rootElementSelector:["cdkDragRootElement","rootElementSelector"],data:["cdkDragData","data"],freeDragPosition:["cdkDragFreeDragPosition","freeDragPosition"]},outputs:{started:"cdkDragStarted",released:"cdkDragReleased",ended:"cdkDragEnded",entered:"cdkDragEntered",exited:"cdkDragExited",dropped:"cdkDragDropped",moved:"cdkDragMoved"},exportAs:["cdkDrag"],features:[yl([{provide:WN,useExisting:zN}]),Mt]}),zN._dragInstances=[],zN);function KN(e,t){for(var n=e.parentElement;n;){if(n.matches?n.matches(t):n.msMatchesSelector(t))return n;n=n.parentElement}return null}var JN,$N=((JN=function e(){A(this,e)}).\u0275fac=function(e){return new(e||JN)},JN.\u0275mod=mt({type:JN}),JN.\u0275inj=Fe({providers:[UN],imports:[TR]}),JN),eH=function(e,t,n){if(0===n||0===t)return"";var i=e*t;return i<(n=Math.max(n,0))&&Math.min(i+t,n),"".concat(e+1," / ").concat(Math.ceil(n/t))};var tH,nH,iH,rH,oH=((rH=function e(){A(this,e)}).\u0275fac=function(e){return new(e||rH)},rH.\u0275mod=mt({type:rH}),rH.\u0275inj=Fe({providers:[{provide:$V,useValue:(iH=new $V,iH.itemsPerPageLabel="Afficher:",iH.nextPageLabel="Page suivante",iH.previousPageLabel="Page pr\xe9c\xe9dente",iH.getRangeLabel=eH,iH)}],imports:[[sz,tV,PB,zF,qI,$N,dz,ZF,KB,az,QF,$B,DB,rN,Rz,cz,EV,uz,mF,Iz,oz,Mz,vF,KF],sz,tV,PB,zF,qI,$N,dz,ZF,KB,az,QF,$B,DB,rN,Rz,cz,EV,uz,mF,Iz,oz,Mz,vF,KF]}),rH),aH=((nH=function e(t,n,i){A(this,e),this.translate=t,this.data=n,this.dialogRef=i,null===this.data.mode&&(this.data.mode=""),null===this.data.msg&&(this.data.msg="")}).\u0275fac=function(e){return new(e||nH)(rs(pE),rs(mB),rs(sB))},nH.\u0275cmp=ft({type:nH,selectors:[["ng-component"]],decls:10,vars:12,consts:[["mat-dialog-title",""],["mat-dialog-content","",3,"innerHTML"],["mat-dialog-actions",""],["mat-button","",1,"actions","btn","red",3,"click"]],template:function(e,t){1&e&&(ss(0,"div"),ss(1,"h1",0),Qs(2),Du(3,"translate"),ls(),us(4,"div",1),Du(5,"translate"),ss(6,"div",2),ss(7,"button",3),ms("click",function(){return t.dialogRef.close()}),Qs(8),Du(9,"translate"),ls(),ls(),ls()),2&e&&(tl("modalContent ",t.data.mode,""),xo(2),Xs(Ou(3,6,t.data.title)),xo(2),os("innerHTML",Ou(5,8,t.data.msg),Ar),xo(4),Xs(Ou(9,10,"lang.ok")))},directives:[AB,CB,SB,YF],pipes:[gE],styles:[".modalContent[_ngcontent-%COMP%]{position:relative}.mat-dialog-content[_ngcontent-%COMP%], .mat-dialog-title[_ngcontent-%COMP%]{text-align:center!important;color:#666}.mat-dialog-title[_ngcontent-%COMP%]{font-weight:700}.actions[_ngcontent-%COMP%]{width:100%;margin:10px}.close[_ngcontent-%COMP%]{position:absolute;top:-15px;right:-15px;width:40px;height:40px;font-size:20px;color:#666}.warning[_ngcontent-%COMP%]   .actions[_ngcontent-%COMP%], .warning[_ngcontent-%COMP%]   .mat-dialog-title[_ngcontent-%COMP%]{color:#e74c3c}"]}),nH),sH=((tH=function(){function e(t,n,i,r,o,a,s,l,u){A(this,e),this.translate=t,this.http=n,this.router=i,this.signaturesService=r,this.cookieService=o,this.authService=a,this.localStorage=s,this.dialog=l,this.menu=u}return m(e,[{key:"canActivate",value:function(e,t){var n=this;if("login"===e.url.join("/"))return this.authService.isAuth()?(this.router.navigate(["/home"]),!1):(this.http.get("../rest/authenticationInformations").pipe(Y(function(e){n.authService.authMode=e.connection,n.authService.changeKey=e.changeKey,n.authService.coreUrl=e.coreUrl,n.localStorage.setAppSession(e.instanceId)})).subscribe(),!0);if(!this.authService.authFailed){this.menu.enable(!0,"left-menu"),this.menu.enable(!1,"right-menu");var i=this.authService.getToken();if(null===i||this.authService.authFailed)return this.http.get("../rest/authenticationInformations").pipe(Y(function(e){return n.authService.authMode=e.connection,n.authService.changeKey=e.changeKey,n.authService.coreUrl=e.coreUrl,n.localStorage.setAppSession(e.instanceId),null!==(i=n.authService.getToken())?(n.authService.user=JSON.parse(atob(i.split(".")[1])).user,n.translate.use(n.authService.user.preferences.lang),n.cookieService.set("maarchParapheurLang",n.authService.user.preferences.lang),n.setData(),n.authService.changeKey&&n.dialog.open(aH,{autoFocus:!1,disableClose:!0,data:{mode:"warning",title:"lang.warnPrivateKeyTitle",msg:"lang.warnPrivateKey"}}),!0):(n.authService.setCachedUrl(t.url.replace(/^\//g,"")),n.authService.logout(),!1)}));if(void 0===this.authService.user.id){var r=JSON.parse(atob(i.split(".")[1]));this.authService.user=r.user,this.authService.authMode=r.connection,this.translate.use(this.authService.user.preferences.lang),this.cookieService.set("maarchParapheurLang",this.authService.user.preferences.lang),this.setData()}return!0}}},{key:"setData",value:function(){var e=this;0===this.authService.signatureRoles.length&&this.http.get("../rest/signatureModes").subscribe(function(t){e.authService.signatureRoles=[{id:"visa",type:"visa",color:"#135F7F"}],e.authService.signatureRoles=e.authService.signatureRoles.concat(t.map(function(e){return Object.assign(Object.assign({},e),{type:"sign"})}))}),0===this.signaturesService.signaturesList.length&&this.http.get("../rest/users/"+this.authService.user.id+"/signatures").subscribe(function(t){e.signaturesService.signaturesList=t.signatures}),void 0===this.authService.user.picture&&this.http.get("../rest/users/"+this.authService.user.id+"/picture").subscribe(function(t){e.authService.user.picture=t.picture})}}]),e}()).\u0275fac=function(e){return new(e||tH)(Ri(pE),Ri(lb),Ri(jk),Ri(PE),Ri(IM),Ri(DE),Ri(EE),Ri(kB),Ri(uP))},tH.\u0275prov=Re({token:tH,factory:tH.\u0275fac,providedIn:"root"}),tH);function lH(e,t){if(1&e&&(ss(0,"ion-col"),ss(1,"ion-button",7),ss(2,"div",8),us(3,"ion-icon",9),ss(4,"ion-label",10),Qs(5),Du(6,"translate"),ls(),ss(7,"ion-note",11),Qs(8),Du(9,"translate"),ls(),ls(),ls(),ls()),2&e){var n=t.$implicit;xo(1),os("routerLink",n.route),xo(2),os("name",n.icon),xo(2),Xs(Ou(6,4,"lang."+n.id)),xo(3),Ks(" ",Ou(9,6,"lang."+n.id+"Desc"),"")}}var uH,cH=function(e){return[e]},dH=((uH=function(){function e(t,n,i){A(this,e),this.signaturesService=t,this.authService=n,this.menu=i}return m(e,[{key:"ngOnInit",value:function(){this.menu.enable(!1,"right-menu")}}]),e}()).\u0275fac=function(e){return new(e||uH)(rs(PE),rs(DE),rs(uP))},uH.\u0275cmp=ft({type:uH,selectors:[["app-administration"]],decls:12,vars:8,consts:[[3,"translucent"],["color","primary"],["slot","start"],["menu","left-menu"],["mainContent",""],[3,"ngClass"],[4,"ngFor","ngForOf"],["expand","block","size","large","fill","outline","color","secondary",2,"height","200px",3,"routerLink"],[1,"admin-content"],["color","primary",2,"font-size","70px",3,"name"],["color","primary",2,"white-space","normal"],[2,"font-size","8px","white-space","normal","padding","10px"]],template:function(e,t){1&e&&(ss(0,"ion-header",0),ss(1,"ion-toolbar",1),ss(2,"ion-buttons",2),us(3,"ion-menu-button",3),ls(),ss(4,"ion-title"),Qs(5),Du(6,"translate"),ls(),ls(),ls(),ss(7,"ion-content",null,4),ss(9,"ion-grid"),ss(10,"ion-row",5),ns(11,lH,10,8,"ion-col",6),ls(),ls(),ls()),2&e&&(os("translucent",!0),xo(5),Xs(Ou(6,4,"lang.administration")),xo(5),os("ngClass",Au(6,cH,t.signaturesService.mobileMode?"repeatRowsMobile":"repeatRows")),xo(1),os("ngForOf",t.authService.user.administrativePrivileges))},directives:[XC,DS,LC,cS,PS,UC,QC,yS,fh,gh,jC,RC,$S,Uk,KC,aS,hS],pipes:[gE],styles:[".header[_ngcontent-%COMP%]{background:#135f7f;height:95px;color:#fff;padding-left:10px;font-size:25px}.header[_ngcontent-%COMP%], .header-title[_ngcontent-%COMP%]{display:flex;align-items:center}.header-title[_ngcontent-%COMP%]{flex:1;white-space:pre;overflow:hidden;text-overflow:ellipsis}.header[_ngcontent-%COMP%]   b[_ngcontent-%COMP%]{color:#f99830}.header[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis}.mainView[_ngcontent-%COMP%]{display:flex;flex-direction:column}.container[_ngcontent-%COMP%]{flex:1;overflow:auto}.loader[_ngcontent-%COMP%]{position:absolute;z-index:2;display:flex;background:hsla(0,0%,100%,.8);width:100%;height:100%;justify-content:center;align-items:center;top:0;margin:0;padding:0}.admin-form[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:20px}.actions-form[_ngcontent-%COMP%]{display:flex;justify-content:center}@media (max-width:360px){.actions-form[_ngcontent-%COMP%]{flex-direction:column}}.actions-form[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin:10px;width:150px}@media (max-width:360px){.actions-form[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{width:100%}}.noResult[_ngcontent-%COMP%]{padding:10px;text-align:center;opacity:.5}.emptyTable[_ngcontent-%COMP%]{height:auto}.addButton[_ngcontent-%COMP%]{padding:10px;display:flex;justify-content:flex-end}",".container[_ngcontent-%COMP%]{flex:1;overflow:auto}.container[_ngcontent-%COMP%]   .admin-item[_ngcontent-%COMP%]{padding-top:20px;padding-bottom:20px;text-align:center;width:100%;display:inline-block}@media (min-width:768px){.container[_ngcontent-%COMP%]   .admin-item[_ngcontent-%COMP%]{width:50%}}@media (min-width:992px){.container[_ngcontent-%COMP%]   .admin-item[_ngcontent-%COMP%]{width:33%}}.container[_ngcontent-%COMP%]   .admin-item[_ngcontent-%COMP%]   .mat-stroked-button[_ngcontent-%COMP%]{border-color:#f99830;padding:10px;width:90%;height:160px}.container[_ngcontent-%COMP%]   .admin-item[_ngcontent-%COMP%]   .mat-stroked-button[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{height:auto;width:auto;font-size:50px}.container[_ngcontent-%COMP%]   .admin-item[_ngcontent-%COMP%]   .mat-stroked-button[_ngcontent-%COMP%]    .mat-button-wrapper{display:flex;flex-direction:column}.admin-desc[_ngcontent-%COMP%]{white-space:normal;font-size:10px;line-height:15px;text-align:justify;color:grey;height:60px;overflow:auto}.admin-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center}.repeatRows[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(4,1fr)}.repeatRowsMobile[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));-ms-grid-row-align:10px}"]}),uH);function hH(e,t){if(1&e&&(ss(0,"div",15),Qs(1),Du(2,"translate"),ls()),2&e){var n=ks().$implicit;os("mat-sort-header",n),xo(1),Ks(" ",Ou(2,2,"lang."+n)," ")}}function fH(e,t){if(1&e&&(cs(0),ns(1,hH,3,4,"div",14),ds()),2&e){var n=t.$implicit;xo(1),os("ngIf","actions"!==n)}}function pH(e,t){if(1&e){var n=fs();ss(0,"div",16),ss(1,"ion-searchbar",17),ms("ionChange",function(e){return nn(n),ks().applyFilter(e.detail.value)}),Du(2,"translate"),ls(),ls()}2&e&&(xo(1),os("placeholder",Ou(2,1,"lang.filter")))}function gH(e,t){if(1&e&&(ss(0,"div",16),Qs(1),ls()),2&e){var n=t.$implicit,i=ks().$implicit;xo(1),Ks(" ",i[n]," ")}}function vH(e,t){if(1&e){var n=fs();ss(0,"ion-item",7),ss(1,"ion-label",18),ns(2,gH,2,1,"div",19),ls(),ss(3,"ion-button",20),ms("click",function(e){nn(n);var i=t.$implicit,r=ks();return e.stopPropagation(),r.delete(i)}),Du(4,"translate"),us(5,"ion-icon",21),ls(),ls()}if(2&e){var i=t.$implicit,r=ks();xo(1),Ps("routerLink","/administration/users/",i.id,""),xo(1),os("ngForOf",r.displayedColumns),xo(1),Ss("title",Ou(4,4,"lang.delete")),os("disabled",i.id===r.authService.user.id)}}var mH,yH=((mH=function(){function e(t,n,i,r,o,a,s,l){A(this,e),this.http=t,this.translate=n,this.latinisePipe=i,this.dialog=r,this.signaturesService=o,this.notificationService=a,this.authService=s,this.alertController=l,this.userList=[],this.loading=!0,this.displayedColumns=this.signaturesService.mobileMode?["firstname","lastname","email"]:["firstname","lastname","email","actions"]}return m(e,[{key:"applyFilter",value:function(e){var t=this;e=this.latinisePipe.transform(e.toLowerCase()),this.sortedData=this.userList.filter(function(n){var i=!1;return t.displayedColumns.forEach(function(r){n[r]&&t.latinisePipe.transform(n[r].toLowerCase()).includes(e)&&(i=!0)}),i})}},{key:"ionViewWillEnter",value:function(){var e=this;this.http.get("../rest/users?mode=all").pipe(Y(function(e){return e.users}),hw(function(){return e.loading=!1})).subscribe({next:function(t){e.userList=t,e.sortedData=e.userList.slice()}})}},{key:"delete",value:function(e){return t=this,i=regeneratorRuntime.mark(function t(){var n,i=this;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.alertController.create({header:this.translate.instant("lang.confirmMsg"),buttons:[{text:this.translate.instant("lang.no"),role:"cancel",cssClass:"secondary",handler:function(){}},{text:this.translate.instant("lang.yes"),handler:function(){i.http.delete("../rest/users/"+e.id).pipe(hw(function(){return i.loading=!1})).subscribe({next:function(t){var n=i.userList.findIndex(function(t){return t.id===e.id});i.userList.splice(n,1),i.sortedData=i.userList.slice(),i.notificationService.success("lang.userDeleted")},error:function(e){i.notificationService.handleErrors(e)}})}}]});case 2:return n=t.sent,t.next=5,n.present();case 5:case"end":return t.stop()}},t,this)}),new((n=void 0)||(n=Promise))(function(e,r){function o(e){try{s(i.next(e))}catch(t){r(t)}}function a(e){try{s(i.throw(e))}catch(t){r(t)}}function s(t){var i;t.done?e(t.value):(i=t.value,i instanceof n?i:new n(function(e){e(i)})).then(o,a)}s((i=i.apply(t,[])).next())});var t,n,i}},{key:"sortData",value:function(e){var t=this.userList.slice();this.sortedData=e.active&&""!==e.direction?t.sort(function(t,n){return function(e,t,n){return(e<t?-1:1)*(n?1:-1)}(t[e.active],n[e.active],"asc"===e.direction)}):t}}]),e}()).\u0275fac=function(e){return new(e||mH)(rs(lb),rs(pE),rs(QM),rs(kB),rs(PE),rs(yE),rs(DE),rs(sP))},mH.\u0275cmp=ft({type:mH,selectors:[["app-administration-users-list"]],decls:28,vars:18,consts:[[3,"translucent"],["color","primary"],["slot","start"],["menu","left-menu"],["fill","outline","shape","round","routerLink","/administration/users/new"],["slot","end","color","secondary"],["mainContent",""],[2,"display","flex"],["color","primary","matSort","","matSortDirection","asc",2,"display","flex","font-size","12px","align-items","center",3,"matSortActive","matSortChange"],[4,"ngFor","ngForOf"],["style","flex: 1",4,"ngIf"],["slot","end","fill","clear","shape","round","disabled",""],["approxItemHeight","50px",3,"items"],["style","display: flex;",4,"virtualItem"],["disableClear","","style","flex: 1",3,"mat-sort-header",4,"ngIf"],["disableClear","",2,"flex","1",3,"mat-sort-header"],[2,"flex","1"],[2,"padding","1px",3,"placeholder","ionChange"],[2,"display","flex","cursor","pointer",3,"routerLink"],["style","flex: 1",4,"ngFor","ngForOf"],["slot","end","fill","clear","shape","round",3,"disabled","title","click"],["color","danger","slot","icon-only","name","trash"]],template:function(e,t){1&e&&(ss(0,"ion-header",0),ss(1,"ion-toolbar",1),ss(2,"ion-buttons",2),us(3,"ion-menu-button",3),us(4,"ion-back-button"),ls(),ss(5,"ion-title"),Qs(6),Du(7,"translate"),Du(8,"translate"),ls(),ls(),ss(9,"ion-toolbar",1),ss(10,"ion-buttons",2),ss(11,"ion-button",4),Qs(12),Du(13,"translate"),ls(),ls(),ss(14,"ion-title",5),Qs(15),Du(16,"translate"),ls(),ls(),ls(),ss(17,"ion-content",null,6),ss(19,"ion-list"),ss(20,"ion-item",7),ss(21,"ion-label",8),ms("matSortChange",function(e){return t.sortData(e)}),ns(22,fH,2,1,"ng-container",9),ns(23,pH,3,3,"div",10),ls(),ss(24,"ion-button",11),us(25,"ion-icon"),ls(),ls(),ss(26,"ion-virtual-scroll",12),ns(27,vH,6,6,"ion-item",13),ls(),ls(),ls()),2&e&&(os("translucent",!0),xo(6),Js("",Ou(7,10,"lang.administration")," ",Ou(8,12,"lang.manage_usersAlt"),""),xo(6),Ks(" ",Ou(13,14,"lang.userCreation")," "),xo(3),Js("",t.userList.length," ",Ou(16,16,"lang.manage_usersAlt"),""),xo(6),os("matSortActive",t.displayedColumns[1]),xo(1),os("ngForOf",t.displayedColumns),xo(1),os("ngIf",t.displayedColumns.indexOf("actions")>-1),xo(3),os("items",t.sortedData))},directives:[XC,DS,LC,cS,TC,JS,PS,RC,$S,Uk,UC,sS,nS,aS,Az,gh,mh,KC,iP,nP,Oz,bS,nA],pipes:[gE],styles:[".header[_ngcontent-%COMP%]{background:#135f7f;height:95px;color:#fff;padding-left:10px;font-size:25px}.header[_ngcontent-%COMP%], .header-title[_ngcontent-%COMP%]{display:flex;align-items:center}.header-title[_ngcontent-%COMP%]{flex:1;white-space:pre;overflow:hidden;text-overflow:ellipsis}.header[_ngcontent-%COMP%]   b[_ngcontent-%COMP%]{color:#f99830}.header[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis}.mainView[_ngcontent-%COMP%]{display:flex;flex-direction:column}.container[_ngcontent-%COMP%]{flex:1;overflow:auto}.loader[_ngcontent-%COMP%]{position:absolute;z-index:2;display:flex;background:hsla(0,0%,100%,.8);width:100%;height:100%;justify-content:center;align-items:center;top:0;margin:0;padding:0}.admin-form[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:20px}.actions-form[_ngcontent-%COMP%]{display:flex;justify-content:center}@media (max-width:360px){.actions-form[_ngcontent-%COMP%]{flex-direction:column}}.actions-form[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin:10px;width:150px}@media (max-width:360px){.actions-form[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{width:100%}}.noResult[_ngcontent-%COMP%]{padding:10px;text-align:center;opacity:.5}.emptyTable[_ngcontent-%COMP%]{height:auto}.addButton[_ngcontent-%COMP%]{padding:10px;display:flex;justify-content:flex-end}",""]}),mH);function bH(e,t){1&e&&(us(0,"div",5),Du(1,"translate")),2&e&&os("innerHTML",Ou(1,1,ks().data.msg),Ar)}var wH,_H=((wH=function e(t,n,i){A(this,e),this.translate=t,this.data=n,this.dialogRef=i,null===this.data.msg&&(this.data.msg="")}).\u0275fac=function(e){return new(e||wH)(rs(pE),rs(mB),rs(sB))},wH.\u0275cmp=ft({type:wH,selectors:[["ng-component"]],decls:12,vars:13,consts:[["mat-dialog-title",""],["mat-dialog-content","",3,"innerHTML",4,"ngIf"],["mat-dialog-actions",""],["mat-button","",1,"actions","btn","blue",3,"click"],["mat-button","",1,"actions","btn","red",3,"click"],["mat-dialog-content","",3,"innerHTML"]],template:function(e,t){1&e&&(ss(0,"div"),ss(1,"h1",0),Qs(2),Du(3,"translate"),ls(),ns(4,bH,2,3,"div",1),ss(5,"div",2),ss(6,"button",3),ms("click",function(){return t.dialogRef.close("yes")}),Qs(7),Du(8,"translate"),ls(),ss(9,"button",4),ms("click",function(){return t.dialogRef.close("no")}),Qs(10),Du(11,"translate"),ls(),ls(),ls()),2&e&&(tl("modalContent ",t.data.mode,""),xo(2),Xs(Ou(3,7,t.data.title)),xo(2),os("ngIf",null!==t.data.msg),xo(3),Xs(Ou(8,9,"lang.yes")),xo(3),Xs(Ou(11,11,"lang.no")))},directives:[AB,mh,SB,YF,CB],pipes:[gE],styles:[".modalContent[_ngcontent-%COMP%]{position:relative}.mat-dialog-content[_ngcontent-%COMP%], .mat-dialog-title[_ngcontent-%COMP%]{text-align:center!important;color:#666}.mat-dialog-title[_ngcontent-%COMP%]{font-weight:700}.actions[_ngcontent-%COMP%]{width:100%;margin:10px}.close[_ngcontent-%COMP%]{position:absolute;top:-15px;right:-15px;width:40px;height:40px;font-size:20px;color:#666}.warning[_ngcontent-%COMP%]   .mat-dialog-title[_ngcontent-%COMP%]{color:#e74c3c}"]}),wH);function kH(e,t){if(1&e){var n=fs();ss(0,"ion-item"),ss(1,"ion-label"),Qs(2),Du(3,"translate"),ls(),ss(4,"ion-checkbox",27),ms("ionChange",function(e){nn(n);var t=ks().$implicit;return ks(2).toggleSignMode(t,e.detail.checked)}),ls(),ls()}if(2&e){var i=ks().$implicit,r=ks(2);xo(1),Ls("color",i.color),xo(1),Xs(Ou(3,5,"lang."+i.id)),xo(2),os("checked",r.user.signatureModes.indexOf(i.id)>-1)("disabled","stamp"===i.id)}}function xH(e,t){if(1&e&&(cs(0),ns(1,kH,5,7,"ion-item",11),ds()),2&e){var n=t.$implicit;xo(1),os("ngIf","visa"!==n.id)}}function AH(e,t){if(1&e&&(ss(0,"ion-note",33),Qs(1),Du(2,"translate"),ls()),2&e){var n=ks(3);xo(1),Ks(" ",Ou(2,1,n.handlePassword.errorMsg),"")}}function CH(e,t){if(1&e){var n=fs();ss(0,"ion-item",28),ss(1,"ion-button",29),ms("click",function(){nn(n);var e=ks(2);return e.hideNewPassword=!e.hideNewPassword}),us(2,"ion-icon",30),ls(),ss(3,"ion-label",14),Qs(4),Du(5,"translate"),ls(),ss(6,"ion-input",31),ms("ngModelChange",function(e){return nn(n),ks(2).passwordRest.newPassword=e})("ionChange",function(){nn(n);var e=ks(2);return e.checkPasswordValidity(e.passwordRest.newPassword)}),ls(),ns(7,AH,3,3,"ion-note",32),ls()}if(2&e){var i=ks(2);xo(2),os("name",i.hideNewPassword?"eye-outline":"eye-off-outline"),xo(2),Xs(Ou(5,5,"lang.newPassword")),xo(2),os("type",i.hideNewPassword?"password":"text")("ngModel",i.passwordRest.newPassword),xo(1),os("ngIf",i.handlePassword.error&&i.passwordRest.newPassword.length>0)}}function SH(e,t){1&e&&(ss(0,"ion-note",33),Qs(1),Du(2,"translate"),ls()),2&e&&(xo(1),Ks(" ",Ou(2,1,"lang.passwordNotMatch"),""))}function PH(e,t){1&e&&(ss(0,"ion-note",36),Qs(1),Du(2,"translate"),ls()),2&e&&(xo(1),Ks(" ",Ou(2,1,"lang.samePassword"),""))}function EH(e,t){if(1&e){var n=fs();ss(0,"ion-item",28),ss(1,"ion-button",29),ms("click",function(){nn(n);var e=ks(2);return e.hideNewPasswordConfirm=!e.hideNewPasswordConfirm}),us(2,"ion-icon",30),ls(),ss(3,"ion-label",14),Qs(4),Du(5,"translate"),ls(),ss(6,"ion-input",34),ms("ngModelChange",function(e){return nn(n),ks(2).passwordRest.passwordConfirmation=e}),ls(),ns(7,SH,3,3,"ion-note",32),ns(8,PH,3,3,"ion-note",35),ls()}if(2&e){var i=ks(2);xo(2),os("name",i.hideNewPasswordConfirm?"eye-outline":"eye-off-outline"),xo(2),Xs(Ou(5,6,"lang.passwordConfirmation")),xo(2),os("type",i.hideNewPasswordConfirm?"password":"text")("ngModel",i.passwordRest.passwordConfirmation),xo(1),os("ngIf",i.passwordRest.passwordConfirmation!==i.passwordRest.newPassword&&i.passwordRest.passwordConfirmation.length>0),xo(1),os("ngIf",i.passwordRest.passwordConfirmation===i.passwordRest.newPassword&&i.passwordRest.newPassword.length>0&&i.passwordRest.passwordConfirmation.length>0&&!i.handlePassword.error)}}function DH(e,t){if(1&e){var n=fs();cs(0),ss(1,"form",12,13),ms("ngSubmit",function(){return nn(n),ks().onSubmit()}),ss(3,"ion-content"),ss(4,"ion-item"),ss(5,"ion-label",14),Qs(6),Du(7,"translate"),ls(),ss(8,"ion-input",15),ms("ngModelChange",function(e){return nn(n),ks().user.login=e}),ls(),ls(),ss(9,"ion-item"),ss(10,"ion-label",14),Qs(11),Du(12,"translate"),ls(),ss(13,"ion-input",16),ms("ngModelChange",function(e){return nn(n),ks().user.firstname=e}),ls(),ls(),ss(14,"ion-item"),ss(15,"ion-label",14),Qs(16),Du(17,"translate"),ls(),ss(18,"ion-input",17),ms("ngModelChange",function(e){return nn(n),ks().user.lastname=e}),ls(),ls(),ss(19,"ion-item"),ss(20,"ion-label",14),Qs(21),Du(22,"translate"),ls(),ss(23,"ion-input",18),ms("ngModelChange",function(e){return nn(n),ks().user.email=e}),ls(),ls(),ss(24,"ion-item"),ss(25,"ion-label"),Qs(26),Du(27,"translate"),ls(),ss(28,"ion-toggle",19),ms("ngModelChange",function(e){return nn(n),ks().user.isRest=e})("ionChange",function(e){return nn(n),ks().getPassRules(e)}),ls(),ls(),ss(29,"ion-list"),ss(30,"ion-list-header"),ss(31,"ion-label",20),Qs(32),Du(33,"translate"),ls(),ls(),ns(34,xH,2,1,"ng-container",21),ls(),ns(35,CH,8,7,"ion-item",22),ns(36,EH,9,8,"ion-item",22),ss(37,"ion-item",23),ss(38,"div",24),ss(39,"ion-button",25),ss(40,"ion-label",26),Qs(41),Du(42,"translate"),ls(),ls(),ls(),ls(),ls(),ls(),ds()}if(2&e){var i=is(2),r=ks();xo(6),Ks("",Ou(7,23,"lang.login")," *"),xo(2),os("maxlength",128)("readonly",!r.creationMode)("ngModel",r.user.login),xo(3),Ks("",Ou(12,25,"lang.firstname")," *"),xo(2),os("maxlength",128)("ngModel",r.user.firstname),xo(3),Ks("",Ou(17,27,"lang.lastname")," *"),xo(2),os("maxlength",128)("ngModel",r.user.lastname),xo(3),Ks("",Ou(22,29,"lang.email")," *"),xo(2),os("maxlength",128)("ngModel",r.user.email),xo(3),Xs(Ou(27,31,"lang.restUser")),xo(2),os("disabled",!r.creationMode)("ngModel",r.user.isRest)("checked",r.user.isRest),xo(4),Xs(Ou(33,33,"lang.signatureModes")),xo(2),os("ngForOf",r.authService.signatureRoles),xo(1),os("ngIf",r.user.isRest),xo(1),os("ngIf",r.user.isRest),xo(3),os("disabled",!i.form.valid||!r.canValidate()),xo(2),Xs(Ou(42,35,"lang.validate"))}}function OH(e,t){if(1&e&&(ss(0,"ion-item"),ss(1,"ion-label"),Qs(2),ls(),ls()),2&e){var n=t.$implicit;xo(2),Xs(n.label)}}function MH(e,t){if(1&e&&(ss(0,"ion-list"),ns(1,OH,3,1,"ion-item",21),ls()),2&e){var n=ks(2);xo(1),os("ngForOf",n.user.groups)}}function TH(e,t){1&e&&(ss(0,"ion-list",38),ss(1,"ion-item",39),ss(2,"ion-label",40),Qs(3),Du(4,"translate"),ls(),ls(),ls()),2&e&&(xo(3),Xs(Ou(4,1,"lang.noAssociatedGroup")))}function IH(e,t){if(1&e&&(cs(0),ss(1,"ion-content"),ns(2,MH,2,1,"ion-list",11),ns(3,TH,5,3,"ion-list",37),ls(),ds()),2&e){var n=ks();xo(2),os("ngIf",n.user.groups.length>0),xo(1),os("ngIf",0===n.user.groups.length)}}var RH,LH=((RH=function(){function e(t,n,i,r,o,a,s,l){A(this,e),this.http=t,this.translate=n,this.route=i,this.router=r,this.signaturesService=o,this.notificationService=a,this.dialog=s,this.authService=l,this.creationMode=!0,this.loading=!0,this.user={id:"",firstname:"",lastname:"",login:"",email:"",picture:"",isRest:!1,signatureModes:["stamp"]},this.title="",this.hideCurrentPassword=!0,this.hideNewPassword=!0,this.hideNewPasswordConfirm=!0,this.currentTool="info",this.passwordRules={minLength:{enabled:!1,value:0},complexityUpper:{enabled:!1,value:0},complexityNumber:{enabled:!1,value:0},complexitySpecial:{enabled:!1,value:0},renewal:{enabled:!1,value:0},historyLastUse:{enabled:!1,value:0}},this.passwordRest={newPassword:"",passwordConfirmation:""},this.ruleText="",this.otherRuleText="",this.showPassword=!1,this.handlePassword={error:!1,errorMsg:""}}return m(e,[{key:"ngOnInit",value:function(){var e=this;this.route.params.subscribe(function(t){void 0===t.id?(e.creationMode=!0,e.title=e.translate.instant("lang.userCreation"),e.user={id:"",firstname:"",lastname:"",login:"",email:"",picture:"",signatureModes:["stamp"],isRest:!1},e.loading=!1):(e.creationMode=!1,e.http.get("../rest/users/"+t.id).pipe(Y(function(e){return e.user}),hw(function(){return e.loading=!1})).subscribe({next:function(t){e.user=t,e.userClone=JSON.parse(JSON.stringify(e.user)),e.title=e.user.firstname+" "+e.user.lastname,e.user.isRest&&e.getPassRules({detail:{checked:!0}})}}))})}},{key:"canValidate",value:function(){return!(this.user.isRest&&""!==this.passwordRest.newPassword&&(this.handlePassword.error||this.passwordRest.passwordConfirmation!==this.passwordRest.newPassword)||JSON.stringify(this.user)===JSON.stringify(this.userClone)&&""===this.passwordRest.newPassword)}},{key:"onSubmit",value:function(){this.creationMode?this.createUser():this.modifyUser()}},{key:"modifyUser",value:function(){var e=this;this.loading=!0,this.http.put("../rest/users/"+this.user.id,this.user).pipe(hw(function(){return e.loading=!1}),uw(function(){e.authService.user.id===e.user.id&&e.authService.updateUserInfoWithTokenRefresh(),""!==e.passwordRest.newPassword&&e.updateRestUser(),e.router.navigate(["/administration/users"]),e.notificationService.success("lang.userUpdated")}),Zb(function(t){return e.notificationService.handleErrors(t),Ty(!1)})).subscribe()}},{key:"updateRestUser",value:function(){var e=this,t=new zy({Authorization:"Bearer "+this.authService.getToken()});this.http.put("../rest/users/"+this.user.id+"/password",this.passwordRest,{headers:t}).subscribe(function(){e.passwordRest.newPassword="",e.passwordRest.passwordConfirmation=""},function(t){e.notificationService.handleErrors(t)})}},{key:"createUser",value:function(){var e=this;this.loading=!0,this.http.post("../rest/users",this.user).pipe(hw(function(){return e.loading=!1}),uw(function(t){e.user.isRest&&(e.user.id=t.id,e.updateRestUser()),e.router.navigate(["/administration/users"]),e.notificationService.success("lang.userAdded")}),Zb(function(t){return e.notificationService.handleErrors(t),Ty(!1)})).subscribe()}},{key:"delete",value:function(){var e=this;this.dialog.open(_H,{autoFocus:!1,data:{mode:"",title:"lang.confirmMsg",msg:""}}).afterClosed().subscribe(function(t){"yes"===t&&(e.loading=!0,e.http.delete("../rest/users/"+e.user.id).pipe(hw(function(){return e.loading=!1})).subscribe({next:function(){e.router.navigate(["/administration/users"]),e.notificationService.success("lang.userDeleted")}}))})}},{key:"cancel",value:function(){this.router.navigate(["/administration/users"])}},{key:"getPassRules",value:function(e){var t=this;e.detail.checked&&(this.handlePassword.error=!1,this.handlePassword.errorMsg="",this.http.get("../rest/passwordRules").subscribe(function(e){var n=[],i=[];e.rules.forEach(function(e){"minLength"===e.label?(t.passwordRules.minLength.enabled=e.enabled,t.passwordRules.minLength.value=e.value,e.enabled&&t.translate.get("lang.minLengthChar",{charLength:e.value}).subscribe(function(e){n.push(e)})):"complexityUpper"===e.label?(t.passwordRules.complexityUpper.enabled=e.enabled,t.passwordRules.complexityUpper.value=e.value,e.enabled&&n.push("lang.upperRequired")):"complexityNumber"===e.label?(t.passwordRules.complexityNumber.enabled=e.enabled,t.passwordRules.complexityNumber.value=e.value,e.enabled&&n.push("lang.numberRequired")):"complexitySpecial"===e.label?(t.passwordRules.complexitySpecial.enabled=e.enabled,t.passwordRules.complexitySpecial.value=e.value,e.enabled&&n.push("lang.specialCharRequired")):"renewal"===e.label?(t.passwordRules.renewal.enabled=e.enabled,t.passwordRules.renewal.value=e.value,e.enabled&&t.translate.get("lang.renewalInfo",{time:e.value}).subscribe(function(e){i.push(e)})):"historyLastUse"===e.label&&(t.passwordRules.historyLastUse.enabled=e.enabled,t.passwordRules.historyLastUse.value=e.value,e.enabled&&t.translate.get("lang.historyUseInfo",{countPwd:e.value}).subscribe(function(e){i.push(e)}))}),t.ruleText=n.join(", "),t.otherRuleText=i.join("<br/>")},function(e){t.notificationService.handleErrors(e)}))}},{key:"checkPasswordValidity",value:function(e){var t=this;this.handlePassword.error=!0,!e.match(/[A-Z]/g)&&this.passwordRules.complexityUpper.enabled?this.handlePassword.errorMsg="lang.upperRequired":!e.match(/[0-9]/g)&&this.passwordRules.complexityNumber.enabled?this.handlePassword.errorMsg="lang.numberRequired":!e.match(/[^A-Za-z0-9]/g)&&this.passwordRules.complexitySpecial.enabled?this.handlePassword.errorMsg="lang.specialCharRequired":e.length<this.passwordRules.minLength.value&&this.passwordRules.minLength.enabled?this.translate.get("lang.minLengthChar",{charLength:this.passwordRules.minLength.value}).subscribe(function(e){t.handlePassword.errorMsg=e}):(this.handlePassword.error=!1,this.handlePassword.errorMsg="")}},{key:"toggleSignMode",value:function(e,t){t?-1===this.user.signatureModes.indexOf(e.id)&&this.user.signatureModes.push(e.id):this.user.signatureModes=this.user.signatureModes.filter(function(t){return t!==e.id})}},{key:"initTab",value:function(e){this.currentTool=e}}]),e}()).\u0275fac=function(e){return new(e||RH)(rs(lb),rs(pE),rs(b_),rs(jk),rs(PE),rs(yE),rs(kB),rs(DE))},RH.\u0275cmp=ft({type:RH,selectors:[["app-administration-user"]],decls:24,vars:13,consts:[[3,"translucent"],["color","primary"],["slot","start"],["menu","left-menu"],["slot","end"],[3,"src"],[3,"value","ionChange"],["value","info"],["name","information-circle"],["value","groups",3,"disabled"],["name","people-sharp"],[4,"ngIf"],["id","adminForm",2,"display","contents",3,"ngSubmit"],["adminForm","ngForm"],["color","secondary","position","floating"],["name","login","required","","pattern","^[\\w.@-]*$",3,"maxlength","readonly","ngModel","ngModelChange"],["name","firstname","required","",3,"maxlength","ngModel","ngModelChange"],["name","lastname","required","",3,"maxlength","ngModel","ngModelChange"],["type","email","name","email","required","","pattern","(^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\\.[a-zA-Z0-9-.]+$)",3,"maxlength","ngModel","ngModelChange"],["slot","start","color","primary","name","isRest",3,"disabled","ngModel","checked","ngModelChange","ionChange"],["color","secondary"],[4,"ngFor","ngForOf"],["style","align-items: center;",4,"ngIf"],["text-center","","lines","none",2,"position","sticky","bottom","0px","z-index","1"],[2,"display","flex","align-items","center","justify-content","center","width","100%","background","white"],["type","submit","shape","round","size","large","fill","outline","color","primary",3,"disabled"],[2,"font-size","13px"],["slot","start",3,"checked","disabled","ionChange"],[2,"align-items","center"],["slot","end","fill","clear","color","primary",3,"click"],["color","primary",3,"name"],["name","newPasswordRest",3,"type","ngModel","ngModelChange","ionChange"],["color","danger",4,"ngIf"],["color","danger"],["name","passwordConfirmation",3,"type","ngModel","ngModelChange"],["color","success",4,"ngIf"],["color","success"],["class","no-result",4,"ngIf"],[1,"no-result"],["lines","none"],["color","medium",1,"no-result-label"]],template:function(e,t){1&e&&(ss(0,"ion-header",0),ss(1,"ion-toolbar",1),ss(2,"ion-buttons",2),us(3,"ion-menu-button",3),us(4,"ion-back-button"),ls(),ss(5,"ion-title"),Qs(6),ls(),ss(7,"ion-avatar",4),us(8,"img",5),ls(),ls(),ls(),ss(9,"ion-header"),ss(10,"ion-toolbar"),ss(11,"ion-segment",6),ms("ionChange",function(e){return t.initTab(e.detail.value)}),ss(12,"ion-segment-button",7),ss(13,"ion-label"),Qs(14),Du(15,"translate"),ls(),us(16,"ion-icon",8),ls(),ss(17,"ion-segment-button",9),ss(18,"ion-label"),Qs(19),Du(20,"translate"),ls(),us(21,"ion-icon",10),ls(),ls(),ls(),ls(),ns(22,DH,43,37,"ng-container",11),ns(23,IH,4,2,"ng-container",11)),2&e&&(os("translucent",!0),xo(6),Xs(t.title),xo(2),os("src",t.user.picture,Cr),xo(3),os("value",t.currentTool),xo(3),Xs(Ou(15,9,"lang.informations")),xo(3),os("disabled",t.creationMode),xo(2),Xs(Ou(20,11,"lang.manage_groups")),xo(3),os("ngIf","info"===t.currentTool),xo(1),os("ngIf","groups"===t.currentTool))},directives:[XC,DS,LC,cS,TC,JS,PS,MC,wS,tA,_S,aS,KC,mh,Zm,fm,Wm,UC,nS,tS,nA,xy,Py,Cy,hm,Ym,ES,Jx,sS,lS,gh,RC,NC,hS],pipes:[gE],styles:[".header[_ngcontent-%COMP%]{background:#135f7f;height:95px;color:#fff;padding-left:10px;font-size:25px}.header[_ngcontent-%COMP%], .header-title[_ngcontent-%COMP%]{display:flex;align-items:center}.header-title[_ngcontent-%COMP%]{flex:1;white-space:pre;overflow:hidden;text-overflow:ellipsis}.header[_ngcontent-%COMP%]   b[_ngcontent-%COMP%]{color:#f99830}.header[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis}.mainView[_ngcontent-%COMP%]{display:flex;flex-direction:column}.container[_ngcontent-%COMP%]{flex:1;overflow:auto}.loader[_ngcontent-%COMP%]{position:absolute;z-index:2;display:flex;background:hsla(0,0%,100%,.8);width:100%;height:100%;justify-content:center;align-items:center;top:0;margin:0;padding:0}.admin-form[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:20px}.actions-form[_ngcontent-%COMP%]{display:flex;justify-content:center}@media (max-width:360px){.actions-form[_ngcontent-%COMP%]{flex-direction:column}}.actions-form[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin:10px;width:150px}@media (max-width:360px){.actions-form[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{width:100%}}.noResult[_ngcontent-%COMP%]{padding:10px;text-align:center;opacity:.5}.emptyTable[_ngcontent-%COMP%]{height:auto}.addButton[_ngcontent-%COMP%]{padding:10px;display:flex;justify-content:flex-end}",".no-result[_ngcontent-%COMP%]{height:100%;display:flex;align-items:center;justify-content:center}.no-result[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]{width:100%;text-align:center}.no-result-label[_ngcontent-%COMP%]{font-size:30px}"]}),RH);function FH(e,t){if(1&e&&(ss(0,"div",15),Qs(1),Du(2,"translate"),ls()),2&e){var n=ks().$implicit;os("mat-sort-header",n),xo(1),Ks(" ",Ou(2,2,"lang."+n)," ")}}function BH(e,t){if(1&e&&(cs(0),ns(1,FH,3,4,"div",14),ds()),2&e){var n=t.$implicit;xo(1),os("ngIf","actions"!==n)}}function VH(e,t){if(1&e){var n=fs();ss(0,"div",16),ss(1,"ion-searchbar",17),ms("ionChange",function(e){return nn(n),ks().applyFilter(e.detail.value)}),Du(2,"translate"),ls(),ls()}2&e&&(xo(1),os("placeholder",Ou(2,1,"lang.filter")))}function zH(e,t){if(1&e&&(ss(0,"div",16),Qs(1),ls()),2&e){var n=t.$implicit,i=ks().$implicit;xo(1),Ks(" ",i[n]," ")}}function NH(e,t){if(1&e){var n=fs();ss(0,"ion-item",7),ss(1,"ion-label",18),ns(2,zH,2,1,"div",19),ls(),ss(3,"ion-button",20),ms("click",function(e){nn(n);var i=t.$implicit,r=ks();return e.stopPropagation(),r.delete(i)}),Du(4,"translate"),us(5,"ion-icon",21),ls(),ls()}if(2&e){var i=t.$implicit,r=ks();xo(1),Ps("routerLink","/administration/groups/",i.id,""),xo(1),os("ngForOf",r.displayedColumns),xo(1),Ss("title",Ou(4,3,"lang.delete"))}}var HH,jH=((HH=function(){function e(t,n,i,r,o,a,s){A(this,e),this.http=t,this.translate=n,this.latinisePipe=i,this.dialog=r,this.signaturesService=o,this.notificationService=a,this.alertController=s,this.groupList=[],this.loading=!0,this.displayedColumns=["label","actions"]}return m(e,[{key:"applyFilter",value:function(e){var t=this;e=this.latinisePipe.transform(e.toLowerCase()),this.sortedData=this.groupList.filter(function(n){var i=!1;return t.displayedColumns.forEach(function(r){n[r]&&t.latinisePipe.transform(n[r].toLowerCase()).includes(e)&&(i=!0)}),i})}},{key:"ionViewWillEnter",value:function(){var e=this;this.http.get("../rest/groups").pipe(Y(function(e){return e.groups}),hw(function(){return e.loading=!1})).subscribe({next:function(t){e.groupList=t,e.sortedData=e.groupList.slice()}})}},{key:"delete",value:function(e){return t=this,i=regeneratorRuntime.mark(function t(){var n,i=this;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.alertController.create({header:this.translate.instant("lang.confirmMsg"),buttons:[{text:this.translate.instant("lang.no"),role:"cancel",cssClass:"secondary",handler:function(){}},{text:this.translate.instant("lang.yes"),handler:function(){i.http.delete("../rest/groups/"+e.id).pipe(hw(function(){return i.loading=!1})).subscribe({next:function(t){var n=i.groupList.findIndex(function(t){return t.id===e.id});i.groupList.splice(n,1),i.sortedData=i.groupList.slice(),i.notificationService.success("lang.groupDeleted")}})}}]});case 2:return n=t.sent,t.next=5,n.present();case 5:case"end":return t.stop()}},t,this)}),new((n=void 0)||(n=Promise))(function(e,r){function o(e){try{s(i.next(e))}catch(t){r(t)}}function a(e){try{s(i.throw(e))}catch(t){r(t)}}function s(t){var i;t.done?e(t.value):(i=t.value,i instanceof n?i:new n(function(e){e(i)})).then(o,a)}s((i=i.apply(t,[])).next())});var t,n,i}},{key:"sortData",value:function(e){var t=this.groupList.slice();this.sortedData=e.active&&""!==e.direction?t.sort(function(t,n){return function(e,t,n){return(e<t?-1:1)*(n?1:-1)}(t[e.active],n[e.active],"asc"===e.direction)}):t}}]),e}()).\u0275fac=function(e){return new(e||HH)(rs(lb),rs(pE),rs(QM),rs(kB),rs(PE),rs(yE),rs(sP))},HH.\u0275cmp=ft({type:HH,selectors:[["app-administration-groups-list"]],viewQuery:function(e,t){var n;1&e&&(Qu(rz,3),Qu(Az,3)),2&e&&(Zu(n=Ku())&&(t.paginator=n.first),Zu(n=Ku())&&(t.sort=n.first))},decls:28,vars:18,consts:[[3,"translucent"],["color","primary"],["slot","start"],["menu","left-menu"],["fill","outline","shape","round","routerLink","/administration/groups/new"],["slot","end","color","secondary"],["mainContent",""],[2,"display","flex"],["color","primary","matSort","","matSortDirection","asc",2,"display","flex","font-size","12px","align-items","center",3,"matSortActive","matSortChange"],[4,"ngFor","ngForOf"],["style","flex: 1",4,"ngIf"],["slot","end","fill","clear","shape","round","disabled",""],["approxItemHeight","50px",3,"items"],["style","display: flex;",4,"virtualItem"],["disableClear","","style","flex: 1",3,"mat-sort-header",4,"ngIf"],["disableClear","",2,"flex","1",3,"mat-sort-header"],[2,"flex","1"],[2,"padding","1px",3,"placeholder","ionChange"],[2,"display","flex","cursor","pointer",3,"routerLink"],["style","flex: 1",4,"ngFor","ngForOf"],["slot","end","fill","clear","shape","round",3,"title","click"],["color","danger","slot","icon-only","name","trash"]],template:function(e,t){1&e&&(ss(0,"ion-header",0),ss(1,"ion-toolbar",1),ss(2,"ion-buttons",2),us(3,"ion-menu-button",3),us(4,"ion-back-button"),ls(),ss(5,"ion-title"),Qs(6),Du(7,"translate"),Du(8,"translate"),ls(),ls(),ss(9,"ion-toolbar",1),ss(10,"ion-buttons",2),ss(11,"ion-button",4),Qs(12),Du(13,"translate"),ls(),ls(),ss(14,"ion-title",5),Qs(15),Du(16,"translate"),ls(),ls(),ls(),ss(17,"ion-content",null,6),ss(19,"ion-list"),ss(20,"ion-item",7),ss(21,"ion-label",8),ms("matSortChange",function(e){return t.sortData(e)}),ns(22,BH,2,1,"ng-container",9),ns(23,VH,3,3,"div",10),ls(),ss(24,"ion-button",11),us(25,"ion-icon"),ls(),ls(),ss(26,"ion-virtual-scroll",12),ns(27,NH,6,5,"ion-item",13),ls(),ls(),ls()),2&e&&(os("translucent",!0),xo(6),Js("",Ou(7,10,"lang.administration")," ",Ou(8,12,"lang.manage_groupsAlt"),""),xo(6),Ks(" ",Ou(13,14,"lang.groupCreation")," "),xo(3),Js("",t.groupList.length," ",Ou(16,16,"lang.manage_groupsAlt"),""),xo(6),os("matSortActive",t.displayedColumns[0]),xo(1),os("ngForOf",t.displayedColumns),xo(1),os("ngIf",t.displayedColumns.indexOf("actions")>-1),xo(3),os("items",t.sortedData))},directives:[XC,DS,LC,cS,TC,JS,PS,RC,$S,Uk,UC,sS,nS,aS,Az,gh,mh,KC,iP,nP,Oz,bS,nA],pipes:[gE],styles:[".header[_ngcontent-%COMP%]{background:#135f7f;height:95px;color:#fff;padding-left:10px;font-size:25px}.header[_ngcontent-%COMP%], .header-title[_ngcontent-%COMP%]{display:flex;align-items:center}.header-title[_ngcontent-%COMP%]{flex:1;white-space:pre;overflow:hidden;text-overflow:ellipsis}.header[_ngcontent-%COMP%]   b[_ngcontent-%COMP%]{color:#f99830}.header[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis}.mainView[_ngcontent-%COMP%]{display:flex;flex-direction:column}.container[_ngcontent-%COMP%]{flex:1;overflow:auto}.loader[_ngcontent-%COMP%]{position:absolute;z-index:2;display:flex;background:hsla(0,0%,100%,.8);width:100%;height:100%;justify-content:center;align-items:center;top:0;margin:0;padding:0}.admin-form[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:20px}.actions-form[_ngcontent-%COMP%]{display:flex;justify-content:center}@media (max-width:360px){.actions-form[_ngcontent-%COMP%]{flex-direction:column}}.actions-form[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin:10px;width:150px}@media (max-width:360px){.actions-form[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{width:100%}}.noResult[_ngcontent-%COMP%]{padding:10px;text-align:center;opacity:.5}.emptyTable[_ngcontent-%COMP%]{height:auto}.addButton[_ngcontent-%COMP%]{padding:10px;display:flex;justify-content:flex-end}",""]}),HH);function UH(e,t){if(1&e){var n=fs();ss(0,"ion-item",4),ms("click",function(){nn(n);var e=t.$implicit;return ks().selectUser(e)}),ss(1,"ion-label"),Qs(2),ls(),ls()}if(2&e){var i=t.$implicit;xo(2),Js(" ",i.firstname," ",i.lastname," ")}}var WH,GH=((WH=function(){function e(t,n){A(this,e),this.http=t,this.modalController=n,this.usersList=[]}return m(e,[{key:"ngOnInit",value:function(){var e=this;this.http.get("../rest/users?mode=all").pipe(Y(function(e){return e.users})).subscribe({next:function(t){e.usersList=t.filter(function(t){return-1===e.users.findIndex(function(e){return e.id===t.id})})}})}},{key:"selectUser",value:function(e){this.modalController.dismiss(e)}}]),e}()).\u0275fac=function(e){return new(e||WH)(rs(lb),rs(cP))},WH.\u0275cmp=ft({type:WH,selectors:[["app-users"]],inputs:{users:"users"},decls:9,vars:5,consts:[[3,"translucent"],["color","primary"],["approxItemHeight","50px",2,"height","450px",3,"items"],["button","",3,"click",4,"virtualItem"],["button","",3,"click"]],template:function(e,t){1&e&&(ss(0,"ion-header",0),ss(1,"ion-toolbar",1),ss(2,"ion-title"),Qs(3),Du(4,"translate"),ls(),ls(),ls(),ss(5,"ion-content"),ss(6,"ion-list"),ss(7,"ion-virtual-scroll",2),ns(8,UH,3,2,"ion-item",3),ls(),ls(),ls()),2&e&&(os("translucent",!0),xo(3),Xs(Ou(4,3,"lang.users")),xo(4),os("items",t.usersList))},directives:[XC,DS,PS,UC,sS,iP,nP,nS,aS],pipes:[gE],encapsulation:2}),WH),qH=function(e,t,n,i){return new(n||(n=Promise))(function(r,o){function a(e){try{l(i.next(e))}catch(t){o(t)}}function s(e){try{l(i.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((i=i.apply(e,t||[])).next())})};function YH(e,t){1&e&&(ss(0,"ion-item",17),ss(1,"ion-label",18),Qs(2),Du(3,"translate"),ls(),ls()),2&e&&(xo(2),Ks("",Ou(3,1,"lang.privileges")," :"))}function ZH(e,t){if(1&e){var n=fs();ss(0,"ion-item",19),ss(1,"ion-toggle",20),ms("ngModelChange",function(e){return t.$implicit.checked=e})("click",function(){nn(n);var e=t.$implicit;return ks().togglePrivilege(e,!0)}),ls(),ss(2,"ion-label",21),ms("click",function(){nn(n);var e=t.$implicit;return ks().togglePrivilege(e,!1)}),Qs(3),Du(4,"translate"),ls(),ls()}if(2&e){var i=t.$implicit;xo(1),os("name",i.id)("checked",i.checked)("ngModel",i.checked),xo(2),Xs(Ou(4,4,"lang."+i.id+"Admin"))}}function QH(e,t){1&e&&(ss(0,"ion-item",17),ss(1,"ion-label",18),Qs(2),Du(3,"translate"),ls(),ls()),2&e&&(xo(2),Ks("",Ou(3,1,"lang.linkedUsers")," :"))}function XH(e,t){if(1&e&&(ss(0,"div",31),Qs(1),Du(2,"translate"),ls()),2&e){var n=ks().$implicit;os("mat-sort-header",n),xo(1),Ks(" ",Ou(2,2,"lang."+n)," ")}}function KH(e,t){if(1&e&&(cs(0),ns(1,XH,3,4,"div",30),ds()),2&e){var n=t.$implicit;xo(1),os("ngIf","actions"!==n)}}function JH(e,t){if(1&e){var n=fs();ss(0,"div",32),ss(1,"ion-button",33),ms("click",function(){return nn(n),ks(2).openUserList()}),Qs(2),Du(3,"translate"),ls(),ls()}2&e&&(xo(2),Ks(" ",Ou(3,1,"lang.add")," "))}function $H(e,t){if(1&e&&(ss(0,"div",39),Qs(1),ls()),2&e){var n=t.$implicit,i=ks().$implicit;xo(1),Ks(" ",i[n]," ")}}function ej(e,t){if(1&e){var n=fs();ss(0,"ion-item",34),ss(1,"ion-label",35),ns(2,$H,2,1,"div",36),ls(),ss(3,"ion-button",37),ms("click",function(e){nn(n);var i=t.$implicit,r=ks(2);return e.stopPropagation(),r.unlinkUser(i)}),Du(4,"translate"),us(5,"ion-icon",38),ls(),ls()}if(2&e){var i=t.$implicit,r=ks(2);xo(1),Ps("routerLink","/administration/users/",i.id,""),xo(1),os("ngForOf",r.displayedColumns),xo(1),Ss("title",Ou(4,3,"lang.unlinkUser"))}}function tj(e,t){if(1&e){var n=fs();ss(0,"ion-card",22),ss(1,"ion-list"),ss(2,"ion-item",23),cs(3,13),ss(4,"ion-label",24),ms("matSortChange",function(e){return nn(n),ks().sortData(e)}),ns(5,KH,2,1,"ng-container",25),ns(6,JH,4,3,"div",26),ls(),ss(7,"ion-button",27),us(8,"ion-icon"),ls(),ds(),ls(),ss(9,"ion-virtual-scroll",28),ns(10,ej,6,5,"ion-item",29),ls(),ls(),ls()}if(2&e){var i=ks();xo(4),os("matSortActive",i.displayedColumns[1]),xo(1),os("ngForOf",i.displayedColumns),xo(1),os("ngIf",i.displayedColumns.indexOf("actions")>-1),xo(3),os("items",i.sortedData)}}function nj(e,t){if(1&e){var n=fs();ss(0,"ion-button",40),ms("click",function(){return nn(n),ks().deleteGroup()}),ss(1,"ion-label",15),Qs(2),Du(3,"translate"),ls(),ls()}2&e&&(xo(2),Xs(Ou(3,1,"lang.delete")))}var ij,rj=((ij=function(){function e(t,n,i,r,o,a,s,l,u,c,d){A(this,e),this.http=t,this.translate=n,this.route=i,this.router=r,this.signaturesService=o,this.notificationService=a,this.dialog=s,this.authService=l,this.popoverController=u,this.modalController=c,this.alertController=d,this.creationMode=!0,this.loading=!0,this.title="",this.displayedColumns=["firstname","lastname","actions"],this.group={id:"",label:"",users:[],privileges:[]},this.groupClone=JSON.parse(JSON.stringify(this.group))}return m(e,[{key:"ngOnInit",value:function(){var e=this;this.route.params.subscribe(function(t){void 0===t.id?(e.creationMode=!0,e.title=e.translate.instant("lang.groupCreation"),e.loading=!1,e.groupClone=JSON.parse(JSON.stringify(e.group))):(e.creationMode=!1,e.usersList=[],e.http.get("../rest/groups/"+t.id).pipe(Y(function(e){return e.group}),hw(function(){e.loading=!1})).subscribe({next:function(t){e.group=t,e.groupClone=JSON.parse(JSON.stringify(e.group)),e.title=e.group.label,e.updateDataTable()}}),e.http.get("../rest/users?mode=all").pipe(Y(function(e){return e.users})).subscribe({next:function(t){e.usersList=t}}))})}},{key:"updateDataTable",value:function(){this.sortedData=this.group.users.slice()}},{key:"openUserList",value:function(e){return qH(this,void 0,void 0,regeneratorRuntime.mark(function e(){var t,n,i;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.modalController.create({component:GH,componentProps:{users:this.group.users}});case 2:return t=e.sent,e.next=5,t.present();case 5:return e.next=7,t.onWillDismiss();case 7:n=e.sent,void 0!==(i=n.data)&&this.linkUser(i);case 10:case"end":return e.stop()}},e,this)}))}},{key:"canValidate",value:function(){return this.group.label!==this.groupClone.label}},{key:"onSubmit",value:function(){this.creationMode?this.createGroup():this.modifyGroup()}},{key:"linkUser",value:function(e){var t=this;this.http.put("../rest/groups/"+this.group.id+"/users",{userId:e.id}).subscribe({next:function(){t.group.users.push(e),t.updateDataTable(),t.notificationService.success("lang.userAdded")}})}},{key:"unlinkUser",value:function(e){return qH(this,void 0,void 0,regeneratorRuntime.mark(function t(){var n,i=this;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(e.id!==this.authService.user.id){t.next=8;break}return t.next=3,this.alertController.create({header:this.translate.instant("lang.confirmMsg"),buttons:[{text:this.translate.instant("lang.no"),role:"cancel",cssClass:"secondary",handler:function(){}},{text:this.translate.instant("lang.yes"),handler:function(){i.deleteUser(e)}}]});case 3:return n=t.sent,t.next=6,n.present();case 6:t.next=9;break;case 8:this.deleteUser(e);case 9:case"end":return t.stop()}},t,this)}))}},{key:"deleteUser",value:function(e){var t=this;this.http.delete("../rest/groups/"+this.group.id+"/users/"+e.id,{}).subscribe({next:function(){var n=t.group.users.findIndex(function(t){return t.id===e.id});t.group.users.splice(n,1),t.updateDataTable(),t.notificationService.success("lang.userDeleted")}})}},{key:"modifyGroup",value:function(){var e=this;this.loading=!0,this.http.put("../rest/groups/"+this.group.id,this.group).subscribe({next:function(){e.router.navigate(["/administration/groups"]),e.notificationService.success("lang.groupUpdated")}})}},{key:"createGroup",value:function(){var e=this;this.loading=!0,this.http.post("../rest/groups",this.group).subscribe({next:function(t){e.router.navigate(["/administration/groups/"+t.id]),e.notificationService.success("lang.groupAdded")}})}},{key:"deleteGroup",value:function(){return qH(this,void 0,void 0,regeneratorRuntime.mark(function e(){var t,n=this;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.alertController.create({header:this.translate.instant("lang.confirmMsg"),buttons:[{text:this.translate.instant("lang.no"),role:"cancel",cssClass:"secondary",handler:function(){}},{text:this.translate.instant("lang.yes"),handler:function(){n.http.delete("../rest/groups/"+n.group.id).subscribe({next:function(){n.router.navigate(["/administration/groups"]),n.notificationService.success("lang.groupDeleted")}})}}]});case 2:return t=e.sent,e.next=5,t.present();case 5:case"end":return e.stop()}},e,this)}))}},{key:"togglePrivilege",value:function(e,t){return qH(this,void 0,void 0,regeneratorRuntime.mark(function n(){var i,r=this;return regeneratorRuntime.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if("manage_groups"!==e.id||!e.checked){n.next=9;break}return t||(e.checked=!e.checked),n.next=4,this.alertController.create({header:this.translate.instant("lang.confirmMsg"),message:this.translate.instant("lang.groupWarnMsg"),buttons:[{text:this.translate.instant("lang.no"),role:"cancel",cssClass:"secondary",handler:function(){e.checked=!e.checked}},{text:this.translate.instant("lang.yes"),handler:function(){r.updatePrivilege(e)}}]});case 4:return i=n.sent,n.next=7,i.present();case 7:n.next=10;break;case 9:t||(e.checked=!e.checked),setTimeout(function(){r.updatePrivilege(e)},200);case 10:case"end":return n.stop()}},n,this)}))}},{key:"updatePrivilege",value:function(e){var t=this;this.http.put("../rest/groups/"+this.group.id+"/privilege/"+e.id,{checked:e.checked}).subscribe({next:function(){t.notificationService.success("lang.privilegeUpdated"),t.authService.updateUserInfoWithTokenRefresh()}})}},{key:"cancel",value:function(){this.router.navigate(["/administration/groups"])}},{key:"sortData",value:function(e){var t=this.group.users.slice();this.sortedData=e.active&&""!==e.direction?t.sort(function(t,n){return function(e,t,n){return(e<t?-1:1)*(n?1:-1)}(t[e.active],n[e.active],"asc"===e.direction)}):t}}]),e}()).\u0275fac=function(e){return new(e||ij)(rs(lb),rs(pE),rs(b_),rs(jk),rs(PE),rs(yE),rs(kB),rs(DE),rs(dP),rs(cP),rs(sP))},ij.\u0275cmp=ft({type:ij,selectors:[["app-administration-group"]],viewQuery:function(e,t){var n;1&e&&(Qu(rz,1),Qu(Az,1)),2&e&&(Zu(n=Ku())&&(t.paginator=n.first),Zu(n=Ku())&&(t.sort=n.first))},decls:27,vars:20,consts:[[3,"translucent"],["color","primary"],["slot","start"],["menu","left-menu"],["id","adminForm",2,"display","contents",3,"ngSubmit"],["adminForm","ngForm"],["color","secondary","position","floating"],["name","label","required","",3,"maxlength","ngModel","ngModelChange"],["lines","none",4,"ngIf"],[2,"display","grid","grid-gap","10px"],["style","cursor: pointer",4,"ngFor","ngForOf"],["style","height: 400px; overflow-y: auto;",4,"ngIf"],["text-center","","lines","none",2,"position","sticky","bottom","0px","z-index","1"],[2,"display","flex","align-items","center","justify-content","center","width","100%","background","white"],["type","submit","shape","round","size","large","fill","outline","color","primary",3,"disabled"],[2,"font-size","13px"],["type","button","shape","round","size","large","fill","outline","color","danger",3,"click",4,"ngIf"],["lines","none"],["color","secondary"],[2,"cursor","pointer"],["slot","start","color","primary",3,"name","checked","ngModel","ngModelChange","click"],[3,"click"],[2,"height","400px","overflow-y","auto"],[2,"position","sticky","top","0px","z-index","1"],["color","primary","matSort","","matSortDirection","asc",2,"display","flex","font-size","12px","align-items","center",3,"matSortActive","matSortChange"],[4,"ngFor","ngForOf"],["style","flex: 1;text-align: right;",4,"ngIf"],["slot","end","fill","clear","shape","round","disabled",""],["approxItemHeight","50px",3,"items"],["style","display: flex;",4,"virtualItem"],["disableClear","","style","flex: 1",3,"mat-sort-header",4,"ngIf"],["disableClear","",2,"flex","1",3,"mat-sort-header"],[2,"flex","1","text-align","right"],["slot","end","color","primary","fille","outline","shape","round",3,"click"],[2,"display","flex"],[2,"display","flex","cursor","pointer",3,"routerLink"],["style","flex: 1",4,"ngFor","ngForOf"],["slot","end","fill","clear","shape","round",3,"title","click"],["color","danger","slot","icon-only","name","close-outline"],[2,"flex","1"],["type","button","shape","round","size","large","fill","outline","color","danger",3,"click"]],template:function(e,t){if(1&e&&(ss(0,"ion-header",0),ss(1,"ion-toolbar",1),ss(2,"ion-buttons",2),us(3,"ion-menu-button",3),us(4,"ion-back-button"),ls(),ss(5,"ion-title"),Qs(6),ls(),ls(),ls(),ss(7,"form",4,5),ms("ngSubmit",function(){return t.onSubmit()}),ss(9,"ion-content"),ss(10,"ion-item"),ss(11,"ion-label",6),Qs(12),Du(13,"translate"),ls(),ss(14,"ion-input",7),ms("ngModelChange",function(e){return t.group.label=e}),ls(),ls(),ns(15,YH,4,3,"ion-item",8),ss(16,"div",9),ns(17,ZH,5,6,"ion-item",10),ls(),ns(18,QH,4,3,"ion-item",8),ns(19,tj,11,4,"ion-card",11),ss(20,"ion-item",12),ss(21,"div",13),ss(22,"ion-button",14),ss(23,"ion-label",15),Qs(24),Du(25,"translate"),ls(),ls(),ns(26,nj,4,3,"ion-button",16),ls(),ls(),ls(),ls()),2&e){var n=is(8);os("translucent",!0),xo(6),Xs(t.title),xo(6),Ks("",Ou(13,16,"lang.label")," *"),xo(2),os("maxlength",128)("ngModel",t.group.label),xo(1),os("ngIf",!t.creationMode),xo(1),Fs("grid-2-col",t.signaturesService.mobileMode)("grid-3-col",!t.signaturesService.mobileMode),xo(1),os("ngForOf",t.group.privileges),xo(1),os("ngIf",!t.creationMode),xo(1),os("ngIf",!t.creationMode),xo(3),os("disabled",!n.form.valid||!t.canValidate()),xo(2),Xs(Ou(25,18,"lang.validate")),xo(2),os("ngIf",!t.creationMode)}},directives:[XC,DS,LC,cS,TC,JS,PS,Zm,fm,Wm,UC,nS,aS,tS,nA,xy,Cy,hm,Ym,mh,gh,RC,ES,Jx,FC,sS,Az,KC,iP,nP,Oz,$S,Uk],pipes:[gE],styles:[".header[_ngcontent-%COMP%]{background:#135f7f;height:95px;color:#fff;padding-left:10px;font-size:25px}.header[_ngcontent-%COMP%], .header-title[_ngcontent-%COMP%]{display:flex;align-items:center}.header-title[_ngcontent-%COMP%]{flex:1;white-space:pre;overflow:hidden;text-overflow:ellipsis}.header[_ngcontent-%COMP%]   b[_ngcontent-%COMP%]{color:#f99830}.header[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis}.mainView[_ngcontent-%COMP%]{display:flex;flex-direction:column}.container[_ngcontent-%COMP%]{flex:1;overflow:auto}.loader[_ngcontent-%COMP%]{position:absolute;z-index:2;display:flex;background:hsla(0,0%,100%,.8);width:100%;height:100%;justify-content:center;align-items:center;top:0;margin:0;padding:0}.admin-form[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:20px}.actions-form[_ngcontent-%COMP%]{display:flex;justify-content:center}@media (max-width:360px){.actions-form[_ngcontent-%COMP%]{flex-direction:column}}.actions-form[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin:10px;width:150px}@media (max-width:360px){.actions-form[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{width:100%}}.noResult[_ngcontent-%COMP%]{padding:10px;text-align:center;opacity:.5}.emptyTable[_ngcontent-%COMP%]{height:auto}.addButton[_ngcontent-%COMP%]{padding:10px;display:flex;justify-content:flex-end}",".privilegesList[_ngcontent-%COMP%]{padding-top:10px;padding-bottom:10px;display:inline-block;width:100%}@media (min-width:768px){.privilegesList[_ngcontent-%COMP%]{width:50%}}@media (min-width:992px){.privilegesList[_ngcontent-%COMP%]{width:33%}}fieldset[_ngcontent-%COMP%]{border:1px solid #f1f4f4;align-items:center;margin-top:30px}legend[_ngcontent-%COMP%]{color:#f99830}.grid-2-col[_ngcontent-%COMP%]{grid-template-columns:repeat(2,1fr)}.grid-3-col[_ngcontent-%COMP%]{grid-template-columns:repeat(3,1fr)}"]}),ij);function oj(e,t){if(1&e&&(ss(0,"ion-select-option",10),Qs(1),Du(2,"translate"),ls()),2&e){var n=t.$implicit;os("value",n.id)("disabled",!n.allowed),xo(1),Ks(" ",Ou(2,3,"lang."+n.id+"Connection"),"")}}function aj(e,t){if(1&e){var n=fs();ss(0,"ion-select",8),ms("ionChange",function(e){return nn(n),ks().changeConnection(e.detail.value)}),Du(1,"translate"),ns(2,oj,3,5,"ion-select-option",9),ls()}if(2&e){var i=ks();Ss("cancelText",Ou(1,3,"lang.cancel")),os("value",i.currentConnection.id),xo(2),os("ngForOf",i.connectionList)}}function sj(e,t){if(1&e&&(ss(0,"ion-col"),ss(1,"ion-button",11),ss(2,"div",12),us(3,"ion-icon",13),ss(4,"ion-label",14),Qs(5),Du(6,"translate"),ls(),ss(7,"ion-note",15),Qs(8),Du(9,"translate"),ls(),ls(),ls(),ls()),2&e){var n=t.$implicit;xo(1),os("routerLink",n.route),xo(2),os("name",n.icon),xo(2),Ks("",Ou(6,4,"lang."+n.id)," "),xo(3),Ks(" ",Ou(9,6,"lang."+n.id+"Desc"),"")}}var lj,uj=((lj=function(){function e(t,n,i,r,o){A(this,e),this.http=t,this.signaturesService=n,this.notificationService=i,this.alertController=r,this.authService=o,this.loading=!0,this.privileges=[{id:"manage_ldap_configurations",icon:"server-sharp",route:"/administration/connections/ldaps"}],this.id=0,this.label="",this.connectionList=[]}return m(e,[{key:"ngOnInit",value:function(){var e=this;this.loading=!0,this.http.get("../rest/configurations",{params:{identifier:"connection"}}).pipe(hw(function(){return e.loading=!1})).subscribe({next:function(t){e.label=t.configurations.label,e.id=t.configurations.id,e.connectionList=t.configurations.availableConnections;var n=e.connectionList.findIndex(function(e){return e.id===t.configurations.value});e.currentConnection=void 0!==e.connectionList[n]?e.connectionList[n]:e.connectionList[0]}})}},{key:"changeConnection",value:function(e){return t=this,i=regeneratorRuntime.mark(function t(){var n=this;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:this.http.patch("../rest/configurations/"+this.id,{label:this.label,value:e}).pipe(hw(function(){return n.loading=!1})).subscribe({next:function(){n.authService.updateUserInfoWithTokenRefresh(),n.notificationService.success("lang.connectionModeUpdated"),n.authService.authMode=e}});case 1:case"end":return t.stop()}},t,this)}),new((n=void 0)||(n=Promise))(function(e,r){function o(e){try{s(i.next(e))}catch(t){r(t)}}function a(e){try{s(i.throw(e))}catch(t){r(t)}}function s(t){var i;t.done?e(t.value):(i=t.value,i instanceof n?i:new n(function(e){e(i)})).then(o,a)}s((i=i.apply(t,[])).next())});var t,n,i}}]),e}()).\u0275fac=function(e){return new(e||lj)(rs(lb),rs(PE),rs(yE),rs(sP),rs(DE))},lj.\u0275cmp=ft({type:lj,selectors:[["app-administration-connection"]],decls:18,vars:9,consts:[[3,"translucent"],["color","primary"],["slot","start"],["menu","left-menu"],["mainContent",""],["color","secondary"],[3,"value","cancelText","ionChange",4,"ngIf"],[4,"ngFor","ngForOf"],[3,"value","cancelText","ionChange"],[3,"value","disabled",4,"ngFor","ngForOf"],[3,"value","disabled"],["expand","block","size","large","fill","outline","color","secondary",2,"height","200px",3,"routerLink"],[1,"admin-content"],["color","primary",2,"font-size","70px",3,"name"],["color","primary",2,"white-space","normal"],[2,"font-size","8px","white-space","normal","padding","10px"]],template:function(e,t){1&e&&(ss(0,"ion-header",0),ss(1,"ion-toolbar",1),ss(2,"ion-buttons",2),us(3,"ion-menu-button",3),us(4,"ion-back-button"),ls(),ss(5,"ion-title"),Qs(6),Du(7,"translate"),ls(),ls(),ls(),ss(8,"ion-content",null,4),ss(10,"ion-item"),ss(11,"ion-label",5),Qs(12),Du(13,"translate"),ls(),ns(14,aj,3,5,"ion-select",6),ls(),ss(15,"ion-grid"),ss(16,"ion-row"),ns(17,sj,10,8,"ion-col",7),ls(),ls(),ls()),2&e&&(os("translucent",!0),xo(6),Xs(Ou(7,5,"lang.manage_connections")),xo(6),Xs(Ou(13,7,"lang.connectionMode")),xo(2),os("ngIf",t.currentConnection),xo(3),os("ngForOf",t.privileges))},directives:[XC,DS,LC,cS,TC,JS,PS,UC,nS,aS,mh,QC,yS,gh,kS,tA,xS,jC,RC,$S,Uk,KC,hS],pipes:[gE],styles:[".header[_ngcontent-%COMP%]{background:#135f7f;height:95px;color:#fff;padding-left:10px;font-size:25px}.header[_ngcontent-%COMP%], .header-title[_ngcontent-%COMP%]{display:flex;align-items:center}.header-title[_ngcontent-%COMP%]{flex:1;white-space:pre;overflow:hidden;text-overflow:ellipsis}.header[_ngcontent-%COMP%]   b[_ngcontent-%COMP%]{color:#f99830}.header[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis}.mainView[_ngcontent-%COMP%]{display:flex;flex-direction:column}.container[_ngcontent-%COMP%]{flex:1;overflow:auto}.loader[_ngcontent-%COMP%]{position:absolute;z-index:2;display:flex;background:hsla(0,0%,100%,.8);width:100%;height:100%;justify-content:center;align-items:center;top:0;margin:0;padding:0}.admin-form[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:20px}.actions-form[_ngcontent-%COMP%]{display:flex;justify-content:center}@media (max-width:360px){.actions-form[_ngcontent-%COMP%]{flex-direction:column}}.actions-form[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin:10px;width:150px}@media (max-width:360px){.actions-form[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{width:100%}}.noResult[_ngcontent-%COMP%]{padding:10px;text-align:center;opacity:.5}.emptyTable[_ngcontent-%COMP%]{height:auto}.addButton[_ngcontent-%COMP%]{padding:10px;display:flex;justify-content:flex-end}",".admin-desc[_ngcontent-%COMP%]{white-space:normal;font-size:10px;line-height:15px;text-align:justify;color:grey;height:60px;overflow:auto}.admin-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center}"]}),lj);function cj(e,t){if(1&e&&(ss(0,"div",15),Qs(1),Du(2,"translate"),ls()),2&e){var n=ks().$implicit;os("mat-sort-header",n),xo(1),Ks(" ",Ou(2,2,"lang."+n)," ")}}function dj(e,t){if(1&e&&(cs(0),ns(1,cj,3,4,"div",14),ds()),2&e){var n=t.$implicit;xo(1),os("ngIf","actions"!==n)}}function hj(e,t){if(1&e){var n=fs();ss(0,"div",16),ss(1,"ion-searchbar",17),ms("ionChange",function(e){return nn(n),ks().applyFilter(e.detail.value)}),Du(2,"translate"),ls(),ls()}2&e&&(xo(1),os("placeholder",Ou(2,1,"lang.filter")))}function fj(e,t){if(1&e&&(ss(0,"div",16),Qs(1),ls()),2&e){var n=t.$implicit,i=ks().$implicit;xo(1),Ks(" ",i[n]," ")}}function pj(e,t){if(1&e){var n=fs();ss(0,"ion-item",7),ss(1,"ion-label",18),ns(2,fj,2,1,"div",19),ls(),ss(3,"ion-button",20),ms("click",function(e){nn(n);var i=t.$implicit,r=ks();return e.stopPropagation(),r.delete(i)}),Du(4,"translate"),us(5,"ion-icon",21),ls(),ls()}if(2&e){var i=t.$implicit,r=ks();xo(1),Ps("routerLink","/administration/connections/ldaps/",i.id,""),xo(1),os("ngForOf",r.displayedColumns),xo(1),Ss("title",Ou(4,3,"lang.delete"))}}var gj,vj=((gj=function(){function e(t,n,i,r,o,a,s,l){A(this,e),this.http=t,this.translate=n,this.latinisePipe=i,this.dialog=r,this.signaturesService=o,this.notificationService=a,this.authService=s,this.alertController=l,this.ldapList=[],this.loading=!0,this.displayedColumns=["label","actions"]}return m(e,[{key:"updateDataTable",value:function(){this.sortedData=this.ldapList.slice()}},{key:"applyFilter",value:function(e){var t=this;e=this.latinisePipe.transform(e.toLowerCase()),this.sortedData=this.ldapList.filter(function(n){var i=!1;return t.displayedColumns.forEach(function(r){n[r]&&t.latinisePipe.transform(n[r].toLowerCase()).includes(e)&&(i=!0)}),i})}},{key:"ngOnInit",value:function(){}},{key:"ionViewWillEnter",value:function(){var e=this;this.http.get("../rest/configurations",{params:{identifier:"ldapServer"}}).pipe(hw(function(){return e.loading=!1})).subscribe({next:function(t){e.ldapList=t.configurations,e.updateDataTable()}})}},{key:"delete",value:function(e){return t=this,i=regeneratorRuntime.mark(function t(){var n,i=this;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.alertController.create({header:this.translate.instant("lang.confirmMsg"),buttons:[{text:this.translate.instant("lang.no"),role:"cancel",cssClass:"secondary",handler:function(){}},{text:this.translate.instant("lang.yes"),handler:function(){i.http.delete("../rest/configurations/"+e.id).pipe(hw(function(){return i.loading=!1})).subscribe({next:function(){var t=i.ldapList.findIndex(function(t){return t.id===e.id});i.ldapList.splice(t,1),i.updateDataTable(),i.notificationService.success("lang.ldapDeleted")}})}}]});case 2:return n=t.sent,t.next=5,n.present();case 5:case"end":return t.stop()}},t,this)}),new((n=void 0)||(n=Promise))(function(e,r){function o(e){try{s(i.next(e))}catch(t){r(t)}}function a(e){try{s(i.throw(e))}catch(t){r(t)}}function s(t){var i;t.done?e(t.value):(i=t.value,i instanceof n?i:new n(function(e){e(i)})).then(o,a)}s((i=i.apply(t,[])).next())});var t,n,i}},{key:"sortData",value:function(e){var t=this.ldapList.slice();this.sortedData=e.active&&""!==e.direction?t.sort(function(t,n){return function(e,t,n){return(e<t?-1:1)*(n?1:-1)}(t[e.active],n[e.active],"asc"===e.direction)}):t}}]),e}()).\u0275fac=function(e){return new(e||gj)(rs(lb),rs(pE),rs(QM),rs(kB),rs(PE),rs(yE),rs(DE),rs(sP))},gj.\u0275cmp=ft({type:gj,selectors:[["app-administration-ldap-list"]],decls:28,vars:18,consts:[[3,"translucent"],["color","primary"],["slot","start"],["menu","left-menu"],["fill","outline","shape","round","routerLink","/administration/connections/ldaps/new"],["slot","end","color","secondary"],["mainContent",""],[2,"display","flex"],["color","primary","matSort","","matSortDirection","asc",2,"display","flex","font-size","12px","align-items","center",3,"matSortActive","matSortChange"],[4,"ngFor","ngForOf"],["style","flex: 1",4,"ngIf"],["slot","end","fill","clear","shape","round","disabled",""],["approxItemHeight","50px",3,"items"],["style","display: flex;",4,"virtualItem"],["disableClear","","style","flex: 1",3,"mat-sort-header",4,"ngIf"],["disableClear","",2,"flex","1",3,"mat-sort-header"],[2,"flex","1"],[2,"padding","1px",3,"placeholder","ionChange"],[2,"display","flex","cursor","pointer",3,"routerLink"],["style","flex: 1",4,"ngFor","ngForOf"],["slot","end","fill","clear","shape","round",3,"title","click"],["color","danger","slot","icon-only","name","trash"]],template:function(e,t){1&e&&(ss(0,"ion-header",0),ss(1,"ion-toolbar",1),ss(2,"ion-buttons",2),us(3,"ion-menu-button",3),us(4,"ion-back-button"),ls(),ss(5,"ion-title"),Qs(6),Du(7,"translate"),Du(8,"translate"),ls(),ls(),ss(9,"ion-toolbar",1),ss(10,"ion-buttons",2),ss(11,"ion-button",4),Qs(12),Du(13,"translate"),ls(),ls(),ss(14,"ion-title",5),Qs(15),Du(16,"translate"),ls(),ls(),ls(),ss(17,"ion-content",null,6),ss(19,"ion-list"),ss(20,"ion-item",7),ss(21,"ion-label",8),ms("matSortChange",function(e){return t.sortData(e)}),ns(22,dj,2,1,"ng-container",9),ns(23,hj,3,3,"div",10),ls(),ss(24,"ion-button",11),us(25,"ion-icon"),ls(),ls(),ss(26,"ion-virtual-scroll",12),ns(27,pj,6,5,"ion-item",13),ls(),ls(),ls()),2&e&&(os("translucent",!0),xo(6),Js("",Ou(7,10,"lang.administration")," ",Ou(8,12,"lang.manage_ldap_configurationsAlt")," "),xo(6),Ks(" ",Ou(13,14,"lang.ldapCreation")," "),xo(3),Js("",t.ldapList.length," ",Ou(16,16,"lang.manage_ldap_configurationsAlt"),""),xo(6),os("matSortActive",t.displayedColumns[0]),xo(1),os("ngForOf",t.displayedColumns),xo(1),os("ngIf",t.displayedColumns.indexOf("actions")>-1),xo(3),os("items",t.sortedData))},directives:[XC,DS,LC,cS,TC,JS,PS,RC,$S,Uk,UC,sS,nS,aS,Az,gh,mh,KC,iP,nP,Oz,bS,nA],pipes:[gE],styles:[".header[_ngcontent-%COMP%]{background:#135f7f;height:95px;color:#fff;padding-left:10px;font-size:25px}.header[_ngcontent-%COMP%], .header-title[_ngcontent-%COMP%]{display:flex;align-items:center}.header-title[_ngcontent-%COMP%]{flex:1;white-space:pre;overflow:hidden;text-overflow:ellipsis}.header[_ngcontent-%COMP%]   b[_ngcontent-%COMP%]{color:#f99830}.header[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis}.mainView[_ngcontent-%COMP%]{display:flex;flex-direction:column}.container[_ngcontent-%COMP%]{flex:1;overflow:auto}.loader[_ngcontent-%COMP%]{position:absolute;z-index:2;display:flex;background:hsla(0,0%,100%,.8);width:100%;height:100%;justify-content:center;align-items:center;top:0;margin:0;padding:0}.admin-form[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:20px}.actions-form[_ngcontent-%COMP%]{display:flex;justify-content:center}@media (max-width:360px){.actions-form[_ngcontent-%COMP%]{flex-direction:column}}.actions-form[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin:10px;width:150px}@media (max-width:360px){.actions-form[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{width:100%}}.noResult[_ngcontent-%COMP%]{padding:10px;text-align:center;opacity:.5}.emptyTable[_ngcontent-%COMP%]{height:auto}.addButton[_ngcontent-%COMP%]{padding:10px;display:flex;justify-content:flex-end}",""]}),gj);function mj(e,t){return t?function(n){return n.pipe(mj(function(n,i){return ie(e(n,i)).pipe(Y(function(e,r){return t(n,e,i,r)}))}))}:function(t){return t.lift(new yj(e))}}var yj=function(){function e(t){A(this,e),this.project=t}return m(e,[{key:"call",value:function(e,t){return t.subscribe(new bj(e,this.project))}}]),e}(),bj=function(e){r(n,e);var t=a(n);function n(e,i){var r;return A(this,n),(r=t.call(this,e)).project=i,r.hasSubscription=!1,r.hasCompleted=!1,r.index=0,r}return m(n,[{key:"_next",value:function(e){this.hasSubscription||this.tryNext(e)}},{key:"tryNext",value:function(e){var t,n=this.index++;try{t=this.project(e,n)}catch(i){return void this.destination.error(i)}this.hasSubscription=!0,this._innerSub(t)}},{key:"_innerSub",value:function(e){var t=new re(this),n=this.destination;n.add(t);var i=ae(e,t);i!==t&&n.add(i)}},{key:"_complete",value:function(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete(),this.unsubscribe()}},{key:"notifyNext",value:function(e){this.destination.next(e)}},{key:"notifyError",value:function(e){this.destination.error(e)}},{key:"notifyComplete",value:function(){this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()}}]),n}(oe);function wj(e,t){1&e&&(cs(0),Qs(1),Du(2,"translate"),ds()),2&e&&(xo(1),Ks(" ",Ou(2,1,"lang.connectionInProgress"),"... "))}function _j(e,t){if(1&e&&(cs(0),Qs(1),ds()),2&e){var n=ks(2);xo(1),Ks(" ",n.ldapTest.result," ")}}function kj(e,t){if(1&e&&(ss(0,"div",16),ns(1,wj,3,3,"ng-container",17),ns(2,_j,2,1,"ng-container",17),ls()),2&e){var n=ks();xo(1),os("ngIf",n.loadingTest),xo(1),os("ngIf",""!==n.ldapTest.result)}}var xj,Aj=((xj=function(){function e(t,n,i,r,o,a){A(this,e),this.http=t,this.translate=n,this.latinisePipe=i,this.dialog=r,this.notificationService=o,this.alertController=a,this.loadingTest=!1}return m(e,[{key:"ngOnInit",value:function(){}},{key:"testLdap",value:function(){var e=this;this.loadingTest=!0,this.ldapTest.result="",this.canValidate?this.http.patch("../rest/configurations/"+this.ldap.id,this.ldap).pipe(uw(function(){e.notificationService.success("lang.ldapUpdated")}),mj(function(){return e.http.get("../rest/configurations/"+e.ldap.id+"/connection",{params:{login:e.ldapTest.login,password:e.ldapTest.password}})}),uw(function(t){e.ldapTest.result=t.informations,t.connection&&e.notificationService.success("lang.ldapConnectionSucceeded")}),hw(function(){return e.loadingTest=!1}),Zb(function(t){return e.notificationService.handleErrors(t),Ty(!1)})).subscribe():this.http.get("../rest/configurations/"+this.ldap.id+"/connection",{params:{login:this.ldapTest.login,password:this.ldapTest.password}}).pipe(uw(function(t){e.ldapTest.result=t.informations,t.connection&&e.notificationService.success("lang.ldapConnectionSucceeded")}),hw(function(){return e.loadingTest=!1}),Zb(function(t){return e.notificationService.handleErrors(t),Ty(!1)})).subscribe()}}]),e}()).\u0275fac=function(e){return new(e||xj)(rs(lb),rs(pE),rs(QM),rs(kB),rs(yE),rs(sP))},xj.\u0275cmp=ft({type:xj,selectors:[["app-check-connection"]],inputs:{ldapTest:"ldapTest",ldap:"ldap",canValidate:"canValidate"},decls:45,vars:28,consts:[[3,"translucent"],["color","primary"],["slot","start"],[2,"display","contents",3,"ngSubmit"],["adminTestForm","ngForm"],["mainContent",""],["color","secondary","position","floating"],["name","login","required","",3,"ngModel","ngModelChange"],["name","password","required","",3,"ngModel","ngModelChange"],["color","secondary"],["name","uri","readonly","",3,"ngModel","ngModelChange"],["name","pathLogin","readonly","",3,"value"],["class","bash",4,"ngIf"],[1,"ion-no-border"],[1,"ion-justify-content-center"],["type","submit","color","primary",3,"disabled"],[1,"bash"],[4,"ngIf"]],template:function(e,t){if(1&e&&(ss(0,"ion-header",0),ss(1,"ion-toolbar",1),ss(2,"ion-buttons",2),us(3,"ion-back-button"),ls(),ss(4,"ion-title"),Qs(5),Du(6,"translate"),ls(),ls(),ls(),ss(7,"form",3,4),ms("ngSubmit",function(){return t.testLdap()}),ss(9,"ion-content",null,5),ss(11,"ion-item"),ss(12,"ion-label",6),Qs(13),Du(14,"translate"),ls(),ss(15,"ion-input",7),ms("ngModelChange",function(e){return t.ldapTest.login=e}),ls(),ls(),ss(16,"ion-item"),ss(17,"ion-label",6),Qs(18),Du(19,"translate"),ls(),ss(20,"ion-input",8),ms("ngModelChange",function(e){return t.ldapTest.password=e}),ls(),ls(),ss(21,"ion-card"),ss(22,"ion-card-header"),ss(23,"ion-card-subtitle",9),Qs(24),Du(25,"translate"),ls(),ls(),ss(26,"ion-card-content"),ss(27,"ion-item"),ss(28,"ion-label",1),Qs(29),Du(30,"translate"),ls(),ss(31,"ion-input",10),ms("ngModelChange",function(e){return t.ldap.value.uri=e}),ls(),ls(),ss(32,"ion-item"),ss(33,"ion-label",1),Qs(34),Du(35,"translate"),ls(),us(36,"ion-input",11),ls(),ns(37,kj,3,2,"div",12),ls(),ls(),ls(),ss(38,"ion-footer",13),ss(39,"ion-toolbar"),ss(40,"ion-buttons",14),ss(41,"ion-button",15),ss(42,"ion-label"),Qs(43),Du(44,"translate"),ls(),ls(),ls(),ls(),ls(),ls()),2&e){var n=is(8);os("translucent",!0),xo(5),Xs(Ou(6,14,"lang.connectionTest")),xo(8),Ks("",Ou(14,16,"lang.login")," *"),xo(2),os("ngModel",t.ldapTest.login),xo(3),Ks("",Ou(19,18,"lang.password")," *"),xo(2),os("ngModel",t.ldapTest.password),xo(4),Ks("",Ou(25,20,"lang.ldapInformations")," :"),xo(5),Ks("",Ou(30,22,"lang.uri")," :"),xo(2),os("ngModel",t.ldap.value.uri),xo(3),Ks("",Ou(35,24,"lang.login")," :"),xo(2),os("value",t.ldap.value.prefix?t.ldap.value.prefix+"\\"+t.ldapTest.login+t.ldap.value.suffix:t.ldapTest.login+t.ldap.value.suffix),xo(1),os("ngIf",""!==t.ldapTest.result||t.loadingTest),xo(4),os("disabled",!n.form.valid||t.loadingTest),xo(2),Xs(Ou(44,26,"lang.connectionTest"))}},directives:[XC,DS,LC,TC,JS,PS,Zm,fm,Wm,UC,nS,aS,tS,nA,xy,hm,Ym,FC,VC,zC,BC,mh,ZC,RC],pipes:[gE],styles:[".bash[_ngcontent-%COMP%]{background:#34495e;height:310px;border-radius:5px;top:40px;display:absolute;color:#fff;padding:10px;margin:10px}"]}),xj);function Cj(e,t){if(1&e){var n=fs();ss(0,"ion-button",18),ms("click",function(){return nn(n),ks().checkConnection()}),ss(1,"ion-label",15),Qs(2),Du(3,"translate"),ls(),ls()}2&e&&(xo(2),Xs(Ou(3,1,"lang.connectionTest")))}function Sj(e,t){if(1&e){var n=fs();ss(0,"ion-button",19),ms("click",function(){return nn(n),ks().delete()}),ss(1,"ion-label",15),Qs(2),Du(3,"translate"),ls(),ls()}if(2&e){var i=ks();os("disabled","ldap"===i.authService.authMode&&1===i.ldap.count),xo(2),Xs(Ou(3,2,"lang.delete"))}}var Pj,Ej=((Pj=function(){function e(t,n,i,r,o,a,s,l,u){A(this,e),this.http=t,this.translate=n,this.route=i,this.router=r,this.signaturesService=o,this.notificationService=a,this.dialog=s,this.authService=l,this.modalController=u,this.creationMode=!0,this.loading=!0,this.loadingTest=!1,this.ldapTest={login:"",password:"",result:""},this.ldap={id:0,label:"",identifier:"ldapServer",value:{uri:"",ssl:!1,prefix:"",suffix:"",baseDN:""}},this.title=""}return m(e,[{key:"ngOnInit",value:function(){var e=this;this.ldapTest.login=this.authService.user.login,this.route.params.subscribe(function(t){void 0===t.id?(e.creationMode=!0,e.title=e.translate.instant("lang.ldapCreation"),e.loading=!1):(e.creationMode=!1,e.http.get("../rest/configurations/"+t.id).pipe(Y(function(e){return e.configuration}),hw(function(){return e.loading=!1})).subscribe({next:function(t){e.ldap=t,e.ldapClone=JSON.parse(JSON.stringify(e.ldap)),e.title=e.ldap.label}}))})}},{key:"canValidate",value:function(){return JSON.stringify(this.ldap)!==JSON.stringify(this.ldapClone)}},{key:"onSubmit",value:function(){this.creationMode?this.createLdap():this.modifyLdap()}},{key:"modifyLdap",value:function(){var e=this;this.loading=!0,this.http.patch("../rest/configurations/"+this.ldap.id,this.ldap).pipe(hw(function(){return e.loading=!1})).subscribe({next:function(){e.router.navigate(["/administration/connections/ldaps"]),e.notificationService.success("lang.ldapUpdated")}})}},{key:"createLdap",value:function(){var e=this;this.loading=!0,this.http.post("../rest/configurations",this.ldap).pipe(hw(function(){return e.loading=!1})).subscribe({next:function(){e.router.navigate(["/administration/connections/ldaps"]),e.notificationService.success("lang.ldapAdded")}})}},{key:"delete",value:function(){var e=this;this.dialog.open(_H,{autoFocus:!1,data:{mode:"",title:"lang.confirmMsg",msg:""}}).afterClosed().subscribe(function(t){"yes"===t&&(e.loading=!0,e.http.delete("../rest/configurations/"+e.ldap.id).pipe(hw(function(){return e.loading=!1})).subscribe({next:function(){e.router.navigate(["/administration/connections/ldaps"]),e.notificationService.success("lang.ldapDeleted")}}))})}},{key:"cancel",value:function(){this.router.navigate(["/administration/connections/ldaps"])}},{key:"checkConnection",value:function(e){return t=this,i=regeneratorRuntime.mark(function e(){var t;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.modalController.create({component:Aj,componentProps:{ldapTest:this.ldapTest,ldap:this.ldap,canValidate:this.canValidate()}});case 2:return t=e.sent,e.next=5,t.present();case 5:case"end":return e.stop()}},e,this)}),new((n=void 0)||(n=Promise))(function(e,r){function o(e){try{s(i.next(e))}catch(t){r(t)}}function a(e){try{s(i.throw(e))}catch(t){r(t)}}function s(t){var i;t.done?e(t.value):(i=t.value,i instanceof n?i:new n(function(e){e(i)})).then(o,a)}s((i=i.apply(t,[])).next())});var t,n,i}}]),e}()).\u0275fac=function(e){return new(e||Pj)(rs(lb),rs(pE),rs(b_),rs(jk),rs(PE),rs(yE),rs(kB),rs(DE),rs(cP))},Pj.\u0275cmp=ft({type:Pj,selectors:[["app-administration-ldap"]],decls:49,vars:28,consts:[[3,"translucent"],["color","primary"],["slot","start"],["menu","left-menu"],["id","adminForm",2,"display","contents",3,"ngSubmit"],["adminForm","ngForm"],["color","secondary","position","floating"],["name","label","required","",3,"ngModel","ngModelChange"],["name","uri","required","",3,"ngModel","ngModelChange"],["name","baseDN",3,"ngModel","ngModelChange"],["name","prefix",3,"ngModel","ngModelChange"],["name","suffix",3,"ngModel","ngModelChange"],["text-center","","lines","none",2,"position","sticky","bottom","0px","z-index","1"],[2,"display","flex","align-items","center","justify-content","center","width","100%","background","white"],["type","submit","shape","round","size","large","fill","outline","color","primary",3,"disabled"],[2,"font-size","13px"],["type","button","shape","round","size","large","fill","outline","color","medium",3,"click",4,"ngIf"],["type","button","shape","round","size","large","fill","outline","color","danger",3,"disabled","click",4,"ngIf"],["type","button","shape","round","size","large","fill","outline","color","medium",3,"click"],["type","button","shape","round","size","large","fill","outline","color","danger",3,"disabled","click"]],template:function(e,t){if(1&e&&(ss(0,"ion-header",0),ss(1,"ion-toolbar",1),ss(2,"ion-buttons",2),us(3,"ion-menu-button",3),us(4,"ion-back-button"),ls(),ss(5,"ion-title"),Qs(6),ls(),ls(),ls(),ss(7,"form",4,5),ms("ngSubmit",function(){return t.onSubmit()}),ss(9,"ion-content"),ss(10,"ion-item"),ss(11,"ion-label",6),Qs(12),Du(13,"translate"),ls(),ss(14,"ion-input",7),ms("ngModelChange",function(e){return t.ldap.label=e}),ls(),ls(),ss(15,"ion-item"),ss(16,"ion-label",6),Qs(17),Du(18,"translate"),ls(),ss(19,"ion-input",8),ms("ngModelChange",function(e){return t.ldap.value.uri=e}),ls(),ls(),ss(20,"ion-item"),ss(21,"ion-label",6),Qs(22),Du(23,"translate"),ls(),ss(24,"ion-input",9),ms("ngModelChange",function(e){return t.ldap.value.baseDN=e}),ls(),ss(25,"ion-note"),Qs(26,"ex: dc=maarch,dc=com"),ls(),ls(),ss(27,"ion-item"),ss(28,"ion-label",6),Qs(29),Du(30,"translate"),ls(),ss(31,"ion-input",10),ms("ngModelChange",function(e){return t.ldap.value.prefix=e}),ls(),ss(32,"ion-note"),Qs(33,"ex: MAARCH"),ls(),ls(),ss(34,"ion-item"),ss(35,"ion-label",6),Qs(36),Du(37,"translate"),ls(),ss(38,"ion-input",11),ms("ngModelChange",function(e){return t.ldap.value.suffix=e}),ls(),ss(39,"ion-note"),Qs(40,"ex: @maarch.com"),ls(),ls(),ss(41,"ion-item",12),ss(42,"div",13),ss(43,"ion-button",14),ss(44,"ion-label",15),Qs(45),Du(46,"translate"),ls(),ls(),ns(47,Cj,4,3,"ion-button",16),ns(48,Sj,4,4,"ion-button",17),ls(),ls(),ls(),ls()),2&e){var n=is(8);os("translucent",!0),xo(6),Xs(t.title),xo(6),Ks("",Ou(13,16,"lang.label")," *"),xo(2),os("ngModel",t.ldap.label),xo(3),Ks("",Ou(18,18,"lang.uri")," *"),xo(2),os("ngModel",t.ldap.value.uri),xo(3),Xs(Ou(23,20,"lang.baseDN")),xo(2),os("ngModel",t.ldap.value.baseDN),xo(5),Xs(Ou(30,22,"lang.prefix")),xo(2),os("ngModel",t.ldap.value.prefix),xo(5),Xs(Ou(37,24,"lang.suffix")),xo(2),os("ngModel",t.ldap.value.suffix),xo(5),os("disabled",!n.form.valid||!t.canValidate()),xo(2),Xs(Ou(46,26,"lang.validate")),xo(2),os("ngIf",!t.creationMode),xo(1),os("ngIf",!t.creationMode)}},directives:[XC,DS,LC,cS,TC,JS,PS,Zm,fm,Wm,UC,nS,aS,tS,nA,xy,hm,Ym,hS,RC,mh],pipes:[gE],styles:[".header[_ngcontent-%COMP%]{background:#135f7f;height:95px;color:#fff;padding-left:10px;font-size:25px}.header[_ngcontent-%COMP%], .header-title[_ngcontent-%COMP%]{display:flex;align-items:center}.header-title[_ngcontent-%COMP%]{flex:1;white-space:pre;overflow:hidden;text-overflow:ellipsis}.header[_ngcontent-%COMP%]   b[_ngcontent-%COMP%]{color:#f99830}.header[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis}.mainView[_ngcontent-%COMP%]{display:flex;flex-direction:column}.container[_ngcontent-%COMP%]{flex:1;overflow:auto}.loader[_ngcontent-%COMP%]{position:absolute;z-index:2;display:flex;background:hsla(0,0%,100%,.8);width:100%;height:100%;justify-content:center;align-items:center;top:0;margin:0;padding:0}.admin-form[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:20px}.actions-form[_ngcontent-%COMP%]{display:flex;justify-content:center}@media (max-width:360px){.actions-form[_ngcontent-%COMP%]{flex-direction:column}}.actions-form[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin:10px;width:150px}@media (max-width:360px){.actions-form[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{width:100%}}.noResult[_ngcontent-%COMP%]{padding:10px;text-align:center;opacity:.5}.emptyTable[_ngcontent-%COMP%]{height:auto}.addButton[_ngcontent-%COMP%]{padding:10px;display:flex;justify-content:flex-end}",""]}),Pj);function Dj(e,t){if(1&e&&(ss(0,"ion-item"),us(1,"ion-icon",13),ss(2,"ion-label",14),Qs(3),Du(4,"translate"),ls(),ls()),2&e){var n=ks();xo(1),os("color","close-outline"===n.emailSendResult.icon?"danger":"primary")("name",n.emailSendResult.icon),xo(1),os("color","close-outline"===n.emailSendResult.icon?"danger":"primary"),xo(1),Xs(Ou(4,4,n.emailSendResult.msg))}}function Oj(e,t){if(1&e&&(ss(0,"div",15),Qs(1),ls()),2&e){var n=ks();xo(1),Ks(" ",n.emailSendResult.debug," ")}}var Mj,Tj=((Mj=function(){function e(t,n,i,r,o){A(this,e),this.http=t,this.translate=n,this.dialog=i,this.notificationService=r,this.alertController=o,this.emailSendLoading=!1,this.emailSendResult={icon:"",msg:"",debug:"",error:!1}}return m(e,[{key:"ngOnInit",value:function(){}},{key:"testEmailSend",value:function(){var e=this;this.emailSendResult={icon:"paper-plane-outline",msg:"lang.emailSendInProgress",debug:"",error:!1};var t={sender:this.sendmailFrom,recipients:[this.recipientTest],subject:"["+this.translate.instant("lang.doNotReply")+"] "+this.translate.instant("lang.emailSendTest"),status:"EXPRESS",body:this.translate.instant("lang.emailSendTest"),isHtml:!1};this.emailSendLoading=!0,this.http.post("../rest/emails",t).pipe(uw(function(t){e.emailSendResult=t.isSent?{icon:"checkmark-outline",msg:"lang.emailSendSuccess",debug:"",error:!1}:{icon:"close-outline",msg:"lang.emailSendFailed",debug:t.informations,error:!0}}),hw(function(){return e.emailSendLoading=!1})).subscribe()}}]),e}()).\u0275fac=function(e){return new(e||Mj)(rs(lb),rs(pE),rs(kB),rs(yE),rs(sP))},Mj.\u0275cmp=ft({type:Mj,selectors:[["app-check-email-connection"]],inputs:{profileInfo:"profileInfo",sendmailFrom:"sendmailFrom",recipientTest:"recipientTest"},decls:25,vars:15,consts:[[3,"translucent"],["color","primary"],["slot","start"],[2,"display","contents",3,"ngSubmit"],["adminTestForm","ngForm"],["mainContent",""],["color","secondary","position","floating"],["name","recipientTest","required","","pattern","(^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\\.[a-zA-Z0-9-.]+$)",3,"ngModel","disabled","ngModelChange"],[4,"ngIf"],["class","bash",4,"ngIf"],[1,"ion-no-border"],[1,"ion-justify-content-center"],["type","submit","color","primary",3,"disabled"],["slot","start",3,"color","name"],[3,"color"],[1,"bash"]],template:function(e,t){if(1&e&&(ss(0,"ion-header",0),ss(1,"ion-toolbar",1),ss(2,"ion-buttons",2),us(3,"ion-back-button"),ls(),ss(4,"ion-title"),Qs(5),Du(6,"translate"),ls(),ls(),ls(),ss(7,"form",3,4),ms("ngSubmit",function(){return t.testEmailSend()}),ss(9,"ion-content",null,5),ss(11,"ion-item"),ss(12,"ion-label",6),Qs(13),Du(14,"translate"),ls(),ss(15,"ion-input",7),ms("ngModelChange",function(e){return t.recipientTest=e}),ls(),ls(),ns(16,Dj,5,6,"ion-item",8),ns(17,Oj,2,1,"div",9),ls(),ss(18,"ion-footer",10),ss(19,"ion-toolbar"),ss(20,"ion-buttons",11),ss(21,"ion-button",12),ss(22,"ion-label"),Qs(23),Du(24,"translate"),ls(),ls(),ls(),ls(),ls(),ls()),2&e){var n=is(8);os("translucent",!0),xo(5),Xs(Ou(6,9,"lang.emailSendTest")),xo(8),Ks("",Ou(14,11,"lang.mailTo")," *"),xo(2),os("ngModel",t.recipientTest)("disabled",t.emailSendLoading),xo(1),os("ngIf",""!=t.emailSendResult.msg),xo(1),os("ngIf",t.emailSendResult.error),xo(4),os("disabled",!n.form.valid||t.emailSendLoading),xo(2),Xs(Ou(24,13,"lang.connectionTest"))}},directives:[XC,DS,LC,TC,JS,PS,Zm,fm,Wm,UC,nS,aS,tS,nA,xy,Py,hm,Ym,mh,ZC,RC,KC],pipes:[gE],styles:[".bash[_ngcontent-%COMP%]{background:#34495e;height:310px;border-radius:5px;top:40px;display:absolute;color:#fff;padding:10px;margin:10px}"]}),Mj);function Ij(e,t){if(1&e&&(ss(0,"ion-select-option",27),Qs(1),Du(2,"translate"),ls()),2&e){var n=t.$implicit;os("value",n.id),xo(1),Ks("",Ou(2,2,n.label)," ")}}function Rj(e,t){if(1&e&&(ss(0,"ion-select-option",27),Qs(1),Du(2,"translate"),ls()),2&e){var n=t.$implicit;os("value",n.id),xo(1),Ks(" ",Ou(2,2,n.label)," ")}}function Lj(e,t){if(1&e){var n=fs();ss(0,"form",5,6),ms("ngSubmit",function(){return nn(n),ks().onSubmit()}),ss(2,"ion-content"),ss(3,"ion-item"),ss(4,"ion-label",7),Qs(5),Du(6,"translate"),ls(),ss(7,"ion-select",8),ms("ngModelChange",function(e){return nn(n),ks().sendmail.type=e}),ns(8,Ij,3,4,"ion-select-option",9),ls(),ls(),ss(9,"ion-grid"),ss(10,"ion-row"),ss(11,"ion-col",10),ss(12,"ion-item"),ss(13,"ion-label",7),Qs(14),Du(15,"translate"),ls(),ss(16,"ion-select",11),ms("ngModelChange",function(e){return nn(n),ks().sendmail.secure=e}),ns(17,Rj,3,4,"ion-select-option",9),ls(),ls(),ls(),ss(18,"ion-col",12),ss(19,"ion-item"),ss(20,"ion-label",7),Qs(21),Du(22,"translate"),ls(),ss(23,"ion-input",13),ms("ngModelChange",function(e){return nn(n),ks().sendmail.host=e}),ls(),ls(),ls(),ss(24,"ion-col",10),ss(25,"ion-item"),ss(26,"ion-label",7),Qs(27),Du(28,"translate"),ls(),ss(29,"ion-input",14),ms("ngModelChange",function(e){return nn(n),ks().sendmail.port=e}),ls(),ls(),ls(),ls(),ls(),ss(30,"ion-item"),ss(31,"ion-toggle",15),ms("ngModelChange",function(e){return nn(n),ks().sendmail.auth=e})("ngModelChange",function(){return nn(n),ks().cleanAuthInfo()}),ls(),ss(32,"ion-label"),Qs(33),Du(34,"translate"),ls(),ls(),ss(35,"ion-item"),ss(36,"ion-label",7),Qs(37),Du(38,"translate"),ls(),ss(39,"ion-input",16),ms("ngModelChange",function(e){return nn(n),ks().sendmail.user=e}),ls(),ls(),ss(40,"ion-item",17),ss(41,"ion-button",18),ms("click",function(){nn(n);var e=ks();return e.hidePassword=!e.hidePassword}),us(42,"ion-icon",19),ls(),ss(43,"ion-label",7),Qs(44),ls(),ss(45,"ion-input",20),ms("ngModelChange",function(e){return nn(n),ks().sendmail.password=e}),ls(),ls(),ss(46,"ion-item"),ss(47,"ion-label",7),Qs(48),Du(49,"translate"),ls(),ss(50,"ion-input",21),ms("ngModelChange",function(e){return nn(n),ks().sendmail.from=e}),ls(),ls(),ss(51,"ion-item",22),ss(52,"div",23),ss(53,"ion-button",24),ms("click",function(){return nn(n),ks().checkConnection()}),ss(54,"ion-label",25),Qs(55),Du(56,"translate"),ls(),ls(),ss(57,"ion-button",26),ss(58,"ion-label",25),Qs(59),Du(60,"translate"),ls(),ls(),ls(),ls(),ls(),ls()}if(2&e){var i=is(1),r=ks();xo(5),Ks("",Ou(6,34,"lang.configurationType")," *"),xo(2),os("ngModel",r.sendmail.type),xo(1),os("ngForOf",r.smtpTypeList),xo(6),Ks("",Ou(15,36,"lang.smtpAuth")," * "),xo(2),os("disabled","smtp"!=r.sendmail.type)("ngModel",r.sendmail.secure)("value",r.sendmail.secure),xo(1),os("ngForOf",r.smtpSecList),xo(4),Ks("",Ou(22,38,"lang.host")," *"),xo(2),os("disabled","smtp"!=r.sendmail.type)("ngModel",r.sendmail.host),xo(4),Ks("",Ou(28,40,"lang.port")," *"),xo(2),os("disabled","smtp"!=r.sendmail.type)("ngModel",r.sendmail.port),xo(2),os("ngModel",r.sendmail.auth)("checked",r.sendmail.auth)("disabled","smtp"!=r.sendmail.type),xo(2),Xs(Ou(34,42,"lang.enableAuth")),xo(4),Ks("",Ou(38,44,"lang.id")," *"),xo(2),os("ngModel",r.sendmail.user)("disabled",!r.sendmail.auth||"smtp"!=r.sendmail.type),xo(3),os("name",r.hidePassword?"eye-outline":"eye-off-outline"),xo(2),Js("",r.passwordLanguage," ",r.sendmail.passwordAlreadyExists?"":"*",""),xo(1),os("type",r.hidePassword?"password":"text")("ngModel",r.sendmail.password)("disabled",!r.sendmail.auth||"smtp"!=r.sendmail.type)("required",!r.sendmail.passwordAlreadyExists),xo(3),Xs(Ou(49,46,"lang.mailFrom")),xo(2),os("ngModel",r.sendmail.from)("disabled","smtp"!=r.sendmail.type),xo(5),Xs(Ou(56,48,"lang.connectionTest")),xo(2),os("disabled",!i.form.valid||!r.canValidate()),xo(2),Xs(Ou(60,50,"lang.validate"))}}var Fj,Bj=((Fj=function(){function e(t,n,i,r,o,a,s,l){A(this,e),this.http=t,this.translate=n,this.route=i,this.signaturesService=r,this.notificationService=o,this.dialog=a,this.authService=s,this.modalController=l,this.loading=!0,this.title="",this.passwordLanguage="",this.hidePassword=!0,this.smtpTypeList=[{id:"smtp",label:"lang.smtpclient"},{id:"sendmail",label:"lang.smtprelay"},{id:"qmail",label:"lang.qmail"},{id:"mail",label:"lang.phpmail"}],this.smtpSecList=[{id:"",label:"lang.none"},{id:"ssl",label:"ssl"},{id:"tls",label:"tls"}]}return m(e,[{key:"ngOnInit",value:function(){var e=this;this.route.params.subscribe(function(){e.http.get("../rest/configurations/1").pipe(Y(function(e){return e.configuration}),hw(function(){return e.loading=!1})).subscribe({next:function(t){e.sendmail=t.value,e.sendmailLabel=t.label,e.sendmailClone=JSON.parse(JSON.stringify(e.sendmail)),e.title=e.translate.instant("lang.manage_email_configuration"),e.passwordLanguage=e.translate.instant(e.sendmail.passwordAlreadyExists?"lang.passwordModification":"lang.password")}})})}},{key:"canValidate",value:function(){return JSON.stringify(this.sendmail)!==JSON.stringify(this.sendmailClone)}},{key:"onSubmit",value:function(){var e=this;this.loading=!0,this.http.patch("../rest/configurations/1",{value:this.sendmail,label:this.sendmailLabel}).pipe(hw(function(){return e.loading=!1})).subscribe({next:function(){e.sendmailClone=JSON.parse(JSON.stringify(e.sendmail)),e.notificationService.success("lang.emailConfigurationUpdated")}})}},{key:"cleanAuthInfo",value:function(){this.sendmail.passwordAlreadyExists=!1,this.sendmail.user="",this.sendmail.password=""}},{key:"checkConnection",value:function(e){return t=this,i=regeneratorRuntime.mark(function e(){var t,n;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=JSON.parse(JSON.stringify(this.authService.user)),JSON.stringify(this.sendmailClone)!==JSON.stringify(this.sendmail)&&this.onSubmit(),e.next=4,this.modalController.create({component:Tj,componentProps:{sendmailFrom:this.sendmail.from,recipientTest:t.email}});case 4:return n=e.sent,e.next=7,n.present();case 7:case"end":return e.stop()}},e,this)}),new((n=void 0)||(n=Promise))(function(e,r){function o(e){try{s(i.next(e))}catch(t){r(t)}}function a(e){try{s(i.throw(e))}catch(t){r(t)}}function s(t){var i;t.done?e(t.value):(i=t.value,i instanceof n?i:new n(function(e){e(i)})).then(o,a)}s((i=i.apply(t,[])).next())});var t,n,i}}]),e}()).\u0275fac=function(e){return new(e||Fj)(rs(lb),rs(pE),rs(b_),rs(PE),rs(yE),rs(kB),rs(DE),rs(cP))},Fj.\u0275cmp=ft({type:Fj,selectors:[["app-administration-sendmail"]],decls:8,vars:3,consts:[[3,"translucent"],["color","primary"],["slot","start"],["menu","left-menu"],["style","display: contents;","id","sendmailForm",3,"ngSubmit",4,"ngIf"],["id","sendmailForm",2,"display","contents",3,"ngSubmit"],["sendmailForm","ngForm"],["color","secondary","position","floating"],["name","smtpType","interface","popover","required","",3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],["size","2"],["name","SMTPSecure","interface","popover","required","",3,"disabled","ngModel","value","ngModelChange"],["size","8"],["name","host","required","",3,"disabled","ngModel","ngModelChange"],["type","number","name","port","required","",3,"disabled","ngModel","ngModelChange"],["name","SMTPAuth",3,"ngModel","checked","disabled","ngModelChange"],["name","user","required","",3,"ngModel","disabled","ngModelChange"],[2,"align-items","center"],["slot","end","fill","clear","color","primary",3,"click"],["color","primary",3,"name"],["name","password",3,"type","ngModel","disabled","required","ngModelChange"],["name","mailFrom","pattern","(^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\\.[a-zA-Z0-9-.]+$)",3,"ngModel","disabled","ngModelChange"],["text-center","","lines","none",2,"position","sticky","bottom","0px","z-index","1"],[2,"display","flex","align-items","center","justify-content","center","width","100%","background","white"],["type","button","shape","round","size","large","fill","outline","color","medium",3,"click"],[2,"font-size","13px"],["type","submit","shape","round","size","large","fill","outline","color","primary",3,"disabled"],[3,"value"]],template:function(e,t){1&e&&(ss(0,"ion-header",0),ss(1,"ion-toolbar",1),ss(2,"ion-buttons",2),us(3,"ion-menu-button",3),us(4,"ion-back-button"),ls(),ss(5,"ion-title"),Qs(6),ls(),ls(),ls(),ns(7,Lj,61,52,"form",4)),2&e&&(os("translucent",!0),xo(6),Xs(t.title),xo(1),os("ngIf",!t.loading))},directives:[XC,DS,LC,cS,TC,JS,PS,mh,Zm,fm,Wm,UC,nS,aS,kS,tA,xy,hm,Ym,gh,QC,yS,jC,tS,nA,$x,ES,Jx,RC,KC,Py,xS],pipes:[gE],styles:[".testSendTo[_ngcontent-%COMP%]{width:95%;margin-top:10px;margin-left:10px}.bash[_ngcontent-%COMP%]{background:#34495e;height:310px;border-radius:5px;top:40px;display:absolute;color:#fff;padding:10px;margin:10px;word-wrap:break-word}.panel-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;position:relative;height:100%;overflow:hidden}.panel-header[_ngcontent-%COMP%]{box-shadow:0 0 10px 0 #656565;color:#fff;background:#135f7f;height:95px;display:flex;justify-content:center;position:relative;font-size:25px;align-items:center}.panel-content[_ngcontent-%COMP%]{flex:1;overflow:auto}.cancel[_ngcontent-%COMP%]{position:absolute;top:10px;left:0;height:65px;width:65px;font-size:35px;color:#fff}.auth-container[_ngcontent-%COMP%]{display:flex}.auth-container[_ngcontent-%COMP%]   .auth-1[_ngcontent-%COMP%]{width:100px;padding-right:10px}.auth-container[_ngcontent-%COMP%]   .auth-2[_ngcontent-%COMP%]{flex:1}.auth-container[_ngcontent-%COMP%]   .auth-3[_ngcontent-%COMP%]{width:50px;padding-left:10px}@media (max-width:360px){.auth-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}.auth-container[_ngcontent-%COMP%]   .auth-1[_ngcontent-%COMP%]{width:100%;padding-right:0}.auth-container[_ngcontent-%COMP%]   .auth-2[_ngcontent-%COMP%]{width:100%;flex:1}.auth-container[_ngcontent-%COMP%]   .auth-3[_ngcontent-%COMP%]{width:100%;padding-left:0}}"]}),Fj);function Vj(e,t,n){this.x=e,this.y=t,this.time=n||(new Date).getTime()}function zj(e,t,n,i){this.startPoint=e,this.control1=t,this.control2=n,this.endPoint=i}function Nj(e,t){var n=this,i=t||{};this.velocityFilterWeight=i.velocityFilterWeight||.7,this.minWidth=i.minWidth||.5,this.maxWidth=i.maxWidth||2.5,this.throttle="throttle"in i?i.throttle:16,this.minDistance="minDistance"in i?i.minDistance:5,this._strokeMoveUpdate=this.throttle?function(e,t,n){var i,r,o,a=null,s=0;n||(n={});var l=function(){s=!1===n.leading?0:Date.now(),a=null,o=e.apply(i,r),a||(i=r=null)};return function(){var u=Date.now();s||!1!==n.leading||(s=u);var c=t-(u-s);return i=this,r=arguments,c<=0||c>t?(a&&(clearTimeout(a),a=null),s=u,o=e.apply(i,r),a||(i=r=null)):a||!1===n.trailing||(a=setTimeout(l,c)),o}}(Nj.prototype._strokeUpdate,this.throttle):Nj.prototype._strokeUpdate,this.dotSize=i.dotSize||function(){return(this.minWidth+this.maxWidth)/2},this.penColor=i.penColor||"black",this.backgroundColor=i.backgroundColor||"rgba(0,0,0,0)",this.onBegin=i.onBegin,this.onEnd=i.onEnd,this._canvas=e,this._ctx=e.getContext("2d"),this.clear(),this._handleMouseDown=function(e){1===e.which&&(n._mouseButtonDown=!0,n._strokeBegin(e))},this._handleMouseMove=function(e){n._mouseButtonDown&&n._strokeMoveUpdate(e)},this._handleMouseUp=function(e){1===e.which&&n._mouseButtonDown&&(n._mouseButtonDown=!1,n._strokeEnd(e))},this._handleTouchStart=function(e){1===e.targetTouches.length&&n._strokeBegin(e.changedTouches[0])},this._handleTouchMove=function(e){e.preventDefault(),n._strokeMoveUpdate(e.targetTouches[0])},this._handleTouchEnd=function(e){e.target===n._canvas&&(e.preventDefault(),n._strokeEnd(e))},this.on()}Vj.prototype.velocityFrom=function(e){return this.time!==e.time?this.distanceTo(e)/(this.time-e.time):1},Vj.prototype.distanceTo=function(e){return Math.sqrt(Math.pow(this.x-e.x,2)+Math.pow(this.y-e.y,2))},Vj.prototype.equals=function(e){return this.x===e.x&&this.y===e.y&&this.time===e.time},zj.prototype.length=function(){for(var e=0,t=void 0,n=void 0,i=0;i<=10;i+=1){var r=i/10,o=this._point(r,this.startPoint.x,this.control1.x,this.control2.x,this.endPoint.x),a=this._point(r,this.startPoint.y,this.control1.y,this.control2.y,this.endPoint.y);if(i>0){var s=o-t,l=a-n;e+=Math.sqrt(s*s+l*l)}t=o,n=a}return e},zj.prototype._point=function(e,t,n,i,r){return t*(1-e)*(1-e)*(1-e)+3*n*(1-e)*(1-e)*e+3*i*(1-e)*e*e+r*e*e*e},Nj.prototype.clear=function(){var e=this._ctx,t=this._canvas;e.fillStyle=this.backgroundColor,e.clearRect(0,0,t.width,t.height),e.fillRect(0,0,t.width,t.height),this._data=[],this._reset(),this._isEmpty=!0},Nj.prototype.fromDataURL=function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=new Image,r=n.ratio||window.devicePixelRatio||1,o=n.width||this._canvas.width/r,a=n.height||this._canvas.height/r;this._reset(),i.src=e,i.onload=function(){t._ctx.drawImage(i,0,0,o,a)},this._isEmpty=!1},Nj.prototype.toDataURL=function(e){var t;switch(e){case"image/svg+xml":return this._toSVG();default:for(var n=arguments.length,i=Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];return(t=this._canvas).toDataURL.apply(t,[e].concat(i))}},Nj.prototype.on=function(){this._handleMouseEvents(),this._handleTouchEvents()},Nj.prototype.off=function(){this._canvas.removeEventListener("mousedown",this._handleMouseDown),this._canvas.removeEventListener("mousemove",this._handleMouseMove),document.removeEventListener("mouseup",this._handleMouseUp),this._canvas.removeEventListener("touchstart",this._handleTouchStart),this._canvas.removeEventListener("touchmove",this._handleTouchMove),this._canvas.removeEventListener("touchend",this._handleTouchEnd)},Nj.prototype.isEmpty=function(){return this._isEmpty},Nj.prototype._strokeBegin=function(e){this._data.push([]),this._reset(),this._strokeUpdate(e),"function"==typeof this.onBegin&&this.onBegin(e)},Nj.prototype._strokeUpdate=function(e){var t=this._createPoint(e.clientX,e.clientY),n=this._data[this._data.length-1],i=n&&n[n.length-1],r=i&&t.distanceTo(i)<this.minDistance;if(!i||!r){var o=this._addPoint(t),a=o.curve,s=o.widths;a&&s&&this._drawCurve(a,s.start,s.end),this._data[this._data.length-1].push({x:t.x,y:t.y,time:t.time,color:this.penColor})}},Nj.prototype._strokeEnd=function(e){var t=this.points[0];if(!(this.points.length>2)&&t&&this._drawDot(t),t){var n=this._data[this._data.length-1];t.equals(n[n.length-1])||n.push({x:t.x,y:t.y,time:t.time,color:this.penColor})}"function"==typeof this.onEnd&&this.onEnd(e)},Nj.prototype._handleMouseEvents=function(){this._mouseButtonDown=!1,this._canvas.addEventListener("mousedown",this._handleMouseDown),this._canvas.addEventListener("mousemove",this._handleMouseMove),document.addEventListener("mouseup",this._handleMouseUp)},Nj.prototype._handleTouchEvents=function(){this._canvas.style.msTouchAction="none",this._canvas.style.touchAction="none",this._canvas.addEventListener("touchstart",this._handleTouchStart),this._canvas.addEventListener("touchmove",this._handleTouchMove),this._canvas.addEventListener("touchend",this._handleTouchEnd)},Nj.prototype._reset=function(){this.points=[],this._lastVelocity=0,this._lastWidth=(this.minWidth+this.maxWidth)/2,this._ctx.fillStyle=this.penColor},Nj.prototype._createPoint=function(e,t,n){var i=this._canvas.getBoundingClientRect();return new Vj(e-i.left,t-i.top,n||(new Date).getTime())},Nj.prototype._addPoint=function(e){var t=this.points,n=void 0;if(t.push(e),t.length>2){3===t.length&&t.unshift(t[0]);var i=(n=this._calculateCurveControlPoints(t[0],t[1],t[2])).c2;n=this._calculateCurveControlPoints(t[1],t[2],t[3]);var r=new zj(t[1],i,n.c1,t[2]),o=this._calculateCurveWidths(r);return t.shift(),{curve:r,widths:o}}return{}},Nj.prototype._calculateCurveControlPoints=function(e,t,n){var i=e.x-t.x,r=e.y-t.y,o=t.x-n.x,a=t.y-n.y,s=(e.x+t.x)/2,l=(e.y+t.y)/2,u=(t.x+n.x)/2,c=(t.y+n.y)/2,d=Math.sqrt(i*i+r*r),h=Math.sqrt(o*o+a*a),f=h/(d+h),p=t.x-(u+(s-u)*f),g=t.y-(c+(l-c)*f);return{c1:new Vj(s+p,l+g),c2:new Vj(u+p,c+g)}},Nj.prototype._calculateCurveWidths=function(e){var t={start:null,end:null},n=this.velocityFilterWeight*e.endPoint.velocityFrom(e.startPoint)+(1-this.velocityFilterWeight)*this._lastVelocity,i=this._strokeWidth(n);return t.start=this._lastWidth,t.end=i,this._lastVelocity=n,this._lastWidth=i,t},Nj.prototype._strokeWidth=function(e){return Math.max(this.maxWidth/(e+1),this.minWidth)},Nj.prototype._drawPoint=function(e,t,n){var i=this._ctx;i.moveTo(e,t),i.arc(e,t,n,0,2*Math.PI,!1),this._isEmpty=!1},Nj.prototype._drawCurve=function(e,t,n){var i=this._ctx,r=n-t,o=Math.floor(e.length());i.beginPath();for(var a=0;a<o;a+=1){var s=a/o,l=s*s,u=l*s,c=1-s,d=c*c,h=d*c,f=h*e.startPoint.x;f+=3*d*s*e.control1.x,f+=3*c*l*e.control2.x;var p=h*e.startPoint.y;p+=3*d*s*e.control1.y,p+=3*c*l*e.control2.y,this._drawPoint(f+=u*e.endPoint.x,p+=u*e.endPoint.y,t+u*r)}i.closePath(),i.fill()},Nj.prototype._drawDot=function(e){var t=this._ctx,n="function"==typeof this.dotSize?this.dotSize():this.dotSize;t.beginPath(),this._drawPoint(e.x,e.y,n),t.closePath(),t.fill()},Nj.prototype._fromData=function(e,t,n){for(var i=0;i<e.length;i+=1){var r=e[i];if(r.length>1)for(var o=0;o<r.length;o+=1){var a=r[o],s=new Vj(a.x,a.y,a.time),l=a.color;if(0===o)this.penColor=l,this._reset(),this._addPoint(s);else if(o!==r.length-1){var u=this._addPoint(s),c=u.curve,d=u.widths;c&&d&&t(c,d,l)}}else this._reset(),n(r[0])}},Nj.prototype._toSVG=function(){var e=this,t=this._data,n=this._canvas,i=Math.max(window.devicePixelRatio||1,1),r=n.width/i,o=n.height/i,a=document.createElementNS("http://www.w3.org/2000/svg","svg");a.setAttributeNS(null,"width",n.width),a.setAttributeNS(null,"height",n.height),this._fromData(t,function(e,t,n){var i=document.createElement("path");if(!(isNaN(e.control1.x)||isNaN(e.control1.y)||isNaN(e.control2.x)||isNaN(e.control2.y))){var r="M "+e.startPoint.x.toFixed(3)+","+e.startPoint.y.toFixed(3)+" C "+e.control1.x.toFixed(3)+","+e.control1.y.toFixed(3)+" "+e.control2.x.toFixed(3)+","+e.control2.y.toFixed(3)+" "+e.endPoint.x.toFixed(3)+","+e.endPoint.y.toFixed(3);i.setAttribute("d",r),i.setAttribute("stroke-width",(2.25*t.end).toFixed(3)),i.setAttribute("stroke",n),i.setAttribute("fill","none"),i.setAttribute("stroke-linecap","round"),a.appendChild(i)}},function(t){var n=document.createElement("circle"),i="function"==typeof e.dotSize?e.dotSize():e.dotSize;n.setAttribute("r",i),n.setAttribute("cx",t.x),n.setAttribute("cy",t.y),n.setAttribute("fill",t.color),a.appendChild(n)});var s='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 '+r+" "+o+'" width="'+r+'" height="'+o+'">',l=a.innerHTML;if(void 0===l){var u=document.createElement("dummy"),c=a.childNodes;u.innerHTML="";for(var d=0;d<c.length;d+=1)u.appendChild(c[d].cloneNode(!0));l=u.innerHTML}return"data:image/svg+xml;base64,"+btoa(s+l+"</svg>")},Nj.prototype.fromData=function(e){var t=this;this.clear(),this._fromData(e,function(e,n){return t._drawCurve(e,n.start,n.end)},function(e){return t._drawDot(e)}),this._data=e},Nj.prototype.toData=function(){return this._data};var Hj,jj,Uj=Nj,Wj=((jj=function(){function e(t){A(this,e),this.elementRef=t,this.options=this.options||{},this.onBeginEvent=new Fu,this.onEndEvent=new Fu}return m(e,[{key:"ngAfterContentInit",value:function(){var e=this.elementRef.nativeElement.querySelector("canvas");this.options.canvasHeight&&(e.height=this.options.canvasHeight),this.options.canvasWidth&&(e.width=this.options.canvasWidth),this.signaturePad=new Uj(e,this.options),this.signaturePad.onBegin=this.onBegin.bind(this),this.signaturePad.onEnd=this.onEnd.bind(this)}},{key:"ngOnDestroy",value:function(){var e=this.elementRef.nativeElement.querySelector("canvas");e.width=0,e.height=0}},{key:"resizeCanvas",value:function(){var e=Math.max(window.devicePixelRatio||1,1),t=this.signaturePad.canvas;t.width=t.offsetWidth*e,t.height=t.offsetHeight*e,t.getContext("2d").scale(e,e),this.signaturePad.clear()}},{key:"toData",value:function(){return this.signaturePad?this.signaturePad.toData():[]}},{key:"fromData",value:function(e){this.signaturePad.fromData(e)}},{key:"toDataURL",value:function(e,t){return this.signaturePad.toDataURL(e,t)}},{key:"fromDataURL",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!t.hasOwnProperty("height")&&this.options.canvasHeight&&(t.height=this.options.canvasHeight),!t.hasOwnProperty("width")&&this.options.canvasWidth&&(t.width=this.options.canvasWidth),this.signaturePad.fromDataURL(e,t)}},{key:"clear",value:function(){this.signaturePad.clear()}},{key:"isEmpty",value:function(){return this.signaturePad.isEmpty()}},{key:"off",value:function(){this.signaturePad.off()}},{key:"on",value:function(){this.signaturePad.on()}},{key:"set",value:function(e,t){switch(e){case"canvasHeight":this.signaturePad.canvas.height=t;break;case"canvasWidth":this.signaturePad.canvas.width=t;break;default:this.signaturePad[e]=t}}},{key:"onBegin",value:function(){this.onBeginEvent.emit(!0)}},{key:"onEnd",value:function(){this.onEndEvent.emit(!0)}},{key:"queryPad",value:function(){return this.signaturePad}}]),e}()).\u0275fac=function(e){return new(e||jj)(rs(Cl))},jj.\u0275cmp=ft({type:jj,selectors:[["signature-pad"]],inputs:{options:"options"},outputs:{onBeginEvent:"onBeginEvent",onEndEvent:"onEndEvent"},decls:1,vars:0,template:function(e,t){1&e&&us(0,"canvas")},encapsulation:2}),jj),Gj=((Hj=function e(){A(this,e)}).\u0275fac=function(e){return new(e||Hj)},Hj.\u0275mod=mt({type:Hj}),Hj.\u0275inj=Fe({imports:[[]]}),Hj),qj=["signaturePad"],Yj=function(e,t){return{"border-color":e,"background-color":t}};function Zj(e,t){if(1&e){var n=fs();cs(0,20),ss(1,"input",21),ms("change",function(){nn(n);var e=t.$implicit;return ks().onColorChange(e)}),ls(),ds()}if(2&e){var i=t.$implicit,r=ks();xo(1),os("checked",0===r.idx)("value",i.id)("ngStyle",Cu(3,Yj,i.id,i.id))}}var Qj,Xj=((Qj=function(){function e(t,n,i,r,o,a,s){A(this,e),this.translate=t,this.http=n,this.signaturesService=i,this.notificationService=r,this.authService=o,this.localStorage=a,this.modalController=s,this.reloaded=new Fu,this.penColors=[{id:"black"},{id:"#1a75ff"},{id:"#FF0000"}],this.disableState=!1,this.signaturePadOptions={minWidth:1,maxWidth:2.5,backgroundColor:"rgba(255, 255, 255, 0)",canvasWidth:600,canvasHeight:400}}return m(e,[{key:"ngAfterViewInit",value:function(){this.localStorage.get("signature")}},{key:"onColorChange",value:function(e){this.selectedColor=Object.assign({},this.selectedColor,e),this.signaturePad.set("penColor",this.selectedColor.id)}},{key:"onDotChange",value:function(e){this.signaturePad.set("minWidth",parseFloat(e)),this.signaturePad.set("maxWidth",parseFloat(e)+2)}},{key:"drawComplete",value:function(){this.localStorage.save("signature",JSON.stringify(this.signaturePad.toData())),this.haveSigned=!0}},{key:"drawClear",value:function(){this.signaturePad.clear(),this.haveSigned=!1}},{key:"closePad",value:function(){this.modalController.dismiss("cancel")}},{key:"saveSignature",value:function(){var e=this;this.disableState=!0,this.haveSigned=!0;var t=this.signaturePad.toDataURL("image/png").replace("data:image/png;base64,","");this.localStorage.save("signature",JSON.stringify(t));var n={id:0,encodedSignature:t,format:"png"};this.http.post("../rest/users/"+this.authService.user.id+"/signatures",n).pipe(hw(function(){e.disableState=!1})).subscribe(function(t){n.id=t.signatureId,e.signaturesService.signaturesList.unshift({id:n.id,encodedSignature:n.encodedSignature}),e.modalController.dismiss("reload"),e.notificationService.success("lang.signatureRegistered")})}}]),e}()).\u0275fac=function(e){return new(e||Qj)(rs(pE),rs(lb),rs(PE),rs(yE),rs(DE),rs(EE),rs(cP))},Qj.\u0275cmp=ft({type:Qj,selectors:[["app-pad"]],viewQuery:function(e,t){var n;1&e&&Qu(qj,1),2&e&&Zu(n=Ku())&&(t.signaturePad=n.first)},outputs:{reloaded:"reloaded"},decls:34,vars:16,consts:[[3,"translucent"],["color","primary"],["slot","end"],[3,"click"],["slot","icon-only","name","close-outline"],["color","light",1,"pad"],[1,"pad-actions"],[1,"pad-actions-boxed"],["let","","idx","index",4,"ngFor","ngForOf"],[1,"btn",3,"click"],["type","range","name","dot","min","1","max","10","step","1","value","1",1,"range",3,"input"],["padContent",""],[1,"pad"],[1,"pad-draw"],[1,"padContent",3,"options","onEndEvent"],["signaturePad",""],[1,"draw"],[1,"footer-buttons"],["color","danger",3,"click"],["color","success",3,"click"],["let","","idx","index"],["type","radio","name","colors",1,"radio",3,"checked","value","ngStyle","change"]],template:function(e,t){1&e&&(ss(0,"ion-header",0),ss(1,"ion-toolbar",1),ss(2,"ion-title"),Qs(3),Du(4,"translate"),ls(),ss(5,"ion-buttons",2),ss(6,"ion-button",3),ms("click",function(){return t.closePad()}),us(7,"ion-icon",4),ls(),ls(),ls(),ls(),ss(8,"ion-header",0),ss(9,"ion-toolbar",5),ss(10,"section",6),ss(11,"div",7),ns(12,Zj,2,6,"ng-container",8),ls(),ss(13,"button",9),ms("click",function(){return t.drawClear()}),Qs(14),Du(15,"translate"),ls(),ss(16,"div",7),ss(17,"input",10),ms("input",function(e){return t.onDotChange(e.target.value)}),ls(),ls(),ls(),ls(),ls(),ss(18,"ion-content",null,11),ss(20,"article",12),ss(21,"section",13),ss(22,"signature-pad",14,15),ms("onEndEvent",function(){return t.drawComplete()}),ls(),ls(),us(24,"div",16),ls(),ls(),ss(25,"ion-footer",17),ss(26,"ion-button",18),ms("click",function(){return t.closePad()}),ss(27,"ion-label"),Qs(28),Du(29,"translate"),ls(),ls(),ss(30,"ion-button",19),ms("click",function(){return t.saveSignature()}),ss(31,"ion-label"),Qs(32),Du(33,"translate"),ls(),ls(),ls()),2&e&&(os("translucent",!0),xo(3),Xs(Ou(4,8,"lang.createNewSignature")),xo(5),os("translucent",!0),xo(4),os("ngForOf",t.penColors),xo(2),Xs(Ou(15,10,"lang.erase")),xo(8),os("options",t.signaturePadOptions),xo(6),Xs(Ou(29,12,"lang.cancel")),xo(4),Xs(Ou(33,14,"lang.save")))},directives:[XC,DS,PS,LC,RC,KC,gh,UC,Wj,ZC,aS,Dh],pipes:[gE],styles:[".pad-actions[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-evenly;padding:10px 0}.pad-actions-boxed[_ngcontent-%COMP%]{border-radius:60px;height:60px;background:#f1f4f4;padding:0 20px}.pad-actions-boxed[_ngcontent-%COMP%], .pad-draw[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center}.pad-draw[_ngcontent-%COMP%]{background:#fff}.pad[_ngcontent-%COMP%]   .radio[_ngcontent-%COMP%]{-webkit-appearance:none;-moz-appearance:none;appearance:none;position:relative;margin:5px;width:30px;height:30px;border-radius:30px;border-width:none;border-style:solid;outline:none;cursor:pointer;transition:all .2s}.pad[_ngcontent-%COMP%]   .radio[_ngcontent-%COMP%]:checked, .pad[_ngcontent-%COMP%]   .radio[_ngcontent-%COMP%]:hover{transform:scale(1.5)}.padContent[_ngcontent-%COMP%]{border:1px dashed hsla(0,0%,59.2%,.55)}.footer-buttons[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(2,1fr);padding:10px}.footer-buttons[_ngcontent-%COMP%]   ion-button[_ngcontent-%COMP%]{margin:auto;width:150px}"]}),Qj),Kj=["slides"];function Jj(e,t){if(1&e&&(ss(0,"small",9),Qs(1),Du(2,"translate"),ls()),2&e){var n=ks();xo(1),Js("",n.currentWorflow.signaturePositions.length," ",Ou(2,2,"lang.prePositionings"),"")}}function $j(e,t){1&e&&(ss(0,"ion-label",36),Qs(1),Du(2,"translate"),ls()),2&e&&(xo(1),Xs(Ou(2,1,"lang.substitutedSignature")))}function eU(e,t){if(1&e){var n=fs();ss(0,"ion-card",27),ss(1,"img",28),ms("click",function(){nn(n);var e=t.$implicit;return ks(4).selectSignature(e)}),ls(),ss(2,"ion-toolbar",29),ns(3,$j,3,3,"ion-label",30),ss(4,"ion-buttons",31),ss(5,"ion-button",32),ms("click",function(){nn(n);var e=t.$implicit;return ks(4).selectSignature(e)}),Du(6,"translate"),us(7,"ion-icon",33),ls(),ls(),ss(8,"ion-buttons",3),ss(9,"ion-button",34),ms("click",function(){nn(n);var e=t.$implicit;return ks(4).removeSignature(e)}),Du(10,"translate"),us(11,"ion-icon",35),ls(),ls(),ls(),ls()}if(2&e){var i=t.$implicit,r=t.index,o=ks(4);xo(1),Ps("id","imgSign_",r,""),os("src",o.sanitization.bypassSecurityTrustUrl("data:image/png;base64,"+i.encodedSignature),Cr),xo(2),os("ngIf",i.substituted),xo(2),os("title",Ou(6,5,"lang.selectSignature")),xo(4),os("title",Ou(10,7,"lang.removeSignature"))}}function tU(e,t){if(1&e&&(ss(0,"ion-slide",24),ss(1,"div",25),ns(2,eU,12,9,"ion-card",26),ls(),ls()),2&e){var n=t.$implicit;xo(2),os("ngForOf",n)}}function nU(e,t){if(1&e&&(ss(0,"ion-slides",21,22),ns(2,tU,3,1,"ion-slide",23),ls()),2&e){var n=ks(2);os("options",n.slideOpts),xo(2),os("ngForOf",n.signaturesList)}}function iU(e,t){if(1&e){var n=fs();cs(0),ns(1,nU,3,2,"ion-slides",10),ss(2,"ion-fab",11),ss(3,"ion-fab-button",12),us(4,"ion-icon",13),ls(),ss(5,"ion-fab-list",14),ss(6,"ion-fab-button",15),ms("click",function(){return nn(n),ks().addNewDate()}),Du(7,"translate"),us(8,"ion-icon",16),ls(),ss(9,"ion-fab-button",15),ms("click",function(){return nn(n),is(16).click()}),Du(10,"translate"),us(11,"ion-icon",17),ls(),ss(12,"ion-fab-button",15),ms("click",function(){return nn(n),ks().openSignatures()}),Du(13,"translate"),us(14,"ion-icon",18),ls(),ls(),ls(),ss(15,"input",19,20),ms("change",function(e){return nn(n),ks().handleFileInput(e.target.files)}),ls(),ds()}if(2&e){var i=ks();xo(1),os("ngIf",!i.loading),xo(5),os("title",Ou(7,4,"lang.addNewDate")),xo(3),os("title",Ou(10,6,"lang.importNewSignature")),xo(3),os("title",Ou(13,8,"lang.createNewSignature"))}}function rU(e,t){1&e&&(ss(0,"div",37),us(1,"ion-icon",38),ss(2,"div"),Qs(3),Du(4,"translate"),ls(),ls()),2&e&&(xo(3),Ks(" ",Ou(4,1,"lang.certifiedDocumentMsg")," "))}var oU,aU=((oU=function(){function e(t,n,i,r,o,a,s,l,u,c){A(this,e),this.translate=t,this.http=n,this.signaturesService=i,this.bottomSheetRef=r,this.sanitization=o,this.notificationService=a,this.authService=s,this.localStorage=l,this.renderer=u,this.modalController=c,this.loading=!0,this.scrolling=!1,this.signPosMode=!1,this.datePosMode=!1,this.title="lang.signatures",this.slideOpts={initialSlide:0,speed:400,direction:"vertical"},this.signaturesList=[],this.inAllPage=!1,this.count=0}return m(e,[{key:"dismissModal",value:function(){this.modalController.dismiss("cancel")}},{key:"scroll",value:function(e){var t=this;this.scrolling||(this.scrolling=!0,e.deltaY<0?this.slides.slidePrev():this.slides.slideNext(),setTimeout(function(){t.scrolling=!1},500))}},{key:"ngOnInit",value:function(){this.initSignatures(),this.signPosMode=this.currentWorflow.signaturePositions.length>0&&this.emptySigns(),this.getImgDimensions(this.content)}},{key:"initSignatures",value:function(){var e=this;this.signaturesList=[];var t=[],n=0;this.signaturesService.signaturesListSubstituted.concat(this.signaturesService.signaturesList).forEach(function(i){6===n?(e.signaturesList.push(t),t=[i],n=0):(t.push(i),n++)}),t.length>0&&this.signaturesList.push(t)}},{key:"ionViewDidEnter",value:function(){this.loading=!1}},{key:"openSignatures",value:function(){return e=this,n=regeneratorRuntime.mark(function e(){var t;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.modalController.create({component:Xj,cssClass:"my-custom-class"});case 2:return t=e.sent,e.next=5,t.present();case 5:return e.next=7,t.onWillDismiss();case 7:"reload"===e.sent.data&&this.initSignatures();case 10:case"end":return e.stop()}},e,this)}),new((t=void 0)||(t=Promise))(function(i,r){function o(e){try{s(n.next(e))}catch(t){r(t)}}function a(e){try{s(n.throw(e))}catch(t){r(t)}}function s(e){var n;e.done?i(e.value):(n=e.value,n instanceof t?n:new t(function(e){e(n)})).then(o,a)}s((n=n.apply(e,[])).next())});var e,t,n}},{key:"mustPrePosSignature",value:function(e,t){return!(!this.signPosMode||0===e.length&&0===t.length)}},{key:"selectSignature",value:function(e){var t,n=this,i=document.getElementById("imgSign_"+this.signaturesList[0].indexOf(e).toString());this.signatureWidth=i.naturalWidth,this.signatureScaling=void 0!==this.authService.user.preferences.signatureScaling&&this.authService.user.preferences.signatureScaling,t=!1===this.signatureScaling?this.signatureWidth>=this.documentWidth?100:100*this.signatureWidth/this.documentWidth:this.signatureScaling,e.width=t;var r=this.currentWorflow.signaturePositions.filter(function(e){return e.page===n.signaturesService.currentPage}),o=this.currentWorflow.signaturePositions.filter(function(e){return e.page!==n.signaturesService.currentPage});this.mustPrePosSignature(r,o)?(r.length>0&&(e.positionX=r[0].positionX,e.positionY=r[0].positionY,this.storeSignature(e,this.signaturesService.currentPage)),o.length>0&&o.forEach(function(t){e.positionX=t.positionX,e.positionY=t.positionY,n.storeSignature(e,t.page)}),1===this.currentWorflow.signaturePositions.length?this.notificationService.success("lang.signatureInDocAddedAlt"):this.translate.get("lang.signaturesInDocAdded",{0:this.currentWorflow.signaturePositions.map(function(e){return e.page})}).subscribe(function(e){n.notificationService.success(e)}),this.modalController.dismiss(0===r.length&&o.length>0?{redirectPage:o[0].page}:"success")):(e.positionX=60,e.positionY=80,this.storeSignature(e,this.signaturesService.currentPage),this.notificationService.success("lang.signatureInDocAdded"),this.modalController.dismiss("success"))}},{key:"addNewDate",value:function(){var e=this,t=this.currentWorflow.datePositions.filter(function(t){return t.page===e.signaturesService.currentPage}),n=this.currentWorflow.datePositions.filter(function(t){return t.page!==e.signaturesService.currentPage});if(0===t.length&&0===n.length){var i={width:13e3/this.signaturesService.workingAreaWidth,height:3e3/this.signaturesService.workingAreaHeight,positionX:0,positionY:0,font:"Arial",size:15,color:"#666",format:"d MMMM y"};i.positionX=60,i.positionY=80,this.storeDate(i,this.signaturesService.currentPage),this.notificationService.success("lang.dateInDocAdded"),this.modalController.dismiss("success")}else t.length>0&&this.storeDate({width:t[0].width,height:t[0].height,positionX:t[0].positionX,positionY:t[0].positionY,font:"Arial",size:15,color:"#666",format:"d MMMM y"},this.signaturesService.currentPage),n.forEach(function(t){e.storeDate({width:t.width,height:t.height,positionX:t.positionX,positionY:t.positionY,font:"Arial",size:15,color:"#666",format:"d MMMM y"},t.page)}),1===this.currentWorflow.signaturePositions.length?this.notificationService.success("lang.dateInDocAddedAlt"):this.translate.get("lang.dateInDocAdded",{0:this.currentWorflow.signaturePositions.map(function(e){return e.page})}).subscribe(function(t){e.notificationService.success(t)}),this.modalController.dismiss(0===t.length&&n.length>0?{redirectPage:n[0].page}:"success")}},{key:"storeSignature",value:function(e,t){this.signaturesService.signaturesContent[t]||(this.signaturesService.signaturesContent[t]=[]),this.signaturesService.signaturesContent[t].push(JSON.parse(JSON.stringify(e))),this.localStorage.save(this.signaturesService.mainDocumentId.toString(),JSON.stringify({date:this.signaturesService.datesContent,sign:this.signaturesService.signaturesContent,note:this.signaturesService.notesContent}))}},{key:"storeDate",value:function(e,t){this.signaturesService.datesContent[t]||(this.signaturesService.datesContent[t]=[]),this.signaturesService.datesContent[t].push(JSON.parse(JSON.stringify(e))),this.localStorage.save(this.signaturesService.mainDocumentId.toString(),JSON.stringify({date:this.signaturesService.datesContent,sign:this.signaturesService.signaturesContent,note:this.signaturesService.notesContent}))}},{key:"removeSignature",value:function(e){var t=this;confirm(this.translate.instant("lang.wantDeleteSignature"))&&this.http.delete("../rest/users/"+this.authService.user.id+"/signatures/"+e.id).subscribe(function(){t.signaturesService.signaturesList=t.signaturesService.signaturesList.filter(function(t){return t.id!==e.id}),t.notificationService.success("lang.signatureDeleted"),t.initSignatures()},function(e){t.notificationService.error(e.error.errors)})}},{key:"toggleAllPage",value:function(){this.inAllPage=!this.inAllPage}},{key:"tapEvent",value:function(e,t,n){var i=this;this.count++,setTimeout(function(){1===i.count?i.count=0:i.count>1&&(i.count=0,i.selectSignature(e))},250)}},{key:"handleFileInput",value:function(e){var t=this,n=e.item(0);if(n.size<=1e6)if(-1!==["image/png","image/jpg","image/jpeg","image/gif"].indexOf(n.type)){var i=new FileReader;i.onloadend=function(e){var r=i.result.toString().replace("data:"+n.type+";base64,","");t.localStorage.save("signature",JSON.stringify(r));var o={id:0,encodedSignature:r,format:"png"};t.http.post("../rest/users/"+t.authService.user.id+"/signatures",o).subscribe(function(e){o.id=e.signatureId,t.signaturesService.signaturesList.unshift({id:o.id,encodedSignature:o.encodedSignature}),t.initSignatures(),t.notificationService.success("lang.signatureRegistered")})},i.readAsDataURL(n)}else this.notificationService.error("lang.notAnImage");else this.notificationService.error("lang.maxFileSizeReached")}},{key:"emptySigns",value:function(){for(var e=!0,t=1;t<=this.signaturesService.totalPage;t++)if(this.signaturesService.signaturesContent[t]&&this.signaturesService.signaturesContent[t].length>0){e=!1;break}return e}},{key:"getImgDimensions",value:function(e){var t=atob(e.slice(0,50)).slice(16,24),n=Uint8Array.from(t,function(e){return e.charCodeAt(0)}),i=new DataView(n.buffer);this.documentWidth=i.getInt32(0)}}]),e}()).\u0275fac=function(e){return new(e||oU)(rs(pE),rs(lb),rs(PE),rs(jF),rs(Wf),rs(yE),rs(DE),rs(EE),rs(El),rs(cP))},oU.\u0275cmp=ft({type:oU,selectors:[["app-signatures"]],viewQuery:function(e,t){var n;1&e&&Qu(Kj,1),2&e&&Zu(n=Ku())&&(t.slides=n.first)},inputs:{currentWorflow:"currentWorflow",content:"content"},decls:13,vars:7,consts:[[3,"translucent"],["color","primary"],["class","secondary",4,"ngIf"],["slot","end"],[3,"click"],["slot","icon-only","name","close-outline"],[3,"wheel"],[4,"ngIf","ngIfElse"],["elseCertified",""],[1,"secondary"],["pager","true",3,"options",4,"ngIf"],["horizontal","start","vertical","bottom","slot","fixed"],["color","primary","close-icon","chevron-down"],["name","chevron-up-outline"],["side","top"],["color","light",3,"title","click"],["name","calendar-outline"],["name","download-outline"],["name","add-outline"],["type","file",2,"display","none",3,"change"],["uploadFile",""],["pager","true",3,"options"],["slides",""],["style","display: grid;grid-template-columns: repeat(2, 1fr);",4,"ngFor","ngForOf"],[2,"display","grid","grid-template-columns","repeat(2, 1fr)"],[2,"display","contents"],["class","sign-image",4,"ngFor","ngForOf"],[1,"sign-image"],[2,"width","190px","cursor","pointer",3,"id","src","click"],[2,"position","absolute","top","0px"],["color","secondary",4,"ngIf"],["slot","start"],["size","small","color","primary",3,"title","click"],["slot","icon-only","name","arrow-up-circle-outline"],["size","small","color","danger",3,"title","click"],["slot","icon-only","name","trash-outline"],["color","secondary"],[1,"certified-msg"],["slot","start","name","ribbon-outline","color","success",2,"font-size","70px"]],template:function(e,t){if(1&e&&(ss(0,"ion-header",0),ss(1,"ion-toolbar",1),ss(2,"ion-title"),Qs(3),Du(4,"translate"),ns(5,Jj,3,4,"small",2),ls(),ss(6,"ion-buttons",3),ss(7,"ion-button",4),ms("click",function(){return t.dismissModal()}),us(8,"ion-icon",5),ls(),ls(),ls(),ls(),ss(9,"ion-content",6),ms("wheel",function(e){return t.scroll(e)}),ns(10,iU,17,10,"ng-container",7),ns(11,rU,5,3,"ng-template",null,8,tc),ls()),2&e){var n=is(12);os("translucent",!0),xo(3),Ks("",Ou(4,5,"lang.signatures")," "),xo(2),os("ngIf",t.signPosMode),xo(5),os("ngIf",!t.signaturesService.stampLock)("ngIfElse",n)}},directives:[XC,DS,PS,mh,LC,RC,KC,UC,GC,qC,YC,CS,gh,AS,FC,aS],pipes:[gE],styles:[".secondary[_ngcontent-%COMP%]{color:var(--ion-color-secondary)}.signatures[_ngcontent-%COMP%]{flex-direction:column}.signatures[_ngcontent-%COMP%], .signatures-top[_ngcontent-%COMP%]{display:flex;align-items:center}.signatures-top[_ngcontent-%COMP%]{height:105px;width:100%;justify-content:space-around;border-bottom:1px solid #e9e8e8}.signatures[_ngcontent-%COMP%]   .list[_ngcontent-%COMP%]{width:100%;padding-top:40px;overflow:auto;display:flex;justify-content:center;flex-wrap:wrap;scroll-behavior:smooth;-webkit-overflow-scrolling:touch}.signatures[_ngcontent-%COMP%]   .list-item[_ngcontent-%COMP%]{transition:all .3s ease-in-out;height:190px;width:190px;margin:8px;border:1px solid hsla(0,0%,59.2%,.55);border-radius:5px;background-color:#fff;box-shadow:0 2px 4px 0 rgba(0,0,0,.04);display:flex;justify-content:center;align-items:center}.signatures[_ngcontent-%COMP%]   .list-item[_ngcontent-%COMP%]   .substituteInfo[_ngcontent-%COMP%]{color:#f99830;font-size:10px;position:absolute;top:0;left:10px}.signatures[_ngcontent-%COMP%]   .list-item.create[_ngcontent-%COMP%]{background-color:#f1f4f4;flex-direction:column;text-align:center}.signatures[_ngcontent-%COMP%]   .list-item[_ngcontent-%COMP%]:active, .signatures[_ngcontent-%COMP%]   .list-item[_ngcontent-%COMP%]:hover{transform:translateY(-20px);cursor:pointer}.sign_icon[_ngcontent-%COMP%]{position:absolute;top:5px}.sign_icon[_ngcontent-%COMP%]   .mat-icon[_ngcontent-%COMP%]{color:#fff;height:auto}.add_icon[_ngcontent-%COMP%]{right:5px}.remove_icon[_ngcontent-%COMP%]{left:5px}.sign-image[_ngcontent-%COMP%]{height:95%}.certified-msg[_ngcontent-%COMP%], .sign-image[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center}.certified-msg[_ngcontent-%COMP%]{height:100%;flex-direction:column;padding:40px}.certified-msg[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]{font-size:30px;color:var(--ion-color-medium)}"]}),oU),sU=["mainContent"],lU=["canvas"],uU=["img"],cU=["nav"],dU=function(e,t){return{"border-color":e,"background-color":t}};function hU(e,t){if(1&e&&(cs(0,28),us(1,"input",29),ds()),2&e){var n=t.$implicit,i=ks(2);xo(1),os("checked",0===i.idx)("value",n.id)("ngStyle",Cu(3,dU,n.id,n.id))}}function fU(e,t){if(1&e){var n=fs();ss(0,"ion-content",null,8),ss(2,"div",9),ns(3,hU,2,6,"ng-container",10),us(4,"hr"),ss(5,"i",11),ms("click",function(){return nn(n),ks().undo()}),ls(),ls(),ss(6,"ion-fab",12),ss(7,"ion-fab-button",13),us(8,"ion-icon",14),ls(),ss(9,"ion-fab-list",15),ss(10,"ion-fab-button",16),ms("click",function(e){nn(n);var t=ks();return e.stopPropagation(),t.editMode=!t.editMode}),Du(11,"translate"),Du(12,"translate"),us(13,"ion-icon",17),ls(),ss(14,"ion-fab-button",18),ms("click",function(e){nn(n);var t=ks();return e.stopPropagation(),t.getImageDimensions(!t.originalSize)}),Du(15,"translate"),Du(16,"translate"),us(17,"ion-icon",17),ls(),ls(),ls(),ss(18,"div",19),ss(19,"drag-scroll",20,21),ss(21,"div",22,23),ss(23,"ion-img",24,25),ms("ionImgDidLoad",function(e){return nn(n),ks().imageLoaded(e)}),ls(),us(25,"canvas",26,27),ls(),ls(),ls(),ls()}if(2&e){var i=ks();xo(3),os("ngForOf",i.penColors),xo(7),os("color",i.editMode?"danger":"success")("title",i.editMode?Ou(11,19,"lang.lockEdition"):Ou(12,21,"lang.unlockEdition")),xo(3),os("name",i.editMode?"lock-closed-outline":"lock-open-outline"),xo(1),os("title",i.originalSize?Ou(15,23,"lang.originalSize"):Ou(16,25,"lang.screenSize")),xo(3),os("name",i.originalSize?"scan-outline":"crop-outline"),xo(2),Ls("max-width",i.areaWidth,"px"),xo(2),Ls("width",i.areaWidth,"px")("height",i.areaHeight,"px"),xo(2),Ls("width",i.areaWidth,"px")("height",i.areaHeight,"px"),os("src",i.content),xo(2),Ls("display",i.editMode?"initial":"none")}}var pU,gU,vU,mU=((vU=function(){function e(t,n,i,r,o){A(this,e),this.signaturesService=t,this.notificationService=n,this.authService=i,this.localStorage=r,this.modalController=o,this.triggerEvent=new Fu,this.penColors=[{id:"#000000"},{id:"#1a75ff"},{id:"#FF0000"}],this.areaWidth=0,this.areaHeight=0,this.editMode=!0,this.originalSize=!0,this.loading=!0}return m(e,[{key:"ngOnInit",value:function(){var e=this;setTimeout(function(){e.loading=!1},100)}},{key:"imageLoaded",value:function(e){this.getImageDimensions(!1)}},{key:"getImageDimensions",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.originalSize=t;var n=new Image;n.onload=function(i){e.areaWidth=i.target.naturalWidth,e.areaHeight=i.target.naturalHeight,t||e.getAreaDimension(),e.editMode&&setTimeout(function(){var t,i,r,o=$("#myBounds").offset();t=1===Math.sign(o.top)||e.precentScrollTop<=Math.abs(o.top)?e.precentScrollTop-o.top:-1===Math.sign(o.top)&&e.precentScrollTop<=-Math.sign(o.top)?2*(e.precentScrollTop-o.top):100*(e.precentScrollTop-o.top);var a=e.precentScrollLeft-o.left;i=e.precentScrollLeft-document.documentElement.offsetLeft,r=e.precentScrollTop-document.documentElement.offsetTop,i=i/e.areaWidth*100,r=r/e.areaHeight*100,document.getElementsByClassName("drag-scroll-content")[1].scrollTo(a,t),n.style.transform="translate(-"+i+"%,-"+r+"%) scale(2)",e.initPad()},200)},n.src=this.content}},{key:"getAreaDimension",value:function(){var e=100*this.mainContent.el.offsetWidth/this.areaWidth;this.areaWidth=e*this.areaWidth/100,this.areaHeight=e*this.areaHeight/100}},{key:"dismissModal",value:function(){this.modalController.dismiss("cancel")}},{key:"initPad",value:function(){$("#myCanvas").sign({mode:this.authService.user.preferences.writingMode,lineWidth:this.authService.user.preferences.writingSize,changeColor:$(".radio"),undo:$(".undo"),height:this.areaHeight,width:this.areaWidth,fixHeight:56,fixWidth:0,mobileMode:this.signaturesService.mobileMode}),$("input[value='"+this.authService.user.preferences.writingColor+"']").trigger("click")}},{key:"validateAnnotation",value:function(){this.signaturesService.notesContent[this.signaturesService.currentPage]||(this.signaturesService.notesContent[this.signaturesService.currentPage]=[]),this.signaturesService.notesContent[this.signaturesService.currentPage].push({fullPath:this.canvas.nativeElement.toDataURL("image/png"),positionX:0,positionY:0,height:this.signaturesService.workingAreaHeight,width:this.signaturesService.workingAreaWidth}),this.localStorage.save(this.signaturesService.mainDocumentId.toString(),JSON.stringify({date:this.signaturesService.datesContent,sign:this.signaturesService.signaturesContent,note:this.signaturesService.notesContent})),this.modalController.dismiss(""),this.notificationService.success("lang.annotationAdded")}},{key:"undo",value:function(){}}]),e}()).\u0275fac=function(e){return new(e||vU)(rs(PE),rs(yE),rs(DE),rs(EE),rs(cP))},vU.\u0275cmp=ft({type:vU,selectors:[["app-document-note-pad"]],viewQuery:function(e,t){var n;1&e&&(Qu(sU,1),Qu(lU,1),Qu(uU,1),Qu(cU,1,kM)),2&e&&(Zu(n=Ku())&&(t.mainContent=n.first),Zu(n=Ku())&&(t.canvas=n.first),Zu(n=Ku())&&(t.img=n.first),Zu(n=Ku())&&(t.ds=n.first))},inputs:{content:"content",precentScrollTop:"precentScrollTop",precentScrollLeft:"precentScrollLeft"},outputs:{triggerEvent:"triggerEvent"},decls:16,vars:11,consts:[[3,"translucent"],["color","primary"],[4,"ngIf"],[1,"ion-no-border","footer-buttons"],[2,"text-align","center"],["color","danger","shape","round","fill","outline","size","large",3,"click"],[2,"font-size","13px"],["color","success","shape","round","fill","outline","size","large",2,"margin-left","50px",3,"click"],["mainContent",""],[1,"tool-content","tool-content-right"],["let","","idx","index",4,"ngFor","ngForOf"],[1,"fa","fa-undo","fa-2x","undo",3,"click"],["vertical","top","horizontal","start","slot","fixed","activated",""],["close-icon","chevron-up"],["name","chevron-down"],["side","bottom"],[3,"color","title","click"],[3,"name"],[3,"title","click"],[2,"display","contents"],[2,"overflow","auto","height","100%","width","100%","margin","auto"],["nav",""],[2,"position","relative"],["myBounds",""],[1,"img-content",3,"src","ionImgDidLoad"],["img",""],["id","myCanvas",2,"position","absolute","top","0px","left","0px"],["canvas",""],["let","","idx","index"],["type","radio","name","colors",1,"radio",3,"checked","value","ngStyle"]],template:function(e,t){1&e&&(ss(0,"ion-header",0),ss(1,"ion-toolbar",1),ss(2,"ion-title"),Qs(3),Du(4,"translate"),ls(),ls(),ls(),ns(5,fU,27,27,"ion-content",2),ss(6,"ion-footer",3),ss(7,"div",4),ss(8,"ion-button",5),ms("click",function(){return t.dismissModal()}),ss(9,"ion-label",6),Qs(10),Du(11,"translate"),ls(),ls(),ss(12,"ion-button",7),ms("click",function(){return t.validateAnnotation()}),ss(13,"ion-label",6),Qs(14),Du(15,"translate"),ls(),ls(),ls(),ls()),2&e&&(os("translucent",!0),xo(3),Xs(Ou(4,5,"lang.annotateDocument")),xo(2),os("ngIf",!t.loading),xo(5),Xs(Ou(11,7,"lang.cancel")),xo(4),Xs(Ou(15,9,"lang.save")))},directives:[XC,DS,PS,mh,ZC,RC,aS,UC,gh,GC,qC,KC,YC,kM,JC,Dh],pipes:[gE],styles:[".tool-content[_ngcontent-%COMP%]{position:fixed}.fullscreen[_ngcontent-%COMP%]{--width:100%;--height:100%}.tool-content[_ngcontent-%COMP%]{z-index:1;display:flex;position:absolute;background:hsla(0,0%,50.2%,.30196078431372547);border-radius:20px;top:170px;transform:translateY(-50%) rotate(-90deg);padding:10px}.tool-content-left[_ngcontent-%COMP%]{left:-40px}.tool-content-right[_ngcontent-%COMP%]{right:-40px}.undo[_ngcontent-%COMP%]{cursor:pointer;transform:rotate(90deg);transition:all .2s}.undo[_ngcontent-%COMP%]:active{transform:rotate(90deg) scale(1.5)}.radio[_ngcontent-%COMP%]{-webkit-appearance:none;-moz-appearance:none;appearance:none;position:relative;margin:5px;width:30px;height:30px;border-radius:30px;border-width:none;border-style:solid;outline:none;cursor:pointer;transition:all .2s}.radio[_ngcontent-%COMP%]:checked, .radio[_ngcontent-%COMP%]:hover{transform:scale(1.5)}.footer-buttons[_ngcontent-%COMP%]{display:grid;padding:10px}.footer-buttons[_ngcontent-%COMP%]   ion-button[_ngcontent-%COMP%]{margin:auto;width:150px}"]}),vU),yU=((gU=function(){function e(t,n,i){A(this,e),this.http=t,this.signaturesService=n,this.router=i,this.currentIndex=0,this.offset=0,this.limit=10}return m(e,[{key:"resfreshDocuments",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.http.get("../rest/documents?limit="+(this.limit+this.offset)+"&offset=0&mode="+this.signaturesService.mode).subscribe(function(n){e.signaturesService.documentsList=n.documents,e.signaturesService.documentsListCount=n.count,t&&e.router.navigate(void 0!==e.signaturesService.documentsList[e.currentIndex]?["/documents/"+e.signaturesService.documentsList[e.currentIndex].id]:e.signaturesService.documentsList.length>0?["/documents/"+e.signaturesService.documentsList[0].id]:["/home"])})}}]),e}()).\u0275fac=function(e){return new(e||gU)(Ri(lb),Ri(PE),Ri(jk))},gU.\u0275prov=Re({token:gU,factory:gU.\u0275fac}),gU),bU=((pU=function(){function e(t,n,i,r){A(this,e),this.signaturesService=t,this.filtersService=n,this.authService=i,this.bottomSheetRef=r,this.date=new Date}return m(e,[{key:"ngOnInit",value:function(){var e=this;setTimeout(function(){e.signaturesService.currentToobal="mainDocumentDetail",e.filtersService.resfreshDocuments(!0),e.bottomSheetRef.dismiss()},2e3)}}]),e}()).\u0275fac=function(e){return new(e||pU)(rs(PE),rs(yU),rs(DE),rs(NF))},pU.\u0275cmp=ft({type:pU,selectors:[["ng-component"]],decls:14,vars:19,consts:[[1,"red",2,"text-align","center"],[1,"fa","fa-thumbs-down","fa-4x"],[2,"font-weight","bold","font-size","30px"],[2,"font-weight","bold","font-size","15px"]],template:function(e,t){1&e&&(ss(0,"div",0),ss(1,"h1"),us(2,"i",1),ls(),ss(3,"p"),Qs(4),Du(5,"translate"),ls(),ss(6,"p",2),Qs(7),ls(),ss(8,"p",3),Qs(9),Du(10,"translate"),Du(11,"date"),Du(12,"translate"),Du(13,"date"),ls(),ls()),2&e&&(xo(4),Xs(Ou(5,7,"lang.documentRefusedAs")),xo(3),Js("",t.authService.user.firstname," ",t.authService.user.lastname,""),xo(2),el("",Ou(10,9,"lang.onRange")," ",Mu(11,11,t.date,"dd/MM/yyyy")," ",Ou(12,14,"lang.atRange")," ",Mu(13,16,t.date,"HH:mm"),""))},pipes:[gE,Wh],styles:[""]}),pU),wU=["slides"];function _U(e,t){1&e&&(ss(0,"span",16),Qs(1),Du(2,"translate"),ls()),2&e&&(xo(1),Ks("(",Ou(2,1,"lang.mainDocument"),")"))}function kU(e,t){1&e&&(ss(0,"span",16),Qs(1),Du(2,"translate"),ls()),2&e&&(xo(1),Ks("(",Ou(2,1,"lang.attachment"),")"))}var xU=function(e){return{background:e}};function AU(e,t){if(1&e){var n=fs();ss(0,"ion-slide"),ss(1,"div",12),ss(2,"div",13),ms("click",function(){nn(n);var e=t.index;return ks(2).loadDoc(e)}),ls(),ss(3,"div",14),Qs(4),ns(5,_U,3,3,"span",15),ns(6,kU,3,3,"span",15),ls(),ls(),ls()}if(2&e){var i=t.$implicit,r=t.index,o=ks(2);xo(2),Fs("current",r==o.currentDocId),os("ngStyle",Au(6,xU,"url("+i.imgContent[1]+") no-repeat scroll center center / contain")),xo(2),Ks(" ",i.title,"\xa0"),xo(1),os("ngIf",0==r),xo(1),os("ngIf",r>0)}}function CU(e,t){if(1&e&&(ss(0,"ion-slides",9,10),ns(2,AU,7,8,"ion-slide",11),ls()),2&e){var n=ks();os("options",n.slideOpts),xo(2),os("ngForOf",n.docList)}}var SU,PU,EU,DU,OU,MU,TU=((PU=function(){function e(t,n,i,r){A(this,e),this.http=t,this.signaturesService=n,this.sanitizer=i,this.menu=r,this.triggerEvent=new Fu,this.loading=!0,this.scrolling=!1,this.slideOpts={initialSlide:0,speed:400,direction:"vertical"}}return m(e,[{key:"ngOnInit",value:function(){var e=this;this.docList.forEach(function(t,n){void 0===t.imgContent[1]&&n>0&&e.http.get("../rest/attachments/"+t.id+"/thumbnails/1").subscribe(function(e){t.imgContent[1]="data:image/png;base64,"+e.fileContent})})}},{key:"ngAfterViewInit",value:function(){this.loading=!1}},{key:"loadDoc",value:function(e){this.triggerEvent.emit(e),this.menu.close("right-menu")}},{key:"scroll",value:function(e){var t=this;this.scrolling||(this.scrolling=!0,e.deltaY<0?this.slides.slidePrev():this.slides.slideNext(),setTimeout(function(){t.scrolling=!1},500))}}]),e}()).\u0275fac=function(e){return new(e||PU)(rs(lb),rs(PE),rs(Wf),rs(uP))},PU.\u0275cmp=ft({type:PU,selectors:[["app-document-list"]],viewQuery:function(e,t){var n;1&e&&Qu(wU,1),2&e&&Zu(n=Ku())&&(t.slides=n.first)},inputs:{docList:"docList",currentDocId:"currentDocId"},outputs:{triggerEvent:"triggerEvent"},decls:12,vars:6,consts:[[3,"translucent"],["color","primary"],["slot","start"],["disabled",""],["slot","icon-only","name","document-outline"],[1,"ion-text-center"],[1,"secondary"],[3,"wheel"],["pager","true",3,"options",4,"ngIf"],["pager","true",3,"options"],["slides",""],[4,"ngFor","ngForOf"],[2,"height","90%","width","100%","position","relative","padding","10px"],[2,"cursor","pointer","height","100%","width","100%","border-radius","4px","transition","box-shadow 280ms cubic-bezier(.4,0,.2,1)","border","solid 1px #E0E0E0",3,"ngStyle","click"],[1,"pjToolsContent"],["class","red",4,"ngIf"],[1,"red"]],template:function(e,t){1&e&&(ss(0,"ion-header",0),ss(1,"ion-toolbar",1),ss(2,"ion-buttons",2),ss(3,"ion-button",3),us(4,"ion-icon",4),ls(),ls(),ss(5,"ion-title",5),ss(6,"b",6),Qs(7),ls(),Qs(8),Du(9,"translate"),ls(),ls(),ls(),ss(10,"ion-content",7),ms("wheel",function(e){return t.scroll(e)}),ns(11,CU,3,2,"ion-slides",8),ls()),2&e&&(os("translucent",!0),xo(7),Xs(t.docList.length),xo(1),Ks("\xa0",Ou(9,4,"lang.attachedElements"),""),xo(3),os("ngIf",!t.loading))},directives:[XC,DS,LC,RC,KC,PS,UC,mh,CS,gh,AS,Dh],pipes:[gE],styles:[".mat-list-item[_ngcontent-%COMP%]{height:auto!important;text-align:center}.mat-card[_ngcontent-%COMP%]{box-shadow:none;border:1px solid #e0e0e0}.mat-icon[_ngcontent-%COMP%]{height:auto}.pjToolsContent[_ngcontent-%COMP%]{position:absolute;border:1px solid #e0e0e0;border-bottom-left-radius:5px;background:#fff;padding:10px;font-weight:600;color:#135f7f;font-size:14px;top:10px}.current[_ngcontent-%COMP%]{box-shadow:0 0 20px 0 #656565}.panel-header[_ngcontent-%COMP%]{box-shadow:0 0 10px 0 #656565;color:#fff;background:#135f7f;height:65px;justify-content:center;font-size:20px;align-items:center}.panel-content[_ngcontent-%COMP%], .panel-header[_ngcontent-%COMP%]{display:flex;position:relative}.panel-content[_ngcontent-%COMP%]{flex-direction:column;height:100%;overflow:hidden}img[_ngcontent-%COMP%]{pointer-events:none}.secondary[_ngcontent-%COMP%]{color:var(--ion-color-secondary)}"]}),PU),IU=((SU=function(){function e(t,n){A(this,e),this.translate=t,this.latinisePipe=n}return m(e,[{key:"empty",value:function(e){return null==e||!1===e||(Array.isArray(e)?!(e.length>0):""===String(e))}},{key:"isDate",value:function(e){return e instanceof Date&&!isNaN(e.valueOf())}},{key:"formatFrenchDateToTechnicalDate",value:function(e){if(this.empty(e))return e;var t=e.split("-");return(t=t.concat(t[t.length-1].split(" "))).splice(2,1),this.empty(t[3])&&(t[3]="00:00:00"),"".concat(t[2],"-").concat(t[1],"-").concat(t[0]," ").concat(t[3])}},{key:"formatFrenchDateToObjectDate",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"-";if(this.empty(e))return e;var n=e.split(t);return(n=n.concat(n[n.length-1].split(" "))).splice(2,1),this.empty(n[3])&&(n[3]="00:00:00"),new Date("".concat(n[2],"-").concat(n[1],"-").concat(n[0]," ").concat(n[3]))}},{key:"formatDateObjectToDateString",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"dd-mm-yyyy";if(null!==e){var i=[];n.split("-").forEach(function(t){if("dd"===t){var n=e.getDate();n=("00"+n).slice(-2),i.push(n)}else if("mm"===t){var r=e.getMonth()+1;r=("00"+r).slice(-2),i.push(r)}else if("yyyy"===t){var o=e.getFullYear();i.push(o)}});var r="";return t&&(r=" 23:59:59"),"".concat(i.join("-")).concat(r)}return e}},{key:"formatSerializedDateToDateString",value:function(e){return this.formatDateObjectToDateString(new Date(e))}},{key:"listSortingDataAccessor",value:function(e,t){return"string"==typeof e[t]?e[t].toLowerCase():e[t]}},{key:"filterUnSensitive",value:function(e,t,n){var i=this,r=!1;return t=this.latinisePipe.transform(t),n.forEach(function(n){var o=e[n];"string"!=typeof e[n]&&(o=void 0===o?"":JSON.stringify(o)),r=r||i.latinisePipe.transform(o.toLowerCase()).includes(t)}),r}},{key:"formatBytes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;if("number"==typeof e){if(0===e)return"0 Octet";var n=1024,i=t<0?0:t,r=["Octets","KO","MO","GO","TO","PO","EO","ZO","YO"],o=Math.floor(Math.log(e)/Math.log(n));return parseFloat((e/Math.pow(n,o)).toFixed(i))+" "+r[o]}return e}}]),e}()).\u0275fac=function(e){return new(e||SU)(Ri(pE),Ri(QM))},SU.\u0275prov=Re({token:SU,factory:SU.\u0275fac,providedIn:"root"}),SU),RU=function(e,t,n,i){return new(n||(n=Promise))(function(r,o){function a(e){try{l(i.next(e))}catch(t){o(t)}}function s(e){try{l(i.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((i=i.apply(e,t||[])).next())})},LU=((EU=function(){function e(t,n,i,r,o,a){A(this,e),this.http=t,this.translate=n,this.notificationService=i,this.signaturesService=r,this.functionsService=o,this.alertController=a}return m(e,[{key:"sendDocument",value:function(e,t){var n=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null;return new Promise(function(s){return RU(n,void 0,void 0,regeneratorRuntime.mark(function n(){var l,u=this;return regeneratorRuntime.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(l={},!(this.signaturesService.currentAction>0)){n.next=17;break}if(null!==a){n.next=8;break}return n.next=5,this.getElementsFromDoc();case 5:n.t0=n.sent,n.next=9;break;case 8:n.t0=a;case 9:l.signatures=n.t0,null!==i&&((l=Object.assign(Object.assign({},l),i)).step="hashCertificate"),null!==t&&(l.note=t),null!==r&&(l.signatureLength=r),this.functionsService.empty(o)||(l.tmpUniqueId=o),this.http.put("../rest/documents/"+e+"/actions/"+this.signaturesService.currentAction,l).pipe(uw(function(e){s(null===i||{hashDocument:e.dataToSign,signatureContentLength:e.signatureContentLength,signatureFieldName:e.signatureFieldName,tmpUniqueId:e.tmpUniqueId})}),Zb(function(e){return u.notificationService.handleErrors(e),s(403===e.status&&null),Ty(!1)})).subscribe(),n.next=18;break;case 17:s(!1);case 18:case"end":return n.stop()}},n,this)}))})}},{key:"getElementsFromDoc",value:function(){return RU(this,void 0,void 0,regeneratorRuntime.mark(function e(){var t=this;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise(function(e){return RU(t,void 0,void 0,regeneratorRuntime.mark(function t(){var n,i,r,o=this;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:n=[],i=regeneratorRuntime.mark(function e(t){var i,r,a;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!o.signaturesService.datesContent[t]){e.next=11;break}i=0;case 2:if(!(i<o.signaturesService.datesContent[t].length)){e.next=11;break}return r=o.signaturesService.datesContent[t][i],e.next=6,o.getSvgContent(i);case 6:a=e.sent,n.push({encodedImage:a.replace("data:image/svg+xml;base64,",""),width:r.width,height:r.height,positionX:r.positionX,positionY:r.positionY,type:"SVG",page:t});case 8:i++,e.next=2;break;case 11:o.signaturesService.signaturesContent[t]&&o.signaturesService.signaturesContent[t].forEach(function(e){n.push({encodedImage:e.encodedSignature,width:e.width,positionX:e.positionX,positionY:e.positionY,type:"PNG",page:t})}),o.signaturesService.notesContent[t]&&o.signaturesService.notesContent[t].forEach(function(e){n.push({encodedImage:e.fullPath.replace("data:image/png;base64,",""),width:e.width,positionX:e.positionX,positionY:e.positionY,type:"PNG",page:t})});case 12:case"end":return e.stop()}},e)}),r=1;case 3:if(!(r<=this.signaturesService.totalPage)){t.next=8;break}return t.delegateYield(i(r),"t0",5);case 5:r++,t.next=3;break;case 8:e(n);case 9:case"end":return t.stop()}},t,this)}))}));case 1:case"end":return e.stop()}},e)}))}},{key:"getSvgContent",value:function(e){return new Promise(function(t){var n=document.getElementById("testSVG_"+e),i=(new XMLSerializer).serializeToString(n),r=new Blob([i],{type:"image/svg+xml"}),o=new FileReader;o.readAsDataURL(r),o.onloadend=function(){t(o.result)}})}},{key:"checkGroupMail",value:function(e,t){var n=this;return new Promise(function(i){return RU(n,void 0,void 0,regeneratorRuntime.mark(function n(){var r=this;return regeneratorRuntime.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:this.functionsService.empty(e.mailingId)?i([this.signaturesService.mainDocumentId]):this.http.get("../rest/documents/".concat(this.signaturesService.mainDocumentId,"/linkedMailing")).pipe(uw(function(e){return RU(r,void 0,void 0,regeneratorRuntime.mark(function n(){var r,o=this;return regeneratorRuntime.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(!(e.documents.length>1)){n.next=8;break}return n.next=3,this.alertController.create({header:this.translate.instant("lang.mailing"),message:this.translate.instant("validate"===t?"lang.makeActionOnDocInMailGroup":"lang.refuseActionDocInMailGroup"),backdropDismiss:!1,buttons:[{text:this.translate.instant("lang.yes"),handler:function(){i(e.documents)}},{role:"cancel",text:this.translate.instant("lang.no"),cssClass:"secondary",handler:function(){i([o.signaturesService.mainDocumentId])}}]});case 3:return r=n.sent,n.next=6,r.present();case 6:n.next=9;break;case 8:i([this.signaturesService.mainDocumentId]);case 9:case"end":return n.stop()}},n,this)}))}),Zb(function(e){return r.notificationService.handleErrors(e),i([]),Ty(!1)})).subscribe();case 1:case"end":return n.stop()}},n,this)}))})}}]),e}()).\u0275fac=function(e){return new(e||EU)(Ri(lb),Ri(pE),Ri(yE),Ri(PE),Ri(IU),Ri(sP))},EU.\u0275prov=Re({token:EU,factory:EU.\u0275fac,providedIn:"root"}),EU),FU=function(e,t,n,i){return new(n||(n=Promise))(function(r,o){function a(e){try{l(i.next(e))}catch(t){o(t)}}function s(e){try{l(i.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((i=i.apply(e,t||[])).next())})},BU=((DU=function(){function e(t,n,i,r,o,a,s,l,u){A(this,e),this.modalController=t,this.http=n,this.translate=i,this.notificationService=r,this.loadingController=o,this.signaturesService=a,this.actionsService=s,this.functionsService=l,this.authService=u,this.filters={expired:!1,keyUsage:[],onlyWithPrivateKey:!0},this.provider=null,this.cert=null,this.certPem=null,this.privateKey=null,this.signatures=[],this.signatureLength=null,this.server=null}return m(e,[{key:"ngOnInit",value:function(){return FU(this,void 0,void 0,regeneratorRuntime.mark(function e(){var t,n=this;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:t=this.authService.signatureRoles.filter(function(e){return e.id===n.signatureMode})[0],this.functionsService.empty(t.issuer)||(this.filters.issuerDNMatch=new RegExp(t.issuer,"i")),this.functionsService.empty(t.subject)||(this.filters.subjectDNMatch=new RegExp(t.subject,"i")),this.functionsService.empty(t.keyUsage)||this.filters.keyUsage.push(t.keyUsage);case 2:case"end":return e.stop()}},e,this)}))}},{key:"certificateChosen",value:function(e){return FU(this,void 0,void 0,regeneratorRuntime.mark(function t(){var n=this;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:this.loadingController.create({message:this.translate.instant("lang.processing"),spinner:"dots"}).then(function(t){return FU(n,void 0,void 0,regeneratorRuntime.mark(function n(){var i,r;return regeneratorRuntime.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return t.present(),n.prev=1,this.server=e.detail.server,this.checkWebsocketSession(),n.next=6,e.detail.server.getCrypto(e.detail.providerId);case 6:return this.provider=n.sent,this.checkWebsocketSession(),n.next=10,this.provider.certStorage.getItem(e.detail.certificateId);case 10:return this.cert=n.sent,this.checkWebsocketSession(),n.next=14,this.provider.certStorage.exportCert("pem",this.cert);case 14:return this.certPem=n.sent,this.checkWebsocketSession(),n.next=18,this.provider.keyStorage.getItem(e.detail.privateKeyId);case 18:this.privateKey=n.sent,n.next=24;break;case 21:return n.prev=21,n.t0=n.catch(1),n.abrupt("return",(this.notificationService.error(n.t0),t.dismiss(),void this.modalController.dismiss(!1)));case 24:this.certificate={certificate:this.certPem},i=!1,r=0;case 27:if(!(r<this.idsToProcess.length)){n.next=37;break}return n.next=30,this.actionsService.getElementsFromDoc();case 30:return this.signatures=n.sent,n.next=33,this.sendAndSign(this.idsToProcess[r]);case 33:i=n.sent;case 34:r++,n.next=27;break;case 37:t.dismiss(),this.modalController.dismiss(i);case 38:case"end":return n.stop()}},n,this,[[1,21]])}))});case 1:case"end":return t.stop()}},t,this)}))}},{key:"checkWebsocketSession",value:function(){return FU(this,void 0,void 0,regeneratorRuntime.mark(function e(){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(this.server.client.state===WebSocket.OPEN){e.next=7;break}return e.next=3,this.server.connect();case 3:return e.next=5,new Promise(function(e){return setTimeout(e,150)});case 5:e.next=0;break;case 7:case"end":return e.stop()}},e,this)}))}},{key:"sendAndSign",value:function(e){return FU(this,void 0,void 0,regeneratorRuntime.mark(function t(){var n,i,r;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:n=!1,i={};case 1:if(n){t.next=21;break}r=!1;case 3:if(!1!==r){t.next=19;break}return t.next=6,this.fusionStampAndGenerateSignature(e,i.tmpUniqueId);case 6:if(null!==(i=t.sent)){t.next=9;break}return t.abrupt("return",!1);case 9:if(!1!==i){t.next=11;break}return t.abrupt("return",!1);case 11:return t.next=13,this.signDocument(e,i.hashDocument,i.signatureContentLength,i.signatureFieldName,i.tmpUniqueId);case 13:if(!0===(r=t.sent)){t.next=16;break}return t.abrupt("return",!1);case 16:this.signatures.shift(),n=0===this.signatures.length;case 17:t.next=3;break;case 19:t.next=1;break;case 21:return t.abrupt("return",n);case 22:case"end":return t.stop()}},t,this)}))}},{key:"fusionStampAndGenerateSignature",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return FU(this,void 0,void 0,regeneratorRuntime.mark(function n(){var i;return regeneratorRuntime.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return i={},n.next=3,this.actionsService.sendDocument(e,null,this.certificate,this.signatureLength,t,this.signatures);case 3:return i=n.sent,n.abrupt("return",i);case 5:case"end":return n.stop()}},n,this)}))}},{key:"signDocument",value:function(e,t,n,i,r){var o=this;return new Promise(function(a){return FU(o,void 0,void 0,regeneratorRuntime.mark(function o(){var s,l,u,c,d,h,f=this;return regeneratorRuntime.wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return s={name:this.privateKey.algorithm.name,hash:"SHA-256"},l=this.fromHex(t),o.prev=1,this.checkWebsocketSession(),o.next=5,this.provider.subtle.sign(s,this.privateKey,l);case 5:u=o.sent,o.next=11;break;case 8:return o.prev=8,o.t0=o.catch(1),o.abrupt("return",(this.notificationService.error(o.t0),a(!1),Ty(!1)));case 11:c={note:this.note},d={signatures:this.signatures,certificate:this.certPem,hashSignature:this.toHex(u),signatureContentLength:n,signatureFieldName:i,tmpUniqueId:r},h=Object.assign(Object.assign({},c),d),this.http.put("../rest/documents/"+e+"/actions/"+this.signaturesService.currentAction,h).pipe(uw(function(){a(!0)}),Zb(function(e){return void 0!==e.error.newSignatureLength?(f.signatureLength=e.error.newSignatureLength,a(!1)):(f.notificationService.handleErrors(e),a("error")),Ty(!1)})).subscribe();case 13:case"end":return o.stop()}},o,this,[[1,8]])}))})}},{key:"cancelSign",value:function(){this.modalController.dismiss(!1)}},{key:"toHex",value:function(e){for(var t=new Uint8Array(e),n=[],i=t.length,r=0;r<i;r++){var o=t[r].toString(16);n.push(1===o.length?"0"+o:o)}return n.join("")}},{key:"fromHex",value:function(e){for(var t=new Uint8Array(e.length/2),n=0;n<e.length;n+=2){var i=e.slice(n,n+2);t[n/2]=parseInt(i,16)}return t.buffer}}]),e}()).\u0275fac=function(e){return new(e||DU)(rs(cP),rs(lb),rs(pE),rs(yE),rs(lP),rs(PE),rs(LU),rs(IU),rs(DE))},DU.\u0275cmp=ft({type:DU,selectors:[["signature-method-modal"]],inputs:{note:"note",signatureMode:"signatureMode",idsToProcess:"idsToProcess"},decls:2,vars:1,consts:[["language","fr","hide-footer","",2,"height","100%","width","100%",3,"filters","continue","cancel"]],template:function(e,t){1&e&&(ss(0,"ion-content"),ss(1,"peculiar-fortify-certificates",0),ms("continue",function(e){return t.certificateChosen(e)})("cancel",function(){return t.cancelSign()}),ls(),ls()),2&e&&(xo(1),os("filters",t.filters))},directives:[UC],styles:[".content[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;padding:30px!important;height:100%;flex-direction:column}.content[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{font-size:130px;color:var(--ion-color-primary)}.success[_ngcontent-%COMP%]{color:var(--ion-color-success)!important}.danger[_ngcontent-%COMP%]{color:var(--ion-color-danger)!important}@-webkit-keyframes bounce{0%,20%,53%,80%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1);transform:translateZ(0)}40%,43%{-webkit-animation-timing-function:cubic-bezier(.755,.05,.855,.06);animation-timing-function:cubic-bezier(.755,.05,.855,.06);transform:translate3d(0,-30px,0)}70%{-webkit-animation-timing-function:cubic-bezier(.755,.05,.855,.06);animation-timing-function:cubic-bezier(.755,.05,.855,.06);transform:translate3d(0,-15px,0)}90%{transform:translate3d(0,-4px,0)}}@keyframes bounce{0%,20%,53%,80%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1);transform:translateZ(0)}40%,43%{-webkit-animation-timing-function:cubic-bezier(.755,.05,.855,.06);animation-timing-function:cubic-bezier(.755,.05,.855,.06);transform:translate3d(0,-30px,0)}70%{-webkit-animation-timing-function:cubic-bezier(.755,.05,.855,.06);animation-timing-function:cubic-bezier(.755,.05,.855,.06);transform:translate3d(0,-15px,0)}90%{transform:translate3d(0,-4px,0)}}.bounce[_ngcontent-%COMP%]{-webkit-animation-duration:2s;animation-duration:2s;-webkit-animation-name:bounce;animation-name:bounce;transform-origin:center bottom;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite}"]}),DU),VU=function(e,t,n,i){return new(n||(n=Promise))(function(r,o){function a(e){try{l(i.next(e))}catch(t){o(t)}}function s(e){try{l(i.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((i=i.apply(e,t||[])).next())})},zU=((MU=function(){function e(t,n,i,r,o,a,s){A(this,e),this.http=t,this.modalController=n,this.actionsService=i,this.loadingController=r,this.translate=o,this.authService=a,this.notificationService=s}return m(e,[{key:"checkAuthenticationAndLaunchAction",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2?arguments[2]:void 0;return VU(this,void 0,void 0,regeneratorRuntime.mark(function i(){return regeneratorRuntime.wrap(function(i){for(;;)switch(i.prev=i.next){case 0:if(!(["rgs_2stars","rgs_2stars_timestamped","inca_card","inca_card_eidas"].indexOf(e.signatureMode)>-1)){i.next=13;break}if(0===this.authService.coreUrl.indexOf("https://")){i.next=7;break}return i.next=4,this.notificationService.error("lang.securedUrlNeeded");case 4:i.t1=null,i.next=10;break;case 7:return i.next=9,this.openRgsAuth(t,e.signatureMode,n);case 9:i.t1=i.sent;case 10:i.t0=i.t1,i.next=16;break;case 13:return i.next=15,this.launchDefaultMode(t,n);case 15:i.t0=i.sent;case 16:return i.abrupt("return",i.t0);case 17:case"end":return i.stop()}},i,this)}))}},{key:"launchDefaultMode",value:function(e,t){return VU(this,void 0,void 0,regeneratorRuntime.mark(function n(){var i=this;return regeneratorRuntime.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",new Promise(function(n){return VU(i,void 0,void 0,regeneratorRuntime.mark(function i(){var r,o,a;return regeneratorRuntime.wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,this.loadingController.create({message:this.translate.instant("lang.loadingValidation"),spinner:"dots"});case 2:(r=i.sent).present(),o=!0,a=0;case 6:if(!(a<t.length)){i.next=13;break}return i.next=9,this.actionsService.sendDocument(t[a],e);case 9:o=i.sent;case 10:a++,i.next=6;break;case 13:r.dismiss(),n(o);case 14:case"end":return i.stop()}},i,this)}))}));case 1:case"end":return n.stop()}},n)}))}},{key:"openRgsAuth",value:function(e,t,n){return VU(this,void 0,void 0,regeneratorRuntime.mark(function i(){var r=this;return regeneratorRuntime.wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return i.abrupt("return",new Promise(function(i){return VU(r,void 0,void 0,regeneratorRuntime.mark(function r(){var o,a,s;return regeneratorRuntime.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,this.modalController.create({component:BU,componentProps:{note:e,signatureMode:t,idsToProcess:n}});case 2:return o=r.sent,r.next=5,o.present();case 5:return r.next=7,o.onWillDismiss();case 7:a=r.sent,s=a.data,i(s);case 10:case"end":return r.stop()}},r,this)}))}));case 1:case"end":return i.stop()}},i)}))}}]),e}()).\u0275fac=function(e){return new(e||MU)(Ri(lb),Ri(cP),Ri(LU),Ri(lP),Ri(pE),Ri(DE),Ri(yE))},MU.\u0275prov=Re({token:MU,factory:MU.\u0275fac,providedIn:"root"}),MU),NU=((OU=function(){function e(t,n,i,r){A(this,e),this.signaturesService=t,this.filtersService=n,this.authService=i,this.bottomSheetRef=r,this.date=new Date}return m(e,[{key:"ngOnInit",value:function(){var e=this;setTimeout(function(){e.signaturesService.currentToobal="mainDocumentDetail",e.filtersService.resfreshDocuments(!0),e.bottomSheetRef.dismiss()},2e3)}}]),e}()).\u0275fac=function(e){return new(e||OU)(rs(PE),rs(yU),rs(DE),rs(NF))},OU.\u0275cmp=ft({type:OU,selectors:[["ng-component"]],decls:14,vars:19,consts:[[1,"green",2,"text-align","center"],[1,"fa","fa-thumbs-up","fa-4x"],[2,"font-weight","bold","font-size","30px"],[2,"font-weight","bold","font-size","15px"]],template:function(e,t){1&e&&(ss(0,"div",0),ss(1,"h1"),us(2,"i",1),ls(),ss(3,"p"),Qs(4),Du(5,"translate"),ls(),ss(6,"p",2),Qs(7),ls(),ss(8,"p",3),Qs(9),Du(10,"translate"),Du(11,"date"),Du(12,"translate"),Du(13,"date"),ls(),ls()),2&e&&(xo(4),Xs(Ou(5,7,"lang.documentValidateAs")),xo(3),Js("",t.authService.user.firstname," ",t.authService.user.lastname,""),xo(2),el("",Ou(10,9,"lang.onRange")," ",Mu(11,11,t.date,"dd/MM/yyyy")," ",Ou(12,14,"lang.atRange")," ",Mu(13,16,t.date,"HH:mm"),""))},pipes:[gE,Wh],styles:[""]}),OU);function HU(e,t){if(1&e&&(cs(0),ss(1,"div",1),us(2,"img",2),ls(),ds()),2&e){var n=t.$implicit,i=ks();xo(1),Ls("width",i.signaturesService.workingAreaWidth,"px")("height",i.signaturesService.workingAreaHeight,"px"),xo(1),Ls("width",100,"%"),os("src",i.sanitization.bypassSecurityTrustUrl(n.fullPath),Cr)}}var jU,UU=((jU=function(){function e(t,n,i){A(this,e),this.translate=t,this.sanitization=n,this.signaturesService=i}return m(e,[{key:"ngOnInit",value:function(){}}]),e}()).\u0275fac=function(e){return new(e||jU)(rs(pE),rs(Wf),rs(PE))},jU.\u0275cmp=ft({type:jU,selectors:[["app-document-note-list"]],decls:1,vars:1,consts:[[4,"ngFor","ngForOf"],[2,"top","0","left","0","position","absolute"],[3,"src"]],template:function(e,t){1&e&&ns(0,HU,3,7,"ng-container",0),2&e&&os("ngForOf",t.signaturesService.notesContent[t.signaturesService.currentPage])},directives:[gh],encapsulation:2}),jU),WU=["menuTrigger"],GU=["test"],qU=function(e,t){return{x:e,y:t}};function YU(e,t){if(1&e){var n=fs();ss(0,"div",1,2),ms("rzResizing",function(e){nn(n);var i=t.index;return ks().onResizing(e,i)})("rzStart",function(){return nn(n),ks().signaturesService.resizing=!0})("movingOffset",function(){return nn(n),ks().signaturesService.dragging=!0})("endOffset",function(e){nn(n);var i=t.index;return ks().moveSign(e,i)})("rzStop",function(e){nn(n);var i=t.index,r=ks();return r.onResizeStop(e,i),r.signaturesService.resizing=!1}),ss(2,"ion-item",3),ss(3,"ion-select",4),ms("click",function(e){return e.stopPropagation()})("ionChange",function(e){nn(n);var i=t.index;return ks().select(e,i)}),ss(4,"ion-select-option",5),Qs(5),Du(6,"translate"),ls(),ss(7,"ion-select-option",6),Qs(8),Du(9,"translate"),ls(),ls(),ls(),us(10,"img",7),ls()}if(2&e){var i=t.$implicit,r=ks();Ls("width",i.width,"%")("height",r.fix),os("position",Cu(20,qU,i.positionX*r.signaturesService.workingAreaWidth/100,i.positionY*r.signaturesService.workingAreaHeight/100))("ngDraggable",!r.signaturesService.resizing)("rzAspectRatio",!0)("preventDefaultEvent",!1)("bounds",r.bounds)("inBounds",!0),xo(5),Ks("",Ou(6,16,"lang.delete")," "),xo(2),os("disabled",i.inAllPage),xo(1),Ks(" ",Ou(9,18,"lang.replicate"),""),xo(2),Ls("width",100,"%"),os("src",r.sanitization.bypassSecurityTrustUrl("data:image/png;base64,"+i.encodedSignature),Cr)}}var ZU,QU=((ZU=function(){function e(t,n,i,r,o,a,s,l){A(this,e),this.translate=t,this.sanitization=n,this.signaturesService=i,this.notificationService=r,this.localStorage=o,this.dialog=a,this.popoverController=s,this.modalController=l,this.fix="auto",this.today=new Date}return m(e,[{key:"ngOnInit",value:function(){}},{key:"select",value:function(e,t){this[e.detail.value](t)}},{key:"moveSign",value:function(e,t){var n=100*e.y/this.signaturesService.workingAreaHeight;this.signaturesService.signaturesContent[this.signaturesService.currentPage][t].positionX=100*e.x/this.signaturesService.workingAreaWidth,this.signaturesService.signaturesContent[this.signaturesService.currentPage][t].positionY=n,this.localStorage.save(this.signaturesService.mainDocumentId.toString(),JSON.stringify({date:this.signaturesService.datesContent,sign:this.signaturesService.signaturesContent,note:this.signaturesService.notesContent})),this.signaturesService.dragging=!1}},{key:"onResizing",value:function(e,t){this.test.nativeElement.style.height="auto"}},{key:"onResizeStop",value:function(e,t){this.test.nativeElement.style.height="auto",this.signaturesService.signaturesContent[this.signaturesService.currentPage][t].width=100*e.size.width/this.signaturesService.workingAreaWidth}},{key:"cloneSign",value:function(e){var t=this;this.dialog.open(_H,{autoFocus:!1,width:"450px",data:{title:"lang.wantSignOtherPage",msg:""}}).afterClosed().subscribe(function(n){if("yes"===n){t.signaturesService.signaturesContent[t.signaturesService.currentPage][e].inAllPage=!0,t.signaturesService.signaturesContent[t.signaturesService.currentPage][e].token=Math.random().toString(36).substr(2,9);for(var i=1;i<=t.signaturesService.totalPage;i++)t.signaturesService.signaturesContent[i]||(t.signaturesService.signaturesContent[i]=[]),i!==t.signaturesService.currentPage&&t.signaturesService.signaturesContent[i].push(JSON.parse(JSON.stringify(t.signaturesService.signaturesContent[t.signaturesService.currentPage][e])));t.localStorage.save(t.signaturesService.mainDocumentId.toString(),JSON.stringify({sign:t.signaturesService.signaturesContent,note:t.signaturesService.notesContent}))}}),this.menuSign.closeMenu()}},{key:"deleteSignature",value:function(e){if(!0===this.signaturesService.signaturesContent[this.signaturesService.currentPage][e].inAllPage){var t=this.signaturesService.signaturesContent[this.signaturesService.currentPage][e].token;if(confirm(this.translate.instant("lang.wantDeleteSignatureOtherPage")))for(var n=1;n<=this.signaturesService.totalPage;n++){this.signaturesService.signaturesContent[n]||(this.signaturesService.signaturesContent[n]=[]);for(var i=0;i<=this.signaturesService.signaturesContent[n].length;i++)this.signaturesService.signaturesContent[n][i]&&t===this.signaturesService.signaturesContent[n][i].token&&this.signaturesService.signaturesContent[n].splice(i,1)}else this.signaturesService.signaturesContent[this.signaturesService.currentPage].splice(e,1)}else this.signaturesService.signaturesContent[this.signaturesService.currentPage].splice(e,1);this.emptySigns()&&(this.signaturesService.signaturesContent=[]),this.localStorage.save(this.signaturesService.mainDocumentId.toString(),JSON.stringify({sign:this.signaturesService.signaturesContent,note:this.signaturesService.notesContent}))}},{key:"emptySigns",value:function(){for(var e=!0,t=1;t<=this.signaturesService.totalPage;t++)if(this.signaturesService.signaturesContent[t]&&this.signaturesService.signaturesContent[t].length>0){e=!1;break}return e}}]),e}()).\u0275fac=function(e){return new(e||ZU)(rs(pE),rs(Wf),rs(PE),rs(yE),rs(EE),rs(kB),rs(dP),rs(cP))},ZU.\u0275cmp=ft({type:ZU,selectors:[["app-document-sign-list"]],viewQuery:function(e,t){var n;1&e&&(Qu(WU,1),Qu(GU,1)),2&e&&(Zu(n=Ku())&&(t.menuSign=n.first),Zu(n=Ku())&&(t.test=n.first))},inputs:{bounds:"bounds"},decls:1,vars:1,consts:[["ngResizable","","style","position:absolute;border: dashed 1px grey;background: rgba(255, 255, 255, 0.6) none repeat scroll 0% 0%;",3,"position","width","ngDraggable","rzAspectRatio","preventDefaultEvent","bounds","inBounds","height","rzResizing","rzStart","movingOffset","endOffset","rzStop",4,"ngFor","ngForOf"],["ngResizable","",2,"position","absolute","border","dashed 1px grey","background","rgba(255, 255, 255, 0.6) none repeat scroll 0% 0%",3,"position","ngDraggable","rzAspectRatio","preventDefaultEvent","bounds","inBounds","rzResizing","rzStart","movingOffset","endOffset","rzStop"],["test",""],[2,"position","absolute","--background","none","right","0","--border-width","0"],["selectedText"," ","value","","interface","popover",3,"click","ionChange"],["value","deleteSignature",1,"action-item"],["value","cloneSign",1,"action-item",3,"disabled"],[1,"img-content",3,"src"]],template:function(e,t){1&e&&ns(0,YU,11,23,"div",0),2&e&&os("ngForOf",t.signaturesService.signaturesContent[t.signaturesService.currentPage])},directives:[gh,DM,SM,nS,kS,tA,xS],pipes:[gE],styles:[".action-item ion-radio{--color:transparent;--color-checked:transparent}.test[_ngcontent-%COMP%]{position:absolute;border:1px dashed grey;background:hsla(0,0%,100%,.6) none repeat scroll 0 0;background:none;font:sans-serif}svg[_ngcontent-%COMP%]{width:100%;height:100%;pointer-events:none}text[_ngcontent-%COMP%]{pointer-events:auto}"]}),ZU);function XU(e,t){if(1&e&&(ss(0,"ion-select-option",19),Qs(1),Du(2,"date"),Du(3,"translate"),ls()),2&e){var n=t.$implicit,i=ks();os("value",n),xo(1),Ks(" ",Iu(2,2,i.today,n,void 0,Ou(3,7,"lang.langISO"))," ")}}function KU(e,t){if(1&e&&(ss(0,"ion-select-option",19),Qs(1),ls()),2&e){var n=t.$implicit;Bs(ks().getFontLabel(n)),os("value",n),xo(1),Ks(" ",n," ")}}var JU,$U=function(){return{cssClass:"selectFormat"}},eW=((JU=function(){function e(t){A(this,e),this.modalController=t,this.today=new Date,this.dateformats=["dd/MM/y","dd-MM-y","dd.MM.y","d MMM y","d MMMM y"],this.datefonts=["Arial","Verdana","Helvetica","Tahoma","Times New Roman","Courier New"],this.size={Arial:15,Verdana:13,Helvetica:13,Tahoma:13,"Times New Roman":15,"Courier New":13}}return m(e,[{key:"ngOnInit",value:function(){this.date=JSON.parse(JSON.stringify(this.currentDate))}},{key:"dismissModal",value:function(){this.modalController.dismiss()}},{key:"getFontLabel",value:function(e){return e.replace(" ","_")}},{key:"onSubmit",value:function(){this.modalController.dismiss(this.date)}},{key:"select",value:function(e){this.date.size=this.size[e]}}]),e}()).\u0275fac=function(e){return new(e||JU)(rs(cP))},JU.\u0275cmp=ft({type:JU,selectors:[["ng-component"]],inputs:{currentDate:"currentDate"},decls:45,vars:43,consts:[[3,"translucent"],["color","primary"],["slot","end"],[3,"click"],["slot","icon-only","name","close-outline"],[2,"text-align","center","font-weight","normal","font-size","50px","padding","50px"],["color","secondary"],["interface","popover",3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],["button","","lines","full",3,"click"],["type","color",2,"display","none",3,"ngModel","ngModelChange"],["colorPicker",""],["slot","end","name","ellipse"],[3,"ngModel","interfaceOptions","cancelText","ngModelChange","ionChange"],[3,"value","class",4,"ngFor","ngForOf"],[1,"ion-no-border"],[1,"ion-justify-content-center"],["type","submit","color","primary",3,"click"],["type","button",3,"click"],[3,"value"]],template:function(e,t){if(1&e){var n=fs();ss(0,"ion-header",0),ss(1,"ion-toolbar",1),ss(2,"ion-title"),Qs(3),Du(4,"translate"),ls(),ss(5,"ion-buttons",2),ss(6,"ion-button",3),ms("click",function(){return t.dismissModal()}),us(7,"ion-icon",4),ls(),ls(),ls(),ls(),ss(8,"ion-content"),ss(9,"ion-toolbar"),ss(10,"ion-title",5),Qs(11),Du(12,"date"),Du(13,"translate"),ls(),ls(),ss(14,"ion-item"),ss(15,"ion-label",6),Qs(16),Du(17,"translate"),ls(),ss(18,"ion-select",7),ms("ngModelChange",function(e){return t.date.format=e}),ns(19,XU,4,9,"ion-select-option",8),ls(),ls(),ss(20,"ion-item",9),ms("click",function(){return nn(n),is(22).click()}),ss(21,"input",10,11),ms("ngModelChange",function(e){return t.date.color=e}),ls(),ss(23,"ion-label",6),Qs(24),Du(25,"translate"),ls(),us(26,"ion-icon",12),ls(),ss(27,"ion-item"),ss(28,"ion-label",6),Qs(29),Du(30,"translate"),ls(),ss(31,"ion-select",13),ms("ngModelChange",function(e){return t.date.font=e})("ionChange",function(e){return t.select(e.detail.value)}),Du(32,"translate"),ns(33,KU,2,4,"ion-select-option",14),ls(),ls(),ls(),ss(34,"ion-footer",15),ss(35,"ion-toolbar"),ss(36,"ion-buttons",16),ss(37,"ion-button",17),ms("click",function(){return t.onSubmit()}),ss(38,"ion-label"),Qs(39),Du(40,"translate"),ls(),ls(),ss(41,"ion-button",18),ms("click",function(){return t.dismissModal()}),ss(42,"ion-label"),Qs(43),Du(44,"translate"),ls(),ls(),ls(),ls(),ls()}2&e&&(os("translucent",!0),xo(3),Xs(Ou(4,21,"lang.options")),xo(7),Bs(t.getFontLabel(t.date.font)),Ls("color",t.date.color),xo(1),Xs(Iu(12,23,t.today,t.date.format,void 0,Ou(13,28,"lang.langISO"))),xo(5),Xs(Ou(17,30,"lang.format")),xo(2),os("ngModel",t.date.format),xo(1),os("ngForOf",t.dateformats),xo(2),os("ngModel",t.date.color),xo(3),Xs(Ou(25,32,"lang.color")),xo(2),Ls("color",t.date.color),xo(3),Xs(Ou(30,34,"lang.font")),xo(2),os("ngModel",t.date.font)("interfaceOptions",xu(42,$U))("cancelText",Ou(32,36,"lang.cancel")),xo(2),os("ngForOf",t.datefonts),xo(6),Xs(Ou(40,38,"lang.save")),xo(4),Xs(Ou(44,40,"lang.cancel")))},directives:[XC,DS,PS,LC,RC,KC,UC,nS,aS,kS,tA,hm,Ym,gh,Rv,ZC,xS],pipes:[gE,Wh],styles:[".Arial{font-family:Arial,sans-serif} .Verdana{font-family:Verdana,sans-serif} .Helvetica{font-family:Helvetica,sans-serif} .Tahoma{font-family:Tahoma,sans-serif} .Times_New_Roman{font-family:Times New Roman,serif} .Courier_New{font-family:Courier New,monospace}"]}),JU),tW=["menuTrigger"],nW=["test2"],iW=function(e,t){return{x:e,y:t}};function rW(e,t){if(1&e){var n=fs();ss(0,"div",1,2),ms("rzResizing",function(e){nn(n);var i=t.index;return ks().onResizingDate(e,i)})("rzStart",function(){return nn(n),ks().signaturesService.resizing=!0})("movingOffset",function(){return nn(n),ks().signaturesService.dragging=!0})("endOffset",function(e){nn(n);var i=t.index;return ks().moveDate(e,i)})("rzStop",function(e){nn(n);var i=t.index,r=ks();return r.onResizeDateStop(e,i),r.signaturesService.resizing=!1})("click",function(e){return e.stopPropagation()}),ss(2,"ion-buttons",3),ss(3,"ion-button",4),us(4,"ion-icon",5),ls(),ls(),ss(5,"mat-menu",null,6),ss(7,"button",7),ms("click",function(){nn(n);var e=t.index;return ks().openDateSettings(e)}),Qs(8),Du(9,"translate"),ls(),ss(10,"button",7),ms("click",function(){nn(n);var e=t.index;return ks().deleteDate(e)}),Qs(11),Du(12,"translate"),ls(),ls(),On(),ss(13,"svg",8),ss(14,"text",9),Qs(15),Du(16,"date"),Du(17,"translate"),ls(),ls(),ls()}if(2&e){var i=t.$implicit,r=t.index,o=is(6),a=ks();Ls("width",i.width,"%")("height",i.height,"%")("height",a.fix),os("id","dateDiv_"+r)("position",Cu(34,iW,i.positionX*a.signaturesService.workingAreaWidth/100,i.positionY*a.signaturesService.workingAreaHeight/100))("ngDraggable",!a.signaturesService.resizing)("rzAspectRatio",!0)("preventDefaultEvent",!1)("bounds",a.bounds)("inBounds",!0),xo(3),os("matMenuTriggerFor",o),xo(5),Xs(Ou(9,23,"lang.options")),xo(3),Xs(Ou(12,25,"lang.delete")),xo(2),os("id","testSVG_"+r),xo(1),Ls("font-family",i.font)("fill",i.color),$a("font-size",i.size),xo(1),Xs(Iu(16,27,a.today,i.format,void 0,Ou(17,32,"lang.langISO")))}}var oW,aW=((oW=function(){function e(t,n,i,r,o,a,s){A(this,e),this.translate=t,this.signaturesService=n,this.notificationService=i,this.localStorage=r,this.dialog=o,this.popoverController=a,this.modalController=s,this.fix="auto",this.today=new Date}return m(e,[{key:"ngOnInit",value:function(){}},{key:"moveDate",value:function(e,t){var n=100*e.y/this.signaturesService.workingAreaHeight;this.signaturesService.datesContent[this.signaturesService.currentPage][t].positionX=100*e.x/this.signaturesService.workingAreaWidth,this.signaturesService.datesContent[this.signaturesService.currentPage][t].positionY=n,this.localStorage.save(this.signaturesService.mainDocumentId.toString(),JSON.stringify({date:this.signaturesService.datesContent,sign:this.signaturesService.signaturesContent,note:this.signaturesService.notesContent})),this.signaturesService.dragging=!1}},{key:"onResizingDate",value:function(e,t){this.test2.nativeElement.style.height="auto"}},{key:"onResizeDateStop",value:function(e,t){this.test2.nativeElement.style.height="auto",this.signaturesService.datesContent[this.signaturesService.currentPage][t].height=100*e.size.height/this.signaturesService.workingAreaHeight,this.signaturesService.datesContent[this.signaturesService.currentPage][t].width=100*e.size.width/this.signaturesService.workingAreaWidth}},{key:"deleteDate",value:function(e){this.signaturesService.datesContent[this.signaturesService.currentPage].splice(e,1),this.localStorage.save(this.signaturesService.mainDocumentId.toString(),JSON.stringify({date:this.signaturesService.datesContent,sign:this.signaturesService.signaturesContent,note:this.signaturesService.notesContent}))}},{key:"openDateSettings",value:function(e){return t=this,i=regeneratorRuntime.mark(function t(){var n,i,r;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.modalController.create({component:eW,componentProps:{currentDate:this.signaturesService.datesContent[this.signaturesService.currentPage][e]}});case 2:return n=t.sent,t.next=5,n.present();case 5:return t.next=7,n.onWillDismiss();case 7:i=t.sent,void 0!==(r=i.data)&&(this.signaturesService.datesContent[this.signaturesService.currentPage][e]=r);case 10:case"end":return t.stop()}},t,this)}),new((n=void 0)||(n=Promise))(function(e,r){function o(e){try{s(i.next(e))}catch(t){r(t)}}function a(e){try{s(i.throw(e))}catch(t){r(t)}}function s(t){var i;t.done?e(t.value):(i=t.value,i instanceof n?i:new n(function(e){e(i)})).then(o,a)}s((i=i.apply(t,[])).next())});var t,n,i}}]),e}()).\u0275fac=function(e){return new(e||oW)(rs(pE),rs(PE),rs(yE),rs(EE),rs(kB),rs(dP),rs(cP))},oW.\u0275cmp=ft({type:oW,selectors:[["app-document-date-list"]],viewQuery:function(e,t){var n;1&e&&(Qu(tW,1),Qu(nW,1)),2&e&&(Zu(n=Ku())&&(t.menuSign=n.first),Zu(n=Ku())&&(t.test2=n.first))},inputs:{bounds:"bounds"},decls:1,vars:1,consts:[["class","test","ngResizable","",3,"id","position","width","height","ngDraggable","rzAspectRatio","preventDefaultEvent","bounds","inBounds","rzResizing","rzStart","movingOffset","endOffset","rzStop","click",4,"ngFor","ngForOf"],["ngResizable","",1,"test",3,"id","position","ngDraggable","rzAspectRatio","preventDefaultEvent","bounds","inBounds","rzResizing","rzStart","movingOffset","endOffset","rzStop","click"],["test2",""],[2,"position","absolute","top","-30px","right","0px"],["slot","icon-only","shape","round","color","secondary",3,"matMenuTriggerFor"],["name","ellipsis-vertical"],["menu","matMenu"],["mat-menu-item","",3,"click"],["viewBox","0 0 130 30","preserveAspectRatio","xMinYMin meet",3,"id"],["y","21"]],template:function(e,t){1&e&&ns(0,rW,18,37,"div",0),2&e&&os("ngForOf",t.signaturesService.datesContent[t.signaturesService.currentPage])},directives:[gh,DM,SM,LC,RC,nN,KC,Jz,Zz],pipes:[gE,Wh],styles:[".action-item ion-radio{--color:transparent;--color-checked:transparent}.test[_ngcontent-%COMP%]{position:absolute;border:1px dashed grey;background:hsla(0,0%,100%,.6) none repeat scroll 0 0;background:none;font:sans-serif}svg[_ngcontent-%COMP%]{width:100%;height:100%;pointer-events:none}text[_ngcontent-%COMP%]{pointer-events:auto}svg.text[_ngcontent-%COMP%]{display:block;font-size:inherit}"]}),oW),sW=function(e,t,n,i){return new(n||(n=Promise))(function(r,o){function a(e){try{l(i.next(e))}catch(t){o(t)}}function s(e){try{l(i.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((i=i.apply(e,t||[])).next())})};function lW(e,t){if(1&e){var n=fs();ss(0,"ion-item",6),ms("click",function(){nn(n);var e=t.$implicit;return ks().loadVisaWorkflow(e)}),ss(1,"ion-label"),Qs(2),ls(),ss(3,"ion-buttons",7),ss(4,"ion-button",8),ms("click",function(e){nn(n);var i=t.$implicit,r=ks();return e.stopPropagation(),r.removeModel(i)}),us(5,"ion-icon",9),ls(),ls(),ls()}if(2&e){var i=t.$implicit;xo(2),Xs(i.title)}}var uW,cW=((uW=function(){function e(t,n,i,r,o,a){A(this,e),this.http=t,this.translate=n,this.popoverController=i,this.alertController=r,this.notificationService=o,this.authService=a,this.currentWorkflow=[],this.visaWorkflowModels=[]}return m(e,[{key:"ngOnInit",value:function(){this.getVisaUserModels()}},{key:"createModel",value:function(){return sW(this,void 0,void 0,regeneratorRuntime.mark(function e(){var t,n=this;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.alertController.create({header:this.translate.instant("lang.newTemplate"),message:this.translate.instant("lang.newTemplateDesc"),inputs:[{name:"title",type:"text",placeholder:this.translate.instant("lang.label")+" *"}],buttons:[{text:this.translate.instant("lang.cancel"),role:"cancel",handler:function(){}},{text:this.translate.instant("lang.validate"),handler:function(e){return""!==e.title?(n.saveModel(e.title),!0):(n.notificationService.error(n.translate.instant("lang.label")+" "+n.translate.instant("lang.mandatory")),!1)}}]});case 2:return t=e.sent,e.next=5,t.present();case 5:case"end":return e.stop()}},e,this)}))}},{key:"saveModel",value:function(e){var t=this,n={title:e,items:this.currentWorkflow.map(function(e){return{userId:e.userId,mode:t.authService.getWorkflowMode(e.role),signatureMode:t.authService.getSignatureMode(e.role)}})};this.http.post("../rest/workflowTemplates",n).pipe(uw(function(n){t.notificationService.success("lang.modelCreated"),t.visaWorkflowModels.push({id:n.id,title:e})}),Zb(function(e){return t.notificationService.handleErrors(e),Ty(!1)})).subscribe()}},{key:"removeModel",value:function(e){return sW(this,void 0,void 0,regeneratorRuntime.mark(function t(){var n,i=this;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.alertController.create({header:this.translate.instant("lang.delete"),message:this.translate.instant("lang.deleteTemplate"),buttons:[{text:this.translate.instant("lang.no"),role:"cancel",handler:function(){}},{text:this.translate.instant("lang.yes"),handler:function(){i.http.delete("../rest/workflowTemplates/"+e.id).pipe(uw(function(){i.visaWorkflowModels=i.visaWorkflowModels.filter(function(t){return t.id!==e.id}),i.notificationService.success("Mod\xe8le ".concat(e.title," supprim\xe9"))}),Zb(function(e){return i.notificationService.handleErrors(e),Ty(!1)})).subscribe()}}]});case 2:return n=t.sent,t.next=5,n.present();case 5:case"end":return t.stop()}},t,this)}))}},{key:"getVisaUserModels",value:function(){var e=this;this.http.get("../rest/workflowTemplates").pipe(uw(function(t){e.visaWorkflowModels=t.workflowTemplates}),Zb(function(t){return e.notificationService.handleErrors(t),Ty(!1)})).subscribe()}},{key:"loadVisaWorkflow",value:function(e){var t=this;this.http.get("../rest/workflowTemplates/"+e.id).pipe(uw(function(e){var n=e.workflowTemplate.items.map(function(e){return{userId:e.userId,userDisplay:e.userLabel,role:"visa"===e.mode?"visa":e.signatureMode,processDate:null,current:!1,modes:["visa"].concat(e.userSignatureModes)}});t.popoverController.dismiss(n)}),Zb(function(e){return t.notificationService.handleErrors(e),Ty(!1)})).subscribe()}}]),e}()).\u0275fac=function(e){return new(e||uW)(rs(lb),rs(pE),rs(dP),rs(sP),rs(yE),rs(DE))},uW.\u0275cmp=ft({type:uW,selectors:[["app-visa-workflow-models"]],inputs:{currentWorkflow:"currentWorkflow"},decls:11,vars:8,consts:[["lines","none"],["color","secondary"],["button","",3,"click",4,"ngFor","ngForOf"],["button","",3,"disabled","click"],["color","primary","slot","start","name","add-circle-outline"],["color","primary"],["button","",3,"click"],["slot","end"],["fill","clear","slot","icon-only","shape","round","color","danger",3,"click"],["slot","icon-only","name","trash-outline"]],template:function(e,t){1&e&&(ss(0,"ion-list",0),ss(1,"ion-list-header"),ss(2,"ion-label",1),Qs(3),Du(4,"translate"),ls(),ls(),ns(5,lW,6,1,"ion-item",2),ss(6,"ion-item",3),ms("click",function(){return t.createModel()}),us(7,"ion-icon",4),ss(8,"ion-label",5),Qs(9),Du(10,"translate"),ls(),ls(),ls()),2&e&&(xo(3),Xs(Ou(4,4,"lang.circuitModels")),xo(2),os("ngForOf",t.visaWorkflowModels),xo(1),os("disabled",0===t.currentWorkflow.length),xo(3),Xs(Ou(10,6,"lang.newTemplate")))},directives:[sS,lS,aS,gh,nS,KC,LC,RC],pipes:[gE],styles:[""]}),uW);function dW(e,t){if(1&e){var n=fs();ss(0,"ion-item"),ss(1,"ion-checkbox",19),ms("ionChange",function(e){nn(n),ks(2);var t=is(3);return ks().addUser(e.detail.value,t)}),ls(),ss(2,"ion-label"),Qs(3),ls(),ss(4,"ion-note",13),Qs(5),ls(),ls()}if(2&e){var i=t.$implicit;xo(1),os("value",i),xo(2),Js("",i.firstname," ",i.lastname,""),xo(2),Xs(i.email)}}function hW(e,t){if(1&e&&(ss(0,"ion-list",17),ns(1,dW,6,4,"ion-item",18),ls()),2&e){var n=ks(2);xo(1),os("ngForOf",n.visaUsersList)}}function fW(e,t){if(1&e){var n=fs();cs(0),ss(1,"ion-item",10),ss(2,"ion-searchbar",11,12),ms("ngModelChange",function(e){return nn(n),ks().visaUsersSearchVal=e})("ionChange",function(e){return nn(n),ks().getVisaUsers(e)})("ionFocus",function(){return nn(n),ks().visaUsersSearchVal=""}),Du(4,"translate"),ls(),ss(5,"ion-buttons",13),ss(6,"ion-button",14),ms("click",function(e){return nn(n),ks().openVisaWorkflowModels(e)}),Du(7,"translate"),us(8,"ion-icon",15),ls(),ls(),ls(),ns(9,hW,2,1,"ion-list",16),ds()}if(2&e){var i=ks();xo(2),os("ngModel",i.visaUsersSearchVal)("placeholder",Ou(4,4,"lang.searchUser")),xo(4),os("title",Ou(7,6,"lang.circuitModels")),xo(3),os("ngIf",i.visaUsersList.length>0)}}function pW(e,t){1&e&&(ss(0,"ion-list"),ss(1,"ion-item",10),ss(2,"ion-label",20),Qs(3),Du(4,"translate"),ls(),ls(),ls()),2&e&&(xo(3),Xs(Ou(4,1,"lang.noUserInWorkflow")))}function gW(e,t){1&e&&(ss(0,"p",31),Qs(1),Du(2,"translate"),ls()),2&e&&(xo(1),Ks(" ",Ou(2,1,"lang.substituteMsg"),""))}function vW(e,t){if(1&e&&(ss(0,"h2",32),Qs(1),ls()),2&e){var n=ks().$implicit;os("title",n.userDisplay),xo(1),Xs(n.userDisplay)}}function mW(e,t){1&e&&(ss(0,"h2",33),Qs(1),Du(2,"translate"),ls()),2&e&&(os("title",ks().$implicit.userDisplay),xo(1),Ks(" ",Ou(2,2,"lang.userDeleted"),""))}function yW(e,t){if(1&e&&(ss(0,"ion-select-option",37),Qs(1),Du(2,"translate"),ls()),2&e){var n=t.$implicit,i=ks(2),r=i.index,o=i.$implicit,a=ks();os("value",n)("disabled",!a.isValidRole(r,n,o.role)),xo(1),Ks(" ",Ou(2,3,"lang."+n+"User")," ")}}function bW(e,t){if(1&e){var n=fs();ss(0,"p",34),ss(1,"ion-select",35),ms("ngModelChange",function(e){return nn(n),ks().$implicit.role=e}),Du(2,"translate"),ns(3,yW,3,5,"ion-select-option",36),ls(),ls()}if(2&e){var i,r=ks().$implicit,o=ks();xo(1),Ls("color",null==(i=o.getRole(r.role))?null:i.color),os("ngModel",r.role)("title",Ou(2,7,"lang."+r.role+"User"))("interfaceOptions",o.customPopoverOptions)("disabled",!o.editMode),xo(2),os("ngForOf",r.modes)}}function wW(e,t){if(1&e&&(ss(0,"ion-note",41),Qs(1),Du(2,"translate"),ls()),2&e){var n=ks(2).$implicit;xo(1),Js(" ",Ou(2,2,"lang."+n.mode+"ProcessInfo")," ",n.processDate," ")}}function _W(e,t){if(1&e&&(ss(0,"ion-note",42),Qs(1),Du(2,"translate"),ls()),2&e){var n=ks(2).$implicit;xo(1),Js(" ",Ou(2,2,"lang.refProcessInfo")," ",n.processDate," ")}}function kW(e,t){if(1&e&&(ss(0,"ion-note",43),Qs(1),Du(2,"translate"),ls()),2&e){var n=ks(2).$implicit;xo(1),Js(" ",Ou(2,2,"lang.stopProcessInfo")," ",n.processDate," ")}}function xW(e,t){if(1&e&&(ss(0,"p",32),ns(1,wW,3,4,"ion-note",38),ns(2,_W,3,4,"ion-note",39),ns(3,kW,3,4,"ion-note",40),ls()),2&e){var n=ks().$implicit;os("title",n.processDate),xo(1),os("ngIf","VAL"===n.status),xo(1),os("ngIf","REF"===n.status),xo(1),os("ngIf","STOP"===n.status)}}function AW(e,t){1&e&&us(0,"ion-icon",44)}function CW(e,t){if(1&e){var n=fs();ss(0,"ion-button",45),ms("click",function(e){nn(n);var t=ks().index,i=ks();return e.stopPropagation(),i.removeUser(t)}),us(1,"ion-icon",46),ls()}}function SW(e,t){if(1&e&&(ss(0,"ion-item",21),ss(1,"ion-reorder",2),us(2,"ion-icon",22),Du(3,"translate"),ls(),ss(4,"ion-avatar",23),ms("click",function(e){return e.stopPropagation()}),us(5,"img",24),ls(),ss(6,"ion-label"),ns(7,gW,3,3,"p",25),ns(8,vW,2,2,"h2",26),ns(9,mW,3,4,"h2",27),ns(10,bW,4,9,"p",28),ns(11,xW,4,4,"p",26),ls(),ns(12,AW,1,0,"ion-icon",29),ss(13,"ion-buttons",13),ns(14,CW,2,0,"ion-button",30),ls(),ls()),2&e){var n=t.$implicit,i=ks();Fs("current",n.current),xo(2),os("title",Ou(3,11,"lang.reorder")),xo(3),os("src",n.userPicture,Cr),xo(2),os("ngIf",n.current&&n.userId!==i.authService.user.id),xo(1),os("ngIf",""!==n.userDisplay),xo(1),os("ngIf",""===n.userDisplay),xo(1),os("ngIf",null===n.processDate),xo(1),os("ngIf",null!==n.processDate),xo(1),os("ngIf",!i.editMode&&n.current),xo(2),os("ngIf",i.editMode)}}var PW,EW=((PW=function(){function e(t,n,i,r,o){A(this,e),this.http=t,this.signaturesService=n,this.authService=i,this.notificationService=r,this.popoverController=o,this.editMode=!1,this.visaWorkflow=[],this.loading=!1,this.visaUsersSearchVal="",this.visaUsersList=[],this.showVisaUsersList=!1,this.customPopoverOptions={header:"Roles"},this.roles=[]}return m(e,[{key:"ngOnInit",value:function(){var e=this;this.visaWorkflow.forEach(function(t,n){e.getAvatarUser(n)})}},{key:"doReorder",value:function(e){this.canMoveUser(e)?this.visaWorkflow=e.detail.complete(this.visaWorkflow):(this.notificationService.error("lang.errorUserSignType"),e.detail.complete(!1))}},{key:"canMoveUser",value:function(e){var t=this.array_move(this.visaWorkflow.slice(),e.detail.from,e.detail.to);return t=t.filter(function(e){return void 0!==e}),this.isValidWorkflow(t)}},{key:"isValidWorkflow",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.visaWorkflow,t=!0;return e.forEach(function(n,i){-1===["visa","stamp"].indexOf(n.role)&&e.filter(function(e,t){return t>i&&"stamp"===e.role}).length>0&&(t=!1)}),t}},{key:"array_move",value:function(e,t,n){if(n>=e.length)for(var i=n-e.length+1;i--;)e.push(void 0);return e.splice(n,0,e.splice(t,1)[0]),e}},{key:"getVisaUsers",value:function(e){var t=this;this.showVisaUsersList=!0,""===e.detail.value?this.resetVisaUsersList():e.detail.value.length>=3&&this.http.get("../rest/autocomplete/users?search="+e.detail.value).pipe(uw(function(e){t.visaUsersList=e}),Zb(function(e){return t.notificationService.handleErrors(e),Ty(!1)})).subscribe()}},{key:"addUser",value:function(e,t){this.resetVisaUsersList(),e.signatureModes.unshift("visa"),this.visaWorkflow.push({userId:e.id,userDisplay:"".concat(e.firstname," ").concat(e.lastname),role:e.signatureModes[e.signatureModes.length-1],processDate:null,current:!1,modes:e.signatureModes}),this.isValidWorkflow()||(this.visaWorkflow[this.visaWorkflow.length-1].role="visa"),this.getAvatarUser(this.visaWorkflow.length-1),this.visaUsersSearchVal="",t.setFocus()}},{key:"removeUser",value:function(e){this.visaWorkflow.splice(e,1)}},{key:"getAvatarUser",value:function(e){var t=this;void 0===this.visaWorkflow[e].userPicture&&""!==this.visaWorkflow[e].userDisplay&&this.http.get("../rest/users/"+this.visaWorkflow[e].userId+"/picture").pipe(uw(function(n){t.visaWorkflow[e].userPicture=n.picture}),Zb(function(e){return t.notificationService.handleErrors(e),Ty(!1)})).subscribe()}},{key:"resetVisaUsersList",value:function(){this.visaUsersList=[]}},{key:"openVisaWorkflowModels",value:function(e){return t=this,i=regeneratorRuntime.mark(function t(){var n,i=this;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.popoverController.create({component:cW,componentProps:{currentWorkflow:this.visaWorkflow},event:e});case 2:return n=t.sent,t.next=5,n.present();case 5:n.onDidDismiss().then(function(e){"backdrop"!==e.role&&(i.visaWorkflow=i.visaWorkflow.concat(e.data),i.visaWorkflow.forEach(function(e,t){i.getAvatarUser(t)}))});case 6:case"end":return t.stop()}},t,this)}),new((n=void 0)||(n=Promise))(function(e,r){function o(e){try{s(i.next(e))}catch(t){r(t)}}function a(e){try{s(i.throw(e))}catch(t){r(t)}}function s(t){var i;t.done?e(t.value):(i=t.value,i instanceof n?i:new n(function(e){e(i)})).then(o,a)}s((i=i.apply(t,[])).next())});var t,n,i}},{key:"getCurrentWorkflow",value:function(){return this.visaWorkflow}},{key:"getRole",value:function(e){return this.authService.signatureRoles.filter(function(t){return t.id===e})[0]}},{key:"loadWorkflow",value:function(e){this.visaWorkflow=e;for(var t=this.visaWorkflow.length,n=0;n<t;n++)this.getAvatarUser(n)}},{key:"isValidRole",value:function(e,t,n){return!(this.visaWorkflow.filter(function(t,n){return n>e&&["stamp"].indexOf(t.role)>-1}).length>0&&["visa","stamp"].indexOf(n)>-1&&-1===["visa","stamp"].indexOf(t)||this.visaWorkflow.filter(function(t,n){return n<e&&-1===["visa","stamp"].indexOf(t.role)}).length>0&&"stamp"===t)}},{key:"setPositionsWorkfow",value:function(e,t){var n=this;this.clearPositionsFromResource(e),t.length>0&&Object.keys(t).forEach(function(i){var r=Object.assign(Object.assign({},t[i]),{mainDocument:e.mainDocument});n.visaWorkflow[t[i].sequence].signaturePositions=n.visaWorkflow[t[i].sequence].signaturePositions.filter(function(t){return t.mainDocument!==e.mainDocument}),n.visaWorkflow[t[i].sequence].signaturePositions.push(r)})}},{key:"clearPositionsFromResource",value:function(e){this.visaWorkflow.forEach(function(t){t.signaturePositions=t.signaturePositions.filter(function(t){return t.mainDocument!==e.mainDocument})})}}]),e}()).\u0275fac=function(e){return new(e||PW)(rs(lb),rs(PE),rs(DE),rs(yE),rs(dP))},PW.\u0275cmp=ft({type:PW,selectors:[["app-visa-workflow"]],viewQuery:function(e,t){var n;1&e&&Qu(mS,1),2&e&&Zu(n=Ku())&&(t.reorderGroup=n.first)},inputs:{editMode:"editMode",visaWorkflow:"visaWorkflow"},decls:13,vars:8,consts:[[3,"translucent"],["color","primary"],["slot","start"],["disabled",""],["slot","icon-only","name","list-outline"],[1,"ion-text-center"],[3,"click"],[4,"ngIf"],[3,"disabled","ionItemReorder"],["class","no-ripple",3,"current",4,"ngFor","ngForOf"],["lines","none"],[3,"ngModel","placeholder","ngModelChange","ionChange","ionFocus"],["searchInput",""],["slot","end"],["fill","clear","slot","icon-only","shape","round","color","primary",3,"title","click"],["slot","icon-only","name","albums-outline"],["style","position: absolute;z-index: 2;width: 100%;box-shadow: 0 4px 2px -2px gray;",4,"ngIf"],[2,"position","absolute","z-index","2","width","100%","box-shadow","0 4px 2px -2px gray"],[4,"ngFor","ngForOf"],["color","primary","slot","start",3,"value","ionChange"],["color","medium",1,"ion-text-center"],[1,"no-ripple"],["name","reorder-three",2,"font-size","30px",3,"title"],["slot","start",1,"avatar-user",2,"cursor","grab",3,"click"],[3,"src"],["class","secondary",4,"ngIf"],[3,"title",4,"ngIf"],["class","danger",3,"title",4,"ngIf"],["style","display: flex;justify-content: start;",4,"ngIf"],["color","success","slot","end","name","caret-back-outline",4,"ngIf"],["style","z-index: 9999","fill","clear","slot","icon-only","shape","round","color","danger",3,"click",4,"ngIf"],[1,"secondary"],[3,"title"],[1,"danger",3,"title"],[2,"display","flex","justify-content","start"],["interface","popover",2,"width","auto","max-width","100%","padding-left","0px",3,"ngModel","title","interfaceOptions","disabled","ngModelChange"],[3,"value","disabled",4,"ngFor","ngForOf"],[3,"value","disabled"],["class","valProcess",4,"ngIf"],["class","refProcess",4,"ngIf"],["class","stopProcess",4,"ngIf"],[1,"valProcess"],[1,"refProcess"],[1,"stopProcess"],["color","success","slot","end","name","caret-back-outline"],["fill","clear","slot","icon-only","shape","round","color","danger",2,"z-index","9999",3,"click"],["slot","icon-only","name","trash-outline"]],template:function(e,t){1&e&&(ss(0,"ion-header",0),ss(1,"ion-toolbar",1),ss(2,"ion-buttons",2),ss(3,"ion-button",3),us(4,"ion-icon",4),ls(),ls(),ss(5,"ion-title",5),Qs(6),Du(7,"translate"),ls(),ls(),ls(),ss(8,"ion-content",6),ms("click",function(){return t.resetVisaUsersList()}),ns(9,fW,10,8,"ng-container",7),ns(10,pW,5,3,"ion-list",7),ss(11,"ion-reorder-group",8),ms("ionItemReorder",function(e){return t.doReorder(e)}),ns(12,SW,15,13,"ion-item",9),ls(),ls()),2&e&&(os("translucent",!0),xo(6),Xs(Ou(7,6,"lang.circuit")),xo(3),os("ngIf",t.editMode),xo(1),os("ngIf",0===t.visaWorkflow.length),xo(1),os("disabled",!t.editMode),xo(1),os("ngForOf",t.visaWorkflow))},directives:[XC,DS,LC,RC,KC,PS,UC,mh,mS,gh,nS,bS,nA,hm,Ym,sS,NC,Jx,aS,hS,vS,MC,kS,tA,xS],pipes:[gE],styles:[".current[_ngcontent-%COMP%]{border-left:5px solid var(--ion-color-success)}.primary[_ngcontent-%COMP%]{color:var(--ion-color-primary)}.secondary[_ngcontent-%COMP%]{color:var(--ion-color-secondary)}.success[_ngcontent-%COMP%]{color:var(--ion-color-success)}.danger[_ngcontent-%COMP%]{color:var(--ion-color-danger)}.avatar-user[_ngcontent-%COMP%]{width:50px;height:50px;border:solid var(--ion-color-secondary)}ion-select[_ngcontent-%COMP%]{font-size:12px}.no-ripple[_ngcontent-%COMP%]{--ripple-color:transparent}.item-select-disabled[_ngcontent-%COMP%]   ion-label[_ngcontent-%COMP%], .select-disabled[_ngcontent-%COMP%]{opacity:1}.item-select-disabled[_ngcontent-%COMP%]   ion-select[_ngcontent-%COMP%]::part(icon){display:none!important}.valProcess[_ngcontent-%COMP%]{color:var(--ion-color-success)}.refProcess[_ngcontent-%COMP%], .stopProcess[_ngcontent-%COMP%], .valProcess[_ngcontent-%COMP%]{display:flex;justify-content:flex-start;font-size:12px;text-align:right;padding-top:10px;padding-bottom:10px}.refProcess[_ngcontent-%COMP%], .stopProcess[_ngcontent-%COMP%]{color:var(--ion-color-danger)}"]}),PW);function DW(e,t){if(1&e){var n=fs();ss(0,"ion-item",9),ms("click",function(){nn(n);var e=t.$implicit;return ks().goTo(e.id)}),ss(1,"div"),ss(2,"ion-label",10),Qs(3),ls(),ss(4,"ion-label",11),Qs(5),Du(6,"shorten"),ls(),ls(),us(7,"ion-icon",12),ls()}if(2&e){var i=t.$implicit;xo(3),Xs(i.reference),xo(2),Xs(Tu(6,2,i.title,50,"..."))}}var OW,MW=((OW=function(){function e(t){A(this,e),this.router=t}return m(e,[{key:"ngOnInit",value:function(){}},{key:"goTo",value:function(e){this.router.navigate(["/documents/"+e])}}]),e}()).\u0275fac=function(e){return new(e||OW)(rs(jk))},OW.\u0275cmp=ft({type:OW,selectors:[["app-associated-documents"]],inputs:{associatedDocuments:"associatedDocuments"},decls:14,vars:6,consts:[[3,"translucent"],["color","primary"],["slot","start"],["disabled",""],["slot","icon-only","name","link-outline"],[1,"ion-text-center"],[1,"secondary"],[2,"display","flex","flex-direction","column","height","100%"],["class","doc-item",3,"click",4,"ngFor","ngForOf"],[1,"doc-item",3,"click"],[1,"sub-label"],["color","primary",1,"ion-text-wrap"],["slot","end","color","medium","name","arrow-forward-outline"]],template:function(e,t){1&e&&(ss(0,"ion-header",0),ss(1,"ion-toolbar",1),ss(2,"ion-buttons",2),ss(3,"ion-button",3),us(4,"ion-icon",4),ls(),ls(),ss(5,"ion-title",5),ss(6,"b",6),Qs(7),ls(),Qs(8),Du(9,"translate"),ls(),ls(),ls(),ss(10,"ion-content"),ss(11,"div",7),ss(12,"ion-list"),ns(13,DW,8,6,"ion-item",8),ls(),ls(),ls()),2&e&&(os("translucent",!0),xo(7),Xs(null==t.associatedDocuments?null:t.associatedDocuments.length),xo(1),Ks("\xa0",Ou(9,4,"lang.associatedDocuments"),""),xo(5),os("ngForOf",t.associatedDocuments))},directives:[XC,DS,LC,RC,KC,PS,UC,sS,gh,nS,aS],pipes:[gE,YM],styles:[".mat-list-item[_ngcontent-%COMP%]{height:auto!important;text-align:center}.mat-card[_ngcontent-%COMP%]{box-shadow:none;border:1px solid #e0e0e0}.mat-icon[_ngcontent-%COMP%]{height:auto}img[_ngcontent-%COMP%]{pointer-events:none}.secondary[_ngcontent-%COMP%]{color:var(--ion-color-secondary)}.doc-item[_ngcontent-%COMP%]{--inner-padding-bottom:10px;--inner-padding-top:10px;cursor:pointer}.sub-label[_ngcontent-%COMP%]{font-size:11px;--color:var(--ion-color-medium)}"]}),OW);function TW(e,t){1&e&&(ss(0,"ion-card"),ss(1,"ion-item",13),us(2,"ion-icon",14),ss(3,"ion-label"),Qs(4),Du(5,"translate"),ls(),ls(),ls()),2&e&&(xo(4),Xs(Ou(5,1,"lang.docIsInMailGroup")))}function IW(e,t){if(1&e&&(ss(0,"ion-item",8),ss(1,"ion-label",9),Qs(2),Du(3,"translate"),ls(),us(4,"ion-input",10),ls()),2&e){var n=ks();os("title",n.mainDocument.description),xo(2),Xs(Ou(3,3,"lang.description")),xo(2),os("value",n.mainDocument.description)}}function RW(e,t){if(1&e&&(ss(0,"ion-item",8),ss(1,"ion-label",9),Qs(2),Du(3,"translate"),ls(),us(4,"ion-input",10),ls()),2&e){var n=ks();os("title",n.mainDocument.deadline),xo(2),Xs(Ou(3,3,"lang.processingDeadline")),xo(2),os("value",n.mainDocument.deadline)}}function LW(e,t){if(1&e&&(ss(0,"ion-item"),ss(1,"ion-label",9),Qs(2),Du(3,"translate"),ls(),us(4,"ion-input",10),ls()),2&e){var n=t.$implicit;xo(2),Xs(Ou(3,2,n.label)),xo(2),os("value",n.value)}}var FW,BW=((FW=function(){function e(t,n){A(this,e),this.signaturesService=t,this.functionsService=n,this.loading=!1}return m(e,[{key:"ngOnInit",value:function(){}}]),e}()).\u0275fac=function(e){return new(e||FW)(rs(PE),rs(IU))},FW.\u0275cmp=ft({type:FW,selectors:[["app-main-document-detail"]],inputs:{mainDocument:"mainDocument"},decls:29,vars:23,consts:[[3,"translucent"],["color","primary"],["slot","start"],["disabled",""],["slot","icon-only","name","information-circle"],[1,"ion-text-center"],[4,"ngIf"],["lines","full",1,"ion-no-margin"],[3,"title"],["color","secondary","position","floating"],["readonly","",3,"value"],[3,"title",4,"ngIf"],[4,"ngFor","ngForOf"],["color","danger"],["name","alert-circle","slot","start"]],template:function(e,t){1&e&&(ss(0,"ion-header",0),ss(1,"ion-toolbar",1),ss(2,"ion-buttons",2),ss(3,"ion-button",3),us(4,"ion-icon",4),ls(),ls(),ss(5,"ion-title",5),Qs(6),Du(7,"translate"),ls(),ls(),ls(),ss(8,"ion-content"),ns(9,TW,6,3,"ion-card",6),ss(10,"ion-list",7),ss(11,"ion-item",8),ss(12,"ion-label",9),Qs(13),Du(14,"translate"),ls(),us(15,"ion-input",10),ls(),ns(16,IW,5,5,"ion-item",11),ns(17,RW,5,5,"ion-item",11),ss(18,"ion-item",8),ss(19,"ion-label",9),Qs(20),Du(21,"translate"),ls(),us(22,"ion-input",10),ls(),ss(23,"ion-item",8),ss(24,"ion-label",9),Qs(25),Du(26,"translate"),ls(),us(27,"ion-input",10),ls(),ns(28,LW,5,4,"ion-item",12),ls(),ls()),2&e&&(os("translucent",!0),xo(6),Xs(Ou(7,15,"lang.informations")),xo(3),os("ngIf",!t.functionsService.empty(t.mainDocument.mailingId)),xo(2),os("title",t.mainDocument.sender),xo(2),Xs(Ou(14,17,"lang.emittedBy")),xo(2),os("value",t.mainDocument.sender),xo(1),os("ngIf",null!=t.mainDocument.description),xo(1),os("ngIf",null!=t.mainDocument.deadline),xo(1),os("title",t.mainDocument.reference),xo(2),Xs(Ou(21,19,"lang.reference")),xo(2),os("value",t.mainDocument.reference),xo(1),os("title",t.mainDocument.title),xo(2),Xs(Ou(26,21,"lang.subject")),xo(2),os("value",t.mainDocument.title),xo(1),os("ngForOf",t.mainDocument.metadata))},directives:[XC,DS,LC,RC,KC,PS,UC,mh,sS,nS,aS,tS,nA,gh,FC],pipes:[gE],styles:[".mat-list-item[_ngcontent-%COMP%]{height:auto!important;text-align:center}.mat-card[_ngcontent-%COMP%]{box-shadow:none;border:1px solid #e0e0e0}.mat-icon[_ngcontent-%COMP%]{height:auto}.current[_ngcontent-%COMP%]{box-shadow:0 0 20px 0 #656565}.panel-header[_ngcontent-%COMP%]{box-shadow:0 0 10px 0 #656565;color:#fff;background:#135f7f;height:65px;justify-content:center;font-size:20px;align-items:center}.panel-content[_ngcontent-%COMP%], .panel-header[_ngcontent-%COMP%]{display:flex;position:relative}.panel-content[_ngcontent-%COMP%]{flex-direction:column;height:100%;overflow:hidden}.closePanel[_ngcontent-%COMP%]{position:absolute;left:0;font-size:24px}.panel-content[_ngcontent-%COMP%]    .mat-form-field-label{color:#f99830}.panel-content[_ngcontent-%COMP%]    .mat-input-element:disabled{color:#135f7f}"]}),FW),VW=function(e,t,n,i){return new(n||(n=Promise))(function(r,o){function a(e){try{l(i.next(e))}catch(t){o(t)}}function s(e){try{l(i.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((i=i.apply(e,t||[])).next())})},zW=["mainContent"],NW=["img"],HW=["snav"],jW=["dragElem"],UW=["appDocumentNotePad"],WW=["appDocumentList"],GW=["rightContent"],qW=["pagesList"];function YW(e,t){if(1&e){var n=fs();ss(0,"ion-segment-button",20),ms("click",function(){return nn(n),ks(2).openAssociatedDocuments()}),ss(1,"ion-label",11),Qs(2),Du(3,"ucfirst"),Du(4,"translate"),ls(),us(5,"ion-icon",21),ss(6,"ion-badge",15),Qs(7),ls(),ls()}if(2&e){var i=ks(2);xo(2),Xs(Ou(3,2,Ou(4,4,"lang.associatedDocuments"))),xo(5),Ks(" ",i.mainDocument.linkedDocuments.length," ")}}function ZW(e,t){if(1&e){var n=fs();ss(0,"ion-buttons",22),ss(1,"ion-button",23),ms("click",function(e){return nn(n),ks(2).openAction(e)}),us(2,"ion-icon",24),ls(),ls()}}function QW(e,t){if(1&e){var n=fs();ss(0,"ion-header",6),ss(1,"ion-toolbar",7),ss(2,"ion-buttons",8),us(3,"ion-menu-button"),ls(),ss(4,"ion-segment",9),ms("ionChange",function(e){return nn(n),ks().signaturesService.currentToobal=e.detail.value}),ss(5,"ion-segment-button",10),ms("click",function(){return nn(n),ks().openMainDocumentDetail()}),ss(6,"ion-label",11),Qs(7),Du(8,"translate"),ls(),us(9,"ion-icon",12),ls(),ss(10,"ion-segment-button",13),ms("click",function(){return nn(n),ks().openDocumentList()}),ss(11,"ion-label",11),Qs(12),Du(13,"ucfirst"),Du(14,"translate"),ls(),us(15,"ion-icon",14),ss(16,"ion-badge",15),Qs(17),ls(),ls(),ns(18,YW,8,6,"ion-segment-button",16),ss(19,"ion-segment-button",17),ms("click",function(){return nn(n),ks().openVisaWorkflow()}),ss(20,"ion-label",11),Qs(21),Du(22,"translate"),ls(),us(23,"ion-icon",18),ss(24,"ion-badge",15),Qs(25),ls(),ls(),ls(),ns(26,ZW,3,0,"ion-buttons",19),ls(),ls()}if(2&e){var i=ks();os("translucent",!0),xo(4),os("value",i.signaturesService.currentToobal),xo(3),Xs(Ou(8,9,"lang.informations")),xo(5),Xs(Ou(13,11,Ou(14,13,"lang.attachedElements"))),xo(5),Ks(" ",i.mainDocument.attachments.length+1," "),xo(1),os("ngIf",void 0!==i.mainDocument.linkedDocuments&&i.mainDocument.linkedDocuments.length>0),xo(3),Xs(Ou(22,15,"lang.circuit")),xo(4),Ks(" ",i.mainDocument.workflow.length," "),xo(1),os("ngIf",!i.detailMode)}}function XW(e,t){1&e&&(ss(0,"ion-toolbar",25),ss(1,"ion-label",26),Qs(2),Du(3,"translate"),ls(),ls()),2&e&&(xo(2),Xs(Ou(3,1,"lang.substitutionInfo")))}function KW(e,t){1&e&&(ss(0,"ion-toolbar",27),ss(1,"ion-label",26),Qs(2),Du(3,"translate"),ls(),ls()),2&e&&(xo(2),Xs(Ou(3,1,"lang.convertingDocument")))}function JW(e,t){if(1&e){var n=fs();ss(0,"ion-fab-button",40),ms("movingOffset",function(){return nn(n),ks(3).signaturesService.dragging=!0})("endOffset",function(){return nn(n),ks(3).signaturesService.dragging=!1})("click",function(){return nn(n),ks(3).expandedNote=!0}),Du(1,"translate"),us(2,"ion-icon",41),ls()}if(2&e){ks(2);var i=is(7),r=ks();os("bounds",i)("inBounds",!0)("title",Ou(1,4,"lang.expandNote"))("disabled",r.signaturesService.dragging)}}function $W(e,t){if(1&e&&(cs(0),ss(1,"div",48),Qs(2),ls(),ss(3,"div",49),Qs(4),ls(),ds()),2&e){var n=ks(4);xo(2),Js(" ",n.mainDocument.notes.creator," (",n.mainDocument.notes.creationDate,") : "),xo(2),Ks(" ",n.mainDocument.notes.value," ")}}function eG(e,t){if(1&e&&(ss(0,"div"),ss(1,"div",48),Qs(2),ls(),ss(3,"div",49),Qs(4),ls(),ls()),2&e){var n=ks().$implicit;xo(2),Js(" ",n.userDisplay," (",n.processDate,") : "),xo(2),Ks(" ",n.note," ")}}function tG(e,t){if(1&e&&(cs(0),ns(1,eG,5,3,"div",3),ds()),2&e){var n=t.$implicit;xo(1),os("ngIf",n.note)}}function nG(e,t){if(1&e){var n=fs();ss(0,"div",42),ms("movingOffset",function(){return nn(n),ks(3).signaturesService.dragging=!0})("endOffset",function(){return nn(n),ks(3).signaturesService.dragging=!1}),ss(1,"div",43),us(2,"i",44),ss(3,"span",45),Qs(4),Du(5,"translate"),ls(),ss(6,"i",46),ms("click",function(){return nn(n),ks(3).expandedNote=!1}),Du(7,"translate"),ls(),ls(),ns(8,$W,5,3,"ng-container",3),ns(9,tG,2,1,"ng-container",47),ls()}if(2&e){ks(2);var i=is(7),r=ks();os("bounds",i)("inBounds",!0),xo(4),Xs(Ou(5,6,"lang.note")),xo(2),os("title",Ou(7,8,"lang.collapseNote")),xo(2),os("ngIf",null!=r.mainDocument.notes),xo(1),os("ngForOf",r.mainDocument.workflow)}}function iG(e,t){if(1&e&&(cs(0),ns(1,JW,3,6,"ion-fab-button",38),ns(2,nG,10,10,"div",39),ds()),2&e){var n=ks(2);xo(1),os("ngIf",!n.expandedNote),xo(1),os("ngIf",n.expandedNote)}}function rG(e,t){1&e&&us(0,"app-document-note-list")}function oG(e,t){1&e&&us(0,"app-document-sign-list",50),2&e&&(ks(),os("bounds",is(7)))}function aG(e,t){1&e&&us(0,"app-document-date-list",50),2&e&&(ks(),os("bounds",is(7)))}function sG(e,t){if(1&e){var n=fs();ss(0,"ion-img",51,52),ms("ionImgDidLoad",function(e){return nn(n),ks(2).imageLoaded(e)}),ls()}if(2&e){var i=ks(2);Ls("width",i.signaturesService.workingAreaWidth,"px")("height",i.signaturesService.workingAreaHeight,"px"),os("src",i.docList[i.currentDoc].imgContent[i.pageNum])}}function lG(e,t){if(1&e&&(ss(0,"ion-select-option",59),Qs(1),ls()),2&e){var n=t.index,i=ks(3);os("value",n+1)("disabled",n+1===i.pageNum),xo(1),Xs(n+1)}}var uG=function(e){return{cssClass:e}};function cG(e,t){if(1&e){var n=fs();ss(0,"section",53),ss(1,"div",54),Qs(2),ls(),ss(3,"div",55),ms("click",function(e){return nn(n),ks(2).openSelect(e)}),Qs(4),Du(5,"translate"),ls(),ss(6,"ion-select",56,57),ms("ngModelChange",function(e){return nn(n),ks(2).pageNum=e})("ionChange",function(e){return nn(n),ks(2).goTo(e.target.value)}),ns(8,lG,2,3,"ion-select-option",58),ls(),ls()}if(2&e){var i=ks(2);xo(2),Ks(" ",i.docList[i.currentDoc].title," "),xo(2),$s("",Ou(5,7,"lang.page")," ",i.pageNum," / ",i.totalPages,""),xo(2),os("ngModel",i.pageNum)("interfaceOptions",Au(9,uG,i.totalPages>10?"popover-class":"custom-popover-class")),xo(2),os("ngForOf",i.pagesArray(i.totalPages))}}function dG(e,t){1&e&&(ss(0,"ion-item",60),us(1,"ion-icon",61),ss(2,"ion-label"),Qs(3),Du(4,"translate"),ls(),ls()),2&e&&(xo(3),Xs(Ou(4,1,"lang.certifiedDocument")))}function hG(e,t){if(1&e){var n=fs();ss(0,"ion-fab-button",64),ms("click",function(){return nn(n),ks(3).prevPage()}),us(1,"ion-icon",65),ls()}}function fG(e,t){if(1&e){var n=fs();ss(0,"ion-fab-button",66),ms("click",function(){return nn(n),ks(3).nextPage()}),us(1,"ion-icon",67),ls()}}function pG(e,t){if(1&e&&(cs(0),ns(1,hG,2,0,"ion-fab-button",62),ns(2,fG,2,0,"ion-fab-button",63),ds()),2&e){var n=ks(2);xo(1),os("ngIf",n.pageNum>1&&!n.loadingImage),xo(1),os("ngIf",n.pageNum<n.totalPages&&!n.loadingImage)}}function gG(e,t){if(1&e){var n=fs();ss(0,"ion-content",null,28),ns(2,iG,3,2,"ng-container",3),ss(3,"div",29),ss(4,"drag-scroll",30,31),ms("click",function(e){nn(n);var t=ks();return 0==t.currentDoc&&!t.detailMode&&t.openAction(e)}),ss(6,"div",32,33),ns(8,rG,1,0,"app-document-note-list",3),ns(9,oG,1,1,"app-document-sign-list",34),ns(10,aG,1,1,"app-document-date-list",34),ns(11,sG,2,5,"ion-img",35),ls(),ls(),ls(),ns(12,cG,9,11,"section",36),ns(13,dG,5,3,"ion-item",37),ns(14,pG,3,2,"ng-container",3),ls()}if(2&e){var i=ks();xo(2),os("ngIf",null!=i.mainDocument.notes||i.hasWorkflowNotes),xo(2),Ls("max-width",i.signaturesService.workingAreaWidth,"px"),os("drag-scroll-disabled",(i.signaturesService.dragging||i.signaturesService.resizing)&&i.signaturesService.mobileMode)("drag-disabled",(i.signaturesService.dragging||i.signaturesService.resizing)&&!i.signaturesService.mobileMode),xo(2),Ls("width",i.signaturesService.workingAreaWidth,"px")("height",i.signaturesService.workingAreaHeight,"px"),xo(2),os("ngIf",0==i.currentDoc&&!i.loadingImage),xo(1),os("ngIf",0===i.currentDoc&&!i.loadingImage&&i.signaturesService.signaturesContent[i.pageNum]),xo(1),os("ngIf",0===i.currentDoc&&!i.loadingImage&&i.signaturesService.datesContent[i.pageNum]),xo(1),os("ngIf",void 0!==i.docList[i.currentDoc]&&!i.functionsService.empty(i.docList[i.currentDoc].imgContent[i.pageNum])),xo(1),os("ngIf",!i.signaturesService.dragging&&!i.signaturesService.resizing&&i.docList[i.currentDoc]),xo(1),os("ngIf",i.mainDocument.isCertified),xo(1),os("ngIf",!i.signaturesService.dragging&&!i.signaturesService.resizing&&!i.loadingImage)}}function vG(e,t){if(1&e&&us(0,"ion-icon",72),2&e){var n=ks().$implicit;os("slot","start")("name",n.logo)}}function mG(e,t){if(1&e){var n=fs();ss(0,"ion-button",70),ms("click",function(){nn(n);var e=t.$implicit;return ks(2).launchEvent(e)}),ns(1,vG,1,2,"ion-icon",71),ss(2,"ion-label",26),Qs(3),Du(4,"translate"),ls(),ls()}if(2&e){var i=t.$implicit;os("disabled","CONVERTING"===ks(2).mainDocument.status)("color",i.color),xo(1),os("ngIf",""!==i.logo),xo(2),Xs(Ou(4,4,i.label))}}function yG(e,t){if(1&e&&(ss(0,"ion-footer",68),ns(1,mG,5,6,"ion-button",69),ls()),2&e){var n=ks();xo(1),os("ngForOf",n.actionsList)}}function bG(e,t){1&e&&us(0,"app-visa-workflow",77),2&e&&os("visaWorkflow",ks(2).mainDocument.workflow)}function wG(e,t){if(1&e){var n=fs();ss(0,"app-document-list",78,79),ms("triggerEvent",function(e){return nn(n),ks(2).loadDoc(e)}),ls()}if(2&e){var i=ks(2);os("currentDocId",i.currentDoc)("docList",i.docList)}}function _G(e,t){1&e&&us(0,"app-associated-documents",80,81),2&e&&os("associatedDocuments",ks(2).mainDocument.linkedDocuments)}function kG(e,t){1&e&&us(0,"app-main-document-detail",82,83),2&e&&os("mainDocument",ks(2).mainDocument)}function xG(e,t){if(1&e&&(ns(0,bG,1,1,"app-visa-workflow",73),ns(1,wG,2,2,"app-document-list",74),ns(2,_G,2,1,"app-associated-documents",75),ns(3,kG,2,1,"app-main-document-detail",76)),2&e){var n=ks();os("ngIf","visaWorkflow"==n.signaturesService.currentToobal),xo(1),os("ngIf","documentList"==n.signaturesService.currentToobal),xo(1),os("ngIf","associatedDocuments"==n.signaturesService.currentToobal),xo(1),os("ngIf","mainDocumentDetail"==n.signaturesService.currentToobal)}}var AG,CG=((AG=function(){function e(t,n,i,r,o,a,s,l,u,c,d,h,f,p,g,v,m,y,b,w,_,k,x){A(this,e),this.translate=t,this.router=n,this.route=i,this.http=r,this.signaturesService=o,this.notificationService=a,this.cookieService=s,this.sanitizer=l,this.dialog=u,this.bottomSheet=c,this.authService=d,this.localStorage=h,this.menu=f,this.actionSheetController=p,this.loadingController=g,this.viewContainerRef=v,this.modalController=m,this.pdfViewerService=y,this.alertController=b,this.signatureMethodService=w,this.navCtrl=_,this.functionsService=k,this.actionsService=x,this.posX=0,this.posY=0,this.enterApp=!0,this.detailMode=!1,this.pageNum=1,this.signaturesContent=[],this.currentDoc=0,this.docList=[],this.actionsList=[{id:2,label:"lang.reject",color:"danger",logo:"thumbs-down-outline",event:"refuseDocument"},{id:3,label:"lang.signatures",color:"",logo:"",event:"openSignatures"},{id:1,label:"lang.validate",color:"success",logo:"thumbs-up-outline",event:"validateDocument"}],this.freezeSidenavClose=!1,this.startX=0,this.startY=0,this.widthDoc="100%",this.resetDragPos=!1,this.mainDocument={id:0,status:status,attachments:[],workflow:[]},this.loadingUI=!1,this.expandedNote=!0,this.hasWorkflowNotes=!1,this.currentTool="info",this.load=null,this.dragging=!1,this.resizing=!1,this.pdfname=null,this.loadingdocument=!0,this.loadingpdf=!1,this.loadingImage=!0,this.fileContent="",this.draggable=!1}return m(e,[{key:"imageLoaded",value:function(e){this.getImageDimensions(!0),this.load.dismiss(),this.menu.enable(!0,"right-menu"),this.loadingImage=!1,document.getElementsByClassName("drag-scroll-content")[0].scrollTop=0}},{key:"getImageDimensions",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=new Image;n.onload=function(n){e.signaturesService.workingAreaWidth=n.target.naturalWidth,e.signaturesService.workingAreaHeight=n.target.naturalHeight,t&&e.getAreaDimension()},n.src=this.docList[this.currentDoc].imgContent[this.pageNum]}},{key:"getAreaDimension",value:function(){var e=100*this.mainContent.el.offsetWidth/this.signaturesService.workingAreaWidth;this.signaturesService.workingAreaWidth=e*this.signaturesService.workingAreaWidth/100,this.signaturesService.workingAreaHeight=e*this.signaturesService.workingAreaHeight/100}},{key:"openAction",value:function(e){return VW(this,void 0,void 0,regeneratorRuntime.mark(function t(){var n,i,r=this;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return this.posX=e.clientX,this.posY=e.clientY,n=[],this.checkEmptyNote()||n.push({text:this.translate.instant("lang.cancelPreviousNote"),icon:"arrow-undo-outline",handler:function(){r.undoTag()}}),this.signaturesService.stampLock||n.push({text:this.translate.instant("lang.affixSignature"),icon:"ribbon-outline",handler:function(){r.openSignatures()}}),n.push({text:this.translate.instant("lang.annotateDocument"),icon:"receipt-outline",handler:function(){r.openNoteEditor()}}),this.checkEmptiness()||n.push({text:this.translate.instant("lang.deleteAll"),icon:"color-wand-outline",handler:function(){r.removeTags()}}),t.next=5,this.actionSheetController.create({header:"Actions",cssClass:"my-custom-class",buttons:n});case 5:return i=t.sent,t.next=8,i.present();case 8:case"end":return t.stop()}},t,this)}))}},{key:"openSignatures",value:function(){return VW(this,void 0,void 0,regeneratorRuntime.mark(function e(){var t,n,i;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.modalController.create({component:aU,cssClass:"my-custom-class",componentProps:{currentWorflow:this.mainDocument.workflow.filter(function(e){return!0===e.current})[0],content:this.fileContent}});case 2:return t=e.sent,e.next=5,t.present();case 5:return e.next=7,t.onWillDismiss();case 7:n=e.sent,i=n.data,this.dragging=!1,void 0!==i&&("success"===i||void 0!==i.redirectPage&&this.goTo(i.redirectPage));case 10:case"end":return e.stop()}},e,this)}))}},{key:"openNoteEditor",value:function(){return VW(this,void 0,void 0,regeneratorRuntime.mark(function e(){var t;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.modalController.create({component:mU,cssClass:"fullscreen",componentProps:{precentScrollLeft:this.posX,precentScrollTop:this.posY,content:this.docList[this.currentDoc].imgContent[this.pageNum]}});case 2:return t=e.sent,e.next=5,t.present();case 5:return e.next=7,t.onWillDismiss();case 7:case"end":return e.stop()}},e,this)}))}},{key:"scrollToElem",value:function(){var e=this.signaturesService.signaturesContent[this.pageNum][this.signaturesService.signaturesContent[this.pageNum].length-1].positionY-75-($("#myBounds")[0].getBoundingClientRect().top-70)-$(window).height();document.getElementsByClassName("drag-scroll-content")[0].scrollTo(1e3,-e)}},{key:"ionViewWillEnter",value:function(){this.signaturesService.initTemplate(this.rightContent,this.viewContainerRef,"rightContent")}},{key:"ngOnInit",value:function(){var e=this;this.menu.enable(!1,"right-menu"),this.menu.enable(!0,"left-menu"),this.route.params.subscribe(function(t){void 0!==t.id&&e.loadingController.create({message:e.translate.instant("lang.loadingDocument"),spinner:"dots"}).then(function(n){e.load=n,e.load.present(),e.http.get("../rest/documents/"+t.id).pipe(uw(function(t){e.mainDocument=t.document,e.mainDocument.workflow=e.mainDocument.workflow.map(function(t){return t.note&&(e.hasWorkflowNotes=!0),t.userSignatureModes.unshift("visa"),Object.assign(Object.assign({},t),{role:"visa"===t.mode?"visa":t.signatureMode,modes:t.userSignatureModes})}),e.totalPages=e.mainDocument.pages,e.signaturesService.mainDocumentId=e.mainDocument.id,e.signaturesService.totalPage=e.mainDocument.pages,e.menu.enable(!0,"right-menu"),e.initDoc();var n=e.mainDocument.workflow.filter(function(e){return!0===e.current});e.mainDocument.isCertified=e.mainDocument.workflow.filter(function(e){return"REF"!==e.status&&"STOP"!==e.status&&"sign"===e.mode&&"stamp"!==e.signatureMode&&null!==e.processDate}).length>0,0===n.length||e.mainDocument.readOnly?(e.actionsList=[{id:4,label:"lang.back",color:"medium",logo:"chevron-back-outline",event:"back"}],e.detailMode=!0):(e.signaturesService.stampLock=e.mainDocument.isCertified&&("stamp"===n[0].signatureMode&&"sign"===n[0].mode||"visa"===n[0].mode),n[0].userId!==e.authService.user.id?e.http.get("../rest/users/"+n[0].userId+"/signatures").subscribe(function(t){e.signaturesService.signaturesListSubstituted=t.signatures}):e.signaturesService.signaturesListSubstituted=[],n[0].datePositions.length>0&&e.functionsService.empty(e.signaturesService.datesContent)&&n[0].datePositions.forEach(function(t){e.signaturesService.datesContent[t.page]||(e.signaturesService.datesContent[t.page]=[]),e.signaturesService.datesContent[t.page][0]={width:t.width,height:t.height,positionX:t.positionX,positionY:t.positionY,font:t.font,size:t.size,color:t.color,format:t.format}})),e.docList.push({id:e.mainDocument.id,title:e.mainDocument.title,pages:e.mainDocument.pages,imgContent:[],imgUrl:"../rest/documents/"+e.mainDocument.id+"/thumbnails"}),e.mainDocument.attachments.forEach(function(t){e.docList.push({id:t.id,title:t.title,pages:t.pages,imgContent:[],imgUrl:"../rest/attachments/"+t.id+"/thumbnails"})}),e.menu.enable(!0,"right-menu"),e.renderImage(),e.loadingdocument=!1}),Zb(function(t){return console.log("error",t),setTimeout(function(){e.load.dismiss()},200),e.notificationService.handleErrors(t),e.router.navigate(["/home"]),Ty(!1)})).subscribe()})})}},{key:"renderPdf",value:function(){var e=this;this.http.get("../rest/documents/"+this.docList[this.currentDoc].id+"/content").subscribe(function(t){e.pdfname="data:application/pdf;base64,"+t.encodedDocument,e.loadingpdf=!0})}},{key:"onPagesLoaded",value:function(e){return VW(this,void 0,void 0,regeneratorRuntime.mark(function t(){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:this.totalPages=e.pagesCount,this.exportAsImage();case 1:case"end":return t.stop()}},t,this)}))}},{key:"exportAsImage",value:function(){return VW(this,void 0,void 0,regeneratorRuntime.mark(function e(){var t;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.pdfViewerService.getPageAsImage(this.pageNum,{width:1e3});case 2:t=e.sent,this.docList[this.currentDoc].imgContent[this.pageNum]=t,this.loadingpdf=!1,this.load.dismiss();case 4:case"end":return e.stop()}},e,this)}))}},{key:"renderImage",value:function(){var e=this;void 0===this.docList[this.currentDoc].imgContent[this.pageNum]&&(0===this.currentDoc?this.http.get("../rest/documents/"+this.docList[this.currentDoc].id+"/thumbnails/"+this.pageNum).pipe(uw(function(t){e.docList[e.currentDoc].imgContent[e.pageNum]="data:image/png;base64,"+t.fileContent,e.fileContent=t.fileContent}),Zb(function(t){return e.load.dismiss(),e.notificationService.handleErrors(t),e.router.navigate(["/home"]),Ty(!1)})).subscribe():this.http.get("../rest/attachments/"+this.docList[this.currentDoc].id+"/thumbnails/"+this.pageNum).pipe(uw(function(t){e.docList[e.currentDoc].imgContent[e.pageNum]="data:image/png;base64,"+t.fileContent}),Zb(function(t){return e.load.dismiss(),e.notificationService.handleErrors(t),e.router.navigate(["/home"]),Ty(!1)})).subscribe())}},{key:"initDoc",value:function(){this.docList=[],this.signaturesService.signaturesContent=[],this.signaturesService.notesContent=[],this.signaturesService.datesContent=[],this.signaturesService.currentToobal="mainDocumentDetail";var e=this.localStorage.get(this.mainDocument.id.toString());if(e){var t=JSON.parse(e);this.signaturesService.notesContent=void 0!==t.note?t.note:[],this.signaturesService.signaturesContent=void 0!==t.sign?t.sign:[],this.signaturesService.datesContent=void 0!==t.date?t.date:[]}this.signaturesService.currentAction=0,this.signaturesService.currentPage=1,this.pageNum=1,this.signaturesContent.currentDoc=1,this.currentDoc=0}},{key:"testDrag",value:function(e){var t=e.source.getRootElement(),n=t.getBoundingClientRect(),i=this.getPosition(t);this.signaturesService.y=n.y-i.top,this.signaturesService.x=n.x-i.left}},{key:"getPosition",value:function(e){for(var t=0,n=0;e&&!isNaN(e.offsetLeft)&&!isNaN(e.offsetTop);)t+=e.offsetLeft-e.scrollLeft,n+=e.offsetTop-e.scrollTop,e=e.offsetParent;return{top:n,left:t}}},{key:"zoomForNotes",value:function(){this.widthDoc="200%",this.signaturesService.scale=2,$(".example-box").css({transform:"translate3d("+this.signaturesService.x*this.signaturesService.scale+"px, "+this.signaturesService.y*this.signaturesService.scale+"px, 0px)"}),this.signaturesService.workingAreaHeight*=this.signaturesService.scale,this.signaturesService.workingAreaWidth*=this.signaturesService.scale}},{key:"zoomForView",value:function(){var e=this;this.resetDragPos=!0,this.widthDoc="100%",this.signaturesService.workingAreaHeight=this.signaturesService.workingAreaHeight/2,this.signaturesService.workingAreaWidth=this.signaturesService.workingAreaWidth/2,setTimeout(function(){e.resetDragPos=!1},200),this.signaturesService.scale=1}},{key:"prevPage",value:function(){this.loadingImage=!0,this.pageNum--,0===this.pageNum&&(this.pageNum=1),0===this.currentDoc&&(this.signaturesService.currentPage=this.pageNum),this.renderImage()}},{key:"nextPage",value:function(){this.loadingImage=!0,this.pageNum>=this.totalPages?this.pageNum=this.totalPages:this.pageNum++,0===this.currentDoc&&(this.signaturesService.currentPage=this.pageNum),this.renderImage()}},{key:"goTo",value:function(e){var t=this;this.loadingController.create({message:this.translate.instant("lang.loadingDocument"),spinner:"dots"}).then(function(e){t.load=e,t.load.present(),t.loadingImage=!0,t.load.dismiss()}),this.pageNum=e,0===this.currentDoc&&(this.signaturesService.currentPage=this.pageNum),this.renderImage()}},{key:"pagesArray",value:function(e){return Array(e)}},{key:"initWorkingArea",value:function(){}},{key:"refuseDocument",value:function(){return VW(this,void 0,void 0,regeneratorRuntime.mark(function e(){var t,n,i=this;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=this.translate.instant("lang.rejectDocumentWarning"),0===this.signaturesService.notesContent.length&&(t=this.translate.instant("lang.refuseDocumentWithoutNote")),e.next=4,this.alertController.create({cssClass:"custom-alert-danger",header:this.translate.instant("lang.reject"),message:t,inputs:[{name:"paragraph",id:"paragraph",type:"textarea",placeholder:this.translate.instant("lang.addReason")}],buttons:[{text:this.translate.instant("lang.reject"),handler:function(e){return VW(i,void 0,void 0,regeneratorRuntime.mark(function t(){var n,i;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.actionsService.checkGroupMail(this.mainDocument,"reject");case 2:return n=t.sent,t.next=5,this.signatureMethodService.launchDefaultMode(e.paragraph,n);case 5:i=t.sent,this.functionsService.empty(i)||(this.bottomSheet.open(bU,{disableClose:!0,direction:"ltr"}),this.localStorage.remove(this.mainDocument.id.toString()));case 7:case"end":return t.stop()}},t,this)}))}}]});case 4:return n=e.sent,e.next=7,n.present();case 7:case"end":return e.stop()}},e,this)}))}},{key:"validateDocument",value:function(e){return VW(this,void 0,void 0,regeneratorRuntime.mark(function e(){var t,n,i=this;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=this.translate.instant("lang.validateDocumentWarning"),0===this.signaturesService.signaturesContent.length&&0===this.signaturesService.notesContent.length&&(t=this.translate.instant("lang.validateDocumentWithoutSignOrNote")),this.signaturesService.stampLock&&(t=this.translate.instant("lang.certifiedDocumentMsg2")),e.next=4,this.alertController.create({cssClass:"custom-alert-success",header:this.translate.instant("lang.validate"),message:t,inputs:[{name:"paragraph",id:"paragraph",type:"textarea",placeholder:this.translate.instant("lang.addReason")}],buttons:[{text:this.translate.instant("lang.validate"),handler:function(e){return VW(i,void 0,void 0,regeneratorRuntime.mark(function t(){var n,i,r;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return n=this.mainDocument.workflow.filter(function(e){return!0===e.current})[0],t.next=3,this.actionsService.checkGroupMail(this.mainDocument,"validate");case 3:return i=t.sent,t.next=6,this.signatureMethodService.checkAuthenticationAndLaunchAction(n,e.paragraph,i);case 6:r=t.sent,this.functionsService.empty(r)||(this.bottomSheet.open(NU,{disableClose:!0,direction:"ltr"}),this.localStorage.remove(this.mainDocument.id.toString()));case 8:case"end":return t.stop()}},t,this)}))}}]});case 4:return n=e.sent,e.next=7,n.present();case 7:case"end":return e.stop()}},e,this)}))}},{key:"removeTags",value:function(){return VW(this,void 0,void 0,regeneratorRuntime.mark(function e(){var t,n=this;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return this.signaturesService.currentAction=0,e.next=3,this.alertController.create({header:this.translate.instant("lang.deleteNoteAndSignature"),buttons:[{text:this.translate.instant("lang.validate"),handler:function(){n.signaturesService.signaturesContent=[],n.signaturesService.notesContent=[],n.signaturesService.datesContent=[],n.localStorage.remove(n.mainDocument.id.toString()),n.notificationService.success("lang.noteAndSignatureDeleted")}}]});case 3:return t=e.sent,e.next=6,t.present();case 6:case"end":return e.stop()}},e,this)}))}},{key:"loadDoc",value:function(e){this.pageNum=1,this.currentDoc=e,this.totalPages=this.docList[e].pages}},{key:"launchEvent",value:function(e){this.backToDetails(),this.signaturesService.currentAction=e.id,this[e.event]()}},{key:"undoTag",value:function(){this.signaturesService.notesContent[this.pageNum]&&(this.signaturesService.notesContent[this.pageNum].pop(),this.localStorage.remove(this.mainDocument.id.toString()),this.localStorage.save(this.mainDocument.id.toString(),JSON.stringify({sign:this.signaturesService.signaturesContent,note:this.signaturesService.notesContent})),this.isEmptyNote()&&(this.signaturesService.notesContent=[]))}},{key:"checkEmptyNote",value:function(){return!this.signaturesService.notesContent[this.pageNum]||"undefined"===this.signaturesService.notesContent[this.pageNum]||0===this.signaturesService.notesContent[this.pageNum].length}},{key:"isEmptyNote",value:function(){for(var e=!0,t=1;t<=this.signaturesService.totalPage;t++)if(this.signaturesService.notesContent[t]&&this.signaturesService.notesContent[t].length>0){e=!1;break}return e}},{key:"checkEmptiness",value:function(){for(var e=!0,t=1;t<=this.signaturesService.totalPage;t++){if(this.signaturesService.datesContent[t]&&this.signaturesService.datesContent[t].length>0){e=!1;break}if(this.signaturesService.notesContent[t]&&this.signaturesService.notesContent[t].length>0){e=!1;break}if(this.signaturesService.signaturesContent[t]&&this.signaturesService.signaturesContent[t].length>0){e=!1;break}}return e}},{key:"openVisaWorkflow",value:function(){this.menu.open("right-menu"),this.signaturesService.currentToobal="visaWorkflow"}},{key:"openDocumentList",value:function(){this.menu.open("right-menu"),this.signaturesService.currentToobal="documentList"}},{key:"openAssociatedDocuments",value:function(){this.menu.open("right-menu"),this.signaturesService.currentToobal="associatedDocuments"}},{key:"openMainDocumentDetail",value:function(){this.menu.open("right-menu"),this.signaturesService.currentToobal="mainDocumentDetail"}},{key:"backToDetails",value:function(){this.signaturesService.currentToobal="mainDocumentDetail"}},{key:"deleteSubstution",value:function(){var e=this;confirm(this.translate.instant("lang.deleteSubstitution")+" ?")&&this.http.put("../rest/users/"+this.authService.user.id+"/substitute",{substitute:null}).subscribe(function(){e.authService.updateUserInfoWithTokenRefresh(),e.notificationService.success("lang.substitutionDeleted")})}},{key:"back",value:function(){this.navCtrl.back()}},{key:"ionViewWillLeave",value:function(){this.signaturesService.detachTemplate("rightContent"),this.loadingController.dismiss()}},{key:"openSelect",value:function(e){this.totalPages>1&&(this.pagesList.interface="popover",this.pagesList.open(e))}},{key:"fromHex",value:function(e){for(var t=new Uint8Array(e.length/2),n=0;n<e.length;n+=2){var i=e.slice(n,n+2);t[n/2]=parseInt(i,16)}return t.buffer}}]),e}()).\u0275fac=function(e){return new(e||AG)(rs(pE),rs(jk),rs(b_),rs(lb),rs(PE),rs(yE),rs(IM),rs(Wf),rs(kB),rs(jF),rs(DE),rs(EE),rs(uP),rs(aP),rs(lP),rs(uu),rs(cP),rs(mO),rs(sP),rs(zU),rs(aA),rs(IU),rs(LU))},AG.\u0275cmp=ft({type:AG,selectors:[["app-document"]],viewQuery:function(e,t){var n;1&e&&(Qu(zW,1),Qu(NW,1),Qu(HW,3),Qu(jW,1),Qu(UW,1),Qu(WW,1),Qu(GW,3),Qu(qW,1)),2&e&&(Zu(n=Ku())&&(t.mainContent=n.first),Zu(n=Ku())&&(t.img=n.first),Zu(n=Ku())&&(t.snav=n.first),Zu(n=Ku())&&(t.dragElem=n.first),Zu(n=Ku())&&(t.appDocumentNotePad=n.first),Zu(n=Ku())&&(t.appDocumentList=n.first),Zu(n=Ku())&&(t.rightContent=n.first),Zu(n=Ku())&&(t.pagesList=n.first))},decls:7,vars:5,consts:[[3,"translucent",4,"ngIf"],["class","ion-text-center","color","primary",4,"ngIf"],["class","ion-text-center","color","danger",4,"ngIf"],[4,"ngIf"],["class","ion-no-border footer-buttons",4,"ngIf"],["rightContent",""],[3,"translucent"],["color","light"],["slot","start"],["value","favorite",3,"value","ionChange"],["value","mainDocumentDetail",3,"click"],["color","primary"],["color","primary","name","information-circle"],["value","documentList",3,"click"],["color","primary","name","document-attach-outline"],["color","danger",2,"position","absolute","top","10px","right","40%"],["value","associatedDocuments",3,"click",4,"ngIf"],["value","visaWorkflow",3,"click"],["color","primary","name","list-outline"],["slot","end",4,"ngIf"],["value","associatedDocuments",3,"click"],["color","primary","name","link-outline"],["slot","end"],["color","primary",3,"click"],["slot","icon-only","name","settings-sharp"],["color","primary",1,"ion-text-center"],[2,"font-size","13px"],["color","danger",1,"ion-text-center"],["mainContent",""],[2,"display","contents"],[2,"overflow","auto","height","100%","width","100%","margin","auto",3,"drag-scroll-disabled","drag-disabled","click"],["nav",""],["id","myBounds",2,"position","relative","cursor","grab"],["myBounds",""],[3,"bounds",4,"ngIf"],["class","img-content",3,"src","width","height","ionImgDidLoad",4,"ngIf"],["class","page-info",4,"ngIf"],["lines","none","class","certified",4,"ngIf"],["ngDraggable","","style","top: 40px;right: 40px;z-index:2;position:absolute;",3,"bounds","inBounds","title","disabled","movingOffset","endOffset","click",4,"ngIf"],["ngDraggable","","class","note",3,"bounds","inBounds","movingOffset","endOffset",4,"ngIf"],["ngDraggable","",2,"top","40px","right","40px","z-index","2","position","absolute",3,"bounds","inBounds","title","disabled","movingOffset","endOffset","click"],["name","chatbubble-ellipses-outline"],["ngDraggable","",1,"note",3,"bounds","inBounds","movingOffset","endOffset"],[1,"note-title"],[1,"far","fa-sticky-note",2,"padding-right","5px"],[2,"flex","1"],[1,"fa","fa-minus-square",2,"cursor","pointer",3,"title","click"],[4,"ngFor","ngForOf"],[1,"note-creator"],[1,"note-content"],[3,"bounds"],[1,"img-content",3,"src","ionImgDidLoad"],["img",""],[1,"page-info"],[1,"page-info-doc"],[1,"page-info-page",3,"click"],["interface","popover","hidden","true",2,"max-height","100%",3,"ngModel","interfaceOptions","ngModelChange","ionChange"],["pagesList",""],[3,"value","disabled",4,"ngFor","ngForOf"],[3,"value","disabled"],["lines","none",1,"certified"],["slot","start","name","ribbon-outline","color","success"],["class","paginate-left",3,"click",4,"ngIf"],["class","paginate-right",3,"click",4,"ngIf"],[1,"paginate-left",3,"click"],["name","chevron-back-outline"],[1,"paginate-right",3,"click"],["name","chevron-forward-outline"],[1,"ion-no-border","footer-buttons"],["shape","round","size","large","fill","outline",3,"disabled","color","click",4,"ngFor","ngForOf"],["shape","round","size","large","fill","outline",3,"disabled","color","click"],[3,"slot","name",4,"ngIf"],[3,"slot","name"],["style","display: contents;",3,"visaWorkflow",4,"ngIf"],["style","display: contents;",3,"currentDocId","docList","triggerEvent",4,"ngIf"],["style","display: contents;",3,"associatedDocuments",4,"ngIf"],["style","display: contents;",3,"mainDocument",4,"ngIf"],[2,"display","contents",3,"visaWorkflow"],[2,"display","contents",3,"currentDocId","docList","triggerEvent"],["appDocumentList",""],[2,"display","contents",3,"associatedDocuments"],["appAssociatedDocuments",""],[2,"display","contents",3,"mainDocument"],["appMainDocumentDetail",""]],template:function(e,t){1&e&&(ns(0,QW,27,17,"ion-header",0),ns(1,XW,4,3,"ion-toolbar",1),ns(2,KW,4,3,"ion-toolbar",2),ns(3,gG,15,16,"ion-content",3),ns(4,yG,2,1,"ion-footer",4),ns(5,xG,4,4,"ng-template",null,5,tc)),2&e&&(os("ngIf",!t.loadingdocument),xo(1),os("ngIf",null!==t.authService.user.substitute&&t.docList[t.currentDoc]),xo(1),os("ngIf",0!==t.mainDocument.id&&"READY"!==t.mainDocument.status),xo(1),os("ngIf",!t.loadingdocument),xo(1),os("ngIf",!t.loadingImage&&0===t.currentDoc))},directives:[mh,XC,DS,LC,cS,wS,tA,_S,aS,KC,IC,RC,UC,kM,qC,SM,gh,UU,QU,aW,JC,kS,hm,Ym,xS,nS,ZC,EW,TU,MW,BW],pipes:[gE,ZM],styles:[".enterApp[_ngcontent-%COMP%]{position:fixed;height:100vh;width:100vw;background-color:#135f7f;z-index:2;display:flex;flex-direction:column;justify-content:center;align-items:center}.maarchLogo[_ngcontent-%COMP%]{position:absolute;transition:all 1s ease-in-out;width:250px;height:auto;padding-bottom:10px}.mainView[_ngcontent-%COMP%]{height:100%;width:auto;display:flex;flex-direction:column;overflow:hidden}.header[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{height:70px;width:auto}.header[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{height:auto;width:auto;font-size:40px}.article[_ngcontent-%COMP%]{display:flex;justify-content:center;overflow:hidden;flex:1;top:0;left:0}.canvas-wrapper[_ngcontent-%COMP%]{position:relative;padding-bottom:120px}canvas[_ngcontent-%COMP%]{margin:0 auto;display:block}.header[_ngcontent-%COMP%]{position:absolute;z-index:1;width:100%;height:80px;align-items:center;padding:0}.header[_ngcontent-%COMP%], .header-action[_ngcontent-%COMP%]{display:flex;justify-content:center}.header-action[_ngcontent-%COMP%]{color:#135f7f}.header-action-button[_ngcontent-%COMP%]{white-space:normal;word-break:break-word;width:135px!important}.header-infos[_ngcontent-%COMP%]{background:#f1f4f4;border-radius:5px;display:flex;justify-content:space-between;align-items:flex-start;width:100%;padding-top:12px;padding-bottom:7px;position:relative;overflow-y:hidden;overflow-x:auto}.header-info[_ngcontent-%COMP%]{border-right:1px solid #979797;width:200px;height:60px;font-size:12px;padding-left:20px}.header-info[_ngcontent-%COMP%]:last-of-type{border:none}.header-info[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{margin:0;padding:0}.header-expand[_ngcontent-%COMP%]{width:70%;position:absolute;left:50%;transform:translateX(-50%);top:25px;border:1px solid #f1f4f4}.header-expand[_ngcontent-%COMP%]   .mat-form-field[_ngcontent-%COMP%]{padding-top:10px}.header-expand[_ngcontent-%COMP%]    .mat-expansion-panel{box-shadow:none}.header-expand[_ngcontent-%COMP%]    .mat-form-field-label{color:#135f7f}.header-expand[_ngcontent-%COMP%]     .mat-form-field-underline{display:none}.header-expand-content[_ngcontent-%COMP%]{width:33%;display:inline-block}.header-expand-content[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{text-overflow:ellipsis}.header-expand-content[_ngcontent-%COMP%]   .mat-form-field[_ngcontent-%COMP%]{width:100%}.header-expand[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]:disabled{opacity:1;color:#666}.header-expand[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]{flex:1;font-size:12px}.page-info[_ngcontent-%COMP%]{position:absolute;bottom:70px;height:30px;width:auto;max-width:70%;color:rgba(var(--ion-color-dark-rgb),.8);font-size:12px;font-weight:300;line-height:30px;display:flex;align-items:center;justify-content:center;opacity:.5;left:50%;transform:translateX(-50%);font-weight:500;transition:all .3s ease-in-out}.page-info-doc[_ngcontent-%COMP%]{max-width:80%;background-color:#f1f4f4;border-radius:14px;padding:0 20px;z-index:1;white-space:pre;overflow:hidden;text-overflow:ellipsis}.page-info-page[_ngcontent-%COMP%]{cursor:pointer;text-align:center;border-radius:0 14px 14px 0;padding:0 20px;background:#fff;border:1px solid #ecf0f1;margin-left:-15px;height:28px;white-space:pre;display:flex;align-items:center}.page-info[_ngcontent-%COMP%]:hover{opacity:1}.btn-next[_ngcontent-%COMP%]{color:#666;background:hsla(0,0%,77.6%,.5019607843137255);border-radius:20px;padding:10px;border:none;outline:none;position:absolute;right:25px;top:50%;cursor:pointer;z-index:1}.btn-next.disabled[_ngcontent-%COMP%]{cursor:not-allowed}.btn-previous[_ngcontent-%COMP%]{color:#666;background:hsla(0,0%,77.6%,.5019607843137255);border-radius:20px;padding:10px;border:none;outline:none;position:absolute;left:25px;top:50%;cursor:pointer;z-index:1}.btn-previous.disabled[_ngcontent-%COMP%], button.disabled[_ngcontent-%COMP%]{cursor:not-allowed}.overlay[_ngcontent-%COMP%]{position:absolute;z-index:1;left:0;top:0;right:0;bottom:0;background:rgba(0,0,0,.5)}.pdf-page-canvas[_ngcontent-%COMP%]{opacity:1;transition:opacity .5s ease-in}.pdf-page-canvas-loading-doc[_ngcontent-%COMP%]{opacity:0}.ellipsis[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.leftPosDesk[_ngcontent-%COMP%]{left:25%!important}.mat-badge-content[_ngcontent-%COMP%]{background:#e74c3c}.substutionModal[_ngcontent-%COMP%]{color:#fff;background:#135f7f}.substutionModal[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]{padding:10px}.substutionModal[_ngcontent-%COMP%]   .msgModal[_ngcontent-%COMP%]{text-align:center;flex:1}.substitutedInformations[_ngcontent-%COMP%]{top:85px;z-index:1;white-space:pre;overflow:hidden;text-overflow:ellipsis;background:#135f7f;color:#fff;font-size:13px;text-align:center}.note[_ngcontent-%COMP%]{top:40px;right:40px;z-index:2;cursor:-webkit-grab;cursor:grab;position:absolute;background-color:#fff8bb;width:300px;max-height:400px;overflow:auto;box-shadow:0 2px 1px -1px rgba(0,0,0,.2),0 1px 1px 0 rgba(0,0,0,.14),0 1px 3px 0 rgba(0,0,0,.12)}.note-title[_ngcontent-%COMP%]{background-color:#fff8bb;position:-webkit-sticky;position:sticky;top:0;display:flex;align-items:center;font-weight:700}.note-creator[_ngcontent-%COMP%], .note-title[_ngcontent-%COMP%]{padding:10px;color:#135f7f}.note-creator[_ngcontent-%COMP%]{font-size:12px;text-decoration:underline}.note-content[_ngcontent-%COMP%]{padding:0 10px 10px;color:#4f4f4f}.footer-buttons[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(3,1fr);padding:10px}.footer-buttons[_ngcontent-%COMP%]   ion-button[_ngcontent-%COMP%]{margin:auto;width:150px}.paginate-left[_ngcontent-%COMP%]{left:20px}.paginate-left[_ngcontent-%COMP%], .paginate-right[_ngcontent-%COMP%]{position:absolute;top:40%;transform:translateY(-50%);--background:hsla(0,0%,77.6%,0.5019607843137255);--color:#666}.paginate-right[_ngcontent-%COMP%]{right:20px}.certified[_ngcontent-%COMP%]{position:absolute;top:10px;left:10px;border:1px solid var(--ion-color-success);color:var(--ion-color-success)}  .popover-class .popover-content{height:50%;top:50px}  .custom-popover-class .popover-class{height:10%;top:50px}"]}),AG),SG=function(e,t,n,i){return new(n||(n=Promise))(function(r,o){function a(e){try{l(i.next(e))}catch(t){o(t)}}function s(e){try{l(i.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((i=i.apply(e,t||[])).next())})};function PG(e,t){1&e&&(ss(0,"a",13),Qs(1),Du(2,"translate"),ls()),2&e&&(xo(1),Xs(Ou(2,1,"lang.forgotPassword")))}function EG(e,t){1&e&&(ss(0,"a",14),Qs(1),Du(2,"translate"),ls()),2&e&&(xo(1),Xs(Ou(2,1,"lang.ldapEnabled")))}function DG(e,t){1&e&&(ss(0,"a",14),Qs(1),Du(2,"translate"),ls()),2&e&&(xo(1),Xs(Ou(2,1,"lang.kerberosEnabled")))}function OG(e,t){1&e&&(ss(0,"a",14),Qs(1),Du(2,"translate"),ls()),2&e&&(xo(1),Xs(Ou(2,1,"lang.x509Enabled")))}function MG(e,t){if(1&e&&(ss(0,"a",15),Du(1,"translate"),Qs(2),ls()),2&e){var n=ks();Es("href","",Ou(1,3,"lang.repoUrl"),"/commit/",n.commitHash,"",Cr),xo(2),Xs(n.commitHash.substring(0,8))}}var TG,IG,RG=((IG=function(){function e(t,n,i,r,o,a,s,l,u,c){A(this,e),this.http=t,this.router=n,this.authService=i,this.signaturesService=r,this.notificationService=o,this.dialog=a,this.formBuilder=s,this.loadingController=l,this.translate=u,this.menu=c,this.loading=!1,this.showForm=!1,this.commitHash=null}return m(e,[{key:"ngOnInit",value:function(){return SG(this,void 0,void 0,regeneratorRuntime.mark(function e(){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return this.loginForm=this.formBuilder.group({login:[null,Nv.required],password:[null,Nv.required]}),this.environment=td,this.signaturesService.reset(),e.next=5,this.loadCommitInformation();case 5:case"end":return e.stop()}},e,this)}))}},{key:"ionViewWillEnter",value:function(){this.menu.enable(!1,"left-menu"),this.menu.enable(!1,"right-menu")}},{key:"ngAfterViewInit",value:function(){var e=this;setTimeout(function(){e.showForm=!0,e.fixAutoFill(),e.initConnection()},500)}},{key:"fixAutoFill",value:function(){var e=this;setTimeout(function(){e.loginForm.get("login").setValue($("#login").val()),e.loginForm.get("password").setValue($("#password").val())},100)}},{key:"onSubmit",value:function(){return SG(this,void 0,void 0,regeneratorRuntime.mark(function e(){var t,n=this;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.loadingController.create({cssClass:"my-custom-class",message:this.translate.instant("lang.connexion")});case 2:return t=e.sent,e.next=5,t.present();case 5:this.authService.authFailed=!1,this.loginForm.invalid?(t.dismiss(),this.notificationService.error("lang.requiredLoginPassword")):this.http.post("../rest/authenticate",{login:this.loginForm.get("login").value,password:this.loginForm.get("password").value},{observe:"response"}).pipe(uw(function(e){n.loading=!1,n.showForm=!1,n.authService.saveTokens(e.headers.get("Token"),e.headers.get("Refresh-Token")),n.authService.setUser({}),n.authService.getCachedUrl()?(n.router.navigateByUrl(n.authService.getCachedUrl()),n.authService.cleanCachedUrl()):n.router.navigate(["/home"]),t.dismiss()}),Zb(function(e){return n.loading=!1,n.authService.authFailed=!0,401===e.status&&-1===["kerberos","x509","azure_saml"].indexOf(n.authService.authMode)?(n.notificationService.error("lang.wrongLoginPassword"),t.dismiss()):"azure_saml"===n.authService.authMode&&"Authentication Failed : not logged"===e.error.errors?(t.dismiss(),window.location.href=e.error.authUri):(t.dismiss(),n.notificationService.handleErrors(e)),Ty(!1)})).subscribe();case 7:case"end":return e.stop()}},e,this)}))}},{key:"initConnection",value:function(){["kerberos","x509","azure_saml"].indexOf(this.authService.authMode)>-1&&(this.loginForm.disable(),this.loginForm.setValidators(null),this.onSubmit())}},{key:"loadCommitInformation",value:function(){var e=this;return new Promise(function(t){e.http.get("../rest/commitInformation").pipe(uw(function(n){e.commitHash=n.hash,t(!0)}),Zb(function(t){return e.notificationService.handleErrors(t),Ty(!1)})).subscribe()})}}]),e}()).\u0275fac=function(e){return new(e||IG)(rs(lb),rs(jk),rs(DE),rs(PE),rs(yE),rs(kB),rs(My),rs(lP),rs(pE),rs(uP))},IG.\u0275cmp=ft({type:IG,selectors:[["ng-component"]],decls:27,vars:18,consts:[[1,"login-content"],["svgIcon","maarchLogo",1,"maarchLogo"],[2,"width","400px","position","absolute","left","50%","top","50%","transform","translate(-50%,-50%)"],[3,"formGroup","ngSubmit"],["position","floating"],["formControlName","login","type","text",3,"keyup.enter"],["name","password","matInput","","type","password","formControlName","password",3,"keyup.enter"],[1,"connection-type"],["routerLink","/forgot-password","class","forgot-password",4,"ngIf"],["href","","class","forgot-password",4,"ngIf"],["type","submit","expand","block",3,"disabled"],[1,"version-info"],["style","color: white","target","blank",3,"href",4,"ngIf"],["routerLink","/forgot-password",1,"forgot-password"],["href","",1,"forgot-password"],["target","blank",2,"color","white",3,"href"]],template:function(e,t){1&e&&(ss(0,"ion-content",0),us(1,"mat-icon",1),ss(2,"ion-card",2),ss(3,"ion-card-content"),ss(4,"form",3),ms("ngSubmit",function(){return t.onSubmit()}),ss(5,"ion-item"),ss(6,"ion-label",4),Qs(7),Du(8,"translate"),ls(),ss(9,"ion-input",5),ms("keyup.enter",function(){return t.onSubmit()}),ls(),ls(),ss(10,"ion-item"),ss(11,"ion-label",4),Qs(12),Du(13,"translate"),ls(),ss(14,"ion-input",6),ms("keyup.enter",function(){return t.onSubmit()}),ls(),ls(),ss(15,"div",7),ns(16,PG,3,3,"a",8),ns(17,EG,3,3,"a",9),ns(18,DG,3,3,"a",9),ns(19,OG,3,3,"a",9),ls(),ss(20,"ion-button",10),Qs(21),Du(22,"translate"),ls(),ls(),ls(),ls(),ss(23,"ion-note",11),Qs(24),ns(25,MG,3,5,"a",12),Qs(26),ls(),ls()),2&e&&(xo(4),os("formGroup",t.loginForm),xo(3),Xs(Ou(8,12,"lang.login")),xo(5),Xs(Ou(13,14,"lang.password")),xo(4),os("ngIf","default"===t.authService.authMode),xo(1),os("ngIf","ldap"===t.authService.authMode),xo(1),os("ngIf","kerberos"===t.authService.authMode),xo(1),os("ngIf","x509"===t.authService.authMode),xo(1),os("disabled",t.loginForm.invalid||t.loading),xo(1),Ks(" ",Ou(22,16,"lang.connect")," "),xo(3),Ks(" Maarch Parapheur ",t.environment.VERSION," "),xo(1),os("ngIf",null!==t.commitHash),xo(1),Ks(" Powered by ",t.environment.AUTHOR," "))},directives:[UC,XB,FC,BC,Zm,fm,ey,nS,aS,tS,nA,hm,ny,mh,RC,hS,Wk,$S],pipes:[gE],styles:[".version-info[_ngcontent-%COMP%]{color:#fff;position:absolute;bottom:5px}.maarchLogo[_ngcontent-%COMP%]{position:absolute;top:10%;left:50%;transform:translateX(-50%);width:250px;height:auto;padding-bottom:10px}.login-content[_ngcontent-%COMP%]{--background:var(--ion-color-primary)}.forgot-password[_ngcontent-%COMP%]{display:block;text-align:right}.connection-type[_ngcontent-%COMP%]{display:flex;justify-content:flex-end}"]}),IG),LG=((TG=function(){function e(t,n,i,r,o){A(this,e),this.router=t,this.http=n,this.notificationService=o,this.loadingForm=!1,this.loading=!1,this.newLogin={login:"",password:""},this.labelButton="lang.send",this.appVersion="",this.appAuthor="",i.addSvgIcon("maarchLogo",r.bypassSecurityTrustResourceUrl("../src/frontend/assets/logo_white.svg"))}return m(e,[{key:"ngOnInit",value:function(){}},{key:"generateLink",value:function(){var e=this;this.labelButton="lang.generation",this.loading=!0,this.http.post("../rest/password",{login:this.newLogin.login}).pipe(hw(function(){e.labelButton="lang.send",e.loading=!1})).subscribe(function(t){e.loadingForm=!0,e.notificationService.success("lang.requestSentByEmail"),e.router.navigate(["/login"])},function(t){e.notificationService.handleErrors(t)})}}]),e}()).\u0275fac=function(e){return new(e||TG)(rs(jk),rs(lb),rs(FB),rs(Wf),rs(yE))},TG.\u0275cmp=ft({type:TG,selectors:[["ng-component"]],decls:28,vars:15,consts:[[3,"translucent"],["color","primary"],["slot","start"],["mainContent",""],["id","passForm",2,"display","contents",3,"ngSubmit"],["passForm","ngForm"],["offset","3","size","6"],[1,"info"],[3,"innerHTML"],["color","secondary","position","floating"],["name","login","matInput","","type","text","oninput","this.value = this.value.toLowerCase()",3,"ngModel","ngModelChange"],["text-center","","lines","none",2,"position","sticky","bottom","0px","z-index","1"],[2,"display","flex","align-items","center","justify-content","center","width","100%","background","white"],["type","submit","shape","round","size","large","fill","outline","color","primary",3,"disabled"],[2,"font-size","13px"]],template:function(e,t){1&e&&(ss(0,"ion-header",0),ss(1,"ion-toolbar",1),ss(2,"ion-buttons",2),us(3,"ion-back-button"),ls(),ss(4,"ion-title"),Qs(5),Du(6,"translate"),ls(),ls(),ls(),ss(7,"ion-content",null,3),ss(9,"form",4,5),ms("ngSubmit",function(){return t.generateLink()}),ss(11,"ion-grid"),ss(12,"ion-row"),ss(13,"ion-col",6),ss(14,"ion-card",7),us(15,"ion-card-content",8),Du(16,"translate"),ls(),ss(17,"ion-item"),ss(18,"ion-label",9),Qs(19),Du(20,"translate"),ls(),ss(21,"ion-input",10),ms("ngModelChange",function(e){return t.newLogin.login=e}),ls(),ls(),ls(),ls(),ls(),ss(22,"ion-item",11),ss(23,"div",12),ss(24,"ion-button",13),ss(25,"ion-label",14),Qs(26),Du(27,"translate"),ls(),ls(),ls(),ls(),ls(),ls()),2&e&&(os("translucent",!0),xo(5),Xs(Ou(6,7,"lang.forgotPassword")),xo(10),os("innerHTML",Ou(16,9,"lang.afterClickingSendLinkChangePassword"),Ar),xo(4),Ks("",Ou(20,11,"lang.enterLogin")," *"),xo(2),os("ngModel",t.newLogin.login),xo(3),os("disabled",""==t.newLogin.login||t.loading),xo(2),Xs(Ou(27,13,t.labelButton)))},directives:[XC,DS,LC,TC,JS,PS,UC,Zm,fm,Wm,QC,yS,jC,FC,BC,nS,aS,tS,nA,hm,Ym,RC],pipes:[gE],styles:[".login-content[_ngcontent-%COMP%]{background-color:#135f7f;height:100vh;width:100vw;display:flex;flex-direction:column;justify-content:center;align-items:center}.login-form[_ngcontent-%COMP%]{max-width:600px;text-align:center}.input-row[_ngcontent-%COMP%]{width:100%;padding-top:10px;padding-bottom:10px}.maarchLogo[_ngcontent-%COMP%]{position:absolute;transition:all 1s ease-in-out;width:250px;height:auto;padding-bottom:10px;transform:translateY(-200px)}footer[_ngcontent-%COMP%]{color:#fff;position:absolute;bottom:5px;font-size:10px;opacity:.5}"]}),TG);function FG(e,t){if(1&e&&(ss(0,"ion-note",22),Qs(1),Du(2,"translate"),ls()),2&e){var n=ks();xo(1),Ks(" ",Ou(2,1,n.handlePassword.errorMsg),"")}}function BG(e,t){1&e&&(ss(0,"ion-note",23),Qs(1),Du(2,"translate"),ls()),2&e&&(xo(1),Ks(" ",Ou(2,1,"lang.samePassword"),""))}function VG(e,t){1&e&&(ss(0,"ion-note",22),Qs(1),Du(2,"translate"),ls()),2&e&&(xo(1),Ks(" ",Ou(2,1,"lang.passwordNotMatch"),""))}var zG,NG,HG=((NG=function(){function e(t,n,i,r,o,a,s,l){var u=this;A(this,e),this.translate=t,this.router=n,this.route=i,this.http=r,this.notificationService=s,this.menu=l,this.loadingForm=!1,this.loading=!1,this.token="",this.password={newPassword:"",passwordConfirmation:""},this.labelButton="lang.update",this.hideNewPassword=!0,this.hideNewPasswordConfirm=!0,this.passwordRules={minLength:{enabled:!1,value:0},complexityUpper:{enabled:!1,value:0},complexityNumber:{enabled:!1,value:0},complexitySpecial:{enabled:!1,value:0},renewal:{enabled:!1,value:0},historyLastUse:{enabled:!1,value:0}},this.handlePassword={error:!1,errorMsg:""},this.ruleText="",this.otherRuleText="",o.addSvgIcon("maarchLogo",a.bypassSecurityTrustResourceUrl("../src/frontend/assets/logo_white.svg")),this.route.queryParams.subscribe(function(e){u.token=e.token})}return m(e,[{key:"ngOnInit",value:function(){this.getPassRules()}},{key:"ionViewWillEnter",value:function(){this.menu.enable(!1,"left-menu"),this.menu.enable(!1,"right-menu")}},{key:"updatePassword",value:function(){var e=this;this.labelButton="lang.sending",this.loading=!0,this.http.put("../rest/password",{token:this.token,password:this.password.newPassword}).pipe(hw(function(){e.labelButton="lang.update",e.loading=!1})).subscribe(function(t){e.loadingForm=!0,e.notificationService.success("lang.passwordChanged"),e.router.navigate(["/login"])},function(t){e.notificationService.handleErrors(t)})}},{key:"checkPasswordValidity",value:function(e){var t=this;this.handlePassword.error=!0,!e.match(/[A-Z]/g)&&this.passwordRules.complexityUpper.enabled?this.handlePassword.errorMsg="lang.upperRequired":!e.match(/[0-9]/g)&&this.passwordRules.complexityNumber.enabled?this.handlePassword.errorMsg="lang.numberRequired":!e.match(/[^A-Za-z0-9]/g)&&this.passwordRules.complexitySpecial.enabled?this.handlePassword.errorMsg="lang.specialCharRequired":e.length<this.passwordRules.minLength.value&&this.passwordRules.minLength.enabled?this.translate.get("lang.minLengthChar",{charLength:this.passwordRules.minLength.value}).subscribe(function(e){t.handlePassword.errorMsg=e}):(this.handlePassword.error=!1,this.handlePassword.errorMsg="")}},{key:"getPassRules",value:function(){var e=this;this.handlePassword.error=!1,this.handlePassword.errorMsg="",this.http.get("../rest/passwordRules").subscribe(function(t){var n=[],i=[];t.rules.forEach(function(t){"minLength"===t.label?(e.passwordRules.minLength.enabled=t.enabled,e.passwordRules.minLength.value=t.value,t.enabled&&e.translate.get("lang.minLengthChar",{charLength:t.value}).subscribe(function(e){n.push(e)})):"complexityUpper"===t.label?(e.passwordRules.complexityUpper.enabled=t.enabled,e.passwordRules.complexityUpper.value=t.value,t.enabled&&n.push("lang.upperRequired")):"complexityNumber"===t.label?(e.passwordRules.complexityNumber.enabled=t.enabled,e.passwordRules.complexityNumber.value=t.value,t.enabled&&n.push("lang.numberRequired")):"complexitySpecial"===t.label?(e.passwordRules.complexitySpecial.enabled=t.enabled,e.passwordRules.complexitySpecial.value=t.value,t.enabled&&n.push("lang.specialCharRequired")):"renewal"===t.label?(e.passwordRules.renewal.enabled=t.enabled,e.passwordRules.renewal.value=t.value,t.enabled&&e.translate.get("lang.renewalInfo",{time:t.value}).subscribe(function(e){i.push(e)})):"historyLastUse"===t.label&&(e.passwordRules.historyLastUse.enabled=t.enabled,e.passwordRules.historyLastUse.value=t.value,t.enabled&&e.translate.get("lang.historyUseInfo",{countPwd:t.value}).subscribe(function(e){i.push(e)}))}),e.ruleText=n.join(", "),e.otherRuleText=i.join("<br/>")},function(t){e.notificationService.handleErrors(t)})}},{key:"allowValidate",value:function(){return!(!this.handlePassword.error&&this.password.newPassword===this.password.passwordConfirmation&&0!==this.password.newPassword.length&&0!==this.password.passwordConfirmation.length)}}]),e}()).\u0275fac=function(e){return new(e||NG)(rs(pE),rs(jk),rs(b_),rs(lb),rs(FB),rs(Wf),rs(yE),rs(uP))},NG.\u0275cmp=ft({type:NG,selectors:[["ng-component"]],decls:47,vars:35,consts:[[3,"translucent"],["color","primary"],["slot","start"],["mainContent",""],["id","passForm",2,"display","contents",3,"ngSubmit"],["passForm","ngForm"],["offset","3","size","6"],[1,"info"],[3,"innerHTML"],["color","secondary","position","stacked"],["name","newPassword",3,"ngModel","placeholder","type","ngModelChange","keyup"],["slot","end","color","light",1,"showpassButton",3,"click"],["slot","icon-only","color","primary",3,"name"],["color","danger",4,"ngIf"],["name","passwordConfirmation",3,"ngModel","placeholder","type","ngModelChange"],["lines","none"],["color","success",4,"ngIf"],["text-center","","lines","none",2,"position","sticky","bottom","0px","z-index","1"],[2,"display","flex","align-items","center","justify-content","center","width","100%","background","white"],["type","submit","shape","round","size","large","fill","outline","color","primary",3,"disabled"],[2,"font-size","13px"],["type","button","shape","round","size","large","fill","outline","color","medium","routerLink","/login"],["color","danger"],["color","success"]],template:function(e,t){1&e&&(ss(0,"ion-header",0),ss(1,"ion-toolbar",1),ss(2,"ion-buttons",2),us(3,"ion-back-button"),ls(),ss(4,"ion-title"),Qs(5),Du(6,"translate"),ls(),ls(),ls(),ss(7,"ion-content",null,3),ss(9,"form",4,5),ms("ngSubmit",function(){return t.updatePassword()}),ss(11,"ion-grid"),ss(12,"ion-row"),ss(13,"ion-col",6),ss(14,"ion-card",7),us(15,"ion-card-content",8),Du(16,"translate"),ls(),ss(17,"ion-item"),ss(18,"ion-label",9),Qs(19),Du(20,"translate"),ls(),ss(21,"ion-input",10),ms("ngModelChange",function(e){return t.password.newPassword=e})("keyup",function(){return t.checkPasswordValidity(t.password.newPassword)}),Du(22,"translate"),ls(),ss(23,"ion-button",11),ms("click",function(){return t.hideNewPassword=!t.hideNewPassword}),us(24,"ion-icon",12),ls(),ns(25,FG,3,3,"ion-note",13),ls(),ss(26,"ion-item"),ss(27,"ion-label",9),Qs(28),Du(29,"translate"),ls(),ss(30,"ion-input",14),ms("ngModelChange",function(e){return t.password.passwordConfirmation=e}),Du(31,"translate"),ls(),ss(32,"ion-button",11),ms("click",function(){return t.hideNewPasswordConfirm=!t.hideNewPasswordConfirm}),us(33,"ion-icon",12),ls(),ls(),ss(34,"ion-item",15),ns(35,BG,3,3,"ion-note",16),ns(36,VG,3,3,"ion-note",13),ls(),ls(),ls(),ls(),ss(37,"ion-item",17),ss(38,"div",18),ss(39,"ion-button",19),ss(40,"ion-label",20),Qs(41),Du(42,"translate"),ls(),ls(),ss(43,"ion-button",21),ss(44,"ion-label",20),Qs(45),Du(46,"translate"),ls(),ls(),ls(),ls(),ls(),ls()),2&e&&(os("translucent",!0),xo(5),Xs(Ou(6,19,"lang.newPassword")),xo(10),os("innerHTML",Ou(16,21,"lang.logInOncePasswordChanged"),Ar),xo(4),Xs(Ou(20,23,"lang.newPassword")),xo(2),Ss("placeholder",Ou(22,25,"lang.newPassword")),os("ngModel",t.password.newPassword)("type",t.hideNewPassword?"password":"text"),xo(3),os("name",t.hideNewPassword?"eye-outline":"eye-off-outline"),xo(1),os("ngIf",t.handlePassword.error),xo(3),Ks("",Ou(29,27,"lang.passwordConfirmation")," "),xo(2),Ss("placeholder",Ou(31,29,"lang.passwordConfirmation")),os("ngModel",t.password.passwordConfirmation)("type",t.hideNewPasswordConfirm?"password":"text"),xo(3),os("name",t.hideNewPasswordConfirm?"eye-outline":"eye-off-outline"),xo(2),os("ngIf",t.password.passwordConfirmation===t.password.newPassword&&t.password.newPassword.length>0&&t.password.passwordConfirmation.length>0),xo(1),os("ngIf",t.password.passwordConfirmation!==t.password.newPassword),xo(3),os("disabled",t.allowValidate()||t.loading),xo(2),Xs(Ou(42,31,t.labelButton)),xo(4),Xs(Ou(46,33,"lang.cancel")))},directives:[XC,DS,LC,TC,JS,PS,UC,Zm,fm,Wm,QC,yS,jC,FC,BC,nS,aS,tS,nA,hm,Ym,RC,KC,mh,$S,Uk,hS],pipes:[gE],styles:[".login-form[_ngcontent-%COMP%]{max-width:600px;text-align:center}.input-row[_ngcontent-%COMP%]{width:100%;padding-top:10px;padding-bottom:10px}.maarchLogo[_ngcontent-%COMP%]{position:absolute;transition:all 1s ease-in-out;width:250px;height:auto;padding-bottom:10px;transform:translateY(-230px)}footer[_ngcontent-%COMP%]{color:#fff;position:absolute;bottom:5px;font-size:10px;opacity:.5}.showpassButton[_ngcontent-%COMP%]{--background:none;--box-shadow:none}"]}),NG),jG=((zG=function(){function e(t,n,i,r){A(this,e),this.http=t,this.translate=n,this.notify=i,this.signaturesService=r,this.loading=!1,this.passwordRules={minLength:{enabled:!1,value:0},complexityUpper:{enabled:!1,value:0},complexityNumber:{enabled:!1,value:0},complexitySpecial:{enabled:!1,value:0},renewal:{enabled:!1,value:0},historyLastUse:{enabled:!1,value:0},lockTime:{enabled:!1,value:0},lockAttempts:{enabled:!1,value:0}},this.passwordRulesClone={},this.passwordRulesList=[]}return m(e,[{key:"ngOnInit",value:function(){var e=this;this.loading=!0,this.http.get("../rest/passwordRules").subscribe(function(t){e.passwordRulesList=t.rules,t.rules.forEach(function(t){e.passwordRules[t.label].enabled=t.enabled,e.passwordRules[t.label].value=t.value,e.passwordRules[t.label].label=e.translate.instant("lang.password_"+t.label+"Required"),e.passwordRules[t.label].id=t.label,e.loading=!1}),e.passwordRulesClone=JSON.parse(JSON.stringify(e.passwordRules))},function(t){e.notify.error(t.error.errors)})}},{key:"cancelModification",value:function(){var e=this;this.passwordRules=JSON.parse(JSON.stringify(this.passwordRulesClone)),this.passwordRulesList.forEach(function(t){t.enabled=e.passwordRules[t.label].enabled,t.value=e.passwordRules[t.label].value})}},{key:"checkModif",value:function(){return JSON.stringify(this.passwordRules)===JSON.stringify(this.passwordRulesClone)}},{key:"disabledForm",value:function(){return!(this.passwordRules.lockTime.enabled||this.passwordRules.minLength.enabled||this.passwordRules.lockAttempts.enabled||this.passwordRules.renewal.enabled||this.passwordRules.historyLastUse.enabled)}},{key:"toggleRule",value:function(e){var t=this;this.passwordRulesList.forEach(function(n){"lockAttempts"!==e.id||"lockTime"!==n.label&&"lockAttempts"!==n.label?e.id===n.label&&(n.enabled=e.enabled):(n.enabled=e.enabled,t.passwordRules.lockTime.enabled=e.enabled)})}},{key:"onSubmit",value:function(){var e=this;this.passwordRulesList.forEach(function(t){t.enabled=e.passwordRules[t.label].enabled,t.value=e.passwordRules[t.label].value}),this.http.put("../rest/passwordRules",{rules:this.passwordRulesList}).subscribe(function(){e.passwordRulesClone=JSON.parse(JSON.stringify(e.passwordRules)),e.notify.success("lang.passwordRulesUpdated")},function(t){e.notify.error(t.error.errors)})}}]),e}()).\u0275fac=function(e){return new(e||zG)(rs(lb),rs(pE),rs(yE),rs(PE))},zG.\u0275cmp=ft({type:zG,selectors:[["ng-component"]],decls:69,vars:49,consts:[[3,"translucent"],["color","primary"],["slot","start"],["menu","left-menu"],["id","passwordForm",2,"display","contents",3,"ngSubmit"],["passwordForm","ngForm"],["color","secondary"],["slot","start","name","complexityUpper",3,"ngModel","checked","ngModelChange"],["slot","start","name","complexityNumber",3,"ngModel","checked","ngModelChange"],["slot","start","name","complexitySpecial",3,"ngModel","checked","ngModelChange"],["slot","start","name","minLengthToggle",3,"ngModel","checked","ngModelChange"],["color","secondary","position","floating"],["name","minLength","min","1","pattern","^[1-9][0-9]*",3,"disabled","ngModel","ngModelChange"],["slot","end"],["slot","start","name","lockAttemptsToggle",3,"ngModel","checked","ngModelChange"],["name","lockAttempts","min","1","pattern","^[1-9][0-9]*",3,"disabled","ngModel","ngModelChange"],["name","lockTime","min","1","pattern","^[1-9][0-9]*",3,"disabled","ngModel","ngModelChange"],["slot","start","name","renewalToggle",3,"ngModel","checked","ngModelChange"],["name","renewal","min","1","pattern","^[1-9][0-9]*",3,"disabled","ngModel","ngModelChange"],["slot","start","name","historyLastUseToggle",3,"ngModel","checked","ngModelChange"],["name","historyLastUse","min","1","pattern","^[1-9][0-9]*",3,"disabled","ngModel","ngModelChange"],["text-center","","lines","none",2,"position","sticky","bottom","0px","z-index","1"],[2,"display","flex","align-items","center","justify-content","center","width","100%","background","white"],["type","submit","shape","round","size","large","fill","outline","color","primary",3,"disabled"],[2,"font-size","13px"]],template:function(e,t){if(1&e&&(ss(0,"ion-header",0),ss(1,"ion-toolbar",1),ss(2,"ion-buttons",2),us(3,"ion-menu-button",3),us(4,"ion-back-button"),ls(),ss(5,"ion-title"),Qs(6),Du(7,"translate"),ls(),ls(),ls(),ss(8,"form",4,5),ms("ngSubmit",function(){return t.onSubmit()}),ss(10,"ion-content"),ss(11,"ion-row"),ss(12,"ion-col"),ss(13,"ion-item"),ss(14,"ion-label",6),Qs(15),ls(),ss(16,"ion-toggle",7),ms("ngModelChange",function(e){return t.passwordRules.complexityUpper.enabled=e})("ngModelChange",function(){return t.toggleRule(t.passwordRules.complexityUpper)}),ls(),ls(),ls(),ss(17,"ion-col"),ss(18,"ion-item"),ss(19,"ion-label",6),Qs(20),ls(),ss(21,"ion-toggle",8),ms("ngModelChange",function(e){return t.passwordRules.complexityNumber.enabled=e})("ngModelChange",function(){return t.toggleRule(t.passwordRules.complexityNumber)}),ls(),ls(),ls(),ss(22,"ion-col"),ss(23,"ion-item"),ss(24,"ion-label",6),Qs(25),ls(),ss(26,"ion-toggle",9),ms("ngModelChange",function(e){return t.passwordRules.complexitySpecial.enabled=e})("ngModelChange",function(){return t.toggleRule(t.passwordRules.complexitySpecial)}),ls(),ls(),ls(),ls(),ss(27,"ion-item"),ss(28,"ion-toggle",10),ms("ngModelChange",function(e){return t.passwordRules.minLength.enabled=e})("ngModelChange",function(){return t.toggleRule(t.passwordRules.minLength)}),ls(),ss(29,"ion-label",11),Qs(30),ls(),ss(31,"ion-input",12),ms("ngModelChange",function(e){return t.passwordRules.minLength.value=e}),ls(),ss(32,"ion-note",13),Qs(33),Du(34,"translate"),ls(),ls(),ss(35,"ion-row"),ss(36,"ion-col"),ss(37,"ion-item"),ss(38,"ion-toggle",14),ms("ngModelChange",function(e){return t.passwordRules.lockAttempts.enabled=e})("ngModelChange",function(){return t.toggleRule(t.passwordRules.lockAttempts)}),ls(),ss(39,"ion-label",11),Qs(40),ls(),ss(41,"ion-input",15),ms("ngModelChange",function(e){return t.passwordRules.lockAttempts.value=e}),ls(),ls(),ls(),ss(42,"ion-col"),ss(43,"ion-item"),ss(44,"ion-label",11),Qs(45),ls(),ss(46,"ion-input",16),ms("ngModelChange",function(e){return t.passwordRules.lockTime.value=e}),ls(),ss(47,"ion-note",13),Qs(48),Du(49,"translate"),ls(),ls(),ls(),ls(),ss(50,"ion-item"),ss(51,"ion-toggle",17),ms("ngModelChange",function(e){return t.passwordRules.renewal.enabled=e})("ngModelChange",function(){return t.toggleRule(t.passwordRules.renewal)}),ls(),ss(52,"ion-label",11),Qs(53),ls(),ss(54,"ion-input",18),ms("ngModelChange",function(e){return t.passwordRules.renewal.value=e}),ls(),ss(55,"ion-note",13),Qs(56),Du(57,"translate"),ls(),ls(),ss(58,"ion-item"),ss(59,"ion-toggle",19),ms("ngModelChange",function(e){return t.passwordRules.historyLastUse.enabled=e})("ngModelChange",function(){return t.toggleRule(t.passwordRules.historyLastUse)}),ls(),ss(60,"ion-label",11),Qs(61),ls(),ss(62,"ion-input",20),ms("ngModelChange",function(e){return t.passwordRules.historyLastUse.value=e}),ls(),ls(),ss(63,"ion-item",21),ss(64,"div",22),ss(65,"ion-button",23),ss(66,"ion-label",24),Qs(67),Du(68,"translate"),ls(),ls(),ls(),ls(),ls(),ls()),2&e){var n=is(9);os("translucent",!0),xo(6),Xs(Ou(7,39,"lang.manage_password_rules")),xo(9),Xs(t.passwordRules.complexityUpper.label),xo(1),os("ngModel",t.passwordRules.complexityUpper.enabled)("checked",t.passwordRules.complexityUpper.enabled),xo(4),Xs(t.passwordRules.complexityNumber.label),xo(1),os("ngModel",t.passwordRules.complexityNumber.enabled)("checked",t.passwordRules.complexityNumber.enabled),xo(4),Xs(t.passwordRules.complexitySpecial.label),xo(1),os("ngModel",t.passwordRules.complexitySpecial.enabled)("checked",t.passwordRules.complexitySpecial.enabled),xo(2),os("ngModel",t.passwordRules.minLength.enabled)("checked",t.passwordRules.minLength.enabled),xo(2),Xs(t.passwordRules.minLength.label),xo(1),os("disabled",!t.passwordRules.minLength.enabled)("ngModel",t.passwordRules.minLength.value),xo(2),Xs(Ou(34,41,"lang.chars")),xo(5),os("ngModel",t.passwordRules.lockAttempts.enabled)("checked",t.passwordRules.lockAttempts.enabled),xo(2),Xs(t.passwordRules.lockAttempts.label),xo(1),os("disabled",!t.passwordRules.lockAttempts.enabled)("ngModel",t.passwordRules.lockAttempts.value),xo(4),Xs(t.passwordRules.lockTime.label),xo(1),os("disabled",!t.passwordRules.lockTime.enabled)("ngModel",t.passwordRules.lockTime.value),xo(2),Xs(Ou(49,43,"lang.minutes")),xo(3),os("ngModel",t.passwordRules.renewal.enabled)("checked",t.passwordRules.renewal.enabled),xo(2),Xs(t.passwordRules.renewal.label),xo(1),os("disabled",!t.passwordRules.renewal.enabled)("ngModel",t.passwordRules.renewal.value),xo(2),Xs(Ou(57,45,"lang.days")),xo(3),os("ngModel",t.passwordRules.historyLastUse.enabled)("checked",t.passwordRules.historyLastUse.enabled),xo(2),Xs(t.passwordRules.historyLastUse.label),xo(1),os("disabled",!t.passwordRules.historyLastUse.enabled)("ngModel",t.passwordRules.historyLastUse.value),xo(3),os("disabled",!n.valid&&!t.disabledForm()||t.checkModif()),xo(2),Xs(Ou(68,47,"lang.validate"))}},directives:[XC,DS,LC,cS,TC,JS,PS,Zm,fm,Wm,UC,yS,jC,nS,aS,ES,Jx,hm,Ym,tS,nA,Py,hS,RC],pipes:[gE],encapsulation:2}),zG);function UG(e,t){1&e&&(ss(0,"ion-note",17),Qs(1),Du(2,"translate"),ls()),2&e&&(xo(1),Xs(Ou(2,1,"lang.requiredField")))}function WG(e,t){1&e&&(ss(0,"ion-item",26),us(1,"ion-icon",27),ss(2,"ion-label",28),Qs(3),Du(4,"translate"),ls(),ls()),2&e&&(xo(3),Xs(Ou(4,1,"lang.passwordValid")))}function GG(e,t){1&e&&(ss(0,"ion-item",26),us(1,"ion-icon",27),ss(2,"ion-label",28),Qs(3),Du(4,"translate"),ls(),ls()),2&e&&(xo(3),Xs(Ou(4,1,"lang.passwordMatch")))}function qG(e,t){1&e&&us(0,"ion-item",29),2&e&&os("innerHTML",ks().otherRuleText,Ar)}var YG,ZG=((YG=function(){function e(t,n,i,r,o,a,s){A(this,e),this.http=t,this.notify=n,this._formBuilder=i,this.translate=r,this.signaturesService=o,this.authService=a,this.router=s,this.config={},this.loading=!1,this.user={},this.ruleText="",this.hidePassword=!0,this.validPassword=!1,this.passwordRules={minLength:{enabled:!1,value:0},complexityUpper:{enabled:!1,value:0},complexityNumber:{enabled:!1,value:0},complexitySpecial:{enabled:!1,value:0},renewal:{enabled:!1,value:0},historyLastUse:{enabled:!1,value:0}},this.passwordModel={currentPassword:"",newPassword:"",reNewPassword:""},this.user=JSON.parse(atob(this.authService.getToken().split(".")[1])).user}return m(e,[{key:"ngOnInit",value:function(){var e=this;this.http.get("../rest/passwordRules").subscribe(function(t){var n=[],i=[],r=[];n.push(Nv.required),t.rules.forEach(function(t){"minLength"===t.label?(e.passwordRules.minLength.enabled=t.enabled,e.passwordRules.minLength.value=t.value,t.enabled&&(n.push(Nv.minLength(e.passwordRules.minLength.value)),i.push(t.value+" "+e.translate.instant("lang.password_"+t.label)))):"complexityUpper"===t.label?(e.passwordRules.complexityUpper.enabled=t.enabled,e.passwordRules.complexityUpper.value=t.value,t.enabled&&(n.push(e.regexValidator(new RegExp("[A-Z]"),{complexityUpper:""})),i.push(e.translate.instant("lang.password_"+t.label)))):"complexityNumber"===t.label?(e.passwordRules.complexityNumber.enabled=t.enabled,e.passwordRules.complexityNumber.value=t.value,t.enabled&&(n.push(e.regexValidator(new RegExp("[0-9]"),{complexityNumber:""})),i.push(e.translate.instant("lang.password_"+t.label)))):"complexitySpecial"===t.label?(e.passwordRules.complexitySpecial.enabled=t.enabled,e.passwordRules.complexitySpecial.value=t.value,t.enabled&&(n.push(e.regexValidator(new RegExp("[^A-Za-z0-9]"),{complexitySpecial:""})),i.push(e.translate.instant("lang.password_"+t.label)))):"renewal"===t.label?(e.passwordRules.renewal.enabled=t.enabled,e.passwordRules.renewal.value=t.value,t.enabled&&r.push(e.translate.instant("lang.password_"+t.label)+" <b>"+t.value+" "+e.translate.instant("lang.days")+"</b>. "+e.translate.instant("lang.password2_"+t.label)+".")):"historyLastUse"===t.label&&(e.passwordRules.historyLastUse.enabled=t.enabled,e.passwordRules.historyLastUse.value=t.value,t.enabled&&r.push(e.translate.instant("lang.password_historyLastUseDesc")+" <b>"+t.value+"</b> "+e.translate.instant("lang.password_historyLastUseDesc2")+"."))}),e.ruleText=i.join(", "),e.otherRuleText=r.join("<br/>"),e.firstFormGroup.controls.newPasswordCtrl.setValidators(n)},function(t){e.notify.error(t.error.errors)}),this.firstFormGroup=this._formBuilder.group({newPasswordCtrl:[""],retypePasswordCtrl:["",Nv.compose([Nv.required])],currentPasswordCtrl:["",Nv.compose([Nv.required])]},{validator:this.matchValidator})}},{key:"regexValidator",value:function(e,t){return function(n){return n.value?e.test(n.value)?null:t:null}}},{key:"matchValidator",value:function(e){return e.controls.newPasswordCtrl.value!==e.controls.retypePasswordCtrl.value&&(e.controls.retypePasswordCtrl.setErrors({mismatch:!0}),{mismatch:!0})}},{key:"getErrorMessage",value:function(){return this.firstFormGroup.controls.retypePasswordCtrl.setErrors(this.firstFormGroup.controls.newPasswordCtrl.value!==this.firstFormGroup.controls.retypePasswordCtrl.value?{mismatch:!0}:null),this.firstFormGroup.controls.newPasswordCtrl.hasError("required")?this.translate.instant("lang.requiredField")+" !":this.firstFormGroup.controls.newPasswordCtrl.hasError("minlength")&&this.passwordRules.minLength.enabled?this.passwordRules.minLength.value+" "+this.translate.instant("lang.password_minLength")+" !":null!=this.firstFormGroup.controls.newPasswordCtrl.errors&&void 0!==this.firstFormGroup.controls.newPasswordCtrl.errors.complexityUpper&&this.passwordRules.complexityUpper.enabled?this.translate.instant("lang.password_complexityUpper")+" !":null!=this.firstFormGroup.controls.newPasswordCtrl.errors&&void 0!==this.firstFormGroup.controls.newPasswordCtrl.errors.complexityNumber&&this.passwordRules.complexityNumber.enabled?this.translate.instant("lang.password_complexityNumber")+" !":null!=this.firstFormGroup.controls.newPasswordCtrl.errors&&void 0!==this.firstFormGroup.controls.newPasswordCtrl.errors.complexitySpecial&&this.passwordRules.complexitySpecial.enabled?this.translate.instant("lang.password_complexitySpecial")+" !":(this.firstFormGroup.controls.newPasswordCtrl.setErrors(null),this.validPassword=!0,"")}},{key:"onSubmit",value:function(){var e=this;this.passwordModel.currentPassword=this.firstFormGroup.controls.currentPasswordCtrl.value,this.passwordModel.newPassword=this.firstFormGroup.controls.newPasswordCtrl.value,this.passwordModel.passwordConfirmation=this.firstFormGroup.controls.retypePasswordCtrl.value,this.http.put("../rest/users/"+this.user.id+"/password",this.passwordModel).subscribe(function(){e.notify.success(e.translate.instant("lang.passwordChanged")),void 0===e.authService.user.picture&&e.http.get("../rest/users/"+e.authService.user.id+"/picture").subscribe(function(t){e.authService.user.picture=t.picture}),e.router.navigate(["/home"])},function(t){e.notify.handleErrors(t)})}},{key:"logout",value:function(){this.authService.logout()}}]),e}()).\u0275fac=function(e){return new(e||YG)(rs(lb),rs(yE),rs(My),rs(pE),rs(PE),rs(DE),rs(jk))},YG.\u0275cmp=ft({type:YG,selectors:[["ng-component"]],decls:68,vars:53,consts:[[3,"translucent"],["color","primary"],["slot","start"],["mainContent",""],[2,"display","contents",3,"formGroup","ngSubmit"],["offset","3","size","6"],[1,"info"],["color","secondary","position","stacked"],["formControlName","currentPasswordCtrl","required","",3,"placeholder","type"],["slot","end","color","light",1,"showpassButton",3,"click"],["slot","icon-only","color","primary",3,"name"],["color","danger",4,"ngIf"],["lines","full"],["color","dark"],["formControlName","newPasswordCtrl","required","",3,"placeholder","type"],["inputPasswd",""],["lines","none",4,"ngIf"],["color","danger"],["required","","formControlName","retypePasswordCtrl",3,"placeholder","type"],["inputPasswd2",""],["text-center","","lines","none",2,"position","sticky","bottom","0px","z-index","1"],[2,"display","flex","align-items","center","justify-content","center","width","100%","background","white"],["type","submit","shape","round","size","large","fill","outline","color","primary",3,"disabled"],[2,"font-size","13px"],["type","button","shape","round","size","large","fill","outline","color","default",3,"click"],["color","warning","class","alert-warning","role","alert",3,"innerHTML",4,"ngIf"],["lines","none"],["slot","start","color","success","name","checkmark-outline"],["color","success"],["color","warning","role","alert",1,"alert-warning",3,"innerHTML"]],template:function(e,t){1&e&&(ss(0,"ion-header",0),ss(1,"ion-toolbar",1),us(2,"ion-buttons",2),ss(3,"ion-title"),Qs(4),Du(5,"translate"),ls(),ls(),ls(),ss(6,"ion-content",null,3),ss(8,"form",4),ms("ngSubmit",function(){return t.onSubmit()}),ss(9,"ion-grid"),ss(10,"ion-row"),ss(11,"ion-col",5),ss(12,"ion-card",6),ss(13,"ion-card-content"),Qs(14),Du(15,"translate"),ss(16,"b"),Qs(17),ls(),Qs(18),Du(19,"translate"),ls(),ls(),ss(20,"ion-item"),ss(21,"ion-label",7),Qs(22),Du(23,"translate"),ls(),us(24,"ion-input",8),Du(25,"translate"),ss(26,"ion-button",9),ms("click",function(){return t.hidePassword=!t.hidePassword}),us(27,"ion-icon",10),ls(),ns(28,UG,3,3,"ion-note",11),ls(),ss(29,"ion-list-header",12),ss(30,"ion-label",13),Qs(31),ls(),ls(),ss(32,"ion-item"),ss(33,"ion-label",7),Qs(34),Du(35,"translate"),ls(),us(36,"ion-input",14,15),Du(38,"translate"),ss(39,"ion-button",9),ms("click",function(){return t.hidePassword=!t.hidePassword}),us(40,"ion-icon",10),ls(),ns(41,WG,5,3,"ion-item",16),ss(42,"ion-note",17),Qs(43),ls(),ls(),ss(44,"ion-item"),ss(45,"ion-label",7),Qs(46),Du(47,"translate"),ls(),us(48,"ion-input",18,19),Du(50,"translate"),ss(51,"ion-button",9),ms("click",function(){return t.hidePassword=!t.hidePassword}),us(52,"ion-icon",10),ls(),ns(53,GG,5,3,"ion-item",16),ss(54,"ion-note",17),Qs(55),Du(56,"translate"),ls(),ls(),ls(),ls(),ls(),ss(57,"ion-item",20),ss(58,"div",21),ss(59,"ion-button",22),ss(60,"ion-label",23),Qs(61),Du(62,"translate"),ls(),ls(),ss(63,"ion-button",24),ms("click",function(){return t.logout()}),ss(64,"ion-label",23),Qs(65),Du(66,"translate"),ls(),ls(),ls(),ls(),ls(),ns(67,qG,1,1,"ion-item",25),ls()),2&e&&(os("translucent",!0),xo(4),Xs(Ou(5,29,"lang.passwordModification")),xo(4),os("formGroup",t.firstFormGroup),xo(6),Ks(" ",Ou(15,31,"lang.hello")," "),xo(3),Js(" ",t.user.firstname," ",t.user.lastname,""),xo(1),Ks(", ",Ou(19,33,"lang.changePasswordInfo"),". "),xo(4),Xs(Ou(23,35,"lang.typeCurrentPassword")),xo(2),Ss("placeholder",Ou(25,37,"lang.typeCurrentPassword")),os("type",t.hidePassword?"password":"text"),xo(3),os("name",t.hidePassword?"eye-outline":"eye-off-outline"),xo(1),os("ngIf",t.firstFormGroup.controls.currentPasswordCtrl.hasError("required")),xo(3),Xs(t.ruleText),xo(3),Ks("",Ou(35,39,"lang.passwordConfirmation")," "),xo(2),Ss("placeholder",Ou(38,41,"lang.passwordConfirmation")),os("type",t.hidePassword?"password":"text"),xo(4),os("name",t.hidePassword?"eye-outline":"eye-off-outline"),xo(1),os("ngIf",t.validPassword),xo(2),Xs(t.getErrorMessage()),xo(3),Ks("",Ou(47,43,"lang.passwordConfirmation")," "),xo(2),Ss("placeholder",Ou(50,45,"lang.passwordConfirmation")),os("type",t.hidePassword?"password":"text"),xo(4),os("name",t.hidePassword?"eye-outline":"eye-off-outline"),xo(1),os("ngIf",!t.firstFormGroup.controls.retypePasswordCtrl.hasError("mismatch")&&""!=t.firstFormGroup.controls.retypePasswordCtrl.value),xo(2),Xs(Ou(56,47,"lang.passwordNotMatch")),xo(4),os("disabled",!t.firstFormGroup.valid),xo(2),Xs(Ou(62,49,"lang.validate")),xo(4),Xs(Ou(66,51,"lang.logout")),xo(2),os("ngIf",t.passwordRules.renewal.enabled||t.passwordRules.historyLastUse.enabled))},directives:[XC,DS,LC,PS,UC,Zm,fm,ey,QC,yS,jC,FC,BC,nS,aS,tS,nA,hm,ny,xy,RC,KC,mh,lS,hS],pipes:[gE],styles:[".alert-warning[_ngcontent-%COMP%]{text-align:center;width:100%;margin:0;color:#8a6d3b;background-color:#fcf8e3;border-color:#faebcc;padding-top:15px;padding-bottom:15px}.alert-warning[_ngcontent-%COMP%], .container[_ngcontent-%COMP%]{left:0;bottom:0;position:absolute}.container[_ngcontent-%COMP%]{margin-top:-63px;display:flex;flex-direction:column;top:64px;right:0;height:100%}"]}),YG),QG=u("b0Xh"),XG=["passwordContent"];function KG(e,t){if(1&e&&(ss(0,"ion-note",35),Qs(1),Du(2,"translate"),ls()),2&e){var n=ks(3);xo(1),Ks(" ",Ou(2,1,n.handlePassword.errorMsg),"")}}function JG(e,t){if(1&e){var n=fs();ss(0,"div"),ss(1,"ion-list-header",26),ss(2,"ion-label",1),Qs(3),Du(4,"translate"),ls(),ls(),ss(5,"ion-item"),ss(6,"ion-label",29),Qs(7),Du(8,"translate"),ls(),ss(9,"ion-input",30),ms("ngModelChange",function(e){return nn(n),ks(2).password.currentPassword=e}),Du(10,"translate"),ls(),ss(11,"ion-button",31),ms("click",function(){nn(n);var e=ks(2);return e.hideCurrentPassword=!e.hideCurrentPassword}),us(12,"ion-icon",32),ls(),ls(),ss(13,"ion-item"),ss(14,"ion-label",29),Qs(15),Du(16,"translate"),ls(),ss(17,"ion-input",33),ms("ngModelChange",function(e){return nn(n),ks(2).password.newPassword=e})("keyup",function(){nn(n);var e=ks(2);return e.checkPasswordValidity(e.password.newPassword)}),Du(18,"translate"),ls(),ss(19,"ion-button",31),ms("click",function(){nn(n);var e=ks(2);return e.hideNewPassword=!e.hideNewPassword}),us(20,"ion-icon",32),ls(),ns(21,KG,3,3,"ion-note",28),ls(),ss(22,"ion-item"),ss(23,"ion-label",29),Qs(24),Du(25,"translate"),ls(),ss(26,"ion-input",34),ms("ngModelChange",function(e){return nn(n),ks(2).password.passwordConfirmation=e}),Du(27,"translate"),ls(),ss(28,"ion-button",31),ms("click",function(){nn(n);var e=ks(2);return e.hideNewPasswordConfirm=!e.hideNewPasswordConfirm}),us(29,"ion-icon",32),ls(),ls(),ls()}if(2&e){var i=ks(2);xo(3),Xs(Ou(4,17,"lang.changePassword")),xo(4),Xs(Ou(8,19,"lang.currentPassword")),xo(2),Ss("placeholder",Ou(10,21,"lang.currentPassword")),os("ngModel",i.password.currentPassword)("type",i.hideCurrentPassword?"password":"text"),xo(3),os("name",i.hideCurrentPassword?"eye-outline":"eye-off-outline"),xo(3),Xs(Ou(16,23,"lang.newPassword")),xo(2),Ss("placeholder",Ou(18,25,"lang.newPassword")),os("ngModel",i.password.newPassword)("type",i.hideNewPassword?"password":"text"),xo(3),os("name",i.hideNewPassword?"eye-outline":"eye-off-outline"),xo(1),os("ngIf",i.handlePassword.error),xo(3),Ks("",Ou(25,27,"lang.passwordConfirmation")," "),xo(2),Ss("placeholder",Ou(27,29,"lang.passwordConfirmation")),os("ngModel",i.password.passwordConfirmation)("type",i.hideNewPasswordConfirm?"password":"text"),xo(3),os("name",i.hideNewPasswordConfirm?"eye-outline":"eye-off-outline")}}function $G(e,t){1&e&&(ss(0,"ion-note",36),Qs(1),Du(2,"translate"),ls()),2&e&&(xo(1),Ks(" ",Ou(2,1,"lang.samePassword"),""))}function eq(e,t){1&e&&(ss(0,"ion-note",35),Qs(1),Du(2,"translate"),ls()),2&e&&(xo(1),Ks(" ",Ou(2,1,"lang.passwordNotMatch"),""))}function tq(e,t){if(1&e){var n=fs();cs(0),ss(1,"ion-list",16),ss(2,"ion-item"),ss(3,"ion-avatar",17),ms("click",function(){return nn(n),is(10).click()}),us(4,"img",18),ls(),ss(5,"ion-label",19),Qs(6),Du(7,"translate"),ls(),ss(8,"ion-input",20),ms("ngModelChange",function(e){return nn(n),ks().profileInfo.login=e}),ls(),ss(9,"input",21,22),ms("change",function(e){return nn(n),ks().handleFileInput(e.target.files)}),ls(),ls(),ss(11,"ion-item"),ss(12,"ion-label",19),Qs(13),Du(14,"translate"),ls(),ss(15,"ion-input",23),ms("ngModelChange",function(e){return nn(n),ks().profileInfo.email=e}),ls(),ls(),ss(16,"ion-item"),ss(17,"ion-label",19),Qs(18),Du(19,"translate"),ls(),ss(20,"ion-input",24),ms("ngModelChange",function(e){return nn(n),ks().profileInfo.firstname=e}),ls(),ls(),ss(21,"ion-item"),ss(22,"ion-label",19),Qs(23),Du(24,"translate"),ls(),ss(25,"ion-input",25),ms("ngModelChange",function(e){return nn(n),ks().profileInfo.lastname=e}),ls(),ls(),ns(26,JG,30,31,"div",14),ss(27,"ion-item",26),ns(28,$G,3,3,"ion-note",27),ns(29,eq,3,3,"ion-note",28),ls(),ls(),ds()}if(2&e){var i=ks();xo(4),os("src",i.avatarInfo.picture,Cr),xo(2),Xs(Ou(7,19,"lang.login")),xo(2),os("maxlength",128)("ngModel",i.profileInfo.login),xo(5),Xs(Ou(14,21,"lang.email")),xo(2),os("maxlength",128)("ngModel",i.profileInfo.email)("readonly","default"!==i.authService.authMode),xo(3),Xs(Ou(19,23,"lang.firstname")),xo(2),os("maxlength",128)("ngModel",i.profileInfo.firstname)("readonly","default"!==i.authService.authMode),xo(3),Xs(Ou(24,25,"lang.lastname")),xo(2),os("maxlength",128)("ngModel",i.profileInfo.lastname)("readonly","default"!==i.authService.authMode),xo(1),os("ngIf","default"===i.authService.authMode),xo(2),os("ngIf",i.password.passwordConfirmation===i.password.newPassword&&i.password.newPassword.length>0&&i.password.passwordConfirmation.length>0),xo(1),os("ngIf",i.password.passwordConfirmation!==i.password.newPassword)}}function nq(e,t){if(1&e&&(ss(0,"ion-select-option",63),Qs(1),Du(2,"translate"),ls()),2&e){var n=t.$implicit;os("value",n),xo(1),Xs(Ou(2,2,"lang."+n))}}function iq(e,t){1&e&&(us(0,"ion-note",64),Du(1,"translate")),2&e&&os("innerHTML",Ou(1,1,"lang.freeModeInfo"),Ar)}function rq(e,t){1&e&&(us(0,"ion-note",64),Du(1,"translate")),2&e&&os("innerHTML",Ou(1,1,"lang.standardModeInfo"),Ar)}function oq(e,t){if(1&e&&(ss(0,"ion-select-option",63),Qs(1),ls()),2&e){var n=t.index;os("value",n+1),xo(1),Ks("",n+1," ")}}var aq=function(e){return{value:e}};function sq(e,t){if(1&e&&(us(0,"ion-note",65),Du(1,"translate")),2&e){var n=ks(2);os("innerHTML",Mu(1,1,"lang.scalingDocWith",Au(4,aq,n.signatureScaling)),Ar)}}function lq(e,t){if(1&e){var n=fs();cs(0),ss(1,"ion-list",16),ss(2,"ion-item"),ss(3,"ion-label"),Qs(4),Du(5,"translate"),ls(),ss(6,"ion-toggle",37),ms("ionChange",function(){nn(n);var e=ks();return e.preferenceInfo.notifications=!e.preferenceInfo.notifications}),ls(),ls(),ss(7,"ion-list"),ss(8,"ion-item"),ss(9,"ion-label",38),Qs(10),Du(11,"translate"),ls(),ss(12,"ion-select",39),ms("ngModelChange",function(e){return nn(n),ks().preferenceInfo.lang=e}),ns(13,nq,3,4,"ion-select-option",40),ls(),ls(),ls(),ss(14,"ion-list"),ss(15,"ion-item"),ss(16,"ion-label",38),Qs(17),Du(18,"translate"),ls(),ss(19,"ion-select",41),ms("ngModelChange",function(e){return nn(n),ks().preferenceInfo.writingMode=e}),ss(20,"ion-select-option",42),Qs(21),Du(22,"translate"),ls(),ss(23,"ion-select-option",43),Qs(24),Du(25,"translate"),us(26,"i",44),ls(),ls(),ns(27,iq,2,3,"ion-note",45),ns(28,rq,2,3,"ion-note",45),ls(),ls(),ss(29,"ion-list"),ss(30,"ion-item"),ss(31,"ion-label",38),Qs(32),Du(33,"translate"),ls(),ss(34,"ion-select",46),ms("ngModelChange",function(e){return nn(n),ks().preferenceInfo.writingSize=e})("ionChange",function(){return nn(n),ks().drawSample()}),ns(35,oq,2,2,"ion-select-option",40),ls(),ss(36,"ion-note",2),us(37,"canvas",47),ls(),ls(),ls(),ss(38,"ion-list"),ss(39,"ion-item"),ss(40,"ion-label",38),Qs(41),Du(42,"translate"),ls(),ss(43,"ion-select",48),ms("ngModelChange",function(e){return nn(n),ks().preferenceInfo.writingColor=e}),ss(44,"ion-select-option",49),Qs(45),Du(46,"translate"),ls(),ss(47,"ion-select-option",50),Qs(48),Du(49,"translate"),ls(),ss(50,"ion-select-option",51),Qs(51),Du(52,"translate"),ls(),ls(),ss(53,"ion-note",2),us(54,"div",52),ls(),ls(),ls(),ss(55,"ion-list"),ss(56,"ion-row"),ss(57,"iotn-item"),ss(58,"ion-label",53),Qs(59),Du(60,"translate"),ls(),ls(),ls(),ss(61,"ion-row"),ss(62,"ion-col",54),ss(63,"ion-item",55),ss(64,"ion-range",56),ms("ngModelChange",function(e){return nn(n),ks().signatureScaling=e}),us(65,"ion-icon",57),us(66,"ion-icon",58),ls(),ls(),ns(67,sq,2,6,"ion-note",59),ls(),ss(68,"ion-col",60),ss(69,"ion-item",61),ss(70,"ion-label"),Qs(71),Du(72,"translate"),ls(),ss(73,"ion-toggle",62),ms("ionChange",function(){nn(n);var e=ks();return e.originalSize=!e.originalSize}),ls(),ls(),ls(),ls(),ls(),ls(),ds()}if(2&e){var i=ks();xo(4),Xs(Ou(5,27,"lang.receiveNotif")),xo(2),os("checked",i.preferenceInfo.notifications),xo(4),Xs(Ou(11,29,"lang.language")),xo(2),os("ngModel",i.preferenceInfo.lang),xo(1),os("ngForOf",i.profileInfo.availableLanguages),xo(4),Ks("",Ou(18,31,"lang.annotationMode")," "),xo(2),os("ngModel",i.preferenceInfo.writingMode),xo(2),Xs(Ou(22,33,"lang.free")),xo(3),Ks("",Ou(25,35,"lang.appleStylus")," "),xo(3),os("ngIf","stylus"===i.preferenceInfo.writingMode),xo(1),os("ngIf","direct"===i.preferenceInfo.writingMode),xo(4),Xs(Ou(33,37,"lang.stylusWidh")),xo(2),os("ngModel",i.preferenceInfo.writingSize),xo(1),os("ngForOf",i.counter(10)),xo(6),Xs(Ou(42,39,"lang.defaultColor")),xo(2),os("ngModel",i.preferenceInfo.writingColor),xo(2),Xs(Ou(46,41,"lang.black")),xo(3),Xs(Ou(49,43,"lang.blue")),xo(3),Xs(Ou(52,45,"lang.red")),xo(3),Ls("background-color",i.preferenceInfo.writingColor),xo(5),Xs(Ou(60,47,"lang.signatureScaling")),xo(5),os("disabled",i.originalSize)("ngModel",i.signatureScaling),xo(3),os("ngIf",!i.originalSize),xo(4),Xs(Ou(72,49,"lang.originalSize")),xo(2),os("checked",i.originalSize)}}function uq(e,t){if(1&e){var n=fs();ss(0,"ion-list"),ss(1,"ion-item"),us(2,"ion-input",66),ss(3,"ion-button",67),ms("click",function(){return nn(n),ks(2).deleteSubstitute()}),us(4,"ion-icon",68),ls(),ls(),ls()}if(2&e){var i=ks(2);xo(2),os("value",i.authService.user.substituteUser)}}function cq(e,t){if(1&e){var n=fs();ss(0,"ion-list"),ss(1,"ion-item"),ss(2,"ion-searchbar",69),ms("ionChange",function(e){return nn(n),ks(2).test(e)}),Du(3,"translate"),ls(),ls(),ls()}2&e&&(xo(2),os("placeholder",Ou(3,1,"lang.chooseSubstitute")))}function dq(e,t){if(1&e&&(ss(0,"ion-note",2),Qs(1),ls()),2&e){var n=ks().$implicit;xo(1),Xs(n.email)}}function hq(e,t){1&e&&(ss(0,"ion-note",74),Qs(1),Du(2,"translate"),ls()),2&e&&(xo(1),Xs(Ou(2,1,"lang.delegatedUser")))}function fq(e,t){if(1&e){var n=fs();ss(0,"ion-item"),ss(1,"ion-checkbox",71),ms("ionChange",function(e){return nn(n),ks(3).selectSubstitute(e.detail.value)}),ls(),ss(2,"ion-label"),Qs(3),ls(),ns(4,dq,2,1,"ion-note",72),ns(5,hq,3,3,"ion-note",73),ls()}if(2&e){var i=t.$implicit;xo(1),os("disabled",i.substitute)("value",i),xo(2),Js("",i.firstname," ",i.lastname,""),xo(1),os("ngIf",!i.substitute),xo(1),os("ngIf",i.substitute)}}function pq(e,t){if(1&e&&(ss(0,"ion-list"),ns(1,fq,6,6,"ion-item",70),ls()),2&e){var n=ks(2);xo(1),os("ngForOf",n.userList)}}function gq(e,t){if(1&e){var n=fs();ss(0,"button",78),ms("click",function(){nn(n);var e=t.index;return ks(3).toggleSignature(e)}),us(1,"img",79),ls()}if(2&e){var i=t.$implicit,r=ks(3);Fs("selected",i.substituted),xo(1),os("src",r.sanitizer.bypassSecurityTrustUrl("data:image/png;base64,"+i.encodedSignature),Cr)}}function vq(e,t){if(1&e&&(cs(0),ss(1,"ion-item",26),ss(2,"ion-label",75),Qs(3),Du(4,"translate"),ls(),ls(),ss(5,"div",76),ns(6,gq,2,3,"button",77),ls(),ds()),2&e){var n=ks(2);xo(3),Ks(" ",Ou(4,2,"lang.signSubstituted")," : "),xo(3),os("ngForOf",n.signaturesService.signaturesList)}}function mq(e,t){if(1&e&&(cs(0),ns(1,uq,5,1,"ion-list",14),ns(2,cq,4,3,"ion-list",14),ns(3,pq,2,1,"ion-list",14),ns(4,vq,7,4,"ng-container",14),ds()),2&e){var n=ks();xo(1),os("ngIf",null!==n.authService.user.substitute),xo(1),os("ngIf",null===n.authService.user.substitute),xo(1),os("ngIf",null===n.authService.user.substitute),xo(1),os("ngIf",null!=n.authService.user.substitute&&n.signaturesService.signaturesList.length>0)}}function yq(e,t){if(1&e){var n=fs();ss(0,"ion-footer",80),ss(1,"ion-toolbar"),ss(2,"ion-buttons",81),ss(3,"ion-button",82),ms("click",function(){return nn(n),ks().submitProfile()}),ss(4,"ion-label"),Qs(5),Du(6,"translate"),ls(),ls(),ls(),ls(),ls()}if(2&e){var i=ks(),r=is(27);xo(3),os("disabled",i.allowValidate()||!r.form.valid),xo(2),Xs(Ou(6,2,"lang.save"))}}var bq,wq=function(){return["info","pref"]},_q=((bq=function(){function e(t,n,i,r,o,a,s,l,u,c,d){A(this,e),this.translate=t,this.http=n,this.router=i,this.sanitizer=r,this.notificationService=o,this.signaturesService=a,this.authService=s,this.cookieService=l,this.filtersService=u,this.renderer=c,this.modalController=d,this.currentTool="info",this.profileInfo={substitute:null,preferences:[]},this.preferenceInfo={},this.avatarInfo={picture:"",pictureOrientation:""},this.hideCurrentPassword=!0,this.hideNewPassword=!0,this.hideNewPasswordConfirm=!0,this.passwordRules={minLength:{enabled:!1,value:0},complexityUpper:{enabled:!1,value:0},complexityNumber:{enabled:!1,value:0},complexitySpecial:{enabled:!1,value:0},renewal:{enabled:!1,value:0},historyLastUse:{enabled:!1,value:0}},this.password={currentPassword:"",newPassword:"",passwordConfirmation:""},this.handlePassword={error:!1,errorMsg:""},this.usersList=[],this.ruleText="",this.otherRuleText="",this.disableState=!1,this.msgButton="lang.validate",this.loading=!1,this.slideOpts={initialSlide:0,speed:400},this.showHideContent=!1,this.userList=[],this.signatureScaling=25,this.originalSize=!1}return m(e,[{key:"ngOnInit",value:function(){this.initProfileInfo(),this.getPassRules()}},{key:"dismissModal",value:function(){this.modalController.dismiss("cancel")}},{key:"test",value:function(e){var t=this;""===e.detail.value?this.userList=[]:e.detail.value.length>=3&&this.http.get("../rest/autocomplete/users?search="+e.detail.value).pipe(uw(function(e){t.userList=e.filter(function(e){return e.id!==t.profileInfo.id})}),Zb(function(e){return t.notificationService.handleErrors(e),Ty(!1)})).subscribe()}},{key:"initProfileInfo",value:function(){this.profileInfo=JSON.parse(JSON.stringify(this.authService.user)),this.preferenceInfo=this.profileInfo.preferences,this.avatarInfo.picture=this.profileInfo.picture,void 0!==this.preferenceInfo.signatureScaling?!1===this.preferenceInfo.signatureScaling?this.originalSize=!0:this.signatureScaling=this.preferenceInfo.signatureScaling:this.originalSize=!0,delete this.profileInfo.picture,delete this.profileInfo.preferences}},{key:"initTab",value:function(e){var t=this;this.currentTool=e,"pref"===e&&setTimeout(function(){t.drawSample()},200)}},{key:"closeProfile",value:function(){var e=this;setTimeout(function(){e.initProfileInfo()},200),this.dismissModal()}},{key:"getPassRules",value:function(){var e=this;this.handlePassword.error=!1,this.handlePassword.errorMsg="",this.http.get("../rest/passwordRules").subscribe(function(t){var n=[],i=[];t.rules.forEach(function(t){"minLength"===t.label?(e.passwordRules.minLength.enabled=t.enabled,e.passwordRules.minLength.value=t.value,t.enabled&&e.translate.get("lang.minLengthChar",{charLength:t.value}).subscribe(function(e){n.push(e)})):"complexityUpper"===t.label?(e.passwordRules.complexityUpper.enabled=t.enabled,e.passwordRules.complexityUpper.value=t.value,t.enabled&&n.push("lang.upperRequired")):"complexityNumber"===t.label?(e.passwordRules.complexityNumber.enabled=t.enabled,e.passwordRules.complexityNumber.value=t.value,t.enabled&&n.push("lang.numberRequired")):"complexitySpecial"===t.label?(e.passwordRules.complexitySpecial.enabled=t.enabled,e.passwordRules.complexitySpecial.value=t.value,t.enabled&&n.push("lang.specialCharRequired")):"renewal"===t.label?(e.passwordRules.renewal.enabled=t.enabled,e.passwordRules.renewal.value=t.value,t.enabled&&e.translate.get("lang.renewalInfo",{time:t.value}).subscribe(function(e){i.push(e)})):"historyLastUse"===t.label&&(e.passwordRules.historyLastUse.enabled=t.enabled,e.passwordRules.historyLastUse.value=t.value,t.enabled&&e.translate.get("lang.historyUseInfo",{countPwd:t.value}).subscribe(function(e){i.push(e)}))}),e.ruleText=n.join(", "),e.otherRuleText=i.join("<br/>")},function(t){e.notificationService.handleErrors(t)})}},{key:"checkPasswordValidity",value:function(e){var t=this;this.handlePassword.error=!0,!e.match(/[A-Z]/g)&&this.passwordRules.complexityUpper.enabled?this.handlePassword.errorMsg="lang.upperRequired":!e.match(/[0-9]/g)&&this.passwordRules.complexityNumber.enabled?this.handlePassword.errorMsg="lang.numberRequired":!e.match(/[^A-Za-z0-9]/g)&&this.passwordRules.complexitySpecial.enabled?this.handlePassword.errorMsg="lang.specialCharRequired":e.length<this.passwordRules.minLength.value&&this.passwordRules.minLength.enabled?this.translate.get("lang.minLengthChar",{charLength:this.passwordRules.minLength.value}).subscribe(function(e){t.handlePassword.errorMsg=e}):(this.handlePassword.error=!1,this.handlePassword.errorMsg="")}},{key:"allowValidate",value:function(){return!!this.disableState||!(""===this.password.newPassword||!this.handlePassword.error&&this.password.newPassword===this.password.passwordConfirmation&&0!==this.password.currentPassword.length&&0!==this.password.newPassword.length&&0!==this.password.passwordConfirmation.length)}},{key:"submitProfile",value:function(){return e=this,n=regeneratorRuntime.mark(function e(){var t=this;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:this.disableState=!0,this.msgButton="lang.sending",this.preferenceInfo=Object.assign(Object.assign({},this.preferenceInfo),{signatureScaling:!this.originalSize&&this.signatureScaling}),this.http.put("../rest/users/"+this.authService.user.id+"/preferences",this.preferenceInfo).pipe(uw(function(){t.disableState=!1,t.msgButton="lang.validate",t.setLang(t.preferenceInfo.lang),t.cookieService.set("maarchParapheurLang",t.preferenceInfo.lang)}),mj(function(){return"default"===t.authService.authMode?t.http.put("../rest/users/"+t.authService.user.id,t.profileInfo):new Promise(function(e){e(!0)})}),mj(function(){if(t.authService.updateUserInfoWithTokenRefresh(),""===t.password.newPassword)return t.closeProfile(),t.notificationService.success("lang.profileUpdated"),Ty(!1);if("default"===t.authService.authMode){var e=new zy({Authorization:"Bearer "+t.authService.getToken()});return t.http.put("../rest/users/"+t.authService.user.id+"/password",t.password,{observe:"response",headers:e})}return Ty(!1)}),Ry(function(e){return!!e}),uw(function(e){t.authService.saveTokens(e.headers.get("Token"),e.headers.get("Refresh-Token")),t.password.newPassword="",t.password.passwordConfirmation="",t.password.currentPassword="",t.notificationService.success("lang.profileUpdated")}),Zb(function(e){return 401===e.status?t.notificationService.error("lang.wrongPassword"):t.notificationService.handleErrors(e),Ty(!1)})).subscribe();case 1:case"end":return e.stop()}},e,this)}),new((t=void 0)||(t=Promise))(function(i,r){function o(e){try{s(n.next(e))}catch(t){r(t)}}function a(e){try{s(n.throw(e))}catch(t){r(t)}}function s(e){var n;e.done?i(e.value):(n=e.value,n instanceof t?n:new t(function(e){e(n)})).then(o,a)}s((n=n.apply(e,[])).next())});var e,t,n}},{key:"changePicture",value:function(){var e=this;this.msgButton="lang.sending",this.disableState=!0,this.http.put("../rest/users/"+this.authService.user.id+"/picture",this.avatarInfo).pipe(uw(function(){e.authService.user.picture=e.avatarInfo.picture,e.notificationService.success("lang.profileUpdated")}),hw(function(){e.msgButton="lang.validate",e.disableState=!1})).subscribe()}},{key:"selectSubstitute",value:function(e){var t=this;this.userList=[],this.http.put("../rest/users/"+this.authService.user.id+"/substitute",{substitute:e.id}).subscribe(function(){t.authService.updateUserInfoWithTokenRefresh(),t.filtersService.resfreshDocuments(),t.signaturesService.documentsList.length>0&&!1===t.signaturesService.documentsList[t.signaturesService.indexDocumentsList].owner&&t.router.navigate(["/documents"]),t.notificationService.success("lang.substituteEnabled")})}},{key:"deleteSubstitute",value:function(){var e=this;confirm(this.translate.instant("lang.deleteSubstitution")+" ?")&&(this.profileInfo.substitute=null,this.http.put("../rest/users/"+this.authService.user.id+"/substitute",{substitute:this.profileInfo.substitute}).subscribe(function(){e.authService.updateUserInfoWithTokenRefresh(),e.filtersService.resfreshDocuments(),e.signaturesService.documentsList.length>0&&!1===e.signaturesService.documentsList[e.signaturesService.indexDocumentsList].owner&&e.router.navigate(["/documents"]),e.notificationService.success("lang.substitutionDeleted")}))}},{key:"handleFileInput",value:function(e){var t=this;this.passwordContent&&this.passwordContent.close();var n=e.item(0);if(n.size<=5e6)if(-1!==["image/png","image/jpg","image/jpeg","image/gif"].indexOf(n.type)){var i=new FileReader;i.onloadend=function(e){var n=new Image;n.src=i.result.toString(),t.avatarInfo.picture=i.result,n.onload=function(){return t.fixImgOrientation(n)}},i.readAsDataURL(n)}else this.notificationService.error("lang.notAnImage");else this.notificationService.error("lang.imageTooBig")}},{key:"fixImgOrientation",value:function(e){var t=this;QG.getData(e,function(){var n=0;switch(QG.getTag(e,"Orientation")){case 3:n=180;break;case 6:n=90;break;case 8:n=-90}t.avatarInfo.pictureOrientation=n,t.changePicture()})}},{key:"drawSample",value:function(){var e=document.getElementById("sampleNote").getContext("2d");e.clearRect(0,0,100,100),e.beginPath(),e.lineWidth=this.preferenceInfo.writingSize,e.moveTo(0,0),e.lineTo(100,100),e.moveTo(100,0),e.lineTo(0,100),e.stroke()}},{key:"initProfileTab",value:function(e){1===e.index&&this.drawSample()}},{key:"counter",value:function(e){return new Array(e)}},{key:"setLang",value:function(e){this.translate.use(e)}},{key:"toggleSignature",value:function(e){var t=this;this.http.patch("../rest/users/"+this.authService.user.id+"/signatures/"+this.signaturesService.signaturesList[e].id+"/substituted",{substituted:!this.signaturesService.signaturesList[e].substituted}).subscribe(function(){t.signaturesService.signaturesList[e].substituted=!t.signaturesService.signaturesList[e].substituted,t.notificationService.success("lang.modificationSaved")})}}]),e}()).\u0275fac=function(e){return new(e||bq)(rs(pE),rs(lb),rs(jk),rs(Wf),rs(yE),rs(PE),rs(DE),rs(IM),rs(yU),rs(El),rs(cP))},bq.\u0275cmp=ft({type:bq,selectors:[["app-my-profile"]],viewQuery:function(e,t){var n;1&e&&Qu(XG,1),2&e&&Zu(n=Ku())&&(t.passwordContent=n.first)},decls:33,vars:19,consts:[[3,"translucent"],["color","primary"],["slot","end"],[3,"click"],["slot","icon-only","name","close-outline"],[3,"value","ionChange"],["value","info"],["name","information-circle"],["value","pref"],["name","brush-outline"],["value","deleg"],["name","hand-left-outline"],[2,"display","contents",3,"ngSubmit"],["profileForm","ngForm"],[4,"ngIf"],["class","ion-no-border",4,"ngIf"],["lines","full",1,"ion-no-margin"],["slot","start",2,"cursor","pointer",3,"click"],[3,"src"],["color","secondary","position","floating"],["name","login","readonly","","required","",3,"maxlength","ngModel","ngModelChange"],["type","file",2,"display","none",3,"change"],["uploadFile",""],["name","email","pattern","(^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\\.[a-zA-Z0-9-.]+$)","required","",3,"maxlength","ngModel","readonly","ngModelChange"],["name","firstname","required","",3,"maxlength","ngModel","readonly","ngModelChange"],["name","lastname","required","",3,"maxlength","ngModel","readonly","ngModelChange"],["lines","none"],["color","success",4,"ngIf"],["color","danger",4,"ngIf"],["color","secondary","position","stacked"],["name","currentPassword",3,"ngModel","placeholder","type","ngModelChange"],["slot","end","color","light",1,"showpassButton",3,"click"],["slot","icon-only","color","primary",3,"name"],["name","newPassword",3,"ngModel","placeholder","type","ngModelChange","keyup"],["name","passwordConfirmation",3,"ngModel","placeholder","type","ngModelChange"],["color","danger"],["color","success"],["slot","start",3,"checked","ionChange"],["position","floating","color","secondary"],["name","langUser",3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],["name","writingMode",3,"ngModel","ngModelChange"],["value","direct"],["value","stylus"],[1,"fab","fa-apple"],[3,"innerHTML",4,"ngIf"],["name","writingSize",3,"ngModel","ngModelChange","ionChange"],["id","sampleNote","width","100","height","100"],["name","writingColor",3,"ngModel","ngModelChange"],["value","#000000"],["value","#1a75ff"],["value","#FF0000"],[2,"height","25px","width","25px","border-radius","20px"],["color","secondary",2,"opacity","1","margin-left","15px"],["size","7"],["lines","none",2,"margin-left","-10px"],["min","10","max","50","pin","","color","primary","name","signatureScaling",3,"disabled","ngModel","ngModelChange"],["slot","start","size","small","name","scan-circle-outline"],["slot","end","name","scan-outline"],["style","margin-left: 20px; font-size: 14px;",3,"innerHTML",4,"ngIf"],["size","5"],["lines","none",2,"margin-top","22px","margin-left","10px"],["slot","start","name","originalSize","color","primary",2,"cursor","pointer",3,"checked","ionChange"],[3,"value"],[3,"innerHTML"],[2,"margin-left","20px","font-size","14px",3,"innerHTML"],["readonly","",3,"value"],["slot","end","color","danger",3,"click"],["name","close-outline"],[3,"placeholder","ionChange"],[4,"ngFor","ngForOf"],["color","primary","slot","start",3,"disabled","value","ionChange"],["slot","end",4,"ngIf"],["slot","end","color","danger",4,"ngIf"],["slot","end","color","danger"],["color","secondary"],[2,"display","grid","grid-template-columns","repeat(2, 1fr)"],["type","button","class","signListButton","mat-stroked-button","",3,"selected","click",4,"ngFor","ngForOf"],["type","button","mat-stroked-button","",1,"signListButton",3,"click"],[2,"width","190px",3,"src"],[1,"ion-no-border"],[1,"ion-justify-content-center"],["type","submit","color","primary",3,"disabled","click"]],template:function(e,t){1&e&&(ss(0,"ion-header",0),ss(1,"ion-toolbar",1),ss(2,"ion-title"),Qs(3),Du(4,"translate"),ls(),ss(5,"ion-buttons",2),ss(6,"ion-button",3),ms("click",function(){return t.dismissModal()}),us(7,"ion-icon",4),ls(),ls(),ls(),ls(),ss(8,"ion-header"),ss(9,"ion-toolbar"),ss(10,"ion-segment",5),ms("ionChange",function(e){return t.initTab(e.detail.value)}),ss(11,"ion-segment-button",6),ss(12,"ion-label"),Qs(13),Du(14,"translate"),ls(),us(15,"ion-icon",7),ls(),ss(16,"ion-segment-button",8),ss(17,"ion-label"),Qs(18),Du(19,"translate"),ls(),us(20,"ion-icon",9),ls(),ss(21,"ion-segment-button",10),ss(22,"ion-label"),Qs(23),Du(24,"translate"),ls(),us(25,"ion-icon",11),ls(),ls(),ls(),ls(),ss(26,"form",12,13),ms("ngSubmit",function(){return t.submitProfile()}),ss(28,"ion-content"),ns(29,tq,30,27,"ng-container",14),ns(30,lq,74,51,"ng-container",14),ns(31,mq,5,4,"ng-container",14),ls(),ls(),ns(32,yq,7,4,"ion-footer",15)),2&e&&(os("translucent",!0),xo(3),Xs(Ou(4,10,"lang.myProfil")),xo(7),os("value",t.currentTool),xo(3),Xs(Ou(14,12,"lang.informations")),xo(5),Xs(Ou(19,14,"lang.preferences")),xo(5),Xs(Ou(24,16,"lang.substitute")),xo(6),os("ngIf","info"===t.currentTool),xo(1),os("ngIf","pref"===t.currentTool),xo(1),os("ngIf","deleg"===t.currentTool),xo(1),os("ngIf",xu(18,wq).indexOf(t.currentTool)>-1))},directives:[XC,DS,PS,LC,RC,KC,wS,tA,_S,aS,Zm,fm,Wm,UC,mh,sS,nS,MC,tS,nA,xy,Cy,hm,Ym,Py,lS,hS,ES,Jx,kS,gh,xS,yS,jC,gS,bS,NC,YF,ZC],pipes:[gE],styles:['.sidebar[_ngcontent-%COMP%]{position:relative;height:100%;overflow:auto}.sidebar-header[_ngcontent-%COMP%]{background:#f1f4f4;height:50px;display:flex;align-items:center;justify-content:center;font-size:14px;font-weight:600;padding-top:10px}.sidebar-header-icon[_ngcontent-%COMP%]{margin-right:15px;position:relative}.sidebar-header-icon.notification[_ngcontent-%COMP%]:after{position:absolute;right:-5px;top:-5px;width:10px;height:10px;border-radius:50%;background:#e74c3c;content:""}.sidebar-header-subtitle[_ngcontent-%COMP%]{color:#9b9b9b}.sidebar-btn[_ngcontent-%COMP%]{height:50px;display:flex;align-items:center;justify-content:space-around}.sidebar[_ngcontent-%COMP%]   .nav[_ngcontent-%COMP%]{margin-top:0}.profile-header[_ngcontent-%COMP%]{background:#135f7f;height:95px;display:flex;justify-content:center;position:relative}.user[_ngcontent-%COMP%]{color:#fff;color:#f99830;position:absolute;top:15px;font-weight:700;font-size:20px}.input-row[_ngcontent-%COMP%]{width:100%;padding-top:10px;padding-bottom:10px}.profile-content[_ngcontent-%COMP%]{padding:10px;text-align:center}.actions[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{padding:10px;margin:10px;color:#fff;font-size:20px}.actions[_ngcontent-%COMP%]   .cancel[_ngcontent-%COMP%]{position:absolute;top:0;left:0;height:65px;width:65px;font-size:35px}.actions[_ngcontent-%COMP%]   .validate[_ngcontent-%COMP%]{position:absolute;top:10px;right:0;font-size:20px}canvas[_ngcontent-%COMP%]{background-color:#f1f4f4}fieldset[_ngcontent-%COMP%]{border:1px solid #f1f4f4;align-items:center}legend[_ngcontent-%COMP%]{color:#f99830}.form-container[_ngcontent-%COMP%]{display:table;width:100%}.form-2-col[_ngcontent-%COMP%]{width:50%}.form-2-col[_ngcontent-%COMP%], .form-col[_ngcontent-%COMP%]{display:table-cell;vertical-align:middle}.notification[_ngcontent-%COMP%]{text-align:left;padding:10px}.panel-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;position:relative;height:100%;overflow:hidden}.panel-header[_ngcontent-%COMP%]{box-shadow:0 0 10px 0 #656565;color:#fff;background:#135f7f;height:95px;display:flex;justify-content:center;position:relative;font-size:20px;align-items:center}.panel-content[_ngcontent-%COMP%]{flex:1;overflow:auto}.mat-icon[_ngcontent-%COMP%]{height:auto}.selected[_ngcontent-%COMP%]{border:solid #f99830}.selectedSubstitute[_ngcontent-%COMP%]{width:100%}.selectedSubstitute[_ngcontent-%COMP%]    .mat-input-element{cursor:default}.selectedSubstitute[_ngcontent-%COMP%]    .mat-form-field-suffix{top:0;display:flex}.showpassButton[_ngcontent-%COMP%]{--background:none;--box-shadow:none}']}),bq);function kq(e,t){if(1&e){var n=fs();ss(0,"ion-button",3),ms("click",function(){return nn(n),ks().menu.open("left-menu")}),Qs(1),Du(2,"translate"),ls()}2&e&&(xo(1),Ks(" ",Ou(2,1,"lang.accessMenu")," "))}var xq,Aq=((xq=function(){function e(t,n,i,r){A(this,e),this.signaturesService=t,this.translate=n,this.menu=i,this.modalController=r,this.loading=!1}return m(e,[{key:"ngOnInit",value:function(){this.menu.enable(!0,"left-menu"),this.menu.enable(!1,"right-menu"),this.menu.open("left-menu")}}]),e}()).\u0275fac=function(e){return new(e||xq)(rs(PE),rs(pE),rs(uP),rs(cP))},xq.\u0275cmp=ft({type:xq,selectors:[["ng-component"]],decls:3,vars:1,consts:[["color","primary"],["svgIcon","maarchLogo",1,"maarchLogo"],["class","menu-button","color","light","fill","outline","size","large",3,"click",4,"ngIf"],["color","light","fill","outline","size","large",1,"menu-button",3,"click"]],template:function(e,t){1&e&&(ss(0,"ion-content",0),us(1,"mat-icon",1),ns(2,kq,3,3,"ion-button",2),ls()),2&e&&(xo(2),os("ngIf",t.signaturesService.mobileMode))},directives:[UC,XB,mh,RC],pipes:[gE],styles:[".maarchLogo[_ngcontent-%COMP%]{top:50%;width:250px;height:auto}.maarchLogo[_ngcontent-%COMP%], .menu-button[_ngcontent-%COMP%]{position:absolute;left:50%;transform:translate(-50%,-50%)}.menu-button[_ngcontent-%COMP%]{top:60%}"]}),xq),Cq=function(e,t,n,i){return new(n||(n=Promise))(function(r,o){function a(e){try{l(i.next(e))}catch(t){o(t)}}function s(e){try{l(i.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((i=i.apply(e,t||[])).next())})};function Sq(e,t){if(1&e){var n=fs();ss(0,"ion-chip",25),ms("click",function(){nn(n);var e=ks().$implicit,t=ks().index;return ks().goToSignUserPage(t,e.page)}),Du(1,"translate"),ss(2,"ion-label"),Qs(3),ls(),ls()}if(2&e){var i=ks().$implicit,r=ks().index,o=ks();os("title",Ou(1,3,"lang.accessToPage")+" "+i.page)("color",r===o.currentUser&&i.page===o.currentPage?"primary":"medium"),xo(3),Xs(i.page)}}function Pq(e,t){if(1&e&&(cs(0),ns(1,Sq,4,5,"ion-chip",24),ds()),2&e){var n=t.$implicit,i=ks().index;xo(1),os("ngIf",n.sequence==i)}}function Eq(e,t){if(1&e&&(ss(0,"ion-segment-button",21),ss(1,"ion-label"),ss(2,"h2"),Qs(3),ls(),ss(4,"p",22),ns(5,Pq,2,1,"ng-container",7),ls(),ls(),us(6,"ion-icon",23),ls()),2&e){var n=t.$implicit,i=t.index,r=ks();os("value",i),xo(3),Xs(n.userDisplay),xo(2),os("ngForOf",r.signList),xo(1),os("name","sign"===n.mode?"pencil-outline":"checkmark-done-outline")}}var Dq=function(e,t){return{x:e,y:t}};function Oq(e,t){if(1&e){var n=fs();ss(0,"div",27),ms("movingOffset",function(){return nn(n),ks(2).dragging=!0})("endOffset",function(e){nn(n);var t=ks(2);return t.moveSign(e,t.i)})("click",function(){nn(n);var e=ks().$implicit,t=ks();return t.currentUser!=e.sequence&&t.goToSignUserPage(e.sequence,t.currentPage)}),ss(1,"ion-buttons",28),ss(2,"ion-button",29),ms("click",function(){nn(n);var e=ks().index;return ks().deleteSign(e)}),Du(3,"translate"),us(4,"ion-icon",30),ls(),ls(),ss(5,"span",31),Qs(6),ls(),Qs(7),Du(8,"uppercase"),Du(9,"translate"),ls()}if(2&e){var i=ks().$implicit,r=ks(),o=is(11);Ls("width",25,"%"),Fs("signDisabled",r.currentUser!==i.sequence)("hide",!r.pagesLoaded),os("position",Cu(20,Dq,i.position.positionX*r.workingAreaWidth/100,i.position.positionY*r.workingAreaHeight/100))("ngDraggable",r.currentUser===i.sequence)("preventDefaultEvent",!1)("bounds",o)("inBounds",!0),xo(2),os("title",Ou(3,14,"lang.delete")),xo(4),Xs(r.getUserName(i.sequence)),xo(1),Ks(" ",Ou(8,16,Ou(9,18,"lang.signature"))," ")}}function Mq(e,t){if(1&e&&(cs(0),ns(1,Oq,10,23,"div",26),ds()),2&e){var n=t.$implicit,i=ks();xo(1),os("ngIf",n.page===i.currentPage)}}function Tq(e,t){if(1&e){var n=fs();ss(0,"ion-button",32),ms("click",function(){return nn(n),ks().initSign()}),Qs(1),Du(2,"translate"),ls()}2&e&&(xo(1),Ks(" ",Ou(2,1,"lang.createSignaturePosition"),""))}function Iq(e,t){if(1&e&&(ss(0,"ion-select-option",33),Qs(1),ls()),2&e){var n=t.index;os("value",t.$implicit),xo(1),Xs(n+1)}}function Rq(e,t){if(1&e){var n=fs();ss(0,"ion-fab-button",36),ms("click",function(){nn(n);var e=ks(2);return e.changePage(e.currentPage-1)}),us(1,"ion-icon",37),ls()}}function Lq(e,t){if(1&e){var n=fs();ss(0,"ion-fab-button",38),ms("click",function(){nn(n);var e=ks(2);return e.changePage(e.currentPage+1)}),us(1,"ion-icon",39),ls()}}function Fq(e,t){if(1&e&&(cs(0),ns(1,Rq,2,0,"ion-fab-button",34),ns(2,Lq,2,0,"ion-fab-button",35),ds()),2&e){var n=ks();xo(1),os("ngIf",n.currentPage>1),xo(1),os("ngIf",n.currentPage<n.pages.length)}}var Bq,Vq,zq=((Vq=function(){function e(t,n,i,r,o,a){A(this,e),this.translate=t,this.http=n,this.signaturesService=i,this.pdfViewerService=r,this.modalController=o,this.loadingController=a,this.workflow=[],this.resource=[],this.pdfContent=null,this.loading=!1,this.dragging=!1,this.pages=[],this.currentUser=0,this.currentPage=1,this.currentSignature={positionX:0,positionY:0},this.workingAreaWidth=0,this.workingAreaHeight=0,this.signList=[],this.imgContent=null,this.load=null,this.pagesLoaded=!1}return m(e,[{key:"ngOnInit",value:function(){var e=this;this.loadingController.create({message:this.translate.instant("lang.processing"),spinner:"dots"}).then(function(t){e.load=t,e.load.present()}),this.resource.signPos&&this.initSignPos()}},{key:"initSignPos",value:function(){var e=this;this.workflow.forEach(function(t,n){var i;(null===(i=t.signaturePositions)||void 0===i?void 0:i.length)>0&&(e.signList=e.signList.concat(t.signaturePositions.filter(function(t){return t.mainDocument===e.resource.mainDocument}).map(function(e){return Object.assign(Object.assign({},e),{sequence:n})})))})}},{key:"onSubmit",value:function(){this.modalController.dismiss(this.formatData())}},{key:"onPagesLoaded",value:function(e){return Cq(this,void 0,void 0,regeneratorRuntime.mark(function t(){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:this.pages=Array.from({length:e.pagesCount}).map(function(e,t){return t+1}),this.changePage(1);case 1:case"end":return t.stop()}},t,this)}))}},{key:"exportAsImage",value:function(){return Cq(this,void 0,void 0,regeneratorRuntime.mark(function e(){var t;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.pdfViewerService.getPageAsImage(this.currentPage,{width:1e3});case 2:t=e.sent,this.getImageDimensions(t),this.imgContent=t,this.pagesLoaded=!0;case 4:case"end":return e.stop()}},e,this)}))}},{key:"getImageDimensions",value:function(e){var t=this,n=new Image;n.onload=function(e){t.workingAreaWidth=e.target.naturalWidth,t.workingAreaHeight=e.target.naturalHeight},n.src=e}},{key:"changePage",value:function(e){this.currentPage=e,this.exportAsImage()}},{key:"moveSign",value:function(e,t){var n=this,i=100*e.x/this.workingAreaWidth,r=100*e.y/this.workingAreaHeight;this.signList.filter(function(e){return e.sequence===n.currentUser&&e.page===n.currentPage})[0].position.positionX=i,this.signList.filter(function(e){return e.sequence===n.currentUser&&e.page===n.currentPage})[0].position.positionY=r,this.dragging=!1}},{key:"emptySign",value:function(){var e=this;return 0===this.signList.filter(function(t){return t.sequence===e.currentUser&&t.page===e.currentPage}).length}},{key:"initSign",value:function(){this.signList.push({sequence:this.currentUser,page:this.currentPage,position:{positionX:75,positionY:90}});var e=0;Array.from(document.getElementsByClassName("drag-scroll-content")).forEach(function(t,n){if(null!==t.offsetParent)return e=n,!0}),document.getElementsByClassName("drag-scroll-content")[e].scrollTop=this.workingAreaHeight}},{key:"getUserSignPosPage",value:function(e){return this.signList.filter(function(t){return t.sequence===e})}},{key:"selectUser",value:function(e){this.currentUser=+e}},{key:"getUserName",value:function(e){return this.workflow[e].userDisplay}},{key:"goToSignUserPage",value:function(e,t){this.currentUser=e,this.currentPage=t,this.exportAsImage()}},{key:"deleteSign",value:function(e){this.signList.splice(e,1)}},{key:"formatData",value:function(){var e=this,t=[];return this.workflow.forEach(function(n,i){e.signList.filter(function(e){return e.sequence===i}).length>0&&(t=t.concat(e.signList.filter(function(e){return e.sequence===i})))}),t}},{key:"imageLoaded",value:function(e){this.load.dismiss()}}]),e}()).\u0275fac=function(e){return new(e||Vq)(rs(pE),rs(lb),rs(PE),rs(mO),rs(cP),rs(lP))},Vq.\u0275cmp=ft({type:Vq,selectors:[["ng-component"]],inputs:{workflow:"workflow",resource:"resource",pdfContent:"pdfContent"},decls:37,vars:35,consts:[[3,"translucent"],["color","primary"],["color","warning","scrollable","",2,"justify-content","center",3,"value","ionChange"],["layout","icon-start",3,"value",4,"ngFor","ngForOf"],[2,"overflow","auto","height","100%","width","100%","margin","auto",3,"drag-disabled","drag-scroll-disabled"],["id","myBounds",2,"margin","auto","position","relative","box-shadow","0px 0px 5px 0px #656565"],["myBounds",""],[4,"ngFor","ngForOf"],[1,"img-content",3,"src","ionImgDidLoad"],["color","primary","style","position: fixed;top: 50%;left: 50%;transform: translate(-50%,-50%);font-size:20px;",3,"click",4,"ngIf"],[2,"display","none",3,"src","useBrowserLocale","textLayer","pdfLoaded"],[1,"page-info"],[1,"page-info-doc"],[1,"page-info-page",3,"click"],["interface","action-sheet","hidden","true",2,"max-height","30%",3,"cancelText","ionChange"],["pagesList",""],[3,"value",4,"ngFor","ngForOf"],[4,"ngIf"],[1,"ion-no-border","footer-buttons"],["type","button","color","primary","fill","outline","shape","round","size","large",3,"click"],["type","button","color","medium","fill","outline","shape","round","size","large",3,"click"],["layout","icon-start",3,"value"],[1,"chip-item-content"],[3,"name"],["class","chip-item","outline","",3,"title","color","click",4,"ngIf"],["outline","",1,"chip-item",3,"title","color","click"],["class","signature",3,"signDisabled","position","width","ngDraggable","preventDefaultEvent","bounds","inBounds","hide","movingOffset","endOffset","click",4,"ngIf"],[1,"signature",3,"position","ngDraggable","preventDefaultEvent","bounds","inBounds","movingOffset","endOffset","click"],[2,"position","absolute","top","-50px","right","0px"],["fill","clear","slot","icon-only","shape","round","size","small","color","danger",3,"title","click"],["slot","icon-only","name","trash-outline"],[1,"signUserName"],["color","primary",2,"position","fixed","top","50%","left","50%","transform","translate(-50%,-50%)","font-size","20px",3,"click"],[3,"value"],["class","paginate-left",3,"click",4,"ngIf"],["class","paginate-right",3,"click",4,"ngIf"],[1,"paginate-left",3,"click"],["name","chevron-back-outline"],[1,"paginate-right",3,"click"],["name","chevron-forward-outline"]],template:function(e,t){if(1&e){var n=fs();ss(0,"ion-header",0),ss(1,"ion-toolbar",1),ss(2,"ion-title"),Qs(3),Du(4,"translate"),ls(),ls(),ss(5,"ion-toolbar",1),ss(6,"ion-segment",2),ms("ionChange",function(e){return t.selectUser(e.detail.value)}),ns(7,Eq,7,4,"ion-segment-button",3),ls(),ls(),ls(),ss(8,"ion-content"),ss(9,"drag-scroll",4),ss(10,"div",5,6),ns(12,Mq,2,1,"ng-container",7),ss(13,"ion-img",8),ms("ionImgDidLoad",function(e){return t.imageLoaded(e)}),ls(),ns(14,Tq,3,3,"ion-button",9),ls(),ls(),ss(15,"ngx-extended-pdf-viewer",10),ms("pdfLoaded",function(e){return t.onPagesLoaded(e)}),ls(),ss(16,"section",11),ss(17,"div",12),Qs(18),ls(),ss(19,"div",13),ms("click",function(){nn(n);var e=is(23);return t.pages.length>1&&e.open()}),Qs(20),Du(21,"translate"),ls(),ss(22,"ion-select",14,15),ms("ionChange",function(e){return t.changePage(e.target.value)}),Du(24,"translate"),ns(25,Iq,2,2,"ion-select-option",16),ls(),ls(),ns(26,Fq,3,2,"ng-container",17),ls(),ss(27,"ion-footer",18),ss(28,"div"),ss(29,"ion-button",19),ms("click",function(){return t.onSubmit()}),ss(30,"ion-label"),Qs(31),Du(32,"translate"),ls(),ls(),ss(33,"ion-button",20),ms("click",function(){return t.modalController.dismiss()}),ss(34,"ion-label"),Qs(35),Du(36,"translate"),ls(),ls(),ls(),ls()}2&e&&(os("translucent",!0),xo(3),Xs(Ou(4,25,"lang.adminSignaturesPositions")),xo(3),os("value",t.currentUser),xo(1),os("ngForOf",t.workflow),xo(2),os("drag-disabled",t.dragging&&!t.signaturesService.mobileMode)("drag-scroll-disabled",t.dragging&&t.signaturesService.mobileMode),xo(1),Ls("width",t.workingAreaWidth,"px")("height",t.workingAreaHeight,"px"),xo(2),os("ngForOf",t.signList),xo(1),os("src",t.imgContent),xo(1),os("ngIf",t.emptySign()),xo(1),os("src",t.pdfContent)("useBrowserLocale",!0)("textLayer",!1),xo(3),Xs(t.resource.title),xo(2),$s("",Ou(21,27,"lang.page")," ",t.currentPage," / ",t.pages.length,""),xo(2),os("cancelText",Ou(24,29,"lang.cancel")),xo(3),os("ngForOf",t.pages),xo(1),os("ngIf",t.pages.length>1),xo(5),Xs(Ou(32,31,"lang.save")),xo(4),Xs(Ou(36,33,"lang.cancel")))},directives:[XC,DS,PS,wS,tA,gh,UC,kM,JC,mh,vO,kS,ZC,RC,aS,_S,KC,HC,SM,LC,xS,qC],pipes:[gE,Uh],styles:[".containerMobile[_ngcontent-%COMP%]{flex-direction:column}.containerMobile[_ngcontent-%COMP%]   .signPosForm[_ngcontent-%COMP%]{flex:none!important;height:auto}.containerMobile[_ngcontent-%COMP%]   .signatureContainer[_ngcontent-%COMP%], .signPosForm[_ngcontent-%COMP%]{flex:1}.signatureContainer[_ngcontent-%COMP%]{position:relative;overflow:auto;width:1050px;display:flex;justify-content:center}.posSignButton[_ngcontent-%COMP%]{position:-webkit-sticky;position:sticky;top:0;left:50%;transform:translateX(-50%)}.signature[_ngcontent-%COMP%]{z-index:2;position:absolute;border:1px dashed var(--ion-color-danger);background:rgba(var(--ion-color-danger-rgb),.6) none repeat scroll 0 0;font-weight:700;font-size:20px;color:#fff;height:110px;display:flex;align-items:center;justify-content:center}.signDisabled[_ngcontent-%COMP%]{z-index:1;opacity:.2;cursor:pointer}.signUserName[_ngcontent-%COMP%]{position:absolute;font-size:12px;bottom:20px;font-weight:400;color:#fff;font-style:italic}.chip-item-content[_ngcontent-%COMP%]{z-index:9999;position:absolute;margin:0;bottom:0}.chip-item[_ngcontent-%COMP%]{font-size:7px;width:15px;height:15px;padding:0;margin:0 5px;color:#fff;border-color:#fff;justify-content:center}img[_ngcontent-%COMP%]{pointer-events:none}.paginate-left[_ngcontent-%COMP%]{left:20px}.paginate-left[_ngcontent-%COMP%], .paginate-right[_ngcontent-%COMP%]{position:absolute;top:40%;transform:translateY(-50%);--background:hsla(0,0%,77.6%,0.5019607843137255);--color:#666}.paginate-right[_ngcontent-%COMP%]{right:20px}.page-info[_ngcontent-%COMP%]{position:absolute;bottom:70px;height:30px;width:auto;max-width:70%;color:rgba(var(--ion-color-dark-rgb),.8);font-size:12px;font-weight:300;line-height:30px;display:flex;align-items:center;justify-content:center;opacity:.5;left:50%;transform:translateX(-50%);font-weight:500;transition:all .3s ease-in-out;z-index:9999}.page-info-doc[_ngcontent-%COMP%]{max-width:80%;background-color:#f1f4f4;border-radius:14px;padding:0 20px;z-index:1;white-space:pre;overflow:hidden;text-overflow:ellipsis}.page-info-page[_ngcontent-%COMP%]{cursor:pointer;text-align:center;border-radius:0 14px 14px 0;padding:0 20px;background:#fff;border:1px solid #ecf0f1;margin-left:-15px;height:28px;white-space:pre;display:flex;align-items:center}.page-info[_ngcontent-%COMP%]:hover{opacity:1}.hide[_ngcontent-%COMP%]{display:none}"]}),Vq),Nq=((Bq=function(){function e(){A(this,e),this.fileDropped=new Fu,this.disabled=!1,this.background="none",this.opacity="1"}return m(e,[{key:"onDragOver",value:function(e){this.disabled||(e.preventDefault(),e.stopPropagation(),this.background="#9ecbec",this.opacity="0.8")}},{key:"onDragLeave",value:function(e){this.disabled||(e.preventDefault(),e.stopPropagation(),this.background="rgba(255,255,255,0)",this.opacity="1")}},{key:"ondrop",value:function(e){if(!this.disabled){e.preventDefault(),e.stopPropagation(),this.background="rgba(255,255,255,0)",this.opacity="1";var t=e.dataTransfer.files;t.length>0&&this.fileDropped.emit(t)}}}]),e}()).\u0275fac=function(e){return new(e||Bq)},Bq.\u0275dir=bt({type:Bq,selectors:[["","appUploadFileDragDrop",""]],hostVars:4,hostBindings:function(e,t){1&e&&ms("dragover",function(e){return t.onDragOver(e)})("dragleave",function(e){return t.onDragLeave(e)})("drop",function(e){return t.ondrop(e)}),2&e&&Ls("background-color",t.background)("opacity",t.opacity)},inputs:{disabled:"disabled"},outputs:{fileDropped:"fileDropped"}}),Bq),Hq=function(e,t,n,i){return new(n||(n=Promise))(function(r,o){function a(e){try{l(i.next(e))}catch(t){o(t)}}function s(e){try{l(i.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((i=i.apply(e,t||[])).next())})},jq=["appVisaWorkflow"],Uq=["rightContent"],Wq=["docToUpload"];function Gq(e,t){1&e&&us(0,"ion-icon",34)}function qq(e,t){1&e&&us(0,"ion-icon",35)}function Yq(e,t){1&e&&us(0,"i",36)}function Zq(e,t){if(1&e){var n=fs();ss(0,"ion-item"),ss(1,"ion-buttons",2),ss(2,"ion-button",22),ms("click",function(){var e=t.$implicit;return e.mainDocument=!e.mainDocument}),Du(3,"translate"),Du(4,"translate"),ns(5,Gq,1,0,"ion-icon",23),ns(6,qq,1,0,"ion-icon",24),ls(),ls(),ss(7,"ion-item",25),ss(8,"ion-label",26),Qs(9),Du(10,"translate"),ls(),ss(11,"ion-input",27),ms("ngModelChange",function(e){return t.$implicit.reference=e}),Du(12,"translate"),ls(),ls(),ss(13,"ion-item",25),ss(14,"ion-label",26),Qs(15),Du(16,"translate"),ls(),ss(17,"ion-input",28),ms("ngModelChange",function(e){return t.$implicit.title=e}),Du(18,"translate"),ls(),ls(),ss(19,"ion-buttons",5),ss(20,"ion-button",29),ms("click",function(){nn(n);var e=t.index;return ks(2).signPos(e)}),Du(21,"translate"),ns(22,Yq,1,0,"i",30),us(23,"ion-icon",31),ls(),ss(24,"ion-button",32),ms("click",function(){nn(n);var e=t.index;return ks(2).deleteFile(e)}),Du(25,"translate"),us(26,"ion-icon",33),ls(),ls(),ls()}if(2&e){var i=t.$implicit,r=t.index,o=ks(2);xo(2),os("title",i.mainDocument?Ou(3,15,"lang.docToSign"):Ou(4,17,"lang.attachDocToSign")),xo(3),os("ngIf",i.mainDocument),xo(1),os("ngIf",!i.mainDocument),xo(3),Xs(Ou(10,19,"lang.reference")),xo(2),Ss("placeholder",Ou(12,21,"lang.fileReference")),os("maxlength",53)("ngModel",i.reference)("disabled",!i.mainDocument),xo(4),Ks("",Ou(16,23,"lang.subject")," *"),xo(2),Ss("placeholder",Ou(18,25,"lang.filename")),os("ngModel",i.title),xo(3),os("disabled",!i.mainDocument)("title",Ou(21,27,"lang.setSignaturesPosition")),xo(2),os("ngIf",void 0!==o.filesToUpload[r].signPos&&o.filesToUpload[r].signPos.length>0),xo(2),os("title",Ou(25,29,"lang.delete"))}}function Qq(e,t){if(1&e&&(ss(0,"ion-list"),ss(1,"ion-list-header"),ss(2,"ion-label",1),Qs(3),Du(4,"translate"),ls(),ls(),ns(5,Zq,27,31,"ion-item",21),ls()),2&e){var n=ks();xo(3),Xs(Ou(4,2,"lang.documentsToUpload")),xo(2),os("ngForOf",n.filesToUpload)}}function Xq(e,t){1&e&&us(0,"app-visa-workflow",37,38),2&e&&os("editMode",!0)}var Kq,Jq=((Kq=function(){function e(t,n,i,r,o,a,s,l,u,c,d,h){A(this,e),this.http=t,this.translate=n,this.router=i,this.menu=r,this.signaturesService=o,this.viewContainerRef=a,this.notificationService=s,this.authService=l,this.loadingController=u,this.alertController=c,this.datePipe=d,this.modalController=h,this.loading=!1,this.filesToUpload=[],this.errors=[],this.fromDocument=null}return m(e,[{key:"ngOnInit",value:function(){}},{key:"ionViewWillEnter",value:function(){this.menu.enable(!0,"left-menu"),this.menu.enable(!0,"right-menu"),this.filesToUpload=[],this.signaturesService.initTemplate(this.rightContent,this.viewContainerRef,"rightContent"),void 0!==window.history.state.documentId&&(this.fromDocument=window.history.state.documentId,this.getDocumentData(this.fromDocument))}},{key:"getDocumentData",value:function(e){var t=this;return new Promise(function(n){t.http.get("../rest/documents/"+e).pipe(uw(function(i){var r="",o=i.document.reference.split("/");(o=o.slice(3,o.length)).length>0&&(r=o.join("/")),t.filesToUpload.push({title:i.document.title,reference:r,mainDocument:!0,content:"",linkId:i.document.linkId,metadata:i.document.metadata}),t.getDocumentContent(e),t.appVisaWorkflow.loadWorkflow(i.document.workflow.map(function(e){return e.userSignatureModes.unshift("visa"),Object.assign(Object.assign({},e),{processDate:null,current:!1,role:"visa"===e.mode?"visa":e.signatureMode,modes:e.userSignatureModes})}));for(var a=0;a<i.document.attachments.length;a++)t.getAttachment(i.document.attachments[a].id);n(!0)}),Zb(function(e){return t.notificationService.handleErrors(e),Ty(!1)})).subscribe()})}},{key:"getDocumentContent",value:function(e){var t=this;return new Promise(function(n){t.http.get("../rest/documents/".concat(e,"/content?type=original")).pipe(uw(function(e){t.filesToUpload[0].content=e.encodedDocument,n(!0)}),Zb(function(e){return t.notificationService.handleErrors(e),Ty(!1)})).subscribe()})}},{key:"getAttachment",value:function(e){var t=this;return new Promise(function(n){t.http.get("../rest/attachments/"+e).pipe(uw(function(e){t.filesToUpload.push({title:e.attachment.title,mainDocument:!1,content:e.attachment.encodedDocument}),n(!0)}),Zb(function(e){return t.notificationService.handleErrors(e),Ty(!1)})).subscribe()})}},{key:"ionViewWillLeave",value:function(){this.signaturesService.detachTemplate("rightContent")}},{key:"onSubmit",value:function(){this.isValid()&&this.promptSaveDoc()}},{key:"promptSaveDoc",value:function(){return Hq(this,void 0,void 0,regeneratorRuntime.mark(function e(){var t,n=this;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.alertController.create({cssClass:"alert-info-no-msg",header:this.translate.instant("lang.areYouSure"),inputs:[{name:"note",id:"note",type:"textarea",placeholder:this.translate.instant("lang.addNote")}],buttons:[{text:this.translate.instant("lang.cancel"),role:"cancel",cssClass:"secondary",handler:function(){}},{text:this.translate.instant("lang.validate"),handler:function(e){n.loadingController.create({message:n.translate.instant("lang.processing"),spinner:"dots"}).then(function(t){return Hq(n,void 0,void 0,regeneratorRuntime.mark(function n(){var i,r;return regeneratorRuntime.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:t.present(),i=this.formatData(e.note),r=0;case 3:if(!(r<i.length)){n.next=9;break}return n.next=6,this.saveDocument(i[r],r);case 6:r++,n.next=3;break;case 9:t.dismiss(),0===this.errors.length&&(this.notificationService.success("lang.documentsImported"),this.router.navigate(["/home"]));case 10:case"end":return n.stop()}},n,this)}))})}}]});case 2:return t=e.sent,e.next=5,t.present();case 5:case"end":return e.stop()}},e,this)}))}},{key:"saveDocument",value:function(e,t){var n=this;return new Promise(function(t){n.http.post("../rest/documents",e).pipe(uw(function(){n.errors=[]}),hw(function(){return t(!0)}),Zb(function(t){return n.errors.push(e.title),n.notificationService.handleErrors(t),Ty(!1)})).subscribe()})}},{key:"formatData",value:function(e){var t=this,n=new Date,i=null,r=null;""!==e&&(i={value:e,creator:"".concat(this.authService.user.firstname," ").concat(this.authService.user.lastname),creationDate:this.datePipe.transform(n,"dd-MM-y")});var o=[],a=this.filesToUpload.filter(function(e){return e.mainDocument}),s=this.filesToUpload.filter(function(e){return!e.mainDocument});return a.length>1&&(r=this.datePipe.transform(n,"ddMMYhmmss")+"_"+Math.random().toString(36).substr(2,9)),a.forEach(function(e){var a={};null!==t.fromDocument&&e.metadata.forEach(function(e){a[e.label]=e.value});var l="";""!==e.reference&&(l=t.datePipe.transform(n,"y/MM/dd")+"/"+e.reference),o.push({title:e.title,reference:l,encodedDocument:e.content,isZipped:!1,linkId:null!==t.fromDocument?e.linkId:r,sender:"".concat(t.authService.user.firstname," ").concat(t.authService.user.lastname),notes:i,attachments:s.map(function(e){return{title:e.title,encodedDocument:e.content}}),workflow:t.appVisaWorkflow.getCurrentWorkflow().map(function(n,i){return{userId:n.userId,mode:t.authService.getWorkflowMode(n.role),signatureMode:t.authService.getSignatureMode(n.role),signaturePositions:void 0!==n.signaturePositions?t.formatPositions(n.signaturePositions.filter(function(t){return t.mainDocument===e.mainDocument&&void 0!==e.signPos})).map(function(e){return{page:e.page,positionX:e.position.positionX,positionY:e.position.positionY}}):[]}}),metadata:a})}),o}},{key:"formatPositions",value:function(e){return delete e.mainDocument,e}},{key:"dndUploadFile",value:function(e){this.uploadTrigger({target:{files:[e[0]]}})}},{key:"uploadTrigger",value:function(e){var t=this;if(e.target.files&&e.target.files[0]&&this.isExtensionAllowed(e.target.files)){for(var n=function(n){var i=e.target.files[n].name,r={title:i.substr(0,i.lastIndexOf(".")),reference:i.substr(0,i.lastIndexOf(".")).substr(0,53),mainDocument:!0,content:""},o=new FileReader;o.readAsArrayBuffer(e.target.files[n]),o.onload=function(e){r.mainDocument=0===t.filesToUpload.length,r.reference=0===t.filesToUpload.length?r.reference:"",r.content=t.getBase64Document(e.target.result),t.filesToUpload.push(r),1===t.filesToUpload.length&&setTimeout(function(){t.menu.open("right-menu")},500)}},i=0;i<e.target.files.length;i++)n(i);this.fileImport.nativeElement.value=""}else this.loading=!1}},{key:"isExtensionAllowed",value:function(e){for(var t=0;t<e.length;t++)if("pdf"!==e[t].name.toLowerCase().split(".").pop())return this.notificationService.error("lang.onlyPdfAuthorized"),!1;return!0}},{key:"getBase64Document",value:function(e){var t=new Uint8Array(e).reduce(function(e,t){return e+String.fromCharCode(t)},"");return btoa(t)}},{key:"deleteFile",value:function(e){this.filesToUpload.splice(e,1)}},{key:"signPos",value:function(e){return Hq(this,void 0,void 0,regeneratorRuntime.mark(function t(){var n,i,r,o=this;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(!(this.appVisaWorkflow.getCurrentWorkflow().length>0)){t.next=14;break}return this.appVisaWorkflow.getCurrentWorkflow().forEach(function(e,t){void 0===e.signaturePositions&&(o.appVisaWorkflow.visaWorkflow[t].signaturePositions=[])}),t.next=4,this.modalController.create({component:zq,cssClass:"custom-alert-fullscreen",componentProps:{workflow:this.appVisaWorkflow.getCurrentWorkflow(),resource:this.filesToUpload[e],pdfContent:"data:application/pdf;base64,"+this.filesToUpload[e].content}});case 4:return n=t.sent,t.next=7,n.present();case 7:return t.next=9,n.onWillDismiss();case 9:i=t.sent,void 0!==(r=i.data)&&(this.filesToUpload[e].signPos=r,this.appVisaWorkflow.setPositionsWorkfow(this.filesToUpload[e],r)),t.next=15;break;case 14:this.notificationService.error("lang.mustSetWorkflowBeforeSignPositions");case 15:case"end":return t.stop()}},t,this)}))}},{key:"isValid",value:function(){return this.filesToUpload.filter(function(e){return""===e.title}).length>0?(this.notificationService.error("lang.subjectMandatory"),!1):0===this.filesToUpload.filter(function(e){return e.mainDocument}).length?(this.notificationService.error("lang.mainDocumentMandatory"),!1):0!==this.appVisaWorkflow.getCurrentWorkflow().length||(this.notificationService.error("lang.workflowUserstMandatory"),this.menu.open("right-menu"),!1)}}]),e}()).\u0275fac=function(e){return new(e||Kq)(rs(lb),rs(pE),rs(jk),rs(uP),rs(PE),rs(uu),rs(yE),rs(DE),rs(lP),rs(sP),rs(Wh),rs(cP))},Kq.\u0275cmp=ft({type:Kq,selectors:[["ng-component"]],viewQuery:function(e,t){var n;1&e&&(Qu(jq,1),Qu(Uq,3),Qu(Wq,1)),2&e&&(Zu(n=Ku())&&(t.appVisaWorkflow=n.first),Zu(n=Ku())&&(t.rightContent=n.first),Zu(n=Ku())&&(t.fileImport=n.first))},features:[yl([Wh])],decls:31,vars:14,consts:[[3,"translucent"],["color","primary"],["slot","start"],["menu","left-menu"],[1,"ion-text-center"],["slot","end"],["menu","right-menu"],["name","list-outline"],[2,"display","flex","flex-direction","column","height","100%"],[4,"ngIf"],["type","file","name","files[]","multiple","","accept","application/pdf",2,"display","none",3,"change"],["docToUpload",""],["appUploadFileDragDrop","",1,"dnd-area",3,"fileDropped"],["fill","outline","color","medium","size","large",3,"click"],["lines","none",1,"ion-text-center","no-background"],["color","medium"],[1,"ion-no-border"],[1,"ion-text-center",2,"background","white"],["color","primary","shape","round","size","large","fill","outline",3,"click"],[2,"font-size","13px"],["rightContent",""],[4,"ngFor","ngForOf"],["fill","clear","slot","icon-only","shape","round","color","primary",3,"title","click"],["slot","icon-only","name","pencil-outline",4,"ngIf"],["slot","icon-only","name","document-attach-outline",4,"ngIf"],[2,"width","100%"],["position","floating","color","secondary"],["matInput","","type","text",3,"placeholder","maxlength","ngModel","disabled","ngModelChange"],["matInput","","type","text",3,"placeholder","ngModel","ngModelChange"],["fill","clear","slot","icon-only","shape","round","color","primary",3,"disabled","title","click"],["class","badge-sign-pos",4,"ngIf"],["slot","icon-only","name","contract-outline"],["fill","clear","slot","icon-only","shape","round","color","danger",3,"title","click"],["slot","icon-only","name","trash-outline"],["slot","icon-only","name","pencil-outline"],["slot","icon-only","name","document-attach-outline"],[1,"badge-sign-pos"],[2,"display","contents",3,"editMode"],["appVisaWorkflow",""]],template:function(e,t){if(1&e){var n=fs();ss(0,"ion-header",0),ss(1,"ion-toolbar",1),ss(2,"ion-buttons",2),us(3,"ion-menu-button",3),ls(),ss(4,"ion-title",4),Qs(5),Du(6,"translate"),ls(),ss(7,"ion-buttons",5),ss(8,"ion-menu-button",6),us(9,"ion-icon",7),ls(),ls(),ls(),ls(),ss(10,"ion-content"),ss(11,"div",8),ns(12,Qq,6,4,"ion-list",9),ss(13,"input",10,11),ms("change",function(e){return t.uploadTrigger(e)}),ls(),ss(15,"div",12),ms("fileDropped",function(e){return t.dndUploadFile(e)}),ss(16,"ion-button",13),ms("click",function(){return nn(n),is(14).click()}),Qs(17),Du(18,"translate"),ls(),ss(19,"ion-item",14),ss(20,"ion-label",15),Qs(21),Du(22,"translate"),ls(),ls(),ls(),ls(),ls(),ss(23,"ion-footer",16),ss(24,"div",17),ss(25,"ion-button",18),ms("click",function(){return t.onSubmit()}),ss(26,"ion-label",19),Qs(27),Du(28,"translate"),ls(),ls(),ls(),ls(),ns(29,Xq,2,1,"ng-template",null,20,tc)}2&e&&(os("translucent",!0),xo(5),Xs(Ou(6,6,"lang.newDocumentToVisa")),xo(7),os("ngIf",t.filesToUpload.length>0),xo(5),Ks(" ",Ou(18,8,"lang.chooseDocuments")," "),xo(4),Ks(" ",Ou(22,10,"lang.dndDocuments")," "),xo(6),Xs(Ou(28,12,"lang.validate")))},directives:[XC,DS,LC,cS,PS,KC,UC,mh,Nq,RC,nS,aS,ZC,sS,lS,gh,tS,nA,Cy,hm,Ym,EW],pipes:[gE],styles:[".dnd-area[_ngcontent-%COMP%]{border:5px dashed;margin:20px;text-align:center;color:grey;padding:50px 10px;flex:1;align-items:center;display:flex;flex-direction:column;justify-content:center}.no-background[_ngcontent-%COMP%]{--background:none} .alert-info-no-msg .alert-message{display:none} .alert-info-no-msg .alert-title{color:var(--ion-color-primary)}.badge-sign-pos[_ngcontent-%COMP%]{width:10px;height:10px;background:var(--ion-color-danger);position:absolute;top:0;right:0;border-radius:5px}"]}),Kq),$q=["searchInput"];function eY(e,t){if(1&e){var n=fs();ss(0,"ion-searchbar",6,7),ms("ngModelChange",function(e){return nn(n),ks().searchValue=e})("ionChange",function(e){return nn(n),ks().getDatas(e)}),Du(2,"translate"),ls()}2&e&&os("ngModel",ks().searchValue)("placeholder",Ou(2,2,"lang.search"))}function tY(e,t){if(1&e){var n=fs();ss(0,"ion-item"),ss(1,"ion-checkbox",10),ms("ionChange",function(e){return nn(n),ks(2).selectItem(e.detail.value)}),ls(),ss(2,"ion-label"),Qs(3),ls(),ss(4,"ion-note",11),Qs(5),ls(),ls()}if(2&e){var i=t.$implicit;xo(1),os("value",i),xo(2),Js("",i.firstname," ",i.lastname,""),xo(2),Xs(i.email)}}function nY(e,t){if(1&e&&(ss(0,"ion-list",8),ns(1,tY,6,4,"ion-item",9),ls()),2&e){var n=ks();xo(1),os("ngForOf",n.itemList)}}function iY(e,t){1&e&&(ss(0,"ion-label",12),Qs(1),Du(2,"translate"),ls()),2&e&&(xo(1),Xs(Ou(2,1,"lang.noItem")))}function rY(e,t){if(1&e){var n=fs();ss(0,"ion-chip",13),ms("click",function(){nn(n);var e=t.index;return ks().removeItem(e)}),ss(1,"ion-label",14),Qs(2),ls(),us(3,"ion-icon",15),ls()}if(2&e){var i=t.$implicit;xo(2),Js("",i.firstname," ",i.lastname,"")}}function oY(e,t){if(1&e){var n=fs();ss(0,"ion-buttons",11),ss(1,"ion-button",16),ms("click",function(){return nn(n),ks().toggleEdit()}),ss(2,"ion-label",17),Qs(3),Du(4,"translate"),ls(),ls(),ls()}2&e&&(xo(3),Xs(Ou(4,1,"lang.edit")))}var aY,sY=((aY=function(){function e(t,n){A(this,e),this.http=t,this.notificationService=n,this.currentItems=[],this.selectedOpt=new Fu,this.myControl=new zm,this.loading=!1,this.searchValue="",this.editMode=!1,this.itemList=[]}return m(e,[{key:"ngOnInit",value:function(){}},{key:"getDatas",value:function(e){var t=this;""===e.detail.value?this.itemList=[]:this.http.get("../rest/autocomplete/users?search="+e.detail.value).pipe(uw(function(e){t.itemList=e}),Zb(function(e){return t.notificationService.handleErrors(e),Ty(!1)})).subscribe()}},{key:"selectItem",value:function(e){this.currentItems.push(e),this.searchValue="",this.itemList=[],this.editMode=!1,this.selectedOpt.emit(e)}},{key:"removeItem",value:function(e){this.currentItems.splice(e,1)}},{key:"toggleEdit",value:function(){var e=this;this.editMode=!this.editMode,this.editMode&&setTimeout(function(){e.searchInput.setFocus()},0)}}]),e}()).\u0275fac=function(e){return new(e||aY)(rs(lb),rs(yE))},aY.\u0275cmp=ft({type:aY,selectors:[["plugin-autocomplete"]],viewQuery:function(e,t){var n;1&e&&Qu($q,1),2&e&&Zu(n=Ku())&&(t.searchInput=n.first)},inputs:{currentItems:"currentItems",singleMode:"singleMode",required:"required",options:["datas","options"],routeDatas:"routeDatas",placeholder:["labelPlaceholder","placeholder"],key:["targetSearchKey","key"],subInfoKey:"subInfoKey"},outputs:{selectedOpt:"triggerEvent"},decls:8,vars:5,consts:[[3,"ngModel","placeholder","ngModelChange","ionChange",4,"ngIf"],["class","item-list",4,"ngIf"],["lines","none"],["color","medium","style","font-style: italic;",4,"ngIf"],["style","height: auto;",3,"click",4,"ngFor","ngForOf"],["slot","end",4,"ngIf"],[3,"ngModel","placeholder","ngModelChange","ionChange"],["searchInput",""],[1,"item-list"],[4,"ngFor","ngForOf"],["color","primary","slot","start",3,"value","ionChange"],["slot","end"],["color","medium",2,"font-style","italic"],[2,"height","auto",3,"click"],[1,"ion-text-wrap"],["name","close-circle"],["size","small",3,"click"],["color","medium"]],template:function(e,t){1&e&&(ns(0,eY,3,4,"ion-searchbar",0),ns(1,nY,2,1,"ion-list",1),ss(2,"ion-list"),ss(3,"ion-item",2),ns(4,iY,3,3,"ion-label",3),ss(5,"p"),ns(6,rY,4,2,"ion-chip",4),ls(),ns(7,oY,5,3,"ion-buttons",5),ls(),ls()),2&e&&(os("ngIf",t.editMode),xo(1),os("ngIf",t.itemList.length>0),xo(3),os("ngIf",0===t.currentItems.length),xo(2),os("ngForOf",t.currentItems),xo(1),os("ngIf",!t.editMode))},directives:[mh,sS,nS,gh,bS,nA,hm,Ym,NC,Jx,aS,hS,HC,KC,LC,RC],pipes:[gE],styles:[""]}),aY),lY=function(e,t,n,i){return new(n||(n=Promise))(function(r,o){function a(e){try{l(i.next(e))}catch(t){o(t)}}function s(e){try{l(i.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((i=i.apply(e,t||[])).next())})},uY=["appVisaWorkflow"],cY=["rightContent"];function dY(e,t){1&e&&us(0,"ion-icon",26)}function hY(e,t){1&e&&us(0,"ion-icon",27)}function fY(e,t){1&e&&us(0,"ion-icon",28)}function pY(e,t){if(1&e){var n=fs();ss(0,"ion-chip",21),ms("click",function(){nn(n);var e=ks().$implicit;return ks(2).removeFilter(e)}),Du(1,"translate"),ns(2,dY,1,0,"ion-icon",22),ns(3,hY,1,0,"ion-icon",23),ns(4,fY,1,0,"ion-icon",24),ss(5,"ion-label"),Qs(6),ls(),us(7,"ion-icon",25),ls()}if(2&e){var i=ks().$implicit;os("title",Ou(1,5,"lang."+i.id+"Search")),xo(2),os("ngIf","title"===i.id),xo(1),os("ngIf","reference"===i.id),xo(1),os("ngIf","documentId"===i.id),xo(2),Xs(i.val)}}function gY(e,t){if(1&e){var n=fs();ss(0,"ion-chip",21),ms("click",function(){nn(n);var e=t.$implicit,i=ks(2).$implicit;return ks(2).removeFilter(i,e.id)}),Du(1,"translate"),us(2,"ion-icon",30),ss(3,"ion-label"),Qs(4),Du(5,"translate"),ls(),us(6,"ion-icon",25),ls()}if(2&e){var i=t.$implicit;os("title",Ou(1,2,"lang.workflowStatesSearch")),xo(4),Xs(Ou(5,4,i.label))}}function vY(e,t){if(1&e&&(ss(0,"div"),ns(1,gY,7,6,"ion-chip",29),ls()),2&e){var n=ks().$implicit;xo(1),os("ngForOf",n.val)}}function mY(e,t){if(1&e){var n=fs();ss(0,"ion-chip",21),ms("click",function(){nn(n);var e=t.$implicit,i=ks(2).$implicit;return ks(2).removeFilter(i,e)}),Du(1,"translate"),us(2,"ion-icon",31),ss(3,"ion-label"),Qs(4),ls(),us(5,"ion-icon",25),ls()}if(2&e){var i=t.$implicit;os("title",Ou(1,3,"lang.workflowUsersSearch")),xo(4),Js("",i.firstname," ",i.lastname,"")}}function yY(e,t){if(1&e&&(ss(0,"div"),ns(1,mY,6,5,"ion-chip",29),ls()),2&e){var n=ks().$implicit;xo(1),os("ngForOf",n.val)}}function bY(e,t){if(1&e&&(ss(0,"div"),ns(1,pY,8,7,"ion-chip",20),ns(2,vY,2,1,"div",10),ns(3,yY,2,1,"div",10),ls()),2&e){var n=t.$implicit;xo(1),os("ngIf",("title"===n.id||"reference"===n.id||"documentId"===n.id)&&""!==n.val),xo(1),os("ngIf","workflowStates"===n.id&&n.val.length>0),xo(1),os("ngIf","workflowUsers"===n.id&&n.val.length>0)}}function wY(e,t){if(1&e){var n=fs();ss(0,"ion-toolbar",14),ss(1,"div",15),ss(2,"ion-button",16),ms("click",function(){return nn(n),ks().clearFilters()}),Du(3,"translate"),us(4,"ion-icon",17),ls(),ss(5,"div",18),ns(6,bY,4,3,"div",19),ls(),ls(),ls()}if(2&e){var i=ks();xo(2),os("title",Ou(3,2,"lang.clearFilters")),xo(4),os("ngForOf",i.currentFilters)}}function _Y(e,t){1&e&&(ss(0,"ion-list",32),ss(1,"ion-item",33),ss(2,"ion-label",34),Qs(3),Du(4,"translate"),ls(),ls(),ls()),2&e&&(xo(3),Xs(Ou(4,1,"lang.noResult")))}function kY(e,t){1&e&&us(0,"ion-icon",57)}function xY(e,t){1&e&&us(0,"ion-icon",58)}function AY(e,t){1&e&&us(0,"ion-icon",59)}function CY(e,t){if(1&e&&(ss(0,"ion-badge",60),Qs(1),Du(2,"translate"),ls()),2&e){var n=ks().$implicit;xo(1),Xs(Ou(2,1,"lang."+n.mode+"User"))}}var SY=function(){return["END","STOP"]};function PY(e,t){if(1&e&&(cs(0),ns(1,kY,1,0,"ion-icon",52),ss(2,"span",53),Qs(3),Du(4,"translate"),ns(5,xY,1,0,"ion-icon",54),ns(6,AY,1,0,"ion-icon",55),ns(7,CY,3,3,"ion-badge",56),ls(),ds()),2&e){var n=t.$implicit,i=t.index,r=ks(3);xo(1),os("ngIf",i>0),xo(1),Fs("success",null!==n.processDate&&"STOP"!==n.status)("typist-interrupt","REF"===n.status)("interrupt",null===n.processDate&&"END"===n.status||"STOP"===n.status)("current",n.current)("no-visa",null===n.processDate&&null===n.status&&!n.current),xo(1),Ks("",r.functionsService.empty(n.userDisplay)?Ou(4,15,"lang.userDeleted"):n.userDisplay,"\xa0 "),xo(2),os("ngIf",null!==n.processDate&&"REF"!==n.status&&"STOP"!==n.status),xo(1),os("ngIf",null!==n.processDate&&"REF"===n.status),xo(1),os("ngIf",null===n.processDate&&(null===n.status||xu(17,SY).indexOf(n.status)>-1))}}function EY(e,t){1&e&&us(0,"ion-icon",61)}function DY(e,t){1&e&&us(0,"ion-icon",62)}function OY(e,t){1&e&&us(0,"ion-icon",63)}function MY(e,t){1&e&&us(0,"ion-icon",64)}function TY(e,t){if(1&e&&(cs(0),us(1,"ion-icon",66),Qs(2),ds()),2&e){var n=t.$implicit;xo(2),Ks(" ",n," ")}}function IY(e,t){if(1&e&&(ss(0,"p",65),ns(1,TY,3,1,"ng-container",19),ls()),2&e){var n=ks().$implicit;xo(1),os("ngForOf",n.reason)}}function RY(e,t){if(1&e){var n=fs();ss(0,"ion-button",67),ms("click",function(e){nn(n);var t=ks().$implicit,i=is(7),r=ks(2);return e.stopPropagation(),r.toggleSlide(i,t.id)}),us(1,"ion-icon",68),ls()}}function LY(e,t){if(1&e){var n=fs();ss(0,"ion-button",67),ms("click",function(e){nn(n);var t=ks().$implicit,i=is(7),r=ks(2);return e.stopPropagation(),r.toggleSlide(i,t.id)}),us(1,"ion-icon",69),ls()}}function FY(e,t){if(1&e){var n=fs();ss(0,"ion-item-option",50),ms("click",function(){nn(n);var e=ks().$implicit;return ks(2).openPromptProof(e)}),us(1,"ion-icon",70),Qs(2),Du(3,"translate"),ls()}2&e&&(xo(2),Ks(" ",Ou(3,1,"lang.download")," "))}function BY(e,t){if(1&e){var n=fs();ss(0,"ion-item"),ss(1,"ion-label"),ss(2,"ion-toolbar",37),ss(3,"ion-title",38),ss(4,"p",39),ns(5,PY,8,18,"ng-container",19),ls(),ls(),ls(),ss(6,"ion-item-sliding",40,41),ms("ionDrag",function(e){nn(n);var i=t.$implicit;return ks(2).onSliding(e,i.id)}),ss(8,"ion-item",33),ns(9,EY,1,0,"ion-icon",42),ns(10,DY,1,0,"ion-icon",43),ns(11,OY,1,0,"ion-icon",44),ns(12,MY,1,0,"ion-icon",45),ss(13,"ion-label",46),ms("click",function(){nn(n);var e=t.$implicit;return ks(2).goTo(e.id)}),Du(14,"translate"),ss(15,"p"),Qs(16),ls(),ss(17,"h2"),Qs(18),ls(),ns(19,IY,2,1,"p",47),ls(),ss(20,"ion-buttons",5),ns(21,RY,2,0,"ion-button",48),ns(22,LY,2,0,"ion-button",48),ls(),ls(),ss(23,"ion-item-options"),ns(24,FY,4,3,"ion-item-option",49),ss(25,"ion-item-option",50),ms("click",function(){nn(n);var e=t.$implicit;return ks(2).openActions(e)}),us(26,"ion-icon",51),Qs(27),Du(28,"translate"),ls(),ls(),ls(),ls(),ls()}if(2&e){var i=t.$implicit,r=ks(2);xo(5),os("ngForOf",i.workflow),xo(4),os("ngIf","PROG"==i.state),xo(1),os("ngIf","STOP"==i.state),xo(1),os("ngIf","VAL"==i.state),xo(1),os("ngIf","REF"==i.state),xo(1),os("title",Ou(14,13,"lang.accessDocument")),xo(3),Xs(i.reference),xo(2),Xs(i.title),xo(1),os("ngIf",i.reason.length>0),xo(2),os("ngIf",r.openedLine===i.id),xo(1),os("ngIf",r.openedLine!==i.id),xo(2),os("ngIf","PROG"!==i.state),xo(3),Ks(" ",Ou(28,15,"lang.actions")," ")}}function VY(e,t){if(1&e&&(ss(0,"ion-list"),ss(1,"ion-virtual-scroll",35),ns(2,BY,29,17,"ion-item",36),ls(),ls()),2&e){var n=ks();xo(1),os("items",n.ressources)}}function zY(e,t){if(1&e){var n=fs();cs(0),ss(1,"ion-item"),ss(2,"ion-label",76),Qs(3),Du(4,"translate"),ls(),ss(5,"ion-input",77),ms("ngModelChange",function(e){return nn(n),ks().$implicit.val=e})("keyup.enter",function(){return nn(n),ks(3).launchSearch()})("ionChange",function(){return nn(n),ks(3).checkInput()}),ls(),ls(),ds()}if(2&e){var i=ks().$implicit;xo(3),Ks("",Ou(4,3,"lang."+i.id+"Search")," "),xo(2),os("ngModel",i.val)("value",i.val)}}function NY(e,t){if(1&e){var n=fs();ss(0,"ion-item"),ss(1,"ion-label"),Qs(2),Du(3,"translate"),ls(),ss(4,"ion-checkbox",79),ms("ngModelChange",function(){nn(n);var e=t.$implicit,i=ks(2).$implicit;return ks(2).toggleItem(i,e,!e.selected)})("ngModelChange",function(e){return t.$implicit.selected=e}),ls(),ls()}if(2&e){var i=t.$implicit;xo(2),Xs(Ou(3,4,i.label)),xo(2),os("ngModel",i.selected)("checked",i.selected)("value",i.id)}}function HY(e,t){if(1&e&&(cs(0),ss(1,"ion-list-header"),ss(2,"ion-label",78),Qs(3),Du(4,"translate"),ls(),ls(),ns(5,NY,5,6,"ion-item",19),ds()),2&e){var n=ks().$implicit;xo(3),Xs(Ou(4,2,"lang."+n.id+"Search")),xo(2),os("ngForOf",n.values)}}function jY(e,t){if(1&e&&(cs(0),ss(1,"ion-list-header"),ss(2,"ion-label",78),Qs(3),Du(4,"translate"),ls(),ls(),us(5,"plugin-autocomplete",80),ds()),2&e){var n=ks().$implicit;xo(3),Xs(Ou(4,2,"lang."+n.id+"Search")),xo(2),os("currentItems",n.val)}}function UY(e,t){if(1&e&&(ss(0,"ion-list"),ns(1,zY,6,5,"ng-container",10),ns(2,HY,6,4,"ng-container",10),ns(3,jY,6,4,"ng-container",10),ls()),2&e){var n=t.$implicit;xo(1),os("ngIf","text"===n.type),xo(1),os("ngIf","checkbox"===n.type),xo(1),os("ngIf","autocompleteUsers"===n.type)}}function WY(e,t){if(1&e){var n=fs();ss(0,"ion-header",0),ss(1,"ion-toolbar",1),ss(2,"ion-buttons",2),us(3,"ion-back-button"),ls(),ss(4,"ion-title",71),Qs(5),Du(6,"translate"),ls(),ls(),ls(),ss(7,"ion-content"),ns(8,UY,4,3,"ion-list",19),ls(),ss(9,"ion-footer",72),ss(10,"div",73),ss(11,"ion-button",74),ms("click",function(){return nn(n),ks().onSubmit()}),ss(12,"ion-label",75),Qs(13),Du(14,"translate"),ls(),ls(),ls(),ls()}if(2&e){var i=ks();os("translucent",!0),xo(5),Xs(Ou(6,4,"lang.filters")),xo(3),os("ngForOf",i.filters),xo(5),Xs(Ou(14,6,"lang.search"))}}var GY,qY,YY=((qY=function(){function e(t,n,i,r,o,a,s,l,u,c,d,h,f,p){A(this,e),this.http=t,this.translate=n,this.router=i,this.menu=r,this.signaturesService=o,this.viewContainerRef=a,this.notificationService=s,this.authService=l,this.loadingController=u,this.alertController=c,this.actionSheetController=d,this.datePipe=h,this.functionsService=f,this._activatedRoute=p,this.loading=!1,this.filesToUpload=[],this.errors=[],this.filters=[{id:"title",type:"text",val:"",values:[]},{id:"reference",type:"text",val:"",values:[]},{id:"documentId",type:"text",val:"",values:[]},{id:"workflowStates",type:"checkbox",val:[],values:[{id:"PROG",label:"lang.inprogress",selected:!1},{id:"STOP",label:"lang.interrupt",selected:!1},{id:"VAL",label:"lang.end",selected:!1},{id:"REF",label:"lang.refused",selected:!1}]},{id:"workflowUsers",type:"autocompleteUsers",val:[],values:[]}],this.actions=[{icon:"hand-left-outline",id:"interruptWorkflow"},{icon:"document-outline",id:"newWorkflow"}],this.ressources=[],this.currentFilters=[],this.offset=0,this.limit=10,this.count=0,this.openedLine=""}return m(e,[{key:"ngOnInit",value:function(){var e=this;this._activatedRoute.queryParamMap.subscribe(function(t){e.functionsService.empty(t.get("documentId"))||(e.documentId=t.get("documentId"),e.filters.filter(function(e){return"documentId"===e.id})[0].val=e.documentId,e.search())})}},{key:"ionViewWillEnter",value:function(){var e=this;this.menu.enable(!0,"left-menu"),this.menu.enable(!0,"right-menu"),this.signaturesService.initTemplate(this.rightContent,this.viewContainerRef,"rightContent"),setTimeout(function(){e.menu.open("right-menu")},500)}},{key:"ionViewWillLeave",value:function(){this.signaturesService.detachTemplate("rightContent")}},{key:"toggleSlide",value:function(e,t){var n=this;e.getOpenAmount().then(function(i){0===i?(n.openedLine=t,e.open("end")):(n.openedLine="",e.close("end"))})}},{key:"onSliding",value:function(e,t){this.openedLine=1===e.detail.ratio?t:""}},{key:"onSubmit",value:function(){this.search(),this.menu.close("right-menu")}},{key:"toggleItem",value:function(e,t,n){if(n)e.val.push(t.id);else{var i=e.val.indexOf(t.id);e.val.splice(i,1)}}},{key:"formatDatas",value:function(){var e={};return JSON.parse(JSON.stringify(this.filters.filter(function(e){return"text"===e.type&&""!==e.val||"text"!==e.type&&e.val.length>0}))).forEach(function(t){e[t.id]="workflowUsers"===t.id?t.val.map(function(e){return e.id}):"workflowStates"===t.id?t.values.filter(function(e){return e.selected}).map(function(e){return e.id}):t.val}),e}},{key:"formatListDatas",value:function(e){var t=this;return e.map(function(e){return Object.assign(Object.assign({},e),{reason:t.getReason(e),currentUser:t.getCurrentUser(e)})})}},{key:"getNbFilters",value:function(){for(var e=0,t=0;t<this.currentFilters.length;t++)Array.isArray(this.currentFilters[t].val)||""===this.currentFilters[t].val||e++,Array.isArray(this.currentFilters[t].val)&&this.currentFilters[t].val.length>0&&(e+=this.currentFilters[t].val.length);return e}},{key:"openActions",value:function(e){return lY(this,void 0,void 0,regeneratorRuntime.mark(function t(){var n,i,r=this;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return n=[],this.actions.forEach(function(t){r.canShowButton(t.id,e)&&n.push({text:r.translate.instant("PROG"===e.state&&"newWorkflow"===t.id?"lang."+t.id+"Prog":"lang."+t.id),icon:t.icon,handler:function(){r[t.id](e)}})}),t.next=4,this.actionSheetController.create({header:this.translate.instant("lang.actions")+(null!==e.reference?" - "+e.reference:""),buttons:n});case 4:return i=t.sent,t.next=7,i.present();case 7:case"end":return t.stop()}},t,this)}))}},{key:"canShowButton",value:function(e,t){return!("interruptWorkflow"!==e||!t.canInterrupt)||!("newWorkflow"!==e||!t.canReaffect)}},{key:"search",value:function(){var e=this;this.loadingController.create({message:this.translate.instant("lang.processing"),spinner:"dots"}).then(function(t){return lY(e,void 0,void 0,regeneratorRuntime.mark(function e(){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t.present(),e.next=3,this.launchSearch();case 3:t.dismiss();case 4:case"end":return e.stop()}},e,this)}))})}},{key:"launchSearch",value:function(){var e=this;return this.ressources=[],this.offset=0,this.refreshCurrentFilter(),new Promise(function(t){e.http.post("../rest/search/documents?limit=10&offset=0",e.formatDatas()).pipe(uw(function(n){e.ressources=e.formatListDatas(n.documents),e.count=n.count,e.infiniteScroll.disabled=!1,t(!0)}),Zb(function(n){return e.notificationService.handleErrors(n),t(!1),Ty(!1)})).subscribe()})}},{key:"refreshCurrentFilter",value:function(){var e=this;this.currentFilters=JSON.parse(JSON.stringify(this.filters.filter(function(t){return!e.functionsService.empty(t.val)}))),this.currentFilters.filter(function(e){return"workflowStates"===e.id}).length>0&&(this.currentFilters.filter(function(e){return"workflowStates"===e.id})[0].val=this.currentFilters.filter(function(e){return"workflowStates"===e.id})[0].values.filter(function(e){return e.selected}),0===this.currentFilters.filter(function(e){return"workflowStates"===e.id})[0].val.length&&(this.currentFilters=this.currentFilters.filter(function(e){return"workflowStates"!==e.id})))}},{key:"loadData",value:function(e){var t=this;this.count<=this.limit?(e.target.complete(),e.target.disabled=!0):(this.offset=this.offset+this.limit,this.http.post("../rest/search/documents?limit="+this.limit+"&offset="+this.offset,this.formatDatas()).pipe(uw(function(n){t.ressources=t.ressources.concat(t.formatListDatas(n.documents)),e.target.complete(),t.count===t.ressources.length&&(e.target.disabled=!0)})).subscribe())}},{key:"interruptWorkflow",value:function(e){return lY(this,void 0,void 0,regeneratorRuntime.mark(function t(){var n=this;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",new Promise(function(t){return lY(n,void 0,void 0,regeneratorRuntime.mark(function n(){var i,r=this;return regeneratorRuntime.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,this.alertController.create({header:this.translate.instant("lang.warning"),message:this.translate.instant("lang.warnInterrupt"),buttons:[{text:this.translate.instant("lang.cancel"),role:"cancel",cssClass:"secondary",handler:function(){}},{text:this.translate.instant("lang.validate"),handler:function(){r.loadingController.create({message:r.translate.instant("lang.processing"),spinner:"dots"}).then(function(n){return lY(r,void 0,void 0,regeneratorRuntime.mark(function i(){return regeneratorRuntime.wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return n.present(),i.next=3,this.launchInterrupt(e);case 3:this.launchSearch(),t(!0),n.dismiss();case 6:case"end":return i.stop()}},i,this)}))})}}]});case 2:return i=n.sent,n.next=5,i.present();case 5:case"end":return n.stop()}},n,this)}))}));case 1:case"end":return t.stop()}},t)}))}},{key:"launchInterrupt",value:function(e){var t=this;return new Promise(function(n){t.http.put("../rest/documents/".concat(e.id,"/workflows/interrupt"),{}).pipe(uw(function(){t.notificationService.success("lang.documentInterrupted"),n(!0)}),Zb(function(e){return t.notificationService.handleErrors(e),n(!1),Ty(!1)})).subscribe()})}},{key:"newWorkflow",value:function(e){return lY(this,void 0,void 0,regeneratorRuntime.mark(function t(){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(t.t0="PROG"===e.state,!t.t0){t.next=4;break}return t.next=4,this.interruptWorkflow(e);case 4:this.router.navigate(["/indexation"],{state:{documentId:e.id}});case 5:case"end":return t.stop()}},t,this)}))}},{key:"openPromptProof",value:function(e){return lY(this,void 0,void 0,regeneratorRuntime.mark(function t(){var n,i=this;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.alertController.create({cssClass:"promptProof",header:this.translate.instant("lang.download"),inputs:[{name:"option1",type:"radio",label:this.translate.instant("lang.proof"),value:"onlyProof",checked:!0},{name:"option1",type:"radio",label:this.translate.instant("lang.completeFolder"),value:"all"}],buttons:[{text:this.translate.instant("lang.cancel"),role:"cancel",cssClass:"secondary",handler:function(){}},{text:this.translate.instant("lang.validate"),handler:function(t){return lY(i,void 0,void 0,regeneratorRuntime.mark(function i(){return regeneratorRuntime.wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,this.downloadProof(e,t);case 2:n.dismiss();case 3:case"end":return i.stop()}},i,this)}))}}]});case 2:return n=t.sent,t.next=5,n.present();case 5:case"end":return t.stop()}},t,this)}))}},{key:"downloadProof",value:function(e,t){var n=this,i="onlyProof"===t?"&onlyProof=true":"";return new Promise(function(t){n.http.get("../rest/documents/".concat(e.id,"/proof?mode=stream").concat(i),{responseType:"blob"}).pipe(uw(function(i){var r=new Date,o="proof_"+e.id+"_"+n.datePipe.transform(r,"dd-MM-y")+"."+i.type.replace("application/",""),a=document.createElement("a");a.href=window.URL.createObjectURL(i),a.setAttribute("download",o),document.body.appendChild(a),a.click(),t(!0)}),Zb(function(e){return n.notificationService.handleErrors(e),t(!1),Ty(!1)})).subscribe()})}},{key:"getReason",value:function(e){return e.workflow.map(function(e){return e.reason}).filter(function(e){return null!==e})}},{key:"getCurrentUser",value:function(e){var t=e.workflow.filter(function(e){return!0===e.current});return t.length>0?t[0].userId:null}},{key:"goTo",value:function(e){this.router.navigate(["/documents/"+e])}},{key:"clearFilters",value:function(){for(var e=0;e<this.filters.length;e++)Array.isArray(this.filters[e].val)||""===this.filters[e].val||(this.filters[e].val=""),Array.isArray(this.filters[e].val)&&(this.filters[e].val=[],this.filters[e].values=this.filters[e].values.map(function(e){return Object.assign(Object.assign({},e),{selected:!1})}));this.ressources.length>0&&this.launchSearch()}},{key:"removeFilter",value:function(e,t){if(Array.isArray(e.val))if("workflowStates"===e.id)this.filters.find(function(t){return t.id===e.id}).values.filter(function(e){return e.id===t})[0].selected=!1;else{var n=e.val.indexOf(t);this.filters.filter(function(t){return t.id===e.id})[0].val.splice(n,1)}else this.filters.find(function(t){return t.id===e.id}).val="";this.launchSearch()}},{key:"getLabel",value:function(e){return this.filters.filter(function(e){return"workflowStates"===e.id})[0].values.find(function(t){return t.id===e}).label}},{key:"checkInput",value:function(){""===this.filters.find(function(e){return"title"===e.id}).val&&""===this.filters.find(function(e){return"reference"===e.id}).val&&""===this.filters.find(function(e){return"documentId"===e.id}).val&&0===this.filters.find(function(e){return"workflowStates"===e.id}).val.length&&0===this.filters.find(function(e){return"workflowUsers"===e.id}).val.length&&(this.clearFilters(),this.currentFilters=[])}}]),e}()).\u0275fac=function(e){return new(e||qY)(rs(lb),rs(pE),rs(jk),rs(uP),rs(PE),rs(uu),rs(yE),rs(DE),rs(lP),rs(sP),rs(aP),rs(Wh),rs(IU),rs(b_))},qY.\u0275cmp=ft({type:qY,selectors:[["ng-component"]],viewQuery:function(e,t){var n;1&e&&(Qu(uY,1),Qu(cY,3),Qu($C,1)),2&e&&(Zu(n=Ku())&&(t.appVisaWorkflow=n.first),Zu(n=Ku())&&(t.rightContent=n.first),Zu(n=Ku())&&(t.infiniteScroll=n.first))},features:[yl([Wh])],decls:22,vars:14,consts:[[3,"translucent"],["color","primary"],["slot","start"],["menu","left-menu"],["slot","end","color","secondary"],["slot","end"],["menu","right-menu"],["name","funnel-outline"],["color","primary","style","padding-left: 1px;padding-right: 1px;",4,"ngIf"],["class","no-result",4,"ngIf"],[4,"ngIf"],["threshold","100px",3,"ionInfinite"],["loadingSpinner","bubbles",3,"loadingText"],["rightContent",""],["color","primary",2,"padding-left","1px","padding-right","1px"],[2,"display","flex"],["shape","round","size","small","fill","clear","slot","start","color","primary",1,"clearFilter",3,"title","click"],["slot","icon-only","name","trash-bin-outline","color","light"],["slot","start",1,"scrollfilters"],[4,"ngFor","ngForOf"],["outline","","color","primary","style","background: white;",3,"title","click",4,"ngIf"],["outline","","color","primary",2,"background","white",3,"title","click"],["name","document-text-outline",4,"ngIf"],["name","compass-outline",4,"ngIf"],["name","bookmark-outline",4,"ngIf"],["name","close-circle"],["name","document-text-outline"],["name","compass-outline"],["name","bookmark-outline"],["outline","","color","primary","style","background: white;",3,"title","click",4,"ngFor","ngForOf"],["name","swap-horizontal-outline"],["name","person-outline"],[1,"no-result"],["lines","none"],["color","medium",1,"no-result-label"],["approxItemHeight","165px",3,"items"],[4,"virtualItem"],["color","light"],["size","small"],[2,"display","flex","align-items","center","white-space","pre","overflow-x","auto","overflow-y","hidden"],[3,"ionDrag"],["slidingItem",""],["color","primary","slot","start","name","hourglass-outline",4,"ngIf"],["color","danger","slot","start","name","hand-left-outline",4,"ngIf"],["color","success","slot","start","name","thumbs-up-outline",4,"ngIf"],["color","danger","slot","start","name","thumbs-down-outline",4,"ngIf"],[2,"cursor","pointer",3,"title","click"],["class","primary",4,"ngIf"],["slot","icon-only","fill","clear","shape","round",3,"click",4,"ngIf"],["color","primary",3,"click",4,"ngIf"],["color","primary",3,"click"],["slot","bottom","name","settings-sharp"],["name","chevron-forward-outline",4,"ngIf"],[1,"workflow-item","success"],["name","thumbs-up-outline",4,"ngIf"],["name","thumbs-down-outline",4,"ngIf"],["color","medium",4,"ngIf"],["name","chevron-forward-outline"],["name","thumbs-up-outline"],["name","thumbs-down-outline"],["color","medium"],["color","primary","slot","start","name","hourglass-outline"],["color","danger","slot","start","name","hand-left-outline"],["color","success","slot","start","name","thumbs-up-outline"],["color","danger","slot","start","name","thumbs-down-outline"],[1,"primary"],["name","chatbox-outline"],["slot","icon-only","fill","clear","shape","round",3,"click"],["color","medium","slot","icon-only","name","arrow-forward-outline"],["color","medium","slot","icon-only","name","arrow-back-outline"],["slot","bottom","name","ribbon-sharp"],[1,"ion-text-center"],[1,"ion-no-border"],[1,"ion-text-center",2,"background","white"],["color","primary","shape","round","size","large","fill","outline",3,"click"],[2,"font-size","13px"],["color","secondary","position","floating"],[3,"ngModel","value","ngModelChange","keyup.enter","ionChange"],["color","secondary"],["slot","end",1,"workflowStates",3,"ngModel","checked","value","ngModelChange"],[3,"currentItems"]],template:function(e,t){1&e&&(ss(0,"ion-header",0),ss(1,"ion-toolbar",1),ss(2,"ion-buttons",2),us(3,"ion-menu-button",3),ls(),ss(4,"ion-title"),Qs(5),Du(6,"translate"),ls(),ss(7,"ion-title",4),Qs(8),Du(9,"translate"),ls(),ss(10,"ion-buttons",5),ss(11,"ion-menu-button",6),us(12,"ion-icon",7),ls(),ls(),ls(),ns(13,wY,7,4,"ion-toolbar",8),ls(),ss(14,"ion-content"),ns(15,_Y,5,3,"ion-list",9),ns(16,VY,3,1,"ion-list",10),ss(17,"ion-infinite-scroll",11),ms("ionInfinite",function(e){return t.loadData(e)}),us(18,"ion-infinite-scroll-content",12),Du(19,"translate"),ls(),ls(),ns(20,WY,15,8,"ng-template",null,13,tc)),2&e&&(os("translucent",!0),xo(5),Xs(Ou(6,8,"lang.search")),xo(3),Js("",t.count," ",Ou(9,10,"lang.results"),""),xo(5),os("ngIf",t.currentFilters.length>0),xo(2),os("ngIf",0===t.ressources.length),xo(1),os("ngIf",t.ressources.length>0),xo(2),os("loadingText",Ou(19,12,"lang.loadingMoreData")))},directives:[XC,DS,LC,cS,PS,KC,mh,UC,$C,eS,RC,gh,HC,aS,sS,nS,iP,nP,oS,rS,iS,IC,TC,JS,ZC,tS,nA,hm,Ym,lS,NC,Jx,sY],pipes:[gE],styles:[".line-container[_ngcontent-%COMP%]{display:grid;grid-template-columns:2fr 1fr;grid-gap:10px;width:100%}.line-workflow[_ngcontent-%COMP%]{font-size:12px}.primary[_ngcontent-%COMP%]{color:var(--ion-color-primary)}.secondary[_ngcontent-%COMP%]{color:var(--ion-color-secondary)}.success[_ngcontent-%COMP%]{color:var(--ion-color-success)}.workflow-item[_ngcontent-%COMP%]{display:flex;align-items:center}.no-visa[_ngcontent-%COMP%]{opacity:.3}.current[_ngcontent-%COMP%]{font-weight:700;color:var(--ion-color-primary)}.interrupt[_ngcontent-%COMP%], .typist-interrupt[_ngcontent-%COMP%]{color:var(--ion-color-danger)}.interrupt[_ngcontent-%COMP%]{text-decoration:line-through}.no-result[_ngcontent-%COMP%]{height:100%;display:flex;align-items:center;justify-content:center}.no-result[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]{width:100%;text-align:center}.no-result-label[_ngcontent-%COMP%]{font-size:50px}.scrollfilters[_ngcontent-%COMP%]{overflow:auto;white-space:nowrap}.scrollfilters[_ngcontent-%COMP%]   div[_ngcontent-%COMP%], .scrollfilters[_ngcontent-%COMP%]   ion-chip[_ngcontent-%COMP%]{height:auto;display:inline-block}"]}),qY),ZY=((GY=function(){function e(t){A(this,e),this.latinisePipe=t}return m(e,[{key:"transform",value:function(e,t){var n=this;return null!==e?(e.sort(function(e,i){var r=n.latinisePipe.transform(e[t]).toLocaleLowerCase(),o=n.latinisePipe.transform(i[t]).toLocaleLowerCase();return r<o?-1:r>o?1:0}),e):[]}}]),e}()).\u0275fac=function(e){return new(e||GY)(rs(QM))},GY.\u0275pipe=wt({name:"sortBy",type:GY,pure:!0}),GY),QY=["rightContent"];function XY(e,t){if(1&e){var n=fs();ss(0,"ion-chip",18),ms("click",function(){nn(n);var e=t.$implicit;return ks(2).removeFilter(e)}),Du(1,"translate"),us(2,"ion-icon",19),ss(3,"ion-label"),Qs(4),Du(5,"translate"),ls(),us(6,"ion-icon",20),ls()}if(2&e){var i=t.$implicit;os("title",Ou(1,2,"lang.actions")),xo(4),Xs(Ou(5,4,"lang."+i))}}function KY(e,t){if(1&e){var n=fs();ss(0,"ion-chip",18),ms("click",function(){nn(n);var e=ks(2);return e.removeFilter(e.filters.user)}),Du(1,"translate"),us(2,"ion-icon",21),ss(3,"ion-label"),Qs(4),ls(),us(5,"ion-icon",20),ls()}if(2&e){var i=ks(2);os("title",Ou(1,2,"lang.userName")),xo(4),Xs(i.filters.user)}}function JY(e,t){if(1&e){var n=fs();ss(0,"ion-chip",18),ms("click",function(){nn(n);var e=ks(2);return e.removeFilter(e.filters.date.start)}),Du(1,"translate"),us(2,"ion-icon",22),ss(3,"ion-label"),Qs(4),Du(5,"date"),ls(),us(6,"ion-icon",20),ls()}if(2&e){var i=ks(2);os("title",Ou(1,2,"lang.since")),xo(4),Xs(Mu(5,4,i.filters.date.start,"dd/MM/yyyy"))}}function $Y(e,t){if(1&e){var n=fs();ss(0,"ion-chip",18),ms("click",function(){nn(n);var e=ks(2);return e.removeFilter(e.filters.date.end)}),Du(1,"translate"),us(2,"ion-icon",23),ss(3,"ion-label"),Qs(4),Du(5,"date"),ls(),us(6,"ion-icon",20),ls()}if(2&e){var i=ks(2);os("title",Ou(1,2,"lang.until")),xo(4),Xs(Mu(5,4,i.filters.date.end,"dd/MM/yyyy"))}}function eZ(e,t){if(1&e){var n=fs();ss(0,"ion-toolbar",12),ss(1,"ion-button",13),ms("click",function(){return nn(n),ks().clearFilters()}),Du(2,"translate"),us(3,"ion-icon",14),ls(),ss(4,"div",15),ns(5,XY,7,6,"ion-chip",16),ns(6,KY,6,4,"ion-chip",17),ns(7,JY,7,7,"ion-chip",17),ns(8,$Y,7,7,"ion-chip",17),ls(),ls()}if(2&e){var i=ks();xo(1),os("title",Ou(2,5,"lang.clearFilters")),xo(4),os("ngForOf",i.filters.messageTypes),xo(1),os("ngIf",""!==i.filters.user),xo(1),os("ngIf",null!==i.filters.date.start),xo(1),os("ngIf",null!==i.filters.date.end)}}function tZ(e,t){if(1&e&&(ss(0,"ion-item",28),us(1,"ion-icon",29),ss(2,"ion-label"),ss(3,"p"),Qs(4),Du(5,"titlecase"),Du(6,"translate"),ss(7,"span",30),Qs(8),Du(9,"date"),ls(),Qs(10),Du(11,"translate"),ss(12,"span",30),Qs(13),ls(),ls(),ss(14,"h2"),Qs(15),ls(),ls(),ss(16,"ion-note",5),ss(17,"p",31),Du(18,"translate"),Qs(19),Du(20,"translate"),Du(21,"shorten"),Du(22,"translate"),ls(),ss(23,"p",32),Qs(24),ls(),ls(),ls()),2&e){var n=t.$implicit,i=ks(2);xo(1),os("name",i.aventTypesIcon[n.type]),xo(3),Ks("",Ou(5,10,Ou(6,12,"lang.the"))," "),xo(4),Xs(Mu(9,14,n.date,"dd/MM/yyyy HH:mm")),xo(2),Ks(" ",Ou(11,17,"lang.by")," "),xo(3),Xs(n.user),xo(2),Xs(n.message),xo(2),os("title",Ou(18,19,"lang.resource")+" : "+n.objectId),xo(2),Js("",Ou(20,21,"lang."+n.objectType)," : ",null!==n.objectLabel?Tu(21,23,n.objectLabel,50,"..."):Ou(22,27,"lang.undefined"),""),xo(5),Ks("IP : ",n.ip,"")}}function nZ(e,t){if(1&e){var n=fs();ss(0,"ion-list"),ss(1,"ion-virtual-scroll",24),ns(2,tZ,25,29,"ion-item",25),ls(),ss(3,"ion-infinite-scroll",26),ms("ionInfinite",function(e){return nn(n),ks().loadData(e)}),us(4,"ion-infinite-scroll-content",27),Du(5,"translate"),ls(),ls()}if(2&e){var i=ks();xo(1),os("items",i.resources),xo(3),os("loadingText",Ou(5,2,"lang.loadingMoreData"))}}function iZ(e,t){if(1&e){var n=fs();ss(0,"ion-buttons",5),ss(1,"ion-button",42),ms("click",function(){nn(n);var e=ks(2);return e.filters.date.start=null,e.getDatas()}),us(2,"ion-icon",43),ls(),ls()}}function rZ(e,t){if(1&e){var n=fs();ss(0,"ion-buttons",5),ss(1,"ion-button",42),ms("click",function(){nn(n);var e=ks(2);return e.filters.date.end=null,e.getDatas()}),us(2,"ion-icon",43),ls(),ls()}}function oZ(e,t){if(1&e){var n=fs();ss(0,"ion-item",31),ss(1,"ion-checkbox",44),ms("ionChange",function(e){return nn(n),ks(2).toggleAction(e.detail)}),ls(),ss(2,"ion-label"),Qs(3),ls(),ls()}if(2&e){var i=t.$implicit;os("title",i.label),xo(1),os("value",i.id),xo(2),Xs(i.label)}}function aZ(e,t){if(1&e){var n=fs();ss(0,"ion-header",0),ss(1,"ion-toolbar",1),ss(2,"ion-buttons",2),us(3,"ion-back-button"),ls(),ss(4,"ion-title",33),Qs(5),Du(6,"translate"),ls(),ls(),ls(),ss(7,"ion-content"),ss(8,"ion-list"),ss(9,"ion-item",34),ss(10,"ion-searchbar",35),ms("ionChange",function(e){return nn(n),ks().applyFilter(e.detail.value)}),Du(11,"translate"),ls(),ls(),ss(12,"ion-item"),ss(13,"ion-label",36),Qs(14),Du(15,"translate"),ls(),ss(16,"ion-datetime",37),ms("ngModelChange",function(e){return nn(n),ks().filters.date.start=e})("ionChange",function(){return nn(n),ks().getDatas()}),Du(17,"translate"),Du(18,"translate"),ls(),ns(19,iZ,3,0,"ion-buttons",38),ls(),ss(20,"ion-item"),ss(21,"ion-label",36),Qs(22),Du(23,"translate"),ls(),ss(24,"ion-datetime",39),ms("ngModelChange",function(e){return nn(n),ks().filters.date.end=e})("ionChange",function(){return nn(n),ks().getDatas()}),Du(25,"translate"),Du(26,"translate"),ls(),ns(27,rZ,3,0,"ion-buttons",38),ls(),ss(28,"ion-item",40),ss(29,"ion-label",36),Qs(30),Du(31,"translate"),ls(),ls(),ns(32,oZ,4,3,"ion-item",41),ls(),ls()}if(2&e){var i=ks();os("translucent",!0),xo(5),Xs(Ou(6,17,"lang.filters")),xo(5),os("placeholder",Ou(11,19,"lang.enterUserName")),xo(4),Ks("",Ou(15,21,"lang.since"),": "),xo(2),os("doneText",Ou(17,23,"lang.validate"))("cancelText",Ou(18,25,"lang.cancel"))("ngModel",i.filters.date.start)("max",null!==i.filters.date.end?i.filters.date.end:void 0),xo(3),os("ngIf",null!==i.filters.date.start),xo(3),Ks("",Ou(23,27,"lang.until"),": "),xo(2),os("doneText",Ou(25,29,"lang.validate"))("cancelText",Ou(26,31,"lang.cancel"))("ngModel",i.filters.date.end)("min",null!==i.filters.date.start?i.filters.date.start:void 0),xo(3),os("ngIf",null!==i.filters.date.end),xo(3),Ks("",Ou(31,33,"lang.actions"),": "),xo(2),os("ngForOf",i.actions)}}var sZ,lZ=((sZ=function(){function e(t,n,i,r,o,a,s,l,u,c,d){A(this,e),this.http=t,this.translate=n,this.menu=i,this.latinisePipe=r,this.viewContainerRef=o,this.dialog=a,this.signaturesService=s,this.notificationService=l,this.authService=u,this.alertController=c,this.sortPipe=d,this.displayedColumns=["creation_date","user","info","ip"],this.loading=!0,this.resources=[],this.offset=0,this.limit=10,this.count=0,this.filters={user:"",messageTypes:[],date:{start:null,end:null}},this.aventTypesIcon={VIEW:"eye-outline",CREATION:"add-circle-outline",ACTION:"settings-outline",THUMBNAIL:"image-outline",EMAIL:"mail-outline",SUPPRESSION:"trash-bin-outline",MODIFICATION:"create-outline",LOGIN:"log-in-outline",LOGOUT:"log-out-outline"},this.actions=[]}return m(e,[{key:"applyFilter",value:function(e){e=this.latinisePipe.transform(e.toLowerCase()),this.filters.user=e,this.getDatas()}},{key:"openFilters",value:function(){this.menu.open("right-menu")}},{key:"ionViewWillEnter",value:function(){return e=this,n=regeneratorRuntime.mark(function e(){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:this.filters.messageTypes=[],this.filters.user="",this.filters.date.start=this.filters.date.end=null,this.menu.enable(!0,"left-menu"),this.menu.enable(!0,"right-menu"),this.signaturesService.initTemplate(this.rightContent,this.viewContainerRef,"rightContent"),this.getActions(),this.getDatas();case 1:case"end":return e.stop()}},e,this)}),new((t=void 0)||(t=Promise))(function(i,r){function o(e){try{s(n.next(e))}catch(t){r(t)}}function a(e){try{s(n.throw(e))}catch(t){r(t)}}function s(e){var n;e.done?i(e.value):(n=e.value,n instanceof t?n:new t(function(e){e(n)})).then(o,a)}s((n=n.apply(e,[])).next())});var e,t,n}},{key:"getActions",value:function(){var e=this;this.http.get("../rest/history/messageTypes",this.filters).pipe(uw(function(t){e.actions=t.messageTypes.map(function(t){return{id:t,label:e.translate.instant("lang."+t)}}),e.actions=e.sortPipe.transform(e.actions,"label")}),Zb(function(t){return e.notificationService.handleErrors(t),Ty(!1)})).subscribe()}},{key:"getDatas",value:function(){var e=this;return this.resources=[],this.offset=0,new Promise(function(t){e.http.post("../rest/history?limit=10&offset=0",e.filters).pipe(uw(function(n){e.resources=n.history,e.count=n.total,t(!0)}),Zb(function(n){return e.notificationService.handleErrors(n),t(!1),Ty(!1)})).subscribe()})}},{key:"sortData",value:function(e){console.log(e)}},{key:"loadData",value:function(e){var t=this;this.count<=this.limit?(e.target.complete(),e.target.disabled=!0):(this.offset=this.offset+this.limit,this.http.post("../rest/history?limit="+this.limit+"&offset="+this.offset,this.filters).pipe(uw(function(n){t.resources=t.resources.concat(n.history),e.target.complete(),t.count===t.resources.length&&(e.target.disabled=!0)})).subscribe())}},{key:"getNbFilters",value:function(){var e=0;return""!==this.filters.user&&e++,null!==this.filters.date.start&&e++,null!==this.filters.date.end&&e++,this.filters.messageTypes.length>0&&(e+=this.filters.messageTypes.length),e}},{key:"toggleAction",value:function(e){e.checked?this.filters.messageTypes.push(e.value):this.filters.messageTypes=this.filters.messageTypes.filter(function(t){return t!==e.value}),this.getDatas()}},{key:"clearFilters",value:function(){$(".checkedAction").each(function(){$(this).prop("checked",!1)}),document.querySelector("ion-searchbar").getInputElement().then(function(e){e.value=""}),this.filters.user="",this.filters.date.start=this.filters.date.end=null,this.getDatas()}},{key:"removeFilter",value:function(e){this.filters.messageTypes.includes(e)&&$(".checkedAction").each(function(){if($(this).val()===e)return $(this).prop("checked",!1),!1}),this.filters.user===e&&(document.querySelector("ion-searchbar").getInputElement().then(function(e){e.value=""}),this.filters.user=""),this.filters.date.start===e&&(this.filters.date.start=null),this.filters.date.end===e&&(this.filters.date.end=null),this.getDatas()}}]),e}()).\u0275fac=function(e){return new(e||sZ)(rs(lb),rs(pE),rs(uP),rs(QM),rs(uu),rs(kB),rs(PE),rs(yE),rs(DE),rs(sP),rs(ZY))},sZ.\u0275cmp=ft({type:sZ,selectors:[["app-administration-history-list"]],viewQuery:function(e,t){var n;1&e&&Qu(QY,3),2&e&&Zu(n=Ku())&&(t.rightContent=n.first)},features:[yl([ZY])],decls:20,vars:10,consts:[[3,"translucent"],["color","primary"],["slot","start"],["menu","left-menu"],["slot","end","color","secondary"],["slot","end"],["menu","right-menu"],["name","funnel-outline"],["color","primary","color","primary","style","padding-left: 1px;padding-right: 1px;",4,"ngIf"],["mainContent",""],[4,"ngIf"],["rightContent",""],["color","primary","color","primary",2,"padding-left","1px","padding-right","1px"],["shape","round","size","small","fill","clear","slot","start","color","primary",1,"clearFilter",3,"title","click"],["slot","icon-only","name","trash-bin-outline","color","light"],["slot","start",1,"scrollfilters"],["outline","","color","primary",3,"title","click",4,"ngFor","ngForOf"],["outline","","color","primary",3,"title","click",4,"ngIf"],["outline","","color","primary",3,"title","click"],["name","swap-horizontal-outline"],["name","close-circle"],["name","person-outline"],["name","today-outline"],["name","calendar-outline"],["approxItemHeight","90px",3,"items"],["lines","full","class","canSelect",4,"virtualItem"],["threshold","100px",3,"ionInfinite"],["loadingSpinner","bubbles",3,"loadingText"],["lines","full",1,"canSelect"],["color","primary","slot","start",3,"name"],[1,"primary"],[3,"title"],[2,"float","right","margin-top","0px"],[1,"ion-text-center"],["lines","none"],[3,"placeholder","ionChange"],["color","secondary"],["displayFormat","DD/MM/YYYY",3,"doneText","cancelText","ngModel","max","ngModelChange","ionChange"],["slot","end",4,"ngIf"],["displayFormat","DD/MM/YYYY",3,"doneText","cancelText","ngModel","min","ngModelChange","ionChange"],["lines","none",2,"position","sticky","top","0","z-index","2"],[3,"title",4,"ngFor","ngForOf"],["color","danger","shape","round","fill","clear",3,"click"],["slot","icon-only","name","close-outline"],["slot","start",1,"checkedAction",3,"value","ionChange"]],template:function(e,t){1&e&&(ss(0,"ion-header",0),ss(1,"ion-toolbar",1),ss(2,"ion-buttons",2),us(3,"ion-menu-button",3),us(4,"ion-back-button"),ls(),ss(5,"ion-title"),Qs(6),Du(7,"translate"),ls(),ss(8,"ion-title",4),Qs(9),Du(10,"translate"),ls(),ss(11,"ion-buttons",5),ss(12,"ion-menu-button",6),us(13,"ion-icon",7),ls(),ls(),ls(),ns(14,eZ,9,7,"ion-toolbar",8),ls(),ss(15,"ion-content",null,9),ns(17,nZ,6,4,"ion-list",10),ls(),ns(18,aZ,33,35,"ng-template",null,11,tc)),2&e&&(os("translucent",!0),xo(6),Xs(Ou(7,6,"lang.history")),xo(3),Js("",t.count," ",Ou(10,8,"lang.entries"),""),xo(5),os("ngIf",t.getNbFilters()>0),xo(3),os("ngIf",t.resources.length>0))},directives:[XC,DS,LC,cS,TC,JS,PS,KC,mh,UC,RC,gh,HC,aS,sS,iP,nP,$C,eS,nS,hS,bS,nA,WC,tA,hm,Ym,NC,Jx],pipes:[gE,Wh,jh,YM],styles:[".flex1[_ngcontent-%COMP%]{flex:1}.flex2[_ngcontent-%COMP%]{flex:2}.primary[_ngcontent-%COMP%]{color:var(--ion-color-primary)}  .test .alert-wrapper{min-width:350px}.canSelect[_ngcontent-%COMP%]   *[_ngcontent-%COMP%]{user-select:text!important;-webkit-user-select:text!important;-khtml-user-select:text!important;-moz-user-select:text!important;-ms-user-select:text!important}.scrollfilters[_ngcontent-%COMP%]{overflow:auto;white-space:nowrap;height:50%}.scrollfilters[_ngcontent-%COMP%]   ion-chip[_ngcontent-%COMP%]{height:auto;margin:4px;display:inline-block}ion-button.clearFilter[_ngcontent-%COMP%]{position:-webkit-sticky;position:sticky;left:0;z-index:1}ion-chip[_ngcontent-%COMP%]{background-color:#fff}"]}),sZ),uZ=["customizationForm"];function cZ(e,t){if(1&e){var n=fs();ss(0,"ion-button",14),ms("click",function(){return nn(n),ks(2).watermark.enabled=!1}),Qs(1),Du(2,"translate"),ls()}2&e&&(xo(1),Ks(" ",Ou(2,1,"lang.disableWatermark"),""))}function dZ(e,t){if(1&e){var n=fs();ss(0,"ion-item"),ss(1,"ion-button",15),ms("click",function(){return nn(n),ks(2).watermark.enabled=!0}),Qs(2),Du(3,"translate"),ls(),ls()}2&e&&(xo(2),Ks("",Ou(3,1,"lang.enableWatermark")," "))}function hZ(e,t){if(1&e){var n=fs();cs(0),ss(1,"ion-card"),ss(2,"ion-item",1),us(3,"ion-icon",16),us(4,"ion-label",17),Du(5,"translate"),ls(),ls(),ss(6,"ion-item"),ss(7,"ion-label",18),Qs(8),Du(9,"translate"),ls(),ss(10,"ion-input",19),ms("ngModelChange",function(e){return nn(n),ks(2).watermark.text=e}),ls(),us(11,"ion-note",20),Du(12,"translate"),ls(),ss(13,"ion-radio-group",21),ms("ionChange",function(e){return nn(n),ks(2).watermark.align=e.detail.value}),ss(14,"ion-list-header"),ss(15,"ion-label",7),Qs(16),Du(17,"translate"),ls(),ls(),ss(18,"ion-item"),ss(19,"ion-label"),Qs(20),Du(21,"translate"),ls(),us(22,"ion-radio",22),ls(),ss(23,"ion-item"),ss(24,"ion-label"),Qs(25),Du(26,"translate"),ls(),us(27,"ion-radio",23),ls(),ss(28,"ion-item"),ss(29,"ion-label"),Qs(30),Du(31,"translate"),ls(),us(32,"ion-radio",24),ls(),ls(),ss(33,"ion-item"),ss(34,"ion-label",18),Qs(35),Du(36,"translate"),ls(),ss(37,"ion-input",25),ms("ngModelChange",function(e){return nn(n),ks(2).watermark.posY=e})("keypress",function(e){return nn(n),ks(2).isNumber(e)}),ls(),ss(38,"ion-note",26),Qs(39,"px"),ls(),ls(),ds()}if(2&e){var i=ks(2);xo(4),os("innerHTML",Ou(5,12,"lang.watermarkDesc"),Ar),xo(4),Xs(Ou(9,14,"lang.content")),xo(2),os("ngModel",i.watermark.text),xo(1),os("innerHTML",Ou(12,16,"lang.watermarkContentDesc"),Ar),xo(2),os("value",i.watermark.align),xo(3),Xs(Ou(17,18,"lang.alignment")),xo(4),Xs(Ou(21,20,"lang.left")),xo(5),Xs(Ou(26,22,"lang.center")),xo(5),Xs(Ou(31,24,"lang.right")),xo(5),Ks("",Ou(36,26,"lang.positionY")," "),xo(2),os("ngModel",i.watermark.posY)("min",0)}}function fZ(e,t){if(1&e){var n=fs();ss(0,"form",5,6),ms("ngSubmit",function(){return nn(n),ks().onSubmit()}),ss(2,"ion-content"),ss(3,"ion-list"),ss(4,"ion-list-header"),ss(5,"ion-label",7),Qs(6),Du(7,"translate"),ls(),ns(8,cZ,3,3,"ion-button",8),ls(),ns(9,dZ,4,3,"ion-item",9),ns(10,hZ,40,28,"ng-container",9),ls(),ss(11,"ion-item",10),ss(12,"div",11),ss(13,"ion-button",12),ss(14,"ion-label",13),Qs(15),Du(16,"translate"),ls(),ls(),ls(),ls(),ls(),ls()}if(2&e){var i=ks();xo(6),Ks(" ",Ou(7,5,"lang.watermark")," "),xo(2),os("ngIf",i.watermark.enabled),xo(1),os("ngIf",!i.watermark.enabled),xo(1),os("ngIf",i.watermark.enabled),xo(5),Xs(Ou(16,7,"lang.validate"))}}var pZ,gZ,vZ=((gZ=function(){function e(t,n,i,r,o){A(this,e),this.http=t,this.translate=n,this.notificationService=i,this.authService=r,this.functions=o,this.loading=!0,this.loginMessage="",this.applicationUrl="",this.watermark={enabled:!1,text:"Document n\xb0[id]",align:"R",posY:10}}return m(e,[{key:"ngOnInit",value:function(){return e=this,n=regeneratorRuntime.mark(function e(){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getWatermark();case 2:this.loading=!1;case 3:case"end":return e.stop()}},e,this)}),new((t=void 0)||(t=Promise))(function(i,r){function o(e){try{s(n.next(e))}catch(t){r(t)}}function a(e){try{s(n.throw(e))}catch(t){r(t)}}function s(e){var n;e.done?i(e.value):(n=e.value,n instanceof t?n:new t(function(e){e(n)})).then(o,a)}s((n=n.apply(e,[])).next())});var e,t,n}},{key:"getWatermark",value:function(){var e=this;return new Promise(function(t){e.http.get("../rest/customization/watermark").pipe(uw(function(n){e.functions.empty(n.configuration)||(e.watermark=n.configuration),t(!0)}),Zb(function(t){return e.notificationService.handleErrors(t),Ty(!1)})).subscribe()})}},{key:"onSubmit",value:function(){var e=this;this.http.put("../rest/customization",{id:this.authService.user.id,watermark:this.watermark}).pipe(uw(function(){e.notificationService.success(e.translate.instant("lang.modificationSaved"))}),Zb(function(t){return e.notificationService.handleErrors(t),Ty(!1)})).subscribe()}},{key:"isNumber",value:function(e){var t=(e=e||window.event).which?e.which:e.keyCode;return!(t>31&&(t<48||t>57))}}]),e}()).\u0275fac=function(e){return new(e||gZ)(rs(lb),rs(pE),rs(yE),rs(DE),rs(IU))},gZ.\u0275cmp=ft({type:gZ,selectors:[["ng-component"]],viewQuery:function(e,t){var n;1&e&&Qu(uZ,1),2&e&&Zu(n=Ku())&&(t.customizationForm=n.first)},decls:9,vars:5,consts:[[3,"translucent"],["color","primary"],["slot","start"],["menu","left-menu"],["style","display: contents;","id","customizationForm",3,"ngSubmit",4,"ngIf"],["id","customizationForm",2,"display","contents",3,"ngSubmit"],["customizationForm","ngForm"],["color","secondary"],["size","small","color","danger",3,"click",4,"ngIf"],[4,"ngIf"],["text-center","","lines","none",2,"position","sticky","bottom","0px","z-index","1"],[2,"display","flex","align-items","center","justify-content","center","width","100%","background","white"],["type","submit","shape","round","size","large","fill","outline","color","primary"],[2,"font-size","13px"],["size","small","color","danger",3,"click"],["size","small","color","primary",3,"click"],["name","information-circle","slot","start"],[2,"white-space","initial",3,"innerHTML"],["color","secondary","position","floating"],["name","watermarkContent",3,"ngModel","ngModelChange"],[3,"innerHTML"],[3,"value","ionChange"],["slot","start","value","L"],["slot","start","value","C"],["slot","start","value","R"],["type","number","name","watermarkPosY",3,"ngModel","min","ngModelChange","keypress"],["slot","end"]],template:function(e,t){1&e&&(ss(0,"ion-header",0),ss(1,"ion-toolbar",1),ss(2,"ion-buttons",2),us(3,"ion-menu-button",3),us(4,"ion-back-button"),ls(),ss(5,"ion-title"),Qs(6),Du(7,"translate"),ls(),ls(),ls(),ns(8,fZ,17,9,"form",4)),2&e&&(os("translucent",!0),xo(6),Xs(Ou(7,3,"lang.customization")),xo(2),os("ngIf",!t.loading))},directives:[XC,DS,LC,cS,TC,JS,PS,mh,Zm,fm,Wm,UC,sS,lS,aS,nS,RC,FC,KC,tS,nA,hm,Ym,hS,pS,tA,fS,eA,$x],pipes:[gE],styles:[".header[_ngcontent-%COMP%]{background:#135f7f;height:95px;color:#fff;padding-left:10px;font-size:25px}.header[_ngcontent-%COMP%], .header-title[_ngcontent-%COMP%]{display:flex;align-items:center}.header-title[_ngcontent-%COMP%]{flex:1;white-space:pre;overflow:hidden;text-overflow:ellipsis}.header[_ngcontent-%COMP%]   b[_ngcontent-%COMP%]{color:#f99830}.header[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis}.mainView[_ngcontent-%COMP%]{display:flex;flex-direction:column}.container[_ngcontent-%COMP%]{flex:1;overflow:auto}.loader[_ngcontent-%COMP%]{position:absolute;z-index:2;display:flex;background:hsla(0,0%,100%,.8);width:100%;height:100%;justify-content:center;align-items:center;top:0;margin:0;padding:0}.admin-form[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:20px}.actions-form[_ngcontent-%COMP%]{display:flex;justify-content:center}@media (max-width:360px){.actions-form[_ngcontent-%COMP%]{flex-direction:column}}.actions-form[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin:10px;width:150px}@media (max-width:360px){.actions-form[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{width:100%}}.noResult[_ngcontent-%COMP%]{padding:10px;text-align:center;opacity:.5}.emptyTable[_ngcontent-%COMP%]{height:auto}.addButton[_ngcontent-%COMP%]{padding:10px;display:flex;justify-content:flex-end}",""]}),gZ),mZ=((pZ=function e(){A(this,e)}).\u0275fac=function(e){return new(e||pZ)},pZ.\u0275mod=mt({type:pZ}),pZ.\u0275inj=Fe({imports:[[ax.forRoot([{path:"home",canActivate:[sH],component:Aq},{path:"indexation",canActivate:[sH],component:Jq},{path:"profile",canActivate:[sH],component:_q},{path:"search",canActivate:[sH],component:YY},{path:"administration",canActivate:[sH],component:dH},{path:"administration/users",canActivate:[sH],component:yH},{path:"administration/users/new",canActivate:[sH],component:LH},{path:"administration/users/:id",canActivate:[sH],component:LH},{path:"administration/groups",canActivate:[sH],component:jH},{path:"administration/groups/new",canActivate:[sH],component:rj},{path:"administration/groups/:id",canActivate:[sH],component:rj},{path:"administration/connections",canActivate:[sH],component:uj},{path:"administration/connections/ldaps",canActivate:[sH],component:vj},{path:"administration/connections/ldaps/new",canActivate:[sH],component:Ej},{path:"administration/connections/ldaps/:id",canActivate:[sH],component:Ej},{path:"administration/emailConfiguration",canActivate:[sH],component:Bj},{path:"administration/passwordRules",canActivate:[sH],component:jG},{path:"administration/history",canActivate:[sH],component:lZ},{path:"administration/customization",canActivate:[sH],component:vZ},{path:"documents/:id",canActivate:[sH],component:CG},{path:"login",canActivate:[sH],component:RG},{path:"forgot-password",component:LG},{path:"update-password",component:HG},{path:"password-modification",component:ZG},{path:"**",redirectTo:"login",pathMatch:"full"}],{relativeLinkResolution:"legacy"})],ax]}),pZ);function yZ(e,t){if(1&e){var n=fs();ss(0,"ion-item",3),ms("click",function(){return nn(n),ks().menu.close("left-menu")}),us(1,"ion-icon",4),ss(2,"ion-label"),Qs(3),Du(4,"translate"),ls(),ls()}if(2&e){var i=t.$implicit;Fs("item-active",ks().isActiveRoute(i.route)),os("routerLink",i.route),xo(1),os("name",i.icon),xo(2),Xs(Ou(4,5,"lang."+i.id))}}var bZ,wZ=((bZ=function(){function e(t,n,i,r){A(this,e),this.route=t,this.router=n,this.authService=i,this.menu=r,this.loading=!0,this.privileges=[]}return m(e,[{key:"ngOnInit",value:function(){}},{key:"openHome",value:function(){this.router.navigate(["/documents/"])}},{key:"isActiveRoute",value:function(e){return this.router.url.split("/").indexOf(e.replace("/administration/",""))>-1}}]),e}()).\u0275fac=function(e){return new(e||bZ)(rs(b_),rs(jk),rs(DE),rs(uP))},bZ.\u0275cmp=ft({type:bZ,selectors:[["app-admin-sidebar"]],decls:8,vars:4,consts:[["color","light"],[2,"text-align","center","font-size","14px"],["routerDirection","root",3,"routerLink","item-active","click",4,"ngFor","ngForOf"],["routerDirection","root",3,"routerLink","click"],["slot","start","color","primary",3,"name"]],template:function(e,t){1&e&&(ss(0,"ion-header"),ss(1,"ion-toolbar",0),ss(2,"ion-title",1),Qs(3),Du(4,"translate"),ls(),ls(),ls(),ss(5,"ion-content"),ss(6,"ion-list"),ns(7,yZ,5,7,"ion-item",2),ls(),ls()),2&e&&(xo(3),Ks(" ",Ou(4,2,"lang.administration")," "),xo(4),os("ngForOf",t.authService.user.administrativePrivileges))},directives:[XC,DS,PS,UC,sS,gh,nS,$S,Uk,KC,aS],pipes:[gE],styles:[".item-active[_ngcontent-%COMP%]{border-left:5px solid var(--ion-color-primary);--background:rgba(var(--ion-color-primary-rgb),0.14);color:var(--ion-color-primary);font-weight:700}"]}),bZ),_Z=["listContent"],kZ=["searchInput"];function xZ(e,t){if(1&e){var n=fs();ss(0,"ion-button",8),ms("click",function(){return nn(n),ks().authService.logout()}),Du(1,"translate"),us(2,"ion-icon",15),ls()}2&e&&os("title",Ou(1,1,"lang.logout"))}function AZ(e,t){if(1&e){var n=fs();ss(0,"ion-button",8),ms("click",function(){return nn(n),ks().openAdmin()}),Du(1,"translate"),us(2,"ion-icon",16),ls()}2&e&&os("title",Ou(1,1,"lang.administration"))}function CZ(e,t){if(1&e){var n=fs();ss(0,"ion-button",8),ms("click",function(){return nn(n),ks().openHome()}),Du(1,"translate"),us(2,"ion-icon",17),ls()}2&e&&os("title",Ou(1,1,"lang.homePage"))}function SZ(e,t){if(1&e){var n=fs();ss(0,"ion-button",8),ms("click",function(){return nn(n),ks().openIndexation()}),Du(1,"translate"),us(2,"ion-icon",18),us(3,"ion-icon",19),ls()}2&e&&os("title",Ou(1,1,"lang.indexationAdmin"))}function PZ(e,t){if(1&e&&(ss(0,"span",26),Qs(1),Du(2,"translate"),ls()),2&e){var n=ks(3);xo(1),Xs(Ou(2,1,"lang."+n.signaturesService.mode+"Label"))}}function EZ(e,t){if(1&e){var n=fs();ss(0,"ion-title",23),ms("click",function(e){return nn(n),ks(2).search(e)}),Du(1,"translate"),ss(2,"span"),Qs(3),ls(),Qs(4),Du(5,"translate"),ns(6,PZ,3,3,"span",24),Qs(7," \xa0 "),us(8,"ion-icon",25),ls()}if(2&e){var i=ks(2);os("title",Ou(1,6,"lang.filterInfo")),xo(2),Fs("primary",""!=i.signaturesService.mode),xo(1),Xs(i.signaturesService.documentsListCount.current),xo(1),Ks(" ",Ou(5,8,"lang.documents")," "),xo(2),os("ngIf",""!=i.signaturesService.mode)}}function DZ(e,t){if(1&e){var n=fs();ss(0,"ion-searchbar",27,28),ms("ionCancel",function(e){nn(n);var t=ks(2);return t.search(e),t.searchMode=!t.searchMode}),Du(2,"translate"),ls()}if(2&e){var i=ks(2);os("placeholder",Ou(2,2,"lang.filterInfo"))("formControl",i.searchTerm)}}function OZ(e,t){if(1&e&&(ss(0,"ion-header"),ss(1,"ion-toolbar",20),ns(2,EZ,9,10,"ion-title",21),ns(3,DZ,3,4,"ion-searchbar",22),ls(),ls()),2&e){var n=ks();xo(2),os("ngIf",!n.searchMode),xo(1),os("ngIf",n.searchMode)}}function MZ(e,t){if(1&e){var n=fs();ss(0,"ion-header",29),ss(1,"ion-toolbar",30),ss(2,"ion-segment",31),ss(3,"ion-segment-button",32),ms("click",function(){return nn(n),ks().filter("sign")}),ss(4,"ion-label"),Qs(5),Du(6,"titlecase"),Du(7,"translate"),ls(),us(8,"ion-icon",33),ss(9,"ion-badge",34),Qs(10),ls(),ls(),ss(11,"ion-segment-button",35),ms("click",function(){return nn(n),ks().filter("visa")}),ss(12,"ion-label"),Qs(13),Du(14,"titlecase"),Du(15,"translate"),ls(),us(16,"ion-icon",36),ss(17,"ion-badge",34),Qs(18),ls(),ls(),ss(19,"ion-segment-button",37),ms("click",function(){return nn(n),ks().filter("note")}),ss(20,"ion-label"),Qs(21),Du(22,"titlecase"),Du(23,"translate"),ls(),us(24,"ion-icon",38),ss(25,"ion-badge",34),Qs(26),ls(),ls(),ls(),ls(),ls()}if(2&e){var i=ks();xo(2),os("value",i.signaturesService.mode),xo(1),Fs("segment-button-notFocused","sign"!==i.signaturesService.mode),xo(2),Xs(Ou(6,13,Ou(7,15,"lang.signLabel"))),xo(5),Xs(i.signaturesService.documentsListCount.sign),xo(1),Fs("segment-button-notFocused","visa"!==i.signaturesService.mode),xo(2),Xs(Ou(14,17,Ou(15,19,"lang.visaLabel"))),xo(5),Xs(i.signaturesService.documentsListCount.visa),xo(1),Fs("segment-button-notFocused","note"!==i.signaturesService.mode),xo(2),Xs(Ou(22,21,Ou(23,23,"lang.noteLabel"))),xo(5),Xs(i.signaturesService.documentsListCount.note)}}function TZ(e,t){1&e&&us(0,"app-admin-sidebar",39)}function IZ(e,t){1&e&&(ss(0,"ion-item",44),ss(1,"ion-label",45),Qs(2),Du(3,"titlecase"),Du(4,"translate"),ls(),ls()),2&e&&(xo(2),Ks(" ",Ou(3,1,Ou(4,3,"lang.noResult"))," "))}function RZ(e,t){1&e&&us(0,"ion-icon",56)}function LZ(e,t){1&e&&us(0,"ion-icon",57)}function FZ(e,t){1&e&&us(0,"ion-icon",58)}function BZ(e,t){1&e&&us(0,"ion-icon",59)}function VZ(e,t){1&e&&(ss(0,"ion-label",60),Qs(1),Du(2,"translate"),ls()),2&e&&(xo(1),Ks(" ",Ou(2,1,"lang.substitutedDoc"),""))}var zZ=function(e){return[e]};function NZ(e,t){if(1&e){var n=fs();ss(0,"ion-menu-toggle",46),ss(1,"ion-item",47),ms("click",function(){nn(n);var e=t.index;return ks(2).filterService.currentIndex=e}),ns(2,RZ,1,0,"ion-icon",48),ns(3,LZ,1,0,"ion-icon",49),ns(4,FZ,1,0,"ion-icon",50),ns(5,BZ,1,0,"ion-icon",51),ss(6,"div"),ss(7,"ion-label",52),Qs(8),ls(),ss(9,"ion-label",53),Qs(10),Du(11,"shorten"),ls(),ns(12,VZ,3,3,"ion-label",54),ls(),us(13,"ion-icon",55),ls(),ls()}if(2&e){var i=t.$implicit,r=ks(2);xo(1),Fs("selected",r.router.url==="/documents/"+i.id),os("routerLink",Au(14,zZ,"/documents/"+i.id)),xo(1),os("ngIf","sign"==i.mode),xo(1),os("ngIf","visa"==i.mode),xo(1),os("ngIf","note"==i.mode),xo(1),os("ngIf",!r.functionsService.empty(i.mailingId)),xo(3),Xs(i.reference),xo(2),Xs(Tu(11,10,i.title,50,"...")),xo(2),os("ngIf",!i.owner)}}function HZ(e,t){if(1&e){var n=fs();ss(0,"ion-infinite-scroll",61),ms("ionInfinite",function(e){return nn(n),ks(2).loadData(e)}),us(1,"ion-infinite-scroll-content",62),Du(2,"translate"),ls()}2&e&&(xo(1),os("loadingText",Ou(2,1,"lang.loadingMoreData")))}function jZ(e,t){if(1&e&&(ss(0,"ion-content"),ss(1,"ion-list",40),ns(2,IZ,5,5,"ion-item",41),ns(3,NZ,14,16,"ion-menu-toggle",42),ls(),ns(4,HZ,3,3,"ion-infinite-scroll",43),ls()),2&e){var n=ks();xo(2),os("ngIf",0==n.signaturesService.documentsList.length),xo(1),os("ngForOf",n.signaturesService.documentsList),xo(1),os("ngIf",n.signaturesService.documentsList.length>0)}}var UZ,WZ=((UZ=function(){function e(t,n,i,r,o,a,s,l,u,c){var d=this;A(this,e),this.http=t,this.signaturesService=n,this.route=i,this.router=r,this.menu=o,this.notificationService=a,this.authService=s,this.modalController=l,this.functionsService=u,this.filterService=c,this.loadingList=!1,this.searchMode=!1,this.searchTerm=new zm,this.searchTerm.valueChanges.pipe(iT(500),Ex(),uw(function(e){return d.loadingList=!0}),Bb(function(e){return d.http.get("../rest/documents?limit="+d.filterService.limit+"&search="+e)})).subscribe(function(e){d.signaturesService.documentsList=e.documents,d.signaturesService.documentsListCount=e.count,d.loadingList=!1})}return m(e,[{key:"ngOnInit",value:function(){var e=this;$(".avatar").css({background:"url(data:image/png;base64,"+this.authService.user.picture+") no-repeat #135F7F"}).css({"background-size":"cover"}).css({"background-position":"center"}),this.http.get("../rest/documents?limit="+this.filterService.limit+"&offset="+this.filterService.offset+"&mode="+this.signaturesService.mode).subscribe(function(t){e.signaturesService.documentsList=t.documents,e.signaturesService.documentsListCount=t.count})}},{key:"ngAfterViewInit",value:function(){this.filter("")}},{key:"openProfile",value:function(){return e=this,n=regeneratorRuntime.mark(function e(){var t;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.modalController.create({component:_q,cssClass:"my-custom-class"});case 2:return t=e.sent,e.next=5,t.present();case 5:case"end":return e.stop()}},e,this)}),new((t=void 0)||(t=Promise))(function(i,r){function o(e){try{s(n.next(e))}catch(t){r(t)}}function a(e){try{s(n.throw(e))}catch(t){r(t)}}function s(e){var n;e.done?i(e.value):(n=e.value,n instanceof t?n:new t(function(e){e(n)})).then(o,a)}s((n=n.apply(e,[])).next())});var e,t,n}},{key:"openAdmin",value:function(){this.menu.close("left-menu"),this.router.navigate(["/administration/"])}},{key:"openHome",value:function(){this.router.navigate(["/home"])}},{key:"openIndexation",value:function(){this.menu.close("left-menu"),this.router.navigate(["/indexation"])}},{key:"openSearch",value:function(){this.menu.close("left-menu"),this.router.navigate(["/search"])}},{key:"search",value:function(e){var t=this;this.searchMode=!0,this.signaturesService.mode="",this.filter(""),setTimeout(function(){"ionCancel"!==e.type&&(t.searchInput.value="",t.searchInput.setFocus())},0)}},{key:"filter",value:function(e){var t=this;this.signaturesService.documentsList=[],""!==e&&(this.searchMode=!1),this.loadingList=!0,this.signaturesService.mode=this.signaturesService.mode===e?"":e,this.filterService.offset=0,this.http.get("../rest/documents?limit="+this.filterService.limit+"&offset="+this.filterService.offset+"&mode="+this.signaturesService.mode).pipe(hw(function(){t.loadingList=!1})).subscribe(function(e){t.signaturesService.documentsList=e.documents,t.signaturesService.documentsListCount=e.count,t.loadingList=!1})}},{key:"checkClose",value:function(){return!(!(-1!==this.route.routeConfig.path.indexOf("administration")||this.signaturesService.mainDocumentId>0)||!this.signaturesService.mobileMode)}},{key:"loadData",value:function(e){var t=this;this.filterService.offset=this.filterService.offset+this.filterService.limit,this.http.get("../rest/documents?limit="+this.filterService.limit+"&offset="+this.filterService.offset+"&mode="+this.signaturesService.mode).pipe(uw(function(n){t.signaturesService.documentsList=t.signaturesService.documentsList.concat(n.documents),e.target.complete(),t.signaturesService.documentsList.length===t.signaturesService.documentsListCount.current&&(e.target.disabled=!0)})).subscribe()}},{key:"isAdminRoute",value:function(){return this.router.url.split("/").indexOf("administration")>-1}},{key:"canIndex",value:function(){return this.authService.user.appPrivileges.map(function(e){return e.id}).indexOf("indexation")>-1}}]),e}()).\u0275fac=function(e){return new(e||UZ)(rs(lb),rs(PE),rs(b_),rs(jk),rs(uP),rs(yE),rs(DE),rs(cP),rs(IU),rs(yU))},UZ.\u0275cmp=ft({type:UZ,selectors:[["app-sidebar"]],viewQuery:function(e,t){var n;1&e&&(Qu(_Z,1),Qu(kZ,1)),2&e&&(Zu(n=Ku())&&(t.listContent=n.first),Zu(n=Ku())&&(t.searchInput=n.first))},decls:23,vars:16,consts:[[3,"translucent"],["color","primary"],["color","primary","lines","none"],["color","secondary",1,"ion-text-center"],[2,"font-weight","bold","font-size","24px"],["slot","start"],[3,"title","click",4,"ngIf"],["slot","end"],[3,"title","click"],["slot","icon-only","name","search-outline"],[1,"avatar-user",3,"click"],[3,"src"],[4,"ngIf"],["style","background: white;",4,"ngIf"],["style","display: contents;",4,"ngIf"],["slot","icon-only","name","power"],["slot","icon-only","name","settings-outline"],["slot","icon-only","name","home"],["slot","icon-only","name","document-outline"],["slot","icon-only","name","add-circle",2,"position","absolute","top","0px","font-size","15px","right","-5px"],["color","light"],["style","text-align: center;font-size: 14px;",3,"title","click",4,"ngIf"],["showCancelButton","always",3,"placeholder","formControl","ionCancel",4,"ngIf"],[2,"text-align","center","font-size","14px",3,"title","click"],["class","primary",4,"ngIf"],["color","primary","name","search-outline"],[1,"primary"],["showCancelButton","always",3,"placeholder","formControl","ionCancel"],["searchInput",""],[2,"background","white"],[1,"filters"],["value","heart",3,"value"],["value","sign",3,"click"],["color","primary","name","pencil-outline"],["color","secondary"],["value","visa",3,"click"],["color","primary","name","checkmark-done-outline"],["value","note",3,"click"],["color","primary","name","chatbubble-ellipses-outline"],[2,"display","contents"],["id","labels-list"],["lines","none",4,"ngIf"],["auto-hide","false",4,"ngFor","ngForOf"],["threshold","100px",3,"ionInfinite",4,"ngIf"],["lines","none"],["color","medium",1,"ion-text-center"],["auto-hide","false"],["routerDirection","root","detail","false",1,"doc-item",3,"routerLink","click"],["color","primary","slot","start","name","pencil-outline",4,"ngIf"],["color","primary","slot","start","name","checkmark-done-outline",4,"ngIf"],["color","primary","slot","start","name","chatbubble-ellipses-outline",4,"ngIf"],["slot","start","color","danger","name","layers","class","groupMailIcon",4,"ngIf"],[1,"sub-label"],["color","primary",1,"ion-text-wrap"],["color","secondary","class","sub-label",4,"ngIf"],["slot","end","color","medium","name","arrow-forward-outline"],["color","primary","slot","start","name","pencil-outline"],["color","primary","slot","start","name","checkmark-done-outline"],["color","primary","slot","start","name","chatbubble-ellipses-outline"],["slot","start","color","danger","name","layers",1,"groupMailIcon"],["color","secondary",1,"sub-label"],["threshold","100px",3,"ionInfinite"],["loadingSpinner","bubbles",3,"loadingText"]],template:function(e,t){1&e&&(ss(0,"ion-header",0),ss(1,"ion-toolbar",1),ss(2,"ion-item",2),ss(3,"ion-label",3),ss(4,"h2",4),Qs(5),ls(),ls(),ls(),ls(),ls(),ss(6,"ion-header",0),ss(7,"ion-toolbar",1),ss(8,"ion-buttons",5),ns(9,xZ,3,3,"ion-button",6),ns(10,AZ,3,3,"ion-button",6),ns(11,CZ,3,3,"ion-button",6),ls(),ss(12,"ion-buttons",7),ss(13,"ion-button",8),ms("click",function(){return t.openSearch()}),Du(14,"translate"),us(15,"ion-icon",9),ls(),ns(16,SZ,4,3,"ion-button",6),ls(),ls(),ls(),ss(17,"ion-avatar",10),ms("click",function(){return t.openProfile()}),us(18,"img",11),ls(),ns(19,OZ,4,2,"ion-header",12),ns(20,MZ,27,25,"ion-header",13),ns(21,TZ,1,0,"app-admin-sidebar",14),ns(22,jZ,5,3,"ion-content",12)),2&e&&(os("translucent",!0),xo(5),Js("",t.authService.user.firstname," ",t.authService.user.lastname,""),xo(1),os("translucent",!0),xo(3),os("ngIf","x509"!==t.authService.authMode&&"kerberos"!==t.authService.authMode&&"azure_saml"!==t.authService.authMode),xo(1),os("ngIf",!t.isAdminRoute()&&t.authService.user.administrativePrivileges.length>0),xo(1),os("ngIf",t.isAdminRoute()),xo(2),os("title",Ou(14,14,"lang.search")),xo(3),os("ngIf",t.canIndex()),xo(2),os("src",t.authService.user.picture,Cr),xo(1),os("ngIf",!t.isAdminRoute()),xo(1),os("ngIf",!t.isAdminRoute()),xo(1),os("ngIf",t.isAdminRoute()),xo(1),os("ngIf",!t.isAdminRoute()))},directives:[XC,DS,nS,aS,LC,mh,RC,KC,MC,PS,bS,nA,hm,Jm,wS,tA,_S,IC,wZ,UC,sS,gh,dS,$S,Uk,$C,eS],pipes:[gE,jh,YM],styles:['.main-header[_ngcontent-%COMP%]{height:205px;overflow:auto}.sidebar[_ngcontent-%COMP%]{position:relative;height:100%;overflow:hidden;display:flex;flex-direction:column}.sidebar-header[_ngcontent-%COMP%]{background:#f1f4f4;height:50px;display:flex;align-items:center;justify-content:center;font-size:14px;font-weight:600;padding-top:10px}.sidebar-header-icon[_ngcontent-%COMP%]{margin-right:15px;position:relative}.sidebar-header-icon.notification[_ngcontent-%COMP%]:after{position:absolute;right:-5px;top:-5px;width:10px;height:10px;border-radius:50%;background:#e74c3c;content:""}.sidebar-header-subtitle[_ngcontent-%COMP%]{color:#9b9b9b}.sidebar-btn[_ngcontent-%COMP%]{height:50px;display:flex;align-items:center;justify-content:space-around}.sidebar[_ngcontent-%COMP%]   .nav[_ngcontent-%COMP%]{flex:1;overflow-y:scroll;margin-top:0;overflow-x:hidden;margin-bottom:0;padding:0;position:relative}.sidebar[_ngcontent-%COMP%]   .nav-item[_ngcontent-%COMP%]{height:70px;display:flex;align-items:center;border-bottom:1px solid #e6e6e6;margin:0;padding:5px 5px 5px 30px;cursor:pointer}.sidebar[_ngcontent-%COMP%]   .nav-item.active[_ngcontent-%COMP%]{border-left:5px solid #135f7f;background:rgba(19,95,127,.14)}.sidebar[_ngcontent-%COMP%]   .nav-item.active[_ngcontent-%COMP%]:after{position:absolute;right:10px;content:"";height:60px;background:#f1f4f4}.sidebar[_ngcontent-%COMP%]   .nav-item-right[_ngcontent-%COMP%]{text-align:center}.sidebar[_ngcontent-%COMP%]   .nav-item-left[_ngcontent-%COMP%]{width:50px}.sidebar[_ngcontent-%COMP%]   .nav-item-left[_ngcontent-%COMP%]   .fas[_ngcontent-%COMP%], .sidebar[_ngcontent-%COMP%]   .nav-item-left[_ngcontent-%COMP%]   .material-icons[_ngcontent-%COMP%]{background:#f1f4f4;border-radius:50%;color:#135f7f;font-size:22px;height:25px;width:25px;padding:10px;margin-right:10px}.sidebar[_ngcontent-%COMP%]   .nav-item-middle[_ngcontent-%COMP%]{width:180px;height:50px;font-size:12px;color:#4f4f4f}.sidebar[_ngcontent-%COMP%]   .nav-item-title[_ngcontent-%COMP%]{font-weight:600;color:#135f7f;font-size:14px}.profile-header[_ngcontent-%COMP%]{background:#135f7f;height:95px;display:flex;justify-content:center;position:relative}.avatar[_ngcontent-%COMP%]{cursor:pointer;position:absolute;width:65px;height:65px;border-radius:40px;bottom:-20px;border:3px solid #f99830;background-size:cover;background-repeat:no-repeat;background-position:50%;transition:all .2s}.avatar[_ngcontent-%COMP%]:hover{box-shadow:0 0 5px 0 #656565}.user[_ngcontent-%COMP%]{color:#fff;padding-top:10px;font-weight:700;font-size:20px;max-width:90%;right:0;white-space:pre;overflow:hidden;text-overflow:ellipsis;padding-right:10px}.filter[_ngcontent-%COMP%]{font-size:10px;width:95px;padding-left:0;padding-right:0}.filter.active[_ngcontent-%COMP%]{background:#135f7f}.mat-badge-content[_ngcontent-%COMP%]{right:0!important;top:-8px!important;background:#f99830}.noResult[_ngcontent-%COMP%]{position:absolute;top:50%;text-align:center;width:100%;opacity:.5}.noDoc[_ngcontent-%COMP%]   .mat-badge-content[_ngcontent-%COMP%]{background:#ddd}.sub-label[_ngcontent-%COMP%]{font-size:11px;--color:var(--ion-color-medium)}ion-item.selected[_ngcontent-%COMP%]{--background:rgba(var(--ion-color-primary-rgb),0.2)}.doc-item[_ngcontent-%COMP%]{--inner-padding-bottom:10px;--inner-padding-top:10px}.filters[_ngcontent-%COMP%]   ion-badge[_ngcontent-%COMP%]{position:absolute;top:10px;right:0;color:#fff}.avatar-user[_ngcontent-%COMP%]{cursor:pointer;position:absolute;z-index:99;left:50%;transform:translateX(-50%);top:60px;border:solid var(--ion-color-secondary);width:71px;height:71px}.groupMailIcon[_ngcontent-%COMP%]{position:absolute;left:40px;font-size:14px;bottom:10px}.segment-button-notFocused[_ngcontent-%COMP%]{--indicator-color:none}']}),UZ);function GZ(e,t){if(1&e){var n=fs();ss(0,"ion-segment-button",10),ms("ionChange",function(e){return nn(n),ks(2).setActiveLang(e)}),ss(1,"ion-label"),Qs(2),ss(3,"ion-badge",11),Qs(4),ls(),ls(),ls()}if(2&e){var i=ks().$implicit,r=ks();os("value",r.currentLang),xo(2),Ks("",i.key," "),xo(2),Xs(r.missingLang[i.key].length)}}function qZ(e,t){if(1&e&&(ss(0,"span"),ns(1,GZ,5,3,"ion-segment-button",9),ls()),2&e){var n=t.$implicit;xo(1),os("ngIf","fr"!==n.key)}}function YZ(e,t){if(1&e){var n=fs();ss(0,"ion-item"),ss(1,"ion-label",13),Qs(2),ls(),ss(3,"ion-input",14),ms("ngModelChange",function(e){return t.$implicit.value=e}),ls(),ss(4,"ion-button",15),ms("click",function(){nn(n);var e=t.$implicit;return ks(2).openTranslation(e.value)}),us(5,"ion-icon",16),ls(),ls()}if(2&e){var i=t.$implicit;xo(2),Xs(i.id),xo(1),os("ngModel",i.value)}}function ZZ(e,t){if(1&e&&(ss(0,"ion-list",12),ns(1,YZ,6,2,"ion-item",5),ls()),2&e){var n=ks();xo(1),os("ngForOf",n.missingLang[n.currentLang])}}var QZ,XZ,KZ=((XZ=function(){function e(t,n,i,r){A(this,e),this.http=t,this.notify=n,this.translate=i,this.modalController=r,this.missingLang={},this.currentLang="en",this.data={}}return m(e,[{key:"ngOnInit",value:function(){this.getLangs()}},{key:"dismissModal",value:function(){this.modalController.dismiss("cancel")}},{key:"getLangs",value:function(){var e=this;this.http.get("../rest/languages").pipe(uw(function(t){e.allLang=t.languages,Object.keys(e.allLang).forEach(function(t){e.missingLang[t]=Object.keys(e.allLang.fr.lang).filter(function(n){return-1===Object.keys(e.allLang[t].lang).indexOf(n)}).map(function(t){return{id:t,value:e.allLang.fr.lang[t]+"__TO_TRANSLATE"}})})}),Zb(function(t){return e.notify.handleErrors(t),Ty(!1)})).subscribe()}},{key:"openTranslation",value:function(e){window.open("https://translate.google.fr/?hl=fr#view=home&op=translate&sl=fr&tl="+this.currentLang+"&text="+e.replace("__TO_TRANSLATE",""),"_blank")}},{key:"setActiveLang",value:function(e){this.currentLang=e.detail.value}},{key:"generateMissingLang",value:function(e){var t=this,n={},i=this.allLang[this.currentLang],r=/__TO_TRANSLATE$/g;this.missingLang[this.currentLang].forEach(function(t){null===t.value.match(r)&&e?n[t.id]=t.value:e||(n[t.id]=t.value)}),i.lang=Object.assign(Object.assign({},i.lang),n),this.http.put("../rest/languages",{langId:this.currentLang,jsonContent:i}).pipe(uw(function(e){Object.keys(n).forEach(function(e){delete t.allLang[t.currentLang][e],t.missingLang[t.currentLang]=t.missingLang[t.currentLang].filter(function(t){return t.id!==e}),t.data.countMissingLang--}),t.modalController.dismiss("cancel")}),Zb(function(e){return t.notify.handleErrors(e),Ty(!1)})).subscribe()}}]),e}()).\u0275fac=function(e){return new(e||XZ)(rs(lb),rs(yE),rs(pE),rs(cP))},XZ.\u0275cmp=ft({type:XZ,selectors:[["ng-component"]],decls:22,vars:14,consts:[["translucent",""],["color","primary"],["slot","end"],[3,"click"],["slot","icon-only","name","close-outline"],[4,"ngFor","ngForOf"],["lines","full",4,"ngIf"],[3,"translucent"],["size","small","color","primary",3,"click"],[3,"value","ionChange",4,"ngIf"],[3,"value","ionChange"],["color","secondary"],["lines","full"],["position","stacked"],["type","text",3,"ngModel","ngModelChange"],["slot","end","color","primary",3,"click"],["name","language-outline"]],template:function(e,t){1&e&&(ss(0,"ion-header",0),ss(1,"ion-toolbar",1),ss(2,"ion-title"),Qs(3),Du(4,"translate"),ls(),ss(5,"ion-buttons",2),ss(6,"ion-button",3),ms("click",function(){return t.dismissModal()}),us(7,"ion-icon",4),ls(),ls(),ls(),ls(),ss(8,"ion-header"),ss(9,"ion-segment"),ns(10,qZ,2,1,"span",5),Du(11,"keyvalue"),ls(),ls(),ss(12,"ion-content"),cs(13),ns(14,ZZ,2,1,"ion-list",6),ds(),ls(),ss(15,"ion-footer",7),ss(16,"ion-button",8),ms("click",function(){return t.generateMissingLang(!1)}),Qs(17),Du(18,"translate"),ls(),ss(19,"ion-button",8),ms("click",function(){return t.generateMissingLang(!0)}),Qs(20),Du(21,"translate"),ls(),ls()),2&e&&(xo(3),Xs(Ou(4,6,"lang.langChecking")),xo(7),os("ngForOf",Ou(11,8,t.allLang)),xo(4),os("ngIf","en"===t.currentLang),xo(1),os("translucent",!0),xo(2),Xs(Ou(18,10,"lang.generateLangVar")),xo(3),Xs(Ou(21,12,"lang.generateLangVarIgnoreTranslate")))},directives:[XC,DS,PS,LC,RC,KC,wS,tA,gh,UC,mh,ZC,_S,aS,IC,sS,nS,tS,nA,hm,Ym],pipes:[gE,Gh],styles:[".mat-dialog-content[_ngcontent-%COMP%]{padding-top:0}.lang-container[_ngcontent-%COMP%]    .mat-tab-header{position:-webkit-sticky;position:sticky;top:0;z-index:2}.lang-container[_ngcontent-%COMP%]    .mat-tab-label-container{background:#fff}"]}),XZ),JZ=((QZ=function(){function e(t,n,i,r){A(this,e),this.notify=t,this.http=n,this.functionsService=i,this.modalController=r,this.countMissingLang=0}return m(e,[{key:"ngOnInit",value:function(){this.getLangs()}},{key:"openLangTool",value:function(){return e=this,n=regeneratorRuntime.mark(function e(){var t;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.modalController.create({component:KZ,cssClass:"my-custom-class"});case 2:return t=e.sent,e.next=5,t.present();case 5:case"end":return e.stop()}},e,this)}),new((t=void 0)||(t=Promise))(function(i,r){function o(e){try{s(n.next(e))}catch(t){r(t)}}function a(e){try{s(n.throw(e))}catch(t){r(t)}}function s(e){var n;e.done?i(e.value):(n=e.value,n instanceof t?n:new t(function(e){e(n)})).then(o,a)}s((n=n.apply(e,[])).next())});var e,t,n}},{key:"getLangs",value:function(){var e=this;this.http.get("../rest/languages").pipe(uw(function(t){e.allLang=t.languages,Object.keys(e.allLang).forEach(function(t){e.countMissingLang+=Object.keys(e.allLang.fr.lang).filter(function(n){return-1===Object.keys(e.allLang[t].lang).indexOf(n)}).length})}),Zb(function(t){return e.notify.handleErrors(t),Ty(!1)})).subscribe()}}]),e}()).\u0275fac=function(e){return new(e||QZ)(rs(yE),rs(lb),rs(IU),rs(cP))},QZ.\u0275cmp=ft({type:QZ,selectors:[["app-dev-tool"]],decls:11,vars:7,consts:[["cdkDrag","","horizontal","end","vertical","top",3,"title"],["color","light"],["name","language-outline"],["side","start"],["color","light",3,"click"],["color","secondary"]],template:function(e,t){1&e&&(ss(0,"ion-fab",0),Du(1,"translate"),ss(2,"ion-fab-button",1),us(3,"ion-icon",2),ls(),ss(4,"ion-fab-list",3),ss(5,"ion-button",4),ms("click",function(){return t.openLangTool()}),ss(6,"ion-label"),Qs(7),Du(8,"translate"),ss(9,"ion-badge",5),Qs(10),ls(),ls(),ls(),ls(),ls()),2&e&&(os("title",Ou(1,3,"lang.missingLang")),xo(7),Ks("",Ou(8,5,"lang.missingLang")," "),xo(3),Ks(" ",t.countMissingLang,""))},directives:[GC,XN,qC,KC,YC,RC,aS,IC],pipes:[gE],styles:[".devToolListMenu{min-height:auto!important;width:250px}"]}),QZ);function $Z(e,t){1&e&&us(0,"app-sidebar",10)}function eQ(e,t){1&e&&us(0,"app-dev-tool")}var tQ,nQ,iQ,rQ,oQ=function(e){return[e]},aQ=((tQ=function(){function e(t,n,i,r,o,a,s,l,u,c,d,h){if(A(this,e),this.translate=t,this.http=n,this.signaturesService=i,this.sanitizer=r,this.cookieService=o,this.notificationService=a,this.dialog=s,this.authService=u,this.menu=c,this.router=d,this.platform=h,this.showLeftContent=!1,this.showRightContent=!1,l.addSvgIcon("maarchLogo",r.bypassSecurityTrustResourceUrl("../src/frontend/assets/logo_white.svg")),this.cookieService.check("maarchParapheurLang")){var f=this.cookieService.get("maarchParapheurLang");t.setDefaultLang(f)}else this.cookieService.set("maarchParapheurLang","fr"),t.setDefaultLang("fr");td.production||(this.debugMode=!0)}return m(e,[{key:"test",value:function(){return!0}},{key:"allowedRoute",value:function(){var e=this.router.url.split("?")[0];return-1===["/","/login","/forgot-password","/update-password","/password-modification"].indexOf(e)}}]),e}()).\u0275fac=function(e){return new(e||tQ)(rs(pE),rs(lb),rs(PE),rs(Wf),rs(IM),rs(yE),rs(kB),rs(FB),rs(DE),rs(uP),rs(jk),rs(iA))},tQ.\u0275cmp=ft({type:tQ,selectors:[["app-root"]],decls:11,vars:5,consts:[["contentId","main-content"],["menuId","left-menu","contentId","main-content","type","overlay","disabled","",1,"left-menu",3,"ionDidOpen","ionDidClose"],["leftMenu",""],["style","display: contents;",4,"ngIf"],["id","leftContent",2,"display","contents"],["id","main-content"],["menuId","right-menu","contentId","main-content","side","end","type","overlay","disabled","",3,"ngClass","ionDidOpen","ionDidClose"],["rightMenu",""],["id","rightContent",2,"display","contents"],[4,"ngIf"],[2,"display","contents"]],template:function(e,t){1&e&&(ss(0,"ion-app"),ss(1,"ion-split-pane",0),ss(2,"ion-menu",1,2),ms("ionDidOpen",function(){return t.showLeftContent=!0})("ionDidClose",function(){return t.showLeftContent=!1}),ns(4,$Z,1,0,"app-sidebar",3),us(5,"div",4),ls(),us(6,"ion-router-outlet",5),ss(7,"ion-menu",6,7),ms("ionDidOpen",function(){return t.showRightContent=!0})("ionDidClose",function(){return t.showRightContent=!1}),us(9,"div",8),ls(),ls(),ls(),ns(10,eQ,1,0,"app-dev-tool",9)),2&e&&(xo(4),os("ngIf",t.allowedRoute()),xo(3),os("ngClass",Au(3,oQ,t.signaturesService.mobileMode?"right-menu-responsive":"right-menu")),xo(3),os("ngIf",t.debugMode&&t.authService.isAuth()))},directives:[OC,SS,uS,mh,XS,fh,WZ,JZ],styles:[".left-menu{--width:350px;--min-width:350px;--max-width:350px}.right-menu{--width:450px;--min-width:450px;--max-width:450px}.right-menu-responsive{--width:89%;--min-width:89%;--max-width:89%}.split-pane-visible>.left-menu{width:350px!important;--max-width:350px!important;--min-width:350px!important}.split-pane-visible>.right-menu{width:450px!important;--max-width:450px!important;--min-width:450px!important}"],encapsulation:2}),tQ);nQ=yP.a,rQ=void 0,"string"!=typeof(iQ="fr-FR")&&(rQ=iQ,iQ=nQ[ul.LocaleId]),iQ=iQ.toLowerCase().replace(/_/g,"-"),al[iQ]=nQ,rQ&&(al[iQ][ul.ExtraData]=rQ);var sQ,lQ=((sQ=function e(){A(this,e)}).\u0275fac=function(e){return new(e||sQ)},sQ.\u0275mod=mt({type:sQ,bootstrap:[aQ]}),sQ.\u0275inj=Fe({providers:[{provide:cb,useClass:OE,multi:!0},PE,yU,yE,{provide:Dk,useClass:fP},IM,QM],imports:[[Dy,Oy,Zf,xv,xb,vP.forRoot({mode:"md"}),vE.forRoot({loader:{provide:FP,useFactory:cQ,deps:[lb]}}),Gj,yM,xM,eT,OM,oH,mZ,Vf]]}),sQ),uQ=function(){function e(t){A(this,e),this.http=t}return m(e,[{key:"getTranslation",value:function(e){return this.http.get("../rest/languages/"+e)}}]),e}();function cQ(e){return new uQ(e)}td.production&&function(){if(Fc)throw new Error("Cannot enable prod mode after platform setup.");Lc=!1}(),qf().bootstrapModule(lQ).catch(function(e){return console.log(e)})},meiF:function(e,t,n){"use strict";n.d(t,"a",function(){return c});var i,r=n("1vRN"),o=function(e){if(void 0===i){var t=void 0!==e.style.webkitAnimationName;i=void 0===e.style.animationName&&t?"-webkit-":""}return i},a=function(e,t,n){var i=t.startsWith("animation")?o(e):"";e.style.setProperty(i+t,n)},s=function(e,t){var n=t.startsWith("animation")?o(e):"";e.style.removeProperty(n+t)},l=[],u=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;if(void 0!==t){var n=Array.isArray(t)?t:[t];return[].concat(y(e),y(n))}return e},c=function(e){var t,n,i,c,f,p,g,v,m,b,w,_,k,x=[],A=[],C=[],S=!1,P={},E=[],D=[],O={},M=0,T=!1,I=!1,R=!0,L=!1,F=!0,B=e,V=[],z=[],N=[],H=[],j=[],U=[],W=[],G=[],q=[],Y=[],Z="function"==typeof AnimationEffect||"function"==typeof window.AnimationEffect,Q="function"==typeof Element&&"function"==typeof Element.prototype.animate&&Z,X=function(e,t){return(t&&t.oneTimeCallback?z:V).push({c:e,o:t}),k},K=function(){if(Q)Y.forEach(function(e){e.cancel()}),Y.length=0;else{var e=N.slice();Object(r.q)(function(){e.forEach(function(e){s(e,"animation-name"),s(e,"animation-duration"),s(e,"animation-timing-function"),s(e,"animation-iteration-count"),s(e,"animation-delay"),s(e,"animation-play-state"),s(e,"animation-fill-mode"),s(e,"animation-direction")})})}},J=function(){j.forEach(function(e){e&&e.parentNode&&e.parentNode.removeChild(e)}),j.length=0},$=function(){return void 0!==f?f:g?g.getFill():"both"},ee=function(){return void 0!==m?m:void 0!==p?p:g?g.getDirection():"normal"},te=function(){return T?"linear":void 0!==i?i:g?g.getEasing():"linear"},ne=function(){return I?0:void 0!==b?b:void 0!==n?n:g?g.getDuration():0},ie=function(){return void 0!==c?c:g?g.getIterations():1},re=function(){return void 0!==w?w:void 0!==t?t:g?g.getDelay():0},oe=function(){0!==M&&(0===--M&&(function(){fe(),G.forEach(function(e){return e()}),q.forEach(function(e){return e()});var e=R?1:0,t=E,n=D,i=O;N.forEach(function(e){var r=e.classList;for(var o in t.forEach(function(e){return r.add(e)}),n.forEach(function(e){return r.remove(e)}),i)i.hasOwnProperty(o)&&a(e,o,i[o])}),V.forEach(function(t){return t.c(e,k)}),z.forEach(function(t){return t.c(e,k)}),z.length=0,F=!0,R&&(L=!0),R=!0}(),g&&g.animationFinish()))},ae=function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];(function(){U.forEach(function(e){return e()}),W.forEach(function(e){return e()});var e=A,t=C,n=P;N.forEach(function(i){var r=i.classList;for(var o in e.forEach(function(e){return r.add(e)}),t.forEach(function(e){return r.remove(e)}),n)n.hasOwnProperty(o)&&a(i,o,n[o])})})(),x.length>0&&(Q?(N.forEach(function(e){var t=e.animate(x,{id:B,delay:re(),duration:ne(),easing:te(),iterations:ie(),fill:$(),direction:ee()});t.pause(),Y.push(t)}),Y.length>0&&(Y[0].onfinish=function(){oe()})):function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];J();var n,i=((n=x).forEach(function(e){for(var t in e)if(e.hasOwnProperty(t)){var n=e[t];if("easing"===t)e["animation-timing-function"]=n,delete e[t];else{var i=t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();i!==t&&(e[i]=n,delete e[t])}}}),n);N.forEach(function(n){if(i.length>0){var s=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.map(function(e){var t=e.offset,n=[];for(var i in e)e.hasOwnProperty(i)&&"offset"!==i&&n.push("".concat(i,": ").concat(e[i],";"));return"".concat(100*t,"% { ").concat(n.join(" ")," }")}).join(" ")}(i),u=function(e,t,n){var i=function(e){var t=e.getRootNode();return t.head||t}(n),r=o(n),a=i.querySelector("#"+e);if(a)return a;var s=(n.ownerDocument||document).createElement("style");return s.id=e,s.textContent="@".concat(r,"keyframes ").concat(e," { ").concat(t," } @").concat(r,"keyframes ").concat(e,"-alt { ").concat(t," }"),i.appendChild(s),s}(_=void 0!==e?e:function(e){var t=l.indexOf(e);return t<0&&(t=l.push(e)-1),"ion-animation-"+t}(s),s,n);j.push(u),a(n,"animation-duration",ne()+"ms"),a(n,"animation-timing-function",te()),a(n,"animation-delay",re()+"ms"),a(n,"animation-fill-mode",$()),a(n,"animation-direction",ee());var c=ie()===1/0?"infinite":ie().toString();a(n,"animation-iteration-count",c),a(n,"animation-play-state","paused"),t&&a(n,"animation-name",u.id+"-alt"),Object(r.q)(function(){a(n,"animation-name",u.id||null)})}})}(t)),S=!0},se=function(e){if(e=Math.min(Math.max(e,0),.9999),Q)Y.forEach(function(t){t.currentTime=t.effect.getComputedTiming().delay+ne()*e,t.pause()});else{var t="-".concat(ne()*e,"ms");N.forEach(function(e){x.length>0&&(a(e,"animation-delay",t),a(e,"animation-play-state","paused"))})}},le=function(e){Y.forEach(function(e){e.effect.updateTiming({delay:re(),duration:ne(),easing:te(),iterations:ie(),fill:$(),direction:ee()})}),void 0!==e&&se(e)},ue=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1?arguments[1]:void 0;Object(r.q)(function(){N.forEach(function(n){a(n,"animation-name",_||null),a(n,"animation-duration",ne()+"ms"),a(n,"animation-timing-function",te()),a(n,"animation-delay",void 0!==t?"-".concat(t*ne(),"ms"):re()+"ms"),a(n,"animation-fill-mode",$()||null),a(n,"animation-direction",ee()||null);var i=ie()===1/0?"infinite":ie().toString();a(n,"animation-iteration-count",i),e&&a(n,"animation-name",_+"-alt"),Object(r.q)(function(){a(n,"animation-name",_||null)})})})},ce=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2?arguments[2]:void 0;return e&&H.forEach(function(i){i.update(e,t,n)}),Q?le(n):ue(t,n),k},de=function(){S&&(Q?Y.forEach(function(e){e.pause()}):N.forEach(function(e){a(e,"animation-play-state","paused")}))},he=function(){v=void 0,oe()},fe=function(){v&&clearTimeout(v)},pe=function(e){return new Promise(function(t){e&&e.sync&&(I=!0,X(function(){return I=!1},{oneTimeCallback:!0})),S||ae(),L&&(Q?(se(0),le()):ue(),L=!1),F&&(M=H.length+1,F=!1),X(function(){return t()},{oneTimeCallback:!0}),H.forEach(function(e){e.play()}),Q?(Y.forEach(function(e){e.play()}),0!==x.length&&0!==N.length||oe()):function(){if(fe(),Object(r.q)(function(){N.forEach(function(e){x.length>0&&a(e,"animation-play-state","running")})}),0===x.length||0===N.length)oe();else{var e=re()||0,t=ne()||0,n=ie()||1;isFinite(n)&&(v=setTimeout(he,e+t*n+100)),function(e,t){var n,i={passive:!0},o=function(t){e===t.target&&(n&&n(),fe(),Object(r.q)(function(){N.forEach(function(e){s(e,"animation-duration"),s(e,"animation-delay"),s(e,"animation-play-state")}),Object(r.q)(oe)}))};e&&(e.addEventListener("webkitAnimationEnd",o,i),e.addEventListener("animationend",o,i),n=function(){e.removeEventListener("webkitAnimationEnd",o,i),e.removeEventListener("animationend",o,i)})}(N[0])}}()})},ge=function(e,t){var n=x[0];return void 0===n||void 0!==n.offset&&0!==n.offset?x=[d({offset:0},e,t)].concat(y(x)):n[e]=t,k};return k={parentAnimation:g,elements:N,childAnimations:H,id:B,animationFinish:oe,from:ge,to:function(e,t){var n=x[x.length-1];return void 0===n||void 0!==n.offset&&1!==n.offset?x=[].concat(y(x),[d({offset:1},e,t)]):n[e]=t,k},fromTo:function(e,t,n){return ge(e,t).to(e,n)},parent:function(e){return g=e,k},play:pe,pause:function(){return H.forEach(function(e){e.pause()}),de(),k},stop:function(){H.forEach(function(e){e.stop()}),S&&(K(),S=!1),T=!1,I=!1,F=!0,m=void 0,b=void 0,w=void 0,M=0,L=!1,R=!0},destroy:function(e){return H.forEach(function(t){t.destroy(e)}),function(e){K(),e&&J()}(e),N.length=0,H.length=0,x.length=0,V.length=0,z.length=0,S=!1,F=!0,k},keyframes:function(e){return x=e,k},addAnimation:function(e){if(null!=e)if(Array.isArray(e)){var t,n=h(e);try{for(n.s();!(t=n.n()).done;){var i=t.value;i.parent(k),H.push(i)}}catch(r){n.e(r)}finally{n.f()}}else e.parent(k),H.push(e);return k},addElement:function(e){if(null!=e)if(1===e.nodeType)N.push(e);else if(e.length>=0)for(var t=0;t<e.length;t++)N.push(e[t]);else console.error("Invalid addElement value");return k},update:ce,fill:function(e){return f=e,ce(!0),k},direction:function(e){return p=e,ce(!0),k},iterations:function(e){return c=e,ce(!0),k},duration:function(e){return Q||0!==e||(e=1),n=e,ce(!0),k},easing:function(e){return i=e,ce(!0),k},delay:function(e){return t=e,ce(!0),k},getWebAnimations:function(){return Y},getKeyframes:function(){return x},getFill:$,getDirection:ee,getDelay:re,getIterations:ie,getEasing:te,getDuration:ne,afterAddRead:function(e){return G.push(e),k},afterAddWrite:function(e){return q.push(e),k},afterClearStyles:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=h(t);try{for(n.s();!(e=n.n()).done;){var i=e.value;O[i]=""}}catch(r){n.e(r)}finally{n.f()}return k},afterStyles:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return O=e,k},afterRemoveClass:function(e){return D=u(D,e),k},afterAddClass:function(e){return E=u(E,e),k},beforeAddRead:function(e){return U.push(e),k},beforeAddWrite:function(e){return W.push(e),k},beforeClearStyles:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=h(t);try{for(n.s();!(e=n.n()).done;){var i=e.value;P[i]=""}}catch(r){n.e(r)}finally{n.f()}return k},beforeStyles:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return P=e,k},beforeRemoveClass:function(e){return C=u(C,e),k},beforeAddClass:function(e){return A=u(A,e),k},onFinish:X,progressStart:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;return H.forEach(function(n){n.progressStart(e,t)}),de(),T=e,S?ce(!1,!0,t):ae(),k},progressStep:function(e){return H.forEach(function(t){t.progressStep(e)}),se(e),k},progressEnd:function(e,t,n){return T=!1,H.forEach(function(i){i.progressEnd(e,t,n)}),void 0!==n&&(b=n),L=!1,R=!0,0===e?("reverse"===(m="reverse"===ee()?"normal":"reverse")&&(R=!1),Q?(ce(),se(1-t)):(w=(1-t)*ne()*-1,ce(!1,!1))):1===e&&(Q?(ce(),se(t)):(w=t*ne()*-1,ce(!1,!1))),void 0!==e&&(X(function(){b=void 0,m=void 0,w=void 0},{oneTimeCallback:!0}),g||pe()),k}}}},r7QR:function(e,t,n){"use strict";n.d(t,"a",function(){return T});var i,r,o,a,s,l,u,c,d,h,f,p,g,v,m,y,b,w,_,k,A=n("B4Jq"),C=n("1vRN"),S=n("E/Mt"),P=n("meiF"),E=function(e){return Object(P.a)().duration(e?400:300)},D=function(e){var t,n,i=e.width+8,r=Object(P.a)(),o=Object(P.a)();e.isEndSide?(t=i+"px",n="0px"):(t=-i+"px",n="0px"),r.addElement(e.menuInnerEl).fromTo("transform","translateX(".concat(t,")"),"translateX(".concat(n,")"));var a="ios"===Object(S.b)(e),s=a?.2:.25;return o.addElement(e.backdropEl).fromTo("opacity",.01,s),E(a).addAnimation([r,o])},O=function(e){var t,n,i=Object(S.b)(e),r=e.width;e.isEndSide?(t=-r+"px",n=r+"px"):(t=r+"px",n=-r+"px");var o=Object(P.a)().addElement(e.menuInnerEl).fromTo("transform","translateX(".concat(n,")"),"translateX(0px)"),a=Object(P.a)().addElement(e.contentEl).fromTo("transform","translateX(0px)","translateX(".concat(t,")")),s=Object(P.a)().addElement(e.backdropEl).fromTo("opacity",.01,.32);return E("ios"===i).addAnimation([o,a,s])},M=function(e){var t=Object(S.b)(e),n=e.width*(e.isEndSide?-1:1)+"px",i=Object(P.a)().addElement(e.contentEl).fromTo("transform","translateX(0px)","translateX(".concat(n,")"));return E("ios"===t).addAnimation(i)},T=(f=new Map,p=[],g=function(){var e=x(regeneratorRuntime.mark(function e(t){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,k();case 2:return e.abrupt("return","start"===t||"end"===t?_(function(e){return e.side===t&&!e.disabled})||_(function(e){return e.side===t}):null!=t?_(function(e){return e.menuId===t}):_(function(e){return!e.disabled})||(p.length>0?p[0].el:void 0));case 3:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}(),v=function(){var e=x(regeneratorRuntime.mark(function e(){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,k();case 2:return e.abrupt("return",b());case 3:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}(),y=function(e){var t=e.side;p.filter(function(n){return n.side===t&&n!==e}).forEach(function(e){return e.disabled=!0})},b=function(){return _(function(e){return e._isOpen})},w=function(){return p.some(function(e){return e.isAnimating})},_=function(e){var t=p.find(e);if(void 0!==t)return t.el},k=function(){return Promise.all(Array.from(document.querySelectorAll("ion-menu")).map(function(e){return new Promise(function(t){return Object(C.c)(e,t)})}))},(m=function(e,t){f.set(e,t)})("reveal",M),m("push",O),m("overlay",D),"undefined"!=typeof document&&document.addEventListener("ionBackButton",function(e){var t=b();t&&e.detail.register(A.MENU_BACK_BUTTON_PRIORITY,function(){return t.close()})}),{registerAnimation:m,get:g,getMenus:(h=x(regeneratorRuntime.mark(function e(){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,k();case 2:return e.abrupt("return",p.map(function(e){return e.el}));case 3:case"end":return e.stop()}},e)})),function(){return h.apply(this,arguments)}),getOpen:v,isEnabled:(d=x(regeneratorRuntime.mark(function e(t){var n;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,g(t);case 2:return n=e.sent,e.abrupt("return",!!n&&!n.disabled);case 4:case"end":return e.stop()}},e)})),function(e){return d.apply(this,arguments)}),swipeGesture:(c=x(regeneratorRuntime.mark(function e(t,n){var i;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,g(n);case 2:return i=e.sent,e.abrupt("return",(i&&(i.swipeGesture=t),i));case 4:case"end":return e.stop()}},e)})),function(e,t){return c.apply(this,arguments)}),isAnimating:(u=x(regeneratorRuntime.mark(function e(){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,k();case 2:return e.abrupt("return",w());case 3:case"end":return e.stop()}},e)})),function(){return u.apply(this,arguments)}),isOpen:(l=x(regeneratorRuntime.mark(function e(t){var n;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(null==t){e.next=5;break}return e.next=3,g(t);case 3:return n=e.sent,e.abrupt("return",void 0!==n&&n.isOpen());case 5:return e.t0=void 0,e.next=8,v();case 8:return e.t1=e.sent,e.abrupt("return",e.t0!==e.t1);case 10:case"end":return e.stop()}},e)})),function(e){return l.apply(this,arguments)}),enable:(s=x(regeneratorRuntime.mark(function e(t,n){var i;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,g(n);case 2:return i=e.sent,e.abrupt("return",(i&&(i.disabled=!t),i));case 4:case"end":return e.stop()}},e)})),function(e,t){return s.apply(this,arguments)}),toggle:(a=x(regeneratorRuntime.mark(function e(t){var n;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,g(t);case 2:return n=e.sent,e.abrupt("return",!!n&&n.toggle());case 4:case"end":return e.stop()}},e)})),function(e){return a.apply(this,arguments)}),close:(o=x(regeneratorRuntime.mark(function e(t){var n;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,void 0!==t?g(t):v();case 2:return n=e.sent,e.abrupt("return",void 0!==n&&n.close());case 4:case"end":return e.stop()}},e)})),function(e){return o.apply(this,arguments)}),open:(r=x(regeneratorRuntime.mark(function e(t){var n;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,g(t);case 2:return n=e.sent,e.abrupt("return",!!n&&n.open());case 4:case"end":return e.stop()}},e)})),function(e){return r.apply(this,arguments)}),_getOpenSync:b,_createAnimation:function(e,t){var n=f.get(e);if(!n)throw new Error("animation not registered");return n(t)},_register:function(e){p.indexOf(e)<0&&(e.disabled||y(e),p.push(e))},_unregister:function(e){var t=p.indexOf(e);t>-1&&p.splice(t,1)},_setOpen:(i=x(regeneratorRuntime.mark(function e(t,n,i){var r;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!w()){e.next=2;break}return e.abrupt("return",!1);case 2:if(!n){e.next=10;break}return e.next=5,v();case 5:if(r=e.sent,e.t0=r&&t.el!==r,!e.t0){e.next=10;break}return e.next=10,r.setOpen(!1,!1);case 10:return e.abrupt("return",t._setOpen(n,i));case 11:case"end":return e.stop()}},e)})),function(e,t,n){return i.apply(this,arguments)}),_setActiveMenu:y})},wEJo:function(t,n,i){"use strict";i.d(n,"a",function(){return Qe}),i.d(n,"b",function(){return b}),i.d(n,"c",function(){return j}),i.d(n,"d",function(){return C}),i.d(n,"e",function(){return De}),i.d(n,"f",function(){return Ze}),i.d(n,"g",function(){return ce}),i.d(n,"h",function(){return Ye}),i.d(n,"i",function(){return B}),i.d(n,"j",function(){return N}),i.d(n,"k",function(){return ue}),i.d(n,"l",function(){return ye}),i.d(n,"m",function(){return Oe}),i.d(n,"n",function(){return _}),i.d(n,"o",function(){return Ie}),i.d(n,"p",function(){return F}),i.d(n,"q",function(){return v});var o,s,u,c=!1,d=!1,h=!1,p=!1,g=!1,v="undefined"!=typeof window?window:{},b=v.CSS,w=v.document||{head:{}},_={$flags$:0,$resourcesUrl$:"",jmp:function(e){return e()},raf:function(e){return requestAnimationFrame(e)},ael:function(e,t,n,i){return e.addEventListener(t,n,i)},rel:function(e,t,n,i){return e.removeEventListener(t,n,i)},ce:function(e,t){return new CustomEvent(e,t)}},k=(w.head.attachShadow+"").indexOf("[native")>-1,C=function(e){return Promise.resolve(e)},S=function(){try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replace}catch(e){}return!1}(),P=function(e,t,n,i){n&&n.map(function(n){var i=f(n,3),r=i[0],o=i[1],a=i[2],s=D(e,r),l=E(t,a),u=O(r);_.ael(s,o,l,u),(t.$rmListeners$=t.$rmListeners$||[]).push(function(){return _.rel(s,o,l,u)})})},E=function(e,t){return function(n){try{256&e.$flags$?e.$lazyInstance$[t](n):(e.$queuedListeners$=e.$queuedListeners$||[]).push([t,n])}catch(i){Fe(i)}}},D=function(e,t){return 4&t?w:8&t?v:16&t?w.body:e},O=function(e){return 0!=(2&e)},M="http://www.w3.org/1999/xlink",T=new WeakMap,I=function(e,t,n){var i=ze.get(e);S&&n?(i=i||new CSSStyleSheet).replace(t):i=t,ze.set(e,i)},R=function(e,t,n,i){var r=L(t,n),o=ze.get(r);if(e=11===e.nodeType?e:w,o)if("string"==typeof o){var a,s=T.get(e=e.head||e);if(s||T.set(e,s=new Set),!s.has(r)){if(e.host&&(a=e.querySelector('[sty-id="'.concat(r,'"]'))))a.innerHTML=o;else{if(_.$cssShim$){var l=(a=_.$cssShim$.createHostStyle(i,r,o,!!(10&t.$flags$)))["s-sc"];l&&(r=l,s=null)}else(a=w.createElement("style")).innerHTML=o;e.insertBefore(a,e.querySelector("link"))}s&&s.add(r)}}else e.adoptedStyleSheets.includes(o)||(e.adoptedStyleSheets=[].concat(y(e.adoptedStyleSheets),[o]));return r},L=function(e,t){return"sc-"+(t&&32&e.$flags$?e.$tagName$+"-"+t:e.$tagName$)},F=function(e){return Ne.push(e)},B=function(e){return Te(e).$modeName$},V={},z=function(e){return"object"==(e=typeof e)||"function"===e},N=function(e,t){for(var n=null,i=null,r=null,o=!1,a=!1,s=[],l=function t(i){for(var r=0;r<i.length;r++)n=i[r],Array.isArray(n)?t(n):null!=n&&"boolean"!=typeof n&&((o="function"!=typeof e&&!z(n))&&(n=String(n)),o&&a?s[s.length-1].$text$+=n:s.push(o?H(null,n):n),a=o)},u=arguments.length,c=new Array(u>2?u-2:0),d=2;d<u;d++)c[d-2]=arguments[d];if(l(c),t){t.key&&(i=t.key),t.name&&(r=t.name);var h=t.className||t.class;h&&(t.class="object"!=typeof h?h:Object.keys(h).filter(function(e){return h[e]}).join(" "))}if("function"==typeof e)return e(null===t?{}:t,s,U);var f=H(e,null);return f.$attrs$=t,s.length>0&&(f.$children$=s),f.$key$=i,f.$name$=r,f},H=function(e,t){return{$flags$:0,$tag$:e,$text$:t,$elm$:null,$children$:null,$attrs$:null,$key$:null,$name$:null}},j={},U={forEach:function(e,t){return e.map(W).forEach(t)},map:function(e,t){return e.map(W).map(t).map(G)}},W=function(e){return{vattrs:e.$attrs$,vchildren:e.$children$,vkey:e.$key$,vname:e.$name$,vtag:e.$tag$,vtext:e.$text$}},G=function(e){if("function"==typeof e.vtag){var t=Object.assign({},e.vattrs);return e.vkey&&(t.key=e.vkey),e.vname&&(t.name=e.vname),N.apply(void 0,[e.vtag,t].concat(y(e.vchildren||[])))}var n=H(e.vtag,e.vtext);return n.$attrs$=e.vattrs,n.$children$=e.vchildren,n.$key$=e.vkey,n.$name$=e.vname,n},q=function(e,t,n,i,r,o){if(n!==i){var a=Le(e,t),s=t.toLowerCase();if("class"===t){var l=e.classList,u=Z(n),c=Z(i);l.remove.apply(l,y(u.filter(function(e){return e&&!c.includes(e)}))),l.add.apply(l,y(c.filter(function(e){return e&&!u.includes(e)})))}else if("style"===t){for(var d in n)i&&null!=i[d]||(d.includes("-")?e.style.removeProperty(d):e.style[d]="");for(var h in i)n&&i[h]===n[h]||(h.includes("-")?e.style.setProperty(h,i[h]):e.style[h]=i[h])}else if("key"===t);else if("ref"===t)i&&i(e);else if(a||"o"!==t[0]||"n"!==t[1]){var f=z(i);if((a||f&&null!==i)&&!r)try{if(e.tagName.includes("-"))e[t]=i;else{var p=null==i?"":i;"list"===t?a=!1:null!=n&&e[t]==p||(e[t]=p)}}catch(m){}var g=!1;s!==(s=s.replace(/^xlink\:?/,""))&&(t=s,g=!0),null==i||!1===i?!1===i&&""!==e.getAttribute(t)||(g?e.removeAttributeNS(M,t):e.removeAttribute(t)):(!a||4&o||r)&&!f&&(i=!0===i?"":i,g?e.setAttributeNS(M,t,i):e.setAttribute(t,i))}else t="-"===t[2]?t.slice(3):Le(v,s)?s.slice(2):s[2]+t.slice(3),n&&_.rel(e,t,n,!1),i&&_.ael(e,t,i,!1)}},Y=/\s/,Z=function(e){return e?e.split(Y):[]},Q=function(e,t,n,i){var r=11===t.$elm$.nodeType&&t.$elm$.host?t.$elm$.host:t.$elm$,o=e&&e.$attrs$||V,a=t.$attrs$||V;for(i in o)i in a||q(r,i,o[i],void 0,n,t.$flags$);for(i in a)q(r,i,o[i],a[i],n,t.$flags$)},X=function e(t,n,i,r){var a,l,d,f=n.$children$[i],g=0;if(c||(h=!0,"slot"===f.$tag$&&(o&&r.classList.add(o+"-s"),f.$flags$|=f.$children$?2:1)),null!==f.$text$)a=f.$elm$=w.createTextNode(f.$text$);else if(1&f.$flags$)a=f.$elm$=w.createTextNode("");else{if(p||(p="svg"===f.$tag$),a=f.$elm$=w.createElementNS(p?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",2&f.$flags$?"slot-fb":f.$tag$),p&&"foreignObject"===f.$tag$&&(p=!1),Q(null,f,p),null!=o&&a["s-si"]!==o&&a.classList.add(a["s-si"]=o),f.$children$)for(g=0;g<f.$children$.length;++g)(l=e(t,f,g,a))&&a.appendChild(l);"svg"===f.$tag$?p=!1:"foreignObject"===a.tagName&&(p=!0)}return a["s-hn"]=u,3&f.$flags$&&(a["s-sr"]=!0,a["s-cr"]=s,a["s-sn"]=f.$name$||"",(d=t&&t.$children$&&t.$children$[i])&&d.$tag$===f.$tag$&&t.$elm$&&K(t.$elm$,!1)),a},K=function e(t,n){_.$flags$|=1;for(var i=t.childNodes,r=i.length-1;r>=0;r--){var o=i[r];o["s-hn"]!==u&&o["s-ol"]&&(ne(o).insertBefore(o,te(o)),o["s-ol"].remove(),o["s-ol"]=void 0,h=!0),n&&e(o,n)}_.$flags$&=-2},J=function(e,t,n,i,r,o){var a,s=e["s-cr"]&&e["s-cr"].parentNode||e;for(s.shadowRoot&&s.tagName===u&&(s=s.shadowRoot);r<=o;++r)i[r]&&((a=X(null,n,r,e))&&(i[r].$elm$=a,s.insertBefore(a,te(t))))},$=function(e,t,n,i,r){for(;t<=n;++t)(i=e[t])&&(r=i.$elm$,le(i),d=!0,r["s-ol"]?r["s-ol"].remove():K(r,!0),r.remove())},ee=function(e,t){return e.$tag$===t.$tag$&&("slot"===e.$tag$?e.$name$===t.$name$:e.$key$===t.$key$)},te=function(e){return e&&e["s-ol"]||e},ne=function(e){return(e["s-ol"]?e["s-ol"]:e).parentNode},ie=function e(t,n){var i,r=n.$elm$=t.$elm$,o=t.$children$,a=n.$children$,s=n.$tag$,l=n.$text$;null===l?(p="svg"===s||"foreignObject"!==s&&p,"slot"===s||Q(t,n,p),null!==o&&null!==a?function(t,n,i,r){for(var o,a,s=0,l=0,u=0,c=0,d=n.length-1,h=n[0],f=n[d],p=r.length-1,g=r[0],v=r[p];s<=d&&l<=p;)if(null==h)h=n[++s];else if(null==f)f=n[--d];else if(null==g)g=r[++l];else if(null==v)v=r[--p];else if(ee(h,g))e(h,g),h=n[++s],g=r[++l];else if(ee(f,v))e(f,v),f=n[--d],v=r[--p];else if(ee(h,v))"slot"!==h.$tag$&&"slot"!==v.$tag$||K(h.$elm$.parentNode,!1),e(h,v),t.insertBefore(h.$elm$,f.$elm$.nextSibling),h=n[++s],v=r[--p];else if(ee(f,g))"slot"!==h.$tag$&&"slot"!==v.$tag$||K(f.$elm$.parentNode,!1),e(f,g),t.insertBefore(f.$elm$,h.$elm$),f=n[--d],g=r[++l];else{for(u=-1,c=s;c<=d;++c)if(n[c]&&null!==n[c].$key$&&n[c].$key$===g.$key$){u=c;break}u>=0?((a=n[u]).$tag$!==g.$tag$?o=X(n&&n[l],i,u,t):(e(a,g),n[u]=void 0,o=a.$elm$),g=r[++l]):(o=X(n&&n[l],i,l,t),g=r[++l]),o&&ne(h.$elm$).insertBefore(o,te(h.$elm$))}s>d?J(t,null==r[p+1]?null:r[p+1].$elm$,i,r,l,p):l>p&&$(n,s,d)}(r,o,n,a):null!==a?(null!==t.$text$&&(r.textContent=""),J(r,null,n,a,0,a.length-1)):null!==o&&$(o,0,o.length-1),p&&"svg"===s&&(p=!1)):(i=r["s-cr"])?i.parentNode.textContent=l:t.$text$!==l&&(r.data=l)},re=function e(t){var n,i,r,o,a,s,l=t.childNodes;for(i=0,r=l.length;i<r;i++)if(1===(n=l[i]).nodeType){if(n["s-sr"])for(a=n["s-sn"],n.hidden=!1,o=0;o<r;o++)if(s=l[o].nodeType,l[o]["s-hn"]!==n["s-hn"]||""!==a){if(1===s&&a===l[o].getAttribute("slot")){n.hidden=!0;break}}else if(1===s||3===s&&""!==l[o].textContent.trim()){n.hidden=!0;break}e(n)}},oe=[],ae=function e(t){for(var n,i,r,o,a,s,l=0,u=t.childNodes,c=u.length;l<c;l++){if((n=u[l])["s-sr"]&&(i=n["s-cr"])&&i.parentNode)for(r=i.parentNode.childNodes,o=n["s-sn"],s=r.length-1;s>=0;s--)(i=r[s])["s-cn"]||i["s-nr"]||i["s-hn"]===n["s-hn"]||(se(i,o)?(a=oe.find(function(e){return e.$nodeToRelocate$===i}),d=!0,i["s-sn"]=i["s-sn"]||o,a?a.$slotRefNode$=n:oe.push({$slotRefNode$:n,$nodeToRelocate$:i}),i["s-sr"]&&oe.map(function(e){se(e.$nodeToRelocate$,i["s-sn"])&&((a=oe.find(function(e){return e.$nodeToRelocate$===i}))&&!e.$slotRefNode$&&(e.$slotRefNode$=a.$slotRefNode$))})):oe.some(function(e){return e.$nodeToRelocate$===i})||oe.push({$nodeToRelocate$:i}));1===n.nodeType&&e(n)}},se=function(e,t){return 1===e.nodeType?null===e.getAttribute("slot")&&""===t||e.getAttribute("slot")===t:e["s-sn"]===t||""===t},le=function e(t){t.$attrs$&&t.$attrs$.ref&&t.$attrs$.ref(null),t.$children$&&t.$children$.map(e)},ue=function(e){return Te(e).$hostElement$},ce=function(e,t,n){var i=ue(e);return{emit:function(e){return de(i,t,{bubbles:!!(4&n),composed:!!(2&n),cancelable:!!(1&n),detail:e})}}},de=function(e,t,n){var i=_.ce(t,n);return e.dispatchEvent(i),i},he=function(e,t){t&&!e.$onRenderResolve$&&t["s-p"]&&t["s-p"].push(new Promise(function(t){return e.$onRenderResolve$=t}))},fe=function(e,t){if(e.$flags$|=16,!(4&e.$flags$))return he(e,e.$ancestorComponent$),Ze(function(){return pe(e,t)});e.$flags$|=512},pe=function(e,t){var n,i=e.$lazyInstance$;return t&&(e.$flags$|=256,e.$queuedListeners$&&(e.$queuedListeners$.map(function(e){var t=f(e,2),n=t[0],r=t[1];return we(i,n,r)}),e.$queuedListeners$=null),n=we(i,"componentWillLoad")),n=_e(n,function(){return we(i,"componentWillRender")}),_e(n,function(){return ge(e,i,t)})},ge=function(){var e=x(regeneratorRuntime.mark(function e(t,n,i){var r,o,a,s;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:r=t.$hostElement$,o=r["s-rc"],i&&function(e){var t=e.$cmpMeta$,n=e.$hostElement$,i=t.$flags$,r=R(k&&n.shadowRoot?n.shadowRoot:n.getRootNode(),t,e.$modeName$,n);10&i&&(n["s-sc"]=r,n.classList.add(r+"-h"),2&i&&n.classList.add(r+"-s"))}(t),ve(t,n),_.$cssShim$&&_.$cssShim$.updateHost(r),o&&(o.map(function(e){return e()}),r["s-rc"]=void 0),a=r["s-p"],s=function(){return me(t)},0===a.length?s():(Promise.all(a).then(s),t.$flags$|=4,a.length=0);case 4:case"end":return e.stop()}},e)}));return function(t,n,i){return e.apply(this,arguments)}}(),ve=function(e,t,n){try{t=t.render&&t.render(),e.$flags$&=-17,e.$flags$|=2,function(e,t){var n,i=e.$hostElement$,r=e.$cmpMeta$,a=e.$vnode$||H(null,null),l=(n=t)&&n.$tag$===j?t:N(null,null,t);if(u=i.tagName,r.$attrsToReflect$&&(l.$attrs$=l.$attrs$||{},r.$attrsToReflect$.map(function(e){var t=f(e,2),n=t[0],r=t[1];return l.$attrs$[r]=i[n]})),l.$tag$=null,l.$flags$|=4,e.$vnode$=l,l.$elm$=a.$elm$=i.shadowRoot||i,o=i["s-sc"],s=i["s-cr"],c=k&&0!=(1&r.$flags$),d=!1,ie(a,l),_.$flags$|=1,h){var p,g,v,m,y,b;ae(l.$elm$);for(var x=0;x<oe.length;x++)(g=(p=oe[x]).$nodeToRelocate$)["s-ol"]||((v=w.createTextNode(""))["s-nr"]=g,g.parentNode.insertBefore(g["s-ol"]=v,g));for(x=0;x<oe.length;x++)if(g=(p=oe[x]).$nodeToRelocate$,p.$slotRefNode$){for(m=p.$slotRefNode$.parentNode,y=p.$slotRefNode$.nextSibling,v=g["s-ol"];v=v.previousSibling;)if((b=v["s-nr"])&&b["s-sn"]===g["s-sn"]&&m===b.parentNode&&(!(b=b.nextSibling)||!b["s-nr"])){y=b;break}(!y&&m!==g.parentNode||g.nextSibling!==y)&&g!==y&&(!g["s-hn"]&&g["s-ol"]&&(g["s-hn"]=g["s-ol"].parentNode.nodeName),m.insertBefore(g,y))}else 1===g.nodeType&&(g.hidden=!0)}d&&re(l.$elm$),_.$flags$&=-2,oe.length=0}(e,t)}catch(i){Fe(i,e.$hostElement$)}return null},me=function(e){var t=e.$hostElement$,n=e.$lazyInstance$,i=e.$ancestorComponent$;64&e.$flags$?we(n,"componentDidUpdate"):(e.$flags$|=64,ke(t),we(n,"componentDidLoad"),e.$onReadyResolve$(t),i||be()),e.$onInstanceResolve$(t),e.$onRenderResolve$&&(e.$onRenderResolve$(),e.$onRenderResolve$=void 0),512&e.$flags$&&qe(function(){return fe(e,!1)}),e.$flags$&=-517},ye=function(e){var t=Te(e),n=t.$hostElement$.isConnected;return n&&2==(18&t.$flags$)&&fe(t,!1),n},be=function(e){ke(w.documentElement),qe(function(){return de(v,"appload",{detail:{namespace:"ionic"}})})},we=function(e,t,n){if(e&&e[t])try{return e[t](n)}catch(i){Fe(i)}},_e=function(e,t){return e&&e.then?e.then(t):t()},ke=function(e){return e.classList.add("hydrated")},xe=function e(t,n,i,r,o,a,s){var l,u,c,d;if(1===a.nodeType){for((l=a.getAttribute("c-id"))&&((u=l.split("."))[0]!==s&&"0"!==u[0]||(c={$flags$:0,$hostId$:u[0],$nodeId$:u[1],$depth$:u[2],$index$:u[3],$tag$:a.tagName.toLowerCase(),$elm$:a,$attrs$:null,$children$:null,$key$:null,$name$:null,$text$:null},n.push(c),a.removeAttribute("c-id"),t.$children$||(t.$children$=[]),t.$children$[c.$index$]=c,t=c,r&&"0"===c.$depth$&&(r[c.$index$]=c.$elm$))),d=a.childNodes.length-1;d>=0;d--)e(t,n,i,r,o,a.childNodes[d],s);if(a.shadowRoot)for(d=a.shadowRoot.childNodes.length-1;d>=0;d--)e(t,n,i,r,o,a.shadowRoot.childNodes[d],s)}else if(8===a.nodeType)(u=a.nodeValue.split("."))[1]!==s&&"0"!==u[1]||(l=u[0],c={$flags$:0,$hostId$:u[1],$nodeId$:u[2],$depth$:u[3],$index$:u[4],$elm$:a,$attrs$:null,$children$:null,$key$:null,$name$:null,$tag$:null,$text$:null},"t"===l?(c.$elm$=a.nextSibling,c.$elm$&&3===c.$elm$.nodeType&&(c.$text$=c.$elm$.textContent,n.push(c),a.remove(),t.$children$||(t.$children$=[]),t.$children$[c.$index$]=c,r&&"0"===c.$depth$&&(r[c.$index$]=c.$elm$))):c.$hostId$===s&&("s"===l?(c.$tag$="slot",a["s-sn"]=u[5]?c.$name$=u[5]:"",a["s-sr"]=!0,r&&(c.$elm$=w.createElement(c.$tag$),c.$name$&&c.$elm$.setAttribute("name",c.$name$),a.parentNode.insertBefore(c.$elm$,a),a.remove(),"0"===c.$depth$&&(r[c.$index$]=c.$elm$)),i.push(c),t.$children$||(t.$children$=[]),t.$children$[c.$index$]=c):"r"===l&&(r?a.remove():(o["s-cr"]=a,a["s-cn"]=!0))));else if(t&&"style"===t.$tag$){var h=H(null,a.textContent);h.$elm$=a,h.$index$="0",t.$children$=[h]}},Ae=function e(t,n){if(1===t.nodeType){for(var i=0;i<t.childNodes.length;i++)e(t.childNodes[i],n);if(t.shadowRoot)for(i=0;i<t.shadowRoot.childNodes.length;i++)e(t.shadowRoot.childNodes[i],n)}else if(8===t.nodeType){var r=t.nodeValue.split(".");"o"===r[0]&&(n.set(r[1]+"."+r[2],t),t.nodeValue="",t["s-en"]=r[3])}},Ce=function(e,t,n){if(t.$members$){e.watchers&&(t.$watchers$=e.watchers);var i=Object.entries(t.$members$),r=e.prototype;if(i.map(function(e){var i=f(e,2),o=i[0],a=f(i[1],1)[0];31&a||2&n&&32&a?Object.defineProperty(r,o,{get:function(){return e=o,Te(this).$instanceValues$.get(e);var e},set:function(e){var n=this;!function(e,t,i,r){var o,a,s=Te(n),l=s.$hostElement$,u=s.$instanceValues$.get(t),c=s.$flags$,d=s.$lazyInstance$;if(a=r.$members$[t][0],i=null==(o=i)||z(o)?o:4&a?"false"!==o&&(""===o||!!o):2&a?parseFloat(o):1&a?String(o):o,!(8&c&&void 0!==u||i===u)&&(s.$instanceValues$.set(t,i),d)){if(r.$watchers$&&128&c){var h=r.$watchers$[t];h&&h.map(function(e){try{d[e](i,u,t)}catch(n){Fe(n,l)}})}2==(18&c)&&fe(s,!1)}}(0,o,e,t)},configurable:!0,enumerable:!0}):1&n&&64&a&&Object.defineProperty(r,o,{value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var i=Te(this);return i.$onInstancePromise$.then(function(){var e;return(e=i.$lazyInstance$)[o].apply(e,t)})}})}),1&n){var o=new Map;r.attributeChangedCallback=function(e,t,n){var i=this;_.jmp(function(){var t=o.get(e);i[t]=(null!==n||"boolean"!=typeof i[t])&&n})},e.observedAttributes=i.filter(function(e){var t=f(e,2);t[0];return 15&t[1][0]}).map(function(e){var n=f(e,2),i=n[0],r=n[1],a=r[1]||i;return o.set(a,i),512&r[0]&&t.$attrsToReflect$.push([i,a]),a})}}return e},Se=function(e){we(e,"connectedCallback")},Pe=function(e){if(0==(1&_.$flags$)){var t=Te(e),n=t.$cmpMeta$;if(1&t.$flags$)P(e,t,n.$listeners$),Se(t.$lazyInstance$);else{var r;if(t.$flags$|=1,r=e.getAttribute("s-id")){if(k&&1&n.$flags$){var o=R(e.shadowRoot,n,e.getAttribute("s-mode"));e.classList.remove(o+"-h",o+"-s")}!function(e,t,n,i){var r=e.shadowRoot,o=[],a=r?[]:null,s=i.$vnode$=H(t,null);_.$orgLocNodes$||Ae(w.body,_.$orgLocNodes$=new Map),e["s-id"]=n,e.removeAttribute("s-id"),xe(s,o,[],a,e,e,n),o.map(function(e){var n=e.$hostId$+"."+e.$nodeId$,i=_.$orgLocNodes$.get(n),o=e.$elm$;i&&k&&""===i["s-en"]&&i.parentNode.insertBefore(o,i.nextSibling),r||(o["s-hn"]=t,i&&(o["s-ol"]=i,o["s-ol"]["s-nr"]=o)),_.$orgLocNodes$.delete(n)}),r&&a.map(function(e){e&&r.appendChild(e)})}(e,n.$tagName$,r,t)}r||12&n.$flags$&&Ee(e);for(var a=e;a=a.parentNode||a.host;)if(1===a.nodeType&&a.hasAttribute("s-id")&&a["s-p"]||a["s-p"]){he(t,t.$ancestorComponent$=a);break}n.$members$&&Object.entries(n.$members$).map(function(t){var n=f(t,2),i=n[0];if(31&f(n[1],1)[0]&&e.hasOwnProperty(i)){var r=e[i];delete e[i],e[i]=r}}),qe(function(){return(r=x(regeneratorRuntime.mark(function e(t,n,r,o,a){var s,l,u,c,d,h;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(0!=(32&n.$flags$)){e.next=25;break}if(n.$flags$|=32,!(a=Ve(r)).then){e.next=7;break}return s=function(){},e.next=5,a;case 5:a=e.sent,s();case 7:a.isProxied||(r.$watchers$=a.watchers,Ce(a,r,2),a.isProxied=!0),n.$flags$|=8;try{new a(n)}catch(o){Fe(o)}if(n.$flags$&=-9,n.$flags$|=128,Se(n.$lazyInstance$),!a.style){e.next=25;break}if("string"!=typeof(l=a.style)&&(l=l[n.$modeName$=function(e){return Ne.map(function(t){return t(e)}).find(function(e){return!!e})}(t)]),u=L(r,n.$modeName$),ze.has(u)){e.next=25;break}if(c=function(){},e.t0=8&r.$flags$,!e.t0){e.next=23;break}return e.next=22,i.e(56).then(i.bind(null,"JmUR")).then(function(e){return e.scopeCss(l,u,!1)});case 22:l=e.sent;case 23:I(u,l,!!(1&r.$flags$)),c();case 25:d=n.$ancestorComponent$,h=function(){return fe(n,!0)},d&&d["s-rc"]?d["s-rc"].push(h):h();case 27:case"end":return e.stop()}},e)})),function(e,t,n,i,o){return r.apply(this,arguments)})(e,t,n);var r})}}},Ee=function(e){var t=e["s-cr"]=w.createComment("");t["s-cn"]=!0,e.insertBefore(t,e.firstChild)},De=function(t){var n,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=[],s=i.exclude||[],u=v.customElements,c=w.head,d=c.querySelector("meta[charset]"),h=w.createElement("style"),f=[],p=w.querySelectorAll("[sty-id]"),g=!0,y=0;for(Object.assign(_,i),_.$resourcesUrl$=new URL(i.resourcesUrl||"./",w.baseURI).href,_.$flags$|=2;y<p.length;y++)I(p[y].getAttribute("sty-id"),p[y].innerHTML.replace(/\/\*!@([^\/]+)\*\/[^\{]+\{/g,"$1{"),!0);t.map(function(t){return t[1].map(function(i){var c={$flags$:i[0],$tagName$:i[1],$members$:i[2],$listeners$:i[3]};c.$members$=i[2],c.$listeners$=i[3],c.$attrsToReflect$=[],c.$watchers$={},!k&&1&c.$flags$&&(c.$flags$|=8);var d=c.$tagName$,h=function(e){r(i,e);var t=a(i);function i(e){var n;return A(this,i),n=t.call(this,e),Re(e=l(n),c),1&c.$flags$&&(k?e.attachShadow({mode:"open",delegatesFocus:!!(16&c.$flags$)}):"shadowRoot"in e||(e.shadowRoot=e)),n}return m(i,[{key:"connectedCallback",value:function(){var e=this;n&&(clearTimeout(n),n=null),g?f.push(this):_.jmp(function(){return Pe(e)})}},{key:"disconnectedCallback",value:function(){var e=this;_.jmp(function(){return function(e){if(0==(1&_.$flags$)){var t=Te(e),n=t.$lazyInstance$;t.$rmListeners$&&(t.$rmListeners$.map(function(e){return e()}),t.$rmListeners$=void 0),_.$cssShim$&&_.$cssShim$.removeHost(e),we(n,"disconnectedCallback")}}(e)})}},{key:"componentOnReady",value:function(){return Te(this).$onReadyPromise$}}]),i}(e(HTMLElement));c.$lazyBundleId$=t[0],s.includes(d)||u.get(d)||(o.push(d),u.define(d,Ce(h,c,1)))})}),h.innerHTML=o+"{visibility:hidden}.hydrated{visibility:inherit}",h.setAttribute("data-styles",""),c.insertBefore(h,d?d.nextSibling:c.firstChild),g=!1,f.length?f.map(function(e){return e.connectedCallback()}):_.jmp(function(){return n=setTimeout(be,30)})},Oe=function(e){var t=new URL(e,_.$resourcesUrl$);return t.origin!==v.location.origin?t.href:t.pathname},Me=new WeakMap,Te=function(e){return Me.get(e)},Ie=function(e,t){return Me.set(t.$lazyInstance$=e,t)},Re=function(e,t){var n={$flags$:0,$hostElement$:e,$cmpMeta$:t,$instanceValues$:new Map};return n.$onInstancePromise$=new Promise(function(e){return n.$onInstanceResolve$=e}),n.$onReadyPromise$=new Promise(function(e){return n.$onReadyResolve$=e}),e["s-p"]=[],e["s-rc"]=[],P(e,n,t.$listeners$),Me.set(e,n)},Le=function(e,t){return t in e},Fe=function(e,t){return(0,console.error)(e,t)},Be=new Map,Ve=function(e,t,n){var r=e.$tagName$.replace(/-/g,"_"),o=e.$lazyBundleId$,a=Be.get(o);return a?a[r]:i("kLfG")("./".concat(o,".entry.js")).then(function(e){return Be.set(o,e),e[r]},Fe)},ze=new Map,Ne=[],He=[],je=[],Ue=function(e,t){return function(n){e.push(n),g||(g=!0,t&&4&_.$flags$?qe(Ge):_.raf(Ge))}},We=function(e){for(var t=0;t<e.length;t++)try{e[t](performance.now())}catch(n){Fe(n)}e.length=0},Ge=function e(){We(He),We(je),(g=He.length>0)&&_.raf(e)},qe=function(e){return C().then(e)},Ye=Ue(He,!1),Ze=Ue(je,!0),Qe={isDev:!1,isBrowser:!0,isServer:!1,isTesting:!1}},y08P:function(e,t,n){"use strict";n.d(t,"a",function(){return o});var i=function(){function e(t,n,i,r,o){A(this,e),this.id=n,this.name=i,this.disableScroll=o,this.priority=1e6*r+n,this.ctrl=t}return m(e,[{key:"canStart",value:function(){return!!this.ctrl&&this.ctrl.canStart(this.name)}},{key:"start",value:function(){return!!this.ctrl&&this.ctrl.start(this.name,this.id,this.priority)}},{key:"capture",value:function(){if(!this.ctrl)return!1;var e=this.ctrl.capture(this.name,this.id,this.priority);return e&&this.disableScroll&&this.ctrl.disableScroll(this.id),e}},{key:"release",value:function(){this.ctrl&&(this.ctrl.release(this.id),this.disableScroll&&this.ctrl.enableScroll(this.id))}},{key:"destroy",value:function(){this.release(),this.ctrl=void 0}}]),e}(),r=function(){function e(t,n,i,r){A(this,e),this.id=n,this.disable=i,this.disableScroll=r,this.ctrl=t}return m(e,[{key:"block",value:function(){if(this.ctrl){if(this.disable){var e,t=h(this.disable);try{for(t.s();!(e=t.n()).done;){var n=e.value;this.ctrl.disableGesture(n,this.id)}}catch(i){t.e(i)}finally{t.f()}}this.disableScroll&&this.ctrl.disableScroll(this.id)}}},{key:"unblock",value:function(){if(this.ctrl){if(this.disable){var e,t=h(this.disable);try{for(t.s();!(e=t.n()).done;){var n=e.value;this.ctrl.enableGesture(n,this.id)}}catch(i){t.e(i)}finally{t.f()}}this.disableScroll&&this.ctrl.enableScroll(this.id)}}},{key:"destroy",value:function(){this.unblock(),this.ctrl=void 0}}]),e}(),o=new(function(){function e(){A(this,e),this.gestureId=0,this.requestedStart=new Map,this.disabledGestures=new Map,this.disabledScroll=new Set}return m(e,[{key:"createGesture",value:function(e){return new i(this,this.newID(),e.name,e.priority||0,!!e.disableScroll)}},{key:"createBlocker",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new r(this,this.newID(),e.disable,!!e.disableScroll)}},{key:"start",value:function(e,t,n){return this.canStart(e)?(this.requestedStart.set(t,n),!0):(this.requestedStart.delete(t),!1)}},{key:"capture",value:function(e,t,n){if(!this.start(e,t,n))return!1;var i=this.requestedStart,r=-1e4;if(i.forEach(function(e){r=Math.max(r,e)}),r===n){this.capturedId=t,i.clear();var o=new CustomEvent("ionGestureCaptured",{detail:{gestureName:e}});return document.dispatchEvent(o),!0}return i.delete(t),!1}},{key:"release",value:function(e){this.requestedStart.delete(e),this.capturedId===e&&(this.capturedId=void 0)}},{key:"disableGesture",value:function(e,t){var n=this.disabledGestures.get(e);void 0===n&&(n=new Set,this.disabledGestures.set(e,n)),n.add(t)}},{key:"enableGesture",value:function(e,t){var n=this.disabledGestures.get(e);void 0!==n&&n.delete(t)}},{key:"disableScroll",value:function(e){this.disabledScroll.add(e),1===this.disabledScroll.size&&document.body.classList.add("backdrop-no-scroll")}},{key:"enableScroll",value:function(e){this.disabledScroll.delete(e),0===this.disabledScroll.size&&document.body.classList.remove("backdrop-no-scroll")}},{key:"canStart",value:function(e){return void 0===this.capturedId&&!this.isDisabled(e)}},{key:"isCaptured",value:function(){return void 0!==this.capturedId}},{key:"isScrollDisabled",value:function(){return this.disabledScroll.size>0}},{key:"isDisabled",value:function(e){var t=this.disabledGestures.get(e);return!!(t&&t.size>0)}},{key:"newID",value:function(){return this.gestureId++,this.gestureId}}]),e}())}},[[0,1]]])}();
\ No newline at end of file