/* Minification failed. Returning unminified contents.
(1,3-4): run-time error JS1195: Expected expression: )
(1,5-6): run-time error JS1195: Expected expression: >
(1,220-221): run-time error JS1195: Expected expression: >
(1,270-271): run-time error JS1010: Expected identifier: [
(1,302-303): run-time error JS1006: Expected ')': ;
(1,306-307): run-time error JS1004: Expected ';': )
(1,376-377): run-time error JS1197: Too many errors. The file might not be a JavaScript file: :
 */
(()=>{"use strict";var e,r={},t={};function o(e){var n=t[e];if(void 0!==n)return n.exports;var l=t[e]={id:e,loaded:!1,exports:{}};return r[e].call(l.exports,l,l.exports,o),l.loaded=!0,l.exports}o.m=r,e=[],o.O=(r,t,n,l)=>{if(!t){var i=1/0;for(c=0;c<e.length;c++){for(var[t,n,l]=e[c],a=!0,p=0;p<t.length;p++)(!1&l||i>=l)&&Object.keys(o.O).every(e=>o.O[e](t[p]))?t.splice(p--,1):(a=!1,l<i&&(i=l));a&&(e.splice(c--,1),r=n())}return r}l=l||0;for(var c=e.length;c>0&&e[c-1][2]>l;c--)e[c]=e[c-1];e[c]=[t,n,l]},o.d=(e,r)=>{for(var t in r)o.o(r,t)&&!o.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},o.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e={666:0};o.O.j=r=>0===e[r];var r=(r,t)=>{var n,l,[i,a,p]=t,c=0;for(n in a)o.o(a,n)&&(o.m[n]=a[n]);if(p)var d=p(o);for(r&&r(t);c<i.length;c++)o.o(e,l=i[c])&&e[l]&&e[l][0](),e[i[c]]=0;return o.O(d)},t=self.webpackChunkmitracking_public=self.webpackChunkmitracking_public||[];t.forEach(r.bind(null,0)),t.push=r.bind(null,t.push.bind(t))})()})();;
(self.webpackChunkmitracking_public=self.webpackChunkmitracking_public||[]).push([[429],{277:()=>{"use strict";!function(e){const t=e.performance;function n(e){t&&t.mark&&t.mark(e)}function o(e,n){t&&t.measure&&t.measure(e,n)}n("Zone");const r=e.__Zone_symbol_prefix||"__zone_symbol__";function s(e){return r+e}const a=!0===e[s("forceDuplicateZoneCheck")];if(e.Zone){if(a||"function"!=typeof e.Zone.__symbol__)throw new Error("Zone already loaded.");return e.Zone}let i=(()=>{class t{constructor(e,t){this._parent=e,this._name=t?t.name||"unnamed":"<root>",this._properties=t&&t.properties||{},this._zoneDelegate=new l(this,this._parent&&this._parent._zoneDelegate,t)}static assertZonePatched(){if(e.Promise!==O.ZoneAwarePromise)throw new Error("Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten.\nMost likely cause is that a Promise polyfill has been loaded after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. If you must load one, do so before loading zone.js.)")}static get root(){let e=t.current;for(;e.parent;)e=e.parent;return e}static get current(){return z.zone}static get currentTask(){return j}static __load_patch(r,s,i=!1){if(O.hasOwnProperty(r)){if(!i&&a)throw Error("Already loaded patch: "+r)}else if(!e["__Zone_disable_"+r]){const a="Zone:"+r;n(a),O[r]=s(e,t,C),o(a,a)}}get parent(){return this._parent}get name(){return this._name}get(e){const t=this.getZoneWith(e);if(t)return t._properties[e]}getZoneWith(e){let t=this;for(;t;){if(t._properties.hasOwnProperty(e))return t;t=t._parent}return null}fork(e){if(!e)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,e)}wrap(e,t){if("function"!=typeof e)throw new Error("Expecting function got: "+e);const n=this._zoneDelegate.intercept(this,e,t),o=this;return function(){return o.runGuarded(n,this,arguments,t)}}run(e,t,n,o){z={parent:z,zone:this};try{return this._zoneDelegate.invoke(this,e,t,n,o)}finally{z=z.parent}}runGuarded(e,t=null,n,o){z={parent:z,zone:this};try{try{return this._zoneDelegate.invoke(this,e,t,n,o)}catch(r){if(this._zoneDelegate.handleError(this,r))throw r}}finally{z=z.parent}}runTask(e,t,n){if(e.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(e.zone||y).name+"; Execution: "+this.name+")");if(e.state===b&&(e.type===P||e.type===D))return;const o=e.state!=E;o&&e._transitionTo(E,T),e.runCount++;const r=j;j=e,z={parent:z,zone:this};try{e.type==D&&e.data&&!e.data.isPeriodic&&(e.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,e,t,n)}catch(s){if(this._zoneDelegate.handleError(this,s))throw s}}finally{e.state!==b&&e.state!==Z&&(e.type==P||e.data&&e.data.isPeriodic?o&&e._transitionTo(T,E):(e.runCount=0,this._updateTaskCount(e,-1),o&&e._transitionTo(b,E,b))),z=z.parent,j=r}}scheduleTask(e){if(e.zone&&e.zone!==this){let t=this;for(;t;){if(t===e.zone)throw Error(`can not reschedule task to ${this.name} which is descendants of the original zone ${e.zone.name}`);t=t.parent}}e._transitionTo(v,b);const t=[];e._zoneDelegates=t,e._zone=this;try{e=this._zoneDelegate.scheduleTask(this,e)}catch(n){throw e._transitionTo(Z,v,b),this._zoneDelegate.handleError(this,n),n}return e._zoneDelegates===t&&this._updateTaskCount(e,1),e.state==v&&e._transitionTo(T,v),e}scheduleMicroTask(e,t,n,o){return this.scheduleTask(new u(S,e,t,n,o,void 0))}scheduleMacroTask(e,t,n,o,r){return this.scheduleTask(new u(D,e,t,n,o,r))}scheduleEventTask(e,t,n,o,r){return this.scheduleTask(new u(P,e,t,n,o,r))}cancelTask(e){if(e.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(e.zone||y).name+"; Execution: "+this.name+")");e._transitionTo(w,T,E);try{this._zoneDelegate.cancelTask(this,e)}catch(t){throw e._transitionTo(Z,w),this._zoneDelegate.handleError(this,t),t}return this._updateTaskCount(e,-1),e._transitionTo(b,w),e.runCount=0,e}_updateTaskCount(e,t){const n=e._zoneDelegates;-1==t&&(e._zoneDelegates=null);for(let o=0;o<n.length;o++)n[o]._updateTaskCount(e.type,t)}}return t.__symbol__=s,t})();const c={name:"",onHasTask:(e,t,n,o)=>e.hasTask(n,o),onScheduleTask:(e,t,n,o)=>e.scheduleTask(n,o),onInvokeTask:(e,t,n,o,r,s)=>e.invokeTask(n,o,r,s),onCancelTask:(e,t,n,o)=>e.cancelTask(n,o)};class l{constructor(e,t,n){this._taskCounts={microTask:0,macroTask:0,eventTask:0},this.zone=e,this._parentDelegate=t,this._forkZS=n&&(n&&n.onFork?n:t._forkZS),this._forkDlgt=n&&(n.onFork?t:t._forkDlgt),this._forkCurrZone=n&&(n.onFork?this.zone:t._forkCurrZone),this._interceptZS=n&&(n.onIntercept?n:t._interceptZS),this._interceptDlgt=n&&(n.onIntercept?t:t._interceptDlgt),this._interceptCurrZone=n&&(n.onIntercept?this.zone:t._interceptCurrZone),this._invokeZS=n&&(n.onInvoke?n:t._invokeZS),this._invokeDlgt=n&&(n.onInvoke?t:t._invokeDlgt),this._invokeCurrZone=n&&(n.onInvoke?this.zone:t._invokeCurrZone),this._handleErrorZS=n&&(n.onHandleError?n:t._handleErrorZS),this._handleErrorDlgt=n&&(n.onHandleError?t:t._handleErrorDlgt),this._handleErrorCurrZone=n&&(n.onHandleError?this.zone:t._handleErrorCurrZone),this._scheduleTaskZS=n&&(n.onScheduleTask?n:t._scheduleTaskZS),this._scheduleTaskDlgt=n&&(n.onScheduleTask?t:t._scheduleTaskDlgt),this._scheduleTaskCurrZone=n&&(n.onScheduleTask?this.zone:t._scheduleTaskCurrZone),this._invokeTaskZS=n&&(n.onInvokeTask?n:t._invokeTaskZS),this._invokeTaskDlgt=n&&(n.onInvokeTask?t:t._invokeTaskDlgt),this._invokeTaskCurrZone=n&&(n.onInvokeTask?this.zone:t._invokeTaskCurrZone),this._cancelTaskZS=n&&(n.onCancelTask?n:t._cancelTaskZS),this._cancelTaskDlgt=n&&(n.onCancelTask?t:t._cancelTaskDlgt),this._cancelTaskCurrZone=n&&(n.onCancelTask?this.zone:t._cancelTaskCurrZone),this._hasTaskZS=null,this._hasTaskDlgt=null,this._hasTaskDlgtOwner=null,this._hasTaskCurrZone=null;const o=n&&n.onHasTask;(o||t&&t._hasTaskZS)&&(this._hasTaskZS=o?n:c,this._hasTaskDlgt=t,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=e,n.onScheduleTask||(this._scheduleTaskZS=c,this._scheduleTaskDlgt=t,this._scheduleTaskCurrZone=this.zone),n.onInvokeTask||(this._invokeTaskZS=c,this._invokeTaskDlgt=t,this._invokeTaskCurrZone=this.zone),n.onCancelTask||(this._cancelTaskZS=c,this._cancelTaskDlgt=t,this._cancelTaskCurrZone=this.zone))}fork(e,t){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,e,t):new i(e,t)}intercept(e,t,n){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,e,t,n):t}invoke(e,t,n,o,r){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,e,t,n,o,r):t.apply(n,o)}handleError(e,t){return!this._handleErrorZS||this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,e,t)}scheduleTask(e,t){let n=t;if(this._scheduleTaskZS)this._hasTaskZS&&n._zoneDelegates.push(this._hasTaskDlgtOwner),n=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,e,t),n||(n=t);else if(t.scheduleFn)t.scheduleFn(t);else{if(t.type!=S)throw new Error("Task is missing scheduleFn.");_(t)}return n}invokeTask(e,t,n,o){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,e,t,n,o):t.callback.apply(n,o)}cancelTask(e,t){let n;if(this._cancelTaskZS)n=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,e,t);else{if(!t.cancelFn)throw Error("Task is not cancelable");n=t.cancelFn(t)}return n}hasTask(e,t){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,e,t)}catch(n){this.handleError(e,n)}}_updateTaskCount(e,t){const n=this._taskCounts,o=n[e],r=n[e]=o+t;if(r<0)throw new Error("More tasks executed then were scheduled.");0!=o&&0!=r||this.hasTask(this.zone,{microTask:n.microTask>0,macroTask:n.macroTask>0,eventTask:n.eventTask>0,change:e})}}class u{constructor(t,n,o,r,s,a){if(this._zone=null,this.runCount=0,this._zoneDelegates=null,this._state="notScheduled",this.type=t,this.source=n,this.data=r,this.scheduleFn=s,this.cancelFn=a,!o)throw new Error("callback is not defined");this.callback=o;const i=this;this.invoke=t===P&&r&&r.useG?u.invokeTask:function(){return u.invokeTask.call(e,i,this,arguments)}}static invokeTask(e,t,n){e||(e=this),I++;try{return e.runCount++,e.zone.runTask(e,t,n)}finally{1==I&&m(),I--}}get zone(){return this._zone}get state(){return this._state}cancelScheduleRequest(){this._transitionTo(b,v)}_transitionTo(e,t,n){if(this._state!==t&&this._state!==n)throw new Error(`${this.type} '${this.source}': can not transition to '${e}', expecting state '${t}'${n?" or '"+n+"'":""}, was '${this._state}'.`);this._state=e,e==b&&(this._zoneDelegates=null)}toString(){return this.data&&void 0!==this.data.handleId?this.data.handleId.toString():Object.prototype.toString.call(this)}toJSON(){return{type:this.type,state:this.state,source:this.source,zone:this.zone.name,runCount:this.runCount}}}const h=s("setTimeout"),p=s("Promise"),f=s("then");let d,g=[],k=!1;function _(t){if(0===I&&0===g.length)if(d||e[p]&&(d=e[p].resolve(0)),d){let e=d[f];e||(e=d.then),e.call(d,m)}else e[h](m,0);t&&g.push(t)}function m(){if(!k){for(k=!0;g.length;){const t=g;g=[];for(let n=0;n<t.length;n++){const o=t[n];try{o.zone.runTask(o,null,null)}catch(e){C.onUnhandledError(e)}}}C.microtaskDrainDone(),k=!1}}const y={name:"NO ZONE"},b="notScheduled",v="scheduling",T="scheduled",E="running",w="canceling",Z="unknown",S="microTask",D="macroTask",P="eventTask",O={},C={symbol:s,currentZoneFrame:()=>z,onUnhandledError:R,microtaskDrainDone:R,scheduleMicroTask:_,showUncaughtError:()=>!i[s("ignoreConsoleErrorUncaughtError")],patchEventTarget:()=>[],patchOnProperties:R,patchMethod:()=>R,bindArguments:()=>[],patchThen:()=>R,patchMacroTask:()=>R,patchEventPrototype:()=>R,isIEOrEdge:()=>!1,getGlobalObjects:()=>{},ObjectDefineProperty:()=>R,ObjectGetOwnPropertyDescriptor:()=>{},ObjectCreate:()=>{},ArraySlice:()=>[],patchClass:()=>R,wrapWithCurrentZone:()=>R,filterProperties:()=>[],attachOriginToPatched:()=>R,_redefineProperty:()=>R,patchCallbacks:()=>R};let z={parent:null,zone:new i(null,null)},j=null,I=0;function R(){}o("Zone","Zone"),e.Zone=i}("undefined"!=typeof window&&window||"undefined"!=typeof self&&self||global);const e=Object.getOwnPropertyDescriptor,t=Object.defineProperty,n=Object.getPrototypeOf,o=Object.create,r=Array.prototype.slice,s="addEventListener",a="removeEventListener",i=Zone.__symbol__(s),c=Zone.__symbol__(a),l="true",u="false",h=Zone.__symbol__("");function p(e,t){return Zone.current.wrap(e,t)}function f(e,t,n,o,r){return Zone.current.scheduleMacroTask(e,t,n,o,r)}const d=Zone.__symbol__,g="undefined"!=typeof window,k=g?window:void 0,_=g&&k||"object"==typeof self&&self||global,m=[null];function y(e,t){for(let n=e.length-1;n>=0;n--)"function"==typeof e[n]&&(e[n]=p(e[n],t+"_"+n));return e}function b(e){return!e||!1!==e.writable&&!("function"==typeof e.get&&void 0===e.set)}const v="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope,T=!("nw"in _)&&void 0!==_.process&&"[object process]"==={}.toString.call(_.process),E=!T&&!v&&!(!g||!k.HTMLElement),w=void 0!==_.process&&"[object process]"==={}.toString.call(_.process)&&!v&&!(!g||!k.HTMLElement),Z={},S=function(e){if(!(e=e||_.event))return;let t=Z[e.type];t||(t=Z[e.type]=d("ON_PROPERTY"+e.type));const n=this||e.target||_,o=n[t];let r;if(E&&n===k&&"error"===e.type){const t=e;r=o&&o.call(this,t.message,t.filename,t.lineno,t.colno,t.error),!0===r&&e.preventDefault()}else r=o&&o.apply(this,arguments),null==r||r||e.preventDefault();return r};function D(n,o,r){let s=e(n,o);if(!s&&r&&e(r,o)&&(s={enumerable:!0,configurable:!0}),!s||!s.configurable)return;const a=d("on"+o+"patched");if(n.hasOwnProperty(a)&&n[a])return;delete s.writable,delete s.value;const i=s.get,c=s.set,l=o.substr(2);let u=Z[l];u||(u=Z[l]=d("ON_PROPERTY"+l)),s.set=function(e){let t=this;t||n!==_||(t=_),t&&(t[u]&&t.removeEventListener(l,S),c&&c.apply(t,m),"function"==typeof e?(t[u]=e,t.addEventListener(l,S,!1)):t[u]=null)},s.get=function(){let e=this;if(e||n!==_||(e=_),!e)return null;const t=e[u];if(t)return t;if(i){let t=i&&i.call(this);if(t)return s.set.call(this,t),"function"==typeof e.removeAttribute&&e.removeAttribute(o),t}return null},t(n,o,s),n[a]=!0}function P(e,t,n){if(t)for(let o=0;o<t.length;o++)D(e,"on"+t[o],n);else{const t=[];for(const n in e)"on"==n.substr(0,2)&&t.push(n);for(let o=0;o<t.length;o++)D(e,t[o],n)}}const O=d("originalInstance");function C(e){const n=_[e];if(!n)return;_[d(e)]=n,_[e]=function(){const t=y(arguments,e);switch(t.length){case 0:this[O]=new n;break;case 1:this[O]=new n(t[0]);break;case 2:this[O]=new n(t[0],t[1]);break;case 3:this[O]=new n(t[0],t[1],t[2]);break;case 4:this[O]=new n(t[0],t[1],t[2],t[3]);break;default:throw new Error("Arg list too long.")}},I(_[e],n);const o=new n(function(){});let r;for(r in o)"XMLHttpRequest"===e&&"responseBlob"===r||function(n){"function"==typeof o[n]?_[e].prototype[n]=function(){return this[O][n].apply(this[O],arguments)}:t(_[e].prototype,n,{set:function(t){"function"==typeof t?(this[O][n]=p(t,e+"."+n),I(this[O][n],t)):this[O][n]=t},get:function(){return this[O][n]}})}(r);for(r in n)"prototype"!==r&&n.hasOwnProperty(r)&&(_[e][r]=n[r])}function z(t,o,r){let s=t;for(;s&&!s.hasOwnProperty(o);)s=n(s);!s&&t[o]&&(s=t);const a=d(o);let i=null;if(s&&(!(i=s[a])||!s.hasOwnProperty(a))&&(i=s[a]=s[o],b(s&&e(s,o)))){const e=r(i,a,o);s[o]=function(){return e(this,arguments)},I(s[o],i)}return i}function j(e,t,n){let o=null;function r(e){const t=e.data;return t.args[t.cbIdx]=function(){e.invoke.apply(this,arguments)},o.apply(t.target,t.args),e}o=z(e,t,e=>function(t,o){const s=n(t,o);return s.cbIdx>=0&&"function"==typeof o[s.cbIdx]?f(s.name,o[s.cbIdx],s,r):e.apply(t,o)})}function I(e,t){e[d("OriginalDelegate")]=t}let R=!1,M=!1;function N(){try{const e=k.navigator.userAgent;if(-1!==e.indexOf("MSIE ")||-1!==e.indexOf("Trident/"))return!0}catch(e){}return!1}function x(){if(R)return M;R=!0;try{const e=k.navigator.userAgent;-1===e.indexOf("MSIE ")&&-1===e.indexOf("Trident/")&&-1===e.indexOf("Edge/")||(M=!0)}catch(e){}return M}Zone.__load_patch("ZoneAwarePromise",(e,t,n)=>{const o=Object.getOwnPropertyDescriptor,r=Object.defineProperty,s=n.symbol,a=[],i=!0===e[s("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")],c=s("Promise"),l=s("then");n.onUnhandledError=e=>{if(n.showUncaughtError()){const t=e&&e.rejection;t?console.error("Unhandled Promise rejection:",t instanceof Error?t.message:t,"; Zone:",e.zone.name,"; Task:",e.task&&e.task.source,"; Value:",t,t instanceof Error?t.stack:void 0):console.error(e)}},n.microtaskDrainDone=()=>{for(;a.length;){const t=a.shift();try{t.zone.runGuarded(()=>{if(t.throwOriginal)throw t.rejection;throw t})}catch(e){h(e)}}};const u=s("unhandledPromiseRejectionHandler");function h(e){n.onUnhandledError(e);try{const n=t[u];"function"==typeof n&&n.call(this,e)}catch(o){}}function p(e){return e&&e.then}function f(e){return e}function d(e){return C.reject(e)}const g=s("state"),k=s("value"),_=s("finally"),m=s("parentPromiseValue"),y=s("parentPromiseState"),b=null,v=!0,T=!1;function E(e,t){return n=>{try{Z(e,t,n)}catch(o){Z(e,!1,o)}}}const w=s("currentTaskTrace");function Z(e,o,s){const c=function(){let e=!1;return function(t){return function(){e||(e=!0,t.apply(null,arguments))}}}();if(e===s)throw new TypeError("Promise resolved with itself");if(e[g]===b){let h=null;try{"object"!=typeof s&&"function"!=typeof s||(h=s&&s.then)}catch(u){return c(()=>{Z(e,!1,u)})(),e}if(o!==T&&s instanceof C&&s.hasOwnProperty(g)&&s.hasOwnProperty(k)&&s[g]!==b)D(s),Z(e,s[g],s[k]);else if(o!==T&&"function"==typeof h)try{h.call(s,c(E(e,o)),c(E(e,!1)))}catch(u){c(()=>{Z(e,!1,u)})()}else{e[g]=o;const c=e[k];if(e[k]=s,e[_]===_&&o===v&&(e[g]=e[y],e[k]=e[m]),o===T&&s instanceof Error){const e=t.currentTask&&t.currentTask.data&&t.currentTask.data.__creationTrace__;e&&r(s,w,{configurable:!0,enumerable:!1,writable:!0,value:e})}for(let t=0;t<c.length;)P(e,c[t++],c[t++],c[t++],c[t++]);if(0==c.length&&o==T){e[g]=0;let o=s;try{throw new Error("Uncaught (in promise): "+((l=s)&&l.toString===Object.prototype.toString?(l.constructor&&l.constructor.name||"")+": "+JSON.stringify(l):l?l.toString():Object.prototype.toString.call(l))+(s&&s.stack?"\n"+s.stack:""))}catch(u){o=u}i&&(o.throwOriginal=!0),o.rejection=s,o.promise=e,o.zone=t.current,o.task=t.currentTask,a.push(o),n.scheduleMicroTask()}}}var l;return e}const S=s("rejectionHandledHandler");function D(e){if(0===e[g]){try{const n=t[S];n&&"function"==typeof n&&n.call(this,{rejection:e[k],promise:e})}catch(n){}e[g]=T;for(let t=0;t<a.length;t++)e===a[t].promise&&a.splice(t,1)}}function P(e,t,n,o,r){D(e);const s=e[g],a=s?"function"==typeof o?o:f:"function"==typeof r?r:d;t.scheduleMicroTask("Promise.then",()=>{try{const o=e[k],r=!!n&&_===n[_];r&&(n[m]=o,n[y]=s);const i=t.run(a,void 0,r&&a!==d&&a!==f?[]:[o]);Z(n,!0,i)}catch(o){Z(n,!1,o)}},n)}const O=function(){};class C{static toString(){return"function ZoneAwarePromise() { [native code] }"}static resolve(e){return Z(new this(null),v,e)}static reject(e){return Z(new this(null),T,e)}static race(e){let t,n,o=new this((e,o)=>{t=e,n=o});function r(e){t(e)}function s(e){n(e)}for(let a of e)p(a)||(a=this.resolve(a)),a.then(r,s);return o}static all(e){return C.allWithCallback(e)}static allSettled(e){return(this&&this.prototype instanceof C?this:C).allWithCallback(e,{thenCallback:e=>({status:"fulfilled",value:e}),errorCallback:e=>({status:"rejected",reason:e})})}static allWithCallback(e,t){let n,o,r=new this((e,t)=>{n=e,o=t}),s=2,a=0;const i=[];for(let l of e){p(l)||(l=this.resolve(l));const e=a;try{l.then(o=>{i[e]=t?t.thenCallback(o):o,s--,0===s&&n(i)},r=>{t?(i[e]=t.errorCallback(r),s--,0===s&&n(i)):o(r)})}catch(c){o(c)}s++,a++}return s-=2,0===s&&n(i),r}constructor(e){const t=this;if(!(t instanceof C))throw new Error("Must be an instanceof Promise.");t[g]=b,t[k]=[];try{e&&e(E(t,v),E(t,T))}catch(n){Z(t,!1,n)}}get[Symbol.toStringTag](){return"Promise"}get[Symbol.species](){return C}then(e,n){let o=this.constructor[Symbol.species];o&&"function"==typeof o||(o=this.constructor||C);const r=new o(O),s=t.current;return this[g]==b?this[k].push(s,r,e,n):P(this,s,r,e,n),r}catch(e){return this.then(null,e)}finally(e){let n=this.constructor[Symbol.species];n&&"function"==typeof n||(n=C);const o=new n(O);o[_]=_;const r=t.current;return this[g]==b?this[k].push(r,o,e,e):P(this,r,o,e,e),o}}C.resolve=C.resolve,C.reject=C.reject,C.race=C.race,C.all=C.all;const j=e[c]=e.Promise;e.Promise=C;const I=s("thenPatched");function R(e){const t=e.prototype,n=o(t,"then");if(n&&(!1===n.writable||!n.configurable))return;const r=t.then;t[l]=r,e.prototype.then=function(e,t){return new C((e,t)=>{r.call(this,e,t)}).then(e,t)},e[I]=!0}return n.patchThen=R,j&&(R(j),z(e,"fetch",e=>{return t=e,function(e,n){let o=t.apply(e,n);if(o instanceof C)return o;let r=o.constructor;return r[I]||R(r),o};var t})),Promise[t.__symbol__("uncaughtPromiseErrors")]=a,C}),Zone.__load_patch("toString",e=>{const t=Function.prototype.toString,n=d("OriginalDelegate"),o=d("Promise"),r=d("Error"),s=function(){if("function"==typeof this){const s=this[n];if(s)return"function"==typeof s?t.call(s):Object.prototype.toString.call(s);if(this===Promise){const n=e[o];if(n)return t.call(n)}if(this===Error){const n=e[r];if(n)return t.call(n)}}return t.call(this)};s[n]=t,Function.prototype.toString=s;const a=Object.prototype.toString;Object.prototype.toString=function(){return"function"==typeof Promise&&this instanceof Promise?"[object Promise]":a.call(this)}});let L=!1;if("undefined"!=typeof window)try{const e=Object.defineProperty({},"passive",{get:function(){L=!0}});window.addEventListener("test",e,e),window.removeEventListener("test",e,e)}catch(he){L=!1}const A={useG:!0},H={},F={},G=new RegExp("^"+h+"(\\w+)(true|false)$"),q=d("propagationStopped");function W(e,t){const n=(t?t(e):e)+u,o=(t?t(e):e)+l,r=h+n,s=h+o;H[e]={},H[e].false=r,H[e].true=s}function B(e,t,o){const r=o&&o.add||s,i=o&&o.rm||a,c=o&&o.listeners||"eventListeners",p=o&&o.rmAll||"removeAllListeners",f=d(r),g="."+r+":",k=function(e,t,n){if(e.isRemoved)return;const o=e.callback;"object"==typeof o&&o.handleEvent&&(e.callback=e=>o.handleEvent(e),e.originalDelegate=o),e.invoke(e,t,[n]);const r=e.options;r&&"object"==typeof r&&r.once&&t[i].call(t,n.type,e.originalDelegate?e.originalDelegate:e.callback,r)},_=function(t){if(!(t=t||e.event))return;const n=this||t.target||e,o=n[H[t.type].false];if(o)if(1===o.length)k(o[0],n,t);else{const e=o.slice();for(let o=0;o<e.length&&(!t||!0!==t[q]);o++)k(e[o],n,t)}},m=function(t){if(!(t=t||e.event))return;const n=this||t.target||e,o=n[H[t.type].true];if(o)if(1===o.length)k(o[0],n,t);else{const e=o.slice();for(let o=0;o<e.length&&(!t||!0!==t[q]);o++)k(e[o],n,t)}};function y(t,o){if(!t)return!1;let s=!0;o&&void 0!==o.useG&&(s=o.useG);const a=o&&o.vh;let k=!0;o&&void 0!==o.chkDup&&(k=o.chkDup);let y=!1;o&&void 0!==o.rt&&(y=o.rt);let b=t;for(;b&&!b.hasOwnProperty(r);)b=n(b);if(!b&&t[r]&&(b=t),!b)return!1;if(b[f])return!1;const v=o&&o.eventNameToString,E={},w=b[f]=b[r],Z=b[d(i)]=b[i],S=b[d(c)]=b[c],D=b[d(p)]=b[p];let P;function O(e,t){return!L&&"object"==typeof e&&e?!!e.capture:L&&t?"boolean"==typeof e?{capture:e,passive:!0}:e?"object"==typeof e&&!1!==e.passive?Object.assign(Object.assign({},e),{passive:!0}):e:{passive:!0}:e}o&&o.prepend&&(P=b[d(o.prepend)]=b[o.prepend]);const C=s?function(e){if(!E.isExisting)return w.call(E.target,E.eventName,E.capture?m:_,E.options)}:function(e){return w.call(E.target,E.eventName,e.invoke,E.options)},z=s?function(e){if(!e.isRemoved){const t=H[e.eventName];let n;t&&(n=t[e.capture?l:u]);const o=n&&e.target[n];if(o)for(let r=0;r<o.length;r++)if(o[r]===e){o.splice(r,1),e.isRemoved=!0,0===o.length&&(e.allRemoved=!0,e.target[n]=null);break}}if(e.allRemoved)return Z.call(e.target,e.eventName,e.capture?m:_,e.options)}:function(e){return Z.call(e.target,e.eventName,e.invoke,e.options)},j=o&&o.diff?o.diff:function(e,t){const n=typeof t;return"function"===n&&e.callback===t||"object"===n&&e.originalDelegate===t},R=Zone[d("UNPATCHED_EVENTS")],M=e[d("PASSIVE_EVENTS")],N=function(t,n,r,i,c=!1,h=!1){return function(){const p=this||e;let f=arguments[0];o&&o.transferEventName&&(f=o.transferEventName(f));let d=arguments[1];if(!d)return t.apply(this,arguments);if(T&&"uncaughtException"===f)return t.apply(this,arguments);let g=!1;if("function"!=typeof d){if(!d.handleEvent)return t.apply(this,arguments);g=!0}if(a&&!a(t,d,p,arguments))return;const _=L&&!!M&&-1!==M.indexOf(f),m=O(arguments[2],_);if(R)for(let e=0;e<R.length;e++)if(f===R[e])return _?t.call(p,f,d,m):t.apply(this,arguments);const y=!!m&&("boolean"==typeof m||m.capture),b=!(!m||"object"!=typeof m)&&m.once,w=Zone.current;let Z=H[f];Z||(W(f,v),Z=H[f]);const S=Z[y?l:u];let D,P=p[S],C=!1;if(P){if(C=!0,k)for(let e=0;e<P.length;e++)if(j(P[e],d))return}else P=p[S]=[];const z=p.constructor.name,I=F[z];I&&(D=I[f]),D||(D=z+n+(v?v(f):f)),E.options=m,b&&(E.options.once=!1),E.target=p,E.capture=y,E.eventName=f,E.isExisting=C;const N=s?A:void 0;N&&(N.taskData=E);const x=w.scheduleEventTask(D,d,N,r,i);return E.target=null,N&&(N.taskData=null),b&&(m.once=!0),(L||"boolean"!=typeof x.options)&&(x.options=m),x.target=p,x.capture=y,x.eventName=f,g&&(x.originalDelegate=d),h?P.unshift(x):P.push(x),c?p:void 0}};return b[r]=N(w,g,C,z,y),P&&(b.prependListener=N(P,".prependListener:",function(e){return P.call(E.target,E.eventName,e.invoke,E.options)},z,y,!0)),b[i]=function(){const t=this||e;let n=arguments[0];o&&o.transferEventName&&(n=o.transferEventName(n));const r=arguments[2],s=!!r&&("boolean"==typeof r||r.capture),i=arguments[1];if(!i)return Z.apply(this,arguments);if(a&&!a(Z,i,t,arguments))return;const c=H[n];let p;c&&(p=c[s?l:u]);const f=p&&t[p];if(f)for(let e=0;e<f.length;e++){const o=f[e];if(j(o,i))return f.splice(e,1),o.isRemoved=!0,0===f.length&&(o.allRemoved=!0,t[p]=null,"string"==typeof n)&&(t[h+"ON_PROPERTY"+n]=null),o.zone.cancelTask(o),y?t:void 0}return Z.apply(this,arguments)},b[c]=function(){const t=this||e;let n=arguments[0];o&&o.transferEventName&&(n=o.transferEventName(n));const r=[],s=U(t,v?v(n):n);for(let e=0;e<s.length;e++){const t=s[e];r.push(t.originalDelegate?t.originalDelegate:t.callback)}return r},b[p]=function(){const t=this||e;let n=arguments[0];if(n){o&&o.transferEventName&&(n=o.transferEventName(n));const e=H[n];if(e){const o=t[e.false],r=t[e.true];if(o){const e=o.slice();for(let t=0;t<e.length;t++){const o=e[t];this[i].call(this,n,o.originalDelegate?o.originalDelegate:o.callback,o.options)}}if(r){const e=r.slice();for(let t=0;t<e.length;t++){const o=e[t];this[i].call(this,n,o.originalDelegate?o.originalDelegate:o.callback,o.options)}}}}else{const e=Object.keys(t);for(let t=0;t<e.length;t++){const n=G.exec(e[t]);let o=n&&n[1];o&&"removeListener"!==o&&this[p].call(this,o)}this[p].call(this,"removeListener")}if(y)return this},I(b[r],w),I(b[i],Z),D&&I(b[p],D),S&&I(b[c],S),!0}let b=[];for(let n=0;n<t.length;n++)b[n]=y(t[n],o);return b}function U(e,t){if(!t){const n=[];for(let o in e){const r=G.exec(o);let s=r&&r[1];if(s&&(!t||s===t)){const t=e[o];if(t)for(let e=0;e<t.length;e++)n.push(t[e])}}return n}let n=H[t];n||(W(t),n=H[t]);const o=e[n.false],r=e[n.true];return o?r?o.concat(r):o.slice():r?r.slice():[]}function $(e,t){const n=e.Event;n&&n.prototype&&t.patchMethod(n.prototype,"stopImmediatePropagation",e=>function(t,n){t[q]=!0,e&&e.apply(t,n)})}function V(e,t,n,o,r){const s=Zone.__symbol__(o);if(t[s])return;const a=t[s]=t[o];t[o]=function(s,i,c){return i&&i.prototype&&r.forEach(function(t){const r=`${n}.${o}::`+t,s=i.prototype;if(s.hasOwnProperty(t)){const n=e.ObjectGetOwnPropertyDescriptor(s,t);n&&n.value?(n.value=e.wrapWithCurrentZone(n.value,r),e._redefineProperty(i.prototype,t,n)):s[t]&&(s[t]=e.wrapWithCurrentZone(s[t],r))}else s[t]&&(s[t]=e.wrapWithCurrentZone(s[t],r))}),a.call(t,s,i,c)},e.attachOriginToPatched(t[o],a)}const X=["absolutedeviceorientation","afterinput","afterprint","appinstalled","beforeinstallprompt","beforeprint","beforeunload","devicelight","devicemotion","deviceorientation","deviceorientationabsolute","deviceproximity","hashchange","languagechange","message","mozbeforepaint","offline","online","paint","pageshow","pagehide","popstate","rejectionhandled","storage","unhandledrejection","unload","userproximity","vrdisplayconnected","vrdisplaydisconnected","vrdisplaypresentchange"],Y=["encrypted","waitingforkey","msneedkey","mozinterruptbegin","mozinterruptend"],J=["load"],K=["blur","error","focus","load","resize","scroll","messageerror"],Q=["bounce","finish","start"],ee=["loadstart","progress","abort","error","load","progress","timeout","loadend","readystatechange"],te=["upgradeneeded","complete","abort","success","error","blocked","versionchange","close"],ne=["close","error","open","message"],oe=["error","message"],re=["abort","animationcancel","animationend","animationiteration","auxclick","beforeinput","blur","cancel","canplay","canplaythrough","change","compositionstart","compositionupdate","compositionend","cuechange","click","close","contextmenu","curechange","dblclick","drag","dragend","dragenter","dragexit","dragleave","dragover","drop","durationchange","emptied","ended","error","focus","focusin","focusout","gotpointercapture","input","invalid","keydown","keypress","keyup","load","loadstart","loadeddata","loadedmetadata","lostpointercapture","mousedown","mouseenter","mouseleave","mousemove","mouseout","mouseover","mouseup","mousewheel","orientationchange","pause","play","playing","pointercancel","pointerdown","pointerenter","pointerleave","pointerlockchange","mozpointerlockchange","webkitpointerlockerchange","pointerlockerror","mozpointerlockerror","webkitpointerlockerror","pointermove","pointout","pointerover","pointerup","progress","ratechange","reset","resize","scroll","seeked","seeking","select","selectionchange","selectstart","show","sort","stalled","submit","suspend","timeupdate","volumechange","touchcancel","touchmove","touchstart","touchend","transitioncancel","transitionend","waiting","wheel"].concat(["webglcontextrestored","webglcontextlost","webglcontextcreationerror"],["autocomplete","autocompleteerror"],["toggle"],["afterscriptexecute","beforescriptexecute","DOMContentLoaded","freeze","fullscreenchange","mozfullscreenchange","webkitfullscreenchange","msfullscreenchange","fullscreenerror","mozfullscreenerror","webkitfullscreenerror","msfullscreenerror","readystatechange","visibilitychange","resume"],X,["beforecopy","beforecut","beforepaste","copy","cut","paste","dragstart","loadend","animationstart","search","transitionrun","transitionstart","webkitanimationend","webkitanimationiteration","webkitanimationstart","webkittransitionend"],["activate","afterupdate","ariarequest","beforeactivate","beforedeactivate","beforeeditfocus","beforeupdate","cellchange","controlselect","dataavailable","datasetchanged","datasetcomplete","errorupdate","filterchange","layoutcomplete","losecapture","move","moveend","movestart","propertychange","resizeend","resizestart","rowenter","rowexit","rowsdelete","rowsinserted","command","compassneedscalibration","deactivate","help","mscontentzoom","msmanipulationstatechanged","msgesturechange","msgesturedoubletap","msgestureend","msgesturehold","msgesturestart","msgesturetap","msgotpointercapture","msinertiastart","mslostpointercapture","mspointercancel","mspointerdown","mspointerenter","mspointerhover","mspointerleave","mspointermove","mspointerout","mspointerover","mspointerup","pointerout","mssitemodejumplistitemremoved","msthumbnailclick","stop","storagecommit"]);function se(e,t,n){if(!n||0===n.length)return t;const o=n.filter(t=>t.target===e);if(!o||0===o.length)return t;const r=o[0].ignoreProperties;return t.filter(e=>-1===r.indexOf(e))}function ae(e,t,n,o){e&&P(e,se(e,t,n),o)}function ie(e,t){if(T&&!w)return;if(Zone[e.symbol("patchEvents")])return;const o="undefined"!=typeof WebSocket,r=t.__Zone_ignore_on_properties;if(E){const e=window,t=N()?[{target:e,ignoreProperties:["error"]}]:[];ae(e,re.concat(["messageerror"]),r?r.concat(t):r,n(e)),ae(Document.prototype,re,r),void 0!==e.SVGElement&&ae(e.SVGElement.prototype,re,r),ae(Element.prototype,re,r),ae(HTMLElement.prototype,re,r),ae(HTMLMediaElement.prototype,Y,r),ae(HTMLFrameSetElement.prototype,X.concat(K),r),ae(HTMLBodyElement.prototype,X.concat(K),r),ae(HTMLFrameElement.prototype,J,r),ae(HTMLIFrameElement.prototype,J,r);const o=e.HTMLMarqueeElement;o&&ae(o.prototype,Q,r);const s=e.Worker;s&&ae(s.prototype,oe,r)}const s=t.XMLHttpRequest;s&&ae(s.prototype,ee,r);const a=t.XMLHttpRequestEventTarget;a&&ae(a&&a.prototype,ee,r),"undefined"!=typeof IDBIndex&&(ae(IDBIndex.prototype,te,r),ae(IDBRequest.prototype,te,r),ae(IDBOpenDBRequest.prototype,te,r),ae(IDBDatabase.prototype,te,r),ae(IDBTransaction.prototype,te,r),ae(IDBCursor.prototype,te,r)),o&&ae(WebSocket.prototype,ne,r)}Zone.__load_patch("util",(n,i,c)=>{c.patchOnProperties=P,c.patchMethod=z,c.bindArguments=y,c.patchMacroTask=j;const f=i.__symbol__("BLACK_LISTED_EVENTS"),d=i.__symbol__("UNPATCHED_EVENTS");n[d]&&(n[f]=n[d]),n[f]&&(i[f]=i[d]=n[f]),c.patchEventPrototype=$,c.patchEventTarget=B,c.isIEOrEdge=x,c.ObjectDefineProperty=t,c.ObjectGetOwnPropertyDescriptor=e,c.ObjectCreate=o,c.ArraySlice=r,c.patchClass=C,c.wrapWithCurrentZone=p,c.filterProperties=se,c.attachOriginToPatched=I,c._redefineProperty=Object.defineProperty,c.patchCallbacks=V,c.getGlobalObjects=()=>({globalSources:F,zoneSymbolEventNames:H,eventNames:re,isBrowser:E,isMix:w,isNode:T,TRUE_STR:l,FALSE_STR:u,ZONE_SYMBOL_PREFIX:h,ADD_EVENT_LISTENER_STR:s,REMOVE_EVENT_LISTENER_STR:a})});const ce=d("zoneTask");function le(e,t,n,o){let r=null,s=null;n+=o;const a={};function i(t){const n=t.data;return n.args[0]=function(){return t.invoke.apply(this,arguments)},n.handleId=r.apply(e,n.args),t}function c(t){return s.call(e,t.data.handleId)}r=z(e,t+=o,n=>function(r,s){if("function"==typeof s[0]){const e={isPeriodic:"Interval"===o,delay:"Timeout"===o||"Interval"===o?s[1]||0:void 0,args:s},n=s[0];s[0]=function(){try{return n.apply(this,arguments)}finally{e.isPeriodic||("number"==typeof e.handleId?delete a[e.handleId]:e.handleId&&(e.handleId[ce]=null))}};const r=f(t,s[0],e,i,c);if(!r)return r;const l=r.data.handleId;return"number"==typeof l?a[l]=r:l&&(l[ce]=r),l&&l.ref&&l.unref&&"function"==typeof l.ref&&"function"==typeof l.unref&&(r.ref=l.ref.bind(l),r.unref=l.unref.bind(l)),"number"==typeof l||l?l:r}return n.apply(e,s)}),s=z(e,n,t=>function(n,o){const r=o[0];let s;"number"==typeof r?s=a[r]:(s=r&&r[ce],s||(s=r)),s&&"string"==typeof s.type?"notScheduled"!==s.state&&(s.cancelFn&&s.data.isPeriodic||0===s.runCount)&&("number"==typeof r?delete a[r]:r&&(r[ce]=null),s.zone.cancelTask(s)):t.apply(e,o)})}function ue(e,t){if(Zone[t.symbol("patchEventTarget")])return;const{eventNames:n,zoneSymbolEventNames:o,TRUE_STR:r,FALSE_STR:s,ZONE_SYMBOL_PREFIX:a}=t.getGlobalObjects();for(let c=0;c<n.length;c++){const e=n[c],t=a+(e+s),i=a+(e+r);o[e]={},o[e][s]=t,o[e][r]=i}const i=e.EventTarget;return i&&i.prototype?(t.patchEventTarget(e,[i&&i.prototype]),!0):void 0}Zone.__load_patch("legacy",e=>{const t=e[Zone.__symbol__("legacyPatch")];t&&t()}),Zone.__load_patch("queueMicrotask",(e,t,n)=>{n.patchMethod(e,"queueMicrotask",e=>function(e,n){t.current.scheduleMicroTask("queueMicrotask",n[0])})}),Zone.__load_patch("timers",e=>{const t="set",n="clear";le(e,t,n,"Timeout"),le(e,t,n,"Interval"),le(e,t,n,"Immediate")}),Zone.__load_patch("requestAnimationFrame",e=>{le(e,"request","cancel","AnimationFrame"),le(e,"mozRequest","mozCancel","AnimationFrame"),le(e,"webkitRequest","webkitCancel","AnimationFrame")}),Zone.__load_patch("blocking",(e,t)=>{const n=["alert","prompt","confirm"];for(let o=0;o<n.length;o++)z(e,n[o],(n,o,r)=>function(o,s){return t.current.run(n,e,s,r)})}),Zone.__load_patch("EventTarget",(e,t,n)=>{!function(e,t){t.patchEventPrototype(e,t)}(e,n),ue(e,n);const o=e.XMLHttpRequestEventTarget;o&&o.prototype&&n.patchEventTarget(e,[o.prototype])}),Zone.__load_patch("MutationObserver",(e,t,n)=>{C("MutationObserver"),C("WebKitMutationObserver")}),Zone.__load_patch("IntersectionObserver",(e,t,n)=>{C("IntersectionObserver")}),Zone.__load_patch("FileReader",(e,t,n)=>{C("FileReader")}),Zone.__load_patch("on_property",(e,t,n)=>{ie(n,e)}),Zone.__load_patch("customElements",(e,t,n)=>{!function(e,t){const{isBrowser:n,isMix:o}=t.getGlobalObjects();(n||o)&&e.customElements&&"customElements"in e&&t.patchCallbacks(t,e.customElements,"customElements","define",["connectedCallback","disconnectedCallback","adoptedCallback","attributeChangedCallback"])}(e,n)}),Zone.__load_patch("XHR",(e,t)=>{!function(e){const u=e.XMLHttpRequest;if(!u)return;const h=u.prototype;let p=h[i],g=h[c];if(!p){const t=e.XMLHttpRequestEventTarget;if(t){const e=t.prototype;p=e[i],g=e[c]}}const k="readystatechange",_="scheduled";function m(e){const o=e.data,a=o.target;a[s]=!1,a[l]=!1;const u=a[r];p||(p=a[i],g=a[c]),u&&g.call(a,k,u);const h=a[r]=()=>{if(a.readyState===a.DONE)if(!o.aborted&&a[s]&&e.state===_){const n=a[t.__symbol__("loadfalse")];if(0!==a.status&&n&&n.length>0){const r=e.invoke;e.invoke=function(){const n=a[t.__symbol__("loadfalse")];for(let t=0;t<n.length;t++)n[t]===e&&n.splice(t,1);o.aborted||e.state!==_||r.call(e)},n.push(e)}else e.invoke()}else o.aborted||!1!==a[s]||(a[l]=!0)};return p.call(a,k,h),a[n]||(a[n]=e),w.apply(a,o.args),a[s]=!0,e}function y(){}function b(e){const t=e.data;return t.aborted=!0,Z.apply(t.target,t.args)}const v=z(h,"open",()=>function(e,t){return e[o]=0==t[2],e[a]=t[1],v.apply(e,t)}),T=d("fetchTaskAborting"),E=d("fetchTaskScheduling"),w=z(h,"send",()=>function(e,n){if(!0===t.current[E])return w.apply(e,n);if(e[o])return w.apply(e,n);{const t={target:e,url:e[a],isPeriodic:!1,args:n,aborted:!1},o=f("XMLHttpRequest.send",y,t,m,b);e&&!0===e[l]&&!t.aborted&&o.state===_&&o.invoke()}}),Z=z(h,"abort",()=>function(e,o){const r=e[n];if(r&&"string"==typeof r.type){if(null==r.cancelFn||r.data&&r.data.aborted)return;r.zone.cancelTask(r)}else if(!0===t.current[T])return Z.apply(e,o)})}(e);const n=d("xhrTask"),o=d("xhrSync"),r=d("xhrListener"),s=d("xhrScheduled"),a=d("xhrURL"),l=d("xhrErrorBeforeScheduled")}),Zone.__load_patch("geolocation",t=>{t.navigator&&t.navigator.geolocation&&function(t,n){const o=t.constructor.name;for(let r=0;r<n.length;r++){const s=n[r],a=t[s];if(a){if(!b(e(t,s)))continue;t[s]=(e=>{const t=function(){return e.apply(this,y(arguments,o+"."+s))};return I(t,e),t})(a)}}}(t.navigator.geolocation,["getCurrentPosition","watchPosition"])}),Zone.__load_patch("PromiseRejectionEvent",(e,t)=>{function n(t){return function(n){U(e,t).forEach(o=>{const r=e.PromiseRejectionEvent;if(r){const e=new r(t,{promise:n.promise,reason:n.rejection});o.invoke(e)}})}}e.PromiseRejectionEvent&&(t[d("unhandledPromiseRejectionHandler")]=n("unhandledrejection"),t[d("rejectionHandledHandler")]=n("rejectionhandled"))})},834:(e,t,n)=>{"use strict";const o="undefined"!=typeof globalThis&&globalThis,r="undefined"!=typeof window&&window,s="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,a="undefined"!=typeof global&&global,i=function(e,...t){if(i.translate){const n=i.translate(e,t);e=n[0],t=n[1]}let n=c(e[0],e.raw[0]);for(let o=1;o<e.length;o++)n+=t[o-1]+c(e[o],e.raw[o]);return n};function c(e,t){return":"===t.charAt(0)?e.substring(function(e,t){for(let n=1,o=1;n<e.length;n++,o++)if("\\"===t[o])o++;else if(":"===e[n])return n;throw new Error(`Unterminated $localize metadata block in "${t}".`)}(e,t)+1):e}(o||a||r||s).$localize=i,n(277)}},e=>{"use strict";e(e.s=834)}]);;
!function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(e,t){"use strict";var n=[],i=Object.getPrototypeOf,r=n.slice,o=n.flat?function(e){return n.flat.call(e)}:function(e){return n.concat.apply([],e)},a=n.push,s=n.indexOf,l={},u=l.toString,c=l.hasOwnProperty,f=c.toString,d=f.call(Object),h={},p=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType&&"function"!=typeof e.item},g=function(e){return null!=e&&e===e.window},m=e.document,v={type:!0,src:!0,nonce:!0,noModule:!0};function y(e,t,n){var i,r,o=(n=n||m).createElement("script");if(o.text=e,t)for(i in v)(r=t[i]||t.getAttribute&&t.getAttribute(i))&&o.setAttribute(i,r);n.head.appendChild(o).parentNode.removeChild(o)}function b(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?l[u.call(e)]||"object":typeof e}var _="3.6.0",w=function(e,t){return new w.fn.init(e,t)};function E(e){var t=!!e&&"length"in e&&e.length,n=b(e);return!p(e)&&!g(e)&&("array"===n||0===t||"number"==typeof t&&0<t&&t-1 in e)}w.fn=w.prototype={jquery:_,constructor:w,length:0,toArray:function(){return r.call(this)},get:function(e){return null==e?r.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=w.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return w.each(this,e)},map:function(e){return this.pushStack(w.map(this,function(t,n){return e.call(t,n,t)}))},slice:function(){return this.pushStack(r.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(w.grep(this,function(e,t){return(t+1)%2}))},odd:function(){return this.pushStack(w.grep(this,function(e,t){return t%2}))},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(0<=n&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:a,sort:n.sort,splice:n.splice},w.extend=w.fn.extend=function(){var e,t,n,i,r,o,a=arguments[0]||{},s=1,l=arguments.length,u=!1;for("boolean"==typeof a&&(u=a,a=arguments[s]||{},s++),"object"==typeof a||p(a)||(a={}),s===l&&(a=this,s--);s<l;s++)if(null!=(e=arguments[s]))for(t in e)i=e[t],"__proto__"!==t&&a!==i&&(u&&i&&(w.isPlainObject(i)||(r=Array.isArray(i)))?(n=a[t],o=r&&!Array.isArray(n)?[]:r||w.isPlainObject(n)?n:{},r=!1,a[t]=w.extend(u,o,i)):void 0!==i&&(a[t]=i));return a},w.extend({expando:"jQuery"+(_+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==u.call(e)||(t=i(e))&&("function"!=typeof(n=c.call(t,"constructor")&&t.constructor)||f.call(n)!==d))},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t,n){y(e,{nonce:t&&t.nonce},n)},each:function(e,t){var n,i=0;if(E(e))for(n=e.length;i<n&&!1!==t.call(e[i],i,e[i]);i++);else for(i in e)if(!1===t.call(e[i],i,e[i]))break;return e},makeArray:function(e,t){var n=t||[];return null!=e&&(E(Object(e))?w.merge(n,"string"==typeof e?[e]:e):a.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:s.call(t,e,n)},merge:function(e,t){for(var n=+t.length,i=0,r=e.length;i<n;i++)e[r++]=t[i];return e.length=r,e},grep:function(e,t,n){for(var i=[],r=0,o=e.length,a=!n;r<o;r++)!t(e[r],r)!==a&&i.push(e[r]);return i},map:function(e,t,n){var i,r,a=0,s=[];if(E(e))for(i=e.length;a<i;a++)null!=(r=t(e[a],a,n))&&s.push(r);else for(a in e)null!=(r=t(e[a],a,n))&&s.push(r);return o(s)},guid:1,support:h}),"function"==typeof Symbol&&(w.fn[Symbol.iterator]=n[Symbol.iterator]),w.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){l["[object "+t+"]"]=t.toLowerCase()});var x=function(e){var t,n,i,r,o,a,s,l,u,c,f,d,h,p,g,m,v,y,b,_="sizzle"+1*new Date,w=e.document,E=0,x=0,T=le(),C=le(),S=le(),k=le(),D=function(e,t){return e===t&&(f=!0),0},N={}.hasOwnProperty,A=[],j=A.pop,O=A.push,L=A.push,I=A.slice,q=function(e,t){for(var n=0,i=e.length;n<i;n++)if(e[n]===t)return n;return-1},P="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",H="[\\x20\\t\\r\\n\\f]",R="(?:\\\\[\\da-fA-F]{1,6}"+H+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",F="\\["+H+"*("+R+")(?:"+H+"*([*^$|!~]?=)"+H+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+R+"))|)"+H+"*\\]",M=":("+R+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+F+")*)|.*)\\)|)",B=new RegExp(H+"+","g"),W=new RegExp("^"+H+"+|((?:^|[^\\\\])(?:\\\\.)*)"+H+"+$","g"),U=new RegExp("^"+H+"*,"+H+"*"),Q=new RegExp("^"+H+"*([>+~]|"+H+")"+H+"*"),$=new RegExp(H+"|>"),z=new RegExp(M),V=new RegExp("^"+R+"$"),X={ID:new RegExp("^#("+R+")"),CLASS:new RegExp("^\\.("+R+")"),TAG:new RegExp("^("+R+"|[*])"),ATTR:new RegExp("^"+F),PSEUDO:new RegExp("^"+M),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+H+"*(even|odd|(([+-]|)(\\d*)n|)"+H+"*(?:([+-]|)"+H+"*(\\d+)|))"+H+"*\\)|)","i"),bool:new RegExp("^(?:"+P+")$","i"),needsContext:new RegExp("^"+H+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+H+"*((?:-\\d)?\\d*)"+H+"*\\)|)(?=[^-]|$)","i")},Y=/HTML$/i,K=/^(?:input|select|textarea|button)$/i,G=/^h\d$/i,J=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=new RegExp("\\\\[\\da-fA-F]{1,6}"+H+"?|\\\\([^\\r\\n\\f])","g"),ne=function(e,t){var n="0x"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},ie=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,re=function(e,t){return t?"\0"===e?"\ufffd":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},oe=function(){d()},ae=_e(function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{L.apply(A=I.call(w.childNodes),w.childNodes)}catch(t){L={apply:A.length?function(e,t){O.apply(e,I.call(t))}:function(e,t){for(var n=e.length,i=0;e[n++]=t[i++];);e.length=n-1}}}function se(e,t,i,r){var o,s,u,c,f,p,v,y=t&&t.ownerDocument,w=t?t.nodeType:9;if(i=i||[],"string"!=typeof e||!e||1!==w&&9!==w&&11!==w)return i;if(!r&&(d(t),t=t||h,g)){if(11!==w&&(f=Z.exec(e)))if(o=f[1]){if(9===w){if(!(u=t.getElementById(o)))return i;if(u.id===o)return i.push(u),i}else if(y&&(u=y.getElementById(o))&&b(t,u)&&u.id===o)return i.push(u),i}else{if(f[2])return L.apply(i,t.getElementsByTagName(e)),i;if((o=f[3])&&n.getElementsByClassName&&t.getElementsByClassName)return L.apply(i,t.getElementsByClassName(o)),i}if(n.qsa&&!k[e+" "]&&(!m||!m.test(e))&&(1!==w||"object"!==t.nodeName.toLowerCase())){if(v=e,y=t,1===w&&($.test(e)||Q.test(e))){for((y=ee.test(e)&&ve(t.parentNode)||t)===t&&n.scope||((c=t.getAttribute("id"))?c=c.replace(ie,re):t.setAttribute("id",c=_)),s=(p=a(e)).length;s--;)p[s]=(c?"#"+c:":scope")+" "+be(p[s]);v=p.join(",")}try{return L.apply(i,y.querySelectorAll(v)),i}catch(t){k(e,!0)}finally{c===_&&t.removeAttribute("id")}}}return l(e.replace(W,"$1"),t,i,r)}function le(){var e=[];return function t(n,r){return e.push(n+" ")>i.cacheLength&&delete t[e.shift()],t[n+" "]=r}}function ue(e){return e[_]=!0,e}function ce(e){var t=h.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function fe(e,t){for(var n=e.split("|"),r=n.length;r--;)i.attrHandle[n[r]]=t}function de(e,t){var n=t&&e,i=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(i)return i;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function he(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function pe(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function ge(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&ae(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function me(e){return ue(function(t){return t=+t,ue(function(n,i){for(var r,o=e([],n.length,t),a=o.length;a--;)n[r=o[a]]&&(n[r]=!(i[r]=n[r]))})})}function ve(e){return e&&void 0!==e.getElementsByTagName&&e}for(t in n=se.support={},o=se.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return!Y.test(e&&e.namespaceURI||t&&t.nodeName||"HTML")},d=se.setDocument=function(e){var t,r,a=e?e.ownerDocument||e:w;return a!=h&&9===a.nodeType&&a.documentElement&&(p=(h=a).documentElement,g=!o(h),w!=h&&(r=h.defaultView)&&r.top!==r&&(r.addEventListener?r.addEventListener("unload",oe,!1):r.attachEvent&&r.attachEvent("onunload",oe)),n.scope=ce(function(e){return p.appendChild(e).appendChild(h.createElement("div")),void 0!==e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length}),n.attributes=ce(function(e){return e.className="i",!e.getAttribute("className")}),n.getElementsByTagName=ce(function(e){return e.appendChild(h.createComment("")),!e.getElementsByTagName("*").length}),n.getElementsByClassName=J.test(h.getElementsByClassName),n.getById=ce(function(e){return p.appendChild(e).id=_,!h.getElementsByName||!h.getElementsByName(_).length}),n.getById?(i.filter.ID=function(e){var t=e.replace(te,ne);return function(e){return e.getAttribute("id")===t}},i.find.ID=function(e,t){if(void 0!==t.getElementById&&g){var n=t.getElementById(e);return n?[n]:[]}}):(i.filter.ID=function(e){var t=e.replace(te,ne);return function(e){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},i.find.ID=function(e,t){if(void 0!==t.getElementById&&g){var n,i,r,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];for(r=t.getElementsByName(e),i=0;o=r[i++];)if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),i.find.TAG=n.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):n.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,i=[],r=0,o=t.getElementsByTagName(e);if("*"===e){for(;n=o[r++];)1===n.nodeType&&i.push(n);return i}return o},i.find.CLASS=n.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&g)return t.getElementsByClassName(e)},v=[],m=[],(n.qsa=J.test(h.querySelectorAll))&&(ce(function(e){var t;p.appendChild(e).innerHTML="<a id='"+_+"'></a><select id='"+_+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&m.push("[*^$]="+H+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||m.push("\\["+H+"*(?:value|"+P+")"),e.querySelectorAll("[id~="+_+"-]").length||m.push("~="),(t=h.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||m.push("\\["+H+"*name"+H+"*="+H+"*(?:''|\"\")"),e.querySelectorAll(":checked").length||m.push(":checked"),e.querySelectorAll("a#"+_+"+*").length||m.push(".#.+[+~]"),e.querySelectorAll("\\\f"),m.push("[\\r\\n\\f]")}),ce(function(e){e.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var t=h.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&m.push("name"+H+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&m.push(":enabled",":disabled"),p.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&m.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),m.push(",.*:")})),(n.matchesSelector=J.test(y=p.matches||p.webkitMatchesSelector||p.mozMatchesSelector||p.oMatchesSelector||p.msMatchesSelector))&&ce(function(e){n.disconnectedMatch=y.call(e,"*"),y.call(e,"[s!='']:x"),v.push("!=",M)}),m=m.length&&new RegExp(m.join("|")),v=v.length&&new RegExp(v.join("|")),t=J.test(p.compareDocumentPosition),b=t||J.test(p.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,i=t&&t.parentNode;return e===i||!(!i||1!==i.nodeType||!(n.contains?n.contains(i):e.compareDocumentPosition&&16&e.compareDocumentPosition(i)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},D=t?function(e,t){if(e===t)return f=!0,0;var i=!e.compareDocumentPosition-!t.compareDocumentPosition;return i||(1&(i=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!n.sortDetached&&t.compareDocumentPosition(e)===i?e==h||e.ownerDocument==w&&b(w,e)?-1:t==h||t.ownerDocument==w&&b(w,t)?1:c?q(c,e)-q(c,t):0:4&i?-1:1)}:function(e,t){if(e===t)return f=!0,0;var n,i=0,r=e.parentNode,o=t.parentNode,a=[e],s=[t];if(!r||!o)return e==h?-1:t==h?1:r?-1:o?1:c?q(c,e)-q(c,t):0;if(r===o)return de(e,t);for(n=e;n=n.parentNode;)a.unshift(n);for(n=t;n=n.parentNode;)s.unshift(n);for(;a[i]===s[i];)i++;return i?de(a[i],s[i]):a[i]==w?-1:s[i]==w?1:0}),h},se.matches=function(e,t){return se(e,null,null,t)},se.matchesSelector=function(e,t){if(d(e),n.matchesSelector&&g&&!k[t+" "]&&(!v||!v.test(t))&&(!m||!m.test(t)))try{var i=y.call(e,t);if(i||n.disconnectedMatch||e.document&&11!==e.document.nodeType)return i}catch(e){k(t,!0)}return 0<se(t,h,null,[e]).length},se.contains=function(e,t){return(e.ownerDocument||e)!=h&&d(e),b(e,t)},se.attr=function(e,t){(e.ownerDocument||e)!=h&&d(e);var r=i.attrHandle[t.toLowerCase()],o=r&&N.call(i.attrHandle,t.toLowerCase())?r(e,t,!g):void 0;return void 0!==o?o:n.attributes||!g?e.getAttribute(t):(o=e.getAttributeNode(t))&&o.specified?o.value:null},se.escape=function(e){return(e+"").replace(ie,re)},se.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},se.uniqueSort=function(e){var t,i=[],r=0,o=0;if(f=!n.detectDuplicates,c=!n.sortStable&&e.slice(0),e.sort(D),f){for(;t=e[o++];)t===e[o]&&(r=i.push(o));for(;r--;)e.splice(i[r],1)}return c=null,e},r=se.getText=function(e){var t,n="",i=0,o=e.nodeType;if(o){if(1===o||9===o||11===o){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=r(e)}else if(3===o||4===o)return e.nodeValue}else for(;t=e[i++];)n+=r(t);return n},(i=se.selectors={cacheLength:50,createPseudo:ue,match:X,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(te,ne),e[3]=(e[3]||e[4]||e[5]||"").replace(te,ne),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||se.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&se.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return X.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&z.test(n)&&(t=a(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(te,ne).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=T[e+" "];return t||(t=new RegExp("(^|"+H+")"+e+"("+H+"|$)"))&&T(e,function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(e,t,n){return function(i){var r=se.attr(i,e);return null==r?"!="===t:!t||(r+="","="===t?r===n:"!="===t?r!==n:"^="===t?n&&0===r.indexOf(n):"*="===t?n&&-1<r.indexOf(n):"$="===t?n&&r.slice(-n.length)===n:"~="===t?-1<(" "+r.replace(B," ")+" ").indexOf(n):"|="===t&&(r===n||r.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,i,r){var o="nth"!==e.slice(0,3),a="last"!==e.slice(-4),s="of-type"===t;return 1===i&&0===r?function(e){return!!e.parentNode}:function(t,n,l){var u,c,f,d,h,p,g=o!==a?"nextSibling":"previousSibling",m=t.parentNode,v=s&&t.nodeName.toLowerCase(),y=!l&&!s,b=!1;if(m){if(o){for(;g;){for(d=t;d=d[g];)if(s?d.nodeName.toLowerCase()===v:1===d.nodeType)return!1;p=g="only"===e&&!p&&"nextSibling"}return!0}if(p=[a?m.firstChild:m.lastChild],a&&y){for(b=(h=(u=(c=(f=(d=m)[_]||(d[_]={}))[d.uniqueID]||(f[d.uniqueID]={}))[e]||[])[0]===E&&u[1])&&u[2],d=h&&m.childNodes[h];d=++h&&d&&d[g]||(b=h=0)||p.pop();)if(1===d.nodeType&&++b&&d===t){c[e]=[E,h,b];break}}else if(y&&(b=h=(u=(c=(f=(d=t)[_]||(d[_]={}))[d.uniqueID]||(f[d.uniqueID]={}))[e]||[])[0]===E&&u[1]),!1===b)for(;(d=++h&&d&&d[g]||(b=h=0)||p.pop())&&((s?d.nodeName.toLowerCase()!==v:1!==d.nodeType)||!++b||(y&&((c=(f=d[_]||(d[_]={}))[d.uniqueID]||(f[d.uniqueID]={}))[e]=[E,b]),d!==t)););return(b-=r)===i||b%i==0&&0<=b/i}}},PSEUDO:function(e,t){var n,r=i.pseudos[e]||i.setFilters[e.toLowerCase()]||se.error("unsupported pseudo: "+e);return r[_]?r(t):1<r.length?(n=[e,e,"",t],i.setFilters.hasOwnProperty(e.toLowerCase())?ue(function(e,n){for(var i,o=r(e,t),a=o.length;a--;)e[i=q(e,o[a])]=!(n[i]=o[a])}):function(e){return r(e,0,n)}):r}},pseudos:{not:ue(function(e){var t=[],n=[],i=s(e.replace(W,"$1"));return i[_]?ue(function(e,t,n,r){for(var o,a=i(e,null,r,[]),s=e.length;s--;)(o=a[s])&&(e[s]=!(t[s]=o))}):function(e,r,o){return t[0]=e,i(t,null,o,n),t[0]=null,!n.pop()}}),has:ue(function(e){return function(t){return 0<se(e,t).length}}),contains:ue(function(e){return e=e.replace(te,ne),function(t){return-1<(t.textContent||r(t)).indexOf(e)}}),lang:ue(function(e){return V.test(e||"")||se.error("unsupported lang: "+e),e=e.replace(te,ne).toLowerCase(),function(t){var n;do{if(n=g?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===p},focus:function(e){return e===h.activeElement&&(!h.hasFocus||h.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:ge(!1),disabled:ge(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!i.pseudos.empty(e)},header:function(e){return G.test(e.nodeName)},input:function(e){return K.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:me(function(){return[0]}),last:me(function(e,t){return[t-1]}),eq:me(function(e,t,n){return[n<0?n+t:n]}),even:me(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:me(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:me(function(e,t,n){for(var i=n<0?n+t:t<n?t:n;0<=--i;)e.push(i);return e}),gt:me(function(e,t,n){for(var i=n<0?n+t:n;++i<t;)e.push(i);return e})}}).pseudos.nth=i.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})i.pseudos[t]=he(t);for(t in{submit:!0,reset:!0})i.pseudos[t]=pe(t);function ye(){}function be(e){for(var t=0,n=e.length,i="";t<n;t++)i+=e[t].value;return i}function _e(e,t,n){var i=t.dir,r=t.next,o=r||i,a=n&&"parentNode"===o,s=x++;return t.first?function(t,n,r){for(;t=t[i];)if(1===t.nodeType||a)return e(t,n,r);return!1}:function(t,n,l){var u,c,f,d=[E,s];if(l){for(;t=t[i];)if((1===t.nodeType||a)&&e(t,n,l))return!0}else for(;t=t[i];)if(1===t.nodeType||a)if(c=(f=t[_]||(t[_]={}))[t.uniqueID]||(f[t.uniqueID]={}),r&&r===t.nodeName.toLowerCase())t=t[i]||t;else{if((u=c[o])&&u[0]===E&&u[1]===s)return d[2]=u[2];if((c[o]=d)[2]=e(t,n,l))return!0}return!1}}function we(e){return 1<e.length?function(t,n,i){for(var r=e.length;r--;)if(!e[r](t,n,i))return!1;return!0}:e[0]}function Ee(e,t,n,i,r){for(var o,a=[],s=0,l=e.length,u=null!=t;s<l;s++)(o=e[s])&&(n&&!n(o,i,r)||(a.push(o),u&&t.push(s)));return a}function xe(e,t,n,i,r,o){return i&&!i[_]&&(i=xe(i)),r&&!r[_]&&(r=xe(r,o)),ue(function(o,a,s,l){var u,c,f,d=[],h=[],p=a.length,g=o||function(e,t,n){for(var i=0,r=t.length;i<r;i++)se(e,t[i],n);return n}(t||"*",s.nodeType?[s]:s,[]),m=!e||!o&&t?g:Ee(g,d,e,s,l),v=n?r||(o?e:p||i)?[]:a:m;if(n&&n(m,v,s,l),i)for(u=Ee(v,h),i(u,[],s,l),c=u.length;c--;)(f=u[c])&&(v[h[c]]=!(m[h[c]]=f));if(o){if(r||e){if(r){for(u=[],c=v.length;c--;)(f=v[c])&&u.push(m[c]=f);r(null,v=[],u,l)}for(c=v.length;c--;)(f=v[c])&&-1<(u=r?q(o,f):d[c])&&(o[u]=!(a[u]=f))}}else v=Ee(v===a?v.splice(p,v.length):v),r?r(null,a,v,l):L.apply(a,v)})}function Te(e){for(var t,n,r,o=e.length,a=i.relative[e[0].type],s=a||i.relative[" "],l=a?1:0,c=_e(function(e){return e===t},s,!0),f=_e(function(e){return-1<q(t,e)},s,!0),d=[function(e,n,i){var r=!a&&(i||n!==u)||((t=n).nodeType?c(e,n,i):f(e,n,i));return t=null,r}];l<o;l++)if(n=i.relative[e[l].type])d=[_e(we(d),n)];else{if((n=i.filter[e[l].type].apply(null,e[l].matches))[_]){for(r=++l;r<o&&!i.relative[e[r].type];r++);return xe(1<l&&we(d),1<l&&be(e.slice(0,l-1).concat({value:" "===e[l-2].type?"*":""})).replace(W,"$1"),n,l<r&&Te(e.slice(l,r)),r<o&&Te(e=e.slice(r)),r<o&&be(e))}d.push(n)}return we(d)}return ye.prototype=i.filters=i.pseudos,i.setFilters=new ye,a=se.tokenize=function(e,t){var n,r,o,a,s,l,u,c=C[e+" "];if(c)return t?0:c.slice(0);for(s=e,l=[],u=i.preFilter;s;){for(a in n&&!(r=U.exec(s))||(r&&(s=s.slice(r[0].length)||s),l.push(o=[])),n=!1,(r=Q.exec(s))&&(n=r.shift(),o.push({value:n,type:r[0].replace(W," ")}),s=s.slice(n.length)),i.filter)!(r=X[a].exec(s))||u[a]&&!(r=u[a](r))||(n=r.shift(),o.push({value:n,type:a,matches:r}),s=s.slice(n.length));if(!n)break}return t?s.length:s?se.error(e):C(e,l).slice(0)},s=se.compile=function(e,t){var n,r,o,s,l,c,f=[],p=[],m=S[e+" "];if(!m){for(t||(t=a(e)),n=t.length;n--;)(m=Te(t[n]))[_]?f.push(m):p.push(m);(m=S(e,(r=p,s=0<(o=f).length,l=0<r.length,c=function(e,t,n,a,c){var f,p,m,v=0,y="0",b=e&&[],_=[],w=u,x=e||l&&i.find.TAG("*",c),T=E+=null==w?1:Math.random()||.1,C=x.length;for(c&&(u=t==h||t||c);y!==C&&null!=(f=x[y]);y++){if(l&&f){for(p=0,t||f.ownerDocument==h||(d(f),n=!g);m=r[p++];)if(m(f,t||h,n)){a.push(f);break}c&&(E=T)}s&&((f=!m&&f)&&v--,e&&b.push(f))}if(v+=y,s&&y!==v){for(p=0;m=o[p++];)m(b,_,t,n);if(e){if(0<v)for(;y--;)b[y]||_[y]||(_[y]=j.call(a));_=Ee(_)}L.apply(a,_),c&&!e&&0<_.length&&1<v+o.length&&se.uniqueSort(a)}return c&&(E=T,u=w),b},s?ue(c):c))).selector=e}return m},l=se.select=function(e,t,n,r){var o,l,u,c,f,d="function"==typeof e&&e,h=!r&&a(e=d.selector||e);if(n=n||[],1===h.length){if(2<(l=h[0]=h[0].slice(0)).length&&"ID"===(u=l[0]).type&&9===t.nodeType&&g&&i.relative[l[1].type]){if(!(t=(i.find.ID(u.matches[0].replace(te,ne),t)||[])[0]))return n;d&&(t=t.parentNode),e=e.slice(l.shift().value.length)}for(o=X.needsContext.test(e)?0:l.length;o--&&!i.relative[c=(u=l[o]).type];)if((f=i.find[c])&&(r=f(u.matches[0].replace(te,ne),ee.test(l[0].type)&&ve(t.parentNode)||t))){if(l.splice(o,1),!(e=r.length&&be(l)))return L.apply(n,r),n;break}}return(d||s(e,h))(r,t,!g,n,!t||ee.test(e)&&ve(t.parentNode)||t),n},n.sortStable=_.split("").sort(D).join("")===_,n.detectDuplicates=!!f,d(),n.sortDetached=ce(function(e){return 1&e.compareDocumentPosition(h.createElement("fieldset"))}),ce(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||fe("type|href|height|width",function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),n.attributes&&ce(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||fe("value",function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),ce(function(e){return null==e.getAttribute("disabled")})||fe(P,function(e,t,n){var i;if(!n)return!0===e[t]?t.toLowerCase():(i=e.getAttributeNode(t))&&i.specified?i.value:null}),se}(e);w.find=x,w.expr=x.selectors,w.expr[":"]=w.expr.pseudos,w.uniqueSort=w.unique=x.uniqueSort,w.text=x.getText,w.isXMLDoc=x.isXML,w.contains=x.contains,w.escapeSelector=x.escape;var T=function(e,t,n){for(var i=[],r=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(r&&w(e).is(n))break;i.push(e)}return i},C=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},S=w.expr.match.needsContext;function k(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var D=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function N(e,t,n){return p(t)?w.grep(e,function(e,i){return!!t.call(e,i,e)!==n}):t.nodeType?w.grep(e,function(e){return e===t!==n}):"string"!=typeof t?w.grep(e,function(e){return-1<s.call(t,e)!==n}):w.filter(t,e,n)}w.filter=function(e,t,n){var i=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===i.nodeType?w.find.matchesSelector(i,e)?[i]:[]:w.find.matches(e,w.grep(t,function(e){return 1===e.nodeType}))},w.fn.extend({find:function(e){var t,n,i=this.length,r=this;if("string"!=typeof e)return this.pushStack(w(e).filter(function(){for(t=0;t<i;t++)if(w.contains(r[t],this))return!0}));for(n=this.pushStack([]),t=0;t<i;t++)w.find(e,r[t],n);return 1<i?w.uniqueSort(n):n},filter:function(e){return this.pushStack(N(this,e||[],!1))},not:function(e){return this.pushStack(N(this,e||[],!0))},is:function(e){return!!N(this,"string"==typeof e&&S.test(e)?w(e):e||[],!1).length}});var A,j=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(w.fn.init=function(e,t,n){var i,r;if(!e)return this;if(n=n||A,"string"==typeof e){if(!(i="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:j.exec(e))||!i[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(i[1]){if(w.merge(this,w.parseHTML(i[1],(t=t instanceof w?t[0]:t)&&t.nodeType?t.ownerDocument||t:m,!0)),D.test(i[1])&&w.isPlainObject(t))for(i in t)p(this[i])?this[i](t[i]):this.attr(i,t[i]);return this}return(r=m.getElementById(i[2]))&&(this[0]=r,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):p(e)?void 0!==n.ready?n.ready(e):e(w):w.makeArray(e,this)}).prototype=w.fn,A=w(m);var O=/^(?:parents|prev(?:Until|All))/,L={children:!0,contents:!0,next:!0,prev:!0};function I(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}w.fn.extend({has:function(e){var t=w(e,this),n=t.length;return this.filter(function(){for(var e=0;e<n;e++)if(w.contains(this,t[e]))return!0})},closest:function(e,t){var n,i=0,r=this.length,o=[],a="string"!=typeof e&&w(e);if(!S.test(e))for(;i<r;i++)for(n=this[i];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(a?-1<a.index(n):1===n.nodeType&&w.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(1<o.length?w.uniqueSort(o):o)},index:function(e){return e?"string"==typeof e?s.call(w(e),this[0]):s.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(w.uniqueSort(w.merge(this.get(),w(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),w.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return T(e,"parentNode")},parentsUntil:function(e,t,n){return T(e,"parentNode",n)},next:function(e){return I(e,"nextSibling")},prev:function(e){return I(e,"previousSibling")},nextAll:function(e){return T(e,"nextSibling")},prevAll:function(e){return T(e,"previousSibling")},nextUntil:function(e,t,n){return T(e,"nextSibling",n)},prevUntil:function(e,t,n){return T(e,"previousSibling",n)},siblings:function(e){return C((e.parentNode||{}).firstChild,e)},children:function(e){return C(e.firstChild)},contents:function(e){return null!=e.contentDocument&&i(e.contentDocument)?e.contentDocument:(k(e,"template")&&(e=e.content||e),w.merge([],e.childNodes))}},function(e,t){w.fn[e]=function(n,i){var r=w.map(this,t,n);return"Until"!==e.slice(-5)&&(i=n),i&&"string"==typeof i&&(r=w.filter(i,r)),1<this.length&&(L[e]||w.uniqueSort(r),O.test(e)&&r.reverse()),this.pushStack(r)}});var q=/[^\x20\t\r\n\f]+/g;function P(e){return e}function H(e){throw e}function R(e,t,n,i){var r;try{e&&p(r=e.promise)?r.call(e).done(t).fail(n):e&&p(r=e.then)?r.call(e,t,n):t.apply(void 0,[e].slice(i))}catch(e){n.apply(void 0,[e])}}w.Callbacks=function(e){var t;e="string"==typeof e?(t={},w.each(e.match(q)||[],function(e,n){t[n]=!0}),t):w.extend({},e);var n,i,r,o,a=[],s=[],l=-1,u=function(){for(o=o||e.once,r=n=!0;s.length;l=-1)for(i=s.shift();++l<a.length;)!1===a[l].apply(i[0],i[1])&&e.stopOnFalse&&(l=a.length,i=!1);e.memory||(i=!1),n=!1,o&&(a=i?[]:"")},c={add:function(){return a&&(i&&!n&&(l=a.length-1,s.push(i)),function t(n){w.each(n,function(n,i){p(i)?e.unique&&c.has(i)||a.push(i):i&&i.length&&"string"!==b(i)&&t(i)})}(arguments),i&&!n&&u()),this},remove:function(){return w.each(arguments,function(e,t){for(var n;-1<(n=w.inArray(t,a,n));)a.splice(n,1),n<=l&&l--}),this},has:function(e){return e?-1<w.inArray(e,a):0<a.length},empty:function(){return a&&(a=[]),this},disable:function(){return o=s=[],a=i="",this},disabled:function(){return!a},lock:function(){return o=s=[],i||n||(a=i=""),this},locked:function(){return!!o},fireWith:function(e,t){return o||(t=[e,(t=t||[]).slice?t.slice():t],s.push(t),n||u()),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!r}};return c},w.extend({Deferred:function(t){var n=[["notify","progress",w.Callbacks("memory"),w.Callbacks("memory"),2],["resolve","done",w.Callbacks("once memory"),w.Callbacks("once memory"),0,"resolved"],["reject","fail",w.Callbacks("once memory"),w.Callbacks("once memory"),1,"rejected"]],i="pending",r={state:function(){return i},always:function(){return o.done(arguments).fail(arguments),this},catch:function(e){return r.then(null,e)},pipe:function(){var e=arguments;return w.Deferred(function(t){w.each(n,function(n,i){var r=p(e[i[4]])&&e[i[4]];o[i[1]](function(){var e=r&&r.apply(this,arguments);e&&p(e.promise)?e.promise().progress(t.notify).done(t.resolve).fail(t.reject):t[i[0]+"With"](this,r?[e]:arguments)})}),e=null}).promise()},then:function(t,i,r){var o=0;function a(t,n,i,r){return function(){var s=this,l=arguments,u=function(){var e,u;if(!(t<o)){if((e=i.apply(s,l))===n.promise())throw new TypeError("Thenable self-resolution");p(u=e&&("object"==typeof e||"function"==typeof e)&&e.then)?r?u.call(e,a(o,n,P,r),a(o,n,H,r)):(o++,u.call(e,a(o,n,P,r),a(o,n,H,r),a(o,n,P,n.notifyWith))):(i!==P&&(s=void 0,l=[e]),(r||n.resolveWith)(s,l))}},c=r?u:function(){try{u()}catch(u){w.Deferred.exceptionHook&&w.Deferred.exceptionHook(u,c.stackTrace),o<=t+1&&(i!==H&&(s=void 0,l=[u]),n.rejectWith(s,l))}};t?c():(w.Deferred.getStackHook&&(c.stackTrace=w.Deferred.getStackHook()),e.setTimeout(c))}}return w.Deferred(function(e){n[0][3].add(a(0,e,p(r)?r:P,e.notifyWith)),n[1][3].add(a(0,e,p(t)?t:P)),n[2][3].add(a(0,e,p(i)?i:H))}).promise()},promise:function(e){return null!=e?w.extend(e,r):r}},o={};return w.each(n,function(e,t){var a=t[2],s=t[5];r[t[1]]=a.add,s&&a.add(function(){i=s},n[3-e][2].disable,n[3-e][3].disable,n[0][2].lock,n[0][3].lock),a.add(t[3].fire),o[t[0]]=function(){return o[t[0]+"With"](this===o?void 0:this,arguments),this},o[t[0]+"With"]=a.fireWith}),r.promise(o),t&&t.call(o,o),o},when:function(e){var t=arguments.length,n=t,i=Array(n),o=r.call(arguments),a=w.Deferred(),s=function(e){return function(n){i[e]=this,o[e]=1<arguments.length?r.call(arguments):n,--t||a.resolveWith(i,o)}};if(t<=1&&(R(e,a.done(s(n)).resolve,a.reject,!t),"pending"===a.state()||p(o[n]&&o[n].then)))return a.then();for(;n--;)R(o[n],s(n),a.reject);return a.promise()}});var F=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;w.Deferred.exceptionHook=function(t,n){e.console&&e.console.warn&&t&&F.test(t.name)&&e.console.warn("jQuery.Deferred exception: "+t.message,t.stack,n)},w.readyException=function(t){e.setTimeout(function(){throw t})};var M=w.Deferred();function B(){m.removeEventListener("DOMContentLoaded",B),e.removeEventListener("load",B),w.ready()}w.fn.ready=function(e){return M.then(e).catch(function(e){w.readyException(e)}),this},w.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--w.readyWait:w.isReady)||(w.isReady=!0)!==e&&0<--w.readyWait||M.resolveWith(m,[w])}}),w.ready.then=M.then,"complete"===m.readyState||"loading"!==m.readyState&&!m.documentElement.doScroll?e.setTimeout(w.ready):(m.addEventListener("DOMContentLoaded",B),e.addEventListener("load",B));var W=function(e,t,n,i,r,o,a){var s=0,l=e.length,u=null==n;if("object"===b(n))for(s in r=!0,n)W(e,t,s,n[s],!0,o,a);else if(void 0!==i&&(r=!0,p(i)||(a=!0),u&&(a?(t.call(e,i),t=null):(u=t,t=function(e,t,n){return u.call(w(e),n)})),t))for(;s<l;s++)t(e[s],n,a?i:i.call(e[s],s,t(e[s],n)));return r?e:u?t.call(e):l?t(e[0],n):o},U=/^-ms-/,Q=/-([a-z])/g;function $(e,t){return t.toUpperCase()}function z(e){return e.replace(U,"ms-").replace(Q,$)}var V=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function X(){this.expando=w.expando+X.uid++}X.uid=1,X.prototype={cache:function(e){var t=e[this.expando];return t||(t={},V(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var i,r=this.cache(e);if("string"==typeof t)r[z(t)]=n;else for(i in t)r[z(i)]=t[i];return r},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][z(t)]},access:function(e,t,n){return void 0===t||t&&"string"==typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,i=e[this.expando];if(void 0!==i){if(void 0!==t){n=(t=Array.isArray(t)?t.map(z):(t=z(t))in i?[t]:t.match(q)||[]).length;for(;n--;)delete i[t[n]]}(void 0===t||w.isEmptyObject(i))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!w.isEmptyObject(t)}};var Y=new X,K=new X,G=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,J=/[A-Z]/g;function Z(e,t,n){var i,r;if(void 0===n&&1===e.nodeType)if(i="data-"+t.replace(J,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(i))){try{n="true"===(r=n)||"false"!==r&&("null"===r?null:r===+r+""?+r:G.test(r)?JSON.parse(r):r)}catch(e){}K.set(e,t,n)}else n=void 0;return n}w.extend({hasData:function(e){return K.hasData(e)||Y.hasData(e)},data:function(e,t,n){return K.access(e,t,n)},removeData:function(e,t){K.remove(e,t)},_data:function(e,t,n){return Y.access(e,t,n)},_removeData:function(e,t){Y.remove(e,t)}}),w.fn.extend({data:function(e,t){var n,i,r,o=this[0],a=o&&o.attributes;if(void 0===e){if(this.length&&(r=K.get(o),1===o.nodeType&&!Y.get(o,"hasDataAttrs"))){for(n=a.length;n--;)a[n]&&0===(i=a[n].name).indexOf("data-")&&(i=z(i.slice(5)),Z(o,i,r[i]));Y.set(o,"hasDataAttrs",!0)}return r}return"object"==typeof e?this.each(function(){K.set(this,e)}):W(this,function(t){var n;if(o&&void 0===t)return void 0!==(n=K.get(o,e))||void 0!==(n=Z(o,e))?n:void 0;this.each(function(){K.set(this,e,t)})},null,t,1<arguments.length,null,!0)},removeData:function(e){return this.each(function(){K.remove(this,e)})}}),w.extend({queue:function(e,t,n){var i;if(e)return i=Y.get(e,t=(t||"fx")+"queue"),n&&(!i||Array.isArray(n)?i=Y.access(e,t,w.makeArray(n)):i.push(n)),i||[]},dequeue:function(e,t){var n=w.queue(e,t=t||"fx"),i=n.length,r=n.shift(),o=w._queueHooks(e,t);"inprogress"===r&&(r=n.shift(),i--),r&&("fx"===t&&n.unshift("inprogress"),delete o.stop,r.call(e,function(){w.dequeue(e,t)},o)),!i&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return Y.get(e,n)||Y.access(e,n,{empty:w.Callbacks("once memory").add(function(){Y.remove(e,[t+"queue",n])})})}}),w.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n?w.queue(this[0],e):void 0===t?this:this.each(function(){var n=w.queue(this,e,t);w._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&w.dequeue(this,e)})},dequeue:function(e){return this.each(function(){w.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,i=1,r=w.Deferred(),o=this,a=this.length,s=function(){--i||r.resolveWith(o,[o])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";a--;)(n=Y.get(o[a],e+"queueHooks"))&&n.empty&&(i++,n.empty.add(s));return s(),r.promise(t)}});var ee=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,te=new RegExp("^(?:([+-])=|)("+ee+")([a-z%]*)$","i"),ne=["Top","Right","Bottom","Left"],ie=m.documentElement,re=function(e){return w.contains(e.ownerDocument,e)},oe={composed:!0};ie.getRootNode&&(re=function(e){return w.contains(e.ownerDocument,e)||e.getRootNode(oe)===e.ownerDocument});var ae=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&re(e)&&"none"===w.css(e,"display")};function se(e,t,n,i){var r,o,a=20,s=i?function(){return i.cur()}:function(){return w.css(e,t,"")},l=s(),u=n&&n[3]||(w.cssNumber[t]?"":"px"),c=e.nodeType&&(w.cssNumber[t]||"px"!==u&&+l)&&te.exec(w.css(e,t));if(c&&c[3]!==u){for(u=u||c[3],c=+(l/=2)||1;a--;)w.style(e,t,c+u),(1-o)*(1-(o=s()/l||.5))<=0&&(a=0),c/=o;w.style(e,t,(c*=2)+u),n=n||[]}return n&&(c=+c||+l||0,r=n[1]?c+(n[1]+1)*n[2]:+n[2],i&&(i.unit=u,i.start=c,i.end=r)),r}var le={};function ue(e,t){for(var n,i,r,o,a,s,l,u=[],c=0,f=e.length;c<f;c++)(i=e[c]).style&&(n=i.style.display,t?("none"===n&&(u[c]=Y.get(i,"display")||null,u[c]||(i.style.display="")),""===i.style.display&&ae(i)&&(u[c]=(l=a=o=void 0,a=(r=i).ownerDocument,(l=le[s=r.nodeName])||(o=a.body.appendChild(a.createElement(s)),l=w.css(o,"display"),o.parentNode.removeChild(o),"none"===l&&(l="block"),le[s]=l)))):"none"!==n&&(u[c]="none",Y.set(i,"display",n)));for(c=0;c<f;c++)null!=u[c]&&(e[c].style.display=u[c]);return e}w.fn.extend({show:function(){return ue(this,!0)},hide:function(){return ue(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){ae(this)?w(this).show():w(this).hide()})}});var ce,fe,de=/^(?:checkbox|radio)$/i,he=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,pe=/^$|^module$|\/(?:java|ecma)script/i;ce=m.createDocumentFragment().appendChild(m.createElement("div")),(fe=m.createElement("input")).setAttribute("type","radio"),fe.setAttribute("checked","checked"),fe.setAttribute("name","t"),ce.appendChild(fe),h.checkClone=ce.cloneNode(!0).cloneNode(!0).lastChild.checked,ce.innerHTML="<textarea>x</textarea>",h.noCloneChecked=!!ce.cloneNode(!0).lastChild.defaultValue,ce.innerHTML="<option></option>",h.option=!!ce.lastChild;var ge={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function me(e,t){var n;return n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&k(e,t)?w.merge([e],n):n}function ve(e,t){for(var n=0,i=e.length;n<i;n++)Y.set(e[n],"globalEval",!t||Y.get(t[n],"globalEval"))}ge.tbody=ge.tfoot=ge.colgroup=ge.caption=ge.thead,ge.th=ge.td,h.option||(ge.optgroup=ge.option=[1,"<select multiple='multiple'>","</select>"]);var ye=/<|&#?\w+;/;function be(e,t,n,i,r){for(var o,a,s,l,u,c,f=t.createDocumentFragment(),d=[],h=0,p=e.length;h<p;h++)if((o=e[h])||0===o)if("object"===b(o))w.merge(d,o.nodeType?[o]:o);else if(ye.test(o)){for(a=a||f.appendChild(t.createElement("div")),s=(he.exec(o)||["",""])[1].toLowerCase(),a.innerHTML=(l=ge[s]||ge._default)[1]+w.htmlPrefilter(o)+l[2],c=l[0];c--;)a=a.lastChild;w.merge(d,a.childNodes),(a=f.firstChild).textContent=""}else d.push(t.createTextNode(o));for(f.textContent="",h=0;o=d[h++];)if(i&&-1<w.inArray(o,i))r&&r.push(o);else if(u=re(o),a=me(f.appendChild(o),"script"),u&&ve(a),n)for(c=0;o=a[c++];)pe.test(o.type||"")&&n.push(o);return f}var _e=/^([^.]*)(?:\.(.+)|)/;function we(){return!0}function Ee(){return!1}function xe(e,t){return e===function(){try{return m.activeElement}catch(e){}}()==("focus"===t)}function Te(e,t,n,i,r,o){var a,s;if("object"==typeof t){for(s in"string"!=typeof n&&(i=i||n,n=void 0),t)Te(e,s,n,i,t[s],o);return e}if(null==i&&null==r?(r=n,i=n=void 0):null==r&&("string"==typeof n?(r=i,i=void 0):(r=i,i=n,n=void 0)),!1===r)r=Ee;else if(!r)return e;return 1===o&&(a=r,(r=function(e){return w().off(e),a.apply(this,arguments)}).guid=a.guid||(a.guid=w.guid++)),e.each(function(){w.event.add(this,t,r,i,n)})}function Ce(e,t,n){n?(Y.set(e,t,!1),w.event.add(e,t,{namespace:!1,handler:function(e){var i,o,a=Y.get(this,t);if(1&e.isTrigger&&this[t]){if(a.length)(w.event.special[t]||{}).delegateType&&e.stopPropagation();else if(a=r.call(arguments),Y.set(this,t,a),i=n(this,t),this[t](),a!==(o=Y.get(this,t))||i?Y.set(this,t,!1):o={},a!==o)return e.stopImmediatePropagation(),e.preventDefault(),o&&o.value}else a.length&&(Y.set(this,t,{value:w.event.trigger(w.extend(a[0],w.Event.prototype),a.slice(1),this)}),e.stopImmediatePropagation())}})):void 0===Y.get(e,t)&&w.event.add(e,t,we)}w.event={global:{},add:function(e,t,n,i,r){var o,a,s,l,u,c,f,d,h,p,g,m=Y.get(e);if(V(e))for(n.handler&&(n=(o=n).handler,r=o.selector),r&&w.find.matchesSelector(ie,r),n.guid||(n.guid=w.guid++),(l=m.events)||(l=m.events=Object.create(null)),(a=m.handle)||(a=m.handle=function(t){return void 0!==w&&w.event.triggered!==t.type?w.event.dispatch.apply(e,arguments):void 0}),u=(t=(t||"").match(q)||[""]).length;u--;)h=g=(s=_e.exec(t[u])||[])[1],p=(s[2]||"").split(".").sort(),h&&(f=w.event.special[h]||{},f=w.event.special[h=(r?f.delegateType:f.bindType)||h]||{},c=w.extend({type:h,origType:g,data:i,handler:n,guid:n.guid,selector:r,needsContext:r&&w.expr.match.needsContext.test(r),namespace:p.join(".")},o),(d=l[h])||((d=l[h]=[]).delegateCount=0,f.setup&&!1!==f.setup.call(e,i,p,a)||e.addEventListener&&e.addEventListener(h,a)),f.add&&(f.add.call(e,c),c.handler.guid||(c.handler.guid=n.guid)),r?d.splice(d.delegateCount++,0,c):d.push(c),w.event.global[h]=!0)},remove:function(e,t,n,i,r){var o,a,s,l,u,c,f,d,h,p,g,m=Y.hasData(e)&&Y.get(e);if(m&&(l=m.events)){for(u=(t=(t||"").match(q)||[""]).length;u--;)if(h=g=(s=_e.exec(t[u])||[])[1],p=(s[2]||"").split(".").sort(),h){for(f=w.event.special[h]||{},d=l[h=(i?f.delegateType:f.bindType)||h]||[],s=s[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=d.length;o--;)c=d[o],!r&&g!==c.origType||n&&n.guid!==c.guid||s&&!s.test(c.namespace)||i&&i!==c.selector&&("**"!==i||!c.selector)||(d.splice(o,1),c.selector&&d.delegateCount--,f.remove&&f.remove.call(e,c));a&&!d.length&&(f.teardown&&!1!==f.teardown.call(e,p,m.handle)||w.removeEvent(e,h,m.handle),delete l[h])}else for(h in l)w.event.remove(e,h+t[u],n,i,!0);w.isEmptyObject(l)&&Y.remove(e,"handle events")}},dispatch:function(e){var t,n,i,r,o,a,s=new Array(arguments.length),l=w.event.fix(e),u=(Y.get(this,"events")||Object.create(null))[l.type]||[],c=w.event.special[l.type]||{};for(s[0]=l,t=1;t<arguments.length;t++)s[t]=arguments[t];if(l.delegateTarget=this,!c.preDispatch||!1!==c.preDispatch.call(this,l)){for(a=w.event.handlers.call(this,l,u),t=0;(r=a[t++])&&!l.isPropagationStopped();)for(l.currentTarget=r.elem,n=0;(o=r.handlers[n++])&&!l.isImmediatePropagationStopped();)l.rnamespace&&!1!==o.namespace&&!l.rnamespace.test(o.namespace)||(l.handleObj=o,l.data=o.data,void 0!==(i=((w.event.special[o.origType]||{}).handle||o.handler).apply(r.elem,s))&&!1===(l.result=i)&&(l.preventDefault(),l.stopPropagation()));return c.postDispatch&&c.postDispatch.call(this,l),l.result}},handlers:function(e,t){var n,i,r,o,a,s=[],l=t.delegateCount,u=e.target;if(l&&u.nodeType&&!("click"===e.type&&1<=e.button))for(;u!==this;u=u.parentNode||this)if(1===u.nodeType&&("click"!==e.type||!0!==u.disabled)){for(o=[],a={},n=0;n<l;n++)void 0===a[r=(i=t[n]).selector+" "]&&(a[r]=i.needsContext?-1<w(r,this).index(u):w.find(r,this,null,[u]).length),a[r]&&o.push(i);o.length&&s.push({elem:u,handlers:o})}return u=this,l<t.length&&s.push({elem:u,handlers:t.slice(l)}),s},addProp:function(e,t){Object.defineProperty(w.Event.prototype,e,{enumerable:!0,configurable:!0,get:p(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]},set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(e){return e[w.expando]?e:new w.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return de.test(t.type)&&t.click&&k(t,"input")&&Ce(t,"click",we),!1},trigger:function(e){var t=this||e;return de.test(t.type)&&t.click&&k(t,"input")&&Ce(t,"click"),!0},_default:function(e){var t=e.target;return de.test(t.type)&&t.click&&k(t,"input")&&Y.get(t,"click")||k(t,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},w.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},w.Event=function(e,t){if(!(this instanceof w.Event))return new w.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?we:Ee,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&w.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[w.expando]=!0},w.Event.prototype={constructor:w.Event,isDefaultPrevented:Ee,isPropagationStopped:Ee,isImmediatePropagationStopped:Ee,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=we,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=we,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=we,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},w.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},w.event.addProp),w.each({focus:"focusin",blur:"focusout"},function(e,t){w.event.special[e]={setup:function(){return Ce(this,e,xe),!1},trigger:function(){return Ce(this,e),!0},_default:function(){return!0},delegateType:t}}),w.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,t){w.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,i=e.relatedTarget,r=e.handleObj;return i&&(i===this||w.contains(this,i))||(e.type=r.origType,n=r.handler.apply(this,arguments),e.type=t),n}}}),w.fn.extend({on:function(e,t,n,i){return Te(this,e,t,n,i)},one:function(e,t,n,i){return Te(this,e,t,n,i,1)},off:function(e,t,n){var i,r;if(e&&e.preventDefault&&e.handleObj)return i=e.handleObj,w(e.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler),this;if("object"==typeof e){for(r in e)this.off(r,t,e[r]);return this}return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=Ee),this.each(function(){w.event.remove(this,e,n,t)})}});var Se=/<script|<style|<link/i,ke=/checked\s*(?:[^=]|=\s*.checked.)/i,De=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function Ne(e,t){return k(e,"table")&&k(11!==t.nodeType?t:t.firstChild,"tr")&&w(e).children("tbody")[0]||e}function Ae(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function je(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Oe(e,t){var n,i,r,o,a,s;if(1===t.nodeType){if(Y.hasData(e)&&(s=Y.get(e).events))for(r in Y.remove(t,"handle events"),s)for(n=0,i=s[r].length;n<i;n++)w.event.add(t,r,s[r][n]);K.hasData(e)&&(o=K.access(e),a=w.extend({},o),K.set(t,a))}}function Le(e,t,n,i){t=o(t);var r,a,s,l,u,c,f=0,d=e.length,g=d-1,m=t[0],v=p(m);if(v||1<d&&"string"==typeof m&&!h.checkClone&&ke.test(m))return e.each(function(r){var o=e.eq(r);v&&(t[0]=m.call(this,r,o.html())),Le(o,t,n,i)});if(d&&(a=(r=be(t,e[0].ownerDocument,!1,e,i)).firstChild,1===r.childNodes.length&&(r=a),a||i)){for(l=(s=w.map(me(r,"script"),Ae)).length;f<d;f++)u=r,f!==g&&(u=w.clone(u,!0,!0),l&&w.merge(s,me(u,"script"))),n.call(e[f],u,f);if(l)for(c=s[s.length-1].ownerDocument,w.map(s,je),f=0;f<l;f++)pe.test((u=s[f]).type||"")&&!Y.access(u,"globalEval")&&w.contains(c,u)&&(u.src&&"module"!==(u.type||"").toLowerCase()?w._evalUrl&&!u.noModule&&w._evalUrl(u.src,{nonce:u.nonce||u.getAttribute("nonce")},c):y(u.textContent.replace(De,""),u,c))}return e}function Ie(e,t,n){for(var i,r=t?w.filter(t,e):e,o=0;null!=(i=r[o]);o++)n||1!==i.nodeType||w.cleanData(me(i)),i.parentNode&&(n&&re(i)&&ve(me(i,"script")),i.parentNode.removeChild(i));return e}w.extend({htmlPrefilter:function(e){return e},clone:function(e,t,n){var i,r,o,a,s,l,u,c=e.cloneNode(!0),f=re(e);if(!(h.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||w.isXMLDoc(e)))for(a=me(c),i=0,r=(o=me(e)).length;i<r;i++)s=o[i],"input"===(u=(l=a[i]).nodeName.toLowerCase())&&de.test(s.type)?l.checked=s.checked:"input"!==u&&"textarea"!==u||(l.defaultValue=s.defaultValue);if(t)if(n)for(o=o||me(e),a=a||me(c),i=0,r=o.length;i<r;i++)Oe(o[i],a[i]);else Oe(e,c);return 0<(a=me(c,"script")).length&&ve(a,!f&&me(e,"script")),c},cleanData:function(e){for(var t,n,i,r=w.event.special,o=0;void 0!==(n=e[o]);o++)if(V(n)){if(t=n[Y.expando]){if(t.events)for(i in t.events)r[i]?w.event.remove(n,i):w.removeEvent(n,i,t.handle);n[Y.expando]=void 0}n[K.expando]&&(n[K.expando]=void 0)}}}),w.fn.extend({detach:function(e){return Ie(this,e,!0)},remove:function(e){return Ie(this,e)},text:function(e){return W(this,function(e){return void 0===e?w.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)})},null,e,arguments.length)},append:function(){return Le(this,arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Ne(this,e).appendChild(e)})},prepend:function(){return Le(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=Ne(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return Le(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return Le(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(w.cleanData(me(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return w.clone(this,e,t)})},html:function(e){return W(this,function(e){var t=this[0]||{},n=0,i=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!Se.test(e)&&!ge[(he.exec(e)||["",""])[1].toLowerCase()]){e=w.htmlPrefilter(e);try{for(;n<i;n++)1===(t=this[n]||{}).nodeType&&(w.cleanData(me(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var e=[];return Le(this,arguments,function(t){var n=this.parentNode;w.inArray(this,e)<0&&(w.cleanData(me(this)),n&&n.replaceChild(t,this))},e)}}),w.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){w.fn[e]=function(e){for(var n,i=[],r=w(e),o=r.length-1,s=0;s<=o;s++)n=s===o?this:this.clone(!0),w(r[s])[t](n),a.apply(i,n.get());return this.pushStack(i)}});var qe=new RegExp("^("+ee+")(?!px)[a-z%]+$","i"),Pe=function(t){var n=t.ownerDocument.defaultView;return n&&n.opener||(n=e),n.getComputedStyle(t)},He=function(e,t,n){var i,r,o={};for(r in t)o[r]=e.style[r],e.style[r]=t[r];for(r in i=n.call(e),t)e.style[r]=o[r];return i},Re=new RegExp(ne.join("|"),"i");function Fe(e,t,n){var i,r,o,a,s=e.style;return(n=n||Pe(e))&&(""!==(a=n.getPropertyValue(t)||n[t])||re(e)||(a=w.style(e,t)),!h.pixelBoxStyles()&&qe.test(a)&&Re.test(t)&&(i=s.width,r=s.minWidth,o=s.maxWidth,s.minWidth=s.maxWidth=s.width=a,a=n.width,s.width=i,s.minWidth=r,s.maxWidth=o)),void 0!==a?a+"":a}function Me(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}!function(){function t(){if(c){u.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",c.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",ie.appendChild(u).appendChild(c);var t=e.getComputedStyle(c);i="1%"!==t.top,l=12===n(t.marginLeft),c.style.right="60%",a=36===n(t.right),r=36===n(t.width),c.style.position="absolute",o=12===n(c.offsetWidth/3),ie.removeChild(u),c=null}}function n(e){return Math.round(parseFloat(e))}var i,r,o,a,s,l,u=m.createElement("div"),c=m.createElement("div");c.style&&(c.style.backgroundClip="content-box",c.cloneNode(!0).style.backgroundClip="",h.clearCloneStyle="content-box"===c.style.backgroundClip,w.extend(h,{boxSizingReliable:function(){return t(),r},pixelBoxStyles:function(){return t(),a},pixelPosition:function(){return t(),i},reliableMarginLeft:function(){return t(),l},scrollboxSize:function(){return t(),o},reliableTrDimensions:function(){var t,n,i,r;return null==s&&(t=m.createElement("table"),n=m.createElement("tr"),i=m.createElement("div"),t.style.cssText="position:absolute;left:-11111px;border-collapse:separate",n.style.cssText="border:1px solid",n.style.height="1px",i.style.height="9px",i.style.display="block",ie.appendChild(t).appendChild(n).appendChild(i),r=e.getComputedStyle(n),s=parseInt(r.height,10)+parseInt(r.borderTopWidth,10)+parseInt(r.borderBottomWidth,10)===n.offsetHeight,ie.removeChild(t)),s}}))}();var Be=["Webkit","Moz","ms"],We=m.createElement("div").style,Ue={};function Qe(e){return w.cssProps[e]||Ue[e]||(e in We?e:Ue[e]=function(e){for(var t=e[0].toUpperCase()+e.slice(1),n=Be.length;n--;)if((e=Be[n]+t)in We)return e}(e)||e)}var $e=/^(none|table(?!-c[ea]).+)/,ze=/^--/,Ve={position:"absolute",visibility:"hidden",display:"block"},Xe={letterSpacing:"0",fontWeight:"400"};function Ye(e,t,n){var i=te.exec(t);return i?Math.max(0,i[2]-(n||0))+(i[3]||"px"):t}function Ke(e,t,n,i,r,o){var a="width"===t?1:0,s=0,l=0;if(n===(i?"border":"content"))return 0;for(;a<4;a+=2)"margin"===n&&(l+=w.css(e,n+ne[a],!0,r)),i?("content"===n&&(l-=w.css(e,"padding"+ne[a],!0,r)),"margin"!==n&&(l-=w.css(e,"border"+ne[a]+"Width",!0,r))):(l+=w.css(e,"padding"+ne[a],!0,r),"padding"!==n?l+=w.css(e,"border"+ne[a]+"Width",!0,r):s+=w.css(e,"border"+ne[a]+"Width",!0,r));return!i&&0<=o&&(l+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-o-l-s-.5))||0),l}function Ge(e,t,n){var i=Pe(e),r=(!h.boxSizingReliable()||n)&&"border-box"===w.css(e,"boxSizing",!1,i),o=r,a=Fe(e,t,i),s="offset"+t[0].toUpperCase()+t.slice(1);if(qe.test(a)){if(!n)return a;a="auto"}return(!h.boxSizingReliable()&&r||!h.reliableTrDimensions()&&k(e,"tr")||"auto"===a||!parseFloat(a)&&"inline"===w.css(e,"display",!1,i))&&e.getClientRects().length&&(r="border-box"===w.css(e,"boxSizing",!1,i),(o=s in e)&&(a=e[s])),(a=parseFloat(a)||0)+Ke(e,t,n||(r?"border":"content"),o,i,a)+"px"}function Je(e,t,n,i,r){return new Je.prototype.init(e,t,n,i,r)}w.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Fe(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(e,t,n,i){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var r,o,a,s=z(t),l=ze.test(t),u=e.style;if(l||(t=Qe(s)),a=w.cssHooks[t]||w.cssHooks[s],void 0===n)return a&&"get"in a&&void 0!==(r=a.get(e,!1,i))?r:u[t];"string"==(o=typeof n)&&(r=te.exec(n))&&r[1]&&(n=se(e,t,r),o="number"),null!=n&&n==n&&("number"!==o||l||(n+=r&&r[3]||(w.cssNumber[s]?"":"px")),h.clearCloneStyle||""!==n||0!==t.indexOf("background")||(u[t]="inherit"),a&&"set"in a&&void 0===(n=a.set(e,n,i))||(l?u.setProperty(t,n):u[t]=n))}},css:function(e,t,n,i){var r,o,a,s=z(t);return ze.test(t)||(t=Qe(s)),(a=w.cssHooks[t]||w.cssHooks[s])&&"get"in a&&(r=a.get(e,!0,n)),void 0===r&&(r=Fe(e,t,i)),"normal"===r&&t in Xe&&(r=Xe[t]),""===n||n?(o=parseFloat(r),!0===n||isFinite(o)?o||0:r):r}}),w.each(["height","width"],function(e,t){w.cssHooks[t]={get:function(e,n,i){if(n)return!$e.test(w.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?Ge(e,t,i):He(e,Ve,function(){return Ge(e,t,i)})},set:function(e,n,i){var r,o=Pe(e),a=!h.scrollboxSize()&&"absolute"===o.position,s=(a||i)&&"border-box"===w.css(e,"boxSizing",!1,o),l=i?Ke(e,t,i,s,o):0;return s&&a&&(l-=Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(o[t])-Ke(e,t,"border",!1,o)-.5)),l&&(r=te.exec(n))&&"px"!==(r[3]||"px")&&(e.style[t]=n,n=w.css(e,t)),Ye(0,n,l)}}}),w.cssHooks.marginLeft=Me(h.reliableMarginLeft,function(e,t){if(t)return(parseFloat(Fe(e,"marginLeft"))||e.getBoundingClientRect().left-He(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px"}),w.each({margin:"",padding:"",border:"Width"},function(e,t){w.cssHooks[e+t]={expand:function(n){for(var i=0,r={},o="string"==typeof n?n.split(" "):[n];i<4;i++)r[e+ne[i]+t]=o[i]||o[i-2]||o[0];return r}},"margin"!==e&&(w.cssHooks[e+t].set=Ye)}),w.fn.extend({css:function(e,t){return W(this,function(e,t,n){var i,r,o={},a=0;if(Array.isArray(t)){for(i=Pe(e),r=t.length;a<r;a++)o[t[a]]=w.css(e,t[a],!1,i);return o}return void 0!==n?w.style(e,t,n):w.css(e,t)},e,t,1<arguments.length)}}),((w.Tween=Je).prototype={constructor:Je,init:function(e,t,n,i,r,o){this.elem=e,this.prop=n,this.easing=r||w.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=i,this.unit=o||(w.cssNumber[n]?"":"px")},cur:function(){var e=Je.propHooks[this.prop];return e&&e.get?e.get(this):Je.propHooks._default.get(this)},run:function(e){var t,n=Je.propHooks[this.prop];return this.pos=t=this.options.duration?w.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):Je.propHooks._default.set(this),this}}).init.prototype=Je.prototype,(Je.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=w.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){w.fx.step[e.prop]?w.fx.step[e.prop](e):1!==e.elem.nodeType||!w.cssHooks[e.prop]&&null==e.elem.style[Qe(e.prop)]?e.elem[e.prop]=e.now:w.style(e.elem,e.prop,e.now+e.unit)}}}).scrollTop=Je.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},w.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},w.fx=Je.prototype.init,w.fx.step={};var Ze,et,tt,nt,it=/^(?:toggle|show|hide)$/,rt=/queueHooks$/;function ot(){et&&(!1===m.hidden&&e.requestAnimationFrame?e.requestAnimationFrame(ot):e.setTimeout(ot,w.fx.interval),w.fx.tick())}function at(){return e.setTimeout(function(){Ze=void 0}),Ze=Date.now()}function st(e,t){var n,i=0,r={height:e};for(t=t?1:0;i<4;i+=2-t)r["margin"+(n=ne[i])]=r["padding"+n]=e;return t&&(r.opacity=r.width=e),r}function lt(e,t,n){for(var i,r=(ut.tweeners[t]||[]).concat(ut.tweeners["*"]),o=0,a=r.length;o<a;o++)if(i=r[o].call(n,t,e))return i}function ut(e,t,n){var i,r,o=0,a=ut.prefilters.length,s=w.Deferred().always(function(){delete l.elem}),l=function(){if(r)return!1;for(var t=Ze||at(),n=Math.max(0,u.startTime+u.duration-t),i=1-(n/u.duration||0),o=0,a=u.tweens.length;o<a;o++)u.tweens[o].run(i);return s.notifyWith(e,[u,i,n]),i<1&&a?n:(a||s.notifyWith(e,[u,1,0]),s.resolveWith(e,[u]),!1)},u=s.promise({elem:e,props:w.extend({},t),opts:w.extend(!0,{specialEasing:{},easing:w.easing._default},n),originalProperties:t,originalOptions:n,startTime:Ze||at(),duration:n.duration,tweens:[],createTween:function(t,n){var i=w.Tween(e,u.opts,t,n,u.opts.specialEasing[t]||u.opts.easing);return u.tweens.push(i),i},stop:function(t){var n=0,i=t?u.tweens.length:0;if(r)return this;for(r=!0;n<i;n++)u.tweens[n].run(1);return t?(s.notifyWith(e,[u,1,0]),s.resolveWith(e,[u,t])):s.rejectWith(e,[u,t]),this}}),c=u.props;for(function(e,t){var n,i,r,o,a;for(n in e)if(r=t[i=z(n)],o=e[n],Array.isArray(o)&&(r=o[1],o=e[n]=o[0]),n!==i&&(e[i]=o,delete e[n]),(a=w.cssHooks[i])&&"expand"in a)for(n in o=a.expand(o),delete e[i],o)n in e||(e[n]=o[n],t[n]=r);else t[i]=r}(c,u.opts.specialEasing);o<a;o++)if(i=ut.prefilters[o].call(u,e,c,u.opts))return p(i.stop)&&(w._queueHooks(u.elem,u.opts.queue).stop=i.stop.bind(i)),i;return w.map(c,lt,u),p(u.opts.start)&&u.opts.start.call(e,u),u.progress(u.opts.progress).done(u.opts.done,u.opts.complete).fail(u.opts.fail).always(u.opts.always),w.fx.timer(w.extend(l,{elem:e,anim:u,queue:u.opts.queue})),u}w.Animation=w.extend(ut,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return se(n.elem,e,te.exec(t),n),n}]},tweener:function(e,t){p(e)?(t=e,e=["*"]):e=e.match(q);for(var n,i=0,r=e.length;i<r;i++)(ut.tweeners[n=e[i]]=ut.tweeners[n]||[]).unshift(t)},prefilters:[function(e,t,n){var i,r,o,a,s,l,u,c,f="width"in t||"height"in t,d=this,h={},p=e.style,g=e.nodeType&&ae(e),m=Y.get(e,"fxshow");for(i in n.queue||(null==(a=w._queueHooks(e,"fx")).unqueued&&(a.unqueued=0,s=a.empty.fire,a.empty.fire=function(){a.unqueued||s()}),a.unqueued++,d.always(function(){d.always(function(){a.unqueued--,w.queue(e,"fx").length||a.empty.fire()})})),t)if(it.test(r=t[i])){if(delete t[i],o=o||"toggle"===r,r===(g?"hide":"show")){if("show"!==r||!m||void 0===m[i])continue;g=!0}h[i]=m&&m[i]||w.style(e,i)}if((l=!w.isEmptyObject(t))||!w.isEmptyObject(h))for(i in f&&1===e.nodeType&&(n.overflow=[p.overflow,p.overflowX,p.overflowY],null==(u=m&&m.display)&&(u=Y.get(e,"display")),"none"===(c=w.css(e,"display"))&&(u?c=u:(ue([e],!0),u=e.style.display||u,c=w.css(e,"display"),ue([e]))),("inline"===c||"inline-block"===c&&null!=u)&&"none"===w.css(e,"float")&&(l||(d.done(function(){p.display=u}),null==u&&(u="none"===(c=p.display)?"":c)),p.display="inline-block")),n.overflow&&(p.overflow="hidden",d.always(function(){p.overflow=n.overflow[0],p.overflowX=n.overflow[1],p.overflowY=n.overflow[2]})),l=!1,h)l||(m?"hidden"in m&&(g=m.hidden):m=Y.access(e,"fxshow",{display:u}),o&&(m.hidden=!g),g&&ue([e],!0),d.done(function(){for(i in g||ue([e]),Y.remove(e,"fxshow"),h)w.style(e,i,h[i])})),l=lt(g?m[i]:0,i,d),i in m||(m[i]=l.start,g&&(l.end=l.start,l.start=0))}],prefilter:function(e,t){t?ut.prefilters.unshift(e):ut.prefilters.push(e)}}),w.speed=function(e,t,n){var i=e&&"object"==typeof e?w.extend({},e):{complete:n||!n&&t||p(e)&&e,duration:e,easing:n&&t||t&&!p(t)&&t};return w.fx.off?i.duration=0:"number"!=typeof i.duration&&(i.duration=i.duration in w.fx.speeds?w.fx.speeds[i.duration]:w.fx.speeds._default),null!=i.queue&&!0!==i.queue||(i.queue="fx"),i.old=i.complete,i.complete=function(){p(i.old)&&i.old.call(this),i.queue&&w.dequeue(this,i.queue)},i},w.fn.extend({fadeTo:function(e,t,n,i){return this.filter(ae).css("opacity",0).show().end().animate({opacity:t},e,n,i)},animate:function(e,t,n,i){var r=w.isEmptyObject(e),o=w.speed(t,n,i),a=function(){var t=ut(this,w.extend({},e),o);(r||Y.get(this,"finish"))&&t.stop(!0)};return a.finish=a,r||!1===o.queue?this.each(a):this.queue(o.queue,a)},stop:function(e,t,n){var i=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=t,t=e,e=void 0),t&&this.queue(e||"fx",[]),this.each(function(){var t=!0,r=null!=e&&e+"queueHooks",o=w.timers,a=Y.get(this);if(r)a[r]&&a[r].stop&&i(a[r]);else for(r in a)a[r]&&a[r].stop&&rt.test(r)&&i(a[r]);for(r=o.length;r--;)o[r].elem!==this||null!=e&&o[r].queue!==e||(o[r].anim.stop(n),t=!1,o.splice(r,1));!t&&n||w.dequeue(this,e)})},finish:function(e){return!1!==e&&(e=e||"fx"),this.each(function(){var t,n=Y.get(this),i=n[e+"queue"],r=n[e+"queueHooks"],o=w.timers,a=i?i.length:0;for(n.finish=!0,w.queue(this,e,[]),r&&r.stop&&r.stop.call(this,!0),t=o.length;t--;)o[t].elem===this&&o[t].queue===e&&(o[t].anim.stop(!0),o.splice(t,1));for(t=0;t<a;t++)i[t]&&i[t].finish&&i[t].finish.call(this);delete n.finish})}}),w.each(["toggle","show","hide"],function(e,t){var n=w.fn[t];w.fn[t]=function(e,i,r){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(st(t,!0),e,i,r)}}),w.each({slideDown:st("show"),slideUp:st("hide"),slideToggle:st("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){w.fn[e]=function(e,n,i){return this.animate(t,e,n,i)}}),w.timers=[],w.fx.tick=function(){var e,t=0,n=w.timers;for(Ze=Date.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||w.fx.stop(),Ze=void 0},w.fx.timer=function(e){w.timers.push(e),w.fx.start()},w.fx.interval=13,w.fx.start=function(){et||(et=!0,ot())},w.fx.stop=function(){et=null},w.fx.speeds={slow:600,fast:200,_default:400},w.fn.delay=function(t,n){return t=w.fx&&w.fx.speeds[t]||t,this.queue(n=n||"fx",function(n,i){var r=e.setTimeout(n,t);i.stop=function(){e.clearTimeout(r)}})},tt=m.createElement("input"),nt=m.createElement("select").appendChild(m.createElement("option")),tt.type="checkbox",h.checkOn=""!==tt.value,h.optSelected=nt.selected,(tt=m.createElement("input")).value="t",tt.type="radio",h.radioValue="t"===tt.value;var ct,ft=w.expr.attrHandle;w.fn.extend({attr:function(e,t){return W(this,w.attr,e,t,1<arguments.length)},removeAttr:function(e){return this.each(function(){w.removeAttr(this,e)})}}),w.extend({attr:function(e,t,n){var i,r,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===e.getAttribute?w.prop(e,t,n):(1===o&&w.isXMLDoc(e)||(r=w.attrHooks[t.toLowerCase()]||(w.expr.match.bool.test(t)?ct:void 0)),void 0!==n?null===n?void w.removeAttr(e,t):r&&"set"in r&&void 0!==(i=r.set(e,n,t))?i:(e.setAttribute(t,n+""),n):r&&"get"in r&&null!==(i=r.get(e,t))?i:null==(i=w.find.attr(e,t))?void 0:i)},attrHooks:{type:{set:function(e,t){if(!h.radioValue&&"radio"===t&&k(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,i=0,r=t&&t.match(q);if(r&&1===e.nodeType)for(;n=r[i++];)e.removeAttribute(n)}}),ct={set:function(e,t,n){return!1===t?w.removeAttr(e,n):e.setAttribute(n,n),n}},w.each(w.expr.match.bool.source.match(/\w+/g),function(e,t){var n=ft[t]||w.find.attr;ft[t]=function(e,t,i){var r,o,a=t.toLowerCase();return i||(o=ft[a],ft[a]=r,r=null!=n(e,t,i)?a:null,ft[a]=o),r}});var dt=/^(?:input|select|textarea|button)$/i,ht=/^(?:a|area)$/i;function pt(e){return(e.match(q)||[]).join(" ")}function gt(e){return e.getAttribute&&e.getAttribute("class")||""}function mt(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(q)||[]}w.fn.extend({prop:function(e,t){return W(this,w.prop,e,t,1<arguments.length)},removeProp:function(e){return this.each(function(){delete this[w.propFix[e]||e]})}}),w.extend({prop:function(e,t,n){var i,r,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&w.isXMLDoc(e)||(r=w.propHooks[t=w.propFix[t]||t]),void 0!==n?r&&"set"in r&&void 0!==(i=r.set(e,n,t))?i:e[t]=n:r&&"get"in r&&null!==(i=r.get(e,t))?i:e[t]},propHooks:{tabIndex:{get:function(e){var t=w.find.attr(e,"tabindex");return t?parseInt(t,10):dt.test(e.nodeName)||ht.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),h.optSelected||(w.propHooks.selected={get:function(e){return null},set:function(e){}}),w.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){w.propFix[this.toLowerCase()]=this}),w.fn.extend({addClass:function(e){var t,n,i,r,o,a,s,l=0;if(p(e))return this.each(function(t){w(this).addClass(e.call(this,t,gt(this)))});if((t=mt(e)).length)for(;n=this[l++];)if(r=gt(n),i=1===n.nodeType&&" "+pt(r)+" "){for(a=0;o=t[a++];)i.indexOf(" "+o+" ")<0&&(i+=o+" ");r!==(s=pt(i))&&n.setAttribute("class",s)}return this},removeClass:function(e){var t,n,i,r,o,a,s,l=0;if(p(e))return this.each(function(t){w(this).removeClass(e.call(this,t,gt(this)))});if(!arguments.length)return this.attr("class","");if((t=mt(e)).length)for(;n=this[l++];)if(r=gt(n),i=1===n.nodeType&&" "+pt(r)+" "){for(a=0;o=t[a++];)for(;-1<i.indexOf(" "+o+" ");)i=i.replace(" "+o+" "," ");r!==(s=pt(i))&&n.setAttribute("class",s)}return this},toggleClass:function(e,t){var n=typeof e,i="string"===n||Array.isArray(e);return"boolean"==typeof t&&i?t?this.addClass(e):this.removeClass(e):p(e)?this.each(function(n){w(this).toggleClass(e.call(this,n,gt(this),t),t)}):this.each(function(){var t,r,o,a;if(i)for(r=0,o=w(this),a=mt(e);t=a[r++];)o.hasClass(t)?o.removeClass(t):o.addClass(t);else void 0!==e&&"boolean"!==n||((t=gt(this))&&Y.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||!1===e?"":Y.get(this,"__className__")||""))})},hasClass:function(e){var t,n,i=0;for(t=" "+e+" ";n=this[i++];)if(1===n.nodeType&&-1<(" "+pt(gt(n))+" ").indexOf(t))return!0;return!1}});var vt=/\r/g;w.fn.extend({val:function(e){var t,n,i,r=this[0];return arguments.length?(i=p(e),this.each(function(n){var r;1===this.nodeType&&(null==(r=i?e.call(this,n,w(this).val()):e)?r="":"number"==typeof r?r+="":Array.isArray(r)&&(r=w.map(r,function(e){return null==e?"":e+""})),(t=w.valHooks[this.type]||w.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,r,"value")||(this.value=r))})):r?(t=w.valHooks[r.type]||w.valHooks[r.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(r,"value"))?n:"string"==typeof(n=r.value)?n.replace(vt,""):null==n?"":n:void 0}}),w.extend({valHooks:{option:{get:function(e){var t=w.find.attr(e,"value");return null!=t?t:pt(w.text(e))}},select:{get:function(e){var t,n,i,r=e.options,o=e.selectedIndex,a="select-one"===e.type,s=a?null:[],l=a?o+1:r.length;for(i=o<0?l:a?o:0;i<l;i++)if(((n=r[i]).selected||i===o)&&!n.disabled&&(!n.parentNode.disabled||!k(n.parentNode,"optgroup"))){if(t=w(n).val(),a)return t;s.push(t)}return s},set:function(e,t){for(var n,i,r=e.options,o=w.makeArray(t),a=r.length;a--;)((i=r[a]).selected=-1<w.inArray(w.valHooks.option.get(i),o))&&(n=!0);return n||(e.selectedIndex=-1),o}}}}),w.each(["radio","checkbox"],function(){w.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=-1<w.inArray(w(e).val(),t)}},h.checkOn||(w.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})}),h.focusin="onfocusin"in e;var yt=/^(?:focusinfocus|focusoutblur)$/,bt=function(e){e.stopPropagation()};w.extend(w.event,{trigger:function(t,n,i,r){var o,a,s,l,u,f,d,h,v=[i||m],y=c.call(t,"type")?t.type:t,b=c.call(t,"namespace")?t.namespace.split("."):[];if(a=h=s=i=i||m,3!==i.nodeType&&8!==i.nodeType&&!yt.test(y+w.event.triggered)&&(-1<y.indexOf(".")&&(y=(b=y.split(".")).shift(),b.sort()),u=y.indexOf(":")<0&&"on"+y,(t=t[w.expando]?t:new w.Event(y,"object"==typeof t&&t)).isTrigger=r?2:3,t.namespace=b.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+b.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=i),n=null==n?[t]:w.makeArray(n,[t]),d=w.event.special[y]||{},r||!d.trigger||!1!==d.trigger.apply(i,n))){if(!r&&!d.noBubble&&!g(i)){for(yt.test((l=d.delegateType||y)+y)||(a=a.parentNode);a;a=a.parentNode)v.push(a),s=a;s===(i.ownerDocument||m)&&v.push(s.defaultView||s.parentWindow||e)}for(o=0;(a=v[o++])&&!t.isPropagationStopped();)h=a,t.type=1<o?l:d.bindType||y,(f=(Y.get(a,"events")||Object.create(null))[t.type]&&Y.get(a,"handle"))&&f.apply(a,n),(f=u&&a[u])&&f.apply&&V(a)&&(t.result=f.apply(a,n),!1===t.result&&t.preventDefault());return t.type=y,r||t.isDefaultPrevented()||d._default&&!1!==d._default.apply(v.pop(),n)||!V(i)||u&&p(i[y])&&!g(i)&&((s=i[u])&&(i[u]=null),w.event.triggered=y,t.isPropagationStopped()&&h.addEventListener(y,bt),i[y](),t.isPropagationStopped()&&h.removeEventListener(y,bt),w.event.triggered=void 0,s&&(i[u]=s)),t.result}},simulate:function(e,t,n){var i=w.extend(new w.Event,n,{type:e,isSimulated:!0});w.event.trigger(i,null,t)}}),w.fn.extend({trigger:function(e,t){return this.each(function(){w.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return w.event.trigger(e,t,n,!0)}}),h.focusin||w.each({focus:"focusin",blur:"focusout"},function(e,t){var n=function(e){w.event.simulate(t,e.target,w.event.fix(e))};w.event.special[t]={setup:function(){var i=this.ownerDocument||this.document||this,r=Y.access(i,t);r||i.addEventListener(e,n,!0),Y.access(i,t,(r||0)+1)},teardown:function(){var i=this.ownerDocument||this.document||this,r=Y.access(i,t)-1;r?Y.access(i,t,r):(i.removeEventListener(e,n,!0),Y.remove(i,t))}}});var _t=e.location,wt={guid:Date.now()},Et=/\?/;w.parseXML=function(t){var n,i;if(!t||"string"!=typeof t)return null;try{n=(new e.DOMParser).parseFromString(t,"text/xml")}catch(t){}return i=n&&n.getElementsByTagName("parsererror")[0],n&&!i||w.error("Invalid XML: "+(i?w.map(i.childNodes,function(e){return e.textContent}).join("\n"):t)),n};var xt=/\[\]$/,Tt=/\r?\n/g,Ct=/^(?:submit|button|image|reset|file)$/i,St=/^(?:input|select|textarea|keygen)/i;function kt(e,t,n,i){var r;if(Array.isArray(t))w.each(t,function(t,r){n||xt.test(e)?i(e,r):kt(e+"["+("object"==typeof r&&null!=r?t:"")+"]",r,n,i)});else if(n||"object"!==b(t))i(e,t);else for(r in t)kt(e+"["+r+"]",t[r],n,i)}w.param=function(e,t){var n,i=[],r=function(e,t){var n=p(t)?t():t;i[i.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!w.isPlainObject(e))w.each(e,function(){r(this.name,this.value)});else for(n in e)kt(n,e[n],t,r);return i.join("&")},w.fn.extend({serialize:function(){return w.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=w.prop(this,"elements");return e?w.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!w(this).is(":disabled")&&St.test(this.nodeName)&&!Ct.test(e)&&(this.checked||!de.test(e))}).map(function(e,t){var n=w(this).val();return null==n?null:Array.isArray(n)?w.map(n,function(e){return{name:t.name,value:e.replace(Tt,"\r\n")}}):{name:t.name,value:n.replace(Tt,"\r\n")}}).get()}});var Dt=/%20/g,Nt=/#.*$/,At=/([?&])_=[^&]*/,jt=/^(.*?):[ \t]*([^\r\n]*)$/gm,Ot=/^(?:GET|HEAD)$/,Lt=/^\/\//,It={},qt={},Pt="*/".concat("*"),Ht=m.createElement("a");function Rt(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var i,r=0,o=t.toLowerCase().match(q)||[];if(p(n))for(;i=o[r++];)"+"===i[0]?(i=i.slice(1)||"*",(e[i]=e[i]||[]).unshift(n)):(e[i]=e[i]||[]).push(n)}}function Ft(e,t,n,i){var r={},o=e===qt;function a(s){var l;return r[s]=!0,w.each(e[s]||[],function(e,s){var u=s(t,n,i);return"string"!=typeof u||o||r[u]?o?!(l=u):void 0:(t.dataTypes.unshift(u),a(u),!1)}),l}return a(t.dataTypes[0])||!r["*"]&&a("*")}function Mt(e,t){var n,i,r=w.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((r[n]?e:i||(i={}))[n]=t[n]);return i&&w.extend(!0,e,i),e}Ht.href=_t.href,w.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:_t.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(_t.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Pt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":w.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Mt(Mt(e,w.ajaxSettings),t):Mt(w.ajaxSettings,e)},ajaxPrefilter:Rt(It),ajaxTransport:Rt(qt),ajax:function(t,n){"object"==typeof t&&(n=t,t=void 0);var i,r,o,a,s,l,u,c,f,d,h=w.ajaxSetup({},n=n||{}),p=h.context||h,g=h.context&&(p.nodeType||p.jquery)?w(p):w.event,v=w.Deferred(),y=w.Callbacks("once memory"),b=h.statusCode||{},_={},E={},x="canceled",T={readyState:0,getResponseHeader:function(e){var t;if(u){if(!a)for(a={};t=jt.exec(o);)a[t[1].toLowerCase()+" "]=(a[t[1].toLowerCase()+" "]||[]).concat(t[2]);t=a[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return u?o:null},setRequestHeader:function(e,t){return null==u&&(e=E[e.toLowerCase()]=E[e.toLowerCase()]||e,_[e]=t),this},overrideMimeType:function(e){return null==u&&(h.mimeType=e),this},statusCode:function(e){var t;if(e)if(u)T.always(e[T.status]);else for(t in e)b[t]=[b[t],e[t]];return this},abort:function(e){var t=e||x;return i&&i.abort(t),C(0,t),this}};if(v.promise(T),h.url=((t||h.url||_t.href)+"").replace(Lt,_t.protocol+"//"),h.type=n.method||n.type||h.method||h.type,h.dataTypes=(h.dataType||"*").toLowerCase().match(q)||[""],null==h.crossDomain){l=m.createElement("a");try{l.href=h.url,l.href=l.href,h.crossDomain=Ht.protocol+"//"+Ht.host!=l.protocol+"//"+l.host}catch(t){h.crossDomain=!0}}if(h.data&&h.processData&&"string"!=typeof h.data&&(h.data=w.param(h.data,h.traditional)),Ft(It,h,n,T),u)return T;for(f in(c=w.event&&h.global)&&0==w.active++&&w.event.trigger("ajaxStart"),h.type=h.type.toUpperCase(),h.hasContent=!Ot.test(h.type),r=h.url.replace(Nt,""),h.hasContent?h.data&&h.processData&&0===(h.contentType||"").indexOf("application/x-www-form-urlencoded")&&(h.data=h.data.replace(Dt,"+")):(d=h.url.slice(r.length),h.data&&(h.processData||"string"==typeof h.data)&&(r+=(Et.test(r)?"&":"?")+h.data,delete h.data),!1===h.cache&&(r=r.replace(At,"$1"),d=(Et.test(r)?"&":"?")+"_="+wt.guid+++d),h.url=r+d),h.ifModified&&(w.lastModified[r]&&T.setRequestHeader("If-Modified-Since",w.lastModified[r]),w.etag[r]&&T.setRequestHeader("If-None-Match",w.etag[r])),(h.data&&h.hasContent&&!1!==h.contentType||n.contentType)&&T.setRequestHeader("Content-Type",h.contentType),T.setRequestHeader("Accept",h.dataTypes[0]&&h.accepts[h.dataTypes[0]]?h.accepts[h.dataTypes[0]]+("*"!==h.dataTypes[0]?", "+Pt+"; q=0.01":""):h.accepts["*"]),h.headers)T.setRequestHeader(f,h.headers[f]);if(h.beforeSend&&(!1===h.beforeSend.call(p,T,h)||u))return T.abort();if(x="abort",y.add(h.complete),T.done(h.success),T.fail(h.error),i=Ft(qt,h,n,T)){if(T.readyState=1,c&&g.trigger("ajaxSend",[T,h]),u)return T;h.async&&0<h.timeout&&(s=e.setTimeout(function(){T.abort("timeout")},h.timeout));try{u=!1,i.send(_,C)}catch(t){if(u)throw t;C(-1,t)}}else C(-1,"No Transport");function C(t,n,a,l){var f,d,m,_,E,x=n;u||(u=!0,s&&e.clearTimeout(s),i=void 0,o=l||"",T.readyState=0<t?4:0,f=200<=t&&t<300||304===t,a&&(_=function(e,t,n){for(var i,r,o,a,s=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),void 0===i&&(i=e.mimeType||t.getResponseHeader("Content-Type"));if(i)for(r in s)if(s[r]&&s[r].test(i)){l.unshift(r);break}if(l[0]in n)o=l[0];else{for(r in n){if(!l[0]||e.converters[r+" "+l[0]]){o=r;break}a||(a=r)}o=o||a}if(o)return o!==l[0]&&l.unshift(o),n[o]}(h,T,a)),!f&&-1<w.inArray("script",h.dataTypes)&&w.inArray("json",h.dataTypes)<0&&(h.converters["text script"]=function(){}),_=function(e,t,n,i){var r,o,a,s,l,u={},c=e.dataTypes.slice();if(c[1])for(a in e.converters)u[a.toLowerCase()]=e.converters[a];for(o=c.shift();o;)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!l&&i&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=o,o=c.shift())if("*"===o)o=l;else if("*"!==l&&l!==o){if(!(a=u[l+" "+o]||u["* "+o]))for(r in u)if((s=r.split(" "))[1]===o&&(a=u[l+" "+s[0]]||u["* "+s[0]])){!0===a?a=u[r]:!0!==u[r]&&(o=s[0],c.unshift(s[1]));break}if(!0!==a)if(a&&e.throws)t=a(t);else try{t=a(t)}catch(e){return{state:"parsererror",error:a?e:"No conversion from "+l+" to "+o}}}return{state:"success",data:t}}(h,_,T,f),f?(h.ifModified&&((E=T.getResponseHeader("Last-Modified"))&&(w.lastModified[r]=E),(E=T.getResponseHeader("etag"))&&(w.etag[r]=E)),204===t||"HEAD"===h.type?x="nocontent":304===t?x="notmodified":(x=_.state,d=_.data,f=!(m=_.error))):(m=x,!t&&x||(x="error",t<0&&(t=0))),T.status=t,T.statusText=(n||x)+"",f?v.resolveWith(p,[d,x,T]):v.rejectWith(p,[T,x,m]),T.statusCode(b),b=void 0,c&&g.trigger(f?"ajaxSuccess":"ajaxError",[T,h,f?d:m]),y.fireWith(p,[T,x]),c&&(g.trigger("ajaxComplete",[T,h]),--w.active||w.event.trigger("ajaxStop")))}return T},getJSON:function(e,t,n){return w.get(e,t,n,"json")},getScript:function(e,t){return w.get(e,void 0,t,"script")}}),w.each(["get","post"],function(e,t){w[t]=function(e,n,i,r){return p(n)&&(r=r||i,i=n,n=void 0),w.ajax(w.extend({url:e,type:t,dataType:r,data:n,success:i},w.isPlainObject(e)&&e))}}),w.ajaxPrefilter(function(e){var t;for(t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")}),w._evalUrl=function(e,t,n){return w.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){w.globalEval(e,t,n)}})},w.fn.extend({wrapAll:function(e){var t;return this[0]&&(p(e)&&(e=e.call(this[0])),t=w(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e}).append(this)),this},wrapInner:function(e){return p(e)?this.each(function(t){w(this).wrapInner(e.call(this,t))}):this.each(function(){var t=w(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=p(e);return this.each(function(n){w(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(e){return this.parent(e).not("body").each(function(){w(this).replaceWith(this.childNodes)}),this}}),w.expr.pseudos.hidden=function(e){return!w.expr.pseudos.visible(e)},w.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},w.ajaxSettings.xhr=function(){try{return new e.XMLHttpRequest}catch(t){}};var Bt={0:200,1223:204},Wt=w.ajaxSettings.xhr();h.cors=!!Wt&&"withCredentials"in Wt,h.ajax=Wt=!!Wt,w.ajaxTransport(function(t){var n,i;if(h.cors||Wt&&!t.crossDomain)return{send:function(r,o){var a,s=t.xhr();if(s.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(a in t.xhrFields)s[a]=t.xhrFields[a];for(a in t.mimeType&&s.overrideMimeType&&s.overrideMimeType(t.mimeType),t.crossDomain||r["X-Requested-With"]||(r["X-Requested-With"]="XMLHttpRequest"),r)s.setRequestHeader(a,r[a]);n=function(e){return function(){n&&(n=i=s.onload=s.onerror=s.onabort=s.ontimeout=s.onreadystatechange=null,"abort"===e?s.abort():"error"===e?"number"!=typeof s.status?o(0,"error"):o(s.status,s.statusText):o(Bt[s.status]||s.status,s.statusText,"text"!==(s.responseType||"text")||"string"!=typeof s.responseText?{binary:s.response}:{text:s.responseText},s.getAllResponseHeaders()))}},s.onload=n(),i=s.onerror=s.ontimeout=n("error"),void 0!==s.onabort?s.onabort=i:s.onreadystatechange=function(){4===s.readyState&&e.setTimeout(function(){n&&i()})},n=n("abort");try{s.send(t.hasContent&&t.data||null)}catch(r){if(n)throw r}},abort:function(){n&&n()}}}),w.ajaxPrefilter(function(e){e.crossDomain&&(e.contents.script=!1)}),w.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return w.globalEval(e),e}}}),w.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),w.ajaxTransport("script",function(e){var t,n;if(e.crossDomain||e.scriptAttrs)return{send:function(i,r){t=w("<script>").attr(e.scriptAttrs||{}).prop({charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&r("error"===e.type?404:200,e.type)}),m.head.appendChild(t[0])},abort:function(){n&&n()}}});var Ut,Qt=[],$t=/(=)\?(?=&|$)|\?\?/;w.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Qt.pop()||w.expando+"_"+wt.guid++;return this[e]=!0,e}}),w.ajaxPrefilter("json jsonp",function(t,n,i){var r,o,a,s=!1!==t.jsonp&&($t.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&$t.test(t.data)&&"data");if(s||"jsonp"===t.dataTypes[0])return r=t.jsonpCallback=p(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,s?t[s]=t[s].replace($t,"$1"+r):!1!==t.jsonp&&(t.url+=(Et.test(t.url)?"&":"?")+t.jsonp+"="+r),t.converters["script json"]=function(){return a||w.error(r+" was not called"),a[0]},t.dataTypes[0]="json",o=e[r],e[r]=function(){a=arguments},i.always(function(){void 0===o?w(e).removeProp(r):e[r]=o,t[r]&&(t.jsonpCallback=n.jsonpCallback,Qt.push(r)),a&&p(o)&&o(a[0]),a=o=void 0}),"script"}),h.createHTMLDocument=((Ut=m.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===Ut.childNodes.length),w.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(h.createHTMLDocument?((i=(t=m.implementation.createHTMLDocument("")).createElement("base")).href=m.location.href,t.head.appendChild(i)):t=m),o=!n&&[],(r=D.exec(e))?[t.createElement(r[1])]:(r=be([e],t,o),o&&o.length&&w(o).remove(),w.merge([],r.childNodes)));var i,r,o},w.fn.load=function(e,t,n){var i,r,o,a=this,s=e.indexOf(" ");return-1<s&&(i=pt(e.slice(s)),e=e.slice(0,s)),p(t)?(n=t,t=void 0):t&&"object"==typeof t&&(r="POST"),0<a.length&&w.ajax({url:e,type:r||"GET",dataType:"html",data:t}).done(function(e){o=arguments,a.html(i?w("<div>").append(w.parseHTML(e)).find(i):e)}).always(n&&function(e,t){a.each(function(){n.apply(this,o||[e.responseText,t,e])})}),this},w.expr.pseudos.animated=function(e){return w.grep(w.timers,function(t){return e===t.elem}).length},w.offset={setOffset:function(e,t,n){var i,r,o,a,s,l,u=w.css(e,"position"),c=w(e),f={};"static"===u&&(e.style.position="relative"),s=c.offset(),o=w.css(e,"top"),l=w.css(e,"left"),("absolute"===u||"fixed"===u)&&-1<(o+l).indexOf("auto")?(a=(i=c.position()).top,r=i.left):(a=parseFloat(o)||0,r=parseFloat(l)||0),p(t)&&(t=t.call(e,n,w.extend({},s))),null!=t.top&&(f.top=t.top-s.top+a),null!=t.left&&(f.left=t.left-s.left+r),"using"in t?t.using.call(e,f):c.css(f)}},w.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each(function(t){w.offset.setOffset(this,e,t)});var t,n,i=this[0];return i?i.getClientRects().length?{top:(t=i.getBoundingClientRect()).top+(n=i.ownerDocument.defaultView).pageYOffset,left:t.left+n.pageXOffset}:{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,i=this[0],r={top:0,left:0};if("fixed"===w.css(i,"position"))t=i.getBoundingClientRect();else{for(t=this.offset(),n=i.ownerDocument,e=i.offsetParent||n.documentElement;e&&(e===n.body||e===n.documentElement)&&"static"===w.css(e,"position");)e=e.parentNode;e&&e!==i&&1===e.nodeType&&((r=w(e).offset()).top+=w.css(e,"borderTopWidth",!0),r.left+=w.css(e,"borderLeftWidth",!0))}return{top:t.top-r.top-w.css(i,"marginTop",!0),left:t.left-r.left-w.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&"static"===w.css(e,"position");)e=e.offsetParent;return e||ie})}}),w.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,t){var n="pageYOffset"===t;w.fn[e]=function(i){return W(this,function(e,i,r){var o;if(g(e)?o=e:9===e.nodeType&&(o=e.defaultView),void 0===r)return o?o[t]:e[i];o?o.scrollTo(n?o.pageXOffset:r,n?r:o.pageYOffset):e[i]=r},e,i,arguments.length)}}),w.each(["top","left"],function(e,t){w.cssHooks[t]=Me(h.pixelPosition,function(e,n){if(n)return n=Fe(e,t),qe.test(n)?w(e).position()[t]+"px":n})}),w.each({Height:"height",Width:"width"},function(e,t){w.each({padding:"inner"+e,content:t,"":"outer"+e},function(n,i){w.fn[i]=function(r,o){var a=arguments.length&&(n||"boolean"!=typeof r),s=n||(!0===r||!0===o?"margin":"border");return W(this,function(t,n,r){var o;return g(t)?0===i.indexOf("outer")?t["inner"+e]:t.document.documentElement["client"+e]:9===t.nodeType?(o=t.documentElement,Math.max(t.body["scroll"+e],o["scroll"+e],t.body["offset"+e],o["offset"+e],o["client"+e])):void 0===r?w.css(t,n,s):w.style(t,n,r,s)},t,a?r:void 0,a)}})}),w.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){w.fn[t]=function(e){return this.on(t,e)}}),w.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,i){return this.on(t,e,n,i)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),w.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,t){w.fn[t]=function(e,n){return 0<arguments.length?this.on(t,null,e,n):this.trigger(t)}});var zt=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;w.proxy=function(e,t){var n,i,o;if("string"==typeof t&&(n=e[t],t=e,e=n),p(e))return i=r.call(arguments,2),(o=function(){return e.apply(t||this,i.concat(r.call(arguments)))}).guid=e.guid=e.guid||w.guid++,o},w.holdReady=function(e){e?w.readyWait++:w.ready(!0)},w.isArray=Array.isArray,w.parseJSON=JSON.parse,w.nodeName=k,w.isFunction=p,w.isWindow=g,w.camelCase=z,w.type=b,w.now=Date.now,w.isNumeric=function(e){var t=w.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},w.trim=function(e){return null==e?"":(e+"").replace(zt,"")},"function"==typeof define&&define.amd&&define("jquery",[],function(){return w});var Vt=e.jQuery,Xt=e.$;return w.noConflict=function(t){return e.$===w&&(e.$=Xt),t&&e.jQuery===w&&(e.jQuery=Vt),w},void 0===t&&(e.jQuery=e.$=w),w}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.Popper=t()}(this,function(){"use strict";function e(e){return e&&"[object Function]"==={}.toString.call(e)}function t(e,t){if(1!==e.nodeType)return[];var n=e.ownerDocument.defaultView.getComputedStyle(e,null);return t?n[t]:n}function n(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function i(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var r=t(e);return/(auto|scroll|overlay)/.test(r.overflow+r.overflowY+r.overflowX)?e:i(n(e))}function r(e){return e&&e.referenceNode?e.referenceNode:e}function o(e){return 11===e?Y:10===e?K:Y||K}function a(e){if(!e)return document.documentElement;for(var n=o(10)?document.body:null,i=e.offsetParent||null;i===n&&e.nextElementSibling;)i=(e=e.nextElementSibling).offsetParent;var r=i&&i.nodeName;return r&&"BODY"!==r&&"HTML"!==r?-1!==["TH","TD","TABLE"].indexOf(i.nodeName)&&"static"===t(i,"position")?a(i):i:e?e.ownerDocument.documentElement:document.documentElement}function s(e){return null===e.parentNode?e:s(e.parentNode)}function l(e,t){if(!(e&&e.nodeType&&t&&t.nodeType))return document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,i=n?e:t,r=n?t:e,o=document.createRange();o.setStart(i,0),o.setEnd(r,0);var u=o.commonAncestorContainer;if(e!==u&&t!==u||i.contains(r))return function(e){var t=e.nodeName;return"BODY"!==t&&("HTML"===t||a(e.firstElementChild)===e)}(u)?u:a(u);var c=s(e);return c.host?l(c.host,t):l(e,s(t).host)}function u(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"top",n="top"===t?"scrollTop":"scrollLeft",i=e.nodeName;if("BODY"===i||"HTML"===i){var r=e.ownerDocument.documentElement,o=e.ownerDocument.scrollingElement||r;return o[n]}return e[n]}function c(e,t){var n=2<arguments.length&&void 0!==arguments[2]&&arguments[2],i=u(t,"top"),r=u(t,"left"),o=n?-1:1;return e.top+=i*o,e.bottom+=i*o,e.left+=r*o,e.right+=r*o,e}function f(e,t){var n="x"===t?"Left":"Top",i="Left"==n?"Right":"Bottom";return parseFloat(e["border"+n+"Width"])+parseFloat(e["border"+i+"Width"])}function d(e,t,n,i){return $(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],o(10)?parseInt(n["offset"+e])+parseInt(i["margin"+("Height"===e?"Top":"Left")])+parseInt(i["margin"+("Height"===e?"Bottom":"Right")]):0)}function h(e){var t=e.body,n=e.documentElement,i=o(10)&&getComputedStyle(n);return{height:d("Height",t,n,i),width:d("Width",t,n,i)}}function p(e){return ee({},e,{right:e.left+e.width,bottom:e.top+e.height})}function g(e){var n={};try{if(o(10)){n=e.getBoundingClientRect();var i=u(e,"top"),r=u(e,"left");n.top+=i,n.left+=r,n.bottom+=i,n.right+=r}else n=e.getBoundingClientRect()}catch(t){}var a={left:n.left,top:n.top,width:n.right-n.left,height:n.bottom-n.top},s="HTML"===e.nodeName?h(e.ownerDocument):{},l=e.offsetWidth-(s.width||e.clientWidth||a.width),c=e.offsetHeight-(s.height||e.clientHeight||a.height);if(l||c){var d=t(e);l-=f(d,"x"),c-=f(d,"y"),a.width-=l,a.height-=c}return p(a)}function m(e,n){var r=2<arguments.length&&void 0!==arguments[2]&&arguments[2],a=o(10),s="HTML"===n.nodeName,l=g(e),u=g(n),f=i(e),d=t(n),h=parseFloat(d.borderTopWidth),m=parseFloat(d.borderLeftWidth);r&&s&&(u.top=$(u.top,0),u.left=$(u.left,0));var v=p({top:l.top-u.top-h,left:l.left-u.left-m,width:l.width,height:l.height});if(v.marginTop=0,v.marginLeft=0,!a&&s){var y=parseFloat(d.marginTop),b=parseFloat(d.marginLeft);v.top-=h-y,v.bottom-=h-y,v.left-=m-b,v.right-=m-b,v.marginTop=y,v.marginLeft=b}return(a&&!r?n.contains(f):n===f&&"BODY"!==f.nodeName)&&(v=c(v,n)),v}function v(e){var t=1<arguments.length&&void 0!==arguments[1]&&arguments[1],n=e.ownerDocument.documentElement,i=m(e,n),r=$(n.clientWidth,window.innerWidth||0),o=$(n.clientHeight,window.innerHeight||0),a=t?0:u(n),s=t?0:u(n,"left"),l={top:a-i.top+i.marginTop,left:s-i.left+i.marginLeft,width:r,height:o};return p(l)}function y(e){var i=e.nodeName;if("BODY"===i||"HTML"===i)return!1;if("fixed"===t(e,"position"))return!0;var r=n(e);return!!r&&y(r)}function b(e){if(!e||!e.parentElement||o())return document.documentElement;for(var n=e.parentElement;n&&"none"===t(n,"transform");)n=n.parentElement;return n||document.documentElement}function _(e,t,o,a){var s=4<arguments.length&&void 0!==arguments[4]&&arguments[4],u={top:0,left:0},c=s?b(e):l(e,r(t));if("viewport"===a)u=v(c,s);else{var f;"scrollParent"===a?"BODY"===(f=i(n(t))).nodeName&&(f=e.ownerDocument.documentElement):f="window"===a?e.ownerDocument.documentElement:a;var d=m(f,c,s);if("HTML"!==f.nodeName||y(c))u=d;else{var p=h(e.ownerDocument),g=p.height,_=p.width;u.top+=d.top-d.marginTop,u.bottom=g+d.top,u.left+=d.left-d.marginLeft,u.right=_+d.left}}var w="number"==typeof(o=o||0);return u.left+=w?o:o.left||0,u.top+=w?o:o.top||0,u.right-=w?o:o.right||0,u.bottom-=w?o:o.bottom||0,u}function w(e){return e.width*e.height}function E(e,t,n,i,r){var o=5<arguments.length&&void 0!==arguments[5]?arguments[5]:0;if(-1===e.indexOf("auto"))return e;var a=_(n,i,o,r),s={top:{width:a.width,height:t.top-a.top},right:{width:a.right-t.right,height:a.height},bottom:{width:a.width,height:a.bottom-t.bottom},left:{width:t.left-a.left,height:a.height}},l=Object.keys(s).map(function(e){return ee({key:e},s[e],{area:w(s[e])})}).sort(function(e,t){return t.area-e.area}),u=l.filter(function(e){return e.width>=n.clientWidth&&e.height>=n.clientHeight}),c=0<u.length?u[0].key:l[0].key,f=e.split("-")[1];return c+(f?"-"+f:"")}function x(e,t,n){var i=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null,o=i?b(t):l(t,r(n));return m(n,o,i)}function T(e){var t=e.ownerDocument.defaultView.getComputedStyle(e),n=parseFloat(t.marginTop||0)+parseFloat(t.marginBottom||0),i=parseFloat(t.marginLeft||0)+parseFloat(t.marginRight||0);return{width:e.offsetWidth+i,height:e.offsetHeight+n}}function C(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,function(e){return t[e]})}function S(e,t,n){n=n.split("-")[0];var i=T(e),r={width:i.width,height:i.height},o=-1!==["right","left"].indexOf(n),a=o?"top":"left",s=o?"left":"top",l=o?"height":"width",u=o?"width":"height";return r[a]=t[a]+t[l]/2-i[l]/2,r[s]=n===s?t[s]-i[u]:t[C(s)],r}function k(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function D(t,n,i){return(void 0===i?t:t.slice(0,function(e,t,n){if(Array.prototype.findIndex)return e.findIndex(function(e){return e[t]===n});var i=k(e,function(e){return e[t]===n});return e.indexOf(i)}(t,"name",i))).forEach(function(t){t.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var i=t.function||t.fn;t.enabled&&e(i)&&(n.offsets.popper=p(n.offsets.popper),n.offsets.reference=p(n.offsets.reference),n=i(n,t))}),n}function N(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=x(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=E(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=S(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=D(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function A(e,t){return e.some(function(e){return e.enabled&&e.name===t})}function j(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),i=0;i<t.length;i++){var r=t[i],o=r?""+r+n:e;if(void 0!==document.body.style[o])return o}return null}function O(){return this.state.isDestroyed=!0,A(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[j("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function L(e){var t=e.ownerDocument;return t?t.defaultView:window}function I(e,t,n,r){var o="BODY"===e.nodeName,a=o?e.ownerDocument.defaultView:e;a.addEventListener(t,n,{passive:!0}),o||I(i(a.parentNode),t,n,r),r.push(a)}function q(e,t,n,r){n.updateBound=r,L(e).addEventListener("resize",n.updateBound,{passive:!0});var o=i(e);return I(o,"scroll",n.updateBound,n.scrollParents),n.scrollElement=o,n.eventsEnabled=!0,n}function P(){this.state.eventsEnabled||(this.state=q(this.reference,0,this.state,this.scheduleUpdate))}function H(){this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=function(e,t){return L(e).removeEventListener("resize",t.updateBound),t.scrollParents.forEach(function(e){e.removeEventListener("scroll",t.updateBound)}),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t}(this.reference,this.state))}function R(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function F(e,t){Object.keys(t).forEach(function(n){var i="";-1!==["width","height","top","right","bottom","left"].indexOf(n)&&R(t[n])&&(i="px"),e.style[n]=t[n]+i})}function M(e,t,n){var i=k(e,function(e){return e.name===t}),r=!!i&&e.some(function(e){return e.name===n&&e.enabled&&e.order<i.order});if(!r){var o="`"+t+"`";console.warn("`"+n+"` modifier is required by "+o+" modifier in order to work, be sure to include it before "+o+"!")}return r}function B(e){var t=1<arguments.length&&void 0!==arguments[1]&&arguments[1],n=ie.indexOf(e),i=ie.slice(n+1).concat(ie.slice(0,n));return t?i.reverse():i}var W=Math.min,U=Math.floor,Q=Math.round,$=Math.max,z="undefined"!=typeof window&&"undefined"!=typeof document&&"undefined"!=typeof navigator,V=function(){for(var e=["Edge","Trident","Firefox"],t=0;t<e.length;t+=1)if(z&&0<=navigator.userAgent.indexOf(e[t]))return 1;return 0}(),X=z&&window.Promise?function(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then(function(){t=!1,e()}))}}:function(e){var t=!1;return function(){t||(t=!0,setTimeout(function(){t=!1,e()},V))}},Y=z&&!(!window.MSInputMethodContext||!document.documentMode),K=z&&/MSIE 10/.test(navigator.userAgent),G=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},J=function(){function e(e,t){for(var n,i=0;i<t.length;i++)(n=t[i]).enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),Z=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},ee=Object.assign||function(e){for(var t,n=1;n<arguments.length;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},te=z&&/Firefox/i.test(navigator.userAgent),ne=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],ie=ne.slice(3),re=function(){function t(n,i){var r=this,o=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};G(this,t),this.scheduleUpdate=function(){return requestAnimationFrame(r.update)},this.update=X(this.update.bind(this)),this.options=ee({},t.Defaults,o),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=n&&n.jquery?n[0]:n,this.popper=i&&i.jquery?i[0]:i,this.options.modifiers={},Object.keys(ee({},t.Defaults.modifiers,o.modifiers)).forEach(function(e){r.options.modifiers[e]=ee({},t.Defaults.modifiers[e]||{},o.modifiers?o.modifiers[e]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(e){return ee({name:e},r.options.modifiers[e])}).sort(function(e,t){return e.order-t.order}),this.modifiers.forEach(function(t){t.enabled&&e(t.onLoad)&&t.onLoad(r.reference,r.popper,r.options,t,r.state)}),this.update();var a=this.options.eventsEnabled;a&&this.enableEventListeners(),this.state.eventsEnabled=a}return J(t,[{key:"update",value:function(){return N.call(this)}},{key:"destroy",value:function(){return O.call(this)}},{key:"enableEventListeners",value:function(){return P.call(this)}},{key:"disableEventListeners",value:function(){return H.call(this)}}]),t}();return re.Utils=("undefined"==typeof window?global:window).PopperUtils,re.placements=ne,re.Defaults={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(e){var t=e.placement,n=t.split("-")[0],i=t.split("-")[1];if(i){var r=e.offsets,o=r.reference,a=r.popper,s=-1!==["bottom","top"].indexOf(n),l=s?"left":"top",u=s?"width":"height",c={start:Z({},l,o[l]),end:Z({},l,o[l]+o[u]-a[u])};e.offsets.popper=ee({},a,c[i])}return e}},offset:{order:200,enabled:!0,fn:function(e,t){var n,i=t.offset,r=e.offsets,o=r.popper,a=r.reference,s=e.placement.split("-")[0];return n=R(+i)?[+i,0]:function(e,t,n,i){var r=[0,0],o=-1!==["right","left"].indexOf(i),a=e.split(/(\+|\-)/).map(function(e){return e.trim()}),s=a.indexOf(k(a,function(e){return-1!==e.search(/,|\s/)}));a[s]&&-1===a[s].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var l=/\s*,\s*|\s+/,u=-1===s?[a]:[a.slice(0,s).concat([a[s].split(l)[0]]),[a[s].split(l)[1]].concat(a.slice(s+1))];return(u=u.map(function(e,i){var r=(1===i?!o:o)?"height":"width",a=!1;return e.reduce(function(e,t){return""===e[e.length-1]&&-1!==["+","-"].indexOf(t)?(e[e.length-1]=t,a=!0,e):a?(e[e.length-1]+=t,a=!1,e):e.concat(t)},[]).map(function(e){return function(e,t,n,i){var r=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),o=+r[1],a=r[2];if(!o)return e;if(0===a.indexOf("%")){var s;switch(a){case"%p":s=n;break;case"%":case"%r":default:s=i}return p(s)[t]/100*o}return"vh"===a||"vw"===a?("vh"===a?$(document.documentElement.clientHeight,window.innerHeight||0):$(document.documentElement.clientWidth,window.innerWidth||0))/100*o:o}(e,r,t,n)})})).forEach(function(e,t){e.forEach(function(n,i){R(n)&&(r[t]+=n*("-"===e[i-1]?-1:1))})}),r}(i,o,a,s),"left"===s?(o.top+=n[0],o.left-=n[1]):"right"===s?(o.top+=n[0],o.left+=n[1]):"top"===s?(o.left+=n[0],o.top-=n[1]):"bottom"===s&&(o.left+=n[0],o.top+=n[1]),e.popper=o,e},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(e,t){var n=t.boundariesElement||a(e.instance.popper);e.instance.reference===n&&(n=a(n));var i=j("transform"),r=e.instance.popper.style,o=r.top,s=r.left,l=r[i];r.top="",r.left="",r[i]="";var u=_(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);r.top=o,r.left=s,r[i]=l,t.boundaries=u;var c=e.offsets.popper,f={primary:function(e){var n=c[e];return c[e]<u[e]&&!t.escapeWithReference&&(n=$(c[e],u[e])),Z({},e,n)},secondary:function(e){var n="right"===e?"left":"top",i=c[n];return c[e]>u[e]&&!t.escapeWithReference&&(i=W(c[n],u[e]-("right"===e?c.width:c.height))),Z({},n,i)}};return t.priority.forEach(function(e){var t=-1===["left","top"].indexOf(e)?"secondary":"primary";c=ee({},c,f[t](e))}),e.offsets.popper=c,e},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(e){var t=e.offsets,n=t.popper,i=t.reference,r=e.placement.split("-")[0],o=U,a=-1!==["top","bottom"].indexOf(r),s=a?"right":"bottom",l=a?"left":"top",u=a?"width":"height";return n[s]<o(i[l])&&(e.offsets.popper[l]=o(i[l])-n[u]),n[l]>o(i[s])&&(e.offsets.popper[l]=o(i[s])),e}},arrow:{order:500,enabled:!0,fn:function(e,n){var i;if(!M(e.instance.modifiers,"arrow","keepTogether"))return e;var r=n.element;if("string"==typeof r){if(!(r=e.instance.popper.querySelector(r)))return e}else if(!e.instance.popper.contains(r))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var o=e.placement.split("-")[0],a=e.offsets,s=a.popper,l=a.reference,u=-1!==["left","right"].indexOf(o),c=u?"height":"width",f=u?"Top":"Left",d=f.toLowerCase(),h=u?"left":"top",g=u?"bottom":"right",m=T(r)[c];l[g]-m<s[d]&&(e.offsets.popper[d]-=s[d]-(l[g]-m)),l[d]+m>s[g]&&(e.offsets.popper[d]+=l[d]+m-s[g]),e.offsets.popper=p(e.offsets.popper);var v=l[d]+l[c]/2-m/2,y=t(e.instance.popper),b=parseFloat(y["margin"+f]),_=parseFloat(y["border"+f+"Width"]),w=v-e.offsets.popper[d]-b-_;return w=$(W(s[c]-m,w),0),e.arrowElement=r,e.offsets.arrow=(Z(i={},d,Q(w)),Z(i,h,""),i),e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(e,t){if(A(e.instance.modifiers,"inner"))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var n=_(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),i=e.placement.split("-")[0],r=C(i),o=e.placement.split("-")[1]||"",a=[];switch(t.behavior){case"flip":a=[i,r];break;case"clockwise":a=B(i);break;case"counterclockwise":a=B(i,!0);break;default:a=t.behavior}return a.forEach(function(s,l){if(i!==s||a.length===l+1)return e;i=e.placement.split("-")[0],r=C(i);var u=e.offsets.popper,c=e.offsets.reference,f=U,d="left"===i&&f(u.right)>f(c.left)||"right"===i&&f(u.left)<f(c.right)||"top"===i&&f(u.bottom)>f(c.top)||"bottom"===i&&f(u.top)<f(c.bottom),h=f(u.left)<f(n.left),p=f(u.right)>f(n.right),g=f(u.top)<f(n.top),m=f(u.bottom)>f(n.bottom),v="left"===i&&h||"right"===i&&p||"top"===i&&g||"bottom"===i&&m,y=-1!==["top","bottom"].indexOf(i),b=!!t.flipVariations&&(y&&"start"===o&&h||y&&"end"===o&&p||!y&&"start"===o&&g||!y&&"end"===o&&m)||!!t.flipVariationsByContent&&(y&&"start"===o&&p||y&&"end"===o&&h||!y&&"start"===o&&m||!y&&"end"===o&&g);(d||v||b)&&(e.flipped=!0,(d||v)&&(i=a[l+1]),b&&(o=function(e){return"end"===e?"start":"start"===e?"end":e}(o)),e.placement=i+(o?"-"+o:""),e.offsets.popper=ee({},e.offsets.popper,S(e.instance.popper,e.offsets.reference,e.placement)),e=D(e.instance.modifiers,e,"flip"))}),e},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,n=t.split("-")[0],i=e.offsets,r=i.popper,o=i.reference,a=-1!==["left","right"].indexOf(n),s=-1===["top","left"].indexOf(n);return r[a?"left":"top"]=o[n]-(s?r[a?"width":"height"]:0),e.placement=C(t),e.offsets.popper=p(r),e}},hide:{order:800,enabled:!0,fn:function(e){if(!M(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=k(e.instance.modifiers,function(e){return"preventOverflow"===e.name}).boundaries;if(t.bottom<n.top||t.left>n.right||t.top>n.bottom||t.right<n.left){if(!0===e.hide)return e;e.hide=!0,e.attributes["x-out-of-boundaries"]=""}else{if(!1===e.hide)return e;e.hide=!1,e.attributes["x-out-of-boundaries"]=!1}return e}},computeStyle:{order:850,enabled:!0,fn:function(e,t){var n=t.x,i=t.y,r=e.offsets.popper,o=k(e.instance.modifiers,function(e){return"applyStyle"===e.name}).gpuAcceleration;void 0!==o&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var s,l,u=void 0===o?t.gpuAcceleration:o,c=a(e.instance.popper),f=g(c),d={position:r.position},h=function(e,t){var n=e.offsets,i=n.popper,r=Q,o=function(e){return e},a=r(n.reference.width),s=r(i.width),l=-1!==["left","right"].indexOf(e.placement),u=-1!==e.placement.indexOf("-"),c=t?l||u||a%2==s%2?r:U:o,f=t?r:o;return{left:c(1==a%2&&1==s%2&&!u&&t?i.left-1:i.left),top:f(i.top),bottom:f(i.bottom),right:c(i.right)}}(e,2>window.devicePixelRatio||!te),p="bottom"===n?"top":"bottom",m="right"===i?"left":"right",v=j("transform");if(l="bottom"==p?"HTML"===c.nodeName?-c.clientHeight+h.bottom:-f.height+h.bottom:h.top,s="right"==m?"HTML"===c.nodeName?-c.clientWidth+h.right:-f.width+h.right:h.left,u&&v)d[v]="translate3d("+s+"px, "+l+"px, 0)",d[p]=0,d[m]=0,d.willChange="transform";else{var y="right"==m?-1:1;d[p]=l*("bottom"==p?-1:1),d[m]=s*y,d.willChange=p+", "+m}return e.attributes=ee({},{"x-placement":e.placement},e.attributes),e.styles=ee({},d,e.styles),e.arrowStyles=ee({},e.offsets.arrow,e.arrowStyles),e},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(e){return F(e.instance.popper,e.styles),function(e,t){Object.keys(t).forEach(function(n){!1===t[n]?e.removeAttribute(n):e.setAttribute(n,t[n])})}(e.instance.popper,e.attributes),e.arrowElement&&Object.keys(e.arrowStyles).length&&F(e.arrowElement,e.arrowStyles),e},onLoad:function(e,t,n,i,r){var o=x(r,t,e,n.positionFixed),a=E(n.placement,o,t,e,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return t.setAttribute("x-placement",a),F(t,{position:n.positionFixed?"fixed":"absolute"}),n},gpuAcceleration:void 0}}},re}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("jquery"),require("popper.js")):"function"==typeof define&&define.amd?define(["exports","jquery","popper.js"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).bootstrap={},e.jQuery,e.Popper)}(this,function(e,t,n){"use strict";function i(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var r=i(t),o=i(n);function a(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 s(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),e}function l(){return(l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var u={TRANSITION_END:"bsTransitionEnd",getUID:function(e){do{e+=~~(1e6*Math.random())}while(document.getElementById(e));return e},getSelectorFromElement:function(e){var t=e.getAttribute("data-target");if(!t||"#"===t){var n=e.getAttribute("href");t=n&&"#"!==n?n.trim():""}try{return document.querySelector(t)?t:null}catch(e){return null}},getTransitionDurationFromElement:function(e){if(!e)return 0;var t=r.default(e).css("transition-duration"),n=r.default(e).css("transition-delay"),i=parseFloat(t),o=parseFloat(n);return i||o?(t=t.split(",")[0],n=n.split(",")[0],1e3*(parseFloat(t)+parseFloat(n))):0},reflow:function(e){return e.offsetHeight},triggerTransitionEnd:function(e){r.default(e).trigger("transitionend")},supportsTransitionEnd:function(){return Boolean("transitionend")},isElement:function(e){return(e[0]||e).nodeType},typeCheckConfig:function(e,t,n){for(var i in n)if(Object.prototype.hasOwnProperty.call(n,i)){var r=n[i],o=t[i],a=o&&u.isElement(o)?"element":null===(s=o)||void 0===s?""+s:{}.toString.call(s).match(/\s([a-z]+)/i)[1].toLowerCase();if(!new RegExp(r).test(a))throw new Error(e.toUpperCase()+': Option "'+i+'" provided type "'+a+'" but expected type "'+r+'".')}var s},findShadowRoot:function(e){if(!document.documentElement.attachShadow)return null;if("function"==typeof e.getRootNode){var t=e.getRootNode();return t instanceof ShadowRoot?t:null}return e instanceof ShadowRoot?e:e.parentNode?u.findShadowRoot(e.parentNode):null},jQueryDetection:function(){if(void 0===r.default)throw new TypeError("Bootstrap's JavaScript requires jQuery. jQuery must be included before Bootstrap's JavaScript.");var e=r.default.fn.jquery.split(" ")[0].split(".");if(e[0]<2&&e[1]<9||1===e[0]&&9===e[1]&&e[2]<1||e[0]>=4)throw new Error("Bootstrap's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0")}};u.jQueryDetection(),r.default.fn.emulateTransitionEnd=function(e){var t=this,n=!1;return r.default(this).one(u.TRANSITION_END,function(){n=!0}),setTimeout(function(){n||u.triggerTransitionEnd(t)},e),this},r.default.event.special[u.TRANSITION_END]={bindType:"transitionend",delegateType:"transitionend",handle:function(e){if(r.default(e.target).is(this))return e.handleObj.handler.apply(this,arguments)}};var c="alert",f=r.default.fn[c],d=function(){function e(e){this._element=e}var t=e.prototype;return t.close=function(e){var t=this._element;e&&(t=this._getRootElement(e)),this._triggerCloseEvent(t).isDefaultPrevented()||this._removeElement(t)},t.dispose=function(){r.default.removeData(this._element,"bs.alert"),this._element=null},t._getRootElement=function(e){var t=u.getSelectorFromElement(e),n=!1;return t&&(n=document.querySelector(t)),n||(n=r.default(e).closest(".alert")[0]),n},t._triggerCloseEvent=function(e){var t=r.default.Event("close.bs.alert");return r.default(e).trigger(t),t},t._removeElement=function(e){var t=this;if(r.default(e).removeClass("show"),r.default(e).hasClass("fade")){var n=u.getTransitionDurationFromElement(e);r.default(e).one(u.TRANSITION_END,function(n){return t._destroyElement(e,n)}).emulateTransitionEnd(n)}else this._destroyElement(e)},t._destroyElement=function(e){r.default(e).detach().trigger("closed.bs.alert").remove()},e._jQueryInterface=function(t){return this.each(function(){var n=r.default(this),i=n.data("bs.alert");i||(i=new e(this),n.data("bs.alert",i)),"close"===t&&i[t](this)})},e._handleDismiss=function(e){return function(t){t&&t.preventDefault(),e.close(this)}},s(e,null,[{key:"VERSION",get:function(){return"4.6.0"}}]),e}();r.default(document).on("click.bs.alert.data-api",'[data-dismiss="alert"]',d._handleDismiss(new d)),r.default.fn[c]=d._jQueryInterface,r.default.fn[c].Constructor=d,r.default.fn[c].noConflict=function(){return r.default.fn[c]=f,d._jQueryInterface};var h=r.default.fn.button,p=function(){function e(e){this._element=e,this.shouldAvoidTriggerChange=!1}var t=e.prototype;return t.toggle=function(){var e=!0,t=!0,n=r.default(this._element).closest('[data-toggle="buttons"]')[0];if(n){var i=this._element.querySelector('input:not([type="hidden"])');if(i){if("radio"===i.type)if(i.checked&&this._element.classList.contains("active"))e=!1;else{var o=n.querySelector(".active");o&&r.default(o).removeClass("active")}e&&("checkbox"!==i.type&&"radio"!==i.type||(i.checked=!this._element.classList.contains("active")),this.shouldAvoidTriggerChange||r.default(i).trigger("change")),i.focus(),t=!1}}this._element.hasAttribute("disabled")||this._element.classList.contains("disabled")||(t&&this._element.setAttribute("aria-pressed",!this._element.classList.contains("active")),e&&r.default(this._element).toggleClass("active"))},t.dispose=function(){r.default.removeData(this._element,"bs.button"),this._element=null},e._jQueryInterface=function(t,n){return this.each(function(){var i=r.default(this),o=i.data("bs.button");o||(o=new e(this),i.data("bs.button",o)),o.shouldAvoidTriggerChange=n,"toggle"===t&&o[t]()})},s(e,null,[{key:"VERSION",get:function(){return"4.6.0"}}]),e}();r.default(document).on("click.bs.button.data-api",'[data-toggle^="button"]',function(e){var t=e.target,n=t;if(r.default(t).hasClass("btn")||(t=r.default(t).closest(".btn")[0]),!t||t.hasAttribute("disabled")||t.classList.contains("disabled"))e.preventDefault();else{var i=t.querySelector('input:not([type="hidden"])');if(i&&(i.hasAttribute("disabled")||i.classList.contains("disabled")))return void e.preventDefault();"INPUT"!==n.tagName&&"LABEL"===t.tagName||p._jQueryInterface.call(r.default(t),"toggle","INPUT"===n.tagName)}}).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',function(e){var t=r.default(e.target).closest(".btn")[0];r.default(t).toggleClass("focus",/^focus(in)?$/.test(e.type))}),r.default(window).on("load.bs.button.data-api",function(){for(var e=[].slice.call(document.querySelectorAll('[data-toggle="buttons"] .btn')),t=0,n=e.length;t<n;t++){var i=e[t],r=i.querySelector('input:not([type="hidden"])');r.checked||r.hasAttribute("checked")?i.classList.add("active"):i.classList.remove("active")}for(var o=0,a=(e=[].slice.call(document.querySelectorAll('[data-toggle="button"]'))).length;o<a;o++){var s=e[o];"true"===s.getAttribute("aria-pressed")?s.classList.add("active"):s.classList.remove("active")}}),r.default.fn.button=p._jQueryInterface,r.default.fn.button.Constructor=p,r.default.fn.button.noConflict=function(){return r.default.fn.button=h,p._jQueryInterface};var g="carousel",m=r.default.fn[g],v={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0,touch:!0},y={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean",touch:"boolean"},b={TOUCH:"touch",PEN:"pen"},_=function(){function e(e,t){this._items=null,this._interval=null,this._activeElement=null,this._isPaused=!1,this._isSliding=!1,this.touchTimeout=null,this.touchStartX=0,this.touchDeltaX=0,this._config=this._getConfig(t),this._element=e,this._indicatorsElement=this._element.querySelector(".carousel-indicators"),this._touchSupported="ontouchstart"in document.documentElement||navigator.maxTouchPoints>0,this._pointerEvent=Boolean(window.PointerEvent||window.MSPointerEvent),this._addEventListeners()}var t=e.prototype;return t.next=function(){this._isSliding||this._slide("next")},t.nextWhenVisible=function(){var e=r.default(this._element);!document.hidden&&e.is(":visible")&&"hidden"!==e.css("visibility")&&this.next()},t.prev=function(){this._isSliding||this._slide("prev")},t.pause=function(e){e||(this._isPaused=!0),this._element.querySelector(".carousel-item-next, .carousel-item-prev")&&(u.triggerTransitionEnd(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null},t.cycle=function(e){e||(this._isPaused=!1),this._interval&&(clearInterval(this._interval),this._interval=null),this._config.interval&&!this._isPaused&&(this._updateInterval(),this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval))},t.to=function(e){var t=this;this._activeElement=this._element.querySelector(".active.carousel-item");var n=this._getItemIndex(this._activeElement);if(!(e>this._items.length-1||e<0))if(this._isSliding)r.default(this._element).one("slid.bs.carousel",function(){return t.to(e)});else{if(n===e)return this.pause(),void this.cycle();this._slide(e>n?"next":"prev",this._items[e])}},t.dispose=function(){r.default(this._element).off(".bs.carousel"),r.default.removeData(this._element,"bs.carousel"),this._items=null,this._config=null,this._element=null,this._interval=null,this._isPaused=null,this._isSliding=null,this._activeElement=null,this._indicatorsElement=null},t._getConfig=function(e){return e=l({},v,e),u.typeCheckConfig(g,e,y),e},t._handleSwipe=function(){var e=Math.abs(this.touchDeltaX);if(!(e<=40)){var t=e/this.touchDeltaX;this.touchDeltaX=0,t>0&&this.prev(),t<0&&this.next()}},t._addEventListeners=function(){var e=this;this._config.keyboard&&r.default(this._element).on("keydown.bs.carousel",function(t){return e._keydown(t)}),"hover"===this._config.pause&&r.default(this._element).on("mouseenter.bs.carousel",function(t){return e.pause(t)}).on("mouseleave.bs.carousel",function(t){return e.cycle(t)}),this._config.touch&&this._addTouchEventListeners()},t._addTouchEventListeners=function(){var e=this;if(this._touchSupported){var t=function(t){e._pointerEvent&&b[t.originalEvent.pointerType.toUpperCase()]?e.touchStartX=t.originalEvent.clientX:e._pointerEvent||(e.touchStartX=t.originalEvent.touches[0].clientX)},n=function(t){e._pointerEvent&&b[t.originalEvent.pointerType.toUpperCase()]&&(e.touchDeltaX=t.originalEvent.clientX-e.touchStartX),e._handleSwipe(),"hover"===e._config.pause&&(e.pause(),e.touchTimeout&&clearTimeout(e.touchTimeout),e.touchTimeout=setTimeout(function(t){return e.cycle(t)},500+e._config.interval))};r.default(this._element.querySelectorAll(".carousel-item img")).on("dragstart.bs.carousel",function(e){return e.preventDefault()}),this._pointerEvent?(r.default(this._element).on("pointerdown.bs.carousel",function(e){return t(e)}),r.default(this._element).on("pointerup.bs.carousel",function(e){return n(e)}),this._element.classList.add("pointer-event")):(r.default(this._element).on("touchstart.bs.carousel",function(e){return t(e)}),r.default(this._element).on("touchmove.bs.carousel",function(t){return function(t){e.touchDeltaX=t.originalEvent.touches&&t.originalEvent.touches.length>1?0:t.originalEvent.touches[0].clientX-e.touchStartX}(t)}),r.default(this._element).on("touchend.bs.carousel",function(e){return n(e)}))}},t._keydown=function(e){if(!/input|textarea/i.test(e.target.tagName))switch(e.which){case 37:e.preventDefault(),this.prev();break;case 39:e.preventDefault(),this.next()}},t._getItemIndex=function(e){return this._items=e&&e.parentNode?[].slice.call(e.parentNode.querySelectorAll(".carousel-item")):[],this._items.indexOf(e)},t._getItemByDirection=function(e,t){var n="next"===e,i="prev"===e,r=this._getItemIndex(t);if((i&&0===r||n&&r===this._items.length-1)&&!this._config.wrap)return t;var o=(r+("prev"===e?-1:1))%this._items.length;return-1===o?this._items[this._items.length-1]:this._items[o]},t._triggerSlideEvent=function(e,t){var n=this._getItemIndex(e),i=this._getItemIndex(this._element.querySelector(".active.carousel-item")),o=r.default.Event("slide.bs.carousel",{relatedTarget:e,direction:t,from:i,to:n});return r.default(this._element).trigger(o),o},t._setActiveIndicatorElement=function(e){if(this._indicatorsElement){var t=[].slice.call(this._indicatorsElement.querySelectorAll(".active"));r.default(t).removeClass("active");var n=this._indicatorsElement.children[this._getItemIndex(e)];n&&r.default(n).addClass("active")}},t._updateInterval=function(){var e=this._activeElement||this._element.querySelector(".active.carousel-item");if(e){var t=parseInt(e.getAttribute("data-interval"),10);t?(this._config.defaultInterval=this._config.defaultInterval||this._config.interval,this._config.interval=t):this._config.interval=this._config.defaultInterval||this._config.interval}},t._slide=function(e,t){var n,i,o,a=this,s=this._element.querySelector(".active.carousel-item"),l=this._getItemIndex(s),c=t||s&&this._getItemByDirection(e,s),f=this._getItemIndex(c),d=Boolean(this._interval);if("next"===e?(n="carousel-item-left",i="carousel-item-next",o="left"):(n="carousel-item-right",i="carousel-item-prev",o="right"),c&&r.default(c).hasClass("active"))this._isSliding=!1;else if(!this._triggerSlideEvent(c,o).isDefaultPrevented()&&s&&c){this._isSliding=!0,d&&this.pause(),this._setActiveIndicatorElement(c),this._activeElement=c;var h=r.default.Event("slid.bs.carousel",{relatedTarget:c,direction:o,from:l,to:f});if(r.default(this._element).hasClass("slide")){r.default(c).addClass(i),u.reflow(c),r.default(s).addClass(n),r.default(c).addClass(n);var p=u.getTransitionDurationFromElement(s);r.default(s).one(u.TRANSITION_END,function(){r.default(c).removeClass(n+" "+i).addClass("active"),r.default(s).removeClass("active "+i+" "+n),a._isSliding=!1,setTimeout(function(){return r.default(a._element).trigger(h)},0)}).emulateTransitionEnd(p)}else r.default(s).removeClass("active"),r.default(c).addClass("active"),this._isSliding=!1,r.default(this._element).trigger(h);d&&this.cycle()}},e._jQueryInterface=function(t){return this.each(function(){var n=r.default(this).data("bs.carousel"),i=l({},v,r.default(this).data());"object"==typeof t&&(i=l({},i,t));var o="string"==typeof t?t:i.slide;if(n||(n=new e(this,i),r.default(this).data("bs.carousel",n)),"number"==typeof t)n.to(t);else if("string"==typeof o){if(void 0===n[o])throw new TypeError('No method named "'+o+'"');n[o]()}else i.interval&&i.ride&&(n.pause(),n.cycle())})},e._dataApiClickHandler=function(t){var n=u.getSelectorFromElement(this);if(n){var i=r.default(n)[0];if(i&&r.default(i).hasClass("carousel")){var o=l({},r.default(i).data(),r.default(this).data()),a=this.getAttribute("data-slide-to");a&&(o.interval=!1),e._jQueryInterface.call(r.default(i),o),a&&r.default(i).data("bs.carousel").to(a),t.preventDefault()}}},s(e,null,[{key:"VERSION",get:function(){return"4.6.0"}},{key:"Default",get:function(){return v}}]),e}();r.default(document).on("click.bs.carousel.data-api","[data-slide], [data-slide-to]",_._dataApiClickHandler),r.default(window).on("load.bs.carousel.data-api",function(){for(var e=[].slice.call(document.querySelectorAll('[data-ride="carousel"]')),t=0,n=e.length;t<n;t++){var i=r.default(e[t]);_._jQueryInterface.call(i,i.data())}}),r.default.fn[g]=_._jQueryInterface,r.default.fn[g].Constructor=_,r.default.fn[g].noConflict=function(){return r.default.fn[g]=m,_._jQueryInterface};var w="collapse",E=r.default.fn[w],x={toggle:!0,parent:""},T={toggle:"boolean",parent:"(string|element)"},C=function(){function e(e,t){this._isTransitioning=!1,this._element=e,this._config=this._getConfig(t),this._triggerArray=[].slice.call(document.querySelectorAll('[data-toggle="collapse"][href="#'+e.id+'"],[data-toggle="collapse"][data-target="#'+e.id+'"]'));for(var n=[].slice.call(document.querySelectorAll('[data-toggle="collapse"]')),i=0,r=n.length;i<r;i++){var o=n[i],a=u.getSelectorFromElement(o),s=[].slice.call(document.querySelectorAll(a)).filter(function(t){return t===e});null!==a&&s.length>0&&(this._selector=a,this._triggerArray.push(o))}this._parent=this._config.parent?this._getParent():null,this._config.parent||this._addAriaAndCollapsedClass(this._element,this._triggerArray),this._config.toggle&&this.toggle()}var t=e.prototype;return t.toggle=function(){r.default(this._element).hasClass("show")?this.hide():this.show()},t.show=function(){var t,n,i=this;if(!(this._isTransitioning||r.default(this._element).hasClass("show")||(this._parent&&0===(t=[].slice.call(this._parent.querySelectorAll(".show, .collapsing")).filter(function(e){return"string"==typeof i._config.parent?e.getAttribute("data-parent")===i._config.parent:e.classList.contains("collapse")})).length&&(t=null),t&&(n=r.default(t).not(this._selector).data("bs.collapse"))&&n._isTransitioning))){var o=r.default.Event("show.bs.collapse");if(r.default(this._element).trigger(o),!o.isDefaultPrevented()){t&&(e._jQueryInterface.call(r.default(t).not(this._selector),"hide"),n||r.default(t).data("bs.collapse",null));var a=this._getDimension();r.default(this._element).removeClass("collapse").addClass("collapsing"),this._element.style[a]=0,this._triggerArray.length&&r.default(this._triggerArray).removeClass("collapsed").attr("aria-expanded",!0),this.setTransitioning(!0);var s="scroll"+(a[0].toUpperCase()+a.slice(1)),l=u.getTransitionDurationFromElement(this._element);r.default(this._element).one(u.TRANSITION_END,function(){r.default(i._element).removeClass("collapsing").addClass("collapse show"),i._element.style[a]="",i.setTransitioning(!1),r.default(i._element).trigger("shown.bs.collapse")}).emulateTransitionEnd(l),this._element.style[a]=this._element[s]+"px"}}},t.hide=function(){var e=this;if(!this._isTransitioning&&r.default(this._element).hasClass("show")){var t=r.default.Event("hide.bs.collapse");if(r.default(this._element).trigger(t),!t.isDefaultPrevented()){var n=this._getDimension();this._element.style[n]=this._element.getBoundingClientRect()[n]+"px",u.reflow(this._element),r.default(this._element).addClass("collapsing").removeClass("collapse show");var i=this._triggerArray.length;if(i>0)for(var o=0;o<i;o++){var a=this._triggerArray[o],s=u.getSelectorFromElement(a);null!==s&&(r.default([].slice.call(document.querySelectorAll(s))).hasClass("show")||r.default(a).addClass("collapsed").attr("aria-expanded",!1))}this.setTransitioning(!0),this._element.style[n]="";var l=u.getTransitionDurationFromElement(this._element);r.default(this._element).one(u.TRANSITION_END,function(){e.setTransitioning(!1),r.default(e._element).removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")}).emulateTransitionEnd(l)}}},t.setTransitioning=function(e){this._isTransitioning=e},t.dispose=function(){r.default.removeData(this._element,"bs.collapse"),this._config=null,this._parent=null,this._element=null,this._triggerArray=null,this._isTransitioning=null},t._getConfig=function(e){return(e=l({},x,e)).toggle=Boolean(e.toggle),u.typeCheckConfig(w,e,T),e},t._getDimension=function(){return r.default(this._element).hasClass("width")?"width":"height"},t._getParent=function(){var t,n=this;u.isElement(this._config.parent)?(t=this._config.parent,void 0!==this._config.parent.jquery&&(t=this._config.parent[0])):t=document.querySelector(this._config.parent);var i=[].slice.call(t.querySelectorAll('[data-toggle="collapse"][data-parent="'+this._config.parent+'"]'));return r.default(i).each(function(t,i){n._addAriaAndCollapsedClass(e._getTargetFromElement(i),[i])}),t},t._addAriaAndCollapsedClass=function(e,t){var n=r.default(e).hasClass("show");t.length&&r.default(t).toggleClass("collapsed",!n).attr("aria-expanded",n)},e._getTargetFromElement=function(e){var t=u.getSelectorFromElement(e);return t?document.querySelector(t):null},e._jQueryInterface=function(t){return this.each(function(){var n=r.default(this),i=n.data("bs.collapse"),o=l({},x,n.data(),"object"==typeof t&&t?t:{});if(!i&&o.toggle&&"string"==typeof t&&/show|hide/.test(t)&&(o.toggle=!1),i||(i=new e(this,o),n.data("bs.collapse",i)),"string"==typeof t){if(void 0===i[t])throw new TypeError('No method named "'+t+'"');i[t]()}})},s(e,null,[{key:"VERSION",get:function(){return"4.6.0"}},{key:"Default",get:function(){return x}}]),e}();r.default(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(e){"A"===e.currentTarget.tagName&&e.preventDefault();var t=r.default(this),n=u.getSelectorFromElement(this),i=[].slice.call(document.querySelectorAll(n));r.default(i).each(function(){var e=r.default(this),n=e.data("bs.collapse")?"toggle":t.data();C._jQueryInterface.call(e,n)})}),r.default.fn[w]=C._jQueryInterface,r.default.fn[w].Constructor=C,r.default.fn[w].noConflict=function(){return r.default.fn[w]=E,C._jQueryInterface};var S="dropdown",k=r.default.fn[S],D=new RegExp("38|40|27"),N={offset:0,flip:!0,boundary:"scrollParent",reference:"toggle",display:"dynamic",popperConfig:null},A={offset:"(number|string|function)",flip:"boolean",boundary:"(string|element)",reference:"(string|element)",display:"string",popperConfig:"(null|object)"},j=function(){function e(e,t){this._element=e,this._popper=null,this._config=this._getConfig(t),this._menu=this._getMenuElement(),this._inNavbar=this._detectNavbar(),this._addEventListeners()}var t=e.prototype;return t.toggle=function(){if(!this._element.disabled&&!r.default(this._element).hasClass("disabled")){var t=r.default(this._menu).hasClass("show");e._clearMenus(),t||this.show(!0)}},t.show=function(t){if(void 0===t&&(t=!1),!(this._element.disabled||r.default(this._element).hasClass("disabled")||r.default(this._menu).hasClass("show"))){var n={relatedTarget:this._element},i=r.default.Event("show.bs.dropdown",n),a=e._getParentFromElement(this._element);if(r.default(a).trigger(i),!i.isDefaultPrevented()){if(!this._inNavbar&&t){if(void 0===o.default)throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");var s=this._element;"parent"===this._config.reference?s=a:u.isElement(this._config.reference)&&(s=this._config.reference,void 0!==this._config.reference.jquery&&(s=this._config.reference[0])),"scrollParent"!==this._config.boundary&&r.default(a).addClass("position-static"),this._popper=new o.default(s,this._menu,this._getPopperConfig())}"ontouchstart"in document.documentElement&&0===r.default(a).closest(".navbar-nav").length&&r.default(document.body).children().on("mouseover",null,r.default.noop),this._element.focus(),this._element.setAttribute("aria-expanded",!0),r.default(this._menu).toggleClass("show"),r.default(a).toggleClass("show").trigger(r.default.Event("shown.bs.dropdown",n))}}},t.hide=function(){if(!this._element.disabled&&!r.default(this._element).hasClass("disabled")&&r.default(this._menu).hasClass("show")){var t={relatedTarget:this._element},n=r.default.Event("hide.bs.dropdown",t),i=e._getParentFromElement(this._element);r.default(i).trigger(n),n.isDefaultPrevented()||(this._popper&&this._popper.destroy(),r.default(this._menu).toggleClass("show"),r.default(i).toggleClass("show").trigger(r.default.Event("hidden.bs.dropdown",t)))}},t.dispose=function(){r.default.removeData(this._element,"bs.dropdown"),r.default(this._element).off(".bs.dropdown"),this._element=null,this._menu=null,null!==this._popper&&(this._popper.destroy(),this._popper=null)},t.update=function(){this._inNavbar=this._detectNavbar(),null!==this._popper&&this._popper.scheduleUpdate()},t._addEventListeners=function(){var e=this;r.default(this._element).on("click.bs.dropdown",function(t){t.preventDefault(),t.stopPropagation(),e.toggle()})},t._getConfig=function(e){return e=l({},this.constructor.Default,r.default(this._element).data(),e),u.typeCheckConfig(S,e,this.constructor.DefaultType),e},t._getMenuElement=function(){if(!this._menu){var t=e._getParentFromElement(this._element);t&&(this._menu=t.querySelector(".dropdown-menu"))}return this._menu},t._getPlacement=function(){var e=r.default(this._element.parentNode),t="bottom-start";return e.hasClass("dropup")?t=r.default(this._menu).hasClass("dropdown-menu-right")?"top-end":"top-start":e.hasClass("dropright")?t="right-start":e.hasClass("dropleft")?t="left-start":r.default(this._menu).hasClass("dropdown-menu-right")&&(t="bottom-end"),t},t._detectNavbar=function(){return r.default(this._element).closest(".navbar").length>0},t._getOffset=function(){var e=this,t={};return"function"==typeof this._config.offset?t.fn=function(t){return t.offsets=l({},t.offsets,e._config.offset(t.offsets,e._element)||{}),t}:t.offset=this._config.offset,t},t._getPopperConfig=function(){var e={placement:this._getPlacement(),modifiers:{offset:this._getOffset(),flip:{enabled:this._config.flip},preventOverflow:{boundariesElement:this._config.boundary}}};return"static"===this._config.display&&(e.modifiers.applyStyle={enabled:!1}),l({},e,this._config.popperConfig)},e._jQueryInterface=function(t){return this.each(function(){var n=r.default(this).data("bs.dropdown");if(n||(n=new e(this,"object"==typeof t?t:null),r.default(this).data("bs.dropdown",n)),"string"==typeof t){if(void 0===n[t])throw new TypeError('No method named "'+t+'"');n[t]()}})},e._clearMenus=function(t){if(!t||3!==t.which&&("keyup"!==t.type||9===t.which))for(var n=[].slice.call(document.querySelectorAll('[data-toggle="dropdown"]')),i=0,o=n.length;i<o;i++){var a=e._getParentFromElement(n[i]),s=r.default(n[i]).data("bs.dropdown"),l={relatedTarget:n[i]};if(t&&"click"===t.type&&(l.clickEvent=t),s){var u=s._menu;if(r.default(a).hasClass("show")&&!(t&&("click"===t.type&&/input|textarea/i.test(t.target.tagName)||"keyup"===t.type&&9===t.which)&&r.default.contains(a,t.target))){var c=r.default.Event("hide.bs.dropdown",l);r.default(a).trigger(c),c.isDefaultPrevented()||("ontouchstart"in document.documentElement&&r.default(document.body).children().off("mouseover",null,r.default.noop),n[i].setAttribute("aria-expanded","false"),s._popper&&s._popper.destroy(),r.default(u).removeClass("show"),r.default(a).removeClass("show").trigger(r.default.Event("hidden.bs.dropdown",l)))}}}},e._getParentFromElement=function(e){var t,n=u.getSelectorFromElement(e);return n&&(t=document.querySelector(n)),t||e.parentNode},e._dataApiKeydownHandler=function(t){if(!(/input|textarea/i.test(t.target.tagName)?32===t.which||27!==t.which&&(40!==t.which&&38!==t.which||r.default(t.target).closest(".dropdown-menu").length):!D.test(t.which))&&!this.disabled&&!r.default(this).hasClass("disabled")){var n=e._getParentFromElement(this),i=r.default(n).hasClass("show");if(i||27!==t.which){if(t.preventDefault(),t.stopPropagation(),!i||27===t.which||32===t.which)return 27===t.which&&r.default(n.querySelector('[data-toggle="dropdown"]')).trigger("focus"),void r.default(this).trigger("click");var o=[].slice.call(n.querySelectorAll(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)")).filter(function(e){return r.default(e).is(":visible")});if(0!==o.length){var a=o.indexOf(t.target);38===t.which&&a>0&&a--,40===t.which&&a<o.length-1&&a++,a<0&&(a=0),o[a].focus()}}}},s(e,null,[{key:"VERSION",get:function(){return"4.6.0"}},{key:"Default",get:function(){return N}},{key:"DefaultType",get:function(){return A}}]),e}();r.default(document).on("keydown.bs.dropdown.data-api",'[data-toggle="dropdown"]',j._dataApiKeydownHandler).on("keydown.bs.dropdown.data-api",".dropdown-menu",j._dataApiKeydownHandler).on("click.bs.dropdown.data-api keyup.bs.dropdown.data-api",j._clearMenus).on("click.bs.dropdown.data-api",'[data-toggle="dropdown"]',function(e){e.preventDefault(),e.stopPropagation(),j._jQueryInterface.call(r.default(this),"toggle")}).on("click.bs.dropdown.data-api",".dropdown form",function(e){e.stopPropagation()}),r.default.fn[S]=j._jQueryInterface,r.default.fn[S].Constructor=j,r.default.fn[S].noConflict=function(){return r.default.fn[S]=k,j._jQueryInterface};var O=r.default.fn.modal,L={backdrop:!0,keyboard:!0,focus:!0,show:!0},I={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean",show:"boolean"},q=function(){function e(e,t){this._config=this._getConfig(t),this._element=e,this._dialog=e.querySelector(".modal-dialog"),this._backdrop=null,this._isShown=!1,this._isBodyOverflowing=!1,this._ignoreBackdropClick=!1,this._isTransitioning=!1,this._scrollbarWidth=0}var t=e.prototype;return t.toggle=function(e){return this._isShown?this.hide():this.show(e)},t.show=function(e){var t=this;if(!this._isShown&&!this._isTransitioning){r.default(this._element).hasClass("fade")&&(this._isTransitioning=!0);var n=r.default.Event("show.bs.modal",{relatedTarget:e});r.default(this._element).trigger(n),this._isShown||n.isDefaultPrevented()||(this._isShown=!0,this._checkScrollbar(),this._setScrollbar(),this._adjustDialog(),this._setEscapeEvent(),this._setResizeEvent(),r.default(this._element).on("click.dismiss.bs.modal",'[data-dismiss="modal"]',function(e){return t.hide(e)}),r.default(this._dialog).on("mousedown.dismiss.bs.modal",function(){r.default(t._element).one("mouseup.dismiss.bs.modal",function(e){r.default(e.target).is(t._element)&&(t._ignoreBackdropClick=!0)})}),this._showBackdrop(function(){return t._showElement(e)}))}},t.hide=function(e){var t=this;if(e&&e.preventDefault(),this._isShown&&!this._isTransitioning){var n=r.default.Event("hide.bs.modal");if(r.default(this._element).trigger(n),this._isShown&&!n.isDefaultPrevented()){this._isShown=!1;var i=r.default(this._element).hasClass("fade");if(i&&(this._isTransitioning=!0),this._setEscapeEvent(),this._setResizeEvent(),r.default(document).off("focusin.bs.modal"),r.default(this._element).removeClass("show"),r.default(this._element).off("click.dismiss.bs.modal"),r.default(this._dialog).off("mousedown.dismiss.bs.modal"),i){var o=u.getTransitionDurationFromElement(this._element);r.default(this._element).one(u.TRANSITION_END,function(e){return t._hideModal(e)}).emulateTransitionEnd(o)}else this._hideModal()}}},t.dispose=function(){[window,this._element,this._dialog].forEach(function(e){return r.default(e).off(".bs.modal")}),r.default(document).off("focusin.bs.modal"),r.default.removeData(this._element,"bs.modal"),this._config=null,this._element=null,this._dialog=null,this._backdrop=null,this._isShown=null,this._isBodyOverflowing=null,this._ignoreBackdropClick=null,this._isTransitioning=null,this._scrollbarWidth=null},t.handleUpdate=function(){this._adjustDialog()},t._getConfig=function(e){return e=l({},L,e),u.typeCheckConfig("modal",e,I),e},t._triggerBackdropTransition=function(){var e=this,t=r.default.Event("hidePrevented.bs.modal");if(r.default(this._element).trigger(t),!t.isDefaultPrevented()){var n=this._element.scrollHeight>document.documentElement.clientHeight;n||(this._element.style.overflowY="hidden"),this._element.classList.add("modal-static");var i=u.getTransitionDurationFromElement(this._dialog);r.default(this._element).off(u.TRANSITION_END),r.default(this._element).one(u.TRANSITION_END,function(){e._element.classList.remove("modal-static"),n||r.default(e._element).one(u.TRANSITION_END,function(){e._element.style.overflowY=""}).emulateTransitionEnd(e._element,i)}).emulateTransitionEnd(i),this._element.focus()}},t._showElement=function(e){var t=this,n=r.default(this._element).hasClass("fade"),i=this._dialog?this._dialog.querySelector(".modal-body"):null;this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE||document.body.appendChild(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),r.default(this._dialog).hasClass("modal-dialog-scrollable")&&i?i.scrollTop=0:this._element.scrollTop=0,n&&u.reflow(this._element),r.default(this._element).addClass("show"),this._config.focus&&this._enforceFocus();var o=r.default.Event("shown.bs.modal",{relatedTarget:e}),a=function(){t._config.focus&&t._element.focus(),t._isTransitioning=!1,r.default(t._element).trigger(o)};if(n){var s=u.getTransitionDurationFromElement(this._dialog);r.default(this._dialog).one(u.TRANSITION_END,a).emulateTransitionEnd(s)}else a()},t._enforceFocus=function(){var e=this;r.default(document).off("focusin.bs.modal").on("focusin.bs.modal",function(t){document!==t.target&&e._element!==t.target&&0===r.default(e._element).has(t.target).length&&e._element.focus()})},t._setEscapeEvent=function(){var e=this;this._isShown?r.default(this._element).on("keydown.dismiss.bs.modal",function(t){e._config.keyboard&&27===t.which?(t.preventDefault(),e.hide()):e._config.keyboard||27!==t.which||e._triggerBackdropTransition()}):this._isShown||r.default(this._element).off("keydown.dismiss.bs.modal")},t._setResizeEvent=function(){var e=this;this._isShown?r.default(window).on("resize.bs.modal",function(t){return e.handleUpdate(t)}):r.default(window).off("resize.bs.modal")},t._hideModal=function(){var e=this;this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._showBackdrop(function(){r.default(document.body).removeClass("modal-open"),e._resetAdjustments(),e._resetScrollbar(),r.default(e._element).trigger("hidden.bs.modal")})},t._removeBackdrop=function(){this._backdrop&&(r.default(this._backdrop).remove(),this._backdrop=null)},t._showBackdrop=function(e){var t=this,n=r.default(this._element).hasClass("fade")?"fade":"";if(this._isShown&&this._config.backdrop){if(this._backdrop=document.createElement("div"),this._backdrop.className="modal-backdrop",n&&this._backdrop.classList.add(n),r.default(this._backdrop).appendTo(document.body),r.default(this._element).on("click.dismiss.bs.modal",function(e){t._ignoreBackdropClick?t._ignoreBackdropClick=!1:e.target===e.currentTarget&&("static"===t._config.backdrop?t._triggerBackdropTransition():t.hide())}),n&&u.reflow(this._backdrop),r.default(this._backdrop).addClass("show"),!e)return;if(!n)return void e();var i=u.getTransitionDurationFromElement(this._backdrop);r.default(this._backdrop).one(u.TRANSITION_END,e).emulateTransitionEnd(i)}else if(!this._isShown&&this._backdrop){r.default(this._backdrop).removeClass("show");var o=function(){t._removeBackdrop(),e&&e()};if(r.default(this._element).hasClass("fade")){var a=u.getTransitionDurationFromElement(this._backdrop);r.default(this._backdrop).one(u.TRANSITION_END,o).emulateTransitionEnd(a)}else o()}else e&&e()},t._adjustDialog=function(){var e=this._element.scrollHeight>document.documentElement.clientHeight;!this._isBodyOverflowing&&e&&(this._element.style.paddingLeft=this._scrollbarWidth+"px"),this._isBodyOverflowing&&!e&&(this._element.style.paddingRight=this._scrollbarWidth+"px")},t._resetAdjustments=function(){this._element.style.paddingLeft="",this._element.style.paddingRight=""},t._checkScrollbar=function(){var e=document.body.getBoundingClientRect();this._isBodyOverflowing=Math.round(e.left+e.right)<window.innerWidth,this._scrollbarWidth=this._getScrollbarWidth()},t._setScrollbar=function(){var e=this;if(this._isBodyOverflowing){var t=[].slice.call(document.querySelectorAll(".fixed-top, .fixed-bottom, .is-fixed, .sticky-top")),n=[].slice.call(document.querySelectorAll(".sticky-top"));r.default(t).each(function(t,n){var i=n.style.paddingRight,o=r.default(n).css("padding-right");r.default(n).data("padding-right",i).css("padding-right",parseFloat(o)+e._scrollbarWidth+"px")}),r.default(n).each(function(t,n){var i=n.style.marginRight,o=r.default(n).css("margin-right");r.default(n).data("margin-right",i).css("margin-right",parseFloat(o)-e._scrollbarWidth+"px")});var i=document.body.style.paddingRight,o=r.default(document.body).css("padding-right");r.default(document.body).data("padding-right",i).css("padding-right",parseFloat(o)+this._scrollbarWidth+"px")}r.default(document.body).addClass("modal-open")},t._resetScrollbar=function(){var e=[].slice.call(document.querySelectorAll(".fixed-top, .fixed-bottom, .is-fixed, .sticky-top"));r.default(e).each(function(e,t){var n=r.default(t).data("padding-right");r.default(t).removeData("padding-right"),t.style.paddingRight=n||""});var t=[].slice.call(document.querySelectorAll(".sticky-top"));r.default(t).each(function(e,t){var n=r.default(t).data("margin-right");void 0!==n&&r.default(t).css("margin-right",n).removeData("margin-right")});var n=r.default(document.body).data("padding-right");r.default(document.body).removeData("padding-right"),document.body.style.paddingRight=n||""},t._getScrollbarWidth=function(){var e=document.createElement("div");e.className="modal-scrollbar-measure",document.body.appendChild(e);var t=e.getBoundingClientRect().width-e.clientWidth;return document.body.removeChild(e),t},e._jQueryInterface=function(t,n){return this.each(function(){var i=r.default(this).data("bs.modal"),o=l({},L,r.default(this).data(),"object"==typeof t&&t?t:{});if(i||(i=new e(this,o),r.default(this).data("bs.modal",i)),"string"==typeof t){if(void 0===i[t])throw new TypeError('No method named "'+t+'"');i[t](n)}else o.show&&i.show(n)})},s(e,null,[{key:"VERSION",get:function(){return"4.6.0"}},{key:"Default",get:function(){return L}}]),e}();r.default(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',function(e){var t,n=this,i=u.getSelectorFromElement(this);i&&(t=document.querySelector(i));var o=r.default(t).data("bs.modal")?"toggle":l({},r.default(t).data(),r.default(this).data());"A"!==this.tagName&&"AREA"!==this.tagName||e.preventDefault();var a=r.default(t).one("show.bs.modal",function(e){e.isDefaultPrevented()||a.one("hidden.bs.modal",function(){r.default(n).is(":visible")&&n.focus()})});q._jQueryInterface.call(r.default(t),o,this)}),r.default.fn.modal=q._jQueryInterface,r.default.fn.modal.Constructor=q,r.default.fn.modal.noConflict=function(){return r.default.fn.modal=O,q._jQueryInterface};var P=["background","cite","href","itemtype","longdesc","poster","src","xlink:href"],H=/^(?:(?:https?|mailto|ftp|tel|file):|[^#&/:?]*(?:[#/?]|$))/gi,R=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[\d+/a-z]+=*$/i;function F(e,t,n){if(0===e.length)return e;if(n&&"function"==typeof n)return n(e);for(var i=(new window.DOMParser).parseFromString(e,"text/html"),r=Object.keys(t),o=[].slice.call(i.body.querySelectorAll("*")),a=function(e,n){var i=o[e],a=i.nodeName.toLowerCase();if(-1===r.indexOf(i.nodeName.toLowerCase()))return i.parentNode.removeChild(i),"continue";var s=[].slice.call(i.attributes),l=[].concat(t["*"]||[],t[a]||[]);s.forEach(function(e){(function(e,t){var n=e.nodeName.toLowerCase();if(-1!==t.indexOf(n))return-1===P.indexOf(n)||Boolean(e.nodeValue.match(H)||e.nodeValue.match(R));for(var i=t.filter(function(e){return e instanceof RegExp}),r=0,o=i.length;r<o;r++)if(n.match(i[r]))return!0;return!1})(e,l)||i.removeAttribute(e.nodeName)})},s=0,l=o.length;s<l;s++)a(s);return i.body.innerHTML}var M="tooltip",B=r.default.fn[M],W=new RegExp("(^|\\s)bs-tooltip\\S+","g"),U=["sanitize","whiteList","sanitizeFn"],Q={animation:"boolean",template:"string",title:"(string|element|function)",trigger:"string",delay:"(number|object)",html:"boolean",selector:"(string|boolean)",placement:"(string|function)",offset:"(number|string|function)",container:"(string|element|boolean)",fallbackPlacement:"(string|array)",boundary:"(string|element)",customClass:"(string|function)",sanitize:"boolean",sanitizeFn:"(null|function)",whiteList:"object",popperConfig:"(null|object)"},$={AUTO:"auto",TOP:"top",RIGHT:"right",BOTTOM:"bottom",LEFT:"left"},z={animation:!0,template:'<div class="tooltip" role="tooltip"><div class="arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:0,container:!1,fallbackPlacement:"flip",boundary:"scrollParent",customClass:"",sanitize:!0,sanitizeFn:null,whiteList:{"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},popperConfig:null},V={HIDE:"hide.bs.tooltip",HIDDEN:"hidden.bs.tooltip",SHOW:"show.bs.tooltip",SHOWN:"shown.bs.tooltip",INSERTED:"inserted.bs.tooltip",CLICK:"click.bs.tooltip",FOCUSIN:"focusin.bs.tooltip",FOCUSOUT:"focusout.bs.tooltip",MOUSEENTER:"mouseenter.bs.tooltip",MOUSELEAVE:"mouseleave.bs.tooltip"},X=function(){function e(e,t){if(void 0===o.default)throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");this._isEnabled=!0,this._timeout=0,this._hoverState="",this._activeTrigger={},this._popper=null,this.element=e,this.config=this._getConfig(t),this.tip=null,this._setListeners()}var t=e.prototype;return t.enable=function(){this._isEnabled=!0},t.disable=function(){this._isEnabled=!1},t.toggleEnabled=function(){this._isEnabled=!this._isEnabled},t.toggle=function(e){if(this._isEnabled)if(e){var t=this.constructor.DATA_KEY,n=r.default(e.currentTarget).data(t);n||(n=new this.constructor(e.currentTarget,this._getDelegateConfig()),r.default(e.currentTarget).data(t,n)),n._activeTrigger.click=!n._activeTrigger.click,n._isWithActiveTrigger()?n._enter(null,n):n._leave(null,n)}else{if(r.default(this.getTipElement()).hasClass("show"))return void this._leave(null,this);this._enter(null,this)}},t.dispose=function(){clearTimeout(this._timeout),r.default.removeData(this.element,this.constructor.DATA_KEY),r.default(this.element).off(this.constructor.EVENT_KEY),r.default(this.element).closest(".modal").off("hide.bs.modal",this._hideModalHandler),this.tip&&r.default(this.tip).remove(),this._isEnabled=null,this._timeout=null,this._hoverState=null,this._activeTrigger=null,this._popper&&this._popper.destroy(),this._popper=null,this.element=null,this.config=null,this.tip=null},t.show=function(){var e=this;if("none"===r.default(this.element).css("display"))throw new Error("Please use show on visible elements");var t=r.default.Event(this.constructor.Event.SHOW);if(this.isWithContent()&&this._isEnabled){r.default(this.element).trigger(t);var n=u.findShadowRoot(this.element),i=r.default.contains(null!==n?n:this.element.ownerDocument.documentElement,this.element);if(t.isDefaultPrevented()||!i)return;var a=this.getTipElement(),s=u.getUID(this.constructor.NAME);a.setAttribute("id",s),this.element.setAttribute("aria-describedby",s),this.setContent(),this.config.animation&&r.default(a).addClass("fade");var l="function"==typeof this.config.placement?this.config.placement.call(this,a,this.element):this.config.placement,c=this._getAttachment(l);this.addAttachmentClass(c);var f=this._getContainer();r.default(a).data(this.constructor.DATA_KEY,this),r.default.contains(this.element.ownerDocument.documentElement,this.tip)||r.default(a).appendTo(f),r.default(this.element).trigger(this.constructor.Event.INSERTED),this._popper=new o.default(this.element,a,this._getPopperConfig(c)),r.default(a).addClass("show"),r.default(a).addClass(this.config.customClass),"ontouchstart"in document.documentElement&&r.default(document.body).children().on("mouseover",null,r.default.noop);var d=function(){e.config.animation&&e._fixTransition();var t=e._hoverState;e._hoverState=null,r.default(e.element).trigger(e.constructor.Event.SHOWN),"out"===t&&e._leave(null,e)};if(r.default(this.tip).hasClass("fade")){var h=u.getTransitionDurationFromElement(this.tip);r.default(this.tip).one(u.TRANSITION_END,d).emulateTransitionEnd(h)}else d()}},t.hide=function(e){var t=this,n=this.getTipElement(),i=r.default.Event(this.constructor.Event.HIDE),o=function(){"show"!==t._hoverState&&n.parentNode&&n.parentNode.removeChild(n),t._cleanTipClass(),t.element.removeAttribute("aria-describedby"),r.default(t.element).trigger(t.constructor.Event.HIDDEN),null!==t._popper&&t._popper.destroy(),e&&e()};if(r.default(this.element).trigger(i),!i.isDefaultPrevented()){if(r.default(n).removeClass("show"),"ontouchstart"in document.documentElement&&r.default(document.body).children().off("mouseover",null,r.default.noop),this._activeTrigger.click=!1,this._activeTrigger.focus=!1,this._activeTrigger.hover=!1,r.default(this.tip).hasClass("fade")){var a=u.getTransitionDurationFromElement(n);r.default(n).one(u.TRANSITION_END,o).emulateTransitionEnd(a)}else o();this._hoverState=""}},t.update=function(){null!==this._popper&&this._popper.scheduleUpdate()},t.isWithContent=function(){return Boolean(this.getTitle())},t.addAttachmentClass=function(e){r.default(this.getTipElement()).addClass("bs-tooltip-"+e)},t.getTipElement=function(){return this.tip=this.tip||r.default(this.config.template)[0],this.tip},t.setContent=function(){var e=this.getTipElement();this.setElementContent(r.default(e.querySelectorAll(".tooltip-inner")),this.getTitle()),r.default(e).removeClass("fade show")},t.setElementContent=function(e,t){"object"!=typeof t||!t.nodeType&&!t.jquery?this.config.html?(this.config.sanitize&&(t=F(t,this.config.whiteList,this.config.sanitizeFn)),e.html(t)):e.text(t):this.config.html?r.default(t).parent().is(e)||e.empty().append(t):e.text(r.default(t).text())},t.getTitle=function(){var e=this.element.getAttribute("data-original-title");return e||(e="function"==typeof this.config.title?this.config.title.call(this.element):this.config.title),e},t._getPopperConfig=function(e){var t=this;return l({},{placement:e,modifiers:{offset:this._getOffset(),flip:{behavior:this.config.fallbackPlacement},arrow:{element:".arrow"},preventOverflow:{boundariesElement:this.config.boundary}},onCreate:function(e){e.originalPlacement!==e.placement&&t._handlePopperPlacementChange(e)},onUpdate:function(e){return t._handlePopperPlacementChange(e)}},this.config.popperConfig)},t._getOffset=function(){var e=this,t={};return"function"==typeof this.config.offset?t.fn=function(t){return t.offsets=l({},t.offsets,e.config.offset(t.offsets,e.element)||{}),t}:t.offset=this.config.offset,t},t._getContainer=function(){return!1===this.config.container?document.body:u.isElement(this.config.container)?r.default(this.config.container):r.default(document).find(this.config.container)},t._getAttachment=function(e){return $[e.toUpperCase()]},t._setListeners=function(){var e=this;this.config.trigger.split(" ").forEach(function(t){if("click"===t)r.default(e.element).on(e.constructor.Event.CLICK,e.config.selector,function(t){return e.toggle(t)});else if("manual"!==t){var n="hover"===t?e.constructor.Event.MOUSEENTER:e.constructor.Event.FOCUSIN,i="hover"===t?e.constructor.Event.MOUSELEAVE:e.constructor.Event.FOCUSOUT;r.default(e.element).on(n,e.config.selector,function(t){return e._enter(t)}).on(i,e.config.selector,function(t){return e._leave(t)})}}),this._hideModalHandler=function(){e.element&&e.hide()},r.default(this.element).closest(".modal").on("hide.bs.modal",this._hideModalHandler),this.config.selector?this.config=l({},this.config,{trigger:"manual",selector:""}):this._fixTitle()},t._fixTitle=function(){var e=typeof this.element.getAttribute("data-original-title");(this.element.getAttribute("title")||"string"!==e)&&(this.element.setAttribute("data-original-title",this.element.getAttribute("title")||""),this.element.setAttribute("title",""))},t._enter=function(e,t){var n=this.constructor.DATA_KEY;(t=t||r.default(e.currentTarget).data(n))||(t=new this.constructor(e.currentTarget,this._getDelegateConfig()),r.default(e.currentTarget).data(n,t)),e&&(t._activeTrigger["focusin"===e.type?"focus":"hover"]=!0),r.default(t.getTipElement()).hasClass("show")||"show"===t._hoverState?t._hoverState="show":(clearTimeout(t._timeout),t._hoverState="show",t.config.delay&&t.config.delay.show?t._timeout=setTimeout(function(){"show"===t._hoverState&&t.show()},t.config.delay.show):t.show())},t._leave=function(e,t){var n=this.constructor.DATA_KEY;(t=t||r.default(e.currentTarget).data(n))||(t=new this.constructor(e.currentTarget,this._getDelegateConfig()),r.default(e.currentTarget).data(n,t)),e&&(t._activeTrigger["focusout"===e.type?"focus":"hover"]=!1),t._isWithActiveTrigger()||(clearTimeout(t._timeout),t._hoverState="out",t.config.delay&&t.config.delay.hide?t._timeout=setTimeout(function(){"out"===t._hoverState&&t.hide()},t.config.delay.hide):t.hide())},t._isWithActiveTrigger=function(){for(var e in this._activeTrigger)if(this._activeTrigger[e])return!0;return!1},t._getConfig=function(e){var t=r.default(this.element).data();return Object.keys(t).forEach(function(e){-1!==U.indexOf(e)&&delete t[e]}),"number"==typeof(e=l({},this.constructor.Default,t,"object"==typeof e&&e?e:{})).delay&&(e.delay={show:e.delay,hide:e.delay}),"number"==typeof e.title&&(e.title=e.title.toString()),"number"==typeof e.content&&(e.content=e.content.toString()),u.typeCheckConfig(M,e,this.constructor.DefaultType),e.sanitize&&(e.template=F(e.template,e.whiteList,e.sanitizeFn)),e},t._getDelegateConfig=function(){var e={};if(this.config)for(var t in this.config)this.constructor.Default[t]!==this.config[t]&&(e[t]=this.config[t]);return e},t._cleanTipClass=function(){var e=r.default(this.getTipElement()),t=e.attr("class").match(W);null!==t&&t.length&&e.removeClass(t.join(""))},t._handlePopperPlacementChange=function(e){this.tip=e.instance.popper,this._cleanTipClass(),this.addAttachmentClass(this._getAttachment(e.placement))},t._fixTransition=function(){var e=this.getTipElement(),t=this.config.animation;null===e.getAttribute("x-placement")&&(r.default(e).removeClass("fade"),this.config.animation=!1,this.hide(),this.show(),this.config.animation=t)},e._jQueryInterface=function(t){return this.each(function(){var n=r.default(this),i=n.data("bs.tooltip"),o="object"==typeof t&&t;if((i||!/dispose|hide/.test(t))&&(i||(i=new e(this,o),n.data("bs.tooltip",i)),"string"==typeof t)){if(void 0===i[t])throw new TypeError('No method named "'+t+'"');i[t]()}})},s(e,null,[{key:"VERSION",get:function(){return"4.6.0"}},{key:"Default",get:function(){return z}},{key:"NAME",get:function(){return M}},{key:"DATA_KEY",get:function(){return"bs.tooltip"}},{key:"Event",get:function(){return V}},{key:"EVENT_KEY",get:function(){return".bs.tooltip"}},{key:"DefaultType",get:function(){return Q}}]),e}();r.default.fn[M]=X._jQueryInterface,r.default.fn[M].Constructor=X,r.default.fn[M].noConflict=function(){return r.default.fn[M]=B,X._jQueryInterface};var Y="popover",K=r.default.fn[Y],G=new RegExp("(^|\\s)bs-popover\\S+","g"),J=l({},X.Default,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>'}),Z=l({},X.DefaultType,{content:"(string|element|function)"}),ee={HIDE:"hide.bs.popover",HIDDEN:"hidden.bs.popover",SHOW:"show.bs.popover",SHOWN:"shown.bs.popover",INSERTED:"inserted.bs.popover",CLICK:"click.bs.popover",FOCUSIN:"focusin.bs.popover",FOCUSOUT:"focusout.bs.popover",MOUSEENTER:"mouseenter.bs.popover",MOUSELEAVE:"mouseleave.bs.popover"},te=function(e){var t,n;function i(){return e.apply(this,arguments)||this}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=i.prototype;return o.isWithContent=function(){return this.getTitle()||this._getContent()},o.addAttachmentClass=function(e){r.default(this.getTipElement()).addClass("bs-popover-"+e)},o.getTipElement=function(){return this.tip=this.tip||r.default(this.config.template)[0],this.tip},o.setContent=function(){var e=r.default(this.getTipElement());this.setElementContent(e.find(".popover-header"),this.getTitle());var t=this._getContent();"function"==typeof t&&(t=t.call(this.element)),this.setElementContent(e.find(".popover-body"),t),e.removeClass("fade show")},o._getContent=function(){return this.element.getAttribute("data-content")||this.config.content},o._cleanTipClass=function(){var e=r.default(this.getTipElement()),t=e.attr("class").match(G);null!==t&&t.length>0&&e.removeClass(t.join(""))},i._jQueryInterface=function(e){return this.each(function(){var t=r.default(this).data("bs.popover"),n="object"==typeof e?e:null;if((t||!/dispose|hide/.test(e))&&(t||(t=new i(this,n),r.default(this).data("bs.popover",t)),"string"==typeof e)){if(void 0===t[e])throw new TypeError('No method named "'+e+'"');t[e]()}})},s(i,null,[{key:"VERSION",get:function(){return"4.6.0"}},{key:"Default",get:function(){return J}},{key:"NAME",get:function(){return Y}},{key:"DATA_KEY",get:function(){return"bs.popover"}},{key:"Event",get:function(){return ee}},{key:"EVENT_KEY",get:function(){return".bs.popover"}},{key:"DefaultType",get:function(){return Z}}]),i}(X);r.default.fn[Y]=te._jQueryInterface,r.default.fn[Y].Constructor=te,r.default.fn[Y].noConflict=function(){return r.default.fn[Y]=K,te._jQueryInterface};var ne="scrollspy",ie=r.default.fn[ne],re={offset:10,method:"auto",target:""},oe={offset:"number",method:"string",target:"(string|element)"},ae=function(){function e(e,t){var n=this;this._element=e,this._scrollElement="BODY"===e.tagName?window:e,this._config=this._getConfig(t),this._selector=this._config.target+" .nav-link,"+this._config.target+" .list-group-item,"+this._config.target+" .dropdown-item",this._offsets=[],this._targets=[],this._activeTarget=null,this._scrollHeight=0,r.default(this._scrollElement).on("scroll.bs.scrollspy",function(e){return n._process(e)}),this.refresh(),this._process()}var t=e.prototype;return t.refresh=function(){var e=this,t="auto"===this._config.method?this._scrollElement===this._scrollElement.window?"offset":"position":this._config.method,n="position"===t?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight(),[].slice.call(document.querySelectorAll(this._selector)).map(function(e){var i,o=u.getSelectorFromElement(e);if(o&&(i=document.querySelector(o)),i){var a=i.getBoundingClientRect();if(a.width||a.height)return[r.default(i)[t]().top+n,o]}return null}).filter(function(e){return e}).sort(function(e,t){return e[0]-t[0]}).forEach(function(t){e._offsets.push(t[0]),e._targets.push(t[1])})},t.dispose=function(){r.default.removeData(this._element,"bs.scrollspy"),r.default(this._scrollElement).off(".bs.scrollspy"),this._element=null,this._scrollElement=null,this._config=null,this._selector=null,this._offsets=null,this._targets=null,this._activeTarget=null,this._scrollHeight=null},t._getConfig=function(e){if("string"!=typeof(e=l({},re,"object"==typeof e&&e?e:{})).target&&u.isElement(e.target)){var t=r.default(e.target).attr("id");t||(t=u.getUID(ne),r.default(e.target).attr("id",t)),e.target="#"+t}return u.typeCheckConfig(ne,e,oe),e},t._getScrollTop=function(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop},t._getScrollHeight=function(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)},t._getOffsetHeight=function(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height},t._process=function(){var e=this._getScrollTop()+this._config.offset,t=this._getScrollHeight(),n=this._config.offset+t-this._getOffsetHeight();if(this._scrollHeight!==t&&this.refresh(),e>=n){var i=this._targets[this._targets.length-1];this._activeTarget!==i&&this._activate(i)}else{if(this._activeTarget&&e<this._offsets[0]&&this._offsets[0]>0)return this._activeTarget=null,void this._clear();for(var r=this._offsets.length;r--;)this._activeTarget!==this._targets[r]&&e>=this._offsets[r]&&(void 0===this._offsets[r+1]||e<this._offsets[r+1])&&this._activate(this._targets[r])}},t._activate=function(e){this._activeTarget=e,this._clear();var t=this._selector.split(",").map(function(t){return t+'[data-target="'+e+'"],'+t+'[href="'+e+'"]'}),n=r.default([].slice.call(document.querySelectorAll(t.join(","))));n.hasClass("dropdown-item")?(n.closest(".dropdown").find(".dropdown-toggle").addClass("active"),n.addClass("active")):(n.addClass("active"),n.parents(".nav, .list-group").prev(".nav-link, .list-group-item").addClass("active"),n.parents(".nav, .list-group").prev(".nav-item").children(".nav-link").addClass("active")),r.default(this._scrollElement).trigger("activate.bs.scrollspy",{relatedTarget:e})},t._clear=function(){[].slice.call(document.querySelectorAll(this._selector)).filter(function(e){return e.classList.contains("active")}).forEach(function(e){return e.classList.remove("active")})},e._jQueryInterface=function(t){return this.each(function(){var n=r.default(this).data("bs.scrollspy");if(n||(n=new e(this,"object"==typeof t&&t),r.default(this).data("bs.scrollspy",n)),"string"==typeof t){if(void 0===n[t])throw new TypeError('No method named "'+t+'"');n[t]()}})},s(e,null,[{key:"VERSION",get:function(){return"4.6.0"}},{key:"Default",get:function(){return re}}]),e}();r.default(window).on("load.bs.scrollspy.data-api",function(){for(var e=[].slice.call(document.querySelectorAll('[data-spy="scroll"]')),t=e.length;t--;){var n=r.default(e[t]);ae._jQueryInterface.call(n,n.data())}}),r.default.fn[ne]=ae._jQueryInterface,r.default.fn[ne].Constructor=ae,r.default.fn[ne].noConflict=function(){return r.default.fn[ne]=ie,ae._jQueryInterface};var se=r.default.fn.tab,le=function(){function e(e){this._element=e}var t=e.prototype;return t.show=function(){var e=this;if(!(this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&r.default(this._element).hasClass("active")||r.default(this._element).hasClass("disabled"))){var t,n,i=r.default(this._element).closest(".nav, .list-group")[0],o=u.getSelectorFromElement(this._element);if(i){var a="UL"===i.nodeName||"OL"===i.nodeName?"> li > .active":".active";n=(n=r.default.makeArray(r.default(i).find(a)))[n.length-1]}var s=r.default.Event("hide.bs.tab",{relatedTarget:this._element}),l=r.default.Event("show.bs.tab",{relatedTarget:n});if(n&&r.default(n).trigger(s),r.default(this._element).trigger(l),!l.isDefaultPrevented()&&!s.isDefaultPrevented()){o&&(t=document.querySelector(o)),this._activate(this._element,i);var c=function(){var t=r.default.Event("hidden.bs.tab",{relatedTarget:e._element}),i=r.default.Event("shown.bs.tab",{relatedTarget:n});r.default(n).trigger(t),r.default(e._element).trigger(i)};t?this._activate(t,t.parentNode,c):c()}}},t.dispose=function(){r.default.removeData(this._element,"bs.tab"),this._element=null},t._activate=function(e,t,n){var i=this,o=(!t||"UL"!==t.nodeName&&"OL"!==t.nodeName?r.default(t).children(".active"):r.default(t).find("> li > .active"))[0],a=n&&o&&r.default(o).hasClass("fade"),s=function(){return i._transitionComplete(e,o,n)};if(o&&a){var l=u.getTransitionDurationFromElement(o);r.default(o).removeClass("show").one(u.TRANSITION_END,s).emulateTransitionEnd(l)}else s()},t._transitionComplete=function(e,t,n){if(t){r.default(t).removeClass("active");var i=r.default(t.parentNode).find("> .dropdown-menu .active")[0];i&&r.default(i).removeClass("active"),"tab"===t.getAttribute("role")&&t.setAttribute("aria-selected",!1)}if(r.default(e).addClass("active"),"tab"===e.getAttribute("role")&&e.setAttribute("aria-selected",!0),u.reflow(e),e.classList.contains("fade")&&e.classList.add("show"),e.parentNode&&r.default(e.parentNode).hasClass("dropdown-menu")){var o=r.default(e).closest(".dropdown")[0];if(o){var a=[].slice.call(o.querySelectorAll(".dropdown-toggle"));r.default(a).addClass("active")}e.setAttribute("aria-expanded",!0)}n&&n()},e._jQueryInterface=function(t){return this.each(function(){var n=r.default(this),i=n.data("bs.tab");if(i||(i=new e(this),n.data("bs.tab",i)),"string"==typeof t){if(void 0===i[t])throw new TypeError('No method named "'+t+'"');i[t]()}})},s(e,null,[{key:"VERSION",get:function(){return"4.6.0"}}]),e}();r.default(document).on("click.bs.tab.data-api",'[data-toggle="tab"], [data-toggle="pill"], [data-toggle="list"]',function(e){e.preventDefault(),le._jQueryInterface.call(r.default(this),"show")}),r.default.fn.tab=le._jQueryInterface,r.default.fn.tab.Constructor=le,r.default.fn.tab.noConflict=function(){return r.default.fn.tab=se,le._jQueryInterface};var ue=r.default.fn.toast,ce={animation:"boolean",autohide:"boolean",delay:"number"},fe={animation:!0,autohide:!0,delay:500},de=function(){function e(e,t){this._element=e,this._config=this._getConfig(t),this._timeout=null,this._setListeners()}var t=e.prototype;return t.show=function(){var e=this,t=r.default.Event("show.bs.toast");if(r.default(this._element).trigger(t),!t.isDefaultPrevented()){this._clearTimeout(),this._config.animation&&this._element.classList.add("fade");var n=function(){e._element.classList.remove("showing"),e._element.classList.add("show"),r.default(e._element).trigger("shown.bs.toast"),e._config.autohide&&(e._timeout=setTimeout(function(){e.hide()},e._config.delay))};if(this._element.classList.remove("hide"),u.reflow(this._element),this._element.classList.add("showing"),this._config.animation){var i=u.getTransitionDurationFromElement(this._element);r.default(this._element).one(u.TRANSITION_END,n).emulateTransitionEnd(i)}else n()}},t.hide=function(){if(this._element.classList.contains("show")){var e=r.default.Event("hide.bs.toast");r.default(this._element).trigger(e),e.isDefaultPrevented()||this._close()}},t.dispose=function(){this._clearTimeout(),this._element.classList.contains("show")&&this._element.classList.remove("show"),r.default(this._element).off("click.dismiss.bs.toast"),r.default.removeData(this._element,"bs.toast"),this._element=null,this._config=null},t._getConfig=function(e){return e=l({},fe,r.default(this._element).data(),"object"==typeof e&&e?e:{}),u.typeCheckConfig("toast",e,this.constructor.DefaultType),e},t._setListeners=function(){var e=this;r.default(this._element).on("click.dismiss.bs.toast",'[data-dismiss="toast"]',function(){return e.hide()})},t._close=function(){var e=this,t=function(){e._element.classList.add("hide"),r.default(e._element).trigger("hidden.bs.toast")};if(this._element.classList.remove("show"),this._config.animation){var n=u.getTransitionDurationFromElement(this._element);r.default(this._element).one(u.TRANSITION_END,t).emulateTransitionEnd(n)}else t()},t._clearTimeout=function(){clearTimeout(this._timeout),this._timeout=null},e._jQueryInterface=function(t){return this.each(function(){var n=r.default(this),i=n.data("bs.toast");if(i||(i=new e(this,"object"==typeof t&&t),n.data("bs.toast",i)),"string"==typeof t){if(void 0===i[t])throw new TypeError('No method named "'+t+'"');i[t](this)}})},s(e,null,[{key:"VERSION",get:function(){return"4.6.0"}},{key:"DefaultType",get:function(){return ce}},{key:"Default",get:function(){return fe}}]),e}();r.default.fn.toast=de._jQueryInterface,r.default.fn.toast.Constructor=de,r.default.fn.toast.noConflict=function(){return r.default.fn.toast=ue,de._jQueryInterface},e.Alert=d,e.Button=p,e.Carousel=_,e.Collapse=C,e.Dropdown=j,e.Modal=q,e.Popover=te,e.Scrollspy=ae,e.Tab=le,e.Toast=de,e.Tooltip=X,e.Util=u,Object.defineProperty(e,"__esModule",{value:!0})});;
(self.webpackChunkmitracking_public=self.webpackChunkmitracking_public||[]).push([[179],{255:e=>{function t(e){return Promise.resolve().then(()=>{var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t})}t.keys=()=>[],t.resolve=t,t.id=255,e.exports=t},901:function(e,t){!function(e){"use strict";var t={Promise:"undefined"!=typeof window?window.Promise:void 0},n="4.20",r="next";function i(e){if(e.toLowerCase()===r)return r;var t=e&&e.match(/^(\d)\.(\d+)/);return t&&{major:parseInt(t[1],10),minor:parseInt(t[2],10)}}function o(e){return void 0===e&&(e=n),"https://js.arcgis.com/"+e+"/"}function s(e,t){var s=function(e){return!e||i(e)?function(e){void 0===e&&(e=n);var t=o(e),s=i(e);return s!==r&&3===s.major?t+(s.minor<=10?"js/":"")+"esri/css/esri.css":t+"esri/themes/light/main.css"}(e):e}(e),a=function(e){return document.querySelector('link[href*="'+e+'"]')}(s);return a||function(e,t){if(t){var n=document.querySelector(t);n.parentNode.insertBefore(e,n)}else document.head.appendChild(e)}(a=function(e){var t=document.createElement("link");return t.rel="stylesheet",t.href=e,t}(s),t),a}var a={};function l(e,t,n){var r;n&&(r=function(e,t){var n=function(r){t(r.error||new Error("There was an error attempting to load "+e.src)),e.removeEventListener("error",n,!1)};return e.addEventListener("error",n,!1),n}(e,n));var i=function(){t(e),e.removeEventListener("load",i,!1),r&&e.removeEventListener("error",r,!1)};e.addEventListener("load",i,!1)}function A(){return document.querySelector("script[data-esri-loader]")}function c(){var e=window.require;return e&&e.on}function u(e){void 0===e&&(e={});var n={};[a,e].forEach(function(e){for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t])});var r=n.version,i=n.url||o(r);return new t.Promise(function(e,t){var o=A();if(o){var a=o.getAttribute("src");a!==i?t(new Error("The ArcGIS API for JavaScript is already loaded ("+a+").")):c()?e(o):l(o,e,t)}else if(c())t(new Error("The ArcGIS API for JavaScript is already loaded."));else{var u=n.css;u&&s(!0===u?r:u,n.insertCssBefore),l(o=function(e){var t=document.createElement("script");return t.type="text/javascript",t.src=e,t.setAttribute("data-esri-loader","loading"),t}(i),function(){o.setAttribute("data-esri-loader","loaded"),e(o)},t),document.body.appendChild(o)}})}function h(e){return new t.Promise(function(t,n){var r=window.require.on("error",n);window.require(e,function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];r.remove(),t(e)})})}e.utils=t,e.loadModules=function(e,t){if(void 0===t&&(t={}),c())return h(e);var n=A(),r=n&&n.getAttribute("src");return!t.url&&r&&(t.url=r),u(t).then(function(){return h(e)})},e.getScript=A,e.isLoaded=c,e.loadScript=u,e.setDefaultOptions=function(e){void 0===e&&(e={}),a=e},e.loadCss=s,Object.defineProperty(e,"__esModule",{value:!0})}(t)},457:function(e,t){var n,r;void 0===(r="function"==typeof(n=function(){"use strict";function t(e,t,n){var r=new XMLHttpRequest;r.open("GET",e),r.responseType="blob",r.onload=function(){s(r.response,t,n)},r.onerror=function(){console.error("could not download file")},r.send()}function n(e){var t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch(e){}return 200<=t.status&&299>=t.status}function r(e){try{e.dispatchEvent(new MouseEvent("click"))}catch(t){var n=document.createEvent("MouseEvents");n.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(n)}}var i="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof global&&global.global===global?global:void 0,o=i.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),s=i.saveAs||("object"!=typeof window||window!==i?function(){}:"download"in HTMLAnchorElement.prototype&&!o?function(e,o,s){var a=i.URL||i.webkitURL,l=document.createElement("a");l.download=o=o||e.name||"download",l.rel="noopener","string"==typeof e?(l.href=e,l.origin===location.origin?r(l):n(l.href)?t(e,o,s):r(l,l.target="_blank")):(l.href=a.createObjectURL(e),setTimeout(function(){a.revokeObjectURL(l.href)},4e4),setTimeout(function(){r(l)},0))}:"msSaveOrOpenBlob"in navigator?function(e,i,o){if(i=i||e.name||"download","string"!=typeof e)navigator.msSaveOrOpenBlob(function(e,t){return void 0===t?t={autoBom:!1}:"object"!=typeof t&&(console.warn("Deprecated: Expected third argument to be a object"),t={autoBom:!t}),t.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob(["\ufeff",e],{type:e.type}):e}(e,o),i);else if(n(e))t(e,i,o);else{var s=document.createElement("a");s.href=e,s.target="_blank",setTimeout(function(){r(s)})}}:function(e,n,r,s){if((s=s||open("","_blank"))&&(s.document.title=s.document.body.innerText="downloading..."),"string"==typeof e)return t(e,n,r);var a="application/octet-stream"===e.type,l=/constructor/i.test(i.HTMLElement)||i.safari,A=/CriOS\/[\d]+/.test(navigator.userAgent);if((A||a&&l||o)&&"undefined"!=typeof FileReader){var c=new FileReader;c.onloadend=function(){var e=c.result;e=A?e:e.replace(/^data:[^;]*;/,"data:attachment/file;"),s?s.location.href=e:location=e,s=null},c.readAsDataURL(e)}else{var u=i.URL||i.webkitURL,h=u.createObjectURL(e);s?s.location=h:location.href=h,s=null,setTimeout(function(){u.revokeObjectURL(h)},4e4)}});i.saveAs=s.saveAs=s,e.exports=s})?n.apply(t,[]):n)||(e.exports=r)},67:e=>{var n;e.exports=(n=function(e){return"number"==typeof e&&parseFloat(e)==parseInt(e,10)&&!isNaN(e)},Array.prototype.indexOf||(Array.prototype.indexOf=function(e,t){if(null==this)throw new TypeError('"this" is null or not defined');var n=this.length>>>0;for(t=+t||0,1/0===Math.abs(t)&&(t=0),0>t&&0>(t+=n)&&(t=0);t<n;t++)if(this[t]===e)return t;return-1}),function(e){this.objectID="",this.legendSeparator=this.separator=" - ",this.method="",this.precision=0,this.precisionflag="auto",this.roundlength=2,this.silent=this.debug=this.is_uniqueValues=!1,this.bounds=[],this.ranges=[],this.inner_ranges=null,this.colors=[],this.counter=[],this.stat_cov=this.stat_stddev=this.stat_variance=this.stat_pop=this.stat_min=this.stat_max=this.stat_sum=this.stat_median=this.stat_mean=this.stat_sorted=null,this.log=function(e,t){1!=this.debug&&null==t||console.log(this.objectID+"(object id) :: "+e)},this.setBounds=function(e){this.log("Setting bounds ("+e.length+") : "+e.join()),this.bounds=e},this.setSerie=function(e){this.log("Setting serie ("+e.length+") : "+e.join()),this.serie=e,this.resetStatistics(),this.setPrecision()},this.setColors=function(e){this.log("Setting color ramp ("+e.length+") : "+e.join()),this.colors=e},this.doCount=function(){if(!this._nodata()){var e=this.sorted();if(this.counter=[],1==this.is_uniqueValues)for(var t=0;t<this.bounds.length;t++)this.counter[t]=0;else for(t=0;t<this.bounds.length-1;t++)this.counter[t]=0;for(t=0;t<e.length;t++){var n=this.getClass(e[t]);this.counter[n]++}}},this.setPrecision=function(e){if(void 0!==e&&(this.precisionflag="manual",this.precision=e),"auto"==this.precisionflag)for(e=0;e<this.serie.length;e++){var t=isNaN(this.serie[e]+"")||-1==(this.serie[e]+"").toString().indexOf(".")?0:(this.serie[e]+"").split(".")[1].length;t>this.precision&&(this.precision=t)}20<this.precision&&(this.log("this.precision value ("+this.precision+') is greater than max value. Automatic set-up to 20 to prevent "Uncaught RangeError: toFixed()" when calling decimalFormat() method.'),this.precision=20),this.log("Calling setPrecision(). Mode : "+this.precisionflag+" - Decimals : "+this.precision),this.serie=this.decimalFormat(this.serie)},this.decimalFormat=function(e){for(var t=[],n=0;n<e.length;n++){var r=e[n];r=!isNaN(parseFloat(r))&&isFinite(r),t[n]=r?parseFloat(parseFloat(e[n]).toFixed(this.precision)):e[n]}return t},this.setRanges=function(){this.ranges=[];for(var e=0;e<this.bounds.length-1;e++)this.ranges[e]=this.bounds[e]+this.separator+this.bounds[e+1]},this.min=function(){if(!this._nodata()){this.stat_min=this.serie[0];for(var e=0;e<this.pop();e++)this.serie[e]<this.stat_min&&(this.stat_min=this.serie[e]);return this.stat_min}},this.max=function(){if(!this._nodata()){this.stat_max=this.serie[0];for(var e=0;e<this.pop();e++)this.serie[e]>this.stat_max&&(this.stat_max=this.serie[e]);return this.stat_max}},this.sum=function(){if(!this._nodata()){if(null==this.stat_sum)for(var e=this.stat_sum=0;e<this.pop();e++)this.stat_sum+=parseFloat(this.serie[e]);return this.stat_sum}},this.pop=function(){if(!this._nodata())return null==this.stat_pop&&(this.stat_pop=this.serie.length),this.stat_pop},this.mean=function(){if(!this._nodata())return null==this.stat_mean&&(this.stat_mean=parseFloat(this.sum()/this.pop())),this.stat_mean},this.median=function(){if(!this._nodata()){if(null==this.stat_median){this.stat_median=0;var e=this.sorted();this.stat_median=e.length%2?parseFloat(e[Math.ceil(e.length/2)-1]):(parseFloat(e[e.length/2-1])+parseFloat(e[e.length/2]))/2}return this.stat_median}},this.variance=function(){var e=void 0===e;if(!this._nodata()){if(null==this.stat_variance){for(var t=0,n=this.mean(),r=0;r<this.pop();r++)t+=Math.pow(this.serie[r]-n,2);this.stat_variance=t/this.pop(),1==e&&(this.stat_variance=Math.round(this.stat_variance*Math.pow(10,this.roundlength))/Math.pow(10,this.roundlength))}return this.stat_variance}},this.stddev=function(e){if(e=void 0===e,!this._nodata())return null==this.stat_stddev&&(this.stat_stddev=Math.sqrt(this.variance()),1==e&&(this.stat_stddev=Math.round(this.stat_stddev*Math.pow(10,this.roundlength))/Math.pow(10,this.roundlength))),this.stat_stddev},this.cov=function(e){if(e=void 0===e,!this._nodata())return null==this.stat_cov&&(this.stat_cov=this.stddev()/this.mean(),1==e&&(this.stat_cov=Math.round(this.stat_cov*Math.pow(10,this.roundlength))/Math.pow(10,this.roundlength))),this.stat_cov},this.resetStatistics=function(){this.stat_cov=this.stat_stddev=this.stat_variance=this.stat_pop=this.stat_min=this.stat_max=this.stat_sum=this.stat_median=this.stat_mean=this.stat_sorted=null},this._nodata=function(){if(0==this.serie.length){if(!this.silent)throw new TypeError("Error. You should first enter a serie!");return this.log("[silent mode] Error. You should first enter a serie!",!0),1}return 0},this._nbClassInt=function(e){if(e=parseInt(e,10),!isNaN(e))return e;if(!this.silent)throw new TypeError("'"+e+"' is not a valid integer. Enable to set class number.");this.log("[silent mode] '"+e+"' is not a valid integer. Enable to set class number.",!0)},this._hasNegativeValue=function(){for(var e=0;e<this.serie.length;e++)if(0>this.serie[e])return!0;return!1},this._hasZeroValue=function(){for(var e=0;e<this.serie.length;e++)if(0===parseFloat(this.serie[e]))return!0;return!1},this.sorted=function(){return null==this.stat_sorted&&(this.stat_sorted=this.serie.sort(0==this.is_uniqueValues?function(e,t){return e-t}:function(e,t){var n=e.toString().toLowerCase(),r=t.toString().toLowerCase();return n<r?-1:n>r?1:0})),this.stat_sorted},this.info=function(){if(!this._nodata()){var e="Population : "+this.pop()+" - [Min : "+this.min()+" | Max : "+this.max()+"]\n";return(e+="Mean : "+this.mean()+" - Median : "+this.median()+"\n")+"Variance : "+this.variance()+" - Standard deviation : "+this.stddev()+" - Coefficient of variation : "+this.cov()+"\n"}},this.setClassManually=function(e){if(!this._nodata()){if(e[0]===this.min()&&e[e.length-1]===this.max())return this.setBounds(e),this.setRanges(),this.method="manual classification ("+(e.length-1)+" classes)",this.bounds;if(!this.silent)throw new TypeError("Given bounds may not be correct! please check your input.\nMin value : "+this.min()+" / Max value : "+this.max());this.log("[silent mode] "+t("Given bounds may not be correct! please check your input.\nMin value : "+this.min()+" / Max value : "+this.max()),!0)}},this.getClassEqInterval=function(e,t,n){if(e=this._nbClassInt(e),!this._nodata()){var r=void 0===t?this.min():t;t=[];var i=r;r=((n=void 0===n?this.max():n)-r)/e;for(var o=0;o<=e;o++)t[o]=i,i+=r;return t[e]=n,this.setBounds(t),this.setRanges(),this.method="eq. intervals ("+e+" classes)",this.bounds}},this.getQuantiles=function(e){e=this._nbClassInt(e);for(var t=this.sorted(),n=[],r=this.pop()/e,i=1;i<e;i++)n.push(t[Math.round(i*r+.49)-1]);return n},this.getClassQuantile=function(e){if(e=this._nbClassInt(e),!this._nodata()){var t=this.sorted(),n=this.getQuantiles(e);return n.unshift(t[0]),n[t.length-1]!==t[t.length-1]&&n.push(t[t.length-1]),this.setBounds(n),this.setRanges(),this.method="quantile ("+e+" classes)",this.bounds}},this.getClassStdDeviation=function(e,t){if(e=this._nbClassInt(e),!this._nodata()){var n=this.max(),r=this.min(),i=this.stddev(),o=this.mean(),s=[];if(1==e%2){var a=Math.floor(e/2),l=a+1;for(s[a]=o-i/2,s[l]=o+i/2,o=a-1;0<o;o--)s[o]=a=s[o+1]-i;o=l+1}else{for(s[l=e/2]=o,o=l-1;0<o;o--)s[o]=a=s[o+1]-i;o=l+1}for(;o<e;o++)s[o]=a=s[o-1]+i;return s[0]=void 0===t?s[1]-i:r,s[e]=void 0===t?s[e-1]+i:n,this.setBounds(s),this.setRanges(),this.method="std deviation ("+e+" classes)",this.bounds}},this.getClassGeometricProgression=function(e){if(e=this._nbClassInt(e),!this._nodata()){if(!this._hasNegativeValue()&&!this._hasZeroValue()){var t=[],n=this.min(),r=this.max();n=Math.log(n)/Math.LN10,r=(Math.log(r)/Math.LN10-n)/e;for(var i=0;i<e;i++)t[i]=0==i?n:t[i-1]+r;return(t=t.map(function(e){return Math.pow(10,e)})).push(this.max()),this.setBounds(t),this.setRanges(),this.method="geometric progression ("+e+" classes)",this.bounds}if(!this.silent)throw new TypeError("geometric progression can't be applied with a serie containing negative or zero values.");this.log("[silent mode] geometric progression can't be applied with a serie containing negative or zero values.",!0)}},this.getClassArithmeticProgression=function(e){if(e=this._nbClassInt(e),!this._nodata()){for(var t=0,n=1;n<=e;n++)t+=n;var r=[],i=this.min();for(t=(this.max()-i)/t,n=0;n<=e;n++)r[n]=0==n?i:r[n-1]+n*t;return this.setBounds(r),this.setRanges(),this.method="arithmetic progression ("+e+" classes)",this.bounds}},this.getClassJenks2=function(e){if(e=this._nbClassInt(e),!this._nodata()){for(var t=this.sorted(),n=[],r=0,i=t.length+1;r<i;r++){for(var o=[],s=0,a=e+1;s<a;s++)o.push(0);n.push(o)}for(r=[],i=0,o=t.length+1;i<o;i++){s=[],a=0;for(var l=e+1;a<l;a++)s.push(0);r.push(s)}for(i=1,o=e+1;i<o;i++){n[0][i]=1,r[0][i]=0;var A=1;for(s=t.length+1;A<s;A++)r[A][i]=1/0;A=0}for(i=2,o=t.length+1;i<o;i++){l=a=s=0;for(var c=1,u=i+1;c<u;c++){var h=i-c+1;A=(a+=(A=parseFloat(t[h-1]))*A)-(s+=A)*s/(l+=1);var d=h-1;if(0!=d)for(var p=2,f=e+1;p<f;p++)r[i][p]>=A+r[d][p-1]&&(n[i][p]=h,r[i][p]=A+r[d][p-1])}n[i][1]=1,r[i][1]=A}for(A=t.length,r=[],i=0;i<=e;i++)r.push(0);for(r[e]=parseFloat(t[t.length-1]),r[0]=parseFloat(t[0]),i=e;2<=i;)o=parseInt(n[A][i]-2),r[i-1]=t[o],A=parseInt(n[A][i]-1),--i;return r[0]==r[1]&&(r[0]=0),this.setBounds(r),this.setRanges(),this.method="Jenks2 ("+e+" classes)",this.bounds}},this.getClassJenks=function(e){if(e=this._nbClassInt(e),!this._nodata()){var t=this.sorted();jenksMatrices=function(e,t){var n,r,i=[],o=[],s=0;for(n=0;n<e.length+1;n++){var a=[],l=[];for(r=0;r<t+1;r++)a.push(0),l.push(0);i.push(a),o.push(l)}for(n=1;n<t+1;n++)for(i[1][n]=1,o[1][n]=0,r=2;r<e.length+1;r++)o[r][n]=1/0;for(n=2;n<e.length+1;n++){for(var A,c=l=a=0,u=1;u<n+1;u++){var h=n-u+1;if(s=(l+=(r=e[h-1])*r)-(a+=r)*a/++c,0!=(A=h-1))for(r=2;r<t+1;r++)o[n][r]>=s+o[A][r-1]&&(i[n][r]=h,o[n][r]=s+o[A][r-1])}i[n][1]=1,o[n][1]=s}return{lower_class_limits:i,variance_combinations:o}};var n=jenksMatrices(t,e).lower_class_limits,r=t.length-1,i=[],o=e;for(i[e]=t[t.length-1],i[0]=t[0];1<o;)i[o-1]=t[n[r][o]-2],r=n[r][o]-1,o--;return this.setBounds(i),this.setRanges(),this.method="Jenks ("+e+" classes)",this.bounds}},this.getClassUniqueValues=function(){if(!this._nodata()){this.is_uniqueValues=!0;for(var e=this.sorted(),t=[],n=0;n<this.pop();n++)-1===t.indexOf(e[n])&&t.push(e[n]);return this.bounds=t,this.method="unique values",t}},this.getClass=function(e){for(var t=0;t<this.bounds.length;t++)if(1==this.is_uniqueValues){if(e==this.bounds[t])return t}else if(parseFloat(e)<=this.bounds[t+1])return t;return"Unable to get value's class."},this.getRanges=function(){return this.ranges},this.getRangeNum=function(e){var t;for(t=0;t<this.ranges.length;t++){var n=this.ranges[t].split(/ - /);if(e<=parseFloat(n[1]))return t}},this.getInnerRanges=function(){if(null!=this.inner_ranges)return this.inner_ranges;for(var e=[],t=this.sorted(),n=1,r=0;r<t.length;r++){if(0==r)var i=t[r];if(parseFloat(t[r])>parseFloat(this.bounds[n])&&(e[n-1]=""+i+this.separator+t[r-1],i=t[r],n++),n==this.bounds.length-1)return e[n-1]=""+i+this.separator+t[t.length-1],this.inner_ranges=e}},this.getSortedlist=function(){return this.sorted().join(", ")},this.getHtmlLegend=function(e,t,r,i,o,s){var a="",l=[];if(this.doCount(),ccolors=null!=e?e:this.colors,lg=null!=t?t:"Legend",getcounter=null!=r,fn=null!=i?i:function(e){return e},null==o&&(o="default"),"discontinuous"!=o||(this.getInnerRanges(),-1===this.counter.indexOf(0))){if("DESC"!==s&&(s="ASC"),!(ccolors.length<this.ranges.length)){if(0==this.is_uniqueValues)for(e=0;e<this.ranges.length;e++)!0===getcounter&&(a=' <span class="geostats-legend-counter">('+this.counter[e]+")</span>"),r=this.ranges[e].split(this.separator),t=parseFloat(r[0]).toFixed(this.precision),r=parseFloat(r[1]).toFixed(this.precision),"distinct"==o&&0!=e&&(n(t)?(t=parseInt(t)+1,"manual"==this.precisionflag&&0!=this.precision&&(t=parseFloat(t).toFixed(this.precision))):(t=parseFloat(t)+1/Math.pow(10,this.precision),t=parseFloat(t).toFixed(this.precision))),"discontinuous"==o&&(r=this.inner_ranges[e].split(this.separator),t=parseFloat(r[0]).toFixed(this.precision),r=parseFloat(r[1]).toFixed(this.precision)),t=fn(t)+this.legendSeparator+fn(r),t='<div><div class="geostats-legend-block" style="background-color:'+ccolors[e]+'"></div> '+t+a+"</div>",l.push(t);else for(e=0;e<this.bounds.length;e++)!0===getcounter&&(a=' <span class="geostats-legend-counter">('+this.counter[e]+")</span>"),t=fn(this.bounds[e]),t='<div><div class="geostats-legend-block" style="background-color:'+ccolors[e]+'"></div> '+t+a+"</div>",l.push(t);for("DESC"===s&&l.reverse(),o='<div class="geostats-legend"><div class="geostats-legend-title">'+lg+"</div>",e=0;e<l.length;e++)o+=l[e];return o+"</div>"}if(!this.silent)throw new TypeError("The number of colors should fit the number of ranges. Exit!");this.log("[silent mode] The number of colors should fit the number of ranges. Exit!",!0)}else{if(!this.silent)throw new TypeError("Geostats cannot apply 'discontinuous' mode to the getHtmlLegend() method because some classes are not populated.\nPlease switch to 'default' or 'distinct' modes. Exit!");this.log("[silent mode] Geostats cannot apply 'discontinuous' mode to the getHtmlLegend() method because some classes are not populated.\nPlease switch to 'default' or 'distinct' modes. Exit!",!0)}},this.objectID=(new Date).getUTCMilliseconds(),this.log("Creating new geostats object"),void 0!==e&&0<e.length?(this.serie=e,this.setPrecision(),this.log("Setting serie ("+e.length+") : "+e.join())):this.serie=[],this.getJenks=this.getClassJenks,this.getJenks2=this.getClassJenks2,this.getGeometricProgression=this.getClassGeometricProgression,this.getEqInterval=this.getClassEqInterval,this.getQuantile=this.getClassQuantile,this.getStdDeviation=this.getClassStdDeviation,this.getUniqueValues=this.getClassUniqueValues,this.getArithmeticProgression=this.getClassArithmeticProgression})},977:function(e){e.exports=function(){"use strict";var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};function t(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}var n=function(){return(n=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function r(e,t,n,r){return new(n||(n=Promise))(function(i,o){function s(e){try{l(r.next(e))}catch(t){o(t)}}function a(e){try{l(r.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(s,a)}l((r=r.apply(e,t||[])).next())})}function i(e,t){var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!((i=(i=s.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(a){o=[6,a],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}}function o(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||t)}for(var s=function(){function e(e,t,n,r){this.left=e,this.top=t,this.width=n,this.height=r}return e.prototype.add=function(t,n,r,i){return new e(this.left+t,this.top+n,this.width+r,this.height+i)},e.fromClientRect=function(t,n){return new e(n.left+t.windowBounds.left,n.top+t.windowBounds.top,n.width,n.height)},e}(),a=function(e,t){return s.fromClientRect(e,t.getBoundingClientRect())},l=function(e){for(var t=[],n=0,r=e.length;n<r;){var i=e.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){var o=e.charCodeAt(n++);56320==(64512&o)?t.push(((1023&i)<<10)+(1023&o)+65536):(t.push(i),n--)}else t.push(i)}return t},A=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(String.fromCodePoint)return String.fromCodePoint.apply(String,e);var n=e.length;if(!n)return"";for(var r=[],i=-1,o="";++i<n;){var s=e[i];s<=65535?r.push(s):r.push(55296+((s-=65536)>>10),s%1024+56320),(i+1===n||r.length>16384)&&(o+=String.fromCharCode.apply(String,r),r.length=0)}return o},c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",u="undefined"==typeof Uint8Array?[]:new Uint8Array(256),h=0;h<c.length;h++)u[c.charCodeAt(h)]=h;var d,p,f,g,m,y,w,v,b=function(e,t,n){return e.slice?e.slice(t,n):new Uint16Array(Array.prototype.slice.call(e,t,n))},C=function(){function e(e,t,n,r,i,o){this.initialValue=e,this.errorValue=t,this.highStart=n,this.highValueIndex=r,this.index=i,this.data=o}return e.prototype.get=function(e){var t;if(e>=0){if(e<55296||e>56319&&e<=65535)return this.data[t=((t=this.index[e>>5])<<2)+(31&e)];if(e<=65535)return this.data[t=((t=this.index[2048+(e-55296>>5)])<<2)+(31&e)];if(e<this.highStart)return t=this.index[t=2080+(e>>11)],this.data[t=((t=this.index[t+=e>>5&63])<<2)+(31&e)];if(e<=1114111)return this.data[this.highValueIndex]}return this.errorValue},e}(),B=10,E=13,_=15,F=17,x=18,T=19,Q=20,S=21,k=22,U=24,D=25,O=26,L=27,I=28,H=30,M=32,R=33,N=34,P=35,K=37,V=38,G=39,j=40,q=42,z=[9001,65288],W="\xd7",X="\xf7",J=(g=function(e){var t,n,r,i,o,s=.75*e.length,a=e.length,l=0;"="===e[e.length-1]&&(s--,"="===e[e.length-2]&&s--);var A="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array&&void 0!==Uint8Array.prototype.slice?new ArrayBuffer(s):new Array(s),c=Array.isArray(A)?A:new Uint8Array(A);for(t=0;t<a;t+=4)n=u[e.charCodeAt(t)],r=u[e.charCodeAt(t+1)],i=u[e.charCodeAt(t+2)],o=u[e.charCodeAt(t+3)],c[l++]=n<<2|r>>4,c[l++]=(15&r)<<4|i>>2,c[l++]=(3&i)<<6|63&o;return A}("KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF8AZwBgAGgAcQB5AHUAfQCFAI0AlQCdAKIAqgCyALoAYABoAGAAaABgAGgAwgDKAGAAaADGAM4A0wDbAOEA6QDxAPkAAQEJAQ8BFwF1AH0AHAEkASwBNAE6AUIBQQFJAVEBWQFhAWgBcAF4ATAAgAGGAY4BlQGXAZ8BpwGvAbUBvQHFAc0B0wHbAeMB6wHxAfkBAQIJAvEBEQIZAiECKQIxAjgCQAJGAk4CVgJeAmQCbAJ0AnwCgQKJApECmQKgAqgCsAK4ArwCxAIwAMwC0wLbAjAA4wLrAvMC+AIAAwcDDwMwABcDHQMlAy0DNQN1AD0DQQNJA0kDSQNRA1EDVwNZA1kDdQB1AGEDdQBpA20DdQN1AHsDdQCBA4kDkQN1AHUAmQOhA3UAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AKYDrgN1AHUAtgO+A8YDzgPWAxcD3gPjA+sD8wN1AHUA+wMDBAkEdQANBBUEHQQlBCoEFwMyBDgEYABABBcDSARQBFgEYARoBDAAcAQzAXgEgASIBJAEdQCXBHUAnwSnBK4EtgS6BMIEyAR1AHUAdQB1AHUAdQCVANAEYABgAGAAYABgAGAAYABgANgEYADcBOQEYADsBPQE/AQEBQwFFAUcBSQFLAU0BWQEPAVEBUsFUwVbBWAAYgVgAGoFcgV6BYIFigWRBWAAmQWfBaYFYABgAGAAYABgAKoFYACxBbAFuQW6BcEFwQXHBcEFwQXPBdMF2wXjBeoF8gX6BQIGCgYSBhoGIgYqBjIGOgZgAD4GRgZMBmAAUwZaBmAAYABgAGAAYABgAGAAYABgAGAAYABgAGIGYABpBnAGYABgAGAAYABgAGAAYABgAGAAYAB4Bn8GhQZgAGAAYAB1AHcDFQSLBmAAYABgAJMGdQA9A3UAmwajBqsGqwaVALMGuwbDBjAAywbSBtIG1QbSBtIG0gbSBtIG0gbdBuMG6wbzBvsGAwcLBxMHAwcbByMHJwcsBywHMQcsB9IGOAdAB0gHTgfSBkgHVgfSBtIG0gbSBtIG0gbSBtIG0gbSBiwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdgAGAALAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdbB2MHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB2kH0gZwB64EdQB1AHUAdQB1AHUAdQB1AHUHfQdgAIUHjQd1AHUAlQedB2AAYAClB6sHYACzB7YHvgfGB3UAzgfWBzMB3gfmB1EB7gf1B/0HlQENAQUIDQh1ABUIHQglCBcDLQg1CD0IRQhNCEEDUwh1AHUAdQBbCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIcAh3CHoIMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIgggwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAALAcsBywHLAcsBywHLAcsBywHLAcsB4oILAcsB44I0gaWCJ4Ipgh1AHUAqgiyCHUAdQB1AHUAdQB1AHUAdQB1AHUAtwh8AXUAvwh1AMUIyQjRCNkI4AjoCHUAdQB1AO4I9gj+CAYJDgkTCS0HGwkjCYIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiAAIAAAAFAAYABgAGIAXwBgAHEAdQBFAJUAogCyAKAAYABgAEIA4ABGANMA4QDxAMEBDwE1AFwBLAE6AQEBUQF4QkhCmEKoQrhCgAHIQsAB0MLAAcABwAHAAeDC6ABoAHDCwMMAAcABwAHAAdDDGMMAAcAB6MM4wwjDWMNow3jDaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAEjDqABWw6bDqABpg6gAaABoAHcDvwOPA+gAaABfA/8DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DpcPAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcAB9cPKwkyCToJMAB1AHUAdQBCCUoJTQl1AFUJXAljCWcJawkwADAAMAAwAHMJdQB2CX4JdQCECYoJjgmWCXUAngkwAGAAYABxAHUApgn3A64JtAl1ALkJdQDACTAAMAAwADAAdQB1AHUAdQB1AHUAdQB1AHUAowYNBMUIMAAwADAAMADICcsJ0wnZCRUE4QkwAOkJ8An4CTAAMAB1AAAKvwh1AAgKDwoXCh8KdQAwACcKLgp1ADYKqAmICT4KRgowADAAdQB1AE4KMAB1AFYKdQBeCnUAZQowADAAMAAwADAAMAAwADAAMAAVBHUAbQowADAAdQC5CXUKMAAwAHwBxAijBogEMgF9CoQKiASMCpQKmgqIBKIKqgquCogEDQG2Cr4KxgrLCjAAMADTCtsKCgHjCusK8Qr5CgELMAAwADAAMAB1AIsECQsRC3UANAEZCzAAMAAwADAAMAB1ACELKQswAHUANAExCzkLdQBBC0kLMABRC1kLMAAwADAAMAAwADAAdQBhCzAAMAAwAGAAYABpC3ELdwt/CzAAMACHC4sLkwubC58Lpwt1AK4Ltgt1APsDMAAwADAAMAAwADAAMAAwAL4LwwvLC9IL1wvdCzAAMADlC+kL8Qv5C/8LSQswADAAMAAwADAAMAAwADAAMAAHDDAAMAAwADAAMAAODBYMHgx1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1ACYMMAAwADAAdQB1AHUALgx1AHUAdQB1AHUAdQA2DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AD4MdQBGDHUAdQB1AHUAdQB1AEkMdQB1AHUAdQB1AFAMMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQBYDHUAdQB1AF8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUA+wMVBGcMMAAwAHwBbwx1AHcMfwyHDI8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAYABgAJcMMAAwADAAdQB1AJ8MlQClDDAAMACtDCwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB7UMLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AA0EMAC9DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAsBywHLAcsBywHLAcsBywHLQcwAMEMyAwsBywHLAcsBywHLAcsBywHLAcsBywHzAwwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1ANQM2QzhDDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMABgAGAAYABgAGAAYABgAOkMYADxDGAA+AwADQYNYABhCWAAYAAODTAAMAAwADAAFg1gAGAAHg37AzAAMAAwADAAYABgACYNYAAsDTQNPA1gAEMNPg1LDWAAYABgAGAAYABgAGAAYABgAGAAUg1aDYsGVglhDV0NcQBnDW0NdQ15DWAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAlQCBDZUAiA2PDZcNMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAnw2nDTAAMAAwADAAMAAwAHUArw23DTAAMAAwADAAMAAwADAAMAAwADAAMAB1AL8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQDHDTAAYABgAM8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA1w11ANwNMAAwAD0B5A0wADAAMAAwADAAMADsDfQN/A0EDgwOFA4wABsOMAAwADAAMAAwADAAMAAwANIG0gbSBtIG0gbSBtIG0gYjDigOwQUuDsEFMw7SBjoO0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGQg5KDlIOVg7SBtIGXg5lDm0OdQ7SBtIGfQ6EDooOjQ6UDtIGmg6hDtIG0gaoDqwO0ga0DrwO0gZgAGAAYADEDmAAYAAkBtIGzA5gANIOYADaDokO0gbSBt8O5w7SBu8O0gb1DvwO0gZgAGAAxA7SBtIG0gbSBtIGYABgAGAAYAAED2AAsAUMD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHJA8sBywHLAcsBywHLAccDywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywPLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAc0D9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHPA/SBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gYUD0QPlQCVAJUAMAAwADAAMACVAJUAlQCVAJUAlQCVAEwPMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA//8EAAQABAAEAAQABAAEAAQABAANAAMAAQABAAIABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQACgATABcAHgAbABoAHgAXABYAEgAeABsAGAAPABgAHABLAEsASwBLAEsASwBLAEsASwBLABgAGAAeAB4AHgATAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABYAGwASAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWAA0AEQAeAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAFAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJABYAGgAbABsAGwAeAB0AHQAeAE8AFwAeAA0AHgAeABoAGwBPAE8ADgBQAB0AHQAdAE8ATwAXAE8ATwBPABYAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAFAATwBAAE8ATwBPAEAATwBQAFAATwBQAB4AHgAeAB4AHgAeAB0AHQAdAB0AHgAdAB4ADgBQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgBQAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAkACQAJAAkACQAJAAkABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAFAAHgAeAB4AKwArAFAAUABQAFAAGABQACsAKwArACsAHgAeAFAAHgBQAFAAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUAAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAYAA0AKwArAB4AHgAbACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAB4ABAAEAB4ABAAEABMABAArACsAKwArACsAKwArACsAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAKwArACsAKwBWAFYAVgBWAB4AHgArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AGgAaABoAGAAYAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQAEwAEACsAEwATAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABLAEsASwBLAEsASwBLAEsASwBLABoAGQAZAB4AUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABMAUAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABABQAFAABAAEAB4ABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUAAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAFAABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQAUABQAB4AHgAYABMAUAArACsABAAbABsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAFAABAAEAAQABAAEAFAABAAEAAQAUAAEAAQABAAEAAQAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArACsAHgArAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAUAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEAA0ADQBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUAArACsAKwBQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABABQACsAKwArACsAKwArACsAKwAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUAAaABoAUABQAFAAUABQAEwAHgAbAFAAHgAEACsAKwAEAAQABAArAFAAUABQAFAAUABQACsAKwArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQACsAUABQACsAKwAEACsABAAEAAQABAAEACsAKwArACsABAAEACsAKwAEAAQABAArACsAKwAEACsAKwArACsAKwArACsAUABQAFAAUAArAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLAAQABABQAFAAUAAEAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAArACsAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AGwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAKwArACsAKwArAAQABAAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAAQAUAArAFAAUABQAFAAUABQACsAKwArAFAAUABQACsAUABQAFAAUAArACsAKwBQAFAAKwBQACsAUABQACsAKwArAFAAUAArACsAKwBQAFAAUAArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAAQABAAEAAQABAArACsAKwAEAAQABAArAAQABAAEAAQAKwArAFAAKwArACsAKwArACsABAArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAHgAeAB4AHgAeAB4AGwAeACsAKwArACsAKwAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAUABQAFAAKwArACsAKwArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwAOAFAAUABQAFAAUABQAFAAHgBQAAQABAAEAA4AUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAKwArAAQAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAKwArACsAKwArACsAUAArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABABQAB4AKwArACsAKwBQAFAAUAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQABoAUABQAFAAUABQAFAAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQACsAUAArACsAUABQAFAAUABQAFAAUAArACsAKwAEACsAKwArACsABAAEAAQABAAEAAQAKwAEACsABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgAqACsAKwArACsAGwBcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAeAEsASwBLAEsASwBLAEsASwBLAEsADQANACsAKwArACsAKwBcAFwAKwBcACsAXABcAFwAXABcACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAXAArAFwAXABcAFwAXABcAFwAXABcAFwAKgBcAFwAKgAqACoAKgAqACoAKgAqACoAXAArACsAXABcAFwAXABcACsAXAArACoAKgAqACoAKgAqACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwBcAFwAXABcAFAADgAOAA4ADgAeAA4ADgAJAA4ADgANAAkAEwATABMAEwATAAkAHgATAB4AHgAeAAQABAAeAB4AHgAeAB4AHgBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQAFAADQAEAB4ABAAeAAQAFgARABYAEQAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAAQABAAEAAQADQAEAAQAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAA0ADQAeAB4AHgAeAB4AHgAEAB4AHgAeAB4AHgAeACsAHgAeAA4ADgANAA4AHgAeAB4AHgAeAAkACQArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgBcAEsASwBLAEsASwBLAEsASwBLAEsADQANAB4AHgAeAB4AXABcAFwAXABcAFwAKgAqACoAKgBcAFwAXABcACoAKgAqAFwAKgAqACoAXABcACoAKgAqACoAKgAqACoAXABcAFwAKgAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqAFwAKgBLAEsASwBLAEsASwBLAEsASwBLACoAKgAqACoAKgAqAFAAUABQAFAAUABQACsAUAArACsAKwArACsAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAKwBQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsABAAEAAQAHgANAB4AHgAeAB4AHgAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUAArACsADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWABEAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQANAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAANAA0AKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUAArAAQABAArACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqAA0ADQAVAFwADQAeAA0AGwBcACoAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwAeAB4AEwATAA0ADQAOAB4AEwATAB4ABAAEAAQACQArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAHgArACsAKwATABMASwBLAEsASwBLAEsASwBLAEsASwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAXABcAFwAXABcACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAXAArACsAKwAqACoAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsAHgAeAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKwAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKwArAAQASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACoAKgAqACoAKgAqACoAXAAqACoAKgAqACoAKgArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABABQAFAAUABQAFAAUABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwANAA0AHgANAA0ADQANAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwAeAB4AHgAeAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArAA0ADQANAA0ADQBLAEsASwBLAEsASwBLAEsASwBLACsAKwArAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUAAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAAQAUABQAFAAUABQAFAABABQAFAABAAEAAQAUAArACsAKwArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQACsAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAFAAUABQACsAHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQACsAKwAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQACsAHgAeAB4AHgAeAB4AHgAOAB4AKwANAA0ADQANAA0ADQANAAkADQANAA0ACAAEAAsABAAEAA0ACQANAA0ADAAdAB0AHgAXABcAFgAXABcAFwAWABcAHQAdAB4AHgAUABQAFAANAAEAAQAEAAQABAAEAAQACQAaABoAGgAaABoAGgAaABoAHgAXABcAHQAVABUAHgAeAB4AHgAeAB4AGAAWABEAFQAVABUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ADQAeAA0ADQANAA0AHgANAA0ADQAHAB4AHgAeAB4AKwAEAAQABAAEAAQABAAEAAQABAAEAFAAUAArACsATwBQAFAAUABQAFAAHgAeAB4AFgARAE8AUABPAE8ATwBPAFAAUABQAFAAUAAeAB4AHgAWABEAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArABsAGwAbABsAGwAbABsAGgAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGgAbABsAGwAbABoAGwAbABoAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAHgAeAFAAGgAeAB0AHgBQAB4AGgAeAB4AHgAeAB4AHgAeAB4AHgBPAB4AUAAbAB4AHgBQAFAAUABQAFAAHgAeAB4AHQAdAB4AUAAeAFAAHgBQAB4AUABPAFAAUAAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgBQAFAAUABQAE8ATwBQAFAAUABQAFAATwBQAFAATwBQAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAUABQAFAATwBPAE8ATwBPAE8ATwBPAE8ATwBQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABPAB4AHgArACsAKwArAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHQAdAB4AHgAeAB0AHQAeAB4AHQAeAB4AHgAdAB4AHQAbABsAHgAdAB4AHgAeAB4AHQAeAB4AHQAdAB0AHQAeAB4AHQAeAB0AHgAdAB0AHQAdAB0AHQAeAB0AHgAeAB4AHgAeAB0AHQAdAB0AHgAeAB4AHgAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHgAeAB0AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAeAB0AHQAdAB0AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAdAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAWABEAHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAWABEAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AHQAdAB0AHgAeAB0AHgAeAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlAB4AHQAdAB4AHgAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AJQAlAB0AHQAlAB4AJQAlACUAIAAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAdAB0AHQAeAB0AJQAdAB0AHgAdAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAdAB0AHQAdACUAHgAlACUAJQAdACUAJQAdAB0AHQAlACUAHQAdACUAHQAdACUAJQAlAB4AHQAeAB4AHgAeAB0AHQAlAB0AHQAdAB0AHQAdACUAJQAlACUAJQAdACUAJQAgACUAHQAdACUAJQAlACUAJQAlACUAJQAeAB4AHgAlACUAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AFwAXABcAFwAXABcAHgATABMAJQAeAB4AHgAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARABYAEQAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAEAAQABAAeAB4AKwArACsAKwArABMADQANAA0AUAATAA0AUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUAANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAA0ADQANAA0ADQANAA0ADQAeAA0AFgANAB4AHgAXABcAHgAeABcAFwAWABEAFgARABYAEQAWABEADQANAA0ADQATAFAADQANAB4ADQANAB4AHgAeAB4AHgAMAAwADQANAA0AHgANAA0AFgANAA0ADQANAA0ADQANAA0AHgANAB4ADQANAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArAA0AEQARACUAJQBHAFcAVwAWABEAFgARABYAEQAWABEAFgARACUAJQAWABEAFgARABYAEQAWABEAFQAWABEAEQAlAFcAVwBXAFcAVwBXAFcAVwBXAAQABAAEAAQABAAEACUAVwBXAFcAVwA2ACUAJQBXAFcAVwBHAEcAJQAlACUAKwBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBRAFcAUQBXAFEAVwBXAFcAVwBXAFcAUQBXAFcAVwBXAFcAVwBRAFEAKwArAAQABAAVABUARwBHAFcAFQBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBRAFcAVwBXAFcAVwBXAFEAUQBXAFcAVwBXABUAUQBHAEcAVwArACsAKwArACsAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwAlACUAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACsAKwArACsAKwArACsAKwArACsAKwArAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBPAE8ATwBPAE8ATwBPAE8AJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADQATAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABLAEsASwBLAEsASwBLAEsASwBLAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAABAAEAAQABAAeAAQABAAEAAQABAAEAAQABAAEAAQAHgBQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAeAA0ADQANAA0ADQArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAAQAUABQAFAABABQAFAAUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAeAB4AHgAeAAQAKwArACsAUABQAFAAUABQAFAAHgAeABoAHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADgAOABMAEwArACsAKwArACsAKwArACsABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUAAeAB4AHgBQAA4AUABQAAQAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAB4AWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYACsAKwArAAQAHgAeAB4AHgAeAB4ADQANAA0AHgAeAB4AHgArAFAASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArAB4AHgBcAFwAXABcAFwAKgBcAFwAXABcAFwAXABcAFwAXABcAEsASwBLAEsASwBLAEsASwBLAEsAXABcAFwAXABcACsAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAFAAUABQAAQAUABQAFAAUABQAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAHgANAA0ADQBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAKgAqACoAXABcACoAKgBcAFwAXABcAFwAKgAqAFwAKgBcACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcACoAKgBQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAA0ADQBQAFAAUAAEAAQAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQADQAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAVABVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBUAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVACsAKwArACsAKwArACsAKwArACsAKwArAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAKwArACsAKwBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAKwArACsAKwAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAKwArACsAKwArAFYABABWAFYAVgBWAFYAVgBWAFYAVgBWAB4AVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgArAFYAVgBWAFYAVgArAFYAKwBWAFYAKwBWAFYAKwBWAFYAVgBWAFYAVgBWAFYAVgBWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAEQAWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAaAB4AKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAGAARABEAGAAYABMAEwAWABEAFAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACUAJQAlACUAJQAWABEAFgARABYAEQAWABEAFgARABYAEQAlACUAFgARACUAJQAlACUAJQAlACUAEQAlABEAKwAVABUAEwATACUAFgARABYAEQAWABEAJQAlACUAJQAlACUAJQAlACsAJQAbABoAJQArACsAKwArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAcAKwATACUAJQAbABoAJQAlABYAEQAlACUAEQAlABEAJQBXAFcAVwBXAFcAVwBXAFcAVwBXABUAFQAlACUAJQATACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXABYAJQARACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAWACUAEQAlABYAEQARABYAEQARABUAVwBRAFEAUQBRAFEAUQBRAFEAUQBRAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcARwArACsAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXACsAKwBXAFcAVwBXAFcAVwArACsAVwBXAFcAKwArACsAGgAbACUAJQAlABsAGwArAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAAQAB0AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsADQANAA0AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAA0AUABQAFAAUAArACsAKwArAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwBQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAUABQAFAAUABQAAQABAAEACsABAAEACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAKwBQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAA0ADQANAA0ADQANAA0ADQAeACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAArACsAKwArAFAAUABQAFAAUAANAA0ADQANAA0ADQAUACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsADQANAA0ADQANAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArAAQABAANACsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAB4AHgAeAB4AHgArACsAKwArACsAKwAEAAQABAAEAAQABAAEAA0ADQAeAB4AHgAeAB4AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsASwBLAEsASwBLAEsASwBLAEsASwANAA0ADQANAFAABAAEAFAAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAeAA4AUAArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAADQANAB4ADQAEAAQABAAEAB4ABAAEAEsASwBLAEsASwBLAEsASwBLAEsAUAAOAFAADQANAA0AKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAA0AHgANAA0AHgAEACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAA0AKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsABAAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAUAArACsAKwArACsAKwAEACsAKwArACsAKwBQAFAAUABQAFAABAAEACsAKwAEAAQABAAEAAQABAAEACsAKwArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABABQAFAAUABQAA0ADQANAA0AHgBLAEsASwBLAEsASwBLAEsASwBLAA0ADQArAB4ABABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUAAeAFAAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABAAEAAQADgANAA0AEwATAB4AHgAeAA0ADQANAA0ADQANAA0ADQANAA0ADQANAA0ADQANAFAAUABQAFAABAAEACsAKwAEAA0ADQAeAFAAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKwArACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBcAFwADQANAA0AKgBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQAKwAEAAQAKwArAAQABAAEAAQAUAAEAFAABAAEAA0ADQANACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABABQAA4AUAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAOAB4ADQANAA0ADQAOAB4ABAArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAA0ADQANAFAADgAOAA4ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAFAADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAOABMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAArACsAKwAEACsABAAEACsABAAEAAQABAAEAAQABABQAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAaABoAGgAaAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABIAEgAQwBDAEMAUABQAFAAUABDAFAAUABQAEgAQwBIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABDAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAJAAkACQAJAAkACQAJABYAEQArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwANAA0AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAANACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQANAB4AHgAeAB4AHgAeAFAAUABQAFAADQAeACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAA0AHgAeACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAARwBHABUARwAJACsAKwArACsAKwArACsAKwArACsAKwAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUQBRAFEAKwArACsAKwArACsAKwArACsAKwArACsAKwBRAFEAUQBRACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAHgAEAAQADQAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQABAAEAAQABAAeAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQAHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAKwArAFAAKwArAFAAUAArACsAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUAArAFAAUABQAFAAUABQAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAHgAeAFAAUABQAFAAUAArAFAAKwArACsAUABQAFAAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeACsAKwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4ABAAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAHgAeAA0ADQANAA0AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArAAQABAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwBQAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArABsAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAB4AHgAeAB4ABAAEAAQABAAEAAQABABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArABYAFgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAGgBQAFAAUAAaAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUAArACsAKwArACsAKwBQACsAKwArACsAUAArAFAAKwBQACsAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUAArAFAAKwBQACsAUAArAFAAUAArAFAAKwArAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAKwBQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AJQAlACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeACUAJQAlAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAlACUAJQAlACUAHgAlACUAJQAlACUAIAAgACAAJQAlACAAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACEAIQAhACEAIQAlACUAIAAgACUAJQAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAIAAlACUAJQAlACAAIAAgACUAIAAgACAAJQAlACUAJQAlACUAJQAgACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAlAB4AJQAeACUAJQAlACUAJQAgACUAJQAlACUAHgAlAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACAAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABcAFwAXABUAFQAVAB4AHgAeAB4AJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAgACUAJQAgACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAIAAgACUAJQAgACAAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACAAIAAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACAAIAAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAA=="),m=Array.isArray(g)?function(e){for(var t=e.length,n=[],r=0;r<t;r+=4)n.push(e[r+3]<<24|e[r+2]<<16|e[r+1]<<8|e[r]);return n}(g):new Uint32Array(g),w=b(y=Array.isArray(g)?function(e){for(var t=e.length,n=[],r=0;r<t;r+=2)n.push(e[r+1]<<8|e[r]);return n}(g):new Uint16Array(g),12,m[4]/2),v=2===m[5]?b(y,(24+m[4])/2):(d=m,p=Math.ceil((24+m[4])/4),d.slice?d.slice(p,f):new Uint32Array(Array.prototype.slice.call(d,p,f))),new C(m[0],m[1],m[2],m[3],w,v)),Y=[H,36],$=[1,2,3,5],Z=[B,8],ee=[L,O],te=$.concat(Z),ne=[V,G,j,N,P],re=[_,E],ie=function(e,t,n,r){var i=r[n];if(Array.isArray(e)?-1!==e.indexOf(i):e===i)for(var o=n;o<=r.length;){if((l=r[++o])===t)return!0;if(l!==B)break}if(i===B)for(o=n;o>0;){var s=r[--o];if(Array.isArray(e)?-1!==e.indexOf(s):e===s)for(var a=n;a<=r.length;){var l;if((l=r[++a])===t)return!0;if(l!==B)break}if(s!==B)break}return!1},oe=function(e,t){for(var n=e;n>=0;){var r=t[n];if(r!==B)return r;n--}return 0},se=function(e,t,n,r,i){if(0===n[r])return W;var o=r-1;if(Array.isArray(i)&&!0===i[o])return W;var s=o-1,a=o+1,l=t[o],A=s>=0?t[s]:0,c=t[a];if(2===l&&3===c)return W;if(-1!==$.indexOf(l))return"!";if(-1!==$.indexOf(c))return W;if(-1!==Z.indexOf(c))return W;if(8===oe(o,t))return X;if(11===J.get(e[o]))return W;if((l===M||l===R)&&11===J.get(e[a]))return W;if(7===l||7===c)return W;if(9===l)return W;if(-1===[B,E,_].indexOf(l)&&9===c)return W;if(-1!==[F,x,T,U,I].indexOf(c))return W;if(oe(o,t)===k)return W;if(ie(23,k,o,t))return W;if(ie([F,x],S,o,t))return W;if(ie(12,12,o,t))return W;if(l===B)return X;if(23===l||23===c)return W;if(16===c||16===l)return X;if(-1!==[E,_,S].indexOf(c)||14===l)return W;if(36===A&&-1!==re.indexOf(l))return W;if(l===I&&36===c)return W;if(c===Q)return W;if(-1!==Y.indexOf(c)&&l===D||-1!==Y.indexOf(l)&&c===D)return W;if(l===L&&-1!==[K,M,R].indexOf(c)||-1!==[K,M,R].indexOf(l)&&c===O)return W;if(-1!==Y.indexOf(l)&&-1!==ee.indexOf(c)||-1!==ee.indexOf(l)&&-1!==Y.indexOf(c))return W;if(-1!==[L,O].indexOf(l)&&(c===D||-1!==[k,_].indexOf(c)&&t[a+1]===D)||-1!==[k,_].indexOf(l)&&c===D||l===D&&-1!==[D,I,U].indexOf(c))return W;if(-1!==[D,I,U,F,x].indexOf(c))for(var u=o;u>=0;){if((h=t[u])===D)return W;if(-1===[I,U].indexOf(h))break;u--}if(-1!==[L,O].indexOf(c))for(u=-1!==[F,x].indexOf(l)?s:o;u>=0;){var h;if((h=t[u])===D)return W;if(-1===[I,U].indexOf(h))break;u--}if(V===l&&-1!==[V,G,N,P].indexOf(c)||-1!==[G,N].indexOf(l)&&-1!==[G,j].indexOf(c)||-1!==[j,P].indexOf(l)&&c===j)return W;if(-1!==ne.indexOf(l)&&-1!==[Q,O].indexOf(c)||-1!==ne.indexOf(c)&&l===L)return W;if(-1!==Y.indexOf(l)&&-1!==Y.indexOf(c))return W;if(l===U&&-1!==Y.indexOf(c))return W;if(-1!==Y.concat(D).indexOf(l)&&c===k&&-1===z.indexOf(e[a])||-1!==Y.concat(D).indexOf(c)&&l===x)return W;if(41===l&&41===c){for(var d=n[o],p=1;d>0&&41===t[--d];)p++;if(p%2!=0)return W}return l===M&&c===R?W:X},ae=function(){function e(e,t,n,r){this.codePoints=e,this.required="!"===t,this.start=n,this.end=r}return e.prototype.slice=function(){return A.apply(void 0,this.codePoints.slice(this.start,this.end))},e}(),le=(()=>(function(e){e[e.STRING_TOKEN=0]="STRING_TOKEN",e[e.BAD_STRING_TOKEN=1]="BAD_STRING_TOKEN",e[e.LEFT_PARENTHESIS_TOKEN=2]="LEFT_PARENTHESIS_TOKEN",e[e.RIGHT_PARENTHESIS_TOKEN=3]="RIGHT_PARENTHESIS_TOKEN",e[e.COMMA_TOKEN=4]="COMMA_TOKEN",e[e.HASH_TOKEN=5]="HASH_TOKEN",e[e.DELIM_TOKEN=6]="DELIM_TOKEN",e[e.AT_KEYWORD_TOKEN=7]="AT_KEYWORD_TOKEN",e[e.PREFIX_MATCH_TOKEN=8]="PREFIX_MATCH_TOKEN",e[e.DASH_MATCH_TOKEN=9]="DASH_MATCH_TOKEN",e[e.INCLUDE_MATCH_TOKEN=10]="INCLUDE_MATCH_TOKEN",e[e.LEFT_CURLY_BRACKET_TOKEN=11]="LEFT_CURLY_BRACKET_TOKEN",e[e.RIGHT_CURLY_BRACKET_TOKEN=12]="RIGHT_CURLY_BRACKET_TOKEN",e[e.SUFFIX_MATCH_TOKEN=13]="SUFFIX_MATCH_TOKEN",e[e.SUBSTRING_MATCH_TOKEN=14]="SUBSTRING_MATCH_TOKEN",e[e.DIMENSION_TOKEN=15]="DIMENSION_TOKEN",e[e.PERCENTAGE_TOKEN=16]="PERCENTAGE_TOKEN",e[e.NUMBER_TOKEN=17]="NUMBER_TOKEN",e[e.FUNCTION=18]="FUNCTION",e[e.FUNCTION_TOKEN=19]="FUNCTION_TOKEN",e[e.IDENT_TOKEN=20]="IDENT_TOKEN",e[e.COLUMN_TOKEN=21]="COLUMN_TOKEN",e[e.URL_TOKEN=22]="URL_TOKEN",e[e.BAD_URL_TOKEN=23]="BAD_URL_TOKEN",e[e.CDC_TOKEN=24]="CDC_TOKEN",e[e.CDO_TOKEN=25]="CDO_TOKEN",e[e.COLON_TOKEN=26]="COLON_TOKEN",e[e.SEMICOLON_TOKEN=27]="SEMICOLON_TOKEN",e[e.LEFT_SQUARE_BRACKET_TOKEN=28]="LEFT_SQUARE_BRACKET_TOKEN",e[e.RIGHT_SQUARE_BRACKET_TOKEN=29]="RIGHT_SQUARE_BRACKET_TOKEN",e[e.UNICODE_RANGE_TOKEN=30]="UNICODE_RANGE_TOKEN",e[e.WHITESPACE_TOKEN=31]="WHITESPACE_TOKEN",e[e.EOF_TOKEN=32]="EOF_TOKEN"}(le||(le={})),le))(),Ae=45,ce=43,ue=-1,he=function(e){return e>=48&&e<=57},de=function(e){return he(e)||e>=65&&e<=70||e>=97&&e<=102},pe=function(e){return 10===e||9===e||32===e},fe=function(e){return function(e){return function(e){return e>=97&&e<=122}(e)||function(e){return e>=65&&e<=90}(e)}(e)||function(e){return e>=128}(e)||95===e},ge=function(e){return fe(e)||he(e)||e===Ae},me=function(e){return e>=0&&e<=8||11===e||e>=14&&e<=31||127===e},ye=function(e,t){return 92===e&&10!==t},we=function(e,t,n){return e===Ae?fe(t)||ye(t,n):!!fe(e)||!(92!==e||!ye(e,t))},ve=function(e,t,n){return e===ce||e===Ae?!!he(t)||46===t&&he(n):he(46===e?t:e)},be=function(e){var t=0,n=1;e[t]!==ce&&e[t]!==Ae||(e[t]===Ae&&(n=-1),t++);for(var r=[];he(e[t]);)r.push(e[t++]);var i=r.length?parseInt(A.apply(void 0,r),10):0;46===e[t]&&t++;for(var o=[];he(e[t]);)o.push(e[t++]);var s=o.length,a=s?parseInt(A.apply(void 0,o),10):0;69!==e[t]&&101!==e[t]||t++;var l=1;e[t]!==ce&&e[t]!==Ae||(e[t]===Ae&&(l=-1),t++);for(var c=[];he(e[t]);)c.push(e[t++]);var u=c.length?parseInt(A.apply(void 0,c),10):0;return n*(i+a*Math.pow(10,-s))*Math.pow(10,l*u)},Ce={type:le.LEFT_PARENTHESIS_TOKEN},Be={type:le.RIGHT_PARENTHESIS_TOKEN},Ee={type:le.COMMA_TOKEN},_e={type:le.SUFFIX_MATCH_TOKEN},Fe={type:le.PREFIX_MATCH_TOKEN},xe={type:le.COLUMN_TOKEN},Te={type:le.DASH_MATCH_TOKEN},Qe={type:le.INCLUDE_MATCH_TOKEN},Se={type:le.LEFT_CURLY_BRACKET_TOKEN},ke={type:le.RIGHT_CURLY_BRACKET_TOKEN},Ue={type:le.SUBSTRING_MATCH_TOKEN},De={type:le.BAD_URL_TOKEN},Oe={type:le.BAD_STRING_TOKEN},Le={type:le.CDO_TOKEN},Ie={type:le.CDC_TOKEN},He={type:le.COLON_TOKEN},Me={type:le.SEMICOLON_TOKEN},Re={type:le.LEFT_SQUARE_BRACKET_TOKEN},Ne={type:le.RIGHT_SQUARE_BRACKET_TOKEN},Pe={type:le.WHITESPACE_TOKEN},Ke={type:le.EOF_TOKEN},Ve=function(){function e(){this._value=[]}return e.prototype.write=function(e){this._value=this._value.concat(l(e))},e.prototype.read=function(){for(var e=[],t=this.consumeToken();t!==Ke;)e.push(t),t=this.consumeToken();return e},e.prototype.consumeToken=function(){var e=this.consumeCodePoint();switch(e){case 34:return this.consumeStringToken(34);case 35:var t=this.peekCodePoint(0),n=this.peekCodePoint(1),r=this.peekCodePoint(2);if(ge(t)||ye(n,r)){var i=we(t,n,r)?2:1,o=this.consumeName();return{type:le.HASH_TOKEN,value:o,flags:i}}break;case 36:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),_e;break;case 39:return this.consumeStringToken(39);case 40:return Ce;case 41:return Be;case 42:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),Ue;break;case ce:if(ve(e,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(e),this.consumeNumericToken();break;case 44:return Ee;case Ae:var s=e,a=this.peekCodePoint(0),l=this.peekCodePoint(1);if(ve(s,a,l))return this.reconsumeCodePoint(e),this.consumeNumericToken();if(we(s,a,l))return this.reconsumeCodePoint(e),this.consumeIdentLikeToken();if(a===Ae&&62===l)return this.consumeCodePoint(),this.consumeCodePoint(),Ie;break;case 46:if(ve(e,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(e),this.consumeNumericToken();break;case 47:if(42===this.peekCodePoint(0))for(this.consumeCodePoint();;){var c=this.consumeCodePoint();if(42===c&&47===(c=this.consumeCodePoint()))return this.consumeToken();if(c===ue)return this.consumeToken()}break;case 58:return He;case 59:return Me;case 60:if(33===this.peekCodePoint(0)&&this.peekCodePoint(1)===Ae&&this.peekCodePoint(2)===Ae)return this.consumeCodePoint(),this.consumeCodePoint(),Le;break;case 64:var u=this.peekCodePoint(0),h=this.peekCodePoint(1),d=this.peekCodePoint(2);if(we(u,h,d))return o=this.consumeName(),{type:le.AT_KEYWORD_TOKEN,value:o};break;case 91:return Re;case 92:if(ye(e,this.peekCodePoint(0)))return this.reconsumeCodePoint(e),this.consumeIdentLikeToken();break;case 93:return Ne;case 61:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),Fe;break;case 123:return Se;case 125:return ke;case 117:case 85:var p=this.peekCodePoint(0),f=this.peekCodePoint(1);return p!==ce||!de(f)&&63!==f||(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(e),this.consumeIdentLikeToken();case 124:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),Te;if(124===this.peekCodePoint(0))return this.consumeCodePoint(),xe;break;case 126:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),Qe;break;case ue:return Ke}return pe(e)?(this.consumeWhiteSpace(),Pe):he(e)?(this.reconsumeCodePoint(e),this.consumeNumericToken()):fe(e)?(this.reconsumeCodePoint(e),this.consumeIdentLikeToken()):{type:le.DELIM_TOKEN,value:A(e)}},e.prototype.consumeCodePoint=function(){var e=this._value.shift();return void 0===e?-1:e},e.prototype.reconsumeCodePoint=function(e){this._value.unshift(e)},e.prototype.peekCodePoint=function(e){return e>=this._value.length?-1:this._value[e]},e.prototype.consumeUnicodeRangeToken=function(){for(var e=[],t=this.consumeCodePoint();de(t)&&e.length<6;)e.push(t),t=this.consumeCodePoint();for(var n=!1;63===t&&e.length<6;)e.push(t),t=this.consumeCodePoint(),n=!0;if(n){var r=parseInt(A.apply(void 0,e.map(function(e){return 63===e?48:e})),16),i=parseInt(A.apply(void 0,e.map(function(e){return 63===e?70:e})),16);return{type:le.UNICODE_RANGE_TOKEN,start:r,end:i}}var o=parseInt(A.apply(void 0,e),16);if(this.peekCodePoint(0)===Ae&&de(this.peekCodePoint(1))){this.consumeCodePoint(),t=this.consumeCodePoint();for(var s=[];de(t)&&s.length<6;)s.push(t),t=this.consumeCodePoint();return i=parseInt(A.apply(void 0,s),16),{type:le.UNICODE_RANGE_TOKEN,start:o,end:i}}return{type:le.UNICODE_RANGE_TOKEN,start:o,end:o}},e.prototype.consumeIdentLikeToken=function(){var e=this.consumeName();return"url"===e.toLowerCase()&&40===this.peekCodePoint(0)?(this.consumeCodePoint(),this.consumeUrlToken()):40===this.peekCodePoint(0)?(this.consumeCodePoint(),{type:le.FUNCTION_TOKEN,value:e}):{type:le.IDENT_TOKEN,value:e}},e.prototype.consumeUrlToken=function(){var e=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===ue)return{type:le.URL_TOKEN,value:""};var t=this.peekCodePoint(0);if(39===t||34===t){var n=this.consumeStringToken(this.consumeCodePoint());return n.type===le.STRING_TOKEN&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===ue||41===this.peekCodePoint(0))?(this.consumeCodePoint(),{type:le.URL_TOKEN,value:n.value}):(this.consumeBadUrlRemnants(),De)}for(;;){var r=this.consumeCodePoint();if(r===ue||41===r)return{type:le.URL_TOKEN,value:A.apply(void 0,e)};if(pe(r))return this.consumeWhiteSpace(),this.peekCodePoint(0)===ue||41===this.peekCodePoint(0)?(this.consumeCodePoint(),{type:le.URL_TOKEN,value:A.apply(void 0,e)}):(this.consumeBadUrlRemnants(),De);if(34===r||39===r||40===r||me(r))return this.consumeBadUrlRemnants(),De;if(92===r){if(!ye(r,this.peekCodePoint(0)))return this.consumeBadUrlRemnants(),De;e.push(this.consumeEscapedCodePoint())}else e.push(r)}},e.prototype.consumeWhiteSpace=function(){for(;pe(this.peekCodePoint(0));)this.consumeCodePoint()},e.prototype.consumeBadUrlRemnants=function(){for(;;){var e=this.consumeCodePoint();if(41===e||e===ue)return;ye(e,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},e.prototype.consumeStringSlice=function(e){for(var t="";e>0;){var n=Math.min(6e4,e);t+=A.apply(void 0,this._value.splice(0,n)),e-=n}return this._value.shift(),t},e.prototype.consumeStringToken=function(e){for(var t="",n=0;;){var r=this._value[n];if(r===ue||void 0===r||r===e)return t+=this.consumeStringSlice(n),{type:le.STRING_TOKEN,value:t};if(10===r)return this._value.splice(0,n),Oe;if(92===r){var i=this._value[n+1];i!==ue&&void 0!==i&&(10===i?(t+=this.consumeStringSlice(n),n=-1,this._value.shift()):ye(r,i)&&(t+=this.consumeStringSlice(n),t+=A(this.consumeEscapedCodePoint()),n=-1))}n++}},e.prototype.consumeNumber=function(){var e=[],t=4,n=this.peekCodePoint(0);for(n!==ce&&n!==Ae||e.push(this.consumeCodePoint());he(this.peekCodePoint(0));)e.push(this.consumeCodePoint());n=this.peekCodePoint(0);var r=this.peekCodePoint(1);if(46===n&&he(r))for(e.push(this.consumeCodePoint(),this.consumeCodePoint()),t=8;he(this.peekCodePoint(0));)e.push(this.consumeCodePoint());n=this.peekCodePoint(0),r=this.peekCodePoint(1);var i=this.peekCodePoint(2);if((69===n||101===n)&&((r===ce||r===Ae)&&he(i)||he(r)))for(e.push(this.consumeCodePoint(),this.consumeCodePoint()),t=8;he(this.peekCodePoint(0));)e.push(this.consumeCodePoint());return[be(e),t]},e.prototype.consumeNumericToken=function(){var e=this.consumeNumber(),t=e[0],n=e[1],r=this.peekCodePoint(0),i=this.peekCodePoint(1),o=this.peekCodePoint(2);if(we(r,i,o)){var s=this.consumeName();return{type:le.DIMENSION_TOKEN,number:t,flags:n,unit:s}}return 37===r?(this.consumeCodePoint(),{type:le.PERCENTAGE_TOKEN,number:t,flags:n}):{type:le.NUMBER_TOKEN,number:t,flags:n}},e.prototype.consumeEscapedCodePoint=function(){var e=this.consumeCodePoint();if(de(e)){for(var t=A(e);de(this.peekCodePoint(0))&&t.length<6;)t+=A(this.consumeCodePoint());pe(this.peekCodePoint(0))&&this.consumeCodePoint();var n=parseInt(t,16);return 0===n||function(e){return e>=55296&&e<=57343}(n)||n>1114111?65533:n}return e===ue?65533:e},e.prototype.consumeName=function(){for(var e="";;){var t=this.consumeCodePoint();if(ge(t))e+=A(t);else{if(!ye(t,this.peekCodePoint(0)))return this.reconsumeCodePoint(t),e;e+=A(this.consumeEscapedCodePoint())}}},e}(),Ge=function(){function e(e){this._tokens=e}return e.create=function(t){var n=new Ve;return n.write(t),new e(n.read())},e.parseValue=function(t){return e.create(t).parseComponentValue()},e.parseValues=function(t){return e.create(t).parseComponentValues()},e.prototype.parseComponentValue=function(){for(var e=this.consumeToken();e.type===le.WHITESPACE_TOKEN;)e=this.consumeToken();if(e.type===le.EOF_TOKEN)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(e);var t=this.consumeComponentValue();do{e=this.consumeToken()}while(e.type===le.WHITESPACE_TOKEN);if(e.type===le.EOF_TOKEN)return t;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},e.prototype.parseComponentValues=function(){for(var e=[];;){var t=this.consumeComponentValue();if(t.type===le.EOF_TOKEN)return e;e.push(t),e.push()}},e.prototype.consumeComponentValue=function(){var e=this.consumeToken();switch(e.type){case le.LEFT_CURLY_BRACKET_TOKEN:case le.LEFT_SQUARE_BRACKET_TOKEN:case le.LEFT_PARENTHESIS_TOKEN:return this.consumeSimpleBlock(e.type);case le.FUNCTION_TOKEN:return this.consumeFunction(e)}return e},e.prototype.consumeSimpleBlock=function(e){for(var t={type:e,values:[]},n=this.consumeToken();;){if(n.type===le.EOF_TOKEN||Ze(n,e))return t;this.reconsumeToken(n),t.values.push(this.consumeComponentValue()),n=this.consumeToken()}},e.prototype.consumeFunction=function(e){for(var t={name:e.value,values:[],type:le.FUNCTION};;){var n=this.consumeToken();if(n.type===le.EOF_TOKEN||n.type===le.RIGHT_PARENTHESIS_TOKEN)return t;this.reconsumeToken(n),t.values.push(this.consumeComponentValue())}},e.prototype.consumeToken=function(){var e=this._tokens.shift();return void 0===e?Ke:e},e.prototype.reconsumeToken=function(e){this._tokens.unshift(e)},e}(),je=function(e){return e.type===le.DIMENSION_TOKEN},qe=function(e){return e.type===le.NUMBER_TOKEN},ze=function(e){return e.type===le.IDENT_TOKEN},We=function(e){return e.type===le.STRING_TOKEN},Xe=function(e,t){return ze(e)&&e.value===t},Je=function(e){return e.type!==le.WHITESPACE_TOKEN},Ye=function(e){return e.type!==le.WHITESPACE_TOKEN&&e.type!==le.COMMA_TOKEN},$e=function(e){var t=[],n=[];return e.forEach(function(e){if(e.type===le.COMMA_TOKEN){if(0===n.length)throw new Error("Error parsing function args, zero tokens for arg");return t.push(n),void(n=[])}e.type!==le.WHITESPACE_TOKEN&&n.push(e)}),n.length&&t.push(n),t},Ze=function(e,t){return t===le.LEFT_CURLY_BRACKET_TOKEN&&e.type===le.RIGHT_CURLY_BRACKET_TOKEN||t===le.LEFT_SQUARE_BRACKET_TOKEN&&e.type===le.RIGHT_SQUARE_BRACKET_TOKEN||t===le.LEFT_PARENTHESIS_TOKEN&&e.type===le.RIGHT_PARENTHESIS_TOKEN},et=function(e){return e.type===le.NUMBER_TOKEN||e.type===le.DIMENSION_TOKEN},tt=function(e){return e.type===le.PERCENTAGE_TOKEN||et(e)},nt=function(e){return e.length>1?[e[0],e[1]]:[e[0]]},rt={type:le.NUMBER_TOKEN,number:0,flags:4},it={type:le.PERCENTAGE_TOKEN,number:50,flags:4},ot={type:le.PERCENTAGE_TOKEN,number:100,flags:4},st=function(e,t,n){var r=e[0],i=e[1];return[at(r,t),at(void 0!==i?i:r,n)]},at=function(e,t){if(e.type===le.PERCENTAGE_TOKEN)return e.number/100*t;if(je(e))switch(e.unit){case"rem":case"em":return 16*e.number;case"px":default:return e.number}return e.number},lt="grad",At="turn",ct=function(e,t){if(t.type===le.DIMENSION_TOKEN)switch(t.unit){case"deg":return Math.PI*t.number/180;case lt:return Math.PI/200*t.number;case"rad":return t.number;case At:return 2*Math.PI*t.number}throw new Error("Unsupported angle type")},ut=function(e){return e.type===le.DIMENSION_TOKEN&&("deg"===e.unit||e.unit===lt||"rad"===e.unit||e.unit===At)},ht=function(e){switch(e.filter(ze).map(function(e){return e.value}).join(" ")){case"to bottom right":case"to right bottom":case"left top":case"top left":return[rt,rt];case"to top":case"bottom":return dt(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[rt,ot];case"to right":case"left":return dt(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[ot,ot];case"to bottom":case"top":return dt(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[ot,rt];case"to left":case"right":return dt(270)}return 0},dt=function(e){return Math.PI*e/180},pt=function(e,t){if(t.type===le.FUNCTION){var n=Ct[t.name];if(void 0===n)throw new Error('Attempting to parse an unsupported color function "'+t.name+'"');return n(e,t.values)}if(t.type===le.HASH_TOKEN){if(3===t.value.length){var r=t.value.substring(0,1),i=t.value.substring(1,2),o=t.value.substring(2,3);return mt(parseInt(r+r,16),parseInt(i+i,16),parseInt(o+o,16),1)}if(4===t.value.length){r=t.value.substring(0,1),i=t.value.substring(1,2),o=t.value.substring(2,3);var s=t.value.substring(3,4);return mt(parseInt(r+r,16),parseInt(i+i,16),parseInt(o+o,16),parseInt(s+s,16)/255)}if(6===t.value.length)return r=t.value.substring(0,2),i=t.value.substring(2,4),o=t.value.substring(4,6),mt(parseInt(r,16),parseInt(i,16),parseInt(o,16),1);if(8===t.value.length)return r=t.value.substring(0,2),i=t.value.substring(2,4),o=t.value.substring(4,6),s=t.value.substring(6,8),mt(parseInt(r,16),parseInt(i,16),parseInt(o,16),parseInt(s,16)/255)}if(t.type===le.IDENT_TOKEN){var a=Et[t.value.toUpperCase()];if(void 0!==a)return a}return Et.TRANSPARENT},ft=function(e){return 0==(255&e)},gt=function(e){var t=255&e,n=255&e>>8,r=255&e>>16,i=255&e>>24;return t<255?"rgba("+i+","+r+","+n+","+t/255+")":"rgb("+i+","+r+","+n+")"},mt=function(e,t,n,r){return(e<<24|t<<16|n<<8|Math.round(255*r)<<0)>>>0},yt=function(e,t){if(e.type===le.NUMBER_TOKEN)return e.number;if(e.type===le.PERCENTAGE_TOKEN){var n=3===t?1:255;return 3===t?e.number/100*n:Math.round(e.number/100*n)}return 0},wt=function(e,t){var n=t.filter(Ye);if(3===n.length){var r=n.map(yt);return mt(r[0],r[1],r[2],1)}if(4===n.length){var i=n.map(yt);return mt(i[0],i[1],i[2],i[3])}return 0};function vt(e,t,n){return n<0&&(n+=1),n>=1&&(n-=1),n<1/6?(t-e)*n*6+e:n<.5?t:n<2/3?6*(t-e)*(2/3-n)+e:e}var bt=function(e,t){var n=t.filter(Ye),r=n[0],i=n[1],o=n[2],s=n[3],a=(r.type===le.NUMBER_TOKEN?dt(r.number):ct(0,r))/(2*Math.PI),l=tt(i)?i.number/100:0,A=tt(o)?o.number/100:0,c=void 0!==s&&tt(s)?at(s,1):1;if(0===l)return mt(255*A,255*A,255*A,1);var u=A<=.5?A*(l+1):A+l-A*l,h=2*A-u,d=vt(h,u,a+1/3),p=vt(h,u,a),f=vt(h,u,a-1/3);return mt(255*d,255*p,255*f,c)},Ct={hsl:bt,hsla:bt,rgb:wt,rgba:wt},Bt=function(e,t){return pt(e,Ge.create(t).parseComponentValue())},Et={ALICEBLUE:4042850303,ANTIQUEWHITE:4209760255,AQUA:16777215,AQUAMARINE:2147472639,AZURE:4043309055,BEIGE:4126530815,BISQUE:4293182719,BLACK:255,BLANCHEDALMOND:4293643775,BLUE:65535,BLUEVIOLET:2318131967,BROWN:2771004159,BURLYWOOD:3736635391,CADETBLUE:1604231423,CHARTREUSE:2147418367,CHOCOLATE:3530104575,CORAL:4286533887,CORNFLOWERBLUE:1687547391,CORNSILK:4294499583,CRIMSON:3692313855,CYAN:16777215,DARKBLUE:35839,DARKCYAN:9145343,DARKGOLDENROD:3095837695,DARKGRAY:2846468607,DARKGREEN:6553855,DARKGREY:2846468607,DARKKHAKI:3182914559,DARKMAGENTA:2332068863,DARKOLIVEGREEN:1433087999,DARKORANGE:4287365375,DARKORCHID:2570243327,DARKRED:2332033279,DARKSALMON:3918953215,DARKSEAGREEN:2411499519,DARKSLATEBLUE:1211993087,DARKSLATEGRAY:793726975,DARKSLATEGREY:793726975,DARKTURQUOISE:13554175,DARKVIOLET:2483082239,DEEPPINK:4279538687,DEEPSKYBLUE:12582911,DIMGRAY:1768516095,DIMGREY:1768516095,DODGERBLUE:512819199,FIREBRICK:2988581631,FLORALWHITE:4294635775,FORESTGREEN:579543807,FUCHSIA:4278255615,GAINSBORO:3705462015,GHOSTWHITE:4177068031,GOLD:4292280575,GOLDENROD:3668254975,GRAY:2155905279,GREEN:8388863,GREENYELLOW:2919182335,GREY:2155905279,HONEYDEW:4043305215,HOTPINK:4285117695,INDIANRED:3445382399,INDIGO:1258324735,IVORY:4294963455,KHAKI:4041641215,LAVENDER:3873897215,LAVENDERBLUSH:4293981695,LAWNGREEN:2096890111,LEMONCHIFFON:4294626815,LIGHTBLUE:2916673279,LIGHTCORAL:4034953471,LIGHTCYAN:3774873599,LIGHTGOLDENRODYELLOW:4210742015,LIGHTGRAY:3553874943,LIGHTGREEN:2431553791,LIGHTGREY:3553874943,LIGHTPINK:4290167295,LIGHTSALMON:4288707327,LIGHTSEAGREEN:548580095,LIGHTSKYBLUE:2278488831,LIGHTSLATEGRAY:2005441023,LIGHTSLATEGREY:2005441023,LIGHTSTEELBLUE:2965692159,LIGHTYELLOW:4294959359,LIME:16711935,LIMEGREEN:852308735,LINEN:4210091775,MAGENTA:4278255615,MAROON:2147483903,MEDIUMAQUAMARINE:1724754687,MEDIUMBLUE:52735,MEDIUMORCHID:3126187007,MEDIUMPURPLE:2473647103,MEDIUMSEAGREEN:1018393087,MEDIUMSLATEBLUE:2070474495,MEDIUMSPRINGGREEN:16423679,MEDIUMTURQUOISE:1221709055,MEDIUMVIOLETRED:3340076543,MIDNIGHTBLUE:421097727,MINTCREAM:4127193855,MISTYROSE:4293190143,MOCCASIN:4293178879,NAVAJOWHITE:4292783615,NAVY:33023,OLDLACE:4260751103,OLIVE:2155872511,OLIVEDRAB:1804477439,ORANGE:4289003775,ORANGERED:4282712319,ORCHID:3664828159,PALEGOLDENROD:4008225535,PALEGREEN:2566625535,PALETURQUOISE:2951671551,PALEVIOLETRED:3681588223,PAPAYAWHIP:4293907967,PEACHPUFF:4292524543,PERU:3448061951,PINK:4290825215,PLUM:3718307327,POWDERBLUE:2967529215,PURPLE:2147516671,REBECCAPURPLE:1714657791,RED:4278190335,ROSYBROWN:3163525119,ROYALBLUE:1097458175,SADDLEBROWN:2336560127,SALMON:4202722047,SANDYBROWN:4104413439,SEAGREEN:780883967,SEASHELL:4294307583,SIENNA:2689740287,SILVER:3233857791,SKYBLUE:2278484991,SLATEBLUE:1784335871,SLATEGRAY:1887473919,SLATEGREY:1887473919,SNOW:4294638335,SPRINGGREEN:16744447,STEELBLUE:1182971135,TAN:3535047935,TEAL:8421631,THISTLE:3636451583,TOMATO:4284696575,TRANSPARENT:0,TURQUOISE:1088475391,VIOLET:4001558271,WHEAT:4125012991,WHITE:4294967295,WHITESMOKE:4126537215,YELLOW:4294902015,YELLOWGREEN:2597139199},_t=(()=>(function(e){e[e.VALUE=0]="VALUE",e[e.LIST=1]="LIST",e[e.IDENT_VALUE=2]="IDENT_VALUE",e[e.TYPE_VALUE=3]="TYPE_VALUE",e[e.TOKEN_VALUE=4]="TOKEN_VALUE"}(_t||(_t={})),_t))(),Ft=(()=>(function(e){e[e.BORDER_BOX=0]="BORDER_BOX",e[e.PADDING_BOX=1]="PADDING_BOX",e[e.CONTENT_BOX=2]="CONTENT_BOX"}(Ft||(Ft={})),Ft))(),xt={name:"background-clip",initialValue:"border-box",prefix:!1,type:_t.LIST,parse:function(e,t){return t.map(function(e){if(ze(e))switch(e.value){case"padding-box":return Ft.PADDING_BOX;case"content-box":return Ft.CONTENT_BOX}return Ft.BORDER_BOX})}},Tt={name:"background-color",initialValue:"transparent",prefix:!1,type:_t.TYPE_VALUE,format:"color"},Qt=function(e,t){var n=pt(e,t[0]),r=t[1];return r&&tt(r)?{color:n,stop:r}:{color:n,stop:null}},St=function(e,t){var n=e[0],r=e[e.length-1];null===n.stop&&(n.stop=rt),null===r.stop&&(r.stop=ot);for(var i=[],o=0,s=0;s<e.length;s++){var a=e[s].stop;if(null!==a){var l=at(a,t);i.push(l>o?l:o),o=l}else i.push(null)}var A=null;for(s=0;s<i.length;s++){var c=i[s];if(null===c)null===A&&(A=s);else if(null!==A){for(var u=s-A,h=(c-i[A-1])/(u+1),d=1;d<=u;d++)i[A+d-1]=h*d;A=null}}return e.map(function(e,n){return{color:e.color,stop:Math.max(Math.min(1,i[n]/t),0)}})},kt=function(e,t){return Math.sqrt(e*e+t*t)},Ut=function(e,t,n,r,i){return[[0,0],[0,t],[e,0],[e,t]].reduce(function(e,t){var o=kt(n-t[0],r-t[1]);return(i?o<e.optimumDistance:o>e.optimumDistance)?{optimumCorner:t,optimumDistance:o}:e},{optimumDistance:i?1/0:-1/0,optimumCorner:null}).optimumCorner},Dt=function(e,t){var n=dt(180),r=[];return $e(t).forEach(function(t,i){if(0===i){var o=t[0];if(o.type===le.IDENT_TOKEN&&-1!==["top","left","right","bottom"].indexOf(o.value))return void(n=ht(t));if(ut(o))return void(n=(ct(0,o)+dt(270))%dt(360))}var s=Qt(e,t);r.push(s)}),{angle:n,stops:r,type:Vt.LINEAR_GRADIENT}},Ot="closest-side",Lt="farthest-side",It="closest-corner",Ht="farthest-corner",Mt="circle",Rt="ellipse",Nt="cover",Pt="contain",Kt=function(e,t){var n=Gt.CIRCLE,r=jt.FARTHEST_CORNER,i=[],o=[];return $e(t).forEach(function(t,s){var a=!0;if(0===s?a=t.reduce(function(e,t){if(ze(t))switch(t.value){case"center":return o.push(it),!1;case"top":case"left":return o.push(rt),!1;case"right":case"bottom":return o.push(ot),!1}else if(tt(t)||et(t))return o.push(t),!1;return e},a):1===s&&(a=t.reduce(function(e,t){if(ze(t))switch(t.value){case Mt:return n=Gt.CIRCLE,!1;case Rt:return n=Gt.ELLIPSE,!1;case Pt:case Ot:return r=jt.CLOSEST_SIDE,!1;case Lt:return r=jt.FARTHEST_SIDE,!1;case It:return r=jt.CLOSEST_CORNER,!1;case Nt:case Ht:return r=jt.FARTHEST_CORNER,!1}else if(et(t)||tt(t))return Array.isArray(r)||(r=[]),r.push(t),!1;return e},a)),a){var l=Qt(e,t);i.push(l)}}),{size:r,shape:n,stops:i,position:o,type:Vt.RADIAL_GRADIENT}},Vt=(()=>(function(e){e[e.URL=0]="URL",e[e.LINEAR_GRADIENT=1]="LINEAR_GRADIENT",e[e.RADIAL_GRADIENT=2]="RADIAL_GRADIENT"}(Vt||(Vt={})),Vt))(),Gt=(()=>(function(e){e[e.CIRCLE=0]="CIRCLE",e[e.ELLIPSE=1]="ELLIPSE"}(Gt||(Gt={})),Gt))(),jt=(()=>(function(e){e[e.CLOSEST_SIDE=0]="CLOSEST_SIDE",e[e.FARTHEST_SIDE=1]="FARTHEST_SIDE",e[e.CLOSEST_CORNER=2]="CLOSEST_CORNER",e[e.FARTHEST_CORNER=3]="FARTHEST_CORNER"}(jt||(jt={})),jt))(),qt=function(e,t){if(t.type===le.URL_TOKEN){var n={url:t.value,type:Vt.URL};return e.cache.addImage(t.value),n}if(t.type===le.FUNCTION){var r=zt[t.name];if(void 0===r)throw new Error('Attempting to parse an unsupported image function "'+t.name+'"');return r(e,t.values)}throw new Error("Unsupported image type")},zt={"linear-gradient":function(e,t){var n=dt(180),r=[];return $e(t).forEach(function(t,i){if(0===i){var o=t[0];if(o.type===le.IDENT_TOKEN&&"to"===o.value)return void(n=ht(t));if(ut(o))return void(n=ct(0,o))}var s=Qt(e,t);r.push(s)}),{angle:n,stops:r,type:Vt.LINEAR_GRADIENT}},"-moz-linear-gradient":Dt,"-ms-linear-gradient":Dt,"-o-linear-gradient":Dt,"-webkit-linear-gradient":Dt,"radial-gradient":function(e,t){var n=Gt.CIRCLE,r=jt.FARTHEST_CORNER,i=[],o=[];return $e(t).forEach(function(t,s){var a=!0;if(0===s){var l=!1;a=t.reduce(function(e,t){if(l)if(ze(t))switch(t.value){case"center":return o.push(it),e;case"top":case"left":return o.push(rt),e;case"right":case"bottom":return o.push(ot),e}else(tt(t)||et(t))&&o.push(t);else if(ze(t))switch(t.value){case Mt:return n=Gt.CIRCLE,!1;case Rt:return n=Gt.ELLIPSE,!1;case"at":return l=!0,!1;case Ot:return r=jt.CLOSEST_SIDE,!1;case Nt:case Lt:return r=jt.FARTHEST_SIDE,!1;case Pt:case It:return r=jt.CLOSEST_CORNER,!1;case Ht:return r=jt.FARTHEST_CORNER,!1}else if(et(t)||tt(t))return Array.isArray(r)||(r=[]),r.push(t),!1;return e},a)}if(a){var A=Qt(e,t);i.push(A)}}),{size:r,shape:n,stops:i,position:o,type:Vt.RADIAL_GRADIENT}},"-moz-radial-gradient":Kt,"-ms-radial-gradient":Kt,"-o-radial-gradient":Kt,"-webkit-radial-gradient":Kt,"-webkit-gradient":function(e,t){var n=dt(180),r=[],i=Vt.LINEAR_GRADIENT,o=Gt.CIRCLE,s=jt.FARTHEST_CORNER;return $e(t).forEach(function(t,n){var o=t[0];if(0===n){if(ze(o)&&"linear"===o.value)return void(i=Vt.LINEAR_GRADIENT);if(ze(o)&&"radial"===o.value)return void(i=Vt.RADIAL_GRADIENT)}if(o.type===le.FUNCTION)if("from"===o.name){var s=pt(e,o.values[0]);r.push({stop:rt,color:s})}else if("to"===o.name)s=pt(e,o.values[0]),r.push({stop:ot,color:s});else if("color-stop"===o.name){var a=o.values.filter(Ye);if(2===a.length){s=pt(e,a[1]);var l=a[0];qe(l)&&r.push({stop:{type:le.PERCENTAGE_TOKEN,number:100*l.number,flags:l.flags},color:s})}}}),i===Vt.LINEAR_GRADIENT?{angle:(n+dt(180))%dt(360),stops:r,type:i}:{size:s,shape:o,stops:r,position:[],type:i}}},Wt={name:"background-image",initialValue:"none",type:_t.LIST,prefix:!1,parse:function(e,t){if(0===t.length)return[];var n=t[0];return n.type===le.IDENT_TOKEN&&"none"===n.value?[]:t.filter(function(e){return Ye(e)&&function(e){return e.type!==le.FUNCTION||!!zt[e.name]}(e)}).map(function(t){return qt(e,t)})}},Xt={name:"background-origin",initialValue:"border-box",prefix:!1,type:_t.LIST,parse:function(e,t){return t.map(function(e){if(ze(e))switch(e.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},Jt={name:"background-position",initialValue:"0% 0%",type:_t.LIST,prefix:!1,parse:function(e,t){return $e(t).map(function(e){return e.filter(tt)}).map(nt)}},Yt=(()=>(function(e){e[e.REPEAT=0]="REPEAT",e[e.NO_REPEAT=1]="NO_REPEAT",e[e.REPEAT_X=2]="REPEAT_X",e[e.REPEAT_Y=3]="REPEAT_Y"}(Yt||(Yt={})),Yt))(),$t={name:"background-repeat",initialValue:"repeat",prefix:!1,type:_t.LIST,parse:function(e,t){return $e(t).map(function(e){return e.filter(ze).map(function(e){return e.value}).join(" ")}).map(Zt)}},Zt=function(e){switch(e){case"no-repeat":return Yt.NO_REPEAT;case"repeat-x":case"repeat no-repeat":return Yt.REPEAT_X;case"repeat-y":case"no-repeat repeat":return Yt.REPEAT_Y;case"repeat":default:return Yt.REPEAT}},en=(()=>(function(e){e.AUTO="auto",e.CONTAIN="contain",e.COVER="cover"}(en||(en={})),en))(),tn={name:"background-size",initialValue:"0",prefix:!1,type:_t.LIST,parse:function(e,t){return $e(t).map(function(e){return e.filter(nn)})}},nn=function(e){return ze(e)||tt(e)},rn=function(e){return{name:"border-"+e+"-color",initialValue:"transparent",prefix:!1,type:_t.TYPE_VALUE,format:"color"}},on=rn("top"),sn=rn("right"),an=rn("bottom"),ln=rn("left"),An=function(e){return{name:"border-radius-"+e,initialValue:"0 0",prefix:!1,type:_t.LIST,parse:function(e,t){return nt(t.filter(tt))}}},cn=An("top-left"),un=An("top-right"),hn=An("bottom-right"),dn=An("bottom-left"),pn=(()=>(function(e){e[e.NONE=0]="NONE",e[e.SOLID=1]="SOLID",e[e.DASHED=2]="DASHED",e[e.DOTTED=3]="DOTTED",e[e.DOUBLE=4]="DOUBLE"}(pn||(pn={})),pn))(),fn=function(e){return{name:"border-"+e+"-style",initialValue:"solid",prefix:!1,type:_t.IDENT_VALUE,parse:function(e,t){switch(t){case"none":return pn.NONE;case"dashed":return pn.DASHED;case"dotted":return pn.DOTTED;case"double":return pn.DOUBLE}return pn.SOLID}}},gn=fn("top"),mn=fn("right"),yn=fn("bottom"),wn=fn("left"),vn=function(e){return{name:"border-"+e+"-width",initialValue:"0",type:_t.VALUE,prefix:!1,parse:function(e,t){return je(t)?t.number:0}}},bn=vn("top"),Cn=vn("right"),Bn=vn("bottom"),En=vn("left"),_n={name:"color",initialValue:"transparent",prefix:!1,type:_t.TYPE_VALUE,format:"color"},Fn={name:"display",initialValue:"inline-block",prefix:!1,type:_t.LIST,parse:function(e,t){return t.filter(ze).reduce(function(e,t){return e|xn(t.value)},0)}},xn=function(e){switch(e){case"block":case"-webkit-box":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0},Tn=(()=>(function(e){e[e.NONE=0]="NONE",e[e.LEFT=1]="LEFT",e[e.RIGHT=2]="RIGHT",e[e.INLINE_START=3]="INLINE_START",e[e.INLINE_END=4]="INLINE_END"}(Tn||(Tn={})),Tn))(),Qn={name:"float",initialValue:"none",prefix:!1,type:_t.IDENT_VALUE,parse:function(e,t){switch(t){case"left":return Tn.LEFT;case"right":return Tn.RIGHT;case"inline-start":return Tn.INLINE_START;case"inline-end":return Tn.INLINE_END}return Tn.NONE}},Sn={name:"letter-spacing",initialValue:"0",prefix:!1,type:_t.VALUE,parse:function(e,t){return t.type===le.IDENT_TOKEN&&"normal"===t.value?0:t.type===le.NUMBER_TOKEN||t.type===le.DIMENSION_TOKEN?t.number:0}},kn=(()=>(function(e){e.NORMAL="normal",e.STRICT="strict"}(kn||(kn={})),kn))(),Un={name:"line-break",initialValue:"normal",prefix:!1,type:_t.IDENT_VALUE,parse:function(e,t){switch(t){case"strict":return kn.STRICT;case"normal":default:return kn.NORMAL}}},Dn={name:"line-height",initialValue:"normal",prefix:!1,type:_t.TOKEN_VALUE},On=function(e,t){return ze(e)&&"normal"===e.value?1.2*t:e.type===le.NUMBER_TOKEN?t*e.number:tt(e)?at(e,t):t},Ln={name:"list-style-image",initialValue:"none",type:_t.VALUE,prefix:!1,parse:function(e,t){return t.type===le.IDENT_TOKEN&&"none"===t.value?null:qt(e,t)}},In=(()=>(function(e){e[e.INSIDE=0]="INSIDE",e[e.OUTSIDE=1]="OUTSIDE"}(In||(In={})),In))(),Hn={name:"list-style-position",initialValue:"outside",prefix:!1,type:_t.IDENT_VALUE,parse:function(e,t){switch(t){case"inside":return In.INSIDE;case"outside":default:return In.OUTSIDE}}},Mn=(()=>(function(e){e[e.NONE=-1]="NONE",e[e.DISC=0]="DISC",e[e.CIRCLE=1]="CIRCLE",e[e.SQUARE=2]="SQUARE",e[e.DECIMAL=3]="DECIMAL",e[e.CJK_DECIMAL=4]="CJK_DECIMAL",e[e.DECIMAL_LEADING_ZERO=5]="DECIMAL_LEADING_ZERO",e[e.LOWER_ROMAN=6]="LOWER_ROMAN",e[e.UPPER_ROMAN=7]="UPPER_ROMAN",e[e.LOWER_GREEK=8]="LOWER_GREEK",e[e.LOWER_ALPHA=9]="LOWER_ALPHA",e[e.UPPER_ALPHA=10]="UPPER_ALPHA",e[e.ARABIC_INDIC=11]="ARABIC_INDIC",e[e.ARMENIAN=12]="ARMENIAN",e[e.BENGALI=13]="BENGALI",e[e.CAMBODIAN=14]="CAMBODIAN",e[e.CJK_EARTHLY_BRANCH=15]="CJK_EARTHLY_BRANCH",e[e.CJK_HEAVENLY_STEM=16]="CJK_HEAVENLY_STEM",e[e.CJK_IDEOGRAPHIC=17]="CJK_IDEOGRAPHIC",e[e.DEVANAGARI=18]="DEVANAGARI",e[e.ETHIOPIC_NUMERIC=19]="ETHIOPIC_NUMERIC",e[e.GEORGIAN=20]="GEORGIAN",e[e.GUJARATI=21]="GUJARATI",e[e.GURMUKHI=22]="GURMUKHI",e[e.HEBREW=22]="HEBREW",e[e.HIRAGANA=23]="HIRAGANA",e[e.HIRAGANA_IROHA=24]="HIRAGANA_IROHA",e[e.JAPANESE_FORMAL=25]="JAPANESE_FORMAL",e[e.JAPANESE_INFORMAL=26]="JAPANESE_INFORMAL",e[e.KANNADA=27]="KANNADA",e[e.KATAKANA=28]="KATAKANA",e[e.KATAKANA_IROHA=29]="KATAKANA_IROHA",e[e.KHMER=30]="KHMER",e[e.KOREAN_HANGUL_FORMAL=31]="KOREAN_HANGUL_FORMAL",e[e.KOREAN_HANJA_FORMAL=32]="KOREAN_HANJA_FORMAL",e[e.KOREAN_HANJA_INFORMAL=33]="KOREAN_HANJA_INFORMAL",e[e.LAO=34]="LAO",e[e.LOWER_ARMENIAN=35]="LOWER_ARMENIAN",e[e.MALAYALAM=36]="MALAYALAM",e[e.MONGOLIAN=37]="MONGOLIAN",e[e.MYANMAR=38]="MYANMAR",e[e.ORIYA=39]="ORIYA",e[e.PERSIAN=40]="PERSIAN",e[e.SIMP_CHINESE_FORMAL=41]="SIMP_CHINESE_FORMAL",e[e.SIMP_CHINESE_INFORMAL=42]="SIMP_CHINESE_INFORMAL",e[e.TAMIL=43]="TAMIL",e[e.TELUGU=44]="TELUGU",e[e.THAI=45]="THAI",e[e.TIBETAN=46]="TIBETAN",e[e.TRAD_CHINESE_FORMAL=47]="TRAD_CHINESE_FORMAL",e[e.TRAD_CHINESE_INFORMAL=48]="TRAD_CHINESE_INFORMAL",e[e.UPPER_ARMENIAN=49]="UPPER_ARMENIAN",e[e.DISCLOSURE_OPEN=50]="DISCLOSURE_OPEN",e[e.DISCLOSURE_CLOSED=51]="DISCLOSURE_CLOSED"}(Mn||(Mn={})),Mn))(),Rn={name:"list-style-type",initialValue:"none",prefix:!1,type:_t.IDENT_VALUE,parse:function(e,t){switch(t){case"disc":return Mn.DISC;case"circle":return Mn.CIRCLE;case"square":return Mn.SQUARE;case"decimal":return Mn.DECIMAL;case"cjk-decimal":return Mn.CJK_DECIMAL;case"decimal-leading-zero":return Mn.DECIMAL_LEADING_ZERO;case"lower-roman":return Mn.LOWER_ROMAN;case"upper-roman":return Mn.UPPER_ROMAN;case"lower-greek":return Mn.LOWER_GREEK;case"lower-alpha":return Mn.LOWER_ALPHA;case"upper-alpha":return Mn.UPPER_ALPHA;case"arabic-indic":return Mn.ARABIC_INDIC;case"armenian":return Mn.ARMENIAN;case"bengali":return Mn.BENGALI;case"cambodian":return Mn.CAMBODIAN;case"cjk-earthly-branch":return Mn.CJK_EARTHLY_BRANCH;case"cjk-heavenly-stem":return Mn.CJK_HEAVENLY_STEM;case"cjk-ideographic":return Mn.CJK_IDEOGRAPHIC;case"devanagari":return Mn.DEVANAGARI;case"ethiopic-numeric":return Mn.ETHIOPIC_NUMERIC;case"georgian":return Mn.GEORGIAN;case"gujarati":return Mn.GUJARATI;case"gurmukhi":return Mn.GURMUKHI;case"hebrew":return Mn.HEBREW;case"hiragana":return Mn.HIRAGANA;case"hiragana-iroha":return Mn.HIRAGANA_IROHA;case"japanese-formal":return Mn.JAPANESE_FORMAL;case"japanese-informal":return Mn.JAPANESE_INFORMAL;case"kannada":return Mn.KANNADA;case"katakana":return Mn.KATAKANA;case"katakana-iroha":return Mn.KATAKANA_IROHA;case"khmer":return Mn.KHMER;case"korean-hangul-formal":return Mn.KOREAN_HANGUL_FORMAL;case"korean-hanja-formal":return Mn.KOREAN_HANJA_FORMAL;case"korean-hanja-informal":return Mn.KOREAN_HANJA_INFORMAL;case"lao":return Mn.LAO;case"lower-armenian":return Mn.LOWER_ARMENIAN;case"malayalam":return Mn.MALAYALAM;case"mongolian":return Mn.MONGOLIAN;case"myanmar":return Mn.MYANMAR;case"oriya":return Mn.ORIYA;case"persian":return Mn.PERSIAN;case"simp-chinese-formal":return Mn.SIMP_CHINESE_FORMAL;case"simp-chinese-informal":return Mn.SIMP_CHINESE_INFORMAL;case"tamil":return Mn.TAMIL;case"telugu":return Mn.TELUGU;case"thai":return Mn.THAI;case"tibetan":return Mn.TIBETAN;case"trad-chinese-formal":return Mn.TRAD_CHINESE_FORMAL;case"trad-chinese-informal":return Mn.TRAD_CHINESE_INFORMAL;case"upper-armenian":return Mn.UPPER_ARMENIAN;case"disclosure-open":return Mn.DISCLOSURE_OPEN;case"disclosure-closed":return Mn.DISCLOSURE_CLOSED;case"none":default:return Mn.NONE}}},Nn=function(e){return{name:"margin-"+e,initialValue:"0",prefix:!1,type:_t.TOKEN_VALUE}},Pn=Nn("top"),Kn=Nn("right"),Vn=Nn("bottom"),Gn=Nn("left"),jn=(()=>(function(e){e[e.VISIBLE=0]="VISIBLE",e[e.HIDDEN=1]="HIDDEN",e[e.SCROLL=2]="SCROLL",e[e.AUTO=3]="AUTO"}(jn||(jn={})),jn))(),qn={name:"overflow",initialValue:"visible",prefix:!1,type:_t.LIST,parse:function(e,t){return t.filter(ze).map(function(e){switch(e.value){case"hidden":return jn.HIDDEN;case"scroll":return jn.SCROLL;case"auto":return jn.AUTO;case"visible":default:return jn.VISIBLE}})}},zn=(()=>(function(e){e.NORMAL="normal",e.BREAK_WORD="break-word"}(zn||(zn={})),zn))(),Wn={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:_t.IDENT_VALUE,parse:function(e,t){switch(t){case"break-word":return zn.BREAK_WORD;case"normal":default:return zn.NORMAL}}},Xn=function(e){return{name:"padding-"+e,initialValue:"0",prefix:!1,type:_t.TYPE_VALUE,format:"length-percentage"}},Jn=Xn("top"),Yn=Xn("right"),$n=Xn("bottom"),Zn=Xn("left"),er=(()=>(function(e){e[e.LEFT=0]="LEFT",e[e.CENTER=1]="CENTER",e[e.RIGHT=2]="RIGHT"}(er||(er={})),er))(),tr={name:"text-align",initialValue:"left",prefix:!1,type:_t.IDENT_VALUE,parse:function(e,t){switch(t){case"right":return er.RIGHT;case"center":case"justify":return er.CENTER;case"left":default:return er.LEFT}}},nr=(()=>(function(e){e[e.STATIC=0]="STATIC",e[e.RELATIVE=1]="RELATIVE",e[e.ABSOLUTE=2]="ABSOLUTE",e[e.FIXED=3]="FIXED",e[e.STICKY=4]="STICKY"}(nr||(nr={})),nr))(),rr={name:"position",initialValue:"static",prefix:!1,type:_t.IDENT_VALUE,parse:function(e,t){switch(t){case"relative":return nr.RELATIVE;case"absolute":return nr.ABSOLUTE;case"fixed":return nr.FIXED;case"sticky":return nr.STICKY}return nr.STATIC}},ir={name:"text-shadow",initialValue:"none",type:_t.LIST,prefix:!1,parse:function(e,t){return 1===t.length&&Xe(t[0],"none")?[]:$e(t).map(function(t){for(var n={color:Et.TRANSPARENT,offsetX:rt,offsetY:rt,blur:rt},r=0,i=0;i<t.length;i++){var o=t[i];et(o)?(0===r?n.offsetX=o:1===r?n.offsetY=o:n.blur=o,r++):n.color=pt(e,o)}return n})}},or=(()=>(function(e){e[e.NONE=0]="NONE",e[e.LOWERCASE=1]="LOWERCASE",e[e.UPPERCASE=2]="UPPERCASE",e[e.CAPITALIZE=3]="CAPITALIZE"}(or||(or={})),or))(),sr={name:"text-transform",initialValue:"none",prefix:!1,type:_t.IDENT_VALUE,parse:function(e,t){switch(t){case"uppercase":return or.UPPERCASE;case"lowercase":return or.LOWERCASE;case"capitalize":return or.CAPITALIZE}return or.NONE}},ar={name:"transform",initialValue:"none",prefix:!0,type:_t.VALUE,parse:function(e,t){if(t.type===le.IDENT_TOKEN&&"none"===t.value)return null;if(t.type===le.FUNCTION){var n=lr[t.name];if(void 0===n)throw new Error('Attempting to parse an unsupported transform function "'+t.name+'"');return n(t.values)}return null}},lr={matrix:function(e){var t=e.filter(function(e){return e.type===le.NUMBER_TOKEN}).map(function(e){return e.number});return 6===t.length?t:null},matrix3d:function(e){var t=e.filter(function(e){return e.type===le.NUMBER_TOKEN}).map(function(e){return e.number});return 16===t.length?[t[0],t[1],t[4],t[5],t[12],t[13]]:null}},Ar={type:le.PERCENTAGE_TOKEN,number:50,flags:4},cr=[Ar,Ar],ur={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:_t.LIST,parse:function(e,t){var n=t.filter(tt);return 2!==n.length?cr:[n[0],n[1]]}},hr=(()=>(function(e){e[e.VISIBLE=0]="VISIBLE",e[e.HIDDEN=1]="HIDDEN",e[e.COLLAPSE=2]="COLLAPSE"}(hr||(hr={})),hr))(),dr={name:"visible",initialValue:"none",prefix:!1,type:_t.IDENT_VALUE,parse:function(e,t){switch(t){case"hidden":return hr.HIDDEN;case"collapse":return hr.COLLAPSE;case"visible":default:return hr.VISIBLE}}},pr=(()=>(function(e){e.NORMAL="normal",e.BREAK_ALL="break-all",e.KEEP_ALL="keep-all"}(pr||(pr={})),pr))(),fr={name:"word-break",initialValue:"normal",prefix:!1,type:_t.IDENT_VALUE,parse:function(e,t){switch(t){case"break-all":return pr.BREAK_ALL;case"keep-all":return pr.KEEP_ALL;case"normal":default:return pr.NORMAL}}},gr={name:"z-index",initialValue:"auto",prefix:!1,type:_t.VALUE,parse:function(e,t){if(t.type===le.IDENT_TOKEN)return{auto:!0,order:0};if(qe(t))return{auto:!1,order:t.number};throw new Error("Invalid z-index number parsed")}},mr={name:"opacity",initialValue:"1",type:_t.VALUE,prefix:!1,parse:function(e,t){return qe(t)?t.number:1}},yr={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:_t.TYPE_VALUE,format:"color"},wr={name:"text-decoration-line",initialValue:"none",prefix:!1,type:_t.LIST,parse:function(e,t){return t.filter(ze).map(function(e){switch(e.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0}).filter(function(e){return 0!==e})}},vr={name:"font-family",initialValue:"",prefix:!1,type:_t.LIST,parse:function(e,t){var n=[],r=[];return t.forEach(function(e){switch(e.type){case le.IDENT_TOKEN:case le.STRING_TOKEN:n.push(e.value);break;case le.NUMBER_TOKEN:n.push(e.number.toString());break;case le.COMMA_TOKEN:r.push(n.join(" ")),n.length=0}}),n.length&&r.push(n.join(" ")),r.map(function(e){return-1===e.indexOf(" ")?e:"'"+e+"'"})}},br={name:"font-size",initialValue:"0",prefix:!1,type:_t.TYPE_VALUE,format:"length"},Cr={name:"font-weight",initialValue:"normal",type:_t.VALUE,prefix:!1,parse:function(e,t){if(qe(t))return t.number;if(ze(t))switch(t.value){case"bold":return 700;case"normal":default:return 400}return 400}},Br={name:"font-variant",initialValue:"none",type:_t.LIST,prefix:!1,parse:function(e,t){return t.filter(ze).map(function(e){return e.value})}},Er=(()=>(function(e){e.NORMAL="normal",e.ITALIC="italic",e.OBLIQUE="oblique"}(Er||(Er={})),Er))(),_r={name:"font-style",initialValue:"normal",prefix:!1,type:_t.IDENT_VALUE,parse:function(e,t){switch(t){case"oblique":return Er.OBLIQUE;case"italic":return Er.ITALIC;case"normal":default:return Er.NORMAL}}},Fr=function(e,t){return 0!=(e&t)},xr={name:"content",initialValue:"none",type:_t.LIST,prefix:!1,parse:function(e,t){if(0===t.length)return[];var n=t[0];return n.type===le.IDENT_TOKEN&&"none"===n.value?[]:t}},Tr={name:"counter-increment",initialValue:"none",prefix:!0,type:_t.LIST,parse:function(e,t){if(0===t.length)return null;var n=t[0];if(n.type===le.IDENT_TOKEN&&"none"===n.value)return null;for(var r=[],i=t.filter(Je),o=0;o<i.length;o++){var s=i[o],a=i[o+1];if(s.type===le.IDENT_TOKEN){var l=a&&qe(a)?a.number:1;r.push({counter:s.value,increment:l})}}return r}},Qr={name:"counter-reset",initialValue:"none",prefix:!0,type:_t.LIST,parse:function(e,t){if(0===t.length)return[];for(var n=[],r=t.filter(Je),i=0;i<r.length;i++){var o=r[i],s=r[i+1];if(ze(o)&&"none"!==o.value){var a=s&&qe(s)?s.number:0;n.push({counter:o.value,reset:a})}}return n}},Sr={name:"quotes",initialValue:"none",prefix:!0,type:_t.LIST,parse:function(e,t){if(0===t.length)return null;var n=t[0];if(n.type===le.IDENT_TOKEN&&"none"===n.value)return null;var r=[],i=t.filter(We);if(i.length%2!=0)return null;for(var o=0;o<i.length;o+=2)r.push({open:i[o].value,close:i[o+1].value});return r}},kr=function(e,t,n){if(!e)return"";var r=e[Math.min(t,e.length-1)];return r?n?r.open:r.close:""},Ur={name:"box-shadow",initialValue:"none",type:_t.LIST,prefix:!1,parse:function(e,t){return 1===t.length&&Xe(t[0],"none")?[]:$e(t).map(function(t){for(var n={color:255,offsetX:rt,offsetY:rt,blur:rt,spread:rt,inset:!1},r=0,i=0;i<t.length;i++){var o=t[i];Xe(o,"inset")?n.inset=!0:et(o)?(0===r?n.offsetX=o:1===r?n.offsetY=o:2===r?n.blur=o:n.spread=o,r++):n.color=pt(e,o)}return n})}},Dr=(()=>(function(e){e[e.FILL=0]="FILL",e[e.STROKE=1]="STROKE",e[e.MARKERS=2]="MARKERS"}(Dr||(Dr={})),Dr))(),Or={name:"paint-order",initialValue:"normal",prefix:!1,type:_t.LIST,parse:function(e,t){var n=[Dr.FILL,Dr.STROKE,Dr.MARKERS],r=[];return t.filter(ze).forEach(function(e){switch(e.value){case"stroke":r.push(Dr.STROKE);break;case"fill":r.push(Dr.FILL);break;case"markers":r.push(Dr.MARKERS)}}),n.forEach(function(e){-1===r.indexOf(e)&&r.push(e)}),r}},Lr={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:_t.TYPE_VALUE,format:"color"},Ir={name:"-webkit-text-stroke-width",initialValue:"0",type:_t.VALUE,prefix:!1,parse:function(e,t){return je(t)?t.number:0}},Hr=function(){function e(e,t){var n,r;this.backgroundClip=Nr(e,xt,t.backgroundClip),this.backgroundColor=Nr(e,Tt,t.backgroundColor),this.backgroundImage=Nr(e,Wt,t.backgroundImage),this.backgroundOrigin=Nr(e,Xt,t.backgroundOrigin),this.backgroundPosition=Nr(e,Jt,t.backgroundPosition),this.backgroundRepeat=Nr(e,$t,t.backgroundRepeat),this.backgroundSize=Nr(e,tn,t.backgroundSize),this.borderTopColor=Nr(e,on,t.borderTopColor),this.borderRightColor=Nr(e,sn,t.borderRightColor),this.borderBottomColor=Nr(e,an,t.borderBottomColor),this.borderLeftColor=Nr(e,ln,t.borderLeftColor),this.borderTopLeftRadius=Nr(e,cn,t.borderTopLeftRadius),this.borderTopRightRadius=Nr(e,un,t.borderTopRightRadius),this.borderBottomRightRadius=Nr(e,hn,t.borderBottomRightRadius),this.borderBottomLeftRadius=Nr(e,dn,t.borderBottomLeftRadius),this.borderTopStyle=Nr(e,gn,t.borderTopStyle),this.borderRightStyle=Nr(e,mn,t.borderRightStyle),this.borderBottomStyle=Nr(e,yn,t.borderBottomStyle),this.borderLeftStyle=Nr(e,wn,t.borderLeftStyle),this.borderTopWidth=Nr(e,bn,t.borderTopWidth),this.borderRightWidth=Nr(e,Cn,t.borderRightWidth),this.borderBottomWidth=Nr(e,Bn,t.borderBottomWidth),this.borderLeftWidth=Nr(e,En,t.borderLeftWidth),this.boxShadow=Nr(e,Ur,t.boxShadow),this.color=Nr(e,_n,t.color),this.display=Nr(e,Fn,t.display),this.float=Nr(e,Qn,t.cssFloat),this.fontFamily=Nr(e,vr,t.fontFamily),this.fontSize=Nr(e,br,t.fontSize),this.fontStyle=Nr(e,_r,t.fontStyle),this.fontVariant=Nr(e,Br,t.fontVariant),this.fontWeight=Nr(e,Cr,t.fontWeight),this.letterSpacing=Nr(e,Sn,t.letterSpacing),this.lineBreak=Nr(e,Un,t.lineBreak),this.lineHeight=Nr(e,Dn,t.lineHeight),this.listStyleImage=Nr(e,Ln,t.listStyleImage),this.listStylePosition=Nr(e,Hn,t.listStylePosition),this.listStyleType=Nr(e,Rn,t.listStyleType),this.marginTop=Nr(e,Pn,t.marginTop),this.marginRight=Nr(e,Kn,t.marginRight),this.marginBottom=Nr(e,Vn,t.marginBottom),this.marginLeft=Nr(e,Gn,t.marginLeft),this.opacity=Nr(e,mr,t.opacity);var i=Nr(e,qn,t.overflow);this.overflowX=i[0],this.overflowY=i[i.length>1?1:0],this.overflowWrap=Nr(e,Wn,t.overflowWrap),this.paddingTop=Nr(e,Jn,t.paddingTop),this.paddingRight=Nr(e,Yn,t.paddingRight),this.paddingBottom=Nr(e,$n,t.paddingBottom),this.paddingLeft=Nr(e,Zn,t.paddingLeft),this.paintOrder=Nr(e,Or,t.paintOrder),this.position=Nr(e,rr,t.position),this.textAlign=Nr(e,tr,t.textAlign),this.textDecorationColor=Nr(e,yr,null!==(n=t.textDecorationColor)&&void 0!==n?n:t.color),this.textDecorationLine=Nr(e,wr,null!==(r=t.textDecorationLine)&&void 0!==r?r:t.textDecoration),this.textShadow=Nr(e,ir,t.textShadow),this.textTransform=Nr(e,sr,t.textTransform),this.transform=Nr(e,ar,t.transform),this.transformOrigin=Nr(e,ur,t.transformOrigin),this.visibility=Nr(e,dr,t.visibility),this.webkitTextStrokeColor=Nr(e,Lr,t.webkitTextStrokeColor),this.webkitTextStrokeWidth=Nr(e,Ir,t.webkitTextStrokeWidth),this.wordBreak=Nr(e,fr,t.wordBreak),this.zIndex=Nr(e,gr,t.zIndex)}return e.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===hr.VISIBLE},e.prototype.isTransparent=function(){return ft(this.backgroundColor)},e.prototype.isTransformed=function(){return null!==this.transform},e.prototype.isPositioned=function(){return this.position!==nr.STATIC},e.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},e.prototype.isFloating=function(){return this.float!==Tn.NONE},e.prototype.isInlineLevel=function(){return Fr(this.display,4)||Fr(this.display,33554432)||Fr(this.display,268435456)||Fr(this.display,536870912)||Fr(this.display,67108864)||Fr(this.display,134217728)},e}(),Mr=function(e,t){this.content=Nr(e,xr,t.content),this.quotes=Nr(e,Sr,t.quotes)},Rr=function(e,t){this.counterIncrement=Nr(e,Tr,t.counterIncrement),this.counterReset=Nr(e,Qr,t.counterReset)},Nr=function(e,t,n){var r=new Ve,i=null!=n?n.toString():t.initialValue;r.write(i);var o=new Ge(r.read());switch(t.type){case _t.IDENT_VALUE:var s=o.parseComponentValue();return t.parse(e,ze(s)?s.value:t.initialValue);case _t.VALUE:return t.parse(e,o.parseComponentValue());case _t.LIST:return t.parse(e,o.parseComponentValues());case _t.TOKEN_VALUE:return o.parseComponentValue();case _t.TYPE_VALUE:switch(t.format){case"angle":return ct(0,o.parseComponentValue());case"color":return pt(e,o.parseComponentValue());case"image":return qt(e,o.parseComponentValue());case"length":var a=o.parseComponentValue();return et(a)?a:rt;case"length-percentage":var l=o.parseComponentValue();return tt(l)?l:rt}}},Pr=function(e,t){this.context=e,this.styles=new Hr(e,window.getComputedStyle(t,null)),this.textNodes=[],this.elements=[],null!==this.styles.transform&&bi(t)&&(t.style.transform="none"),this.bounds=a(this.context,t),this.flags=0},Kr=function(e){return 0===e[0]&&255===e[1]&&0===e[2]&&255===e[3]},Vr=function(e,t,n,r,i){var o="http://www.w3.org/2000/svg",s=document.createElementNS(o,"svg"),a=document.createElementNS(o,"foreignObject");return s.setAttributeNS(null,"width",e.toString()),s.setAttributeNS(null,"height",t.toString()),a.setAttributeNS(null,"width","100%"),a.setAttributeNS(null,"height","100%"),a.setAttributeNS(null,"x",n.toString()),a.setAttributeNS(null,"y",r.toString()),a.setAttributeNS(null,"externalResourcesRequired","true"),s.appendChild(a),a.appendChild(i),s},Gr=function(e){return new Promise(function(t,n){var r=new Image;r.onload=function(){return t(r)},r.onerror=n,r.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent((new XMLSerializer).serializeToString(e))})},jr={get SUPPORT_RANGE_BOUNDS(){var e=function(e){if(e.createRange){var t=e.createRange();if(t.getBoundingClientRect){var n=e.createElement("boundtest");n.style.height="123px",n.style.display="block",e.body.appendChild(n),t.selectNode(n);var r=t.getBoundingClientRect(),i=Math.round(r.height);if(e.body.removeChild(n),123===i)return!0}}return!1}(document);return Object.defineProperty(jr,"SUPPORT_RANGE_BOUNDS",{value:e}),e},get SUPPORT_SVG_DRAWING(){var e=function(e){var t=new Image,n=e.createElement("canvas"),r=n.getContext("2d");if(!r)return!1;t.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{r.drawImage(t,0,0),n.toDataURL()}catch(i){return!1}return!0}(document);return Object.defineProperty(jr,"SUPPORT_SVG_DRAWING",{value:e}),e},get SUPPORT_FOREIGNOBJECT_DRAWING(){var e="function"==typeof Array.from&&"function"==typeof window.fetch?function(e){var t=e.createElement("canvas"),n=100;t.width=n,t.height=n;var r=t.getContext("2d");if(!r)return Promise.reject(!1);r.fillStyle="rgb(0, 255, 0)",r.fillRect(0,0,n,n);var i=new Image,o=t.toDataURL();i.src=o;var s=Vr(n,n,0,0,i);return r.fillStyle="red",r.fillRect(0,0,n,n),Gr(s).then(function(t){r.drawImage(t,0,0);var i=r.getImageData(0,0,n,n).data;r.fillStyle="red",r.fillRect(0,0,n,n);var s=e.createElement("div");return s.style.backgroundImage="url("+o+")",s.style.height="100px",Kr(i)?Gr(Vr(n,n,0,0,s)):Promise.reject(!1)}).then(function(e){return r.drawImage(e,0,0),Kr(r.getImageData(0,0,n,n).data)}).catch(function(){return!1})}(document):Promise.resolve(!1);return Object.defineProperty(jr,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:e}),e},get SUPPORT_CORS_IMAGES(){var e=void 0!==(new Image).crossOrigin;return Object.defineProperty(jr,"SUPPORT_CORS_IMAGES",{value:e}),e},get SUPPORT_RESPONSE_TYPE(){var e="string"==typeof(new XMLHttpRequest).responseType;return Object.defineProperty(jr,"SUPPORT_RESPONSE_TYPE",{value:e}),e},get SUPPORT_CORS_XHR(){var e="withCredentials"in new XMLHttpRequest;return Object.defineProperty(jr,"SUPPORT_CORS_XHR",{value:e}),e}},qr=function(e,t){this.text=e,this.bounds=t},zr=[32,160,4961,65792,65793,4153,4241],Wr=function(e,t){for(var n,r=function(e,t){var n=l(e),r=function(e,t){t||(t={lineBreak:"normal",wordBreak:"normal"});var n=function(e,t){void 0===t&&(t="strict");var n=[],r=[],i=[];return e.forEach(function(e,o){var s=J.get(e);if(s>50?(i.push(!0),s-=50):i.push(!1),-1!==["normal","auto","loose"].indexOf(t)&&-1!==[8208,8211,12316,12448].indexOf(e))return r.push(o),n.push(16);if(4===s||11===s){if(0===o)return r.push(o),n.push(H);var a=n[o-1];return-1===te.indexOf(a)?(r.push(r[o-1]),n.push(a)):(r.push(o),n.push(H))}return r.push(o),31===s?n.push("strict"===t?S:K):s===q||29===s?n.push(H):43===s?n.push(e>=131072&&e<=196605||e>=196608&&e<=262141?K:H):void n.push(s)}),[r,n,i]}(e,t.lineBreak),r=n[0],i=n[1],o=n[2];return"break-all"!==t.wordBreak&&"break-word"!==t.wordBreak||(i=i.map(function(e){return-1!==[D,H,q].indexOf(e)?K:e})),[r,i,"keep-all"===t.wordBreak?o.map(function(t,n){return t&&e[n]>=19968&&e[n]<=40959}):void 0]}(n,t),i=r[0],o=r[1],s=r[2],a=n.length,A=0,c=0;return{next:function(){if(c>=a)return{done:!0,value:null};for(var e=W;c<a&&(e=se(n,o,i,++c,s))===W;);if(e!==W||c===a){var t=new ae(n,e,A,c);return A=c,{value:t,done:!1}}return{done:!0,value:null}}}}(e,{lineBreak:t.lineBreak,wordBreak:t.overflowWrap===zn.BREAK_WORD?"break-word":t.wordBreak}),i=[],o=function(){if(n.value){var e=n.value.slice(),t=l(e),r="";t.forEach(function(e){-1===zr.indexOf(e)?r+=A(e):(r.length&&i.push(r),i.push(A(e)),r="")}),r.length&&i.push(r)}};!(n=r.next()).done;)o();return i},Xr=function(e,t,n){this.text=Jr(t.data,n.textTransform),this.textBounds=function(e,t,n,r){var i=function(e,t){return 0!==t.letterSpacing?l(e).map(function(e){return A(e)}):Wr(e,t)}(t,n),o=[],c=0;return i.forEach(function(t){if(n.textDecorationLine.length||t.trim().length>0)if(jr.SUPPORT_RANGE_BOUNDS)o.push(new qr(t,function(e,t,n,r){var i=t.ownerDocument;if(!i)throw new Error("Node has no owner document");var o=i.createRange();return o.setStart(t,n),o.setEnd(t,n+r),s.fromClientRect(e,o.getBoundingClientRect())}(e,r,c,t.length)));else{var i=r.splitText(t.length);o.push(new qr(t,function(e,t){var n=t.ownerDocument;if(n){var r=n.createElement("html2canvaswrapper");r.appendChild(t.cloneNode(!0));var i=t.parentNode;if(i){i.replaceChild(r,t);var o=a(e,r);return r.firstChild&&i.replaceChild(r.firstChild,r),o}}return new s(0,0,0,0)}(e,r))),r=i}else jr.SUPPORT_RANGE_BOUNDS||(r=r.splitText(t.length));c+=t.length}),o}(e,this.text,n,t)},Jr=function(e,t){switch(t){case or.LOWERCASE:return e.toLowerCase();case or.CAPITALIZE:return e.replace(Yr,$r);case or.UPPERCASE:return e.toUpperCase();default:return e}},Yr=/(^|\s|:|-|\(|\))([a-z])/g,$r=function(e,t,n){return e.length>0?t+n.toUpperCase():e},Zr=function(e){function n(t,n){var r=e.call(this,t,n)||this;return r.src=n.currentSrc||n.src,r.intrinsicWidth=n.naturalWidth,r.intrinsicHeight=n.naturalHeight,r.context.cache.addImage(r.src),r}return t(n,e),n}(Pr),ei=function(e){function n(t,n){var r=e.call(this,t,n)||this;return r.canvas=n,r.intrinsicWidth=n.width,r.intrinsicHeight=n.height,r}return t(n,e),n}(Pr),ti=function(e){function n(t,n){var r=e.call(this,t,n)||this,i=new XMLSerializer,o=a(t,n);return n.setAttribute("width",o.width+"px"),n.setAttribute("height",o.height+"px"),r.svg="data:image/svg+xml,"+encodeURIComponent(i.serializeToString(n)),r.intrinsicWidth=n.width.baseVal.value,r.intrinsicHeight=n.height.baseVal.value,r.context.cache.addImage(r.svg),r}return t(n,e),n}(Pr),ni=function(e){function n(t,n){var r=e.call(this,t,n)||this;return r.value=n.value,r}return t(n,e),n}(Pr),ri=function(e){function n(t,n){var r=e.call(this,t,n)||this;return r.start=n.start,r.reversed="boolean"==typeof n.reversed&&!0===n.reversed,r}return t(n,e),n}(Pr),ii=[{type:le.DIMENSION_TOKEN,flags:0,unit:"px",number:3}],oi=[{type:le.PERCENTAGE_TOKEN,flags:0,number:50}],si="checkbox",ai="radio",li=707406591,Ai=function(e){function n(t,n){var r,i,o,a=e.call(this,t,n)||this;switch(a.type=n.type.toLowerCase(),a.checked=n.checked,a.value=0===(o="password"===(i=n).type?new Array(i.value.length+1).join("\u2022"):i.value).length?i.placeholder||"":o,a.type!==si&&a.type!==ai||(a.styles.backgroundColor=3739148031,a.styles.borderTopColor=a.styles.borderRightColor=a.styles.borderBottomColor=a.styles.borderLeftColor=2779096575,a.styles.borderTopWidth=a.styles.borderRightWidth=a.styles.borderBottomWidth=a.styles.borderLeftWidth=1,a.styles.borderTopStyle=a.styles.borderRightStyle=a.styles.borderBottomStyle=a.styles.borderLeftStyle=pn.SOLID,a.styles.backgroundClip=[Ft.BORDER_BOX],a.styles.backgroundOrigin=[0],a.bounds=(r=a.bounds).width>r.height?new s(r.left+(r.width-r.height)/2,r.top,r.height,r.height):r.width<r.height?new s(r.left,r.top+(r.height-r.width)/2,r.width,r.width):r),a.type){case si:a.styles.borderTopRightRadius=a.styles.borderTopLeftRadius=a.styles.borderBottomRightRadius=a.styles.borderBottomLeftRadius=ii;break;case ai:a.styles.borderTopRightRadius=a.styles.borderTopLeftRadius=a.styles.borderBottomRightRadius=a.styles.borderBottomLeftRadius=oi}return a}return t(n,e),n}(Pr),ci=function(e){function n(t,n){var r=e.call(this,t,n)||this,i=n.options[n.selectedIndex||0];return r.value=i&&i.text||"",r}return t(n,e),n}(Pr),ui=function(e){function n(t,n){var r=e.call(this,t,n)||this;return r.value=n.value,r}return t(n,e),n}(Pr),hi=function(e){function n(t,n){var r=e.call(this,t,n)||this;r.src=n.src,r.width=parseInt(n.width,10)||0,r.height=parseInt(n.height,10)||0,r.backgroundColor=r.styles.backgroundColor;try{if(n.contentWindow&&n.contentWindow.document&&n.contentWindow.document.documentElement){r.tree=gi(t,n.contentWindow.document.documentElement);var i=n.contentWindow.document.documentElement?Bt(t,getComputedStyle(n.contentWindow.document.documentElement).backgroundColor):Et.TRANSPARENT,o=n.contentWindow.document.body?Bt(t,getComputedStyle(n.contentWindow.document.body).backgroundColor):Et.TRANSPARENT;r.backgroundColor=ft(i)?ft(o)?r.styles.backgroundColor:o:i}}catch(s){}return r}return t(n,e),n}(Pr),di=["OL","UL","MENU"],pi=function(e,t,n,r){for(var i=t.firstChild,o=void 0;i;i=o)if(o=i.nextSibling,wi(i)&&i.data.trim().length>0)n.textNodes.push(new Xr(e,i,n.styles));else if(vi(i))if(Li(i)&&i.assignedNodes)i.assignedNodes().forEach(function(t){return pi(e,t,n,r)});else{var s=fi(e,i);s.styles.isVisible()&&(mi(i,s,r)?s.flags|=4:yi(s.styles)&&(s.flags|=2),-1!==di.indexOf(i.tagName)&&(s.flags|=8),n.elements.push(s),i.shadowRoot?pi(e,i.shadowRoot,s,r):Di(i)||Fi(i)||Oi(i)||pi(e,i,s,r))}},fi=function(e,t){return Qi(t)?new Zr(e,t):Ti(t)?new ei(e,t):Fi(t)?new ti(e,t):Bi(t)?new ni(e,t):Ei(t)?new ri(e,t):_i(t)?new Ai(e,t):Oi(t)?new ci(e,t):Di(t)?new ui(e,t):Si(t)?new hi(e,t):new Pr(e,t)},gi=function(e,t){var n=fi(e,t);return n.flags|=4,pi(e,t,n,n),n},mi=function(e,t,n){return t.styles.isPositionedWithZIndex()||t.styles.opacity<1||t.styles.isTransformed()||xi(e)&&n.styles.isTransparent()},yi=function(e){return e.isPositioned()||e.isFloating()},wi=function(e){return e.nodeType===Node.TEXT_NODE},vi=function(e){return e.nodeType===Node.ELEMENT_NODE},bi=function(e){return vi(e)&&void 0!==e.style&&!Ci(e)},Ci=function(e){return"object"==typeof e.className},Bi=function(e){return"LI"===e.tagName},Ei=function(e){return"OL"===e.tagName},_i=function(e){return"INPUT"===e.tagName},Fi=function(e){return"svg"===e.tagName},xi=function(e){return"BODY"===e.tagName},Ti=function(e){return"CANVAS"===e.tagName},Qi=function(e){return"IMG"===e.tagName},Si=function(e){return"IFRAME"===e.tagName},ki=function(e){return"STYLE"===e.tagName},Ui=function(e){return"SCRIPT"===e.tagName},Di=function(e){return"TEXTAREA"===e.tagName},Oi=function(e){return"SELECT"===e.tagName},Li=function(e){return"SLOT"===e.tagName},Ii=function(){function e(){this.counters={}}return e.prototype.getCounterValue=function(e){var t=this.counters[e];return t&&t.length?t[t.length-1]:1},e.prototype.getCounterValues=function(e){return this.counters[e]||[]},e.prototype.pop=function(e){var t=this;e.forEach(function(e){return t.counters[e].pop()})},e.prototype.parse=function(e){var t=this,n=e.counterIncrement,r=e.counterReset,i=!0;null!==n&&n.forEach(function(e){var n=t.counters[e.counter];n&&0!==e.increment&&(i=!1,n[Math.max(0,n.length-1)]+=e.increment)});var o=[];return i&&r.forEach(function(e){var n=t.counters[e.counter];o.push(e.counter),n||(n=t.counters[e.counter]=[]),n.push(e.reset)}),o},e}(),Hi={integers:[1e3,900,500,400,100,90,50,40,10,9,5,4,1],values:["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"]},Mi={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["\u0554","\u0553","\u0552","\u0551","\u0550","\u054f","\u054e","\u054d","\u054c","\u054b","\u054a","\u0549","\u0548","\u0547","\u0546","\u0545","\u0544","\u0543","\u0542","\u0541","\u0540","\u053f","\u053e","\u053d","\u053c","\u053b","\u053a","\u0539","\u0538","\u0537","\u0536","\u0535","\u0534","\u0533","\u0532","\u0531"]},Ri={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:["\u05d9\u05f3","\u05d8\u05f3","\u05d7\u05f3","\u05d6\u05f3","\u05d5\u05f3","\u05d4\u05f3","\u05d3\u05f3","\u05d2\u05f3","\u05d1\u05f3","\u05d0\u05f3","\u05ea","\u05e9","\u05e8","\u05e7","\u05e6","\u05e4","\u05e2","\u05e1","\u05e0","\u05de","\u05dc","\u05db","\u05d9\u05d8","\u05d9\u05d7","\u05d9\u05d6","\u05d8\u05d6","\u05d8\u05d5","\u05d9","\u05d8","\u05d7","\u05d6","\u05d5","\u05d4","\u05d3","\u05d2","\u05d1","\u05d0"]},Ni={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["\u10f5","\u10f0","\u10ef","\u10f4","\u10ee","\u10ed","\u10ec","\u10eb","\u10ea","\u10e9","\u10e8","\u10e7","\u10e6","\u10e5","\u10e4","\u10f3","\u10e2","\u10e1","\u10e0","\u10df","\u10de","\u10dd","\u10f2","\u10dc","\u10db","\u10da","\u10d9","\u10d8","\u10d7","\u10f1","\u10d6","\u10d5","\u10d4","\u10d3","\u10d2","\u10d1","\u10d0"]},Pi=function(e,t,n,r,i,o){return e<t||e>n?Ji(e,i,o.length>0):r.integers.reduce(function(t,n,i){for(;e>=n;)e-=n,t+=r.values[i];return t},"")+o},Ki=function(e,t,n,r){var i="";do{n||e--,i=r(e)+i,e/=t}while(e*t>=t);return i},Vi=function(e,t,n,r,i){var o=n-t+1;return(e<0?"-":"")+(Ki(Math.abs(e),o,r,function(e){return A(Math.floor(e%o)+t)})+i)},Gi=function(e,t,n){void 0===n&&(n=". ");var r=t.length;return Ki(Math.abs(e),r,!1,function(e){return t[Math.floor(e%r)]})+n},ji=function(e,t,n,r,i,o){if(e<-9999||e>9999)return Ji(e,Mn.CJK_DECIMAL,i.length>0);var s=Math.abs(e),a=i;if(0===s)return t[0]+a;for(var l=0;s>0&&l<=4;l++){var A=s%10;0===A&&Fr(o,1)&&""!==a?a=t[A]+a:A>1||1===A&&0===l||1===A&&1===l&&Fr(o,2)||1===A&&1===l&&Fr(o,4)&&e>100||1===A&&l>1&&Fr(o,8)?a=t[A]+(l>0?n[l-1]:"")+a:1===A&&l>0&&(a=n[l-1]+a),s=Math.floor(s/10)}return(e<0?r:"")+a},qi="\u5341\u767e\u5343\u842c",zi="\u62fe\u4f70\u4edf\u842c",Wi="\u30de\u30a4\u30ca\u30b9",Xi="\ub9c8\uc774\ub108\uc2a4",Ji=function(e,t,n){var r=n?". ":"",i=n?"\u3001":"",o=n?", ":"",s=n?" ":"";switch(t){case Mn.DISC:return"\u2022"+s;case Mn.CIRCLE:return"\u25e6"+s;case Mn.SQUARE:return"\u25fe"+s;case Mn.DECIMAL_LEADING_ZERO:var a=Vi(e,48,57,!0,r);return a.length<4?"0"+a:a;case Mn.CJK_DECIMAL:return Gi(e,"\u3007\u4e00\u4e8c\u4e09\u56db\u4e94\u516d\u4e03\u516b\u4e5d",i);case Mn.LOWER_ROMAN:return Pi(e,1,3999,Hi,Mn.DECIMAL,r).toLowerCase();case Mn.UPPER_ROMAN:return Pi(e,1,3999,Hi,Mn.DECIMAL,r);case Mn.LOWER_GREEK:return Vi(e,945,969,!1,r);case Mn.LOWER_ALPHA:return Vi(e,97,122,!1,r);case Mn.UPPER_ALPHA:return Vi(e,65,90,!1,r);case Mn.ARABIC_INDIC:return Vi(e,1632,1641,!0,r);case Mn.ARMENIAN:case Mn.UPPER_ARMENIAN:return Pi(e,1,9999,Mi,Mn.DECIMAL,r);case Mn.LOWER_ARMENIAN:return Pi(e,1,9999,Mi,Mn.DECIMAL,r).toLowerCase();case Mn.BENGALI:return Vi(e,2534,2543,!0,r);case Mn.CAMBODIAN:case Mn.KHMER:return Vi(e,6112,6121,!0,r);case Mn.CJK_EARTHLY_BRANCH:return Gi(e,"\u5b50\u4e11\u5bc5\u536f\u8fb0\u5df3\u5348\u672a\u7533\u9149\u620c\u4ea5",i);case Mn.CJK_HEAVENLY_STEM:return Gi(e,"\u7532\u4e59\u4e19\u4e01\u620a\u5df1\u5e9a\u8f9b\u58ec\u7678",i);case Mn.CJK_IDEOGRAPHIC:case Mn.TRAD_CHINESE_INFORMAL:return ji(e,"\u96f6\u4e00\u4e8c\u4e09\u56db\u4e94\u516d\u4e03\u516b\u4e5d",qi,"\u8ca0",i,14);case Mn.TRAD_CHINESE_FORMAL:return ji(e,"\u96f6\u58f9\u8cb3\u53c3\u8086\u4f0d\u9678\u67d2\u634c\u7396",zi,"\u8ca0",i,15);case Mn.SIMP_CHINESE_INFORMAL:return ji(e,"\u96f6\u4e00\u4e8c\u4e09\u56db\u4e94\u516d\u4e03\u516b\u4e5d",qi,"\u8d1f",i,14);case Mn.SIMP_CHINESE_FORMAL:return ji(e,"\u96f6\u58f9\u8d30\u53c1\u8086\u4f0d\u9646\u67d2\u634c\u7396",zi,"\u8d1f",i,15);case Mn.JAPANESE_INFORMAL:return ji(e,"\u3007\u4e00\u4e8c\u4e09\u56db\u4e94\u516d\u4e03\u516b\u4e5d","\u5341\u767e\u5343\u4e07",Wi,i,0);case Mn.JAPANESE_FORMAL:return ji(e,"\u96f6\u58f1\u5f10\u53c2\u56db\u4f0d\u516d\u4e03\u516b\u4e5d","\u62fe\u767e\u5343\u4e07",Wi,i,7);case Mn.KOREAN_HANGUL_FORMAL:return ji(e,"\uc601\uc77c\uc774\uc0bc\uc0ac\uc624\uc721\uce60\ud314\uad6c","\uc2ed\ubc31\ucc9c\ub9cc",Xi,o,7);case Mn.KOREAN_HANJA_INFORMAL:return ji(e,"\u96f6\u4e00\u4e8c\u4e09\u56db\u4e94\u516d\u4e03\u516b\u4e5d","\u5341\u767e\u5343\u842c",Xi,o,0);case Mn.KOREAN_HANJA_FORMAL:return ji(e,"\u96f6\u58f9\u8cb3\u53c3\u56db\u4e94\u516d\u4e03\u516b\u4e5d","\u62fe\u767e\u5343",Xi,o,7);case Mn.DEVANAGARI:return Vi(e,2406,2415,!0,r);case Mn.GEORGIAN:return Pi(e,1,19999,Ni,Mn.DECIMAL,r);case Mn.GUJARATI:return Vi(e,2790,2799,!0,r);case Mn.GURMUKHI:return Vi(e,2662,2671,!0,r);case Mn.HEBREW:return Pi(e,1,10999,Ri,Mn.DECIMAL,r);case Mn.HIRAGANA:return Gi(e,"\u3042\u3044\u3046\u3048\u304a\u304b\u304d\u304f\u3051\u3053\u3055\u3057\u3059\u305b\u305d\u305f\u3061\u3064\u3066\u3068\u306a\u306b\u306c\u306d\u306e\u306f\u3072\u3075\u3078\u307b\u307e\u307f\u3080\u3081\u3082\u3084\u3086\u3088\u3089\u308a\u308b\u308c\u308d\u308f\u3090\u3091\u3092\u3093");case Mn.HIRAGANA_IROHA:return Gi(e,"\u3044\u308d\u306f\u306b\u307b\u3078\u3068\u3061\u308a\u306c\u308b\u3092\u308f\u304b\u3088\u305f\u308c\u305d\u3064\u306d\u306a\u3089\u3080\u3046\u3090\u306e\u304a\u304f\u3084\u307e\u3051\u3075\u3053\u3048\u3066\u3042\u3055\u304d\u3086\u3081\u307f\u3057\u3091\u3072\u3082\u305b\u3059");case Mn.KANNADA:return Vi(e,3302,3311,!0,r);case Mn.KATAKANA:return Gi(e,"\u30a2\u30a4\u30a6\u30a8\u30aa\u30ab\u30ad\u30af\u30b1\u30b3\u30b5\u30b7\u30b9\u30bb\u30bd\u30bf\u30c1\u30c4\u30c6\u30c8\u30ca\u30cb\u30cc\u30cd\u30ce\u30cf\u30d2\u30d5\u30d8\u30db\u30de\u30df\u30e0\u30e1\u30e2\u30e4\u30e6\u30e8\u30e9\u30ea\u30eb\u30ec\u30ed\u30ef\u30f0\u30f1\u30f2\u30f3",i);case Mn.KATAKANA_IROHA:return Gi(e,"\u30a4\u30ed\u30cf\u30cb\u30db\u30d8\u30c8\u30c1\u30ea\u30cc\u30eb\u30f2\u30ef\u30ab\u30e8\u30bf\u30ec\u30bd\u30c4\u30cd\u30ca\u30e9\u30e0\u30a6\u30f0\u30ce\u30aa\u30af\u30e4\u30de\u30b1\u30d5\u30b3\u30a8\u30c6\u30a2\u30b5\u30ad\u30e6\u30e1\u30df\u30b7\u30f1\u30d2\u30e2\u30bb\u30b9",i);case Mn.LAO:return Vi(e,3792,3801,!0,r);case Mn.MONGOLIAN:return Vi(e,6160,6169,!0,r);case Mn.MYANMAR:return Vi(e,4160,4169,!0,r);case Mn.ORIYA:return Vi(e,2918,2927,!0,r);case Mn.PERSIAN:return Vi(e,1776,1785,!0,r);case Mn.TAMIL:return Vi(e,3046,3055,!0,r);case Mn.TELUGU:return Vi(e,3174,3183,!0,r);case Mn.THAI:return Vi(e,3664,3673,!0,r);case Mn.TIBETAN:return Vi(e,3872,3881,!0,r);case Mn.DECIMAL:default:return Vi(e,48,57,!0,r)}},Yi="data-html2canvas-ignore",$i=function(){function e(e,t,n){if(this.context=e,this.options=n,this.scrolledElements=[],this.referenceElement=t,this.counters=new Ii,this.quoteDepth=0,!t.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(t.ownerDocument.documentElement)}return e.prototype.toIFrame=function(e,t){var n=this,o=eo(e,t);if(!o.contentWindow)return Promise.reject("Unable to find iframe window");var s=e.defaultView.pageXOffset,a=e.defaultView.pageYOffset,l=o.contentWindow,A=l.document,c=ro(o).then(function(){return r(n,void 0,void 0,function(){var e,n;return i(this,function(r){switch(r.label){case 0:return this.scrolledElements.forEach(lo),l&&(l.scrollTo(t.left,t.top),!/(iPad|iPhone|iPod)/g.test(navigator.userAgent)||l.scrollY===t.top&&l.scrollX===t.left||(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(l.scrollX-t.left,l.scrollY-t.top,0,0))),e=this.options.onclone,void 0===(n=this.clonedReferenceElement)?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:A.fonts&&A.fonts.ready?[4,A.fonts.ready]:[3,2];case 1:r.sent(),r.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,no(A)]:[3,4];case 3:r.sent(),r.label=4;case 4:return"function"==typeof e?[2,Promise.resolve().then(function(){return e(A,n)}).then(function(){return o})]:[2,o]}})})});return A.open(),A.write(so(document.doctype)+"<html></html>"),ao(this.referenceElement.ownerDocument,s,a),A.replaceChild(A.adoptNode(this.documentElement),A.documentElement),A.close(),c},e.prototype.createElementClone=function(e){if(Ti(e))return this.createCanvasClone(e);if(ki(e))return this.createStyleClone(e);var t=e.cloneNode(!1);return Qi(t)&&(Qi(e)&&e.currentSrc&&e.currentSrc!==e.src&&(t.src=e.currentSrc,t.srcset=""),"lazy"===t.loading&&(t.loading="eager")),t},e.prototype.createStyleClone=function(e){try{var t=e.sheet;if(t&&t.cssRules){var n=[].slice.call(t.cssRules,0).reduce(function(e,t){return t&&"string"==typeof t.cssText?e+t.cssText:e},""),r=e.cloneNode(!1);return r.textContent=n,r}}catch(i){if(this.context.logger.error("Unable to access cssRules property",i),"SecurityError"!==i.name)throw i}return e.cloneNode(!1)},e.prototype.createCanvasClone=function(e){if(this.options.inlineImages&&e.ownerDocument){var t=e.ownerDocument.createElement("img");try{return t.src=e.toDataURL(),t}catch(o){this.context.logger.info("Unable to clone canvas contents, canvas is tainted")}}var n=e.cloneNode(!1);try{n.width=e.width,n.height=e.height;var r=e.getContext("2d"),i=n.getContext("2d");return i&&(r?i.putImageData(r.getImageData(0,0,e.width,e.height),0,0):i.drawImage(e,0,0)),n}catch(o){}return n},e.prototype.cloneNode=function(e){if(wi(e))return document.createTextNode(e.data);if(!e.ownerDocument)return e.cloneNode(!1);var t=e.ownerDocument.defaultView;if(t&&vi(e)&&(bi(e)||Ci(e))){var n=this.createElementClone(e),r=t.getComputedStyle(e),i=t.getComputedStyle(e,":before"),o=t.getComputedStyle(e,":after");this.referenceElement===e&&bi(n)&&(this.clonedReferenceElement=n),xi(n)&&ho(n);for(var s=this.counters.parse(new Rr(this.context,r)),a=this.resolvePseudoContent(e,n,i,Zi.BEFORE),l=e.firstChild;l;l=l.nextSibling)vi(l)&&(Ui(l)||l.hasAttribute(Yi)||"function"==typeof this.options.ignoreElements&&this.options.ignoreElements(l))||this.options.copyStyles&&vi(l)&&ki(l)||n.appendChild(this.cloneNode(l));a&&n.insertBefore(a,n.firstChild);var A=this.resolvePseudoContent(e,n,o,Zi.AFTER);return A&&n.appendChild(A),this.counters.pop(s),r&&(this.options.copyStyles||Ci(e))&&!Si(e)&&oo(r,n),0===e.scrollTop&&0===e.scrollLeft||this.scrolledElements.push([n,e.scrollLeft,e.scrollTop]),(Di(e)||Oi(e))&&(Di(n)||Oi(n))&&(n.value=e.value),n}return e.cloneNode(!1)},e.prototype.resolvePseudoContent=function(e,t,n,r){var i=this;if(n){var o=n.content,s=t.ownerDocument;if(s&&o&&"none"!==o&&"-moz-alt-content"!==o&&"none"!==n.display){this.counters.parse(new Rr(this.context,n));var a=new Mr(this.context,n),l=s.createElement("html2canvaspseudoelement");oo(n,l),a.content.forEach(function(t){if(t.type===le.STRING_TOKEN)l.appendChild(s.createTextNode(t.value));else if(t.type===le.URL_TOKEN){var n=s.createElement("img");n.src=t.value,n.style.opacity="1",l.appendChild(n)}else if(t.type===le.FUNCTION){if("attr"===t.name){var r=t.values.filter(ze);r.length&&l.appendChild(s.createTextNode(e.getAttribute(r[0].value)||""))}else if("counter"===t.name){var o=t.values.filter(Ye),A=o[1];if((h=o[0])&&ze(h)){var c=i.counters.getCounterValue(h.value),u=A&&ze(A)?Rn.parse(i.context,A.value):Mn.DECIMAL;l.appendChild(s.createTextNode(Ji(c,u,!1)))}}else if("counters"===t.name){var h,d=t.values.filter(Ye),p=d[1];if(A=d[2],(h=d[0])&&ze(h)){var f=i.counters.getCounterValues(h.value),g=A&&ze(A)?Rn.parse(i.context,A.value):Mn.DECIMAL,m=p&&p.type===le.STRING_TOKEN?p.value:"",y=f.map(function(e){return Ji(e,g,!1)}).join(m);l.appendChild(s.createTextNode(y))}}}else if(t.type===le.IDENT_TOKEN)switch(t.value){case"open-quote":l.appendChild(s.createTextNode(kr(a.quotes,i.quoteDepth++,!0)));break;case"close-quote":l.appendChild(s.createTextNode(kr(a.quotes,--i.quoteDepth,!1)));break;default:l.appendChild(s.createTextNode(t.value))}}),l.className=Ao+" "+co;var A=r===Zi.BEFORE?" "+Ao:" "+co;return Ci(t)?t.className.baseValue+=A:t.className+=A,l}}},e.destroy=function(e){return!!e.parentNode&&(e.parentNode.removeChild(e),!0)},e}(),Zi=(()=>(function(e){e[e.BEFORE=0]="BEFORE",e[e.AFTER=1]="AFTER"}(Zi||(Zi={})),Zi))(),eo=function(e,t){var n=e.createElement("iframe");return n.className="html2canvas-container",n.style.visibility="hidden",n.style.position="fixed",n.style.left="-10000px",n.style.top="0px",n.style.border="0",n.width=t.width.toString(),n.height=t.height.toString(),n.scrolling="no",n.setAttribute(Yi,"true"),e.body.appendChild(n),n},to=function(e){return new Promise(function(t){e.complete?t():e.src?(e.onload=t,e.onerror=t):t()})},no=function(e){return Promise.all([].slice.call(e.images,0).map(to))},ro=function(e){return new Promise(function(t,n){var r=e.contentWindow;if(!r)return n("No window assigned for iframe");var i=r.document;r.onload=e.onload=function(){r.onload=e.onload=null;var n=setInterval(function(){i.body.childNodes.length>0&&"complete"===i.readyState&&(clearInterval(n),t(e))},50)}})},io=["all","d","content"],oo=function(e,t){for(var n=e.length-1;n>=0;n--){var r=e.item(n);-1===io.indexOf(r)&&t.style.setProperty(r,e.getPropertyValue(r))}return t},so=function(e){var t="";return e&&(t+="<!DOCTYPE ",e.name&&(t+=e.name),e.internalSubset&&(t+=e.internalSubset),e.publicId&&(t+='"'+e.publicId+'"'),e.systemId&&(t+='"'+e.systemId+'"'),t+=">"),t},ao=function(e,t,n){e&&e.defaultView&&(t!==e.defaultView.pageXOffset||n!==e.defaultView.pageYOffset)&&e.defaultView.scrollTo(t,n)},lo=function(e){var t=e[0],n=e[2];t.scrollLeft=e[1],t.scrollTop=n},Ao="___html2canvas___pseudoelement_before",co="___html2canvas___pseudoelement_after",uo='{\n    content: "" !important;\n    display: none !important;\n}',ho=function(e){po(e,"."+Ao+":before"+uo+"\n         ."+co+":after"+uo)},po=function(e,t){var n=e.ownerDocument;if(n){var r=n.createElement("style");r.textContent=t,e.appendChild(r)}},fo=function(){function e(){}return e.getOrigin=function(t){var n=e._link;return n?(n.href=t,n.href=n.href,n.protocol+n.hostname+n.port):"about:blank"},e.isSameOrigin=function(t){return e.getOrigin(t)===e._origin},e.setContext=function(t){e._link=t.document.createElement("a"),e._origin=e.getOrigin(t.location.href)},e._origin="about:blank",e}(),go=function(){function e(e,t){this.context=e,this._options=t,this._cache={}}return e.prototype.addImage=function(e){var t=Promise.resolve();return this.has(e)?t:Bo(e)||vo(e)?((this._cache[e]=this.loadImage(e)).catch(function(){}),t):t},e.prototype.match=function(e){return this._cache[e]},e.prototype.loadImage=function(e){return r(this,void 0,void 0,function(){var t,n,r,o,s=this;return i(this,function(i){switch(i.label){case 0:return t=fo.isSameOrigin(e),n=!bo(e)&&!0===this._options.useCORS&&jr.SUPPORT_CORS_IMAGES&&!t,r=!bo(e)&&!t&&!Bo(e)&&"string"==typeof this._options.proxy&&jr.SUPPORT_CORS_XHR&&!n,t||!1!==this._options.allowTaint||bo(e)||Bo(e)||r||n?(o=e,r?[4,this.proxy(o)]:[3,2]):[2];case 1:o=i.sent(),i.label=2;case 2:return this.context.logger.debug("Added image "+e.substring(0,256)),[4,new Promise(function(e,t){var r=new Image;r.onload=function(){return e(r)},r.onerror=t,(Co(o)||n)&&(r.crossOrigin="anonymous"),r.src=o,!0===r.complete&&setTimeout(function(){return e(r)},500),s._options.imageTimeout>0&&setTimeout(function(){return t("Timed out ("+s._options.imageTimeout+"ms) loading image")},s._options.imageTimeout)})];case 3:return[2,i.sent()]}})})},e.prototype.has=function(e){return void 0!==this._cache[e]},e.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},e.prototype.proxy=function(e){var t=this,n=this._options.proxy;if(!n)throw new Error("No proxy defined");var r=e.substring(0,256);return new Promise(function(i,o){var s=jr.SUPPORT_RESPONSE_TYPE?"blob":"text",a=new XMLHttpRequest;a.onload=function(){if(200===a.status)if("text"===s)i(a.response);else{var e=new FileReader;e.addEventListener("load",function(){return i(e.result)},!1),e.addEventListener("error",function(e){return o(e)},!1),e.readAsDataURL(a.response)}else o("Failed to proxy resource "+r+" with status code "+a.status)},a.onerror=o;var l=n.indexOf("?")>-1?"&":"?";if(a.open("GET",""+n+l+"url="+encodeURIComponent(e)+"&responseType="+s),"text"!==s&&a instanceof XMLHttpRequest&&(a.responseType=s),t._options.imageTimeout){var A=t._options.imageTimeout;a.timeout=A,a.ontimeout=function(){return o("Timed out ("+A+"ms) proxying "+r)}}a.send()})},e}(),mo=/^data:image\/svg\+xml/i,yo=/^data:image\/.*;base64,/i,wo=/^data:image\/.*/i,vo=function(e){return jr.SUPPORT_SVG_DRAWING||!Eo(e)},bo=function(e){return wo.test(e)},Co=function(e){return yo.test(e)},Bo=function(e){return"blob"===e.substr(0,4)},Eo=function(e){return"svg"===e.substr(-3).toLowerCase()||mo.test(e)},_o=(()=>(function(e){e[e.VECTOR=0]="VECTOR",e[e.BEZIER_CURVE=1]="BEZIER_CURVE"}(_o||(_o={})),_o))(),Fo=function(e,t){return e.length===t.length&&e.some(function(e,n){return e===t[n]})},xo=function(){function e(e,t){this.type=_o.VECTOR,this.x=e,this.y=t}return e.prototype.add=function(t,n){return new e(this.x+t,this.y+n)},e}(),To=function(e,t,n){return new xo(e.x+(t.x-e.x)*n,e.y+(t.y-e.y)*n)},Qo=function(){function e(e,t,n,r){this.type=_o.BEZIER_CURVE,this.start=e,this.startControl=t,this.endControl=n,this.end=r}return e.prototype.subdivide=function(t,n){var r=To(this.start,this.startControl,t),i=To(this.startControl,this.endControl,t),o=To(this.endControl,this.end,t),s=To(r,i,t),a=To(i,o,t),l=To(s,a,t);return n?new e(this.start,r,s,l):new e(l,a,o,this.end)},e.prototype.add=function(t,n){return new e(this.start.add(t,n),this.startControl.add(t,n),this.endControl.add(t,n),this.end.add(t,n))},e.prototype.reverse=function(){return new e(this.end,this.endControl,this.startControl,this.start)},e}(),So=function(e){return e.type===_o.BEZIER_CURVE},ko=function(e){var t=e.styles,n=e.bounds,r=st(t.borderTopLeftRadius,n.width,n.height),i=r[0],o=r[1],s=st(t.borderTopRightRadius,n.width,n.height),a=s[0],l=s[1],A=st(t.borderBottomRightRadius,n.width,n.height),c=A[0],u=A[1],h=st(t.borderBottomLeftRadius,n.width,n.height),d=h[0],p=h[1],f=[];f.push((i+a)/n.width),f.push((d+c)/n.width),f.push((o+p)/n.height),f.push((l+u)/n.height);var g=Math.max.apply(Math,f);g>1&&(i/=g,o/=g,a/=g,l/=g,c/=g,u/=g,d/=g,p/=g);var m=n.width-a,y=n.height-u,w=n.width-c,v=n.height-p,b=t.borderTopWidth,C=t.borderRightWidth,B=t.borderBottomWidth,E=t.borderLeftWidth,_=at(t.paddingTop,e.bounds.width),F=at(t.paddingRight,e.bounds.width),x=at(t.paddingBottom,e.bounds.width),T=at(t.paddingLeft,e.bounds.width);this.topLeftBorderDoubleOuterBox=i>0||o>0?Do(n.left+E/3,n.top+b/3,i-E/3,o-b/3,Uo.TOP_LEFT):new xo(n.left+E/3,n.top+b/3),this.topRightBorderDoubleOuterBox=i>0||o>0?Do(n.left+m,n.top+b/3,a-C/3,l-b/3,Uo.TOP_RIGHT):new xo(n.left+n.width-C/3,n.top+b/3),this.bottomRightBorderDoubleOuterBox=c>0||u>0?Do(n.left+w,n.top+y,c-C/3,u-B/3,Uo.BOTTOM_RIGHT):new xo(n.left+n.width-C/3,n.top+n.height-B/3),this.bottomLeftBorderDoubleOuterBox=d>0||p>0?Do(n.left+E/3,n.top+v,d-E/3,p-B/3,Uo.BOTTOM_LEFT):new xo(n.left+E/3,n.top+n.height-B/3),this.topLeftBorderDoubleInnerBox=i>0||o>0?Do(n.left+2*E/3,n.top+2*b/3,i-2*E/3,o-2*b/3,Uo.TOP_LEFT):new xo(n.left+2*E/3,n.top+2*b/3),this.topRightBorderDoubleInnerBox=i>0||o>0?Do(n.left+m,n.top+2*b/3,a-2*C/3,l-2*b/3,Uo.TOP_RIGHT):new xo(n.left+n.width-2*C/3,n.top+2*b/3),this.bottomRightBorderDoubleInnerBox=c>0||u>0?Do(n.left+w,n.top+y,c-2*C/3,u-2*B/3,Uo.BOTTOM_RIGHT):new xo(n.left+n.width-2*C/3,n.top+n.height-2*B/3),this.bottomLeftBorderDoubleInnerBox=d>0||p>0?Do(n.left+2*E/3,n.top+v,d-2*E/3,p-2*B/3,Uo.BOTTOM_LEFT):new xo(n.left+2*E/3,n.top+n.height-2*B/3),this.topLeftBorderStroke=i>0||o>0?Do(n.left+E/2,n.top+b/2,i-E/2,o-b/2,Uo.TOP_LEFT):new xo(n.left+E/2,n.top+b/2),this.topRightBorderStroke=i>0||o>0?Do(n.left+m,n.top+b/2,a-C/2,l-b/2,Uo.TOP_RIGHT):new xo(n.left+n.width-C/2,n.top+b/2),this.bottomRightBorderStroke=c>0||u>0?Do(n.left+w,n.top+y,c-C/2,u-B/2,Uo.BOTTOM_RIGHT):new xo(n.left+n.width-C/2,n.top+n.height-B/2),this.bottomLeftBorderStroke=d>0||p>0?Do(n.left+E/2,n.top+v,d-E/2,p-B/2,Uo.BOTTOM_LEFT):new xo(n.left+E/2,n.top+n.height-B/2),this.topLeftBorderBox=i>0||o>0?Do(n.left,n.top,i,o,Uo.TOP_LEFT):new xo(n.left,n.top),this.topRightBorderBox=a>0||l>0?Do(n.left+m,n.top,a,l,Uo.TOP_RIGHT):new xo(n.left+n.width,n.top),this.bottomRightBorderBox=c>0||u>0?Do(n.left+w,n.top+y,c,u,Uo.BOTTOM_RIGHT):new xo(n.left+n.width,n.top+n.height),this.bottomLeftBorderBox=d>0||p>0?Do(n.left,n.top+v,d,p,Uo.BOTTOM_LEFT):new xo(n.left,n.top+n.height),this.topLeftPaddingBox=i>0||o>0?Do(n.left+E,n.top+b,Math.max(0,i-E),Math.max(0,o-b),Uo.TOP_LEFT):new xo(n.left+E,n.top+b),this.topRightPaddingBox=a>0||l>0?Do(n.left+Math.min(m,n.width-C),n.top+b,m>n.width+C?0:Math.max(0,a-C),Math.max(0,l-b),Uo.TOP_RIGHT):new xo(n.left+n.width-C,n.top+b),this.bottomRightPaddingBox=c>0||u>0?Do(n.left+Math.min(w,n.width-E),n.top+Math.min(y,n.height-B),Math.max(0,c-C),Math.max(0,u-B),Uo.BOTTOM_RIGHT):new xo(n.left+n.width-C,n.top+n.height-B),this.bottomLeftPaddingBox=d>0||p>0?Do(n.left+E,n.top+Math.min(v,n.height-B),Math.max(0,d-E),Math.max(0,p-B),Uo.BOTTOM_LEFT):new xo(n.left+E,n.top+n.height-B),this.topLeftContentBox=i>0||o>0?Do(n.left+E+T,n.top+b+_,Math.max(0,i-(E+T)),Math.max(0,o-(b+_)),Uo.TOP_LEFT):new xo(n.left+E+T,n.top+b+_),this.topRightContentBox=a>0||l>0?Do(n.left+Math.min(m,n.width+E+T),n.top+b+_,m>n.width+E+T?0:a-E+T,l-(b+_),Uo.TOP_RIGHT):new xo(n.left+n.width-(C+F),n.top+b+_),this.bottomRightContentBox=c>0||u>0?Do(n.left+Math.min(w,n.width-(E+T)),n.top+Math.min(y,n.height+b+_),Math.max(0,c-(C+F)),u-(B+x),Uo.BOTTOM_RIGHT):new xo(n.left+n.width-(C+F),n.top+n.height-(B+x)),this.bottomLeftContentBox=d>0||p>0?Do(n.left+E+T,n.top+v,Math.max(0,d-(E+T)),p-(B+x),Uo.BOTTOM_LEFT):new xo(n.left+E+T,n.top+n.height-(B+x))},Uo=(()=>(function(e){e[e.TOP_LEFT=0]="TOP_LEFT",e[e.TOP_RIGHT=1]="TOP_RIGHT",e[e.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",e[e.BOTTOM_LEFT=3]="BOTTOM_LEFT"}(Uo||(Uo={})),Uo))(),Do=function(e,t,n,r,i){var o=(Math.sqrt(2)-1)/3*4,s=n*o,a=r*o,l=e+n,A=t+r;switch(i){case Uo.TOP_LEFT:return new Qo(new xo(e,A),new xo(e,A-a),new xo(l-s,t),new xo(l,t));case Uo.TOP_RIGHT:return new Qo(new xo(e,t),new xo(e+s,t),new xo(l,A-a),new xo(l,A));case Uo.BOTTOM_RIGHT:return new Qo(new xo(l,t),new xo(l,t+a),new xo(e+s,A),new xo(e,A));case Uo.BOTTOM_LEFT:default:return new Qo(new xo(l,A),new xo(l-s,A),new xo(e,t+a),new xo(e,t))}},Oo=function(e){return[e.topLeftBorderBox,e.topRightBorderBox,e.bottomRightBorderBox,e.bottomLeftBorderBox]},Lo=function(e){return[e.topLeftPaddingBox,e.topRightPaddingBox,e.bottomRightPaddingBox,e.bottomLeftPaddingBox]},Io=function(e,t,n){this.type=0,this.target=6,this.offsetX=e,this.offsetY=t,this.matrix=n},Ho=function(e,t){this.type=1,this.target=t,this.path=e},Mo=function(e){this.type=2,this.target=6,this.opacity=e},Ro=function(e){this.element=e,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]},No=function(){function e(e,t){if(this.container=e,this.effects=t.slice(0),this.curves=new ko(e),e.styles.opacity<1&&this.effects.push(new Mo(e.styles.opacity)),null!==e.styles.transform&&this.effects.push(new Io(e.bounds.left+e.styles.transformOrigin[0].number,e.bounds.top+e.styles.transformOrigin[1].number,e.styles.transform)),e.styles.overflowX!==jn.VISIBLE){var n=Oo(this.curves),r=Lo(this.curves);Fo(n,r)?this.effects.push(new Ho(n,6)):(this.effects.push(new Ho(n,2)),this.effects.push(new Ho(r,4)))}}return e.prototype.getParentEffects=function(){var e=this.effects.slice(0);if(this.container.styles.overflowX!==jn.VISIBLE){var t=Oo(this.curves),n=Lo(this.curves);Fo(t,n)||e.push(new Ho(n,6))}return e},e}(),Po=function(e,t,n,r){e.container.elements.forEach(function(i){var o=Fr(i.flags,4),s=Fr(i.flags,2),a=new No(i,e.getParentEffects());Fr(i.styles.display,2048)&&r.push(a);var l=Fr(i.flags,8)?[]:r;if(o||s){var A=o||i.styles.isPositioned()?n:t,c=new Ro(a);if(i.styles.isPositioned()||i.styles.opacity<1||i.styles.isTransformed()){var u=i.styles.zIndex.order;if(u<0){var h=0;A.negativeZIndex.some(function(e,t){return u>e.element.container.styles.zIndex.order?(h=t,!1):h>0}),A.negativeZIndex.splice(h,0,c)}else if(u>0){var d=0;A.positiveZIndex.some(function(e,t){return u>=e.element.container.styles.zIndex.order?(d=t+1,!1):d>0}),A.positiveZIndex.splice(d,0,c)}else A.zeroOrAutoZIndexOrTransformedOrOpacity.push(c)}else i.styles.isFloating()?A.nonPositionedFloats.push(c):A.nonPositionedInlineLevel.push(c);Po(a,c,o?c:n,l)}else i.styles.isInlineLevel()?t.inlineLevel.push(a):t.nonInlineLevel.push(a),Po(a,t,n,l);Fr(i.flags,8)&&Ko(i,l)})},Ko=function(e,t){for(var n=e instanceof ri?e.start:1,r=e instanceof ri&&e.reversed,i=0;i<t.length;i++){var o=t[i];o.container instanceof ni&&"number"==typeof o.container.value&&0!==o.container.value&&(n=o.container.value),o.listValue=Ji(n,o.container.styles.listStyleType,!0),n+=r?-1:1}},Vo=function(e,t){switch(t){case 0:return jo(e.topLeftBorderBox,e.topLeftPaddingBox,e.topRightBorderBox,e.topRightPaddingBox);case 1:return jo(e.topRightBorderBox,e.topRightPaddingBox,e.bottomRightBorderBox,e.bottomRightPaddingBox);case 2:return jo(e.bottomRightBorderBox,e.bottomRightPaddingBox,e.bottomLeftBorderBox,e.bottomLeftPaddingBox);case 3:default:return jo(e.bottomLeftBorderBox,e.bottomLeftPaddingBox,e.topLeftBorderBox,e.topLeftPaddingBox)}},Go=function(e,t){var n=[];return So(e)?n.push(e.subdivide(.5,!1)):n.push(e),So(t)?n.push(t.subdivide(.5,!0)):n.push(t),n},jo=function(e,t,n,r){var i=[];return So(e)?i.push(e.subdivide(.5,!1)):i.push(e),So(n)?i.push(n.subdivide(.5,!0)):i.push(n),So(r)?i.push(r.subdivide(.5,!0).reverse()):i.push(r),So(t)?i.push(t.subdivide(.5,!1).reverse()):i.push(t),i},qo=function(e){var t=e.styles;return e.bounds.add(t.borderLeftWidth,t.borderTopWidth,-(t.borderRightWidth+t.borderLeftWidth),-(t.borderTopWidth+t.borderBottomWidth))},zo=function(e){var t=e.styles,n=e.bounds,r=at(t.paddingLeft,n.width),i=at(t.paddingRight,n.width),o=at(t.paddingTop,n.width),s=at(t.paddingBottom,n.width);return n.add(r+t.borderLeftWidth,o+t.borderTopWidth,-(t.borderRightWidth+t.borderLeftWidth+r+i),-(t.borderTopWidth+t.borderBottomWidth+o+s))},Wo=function(e,t,n){var r=function(e,t){return 0===e?t.bounds:2===e?zo(t):qo(t)}($o(e.styles.backgroundOrigin,t),e),i=function(e,t){return e===Ft.BORDER_BOX?t.bounds:e===Ft.CONTENT_BOX?zo(t):qo(t)}($o(e.styles.backgroundClip,t),e),o=Yo($o(e.styles.backgroundSize,t),n,r),s=o[0],a=o[1],l=st($o(e.styles.backgroundPosition,t),r.width-s,r.height-a);return[Zo($o(e.styles.backgroundRepeat,t),l,o,r,i),Math.round(r.left+l[0]),Math.round(r.top+l[1]),s,a]},Xo=function(e){return ze(e)&&e.value===en.AUTO},Jo=function(e){return"number"==typeof e},Yo=function(e,t,n){var r=t[0],i=t[1],o=t[2],s=e[0],a=e[1];if(!s)return[0,0];if(tt(s)&&a&&tt(a))return[at(s,n.width),at(a,n.height)];var l=Jo(o);if(ze(s)&&(s.value===en.CONTAIN||s.value===en.COVER))return Jo(o)?n.width/n.height<o!=(s.value===en.COVER)?[n.width,n.width/o]:[n.height*o,n.height]:[n.width,n.height];var A=Jo(r),c=Jo(i),u=A||c;if(Xo(s)&&(!a||Xo(a)))return A&&c?[r,i]:l||u?u&&l?[A?r:i*o,c?i:r/o]:[A?r:n.width,c?i:n.height]:[n.width,n.height];if(l){var h=0,d=0;return tt(s)?h=at(s,n.width):tt(a)&&(d=at(a,n.height)),Xo(s)?h=d*o:a&&!Xo(a)||(d=h/o),[h,d]}var p=null,f=null;if(tt(s)?p=at(s,n.width):a&&tt(a)&&(f=at(a,n.height)),null===p||a&&!Xo(a)||(f=A&&c?p/r*i:n.height),null!==f&&Xo(s)&&(p=A&&c?f/i*r:n.width),null!==p&&null!==f)return[p,f];throw new Error("Unable to calculate background-size for element")},$o=function(e,t){var n=e[t];return void 0===n?e[0]:n},Zo=function(e,t,n,r,i){var o=t[0],s=t[1],a=n[0],l=n[1];switch(e){case Yt.REPEAT_X:return[new xo(Math.round(r.left),Math.round(r.top+s)),new xo(Math.round(r.left+r.width),Math.round(r.top+s)),new xo(Math.round(r.left+r.width),Math.round(l+r.top+s)),new xo(Math.round(r.left),Math.round(l+r.top+s))];case Yt.REPEAT_Y:return[new xo(Math.round(r.left+o),Math.round(r.top)),new xo(Math.round(r.left+o+a),Math.round(r.top)),new xo(Math.round(r.left+o+a),Math.round(r.height+r.top)),new xo(Math.round(r.left+o),Math.round(r.height+r.top))];case Yt.NO_REPEAT:return[new xo(Math.round(r.left+o),Math.round(r.top+s)),new xo(Math.round(r.left+o+a),Math.round(r.top+s)),new xo(Math.round(r.left+o+a),Math.round(r.top+s+l)),new xo(Math.round(r.left+o),Math.round(r.top+s+l))];default:return[new xo(Math.round(i.left),Math.round(i.top)),new xo(Math.round(i.left+i.width),Math.round(i.top)),new xo(Math.round(i.left+i.width),Math.round(i.height+i.top)),new xo(Math.round(i.left),Math.round(i.height+i.top))]}},es="Hidden Text",ts=function(){function e(e){this._data={},this._document=e}return e.prototype.parseMetrics=function(e,t){var n=this._document.createElement("div"),r=this._document.createElement("img"),i=this._document.createElement("span"),o=this._document.body;n.style.visibility="hidden",n.style.fontFamily=e,n.style.fontSize=t,n.style.margin="0",n.style.padding="0",o.appendChild(n),r.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",r.width=1,r.height=1,r.style.margin="0",r.style.padding="0",r.style.verticalAlign="baseline",i.style.fontFamily=e,i.style.fontSize=t,i.style.margin="0",i.style.padding="0",i.appendChild(this._document.createTextNode(es)),n.appendChild(i),n.appendChild(r);var s=r.offsetTop-i.offsetTop+2;n.removeChild(i),n.appendChild(this._document.createTextNode(es)),n.style.lineHeight="normal",r.style.verticalAlign="super";var a=r.offsetTop-n.offsetTop+2;return o.removeChild(n),{baseline:s,middle:a}},e.prototype.getMetrics=function(e,t){var n=e+" "+t;return void 0===this._data[n]&&(this._data[n]=this.parseMetrics(e,t)),this._data[n]},e}(),ns=function(e,t){this.context=e,this.options=t},rs=function(e){function n(t,n){var r=e.call(this,t,n)||this;return r._activeEffects=[],r.canvas=n.canvas?n.canvas:document.createElement("canvas"),r.ctx=r.canvas.getContext("2d"),n.canvas||(r.canvas.width=Math.floor(n.width*n.scale),r.canvas.height=Math.floor(n.height*n.scale),r.canvas.style.width=n.width+"px",r.canvas.style.height=n.height+"px"),r.fontMetrics=new ts(document),r.ctx.scale(r.options.scale,r.options.scale),r.ctx.translate(-n.x,-n.y),r.ctx.textBaseline="bottom",r._activeEffects=[],r.context.logger.debug("Canvas renderer initialized ("+n.width+"x"+n.height+") with scale "+n.scale),r}return t(n,e),n.prototype.applyEffects=function(e,t){for(var n=this;this._activeEffects.length;)this.popEffect();e.filter(function(e){return Fr(e.target,t)}).forEach(function(e){return n.applyEffect(e)})},n.prototype.applyEffect=function(e){this.ctx.save(),function(e){return 2===e.type}(e)&&(this.ctx.globalAlpha=e.opacity),function(e){return 0===e.type}(e)&&(this.ctx.translate(e.offsetX,e.offsetY),this.ctx.transform(e.matrix[0],e.matrix[1],e.matrix[2],e.matrix[3],e.matrix[4],e.matrix[5]),this.ctx.translate(-e.offsetX,-e.offsetY)),function(e){return 1===e.type}(e)&&(this.path(e.path),this.ctx.clip()),this._activeEffects.push(e)},n.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},n.prototype.renderStack=function(e){return r(this,void 0,void 0,function(){return i(this,function(t){switch(t.label){case 0:return e.element.container.styles.isVisible()?[4,this.renderStackContent(e)]:[3,2];case 1:t.sent(),t.label=2;case 2:return[2]}})})},n.prototype.renderNode=function(e){return r(this,void 0,void 0,function(){return i(this,function(t){switch(t.label){case 0:return e.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(e)]:[3,3];case 1:return t.sent(),[4,this.renderNodeContent(e)];case 2:t.sent(),t.label=3;case 3:return[2]}})})},n.prototype.renderTextWithLetterSpacing=function(e,t,n){var r=this;0===t?this.ctx.fillText(e.text,e.bounds.left,e.bounds.top+n):l(e.text).map(function(e){return A(e)}).reduce(function(t,i){return r.ctx.fillText(i,t,e.bounds.top+n),t+r.ctx.measureText(i).width},e.bounds.left)},n.prototype.createFontStyle=function(e){var t=e.fontVariant.filter(function(e){return"normal"===e||"small-caps"===e}).join(""),n=e.fontFamily.join(", "),r=je(e.fontSize)?""+e.fontSize.number+e.fontSize.unit:e.fontSize.number+"px";return[[e.fontStyle,t,e.fontWeight,r,n].join(" "),n,r]},n.prototype.renderTextNode=function(e,t){return r(this,void 0,void 0,function(){var n,r,o,s,a,l,A,c=this;return i(this,function(i){return n=this.createFontStyle(t),r=n[1],o=n[2],this.ctx.font=n[0],this.ctx.textBaseline="alphabetic",s=this.fontMetrics.getMetrics(r,o),a=s.baseline,l=s.middle,A=t.paintOrder,e.textBounds.forEach(function(e){A.forEach(function(n){switch(n){case Dr.FILL:c.ctx.fillStyle=gt(t.color),c.renderTextWithLetterSpacing(e,t.letterSpacing,a);var r=t.textShadow;r.length&&e.text.trim().length&&(r.slice(0).reverse().forEach(function(n){c.ctx.shadowColor=gt(n.color),c.ctx.shadowOffsetX=n.offsetX.number*c.options.scale,c.ctx.shadowOffsetY=n.offsetY.number*c.options.scale,c.ctx.shadowBlur=n.blur.number,c.renderTextWithLetterSpacing(e,t.letterSpacing,a)}),c.ctx.shadowColor="",c.ctx.shadowOffsetX=0,c.ctx.shadowOffsetY=0,c.ctx.shadowBlur=0),t.textDecorationLine.length&&(c.ctx.fillStyle=gt(t.textDecorationColor||t.color),t.textDecorationLine.forEach(function(t){switch(t){case 1:c.ctx.fillRect(e.bounds.left,Math.round(e.bounds.top+a),e.bounds.width,1);break;case 2:c.ctx.fillRect(e.bounds.left,Math.round(e.bounds.top),e.bounds.width,1);break;case 3:c.ctx.fillRect(e.bounds.left,Math.ceil(e.bounds.top+l),e.bounds.width,1)}}));break;case Dr.STROKE:t.webkitTextStrokeWidth&&e.text.trim().length&&(c.ctx.strokeStyle=gt(t.webkitTextStrokeColor),c.ctx.lineWidth=t.webkitTextStrokeWidth,c.ctx.lineJoin=window.chrome?"miter":"round",c.ctx.strokeText(e.text,e.bounds.left,e.bounds.top+a)),c.ctx.strokeStyle="",c.ctx.lineWidth=0,c.ctx.lineJoin="miter"}})}),[2]})})},n.prototype.renderReplacedElement=function(e,t,n){if(n&&e.intrinsicWidth>0&&e.intrinsicHeight>0){var r=zo(e),i=Lo(t);this.path(i),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(n,0,0,e.intrinsicWidth,e.intrinsicHeight,r.left,r.top,r.width,r.height),this.ctx.restore()}},n.prototype.renderNodeContent=function(e){return r(this,void 0,void 0,function(){var t,r,o,a,l,A,c,u,h,d,p,f,g,m,y,w;return i(this,function(i){switch(i.label){case 0:this.applyEffects(e.effects,4),r=e.curves,o=(t=e.container).styles,a=0,l=t.textNodes,i.label=1;case 1:return a<l.length?[4,this.renderTextNode(l[a],o)]:[3,4];case 2:i.sent(),i.label=3;case 3:return a++,[3,1];case 4:if(!(t instanceof Zr))return[3,8];i.label=5;case 5:return i.trys.push([5,7,,8]),[4,this.context.cache.match(t.src)];case 6:return g=i.sent(),this.renderReplacedElement(t,r,g),[3,8];case 7:return i.sent(),this.context.logger.error("Error loading image "+t.src),[3,8];case 8:if(t instanceof ei&&this.renderReplacedElement(t,r,t.canvas),!(t instanceof ti))return[3,12];i.label=9;case 9:return i.trys.push([9,11,,12]),[4,this.context.cache.match(t.svg)];case 10:return g=i.sent(),this.renderReplacedElement(t,r,g),[3,12];case 11:return i.sent(),this.context.logger.error("Error loading svg "+t.svg.substring(0,255)),[3,12];case 12:return t instanceof hi&&t.tree?[4,new n(this.context,{scale:this.options.scale,backgroundColor:t.backgroundColor,x:0,y:0,width:t.width,height:t.height}).render(t.tree)]:[3,14];case 13:A=i.sent(),t.width&&t.height&&this.ctx.drawImage(A,0,0,t.width,t.height,t.bounds.left,t.bounds.top,t.bounds.width,t.bounds.height),i.label=14;case 14:if(t instanceof Ai&&(c=Math.min(t.bounds.width,t.bounds.height),t.type===si?t.checked&&(this.ctx.save(),this.path([new xo(t.bounds.left+.39363*c,t.bounds.top+.79*c),new xo(t.bounds.left+.16*c,t.bounds.top+.5549*c),new xo(t.bounds.left+.27347*c,t.bounds.top+.44071*c),new xo(t.bounds.left+.39694*c,t.bounds.top+.5649*c),new xo(t.bounds.left+.72983*c,t.bounds.top+.23*c),new xo(t.bounds.left+.84*c,t.bounds.top+.34085*c),new xo(t.bounds.left+.39363*c,t.bounds.top+.79*c)]),this.ctx.fillStyle=gt(li),this.ctx.fill(),this.ctx.restore()):t.type===ai&&t.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(t.bounds.left+c/2,t.bounds.top+c/2,c/4,0,2*Math.PI,!0),this.ctx.fillStyle=gt(li),this.ctx.fill(),this.ctx.restore())),is(t)&&t.value.length){switch(u=this.createFontStyle(o),h=this.fontMetrics.getMetrics(y=u[0],u[1]).baseline,this.ctx.font=y,this.ctx.fillStyle=gt(o.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=ss(t.styles.textAlign),w=zo(t),d=0,t.styles.textAlign){case er.CENTER:d+=w.width/2;break;case er.RIGHT:d+=w.width}p=w.add(d,0,0,-w.height/2+1),this.ctx.save(),this.path([new xo(w.left,w.top),new xo(w.left+w.width,w.top),new xo(w.left+w.width,w.top+w.height),new xo(w.left,w.top+w.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new qr(t.value,p),o.letterSpacing,h),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!Fr(t.styles.display,2048))return[3,20];if(null===t.styles.listStyleImage)return[3,19];if((f=t.styles.listStyleImage).type!==Vt.URL)return[3,18];g=void 0,m=f.url,i.label=15;case 15:return i.trys.push([15,17,,18]),[4,this.context.cache.match(m)];case 16:return g=i.sent(),this.ctx.drawImage(g,t.bounds.left-(g.width+10),t.bounds.top),[3,18];case 17:return i.sent(),this.context.logger.error("Error loading list-style-image "+m),[3,18];case 18:return[3,20];case 19:e.listValue&&t.styles.listStyleType!==Mn.NONE&&(y=this.createFontStyle(o)[0],this.ctx.font=y,this.ctx.fillStyle=gt(o.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",w=new s(t.bounds.left,t.bounds.top+at(t.styles.paddingTop,t.bounds.width),t.bounds.width,On(o.lineHeight,o.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new qr(e.listValue,w),o.letterSpacing,On(o.lineHeight,o.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),i.label=20;case 20:return[2]}})})},n.prototype.renderStackContent=function(e){return r(this,void 0,void 0,function(){var t,n,r,o,s,a,l,A,c,u,h,d,p,f;return i(this,function(i){switch(i.label){case 0:return[4,this.renderNodeBackgroundAndBorders(e.element)];case 1:i.sent(),t=0,n=e.negativeZIndex,i.label=2;case 2:return t<n.length?[4,this.renderStack(n[t])]:[3,5];case 3:i.sent(),i.label=4;case 4:return t++,[3,2];case 5:return[4,this.renderNodeContent(e.element)];case 6:i.sent(),r=0,o=e.nonInlineLevel,i.label=7;case 7:return r<o.length?[4,this.renderNode(o[r])]:[3,10];case 8:i.sent(),i.label=9;case 9:return r++,[3,7];case 10:s=0,a=e.nonPositionedFloats,i.label=11;case 11:return s<a.length?[4,this.renderStack(a[s])]:[3,14];case 12:i.sent(),i.label=13;case 13:return s++,[3,11];case 14:l=0,A=e.nonPositionedInlineLevel,i.label=15;case 15:return l<A.length?[4,this.renderStack(A[l])]:[3,18];case 16:i.sent(),i.label=17;case 17:return l++,[3,15];case 18:c=0,u=e.inlineLevel,i.label=19;case 19:return c<u.length?[4,this.renderNode(u[c])]:[3,22];case 20:i.sent(),i.label=21;case 21:return c++,[3,19];case 22:h=0,d=e.zeroOrAutoZIndexOrTransformedOrOpacity,i.label=23;case 23:return h<d.length?[4,this.renderStack(d[h])]:[3,26];case 24:i.sent(),i.label=25;case 25:return h++,[3,23];case 26:p=0,f=e.positiveZIndex,i.label=27;case 27:return p<f.length?[4,this.renderStack(f[p])]:[3,30];case 28:i.sent(),i.label=29;case 29:return p++,[3,27];case 30:return[2]}})})},n.prototype.mask=function(e){this.ctx.beginPath(),this.ctx.moveTo(0,0),this.ctx.lineTo(this.canvas.width,0),this.ctx.lineTo(this.canvas.width,this.canvas.height),this.ctx.lineTo(0,this.canvas.height),this.ctx.lineTo(0,0),this.formatPath(e.slice(0).reverse()),this.ctx.closePath()},n.prototype.path=function(e){this.ctx.beginPath(),this.formatPath(e),this.ctx.closePath()},n.prototype.formatPath=function(e){var t=this;e.forEach(function(e,n){var r=So(e)?e.start:e;0===n?t.ctx.moveTo(r.x,r.y):t.ctx.lineTo(r.x,r.y),So(e)&&t.ctx.bezierCurveTo(e.startControl.x,e.startControl.y,e.endControl.x,e.endControl.y,e.end.x,e.end.y)})},n.prototype.renderRepeat=function(e,t,n,r){this.path(e),this.ctx.fillStyle=t,this.ctx.translate(n,r),this.ctx.fill(),this.ctx.translate(-n,-r)},n.prototype.resizeImage=function(e,t,n){var r;if(e.width===t&&e.height===n)return e;var i=(null!==(r=this.canvas.ownerDocument)&&void 0!==r?r:document).createElement("canvas");return i.width=Math.max(1,t),i.height=Math.max(1,n),i.getContext("2d").drawImage(e,0,0,e.width,e.height,0,0,t,n),i},n.prototype.renderBackgroundImage=function(e){return r(this,void 0,void 0,function(){var t,n,r,o,s;return i(this,function(a){switch(a.label){case 0:t=e.styles.backgroundImage.length-1,n=function(n){var o,s,a,l,A,c,u,h,d,p,f,g,m,y,w,v,b,C,B,E,_,F,x,T,Q,S,k,U,D,O,L;return i(this,function(i){switch(i.label){case 0:if(n.type!==Vt.URL)return[3,5];o=void 0,s=n.url,i.label=1;case 1:return i.trys.push([1,3,,4]),[4,r.context.cache.match(s)];case 2:return o=i.sent(),[3,4];case 3:return i.sent(),r.context.logger.error("Error loading background-image "+s),[3,4];case 4:return o&&(a=Wo(e,t,[o.width,o.height,o.width/o.height]),v=a[0],F=a[1],x=a[2],y=r.ctx.createPattern(r.resizeImage(o,B=a[3],E=a[4]),"repeat"),r.renderRepeat(v,y,F,x)),[3,6];case 5:n.type===Vt.LINEAR_GRADIENT?(l=Wo(e,t,[null,null,null]),v=l[0],F=l[1],x=l[2],A=function(e,t,n){var r="number"==typeof e?e:function(e,t,n){var r=t/2,i=n/2,o=at(e[0],t)-r,s=i-at(e[1],n);return(Math.atan2(s,o)+2*Math.PI)%(2*Math.PI)}(e,t,n),i=Math.abs(t*Math.sin(r))+Math.abs(n*Math.cos(r)),o=t/2,s=n/2,a=i/2,l=Math.sin(r-Math.PI/2)*a,A=Math.cos(r-Math.PI/2)*a;return[i,o-A,o+A,s-l,s+l]}(n.angle,B=l[3],E=l[4]),c=A[0],u=A[1],h=A[2],d=A[3],p=A[4],(f=document.createElement("canvas")).width=B,f.height=E,g=f.getContext("2d"),m=g.createLinearGradient(u,d,h,p),St(n.stops,c).forEach(function(e){return m.addColorStop(e.stop,gt(e.color))}),g.fillStyle=m,g.fillRect(0,0,B,E),B>0&&E>0&&(y=r.ctx.createPattern(f,"repeat"),r.renderRepeat(v,y,F,x))):n.type===Vt.RADIAL_GRADIENT&&(w=Wo(e,t,[null,null,null]),v=w[0],b=w[1],C=w[2],E=w[4],F=at((_=0===n.position.length?[it]:n.position)[0],B=w[3]),x=at(_[_.length-1],E),T=function(e,t,n,r,i){var o=0,s=0;switch(e.size){case jt.CLOSEST_SIDE:e.shape===Gt.CIRCLE?o=s=Math.min(Math.abs(t),Math.abs(t-r),Math.abs(n),Math.abs(n-i)):e.shape===Gt.ELLIPSE&&(o=Math.min(Math.abs(t),Math.abs(t-r)),s=Math.min(Math.abs(n),Math.abs(n-i)));break;case jt.CLOSEST_CORNER:if(e.shape===Gt.CIRCLE)o=s=Math.min(kt(t,n),kt(t,n-i),kt(t-r,n),kt(t-r,n-i));else if(e.shape===Gt.ELLIPSE){var a=Math.min(Math.abs(n),Math.abs(n-i))/Math.min(Math.abs(t),Math.abs(t-r)),l=Ut(r,i,t,n,!0);s=a*(o=kt(l[0]-t,(l[1]-n)/a))}break;case jt.FARTHEST_SIDE:e.shape===Gt.CIRCLE?o=s=Math.max(Math.abs(t),Math.abs(t-r),Math.abs(n),Math.abs(n-i)):e.shape===Gt.ELLIPSE&&(o=Math.max(Math.abs(t),Math.abs(t-r)),s=Math.max(Math.abs(n),Math.abs(n-i)));break;case jt.FARTHEST_CORNER:if(e.shape===Gt.CIRCLE)o=s=Math.max(kt(t,n),kt(t,n-i),kt(t-r,n),kt(t-r,n-i));else if(e.shape===Gt.ELLIPSE){a=Math.max(Math.abs(n),Math.abs(n-i))/Math.max(Math.abs(t),Math.abs(t-r));var A=Ut(r,i,t,n,!1);s=a*(o=kt(A[0]-t,(A[1]-n)/a))}}return Array.isArray(e.size)&&(o=at(e.size[0],r),s=2===e.size.length?at(e.size[1],i):o),[o,s]}(n,F,x,B,E),S=T[1],(Q=T[0])>0&&Q>0&&(k=r.ctx.createRadialGradient(b+F,C+x,0,b+F,C+x,Q),St(n.stops,2*Q).forEach(function(e){return k.addColorStop(e.stop,gt(e.color))}),r.path(v),r.ctx.fillStyle=k,Q!==S?(U=e.bounds.left+.5*e.bounds.width,D=e.bounds.top+.5*e.bounds.height,L=1/(O=S/Q),r.ctx.save(),r.ctx.translate(U,D),r.ctx.transform(1,0,0,O,0,0),r.ctx.translate(-U,-D),r.ctx.fillRect(b,L*(C-D)+D,B,E*L),r.ctx.restore()):r.ctx.fill())),i.label=6;case 6:return t--,[2]}})},r=this,o=0,s=e.styles.backgroundImage.slice(0).reverse(),a.label=1;case 1:return o<s.length?[5,n(s[o])]:[3,4];case 2:a.sent(),a.label=3;case 3:return o++,[3,1];case 4:return[2]}})})},n.prototype.renderSolidBorder=function(e,t,n){return r(this,void 0,void 0,function(){return i(this,function(r){return this.path(Vo(n,t)),this.ctx.fillStyle=gt(e),this.ctx.fill(),[2]})})},n.prototype.renderDoubleBorder=function(e,t,n,o){return r(this,void 0,void 0,function(){var r,s;return i(this,function(i){switch(i.label){case 0:return t<3?[4,this.renderSolidBorder(e,n,o)]:[3,2];case 1:return i.sent(),[2];case 2:return r=function(e,t){switch(t){case 0:return jo(e.topLeftBorderBox,e.topLeftBorderDoubleOuterBox,e.topRightBorderBox,e.topRightBorderDoubleOuterBox);case 1:return jo(e.topRightBorderBox,e.topRightBorderDoubleOuterBox,e.bottomRightBorderBox,e.bottomRightBorderDoubleOuterBox);case 2:return jo(e.bottomRightBorderBox,e.bottomRightBorderDoubleOuterBox,e.bottomLeftBorderBox,e.bottomLeftBorderDoubleOuterBox);case 3:default:return jo(e.bottomLeftBorderBox,e.bottomLeftBorderDoubleOuterBox,e.topLeftBorderBox,e.topLeftBorderDoubleOuterBox)}}(o,n),this.path(r),this.ctx.fillStyle=gt(e),this.ctx.fill(),s=function(e,t){switch(t){case 0:return jo(e.topLeftBorderDoubleInnerBox,e.topLeftPaddingBox,e.topRightBorderDoubleInnerBox,e.topRightPaddingBox);case 1:return jo(e.topRightBorderDoubleInnerBox,e.topRightPaddingBox,e.bottomRightBorderDoubleInnerBox,e.bottomRightPaddingBox);case 2:return jo(e.bottomRightBorderDoubleInnerBox,e.bottomRightPaddingBox,e.bottomLeftBorderDoubleInnerBox,e.bottomLeftPaddingBox);case 3:default:return jo(e.bottomLeftBorderDoubleInnerBox,e.bottomLeftPaddingBox,e.topLeftBorderDoubleInnerBox,e.topLeftPaddingBox)}}(o,n),this.path(s),this.ctx.fill(),[2]}})})},n.prototype.renderNodeBackgroundAndBorders=function(e){return r(this,void 0,void 0,function(){var t,n,r,o,s,a,l,A,c=this;return i(this,function(i){switch(i.label){case 0:return this.applyEffects(e.effects,2),n=!ft((t=e.container.styles).backgroundColor)||t.backgroundImage.length,r=[{style:t.borderTopStyle,color:t.borderTopColor,width:t.borderTopWidth},{style:t.borderRightStyle,color:t.borderRightColor,width:t.borderRightWidth},{style:t.borderBottomStyle,color:t.borderBottomColor,width:t.borderBottomWidth},{style:t.borderLeftStyle,color:t.borderLeftColor,width:t.borderLeftWidth}],o=os($o(t.backgroundClip,0),e.curves),n||t.boxShadow.length?(this.ctx.save(),this.path(o),this.ctx.clip(),ft(t.backgroundColor)||(this.ctx.fillStyle=gt(t.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(e.container)]):[3,2];case 1:i.sent(),this.ctx.restore(),t.boxShadow.slice(0).reverse().forEach(function(t){c.ctx.save();var n,r,i,o,s=Oo(e.curves),a=t.inset?0:1e4,l=(n=(t.inset?1:-1)*t.spread.number-a,r=(t.inset?1:-1)*t.spread.number,i=t.spread.number*(t.inset?-2:2),o=t.spread.number*(t.inset?-2:2),s.map(function(e,t){switch(t){case 0:return e.add(n,r);case 1:return e.add(n+i,r);case 2:return e.add(n+i,r+o);case 3:return e.add(n,r+o)}return e}));t.inset?(c.path(s),c.ctx.clip(),c.mask(l)):(c.mask(s),c.ctx.clip(),c.path(l)),c.ctx.shadowOffsetX=t.offsetX.number+a,c.ctx.shadowOffsetY=t.offsetY.number,c.ctx.shadowColor=gt(t.color),c.ctx.shadowBlur=t.blur.number,c.ctx.fillStyle=t.inset?gt(t.color):"rgba(0,0,0,1)",c.ctx.fill(),c.ctx.restore()}),i.label=2;case 2:s=0,a=0,l=r,i.label=3;case 3:return a<l.length?(A=l[a]).style!==pn.NONE&&!ft(A.color)&&A.width>0?A.style!==pn.DASHED?[3,5]:[4,this.renderDashedDottedBorder(A.color,A.width,s,e.curves,pn.DASHED)]:[3,11]:[3,13];case 4:return i.sent(),[3,11];case 5:return A.style!==pn.DOTTED?[3,7]:[4,this.renderDashedDottedBorder(A.color,A.width,s,e.curves,pn.DOTTED)];case 6:return i.sent(),[3,11];case 7:return A.style!==pn.DOUBLE?[3,9]:[4,this.renderDoubleBorder(A.color,A.width,s,e.curves)];case 8:return i.sent(),[3,11];case 9:return[4,this.renderSolidBorder(A.color,s,e.curves)];case 10:i.sent(),i.label=11;case 11:s++,i.label=12;case 12:return a++,[3,3];case 13:return[2]}})})},n.prototype.renderDashedDottedBorder=function(e,t,n,o,s){return r(this,void 0,void 0,function(){var r,a,l,A,c,u,h,d,p,f,g,m,y,w,v,b;return i(this,function(i){return this.ctx.save(),r=function(e,t){switch(t){case 0:return Go(e.topLeftBorderStroke,e.topRightBorderStroke);case 1:return Go(e.topRightBorderStroke,e.bottomRightBorderStroke);case 2:return Go(e.bottomRightBorderStroke,e.bottomLeftBorderStroke);case 3:default:return Go(e.bottomLeftBorderStroke,e.topLeftBorderStroke)}}(o,n),a=Vo(o,n),s===pn.DASHED&&(this.path(a),this.ctx.clip()),So(a[0])?(l=a[0].start.x,A=a[0].start.y):(l=a[0].x,A=a[0].y),So(a[1])?(c=a[1].end.x,u=a[1].end.y):(c=a[1].x,u=a[1].y),h=0===n||2===n?Math.abs(l-c):Math.abs(A-u),this.ctx.beginPath(),this.formatPath(s===pn.DOTTED?r:a.slice(0,2)),d=t<3?3*t:2*t,p=t<3?2*t:t,s===pn.DOTTED&&(d=t,p=t),f=!0,h<=2*d?f=!1:h<=2*d+p?(d*=g=h/(2*d+p),p*=g):(m=Math.floor((h+p)/(d+p)),y=(h-m*d)/(m-1),p=(w=(h-(m+1)*d)/m)<=0||Math.abs(p-y)<Math.abs(p-w)?y:w),f&&this.ctx.setLineDash(s===pn.DOTTED?[0,d+p]:[d,p]),s===pn.DOTTED?(this.ctx.lineCap="round",this.ctx.lineWidth=t):this.ctx.lineWidth=2*t+1.1,this.ctx.strokeStyle=gt(e),this.ctx.stroke(),this.ctx.setLineDash([]),s===pn.DASHED&&(So(a[0])&&(v=a[3],b=a[0],this.ctx.beginPath(),this.formatPath([new xo(v.end.x,v.end.y),new xo(b.start.x,b.start.y)]),this.ctx.stroke()),So(a[1])&&(v=a[1],b=a[2],this.ctx.beginPath(),this.formatPath([new xo(v.end.x,v.end.y),new xo(b.start.x,b.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]})})},n.prototype.render=function(e){return r(this,void 0,void 0,function(){return i(this,function(t){switch(t.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=gt(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),n=new No(e,[]),r=new Ro(n),Po(n,r,r,i=[]),Ko(n.container,i),[4,this.renderStack(r)];case 1:return t.sent(),this.applyEffects([],2),[2,this.canvas]}var n,r,i})})},n}(ns),is=function(e){return e instanceof ui||e instanceof ci||e instanceof Ai&&e.type!==ai&&e.type!==si},os=function(e,t){switch(e){case Ft.BORDER_BOX:return Oo(t);case Ft.CONTENT_BOX:return function(e){return[e.topLeftContentBox,e.topRightContentBox,e.bottomRightContentBox,e.bottomLeftContentBox]}(t);case Ft.PADDING_BOX:default:return Lo(t)}},ss=function(e){switch(e){case er.CENTER:return"center";case er.RIGHT:return"right";case er.LEFT:default:return"left"}},as=function(e){function n(t,n){var r=e.call(this,t,n)||this;return r.canvas=n.canvas?n.canvas:document.createElement("canvas"),r.ctx=r.canvas.getContext("2d"),r.options=n,r.canvas.width=Math.floor(n.width*n.scale),r.canvas.height=Math.floor(n.height*n.scale),r.canvas.style.width=n.width+"px",r.canvas.style.height=n.height+"px",r.ctx.scale(r.options.scale,r.options.scale),r.ctx.translate(-n.x,-n.y),r.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized ("+n.width+"x"+n.height+" at "+n.x+","+n.y+") with scale "+n.scale),r}return t(n,e),n.prototype.render=function(e){return r(this,void 0,void 0,function(){var t,n;return i(this,function(r){switch(r.label){case 0:return t=Vr(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,e),[4,ls(t)];case 1:return n=r.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=gt(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(n,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}})})},n}(ns),ls=function(e){return new Promise(function(t,n){var r=new Image;r.onload=function(){t(r)},r.onerror=n,r.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent((new XMLSerializer).serializeToString(e))})},As=function(){function e(e){var t=e.enabled;this.id=e.id,this.enabled=t,this.start=Date.now()}return e.prototype.debug=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.enabled&&("undefined"!=typeof window&&window.console&&"function"==typeof console.debug?console.debug.apply(console,o([this.id,this.getTime()+"ms"],e)):this.info.apply(this,e))},e.prototype.getTime=function(){return Date.now()-this.start},e.prototype.info=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.enabled&&"undefined"!=typeof window&&window.console&&"function"==typeof console.info&&console.info.apply(console,o([this.id,this.getTime()+"ms"],e))},e.prototype.warn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.enabled&&("undefined"!=typeof window&&window.console&&"function"==typeof console.warn?console.warn.apply(console,o([this.id,this.getTime()+"ms"],e)):this.info.apply(this,e))},e.prototype.error=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.enabled&&("undefined"!=typeof window&&window.console&&"function"==typeof console.error?console.error.apply(console,o([this.id,this.getTime()+"ms"],e)):this.info.apply(this,e))},e.instances={},e}(),cs=function(){function e(t,n){var r;this.windowBounds=n,this.instanceName="#"+e.instanceCount++,this.logger=new As({id:this.instanceName,enabled:t.logging}),this.cache=null!==(r=t.cache)&&void 0!==r?r:new go(this,t)}return e.instanceCount=1,e}();"undefined"!=typeof window&&fo.setContext(window);var us=function(e,t,n){var r=t.ownerDocument,i=r.documentElement?Bt(e,getComputedStyle(r.documentElement).backgroundColor):Et.TRANSPARENT,o=r.body?Bt(e,getComputedStyle(r.body).backgroundColor):Et.TRANSPARENT,s="string"==typeof n?Bt(e,n):null===n?Et.TRANSPARENT:4294967295;return t===r.documentElement?ft(i)?ft(o)?s:o:i:s};return function(e,t){return void 0===t&&(t={}),function(e,t){return r(void 0,void 0,void 0,function(){var r,o,l,A,c,u,h,d,p,f,g,m,y,w,v,b,C,B,E,_,F,x,T,Q,S,k,U,D,O,L,I,H,M,R,N,P,K;return i(this,function(i){switch(i.label){case 0:if(!e||"object"!=typeof e)return[2,Promise.reject("Invalid element provided as first argument")];if(!(r=e.ownerDocument))throw new Error("Element is not attached to a Document");if(!(o=r.defaultView))throw new Error("Document is not attached to a Window");return l={allowTaint:null!==(x=t.allowTaint)&&void 0!==x&&x,imageTimeout:null!==(T=t.imageTimeout)&&void 0!==T?T:15e3,proxy:t.proxy,useCORS:null!==(Q=t.useCORS)&&void 0!==Q&&Q},A=n({logging:null===(S=t.logging)||void 0===S||S,cache:t.cache},l),c={windowWidth:null!==(k=t.windowWidth)&&void 0!==k?k:o.innerWidth,windowHeight:null!==(U=t.windowHeight)&&void 0!==U?U:o.innerHeight,scrollX:null!==(D=t.scrollX)&&void 0!==D?D:o.pageXOffset,scrollY:null!==(O=t.scrollY)&&void 0!==O?O:o.pageYOffset},u=new s(c.scrollX,c.scrollY,c.windowWidth,c.windowHeight),h=new cs(A,u),d=null!==(L=t.foreignObjectRendering)&&void 0!==L&&L,p={onclone:t.onclone,ignoreElements:t.ignoreElements,inlineImages:d,copyStyles:d},h.logger.debug("Starting document clone with size "+u.width+"x"+u.height+" scrolled to "+-u.left+","+-u.top),f=new $i(h,e,p),(g=f.clonedReferenceElement)?[4,f.toIFrame(r,u)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return m=i.sent(),y=xi(g)||"HTML"===g.tagName?function(e){var t=e.body,n=e.documentElement;if(!t||!n)throw new Error("Unable to get document size");var r=Math.max(Math.max(t.scrollWidth,n.scrollWidth),Math.max(t.offsetWidth,n.offsetWidth),Math.max(t.clientWidth,n.clientWidth)),i=Math.max(Math.max(t.scrollHeight,n.scrollHeight),Math.max(t.offsetHeight,n.offsetHeight),Math.max(t.clientHeight,n.clientHeight));return new s(0,0,r,i)}(g.ownerDocument):a(h,g),w=y.width,v=y.height,b=y.left,C=y.top,B=us(h,g,t.backgroundColor),E={canvas:t.canvas,backgroundColor:B,scale:null!==(H=null!==(I=t.scale)&&void 0!==I?I:o.devicePixelRatio)&&void 0!==H?H:1,x:(null!==(M=t.x)&&void 0!==M?M:0)+b,y:(null!==(R=t.y)&&void 0!==R?R:0)+C,width:null!==(N=t.width)&&void 0!==N?N:Math.ceil(w),height:null!==(P=t.height)&&void 0!==P?P:Math.ceil(v)},d?(h.logger.debug("Document cloned, using foreign object rendering"),[4,new as(h,E).render(g)]):[3,3];case 2:return _=i.sent(),[3,5];case 3:return h.logger.debug("Document cloned, element located at "+b+","+C+" with size "+w+"x"+v+" using computed rendering"),h.logger.debug("Starting DOM parsing"),F=gi(h,g),B===F.styles.backgroundColor&&(F.styles.backgroundColor=Et.TRANSPARENT),h.logger.debug("Starting renderer for element at "+E.x+","+E.y+" with size "+E.width+"x"+E.height),[4,new rs(h,E).render(F)];case 4:_=i.sent(),i.label=5;case 5:return(null===(K=t.removeContainer)||void 0===K||K)&&($i.destroy(m)||h.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),h.logger.debug("Finished rendering"),[2,_]}})})}(e,t)}}()},704:function(e,t){var n;!function(t,n){"use strict";"object"==typeof e.exports?e.exports=t.document?n(t,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return n(e)}:n(t)}("undefined"!=typeof window?window:this,function(r,i){"use strict";var o=[],s=Object.getPrototypeOf,a=o.slice,l=o.flat?function(e){return o.flat.call(e)}:function(e){return o.concat.apply([],e)},A=o.push,c=o.indexOf,u={},h=u.toString,d=u.hasOwnProperty,p=d.toString,f=p.call(Object),g={},m=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType&&"function"!=typeof e.item},y=function(e){return null!=e&&e===e.window},w=r.document,v={type:!0,src:!0,nonce:!0,noModule:!0};function b(e,t,n){var r,i,o=(n=n||w).createElement("script");if(o.text=e,t)for(r in v)(i=t[r]||t.getAttribute&&t.getAttribute(r))&&o.setAttribute(r,i);n.head.appendChild(o).parentNode.removeChild(o)}function C(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?u[h.call(e)]||"object":typeof e}var B="3.6.0",E=function(e,t){return new E.fn.init(e,t)};function _(e){var t=!!e&&"length"in e&&e.length,n=C(e);return!m(e)&&!y(e)&&("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e)}E.fn=E.prototype={jquery:B,constructor:E,length:0,toArray:function(){return a.call(this)},get:function(e){return null==e?a.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=E.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return E.each(this,e)},map:function(e){return this.pushStack(E.map(this,function(t,n){return e.call(t,n,t)}))},slice:function(){return this.pushStack(a.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(E.grep(this,function(e,t){return(t+1)%2}))},odd:function(){return this.pushStack(E.grep(this,function(e,t){return t%2}))},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:A,sort:o.sort,splice:o.splice},E.extend=E.fn.extend=function(){var e,t,n,r,i,o,s=arguments[0]||{},a=1,l=arguments.length,A=!1;for("boolean"==typeof s&&(A=s,s=arguments[a]||{},a++),"object"==typeof s||m(s)||(s={}),a===l&&(s=this,a--);a<l;a++)if(null!=(e=arguments[a]))for(t in e)r=e[t],"__proto__"!==t&&s!==r&&(A&&r&&(E.isPlainObject(r)||(i=Array.isArray(r)))?(n=s[t],o=i&&!Array.isArray(n)?[]:i||E.isPlainObject(n)?n:{},i=!1,s[t]=E.extend(A,o,r)):void 0!==r&&(s[t]=r));return s},E.extend({expando:"jQuery"+(B+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==h.call(e)||(t=s(e))&&("function"!=typeof(n=d.call(t,"constructor")&&t.constructor)||p.call(n)!==f))},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t,n){b(e,{nonce:t&&t.nonce},n)},each:function(e,t){var n,r=0;if(_(e))for(n=e.length;r<n&&!1!==t.call(e[r],r,e[r]);r++);else for(r in e)if(!1===t.call(e[r],r,e[r]))break;return e},makeArray:function(e,t){var n=t||[];return null!=e&&(_(Object(e))?E.merge(n,"string"==typeof e?[e]:e):A.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:c.call(t,e,n)},merge:function(e,t){for(var n=+t.length,r=0,i=e.length;r<n;r++)e[i++]=t[r];return e.length=i,e},grep:function(e,t,n){for(var r=[],i=0,o=e.length,s=!n;i<o;i++)!t(e[i],i)!==s&&r.push(e[i]);return r},map:function(e,t,n){var r,i,o=0,s=[];if(_(e))for(r=e.length;o<r;o++)null!=(i=t(e[o],o,n))&&s.push(i);else for(o in e)null!=(i=t(e[o],o,n))&&s.push(i);return l(s)},guid:1,support:g}),"function"==typeof Symbol&&(E.fn[Symbol.iterator]=o[Symbol.iterator]),E.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){u["[object "+t+"]"]=t.toLowerCase()});var F=function(e){var t,n,r,i,o,s,a,l,A,c,u,h,d,p,f,g,m,y,w,v="sizzle"+1*new Date,b=e.document,C=0,B=0,E=le(),_=le(),F=le(),x=le(),T=function(e,t){return e===t&&(u=!0),0},Q={}.hasOwnProperty,S=[],k=S.pop,U=S.push,D=S.push,O=S.slice,L=function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},I="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",H="[\\x20\\t\\r\\n\\f]",M="(?:\\\\[\\da-fA-F]{1,6}[\\x20\\t\\r\\n\\f]?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",R="\\[[\\x20\\t\\r\\n\\f]*("+M+")(?:"+H+"*([*^$|!~]?=)"+H+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+M+"))|)"+H+"*\\]",N=":("+M+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+R+")*)|.*)\\)|)",P=new RegExp(H+"+","g"),K=new RegExp("^[\\x20\\t\\r\\n\\f]+|((?:^|[^\\\\])(?:\\\\.)*)[\\x20\\t\\r\\n\\f]+$","g"),V=new RegExp("^[\\x20\\t\\r\\n\\f]*,[\\x20\\t\\r\\n\\f]*"),G=new RegExp("^[\\x20\\t\\r\\n\\f]*([>+~]|[\\x20\\t\\r\\n\\f])[\\x20\\t\\r\\n\\f]*"),j=new RegExp(H+"|>"),q=new RegExp(N),z=new RegExp("^"+M+"$"),W={ID:new RegExp("^#("+M+")"),CLASS:new RegExp("^\\.("+M+")"),TAG:new RegExp("^("+M+"|[*])"),ATTR:new RegExp("^"+R),PSEUDO:new RegExp("^"+N),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\([\\x20\\t\\r\\n\\f]*(even|odd|(([+-]|)(\\d*)n|)[\\x20\\t\\r\\n\\f]*(?:([+-]|)[\\x20\\t\\r\\n\\f]*(\\d+)|))[\\x20\\t\\r\\n\\f]*\\)|)","i"),bool:new RegExp("^(?:"+I+")$","i"),needsContext:new RegExp("^[\\x20\\t\\r\\n\\f]*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\([\\x20\\t\\r\\n\\f]*((?:-\\d)?\\d*)[\\x20\\t\\r\\n\\f]*\\)|)(?=[^-]|$)","i")},X=/HTML$/i,J=/^(?:input|select|textarea|button)$/i,Y=/^h\d$/i,$=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=new RegExp("\\\\[\\da-fA-F]{1,6}[\\x20\\t\\r\\n\\f]?|\\\\([^\\r\\n\\f])","g"),ne=function(e,t){var n="0x"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},re=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ie=function(e,t){return t?"\0"===e?"\ufffd":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},oe=function(){h()},se=ve(function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{D.apply(S=O.call(b.childNodes),b.childNodes)}catch(_e){D={apply:S.length?function(e,t){U.apply(e,O.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}function ae(e,t,r,i){var o,a,A,c,u,p,m,y=t&&t.ownerDocument,b=t?t.nodeType:9;if(r=r||[],"string"!=typeof e||!e||1!==b&&9!==b&&11!==b)return r;if(!i&&(h(t),t=t||d,f)){if(11!==b&&(u=Z.exec(e)))if(o=u[1]){if(9===b){if(!(A=t.getElementById(o)))return r;if(A.id===o)return r.push(A),r}else if(y&&(A=y.getElementById(o))&&w(t,A)&&A.id===o)return r.push(A),r}else{if(u[2])return D.apply(r,t.getElementsByTagName(e)),r;if((o=u[3])&&n.getElementsByClassName&&t.getElementsByClassName)return D.apply(r,t.getElementsByClassName(o)),r}if(n.qsa&&!x[e+" "]&&(!g||!g.test(e))&&(1!==b||"object"!==t.nodeName.toLowerCase())){if(m=e,y=t,1===b&&(j.test(e)||G.test(e))){for((y=ee.test(e)&&me(t.parentNode)||t)===t&&n.scope||((c=t.getAttribute("id"))?c=c.replace(re,ie):t.setAttribute("id",c=v)),a=(p=s(e)).length;a--;)p[a]=(c?"#"+c:":scope")+" "+we(p[a]);m=p.join(",")}try{return D.apply(r,y.querySelectorAll(m)),r}catch(C){x(e,!0)}finally{c===v&&t.removeAttribute("id")}}}return l(e.replace(K,"$1"),t,r,i)}function le(){var e=[];return function t(n,i){return e.push(n+" ")>r.cacheLength&&delete t[e.shift()],t[n+" "]=i}}function Ae(e){return e[v]=!0,e}function ce(e){var t=d.createElement("fieldset");try{return!!e(t)}catch(_e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function ue(e,t){for(var n=e.split("|"),i=n.length;i--;)r.attrHandle[n[i]]=t}function he(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function de(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function pe(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function fe(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&se(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function ge(e){return Ae(function(t){return t=+t,Ae(function(n,r){for(var i,o=e([],n.length,t),s=o.length;s--;)n[i=o[s]]&&(n[i]=!(r[i]=n[i]))})})}function me(e){return e&&void 0!==e.getElementsByTagName&&e}for(t in n=ae.support={},o=ae.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return!X.test(e&&e.namespaceURI||t&&t.nodeName||"HTML")},h=ae.setDocument=function(e){var t,i,s=e?e.ownerDocument||e:b;return s!=d&&9===s.nodeType&&s.documentElement?(p=(d=s).documentElement,f=!o(d),b!=d&&(i=d.defaultView)&&i.top!==i&&(i.addEventListener?i.addEventListener("unload",oe,!1):i.attachEvent&&i.attachEvent("onunload",oe)),n.scope=ce(function(e){return p.appendChild(e).appendChild(d.createElement("div")),void 0!==e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length}),n.attributes=ce(function(e){return e.className="i",!e.getAttribute("className")}),n.getElementsByTagName=ce(function(e){return e.appendChild(d.createComment("")),!e.getElementsByTagName("*").length}),n.getElementsByClassName=$.test(d.getElementsByClassName),n.getById=ce(function(e){return p.appendChild(e).id=v,!d.getElementsByName||!d.getElementsByName(v).length}),n.getById?(r.filter.ID=function(e){var t=e.replace(te,ne);return function(e){return e.getAttribute("id")===t}},r.find.ID=function(e,t){if(void 0!==t.getElementById&&f){var n=t.getElementById(e);return n?[n]:[]}}):(r.filter.ID=function(e){var t=e.replace(te,ne);return function(e){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},r.find.ID=function(e,t){if(void 0!==t.getElementById&&f){var n,r,i,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];for(i=t.getElementsByName(e),r=0;o=i[r++];)if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),r.find.TAG=n.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):n.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"===e){for(;n=o[i++];)1===n.nodeType&&r.push(n);return r}return o},r.find.CLASS=n.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&f)return t.getElementsByClassName(e)},m=[],g=[],(n.qsa=$.test(d.querySelectorAll))&&(ce(function(e){var t;p.appendChild(e).innerHTML="<a id='"+v+"'></a><select id='"+v+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&g.push("[*^$]=[\\x20\\t\\r\\n\\f]*(?:''|\"\")"),e.querySelectorAll("[selected]").length||g.push("\\[[\\x20\\t\\r\\n\\f]*(?:value|"+I+")"),e.querySelectorAll("[id~="+v+"-]").length||g.push("~="),(t=d.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||g.push("\\[[\\x20\\t\\r\\n\\f]*name[\\x20\\t\\r\\n\\f]*=[\\x20\\t\\r\\n\\f]*(?:''|\"\")"),e.querySelectorAll(":checked").length||g.push(":checked"),e.querySelectorAll("a#"+v+"+*").length||g.push(".#.+[+~]"),e.querySelectorAll("\\\f"),g.push("[\\r\\n\\f]")}),ce(function(e){e.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var t=d.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&g.push("name[\\x20\\t\\r\\n\\f]*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&g.push(":enabled",":disabled"),p.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&g.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),g.push(",.*:")})),(n.matchesSelector=$.test(y=p.matches||p.webkitMatchesSelector||p.mozMatchesSelector||p.oMatchesSelector||p.msMatchesSelector))&&ce(function(e){n.disconnectedMatch=y.call(e,"*"),y.call(e,"[s!='']:x"),m.push("!=",N)}),g=g.length&&new RegExp(g.join("|")),m=m.length&&new RegExp(m.join("|")),t=$.test(p.compareDocumentPosition),w=t||$.test(p.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},T=t?function(e,t){if(e===t)return u=!0,0;var r=!e.compareDocumentPosition-!t.compareDocumentPosition;return r||(1&(r=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!n.sortDetached&&t.compareDocumentPosition(e)===r?e==d||e.ownerDocument==b&&w(b,e)?-1:t==d||t.ownerDocument==b&&w(b,t)?1:c?L(c,e)-L(c,t):0:4&r?-1:1)}:function(e,t){if(e===t)return u=!0,0;var n,r=0,i=e.parentNode,o=t.parentNode,s=[e],a=[t];if(!i||!o)return e==d?-1:t==d?1:i?-1:o?1:c?L(c,e)-L(c,t):0;if(i===o)return he(e,t);for(n=e;n=n.parentNode;)s.unshift(n);for(n=t;n=n.parentNode;)a.unshift(n);for(;s[r]===a[r];)r++;return r?he(s[r],a[r]):s[r]==b?-1:a[r]==b?1:0},d):d},ae.matches=function(e,t){return ae(e,null,null,t)},ae.matchesSelector=function(e,t){if(h(e),n.matchesSelector&&f&&!x[t+" "]&&(!m||!m.test(t))&&(!g||!g.test(t)))try{var r=y.call(e,t);if(r||n.disconnectedMatch||e.document&&11!==e.document.nodeType)return r}catch(_e){x(t,!0)}return ae(t,d,null,[e]).length>0},ae.contains=function(e,t){return(e.ownerDocument||e)!=d&&h(e),w(e,t)},ae.attr=function(e,t){(e.ownerDocument||e)!=d&&h(e);var i=r.attrHandle[t.toLowerCase()],o=i&&Q.call(r.attrHandle,t.toLowerCase())?i(e,t,!f):void 0;return void 0!==o?o:n.attributes||!f?e.getAttribute(t):(o=e.getAttributeNode(t))&&o.specified?o.value:null},ae.escape=function(e){return(e+"").replace(re,ie)},ae.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},ae.uniqueSort=function(e){var t,r=[],i=0,o=0;if(u=!n.detectDuplicates,c=!n.sortStable&&e.slice(0),e.sort(T),u){for(;t=e[o++];)t===e[o]&&(i=r.push(o));for(;i--;)e.splice(r[i],1)}return c=null,e},i=ae.getText=function(e){var t,n="",r=0,o=e.nodeType;if(o){if(1===o||9===o||11===o){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=i(e)}else if(3===o||4===o)return e.nodeValue}else for(;t=e[r++];)n+=i(t);return n},(r=ae.selectors={cacheLength:50,createPseudo:Ae,match:W,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(te,ne),e[3]=(e[3]||e[4]||e[5]||"").replace(te,ne),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||ae.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&ae.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return W.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&q.test(n)&&(t=s(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(te,ne).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=E[e+" "];return t||(t=new RegExp("(^|[\\x20\\t\\r\\n\\f])"+e+"("+H+"|$)"))&&E(e,function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(e,t,n){return function(r){var i=ae.attr(r,e);return null==i?"!="===t:!t||(i+="","="===t?i===n:"!="===t?i!==n:"^="===t?n&&0===i.indexOf(n):"*="===t?n&&i.indexOf(n)>-1:"$="===t?n&&i.slice(-n.length)===n:"~="===t?(" "+i.replace(P," ")+" ").indexOf(n)>-1:"|="===t&&(i===n||i.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,r,i){var o="nth"!==e.slice(0,3),s="last"!==e.slice(-4),a="of-type"===t;return 1===r&&0===i?function(e){return!!e.parentNode}:function(t,n,l){var A,c,u,h,d,p,f=o!==s?"nextSibling":"previousSibling",g=t.parentNode,m=a&&t.nodeName.toLowerCase(),y=!l&&!a,w=!1;if(g){if(o){for(;f;){for(h=t;h=h[f];)if(a?h.nodeName.toLowerCase()===m:1===h.nodeType)return!1;p=f="only"===e&&!p&&"nextSibling"}return!0}if(p=[s?g.firstChild:g.lastChild],s&&y){for(w=(d=(A=(c=(u=(h=g)[v]||(h[v]={}))[h.uniqueID]||(u[h.uniqueID]={}))[e]||[])[0]===C&&A[1])&&A[2],h=d&&g.childNodes[d];h=++d&&h&&h[f]||(w=d=0)||p.pop();)if(1===h.nodeType&&++w&&h===t){c[e]=[C,d,w];break}}else if(y&&(w=d=(A=(c=(u=(h=t)[v]||(h[v]={}))[h.uniqueID]||(u[h.uniqueID]={}))[e]||[])[0]===C&&A[1]),!1===w)for(;(h=++d&&h&&h[f]||(w=d=0)||p.pop())&&((a?h.nodeName.toLowerCase()!==m:1!==h.nodeType)||!++w||(y&&((c=(u=h[v]||(h[v]={}))[h.uniqueID]||(u[h.uniqueID]={}))[e]=[C,w]),h!==t)););return(w-=i)===r||w%r==0&&w/r>=0}}},PSEUDO:function(e,t){var n,i=r.pseudos[e]||r.setFilters[e.toLowerCase()]||ae.error("unsupported pseudo: "+e);return i[v]?i(t):i.length>1?(n=[e,e,"",t],r.setFilters.hasOwnProperty(e.toLowerCase())?Ae(function(e,n){for(var r,o=i(e,t),s=o.length;s--;)e[r=L(e,o[s])]=!(n[r]=o[s])}):function(e){return i(e,0,n)}):i}},pseudos:{not:Ae(function(e){var t=[],n=[],r=a(e.replace(K,"$1"));return r[v]?Ae(function(e,t,n,i){for(var o,s=r(e,null,i,[]),a=e.length;a--;)(o=s[a])&&(e[a]=!(t[a]=o))}):function(e,i,o){return t[0]=e,r(t,null,o,n),t[0]=null,!n.pop()}}),has:Ae(function(e){return function(t){return ae(e,t).length>0}}),contains:Ae(function(e){return e=e.replace(te,ne),function(t){return(t.textContent||i(t)).indexOf(e)>-1}}),lang:Ae(function(e){return z.test(e||"")||ae.error("unsupported lang: "+e),e=e.replace(te,ne).toLowerCase(),function(t){var n;do{if(n=f?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===p},focus:function(e){return e===d.activeElement&&(!d.hasFocus||d.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:fe(!1),disabled:fe(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!r.pseudos.empty(e)},header:function(e){return Y.test(e.nodeName)},input:function(e){return J.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:ge(function(){return[0]}),last:ge(function(e,t){return[t-1]}),eq:ge(function(e,t,n){return[n<0?n+t:n]}),even:ge(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:ge(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:ge(function(e,t,n){for(var r=n<0?n+t:n>t?t:n;--r>=0;)e.push(r);return e}),gt:ge(function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e})}}).pseudos.nth=r.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})r.pseudos[t]=de(t);for(t in{submit:!0,reset:!0})r.pseudos[t]=pe(t);function ye(){}function we(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function ve(e,t,n){var r=t.dir,i=t.next,o=i||r,s=n&&"parentNode"===o,a=B++;return t.first?function(t,n,i){for(;t=t[r];)if(1===t.nodeType||s)return e(t,n,i);return!1}:function(t,n,l){var A,c,u,h=[C,a];if(l){for(;t=t[r];)if((1===t.nodeType||s)&&e(t,n,l))return!0}else for(;t=t[r];)if(1===t.nodeType||s)if(c=(u=t[v]||(t[v]={}))[t.uniqueID]||(u[t.uniqueID]={}),i&&i===t.nodeName.toLowerCase())t=t[r]||t;else{if((A=c[o])&&A[0]===C&&A[1]===a)return h[2]=A[2];if(c[o]=h,h[2]=e(t,n,l))return!0}return!1}}function be(e){return e.length>1?function(t,n,r){for(var i=e.length;i--;)if(!e[i](t,n,r))return!1;return!0}:e[0]}function Ce(e,t,n,r,i){for(var o,s=[],a=0,l=e.length,A=null!=t;a<l;a++)(o=e[a])&&(n&&!n(o,r,i)||(s.push(o),A&&t.push(a)));return s}function Be(e,t,n,r,i,o){return r&&!r[v]&&(r=Be(r)),i&&!i[v]&&(i=Be(i,o)),Ae(function(o,s,a,l){var A,c,u,h=[],d=[],p=s.length,f=o||function(e,t,n){for(var r=0,i=t.length;r<i;r++)ae(e,t[r],n);return n}(t||"*",a.nodeType?[a]:a,[]),g=!e||!o&&t?f:Ce(f,h,e,a,l),m=n?i||(o?e:p||r)?[]:s:g;if(n&&n(g,m,a,l),r)for(A=Ce(m,d),r(A,[],a,l),c=A.length;c--;)(u=A[c])&&(m[d[c]]=!(g[d[c]]=u));if(o){if(i||e){if(i){for(A=[],c=m.length;c--;)(u=m[c])&&A.push(g[c]=u);i(null,m=[],A,l)}for(c=m.length;c--;)(u=m[c])&&(A=i?L(o,u):h[c])>-1&&(o[A]=!(s[A]=u))}}else m=Ce(m===s?m.splice(p,m.length):m),i?i(null,s,m,l):D.apply(s,m)})}function Ee(e){for(var t,n,i,o=e.length,s=r.relative[e[0].type],a=s||r.relative[" "],l=s?1:0,c=ve(function(e){return e===t},a,!0),u=ve(function(e){return L(t,e)>-1},a,!0),h=[function(e,n,r){var i=!s&&(r||n!==A)||((t=n).nodeType?c(e,n,r):u(e,n,r));return t=null,i}];l<o;l++)if(n=r.relative[e[l].type])h=[ve(be(h),n)];else{if((n=r.filter[e[l].type].apply(null,e[l].matches))[v]){for(i=++l;i<o&&!r.relative[e[i].type];i++);return Be(l>1&&be(h),l>1&&we(e.slice(0,l-1).concat({value:" "===e[l-2].type?"*":""})).replace(K,"$1"),n,l<i&&Ee(e.slice(l,i)),i<o&&Ee(e=e.slice(i)),i<o&&we(e))}h.push(n)}return be(h)}return ye.prototype=r.filters=r.pseudos,r.setFilters=new ye,s=ae.tokenize=function(e,t){var n,i,o,s,a,l,A,c=_[e+" "];if(c)return t?0:c.slice(0);for(a=e,l=[],A=r.preFilter;a;){for(s in n&&!(i=V.exec(a))||(i&&(a=a.slice(i[0].length)||a),l.push(o=[])),n=!1,(i=G.exec(a))&&(n=i.shift(),o.push({value:n,type:i[0].replace(K," ")}),a=a.slice(n.length)),r.filter)!(i=W[s].exec(a))||A[s]&&!(i=A[s](i))||(n=i.shift(),o.push({value:n,type:s,matches:i}),a=a.slice(n.length));if(!n)break}return t?a.length:a?ae.error(e):_(e,l).slice(0)},a=ae.compile=function(e,t){var n,i=[],o=[],a=F[e+" "];if(!a){for(t||(t=s(e)),n=t.length;n--;)(a=Ee(t[n]))[v]?i.push(a):o.push(a);(a=F(e,function(e,t){var n=t.length>0,i=e.length>0,o=function(o,s,a,l,c){var u,p,g,m=0,y="0",w=o&&[],v=[],b=A,B=o||i&&r.find.TAG("*",c),E=C+=null==b?1:Math.random()||.1,_=B.length;for(c&&(A=s==d||s||c);y!==_&&null!=(u=B[y]);y++){if(i&&u){for(p=0,s||u.ownerDocument==d||(h(u),a=!f);g=e[p++];)if(g(u,s||d,a)){l.push(u);break}c&&(C=E)}n&&((u=!g&&u)&&m--,o&&w.push(u))}if(m+=y,n&&y!==m){for(p=0;g=t[p++];)g(w,v,s,a);if(o){if(m>0)for(;y--;)w[y]||v[y]||(v[y]=k.call(l));v=Ce(v)}D.apply(l,v),c&&!o&&v.length>0&&m+t.length>1&&ae.uniqueSort(l)}return c&&(C=E,A=b),w};return n?Ae(o):o}(o,i))).selector=e}return a},l=ae.select=function(e,t,n,i){var o,l,A,c,u,h="function"==typeof e&&e,d=!i&&s(e=h.selector||e);if(n=n||[],1===d.length){if((l=d[0]=d[0].slice(0)).length>2&&"ID"===(A=l[0]).type&&9===t.nodeType&&f&&r.relative[l[1].type]){if(!(t=(r.find.ID(A.matches[0].replace(te,ne),t)||[])[0]))return n;h&&(t=t.parentNode),e=e.slice(l.shift().value.length)}for(o=W.needsContext.test(e)?0:l.length;o--&&!r.relative[c=(A=l[o]).type];)if((u=r.find[c])&&(i=u(A.matches[0].replace(te,ne),ee.test(l[0].type)&&me(t.parentNode)||t))){if(l.splice(o,1),!(e=i.length&&we(l)))return D.apply(n,i),n;break}}return(h||a(e,d))(i,t,!f,n,!t||ee.test(e)&&me(t.parentNode)||t),n},n.sortStable=v.split("").sort(T).join("")===v,n.detectDuplicates=!!u,h(),n.sortDetached=ce(function(e){return 1&e.compareDocumentPosition(d.createElement("fieldset"))}),ce(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||ue("type|href|height|width",function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),n.attributes&&ce(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||ue("value",function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),ce(function(e){return null==e.getAttribute("disabled")})||ue(I,function(e,t,n){var r;if(!n)return!0===e[t]?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null}),ae}(r);E.find=F,E.expr=F.selectors,E.expr[":"]=E.expr.pseudos,E.uniqueSort=E.unique=F.uniqueSort,E.text=F.getText,E.isXMLDoc=F.isXML,E.contains=F.contains,E.escapeSelector=F.escape;var x=function(e,t,n){for(var r=[],i=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(i&&E(e).is(n))break;r.push(e)}return r},T=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},Q=E.expr.match.needsContext;function S(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var k=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function U(e,t,n){return m(t)?E.grep(e,function(e,r){return!!t.call(e,r,e)!==n}):t.nodeType?E.grep(e,function(e){return e===t!==n}):"string"!=typeof t?E.grep(e,function(e){return c.call(t,e)>-1!==n}):E.filter(t,e,n)}E.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?E.find.matchesSelector(r,e)?[r]:[]:E.find.matches(e,E.grep(t,function(e){return 1===e.nodeType}))},E.fn.extend({find:function(e){var t,n,r=this.length,i=this;if("string"!=typeof e)return this.pushStack(E(e).filter(function(){for(t=0;t<r;t++)if(E.contains(i[t],this))return!0}));for(n=this.pushStack([]),t=0;t<r;t++)E.find(e,i[t],n);return r>1?E.uniqueSort(n):n},filter:function(e){return this.pushStack(U(this,e||[],!1))},not:function(e){return this.pushStack(U(this,e||[],!0))},is:function(e){return!!U(this,"string"==typeof e&&Q.test(e)?E(e):e||[],!1).length}});var D,O=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(E.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||D,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:O.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(E.merge(this,E.parseHTML(r[1],(t=t instanceof E?t[0]:t)&&t.nodeType?t.ownerDocument||t:w,!0)),k.test(r[1])&&E.isPlainObject(t))for(r in t)m(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(i=w.getElementById(r[2]))&&(this[0]=i,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):m(e)?void 0!==n.ready?n.ready(e):e(E):E.makeArray(e,this)}).prototype=E.fn,D=E(w);var L=/^(?:parents|prev(?:Until|All))/,I={children:!0,contents:!0,next:!0,prev:!0};function H(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}E.fn.extend({has:function(e){var t=E(e,this),n=t.length;return this.filter(function(){for(var e=0;e<n;e++)if(E.contains(this,t[e]))return!0})},closest:function(e,t){var n,r=0,i=this.length,o=[],s="string"!=typeof e&&E(e);if(!Q.test(e))for(;r<i;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(s?s.index(n)>-1:1===n.nodeType&&E.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(o.length>1?E.uniqueSort(o):o)},index:function(e){return e?"string"==typeof e?c.call(E(e),this[0]):c.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(E.uniqueSort(E.merge(this.get(),E(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),E.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return x(e,"parentNode")},parentsUntil:function(e,t,n){return x(e,"parentNode",n)},next:function(e){return H(e,"nextSibling")},prev:function(e){return H(e,"previousSibling")},nextAll:function(e){return x(e,"nextSibling")},prevAll:function(e){return x(e,"previousSibling")},nextUntil:function(e,t,n){return x(e,"nextSibling",n)},prevUntil:function(e,t,n){return x(e,"previousSibling",n)},siblings:function(e){return T((e.parentNode||{}).firstChild,e)},children:function(e){return T(e.firstChild)},contents:function(e){return null!=e.contentDocument&&s(e.contentDocument)?e.contentDocument:(S(e,"template")&&(e=e.content||e),E.merge([],e.childNodes))}},function(e,t){E.fn[e]=function(n,r){var i=E.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=E.filter(r,i)),this.length>1&&(I[e]||E.uniqueSort(i),L.test(e)&&i.reverse()),this.pushStack(i)}});var M=/[^\x20\t\r\n\f]+/g;function R(e){return e}function N(e){throw e}function P(e,t,n,r){var i;try{e&&m(i=e.promise)?i.call(e).done(t).fail(n):e&&m(i=e.then)?i.call(e,t,n):t.apply(void 0,[e].slice(r))}catch(e){n.apply(void 0,[e])}}E.Callbacks=function(e){e="string"==typeof e?function(e){var t={};return E.each(e.match(M)||[],function(e,n){t[n]=!0}),t}(e):E.extend({},e);var t,n,r,i,o=[],s=[],a=-1,l=function(){for(i=i||e.once,r=t=!0;s.length;a=-1)for(n=s.shift();++a<o.length;)!1===o[a].apply(n[0],n[1])&&e.stopOnFalse&&(a=o.length,n=!1);e.memory||(n=!1),t=!1,i&&(o=n?[]:"")},A={add:function(){return o&&(n&&!t&&(a=o.length-1,s.push(n)),function t(n){E.each(n,function(n,r){m(r)?e.unique&&A.has(r)||o.push(r):r&&r.length&&"string"!==C(r)&&t(r)})}(arguments),n&&!t&&l()),this},remove:function(){return E.each(arguments,function(e,t){for(var n;(n=E.inArray(t,o,n))>-1;)o.splice(n,1),n<=a&&a--}),this},has:function(e){return e?E.inArray(e,o)>-1:o.length>0},empty:function(){return o&&(o=[]),this},disable:function(){return i=s=[],o=n="",this},disabled:function(){return!o},lock:function(){return i=s=[],n||t||(o=n=""),this},locked:function(){return!!i},fireWith:function(e,n){return i||(n=[e,(n=n||[]).slice?n.slice():n],s.push(n),t||l()),this},fire:function(){return A.fireWith(this,arguments),this},fired:function(){return!!r}};return A},E.extend({Deferred:function(e){var t=[["notify","progress",E.Callbacks("memory"),E.Callbacks("memory"),2],["resolve","done",E.Callbacks("once memory"),E.Callbacks("once memory"),0,"resolved"],["reject","fail",E.Callbacks("once memory"),E.Callbacks("once memory"),1,"rejected"]],n="pending",i={state:function(){return n},always:function(){return o.done(arguments).fail(arguments),this},catch:function(e){return i.then(null,e)},pipe:function(){var e=arguments;return E.Deferred(function(n){E.each(t,function(t,r){var i=m(e[r[4]])&&e[r[4]];o[r[1]](function(){var e=i&&i.apply(this,arguments);e&&m(e.promise)?e.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[r[0]+"With"](this,i?[e]:arguments)})}),e=null}).promise()},then:function(e,n,i){var o=0;function s(e,t,n,i){return function(){var a=this,l=arguments,A=function(){var r,A;if(!(e<o)){if((r=n.apply(a,l))===t.promise())throw new TypeError("Thenable self-resolution");m(A=r&&("object"==typeof r||"function"==typeof r)&&r.then)?i?A.call(r,s(o,t,R,i),s(o,t,N,i)):(o++,A.call(r,s(o,t,R,i),s(o,t,N,i),s(o,t,R,t.notifyWith))):(n!==R&&(a=void 0,l=[r]),(i||t.resolveWith)(a,l))}},c=i?A:function(){try{A()}catch(r){E.Deferred.exceptionHook&&E.Deferred.exceptionHook(r,c.stackTrace),e+1>=o&&(n!==N&&(a=void 0,l=[r]),t.rejectWith(a,l))}};e?c():(E.Deferred.getStackHook&&(c.stackTrace=E.Deferred.getStackHook()),r.setTimeout(c))}}return E.Deferred(function(r){t[0][3].add(s(0,r,m(i)?i:R,r.notifyWith)),t[1][3].add(s(0,r,m(e)?e:R)),t[2][3].add(s(0,r,m(n)?n:N))}).promise()},promise:function(e){return null!=e?E.extend(e,i):i}},o={};return E.each(t,function(e,r){var s=r[2],a=r[5];i[r[1]]=s.add,a&&s.add(function(){n=a},t[3-e][2].disable,t[3-e][3].disable,t[0][2].lock,t[0][3].lock),s.add(r[3].fire),o[r[0]]=function(){return o[r[0]+"With"](this===o?void 0:this,arguments),this},o[r[0]+"With"]=s.fireWith}),i.promise(o),e&&e.call(o,o),o},when:function(e){var t=arguments.length,n=t,r=Array(n),i=a.call(arguments),o=E.Deferred(),s=function(e){return function(n){r[e]=this,i[e]=arguments.length>1?a.call(arguments):n,--t||o.resolveWith(r,i)}};if(t<=1&&(P(e,o.done(s(n)).resolve,o.reject,!t),"pending"===o.state()||m(i[n]&&i[n].then)))return o.then();for(;n--;)P(i[n],s(n),o.reject);return o.promise()}});var K=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;E.Deferred.exceptionHook=function(e,t){r.console&&r.console.warn&&e&&K.test(e.name)&&r.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},E.readyException=function(e){r.setTimeout(function(){throw e})};var V=E.Deferred();function G(){w.removeEventListener("DOMContentLoaded",G),r.removeEventListener("load",G),E.ready()}E.fn.ready=function(e){return V.then(e).catch(function(e){E.readyException(e)}),this},E.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--E.readyWait:E.isReady)||(E.isReady=!0,!0!==e&&--E.readyWait>0||V.resolveWith(w,[E]))}}),E.ready.then=V.then,"complete"===w.readyState||"loading"!==w.readyState&&!w.documentElement.doScroll?r.setTimeout(E.ready):(w.addEventListener("DOMContentLoaded",G),r.addEventListener("load",G));var j=function(e,t,n,r,i,o,s){var a=0,l=e.length,A=null==n;if("object"===C(n))for(a in i=!0,n)j(e,t,a,n[a],!0,o,s);else if(void 0!==r&&(i=!0,m(r)||(s=!0),A&&(s?(t.call(e,r),t=null):(A=t,t=function(e,t,n){return A.call(E(e),n)})),t))for(;a<l;a++)t(e[a],n,s?r:r.call(e[a],a,t(e[a],n)));return i?e:A?t.call(e):l?t(e[0],n):o},q=/^-ms-/,z=/-([a-z])/g;function W(e,t){return t.toUpperCase()}function X(e){return e.replace(q,"ms-").replace(z,W)}var J=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function Y(){this.expando=E.expando+Y.uid++}Y.uid=1,Y.prototype={cache:function(e){var t=e[this.expando];return t||(t={},J(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var r,i=this.cache(e);if("string"==typeof t)i[X(t)]=n;else for(r in t)i[X(r)]=t[r];return i},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][X(t)]},access:function(e,t,n){return void 0===t||t&&"string"==typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,r=e[this.expando];if(void 0!==r){if(void 0!==t){n=(t=Array.isArray(t)?t.map(X):(t=X(t))in r?[t]:t.match(M)||[]).length;for(;n--;)delete r[t[n]]}(void 0===t||E.isEmptyObject(r))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!E.isEmptyObject(t)}};var $=new Y,Z=new Y,ee=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,te=/[A-Z]/g;function ne(e,t,n){var r;if(void 0===n&&1===e.nodeType)if(r="data-"+t.replace(te,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(r))){try{n=function(e){return"true"===e||"false"!==e&&("null"===e?null:e===+e+""?+e:ee.test(e)?JSON.parse(e):e)}(n)}catch(i){}Z.set(e,t,n)}else n=void 0;return n}E.extend({hasData:function(e){return Z.hasData(e)||$.hasData(e)},data:function(e,t,n){return Z.access(e,t,n)},removeData:function(e,t){Z.remove(e,t)},_data:function(e,t,n){return $.access(e,t,n)},_removeData:function(e,t){$.remove(e,t)}}),E.fn.extend({data:function(e,t){var n,r,i,o=this[0],s=o&&o.attributes;if(void 0===e){if(this.length&&(i=Z.get(o),1===o.nodeType&&!$.get(o,"hasDataAttrs"))){for(n=s.length;n--;)s[n]&&0===(r=s[n].name).indexOf("data-")&&(r=X(r.slice(5)),ne(o,r,i[r]));$.set(o,"hasDataAttrs",!0)}return i}return"object"==typeof e?this.each(function(){Z.set(this,e)}):j(this,function(t){var n;if(o&&void 0===t)return void 0!==(n=Z.get(o,e))||void 0!==(n=ne(o,e))?n:void 0;this.each(function(){Z.set(this,e,t)})},null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each(function(){Z.remove(this,e)})}}),E.extend({queue:function(e,t,n){var r;if(e)return r=$.get(e,t=(t||"fx")+"queue"),n&&(!r||Array.isArray(n)?r=$.access(e,t,E.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){var n=E.queue(e,t=t||"fx"),r=n.length,i=n.shift(),o=E._queueHooks(e,t);"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete o.stop,i.call(e,function(){E.dequeue(e,t)},o)),!r&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return $.get(e,n)||$.access(e,n,{empty:E.Callbacks("once memory").add(function(){$.remove(e,[t+"queue",n])})})}}),E.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n?E.queue(this[0],e):void 0===t?this:this.each(function(){var n=E.queue(this,e,t);E._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&E.dequeue(this,e)})},dequeue:function(e){return this.each(function(){E.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,i=E.Deferred(),o=this,s=this.length,a=function(){--r||i.resolveWith(o,[o])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";s--;)(n=$.get(o[s],e+"queueHooks"))&&n.empty&&(r++,n.empty.add(a));return a(),i.promise(t)}});var re=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,ie=new RegExp("^(?:([+-])=|)("+re+")([a-z%]*)$","i"),oe=["Top","Right","Bottom","Left"],se=w.documentElement,ae=function(e){return E.contains(e.ownerDocument,e)},le={composed:!0};se.getRootNode&&(ae=function(e){return E.contains(e.ownerDocument,e)||e.getRootNode(le)===e.ownerDocument});var Ae=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&ae(e)&&"none"===E.css(e,"display")};function ce(e,t,n,r){var i,o,s=20,a=r?function(){return r.cur()}:function(){return E.css(e,t,"")},l=a(),A=n&&n[3]||(E.cssNumber[t]?"":"px"),c=e.nodeType&&(E.cssNumber[t]||"px"!==A&&+l)&&ie.exec(E.css(e,t));if(c&&c[3]!==A){for(A=A||c[3],c=+(l/=2)||1;s--;)E.style(e,t,c+A),(1-o)*(1-(o=a()/l||.5))<=0&&(s=0),c/=o;E.style(e,t,(c*=2)+A),n=n||[]}return n&&(c=+c||+l||0,i=n[1]?c+(n[1]+1)*n[2]:+n[2],r&&(r.unit=A,r.start=c,r.end=i)),i}var ue={};function he(e){var t,n=e.ownerDocument,r=e.nodeName,i=ue[r];return i||(t=n.body.appendChild(n.createElement(r)),i=E.css(t,"display"),t.parentNode.removeChild(t),"none"===i&&(i="block"),ue[r]=i,i)}function de(e,t){for(var n,r,i=[],o=0,s=e.length;o<s;o++)(r=e[o]).style&&(n=r.style.display,t?("none"===n&&(i[o]=$.get(r,"display")||null,i[o]||(r.style.display="")),""===r.style.display&&Ae(r)&&(i[o]=he(r))):"none"!==n&&(i[o]="none",$.set(r,"display",n)));for(o=0;o<s;o++)null!=i[o]&&(e[o].style.display=i[o]);return e}E.fn.extend({show:function(){return de(this,!0)},hide:function(){return de(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){Ae(this)?E(this).show():E(this).hide()})}});var pe,fe,ge=/^(?:checkbox|radio)$/i,me=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,ye=/^$|^module$|\/(?:java|ecma)script/i;pe=w.createDocumentFragment().appendChild(w.createElement("div")),(fe=w.createElement("input")).setAttribute("type","radio"),fe.setAttribute("checked","checked"),fe.setAttribute("name","t"),pe.appendChild(fe),g.checkClone=pe.cloneNode(!0).cloneNode(!0).lastChild.checked,pe.innerHTML="<textarea>x</textarea>",g.noCloneChecked=!!pe.cloneNode(!0).lastChild.defaultValue,pe.innerHTML="<option></option>",g.option=!!pe.lastChild;var we={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function ve(e,t){var n;return n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&S(e,t)?E.merge([e],n):n}function be(e,t){for(var n=0,r=e.length;n<r;n++)$.set(e[n],"globalEval",!t||$.get(t[n],"globalEval"))}we.tbody=we.tfoot=we.colgroup=we.caption=we.thead,we.th=we.td,g.option||(we.optgroup=we.option=[1,"<select multiple='multiple'>","</select>"]);var Ce=/<|&#?\w+;/;function Be(e,t,n,r,i){for(var o,s,a,l,A,c,u=t.createDocumentFragment(),h=[],d=0,p=e.length;d<p;d++)if((o=e[d])||0===o)if("object"===C(o))E.merge(h,o.nodeType?[o]:o);else if(Ce.test(o)){for(s=s||u.appendChild(t.createElement("div")),a=(me.exec(o)||["",""])[1].toLowerCase(),s.innerHTML=(l=we[a]||we._default)[1]+E.htmlPrefilter(o)+l[2],c=l[0];c--;)s=s.lastChild;E.merge(h,s.childNodes),(s=u.firstChild).textContent=""}else h.push(t.createTextNode(o));for(u.textContent="",d=0;o=h[d++];)if(r&&E.inArray(o,r)>-1)i&&i.push(o);else if(A=ae(o),s=ve(u.appendChild(o),"script"),A&&be(s),n)for(c=0;o=s[c++];)ye.test(o.type||"")&&n.push(o);return u}var Ee=/^([^.]*)(?:\.(.+)|)/;function _e(){return!0}function Fe(){return!1}function xe(e,t){return e===function(){try{return w.activeElement}catch(e){}}()==("focus"===t)}function Te(e,t,n,r,i,o){var s,a;if("object"==typeof t){for(a in"string"!=typeof n&&(r=r||n,n=void 0),t)Te(e,a,n,r,t[a],o);return e}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"==typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),!1===i)i=Fe;else if(!i)return e;return 1===o&&(s=i,(i=function(e){return E().off(e),s.apply(this,arguments)}).guid=s.guid||(s.guid=E.guid++)),e.each(function(){E.event.add(this,t,i,r,n)})}function Qe(e,t,n){n?($.set(e,t,!1),E.event.add(e,t,{namespace:!1,handler:function(e){var r,i,o=$.get(this,t);if(1&e.isTrigger&&this[t]){if(o.length)(E.event.special[t]||{}).delegateType&&e.stopPropagation();else if(o=a.call(arguments),$.set(this,t,o),r=n(this,t),this[t](),o!==(i=$.get(this,t))||r?$.set(this,t,!1):i={},o!==i)return e.stopImmediatePropagation(),e.preventDefault(),i&&i.value}else o.length&&($.set(this,t,{value:E.event.trigger(E.extend(o[0],E.Event.prototype),o.slice(1),this)}),e.stopImmediatePropagation())}})):void 0===$.get(e,t)&&E.event.add(e,t,_e)}E.event={global:{},add:function(e,t,n,r,i){var o,s,a,l,A,c,u,h,d,p,f,g=$.get(e);if(J(e))for(n.handler&&(n=(o=n).handler,i=o.selector),i&&E.find.matchesSelector(se,i),n.guid||(n.guid=E.guid++),(l=g.events)||(l=g.events=Object.create(null)),(s=g.handle)||(s=g.handle=function(t){return void 0!==E&&E.event.triggered!==t.type?E.event.dispatch.apply(e,arguments):void 0}),A=(t=(t||"").match(M)||[""]).length;A--;)d=f=(a=Ee.exec(t[A])||[])[1],p=(a[2]||"").split(".").sort(),d&&(u=E.event.special[d]||{},u=E.event.special[d=(i?u.delegateType:u.bindType)||d]||{},c=E.extend({type:d,origType:f,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&E.expr.match.needsContext.test(i),namespace:p.join(".")},o),(h=l[d])||((h=l[d]=[]).delegateCount=0,u.setup&&!1!==u.setup.call(e,r,p,s)||e.addEventListener&&e.addEventListener(d,s)),u.add&&(u.add.call(e,c),c.handler.guid||(c.handler.guid=n.guid)),i?h.splice(h.delegateCount++,0,c):h.push(c),E.event.global[d]=!0)},remove:function(e,t,n,r,i){var o,s,a,l,A,c,u,h,d,p,f,g=$.hasData(e)&&$.get(e);if(g&&(l=g.events)){for(A=(t=(t||"").match(M)||[""]).length;A--;)if(d=f=(a=Ee.exec(t[A])||[])[1],p=(a[2]||"").split(".").sort(),d){for(u=E.event.special[d]||{},h=l[d=(r?u.delegateType:u.bindType)||d]||[],a=a[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),s=o=h.length;o--;)c=h[o],!i&&f!==c.origType||n&&n.guid!==c.guid||a&&!a.test(c.namespace)||r&&r!==c.selector&&("**"!==r||!c.selector)||(h.splice(o,1),c.selector&&h.delegateCount--,u.remove&&u.remove.call(e,c));s&&!h.length&&(u.teardown&&!1!==u.teardown.call(e,p,g.handle)||E.removeEvent(e,d,g.handle),delete l[d])}else for(d in l)E.event.remove(e,d+t[A],n,r,!0);E.isEmptyObject(l)&&$.remove(e,"handle events")}},dispatch:function(e){var t,n,r,i,o,s,a=new Array(arguments.length),l=E.event.fix(e),A=($.get(this,"events")||Object.create(null))[l.type]||[],c=E.event.special[l.type]||{};for(a[0]=l,t=1;t<arguments.length;t++)a[t]=arguments[t];if(l.delegateTarget=this,!c.preDispatch||!1!==c.preDispatch.call(this,l)){for(s=E.event.handlers.call(this,l,A),t=0;(i=s[t++])&&!l.isPropagationStopped();)for(l.currentTarget=i.elem,n=0;(o=i.handlers[n++])&&!l.isImmediatePropagationStopped();)l.rnamespace&&!1!==o.namespace&&!l.rnamespace.test(o.namespace)||(l.handleObj=o,l.data=o.data,void 0!==(r=((E.event.special[o.origType]||{}).handle||o.handler).apply(i.elem,a))&&!1===(l.result=r)&&(l.preventDefault(),l.stopPropagation()));return c.postDispatch&&c.postDispatch.call(this,l),l.result}},handlers:function(e,t){var n,r,i,o,s,a=[],l=t.delegateCount,A=e.target;if(l&&A.nodeType&&!("click"===e.type&&e.button>=1))for(;A!==this;A=A.parentNode||this)if(1===A.nodeType&&("click"!==e.type||!0!==A.disabled)){for(o=[],s={},n=0;n<l;n++)void 0===s[i=(r=t[n]).selector+" "]&&(s[i]=r.needsContext?E(i,this).index(A)>-1:E.find(i,this,null,[A]).length),s[i]&&o.push(r);o.length&&a.push({elem:A,handlers:o})}return A=this,l<t.length&&a.push({elem:A,handlers:t.slice(l)}),a},addProp:function(e,t){Object.defineProperty(E.Event.prototype,e,{enumerable:!0,configurable:!0,get:m(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]},set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(e){return e[E.expando]?e:new E.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return ge.test(t.type)&&t.click&&S(t,"input")&&Qe(t,"click",_e),!1},trigger:function(e){var t=this||e;return ge.test(t.type)&&t.click&&S(t,"input")&&Qe(t,"click"),!0},_default:function(e){var t=e.target;return ge.test(t.type)&&t.click&&S(t,"input")&&$.get(t,"click")||S(t,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},E.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},E.Event=function(e,t){if(!(this instanceof E.Event))return new E.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?_e:Fe,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&E.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[E.expando]=!0},E.Event.prototype={constructor:E.Event,isDefaultPrevented:Fe,isPropagationStopped:Fe,isImmediatePropagationStopped:Fe,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=_e,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=_e,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=_e,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},E.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},E.event.addProp),E.each({focus:"focusin",blur:"focusout"},function(e,t){E.event.special[e]={setup:function(){return Qe(this,e,xe),!1},trigger:function(){return Qe(this,e),!0},_default:function(){return!0},delegateType:t}}),E.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,t){E.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=this,i=e.relatedTarget,o=e.handleObj;return i&&(i===r||E.contains(r,i))||(e.type=o.origType,n=o.handler.apply(this,arguments),e.type=t),n}}}),E.fn.extend({on:function(e,t,n,r){return Te(this,e,t,n,r)},one:function(e,t,n,r){return Te(this,e,t,n,r,1)},off:function(e,t,n){var r,i;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,E(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof e){for(i in e)this.off(i,t,e[i]);return this}return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=Fe),this.each(function(){E.event.remove(this,e,n,t)})}});var Se=/<script|<style|<link/i,ke=/checked\s*(?:[^=]|=\s*.checked.)/i,Ue=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function De(e,t){return S(e,"table")&&S(11!==t.nodeType?t:t.firstChild,"tr")&&E(e).children("tbody")[0]||e}function Oe(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function Le(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Ie(e,t){var n,r,i,o,s,a;if(1===t.nodeType){if($.hasData(e)&&(a=$.get(e).events))for(i in $.remove(t,"handle events"),a)for(n=0,r=a[i].length;n<r;n++)E.event.add(t,i,a[i][n]);Z.hasData(e)&&(o=Z.access(e),s=E.extend({},o),Z.set(t,s))}}function He(e,t){var n=t.nodeName.toLowerCase();"input"===n&&ge.test(e.type)?t.checked=e.checked:"input"!==n&&"textarea"!==n||(t.defaultValue=e.defaultValue)}function Me(e,t,n,r){t=l(t);var i,o,s,a,A,c,u=0,h=e.length,d=h-1,p=t[0],f=m(p);if(f||h>1&&"string"==typeof p&&!g.checkClone&&ke.test(p))return e.each(function(i){var o=e.eq(i);f&&(t[0]=p.call(this,i,o.html())),Me(o,t,n,r)});if(h&&(o=(i=Be(t,e[0].ownerDocument,!1,e,r)).firstChild,1===i.childNodes.length&&(i=o),o||r)){for(a=(s=E.map(ve(i,"script"),Oe)).length;u<h;u++)A=i,u!==d&&(A=E.clone(A,!0,!0),a&&E.merge(s,ve(A,"script"))),n.call(e[u],A,u);if(a)for(c=s[s.length-1].ownerDocument,E.map(s,Le),u=0;u<a;u++)ye.test((A=s[u]).type||"")&&!$.access(A,"globalEval")&&E.contains(c,A)&&(A.src&&"module"!==(A.type||"").toLowerCase()?E._evalUrl&&!A.noModule&&E._evalUrl(A.src,{nonce:A.nonce||A.getAttribute("nonce")},c):b(A.textContent.replace(Ue,""),A,c))}return e}function Re(e,t,n){for(var r,i=t?E.filter(t,e):e,o=0;null!=(r=i[o]);o++)n||1!==r.nodeType||E.cleanData(ve(r)),r.parentNode&&(n&&ae(r)&&be(ve(r,"script")),r.parentNode.removeChild(r));return e}E.extend({htmlPrefilter:function(e){return e},clone:function(e,t,n){var r,i,o,s,a=e.cloneNode(!0),l=ae(e);if(!(g.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||E.isXMLDoc(e)))for(s=ve(a),r=0,i=(o=ve(e)).length;r<i;r++)He(o[r],s[r]);if(t)if(n)for(o=o||ve(e),s=s||ve(a),r=0,i=o.length;r<i;r++)Ie(o[r],s[r]);else Ie(e,a);return(s=ve(a,"script")).length>0&&be(s,!l&&ve(e,"script")),a},cleanData:function(e){for(var t,n,r,i=E.event.special,o=0;void 0!==(n=e[o]);o++)if(J(n)){if(t=n[$.expando]){if(t.events)for(r in t.events)i[r]?E.event.remove(n,r):E.removeEvent(n,r,t.handle);n[$.expando]=void 0}n[Z.expando]&&(n[Z.expando]=void 0)}}}),E.fn.extend({detach:function(e){return Re(this,e,!0)},remove:function(e){return Re(this,e)},text:function(e){return j(this,function(e){return void 0===e?E.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)})},null,e,arguments.length)},append:function(){return Me(this,arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||De(this,e).appendChild(e)})},prepend:function(){return Me(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=De(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return Me(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return Me(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(E.cleanData(ve(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return E.clone(this,e,t)})},html:function(e){return j(this,function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!Se.test(e)&&!we[(me.exec(e)||["",""])[1].toLowerCase()]){e=E.htmlPrefilter(e);try{for(;n<r;n++)1===(t=this[n]||{}).nodeType&&(E.cleanData(ve(t,!1)),t.innerHTML=e);t=0}catch(i){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var e=[];return Me(this,arguments,function(t){var n=this.parentNode;E.inArray(this,e)<0&&(E.cleanData(ve(this)),n&&n.replaceChild(t,this))},e)}}),E.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){E.fn[e]=function(e){for(var n,r=[],i=E(e),o=i.length-1,s=0;s<=o;s++)n=s===o?this:this.clone(!0),E(i[s])[t](n),A.apply(r,n.get());return this.pushStack(r)}});var Ne=new RegExp("^("+re+")(?!px)[a-z%]+$","i"),Pe=function(e){var t=e.ownerDocument.defaultView;return t&&t.opener||(t=r),t.getComputedStyle(e)},Ke=function(e,t,n){var r,i,o={};for(i in t)o[i]=e.style[i],e.style[i]=t[i];for(i in r=n.call(e),t)e.style[i]=o[i];return r},Ve=new RegExp(oe.join("|"),"i");function Ge(e,t,n){var r,i,o,s,a=e.style;return(n=n||Pe(e))&&(""!==(s=n.getPropertyValue(t)||n[t])||ae(e)||(s=E.style(e,t)),!g.pixelBoxStyles()&&Ne.test(s)&&Ve.test(t)&&(r=a.width,i=a.minWidth,o=a.maxWidth,a.minWidth=a.maxWidth=a.width=s,s=n.width,a.width=r,a.minWidth=i,a.maxWidth=o)),void 0!==s?s+"":s}function je(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}!function(){function e(){if(c){A.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",c.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",se.appendChild(A).appendChild(c);var e=r.getComputedStyle(c);n="1%"!==e.top,l=12===t(e.marginLeft),c.style.right="60%",s=36===t(e.right),i=36===t(e.width),c.style.position="absolute",o=12===t(c.offsetWidth/3),se.removeChild(A),c=null}}function t(e){return Math.round(parseFloat(e))}var n,i,o,s,a,l,A=w.createElement("div"),c=w.createElement("div");c.style&&(c.style.backgroundClip="content-box",c.cloneNode(!0).style.backgroundClip="",g.clearCloneStyle="content-box"===c.style.backgroundClip,E.extend(g,{boxSizingReliable:function(){return e(),i},pixelBoxStyles:function(){return e(),s},pixelPosition:function(){return e(),n},reliableMarginLeft:function(){return e(),l},scrollboxSize:function(){return e(),o},reliableTrDimensions:function(){var e,t,n,i;return null==a&&(e=w.createElement("table"),t=w.createElement("tr"),n=w.createElement("div"),e.style.cssText="position:absolute;left:-11111px;border-collapse:separate",t.style.cssText="border:1px solid",t.style.height="1px",n.style.height="9px",n.style.display="block",se.appendChild(e).appendChild(t).appendChild(n),i=r.getComputedStyle(t),a=parseInt(i.height,10)+parseInt(i.borderTopWidth,10)+parseInt(i.borderBottomWidth,10)===t.offsetHeight,se.removeChild(e)),a}}))}();var qe=["Webkit","Moz","ms"],ze=w.createElement("div").style,We={};function Xe(e){return E.cssProps[e]||We[e]||(e in ze?e:We[e]=function(e){for(var t=e[0].toUpperCase()+e.slice(1),n=qe.length;n--;)if((e=qe[n]+t)in ze)return e}(e)||e)}var Je=/^(none|table(?!-c[ea]).+)/,Ye=/^--/,$e={position:"absolute",visibility:"hidden",display:"block"},Ze={letterSpacing:"0",fontWeight:"400"};function et(e,t,n){var r=ie.exec(t);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):t}function tt(e,t,n,r,i,o){var s="width"===t?1:0,a=0,l=0;if(n===(r?"border":"content"))return 0;for(;s<4;s+=2)"margin"===n&&(l+=E.css(e,n+oe[s],!0,i)),r?("content"===n&&(l-=E.css(e,"padding"+oe[s],!0,i)),"margin"!==n&&(l-=E.css(e,"border"+oe[s]+"Width",!0,i))):(l+=E.css(e,"padding"+oe[s],!0,i),"padding"!==n?l+=E.css(e,"border"+oe[s]+"Width",!0,i):a+=E.css(e,"border"+oe[s]+"Width",!0,i));return!r&&o>=0&&(l+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-o-l-a-.5))||0),l}function nt(e,t,n){var r=Pe(e),i=(!g.boxSizingReliable()||n)&&"border-box"===E.css(e,"boxSizing",!1,r),o=i,s=Ge(e,t,r),a="offset"+t[0].toUpperCase()+t.slice(1);if(Ne.test(s)){if(!n)return s;s="auto"}return(!g.boxSizingReliable()&&i||!g.reliableTrDimensions()&&S(e,"tr")||"auto"===s||!parseFloat(s)&&"inline"===E.css(e,"display",!1,r))&&e.getClientRects().length&&(i="border-box"===E.css(e,"boxSizing",!1,r),(o=a in e)&&(s=e[a])),(s=parseFloat(s)||0)+tt(e,t,n||(i?"border":"content"),o,r,s)+"px"}function rt(e,t,n,r,i){return new rt.prototype.init(e,t,n,r,i)}E.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Ge(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var i,o,s,a=X(t),l=Ye.test(t),A=e.style;if(l||(t=Xe(a)),s=E.cssHooks[t]||E.cssHooks[a],void 0===n)return s&&"get"in s&&void 0!==(i=s.get(e,!1,r))?i:A[t];"string"==(o=typeof n)&&(i=ie.exec(n))&&i[1]&&(n=ce(e,t,i),o="number"),null!=n&&n==n&&("number"!==o||l||(n+=i&&i[3]||(E.cssNumber[a]?"":"px")),g.clearCloneStyle||""!==n||0!==t.indexOf("background")||(A[t]="inherit"),s&&"set"in s&&void 0===(n=s.set(e,n,r))||(l?A.setProperty(t,n):A[t]=n))}},css:function(e,t,n,r){var i,o,s,a=X(t);return Ye.test(t)||(t=Xe(a)),(s=E.cssHooks[t]||E.cssHooks[a])&&"get"in s&&(i=s.get(e,!0,n)),void 0===i&&(i=Ge(e,t,r)),"normal"===i&&t in Ze&&(i=Ze[t]),""===n||n?(o=parseFloat(i),!0===n||isFinite(o)?o||0:i):i}}),E.each(["height","width"],function(e,t){E.cssHooks[t]={get:function(e,n,r){if(n)return!Je.test(E.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?nt(e,t,r):Ke(e,$e,function(){return nt(e,t,r)})},set:function(e,n,r){var i,o=Pe(e),s=!g.scrollboxSize()&&"absolute"===o.position,a=(s||r)&&"border-box"===E.css(e,"boxSizing",!1,o),l=r?tt(e,t,r,a,o):0;return a&&s&&(l-=Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(o[t])-tt(e,t,"border",!1,o)-.5)),l&&(i=ie.exec(n))&&"px"!==(i[3]||"px")&&(e.style[t]=n,n=E.css(e,t)),et(0,n,l)}}}),E.cssHooks.marginLeft=je(g.reliableMarginLeft,function(e,t){if(t)return(parseFloat(Ge(e,"marginLeft"))||e.getBoundingClientRect().left-Ke(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px"}),E.each({margin:"",padding:"",border:"Width"},function(e,t){E.cssHooks[e+t]={expand:function(n){for(var r=0,i={},o="string"==typeof n?n.split(" "):[n];r<4;r++)i[e+oe[r]+t]=o[r]||o[r-2]||o[0];return i}},"margin"!==e&&(E.cssHooks[e+t].set=et)}),E.fn.extend({css:function(e,t){return j(this,function(e,t,n){var r,i,o={},s=0;if(Array.isArray(t)){for(r=Pe(e),i=t.length;s<i;s++)o[t[s]]=E.css(e,t[s],!1,r);return o}return void 0!==n?E.style(e,t,n):E.css(e,t)},e,t,arguments.length>1)}}),E.Tween=rt,(rt.prototype={constructor:rt,init:function(e,t,n,r,i,o){this.elem=e,this.prop=n,this.easing=i||E.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=o||(E.cssNumber[n]?"":"px")},cur:function(){var e=rt.propHooks[this.prop];return e&&e.get?e.get(this):rt.propHooks._default.get(this)},run:function(e){var t,n=rt.propHooks[this.prop];return this.pos=t=this.options.duration?E.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):rt.propHooks._default.set(this),this}}).init.prototype=rt.prototype,(rt.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=E.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){E.fx.step[e.prop]?E.fx.step[e.prop](e):1!==e.elem.nodeType||!E.cssHooks[e.prop]&&null==e.elem.style[Xe(e.prop)]?e.elem[e.prop]=e.now:E.style(e.elem,e.prop,e.now+e.unit)}}}).scrollTop=rt.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},E.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},E.fx=rt.prototype.init,E.fx.step={};var it,ot,st=/^(?:toggle|show|hide)$/,at=/queueHooks$/;function lt(){ot&&(!1===w.hidden&&r.requestAnimationFrame?r.requestAnimationFrame(lt):r.setTimeout(lt,E.fx.interval),E.fx.tick())}function At(){return r.setTimeout(function(){it=void 0}),it=Date.now()}function ct(e,t){var n,r=0,i={height:e};for(t=t?1:0;r<4;r+=2-t)i["margin"+(n=oe[r])]=i["padding"+n]=e;return t&&(i.opacity=i.width=e),i}function ut(e,t,n){for(var r,i=(ht.tweeners[t]||[]).concat(ht.tweeners["*"]),o=0,s=i.length;o<s;o++)if(r=i[o].call(n,t,e))return r}function ht(e,t,n){var r,i,o=0,s=ht.prefilters.length,a=E.Deferred().always(function(){delete l.elem}),l=function(){if(i)return!1;for(var t=it||At(),n=Math.max(0,A.startTime+A.duration-t),r=1-(n/A.duration||0),o=0,s=A.tweens.length;o<s;o++)A.tweens[o].run(r);return a.notifyWith(e,[A,r,n]),r<1&&s?n:(s||a.notifyWith(e,[A,1,0]),a.resolveWith(e,[A]),!1)},A=a.promise({elem:e,props:E.extend({},t),opts:E.extend(!0,{specialEasing:{},easing:E.easing._default},n),originalProperties:t,originalOptions:n,startTime:it||At(),duration:n.duration,tweens:[],createTween:function(t,n){var r=E.Tween(e,A.opts,t,n,A.opts.specialEasing[t]||A.opts.easing);return A.tweens.push(r),r},stop:function(t){var n=0,r=t?A.tweens.length:0;if(i)return this;for(i=!0;n<r;n++)A.tweens[n].run(1);return t?(a.notifyWith(e,[A,1,0]),a.resolveWith(e,[A,t])):a.rejectWith(e,[A,t]),this}}),c=A.props;for(function(e,t){var n,r,i,o,s;for(n in e)if(i=t[r=X(n)],o=e[n],Array.isArray(o)&&(i=o[1],o=e[n]=o[0]),n!==r&&(e[r]=o,delete e[n]),(s=E.cssHooks[r])&&"expand"in s)for(n in o=s.expand(o),delete e[r],o)n in e||(e[n]=o[n],t[n]=i);else t[r]=i}(c,A.opts.specialEasing);o<s;o++)if(r=ht.prefilters[o].call(A,e,c,A.opts))return m(r.stop)&&(E._queueHooks(A.elem,A.opts.queue).stop=r.stop.bind(r)),r;return E.map(c,ut,A),m(A.opts.start)&&A.opts.start.call(e,A),A.progress(A.opts.progress).done(A.opts.done,A.opts.complete).fail(A.opts.fail).always(A.opts.always),E.fx.timer(E.extend(l,{elem:e,anim:A,queue:A.opts.queue})),A}E.Animation=E.extend(ht,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return ce(n.elem,e,ie.exec(t),n),n}]},tweener:function(e,t){m(e)?(t=e,e=["*"]):e=e.match(M);for(var n,r=0,i=e.length;r<i;r++)(ht.tweeners[n=e[r]]=ht.tweeners[n]||[]).unshift(t)},prefilters:[function(e,t,n){var r,i,o,s,a,l,A,c,u="width"in t||"height"in t,h=this,d={},p=e.style,f=e.nodeType&&Ae(e),g=$.get(e,"fxshow");for(r in n.queue||(null==(s=E._queueHooks(e,"fx")).unqueued&&(s.unqueued=0,a=s.empty.fire,s.empty.fire=function(){s.unqueued||a()}),s.unqueued++,h.always(function(){h.always(function(){s.unqueued--,E.queue(e,"fx").length||s.empty.fire()})})),t)if(st.test(i=t[r])){if(delete t[r],o=o||"toggle"===i,i===(f?"hide":"show")){if("show"!==i||!g||void 0===g[r])continue;f=!0}d[r]=g&&g[r]||E.style(e,r)}if((l=!E.isEmptyObject(t))||!E.isEmptyObject(d))for(r in u&&1===e.nodeType&&(n.overflow=[p.overflow,p.overflowX,p.overflowY],null==(A=g&&g.display)&&(A=$.get(e,"display")),"none"===(c=E.css(e,"display"))&&(A?c=A:(de([e],!0),A=e.style.display||A,c=E.css(e,"display"),de([e]))),("inline"===c||"inline-block"===c&&null!=A)&&"none"===E.css(e,"float")&&(l||(h.done(function(){p.display=A}),null==A&&(A="none"===(c=p.display)?"":c)),p.display="inline-block")),n.overflow&&(p.overflow="hidden",h.always(function(){p.overflow=n.overflow[0],p.overflowX=n.overflow[1],p.overflowY=n.overflow[2]})),l=!1,d)l||(g?"hidden"in g&&(f=g.hidden):g=$.access(e,"fxshow",{display:A}),o&&(g.hidden=!f),f&&de([e],!0),h.done(function(){for(r in f||de([e]),$.remove(e,"fxshow"),d)E.style(e,r,d[r])})),l=ut(f?g[r]:0,r,h),r in g||(g[r]=l.start,f&&(l.end=l.start,l.start=0))}],prefilter:function(e,t){t?ht.prefilters.unshift(e):ht.prefilters.push(e)}}),E.speed=function(e,t,n){var r=e&&"object"==typeof e?E.extend({},e):{complete:n||!n&&t||m(e)&&e,duration:e,easing:n&&t||t&&!m(t)&&t};return E.fx.off?r.duration=0:"number"!=typeof r.duration&&(r.duration=r.duration in E.fx.speeds?E.fx.speeds[r.duration]:E.fx.speeds._default),null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){m(r.old)&&r.old.call(this),r.queue&&E.dequeue(this,r.queue)},r},E.fn.extend({fadeTo:function(e,t,n,r){return this.filter(Ae).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var i=E.isEmptyObject(e),o=E.speed(t,n,r),s=function(){var t=ht(this,E.extend({},e),o);(i||$.get(this,"finish"))&&t.stop(!0)};return s.finish=s,i||!1===o.queue?this.each(s):this.queue(o.queue,s)},stop:function(e,t,n){var r=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=t,t=e,e=void 0),t&&this.queue(e||"fx",[]),this.each(function(){var t=!0,i=null!=e&&e+"queueHooks",o=E.timers,s=$.get(this);if(i)s[i]&&s[i].stop&&r(s[i]);else for(i in s)s[i]&&s[i].stop&&at.test(i)&&r(s[i]);for(i=o.length;i--;)o[i].elem!==this||null!=e&&o[i].queue!==e||(o[i].anim.stop(n),t=!1,o.splice(i,1));!t&&n||E.dequeue(this,e)})},finish:function(e){return!1!==e&&(e=e||"fx"),this.each(function(){var t,n=$.get(this),r=n[e+"queue"],i=n[e+"queueHooks"],o=E.timers,s=r?r.length:0;for(n.finish=!0,E.queue(this,e,[]),i&&i.stop&&i.stop.call(this,!0),t=o.length;t--;)o[t].elem===this&&o[t].queue===e&&(o[t].anim.stop(!0),o.splice(t,1));for(t=0;t<s;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete n.finish})}}),E.each(["toggle","show","hide"],function(e,t){var n=E.fn[t];E.fn[t]=function(e,r,i){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(ct(t,!0),e,r,i)}}),E.each({slideDown:ct("show"),slideUp:ct("hide"),slideToggle:ct("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){E.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}}),E.timers=[],E.fx.tick=function(){var e,t=0,n=E.timers;for(it=Date.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||E.fx.stop(),it=void 0},E.fx.timer=function(e){E.timers.push(e),E.fx.start()},E.fx.interval=13,E.fx.start=function(){ot||(ot=!0,lt())},E.fx.stop=function(){ot=null},E.fx.speeds={slow:600,fast:200,_default:400},E.fn.delay=function(e,t){return e=E.fx&&E.fx.speeds[e]||e,this.queue(t=t||"fx",function(t,n){var i=r.setTimeout(t,e);n.stop=function(){r.clearTimeout(i)}})},function(){var e=w.createElement("input"),t=w.createElement("select").appendChild(w.createElement("option"));e.type="checkbox",g.checkOn=""!==e.value,g.optSelected=t.selected,(e=w.createElement("input")).value="t",e.type="radio",g.radioValue="t"===e.value}();var dt,pt=E.expr.attrHandle;E.fn.extend({attr:function(e,t){return j(this,E.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){E.removeAttr(this,e)})}}),E.extend({attr:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===e.getAttribute?E.prop(e,t,n):(1===o&&E.isXMLDoc(e)||(i=E.attrHooks[t.toLowerCase()]||(E.expr.match.bool.test(t)?dt:void 0)),void 0!==n?null===n?void E.removeAttr(e,t):i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:(e.setAttribute(t,n+""),n):i&&"get"in i&&null!==(r=i.get(e,t))?r:null==(r=E.find.attr(e,t))?void 0:r)},attrHooks:{type:{set:function(e,t){if(!g.radioValue&&"radio"===t&&S(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,r=0,i=t&&t.match(M);if(i&&1===e.nodeType)for(;n=i[r++];)e.removeAttribute(n)}}),dt={set:function(e,t,n){return!1===t?E.removeAttr(e,n):e.setAttribute(n,n),n}},E.each(E.expr.match.bool.source.match(/\w+/g),function(e,t){var n=pt[t]||E.find.attr;pt[t]=function(e,t,r){var i,o,s=t.toLowerCase();return r||(o=pt[s],pt[s]=i,i=null!=n(e,t,r)?s:null,pt[s]=o),i}});var ft=/^(?:input|select|textarea|button)$/i,gt=/^(?:a|area)$/i;function mt(e){return(e.match(M)||[]).join(" ")}function yt(e){return e.getAttribute&&e.getAttribute("class")||""}function wt(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(M)||[]}E.fn.extend({prop:function(e,t){return j(this,E.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each(function(){delete this[E.propFix[e]||e]})}}),E.extend({prop:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&E.isXMLDoc(e)||(i=E.propHooks[t=E.propFix[t]||t]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:e[t]=n:i&&"get"in i&&null!==(r=i.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=E.find.attr(e,"tabindex");return t?parseInt(t,10):ft.test(e.nodeName)||gt.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),g.optSelected||(E.propHooks.selected={get:function(e){return null},set:function(e){}}),E.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){E.propFix[this.toLowerCase()]=this}),E.fn.extend({addClass:function(e){var t,n,r,i,o,s,a,l=0;if(m(e))return this.each(function(t){E(this).addClass(e.call(this,t,yt(this)))});if((t=wt(e)).length)for(;n=this[l++];)if(i=yt(n),r=1===n.nodeType&&" "+mt(i)+" "){for(s=0;o=t[s++];)r.indexOf(" "+o+" ")<0&&(r+=o+" ");i!==(a=mt(r))&&n.setAttribute("class",a)}return this},removeClass:function(e){var t,n,r,i,o,s,a,l=0;if(m(e))return this.each(function(t){E(this).removeClass(e.call(this,t,yt(this)))});if(!arguments.length)return this.attr("class","");if((t=wt(e)).length)for(;n=this[l++];)if(i=yt(n),r=1===n.nodeType&&" "+mt(i)+" "){for(s=0;o=t[s++];)for(;r.indexOf(" "+o+" ")>-1;)r=r.replace(" "+o+" "," ");i!==(a=mt(r))&&n.setAttribute("class",a)}return this},toggleClass:function(e,t){var n=typeof e,r="string"===n||Array.isArray(e);return"boolean"==typeof t&&r?t?this.addClass(e):this.removeClass(e):m(e)?this.each(function(n){E(this).toggleClass(e.call(this,n,yt(this),t),t)}):this.each(function(){var t,i,o,s;if(r)for(i=0,o=E(this),s=wt(e);t=s[i++];)o.hasClass(t)?o.removeClass(t):o.addClass(t);else void 0!==e&&"boolean"!==n||((t=yt(this))&&$.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||!1===e?"":$.get(this,"__className__")||""))})},hasClass:function(e){var t,n,r=0;for(t=" "+e+" ";n=this[r++];)if(1===n.nodeType&&(" "+mt(yt(n))+" ").indexOf(t)>-1)return!0;return!1}});var vt=/\r/g;E.fn.extend({val:function(e){var t,n,r,i=this[0];return arguments.length?(r=m(e),this.each(function(n){var i;1===this.nodeType&&(null==(i=r?e.call(this,n,E(this).val()):e)?i="":"number"==typeof i?i+="":Array.isArray(i)&&(i=E.map(i,function(e){return null==e?"":e+""})),(t=E.valHooks[this.type]||E.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,i,"value")||(this.value=i))})):i?(t=E.valHooks[i.type]||E.valHooks[i.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(i,"value"))?n:"string"==typeof(n=i.value)?n.replace(vt,""):null==n?"":n:void 0}}),E.extend({valHooks:{option:{get:function(e){var t=E.find.attr(e,"value");return null!=t?t:mt(E.text(e))}},select:{get:function(e){var t,n,r,i=e.options,o=e.selectedIndex,s="select-one"===e.type,a=s?null:[],l=s?o+1:i.length;for(r=o<0?l:s?o:0;r<l;r++)if(((n=i[r]).selected||r===o)&&!n.disabled&&(!n.parentNode.disabled||!S(n.parentNode,"optgroup"))){if(t=E(n).val(),s)return t;a.push(t)}return a},set:function(e,t){for(var n,r,i=e.options,o=E.makeArray(t),s=i.length;s--;)((r=i[s]).selected=E.inArray(E.valHooks.option.get(r),o)>-1)&&(n=!0);return n||(e.selectedIndex=-1),o}}}}),E.each(["radio","checkbox"],function(){E.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=E.inArray(E(e).val(),t)>-1}},g.checkOn||(E.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})}),g.focusin="onfocusin"in r;var bt=/^(?:focusinfocus|focusoutblur)$/,Ct=function(e){e.stopPropagation()};E.extend(E.event,{trigger:function(e,t,n,i){var o,s,a,l,A,c,u,h,p=[n||w],f=d.call(e,"type")?e.type:e,g=d.call(e,"namespace")?e.namespace.split("."):[];if(s=h=a=n=n||w,3!==n.nodeType&&8!==n.nodeType&&!bt.test(f+E.event.triggered)&&(f.indexOf(".")>-1&&(g=f.split("."),f=g.shift(),g.sort()),A=f.indexOf(":")<0&&"on"+f,(e=e[E.expando]?e:new E.Event(f,"object"==typeof e&&e)).isTrigger=i?2:3,e.namespace=g.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+g.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=n),t=null==t?[e]:E.makeArray(t,[e]),u=E.event.special[f]||{},i||!u.trigger||!1!==u.trigger.apply(n,t))){if(!i&&!u.noBubble&&!y(n)){for(bt.test((l=u.delegateType||f)+f)||(s=s.parentNode);s;s=s.parentNode)p.push(s),a=s;a===(n.ownerDocument||w)&&p.push(a.defaultView||a.parentWindow||r)}for(o=0;(s=p[o++])&&!e.isPropagationStopped();)h=s,e.type=o>1?l:u.bindType||f,(c=($.get(s,"events")||Object.create(null))[e.type]&&$.get(s,"handle"))&&c.apply(s,t),(c=A&&s[A])&&c.apply&&J(s)&&(e.result=c.apply(s,t),!1===e.result&&e.preventDefault());return e.type=f,i||e.isDefaultPrevented()||u._default&&!1!==u._default.apply(p.pop(),t)||!J(n)||A&&m(n[f])&&!y(n)&&((a=n[A])&&(n[A]=null),E.event.triggered=f,e.isPropagationStopped()&&h.addEventListener(f,Ct),n[f](),e.isPropagationStopped()&&h.removeEventListener(f,Ct),E.event.triggered=void 0,a&&(n[A]=a)),e.result}},simulate:function(e,t,n){var r=E.extend(new E.Event,n,{type:e,isSimulated:!0});E.event.trigger(r,null,t)}}),E.fn.extend({trigger:function(e,t){return this.each(function(){E.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return E.event.trigger(e,t,n,!0)}}),g.focusin||E.each({focus:"focusin",blur:"focusout"},function(e,t){var n=function(e){E.event.simulate(t,e.target,E.event.fix(e))};E.event.special[t]={setup:function(){var r=this.ownerDocument||this.document||this,i=$.access(r,t);i||r.addEventListener(e,n,!0),$.access(r,t,(i||0)+1)},teardown:function(){var r=this.ownerDocument||this.document||this,i=$.access(r,t)-1;i?$.access(r,t,i):(r.removeEventListener(e,n,!0),$.remove(r,t))}}});var Bt=r.location,Et={guid:Date.now()},_t=/\?/;E.parseXML=function(e){var t,n;if(!e||"string"!=typeof e)return null;try{t=(new r.DOMParser).parseFromString(e,"text/xml")}catch(i){}return n=t&&t.getElementsByTagName("parsererror")[0],t&&!n||E.error("Invalid XML: "+(n?E.map(n.childNodes,function(e){return e.textContent}).join("\n"):e)),t};var Ft=/\[\]$/,xt=/\r?\n/g,Tt=/^(?:submit|button|image|reset|file)$/i,Qt=/^(?:input|select|textarea|keygen)/i;function St(e,t,n,r){var i;if(Array.isArray(t))E.each(t,function(t,i){n||Ft.test(e)?r(e,i):St(e+"["+("object"==typeof i&&null!=i?t:"")+"]",i,n,r)});else if(n||"object"!==C(t))r(e,t);else for(i in t)St(e+"["+i+"]",t[i],n,r)}E.param=function(e,t){var n,r=[],i=function(e,t){var n=m(t)?t():t;r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!E.isPlainObject(e))E.each(e,function(){i(this.name,this.value)});else for(n in e)St(n,e[n],t,i);return r.join("&")},E.fn.extend({serialize:function(){return E.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=E.prop(this,"elements");return e?E.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!E(this).is(":disabled")&&Qt.test(this.nodeName)&&!Tt.test(e)&&(this.checked||!ge.test(e))}).map(function(e,t){var n=E(this).val();return null==n?null:Array.isArray(n)?E.map(n,function(e){return{name:t.name,value:e.replace(xt,"\r\n")}}):{name:t.name,value:n.replace(xt,"\r\n")}}).get()}});var kt=/%20/g,Ut=/#.*$/,Dt=/([?&])_=[^&]*/,Ot=/^(.*?):[ \t]*([^\r\n]*)$/gm,Lt=/^(?:GET|HEAD)$/,It=/^\/\//,Ht={},Mt={},Rt="*/".concat("*"),Nt=w.createElement("a");function Pt(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var r,i=0,o=t.toLowerCase().match(M)||[];if(m(n))for(;r=o[i++];)"+"===r[0]?(r=r.slice(1)||"*",(e[r]=e[r]||[]).unshift(n)):(e[r]=e[r]||[]).push(n)}}function Kt(e,t,n,r){var i={},o=e===Mt;function s(a){var l;return i[a]=!0,E.each(e[a]||[],function(e,a){var A=a(t,n,r);return"string"!=typeof A||o||i[A]?o?!(l=A):void 0:(t.dataTypes.unshift(A),s(A),!1)}),l}return s(t.dataTypes[0])||!i["*"]&&s("*")}function Vt(e,t){var n,r,i=E.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((i[n]?e:r||(r={}))[n]=t[n]);return r&&E.extend(!0,e,r),e}Nt.href=Bt.href,E.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Bt.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Bt.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Rt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":E.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Vt(Vt(e,E.ajaxSettings),t):Vt(E.ajaxSettings,e)},ajaxPrefilter:Pt(Ht),ajaxTransport:Pt(Mt),ajax:function(e,t){"object"==typeof e&&(t=e,e=void 0);var n,i,o,s,a,l,A,c,u,h,d=E.ajaxSetup({},t=t||{}),p=d.context||d,f=d.context&&(p.nodeType||p.jquery)?E(p):E.event,g=E.Deferred(),m=E.Callbacks("once memory"),y=d.statusCode||{},v={},b={},C="canceled",B={readyState:0,getResponseHeader:function(e){var t;if(A){if(!s)for(s={};t=Ot.exec(o);)s[t[1].toLowerCase()+" "]=(s[t[1].toLowerCase()+" "]||[]).concat(t[2]);t=s[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return A?o:null},setRequestHeader:function(e,t){return null==A&&(e=b[e.toLowerCase()]=b[e.toLowerCase()]||e,v[e]=t),this},overrideMimeType:function(e){return null==A&&(d.mimeType=e),this},statusCode:function(e){var t;if(e)if(A)B.always(e[B.status]);else for(t in e)y[t]=[y[t],e[t]];return this},abort:function(e){var t=e||C;return n&&n.abort(t),_(0,t),this}};if(g.promise(B),d.url=((e||d.url||Bt.href)+"").replace(It,Bt.protocol+"//"),d.type=t.method||t.type||d.method||d.type,d.dataTypes=(d.dataType||"*").toLowerCase().match(M)||[""],null==d.crossDomain){l=w.createElement("a");try{l.href=d.url,l.href=l.href,d.crossDomain=Nt.protocol+"//"+Nt.host!=l.protocol+"//"+l.host}catch(F){d.crossDomain=!0}}if(d.data&&d.processData&&"string"!=typeof d.data&&(d.data=E.param(d.data,d.traditional)),Kt(Ht,d,t,B),A)return B;for(u in(c=E.event&&d.global)&&0==E.active++&&E.event.trigger("ajaxStart"),d.type=d.type.toUpperCase(),d.hasContent=!Lt.test(d.type),i=d.url.replace(Ut,""),d.hasContent?d.data&&d.processData&&0===(d.contentType||"").indexOf("application/x-www-form-urlencoded")&&(d.data=d.data.replace(kt,"+")):(h=d.url.slice(i.length),d.data&&(d.processData||"string"==typeof d.data)&&(i+=(_t.test(i)?"&":"?")+d.data,delete d.data),!1===d.cache&&(i=i.replace(Dt,"$1"),h=(_t.test(i)?"&":"?")+"_="+Et.guid+++h),d.url=i+h),d.ifModified&&(E.lastModified[i]&&B.setRequestHeader("If-Modified-Since",E.lastModified[i]),E.etag[i]&&B.setRequestHeader("If-None-Match",E.etag[i])),(d.data&&d.hasContent&&!1!==d.contentType||t.contentType)&&B.setRequestHeader("Content-Type",d.contentType),B.setRequestHeader("Accept",d.dataTypes[0]&&d.accepts[d.dataTypes[0]]?d.accepts[d.dataTypes[0]]+("*"!==d.dataTypes[0]?", "+Rt+"; q=0.01":""):d.accepts["*"]),d.headers)B.setRequestHeader(u,d.headers[u]);if(d.beforeSend&&(!1===d.beforeSend.call(p,B,d)||A))return B.abort();if(C="abort",m.add(d.complete),B.done(d.success),B.fail(d.error),n=Kt(Mt,d,t,B)){if(B.readyState=1,c&&f.trigger("ajaxSend",[B,d]),A)return B;d.async&&d.timeout>0&&(a=r.setTimeout(function(){B.abort("timeout")},d.timeout));try{A=!1,n.send(v,_)}catch(F){if(A)throw F;_(-1,F)}}else _(-1,"No Transport");function _(e,t,s,l){var u,h,w,v,b,C=t;A||(A=!0,a&&r.clearTimeout(a),n=void 0,o=l||"",B.readyState=e>0?4:0,u=e>=200&&e<300||304===e,s&&(v=function(e,t,n){for(var r,i,o,s,a=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(i in a)if(a[i]&&a[i].test(r)){l.unshift(i);break}if(l[0]in n)o=l[0];else{for(i in n){if(!l[0]||e.converters[i+" "+l[0]]){o=i;break}s||(s=i)}o=o||s}if(o)return o!==l[0]&&l.unshift(o),n[o]}(d,B,s)),!u&&E.inArray("script",d.dataTypes)>-1&&E.inArray("json",d.dataTypes)<0&&(d.converters["text script"]=function(){}),v=function(e,t,n,r){var i,o,s,a,l,A={},c=e.dataTypes.slice();if(c[1])for(s in e.converters)A[s.toLowerCase()]=e.converters[s];for(o=c.shift();o;)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!l&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=o,o=c.shift())if("*"===o)o=l;else if("*"!==l&&l!==o){if(!(s=A[l+" "+o]||A["* "+o]))for(i in A)if((a=i.split(" "))[1]===o&&(s=A[l+" "+a[0]]||A["* "+a[0]])){!0===s?s=A[i]:!0!==A[i]&&(o=a[0],c.unshift(a[1]));break}if(!0!==s)if(s&&e.throws)t=s(t);else try{t=s(t)}catch(F){return{state:"parsererror",error:s?F:"No conversion from "+l+" to "+o}}}return{state:"success",data:t}}(d,v,B,u),u?(d.ifModified&&((b=B.getResponseHeader("Last-Modified"))&&(E.lastModified[i]=b),(b=B.getResponseHeader("etag"))&&(E.etag[i]=b)),204===e||"HEAD"===d.type?C="nocontent":304===e?C="notmodified":(C=v.state,h=v.data,u=!(w=v.error))):(w=C,!e&&C||(C="error",e<0&&(e=0))),B.status=e,B.statusText=(t||C)+"",u?g.resolveWith(p,[h,C,B]):g.rejectWith(p,[B,C,w]),B.statusCode(y),y=void 0,c&&f.trigger(u?"ajaxSuccess":"ajaxError",[B,d,u?h:w]),m.fireWith(p,[B,C]),c&&(f.trigger("ajaxComplete",[B,d]),--E.active||E.event.trigger("ajaxStop")))}return B},getJSON:function(e,t,n){return E.get(e,t,n,"json")},getScript:function(e,t){return E.get(e,void 0,t,"script")}}),E.each(["get","post"],function(e,t){E[t]=function(e,n,r,i){return m(n)&&(i=i||r,r=n,n=void 0),E.ajax(E.extend({url:e,type:t,dataType:i,data:n,success:r},E.isPlainObject(e)&&e))}}),E.ajaxPrefilter(function(e){var t;for(t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")}),E._evalUrl=function(e,t,n){return E.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){E.globalEval(e,t,n)}})},E.fn.extend({wrapAll:function(e){var t;return this[0]&&(m(e)&&(e=e.call(this[0])),t=E(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e}).append(this)),this},wrapInner:function(e){return m(e)?this.each(function(t){E(this).wrapInner(e.call(this,t))}):this.each(function(){var t=E(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=m(e);return this.each(function(n){E(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(e){return this.parent(e).not("body").each(function(){E(this).replaceWith(this.childNodes)}),this}}),E.expr.pseudos.hidden=function(e){return!E.expr.pseudos.visible(e)},E.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},E.ajaxSettings.xhr=function(){try{return new r.XMLHttpRequest}catch(e){}};var Gt={0:200,1223:204},jt=E.ajaxSettings.xhr();g.cors=!!jt&&"withCredentials"in jt,g.ajax=jt=!!jt,E.ajaxTransport(function(e){var t,n;if(g.cors||jt&&!e.crossDomain)return{send:function(i,o){var s,a=e.xhr();if(a.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(s in e.xhrFields)a[s]=e.xhrFields[s];for(s in e.mimeType&&a.overrideMimeType&&a.overrideMimeType(e.mimeType),e.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest"),i)a.setRequestHeader(s,i[s]);t=function(e){return function(){t&&(t=n=a.onload=a.onerror=a.onabort=a.ontimeout=a.onreadystatechange=null,"abort"===e?a.abort():"error"===e?"number"!=typeof a.status?o(0,"error"):o(a.status,a.statusText):o(Gt[a.status]||a.status,a.statusText,"text"!==(a.responseType||"text")||"string"!=typeof a.responseText?{binary:a.response}:{text:a.responseText},a.getAllResponseHeaders()))}},a.onload=t(),n=a.onerror=a.ontimeout=t("error"),void 0!==a.onabort?a.onabort=n:a.onreadystatechange=function(){4===a.readyState&&r.setTimeout(function(){t&&n()})},t=t("abort");try{a.send(e.hasContent&&e.data||null)}catch(l){if(t)throw l}},abort:function(){t&&t()}}}),E.ajaxPrefilter(function(e){e.crossDomain&&(e.contents.script=!1)}),E.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return E.globalEval(e),e}}}),E.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),E.ajaxTransport("script",function(e){var t,n;if(e.crossDomain||e.scriptAttrs)return{send:function(r,i){t=E("<script>").attr(e.scriptAttrs||{}).prop({charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&i("error"===e.type?404:200,e.type)}),w.head.appendChild(t[0])},abort:function(){n&&n()}}});var qt,zt=[],Wt=/(=)\?(?=&|$)|\?\?/;E.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=zt.pop()||E.expando+"_"+Et.guid++;return this[e]=!0,e}}),E.ajaxPrefilter("json jsonp",function(e,t,n){var i,o,s,a=!1!==e.jsonp&&(Wt.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Wt.test(e.data)&&"data");if(a||"jsonp"===e.dataTypes[0])return i=e.jsonpCallback=m(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(Wt,"$1"+i):!1!==e.jsonp&&(e.url+=(_t.test(e.url)?"&":"?")+e.jsonp+"="+i),e.converters["script json"]=function(){return s||E.error(i+" was not called"),s[0]},e.dataTypes[0]="json",o=r[i],r[i]=function(){s=arguments},n.always(function(){void 0===o?E(r).removeProp(i):r[i]=o,e[i]&&(e.jsonpCallback=t.jsonpCallback,zt.push(i)),s&&m(o)&&o(s[0]),s=o=void 0}),"script"}),g.createHTMLDocument=((qt=w.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===qt.childNodes.length),E.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(g.createHTMLDocument?((r=(t=w.implementation.createHTMLDocument("")).createElement("base")).href=w.location.href,t.head.appendChild(r)):t=w),o=!n&&[],(i=k.exec(e))?[t.createElement(i[1])]:(i=Be([e],t,o),o&&o.length&&E(o).remove(),E.merge([],i.childNodes)));var r,i,o},E.fn.load=function(e,t,n){var r,i,o,s=this,a=e.indexOf(" ");return a>-1&&(r=mt(e.slice(a)),e=e.slice(0,a)),m(t)?(n=t,t=void 0):t&&"object"==typeof t&&(i="POST"),s.length>0&&E.ajax({url:e,type:i||"GET",dataType:"html",data:t}).done(function(e){o=arguments,s.html(r?E("<div>").append(E.parseHTML(e)).find(r):e)}).always(n&&function(e,t){s.each(function(){n.apply(this,o||[e.responseText,t,e])})}),this},E.expr.pseudos.animated=function(e){return E.grep(E.timers,function(t){return e===t.elem}).length},E.offset={setOffset:function(e,t,n){var r,i,o,s,a,l,A=E.css(e,"position"),c=E(e),u={};"static"===A&&(e.style.position="relative"),a=c.offset(),o=E.css(e,"top"),l=E.css(e,"left"),("absolute"===A||"fixed"===A)&&(o+l).indexOf("auto")>-1?(s=(r=c.position()).top,i=r.left):(s=parseFloat(o)||0,i=parseFloat(l)||0),m(t)&&(t=t.call(e,n,E.extend({},a))),null!=t.top&&(u.top=t.top-a.top+s),null!=t.left&&(u.left=t.left-a.left+i),"using"in t?t.using.call(e,u):c.css(u)}},E.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each(function(t){E.offset.setOffset(this,e,t)});var t,n,r=this[0];return r?r.getClientRects().length?{top:(t=r.getBoundingClientRect()).top+(n=r.ownerDocument.defaultView).pageYOffset,left:t.left+n.pageXOffset}:{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,r=this[0],i={top:0,left:0};if("fixed"===E.css(r,"position"))t=r.getBoundingClientRect();else{for(t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;e&&(e===n.body||e===n.documentElement)&&"static"===E.css(e,"position");)e=e.parentNode;e&&e!==r&&1===e.nodeType&&((i=E(e).offset()).top+=E.css(e,"borderTopWidth",!0),i.left+=E.css(e,"borderLeftWidth",!0))}return{top:t.top-i.top-E.css(r,"marginTop",!0),left:t.left-i.left-E.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&"static"===E.css(e,"position");)e=e.offsetParent;return e||se})}}),E.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,t){var n="pageYOffset"===t;E.fn[e]=function(r){return j(this,function(e,r,i){var o;if(y(e)?o=e:9===e.nodeType&&(o=e.defaultView),void 0===i)return o?o[t]:e[r];o?o.scrollTo(n?o.pageXOffset:i,n?i:o.pageYOffset):e[r]=i},e,r,arguments.length)}}),E.each(["top","left"],function(e,t){E.cssHooks[t]=je(g.pixelPosition,function(e,n){if(n)return n=Ge(e,t),Ne.test(n)?E(e).position()[t]+"px":n})}),E.each({Height:"height",Width:"width"},function(e,t){E.each({padding:"inner"+e,content:t,"":"outer"+e},function(n,r){E.fn[r]=function(i,o){var s=arguments.length&&(n||"boolean"!=typeof i),a=n||(!0===i||!0===o?"margin":"border");return j(this,function(t,n,i){var o;return y(t)?0===r.indexOf("outer")?t["inner"+e]:t.document.documentElement["client"+e]:9===t.nodeType?(o=t.documentElement,Math.max(t.body["scroll"+e],o["scroll"+e],t.body["offset"+e],o["offset"+e],o["client"+e])):void 0===i?E.css(t,n,a):E.style(t,n,i,a)},t,s?i:void 0,s)}})}),E.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){E.fn[t]=function(e){return this.on(t,e)}}),E.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),E.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,t){E.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}});var Xt=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;E.proxy=function(e,t){var n,r,i;if("string"==typeof t&&(n=e[t],t=e,e=n),m(e))return r=a.call(arguments,2),(i=function(){return e.apply(t||this,r.concat(a.call(arguments)))}).guid=e.guid=e.guid||E.guid++,i},E.holdReady=function(e){e?E.readyWait++:E.ready(!0)},E.isArray=Array.isArray,E.parseJSON=JSON.parse,E.nodeName=S,E.isFunction=m,E.isWindow=y,E.camelCase=X,E.type=C,E.now=Date.now,E.isNumeric=function(e){var t=E.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},E.trim=function(e){return null==e?"":(e+"").replace(Xt,"")},void 0===(n=(function(){return E}).apply(t,[]))||(e.exports=n);var Jt=r.jQuery,Yt=r.$;return E.noConflict=function(e){return r.$===E&&(r.$=Yt),e&&r.jQuery===E&&(r.jQuery=Jt),E},void 0===i&&(r.jQuery=r.$=E),E})},815:function(e,t,n){var r;e=n.nmd(e),(function(){var i,o="Expected a function",s="__lodash_hash_undefined__",a="__lodash_placeholder__",l=32,A=128,c=1/0,u=9007199254740991,h=NaN,d=4294967295,p=[["ary",A],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",l],["partialRight",64],["rearg",256]],f="[object Arguments]",g="[object Array]",m="[object Boolean]",y="[object Date]",w="[object Error]",v="[object Function]",b="[object GeneratorFunction]",C="[object Map]",B="[object Number]",E="[object Object]",_="[object Promise]",F="[object RegExp]",x="[object Set]",T="[object String]",Q="[object Symbol]",S="[object WeakMap]",k="[object ArrayBuffer]",U="[object DataView]",D="[object Float32Array]",O="[object Float64Array]",L="[object Int8Array]",I="[object Int16Array]",H="[object Int32Array]",M="[object Uint8Array]",R="[object Uint8ClampedArray]",N="[object Uint16Array]",P="[object Uint32Array]",K=/\b__p \+= '';/g,V=/\b(__p \+=) '' \+/g,G=/(__e\(.*?\)|\b__t\)) \+\n'';/g,j=/&(?:amp|lt|gt|quot|#39);/g,q=/[&<>"']/g,z=RegExp(j.source),W=RegExp(q.source),X=/<%-([\s\S]+?)%>/g,J=/<%([\s\S]+?)%>/g,Y=/<%=([\s\S]+?)%>/g,$=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Z=/^\w*$/,ee=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,te=/[\\^$.*+?()[\]{}|]/g,ne=RegExp(te.source),re=/^\s+/,ie=/\s/,oe=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,se=/\{\n\/\* \[wrapped with (.+)\] \*/,ae=/,? & /,le=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Ae=/[()=,{}\[\]\/\s]/,ce=/\\(\\)?/g,ue=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,he=/\w*$/,de=/^[-+]0x[0-9a-f]+$/i,pe=/^0b[01]+$/i,fe=/^\[object .+?Constructor\]$/,ge=/^0o[0-7]+$/i,me=/^(?:0|[1-9]\d*)$/,ye=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,we=/($^)/,ve=/['\n\r\u2028\u2029\\]/g,be="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Ce="a-z\\xdf-\\xf6\\xf8-\\xff",Be="A-Z\\xc0-\\xd6\\xd8-\\xde",Ee="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",_e="["+Ee+"]",Fe="["+be+"]",xe="\\d+",Te="["+Ce+"]",Qe="[^\\ud800-\\udfff"+Ee+xe+"\\u2700-\\u27bf"+Ce+Be+"]",Se="\\ud83c[\\udffb-\\udfff]",ke="[^\\ud800-\\udfff]",Ue="(?:\\ud83c[\\udde6-\\uddff]){2}",De="[\\ud800-\\udbff][\\udc00-\\udfff]",Oe="["+Be+"]",Le="(?:"+Te+"|"+Qe+")",Ie="(?:"+Oe+"|"+Qe+")",He="(?:['\u2019](?:d|ll|m|re|s|t|ve))?",Me="(?:['\u2019](?:D|LL|M|RE|S|T|VE))?",Re="(?:"+Fe+"|"+Se+")?",Ne="[\\ufe0e\\ufe0f]?",Pe=Ne+Re+"(?:\\u200d(?:"+[ke,Ue,De].join("|")+")"+Ne+Re+")*",Ke="(?:"+["[\\u2700-\\u27bf]",Ue,De].join("|")+")"+Pe,Ve="(?:"+[ke+Fe+"?",Fe,Ue,De,"[\\ud800-\\udfff]"].join("|")+")",Ge=RegExp("['\u2019]","g"),je=RegExp(Fe,"g"),qe=RegExp(Se+"(?="+Se+")|"+Ve+Pe,"g"),ze=RegExp([Oe+"?"+Te+"+"+He+"(?="+[_e,Oe,"$"].join("|")+")",Ie+"+"+Me+"(?="+[_e,Oe+Le,"$"].join("|")+")",Oe+"?"+Le+"+"+He,Oe+"+"+Me,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",xe,Ke].join("|"),"g"),We=RegExp("[\\u200d\\ud800-\\udfff"+be+"\\ufe0e\\ufe0f]"),Xe=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Je=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Ye=-1,$e={};$e[D]=$e[O]=$e[L]=$e[I]=$e[H]=$e[M]=$e[R]=$e[N]=$e[P]=!0,$e[f]=$e[g]=$e[k]=$e[m]=$e[U]=$e[y]=$e[w]=$e[v]=$e[C]=$e[B]=$e[E]=$e[F]=$e[x]=$e[T]=$e[S]=!1;var Ze={};Ze[f]=Ze[g]=Ze[k]=Ze[U]=Ze[m]=Ze[y]=Ze[D]=Ze[O]=Ze[L]=Ze[I]=Ze[H]=Ze[C]=Ze[B]=Ze[E]=Ze[F]=Ze[x]=Ze[T]=Ze[Q]=Ze[M]=Ze[R]=Ze[N]=Ze[P]=!0,Ze[w]=Ze[v]=Ze[S]=!1;var et={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},tt=parseFloat,nt=parseInt,rt="object"==typeof global&&global&&global.Object===Object&&global,it="object"==typeof self&&self&&self.Object===Object&&self,ot=rt||it||Function("return this")(),st=t&&!t.nodeType&&t,at=st&&e&&!e.nodeType&&e,lt=at&&at.exports===st,At=lt&&rt.process,ct=function(){try{return at&&at.require&&at.require("util").types||At&&At.binding&&At.binding("util")}catch(e){}}(),ut=ct&&ct.isArrayBuffer,ht=ct&&ct.isDate,dt=ct&&ct.isMap,pt=ct&&ct.isRegExp,ft=ct&&ct.isSet,gt=ct&&ct.isTypedArray;function mt(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function yt(e,t,n,r){for(var i=-1,o=null==e?0:e.length;++i<o;){var s=e[i];t(r,s,n(s),e)}return r}function wt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function vt(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function bt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function Ct(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var s=e[n];t(s,n,e)&&(o[i++]=s)}return o}function Bt(e,t){return!(null==e||!e.length)&&Dt(e,t,0)>-1}function Et(e,t,n){for(var r=-1,i=null==e?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}function _t(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}function Ft(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}function xt(e,t,n,r){var i=-1,o=null==e?0:e.length;for(r&&o&&(n=e[++i]);++i<o;)n=t(n,e[i],i,e);return n}function Tt(e,t,n,r){var i=null==e?0:e.length;for(r&&i&&(n=e[--i]);i--;)n=t(n,e[i],i,e);return n}function Qt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var St=Ht("length");function kt(e,t,n){var r;return n(e,function(e,n,i){if(t(e,n,i))return r=n,!1}),r}function Ut(e,t,n,r){for(var i=e.length,o=n+(r?1:-1);r?o--:++o<i;)if(t(e[o],o,e))return o;return-1}function Dt(e,t,n){return t==t?function(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}(e,t,n):Ut(e,Lt,n)}function Ot(e,t,n,r){for(var i=n-1,o=e.length;++i<o;)if(r(e[i],t))return i;return-1}function Lt(e){return e!=e}function It(e,t){var n=null==e?0:e.length;return n?Nt(e,t)/n:h}function Ht(e){return function(t){return null==t?i:t[e]}}function Mt(e){return function(t){return null==e?i:e[t]}}function Rt(e,t,n,r,i){return i(e,function(e,i,o){n=r?(r=!1,e):t(n,e,i,o)}),n}function Nt(e,t){for(var n,r=-1,o=e.length;++r<o;){var s=t(e[r]);s!==i&&(n=n===i?s:n+s)}return n}function Pt(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function Kt(e){return e?e.slice(0,an(e)+1).replace(re,""):e}function Vt(e){return function(t){return e(t)}}function Gt(e,t){return _t(t,function(t){return e[t]})}function jt(e,t){return e.has(t)}function qt(e,t){for(var n=-1,r=e.length;++n<r&&Dt(t,e[n],0)>-1;);return n}function zt(e,t){for(var n=e.length;n--&&Dt(t,e[n],0)>-1;);return n}function Wt(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}var Xt=Mt({"\xc0":"A","\xc1":"A","\xc2":"A","\xc3":"A","\xc4":"A","\xc5":"A","\xe0":"a","\xe1":"a","\xe2":"a","\xe3":"a","\xe4":"a","\xe5":"a","\xc7":"C","\xe7":"c","\xd0":"D","\xf0":"d","\xc8":"E","\xc9":"E","\xca":"E","\xcb":"E","\xe8":"e","\xe9":"e","\xea":"e","\xeb":"e","\xcc":"I","\xcd":"I","\xce":"I","\xcf":"I","\xec":"i","\xed":"i","\xee":"i","\xef":"i","\xd1":"N","\xf1":"n","\xd2":"O","\xd3":"O","\xd4":"O","\xd5":"O","\xd6":"O","\xd8":"O","\xf2":"o","\xf3":"o","\xf4":"o","\xf5":"o","\xf6":"o","\xf8":"o","\xd9":"U","\xda":"U","\xdb":"U","\xdc":"U","\xf9":"u","\xfa":"u","\xfb":"u","\xfc":"u","\xdd":"Y","\xfd":"y","\xff":"y","\xc6":"Ae","\xe6":"ae","\xde":"Th","\xfe":"th","\xdf":"ss","\u0100":"A","\u0102":"A","\u0104":"A","\u0101":"a","\u0103":"a","\u0105":"a","\u0106":"C","\u0108":"C","\u010a":"C","\u010c":"C","\u0107":"c","\u0109":"c","\u010b":"c","\u010d":"c","\u010e":"D","\u0110":"D","\u010f":"d","\u0111":"d","\u0112":"E","\u0114":"E","\u0116":"E","\u0118":"E","\u011a":"E","\u0113":"e","\u0115":"e","\u0117":"e","\u0119":"e","\u011b":"e","\u011c":"G","\u011e":"G","\u0120":"G","\u0122":"G","\u011d":"g","\u011f":"g","\u0121":"g","\u0123":"g","\u0124":"H","\u0126":"H","\u0125":"h","\u0127":"h","\u0128":"I","\u012a":"I","\u012c":"I","\u012e":"I","\u0130":"I","\u0129":"i","\u012b":"i","\u012d":"i","\u012f":"i","\u0131":"i","\u0134":"J","\u0135":"j","\u0136":"K","\u0137":"k","\u0138":"k","\u0139":"L","\u013b":"L","\u013d":"L","\u013f":"L","\u0141":"L","\u013a":"l","\u013c":"l","\u013e":"l","\u0140":"l","\u0142":"l","\u0143":"N","\u0145":"N","\u0147":"N","\u014a":"N","\u0144":"n","\u0146":"n","\u0148":"n","\u014b":"n","\u014c":"O","\u014e":"O","\u0150":"O","\u014d":"o","\u014f":"o","\u0151":"o","\u0154":"R","\u0156":"R","\u0158":"R","\u0155":"r","\u0157":"r","\u0159":"r","\u015a":"S","\u015c":"S","\u015e":"S","\u0160":"S","\u015b":"s","\u015d":"s","\u015f":"s","\u0161":"s","\u0162":"T","\u0164":"T","\u0166":"T","\u0163":"t","\u0165":"t","\u0167":"t","\u0168":"U","\u016a":"U","\u016c":"U","\u016e":"U","\u0170":"U","\u0172":"U","\u0169":"u","\u016b":"u","\u016d":"u","\u016f":"u","\u0171":"u","\u0173":"u","\u0174":"W","\u0175":"w","\u0176":"Y","\u0177":"y","\u0178":"Y","\u0179":"Z","\u017b":"Z","\u017d":"Z","\u017a":"z","\u017c":"z","\u017e":"z","\u0132":"IJ","\u0133":"ij","\u0152":"Oe","\u0153":"oe","\u0149":"'n","\u017f":"s"}),Jt=Mt({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function Yt(e){return"\\"+et[e]}function $t(e){return We.test(e)}function Zt(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function en(e,t){return function(n){return e(t(n))}}function tn(e,t){for(var n=-1,r=e.length,i=0,o=[];++n<r;){var s=e[n];s!==t&&s!==a||(e[n]=a,o[i++]=n)}return o}function nn(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}function rn(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=[e,e]}),n}function on(e){return $t(e)?function(e){for(var t=qe.lastIndex=0;qe.test(e);)++t;return t}(e):St(e)}function sn(e){return $t(e)?function(e){return e.match(qe)||[]}(e):function(e){return e.split("")}(e)}function an(e){for(var t=e.length;t--&&ie.test(e.charAt(t)););return t}var ln=Mt({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"}),An=function e(t){var n,r=(t=null==t?ot:An.defaults(ot.Object(),t,An.pick(ot,Je))).Array,ie=t.Date,be=t.Error,Ce=t.Function,Be=t.Math,Ee=t.Object,_e=t.RegExp,Fe=t.String,xe=t.TypeError,Te=r.prototype,Qe=Ee.prototype,Se=t["__core-js_shared__"],ke=Ce.prototype.toString,Ue=Qe.hasOwnProperty,De=0,Oe=(n=/[^.]+$/.exec(Se&&Se.keys&&Se.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",Le=Qe.toString,Ie=ke.call(Ee),He=ot._,Me=_e("^"+ke.call(Ue).replace(te,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Re=lt?t.Buffer:i,Ne=t.Symbol,Pe=t.Uint8Array,Ke=Re?Re.allocUnsafe:i,Ve=en(Ee.getPrototypeOf,Ee),qe=Ee.create,We=Qe.propertyIsEnumerable,et=Te.splice,rt=Ne?Ne.isConcatSpreadable:i,it=Ne?Ne.iterator:i,st=Ne?Ne.toStringTag:i,at=function(){try{var e=lo(Ee,"defineProperty");return e({},"",{}),e}catch(t){}}(),At=t.clearTimeout!==ot.clearTimeout&&t.clearTimeout,ct=ie&&ie.now!==ot.Date.now&&ie.now,St=t.setTimeout!==ot.setTimeout&&t.setTimeout,Mt=Be.ceil,cn=Be.floor,un=Ee.getOwnPropertySymbols,hn=Re?Re.isBuffer:i,dn=t.isFinite,pn=Te.join,fn=en(Ee.keys,Ee),gn=Be.max,mn=Be.min,yn=ie.now,wn=t.parseInt,vn=Be.random,bn=Te.reverse,Cn=lo(t,"DataView"),Bn=lo(t,"Map"),En=lo(t,"Promise"),_n=lo(t,"Set"),Fn=lo(t,"WeakMap"),xn=lo(Ee,"create"),Tn=Fn&&new Fn,Qn={},Sn=Mo(Cn),kn=Mo(Bn),Un=Mo(En),Dn=Mo(_n),On=Mo(Fn),Ln=Ne?Ne.prototype:i,In=Ln?Ln.valueOf:i,Hn=Ln?Ln.toString:i;function Mn(e){if(ta(e)&&!Gs(e)&&!(e instanceof Kn)){if(e instanceof Pn)return e;if(Ue.call(e,"__wrapped__"))return Ro(e)}return new Pn(e)}var Rn=function(){function e(){}return function(t){if(!ea(t))return{};if(qe)return qe(t);e.prototype=t;var n=new e;return e.prototype=i,n}}();function Nn(){}function Pn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=i}function Kn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=d,this.__views__=[]}function Vn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Gn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function jn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function qn(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new jn;++t<n;)this.add(e[t])}function zn(e){var t=this.__data__=new Gn(e);this.size=t.size}function Wn(e,t){var n=Gs(e),r=!n&&Vs(e),i=!n&&!r&&Ws(e),o=!n&&!r&&!i&&Aa(e),s=n||r||i||o,a=s?Pt(e.length,Fe):[],l=a.length;for(var A in e)!t&&!Ue.call(e,A)||s&&("length"==A||i&&("offset"==A||"parent"==A)||o&&("buffer"==A||"byteLength"==A||"byteOffset"==A)||go(A,l))||a.push(A);return a}function Xn(e){var t=e.length;return t?e[jr(0,t-1)]:i}function Jn(e,t){return Do(Fi(e),or(t,0,e.length))}function Yn(e){return Do(Fi(e))}function $n(e,t,n){(n!==i&&!Ns(e[t],n)||n===i&&!(t in e))&&rr(e,t,n)}function Zn(e,t,n){var r=e[t];Ue.call(e,t)&&Ns(r,n)&&(n!==i||t in e)||rr(e,t,n)}function er(e,t){for(var n=e.length;n--;)if(Ns(e[n][0],t))return n;return-1}function tr(e,t,n,r){return cr(e,function(e,i,o){t(r,e,n(e),o)}),r}function nr(e,t){return e&&xi(t,ka(t),e)}function rr(e,t,n){"__proto__"==t&&at?at(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function ir(e,t){for(var n=-1,o=t.length,s=r(o),a=null==e;++n<o;)s[n]=a?i:Fa(e,t[n]);return s}function or(e,t,n){return e==e&&(n!==i&&(e=e<=n?e:n),t!==i&&(e=e>=t?e:t)),e}function sr(e,t,n,r,o,s){var a,l=1&t,A=2&t,c=4&t;if(n&&(a=o?n(e,r,o,s):n(e)),a!==i)return a;if(!ea(e))return e;var u=Gs(e);if(u){if(a=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&Ue.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(e),!l)return Fi(e,a)}else{var h=uo(e),d=h==v||h==b;if(Ws(e))return vi(e,l);if(h==E||h==f||d&&!o){if(a=A||d?{}:po(e),!l)return A?function(e,t){return xi(e,co(e),t)}(e,function(e,t){return e&&xi(t,Ua(t),e)}(a,e)):function(e,t){return xi(e,Ao(e),t)}(e,nr(a,e))}else{if(!Ze[h])return o?e:{};a=function(e,t,n){var r=e.constructor;switch(t){case k:return bi(e);case m:case y:return new r(+e);case U:return function(e,t){var n=t?bi(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case D:case O:case L:case I:case H:case M:case R:case N:case P:return Ci(e,n);case C:return new r;case B:case T:return new r(e);case F:return function(e){var t=new e.constructor(e.source,he.exec(e));return t.lastIndex=e.lastIndex,t}(e);case x:return new r;case Q:return In?Ee(In.call(e)):{}}}(e,h,l)}}s||(s=new zn);var p=s.get(e);if(p)return p;s.set(e,a),sa(e)?e.forEach(function(r){a.add(sr(r,t,n,r,e,s))}):na(e)&&e.forEach(function(r,i){a.set(i,sr(r,t,n,i,e,s))});var g=u?i:(c?A?to:eo:A?Ua:ka)(e);return wt(g||e,function(r,i){g&&(r=e[i=r]),Zn(a,i,sr(r,t,n,i,e,s))}),a}function ar(e,t,n){var r=n.length;if(null==e)return!r;for(e=Ee(e);r--;){var o=n[r],s=e[o];if(s===i&&!(o in e)||!(0,t[o])(s))return!1}return!0}function lr(e,t,n){if("function"!=typeof e)throw new xe(o);return Qo(function(){e.apply(i,n)},t)}function Ar(e,t,n,r){var i=-1,o=Bt,s=!0,a=e.length,l=[],A=t.length;if(!a)return l;n&&(t=_t(t,Vt(n))),r?(o=Et,s=!1):t.length>=200&&(o=jt,s=!1,t=new qn(t));e:for(;++i<a;){var c=e[i],u=null==n?c:n(c);if(c=r||0!==c?c:0,s&&u==u){for(var h=A;h--;)if(t[h]===u)continue e;l.push(c)}else o(t,u,r)||l.push(c)}return l}Mn.templateSettings={escape:X,evaluate:J,interpolate:Y,variable:"",imports:{_:Mn}},(Mn.prototype=Nn.prototype).constructor=Mn,(Pn.prototype=Rn(Nn.prototype)).constructor=Pn,(Kn.prototype=Rn(Nn.prototype)).constructor=Kn,Vn.prototype.clear=function(){this.__data__=xn?xn(null):{},this.size=0},Vn.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Vn.prototype.get=function(e){var t=this.__data__;if(xn){var n=t[e];return n===s?i:n}return Ue.call(t,e)?t[e]:i},Vn.prototype.has=function(e){var t=this.__data__;return xn?t[e]!==i:Ue.call(t,e)},Vn.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=xn&&t===i?s:t,this},Gn.prototype.clear=function(){this.__data__=[],this.size=0},Gn.prototype.delete=function(e){var t=this.__data__,n=er(t,e);return!(n<0||(n==t.length-1?t.pop():et.call(t,n,1),--this.size,0))},Gn.prototype.get=function(e){var t=this.__data__,n=er(t,e);return n<0?i:t[n][1]},Gn.prototype.has=function(e){return er(this.__data__,e)>-1},Gn.prototype.set=function(e,t){var n=this.__data__,r=er(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},jn.prototype.clear=function(){this.size=0,this.__data__={hash:new Vn,map:new(Bn||Gn),string:new Vn}},jn.prototype.delete=function(e){var t=so(this,e).delete(e);return this.size-=t?1:0,t},jn.prototype.get=function(e){return so(this,e).get(e)},jn.prototype.has=function(e){return so(this,e).has(e)},jn.prototype.set=function(e,t){var n=so(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},qn.prototype.add=qn.prototype.push=function(e){return this.__data__.set(e,s),this},qn.prototype.has=function(e){return this.__data__.has(e)},zn.prototype.clear=function(){this.__data__=new Gn,this.size=0},zn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},zn.prototype.get=function(e){return this.__data__.get(e)},zn.prototype.has=function(e){return this.__data__.has(e)},zn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Gn){var r=n.__data__;if(!Bn||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new jn(r)}return n.set(e,t),this.size=n.size,this};var cr=Si(yr),ur=Si(wr,!0);function hr(e,t){var n=!0;return cr(e,function(e,r,i){return n=!!t(e,r,i)}),n}function dr(e,t,n){for(var r=-1,o=e.length;++r<o;){var s=e[r],a=t(s);if(null!=a&&(l===i?a==a&&!la(a):n(a,l)))var l=a,A=s}return A}function pr(e,t){var n=[];return cr(e,function(e,r,i){t(e,r,i)&&n.push(e)}),n}function fr(e,t,n,r,i){var o=-1,s=e.length;for(n||(n=fo),i||(i=[]);++o<s;){var a=e[o];t>0&&n(a)?t>1?fr(a,t-1,n,r,i):Ft(i,a):r||(i[i.length]=a)}return i}var gr=ki(),mr=ki(!0);function yr(e,t){return e&&gr(e,t,ka)}function wr(e,t){return e&&mr(e,t,ka)}function vr(e,t){return Ct(t,function(t){return Ys(e[t])})}function br(e,t){for(var n=0,r=(t=gi(t,e)).length;null!=e&&n<r;)e=e[Ho(t[n++])];return n&&n==r?e:i}function Cr(e,t,n){var r=t(e);return Gs(e)?r:Ft(r,n(e))}function Br(e){return null==e?e===i?"[object Undefined]":"[object Null]":st&&st in Ee(e)?function(e){var t=Ue.call(e,st),n=e[st];try{e[st]=i;var r=!0}catch(s){}var o=Le.call(e);return r&&(t?e[st]=n:delete e[st]),o}(e):function(e){return Le.call(e)}(e)}function Er(e,t){return e>t}function _r(e,t){return null!=e&&Ue.call(e,t)}function Fr(e,t){return null!=e&&t in Ee(e)}function xr(e,t,n){for(var o=n?Et:Bt,s=e[0].length,a=e.length,l=a,A=r(a),c=1/0,u=[];l--;){var h=e[l];l&&t&&(h=_t(h,Vt(t))),c=mn(h.length,c),A[l]=!n&&(t||s>=120&&h.length>=120)?new qn(l&&h):i}h=e[0];var d=-1,p=A[0];e:for(;++d<s&&u.length<c;){var f=h[d],g=t?t(f):f;if(f=n||0!==f?f:0,!(p?jt(p,g):o(u,g,n))){for(l=a;--l;){var m=A[l];if(!(m?jt(m,g):o(e[l],g,n)))continue e}p&&p.push(g),u.push(f)}}return u}function Tr(e,t,n){var r=null==(e=_o(e,t=gi(t,e)))?e:e[Ho(Jo(t))];return null==r?i:mt(r,e,n)}function Qr(e){return ta(e)&&Br(e)==f}function Sr(e,t,n,r,o){return e===t||(null==e||null==t||!ta(e)&&!ta(t)?e!=e&&t!=t:function(e,t,n,r,o,s){var a=Gs(e),l=Gs(t),A=a?g:uo(e),c=l?g:uo(t),u=(A=A==f?E:A)==E,h=(c=c==f?E:c)==E,d=A==c;if(d&&Ws(e)){if(!Ws(t))return!1;a=!0,u=!1}if(d&&!u)return s||(s=new zn),a||Aa(e)?$i(e,t,n,r,o,s):function(e,t,n,r,i,o,s){switch(n){case U:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case k:return!(e.byteLength!=t.byteLength||!o(new Pe(e),new Pe(t)));case m:case y:case B:return Ns(+e,+t);case w:return e.name==t.name&&e.message==t.message;case F:case T:return e==t+"";case C:var a=Zt;case x:if(a||(a=nn),e.size!=t.size&&!(1&r))return!1;var l=s.get(e);if(l)return l==t;r|=2,s.set(e,t);var A=$i(a(e),a(t),r,i,o,s);return s.delete(e),A;case Q:if(In)return In.call(e)==In.call(t)}return!1}(e,t,A,n,r,o,s);if(!(1&n)){var p=u&&Ue.call(e,"__wrapped__"),v=h&&Ue.call(t,"__wrapped__");if(p||v){var b=p?e.value():e,_=v?t.value():t;return s||(s=new zn),o(b,_,n,r,s)}}return!!d&&(s||(s=new zn),function(e,t,n,r,o,s){var a=1&n,l=eo(e),A=l.length;if(A!=eo(t).length&&!a)return!1;for(var c=A;c--;){var u=l[c];if(!(a?u in t:Ue.call(t,u)))return!1}var h=s.get(e),d=s.get(t);if(h&&d)return h==t&&d==e;var p=!0;s.set(e,t),s.set(t,e);for(var f=a;++c<A;){var g=e[u=l[c]],m=t[u];if(r)var y=a?r(m,g,u,t,e,s):r(g,m,u,e,t,s);if(!(y===i?g===m||o(g,m,n,r,s):y)){p=!1;break}f||(f="constructor"==u)}if(p&&!f){var w=e.constructor,v=t.constructor;w==v||!("constructor"in e)||!("constructor"in t)||"function"==typeof w&&w instanceof w&&"function"==typeof v&&v instanceof v||(p=!1)}return s.delete(e),s.delete(t),p}(e,t,n,r,o,s))}(e,t,n,r,Sr,o))}function kr(e,t,n,r){var o=n.length,s=o,a=!r;if(null==e)return!s;for(e=Ee(e);o--;){var l=n[o];if(a&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++o<s;){var A=(l=n[o])[0],c=e[A],u=l[1];if(a&&l[2]){if(c===i&&!(A in e))return!1}else{var h=new zn;if(r)var d=r(c,u,A,e,t,h);if(!(d===i?Sr(u,c,3,r,h):d))return!1}}return!0}function Ur(e){return!(!ea(e)||(t=e,Oe&&Oe in t))&&(Ys(e)?Me:fe).test(Mo(e));var t}function Dr(e){return"function"==typeof e?e:null==e?rl:"object"==typeof e?Gs(e)?Mr(e[0],e[1]):Hr(e):hl(e)}function Or(e){if(!bo(e))return fn(e);var t=[];for(var n in Ee(e))Ue.call(e,n)&&"constructor"!=n&&t.push(n);return t}function Lr(e,t){return e<t}function Ir(e,t){var n=-1,i=qs(e)?r(e.length):[];return cr(e,function(e,r,o){i[++n]=t(e,r,o)}),i}function Hr(e){var t=ao(e);return 1==t.length&&t[0][2]?Bo(t[0][0],t[0][1]):function(n){return n===e||kr(n,e,t)}}function Mr(e,t){return yo(e)&&Co(t)?Bo(Ho(e),t):function(n){var r=Fa(n,e);return r===i&&r===t?xa(n,e):Sr(t,r,3)}}function Rr(e,t,n,r,o){e!==t&&gr(t,function(s,a){if(o||(o=new zn),ea(s))!function(e,t,n,r,o,s,a){var l=xo(e,n),A=xo(t,n),c=a.get(A);if(c)$n(e,n,c);else{var u=s?s(l,A,n+"",e,t,a):i,h=u===i;if(h){var d=Gs(A),p=!d&&Ws(A),f=!d&&!p&&Aa(A);u=A,d||p||f?Gs(l)?u=l:zs(l)?u=Fi(l):p?(h=!1,u=vi(A,!0)):f?(h=!1,u=Ci(A,!0)):u=[]:ia(A)||Vs(A)?(u=l,Vs(l)?u=ma(l):ea(l)&&!Ys(l)||(u=po(A))):h=!1}h&&(a.set(A,u),o(u,A,r,s,a),a.delete(A)),$n(e,n,u)}}(e,t,a,n,Rr,r,o);else{var l=r?r(xo(e,a),s,a+"",e,t,o):i;l===i&&(l=s),$n(e,a,l)}},Ua)}function Nr(e,t){var n=e.length;if(n)return go(t+=t<0?n:0,n)?e[t]:i}function Pr(e,t,n){t=t.length?_t(t,function(e){return Gs(e)?function(t){return br(t,1===e.length?e[0]:e)}:e}):[rl];var r=-1;return t=_t(t,Vt(oo())),function(e,t){var r=e.length;for(e.sort(function(e,t){return function(e,t,n){for(var r=-1,i=e.criteria,o=t.criteria,s=i.length,a=n.length;++r<s;){var l=Bi(i[r],o[r]);if(l)return r>=a?l:l*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)});r--;)e[r]=e[r].value;return e}(Ir(e,function(e,n,i){return{criteria:_t(t,function(t){return t(e)}),index:++r,value:e}}))}function Kr(e,t,n){for(var r=-1,i=t.length,o={};++r<i;){var s=t[r],a=br(e,s);n(a,s)&&Jr(o,gi(s,e),a)}return o}function Vr(e,t,n,r){var i=r?Ot:Dt,o=-1,s=t.length,a=e;for(e===t&&(t=Fi(t)),n&&(a=_t(e,Vt(n)));++o<s;)for(var l=0,A=t[o],c=n?n(A):A;(l=i(a,c,l,r))>-1;)a!==e&&et.call(a,l,1),et.call(e,l,1);return e}function Gr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var i=t[n];if(n==r||i!==o){var o=i;go(i)?et.call(e,i,1):li(e,i)}}return e}function jr(e,t){return e+cn(vn()*(t-e+1))}function qr(e,t){var n="";if(!e||t<1||t>u)return n;do{t%2&&(n+=e),(t=cn(t/2))&&(e+=e)}while(t);return n}function zr(e,t){return So(Eo(e,t,rl),e+"")}function Wr(e){return Xn(Na(e))}function Xr(e,t){var n=Na(e);return Do(n,or(t,0,n.length))}function Jr(e,t,n,r){if(!ea(e))return e;for(var o=-1,s=(t=gi(t,e)).length,a=s-1,l=e;null!=l&&++o<s;){var A=Ho(t[o]),c=n;if("__proto__"===A||"constructor"===A||"prototype"===A)return e;if(o!=a){var u=l[A];(c=r?r(u,A,l):i)===i&&(c=ea(u)?u:go(t[o+1])?[]:{})}Zn(l,A,c),l=l[A]}return e}var Yr=Tn?function(e,t){return Tn.set(e,t),e}:rl,$r=at?function(e,t){return at(e,"toString",{configurable:!0,enumerable:!1,value:el(t),writable:!0})}:rl;function Zr(e){return Do(Na(e))}function ei(e,t,n){var i=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var s=r(o);++i<o;)s[i]=e[i+t];return s}function ti(e,t){var n;return cr(e,function(e,r,i){return!(n=t(e,r,i))}),!!n}function ni(e,t,n){var r=0,i=null==e?r:e.length;if("number"==typeof t&&t==t&&i<=2147483647){for(;r<i;){var o=r+i>>>1,s=e[o];null!==s&&!la(s)&&(n?s<=t:s<t)?r=o+1:i=o}return i}return ri(e,t,rl,n)}function ri(e,t,n,r){var o=0,s=null==e?0:e.length;if(0===s)return 0;for(var a=(t=n(t))!=t,l=null===t,A=la(t),c=t===i;o<s;){var u=cn((o+s)/2),h=n(e[u]),d=h!==i,p=null===h,f=h==h,g=la(h);if(a)var m=r||f;else m=c?f&&(r||d):l?f&&d&&(r||!p):A?f&&d&&!p&&(r||!g):!p&&!g&&(r?h<=t:h<t);m?o=u+1:s=u}return mn(s,4294967294)}function ii(e,t){for(var n=-1,r=e.length,i=0,o=[];++n<r;){var s=e[n],a=t?t(s):s;if(!n||!Ns(a,l)){var l=a;o[i++]=0===s?0:s}}return o}function oi(e){return"number"==typeof e?e:la(e)?h:+e}function si(e){if("string"==typeof e)return e;if(Gs(e))return _t(e,si)+"";if(la(e))return Hn?Hn.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function ai(e,t,n){var r=-1,i=Bt,o=e.length,s=!0,a=[],l=a;if(n)s=!1,i=Et;else if(o>=200){var A=t?null:qi(e);if(A)return nn(A);s=!1,i=jt,l=new qn}else l=t?[]:a;e:for(;++r<o;){var c=e[r],u=t?t(c):c;if(c=n||0!==c?c:0,s&&u==u){for(var h=l.length;h--;)if(l[h]===u)continue e;t&&l.push(u),a.push(c)}else i(l,u,n)||(l!==a&&l.push(u),a.push(c))}return a}function li(e,t){return null==(e=_o(e,t=gi(t,e)))||delete e[Ho(Jo(t))]}function Ai(e,t,n,r){return Jr(e,t,n(br(e,t)),r)}function ci(e,t,n,r){for(var i=e.length,o=r?i:-1;(r?o--:++o<i)&&t(e[o],o,e););return n?ei(e,r?0:o,r?o+1:i):ei(e,r?o+1:0,r?i:o)}function ui(e,t){var n=e;return n instanceof Kn&&(n=n.value()),xt(t,function(e,t){return t.func.apply(t.thisArg,Ft([e],t.args))},n)}function hi(e,t,n){var i=e.length;if(i<2)return i?ai(e[0]):[];for(var o=-1,s=r(i);++o<i;)for(var a=e[o],l=-1;++l<i;)l!=o&&(s[o]=Ar(s[o]||a,e[l],t,n));return ai(fr(s,1),t,n)}function di(e,t,n){for(var r=-1,o=e.length,s=t.length,a={};++r<o;)n(a,e[r],r<s?t[r]:i);return a}function pi(e){return zs(e)?e:[]}function fi(e){return"function"==typeof e?e:rl}function gi(e,t){return Gs(e)?e:yo(e,t)?[e]:Io(ya(e))}var mi=zr;function yi(e,t,n){var r=e.length;return n=n===i?r:n,!t&&n>=r?e:ei(e,t,n)}var wi=At||function(e){return ot.clearTimeout(e)};function vi(e,t){if(t)return e.slice();var n=e.length,r=Ke?Ke(n):new e.constructor(n);return e.copy(r),r}function bi(e){var t=new e.constructor(e.byteLength);return new Pe(t).set(new Pe(e)),t}function Ci(e,t){var n=t?bi(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Bi(e,t){if(e!==t){var n=e!==i,r=null===e,o=e==e,s=la(e),a=t!==i,l=null===t,A=t==t,c=la(t);if(!l&&!c&&!s&&e>t||s&&a&&A&&!l&&!c||r&&a&&A||!n&&A||!o)return 1;if(!r&&!s&&!c&&e<t||c&&n&&o&&!r&&!s||l&&n&&o||!a&&o||!A)return-1}return 0}function Ei(e,t,n,i){for(var o=-1,s=e.length,a=n.length,l=-1,A=t.length,c=gn(s-a,0),u=r(A+c),h=!i;++l<A;)u[l]=t[l];for(;++o<a;)(h||o<s)&&(u[n[o]]=e[o]);for(;c--;)u[l++]=e[o++];return u}function _i(e,t,n,i){for(var o=-1,s=e.length,a=-1,l=n.length,A=-1,c=t.length,u=gn(s-l,0),h=r(u+c),d=!i;++o<u;)h[o]=e[o];for(var p=o;++A<c;)h[p+A]=t[A];for(;++a<l;)(d||o<s)&&(h[p+n[a]]=e[o++]);return h}function Fi(e,t){var n=-1,i=e.length;for(t||(t=r(i));++n<i;)t[n]=e[n];return t}function xi(e,t,n,r){var o=!n;n||(n={});for(var s=-1,a=t.length;++s<a;){var l=t[s],A=r?r(n[l],e[l],l,n,e):i;A===i&&(A=e[l]),o?rr(n,l,A):Zn(n,l,A)}return n}function Ti(e,t){return function(n,r){var i=Gs(n)?yt:tr,o=t?t():{};return i(n,e,oo(r,2),o)}}function Qi(e){return zr(function(t,n){var r=-1,o=n.length,s=o>1?n[o-1]:i,a=o>2?n[2]:i;for(s=e.length>3&&"function"==typeof s?(o--,s):i,a&&mo(n[0],n[1],a)&&(s=o<3?i:s,o=1),t=Ee(t);++r<o;){var l=n[r];l&&e(t,l,r,s)}return t})}function Si(e,t){return function(n,r){if(null==n)return n;if(!qs(n))return e(n,r);for(var i=n.length,o=t?i:-1,s=Ee(n);(t?o--:++o<i)&&!1!==r(s[o],o,s););return n}}function ki(e){return function(t,n,r){for(var i=-1,o=Ee(t),s=r(t),a=s.length;a--;){var l=s[e?a:++i];if(!1===n(o[l],l,o))break}return t}}function Ui(e){return function(t){var n=$t(t=ya(t))?sn(t):i,r=n?n[0]:t.charAt(0),o=n?yi(n,1).join(""):t.slice(1);return r[e]()+o}}function Di(e){return function(t){return xt(Ya(Va(t).replace(Ge,"")),e,"")}}function Oi(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=Rn(e.prototype),r=e.apply(n,t);return ea(r)?r:n}}function Li(e){return function(t,n,r){var o=Ee(t);if(!qs(t)){var s=oo(n,3);t=ka(t),n=function(e){return s(o[e],e,o)}}var a=e(t,n,r);return a>-1?o[s?t[a]:a]:i}}function Ii(e){return Zi(function(t){var n=t.length,r=n,s=Pn.prototype.thru;for(e&&t.reverse();r--;){var a=t[r];if("function"!=typeof a)throw new xe(o);if(s&&!l&&"wrapper"==ro(a))var l=new Pn([],!0)}for(r=l?r:n;++r<n;){var A=ro(a=t[r]),c="wrapper"==A?no(a):i;l=c&&wo(c[0])&&424==c[1]&&!c[4].length&&1==c[9]?l[ro(c[0])].apply(l,c[3]):1==a.length&&wo(a)?l[A]():l.thru(a)}return function(){var e=arguments,r=e[0];if(l&&1==e.length&&Gs(r))return l.plant(r).value();for(var i=0,o=n?t[i].apply(this,e):r;++i<n;)o=t[i].call(this,o);return o}})}function Hi(e,t,n,o,s,a,l,c,u,h){var d=t&A,p=1&t,f=2&t,g=24&t,m=512&t,y=f?i:Oi(e);return function i(){for(var A=arguments.length,w=r(A),v=A;v--;)w[v]=arguments[v];if(g)var b=io(i),C=Wt(w,b);if(o&&(w=Ei(w,o,s,g)),a&&(w=_i(w,a,l,g)),A-=C,g&&A<h){var B=tn(w,b);return Gi(e,t,Hi,i.placeholder,n,w,B,c,u,h-A)}var E=p?n:this,_=f?E[e]:e;return A=w.length,c?w=Fo(w,c):m&&A>1&&w.reverse(),d&&u<A&&(w.length=u),this&&this!==ot&&this instanceof i&&(_=y||Oi(_)),_.apply(E,w)}}function Mi(e,t){return function(n,r){return function(e,t,n,r){return yr(e,function(e,i,o){t(r,n(e),i,o)}),r}(n,e,t(r),{})}}function Ri(e,t){return function(n,r){var o;if(n===i&&r===i)return t;if(n!==i&&(o=n),r!==i){if(o===i)return r;"string"==typeof n||"string"==typeof r?(n=si(n),r=si(r)):(n=oi(n),r=oi(r)),o=e(n,r)}return o}}function Ni(e){return Zi(function(t){return t=_t(t,Vt(oo())),zr(function(n){var r=this;return e(t,function(e){return mt(e,r,n)})})})}function Pi(e,t){var n=(t=t===i?" ":si(t)).length;if(n<2)return n?qr(t,e):t;var r=qr(t,Mt(e/on(t)));return $t(t)?yi(sn(r),0,e).join(""):r.slice(0,e)}function Ki(e){return function(t,n,o){return o&&"number"!=typeof o&&mo(t,n,o)&&(n=o=i),t=da(t),n===i?(n=t,t=0):n=da(n),function(e,t,n,i){for(var o=-1,s=gn(Mt((t-e)/(n||1)),0),a=r(s);s--;)a[i?s:++o]=e,e+=n;return a}(t,n,o=o===i?t<n?1:-1:da(o),e)}}function Vi(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=ga(t),n=ga(n)),e(t,n)}}function Gi(e,t,n,r,o,s,a,A,c,u){var h=8&t;t|=h?l:64,4&(t&=~(h?64:l))||(t&=-4);var d=[e,t,o,h?s:i,h?a:i,h?i:s,h?i:a,A,c,u],p=n.apply(i,d);return wo(e)&&To(p,d),p.placeholder=r,ko(p,e,t)}function ji(e){var t=Be[e];return function(e,n){if(e=ga(e),(n=null==n?0:mn(pa(n),292))&&dn(e)){var r=(ya(e)+"e").split("e");return+((r=(ya(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}var qi=_n&&1/nn(new _n([,-0]))[1]==c?function(e){return new _n(e)}:ll;function zi(e){return function(t){var n=uo(t);return n==C?Zt(t):n==x?rn(t):function(e,t){return _t(t,function(t){return[t,e[t]]})}(t,e(t))}}function Wi(e,t,n,s,c,u,h,d){var p=2&t;if(!p&&"function"!=typeof e)throw new xe(o);var f=s?s.length:0;if(f||(t&=-97,s=c=i),h=h===i?h:gn(pa(h),0),d=d===i?d:pa(d),f-=c?c.length:0,64&t){var g=s,m=c;s=c=i}var y=p?i:no(e),w=[e,t,n,s,c,g,m,u,h,d];if(y&&function(e,t){var n=e[1],r=t[1],i=n|r;if(!(i<131||r==A&&8==n||r==A&&256==n&&e[7].length<=t[8]||384==r&&t[7].length<=t[8]&&8==n))return e;1&r&&(e[2]=t[2],i|=1&n?0:4);var o=t[3];if(o){var s=e[3];e[3]=s?Ei(s,o,t[4]):o,e[4]=s?tn(e[3],a):t[4]}(o=t[5])&&(e[5]=(s=e[5])?_i(s,o,t[6]):o,e[6]=s?tn(e[5],a):t[6]),(o=t[7])&&(e[7]=o),r&A&&(e[8]=null==e[8]?t[8]:mn(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=i}(w,y),e=w[0],t=w[1],n=w[2],s=w[3],c=w[4],!(d=w[9]=w[9]===i?p?0:e.length:gn(w[9]-f,0))&&24&t&&(t&=-25),t&&1!=t)v=8==t||16==t?function(e,t,n){var o=Oi(e);return function s(){for(var a=arguments.length,l=r(a),A=a,c=io(s);A--;)l[A]=arguments[A];var u=a<3&&l[0]!==c&&l[a-1]!==c?[]:tn(l,c);return(a-=u.length)<n?Gi(e,t,Hi,s.placeholder,i,l,u,i,i,n-a):mt(this&&this!==ot&&this instanceof s?o:e,this,l)}}(e,t,d):t!=l&&33!=t||c.length?Hi.apply(i,w):function(e,t,n,i){var o=1&t,s=Oi(e);return function t(){for(var a=-1,l=arguments.length,A=-1,c=i.length,u=r(c+l),h=this&&this!==ot&&this instanceof t?s:e;++A<c;)u[A]=i[A];for(;l--;)u[A++]=arguments[++a];return mt(h,o?n:this,u)}}(e,t,n,s);else var v=function(e,t,n){var r=1&t,i=Oi(e);return function t(){return(this&&this!==ot&&this instanceof t?i:e).apply(r?n:this,arguments)}}(e,t,n);return ko((y?Yr:To)(v,w),e,t)}function Xi(e,t,n,r){return e===i||Ns(e,Qe[n])&&!Ue.call(r,n)?t:e}function Ji(e,t,n,r,o,s){return ea(e)&&ea(t)&&(s.set(t,e),Rr(e,t,i,Ji,s),s.delete(t)),e}function Yi(e){return ia(e)?i:e}function $i(e,t,n,r,o,s){var a=1&n,l=e.length,A=t.length;if(l!=A&&!(a&&A>l))return!1;var c=s.get(e),u=s.get(t);if(c&&u)return c==t&&u==e;var h=-1,d=!0,p=2&n?new qn:i;for(s.set(e,t),s.set(t,e);++h<l;){var f=e[h],g=t[h];if(r)var m=a?r(g,f,h,t,e,s):r(f,g,h,e,t,s);if(m!==i){if(m)continue;d=!1;break}if(p){if(!Qt(t,function(e,t){if(!jt(p,t)&&(f===e||o(f,e,n,r,s)))return p.push(t)})){d=!1;break}}else if(f!==g&&!o(f,g,n,r,s)){d=!1;break}}return s.delete(e),s.delete(t),d}function Zi(e){return So(Eo(e,i,jo),e+"")}function eo(e){return Cr(e,ka,Ao)}function to(e){return Cr(e,Ua,co)}var no=Tn?function(e){return Tn.get(e)}:ll;function ro(e){for(var t=e.name+"",n=Qn[t],r=Ue.call(Qn,t)?n.length:0;r--;){var i=n[r],o=i.func;if(null==o||o==e)return i.name}return t}function io(e){return(Ue.call(Mn,"placeholder")?Mn:e).placeholder}function oo(){var e=Mn.iteratee||il;return e=e===il?Dr:e,arguments.length?e(arguments[0],arguments[1]):e}function so(e,t){var n,r,i=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof t?"string":"hash"]:i.map}function ao(e){for(var t=ka(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,Co(i)]}return t}function lo(e,t){var n=function(e,t){return null==e?i:e[t]}(e,t);return Ur(n)?n:i}var Ao=un?function(e){return null==e?[]:(e=Ee(e),Ct(un(e),function(t){return We.call(e,t)}))}:fl,co=un?function(e){for(var t=[];e;)Ft(t,Ao(e)),e=Ve(e);return t}:fl,uo=Br;function ho(e,t,n){for(var r=-1,i=(t=gi(t,e)).length,o=!1;++r<i;){var s=Ho(t[r]);if(!(o=null!=e&&n(e,s)))break;e=e[s]}return o||++r!=i?o:!!(i=null==e?0:e.length)&&Zs(i)&&go(s,i)&&(Gs(e)||Vs(e))}function po(e){return"function"!=typeof e.constructor||bo(e)?{}:Rn(Ve(e))}function fo(e){return Gs(e)||Vs(e)||!!(rt&&e&&e[rt])}function go(e,t){var n=typeof e;return!!(t=null==t?u:t)&&("number"==n||"symbol"!=n&&me.test(e))&&e>-1&&e%1==0&&e<t}function mo(e,t,n){if(!ea(n))return!1;var r=typeof t;return!!("number"==r?qs(n)&&go(t,n.length):"string"==r&&t in n)&&Ns(n[t],e)}function yo(e,t){if(Gs(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!la(e))||Z.test(e)||!$.test(e)||null!=t&&e in Ee(t)}function wo(e){var t=ro(e),n=Mn[t];if("function"!=typeof n||!(t in Kn.prototype))return!1;if(e===n)return!0;var r=no(n);return!!r&&e===r[0]}(Cn&&uo(new Cn(new ArrayBuffer(1)))!=U||Bn&&uo(new Bn)!=C||En&&uo(En.resolve())!=_||_n&&uo(new _n)!=x||Fn&&uo(new Fn)!=S)&&(uo=function(e){var t=Br(e),n=t==E?e.constructor:i,r=n?Mo(n):"";if(r)switch(r){case Sn:return U;case kn:return C;case Un:return _;case Dn:return x;case On:return S}return t});var vo=Se?Ys:gl;function bo(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Qe)}function Co(e){return e==e&&!ea(e)}function Bo(e,t){return function(n){return null!=n&&n[e]===t&&(t!==i||e in Ee(n))}}function Eo(e,t,n){return t=gn(t===i?e.length-1:t,0),function(){for(var i=arguments,o=-1,s=gn(i.length-t,0),a=r(s);++o<s;)a[o]=i[t+o];o=-1;for(var l=r(t+1);++o<t;)l[o]=i[o];return l[t]=n(a),mt(e,this,l)}}function _o(e,t){return t.length<2?e:br(e,ei(t,0,-1))}function Fo(e,t){for(var n=e.length,r=mn(t.length,n),o=Fi(e);r--;){var s=t[r];e[r]=go(s,n)?o[s]:i}return e}function xo(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var To=Uo(Yr),Qo=St||function(e,t){return ot.setTimeout(e,t)},So=Uo($r);function ko(e,t,n){var r=t+"";return So(e,function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(oe,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return wt(p,function(n){var r="_."+n[0];t&n[1]&&!Bt(e,r)&&e.push(r)}),e.sort()}(function(e){var t=e.match(se);return t?t[1].split(ae):[]}(r),n)))}function Uo(e){var t=0,n=0;return function(){var r=yn(),o=16-(r-n);if(n=r,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(i,arguments)}}function Do(e,t){var n=-1,r=e.length,o=r-1;for(t=t===i?r:t;++n<t;){var s=jr(n,o),a=e[s];e[s]=e[n],e[n]=a}return e.length=t,e}var Oo,Lo,Io=(Oo=Os(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(ee,function(e,n,r,i){t.push(r?i.replace(ce,"$1"):n||e)}),t},function(e){return 500===Lo.size&&Lo.clear(),e}),Lo=Oo.cache,Oo);function Ho(e){if("string"==typeof e||la(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Mo(e){if(null!=e){try{return ke.call(e)}catch(t){}try{return e+""}catch(t){}}return""}function Ro(e){if(e instanceof Kn)return e.clone();var t=new Pn(e.__wrapped__,e.__chain__);return t.__actions__=Fi(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var No=zr(function(e,t){return zs(e)?Ar(e,fr(t,1,zs,!0)):[]}),Po=zr(function(e,t){var n=Jo(t);return zs(n)&&(n=i),zs(e)?Ar(e,fr(t,1,zs,!0),oo(n,2)):[]}),Ko=zr(function(e,t){var n=Jo(t);return zs(n)&&(n=i),zs(e)?Ar(e,fr(t,1,zs,!0),i,n):[]});function Vo(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:pa(n);return i<0&&(i=gn(r+i,0)),Ut(e,oo(t,3),i)}function Go(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r-1;return n!==i&&(o=pa(n),o=n<0?gn(r+o,0):mn(o,r-1)),Ut(e,oo(t,3),o,!0)}function jo(e){return null!=e&&e.length?fr(e,1):[]}function qo(e){return e&&e.length?e[0]:i}var zo=zr(function(e){var t=_t(e,pi);return t.length&&t[0]===e[0]?xr(t):[]}),Wo=zr(function(e){var t=Jo(e),n=_t(e,pi);return t===Jo(n)?t=i:n.pop(),n.length&&n[0]===e[0]?xr(n,oo(t,2)):[]}),Xo=zr(function(e){var t=Jo(e),n=_t(e,pi);return(t="function"==typeof t?t:i)&&n.pop(),n.length&&n[0]===e[0]?xr(n,i,t):[]});function Jo(e){var t=null==e?0:e.length;return t?e[t-1]:i}var Yo=zr($o);function $o(e,t){return e&&e.length&&t&&t.length?Vr(e,t):e}var Zo=Zi(function(e,t){var n=null==e?0:e.length,r=ir(e,t);return Gr(e,_t(t,function(e){return go(e,n)?+e:e}).sort(Bi)),r});function es(e){return null==e?e:bn.call(e)}var ts=zr(function(e){return ai(fr(e,1,zs,!0))}),ns=zr(function(e){var t=Jo(e);return zs(t)&&(t=i),ai(fr(e,1,zs,!0),oo(t,2))}),rs=zr(function(e){var t=Jo(e);return t="function"==typeof t?t:i,ai(fr(e,1,zs,!0),i,t)});function is(e){if(!e||!e.length)return[];var t=0;return e=Ct(e,function(e){if(zs(e))return t=gn(e.length,t),!0}),Pt(t,function(t){return _t(e,Ht(t))})}function os(e,t){if(!e||!e.length)return[];var n=is(e);return null==t?n:_t(n,function(e){return mt(t,i,e)})}var ss=zr(function(e,t){return zs(e)?Ar(e,t):[]}),as=zr(function(e){return hi(Ct(e,zs))}),ls=zr(function(e){var t=Jo(e);return zs(t)&&(t=i),hi(Ct(e,zs),oo(t,2))}),As=zr(function(e){var t=Jo(e);return t="function"==typeof t?t:i,hi(Ct(e,zs),i,t)}),cs=zr(is),us=zr(function(e){var t=e.length,n=t>1?e[t-1]:i;return n="function"==typeof n?(e.pop(),n):i,os(e,n)});function hs(e){var t=Mn(e);return t.__chain__=!0,t}function ds(e,t){return t(e)}var ps=Zi(function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,o=function(t){return ir(t,e)};return!(t>1||this.__actions__.length)&&r instanceof Kn&&go(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:ds,args:[o],thisArg:i}),new Pn(r,this.__chain__).thru(function(e){return t&&!e.length&&e.push(i),e})):this.thru(o)}),fs=Ti(function(e,t,n){Ue.call(e,n)?++e[n]:rr(e,n,1)}),gs=Li(Vo),ms=Li(Go);function ys(e,t){return(Gs(e)?wt:cr)(e,oo(t,3))}function ws(e,t){return(Gs(e)?vt:ur)(e,oo(t,3))}var vs=Ti(function(e,t,n){Ue.call(e,n)?e[n].push(t):rr(e,n,[t])}),bs=zr(function(e,t,n){var i=-1,o="function"==typeof t,s=qs(e)?r(e.length):[];return cr(e,function(e){s[++i]=o?mt(t,e,n):Tr(e,t,n)}),s}),Cs=Ti(function(e,t,n){rr(e,n,t)});function Bs(e,t){return(Gs(e)?_t:Ir)(e,oo(t,3))}var Es=Ti(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]}),_s=zr(function(e,t){if(null==e)return[];var n=t.length;return n>1&&mo(e,t[0],t[1])?t=[]:n>2&&mo(t[0],t[1],t[2])&&(t=[t[0]]),Pr(e,fr(t,1),[])}),Fs=ct||function(){return ot.Date.now()};function xs(e,t,n){return t=n?i:t,Wi(e,A,i,i,i,i,t=e&&null==t?e.length:t)}function Ts(e,t){var n;if("function"!=typeof t)throw new xe(o);return e=pa(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=i),n}}var Qs=zr(function(e,t,n){var r=1;if(n.length){var i=tn(n,io(Qs));r|=l}return Wi(e,r,t,n,i)}),Ss=zr(function(e,t,n){var r=3;if(n.length){var i=tn(n,io(Ss));r|=l}return Wi(t,r,e,n,i)});function ks(e,t,n){var r,s,a,l,A,c,u=0,h=!1,d=!1,p=!0;if("function"!=typeof e)throw new xe(o);function f(t){var n=r,o=s;return r=s=i,u=t,l=e.apply(o,n)}function g(e){return u=e,A=Qo(y,t),h?f(e):l}function m(e){var n=e-c;return c===i||n>=t||n<0||d&&e-u>=a}function y(){var e=Fs();if(m(e))return w(e);A=Qo(y,function(e){var n=t-(e-c);return d?mn(n,a-(e-u)):n}(e))}function w(e){return A=i,p&&r?f(e):(r=s=i,l)}function v(){var e=Fs(),n=m(e);if(r=arguments,s=this,c=e,n){if(A===i)return g(c);if(d)return wi(A),A=Qo(y,t),f(c)}return A===i&&(A=Qo(y,t)),l}return t=ga(t)||0,ea(n)&&(h=!!n.leading,a=(d="maxWait"in n)?gn(ga(n.maxWait)||0,t):a,p="trailing"in n?!!n.trailing:p),v.cancel=function(){A!==i&&wi(A),u=0,r=c=s=A=i},v.flush=function(){return A===i?l:w(Fs())},v}var Us=zr(function(e,t){return lr(e,1,t)}),Ds=zr(function(e,t,n){return lr(e,ga(t)||0,n)});function Os(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new xe(o);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var s=e.apply(this,r);return n.cache=o.set(i,s)||o,s};return n.cache=new(Os.Cache||jn),n}function Ls(e){if("function"!=typeof e)throw new xe(o);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Os.Cache=jn;var Is=mi(function(e,t){var n=(t=1==t.length&&Gs(t[0])?_t(t[0],Vt(oo())):_t(fr(t,1),Vt(oo()))).length;return zr(function(r){for(var i=-1,o=mn(r.length,n);++i<o;)r[i]=t[i].call(this,r[i]);return mt(e,this,r)})}),Hs=zr(function(e,t){var n=tn(t,io(Hs));return Wi(e,l,i,t,n)}),Ms=zr(function(e,t){var n=tn(t,io(Ms));return Wi(e,64,i,t,n)}),Rs=Zi(function(e,t){return Wi(e,256,i,i,i,t)});function Ns(e,t){return e===t||e!=e&&t!=t}var Ps=Vi(Er),Ks=Vi(function(e,t){return e>=t}),Vs=Qr(function(){return arguments}())?Qr:function(e){return ta(e)&&Ue.call(e,"callee")&&!We.call(e,"callee")},Gs=r.isArray,js=ut?Vt(ut):function(e){return ta(e)&&Br(e)==k};function qs(e){return null!=e&&Zs(e.length)&&!Ys(e)}function zs(e){return ta(e)&&qs(e)}var Ws=hn||gl,Xs=ht?Vt(ht):function(e){return ta(e)&&Br(e)==y};function Js(e){if(!ta(e))return!1;var t=Br(e);return t==w||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!ia(e)}function Ys(e){if(!ea(e))return!1;var t=Br(e);return t==v||t==b||"[object AsyncFunction]"==t||"[object Proxy]"==t}function $s(e){return"number"==typeof e&&e==pa(e)}function Zs(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=u}function ea(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function ta(e){return null!=e&&"object"==typeof e}var na=dt?Vt(dt):function(e){return ta(e)&&uo(e)==C};function ra(e){return"number"==typeof e||ta(e)&&Br(e)==B}function ia(e){if(!ta(e)||Br(e)!=E)return!1;var t=Ve(e);if(null===t)return!0;var n=Ue.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&ke.call(n)==Ie}var oa=pt?Vt(pt):function(e){return ta(e)&&Br(e)==F},sa=ft?Vt(ft):function(e){return ta(e)&&uo(e)==x};function aa(e){return"string"==typeof e||!Gs(e)&&ta(e)&&Br(e)==T}function la(e){return"symbol"==typeof e||ta(e)&&Br(e)==Q}var Aa=gt?Vt(gt):function(e){return ta(e)&&Zs(e.length)&&!!$e[Br(e)]},ca=Vi(Lr),ua=Vi(function(e,t){return e<=t});function ha(e){if(!e)return[];if(qs(e))return aa(e)?sn(e):Fi(e);if(it&&e[it])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[it]());var t=uo(e);return(t==C?Zt:t==x?nn:Na)(e)}function da(e){return e?(e=ga(e))===c||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function pa(e){var t=da(e),n=t%1;return t==t?n?t-n:t:0}function fa(e){return e?or(pa(e),0,d):0}function ga(e){if("number"==typeof e)return e;if(la(e))return h;if(ea(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=ea(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Kt(e);var n=pe.test(e);return n||ge.test(e)?nt(e.slice(2),n?2:8):de.test(e)?h:+e}function ma(e){return xi(e,Ua(e))}function ya(e){return null==e?"":si(e)}var wa=Qi(function(e,t){if(bo(t)||qs(t))xi(t,ka(t),e);else for(var n in t)Ue.call(t,n)&&Zn(e,n,t[n])}),va=Qi(function(e,t){xi(t,Ua(t),e)}),ba=Qi(function(e,t,n,r){xi(t,Ua(t),e,r)}),Ca=Qi(function(e,t,n,r){xi(t,ka(t),e,r)}),Ba=Zi(ir),Ea=zr(function(e,t){e=Ee(e);var n=-1,r=t.length,o=r>2?t[2]:i;for(o&&mo(t[0],t[1],o)&&(r=1);++n<r;)for(var s=t[n],a=Ua(s),l=-1,A=a.length;++l<A;){var c=a[l],u=e[c];(u===i||Ns(u,Qe[c])&&!Ue.call(e,c))&&(e[c]=s[c])}return e}),_a=zr(function(e){return e.push(i,Ji),mt(Oa,i,e)});function Fa(e,t,n){var r=null==e?i:br(e,t);return r===i?n:r}function xa(e,t){return null!=e&&ho(e,t,Fr)}var Ta=Mi(function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Le.call(t)),e[t]=n},el(rl)),Qa=Mi(function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Le.call(t)),Ue.call(e,t)?e[t].push(n):e[t]=[n]},oo),Sa=zr(Tr);function ka(e){return qs(e)?Wn(e):Or(e)}function Ua(e){return qs(e)?Wn(e,!0):function(e){if(!ea(e))return function(e){var t=[];if(null!=e)for(var n in Ee(e))t.push(n);return t}(e);var t=bo(e),n=[];for(var r in e)("constructor"!=r||!t&&Ue.call(e,r))&&n.push(r);return n}(e)}var Da=Qi(function(e,t,n){Rr(e,t,n)}),Oa=Qi(function(e,t,n,r){Rr(e,t,n,r)}),La=Zi(function(e,t){var n={};if(null==e)return n;var r=!1;t=_t(t,function(t){return t=gi(t,e),r||(r=t.length>1),t}),xi(e,to(e),n),r&&(n=sr(n,7,Yi));for(var i=t.length;i--;)li(n,t[i]);return n}),Ia=Zi(function(e,t){return null==e?{}:function(e,t){return Kr(e,t,function(t,n){return xa(e,n)})}(e,t)});function Ha(e,t){if(null==e)return{};var n=_t(to(e),function(e){return[e]});return t=oo(t),Kr(e,n,function(e,n){return t(e,n[0])})}var Ma=zi(ka),Ra=zi(Ua);function Na(e){return null==e?[]:Gt(e,ka(e))}var Pa=Di(function(e,t,n){return t=t.toLowerCase(),e+(n?Ka(t):t)});function Ka(e){return Ja(ya(e).toLowerCase())}function Va(e){return(e=ya(e))&&e.replace(ye,Xt).replace(je,"")}var Ga=Di(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}),ja=Di(function(e,t,n){return e+(n?" ":"")+t.toLowerCase()}),qa=Ui("toLowerCase"),za=Di(function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}),Wa=Di(function(e,t,n){return e+(n?" ":"")+Ja(t)}),Xa=Di(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),Ja=Ui("toUpperCase");function Ya(e,t,n){return e=ya(e),(t=n?i:t)===i?function(e){return Xe.test(e)}(e)?function(e){return e.match(ze)||[]}(e):function(e){return e.match(le)||[]}(e):e.match(t)||[]}var $a=zr(function(e,t){try{return mt(e,i,t)}catch(n){return Js(n)?n:new be(n)}}),Za=Zi(function(e,t){return wt(t,function(t){t=Ho(t),rr(e,t,Qs(e[t],e))}),e});function el(e){return function(){return e}}var tl=Ii(),nl=Ii(!0);function rl(e){return e}function il(e){return Dr("function"==typeof e?e:sr(e,1))}var ol=zr(function(e,t){return function(n){return Tr(n,e,t)}}),sl=zr(function(e,t){return function(n){return Tr(e,n,t)}});function al(e,t,n){var r=ka(t),i=vr(t,r);null!=n||ea(t)&&(i.length||!r.length)||(n=t,t=e,e=this,i=vr(t,ka(t)));var o=!(ea(n)&&"chain"in n&&!n.chain),s=Ys(e);return wt(i,function(n){var r=t[n];e[n]=r,s&&(e.prototype[n]=function(){var t=this.__chain__;if(o||t){var n=e(this.__wrapped__),i=n.__actions__=Fi(this.__actions__);return i.push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,Ft([this.value()],arguments))})}),e}function ll(){}var Al=Ni(_t),cl=Ni(bt),ul=Ni(Qt);function hl(e){return yo(e)?Ht(Ho(e)):function(e){return function(t){return br(t,e)}}(e)}var dl=Ki(),pl=Ki(!0);function fl(){return[]}function gl(){return!1}var ml,yl=Ri(function(e,t){return e+t},0),wl=ji("ceil"),vl=Ri(function(e,t){return e/t},1),bl=ji("floor"),Cl=Ri(function(e,t){return e*t},1),Bl=ji("round"),El=Ri(function(e,t){return e-t},0);return Mn.after=function(e,t){if("function"!=typeof t)throw new xe(o);return e=pa(e),function(){if(--e<1)return t.apply(this,arguments)}},Mn.ary=xs,Mn.assign=wa,Mn.assignIn=va,Mn.assignInWith=ba,Mn.assignWith=Ca,Mn.at=Ba,Mn.before=Ts,Mn.bind=Qs,Mn.bindAll=Za,Mn.bindKey=Ss,Mn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Gs(e)?e:[e]},Mn.chain=hs,Mn.chunk=function(e,t,n){t=(n?mo(e,t,n):t===i)?1:gn(pa(t),0);var o=null==e?0:e.length;if(!o||t<1)return[];for(var s=0,a=0,l=r(Mt(o/t));s<o;)l[a++]=ei(e,s,s+=t);return l},Mn.compact=function(e){for(var t=-1,n=null==e?0:e.length,r=0,i=[];++t<n;){var o=e[t];o&&(i[r++]=o)}return i},Mn.concat=function(){var e=arguments.length;if(!e)return[];for(var t=r(e-1),n=arguments[0],i=e;i--;)t[i-1]=arguments[i];return Ft(Gs(n)?Fi(n):[n],fr(t,1))},Mn.cond=function(e){var t=null==e?0:e.length,n=oo();return e=t?_t(e,function(e){if("function"!=typeof e[1])throw new xe(o);return[n(e[0]),e[1]]}):[],zr(function(n){for(var r=-1;++r<t;){var i=e[r];if(mt(i[0],this,n))return mt(i[1],this,n)}})},Mn.conforms=function(e){return function(e){var t=ka(e);return function(n){return ar(n,e,t)}}(sr(e,1))},Mn.constant=el,Mn.countBy=fs,Mn.create=function(e,t){var n=Rn(e);return null==t?n:nr(n,t)},Mn.curry=function e(t,n,r){var o=Wi(t,8,i,i,i,i,i,n=r?i:n);return o.placeholder=e.placeholder,o},Mn.curryRight=function e(t,n,r){var o=Wi(t,16,i,i,i,i,i,n=r?i:n);return o.placeholder=e.placeholder,o},Mn.debounce=ks,Mn.defaults=Ea,Mn.defaultsDeep=_a,Mn.defer=Us,Mn.delay=Ds,Mn.difference=No,Mn.differenceBy=Po,Mn.differenceWith=Ko,Mn.drop=function(e,t,n){var r=null==e?0:e.length;return r?ei(e,(t=n||t===i?1:pa(t))<0?0:t,r):[]},Mn.dropRight=function(e,t,n){var r=null==e?0:e.length;return r?ei(e,0,(t=r-(t=n||t===i?1:pa(t)))<0?0:t):[]},Mn.dropRightWhile=function(e,t){return e&&e.length?ci(e,oo(t,3),!0,!0):[]},Mn.dropWhile=function(e,t){return e&&e.length?ci(e,oo(t,3),!0):[]},Mn.fill=function(e,t,n,r){var o=null==e?0:e.length;return o?(n&&"number"!=typeof n&&mo(e,t,n)&&(n=0,r=o),function(e,t,n,r){var o=e.length;for((n=pa(n))<0&&(n=-n>o?0:o+n),(r=r===i||r>o?o:pa(r))<0&&(r+=o),r=n>r?0:fa(r);n<r;)e[n++]=t;return e}(e,t,n,r)):[]},Mn.filter=function(e,t){return(Gs(e)?Ct:pr)(e,oo(t,3))},Mn.flatMap=function(e,t){return fr(Bs(e,t),1)},Mn.flatMapDeep=function(e,t){return fr(Bs(e,t),c)},Mn.flatMapDepth=function(e,t,n){return n=n===i?1:pa(n),fr(Bs(e,t),n)},Mn.flatten=jo,Mn.flattenDeep=function(e){return null!=e&&e.length?fr(e,c):[]},Mn.flattenDepth=function(e,t){return null!=e&&e.length?fr(e,t=t===i?1:pa(t)):[]},Mn.flip=function(e){return Wi(e,512)},Mn.flow=tl,Mn.flowRight=nl,Mn.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var i=e[t];r[i[0]]=i[1]}return r},Mn.functions=function(e){return null==e?[]:vr(e,ka(e))},Mn.functionsIn=function(e){return null==e?[]:vr(e,Ua(e))},Mn.groupBy=vs,Mn.initial=function(e){return null!=e&&e.length?ei(e,0,-1):[]},Mn.intersection=zo,Mn.intersectionBy=Wo,Mn.intersectionWith=Xo,Mn.invert=Ta,Mn.invertBy=Qa,Mn.invokeMap=bs,Mn.iteratee=il,Mn.keyBy=Cs,Mn.keys=ka,Mn.keysIn=Ua,Mn.map=Bs,Mn.mapKeys=function(e,t){var n={};return t=oo(t,3),yr(e,function(e,r,i){rr(n,t(e,r,i),e)}),n},Mn.mapValues=function(e,t){var n={};return t=oo(t,3),yr(e,function(e,r,i){rr(n,r,t(e,r,i))}),n},Mn.matches=function(e){return Hr(sr(e,1))},Mn.matchesProperty=function(e,t){return Mr(e,sr(t,1))},Mn.memoize=Os,Mn.merge=Da,Mn.mergeWith=Oa,Mn.method=ol,Mn.methodOf=sl,Mn.mixin=al,Mn.negate=Ls,Mn.nthArg=function(e){return e=pa(e),zr(function(t){return Nr(t,e)})},Mn.omit=La,Mn.omitBy=function(e,t){return Ha(e,Ls(oo(t)))},Mn.once=function(e){return Ts(2,e)},Mn.orderBy=function(e,t,n,r){return null==e?[]:(Gs(t)||(t=null==t?[]:[t]),Gs(n=r?i:n)||(n=null==n?[]:[n]),Pr(e,t,n))},Mn.over=Al,Mn.overArgs=Is,Mn.overEvery=cl,Mn.overSome=ul,Mn.partial=Hs,Mn.partialRight=Ms,Mn.partition=Es,Mn.pick=Ia,Mn.pickBy=Ha,Mn.property=hl,Mn.propertyOf=function(e){return function(t){return null==e?i:br(e,t)}},Mn.pull=Yo,Mn.pullAll=$o,Mn.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?Vr(e,t,oo(n,2)):e},Mn.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?Vr(e,t,i,n):e},Mn.pullAt=Zo,Mn.range=dl,Mn.rangeRight=pl,Mn.rearg=Rs,Mn.reject=function(e,t){return(Gs(e)?Ct:pr)(e,Ls(oo(t,3)))},Mn.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,i=[],o=e.length;for(t=oo(t,3);++r<o;){var s=e[r];t(s,r,e)&&(n.push(s),i.push(r))}return Gr(e,i),n},Mn.rest=function(e,t){if("function"!=typeof e)throw new xe(o);return zr(e,t=t===i?t:pa(t))},Mn.reverse=es,Mn.sampleSize=function(e,t,n){return t=(n?mo(e,t,n):t===i)?1:pa(t),(Gs(e)?Jn:Xr)(e,t)},Mn.set=function(e,t,n){return null==e?e:Jr(e,t,n)},Mn.setWith=function(e,t,n,r){return r="function"==typeof r?r:i,null==e?e:Jr(e,t,n,r)},Mn.shuffle=function(e){return(Gs(e)?Yn:Zr)(e)},Mn.slice=function(e,t,n){var r=null==e?0:e.length;return r?(n&&"number"!=typeof n&&mo(e,t,n)?(t=0,n=r):(t=null==t?0:pa(t),n=n===i?r:pa(n)),ei(e,t,n)):[]},Mn.sortBy=_s,Mn.sortedUniq=function(e){return e&&e.length?ii(e):[]},Mn.sortedUniqBy=function(e,t){return e&&e.length?ii(e,oo(t,2)):[]},Mn.split=function(e,t,n){return n&&"number"!=typeof n&&mo(e,t,n)&&(t=n=i),(n=n===i?d:n>>>0)?(e=ya(e))&&("string"==typeof t||null!=t&&!oa(t))&&!(t=si(t))&&$t(e)?yi(sn(e),0,n):e.split(t,n):[]},Mn.spread=function(e,t){if("function"!=typeof e)throw new xe(o);return t=null==t?0:gn(pa(t),0),zr(function(n){var r=n[t],i=yi(n,0,t);return r&&Ft(i,r),mt(e,this,i)})},Mn.tail=function(e){var t=null==e?0:e.length;return t?ei(e,1,t):[]},Mn.take=function(e,t,n){return e&&e.length?ei(e,0,(t=n||t===i?1:pa(t))<0?0:t):[]},Mn.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?ei(e,(t=r-(t=n||t===i?1:pa(t)))<0?0:t,r):[]},Mn.takeRightWhile=function(e,t){return e&&e.length?ci(e,oo(t,3),!1,!0):[]},Mn.takeWhile=function(e,t){return e&&e.length?ci(e,oo(t,3)):[]},Mn.tap=function(e,t){return t(e),e},Mn.throttle=function(e,t,n){var r=!0,i=!0;if("function"!=typeof e)throw new xe(o);return ea(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),ks(e,t,{leading:r,maxWait:t,trailing:i})},Mn.thru=ds,Mn.toArray=ha,Mn.toPairs=Ma,Mn.toPairsIn=Ra,Mn.toPath=function(e){return Gs(e)?_t(e,Ho):la(e)?[e]:Fi(Io(ya(e)))},Mn.toPlainObject=ma,Mn.transform=function(e,t,n){var r=Gs(e),i=r||Ws(e)||Aa(e);if(t=oo(t,4),null==n){var o=e&&e.constructor;n=i?r?new o:[]:ea(e)&&Ys(o)?Rn(Ve(e)):{}}return(i?wt:yr)(e,function(e,r,i){return t(n,e,r,i)}),n},Mn.unary=function(e){return xs(e,1)},Mn.union=ts,Mn.unionBy=ns,Mn.unionWith=rs,Mn.uniq=function(e){return e&&e.length?ai(e):[]},Mn.uniqBy=function(e,t){return e&&e.length?ai(e,oo(t,2)):[]},Mn.uniqWith=function(e,t){return t="function"==typeof t?t:i,e&&e.length?ai(e,i,t):[]},Mn.unset=function(e,t){return null==e||li(e,t)},Mn.unzip=is,Mn.unzipWith=os,Mn.update=function(e,t,n){return null==e?e:Ai(e,t,fi(n))},Mn.updateWith=function(e,t,n,r){return r="function"==typeof r?r:i,null==e?e:Ai(e,t,fi(n),r)},Mn.values=Na,Mn.valuesIn=function(e){return null==e?[]:Gt(e,Ua(e))},Mn.without=ss,Mn.words=Ya,Mn.wrap=function(e,t){return Hs(fi(t),e)},Mn.xor=as,Mn.xorBy=ls,Mn.xorWith=As,Mn.zip=cs,Mn.zipObject=function(e,t){return di(e||[],t||[],Zn)},Mn.zipObjectDeep=function(e,t){return di(e||[],t||[],Jr)},Mn.zipWith=us,Mn.entries=Ma,Mn.entriesIn=Ra,Mn.extend=va,Mn.extendWith=ba,al(Mn,Mn),Mn.add=yl,Mn.attempt=$a,Mn.camelCase=Pa,Mn.capitalize=Ka,Mn.ceil=wl,Mn.clamp=function(e,t,n){return n===i&&(n=t,t=i),n!==i&&(n=(n=ga(n))==n?n:0),t!==i&&(t=(t=ga(t))==t?t:0),or(ga(e),t,n)},Mn.clone=function(e){return sr(e,4)},Mn.cloneDeep=function(e){return sr(e,5)},Mn.cloneDeepWith=function(e,t){return sr(e,5,t="function"==typeof t?t:i)},Mn.cloneWith=function(e,t){return sr(e,4,t="function"==typeof t?t:i)},Mn.conformsTo=function(e,t){return null==t||ar(e,t,ka(t))},Mn.deburr=Va,Mn.defaultTo=function(e,t){return null==e||e!=e?t:e},Mn.divide=vl,Mn.endsWith=function(e,t,n){e=ya(e),t=si(t);var r=e.length,o=n=n===i?r:or(pa(n),0,r);return(n-=t.length)>=0&&e.slice(n,o)==t},Mn.eq=Ns,Mn.escape=function(e){return(e=ya(e))&&W.test(e)?e.replace(q,Jt):e},Mn.escapeRegExp=function(e){return(e=ya(e))&&ne.test(e)?e.replace(te,"\\$&"):e},Mn.every=function(e,t,n){var r=Gs(e)?bt:hr;return n&&mo(e,t,n)&&(t=i),r(e,oo(t,3))},Mn.find=gs,Mn.findIndex=Vo,Mn.findKey=function(e,t){return kt(e,oo(t,3),yr)},Mn.findLast=ms,Mn.findLastIndex=Go,Mn.findLastKey=function(e,t){return kt(e,oo(t,3),wr)},Mn.floor=bl,Mn.forEach=ys,Mn.forEachRight=ws,Mn.forIn=function(e,t){return null==e?e:gr(e,oo(t,3),Ua)},Mn.forInRight=function(e,t){return null==e?e:mr(e,oo(t,3),Ua)},Mn.forOwn=function(e,t){return e&&yr(e,oo(t,3))},Mn.forOwnRight=function(e,t){return e&&wr(e,oo(t,3))},Mn.get=Fa,Mn.gt=Ps,Mn.gte=Ks,Mn.has=function(e,t){return null!=e&&ho(e,t,_r)},Mn.hasIn=xa,Mn.head=qo,Mn.identity=rl,Mn.includes=function(e,t,n,r){e=qs(e)?e:Na(e),n=n&&!r?pa(n):0;var i=e.length;return n<0&&(n=gn(i+n,0)),aa(e)?n<=i&&e.indexOf(t,n)>-1:!!i&&Dt(e,t,n)>-1},Mn.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:pa(n);return i<0&&(i=gn(r+i,0)),Dt(e,t,i)},Mn.inRange=function(e,t,n){return t=da(t),n===i?(n=t,t=0):n=da(n),function(e,t,n){return e>=mn(t,n)&&e<gn(t,n)}(e=ga(e),t,n)},Mn.invoke=Sa,Mn.isArguments=Vs,Mn.isArray=Gs,Mn.isArrayBuffer=js,Mn.isArrayLike=qs,Mn.isArrayLikeObject=zs,Mn.isBoolean=function(e){return!0===e||!1===e||ta(e)&&Br(e)==m},Mn.isBuffer=Ws,Mn.isDate=Xs,Mn.isElement=function(e){return ta(e)&&1===e.nodeType&&!ia(e)},Mn.isEmpty=function(e){if(null==e)return!0;if(qs(e)&&(Gs(e)||"string"==typeof e||"function"==typeof e.splice||Ws(e)||Aa(e)||Vs(e)))return!e.length;var t=uo(e);if(t==C||t==x)return!e.size;if(bo(e))return!Or(e).length;for(var n in e)if(Ue.call(e,n))return!1;return!0},Mn.isEqual=function(e,t){return Sr(e,t)},Mn.isEqualWith=function(e,t,n){var r=(n="function"==typeof n?n:i)?n(e,t):i;return r===i?Sr(e,t,i,n):!!r},Mn.isError=Js,Mn.isFinite=function(e){return"number"==typeof e&&dn(e)},Mn.isFunction=Ys,Mn.isInteger=$s,Mn.isLength=Zs,Mn.isMap=na,Mn.isMatch=function(e,t){return e===t||kr(e,t,ao(t))},Mn.isMatchWith=function(e,t,n){return n="function"==typeof n?n:i,kr(e,t,ao(t),n)},Mn.isNaN=function(e){return ra(e)&&e!=+e},Mn.isNative=function(e){if(vo(e))throw new be("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Ur(e)},Mn.isNil=function(e){return null==e},Mn.isNull=function(e){return null===e},Mn.isNumber=ra,Mn.isObject=ea,Mn.isObjectLike=ta,Mn.isPlainObject=ia,Mn.isRegExp=oa,Mn.isSafeInteger=function(e){return $s(e)&&e>=-9007199254740991&&e<=u},Mn.isSet=sa,Mn.isString=aa,Mn.isSymbol=la,Mn.isTypedArray=Aa,Mn.isUndefined=function(e){return e===i},Mn.isWeakMap=function(e){return ta(e)&&uo(e)==S},Mn.isWeakSet=function(e){return ta(e)&&"[object WeakSet]"==Br(e)},Mn.join=function(e,t){return null==e?"":pn.call(e,t)},Mn.kebabCase=Ga,Mn.last=Jo,Mn.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r;return n!==i&&(o=(o=pa(n))<0?gn(r+o,0):mn(o,r-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,o):Ut(e,Lt,o,!0)},Mn.lowerCase=ja,Mn.lowerFirst=qa,Mn.lt=ca,Mn.lte=ua,Mn.max=function(e){return e&&e.length?dr(e,rl,Er):i},Mn.maxBy=function(e,t){return e&&e.length?dr(e,oo(t,2),Er):i},Mn.mean=function(e){return It(e,rl)},Mn.meanBy=function(e,t){return It(e,oo(t,2))},Mn.min=function(e){return e&&e.length?dr(e,rl,Lr):i},Mn.minBy=function(e,t){return e&&e.length?dr(e,oo(t,2),Lr):i},Mn.stubArray=fl,Mn.stubFalse=gl,Mn.stubObject=function(){return{}},Mn.stubString=function(){return""},Mn.stubTrue=function(){return!0},Mn.multiply=Cl,Mn.nth=function(e,t){return e&&e.length?Nr(e,pa(t)):i},Mn.noConflict=function(){return ot._===this&&(ot._=He),this},Mn.noop=ll,Mn.now=Fs,Mn.pad=function(e,t,n){e=ya(e);var r=(t=pa(t))?on(e):0;if(!t||r>=t)return e;var i=(t-r)/2;return Pi(cn(i),n)+e+Pi(Mt(i),n)},Mn.padEnd=function(e,t,n){e=ya(e);var r=(t=pa(t))?on(e):0;return t&&r<t?e+Pi(t-r,n):e},Mn.padStart=function(e,t,n){e=ya(e);var r=(t=pa(t))?on(e):0;return t&&r<t?Pi(t-r,n)+e:e},Mn.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),wn(ya(e).replace(re,""),t||0)},Mn.random=function(e,t,n){if(n&&"boolean"!=typeof n&&mo(e,t,n)&&(t=n=i),n===i&&("boolean"==typeof t?(n=t,t=i):"boolean"==typeof e&&(n=e,e=i)),e===i&&t===i?(e=0,t=1):(e=da(e),t===i?(t=e,e=0):t=da(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var o=vn();return mn(e+o*(t-e+tt("1e-"+((o+"").length-1))),t)}return jr(e,t)},Mn.reduce=function(e,t,n){var r=Gs(e)?xt:Rt,i=arguments.length<3;return r(e,oo(t,4),n,i,cr)},Mn.reduceRight=function(e,t,n){var r=Gs(e)?Tt:Rt,i=arguments.length<3;return r(e,oo(t,4),n,i,ur)},Mn.repeat=function(e,t,n){return t=(n?mo(e,t,n):t===i)?1:pa(t),qr(ya(e),t)},Mn.replace=function(){var e=arguments,t=ya(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Mn.result=function(e,t,n){var r=-1,o=(t=gi(t,e)).length;for(o||(o=1,e=i);++r<o;){var s=null==e?i:e[Ho(t[r])];s===i&&(r=o,s=n),e=Ys(s)?s.call(e):s}return e},Mn.round=Bl,Mn.runInContext=e,Mn.sample=function(e){return(Gs(e)?Xn:Wr)(e)},Mn.size=function(e){if(null==e)return 0;if(qs(e))return aa(e)?on(e):e.length;var t=uo(e);return t==C||t==x?e.size:Or(e).length},Mn.snakeCase=za,Mn.some=function(e,t,n){var r=Gs(e)?Qt:ti;return n&&mo(e,t,n)&&(t=i),r(e,oo(t,3))},Mn.sortedIndex=function(e,t){return ni(e,t)},Mn.sortedIndexBy=function(e,t,n){return ri(e,t,oo(n,2))},Mn.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=ni(e,t);if(r<n&&Ns(e[r],t))return r}return-1},Mn.sortedLastIndex=function(e,t){return ni(e,t,!0)},Mn.sortedLastIndexBy=function(e,t,n){return ri(e,t,oo(n,2),!0)},Mn.sortedLastIndexOf=function(e,t){if(null!=e&&e.length){var n=ni(e,t,!0)-1;if(Ns(e[n],t))return n}return-1},Mn.startCase=Wa,Mn.startsWith=function(e,t,n){return e=ya(e),n=null==n?0:or(pa(n),0,e.length),t=si(t),e.slice(n,n+t.length)==t},Mn.subtract=El,Mn.sum=function(e){return e&&e.length?Nt(e,rl):0},Mn.sumBy=function(e,t){return e&&e.length?Nt(e,oo(t,2)):0},Mn.template=function(e,t,n){var r=Mn.templateSettings;n&&mo(e,t,n)&&(t=i),e=ya(e),t=ba({},t,r,Xi);var o,s,a=ba({},t.imports,r.imports,Xi),l=ka(a),A=Gt(a,l),c=0,u=t.interpolate||we,h="__p += '",d=_e((t.escape||we).source+"|"+u.source+"|"+(u===Y?ue:we).source+"|"+(t.evaluate||we).source+"|$","g"),p="//# sourceURL="+(Ue.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Ye+"]")+"\n";e.replace(d,function(t,n,r,i,a,l){return r||(r=i),h+=e.slice(c,l).replace(ve,Yt),n&&(o=!0,h+="' +\n__e("+n+") +\n'"),a&&(s=!0,h+="';\n"+a+";\n__p += '"),r&&(h+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),c=l+t.length,t}),h+="';\n";var f=Ue.call(t,"variable")&&t.variable;if(f){if(Ae.test(f))throw new be("Invalid `variable` option passed into `_.template`")}else h="with (obj) {\n"+h+"\n}\n";h=(s?h.replace(K,""):h).replace(V,"$1").replace(G,"$1;"),h="function("+(f||"obj")+") {\n"+(f?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(s?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+h+"return __p\n}";var g=$a(function(){return Ce(l,p+"return "+h).apply(i,A)});if(g.source=h,Js(g))throw g;return g},Mn.times=function(e,t){if((e=pa(e))<1||e>u)return[];var n=d,r=mn(e,d);t=oo(t),e-=d;for(var i=Pt(r,t);++n<e;)t(n);return i},Mn.toFinite=da,Mn.toInteger=pa,Mn.toLength=fa,Mn.toLower=function(e){return ya(e).toLowerCase()},Mn.toNumber=ga,Mn.toSafeInteger=function(e){return e?or(pa(e),-9007199254740991,u):0===e?e:0},Mn.toString=ya,Mn.toUpper=function(e){return ya(e).toUpperCase()},Mn.trim=function(e,t,n){if((e=ya(e))&&(n||t===i))return Kt(e);if(!e||!(t=si(t)))return e;var r=sn(e),o=sn(t);return yi(r,qt(r,o),zt(r,o)+1).join("")},Mn.trimEnd=function(e,t,n){if((e=ya(e))&&(n||t===i))return e.slice(0,an(e)+1);if(!e||!(t=si(t)))return e;var r=sn(e);return yi(r,0,zt(r,sn(t))+1).join("")},Mn.trimStart=function(e,t,n){if((e=ya(e))&&(n||t===i))return e.replace(re,"");if(!e||!(t=si(t)))return e;var r=sn(e);return yi(r,qt(r,sn(t))).join("")},Mn.truncate=function(e,t){var n=30,r="...";if(ea(t)){var o="separator"in t?t.separator:o;n="length"in t?pa(t.length):n,r="omission"in t?si(t.omission):r}var s=(e=ya(e)).length;if($t(e)){var a=sn(e);s=a.length}if(n>=s)return e;var l=n-on(r);if(l<1)return r;var A=a?yi(a,0,l).join(""):e.slice(0,l);if(o===i)return A+r;if(a&&(l+=A.length-l),oa(o)){if(e.slice(l).search(o)){var c,u=A;for(o.global||(o=_e(o.source,ya(he.exec(o))+"g")),o.lastIndex=0;c=o.exec(u);)var h=c.index;A=A.slice(0,h===i?l:h)}}else if(e.indexOf(si(o),l)!=l){var d=A.lastIndexOf(o);d>-1&&(A=A.slice(0,d))}return A+r},Mn.unescape=function(e){return(e=ya(e))&&z.test(e)?e.replace(j,ln):e},Mn.uniqueId=function(e){var t=++De;return ya(e)+t},Mn.upperCase=Xa,Mn.upperFirst=Ja,Mn.each=ys,Mn.eachRight=ws,Mn.first=qo,al(Mn,(ml={},yr(Mn,function(e,t){Ue.call(Mn.prototype,t)||(ml[t]=e)}),ml),{chain:!1}),Mn.VERSION="4.17.21",wt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){Mn[e].placeholder=Mn}),wt(["drop","take"],function(e,t){Kn.prototype[e]=function(n){n=n===i?1:gn(pa(n),0);var r=this.__filtered__&&!t?new Kn(this):this.clone();return r.__filtered__?r.__takeCount__=mn(n,r.__takeCount__):r.__views__.push({size:mn(n,d),type:e+(r.__dir__<0?"Right":"")}),r},Kn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}}),wt(["filter","map","takeWhile"],function(e,t){var n=t+1,r=1==n||3==n;Kn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:oo(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}}),wt(["head","last"],function(e,t){var n="take"+(t?"Right":"");Kn.prototype[e]=function(){return this[n](1).value()[0]}}),wt(["initial","tail"],function(e,t){var n="drop"+(t?"":"Right");Kn.prototype[e]=function(){return this.__filtered__?new Kn(this):this[n](1)}}),Kn.prototype.compact=function(){return this.filter(rl)},Kn.prototype.find=function(e){return this.filter(e).head()},Kn.prototype.findLast=function(e){return this.reverse().find(e)},Kn.prototype.invokeMap=zr(function(e,t){return"function"==typeof e?new Kn(this):this.map(function(n){return Tr(n,e,t)})}),Kn.prototype.reject=function(e){return this.filter(Ls(oo(e)))},Kn.prototype.slice=function(e,t){e=pa(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Kn(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==i&&(n=(t=pa(t))<0?n.dropRight(-t):n.take(t-e)),n)},Kn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Kn.prototype.toArray=function(){return this.take(d)},yr(Kn.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),o=Mn[r?"take"+("last"==t?"Right":""):t],s=r||/^find/.test(t);o&&(Mn.prototype[t]=function(){var t=this.__wrapped__,a=r?[1]:arguments,l=t instanceof Kn,A=a[0],c=l||Gs(t),u=function(e){var t=o.apply(Mn,Ft([e],a));return r&&h?t[0]:t};c&&n&&"function"==typeof A&&1!=A.length&&(l=c=!1);var h=this.__chain__,d=!!this.__actions__.length,p=s&&!h,f=l&&!d;if(!s&&c){t=f?t:new Kn(this);var g=e.apply(t,a);return g.__actions__.push({func:ds,args:[u],thisArg:i}),new Pn(g,h)}return p&&f?e.apply(this,a):(g=this.thru(u),p?r?g.value()[0]:g.value():g)})}),wt(["pop","push","shift","sort","splice","unshift"],function(e){var t=Te[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);Mn.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var i=this.value();return t.apply(Gs(i)?i:[],e)}return this[n](function(n){return t.apply(Gs(n)?n:[],e)})}}),yr(Kn.prototype,function(e,t){var n=Mn[t];if(n){var r=n.name+"";Ue.call(Qn,r)||(Qn[r]=[]),Qn[r].push({name:t,func:n})}}),Qn[Hi(i,2).name]=[{name:"wrapper",func:i}],Kn.prototype.clone=function(){var e=new Kn(this.__wrapped__);return e.__actions__=Fi(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Fi(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Fi(this.__views__),e},Kn.prototype.reverse=function(){if(this.__filtered__){var e=new Kn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Kn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Gs(e),r=t<0,i=n?e.length:0,o=function(e,t,n){for(var r=-1,i=n.length;++r<i;){var o=n[r],s=o.size;switch(o.type){case"drop":e+=s;break;case"dropRight":t-=s;break;case"take":t=mn(t,e+s);break;case"takeRight":e=gn(e,t-s)}}return{start:e,end:t}}(0,i,this.__views__),s=o.start,a=o.end,l=a-s,A=r?a:s-1,c=this.__iteratees__,u=c.length,h=0,d=mn(l,this.__takeCount__);if(!n||!r&&i==l&&d==l)return ui(e,this.__actions__);var p=[];e:for(;l--&&h<d;){for(var f=-1,g=e[A+=t];++f<u;){var m=c[f],y=m.type,w=(0,m.iteratee)(g);if(2==y)g=w;else if(!w){if(1==y)continue e;break e}}p[h++]=g}return p},Mn.prototype.at=ps,Mn.prototype.chain=function(){return hs(this)},Mn.prototype.commit=function(){return new Pn(this.value(),this.__chain__)},Mn.prototype.next=function(){this.__values__===i&&(this.__values__=ha(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?i:this.__values__[this.__index__++]}},Mn.prototype.plant=function(e){for(var t,n=this;n instanceof Nn;){var r=Ro(n);r.__index__=0,r.__values__=i,t?o.__wrapped__=r:t=r;var o=r;n=n.__wrapped__}return o.__wrapped__=e,t},Mn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Kn){var t=e;return this.__actions__.length&&(t=new Kn(this)),(t=t.reverse()).__actions__.push({func:ds,args:[es],thisArg:i}),new Pn(t,this.__chain__)}return this.thru(es)},Mn.prototype.toJSON=Mn.prototype.valueOf=Mn.prototype.value=function(){return ui(this.__wrapped__,this.__actions__)},Mn.prototype.first=Mn.prototype.head,it&&(Mn.prototype[it]=function(){return this}),Mn}();ot._=An,(r=(function(){return An}).call(t,n,t,e))===i||(e.exports=r)}).call(this)},935:e=>{!function(t){"use strict";"function"==typeof bootstrap?bootstrap("promise",t):e.exports=t()}(function(){"use strict";var e=!1;try{throw new Error}catch(z){e=!!z.stack}var t,n=b(),r=function(){},i=function(){var e={task:void 0,next:null},t=e,n=!1,r=void 0,o=!1,s=[];function a(){for(var t,r;e.next;)t=(e=e.next).task,e.task=void 0,(r=e.domain)&&(e.domain=void 0,r.enter()),l(t,r);for(;s.length;)l(t=s.pop());n=!1}function l(e,t){try{e()}catch(z){if(o)throw t&&t.exit(),setTimeout(a,0),t&&t.enter(),z;setTimeout(function(){throw z},0)}t&&t.exit()}if(i=function(e){t=t.next={task:e,domain:o&&process.domain,next:null},n||(n=!0,r())},"object"==typeof process&&"[object process]"===process.toString()&&process.nextTick)o=!0,r=function(){process.nextTick(a)};else if("function"==typeof setImmediate)r="undefined"!=typeof window?setImmediate.bind(window,a):function(){setImmediate(a)};else if("undefined"!=typeof MessageChannel){var A=new MessageChannel;A.port1.onmessage=function(){r=c,A.port1.onmessage=a,a()};var c=function(){A.port2.postMessage(0)};r=function(){setTimeout(a,0),c()}}else r=function(){setTimeout(a,0)};return i.runAfter=function(e){s.push(e),n||(n=!0,r())},i}(),o=Function.call;function s(e){return function(){return o.apply(e,arguments)}}var a,l=s(Array.prototype.slice),A=s(Array.prototype.reduce||function(e,t){var n=0,r=this.length;if(1===arguments.length)for(;;){if(n in this){t=this[n++];break}if(++n>=r)throw new TypeError}for(;n<r;n++)n in this&&(t=e(t,this[n],n));return t}),c=s(Array.prototype.indexOf||function(e){for(var t=0;t<this.length;t++)if(this[t]===e)return t;return-1}),u=s(Array.prototype.map||function(e,t){var n=this,r=[];return A(n,function(i,o,s){r.push(e.call(t,o,s,n))},void 0),r}),h=Object.create||function(e){function t(){}return t.prototype=e,new t},d=Object.defineProperty||function(e,t,n){return e[t]=n.value,e},p=s(Object.prototype.hasOwnProperty),f=Object.keys||function(e){var t=[];for(var n in e)p(e,n)&&t.push(n);return t},g=s(Object.prototype.toString);function m(e){return"[object StopIteration]"===g(e)||e instanceof a}function y(t,n){if(e&&n.stack&&"object"==typeof t&&null!==t&&t.stack){for(var r=[],i=n;i;i=i.source)i.stack&&(!t.__minimumStackCounter__||t.__minimumStackCounter__>i.stackCounter)&&(d(t,"__minimumStackCounter__",{value:i.stackCounter,configurable:!0}),r.unshift(i.stack));r.unshift(t.stack);var o=function(e){for(var t=e.split("\n"),n=[],r=0;r<t.length;++r){var i=t[r];v(i)||-1!==(o=i).indexOf("(module.js:")||-1!==o.indexOf("(node.js:")||!i||n.push(i)}var o;return n.join("\n")}(r.join("\nFrom previous event:\n"));d(t,"stack",{value:o,configurable:!0})}}function w(e){var t=/at .+ \((.+):(\d+):(?:\d+)\)$/.exec(e);if(t)return[t[1],Number(t[2])];var n=/at ([^ ]+):(\d+):(?:\d+)$/.exec(e);if(n)return[n[1],Number(n[2])];var r=/.*@(.+):(\d+)$/.exec(e);return r?[r[1],Number(r[2])]:void 0}function v(e){var r=w(e);if(!r)return!1;var i=r[1];return r[0]===t&&i>=n&&i<=q}function b(){if(e)try{throw new Error}catch(z){var n=z.stack.split("\n"),r=w(n[0].indexOf("@")>0?n[1]:n[2]);if(!r)return;return t=r[0],r[1]}}function C(e){return e instanceof x?e:k(e)?function(e){var t=E();return C.nextTick(function(){try{e.then(t.resolve,t.reject,t.notify)}catch(n){t.reject(n)}}),t.promise}(e):N(e)}a="undefined"!=typeof ReturnValue?ReturnValue:function(e){this.value=e},C.resolve=C,C.nextTick=i,C.longStackSupport=!1;var B=1;function E(){var t,n=[],r=[],i=h(E.prototype),o=h(x.prototype);if(o.promiseDispatch=function(e,i,o){var s=l(arguments);n?(n.push(s),"when"===i&&o[1]&&r.push(o[1])):C.nextTick(function(){t.promiseDispatch.apply(t,s)})},o.valueOf=function(){if(n)return o;var e=Q(t);return S(e)&&(t=e),e},o.inspect=function(){return t?t.inspect():{state:"pending"}},C.longStackSupport&&e)try{throw new Error}catch(z){o.stack=z.stack.substring(z.stack.indexOf("\n")+1),o.stackCounter=B++}function s(i){t=i,C.longStackSupport&&e&&(o.source=i),A(n,function(e,t){C.nextTick(function(){i.promiseDispatch.apply(i,t)})},void 0),n=void 0,r=void 0}return i.promise=o,i.resolve=function(e){t||s(C(e))},i.fulfill=function(e){t||s(N(e))},i.reject=function(e){t||s(R(e))},i.notify=function(e){t||A(r,function(t,n){C.nextTick(function(){n(e)})},void 0)},i}function _(e){if("function"!=typeof e)throw new TypeError("resolver must be a function.");var t=E();try{e(t.resolve,t.reject,t.notify)}catch(n){t.reject(n)}return t.promise}function F(e){return _(function(t,n){for(var r=0,i=e.length;r<i;r++)C(e[r]).then(t,n)})}function x(e,t,n){void 0===t&&(t=function(e){return R(new Error("Promise does not support operation: "+e))}),void 0===n&&(n=function(){return{state:"unknown"}});var r=h(x.prototype);if(r.promiseDispatch=function(n,i,o){var s;try{s=e[i]?e[i].apply(r,o):t.call(r,i,o)}catch(a){s=R(a)}n&&n(s)},r.inspect=n,n){var i=n();"rejected"===i.state&&(r.exception=i.reason),r.valueOf=function(){var e=n();return"pending"===e.state||"rejected"===e.state?r:e.value}}return r}function T(e,t,n,r){return C(e).then(t,n,r)}function Q(e){if(S(e)){var t=e.inspect();if("fulfilled"===t.state)return t.value}return e}function S(e){return e instanceof x}function k(e){return(t=e)===Object(t)&&"function"==typeof e.then;var t}"object"==typeof process&&process&&process.env&&process.env.Q_DEBUG&&(C.longStackSupport=!0),C.defer=E,E.prototype.makeNodeResolver=function(){var e=this;return function(t,n){t?e.reject(t):e.resolve(arguments.length>2?l(arguments,1):n)}},C.Promise=_,C.promise=_,_.race=F,_.all=V,_.reject=R,_.resolve=C,C.passByCopy=function(e){return e},x.prototype.passByCopy=function(){return this},C.join=function(e,t){return C(e).join(t)},x.prototype.join=function(e){return C([this,e]).spread(function(e,t){if(e===t)return e;throw new Error("Q can't join: not the same: "+e+" "+t)})},C.race=F,x.prototype.race=function(){return this.then(C.race)},C.makePromise=x,x.prototype.toString=function(){return"[object Promise]"},x.prototype.then=function(e,t,n){var r=this,i=E(),o=!1;return C.nextTick(function(){r.promiseDispatch(function(t){o||(o=!0,i.resolve(function(t){try{return"function"==typeof e?e(t):t}catch(n){return R(n)}}(t)))},"when",[function(e){o||(o=!0,i.resolve(function(e){if("function"==typeof t){y(e,r);try{return t(e)}catch(n){return R(n)}}return R(e)}(e)))}])}),r.promiseDispatch(void 0,"when",[void 0,function(e){var t,r=!1;try{t=function(e){return"function"==typeof n?n(e):e}(e)}catch(z){if(r=!0,!C.onerror)throw z;C.onerror(z)}r||i.notify(t)}]),i.promise},C.tap=function(e,t){return C(e).tap(t)},x.prototype.tap=function(e){return e=C(e),this.then(function(t){return e.fcall(t).thenResolve(t)})},C.when=T,x.prototype.thenResolve=function(e){return this.then(function(){return e})},C.thenResolve=function(e,t){return C(e).thenResolve(t)},x.prototype.thenReject=function(e){return this.then(function(){throw e})},C.thenReject=function(e,t){return C(e).thenReject(t)},C.nearer=Q,C.isPromise=S,C.isPromiseAlike=k,C.isPending=function(e){return S(e)&&"pending"===e.inspect().state},x.prototype.isPending=function(){return"pending"===this.inspect().state},C.isFulfilled=function(e){return!S(e)||"fulfilled"===e.inspect().state},x.prototype.isFulfilled=function(){return"fulfilled"===this.inspect().state},C.isRejected=function(e){return S(e)&&"rejected"===e.inspect().state},x.prototype.isRejected=function(){return"rejected"===this.inspect().state};var U,D,O=[],L=[],I=[],H=!0;function M(){O.length=0,L.length=0,H||(H=!0)}function R(e){var t=x({when:function(t){return t&&function(e){if(H){var t=c(L,e);-1!==t&&("object"==typeof process&&"function"==typeof process.emit&&C.nextTick.runAfter(function(){var n=c(I,e);-1!==n&&(process.emit("rejectionHandled",O[t],e),I.splice(n,1))}),L.splice(t,1),O.splice(t,1))}}(this),t?t(e):this}},function(){return this},function(){return{state:"rejected",reason:e}});return function(e,t){H&&("object"==typeof process&&"function"==typeof process.emit&&C.nextTick.runAfter(function(){-1!==c(L,e)&&(process.emit("unhandledRejection",t,e),I.push(e))}),L.push(e),O.push(t&&void 0!==t.stack?t.stack:"(no stack) "+t))}(t,e),t}function N(e){return x({when:function(){return e},get:function(t){return e[t]},set:function(t,n){e[t]=n},delete:function(t){delete e[t]},post:function(t,n){return null==t?e.apply(void 0,n):e[t].apply(e,n)},apply:function(t,n){return e.apply(t,n)},keys:function(){return f(e)}},void 0,function(){return{state:"fulfilled",value:e}})}function P(e,t,n){return C(e).spread(t,n)}function K(e,t,n){return C(e).dispatch(t,n)}function V(e){return T(e,function(e){var t=0,n=E();return A(e,function(r,i,o){var s;S(i)&&"fulfilled"===(s=i.inspect()).state?e[o]=s.value:(++t,T(i,function(r){e[o]=r,0==--t&&n.resolve(e)},n.reject,function(e){n.notify({index:o,value:e})}))},void 0),0===t&&n.resolve(e),n.promise})}function G(e){if(0===e.length)return C.resolve();var t=C.defer(),n=0;return A(e,function(r,i,o){n++,T(e[o],function(e){t.resolve(e)},function(e){if(0==--n){var r=e||new Error(""+e);r.message="Q can't get fulfillment value from any promise, all promises were rejected. Last error message: "+r.message,t.reject(r)}},function(e){t.notify({index:o,value:e})})},void 0),t.promise}function j(e){return T(e,function(e){return e=u(e,C),T(V(u(e,function(e){return T(e,r,r)})),function(){return e})})}C.resetUnhandledRejections=M,C.getUnhandledReasons=function(){return O.slice()},C.stopUnhandledRejectionTracking=function(){M(),H=!1},M(),C.reject=R,C.fulfill=N,C.master=function(e){return x({isDef:function(){}},function(t,n){return K(e,t,n)},function(){return C(e).inspect()})},C.spread=P,x.prototype.spread=function(e,t){return this.all().then(function(t){return e.apply(void 0,t)},t)},C.async=function(e){return function(){function t(e,t){var o;if("undefined"==typeof StopIteration){try{o=n[e](t)}catch(s){return R(s)}return o.done?C(o.value):T(o.value,r,i)}try{o=n[e](t)}catch(s){return m(s)?C(s.value):R(s)}return T(o,r,i)}var n=e.apply(this,arguments),r=t.bind(t,"next"),i=t.bind(t,"throw");return r()}},C.spawn=function(e){C.done(C.async(e)())},C.return=function(e){throw new a(e)},C.promised=function(e){return function(){return P([this,V(arguments)],function(t,n){return e.apply(t,n)})}},C.dispatch=K,x.prototype.dispatch=function(e,t){var n=this,r=E();return C.nextTick(function(){n.promiseDispatch(r.resolve,e,t)}),r.promise},C.get=function(e,t){return C(e).dispatch("get",[t])},x.prototype.get=function(e){return this.dispatch("get",[e])},C.set=function(e,t,n){return C(e).dispatch("set",[t,n])},x.prototype.set=function(e,t){return this.dispatch("set",[e,t])},C.del=C.delete=function(e,t){return C(e).dispatch("delete",[t])},x.prototype.del=x.prototype.delete=function(e){return this.dispatch("delete",[e])},C.mapply=C.post=function(e,t,n){return C(e).dispatch("post",[t,n])},x.prototype.mapply=x.prototype.post=function(e,t){return this.dispatch("post",[e,t])},C.send=C.mcall=C.invoke=function(e,t){return C(e).dispatch("post",[t,l(arguments,2)])},x.prototype.send=x.prototype.mcall=x.prototype.invoke=function(e){return this.dispatch("post",[e,l(arguments,1)])},C.fapply=function(e,t){return C(e).dispatch("apply",[void 0,t])},x.prototype.fapply=function(e){return this.dispatch("apply",[void 0,e])},C.try=C.fcall=function(e){return C(e).dispatch("apply",[void 0,l(arguments,1)])},x.prototype.fcall=function(){return this.dispatch("apply",[void 0,l(arguments)])},C.fbind=function(e){var t=C(e),n=l(arguments,1);return function(){return t.dispatch("apply",[this,n.concat(l(arguments))])}},x.prototype.fbind=function(){var e=this,t=l(arguments);return function(){return e.dispatch("apply",[this,t.concat(l(arguments))])}},C.keys=function(e){return C(e).dispatch("keys",[])},x.prototype.keys=function(){return this.dispatch("keys",[])},C.all=V,x.prototype.all=function(){return V(this)},C.any=G,x.prototype.any=function(){return G(this)},C.allResolved=(U=j,D="allResolved",function(){return"undefined"!=typeof console&&"function"==typeof console.warn&&console.warn(D+" is deprecated, use allSettled instead.",new Error("").stack),U.apply(U,arguments)}),x.prototype.allResolved=function(){return j(this)},C.allSettled=function(e){return C(e).allSettled()},x.prototype.allSettled=function(){return this.then(function(e){return V(u(e,function(e){function t(){return e.inspect()}return(e=C(e)).then(t,t)}))})},C.fail=C.catch=function(e,t){return C(e).then(void 0,t)},x.prototype.fail=x.prototype.catch=function(e){return this.then(void 0,e)},C.progress=function(e,t){return C(e).then(void 0,void 0,t)},x.prototype.progress=function(e){return this.then(void 0,void 0,e)},C.fin=C.finally=function(e,t){return C(e).finally(t)},x.prototype.fin=x.prototype.finally=function(e){if(!e||"function"!=typeof e.apply)throw new Error("Q can't apply finally callback");return e=C(e),this.then(function(t){return e.fcall().then(function(){return t})},function(t){return e.fcall().then(function(){throw t})})},C.done=function(e,t,n,r){return C(e).done(t,n,r)},x.prototype.done=function(e,t,n){var r=function(e){C.nextTick(function(){if(y(e,i),!C.onerror)throw e;C.onerror(e)})},i=e||t||n?this.then(e,t,n):this;"object"==typeof process&&process&&process.domain&&(r=process.domain.bind(r)),i.then(void 0,r)},C.timeout=function(e,t,n){return C(e).timeout(t,n)},x.prototype.timeout=function(e,t){var n=E(),r=setTimeout(function(){t&&"string"!=typeof t||((t=new Error(t||"Timed out after "+e+" ms")).code="ETIMEDOUT"),n.reject(t)},e);return this.then(function(e){clearTimeout(r),n.resolve(e)},function(e){clearTimeout(r),n.reject(e)},n.notify),n.promise},C.delay=function(e,t){return void 0===t&&(t=e,e=void 0),C(e).delay(t)},x.prototype.delay=function(e){return this.then(function(t){var n=E();return setTimeout(function(){n.resolve(t)},e),n.promise})},C.nfapply=function(e,t){return C(e).nfapply(t)},x.prototype.nfapply=function(e){var t=E(),n=l(e);return n.push(t.makeNodeResolver()),this.fapply(n).fail(t.reject),t.promise},C.nfcall=function(e){var t=l(arguments,1);return C(e).nfapply(t)},x.prototype.nfcall=function(){var e=l(arguments),t=E();return e.push(t.makeNodeResolver()),this.fapply(e).fail(t.reject),t.promise},C.nfbind=C.denodeify=function(e){if(void 0===e)throw new Error("Q can't wrap an undefined function");var t=l(arguments,1);return function(){var n=t.concat(l(arguments)),r=E();return n.push(r.makeNodeResolver()),C(e).fapply(n).fail(r.reject),r.promise}},x.prototype.nfbind=x.prototype.denodeify=function(){var e=l(arguments);return e.unshift(this),C.denodeify.apply(void 0,e)},C.nbind=function(e,t){var n=l(arguments,2);return function(){var r=n.concat(l(arguments)),i=E();function o(){return e.apply(t,arguments)}return r.push(i.makeNodeResolver()),C(o).fapply(r).fail(i.reject),i.promise}},x.prototype.nbind=function(){var e=l(arguments,0);return e.unshift(this),C.nbind.apply(void 0,e)},C.nmapply=C.npost=function(e,t,n){return C(e).npost(t,n)},x.prototype.nmapply=x.prototype.npost=function(e,t){var n=l(t||[]),r=E();return n.push(r.makeNodeResolver()),this.dispatch("post",[e,n]).fail(r.reject),r.promise},C.nsend=C.nmcall=C.ninvoke=function(e,t){var n=l(arguments,2),r=E();return n.push(r.makeNodeResolver()),C(e).dispatch("post",[t,n]).fail(r.reject),r.promise},x.prototype.nsend=x.prototype.nmcall=x.prototype.ninvoke=function(e){var t=l(arguments,1),n=E();return t.push(n.makeNodeResolver()),this.dispatch("post",[e,t]).fail(n.reject),n.promise},C.nodeify=function(e,t){return C(e).nodeify(t)},x.prototype.nodeify=function(e){if(!e)return this;this.then(function(t){C.nextTick(function(){e(null,t)})},function(t){C.nextTick(function(){e(t)})})},C.noConflict=function(){throw new Error("Q.noConflict only works when Q is used as a global")};var q=b();return C})},605:(e,t,n)=>{var r=n(816),i=n(893),o=i;o.v1=r,o.v4=i,e.exports=o},754:e=>{for(var t=[],n=0;n<256;++n)t[n]=(n+256).toString(16).substr(1);e.exports=function(e,n){var r=n||0;return[t[e[r++]],t[e[r++]],t[e[r++]],t[e[r++]],"-",t[e[r++]],t[e[r++]],"-",t[e[r++]],t[e[r++]],"-",t[e[r++]],t[e[r++]],"-",t[e[r++]],t[e[r++]],t[e[r++]],t[e[r++]],t[e[r++]],t[e[r++]]].join("")}},368:e=>{var t="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(t){var n=new Uint8Array(16);e.exports=function(){return t(n),n}}else{var r=new Array(16);e.exports=function(){for(var e,t=0;t<16;t++)0==(3&t)&&(e=4294967296*Math.random()),r[t]=e>>>((3&t)<<3)&255;return r}}},816:(e,t,n)=>{var r,i,o=n(368),s=n(754),a=0,l=0;e.exports=function(e,t,n){var A=t&&n||0,c=t||[],u=(e=e||{}).node||r,h=void 0!==e.clockseq?e.clockseq:i;if(null==u||null==h){var d=o();null==u&&(u=r=[1|d[0],d[1],d[2],d[3],d[4],d[5]]),null==h&&(h=i=16383&(d[6]<<8|d[7]))}var p=void 0!==e.msecs?e.msecs:(new Date).getTime(),f=void 0!==e.nsecs?e.nsecs:l+1,g=p-a+(f-l)/1e4;if(g<0&&void 0===e.clockseq&&(h=h+1&16383),(g<0||p>a)&&void 0===e.nsecs&&(f=0),f>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");a=p,l=f,i=h;var m=(1e4*(268435455&(p+=122192928e5))+f)%4294967296;c[A++]=m>>>24&255,c[A++]=m>>>16&255,c[A++]=m>>>8&255,c[A++]=255&m;var y=p/4294967296*1e4&268435455;c[A++]=y>>>8&255,c[A++]=255&y,c[A++]=y>>>24&15|16,c[A++]=y>>>16&255,c[A++]=h>>>8|128,c[A++]=255&h;for(var w=0;w<6;++w)c[A+w]=u[w];return t||s(c)}},893:(e,t,n)=>{var r=n(368),i=n(754);e.exports=function(e,t,n){var o=t&&n||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var s=(e=e||{}).random||(e.rng||r)();if(s[6]=15&s[6]|64,s[8]=63&s[8]|128,t)for(var a=0;a<16;++a)t[o+a]=s[a];return t||i(s)}},576:(e,t,n)=>{"use strict";var r={};function i(e){return"function"==typeof e}n.r(r),n.d(r,{VERSION:()=>Np,after:()=>gm,all:()=>Im,allKeys:()=>$f,any:()=>Hm,assign:()=>gg,before:()=>mm,bind:()=>im,bindAll:()=>am,chain:()=>em,chunk:()=>wy,clone:()=>vg,collect:()=>Sm,compact:()=>ly,compose:()=>fm,constant:()=>Of,contains:()=>Mm,countBy:()=>Jm,create:()=>wg,debounce:()=>hm,default:()=>Cy,defaults:()=>mg,defer:()=>cm,delay:()=>Am,detect:()=>xm,difference:()=>cy,drop:()=>sy,each:()=>Qm,escape:()=>Kg,every:()=>Im,extend:()=>fg,extendOwn:()=>gg,filter:()=>Om,find:()=>xm,findIndex:()=>bm,findKey:()=>wm,findLastIndex:()=>Cm,findWhere:()=>Tm,first:()=>oy,flatten:()=>Ay,foldl:()=>Um,foldr:()=>Dm,forEach:()=>Qm,functions:()=>dg,get:()=>_g,groupBy:()=>Wm,has:()=>Fg,head:()=>oy,identity:()=>xg,include:()=>Mm,includes:()=>Mm,indexBy:()=>Xm,indexOf:()=>_m,initial:()=>iy,inject:()=>Um,intersection:()=>py,invert:()=>hg,invoke:()=>Rm,isArguments:()=>kf,isArray:()=>Tf,isArrayBuffer:()=>vf,isBoolean:()=>uf,isDataView:()=>xf,isDate:()=>gf,isElement:()=>hf,isEmpty:()=>Gf,isEqual:()=>Yf,isError:()=>yf,isFinite:()=>Uf,isFunction:()=>Cf,isMap:()=>sg,isMatch:()=>jf,isNaN:()=>Df,isNull:()=>Af,isNumber:()=>ff,isObject:()=>lf,isRegExp:()=>mf,isSet:()=>lg,isString:()=>pf,isSymbol:()=>wf,isTypedArray:()=>Nf,isUndefined:()=>cf,isWeakMap:()=>ag,isWeakSet:()=>Ag,iteratee:()=>Ug,keys:()=>Vf,last:()=>ay,lastIndexOf:()=>Fm,map:()=>Sm,mapObject:()=>Og,matcher:()=>Tg,matches:()=>Tg,max:()=>Km,memoize:()=>lm,methods:()=>dg,min:()=>Vm,mixin:()=>by,negate:()=>pm,noop:()=>Lg,now:()=>Rg,object:()=>my,omit:()=>ry,once:()=>ym,pairs:()=>ug,partial:()=>rm,partition:()=>Ym,pick:()=>ny,pluck:()=>Nm,property:()=>Qg,propertyOf:()=>Ig,random:()=>Mg,range:()=>yy,reduce:()=>Um,reduceRight:()=>Dm,reject:()=>Lm,rest:()=>sy,restArguments:()=>af,result:()=>Yg,sample:()=>Gm,select:()=>Om,shuffle:()=>jm,size:()=>ey,some:()=>Hm,sortBy:()=>qm,sortedIndex:()=>Bm,tail:()=>sy,take:()=>oy,tap:()=>bg,template:()=>Jg,templateSettings:()=>Gg,throttle:()=>um,times:()=>Hg,toArray:()=>Zm,toPath:()=>Cg,transpose:()=>fy,unescape:()=>Vg,union:()=>dy,uniq:()=>hy,unique:()=>hy,uniqueId:()=>Zg,unzip:()=>fy,values:()=>cg,where:()=>Pm,without:()=>uy,wrap:()=>dm,zip:()=>gy});let o=!1;const s={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 o&&console.log("RxJS: Back to a better error behavior. Thank you. <3");o=e},get useDeprecatedSynchronousErrorHandling(){return o}};function a(e){setTimeout(()=>{throw e},0)}const l={closed:!0,next(e){},error(e){if(s.useDeprecatedSynchronousErrorHandling)throw e;a(e)},complete(){}},A=Array.isArray||(e=>e&&"number"==typeof e.length);function c(e){return null!==e&&"object"==typeof e}const u=(()=>{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})();class h{constructor(e){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,e&&(this._ctorUnsubscribe=!0,this._unsubscribe=e)}unsubscribe(){let e;if(this.closed)return;let{_parentOrParents:t,_ctorUnsubscribe:n,_unsubscribe:r,_subscriptions:o}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,t instanceof h)t.remove(this);else if(null!==t)for(let i=0;i<t.length;++i)t[i].remove(this);if(i(r)){n&&(this._unsubscribe=void 0);try{r.call(this)}catch(s){e=s instanceof u?d(s.errors):[s]}}if(A(o)){let t=-1,n=o.length;for(;++t<n;){const n=o[t];if(c(n))try{n.unsubscribe()}catch(s){e=e||[],s instanceof u?e=e.concat(d(s.errors)):e.push(s)}}}if(e)throw new u(e)}add(e){let t=e;if(!e)return h.EMPTY;switch(typeof e){case"function":t=new h(e);case"object":if(t===this||t.closed||"function"!=typeof t.unsubscribe)return t;if(this.closed)return t.unsubscribe(),t;if(!(t instanceof h)){const e=t;t=new h,t._subscriptions=[e]}break;default:throw new Error("unrecognized teardown "+e+" added to Subscription.")}let{_parentOrParents:n}=t;if(null===n)t._parentOrParents=this;else if(n instanceof h){if(n===this)return t;t._parentOrParents=[n,this]}else{if(-1!==n.indexOf(this))return t;n.push(this)}const r=this._subscriptions;return null===r?this._subscriptions=[t]:r.push(t),t}remove(e){const t=this._subscriptions;if(t){const n=t.indexOf(e);-1!==n&&t.splice(n,1)}}}function d(e){return e.reduce((e,t)=>e.concat(t instanceof u?t.errors:t),[])}h.EMPTY=function(e){return e.closed=!0,e}(new h);const p="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random();class f extends h{constructor(e,t,n){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=l;break;case 1:if(!e){this.destination=l;break}if("object"==typeof e){e instanceof f?(this.syncErrorThrowable=e.syncErrorThrowable,this.destination=e,e.add(this)):(this.syncErrorThrowable=!0,this.destination=new g(this,e));break}default:this.syncErrorThrowable=!0,this.destination=new g(this,e,t,n)}}[p](){return this}static create(e,t,n){const r=new f(e,t,n);return r.syncErrorThrowable=!1,r}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 g extends f{constructor(e,t,n,r){let o;super(),this._parentSubscriber=e;let s=this;i(t)?o=t:t&&(o=t.next,n=t.error,r=t.complete,t!==l&&(s=Object.create(t),i(s.unsubscribe)&&this.add(s.unsubscribe.bind(s)),s.unsubscribe=this.unsubscribe.bind(this))),this._context=s,this._next=o,this._error=n,this._complete=r}next(e){if(!this.isStopped&&this._next){const{_parentSubscriber:t}=this;s.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}=s;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):a(e),this.unsubscribe();else{if(this.unsubscribe(),n)throw e;a(e)}}}complete(){if(!this.isStopped){const{_parentSubscriber:e}=this;if(this._complete){const t=()=>this._complete.call(this._context);s.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(),s.useDeprecatedSynchronousErrorHandling)throw n;a(n)}}__tryOrSetError(e,t,n){if(!s.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{t.call(this._context,n)}catch(r){return s.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=r,e.syncErrorThrown=!0,!0):(a(r),!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 y(e){return e}let w=(()=>{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:r}=this,i=function(e,t,n){if(e){if(e instanceof f)return e;if(e[p])return e[p]()}return e||t||n?new f(e,t,n):new f(l)}(e,t,n);if(i.add(r?r.call(i,this.source):this.source||s.useDeprecatedSynchronousErrorHandling&&!i.syncErrorThrowable?this._subscribe(i):this._trySubscribe(i)),s.useDeprecatedSynchronousErrorHandling&&i.syncErrorThrowable&&(i.syncErrorThrowable=!1,i.syncErrorThrown))throw i.syncErrorValue;return i}_trySubscribe(e){try{return this._subscribe(e)}catch(t){s.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=t),function(e){for(;e;){const{closed:t,destination:n,isStopped:r}=e;if(t||r)return!1;e=n&&n instanceof f?n:null}return!0}(e)?e.error(t):console.warn(t)}}forEach(e,t){return new(t=v(t))((t,n)=>{let r;r=this.subscribe(t=>{try{e(t)}catch(i){n(i),r&&r.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?y:1===t.length?t[0]:function(e){return t.reduce((e,t)=>t(e),e)})(this);var t}toPromise(e){return new(e=v(e))((e,t)=>{let n;this.subscribe(e=>n=e,e=>t(e),()=>e(n))})}}return e.create=t=>new e(t),e})();function v(e){if(e||(e=s.Promise||Promise),!e)throw new Error("no Promise impl found");return e}const b=(()=>{function e(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return e.prototype=Object.create(Error.prototype),e})();class C extends h{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 B extends f{constructor(e){super(e),this.destination=e}}let E=(()=>{class e extends w{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[p](){return new B(this)}lift(e){const t=new _(this,this);return t.operator=e,t}next(e){if(this.closed)throw new b;if(!this.isStopped){const{observers:t}=this,n=t.length,r=t.slice();for(let i=0;i<n;i++)r[i].next(e)}}error(e){if(this.closed)throw new b;this.hasError=!0,this.thrownError=e,this.isStopped=!0;const{observers:t}=this,n=t.length,r=t.slice();for(let i=0;i<n;i++)r[i].error(e);this.observers.length=0}complete(){if(this.closed)throw new b;this.isStopped=!0;const{observers:e}=this,t=e.length,n=e.slice();for(let r=0;r<t;r++)n[r].complete();this.observers.length=0}unsubscribe(){this.isStopped=!0,this.closed=!0,this.observers=null}_trySubscribe(e){if(this.closed)throw new b;return super._trySubscribe(e)}_subscribe(e){if(this.closed)throw new b;return this.hasError?(e.error(this.thrownError),h.EMPTY):this.isStopped?(e.complete(),h.EMPTY):(this.observers.push(e),new C(this,e))}asObservable(){const e=new w;return e.source=this,e}}return e.create=(e,t)=>new _(e,t),e})();class _ extends E{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):h.EMPTY}}function F(e){return e&&"function"==typeof e.schedule}function x(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 T(e,t))}}class T{constructor(e,t){this.project=e,this.thisArg=t}call(e,t){return t.subscribe(new Q(e,this.project,this.thisArg))}}class Q extends f{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 S=e=>t=>{for(let n=0,r=e.length;n<r&&!t.closed;n++)t.next(e[n]);t.complete()},k="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator",U=e=>e&&"number"==typeof e.length&&"function"!=typeof e;function D(e){return!!e&&"function"!=typeof e.subscribe&&"function"==typeof e.then}const O=e=>{if(e&&"function"==typeof e[m])return n=e,e=>{const t=n[m]();if("function"!=typeof t.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return t.subscribe(e)};if(U(e))return S(e);if(D(e))return(e=>t=>(e.then(e=>{t.closed||(t.next(e),t.complete())},e=>t.error(e)).then(null,a),t))(e);if(e&&"function"==typeof e[k])return t=e,e=>{const n=t[k]();for(;;){let t;try{t=n.next()}catch(r){return e.error(r),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};function L(e,t){return new w(n=>{const r=new h;let i=0;return r.add(t.schedule(function(){i!==e.length?(n.next(e[i++]),n.closed||r.add(this.schedule())):n.complete()})),r})}function I(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 w(n=>{const r=new h;return r.add(t.schedule(()=>{const i=e[m]();r.add(i.subscribe({next(e){r.add(t.schedule(()=>n.next(e)))},error(e){r.add(t.schedule(()=>n.error(e)))},complete(){r.add(t.schedule(()=>n.complete()))}}))})),r})}(e,t);if(D(e))return function(e,t){return new w(n=>{const r=new h;return r.add(t.schedule(()=>e.then(e=>{r.add(t.schedule(()=>{n.next(e),r.add(t.schedule(()=>n.complete()))}))},e=>{r.add(t.schedule(()=>n.error(e)))}))),r})}(e,t);if(U(e))return L(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 w(n=>{const r=new h;let i;return r.add(()=>{i&&"function"==typeof i.return&&i.return()}),r.add(t.schedule(()=>{i=e[k](),r.add(t.schedule(function(){if(n.closed)return;let e,t;try{const n=i.next();e=n.value,t=n.done}catch(r){return void n.error(r)}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 w?e:new w(O(e))}class H extends f{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 M extends f{notifyNext(e){this.destination.next(e)}notifyError(e){this.destination.error(e)}notifyComplete(){this.destination.complete()}}function R(e,t){if(t.closed)return;if(e instanceof w)return e.subscribe(t);let n;try{n=O(e)(t)}catch(r){t.error(r)}return n}function N(e,t,n=Number.POSITIVE_INFINITY){return"function"==typeof t?r=>r.pipe(N((n,r)=>I(e(n,r)).pipe(x((e,i)=>t(n,e,r,i))),n)):("number"==typeof t&&(n=t),t=>t.lift(new P(e,n)))}class P{constructor(e,t=Number.POSITIVE_INFINITY){this.project=e,this.concurrent=t}call(e,t){return t.subscribe(new K(e,this.project,this.concurrent))}}class K extends M{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(r){return void this.destination.error(r)}this.active++,this._innerSub(t)}_innerSub(e){const t=new H(this),n=this.destination;n.add(t);const r=R(e,t);r!==t&&n.add(r)}_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 V(e=Number.POSITIVE_INFINITY){return N(y,e)}function G(e,t){return t?L(e,t):new w(S(e))}function j(...e){let t=Number.POSITIVE_INFINITY,n=null,r=e[e.length-1];return F(r)?(n=e.pop(),e.length>1&&"number"==typeof e[e.length-1]&&(t=e.pop())):"number"==typeof r&&(t=e.pop()),null===n&&1===e.length&&e[0]instanceof w?e[0]:V(t)(G(e,n))}function q(){return function(e){return e.lift(new z(e))}}class z{constructor(e){this.connectable=e}call(e,t){const{connectable:n}=this;n._refCount++;const r=new W(e,n),i=t.subscribe(r);return r.closed||(r.connection=n.connect()),i}}class W extends f{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,r=e._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}class X extends w{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 h,e.add(this.source.subscribe(new Y(this.getSubject(),this))),e.closed&&(this._connection=null,e=h.EMPTY)),e}refCount(){return q()(this)}}const J=(()=>{const e=X.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 Y extends B{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 $(){return new E}function Z(){return e=>{return q()((t=$,function(e){let n;n="function"==typeof t?t:function(){return t};const r=Object.create(e,J);return r.source=e,r.subjectFactory=n,r})(e));var t}}function ee(e){for(let t in e)if(e[t]===ee)return t;throw Error("Could not find renamed property on target object.")}function te(e,t){for(const n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function ne(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(ne).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 re(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const ie=ee({__forward_ref__:ee});function oe(e){return e.__forward_ref__=oe,e.toString=function(){return ne(this())},e}function se(e){return ae(e)?e():e}function ae(e){return"function"==typeof e&&e.hasOwnProperty(ie)&&e.__forward_ref__===oe}class le extends Error{constructor(e,t){super(function(e,t){return`${e?`NG0${e}: `:""}${t}`}(e,t)),this.code=e}}function Ae(e){return"string"==typeof e?e:null==e?"":String(e)}function ce(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():Ae(e)}function ue(e,t){const n=t?` in ${t}`:"";throw new le("201",`No provider for ${ce(e)} found${n}`)}function he(e,t,n,r){throw new Error(`ASSERTION ERROR: ${e}`+(null==r?"":` [Expected=> ${n} ${r} ${t} <=Actual]`))}function de(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function pe(e){return{providers:e.providers||[],imports:e.imports||[]}}function fe(e){return ge(e,ye)||ge(e,ve)}function ge(e,t){return e.hasOwnProperty(t)?e[t]:null}function me(e){return e&&(e.hasOwnProperty(we)||e.hasOwnProperty(be))?e[we]:null}const ye=ee({"\u0275prov":ee}),we=ee({"\u0275inj":ee}),ve=ee({ngInjectableDef:ee}),be=ee({ngInjectorDef:ee});var Ce=(()=>((Ce=Ce||{})[Ce.Default=0]="Default",Ce[Ce.Host=1]="Host",Ce[Ce.Self=2]="Self",Ce[Ce.SkipSelf=4]="SkipSelf",Ce[Ce.Optional=8]="Optional",Ce))();let Be;function Ee(e){const t=Be;return Be=e,t}function _e(e,t,n){const r=fe(e);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:n&Ce.Optional?null:void 0!==t?t:void ue(ne(e),"Injector")}function Fe(e){return{toString:e}.toString()}var xe=(()=>((xe=xe||{})[xe.OnPush=0]="OnPush",xe[xe.Default=1]="Default",xe))(),Te=(()=>((Te=Te||{})[Te.Emulated=0]="Emulated",Te[Te.None=2]="None",Te[Te.ShadowDom=3]="ShadowDom",Te))();const Qe="undefined"!=typeof globalThis&&globalThis,Se="undefined"!=typeof window&&window,ke="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,Ue="undefined"!=typeof global&&global,De=Qe||Ue||Se||ke,Oe={},Le=[],Ie=ee({"\u0275cmp":ee}),He=ee({"\u0275dir":ee}),Me=ee({"\u0275pipe":ee}),Re=ee({"\u0275mod":ee}),Ne=ee({"\u0275loc":ee}),Pe=ee({"\u0275fac":ee}),Ke=ee({__NG_ELEMENT_ID__:ee});let Ve=0;function Ge(e){return Fe(()=>{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===xe.OnPush,directiveDefs:null,pipeDefs:null,selectors:e.selectors||Le,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||Te.Emulated,id:"c",styles:e.styles||Le,_:null,setInput:null,schemas:e.schemas||null,tView:null},r=e.directives,i=e.features,o=e.pipes;return n.id+=Ve++,n.inputs=Xe(e.inputs,t),n.outputs=Xe(e.outputs),i&&i.forEach(e=>e(n)),n.directiveDefs=r?()=>("function"==typeof r?r():r).map(je):null,n.pipeDefs=o?()=>("function"==typeof o?o():o).map(qe):null,n})}function je(e){return $e(e)||function(e){return e[He]||null}(e)}function qe(e){return function(e){return e[Me]||null}(e)}const ze={};function We(e){return Fe(()=>{const t={type:e.type,bootstrap:e.bootstrap||Le,declarations:e.declarations||Le,imports:e.imports||Le,exports:e.exports||Le,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null};return null!=e.id&&(ze[e.id]=e.type),t})}function Xe(e,t){if(null==e)return Oe;const n={};for(const r in e)if(e.hasOwnProperty(r)){let i=e[r],o=i;Array.isArray(i)&&(o=i[1],i=i[0]),n[i]=r,t&&(t[i]=o)}return n}const Je=Ge;function Ye(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,onDestroy:e.type.prototype.ngOnDestroy||null}}function $e(e){return e[Ie]||null}function Ze(e,t){const n=e[Re]||null;if(!n&&!0===t)throw new Error(`Type ${ne(e)} does not have '\u0275mod' property.`);return n}const et=20,tt=10;function nt(e){return Array.isArray(e)&&"object"==typeof e[1]}function rt(e){return Array.isArray(e)&&!0===e[1]}function it(e){return 0!=(8&e.flags)}function ot(e){return 2==(2&e.flags)}function st(e){return 1==(1&e.flags)}function at(e){return null!==e.template}function lt(e,t){return e.hasOwnProperty(Pe)?e[Pe]:null}class At{constructor(e,t,n){this.previousValue=e,this.currentValue=t,this.firstChange=n}isFirstChange(){return this.firstChange}}function ct(){return ut}function ut(e){return e.type.prototype.ngOnChanges&&(e.setInput=dt),ht}function ht(){const e=pt(this),t=null==e?void 0:e.current;if(t){const n=e.previous;if(n===Oe)e.previous=t;else for(let e in t)n[e]=t[e];e.current=null,this.ngOnChanges(t)}}function dt(e,t,n,r){const i=pt(e)||function(e,t){return e.__ngSimpleChanges__=t}(e,{previous:Oe,current:null}),o=i.current||(i.current={}),s=i.previous,a=this.declaredInputs[n],l=s[a];o[a]=new At(l&&l.currentValue,t,s===Oe),e[r]=t}function pt(e){return e.__ngSimpleChanges__||null}let ft;function gt(){return void 0!==ft?ft:"undefined"!=typeof document?document:void 0}function mt(e){return!!e.listen}ct.ngInherit=!0;const yt={createRenderer:(e,t)=>gt()};function wt(e){for(;Array.isArray(e);)e=e[0];return e}function vt(e,t){return wt(t[e])}function bt(e,t){return wt(t[e.index])}function Ct(e,t){return e.data[t]}function Bt(e,t){return e[t]}function Et(e,t){const n=t[e];return nt(n)?n:n[0]}function _t(e){return 4==(4&e[2])}function Ft(e){return 128==(128&e[2])}function xt(e,t){return null==t?null:e[t]}function Tt(e){e[18]=0}function Qt(e,t){e[5]+=t;let n=e,r=e[3];for(;null!==r&&(1===t&&1===n[5]||-1===t&&0===n[5]);)r[5]+=t,n=r,r=r[3]}const St={lFrame:nn(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function kt(){return St.bindingsEnabled}function Ut(){return St.lFrame.lView}function Dt(){return St.lFrame.tView}function Ot(e){return St.lFrame.contextLView=e,e[8]}function Lt(){let e=It();for(;null!==e&&64===e.type;)e=e.parent;return e}function It(){return St.lFrame.currentTNode}function Ht(){const e=St.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function Mt(e,t){const n=St.lFrame;n.currentTNode=e,n.isParent=t}function Rt(){return St.lFrame.isParent}function Nt(){St.lFrame.isParent=!1}function Pt(){return St.isInCheckNoChangesMode}function Kt(e){St.isInCheckNoChangesMode=e}function Vt(){const e=St.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function Gt(){return St.lFrame.bindingIndex}function jt(){return St.lFrame.bindingIndex++}function qt(e){const t=St.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function zt(e){St.lFrame.inI18n=e}function Wt(e,t){const n=St.lFrame;n.bindingIndex=n.bindingRootIndex=e,Xt(t)}function Xt(e){St.lFrame.currentDirectiveIndex=e}function Jt(){return St.lFrame.currentQueryIndex}function Yt(e){St.lFrame.currentQueryIndex=e}function $t(e){const t=e[1];return 2===t.type?t.declTNode:1===t.type?e[6]:null}function Zt(e,t,n){if(n&Ce.SkipSelf){let r=t,i=e;for(;r=r.parent,!(null!==r||n&Ce.Host||(r=$t(i),null===r)||(i=i[15],10&r.type)););if(null===r)return!1;t=r,e=i}const r=St.lFrame=tn();return r.currentTNode=t,r.lView=e,!0}function en(e){const t=tn(),n=e[1];St.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=St.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 rn(){const e=St.lFrame;return St.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const on=rn;function sn(){const e=rn();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 St.lFrame.selectedIndex}function ln(e){St.lFrame.selectedIndex=e}function An(){const e=St.lFrame;return Ct(e.tView,e.selectedIndex)}function cn(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n<r;n++){const t=e.data[n].type.prototype,{ngAfterContentInit:r,ngAfterContentChecked:i,ngAfterViewInit:o,ngAfterViewChecked:s,ngOnDestroy:a}=t;r&&(e.contentHooks||(e.contentHooks=[])).push(-n,r),i&&((e.contentHooks||(e.contentHooks=[])).push(n,i),(e.contentCheckHooks||(e.contentCheckHooks=[])).push(n,i)),o&&(e.viewHooks||(e.viewHooks=[])).push(-n,o),s&&((e.viewHooks||(e.viewHooks=[])).push(n,s),(e.viewCheckHooks||(e.viewCheckHooks=[])).push(n,s)),null!=a&&(e.destroyHooks||(e.destroyHooks=[])).push(n,a)}}function un(e,t,n){pn(e,t,3,n)}function hn(e,t,n,r){(3&e[2])===n&&pn(e,t,n,r)}function dn(e,t){let n=e[2];(3&n)===t&&(n&=2047,n+=1,e[2]=n)}function pn(e,t,n,r){const i=null!=r?r:-1,o=t.length-1;let s=0;for(let a=void 0!==r?65535&e[18]:0;a<o;a++)if("number"==typeof t[a+1]){if(s=t[a],null!=r&&s>=r)break}else t[a]<0&&(e[18]+=65536),(s<i||-1==i)&&(fn(e,n,t,a),e[18]=(4294901760&e[18])+a+2),a++}function fn(e,t,n,r){const i=n[r]<0,o=n[r+1],s=e[i?-n[r]:n[r]];if(i){if(e[2]>>11<e[18]>>16&&(3&e[2])===t){e[2]+=2048;try{o.call(s)}finally{}}}else try{o.call(s)}finally{}}const gn=-1;class mn{constructor(e,t,n){this.factory=e,this.resolving=!1,this.canSeeViewProviders=t,this.injectImpl=n}}function yn(e,t,n){const r=mt(e);let i=0;for(;i<n.length;){const o=n[i];if("number"==typeof o){if(0!==o)break;i++;const s=n[i++],a=n[i++],l=n[i++];r?e.setAttribute(t,a,l,s):t.setAttributeNS(s,a,l)}else{const s=o,a=n[++i];vn(s)?r&&e.setProperty(t,s,a):r?e.setAttribute(t,s,a):t.setAttribute(s,a),i++}}return i}function wn(e){return 3===e||4===e||6===e}function vn(e){return 64===e.charCodeAt(0)}function bn(e,t){if(null===t||0===t.length);else if(null===e||0===e.length)e=t.slice();else{let n=-1;for(let r=0;r<t.length;r++){const i=t[r];"number"==typeof i?n=i:0===n||Cn(e,n,i,null,-1===n||2===n?t[++r]:null)}}return e}function Cn(e,t,n,r,i){let o=0,s=e.length;if(-1===t)s=-1;else for(;o<e.length;){const n=e[o++];if("number"==typeof n){if(n===t){s=-1;break}if(n>t){s=o-1;break}}}for(;o<e.length;){const t=e[o];if("number"==typeof t)break;if(t===n){if(null===r)return void(null!==i&&(e[o+1]=i));if(r===e[o+1])return void(e[o+2]=i)}o++,null!==r&&o++,null!==i&&o++}-1!==s&&(e.splice(s,0,t),o=s+1),e.splice(o++,0,n),null!==r&&e.splice(o++,0,r),null!==i&&e.splice(o++,0,i)}function Bn(e){return e!==gn}function En(e){return 32767&e}function _n(e,t){let n=e>>16,r=t;for(;n>0;)r=r[15],n--;return r}let Fn=!0;function xn(e){const t=Fn;return Fn=e,t}let Tn=0;function Qn(e,t){const n=kn(e,t);if(-1!==n)return n;const r=t[1];r.firstCreatePass&&(e.injectorIndex=t.length,Sn(r.data,e),Sn(t,null),Sn(r.blueprint,null));const i=Un(e,t),o=e.injectorIndex;if(Bn(i)){const e=En(i),n=_n(i,t),r=n[1].data;for(let i=0;i<8;i++)t[o+i]=n[e+i]|r[e+i]}return t[o+8]=i,o}function Sn(e,t){e.push(0,0,0,0,0,0,0,0,t)}function kn(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function Un(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let n=0,r=null,i=t;for(;null!==i;){const e=i[1],t=e.type;if(r=2===t?e.declTNode:1===t?i[6]:null,null===r)return gn;if(n++,i=i[15],-1!==r.injectorIndex)return r.injectorIndex|n<<16}return gn}function Dn(e,t,n){!function(e,t,n){let r;"string"==typeof n?r=n.charCodeAt(0)||0:n.hasOwnProperty(Ke)&&(r=n[Ke]),null==r&&(r=n[Ke]=Tn++);const i=255&r;t.data[e+(i>>5)]|=1<<i}(e,t,n)}function On(e,t,n){if(n&Ce.Optional)return e;ue(t,"NodeInjector")}function Ln(e,t,n,r){if(n&Ce.Optional&&void 0===r&&(r=null),0==(n&(Ce.Self|Ce.Host))){const i=e[9],o=Ee(void 0);try{return i?i.get(t,r,n&Ce.Optional):_e(t,r,n&Ce.Optional)}finally{Ee(o)}}return On(r,t,n)}function In(e,t,n,r=Ce.Default,i){if(null!==e){const o=function(e){if("string"==typeof e)return e.charCodeAt(0)||0;const t=e.hasOwnProperty(Ke)?e[Ke]:void 0;return"number"==typeof t?t>=0?255&t:Mn:t}(n);if("function"==typeof o){if(!Zt(t,e,r))return r&Ce.Host?On(i,n,r):Ln(t,n,r,i);try{const e=o(r);if(null!=e||r&Ce.Optional)return e;ue(n)}finally{on()}}else if("number"==typeof o){let i=null,s=kn(e,t),a=gn,l=r&Ce.Host?t[16][6]:null;for((-1===s||r&Ce.SkipSelf)&&(a=-1===s?Un(e,t):t[s+8],a!==gn&&Vn(r,!1)?(i=t[1],s=En(a),t=_n(a,t)):s=-1);-1!==s;){const e=t[1];if(Kn(o,s,e.data)){const e=Rn(s,t,n,i,r,l);if(e!==Hn)return e}a=t[s+8],a!==gn&&Vn(r,t[1].data[s+8]===l)&&Kn(o,s,t)?(i=e,s=En(a),t=_n(a,t)):s=-1}}}return Ln(t,n,r,i)}const Hn={};function Mn(){return new Gn(Lt(),Ut())}function Rn(e,t,n,r,i,o){const s=t[1],a=s.data[e+8],l=Nn(a,s,n,null==r?ot(a)&&Fn:r!=s&&0!=(3&a.type),i&Ce.Host&&o===a);return null!==l?Pn(t,s,l,a):Hn}function Nn(e,t,n,r,i){const o=e.providerIndexes,s=t.data,a=1048575&o,l=e.directiveStart,A=o>>20,c=i?a+A:e.directiveEnd;for(let u=r?a:a+A;u<c;u++){const e=s[u];if(u<l&&n===e||u>=l&&e.type===n)return u}if(i){const e=s[l];if(e&&at(e)&&e.type===n)return l}return null}function Pn(e,t,n,r){let i=e[n];const o=t.data;if(i instanceof mn){const s=i;s.resolving&&function(e,t){throw new le("200",`Circular dependency in DI detected for ${e}`)}(ce(o[n]));const a=xn(s.canSeeViewProviders);s.resolving=!0;const l=s.injectImpl?Ee(s.injectImpl):null;Zt(e,r,Ce.Default);try{i=e[n]=s.factory(void 0,o,e,r),t.firstCreatePass&&n>=r.directiveStart&&function(e,t,n){const{ngOnChanges:r,ngOnInit:i,ngDoCheck:o}=t.type.prototype;if(r){const r=ut(t);(n.preOrderHooks||(n.preOrderHooks=[])).push(e,r),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,r)}i&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-e,i),o&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e,o),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,o))}(n,o[n],t)}finally{null!==l&&Ee(l),xn(a),s.resolving=!1,on()}}return i}function Kn(e,t,n){return!!(n[t+(e>>5)]&1<<e)}function Vn(e,t){return!(e&Ce.Self||e&Ce.Host&&t)}class Gn{constructor(e,t){this._tNode=e,this._lView=t}get(e,t){return In(this._tNode,this._lView,e,void 0,t)}}function jn(e){return Fe(()=>{const t=e.prototype.constructor,n=t[Pe]||qn(t),r=Object.prototype;let i=Object.getPrototypeOf(e.prototype).constructor;for(;i&&i!==r;){const e=i[Pe]||qn(i);if(e&&e!==n)return e;i=Object.getPrototypeOf(i)}return e=>new e})}function qn(e){return ae(e)?()=>{const t=qn(se(e));return t&&t()}:lt(e)}function zn(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 r=0;for(;r<e;){const i=n[r];if(wn(i))break;if(0===i)r+=2;else if("number"==typeof i)for(r++;r<e&&"string"==typeof n[r];)r++;else{if(i===t)return n[r+1];r+=2}}}return null}(Lt(),e)}const Wn="__parameters__",Xn="__prop__metadata__";function Jn(e){return function(...t){if(e){const n=e(...t);for(const e in n)this[e]=n[e]}}}function Yn(e,t,n){return Fe(()=>{const r=Jn(t);function i(...e){if(this instanceof i)return r.apply(this,e),this;const t=new i(...e);return n.annotation=t,n;function n(e,n,r){const i=e.hasOwnProperty(Wn)?e[Wn]:Object.defineProperty(e,Wn,{value:[]})[Wn];for(;i.length<=r;)i.push(null);return(i[r]=i[r]||[]).push(t),e}}return n&&(i.prototype=Object.create(n.prototype)),i.prototype.ngMetadataName=e,i.annotationCls=i,i})}function $n(e,t,n,r){return Fe(()=>{const i=Jn(t);function o(...e){if(this instanceof o)return i.apply(this,e),this;const t=new o(...e);return function(n,i){const o=n.constructor,s=o.hasOwnProperty(Xn)?o[Xn]:Object.defineProperty(o,Xn,{value:{}})[Xn];s[i]=s.hasOwnProperty(i)&&s[i]||[],s[i].unshift(t),r&&r(n,i,...e)}}return n&&(o.prototype=Object.create(n.prototype)),o.prototype.ngMetadataName=e,o.annotationCls=o,o})}class Zn{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=de({token:this,providedIn:t.providedIn||"root",factory:t.factory}))}toString(){return`InjectionToken ${this._desc}`}}function er(e,t){void 0===t&&(t=e);for(let n=0;n<e.length;n++){let r=e[n];Array.isArray(r)?(t===e&&(t=e.slice(0,n)),er(r,t)):t!==e&&t.push(r)}return t}function tr(e,t){e.forEach(e=>Array.isArray(e)?tr(e,t):t(e))}function nr(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function rr(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function ir(e,t){const n=[];for(let r=0;r<e;r++)n.push(t);return n}function or(e,t,n){let r=ar(e,t);return r>=0?e[1|r]=n:(r=~r,function(e,t,n,r){let i=e.length;if(i==t)e.push(n,r);else if(1===i)e.push(r,e[0]),e[0]=n;else{for(i--,e.push(e[i-1],e[i]);i>t;)e[i]=e[i-2],i--;e[t]=n,e[t+1]=r}}(e,r,t,n)),r}function sr(e,t){const n=ar(e,t);if(n>=0)return e[1|n]}function ar(e,t){return function(e,t,n){let r=0,i=e.length>>1;for(;i!==r;){const n=r+(i-r>>1),o=e[n<<1];if(t===o)return n<<1;o>t?i=n:r=n+1}return~(i<<1)}(e,t)}const lr={},Ar=/\n/gm,cr="__source",ur=ee({provide:String,useValue:ee});let hr;function dr(e){const t=hr;return hr=e,t}function pr(e,t=Ce.Default){if(void 0===hr)throw new Error("inject() must be called from an injection context");return null===hr?_e(e,void 0,t):hr.get(e,t&Ce.Optional?null:void 0,t)}function fr(e,t=Ce.Default){return(Be||pr)(se(e),t)}const gr=fr;function mr(e){const t=[];for(let n=0;n<e.length;n++){const r=se(e[n]);if(Array.isArray(r)){if(0===r.length)throw new Error("Arguments array must have arguments.");let e,n=Ce.Default;for(let t=0;t<r.length;t++){const i=r[t],o=i.__NG_DI_FLAG__;"number"==typeof o?-1===o?e=i.token:n|=o:e=i}t.push(fr(e,n))}else t.push(fr(r))}return t}function yr(e,t){return e.__NG_DI_FLAG__=t,e.prototype.__NG_DI_FLAG__=t,e}const wr=yr(Yn("Inject",e=>({token:e})),-1),vr=yr(Yn("Optional"),8),br=yr(Yn("SkipSelf"),4);let Cr,Br;function Er(e){var t;return(null===(t=function(){if(void 0===Cr&&(Cr=null,De.trustedTypes))try{Cr=De.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch(t){}return Cr}())||void 0===t?void 0:t.createHTML(e))||e}function _r(e){var t;return(null===(t=function(){if(void 0===Br&&(Br=null,De.trustedTypes))try{Br=De.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch(t){}return Br}())||void 0===t?void 0:t.createHTML(e))||e}class Fr{constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class xr extends Fr{getTypeName(){return"HTML"}}class Tr extends Fr{getTypeName(){return"Style"}}class Qr extends Fr{getTypeName(){return"Script"}}class Sr extends Fr{getTypeName(){return"URL"}}class kr extends Fr{getTypeName(){return"ResourceURL"}}function Ur(e){return e instanceof Fr?e.changingThisBreaksApplicationSecurity:e}function Dr(e,t){const n=Or(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 Or(e){return e instanceof Fr&&e.getTypeName()||null}function Lr(e){const t=new Hr(e);return function(){try{return!!(new window.DOMParser).parseFromString(Er(""),"text/html")}catch(e){return!1}}()?new Ir(t):t}class Ir{constructor(e){this.inertDocumentHelper=e}getInertBodyElement(e){e="<body><remove></remove>"+e;try{const t=(new window.DOMParser).parseFromString(Er(e),"text/html").body;return null===t?this.inertDocumentHelper.getInertBodyElement(e):(t.removeChild(t.firstChild),t)}catch(t){return null}}}class Hr{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=Er(e),t;const n=this.inertDocument.createElement("body");return n.innerHTML=Er(e),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(n),n}stripCustomNsAttrs(e){const t=e.attributes;for(let r=t.length-1;0<r;r--){const n=t.item(r).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 Mr=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi,Rr=/^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 Nr(e){return(e=String(e)).match(Mr)||e.match(Rr)?e:"unsafe:"+e}function Pr(e){return(e=String(e)).split(",").map(e=>Nr(e.trim())).join(", ")}function Kr(e){const t={};for(const n of e.split(","))t[n]=!0;return t}function Vr(...e){const t={};for(const n of e)for(const e in n)n.hasOwnProperty(e)&&(t[e]=!0);return t}const Gr=Kr("area,br,col,hr,img,wbr"),jr=Kr("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),qr=Kr("rp,rt"),zr=Vr(qr,jr),Wr=Vr(Gr,Vr(jr,Kr("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")),Vr(qr,Kr("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")),zr),Xr=Kr("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Jr=Kr("srcset"),Yr=Vr(Xr,Jr,Kr("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"),Kr("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")),$r=Kr("script,style,template");class Zr{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(!Wr.hasOwnProperty(t))return this.sanitizedSomething=!0,!$r.hasOwnProperty(t);this.buf.push("<"),this.buf.push(t);const n=e.attributes;for(let r=0;r<n.length;r++){const e=n.item(r),t=e.name,i=t.toLowerCase();if(!Yr.hasOwnProperty(i)){this.sanitizedSomething=!0;continue}let o=e.value;Xr[i]&&(o=Nr(o)),Jr[i]&&(o=Pr(o)),this.buf.push(" ",t,'="',ni(o),'"')}return this.buf.push(">"),!0}endElement(e){const t=e.nodeName.toLowerCase();Wr.hasOwnProperty(t)&&!Gr.hasOwnProperty(t)&&(this.buf.push("</"),this.buf.push(t),this.buf.push(">"))}chars(e){this.buf.push(ni(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 ei=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,ti=/([^\#-~ |!])/g;function ni(e){return e.replace(/&/g,"&amp;").replace(ei,function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"}).replace(ti,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}let ri;function ii(e,t){let n=null;try{ri=ri||Lr(e);let r=t?String(t):"";n=ri.getInertBodyElement(r);let i=5,o=r;do{if(0===i)throw new Error("Failed to sanitize html because the input is unstable");i--,r=o,o=n.innerHTML,n=ri.getInertBodyElement(r)}while(r!==o);return Er((new Zr).sanitizeChildren(oi(n)||n))}finally{if(n){const e=oi(n)||n;for(;e.firstChild;)e.removeChild(e.firstChild)}}}function oi(e){return"content"in e&&function(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var si=(()=>((si=si||{})[si.NONE=0]="NONE",si[si.HTML=1]="HTML",si[si.STYLE=2]="STYLE",si[si.SCRIPT=3]="SCRIPT",si[si.URL=4]="URL",si[si.RESOURCE_URL=5]="RESOURCE_URL",si))();function ai(e){const t=Ai();return t?_r(t.sanitize(si.HTML,e)||""):Dr(e,"HTML")?_r(Ur(e)):ii(gt(),Ae(e))}function li(e){const t=Ai();return t?t.sanitize(si.URL,e)||"":Dr(e,"URL")?Ur(e):Nr(Ae(e))}function Ai(){const e=Ut();return e&&e[12]}function ci(e,t){e.__ngContext__=t}function ui(e){const t=function(e){return e.__ngContext__||null}(e);return t?Array.isArray(t)?t:t.lView:null}function hi(e){return e.ngOriginalError}function di(e,...t){e.error(...t)}class pi{constructor(){this._console=console}handleError(e){const t=this._findOriginalError(e),n=this._findContext(e),r=function(e){return e&&e.ngErrorLogger||di}(e);r(this._console,"ERROR",e),t&&r(this._console,"ORIGINAL ERROR",t),n&&r(this._console,"ERROR CONTEXT",n)}_findContext(e){return e?function(e){return e.ngDebugContext}(e)||this._findContext(hi(e)):null}_findOriginalError(e){let t=e&&hi(e);for(;t&&hi(t);)t=hi(t);return t||null}}const fi=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(De))();function gi(e){return e.ownerDocument}function mi(e){return e instanceof Function?e():e}var yi=(()=>((yi=yi||{})[yi.Important=1]="Important",yi[yi.DashCase=2]="DashCase",yi))();let wi;function vi(e,t){return wi(e,t)}function bi(e){const t=e[3];return rt(t)?t[3]:t}function Ci(e){return Ei(e[13])}function Bi(e){return Ei(e[4])}function Ei(e){for(;null!==e&&!rt(e);)e=e[4];return e}function _i(e,t,n,r,i){if(null!=r){let o,s=!1;rt(r)?o=r:nt(r)&&(s=!0,r=r[0]);const a=wt(r);0===e&&null!==n?null==i?Li(t,n,a):Oi(t,n,a,i||null,!0):1===e&&null!==n?Oi(t,n,a,i||null,!0):2===e?function(e,t,n){const r=Hi(e,t);r&&function(e,t,n,r){mt(e)?e.removeChild(t,n,r):t.removeChild(n)}(e,r,t,n)}(t,a,s):3===e&&t.destroyNode(a),null!=o&&function(e,t,n,r,i){const o=n[7];o!==wt(n)&&_i(t,e,r,o,i);for(let s=tt;s<n.length;s++){const i=n[s];Wi(i[1],i,e,t,r,o)}}(t,e,o,n,i)}}function Fi(e,t){return mt(e)?e.createText(t):e.createTextNode(t)}function xi(e,t,n){return mt(e)?e.createElement(t,n):null===n?e.createElement(t):e.createElementNS(n,t)}function Ti(e,t){const n=e[9],r=n.indexOf(t),i=t[3];1024&t[2]&&(t[2]&=-1025,Qt(i,-1)),n.splice(r,1)}function Qi(e,t){if(e.length<=tt)return;const n=tt+t,r=e[n];if(r){const o=r[17];null!==o&&o!==e&&Ti(o,r),t>0&&(e[n-1][4]=r[4]);const s=rr(e,tt+t);Wi(r[1],i=r,i[11],2,null,null),i[0]=null,i[6]=null;const a=s[19];null!==a&&a.detachView(s[1]),r[3]=null,r[4]=null,r[2]&=-129}var i;return r}function Si(e,t){if(!(256&t[2])){const n=t[11];mt(n)&&n.destroyNode&&Wi(e,t,n,3,null,null),function(e){let t=e[13];if(!t)return ki(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)&&ki(t[1],t),t=t[3];null===t&&(t=e),nt(t)&&ki(t[1],t),n=t&&t[4]}t=n}}(t)}}function ki(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 r=0;r<n.length;r+=2){const e=t[n[r]];if(!(e instanceof mn)){const t=n[r+1];if(Array.isArray(t))for(let n=0;n<t.length;n+=2){const r=e[t[n]],i=t[n+1];try{i.call(r)}finally{}}else try{t.call(e)}finally{}}}}(e,t),function(e,t){const n=e.cleanup,r=t[7];let i=-1;if(null!==n)for(let o=0;o<n.length-1;o+=2)if("string"==typeof n[o]){const e=n[o+1],s="function"==typeof e?e(t):wt(t[e]),a=r[i=n[o+2]],l=n[o+3];"boolean"==typeof l?s.removeEventListener(n[o],a,l):l>=0?r[i=l]():r[i=-l].unsubscribe(),o+=2}else{const e=r[i=n[o+1]];n[o].call(e)}if(null!==r){for(let e=i+1;e<r.length;e++)(0,r[e])();t[7]=null}}(e,t),1===t[1].type&&mt(t[11])&&t[11].destroy();const n=t[17];if(null!==n&&rt(t[3])){n!==t[3]&&Ti(n,t);const r=t[19];null!==r&&r.detachView(e)}}}function Ui(e,t,n){return Di(e,t.parent,n)}function Di(e,t,n){let r=t;for(;null!==r&&40&r.type;)r=(t=r).parent;if(null===r)return n[0];if(2&r.flags){const t=e.data[r.directiveStart].encapsulation;if(t===Te.None||t===Te.Emulated)return null}return bt(r,n)}function Oi(e,t,n,r,i){mt(e)?e.insertBefore(t,n,r,i):t.insertBefore(n,r,i)}function Li(e,t,n){mt(e)?e.appendChild(t,n):t.appendChild(n)}function Ii(e,t,n,r,i){null!==r?Oi(e,t,n,r,i):Li(e,t,n)}function Hi(e,t){return mt(e)?e.parentNode(t):t.parentNode}function Mi(e,t,n){return Pi(e,t,n)}function Ri(e,t,n){return 40&e.type?bt(e,n):null}let Ni,Pi=Ri;function Ki(e,t){Pi=e,Ni=t}function Vi(e,t,n,r){const i=Ui(e,r,t),o=t[11],s=Mi(r.parent||t[6],r,t);if(null!=i)if(Array.isArray(n))for(let a=0;a<n.length;a++)Ii(o,i,n[a],s,!1);else Ii(o,i,n,s,!1);void 0!==Ni&&Ni(o,r,t,n,i)}function Gi(e,t){if(null!==t){const n=t.type;if(3&n)return bt(t,e);if(4&n)return qi(-1,e[t.index]);if(8&n){const n=t.child;if(null!==n)return Gi(e,n);{const n=e[t.index];return rt(n)?qi(-1,n):wt(n)}}if(32&n)return vi(t,e)()||wt(e[t.index]);{const n=ji(e,t);return null!==n?Array.isArray(n)?n[0]:Gi(bi(e[16]),n):Gi(e,t.next)}}return null}function ji(e,t){return null!==t?e[16][6].projection[t.projection]:null}function qi(e,t){const n=tt+e+1;if(n<t.length){const e=t[n],r=e[1].firstChild;if(null!==r)return Gi(e,r)}return t[7]}function zi(e,t,n,r,i,o,s){for(;null!=n;){const a=r[n.index],l=n.type;if(s&&0===t&&(a&&ci(wt(a),r),n.flags|=4),64!=(64&n.flags))if(8&l)zi(e,t,n.child,r,i,o,!1),_i(t,e,i,a,o);else if(32&l){const s=vi(n,r);let l;for(;l=s();)_i(t,e,i,l,o);_i(t,e,i,a,o)}else 16&l?Xi(e,t,r,n,i,o):_i(t,e,i,a,o);n=s?n.projectionNext:n.next}}function Wi(e,t,n,r,i,o){zi(n,r,e.firstChild,t,i,o,!1)}function Xi(e,t,n,r,i,o){const s=n[16],a=s[6].projection[r.projection];if(Array.isArray(a))for(let l=0;l<a.length;l++)_i(t,e,i,a[l],o);else zi(e,t,a,s[3],i,o,!0)}function Ji(e,t,n){mt(e)?e.setAttribute(t,"style",n):t.style.cssText=n}function Yi(e,t,n){mt(e)?""===n?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n):t.className=n}function $i(e,t,n){let r=e.length;for(;;){const i=e.indexOf(t,n);if(-1===i)return i;if(0===i||e.charCodeAt(i-1)<=32){const n=t.length;if(i+n===r||e.charCodeAt(i+n)<=32)return i}n=i+1}}const Zi="ng-template";function eo(e,t,n){let r=0;for(;r<e.length;){let i=e[r++];if(n&&"class"===i){if(i=e[r],-1!==$i(i.toLowerCase(),t,0))return!0}else if(1===i){for(;r<e.length&&"string"==typeof(i=e[r++]);)if(i.toLowerCase()===t)return!0;return!1}}return!1}function to(e){return 4===e.type&&e.value!==Zi}function no(e,t,n){return t===(4!==e.type||n?e.value:Zi)}function ro(e,t,n){let r=4;const i=e.attrs||[],o=function(e){for(let t=0;t<e.length;t++)if(wn(e[t]))return t;return e.length}(i);let s=!1;for(let a=0;a<t.length;a++){const l=t[a];if("number"!=typeof l){if(!s)if(4&r){if(r=2|1&r,""!==l&&!no(e,l,n)||""===l&&1===t.length){if(io(r))return!1;s=!0}}else{const A=8&r?l:t[++a];if(8&r&&null!==e.attrs){if(!eo(e.attrs,A,n)){if(io(r))return!1;s=!0}continue}const c=oo(8&r?"class":l,i,to(e),n);if(-1===c){if(io(r))return!1;s=!0;continue}if(""!==A){let e;e=c>o?"":i[c+1].toLowerCase();const t=8&r?e:null;if(t&&-1!==$i(t,A,0)||2&r&&A!==e){if(io(r))return!1;s=!0}}}}else{if(!s&&!io(r)&&!io(l))return!1;if(s&&io(l))continue;s=!1,r=l|1&r}}return io(r)||s}function io(e){return 0==(1&e)}function oo(e,t,n,r){if(null===t)return-1;let i=0;if(r||!n){let n=!1;for(;i<t.length;){const r=t[i];if(r===e)return i;if(3===r||6===r)n=!0;else{if(1===r||2===r){let e=t[++i];for(;"string"==typeof e;)e=t[++i];continue}if(4===r)break;if(0===r){i+=4;continue}}i+=n?1:2}return-1}return function(e,t){let n=e.indexOf(4);if(n>-1)for(n++;n<e.length;){const r=e[n];if("number"==typeof r)return-1;if(r===t)return n;n++}return-1}(t,e)}function so(e,t,n=!1){for(let r=0;r<t.length;r++)if(ro(e,t[r],n))return!0;return!1}function ao(e,t){e:for(let n=0;n<t.length;n++){const r=t[n];if(e.length===r.length){for(let t=0;t<e.length;t++)if(e[t]!==r[t])continue e;return!0}}return!1}function lo(e,t){return e?":not("+t.trim()+")":t}function Ao(e){let t=e[0],n=1,r=2,i="",o=!1;for(;n<e.length;){let s=e[n];if("string"==typeof s)if(2&r){const t=e[++n];i+="["+s+(t.length>0?'="'+t+'"':"")+"]"}else 8&r?i+="."+s:4&r&&(i+=" "+s);else""===i||io(s)||(t+=lo(o,i),i=""),r=s,o=o||!io(r);n++}return""!==i&&(t+=lo(o,i)),t}const co={};function uo(e){ho(Dt(),Ut(),an()+e,Pt())}function ho(e,t,n,r){if(!r)if(3==(3&t[2])){const r=e.preOrderCheckHooks;null!==r&&un(t,r,n)}else{const r=e.preOrderHooks;null!==r&&hn(t,r,0,n)}ln(n)}function po(e,t){return e<<17|t<<2}function fo(e){return e>>17&32767}function go(e){return 2|e}function mo(e){return(131068&e)>>2}function yo(e,t){return-131069&e|t<<2}function wo(e){return 1|e}function vo(e,t){const n=e.contentQueries;if(null!==n)for(let r=0;r<n.length;r+=2){const i=n[r],o=n[r+1];if(-1!==o){const n=e.data[o];Yt(i),n.contentQueries(2,t[o],o)}}}function bo(e,t,n,r,i,o,s,a,l,A){const c=t.blueprint.slice();return c[0]=i,c[2]=140|r,Tt(c),c[3]=c[15]=e,c[8]=n,c[10]=s||e&&e[10],c[11]=a||e&&e[11],c[12]=l||e&&e[12]||null,c[9]=A||e&&e[9]||null,c[6]=o,c[16]=2==t.type?e[16]:c,c}function Co(e,t,n,r,i){let o=e.data[t];if(null===o)o=Bo(e,t,n,r,i),St.lFrame.inI18n&&(o.flags|=64);else if(64&o.type){o.type=n,o.value=r,o.attrs=i;const e=Ht();o.injectorIndex=null===e?-1:e.injectorIndex}return Mt(o,!0),o}function Bo(e,t,n,r,i){const o=It(),s=Rt(),a=e.data[t]=function(e,t,n,r,i,o){return{type:n,index:r,insertBeforeIndex:null,injectorIndex:t?t.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,value:i,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,s?o:o&&o.parent,n,t,r,i);return null===e.firstChild&&(e.firstChild=a),null!==o&&(s?null==o.child&&null!==a.parent&&(o.child=a):null===o.next&&(o.next=a)),a}function Eo(e,t,n,r){if(0===n)return-1;const i=t.length;for(let o=0;o<n;o++)t.push(r),e.blueprint.push(r),e.data.push(null);return i}function _o(e,t,n){en(t);try{const r=e.viewQuery;null!==r&&ns(1,r,n);const i=e.template;null!==i&&To(e,t,i,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),e.staticContentQueries&&vo(e,t),e.staticViewQueries&&ns(2,e.viewQuery,n);const o=e.components;null!==o&&function(e,t){for(let n=0;n<t.length;n++)Yo(e,t[n])}(t,o)}catch(r){throw e.firstCreatePass&&(e.incompleteFirstPass=!0),r}finally{t[2]&=-5,sn()}}function Fo(e,t,n,r){const i=t[2];if(256==(256&i))return;en(t);const o=Pt();try{Tt(t),St.lFrame.bindingIndex=e.bindingStartIndex,null!==n&&To(e,t,n,2,r);const s=3==(3&i);if(!o)if(s){const n=e.preOrderCheckHooks;null!==n&&un(t,n,null)}else{const n=e.preOrderHooks;null!==n&&hn(t,n,0,null),dn(t,0)}if(function(e){for(let t=Ci(e);null!==t;t=Bi(t)){if(!t[2])continue;const e=t[9];for(let t=0;t<e.length;t++){const n=e[t],r=n[3];0==(1024&n[2])&&Qt(r,1),n[2]|=1024}}}(t),function(e){for(let t=Ci(e);null!==t;t=Bi(t))for(let e=tt;e<t.length;e++){const n=t[e],r=n[1];Ft(n)&&Fo(r,n,r.template,n[8])}}(t),null!==e.contentQueries&&vo(e,t),!o)if(s){const n=e.contentCheckHooks;null!==n&&un(t,n)}else{const n=e.contentHooks;null!==n&&hn(t,n,1),dn(t,1)}!function(e,t){const n=e.hostBindingOpCodes;if(null!==n)try{for(let e=0;e<n.length;e++){const r=n[e];if(r<0)ln(~r);else{const i=r,o=n[++e],s=n[++e];Wt(o,i),s(2,t[i])}}}finally{ln(-1)}}(e,t);const a=e.components;null!==a&&function(e,t){for(let n=0;n<t.length;n++)Xo(e,t[n])}(t,a);const l=e.viewQuery;if(null!==l&&ns(2,l,r),!o)if(s){const n=e.viewCheckHooks;null!==n&&un(t,n)}else{const n=e.viewHooks;null!==n&&hn(t,n,2),dn(t,2)}!0===e.firstUpdatePass&&(e.firstUpdatePass=!1),o||(t[2]&=-73),1024&t[2]&&(t[2]&=-1025,Qt(t[3],-1))}finally{sn()}}function xo(e,t,n,r){const i=t[10],o=!Pt(),s=_t(t);try{o&&!s&&i.begin&&i.begin(),s&&_o(e,t,r),Fo(e,t,n,r)}finally{o&&!s&&i.end&&i.end()}}function To(e,t,n,r,i){const o=an(),s=2&r;try{ln(-1),s&&t.length>et&&ho(e,t,et,Pt()),n(r,i)}finally{ln(o)}}function Qo(e,t,n){if(it(t)){const r=t.directiveEnd;for(let i=t.directiveStart;i<r;i++){const t=e.data[i];t.contentQueries&&t.contentQueries(1,n[i],i)}}}function So(e,t,n){kt()&&(function(e,t,n,r){const i=n.directiveStart,o=n.directiveEnd;e.firstCreatePass||Qn(n,t),ci(r,t);const s=n.initialInputs;for(let a=i;a<o;a++){const r=e.data[a],o=at(r);o&&Go(t,n,r);const l=Pn(t,e,a,n);ci(l,t),null!==s&&qo(0,a-i,l,r,0,s),o&&(Et(n.index,t)[8]=l)}}(e,t,n,bt(n,t)),128==(128&n.flags)&&function(e,t,n){const r=n.directiveStart,i=n.directiveEnd,o=n.index,s=St.lFrame.currentDirectiveIndex;try{ln(o);for(let n=r;n<i;n++){const r=e.data[n],i=t[n];Xt(n),null===r.hostBindings&&0===r.hostVars&&null===r.hostAttrs||Ro(r,i)}}finally{ln(-1),Xt(s)}}(e,t,n))}function ko(e,t,n=bt){const r=t.localNames;if(null!==r){let i=t.index+1;for(let o=0;o<r.length;o+=2){const s=r[o+1],a=-1===s?n(t,e):e[s];e[i++]=a}}}function Uo(e){const t=e.tView;return null===t||t.incompleteFirstPass?e.tView=Do(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts):t}function Do(e,t,n,r,i,o,s,a,l,A){const c=et+r,u=c+i,h=function(e,t){const n=[];for(let r=0;r<t;r++)n.push(r<e?null:co);return n}(c,u),d="function"==typeof A?A():A;return h[1]={type:e,blueprint:h,template:n,queries:null,viewQuery:a,declTNode:t,data:h.slice().fill(null,c),bindingStartIndex:c,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 s?s():s,firstChild:null,schemas:l,consts:d,incompleteFirstPass:!1}}function Oo(e,t,n,r){const i=is(t);null===n?i.push(r):(i.push(n),e.firstCreatePass&&os(e).push(r,i.length-1))}function Lo(e,t,n){for(let r in e)if(e.hasOwnProperty(r)){const i=e[r];(n=null===n?{}:n).hasOwnProperty(r)?n[r].push(t,i):n[r]=[t,i]}return n}function Io(e,t,n,r,i,o,s,a){const l=bt(t,n);let A,c=t.inputs;var u;!a&&null!=c&&(A=c[r])?(as(e,n,A,r,i),ot(t)&&function(e,t){const n=Et(t,e);16&n[2]||(n[2]|=64)}(n,t.index)):3&t.type&&(r="class"===(u=r)?"className":"for"===u?"htmlFor":"formaction"===u?"formAction":"innerHtml"===u?"innerHTML":"readonly"===u?"readOnly":"tabindex"===u?"tabIndex":u,i=null!=s?s(i,t.value||"",r):i,mt(o)?o.setProperty(l,r,i):vn(r)||(l.setProperty?l.setProperty(r,i):l[r]=i))}function Ho(e,t,n,r){let i=!1;if(kt()){const o=function(e,t,n){const r=e.directiveRegistry;let i=null;if(r)for(let o=0;o<r.length;o++){const s=r[o];so(n,s.selectors,!1)&&(i||(i=[]),Dn(Qn(n,t),e,s.type),at(s)?(No(e,n),i.unshift(s)):i.push(s))}return i}(e,t,n),s=null===r?null:{"":-1};if(null!==o){i=!0,Ko(n,e.data.length,o.length);for(let e=0;e<o.length;e++){const t=o[e];t.providersResolver&&t.providersResolver(t)}let r=!1,a=!1,l=Eo(e,t,o.length,null);for(let i=0;i<o.length;i++){const A=o[i];n.mergedAttrs=bn(n.mergedAttrs,A.hostAttrs),Vo(e,n,t,l,A),Po(l,A,s),null!==A.contentQueries&&(n.flags|=8),null===A.hostBindings&&null===A.hostAttrs&&0===A.hostVars||(n.flags|=128);const c=A.type.prototype;!r&&(c.ngOnChanges||c.ngOnInit||c.ngDoCheck)&&((e.preOrderHooks||(e.preOrderHooks=[])).push(n.index),r=!0),a||!c.ngOnChanges&&!c.ngDoCheck||((e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(n.index),a=!0),l++}!function(e,t){const n=t.directiveEnd,r=e.data,i=t.attrs,o=[];let s=null,a=null;for(let l=t.directiveStart;l<n;l++){const e=r[l],n=e.inputs,A=null===i||to(t)?null:zo(n,i);o.push(A),s=Lo(n,l,s),a=Lo(e.outputs,l,a)}null!==s&&(s.hasOwnProperty("class")&&(t.flags|=16),s.hasOwnProperty("style")&&(t.flags|=32)),t.initialInputs=o,t.inputs=s,t.outputs=a}(e,n)}s&&function(e,t,n){if(t){const r=e.localNames=[];for(let e=0;e<t.length;e+=2){const i=n[t[e+1]];if(null==i)throw new le("301",`Export of name '${t[e+1]}' not found!`);r.push(t[e],i)}}}(n,r,s)}return n.mergedAttrs=bn(n.mergedAttrs,n.attrs),i}function Mo(e,t,n,r,i,o){const s=o.hostBindings;if(s){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(r,i,s)}}function Ro(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function No(e,t){t.flags|=2,(e.components||(e.components=[])).push(t.index)}function Po(e,t,n){if(n){if(t.exportAs)for(let r=0;r<t.exportAs.length;r++)n[t.exportAs[r]]=e;at(t)&&(n[""]=e)}}function Ko(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t}function Vo(e,t,n,r,i){e.data[r]=i;const o=i.factory||(i.factory=lt(i.type)),s=new mn(o,at(i),null);e.blueprint[r]=s,n[r]=s,Mo(e,t,0,r,Eo(e,n,i.hostVars,co),i)}function Go(e,t,n){const r=bt(t,e),i=Uo(n),o=e[10],s=$o(e,bo(e,i,null,n.onPush?64:16,r,t,o,o.createRenderer(r,n),null,null));e[t.index]=s}function jo(e,t,n,r,i,o){const s=bt(e,t);!function(e,t,n,r,i,o,s){if(null==o)mt(e)?e.removeAttribute(t,i,n):t.removeAttribute(i);else{const a=null==s?Ae(o):s(o,r||"",i);mt(e)?e.setAttribute(t,i,a,n):n?t.setAttributeNS(n,i,a):t.setAttribute(i,a)}}(t[11],s,o,e.value,n,r,i)}function qo(e,t,n,r,i,o){const s=o[t];if(null!==s){const e=r.setInput;for(let t=0;t<s.length;){const i=s[t++],o=s[t++],a=s[t++];null!==e?r.setInput(n,a,i,o):n[o]=a}}}function zo(e,t){let n=null,r=0;for(;r<t.length;){const i=t[r];if(0!==i)if(5!==i){if("number"==typeof i)break;e.hasOwnProperty(i)&&(null===n&&(n=[]),n.push(i,e[i],t[r+1])),r+=2}else r+=2;else r+=4}return n}function Wo(e,t,n,r){return new Array(e,!0,!1,t,null,0,r,n,null,null)}function Xo(e,t){const n=Et(t,e);if(Ft(n)){const e=n[1];80&n[2]?Fo(e,n,e.template,n[8]):n[5]>0&&Jo(n)}}function Jo(e){for(let n=Ci(e);null!==n;n=Bi(n))for(let e=tt;e<n.length;e++){const t=n[e];if(1024&t[2]){const e=t[1];Fo(e,t,e.template,t[8])}else t[5]>0&&Jo(t)}const t=e[1].components;if(null!==t)for(let n=0;n<t.length;n++){const r=Et(t[n],e);Ft(r)&&r[5]>0&&Jo(r)}}function Yo(e,t){const n=Et(t,e),r=n[1];!function(e,t){for(let n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n])}(r,n),_o(r,n,n[8])}function $o(e,t){return e[13]?e[14][4]=t:e[13]=t,e[14]=t,t}function Zo(e){for(;e;){e[2]|=64;const t=bi(e);if(0!=(512&e[2])&&!t)return e;e=t}return null}function es(e,t,n){const r=t[10];r.begin&&r.begin();try{Fo(e,t,e.template,n)}catch(i){throw ss(t,i),i}finally{r.end&&r.end()}}function ts(e){!function(e){for(let t=0;t<e.components.length;t++){const n=e.components[t],r=ui(n),i=r[1];xo(i,r,i.template,n)}}(e[8])}function ns(e,t,n){Yt(0),t(e,n)}const rs=(()=>Promise.resolve(null))();function is(e){return e[7]||(e[7]=[])}function os(e){return e.cleanup||(e.cleanup=[])}function ss(e,t){const n=e[9],r=n?n.get(pi,null):null;r&&r.handleError(t)}function as(e,t,n,r,i){for(let o=0;o<n.length;){const s=n[o++],a=n[o++],l=t[s],A=e.data[s];null!==A.setInput?A.setInput(l,i,r,a):l[a]=i}}function ls(e,t,n){const r=vt(t,e);!function(e,t,n){mt(e)?e.setValue(t,n):t.textContent=n}(e[11],r,n)}function As(e,t,n){let r=n?e.styles:null,i=n?e.classes:null,o=0;if(null!==t)for(let s=0;s<t.length;s++){const e=t[s];"number"==typeof e?o=e:1==o?i=re(i,e):2==o&&(r=re(r,e+": "+t[++s]+";"))}n?e.styles=r:e.stylesWithoutHost=r,n?e.classes=i:e.classesWithoutHost=i}const cs=new Zn("INJECTOR",-1);class us{get(e,t=lr){if(t===lr){const t=new Error(`NullInjectorError: No provider for ${ne(e)}!`);throw t.name="NullInjectorError",t}return t}}const hs=new Zn("Set Injector scope."),ds={},ps={};let fs;function gs(){return void 0===fs&&(fs=new us),fs}function ms(e,t=null,n=null,r){return new ys(e,n,t||gs(),r)}class ys{constructor(e,t,n,r=null){this.parent=n,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;const i=[];t&&tr(t,n=>this.processProvider(n,e,t)),tr([e],e=>this.processInjectorType(e,[],i)),this.records.set(cs,bs(void 0,this));const o=this.records.get(hs);this.scope=null!=o?o.value:null,this.source=r||("object"==typeof e?null:ne(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=lr,n=Ce.Default){this.assertNotDestroyed();const r=dr(this),i=Ee(void 0);try{if(!(n&Ce.SkipSelf)){let t=this.records.get(e);if(void 0===t){const n=("function"==typeof(o=e)||"object"==typeof o&&o instanceof Zn)&&fe(e);t=n&&this.injectableDefInScope(n)?bs(ws(e),ds):null,this.records.set(e,t)}if(null!=t)return this.hydrate(e,t)}return(n&Ce.Self?gs():this.parent).get(e,t=n&Ce.Optional&&t===lr?null:t)}catch(s){if("NullInjectorError"===s.name){if((s.ngTempTokenPath=s.ngTempTokenPath||[]).unshift(ne(e)),r)throw s;return function(e,t,n,r){const i=e.ngTempTokenPath;throw t[cr]&&i.unshift(t[cr]),e.message=function(e,t,n,r=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.substr(2):e;let i=ne(t);if(Array.isArray(t))i=t.map(ne).join(" -> ");else if("object"==typeof t){let e=[];for(let n in t)if(t.hasOwnProperty(n)){let r=t[n];e.push(n+":"+("string"==typeof r?JSON.stringify(r):ne(r)))}i=`{${e.join(", ")}}`}return`${n}${r?"("+r+")":""}[${i}]: ${e.replace(Ar,"\n  ")}`}("\n"+e.message,i,n,r),e.ngTokenPath=i,e.ngTempTokenPath=null,e}(s,e,"R3InjectorError",this.source)}throw s}finally{Ee(i),dr(r)}var o}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(e=>this.get(e))}toString(){const e=[];return this.records.forEach((t,n)=>e.push(ne(n))),`R3Injector[${e.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(e,t,n){if(!(e=se(e)))return!1;let r=me(e);const i=null==r&&e.ngModule||void 0,o=void 0===i?e:i,s=-1!==n.indexOf(o);if(void 0!==i&&(r=me(i)),null==r)return!1;if(null!=r.imports&&!s){let e;n.push(o);try{tr(r.imports,r=>{this.processInjectorType(r,t,n)&&(void 0===e&&(e=[]),e.push(r))})}finally{}if(void 0!==e)for(let t=0;t<e.length;t++){const{ngModule:n,providers:r}=e[t];tr(r,e=>this.processProvider(e,n,r||Le))}}this.injectorDefTypes.add(o);const a=lt(o)||(()=>new o);this.records.set(o,bs(a,ds));const l=r.providers;if(null!=l&&!s){const t=e;tr(l,e=>this.processProvider(e,t,l))}return void 0!==i&&void 0!==e.providers}processProvider(e,t,n){let r=Bs(e=se(e))?e:se(e&&e.provide);const i=function(e,t,n){return Cs(e)?bs(void 0,e.useValue):bs(vs(e),ds)}(e);if(Bs(e)||!0!==e.multi)this.records.get(r);else{let t=this.records.get(r);t||(t=bs(void 0,ds,!0),t.factory=()=>mr(t.multi),this.records.set(r,t)),r=e,t.multi.push(e)}this.records.set(r,i)}hydrate(e,t){var n;return t.value===ds&&(t.value=ps,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){if(!e.providedIn)return!1;const t=se(e.providedIn);return"string"==typeof t?"any"===t||t===this.scope:this.injectorDefTypes.has(t)}}function ws(e){const t=fe(e),n=null!==t?t.factory:lt(e);if(null!==n)return n;if(e instanceof Zn)throw new Error(`Token ${ne(e)} is missing a \u0275prov definition.`);if(e instanceof Function)return function(e){const t=e.length;if(t>0){const n=ir(t,"?");throw new Error(`Can't resolve all parameters for ${ne(e)}: (${n.join(", ")}).`)}const n=function(e){const t=e&&(e[ye]||e[ve]);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 vs(e,t,n){let r;if(Bs(e)){const t=se(e);return lt(t)||ws(t)}if(Cs(e))r=()=>se(e.useValue);else if((i=e)&&i.useFactory)r=()=>e.useFactory(...mr(e.deps||[]));else if(function(e){return!(!e||!e.useExisting)}(e))r=()=>fr(se(e.useExisting));else{const t=se(e&&(e.useClass||e.provide));if(!function(e){return!!e.deps}(e))return lt(t)||ws(t);r=()=>new t(...mr(e.deps))}var i;return r}function bs(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function Cs(e){return null!==e&&"object"==typeof e&&ur in e}function Bs(e){return"function"==typeof e}const Es=function(e,t,n){return function(e,t=null,n=null,r){const i=ms(e,t,n,r);return i._resolveInjectorDefTypes(),i}({name:n},t,e,n)};class _s{static create(e,t){return Array.isArray(e)?Es(e,t,""):Es(e.providers,e.parent,e.name||"")}}function Fs(e,t){cn(ui(e)[1],Lt())}function xs(e){let t=Object.getPrototypeOf(e.type.prototype).constructor,n=!0;const r=[e];for(;t;){let i;if(at(e))i=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new Error("Directives cannot inherit Components");i=t.\u0275dir}if(i){if(n){r.push(i);const t=e;t.inputs=Ts(e.inputs),t.declaredInputs=Ts(e.declaredInputs),t.outputs=Ts(e.outputs);const n=i.hostBindings;n&&ks(e,n);const o=i.viewQuery,s=i.contentQueries;if(o&&Qs(e,o),s&&Ss(e,s),te(e.inputs,i.inputs),te(e.declaredInputs,i.declaredInputs),te(e.outputs,i.outputs),at(i)&&i.data.animation){const t=e.data;t.animation=(t.animation||[]).concat(i.data.animation)}}const t=i.features;if(t)for(let r=0;r<t.length;r++){const i=t[r];i&&i.ngInherit&&i(e),i===xs&&(n=!1)}}t=Object.getPrototypeOf(t)}!function(e){let t=0,n=null;for(let r=e.length-1;r>=0;r--){const i=e[r];i.hostVars=t+=i.hostVars,i.hostAttrs=bn(i.hostAttrs,n=bn(n,i.hostAttrs))}}(r)}function Ts(e){return e===Oe?{}:e===Le?[]:e}function Qs(e,t){const n=e.viewQuery;e.viewQuery=n?(e,r)=>{t(e,r),n(e,r)}:t}function Ss(e,t){const n=e.contentQueries;e.contentQueries=n?(e,r,i)=>{t(e,r,i),n(e,r,i)}:t}function ks(e,t){const n=e.hostBindings;e.hostBindings=n?(e,r)=>{t(e,r),n(e,r)}:t}_s.THROW_IF_NOT_FOUND=lr,_s.NULL=new us,_s.\u0275prov=de({token:_s,providedIn:"any",factory:()=>fr(cs)}),_s.__NG_ELEMENT_ID__=-1;let Us=null;function Ds(){if(!Us){const e=De.Symbol;if(e&&e.iterator)Us=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&&(Us=n)}}}return Us}class Os{constructor(e){this.wrapped=e}static wrap(e){return new Os(e)}static unwrap(e){return Os.isWrapped(e)?e.wrapped:e}static isWrapped(e){return e instanceof Os}}function Ls(e){return!!Is(e)&&(Array.isArray(e)||!(e instanceof Map)&&Ds()in e)}function Is(e){return null!==e&&("function"==typeof e||"object"==typeof e)}function Hs(e,t,n){return e[t]=n}function Ms(e,t,n){return!Object.is(e[t],n)&&(e[t]=n,!0)}function Rs(e,t,n,r){const i=Ms(e,t,n);return Ms(e,t+1,r)||i}function Ns(e,t,n,r,i){const o=Rs(e,t,n,r);return Ms(e,t+2,i)||o}function Ps(e,t,n,r){const i=Ut();return Ms(i,jt(),t)&&(Dt(),jo(An(),i,e,t,n,r)),Ps}function Ks(e,t,n,r){return Ms(e,jt(),n)?t+Ae(n)+r:co}function Vs(e,t,n,r,i,o){const s=Rs(e,Gt(),n,i);return qt(2),s?t+Ae(n)+r+Ae(i)+o:co}function Gs(e,t,n,r,i,o){const s=Ut(),a=Ks(s,t,n,r);return a!==co&&jo(An(),s,e,a,i,o),Gs}function js(e,t,n,r,i,o,s,a){const l=Ut(),A=Dt(),c=e+et,u=A.firstCreatePass?function(e,t,n,r,i,o,s,a,l){const A=t.consts,c=Co(t,e,4,s||null,xt(A,a));Ho(t,n,c,xt(A,l)),cn(t,c);const u=c.tViews=Do(2,c,r,i,o,t.directiveRegistry,t.pipeRegistry,null,t.schemas,A);return null!==t.queries&&(t.queries.template(t,c),u.queries=t.queries.embeddedTView(c)),c}(c,A,l,t,n,r,i,o,s):A.data[c];Mt(u,!1);const h=l[11].createComment("");Vi(A,l,h,u),ci(h,l),$o(l,l[c]=Wo(h,l,h,u)),st(u)&&So(A,l,u),null!=s&&ko(l,u,a)}function qs(e){return Bt(St.lFrame.contextLView,et+e)}function zs(e,t=Ce.Default){const n=Ut();return null===n?fr(e,t):In(Lt(),n,se(e),t)}function Ws(e,t,n){const r=Ut();return Ms(r,jt(),t)&&Io(Dt(),An(),r,e,t,r[11],n,!1),Ws}function Xs(e,t,n,r,i){const o=i?"class":"style";as(e,n,t.inputs[o],o,r)}function Js(e,t,n,r){const i=Ut(),o=Dt(),s=et+e,a=i[11],l=i[s]=xi(a,t,St.lFrame.currentNamespace),A=o.firstCreatePass?function(e,t,n,r,i,o,s){const a=t.consts,l=Co(t,e,2,i,xt(a,o));return Ho(t,n,l,xt(a,s)),null!==l.attrs&&As(l,l.attrs,!1),null!==l.mergedAttrs&&As(l,l.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,l),l}(s,o,i,0,t,n,r):o.data[s];Mt(A,!0);const c=A.mergedAttrs;null!==c&&yn(a,l,c);const u=A.classes;null!==u&&Yi(a,l,u);const h=A.styles;null!==h&&Ji(a,l,h),64!=(64&A.flags)&&Vi(o,i,l,A),0===St.lFrame.elementDepthCount&&ci(l,i),St.lFrame.elementDepthCount++,st(A)&&(So(o,i,A),Qo(o,A,i)),null!==r&&ko(i,A)}function Ys(){let e=Lt();Rt()?Nt():(e=e.parent,Mt(e,!1));const t=e;St.lFrame.elementDepthCount--;const n=Dt();n.firstCreatePass&&(cn(n,e),it(e)&&n.queries.elementEnd(e)),null!=t.classesWithoutHost&&function(e){return 0!=(16&e.flags)}(t)&&Xs(n,t,Ut(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function(e){return 0!=(32&e.flags)}(t)&&Xs(n,t,Ut(),t.stylesWithoutHost,!1)}function $s(e,t,n,r){Js(e,t,n,r),Ys()}function Zs(e,t,n){const r=Ut(),i=Dt(),o=e+et,s=i.firstCreatePass?function(e,t,n,r,i){const o=t.consts,s=xt(o,r),a=Co(t,e,8,"ng-container",s);return null!==s&&As(a,s,!0),Ho(t,n,a,xt(o,i)),null!==t.queries&&t.queries.elementStart(t,a),a}(o,i,r,t,n):i.data[o];Mt(s,!0);const a=r[o]=r[11].createComment("");Vi(i,r,a,s),ci(a,r),st(s)&&(So(i,r,s),Qo(i,s,r)),null!=n&&ko(r,s)}function ea(){let e=Lt();const t=Dt();Rt()?Nt():(e=e.parent,Mt(e,!1)),t.firstCreatePass&&(cn(t,e),it(e)&&t.queries.elementEnd(e))}function ta(){return Ut()}function na(e){return!!e&&"function"==typeof e.then}const ra=function(e){return!!e&&"function"==typeof e.subscribe};function ia(e,t,n,r){const i=Ut(),o=Dt(),s=Lt();return function(e,t,n,r,i,o,s,a){const l=st(r),A=e.firstCreatePass&&os(e),c=is(t);let u=!0;if(3&r.type||a){const h=bt(r,t),d=a?a(h):h,p=c.length,f=a?e=>a(wt(e[r.index])):r.index;if(mt(n)){let s=null;if(!a&&l&&(s=function(e,t,n,r){const i=e.cleanup;if(null!=i)for(let o=0;o<i.length-1;o+=2){const e=i[o];if(e===n&&i[o+1]===r){const e=t[7],n=i[o+2];return e.length>n?e[n]:null}"string"==typeof e&&(o+=2)}return null}(e,t,i,r.index)),null!==s)(s.__ngLastListenerFn__||s).__ngNextListenerFn__=o,s.__ngLastListenerFn__=o,u=!1;else{o=sa(r,t,0,o,!1);const e=n.listen(d,i,o);c.push(o,e),A&&A.push(i,f,p,p+1)}}else o=sa(r,t,0,o,!0),d.addEventListener(i,o,s),c.push(o),A&&A.push(i,f,p,s)}else o=sa(r,t,0,o,!1);const h=r.outputs;let d;if(u&&null!==h&&(d=h[i])){const e=d.length;if(e)for(let n=0;n<e;n+=2){const e=t[d[n]][d[n+1]].subscribe(o),s=c.length;c.push(o,e),A&&A.push(i,r.index,s,-(s+1))}}}(o,i,i[11],s,e,t,!!n,r),ia}function oa(e,t,n,r){try{return!1!==n(r)}catch(i){return ss(e,i),!1}}function sa(e,t,n,r,i){return function n(o){if(o===Function)return r;const s=2&e.flags?Et(e.index,t):t;0==(32&t[2])&&Zo(s);let a=oa(t,0,r,o),l=n.__ngNextListenerFn__;for(;l;)a=oa(t,0,l,o)&&a,l=l.__ngNextListenerFn__;return i&&!1===a&&(o.preventDefault(),o.returnValue=!1),a}}function aa(e=1){return function(e){return(St.lFrame.contextLView=function(e,t){for(;e>0;)t=t[15],e--;return t}(e,St.lFrame.contextLView))[8]}(e)}function la(e,t){let n=null;const r=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 i=0;i<t.length;i++){const o=t[i];if("*"!==o){if(null===r?so(e,o,!0):ao(r,o))return i}else n=i}return n}function Aa(e){const t=Ut()[16][6];if(!t.projection){const n=t.projection=ir(e?e.length:1,null),r=n.slice();let i=t.child;for(;null!==i;){const t=e?la(i,e):0;null!==t&&(r[t]?r[t].projectionNext=i:n[t]=i,r[t]=i),i=i.next}}}function ca(e,t=0,n){const r=Ut(),i=Dt(),o=Co(i,et+e,16,null,n||null);null===o.projection&&(o.projection=t),Nt(),64!=(64&o.flags)&&function(e,t,n){Xi(t[11],0,t,n,Ui(e,n,t),Mi(n.parent||t[6],n,t))}(i,r,o)}function ua(e,t,n){return ha(e,"",t,"",n),ua}function ha(e,t,n,r,i){const o=Ut(),s=Ks(o,t,n,r);return s!==co&&Io(Dt(),An(),o,e,s,o[11],i,!1),ha}function da(e,t,n,r,i,o,s){const a=Ut(),l=Vs(a,t,n,r,i,o);return l!==co&&Io(Dt(),An(),a,e,l,a[11],s,!1),da}function pa(e,t,n,r,i){const o=e[n+1],s=null===t;let a=r?fo(o):mo(o),l=!1;for(;0!==a&&(!1===l||s);){const n=e[a+1];fa(e[a],t)&&(l=!0,e[a+1]=r?wo(n):go(n)),a=r?fo(n):mo(n)}l&&(e[n+1]=r?go(o):wo(o))}function fa(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&ar(e,t)>=0}const ga={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function ma(e){return e.substring(ga.key,ga.keyEnd)}function ya(e,t){const n=ga.textEnd;return n===t?-1:(t=ga.keyEnd=function(e,t,n){for(;t<n&&e.charCodeAt(t)>32;)t++;return t}(e,ga.key=t,n),wa(e,t,n))}function wa(e,t,n){for(;t<n&&e.charCodeAt(t)<=32;)t++;return t}function va(e,t,n){return Ea(e,t,n,!1),va}function ba(e,t){return Ea(e,t,null,!0),ba}function Ca(e){!function(e,t,n,r){const i=Dt(),o=qt(2);i.firstUpdatePass&&Fa(i,null,o,r);const s=Ut();if(n!==co&&Ms(s,o,n)){const a=i.data[an()];if(Ua(a,r)&&!_a(i,o)){let e=a.classesWithoutHost;null!==e&&(n=re(e,n||"")),Xs(i,a,s,n,r)}else!function(e,t,n,r,i,o,s,a){i===co&&(i=Le);let l=0,A=0,c=0<i.length?i[0]:null,u=0<o.length?o[0]:null;for(;null!==c||null!==u;){const s=l<i.length?i[l+1]:void 0,h=A<o.length?o[A+1]:void 0;let d,p=null;c===u?(l+=2,A+=2,s!==h&&(p=u,d=h)):null===u||null!==c&&c<u?(l+=2,p=c):(A+=2,p=u,d=h),null!==p&&Qa(e,t,n,r,p,d,true,a),c=l<i.length?i[l]:null,u=A<o.length?o[A]:null}}(i,a,s,s[11],s[o+1],s[o+1]=function(e,t,n){if(null==n||""===n)return Le;const r=[],i=Ur(n);if(Array.isArray(i))for(let o=0;o<i.length;o++)e(r,i[o],!0);else if("object"==typeof i)for(const o in i)i.hasOwnProperty(o)&&e(r,o,i[o]);else"string"==typeof i&&t(r,i);return r}(e,t,n),0,o)}}(or,Ba,e,!0)}function Ba(e,t){for(let n=function(e){return function(e){ga.key=0,ga.keyEnd=0,ga.value=0,ga.valueEnd=0,ga.textEnd=e.length}(e),ya(e,wa(e,0,ga.textEnd))}(t);n>=0;n=ya(t,n))or(e,ma(t),!0)}function Ea(e,t,n,r){const i=Ut(),o=Dt(),s=qt(2);o.firstUpdatePass&&Fa(o,e,s,r),t!==co&&Ms(i,s,t)&&Qa(o,o.data[an()],i,i[11],e,i[s+1]=function(e,t){return null==e||("string"==typeof t?e+=t:"object"==typeof e&&(e=ne(Ur(e)))),e}(t,n),r,s)}function _a(e,t){return t>=e.expandoStartIndex}function Fa(e,t,n,r){const i=e.data;if(null===i[n+1]){const o=i[an()],s=_a(e,n);Ua(o,r)&&null===t&&!s&&(t=!1),t=function(e,t,n,r){const i=function(e){const t=St.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}(e);let o=r?t.residualClasses:t.residualStyles;if(null===i)0===(r?t.classBindings:t.styleBindings)&&(n=Ta(n=xa(null,e,t,n,r),t.attrs,r),o=null);else{const s=t.directiveStylingLast;if(-1===s||e[s]!==i)if(n=xa(i,e,t,n,r),null===o){let n=function(e,t,n){const r=n?t.classBindings:t.styleBindings;if(0!==mo(r))return e[fo(r)]}(e,t,r);void 0!==n&&Array.isArray(n)&&(n=xa(null,e,t,n[1],r),n=Ta(n,t.attrs,r),function(e,t,n,r){e[fo(n?t.classBindings:t.styleBindings)]=r}(e,t,r,n))}else o=function(e,t,n){let r;const i=t.directiveEnd;for(let o=1+t.directiveStylingLast;o<i;o++)r=Ta(r,e[o].hostAttrs,n);return Ta(r,t.attrs,n)}(e,t,r)}return void 0!==o&&(r?t.residualClasses=o:t.residualStyles=o),n}(i,o,t,r),function(e,t,n,r,i,o){let s=o?t.classBindings:t.styleBindings,a=fo(s),l=mo(s);e[r]=n;let A,c=!1;if(Array.isArray(n)){const e=n;A=e[1],(null===A||ar(e,A)>0)&&(c=!0)}else A=n;if(i)if(0!==l){const t=fo(e[a+1]);e[r+1]=po(t,a),0!==t&&(e[t+1]=yo(e[t+1],r)),e[a+1]=131071&e[a+1]|r<<17}else e[r+1]=po(a,0),0!==a&&(e[a+1]=yo(e[a+1],r)),a=r;else e[r+1]=po(l,0),0===a?a=r:e[l+1]=yo(e[l+1],r),l=r;c&&(e[r+1]=go(e[r+1])),pa(e,A,r,!0),pa(e,A,r,!1),function(e,t,n,r,i){const o=i?e.residualClasses:e.residualStyles;null!=o&&"string"==typeof t&&ar(o,t)>=0&&(n[r+1]=wo(n[r+1]))}(t,A,e,r,o),s=po(a,l),o?t.classBindings=s:t.styleBindings=s}(i,o,t,n,s,r)}}function xa(e,t,n,r,i){let o=null;const s=n.directiveEnd;let a=n.directiveStylingLast;for(-1===a?a=n.directiveStart:a++;a<s&&(o=t[a],r=Ta(r,o.hostAttrs,i),o!==e);)a++;return null!==e&&(n.directiveStylingLast=a),r}function Ta(e,t,n){const r=n?1:2;let i=-1;if(null!==t)for(let o=0;o<t.length;o++){const s=t[o];"number"==typeof s?i=s:i===r&&(Array.isArray(e)||(e=void 0===e?[]:["",e]),or(e,s,!!n||t[++o]))}return void 0===e?null:e}function Qa(e,t,n,r,i,o,s,a){if(!(3&t.type))return;const l=e.data,A=l[a+1];ka(1==(1&A)?Sa(l,t,n,i,mo(A),s):void 0)||(ka(o)||2==(2&A)&&(o=Sa(l,null,n,i,a,s)),function(e,t,n,r,i){const o=mt(e);if(t)i?o?e.addClass(n,r):n.classList.add(r):o?e.removeClass(n,r):n.classList.remove(r);else{let t=-1===r.indexOf("-")?void 0:yi.DashCase;if(null==i)o?e.removeStyle(n,r,t):n.style.removeProperty(r);else{const s="string"==typeof i&&i.endsWith("!important");s&&(i=i.slice(0,-10),t|=yi.Important),o?e.setStyle(n,r,i,t):n.style.setProperty(r,i,s?"important":"")}}}(r,s,vt(an(),n),i,o))}function Sa(e,t,n,r,i,o){const s=null===t;let a;for(;i>0;){const t=e[i],o=Array.isArray(t),l=o?t[1]:t,A=null===l;let c=n[i+1];c===co&&(c=A?Le:void 0);let u=A?sr(c,r):l===r?c:void 0;if(o&&!ka(u)&&(u=sr(t,r)),ka(u)&&(a=u,s))return a;const h=e[i+1];i=s?fo(h):mo(h)}if(null!==t){let e=o?t.residualClasses:t.residualStyles;null!=e&&(a=sr(e,r))}return a}function ka(e){return void 0!==e}function Ua(e,t){return 0!=(e.flags&(t?16:32))}function Da(e,t=""){const n=Ut(),r=Dt(),i=e+et,o=r.firstCreatePass?Co(r,i,1,t,null):r.data[i],s=n[i]=Fi(n[11],t);Vi(r,n,s,o),Mt(o,!1)}function Oa(e){return La("",e,""),Oa}function La(e,t,n){const r=Ut(),i=Ks(r,e,t,n);return i!==co&&ls(r,an(),i),La}function Ia(e,t,n,r,i){const o=Ut(),s=Vs(o,e,t,n,r,i);return s!==co&&ls(o,an(),s),Ia}function Ha(e,t,n,r,i,o,s){const a=Ut(),l=function(e,t,n,r,i,o,s,a){const l=Ns(e,Gt(),n,i,s);return qt(3),l?t+Ae(n)+r+Ae(i)+o+Ae(s)+a:co}(a,e,t,n,r,i,o,s);return l!==co&&ls(a,an(),l),Ha}function Ma(e,t,n){const r=Ut();return Ms(r,jt(),t)&&Io(Dt(),An(),r,e,t,r[11],n,!0),Ma}const Ra=void 0;var Na=["en",[["a","p"],["AM","PM"],Ra],[["AM","PM"],Ra,Ra],[["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"]],Ra,[["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"]],Ra,[["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}",Ra,"{1} 'at' {0}",Ra],[".",",",";","%","+","-","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 Pa={};function Ka(e){const t=function(e){return e.toLowerCase().replace(/_/g,"-")}(e);let n=Va(t);if(n)return n;const r=t.split("-")[0];if(n=Va(r),n)return n;if("en"===r)return Na;throw new Error(`Missing locale data for the locale "${e}".`)}function Va(e){return e in Pa||(Pa[e]=De.ng&&De.ng.common&&De.ng.common.locales&&De.ng.common.locales[e]),Pa[e]}var Ga=(()=>((Ga=Ga||{})[Ga.LocaleId=0]="LocaleId",Ga[Ga.DayPeriodsFormat=1]="DayPeriodsFormat",Ga[Ga.DayPeriodsStandalone=2]="DayPeriodsStandalone",Ga[Ga.DaysFormat=3]="DaysFormat",Ga[Ga.DaysStandalone=4]="DaysStandalone",Ga[Ga.MonthsFormat=5]="MonthsFormat",Ga[Ga.MonthsStandalone=6]="MonthsStandalone",Ga[Ga.Eras=7]="Eras",Ga[Ga.FirstDayOfWeek=8]="FirstDayOfWeek",Ga[Ga.WeekendRange=9]="WeekendRange",Ga[Ga.DateFormat=10]="DateFormat",Ga[Ga.TimeFormat=11]="TimeFormat",Ga[Ga.DateTimeFormat=12]="DateTimeFormat",Ga[Ga.NumberSymbols=13]="NumberSymbols",Ga[Ga.NumberFormats=14]="NumberFormats",Ga[Ga.CurrencyCode=15]="CurrencyCode",Ga[Ga.CurrencySymbol=16]="CurrencySymbol",Ga[Ga.CurrencyName=17]="CurrencyName",Ga[Ga.Currencies=18]="Currencies",Ga[Ga.Directionality=19]="Directionality",Ga[Ga.PluralCase=20]="PluralCase",Ga[Ga.ExtraData=21]="ExtraData",Ga))();const ja="en-US",qa={marker:"element"},za={marker:"ICU"};var Wa=(()=>((Wa=Wa||{})[Wa.SHIFT=2]="SHIFT",Wa[Wa.APPEND_EAGERLY=1]="APPEND_EAGERLY",Wa[Wa.COMMENT=2]="COMMENT",Wa))();let Xa=ja;function Ja(e){var t;null==(t=e)&&he("Expected localeId to be defined",t,null,"!="),"string"==typeof e&&(Xa=e.toLowerCase().replace(/_/g,"-"))}function Ya(e,t,n){const r=t.insertBeforeIndex,i=Array.isArray(r)?r[0]:r;return null===i?Ri(e,0,n):wt(n[i])}function $a(e,t,n,r,i){const o=t.insertBeforeIndex;if(Array.isArray(o)){let s=r,a=null;if(3&t.type||(a=s,s=i),null!==s&&0==(2&t.flags))for(let t=1;t<o.length;t++)Oi(e,s,n[o[t]],a,!1)}}function Za(e,t){if(e.push(t),e.length>1)for(let n=e.length-2;n>=0;n--){const r=e[n];el(r)||tl(r,t)&&null===nl(r)&&rl(r,t.index)}}function el(e){return!(64&e.type)}function tl(e,t){return el(t)||e.index>t.index}function nl(e){const t=e.insertBeforeIndex;return Array.isArray(t)?t[0]:t}function rl(e,t){const n=e.insertBeforeIndex;Array.isArray(n)?n[0]=t:(Ki(Ya,$a),e.insertBeforeIndex=t)}function il(e,t,n){const r=Bo(e,n,64,null,null);return Za(t,r),r}const ol=/\ufffd(\d+):?\d*\ufffd/gi,sl=/\ufffd(\d+)\ufffd/,al=/^\s*(\ufffd\d+:?\d*\ufffd)\s*,\s*(select|plural)\s*,/,ll=/\ufffd\/?\*(\d+:\d+)\ufffd/gi,Al=/\ufffd(\/?[#*]\d+):?\d*\ufffd/gi,cl=/\uE500/g;function ul(e,t,n,r,i,o,s){const a=Eo(e,r,1,null);let l=a<<Wa.SHIFT,A=Ht();t===A&&(A=null),null===A&&(l|=Wa.APPEND_EAGERLY),s&&(l|=Wa.COMMENT,void 0===wi&&(wi=function(){const e=[];let t,n,r=-1;function i(e,t){r=0;const i=function(e,t){const n=t[e.currentCaseLViewIndex];return null===n?n:n<0?~n:n}(e,t);n=null!==i?e.remove[i]:Le}function o(){if(r<n.length){const s=n[r++];return s>0?t[s]:(e.push(r,n),i(t[1].data[~s],t),o())}return 0===e.length?null:(n=e.pop(),r=e.pop(),o())}return function(n,r){for(t=r;e.length;)e.pop();return i(n.value,r),o}}())),i.push(l,null===o?"":o);const c=Bo(e,a,s?32:1,null===o?"":o,null);Za(n,c);const u=c.index;return Mt(c,!1),null!==A&&t!==A&&function(e,t){let n=e.insertBeforeIndex;var r;null===n?(Ki(Ya,$a),n=e.insertBeforeIndex=[null,t]):("Expecting array here",(r=Array.isArray(n))!=!0&&he("Expecting array here",r,true,"=="),n.push(t))}(A,u),c}function hl(e,t,n,r,i,o,s){const a=s.match(ol),l=ul(e,t,n,o,r,a?null:s,!1);a&&dl(i,s,l.index,null,0,null)}function dl(e,t,n,r,i,o){const s=e.length,a=s+1;e.push(null,null);const l=s+2,A=t.split(ol);let c=0;for(let u=0;u<A.length;u++){const t=A[u];if(1&u){const n=i+parseInt(t,10);e.push(-1-n),c|=pl(n)}else""!==t&&e.push(t)}return e.push(n<<2|(r?1:0)),r&&e.push(r,o),e[s]=c,e[a]=e.length-l,c}function pl(e){return 1<<Math.min(e,31)}function fl(e){let t,n,r="",i=0,o=!1;for(;null!==(t=ll.exec(e));)o?t[0]===`\ufffd/*${n}\ufffd`&&(i=t.index,o=!1):(r+=e.substring(i,t.index+t[0].length),n=t[1],o=!0);return r+=e.substr(i),r}function gl(e,t,n,r,i,o){let s=0;const a={type:i.type,currentCaseLViewIndex:Eo(e,t,1,null),anchorIdx:o,cases:[],create:[],remove:[],update:[]};!function(e,t,n){e.push(pl(t.mainBinding),2,-1-t.mainBinding,n<<2|2)}(n,i,o),function(e,t,n){const r=e.data[t];null===r?e.data[t]=n:r.value=n}(e,o,a);const l=i.values;for(let A=0;A<l.length;A++){const o=l[A],c=[];for(let e=0;e<o.length;e++){const t=o[e];if("string"!=typeof t){const n=c.push(t)-1;o[e]=`\x3c!--\ufffd${n}\ufffd--\x3e`}}s=wl(e,a,t,n,r,i.cases[A],o.join(""),c)|s}s&&function(e,t,n){e.push(t,1,n<<2|3)}(n,s,o)}function ml(e){const t=[],n=[];let r=1,i=0;const o=yl(e=e.replace(al,function(e,t,n){return r="select"===n?0:1,i=parseInt(t.substr(1),10),""}));for(let s=0;s<o.length;){let e=o[s++].trim();1===r&&(e=e.replace(/\s*(?:=)?(\w+)\s*/,"$1")),e.length&&t.push(e);const i=yl(o[s++]);t.length>n.length&&n.push(i)}return{type:r,mainBinding:i,cases:t,values:n}}function yl(e){if(!e)return[];let t=0;const n=[],r=[],i=/[{}]/g;let o;for(i.lastIndex=0;o=i.exec(e);){const i=o.index;if("}"==o[0]){if(n.pop(),0==n.length){const n=e.substring(t,i);al.test(n)?r.push(ml(n)):r.push(n),t=i+1}}else{if(0==n.length){const n=e.substring(t,i);r.push(n),t=i+1}n.push("{")}}const s=e.substring(t);return r.push(s),r}function wl(e,t,n,r,i,o,s,a){const l=[],A=[],c=[];t.cases.push(o),t.create.push(l),t.remove.push(A),t.update.push(c);const u=Lr(gt()).getInertBodyElement(s),h=oi(u)||u;return h?vl(e,t,n,r,l,A,c,h,i,a,0):0}function vl(e,t,n,r,i,o,s,a,l,A,c){let u=0,h=a.firstChild;for(;h;){const a=Eo(e,n,1,null);switch(h.nodeType){case Node.ELEMENT_NODE:const d=h,p=d.tagName.toLowerCase();if(Wr.hasOwnProperty(p)){Bl(i,qa,p,l,a),e.data[a]=p;const f=d.attributes;for(let e=0;e<f.length;e++){const t=f.item(e),n=t.name.toLowerCase();t.value.match(ol)?Yr.hasOwnProperty(n)&&dl(s,t.value,a,t.name,0,Xr[n]?Nr:Jr[n]?Pr:null):El(i,a,t)}u=vl(e,t,n,r,i,o,s,h,a,A,c+1)|u,bl(o,a,c)}break;case Node.TEXT_NODE:const f=h.textContent||"",g=f.match(ol);Bl(i,null,g?"":f,l,a),bl(o,a,c),g&&(u=dl(s,f,a,null,0,null)|u);break;case Node.COMMENT_NODE:const m=sl.exec(h.textContent||"");if(m){const t=A[parseInt(m[1],10)];Bl(i,za,"",l,a),gl(e,n,r,l,t,a),Cl(o,a,c)}}h=h.nextSibling}return u}function bl(e,t,n){0===n&&e.push(t)}function Cl(e,t,n){0===n&&(e.push(~t),e.push(t))}function Bl(e,t,n,r,i){null!==t&&e.push(t),e.push(n,i,0|r<<17|i<<1)}function El(e,t,n){e.push(t<<1|1,n.name,n.value)}function _l(e,t,n){(function(e,t,n=-1){const r=Dt(),i=Ut(),o=et+e,s=xt(r.consts,t),a=Ht();r.firstCreatePass&&function(e,t,n,r,i,o){const s=Ht(),a=[],l=[],A=[[]],c=(u=i=function(e,t){if(function(e){return-1===e}(t))return fl(e);{const n=e.indexOf(`:${t}\ufffd`)+2+t.toString().length,r=e.search(new RegExp(`\ufffd\\/\\*\\d+:${t}\ufffd`));return fl(e.substring(n,r))}}(i,o),u.replace(cl," ")).split(Al);var u;for(let h=0;h<c.length;h++){let r=c[h];if(0==(1&h)){const o=yl(r);for(let r=0;r<o.length;r++){let c=o[r];if(0==(1&r)){const t=c;""!==t&&hl(e,s,A[0],a,l,n,t)}else{const r=c;if("object"!=typeof r)throw new Error(`Unable to parse ICU expression in "${i}" message.`);gl(e,n,l,t,r,ul(e,s,A[0],n,a,"",!0).index)}}}else{const t=47===r.charCodeAt(0),n=(r.charCodeAt(t?1:0),et+Number.parseInt(r.substring(t?2:1)));if(t)A.shift(),Mt(Ht(),!1);else{const t=il(e,A[0],n);A.unshift([]),Mt(t,!0)}}}e.data[r]={create:a,update:l}}(r,null===a?0:a.index,i,o,s,n);const l=r.data[o],A=Di(r,a===i[6]?null:a,i);!function(e,t,n,r){const i=e[11];for(let o=0;o<t.length;o++){const s=t[o++],a=t[o],l=(s&Wa.COMMENT)===Wa.COMMENT,A=(s&Wa.APPEND_EAGERLY)===Wa.APPEND_EAGERLY,c=s>>>Wa.SHIFT;let u=e[c];null===u&&(u=e[c]=l?i.createComment(a):Fi(i,a)),A&&null!==n&&Oi(i,n,u,r,!1)}}(i,l.create,A,a&&8&a.type?i[a.index]:null),zt(!0)})(e,t,n),zt(!1)}function Fl(e,t,n,r,i){if(e=se(e),Array.isArray(e))for(let o=0;o<e.length;o++)Fl(e[o],t,n,r,i);else{const o=Dt(),s=Ut();let a=Bs(e)?e:se(e.provide),l=vs(e);const A=Lt(),c=1048575&A.providerIndexes,u=A.directiveStart,h=A.providerIndexes>>20;if(Bs(e)||!e.multi){const r=new mn(l,i,zs),d=Ql(a,t,i?c:c+h,u);-1===d?(Dn(Qn(A,s),o,a),xl(o,e,t.length),t.push(a),A.directiveStart++,A.directiveEnd++,i&&(A.providerIndexes+=1048576),n.push(r),s.push(r)):(n[d]=r,s[d]=r)}else{const d=Ql(a,t,c+h,u),p=Ql(a,t,c,c+h),f=d>=0&&n[d],g=p>=0&&n[p];if(i&&!g||!i&&!f){Dn(Qn(A,s),o,a);const c=function(e,t,n,r,i){const o=new mn(e,n,zs);return o.multi=[],o.index=t,o.componentProviders=0,Tl(o,i,r&&!n),o}(i?kl:Sl,n.length,i,r,l);!i&&g&&(n[p].providerFactory=c),xl(o,e,t.length,0),t.push(a),A.directiveStart++,A.directiveEnd++,i&&(A.providerIndexes+=1048576),n.push(c),s.push(c)}else xl(o,e,d>-1?d:p,Tl(n[i?p:d],l,!i&&r));!i&&r&&g&&n[p].componentProviders++}}}function xl(e,t,n,r){const i=Bs(t);if(i||t.useClass){const o=(t.useClass||t).prototype.ngOnDestroy;if(o){const s=e.destroyHooks||(e.destroyHooks=[]);if(!i&&t.multi){const e=s.indexOf(n);-1===e?s.push(n,[r,o]):s[e+1].push(r,o)}else s.push(n,o)}}}function Tl(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function Ql(e,t,n,r){for(let i=n;i<r;i++)if(t[i]===e)return i;return-1}function Sl(e,t,n,r){return Ul(this.multi,[])}function kl(e,t,n,r){const i=this.multi;let o;if(this.providerFactory){const e=this.providerFactory.componentProviders,t=Pn(n,n[1],this.providerFactory.index,r);o=t.slice(0,e),Ul(i,o);for(let n=e;n<t.length;n++)o.push(t[n])}else o=[],Ul(i,o);return o}function Ul(e,t){for(let n=0;n<e.length;n++)t.push((0,e[n])());return t}function Dl(e,t=[]){return n=>{n.providersResolver=(n,r)=>function(e,t,n){const r=Dt();if(r.firstCreatePass){const i=at(e);Fl(n,r.data,r.blueprint,i,!0),Fl(t,r.data,r.blueprint,i,!1)}}(n,r?r(e):e,t)}}class Ol{}class Ll{resolveComponentFactory(e){throw function(e){const t=Error(`No component factory found for ${ne(e)}. Did you add it to @NgModule.entryComponents?`);return t.ngComponent=e,t}(e)}}class Il{}function Hl(...e){}function Ml(e,t){return new Nl(bt(e,t))}Il.NULL=new Ll;const Rl=function(){return Ml(Lt(),Ut())};let Nl=(()=>{class e{constructor(e){this.nativeElement=e}}return e.__NG_ELEMENT_ID__=Rl,e})();function Pl(e){return e instanceof Nl?e.nativeElement:e}class Kl{}let Vl=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>Gl(),e})();const Gl=function(){const e=Ut(),t=Et(Lt().index,e);return function(e){return e[11]}(nt(t)?t:e)};let jl=(()=>{class e{}return e.\u0275prov=de({token:e,providedIn:"root",factory:()=>null}),e})();class ql{constructor(e){this.full=e,this.major=e.split(".")[0],this.minor=e.split(".")[1],this.patch=e.split(".").slice(2).join(".")}}const zl=new ql("12.1.4");class Wl{constructor(){}supports(e){return Ls(e)}create(e){return new Jl(e)}}const Xl=(e,t)=>t;class Jl{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||Xl}forEachItem(e){let t;for(t=this._itHead;null!==t;t=t._next)e(t)}forEachOperation(e){let t=this._itHead,n=this._removalsHead,r=0,i=null;for(;t||n;){const o=!n||t&&t.currentIndex<eA(n,r,i)?t:n,s=eA(o,r,i),a=o.currentIndex;if(o===n)r--,n=n._nextRemoved;else if(t=t._next,null==o.previousIndex)r++;else{i||(i=[]);const e=s-r,t=a-r;if(e!=t){for(let n=0;n<e;n++){const r=n<i.length?i[n]:i[n]=0,o=r+n;t<=o&&o<e&&(i[n]=r+1)}i[o.previousIndex]=t-e}}s!==a&&e(o,s,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=[]),!Ls(e))throw new Error(`Error trying to diff '${ne(e)}'. Only arrays and iterables are allowed`);return this.check(e)?this:null}onDestroy(){}check(e){this._reset();let t,n,r,i=this._itHead,o=!1;if(Array.isArray(e)){this.length=e.length;for(let t=0;t<this.length;t++)n=e[t],r=this._trackByFn(t,n),null!==i&&Object.is(i.trackById,r)?(o&&(i=this._verifyReinsertion(i,n,r,t)),Object.is(i.item,n)||this._addIdentityChange(i,n)):(i=this._mismatch(i,n,r,t),o=!0),i=i._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[Ds()]();let r;for(;!(r=n.next()).done;)t(r.value)}}(e,e=>{r=this._trackByFn(t,e),null!==i&&Object.is(i.trackById,r)?(o&&(i=this._verifyReinsertion(i,e,r,t)),Object.is(i.item,e)||this._addIdentityChange(i,e)):(i=this._mismatch(i,e,r,t),o=!0),i=i._next,t++}),this.length=t;return this._truncate(i),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,r){let i;return null===e?i=this._itTail:(i=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,i,r)):null!==(e=null===this._linkedRecords?null:this._linkedRecords.get(n,r))?(Object.is(e.item,t)||this._addIdentityChange(e,t),this._moveAfter(e,i,r)):e=this._addAfter(new Yl(t,n),i,r),e}_verifyReinsertion(e,t,n,r){let i=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==i?e=this._reinsertAfter(i,e._prev,r):e.currentIndex!=r&&(e.currentIndex=r,this._addToMoves(e,r)),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 r=e._prevRemoved,i=e._nextRemoved;return null===r?this._removalsHead=i:r._nextRemoved=i,null===i?this._removalsTail=r:i._prevRemoved=r,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 r=null===t?this._itHead:t._next;return e._next=r,e._prev=t,null===r?this._itTail=e:r._prev=e,null===t?this._itHead=e:t._next=e,null===this._linkedRecords&&(this._linkedRecords=new Zl),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 Zl),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 Yl{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 $l{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 Zl{constructor(){this.map=new Map}put(e){const t=e.trackById;let n=this.map.get(t);n||(n=new $l,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 eA(e,t,n){const r=e.previousIndex;if(null===r)return r;let i=0;return n&&r<n.length&&(i=n[r]),r+t+i}class tA{constructor(){}supports(e){return e instanceof Map||Is(e)}create(){return new nA}}class nA{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||Is(e)))throw new Error(`Error trying to diff '${ne(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 r=this._getOrCreateRecordForKey(n,e);t=this._insertBeforeOrAppend(t,r)}}),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 r=n._prev,i=n._next;return r&&(r._next=i),i&&(i._prev=r),n._next=null,n._prev=null,n}const n=new rA(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 rA{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 iA(){return new oA([new Wl])}let oA=(()=>{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||iA()),deps:[[e,new br,new vr]]}}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=de({token:e,providedIn:"root",factory:iA}),e})();function sA(){return new aA([new tA])}let aA=(()=>{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||sA()),deps:[[e,new br,new vr]]}}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=de({token:e,providedIn:"root",factory:sA}),e})();function lA(e,t,n,r,i=!1){for(;null!==n;){const o=t[n.index];if(null!==o&&r.push(wt(o)),rt(o))for(let e=tt;e<o.length;e++){const t=o[e],n=t[1].firstChild;null!==n&&lA(t[1],t,n,r)}const s=n.type;if(8&s)lA(e,t,n.child,r);else if(32&s){const e=vi(n,t);let i;for(;i=e();)r.push(i)}else if(16&s){const e=ji(t,n);if(Array.isArray(e))r.push(...e);else{const n=bi(t[16]);lA(n[1],n,e,r,!0)}}n=i?n.projectionNext:n.next}return r}class AA{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 lA(t,e,t.firstChild,[])}get context(){return this._lView[8]}set context(e){this._lView[8]=e}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(rt(e)){const t=e[8],n=t?t.indexOf(this):-1;n>-1&&(Qi(e,n),rr(t,n))}this._attachedToViewContainer=!1}Si(this._lView[1],this._lView)}onDestroy(e){Oo(this._lView[1],this._lView,null,e)}markForCheck(){Zo(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){es(this._lView[1],this._lView,this.context)}checkNoChanges(){!function(e,t,n){Kt(!0);try{es(e,t,n)}finally{Kt(!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,Wi(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 cA extends AA{constructor(e){super(e),this._view=e}detectChanges(){ts(this._view)}checkNoChanges(){!function(e){Kt(!0);try{ts(e)}finally{Kt(!1)}}(this._view)}get context(){return null}}const uA=function(e){return function(e,t,n){if(ot(e)&&!n){const n=Et(e.index,t);return new AA(n,n)}return 47&e.type?new AA(t[16],t):null}(Lt(),Ut(),16==(16&e))};let hA=(()=>{class e{}return e.__NG_ELEMENT_ID__=uA,e})();const dA=[new tA],pA=new oA([new Wl]),fA=new aA(dA),gA=function(){return vA(Lt(),Ut())};let mA=(()=>{class e{}return e.__NG_ELEMENT_ID__=gA,e})();const yA=mA,wA=class extends yA{constructor(e,t,n){super(),this._declarationLView=e,this._declarationTContainer=t,this.elementRef=n}createEmbeddedView(e){const t=this._declarationTContainer.tViews,n=bo(this._declarationLView,t,e,16,null,t.declTNode,null,null,null,null);n[17]=this._declarationLView[this._declarationTContainer.index];const r=this._declarationLView[19];return null!==r&&(n[19]=r.createEmbeddedView(t)),_o(t,n,e),new AA(n)}};function vA(e,t){return 4&e.type?new wA(t,e,Ml(e,t)):null}class bA{}const CA=function(){return TA(Lt(),Ut())};let BA=(()=>{class e{}return e.__NG_ELEMENT_ID__=CA,e})();const EA=BA,_A=class extends EA{constructor(e,t,n){super(),this._lContainer=e,this._hostTNode=t,this._hostLView=n}get element(){return Ml(this._hostTNode,this._hostLView)}get injector(){return new Gn(this._hostTNode,this._hostLView)}get parentInjector(){const e=Un(this._hostTNode,this._hostLView);if(Bn(e)){const t=_n(e,this._hostLView),n=En(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=FA(this._lContainer);return null!==t&&t[e]||null}get length(){return this._lContainer.length-tt}createEmbeddedView(e,t,n){const r=e.createEmbeddedView(t||{});return this.insert(r,n),r}createComponent(e,t,n,r,i){const o=n||this.parentInjector;if(!i&&null==e.ngModule&&o){const e=o.get(bA,null);e&&(i=e)}const s=e.create(o,r,void 0,i);return this.insert(s.hostView,t),s}insert(e,t){const n=e._lView,r=n[1];if(rt(n[3])){const t=this.indexOf(e);if(-1!==t)this.detach(t);else{const t=n[3],r=new _A(t,t[6],t[3]);r.detach(r.indexOf(e))}}const i=this._adjustIndex(t),o=this._lContainer;!function(e,t,n,r){const i=tt+r,o=n.length;r>0&&(n[i-1][4]=t),r<o-tt?(t[4]=n[i],nr(n,tt+r,t)):(n.push(t),t[4]=null),t[3]=n;const s=t[17];null!==s&&n!==s&&function(e,t){const n=e[9];t[16]!==t[3][3][16]&&(e[2]=!0),null===n?e[9]=[t]:n.push(t)}(s,t);const a=t[19];null!==a&&a.insertView(e),t[2]|=128}(r,n,o,i);const s=qi(i,o),a=n[11],l=Hi(a,o[7]);return null!==l&&function(e,t,n,r,i,o){r[0]=i,r[6]=t,Wi(e,r,n,1,i,o)}(r,o[6],a,n,l,s),e.attachToViewContainerRef(),nr(xA(o),i,e),e}move(e,t){return this.insert(e,t)}indexOf(e){const t=FA(this._lContainer);return null!==t?t.indexOf(e):-1}remove(e){const t=this._adjustIndex(e,-1),n=Qi(this._lContainer,t);n&&(rr(xA(this._lContainer),t),Si(n[1],n))}detach(e){const t=this._adjustIndex(e,-1),n=Qi(this._lContainer,t);return n&&null!=rr(xA(this._lContainer),t)?new AA(n):null}_adjustIndex(e,t=0){return null==e?this.length+t:e}};function FA(e){return e[8]}function xA(e){return e[8]||(e[8]=[])}function TA(e,t){let n;const r=t[e.index];if(rt(r))n=r;else{let i;if(8&e.type)i=wt(r);else{const n=t[11];i=n.createComment("");const r=bt(e,t);Oi(n,Hi(n,r),i,function(e,t){return mt(e)?e.nextSibling(t):t.nextSibling}(n,r),!1)}t[e.index]=n=Wo(r,t,i,e),$o(t,n)}return new _A(n,e,t)}const QA={};class SA extends Il{constructor(e){super(),this.ngModule=e}resolveComponentFactory(e){const t=$e(e);return new DA(t,this.ngModule)}}function kA(e){const t=[];for(let n in e)e.hasOwnProperty(n)&&t.push({propName:e[n],templateName:n});return t}const UA=new Zn("SCHEDULER_TOKEN",{providedIn:"root",factory:()=>fi});class DA extends Ol{constructor(e,t){super(),this.componentDef=e,this.ngModule=t,this.componentType=e.type,this.selector=e.selectors.map(Ao).join(","),this.ngContentSelectors=e.ngContentSelectors?e.ngContentSelectors:[],this.isBoundToModule=!!t}get inputs(){return kA(this.componentDef.inputs)}get outputs(){return kA(this.componentDef.outputs)}create(e,t,n,r){const i=(r=r||this.ngModule)?function(e,t){return{get:(n,r,i)=>{const o=e.get(n,QA,i);return o!==QA||r===QA?o:t.get(n,r,i)}}}(e,r.injector):e,o=i.get(Kl,yt),s=i.get(jl,null),a=o.createRenderer(null,this.componentDef),l=this.componentDef.selectors[0][0]||"div",A=n?function(e,t,n){if(mt(e))return e.selectRootElement(t,n===Te.ShadowDom);let r="string"==typeof t?e.querySelector(t):t;return r.textContent="",r}(a,n,this.componentDef.encapsulation):xi(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)),c=this.componentDef.onPush?576:528,u={components:[],scheduler:fi,clean:rs,playerHandler:null,flags:0},h=Do(0,null,null,1,0,null,null,null,null,null),d=bo(null,h,u,c,null,null,o,a,s,i);let p,f;en(d);try{const e=function(e,t,n,r,i,o){const s=n[1];n[20]=e;const a=Co(s,20,2,"#host",null),l=a.mergedAttrs=t.hostAttrs;null!==l&&(As(a,l,!0),null!==e&&(yn(i,e,l),null!==a.classes&&Yi(i,e,a.classes),null!==a.styles&&Ji(i,e,a.styles)));const A=r.createRenderer(e,t),c=bo(n,Uo(t),null,t.onPush?64:16,n[20],a,r,A,null,null);return s.firstCreatePass&&(Dn(Qn(a,n),s,t.type),No(s,a),Ko(a,n.length,1)),$o(n,c),n[20]=c}(A,this.componentDef,d,o,a);if(A)if(n)yn(a,A,["ng-version",zl.full]);else{const{attrs:e,classes:t}=function(e){const t=[],n=[];let r=1,i=2;for(;r<e.length;){let o=e[r];if("string"==typeof o)2===i?""!==o&&t.push(o,e[++r]):8===i&&n.push(o);else{if(!io(i))break;i=o}r++}return{attrs:t,classes:n}}(this.componentDef.selectors[0]);e&&yn(a,A,e),t&&t.length>0&&Yi(a,A,t.join(" "))}if(f=Ct(h,et),void 0!==t){const e=f.projection=[];for(let n=0;n<this.ngContentSelectors.length;n++){const r=t[n];e.push(null!=r?Array.from(r):null)}}p=function(e,t,n,r,i){const o=n[1],s=function(e,t,n){const r=Lt();e.firstCreatePass&&(n.providersResolver&&n.providersResolver(n),Vo(e,r,t,Eo(e,t,1,null),n));const i=Pn(t,e,r.directiveStart,r);ci(i,t);const o=bt(r,t);return o&&ci(o,t),i}(o,n,t);if(r.components.push(s),e[8]=s,i&&i.forEach(e=>e(s,t)),t.contentQueries){const e=Lt();t.contentQueries(1,s,e.directiveStart)}const a=Lt();return!o.firstCreatePass||null===t.hostBindings&&null===t.hostAttrs||(ln(a.index),Mo(n[1],a,0,a.directiveStart,a.directiveEnd,t),Ro(t,s)),s}(e,this.componentDef,d,u,[Fs]),_o(h,d,null)}finally{sn()}return new OA(this.componentType,p,Ml(f,d),d,f)}}class OA extends class{}{constructor(e,t,n,r,i){super(),this.location=n,this._rootLView=r,this._tNode=i,this.instance=t,this.hostView=this.changeDetectorRef=new cA(r),this.componentType=e}get injector(){return new Gn(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(e){this.hostView.onDestroy(e)}}const LA=new Map;class IA extends bA{constructor(e,t){super(),this._parent=t,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new SA(this);const n=Ze(e),r=e[Ne]||null;r&&Ja(r),this._bootstrapComponents=mi(n.bootstrap),this._r3Injector=ms(e,t,[{provide:bA,useValue:this},{provide:Il,useValue:this.componentFactoryResolver}],ne(e)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(e)}get(e,t=_s.THROW_IF_NOT_FOUND,n=Ce.Default){return e===_s||e===bA||e===cs?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 HA extends class{}{constructor(e){super(),this.moduleType=e,null!==Ze(e)&&function(e){const t=new Set;!function e(n){const r=Ze(n,!0),i=r.id;null!==i&&(function(e,t,n){if(t&&t!==n)throw new Error(`Duplicate module registered for ${e} - ${ne(t)} vs ${ne(t.name)}`)}(i,LA.get(i),n),LA.set(i,n));const o=mi(r.imports);for(const s of o)t.has(s)||(t.add(s),e(s))}(e)}(e)}create(e){return new IA(this.moduleType,e)}}function MA(e,t,n,r){return VA(Ut(),Vt(),e,t,n,r)}function RA(e,t,n,r,i){return GA(Ut(),Vt(),e,t,n,r,i)}function NA(e,t,n,r,i,o){return jA(Ut(),Vt(),e,t,n,r,i,o)}function PA(e,t,n,r,i,o,s){return function(e,t,n,r,i,o,s,a,l){const A=t+n;return function(e,t,n,r,i,o){const s=Rs(e,t,n,r);return Rs(e,t+2,i,o)||s}(e,A,i,o,s,a)?Hs(e,A+4,l?r.call(l,i,o,s,a):r(i,o,s,a)):KA(e,A+4)}(Ut(),Vt(),e,t,n,r,i,o,s)}function KA(e,t){const n=e[t];return n===co?void 0:n}function VA(e,t,n,r,i,o){const s=t+n;return Ms(e,s,i)?Hs(e,s+1,o?r.call(o,i):r(i)):KA(e,s+1)}function GA(e,t,n,r,i,o,s){const a=t+n;return Rs(e,a,i,o)?Hs(e,a+2,s?r.call(s,i,o):r(i,o)):KA(e,a+2)}function jA(e,t,n,r,i,o,s,a){const l=t+n;return Ns(e,l,i,o,s)?Hs(e,l+3,a?r.call(a,i,o,s):r(i,o,s)):KA(e,l+3)}function qA(e,t){const n=Dt();let r;const i=e+et;n.firstCreatePass?(r=function(e,t){if(t)for(let n=t.length-1;n>=0;n--){const r=t[n];if(e===r.name)return r}throw new le("302",`The pipe '${e}' could not be found!`)}(t,n.pipeRegistry),n.data[i]=r,r.onDestroy&&(n.destroyHooks||(n.destroyHooks=[])).push(i,r.onDestroy)):r=n.data[i];const o=r.factory||(r.factory=lt(r.type)),s=Ee(zs);try{const e=xn(!1),t=o();return xn(e),function(e,t,n,r){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}(n,Ut(),i,t),t}finally{Ee(s)}}function zA(e,t,n,r){const i=e+et,o=Ut(),s=Bt(o,i);return JA(o,XA(o,i)?GA(o,Vt(),t,s.transform,n,r,s):s.transform(n,r))}function WA(e,t,n,r,i){const o=e+et,s=Ut(),a=Bt(s,o);return JA(s,XA(s,o)?jA(s,Vt(),t,a.transform,n,r,i,a):a.transform(n,r,i))}function XA(e,t){return e[1].data[t].pure}function JA(e,t){return Os.isWrapped(t)&&(t=Os.unwrap(t),e[Gt()]=co),t}function YA(e){return t=>{setTimeout(e,void 0,t)}}const $A=class extends E{constructor(e=!1){super(),this.__isAsync=e}emit(e){super.next(e)}subscribe(e,t,n){var r,i,o;let s=e,a=t||(()=>null),l=n;if(e&&"object"==typeof e){const t=e;s=null===(r=t.next)||void 0===r?void 0:r.bind(t),a=null===(i=t.error)||void 0===i?void 0:i.bind(t),l=null===(o=t.complete)||void 0===o?void 0:o.bind(t)}this.__isAsync&&(a=YA(a),s&&(s=YA(s)),l&&(l=YA(l)));const A=super.subscribe({next:s,error:a,complete:l});return e instanceof h&&e.add(A),A}};function ZA(){return this._results[Ds()]()}class ec{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=Ds(),n=ec.prototype;n[t]||(n[t]=ZA)}get changes(){return this._changes||(this._changes=new $A)}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){const n=this;n.dirty=!1;const r=er(e);(this._changesDetected=!function(e,t,n){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++){let i=e[r],o=t[r];if(n&&(i=n(i),o=n(o)),o!==i)return!1}return!0}(n._results,r,t))&&(n._results=r,n.length=r.length,n.last=r[this.length-1],n.first=r[0])}notifyOnChanges(){!this._changes||!this._changesDetected&&this._emitDistinctChangesOnly||this._changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}Symbol;class tc{constructor(e){this.queryList=e,this.matches=null}clone(){return new tc(this.queryList)}setDirty(){this.queryList.setDirty()}}class nc{constructor(e=[]){this.queries=e}createEmbeddedView(e){const t=e.queries;if(null!==t){const n=null!==e.contentQueries?e.contentQueries[0]:t.length,r=[];for(let e=0;e<n;e++){const n=t.getByIndex(e);r.push(this.queries[n.indexInDeclarationView].clone())}return new nc(r)}return null}insertView(e){this.dirtyQueriesWithMatches(e)}detachView(e){this.dirtyQueriesWithMatches(e)}dirtyQueriesWithMatches(e){for(let t=0;t<this.queries.length;t++)null!==gc(e,t).matches&&this.queries[t].setDirty()}}class rc{constructor(e,t,n=null){this.predicate=e,this.flags=t,this.read=n}}class ic{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 r=null!==t?t.length:0,i=this.getByIndex(n).embeddedTView(e,r);i&&(i.indexInDeclarationView=n,null!==t?t.push(i):t=[i])}return null!==t?new ic(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 oc{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 oc(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 r=0;r<n.length;r++){const i=n[r];this.matchTNodeWithReadOption(e,t,sc(t,i)),this.matchTNodeWithReadOption(e,t,Nn(t,e,i,!1,!1))}else n===mA?4&t.type&&this.matchTNodeWithReadOption(e,t,-1):this.matchTNodeWithReadOption(e,t,Nn(t,e,n,!1,!1))}matchTNodeWithReadOption(e,t,n){if(null!==n){const r=this.metadata.read;if(null!==r)if(r===Nl||r===BA||r===mA&&4&t.type)this.addMatch(t.index,-2);else{const n=Nn(t,e,r,!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 sc(e,t){const n=e.localNames;if(null!==n)for(let r=0;r<n.length;r+=2)if(n[r]===t)return n[r+1];return null}function ac(e,t,n,r){return-1===n?function(e,t){return 11&e.type?Ml(e,t):4&e.type?vA(e,t):null}(t,e):-2===n?function(e,t,n){return n===Nl?Ml(t,e):n===mA?vA(t,e):n===BA?TA(t,e):void 0}(e,t,r):Pn(e,e[1],n,t)}function lc(e,t,n,r){const i=t[19].queries[r];if(null===i.matches){const r=e.data,o=n.matches,s=[];for(let e=0;e<o.length;e+=2){const i=o[e];s.push(i<0?null:ac(t,r[i],o[e+1],n.metadata.read))}i.matches=s}return i.matches}function Ac(e,t,n,r){const i=e.queries.getByIndex(n),o=i.matches;if(null!==o){const s=lc(e,t,i,n);for(let e=0;e<o.length;e+=2){const n=o[e];if(n>0)r.push(s[e/2]);else{const i=o[e+1],s=t[-n];for(let e=tt;e<s.length;e++){const t=s[e];t[17]===t[3]&&Ac(t[1],t,i,r)}if(null!==s[9]){const e=s[9];for(let t=0;t<e.length;t++){const n=e[t];Ac(n[1],n,i,r)}}}}}return r}function cc(e){const t=Ut(),n=Dt(),r=Jt();Yt(r+1);const i=gc(n,r);if(e.dirty&&_t(t)===(2==(2&i.metadata.flags))){if(null===i.matches)e.reset([]);else{const o=i.crossesNgTemplate?Ac(n,t,r,[]):lc(n,t,i,r);e.reset(o,Pl),e.notifyOnChanges()}return!0}return!1}function uc(e,t,n){const r=Dt();r.firstCreatePass&&(fc(r,new rc(e,t,n),-1),2==(2&t)&&(r.staticViewQueries=!0)),pc(r,Ut(),t)}function hc(e,t,n,r){const i=Dt();if(i.firstCreatePass){const o=Lt();fc(i,new rc(t,n,r),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)}(i,e),2==(2&n)&&(i.staticContentQueries=!0)}pc(i,Ut(),n)}function dc(){return e=Ut(),t=Jt(),e[19].queries[t].queryList;var e,t}function pc(e,t,n){const r=new ec(4==(4&n));Oo(e,t,r,r.destroy),null===t[19]&&(t[19]=new nc),t[19].queries.push(new tc(r))}function fc(e,t,n){null===e.queries&&(e.queries=new ic),e.queries.track(new oc(t,n))}function gc(e,t){return e.queries.getByIndex(t)}function mc(e,t){return vA(e,t)}const yc=$n("Input",e=>({bindingPropertyName:e})),wc=$n("Output",e=>({bindingPropertyName:e})),vc=$n("HostListener",(e,t)=>({eventName:e,args:t})),bc=new Zn("Application Initializer");let Cc=(()=>{class e{constructor(e){this.appInits=e,this.resolve=Hl,this.reject=Hl,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]();if(na(t))e.push(t);else if(ra(t)){const n=new Promise((e,n)=>{t.subscribe({complete:e,error:n})});e.push(n)}}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)(fr(bc,8))},e.\u0275prov=de({token:e,factory:e.\u0275fac}),e})();const Bc=new Zn("AppId"),Ec={provide:Bc,useFactory:function(){return`${_c()}${_c()}${_c()}`},deps:[]};function _c(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Fc=new Zn("Platform Initializer"),xc=new Zn("Platform ID"),Tc=new Zn("appBootstrapListener");let Qc=(()=>{class e{log(e){console.log(e)}warn(e){console.warn(e)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=de({token:e,factory:e.\u0275fac}),e})();const Sc=new Zn("LocaleId"),kc=new Zn("DefaultCurrencyCode");class Uc{constructor(e,t){this.ngModuleFactory=e,this.componentFactories=t}}const Dc=function(e){return new HA(e)},Oc=Dc,Lc=function(e){return Promise.resolve(Dc(e))},Ic=function(e){const t=Dc(e),n=mi(Ze(e).declarations).reduce((e,t)=>{const n=$e(t);return n&&e.push(new DA(n)),e},[]);return new Uc(t,n)},Hc=Ic,Mc=function(e){return Promise.resolve(Ic(e))};let Rc=(()=>{class e{constructor(){this.compileModuleSync=Oc,this.compileModuleAsync=Lc,this.compileModuleAndAllComponentsSync=Hc,this.compileModuleAndAllComponentsAsync=Mc}clearCache(){}clearCacheFor(e){}getModuleId(e){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=de({token:e,factory:e.\u0275fac}),e})();const Nc=(()=>Promise.resolve(0))();function Pc(e){"undefined"==typeof Zone?Nc.then(()=>{e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}class Kc{constructor({enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:t=!1,shouldCoalesceRunChangeDetection:n=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new $A(!1),this.onMicrotaskEmpty=new $A(!1),this.onStable=new $A(!1),this.onError=new $A(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const r=this;r._nesting=0,r._outer=r._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(r._inner=r._inner.fork(new Zone.TaskTrackingZoneSpec)),e&&Zone.longStackTraceZoneSpec&&(r._inner=r._inner.fork(Zone.longStackTraceZoneSpec)),r.shouldCoalesceEventChangeDetection=!n&&t,r.shouldCoalesceRunChangeDetection=n,r.lastRequestAnimationFrameId=-1,r.nativeRequestAnimationFrame=function(){let e=De.requestAnimationFrame,t=De.cancelAnimationFrame;if("undefined"!=typeof Zone&&e&&t){const n=e[Zone.__symbol__("OriginalDelegate")];n&&(e=n);const r=t[Zone.__symbol__("OriginalDelegate")];r&&(t=r)}return{nativeRequestAnimationFrame:e,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,function(e){const t=()=>{!function(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(De,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,jc(e),e.isCheckStableRunning=!0,Gc(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),jc(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,r,i,o,s,a)=>{try{return qc(e),n.invokeTask(i,o,s,a)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===o.type||e.shouldCoalesceRunChangeDetection)&&t(),zc(e)}},onInvoke:(n,r,i,o,s,a,l)=>{try{return qc(e),n.invoke(i,o,s,a,l)}finally{e.shouldCoalesceRunChangeDetection&&t(),zc(e)}},onHasTask:(t,n,r,i)=>{t.hasTask(r,i),n===r&&("microTask"==i.change?(e._hasPendingMicrotasks=i.microTask,jc(e),Gc(e)):"macroTask"==i.change&&(e.hasPendingMacrotasks=i.macroTask))},onHandleError:(t,n,r,i)=>(t.handleError(r,i),e.runOutsideAngular(()=>e.onError.emit(i)),!1)})}(r)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Kc.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(Kc.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,r){const i=this._inner,o=i.scheduleEventTask("NgZoneEvent: "+r,e,Vc,Hl,Hl);try{return i.runTask(o,t,n)}finally{i.cancelTask(o)}}runGuarded(e,t,n){return this._inner.runGuarded(e,t,n)}runOutsideAngular(e){return this._outer.run(e)}}const Vc={};function Gc(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 jc(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function qc(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function zc(e){e._nesting--,Gc(e)}class Wc{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new $A,this.onMicrotaskEmpty=new $A,this.onStable=new $A,this.onError=new $A}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,r){return e.apply(t,n)}}let Xc=(()=>{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:()=>{Kc.assertNotInAngularZone(),Pc(()=>{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())Pc(()=>{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 r=-1;t&&t>0&&(r=setTimeout(()=>{this._callbacks=this._callbacks.filter(e=>e.timeoutId!==r),e(this._didWork,this.getPendingTasks())},t)),this._callbacks.push({doneCb:e,timeoutId:r,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/plugins/task-tracking" 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)(fr(Kc))},e.\u0275prov=de({token:e,factory:e.\u0275fac}),e})(),Jc=(()=>{class e{constructor(){this._applications=new Map,Zc.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 Zc.findTestabilityInTree(this,e,t)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=de({token:e,factory:e.\u0275fac}),e})();class Yc{addToWindow(e){}findTestabilityInTree(e,t,n){return null}}let $c,Zc=new Yc,eu=!0,tu=!1;const nu=new Zn("AllowMultipleToken");function ru(e,t,n=[]){const r=`Platform: ${t}`,i=new Zn(r);return(t=[])=>{let o=iu();if(!o||o.injector.get(nu,!1))if(e)e(n.concat(t).concat({provide:i,useValue:!0}));else{const e=n.concat(t).concat({provide:i,useValue:!0},{provide:hs,useValue:"platform"});!function(e){if($c&&!$c.destroyed&&!$c.injector.get(nu,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");$c=e.get(ou);const t=e.get(Fc,null);t&&t.forEach(e=>e())}(_s.create({providers:e,name:r}))}return function(e){const t=iu();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}(i)}}function iu(){return $c&&!$c.destroyed?$c:null}let ou=(()=>{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 Wc:("zone.js"===e?void 0:e)||new Kc({enableLongStackTrace:(tu=!0,eu),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}),r=[{provide:Kc,useValue:n}];return n.run(()=>{const t=_s.create({providers:r,parent:this.injector,name:e.moduleType.name}),i=e.create(t),o=i.injector.get(pi,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)}});i.onDestroy(()=>{lu(this._modules,i),e.unsubscribe()})}),function(e,t,n){try{const r=n();return na(r)?r.catch(n=>{throw t.runOutsideAngular(()=>e.handleError(n)),n}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}(o,n,()=>{const e=i.injector.get(Cc);return e.runInitializers(),e.donePromise.then(()=>(Ja(i.injector.get(Sc,ja)||ja),this._moduleDoBootstrap(i),i))})})}bootstrapModule(e,t=[]){const n=su({},t);return function(e,t,n){const r=new HA(n);return Promise.resolve(r)}(0,0,e).then(e=>this.bootstrapModuleFactory(e,n))}_moduleDoBootstrap(e){const t=e.injector.get(au);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(e=>t.bootstrap(e));else{if(!e.instance.ngDoBootstrap)throw new Error(`The module ${ne(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)(fr(_s))},e.\u0275prov=de({token:e,factory:e.\u0275fac}),e})();function su(e,t){return Array.isArray(t)?t.reduce(su,e):Object.assign(Object.assign({},e),t)}let au=(()=>{class e{constructor(e,t,n,r,i){this._zone=e,this._injector=t,this._exceptionHandler=n,this._componentFactoryResolver=r,this._initStatus=i,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 w(e=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{e.next(this._stable),e.complete()})}),s=new w(e=>{let t;this._zone.runOutsideAngular(()=>{t=this._zone.onStable.subscribe(()=>{Kc.assertNotInAngularZone(),Pc(()=>{this._stable||this._zone.hasPendingMacrotasks||this._zone.hasPendingMicrotasks||(this._stable=!0,e.next(!0))})})});const n=this._zone.onUnstable.subscribe(()=>{Kc.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{e.next(!1)}))});return()=>{t.unsubscribe(),n.unsubscribe()}});this.isStable=j(o,s.pipe(Z()))}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 Ol?e:this._componentFactoryResolver.resolveComponentFactory(e),this.componentTypes.push(n.componentType);const r=n.isBoundToModule?void 0:this._injector.get(bA),i=n.create(_s.NULL,[],t||n.selector,r),o=i.location.nativeElement,s=i.injector.get(Xc,null),a=s&&i.injector.get(Jc);return s&&a&&a.registerApplication(o,s),i.onDestroy(()=>{this.detachView(i.hostView),lu(this.components,i),a&&a.unregisterApplication(o)}),this._loadComponent(i),i}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;lu(this._views,t),t.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(Tc,[]).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)(fr(Kc),fr(_s),fr(pi),fr(Il),fr(Cc))},e.\u0275prov=de({token:e,factory:e.\u0275fac}),e})();function lu(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const Au=ru(null,"core",[{provide:xc,useValue:"unknown"},{provide:ou,deps:[_s]},{provide:Jc,deps:[]},{provide:Qc,deps:[]}]),cu=[{provide:au,useClass:au,deps:[Kc,_s,pi,Il,Cc]},{provide:UA,deps:[Kc],useFactory:function(e){let t=[];return e.onStable.subscribe(()=>{for(;t.length;)t.pop()()}),function(e){t.push(e)}}},{provide:Cc,useClass:Cc,deps:[[new vr,bc]]},{provide:Rc,useClass:Rc,deps:[]},Ec,{provide:oA,useFactory:function(){return pA},deps:[]},{provide:aA,useFactory:function(){return fA},deps:[]},{provide:Sc,useFactory:function(e){return Ja(e=e||"undefined"!=typeof $localize&&$localize.locale||ja),e},deps:[[new wr(Sc),new vr,new br]]},{provide:kc,useValue:"USD"}];let uu=(()=>{class e{constructor(e){}}return e.\u0275fac=function(t){return new(t||e)(fr(au))},e.\u0275mod=We({type:e}),e.\u0275inj=pe({providers:cu}),e})(),hu=null;function du(){return hu}const pu=new Zn("DocumentToken");var fu=(()=>((fu=fu||{})[fu.Decimal=0]="Decimal",fu[fu.Percent=1]="Percent",fu[fu.Currency=2]="Currency",fu[fu.Scientific=3]="Scientific",fu))(),gu=(()=>((gu=gu||{})[gu.Zero=0]="Zero",gu[gu.One=1]="One",gu[gu.Two=2]="Two",gu[gu.Few=3]="Few",gu[gu.Many=4]="Many",gu[gu.Other=5]="Other",gu))(),mu=(()=>((mu=mu||{})[mu.Decimal=0]="Decimal",mu[mu.Group=1]="Group",mu[mu.List=2]="List",mu[mu.PercentSign=3]="PercentSign",mu[mu.PlusSign=4]="PlusSign",mu[mu.MinusSign=5]="MinusSign",mu[mu.Exponential=6]="Exponential",mu[mu.SuperscriptingExponent=7]="SuperscriptingExponent",mu[mu.PerMille=8]="PerMille",mu[mu[1/0]=9]="Infinity",mu[mu.NaN=10]="NaN",mu[mu.TimeSeparator=11]="TimeSeparator",mu[mu.CurrencyDecimal=12]="CurrencyDecimal",mu[mu.CurrencyGroup=13]="CurrencyGroup",mu))();function yu(e,t){const n=Ka(e),r=n[Ga.NumberSymbols][t];if(void 0===r){if(t===mu.CurrencyDecimal)return n[Ga.NumberSymbols][mu.Decimal];if(t===mu.CurrencyGroup)return n[Ga.NumberSymbols][mu.Group]}return r}const wu=/^(\d+)?\.((\d+)(-(\d+))?)?$/,vu=".",bu="0";function Cu(e){const t=parseInt(e);if(isNaN(t))throw new Error("Invalid integer literal when parsing "+e);return t}class Bu{}let Eu=(()=>{class e extends Bu{constructor(e){super(),this.locale=e}getPluralCategory(e,t){switch(function(e){return Ka(e)[Ga.PluralCase]}(t||this.locale)(e)){case gu.Zero:return"zero";case gu.One:return"one";case gu.Two:return"two";case gu.Few:return"few";case gu.Many:return"many";default:return"other"}}}return e.\u0275fac=function(t){return new(t||e)(fr(Sc))},e.\u0275prov=de({token:e,factory:e.\u0275fac}),e})();function _u(e,t){t=encodeURIComponent(t);for(const n of e.split(";")){const e=n.indexOf("="),[r,i]=-1==e?[n,""]:[n.slice(0,e),n.slice(e+1)];if(r.trim()===t)return decodeURIComponent(i)}return null}let Fu=(()=>{class e{constructor(e,t,n,r){this._iterableDiffers=e,this._keyValueDiffers=t,this._ngEl=n,this._renderer=r,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&&(Ls(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 ${ne(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)(zs(oA),zs(aA),zs(Nl),zs(Vl))},e.\u0275dir=Je({type:e,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),e})();class xu{constructor(e,t,n,r){this.$implicit=e,this.ngForOf=t,this.index=n,this.count=r}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 Tu=(()=>{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,r)=>{if(null==e.previousIndex){const n=this._viewContainer.createEmbeddedView(this._template,new xu(null,this._ngForOf,-1,-1),null===r?void 0:r),i=new Qu(e,n);t.push(i)}else if(null==r)this._viewContainer.remove(null===n?void 0:n);else if(null!==n){const i=this._viewContainer.get(n);this._viewContainer.move(i,r);const o=new Qu(e,i);t.push(o)}});for(let n=0;n<t.length;n++)this._perViewChange(t[n].view,t[n].record);for(let n=0,r=this._viewContainer.length;n<r;n++){const e=this._viewContainer.get(n);e.context.index=n,e.context.count=r,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)(zs(BA),zs(mA),zs(oA))},e.\u0275dir=Je({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),e})();class Qu{constructor(e,t){this.record=e,this.view=t}}let Su=(()=>{class e{constructor(e,t){this._viewContainer=e,this._context=new ku,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){Uu("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){Uu("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)(zs(BA),zs(mA))},e.\u0275dir=Je({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),e})();class ku{constructor(){this.$implicit=null,this.ngIf=null}}function Uu(e,t){if(t&&!t.createEmbeddedView)throw new Error(`${e} must be a TemplateRef, but received '${ne(t)}'.`)}class Du{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 Ou=(()=>{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=Je({type:e,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"}}),e})(),Lu=(()=>{class e{constructor(e,t,n){this.ngSwitch=n,n._addCase(),this._view=new Du(e,t)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return e.\u0275fac=function(t){return new(t||e)(zs(BA),zs(mA),zs(Ou,9))},e.\u0275dir=Je({type:e,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),e})(),Iu=(()=>{class e{constructor(e,t,n){n._addDefault(new Du(e,t))}}return e.\u0275fac=function(t){return new(t||e)(zs(BA),zs(mA),zs(Ou,9))},e.\u0275dir=Je({type:e,selectors:[["","ngSwitchDefault",""]]}),e})(),Hu=(()=>{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,r]=e.split(".");null!=(t=null!=t&&r?`${t}${r}`: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)(zs(Nl),zs(aA),zs(Vl))},e.\u0275dir=Je({type:e,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),e})(),Mu=(()=>{class e{constructor(e){this._viewContainerRef=e,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}ngOnChanges(e){if(e.ngTemplateOutlet){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&&e.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return e.\u0275fac=function(t){return new(t||e)(zs(BA))},e.\u0275dir=Je({type:e,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[ct]}),e})();function Ru(e,t){return Error(`InvalidPipeArgument: '${t}' for pipe '${ne(e)}'`)}let Nu=(()=>{class e{transform(t){if(null==t)return null;if("string"!=typeof t)throw Ru(e,t);return t.toLowerCase()}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=Ye({name:"lowercase",type:e,pure:!0}),e})(),Pu=(()=>{class e{constructor(e){this._locale=e}transform(t,n,r){if(!function(e){return!(null==e||""===e||e!=e)}(t))return null;r=r||this._locale;try{return function(e,t,n){return function(e,t,n,r,i,o,s=!1){let a="",l=!1;if(isFinite(e)){let A=function(e){let t,n,r,i,o,s=Math.abs(e)+"",a=0;for((n=s.indexOf(vu))>-1&&(s=s.replace(vu,"")),(r=s.search(/e/i))>0?(n<0&&(n=r),n+=+s.slice(r+1),s=s.substring(0,r)):n<0&&(n=s.length),r=0;s.charAt(r)===bu;r++);if(r===(o=s.length))t=[0],n=1;else{for(o--;s.charAt(o)===bu;)o--;for(n-=r,t=[],i=0;r<=o;r++,i++)t[i]=Number(s.charAt(r))}return n>22&&(t=t.splice(0,21),a=n-1,n=1),{digits:t,exponent:a,integerLen:n}}(e);s&&(A=function(e){if(0===e.digits[0])return e;const t=e.digits.length-e.integerLen;return e.exponent?e.exponent+=2:(0===t?e.digits.push(0,0):1===t&&e.digits.push(0),e.integerLen+=2),e}(A));let c=t.minInt,u=t.minFrac,h=t.maxFrac;if(o){const e=o.match(wu);if(null===e)throw new Error(`${o} is not a valid digit info`);const t=e[1],n=e[3],r=e[5];null!=t&&(c=Cu(t)),null!=n&&(u=Cu(n)),null!=r?h=Cu(r):null!=n&&u>h&&(h=u)}!function(e,t,n){if(t>n)throw new Error(`The minimum number of digits after fraction (${t}) is higher than the maximum (${n}).`);let r=e.digits,i=r.length-e.integerLen;const o=Math.min(Math.max(t,i),n);let s=o+e.integerLen,a=r[s];if(s>0){r.splice(Math.max(e.integerLen,s));for(let e=s;e<r.length;e++)r[e]=0}else{i=Math.max(0,i),e.integerLen=1,r.length=Math.max(1,s=o+1),r[0]=0;for(let e=1;e<s;e++)r[e]=0}if(a>=5)if(s-1<0){for(let t=0;t>s;t--)r.unshift(0),e.integerLen++;r.unshift(1),e.integerLen++}else r[s-1]++;for(;i<Math.max(0,o);i++)r.push(0);let l=0!==o;const A=t+e.integerLen,c=r.reduceRight(function(e,t,n,r){return r[n]=(t+=e)<10?t:t-10,l&&(0===r[n]&&n>=A?r.pop():l=!1),t>=10?1:0},0);c&&(r.unshift(c),e.integerLen++)}(A,u,h);let d=A.digits,p=A.integerLen;const f=A.exponent;let g=[];for(l=d.every(e=>!e);p<c;p++)d.unshift(0);for(;p<0;p++)d.unshift(0);p>0?g=d.splice(p,d.length):(g=d,d=[0]);const m=[];for(d.length>=t.lgSize&&m.unshift(d.splice(-t.lgSize,d.length).join(""));d.length>t.gSize;)m.unshift(d.splice(-t.gSize,d.length).join(""));d.length&&m.unshift(d.join("")),a=m.join(yu(n,r)),g.length&&(a+=yu(n,i)+g.join("")),f&&(a+=yu(n,mu.Exponential)+"+"+f)}else a=yu(n,mu.Infinity);return a=e<0&&!l?t.negPre+a+t.negSuf:t.posPre+a+t.posSuf,a}(e,function(e,t="-"){const n={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},r=e.split(";"),i=r[0],o=r[1],s=-1!==i.indexOf(vu)?i.split(vu):[i.substring(0,i.lastIndexOf(bu)+1),i.substring(i.lastIndexOf(bu)+1)],a=s[0],l=s[1]||"";n.posPre=a.substr(0,a.indexOf("#"));for(let c=0;c<l.length;c++){const e=l.charAt(c);e===bu?n.minFrac=n.maxFrac=c+1:"#"===e?n.maxFrac=c+1:n.posSuf+=e}const A=a.split(",");if(n.gSize=A[1]?A[1].length:0,n.lgSize=A[2]||A[1]?(A[2]||A[1]).length:0,o){const e=i.length-n.posPre.length-n.posSuf.length,t=o.indexOf("#");n.negPre=o.substr(0,t).replace(/'/g,""),n.negSuf=o.substr(t+e).replace(/'/g,"")}else n.negPre=t+n.posPre,n.negSuf=n.posSuf;return n}(function(e,t){return Ka(e)[Ga.NumberFormats][t]}(t,fu.Decimal),yu(t,mu.MinusSign)),t,mu.Group,mu.Decimal,n)}(function(e){if("string"==typeof e&&!isNaN(Number(e)-parseFloat(e)))return Number(e);if("number"!=typeof e)throw new Error(`${e} is not a number`);return e}(t),r,n)}catch(i){throw Ru(e,i.message)}}}return e.\u0275fac=function(t){return new(t||e)(zs(Sc,16))},e.\u0275pipe=Ye({name:"number",type:e,pure:!0}),e})(),Ku=(()=>{class e{transform(t,n,r){if(null==t)return null;if(!this.supports(t))throw Ru(e,t);return t.slice(n,r)}supports(e){return"string"==typeof e||Array.isArray(e)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=Ye({name:"slice",type:e,pure:!1}),e})(),Vu=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=We({type:e}),e.\u0275inj=pe({providers:[{provide:Bu,useClass:Eu}]}),e})();class Gu{}class ju extends class extends class{}{constructor(){super(...arguments),this.supportsDOMEvents=!0}}{static makeCurrent(){var e;e=new ju,hu||(hu=e)}onAndCancel(e,t,n){return e.addEventListener(t,n,!1),()=>{e.removeEventListener(t,n,!1)}}dispatchEvent(e,t){e.dispatchEvent(t)}remove(e){e.parentNode&&e.parentNode.removeChild(e)}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}getBaseHref(e){const t=(zu=zu||document.querySelector("base"),zu?zu.getAttribute("href"):null);return null==t?null:function(e){qu=qu||document.createElement("a"),qu.setAttribute("href",e);const t=qu.pathname;return"/"===t.charAt(0)?t:`/${t}`}(t)}resetBaseElement(){zu=null}getUserAgent(){return window.navigator.userAgent}getCookie(e){return _u(document.cookie,e)}}let qu,zu=null;const Wu=new Zn("TRANSITION_ID"),Xu=[{provide:bc,useFactory:function(e,t,n){return()=>{n.get(Cc).donePromise.then(()=>{const n=du();Array.prototype.slice.apply(t.querySelectorAll("style[ng-transition]")).filter(t=>t.getAttribute("ng-transition")===e).forEach(e=>n.remove(e))})}},deps:[Wu,pu,_s],multi:!0}];class Ju{static init(){var e;e=new Ju,Zc=e}addToWindow(e){De.getAngularTestability=(t,n=!0)=>{const r=e.findTestabilityInTree(t,n);if(null==r)throw new Error("Could not find testability for element.");return r},De.getAllAngularTestabilities=()=>e.getAllTestabilities(),De.getAllAngularRootElements=()=>e.getAllRootElements(),De.frameworkStabilizers||(De.frameworkStabilizers=[]),De.frameworkStabilizers.push(e=>{const t=De.getAllAngularTestabilities();let n=t.length,r=!1;const i=function(t){r=r||t,n--,0==n&&e(r)};t.forEach(function(e){e.whenStable(i)})})}findTestabilityInTree(e,t,n){if(null==t)return null;const r=e.getTestability(t);return null!=r?r:n?du().isShadowRoot(t)?this.findTestabilityInTree(e,t.host,!0):this.findTestabilityInTree(e,t.parentElement,!0):null}}let Yu=(()=>{class e{build(){return new XMLHttpRequest}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=de({token:e,factory:e.\u0275fac}),e})();const $u=new Zn("EventManagerPlugins");let Zu=(()=>{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 r=0;r<n.length;r++){const t=n[r];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)(fr($u),fr(Kc))},e.\u0275prov=de({token:e,factory:e.\u0275fac}),e})();class eh{constructor(e){this._doc=e}addGlobalEventListener(e,t,n){const r=du().getGlobalEventTarget(this._doc,e);if(!r)throw new Error(`Unsupported event target ${r} for event ${t}`);return this.addEventListener(r,t,n)}}let th=(()=>{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=de({token:e,factory:e.\u0275fac}),e})(),nh=(()=>{class e extends th{constructor(e){super(),this._doc=e,this._hostNodes=new Map,this._hostNodes.set(e.head,[])}_addStylesToHost(e,t,n){e.forEach(e=>{const r=this._doc.createElement("style");r.textContent=e,n.push(t.appendChild(r))})}addHost(e){const t=[];this._addStylesToHost(this._stylesSet,e,t),this._hostNodes.set(e,t)}removeHost(e){const t=this._hostNodes.get(e);t&&t.forEach(rh),this._hostNodes.delete(e)}onStylesAdded(e){this._hostNodes.forEach((t,n)=>{this._addStylesToHost(e,n,t)})}ngOnDestroy(){this._hostNodes.forEach(e=>e.forEach(rh))}}return e.\u0275fac=function(t){return new(t||e)(fr(pu))},e.\u0275prov=de({token:e,factory:e.\u0275fac}),e})();function rh(e){du().remove(e)}const ih={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/"},oh=/%COMP%/g;function sh(e,t,n){for(let r=0;r<t.length;r++){let i=t[r];Array.isArray(i)?sh(e,i,n):(i=i.replace(oh,e),n.push(i))}return n}function ah(e){return t=>{if("__ngUnwrap__"===t)return e;!1===e(t)&&(t.preventDefault(),t.returnValue=!1)}}let lh=(()=>{class e{constructor(e,t,n){this.eventManager=e,this.sharedStylesHost=t,this.appId=n,this.rendererByCompId=new Map,this.defaultRenderer=new Ah(e)}createRenderer(e,t){if(!e||!t)return this.defaultRenderer;switch(t.encapsulation){case Te.Emulated:{let n=this.rendererByCompId.get(t.id);return n||(n=new ch(this.eventManager,this.sharedStylesHost,t,this.appId),this.rendererByCompId.set(t.id,n)),n.applyToHost(e),n}case 1:case Te.ShadowDom:return new uh(this.eventManager,this.sharedStylesHost,e,t);default:if(!this.rendererByCompId.has(t.id)){const e=sh(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)(fr(Zu),fr(nh),fr(Bc))},e.\u0275prov=de({token:e,factory:e.\u0275fac}),e})();class Ah{constructor(e){this.eventManager=e,this.data=Object.create(null)}destroy(){}createElement(e,t){return t?document.createElementNS(ih[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,r){if(r){t=r+":"+t;const i=ih[r];i?e.setAttributeNS(i,t,n):e.setAttribute(t,n)}else e.setAttribute(t,n)}removeAttribute(e,t,n){if(n){const r=ih[n];r?e.removeAttributeNS(r,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,r){r&(yi.DashCase|yi.Important)?e.style.setProperty(t,n,r&yi.Important?"important":""):e.style[t]=n}removeStyle(e,t,n){n&yi.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,ah(n)):this.eventManager.addEventListener(e,t,ah(n))}}class ch extends Ah{constructor(e,t,n,r){super(e),this.component=n;const i=sh(r+"-"+n.id,n.styles,[]);t.addStyles(i),this.contentAttr="_ngcontent-%COMP%".replace(oh,r+"-"+n.id),this.hostAttr="_nghost-%COMP%".replace(oh,r+"-"+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 uh extends Ah{constructor(e,t,n,r){super(e),this.sharedStylesHost=t,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const i=sh(r.id,r.styles,[]);for(let o=0;o<i.length;o++){const e=document.createElement("style");e.textContent=i[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 hh=(()=>{class e extends eh{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)(fr(pu))},e.\u0275prov=de({token:e,factory:e.\u0275fac}),e})();const dh=["alt","control","meta","shift"],ph={"\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"},fh={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 mh=(()=>{class e extends eh{constructor(e){super(e)}supports(t){return null!=e.parseEventName(t)}addEventListener(t,n,r){const i=e.parseEventName(n),o=e.eventCallback(i.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>du().onAndCancel(t,i.domEventName,o))}static parseEventName(t){const n=t.toLowerCase().split("."),r=n.shift();if(0===n.length||"keydown"!==r&&"keyup"!==r)return null;const i=e._normalizeKey(n.pop());let o="";if(dh.forEach(e=>{const t=n.indexOf(e);t>-1&&(n.splice(t,1),o+=e+".")}),o+=i,0!=n.length||0===i.length)return null;const s={};return s.domEventName=r,s.fullKey=o,s}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&&fh.hasOwnProperty(t)&&(t=fh[t]))}return ph[t]||t}(e);return n=n.toLowerCase()," "===n?n="space":"."===n&&(n="dot"),dh.forEach(r=>{r!=n&&(0,gh[r])(e)&&(t+=r+".")}),t+=n,t}static eventCallback(t,n,r){return i=>{e.getEventFullKey(i)===t&&r.runGuarded(()=>n(i))}}static _normalizeKey(e){switch(e){case"esc":return"escape";default:return e}}}return e.\u0275fac=function(t){return new(t||e)(fr(pu))},e.\u0275prov=de({token:e,factory:e.\u0275fac}),e})(),yh=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=de({factory:function(){return fr(vh)},token:e,providedIn:"root"}),e})();function wh(e){return new vh(e.get(pu))}let vh=(()=>{class e extends yh{constructor(e){super(),this._doc=e}sanitize(e,t){if(null==t)return null;switch(e){case si.NONE:return t;case si.HTML:return Dr(t,"HTML")?Ur(t):ii(this._doc,String(t)).toString();case si.STYLE:return Dr(t,"Style")?Ur(t):t;case si.SCRIPT:if(Dr(t,"Script"))return Ur(t);throw new Error("unsafe value used in a script context");case si.URL:return Or(t),Dr(t,"URL")?Ur(t):Nr(String(t));case si.RESOURCE_URL:if(Dr(t,"ResourceURL"))return Ur(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 xr(e)}bypassSecurityTrustStyle(e){return new Tr(e)}bypassSecurityTrustScript(e){return new Qr(e)}bypassSecurityTrustUrl(e){return new Sr(e)}bypassSecurityTrustResourceUrl(e){return new kr(e)}}return e.\u0275fac=function(t){return new(t||e)(fr(pu))},e.\u0275prov=de({factory:function(){return wh(fr(cs))},token:e,providedIn:"root"}),e})();const bh=ru(Au,"browser",[{provide:xc,useValue:"browser"},{provide:Fc,useValue:function(){ju.makeCurrent(),Ju.init()},multi:!0},{provide:pu,useFactory:function(){return function(e){ft=e}(document),document},deps:[]}]),Ch=[[],{provide:hs,useValue:"root"},{provide:pi,useFactory:function(){return new pi},deps:[]},{provide:$u,useClass:hh,multi:!0,deps:[pu,Kc,xc]},{provide:$u,useClass:mh,multi:!0,deps:[pu]},[],{provide:lh,useClass:lh,deps:[Zu,nh,Bc]},{provide:Kl,useExisting:lh},{provide:th,useExisting:nh},{provide:nh,useClass:nh,deps:[pu]},{provide:Xc,useClass:Xc,deps:[Kc]},{provide:Zu,useClass:Zu,deps:[$u,Kc]},{provide:Gu,useClass:Yu,deps:[]},[]];let Bh=(()=>{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:Bc,useValue:t.appId},{provide:Wu,useExisting:Bc},Xu]}}}return e.\u0275fac=function(t){return new(t||e)(fr(e,12))},e.\u0275mod=We({type:e}),e.\u0275inj=pe({providers:Ch,imports:[Vu,uu]}),e})();function Eh(e,t){return new w(n=>{const r=e.length;if(0===r)return void n.complete();const i=new Array(r);let o=0,s=0;for(let a=0;a<r;a++){const l=I(e[a]);let A=!1;n.add(l.subscribe({next:e=>{A||(A=!0,s++),i[a]=e},error:e=>n.error(e),complete:()=>{o++,o!==r&&A||(s===r&&n.next(t?t.reduce((e,t,n)=>(e[t]=i[n],e),{}):i),n.complete())}}))}})}"undefined"!=typeof window&&window;let _h=(()=>{class e{constructor(e,t){this._renderer=e,this._elementRef=t,this.onChange=e=>{},this.onTouched=()=>{}}setProperty(e,t){this._renderer.setProperty(this._elementRef.nativeElement,e,t)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}}return e.\u0275fac=function(t){return new(t||e)(zs(Vl),zs(Nl))},e.\u0275dir=Je({type:e}),e})(),Fh=(()=>{class e extends _h{}return e.\u0275fac=function(){let t;return function(n){return(t||(t=jn(e)))(n||e)}}(),e.\u0275dir=Je({type:e,features:[xs]}),e})();const xh=new Zn("NgValueAccessor"),Th={provide:xh,useExisting:oe(()=>Qh),multi:!0};let Qh=(()=>{class e extends Fh{writeValue(e){this.setProperty("checked",e)}}return e.\u0275fac=function(){let t;return function(n){return(t||(t=jn(e)))(n||e)}}(),e.\u0275dir=Je({type:e,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(e,t){1&e&&ia("change",function(e){return t.onChange(e.target.checked)})("blur",function(){return t.onTouched()})},features:[Dl([Th]),xs]}),e})();const Sh={provide:xh,useExisting:oe(()=>Uh),multi:!0},kh=new Zn("CompositionEventMode");let Uh=(()=>{class e extends _h{constructor(e,t,n){super(e,t),this._compositionMode=n,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function(){const e=du()?du().getUserAgent():"";return/android (\d+)/.test(e.toLowerCase())}())}writeValue(e){this.setProperty("value",null==e?"":e)}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}}return e.\u0275fac=function(t){return new(t||e)(zs(Vl),zs(Nl),zs(kh,8))},e.\u0275dir=Je({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&&ia("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:[Dl([Sh]),xs]}),e})();const Dh=new Zn("NgValidators"),Oh=new Zn("NgAsyncValidators");function Lh(e){return null!=e}function Ih(e){const t=na(e)?I(e):e;return ra(t),t}function Hh(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 Mh(e,t){return t.map(t=>t(e))}function Rh(e){return e.map(e=>function(e){return!e.validate}(e)?e:t=>e.validate(t))}function Nh(e){return null!=e?function(e){if(!e)return null;const t=e.filter(Lh);return 0==t.length?null:function(e){return Hh(Mh(e,t))}}(Rh(e)):null}function Ph(e){return null!=e?function(e){if(!e)return null;const t=e.filter(Lh);return 0==t.length?null:function(e){return function(...e){if(1===e.length){const t=e[0];if(A(t))return Eh(t,null);if(c(t)&&Object.getPrototypeOf(t)===Object.prototype){const e=Object.keys(t);return Eh(e.map(e=>t[e]),e)}}if("function"==typeof e[e.length-1]){const t=e.pop();return Eh(e=1===e.length&&A(e[0])?e[0]:e,null).pipe(x(e=>t(...e)))}return Eh(e,null)}(Mh(e,t).map(Ih)).pipe(x(Hh))}}(Rh(e)):null}function Kh(e,t){return null===e?[t]:Array.isArray(e)?[...e,t]:[e,t]}let Vh=(()=>{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=Nh(this._rawValidators)}_setAsyncValidators(e){this._rawAsyncValidators=e||[],this._composedAsyncValidatorFn=Ph(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=Je({type:e}),e})(),Gh=(()=>{class e extends Vh{get formDirective(){return null}get path(){return null}}return e.\u0275fac=function(){let t;return function(n){return(t||(t=jn(e)))(n||e)}}(),e.\u0275dir=Je({type:e,features:[xs]}),e})();class jh extends Vh{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class qh{constructor(e){this._cd=e}is(e){var t,n,r;return"submitted"===e?!!(null===(t=this._cd)||void 0===t?void 0:t.submitted):!!(null===(r=null===(n=this._cd)||void 0===n?void 0:n.control)||void 0===r?void 0:r[e])}}let zh=(()=>{class e extends qh{constructor(e){super(e)}}return e.\u0275fac=function(t){return new(t||e)(zs(jh,2))},e.\u0275dir=Je({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,t){2&e&&ba("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:[xs]}),e})(),Wh=(()=>{class e extends qh{constructor(e){super(e)}}return e.\u0275fac=function(t){return new(t||e)(zs(Gh,10))},e.\u0275dir=Je({type:e,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(e,t){2&e&&ba("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"))("ng-submitted",t.is("submitted"))},features:[xs]}),e})();function Xh(e,t){Yh(e,t),t.valueAccessor.writeValue(e.value),function(e,t){t.valueAccessor.registerOnChange(n=>{e._pendingValue=n,e._pendingChange=!0,e._pendingDirty=!0,"change"===e.updateOn&&$h(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&&$h(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 Jh(e,t){e.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(t)})}function Yh(e,t){const n=function(e){return e._rawValidators}(e);null!==t.validator?e.setValidators(Kh(n,t.validator)):"function"==typeof n&&e.setValidators([n]);const r=function(e){return e._rawAsyncValidators}(e);null!==t.asyncValidator?e.setAsyncValidators(Kh(r,t.asyncValidator)):"function"==typeof r&&e.setAsyncValidators([r]);const i=()=>e.updateValueAndValidity();Jh(t._rawValidators,i),Jh(t._rawAsyncValidators,i)}function $h(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function Zh(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const ed="VALID",td="INVALID",nd="PENDING",rd="DISABLED";function id(e){return(ld(e)?e.validators:e)||null}function od(e){return Array.isArray(e)?Nh(e):e||null}function sd(e,t){return(ld(t)?t.asyncValidators:e)||null}function ad(e){return Array.isArray(e)?Ph(e):e||null}function ld(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}class Ad{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=od(this._rawValidators),this._composedAsyncValidatorFn=ad(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 this.status===ed}get invalid(){return this.status===td}get pending(){return this.status==nd}get disabled(){return this.status===rd}get enabled(){return this.status!==rd}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=od(e)}setAsyncValidators(e){this._rawAsyncValidators=e,this._composedAsyncValidatorFn=ad(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=nd,!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=rd,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=ed,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(),this.status!==ed&&this.status!==nd||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()?rd:ed}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(e){if(this.asyncValidator){this.status=nd,this._hasOwnPendingAsyncValidator=!0;const t=Ih(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 r=e;return t.forEach(e=>{r=r instanceof ud?r.controls.hasOwnProperty(e)?r.controls[e]:null:r instanceof hd&&r.at(e)||null}),r}(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 $A,this.statusChanges=new $A}_calculateStatus(){return this._allControlsDisabled()?rd:this.errors?td:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(nd)?nd:this._anyControlsHaveStatus(td)?td:ed}_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){ld(e)&&null!=e.updateOn&&(this._updateOn=e.updateOn)}_parentMarkedDirty(e){return!e&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class cd extends Ad{constructor(e=null,t,n){super(id(t),sd(n,t)),this._onChange=[],this._applyFormState(e),this._setUpdateStrategy(t),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}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){Zh(this._onChange,e)}registerOnDisabledChange(e){this._onDisabledChange.push(e)}_unregisterOnDisabledChange(e){Zh(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 ud extends Ad{constructor(e,t,n){super(id(t),sd(n,t)),this.controls=e,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}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,n={}){this.registerControl(e,t),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}removeControl(e,t={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}setControl(e,t,n={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],t&&this.registerControl(e,t),this.updateValueAndValidity({emitEvent:n.emitEvent}),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,r)=>{n.reset(e[r],{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 cd?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,r)=>{n=t(n,e,r)}),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 hd extends Ad{constructor(e,t,n){super(id(t),sd(n,t)),this.controls=e,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(e){return this.controls[e]}push(e,t={}){this.controls.push(e),this._registerControl(e),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}insert(e,t,n={}){this.controls.splice(e,0,t),this._registerControl(t),this.updateValueAndValidity({emitEvent:n.emitEvent})}removeAt(e,t={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),this.controls.splice(e,1),this.updateValueAndValidity({emitEvent:t.emitEvent})}setControl(e,t,n={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),this.controls.splice(e,1),t&&(this.controls.splice(e,0,t),this._registerControl(t)),this.updateValueAndValidity({emitEvent:n.emitEvent}),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,r)=>{n.reset(e[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}getRawValue(){return this.controls.map(e=>e instanceof cd?e.value:e.getRawValue())}clear(e={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:e.emitEvent}))}_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 dd={provide:Gh,useExisting:oe(()=>fd)},pd=(()=>Promise.resolve(null))();let fd=(()=>{class e extends Gh{constructor(e,t){super(),this.submitted=!1,this._directives=[],this.ngSubmit=new $A,this.form=new ud({},Nh(e),Ph(t))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){pd.then(()=>{const t=this._findContainer(e.path);e.control=t.registerControl(e.name,e.control),Xh(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.push(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){pd.then(()=>{const t=this._findContainer(e.path);t&&t.removeControl(e.name),Zh(this._directives,e)})}addFormGroup(e){pd.then(()=>{const t=this._findContainer(e.path),n=new ud({});(function(e,t){Yh(e,t)})(n,e),t.registerControl(e.name,n),n.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){pd.then(()=>{const t=this._findContainer(e.path);t&&t.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,t){pd.then(()=>{this.form.get(e.path).setValue(t)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submitted=!0,t=this._directives,this.form._syncPendingControls(),t.forEach(e=>{const t=e.control;"submit"===t.updateOn&&t._pendingChange&&(e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1)}),this.ngSubmit.emit(e),!1;var t}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)(zs(Dh,10),zs(Oh,10))},e.\u0275dir=Je({type:e,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(e,t){1&e&&ia("submit",function(e){return t.onSubmit(e)})("reset",function(){return t.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Dl([dd]),xs]}),e})();const gd={provide:jh,useExisting:oe(()=>yd)},md=(()=>Promise.resolve(null))();let yd=(()=>{class e extends jh{constructor(e,t,n,r){super(),this.control=new cd,this._registered=!1,this.update=new $A,this._parent=e,this._setValidators(t),this._setAsyncValidators(n),this.valueAccessor=function(e,t){if(!t)return null;let n,r,i;return Array.isArray(t),t.forEach(e=>{e.constructor===Uh?n=e:Object.getPrototypeOf(e.constructor)===Fh?r=e:i=e}),i||r||n||null}(0,r)}ngOnChanges(e){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in e&&this._updateDisabled(e),function(e,t){if(!e.hasOwnProperty("model"))return!1;const n=e.model;return!!n.isFirstChange()||!Object.is(t,n.currentValue)}(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._parent?[...this._parent.path,this.name]:[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(){Xh(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){md.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1})})}_updateDisabled(e){const t=e.isDisabled.currentValue,n=""===t||t&&"false"!==t;md.then(()=>{n&&!this.control.disabled?this.control.disable():!n&&this.control.disabled&&this.control.enable()})}}return e.\u0275fac=function(t){return new(t||e)(zs(Gh,9),zs(Dh,10),zs(Oh,10),zs(xh,10))},e.\u0275dir=Je({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:[Dl([gd]),xs,ct]}),e})(),wd=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Je({type:e,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),e})();const vd={provide:xh,useExisting:oe(()=>Bd),multi:!0};let bd=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=We({type:e}),e.\u0275inj=pe({}),e})(),Cd=(()=>{class e{constructor(){this._accessors=[]}add(e,t){this._accessors.push([e,t])}remove(e){for(let t=this._accessors.length-1;t>=0;--t)if(this._accessors[t][1]===e)return void this._accessors.splice(t,1)}select(e){this._accessors.forEach(t=>{this._isSameGroup(t,e)&&t[1]!==e&&t[1].fireUncheck(e.value)})}_isSameGroup(e,t){return!!e[0].control&&e[0]._parent===t._control._parent&&e[1].name===t.name}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=de({factory:function(){return new e},token:e,providedIn:bd}),e})(),Bd=(()=>{class e extends Fh{constructor(e,t,n,r){super(e,t),this._registry=n,this._injector=r,this.onChange=()=>{}}ngOnInit(){this._control=this._injector.get(jh),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(e){this._state=e===this.value,this.setProperty("checked",this._state)}registerOnChange(e){this._fn=e,this.onChange=()=>{e(this.value),this._registry.select(this)}}fireUncheck(e){this.writeValue(e)}_checkName(){!this.name&&this.formControlName&&(this.name=this.formControlName)}}return e.\u0275fac=function(t){return new(t||e)(zs(Vl),zs(Nl),zs(Cd),zs(_s))},e.\u0275dir=Je({type:e,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(e,t){1&e&&ia("change",function(){return t.onChange()})("blur",function(){return t.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[Dl([vd]),xs]}),e})();const Ed={provide:Dh,useExisting:oe(()=>_d),multi:!0};let _d=(()=>{class e{constructor(){this._required=!1}get required(){return this._required}set required(e){this._required=null!=e&&!1!==e&&"false"!=`${e}`,this._onChange&&this._onChange()}validate(e){return this.required?function(e){return null==(t=e.value)||0===t.length?{required:!0}:null;var t}(e):null}registerOnValidatorChange(e){this._onChange=e}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Je({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&&Ps("required",t.required?"":null)},inputs:{required:"required"},features:[Dl([Ed])]}),e})(),Fd=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=We({type:e}),e.\u0275inj=pe({imports:[[bd]]}),e})(),xd=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=We({type:e}),e.\u0275inj=pe({imports:[Fd]}),e})();function Td(...e){let t=e[e.length-1];return F(t)?(e.pop(),L(e,t)):G(e)}function Qd(e,t){return function(n){return n.lift(new Sd(e,t))}}class Sd{constructor(e,t){this.predicate=e,this.thisArg=t}call(e,t){return t.subscribe(new kd(e,this.predicate,this.thisArg))}}class kd extends f{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 Ud{}class Dd{}class Od{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),r=n.toLowerCase(),i=e.slice(t+1).trim();this.maybeSetNormalizedName(n,r),this.headers.has(r)?this.headers.get(r).push(i):this.headers.set(r,[i])}})}:()=>{this.headers=new Map,Object.keys(e).forEach(t=>{let n=e[t];const r=t.toLowerCase();"string"==typeof n&&(n=[n]),n.length>0&&(this.headers.set(r,n),this.maybeSetNormalizedName(t,r))})}: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 Od?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 Od;return t.lazyInit=this.lazyInit&&this.lazyInit instanceof Od?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 r=("a"===e.op?this.headers.get(t):void 0)||[];r.push(...n),this.headers.set(t,r);break;case"d":const i=e.value;if(i){let e=this.headers.get(t);if(!e)return;e=e.filter(e=>-1===i.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 Ld{encodeKey(e){return Id(e)}encodeValue(e){return Id(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}}function Id(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,"/")}function Hd(e){return`${e}`}class Md{constructor(e={}){if(this.updates=null,this.cloneFrom=null,this.encoder=e.encoder||new Ld,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 r=e.indexOf("="),[i,o]=-1==r?[t.decodeKey(e),""]:[t.decodeKey(e.slice(0,r)),t.decodeValue(e.slice(r+1))],s=n.get(i)||[];s.push(o),n.set(i,s)}),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 r=e[n];Array.isArray(r)?r.forEach(e=>{t.push({param:n,value:e,op:"a"})}):t.push({param:n,value:r,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 Md({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(Hd(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(Hd(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)}}class Rd{constructor(){this.map=new Map}set(e,t){return this.map.set(e,t),this}get(e){return this.map.has(e)||this.map.set(e,e.defaultValue()),this.map.get(e)}delete(e){return this.map.delete(e),this}keys(){return this.map.keys()}}function Nd(e){return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer}function Pd(e){return"undefined"!=typeof Blob&&e instanceof Blob}function Kd(e){return"undefined"!=typeof FormData&&e instanceof FormData}class Vd{constructor(e,t,n,r){let i;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)||r?(this.body=void 0!==n?n:null,i=r):i=n,i&&(this.reportProgress=!!i.reportProgress,this.withCredentials=!!i.withCredentials,i.responseType&&(this.responseType=i.responseType),i.headers&&(this.headers=i.headers),i.context&&(this.context=i.context),i.params&&(this.params=i.params)),this.headers||(this.headers=new Od),this.context||(this.context=new Rd),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 Md,this.urlWithParams=t}serializeBody(){return null===this.body?null:Nd(this.body)||Pd(this.body)||Kd(this.body)||"undefined"!=typeof URLSearchParams&&this.body instanceof URLSearchParams||"string"==typeof this.body?this.body:this.body instanceof Md?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||Kd(this.body)?null:Pd(this.body)?this.body.type||null:Nd(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof Md?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}clone(e={}){var t;const n=e.method||this.method,r=e.url||this.url,i=e.responseType||this.responseType,o=void 0!==e.body?e.body:this.body,s=void 0!==e.withCredentials?e.withCredentials:this.withCredentials,a=void 0!==e.reportProgress?e.reportProgress:this.reportProgress;let l=e.headers||this.headers,A=e.params||this.params;const c=null!==(t=e.context)&&void 0!==t?t:this.context;return void 0!==e.setHeaders&&(l=Object.keys(e.setHeaders).reduce((t,n)=>t.set(n,e.setHeaders[n]),l)),e.setParams&&(A=Object.keys(e.setParams).reduce((t,n)=>t.set(n,e.setParams[n]),A)),new Vd(n,r,o,{params:A,headers:l,context:c,reportProgress:a,responseType:i,withCredentials:s})}}var Gd=(()=>((Gd=Gd||{})[Gd.Sent=0]="Sent",Gd[Gd.UploadProgress=1]="UploadProgress",Gd[Gd.ResponseHeader=2]="ResponseHeader",Gd[Gd.DownloadProgress=3]="DownloadProgress",Gd[Gd.Response=4]="Response",Gd[Gd.User=5]="User",Gd))();class jd{constructor(e,t=200,n="OK"){this.headers=e.headers||new Od,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 qd extends jd{constructor(e={}){super(e),this.type=Gd.ResponseHeader}clone(e={}){return new qd({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 zd extends jd{constructor(e={}){super(e),this.type=Gd.Response,this.body=void 0!==e.body?e.body:null}clone(e={}){return new zd({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 Wd extends jd{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 Xd(e,t){return{body:t,headers:e.headers,context:e.context,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials}}let Jd=(()=>{class e{constructor(e){this.handler=e}request(e,t,n={}){let r;if(e instanceof Vd)r=e;else{let i,o;i=n.headers instanceof Od?n.headers:new Od(n.headers),n.params&&(o=n.params instanceof Md?n.params:new Md({fromObject:n.params})),r=new Vd(e,t,void 0!==n.body?n.body:null,{headers:i,context:n.context,params:o,reportProgress:n.reportProgress,responseType:n.responseType||"json",withCredentials:n.withCredentials})}const i=Td(r).pipe(N(e=>this.handler.handle(e),void 0,1));if(e instanceof Vd||"events"===n.observe)return i;const o=i.pipe(Qd(e=>e instanceof zd));switch(n.observe||"body"){case"body":switch(r.responseType){case"arraybuffer":return o.pipe(x(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(x(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(x(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(x(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 Md).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,Xd(n,t))}post(e,t,n={}){return this.request("POST",e,Xd(n,t))}put(e,t,n={}){return this.request("PUT",e,Xd(n,t))}}return e.\u0275fac=function(t){return new(t||e)(fr(Ud))},e.\u0275prov=de({token:e,factory:e.\u0275fac}),e})();class Yd{constructor(e,t){this.next=e,this.interceptor=t}handle(e){return this.interceptor.intercept(e,this.next)}}const $d=new Zn("HTTP_INTERCEPTORS");let Zd=(()=>{class e{intercept(e,t){return t.handle(e)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=de({token:e,factory:e.\u0275fac}),e})();const ep=/^\)\]\}',?\n/;let tp=(()=>{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 w(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 r=e.serializeBody();let i=null;const o=()=>{if(null!==i)return i;const t=1223===n.status?204:n.status,r=n.statusText||"OK",o=new Od(n.getAllResponseHeaders()),s=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 i=new qd({headers:o,status:t,statusText:r,url:s}),i},s=()=>{let{headers:r,status:i,statusText:s,url:a}=o(),l=null;204!==i&&(l=void 0===n.response?n.responseText:n.response),0===i&&(i=l?200:0);let A=i>=200&&i<300;if("json"===e.responseType&&"string"==typeof l){const e=l;l=l.replace(ep,"");try{l=""!==l?JSON.parse(l):null}catch(c){l=e,A&&(A=!1,l={error:c,text:l})}}A?(t.next(new zd({body:l,headers:r,status:i,statusText:s,url:a||void 0})),t.complete()):t.error(new Wd({error:l,headers:r,status:i,statusText:s,url:a||void 0}))},a=e=>{const{url:r}=o(),i=new Wd({error:e,status:n.status||0,statusText:n.statusText||"Unknown Error",url:r||void 0});t.error(i)};let l=!1;const A=r=>{l||(t.next(o()),l=!0);let i={type:Gd.DownloadProgress,loaded:r.loaded};r.lengthComputable&&(i.total=r.total),"text"===e.responseType&&n.responseText&&(i.partialText=n.responseText),t.next(i)},c=e=>{let n={type:Gd.UploadProgress,loaded:e.loaded};e.lengthComputable&&(n.total=e.total),t.next(n)};return n.addEventListener("load",s),n.addEventListener("error",a),n.addEventListener("timeout",a),n.addEventListener("abort",a),e.reportProgress&&(n.addEventListener("progress",A),null!==r&&n.upload&&n.upload.addEventListener("progress",c)),n.send(r),t.next({type:Gd.Sent}),()=>{n.removeEventListener("error",a),n.removeEventListener("abort",a),n.removeEventListener("load",s),n.removeEventListener("timeout",a),e.reportProgress&&(n.removeEventListener("progress",A),null!==r&&n.upload&&n.upload.removeEventListener("progress",c)),n.readyState!==n.DONE&&n.abort()}})}}return e.\u0275fac=function(t){return new(t||e)(fr(Gu))},e.\u0275prov=de({token:e,factory:e.\u0275fac}),e})();const np=new Zn("XSRF_COOKIE_NAME"),rp=new Zn("XSRF_HEADER_NAME");class ip{}let op=(()=>{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=_u(e,this.cookieName),this.lastCookieString=e),this.lastToken}}return e.\u0275fac=function(t){return new(t||e)(fr(pu),fr(xc),fr(np))},e.\u0275prov=de({token:e,factory:e.\u0275fac}),e})(),sp=(()=>{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 r=this.tokenService.getToken();return null===r||e.headers.has(this.headerName)||(e=e.clone({headers:e.headers.set(this.headerName,r)})),t.handle(e)}}return e.\u0275fac=function(t){return new(t||e)(fr(ip),fr(rp))},e.\u0275prov=de({token:e,factory:e.\u0275fac}),e})(),ap=(()=>{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($d,[]);this.chain=e.reduceRight((e,t)=>new Yd(e,t),this.backend)}return this.chain.handle(e)}}return e.\u0275fac=function(t){return new(t||e)(fr(Dd),fr(_s))},e.\u0275prov=de({token:e,factory:e.\u0275fac}),e})(),lp=(()=>{class e{static disable(){return{ngModule:e,providers:[{provide:sp,useClass:Zd}]}}static withOptions(t={}){return{ngModule:e,providers:[t.cookieName?{provide:np,useValue:t.cookieName}:[],t.headerName?{provide:rp,useValue:t.headerName}:[]]}}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=We({type:e}),e.\u0275inj=pe({providers:[sp,{provide:$d,useExisting:sp,multi:!0},{provide:ip,useClass:op},{provide:np,useValue:"XSRF-TOKEN"},{provide:rp,useValue:"X-XSRF-TOKEN"}]}),e})(),Ap=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=We({type:e}),e.\u0275inj=pe({providers:[Jd,{provide:Ud,useClass:ap},tp,{provide:Dd,useExisting:tp}],imports:[[lp.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),e})();var cp={prefix:"fas",iconName:"chart-bar",icon:[512,512,["bar-chart"],"f080","M32 32C49.67 32 64 46.33 64 64V400C64 408.8 71.16 416 80 416H480C497.7 416 512 430.3 512 448C512 465.7 497.7 480 480 480H80C35.82 480 0 444.2 0 400V64C0 46.33 14.33 32 32 32zM128 128C128 110.3 142.3 96 160 96H352C369.7 96 384 110.3 384 128C384 145.7 369.7 160 352 160H160C142.3 160 128 145.7 128 128zM288 192C305.7 192 320 206.3 320 224C320 241.7 305.7 256 288 256H160C142.3 256 128 241.7 128 224C128 206.3 142.3 192 160 192H288zM416 288C433.7 288 448 302.3 448 320C448 337.7 433.7 352 416 352H160C142.3 352 128 337.7 128 320C128 302.3 142.3 288 160 288H416z"]},up={prefix:"fas",iconName:"chart-line",icon:[512,512,["line-chart"],"f201","M64 400C64 408.8 71.16 416 80 416H480C497.7 416 512 430.3 512 448C512 465.7 497.7 480 480 480H80C35.82 480 0 444.2 0 400V64C0 46.33 14.33 32 32 32C49.67 32 64 46.33 64 64V400zM342.6 278.6C330.1 291.1 309.9 291.1 297.4 278.6L240 221.3L150.6 310.6C138.1 323.1 117.9 323.1 105.4 310.6C92.88 298.1 92.88 277.9 105.4 265.4L217.4 153.4C229.9 140.9 250.1 140.9 262.6 153.4L320 210.7L425.4 105.4C437.9 92.88 458.1 92.88 470.6 105.4C483.1 117.9 483.1 138.1 470.6 150.6L342.6 278.6z"]},hp={prefix:"fas",iconName:"chart-pie",icon:[576,512,["pie-chart"],"f200","M304 16.58C304 7.555 310.1 0 320 0C443.7 0 544 100.3 544 224C544 233 536.4 240 527.4 240H304V16.58zM32 272C32 150.7 122.1 50.34 238.1 34.25C248.2 32.99 256 40.36 256 49.61V288L412.5 444.5C419.2 451.2 418.7 462.2 411 467.7C371.8 495.6 323.8 512 272 512C139.5 512 32 404.6 32 272zM558.4 288C567.6 288 575 295.8 573.8 305C566.1 360.9 539.1 410.6 499.9 447.3C493.9 452.1 484.5 452.5 478.7 446.7L320 288H558.4z"]},dp={prefix:"fas",iconName:"chevron-down",icon:[448,512,[],"f078","M224 416c-8.188 0-16.38-3.125-22.62-9.375l-192-192c-12.5-12.5-12.5-32.75 0-45.25s32.75-12.5 45.25 0L224 338.8l169.4-169.4c12.5-12.5 32.75-12.5 45.25 0s12.5 32.75 0 45.25l-192 192C240.4 412.9 232.2 416 224 416z"]},pp={prefix:"fas",iconName:"chevron-left",icon:[320,512,[9001],"f053","M224 480c-8.188 0-16.38-3.125-22.62-9.375l-192-192c-12.5-12.5-12.5-32.75 0-45.25l192-192c12.5-12.5 32.75-12.5 45.25 0s12.5 32.75 0 45.25L77.25 256l169.4 169.4c12.5 12.5 12.5 32.75 0 45.25C240.4 476.9 232.2 480 224 480z"]},fp={prefix:"fas",iconName:"chevron-right",icon:[320,512,[9002],"f054","M96 480c-8.188 0-16.38-3.125-22.62-9.375c-12.5-12.5-12.5-32.75 0-45.25L242.8 256L73.38 86.63c-12.5-12.5-12.5-32.75 0-45.25s32.75-12.5 45.25 0l192 192c12.5 12.5 12.5 32.75 0 45.25l-192 192C112.4 476.9 104.2 480 96 480z"]},gp={prefix:"fas",iconName:"circle-check",icon:[512,512,[61533,"check-circle"],"f058","M0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256C512 397.4 397.4 512 256 512C114.6 512 0 397.4 0 256zM371.8 211.8C382.7 200.9 382.7 183.1 371.8 172.2C360.9 161.3 343.1 161.3 332.2 172.2L224 280.4L179.8 236.2C168.9 225.3 151.1 225.3 140.2 236.2C129.3 247.1 129.3 264.9 140.2 275.8L204.2 339.8C215.1 350.7 232.9 350.7 243.8 339.8L371.8 211.8z"]},mp={prefix:"fas",iconName:"circle-exclamation",icon:[512,512,["exclamation-circle"],"f06a","M256 0C114.6 0 0 114.6 0 256s114.6 256 256 256s256-114.6 256-256S397.4 0 256 0zM232 152C232 138.8 242.8 128 256 128s24 10.75 24 24v128c0 13.25-10.75 24-24 24S232 293.3 232 280V152zM256 400c-17.36 0-31.44-14.08-31.44-31.44c0-17.36 14.07-31.44 31.44-31.44s31.44 14.08 31.44 31.44C287.4 385.9 273.4 400 256 400z"]},yp={prefix:"fas",iconName:"circle-info",icon:[512,512,["info-circle"],"f05a","M256 0C114.6 0 0 114.6 0 256s114.6 256 256 256s256-114.6 256-256S397.4 0 256 0zM256 128c17.67 0 32 14.33 32 32c0 17.67-14.33 32-32 32S224 177.7 224 160C224 142.3 238.3 128 256 128zM296 384h-80C202.8 384 192 373.3 192 360s10.75-24 24-24h16v-64H224c-13.25 0-24-10.75-24-24S210.8 224 224 224h32c13.25 0 24 10.75 24 24v88h16c13.25 0 24 10.75 24 24S309.3 384 296 384z"]},wp={prefix:"fas",iconName:"circle-question",icon:[512,512,[62108,"question-circle"],"f059","M256 0C114.6 0 0 114.6 0 256s114.6 256 256 256s256-114.6 256-256S397.4 0 256 0zM256 400c-18 0-32-14-32-32s13.1-32 32-32c17.1 0 32 14 32 32S273.1 400 256 400zM325.1 258L280 286V288c0 13-11 24-24 24S232 301 232 288V272c0-8 4-16 12-21l57-34C308 213 312 206 312 198C312 186 301.1 176 289.1 176h-51.1C225.1 176 216 186 216 198c0 13-11 24-24 24s-24-11-24-24C168 159 199 128 237.1 128h51.1C329 128 360 159 360 198C360 222 347 245 325.1 258z"]},vp={prefix:"fas",iconName:"copy",icon:[512,512,[],"f0c5","M384 96L384 0h-112c-26.51 0-48 21.49-48 48v288c0 26.51 21.49 48 48 48H464c26.51 0 48-21.49 48-48V128h-95.1C398.4 128 384 113.6 384 96zM416 0v96h96L416 0zM192 352V128h-144c-26.51 0-48 21.49-48 48v288c0 26.51 21.49 48 48 48h192c26.51 0 48-21.49 48-48L288 416h-32C220.7 416 192 387.3 192 352z"]},bp={prefix:"fas",iconName:"download",icon:[512,512,[],"f019","M480 352h-133.5l-45.25 45.25C289.2 409.3 273.1 416 256 416s-33.16-6.656-45.25-18.75L165.5 352H32c-17.67 0-32 14.33-32 32v96c0 17.67 14.33 32 32 32h448c17.67 0 32-14.33 32-32v-96C512 366.3 497.7 352 480 352zM432 456c-13.2 0-24-10.8-24-24c0-13.2 10.8-24 24-24s24 10.8 24 24C456 445.2 445.2 456 432 456zM233.4 374.6C239.6 380.9 247.8 384 256 384s16.38-3.125 22.62-9.375l128-128c12.49-12.5 12.49-32.75 0-45.25c-12.5-12.5-32.76-12.5-45.25 0L288 274.8V32c0-17.67-14.33-32-32-32C238.3 0 224 14.33 224 32v242.8L150.6 201.4c-12.49-12.5-32.75-12.5-45.25 0c-12.49 12.5-12.49 32.75 0 45.25L233.4 374.6z"]},Cp={prefix:"fas",iconName:"earth-americas",icon:[512,512,[127758,"earth","earth-america","globe-americas"],"f57d","M512 256C512 397.4 397.4 512 256 512C114.6 512 0 397.4 0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256zM57.71 192.1L67.07 209.4C75.36 223.9 88.99 234.6 105.1 239.2L162.1 255.7C180.2 260.6 192 276.3 192 294.2V334.1C192 345.1 198.2 355.1 208 359.1C217.8 364.9 224 374.9 224 385.9V424.9C224 440.5 238.9 451.7 253.9 447.4C270.1 442.8 282.5 429.1 286.6 413.7L289.4 402.5C293.6 385.6 304.6 371.1 319.7 362.4L327.8 357.8C342.8 349.3 352 333.4 352 316.1V307.9C352 295.1 346.9 282.9 337.9 273.9L334.1 270.1C325.1 261.1 312.8 255.1 300.1 255.1H256.1C245.9 255.1 234.9 253.1 225.2 247.6L190.7 227.8C186.4 225.4 183.1 221.4 181.6 216.7C178.4 207.1 182.7 196.7 191.7 192.1L197.7 189.2C204.3 185.9 211.9 185.3 218.1 187.7L242.2 195.4C250.3 198.1 259.3 195 264.1 187.9C268.8 180.8 268.3 171.5 262.9 165L249.3 148.8C239.3 136.8 239.4 119.3 249.6 107.5L265.3 89.12C274.1 78.85 275.5 64.16 268.8 52.42L266.4 48.26C262.1 48.09 259.5 48 256 48C163.1 48 84.4 108.9 57.71 192.1L57.71 192.1zM437.6 154.5L412 164.8C396.3 171.1 388.2 188.5 393.5 204.6L410.4 255.3C413.9 265.7 422.4 273.6 433 276.3L462.2 283.5C463.4 274.5 464 265.3 464 256C464 219.2 454.4 184.6 437.6 154.5H437.6z"]},Bp={prefix:"fas",iconName:"filter",icon:[512,512,[],"f0b0","M3.853 54.87C10.47 40.9 24.54 32 40 32H472C487.5 32 501.5 40.9 508.1 54.87C514.8 68.84 512.7 85.37 502.1 97.33L320 320.9V448C320 460.1 313.2 471.2 302.3 476.6C291.5 482 278.5 480.9 268.8 473.6L204.8 425.6C196.7 419.6 192 410.1 192 400V320.9L9.042 97.33C-.745 85.37-2.765 68.84 3.854 54.87L3.853 54.87z"]},Ep={prefix:"fas",iconName:"floppy-disk",icon:[448,512,[128426,128190,"save"],"f0c7","M433.1 129.1l-83.9-83.9C342.3 38.32 327.1 32 316.1 32H64C28.65 32 0 60.65 0 96v320c0 35.35 28.65 64 64 64h320c35.35 0 64-28.65 64-64V163.9C448 152.9 441.7 137.7 433.1 129.1zM224 416c-35.34 0-64-28.66-64-64s28.66-64 64-64s64 28.66 64 64S259.3 416 224 416zM320 208C320 216.8 312.8 224 304 224h-224C71.16 224 64 216.8 64 208v-96C64 103.2 71.16 96 80 96h224C312.8 96 320 103.2 320 112V208z"]},_p={prefix:"fas",iconName:"gears",icon:[640,512,["cogs"],"f085","M286.3 155.1C287.4 161.9 288 168.9 288 175.1C288 183.1 287.4 190.1 286.3 196.9L308.5 216.7C315.5 223 318.4 232.1 314.7 241.7C312.4 246.1 309.9 252.2 307.1 257.2L304 262.6C300.1 267.6 297.7 272.4 294.2 277.1C288.5 284.7 278.5 287.2 269.5 284.2L241.2 274.9C230.5 283.8 218.3 290.9 205 295.9L198.1 324.9C197 334.2 189.8 341.6 180.4 342.8C173.7 343.6 166.9 344 160 344C153.1 344 146.3 343.6 139.6 342.8C130.2 341.6 122.1 334.2 121 324.9L114.1 295.9C101.7 290.9 89.5 283.8 78.75 274.9L50.53 284.2C41.54 287.2 31.52 284.7 25.82 277.1C22.28 272.4 18.98 267.5 15.94 262.5L12.92 257.2C10.13 252.2 7.592 247 5.324 241.7C1.62 232.1 4.458 223 11.52 216.7L33.7 196.9C32.58 190.1 31.1 183.1 31.1 175.1C31.1 168.9 32.58 161.9 33.7 155.1L11.52 135.3C4.458 128.1 1.62 119 5.324 110.3C7.592 104.1 10.13 99.79 12.91 94.76L15.95 89.51C18.98 84.46 22.28 79.58 25.82 74.89C31.52 67.34 41.54 64.83 50.53 67.79L78.75 77.09C89.5 68.25 101.7 61.13 114.1 56.15L121 27.08C122.1 17.8 130.2 10.37 139.6 9.231C146.3 8.418 153.1 8 160 8C166.9 8 173.7 8.418 180.4 9.23C189.8 10.37 197 17.8 198.1 27.08L205 56.15C218.3 61.13 230.5 68.25 241.2 77.09L269.5 67.79C278.5 64.83 288.5 67.34 294.2 74.89C297.7 79.56 300.1 84.42 304 89.44L307.1 94.83C309.9 99.84 312.4 105 314.7 110.3C318.4 119 315.5 128.1 308.5 135.3L286.3 155.1zM160 127.1C133.5 127.1 112 149.5 112 175.1C112 202.5 133.5 223.1 160 223.1C186.5 223.1 208 202.5 208 175.1C208 149.5 186.5 127.1 160 127.1zM484.9 478.3C478.1 479.4 471.1 480 464 480C456.9 480 449.9 479.4 443.1 478.3L423.3 500.5C416.1 507.5 407 510.4 398.3 506.7C393 504.4 387.8 501.9 382.8 499.1L377.4 496C372.4 492.1 367.6 489.7 362.9 486.2C355.3 480.5 352.8 470.5 355.8 461.5L365.1 433.2C356.2 422.5 349.1 410.3 344.1 397L315.1 390.1C305.8 389 298.4 381.8 297.2 372.4C296.4 365.7 296 358.9 296 352C296 345.1 296.4 338.3 297.2 331.6C298.4 322.2 305.8 314.1 315.1 313L344.1 306.1C349.1 293.7 356.2 281.5 365.1 270.8L355.8 242.5C352.8 233.5 355.3 223.5 362.9 217.8C367.6 214.3 372.5 210.1 377.5 207.9L382.8 204.9C387.8 202.1 392.1 199.6 398.3 197.3C407 193.6 416.1 196.5 423.3 203.5L443.1 225.7C449.9 224.6 456.9 224 464 224C471.1 224 478.1 224.6 484.9 225.7L504.7 203.5C511 196.5 520.1 193.6 529.7 197.3C535 199.6 540.2 202.1 545.2 204.9L550.5 207.9C555.5 210.1 560.4 214.3 565.1 217.8C572.7 223.5 575.2 233.5 572.2 242.5L562.9 270.8C571.8 281.5 578.9 293.7 583.9 306.1L612.9 313C622.2 314.1 629.6 322.2 630.8 331.6C631.6 338.3 632 345.1 632 352C632 358.9 631.6 365.7 630.8 372.4C629.6 381.8 622.2 389 612.9 390.1L583.9 397C578.9 410.3 571.8 422.5 562.9 433.2L572.2 461.5C575.2 470.5 572.7 480.5 565.1 486.2C560.4 489.7 555.6 492.1 550.6 496L545.2 499.1C540.2 501.9 534.1 504.4 529.7 506.7C520.1 510.4 511 507.5 504.7 500.5L484.9 478.3zM512 352C512 325.5 490.5 304 464 304C437.5 304 416 325.5 416 352C416 378.5 437.5 400 464 400C490.5 400 512 378.5 512 352z"]},Fp=_p,xp={prefix:"fas",iconName:"link",icon:[640,512,[128279,"chain"],"f0c1","M172.5 131.1C228.1 75.51 320.5 75.51 376.1 131.1C426.1 181.1 433.5 260.8 392.4 318.3L391.3 319.9C381 334.2 361 337.6 346.7 327.3C332.3 317 328.9 297 339.2 282.7L340.3 281.1C363.2 249 359.6 205.1 331.7 177.2C300.3 145.8 249.2 145.8 217.7 177.2L105.5 289.5C73.99 320.1 73.99 372 105.5 403.5C133.3 431.4 177.3 435 209.3 412.1L210.9 410.1C225.3 400.7 245.3 404 255.5 418.4C265.8 432.8 262.5 452.8 248.1 463.1L246.5 464.2C188.1 505.3 110.2 498.7 60.21 448.8C3.741 392.3 3.741 300.7 60.21 244.3L172.5 131.1zM467.5 380C411 436.5 319.5 436.5 263 380C213 330 206.5 251.2 247.6 193.7L248.7 192.1C258.1 177.8 278.1 174.4 293.3 184.7C307.7 194.1 311.1 214.1 300.8 229.3L299.7 230.9C276.8 262.1 280.4 306.9 308.3 334.8C339.7 366.2 390.8 366.2 422.3 334.8L534.5 222.5C566 191 566 139.1 534.5 108.5C506.7 80.63 462.7 76.99 430.7 99.9L429.1 101C414.7 111.3 394.7 107.1 384.5 93.58C374.2 79.2 377.5 59.21 391.9 48.94L393.5 47.82C451 6.731 529.8 13.25 579.8 63.24C636.3 119.7 636.3 211.3 579.8 267.7L467.5 380z"]},Tp={prefix:"fas",iconName:"location-pin",icon:[384,512,["map-marker"],"f041","M384 192C384 279.4 267 435 215.7 499.2C203.4 514.5 180.6 514.5 168.3 499.2C116.1 435 0 279.4 0 192C0 85.96 85.96 0 192 0C298 0 384 85.96 384 192H384z"]},Qp={prefix:"fas",iconName:"magnifying-glass",icon:[512,512,[128269,"search"],"f002","M500.3 443.7l-119.7-119.7c27.22-40.41 40.65-90.9 33.46-144.7C401.8 87.79 326.8 13.32 235.2 1.723C99.01-15.51-15.51 99.01 1.724 235.2c11.6 91.64 86.08 166.7 177.6 178.9c53.8 7.189 104.3-6.236 144.7-33.46l119.7 119.7c15.62 15.62 40.95 15.62 56.57 0C515.9 484.7 515.9 459.3 500.3 443.7zM79.1 208c0-70.58 57.42-128 128-128s128 57.42 128 128c0 70.58-57.42 128-128 128S79.1 278.6 79.1 208z"]},Sp={prefix:"fas",iconName:"map",icon:[576,512,[62072,128506],"f279","M384 476.1L192 421.2V35.93L384 90.79V476.1zM416 88.37L543.1 37.53C558.9 31.23 576 42.84 576 59.82V394.6C576 404.4 570 413.2 560.9 416.9L416 474.8V88.37zM15.09 95.13L160 37.17V423.6L32.91 474.5C17.15 480.8 0 469.2 0 452.2V117.4C0 107.6 5.975 98.78 15.09 95.13V95.13z"]},kp={prefix:"fas",iconName:"play",icon:[384,512,[9654],"f04b","M361 215C375.3 223.8 384 239.3 384 256C384 272.7 375.3 288.2 361 296.1L73.03 472.1C58.21 482 39.66 482.4 24.52 473.9C9.377 465.4 0 449.4 0 432V80C0 62.64 9.377 46.63 24.52 38.13C39.66 29.64 58.21 29.99 73.03 39.04L361 215z"]},Up={prefix:"fas",iconName:"sort",icon:[320,512,["unsorted"],"f0dc","M27.66 224h264.7c24.6 0 36.89-29.78 19.54-47.12l-132.3-136.8c-5.406-5.406-12.47-8.107-19.53-8.107c-7.055 0-14.09 2.701-19.45 8.107L8.119 176.9C-9.229 194.2 3.055 224 27.66 224zM292.3 288H27.66c-24.6 0-36.89 29.77-19.54 47.12l132.5 136.8C145.9 477.3 152.1 480 160 480c7.053 0 14.12-2.703 19.53-8.109l132.3-136.8C329.2 317.8 316.9 288 292.3 288z"]},Dp={prefix:"fas",iconName:"spinner",icon:[512,512,[],"f110","M304 48C304 74.51 282.5 96 256 96C229.5 96 208 74.51 208 48C208 21.49 229.5 0 256 0C282.5 0 304 21.49 304 48zM304 464C304 490.5 282.5 512 256 512C229.5 512 208 490.5 208 464C208 437.5 229.5 416 256 416C282.5 416 304 437.5 304 464zM0 256C0 229.5 21.49 208 48 208C74.51 208 96 229.5 96 256C96 282.5 74.51 304 48 304C21.49 304 0 282.5 0 256zM512 256C512 282.5 490.5 304 464 304C437.5 304 416 282.5 416 256C416 229.5 437.5 208 464 208C490.5 208 512 229.5 512 256zM74.98 437C56.23 418.3 56.23 387.9 74.98 369.1C93.73 350.4 124.1 350.4 142.9 369.1C161.6 387.9 161.6 418.3 142.9 437C124.1 455.8 93.73 455.8 74.98 437V437zM142.9 142.9C124.1 161.6 93.73 161.6 74.98 142.9C56.24 124.1 56.24 93.73 74.98 74.98C93.73 56.23 124.1 56.23 142.9 74.98C161.6 93.73 161.6 124.1 142.9 142.9zM369.1 369.1C387.9 350.4 418.3 350.4 437 369.1C455.8 387.9 455.8 418.3 437 437C418.3 455.8 387.9 455.8 369.1 437C350.4 418.3 350.4 387.9 369.1 369.1V369.1z"]},Op={prefix:"fas",iconName:"stop",icon:[384,512,[9209],"f04d","M384 128v255.1c0 35.35-28.65 64-64 64H64c-35.35 0-64-28.65-64-64V128c0-35.35 28.65-64 64-64H320C355.3 64 384 92.65 384 128z"]},Lp={prefix:"fas",iconName:"table",icon:[512,512,[],"f0ce","M448 32C483.3 32 512 60.65 512 96V416C512 451.3 483.3 480 448 480H64C28.65 480 0 451.3 0 416V96C0 60.65 28.65 32 64 32H448zM224 256V160H64V256H224zM64 320V416H224V320H64zM288 416H448V320H288V416zM448 256V160H288V256H448z"]},Ip={prefix:"fas",iconName:"thumbtack",icon:[384,512,[128392,128204,"thumb-tack"],"f08d","M32 32C32 14.33 46.33 0 64 0H320C337.7 0 352 14.33 352 32C352 49.67 337.7 64 320 64H290.5L301.9 212.2C338.6 232.1 367.5 265.4 381.4 306.9L382.4 309.9C385.6 319.6 383.1 330.4 377.1 338.7C371.9 347.1 362.3 352 352 352H32C21.71 352 12.05 347.1 6.04 338.7C.0259 330.4-1.611 319.6 1.642 309.9L2.644 306.9C16.47 265.4 45.42 232.1 82.14 212.2L93.54 64H64C46.33 64 32 49.67 32 32zM224 384V480C224 497.7 209.7 512 192 512C174.3 512 160 497.7 160 480V384H224z"]},Hp={prefix:"fas",iconName:"triangle-exclamation",icon:[512,512,[9888,"exclamation-triangle","warning"],"f071","M506.3 417l-213.3-364c-16.33-28-57.54-28-73.98 0l-213.2 364C-10.59 444.9 9.849 480 42.74 480h426.6C502.1 480 522.6 445 506.3 417zM232 168c0-13.25 10.75-24 24-24S280 154.8 280 168v128c0 13.25-10.75 24-23.1 24S232 309.3 232 296V168zM256 416c-17.36 0-31.44-14.08-31.44-31.44c0-17.36 14.07-31.44 31.44-31.44s31.44 14.08 31.44 31.44C287.4 401.9 273.4 416 256 416z"]},Mp=Hp,Rp=Hp,Np="1.13.1",Pp="object"==typeof self&&self.self===self&&self||"object"==typeof global&&global.global===global&&global||Function("return this")()||{},Kp=Array.prototype,Vp=Object.prototype,Gp="undefined"!=typeof Symbol?Symbol.prototype:null,jp=Kp.push,qp=Kp.slice,zp=Vp.toString,Wp=Vp.hasOwnProperty,Xp="undefined"!=typeof ArrayBuffer,Jp="undefined"!=typeof DataView,Yp=Array.isArray,$p=Object.keys,Zp=Object.create,ef=Xp&&ArrayBuffer.isView,tf=isNaN,nf=isFinite,rf=!{toString:null}.propertyIsEnumerable("toString"),of=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],sf=Math.pow(2,53)-1;function af(e,t){return t=null==t?e.length-1:+t,function(){for(var n=Math.max(arguments.length-t,0),r=Array(n),i=0;i<n;i++)r[i]=arguments[i+t];switch(t){case 0:return e.call(this,r);case 1:return e.call(this,arguments[0],r);case 2:return e.call(this,arguments[0],arguments[1],r)}var o=Array(t+1);for(i=0;i<t;i++)o[i]=arguments[i];return o[t]=r,e.apply(this,o)}}function lf(e){var t=typeof e;return"function"===t||"object"===t&&!!e}function Af(e){return null===e}function cf(e){return void 0===e}function uf(e){return!0===e||!1===e||"[object Boolean]"===zp.call(e)}function hf(e){return!(!e||1!==e.nodeType)}function df(e){var t="[object "+e+"]";return function(e){return zp.call(e)===t}}const pf=df("String"),ff=df("Number"),gf=df("Date"),mf=df("RegExp"),yf=df("Error"),wf=df("Symbol"),vf=df("ArrayBuffer");var bf=df("Function");"object"!=typeof Int8Array&&"function"!=typeof(Pp.document&&Pp.document.childNodes)&&(bf=function(e){return"function"==typeof e||!1});const Cf=bf,Bf=df("Object");var Ef=Jp&&Bf(new DataView(new ArrayBuffer(8))),_f="undefined"!=typeof Map&&Bf(new Map),Ff=df("DataView");const xf=Ef?function(e){return null!=e&&Cf(e.getInt8)&&vf(e.buffer)}:Ff,Tf=Yp||df("Array");function Qf(e,t){return null!=e&&Wp.call(e,t)}var Sf=df("Arguments");!function(){Sf(arguments)||(Sf=function(e){return Qf(e,"callee")})}();const kf=Sf;function Uf(e){return!wf(e)&&nf(e)&&!isNaN(parseFloat(e))}function Df(e){return ff(e)&&tf(e)}function Of(e){return function(){return e}}function Lf(e){return function(t){var n=e(t);return"number"==typeof n&&n>=0&&n<=sf}}function If(e){return function(t){return null==t?void 0:t[e]}}const Hf=If("byteLength"),Mf=Lf(Hf);var Rf=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/;const Nf=Xp?function(e){return ef?ef(e)&&!xf(e):Mf(e)&&Rf.test(zp.call(e))}:Of(!1),Pf=If("length");function Kf(e,t){t=function(e){for(var t={},n=e.length,r=0;r<n;++r)t[e[r]]=!0;return{contains:function(e){return t[e]},push:function(n){return t[n]=!0,e.push(n)}}}(t);var n=of.length,r=e.constructor,i=Cf(r)&&r.prototype||Vp,o="constructor";for(Qf(e,o)&&!t.contains(o)&&t.push(o);n--;)(o=of[n])in e&&e[o]!==i[o]&&!t.contains(o)&&t.push(o)}function Vf(e){if(!lf(e))return[];if($p)return $p(e);var t=[];for(var n in e)Qf(e,n)&&t.push(n);return rf&&Kf(e,t),t}function Gf(e){if(null==e)return!0;var t=Pf(e);return"number"==typeof t&&(Tf(e)||pf(e)||kf(e))?0===t:0===Pf(Vf(e))}function jf(e,t){var n=Vf(t),r=n.length;if(null==e)return!r;for(var i=Object(e),o=0;o<r;o++){var s=n[o];if(t[s]!==i[s]||!(s in i))return!1}return!0}function qf(e){return e instanceof qf?e:this instanceof qf?void(this._wrapped=e):new qf(e)}function zf(e){return new Uint8Array(e.buffer||e,e.byteOffset||0,Hf(e))}qf.VERSION=Np,qf.prototype.valueOf=qf.prototype.toJSON=qf.prototype.value=function(){return this._wrapped},qf.prototype.toString=function(){return String(this._wrapped)};var Wf="[object DataView]";function Xf(e,t,n,r){if(e===t)return 0!==e||1/e==1/t;if(null==e||null==t)return!1;if(e!=e)return t!=t;var i=typeof e;return("function"===i||"object"===i||"object"==typeof t)&&Jf(e,t,n,r)}function Jf(e,t,n,r){e instanceof qf&&(e=e._wrapped),t instanceof qf&&(t=t._wrapped);var i=zp.call(e);if(i!==zp.call(t))return!1;if(Ef&&"[object Object]"==i&&xf(e)){if(!xf(t))return!1;i=Wf}switch(i){case"[object RegExp]":case"[object String]":return""+e==""+t;case"[object Number]":return+e!=+e?+t!=+t:0==+e?1/+e==1/t:+e==+t;case"[object Date]":case"[object Boolean]":return+e==+t;case"[object Symbol]":return Gp.valueOf.call(e)===Gp.valueOf.call(t);case"[object ArrayBuffer]":case Wf:return Jf(zf(e),zf(t),n,r)}var o="[object Array]"===i;if(!o&&Nf(e)){if(Hf(e)!==Hf(t))return!1;if(e.buffer===t.buffer&&e.byteOffset===t.byteOffset)return!0;o=!0}if(!o){if("object"!=typeof e||"object"!=typeof t)return!1;var s=e.constructor,a=t.constructor;if(s!==a&&!(Cf(s)&&s instanceof s&&Cf(a)&&a instanceof a)&&"constructor"in e&&"constructor"in t)return!1}r=r||[];for(var l=(n=n||[]).length;l--;)if(n[l]===e)return r[l]===t;if(n.push(e),r.push(t),o){if((l=e.length)!==t.length)return!1;for(;l--;)if(!Xf(e[l],t[l],n,r))return!1}else{var A,c=Vf(e);if(l=c.length,Vf(t).length!==l)return!1;for(;l--;)if(!Qf(t,A=c[l])||!Xf(e[A],t[A],n,r))return!1}return n.pop(),r.pop(),!0}function Yf(e,t){return Xf(e,t)}function $f(e){if(!lf(e))return[];var t=[];for(var n in e)t.push(n);return rf&&Kf(e,t),t}function Zf(e){var t=Pf(e);return function(n){if(null==n)return!1;var r=$f(n);if(Pf(r))return!1;for(var i=0;i<t;i++)if(!Cf(n[e[i]]))return!1;return e!==ig||!Cf(n[eg])}}var eg="forEach",tg=["clear","delete"],ng=["get","has","set"],rg=tg.concat(eg,ng),ig=tg.concat(ng),og=["add"].concat(tg,eg,"has");const sg=_f?Zf(rg):df("Map"),ag=_f?Zf(ig):df("WeakMap"),lg=_f?Zf(og):df("Set"),Ag=df("WeakSet");function cg(e){for(var t=Vf(e),n=t.length,r=Array(n),i=0;i<n;i++)r[i]=e[t[i]];return r}function ug(e){for(var t=Vf(e),n=t.length,r=Array(n),i=0;i<n;i++)r[i]=[t[i],e[t[i]]];return r}function hg(e){for(var t={},n=Vf(e),r=0,i=n.length;r<i;r++)t[e[n[r]]]=n[r];return t}function dg(e){var t=[];for(var n in e)Cf(e[n])&&t.push(n);return t.sort()}function pg(e,t){return function(n){var r=arguments.length;if(t&&(n=Object(n)),r<2||null==n)return n;for(var i=1;i<r;i++)for(var o=arguments[i],s=e(o),a=s.length,l=0;l<a;l++){var A=s[l];t&&void 0!==n[A]||(n[A]=o[A])}return n}}const fg=pg($f),gg=pg(Vf),mg=pg($f,!0);function yg(e){if(!lf(e))return{};if(Zp)return Zp(e);var t=function(){};t.prototype=e;var n=new t;return t.prototype=null,n}function wg(e,t){var n=yg(e);return t&&gg(n,t),n}function vg(e){return lf(e)?Tf(e)?e.slice():fg({},e):e}function bg(e,t){return t(e),e}function Cg(e){return Tf(e)?e:[e]}function Bg(e){return qf.toPath(e)}function Eg(e,t){for(var n=t.length,r=0;r<n;r++){if(null==e)return;e=e[t[r]]}return n?e:void 0}function _g(e,t,n){var r=Eg(e,Bg(t));return cf(r)?n:r}function Fg(e,t){for(var n=(t=Bg(t)).length,r=0;r<n;r++){var i=t[r];if(!Qf(e,i))return!1;e=e[i]}return!!n}function xg(e){return e}function Tg(e){return e=gg({},e),function(t){return jf(t,e)}}function Qg(e){return e=Bg(e),function(t){return Eg(t,e)}}function Sg(e,t,n){if(void 0===t)return e;switch(null==n?3:n){case 1:return function(n){return e.call(t,n)};case 3:return function(n,r,i){return e.call(t,n,r,i)};case 4:return function(n,r,i,o){return e.call(t,n,r,i,o)}}return function(){return e.apply(t,arguments)}}function kg(e,t,n){return null==e?xg:Cf(e)?Sg(e,t,n):lf(e)&&!Tf(e)?Tg(e):Qg(e)}function Ug(e,t){return kg(e,t,1/0)}function Dg(e,t,n){return qf.iteratee!==Ug?qf.iteratee(e,t):kg(e,t,n)}function Og(e,t,n){t=Dg(t,n);for(var r=Vf(e),i=r.length,o={},s=0;s<i;s++){var a=r[s];o[a]=t(e[a],a,e)}return o}function Lg(){}function Ig(e){return null==e?Lg:function(t){return _g(e,t)}}function Hg(e,t,n){var r=Array(Math.max(0,e));t=Sg(t,n,1);for(var i=0;i<e;i++)r[i]=t(i);return r}function Mg(e,t){return null==t&&(t=e,e=0),e+Math.floor(Math.random()*(t-e+1))}qf.toPath=Cg,qf.iteratee=Ug;const Rg=Date.now||function(){return(new Date).getTime()};function Ng(e){var t=function(t){return e[t]},n="(?:"+Vf(e).join("|")+")",r=RegExp(n),i=RegExp(n,"g");return function(e){return r.test(e=null==e?"":""+e)?e.replace(i,t):e}}const Pg={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},Kg=Ng(Pg),Vg=Ng(hg(Pg)),Gg=qf.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var jg=/(.)^/,qg={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},zg=/\\|'|\r|\n|\u2028|\u2029/g;function Wg(e){return"\\"+qg[e]}var Xg=/^\s*(\w|\$)+\s*$/;function Jg(e,t,n){!t&&n&&(t=n),t=mg({},t,qf.templateSettings);var r=RegExp([(t.escape||jg).source,(t.interpolate||jg).source,(t.evaluate||jg).source].join("|")+"|$","g"),i=0,o="__p+='";e.replace(r,function(t,n,r,s,a){return o+=e.slice(i,a).replace(zg,Wg),i=a+t.length,n?o+="'+\n((__t=("+n+"))==null?'':_.escape(__t))+\n'":r?o+="'+\n((__t=("+r+"))==null?'':__t)+\n'":s&&(o+="';\n"+s+"\n__p+='"),t}),o+="';\n";var s,a=t.variable;if(a){if(!Xg.test(a))throw new Error("variable is not a bare identifier: "+a)}else o="with(obj||{}){\n"+o+"}\n",a="obj";o="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+o+"return __p;\n";try{s=new Function(a,"_",o)}catch(A){throw A.source=o,A}var l=function(e){return s.call(this,e,qf)};return l.source="function("+a+"){\n"+o+"}",l}function Yg(e,t,n){var r=(t=Bg(t)).length;if(!r)return Cf(n)?n.call(e):n;for(var i=0;i<r;i++){var o=null==e?void 0:e[t[i]];void 0===o&&(o=n,i=r),e=Cf(o)?o.call(e):o}return e}var $g=0;function Zg(e){var t=++$g+"";return e?e+t:t}function em(e){var t=qf(e);return t._chain=!0,t}function tm(e,t,n,r,i){if(!(r instanceof t))return e.apply(n,i);var o=yg(e.prototype),s=e.apply(o,i);return lf(s)?s:o}var nm=af(function(e,t){var n=nm.placeholder,r=function(){for(var i=0,o=t.length,s=Array(o),a=0;a<o;a++)s[a]=t[a]===n?arguments[i++]:t[a];for(;i<arguments.length;)s.push(arguments[i++]);return tm(e,r,this,this,s)};return r});nm.placeholder=qf;const rm=nm,im=af(function(e,t,n){if(!Cf(e))throw new TypeError("Bind must be called on a function");var r=af(function(i){return tm(e,r,t,this,n.concat(i))});return r}),om=Lf(Pf);function sm(e,t,n,r){if(r=r||[],t||0===t){if(t<=0)return r.concat(e)}else t=1/0;for(var i=r.length,o=0,s=Pf(e);o<s;o++){var a=e[o];if(om(a)&&(Tf(a)||kf(a)))if(t>1)sm(a,t-1,n,r),i=r.length;else for(var l=0,A=a.length;l<A;)r[i++]=a[l++];else n||(r[i++]=a)}return r}const am=af(function(e,t){var n=(t=sm(t,!1,!1)).length;if(n<1)throw new Error("bindAll must be passed function names");for(;n--;){var r=t[n];e[r]=im(e[r],e)}return e});function lm(e,t){var n=function(r){var i=n.cache,o=""+(t?t.apply(this,arguments):r);return Qf(i,o)||(i[o]=e.apply(this,arguments)),i[o]};return n.cache={},n}const Am=af(function(e,t,n){return setTimeout(function(){return e.apply(null,n)},t)}),cm=rm(Am,qf,1);function um(e,t,n){var r,i,o,s,a=0;n||(n={});var l=function(){a=!1===n.leading?0:Rg(),r=null,s=e.apply(i,o),r||(i=o=null)},A=function(){var A=Rg();a||!1!==n.leading||(a=A);var c=t-(A-a);return i=this,o=arguments,c<=0||c>t?(r&&(clearTimeout(r),r=null),a=A,s=e.apply(i,o),r||(i=o=null)):r||!1===n.trailing||(r=setTimeout(l,c)),s};return A.cancel=function(){clearTimeout(r),a=0,r=i=o=null},A}function hm(e,t,n){var r,i,o,s,a,l=function(){var A=Rg()-i;t>A?r=setTimeout(l,t-A):(r=null,n||(s=e.apply(a,o)),r||(o=a=null))},A=af(function(A){return a=this,o=A,i=Rg(),r||(r=setTimeout(l,t),n&&(s=e.apply(a,o))),s});return A.cancel=function(){clearTimeout(r),r=o=a=null},A}function dm(e,t){return rm(t,e)}function pm(e){return function(){return!e.apply(this,arguments)}}function fm(){var e=arguments,t=e.length-1;return function(){for(var n=t,r=e[t].apply(this,arguments);n--;)r=e[n].call(this,r);return r}}function gm(e,t){return function(){if(--e<1)return t.apply(this,arguments)}}function mm(e,t){var n;return function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=null),n}}const ym=rm(mm,2);function wm(e,t,n){t=Dg(t,n);for(var r,i=Vf(e),o=0,s=i.length;o<s;o++)if(t(e[r=i[o]],r,e))return r}function vm(e){return function(t,n,r){n=Dg(n,r);for(var i=Pf(t),o=e>0?0:i-1;o>=0&&o<i;o+=e)if(n(t[o],o,t))return o;return-1}}const bm=vm(1),Cm=vm(-1);function Bm(e,t,n,r){for(var i=(n=Dg(n,r,1))(t),o=0,s=Pf(e);o<s;){var a=Math.floor((o+s)/2);n(e[a])<i?o=a+1:s=a}return o}function Em(e,t,n){return function(r,i,o){var s=0,a=Pf(r);if("number"==typeof o)e>0?s=o>=0?o:Math.max(o+a,s):a=o>=0?Math.min(o+1,a):o+a+1;else if(n&&o&&a)return r[o=n(r,i)]===i?o:-1;if(i!=i)return(o=t(qp.call(r,s,a),Df))>=0?o+s:-1;for(o=e>0?s:a-1;o>=0&&o<a;o+=e)if(r[o]===i)return o;return-1}}const _m=Em(1,bm,Bm),Fm=Em(-1,Cm);function xm(e,t,n){var r=(om(e)?bm:wm)(e,t,n);if(void 0!==r&&-1!==r)return e[r]}function Tm(e,t){return xm(e,Tg(t))}function Qm(e,t,n){var r,i;if(t=Sg(t,n),om(e))for(r=0,i=e.length;r<i;r++)t(e[r],r,e);else{var o=Vf(e);for(r=0,i=o.length;r<i;r++)t(e[o[r]],o[r],e)}return e}function Sm(e,t,n){t=Dg(t,n);for(var r=!om(e)&&Vf(e),i=(r||e).length,o=Array(i),s=0;s<i;s++){var a=r?r[s]:s;o[s]=t(e[a],a,e)}return o}function km(e){var t=function(t,n,r,i){var o=!om(t)&&Vf(t),s=(o||t).length,a=e>0?0:s-1;for(i||(r=t[o?o[a]:a],a+=e);a>=0&&a<s;a+=e){var l=o?o[a]:a;r=n(r,t[l],l,t)}return r};return function(e,n,r,i){var o=arguments.length>=3;return t(e,Sg(n,i,4),r,o)}}const Um=km(1),Dm=km(-1);function Om(e,t,n){var r=[];return t=Dg(t,n),Qm(e,function(e,n,i){t(e,n,i)&&r.push(e)}),r}function Lm(e,t,n){return Om(e,pm(Dg(t)),n)}function Im(e,t,n){t=Dg(t,n);for(var r=!om(e)&&Vf(e),i=(r||e).length,o=0;o<i;o++){var s=r?r[o]:o;if(!t(e[s],s,e))return!1}return!0}function Hm(e,t,n){t=Dg(t,n);for(var r=!om(e)&&Vf(e),i=(r||e).length,o=0;o<i;o++){var s=r?r[o]:o;if(t(e[s],s,e))return!0}return!1}function Mm(e,t,n,r){return om(e)||(e=cg(e)),("number"!=typeof n||r)&&(n=0),_m(e,t,n)>=0}const Rm=af(function(e,t,n){var r,i;return Cf(t)?i=t:(t=Bg(t),r=t.slice(0,-1),t=t[t.length-1]),Sm(e,function(e){var o=i;if(!o){if(r&&r.length&&(e=Eg(e,r)),null==e)return;o=e[t]}return null==o?o:o.apply(e,n)})});function Nm(e,t){return Sm(e,Qg(t))}function Pm(e,t){return Om(e,Tg(t))}function Km(e,t,n){var r,i,o=-1/0,s=-1/0;if(null==t||"number"==typeof t&&"object"!=typeof e[0]&&null!=e)for(var a=0,l=(e=om(e)?e:cg(e)).length;a<l;a++)null!=(r=e[a])&&r>o&&(o=r);else t=Dg(t,n),Qm(e,function(e,n,r){((i=t(e,n,r))>s||i===-1/0&&o===-1/0)&&(o=e,s=i)});return o}function Vm(e,t,n){var r,i,o=1/0,s=1/0;if(null==t||"number"==typeof t&&"object"!=typeof e[0]&&null!=e)for(var a=0,l=(e=om(e)?e:cg(e)).length;a<l;a++)null!=(r=e[a])&&r<o&&(o=r);else t=Dg(t,n),Qm(e,function(e,n,r){((i=t(e,n,r))<s||i===1/0&&o===1/0)&&(o=e,s=i)});return o}function Gm(e,t,n){if(null==t||n)return om(e)||(e=cg(e)),e[Mg(e.length-1)];var r=om(e)?vg(e):cg(e),i=Pf(r);t=Math.max(Math.min(t,i),0);for(var o=i-1,s=0;s<t;s++){var a=Mg(s,o),l=r[s];r[s]=r[a],r[a]=l}return r.slice(0,t)}function jm(e){return Gm(e,1/0)}function qm(e,t,n){var r=0;return t=Dg(t,n),Nm(Sm(e,function(e,n,i){return{value:e,index:r++,criteria:t(e,n,i)}}).sort(function(e,t){var n=e.criteria,r=t.criteria;if(n!==r){if(n>r||void 0===n)return 1;if(n<r||void 0===r)return-1}return e.index-t.index}),"value")}function zm(e,t){return function(n,r,i){var o=t?[[],[]]:{};return r=Dg(r,i),Qm(n,function(t,i){var s=r(t,i,n);e(o,t,s)}),o}}const Wm=zm(function(e,t,n){Qf(e,n)?e[n].push(t):e[n]=[t]}),Xm=zm(function(e,t,n){e[n]=t}),Jm=zm(function(e,t,n){Qf(e,n)?e[n]++:e[n]=1}),Ym=zm(function(e,t,n){e[n?0:1].push(t)},!0);var $m=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;function Zm(e){return e?Tf(e)?qp.call(e):pf(e)?e.match($m):om(e)?Sm(e,xg):cg(e):[]}function ey(e){return null==e?0:om(e)?e.length:Vf(e).length}function ty(e,t,n){return t in n}const ny=af(function(e,t){var n={},r=t[0];if(null==e)return n;Cf(r)?(t.length>1&&(r=Sg(r,t[1])),t=$f(e)):(r=ty,t=sm(t,!1,!1),e=Object(e));for(var i=0,o=t.length;i<o;i++){var s=t[i],a=e[s];r(a,s,e)&&(n[s]=a)}return n}),ry=af(function(e,t){var n,r=t[0];return Cf(r)?(r=pm(r),t.length>1&&(n=t[1])):(t=Sm(sm(t,!1,!1),String),r=function(e,n){return!Mm(t,n)}),ny(e,r,n)});function iy(e,t,n){return qp.call(e,0,Math.max(0,e.length-(null==t||n?1:t)))}function oy(e,t,n){return null==e||e.length<1?null==t||n?void 0:[]:null==t||n?e[0]:iy(e,e.length-t)}function sy(e,t,n){return qp.call(e,null==t||n?1:t)}function ay(e,t,n){return null==e||e.length<1?null==t||n?void 0:[]:null==t||n?e[e.length-1]:sy(e,Math.max(0,e.length-t))}function ly(e){return Om(e,Boolean)}function Ay(e,t){return sm(e,t,!1)}const cy=af(function(e,t){return t=sm(t,!0,!0),Om(e,function(e){return!Mm(t,e)})}),uy=af(function(e,t){return cy(e,t)});function hy(e,t,n,r){uf(t)||(r=n,n=t,t=!1),null!=n&&(n=Dg(n,r));for(var i=[],o=[],s=0,a=Pf(e);s<a;s++){var l=e[s],A=n?n(l,s,e):l;t&&!n?(s&&o===A||i.push(l),o=A):n?Mm(o,A)||(o.push(A),i.push(l)):Mm(i,l)||i.push(l)}return i}const dy=af(function(e){return hy(sm(e,!0,!0))});function py(e){for(var t=[],n=arguments.length,r=0,i=Pf(e);r<i;r++){var o=e[r];if(!Mm(t,o)){var s;for(s=1;s<n&&Mm(arguments[s],o);s++);s===n&&t.push(o)}}return t}function fy(e){for(var t=e&&Km(e,Pf).length||0,n=Array(t),r=0;r<t;r++)n[r]=Nm(e,r);return n}const gy=af(fy);function my(e,t){for(var n={},r=0,i=Pf(e);r<i;r++)t?n[e[r]]=t[r]:n[e[r][0]]=e[r][1];return n}function yy(e,t,n){null==t&&(t=e||0,e=0),n||(n=t<e?-1:1);for(var r=Math.max(Math.ceil((t-e)/n),0),i=Array(r),o=0;o<r;o++,e+=n)i[o]=e;return i}function wy(e,t){if(null==t||t<1)return[];for(var n=[],r=0,i=e.length;r<i;)n.push(qp.call(e,r,r+=t));return n}function vy(e,t){return e._chain?qf(t).chain():t}function by(e){return Qm(dg(e),function(t){var n=qf[t]=e[t];qf.prototype[t]=function(){var e=[this._wrapped];return jp.apply(e,arguments),vy(this,n.apply(qf,e))}}),qf}Qm(["pop","push","reverse","shift","sort","splice","unshift"],function(e){var t=Kp[e];qf.prototype[e]=function(){var n=this._wrapped;return null!=n&&(t.apply(n,arguments),"shift"!==e&&"splice"!==e||0!==n.length||delete n[0]),vy(this,n)}}),Qm(["concat","join","slice"],function(e){var t=Kp[e];qf.prototype[e]=function(){var e=this._wrapped;return null!=e&&(e=t.apply(e,arguments)),vy(this,e)}});const Cy=qf;var By=by(r);function Ey(){}function _y(e,t,n){return function(r){return r.lift(new Fy(e,t,n))}}By._=By;class Fy{constructor(e,t,n){this.nextOrObserver=e,this.error=t,this.complete=n}call(e,t){return t.subscribe(new xy(e,this.nextOrObserver,this.error,this.complete))}}class xy extends f{constructor(e,t,n,r){super(e),this._tapNext=Ey,this._tapError=Ey,this._tapComplete=Ey,this._tapError=n||Ey,this._tapComplete=r||Ey,i(t)?(this._context=this,this._tapNext=t):t&&(this._context=t,this._tapNext=t.next||Ey,this._tapError=t.error||Ey,this._tapComplete=t.complete||Ey)}_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()}}let Ty=(()=>{class e{constructor(e,t){this.http=e,this.baseUrl=t}createWebsiteMetric(e){return e.DailyCookieGuid=this.dailyCookieGuid,this.http.post(`${this.baseUrl}WebsiteMetrics/WebsiteMetric`,e).pipe(_y(e=>{this.currentWebsiteMetricSeq=e.WebsiteMetricSeq}))}createWebsiteMetricAction(e){return e.WebsiteMetricSeq=this.currentWebsiteMetricSeq,this.http.post(`${this.baseUrl}WebsiteMetrics/WebsiteMetricAction`,e)}}return e.\u0275fac=function(t){return new(t||e)(fr(Jd),fr("BASE_URL"))},e.\u0275prov=de({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const Qy=new w(e=>e.complete());function Sy(e){return e?function(e){return new w(t=>e.schedule(()=>t.complete()))}(e):Qy}function ky(e,t,n,r){return i(n)&&(r=n,n=void 0),r?ky(e,t,n).pipe(x(e=>A(e)?r(...e):r(e))):new w(r=>{Uy(e,t,function(e){r.next(arguments.length>1?Array.prototype.slice.call(arguments):e)},r,n)})}function Uy(e,t,n,r,i){let o;if(function(e){return e&&"function"==typeof e.addEventListener&&"function"==typeof e.removeEventListener}(e)){const r=e;e.addEventListener(t,n,i),o=()=>r.removeEventListener(t,n,i)}else if(function(e){return e&&"function"==typeof e.on&&"function"==typeof e.off}(e)){const r=e;e.on(t,n),o=()=>r.off(t,n)}else if(function(e){return e&&"function"==typeof e.addListener&&"function"==typeof e.removeListener}(e)){const r=e;e.addListener(t,n),o=()=>r.removeListener(t,n)}else{if(!e||!e.length)throw new TypeError("Invalid event target");for(let o=0,s=e.length;o<s;o++)Uy(e[o],t,n,r,i)}r.add(o)}class Dy extends h{constructor(e,t){super()}schedule(e,t=0){return this}}class Oy extends Dy{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,r=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(r,n,t)),this.pending=!0,this.delay=t,this.id=this.id||this.requestAsyncId(r,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,r=!1;try{this.work(e)}catch(i){r=!0,n=!!i&&i||new Error(i)}if(r)return this.unsubscribe(),n}_unsubscribe(){const e=this.id,t=this.scheduler,n=t.actions,r=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&n.splice(r,1),null!=e&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null}}let Ly=(()=>{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 Iy extends Ly{constructor(e,t=Ly.now){super(e,()=>Iy.delegate&&Iy.delegate!==this?Iy.delegate.now():t()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(e,t=0,n){return Iy.delegate&&Iy.delegate!==this?Iy.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}}}const Hy=new Iy(Oy);function My(e){return!A(e)&&e-parseFloat(e)+1>=0}function Ry(e){const{index:t,period:n,subscriber:r}=e;if(r.next(t),!r.closed){if(-1===n)return r.complete();e.index=t+1,this.schedule(e,n)}}class Ny extends f{notifyNext(e,t,n,r,i){this.destination.next(t)}notifyError(e,t){this.destination.error(e)}notifyComplete(e){this.destination.complete()}}class Py extends f{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 Ky(e,t,n,r,i=new Py(e,n,r)){if(!i.closed)return t instanceof w?t.subscribe(i):O(t)(i)}function Vy(...e){if(1===e.length){if(!A(e[0]))return e[0];e=e[0]}return G(e,void 0).lift(new Gy)}class Gy{call(e,t){return t.subscribe(new jy(e))}}class jy extends Ny{constructor(e){super(e),this.hasFirst=!1,this.observables=[],this.subscriptions=[]}_next(e){this.observables.push(e)}_complete(){const e=this.observables,t=e.length;if(0===t)this.destination.complete();else{for(let n=0;n<t&&!this.hasFirst;n++){const t=Ky(this,e[n],void 0,n);this.subscriptions&&this.subscriptions.push(t),this.add(t)}this.observables=null}}notifyNext(e,t,n){if(!this.hasFirst){this.hasFirst=!0;for(let e=0;e<this.subscriptions.length;e++)if(e!==n){let t=this.subscriptions[e];t.unsubscribe(),this.remove(t)}this.subscriptions=null}this.destination.next(t)}}const qy={};function zy(...e){let t,n;return F(e[e.length-1])&&(n=e.pop()),"function"==typeof e[e.length-1]&&(t=e.pop()),1===e.length&&A(e[0])&&(e=e[0]),G(e,n).lift(new Wy(t))}class Wy{constructor(e){this.resultSelector=e}call(e,t){return t.subscribe(new Xy(e,this.resultSelector))}}class Xy extends Ny{constructor(e,t){super(e),this.resultSelector=t,this.active=0,this.values=[],this.observables=[]}_next(e){this.values.push(qy),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(Ky(this,e[n],void 0,n))}}notifyComplete(e){0==(this.active-=1)&&this.destination.complete()}notifyNext(e,t,n){const r=this.values,i=this.toRespond?r[n]===qy?--this.toRespond:this.toRespond:0;r[n]=t,0===i&&(this.resultSelector?this._tryResultSelector(r):this.destination.next(r.slice()))}_tryResultSelector(e){let t;try{t=this.resultSelector.apply(this,e)}catch(n){return void this.destination.error(n)}this.destination.next(t)}}function Jy(...e){const t=e[e.length-1];return"function"==typeof t&&e.pop(),G(e,void 0).lift(new Yy(t))}new w(Ey);class Yy{constructor(e){this.resultSelector=e}call(e,t){return t.subscribe(new $y(e,this.resultSelector))}}class $y extends f{constructor(e,t,n=Object.create(null)){super(e),this.resultSelector=t,this.iterators=[],this.active=0,this.resultSelector="function"==typeof t?t:void 0}_next(e){const t=this.iterators;A(e)?t.push(new ew(e)):t.push("function"==typeof e[k]?new Zy(e[k]()):new tw(this.destination,this,e))}_complete(){const e=this.iterators,t=e.length;if(this.unsubscribe(),0!==t){this.active=t;for(let n=0;n<t;n++){let t=e[n];t.stillUnsubscribed?this.destination.add(t.subscribe()):this.active--}}else this.destination.complete()}notifyInactive(){this.active--,0===this.active&&this.destination.complete()}checkIterators(){const e=this.iterators,t=e.length,n=this.destination;for(let o=0;o<t;o++){let t=e[o];if("function"==typeof t.hasValue&&!t.hasValue())return}let r=!1;const i=[];for(let o=0;o<t;o++){let t=e[o],s=t.next();if(t.hasCompleted()&&(r=!0),s.done)return void n.complete();i.push(s.value)}this.resultSelector?this._tryresultSelector(i):n.next(i),r&&n.complete()}_tryresultSelector(e){let t;try{t=this.resultSelector.apply(this,e)}catch(n){return void this.destination.error(n)}this.destination.next(t)}}class Zy{constructor(e){this.iterator=e,this.nextResult=e.next()}hasValue(){return!0}next(){const e=this.nextResult;return this.nextResult=this.iterator.next(),e}hasCompleted(){const e=this.nextResult;return Boolean(e&&e.done)}}class ew{constructor(e){this.array=e,this.index=0,this.length=0,this.length=e.length}[k](){return this}next(e){const t=this.index++;return t<this.length?{value:this.array[t],done:!1}:{value:null,done:!0}}hasValue(){return this.array.length>this.index}hasCompleted(){return this.array.length===this.index}}class tw extends M{constructor(e,t,n){super(e),this.parent=t,this.observable=n,this.stillUnsubscribed=!0,this.buffer=[],this.isComplete=!1}[k](){return this}next(){const e=this.buffer;return 0===e.length&&this.isComplete?{value:null,done:!0}:{value:e.shift(),done:!1}}hasValue(){return this.buffer.length>0}hasCompleted(){return 0===this.buffer.length&&this.isComplete}notifyComplete(){this.buffer.length>0?(this.isComplete=!0,this.parent.notifyInactive()):this.destination.complete()}notifyNext(e){this.buffer.push(e),this.parent.checkIterators()}subscribe(){return R(this.observable,new H(this))}}function nw(...e){return V(1)(Td(...e))}function rw(e){return t=>t.lift(new iw(e))}class iw{constructor(e){this.notifier=e}call(e,t){const n=new ow(e),r=R(this.notifier,new H(n));return r&&!n.seenValue?(n.add(r),t.subscribe(n)):n}}class ow extends M{constructor(e){super(e),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}}const sw=(()=>{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 aw(e){return t=>0===e?Sy():t.lift(new lw(e))}class lw{constructor(e){if(this.total=e,this.total<0)throw new sw}call(e,t){return t.subscribe(new Aw(e,this.total))}}class Aw extends f{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()))}}class cw{constructor(e,t){this.compare=e,this.keySelector=t}call(e,t){return t.subscribe(new uw(e,this.compare,this.keySelector))}}class uw extends f{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(r){return this.destination.error(r)}let n=!1;if(this.hasKey)try{const{compare:e}=this;n=e(this.key,t)}catch(r){return this.destination.error(r)}else this.hasKey=!0;n||(this.key=t,this.destination.next(e))}}function hw(e,t){return"function"==typeof t?n=>n.pipe(hw((n,r)=>I(e(n,r)).pipe(x((e,i)=>t(n,e,r,i))))):t=>t.lift(new dw(e))}class dw{constructor(e){this.project=e}call(e,t){return t.subscribe(new pw(e,this.project))}}class pw extends M{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(r){return void this.destination.error(r)}this._innerSub(t)}_innerSub(e){const t=this.innerSubscription;t&&t.unsubscribe();const n=new H(this),r=this.destination;r.add(n),this.innerSubscription=R(e,n),this.innerSubscription!==n&&r.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)}}function fw(...e){return t=>{let n;return"function"==typeof e[e.length-1]&&(n=e.pop()),t.lift(new gw(e,n))}}class gw{constructor(e,t){this.observables=e,this.project=t}call(e,t){return t.subscribe(new mw(e,this.observables,this.project))}}class mw extends Ny{constructor(e,t,n){super(e),this.observables=t,this.project=n,this.toRespond=[];const r=t.length;this.values=new Array(r);for(let i=0;i<r;i++)this.toRespond.push(i);for(let i=0;i<r;i++)this.add(Ky(this,t[i],void 0,i))}notifyNext(e,t,n){this.values[n]=t;const r=this.toRespond;if(r.length>0){const e=r.indexOf(n);-1!==e&&r.splice(e,1)}}notifyComplete(){}_next(e){if(0===this.toRespond.length){const t=[e,...this.values];this.project?this._tryProject(t):this.destination.next(t)}}_tryProject(e){let t;try{t=this.project.apply(this,e)}catch(n){return void this.destination.error(n)}this.destination.next(t)}}class yw{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 Td(this.value);case"E":return e=this.error,new w(t=>t.error(e));case"C":return Sy()}var e;throw new Error("unexpected notification kind value")}static createNext(e){return void 0!==e?new yw("N",e):yw.undefinedValueNotification}static createError(e){return new yw("E",void 0,e)}static createComplete(){return yw.completeNotification}}function ww(e,t=Hy){var n;const r=(n=e)instanceof Date&&!isNaN(+n)?+e-t.now():Math.abs(e);return e=>e.lift(new vw(r,t))}yw.completeNotification=new yw("C"),yw.undefinedValueNotification=new yw("N",void 0);class vw{constructor(e,t){this.delay=e,this.scheduler=t}call(e,t){return t.subscribe(new bw(e,this.delay,this.scheduler))}}class bw extends f{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,r=e.scheduler,i=e.destination;for(;n.length>0&&n[0].time-r.now()<=0;)n.shift().notification.observe(i);if(n.length>0){const t=Math.max(0,n[0].time-r.now());this.schedule(e,t)}else this.unsubscribe(),t.active=!1}_schedule(e){this.active=!0,this.destination.add(e.schedule(bw.dispatch,this.delay,{source:this,destination:this.destination,scheduler:e}))}scheduleNotification(e){if(!0===this.errored)return;const t=this.scheduler,n=new Cw(t.now()+this.delay,e);this.queue.push(n),!1===this.active&&this._schedule(t)}_next(e){this.scheduleNotification(yw.createNext(e))}_error(e){this.errored=!0,this.queue=[],this.destination.error(e),this.unsubscribe()}_complete(){this.scheduleNotification(yw.createComplete()),this.unsubscribe()}}class Cw{constructor(e,t){this.time=e,this.notification=t}}class Bw{constructor(e){this.total=e}call(e,t){return t.subscribe(new Ew(e,this.total))}}class Ew extends f{constructor(e,t){super(e),this.total=t,this.count=0}_next(e){++this.count>this.total&&this.destination.next(e)}}function _w(e,t){if(1&e){const e=ta();Js(0,"button",1),ia("click",function(){return Ot(e),aa().close()}),Js(1,"span",2),Da(2,"\xd7"),Ys(),Ys()}}const Fw=["*"],xw=["dialog"],Tw=["ngbNavOutlet",""];function Qw(e,t){}const Sw=function(e){return{$implicit:e}};function kw(e,t){if(1&e&&(Js(0,"div",2),js(1,Qw,0,0,"ng-template",3),Ys()),2&e){const e=aa().$implicit,t=aa();Ws("item",e)("nav",t.nav)("role",t.paneRole),uo(1),Ws("ngTemplateOutlet",(null==e.contentTpl?null:e.contentTpl.templateRef)||null)("ngTemplateOutletContext",MA(5,Sw,e.active||t.isPanelTransitioning(e)))}}function Uw(e,t){if(1&e&&js(0,kw,2,7,"div",1),2&e){const e=t.$implicit,n=aa();Ws("ngIf",e.isPanelInDom()||n.isPanelTransitioning(e))}}function Dw(e,t){1&e&&(Js(0,"span",9),_l(1,10),Ys())}function Ow(e,t){1&e&&(Js(0,"span",9),_l(1,11),Ys())}function Lw(e,t){1&e&&(Js(0,"span",9),_l(1,12),Ys())}function Iw(e,t){1&e&&(Js(0,"span",9),_l(1,13),Ys())}function Hw(e,t){1&e&&Da(0,"...")}function Mw(e,t){1&e&&(Js(0,"span",15),Da(1,"(current)"),Ys())}function Rw(e,t){if(1&e&&(Da(0),js(1,Mw,2,0,"span",14)),2&e){const e=t.$implicit,n=t.currentPage;La(" ",e," "),uo(1),Ws("ngIf",e===n)}}function Nw(e,t){}const Pw=function(e){return{disabled:!0,currentPage:e}};function Kw(e,t){if(1&e&&(Js(0,"a",20),js(1,Nw,0,0,"ng-template",8),Ys()),2&e){const e=aa(2).$implicit,t=aa(),n=qs(9);uo(1),Ws("ngTemplateOutlet",(null==t.tplEllipsis?null:t.tplEllipsis.templateRef)||n)("ngTemplateOutletContext",MA(2,Pw,e))}}function Vw(e,t){}const Gw=function(e,t,n){return{disabled:e,$implicit:t,currentPage:n}};function jw(e,t){if(1&e){const e=ta();Js(0,"a",21),ia("click",function(t){Ot(e);const n=aa().$implicit;return aa(2).selectPage(n),t.preventDefault()}),js(1,Vw,0,0,"ng-template",8),Ys()}if(2&e){const e=aa().$implicit,t=aa(),n=t.disabled,r=t.$implicit,i=aa(),o=qs(11);Ps("tabindex",n?"-1":null)("aria-disabled",n?"true":null),uo(1),Ws("ngTemplateOutlet",(null==i.tplNumber?null:i.tplNumber.templateRef)||o)("ngTemplateOutletContext",NA(4,Gw,n,e,r))}}function qw(e,t){if(1&e&&(Js(0,"li",17),js(1,Kw,2,4,"a",18),js(2,jw,2,8,"a",19),Ys()),2&e){const e=t.$implicit,n=aa(),r=n.$implicit,i=n.disabled,o=aa();ba("active",e===r)("disabled",o.isEllipsis(e)||i),Ps("aria-current",e===r?"page":null),uo(1),Ws("ngIf",o.isEllipsis(e)),uo(1),Ws("ngIf",!o.isEllipsis(e))}}function zw(e,t){1&e&&js(0,qw,3,7,"li",16),2&e&&Ws("ngForOf",t.pages)}function Ww(e,t){}const Xw=function(e,t){return{disabled:e,currentPage:t}};function Jw(e,t){if(1&e){const e=ta();Js(0,"li",17),Js(1,"a",22),ia("click",function(t){return Ot(e),aa().selectPage(1),t.preventDefault()}),js(2,Ww,0,0,"ng-template",8),Ys(),Ys()}if(2&e){const e=aa(),t=qs(1);ba("disabled",e.previousDisabled()),uo(1),Ps("tabindex",e.previousDisabled()?"-1":null)("aria-disabled",e.previousDisabled()?"true":null),uo(1),Ws("ngTemplateOutlet",(null==e.tplFirst?null:e.tplFirst.templateRef)||t)("ngTemplateOutletContext",RA(6,Xw,e.previousDisabled(),e.page))}}function Yw(e,t){}const $w=function(e){return{disabled:e}};function Zw(e,t){if(1&e){const e=ta();Js(0,"li",17),Js(1,"a",23),ia("click",function(t){Ot(e);const n=aa();return n.selectPage(n.page-1),t.preventDefault()}),js(2,Yw,0,0,"ng-template",8),Ys(),Ys()}if(2&e){const e=aa(),t=qs(3);ba("disabled",e.previousDisabled()),uo(1),Ps("tabindex",e.previousDisabled()?"-1":null)("aria-disabled",e.previousDisabled()?"true":null),uo(1),Ws("ngTemplateOutlet",(null==e.tplPrevious?null:e.tplPrevious.templateRef)||t)("ngTemplateOutletContext",MA(6,$w,e.previousDisabled()))}}function ev(e,t){}function tv(e,t){}function nv(e,t){if(1&e){const e=ta();Js(0,"li",17),Js(1,"a",24),ia("click",function(t){Ot(e);const n=aa();return n.selectPage(n.page+1),t.preventDefault()}),js(2,tv,0,0,"ng-template",8),Ys(),Ys()}if(2&e){const e=aa(),t=qs(5);ba("disabled",e.nextDisabled()),uo(1),Ps("tabindex",e.nextDisabled()?"-1":null)("aria-disabled",e.nextDisabled()?"true":null),uo(1),Ws("ngTemplateOutlet",(null==e.tplNext?null:e.tplNext.templateRef)||t)("ngTemplateOutletContext",RA(6,Xw,e.nextDisabled(),e.page))}}function rv(e,t){}function iv(e,t){if(1&e){const e=ta();Js(0,"li",17),Js(1,"a",25),ia("click",function(t){Ot(e);const n=aa();return n.selectPage(n.pageCount),t.preventDefault()}),js(2,rv,0,0,"ng-template",8),Ys(),Ys()}if(2&e){const e=aa(),t=qs(7);ba("disabled",e.nextDisabled()),uo(1),Ps("tabindex",e.nextDisabled()?"-1":null)("aria-disabled",e.nextDisabled()?"true":null),uo(1),Ws("ngTemplateOutlet",(null==e.tplLast?null:e.tplLast.templateRef)||t)("ngTemplateOutletContext",RA(6,Xw,e.nextDisabled(),e.page))}}const ov=function(e,t,n){return{$implicit:e,pages:t,disabled:n}};function sv(e,t){1&e&&Da(0),2&e&&Oa(aa(2).title)}function av(e,t){}function lv(e,t){if(1&e&&(Js(0,"h3",3),js(1,sv,1,1,"ng-template",null,4,mc),js(3,av,0,0,"ng-template",5),Ys()),2&e){const e=qs(2),t=aa();uo(3),Ws("ngTemplateOutlet",t.isTitleTemplate()?t.title:e)("ngTemplateOutletContext",t.context)}}function Av(e){return!isNaN(function(e){return parseInt(`${e}`,10)}(e))}function cv(e){return null!=e}function uv(e){return(e||document.body).getBoundingClientRect()}"undefined"==typeof Element||Element.prototype.closest||(Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),Element.prototype.closest=function(e){let t=this;if(!document.documentElement.contains(t))return null;do{if(t.matches(e))return t;t=t.parentElement||t.parentNode}while(null!==t&&1===t.nodeType);return null});const hv={animation:!0,transitionTimerDelayMs:5};let dv=(()=>{class e{constructor(){this.animation=hv.animation}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=de({factory:function(){return new e},token:e,providedIn:"root"}),e})();const pv=()=>{},{transitionTimerDelayMs:fv}=hv,gv=new Map,mv=(e,t,n,r)=>{let i=r.context||{};const o=gv.get(t);if(o)switch(r.runningTransition){case"continue":return Qy;case"stop":e.run(()=>o.transition$.complete()),i=Object.assign(o.context,i),gv.delete(t)}const s=n(t,r.animation,i)||pv;if(!r.animation||"none"===window.getComputedStyle(t).transitionProperty)return e.run(()=>s()),Td(void 0).pipe(function(e){return t=>new w(n=>t.subscribe(t=>e.run(()=>n.next(t)),t=>e.run(()=>n.error(t)),()=>e.run(()=>n.complete())))}(e));const a=new E,l=new E,A=a.pipe(function(...e){return t=>nw(t,Td(...e))}(!0));gv.set(t,{transition$:a,complete:()=>{l.next(),l.complete()},context:i});const c=function(e){const{transitionDelay:t,transitionDuration:n}=window.getComputedStyle(e);return 1e3*(parseFloat(t)+parseFloat(n))}(t);return e.runOutsideAngular(()=>{const n=ky(t,"transitionend").pipe(rw(A),Qd(({target:e})=>e===t));Vy(function(e=0,t,n){let r=-1;return My(t)?r=Number(t)<1?1:Number(t):F(t)&&(n=t),F(n)||(n=Hy),new w(t=>{const i=My(e)?e:+e-n.now();return n.schedule(Ry,i,{index:0,period:r,subscriber:t})})}(c+fv).pipe(rw(A)),n,l).pipe(rw(A)).subscribe(()=>{gv.delete(t),e.run(()=>{s(),a.next(),a.complete()})})}),a.asObservable()},yv=(e,t,n)=>{let{direction:r,maxHeight:i}=n;const{classList:o}=e;function s(){o.add("collapse"),"show"===r?o.add("show"):o.remove("show")}if(t)return i||(i=function(e){if("undefined"==typeof navigator)return"0px";const{classList:t}=e,n=t.contains("show");n||t.add("show"),e.style.height="";const r=e.getBoundingClientRect().height+"px";return n||t.remove("show"),r}(e),n.maxHeight=i,e.style.height="show"!==r?i:"0px",o.remove("collapse"),o.remove("collapsing"),o.remove("show"),uv(e),o.add("collapsing")),e.style.height="show"===r?i:"0px",()=>{s(),o.remove("collapsing"),e.style.height=""};s()};let wv=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=We({type:e}),e.\u0275inj=pe({imports:[[Vu]]}),e})(),vv=(()=>{class e{constructor(e){this._ngbConfig=e,this.dismissible=!0,this.type="warning"}get animation(){return void 0===this._animation?this._ngbConfig.animation:this._animation}set animation(e){this._animation=e}}return e.\u0275fac=function(t){return new(t||e)(fr(dv))},e.\u0275prov=de({factory:function(){return new e(fr(dv))},token:e,providedIn:"root"}),e})();const bv=({classList:e})=>{e.remove("show")};let Cv=(()=>{class e{constructor(e,t,n,r){this._renderer=t,this._element=n,this._zone=r,this.closed=new $A,this.dismissible=e.dismissible,this.type=e.type,this.animation=e.animation}close(){const e=mv(this._zone,this._element.nativeElement,bv,{animation:this.animation,runningTransition:"continue"});return e.subscribe(()=>this.closed.emit()),e}ngOnChanges(e){const t=e.type;t&&!t.firstChange&&(this._renderer.removeClass(this._element.nativeElement,`alert-${t.previousValue}`),this._renderer.addClass(this._element.nativeElement,`alert-${t.currentValue}`))}ngOnInit(){this._renderer.addClass(this._element.nativeElement,`alert-${this.type}`)}}return e.\u0275fac=function(t){return new(t||e)(zs(vv),zs(Vl),zs(Nl),zs(Kc))},e.\u0275cmp=Ge({type:e,selectors:[["ngb-alert"]],hostAttrs:["role","alert",1,"alert","show"],hostVars:4,hostBindings:function(e,t){2&e&&ba("fade",t.animation)("alert-dismissible",t.dismissible)},inputs:{dismissible:"dismissible",type:"type",animation:"animation"},outputs:{closed:"closed"},exportAs:["ngbAlert"],features:[ct],ngContentSelectors:Fw,decls:2,vars:1,consts:function(){let e;return e=$localize`:@@ngb.alert.close␟f4e529ae5ffd73001d1ff4bbdeeb0a72e342e5c8␟7819314041543176992:Close`,[["type","button","class","close","aria-label",e,3,"click",4,"ngIf"],["type","button","aria-label",e,1,"close",3,"click"],["aria-hidden","true"]]},template:function(e,t){1&e&&(Aa(),ca(0),js(1,_w,3,0,"button",0)),2&e&&(uo(1),Ws("ngIf",t.dismissible))},directives:[Su],styles:["ngb-alert{display:block}"],encapsulation:2,changeDetection:0}),e})(),Bv=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=We({type:e}),e.\u0275inj=pe({imports:[[Vu]]}),e})(),Ev=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Je({type:e,selectors:[["","ngbButtonLabel",""]],hostVars:8,hostBindings:function(e,t){2&e&&ba("btn",!0)("active",t.active)("disabled",t.disabled)("focus",t.focused)}}),e})(),_v=(()=>{class e{constructor(e,t){this._label=e,this._cd=t,this.disabled=!1,this.valueChecked=!0,this.valueUnChecked=!1,this.onChange=e=>{},this.onTouched=()=>{}}set focused(e){this._label.focused=e,e||this.onTouched()}onInputChange(e){const t=e.target.checked?this.valueChecked:this.valueUnChecked;this.onChange(t),this.onTouched(),this.writeValue(t)}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this.disabled=e,this._label.disabled=e}writeValue(e){this.checked=e===this.valueChecked,this._label.active=this.checked,this._cd.markForCheck()}}return e.\u0275fac=function(t){return new(t||e)(zs(Ev),zs(hA))},e.\u0275dir=Je({type:e,selectors:[["","ngbButton","","type","checkbox"]],hostVars:2,hostBindings:function(e,t){1&e&&ia("change",function(e){return t.onInputChange(e)})("focus",function(){return t.focused=!0})("blur",function(){return t.focused=!1}),2&e&&Ma("checked",t.checked)("disabled",t.disabled)},inputs:{disabled:"disabled",valueChecked:"valueChecked",valueUnChecked:"valueUnChecked"},features:[Dl([{provide:xh,useExisting:oe(()=>e),multi:!0}])]}),e})(),Fv=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=We({type:e}),e.\u0275inj=pe({}),e})(),xv=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=We({type:e}),e.\u0275inj=pe({imports:[[Vu]]}),e})(),Tv=(()=>{class e{constructor(e){this._ngbConfig=e}get animation(){return void 0===this._animation?this._ngbConfig.animation:this._animation}set animation(e){this._animation=e}}return e.\u0275fac=function(t){return new(t||e)(fr(dv))},e.\u0275prov=de({factory:function(){return new e(fr(dv))},token:e,providedIn:"root"}),e})(),Qv=(()=>{class e{constructor(e,t,n){this._element=e,this._zone=n,this.collapsed=!1,this.ngbCollapseChange=new $A,this.shown=new $A,this.hidden=new $A,this.animation=t.animation}ngOnInit(){this._runTransition(this.collapsed,!1)}ngOnChanges({collapsed:e}){e.firstChange||this._runTransitionWithEvents(this.collapsed,this.animation)}toggle(e=this.collapsed){this.collapsed=!e,this.ngbCollapseChange.next(this.collapsed),this._runTransitionWithEvents(this.collapsed,this.animation)}_runTransition(e,t){return mv(this._zone,this._element.nativeElement,yv,{animation:t,runningTransition:"stop",context:{direction:e?"hide":"show"}})}_runTransitionWithEvents(e,t){this._runTransition(e,t).subscribe(()=>{e?this.hidden.emit():this.shown.emit()})}}return e.\u0275fac=function(t){return new(t||e)(zs(Nl),zs(Tv),zs(Kc))},e.\u0275dir=Je({type:e,selectors:[["","ngbCollapse",""]],inputs:{collapsed:["ngbCollapse","collapsed"],animation:"animation"},outputs:{ngbCollapseChange:"ngbCollapseChange",shown:"shown",hidden:"hidden"},exportAs:["ngbCollapse"],features:[ct]}),e})(),Sv=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=We({type:e}),e.\u0275inj=pe({}),e})();var kv=(()=>(function(e){e[e.Tab=9]="Tab",e[e.Enter=13]="Enter",e[e.Escape=27]="Escape",e[e.Space=32]="Space",e[e.PageUp=33]="PageUp",e[e.PageDown=34]="PageDown",e[e.End=35]="End",e[e.Home=36]="Home",e[e.ArrowLeft=37]="ArrowLeft",e[e.ArrowUp=38]="ArrowUp",e[e.ArrowRight=39]="ArrowRight",e[e.ArrowDown=40]="ArrowDown"}(kv||(kv={})),kv))();const Uv=(e,t)=>!!t&&t.some(t=>t.contains(e)),Dv=(e,t)=>!t||null!=function(e,t){return t?void 0===e.closest?null:e.closest(t):null}(e,t),Ov="undefined"!=typeof navigator&&!!navigator.userAgent&&(/iPad|iPhone|iPod/.test(navigator.userAgent)||/Macintosh/.test(navigator.userAgent)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>2||/Android/.test(navigator.userAgent));function Lv(e,t,n,r,i,o,s,a){n&&e.runOutsideAngular((e=>Ov?()=>setTimeout(()=>e(),100):e)(()=>{const l=ky(t,"keydown").pipe(rw(i),Qd(e=>e.which===kv.Escape),_y(e=>e.preventDefault())),A=ky(t,"mousedown").pipe(x(e=>{const t=e.target;return 2!==e.button&&!Uv(t,s)&&("inside"===n?Uv(t,o)&&Dv(t,a):"outside"===n?!Uv(t,o):Dv(t,a)||!Uv(t,o))}),rw(i)),c=ky(t,"mouseup").pipe(fw(A),Qd(([e,t])=>t),ww(0),rw(i));Vy([l.pipe(x(e=>0)),c.pipe(x(e=>1))]).subscribe(t=>e.run(()=>r(t)))}))}const Iv=["a[href]","button:not([disabled])",'input:not([disabled]):not([type="hidden"])',"select:not([disabled])","textarea:not([disabled])","[contenteditable]",'[tabindex]:not([tabindex="-1"])'].join(", ");function Hv(e){const t=Array.from(e.querySelectorAll(Iv)).filter(e=>-1!==e.tabIndex);return[t[0],t[t.length-1]]}const Mv=/\s+/,Rv=new class{getAllStyles(e){return window.getComputedStyle(e)}getStyle(e,t){return this.getAllStyles(e)[t]}isStaticPositioned(e){return"static"===(this.getStyle(e,"position")||"static")}offsetParent(e){let t=e.offsetParent||document.documentElement;for(;t&&t!==document.documentElement&&this.isStaticPositioned(t);)t=t.offsetParent;return t||document.documentElement}position(e,t=!0){let n,r={width:0,height:0,top:0,bottom:0,left:0,right:0};if("fixed"===this.getStyle(e,"position"))n=e.getBoundingClientRect(),n={top:n.top,bottom:n.bottom,left:n.left,right:n.right,height:n.height,width:n.width};else{const t=this.offsetParent(e);n=this.offset(e,!1),t!==document.documentElement&&(r=this.offset(t,!1)),r.top+=t.clientTop,r.left+=t.clientLeft}return n.top-=r.top,n.bottom-=r.top,n.left-=r.left,n.right-=r.left,t&&(n.top=Math.round(n.top),n.bottom=Math.round(n.bottom),n.left=Math.round(n.left),n.right=Math.round(n.right)),n}offset(e,t=!0){const n=e.getBoundingClientRect(),r=window.pageYOffset-document.documentElement.clientTop,i=window.pageXOffset-document.documentElement.clientLeft;let o={height:n.height||e.offsetHeight,width:n.width||e.offsetWidth,top:n.top+r,bottom:n.bottom+r,left:n.left+i,right:n.right+i};return t&&(o.height=Math.round(o.height),o.width=Math.round(o.width),o.top=Math.round(o.top),o.bottom=Math.round(o.bottom),o.left=Math.round(o.left),o.right=Math.round(o.right)),o}positionElements(e,t,n,r){const[i="top",o="center"]=n.split("-"),s=r?this.offset(e,!1):this.position(e,!1),a=this.getAllStyles(t),l=parseFloat(a.marginTop),A=parseFloat(a.marginBottom),c=parseFloat(a.marginLeft),u=parseFloat(a.marginRight);let h=0,d=0;switch(i){case"top":h=s.top-(t.offsetHeight+l+A);break;case"bottom":h=s.top+s.height;break;case"left":d=s.left-(t.offsetWidth+c+u);break;case"right":d=s.left+s.width}switch(o){case"top":h=s.top;break;case"bottom":h=s.top+s.height-t.offsetHeight;break;case"left":d=s.left;break;case"right":d=s.left+s.width-t.offsetWidth;break;case"center":"top"===i||"bottom"===i?d=s.left+s.width/2-t.offsetWidth/2:h=s.top+s.height/2-t.offsetHeight/2}t.style.transform=`translate(${Math.round(d)}px, ${Math.round(h)}px)`;const p=t.getBoundingClientRect(),f=document.documentElement,g=window.innerHeight||f.clientHeight,m=window.innerWidth||f.clientWidth;return p.left>=0&&p.top>=0&&p.right<=m&&p.bottom<=g}};function Nv(e,t,n,r,i){let o=Array.isArray(n)?n:n.split(Mv);const s=["top","bottom","left","right","top-left","top-right","bottom-left","bottom-right","left-top","left-bottom","right-top","right-bottom"],a=t.classList,l=e=>{const[t,n]=e.split("-"),r=[];return i&&(r.push(`${i}-${t}`),n&&r.push(`${i}-${t}-${n}`),r.forEach(e=>{a.add(e)})),r};i&&s.forEach(e=>{a.remove(`${i}-${e}`)});let A=o.findIndex(e=>"auto"===e);A>=0&&s.forEach(function(e){null==o.find(t=>-1!==t.search("^"+e))&&o.splice(A++,1,e)});const c=t.style;c.position="absolute",c.top="0",c.left="0",c["will-change"]="transform";let u=null,h=!1;for(u of o){let n=l(u);if(Rv.positionElements(e,t,u,r)){h=!0;break}i&&n.forEach(e=>{a.remove(e)})}return h||(u=o[0],l(u),Rv.positionElements(e,t,u,r)),u}new Date(1882,10,12),new Date(2174,10,25);let Pv=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=We({type:e}),e.\u0275inj=pe({imports:[[Vu,xd]]}),e})(),Kv=(()=>{class e{constructor(){this.autoClose=!0,this.placement=["bottom-left","bottom-right","top-left","top-right"]}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=de({factory:function(){return new e},token:e,providedIn:"root"}),e})(),Vv=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Je({type:e,selectors:[["",8,"navbar"]]}),e})(),Gv=(()=>{class e{constructor(e){this.elementRef=e,this._disabled=!1}set disabled(e){this._disabled=""===e||!0===e}get disabled(){return this._disabled}}return e.\u0275fac=function(t){return new(t||e)(zs(Nl))},e.\u0275dir=Je({type:e,selectors:[["","ngbDropdownItem",""]],hostAttrs:[1,"dropdown-item"],hostVars:2,hostBindings:function(e,t){2&e&&ba("disabled",t.disabled)},inputs:{disabled:"disabled"}}),e})(),jv=(()=>{class e{constructor(e,t){this.dropdown=e,this.placement="bottom",this.isOpen=!1,this.nativeElement=t.nativeElement}}return e.\u0275fac=function(t){return new(t||e)(zs(oe(()=>Wv)),zs(Nl))},e.\u0275dir=Je({type:e,selectors:[["","ngbDropdownMenu",""]],contentQueries:function(e,t,n){if(1&e&&hc(n,Gv,4),2&e){let e;cc(e=dc())&&(t.menuItems=e)}},hostVars:5,hostBindings:function(e,t){1&e&&ia("keydown.ArrowUp",function(e){return t.dropdown.onKeyDown(e)})("keydown.ArrowDown",function(e){return t.dropdown.onKeyDown(e)})("keydown.Home",function(e){return t.dropdown.onKeyDown(e)})("keydown.End",function(e){return t.dropdown.onKeyDown(e)})("keydown.Enter",function(e){return t.dropdown.onKeyDown(e)})("keydown.Space",function(e){return t.dropdown.onKeyDown(e)})("keydown.Tab",function(e){return t.dropdown.onKeyDown(e)})("keydown.Shift.Tab",function(e){return t.dropdown.onKeyDown(e)}),2&e&&(Ps("x-placement",t.placement),ba("dropdown-menu",!0)("show",t.dropdown.isOpen()))}}),e})(),qv=(()=>{class e{constructor(e,t){this.dropdown=e,this.nativeElement=t.nativeElement}}return e.\u0275fac=function(t){return new(t||e)(zs(oe(()=>Wv)),zs(Nl))},e.\u0275dir=Je({type:e,selectors:[["","ngbDropdownAnchor",""]],hostAttrs:[1,"dropdown-toggle"],hostVars:1,hostBindings:function(e,t){2&e&&Ps("aria-expanded",t.dropdown.isOpen())}}),e})(),zv=(()=>{class e extends qv{constructor(e,t){super(e,t)}}return e.\u0275fac=function(t){return new(t||e)(zs(oe(()=>Wv)),zs(Nl))},e.\u0275dir=Je({type:e,selectors:[["","ngbDropdownToggle",""]],hostAttrs:[1,"dropdown-toggle"],hostVars:1,hostBindings:function(e,t){1&e&&ia("click",function(){return t.dropdown.toggle()})("keydown.ArrowUp",function(e){return t.dropdown.onKeyDown(e)})("keydown.ArrowDown",function(e){return t.dropdown.onKeyDown(e)})("keydown.Home",function(e){return t.dropdown.onKeyDown(e)})("keydown.End",function(e){return t.dropdown.onKeyDown(e)})("keydown.Tab",function(e){return t.dropdown.onKeyDown(e)})("keydown.Shift.Tab",function(e){return t.dropdown.onKeyDown(e)}),2&e&&Ps("aria-expanded",t.dropdown.isOpen())},features:[Dl([{provide:qv,useExisting:oe(()=>e)}]),xs]}),e})(),Wv=(()=>{class e{constructor(e,t,n,r,i,o,s){this._changeDetector=e,this._document=n,this._ngZone=r,this._elementRef=i,this._renderer=o,this._closed$=new E,this._bodyContainer=null,this._open=!1,this.openChange=new $A,this.placement=t.placement,this.container=t.container,this.autoClose=t.autoClose,this.display=s?"static":"dynamic",this._zoneSubscription=r.onStable.subscribe(()=>{this._positionMenu()})}ngAfterContentInit(){this._ngZone.onStable.pipe(aw(1)).subscribe(()=>{this._applyPlacementClasses(),this._open&&this._setCloseHandlers()})}ngOnChanges(e){if(e.container&&this._open&&this._applyContainer(this.container),e.placement&&!e.placement.isFirstChange&&this._applyPlacementClasses(),e.dropdownClass){const{currentValue:t,previousValue:n}=e.dropdownClass;this._applyCustomDropdownClass(t,n)}}isOpen(){return this._open}open(){this._open||(this._open=!0,this._applyContainer(this.container),this.openChange.emit(!0),this._setCloseHandlers(),this._anchor&&this._anchor.nativeElement.focus())}_setCloseHandlers(){Lv(this._ngZone,this._document,this.autoClose,e=>{this.close(),0===e&&this._anchor.nativeElement.focus()},this._closed$,this._menu?[this._menu.nativeElement]:[],this._anchor?[this._anchor.nativeElement]:[],".dropdown-item,.dropdown-divider")}close(){this._open&&(this._open=!1,this._resetContainer(),this._closed$.next(),this.openChange.emit(!1),this._changeDetector.markForCheck())}toggle(){this.isOpen()?this.close():this.open()}ngOnDestroy(){this._resetContainer(),this._closed$.next(),this._zoneSubscription.unsubscribe()}onKeyDown(e){const t=e.which,n=this._getMenuElements();let r=-1,i=null;const o=this._isEventFromToggle(e);if(!o&&n.length&&n.forEach((t,n)=>{t.contains(e.target)&&(i=t),t===this._document.activeElement&&(r=n)}),t!==kv.Space&&t!==kv.Enter){if(t!==kv.Tab){if(o||i){if(this.open(),n.length){switch(t){case kv.ArrowDown:r=Math.min(r+1,n.length-1);break;case kv.ArrowUp:if(this._isDropup()&&-1===r){r=n.length-1;break}r=Math.max(r-1,0);break;case kv.Home:r=0;break;case kv.End:r=n.length-1}n[r].focus()}e.preventDefault()}}else if(e.target&&this.isOpen()&&this.autoClose){if(this._anchor.nativeElement===e.target)return void("body"!==this.container||e.shiftKey?e.shiftKey&&this.close():(this._renderer.setAttribute(this._menu.nativeElement,"tabindex","0"),this._menu.nativeElement.focus(),this._renderer.removeAttribute(this._menu.nativeElement,"tabindex")));if("body"===this.container){const t=this._menu.nativeElement.querySelectorAll(Iv);e.shiftKey&&e.target===t[0]?(this._anchor.nativeElement.focus(),e.preventDefault()):e.shiftKey||e.target!==t[t.length-1]||(this._anchor.nativeElement.focus(),this.close())}else ky(e.target,"focusout").pipe(aw(1)).subscribe(({relatedTarget:e})=>{this._elementRef.nativeElement.contains(e)||this.close()})}}else!i||!0!==this.autoClose&&"inside"!==this.autoClose||ky(i,"click").pipe(aw(1)).subscribe(()=>this.close())}_isDropup(){return this._elementRef.nativeElement.classList.contains("dropup")}_isEventFromToggle(e){return this._anchor.nativeElement.contains(e.target)}_getMenuElements(){const e=this._menu;return null==e?[]:e.menuItems.filter(e=>!e.disabled).map(e=>e.elementRef.nativeElement)}_positionMenu(){const e=this._menu;this.isOpen()&&e&&this._applyPlacementClasses("dynamic"===this.display?Nv(this._anchor.nativeElement,this._bodyContainer||this._menu.nativeElement,this.placement,"body"===this.container):this._getFirstPlacement(this.placement))}_getFirstPlacement(e){return Array.isArray(e)?e[0]:e.split(" ")[0]}_resetContainer(){const e=this._renderer;if(this._menu){const t=this._menu.nativeElement;e.appendChild(this._elementRef.nativeElement,t),e.removeStyle(t,"position"),e.removeStyle(t,"transform")}this._bodyContainer&&(e.removeChild(this._document.body,this._bodyContainer),this._bodyContainer=null)}_applyContainer(e=null){if(this._resetContainer(),"body"===e){const e=this._renderer,t=this._menu.nativeElement,n=this._bodyContainer=this._bodyContainer||e.createElement("div");e.setStyle(n,"position","absolute"),e.setStyle(t,"position","static"),e.setStyle(n,"z-index","1050"),e.appendChild(n,t),e.appendChild(this._document.body,n)}this._applyCustomDropdownClass(this.dropdownClass)}_applyCustomDropdownClass(e,t){const n="body"===this.container?this._bodyContainer:this._elementRef.nativeElement;n&&(t&&this._renderer.removeClass(n,t),e&&this._renderer.addClass(n,e))}_applyPlacementClasses(e){const t=this._menu;if(t){e||(e=this._getFirstPlacement(this.placement));const n=this._renderer,r=this._elementRef.nativeElement;n.removeClass(r,"dropup"),n.removeClass(r,"dropdown"),t.placement="static"===this.display?null:e;const i=-1!==e.search("^top")?"dropup":"dropdown";n.addClass(r,i);const o=this._bodyContainer;o&&(n.removeClass(o,"dropup"),n.removeClass(o,"dropdown"),n.addClass(o,i))}}}return e.\u0275fac=function(t){return new(t||e)(zs(hA),zs(Kv),zs(pu),zs(Kc),zs(Nl),zs(Vl),zs(Vv,8))},e.\u0275dir=Je({type:e,selectors:[["","ngbDropdown",""]],contentQueries:function(e,t,n){if(1&e&&(hc(n,jv,5),hc(n,qv,5)),2&e){let e;cc(e=dc())&&(t._menu=e.first),cc(e=dc())&&(t._anchor=e.first)}},hostVars:2,hostBindings:function(e,t){2&e&&ba("show",t.isOpen())},inputs:{_open:["open","_open"],placement:"placement",container:"container",autoClose:"autoClose",display:"display",dropdownClass:"dropdownClass"},outputs:{openChange:"openChange"},exportAs:["ngbDropdown"],features:[ct]}),e})(),Xv=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=We({type:e}),e.\u0275inj=pe({}),e})(),Jv=(()=>{class e{constructor(e){this._ngbConfig=e,this.backdrop=!0,this.keyboard=!0}get animation(){return void 0===this._animation?this._ngbConfig.animation:this._animation}set animation(e){this._animation=e}}return e.\u0275fac=function(t){return new(t||e)(fr(dv))},e.\u0275prov=de({factory:function(){return new e(fr(dv))},token:e,providedIn:"root"}),e})();class Yv{constructor(e,t,n){this.nodes=e,this.viewRef=t,this.componentRef=n}}class $v{constructor(e,t,n,r,i,o,s){this._type=e,this._injector=t,this._viewContainerRef=n,this._renderer=r,this._ngZone=i,this._componentFactoryResolver=o,this._applicationRef=s,this._windowRef=null,this._contentRef=null}open(e,t,n=!1){this._windowRef||(this._contentRef=this._getContentRef(e,t),this._windowRef=this._viewContainerRef.createComponent(this._componentFactoryResolver.resolveComponentFactory(this._type),this._viewContainerRef.length,this._injector,this._contentRef.nodes));const{nativeElement:r}=this._windowRef.location,i=this._ngZone.onStable.pipe(aw(1),N(()=>mv(this._ngZone,r,({classList:e})=>e.add("show"),{animation:n,runningTransition:"continue"})));return{windowRef:this._windowRef,transition$:i}}close(e=!1){return this._windowRef?mv(this._ngZone,this._windowRef.location.nativeElement,({classList:e})=>e.remove("show"),{animation:e,runningTransition:"stop"}).pipe(_y(()=>{var e;this._windowRef&&(this._viewContainerRef.remove(this._viewContainerRef.indexOf(this._windowRef.hostView)),this._windowRef=null),(null===(e=this._contentRef)||void 0===e?void 0:e.viewRef)&&(this._applicationRef.detachView(this._contentRef.viewRef),this._contentRef.viewRef.destroy(),this._contentRef=null)})):Td(void 0)}_getContentRef(e,t){if(e){if(e instanceof mA){const n=e.createEmbeddedView(t);return this._applicationRef.attachView(n),new Yv([n.rootNodes],n)}return new Yv([[this._renderer.createText(`${e}`)]])}return new Yv([])}}const Zv=()=>{};let eb=(()=>{class e{constructor(e){this._document=e}compensate(){const e=this._getWidth();return this._isPresent(e)?this._adjustBody(e):Zv}_adjustBody(e){const t=this._document.body,n=t.style.paddingRight,r=parseFloat(window.getComputedStyle(t)["padding-right"]);return t.style["padding-right"]=`${r+e}px`,()=>t.style["padding-right"]=n}_isPresent(e){const t=this._document.body.getBoundingClientRect();return window.innerWidth-(t.left+t.right)>=e-.1*e}_getWidth(){const e=this._document.createElement("div");e.className="modal-scrollbar-measure";const t=this._document.body;t.appendChild(e);const n=e.getBoundingClientRect().width-e.clientWidth;return t.removeChild(e),n}}return e.\u0275fac=function(t){return new(t||e)(fr(pu))},e.\u0275prov=de({factory:function(){return new e(fr(pu))},token:e,providedIn:"root"}),e})(),tb=(()=>{class e{constructor(e,t){this._el=e,this._zone=t}ngOnInit(){this._zone.onStable.asObservable().pipe(aw(1)).subscribe(()=>{mv(this._zone,this._el.nativeElement,(e,t)=>{t&&uv(e),e.classList.add("show")},{animation:this.animation,runningTransition:"continue"})})}hide(){return mv(this._zone,this._el.nativeElement,({classList:e})=>e.remove("show"),{animation:this.animation,runningTransition:"stop"})}}return e.\u0275fac=function(t){return new(t||e)(zs(Nl),zs(Kc))},e.\u0275cmp=Ge({type:e,selectors:[["ngb-modal-backdrop"]],hostAttrs:[2,"z-index","1050"],hostVars:6,hostBindings:function(e,t){2&e&&(Ca("modal-backdrop"+(t.backdropClass?" "+t.backdropClass:"")),ba("show",!t.animation)("fade",t.animation))},inputs:{animation:"animation",backdropClass:"backdropClass"},decls:0,vars:0,template:function(e,t){},encapsulation:2}),e})();class nb{close(e){}dismiss(e){}}class rb{constructor(e,t,n,r){this._windowCmptRef=e,this._contentRef=t,this._backdropCmptRef=n,this._beforeDismiss=r,this._closed=new E,this._dismissed=new E,this._hidden=new E,e.instance.dismissEvent.subscribe(e=>{this.dismiss(e)}),this.result=new Promise((e,t)=>{this._resolve=e,this._reject=t}),this.result.then(null,()=>{})}get componentInstance(){if(this._contentRef&&this._contentRef.componentRef)return this._contentRef.componentRef.instance}get closed(){return this._closed.asObservable().pipe(rw(this._hidden))}get dismissed(){return this._dismissed.asObservable().pipe(rw(this._hidden))}get hidden(){return this._hidden.asObservable()}get shown(){return this._windowCmptRef.instance.shown.asObservable()}close(e){this._windowCmptRef&&(this._closed.next(e),this._resolve(e),this._removeModalElements())}_dismiss(e){this._dismissed.next(e),this._reject(e),this._removeModalElements()}dismiss(e){if(this._windowCmptRef)if(this._beforeDismiss){const t=this._beforeDismiss();t&&t.then?t.then(t=>{!1!==t&&this._dismiss(e)},()=>{}):!1!==t&&this._dismiss(e)}else this._dismiss(e)}_removeModalElements(){const e=this._windowCmptRef.instance.hide(),t=this._backdropCmptRef?this._backdropCmptRef.instance.hide():Td(void 0);e.subscribe(()=>{const{nativeElement:e}=this._windowCmptRef.location;e.parentNode.removeChild(e),this._windowCmptRef.destroy(),this._contentRef&&this._contentRef.viewRef&&this._contentRef.viewRef.destroy(),this._windowCmptRef=null,this._contentRef=null}),t.subscribe(()=>{if(this._backdropCmptRef){const{nativeElement:e}=this._backdropCmptRef.location;e.parentNode.removeChild(e),this._backdropCmptRef.destroy(),this._backdropCmptRef=null}}),Jy(e,t).subscribe(()=>{this._hidden.next(),this._hidden.complete()})}}var ib=(()=>(function(e){e[e.BACKDROP_CLICK=0]="BACKDROP_CLICK",e[e.ESC=1]="ESC"}(ib||(ib={})),ib))();let ob=(()=>{class e{constructor(e,t,n){this._document=e,this._elRef=t,this._zone=n,this._closed$=new E,this._elWithFocus=null,this.backdrop=!0,this.keyboard=!0,this.dismissEvent=new $A,this.shown=new E,this.hidden=new E}dismiss(e){this.dismissEvent.emit(e)}ngOnInit(){this._elWithFocus=this._document.activeElement,this._zone.onStable.asObservable().pipe(aw(1)).subscribe(()=>{this._show()})}ngOnDestroy(){this._disableEventHandling()}hide(){const{nativeElement:e}=this._elRef,t={animation:this.animation,runningTransition:"stop"},n=Jy(mv(this._zone,e,()=>e.classList.remove("show"),t),mv(this._zone,this._dialogEl.nativeElement,()=>{},t));return n.subscribe(()=>{this.hidden.next(),this.hidden.complete()}),this._disableEventHandling(),this._restoreFocus(),n}_show(){const e={animation:this.animation,runningTransition:"continue"};Jy(mv(this._zone,this._elRef.nativeElement,(e,t)=>{t&&uv(e),e.classList.add("show")},e),mv(this._zone,this._dialogEl.nativeElement,()=>{},e)).subscribe(()=>{this.shown.next(),this.shown.complete()}),this._enableEventHandling(),this._setFocus()}_enableEventHandling(){const{nativeElement:e}=this._elRef;this._zone.runOutsideAngular(()=>{ky(e,"keydown").pipe(rw(this._closed$),Qd(e=>e.which===kv.Escape)).subscribe(e=>{this.keyboard?requestAnimationFrame(()=>{e.defaultPrevented||this._zone.run(()=>this.dismiss(ib.ESC))}):"static"===this.backdrop&&this._bumpBackdrop()});let t=!1;ky(this._dialogEl.nativeElement,"mousedown").pipe(rw(this._closed$),_y(()=>t=!1),hw(()=>ky(e,"mouseup").pipe(rw(this._closed$),aw(1))),Qd(({target:t})=>e===t)).subscribe(()=>{t=!0}),ky(e,"click").pipe(rw(this._closed$)).subscribe(({target:n})=>{e===n&&("static"===this.backdrop?this._bumpBackdrop():!0!==this.backdrop||t||this._zone.run(()=>this.dismiss(ib.BACKDROP_CLICK))),t=!1})})}_disableEventHandling(){this._closed$.next()}_setFocus(){const{nativeElement:e}=this._elRef;if(!e.contains(document.activeElement)){const t=e.querySelector("[ngbAutofocus]"),n=Hv(e)[0];(t||n||e).focus()}}_restoreFocus(){const e=this._document.body,t=this._elWithFocus;let n;n=t&&t.focus&&e.contains(t)?t:e,this._zone.runOutsideAngular(()=>{setTimeout(()=>n.focus()),this._elWithFocus=null})}_bumpBackdrop(){"static"===this.backdrop&&mv(this._zone,this._elRef.nativeElement,({classList:e})=>(e.add("modal-static"),()=>e.remove("modal-static")),{animation:this.animation,runningTransition:"continue"})}}return e.\u0275fac=function(t){return new(t||e)(zs(pu),zs(Nl),zs(Kc))},e.\u0275cmp=Ge({type:e,selectors:[["ngb-modal-window"]],viewQuery:function(e,t){if(1&e&&uc(xw,7),2&e){let e;cc(e=dc())&&(t._dialogEl=e.first)}},hostAttrs:["role","dialog","tabindex","-1"],hostVars:7,hostBindings:function(e,t){2&e&&(Ps("aria-modal",!0)("aria-labelledby",t.ariaLabelledBy)("aria-describedby",t.ariaDescribedBy),Ca("modal d-block"+(t.windowClass?" "+t.windowClass:"")),ba("fade",t.animation))},inputs:{backdrop:"backdrop",keyboard:"keyboard",animation:"animation",ariaLabelledBy:"ariaLabelledBy",ariaDescribedBy:"ariaDescribedBy",centered:"centered",scrollable:"scrollable",size:"size",windowClass:"windowClass",modalDialogClass:"modalDialogClass"},outputs:{dismissEvent:"dismiss"},ngContentSelectors:Fw,decls:4,vars:2,consts:[["role","document"],["dialog",""],[1,"modal-content"]],template:function(e,t){1&e&&(Aa(),Js(0,"div",0,1),Js(2,"div",2),ca(3),Ys(),Ys()),2&e&&Ca("modal-dialog"+(t.size?" modal-"+t.size:"")+(t.centered?" modal-dialog-centered":"")+(t.scrollable?" modal-dialog-scrollable":"")+(t.modalDialogClass?" "+t.modalDialogClass:""))},styles:["ngb-modal-window .component-host-scrollable{display:flex;flex-direction:column;overflow:hidden}"],encapsulation:2}),e})(),sb=(()=>{class e{constructor(e,t,n,r,i,o){this._applicationRef=e,this._injector=t,this._document=n,this._scrollBar=r,this._rendererFactory=i,this._ngZone=o,this._activeWindowCmptHasChanged=new E,this._ariaHiddenValues=new Map,this._backdropAttributes=["animation","backdropClass"],this._modalRefs=[],this._windowAttributes=["animation","ariaLabelledBy","ariaDescribedBy","backdrop","centered","keyboard","scrollable","size","windowClass","modalDialogClass"],this._windowCmpts=[],this._activeInstances=new $A,this._activeWindowCmptHasChanged.subscribe(()=>{if(this._windowCmpts.length){const e=this._windowCmpts[this._windowCmpts.length-1];((e,t,n,r=!1)=>{this._ngZone.runOutsideAngular(()=>{const e=ky(t,"focusin").pipe(rw(n),x(e=>e.target));ky(t,"keydown").pipe(rw(n),Qd(e=>e.which===kv.Tab),fw(e)).subscribe(([e,n])=>{const[r,i]=Hv(t);n!==r&&n!==t||!e.shiftKey||(i.focus(),e.preventDefault()),n!==i||e.shiftKey||(r.focus(),e.preventDefault())}),r&&ky(t,"click").pipe(rw(n),fw(e),x(e=>e[1])).subscribe(e=>e.focus())})})(0,e.location.nativeElement,this._activeWindowCmptHasChanged),this._revertAriaHidden(),this._setAriaHidden(e.location.nativeElement)}})}open(e,t,n,r){const i=r.container instanceof HTMLElement?r.container:cv(r.container)?this._document.querySelector(r.container):this._document.body,o=this._rendererFactory.createRenderer(null,null),s=this._scrollBar.compensate(),a=()=>{this._modalRefs.length||(o.removeClass(this._document.body,"modal-open"),this._revertAriaHidden())};if(!i)throw new Error(`The specified modal container "${r.container||"body"}" was not found in the DOM.`);const l=new nb,A=this._getContentRef(e,r.injector||t,n,l,r);let c=!1!==r.backdrop?this._attachBackdrop(e,i):void 0,u=this._attachWindowComponent(e,i,A),h=new rb(u,A,c,r.beforeDismiss);return this._registerModalRef(h),this._registerWindowCmpt(u),h.result.then(s,s),h.result.then(a,a),l.close=e=>{h.close(e)},l.dismiss=e=>{h.dismiss(e)},this._applyWindowOptions(u.instance,r),1===this._modalRefs.length&&o.addClass(this._document.body,"modal-open"),c&&c.instance&&(this._applyBackdropOptions(c.instance,r),c.changeDetectorRef.detectChanges()),u.changeDetectorRef.detectChanges(),h}get activeInstances(){return this._activeInstances}dismissAll(e){this._modalRefs.forEach(t=>t.dismiss(e))}hasOpenModals(){return this._modalRefs.length>0}_attachBackdrop(e,t){let n=e.resolveComponentFactory(tb).create(this._injector);return this._applicationRef.attachView(n.hostView),t.appendChild(n.location.nativeElement),n}_attachWindowComponent(e,t,n){let r=e.resolveComponentFactory(ob).create(this._injector,n.nodes);return this._applicationRef.attachView(r.hostView),t.appendChild(r.location.nativeElement),r}_applyWindowOptions(e,t){this._windowAttributes.forEach(n=>{cv(t[n])&&(e[n]=t[n])})}_applyBackdropOptions(e,t){this._backdropAttributes.forEach(n=>{cv(t[n])&&(e[n]=t[n])})}_getContentRef(e,t,n,r,i){return n?n instanceof mA?this._createFromTemplateRef(n,r):"string"==typeof n?this._createFromString(n):this._createFromComponent(e,t,n,r,i):new Yv([])}_createFromTemplateRef(e,t){const n=e.createEmbeddedView({$implicit:t,close(e){t.close(e)},dismiss(e){t.dismiss(e)}});return this._applicationRef.attachView(n),new Yv([n.rootNodes],n)}_createFromString(e){const t=this._document.createTextNode(`${e}`);return new Yv([[t]])}_createFromComponent(e,t,n,r,i){const o=e.resolveComponentFactory(n),s=_s.create({providers:[{provide:nb,useValue:r}],parent:t}),a=o.create(s),l=a.location.nativeElement;return i.scrollable&&l.classList.add("component-host-scrollable"),this._applicationRef.attachView(a.hostView),new Yv([[l]],a.hostView,a)}_setAriaHidden(e){const t=e.parentElement;t&&e!==this._document.body&&(Array.from(t.children).forEach(t=>{t!==e&&"SCRIPT"!==t.nodeName&&(this._ariaHiddenValues.set(t,t.getAttribute("aria-hidden")),t.setAttribute("aria-hidden","true"))}),this._setAriaHidden(t))}_revertAriaHidden(){this._ariaHiddenValues.forEach((e,t)=>{e?t.setAttribute("aria-hidden",e):t.removeAttribute("aria-hidden")}),this._ariaHiddenValues.clear()}_registerModalRef(e){const t=()=>{const t=this._modalRefs.indexOf(e);t>-1&&(this._modalRefs.splice(t,1),this._activeInstances.emit(this._modalRefs))};this._modalRefs.push(e),this._activeInstances.emit(this._modalRefs),e.result.then(t,t)}_registerWindowCmpt(e){this._windowCmpts.push(e),this._activeWindowCmptHasChanged.next(),e.onDestroy(()=>{const t=this._windowCmpts.indexOf(e);t>-1&&(this._windowCmpts.splice(t,1),this._activeWindowCmptHasChanged.next())})}}return e.\u0275fac=function(t){return new(t||e)(fr(au),fr(_s),fr(pu),fr(eb),fr(Kl),fr(Kc))},e.\u0275prov=de({factory:function(){return new e(fr(au),fr(cs),fr(pu),fr(eb),fr(Kl),fr(Kc))},token:e,providedIn:"root"}),e})(),ab=(()=>{class e{constructor(e,t,n,r){this._moduleCFR=e,this._injector=t,this._modalStack=n,this._config=r}open(e,t={}){const n=Object.assign(Object.assign(Object.assign({},this._config),{animation:this._config.animation}),t);return this._modalStack.open(this._moduleCFR,this._injector,e,n)}get activeInstances(){return this._modalStack.activeInstances}dismissAll(e){this._modalStack.dismissAll(e)}hasOpenModals(){return this._modalStack.hasOpenModals()}}return e.\u0275fac=function(t){return new(t||e)(fr(Il),fr(_s),fr(sb),fr(Jv))},e.\u0275prov=de({factory:function(){return new e(fr(Il),fr(cs),fr(sb),fr(Jv))},token:e,providedIn:"root"}),e})(),lb=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=We({type:e}),e.\u0275inj=pe({providers:[ab]}),e})(),Ab=(()=>{class e{constructor(e){this._ngbConfig=e,this.destroyOnHide=!0,this.orientation="horizontal",this.roles="tablist",this.keyboard=!1}get animation(){return void 0===this._animation?this._ngbConfig.animation:this._animation}set animation(e){this._animation=e}}return e.\u0275fac=function(t){return new(t||e)(fr(dv))},e.\u0275prov=de({factory:function(){return new e(fr(dv))},token:e,providedIn:"root"}),e})();const cb=e=>cv(e)&&""!==e;let ub=0,hb=(()=>{class e{constructor(e){this.templateRef=e}}return e.\u0275fac=function(t){return new(t||e)(zs(mA))},e.\u0275dir=Je({type:e,selectors:[["ng-template","ngbNavContent",""]]}),e})(),db=(()=>{class e{constructor(e,t){this.elementRef=t,this.disabled=!1,this.shown=new $A,this.hidden=new $A,this._nav=e}ngAfterContentChecked(){this.contentTpl=this.contentTpls.first}ngOnInit(){cv(this.domId)||(this.domId="ngb-nav-"+ub++)}get active(){return this._nav.activeId===this.id}get id(){return cb(this._id)?this._id:this.domId}get panelDomId(){return`${this.domId}-panel`}isPanelInDom(){return(cv(this.destroyOnHide)?!this.destroyOnHide:!this._nav.destroyOnHide)||this.active}}return e.\u0275fac=function(t){return new(t||e)(zs(oe(()=>pb)),zs(Nl))},e.\u0275dir=Je({type:e,selectors:[["","ngbNavItem",""]],contentQueries:function(e,t,n){if(1&e&&hc(n,hb,4),2&e){let e;cc(e=dc())&&(t.contentTpls=e)}},hostVars:2,hostBindings:function(e,t){2&e&&ba("nav-item",!0)},inputs:{disabled:"disabled",domId:"domId",destroyOnHide:"destroyOnHide",_id:["ngbNavItem","_id"]},outputs:{shown:"shown",hidden:"hidden"},exportAs:["ngbNavItem"]}),e})(),pb=(()=>{class e{constructor(e,t,n,r){this.role=e,this._cd=n,this._document=r,this.activeIdChange=new $A,this.shown=new $A,this.hidden=new $A,this.destroy$=new E,this.navItemChange$=new E,this.navChange=new $A,this.animation=t.animation,this.destroyOnHide=t.destroyOnHide,this.orientation=t.orientation,this.roles=t.roles,this.keyboard=t.keyboard}click(e){e.disabled||this._updateActiveId(e.id)}onKeyDown(e){if("tablist"!==this.roles||!this.keyboard)return;const t=e.which,n=this.links.filter(e=>!e.navItem.disabled),{length:r}=n;let i=-1;if(n.forEach((e,t)=>{e.elRef.nativeElement===this._document.activeElement&&(i=t)}),r){switch(t){case kv.ArrowLeft:if("vertical"===this.orientation)return;i=(i-1+r)%r;break;case kv.ArrowRight:if("vertical"===this.orientation)return;i=(i+1)%r;break;case kv.ArrowDown:if("horizontal"===this.orientation)return;i=(i+1)%r;break;case kv.ArrowUp:if("horizontal"===this.orientation)return;i=(i-1+r)%r;break;case kv.Home:i=0;break;case kv.End:i=r-1}"changeWithArrows"===this.keyboard&&this.select(n[i].navItem.id),n[i].elRef.nativeElement.focus(),e.preventDefault()}}select(e){this._updateActiveId(e,!1)}ngAfterContentInit(){if(!cv(this.activeId)){const e=this.items.first?this.items.first.id:null;cb(e)&&(this._updateActiveId(e,!1),this._cd.detectChanges())}this.items.changes.pipe(rw(this.destroy$)).subscribe(()=>this._notifyItemChanged(this.activeId))}ngOnChanges({activeId:e}){e&&!e.firstChange&&this._notifyItemChanged(e.currentValue)}ngOnDestroy(){this.destroy$.next()}_updateActiveId(e,t=!0){if(this.activeId!==e){let n=!1;t&&this.navChange.emit({activeId:this.activeId,nextId:e,preventDefault:()=>{n=!0}}),n||(this.activeId=e,this.activeIdChange.emit(e),this._notifyItemChanged(e))}}_notifyItemChanged(e){this.navItemChange$.next(this._getItemById(e))}_getItemById(e){return this.items&&this.items.find(t=>t.id===e)||null}}return e.\u0275fac=function(t){return new(t||e)(zn("role"),zs(Ab),zs(hA),zs(pu))},e.\u0275dir=Je({type:e,selectors:[["","ngbNav",""]],contentQueries:function(e,t,n){if(1&e&&(hc(n,db,4),hc(n,fb,5)),2&e){let e;cc(e=dc())&&(t.items=e),cc(e=dc())&&(t.links=e)}},hostVars:6,hostBindings:function(e,t){1&e&&ia("keydown.arrowLeft",function(e){return t.onKeyDown(e)})("keydown.arrowRight",function(e){return t.onKeyDown(e)})("keydown.arrowDown",function(e){return t.onKeyDown(e)})("keydown.arrowUp",function(e){return t.onKeyDown(e)})("keydown.Home",function(e){return t.onKeyDown(e)})("keydown.End",function(e){return t.onKeyDown(e)}),2&e&&(Ps("aria-orientation","vertical"===t.orientation&&"tablist"===t.roles?"vertical":void 0)("role",t.role?t.role:t.roles?"tablist":void 0),ba("nav",!0)("flex-column","vertical"===t.orientation))},inputs:{animation:"animation",destroyOnHide:"destroyOnHide",orientation:"orientation",roles:"roles",keyboard:"keyboard",activeId:"activeId"},outputs:{activeIdChange:"activeIdChange",shown:"shown",hidden:"hidden",navChange:"navChange"},exportAs:["ngbNav"],features:[ct]}),e})(),fb=(()=>{class e{constructor(e,t,n,r){this.role=e,this.navItem=t,this.nav=n,this.elRef=r}hasNavItemClass(){return this.navItem.elementRef.nativeElement.nodeType===Node.COMMENT_NODE}}return e.\u0275fac=function(t){return new(t||e)(zn("role"),zs(db),zs(pb),zs(Nl))},e.\u0275dir=Je({type:e,selectors:[["a","ngbNavLink",""]],hostAttrs:["href",""],hostVars:14,hostBindings:function(e,t){1&e&&ia("click",function(e){return t.nav.click(t.navItem),e.preventDefault()}),2&e&&(Ma("id",t.navItem.domId),Ps("role",t.role?t.role:t.nav.roles?"tab":void 0)("tabindex",t.navItem.disabled?-1:void 0)("aria-controls",t.navItem.isPanelInDom()?t.navItem.panelDomId:null)("aria-selected",t.navItem.active)("aria-disabled",t.navItem.disabled),ba("nav-link",!0)("nav-item",t.hasNavItemClass())("active",t.navItem.active)("disabled",t.navItem.disabled))}}),e})();const gb=({classList:e})=>(e.remove("show"),()=>e.remove("active")),mb=(e,t)=>{t&&uv(e),e.classList.add("show")};let yb=(()=>{class e{constructor(e){this.elRef=e}}return e.\u0275fac=function(t){return new(t||e)(zs(Nl))},e.\u0275dir=Je({type:e,selectors:[["","ngbNavPane",""]],hostAttrs:[1,"tab-pane"],hostVars:5,hostBindings:function(e,t){2&e&&(Ma("id",t.item.panelDomId),Ps("role",t.role?t.role:t.nav.roles?"tabpanel":void 0)("aria-labelledby",t.item.domId),ba("fade",t.nav.animation))},inputs:{item:"item",nav:"nav",role:"role"}}),e})(),wb=(()=>{class e{constructor(e,t){this._cd=e,this._ngZone=t,this._activePane=null}isPanelTransitioning(e){var t;return(null===(t=this._activePane)||void 0===t?void 0:t.item)===e}ngAfterViewInit(){var e;this._updateActivePane(),this.nav.navItemChange$.pipe(rw(this.nav.destroy$),function(...e){const t=e[e.length-1];return F(t)?(e.pop(),n=>nw(e,n,t)):t=>nw(e,t)}((null===(e=this._activePane)||void 0===e?void 0:e.item)||null),e=>e.lift(new cw(void 0,void 0)),e=>e.lift(new Bw(1))).subscribe(e=>{const t={animation:this.nav.animation,runningTransition:"stop"};this._cd.detectChanges(),this._activePane?mv(this._ngZone,this._activePane.elRef.nativeElement,gb,t).subscribe(()=>{var n;const r=null===(n=this._activePane)||void 0===n?void 0:n.item;this._activePane=this._getPaneForItem(e),this._cd.markForCheck(),this._activePane&&(this._activePane.elRef.nativeElement.classList.add("active"),mv(this._ngZone,this._activePane.elRef.nativeElement,mb,t).subscribe(()=>{e&&(e.shown.emit(),this.nav.shown.emit(e.id))})),r&&(r.hidden.emit(),this.nav.hidden.emit(r.id))}):this._updateActivePane()})}_updateActivePane(){var e,t;this._activePane=this._getActivePane(),null===(e=this._activePane)||void 0===e||e.elRef.nativeElement.classList.add("show"),null===(t=this._activePane)||void 0===t||t.elRef.nativeElement.classList.add("active")}_getPaneForItem(e){return this._panes&&this._panes.find(t=>t.item===e)||null}_getActivePane(){return this._panes&&this._panes.find(e=>e.item.active)||null}}return e.\u0275fac=function(t){return new(t||e)(zs(hA),zs(Kc))},e.\u0275cmp=Ge({type:e,selectors:[["","ngbNavOutlet",""]],viewQuery:function(e,t){if(1&e&&uc(yb,5),2&e){let e;cc(e=dc())&&(t._panes=e)}},hostVars:2,hostBindings:function(e,t){2&e&&ba("tab-content",!0)},inputs:{paneRole:"paneRole",nav:["ngbNavOutlet","nav"]},attrs:Tw,decls:1,vars:1,consts:[["ngFor","",3,"ngForOf"],["ngbNavPane","",3,"item","nav","role",4,"ngIf"],["ngbNavPane","",3,"item","nav","role"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(e,t){1&e&&js(0,Uw,1,1,"ng-template",0),2&e&&Ws("ngForOf",t.nav.items)},directives:[Tu,Su,yb,Mu],encapsulation:2,changeDetection:0}),e})(),vb=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=We({type:e}),e.\u0275inj=pe({imports:[[Vu]]}),e})(),bb=(()=>{class e{constructor(){this.disabled=!1,this.boundaryLinks=!1,this.directionLinks=!0,this.ellipses=!0,this.maxSize=0,this.pageSize=10,this.rotate=!1}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=de({factory:function(){return new e},token:e,providedIn:"root"}),e})(),Cb=(()=>{class e{constructor(e){this.templateRef=e}}return e.\u0275fac=function(t){return new(t||e)(zs(mA))},e.\u0275dir=Je({type:e,selectors:[["ng-template","ngbPaginationEllipsis",""]]}),e})(),Bb=(()=>{class e{constructor(e){this.templateRef=e}}return e.\u0275fac=function(t){return new(t||e)(zs(mA))},e.\u0275dir=Je({type:e,selectors:[["ng-template","ngbPaginationFirst",""]]}),e})(),Eb=(()=>{class e{constructor(e){this.templateRef=e}}return e.\u0275fac=function(t){return new(t||e)(zs(mA))},e.\u0275dir=Je({type:e,selectors:[["ng-template","ngbPaginationLast",""]]}),e})(),_b=(()=>{class e{constructor(e){this.templateRef=e}}return e.\u0275fac=function(t){return new(t||e)(zs(mA))},e.\u0275dir=Je({type:e,selectors:[["ng-template","ngbPaginationNext",""]]}),e})(),Fb=(()=>{class e{constructor(e){this.templateRef=e}}return e.\u0275fac=function(t){return new(t||e)(zs(mA))},e.\u0275dir=Je({type:e,selectors:[["ng-template","ngbPaginationNumber",""]]}),e})(),xb=(()=>{class e{constructor(e){this.templateRef=e}}return e.\u0275fac=function(t){return new(t||e)(zs(mA))},e.\u0275dir=Je({type:e,selectors:[["ng-template","ngbPaginationPrevious",""]]}),e})(),Tb=(()=>{class e{constructor(e){this.templateRef=e}}return e.\u0275fac=function(t){return new(t||e)(zs(mA))},e.\u0275dir=Je({type:e,selectors:[["ng-template","ngbPaginationPages",""]]}),e})(),Qb=(()=>{class e{constructor(e){this.pageCount=0,this.pages=[],this.page=1,this.pageChange=new $A(!0),this.disabled=e.disabled,this.boundaryLinks=e.boundaryLinks,this.directionLinks=e.directionLinks,this.ellipses=e.ellipses,this.maxSize=e.maxSize,this.pageSize=e.pageSize,this.rotate=e.rotate,this.size=e.size}hasPrevious(){return this.page>1}hasNext(){return this.page<this.pageCount}nextDisabled(){return!this.hasNext()||this.disabled}previousDisabled(){return!this.hasPrevious()||this.disabled}selectPage(e){this._updatePages(e)}ngOnChanges(e){this._updatePages(this.page)}isEllipsis(e){return-1===e}_applyEllipses(e,t){this.ellipses&&(e>0&&(e>2?this.pages.unshift(-1):2===e&&this.pages.unshift(2),this.pages.unshift(1)),t<this.pageCount&&(t<this.pageCount-2?this.pages.push(-1):t===this.pageCount-2&&this.pages.push(this.pageCount-1),this.pages.push(this.pageCount)))}_applyRotation(){let e=0,t=this.pageCount,n=Math.floor(this.maxSize/2);return this.page<=n?t=this.maxSize:this.pageCount-this.page<n?e=this.pageCount-this.maxSize:(e=this.page-n-1,t=this.page+(this.maxSize%2==0?n-1:n)),[e,t]}_applyPagination(){let e=(Math.ceil(this.page/this.maxSize)-1)*this.maxSize;return[e,e+this.maxSize]}_setPageInRange(e){const t=this.page;this.page=function(e,t,n=0){return Math.max(Math.min(e,t),n)}(e,this.pageCount,1),this.page!==t&&Av(this.collectionSize)&&this.pageChange.emit(this.page)}_updatePages(e){this.pageCount=Math.ceil(this.collectionSize/this.pageSize),Av(this.pageCount)||(this.pageCount=0),this.pages.length=0;for(let t=1;t<=this.pageCount;t++)this.pages.push(t);if(this._setPageInRange(e),this.maxSize>0&&this.pageCount>this.maxSize){let e=0,t=this.pageCount;[e,t]=this.rotate?this._applyRotation():this._applyPagination(),this.pages=this.pages.slice(e,t),this._applyEllipses(e,t)}}}return e.\u0275fac=function(t){return new(t||e)(zs(bb))},e.\u0275cmp=Ge({type:e,selectors:[["ngb-pagination"]],contentQueries:function(e,t,n){if(1&e&&(hc(n,Cb,5),hc(n,Bb,5),hc(n,Eb,5),hc(n,_b,5),hc(n,Fb,5),hc(n,xb,5),hc(n,Tb,5)),2&e){let e;cc(e=dc())&&(t.tplEllipsis=e.first),cc(e=dc())&&(t.tplFirst=e.first),cc(e=dc())&&(t.tplLast=e.first),cc(e=dc())&&(t.tplNext=e.first),cc(e=dc())&&(t.tplNumber=e.first),cc(e=dc())&&(t.tplPrevious=e.first),cc(e=dc())&&(t.tplPages=e.first)}},hostAttrs:["role","navigation"],inputs:{page:"page",disabled:"disabled",boundaryLinks:"boundaryLinks",directionLinks:"directionLinks",ellipses:"ellipses",maxSize:"maxSize",pageSize:"pageSize",rotate:"rotate",size:"size",collectionSize:"collectionSize"},outputs:{pageChange:"pageChange"},features:[ct],decls:20,vars:12,consts:function(){let e,t,n,r,i,o,s,a;return e=$localize`:@@ngb.pagination.first␟656506dfd46380956a655f919f1498d018f75ca0␟6867721956102594380:««`,t=$localize`:@@ngb.pagination.previous␟6e52b6ee77a4848d899dd21b591c6fd499e3aef3␟6479320895410098858:«`,n=$localize`:@@ngb.pagination.next␟ba9cbb4ff311464308a3627e4f1c3345d9fe6d7d␟5458177150283468089:»`,r=$localize`:@@ngb.pagination.last␟49f27a460bc97e7e00be5b37098bfa79884fc7d9␟5277020320267646988:»»`,i=$localize`:@@ngb.pagination.first-aria␟f2f852318759c6396b5d3d17031d53817d7b38cc␟2241508602425256033:First`,o=$localize`:@@ngb.pagination.previous-aria␟680d5c75b7fd8d37961083608b9fcdc4167b4c43␟4452427314943113135:Previous`,s=$localize`:@@ngb.pagination.next-aria␟f732c304c7433e5a83ffcd862c3dce709a0f4982␟3885497195825665706:Next`,a=$localize`:@@ngb.pagination.last-aria␟5c729788ba138508aca1bec050b610f7bf81db3e␟4882268002141858767:Last`,[["first",""],["previous",""],["next",""],["last",""],["ellipsis",""],["defaultNumber",""],["defaultPages",""],["class","page-item",3,"disabled",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["aria-hidden","true"],e,t,n,r,["class","sr-only",4,"ngIf"],[1,"sr-only"],["class","page-item",3,"active","disabled",4,"ngFor","ngForOf"],[1,"page-item"],["class","page-link","tabindex","-1","aria-disabled","true",4,"ngIf"],["class","page-link","href","",3,"click",4,"ngIf"],["tabindex","-1","aria-disabled","true",1,"page-link"],["href","",1,"page-link",3,"click"],["aria-label",i,"href","",1,"page-link",3,"click"],["aria-label",o,"href","",1,"page-link",3,"click"],["aria-label",s,"href","",1,"page-link",3,"click"],["aria-label",a,"href","",1,"page-link",3,"click"]]},template:function(e,t){if(1&e&&(js(0,Dw,2,0,"ng-template",null,0,mc),js(2,Ow,2,0,"ng-template",null,1,mc),js(4,Lw,2,0,"ng-template",null,2,mc),js(6,Iw,2,0,"ng-template",null,3,mc),js(8,Hw,1,0,"ng-template",null,4,mc),js(10,Rw,2,2,"ng-template",null,5,mc),js(12,zw,1,1,"ng-template",null,6,mc),Js(14,"ul"),js(15,Jw,3,9,"li",7),js(16,Zw,3,8,"li",7),js(17,ev,0,0,"ng-template",8),js(18,nv,3,9,"li",7),js(19,iv,3,9,"li",7),Ys()),2&e){const e=qs(13);uo(14),Ca("pagination"+(t.size?" pagination-"+t.size:"")),uo(1),Ws("ngIf",t.boundaryLinks),uo(1),Ws("ngIf",t.directionLinks),uo(1),Ws("ngTemplateOutlet",(null==t.tplPages?null:t.tplPages.templateRef)||e)("ngTemplateOutletContext",NA(8,ov,t.page,t.pages,t.disabled)),uo(1),Ws("ngIf",t.directionLinks),uo(1),Ws("ngIf",t.boundaryLinks)}},directives:[Su,Mu,Tu],encapsulation:2,changeDetection:0}),e})(),Sb=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=We({type:e}),e.\u0275inj=pe({imports:[[Vu]]}),e})();class kb{constructor(e,t){this.open=e,this.close=t,t||(this.close=e)}isManual(){return"manual"===this.open||"manual"===this.close}}const Ub={hover:["mouseenter","mouseleave"],focus:["focusin","focusout"]},Db=e=>e>0?ww(e):e=>e;let Ob=(()=>{class e{constructor(e){this._ngbConfig=e,this.autoClose=!0,this.placement="auto",this.triggers="click",this.disablePopover=!1,this.openDelay=0,this.closeDelay=0}get animation(){return void 0===this._animation?this._ngbConfig.animation:this._animation}set animation(e){this._animation=e}}return e.\u0275fac=function(t){return new(t||e)(fr(dv))},e.\u0275prov=de({factory:function(){return new e(fr(dv))},token:e,providedIn:"root"}),e})(),Lb=0,Ib=(()=>{class e{isTitleTemplate(){return this.title instanceof mA}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=Ge({type:e,selectors:[["ngb-popover-window"]],hostAttrs:["role","tooltip"],hostVars:5,hostBindings:function(e,t){2&e&&(Ma("id",t.id),Ca("popover"+(t.popoverClass?" "+t.popoverClass:"")),ba("fade",t.animation))},inputs:{animation:"animation",title:"title",id:"id",popoverClass:"popoverClass",context:"context"},ngContentSelectors:Fw,decls:4,vars:1,consts:[[1,"arrow"],["class","popover-header",4,"ngIf"],[1,"popover-body"],[1,"popover-header"],["simpleTitle",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(e,t){1&e&&(Aa(),$s(0,"div",0),js(1,lv,4,2,"h3",1),Js(2,"div",2),ca(3),Ys()),2&e&&(uo(1),Ws("ngIf",t.title))},directives:[Su,Mu],styles:["ngb-popover-window.bs-popover-bottom>.arrow,ngb-popover-window.bs-popover-top>.arrow{left:50%;margin-left:-.5rem}ngb-popover-window.bs-popover-bottom-left>.arrow,ngb-popover-window.bs-popover-top-left>.arrow{left:2em}ngb-popover-window.bs-popover-bottom-right>.arrow,ngb-popover-window.bs-popover-top-right>.arrow{left:auto;right:2em}ngb-popover-window.bs-popover-left>.arrow,ngb-popover-window.bs-popover-right>.arrow{top:50%;margin-top:-.5rem}ngb-popover-window.bs-popover-left-top>.arrow,ngb-popover-window.bs-popover-right-top>.arrow{top:.7em}ngb-popover-window.bs-popover-left-bottom>.arrow,ngb-popover-window.bs-popover-right-bottom>.arrow{top:auto;bottom:.7em}"],encapsulation:2,changeDetection:0}),e})(),Hb=(()=>{class e{constructor(e,t,n,r,i,o,s,a,l,A){this._elementRef=e,this._renderer=t,this._ngZone=s,this._document=a,this._changeDetector=l,this.shown=new $A,this.hidden=new $A,this._ngbPopoverWindowId="ngb-popover-"+Lb++,this._windowRef=null,this.animation=o.animation,this.autoClose=o.autoClose,this.placement=o.placement,this.triggers=o.triggers,this.container=o.container,this.disablePopover=o.disablePopover,this.popoverClass=o.popoverClass,this.openDelay=o.openDelay,this.closeDelay=o.closeDelay,this._popupService=new $v(Ib,n,i,t,this._ngZone,r,A),this._zoneSubscription=s.onStable.subscribe(()=>{this._windowRef&&Nv(this._elementRef.nativeElement,this._windowRef.location.nativeElement,this.placement,"body"===this.container,"bs-popover")})}_isDisabled(){return!!this.disablePopover||!this.ngbPopover&&!this.popoverTitle}open(e){if(!this._windowRef&&!this._isDisabled()){const{windowRef:t,transition$:n}=this._popupService.open(this.ngbPopover,e,this.animation);this._windowRef=t,this._windowRef.instance.animation=this.animation,this._windowRef.instance.title=this.popoverTitle,this._windowRef.instance.context=e,this._windowRef.instance.popoverClass=this.popoverClass,this._windowRef.instance.id=this._ngbPopoverWindowId,this._renderer.setAttribute(this._elementRef.nativeElement,"aria-describedby",this._ngbPopoverWindowId),"body"===this.container&&this._document.querySelector(this.container).appendChild(this._windowRef.location.nativeElement),this._windowRef.changeDetectorRef.detectChanges(),this._windowRef.changeDetectorRef.markForCheck(),Lv(this._ngZone,this._document,this.autoClose,()=>this.close(),this.hidden,[this._windowRef.location.nativeElement]),n.subscribe(()=>this.shown.emit())}}close(){this._windowRef&&(this._renderer.removeAttribute(this._elementRef.nativeElement,"aria-describedby"),this._popupService.close(this.animation).subscribe(()=>{this._windowRef=null,this.hidden.emit(),this._changeDetector.markForCheck()}))}toggle(){this._windowRef?this.close():this.open()}isOpen(){return null!=this._windowRef}ngOnInit(){this._unregisterListenersFn=function(e,t,n,r,i,o,s=0,a=0){const l=function(e,t=Ub){const n=(e||"").trim();if(0===n.length)return[];const r=n.split(/\s+/).map(e=>e.split(":")).map(e=>{let n=t[e[0]]||e;return new kb(n[0],n[1])}),i=r.filter(e=>e.isManual());if(i.length>1)throw"Triggers parse error: only one manual trigger is allowed";if(1===i.length&&r.length>1)throw"Triggers parse error: manual trigger can't be mixed with other triggers";return r}(n);if(1===l.length&&l[0].isManual())return()=>{};const A=function(e,t,n,r){return new w(i=>{const o=[],s=()=>i.next(!0),a=()=>i.next(!1),l=()=>i.next(!r());return n.forEach(n=>{n.open===n.close?o.push(e.listen(t,n.open,l)):o.push(e.listen(t,n.open,s),e.listen(t,n.close,a))}),()=>{o.forEach(e=>e())}})}(e,t,l,r).pipe(function(e,t,n){return r=>{let i=null;const o=r.pipe(x(e=>({open:e})),Qd(e=>{const t=n();return t===e.open||i&&i.open!==t?(i&&i.open!==e.open&&(i=null),!1):(i=e,!0)}),Z());return j(o.pipe(Qd(e=>e.open),Db(e)),o.pipe(Qd(e=>!e.open),Db(t))).pipe(Qd(e=>e===i&&(i=null,e.open!==n())),x(e=>e.open))}}(s,a,r)).subscribe(e=>e?i():o());return()=>A.unsubscribe()}(this._renderer,this._elementRef.nativeElement,this.triggers,this.isOpen.bind(this),this.open.bind(this),this.close.bind(this),+this.openDelay,+this.closeDelay)}ngOnChanges({ngbPopover:e,popoverTitle:t,disablePopover:n,popoverClass:r}){r&&this.isOpen()&&(this._windowRef.instance.popoverClass=r.currentValue),(e||t||n)&&this._isDisabled()&&this.close()}ngOnDestroy(){this.close(),this._unregisterListenersFn&&this._unregisterListenersFn(),this._zoneSubscription.unsubscribe()}}return e.\u0275fac=function(t){return new(t||e)(zs(Nl),zs(Vl),zs(_s),zs(Il),zs(BA),zs(Ob),zs(Kc),zs(pu),zs(hA),zs(au))},e.\u0275dir=Je({type:e,selectors:[["","ngbPopover",""]],inputs:{animation:"animation",autoClose:"autoClose",placement:"placement",triggers:"triggers",container:"container",disablePopover:"disablePopover",popoverClass:"popoverClass",openDelay:"openDelay",closeDelay:"closeDelay",ngbPopover:"ngbPopover",popoverTitle:"popoverTitle"},outputs:{shown:"shown",hidden:"hidden"},exportAs:["ngbPopover"],features:[ct]}),e})(),Mb=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=We({type:e}),e.\u0275inj=pe({imports:[[Vu]]}),e})(),Rb=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=We({type:e}),e.\u0275inj=pe({imports:[[Vu]]}),e})(),Nb=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=We({type:e}),e.\u0275inj=pe({imports:[[Vu]]}),e})(),Pb=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=We({type:e}),e.\u0275inj=pe({imports:[[Vu]]}),e})(),Kb=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=We({type:e}),e.\u0275inj=pe({imports:[[Vu]]}),e})(),Vb=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=We({type:e}),e.\u0275inj=pe({}),e})();new Zn("live announcer delay",{providedIn:"root",factory:function(){return 100}});let Gb=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=We({type:e}),e.\u0275inj=pe({imports:[[Vu]]}),e})();const jb=[wv,Bv,Fv,xv,Sv,Pv,Xv,lb,vb,Sb,Mb,Rb,Nb,Pb,Kb,Vb,Gb];let qb=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=We({type:e}),e.\u0275inj=pe({imports:[jb,wv,Bv,Fv,xv,Sv,Pv,Xv,lb,vb,Sb,Mb,Rb,Nb,Pb,Kb,Vb,Gb]}),e})(),zb=(()=>{class e{constructor(e,t){this.http=e,this.baseUrl=t}getTooltips(){return this.http.get(this.baseUrl+"SystemConfiguration/GetConfiguration").toPromise()}getCategories(){return this.http.get(this.baseUrl+"Categories/GetCategories").toPromise()}getContentAreas(e){return this.http.get(this.baseUrl+"ContentAreas/GetContentAreas?categoryId="+e).toPromise()}getIndicators(e){return this.http.get(this.baseUrl+"Indicators/GetIndicators?contentAreaId="+e).toPromise()}getIndicator(e){return this.http.get(this.baseUrl+"Indicators/GetIndicator?indicatorId="+e).toPromise()}getMeasures(e){return this.http.get(this.baseUrl+"Measures/GetMeasures?indicatorId="+e).toPromise()}getMeasureDescription(e){return this.http.get(this.baseUrl+"Measures/GetDescription?measureId="+e).toPromise()}getTimeConceptData(e){return this.http.get(this.baseUrl+"TimeConcept/GetTimeConceptFilter?measureId="+e).toPromise()}getTimeConceptTwoData(e,t){for(var n="",r=0;r<t.length;r++)n+="timeConceptOnes["+r+"]="+t[r]+"&";return n=n.substring(0,n.length-1),n=encodeURI(n),this.http.get(this.baseUrl+"TimeConcept/GetTimeConceptTwoFilters?measureId="+e+"&"+n).toPromise()}getGeographicData(e){return this.http.get(this.baseUrl+"Geography/GetGeographyFilter?measureId="+e).toPromise()}getOtherFilters(e){return this.http.get(this.baseUrl+"OtherFilters/GetOtherFilters?measureId="+e).toPromise()}getBookmarks(e){return this.http.get(this.baseUrl+"SavedBookmark/LoadBookmark?savedBookmarkSeq="+e).toPromise()}getGeographicGroupings(e){return this.http.get(this.baseUrl+"Geography/GetGeographyGroupings?measureId="+e).toPromise()}getGeographicDataFromGrouping(e,t,n){return this.http.get(this.baseUrl+"Geography/GetGeographyFilterFromGrouping?measureId="+e+"&groupingId="+t+"&groupingType="+n).toPromise()}}return e.\u0275fac=function(t){return new(t||e)(fr(Jd),fr("BASE_URL"))},e.\u0275prov=de({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function Wb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Xb(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Wb(Object(n),!0).forEach(function(t){Yb(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wb(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Jb(e){return(Jb="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Yb(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $b(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o=[],s=!0,a=!1;try{for(n=n.call(e);!(s=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);s=!0);}catch(l){a=!0,i=l}finally{try{s||null==n.return||n.return()}finally{if(a)throw i}}return o}}(e,t)||eC(e,t)||function(){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 Zb(e){return function(e){if(Array.isArray(e))return tC(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||eC(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 eC(e,t){if(e){if("string"==typeof e)return tC(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)?tC(e,t):void 0}}function tC(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var nC=function(){},rC={},iC={},oC=null,sC={mark:nC,measure:nC};try{"undefined"!=typeof window&&(rC=window),"undefined"!=typeof document&&(iC=document),"undefined"!=typeof MutationObserver&&(oC=MutationObserver),"undefined"!=typeof performance&&(sC=performance)}catch(PQ){}var aC=(rC.navigator||{}).userAgent,lC=void 0===aC?"":aC,AC=rC,cC=iC,uC=oC,hC=sC,dC=!!cC.documentElement&&!!cC.head&&"function"==typeof cC.addEventListener&&"function"==typeof cC.createElement,pC=~lC.indexOf("MSIE")||~lC.indexOf("Trident/"),fC="svg-inline--fa",gC="data-fa-i2svg",mC="data-fa-pseudo-element",yC="data-prefix",wC="data-icon",vC="fontawesome-i2svg",bC=["HTML","HEAD","STYLE","SCRIPT"],CC=function(){try{return!0}catch(PQ){return!1}}(),BC={fas:"solid","fa-solid":"solid",far:"regular","fa-regular":"regular",fal:"light","fa-light":"light",fat:"thin","fa-thin":"thin",fad:"duotone","fa-duotone":"duotone",fab:"brands","fa-brands":"brands",fak:"kit","fa-kit":"kit",fa:"solid"},EC={solid:"fas",regular:"far",light:"fal",thin:"fat",duotone:"fad",brands:"fab",kit:"fak"},_C={fab:"fa-brands",fad:"fa-duotone",fak:"fa-kit",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"},FC={"fa-brands":"fab","fa-duotone":"fad","fa-kit":"fak","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"},xC=/fa[srltdbk\-\ ]/,TC="fa-layers-text",QC=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Kit)?.*/i,SC={900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},kC=[1,2,3,4,5,6,7,8,9,10],UC=kC.concat([11,12,13,14,15,16,17,18,19,20]),DC=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],OC="duotone-group",LC="primary",IC="secondary",HC=[].concat(Zb(Object.keys(EC)),["2xs","xs","sm","lg","xl","2xl","beat","border","fade","beat-fade","bounce","flip-both","flip-horizontal","flip-vertical","flip","fw","inverse","layers-counter","layers-text","layers","li","pull-left","pull-right","pulse","rotate-180","rotate-270","rotate-90","rotate-by","shake","spin-pulse","spin-reverse","spin","stack-1x","stack-2x","stack","ul",OC,"swap-opacity",LC,IC]).concat(kC.map(function(e){return"".concat(e,"x")})).concat(UC.map(function(e){return"w-".concat(e)})),MC=AC.FontAwesomeConfig||{};cC&&"function"==typeof cC.querySelector&&[["data-family-prefix","familyPrefix"],["data-style-default","styleDefault"],["data-replacement-class","replacementClass"],["data-auto-replace-svg","autoReplaceSvg"],["data-auto-add-css","autoAddCss"],["data-auto-a11y","autoA11y"],["data-search-pseudo-elements","searchPseudoElements"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]].forEach(function(e){var t=$b(e,2),n=t[1],r=function(e){return""===e||"false"!==e&&("true"===e||e)}(function(e){var t=cC.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}(t[0]));null!=r&&(MC[n]=r)});var RC=Xb(Xb({},{familyPrefix:"fa",styleDefault:"solid",replacementClass:fC,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0}),MC);RC.autoReplaceSvg||(RC.observeMutations=!1);var NC={};Object.keys(RC).forEach(function(e){Object.defineProperty(NC,e,{enumerable:!0,set:function(t){RC[e]=t,PC.forEach(function(e){return e(NC)})},get:function(){return RC[e]}})}),AC.FontAwesomeConfig=NC;var PC=[],KC=16,VC={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function GC(){for(var e=12,t="";e-- >0;)t+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[62*Math.random()|0];return t}function jC(e){for(var t=[],n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function qC(e){return e.classList?jC(e.classList):(e.getAttribute("class")||"").split(" ").filter(function(e){return e})}function zC(e){return"".concat(e).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function WC(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,": ").concat(e[n].trim(),";")},"")}function XC(e){return e.size!==VC.size||e.x!==VC.x||e.y!==VC.y||e.rotate!==VC.rotate||e.flipX||e.flipY}function JC(){var e="fa",t=fC,n=NC.familyPrefix,r=NC.replacementClass,i=':root, :host {\n  --fa-font-solid: normal 900 1em/1 "Font Awesome 6 Solid";\n  --fa-font-regular: normal 400 1em/1 "Font Awesome 6 Regular";\n  --fa-font-light: normal 300 1em/1 "Font Awesome 6 Light";\n  --fa-font-thin: normal 100 1em/1 "Font Awesome 6 Thin";\n  --fa-font-duotone: normal 900 1em/1 "Font Awesome 6 Duotone";\n  --fa-font-brands: normal 400 1em/1 "Font Awesome 6 Brands";\n}\n\nsvg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {\n  overflow: visible;\n  box-sizing: content-box;\n}\n\n.svg-inline--fa {\n  display: var(--fa-display, inline-block);\n  height: 1em;\n  overflow: visible;\n  vertical-align: -0.125em;\n}\n.svg-inline--fa.fa-2xs {\n  vertical-align: 0.1em;\n}\n.svg-inline--fa.fa-xs {\n  vertical-align: 0em;\n}\n.svg-inline--fa.fa-sm {\n  vertical-align: -0.0714285705em;\n}\n.svg-inline--fa.fa-lg {\n  vertical-align: -0.2em;\n}\n.svg-inline--fa.fa-xl {\n  vertical-align: -0.25em;\n}\n.svg-inline--fa.fa-2xl {\n  vertical-align: -0.3125em;\n}\n.svg-inline--fa.fa-pull-left {\n  margin-right: var(--fa-pull-margin, 0.3em);\n  width: auto;\n}\n.svg-inline--fa.fa-pull-right {\n  margin-left: var(--fa-pull-margin, 0.3em);\n  width: auto;\n}\n.svg-inline--fa.fa-li {\n  width: var(--fa-li-width, 2em);\n  top: 0.25em;\n}\n.svg-inline--fa.fa-fw {\n  width: var(--fa-fw-width, 1.25em);\n}\n\n.fa-layers svg.svg-inline--fa {\n  bottom: 0;\n  left: 0;\n  margin: auto;\n  position: absolute;\n  right: 0;\n  top: 0;\n}\n\n.fa-layers-counter, .fa-layers-text {\n  display: inline-block;\n  position: absolute;\n  text-align: center;\n}\n\n.fa-layers {\n  display: inline-block;\n  height: 1em;\n  position: relative;\n  text-align: center;\n  vertical-align: -0.125em;\n  width: 1em;\n}\n.fa-layers svg.svg-inline--fa {\n  -webkit-transform-origin: center center;\n          transform-origin: center center;\n}\n\n.fa-layers-text {\n  left: 50%;\n  top: 50%;\n  -webkit-transform: translate(-50%, -50%);\n          transform: translate(-50%, -50%);\n  -webkit-transform-origin: center center;\n          transform-origin: center center;\n}\n\n.fa-layers-counter {\n  background-color: var(--fa-counter-background-color, #ff253a);\n  border-radius: var(--fa-counter-border-radius, 1em);\n  box-sizing: border-box;\n  color: var(--fa-inverse, #fff);\n  line-height: var(--fa-counter-line-height, 1);\n  max-width: var(--fa-counter-max-width, 5em);\n  min-width: var(--fa-counter-min-width, 1.5em);\n  overflow: hidden;\n  padding: var(--fa-counter-padding, 0.25em 0.5em);\n  right: var(--fa-right, 0);\n  text-overflow: ellipsis;\n  top: var(--fa-top, 0);\n  -webkit-transform: scale(var(--fa-counter-scale, 0.25));\n          transform: scale(var(--fa-counter-scale, 0.25));\n  -webkit-transform-origin: top right;\n          transform-origin: top right;\n}\n\n.fa-layers-bottom-right {\n  bottom: var(--fa-bottom, 0);\n  right: var(--fa-right, 0);\n  top: auto;\n  -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n          transform: scale(var(--fa-layers-scale, 0.25));\n  -webkit-transform-origin: bottom right;\n          transform-origin: bottom right;\n}\n\n.fa-layers-bottom-left {\n  bottom: var(--fa-bottom, 0);\n  left: var(--fa-left, 0);\n  right: auto;\n  top: auto;\n  -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n          transform: scale(var(--fa-layers-scale, 0.25));\n  -webkit-transform-origin: bottom left;\n          transform-origin: bottom left;\n}\n\n.fa-layers-top-right {\n  top: var(--fa-top, 0);\n  right: var(--fa-right, 0);\n  -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n          transform: scale(var(--fa-layers-scale, 0.25));\n  -webkit-transform-origin: top right;\n          transform-origin: top right;\n}\n\n.fa-layers-top-left {\n  left: var(--fa-left, 0);\n  right: auto;\n  top: var(--fa-top, 0);\n  -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n          transform: scale(var(--fa-layers-scale, 0.25));\n  -webkit-transform-origin: top left;\n          transform-origin: top left;\n}\n\n.fa-1x {\n  font-size: 1em;\n}\n\n.fa-2x {\n  font-size: 2em;\n}\n\n.fa-3x {\n  font-size: 3em;\n}\n\n.fa-4x {\n  font-size: 4em;\n}\n\n.fa-5x {\n  font-size: 5em;\n}\n\n.fa-6x {\n  font-size: 6em;\n}\n\n.fa-7x {\n  font-size: 7em;\n}\n\n.fa-8x {\n  font-size: 8em;\n}\n\n.fa-9x {\n  font-size: 9em;\n}\n\n.fa-10x {\n  font-size: 10em;\n}\n\n.fa-2xs {\n  font-size: 0.625em;\n  line-height: 0.1em;\n  vertical-align: 0.225em;\n}\n\n.fa-xs {\n  font-size: 0.75em;\n  line-height: 0.0833333337em;\n  vertical-align: 0.125em;\n}\n\n.fa-sm {\n  font-size: 0.875em;\n  line-height: 0.0714285718em;\n  vertical-align: 0.0535714295em;\n}\n\n.fa-lg {\n  font-size: 1.25em;\n  line-height: 0.05em;\n  vertical-align: -0.075em;\n}\n\n.fa-xl {\n  font-size: 1.5em;\n  line-height: 0.0416666682em;\n  vertical-align: -0.125em;\n}\n\n.fa-2xl {\n  font-size: 2em;\n  line-height: 0.03125em;\n  vertical-align: -0.1875em;\n}\n\n.fa-fw {\n  text-align: center;\n  width: 1.25em;\n}\n\n.fa-ul {\n  list-style-type: none;\n  margin-left: var(--fa-li-margin, 2.5em);\n  padding-left: 0;\n}\n.fa-ul > li {\n  position: relative;\n}\n\n.fa-li {\n  left: calc(var(--fa-li-width, 2em) * -1);\n  position: absolute;\n  text-align: center;\n  width: var(--fa-li-width, 2em);\n  line-height: inherit;\n}\n\n.fa-border {\n  border-color: var(--fa-border-color, #eee);\n  border-radius: var(--fa-border-radius, 0.1em);\n  border-style: var(--fa-border-style, solid);\n  border-width: var(--fa-border-width, 0.08em);\n  padding: var(--fa-border-padding, 0.2em 0.25em 0.15em);\n}\n\n.fa-pull-left {\n  float: left;\n  margin-right: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-pull-right {\n  float: right;\n  margin-left: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-beat {\n  -webkit-animation-name: fa-beat;\n          animation-name: fa-beat;\n  -webkit-animation-delay: var(--fa-animation-delay, 0);\n          animation-delay: var(--fa-animation-delay, 0);\n  -webkit-animation-direction: var(--fa-animation-direction, normal);\n          animation-direction: var(--fa-animation-direction, normal);\n  -webkit-animation-duration: var(--fa-animation-duration, 1s);\n          animation-duration: var(--fa-animation-duration, 1s);\n  -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n          animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n  -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out);\n          animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-bounce {\n  -webkit-animation-name: fa-bounce;\n          animation-name: fa-bounce;\n  -webkit-animation-delay: var(--fa-animation-delay, 0);\n          animation-delay: var(--fa-animation-delay, 0);\n  -webkit-animation-direction: var(--fa-animation-direction, normal);\n          animation-direction: var(--fa-animation-direction, normal);\n  -webkit-animation-duration: var(--fa-animation-duration, 1s);\n          animation-duration: var(--fa-animation-duration, 1s);\n  -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n          animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n  -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));\n          animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));\n}\n\n.fa-fade {\n  -webkit-animation-name: fa-fade;\n          animation-name: fa-fade;\n  -webkit-animation-delay: var(--fa-animation-delay, 0);\n          animation-delay: var(--fa-animation-delay, 0);\n  -webkit-animation-direction: var(--fa-animation-direction, normal);\n          animation-direction: var(--fa-animation-direction, normal);\n  -webkit-animation-duration: var(--fa-animation-duration, 1s);\n          animation-duration: var(--fa-animation-duration, 1s);\n  -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n          animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n  -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n          animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n}\n\n.fa-beat-fade {\n  -webkit-animation-name: fa-beat-fade;\n          animation-name: fa-beat-fade;\n  -webkit-animation-delay: var(--fa-animation-delay, 0);\n          animation-delay: var(--fa-animation-delay, 0);\n  -webkit-animation-direction: var(--fa-animation-direction, normal);\n          animation-direction: var(--fa-animation-direction, normal);\n  -webkit-animation-duration: var(--fa-animation-duration, 1s);\n          animation-duration: var(--fa-animation-duration, 1s);\n  -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n          animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n  -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n          animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n}\n\n.fa-flip {\n  -webkit-animation-name: fa-flip;\n          animation-name: fa-flip;\n  -webkit-animation-delay: var(--fa-animation-delay, 0);\n          animation-delay: var(--fa-animation-delay, 0);\n  -webkit-animation-direction: var(--fa-animation-direction, normal);\n          animation-direction: var(--fa-animation-direction, normal);\n  -webkit-animation-duration: var(--fa-animation-duration, 1s);\n          animation-duration: var(--fa-animation-duration, 1s);\n  -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n          animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n  -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out);\n          animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-shake {\n  -webkit-animation-name: fa-shake;\n          animation-name: fa-shake;\n  -webkit-animation-delay: var(--fa-animation-delay, 0);\n          animation-delay: var(--fa-animation-delay, 0);\n  -webkit-animation-direction: var(--fa-animation-direction, normal);\n          animation-direction: var(--fa-animation-direction, normal);\n  -webkit-animation-duration: var(--fa-animation-duration, 1s);\n          animation-duration: var(--fa-animation-duration, 1s);\n  -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n          animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n  -webkit-animation-timing-function: var(--fa-animation-timing, linear);\n          animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin {\n  -webkit-animation-name: fa-spin;\n          animation-name: fa-spin;\n  -webkit-animation-delay: var(--fa-animation-delay, 0);\n          animation-delay: var(--fa-animation-delay, 0);\n  -webkit-animation-direction: var(--fa-animation-direction, normal);\n          animation-direction: var(--fa-animation-direction, normal);\n  -webkit-animation-duration: var(--fa-animation-duration, 2s);\n          animation-duration: var(--fa-animation-duration, 2s);\n  -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n          animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n  -webkit-animation-timing-function: var(--fa-animation-timing, linear);\n          animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin-reverse {\n  --fa-animation-direction: reverse;\n}\n\n.fa-pulse,\n.fa-spin-pulse {\n  -webkit-animation-name: fa-spin;\n          animation-name: fa-spin;\n  -webkit-animation-direction: var(--fa-animation-direction, normal);\n          animation-direction: var(--fa-animation-direction, normal);\n  -webkit-animation-duration: var(--fa-animation-duration, 1s);\n          animation-duration: var(--fa-animation-duration, 1s);\n  -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n          animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n  -webkit-animation-timing-function: var(--fa-animation-timing, steps(8));\n          animation-timing-function: var(--fa-animation-timing, steps(8));\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .fa-beat,\n.fa-bounce,\n.fa-fade,\n.fa-beat-fade,\n.fa-flip,\n.fa-pulse,\n.fa-shake,\n.fa-spin,\n.fa-spin-pulse {\n    -webkit-animation-delay: -1ms;\n            animation-delay: -1ms;\n    -webkit-animation-duration: 1ms;\n            animation-duration: 1ms;\n    -webkit-animation-iteration-count: 1;\n            animation-iteration-count: 1;\n    transition-delay: 0s;\n    transition-duration: 0s;\n  }\n}\n@-webkit-keyframes fa-beat {\n  0%, 90% {\n    -webkit-transform: scale(1);\n            transform: scale(1);\n  }\n  45% {\n    -webkit-transform: scale(var(--fa-beat-scale, 1.25));\n            transform: scale(var(--fa-beat-scale, 1.25));\n  }\n}\n@keyframes fa-beat {\n  0%, 90% {\n    -webkit-transform: scale(1);\n            transform: scale(1);\n  }\n  45% {\n    -webkit-transform: scale(var(--fa-beat-scale, 1.25));\n            transform: scale(var(--fa-beat-scale, 1.25));\n  }\n}\n@-webkit-keyframes fa-bounce {\n  0% {\n    -webkit-transform: scale(1, 1) translateY(0);\n            transform: scale(1, 1) translateY(0);\n  }\n  10% {\n    -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n            transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n  }\n  30% {\n    -webkit-transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n            transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n  }\n  50% {\n    -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n            transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n  }\n  57% {\n    -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n            transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n  }\n  64% {\n    -webkit-transform: scale(1, 1) translateY(0);\n            transform: scale(1, 1) translateY(0);\n  }\n  100% {\n    -webkit-transform: scale(1, 1) translateY(0);\n            transform: scale(1, 1) translateY(0);\n  }\n}\n@keyframes fa-bounce {\n  0% {\n    -webkit-transform: scale(1, 1) translateY(0);\n            transform: scale(1, 1) translateY(0);\n  }\n  10% {\n    -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n            transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n  }\n  30% {\n    -webkit-transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n            transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n  }\n  50% {\n    -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n            transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n  }\n  57% {\n    -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n            transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n  }\n  64% {\n    -webkit-transform: scale(1, 1) translateY(0);\n            transform: scale(1, 1) translateY(0);\n  }\n  100% {\n    -webkit-transform: scale(1, 1) translateY(0);\n            transform: scale(1, 1) translateY(0);\n  }\n}\n@-webkit-keyframes fa-fade {\n  50% {\n    opacity: var(--fa-fade-opacity, 0.4);\n  }\n}\n@keyframes fa-fade {\n  50% {\n    opacity: var(--fa-fade-opacity, 0.4);\n  }\n}\n@-webkit-keyframes fa-beat-fade {\n  0%, 100% {\n    opacity: var(--fa-beat-fade-opacity, 0.4);\n    -webkit-transform: scale(1);\n            transform: scale(1);\n  }\n  50% {\n    opacity: 1;\n    -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125));\n            transform: scale(var(--fa-beat-fade-scale, 1.125));\n  }\n}\n@keyframes fa-beat-fade {\n  0%, 100% {\n    opacity: var(--fa-beat-fade-opacity, 0.4);\n    -webkit-transform: scale(1);\n            transform: scale(1);\n  }\n  50% {\n    opacity: 1;\n    -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125));\n            transform: scale(var(--fa-beat-fade-scale, 1.125));\n  }\n}\n@-webkit-keyframes fa-flip {\n  50% {\n    -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n            transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n  }\n}\n@keyframes fa-flip {\n  50% {\n    -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n            transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n  }\n}\n@-webkit-keyframes fa-shake {\n  0% {\n    -webkit-transform: rotate(-15deg);\n            transform: rotate(-15deg);\n  }\n  4% {\n    -webkit-transform: rotate(15deg);\n            transform: rotate(15deg);\n  }\n  8%, 24% {\n    -webkit-transform: rotate(-18deg);\n            transform: rotate(-18deg);\n  }\n  12%, 28% {\n    -webkit-transform: rotate(18deg);\n            transform: rotate(18deg);\n  }\n  16% {\n    -webkit-transform: rotate(-22deg);\n            transform: rotate(-22deg);\n  }\n  20% {\n    -webkit-transform: rotate(22deg);\n            transform: rotate(22deg);\n  }\n  32% {\n    -webkit-transform: rotate(-12deg);\n            transform: rotate(-12deg);\n  }\n  36% {\n    -webkit-transform: rotate(12deg);\n            transform: rotate(12deg);\n  }\n  40%, 100% {\n    -webkit-transform: rotate(0deg);\n            transform: rotate(0deg);\n  }\n}\n@keyframes fa-shake {\n  0% {\n    -webkit-transform: rotate(-15deg);\n            transform: rotate(-15deg);\n  }\n  4% {\n    -webkit-transform: rotate(15deg);\n            transform: rotate(15deg);\n  }\n  8%, 24% {\n    -webkit-transform: rotate(-18deg);\n            transform: rotate(-18deg);\n  }\n  12%, 28% {\n    -webkit-transform: rotate(18deg);\n            transform: rotate(18deg);\n  }\n  16% {\n    -webkit-transform: rotate(-22deg);\n            transform: rotate(-22deg);\n  }\n  20% {\n    -webkit-transform: rotate(22deg);\n            transform: rotate(22deg);\n  }\n  32% {\n    -webkit-transform: rotate(-12deg);\n            transform: rotate(-12deg);\n  }\n  36% {\n    -webkit-transform: rotate(12deg);\n            transform: rotate(12deg);\n  }\n  40%, 100% {\n    -webkit-transform: rotate(0deg);\n            transform: rotate(0deg);\n  }\n}\n@-webkit-keyframes fa-spin {\n  0% {\n    -webkit-transform: rotate(0deg);\n            transform: rotate(0deg);\n  }\n  100% {\n    -webkit-transform: rotate(360deg);\n            transform: rotate(360deg);\n  }\n}\n@keyframes fa-spin {\n  0% {\n    -webkit-transform: rotate(0deg);\n            transform: rotate(0deg);\n  }\n  100% {\n    -webkit-transform: rotate(360deg);\n            transform: rotate(360deg);\n  }\n}\n.fa-rotate-90 {\n  -webkit-transform: rotate(90deg);\n          transform: rotate(90deg);\n}\n\n.fa-rotate-180 {\n  -webkit-transform: rotate(180deg);\n          transform: rotate(180deg);\n}\n\n.fa-rotate-270 {\n  -webkit-transform: rotate(270deg);\n          transform: rotate(270deg);\n}\n\n.fa-flip-horizontal {\n  -webkit-transform: scale(-1, 1);\n          transform: scale(-1, 1);\n}\n\n.fa-flip-vertical {\n  -webkit-transform: scale(1, -1);\n          transform: scale(1, -1);\n}\n\n.fa-flip-both,\n.fa-flip-horizontal.fa-flip-vertical {\n  -webkit-transform: scale(-1, -1);\n          transform: scale(-1, -1);\n}\n\n.fa-rotate-by {\n  -webkit-transform: rotate(var(--fa-rotate-angle, none));\n          transform: rotate(var(--fa-rotate-angle, none));\n}\n\n.fa-stack {\n  display: inline-block;\n  vertical-align: middle;\n  height: 2em;\n  position: relative;\n  width: 2.5em;\n}\n\n.fa-stack-1x,\n.fa-stack-2x {\n  bottom: 0;\n  left: 0;\n  margin: auto;\n  position: absolute;\n  right: 0;\n  top: 0;\n  z-index: var(--fa-stack-z-index, auto);\n}\n\n.svg-inline--fa.fa-stack-1x {\n  height: 1em;\n  width: 1.25em;\n}\n.svg-inline--fa.fa-stack-2x {\n  height: 2em;\n  width: 2.5em;\n}\n\n.fa-inverse {\n  color: var(--fa-inverse, #fff);\n}\n\n.sr-only,\n.fa-sr-only {\n  position: absolute;\n  width: 1px;\n  height: 1px;\n  padding: 0;\n  margin: -1px;\n  overflow: hidden;\n  clip: rect(0, 0, 0, 0);\n  white-space: nowrap;\n  border-width: 0;\n}\n\n.sr-only-focusable:not(:focus),\n.fa-sr-only-focusable:not(:focus) {\n  position: absolute;\n  width: 1px;\n  height: 1px;\n  padding: 0;\n  margin: -1px;\n  overflow: hidden;\n  clip: rect(0, 0, 0, 0);\n  white-space: nowrap;\n  border-width: 0;\n}\n\n.svg-inline--fa .fa-primary {\n  fill: var(--fa-primary-color, currentColor);\n  opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa .fa-secondary {\n  fill: var(--fa-secondary-color, currentColor);\n  opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-primary {\n  opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-secondary {\n  opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa mask .fa-primary,\n.svg-inline--fa mask .fa-secondary {\n  fill: black;\n}\n\n.fad.fa-inverse,\n.fa-duotone.fa-inverse {\n  color: var(--fa-inverse, #fff);\n}';if(n!==e||r!==t){var o=new RegExp("\\.".concat(e,"\\-"),"g"),s=new RegExp("\\--".concat(e,"\\-"),"g"),a=new RegExp("\\.".concat(t),"g");i=i.replace(o,".".concat(n,"-")).replace(s,"--".concat(n,"-")).replace(a,".".concat(r))}return i}var YC=!1;function $C(){NC.autoAddCss&&!YC&&(function(e){if(e&&dC){var t=cC.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;for(var n=cC.head.childNodes,r=null,i=n.length-1;i>-1;i--){var o=n[i],s=(o.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(s)>-1&&(r=o)}cC.head.insertBefore(t,r)}}(JC()),YC=!0)}var ZC={mixout:function(){return{dom:{css:JC,insertCss:$C}}},hooks:function(){return{beforeDOMElementCreation:function(){$C()},beforeI2svg:function(){$C()}}}},eB=AC||{};eB.___FONT_AWESOME___||(eB.___FONT_AWESOME___={}),eB.___FONT_AWESOME___.styles||(eB.___FONT_AWESOME___.styles={}),eB.___FONT_AWESOME___.hooks||(eB.___FONT_AWESOME___.hooks={}),eB.___FONT_AWESOME___.shims||(eB.___FONT_AWESOME___.shims=[]);var tB=eB.___FONT_AWESOME___,nB=[],rB=!1;function iB(e){dC&&(rB?setTimeout(e,0):nB.push(e))}function oB(e){var t=e.tag,n=e.attributes,r=void 0===n?{}:n,i=e.children,o=void 0===i?[]:i;return"string"==typeof e?zC(e):"<".concat(t," ").concat(function(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,'="').concat(zC(e[n]),'" ')},"").trim()}(r),">").concat(o.map(oB).join(""),"</").concat(t,">")}function sB(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}dC&&((rB=(cC.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(cC.readyState))||cC.addEventListener("DOMContentLoaded",function e(){cC.removeEventListener("DOMContentLoaded",e),rB=1,nB.map(function(e){return e()})}));var aB=function(e,t,n,r){var i,o,s,a=Object.keys(e),l=a.length,A=void 0!==r?function(e,t){return function(n,r,i,o){return e.call(t,n,r,i,o)}}(t,r):t;for(void 0===n?(i=1,s=e[a[0]]):(i=0,s=n);i<l;i++)s=A(s,e[o=a[i]],o,e);return s};function lB(e){var t=function(e){for(var t=[],n=0,r=e.length;n<r;){var i=e.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){var o=e.charCodeAt(n++);56320==(64512&o)?t.push(((1023&i)<<10)+(1023&o)+65536):(t.push(i),n--)}else t.push(i)}return t}(e);return 1===t.length?t[0].toString(16):null}function AB(e){return Object.keys(e).reduce(function(t,n){var r=e[n];return r.icon?t[r.iconName]=r.icon:t[n]=r,t},{})}function cB(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.skipHooks,i=void 0!==r&&r,o=AB(t);"function"!=typeof tB.hooks.addPack||i?tB.styles[e]=Xb(Xb({},tB.styles[e]||{}),o):tB.hooks.addPack(e,AB(t)),"fas"===e&&cB("fa",t)}var uB=tB.styles,hB=tB.shims,dB=Object.values(_C),pB=null,fB={},gB={},mB={},yB={},wB={},vB=Object.keys(BC);function bB(e,t){var n=t.split("-"),r=n[0],i=n.slice(1).join("-");return r!==e||""===i||~HC.indexOf(i)?null:i}var CB=function(){var e=function(e){return aB(uB,function(t,n,r){return t[r]=aB(n,e,{}),t},{})};fB=e(function(e,t,n){return t[3]&&(e[t[3]]=n),t[2]&&t[2].filter(function(e){return"number"==typeof e}).forEach(function(t){e[t.toString(16)]=n}),e}),gB=e(function(e,t,n){return e[n]=n,t[2]&&t[2].filter(function(e){return"string"==typeof e}).forEach(function(t){e[t]=n}),e}),wB=e(function(e,t,n){var r=t[2];return e[n]=n,r.forEach(function(t){e[t]=n}),e});var t="far"in uB||NC.autoFetchSvg,n=aB(hB,function(e,n){var r=n[0],i=n[1],o=n[2];return"far"!==i||t||(i="fas"),"string"==typeof r&&(e.names[r]={prefix:i,iconName:o}),"number"==typeof r&&(e.unicodes[r.toString(16)]={prefix:i,iconName:o}),e},{names:{},unicodes:{}});mB=n.names,yB=n.unicodes,pB=xB(NC.styleDefault)};function BB(e,t){return(fB[e]||{})[t]}function EB(e,t){return(wB[e]||{})[t]}function _B(e){return mB[e]||{prefix:null,iconName:null}}function FB(){return pB}function xB(e){return EC[e]||EC[BC[e]]||(e in tB.styles?e:null)||null}function TB(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.skipLookups,r=void 0!==n&&n,i=null,o=e.reduce(function(e,t){var n=bB(NC.familyPrefix,t);if(uB[t]?(t=dB.includes(t)?FC[t]:t,i=t,e.prefix=t):vB.indexOf(t)>-1?(i=t,e.prefix=xB(t)):n?e.iconName=n:t!==NC.replacementClass&&e.rest.push(t),!r&&e.prefix&&e.iconName){var o="fa"===i?_B(e.iconName):{},s=EB(e.prefix,e.iconName);o.prefix&&(i=null),e.iconName=o.iconName||s||e.iconName,e.prefix=o.prefix||e.prefix,"far"!==e.prefix||uB.far||!uB.fas||NC.autoFetchSvg||(e.prefix="fas")}return e},{prefix:null,iconName:null,rest:[]});return"fa"!==o.prefix&&"fa"!==i||(o.prefix=FB()||"fas"),o}PC.push(function(e){pB=xB(e.styleDefault)}),CB();var QB=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.definitions={}}var t,n;return t=e,(n=[{key:"add",value:function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=n.reduce(this._pullDefinitions,{});Object.keys(i).forEach(function(t){e.definitions[t]=Xb(Xb({},e.definitions[t]||{}),i[t]),cB(t,i[t]);var n=_C[t];n&&cB(n,i[t]),CB()})}},{key:"reset",value:function(){this.definitions={}}},{key:"_pullDefinitions",value:function(e,t){var n=t.prefix&&t.iconName&&t.icon?{0:t}:t;return Object.keys(n).map(function(t){var r=n[t],i=r.prefix,o=r.iconName,s=r.icon,a=s[2];e[i]||(e[i]={}),a.length>0&&a.forEach(function(t){"string"==typeof t&&(e[i][t]=s)}),e[i][o]=s}),e}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}(),SB=[],kB={},UB={},DB=Object.keys(UB);function OB(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];var o=kB[e]||[];return o.forEach(function(e){t=e.apply(null,[t].concat(r))}),t}function LB(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i=kB[e]||[];i.forEach(function(e){e.apply(null,n)})}function IB(){var e=arguments[0],t=Array.prototype.slice.call(arguments,1);return UB[e]?UB[e].apply(null,t):void 0}function HB(e){"fa"===e.prefix&&(e.prefix="fas");var t=e.iconName,n=e.prefix||FB();if(t)return t=EB(n,t)||t,sB(MB.definitions,n,t)||sB(tB.styles,n,t)}var MB=new QB,RB={i2svg:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return dC?(LB("beforeI2svg",e),IB("pseudoElements2svg",e),IB("i2svg",e)):Promise.reject("Operation requires a DOM of some kind.")},watch:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.autoReplaceSvgRoot;!1===NC.autoReplaceSvg&&(NC.autoReplaceSvg=!0),NC.observeMutations=!0,iB(function(){PB({autoReplaceSvgRoot:t}),LB("watch",e)})}},NB={noAuto:function(){NC.autoReplaceSvg=!1,NC.observeMutations=!1,LB("noAuto")},config:NC,dom:RB,parse:{icon:function(e){if(null===e)return null;if("object"===Jb(e)&&e.prefix&&e.iconName)return{prefix:e.prefix,iconName:EB(e.prefix,e.iconName)||e.iconName};if(Array.isArray(e)&&2===e.length){var t=0===e[1].indexOf("fa-")?e[1].slice(3):e[1],n=xB(e[0]);return{prefix:n,iconName:EB(n,t)||t}}if("string"==typeof e&&(e.indexOf("".concat(NC.familyPrefix,"-"))>-1||e.match(xC))){var r=TB(e.split(" "),{skipLookups:!0});return{prefix:r.prefix||FB(),iconName:EB(r.prefix,r.iconName)||r.iconName}}if("string"==typeof e){var i=FB();return{prefix:i,iconName:EB(i,e)||e}}}},library:MB,findIconDefinition:HB,toHtml:oB},PB=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.autoReplaceSvgRoot,n=void 0===t?cC:t;(Object.keys(tB.styles).length>0||NC.autoFetchSvg)&&dC&&NC.autoReplaceSvg&&NB.dom.i2svg({node:n})};function KB(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(function(e){return oB(e)})}}),Object.defineProperty(e,"node",{get:function(){if(dC){var t=cC.createElement("div");return t.innerHTML=e.html,t.children}}}),e}function VB(e){var t=e.icons,n=t.main,r=t.mask,i=e.prefix,o=e.iconName,s=e.transform,a=e.symbol,l=e.title,A=e.maskId,c=e.titleId,u=e.extra,h=e.watchable,d=void 0!==h&&h,p=r.found?r:n,f=p.width,g=p.height,m="fak"===i,y=[NC.replacementClass,o?"".concat(NC.familyPrefix,"-").concat(o):""].filter(function(e){return-1===u.classes.indexOf(e)}).filter(function(e){return""!==e||!!e}).concat(u.classes).join(" "),w={children:[],attributes:Xb(Xb({},u.attributes),{},{"data-prefix":i,"data-icon":o,class:y,role:u.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(f," ").concat(g)})},v=m&&!~u.classes.indexOf("fa-fw")?{width:"".concat(f/g*16*.0625,"em")}:{};d&&(w.attributes[gC]=""),l&&(w.children.push({tag:"title",attributes:{id:w.attributes["aria-labelledby"]||"title-".concat(c||GC())},children:[l]}),delete w.attributes.title);var b=Xb(Xb({},w),{},{prefix:i,iconName:o,main:n,mask:r,maskId:A,transform:s,symbol:a,styles:Xb(Xb({},v),u.styles)}),C=r.found&&n.found?IB("generateAbstractMask",b)||{children:[],attributes:{}}:IB("generateAbstractIcon",b)||{children:[],attributes:{}},B=C.attributes;return b.children=C.children,b.attributes=B,a?function(e){var t=e.iconName,n=e.children,r=e.attributes,i=e.symbol,o=!0===i?"".concat(e.prefix,"-").concat(NC.familyPrefix,"-").concat(t):i;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:Xb(Xb({},r),{},{id:o}),children:n}]}]}(b):function(e){var t=e.children,n=e.main,r=e.mask,i=e.attributes,o=e.styles,s=e.transform;if(XC(s)&&n.found&&!r.found){var a={x:n.width/n.height/2,y:.5};i.style=WC(Xb(Xb({},o),{},{"transform-origin":"".concat(a.x+s.x/16,"em ").concat(a.y+s.y/16,"em")}))}return[{tag:"svg",attributes:i,children:t}]}(b)}function GB(e){var t=e.content,n=e.width,r=e.height,i=e.transform,o=e.title,s=e.extra,a=e.watchable,l=void 0!==a&&a,A=Xb(Xb(Xb({},s.attributes),o?{title:o}:{}),{},{class:s.classes.join(" ")});l&&(A[gC]="");var c=Xb({},s.styles);XC(i)&&(c.transform=function(e){var t=e.transform,n=e.width,r=e.height,i=void 0===r?16:r,o=e.startCentered,s=void 0!==o&&o,a="";return a+=s&&pC?"translate(".concat(t.x/KC-(void 0===n?16:n)/2,"em, ").concat(t.y/KC-i/2,"em) "):s?"translate(calc(-50% + ".concat(t.x/KC,"em), calc(-50% + ").concat(t.y/KC,"em)) "):"translate(".concat(t.x/KC,"em, ").concat(t.y/KC,"em) "),(a+="scale(".concat(t.size/KC*(t.flipX?-1:1),", ").concat(t.size/KC*(t.flipY?-1:1),") "))+"rotate(".concat(t.rotate,"deg) ")}({transform:i,startCentered:!0,width:n,height:r}),c["-webkit-transform"]=c.transform);var u=WC(c);u.length>0&&(A.style=u);var h=[];return h.push({tag:"span",attributes:A,children:[t]}),o&&h.push({tag:"span",attributes:{class:"sr-only"},children:[o]}),h}function jB(e){var t=e.content,n=e.title,r=e.extra,i=Xb(Xb(Xb({},r.attributes),n?{title:n}:{}),{},{class:r.classes.join(" ")}),o=WC(r.styles);o.length>0&&(i.style=o);var s=[];return s.push({tag:"span",attributes:i,children:[t]}),n&&s.push({tag:"span",attributes:{class:"sr-only"},children:[n]}),s}var qB=tB.styles;function zB(e){var t=e[0],n=e[1],r=$b(e.slice(4),1)[0];return{found:!0,width:t,height:n,icon:Array.isArray(r)?{tag:"g",attributes:{class:"".concat(NC.familyPrefix,"-").concat(OC)},children:[{tag:"path",attributes:{class:"".concat(NC.familyPrefix,"-").concat(IC),fill:"currentColor",d:r[0]}},{tag:"path",attributes:{class:"".concat(NC.familyPrefix,"-").concat(LC),fill:"currentColor",d:r[1]}}]}:{tag:"path",attributes:{fill:"currentColor",d:r}}}}var WB={found:!1,width:512,height:512};function XB(e,t){var n=t;return"fa"===t&&null!==NC.styleDefault&&(t=FB()),new Promise(function(r,i){if(IB("missingIconAbstract"),"fa"===n){var o=_B(e)||{};e=o.iconName||e,t=o.prefix||t}if(e&&t&&qB[t]&&qB[t][e])return r(zB(qB[t][e]));!function(e,t){CC||NC.showMissingIcons||!e||console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}(e,t),r(Xb(Xb({},WB),{},{icon:NC.showMissingIcons&&e&&IB("missingIconAbstract")||{}}))})}var JB=function(){},YB=NC.measurePerformance&&hC&&hC.mark&&hC.measure?hC:{mark:JB,measure:JB},$B='FA "6.0.0"',ZB=function(e){return YB.mark("".concat($B," ").concat(e," begins")),function(){return function(e){YB.mark("".concat($B," ").concat(e," ends")),YB.measure("".concat($B," ").concat(e),"".concat($B," ").concat(e," begins"),"".concat($B," ").concat(e," ends"))}(e)}},eE=function(){};function tE(e){return"string"==typeof(e.getAttribute?e.getAttribute(gC):null)}function nE(e){return cC.createElementNS("http://www.w3.org/2000/svg",e)}function rE(e){return cC.createElement(e)}function iE(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.ceFn,r=void 0===n?"svg"===e.tag?nE:rE:n;if("string"==typeof e)return cC.createTextNode(e);var i=r(e.tag);Object.keys(e.attributes||[]).forEach(function(t){i.setAttribute(t,e.attributes[t])});var o=e.children||[];return o.forEach(function(e){i.appendChild(iE(e,{ceFn:r}))}),i}var oE={replace:function(e){var t=e[0];if(t.parentNode)if(e[1].forEach(function(e){t.parentNode.insertBefore(iE(e),t)}),null===t.getAttribute(gC)&&NC.keepOriginalSource){var n=cC.createComment(function(e){var t=" ".concat(e.outerHTML," ");return"".concat(t,"Font Awesome fontawesome.com ")}(t));t.parentNode.replaceChild(n,t)}else t.remove()},nest:function(e){var t=e[0],n=e[1];if(~qC(t).indexOf(NC.replacementClass))return oE.replace(e);var r=new RegExp("".concat(NC.familyPrefix,"-.*"));if(delete n[0].attributes.id,n[0].attributes.class){var i=n[0].attributes.class.split(" ").reduce(function(e,t){return t===NC.replacementClass||t.match(r)?e.toSvg.push(t):e.toNode.push(t),e},{toNode:[],toSvg:[]});n[0].attributes.class=i.toSvg.join(" "),0===i.toNode.length?t.removeAttribute("class"):t.setAttribute("class",i.toNode.join(" "))}var o=n.map(function(e){return oB(e)}).join("\n");t.setAttribute(gC,""),t.innerHTML=o}};function sE(e){e()}function aE(e,t){var n="function"==typeof t?t:eE;if(0===e.length)n();else{var r=sE;"async"===NC.mutateApproach&&(r=AC.requestAnimationFrame||sE),r(function(){var t=!0===NC.autoReplaceSvg?oE.replace:oE[NC.autoReplaceSvg]||oE.replace,r=ZB("mutate");e.map(t),r(),n()})}}var lE=!1;function AE(){lE=!0}function cE(){lE=!1}var uE=null;function hE(e){if(uC&&NC.observeMutations){var t=e.treeCallback,n=void 0===t?eE:t,r=e.nodeCallback,i=void 0===r?eE:r,o=e.pseudoElementsCallback,s=void 0===o?eE:o,a=e.observeMutationsRoot,l=void 0===a?cC:a;uE=new uC(function(e){if(!lE){var t=FB();jC(e).forEach(function(e){if("childList"===e.type&&e.addedNodes.length>0&&!tE(e.addedNodes[0])&&(NC.searchPseudoElements&&s(e.target),n(e.target)),"attributes"===e.type&&e.target.parentNode&&NC.searchPseudoElements&&s(e.target.parentNode),"attributes"===e.type&&tE(e.target)&&~DC.indexOf(e.attributeName))if("class"===e.attributeName&&function(e){var t=e.getAttribute?e.getAttribute(yC):null,n=e.getAttribute?e.getAttribute(wC):null;return t&&n}(e.target)){var r=TB(qC(e.target)),o=r.iconName;e.target.setAttribute(yC,r.prefix||t),o&&e.target.setAttribute(wC,o)}else(a=e.target)&&a.classList&&a.classList.contains&&a.classList.contains(NC.replacementClass)&&i(e.target);var a})}}),dC&&uE.observe(l,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function dE(e){var t=e.getAttribute("style"),n=[];return t&&(n=t.split(";").reduce(function(e,t){var n=t.split(":"),r=n[0],i=n.slice(1);return r&&i.length>0&&(e[r]=i.join(":").trim()),e},{})),n}function pE(e){var t=e.getAttribute("data-prefix"),n=e.getAttribute("data-icon"),r=void 0!==e.innerText?e.innerText.trim():"",i=TB(qC(e));return i.prefix||(i.prefix=FB()),t&&n&&(i.prefix=t,i.iconName=n),i.iconName&&i.prefix||i.prefix&&r.length>0&&(i.iconName=(gB[i.prefix]||{})[e.innerText]||BB(i.prefix,lB(e.innerText))),i}function fE(e){var t=jC(e.attributes).reduce(function(e,t){return"class"!==e.name&&"style"!==e.name&&(e[t.name]=t.value),e},{}),n=e.getAttribute("title"),r=e.getAttribute("data-fa-title-id");return NC.autoA11y&&(n?t["aria-labelledby"]="".concat(NC.replacementClass,"-title-").concat(r||GC()):(t["aria-hidden"]="true",t.focusable="false")),t}function gE(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{styleParser:!0},n=pE(e),r=n.iconName,i=n.prefix,o=n.rest,s=fE(e),a=OB("parseNodeAttributes",{},e),l=t.styleParser?dE(e):[];return Xb({iconName:r,title:e.getAttribute("title"),titleId:e.getAttribute("data-fa-title-id"),prefix:i,transform:VC,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:o,styles:l,attributes:s}},a)}var mE=tB.styles;function yE(e){var t="nest"===NC.autoReplaceSvg?gE(e,{styleParser:!1}):gE(e);return~t.extra.classes.indexOf(TC)?IB("generateLayersText",e,t):IB("generateSvgReplacementMutation",e,t)}function wE(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!dC)return Promise.resolve();var n=cC.documentElement.classList,r=function(e){return n.add("".concat(vC,"-").concat(e))},i=function(e){return n.remove("".concat(vC,"-").concat(e))},o=Object.keys(NC.autoFetchSvg?BC:mE),s=[".".concat(TC,":not([").concat(gC,"])")].concat(o.map(function(e){return".".concat(e,":not([").concat(gC,"])")})).join(", ");if(0===s.length)return Promise.resolve();var a=[];try{a=jC(e.querySelectorAll(s))}catch(PQ){}if(!(a.length>0))return Promise.resolve();r("pending"),i("complete");var l=ZB("onTree"),A=a.reduce(function(e,t){try{var n=yE(t);n&&e.push(n)}catch(PQ){CC||"MissingIcon"===PQ.name&&console.error(PQ)}return e},[]);return new Promise(function(e,n){Promise.all(A).then(function(n){aE(n,function(){r("active"),r("complete"),i("pending"),"function"==typeof t&&t(),l(),e()})}).catch(function(e){l(),n(e)})})}function vE(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;yE(e).then(function(e){e&&aE([e],t)})}var bE=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.transform,r=void 0===n?VC:n,i=t.symbol,o=void 0!==i&&i,s=t.mask,a=void 0===s?null:s,l=t.maskId,A=void 0===l?null:l,c=t.title,u=void 0===c?null:c,h=t.titleId,d=void 0===h?null:h,p=t.classes,f=void 0===p?[]:p,g=t.attributes,m=void 0===g?{}:g,y=t.styles,w=void 0===y?{}:y;if(e){var v=e.prefix,b=e.iconName,C=e.icon;return KB(Xb({type:"icon"},e),function(){return LB("beforeDOMElementCreation",{iconDefinition:e,params:t}),NC.autoA11y&&(u?m["aria-labelledby"]="".concat(NC.replacementClass,"-title-").concat(d||GC()):(m["aria-hidden"]="true",m.focusable="false")),VB({icons:{main:zB(C),mask:a?zB(a.icon):{found:!1,width:null,height:null,icon:{}}},prefix:v,iconName:b,transform:Xb(Xb({},VC),r),symbol:o,title:u,maskId:A,titleId:d,extra:{attributes:m,styles:w,classes:f}})})}},CE={mixout:function(){return{icon:(e=bE,function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=(t||{}).icon?t:HB(t||{}),i=n.mask;return i&&(i=(i||{}).icon?i:HB(i||{})),e(r,Xb(Xb({},n),{},{mask:i}))})};var e},hooks:function(){return{mutationObserverCallbacks:function(e){return e.treeCallback=wE,e.nodeCallback=vE,e}}},provides:function(e){e.i2svg=function(e){var t=e.node,n=e.callback;return wE(void 0===t?cC:t,void 0===n?function(){}:n)},e.generateSvgReplacementMutation=function(e,t){var n=t.iconName,r=t.title,i=t.titleId,o=t.prefix,s=t.transform,a=t.symbol,l=t.mask,A=t.maskId,c=t.extra;return new Promise(function(t,u){Promise.all([XB(n,o),l.iconName?XB(l.iconName,l.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(l){var u=$b(l,2);t([e,VB({icons:{main:u[0],mask:u[1]},prefix:o,iconName:n,transform:s,symbol:a,maskId:A,title:r,titleId:i,extra:c,watchable:!0})])}).catch(u)})},e.generateAbstractIcon=function(e){var t,n=e.children,r=e.attributes,i=e.main,o=e.transform,s=WC(e.styles);return s.length>0&&(r.style=s),XC(o)&&(t=IB("generateAbstractTransformGrouping",{main:i,transform:o,containerWidth:i.width,iconWidth:i.width})),n.push(t||i.icon),{children:n,attributes:r}}}},BE={mixout:function(){return{layer:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.classes,r=void 0===n?[]:n;return KB({type:"layer"},function(){LB("beforeDOMElementCreation",{assembler:e,params:t});var n=[];return e(function(e){Array.isArray(e)?e.map(function(e){n=n.concat(e.abstract)}):n=n.concat(e.abstract)}),[{tag:"span",attributes:{class:["".concat(NC.familyPrefix,"-layers")].concat(Zb(r)).join(" ")},children:n}]})}}}},EE={mixout:function(){return{counter:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.title,r=void 0===n?null:n,i=t.classes,o=void 0===i?[]:i,s=t.attributes,a=void 0===s?{}:s,l=t.styles,A=void 0===l?{}:l;return KB({type:"counter",content:e},function(){return LB("beforeDOMElementCreation",{content:e,params:t}),jB({content:e.toString(),title:r,extra:{attributes:a,styles:A,classes:["".concat(NC.familyPrefix,"-layers-counter")].concat(Zb(o))}})})}}}},_E={mixout:function(){return{text:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.transform,r=void 0===n?VC:n,i=t.title,o=void 0===i?null:i,s=t.classes,a=void 0===s?[]:s,l=t.attributes,A=void 0===l?{}:l,c=t.styles,u=void 0===c?{}:c;return KB({type:"text",content:e},function(){return LB("beforeDOMElementCreation",{content:e,params:t}),GB({content:e,transform:Xb(Xb({},VC),r),title:o,extra:{attributes:A,styles:u,classes:["".concat(NC.familyPrefix,"-layers-text")].concat(Zb(a))}})})}}},provides:function(e){e.generateLayersText=function(e,t){var n=t.title,r=t.transform,i=t.extra,o=null,s=null;if(pC){var a=parseInt(getComputedStyle(e).fontSize,10),l=e.getBoundingClientRect();o=l.width/a,s=l.height/a}return NC.autoA11y&&!n&&(i.attributes["aria-hidden"]="true"),Promise.resolve([e,GB({content:e.innerHTML,width:o,height:s,transform:r,title:n,extra:i,watchable:!0})])}}},FE=new RegExp('"',"ug"),xE=[1105920,1112319];function TE(e,t){var n="".concat("data-fa-pseudo-element-pending").concat(t.replace(":","-"));return new Promise(function(r,i){if(null!==e.getAttribute(n))return r();var o,s,a,l=jC(e.children).filter(function(e){return e.getAttribute(mC)===t})[0],A=AC.getComputedStyle(e,t),c=A.getPropertyValue("font-family").match(QC),u=A.getPropertyValue("font-weight"),h=A.getPropertyValue("content");if(l&&!c)return e.removeChild(l),r();if(c&&"none"!==h&&""!==h){var d=A.getPropertyValue("content"),p=~["Solid","Regular","Light","Thin","Duotone","Brands","Kit"].indexOf(c[2])?EC[c[2].toLowerCase()]:SC[u],f=function(e){var t=e.replace(FE,""),n=function(e,t){var n,r=e.length,i=e.charCodeAt(0);return i>=55296&&i<=56319&&r>1&&(n=e.charCodeAt(1))>=56320&&n<=57343?1024*(i-55296)+n-56320+65536:i}(t),r=n>=xE[0]&&n<=xE[1],i=2===t.length&&t[0]===t[1];return{value:lB(i?t[0]:t),isSecondary:r||i}}(d),g=f.value,m=f.isSecondary,y=c[0].startsWith("FontAwesome"),w=BB(p,g),v=w;if(y){var b=(s=yB[o=g],a=BB("fas",o),s||(a?{prefix:"fas",iconName:a}:null)||{prefix:null,iconName:null});b.iconName&&b.prefix&&(w=b.iconName,p=b.prefix)}if(!w||m||l&&l.getAttribute(yC)===p&&l.getAttribute(wC)===v)r();else{e.setAttribute(n,v),l&&e.removeChild(l);var C={iconName:null,title:null,titleId:null,prefix:null,transform:VC,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}},B=C.extra;B.attributes[mC]=t,XB(w,p).then(function(i){var o=VB(Xb(Xb({},C),{},{icons:{main:i,mask:{prefix:null,iconName:null,rest:[]}},prefix:p,iconName:v,extra:B,watchable:!0})),s=cC.createElement("svg");"::before"===t?e.insertBefore(s,e.firstChild):e.appendChild(s),s.outerHTML=o.map(function(e){return oB(e)}).join("\n"),e.removeAttribute(n),r()}).catch(i)}}else r()})}function QE(e){return Promise.all([TE(e,"::before"),TE(e,"::after")])}function SE(e){return!(e.parentNode===document.head||~bC.indexOf(e.tagName.toUpperCase())||e.getAttribute(mC)||e.parentNode&&"svg"===e.parentNode.tagName)}function kE(e){if(dC)return new Promise(function(t,n){var r=jC(e.querySelectorAll("*")).filter(SE).map(QE),i=ZB("searchPseudoElements");AE(),Promise.all(r).then(function(){i(),cE(),t()}).catch(function(){i(),cE(),n()})})}var UE,DE=!1,OE=function(e){return e.toLowerCase().split(" ").reduce(function(e,t){var n=t.toLowerCase().split("-"),r=n[0],i=n.slice(1).join("-");if(r&&"h"===i)return e.flipX=!0,e;if(r&&"v"===i)return e.flipY=!0,e;if(i=parseFloat(i),isNaN(i))return e;switch(r){case"grow":e.size=e.size+i;break;case"shrink":e.size=e.size-i;break;case"left":e.x=e.x-i;break;case"right":e.x=e.x+i;break;case"up":e.y=e.y-i;break;case"down":e.y=e.y+i;break;case"rotate":e.rotate=e.rotate+i}return e},{size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0})},LE={x:0,y:0,width:"100%",height:"100%"};function IE(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return e.attributes&&(e.attributes.fill||t)&&(e.attributes.fill="black"),e}UE=NB,SB=[ZC,CE,BE,EE,_E,{hooks:function(){return{mutationObserverCallbacks:function(e){return e.pseudoElementsCallback=kE,e}}},provides:function(e){e.pseudoElements2svg=function(e){var t=e.node;NC.searchPseudoElements&&kE(void 0===t?cC:t)}}},{mixout:function(){return{dom:{unwatch:function(){AE(),DE=!0}}}},hooks:function(){return{bootstrap:function(){hE(OB("mutationObserverCallbacks",{}))},noAuto:function(){uE&&uE.disconnect()},watch:function(e){var t=e.observeMutationsRoot;DE?cE():hE(OB("mutationObserverCallbacks",{observeMutationsRoot:t}))}}}},{mixout:function(){return{parse:{transform:function(e){return OE(e)}}}},hooks:function(){return{parseNodeAttributes:function(e,t){var n=t.getAttribute("data-fa-transform");return n&&(e.transform=OE(n)),e}}},provides:function(e){e.generateAbstractTransformGrouping=function(e){var t=e.main,n=e.transform,r=e.iconWidth,i={transform:"translate(".concat(e.containerWidth/2," 256)")},o="translate(".concat(32*n.x,", ").concat(32*n.y,") "),s="scale(".concat(n.size/16*(n.flipX?-1:1),", ").concat(n.size/16*(n.flipY?-1:1),") "),a="rotate(".concat(n.rotate," 0 0)"),l={outer:i,inner:{transform:"".concat(o," ").concat(s," ").concat(a)},path:{transform:"translate(".concat(r/2*-1," -256)")}};return{tag:"g",attributes:Xb({},l.outer),children:[{tag:"g",attributes:Xb({},l.inner),children:[{tag:t.icon.tag,children:t.icon.children,attributes:Xb(Xb({},t.icon.attributes),l.path)}]}]}}}},{hooks:function(){return{parseNodeAttributes:function(e,t){var n=t.getAttribute("data-fa-mask"),r=n?TB(n.split(" ").map(function(e){return e.trim()})):{prefix:null,iconName:null,rest:[]};return r.prefix||(r.prefix=FB()),e.mask=r,e.maskId=t.getAttribute("data-fa-mask-id"),e}}},provides:function(e){e.generateAbstractMask=function(e){var t,n=e.children,r=e.attributes,i=e.main,o=e.mask,s=e.maskId,a=i.icon,l=o.icon,A=function(e){var t=e.transform,n=e.iconWidth,r={transform:"translate(".concat(e.containerWidth/2," 256)")},i="translate(".concat(32*t.x,", ").concat(32*t.y,") "),o="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "),s="rotate(".concat(t.rotate," 0 0)");return{outer:r,inner:{transform:"".concat(i," ").concat(o," ").concat(s)},path:{transform:"translate(".concat(n/2*-1," -256)")}}}({transform:e.transform,containerWidth:o.width,iconWidth:i.width}),c={tag:"rect",attributes:Xb(Xb({},LE),{},{fill:"white"})},u=a.children?{children:a.children.map(IE)}:{},h={tag:"g",attributes:Xb({},A.inner),children:[IE(Xb({tag:a.tag,attributes:Xb(Xb({},a.attributes),A.path)},u))]},d={tag:"g",attributes:Xb({},A.outer),children:[h]},p="mask-".concat(s||GC()),f="clip-".concat(s||GC()),g={tag:"mask",attributes:Xb(Xb({},LE),{},{id:p,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[c,d]},m={tag:"defs",children:[{tag:"clipPath",attributes:{id:f},children:(t=l,"g"===t.tag?t.children:[t])},g]};return n.push(m,{tag:"rect",attributes:Xb({fill:"currentColor","clip-path":"url(#".concat(f,")"),mask:"url(#".concat(p,")")},LE)}),{children:n,attributes:r}}}},{provides:function(e){var t=!1;AC.matchMedia&&(t=AC.matchMedia("(prefers-reduced-motion: reduce)").matches),e.missingIconAbstract=function(){var e=[],n={fill:"currentColor"},r={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};e.push({tag:"path",attributes:Xb(Xb({},n),{},{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})});var i=Xb(Xb({},r),{},{attributeName:"opacity"}),o={tag:"circle",attributes:Xb(Xb({},n),{},{cx:"256",cy:"364",r:"28"}),children:[]};return t||o.children.push({tag:"animate",attributes:Xb(Xb({},r),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:Xb(Xb({},i),{},{values:"1;0;1;1;0;1;"})}),e.push(o),e.push({tag:"path",attributes:Xb(Xb({},n),{},{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),children:t?[]:[{tag:"animate",attributes:Xb(Xb({},i),{},{values:"1;0;0;0;0;1;"})}]}),t||e.push({tag:"path",attributes:Xb(Xb({},n),{},{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),children:[{tag:"animate",attributes:Xb(Xb({},i),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:e}}}},{hooks:function(){return{parseNodeAttributes:function(e,t){var n=t.getAttribute("data-fa-symbol");return e.symbol=null!==n&&(""===n||n),e}}}}],kB={},Object.keys(UB).forEach(function(e){-1===DB.indexOf(e)&&delete UB[e]}),SB.forEach(function(e){var t=e.mixout?e.mixout():{};if(Object.keys(t).forEach(function(e){"function"==typeof t[e]&&(UE[e]=t[e]),"object"===Jb(t[e])&&Object.keys(t[e]).forEach(function(n){UE[e]||(UE[e]={}),UE[e][n]=t[e][n]})}),e.hooks){var n=e.hooks();Object.keys(n).forEach(function(e){kB[e]||(kB[e]=[]),kB[e].push(n[e])})}e.provides&&e.provides(UB)});var HE=NB.parse,ME=NB.findIconDefinition,RE=NB.icon;const NE=["*"];let PE=(()=>{class e{constructor(){this.defaultPrefix="fas",this.fallbackIcon=null,this.globalLibrary=!1}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=de({factory:function(){return new e},token:e,providedIn:"root"}),e})(),KE=(()=>{class e{constructor(){this.definitions={}}addIcons(...e){for(const t of e)t.prefix in this.definitions||(this.definitions[t.prefix]={}),this.definitions[t.prefix][t.iconName]=t}addIconPacks(...e){for(const t of e){const e=Object.keys(t).map(e=>t[e]);this.addIcons(...e)}}getIconDefinition(e,t){return e in this.definitions&&t in this.definitions[e]?this.definitions[e][t]:null}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=de({factory:function(){return new e},token:e,providedIn:"root"}),e})();const VE=e=>{const t={"fa-spin":e.spin,"fa-pulse":e.pulse,"fa-fw":e.fixedWidth,"fa-border":e.border,"fa-inverse":e.inverse,"fa-layers-counter":e.counter,"fa-flip-horizontal":"horizontal"===e.flip||"both"===e.flip,"fa-flip-vertical":"vertical"===e.flip||"both"===e.flip,[`fa-${e.size}`]:null!==e.size,[`fa-rotate-${e.rotate}`]:null!==e.rotate,[`fa-pull-${e.pull}`]:null!==e.pull,[`fa-stack-${e.stackItemSize}`]:null!=e.stackItemSize};return Object.keys(t).map(e=>t[e]?e:null).filter(e=>e)};let GE=(()=>{class e{constructor(){this.stackItemSize="1x"}ngOnChanges(e){if("size"in e)throw new Error('fa-icon is not allowed to customize size when used inside fa-stack. Set size on the enclosing fa-stack instead: <fa-stack size="4x">...</fa-stack>.')}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Je({type:e,selectors:[["fa-icon","stackItemSize",""],["fa-duotone-icon","stackItemSize",""]],inputs:{stackItemSize:"stackItemSize",size:"size"},features:[ct]}),e})(),jE=(()=>{class e{constructor(e,t){this.renderer=e,this.elementRef=t}ngOnInit(){this.renderer.addClass(this.elementRef.nativeElement,"fa-stack")}ngOnChanges(e){"size"in e&&(null!=e.size.currentValue&&this.renderer.addClass(this.elementRef.nativeElement,`fa-${e.size.currentValue}`),null!=e.size.previousValue&&this.renderer.removeClass(this.elementRef.nativeElement,`fa-${e.size.previousValue}`))}}return e.\u0275fac=function(t){return new(t||e)(zs(Vl),zs(Nl))},e.\u0275cmp=Ge({type:e,selectors:[["fa-stack"]],inputs:{size:"size"},features:[ct],ngContentSelectors:NE,decls:1,vars:0,template:function(e,t){1&e&&(Aa(),ca(0))},encapsulation:2}),e})(),qE=(()=>{class e{constructor(e,t,n,r,i){this.sanitizer=e,this.config=t,this.iconLibrary=n,this.stackItem=r,this.classes=[],null!=i&&null==r&&console.error('FontAwesome: fa-icon and fa-duotone-icon elements must specify stackItemSize attribute when wrapped into fa-stack. Example: <fa-icon stackItemSize="2x"></fa-icon>.')}ngOnChanges(e){if(null==this.icon&&null==this.config.fallbackIcon)return(()=>{throw new Error("Property `icon` is required for `fa-icon`/`fa-duotone-icon` components.")})();let t=null;if(t=null==this.icon?this.config.fallbackIcon:this.icon,e){const e=this.findIconDefinition(t);if(null!=e){const t=this.buildParams();this.renderIcon(e,t)}}}render(){this.ngOnChanges({})}findIconDefinition(e){const t=((e,t)=>{return void 0!==(n=e).prefix&&void 0!==n.iconName?e:Array.isArray(e)&&2===e.length?{prefix:e[0],iconName:e[1]}:"string"==typeof e?{prefix:t,iconName:e}:void 0;var n})(e,this.config.defaultPrefix);if("icon"in t)return t;const n=this.iconLibrary.getIconDefinition(t.prefix,t.iconName);if(null!=n)return n;const r=ME(t);if(null!=r){const e="Global icon library is deprecated. Consult https://github.com/FortAwesome/angular-fontawesome/blob/master/UPGRADING.md for the migration instructions.";if("unset"===this.config.globalLibrary)console.error("FontAwesome: "+e);else if(!this.config.globalLibrary)throw new Error(e);return r}return(e=>{throw new Error(`Could not find icon with iconName=${e.iconName} and prefix=${e.prefix} in the icon library.`)})(t),null}buildParams(){const e={flip:this.flip,spin:this.spin,pulse:this.pulse,border:this.border,inverse:this.inverse,size:this.size||null,pull:this.pull||null,rotate:this.rotate||null,fixedWidth:"boolean"==typeof this.fixedWidth?this.fixedWidth:this.config.fixedWidth,stackItemSize:null!=this.stackItem?this.stackItem.stackItemSize:null},t="string"==typeof this.transform?HE.transform(this.transform):this.transform;return{title:this.title,transform:t,classes:[...VE(e),...this.classes],mask:null!=this.mask?this.findIconDefinition(this.mask):null,styles:null!=this.styles?this.styles:{},symbol:this.symbol,attributes:{role:this.a11yRole}}}renderIcon(e,t){const n=RE(e,t);this.renderedIconHTML=this.sanitizer.bypassSecurityTrustHtml(n.html.join("\n"))}}return e.\u0275fac=function(t){return new(t||e)(zs(yh),zs(PE),zs(KE),zs(GE,8),zs(jE,8))},e.\u0275cmp=Ge({type:e,selectors:[["fa-icon"]],hostAttrs:[1,"ng-fa-icon"],hostVars:2,hostBindings:function(e,t){2&e&&(Ma("innerHTML",t.renderedIconHTML,ai),Ps("title",t.title))},inputs:{classes:"classes",icon:"icon",title:"title",spin:"spin",pulse:"pulse",mask:"mask",styles:"styles",flip:"flip",size:"size",pull:"pull",border:"border",inverse:"inverse",symbol:"symbol",rotate:"rotate",fixedWidth:"fixedWidth",transform:"transform",a11yRole:"a11yRole"},features:[ct],decls:0,vars:0,template:function(e,t){},encapsulation:2}),e})(),zE=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=We({type:e}),e.\u0275inj=pe({}),e})(),WE=(()=>{class e{constructor(){}getPager(e,t,n){t=t||1,n=n||10;let r,i,o=Math.ceil(e/n);o<=10?(r=1,i=o):t<=6?(r=1,i=10):t+4>=o?(r=o-9,i=o):(r=t-5,i=t+4);let s=(t-1)*n;return{totalItems:e,currentPage:t,pageSize:n,totalPages:o,startPage:r,endPage:i,startIndex:s,endIndex:Math.min(s+n,e),pages:yy(r,i+1)}}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=de({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const XE=(e,t)=>null===e?-1:null===t?1:e.localeCompare(t,void 0,{numeric:!0,sensitivity:"base"});var JE=n(605);let YE=(()=>{class e{transform(e,t){return void 0===t?e:e.length>t?e.substring(0,t)+"...":e}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=Ye({name:"ellipsis",type:e,pure:!0}),e})();function $E(e,t){if(1&e&&$s(0,"fa-icon",12),2&e){const e=aa().$implicit,t=aa();Ws("icon",t.faChevronDown)("rotate",t.getSort(e)?180:void 0)}}function ZE(e,t){1&e&&$s(0,"fa-icon",13),2&e&&Ws("icon",aa(2).faSort)}function e_(e,t){if(1&e&&$s(0,"fa-icon",14),2&e){const e=aa(),t=e.first,n=e.last,r=e.$implicit,i=aa();ua("placement",!0===t?"right":!0===n?"left":"bottom"),Ws("icon",i.faQuestionCircle)("ngbPopover",r.ColumnDefinition),Ps("alt",r.ColumnDefinition)}}function t_(e,t){if(1&e&&$s(0,"fa-icon",15),2&e){const e=aa(),t=e.first,n=e.last,r=e.$implicit,i=aa();ua("placement",!0===t?"right":!0===n?"left":"bottom"),Ws("icon",i.faQuestionCircle)("ngbPopover",r.ColumnDefinition),Ps("alt",r.ColumnDefinition)}}const n_=function(e){return{"text-right":e}};function r_(e,t){if(1&e){const e=ta();Js(0,"th",5),Js(1,"div",6),ia("click",function(){const t=Ot(e).$implicit;return aa().toggleSort(t)}),Js(2,"a",7),Da(3),Ys(),Da(4,"\xa0 "),js(5,$E,1,2,"fa-icon",8),js(6,ZE,1,1,"fa-icon",9),Ys(),js(7,e_,1,4,"fa-icon",10),js(8,t_,1,4,"fa-icon",11),Ys()}if(2&e){const e=t.$implicit,n=t.index,r=t.last,i=aa();Ws("id","tableIdCol"+n)("ngClass",MA(8,n_,r&&"Value"===e.ColumnType)),uo(1),Ps("aria-label","Sort By "+e.ColumnLabel),uo(2),Oa(e.ColumnLabel),uo(2),Ws("ngIf",null!==i.getSort(e)),uo(1),Ws("ngIf",null===i.getSort(e)),uo(1),Ws("ngIf",e.ColumnDefinition),uo(1),Ws("ngIf",e.ColumnDefinition)}}function i_(e,t){if(1&e&&(Js(0,"td",18),$s(1,"span",19),Ys()),2&e){const e=t.$implicit,n=t.index;Ws("ngClass",MA(3,n_,t.last&&"Value"===e.ColumnType)),Ps("headers","tableIdCol"+n),uo(1),Ws("innerHtml",e.Value,ai)}}function o_(e,t){if(1&e&&(Js(0,"tr"),js(1,i_,2,5,"td",17),Ys()),2&e){const e=t.$implicit;uo(1),Ws("ngForOf",e)}}function s_(e,t){if(1&e&&(Js(0,"tbody"),js(1,o_,2,1,"tr",16),Ys()),2&e){const e=aa();uo(1),Ws("ngForOf",e.sortedData)}}function a_(e,t){1&e&&$s(0,"span",19),2&e&&Ws("innerHtml",aa().$implicit.Value,ai)}function l_(e,t){1&e&&($s(0,"span",19),qA(1,"ellipsis")),2&e&&Ws("innerHtml",zA(1,1,aa().$implicit.Value,500),ai)}function A_(e,t){if(1&e&&(Js(0,"td",18),js(1,a_,1,1,"span",21),js(2,l_,2,4,"span",21),Ys()),2&e){const e=t.$implicit,n=t.index;Ws("ngClass",MA(4,n_,t.last&&"Value"===e.ColumnType)),Ps("headers","tableIdCol"+n),uo(1),Ws("ngIf",!e.isHtml),uo(1),Ws("ngIf",e.isHtml)}}function c_(e,t){if(1&e){const e=ta();Js(0,"tr"),js(1,A_,3,6,"td",17),Js(2,"td"),Js(3,"button",20),ia("click",function(){const t=Ot(e).$implicit;return aa(2).selectRow(t)}),Da(4,"Select"),Ys(),Ys(),Ys()}if(2&e){const e=t.$implicit;uo(1),Ws("ngForOf",e)}}function u_(e,t){if(1&e&&(Js(0,"tbody"),js(1,c_,5,1,"tr",16),qA(2,"slice"),Ys()),2&e){const e=aa();uo(1),Ws("ngForOf",WA(2,1,e.sortedData,(e.pager.currentPage-1)*e.pageSize,e.pager.currentPage*e.pageSize))}}function h_(e,t){if(1&e){const e=ta();Js(0,"div",22),Js(1,"ngb-pagination",23),ia("pageChange",function(t){return Ot(e),aa().onPageChange(t)})("pageChange",function(t){return Ot(e),aa().pager.currentPage=t}),Ys(),$s(2,"br"),Js(3,"small"),Da(4),Ys(),Ys()}if(2&e){const e=aa();uo(1),Ws("page",e.pager.currentPage)("pageSize",e.pageSize)("collectionSize",e.sortedData.length)("boundaryLinks",!0)("directionLinks",!0)("ellipses",!0)("maxSize",5),uo(3),Ha("Displaying records ",e.pager.startIndex+1," - ",e.pager.endIndex," of ",e.sortedData.length,"")}}const d_=function(e){return{"table-responsive":e}};let p_=(()=>{class e{constructor(e,t){this.pagerService=e,this.modalService=t,this.paging=!0,this.pageSize=10,this.faQuestionCircle=wp,this.faSort=Up,this.faChevronDown=dp,this.sortOpts={col:null,reverse:!1},this.pager={totalPages:0,startIndex:0,endIndex:0,currentPage:1},this.parsedData=[],this.sortedData=[],this.isScreenLargeEnoughForSideBySide=!0,this.panelRemovedDueToResize=!1,this.channel=new BroadcastChannel("mi-search-table"),this.instanceId=(0,JE.v4)(),this.channelChangeAnnouncements=new E,this.channel.onmessage=e=>{var t,n,r;(null===(t=e.data)||void 0===t?void 0:t.instanceId)&&(null===(n=e.data)||void 0===n?void 0:n.key)&&(null===(r=e.data)||void 0===r?void 0:r.instanceId)!==this.instanceId&&this.channelChangeAnnouncements.next(e.data)}}ngOnInit(){if(null==this.paging&&(this.paging=!1),null==this.pageSize&&(this.pageSize=2),!this.theadConfig)throw new Error("Invalid floating table header configuration!")}ngOnChanges(e){(e.headers||e.data)&&this.handleDataChange()}parseData(){let e=[];Qm(this.data,t=>{let n=[];Qm(this.headers,e=>{let r={MappedColumnName:e.MappedColumnName,ColumnType:e.ColumnType,Name:e.ColumnLabel,Value:t[e.MappedColumnName],id:t[e.ColumnLabel.replace(/\s/g,"")+"Seq"],isHtml:"Value"!==e.ColumnType&&!0===e.isHtml,highlight:!0===e.isHtml?e.highlight:null};"GeographicArea"===e.ColumnType&&null==t.MeasureValue&&(r.Value+="**"),n.push(r)}),e.push(n)}),this.parsedData=e,this.sortedData=e}sortRows(){if(!this.sortOpts.col)return void(this.sortedData=this.parsedData);const e=this.headers.findIndex(e=>e.MappedColumnName===this.sortOpts.col);this.sortedData=[...this.parsedData].sort((t,n)=>{const r=XE(t[e].Value,n[e].Value);return this.sortOpts.reverse?-r:r})}toggleSort(e){if(this.sortOpts.col===e.MappedColumnName)switch(this.sortOpts.reverse){case!1:this.sortOpts.reverse=!0;break;case!0:this.sortOpts={col:null,reverse:null}}else this.sortOpts={col:e.MappedColumnName,reverse:!1};this.sortRows()}getSort(e){return this.sortOpts.col===e.MappedColumnName?this.sortOpts.reverse:null}setPage(e){(e<1||e>this.pager.totalPages)&&0!==this.pager.totalPages||(this.pager=this.pagerService.getPager(this.parsedData.length,e,this.pageSize))}loadSearchIntoQuery(e){let t={};Sm(e,function(e){t[e.Name]=[{id:e.id,name:e.Value}]}),this.remapQueryObject(t),this.parseData(),this.postMessageToChannel(t)}tooltipText(e){return"Load "+oy(Om(e,function(e){return"MeasureName"===e.MappedColumnName})).Value+" query"}selectRow(e){this.loadSearchIntoQuery(e),this.closeModal()}remapQueryObject(e){e.Content=e["Content Area"],e.MeasureSeq=e.Measure}handleDataChange(){this.sortOpts={col:null,reverse:!1},null!=this.headers&&null!=this.data&&(this.headers.length&&this.data.length?(this.parseData(),!0===this.paging&&this.setPage(1),setTimeout(function(){})):this.parsedData=[])}onPageChange(e){const t=document.getElementById("paging-component");this.pager.currentPage=e,null==t||t.click()}setup(){}closeModal(){this.modalService.dismissAll("close")}postMessageToChannel(e){this.channel.postMessage({instanceId:this.instanceId,sortedData:e})}}return e.\u0275fac=function(t){return new(t||e)(zs(WE),zs(ab))},e.\u0275cmp=Ge({type:e,selectors:[["mi-search-table"]],inputs:{paging:"paging",pageSize:"pageSize",tableTitle:"tableTitle",tableCaption:"tableCaption",headers:"headers",data:"data",emptyValueLabel:"emptyValueLabel",theadConfig:"theadConfig",tableResponsive:"tableResponsive",rightPanelVisible:"rightPanelVisible",leftPanelVisible:"leftPanelVisible"},features:[ct],decls:8,vars:8,consts:[[1,"row",3,"ngClass"],[1,"table","table-condensed","table-striped",3,"summary"],["scope","col",3,"id","ngClass",4,"ngFor","ngForOf"],[4,"ngIf"],["id","paging-component",4,"ngIf"],["scope","col",3,"id","ngClass"],["role","button",1,"d-inline-flex","align-items-center",3,"click"],["data-target","#",1,"column-sort","text-center"],["data-fa-transform","down-8","aria-hidden","true",3,"icon","rotate",4,"ngIf"],["aria-hidden","true",3,"icon",4,"ngIf"],["class","d-inline-block d-sm-inline-block context-help","triggers","mouseenter:click","role","tooltip","tabindex","0","aria-hidden","true",3,"icon","ngbPopover","placement",4,"ngIf"],["class","d-none d-sm-none context-help","triggers","mouseenter:click","role","tooltip","tabindex","0","aria-hidden","true",3,"icon","ngbPopover","placement",4,"ngIf"],["data-fa-transform","down-8","aria-hidden","true",3,"icon","rotate"],["aria-hidden","true",3,"icon"],["triggers","mouseenter:click","role","tooltip","tabindex","0","aria-hidden","true",1,"d-inline-block","d-sm-inline-block","context-help",3,"icon","ngbPopover","placement"],["triggers","mouseenter:click","role","tooltip","tabindex","0","aria-hidden","true",1,"d-none","d-sm-none","context-help",3,"icon","ngbPopover","placement"],[4,"ngFor","ngForOf"],[3,"ngClass",4,"ngFor","ngForOf"],[3,"ngClass"],[3,"innerHtml"],[1,"btn","btn-outline-secondary","mr-2",3,"click"],[3,"innerHtml",4,"ngIf"],["id","paging-component"],["aria-label","Pagination",3,"page","pageSize","collectionSize","boundaryLinks","directionLinks","ellipses","maxSize","pageChange"]],template:function(e,t){1&e&&(Js(0,"div",0),Js(1,"table",1),Js(2,"thead"),Js(3,"tr"),js(4,r_,9,10,"th",2),Ys(),Ys(),js(5,s_,2,1,"tbody",3),js(6,u_,3,5,"tbody",3),Ys(),js(7,h_,5,10,"div",4),Ys()),2&e&&(Ws("ngClass",MA(6,d_,!0===t.tableResponsive)),uo(1),ua("summary",t.tableTitle),uo(3),Ws("ngForOf",t.headers),uo(1),Ws("ngIf",!t.paging),uo(1),Ws("ngIf",t.paging),uo(1),Ws("ngIf",t.paging))},directives:[Fu,Tu,Su,qE,Hb,Qb],pipes:[Ku,YE],styles:[""]}),e})();const f_=["searchResults"];function g_(e,t){1&e&&$s(0,"span",8)}function m_(e,t){1&e&&$s(0,"fa-icon",9),2&e&&Ws("icon",aa().faSearch)}function y_(e,t){if(1&e&&(Js(0,"span",24),$s(1,"fa-icon",25),Ys()),2&e){const e=aa(2);Ws("ngbPopover",e.searchResultsHelpText),uo(1),Ws("icon",e.faQuestionCircle)}}function w_(e,t){if(1&e&&(Js(0,"div"),Js(1,"div",26),$s(2,"fa-icon",25),Da(3,"\xa0No results found. "),Ys(),Ys()),2&e){const e=aa(2);uo(2),Ws("icon",e.faExclamationTriangle)}}function v_(e,t){if(1&e&&(Js(0,"div"),$s(1,"mi-search-table",27),Ys()),2&e){const e=aa(2);uo(1),Ws("paging",!0)("pageSize",10)("theadConfig",e.theadConfig)("tableResponsive",!0)("headers",e.headers)("data",e.searchResult)("rightPanelVisible",e.rightPanelVisible)("leftPanelVisible",e.leftPanelVisible)}}function b_(e,t){if(1&e){const e=ta();Js(0,"div",10),Js(1,"div",11),Js(2,"div",12),Js(3,"h4",13),Da(4," Search Results "),js(5,y_,2,2,"span",14),Js(6,"label",15),Da(7,"Search box tooltip"),Ys(),Ys(),Js(8,"button",16),ia("click",function(){return Ot(e),aa().close()}),Js(9,"span",17),Da(10,"\xd7"),Ys(),Ys(),Ys(),Js(11,"div",18),js(12,w_,4,1,"div",19),js(13,v_,2,8,"div",19),Ys(),Js(14,"div",20),Js(15,"div",21),Da(16," You searched for the following terms: "),Js(17,"strong"),Da(18),qA(19,"lowercase"),Ys(),Ys(),Js(20,"div",22),Js(21,"button",23),ia("click",function(){return Ot(e),aa().close()}),Da(22,"Close"),Ys(),Ys(),Ys(),Ys(),Ys()}if(2&e){const e=aa();uo(5),Ws("ngIf",e.searchResultsHelpText&&e.searchResultsHelpText.length>0),uo(7),Ws("ngIf",!e.searchResult.length),uo(1),Ws("ngIf",e.searchResult.length),uo(5),Oa(function(e,t,n){const r=Ut(),i=Bt(r,39);return JA(r,XA(r,39)?VA(r,Vt(),4,i.transform,n,i):i.transform(n))}(0,0,e.searchTerm))}}let C_=(()=>{class e{constructor(e,t,n,r){this.filterService=e,this.modalService=t,this.http=n,this.baseUrl=r,this.faSearch=Qp,this.faExclamationTriangle=Mp,this.faQuestionCircle=wp,this.searching=!1,this.searchResultsHelpText="",this.theadConfig={scrollContainer:function(){},position:"absolute",autoReflow:!0,debug:!0},this.headers=[{ColumnKey:"CategoryName",ColumnLabel:"Category",ColumnType:null,MappedColumnName:"CategoryName"},{ColumnKey:"ContentAreaName",ColumnLabel:"Content Area",ColumnType:null,MappedColumnName:"ContentAreaName"},{ColumnKey:"IndicatorName",ColumnLabel:"Indicator",ColumnType:null,MappedColumnName:"IndicatorName"},{ColumnKey:"MeasureName",ColumnLabel:"Measure",ColumnType:null,MappedColumnName:"MeasureName"},{ColumnKey:"Metadata",ColumnLabel:"About These Data",ColumnType:null,MappedColumnName:"Notes",isHtml:!0}],this.tooltipPromise=this.filterService.getTooltips().then(e=>{this.searchResultsHelpText=e.SearchHelpTooltip})}close(){this.modalService.dismissAll("close")}open(){this.searchTerm&&(this.searching=!0,this.http.post(this.baseUrl+"Search",{query:this.searchTerm}).toPromise().then(e=>{this.searchResultsResolve=e,this.searchResult=this.searchResultsResolve.results,this.searchTerm=this.searchResultsResolve.searchTerms.join(", "),this.modalService.open(this.searchResultModal,{size:"xl"})}),this.searching=!1,this.searchTerm=null)}runSearch(){this.searchTerm&&(this.searching=!0,this.open())}onKeypressEvent(e){13===e.charCode&&this.runSearch()}}return e.\u0275fac=function(t){return new(t||e)(zs(zb),zs(ab),zs(Jd),zs("BASE_URL"))},e.\u0275cmp=Ge({type:e,selectors:[["search-modal"]],viewQuery:function(e,t){if(1&e&&uc(f_,5,mA),2&e){let e;cc(e=dc())&&(t.searchResultModal=e.first)}},inputs:{leftPanelVisible:"leftPanelVisible",rightPanelVisible:"rightPanelVisible"},decls:10,vars:5,consts:[["role","search"],[1,"input-group"],["type","text","name","input-search-topic","placeholder",'Search Topics - use " " for exact search',"aria-label","Search Topics",1,"form-control",2,"font-size","0.875rem",3,"ngModel","disabled","ngModelChange","keypress"],[1,"input-group-btn"],["type","button","id","btn-run-search","title","Run Search",1,"btn","btn-success","btn-searchButton",3,"disabled","click"],["class","spinner-border spinner-border-sm","aria-hidden","true",4,"ngIf"],[3,"icon",4,"ngIf"],["searchResults",""],["aria-hidden","true",1,"spinner-border","spinner-border-sm"],[3,"icon"],["role","document"],[1,"container-fluid"],[1,"modal-header"],["id","search-results-header","tabindex","0",1,"modal-title"],["id","searchBoxTooltip","type","button","placement","bottom","triggers","mouseenter click focus","role","tooltip","tabindex","0",3,"ngbPopover",4,"ngIf"],["for","searchBoxTooltip",1,"sr-only"],["type","button","data-dismiss","modal","aria-label","Close",1,"close",3,"click"],["aria-hidden","true"],[1,"modal-body",2,"height","50vh","overflow-y","auto","overflow-x","auto","padding-top","0"],[4,"ngIf"],[1,"modal-footer"],[1,"col","pull-left","text-left"],[1,"col"],["type","button","data-dismiss","modal",1,"btn","btn-outline-secondary","float-right",3,"click"],["id","searchBoxTooltip","type","button","placement","bottom","triggers","mouseenter click focus","role","tooltip","tabindex","0",3,"ngbPopover"],["aria-hidden","true",3,"icon"],[1,"alert","alert-warning"],[3,"paging","pageSize","theadConfig","tableResponsive","headers","data","rightPanelVisible","leftPanelVisible"]],template:function(e,t){1&e&&(Js(0,"div",0),Js(1,"div",1),Js(2,"input",2),ia("ngModelChange",function(e){return t.searchTerm=e})("keypress",function(e){return t.onKeypressEvent(e)}),Ys(),Js(3,"span",3),Js(4,"button",4),ia("click",function(){return t.runSearch()}),js(5,g_,1,0,"span",5),js(6,m_,1,1,"fa-icon",6),Da(7," \xa0Search "),Ys(),Ys(),Ys(),Ys(),js(8,b_,23,6,"ng-template",null,7,mc)),2&e&&(uo(2),Ws("ngModel",t.searchTerm)("disabled",t.searching),uo(2),Ws("disabled",t.searching||!t.searchTerm),uo(1),Ws("ngIf",t.searching),uo(1),Ws("ngIf",!t.searching))},directives:[Uh,zh,yd,Su,qE,Hb,p_],pipes:[Nu],styles:[".btn-searchButton[_ngcontent-%COMP%]{border-radius:0 6px 6px 0;height:35px;background-color:#2e7d32!important}"]}),e})();var B_=n(935),E_=n(815);const __=new class extends Iy{}(class extends Oy{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)}});class F_ extends f{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(F_.dispatch,this.delay,new x_(e,this.destination)))}_next(e){this.scheduleMessage(yw.createNext(e))}_error(e){this.scheduleMessage(yw.createError(e)),this.unsubscribe()}_complete(){this.scheduleMessage(yw.createComplete()),this.unsubscribe()}}class x_{constructor(e,t){this.notification=e,this.destination=t}}class T_ extends E{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 Q_(this._getNow(),e)),this._trimBufferThenGetEvents()),super.next(e)}_subscribe(e){const t=this._infiniteTimeWindow,n=t?this._events:this._trimBufferThenGetEvents(),r=this.scheduler,i=n.length;let o;if(this.closed)throw new b;if(this.isStopped||this.hasError?o=h.EMPTY:(this.observers.push(e),o=new C(this,e)),r&&e.add(e=new F_(e,r)),t)for(let s=0;s<i&&!e.closed;s++)e.next(n[s]);else for(let s=0;s<i&&!e.closed;s++)e.next(n[s].value);return this.hasError?e.error(this.thrownError):this.isStopped&&e.complete(),o}_getNow(){return(this.scheduler||__).now()}_trimBufferThenGetEvents(){const e=this._getNow(),t=this._bufferSize,n=this._windowTime,r=this._events,i=r.length;let o=0;for(;o<i&&!(e-r[o].time<n);)o++;return i>t&&(o=Math.max(o,i-t)),o>0&&r.splice(0,o),r}}class Q_{constructor(e,t){this.time=e,this.value=t}}class S_{constructor(){this.Category=-1,this.Content=-1,this.Indicator=-1,this.MeasureSeq=-1,this.TimePeriod1Values=[],this.TimePeriod2Values=[],this.GeographicGroupingSeq=-1,this.GeographicGroupingType=-1,this.GeographicAreaSeqs=[],this.IsBasicQuery=!0,this.IsCdcQuery=!1}}class k_{constructor(e,t,n,r,i,o,s,a){this.GeographicAreaSeq=e||null,this.GeographicArea=t||null,this.GeographicArea1=n||"",this.GeographicAreaType=a||null,this.GeographicAreaTypeSeq=s||null,this.GeographicAreaID=r||"",this.FIPSCode=i||"",this.IsActive=o||""}}let U_=(()=>{class e{constructor(e,t){this.httpService=e,this.baseUrl=t,this.geographicAreasMap=new Map,this.dynamicGeoGraphicAreas=new Map,this.subscriptionList=[]}onDestroy(){this.geographicAreasMap=new Map,this.subscriptionList.forEach(e=>{e.unsubscribe()})}createDynamicGeographicAreas(e,t){e&&e.forEach(e=>{this.addDynamicGeographicAreas(new k_(e.Value),t)})}addDynamicGeographicAreas(e,t){var n,r,i,o,s,a,l;(null===(n=this.dynamicGeoGraphicAreas)||void 0===n?void 0:n.get(t))?(null===(s=null===(o=this.dynamicGeoGraphicAreas)||void 0===o?void 0:o.get(t))||void 0===s?void 0:s.some(t=>t.GeographicArea==e.GeographicArea))||null===(l=null===(a=this.dynamicGeoGraphicAreas)||void 0===a?void 0:a.get(t))||void 0===l||l.push(e):(this.dynamicGeoGraphicAreas.set(t,[]),null===(i=null===(r=this.dynamicGeoGraphicAreas)||void 0===r?void 0:r.get(t))||void 0===i||i.push(e))}resetDynamicGeographicAreas(){this.dynamicGeoGraphicAreas=new Map}setGeographicAreasMap(){return new Promise((e,t)=>{this.geographicAreasMap.size<1?this.subscriptionList.push(this.httpService.get(this.baseUrl+"Geography/GetActiveGeographicAreas").subscribe(t=>{this.geographicAreasMap=new Map(t.map(e=>[e.GeographicAreaID,e])),e(!0)},e=>{t(e)})):e(!0)})}}return e.\u0275fac=function(t){return new(t||e)(fr(Jd),fr("BASE_URL"))},e.\u0275prov=de({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),D_=(()=>{class e{constructor(e,t,n){this.http=e,this.baseUrl=t,this.geographicAreaService=n,this.isCreatingBookmark=!1,this.bookmarkUrl="",this.previousQueryResponse=new T_,this.leftQueryResponse=new T_,this.rightQueryResponse=new T_,this.bookmarkResponse=new T_,this.clearData=new T_,this.subscriptionList=[],this.baseUrl=t,this.lastQueryRequestObj=new S_}onDestroy(){this.subscriptionList.forEach(e=>{e.unsubscribe()})}clearPreviousQuery(e){this.clearData.next(e)}getClearDataEvent(){return this.clearData.asObservable()}getLastQueryRequest(){return this.lastQueryRequestObj}setLastQueryRequest(e){this.lastQueryRequestObj=e}getLeftQueryResponse(){return this.leftQueryResponse.asObservable()}getRightQueryResponse(){return this.rightQueryResponse.asObservable()}getData(e,t){return this.geographicAreaService.resetDynamicGeographicAreas(),new Promise((n,r)=>this.subscriptionList.push(this.http.post(this.baseUrl+"Data",e).subscribe(e=>{this.previousQueryResponse.next(e),"left"===t?this.leftQueryResponse.next(e):"right"===t&&this.rightQueryResponse.next(e),n(e)},e=>{r(e),console.error(e)})))}determineOtherFiltersOptions(e,t,n,r,i,o,s,a,l){var A=this.formatQueryRequest(e,t,n,r,i,o,s,a,null,void 0);return this.http.post(this.baseUrl+"Data/GetValidOtherFilters",A).toPromise().then(e=>{for(var t=1;t<=10;t++){var n="OtherFilter"+t+"Text",r=e[n],i=Tm(l.filters,{columnName:n});i&&i.options&&(i.options=Om(i.options,function(e){return Mm(r,e.id)}))}})}getPreviousQueryResponse(){return this.previousQueryResponse.asObservable()}getBookmark(){return this.bookmarkResponse.asObservable()}runQuery(e,t,n,r,i,o,s,a,l,A){var c=this.formatQueryRequest(e,t,n,r,i,o,s,a,l,void 0);return this.lastQueryRequestObj=c,new Promise((e,t)=>{this.geographicAreaService.setGeographicAreasMap().then(()=>{var n;null===(n=this.getData(c,A))||void 0===n||n.then(e).catch(t)}).catch(n=>{var r;console.error("Error retrieving the geographic areas map",n),null===(r=this.getData(c,A))||void 0===r||r.then(e).catch(t)})})}formatQueryRequest(e,t,n,r,i,o,s,a,l,A){var c,u,h,d=new S_;if(d.Category=e.selected[0].id,t.selected.length&&(d.Content=t.selected[0].id),n.selected.length&&(d.Indicator=n.selected[0].id),r.selected.length&&(d.MeasureSeq=r.selected[0].id),i.selected.length&&(d.TimePeriod1Values=i.selected.map(e=>e.id)),o.selected.length&&(d.TimePeriod2Values=o.selected.map(e=>e.id)),null!=s&&(null===(c=s.selected)||void 0===c?void 0:c.length)){var p=Number(s.selected[0].id.toString().replace(/\D/g,""));d.GeographicGroupingSeq=p,d.GeographicGroupingType=null===(u=s.options.find(e=>e.id===s.selected[0].id))||void 0===u?void 0:u.extra.type}return null!=a&&(null===(h=a.selected)||void 0===h?void 0:h.length)&&(d.GeographicAreaSeqs=a.selected.map(e=>e.id)),null!=l&&l.filters.length&&(d.OtherFilterValues=[],l.filters.forEach(e=>{let t=[];t=e.selected.map(e=>e.id),d.OtherFilterValues.push({Key:e.columnName,Value:t.length>0?t:null})})),null!=A&&(d.IsBasicQuery=A),d}createBookmark(e,t,n,r,i,o,s,a,l,A){var c=this.formatQueryRequest(e,t,n,r,i,o,s,a,l,A);this.isCreatingBookmark=!0,this.http.post(this.baseUrl+"SavedBookmark/CreateBookmark",c).subscribe(e=>{this.isCreatingBookmark=!1,this.bookmarkUrl=location.origin+this.baseUrl+"?bookmark="+e,this.bookmarkResponse.next(this.bookmarkUrl)},e=>{console.log("Use a service to trigger error message",e)})}}return e.\u0275fac=function(t){return new(t||e)(fr(Jd),fr("BASE_URL"),fr(U_))},e.\u0275prov=de({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();class O_{constructor(){this.type="",this.message=""}}class L_{constructor(e){this.MeasureSeq=-1,this.ContentAreaSeq=-1,Object.assign(this,e)}}class I_{constructor(e){Object.assign(this,e)}}var H_=(()=>(function(e){e.Table="selected-table",e.Map="selected-map",e.Chart="selected-chart"}(H_||(H_={})),H_))(),M_=(()=>(function(e){e.Download="Download Data",e.SaveImage="Save Image",e.AdvancedQueryAction="Advanced Query"}(M_||(M_={})),M_))();class R_{constructor(e,t,n){this.geographicAreaIds=[],this.timePeriod1Values=[],this.otherFilters=[],e&&(this.geographicAreaIds=e),n&&(this.otherFilters=n),t&&(this.timePeriod1Values=t)}}class N_{constructor(e,t){this.geographicAreaIds=[],this.timePeriod1Values=[],e&&(this.geographicAreaIds=e),t&&(this.timePeriod1Values=t)}}class P_{constructor(e,t,n,r,i){this.queryOptions=new R_,this.querySelections=new N_,this.results=e,this.queryOptions=t,this.querySelections=n,this.panelSide=r,this.measure=i}}class K_{constructor(e,t,n){this.OtherFilterDisplayName="",this.MappedColumnName="",this.CodeSchemeValues=[],this.OtherFilterDisplayName=e||"",this.MappedColumnName=t||"",this.CodeSchemeValues=n||[]}}class V_{constructor(e,t){this.data=e,this.headers=t}}let G_=(()=>{class e{constructor(e,t,n){this.httpService=e,this.baseUrl=t,this.geographicAreaService=n,this.subscriptionList=[]}getResultSet(e,t,n){return new Promise((r,i)=>this.subscriptionList.push(this.httpService.get(e.selected[0].cdcApiEndpoint).subscribe(o=>{this.geographicAreaService.setGeographicAreasMap().then(i=>{r(this.serializeData(o,e,t,n))},e=>{i(e)})},e=>{i(e)})))}onDestroy(){this.subscriptionList.forEach(e=>{e.unsubscribe()})}serializeData(t,n,r,i){var o;let s=t,a=[],l=t.lookupList,A=[],c=[],u=n.selected[0].geographicAreaIds,h=new R_,d=new N_,p=new Map,f="",g={hasSecondaryValue:!1,hasDataComment:!1,hasStandardError:!1},m=n.selected[0].emptyValueLabel?n.selected[0].emptyValueLabel:e.DEFAULT_BLANK;this.geographicAreaService.resetDynamicGeographicAreas(),null===(o=s.tableResult)||void 0===o||o.forEach(e=>{var t;let n=null==e?void 0:e.geoId.substring(2,11),r=this.geographicAreaService.geographicAreasMap.get(n),o=e.temporal,s={groupById:e.groupById,TimePeriod1Text:o,TimePeriod2Text:null,OtherFilter1Text:null,OtherFilter2Text:null,OtherFilter3Text:null,OtherFilter4Text:null,OtherFilter5Text:null,OtherFilter6Text:null,OtherFilter7Text:null,OtherFilter8Text:null,OtherFilter9Text:null,OtherFilter10Text:null,ExtraneousData1Text:e.secondaryValue?e.secondaryValue:m,ExtraneousData2Text:e.standardError?e.standardError:m,ExtraneousData3Text:e.hatching?e.hatching:m,ExtraneousData4Text:null,ExtraneousData5Text:null,GeographicArea:e.geo,GeographicAreaDisplayValue:e.geo,GeographicAreaSeq:null==r?void 0:r.GeographicAreaSeq,FIPSCode:(null==r?void 0:r.FIPSCode)?null==r?void 0:r.FIPSCode:n,MeasureValue:Number.isNaN(Number(e.dataValue))?e.dataValue:Number(e.dataValue),MeasureDisplayValue:e.displayValue,GeographicAreaID:(null==r?void 0:r.GeographicAreaID)?r.GeographicAreaID:n,Latitude:null,Longitude:null,GeographicGrouping:null,SuppressionTypeCode:null};if(f||(f=e.temporalDescription),e.groupById&&"0"!==e.groupById&&Object.keys(l).length){let n=l[e.groupById][0].name,i=l[e.groupById][0].itemName;p.get(n)?p.get(n).includes(i)||p.get(n).push(i):(p.set(n,[]),null===(t=p.get(n))||void 0===t||t.push(i)),p&&p.entries().next().value[1][0]===i&&(null==r?void 0:r.GeographicAreaID)&&!A.includes(null==r?void 0:r.GeographicAreaID)&&A.push(null==r?void 0:r.GeographicAreaID),s.OtherFilter1Text=i}o&&(c.includes(o)||c.push(o)),e.secondaryValue&&!g.hasSecondaryValue&&(g.hasSecondaryValue=!0),e.standardError&&!g.hasStandardError&&(g.hasStandardError=!0),e.hatching&&!g.hasDataComment&&(g.hasDataComment=!0),this.geographicAreaService.addDynamicGeographicAreas(new k_(s.GeographicArea,s.GeographicAreaID,s.FIPSCode),i),a.push(s)}),A&&(d.geographicAreaIds=A),u&&(h.geographicAreaIds=u),p.size>0&&(h.otherFilters=this.createOtherFilters(p)),c&&(h.timePeriod1Values=c,d.timePeriod1Values=c,r.options=c,r.label=f,r.selected=c);let y=this.createStaticHeadersFromData(s&&s.tableResult?s.tableResult[0]:null,l,g);return new P_(new V_(a,y),h,d,i)}createStaticHeadersFromData(e,t,n){let r=[{ConfigMeasureSeq:0,ColumnKey:"GeographicArea",ColumnLabel:"County",MappedColumnName:"GeographicArea",ColumnDefinition:null,ColumnType:"GeographicArea"},{ConfigMeasureSeq:0,ColumnKey:"Year",ColumnLabel:"Year",MappedColumnName:"TimePeriod1Text",ColumnDefinition:null,ColumnType:"TimePeriod1"}];if(!e)return r;n.hasSecondaryValue&&r.push({ConfigMeasureSeq:0,ColumnKey:e.secondaryValueName,ColumnLabel:e.secondaryValueName,MappedColumnName:"ExtraneousData1Text",ColumnDefinition:e.secondaryValueName,ColumnType:"ExtraneousData"}),n.hasStandardError&&r.push({ConfigMeasureSeq:0,ColumnKey:e.standardErrorName,ColumnLabel:e.standardErrorName?e.standardErrorName:"",MappedColumnName:"ExtraneousData2Text",ColumnDefinition:e.standardErrorName,ColumnType:"ExtraneousData"}),n.hasDataComment&&r.push({ConfigMeasureSeq:0,ColumnKey:"dataComment",ColumnLabel:"Data Comment",MappedColumnName:"ExtraneousData3Text",ColumnDefinition:"Data Comment",ColumnType:"ExtraneousData"});let i=e.groupById;return Object.keys(t).length&&i&&r.push({ConfigMeasureSeq:0,ColumnKey:t[i][0].columnName,ColumnLabel:t[i][0].name,MappedColumnName:"OtherFilter1Text",ColumnDefinition:t[i][0].name,ColumnType:"Filter"}),e.calculationType&&r.push({ConfigMeasureSeq:0,ColumnKey:"MeasureValue",ColumnLabel:e.calculationType,MappedColumnName:"MeasureValue",ColumnDefinition:e.calculationType,ColumnType:"Value"}),r}createOtherFilters(e){let t=[];return e.forEach((e,n,r)=>{let i=1,o=new K_(n,"OtherFilter"+i+"Text",e);t.push(o),i++}),t}}return e.DEFAULT_BLANK="N/A",e.\u0275fac=function(t){return new(t||e)(fr(Jd),fr("BASE_URL"),fr(U_))},e.\u0275prov=de({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function j_(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s}function q_(e,t){if(1&e&&(Js(0,"span"),Da(1),Ys()),2&e){const e=aa();uo(1),Oa(e._placeholder)}}function z_(e,t){if(1&e){const e=ta();Js(0,"span",15),Js(1,"span",16),Js(2,"span"),Da(3),Ys(),Js(4,"a",17),ia("click",function(t){const n=Ot(e).$implicit;return aa().onItemClick(t,n)}),Da(5,"x"),Ys(),Ys(),Ys()}if(2&e){const e=t.$implicit,n=t.index,r=aa();uo(1),Ws("hidden",n>r._settings.itemsShowLimit-1),uo(2),La("",e.text,"\xa0")}}function W_(e,t){if(1&e&&(Js(0,"span",18),Da(1),Ys()),2&e){const e=aa();uo(1),La("+",e.itemShowRemaining(),"")}}function X_(e,t){if(1&e){const e=ta();Js(0,"li",19),ia("click",function(){return Ot(e),aa().toggleSelectAll()}),$s(1,"input",20),Js(2,"div"),Da(3),Ys(),Ys()}if(2&e){const e=aa();uo(1),Ws("checked",e.isAllItemsSelected())("disabled",e.disabled||e.isLimitSelectionReached()),uo(2),Oa(e.isAllItemsSelected()?e._settings.unSelectAllText:e._settings.selectAllText)}}function J_(e,t){if(1&e){const e=ta();Js(0,"li",21),Js(1,"input",22),ia("ngModelChange",function(t){return Ot(e),aa().filter.text=t})("ngModelChange",function(t){return Ot(e),aa().onFilterTextChange(t)}),Ys(),Ys()}if(2&e){const e=aa();uo(1),Ws("readOnly",e.disabled)("placeholder",e._settings.searchPlaceholderText)("ngModel",e.filter.text)}}function Y_(e,t){if(1&e){const e=ta();Js(0,"li",23),ia("click",function(t){const n=Ot(e).$implicit;return aa().onItemClick(t,n)}),$s(1,"input",24),Js(2,"div"),Da(3),Ys(),Ys()}if(2&e){const e=t.$implicit,n=aa();uo(1),Ws("checked",n.isSelected(e))("disabled",n.disabled||n.isLimitSelectionReached()&&!n.isSelected(e)||e.isDisabled),Ps("aria-label",e.text),uo(2),Oa(e.text)}}function $_(e,t){if(1&e&&(Js(0,"li",25),Js(1,"h5"),Da(2),Ys(),Ys()),2&e){const e=aa();uo(2),Oa(e._settings.noFilteredDataAvailablePlaceholderText)}}function Z_(e,t){if(1&e&&(Js(0,"li",26),Js(1,"h5"),Da(2),Ys(),Ys()),2&e){const e=aa();uo(2),Oa(e._settings.noDataAvailablePlaceholderText)}}const eF=function(e){return{"dropdown-multiselect--active":e}};class tF{constructor(e){"string"!=typeof e&&"number"!=typeof e||(this.id=this.text=e,this.isDisabled=!1),"object"==typeof e&&(this.id=e.id,this.text=e.text,this.isDisabled=e.isDisabled)}}let nF=(()=>{let e=class{transform(e,t){return e&&t?e.filter(e=>this.applyFilter(e,t)):e}applyFilter(e,t){return"string"==typeof e.text&&"string"==typeof t.text?!(t.text&&e.text&&-1===e.text.toLowerCase().indexOf(t.text.toLowerCase())):!(t.text&&e.text&&-1===e.text.toString().toLowerCase().indexOf(t.text.toString().toLowerCase()))}};return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=Ye({name:"multiSelectFilter",type:e,pure:!1}),e})();const rF={provide:xh,useExisting:oe(()=>oF),multi:!0},iF=()=>{};let oF=(()=>{let e=class{constructor(e,t){this.listFilterPipe=e,this.cdr=t,this._data=[],this.selectedItems=[],this.isDropdownOpen=!0,this._placeholder="Select",this._sourceDataType=null,this._sourceDataFields=[],this.filter=new tF(this.data),this.defaultSettings={singleSelection:!1,idField:"id",textField:"text",disabledField:"isDisabled",enableCheckAll:!0,selectAllText:"Select All",unSelectAllText:"UnSelect All",allowSearchFilter:!1,limitSelection:-1,clearSearchFilter:!0,maxHeight:197,itemsShowLimit:999999999999,searchPlaceholderText:"Search",noDataAvailablePlaceholderText:"No data available",noFilteredDataAvailablePlaceholderText:"No filtered data available",closeDropDownOnSelection:!1,showSelectedItemsAtTop:!1,defaultOpen:!1,allowRemoteDataSearch:!1},this.disabled=!1,this.onFilterChange=new $A,this.onDropDownClose=new $A,this.onSelect=new $A,this.onDeSelect=new $A,this.onSelectAll=new $A,this.onDeSelectAll=new $A,this.onTouchedCallback=iF,this.onChangeCallback=iF}set placeholder(e){this._placeholder=e||"Select"}set settings(e){this._settings=e?Object.assign(this.defaultSettings,e):Object.assign(this.defaultSettings)}set data(e){if(e){const t=e[0];this._sourceDataType=typeof t,this._sourceDataFields=this.getFields(t),this._data=e.map(e=>new tF("string"==typeof e||"number"==typeof e?e:{id:e[this._settings.idField],text:e[this._settings.textField],isDisabled:e[this._settings.disabledField]}))}else this._data=[]}onFilterTextChange(e){this.onFilterChange.emit(e)}onItemClick(e,t){if(this.disabled||t.isDisabled)return!1;const n=this.isSelected(t),r=-1===this._settings.limitSelection||this._settings.limitSelection>0&&this.selectedItems.length<this._settings.limitSelection;n?this.removeSelected(t):r&&this.addSelected(t),this._settings.singleSelection&&this._settings.closeDropDownOnSelection&&this.closeDropdown()}writeValue(e){if(null!=e&&e.length>0)if(this._settings.singleSelection)try{if(e.length>=1){const t=e[0];this.selectedItems=[new tF("string"==typeof t||"number"==typeof t?t:{id:t[this._settings.idField],text:t[this._settings.textField],isDisabled:t[this._settings.disabledField]})]}}catch(PQ){}else{const t=e.map(e=>new tF("string"==typeof e||"number"==typeof e?e:{id:e[this._settings.idField],text:e[this._settings.textField],isDisabled:e[this._settings.disabledField]}));this.selectedItems=this._settings.limitSelection>0?t.splice(0,this._settings.limitSelection):t}else this.selectedItems=[];this.onChangeCallback(e),this.cdr.markForCheck()}registerOnChange(e){this.onChangeCallback=e}registerOnTouched(e){this.onTouchedCallback=e}onTouched(){this.onTouchedCallback()}trackByFn(e,t){return t.id}isSelected(e){let t=!1;return this.selectedItems.forEach(n=>{e.id===n.id&&(t=!0)}),t}isLimitSelectionReached(){return this._settings.limitSelection===this.selectedItems.length}isAllItemsSelected(){let e=this.listFilterPipe.transform(this._data,this.filter);const t=e.filter(e=>e.isDisabled).length;return!((!this.data||0===this.data.length)&&this._settings.allowRemoteDataSearch)&&e.length===this.selectedItems.length+t}showButton(){return!(this._settings.singleSelection||this._settings.limitSelection>0)}itemShowRemaining(){return this.selectedItems.length-this._settings.itemsShowLimit}addSelected(e){this._settings.singleSelection?(this.selectedItems=[],this.selectedItems.push(e)):this.selectedItems.push(e),this.onChangeCallback(this.emittedValue(this.selectedItems)),this.onSelect.emit(this.emittedValue(e))}removeSelected(e){this.selectedItems.forEach(t=>{e.id===t.id&&this.selectedItems.splice(this.selectedItems.indexOf(t),1)}),this.onChangeCallback(this.emittedValue(this.selectedItems)),this.onDeSelect.emit(this.emittedValue(e))}emittedValue(e){const t=[];if(Array.isArray(e))e.map(e=>{t.push(this.objectify(e))});else if(e)return this.objectify(e);return t}objectify(e){if("object"===this._sourceDataType){const t={};return t[this._settings.idField]=e.id,t[this._settings.textField]=e.text,this._sourceDataFields.includes(this._settings.disabledField)&&(t[this._settings.disabledField]=e.isDisabled),t}return"number"===this._sourceDataType?Number(e.id):e.text}toggleDropdown(e){e.preventDefault(),this.disabled&&this._settings.singleSelection||(this._settings.defaultOpen=!this._settings.defaultOpen,this._settings.defaultOpen||this.onDropDownClose.emit())}closeDropdown(){this._settings.defaultOpen=!1,this._settings.clearSearchFilter&&(this.filter.text=""),this.onDropDownClose.emit()}toggleSelectAll(){if(this.disabled)return!1;this.isAllItemsSelected()?(this.selectedItems=[],this.onDeSelectAll.emit(this.emittedValue(this.selectedItems))):(this.selectedItems=this.listFilterPipe.transform(this._data,this.filter).filter(e=>!e.isDisabled).slice(),this.onSelectAll.emit(this.emittedValue(this.selectedItems))),this.onChangeCallback(this.emittedValue(this.selectedItems))}getFields(e){const t=[];if("object"!=typeof e)return t;for(const n in e)t.push(n);return t}};return e.\u0275fac=function(t){return new(t||e)(zs(nF),zs(hA))},e.\u0275cmp=Ge({type:e,selectors:[["ng-multiselect-dropdown"]],hostBindings:function(e,t){1&e&&ia("blur",function(){return t.onTouched()})},inputs:{disabled:"disabled",placeholder:"placeholder",settings:"settings",data:"data"},outputs:{onFilterChange:"onFilterChange",onDropDownClose:"onDropDownClose",onSelect:"onSelect",onDeSelect:"onDeSelect",onSelectAll:"onSelectAll",onDeSelectAll:"onDeSelectAll"},features:[Dl([rF])],decls:18,vars:23,consts:[["tabindex","0",1,"multiselect-dropdown",3,"blur","clickOutside"],["tabindex","-1",1,"dropdown-btn",3,"click"],[4,"ngIf"],["class","selected-item-container",4,"ngFor","ngForOf","ngForTrackBy"],[2,"float","right !important","padding-right","4px",3,"ngClass"],["style","padding-right: 15px;",4,"ngIf"],[1,"dropdown-multiselect__caret"],[1,"dropdown-list",3,"hidden"],[1,"item1"],["class","multiselect-item-checkbox","style","border-bottom: 1px solid #ccc;padding:10px",3,"click",4,"ngIf"],["class","filter-textbox",4,"ngIf"],[1,"item2"],["class","multiselect-item-checkbox",3,"click",4,"ngFor","ngForOf"],["class","no-filtered-data",4,"ngIf"],["class","no-data",4,"ngIf"],[1,"selected-item-container"],[1,"selected-item",3,"hidden"],[2,"padding-left","2px","color","white",3,"click"],[2,"padding-right","15px"],[1,"multiselect-item-checkbox",2,"border-bottom","1px solid #ccc","padding","10px",3,"click"],["type","checkbox","aria-label","multiselect-select-all",3,"checked","disabled"],[1,"filter-textbox"],["type","text","aria-label","multiselect-search",3,"readOnly","placeholder","ngModel","ngModelChange"],[1,"multiselect-item-checkbox",3,"click"],["type","checkbox",3,"checked","disabled"],[1,"no-filtered-data"],[1,"no-data"]],template:function(e,t){1&e&&(Js(0,"div",0),ia("blur",function(){return t.onTouched()})("clickOutside",function(){return t.closeDropdown()}),Js(1,"div"),Js(2,"span",1),ia("click",function(e){return t.toggleDropdown(e)}),js(3,q_,2,1,"span",2),js(4,z_,6,2,"span",3),Js(5,"span",4),js(6,W_,2,1,"span",5),$s(7,"span",6),Ys(),Ys(),Ys(),Js(8,"div",7),Js(9,"ul",8),js(10,X_,4,3,"li",9),js(11,J_,2,3,"li",10),Ys(),Js(12,"ul",11),js(13,Y_,4,4,"li",12),qA(14,"multiSelectFilter"),js(15,$_,3,1,"li",13),qA(16,"multiSelectFilter"),js(17,Z_,3,1,"li",14),Ys(),Ys(),Ys()),2&e&&(uo(1),ba("disabled",t.disabled),uo(2),Ws("ngIf",0==t.selectedItems.length),uo(1),Ws("ngForOf",t.selectedItems)("ngForTrackBy",t.trackByFn),uo(1),Ws("ngClass",MA(21,eF,t._settings.defaultOpen)),uo(1),Ws("ngIf",t.itemShowRemaining()>0),uo(2),Ws("hidden",!t._settings.defaultOpen),uo(2),Ws("ngIf",(t._data.length>0||t._settings.allowRemoteDataSearch)&&!t._settings.singleSelection&&t._settings.enableCheckAll&&-1===t._settings.limitSelection),uo(1),Ws("ngIf",(t._data.length>0||t._settings.allowRemoteDataSearch)&&t._settings.allowSearchFilter),uo(1),va("max-height",t._settings.maxHeight+"px"),uo(1),Ws("ngForOf",zA(14,15,t._data,t.filter)),uo(2),Ws("ngIf",0!=t._data.length&&0==zA(16,18,t._data,t.filter).length&&!t._settings.allowRemoteDataSearch),uo(2),Ws("ngIf",0==t._data.length&&!t._settings.allowRemoteDataSearch))},directives:function(){return[sF,Su,Tu,Fu,Uh,zh,yd]},pipes:function(){return[nF]},styles:['.multiselect-dropdown[_ngcontent-%COMP%]{position:relative;width:100%;font-size:inherit;font-family:inherit}.multiselect-dropdown[_ngcontent-%COMP%]   .dropdown-btn[_ngcontent-%COMP%]{display:inline-block;border:1px solid #adadad;width:100%;padding:6px 12px;margin-bottom:0;font-weight:400;line-height:1.52857143;text-align:left;vertical-align:middle;cursor:pointer;background-image:none;border-radius:4px}.multiselect-dropdown[_ngcontent-%COMP%]   .dropdown-btn[_ngcontent-%COMP%]   .selected-item-container[_ngcontent-%COMP%]{display:flex;float:left}.multiselect-dropdown[_ngcontent-%COMP%]   .dropdown-btn[_ngcontent-%COMP%]   .selected-item-container[_ngcontent-%COMP%]   .selected-item[_ngcontent-%COMP%]{border:1px solid #337ab7;margin-right:4px;background:#337ab7;padding:0 5px;color:#fff;border-radius:2px;float:left;max-width:100px}.multiselect-dropdown[_ngcontent-%COMP%]   .dropdown-btn[_ngcontent-%COMP%]   .selected-item-container[_ngcontent-%COMP%]   .selected-item[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis}.multiselect-dropdown[_ngcontent-%COMP%]   .dropdown-btn[_ngcontent-%COMP%]   .selected-item-container[_ngcontent-%COMP%]   .selected-item[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{text-decoration:none}.multiselect-dropdown[_ngcontent-%COMP%]   .dropdown-btn[_ngcontent-%COMP%]   .selected-item[_ngcontent-%COMP%]:hover{box-shadow:1px 1px #959595}.multiselect-dropdown[_ngcontent-%COMP%]   .dropdown-btn[_ngcontent-%COMP%]   .dropdown-multiselect__caret[_ngcontent-%COMP%]{line-height:16px;display:block;position:absolute;box-sizing:border-box;width:40px;height:38px;right:1px;top:0;padding:4px 8px;margin:0;text-decoration:none;text-align:center;cursor:pointer;transition:transform .2s}.multiselect-dropdown[_ngcontent-%COMP%]   .dropdown-btn[_ngcontent-%COMP%]   .dropdown-multiselect__caret[_ngcontent-%COMP%]:before{position:relative;right:0;top:65%;color:#999;margin-top:4px;border-style:solid;border-width:8px 8px 0;border-color:#999 transparent;content:""}.multiselect-dropdown[_ngcontent-%COMP%]   .dropdown-btn[_ngcontent-%COMP%]   .dropdown-multiselect--active[_ngcontent-%COMP%]   .dropdown-multiselect__caret[_ngcontent-%COMP%]{transform:rotateZ(180deg)}.multiselect-dropdown[_ngcontent-%COMP%]   .disabled[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{background-color:#eceeef}.dropdown-list[_ngcontent-%COMP%]{position:absolute;padding-top:6px;width:100%;z-index:9999;border:1px solid #ccc;border-radius:3px;background:#fff;margin-top:10px;box-shadow:0 1px 5px #959595}.dropdown-list[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]{padding:0;list-style:none;overflow:auto;margin:0}.dropdown-list[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{padding:6px 10px;cursor:pointer;text-align:left}.dropdown-list[_ngcontent-%COMP%]   .filter-textbox[_ngcontent-%COMP%]{border-bottom:1px solid #ccc;position:relative;padding:10px}.dropdown-list[_ngcontent-%COMP%]   .filter-textbox[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{border:0;width:100%;padding:0 0 0 26px}.dropdown-list[_ngcontent-%COMP%]   .filter-textbox[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]:focus{outline:0}.multiselect-item-checkbox[_ngcontent-%COMP%]:hover{background-color:#e4e3e3}.multiselect-item-checkbox[_ngcontent-%COMP%]   input[type=checkbox][_ngcontent-%COMP%]{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.multiselect-item-checkbox[_ngcontent-%COMP%]   input[type=checkbox][_ngcontent-%COMP%]:focus + div[_ngcontent-%COMP%]:before, .multiselect-item-checkbox[_ngcontent-%COMP%]   input[type=checkbox][_ngcontent-%COMP%]:hover + div[_ngcontent-%COMP%]:before{border-color:#337ab7;background-color:#f2f2f2}.multiselect-item-checkbox[_ngcontent-%COMP%]   input[type=checkbox][_ngcontent-%COMP%]:active + div[_ngcontent-%COMP%]:before{transition-duration:0s}.multiselect-item-checkbox[_ngcontent-%COMP%]   input[type=checkbox][_ngcontent-%COMP%] + div[_ngcontent-%COMP%]{position:relative;padding-left:2em;vertical-align:middle;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;margin:0;color:#000}.multiselect-item-checkbox[_ngcontent-%COMP%]   input[type=checkbox][_ngcontent-%COMP%] + div[_ngcontent-%COMP%]:before{box-sizing:content-box;content:"";color:#337ab7;position:absolute;top:50%;left:0;width:14px;height:14px;margin-top:-9px;border:2px solid #337ab7;text-align:center;transition:.4s}.multiselect-item-checkbox[_ngcontent-%COMP%]   input[type=checkbox][_ngcontent-%COMP%] + div[_ngcontent-%COMP%]:after{box-sizing:content-box;content:"";position:absolute;transform:scale(0);transform-origin:50%;transition:transform .2s ease-out;background-color:transparent;top:50%;left:4px;width:8px;height:3px;margin-top:-4px;border-style:solid;border-color:#fff;border-width:0 0 3px 3px;-o-border-image:none;border-image:none;transform:rotate(-45deg) scale(0)}.multiselect-item-checkbox[_ngcontent-%COMP%]   input[type=checkbox][_ngcontent-%COMP%]:disabled + div[_ngcontent-%COMP%]:before{border-color:#ccc}.multiselect-item-checkbox[_ngcontent-%COMP%]   input[type=checkbox][_ngcontent-%COMP%]:disabled:focus + div[_ngcontent-%COMP%]:before   .multiselect-item-checkbox[_ngcontent-%COMP%]   input[type=checkbox][_ngcontent-%COMP%]:disabled:hover + div[_ngcontent-%COMP%]:before{background-color:inherit}.multiselect-item-checkbox[_ngcontent-%COMP%]   input[type=checkbox][_ngcontent-%COMP%]:disabled:checked + div[_ngcontent-%COMP%]:before{background-color:#ccc}.multiselect-item-checkbox[_ngcontent-%COMP%]   input[type=checkbox][_ngcontent-%COMP%]:checked + div[_ngcontent-%COMP%]:after{content:"";transition:transform .2s ease-out;transform:rotate(-45deg) scale(1)}.multiselect-item-checkbox[_ngcontent-%COMP%]   input[type=checkbox][_ngcontent-%COMP%]:checked + div[_ngcontent-%COMP%]:before{-webkit-animation:.2s ease-in borderscale;animation:.2s ease-in borderscale;background:#337ab7}@-webkit-keyframes borderscale{50%{box-shadow:0 0 0 2px #337ab7}}@keyframes borderscale{50%{box-shadow:0 0 0 2px #337ab7}}'],changeDetection:0}),j_([yc()],e.prototype,"placeholder",null),j_([yc()],e.prototype,"disabled",void 0),j_([yc()],e.prototype,"settings",null),j_([yc()],e.prototype,"data",null),j_([wc("onFilterChange")],e.prototype,"onFilterChange",void 0),j_([wc("onDropDownClose")],e.prototype,"onDropDownClose",void 0),j_([wc("onSelect")],e.prototype,"onSelect",void 0),j_([wc("onDeSelect")],e.prototype,"onDeSelect",void 0),j_([wc("onSelectAll")],e.prototype,"onSelectAll",void 0),j_([wc("onDeSelectAll")],e.prototype,"onDeSelectAll",void 0),j_([vc("blur")],e.prototype,"onTouched",null),e})(),sF=(()=>{let e=class{constructor(e){this._elementRef=e,this.clickOutside=new $A}onClick(e,t){t&&(this._elementRef.nativeElement.contains(t)||this.clickOutside.emit(e))}};return e.\u0275fac=function(t){return new(t||e)(zs(Nl))},e.\u0275dir=Je({type:e,selectors:[["","clickOutside",""]],hostBindings:function(e,t){1&e&&ia("click",function(e){return t.onClick(e,e.target)},!1,gi)},outputs:{clickOutside:"clickOutside"}}),j_([wc()],e.prototype,"clickOutside",void 0),j_([vc("document:click",["$event","$event.target"])],e.prototype,"onClick",null),e})();var aF;let lF=aF=class{static forRoot(){return{ngModule:aF}}};lF.\u0275fac=function(e){return new(e||lF)},lF.\u0275mod=We({type:lF}),lF.\u0275inj=pe({providers:[nF],imports:[[Vu,xd]]});const AF=["dropdown"];function cF(e,t){if(1&e&&(Js(0,"span",7),Da(1," \xa0"),$s(2,"fa-icon",8),Js(3,"span",9),Da(4),Ys(),Ys()),2&e){const e=aa();Ws("ngbPopover",e.tooltipText),Ps("alt",e.tooltipText),uo(2),Ws("icon",e.faInfoCircle),uo(2),Oa(e.tooltipText)}}const uF=function(e,t){return{customMultiSelect:e,"customMultiSelect-multiSelection":t}};let hF=(()=>{class e{constructor(){this._list=[],this.singleSelection=!1,this.idField="id",this.textField="name",this.maxShown=4,this.selectedChange=new $A,this.handleChanged=new $A,this.handleDropDownClose=new $A,this.faInfoCircle=yp,this.componentId="",this.translation={selectAll:"Select All",selectNone:"Deselect All",reset:"Reset",search:"Filter Selections Below",nothingSelected:"Nothing Selected"},this.settings={singleSelection:this.singleSelection,itemsShowLimit:this.maxShown,enableCheckAll:!0,selectAllText:"Select All",unSelectAllText:"Deselect All",searchPlaceholderText:"Filter Selections Below",idField:this.idField,textField:this.textField,allowSearchFilter:!0,closeDropDownOnSelection:this.singleSelection},this.placeholderText=""}set list(e){this._list=e}ngOnInit(){this.settings={singleSelection:this.singleSelection,itemsShowLimit:this.maxShown,enableCheckAll:!0,selectAllText:"Select All",unSelectAllText:"Deselect All",searchPlaceholderText:"Filter Selections Below",idField:this.idField,textField:this.textField,allowSearchFilter:!0,closeDropDownOnSelection:this.singleSelection},this.componentId=`${this.label}-ng-multiselect-dropdown`,null==this.required&&(this.required=!0),this.placeholderText=this.buttonLabel?"Select "+this.buttonLabel:"Select "+this.label}ngModelChange(e){this.selected=Array.isArray(e)?e:[e],this.handleChange()}handleSelectAll(e){var t;this.selected=e,null===(t=this.selected)||void 0===t||t.forEach((e,t)=>{this.selected[t]=this._list.find(e=>e[this.settings.idField]===this.selected[t][this.settings.idField])}),this.selectedChange.emit(this.selected),this.handleChanged.emit(this.selected)}handleDeselectAll(e){this.selected=[],this.selectedChange.emit(this.selected),this.handleChanged.emit(this.selected)}handleChange(e){var t;this.selected=this.selected?this.selected:[],null===(t=this.selected)||void 0===t||t.forEach((e,t)=>{this.selected[t]=this._list.find(e=>e[this.settings.idField]===this.selected[t][this.settings.idField])}),this.selectedChange.emit(this.selected),this.handleChanged.emit(this.selected)}toggleMultiSelect(e){var t;null===(t=this.multiSelect)||void 0===t||t.toggleDropdown(e)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=Ge({type:e,selectors:[["select-list"]],viewQuery:function(e,t){if(1&e&&uc(AF,5),2&e){let e;cc(e=dc())&&(t.multiSelect=e.first)}},inputs:{_list:"_list",label:"label",buttonLabel:"buttonLabel",singleSelection:"singleSelection",tooltipText:"tooltipText",spinner:"spinner",required:"required",loading:"loading",elementId:"elementId",idField:"idField",textField:"textField",maxShown:"maxShown",list:"list",selected:"selected"},outputs:{selectedChange:"selectedChange",handleChanged:"handleChanged",handleDropDownClose:"handleDropDownClose"},decls:8,vars:13,consts:[[1,"bottomMargin","noPadding","parent-pull-down"],[1,"noPadding"],["aria-hidden","true",1,"selectListLabel","strong"],[3,"ngbPopover",4,"ngIf"],[3,"ngClass"],[3,"id","placeholder","settings","data","ngModel","keydown.enter","ngModelChange","onDeSelect","onDeSelectAll","onDropDownClose","onSelectAll","onSelect"],["dropdown",""],[3,"ngbPopover"],["aria-hidden","true",1,"tooltipColor",3,"icon"],[1,"sr-only"]],template:function(e,t){1&e&&(Js(0,"div",0),Js(1,"div",1),Js(2,"label",2),Da(3),Ys(),js(4,cF,5,4,"span",3),Ys(),Js(5,"div",4),Js(6,"ng-multiselect-dropdown",5,6),ia("keydown.enter",function(e){return t.toggleMultiSelect(e)})("ngModelChange",function(e){return t.selected=e})("onDeSelect",function(e){return t.handleChange(e)})("onDeSelectAll",function(e){return t.handleDeselectAll(e)})("onDropDownClose",function(e){return t.handleDropDownClose.emit(e)})("onSelectAll",function(e){return t.handleSelectAll(e)})("onSelect",function(e){return t.handleChange(e)}),Ys(),Ys(),Ys()),2&e&&(uo(2),Ps("id",t.elementId)("data-required",t.required),uo(1),La("",t.label,":"),uo(1),Ws("ngIf",t.tooltipText),uo(1),Ws("ngClass",RA(10,uF,t.settings.singleSelection,!t.settings.singleSelection)),uo(1),ua("id",t.componentId),Ws("placeholder",t.placeholderText)("settings",t.settings)("data",t._list)("ngModel",t.selected))},directives:[Su,Fu,oF,zh,yd,Hb,qE],styles:[".strong[_ngcontent-%COMP%]{font-weight:500}.tooltipColor[_ngcontent-%COMP%]{color:#999}"],changeDetection:0}),e})();var dF=n(457);const pF=["downloadModal"];function fF(e,t){if(1&e){const e=ta();Js(0,"div",19),Js(1,"label"),Js(2,"input",20),ia("ngModelChange",function(t){return Ot(e),aa(2).selectedDownloadFmt=t}),Ys(),Da(3),Ys(),Ys()}if(2&e){const e=t.$implicit,n=aa(2);uo(2),Ws("value",e.value)("ngModel",n.selectedDownloadFmt),uo(1),La(" ",e.display," ")}}function gF(e,t){1&e&&$s(0,"span",21)}function mF(e,t){if(1&e){const e=ta();Js(0,"div",2),Js(1,"h3",3),Da(2,"Download Data"),Ys(),Js(3,"button",4),ia("click",function(){return Ot(e),aa().dismiss()}),Js(4,"span",5),Da(5,"\xd7"),Ys(),Ys(),Ys(),Js(6,"div",6),Js(7,"form",7),Js(8,"div",8),Js(9,"div",9),Da(10,"* = Required"),Ys(),Ys(),Js(11,"div",10),Js(12,"label",11),Da(13,"Format:"),Ys(),Js(14,"div",12),Js(15,"fieldset"),Js(16,"legend",13),Da(17,"Format options for export of current side data"),Ys(),js(18,fF,4,3,"div",14),Ys(),Ys(),Ys(),Ys(),Ys(),Js(19,"div",15),Js(20,"button",16),ia("click",function(){return Ot(e),aa().download()}),js(21,gF,1,0,"span",17),Da(22,"Download "),Ys(),Js(23,"button",18),ia("click",function(){return Ot(e),aa().dismiss()}),Da(24,"Close"),Ys(),Ys()}if(2&e){const e=aa();uo(18),Ws("ngForOf",e.downloadFormats),uo(2),Ws("disabled",!e.selectedDownloadFmt||!0===e.loadingDownload),uo(1),Ws("ngIf",!0===e.loadingDownload)}}function yF(e,t){if(1&e){const e=ta();Js(0,"button",22),ia("click",function(){return Ot(e),aa().open()}),$s(1,"fa-icon",23),Da(2," \xa0Download Data\n"),Ys()}if(2&e){const e=aa();Ws("disabled",e.disabled),Ps("aria-label",e.ariaLabel),uo(1),Ws("icon",e.faDownload)}}let wF=(()=>{class e{constructor(e,t,n,r,i){this.modalService=e,this.http=t,this.dataService=n,this.websiteMetricService=r,this.baseUrl=i,this.queryResult=null,this.disabled=!1,this.ariaLabel="Download Data",this.downloadFormats=[{value:"csv",display:"Comma-Separated Values"},{value:"tsv",display:"Tab-Separated Values"},{value:"xls",display:"Excel (XLS)"},{value:"xlsx",display:"Excel (XLSX)"},{value:"xml",display:"XML"}],this.faDownload=bp,this.selectedDownloadFmt="",this.loadingDownload=!1}ngOnInit(){this.lastRequest=this.dataService.getLastQueryRequest()}ngAfterViewInit(){try{setTimeout(()=>{this.isFileSaverSupported=!!new Blob})}catch(PQ){setTimeout(()=>{this.isFileSaverSupported=!1})}}open(){this.modal=this.modalService.open(this.downloadModal)}download(){var e,t,n,r,i,o,s,a,l,A,c,u,h,d;this.websiteMetricService.createWebsiteMetricAction(new I_({Action:M_.Download,Tab:this.selectedTab,Information:(null===(t=null===(e=this.queryResult)||void 0===e?void 0:e.measure)||void 0===t?void 0:t.titleWithQuery)+"-"+this.selectedDownloadFmt})).subscribe();let p="Export/";switch(this.selectedDownloadFmt){case"csv":p+=(null===(r=null===(n=this.queryResult)||void 0===n?void 0:n.measure)||void 0===r?void 0:r.cdcApiEndpoint)?"CdcCsv":"Csv";break;case"tsv":p+=(null===(o=null===(i=this.queryResult)||void 0===i?void 0:i.measure)||void 0===o?void 0:o.cdcApiEndpoint)?"CdcTsv":"Tsv";break;case"xls":p+=(null===(a=null===(s=this.queryResult)||void 0===s?void 0:s.measure)||void 0===a?void 0:a.cdcApiEndpoint)?"CdcXls":"Xls";break;case"xlsx":p+=(null===(A=null===(l=this.queryResult)||void 0===l?void 0:l.measure)||void 0===A?void 0:A.cdcApiEndpoint)?"CdcXlsx":"Xlsx";break;case"xml":p+=(null===(u=null===(c=this.queryResult)||void 0===c?void 0:c.measure)||void 0===u?void 0:u.cdcApiEndpoint)?"CdcXml":"Xml";break;default:throw new Error("Invalid type!")}this.loadingDownload=!0,this.http.post(this.baseUrl+p,(null===(d=null===(h=this.queryResult)||void 0===h?void 0:h.measure)||void 0===d?void 0:d.cdcApiEndpoint)?this.queryResult:this.lastRequest,{responseType:"arraybuffer",observe:"response"}).toPromise().then(e=>{if(this.loadingDownload=!1,e){const t=e.headers.get("Content-Disposition").split(";")[1].trim().split("=")[1].replace(/"/g,""),n=e.headers.get("Content-Type"),r=new Blob([e.body],{type:n});dF.saveAs(r,t)}void 0!==this.modal&&this.modal.close("downloaded")}).catch(e=>{this.loadingDownload=!1,this.modalService.dismissAll("error occurred while attempting to download data")})}dismiss(){this.modalService.dismissAll()}}return e.\u0275fac=function(t){return new(t||e)(zs(ab),zs(Jd),zs(D_),zs(Ty),zs("BASE_URL"))},e.\u0275cmp=Ge({type:e,selectors:[["download"]],viewQuery:function(e,t){if(1&e&&uc(pF,5,mA),2&e){let e;cc(e=dc())&&(t.downloadModal=e.first)}},inputs:{queryResult:"queryResult",disabled:"disabled",ariaLabel:"ariaLabel",selectedTab:"selectedTab"},decls:3,vars:1,consts:[["downloadModal",""],["type","button","class","btn btn-primary data-option-button","title","Download Data",3,"disabled","click",4,"ngIf"],[1,"header-section"],["id","download-header","tabindex","0",1,"modal-title"],["type","button","data-dismiss","modal","aria-label","Close",1,"close",3,"click"],["aria-hidden","true"],[1,"modal-body"],["name","downloadDataForm"],[1,"col-xs-12"],[1,"required-text","bottomMargin"],[1,"form-group","form-section"],["data-required","true"],[1,"col-xs-9"],[1,"sr-only"],["class","radio",4,"ngFor","ngForOf"],[1,"footer-section"],["type","button",1,"btn","btn-primary","pull-left",3,"disabled","click"],["class","spinner-border spinner-border-sm","aria-hidden","true",4,"ngIf"],["type","button","data-dismiss","modal",1,"btn","btn-secondary",3,"click"],[1,"radio"],["type","radio","name","radiogroup","ng-required","!selectedDownloadFmt",3,"value","ngModel","ngModelChange"],["aria-hidden","true",1,"spinner-border","spinner-border-sm"],["type","button","title","Download Data",1,"btn","btn-primary","data-option-button",3,"disabled","click"],["aria-hidden","true",1,"button-icon",3,"icon"]],template:function(e,t){1&e&&(js(0,mF,25,3,"ng-template",null,0,mc),js(2,yF,3,3,"button",1)),2&e&&(uo(2),Ws("ngIf",t.isFileSaverSupported))},directives:[Su,wd,Wh,fd,Tu,Bd,Uh,zh,yd,qE],styles:[".footer-section[_ngcontent-%COMP%], .form-section[_ngcontent-%COMP%], .header-section[_ngcontent-%COMP%]{display:flex}.header-section[_ngcontent-%COMP%]{justify-content:space-between;padding:8px 16px;border-bottom:1px solid #e4e4e4}.footer-section[_ngcontent-%COMP%]{justify-content:space-between;padding:16px;border-top:1px solid #e4e4e4}.form-section[_ngcontent-%COMP%]{flex-direction:row;grid-gap:24px;gap:24px;margin-left:48px}.modal-body[_ngcontent-%COMP%]{padding-bottom:0}"]}),e})();function vF(e,t){if(1&e&&(Js(0,"div"),Js(1,"h2",1),Da(2),Ys(),Ys()),2&e){const e=aa();uo(1),Ws("id",e.panelSide+e.tab+"Title"),uo(1),Oa(e.displayTitle)}}let bF=(()=>{class e{constructor(){this.displayTitle="",this.panelSide="",this.tab="",this.showTitle=!0}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=Ge({type:e,selectors:[["mi-header"]],inputs:{displayTitle:"displayTitle",panelSide:"panelSide",tab:"tab",showTitle:"showTitle"},decls:1,vars:1,consts:[[4,"ngIf"],[1,"my-4","miTabTitle","header-title","text-center",3,"id"]],template:function(e,t){1&e&&js(0,vF,3,2,"div",0),2&e&&Ws("ngIf",t.showTitle)},directives:[Su],styles:[".header-title[_ngcontent-%COMP%]{padding-bottom:.35em}"]}),e})();function CF(e,t){if(1&e){const e=ta();Js(0,"select-list",8),ia("handleChanged",function(){return Ot(e),aa(2).filterRows()})("selectedChange",function(t){return Ot(e),aa(2).filterCounty=t}),Ys()}if(2&e){const e=aa(2);Ws("idField",e.geographicAreaSettings.idField)("textField",e.geographicAreaSettings.textField)("list",e.geographicAreaService.dynamicGeoGraphicAreas.get(e.querySide))("tooltipText","Geographic Areas")("selected",e.filterCounty)("singleSelection",!1)("loading",!1)}}function BF(e,t){if(1&e&&(Js(0,"div"),Js(1,"div",5),Js(2,"div",6),js(3,CF,1,7,"select-list",7),Ys(),Ys(),Ys()),2&e){const e=aa();let t;uo(3),Ws("ngIf",(null==(t=e.geographicAreaService.dynamicGeoGraphicAreas.get(e.querySide))?null:t.length)>1)}}function EF(e,t){if(1&e&&$s(0,"fa-icon",15),2&e){const e=aa().$implicit,t=aa();Ws("icon",t.faChevronDown)("rotate",t.getSort(e)?180:void 0)}}function _F(e,t){1&e&&$s(0,"fa-icon",16),2&e&&Ws("icon",aa(2).faSort)}function FF(e,t){if(1&e&&$s(0,"fa-icon",17),2&e){const e=aa(),t=e.first,n=e.last,r=e.$implicit,i=aa();ua("placement",!0===t?"right":!0===n?"left":"bottom"),Ws("icon",i.faQuestionCircle)("ngbPopover",r.ColumnDefinition),Ps("alt",r.ColumnDefinition)}}const xF=function(e){return{"text-right":e}};function TF(e,t){if(1&e){const e=ta();Js(0,"th",9),Js(1,"span",10),ia("click",function(){const t=Ot(e).$implicit;return aa().toggleSort(t)}),Js(2,"a",11),Da(3),Ys(),Da(4,"\xa0 "),js(5,EF,1,2,"fa-icon",12),js(6,_F,1,1,"fa-icon",13),Ys(),js(7,FF,1,4,"fa-icon",14),Ys()}if(2&e){const e=t.$implicit,n=t.index,r=t.last,i=aa();Ws("id",i.tableId+"col"+n)("ngClass",MA(7,xF,r&&"Value"===e.ColumnType)),uo(1),Ps("aria-label","Sort By "+e.ColumnLabel),uo(2),Oa(e.ColumnLabel),uo(2),Ws("ngIf",null!==i.getSort(e)),uo(1),Ws("ngIf",null===i.getSort(e)),uo(1),Ws("ngIf",e.ColumnDefinition)}}function QF(e,t){if(1&e&&(Js(0,"span"),Da(1),Ys()),2&e){const e=aa(5);uo(1),Oa(e.emptyValueLabel)}}function SF(e,t){if(1&e&&(Js(0,"span"),Da(1),Ys()),2&e){const e=aa(2).$implicit;uo(1),Oa(e.Value)}}function kF(e,t){if(1&e&&(Js(0,"div"),js(1,QF,2,1,"span",0),js(2,SF,2,1,"span",0),Ys()),2&e){const e=aa().$implicit;uo(1),Ws("ngIf",null===e.Value),uo(1),Ws("ngIf",null!==e.Value)}}function UF(e,t){if(1&e&&(Js(0,"span"),Da(1),Ys()),2&e){const e=aa(2).$implicit;uo(1),Oa(e.Value)}}function DF(e,t){1&e&&$s(0,"span",26),2&e&&Ws("innerHtml",aa(2).$implicit.Value,ai)}function OF(e,t){1&e&&$s(0,"span",26),2&e&&Ws("innerHtml",aa(2).$implicit.Value,ai)}function LF(e,t){if(1&e&&(Js(0,"div"),js(1,UF,2,1,"span",0),js(2,DF,1,1,"span",25),js(3,OF,1,1,"span",25),Ys()),2&e){const e=aa().$implicit;uo(1),Ws("ngIf",!e.isHtml),uo(1),Ws("ngIf",e.isHtml&&!e.highlight),uo(1),Ws("ngIf",e.isHtml&&e.highlight)}}function IF(e,t){if(1&e&&(Js(0,"td",21),Js(1,"div",22),js(2,kF,3,2,"div",23),js(3,LF,4,3,"div",24),Ys(),Ys()),2&e){const e=t.$implicit,n=t.index,r=t.last,i=aa(3);Ws("ngClass",MA(4,xF,r&&"Value"===e.ColumnType)),Ps("headers",i.tableId+"col"+n),uo(1),Ws("ngSwitch",e.ColumnType),uo(1),Ws("ngSwitchCase","Value")}}function HF(e,t){if(1&e&&(Js(0,"tr",19),js(1,IF,4,6,"td",20),Ys()),2&e){const e=t.$implicit;uo(1),Ws("ngForOf",e)}}function MF(e,t){if(1&e&&(Js(0,"tbody"),js(1,HF,2,1,"tr",18),Ys()),2&e){const e=aa();uo(1),Ws("ngForOf",e.filteredData)}}function RF(e,t){if(1&e&&(Js(0,"span"),Da(1),Ys()),2&e){const e=aa(5);uo(1),Oa(e.emptyValueLabel)}}function NF(e,t){if(1&e&&(Js(0,"span"),Da(1),Ys()),2&e){const e=aa(2).$implicit;uo(1),Oa(e.Value)}}function PF(e,t){if(1&e&&(Js(0,"div"),js(1,RF,2,1,"span",0),js(2,NF,2,1,"span",0),Ys()),2&e){const e=aa().$implicit;uo(1),Ws("ngIf",null===e.Value),uo(1),Ws("ngIf",null!==e.Value)}}function KF(e,t){if(1&e&&(Js(0,"span"),Da(1),Ys()),2&e){const e=aa(2).$implicit;uo(1),Oa(e.Value)}}function VF(e,t){1&e&&$s(0,"span",26),2&e&&Ws("innerHtml",aa(2).$implicit.Value,ai)}function GF(e,t){1&e&&$s(0,"span",26),2&e&&Ws("innerHtml",aa(2).$implicit.Value,ai)}function jF(e,t){if(1&e&&(Js(0,"div"),Js(1,"div"),js(2,KF,2,1,"span",0),js(3,VF,1,1,"span",25),js(4,GF,1,1,"span",25),Ys(),Ys()),2&e){const e=aa().$implicit;uo(2),Ws("ngIf",!e.isHtml),uo(1),Ws("ngIf",e.isHtml&&!e.highlight),uo(1),Ws("ngIf",e.isHtml&&e.highlight)}}function qF(e,t){if(1&e&&(Js(0,"td",1),Js(1,"div",22),js(2,PF,3,2,"div",23),js(3,jF,5,3,"div",24),Ys(),Ys()),2&e){const e=t.$implicit,n=t.index,r=t.last,i=aa(3);Ws("ngClass",MA(4,xF,r&&"Value"===e.ColumnType)),Ps("headers",i.tableId+"col"+n),uo(1),Ws("ngSwitch",e.ColumnType),uo(1),Ws("ngSwitchCase","Value")}}function zF(e,t){if(1&e&&(Js(0,"tr",19),js(1,qF,4,6,"td",27),Ys()),2&e){const e=t.$implicit;uo(1),Ws("ngForOf",e)}}function WF(e,t){if(1&e&&(Js(0,"tbody"),js(1,zF,2,1,"tr",18),qA(2,"slice"),Ys()),2&e){const e=aa();uo(1),Ws("ngForOf",WA(2,1,e.filteredData,(e.pager.currentPage-1)*e.pageSize,e.pager.currentPage*e.pageSize))}}function XF(e,t){if(1&e){const e=ta();Js(0,"div",28),Js(1,"ngb-pagination",29),ia("pageChange",function(t){return Ot(e),aa().onPageChange(t)})("pageChange",function(t){return Ot(e),aa().pager.currentPage=t}),Ys(),$s(2,"br"),Js(3,"small"),Da(4),Ys(),Ys()}if(2&e){const e=aa();uo(1),Ws("page",e.pager.currentPage)("pageSize",e.pageSize)("collectionSize",e.filteredData.length)("boundaryLinks",!0)("directionLinks",!0)("ellipses",!0)("maxSize",5),uo(3),Ha("Displaying records ",e.pager.startIndex+1," - ",e.pager.endIndex," of ",e.filteredData.length,"")}}const JF=function(e){return{"table-responsive":e}};let YF=(()=>{class e{constructor(e,t,n){this.pagerService=e,this.changeDetectorRef=t,this.geographicAreaService=n,this.paging=!0,this.pageSize=10,this.tableCaption="",this.tableTitle="",this.querySide="",this.faQuestionCircle=wp,this.faChevronDown=dp,this.faSort=Up,this.filterCounty=[],this.filteredData=[],this.isFiltering=!1,this.pager={totalPages:0,startIndex:0,endIndex:0,currentPage:1},this.sortOpts={col:null,reverse:!1},this.parsedData=[],this.initialFilteredData=[],this.geographicAreaSettings={allowSearchFilter:!0,closeDropDownOnSelection:!0,selectAllText:"Select All",unSelectAllText:"Deselect All",searchPlaceholderText:"Filter Selections Below",itemsShowLimit:3,idField:"GeographicAreaID",textField:"GeographicArea"}}ngOnInit(){if(null==this.paging&&(this.paging=!1),null==this.pageSize&&(this.pageSize=25),!this.theadConfig)throw new Error("Invalid floating table header configuration!");this.handleDataChange()}parseData(){var e;let t=[];null===(e=this.data)||void 0===e||e.forEach(e=>{let n=[];this.headers.forEach(t=>{var r={MappedColumnName:t.MappedColumnName,ColumnType:t.ColumnType,Name:t.ColumnLabel,Value:e[t.MappedColumnName],isHtml:"Value"!==t.ColumnType&&!0===t.isHtml,highlight:!0===t.isHtml?t.highlight:null};"GeographicArea"===t.ColumnType&&null==e.MeasureValue&&(r.Value+="**"),"Value"===t.ColumnType&&(r.Value=e.MeasureDisplayValue),n.push(r)}),t.push(n)}),this.parsedData=t,this.initialFilteredData=E_.cloneDeep(this.parsedData),this.filteredData=E_.cloneDeep(this.parsedData),this.changeDetectorRef.markForCheck()}sortRows(){if(!this.sortOpts.col)return void(this.filteredData=E_.cloneDeep(this.initialFilteredData));const e=this.headers.findIndex(e=>e.MappedColumnName===this.sortOpts.col);this.filteredData=E_.cloneDeep(this.filteredData).sort((t,n)=>{const r=XE(t[e].Value,n[e].Value);return this.sortOpts.reverse?-r:r})}filterRows(){var e;if(this.filterCounty.length<1)return this.filteredData=E_.cloneDeep(this.parsedData),this.initialFilteredData=E_.cloneDeep(this.parsedData),void this.sortRows();this.isFiltering=!0;let t=[];for(let n=0;n<this.parsedData.length-1;n++){let r=this.parsedData[n].find(e=>"County"===e.Name);(null===(e=this.filterCounty)||void 0===e?void 0:e.filter(e=>{var t;let n=null===(t=null==r?void 0:r.Value)||void 0===t?void 0:t.replace(/\*/g,"");return 0===(null==e?void 0:e.GeographicArea.localeCompare(n))})).length>0&&t.push(this.parsedData[n]),setTimeout(()=>{this.isFiltering=!1}),this.filteredData=t}this.isFiltering=!1,this.initialFilteredData=E_.cloneDeep(this.filteredData),this.sortRows()}toggleSort(e){if(this.sortOpts.col===e.MappedColumnName)switch(this.sortOpts.reverse){case!1:this.sortOpts.reverse=!0;break;case!0:this.sortOpts={col:null,reverse:null}}else this.sortOpts={col:e.MappedColumnName,reverse:!1};this.sortRows()}getSort(e){let t=this.sortOpts.col===e.MappedColumnName?this.sortOpts.reverse:null;return null===t?null:Boolean(t)}setPage(e){(e<1||e>this.pager.totalPages)&&0!==this.pager.totalPages||(this.pager=this.pagerService.getPager(this.parsedData.length,e,this.pageSize),this.changeDetectorRef.markForCheck())}ngOnChanges(e){(e.headers||e.data)&&this.handleDataChange()}handleDataChange(e){this.sortOpts={col:null,reverse:!1},null!=this.headers&&null!=this.data&&(this.headers.length&&this.data.length?(this.parseData(),!0===this.paging&&this.setPage(1),setTimeout(function(){})):this.parsedData=[]),this.changeDetectorRef.markForCheck()}onPageChange(e){const t=document.getElementById("paging-component");this.pager.currentPage=e,null==t||t.click()}}return e.\u0275fac=function(t){return new(t||e)(zs(WE),zs(hA),zs(U_))},e.\u0275cmp=Ge({type:e,selectors:[["mi-table"]],inputs:{paging:"paging",pageSize:"pageSize",tableCaption:"tableCaption",headers:"headers",data:"data",emptyValueLabel:"emptyValueLabel",theadConfig:"theadConfig",tableResponsive:"tableResponsive",displayTypeName:"displayTypeName",tableId:"tableId",tableTitle:"tableTitle",querySide:"querySide"},features:[ct],decls:11,vars:10,consts:[[4,"ngIf"],[3,"ngClass"],[1,"table","table-condensed","table-striped",3,"summary"],["tabindex","0","scope","col","scope","col",3,"id","ngClass",4,"ngFor","ngForOf"],["id","paging-component",4,"ngIf"],[1,"row"],[1,"col-3"],["label","Geographic Areas","button-label","a Geographic Area","class","col-lg-3 col-md-6 col-sm-6 col-12",3,"idField","textField","list","tooltipText","selected","singleSelection","loading","handleChanged","selectedChange",4,"ngIf"],["label","Geographic Areas","button-label","a Geographic Area",1,"col-lg-3","col-md-6","col-sm-6","col-12",3,"idField","textField","list","tooltipText","selected","singleSelection","loading","handleChanged","selectedChange"],["tabindex","0","scope","col","scope","col",3,"id","ngClass"],["role","button",3,"click"],["data-target","#",1,"column-sort","text-decoration-none"],["data-fa-transform","down-8","aria-hidden","true",3,"icon","rotate",4,"ngIf"],["aria-hidden","true",3,"icon",4,"ngIf"],["class","visible-xs-inline-block visible-sm-inline-block context-help pl-2 tooltipIcon","role","tooltip","tabindex","0",3,"icon","ngbPopover","placement",4,"ngIf"],["data-fa-transform","down-8","aria-hidden","true",3,"icon","rotate"],["aria-hidden","true",3,"icon"],["role","tooltip","tabindex","0",1,"visible-xs-inline-block","visible-sm-inline-block","context-help","pl-2","tooltipIcon",3,"icon","ngbPopover","placement"],["tabindex","0",4,"ngFor","ngForOf"],["tabindex","0"],["role","row",3,"ngClass",4,"ngFor","ngForOf"],["role","row",3,"ngClass"],[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],[3,"innerHtml",4,"ngIf"],[3,"innerHtml"],[3,"ngClass",4,"ngFor","ngForOf"],["id","paging-component"],["aria-label","Pagination",3,"page","pageSize","collectionSize","boundaryLinks","directionLinks","ellipses","maxSize","pageChange"]],template:function(e,t){if(1&e&&(js(0,BF,4,1,"div",0),Js(1,"div",1),Js(2,"table",2),Js(3,"caption"),Da(4),Ys(),Js(5,"thead"),Js(6,"tr"),js(7,TF,8,9,"th",3),Ys(),Ys(),js(8,MF,2,1,"tbody",0),js(9,WF,3,5,"tbody",0),Ys(),js(10,XF,5,10,"div",4),Ys()),2&e){let e;Ws("ngIf",(null==(e=t.geographicAreaService.dynamicGeoGraphicAreas.get(t.querySide))?null:e.length)>1),uo(1),Ws("ngClass",MA(8,JF,!0===t.tableResponsive)),uo(1),ua("summary",t.tableTitle),uo(2),La(" ",t.tableTitle," "),uo(3),Ws("ngForOf",t.headers),uo(1),Ws("ngIf",!t.paging),uo(1),Ws("ngIf",t.paging),uo(1),Ws("ngIf",t.paging)}},directives:[Su,Fu,Tu,hF,qE,Hb,Ou,Lu,Iu,Qb],pipes:[Ku],styles:[".tooltipIcon[_ngcontent-%COMP%]{color:#0050cb}"]}),e})();function $F(e,t){if(1&e){const e=ta();Js(0,"div"),Js(1,"div",2),Js(2,"div",3),Js(3,"button",4),ia("click",function(){return Ot(e),aa().panelController.editDataOptions()}),$s(4,"fa-icon",5),Da(5),Ys(),Ys(),$s(6,"div",6),Ys(),Js(7,"div",7),$s(8,"fa-icon",5),Da(9,"\xa0No results found. "),Ys(),Ys()}if(2&e){const e=aa();uo(3),ua("title",e.panelController.editDataOptionsText()),uo(1),Ws("icon",e.faCogs),uo(1),La("\xa0",e.panelController.editDataOptionsText(),""),uo(3),Ws("icon",e.faExclamationTriangle)}}function ZF(e,t){if(1&e){const e=ta();Js(0,"div"),Js(1,"div"),Js(2,"div",8),Js(3,"button",9),ia("click",function(){return Ot(e),aa().panelController.editDataOptions()}),$s(4,"fa-icon",10),Da(5),Ys(),$s(6,"download",11),Ys(),$s(7,"div",6),Ys(),$s(8,"mi-header",12),$s(9,"mi-table",13),Ys()}if(2&e){const e=aa();uo(3),ua("title",e.panelController.editDataOptionsText()),uo(1),Ws("icon",e.faCogs),uo(1),La("\xa0",e.panelController.editDataOptionsText(),""),uo(1),Ws("queryResult",e.queryResult)("selectedTab",e.panelController.selectedTab),uo(2),Ws("displayTitle",null==e.queryResult||null==e.queryResult.measure?null:e.queryResult.measure.titleWithQuery)("panelSide",e.panelController.panelSide)("tab","Table")("showTitle",!0),uo(1),Ws("tableId",e.panelController.panelSide+"miTableDisplay")("querySide",e.querySide)("paging",!0)("pageSize",25)("theadConfig",e.theadConfig)("tableResponsive",!0)("headers",null==e.queryResult||null==e.queryResult.results?null:e.queryResult.results.headers)("data",null==e.queryResult||null==e.queryResult.results?null:e.queryResult.results.data)("tableCaption",null==e.queryResult||null==e.queryResult.measure?null:e.queryResult.measure.description)("displayTypeName",null==e.queryResult||null==e.queryResult.measure?null:e.queryResult.measure.displayTypeName)("emptyValueLabel",null==e.queryResult||null==e.queryResult.measure?null:e.queryResult.measure.emptyValueLabel)}}function ex(e,t){if(1&e&&(Js(0,"div"),Js(1,"div",14),$s(2,"fa-icon",5),Da(3,"\xa0Run a query to view tabular data. "),Ys(),Ys()),2&e){const e=aa();uo(2),Ws("icon",e.faInfoCircle)}}function tx(e,t){if(1&e&&(Js(0,"div"),$s(1,"div",15),Ys()),2&e){const e=aa();uo(1),Ws("innerHTML",e.panelController.footnotes,ai)}}let nx=(()=>{class e{constructor(e,t,n){this.dataService=e,this.changeDetectorRef=t,this.applicationRef=n,this.querySide="",this.emptyValueLabel="",this.faCogs=Fp,this.faExclamationTriangle=Mp,this.faInfoCircle=yp,this.tableConfig={tableEnabled:null,errorList:null},this.theadConfig={responsiveContainer:e=>e.closest(".table-responsive"),position:"absolute",enableAria:!0,autoReflow:!0}}ngAfterViewInit(){this.tableConfig={tableEnabled:!0,errorList:[]},this.queryResult=this.queryResult&&0===Object.keys(this.queryResult).length?null:this.queryResult}clearTableData(){this.tableConfig={tableEnabled:null,errorList:[]},this.headers=null,this.data=null,this.tableTitle=null,this.tableCaption=null,this.displayTypeName=null}dataError(){this.tableConfig={tableEnabled:!1,errorList:["An unknown error occurred while processing your query. Wait a few seconds, then try your query again. If the error persists, try again at a later time."]}}queryFailure(){this.clearTableData(),this.dataError()}}return e.\u0275fac=function(t){return new(t||e)(zs(D_),zs(hA),zs(au))},e.\u0275cmp=Ge({type:e,selectors:[["mi-table-display"]],inputs:{panelController:"panelController",queryResult:"queryResult",querySide:"querySide",emptyValueLabel:"emptyValueLabel"},decls:6,vars:5,consts:[[3,"id"],[4,"ngIf"],[1,"bottomMargin"],[1,"pull-left"],["type","button",1,"btn","btn-primary",3,"title","click"],["aria-hidden","true",3,"icon"],["aria-hidden","true",1,"clearfix"],["role","alert","tabindex","0",1,"alert","alert-warning"],[1,"pull-left","btn-group","data-options-buttons"],["type","button",1,"btn","btn-primary","data-option-button",3,"title","click"],["aria-hidden","true",1,"button-icon",3,"icon"],[1,"download-element",3,"queryResult","selectedTab"],["tabindex","0",3,"displayTitle","panelSide","tab","showTitle"],[2,"height","85vh",3,"tableId","querySide","paging","pageSize","theadConfig","tableResponsive","headers","data","tableCaption","displayTypeName","emptyValueLabel"],["role","alert","tabindex","0",1,"row","alert","alert-info"],["ng-bind-html","panelController.footnotes",1,"footnotes",3,"innerHTML"]],template:function(e,t){1&e&&(Js(0,"div",0),Js(1,"div"),js(2,$F,10,4,"div",1),js(3,ZF,10,20,"div",1),Ys(),js(4,ex,4,1,"div",1),js(5,tx,2,1,"div",1),Ys()),2&e&&(Ws("id",t.panelController.panelSide+"TableTab"),uo(2),Ws("ngIf",(null==t.queryResult||null==t.queryResult.results?null:t.queryResult.results.data)&&(null==t.queryResult||null==t.queryResult.results||null==t.queryResult.results.data?null:t.queryResult.results.data.length)<1),uo(1),Ws("ngIf",t.queryResult&&(null==t.queryResult||null==t.queryResult.results||null==t.queryResult.results.data?null:t.queryResult.results.data.length)>0),uo(1),Ws("ngIf",!(null!=t.queryResult&&null!=t.queryResult.results&&t.queryResult.results.data)),uo(1),Ws("ngIf",t.panelController.footnotes&&t.panelController.footnotes.length>0&&!0===t.tableConfig.tableEnabled&&(null==t.data?null:t.data.length)>0))},directives:[Su,qE,wF,bF,YF],styles:[""]}),e})();class rx{constructor(e,t){this.dueTime=e,this.scheduler=t}call(e,t){return t.subscribe(new ix(e,this.dueTime,this.scheduler))}}class ix extends f{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(ox,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 ox(e){e.debouncedNext()}const sx=["*"];var ax=(()=>(function(e){e.AnnotationChart="AnnotationChart",e.AreaChart="AreaChart",e.Bar="Bar",e.BarChart="BarChart",e.BubbleChart="BubbleChart",e.Calendar="Calendar",e.CandlestickChart="CandlestickChart",e.ColumnChart="ColumnChart",e.ComboChart="ComboChart",e.PieChart="PieChart",e.Gantt="Gantt",e.Gauge="Gauge",e.GeoChart="GeoChart",e.Histogram="Histogram",e.Line="Line",e.LineChart="LineChart",e.Map="Map",e.OrgChart="OrgChart",e.Sankey="Sankey",e.Scatter="Scatter",e.ScatterChart="ScatterChart",e.SteppedAreaChart="SteppedAreaChart",e.Table="Table",e.Timeline="Timeline",e.TreeMap="TreeMap",e.WordTree="wordtree"}(ax||(ax={})),ax))();const lx={[ax.AnnotationChart]:"annotationchart",[ax.AreaChart]:"corechart",[ax.Bar]:"bar",[ax.BarChart]:"corechart",[ax.BubbleChart]:"corechart",[ax.Calendar]:"calendar",[ax.CandlestickChart]:"corechart",[ax.ColumnChart]:"corechart",[ax.ComboChart]:"corechart",[ax.PieChart]:"corechart",[ax.Gantt]:"gantt",[ax.Gauge]:"gauge",[ax.GeoChart]:"geochart",[ax.Histogram]:"corechart",[ax.Line]:"line",[ax.LineChart]:"corechart",[ax.Map]:"map",[ax.OrgChart]:"orgchart",[ax.Sankey]:"sankey",[ax.Scatter]:"scatter",[ax.ScatterChart]:"corechart",[ax.SteppedAreaChart]:"corechart",[ax.Table]:"table",[ax.Timeline]:"timeline",[ax.TreeMap]:"treemap",[ax.WordTree]:"wordtree"},Ax=new Zn("GOOGLE_CHARTS_CONFIG"),cx=new Zn("GOOGLE_CHARTS_LAZY_CONFIG",{providedIn:"root",factory:()=>{const e=gr(Ax,Ce.Optional);return Td(Object.assign(Object.assign({},{version:"current",safeMode:!1}),e||{}))}});let ux=(()=>{class e{constructor(e,t,n){this.zone=e,this.localeId=t,this.config$=n,this.scriptSource="https://www.gstatic.com/charts/loader.js",this.scriptLoadSubject=new E}isGoogleChartsAvailable(){return"undefined"!=typeof google&&void 0!==google.charts}loadChartPackages(...e){return this.loadGoogleCharts().pipe(N(()=>this.config$),x(e=>Object.assign(Object.assign({},{version:"current",safeMode:!1}),e||{})),hw(t=>new w(n=>{google.charts.load(t.version,{packages:e,language:this.localeId,mapsApiKey:t.mapsApiKey,safeMode:t.safeMode}),google.charts.setOnLoadCallback(()=>{this.zone.run(()=>{n.next(),n.complete()})})})))}loadGoogleCharts(){if(this.isGoogleChartsAvailable())return Td(null);if(!this.isLoadingGoogleCharts()){const e=this.createGoogleChartsScript();e.onload=()=>{this.zone.run(()=>{this.scriptLoadSubject.next(),this.scriptLoadSubject.complete()})},e.onerror=()=>{this.zone.run(()=>{console.error("Failed to load the google charts script!"),this.scriptLoadSubject.error(new Error("Failed to load the google charts script!"))})}}return this.scriptLoadSubject.asObservable()}isLoadingGoogleCharts(){return null!=this.getGoogleChartsScript()}getGoogleChartsScript(){return Array.from(document.getElementsByTagName("script")).find(e=>e.src===this.scriptSource)}createGoogleChartsScript(){const e=document.createElement("script");return e.type="text/javascript",e.src=this.scriptSource,e.async=!0,document.getElementsByTagName("head")[0].appendChild(e),e}}return e.\u0275fac=function(t){return new(t||e)(fr(Kc),fr(Sc),fr(cx))},e.\u0275prov=de({token:e,factory:e.\u0275fac}),e})(),hx=(()=>{class e{create(e,t,n){if(null==e)return;let r=!0;null!=t&&(r=!1);const i=google.visualization.arrayToDataTable(this.getDataAsTable(e,t),r);return n&&this.applyFormatters(i,n),i}getDataAsTable(e,t){return t?[t,...e]:e}applyFormatters(e,t){for(const n of t)n.formatter.format(e,n.colIndex)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=de({factory:function(){return new e},token:e,providedIn:"root"}),e})(),dx=(()=>{class e{constructor(e){this.loaderService=e,this.error=new $A,this.ready=new $A,this.stateChange=new $A,this.id="_"+Math.random().toString(36).substr(2,9),this.wrapperReadySubject=new T_(1)}get wrapperReady$(){return this.wrapperReadySubject.asObservable()}get controlWrapper(){if(!this._controlWrapper)throw new Error("Cannot access the control wrapper before it being initialized.");return this._controlWrapper}ngOnInit(){this.loaderService.loadChartPackages("controls").subscribe(()=>{this.createControlWrapper()})}ngOnChanges(e){this._controlWrapper&&(e.type&&this._controlWrapper.setControlType(this.type),e.options&&this._controlWrapper.setOptions(this.options||{}),e.state&&this._controlWrapper.setState(this.state||{}))}createControlWrapper(){this._controlWrapper=new google.visualization.ControlWrapper({containerId:this.id,controlType:this.type,state:this.state,options:this.options}),this.addEventListeners(),this.wrapperReadySubject.next(this._controlWrapper)}addEventListeners(){google.visualization.events.removeAllListeners(this._controlWrapper),google.visualization.events.addListener(this._controlWrapper,"ready",e=>this.ready.emit(e)),google.visualization.events.addListener(this._controlWrapper,"error",e=>this.error.emit(e)),google.visualization.events.addListener(this._controlWrapper,"statechange",e=>this.stateChange.emit(e))}}return e.\u0275fac=function(t){return new(t||e)(zs(ux))},e.\u0275cmp=Ge({type:e,selectors:[["control-wrapper"]],hostAttrs:[1,"control-wrapper"],hostVars:1,hostBindings:function(e,t){2&e&&Ma("id",t.id)},inputs:{for:"for",type:"type",options:"options",state:"state"},outputs:{error:"error",ready:"ready",stateChange:"stateChange"},exportAs:["controlWrapper"],features:[ct],decls:0,vars:0,template:function(e,t){},encapsulation:2,changeDetection:0}),e})(),px=(()=>{class e{constructor(e,t,n){this.element=e,this.loaderService=t,this.dataTableService=n,this.ready=new $A,this.error=new $A,this.initialized=!1}ngOnInit(){this.loaderService.loadChartPackages("controls").subscribe(()=>{this.dataTable=this.dataTableService.create(this.data,this.columns,this.formatters),this.createDashboard(),this.initialized=!0})}ngOnChanges(e){this.initialized&&(e.data||e.columns||e.formatters)&&(this.dataTable=this.dataTableService.create(this.data,this.columns,this.formatters),this.dashboard.draw(this.dataTable))}createDashboard(){const e=this.controlWrappers.map(e=>e.wrapperReady$),t=this.controlWrappers.map(e=>e.for).map(e=>Array.isArray(e)?zy(e.map(e=>e.wrapperReady$)):e.wrapperReady$);zy([...e,...t]).subscribe(()=>{this.dashboard=new google.visualization.Dashboard(this.element.nativeElement),this.initializeBindings(),this.registerEvents(),this.dashboard.draw(this.dataTable)})}registerEvents(){google.visualization.events.removeAllListeners(this.dashboard);const e=(e,t,n)=>{google.visualization.events.addListener(e,t,n)};e(this.dashboard,"ready",()=>this.ready.emit()),e(this.dashboard,"error",e=>this.error.emit(e))}initializeBindings(){this.controlWrappers.forEach(e=>{if(Array.isArray(e.for)){const t=e.for.map(e=>e.chartWrapper);this.dashboard.bind(e.controlWrapper,t)}else this.dashboard.bind(e.controlWrapper,e.for.chartWrapper)})}}return e.\u0275fac=function(t){return new(t||e)(zs(Nl),zs(ux),zs(hx))},e.\u0275cmp=Ge({type:e,selectors:[["dashboard"]],contentQueries:function(e,t,n){if(1&e&&hc(n,dx,4),2&e){let e;cc(e=dc())&&(t.controlWrappers=e)}},hostAttrs:[1,"dashboard"],inputs:{data:"data",columns:"columns",formatters:"formatters"},outputs:{ready:"ready",error:"error"},exportAs:["dashboard"],features:[ct],ngContentSelectors:sx,decls:1,vars:0,template:function(e,t){1&e&&(Aa(),ca(0))},encapsulation:2,changeDetection:0}),e})(),fx=(()=>{class e{constructor(e,t,n,r){this.element=e,this.scriptLoaderService=t,this.dataTableService=n,this.dashboard=r,this.options={},this.dynamicResize=!1,this.ready=new $A,this.error=new $A,this.select=new $A,this.mouseover=new $A,this.mouseleave=new $A,this.wrapperReadySubject=new T_(1),this.initialized=!1,this.eventListeners=new Map}get chart(){return this.chartWrapper.getChart()}get wrapperReady$(){return this.wrapperReadySubject.asObservable()}get chartWrapper(){if(!this.wrapper)throw new Error("Trying to access the chart wrapper before it was fully initialized");return this.wrapper}set chartWrapper(e){this.wrapper=e,this.drawChart()}ngOnInit(){var e;this.scriptLoaderService.loadChartPackages((e=this.type,lx[e])).subscribe(()=>{this.dataTable=this.dataTableService.create(this.data,this.columns,this.formatters),this.wrapper=new google.visualization.ChartWrapper({container:this.element.nativeElement,chartType:this.type,dataTable:this.dataTable,options:this.mergeOptions()}),this.registerChartEvents(),this.wrapperReadySubject.next(this.wrapper),this.initialized=!0,this.drawChart()})}ngOnChanges(e){if(e.dynamicResize&&this.updateResizeListener(),this.initialized){let t=!1;(e.data||e.columns||e.formatters)&&(this.dataTable=this.dataTableService.create(this.data,this.columns,this.formatters),this.wrapper.setDataTable(this.dataTable),t=!0),e.type&&(this.wrapper.setChartType(this.type),t=!0),(e.options||e.width||e.height||e.title)&&(this.wrapper.setOptions(this.mergeOptions()),t=!0),t&&this.drawChart()}}ngOnDestroy(){this.unsubscribeToResizeIfSubscribed()}addEventListener(e,t){const n=this.registerChartEvent(this.chart,e,t);return this.eventListeners.set(n,{eventName:e,callback:t,handle:n}),n}removeEventListener(e){const t=this.eventListeners.get(e);t&&(google.visualization.events.removeListener(t.handle),this.eventListeners.delete(e))}updateResizeListener(){this.unsubscribeToResizeIfSubscribed(),this.dynamicResize&&(this.resizeSubscription=ky(window,"resize",{passive:!0}).pipe(function(e,t=Hy){return n=>n.lift(new rx(e,t))}(100)).subscribe(()=>{this.initialized&&this.drawChart()}))}unsubscribeToResizeIfSubscribed(){null!=this.resizeSubscription&&(this.resizeSubscription.unsubscribe(),this.resizeSubscription=void 0)}mergeOptions(){return Object.assign({title:this.title,width:this.width,height:this.height},this.options)}registerChartEvents(){google.visualization.events.removeAllListeners(this.wrapper),this.registerChartEvent(this.wrapper,"ready",()=>{google.visualization.events.removeAllListeners(this.chart),this.registerChartEvent(this.chart,"onmouseover",e=>this.mouseover.emit(e)),this.registerChartEvent(this.chart,"onmouseout",e=>this.mouseleave.emit(e)),this.registerChartEvent(this.chart,"select",()=>{const e=this.chart.getSelection();this.select.emit({selection:e})}),this.eventListeners.forEach(e=>e.handle=this.registerChartEvent(this.chart,e.eventName,e.callback)),this.ready.emit({chart:this.chart})}),this.registerChartEvent(this.wrapper,"error",e=>this.error.emit(e))}registerChartEvent(e,t,n){return google.visualization.events.addListener(e,t,n)}drawChart(){null==this.dashboard&&this.wrapper.draw()}}return e.\u0275fac=function(t){return new(t||e)(zs(Nl),zs(ux),zs(hx),zs(px,8))},e.\u0275cmp=Ge({type:e,selectors:[["google-chart"]],hostAttrs:[1,"google-chart"],inputs:{options:"options",dynamicResize:"dynamicResize",type:"type",data:"data",columns:"columns",title:"title",width:"width",height:"height",formatters:"formatters"},outputs:{ready:"ready",error:"error",select:"select",mouseover:"mouseover",mouseleave:"mouseleave"},exportAs:["googleChart"],features:[ct],decls:0,vars:0,template:function(e,t){},styles:["[_nghost-%COMP%] { width: fit-content; display: block; }"],changeDetection:0}),e})(),gx=(()=>{class e{static forRoot(t={}){return{ngModule:e,providers:[{provide:Ax,useValue:t}]}}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=We({type:e}),e.\u0275inj=pe({providers:[ux]}),e})();const mx=["chart"];function yx(e,t){if(1&e){const e=ta();Js(0,"div",8),Js(1,"select-list",9),ia("selectedChange",function(t){return Ot(e),aa().geographicArea.selected=t})("handleChanged",function(t){return Ot(e),aa().handleGeographicAreaChange(t)}),Ys(),Ys()}if(2&e){const e=aa();uo(1),ha("id","",e.side,"-chart-geographic-area"),Ws("list",e.geographicArea.options)("required",!0)("label",e.geographicArea.label)("selected",e.geographicArea.selected)}}function wx(e,t){if(1&e){const e=ta();Js(0,"div",8),Js(1,"select-list",10),ia("selectedChange",function(t){return Ot(e),aa().timeConceptOne.selected=t})("handleChanged",function(t){return Ot(e),aa().handleTimeConceptOneChange(t)}),Ys(),Ys()}if(2&e){const e=aa();uo(1),ha("id","",e.side,"-chart-time-concept-one"),Ws("list",e.timeConceptOne.options)("singleSelection",!0)("required",!0)("label",e.timeConceptOne.label)("selected",e.timeConceptOne.selected)}}function vx(e,t){if(1&e){const e=ta();Js(0,"div",8),Js(1,"select-list",10),ia("selectedChange",function(t){return Ot(e),aa().timeConceptTwo.selected=t})("handleChanged",function(t){return Ot(e),aa().handleTimeConceptTwoChange(t)}),Ys(),Ys()}if(2&e){const e=aa();uo(1),ha("id","",e.side,"-chart-time-concept-two"),Ws("list",e.timeConceptTwo.options)("singleSelection",!0)("required",!0)("label",e.timeConceptTwo.label)("selected",e.timeConceptTwo.selected)}}function bx(e,t){if(1&e){const e=ta();Js(0,"div",8),Js(1,"select-list",11),ia("selectedChange",function(t){return Ot(e).$implicit.output=t})("handleChanged",function(){const t=Ot(e).$implicit;return aa().handleOtherFilterChange(t)})("handleDropDownClose",function(t){return Ot(e),aa().handleDropDownClose.emit(t)}),Ys(),Ys()}if(2&e){const e=t.$implicit,n=aa();uo(1),da("id","",n.side,"-chart-",e.label,""),Ws("list",e.input)("required",!0)("label",e.label)("selected",e.output)}}function Cx(e,t){if(1&e&&(Js(0,"div",12),$s(1,"fa-icon",13),Da(2," \xa0Your combination of filters produces no data. Try another combination.\n"),Ys()),2&e){const e=aa();uo(1),Ws("icon",e.faWarning)}}function Bx(e,t){if(1&e&&(Js(0,"div"),$s(1,"google-chart",14,15),Ys()),2&e){const e=aa();uo(1),Ws("type",e.ChartType.PieChart)("data",e.data)("columns",e.columns)("options",e.options)("dynamicResize",!0)}}let Ex=(()=>{class e{constructor(){this.side="",this.otherFilterSelections=[],this.otherFilterSelectionsChange=new $A,this.geographicAreaChange=new $A,this.timeConceptOneChange=new $A,this.timeConceptTwoChange=new $A,this.handleChanged=new $A,this.handleDropDownClose=new $A,this.faWarning=Rp,this.ChartType=ax}handleOtherFilterChange(e){this.otherFilterSelectionsChange.emit(this.otherFilterSelections),setTimeout(()=>{this.handleChanged.emit(this.otherFilterSelections)})}handleGeographicAreaChange(e){this.geographicAreaChange.emit(this.geographicArea),setTimeout(()=>{this.handleChanged.emit(this.geographicArea)})}handleTimeConceptOneChange(e){this.timeConceptOneChange.emit(this.timeConceptOne),setTimeout(()=>{this.handleChanged.emit(this.timeConceptOne)})}handleTimeConceptTwoChange(e){this.timeConceptTwoChange.emit(this.timeConceptTwo),setTimeout(()=>{this.handleChanged.emit(this.timeConceptTwo)})}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=Ge({type:e,selectors:[["mi-pi-chart"]],viewQuery:function(e,t){if(1&e&&uc(mx,5),2&e){let e;cc(e=dc())&&(t.chart=e.first)}},inputs:{data:"data",columns:"columns",options:"options",chartConfig:"chartConfig",side:"side",otherFilterSelections:"otherFilterSelections",geographicArea:"geographicArea",timeConceptOne:"timeConceptOne",timeConceptTwo:"timeConceptTwo"},outputs:{otherFilterSelectionsChange:"otherFilterSelectionsChange",geographicAreaChange:"geographicAreaChange",timeConceptOneChange:"timeConceptOneChange",timeConceptTwoChange:"timeConceptTwoChange",handleChanged:"handleChanged",handleDropDownClose:"handleDropDownClose"},decls:9,vars:6,consts:[[1,"chart-other-filter-bar"],[1,"row"],["class","col-lg-3 col-md-6 col-sm-6 col-12 ",4,"ngIf"],["class","col-lg-3 col-md-6 col-sm-6 col-12",4,"ngIf"],["class","col-lg-3 col-md-6 col-sm-6 col-12",4,"ngFor","ngForOf"],[1,"clearfix"],["class","alert alert-warning no-data-warning col-12 pb-2",4,"ngIf"],[4,"ngIf"],[1,"col-lg-3","col-md-6","col-sm-6","col-12"],["placeholder","Nothing Selected",3,"id","list","required","label","selected","selectedChange","handleChanged"],["placeholder","Nothing Selected",3,"id","list","singleSelection","required","label","selected","selectedChange","handleChanged"],["placeholder","Nothing Selected",3,"id","list","required","label","selected","selectedChange","handleChanged","handleDropDownClose"],[1,"alert","alert-warning","no-data-warning","col-12","pb-2"],["aria-hidden","true",3,"icon"],[2,"width","75%","margin-left","auto",3,"type","data","columns","options","dynamicResize"],["chart",""]],template:function(e,t){1&e&&(Js(0,"div",0),Js(1,"div",1),js(2,yx,2,5,"div",2),js(3,wx,2,6,"div",3),js(4,vx,2,6,"div",3),js(5,bx,2,6,"div",4),$s(6,"div",5),Ys(),Ys(),js(7,Cx,3,1,"div",6),js(8,Bx,3,5,"div",7)),2&e&&(uo(2),Ws("ngIf",(null==t.geographicArea||null==t.geographicArea.options?null:t.geographicArea.options.length)>1),uo(1),Ws("ngIf",(null==t.timeConceptOne||null==t.timeConceptOne.options?null:t.timeConceptOne.options.length)>0),uo(1),Ws("ngIf",(null==t.timeConceptTwo||null==t.timeConceptTwo.options?null:t.timeConceptTwo.options.length)>0),uo(1),Ws("ngForOf",t.otherFilterSelections),uo(2),Ws("ngIf",t.chartConfig.noFilteredPieData),uo(1),Ws("ngIf",!t.chartConfig.noFilteredPieData))},directives:[Su,Tu,hF,qE,fx],styles:[""],encapsulation:2,changeDetection:0}),e})();const _x=["chart"],Fx=["piChart"];function xx(e,t){1&e&&$s(0,"span",6)}function Tx(e,t){if(1&e&&(Js(0,"div"),Js(1,"div",7),$s(2,"fa-icon",8),Da(3,"\xa0Run a query to view charts "),Ys(),Ys()),2&e){const e=aa();uo(2),Ws("icon",e.faInfoCircle)}}function Qx(e,t){if(1&e&&(Js(0,"div"),Js(1,"div",7),$s(2,"fa-icon",8),Da(3,"\xa0Charts have been disabled for this measure "),Ys(),Ys()),2&e){const e=aa(2);uo(2),Ws("icon",e.faInfoCircle)}}function Sx(e,t){if(1&e){const e=ta();Js(0,"div"),Js(1,"div",25),Js(2,"div",26),Js(3,"button",27),ia("click",function(){return Ot(e),aa(2).panelController.editDataOptions()}),$s(4,"fa-icon",8),Da(5),Ys(),Ys(),$s(6,"div",28),Ys(),Js(7,"div",29),$s(8,"fa-icon",8),Da(9,"\xa0No results found. "),Ys(),Ys()}if(2&e){const e=aa(2);uo(3),ua("title",e.panelController.editDataOptionsText()),uo(1),Ws("icon",e.faCogs),uo(1),La(" \xa0",e.panelController.editDataOptionsText()," "),uo(3),Ws("icon",e.faExclamationTriangle)}}function kx(e,t){if(1&e&&$s(0,"download",30),2&e){const e=aa(2);Ws("selectedTab",e.panelController.selectedTab)("queryResult",e.queryResult)}}function Ux(e,t){if(1&e&&(Js(0,"a",31),$s(1,"i",32),Da(2,"\xa0Save"),Ys()),2&e){const e=aa(2);ba("disabled",e.chartConfig.noData),ua("href",e.chartConfig.imageUri,li)}}function Dx(e,t){if(1&e){const e=ta();Js(0,"div",33),Js(1,"button",34),ia("click",function(){Ot(e);const t=aa(2);return t.switchChartType(t.ChartType.BarChart)}),$s(2,"fa-icon",8),Ys(),Js(3,"button",35),ia("click",function(){Ot(e);const t=aa(2);return t.switchChartType(t.ChartType.LineChart)}),$s(4,"fa-icon",8),Ys(),Js(5,"button",36),ia("click",function(){Ot(e);const t=aa(2);return t.switchChartType(t.ChartType.PieChart)}),$s(6,"fa-icon",8),Ys(),Ys()}if(2&e){const e=aa(2);uo(1),Gs("aria-label","",e.panelController.panelSide," side Switch to Bar Chart"),Ws("disabled",e.chartConfig.chartType===e.ChartType.BarChart),uo(1),Ws("icon",e.faBarChart),uo(1),Gs("aria-label","",e.panelController.panelSide," side Switch to Line Chart"),Ws("disabled",e.chartConfig.chartType===e.ChartType.LineChart),uo(1),Ws("icon",e.faLineChart),uo(1),Gs("aria-label","",e.panelController.panelSide," side Switch to Pie Chart"),Ws("disabled",e.chartConfig.chartType===e.ChartType.PieChart),uo(1),Ws("icon",e.faPieChart)}}function Ox(e,t){if(1&e){const e=ta();Js(0,"div",43),Js(1,"select-list",44),ia("ngModelChange",function(t){return Ot(e),aa(3).selectedGroupings=t})("handleChanged",function(){return Ot(e),aa(3).handleGroupingChange()}),Ys(),Ys()}if(2&e){const e=aa(3);uo(1),ha("id","",e.panelController.panelSide,"-chart-geographic-group"),Ws("required",!0)("label",e.measure.geographicGroupingTitle)("list",e.geographicTypeGroupings)("singleSelection",!0)("ngModel",e.selectedGroupings)}}function Lx(e,t){if(1&e){const e=ta();Js(0,"div",43),Js(1,"select-list",45),ia("selectedChange",function(t){return Ot(e),aa(3).geographicArea.selected=t})("handleChanged",function(){return Ot(e),aa(3).handleDataChange()}),Ys(),Ys()}if(2&e){const e=aa(3);uo(1),ha("id","",e.panelController.panelSide,"-chart-geographic-area"),Ws("list",e.geographicArea.options)("required",!0)("label",e.geographicArea.label)("selected",e.geographicArea.selected)}}function Ix(e,t){if(1&e){const e=ta();Js(0,"div",43),Js(1,"select-list",46),ia("selectedChange",function(t){return Ot(e),aa(3).timeConceptOne.selected=t})("handleChanged",function(){return Ot(e),aa(3).handleDataChange()}),Ys(),Ys()}if(2&e){const e=aa(3);uo(1),ha("id","",e.panelController.panelSide,"-chart-time-concept-one"),Ws("list",e.timeConceptOne.options)("singleSelection",!0)("required",!0)("label",e.timeConceptOne.label)("selected",e.timeConceptOne.selected)}}function Hx(e,t){if(1&e){const e=ta();Js(0,"div",43),Js(1,"select-list",45),ia("selectedChange",function(t){return Ot(e),aa(3).timeConceptTwo.selected=t})("handleChanged",function(){return Ot(e),aa(3).handleDataChange()}),Ys(),Ys()}if(2&e){const e=aa(3);uo(1),ha("id","",e.panelController.panelSide,"-chart-time-concept-two"),Ws("list",e.timeConceptTwo.options)("required",!0)("label",e.timeConceptTwo.label)("selected",e.timeConceptTwo.selected)}}function Mx(e,t){if(1&e){const e=ta();Js(0,"div",43),Js(1,"select-list",47),ia("selectedChange",function(t){return Ot(e).$implicit.output=t})("handleChanged",function(){return Ot(e),aa(3).handleDataChange()})("handleDropDownClose",function(){return Ot(e),aa(3).selectFirstOptionIfUnselected()}),Ys(),Ys()}if(2&e){const e=t.$implicit,n=aa(3);uo(1),da("id","",n.panelController.panelSide,"-chart-",e.label,""),Ws("list",e.input)("required",!0)("label",e.label)("selected",e.output)}}function Rx(e,t){if(1&e&&(Js(0,"div",48),$s(1,"fa-icon",8),Da(2," \xa0Your combination of filters produces no data. Try another combination. "),Ys()),2&e){const e=aa(3);uo(1),Ws("icon",e.faWarning)}}function Nx(e,t){if(1&e&&(Js(0,"div"),$s(1,"google-chart",49,50),Ys()),2&e){const e=aa(3);uo(1),Ws("type",e.chartConfig.chartType)("data",e.chartConfig.chartType===e.ChartType.LineChart?e.lineDataArray:e.barDataArray)("columns",e.chartConfig.chartType===e.ChartType.LineChart?e.lineColumnNames:e.barColumnNames)("options",e.chartOptions)("dynamicResize",!0)}}function Px(e,t){if(1&e&&(Zs(0),Js(1,"div",37),Js(2,"div",38),js(3,Ox,2,6,"div",39),js(4,Lx,2,5,"div",40),js(5,Ix,2,6,"div",39),js(6,Hx,2,5,"div",39),js(7,Mx,2,6,"div",41),$s(8,"div",24),Ys(),Ys(),js(9,Rx,3,1,"div",42),js(10,Nx,3,5,"div",4),ea()),2&e){const e=aa(2);uo(3),Ws("ngIf",e.geographicTypeGroupings.length>0),uo(1),Ws("ngIf",e.geographicArea.options.length>1&&e.chartConfig.chartType!==e.ChartType.BarChart),uo(1),Ws("ngIf",e.timeConceptOne.options.length>0&&e.chartConfig.chartType!==e.ChartType.LineChart),uo(1),Ws("ngIf",e.timeConceptTwo.options.length>0&&e.chartConfig.chartType!==e.ChartType.LineChart),uo(1),Ws("ngForOf",e.otherFilterSelections),uo(2),Ws("ngIf",e.chartConfig.noFilteredBarData&&e.chartConfig.chartType===e.ChartType.BarChart||e.chartConfig.noFilteredLineData&&e.chartConfig.chartType===e.ChartType.LineChart),uo(1),Ws("ngIf",!(e.chartConfig.noFilteredBarData&&e.chartConfig.chartType===e.ChartType.BarChart||e.chartConfig.noFilteredLineData&&e.chartConfig.chartType===e.ChartType.LineChart))}}function Kx(e,t){if(1&e){const e=ta();Js(0,"mi-pi-chart",51,52),ia("otherFilterSelectionsChange",function(t){return Ot(e),aa(2).otherFilterSelections=t})("geographicAreaChange",function(t){return Ot(e),aa(2).geographicArea=t})("timeConceptOneChange",function(t){return Ot(e),aa(2).timeConceptOne=t})("timeConceptTwoChange",function(t){return Ot(e),aa(2).timeConceptTwo=t})("handleChanged",function(){return Ot(e),aa(2).handleDataChange()})("handleDropDownClose",function(){return Ot(e),aa(2).selectFirstOptionIfUnselected()}),Ys()}if(2&e){const e=aa(2);Ws("side",e.panelController.panelSide)("data",e.pieDataArray)("otherFilterSelections",e.otherFilterSelections)("geographicArea",e.geographicArea)("timeConceptOne",e.timeConceptOne)("timeConceptTwo",e.timeConceptTwo)("options",e.chartOptions)("chartConfig",e.chartConfig)("columns",e.pieColumnNames)}}function Vx(e,t){if(1&e&&(Js(0,"div"),$s(1,"div",53),Ys()),2&e){const e=aa(2);uo(1),Ws("innerHtml",e.panelController.footnotes,ai)}}function Gx(e,t){if(1&e){const e=ta();Js(0,"div",9),js(1,Qx,4,1,"div",4),js(2,Sx,10,4,"div",4),Js(3,"div"),Js(4,"div"),Js(5,"div",10),Js(6,"button",11),ia("click",function(){return Ot(e),aa().panelController.editDataOptions()}),$s(7,"fa-icon",12),Da(8),Ys(),js(9,kx,1,2,"download",13),Js(10,"button",14),ia("click",function(){return Ot(e),aa().saveImage()}),$s(11,"fa-icon",12),Da(12," \xa0Save Image "),Ys(),js(13,Ux,3,3,"a",15),Js(14,"div",16),Js(15,"div",17),Js(16,"button",18),Da(17,"Options "),$s(18,"span",19),Ys(),Js(19,"div",20),Js(20,"button",21),ia("click",function(){return Ot(e),aa().toggleLegend()}),Da(21),Ys(),Js(22,"button",21),ia("click",function(){return Ot(e),aa().toggleTitle()}),Da(23),Ys(),Js(24,"button",21),ia("click",function(){return Ot(e),aa().toggleAxisLabels()}),Da(25),Ys(),Ys(),Ys(),Ys(),Ys(),js(26,Dx,7,9,"div",22),Ys(),js(27,Px,11,7,"ng-container",4),js(28,Kx,2,9,"mi-pi-chart",23),Ys(),$s(29,"div",24),js(30,Vx,2,1,"div",4),Ys()}if(2&e){const e=aa();ua("id",e.panelController.panelSide+"ChartTab"),uo(1),Ws("ngIf",!1===e.chartConfig.chartEnabled),uo(1),Ws("ngIf",0===(null==e.data?null:e.data.length)&&(null==e.chartConfig?null:e.chartConfig.chartEnabled)),uo(4),ua("title",e.panelController.editDataOptionsText()),uo(1),Ws("icon",e.faCogs),uo(1),La(" \xa0",e.panelController.editDataOptionsText()," "),uo(1),Ws("ngIf",!0===e.panelController.isFileSaverSupported),uo(1),Ws("disabled",e.chartConfig.noData),uo(1),Ws("icon",e.faSave),uo(2),Ws("ngIf",!1===e.panelController.isFileSaverSupported&&e.data.length<=1e3),uo(1),Gs("aria-label","'Dropdown for ' + ",e.panelController.panelSide," + ' Chart Options'"),uo(2),ha("id","",e.panelController.panelSide," + 'ChartOptions'"),uo(3),Gs("aria-labelledby","",e.panelController.panelSide," + 'ChartOptions'"),uo(2),La(" ",!0===e.chartConfig.showLegend?"Hide":"Show"," Legend"),uo(2),La(" ",!0===e.chartConfig.showTitle?"Hide":"Show"," Title"),uo(2),La(" ",!0===e.chartConfig.showAxisLabels?"Hide":"Show"," Axis Labels"),uo(1),Ws("ngIf",e.chartConfig.ableToSwitchChartType),uo(1),Ws("ngIf",e.chartConfig.chartType!==e.ChartType.PieChart),uo(1),Ws("ngIf",e.chartConfig.chartType===e.ChartType.PieChart),uo(2),Ws("ngIf",e.panelController.footnotes&&e.panelController.footnotes.length>0&&!0===e.chartConfig.chartEnabled&&e.data.length>0)}}let jx=(()=>{class e{constructor(e,t){this.changeDetectorRef=e,this.websiteMetricService=t,this.queryResult=null,this.faInfoCircle=yp,this.faExclamationTriangle=Mp,this.faWarning=Rp,this.faCogs=Fp,this.faBarChart=cp,this.faSave=Ep,this.faLineChart=up,this.lineColumnNames=[],this.barColumnNames=[],this.pieColumnNames=[],this.showTitle=!0,this.showAxisLabels=!0,this.loading=!1,this.measure={showChart:!0,titleWithQuery:"",geographicGroupingTitle:"",cdcApiEndpoint:null},this.headers=[],this.chartOptions={},this.lineDataArray=[],this.barDataArray=[],this.pieDataArray=[],this.otherFilters={OtherFilter1Text:"",OtherFilter2Text:"",OtherFilter3Text:"",OtherFilter4Text:"",OtherFilter5Text:"",OtherFilter6Text:"",OtherFilter7Text:"",OtherFilter8Text:"",OtherFilter9Text:"",OtherFilter10Text:""},this.otherFilterSelections=[],this.timeConceptOne={options:[],selected:[],loading:!1,label:""},this.timeConceptTwo={options:[],selected:[],loading:!1,label:""},this.geographicArea={options:[],selected:[],loading:!1,label:""},this.data=[],this.barFilteredData=[],this.piFilteredData=[],this.lineFilteredData=[],this.selectedGroupings=[],this.geographicTypeGroupings=[],this.selectLabels={selectAll:"Select All",selectNone:"Deselect All",reset:"Reset",search:"Filter Selections Below",nothingSelected:"Nothing Selected"},this.title="",this.unmodifiedTitle="",this.ChartType=ax,this.chartConfig={chartType:ax.BarChart,chartEnabled:!0,errorList:[],showLegend:!0,showTitle:!0,showAxisLabels:!0,showValues:!0,imageUri:"",ableToSwitchChartType:!1,noFilteredBarData:!1,noFilteredPieData:!1,noFilteredLineData:!1,noData:!1,hasSidebar:!1},this.otherFilterSettings=[],this.faPieChart=hp}ngOnChanges(e){e.queryResult&&(this.activate(),this.setup(),this.changeDetectorRef.markForCheck())}ngOnInit(){this.queryResult=this.queryResult&&0===Object.keys(this.queryResult).length?null:this.queryResult,this.activate(),this.setup()}activate(){this.chartLoaded=google.charts.load("current",{packages:["corechart"]})}setup(){this.filterGeographicAreasDebounced=hm(()=>{this.filterGeographicAreas()},100),this.updateFilteredDataDebounced=hm(()=>{this.updateFilteredData()},200),this.queryResult&&this.panelController.panelSide===this.queryResult.panelSide&&this.queryHandler(this.queryResult)}handleGroupingChange(){this.updateFilteredDataDebounced(),this.filterGeographicAreasDebounced()}handleDataChange(){this.updateFilteredDataDebounced()}switchChartType(e){this.chartConfig.chartType=e||(this.chartConfig.chartType===ax.BarChart?ax.LineChart:ax.BarChart),this.updateOptions(null,null)}saveImage(){var e,t;this.websiteMetricService.createWebsiteMetricAction(new I_({Action:M_.SaveImage,Tab:this.panelController.selectedTab,Information:(null===(t=null===(e=this.queryResult)||void 0===e?void 0:e.measure)||void 0===t?void 0:t.titleWithQuery)+"-"+this.chartConfig.chartType})).subscribe();const n=this.chart?this.chart.chartWrapper.getChart().getImageURI():this.piChart.chart.chartWrapper.getChart().getImageURI();"data:,"===n||dF.saveAs(this.dataUriToBlob(n,"image/jpeg"),"mitracking-chart.jpg")}toggleLegend(){this.chartConfig.showLegend=!this.chartConfig.showLegend,this.updateOptions(null,null)}toggleTitle(){this.showTitle=!this.showTitle,this.updateOptions(null,this.showTitle),this.chartConfig.showTitle=!this.chartConfig.showTitle}toggleAxisLabels(){this.showAxisLabels=!this.showAxisLabels,this.updateOptions(null,null),this.chartConfig.showAxisLabels=!this.chartConfig.showAxisLabels}toggleValues(){this.chartConfig.showValues=!this.chartConfig.showValues,this.updateOptions(null,null)}selectFirstOptionIfUnselected(){this.otherFilterSelections.forEach(e=>{0===e.output.length&&(e.output=[e.input[0]])})}updateOptions(e,t){this.chartLoaded.then(()=>{this.chartConfig.hasSidebar=this.geographicTypeGroupings.length>0||this.otherFilterSelections.length>0,this.chartOptions=this.getOptions({chartType:this.chartConfig.chartType,chartHeaders:this.headers,printingChart:e,legendVisible:this.chartConfig.showLegend,showTitle:t})})}getDataArray(e,t){let n=Tm(this.headers,{ColumnType:"GeographicArea"}),r=Tm(this.headers,{ColumnType:"Value"}),i=Pm(this.headers,{ColumnType:"ExtraneousData"}),o=[];switch(e){case ax.BarChart:case ax.PieChart:{const e=em(t).groupBy(e=>e.GeographicAreaID).toArray().sortBy(e=>e[0].GeographicAreaID).value();let s=[],a=!0,l=null;const A={};Qm(t,(e,t)=>{A[e.TimePeriod1Text+"|"+e.TimePeriod2Text+"|"+e.OtherFilter1Text+"|"+e.OtherFilter2Text+"|"+e.OtherFilter3Text+"|"+e.OtherFilter4Text+"|"+e.OtherFilter5Text+"|"+e.OtherFilter6Text+"|"+e.OtherFilter7Text+"|"+e.OtherFilter8Text+"|"+e.OtherFilter9Text+"|"+e.OtherFilter10Text+"|"]=t}),Qm(Object.keys(A),e=>{let n=t[A[e]];s.push({timePeriod1:n.TimePeriod1Text,timePeriod2:n.TimePeriod2Text,otherFilter1:n.OtherFilter1Text,otherFilter2:n.OtherFilter2Text,otherFilter3:n.OtherFilter3Text,otherFilter4:n.OtherFilter4Text,otherFilter5:n.OtherFilter5Text,otherFilter6:n.OtherFilter6Text,otherFilter7:n.OtherFilter7Text,otherFilter8:n.OtherFilter8Text,otherFilter9:n.OtherFilter9Text,otherFilter10:n.OtherFilter10Text}),null===l?l=n.TimePeriod1Text:l&&l!==n.timePeriod1&&(a=!1)}),s=em(s).sortBy(e=>this.otherFilters.OtherFilter10Text?this.otherFilters.OtherFilter10Text.indexOf(e.otherFilter10):-1).sortBy(e=>this.otherFilters.OtherFilter9Text?this.otherFilters.OtherFilter9Text.indexOf(e.otherFilter9):-1).sortBy(e=>this.otherFilters.OtherFilter8Text?this.otherFilters.OtherFilter8Text.indexOf(e.otherFilter8):-1).sortBy(e=>this.otherFilters.OtherFilter7Text?this.otherFilters.OtherFilter7Text.indexOf(e.otherFilter7):-1).sortBy(e=>this.otherFilters.OtherFilter6Text?this.otherFilters.OtherFilter6Text.indexOf(e.otherFilter6):-1).sortBy(e=>this.otherFilters.OtherFilter5Text?this.otherFilters.OtherFilter5Text.indexOf(e.otherFilter5):-1).sortBy(e=>this.otherFilters.OtherFilter4Text?this.otherFilters.OtherFilter4Text.indexOf(e.otherFilter4):-1).sortBy(e=>this.otherFilters.OtherFilter3Text?this.otherFilters.OtherFilter3Text.indexOf(e.otherFilter3):-1).sortBy(e=>this.otherFilters.OtherFilter2Text?this.otherFilters.OtherFilter2Text.indexOf(e.otherFilter2):-1).sortBy(e=>this.otherFilters.OtherFilter1Text?this.otherFilters.OtherFilter1Text.indexOf(e.otherFilter1):-1).sortBy("timePeriod2").sortBy("timePeriod1").value(),Sm(e,e=>{if(e.length!==s.length)for(let t=0;t<s.length;t++)e[t]&&e[t].TimePeriod1Text===s[t].timePeriod1&&e[t].TimePeriod2Text===s[t].timePeriod2&&e[t].OtherFilter1Text===s[t].otherFilter1&&e[t].OtherFilter2Text===s[t].otherFilter2&&e[t].OtherFilter3Text===s[t].otherFilter3&&e[t].OtherFilter4Text===s[t].otherFilter4&&e[t].OtherFilter5Text===s[t].otherFilter5&&e[t].OtherFilter6Text===s[t].otherFilter6&&e[t].OtherFilter7Text===s[t].otherFilter7&&e[t].OtherFilter8Text===s[t].otherFilter8&&e[t].OtherFilter9Text===s[t].otherFilter9&&e[t].OtherFilter10Text===s[t].otherFilter10||e.splice(t,0,{})}),s=Sm(s,e=>{let t=this.buildNameFromOtherFilters(e,"");return t=t.substring(3),{label:t,type:"number"}}),1===s.length&&(s=[{label:r.ColumnLabel,type:"number"}]);const c=[];Qm(s,e=>{c.push(e),c.push({role:"tooltip",p:{html:!0}})}),this.barColumnNames=[n.ColumnLabel].concat(c),this.pieColumnNames=[n.ColumnLabel].concat(c);const u=e.length!==t.length;Qm(e,e=>{const t=[xm(e,e=>e).GeographicArea];let n=!1;Qm(e,(e,o)=>{t.push(e.MeasureValue),null===e.MeasureValue&&(n=!0);const a=Sm(i,t=>({label:t.ColumnLabel,value:e[t.MappedColumnName]}));let l="";l=u?this.chartTooltip(e.GeographicArea,s[o]?s[o].label:"",e.MeasureValue,null,null,a):this.chartTooltip(e.GeographicArea,r.ColumnLabel,e.MeasureValue,e.TimePeriod1Text,e.TimePeriod2Text,a),t.push(l)}),n&&(t[0]+=" **"),o.push(t)});break}case ax.LineChart:{let e=Tm(this.headers,{ColumnType:"TimePeriod1"}),n=Tm(this.headers,{ColumnType:"TimePeriod2"}),s=e.ColumnLabel;n&&n.ColumnLabel&&(s+=" - "+n.ColumnLabel);let a=Wm(t,e=>e.TimePeriod1Text+(e.TimePeriod2Text?" - "+e.TimePeriod2Text:"")),l=[];const A={};Qm(t,(e,t)=>{A[e.GeographicArea+"|"+e.GeographicAreaID+"|"+e.OtherFilter1Text+"|"+e.OtherFilter2Text+"|"+e.OtherFilter3Text+"|"+e.OtherFilter4Text+"|"+e.OtherFilter5Text+"|"+e.OtherFilter6Text+"|"+e.OtherFilter7Text+"|"+e.OtherFilter8Text+"|"+e.OtherFilter9Text+"|"+e.OtherFilter10Text+"|"]=t}),Qm(Object.keys(A),e=>{const n=t[A[e]];l.push({geographicArea:n.GeographicArea,geographicAreaId:n.GeographicAreaID,otherFilter1:n.OtherFilter1Text,otherFilter2:n.OtherFilter2Text,otherFilter3:n.OtherFilter3Text,otherFilter4:n.OtherFilter4Text,otherFilter5:n.OtherFilter5Text,otherFilter6:n.OtherFilter6Text,otherFilter7:n.OtherFilter7Text,otherFilter8:n.OtherFilter8Text,otherFilter9:n.OtherFilter9Text,otherFilter10:n.OtherFilter10Text})}),l=em(l).sortBy(e=>this.otherFilters.OtherFilter10Text?this.otherFilters.OtherFilter10Text.indexOf(e.otherFilter10):-1).sortBy(e=>this.otherFilters.OtherFilter9Text?this.otherFilters.OtherFilter9Text.indexOf(e.otherFilter9):-1).sortBy(e=>this.otherFilters.OtherFilter8Text?this.otherFilters.OtherFilter8Text.indexOf(e.otherFilter8):-1).sortBy(e=>this.otherFilters.OtherFilter7Text?this.otherFilters.OtherFilter7Text.indexOf(e.otherFilter7):-1).sortBy(e=>this.otherFilters.OtherFilter6Text?this.otherFilters.OtherFilter6Text.indexOf(e.otherFilter6):-1).sortBy(e=>this.otherFilters.OtherFilter5Text?this.otherFilters.OtherFilter5Text.indexOf(e.otherFilter5):-1).sortBy(e=>this.otherFilters.OtherFilter4Text?this.otherFilters.OtherFilter4Text.indexOf(e.otherFilter4):-1).sortBy(e=>this.otherFilters.OtherFilter3Text?this.otherFilters.OtherFilter3Text.indexOf(e.otherFilter3):-1).sortBy(e=>this.otherFilters.OtherFilter2Text?this.otherFilters.OtherFilter2Text.indexOf(e.otherFilter2):-1).sortBy(e=>this.otherFilters.OtherFilter1Text?this.otherFilters.OtherFilter1Text.indexOf(e.otherFilter1):-1).sortBy("geographicAreaId").value(),Sm(a,e=>{if(e.length!==l.length)for(let t=0;t<l.length;t++){let n=e[t],r=l[t];n&&n.GeographicAreaID===r.geographicAreaId&&n.OtherFilter1Text===r.otherFilter1&&n.OtherFilter2Text===r.otherFilter2&&n.OtherFilter3Text===r.otherFilter3&&n.OtherFilter4Text===r.otherFilter4&&n.OtherFilter5Text===r.otherFilter5&&n.OtherFilter6Text===r.otherFilter6&&n.OtherFilter7Text===r.otherFilter7&&n.OtherFilter8Text===r.otherFilter8&&n.OtherFilter9Text===r.otherFilter9&&n.OtherFilter10Text===r.otherFilter10||e.splice(t,0,{})}}),l=Sm(l,e=>{let t=e.geographicArea;return t=this.buildNameFromOtherFilters(e,t),{label:t,type:"number"}}),1===l.length&&(l=[{label:r.ColumnLabel,type:"number"}]);let c=[];Qm(l,e=>{c.push(e),c.push({role:"tooltip",p:{html:!0}})}),this.lineColumnNames=[s].concat(c),Qm(Object.keys(a),e=>{let t=[];Qm(a[e],(e,n)=>{t.push(e.MeasureValue);let o=Sm(i,t=>({label:t.ColumnLabel,value:e[t.MappedColumnName]}));t.push(this.chartTooltip(e.TimePeriod1Text+(e.TimePeriod2Text?" / "+e.TimePeriod2Text:""),l[n]?l[n].label:r.ColumnLabel,e.MeasureValue,null,null,o))}),o.push([e].concat(t))});let u=[];Qm(this.lineColumnNames,()=>{u.push(!1)});for(let t=1;t<o.length;t++){let e=o[t];for(let t=1;t<e.length;t++)null!==e[t]||u[t]||(u[t]=!0,this.lineColumnNames[t].label+=" **")}break}default:throw"Unsupported Chart Type"}return o}buildNameFromOtherFilters(e,t){const n=Tm(this.otherFilterSelections,{column:"OtherFilter1Text"});e.otherFilter1&&n&&n.output.length>1&&(t+=" - "+e.otherFilter1);const r=Tm(this.otherFilterSelections,{column:"OtherFilter2Text"});e.otherFilter2&&r&&r.output.length>1&&(t+=" - "+e.otherFilter2);const i=Tm(this.otherFilterSelections,{column:"OtherFilter3Text"});e.otherFilter3&&i&&i.output.length>1&&(t+=" - "+e.otherFilter3);const o=Tm(this.otherFilterSelections,{column:"OtherFilter4Text"});e.otherFilter4&&o&&o.output.length>1&&(t+=" - "+e.otherFilter4);const s=Tm(this.otherFilterSelections,{column:"OtherFilter5Text"});e.otherFilter5&&s&&s.output.length>1&&(t+=" - "+e.otherFilter5);const a=Tm(this.otherFilterSelections,{column:"OtherFilter6Text"});e.otherFilter6&&a&&a.output.length>1&&(t+=" - "+e.otherFilter6);const l=Tm(this.otherFilterSelections,{column:"OtherFilter7Text"});e.otherFilter7&&l&&l.output.length>1&&(t+=" - "+e.otherFilter7);const A=Tm(this.otherFilterSelections,{column:"OtherFilter8Text"});e.otherFilter8&&A&&A.output.length>1&&(t+=" - "+e.otherFilter8);const c=Tm(this.otherFilterSelections,{column:"OtherFilter9Text"});e.otherFilter9&&c&&c.output.length>1&&(t+=" - "+e.otherFilter9);const u=Tm(this.otherFilterSelections,{column:"OtherFilter10Text"});return e.otherFilter10&&u&&u.output.length>1&&(t+=" - "+e.otherFilter10),t}chartTooltip(e,t,n,r,i,o){let s="";r&&(s="<div class='gchart-timeperiod-label'>"+r+(i?" / "+i:"")+"</div>");let a="";return Qm(o,e=>{a+="<div class='gchart-tooltip-extra-data-container'>"+e.label+": "+e.value+"</div>"}),"<div class='gchart-tooltip-container'><div class='gchart-tooltip-title'>"+e+"</div>"+s+"<div class='gchart-tooltip-subtitle'>"+t+": <span><strong>"+n+"</strong></span></div>"+a+"</div>"}getOptions(e){const t=50;let n=Tm(e.chartHeaders,{ColumnType:"GeographicArea"}),r={bars:"",annotations:{},series:null,pointSize:0,titleTextStyle:{fontSize:28,bold:!0,fontName:"Arial"},theme:"material",legend:{position:"right",textStyle:{fontSize:e.printingChart?18:14}},title:this.showTitle?this.title:"",vAxis:{title:"",titleTextStyle:{fontSize:e.printingChart?32:24},textStyle:{fontSize:e.printingChart?18:14}},hAxis:{title:"",titleTextStyle:{fontSize:e.printingChart?32:24},textStyle:{fontSize:e.printingChart?18:14}},chartArea:{bottom:100,top:this.showTitle?t:10,left:100,height:0,width:e.chartType==ax.BarChart?"90%":"85%"},height:0,tooltip:{isHtml:!0,textStyle:{fontName:"Arial",fontSize:14}},width:"100%"};switch(e.chartType){case ax.BarChart:{const i=Math.max(18*this.barFilteredData.length+40,600),o=i-100;let s=this.showAxisLabels?n.ColumnLabel:"",a=this.showAxisLabels?"Count":"";r.height=e.printingChart?i+t+20:i,r.vAxis.title=s,r.hAxis.title=a,r.legend.position="top",r.bars="horizontal",r.annotations={textStyle:{fontSize:12,opacity:1},stem:{length:12}},r.chartArea.top=80,r.chartArea.height=this.showTitle?o+t:o,r.chartArea.left=100,r.chartArea.bottom=100;break}case ax.PieChart:{const n=Math.max(15*this.piFilteredData.length,600);r.height=e.printingChart?n+t+20:n,r.legend.position="right",r.bars="horizontal",r.annotations={textStyle:{fontSize:12,opacity:1},stem:{length:12}};const i=800,o=75;r.chartArea.top=50,r.height=e.printingChart?i+t+20:i,r.chartArea.height=i-o,r.chartArea.left=0;break}case ax.LineChart:{let n=Tm(e.chartHeaders,{ColumnType:"TimePeriod1"}),i=Tm(e.chartHeaders,{ColumnType:"TimePeriod2"}),o=n.ColumnLabel;i&&(o+=" - "+i.ColumnLabel),r.vAxis.title=this.showAxisLabels?"Count":"",r.hAxis.title=this.showAxisLabels?o:"",r.pointSize=10,r.legend.position="right";const s=800,a=75;r.height=e.printingChart?s+t+20:s,r.chartArea.height=s-a,r.chartArea.left=100,r.series=this.generatePointShapes();break}default:throw"Unsupported Chart Type"}return e.legendVisible||(r.legend.position="none"),r}generatePointShapes(){const e={};for(let t=0;t<100;t++)switch(t%15){case 0:e[t]={pointShape:"circle"};break;case 1:e[t]={pointShape:{type:"star",sides:4}};break;case 2:e[t]={pointShape:{type:"triangle",rotation:180}};break;case 3:e[t]={pointShape:{type:"polygon",sides:3}};break;case 4:e[t]={pointShape:"square"};break;case 5:e[t]={pointShape:{type:"star",sides:5}};break;case 6:e[t]={pointShape:{type:"star",sides:4,rotation:45}};break;case 7:e[t]={pointShape:{type:"polygon",sides:4}};break;case 8:e[t]={pointShape:{type:"star",sides:6}};break;case 9:e[t]={pointShape:{type:"polygon",sides:5}};break;case 10:e[t]={pointShape:{type:"star",sides:7}};break;case 11:e[t]={pointShape:{type:"polygon",sides:6}};break;case 12:e[t]={pointShape:{type:"star",sides:8,dent:.45}};break;case 13:e[t]={pointShape:{type:"polygon",sides:7}};break;case 14:e[t]={pointShape:{type:"star",sides:5,rotation:180}}}return e}dataUriToBlob(e,t){let n=atob(e.split(",")[1]),r=[];for(let i=0;i<n.length;i++)r.push(n.charCodeAt(i));return new Blob([new Uint8Array(r)],{type:t})}createDataArrays(e,t,n){0==!this.chartConfig.chartEnabled&&(this.chartConfig.chartEnabled=!0,this.barDataArray=this.getDataArray(ax.BarChart,e),this.pieDataArray=this.getDataArray(ax.PieChart,n),this.lineDataArray=this.getDataArray(ax.LineChart,t),this.lineDataArray.length<=0?(this.chartConfig.chartType=ax.BarChart,this.chartConfig.ableToSwitchChartType=!1):this.chartConfig.ableToSwitchChartType=!0,this.updateOptions(null,null))}updateTitle(){let e=this.selectedGroupings.length;if(this.title=this.unmodifiedTitle,0!==e&&e!==this.geographicTypeGroupings.length){this.title+=" - "+this.selectedGroupings[0].name;for(let t=1;t<e-1;t++)this.title+=", "+this.selectedGroupings[t].name;e>1&&(this.title+=", and "+this.selectedGroupings[e-1].name)}}buildOtherFilterSelections(e){this.otherFilterSelections=Sm(e,e=>{let t=Sm(e.CodeSchemeValues,(e,t)=>({id:e,name:e,selected:0===t}));return{label:e.OtherFilterDisplayName,column:e.MappedColumnName,input:t,output:Om(t,{selected:!0})}});let t=0;for(;t<this.otherFilterSelections.length;)this.otherFilterSelections[t].input.length<=1?this.otherFilterSelections.splice(t,1):t++;this.otherFilterSettings=[],this.otherFilterSelections.forEach(e=>{this.otherFilterSettings.push({allowSearchFilter:!0,closeDropDownOnSelection:!0,selectAllText:"Select All",unSelectAllText:"Deselect All",searchPlaceholderText:"Filter Selections Below",itemsShowLimit:3,idField:"id",textField:"name"})})}buildTimePeriodSelections(e){var t;const n=null===(t=null==e?void 0:e.results)||void 0===t?void 0:t.headers,r=e.querySelections;this.timeConceptOne.options=Sm(r.timePeriod1Values,(e,t)=>({id:e,name:e,selected:0===t})),this.timeConceptTwo.options=Sm(r.timePeriod2Values,(e,t)=>({id:e,name:e,selected:0===t}));const i=Tm(n,{MappedColumnName:"TimePeriod1Text"}),o=Tm(n,{MappedColumnName:"TimePeriod2Text"});this.timeConceptOne.label=i?i.ColumnLabel:"",this.timeConceptOne.options.length&&(this.timeConceptOne.selected=[this.timeConceptOne.options[0]]),this.timeConceptTwo.label=o?o.ColumnLabel:"",this.timeConceptTwo.options.length&&(this.timeConceptTwo.selected=[this.timeConceptTwo.options[0]])}updateFilteredData(){this.loading=!0;let e=Nm(this.selectedGroupings,"id"),t=Om(this.data,t=>{var n,r,i,o;const s=0===e.length||Mm(e,t.GeographicGrouping),a=0===(null===(r=null===(n=this.timeConceptOne)||void 0===n?void 0:n.selected)||void 0===r?void 0:r.length)||t.TimePeriod1Text===this.timeConceptOne.selected[0].id,l=0===(null===(o=null===(i=this.timeConceptTwo)||void 0===i?void 0:i.selected)||void 0===o?void 0:o.length)||t.TimePeriod2Text===this.timeConceptTwo.selected[0].id;return s&&a&&l}),n=Om(this.data,t=>{var n,r,i,o,s,a,l;const A=0===e.length||Mm(e,t.GeographicGrouping),c=0===(null===(r=null===(n=this.timeConceptOne)||void 0===n?void 0:n.selected)||void 0===r?void 0:r.length)||t.TimePeriod1Text===this.timeConceptOne.selected[0].id,u=0===(null===(o=null===(i=this.timeConceptTwo)||void 0===i?void 0:i.selected)||void 0===o?void 0:o.length)||t.TimePeriod2Text===this.timeConceptTwo.selected[0].id,h=0===(null===(a=null===(s=this.geographicArea)||void 0===s?void 0:s.selected)||void 0===a?void 0:a.length)||Mm(Nm(null===(l=this.geographicArea)||void 0===l?void 0:l.selected,"id"),t.GeographicArea);return A&&c&&u&&h}),r=Om(this.data,t=>{var n,r,i;const o=0===e.length||Mm(e,t.GeographicGrouping),s=0===(null===(r=null===(n=this.geographicArea)||void 0===n?void 0:n.selected)||void 0===r?void 0:r.length)||Mm(Nm(null===(i=this.geographicArea)||void 0===i?void 0:i.selected,"id"),t.GeographicArea);return o&&s});Qm(this.otherFilterSelections,e=>{if(e.input.length>1){let i;i=e.output.length>0?Nm(e.output,"id"):[oy(e.input).id],n=Om(n,t=>Mm(i,t[e.column])),t=Om(t,t=>Mm(i,t[e.column])),r=Om(r,t=>Mm(i,t[e.column]))}}),0===n.length?this.chartConfig.noFilteredPieData=!0:(this.chartConfig.noFilteredPieData=!1,this.piFilteredData=n),0===t.length?this.chartConfig.noFilteredBarData=!0:(this.chartConfig.noFilteredBarData=!1,this.barFilteredData=t),0===r.length?this.chartConfig.noFilteredLineData=!0:(this.chartConfig.noFilteredLineData=!1,this.lineFilteredData=r),this.updateTitle(),this.updateDropdownSettings(),this.createDataArrays(this.barFilteredData,this.lineFilteredData,this.piFilteredData),this.loading=!1}updateDropdownSettings(){const e=this.otherFilterSelections.some(e=>e.output.length>1);this.otherFilterSettings=[],this.otherFilterSelections.forEach(t=>{this.otherFilterSettings.push({singleSelection:e&&t.selected&&t.selected.length<=1,allowSearchFilter:!0,closeDropDownOnSelection:!0,selectAllText:"Select All",unSelectAllText:"Deselect All",searchPlaceholderText:"Filter Selections Below",itemsShowLimit:3,idField:"id",textField:"name"})})}filterGeographicAreas(){this.geographicArea.options=em(this.data).filter(e=>0===this.selectedGroupings.length||Mm(Nm(this.selectedGroupings,"id"),e.GeographicGrouping)).sortBy("GeographicAreaID").pluck("GeographicArea").uniq().map(e=>({id:e,name:e,selected:!0})).value(),this.geographicArea.selected=this.geographicArea.options.map(e=>({id:e.id,name:e.name}))}queryHandler(e){var t,n,r,i,o,s;this.measure=e.measure,this.data=null===(t=e.results)||void 0===t?void 0:t.data,this.headers=null===(n=e.results)||void 0===n?void 0:n.headers,this.otherFilters=e.queryOptions.otherFilters,this.chartConfig.chartEnabled=null===(r=this.measure)||void 0===r?void 0:r.showChart,this.buildOtherFilterSelections(this.otherFilters),this.buildTimePeriodSelections(e),this.title=null===(i=this.measure)||void 0===i?void 0:i.titleWithQuery,this.unmodifiedTitle=null===(o=this.measure)||void 0===o?void 0:o.titleWithQuery,em(this.data).groupBy(e=>e.TimePeriod1Text+" "+e.TimePeriod2Text).size().value()>=3&&(this.chartConfig.chartType=ax.LineChart),this.data&&this.data[0]&&(this.geographicArea.options=em(this.data).sortBy("GeographicAreaID").pluck("GeographicArea").uniq().map(e=>({id:e,name:e,selected:!0})).value(),this.geographicArea.selected=this.geographicArea.options.map(e=>({id:e.id,name:e.name})),this.geographicArea.label=e.measure.geographicAreaTitle),!1===(null===(s=null==this?void 0:this.chartConfig)||void 0===s?void 0:s.chartEnabled)?this.chartConfig.errorList=["Charts have been disabled for this measure"]:this.data&&this.data[0]&&this.data[0].GeographicGrouping?(this.geographicTypeGroupings=em(this.data).pluck("GeographicGrouping").uniq().sortBy().map(e=>({id:e,name:e,selected:!0})).value(),this.selectedGroupings=this.geographicTypeGroupings):(this.geographicTypeGroupings=[],this.selectedGroupings=[]),this.handleDataChange(),this.updateOptions(null,null)}}return e.\u0275fac=function(t){return new(t||e)(zs(hA),zs(Ty))},e.\u0275cmp=Ge({type:e,selectors:[["mi-chart"]],viewQuery:function(e,t){if(1&e&&(uc(_x,5),uc(Fx,5)),2&e){let e;cc(e=dc())&&(t.chart=e.first),cc(e=dc())&&(t.piChart=e.first)}},inputs:{panelController:"panelController",queryResult:"queryResult"},features:[ct],decls:6,vars:3,consts:[[1,"row","justify-content-center"],[1,"col-6","text-center"],[1,"loading-spinner-container"],["class","spinner-border spinner-border-lg text-primary","aria-hidden","true",4,"ngIf"],[4,"ngIf"],[3,"id",4,"ngIf"],["aria-hidden","true",1,"spinner-border","spinner-border-lg","text-primary"],["role","alert","tabindex","0",1,"alert","alert-info","col-12"],["aria-hidden","true",3,"icon"],[3,"id"],[1,"btn-group","data-options-buttons"],["type","button",1,"btn","btn-primary","editQueryButtonWidth","data-option-button",3,"title","click"],["aria-hidden","true",1,"button-icon",3,"icon"],["class","download-element",3,"selectedTab","queryResult",4,"ngIf"],["type","button","aria-label","Save chart",1,"btn","btn-primary","download-button","data-option-button",3,"disabled","click"],["target","_blank","class","btn btn-primary",3,"href","disabled",4,"ngIf"],["role","group"],["ngbDropdown",""],["role","menu","ngbDropdownToggle","",1,"btn","btn-primary","dropdown-toggle","data-option-button",3,"id"],[1,"caret"],["ngbDropdownMenu",""],["ngbDropdownItem","",3,"click"],["class","btn-group chart-toggle",4,"ngIf"],[3,"side","data","otherFilterSelections","geographicArea","timeConceptOne","timeConceptTwo","options","chartConfig","columns","otherFilterSelectionsChange","geographicAreaChange","timeConceptOneChange","timeConceptTwoChange","handleChanged","handleDropDownClose",4,"ngIf"],[1,"clearfix"],[1,"bottomMargin"],[1,"pull-left"],["type","button",1,"btn","btn-primary",3,"title","click"],["attr.aria-hidden","true",1,"clearfix"],["role","alert","tabindex","0",1,"alert","alert-warning","col-12"],[1,"download-element",3,"selectedTab","queryResult"],["target","_blank",1,"btn","btn-primary",3,"href"],[1,"fa-save","button-icon","data-option-button"],[1,"btn-group","chart-toggle"],["type","button","title","Switch to Bar Chart",1,"btn","btn-primary",3,"disabled","click"],["type","button","title","Switch to Line Chart",1,"btn","btn-primary",3,"disabled","click"],["type","button","title","Switch to Pie Chart",1,"btn","btn-primary",3,"disabled","click"],[1,"chart-other-filter-bar"],[1,"row"],["class","col-lg-3 col-md-6 col-sm-6 col-12",4,"ngIf"],["class","col-lg-3 col-md-6 col-sm-6 col-12 ",4,"ngIf"],["class","col-lg-3 col-md-6 col-sm-6 col-12",4,"ngFor","ngForOf"],["class","alert alert-warning no-data-warning col-12 pb-2",4,"ngIf"],[1,"col-lg-3","col-md-6","col-sm-6","col-12"],["placeholder","Nothing Selected",3,"id","required","label","list","singleSelection","ngModel","ngModelChange","handleChanged"],["placeholder","Nothing Selected",3,"id","list","required","label","selected","selectedChange","handleChanged"],["placeholder","Nothing Selected",3,"id","list","singleSelection","required","label","selected","selectedChange","handleChanged"],["placeholder","Nothing Selected",3,"id","list","required","label","selected","selectedChange","handleChanged","handleDropDownClose"],[1,"alert","alert-warning","no-data-warning","col-12","pb-2"],[2,"width","100%",3,"type","data","columns","options","dynamicResize"],["chart",""],[3,"side","data","otherFilterSelections","geographicArea","timeConceptOne","timeConceptTwo","options","chartConfig","columns","otherFilterSelectionsChange","geographicAreaChange","timeConceptOneChange","timeConceptTwoChange","handleChanged","handleDropDownClose"],["piChart",""],[1,"footnotes",3,"innerHtml"]],template:function(e,t){1&e&&(Js(0,"div",0),Js(1,"div",1),Js(2,"div",2),js(3,xx,1,0,"span",3),Ys(),Ys(),Ys(),js(4,Tx,4,1,"div",4),js(5,Gx,31,20,"div",5)),2&e&&(uo(3),Ws("ngIf",t.loading),uo(1),Ws("ngIf",!t.queryResult&&!t.loading),uo(1),Ws("ngIf",t.queryResult&&!t.loading))},directives:[Su,qE,Wv,zv,jv,Gv,wF,Tu,hF,_d,zh,yd,fx,Ex],styles:[""]}),e})();function qx(e,t,n,r,i,o,s){try{var a=e[o](s),l=a.value}catch(A){return void n(A)}a.done?t(l):Promise.resolve(l).then(r,i)}function zx(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var o=e.apply(t,n);function s(e){qx(o,r,i,s,a,"next",e)}function a(e){qx(o,r,i,s,a,"throw",e)}s(void 0)})}}var Wx=n(704),Xx=n(67),Jx=n(977),Yx=n(901);class $x{}class Zx{}class eT{constructor(){this.otherFilterLabels=new $x,this.hasGeographicGroupings=!1,this.selectedData=[],this.timePeriodCombinations=[],this.isPointMap=!1,this.displayTimePeriod2="",this.displayTimePeriod1="",this.emptyValueLabel="",this.timePeriod2Title="",this.data=[],this.timePeriod2List=null,this.otherFilters=[],this.buckets=[],this.extraDataLabels=new Zx,this.title="",this.selectedTimePeriod1="",this.selectedTimePeriod2="",this.timePeriod1Title="",this.unit="",this.valueLabel="",this.possibleGeographicAreas=[],this.timePeriod1List=[],this.selectedGeographicAreas=[]}}class tT{constructor(){this.label=""}}class nT{constructor(){this.LegendColorGroupSeq=-1,this.IsColorReversed=!1,this.NumberOfBucketsInLegend=5,this.LegendAlgorithmSeq=-1,this.IsInteger=!1}}class rT{constructor(){this.colors=[new tT],this.configuration=new nT}}let iT=(()=>{class e{constructor(){}turnStringArrayIntoMaxLengthCommaSeparatedStringArray(e,t){let n=null!=t?t:1e3;const r=[];let i="",o="";return Qm(e,(t,s)=>{o=" '"+t+"'",(s+1)%n==0||(s+1)%e.length==0?(i+=o,r.push(i),i=""):i+=o+","}),r}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=de({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),oT=(()=>{class e{constructor(e){this.featureLayerGraphicsCache=[],this.textFormattingService=e}clearFeatureLayerGraphicCache(){this.featureLayerGraphicsCache=[]}getFeatureLayerGraphicsAsync(e,t,n){var r=this;return zx(function*(){const[i]=yield(0,Yx.loadModules)(["esri/layers/GraphicsLayer"]);let o=Tm(r.featureLayerGraphicsCache,{arcgisEndpointURL:t.arcgisEndpointURL,panelSide:e});if(o){const e=new i;return o.featureLayerObj.layer.graphics.forEach(t=>e.add(t)),Promise.resolve(Object.assign(Object.assign({},o.featureLayerObj),{layer:e}))}{let o=r.textFormattingService.turnStringArrayIntoMaxLengthCommaSeparatedStringArray(n);t.arcGisPassThrough=0,t.layer=new i,r.featureLayerGraphicsCache.push({panelSide:e,featureLayerObj:t,arcgisEndpointURL:t.arcgisEndpointURL});const[s,a]=yield(0,Yx.loadModules)(["esri/layers/FeatureLayer","esri/tasks/query"]);return new Promise(n=>{Qm(o,i=>{let l=t.arcgisEndpointURL,A=new a,c=[];c.push(t.matchingAttributeName),c.push(t.matchingAttributeKey),A.outFields=c;let u=new s(l,{mode:s.MODE_SNAPSHOT,outFields:c});A.where=t.matchingAttributeKey+" in  ("+i+")",A.outSpatialReference={wkid:102100},A.returnGeometry=!0,A.orderByFields=[t.matchingAttributeKey+" ASC"],u.queryFeatures(A,i=>{t.arcGisPassThrough++;let s=Tm(r.featureLayerGraphicsCache,{arcgisEndpointURL:t.arcgisEndpointURL,panelSide:e});Qm(i.features,e=>{var t;null===(t=null==s?void 0:s.featureLayerObj)||void 0===t||t.layer.add(e)}),(null==t?void 0:t.arcGisPassThrough)===o.length&&n(null==s?void 0:s.featureLayerObj)})})})}})()}}return e.\u0275fac=function(t){return new(t||e)(fr(iT))},e.\u0275prov=de({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),sT=(()=>{class e{constructor(){this.callbacks={left:e=>{},right:e=>{}}}onUpdateCallback(e,t){this.callbacks[e]=t}updateExtent(e,t){Qm(this.callbacks,(n,r)=>{e!==r&&n(t)})}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=de({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),aT=(()=>{class e{constructor(e,t){this.httpService=e,this.baseUrl=t,this.subscriptionList=[],this.overlayLayerSelected=new Map,this.poiLayerSelected=new Map}onDestroy(e){this.poiLayerSelected.set(e,[]),this.overlayLayerSelected.set(e,[]),this.subscriptionList.forEach(e=>{e.unsubscribe()})}getOverlayLayers(){return new Promise((e,t)=>{this.subscriptionList.push(this.httpService.get(this.baseUrl+"OverlayLayer/GetOverlayLayers").subscribe(t=>{e(t)},e=>{t(e)}))})}}return e.\u0275fac=function(t){return new(t||e)(fr(Jd),fr("BASE_URL"))},e.\u0275prov=de({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function lT(e,t){if(1&e&&(Js(0,"div"),Js(1,"div",5),Js(2,"div",6),$s(3,"div",7),$s(4,"div",8),Ys(),Js(5,"div",9),Da(6),Ys(),Ys(),Ys()),2&e){const e=t.$implicit;uo(3),Ws("ngStyle",e.style),uo(3),Oa(e.label)}}let AT=(()=>{class e{constructor(){this.unit=""}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=Ge({type:e,selectors:[["map-legend"]],inputs:{legendColors:"legendColors",unit:"unit"},decls:7,vars:2,consts:[[1,"map-legend","container"],[1,"miTabLegendHeader","row"],[4,"ngFor","ngForOf"],[1,"row"],[1,"legendUnits","col-12","topBorder"],[1,"row",2,"padding-bottom","5px"],[1,"miTabLegendColorContainer","col-3","offset-1"],[1,"miTabLegendColor","row",3,"ngStyle"],["aria-hidden","true",1,"clearfix"],[1,"text-center","col-8"]],template:function(e,t){1&e&&(Js(0,"div",0),Js(1,"div",1),Da(2," Legend "),Ys(),js(3,lT,7,2,"div",2),Js(4,"div",3),Js(5,"div",4),Da(6),Ys(),Ys(),Ys()),2&e&&(uo(3),Ws("ngForOf",t.legendColors),uo(3),La(" Units: ",t.unit," "))},directives:[Tu,Hu],styles:[".map-legend[_ngcontent-%COMP%]{list-style:none;margin-bottom:10px;margin-left:10px;z-index:50;background-color:#fffc;width:calc(30%);max-width:300px;min-width:150px}.miTabLegendHeader[_ngcontent-%COMP%]{justify-content:center}"]}),e})();function cT(e,t){if(1&e&&(Js(0,"div",21),Da(1),Ys()),2&e){const e=aa(2);uo(1),Oa(e.errorMessage)}}function uT(e,t){if(1&e){const e=ta();Js(0,"button",22),ia("click",function(){return Ot(e),aa(2).toggleLegend()}),Da(1),Ys()}if(2&e){const e=aa(2);uo(1),La(" ",!0===e.mapConfig.showLegend?"Hide":"Show"," Legend ")}}function hT(e,t){if(1&e){const e=ta();Js(0,"button",23),ia("click",function(){return Ot(e),aa(2).toggleTitle()}),Da(1),Ys()}if(2&e){const e=aa(2);uo(1),La(" ",!0===e.mapConfig.showTitle?"Hide":"Show"," Title ")}}function dT(e,t){if(1&e){const e=ta();Js(0,"div",1),Js(1,"div",2),Js(2,"h5",3),Da(3,"Map Options"),Ys(),Js(4,"button",4),ia("click",function(){return Ot(e),aa().closeModal()}),Js(5,"span",5),Da(6,"\xd7"),Ys(),Ys(),Ys(),Js(7,"div",6),js(8,cT,2,1,"div",7),js(9,uT,2,1,"button",8),js(10,hT,2,1,"button",9),Js(11,"div",10),Js(12,"label",11),Da(13," Map Graphic Transparency "),Js(14,"input",12),ia("change",function(t){return Ot(e),aa().updateMapOpacity(t)}),Ys(),Ys(),Js(15,"label",11),Da(16,"Overlay Layer Transparency "),Js(17,"input",13),ia("change",function(t){return Ot(e),aa().updateOverlayOpacity(t)}),Ys(),Ys(),Ys(),Js(18,"select-list",14),ia("selectedChange",function(t){return Ot(e),aa().overlayLayerSelected=t})("handleChanged",function(t){return Ot(e),aa().toggleOverlay(t)}),Ys(),Js(19,"select-list",15),ia("selectedChange",function(t){return Ot(e),aa().poiLayerSelected=t})("handleChanged",function(t){return Ot(e),aa().toggleFeatureLayer(t)}),Ys(),Js(20,"aside",16),Js(21,"p",17),Da(22,"Environmental Health conditions are often caused by many factors, not one. MiTracking points of interest, overlay layers and data cannot tell us:"),Ys(),Js(23,"ol",18),Js(24,"li"),Da(25,"The cause of health conditions"),Ys(),Js(26,"li"),Da(27,"Make associations between any measures or indicators"),Ys(),Ys(),Ys(),Ys(),Js(28,"div",19),Js(29,"button",20),ia("click",function(){return Ot(e),aa().closeModal()}),Da(30,"Close"),Ys(),Ys(),Ys()}if(2&e){const e=aa();uo(8),Ws("ngIf",e.errorMessage),uo(1),Ws("ngIf","displayInfo"===e.mapConfig.display),uo(1),Ws("ngIf","displayInfo"===e.mapConfig.display),uo(4),Ws("value",e.mapLayerOpacity),uo(3),Ws("disabled",!e.overlayLayerSelected.length)("value",e.overlayLayerOpacity),uo(1),Ws("list",e.overlayLayers)("selected",e.overlayLayerSelected)("singleSelection",!0),uo(1),Ws("list",e.poiLayers)("selected",e.poiLayerSelected)("singleSelection",!0)}}let pT=(()=>{class e{constructor(e){this.overlayLayerService=e,this.side="",this.poiLayers=[],this.overlayLayers=[],this.errorMessage=null,this.poiLayerSelected=[],this.overlayLayerSelected=[],this.mapLayerOpacity=70,this.overlayLayerOpacity=70,this.loading=!1,this.mapConfigChange=new $A,this.michMapChange=new $A,this.closeModalEventEmitter=new $A}ngOnInit(){var e,t,n,r,i,o,s,a;this.loading=!0,this.overlayLayerService.getOverlayLayers().then(e=>{this.overlayLayers=e.filter(e=>!e.isPOI&&e.isActive),this.poiLayers=e.filter(e=>e.isPOI&&e.isActive),this.loading=!1},()=>{this.errorMessage="An error has occurred in retrieving Layer options. Please close and try again.",this.loading=!1}),(null===(t=null===(e=this.overlayLayerService)||void 0===e?void 0:e.overlayLayerSelected)||void 0===t?void 0:t.get(this.side))&&(null===(r=null===(n=this.overlayLayerService)||void 0===n?void 0:n.overlayLayerSelected)||void 0===r?void 0:r.get(this.side).length)>0?(this.overlayLayerSelected=this.overlayLayerService.overlayLayerSelected.get(this.side),this.overlayLayerOpacity=this.overlayLayerSelected[0].opacity?100*this.overlayLayerSelected[0].opacity:70):this.overlayLayerService.overlayLayerSelected.set(this.side,[]),(null===(o=null===(i=this.overlayLayerService)||void 0===i?void 0:i.poiLayerSelected)||void 0===o?void 0:o.get(this.side))&&(null===(a=null===(s=this.overlayLayerService)||void 0===s?void 0:s.poiLayerSelected)||void 0===a?void 0:a.get(this.side).length)>0?this.poiLayerSelected=this.overlayLayerService.poiLayerSelected.get(this.side):this.overlayLayerService.poiLayerSelected.set(this.side,[]),this.currentMapFeature&&(this.mapLayerOpacity=100*this.currentMapFeature.opacity)}toggleLegend(){this.mapConfig.showLegend=!this.mapConfig.showLegend,this.mapConfigChange.emit(this.mapConfig)}toggleTitle(){this.mapConfig.showTitle=!this.mapConfig.showTitle,this.mapConfigChange.emit(this.mapConfig)}toggleOverlay(e){var t;let n="Overlay";if(this.overlayLayerSelected=e,"None"==(null===(t=this.overlayLayerSelected[0])||void 0===t?void 0:t.name)||this.overlayLayerSelected.length<1){let e=this.michMap.getLayer(n);return e&&(this.michMap.removeLayer(e,e.getNode()),this.michMapChange.emit(this.michMap)),void this.overlayLayerService.overlayLayerSelected.set(this.side,this.overlayLayerSelected)}this.michMap.getLayer(n)&&this.michMap.removeLayer(this.michMap.getLayer(n),this.michMap.getLayer(n).getNode()),Yx.loadModules(["esri/layers/ArcGISImageServiceLayer","esri/layers/ImageServiceParameters","dojo/parser","dojo/domReady!"]).then(([e,t,r])=>{let i=this.overlayLayerSelected[0],o=new t;o.noData=0;let s=new e(i.restUrl,{imageServiceParameters:o,id:n});s.opacity=this.overlayLayerOpacity/100,this.michMap.addLayer(s),this.overlayLayerService.overlayLayerSelected.set(this.side,this.overlayLayerSelected),this.michMapChange.emit(this.michMap)})}toggleFeatureLayer(e){var t;let n="PoiLayer";if(this.poiLayerSelected=e,this.overlayLayerService.poiLayerSelected.set(this.side,this.poiLayerSelected),this.poiLayerSelected&&"None"==(null===(t=this.poiLayerSelected[0])||void 0===t?void 0:t.name)||this.poiLayerSelected.length<1){let e=this.michMap.getLayer(n);e&&(this.michMap.removeLayer(e,e.getNode()),this.michMapChange.emit(this.michMap))}else this.michMap.getLayer(n)&&(this.michMap.removeLayer(this.michMap.getLayer(n),this.michMap.getLayer(n).getNode()),this.michMap.layerIds.splice(this.michMap.layerIds.indexOf(n),1)),Yx.loadModules(["esri/layers/FeatureLayer","esri/InfoTemplate","dojo/domReady!"]).then(([e,t])=>{var r,i,o;let s=(null===(r=this.poiLayerSelected[0])||void 0===r?void 0:r.infoContent)?this.poiLayerSelected[0].infoContent.replace(/\r?\n/g,"<br />"):null===(i=this.poiLayerSelected[0])||void 0===i?void 0:i.infoContent,a=new t(null===(o=this.poiLayerSelected[0])||void 0===o?void 0:o.infoTitle,s),l=new e(this.poiLayerSelected[0].restUrl,{mode:e.MODE_ONDEMAND,outFields:["*"],infoTemplate:a,id:n});this.poiLayerSelected[0].stateApiColumnName&&""!==this.poiLayerSelected[0].stateApiColumnName&&l.setDefinitionExpression(`${this.poiLayerSelected[0].stateApiColumnName} = '${this.poiLayerSelected[0].stateApiColumnValue}'`),this.michMap.addLayer(l),this.michMap.reorderLayer(l,this.michMap.layerIds.length-1),this.michMap.infoWindow.resize(155,75),this.michMap.layerIds.push(n),this.michMapChange.emit(this.michMap)})}updateMapOpacity(e){setTimeout(()=>{this.mapLayerOpacity=e.target.value,this.currentMapFeature.opacity=this.mapLayerOpacity/100,this.michMap.removeLayer(this.currentMapFeature,this.currentMapFeature.getNode()),this.michMap.addLayer(this.currentMapFeature,0),this.michMap.layerIds.splice(this.michMap.layerIds.indexOf(this.currentMapFeature.id),1),this.michMap.layerIds.push(this.currentMapFeature.id)})}updateOverlayOpacity(e){setTimeout(()=>{this.overlayLayerSelected[0].opacity=e.target.value/100,this.overlayLayerOpacity=e.target.value,this.toggleOverlay(this.overlayLayerSelected)})}closeModal(){this.closeModalEventEmitter.emit(!0)}}return e.\u0275fac=function(t){return new(t||e)(zs(aT))},e.\u0275cmp=Ge({type:e,selectors:[["mi-map-options"]],inputs:{mapConfig:"mapConfig",michMap:"michMap",currentMapFeature:"currentMapFeature",side:"side"},outputs:{mapConfigChange:"mapConfigChange",michMapChange:"michMapChange",closeModalEventEmitter:"closeModalEventEmitter"},decls:1,vars:1,consts:[["class","modal-content",4,"ngIf"],[1,"modal-content"],[1,"modal-header"],[1,"modal-title"],["type","button","aria-label","Close",1,"close",3,"click"],["aria-hidden","true"],[1,"modal-body"],["class","alert alert-danger  alert-dismissible fade show","role","alert",4,"ngIf"],["class","btn btn-primary active mr-1",3,"click",4,"ngIf"],["class","btn btn-primary active",3,"click",4,"ngIf"],[1,"form-group","mt-4","mb-0"],[1,"w-100"],["type","range",1,"form-control-range","layer-range",3,"value","change"],["type","range","id","formControlRange2",1,"form-control-range","layer-range",3,"disabled","value","change"],["label","Overlay Layer","button-label","a Layer",1,"col-lg-3","col-md-6","col-sm-6","col-12",3,"list","selected","singleSelection","selectedChange","handleChanged"],["label","Point of Interest Layer","button-label","a Layer",1,"col-lg-3","col-md-6","col-sm-6","col-12",3,"list","selected","singleSelection","selectedChange","handleChanged"],["role","alert","aria-labelledby","caution-heading","aria-describedby","caution-description",1,"alert","alert-warning"],["id","caution-heading"],["id","caution-description"],[1,"modal-footer"],["type","button",1,"btn","btn-secondary",3,"click"],["role","alert",1,"alert","alert-danger","alert-dismissible","fade","show"],[1,"btn","btn-primary","active","mr-1",3,"click"],[1,"btn","btn-primary","active",3,"click"]],template:function(e,t){1&e&&js(0,dT,31,12,"div",0),2&e&&Ws("ngIf",!t.loading)},directives:[Su,hF],styles:[""],encapsulation:2}),e})();const fT=["locationModal"],gT=["optionsModal"];function mT(e,t){if(1&e&&(Zs(0),$s(1,"fa-icon",26),ea()),2&e){const e=aa(2);uo(1),Ws("spin",!0)("icon",e.faSpinner)}}function yT(e,t){if(1&e&&(Zs(0),$s(1,"fa-icon",27),ea()),2&e){const e=aa(2);uo(1),Ws("icon",e.faMap)}}function wT(e,t){if(1&e){const e=ta();Js(0,"button",25),ia("click",function(){return Ot(e),aa().saveMap()}),js(1,mT,2,2,"ng-container",22),js(2,yT,2,1,"ng-container",22),Da(3," \xa0Save Image "),Ys()}if(2&e){const e=aa();Ws("disabled",e.savingMap||!e.areGraphicsDrawn),uo(1),Ws("ngIf",e.savingMap),uo(1),Ws("ngIf",!e.savingMap)}}function vT(e,t){if(1&e){const e=ta();Js(0,"div"),Js(1,"label",32),Da(2),Ys(),Js(3,"ng-multiselect-dropdown",33),ia("onSelect",function(){return Ot(e),aa(3).otherFilterChange()})("ngModelChange",function(t){Ot(e);const n=aa().index;return aa(2).otherFilterOutput[n]=t}),Ys(),Ys()}if(2&e){const e=aa(),t=e.$implicit,n=e.index,r=aa(2);uo(1),da("for","",r.panelController.panelSide,"-map-",t.label,""),uo(1),La("",t.label,":"),uo(1),da("id","",r.panelController.panelSide,"-map-",t.label,""),Ws("settings",r.dropdownSettings)("data",t.input)("ngModel",r.otherFilterOutput[n])("disabled",r.disabledDropdowns)}}function bT(e,t){if(1&e&&(Js(0,"div",31),js(1,vT,4,9,"div",22),Ys()),2&e){const e=t.$implicit;uo(1),Ws("ngIf",e.input.length>1)}}function CT(e,t){if(1&e&&(Js(0,"div",28),js(1,bT,2,1,"div",29),$s(2,"div",30),Ys()),2&e){const e=aa();ua("id",e.panelController.panelSide+"OtherFilters"),uo(1),Ws("ngForOf",e.otherFilterOptions)}}function BT(e,t){1&e&&$s(0,"span",34)}function ET(e,t){if(1&e){const e=ta();Js(0,"li",46),ia("click",function(){const t=Ot(e).$implicit;return aa(3).setTimePeriod1AndDraw(t,null)}),Js(1,"button",47),Da(2),Ys(),Ys()}if(2&e){const e=t.$implicit;uo(2),La(" ",e,"")}}const _T=function(e){return{disabled:e}};function FT(e,t){if(1&e&&(Js(0,"div",36),Js(1,"button",42),Da(2),$s(3,"span",43),Ys(),Js(4,"ul",44),js(5,ET,3,1,"li",45),Ys(),Ys()),2&e){const e=aa(2);uo(1),ha("id","",e.panelController.panelSide,"TimePeriod1Dropdown"),ua("title",e.mapData.timePeriod1Title+" Dropdown"),Ws("ngClass",MA(6,_T,!e.areGraphicsDrawn)),uo(1),La(" ",e.mapData.displayTimePeriod1," "),uo(2),Gs("aria-labelledby","",e.panelController.panelSide,"TimePeriod1Dropdown"),uo(1),Ws("ngForOf",e.mapData.timePeriod1List)}}function xT(e,t){if(1&e){const e=ta();Js(0,"li",46),ia("click",function(){const t=Ot(e).$implicit;return aa(3).setTimePeriod2AndDraw(t)}),Js(1,"button",47),Da(2),Ys(),Ys()}if(2&e){const e=t.$implicit;uo(2),La(" ",e,"")}}function TT(e,t){if(1&e&&(Js(0,"div",36),Js(1,"button",48),Da(2),$s(3,"span",43),Ys(),Js(4,"ul",44),js(5,xT,3,1,"li",45),Ys(),Ys()),2&e){const e=aa(2);uo(1),ha("id","",e.panelController.panelSide,"TimePeriod2Dropdown"),ua("title",e.mapData.timePeriod2Title+" Dropdown"),Ws("ngClass",MA(6,_T,!e.areGraphicsDrawn)),uo(1),La(" ",e.mapData.displayTimePeriod2," "),uo(2),Gs("aria-labelledby","",e.panelController.panelSide,"TimePeriod2Dropdown"),uo(1),Ws("ngForOf",e.mapData.timePeriod2List)}}const QT=function(e,t,n,r){return{"two-drop-ups-one-panel":e,"one-drop-up-one-panel":t,"two-drop-ups-two-panels":n,"one-drop-up-two-panels":r}};function ST(e,t){if(1&e){const e=ta();Js(0,"div",35),Js(1,"div",36),js(2,FT,6,8,"div",37),js(3,TT,6,8,"div",37),Js(4,"button",38),ia("click",function(){return Ot(e),aa().previousTimeUnit()}),$s(5,"fa-icon",18),Ys(),Js(6,"button",39),ia("click",function(){return Ot(e),aa().startMapAnimation()}),$s(7,"fa-icon",18),Ys(),Js(8,"button",40),ia("click",function(){return Ot(e),aa().stopMapAnimation()}),$s(9,"fa-icon",18),Ys(),Js(10,"button",41),ia("click",function(){return Ot(e),aa().nextTimeUnit()}),$s(11,"fa-icon",18),Ys(),Ys(),Ys()}if(2&e){const e=aa();Ws("ngClass",PA(15,QT,e.twoDropUpsOnePanelShowing(),e.oneDropUpOnePanelShowing(),e.twoDropUpsTwoPanelsShowing(),e.oneDropUpTwoPanelsShowing())),uo(2),Ws("ngIf",e.mapData.timePeriod1List.length>1),uo(1),Ws("ngIf",e.mapData.timePeriod2List&&e.mapData.timePeriod2List.length>1),uo(1),ha("id","",e.panelController.panelSide,"BackOneTimeUnit"),Ws("ngClass",MA(20,_T,!e.areGraphicsDrawn||e.mapAnimation)),uo(1),Ws("icon",e.faChevronLeft),uo(1),ha("id","",e.panelController.panelSide,"StartMapTimeAnimation"),Ws("ngClass",MA(22,_T,!e.areGraphicsDrawn||e.mapAnimation)),uo(1),Ws("icon",e.faPlay),uo(1),ha("id","",e.panelController.panelSide,"StopMapTimeAnimation"),Ws("ngClass",MA(24,_T,!e.areGraphicsDrawn||!e.mapAnimation)),uo(1),Ws("icon",e.faStop),uo(1),ha("id","",e.panelController.panelSide,"ForwardOneTimeUnit"),Ws("ngClass",MA(26,_T,!e.areGraphicsDrawn||e.mapAnimation)),uo(1),Ws("icon",e.faChevronRight)}}function kT(e,t){if(1&e){const e=ta();Js(0,"label",49),ia("click",function(){return Ot(e),aa().extentChange()}),Js(1,"input",50),ia("ngModelChange",function(t){return Ot(e),aa().panelController.indexController.mapsLinked=t}),Ys(),$s(2,"fa-icon",18),Ys()}if(2&e){const e=aa();uo(1),Ws("ngModel",e.panelController.indexController.mapsLinked),uo(1),Ws("icon",e.faChain)}}function UT(e,t){if(1&e&&$s(0,"map-legend",52),2&e){const e=aa(2);ua("unit",e.mapData.unit),Ws("legendColors",e.legend.colors)}}function DT(e,t){if(1&e&&(Js(0,"div",0),js(1,UT,1,2,"map-legend",51),Ys()),2&e){const e=aa();ua("id",e.panelController.panelSide+"Legend"),uo(1),Ws("ngIf",e.mapConfig.showLegend)}}function OT(e,t){if(1&e){const e=ta();Js(0,"div"),Js(1,"div",53),Js(2,"div",54),Js(3,"button",55),ia("click",function(){return Ot(e),aa().panelController.editDataOptions()}),$s(4,"fa-icon",18),Da(5),Ys(),Ys(),$s(6,"div",21),Ys(),Js(7,"div",56),$s(8,"fa-icon",18),Da(9,"\xa0No results found. "),Ys(),Ys()}if(2&e){const e=aa();uo(3),ua("title",e.panelController.editDataOptionsText()),uo(1),Ws("icon",e.faCogs),uo(1),La("\xa0",e.panelController.editDataOptionsText()," "),uo(3),Ws("icon",e.faExclamationTriangle)}}function LT(e,t){if(1&e&&(Js(0,"li"),Da(1),Ys()),2&e){const e=t.$implicit;uo(1),Oa(e)}}function IT(e,t){if(1&e){const e=ta();Js(0,"div"),Js(1,"div",53),Js(2,"div",54),Js(3,"button",55),ia("click",function(){return Ot(e),aa().panelController.editDataOptions()}),$s(4,"fa-icon",18),Da(5),Ys(),Ys(),$s(6,"div",21),Ys(),$s(7,"fa-icon",18),Da(8,"\xa0Maps are unavailable for the following reason(s): "),Js(9,"ul"),js(10,LT,2,1,"li",57),Ys(),Ys()}if(2&e){const e=aa();uo(3),ua("title",e.panelController.editDataOptionsText()),uo(1),Ws("icon",e.faCogs),uo(1),La("\xa0",e.panelController.editDataOptionsText()," "),uo(2),Ws("icon",e.faExclamationTriangle),uo(3),Ws("ngForOf",e.mapConfig.errorList)}}function HT(e,t){if(1&e&&(Js(0,"div"),Js(1,"div",58),$s(2,"fa-icon",18),Da(3,"\xa0Run a query to view maps "),Ys(),Ys()),2&e){const e=aa();uo(2),Ws("icon",e.faInfoCircle)}}function MT(e,t){if(1&e&&(Js(0,"div"),$s(1,"div",59),Ys()),2&e){const e=aa();uo(1),Ws("innerHTML",e.panelController.footnotes,ai)}}function RT(e,t){if(1&e&&(Js(0,"li"),Da(1),Ys()),2&e){const e=t.$implicit;uo(1),Oa(e)}}function NT(e,t){if(1&e&&(Js(0,"div"),Js(1,"div",74),Js(2,"ul"),js(3,RT,2,1,"li",57),Ys(),Ys(),Ys()),2&e){const e=aa(2);uo(3),Ws("ngForOf",e.modalErrorList)}}function PT(e,t){if(1&e){const e=ta();Js(0,"div",60),Js(1,"button",61),ia("click",function(){return Ot(e).$implicit.dismiss()}),Js(2,"span",62),Da(3,"\xd7"),Ys(),Ys(),Js(4,"h4",63),Da(5,"Find Location"),Ys(),Ys(),Js(6,"div",64),Js(7,"div",65),js(8,NT,4,1,"div",22),Js(9,"div"),Js(10,"button",66),ia("click",function(){return Ot(e),aa().zoomToMyLocation()}),$s(11,"fa-icon",18),Da(12,"\xa0Show My Location "),Ys(),Ys(),Js(13,"div",67),Da(14,"- OR -"),Ys(),Js(15,"div"),Js(16,"div"),Da(17,"Search by street address"),Ys(),Js(18,"div",68),Js(19,"input",69),ia("ngModelChange",function(t){return Ot(e),aa().modalAddress=t}),Ys(),Js(20,"label",70),Da(21,"Enter Address for geolocation on Map"),Ys(),Js(22,"span",71),Js(23,"button",66),ia("click",function(){return Ot(e),aa().zoomToAddress()}),$s(24,"fa-icon",18),Da(25,"\xa0Zoom To Address "),Ys(),Ys(),Ys(),Ys(),Ys(),$s(26,"div",30),Ys(),Js(27,"div",72),Js(28,"button",73),ia("click",function(){return Ot(e).$implicit.dismiss()}),Da(29,"Cancel"),Ys(),Ys()}if(2&e){const e=aa();uo(8),Ws("ngIf",e.modalErrorList.length>0),uo(3),Ws("icon",e.faMapMarker),uo(8),Ws("ngModel",e.modalAddress),uo(5),Ws("icon",e.faMapMarker)}}function KT(e,t){if(1&e){const e=ta();Js(0,"mi-map-options",75),ia("mapConfigChange",function(t){return Ot(e),aa().mapConfig=t})("michMapChange",function(t){return Ot(e),aa().michMap=t})("closeModalEventEmitter",function(){return Ot(e),aa().dismissOptionsModal()}),Ys()}if(2&e){const e=aa();Ws("mapConfig",e.mapConfig)("currentMapFeature",e.currentFeatureLayer)("side",e.panelController.panelSide)("michMap",e.michMap)}}let VT=(()=>{class e{constructor(e,t,n,r,i,o,s,a,l){this.dataService=e,this.featureLayerService=t,this.httpService=n,this.mapLinkService=r,this.baseUrl=i,this.modalService=o,this.overlayService=s,this.websiteMetricService=a,this.decimalPipe=l,this.queryResult=null,this.wkid=102100,this.faMap=Sp,this.faSpinner=Dp,this.faCogs=Fp,this.faDownload=bp,this.faChevronLeft=pp,this.faPlay=kp,this.faStop=Op,this.faChevronRight=fp,this.faThumbTack=Ip,this.faChain=xp,this.faExclamationTriangle=Mp,this.faInfoCircle=yp,this.faMapMarker=Tp,this.isActivated=!0,this.animationTimeIndex=0,this.mapData=new eT,this.legend=new rT,this.mapConfig={display:"runQuery",featureLayers:[],errorList:[],showTitle:!0,showSmoke:!1,showRadar:!1,showToggleCollegePOI:!1,overlayUrl:"",showLegend:!0,linkActive:!0,printDisabled:!0},this.response={queryOptions:void 0,querySelections:void 0,measure:void 0,results:void 0},this.measureData={titleWithQuery:"",emptyValueLabel:"",unit:"",isPointGeography:!1,hasDisplayType:!1,displayTypeValues:void 0,featureLayers:void 0,hasSuppressionType:!1,suppressionTypeValues:void 0},this.mapAnimation=null,this.address="",this.michMap=null,this.usedLegendEntries={},this.miTrackColors={bucketColor:void 0,noData:void 0,unselected:void 0},this.areGraphicsDrawn=!1,this.groupedData=[],this.otherFilterOptions=[],this.otherFilters=[],this.currentDataGrouping=[],this.hasOtherFilters=!1,this.otherFilterOutput=[],this.template={exportOptions:void 0,format:void 0,preserveScale:void 0},this.params={map:void 0,template:void 0},this.savingMap=!1,this.disabledDropdowns=!1,this.isAllValuesIntegers=!1,this.modalAddress="",this.modalErrorList=[],this.dropdownSettings={singleSelection:!0,idField:"id",textField:"name",allowSearchFilter:!0,closeDropDownOnSelection:!0}}ngOnInit(){this.areGraphicsDrawn=!1,setTimeout(()=>{this.activate(),this.setup()},500)}activate(){this.michMapDeferer=B_.defer(),this.mapConfig={errorList:[],showLegend:!0,showTitle:!0,showSmoke:!1,showRadar:!1,showToggleCollegePOI:!1,overlayUrl:"",featureLayers:[],linkActive:!1,display:"runQuery",printDisabled:!0},Yx.setDefaultOptions({version:"3.21",css:!0}),Yx.loadModules(["esri/geometry/Extent","esri/SpatialReference"]).then(([e,t])=>{const n=new t(this.wkid);this.miTrackExtent=new e(-10095e3,5071e3,-9073800,6171650,n)})}setup(){this.updateFilterAndReprocessDataDebounced=hm(this.updateFilterAndReprocessData,50),this.areGraphicsDrawn=!1,this.michMap||Yx.loadModules(["esri/map","dojo/domReady!"]).then(([e,t])=>{setTimeout(()=>{this.michMap=new e(this.panelController.panelSide,{basemap:"topo",center:[44.3,85.6],zoom:10,logo:!1}),this.michMap.on("extent-change",()=>{this.michMap.loaded&&this.extentChange()}),this.michMap.on("load",()=>{this.michMapDeferer.resolve(this.michMap),this.michMap.disableScrollWheelZoom(),t.dom.byId("stopScrollWheelZoom").value=this.michMap.isScrollWheelZoom}),this.mapLinkService.onUpdateCallback(this.panelController.panelSide,e=>{this.michMap&&(this.michMap.hideZoomSlider(),this.michMap.disableDoubleClickZoom(),this.michMap.disableRubberBandZoom(),this.michMap.disablePan(),this.panelController.indexController.mapExtentEventList.push(this.panelController.panelSide),this.michMap.setExtent(e))})})},()=>{this.changeMapOperationalStatus(!1)}),this.queryResult&&this.panelController.panelSide===this.queryResult.panelSide&&this.queryHandler(this.queryResult),this.dataService.getClearDataEvent().subscribe(e=>{this.panelController.panelSide===e&&(this.clearMapData(),this.mapConfig.display="runQuery",this.mapConfig.errorList=[])})}ngOnDestroy(){this.clearMapData(),this.overlayService.onDestroy(this.panelController.panelSide)}clearMapData(){this.featureLayerService.clearFeatureLayerGraphicCache(),this.mapData={selectedData:[],displayTimePeriod1:"",displayTimePeriod2:"",isPointMap:!1,otherFilters:[],selectedTimePeriod1:"",selectedTimePeriod2:"",timePeriod1List:[],timePeriod1Title:"",timePeriod2List:[],timePeriod2Title:"",timePeriodCombinations:[],title:"",data:[],emptyValueLabel:"",valueLabel:"",extraDataLabels:new Zx,buckets:[],selectedGeographicAreas:[],possibleGeographicAreas:[],unit:"m/s",hasGeographicGroupings:!1,possibleGeographicGroupings:[],otherFilterLabels:{OtherFilter9Text:"",OtherFilter4Text:"",OtherFilter10Text:"",OtherFilter3Text:"",OtherFilter1Text:"",OtherFilter2Text:"",OtherFilter5Text:"",OtherFilter8Text:"",OtherFilter7Text:"",OtherFilter6Text:""}},this.mapConfig.errorList=["An unknown error occurred while processing your query. Wait a few seconds, then try your query again. If the error persists, try again at a later time."],this.changeMapOperationalStatus(!1)}dataUriToBlob(e,t){let n=atob(e.split(",")[1]),r=[];for(let i=0;i<n.length;i++)r.push(n.charCodeAt(i));return new Blob([new Uint8Array(r)],{type:t})}extentChange(){if(this.michMap&&(this.michMap.showZoomSlider(),this.michMap.enableDoubleClickZoom(),this.michMap.enableRubberBandZoom(),this.michMap.enablePan()),this.michMap.extent){let e=this.michMap.extent.getCenter();if(this.miTrackExtent.contains(e)){if(this.panelController.indexController.mapsLinked){const e=this.panelController.indexController.mapExtentEventList;Hm(e,e=>e===this.panelController.panelSide)?e.splice(e.indexOf(this.panelController.panelSide),1):this.mapLinkService.updateExtent(this.panelController.panelSide,this.michMap.extent)}}else this.resetMapExtent()}}oneDropUpOnePanelShowing(){let e=this.mapData.timePeriod1List.length>1;const t=this.mapData.timePeriod2List&&this.mapData.timePeriod2List.length>1;return(e&&!t||!e&&t)&&!(this.panelController.indexController.leftPanelVisible&&this.panelController.indexController.rightPanelVisible)}twoDropUpsOnePanelShowing(){return this.mapData.timePeriod1List.length>1&&this.mapData.timePeriod2List&&this.mapData.timePeriod2List.length>1&&!(this.panelController.indexController.leftPanelVisible&&this.panelController.indexController.rightPanelVisible)}oneDropUpTwoPanelsShowing(){const e=this.mapData.timePeriod1List.length>1,t=this.mapData.timePeriod2List&&this.mapData.timePeriod2List.length>1;return(e&&!t||!e&&t)&&this.panelController.indexController.leftPanelVisible&&this.panelController.indexController.rightPanelVisible}twoDropUpsTwoPanelsShowing(){return this.mapData.timePeriod1List.length>1&&this.mapData.timePeriod2List&&this.mapData.timePeriod2List.length>1&&this.panelController.indexController.leftPanelVisible&&this.panelController.indexController.rightPanelVisible}drawMapFeatures(e){if(this.featureLayer=e,this.michMap.getLayer(this.panelController.panelSide+"_mapGraphic")&&(this.michMap.removeLayer(this.michMap.getLayer(this.panelController.panelSide+"_mapGraphic"),this.michMap.getLayer(this.panelController.panelSide+"_mapGraphic").getNode()),this.michMap.layerIds.splice(this.michMap.layerIds.indexOf(this.panelController.panelSide+"_mapGraphic"),1)),e){this.michMap.infoWindow.hide();const t=e.layer.graphics;if(null!==this.mapData){const n=this.mapData.buckets;Yx.loadModules(["esri/symbols/SimpleFillSymbol","esri/symbols/SimpleLineSymbol","esri/symbols/PictureFillSymbol","esri/Color","esri/InfoTemplate"]).then(([r,i,o,s,a])=>{const l=[],A=new i(i.STYLE_SOLID,new s([0,0,0,.6]),e.borderWidth);for(let e=0;e<this.miTrackColors.bucketColor.length;e++)l.push(new r(r.STYLE_SOLID,A,this.miTrackColors.bucketColor[e]));const c=new r(r.STYLE_SOLID,A,this.miTrackColors.noData),u=new r(r.STYLE_SOLID,A,this.miTrackColors.unselected),h=new o("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAPUlEQVQYV2NkYGD4z8DAwMiAH/yHKcCnGCyHbBI2xXAxdCuRFaNoxOY2kAIQQJEjWyFRVhPlGaKCh6gABwBcgBIJDnDinwAAAABJRU5ErkJggg==",A,10,10),d={};this.measureData.hasSuppressionType&&this.measureData.suppressionTypeValues.forEach(e=>{d[e.SuppressionTypeCode]=new o(e.Base64EncodedImage,A,10,10)});for(let p=0;p<t.length;p++){const r=t[p],i=r.attributes[e.matchingAttributeKey];let o=null;for(let e=0;e<this.mapData.selectedData.length;e++){const t=this.mapData.selectedData[e];if(t.id===i){o=t;break}}let s=!1;null===o&&(s=this.mapData.selectedGeographicAreas.indexOf(i)<0);const A=new a;if(A.setTitle(this.mapData.selectedTimePeriod2&&this.mapData.hasGeographicGroupings?this.mapData.possibleGeographicGroupings[i]+" ${"+e.matchingAttributeName+"} - "+this.mapData.selectedTimePeriod1+" / "+this.mapData.selectedTimePeriod2:this.mapData.selectedTimePeriod2&&!this.mapData.hasGeographicGroupings?"${"+e.matchingAttributeName+"} - "+this.mapData.selectedTimePeriod1+" / "+this.mapData.selectedTimePeriod2:!this.mapData.selectedTimePeriod2&&this.mapData.hasGeographicGroupings?this.mapData.possibleGeographicGroupings[i]+" ${"+e.matchingAttributeName+"} - "+this.mapData.selectedTimePeriod1:"${"+e.matchingAttributeName+"} - "+this.mapData.selectedTimePeriod1),null===o){if(!s){r.setSymbol(c),r.attributes[this.mapData.valueLabel]="No data available.",A.setContent("<div>No data were available for this geographic area.</div>"),r.setInfoTemplate(A);continue}if(s){r.setSymbol(u),r.attributes[this.mapData.valueLabel]="Unselected Geographic Area.",A.setContent("<div>This geographic area was unselected.</div>"),r.setInfoTemplate(A);continue}}if(null!==o.value){r.attributes[this.mapData.valueLabel]=o.displayValue;for(let e=0;e<n.length;e++)if(this.isValueInBucket(n[e],o.value,e===n.length-1||this.isAllValuesIntegers||n[e].singleValueBucket)){r.setSymbol(l[e]),A.setContent(this.buildHtmlInfoTemplateContent(this.mapData,o)),r.setInfoTemplate(A);break}}else{if(this.measureData.hasSuppressionType){const t=xm(this.measureData.suppressionTypeValues,e=>e.SuppressionTypeCode===o.suppressionTypeCode);r.setSymbol(d[o.suppressionTypeCode]),r.attributes[this.mapData.valueLabel]=t.SuppressionTypeValue,A.setTitle(this.mapData.selectedTimePeriod2?"${"+e.matchingAttributeName+"}** - "+this.mapData.selectedTimePeriod1+" / "+this.mapData.selectedTimePeriod2:"${"+e.matchingAttributeName+"}** - "+this.mapData.selectedTimePeriod1),A.setContent(this.buildHtmlInfoTemplateContent(this.mapData,o)),r.setInfoTemplate(A);continue}r.setSymbol(h),r.attributes[this.mapData.valueLabel]=this.mapData.emptyValueLabel,A.setTitle(this.mapData.selectedTimePeriod2?"${"+e.matchingAttributeName+"}** - "+this.mapData.selectedTimePeriod1+" / "+this.mapData.selectedTimePeriod2:"${"+e.matchingAttributeName+"}** - "+this.mapData.selectedTimePeriod1),A.setContent(this.buildHtmlInfoTemplateContent(this.mapData,o)),r.setInfoTemplate(A)}}setTimeout(()=>{e.layer.id=this.panelController.panelSide+"_mapGraphic",e.layer.opacity=this.currentFeatureLayer?this.currentFeatureLayer.opacity:1,this.currentFeatureLayer=e.layer,this.michMap.addLayer(e.layer,0),this.michMap.layerIds.push(e.layer.id)})})}}else if(this.mapData.isPointMap)for(let t=0;t<this.mapData.selectedData.length;t++)this.addPoint(this.mapData.selectedData[t]);this.areGraphicsDrawn||(this.areGraphicsDrawn=!0)}buildHtmlInfoTemplateContent(e,t){return"<div> <b>"+e.valueLabel+": ${"+e.valueLabel+"} </b>"+(e.otherFilterLabels.OtherFilter1Text?" <br> "+e.otherFilterLabels.OtherFilter1Text+": "+t.otherFilter1+" ":"")+(e.otherFilterLabels.OtherFilter10Text?" <br> "+e.otherFilterLabels.OtherFilter10Text+": "+t.otherFilter10+" ":"")+(e.otherFilterLabels.OtherFilter2Text?" <br> "+e.otherFilterLabels.OtherFilter2Text+": "+t.otherFilter2+" ":"")+(e.otherFilterLabels.OtherFilter3Text?" <br> "+e.otherFilterLabels.OtherFilter3Text+": "+t.otherFilter3+" ":"")+(e.otherFilterLabels.OtherFilter4Text?" <br> "+e.otherFilterLabels.OtherFilter4Text+": "+t.otherFilter4+" ":"")+(e.otherFilterLabels.OtherFilter5Text?" <br> "+e.otherFilterLabels.OtherFilter5Text+": "+t.otherFilter5+" ":"")+(e.otherFilterLabels.OtherFilter6Text?" <br> "+e.otherFilterLabels.OtherFilter6Text+": "+t.otherFilter6+" ":"")+(e.otherFilterLabels.OtherFilter7Text?" <br> "+e.otherFilterLabels.OtherFilter7Text+": "+t.otherFilter7+" ":"")+(e.otherFilterLabels.OtherFilter8Text?" <br> "+e.otherFilterLabels.OtherFilter8Text+": "+t.otherFilter8+" ":"")+(e.otherFilterLabels.OtherFilter9Text?" <br> "+e.otherFilterLabels.OtherFilter9Text+": "+t.otherFilter9+" ":"")+(e.extraDataLabels.ExtraneousData1Text?" <br> "+e.extraDataLabels.ExtraneousData1Text+": "+t.extraData1+" ":"")+(e.extraDataLabels.ExtraneousData2Text?" <br>"+e.extraDataLabels.ExtraneousData2Text+": "+t.extraData2+" ":"")+(e.extraDataLabels.ExtraneousData3Text?" <br>"+e.extraDataLabels.ExtraneousData3Text+": "+t.extraData3+" ":"")+(e.extraDataLabels.ExtraneousData4Text?" <br>"+e.extraDataLabels.ExtraneousData4Text+": "+t.extraData4+" ":"")+(e.extraDataLabels.ExtraneousData5Text?" <br>"+e.extraDataLabels.ExtraneousData5Text+": "+t.extraData5+" </div>":"</div>")}buildHtmlInfoTemplateContentForPoints(e,t){return(this.measureData.hasDisplayType?"<div> <b>"+e.valueLabel+": "+t.displayValue+" </b>":"<div> <b>"+e.valueLabel+": "+t.value+" </b>")+(e.otherFilterLabels.OtherFilter1Text?" <br> "+e.otherFilterLabels.OtherFilter1Text+": "+t.otherFilter1+" ":"")+(e.otherFilterLabels.OtherFilter10Text?" <br> "+e.otherFilterLabels.OtherFilter10Text+": "+t.otherFilter10+" ":"")+(e.otherFilterLabels.OtherFilter2Text?" <br> "+e.otherFilterLabels.OtherFilter2Text+": "+t.otherFilter2+" ":"")+(e.otherFilterLabels.OtherFilter3Text?" <br> "+e.otherFilterLabels.OtherFilter3Text+": "+t.otherFilter3+" ":"")+(e.otherFilterLabels.OtherFilter4Text?" <br> "+e.otherFilterLabels.OtherFilter4Text+": "+t.otherFilter4+" ":"")+(e.otherFilterLabels.OtherFilter5Text?" <br> "+e.otherFilterLabels.OtherFilter5Text+": "+t.otherFilter5+" ":"")+(e.otherFilterLabels.OtherFilter6Text?" <br> "+e.otherFilterLabels.OtherFilter6Text+": "+t.otherFilter6+" ":"")+(e.otherFilterLabels.OtherFilter7Text?" <br> "+e.otherFilterLabels.OtherFilter7Text+": "+t.otherFilter7+" ":"")+(e.otherFilterLabels.OtherFilter8Text?" <br> "+e.otherFilterLabels.OtherFilter8Text+": "+t.otherFilter8+" ":"")+(e.otherFilterLabels.OtherFilter9Text?" <br> "+e.otherFilterLabels.OtherFilter9Text+": "+t.otherFilter9+" ":"")+(e.extraDataLabels.ExtraneousData1Text?" <br> "+e.extraDataLabels.ExtraneousData1Text+": "+t.extraData1+" ":"")+(e.extraDataLabels.ExtraneousData2Text?" <br>"+e.extraDataLabels.ExtraneousData2Text+": "+t.extraData2+" ":"")+(e.extraDataLabels.ExtraneousData3Text?" <br>"+e.extraDataLabels.ExtraneousData3Text+": "+t.extraData3+" ":"")+(e.extraDataLabels.ExtraneousData4Text?" <br>"+e.extraDataLabels.ExtraneousData4Text+": "+t.extraData4+" ":"")+(e.extraDataLabels.ExtraneousData5Text?" <br>"+e.extraDataLabels.ExtraneousData5Text+": "+t.extraData5+" </div>":"</div>")}resetMapExtent(){this.michMap&&(window.setTimeout(()=>{this.michMap.setExtent(this.miTrackExtent)},15),this.michMap.infoWindow.hide())}resizeMap(){if(this.michMap){const e=this.michMap.extent;window.setTimeout(()=>{this.michMap.setExtent(e)},15)}}prepPrintRoutine(e){null===(e=e||null)?this.mapConfig.printDisabled=!0:(this.mapConfig.printDisabled=!1,Yx.loadModules(["esri/tasks/PrintTask","esri/tasks/PrintTemplate","esri/tasks/PrintParameters"]).then(([t,n,r])=>{this.printTask=new t(e),this.template=new n,this.params=new r}))}saveMap(){var e,t;this.savingMap=!0,this.websiteMetricService.createWebsiteMetricAction(new I_({Action:M_.SaveImage,Tab:this.panelController.selectedTab,Information:(null===(t=null===(e=this.queryResult)||void 0===e?void 0:e.measure)||void 0===t?void 0:t.titleWithQuery)+"-JPEG"})).subscribe();const n="#"+this.panelController.panelSide+"-display-Panel",r="#"+this.panelController.panelSide+"-display-Panel .tab-content";this.template.exportOptions={width:Wx(n).width(),height:Wx(n).height()},this.template.format="JPG",this.template.preserveScale=!0,this.params.map=this.michMap,this.params.template=this.template,this.zoomTo(1,1,"","",()=>{let e=".data-options-buttons",t=".esriSimpleSlider",n=".map-link";this.hideElement(e),this.hideElement(t),this.hideElement(n),setTimeout(()=>{Jx(Wx(r)[0],{logging:!1,windowWidth:this.template.exportOptions.width,windowHeight:this.template.exportOptions.height,proxy:this.baseUrl+"Export/ProxyImg"}).then(e=>{dF.saveAs(this.dataUriToBlob(e.toDataURL("image/jpg"),"image/jpg"),"mitracking-map.jpg")}).finally(()=>{window.setTimeout(()=>{this.showElement(e),this.showElement(t),this.showElement(n),this.showElement("#animationOptions"),this.michMap.resize(!0),this.savingMap=!1},500)})},2e3)})}hideElement(e){let t=document.querySelector(e);t&&(t.style.visibility="hidden")}showElement(e){let t=document.querySelector(e);t&&(t.style.visibility="inherit")}changeMapOperationalStatus(e){this.mapConfig.display=e?"displayInfo":"noInfo","left"===this.panelController.panelSide&&(this.panelController.indexController.leftMapDrawn=e),"right"===this.panelController.panelSide&&(this.panelController.indexController.rightMapDrawn=e)}getLegendColors(e,t){var n=this;return this.httpService.post(this.baseUrl+"Map/GetLegendColors",{legendColorGroupId:e,isColorReversed:t}).toPromise().then(function(){var e=zx(function*(e){if(null===e)throw new Error("Error loading map colors.");let[t]=yield Yx.loadModules(["esri/Color"]);n.miTrackColors={bucketColor:[],noData:new t([64,64,64,.6]),unselected:new t([192,192,192,.6])};for(let r=0;r<e.legendColors.length;r++)n.miTrackColors.bucketColor.push(new t([e.legendColors[r].Red,e.legendColors[r].Green,e.legendColors[r].Blue,e.legendColors[r].Alpha]))});return function(t){return e.apply(this,arguments)}}())}updateMapConfig(){return this.httpService.post(this.baseUrl+"Map/GetMapConfig",this.dataService.getLastQueryRequest()).toPromise().then(e=>{if(null===e)throw new Error("Error loading map configuration.");this.mapConfig.errorList=e.ErrorList,this.mapConfig.showLegend=!0,this.mapConfig.showTitle=!0,this.changeMapOperationalStatus(e.MapEnabled)})}isValueInBucket(e,t,n){return t>=e.bucketMin&&t<e.bucketMax||n&&t===e.bucketMax}calculateBuckets(e){let t=this.legend.configuration.NumberOfBucketsInLegend;t||(t=5),this.isAllValuesIntegers=!0;const n=[],r=em(e).map(e=>e.MeasureValue).filter(e=>e||0===e).value(),i=em(r).unique().sortBy(e=>e).each(e=>{this.isAllValuesIntegers&&e%1!=0&&(this.isAllValuesIntegers=!1)});let o=i.min().value(),s=i.max().value();if(i.size().value()<=t&&!this.measureData.hasDisplayType)i.map(e=>{n.push({bucketMin:e,bucketMax:e,singleValueBucket:!0})});else if(4===this.legend.configuration.LegendAlgorithmSeq)this.isAllValuesIntegers=this.legend.configuration.IsInteger,em(this.legend.configuration.LegendDefinitions).sortBy(e=>e.LegendPosition).each((e,t)=>{const r=this.measureData.hasDisplayType?xm(this.measureData.displayTypeValues,t=>t.DisplayTypeCode===e.MinimumValue).DisplayTypeValue:null;let i={bucketMin:"number"==typeof e.MinimumValue?e.MinimumValue:o,bucketMax:"number"==typeof e.MaximumValue?e.MaximumValue:s,displayBucketMin:r,displayBucketMax:r,singleValueBucket:!1};i.bucketMin>=i.bucketMax&&(0===t?i.bucketMin=i.bucketMax:i.bucketMax=i.bucketMin,i.singleValueBucket=!0),n.push(i)});else if(this.measureData.hasDisplayType)for(let a=0;a<this.measureData.displayTypeValues.length;a++){const e=this.measureData.displayTypeValues[a],t=e.DisplayTypeCode,r=e.DisplayTypeValue;n.push({bucketMin:t,bucketMax:t,displayBucketMin:r,displayBucketMax:r,singleValueBucket:!0})}else{let e=new Xx(r),i=[];1===this.legend.configuration.LegendAlgorithmSeq?i=e.getClassEqInterval(t):2===this.legend.configuration.LegendAlgorithmSeq?i=e.getClassQuantile(t):3===this.legend.configuration.LegendAlgorithmSeq&&(i=e.getClassJenks(t));for(let t=0;t<i.length-1;t++)n.push(this.isAllValuesIntegers?{bucketMin:Math.ceil(i[t]),bucketMax:Math.floor(i[t+1]),singleValueBucket:!1}:{bucketMin:Math.round(100*i[t])/100,bucketMax:Math.round(100*i[t+1])/100,singleValueBucket:!1})}return n}maximumDataElements(e){return e.length*this.groupedData.length*(this.mapData.timePeriod1List&&this.mapData.timePeriod1List.length?this.mapData.timePeriod1List.length:1)*(this.mapData.timePeriod2List&&this.mapData.timePeriod2List.length?this.mapData.timePeriod2List.length:1)}determineWhatLegendEntriesShouldDisplay(e){const t={hasSuppressedData:!1,hasNoResultsData:!1,hasUnselectedGeographicAreas:!1,hasUsedLegendBucketArray:[],usedSuppressionReasons:[]},n=e.buckets;return Qm(n,e=>{t.hasUsedLegendBucketArray.push(!1)}),Qm(e.data,e=>{if(null===e.MeasureValue)t.hasSuppressedData=!0,this.measureData.hasSuppressionType&&-1===t.usedSuppressionReasons.indexOf(e.SuppressionTypeCode)&&t.usedSuppressionReasons.push(e.SuppressionTypeCode);else for(let r=0;r<n.length;r++){let i=r===n.length-1;(4===this.legend.configuration.LegendAlgorithmSeq||this.isValueInBucket(n[r],e.MeasureValue,i||this.isAllValuesIntegers||n[r].singleValueBucket)||this.measureData.hasDisplayType)&&(t.hasUsedLegendBucketArray[r]=!0)}}),t.hasNoResultsData=e.data.length%this.maximumDataElements(e.selectedGeographicAreas)!=0,t.hasUnselectedGeographicAreas=e.selectedGeographicAreas.length!==e.possibleGeographicAreas.length,t}buildMapLegend(e,t){let n=[],r=0,i=0;for(let o=0;o<t.length;o++)if(i=0===r?t[o].bucketMin:r,e.hasUsedLegendBucketArray[o]){const e=this.miTrackColors.bucketColor[o];let s;s=this.measureData.hasDisplayType?isNaN(t[o].displayBucketMin)?t[o].displayBucketMin:this.decimalPipe.transform(t[o].displayBucketMin):t[o].singleValueBucket?(isNaN(t[o].bucketMin)?t[o].bucketMin:this.decimalPipe.transform(t[o].bucketMin))+"":o===t.length-1||this.isAllValuesIntegers?`${isNaN(i)?i:this.decimalPipe.transform(i)} - ${isNaN(t[o].bucketMax)?t[o].bucketMax:this.decimalPipe.transform(t[o].bucketMax)}`:`${isNaN(i)?i:this.decimalPipe.transform(i)} - < ${isNaN(t[o].bucketMax)?t[o].bucketMax:this.decimalPipe.transform(t[o].bucketMax)}`,n.push({style:{"background-color":this.convertEsriColorToRGBA(e)},label:s}),r=0}else 0===r&&(r=t[o].bucketMin);return e.hasNoResultsData&&n.push({style:{"background-color":this.convertEsriColorToRGBA(this.miTrackColors.noData)},label:"No Results"}),e.hasSuppressedData&&(this.measureData.hasSuppressionType?(e.usedSuppressionReasons.sort(),e.usedSuppressionReasons.forEach(e=>{var t=this.measureData.suppressionTypeValues.find(t=>t.SuppressionTypeCode===e);n.push({style:{background:`url(${t.Base64EncodedImage})`},label:t.SuppressionTypeValue})})):n.push({style:{background:"url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAPUlEQVQYV2NkYGD4z8DAwMiAH/yHKcCnGCyHbBI2xXAxdCuRFaNoxOY2kAIQQJEjWyFRVhPlGaKCh6gABwBcgBIJDnDinwAAAABJRU5ErkJggg==)"},label:this.mapData.emptyValueLabel})),e.hasUnselectedGeographicAreas&&n.push({style:{"background-color":this.convertEsriColorToRGBA(this.miTrackColors.unselected)},label:"Unselected"}),n}convertEsriColorToRGBA(e){return"RGBA("+e.r+", "+e.g+", "+e.b+", "+e.a+")"}addPoint(e){Yx.loadModules(["esri/geometry/Point","esri/symbols/SimpleMarkerSymbol","esri/symbols/SimpleLineSymbol","esri/Color","esri/graphic","esri/InfoTemplate"]).then(([t,n,r,i,o,s])=>{const a=new t({latitude:e.latitude,longitude:e.longitude}),l=[],A=new r(r.STYLE_SOLID,new i([0,0,0,1]),.6);for(let e=0;e<this.miTrackColors.bucketColor.length;e++)l.push(new n(n.STYLE_DIAMOND,20,A,this.miTrackColors.bucketColor[e]));const c=new o(a,l),u=new s;u.setTitle(null!==e.value?this.mapData.selectedTimePeriod2?e.geographicArea+" - "+this.mapData.selectedTimePeriod1+" / "+this.mapData.selectedTimePeriod2:e.geographicArea+" - "+this.mapData.selectedTimePeriod1:this.mapData.selectedTimePeriod2?e.geographicArea+"** - "+this.mapData.selectedTimePeriod1+" / "+this.mapData.selectedTimePeriod2:e.geographicArea+"** - "+this.mapData.selectedTimePeriod1);for(let h=0;h<this.mapData.buckets.length;h++)if(this.isValueInBucket(this.mapData.buckets[h],e.value,h===this.mapData.buckets.length-1||this.isAllValuesIntegers||this.mapData.buckets[h].singleValueBucket)){c.setSymbol(l[h]),u.setContent(this.buildHtmlInfoTemplateContentForPoints(this.mapData,e)),c.setInfoTemplate(u);break}this.michMap.graphics.add(c)})}processData(){var e=this;return zx(function*(){e.mapData.displayTimePeriod1=e.mapData.selectedTimePeriod1,e.mapData.displayTimePeriod2=e.mapData.selectedTimePeriod2;const t=new Zx,n=new $x;for(let r=0;r<e.response.results.headers.length;r++)"Value"===e.response.results.headers[r].ColumnType?e.mapData.valueLabel=e.response.results.headers[r].ColumnLabel:"ExtraneousData"===e.response.results.headers[r].ColumnType?t[e.response.results.headers[r].MappedColumnName]=e.response.results.headers[r].ColumnLabel:"Filter"===e.response.results.headers[r].ColumnType?n[e.response.results.headers[r].MappedColumnName]=e.response.results.headers[r].ColumnLabel:"TimePeriod1"===e.response.results.headers[r].ColumnType?e.mapData.timePeriod1Title=e.response.results.headers[r].ColumnLabel:"TimePeriod2"===e.response.results.headers[r].ColumnType&&(e.mapData.timePeriod2Title=e.response.results.headers[r].ColumnLabel);e.mapData.extraDataLabels=t,e.mapData.otherFilterLabels=n,e.mapData.selectedData=em(e.currentDataGrouping).filter(t=>t.TimePeriod1Text===e.mapData.selectedTimePeriod1&&t.TimePeriod2Text===e.mapData.selectedTimePeriod2).map(e=>({id:e.GeographicAreaID,value:e.MeasureValue,displayValue:e.MeasureDisplayValue,otherFilter1:e.OtherFilter1Text,otherFilter2:e.OtherFilter2Text,otherFilter3:e.OtherFilter3Text,otherFilter4:e.OtherFilter4Text,otherFilter5:e.OtherFilter5Text,otherFilter6:e.OtherFilter6Text,otherFilter7:e.OtherFilter7Text,otherFilter8:e.OtherFilter8Text,otherFilter9:e.OtherFilter9Text,otherFilter10:e.OtherFilter10Text,extraData1:e.ExtraneousData1Text,extraData2:e.ExtraneousData2Text,extraData3:e.ExtraneousData3Text,extraData4:e.ExtraneousData4Text,extraData5:e.ExtraneousData5Text,latitude:e.Latitude,longitude:e.Longitude,geographicArea:e.GeographicArea,geographicGrouping:e.GeographicGrouping,suppressionTypeCode:e.SuppressionTypeCode})).value(),e.michMapDeferer.promise.then(()=>{e.michMap.graphics.clear(),setTimeout(()=>{if(e.mapData.isPointMap)window.setTimeout(()=>e.drawMapFeatures,0,!1);else{e.mapConfig.featureLayers=[];const t=e.measureData.featureLayers;for(let n=0;n<t.length;n++)t[n].arcgisEndpointURL&&(e.mapConfig.featureLayers.push(t[n]),e.featureLayerService.getFeatureLayerGraphicsAsync(e.panelController.panelSide,t[n],e.mapData.possibleGeographicAreas).then(t=>{e.drawMapFeatures(t)}))}})},500)})()}setTimePeriod1AndDraw(e,t){this.mapData.selectedTimePeriod1=e,this.mapData.timePeriod2List=this.mapData.timePeriodCombinations[0]&&this.mapData.timePeriodCombinations[0].TimePeriod2Text?qm(hy(Sm(Om(this.mapData.timePeriodCombinations,e=>e.TimePeriod1Text===this.mapData.selectedTimePeriod1),e=>e.TimePeriod2Text))).reverse():null,this.setTimePeriod2AndDraw(t)}setTimePeriod2AndDraw(e){this.mapData.selectedTimePeriod2=e||(this.mapData.timePeriod2List?oy(this.mapData.timePeriod2List):null),this.processData()}nextTimeUnit(){this.mapAnimation||this.selectNewTimeUnitOnPreexistingData(!0)}incrementTimeUnitIndex(){this.animationTimeIndex===this.mapData.timePeriodCombinations.length-1?this.animationTimeIndex=0:this.animationTimeIndex++}previousTimeUnit(){this.mapAnimation||this.selectNewTimeUnitOnPreexistingData(!1)}decrementTimeUnitIndex(){0===this.animationTimeIndex?this.animationTimeIndex=this.mapData.timePeriodCombinations.length-1:this.animationTimeIndex--}startMapAnimation(){this.mapAnimation||(this.selectNewTimeUnitOnPreexistingData(!0),this.runMapAnimation())}runMapAnimation(){this.disabledDropdowns=!0,this.mapAnimation=window.setInterval(()=>{this.selectNewTimeUnitOnPreexistingData(!0)},2500)}selectNewTimeUnitOnPreexistingData(e){this.animationTimeIndex=bm(this.mapData.timePeriodCombinations,e=>e.TimePeriod1Text===this.mapData.selectedTimePeriod1&&e.TimePeriod2Text===this.mapData.selectedTimePeriod2),e?this.incrementTimeUnitIndex():this.decrementTimeUnitIndex(),this.mapData.timePeriodCombinations[this.animationTimeIndex].TimePeriod1Text!==this.mapData.selectedTimePeriod1?this.setTimePeriod1AndDraw(this.mapData.timePeriodCombinations[this.animationTimeIndex].TimePeriod1Text,this.mapData.timePeriodCombinations[this.animationTimeIndex].TimePeriod2Text):this.mapData.timePeriodCombinations[this.animationTimeIndex].TimePeriod2Text!==this.mapData.selectedTimePeriod2&&this.setTimePeriod2AndDraw(this.mapData.timePeriodCombinations[this.animationTimeIndex].TimePeriod2Text)}stopMapAnimation(){this.mapAnimation&&(clearInterval(this.mapAnimation),this.mapAnimation=void 0,this.disabledDropdowns=!1)}createOtherFilterDropdowns(e){let t=e.map(e=>{let t=e.CodeSchemeValues.map((e,t)=>({id:e,name:e}));return{label:e.OtherFilterDisplayName,column:e.MappedColumnName,input:t}}),n=0;for(;n<t.length;)t[n].input.length<=1?t.splice(n,1):n++;return t.forEach((e,t)=>{this.otherFilterOutput[t]=e.input.slice(0,1)}),t}groupData(e,t){if(!t)return[];this.otherFilterOptions=this.createOtherFilterDropdowns(t);let n=Wm(e,e=>{let n="";for(let r=1;r<=10;r++){let i=r-1,o="OtherFilter"+r+"Text";e[o]&&i<t.length&&t[i].CodeSchemeValues.length>1&&(n+=e[o]+" - ")}return n}),r=[];return Qm(n,(e,t)=>{r.push({key:t,data:e})}),r}leftPad(e,t,n){for(e=e.toString();e.length<t;)e=n+e;return e.length>t&&(e=e.substring(e.length-t)),e}zoomToAddress(){this.modalAddress?this.zoomMapToAddress(this.modalAddress).then(()=>{close()},e=>{this.modalErrorList=e}):this.modalErrorList=["No address entered."]}zoomToMyLocation(){this.zoomMapToMyLocation().then(()=>{close()},e=>{this.modalErrorList=e})}zoomTo(e,t,n,r,i){this.michMap&&Yx.loadModules(["esri/geometry/Point","esri/symbols/PictureMarkerSymbol","esri/graphic","esri/InfoTemplate"]).then(([o,s,a,l])=>{const A=new o(e,t);let c=new a(A,new s({imageData:"PHN2ZyAgZm9jdXNhYmxlPSJmYWxzZSIgd2lkdGg9IjE3OTIiIGhlaWdodD0iMTc5MiIgdmlld0JveD0iMCAwIDE3OTIgMTc5MiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTE1MiA2NDBxMC0xMDYtNzUtMTgxdC0xODEtNzUtMTgxIDc1LTc1IDE4MSA3NSAxODEgMTgxIDc1IDE4MS03NSA3NS0xODF6bTI1NiAwcTAgMTA5LTMzIDE3OWwtMzY0IDc3NHEtMTYgMzMtNDcuNSA1MnQtNjcuNSAxOS02Ny41LTE5LTQ2LjUtNTJsLTM2NS03NzRxLTMzLTcwLTMzLTE3OSAwLTIxMiAxNTAtMzYydDM2Mi0xNTAgMzYyIDE1MCAxNTAgMzYyeiIvPjwvc3ZnPg==",type:"esriPMS",yOffset:11.25,width:22.5,height:22.5,contentType:"image/svg+xml"}));const u=new l(n,r);c.setInfoTemplate(u),this.michMap.graphics.add(c),this.michMap.centerAndZoom(A,14),i&&setTimeout(()=>{i()},2e3)})}zoomMapToMyLocation(){let e=B_.defer();return navigator.geolocation?navigator.geolocation.getCurrentPosition(t=>{const n=new Date,r=(n.getHours()%12==0?12:n.getHours()%12)+":"+this.leftPad(n.getMinutes(),2,"0")+" "+(n.getHours()<12?"AM":"PM");this.zoomTo(t.coords.longitude,t.coords.latitude,"My Location","<div>Latitude: "+t.coords.latitude+"</div><div>Longitude: "+t.coords.longitude+"</div><div>Time Retrieved: "+r+"</div>"),e.resolve()},t=>{let n=[];switch(t.code){case 1:n.push("Location permission was denied. Unable to determine your location.");break;case 2:n.push("We were unable to determine your location. Try again later.");break;default:n.push("An error occured while trying to determine your location. Try again later.")}e.reject(n)},{maximumAge:6e5,enableHighAccuracy:!1}):e.reject(["Your browser does not support geolocation."]),e.promise}zoomMapToAddress(e){let t=B_.defer();return this.httpService.get(this.baseUrl+"Map/Geocode?address="+e).subscribe(e=>{if(e&&e.success){let n=JSON.parse(e.data).result;if(n.addressMatches&&n.addressMatches.length)if(n.addressMatches.length>1){let e=["We found multiple locations that could match your entered address. Enter one of the following addresses to resolve the ambiguity."],r=Nm(n.addressMatches,"matchedAddress");e=e.concat(r),t.reject(e)}else{let e=n.addressMatches[0];e.coordinates?(this.zoomTo(e.coordinates.x,e.coordinates.y,"Street Address","<div>Address: "+e.matchedAddress+"</div>"),t.resolve()):t.reject(["We found a matching address, but were unable to find it's location. Try an alternate address nearby."])}else t.reject(["We were unable to find a location matching that address. Check your spelling, or provide additional details if possible."])}else t.reject([e.message])}),t.promise}showLocationModal(){this.modalService.open(this.locationModal,{backdrop:"static"})}updateFilterAndReprocessData(){const e=(this.otherFilterOptions.length>=1&&this.otherFilterOutput[0][0].name?this.otherFilterOutput[0][0].name+" - ":"")+(this.otherFilterOptions.length>=2&&this.otherFilterOutput[1][0].name?this.otherFilterOutput[1][0].name+" - ":"")+(this.otherFilterOptions.length>=3&&this.otherFilterOutput[2][0].name?this.otherFilterOutput[2][0].name+" - ":"")+(this.otherFilterOptions.length>=4&&this.otherFilterOutput[3][0].name?this.otherFilterOutput[3][0].name+" - ":"")+(this.otherFilterOptions.length>=5&&this.otherFilterOutput[4][0].name?this.otherFilterOutput[4][0].name+" - ":"")+(this.otherFilterOptions.length>=6&&this.otherFilterOutput[5][0].name?this.otherFilterOutput[5][0].name+" - ":"")+(this.otherFilterOptions.length>=7&&this.otherFilterOutput[6][0].name?this.otherFilterOutput[6][0].name+" - ":"")+(this.otherFilterOptions.length>=8&&this.otherFilterOutput[7][0].name?this.otherFilterOutput[7][0].name+" - ":"")+(this.otherFilterOptions.length>=9&&this.otherFilterOutput[8][0].name?this.otherFilterOutput[8][0].name+" - ":"")+(this.otherFilterOptions.length>=10&&this.otherFilterOutput[9][0].name?this.otherFilterOutput[9][0].name+" - ":"");if(e&&""!==e){let t=Tm(this.groupedData,{key:e});this.currentDataGrouping=t?t.data:[],this.processData()}}otherFilterChange(){this.updateFilterAndReprocessDataDebounced()}queryHandler(e){if(this.michMap)for(this.stopMapAnimation(),this.michMap.infoWindow.hide();this.michMap.graphicsLayerIds.length>0;)this.michMap.removeLayer(this.michMap.getLayer(this.michMap.graphicsLayerIds[0]));this.updateMapConfig().then(()=>{var t,n,r,i;e.results&&e.measure&&e.results.headers&&e.results.data&&e.results.data.length?(this.response=e,this.mapData.data=em(e.results.data).filter(e=>"000"!==e.GeographicAreaID&&"999"!==e.GeographicAreaID).value(),this.otherFilters=null===(t=null==e?void 0:e.queryOptions)||void 0===t?void 0:t.otherFilters,this.measureData=e.measure,this.mapData.title=this.measureData.titleWithQuery,this.mapData.emptyValueLabel=this.measureData.emptyValueLabel,this.mapData.unit=this.measureData.unit,this.mapData.isPointMap=this.measureData.isPointGeography,this.mapData.possibleGeographicAreas=Om(null===(n=this.response.queryOptions)||void 0===n?void 0:n.geographicAreaIds,e=>"000"!==e&&"999"!==e),this.mapData.selectedGeographicAreas=Om(null===(i=null===(r=this.response)||void 0===r?void 0:r.querySelections)||void 0===i?void 0:i.geographicAreaIds,e=>"000"!==e&&"999"!==e),this.mapData.timePeriodCombinations=this.mapData.data[0]&&this.mapData.data[0].TimePeriod1Text?qm(qm(hy(Sm(this.mapData.data,e=>({comboKey:e.TimePeriod1Text+e.TimePeriod2Text,TimePeriod1Text:e.TimePeriod1Text,TimePeriod2Text:e.TimePeriod2Text})),(e,t,n)=>e.comboKey),"TimePeriod2Text"),"TimePeriod1Text"):[],this.mapData.timePeriod1List=this.mapData.timePeriodCombinations&&this.mapData.timePeriodCombinations[0]&&this.mapData.timePeriodCombinations[0].TimePeriod1Text?qm(hy(Sm(this.mapData.timePeriodCombinations,e=>e.TimePeriod1Text))).reverse():[],this.mapData.selectedTimePeriod1=this.mapData.timePeriod1List?oy(this.mapData.timePeriod1List):null,this.legend.configuration=this.response.measure.mapLegendConfiguration,this.mapData.buckets=this.calculateBuckets(this.mapData.data),this.groupedData=this.groupData(this.mapData.data,e.queryOptions.otherFilters),this.currentDataGrouping=this.groupedData.length>0?this.groupedData[0].data:[],this.hasOtherFilters=this.groupedData.length>1,this.usedLegendEntries=this.determineWhatLegendEntriesShouldDisplay(this.mapData),0===this.mapData.data.length&&e.results.data.length>0&&(this.mapConfig.errorList=["Maps are not available for this geographic area selection."],this.mapData.data=[null],this.changeMapOperationalStatus(!1)),this.getLegendColors(this.legend.configuration.LegendColorGroupSeq,this.legend.configuration.IsColorReversed).then(()=>{this.legend.colors=this.buildMapLegend(this.usedLegendEntries,this.mapData.buckets),this.setTimePeriod1AndDraw(this.mapData.selectedTimePeriod1,null),this.prepPrintRoutine(this.measureData.featureLayers[0]?this.measureData.featureLayers[0].arcgisPrintServer:null)})):this.clearMapData()})}openOptionsModal(){this.modal=this.modalService.open(this.optionsModal)}dismissOptionsModal(){var e;null===(e=this.modal)||void 0===e||e.close()}}return e.\u0275fac=function(t){return new(t||e)(zs(D_),zs(oT),zs(Jd),zs(sT),zs("BASE_URL"),zs(ab),zs(aT),zs(Ty),zs(Pu))},e.\u0275cmp=Ge({type:e,selectors:[["mi-map"]],viewQuery:function(e,t){if(1&e&&(uc(fT,5,mA),uc(gT,5,mA)),2&e){let e;cc(e=dc())&&(t.locationModal=e.first),cc(e=dc())&&(t.optionsModal=e.first)}},inputs:{panelController:"panelController",queryResult:"queryResult"},decls:33,vars:26,consts:[[3,"id"],[3,"hidden"],["role","group",1,"btn-group","data-options-buttons"],["type","button",1,"btn","btn-primary","editQueryButtonWidth","data-option-button",3,"disabled","title","click"],["aria-hidden","true",1,"button-icon",3,"icon"],[1,"download-element",3,"queryResult","selectedTab"],["type","button","aria-label","Save map as JPEG","class","btn btn-primary data-option-button",3,"disabled","click",4,"ngIf"],["type","button",1,"btn","btn-primary","data-option-button",3,"disabled","id","click"],["tab","'Map'",3,"displayTitle","panelSide","showTitle","id"],["class","row map-other-filter-bar",3,"id",4,"ngIf"],[1,"row","no-gutters"],[1,"map-container","col-12",2,"min-height","500px","position","relative",3,"id"],[1,"loading-spinner-container"],["class","spinner-border spinner-border-md text-primary","aria-hidden","true",4,"ngIf"],["id","animationOptions","class","animation-options",3,"ngClass",4,"ngIf"],[1,"map-link"],[1,"btn-group"],["aria-label","Find Location","title","Find Location",1,"btn","btn-secondary",3,"click"],["aria-hidden","true",3,"icon"],["class","btn btn-secondary mb-0","ngbButtonLabel","","aria-label","Synchronize Map Views","title","Synchronize Map Views",3,"click",4,"ngIf"],[3,"id",4,"ngIf"],["aria-hidden","true",1,"clearfix"],[4,"ngIf"],["locationModal",""],["optionsModal",""],["type","button","aria-label","Save map as JPEG",1,"btn","btn-primary","data-option-button",3,"disabled","click"],["aria-hidden","true",3,"spin","icon"],[1,"button-icon",3,"icon"],[1,"row","map-other-filter-bar",3,"id"],["class","col-lg-3 col-sm-6 col-12 customMultiSelect",4,"ngFor","ngForOf"],[1,"clearfix"],[1,"col-lg-3","col-sm-6","col-12","customMultiSelect"],[3,"for"],[3,"id","settings","data","ngModel","disabled","onSelect","ngModelChange"],["aria-hidden","true",1,"spinner-border","spinner-border-md","text-primary"],["id","animationOptions",1,"animation-options",3,"ngClass"],["role","group",1,"btn-group"],["class","btn-group","role","group",4,"ngIf"],["type","button","title","Back One Time Unit","attr.aria-label","Back One Time Unit","aria-haspopup","true","aria-expanded","false",1,"btn","btn-secondary","map-button",3,"id","ngClass","click"],["type","button","title","Start Map Time Animation","attr.aria-label","Start Map Time Animation","aria-haspopup","true","aria-expanded","false",1,"btn","btn-secondary","map-button",3,"id","ngClass","click"],["type","button","title","Stop Map Time Animation","attr.aria-label","Stop Map Time Animation","aria-haspopup","true","aria-expanded","false",1,"btn","btn-secondary","map-button",3,"id","ngClass","click"],["type","button","title","Forward One Time Unit","attr.aria-label","Forward One Time Unit","aria-haspopup","true","aria-expanded","false",1,"btn","btn-secondary","map-button",3,"id","ngClass","click"],["type","button","data-toggle","dropdown","aria-label","Select Time Period","aria-haspopup","true","aria-expanded","false",1,"btn","btn-secondary","dropdown-toggle","map-button",2,"display","inline-block","min-width","40px",3,"id","title","ngClass"],[1,"caret"],["role","menu",1,"dropdown-menu","scrollable-menu"],["role","presentation",3,"click",4,"ngFor","ngForOf"],["role","presentation",3,"click"],["role","menuitem",1,"dropdown-item"],["type","button","data-toggle","dropdown","aria-haspopup","true","aria-expanded","false","aria-label","Select Second Time Period",1,"btn","btn-secondary","dropdown-toggle","map-button",2,"display","inline-block","min-width","40px",3,"id","title","ngClass"],["ngbButtonLabel","","aria-label","Synchronize Map Views","title","Synchronize Map Views",1,"btn","btn-secondary","mb-0",3,"click"],["type","checkbox","ngbButton","","hidden","true",3,"ngModel","ngModelChange"],[3,"legendColors","unit",4,"ngIf"],[3,"legendColors","unit"],[1,"bottomMargin"],[1,"pull-left"],["type","button",1,"btn","btn-primary",3,"title","click"],["role","alert","tabindex","0",1,"alert","alert-warning"],[4,"ngFor","ngForOf"],["role","alert","tabindex","0",1,"alert","alert-info","col-12"],[1,"footnotes",3,"innerHTML"],[1,"modal-header"],["type","button","aria-label","Close",1,"close",3,"click"],["aria-hidden","true"],["id","search-results-header","tabindex","0",1,"modal-title"],[1,"modal-body"],[1,"col-12"],[1,"btn","btn-primary",3,"click"],[1,"center-emphaize"],[1,"input-group"],["id","addressInput","placeholder","1234 Example Street, Lansing, MI",1,"form-control",3,"ngModel","ngModelChange"],["for","addressInput",1,"sr-only"],[1,"input-group-btn"],[1,"modal-footer"],[1,"btn","btn-secondary","float-right",3,"click"],[1,"alert","alert-danger"],[3,"mapConfig","currentMapFeature","side","michMap","mapConfigChange","michMapChange","closeModalEventEmitter"]],template:function(e,t){1&e&&(Js(0,"div",0),Js(1,"div",1),Js(2,"div",2),Js(3,"button",3),ia("click",function(){return t.panelController.editDataOptions()}),$s(4,"fa-icon",4),Da(5),Ys(),$s(6,"download",5),js(7,wT,4,3,"button",6),Js(8,"button",7),ia("click",function(){return t.openOptionsModal()}),Da(9," Options "),Ys(),Ys(),Js(10,"div"),$s(11,"mi-header",8),js(12,CT,3,2,"div",9),Js(13,"div",10),Js(14,"div",11),Js(15,"div",12),js(16,BT,1,0,"span",13),Ys(),js(17,ST,12,28,"div",14),Js(18,"div",15),Js(19,"div",16),Js(20,"button",17),ia("click",function(){return t.showLocationModal()}),$s(21,"fa-icon",18),Ys(),js(22,kT,3,2,"label",19),Ys(),Ys(),js(23,DT,2,2,"div",20),Ys(),Ys(),$s(24,"div",21),Ys(),Ys(),js(25,OT,10,4,"div",22),js(26,IT,11,5,"div",22),js(27,HT,4,1,"div",22),js(28,MT,2,1,"div",22),Ys(),js(29,PT,30,4,"ng-template",null,23,mc),js(31,KT,1,4,"ng-template",null,24,mc)),2&e&&(Ws("id",t.panelController.panelSide+"MapTab"),uo(1),Ws("hidden","displayInfo"!==t.mapConfig.display),uo(2),ua("title",t.panelController.editDataOptionsText()),Ws("disabled",!t.areGraphicsDrawn),uo(1),Ws("icon",t.faCogs),uo(1),La("\xa0",t.panelController.editDataOptionsText(),""),uo(1),Ws("queryResult",t.queryResult)("selectedTab",t.panelController.selectedTab),uo(1),Ws("ngIf",!0===t.panelController.isFileSaverSupported&&0!==t.mapData.data.length&&t.mapData.possibleGeographicAreas.length<=1200&&!t.mapConfig.printDisabled),uo(1),ha("id","",t.panelController.panelSide," + 'MapOptions'"),Ws("disabled",!t.areGraphicsDrawn),uo(3),ua("id",t.panelController.panelSide+"Header"),Ws("displayTitle",t.mapData.title)("panelSide",t.panelController.panelSide)("showTitle",t.mapConfig.showTitle),uo(1),Ws("ngIf",t.hasOtherFilters),uo(2),ua("id",t.panelController.panelSide),uo(2),Ws("ngIf",!t.areGraphicsDrawn&&0===t.mapConfig.errorList.length),uo(1),Ws("ngIf",t.mapData.displayTimePeriod1&&t.mapData.timePeriod1List.length>1||t.mapData.displayTimePeriod2&&t.mapData.timePeriod2List.length>1),uo(4),Ws("icon",t.faThumbTack),uo(1),Ws("ngIf",t.panelController.indexController.viewingSideBySideMaps()),uo(1),Ws("ngIf",t.isActivated),uo(2),Ws("ngIf","noInfo"===t.mapConfig.display),uo(1),Ws("ngIf","mapInfoUnavailable"===t.mapConfig.display),uo(1),Ws("ngIf","runQuery"===t.mapConfig.display),uo(1),Ws("ngIf",t.panelController.footnotes&&t.panelController.footnotes.length>0&&"displayInfo"===t.mapConfig.display))},directives:[qE,wF,Su,bF,Tu,oF,zh,yd,Fu,Ev,Qh,_v,AT,Uh,pT],styles:[".loading-spinner-container{position:absolute;top:50%;left:50%;z-index:9999}.layer-range{height:2rem;cursor:pointer}.esriPopup .sizer{width:30rem!important}.esriPopup .contentPane{max-height:100%!important}"],encapsulation:2}),e})();function GT(e,t){if(1&e){const e=ta();Js(0,"div"),Js(1,"div",3),Js(2,"button",4),ia("click",function(){return Ot(e),aa().panelController.editDataOptions()}),$s(3,"fa-icon",5),Da(4),Ys(),Ys(),$s(5,"mi-header",6),Ys()}if(2&e){const e=aa();uo(2),Ws("title",e.panelController.editDataOptionsText()),uo(1),Ws("icon",e.faCogs),uo(1),La("\xa0",e.panelController.editDataOptionsText()," "),uo(1),Ws("displayTitle",e.title)("panelSide",e.panelController.panelSide)("tab","AboutData")("showTitle",!0)}}function jT(e,t){if(1&e){const e=ta();Js(0,"div"),Js(1,"div",7),Js(2,"button",8),ia("click",function(){return Ot(e),aa().panelController.editDataOptions()}),$s(3,"fa-icon",9),Da(4),Ys(),Ys(),$s(5,"div",10),Js(6,"div",11),$s(7,"fa-icon",9),Da(8,"\xa0No information to display. "),Ys(),Ys()}if(2&e){const e=aa();uo(2),Ws("title",e.panelController.editDataOptionsText()),uo(1),Ws("icon",e.faCogs),uo(1),La("\xa0",e.panelController.editDataOptionsText()," "),uo(3),Ws("icon",e.faInfoCircle)}}function qT(e,t){if(1&e&&(Js(0,"div"),Js(1,"div",11),$s(2,"fa-icon",9),Da(3,"\xa0Run a query to view about these data "),Ys(),Ys()),2&e){const e=aa();uo(2),Ws("icon",e.faInfoCircle)}}function zT(e,t){if(1&e&&(Js(0,"div",12),$s(1,"div",13),$s(2,"div",10),Ys()),2&e){const e=aa();uo(1),Ws("innerHTML",e.content,ai)}}let WT=(()=>{class e{constructor(e){this.changeDetectorRef=e,this.title="",this.content="",this.aboutConfig={display:"runQuery",errorList:[]},this.faCogs=Fp,this.faInfoCircle=yp}ngOnInit(){this.activate()}ngOnChanges(e){e.queryResult&&(this.activate(),this.changeDetectorRef.markForCheck())}activate(){this.aboutConfig={display:"runQuery",errorList:[]},this.setup()}setup(){var e,t,n,r;(null===(e=this.queryResult)||void 0===e?void 0:e.measure)&&this.panelController.panelSide===this.queryResult.panelSide&&(this.title=null===(t=this.queryResult.measure)||void 0===t?void 0:t.title,this.content=null===(n=this.queryResult.measure)||void 0===n?void 0:n.notes,this.aboutConfig.display=(null===(r=this.content)||void 0===r?void 0:r.length)>0?"displayInfo":"noInfo")}}return e.\u0275fac=function(t){return new(t||e)(zs(hA))},e.\u0275cmp=Ge({type:e,selectors:[["mi-about-data"]],inputs:{panelController:"panelController",queryResult:"queryResult"},features:[ct],decls:5,vars:5,consts:[[3,"id"],[4,"ngIf"],["class","footnotes",4,"ngIf"],["role","group",1,"btn-group","data-options-buttons"],["type","button",1,"btn","btn-primary","data-option-button",3,"title","click"],["aria-hidden","true",1,"button-icon",3,"icon"],[3,"displayTitle","panelSide","tab","showTitle"],[1,"float-left"],["type","button",1,"btn","btn-primary","bottomMargin",3,"title","click"],["aria-hidden","true",3,"icon"],["aria-hidden","true",1,"clearfix"],["role","alert","tabindex","0",1,"alert","alert-info","col-12"],[1,"footnotes"],[3,"innerHTML"]],template:function(e,t){1&e&&(Js(0,"div",0),js(1,GT,6,7,"div",1),js(2,jT,9,4,"div",1),js(3,qT,4,1,"div",1),Ys(),js(4,zT,3,1,"div",2)),2&e&&(Ws("id",t.panelController.panelSide+"AboutDataTab"),uo(1),Ws("ngIf","displayInfo"===t.aboutConfig.display),uo(1),Ws("ngIf","noInfo"===t.aboutConfig.display),uo(1),Ws("ngIf","runQuery"===t.aboutConfig.display),uo(1),Ws("ngIf","displayInfo"===t.aboutConfig.display))},directives:[Su,qE,bF],styles:[""]}),e})();function XT(e,t){if(1&e&&$s(0,"mi-table-display",10),2&e){const e=aa();Ws("queryResult",e.queryResult)("querySide",e.panelSide)("panelController",e.panelComponent)}}function JT(e,t){if(1&e&&$s(0,"mi-chart",11),2&e){const e=aa();Ws("queryResult",e.queryResult)("panelController",e.panelComponent)}}function YT(e,t){if(1&e&&$s(0,"mi-map",11),2&e){const e=aa();Ws("queryResult",e.queryResult)("panelController",e.panelComponent)}}function $T(e,t){if(1&e&&$s(0,"mi-about-data",11),2&e){const e=aa();Ws("queryResult",e.queryResult)("panelController",e.panelComponent)}}let ZT=(()=>{class e{constructor(e,t,n){this.dataService=e,this.baseUrl=t,this.changeDetector=n,this.panelSide="left",this.faInfoCircle=yp,this.faTable=Lp,this.faMap=Sp,this.faBarChart=cp,this.selectedTab="selected-table",this.chartDrawn=!1,this.dataOptionsCollapsed=!1,this.measureCollapsed=!1,this.geoTimePeriodsCollapsed=!1,this.otherFiltersCollapsed=!1,this.activeTab=1,this.request={},this.measure={},this.footnotes="",this.messageList=[],this.panelComponent=this,this.isFileSaverSupported=!1,this.queryResult={}}ngOnChanges(e){this.activate()}ngOnInit(){this.setup(),this.activate()}ngAfterViewInit(){try{this.isFileSaverSupported=!!new Blob}catch(PQ){this.isFileSaverSupported=!1}}activate(){this.dataService.getClearDataEvent().subscribe(e=>{e===this.panelSide&&(this.clearQuery(),this.resetTabToTable())})}editDataOptions(){this.filterController.loadFilterQuery(this.request,this.panelSide,!0)}editDataOptionsText(){return this.indexController.rightPanelVisible&&this.indexController.leftPanelVisible?"Edit "+this.toTitleCase(this.panelSide)+" Query":"Edit Data Options"}toTitleCase(e){return e.replace(/\w\S*/g,e=>e.charAt(0).toUpperCase()+e.substr(1).toLowerCase())}selectChart(){this.selectedTab="selected-chart",this.setSelectedTab("chart"),!1===this.chartDrawn&&window.setTimeout(()=>{this.chartDrawn=!0},0)}setSelectedTab(e){"left"===this.panelSide&&(this.indexController.leftSideTab=e),"right"===this.panelSide&&(this.indexController.rightSideTab=e)}selectTable(){this.selectedTab="selected-table",this.setSelectedTab("table")}selectMap(){this.selectedTab="selected-map",this.setSelectedTab("map")}selectAbout(){this.selectedTab="selected-about",this.setSelectedTab("about")}clearQuery(){this.queryResult={}}setup(){"left"===this.panelSide?this.dataService.getLeftQueryResponse().subscribe(e=>this.queryHandler(e),e=>this.queryErrorHandler()):this.dataService.getRightQueryResponse().subscribe(e=>this.queryHandler(e),e=>this.queryErrorHandler())}queryHandler(e){var t;this.queryResult=e,this.queryResult.panelSide=this.panelSide,this.request=this.dataService.getLastQueryRequest(),this.measure=e.measure,this.footnotes=null===(t=e.measure)||void 0===t?void 0:t.footnotes,this.filterController.querySuccess(this.request,this.panelSide),this.chartDrawn&&"selected-chart"!==this.selectedTab&&(this.chartDrawn=!1),this.filterController.queryEnd(),this.chartDrawn="selected-chart"===this.selectedTab,setTimeout(()=>{this.resetTabToTable()})}queryErrorHandler(){this.request=null,this.measure=null,this.footnotes=""}resetTabToTable(){this.activeTab=1,this.selectTable(),this.changeDetector.markForCheck()}}return e.\u0275fac=function(t){return new(t||e)(zs(D_),zs("BASE_URL"),zs(hA))},e.\u0275cmp=Ge({type:e,selectors:[["mi-panel"]],inputs:{indexController:"indexController",filterController:"filterController",panelSide:"panelSide"},features:[ct],decls:24,vars:10,consts:[["ngbNav","",1,"nav-tabs","selected-table",3,"activeId","activeIdChange"],["nav","ngbNav"],["aria-label","Table","heading","Table",3,"ngbNavItem","click"],["ngbNavLink",""],["aria-hidden","true",3,"icon"],["ngbNavContent",""],["aria-label","Chart","heading","Chart",3,"ngbNavItem","click"],["aria-label","Map","heading","Map",3,"ngbNavItem","click"],["aria-label","About These Data","heading","About These Data",3,"ngbNavItem","click"],[1,"pt-4",3,"ngbNavOutlet"],[3,"queryResult","querySide","panelController"],[3,"queryResult","panelController"]],template:function(e,t){if(1&e&&(Js(0,"div"),Js(1,"div",0,1),ia("activeIdChange",function(e){return t.activeTab=e}),Js(3,"div",2),ia("click",function(){return t.selectTable()}),Js(4,"a",3),$s(5,"fa-icon",4),Da(6,"\xa0Table "),Ys(),js(7,XT,1,3,"ng-template",5),Ys(),Js(8,"div",6),ia("click",function(){return t.selectChart()}),Js(9,"a",3),$s(10,"fa-icon",4),Da(11,"\xa0Chart "),Ys(),js(12,JT,1,2,"ng-template",5),Ys(),Js(13,"div",7),ia("click",function(){return t.selectMap()}),Js(14,"a",3),$s(15,"fa-icon",4),Da(16,"\xa0Map "),Ys(),js(17,YT,1,2,"ng-template",5),Ys(),Js(18,"div",8),ia("click",function(){return t.selectAbout()}),Js(19,"a",3),$s(20,"fa-icon",4),Da(21,"\xa0About These Data "),Ys(),js(22,$T,1,2,"ng-template",5),Ys(),Ys(),$s(23,"div",9),Ys()),2&e){const e=qs(2);uo(1),Ws("activeId",t.activeTab),uo(2),Ws("ngbNavItem",1),uo(2),Ws("icon",t.faTable),uo(3),Ws("ngbNavItem",2),uo(2),Ws("icon",t.faBarChart),uo(3),Ws("ngbNavItem",3),uo(2),Ws("icon",t.faMap),uo(3),Ws("ngbNavItem",4),uo(2),Ws("icon",t.faInfoCircle),uo(3),Ws("ngbNavOutlet",e)}},directives:[pb,db,fb,qE,hb,wb,nx,jx,VT,WT],styles:[""]}),e})();const eQ=["filterCollapse"],tQ=["indicatorModal"];function nQ(e,t){if(1&e){const e=ta();Js(0,"p"),Js(1,"ngb-alert",34),ia("closed",function(){const t=Ot(e).$implicit;return aa().closeAlert(t)}),Da(2),Ys(),Ys()}if(2&e){const e=t.$implicit;uo(1),Ws("type",e.type),uo(1),Oa(e.message)}}function rQ(e,t){if(1&e){const e=ta();Js(0,"div"),Js(1,"ngb-alert",34),ia("closed",function(){return Ot(e),aa().closeBanner()}),$s(2,"fa-icon",35),$s(3,"div",36),Ys(),Ys()}if(2&e){const e=aa();uo(1),Ws("type",e.bannerAlert.type),uo(1),Ws("icon",e.faInfoCircle),uo(1),Ws("innerHTML",e.bannerAlert.message,ai)}}function iQ(e,t){if(1&e){const e=ta();Js(0,"div",47),Js(1,"select-list",48),ia("selectedChange",function(t){return Ot(e).$implicit.selected=t}),Ys(),Ys()}if(2&e){const e=t.$implicit;uo(1),Ws("list",null==e?null:e.options)("tooltipText",null==e?null:e.tooltipText)("selected",e.selected)("singleSelection",!1)("label",e.label)}}function oQ(e,t){if(1&e){const e=ta();Js(0,"div"),Js(1,"div",37),Js(2,"div",38),ia("click",function(){return Ot(e),qs(8).toggle()}),$s(3,"fa-icon",3),Js(4,"span",4),Da(5,"Geography & Time Periods "),Ys(),$s(6,"fa-icon",39),Ys(),Js(7,"div",40,41),ia("ngbCollapseChange",function(t){return Ot(e),aa().geoTimePeriodsCollapsed=t}),Js(9,"div",8),Js(10,"select-list",42),ia("selectedChange",function(t){return Ot(e),aa().geographicGroups.selected=t})("handleChanged",function(){return Ot(e),aa().onGeographicGroupingChange()}),Ys(),Js(11,"select-list",43),ia("selectedChange",function(t){return Ot(e),aa().geographicArea.selected=t})("handleChanged",function(){return Ot(e),aa().onGeographicAreaChange()}),Ys(),Js(12,"select-list",43),ia("selectedChange",function(t){return Ot(e),aa().timeConceptOne.selected=t})("handleChanged",function(){return Ot(e),aa().onTimeConceptOneChange()}),Ys(),Js(13,"select-list",42),ia("selectedChange",function(t){return Ot(e),aa().timeConceptTwo.selected=t})("handleChanged",function(){return Ot(e),aa().onTimeConceptTwoChange()}),Ys(),$s(14,"div",15),Ys(),Ys(),Ys(),Js(15,"div",37),Js(16,"div",44),ia("click",function(){return Ot(e),qs(22).toggle()}),$s(17,"fa-icon",3),Js(18,"span",4),Da(19,"Other Filters"),Ys(),$s(20,"fa-icon",39),Ys(),Js(21,"div",40,45),ia("ngbCollapseChange",function(t){return Ot(e),aa().otherFiltersCollapsed=t}),Js(23,"div",8),js(24,iQ,2,5,"div",46),Ys(),$s(25,"div",15),Ys(),Ys(),Ys()}if(2&e){const e=aa();uo(1),Ws("hidden",!e.measure.selected[0]||e.basicQuery||e.cdcQuery),uo(1),Ps("aria-expanded",e.geoTimePeriodsCollapsed),uo(1),Ws("icon",e.faEarthAmerica),uo(3),Ws("icon",e.faChevronDown)("rotate",!1===e.geoTimePeriodsCollapsed?180:void 0),uo(1),Ws("ngbCollapse",e.geoTimePeriodsCollapsed),uo(3),Ws("list",null==e.geographicGroups?null:e.geographicGroups.options)("tooltipText",e.geographicGroups.tooltipText)("selected",e.geographicGroups.selected)("singleSelection",!0)("loading",e.geographicGroups.loading)("label",e.geographicGroups.label)("hidden",!e.geographicGroups.visible),uo(1),Ws("list",null==e.geographicArea?null:e.geographicArea.options)("tooltipText",null==e.geographicArea?null:e.geographicArea.tooltipText)("selected",e.geographicArea.selected)("singleSelection",!1)("loading",e.geographicArea.loading)("label",e.geographicArea.label),uo(1),Ws("list",null==e.timeConceptOne?null:e.timeConceptOne.options)("tooltipText",null==e.timeConceptOne?null:e.timeConceptOne.tooltipText)("selected",e.timeConceptOne.selected)("singleSelection",!1)("loading",e.timeConceptOne.loading)("label",e.timeConceptOne.label),uo(1),Ws("list",null==e.timeConceptTwo?null:e.timeConceptTwo.options)("tooltipText",null==e.timeConceptTwo?null:e.timeConceptTwo.tooltipText)("selected",e.timeConceptTwo.selected)("singleSelection",!1)("loading",e.timeConceptTwo.loading)("label",e.timeConceptTwo.label)("hidden",!e.timeConceptOne.hasConceptTwo),uo(2),Ws("hidden",!e.otherFilters.filters[0]||!e.measure.selected[0]||e.basicQuery||e.cdcQuery),uo(2),Ws("icon",e.faFilter),uo(3),Ws("icon",e.faChevronDown)("rotate",!1===e.otherFiltersCollapsed?180:void 0),uo(1),Ws("ngbCollapse",e.otherFiltersCollapsed),uo(3),Ws("ngForOf",e.otherFilters.filters)}}function sQ(e,t){if(1&e){const e=ta();Js(0,"div",49),Js(1,"span",50),ia("click",function(){return Ot(e),aa().toggleQuerySide("left")}),Da(2,"Left Query"),Ys(),Js(3,"div",51),Js(4,"div",52),ia("keydown",function(t){return Ot(e),aa().onoffKeyDown(t)})("click",function(t){return Ot(e),aa().toggleQuerySide(t)}),Js(5,"input",53),ia("ngModelChange",function(t){return Ot(e),aa().rightActive=t}),Ys(),Js(6,"label",54),Js(7,"div",55),Da(8),Ys(),$s(9,"span",56),$s(10,"span",57),Ys(),Ys(),Ys(),Js(11,"span",58),ia("click",function(){return Ot(e),aa().toggleQuerySide("right")}),Da(12,"Right Query"),Ys(),Ys()}if(2&e){const e=aa();uo(5),Ws("ngModel",e.rightActive),uo(3),La("Currently the query would run on the ",e.rightActive?"right":"left"," side")}}function aQ(e,t){1&e&&$s(0,"span",59)}function lQ(e,t){1&e&&(Js(0,"span"),Da(1,"Switch to Advanced Query"),Ys())}function AQ(e,t){1&e&&(Js(0,"span"),Da(1,"Switch to Basic Query"),Ys())}function cQ(e,t){1&e&&$s(0,"span",59)}function uQ(e,t){if(1&e){const e=ta();Js(0,"div",60),Js(1,"div",61),$s(2,"h3",62),Js(3,"button",63),ia("click",function(){return Ot(e).$implicit.dismiss()}),Js(4,"span",64),Da(5,"\xd7"),Ys(),Ys(),Ys(),Js(6,"div",65),$s(7,"div",66),Ys(),Js(8,"div",67),Js(9,"button",68),ia("click",function(){return Ot(e).$implicit.dismiss()}),Da(10,"Close"),Ys(),Ys(),Ys()}if(2&e){const e=aa();uo(2),Ws("innerHTML",e.indicatorHeader,ai),uo(5),Ws("innerHTML",e.indicatorDescription,ai)}}function hQ(e,t){1&e&&(Js(0,"span",77),Da(1,"Copied!"),Ys())}function dQ(e,t){if(1&e){const e=ta();Js(0,"div",69),Js(1,"span",70),Js(2,"button",71),ia("click",function(){return Ot(e),aa().copyBookmark()}),$s(3,"fa-icon",72),Da(4,"\xa0Copy "),Ys(),Ys(),$s(5,"input",73),Ys(),Js(6,"div",74),js(7,hQ,2,0,"span",75),Js(8,"div",21),Js(9,"a",76),ia("click",function(){return Ot(e),aa(),qs(35).close()}),Da(10,"close"),Ys(),Ys(),Ys()}if(2&e){const e=aa();uo(3),Ws("icon",e.faCopy),uo(2),ua("value",e.bookmarkUrl),uo(2),Ws("ngIf",e.bookmark.copied)}}const pQ=function(e,t,n,r){return{"col-sm-6":e,"col-sm-12":t,activePanel:n,inactivePanel:r}};let fQ=(()=>{class e{constructor(e,t,n,r,i,o,s,a,l){this.dataService=e,this.filterService=t,this.baseUrl=n,this.httpService=r,this.modalService=i,this.changeDetector=o,this.cdcApiService=s,this.geographicAreaService=a,this.websiteMetricService=l,this.rightPanelVisible=!1,this.leftPanelVisible=!1,this.faGears=_p,this.faChevronDown=dp,this.faEarthAmerica=Cp,this.faFilter=Bp,this.faCopy=vp,this.category={options:[],selected:[],loading:!0,tooltipText:""},this.content={options:[],selected:[],loading:!1,tooltipText:""},this.indicator={options:[],selected:[],loading:!1,tooltipText:""},this.measure={options:[],selected:[],loading:!1,tooltipText:""},this.geographicGroups={options:[],selected:[],visible:!1,label:"Geographic Grouping",loading:!1,tooltipText:""},this.timeConceptOne={options:[],selected:[],hasConceptTwo:!1,label:"None",loading:!1,tooltipText:""},this.timeConceptTwo={options:[],selected:[],label:"None",loading:!1,tooltipText:""},this.geographicArea={options:[],selected:[],label:"None",loading:!1,tooltipText:""},this.otherFilters={filters:[]},this.savedOtherFilterData={filters:[]},this.dataOptionsCollapsed=!1,this.measureCollapsed=!1,this.geoTimePeriodsCollapsed=!1,this.otherFiltersCollapsed=!1,this.bookmarkUrl="",this.isCreatingBookmark=!1,this.loadingBookmark={category:!1,content:!1,indicator:!1,measure:!1,geographicGroups:!1,geographicArea:!1,timePeriod1:!1,timePeriod2:!1,otherFilters:!1,shouldRun:!1,timeConceptTwo:!1},this.bookmarkData={ShouldRun:!1},this.bookmark={enablePopover:!1,popoverTemplate:"",copied:!1},this.bookmarkPromise={},this.categoryPromise={},this.bookmarkTempData=[],this.request={},this.rightActive=!1,this.basicQuery=!0,this.cdcQuery=!1,this.isQuerying=!1,this.indicatorHeader="",this.indicatorDescription="",this.filterAlerts=[],this.bannerAlert=new O_,this.faInfoCircle=yp,this.toggleQueryFilter=!1,this.loadingAdvancedQuery=!1,this.callbacks={clearQuery:{}},this.channel=new BroadcastChannel("mi-search-table"),this.onCategoryChange=()=>{this.geoTimePeriodsCollapsed=!1,this.otherFiltersCollapsed=!1,this.clearContent(),this.clearIndicator(),this.clearMeasure(),this.clearGeographicGrouping(),this.clearGeographicArea(),this.clearTimeConceptOne(),this.clearOtherFilters(),this.content.loading=!0;let e=this.category.selected[0]?this.category.selected[0].id:null;e&&this.filterService.getContentAreas(e).then(e=>{if(this.content.loading=!1,this.content.options=e.options,this.selectIfOneOption(this.content),this.loadingBookmark.content)this.bookmarkTempData=[],this.bookmarkTempData.push(this.bookmarkData.Content),this.content.selected=this.preselect(this.content.options,this.bookmarkTempData),this.loadingBookmark.content=!1;else if(this.toggleQueryFilter&&this.requestSide){var t=this.content.options.find(e=>{var t;return e.id===(null===(t=this.requestSide)||void 0===t?void 0:t.Content)});null!=t&&(this.content.selected=[t])}setTimeout(()=>{this.changeDetector.detectChanges()}),this.onContentAreaChange()},()=>{this.content.loading=!1,this.filterAlerts.push({type:"danger",message:"We were unable to load content areas. This could signify a problem with the website, or with your internet connection. Try choosing a different category. If the error continues to persist, try again later."}),this.changeDetector.markForCheck()})},this.onContentAreaChange=()=>{var e,t;this.geoTimePeriodsCollapsed=!1,this.otherFiltersCollapsed=!1,this.clearIndicator(),this.clearMeasure(),this.clearGeographicGrouping(),this.clearGeographicArea(),this.clearTimeConceptOne(),this.clearOtherFilters(),this.indicator.loading=!0,this.content.selected[0]&&(null===(e=this.content.selected[0])||void 0===e?void 0:e.id)&&this.filterService.getIndicators(null===(t=this.content.selected[0])||void 0===t?void 0:t.id).then(e=>{var t;if(this.indicator.loading=!1,this.indicator.options=e.options,this.selectIfOneOption(this.indicator),this.loadingBookmark.indicator)this.bookmarkTempData=[],this.bookmarkTempData.push(this.bookmarkData.Indicator),this.indicator.selected=this.preselect(this.indicator.options,this.bookmarkTempData),this.loadingBookmark.indicator=!1;else if(this.toggleQueryFilter&&this.requestSide){var n=null===(t=this.indicator.options)||void 0===t?void 0:t.find(e=>{var t;return e.id===(null===(t=this.requestSide)||void 0===t?void 0:t.Indicator)});null!=n&&(this.indicator.selected=[n])}setTimeout(()=>{this.changeDetector.detectChanges()}),this.onIndicatorChange()},()=>{this.indicator.loading=!1,this.filterAlerts.push({type:"danger",message:"We were unable to load indicators. This could signify a problem with the website, or with your internet connection. Try choosing a different content area. If the error continues to persist, try again later."}),this.changeDetector.markForCheck()})},this.onIndicatorChange=(e=!0)=>{this.geoTimePeriodsCollapsed=!1,this.otherFiltersCollapsed=!1,this.clearMeasure(),this.clearGeographicGrouping(),this.clearGeographicArea(),this.clearTimeConceptOne(),this.clearOtherFilters();let t=this.indicator.selected[0]?this.indicator.selected[0].id:null;t&&(this.measure.loading=!0,e&&!this.requestSide&&this.filterService.getIndicator(t).then(e=>{this.displayIndicatorPopupIfOne(e)}),this.filterService.getMeasures(t).then(e=>{var t,n;if(this.measure.loading=!1,this.measure.options=e.options,this.selectIfOneOption(this.measure),this.loadingBookmark.measure)this.bookmarkTempData=[],this.bookmarkTempData.push(this.bookmarkData.MeasureSeq),this.measure.selected=this.preselect(this.measure.options,this.bookmarkTempData),this.loadingBookmark.measure=!1;else if(this.toggleQueryFilter&&this.requestSide){var r=null===(n=null===(t=this.measure)||void 0===t?void 0:t.options)||void 0===n?void 0:n.find(e=>{var t;return e.id===(null===(t=this.requestSide)||void 0===t?void 0:t.MeasureSeq)});null!=r&&(this.measure.selected=[r])}setTimeout(()=>{this.changeDetector.detectChanges()}),this.onMeasureChange()},()=>{this.measure.loading=!1,this.filterAlerts.push({type:"danger",message:"We were unable to load measures. This could signify a problem with the website, or with your internet connection. Try choosing a different indicator. If the error continues to persist, try again later."}),this.changeDetector.markForCheck()}))},this.onMeasureChange=()=>{this.geoTimePeriodsCollapsed=!1,this.otherFiltersCollapsed=!1,this.clearTimeConceptOne(),this.clearGeographicGrouping(),this.clearGeographicArea(),this.clearOtherFilters(),this.timeConceptOneDefer=B_.defer(),this.geoGroupingDefer=B_.defer(),this.geographicAreaDefer=B_.defer(),this.timeConceptTwoDefer=B_.defer(),this.otherFilterDefer=B_.defer(),this.timeConceptOne.loading=!0,this.geographicArea.loading=!0;let e=this.measure.selected[0]?this.measure.selected[0].id:null;e?(this.cdcQuery=!!this.measure.selected[0].cdcApiEndpoint,this.filterService.getTimeConceptData(e).then(e=>{var t,n,r;if(this.timeConceptOne.loading=!1,this.timeConceptOne.options=e.timeConceptOne.options,this.timeConceptOne.label=e.timeConceptOne.label,this.timeConceptOne.tooltipText=e.timeConceptOne.description,this.timeConceptOne.selected=[],1===this.timeConceptOne.options.length&&this.selectIfOneOption(this.timeConceptOne),!this.loadingBookmark.timePeriod1&&this.timeConceptOne.options.length>0)for(var i=0;i<this.timeConceptOne.options.length;i++)this.timeConceptOne.selected.includes(this.timeConceptOne.options[i])||this.timeConceptOne.selected.push(this.timeConceptOne.options[i]),this.timeConceptOne.options[i].preSelected=!0;else if((null===(t=this.requestSide)||void 0===t?void 0:t.TimePeriod1Values)&&this.timeConceptOne.options.length>0)for(i=0;i<this.timeConceptOne.options.length;i++)this.timeConceptOne.selected.includes(this.timeConceptOne.options[i])||this.timeConceptOne.selected.push(this.timeConceptOne.options[i]),this.timeConceptOne.options[i].preSelected=!0;else this.loadingBookmark.timePeriod1?(this.timeConceptOne.selected=this.preselect(this.timeConceptOne.options,this.bookmarkData.TimePeriod1Values),this.loadingBookmark.timePeriod1=!1):(null===(n=this.requestSide)||void 0===n?void 0:n.TimePeriod1Values)&&(this.timeConceptOne.selected=this.preselect(this.timeConceptOne.options,null===(r=this.requestSide)||void 0===r?void 0:r.TimePeriod1Values));this.timeConceptOne.selected.length<1&&this.timeConceptOne.options[0]&&(this.timeConceptOne.selected.push(this.timeConceptOne.options[0]),this.timeConceptOne.options[0].preSelected=!0),this.clearTimeConceptTwo(),e.timeConceptTwo?(this.timeConceptOne.hasConceptTwo=!0,this.timeConceptTwo.label=e.timeConceptTwo.label,this.timeConceptTwo.tooltipText=e.timeConceptTwo.description):(this.timeConceptOne.hasConceptTwo=!1,this.timeConceptTwo.label="None",this.timeConceptTwoDefer.resolve()),this.onTimeConceptOneChange(),this.timeConceptOneDefer.resolve(e),this.timeConceptTwoDefer.resolve(e)},()=>{this.timeConceptOne.loading=!1,this.filterAlerts.push({type:"danger",message:"We were unable to load time periods. This could signify a problem with the website, or with your internet connection. Try choosing a different measure. If the error continues to persist, try again later."}),this.changeDetector.markForCheck()})):(this.timeConceptOneDefer.resolve(),this.timeConceptTwoDefer.resolve()),this.filterService.getGeographicGroupings(e).then(t=>{var n,r,i,o;if(t.hasGroupings){if(this.geographicGroups.loading=!1,this.geographicArea.loading=!1,this.geographicGroups.options=t.groupingOptions,this.geographicGroups.tooltipText=t.description,this.geographicGroups.label=t.title,this.geographicGroups.selected=[],this.geographicGroups.visible=!0,this.clearGeographicArea(),this.geographicArea.label="Geographic Area",this.loadingBookmark.geographicGroups){var s=this.bookmarkData.GeographicGroupingSeq,a=this.bookmarkData.GeographicGroupingType;this.geographicGroups.options.forEach(e=>{1===a||"GeographicAreaTypeGrouping"===a?e.id===s&&"GeographicAreaTypeGrouping"===e.extra.type&&(this.geographicGroups.selected.push(e),e.preSelected=!0):Number(e.id.replace(/\D/g,""))===s&&"GeographicAreaType"===e.extra.type&&(this.geographicGroups.selected.push(e),e.preSelected=!0)}),this.loadingBookmark.geographicGroups=!1,this.onGeographicGroupingChange()}else(null===(n=this.requestSide)||void 0===n?void 0:n.GeographicGroupingType)?(s=null===(r=this.requestSide)||void 0===r?void 0:r.GeographicGroupingSeq,a=null===(i=this.requestSide)||void 0===i?void 0:i.GeographicGroupingType,this.geographicGroups.options.forEach(e=>{1===a||"GeographicAreaTypeGrouping"===a?Number(e.id.replace(/\D/g,""))===s&&"GeographicAreaTypeGrouping"===e.extra.type&&(this.geographicGroups.selected.push(e),e.preSelected=!0):Number(e.id.replace(/\D/g,""))===s&&"GeographicAreaType"===e.extra.type&&(this.geographicGroups.selected.push(e),e.preSelected=!0)}),(null===(o=this.geographicGroups.selected)||void 0===o?void 0:o.length)<1&&(this.geographicGroups.selected.push(this.geographicGroups.options[0]),this.geographicGroups.selected[0].preSelected=!0),this.onGeographicGroupingChange()):(this.basicQuery?this.geographicGroups.options.forEach(e=>{(Number(e.id.replace(/\D/g,""))===t.defaultGeographicAreaTypeSeq&&"GeographicAreaType"===e.extra.type||Number(e.id.replace(/\D/g,""))===t.defaultGeographicAreaGroupingTypeSeq&&"GeographicAreaTypeGrouping"===e.extra.type)&&(this.geographicGroups.selected.push(e),e.preSelected=!0)}):this.geographicGroups.options.length>0&&(this.geographicGroups.selected.push(this.geographicGroups.options[0]),this.geographicGroups.selected[0].preSelected=!0),this.onGeographicGroupingChange(),this.changeDetector.markForCheck());this.geoGroupingDefer.resolve(t)}else this.geographicGroups.visible=!1,this.geoGroupingDefer.resolve(t),this.filterService.getGeographicData(e).then(e=>{var t,n,r,i;this.geographicArea.options=e.options,this.geographicArea.tooltipText=e.description,this.geographicArea.label=e.label,this.geographicArea.selected=[],this.selectIfOneOption(this.geographicArea);var o=Hm(this.geographicArea.options,function(e){return e.preSelected});(o||this.loadingBookmark.geographicArea)&&(o||(null===(t=this.requestSide)||void 0===t?void 0:t.GeographicAreaSeqs))?(null===(n=this.requestSide)||void 0===n?void 0:n.GeographicAreaSeqs)?this.geographicArea.selected=this.preselect(this.geographicArea.options,null===(r=this.requestSide)||void 0===r?void 0:r.GeographicAreaSeqs):this.bookmarkData.GeographicAreaSeqs&&(this.geographicArea.selected=this.preselect(this.geographicArea.options,this.bookmarkData.GeographicAreaSeqs),this.loadingBookmark.geographicArea=!1):this.geographicArea.selected=this.geographicArea.options,(null===(i=this.geographicArea.selected)||void 0===i?void 0:i.length)<1&&(this.geographicArea.selected=this.geographicArea.options),this.geographicArea.loading=!1,this.geographicAreaDefer.resolve()},()=>{this.geographicArea.loading=!1,this.filterAlerts.push({type:"danger",message:"We were unable to load geographic areas. This could signify a problem with the website, or with your internet connection. Try choosing a different measure. If the error continues to persist, try again later."}),this.changeDetector.markForCheck()}),setTimeout(()=>{this.changeDetector.detectChanges()}),this.onGeographicAreaChange()}),this.determineOtherFiltersOptions(),this.loadingBookmark.shouldRun&&B_.all([this.timeConceptOneDefer.promise,this.geoGroupingDefer.promise,this.geographicAreaDefer.promise,this.timeConceptTwoDefer.promise,this.otherFilterDefer.promise]).then(()=>{setTimeout(()=>{this.changeDetector.detectChanges()}),0===this.filterAlerts.length&&this.runQuery(),this.loadingBookmark.shouldRun=!1})},this.onGeographicGroupingChange=()=>{var e,t;if(this.geographicGroups.selected.length){var n=oy(this.geographicGroups.selected).id,r=null===(e=oy(this.measure.selected))||void 0===e?void 0:e.id,i=null===(t=this.geographicGroups.options.find(e=>e.id===n))||void 0===t?void 0:t.extra.type;n&&i&&(this.clearGeographicArea(),this.geographicArea.loading=!0,n=n.replace(/\D/g,""),this.filterService.getGeographicDataFromGrouping(r,n,i).then(e=>{var t,n,r,i,o;this.geographicArea.loading=!1,this.geographicArea.options=e.options,this.geographicArea.tooltipText=e.description,this.geographicArea.label=e.label;var s=Hm(this.geographicArea.options,function(e){return e.preSelected});(null===(t=this.requestSide)||void 0===t?void 0:t.GeographicAreaSeqs)?this.geographicArea.selected=E_.cloneDeep(this.preselect(this.geographicArea.options,null===(n=this.requestSide)||void 0===n?void 0:n.GeographicAreaSeqs)):this.bookmarkData.GeographicAreaSeqs?(this.geographicArea.selected=E_.cloneDeep(this.preselect(this.geographicArea.options,this.bookmarkData.GeographicAreaSeqs)),this.loadingBookmark.geographicArea=!1):s||this.loadingBookmark.geographicArea?!s&&(null===(r=this.requestSide)||void 0===r?void 0:r.GeographicAreaSeqs)&&this.geographicArea.options&&(this.geographicArea.selected=E_.cloneDeep(this.geographicArea.options[(null===(i=this.requestSide)||void 0===i?void 0:i.GeographicAreaSeqs)-1])):this.geographicArea.selected=E_.cloneDeep(this.geographicArea.options),(null===(o=this.geographicArea.selected)||void 0===o?void 0:o.length)<1&&(this.geographicArea.selected=this.geographicArea.options),this.onGeographicAreaChange(),this.geographicAreaDefer.resolve()}))}this.loadingAdvancedQueryDefer&&this.loadingAdvancedQueryDefer.resolve(),B_.all([this.geoGroupingDefer.promise,this.geographicAreaDefer.promise]).then(()=>{this.determineOtherFiltersOptions()})},this.onGeographicAreaChange=()=>{this.determineOtherFiltersOptions()},this.onTimeConceptOneChange=()=>{let e=this.timeConceptOne.selected;if(this.timeConceptOne.hasConceptTwo){this.timeConceptTwo.loading=!0;for(var t=[],n=0;n<e.length;n++)t.push(e[n].id);t.length>0?this.filterService.getTimeConceptTwoData(this.measure.selected[0].id,t).then(e=>{var t,n,r;this.timeConceptTwo.loading=!1,this.timeConceptTwo.options=e.options,1===this.timeConceptTwo.options.length&&this.selectIfOneOption(this.timeConceptTwo);var i=Hm(this.timeConceptTwo.options,function(e){return!0===e.preSelected});!this.basicQuery||this.loadingBookmark.timeConceptTwo||i||(this.timeConceptTwo.selected.push(this.timeConceptTwo.options[0]),this.timeConceptTwo.options[0].preSelected=!0),!this.basicQuery||(null===(t=this.requestSide)||void 0===t?void 0:t.TimeConceptTwo)||i?this.loadingBookmark.timePeriod2&&e.options.length?(this.timeConceptTwo.selected=this.preselect(this.timeConceptTwo.options,this.bookmarkData.TimePeriod2Values),this.loadingBookmark.timePeriod2=!1):(null===(n=this.requestSide)||void 0===n?void 0:n.TimePeriod2Values.length)&&e.options.length&&(this.timeConceptTwo.selected=this.preselect(this.timeConceptTwo.options,null===(r=this.requestSide)||void 0===r?void 0:r.TimePeriod2Values),this.timeConceptTwo.selected.length<1&&(this.timeConceptTwo.selected.push(this.timeConceptTwo.options[0]),this.timeConceptTwo.options[0].preSelected=!0)):(this.timeConceptTwo.selected.push(this.timeConceptTwo.options[0]),this.timeConceptTwo.options[0].preSelected=!0),this.onTimeConceptTwoChange(),this.timeConceptTwoDefer.resolve()},()=>{this.timeConceptTwo.loading=!1,this.filterAlerts.push({type:"danger",message:"We were unable to load time periods. This could signify a problem with the website, or with your internet connection. Try choosing a different measure. If the error continues to persist, try again later."}),this.changeDetector.markForCheck()}):(this.timeConceptTwo.loading=!1,this.timeConceptTwoDefer.resolve(),this.timeConceptTwo.options=[])}B_.all([this.timeConceptOneDefer.promise,this.timeConceptTwoDefer.promise]).then(()=>{this.determineOtherFiltersOptions()})},this.onTimeConceptTwoChange=()=>{B_.all([this.timeConceptOneDefer.promise,this.timeConceptTwoDefer.promise]).then(()=>{this.determineOtherFiltersOptions()})},this.onoffKeyDown=e=>{13===e.keyCode&&this.toggleQuerySide()},this.timeConceptOneDefer=B_.defer(),this.geoGroupingDefer=B_.defer(),this.geographicAreaDefer=B_.defer(),this.timeConceptTwoDefer=B_.defer(),this.otherFilterDefer=B_.defer(),this.filterController=this}ngOnInit(){this.setup(),this.activate(),this.createSearchTableListener()}ngOnDestroy(){this.cdcApiService.onDestroy(),this.dataService.onDestroy(),this.geographicAreaService.onDestroy()}ngOnChanges(e){(this.rightPanelVisible||this.leftPanelVisible)&&this.toggleQuerySide(this.rightPanelVisible?"right":"left")}activate(){this.getData(),this.getTooltipsText();var e=this.getParameterByName("bookmark",null);e&&(this.bookmarkPromise=this.filterService.getBookmarks(e).then(e=>{this.bookmarkData=e,this.checkBookmarkLoading(this.bookmarkData),this.loadingBookmark.shouldRun=this.bookmarkData.ShouldRun,this.bookmarkTempData.push(this.bookmarkData.Category),this.basicQuery=e.IsBasicQuery},()=>{this.filterAlerts.push({type:"danger",message:"We were unable to load your bookmark."}),this.changeDetector.markForCheck()}),B_.all([this.bookmarkPromise,this.categoryPromise]).then(()=>{this.category.selected=this.preselect(this.category.options,this.bookmarkTempData),this.loadingBookmark.category=!1,this.onCategoryChange()}))}checkBookmarkLoading(e){if(e.Category&&(this.loadingBookmark.category=!0),e.Content&&(this.loadingBookmark.content=!0),e.Indicator&&(this.loadingBookmark.indicator=!0),e.MeasureSeq&&(this.loadingBookmark.measure=!0),e.GeographicGroupingSeq&&(this.loadingBookmark.geographicGroups=!0),e.GeographicAreaSeqs&&0!==e.GeographicAreaSeqs.length&&(this.loadingBookmark.geographicArea=!0),e.TimePeriod1Values&&0!==e.TimePeriod1Values.length&&(this.loadingBookmark.timePeriod1=!0),e.TimePeriod2Values&&0!==e.TimePeriod2Values.length&&(this.loadingBookmark.timePeriod2=!0),e.OtherFilterValues)for(var t=e.OtherFilterValues,n=1;n<=10;n++)t["OtherFilter"+[n]+"Text"]&&0!==t["OtherFilter"+[n]+"Text"].length&&(this.loadingBookmark.otherFilters=!0)}loadFilterQuery(e,t,n){e&&(n||(this.clearContent(),this.clearIndicator(),this.clearMeasure(),this.clearGeographicGrouping(),this.clearGeographicArea(),this.clearTimeConceptOne(),this.clearTimeConceptTwo(),this.clearOtherFilters(),this.category.selected=[],this.category.loading=!0,this.getData()),this.dataOptionsCollapsed=!1,this.measureCollapsed=!1,this.geoTimePeriodsCollapsed=!1,this.otherFiltersCollapsed=!1,window.scrollTo(0,0),this.bookmarkTempData=[],this.bookmarkData=e,this.checkBookmarkLoading(e),this.bookmarkTempData.push(this.bookmarkData.Category),B_.all([this.bookmarkPromise,this.categoryPromise]).then(()=>{Qm(this.category.options,function(e){e.preSelected=!1}),this.category.selected=this.preselect(this.category.options,this.bookmarkTempData),this.loadingBookmark.category=!1}),t&&this.toggleQuerySide(t))}getData(){this.categoryPromise=this.filterService.getCategories().then(e=>{this.category.options=e.options,this.category.loading=!1})}getTooltipsText(){this.filterService.getTooltips().then(e=>{this.category.tooltipText=e.CategoryTooltip,this.content.tooltipText=e.ContentTooltip,this.indicator.tooltipText=e.indicatorTooltip,this.measure.tooltipText=e.MeasureTooltip})}clearAlerts(){this.filterAlerts=[],this.changeDetector.markForCheck()}closeAlert(e){this.filterAlerts.splice(this.filterAlerts.indexOf(e),1)}closeBanner(){this.bannerAlert=new O_}clearQuery(){var e=this.getSide();this.indexController.mapsLinked=!1,this.clearAlerts(),this.clearContent(),this.clearIndicator(),this.clearMeasure(),this.clearGeographicGrouping(),this.clearGeographicArea(),this.clearTimeConceptOne(),this.clearTimeConceptTwo(),this.clearOtherFilters(),this.dataService.clearPreviousQuery(e),this.request[e]={},this.category.selected=[],this.category.loading=!0,this.getData(),window.setTimeout(function(){})}registerClearQueryCallback(e,t){this.callbacks.clearQuery[t]=()=>e}validateBasicQuery(){var e,t,n,r,i,o,s,a;(null===(t=null===(e=this.category)||void 0===e?void 0:e.selected)||void 0===t?void 0:t.length)?(null===(r=null===(n=this.content)||void 0===n?void 0:n.selected)||void 0===r?void 0:r.length)?(null===(o=null===(i=this.indicator)||void 0===i?void 0:i.selected)||void 0===o?void 0:o.length)?(null===(a=null===(s=this.measure)||void 0===s?void 0:s.selected)||void 0===a?void 0:a.length)||this.filterAlerts.push({type:"danger",message:"Please select a Measure."}):this.filterAlerts.push({type:"danger",message:"Please select an Indicator."}):this.filterAlerts.push({type:"danger",message:"Please select a Content Area."}):this.filterAlerts.push({type:"danger",message:"Please select a Category."}),this.changeDetector.markForCheck()}validateGeographyAndTimePeriod(){var e,t,n,r,i,o,s,a,l,A,c,u,h,d,p,f;this.filterAlerts.length>0||((null===(t=null===(e=this.timeConceptOne)||void 0===e?void 0:e.options)||void 0===t?void 0:t.length)&&!(null===(r=null===(n=this.timeConceptOne)||void 0===n?void 0:n.selected)||void 0===r?void 0:r.length)&&(this.basicQuery&&0===this.filterAlerts.length?this.filterAlerts.push({type:"danger",message:"This measure is not configured for a basic query. Please use an advanced query, or choose a different measure."}):this.basicQuery||this.filterAlerts.push({type:"danger",message:"Please select at least one "+(null===(i=this.timeConceptOne)||void 0===i?void 0:i.label)+"."})),(null===(o=this.timeConceptOne)||void 0===o?void 0:o.hasConceptTwo)&&(null===(a=null===(s=this.timeConceptOne)||void 0===s?void 0:s.selected)||void 0===a?void 0:a.length)&&(null===(A=null===(l=this.timeConceptTwo)||void 0===l?void 0:l.options)||void 0===A?void 0:A.length)&&!(null===(u=null===(c=this.timeConceptTwo)||void 0===c?void 0:c.selected)||void 0===u?void 0:u.length)&&(this.basicQuery&&0===this.filterAlerts.length?this.filterAlerts.push({type:"danger",message:"This measure is not configured for a basic query. Please use an advanced query, or choose a different measure."}):this.basicQuery||this.filterAlerts.push({type:"danger",message:"Please select at least one "+this.timeConceptTwo.label+"."})),(null===(d=null===(h=this.geographicArea)||void 0===h?void 0:h.options)||void 0===d?void 0:d.length)&&!(null===(f=null===(p=this.geographicArea)||void 0===p?void 0:p.selected)||void 0===f?void 0:f.length)&&(this.basicQuery&&0===this.filterAlerts.length?this.filterAlerts.push({type:"danger",message:"This measure is not configured for a basic query. Please use an advanced query, or choose a different measure."}):this.basicQuery||this.filterAlerts.push({type:"danger",message:"Please select at least one "+this.geographicArea.label+"."}))),this.changeDetector.markForCheck()}validateOtherFilters(){var e;null===(e=this.otherFilters)||void 0===e||e.filters.forEach(e=>{e.selected.length||this.basicQuery||0!==this.filterAlerts.length||this.filterAlerts.push({type:"danger",message:"Please select at least one "+e.label+"."})})}validateQuery(){var e,t,n,r,i,o,s,a,l,A,c,u,h,d;this.validateBasicQuery(),0===this.filterAlerts.length&&(this.basicQuery&&this.validateQueryForOtherFilters(),0===this.filterAlerts.length&&(((null===(t=null===(e=this.geographicGroups)||void 0===e?void 0:e.options)||void 0===t?void 0:t.length)>0&&0===(null===(r=null===(n=this.geographicGroups)||void 0===n?void 0:n.selected)||void 0===r?void 0:r.length)&&this.basicQuery||0===(null===(o=null===(i=this.timeConceptOne)||void 0===i?void 0:i.selected)||void 0===o?void 0:o.length)&&this.basicQuery)&&this.filterAlerts.push({type:"danger",message:"This measure is not configured for a basic query. Please use an advanced query, or choose a different measure."}),(null===(a=null===(s=this.geographicGroups)||void 0===s?void 0:s.options)||void 0===a?void 0:a.length)>0&&0===(null===(A=null===(l=this.geographicGroups)||void 0===l?void 0:l.selected)||void 0===A?void 0:A.length)&&!this.basicQuery&&this.filterAlerts.push({type:"danger",message:"Please select a "+(null===(c=this.geographicGroups)||void 0===c?void 0:c.label)+"."}),0!==(null===(h=null===(u=this.timeConceptOne)||void 0===u?void 0:u.selected)||void 0===h?void 0:h.length)||this.basicQuery||this.filterAlerts.push({type:"danger",message:"Please select at least one "+(null===(d=this.timeConceptOne)||void 0===d?void 0:d.label)+"."}),this.validateForBrokenQueries(),this.validateGeographyAndTimePeriod(),this.validateOtherFilters(),this.changeDetector.markForCheck()))}validateQueryForOtherFilters(){this.validateBasicQuery(),0===this.filterAlerts.length&&this.validateGeographyAndTimePeriod()}validateForBrokenQueries(){var e,t,n,r,i,o,s,a,l,A,c;((null===(e=this.timeConceptOne)||void 0===e?void 0:e.hasConceptTwo)&&0===(null===(n=null===(t=this.timeConceptTwo)||void 0===t?void 0:t.options)||void 0===n?void 0:n.length)||(null===(r=this.geographicGroups)||void 0===r?void 0:r.visible)&&0===(null===(o=null===(i=this.geographicGroups)||void 0===i?void 0:i.options)||void 0===o?void 0:o.length)||0===(null===(a=null===(s=this.timeConceptOne)||void 0===s?void 0:s.options)||void 0===a?void 0:a.length)||0===(null===(A=null===(l=this.geographicArea)||void 0===l?void 0:l.options)||void 0===A?void 0:A.length))&&0===(null===(c=this.filterAlerts)||void 0===c?void 0:c.length)&&this.filterAlerts.push({type:"danger",message:"This measure is currently broken. Please choose a different measure."})}runQuery(){setTimeout(()=>{this.isQuerying=!0,this.changeDetector.detectChanges()}),this.clearAlerts(),this.websiteMetricService.createWebsiteMetric(new L_({MeasureSeq:this.measure.selected[0].id,ContentAreaSeq:this.content.selected[0].id,IndicatorSeq:this.indicator.selected[0].id})).subscribe(()=>{this.basicQuery||this.websiteMetricService.createWebsiteMetricAction(new I_({Action:M_.AdvancedQueryAction,Tab:H_.Table,Information:this.measure.selected[0].name})).subscribe()}),this.cdcQuery?this.cdcApiService.getResultSet(this.measure,this.timeConceptOne,this.getSide()).then(e=>{var t;e.measure=this.measure.selected[0],e.measure&&(e.measure.measureSeq=this.measure.selected[0].id,e.measure.measureDescription=this.measure.selected[0].description,e.measure.measureTitle=this.measure.selected[0].title,e.measure.measureName=this.measure.selected[0].name);let n=new S_;n.Category=this.category.selected[0].id,n.Content=this.content.selected[0].id,n.Indicator=this.indicator.selected[0].id,n.MeasureSeq=this.measure.selected[0].id,n.IsCdcQuery=this.cdcQuery,n.GeographicAreaSeqs=null===(t=null==e?void 0:e.queryOptions)||void 0===t?void 0:t.geographicAreaIds,this.dataService.setLastQueryRequest(n),this.dataService.previousQueryResponse.next(e),"left"===this.getSide()?this.dataService.leftQueryResponse.next(e):"right"===this.getSide()&&this.dataService.rightQueryResponse.next(e)},e=>{setTimeout(()=>{this.isQuerying=!1,this.changeDetector.detectChanges()})}):B_.all([this.geoGroupingDefer.promise,this.timeConceptOneDefer.promise]).then(()=>{0===this.filterAlerts.length?B_.all([this.geographicAreaDefer.promise,this.timeConceptTwoDefer.promise,this.otherFilterDefer.promise]).then(()=>{0===this.filterAlerts.length&&this.validateQuery(),this.filterAlerts.length>0?setTimeout(()=>{this.isQuerying=!1,this.changeDetector.detectChanges()}):this.dataService.runQuery(this.category,this.content,this.indicator,this.measure,this.timeConceptOne,this.timeConceptTwo,this.geographicGroups,this.geographicArea,this.otherFilters,this.getSide()).then(()=>{this.clearAlerts()},()=>{this.content.loading=!1,this.filterAlerts.push({type:"danger",message:"We were unable to load data. This could signify a problem with the website, or with your internet connection. Try choosing a different category. If the error continues to persist, try again later."}),this.changeDetector.markForCheck()})}):setTimeout(()=>{this.isQuerying=!1,this.changeDetector.detectChanges()})})}createBookmark(){this.bookmark.copied=!1,this.isCreatingBookmark=!0,this.dataService.createBookmark(this.category,this.content,this.indicator,this.measure,this.timeConceptOne,this.timeConceptTwo,this.geographicGroups,this.geographicArea,this.otherFilters,this.basicQuery)}clearCategory(){this.category.selected=[]}clearContent(){this.content.selected=[],this.content.options=[]}clearIndicator(){this.indicator.selected=[],this.indicator.options=[]}clearMeasure(){this.measure.selected=[],this.measure.options=[]}clearGeographicGrouping(){this.geographicGroups.selected=[],this.geographicGroups.options=[],this.geographicGroups.tooltipText="Geographic Grouping"}clearGeographicArea(){this.geographicArea.selected=[],this.geographicArea.options=[],this.geographicArea.label="Geographic Area",this.geographicArea.tooltipText="Geographic Area"}clearTimeConceptOne(){this.timeConceptOne.selected=[],this.timeConceptOne.options=[],this.timeConceptOne.tooltipText=""}clearTimeConceptTwo(){this.timeConceptTwo.selected=[],this.timeConceptTwo.options=[],this.timeConceptTwo.tooltipText=""}clearOtherFilters(){this.otherFilters.filters=[],this.savedOtherFilterData.filters=[]}selectIfOneOption(e){var t;1===(null===(t=e.options)||void 0===t?void 0:t.length)&&(e.selected=[e.options[0]],e.selected.preSelected=!0)}displayIndicatorPopupIfOne(e){var t;1===e.IndicatorPopupTypeSeq||3===e.IndicatorPopupTypeSeq?(this.bannerAlert.type="info",this.bannerAlert.message=null!==(t=e.IndicatorPopupDescription)&&void 0!==t?t:"",this.changeDetector.markForCheck()):2===e.IndicatorPopupTypeSeq&&e.IndicatorPopupDescription&&(this.indicatorHeader=e.IndicatorName,this.indicatorDescription=e.IndicatorPopupDescription,this.modalService.hasOpenModals()||this.openIndicatorModal(e.IndicatorName,e.IndicatorPopupDescription))}closeBookmark(){this.bookmark.enablePopover=!1,this.bookmark.copied=!1}copyBookmark(){if(navigator.clipboard&&window.isSecureContext)navigator.clipboard.writeText(this.bookmarkUrl);else{let e=document.createElement("textarea");e.value=this.bookmarkUrl,e.style.position="fixed",e.style.left="-999999px",e.style.top="-999999px",document.body.appendChild(e),e.focus(),e.select(),new Promise((t,n)=>{document.execCommand("copy")?t():n(),e.remove()})}this.bookmark.copied?(this.bookmark.copied=!1,setTimeout(()=>this.bookmark.copied=!0,100)):this.bookmark.copied=!0}toggleQuerySide(e){"string"!=typeof e&&e.preventDefault(),this.loadingAdvancedQuery=!0,this.changeDetector.detectChanges(),this.loadingAdvancedQueryDefer=B_.defer(),this.rightActive="string"==typeof e?"right"===e:!this.rightActive,this.requestSide=this.getRequestSide(),this.toggleQueryFilter=!0,this.category.selected=this.requestSide?[this.category.options.find(e=>{var t;return e.id===(null===(t=this.requestSide)||void 0===t?void 0:t.Category)})]:[],this.onCategoryChange(),this.changeDetector.markForCheck(),B_.all([this.loadingAdvancedQueryDefer]).then(()=>{this.loadingAdvancedQuery=!1,this.changeDetector.markForCheck()})}closeQueryPanel(){this.dataOptionsCollapsed=!0}toggleQuery(){this.basicQuery=!this.basicQuery,this.basicQuery?this.determineOtherFilterPromise():this.determineOtherFiltersOptions(),this.basicQuery&&this.resetBasicQueryOptions(),this.request.length>1&&(this.requestSide=this.getRequestSide(),this.requestSide.IsBasicQuery=this.basicQuery)}getRequestSide(){return!this.request.right&&this.request.left?this.request.right=E_.cloneDeep(this.request.left):this.request.right&&!this.request.left&&(this.request.left=E_.cloneDeep(this.request.right)),this.rightActive?this.request.right:this.request.left}resetBasicQueryOptions(){this.measure.selected.length>0&&this.onMeasureChange()}querySuccess(e,t){this.request[t]=e,this.isQuerying=!1,this.closeQueryPanel(),this.changeDetector.detectChanges()}getSide(){return this.rightActive?"right":"left"}queryEnd(){this.isQuerying=!1}geographicGroupingEquals(e,t){var n=e.length===t.length;if(n)for(var r=0;r<e.length;r++)if(e[r].id!==t[r].id||e[r].extra!==t[r].extra){n=!1;break}return n}openIndicatorModal(e,t){this.modalService.open(this.indicatorModalRef,{size:"lg",windowClass:"indicator-modal"})}setup(){this.determineOtherFiltersOptions=hm(()=>{if(this.measure.selected[0]&&this.measure.selected[0].id){var e=oy(this.measure.selected).id;this.basicQuery?0===this.filterAlerts.length?this.otherFilterPromise(e).finally(()=>{this.otherFilterDefer.resolve()}):this.otherFilterDefer.resolve():this.otherFilterPromise(e).finally(()=>{this.otherFilterDefer.resolve()})}else this.otherFilterDefer.resolve()},250),this.otherFilterPromise=e=>this.filterService.getOtherFilters(e).then(e=>{this.otherFilters.filters=e.filters.map(e=>{var t,n,r=[];if(this.loadingBookmark.otherFilters)r=this.preselect(e.options,this.bookmarkData.OtherFilterValues[e.columnName]);else if(this.toggleQueryFilter&&null==this.requestSide)r=[e.options[0]];else if(this.toggleQueryFilter&&(null===(t=this.requestSide)||void 0===t?void 0:t.OtherFilterValues)){var i=(null===(n=this.requestSide)||void 0===n?void 0:n.OtherFilterValues).find(t=>t.Key==e.columnName);(r=this.preselect(e.options,i.Value)).length<1&&(r=[e.options[0]])}else r=[e.options[0]];return{selected:r,options:e.options,label:e.label,tooltipText:e.description,columnName:e.columnName}}),this.savedOtherFilterData.filters=E_.cloneDeep(this.otherFilters.filters)},()=>{this.filterAlerts.push({type:"danger",message:"We were unable to load Other Filters. This could signify a problem with the website, or with your internet connection. Try choosing a different measure. If the error continues to persist, try again later."})}),this.determineOtherFilterPromise=()=>this.dataService.determineOtherFiltersOptions(this.category,this.content,this.indicator,this.measure,this.timeConceptOne,this.timeConceptTwo,this.geographicGroups,this.geographicArea,this.otherFilters),this.dataService.getBookmark().subscribe(e=>{this.isCreatingBookmark=!1,this.bookmarkUrl=e,this.bookmark.enablePopover=!0,window.setTimeout(()=>{this.isCreatingBookmark=!1},50)},e=>{this.isCreatingBookmark=!1}),this.changeDetector.markForCheck()}preselect(e,t){return null==e?void 0:e.filter(e=>t.includes(e.id))}getParameterByName(e,t){t||(t=window.location.href),e=e.replace(/[\[\]]/g,"\\$&");var n=new RegExp("[?&]"+e+"(=([^&#]*)|&|#|$)").exec(t);return n?n[2]?decodeURIComponent(n[2].replace(/\+/g," ")):"":null}populateFilter(e){this.category.selected=e.Category,this.onCategoryChange(),this.content.selected=e.Content,this.onContentAreaChange(),this.indicator.selected=e.Indicator,this.onIndicatorChange(),this.measure.selected=e.Measure,this.onMeasureChange()}createSearchTableListener(){this.channel.addEventListener("message",e=>{this.populateFilter(e.data.sortedData)})}}return e.\u0275fac=function(t){return new(t||e)(zs(D_),zs(zb),zs("BASE_URL"),zs(Jd),zs(ab),zs(hA),zs(G_),zs(U_),zs(Ty))},e.\u0275cmp=Ge({type:e,selectors:[["mi-filters"]],viewQuery:function(e,t){if(1&e&&(uc(eQ,5,Qv),uc(tQ,5)),2&e){let e;cc(e=dc())&&(t.filterCollapse=e.first),cc(e=dc())&&(t.indicatorModalRef=e.first)}},inputs:{indexController:"indexController",toggleFilterExpander:"toggleFilterExpander",rightPanelVisible:"rightPanelVisible",leftPanelVisible:"leftPanelVisible"},features:[ct],decls:47,vars:59,consts:[[4,"ngFor","ngForOf"],[4,"ngIf"],["tabindex","0","title-text","Click to show or hide the data options section.","heading","Data Options","id","dataOptionsSection","header-id","dataOptionsHeader","fa-icon","fa-cogs","type","button",1,"collapseHeader","bottomMargin","cursorPointer",3,"click"],["transform","shrink-1",3,"icon"],[1,"dataOptionsHeader"],["data-fa-transform","down-8",3,"icon","rotate"],[1,"dataOptionsContent",3,"ngbCollapse","ngbCollapseChange"],["filterCollapse","ngbCollapse"],[1,"row"],[1,"required-text","col-12","col-sm-4"],["id","measureSection",1,"row"],["label","Categories","button-label","a Category",1,"col-lg-3","col-md-6","col-sm-6","col-12",3,"list","tooltipText","selected","singleSelection","loading","selectedChange","handleChanged"],["label","Content Areas","button-label","a Content Area",1,"col-lg-3","col-md-6","col-sm-6","col-12",3,"list","tooltipText","selected","singleSelection","loading","selectedChange","handleChanged"],["label","Indicators","button-label","an Indicator",1,"col-lg-3","col-md-6","col-sm-6","col-12",3,"list","tooltipText","selected","singleSelection","loading","selectedChange","handleChanged"],["label","Measures","button-label","a Measure",1,"col-lg-3","col-md-6","col-sm-6","col-12",3,"list","tooltipText","selected","singleSelection","loading","selectedChange","handleChanged"],[1,"clearfix"],[1,"row","bottomMargin"],[1,"leftMargin","d-block","d-sm-none"],[1,"required-text","topMargin"],[1,"col-8","col-sm-12"],["class","col-sm-4 d-none d-sm-block parent-vertical-center",4,"ngIf"],[1,"float-right"],["type","button","id","run-query",1,"btn","btn-success","mr-2",3,"disabled","click"],["class","spinner-border spinner-border-sm","aria-hidden","true",4,"ngIf"],["type","button","id","toggle-query",1,"btn","btn-primary","mr-2",3,"disabled","click"],["type","button","id","clear-query",1,"btn","btn-outline-secondary","mr-2",3,"disabled","click"],["type","button","id","saveQuery","placement","top-right","popoverTitle","To share your query results use this link:",1,"btn","btn-outline-secondary","mr-2",3,"disabled","ngbPopover","autoClose","click"],["saveQuery","ngbPopover"],["id","panelArea",1,"row"],["id","left-display-Panel",1,"bottomMargin",3,"ngClass","hidden"],[3,"indexController","filterController","panelSide"],["id","right-display-Panel",1,"bottomMargin",3,"ngClass","hidden"],["indicatorModal",""],["bookmarkTemplate",""],[3,"type","closed"],["aria-hidden","true",1,"faIcon",3,"icon"],[1,"bannerMessage",3,"innerHTML"],[3,"hidden"],["title-text","Click to show or hide geography and time period filters.","heading","Geography & Time Periods","id","timeSection","header-id","timeHeader","fa-icon","fa-globe",1,"collapseHeader","bottomMargin","cursorPointer",3,"click"],[3,"icon","rotate"],[3,"ngbCollapse","ngbCollapseChange"],["geographyCollapse","ngbCollapse"],[1,"col-lg-3","col-md-6","col-sm-6","col-12",3,"list","tooltipText","selected","singleSelection","loading","label","hidden","selectedChange","handleChanged"],[1,"col-lg-3","col-md-6","col-sm-6","col-12",3,"list","tooltipText","selected","singleSelection","loading","label","selectedChange","handleChanged"],["title-text","Click to show or hide Other Filters.","heading","Other Filters","id","otherFilterSection","header-id","otherFilterHeader","fa-icon","fa-filter",1,"collapseHeader","bottomMargin","cursorPointer",3,"click"],["otherFilterCollapse","ngbCollapse"],["class","col-lg-3 col-md-6 col-sm-6 col-12",4,"ngFor","ngForOf"],[1,"col-lg-3","col-md-6","col-sm-6","col-12"],[3,"list","tooltipText","selected","singleSelection","label","selectedChange"],[1,"col-sm-4","d-none","d-sm-block","parent-vertical-center"],["aria-label","Query in left panel.",1,"rightMargin",3,"click"],[1,"onoffcontainer"],["tabindex","0","contenteditable","true",1,"onoffswitch",3,"keydown","click"],["type","checkbox","name","onoffswitch","id","myonoffswitch",1,"onoffswitch-checkbox",3,"ngModel","ngModelChange"],["for","myonoffswitch",1,"onoffswitch-label"],[1,"sr-only"],[1,"onoffswitch-inner"],[1,"onoffswitch-switch"],["aria-label","Query in right panel.",1,"leftMargin",3,"click"],["aria-hidden","true",1,"spinner-border","spinner-border-sm"],["role","document"],[1,"modal-header"],["id","indicatorName","tabindex","0",1,"modal-title",3,"innerHTML"],["type","button","aria-label","Close",1,"close",3,"click"],["aria-hidden","true"],[1,"modal-body"],[3,"innerHTML"],[1,"modal-footer"],["type","button",1,"btn","btn-danger",3,"click"],[1,"input-group"],[1,"input-group-btn"],["type","button","title","Copy Bookmark URL",1,"btn","btn-secondary",3,"click"],["aria-hidden","true",3,"icon"],["id","bookmarkInput","type","text","readonly","readonly",1,"form-control",3,"value"],[1,"bottomBookmark"],["class","text-muted",4,"ngIf"],[1,"hoverHand",3,"click"],[1,"text-muted"]],template:function(e,t){if(1&e){const e=ta();js(0,nQ,3,2,"p",0),js(1,rQ,4,3,"div",1),Js(2,"button",2),ia("click",function(){return Ot(e),qs(8).toggle()}),$s(3,"fa-icon",3),Js(4,"span",4),Da(5,"Data Options"),Ys(),$s(6,"fa-icon",5),Ys(),Js(7,"div",6,7),ia("ngbCollapseChange",function(e){return t.dataOptionsCollapsed=e}),Js(9,"div",8),Js(10,"div",9),Da(11," * = Required "),Ys(),Ys(),Js(12,"div",10),Js(13,"select-list",11),ia("selectedChange",function(e){return t.category.selected=e})("handleChanged",function(){return t.onCategoryChange()}),Ys(),Js(14,"select-list",12),ia("selectedChange",function(e){return t.content.selected=e})("handleChanged",function(){return t.onContentAreaChange()}),Ys(),Js(15,"select-list",13),ia("selectedChange",function(e){return t.indicator.selected=e})("handleChanged",function(){return t.onIndicatorChange()}),Ys(),Js(16,"select-list",14),ia("selectedChange",function(e){return t.measure.selected=e})("handleChanged",function(){return t.onMeasureChange()}),Ys(),$s(17,"div",15),Ys(),js(18,oQ,26,38,"div",1),Js(19,"div",16),Js(20,"div",17),Js(21,"div",18),Da(22," * = Required "),Ys(),Ys(),Js(23,"div",19),js(24,sQ,13,2,"div",20),Js(25,"div",21),Js(26,"button",22),ia("click",function(){return t.runQuery()}),js(27,aQ,1,0,"span",23),Da(28,"\xa0Run Query "),Ys(),Js(29,"button",24),ia("click",function(){return t.toggleQuery()}),js(30,lQ,2,0,"span",1),js(31,AQ,2,0,"span",1),Ys(),Js(32,"button",25),ia("click",function(){return t.clearQuery()}),Da(33," Clear Query "),Ys(),Js(34,"button",26,27),ia("click",function(){return t.createBookmark()}),js(36,cQ,1,0,"span",23),Da(37,"\xa0Save Query "),Ys(),Ys(),Ys(),Ys(),Ys(),Js(38,"div",28),Js(39,"div",29),$s(40,"mi-panel",30),Ys(),Js(41,"div",31),$s(42,"mi-panel",30),Ys(),Ys(),js(43,uQ,11,2,"ng-template",null,32,mc),js(45,dQ,11,3,"ng-template",null,33,mc)}if(2&e){const e=qs(46);Ws("ngForOf",t.filterAlerts),uo(1),Ws("ngIf",t.bannerAlert.message&&t.bannerAlert.message.length),uo(1),Ps("aria-expanded",t.dataOptionsCollapsed),uo(1),Ws("icon",t.faGears),uo(3),Ws("icon",t.faChevronDown)("rotate",!1===t.dataOptionsCollapsed?180:void 0),uo(1),Ws("ngbCollapse",t.dataOptionsCollapsed),uo(6),Ws("list",null==t.category?null:t.category.options)("tooltipText",null==t.category?null:t.category.tooltipText)("selected",t.category.selected)("singleSelection",!0)("loading",t.category.loading),uo(1),Ws("list",null==t.content?null:t.content.options)("tooltipText",null==t.content?null:t.content.tooltipText)("selected",t.content.selected)("singleSelection",!0)("loading",t.content.loading),uo(1),Ws("list",null==t.indicator?null:t.indicator.options)("tooltipText",null==t.category?null:t.category.tooltipText)("selected",t.indicator.selected)("singleSelection",!0)("loading",t.indicator.loading),uo(1),Ws("list",null==t.measure?null:t.measure.options)("tooltipText",null==t.measure?null:t.measure.tooltipText)("selected",t.measure.selected)("singleSelection",!0)("loading",t.measure.loading),uo(2),Ws("ngIf",!t.loadingAdvancedQuery),uo(6),Ws("ngIf",t.indexController.leftPanelVisible&&t.indexController.rightPanelVisible),uo(2),Ws("disabled",t.isQuerying||!t.measure.selected.length),uo(1),Ws("ngIf",t.isQuerying),uo(2),Ws("disabled",!t.measure.selected.length||t.cdcQuery),uo(1),Ws("ngIf",t.basicQuery),uo(1),Ws("ngIf",!t.basicQuery),uo(1),Ws("disabled",t.isQuerying),uo(2),Ws("disabled",t.isCreatingBookmark||!t.category.selected.length)("ngbPopover",e)("autoClose",!1),uo(2),Ws("ngIf",t.isCreatingBookmark),uo(3),Ws("ngClass",PA(49,pQ,t.indexController.rightPanelVisible,t.indexController.leftPanelVisible&&!t.indexController.rightPanelVisible,!t.rightActive&&t.indexController.rightPanelVisible&&!t.dataOptionsCollapsed,t.rightActive&&t.indexController.rightPanelVisible&&!t.dataOptionsCollapsed))("hidden",!t.indexController.leftPanelVisible),uo(1),Ws("indexController",t.indexController)("filterController",t.filterController)("panelSide","left"),uo(1),Ws("ngClass",PA(54,pQ,t.indexController.leftPanelVisible,!t.indexController.leftPanelVisible&&t.indexController.rightPanelVisible,t.rightActive&&t.indexController.leftPanelVisible&&!t.dataOptionsCollapsed,!t.rightActive&&t.indexController.leftPanelVisible&&!t.dataOptionsCollapsed))("hidden",!t.indexController.rightPanelVisible),uo(1),Ws("indexController",t.indexController)("filterController",t.filterController)("panelSide","right")}},directives:[Tu,Su,qE,Qv,hF,Hb,Fu,ZT,Cv,Qh,zh,yd],styles:[".dataOptionsHeader{margin-left:8px;margin-right:12px;font-size:19px}.cursorPointer{cursor:pointer}.dataOptionsContent{padding:0 16px}.bannerMessage{display:inline-block;margin-left:10px;vertical-align:top}.bannerMessage *{margin:0}.faIcon{vertical-align:top}"],encapsulation:2}),e})();const gQ=["disclaimerModal"];function mQ(e,t){if(1&e){const e=ta();Js(0,"div",1),Js(1,"div",2),Js(2,"h3",3),Da(3,"Terms of Use"),Ys(),Ys(),Js(4,"div",4),$s(5,"div",5),Ys(),Js(6,"div",6),Js(7,"button",7),ia("click",function(){return Ot(e),aa().agree()}),Da(8,"Agree"),Ys(),Js(9,"a",8),Da(10,"Decline"),Ys(),Ys(),Ys()}if(2&e){const e=aa();uo(5),Ws("innerHTML",e.disclaimerText,ai)}}let yQ=(()=>{class e{constructor(e,t,n){this.modalService=e,this.http=t,this.baseUrl=n,this.ngbModalOptions={size:"lg",backdrop:"static"},this.disclaimerText=""}ngAfterViewInit(){this.open(this.disclaimerModal)}open(e){this.http.get(this.baseUrl+"SystemConfiguration/GetConfiguration").toPromise().then(t=>{this.disclaimerText=t.DisclaimerText,this.modalService.open(e,this.ngbModalOptions)})}agree(){this.modalService.dismissAll("agreed")}}return e.\u0275fac=function(t){return new(t||e)(zs(ab),zs(Jd),zs("BASE_URL"))},e.\u0275cmp=Ge({type:e,selectors:[["disclaimer"]],viewQuery:function(e,t){if(1&e&&uc(gQ,5,mA),2&e){let e;cc(e=dc())&&(t.disclaimerModal=e.first)}},decls:2,vars:0,consts:[["disclaimerModal",""],["role","document"],[1,"modal-header"],["id","disclaimer","tabindex","0",1,"modal-title"],[1,"modal-body"],[3,"innerHTML"],[1,"modal-footer"],["type","button",1,"btn","btn-success","mr-auto",3,"click"],["href","http://www.michigan.gov/mitracking","title","Decline",1,"btn","btn-danger","ml-auto"]],template:function(e,t){1&e&&js(0,mQ,11,1,"ng-template",null,0,mc)},styles:[""]}),e})();const wQ=["miFeedbackModal"];function vQ(e,t){1&e&&$s(0,"fa-icon",30),2&e&&Ws("icon",aa(3).faExclamationCircle)}function bQ(e,t){1&e&&$s(0,"fa-icon",30),2&e&&Ws("icon",aa(3).faCheckCircle)}function CQ(e,t){if(1&e&&(Js(0,"li"),Da(1),Ys()),2&e){const e=t.$implicit;uo(1),Oa(e)}}const BQ=function(e,t){return{"alert-danger":e,"alert-success":t}};function EQ(e,t){if(1&e){const e=ta();Js(0,"div",22),Js(1,"div",23),Js(2,"div",24),js(3,vQ,1,1,"fa-icon",25),js(4,bQ,1,1,"fa-icon",25),Js(5,"ul",26),js(6,CQ,2,1,"li",27),Ys(),Ys(),Js(7,"span",28),ia("click",function(){const t=Ot(e).index;return aa(2).remove(t)}),Js(8,"span",5),Da(9,"\u2716"),Ys(),Js(10,"span",29),Da(11,"Close"),Ys(),Ys(),$s(12,"div",17),Ys(),Ys()}if(2&e){const e=t.$implicit;uo(1),Ws("ngClass",RA(5,BQ,"error"===e.type,"message"===e.type)),uo(1),ua("id",e.listId),uo(1),Ws("ngIf","error"===e.type),uo(1),Ws("ngIf","message"===e.type),uo(2),Ws("ngForOf",e.messageList)}}function _Q(e,t){1&e&&$s(0,"span",31)}function FQ(e,t){if(1&e){const e=ta();Js(0,"div",2),Js(1,"h4",3),Da(2,"Send Questions"),Ys(),Js(3,"button",4),ia("click",function(){return Ot(e),aa().close()}),Js(4,"span",5),Da(5,"\xd7"),Ys(),Ys(),Ys(),Js(6,"div",6),Js(7,"div",7),js(8,EQ,13,8,"div",8),Js(9,"form",9),Js(10,"div",10),Da(11," * = Required "),Ys(),Js(12,"div",11),Js(13,"label",12),Da(14,"Enter Questions"),Ys(),Js(15,"textarea",13),ia("ngModelChange",function(t){return Ot(e),aa().message=t}),Ys(),Ys(),Js(16,"div",11),Js(17,"label",14),Da(18,"E-mail Address "),Js(19,"span",15),Da(20,"(optional)"),Ys(),Ys(),Js(21,"input",16),ia("ngModelChange",function(t){return Ot(e),aa().from=t}),Ys(),Ys(),Ys(),Ys(),$s(22,"div",17),Ys(),Js(23,"div",18),Js(24,"button",19),ia("click",function(){return Ot(e),aa().submitFeedback()}),js(25,_Q,1,0,"span",20),Da(26," Submit"),Ys(),Js(27,"button",21),ia("click",function(){return Ot(e),aa().close()}),Da(28,"Cancel"),Ys(),Ys()}if(2&e){const e=aa();uo(8),Ws("ngForOf",e.validationMessages),uo(7),Ws("ngModel",e.message),uo(6),Ws("ngModel",e.from),uo(3),Ws("disabled",e.sending),uo(1),Ws("ngIf",e.sending)}}let xQ=(()=>{class e{constructor(e,t,n){this.http=e,this.modalService=t,this.baseUrl=n,this.errorMessageCounter=0,this.faExclamationCircle=mp,this.faCheckCircle=gp,this.message="",this.from="",this.sending=!1,this.validationMessages=[]}submitFeedback(){this.sending=!0;var e=[];this.message||e.push("Questions are required."),e.length>0?(this.sending=!1,this.addError(e)):this.http.post(this.baseUrl+"Feedback/SendFeedback",{FeedbackFrom:this.from,FeedbackText:this.message}).toPromise().then(e=>{this.sending=!1,this.message="",this.from="",this.close()},()=>{this.close()})}addError(e){this.validationMessages=[];var t="errorList-"+this.errorMessageCounter++;this.validationMessages.push({messageList:e,timeStamp:Date.now(),type:"error",listId:t})}remove(e){this.validationMessages.splice(e,1)}open(){this.modalService.open(this.feedbackModal)}close(){this.modalService.dismissAll("closeModal")}}return e.\u0275fac=function(t){return new(t||e)(zs(Jd),zs(ab),zs("BASE_URL"))},e.\u0275cmp=Ge({type:e,selectors:[["mi-feedback"]],viewQuery:function(e,t){if(1&e&&uc(wQ,5,mA),2&e){let e;cc(e=dc())&&(t.feedbackModal=e.first)}},decls:4,vars:0,consts:[["tabindex","0",1,"btn","btn-primary","feedback-button",3,"click"],["miFeedbackModal",""],[1,"modal-header"],["id","search-results-header","tabindex","0",1,"modal-title"],["type","button","data-dismiss","modal","aria-label","Close",1,"close",3,"click"],["aria-hidden","true"],[1,"modal-body"],[1,"col-12"],["class","errorList",4,"ngFor","ngForOf"],["aria-label","Feedback Form"],[1,"row","required-text","bottomMargin"],[1,"row","form-group"],["for","FeedbackText","data-required","true",1,"font-weight-bold"],["id","FeedbackText","placeholder","Questions","aria-required","true","name","message",1,"form-control",3,"ngModel","ngModelChange"],["for","FeedbackFrom",1,"font-weight-bold"],[1,"text-muted"],["type","email","id","FeedbackFrom","placeholder","E-mail Address (optional)","name","from",1,"form-control",3,"ngModel","ngModelChange"],[1,"clearfix"],[1,"modal-footer"],[1,"btn","btn-primary","mr-auto",3,"disabled","click"],["class","spinner-border spinner-border-sm","aria-hidden","true",4,"ngIf"],[1,"btn","btn-outline-secondary","ml-auto",3,"click"],[1,"errorList"],["role","alert",1,"row","alert","withMargin",3,"ngClass"],["tabindex","0",1,"col-lg-11","col-sm-10",3,"id"],["aria-hidden","true",3,"icon",4,"ngIf"],[1,"shiftUp"],[4,"ngFor","ngForOf"],["tabindex","0","aria-label","Close Error Message",1,"text-right","float-right","col-sm-2","col-lg-1",3,"click"],[1,"d-none","d-sm-block"],["aria-hidden","true",3,"icon"],["aria-hidden","true",1,"spinner-border","spinner-border-sm"]],template:function(e,t){1&e&&(Js(0,"button",0),ia("click",function(){return t.open()}),Da(1," Questions? "),Ys(),js(2,FQ,29,5,"ng-template",null,1,mc))},directives:[Tu,wd,Wh,fd,Uh,zh,yd,Su,Fu,qE],styles:[".feedback-button[_ngcontent-%COMP%]{margin-top:1rem;writing-mode:vertical-lr;transform:rotate(180deg) scale(1.0001);font-weight:600;position:fixed;bottom:40%;right:0;font-size:1rem;padding-left:.4rem;padding-right:.4rem}"]}),e})();const TQ=["mi-index",""];function QQ(e,t){if(1&e){const e=ta();Js(0,"button",46),ia("click",function(){return Ot(e),aa().enableSideBySideData()}),Da(1," Compare Measures "),Ys()}}function SQ(e,t){if(1&e){const e=ta();Js(0,"button",47),ia("click",function(){return Ot(e),aa().hideLeftSide()}),Da(1," Hide left side "),Ys()}}function kQ(e,t){if(1&e){const e=ta();Js(0,"button",48),ia("click",function(){return Ot(e),aa().hideRightSide()}),Da(1," Hide right side "),Ys()}}function UQ(e,t){1&e&&$s(0,"fa-icon",59),2&e&&Ws("icon",aa(2).faExclamationCircle)}function DQ(e,t){1&e&&$s(0,"fa-icon",59),2&e&&Ws("icon",aa(2).faCheckCircle)}function OQ(e,t){1&e&&$s(0,"fa-icon",59),2&e&&Ws("icon",aa(2).faInfoCircle)}function LQ(e,t){1&e&&$s(0,"li",60),2&e&&Ws("innerHtml",t.$implicit,ai)}const IQ=function(e,t,n){return{"alert-danger":e,"alert-success":t,"alert-info":n}};function HQ(e,t){if(1&e){const e=ta();Js(0,"div",49),Js(1,"div",50),Js(2,"div",51),js(3,UQ,1,1,"fa-icon",52),js(4,DQ,1,1,"fa-icon",52),js(5,OQ,1,1,"fa-icon",52),Js(6,"ul",53),js(7,LQ,1,1,"li",54),Ys(),Ys(),Js(8,"span",55),ia("click",function(){Ot(e);const t=aa();return t.remove(t.$index)}),Js(9,"span",56),Da(10,"\u2716"),Ys(),Js(11,"span",57),Da(12,"Close"),Ys(),Ys(),$s(13,"div",58),Ys(),Ys()}if(2&e){const e=t.$implicit;uo(1),Ws("ngClass",NA(6,IQ,"error"===e.type,"message"===e.type,"banner"===e.type)),uo(1),Ps("id",e.listId),uo(1),Ws("ngIf","error"===e.type),uo(1),Ws("ngIf","message"===e.type),uo(1),Ws("ngIf","banner"===e.type),uo(2),Ws("ngForOf",e.messageList)}}const MQ=["*"];let RQ=(()=>{class e{constructor(e,t,n,r,i){this.httpService=e,this.baseUrl=t,this.changeDetector=n,this.websiteMetricService=r,this.elementRef=i,this.faCheckCircle=gp,this.faInfoCircle=yp,this.faExclamationCircle=mp,this.indexComponent=this,this.toggleExpanderFilter=!1;let o=this.elementRef.nativeElement.attributes;r.dailyCookieGuid=o["daily-session-guid"].value,this.persistentCookieGuid=o["persistent-session-guid"].value,this.currentVersion=o["mitracking-version"].value,this.currentEnvironment=o["mitracking-environment"].value,this.currentYear=o["mitracking-year"].value}ngOnInit(){this.leftSideTab="table",this.rightSideTab="table",this.errorMessageCounter=0,this.leftPanelVisible=!0,this.rightPanelVisible=!1,this.firstLoad=!0,this.mapsLinked=!1,this.leftMapDrawn=null,this.rightMapDrawn=null,this.isScreenLargeEnoughForSideBySide=!0,this.panelRemovedDueToResize=!1,this.messageList=[],this.mapExtentEventList=[],this.activate()}activate(){this.httpService.post(this.baseUrl+"WebsiteMetrics/AddUserMetric",{DailyUserId:this.websiteMetricService.dailyCookieGuid,PersistentUserId:this.persistentCookieGuid}).subscribe()}enableSideBySideData(){this.rightPanelVisible||(this.rightPanelVisible=!this.rightPanelVisible),this.leftPanelVisible||(this.leftPanelVisible=!this.leftPanelVisible),this.changeDetector.detectChanges()}hideLeftSide(){this.leftPanelVisible=!this.leftPanelVisible,this.mapsLinked=!1,this.changeDetector.detectChanges()}hideRightSide(){this.rightPanelVisible=!this.rightPanelVisible,this.mapsLinked=!1,this.changeDetector.detectChanges()}addError(e){this.addAlert(e,"error")}addMessage(e){this.addAlert(e,"message")}addBanner(e){this.addAlert(e,"banner")}addAlert(e,t){this.messageList=[],window.scrollTo(0,0);var n="errorList-"+this.errorMessageCounter++;this.messageList.push({messageList:e,timeStamp:Date.now(),type:t,listId:n})}remove(e){this.messageList.splice(e,1)}focusBody(){const e=document.getElementById("body-content");null==e||e.focus()}viewingSideBySideMaps(){return this.rightMapDrawn&&this.leftMapDrawn&&"map"===this.rightSideTab&&"map"===this.leftSideTab&&this.rightPanelVisible&&this.leftPanelVisible}debouncedResize(){hm(()=>{},200)}}return e.\u0275fac=function(t){return new(t||e)(zs(Jd),zs("BASE_URL"),zs(hA),zs(Ty),zs(Nl))},e.\u0275cmp=Ge({type:e,selectors:[["","mi-index",""]],attrs:TQ,ngContentSelectors:MQ,decls:91,vars:16,consts:[["id","branding-bar",1,"navbar","navbar-expand-lg","navbar-dark"],[1,"navbar-header"],["aria-controls","navbar","data-target","#branding-bar-nav","data-toggle","collapse","type","button",1,"navbar-toggler"],[1,"navbar-toggler-icon","navbar-dark"],["id","branding-bar-nav",1,"collapse","navbar-collapse",2,"height","1px"],[1,"navbar-nav","ml-auto"],[1,"skip-nav","sr-only",3,"click"],[1,"nav-item"],["href","http://www.michigan.gov/mitracking","title","MiTracking Home","target","_blank",1,"nav-link"],["href","https://www.michigan.gov/mdhhs/safety-injury-prev/environmental-health/topics/mitracking/contact","title","Contact","target","_blank",1,"nav-link"],["href","http://www.michigan.gov/mdhhs","title","MDHHS Home","target","_blank",1,"nav-link"],["href","http://www.michigan.gov","title","An Official State of Michigan Web Site","target","_blank",1,"mi-gov-link","nav-link"],["id","banner-header"],["id","BannerHeaderSmall",1,"d-sm-none","d-block"],["href","http://www.michigan.gov/mdhhs","title","MDHHS Home","target","_blank"],["id","BannerHeaderSmallLeft","alt","MDHHS - The Michigan Department of Health and Human Services (MDHHS)",1,"float-left",3,"src"],["href","http://www.michigan.gov/mitracking","title","MiTracking Home","target","_blank"],["id","BannerHeaderSmallRight","alt","MiTracking - Michigan Environmental Public Health Tracking",1,"float-left",3,"src"],["id","BannerHeaderLeft",2,"display","inline-block"],["id","BannerHeaderLeft1","alt","MiTracking - Michigan Environmental Public Health Tracking",1,"float-left","d-none","d-sm-block",3,"src"],["id","BannerHeaderLeft2","alt","MiTracking - Michigan Environmental Public Health Tracking",1,"float-left","d-none","d-sm-block",3,"src"],["id","BannerHeaderRight","alt","MDHHS - The Michigan Department of Health and Human Services (MDHHS)",1,"float-right","d-none","d-sm-block",3,"src"],[1,"sr-only"],[1,"clear"],["id","body-content","tabindex","-1"],[1,"container-fluid","addMargin"],[1,"search-and-compare","bottomMargin"],[1,"compare-measure-buttons"],["type","button","id","compare-data","class","btn btn-primary d-none d-sm-block","aria-label","Switch data portal to allow data viewing in two panels",3,"click",4,"ngIf"],["type","button","id","hide-left-side","class","btn btn-primary","aria-label","Hide left panel to reduce data viewing to one panel",3,"click",4,"ngIf"],["type","button","id","hide-right-side","class","btn btn-primary","aria-label","Hide right panel to reduce data viewing to one panel",3,"click",4,"ngIf"],["leftPanelVisible","leftPanelVisible","rightPanelVisible","rightPanelVisible"],[1,"row"],[1,"col-12"],["class","errorList","id","errorList",4,"ngFor","ngForOf"],[3,"indexController","rightPanelVisible","leftPanelVisible","toggleFilterExpander"],[1,"footer","negativeMargin"],[1,"container-fluid"],[1,"vertical-align"],[1,"d-none","d-sm-block"],["href","http://www.michigan.gov","title","An Official State of Michigan Web Site","target","_blank"],["href","https://www.michigan.gov/mdhhs/safety-injury-prev/environmental-health/topics/mitracking/contact","title","Contact","target","_blank"],["href","http://www.michigan.gov/policies","target","_blank"],[1,"copyright"],[1,"phone-footer","d-block","d-sm-none","d-md-none","d-lg-none"],["tabindex","0","id","toTop","data-target","#"],["type","button","id","compare-data","aria-label","Switch data portal to allow data viewing in two panels",1,"btn","btn-primary","d-none","d-sm-block",3,"click"],["type","button","id","hide-left-side","aria-label","Hide left panel to reduce data viewing to one panel",1,"btn","btn-primary",3,"click"],["type","button","id","hide-right-side","aria-label","Hide right panel to reduce data viewing to one panel",1,"btn","btn-primary",3,"click"],["id","errorList",1,"errorList"],["role","alert",1,"alert","withMargin",3,"ngClass"],["tabindex","0",1,"col-lg-11","col-sm-10"],["aria-hidden","true",3,"icon",4,"ngIf"],[1,"shiftUp"],[3,"innerHtml",4,"ngFor","ngForOf"],["tabindex","0","aria-label","Close Error Message",1,"text-right","float-right","col-sm-2","col-lg-1",3,"click"],["aria-hidden","true"],[1,"d-none","d-sm-block","d-md-block","d-lg-block"],[1,"clearfix"],["aria-hidden","true",3,"icon"],[3,"innerHtml"]],template:function(e,t){1&e&&(Aa(),Js(0,"header"),Js(1,"nav",0),Js(2,"div",1),Js(3,"button",2),$s(4,"span",3),Ys(),Ys(),Js(5,"div",4),Js(6,"ul",5),Js(7,"li"),Js(8,"button",6),ia("click",function(){return t.focusBody()}),Da(9,"Skip to Main Content"),Ys(),Ys(),Js(10,"li",7),Js(11,"a",8),Da(12,"MiTracking Home"),Ys(),Ys(),Js(13,"li",7),Js(14,"a",9),Da(15,"Contact"),Ys(),Ys(),Js(16,"li",7),Js(17,"a",10),Da(18,"MDHHS Home"),Ys(),Ys(),Js(19,"li",7),Js(20,"a",11),Da(21,"MI.gov"),Ys(),Ys(),Ys(),Ys(),Ys(),Js(22,"div"),Js(23,"div",12),Js(24,"div",13),Js(25,"a",14),$s(26,"img",15),Ys(),Js(27,"a",16),$s(28,"img",17),Ys(),Ys(),Js(29,"div",18),Js(30,"a",14),$s(31,"img",19),Ys(),Js(32,"a",16),$s(33,"img",20),Ys(),Ys(),$s(34,"img",21),Js(35,"h1",22),Da(36,"MiTracking - Michigan Environmental Public Health Tracking"),Ys(),$s(37,"div",23),Ys(),Ys(),Ys(),Js(38,"main",24),Js(39,"div",25),Js(40,"div",26),Js(41,"div",27),js(42,QQ,2,0,"button",28),js(43,SQ,2,0,"button",29),js(44,kQ,2,0,"button",30),Ys(),$s(45,"search-modal",31),Ys(),Js(46,"div",32),Js(47,"div",33),js(48,HQ,14,10,"div",34),Ys(),Ys(),Js(49,"div"),$s(50,"mi-filters",35),Ys(),$s(51,"disclaimer"),Ys(),$s(52,"mi-feedback"),Ys(),Js(53,"footer",36),Js(54,"div",37),Js(55,"div",38),Js(56,"p"),Da(57),Ys(),Js(58,"p",39),Js(59,"a",40),Da(60,"MI.gov"),Ys(),Da(61," | "),Js(62,"a",16),Da(63,"MiTracking Home"),Ys(),Da(64," | "),Js(65,"a",41),Da(66,"Contact"),Ys(),Da(67," | "),Js(68,"a",42),Da(69,"Policies"),Ys(),$s(70,"br"),Js(71,"span",43),Da(72),Ys(),Ys(),Js(73,"div",44),Js(74,"div"),Js(75,"a",40),Da(76,"MI.gov"),Ys(),Ys(),Js(77,"div"),Js(78,"a",16),Da(79,"MiTracking Home"),Ys(),Ys(),Js(80,"div"),Js(81,"a",41),Da(82,"Contact"),Ys(),Ys(),Js(83,"div"),Js(84,"a",42),Da(85,"Policies"),Ys(),Ys(),$s(86,"div"),Js(87,"div"),Js(88,"button",45),Da(89,"Back to Top"),Ys(),Ys(),Ys(),Ys(),Ys(),Ys(),ca(90)),2&e&&(uo(26),Ws("src",t.baseUrl+"ClientApp/dist/mitracking-public/assets/img/BannerHeaderSmallLeft.png",li),uo(2),Ws("src",t.baseUrl+"ClientApp/dist/mitracking-public/assets/img/BannerHeaderSmallRight.png",li),uo(3),Ws("src",t.baseUrl+"ClientApp/dist/mitracking-public/assets/img/BannerHeaderLeft1.png",li),uo(2),Ws("src",t.baseUrl+"ClientApp/dist/mitracking-public/assets/img/BannerHeaderLeft2.png",li),uo(1),Ws("src",t.baseUrl+"ClientApp/dist/mitracking-public/assets/img/BannerHeaderRight.png",li),uo(8),Ws("ngIf",t.isScreenLargeEnoughForSideBySide&&(!t.leftPanelVisible||!t.rightPanelVisible)),uo(1),Ws("ngIf",t.leftPanelVisible&&t.rightPanelVisible),uo(1),Ws("ngIf",t.leftPanelVisible&&t.rightPanelVisible),uo(4),Ws("ngForOf",t.messageList),uo(2),Ws("indexController",t.indexComponent)("rightPanelVisible",t.rightPanelVisible)("leftPanelVisible",t.leftPanelVisible)("toggleFilterExpander",t.toggleExpanderFilter),uo(7),Ia("MiTracking Data Portal - Version ",t.currentVersion," - ",t.currentEnvironment,""),uo(15),La("Copyright ",t.currentYear," State of Michigan"))},directives:[Vv,Su,C_,Tu,fQ,yQ,xQ,Fu,qE],styles:[".search-and-compare{display:flex;justify-content:space-between;flex-wrap:wrap-reverse;grid-row-gap:8px;row-gap:8px}.compare-measure-buttons{display:flex;grid-gap:4px;gap:4px}search-modal{width:600px}.addMargin{padding-right:2.5rem;padding-bottom:90px}.negativeMargin{margin-top:-90px}@media (max-width:575px){.addMargin{padding-bottom:190px}.negativeMargin{margin-top:-190px}}@media (max-width: 375px){.addMargin{padding-bottom:250px}.negativeMargin{margin-top:-250px}}"],encapsulation:2}),e})(),NQ=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=We({type:e,bootstrap:[RQ]}),e.\u0275inj=pe({providers:[Pu,aT,oT],imports:[[Bh,qb,xd,lF.forRoot(),gx,Ap,zE]]}),e})();bh([{provide:"BASE_URL",useFactory:function(){return document.getElementsByTagName("link")[0].rel},deps:[]}]),function(){if(tu)throw new Error("Cannot enable prod mode after platform setup.");eu=!1}(),bh().bootstrapModule(NQ).catch(e=>console.error(e))}},e=>{"use strict";e(e.s=576)}]);;
(self.webpackChunkmitracking_public=self.webpackChunkmitracking_public||[]).push([[179],{255:e=>{function t(e){return Promise.resolve().then(()=>{var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t})}t.keys=()=>[],t.resolve=t,t.id=255,e.exports=t},901:function(e,t){!function(e){"use strict";var t={Promise:"undefined"!=typeof window?window.Promise:void 0},n="4.25",r="next";function i(e){if(e.toLowerCase()===r)return r;var t=e&&e.match(/^(\d)\.(\d+)/);return t&&{major:parseInt(t[1],10),minor:parseInt(t[2],10)}}function o(e){return void 0===e&&(e=n),"https://js.arcgis.com/".concat(e,"/")}function s(e,t){var s=function(e){return!e||i(e)?function(e){void 0===e&&(e=n);var t=o(e),s=i(e);if(s!==r&&3===s.major){var a=s.minor<=10?"js/":"";return"".concat(t).concat(a,"esri/css/esri.css")}return"".concat(t,"esri/themes/light/main.css")}(e):e}(e),a=function(e){return document.querySelector('link[href*="'.concat(e,'"]'))}(s);return a||function(e,t){if(t){var n=document.querySelector(t);n.parentNode.insertBefore(e,n)}else document.head.appendChild(e)}(a=function(e){var t=document.createElement("link");return t.rel="stylesheet",t.href=e,t}(s),t),a}var a={};function l(e,t,n){var r;n&&(r=function(e,t){var n=function(r){t(r.error||new Error("There was an error attempting to load ".concat(e.src))),e.removeEventListener("error",n,!1)};return e.addEventListener("error",n,!1),n}(e,n));var i=function(){t(e),e.removeEventListener("load",i,!1),r&&e.removeEventListener("error",r,!1)};e.addEventListener("load",i,!1)}function c(){return document.querySelector("script[data-esri-loader]")}function A(){var e=window.require;return e&&e.on}function u(e){void 0===e&&(e={});var n={};[a,e].forEach(function(e){for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t])});var r=n.version,i=n.url||o(r);return new t.Promise(function(e,t){var o=c();if(o){var a=o.getAttribute("src");a!==i?t(new Error("The ArcGIS API for JavaScript is already loaded (".concat(a,")."))):A()?e(o):l(o,e,t)}else if(A())t(new Error("The ArcGIS API for JavaScript is already loaded."));else{var u=n.css;u&&s(!0===u?r:u,n.insertCssBefore),l(o=function(e){var t=document.createElement("script");return t.type="text/javascript",t.src=e,t.setAttribute("data-esri-loader","loading"),t}(i),function(){o.setAttribute("data-esri-loader","loaded"),e(o)},t),document.body.appendChild(o)}})}function h(e){return new t.Promise(function(t,n){var r=window.require.on("error",n);window.require(e,function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];r.remove(),t(e)})})}e.utils=t,e.loadModules=function(e,t){if(void 0===t&&(t={}),A())return h(e);var n=c(),r=n&&n.getAttribute("src");return!t.url&&r&&(t.url=r),u(t).then(function(){return h(e)})},e.getScript=c,e.isLoaded=A,e.loadScript=u,e.setDefaultOptions=function(e){void 0===e&&(e={}),a=e},e.loadCss=s,Object.defineProperty(e,"__esModule",{value:!0})}(t)},457:function(e,t){var n,r;void 0===(r="function"==typeof(n=function(){"use strict";function t(e,t,n){var r=new XMLHttpRequest;r.open("GET",e),r.responseType="blob",r.onload=function(){s(r.response,t,n)},r.onerror=function(){console.error("could not download file")},r.send()}function n(e){var t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch(e){}return 200<=t.status&&299>=t.status}function r(e){try{e.dispatchEvent(new MouseEvent("click"))}catch(t){var n=document.createEvent("MouseEvents");n.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(n)}}var i="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof global&&global.global===global?global:void 0,o=i.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),s=i.saveAs||("object"!=typeof window||window!==i?function(){}:"download"in HTMLAnchorElement.prototype&&!o?function(e,o,s){var a=i.URL||i.webkitURL,l=document.createElement("a");l.download=o=o||e.name||"download",l.rel="noopener","string"==typeof e?(l.href=e,l.origin===location.origin?r(l):n(l.href)?t(e,o,s):r(l,l.target="_blank")):(l.href=a.createObjectURL(e),setTimeout(function(){a.revokeObjectURL(l.href)},4e4),setTimeout(function(){r(l)},0))}:"msSaveOrOpenBlob"in navigator?function(e,i,o){if(i=i||e.name||"download","string"!=typeof e)navigator.msSaveOrOpenBlob(function(e,t){return void 0===t?t={autoBom:!1}:"object"!=typeof t&&(console.warn("Deprecated: Expected third argument to be a object"),t={autoBom:!t}),t.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob(["\ufeff",e],{type:e.type}):e}(e,o),i);else if(n(e))t(e,i,o);else{var s=document.createElement("a");s.href=e,s.target="_blank",setTimeout(function(){r(s)})}}:function(e,n,r,s){if((s=s||open("","_blank"))&&(s.document.title=s.document.body.innerText="downloading..."),"string"==typeof e)return t(e,n,r);var a="application/octet-stream"===e.type,l=/constructor/i.test(i.HTMLElement)||i.safari,c=/CriOS\/[\d]+/.test(navigator.userAgent);if((c||a&&l||o)&&"undefined"!=typeof FileReader){var A=new FileReader;A.onloadend=function(){var e=A.result;e=c?e:e.replace(/^data:[^;]*;/,"data:attachment/file;"),s?s.location.href=e:location=e,s=null},A.readAsDataURL(e)}else{var u=i.URL||i.webkitURL,h=u.createObjectURL(e);s?s.location=h:location.href=h,s=null,setTimeout(function(){u.revokeObjectURL(h)},4e4)}});i.saveAs=s.saveAs=s,e.exports=s})?n.apply(t,[]):n)||(e.exports=r)},67:e=>{var n;e.exports=(n=function(e){return"number"==typeof e&&parseFloat(e)==parseInt(e,10)&&!isNaN(e)},Array.prototype.indexOf||(Array.prototype.indexOf=function(e,t){if(null==this)throw new TypeError('"this" is null or not defined');var n=this.length>>>0;for(t=+t||0,1/0===Math.abs(t)&&(t=0),0>t&&0>(t+=n)&&(t=0);t<n;t++)if(this[t]===e)return t;return-1}),function(e){this.objectID="",this.legendSeparator=this.separator=" - ",this.method="",this.precision=0,this.precisionflag="auto",this.roundlength=2,this.silent=this.debug=this.is_uniqueValues=!1,this.bounds=[],this.ranges=[],this.inner_ranges=null,this.colors=[],this.counter=[],this.stat_cov=this.stat_stddev=this.stat_variance=this.stat_pop=this.stat_min=this.stat_max=this.stat_sum=this.stat_median=this.stat_mean=this.stat_sorted=null,this.log=function(e,t){1!=this.debug&&null==t||console.log(this.objectID+"(object id) :: "+e)},this.setBounds=function(e){this.log("Setting bounds ("+e.length+") : "+e.join()),this.bounds=e},this.setSerie=function(e){this.log("Setting serie ("+e.length+") : "+e.join()),this.serie=e,this.resetStatistics(),this.setPrecision()},this.setColors=function(e){this.log("Setting color ramp ("+e.length+") : "+e.join()),this.colors=e},this.doCount=function(){if(!this._nodata()){var e=this.sorted();if(this.counter=[],1==this.is_uniqueValues)for(var t=0;t<this.bounds.length;t++)this.counter[t]=0;else for(t=0;t<this.bounds.length-1;t++)this.counter[t]=0;for(t=0;t<e.length;t++){var n=this.getClass(e[t]);this.counter[n]++}}},this.setPrecision=function(e){if(void 0!==e&&(this.precisionflag="manual",this.precision=e),"auto"==this.precisionflag)for(e=0;e<this.serie.length;e++){var t=isNaN(this.serie[e]+"")||-1==(this.serie[e]+"").toString().indexOf(".")?0:(this.serie[e]+"").split(".")[1].length;t>this.precision&&(this.precision=t)}20<this.precision&&(this.log("this.precision value ("+this.precision+') is greater than max value. Automatic set-up to 20 to prevent "Uncaught RangeError: toFixed()" when calling decimalFormat() method.'),this.precision=20),this.log("Calling setPrecision(). Mode : "+this.precisionflag+" - Decimals : "+this.precision),this.serie=this.decimalFormat(this.serie)},this.decimalFormat=function(e){for(var t=[],n=0;n<e.length;n++){var r=e[n];r=!isNaN(parseFloat(r))&&isFinite(r),t[n]=r?parseFloat(parseFloat(e[n]).toFixed(this.precision)):e[n]}return t},this.setRanges=function(){this.ranges=[];for(var e=0;e<this.bounds.length-1;e++)this.ranges[e]=this.bounds[e]+this.separator+this.bounds[e+1]},this.min=function(){if(!this._nodata()){this.stat_min=this.serie[0];for(var e=0;e<this.pop();e++)this.serie[e]<this.stat_min&&(this.stat_min=this.serie[e]);return this.stat_min}},this.max=function(){if(!this._nodata()){this.stat_max=this.serie[0];for(var e=0;e<this.pop();e++)this.serie[e]>this.stat_max&&(this.stat_max=this.serie[e]);return this.stat_max}},this.sum=function(){if(!this._nodata()){if(null==this.stat_sum)for(var e=this.stat_sum=0;e<this.pop();e++)this.stat_sum+=parseFloat(this.serie[e]);return this.stat_sum}},this.pop=function(){if(!this._nodata())return null==this.stat_pop&&(this.stat_pop=this.serie.length),this.stat_pop},this.mean=function(){if(!this._nodata())return null==this.stat_mean&&(this.stat_mean=parseFloat(this.sum()/this.pop())),this.stat_mean},this.median=function(){if(!this._nodata()){if(null==this.stat_median){this.stat_median=0;var e=this.sorted();this.stat_median=e.length%2?parseFloat(e[Math.ceil(e.length/2)-1]):(parseFloat(e[e.length/2-1])+parseFloat(e[e.length/2]))/2}return this.stat_median}},this.variance=function(){var e=void 0===e;if(!this._nodata()){if(null==this.stat_variance){for(var t=0,n=this.mean(),r=0;r<this.pop();r++)t+=Math.pow(this.serie[r]-n,2);this.stat_variance=t/this.pop(),1==e&&(this.stat_variance=Math.round(this.stat_variance*Math.pow(10,this.roundlength))/Math.pow(10,this.roundlength))}return this.stat_variance}},this.stddev=function(e){if(e=void 0===e,!this._nodata())return null==this.stat_stddev&&(this.stat_stddev=Math.sqrt(this.variance()),1==e&&(this.stat_stddev=Math.round(this.stat_stddev*Math.pow(10,this.roundlength))/Math.pow(10,this.roundlength))),this.stat_stddev},this.cov=function(e){if(e=void 0===e,!this._nodata())return null==this.stat_cov&&(this.stat_cov=this.stddev()/this.mean(),1==e&&(this.stat_cov=Math.round(this.stat_cov*Math.pow(10,this.roundlength))/Math.pow(10,this.roundlength))),this.stat_cov},this.resetStatistics=function(){this.stat_cov=this.stat_stddev=this.stat_variance=this.stat_pop=this.stat_min=this.stat_max=this.stat_sum=this.stat_median=this.stat_mean=this.stat_sorted=null},this._nodata=function(){if(0==this.serie.length){if(!this.silent)throw new TypeError("Error. You should first enter a serie!");return this.log("[silent mode] Error. You should first enter a serie!",!0),1}return 0},this._nbClassInt=function(e){if(e=parseInt(e,10),!isNaN(e))return e;if(!this.silent)throw new TypeError("'"+e+"' is not a valid integer. Enable to set class number.");this.log("[silent mode] '"+e+"' is not a valid integer. Enable to set class number.",!0)},this._hasNegativeValue=function(){for(var e=0;e<this.serie.length;e++)if(0>this.serie[e])return!0;return!1},this._hasZeroValue=function(){for(var e=0;e<this.serie.length;e++)if(0===parseFloat(this.serie[e]))return!0;return!1},this.sorted=function(){return null==this.stat_sorted&&(this.stat_sorted=this.serie.sort(0==this.is_uniqueValues?function(e,t){return e-t}:function(e,t){var n=e.toString().toLowerCase(),r=t.toString().toLowerCase();return n<r?-1:n>r?1:0})),this.stat_sorted},this.info=function(){if(!this._nodata()){var e="Population : "+this.pop()+" - [Min : "+this.min()+" | Max : "+this.max()+"]\n";return(e+="Mean : "+this.mean()+" - Median : "+this.median()+"\n")+"Variance : "+this.variance()+" - Standard deviation : "+this.stddev()+" - Coefficient of variation : "+this.cov()+"\n"}},this.setClassManually=function(e){if(!this._nodata()){if(e[0]===this.min()&&e[e.length-1]===this.max())return this.setBounds(e),this.setRanges(),this.method="manual classification ("+(e.length-1)+" classes)",this.bounds;if(!this.silent)throw new TypeError("Given bounds may not be correct! please check your input.\nMin value : "+this.min()+" / Max value : "+this.max());this.log("[silent mode] "+t("Given bounds may not be correct! please check your input.\nMin value : "+this.min()+" / Max value : "+this.max()),!0)}},this.getClassEqInterval=function(e,t,n){if(e=this._nbClassInt(e),!this._nodata()){var r=void 0===t?this.min():t;t=[];var i=r;r=((n=void 0===n?this.max():n)-r)/e;for(var o=0;o<=e;o++)t[o]=i,i+=r;return t[e]=n,this.setBounds(t),this.setRanges(),this.method="eq. intervals ("+e+" classes)",this.bounds}},this.getQuantiles=function(e){e=this._nbClassInt(e);for(var t=this.sorted(),n=[],r=this.pop()/e,i=1;i<e;i++)n.push(t[Math.round(i*r+.49)-1]);return n},this.getClassQuantile=function(e){if(e=this._nbClassInt(e),!this._nodata()){var t=this.sorted(),n=this.getQuantiles(e);return n.unshift(t[0]),n[t.length-1]!==t[t.length-1]&&n.push(t[t.length-1]),this.setBounds(n),this.setRanges(),this.method="quantile ("+e+" classes)",this.bounds}},this.getClassStdDeviation=function(e,t){if(e=this._nbClassInt(e),!this._nodata()){var n=this.max(),r=this.min(),i=this.stddev(),o=this.mean(),s=[];if(1==e%2){var a=Math.floor(e/2),l=a+1;for(s[a]=o-i/2,s[l]=o+i/2,o=a-1;0<o;o--)s[o]=a=s[o+1]-i;o=l+1}else{for(s[l=e/2]=o,o=l-1;0<o;o--)s[o]=a=s[o+1]-i;o=l+1}for(;o<e;o++)s[o]=a=s[o-1]+i;return s[0]=void 0===t?s[1]-i:r,s[e]=void 0===t?s[e-1]+i:n,this.setBounds(s),this.setRanges(),this.method="std deviation ("+e+" classes)",this.bounds}},this.getClassGeometricProgression=function(e){if(e=this._nbClassInt(e),!this._nodata()){if(!this._hasNegativeValue()&&!this._hasZeroValue()){var t=[],n=this.min(),r=this.max();n=Math.log(n)/Math.LN10,r=(Math.log(r)/Math.LN10-n)/e;for(var i=0;i<e;i++)t[i]=0==i?n:t[i-1]+r;return(t=t.map(function(e){return Math.pow(10,e)})).push(this.max()),this.setBounds(t),this.setRanges(),this.method="geometric progression ("+e+" classes)",this.bounds}if(!this.silent)throw new TypeError("geometric progression can't be applied with a serie containing negative or zero values.");this.log("[silent mode] geometric progression can't be applied with a serie containing negative or zero values.",!0)}},this.getClassArithmeticProgression=function(e){if(e=this._nbClassInt(e),!this._nodata()){for(var t=0,n=1;n<=e;n++)t+=n;var r=[],i=this.min();for(t=(this.max()-i)/t,n=0;n<=e;n++)r[n]=0==n?i:r[n-1]+n*t;return this.setBounds(r),this.setRanges(),this.method="arithmetic progression ("+e+" classes)",this.bounds}},this.getClassJenks2=function(e){if(e=this._nbClassInt(e),!this._nodata()){for(var t=this.sorted(),n=[],r=0,i=t.length+1;r<i;r++){for(var o=[],s=0,a=e+1;s<a;s++)o.push(0);n.push(o)}for(r=[],i=0,o=t.length+1;i<o;i++){s=[],a=0;for(var l=e+1;a<l;a++)s.push(0);r.push(s)}for(i=1,o=e+1;i<o;i++){n[0][i]=1,r[0][i]=0;var c=1;for(s=t.length+1;c<s;c++)r[c][i]=1/0;c=0}for(i=2,o=t.length+1;i<o;i++){l=a=s=0;for(var A=1,u=i+1;A<u;A++){var h=i-A+1;c=(a+=(c=parseFloat(t[h-1]))*c)-(s+=c)*s/(l+=1);var d=h-1;if(0!=d)for(var p=2,f=e+1;p<f;p++)r[i][p]>=c+r[d][p-1]&&(n[i][p]=h,r[i][p]=c+r[d][p-1])}n[i][1]=1,r[i][1]=c}for(c=t.length,r=[],i=0;i<=e;i++)r.push(0);for(r[e]=parseFloat(t[t.length-1]),r[0]=parseFloat(t[0]),i=e;2<=i;)o=parseInt(n[c][i]-2),r[i-1]=t[o],c=parseInt(n[c][i]-1),--i;return r[0]==r[1]&&(r[0]=0),this.setBounds(r),this.setRanges(),this.method="Jenks2 ("+e+" classes)",this.bounds}},this.getClassJenks=function(e){if(e=this._nbClassInt(e),!this._nodata()){var t=this.sorted();jenksMatrices=function(e,t){var n,r,i=[],o=[],s=0;for(n=0;n<e.length+1;n++){var a=[],l=[];for(r=0;r<t+1;r++)a.push(0),l.push(0);i.push(a),o.push(l)}for(n=1;n<t+1;n++)for(i[1][n]=1,o[1][n]=0,r=2;r<e.length+1;r++)o[r][n]=1/0;for(n=2;n<e.length+1;n++){for(var c,A=l=a=0,u=1;u<n+1;u++){var h=n-u+1;if(s=(l+=(r=e[h-1])*r)-(a+=r)*a/++A,0!=(c=h-1))for(r=2;r<t+1;r++)o[n][r]>=s+o[c][r-1]&&(i[n][r]=h,o[n][r]=s+o[c][r-1])}i[n][1]=1,o[n][1]=s}return{lower_class_limits:i,variance_combinations:o}};var n=jenksMatrices(t,e).lower_class_limits,r=t.length-1,i=[],o=e;for(i[e]=t[t.length-1],i[0]=t[0];1<o;)i[o-1]=t[n[r][o]-2],r=n[r][o]-1,o--;return this.setBounds(i),this.setRanges(),this.method="Jenks ("+e+" classes)",this.bounds}},this.getClassUniqueValues=function(){if(!this._nodata()){this.is_uniqueValues=!0;for(var e=this.sorted(),t=[],n=0;n<this.pop();n++)-1===t.indexOf(e[n])&&t.push(e[n]);return this.bounds=t,this.method="unique values",t}},this.getClass=function(e){for(var t=0;t<this.bounds.length;t++)if(1==this.is_uniqueValues){if(e==this.bounds[t])return t}else if(parseFloat(e)<=this.bounds[t+1])return t;return"Unable to get value's class."},this.getRanges=function(){return this.ranges},this.getRangeNum=function(e){var t;for(t=0;t<this.ranges.length;t++){var n=this.ranges[t].split(/ - /);if(e<=parseFloat(n[1]))return t}},this.getInnerRanges=function(){if(null!=this.inner_ranges)return this.inner_ranges;for(var e=[],t=this.sorted(),n=1,r=0;r<t.length;r++){if(0==r)var i=t[r];if(parseFloat(t[r])>parseFloat(this.bounds[n])&&(e[n-1]=""+i+this.separator+t[r-1],i=t[r],n++),n==this.bounds.length-1)return e[n-1]=""+i+this.separator+t[t.length-1],this.inner_ranges=e}},this.getSortedlist=function(){return this.sorted().join(", ")},this.getHtmlLegend=function(e,t,r,i,o,s){var a="",l=[];if(this.doCount(),ccolors=null!=e?e:this.colors,lg=null!=t?t:"Legend",getcounter=null!=r,fn=null!=i?i:function(e){return e},null==o&&(o="default"),"discontinuous"!=o||(this.getInnerRanges(),-1===this.counter.indexOf(0))){if("DESC"!==s&&(s="ASC"),!(ccolors.length<this.ranges.length)){if(0==this.is_uniqueValues)for(e=0;e<this.ranges.length;e++)!0===getcounter&&(a=' <span class="geostats-legend-counter">('+this.counter[e]+")</span>"),r=this.ranges[e].split(this.separator),t=parseFloat(r[0]).toFixed(this.precision),r=parseFloat(r[1]).toFixed(this.precision),"distinct"==o&&0!=e&&(n(t)?(t=parseInt(t)+1,"manual"==this.precisionflag&&0!=this.precision&&(t=parseFloat(t).toFixed(this.precision))):(t=parseFloat(t)+1/Math.pow(10,this.precision),t=parseFloat(t).toFixed(this.precision))),"discontinuous"==o&&(r=this.inner_ranges[e].split(this.separator),t=parseFloat(r[0]).toFixed(this.precision),r=parseFloat(r[1]).toFixed(this.precision)),t=fn(t)+this.legendSeparator+fn(r),t='<div><div class="geostats-legend-block" style="background-color:'+ccolors[e]+'"></div> '+t+a+"</div>",l.push(t);else for(e=0;e<this.bounds.length;e++)!0===getcounter&&(a=' <span class="geostats-legend-counter">('+this.counter[e]+")</span>"),t=fn(this.bounds[e]),t='<div><div class="geostats-legend-block" style="background-color:'+ccolors[e]+'"></div> '+t+a+"</div>",l.push(t);for("DESC"===s&&l.reverse(),o='<div class="geostats-legend"><div class="geostats-legend-title">'+lg+"</div>",e=0;e<l.length;e++)o+=l[e];return o+"</div>"}if(!this.silent)throw new TypeError("The number of colors should fit the number of ranges. Exit!");this.log("[silent mode] The number of colors should fit the number of ranges. Exit!",!0)}else{if(!this.silent)throw new TypeError("Geostats cannot apply 'discontinuous' mode to the getHtmlLegend() method because some classes are not populated.\nPlease switch to 'default' or 'distinct' modes. Exit!");this.log("[silent mode] Geostats cannot apply 'discontinuous' mode to the getHtmlLegend() method because some classes are not populated.\nPlease switch to 'default' or 'distinct' modes. Exit!",!0)}},this.objectID=(new Date).getUTCMilliseconds(),this.log("Creating new geostats object"),void 0!==e&&0<e.length?(this.serie=e,this.setPrecision(),this.log("Setting serie ("+e.length+") : "+e.join())):this.serie=[],this.getJenks=this.getClassJenks,this.getJenks2=this.getClassJenks2,this.getGeometricProgression=this.getClassGeometricProgression,this.getEqInterval=this.getClassEqInterval,this.getQuantile=this.getClassQuantile,this.getStdDeviation=this.getClassStdDeviation,this.getUniqueValues=this.getClassUniqueValues,this.getArithmeticProgression=this.getClassArithmeticProgression})},977:function(e){e.exports=function(){"use strict";var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};function t(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}var n=function(){return(n=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function r(e,t,n,r){return new(n||(n=Promise))(function(i,o){function s(e){try{l(r.next(e))}catch(t){o(t)}}function a(e){try{l(r.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(s,a)}l((r=r.apply(e,t||[])).next())})}function i(e,t){var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!((i=(i=s.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(a){o=[6,a],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}}function o(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||t)}for(var s=function(){function e(e,t,n,r){this.left=e,this.top=t,this.width=n,this.height=r}return e.prototype.add=function(t,n,r,i){return new e(this.left+t,this.top+n,this.width+r,this.height+i)},e.fromClientRect=function(t,n){return new e(n.left+t.windowBounds.left,n.top+t.windowBounds.top,n.width,n.height)},e}(),a=function(e,t){return s.fromClientRect(e,t.getBoundingClientRect())},l=function(e){for(var t=[],n=0,r=e.length;n<r;){var i=e.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){var o=e.charCodeAt(n++);56320==(64512&o)?t.push(((1023&i)<<10)+(1023&o)+65536):(t.push(i),n--)}else t.push(i)}return t},c=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(String.fromCodePoint)return String.fromCodePoint.apply(String,e);var n=e.length;if(!n)return"";for(var r=[],i=-1,o="";++i<n;){var s=e[i];s<=65535?r.push(s):r.push(55296+((s-=65536)>>10),s%1024+56320),(i+1===n||r.length>16384)&&(o+=String.fromCharCode.apply(String,r),r.length=0)}return o},A="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",u="undefined"==typeof Uint8Array?[]:new Uint8Array(256),h=0;h<A.length;h++)u[A.charCodeAt(h)]=h;var d,p,f,g,m,y,w,v,b=function(e,t,n){return e.slice?e.slice(t,n):new Uint16Array(Array.prototype.slice.call(e,t,n))},C=function(){function e(e,t,n,r,i,o){this.initialValue=e,this.errorValue=t,this.highStart=n,this.highValueIndex=r,this.index=i,this.data=o}return e.prototype.get=function(e){var t;if(e>=0){if(e<55296||e>56319&&e<=65535)return this.data[t=((t=this.index[e>>5])<<2)+(31&e)];if(e<=65535)return this.data[t=((t=this.index[2048+(e-55296>>5)])<<2)+(31&e)];if(e<this.highStart)return t=this.index[t=2080+(e>>11)],this.data[t=((t=this.index[t+=e>>5&63])<<2)+(31&e)];if(e<=1114111)return this.data[this.highValueIndex]}return this.errorValue},e}(),B=10,_=13,E=15,F=17,T=18,S=19,x=20,Q=21,k=22,U=24,O=25,I=26,L=27,D=28,M=30,H=32,R=33,P=34,N=35,K=37,V=38,G=39,j=40,q=42,z=[9001,65288],W="\xd7",X="\xf7",J=(g=function(e){var t,n,r,i,o,s=.75*e.length,a=e.length,l=0;"="===e[e.length-1]&&(s--,"="===e[e.length-2]&&s--);var c="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array&&void 0!==Uint8Array.prototype.slice?new ArrayBuffer(s):new Array(s),A=Array.isArray(c)?c:new Uint8Array(c);for(t=0;t<a;t+=4)n=u[e.charCodeAt(t)],r=u[e.charCodeAt(t+1)],i=u[e.charCodeAt(t+2)],o=u[e.charCodeAt(t+3)],A[l++]=n<<2|r>>4,A[l++]=(15&r)<<4|i>>2,A[l++]=(3&i)<<6|63&o;return c}("KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF8AZwBgAGgAcQB5AHUAfQCFAI0AlQCdAKIAqgCyALoAYABoAGAAaABgAGgAwgDKAGAAaADGAM4A0wDbAOEA6QDxAPkAAQEJAQ8BFwF1AH0AHAEkASwBNAE6AUIBQQFJAVEBWQFhAWgBcAF4ATAAgAGGAY4BlQGXAZ8BpwGvAbUBvQHFAc0B0wHbAeMB6wHxAfkBAQIJAvEBEQIZAiECKQIxAjgCQAJGAk4CVgJeAmQCbAJ0AnwCgQKJApECmQKgAqgCsAK4ArwCxAIwAMwC0wLbAjAA4wLrAvMC+AIAAwcDDwMwABcDHQMlAy0DNQN1AD0DQQNJA0kDSQNRA1EDVwNZA1kDdQB1AGEDdQBpA20DdQN1AHsDdQCBA4kDkQN1AHUAmQOhA3UAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AKYDrgN1AHUAtgO+A8YDzgPWAxcD3gPjA+sD8wN1AHUA+wMDBAkEdQANBBUEHQQlBCoEFwMyBDgEYABABBcDSARQBFgEYARoBDAAcAQzAXgEgASIBJAEdQCXBHUAnwSnBK4EtgS6BMIEyAR1AHUAdQB1AHUAdQCVANAEYABgAGAAYABgAGAAYABgANgEYADcBOQEYADsBPQE/AQEBQwFFAUcBSQFLAU0BWQEPAVEBUsFUwVbBWAAYgVgAGoFcgV6BYIFigWRBWAAmQWfBaYFYABgAGAAYABgAKoFYACxBbAFuQW6BcEFwQXHBcEFwQXPBdMF2wXjBeoF8gX6BQIGCgYSBhoGIgYqBjIGOgZgAD4GRgZMBmAAUwZaBmAAYABgAGAAYABgAGAAYABgAGAAYABgAGIGYABpBnAGYABgAGAAYABgAGAAYABgAGAAYAB4Bn8GhQZgAGAAYAB1AHcDFQSLBmAAYABgAJMGdQA9A3UAmwajBqsGqwaVALMGuwbDBjAAywbSBtIG1QbSBtIG0gbSBtIG0gbdBuMG6wbzBvsGAwcLBxMHAwcbByMHJwcsBywHMQcsB9IGOAdAB0gHTgfSBkgHVgfSBtIG0gbSBtIG0gbSBtIG0gbSBiwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdgAGAALAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdbB2MHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB2kH0gZwB64EdQB1AHUAdQB1AHUAdQB1AHUHfQdgAIUHjQd1AHUAlQedB2AAYAClB6sHYACzB7YHvgfGB3UAzgfWBzMB3gfmB1EB7gf1B/0HlQENAQUIDQh1ABUIHQglCBcDLQg1CD0IRQhNCEEDUwh1AHUAdQBbCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIcAh3CHoIMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIgggwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAALAcsBywHLAcsBywHLAcsBywHLAcsB4oILAcsB44I0gaWCJ4Ipgh1AHUAqgiyCHUAdQB1AHUAdQB1AHUAdQB1AHUAtwh8AXUAvwh1AMUIyQjRCNkI4AjoCHUAdQB1AO4I9gj+CAYJDgkTCS0HGwkjCYIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiAAIAAAAFAAYABgAGIAXwBgAHEAdQBFAJUAogCyAKAAYABgAEIA4ABGANMA4QDxAMEBDwE1AFwBLAE6AQEBUQF4QkhCmEKoQrhCgAHIQsAB0MLAAcABwAHAAeDC6ABoAHDCwMMAAcABwAHAAdDDGMMAAcAB6MM4wwjDWMNow3jDaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAEjDqABWw6bDqABpg6gAaABoAHcDvwOPA+gAaABfA/8DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DpcPAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcAB9cPKwkyCToJMAB1AHUAdQBCCUoJTQl1AFUJXAljCWcJawkwADAAMAAwAHMJdQB2CX4JdQCECYoJjgmWCXUAngkwAGAAYABxAHUApgn3A64JtAl1ALkJdQDACTAAMAAwADAAdQB1AHUAdQB1AHUAdQB1AHUAowYNBMUIMAAwADAAMADICcsJ0wnZCRUE4QkwAOkJ8An4CTAAMAB1AAAKvwh1AAgKDwoXCh8KdQAwACcKLgp1ADYKqAmICT4KRgowADAAdQB1AE4KMAB1AFYKdQBeCnUAZQowADAAMAAwADAAMAAwADAAMAAVBHUAbQowADAAdQC5CXUKMAAwAHwBxAijBogEMgF9CoQKiASMCpQKmgqIBKIKqgquCogEDQG2Cr4KxgrLCjAAMADTCtsKCgHjCusK8Qr5CgELMAAwADAAMAB1AIsECQsRC3UANAEZCzAAMAAwADAAMAB1ACELKQswAHUANAExCzkLdQBBC0kLMABRC1kLMAAwADAAMAAwADAAdQBhCzAAMAAwAGAAYABpC3ELdwt/CzAAMACHC4sLkwubC58Lpwt1AK4Ltgt1APsDMAAwADAAMAAwADAAMAAwAL4LwwvLC9IL1wvdCzAAMADlC+kL8Qv5C/8LSQswADAAMAAwADAAMAAwADAAMAAHDDAAMAAwADAAMAAODBYMHgx1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1ACYMMAAwADAAdQB1AHUALgx1AHUAdQB1AHUAdQA2DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AD4MdQBGDHUAdQB1AHUAdQB1AEkMdQB1AHUAdQB1AFAMMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQBYDHUAdQB1AF8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUA+wMVBGcMMAAwAHwBbwx1AHcMfwyHDI8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAYABgAJcMMAAwADAAdQB1AJ8MlQClDDAAMACtDCwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB7UMLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AA0EMAC9DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAsBywHLAcsBywHLAcsBywHLQcwAMEMyAwsBywHLAcsBywHLAcsBywHLAcsBywHzAwwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1ANQM2QzhDDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMABgAGAAYABgAGAAYABgAOkMYADxDGAA+AwADQYNYABhCWAAYAAODTAAMAAwADAAFg1gAGAAHg37AzAAMAAwADAAYABgACYNYAAsDTQNPA1gAEMNPg1LDWAAYABgAGAAYABgAGAAYABgAGAAUg1aDYsGVglhDV0NcQBnDW0NdQ15DWAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAlQCBDZUAiA2PDZcNMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAnw2nDTAAMAAwADAAMAAwAHUArw23DTAAMAAwADAAMAAwADAAMAAwADAAMAB1AL8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQDHDTAAYABgAM8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA1w11ANwNMAAwAD0B5A0wADAAMAAwADAAMADsDfQN/A0EDgwOFA4wABsOMAAwADAAMAAwADAAMAAwANIG0gbSBtIG0gbSBtIG0gYjDigOwQUuDsEFMw7SBjoO0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGQg5KDlIOVg7SBtIGXg5lDm0OdQ7SBtIGfQ6EDooOjQ6UDtIGmg6hDtIG0gaoDqwO0ga0DrwO0gZgAGAAYADEDmAAYAAkBtIGzA5gANIOYADaDokO0gbSBt8O5w7SBu8O0gb1DvwO0gZgAGAAxA7SBtIG0gbSBtIGYABgAGAAYAAED2AAsAUMD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHJA8sBywHLAcsBywHLAccDywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywPLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAc0D9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHPA/SBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gYUD0QPlQCVAJUAMAAwADAAMACVAJUAlQCVAJUAlQCVAEwPMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA//8EAAQABAAEAAQABAAEAAQABAANAAMAAQABAAIABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQACgATABcAHgAbABoAHgAXABYAEgAeABsAGAAPABgAHABLAEsASwBLAEsASwBLAEsASwBLABgAGAAeAB4AHgATAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABYAGwASAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWAA0AEQAeAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAFAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJABYAGgAbABsAGwAeAB0AHQAeAE8AFwAeAA0AHgAeABoAGwBPAE8ADgBQAB0AHQAdAE8ATwAXAE8ATwBPABYAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAFAATwBAAE8ATwBPAEAATwBQAFAATwBQAB4AHgAeAB4AHgAeAB0AHQAdAB0AHgAdAB4ADgBQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgBQAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAkACQAJAAkACQAJAAkABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAFAAHgAeAB4AKwArAFAAUABQAFAAGABQACsAKwArACsAHgAeAFAAHgBQAFAAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUAAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAYAA0AKwArAB4AHgAbACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAB4ABAAEAB4ABAAEABMABAArACsAKwArACsAKwArACsAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAKwArACsAKwBWAFYAVgBWAB4AHgArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AGgAaABoAGAAYAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQAEwAEACsAEwATAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABLAEsASwBLAEsASwBLAEsASwBLABoAGQAZAB4AUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABMAUAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABABQAFAABAAEAB4ABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUAAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAFAABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQAUABQAB4AHgAYABMAUAArACsABAAbABsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAFAABAAEAAQABAAEAFAABAAEAAQAUAAEAAQABAAEAAQAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArACsAHgArAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAUAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEAA0ADQBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUAArACsAKwBQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABABQACsAKwArACsAKwArACsAKwAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUAAaABoAUABQAFAAUABQAEwAHgAbAFAAHgAEACsAKwAEAAQABAArAFAAUABQAFAAUABQACsAKwArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQACsAUABQACsAKwAEACsABAAEAAQABAAEACsAKwArACsABAAEACsAKwAEAAQABAArACsAKwAEACsAKwArACsAKwArACsAUABQAFAAUAArAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLAAQABABQAFAAUAAEAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAArACsAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AGwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAKwArACsAKwArAAQABAAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAAQAUAArAFAAUABQAFAAUABQACsAKwArAFAAUABQACsAUABQAFAAUAArACsAKwBQAFAAKwBQACsAUABQACsAKwArAFAAUAArACsAKwBQAFAAUAArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAAQABAAEAAQABAArACsAKwAEAAQABAArAAQABAAEAAQAKwArAFAAKwArACsAKwArACsABAArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAHgAeAB4AHgAeAB4AGwAeACsAKwArACsAKwAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAUABQAFAAKwArACsAKwArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwAOAFAAUABQAFAAUABQAFAAHgBQAAQABAAEAA4AUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAKwArAAQAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAKwArACsAKwArACsAUAArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABABQAB4AKwArACsAKwBQAFAAUAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQABoAUABQAFAAUABQAFAAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQACsAUAArACsAUABQAFAAUABQAFAAUAArACsAKwAEACsAKwArACsABAAEAAQABAAEAAQAKwAEACsABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgAqACsAKwArACsAGwBcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAeAEsASwBLAEsASwBLAEsASwBLAEsADQANACsAKwArACsAKwBcAFwAKwBcACsAXABcAFwAXABcACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAXAArAFwAXABcAFwAXABcAFwAXABcAFwAKgBcAFwAKgAqACoAKgAqACoAKgAqACoAXAArACsAXABcAFwAXABcACsAXAArACoAKgAqACoAKgAqACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwBcAFwAXABcAFAADgAOAA4ADgAeAA4ADgAJAA4ADgANAAkAEwATABMAEwATAAkAHgATAB4AHgAeAAQABAAeAB4AHgAeAB4AHgBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQAFAADQAEAB4ABAAeAAQAFgARABYAEQAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAAQABAAEAAQADQAEAAQAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAA0ADQAeAB4AHgAeAB4AHgAEAB4AHgAeAB4AHgAeACsAHgAeAA4ADgANAA4AHgAeAB4AHgAeAAkACQArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgBcAEsASwBLAEsASwBLAEsASwBLAEsADQANAB4AHgAeAB4AXABcAFwAXABcAFwAKgAqACoAKgBcAFwAXABcACoAKgAqAFwAKgAqACoAXABcACoAKgAqACoAKgAqACoAXABcAFwAKgAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqAFwAKgBLAEsASwBLAEsASwBLAEsASwBLACoAKgAqACoAKgAqAFAAUABQAFAAUABQACsAUAArACsAKwArACsAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAKwBQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsABAAEAAQAHgANAB4AHgAeAB4AHgAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUAArACsADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWABEAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQANAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAANAA0AKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUAArAAQABAArACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqAA0ADQAVAFwADQAeAA0AGwBcACoAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwAeAB4AEwATAA0ADQAOAB4AEwATAB4ABAAEAAQACQArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAHgArACsAKwATABMASwBLAEsASwBLAEsASwBLAEsASwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAXABcAFwAXABcACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAXAArACsAKwAqACoAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsAHgAeAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKwAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKwArAAQASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACoAKgAqACoAKgAqACoAXAAqACoAKgAqACoAKgArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABABQAFAAUABQAFAAUABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwANAA0AHgANAA0ADQANAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwAeAB4AHgAeAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArAA0ADQANAA0ADQBLAEsASwBLAEsASwBLAEsASwBLACsAKwArAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUAAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAAQAUABQAFAAUABQAFAABABQAFAABAAEAAQAUAArACsAKwArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQACsAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAFAAUABQACsAHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQACsAKwAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQACsAHgAeAB4AHgAeAB4AHgAOAB4AKwANAA0ADQANAA0ADQANAAkADQANAA0ACAAEAAsABAAEAA0ACQANAA0ADAAdAB0AHgAXABcAFgAXABcAFwAWABcAHQAdAB4AHgAUABQAFAANAAEAAQAEAAQABAAEAAQACQAaABoAGgAaABoAGgAaABoAHgAXABcAHQAVABUAHgAeAB4AHgAeAB4AGAAWABEAFQAVABUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ADQAeAA0ADQANAA0AHgANAA0ADQAHAB4AHgAeAB4AKwAEAAQABAAEAAQABAAEAAQABAAEAFAAUAArACsATwBQAFAAUABQAFAAHgAeAB4AFgARAE8AUABPAE8ATwBPAFAAUABQAFAAUAAeAB4AHgAWABEAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArABsAGwAbABsAGwAbABsAGgAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGgAbABsAGwAbABoAGwAbABoAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAHgAeAFAAGgAeAB0AHgBQAB4AGgAeAB4AHgAeAB4AHgAeAB4AHgBPAB4AUAAbAB4AHgBQAFAAUABQAFAAHgAeAB4AHQAdAB4AUAAeAFAAHgBQAB4AUABPAFAAUAAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgBQAFAAUABQAE8ATwBQAFAAUABQAFAATwBQAFAATwBQAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAUABQAFAATwBPAE8ATwBPAE8ATwBPAE8ATwBQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABPAB4AHgArACsAKwArAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHQAdAB4AHgAeAB0AHQAeAB4AHQAeAB4AHgAdAB4AHQAbABsAHgAdAB4AHgAeAB4AHQAeAB4AHQAdAB0AHQAeAB4AHQAeAB0AHgAdAB0AHQAdAB0AHQAeAB0AHgAeAB4AHgAeAB0AHQAdAB0AHgAeAB4AHgAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHgAeAB0AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAeAB0AHQAdAB0AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAdAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAWABEAHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAWABEAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AHQAdAB0AHgAeAB0AHgAeAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlAB4AHQAdAB4AHgAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AJQAlAB0AHQAlAB4AJQAlACUAIAAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAdAB0AHQAeAB0AJQAdAB0AHgAdAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAdAB0AHQAdACUAHgAlACUAJQAdACUAJQAdAB0AHQAlACUAHQAdACUAHQAdACUAJQAlAB4AHQAeAB4AHgAeAB0AHQAlAB0AHQAdAB0AHQAdACUAJQAlACUAJQAdACUAJQAgACUAHQAdACUAJQAlACUAJQAlACUAJQAeAB4AHgAlACUAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AFwAXABcAFwAXABcAHgATABMAJQAeAB4AHgAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARABYAEQAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAEAAQABAAeAB4AKwArACsAKwArABMADQANAA0AUAATAA0AUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUAANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAA0ADQANAA0ADQANAA0ADQAeAA0AFgANAB4AHgAXABcAHgAeABcAFwAWABEAFgARABYAEQAWABEADQANAA0ADQATAFAADQANAB4ADQANAB4AHgAeAB4AHgAMAAwADQANAA0AHgANAA0AFgANAA0ADQANAA0ADQANAA0AHgANAB4ADQANAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArAA0AEQARACUAJQBHAFcAVwAWABEAFgARABYAEQAWABEAFgARACUAJQAWABEAFgARABYAEQAWABEAFQAWABEAEQAlAFcAVwBXAFcAVwBXAFcAVwBXAAQABAAEAAQABAAEACUAVwBXAFcAVwA2ACUAJQBXAFcAVwBHAEcAJQAlACUAKwBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBRAFcAUQBXAFEAVwBXAFcAVwBXAFcAUQBXAFcAVwBXAFcAVwBRAFEAKwArAAQABAAVABUARwBHAFcAFQBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBRAFcAVwBXAFcAVwBXAFEAUQBXAFcAVwBXABUAUQBHAEcAVwArACsAKwArACsAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwAlACUAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACsAKwArACsAKwArACsAKwArACsAKwArAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBPAE8ATwBPAE8ATwBPAE8AJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADQATAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABLAEsASwBLAEsASwBLAEsASwBLAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAABAAEAAQABAAeAAQABAAEAAQABAAEAAQABAAEAAQAHgBQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAeAA0ADQANAA0ADQArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAAQAUABQAFAABABQAFAAUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAeAB4AHgAeAAQAKwArACsAUABQAFAAUABQAFAAHgAeABoAHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADgAOABMAEwArACsAKwArACsAKwArACsABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUAAeAB4AHgBQAA4AUABQAAQAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAB4AWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYACsAKwArAAQAHgAeAB4AHgAeAB4ADQANAA0AHgAeAB4AHgArAFAASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArAB4AHgBcAFwAXABcAFwAKgBcAFwAXABcAFwAXABcAFwAXABcAEsASwBLAEsASwBLAEsASwBLAEsAXABcAFwAXABcACsAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAFAAUABQAAQAUABQAFAAUABQAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAHgANAA0ADQBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAKgAqACoAXABcACoAKgBcAFwAXABcAFwAKgAqAFwAKgBcACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcACoAKgBQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAA0ADQBQAFAAUAAEAAQAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQADQAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAVABVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBUAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVACsAKwArACsAKwArACsAKwArACsAKwArAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAKwArACsAKwBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAKwArACsAKwAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAKwArACsAKwArAFYABABWAFYAVgBWAFYAVgBWAFYAVgBWAB4AVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgArAFYAVgBWAFYAVgArAFYAKwBWAFYAKwBWAFYAKwBWAFYAVgBWAFYAVgBWAFYAVgBWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAEQAWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAaAB4AKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAGAARABEAGAAYABMAEwAWABEAFAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACUAJQAlACUAJQAWABEAFgARABYAEQAWABEAFgARABYAEQAlACUAFgARACUAJQAlACUAJQAlACUAEQAlABEAKwAVABUAEwATACUAFgARABYAEQAWABEAJQAlACUAJQAlACUAJQAlACsAJQAbABoAJQArACsAKwArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAcAKwATACUAJQAbABoAJQAlABYAEQAlACUAEQAlABEAJQBXAFcAVwBXAFcAVwBXAFcAVwBXABUAFQAlACUAJQATACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXABYAJQARACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAWACUAEQAlABYAEQARABYAEQARABUAVwBRAFEAUQBRAFEAUQBRAFEAUQBRAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcARwArACsAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXACsAKwBXAFcAVwBXAFcAVwArACsAVwBXAFcAKwArACsAGgAbACUAJQAlABsAGwArAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAAQAB0AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsADQANAA0AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAA0AUABQAFAAUAArACsAKwArAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwBQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAUABQAFAAUABQAAQABAAEACsABAAEACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAKwBQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAA0ADQANAA0ADQANAA0ADQAeACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAArACsAKwArAFAAUABQAFAAUAANAA0ADQANAA0ADQAUACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsADQANAA0ADQANAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArAAQABAANACsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAB4AHgAeAB4AHgArACsAKwArACsAKwAEAAQABAAEAAQABAAEAA0ADQAeAB4AHgAeAB4AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsASwBLAEsASwBLAEsASwBLAEsASwANAA0ADQANAFAABAAEAFAAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAeAA4AUAArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAADQANAB4ADQAEAAQABAAEAB4ABAAEAEsASwBLAEsASwBLAEsASwBLAEsAUAAOAFAADQANAA0AKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAA0AHgANAA0AHgAEACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAA0AKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsABAAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAUAArACsAKwArACsAKwAEACsAKwArACsAKwBQAFAAUABQAFAABAAEACsAKwAEAAQABAAEAAQABAAEACsAKwArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABABQAFAAUABQAA0ADQANAA0AHgBLAEsASwBLAEsASwBLAEsASwBLAA0ADQArAB4ABABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUAAeAFAAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABAAEAAQADgANAA0AEwATAB4AHgAeAA0ADQANAA0ADQANAA0ADQANAA0ADQANAA0ADQANAFAAUABQAFAABAAEACsAKwAEAA0ADQAeAFAAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKwArACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBcAFwADQANAA0AKgBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQAKwAEAAQAKwArAAQABAAEAAQAUAAEAFAABAAEAA0ADQANACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABABQAA4AUAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAOAB4ADQANAA0ADQAOAB4ABAArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAA0ADQANAFAADgAOAA4ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAFAADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAOABMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAArACsAKwAEACsABAAEACsABAAEAAQABAAEAAQABABQAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAaABoAGgAaAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABIAEgAQwBDAEMAUABQAFAAUABDAFAAUABQAEgAQwBIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABDAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAJAAkACQAJAAkACQAJABYAEQArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwANAA0AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAANACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQANAB4AHgAeAB4AHgAeAFAAUABQAFAADQAeACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAA0AHgAeACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAARwBHABUARwAJACsAKwArACsAKwArACsAKwArACsAKwAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUQBRAFEAKwArACsAKwArACsAKwArACsAKwArACsAKwBRAFEAUQBRACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAHgAEAAQADQAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQABAAEAAQABAAeAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQAHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAKwArAFAAKwArAFAAUAArACsAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUAArAFAAUABQAFAAUABQAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAHgAeAFAAUABQAFAAUAArAFAAKwArACsAUABQAFAAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeACsAKwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4ABAAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAHgAeAA0ADQANAA0AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArAAQABAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwBQAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArABsAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAB4AHgAeAB4ABAAEAAQABAAEAAQABABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArABYAFgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAGgBQAFAAUAAaAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUAArACsAKwArACsAKwBQACsAKwArACsAUAArAFAAKwBQACsAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUAArAFAAKwBQACsAUAArAFAAUAArAFAAKwArAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAKwBQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AJQAlACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeACUAJQAlAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAlACUAJQAlACUAHgAlACUAJQAlACUAIAAgACAAJQAlACAAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACEAIQAhACEAIQAlACUAIAAgACUAJQAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAIAAlACUAJQAlACAAIAAgACUAIAAgACAAJQAlACUAJQAlACUAJQAgACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAlAB4AJQAeACUAJQAlACUAJQAgACUAJQAlACUAHgAlAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACAAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABcAFwAXABUAFQAVAB4AHgAeAB4AJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAgACUAJQAgACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAIAAgACUAJQAgACAAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACAAIAAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACAAIAAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAA=="),m=Array.isArray(g)?function(e){for(var t=e.length,n=[],r=0;r<t;r+=4)n.push(e[r+3]<<24|e[r+2]<<16|e[r+1]<<8|e[r]);return n}(g):new Uint32Array(g),w=b(y=Array.isArray(g)?function(e){for(var t=e.length,n=[],r=0;r<t;r+=2)n.push(e[r+1]<<8|e[r]);return n}(g):new Uint16Array(g),12,m[4]/2),v=2===m[5]?b(y,(24+m[4])/2):(d=m,p=Math.ceil((24+m[4])/4),d.slice?d.slice(p,f):new Uint32Array(Array.prototype.slice.call(d,p,f))),new C(m[0],m[1],m[2],m[3],w,v)),$=[M,36],Y=[1,2,3,5],Z=[B,8],ee=[L,I],te=Y.concat(Z),ne=[V,G,j,P,N],re=[E,_],ie=function(e,t,n,r){var i=r[n];if(Array.isArray(e)?-1!==e.indexOf(i):e===i)for(var o=n;o<=r.length;){if((l=r[++o])===t)return!0;if(l!==B)break}if(i===B)for(o=n;o>0;){var s=r[--o];if(Array.isArray(e)?-1!==e.indexOf(s):e===s)for(var a=n;a<=r.length;){var l;if((l=r[++a])===t)return!0;if(l!==B)break}if(s!==B)break}return!1},oe=function(e,t){for(var n=e;n>=0;){var r=t[n];if(r!==B)return r;n--}return 0},se=function(e,t,n,r,i){if(0===n[r])return W;var o=r-1;if(Array.isArray(i)&&!0===i[o])return W;var s=o-1,a=o+1,l=t[o],c=s>=0?t[s]:0,A=t[a];if(2===l&&3===A)return W;if(-1!==Y.indexOf(l))return"!";if(-1!==Y.indexOf(A))return W;if(-1!==Z.indexOf(A))return W;if(8===oe(o,t))return X;if(11===J.get(e[o]))return W;if((l===H||l===R)&&11===J.get(e[a]))return W;if(7===l||7===A)return W;if(9===l)return W;if(-1===[B,_,E].indexOf(l)&&9===A)return W;if(-1!==[F,T,S,U,D].indexOf(A))return W;if(oe(o,t)===k)return W;if(ie(23,k,o,t))return W;if(ie([F,T],Q,o,t))return W;if(ie(12,12,o,t))return W;if(l===B)return X;if(23===l||23===A)return W;if(16===A||16===l)return X;if(-1!==[_,E,Q].indexOf(A)||14===l)return W;if(36===c&&-1!==re.indexOf(l))return W;if(l===D&&36===A)return W;if(A===x)return W;if(-1!==$.indexOf(A)&&l===O||-1!==$.indexOf(l)&&A===O)return W;if(l===L&&-1!==[K,H,R].indexOf(A)||-1!==[K,H,R].indexOf(l)&&A===I)return W;if(-1!==$.indexOf(l)&&-1!==ee.indexOf(A)||-1!==ee.indexOf(l)&&-1!==$.indexOf(A))return W;if(-1!==[L,I].indexOf(l)&&(A===O||-1!==[k,E].indexOf(A)&&t[a+1]===O)||-1!==[k,E].indexOf(l)&&A===O||l===O&&-1!==[O,D,U].indexOf(A))return W;if(-1!==[O,D,U,F,T].indexOf(A))for(var u=o;u>=0;){if((h=t[u])===O)return W;if(-1===[D,U].indexOf(h))break;u--}if(-1!==[L,I].indexOf(A))for(u=-1!==[F,T].indexOf(l)?s:o;u>=0;){var h;if((h=t[u])===O)return W;if(-1===[D,U].indexOf(h))break;u--}if(V===l&&-1!==[V,G,P,N].indexOf(A)||-1!==[G,P].indexOf(l)&&-1!==[G,j].indexOf(A)||-1!==[j,N].indexOf(l)&&A===j)return W;if(-1!==ne.indexOf(l)&&-1!==[x,I].indexOf(A)||-1!==ne.indexOf(A)&&l===L)return W;if(-1!==$.indexOf(l)&&-1!==$.indexOf(A))return W;if(l===U&&-1!==$.indexOf(A))return W;if(-1!==$.concat(O).indexOf(l)&&A===k&&-1===z.indexOf(e[a])||-1!==$.concat(O).indexOf(A)&&l===T)return W;if(41===l&&41===A){for(var d=n[o],p=1;d>0&&41===t[--d];)p++;if(p%2!=0)return W}return l===H&&A===R?W:X},ae=function(){function e(e,t,n,r){this.codePoints=e,this.required="!"===t,this.start=n,this.end=r}return e.prototype.slice=function(){return c.apply(void 0,this.codePoints.slice(this.start,this.end))},e}(),le=(()=>(function(e){e[e.STRING_TOKEN=0]="STRING_TOKEN",e[e.BAD_STRING_TOKEN=1]="BAD_STRING_TOKEN",e[e.LEFT_PARENTHESIS_TOKEN=2]="LEFT_PARENTHESIS_TOKEN",e[e.RIGHT_PARENTHESIS_TOKEN=3]="RIGHT_PARENTHESIS_TOKEN",e[e.COMMA_TOKEN=4]="COMMA_TOKEN",e[e.HASH_TOKEN=5]="HASH_TOKEN",e[e.DELIM_TOKEN=6]="DELIM_TOKEN",e[e.AT_KEYWORD_TOKEN=7]="AT_KEYWORD_TOKEN",e[e.PREFIX_MATCH_TOKEN=8]="PREFIX_MATCH_TOKEN",e[e.DASH_MATCH_TOKEN=9]="DASH_MATCH_TOKEN",e[e.INCLUDE_MATCH_TOKEN=10]="INCLUDE_MATCH_TOKEN",e[e.LEFT_CURLY_BRACKET_TOKEN=11]="LEFT_CURLY_BRACKET_TOKEN",e[e.RIGHT_CURLY_BRACKET_TOKEN=12]="RIGHT_CURLY_BRACKET_TOKEN",e[e.SUFFIX_MATCH_TOKEN=13]="SUFFIX_MATCH_TOKEN",e[e.SUBSTRING_MATCH_TOKEN=14]="SUBSTRING_MATCH_TOKEN",e[e.DIMENSION_TOKEN=15]="DIMENSION_TOKEN",e[e.PERCENTAGE_TOKEN=16]="PERCENTAGE_TOKEN",e[e.NUMBER_TOKEN=17]="NUMBER_TOKEN",e[e.FUNCTION=18]="FUNCTION",e[e.FUNCTION_TOKEN=19]="FUNCTION_TOKEN",e[e.IDENT_TOKEN=20]="IDENT_TOKEN",e[e.COLUMN_TOKEN=21]="COLUMN_TOKEN",e[e.URL_TOKEN=22]="URL_TOKEN",e[e.BAD_URL_TOKEN=23]="BAD_URL_TOKEN",e[e.CDC_TOKEN=24]="CDC_TOKEN",e[e.CDO_TOKEN=25]="CDO_TOKEN",e[e.COLON_TOKEN=26]="COLON_TOKEN",e[e.SEMICOLON_TOKEN=27]="SEMICOLON_TOKEN",e[e.LEFT_SQUARE_BRACKET_TOKEN=28]="LEFT_SQUARE_BRACKET_TOKEN",e[e.RIGHT_SQUARE_BRACKET_TOKEN=29]="RIGHT_SQUARE_BRACKET_TOKEN",e[e.UNICODE_RANGE_TOKEN=30]="UNICODE_RANGE_TOKEN",e[e.WHITESPACE_TOKEN=31]="WHITESPACE_TOKEN",e[e.EOF_TOKEN=32]="EOF_TOKEN"}(le||(le={})),le))(),ce=45,Ae=43,ue=-1,he=function(e){return e>=48&&e<=57},de=function(e){return he(e)||e>=65&&e<=70||e>=97&&e<=102},pe=function(e){return 10===e||9===e||32===e},fe=function(e){return function(e){return function(e){return e>=97&&e<=122}(e)||function(e){return e>=65&&e<=90}(e)}(e)||function(e){return e>=128}(e)||95===e},ge=function(e){return fe(e)||he(e)||e===ce},me=function(e){return e>=0&&e<=8||11===e||e>=14&&e<=31||127===e},ye=function(e,t){return 92===e&&10!==t},we=function(e,t,n){return e===ce?fe(t)||ye(t,n):!!fe(e)||!(92!==e||!ye(e,t))},ve=function(e,t,n){return e===Ae||e===ce?!!he(t)||46===t&&he(n):he(46===e?t:e)},be=function(e){var t=0,n=1;e[t]!==Ae&&e[t]!==ce||(e[t]===ce&&(n=-1),t++);for(var r=[];he(e[t]);)r.push(e[t++]);var i=r.length?parseInt(c.apply(void 0,r),10):0;46===e[t]&&t++;for(var o=[];he(e[t]);)o.push(e[t++]);var s=o.length,a=s?parseInt(c.apply(void 0,o),10):0;69!==e[t]&&101!==e[t]||t++;var l=1;e[t]!==Ae&&e[t]!==ce||(e[t]===ce&&(l=-1),t++);for(var A=[];he(e[t]);)A.push(e[t++]);var u=A.length?parseInt(c.apply(void 0,A),10):0;return n*(i+a*Math.pow(10,-s))*Math.pow(10,l*u)},Ce={type:le.LEFT_PARENTHESIS_TOKEN},Be={type:le.RIGHT_PARENTHESIS_TOKEN},_e={type:le.COMMA_TOKEN},Ee={type:le.SUFFIX_MATCH_TOKEN},Fe={type:le.PREFIX_MATCH_TOKEN},Te={type:le.COLUMN_TOKEN},Se={type:le.DASH_MATCH_TOKEN},xe={type:le.INCLUDE_MATCH_TOKEN},Qe={type:le.LEFT_CURLY_BRACKET_TOKEN},ke={type:le.RIGHT_CURLY_BRACKET_TOKEN},Ue={type:le.SUBSTRING_MATCH_TOKEN},Oe={type:le.BAD_URL_TOKEN},Ie={type:le.BAD_STRING_TOKEN},Le={type:le.CDO_TOKEN},De={type:le.CDC_TOKEN},Me={type:le.COLON_TOKEN},He={type:le.SEMICOLON_TOKEN},Re={type:le.LEFT_SQUARE_BRACKET_TOKEN},Pe={type:le.RIGHT_SQUARE_BRACKET_TOKEN},Ne={type:le.WHITESPACE_TOKEN},Ke={type:le.EOF_TOKEN},Ve=function(){function e(){this._value=[]}return e.prototype.write=function(e){this._value=this._value.concat(l(e))},e.prototype.read=function(){for(var e=[],t=this.consumeToken();t!==Ke;)e.push(t),t=this.consumeToken();return e},e.prototype.consumeToken=function(){var e=this.consumeCodePoint();switch(e){case 34:return this.consumeStringToken(34);case 35:var t=this.peekCodePoint(0),n=this.peekCodePoint(1),r=this.peekCodePoint(2);if(ge(t)||ye(n,r)){var i=we(t,n,r)?2:1,o=this.consumeName();return{type:le.HASH_TOKEN,value:o,flags:i}}break;case 36:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),Ee;break;case 39:return this.consumeStringToken(39);case 40:return Ce;case 41:return Be;case 42:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),Ue;break;case Ae:if(ve(e,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(e),this.consumeNumericToken();break;case 44:return _e;case ce:var s=e,a=this.peekCodePoint(0),l=this.peekCodePoint(1);if(ve(s,a,l))return this.reconsumeCodePoint(e),this.consumeNumericToken();if(we(s,a,l))return this.reconsumeCodePoint(e),this.consumeIdentLikeToken();if(a===ce&&62===l)return this.consumeCodePoint(),this.consumeCodePoint(),De;break;case 46:if(ve(e,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(e),this.consumeNumericToken();break;case 47:if(42===this.peekCodePoint(0))for(this.consumeCodePoint();;){var A=this.consumeCodePoint();if(42===A&&47===(A=this.consumeCodePoint()))return this.consumeToken();if(A===ue)return this.consumeToken()}break;case 58:return Me;case 59:return He;case 60:if(33===this.peekCodePoint(0)&&this.peekCodePoint(1)===ce&&this.peekCodePoint(2)===ce)return this.consumeCodePoint(),this.consumeCodePoint(),Le;break;case 64:var u=this.peekCodePoint(0),h=this.peekCodePoint(1),d=this.peekCodePoint(2);if(we(u,h,d))return o=this.consumeName(),{type:le.AT_KEYWORD_TOKEN,value:o};break;case 91:return Re;case 92:if(ye(e,this.peekCodePoint(0)))return this.reconsumeCodePoint(e),this.consumeIdentLikeToken();break;case 93:return Pe;case 61:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),Fe;break;case 123:return Qe;case 125:return ke;case 117:case 85:var p=this.peekCodePoint(0),f=this.peekCodePoint(1);return p!==Ae||!de(f)&&63!==f||(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(e),this.consumeIdentLikeToken();case 124:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),Se;if(124===this.peekCodePoint(0))return this.consumeCodePoint(),Te;break;case 126:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),xe;break;case ue:return Ke}return pe(e)?(this.consumeWhiteSpace(),Ne):he(e)?(this.reconsumeCodePoint(e),this.consumeNumericToken()):fe(e)?(this.reconsumeCodePoint(e),this.consumeIdentLikeToken()):{type:le.DELIM_TOKEN,value:c(e)}},e.prototype.consumeCodePoint=function(){var e=this._value.shift();return void 0===e?-1:e},e.prototype.reconsumeCodePoint=function(e){this._value.unshift(e)},e.prototype.peekCodePoint=function(e){return e>=this._value.length?-1:this._value[e]},e.prototype.consumeUnicodeRangeToken=function(){for(var e=[],t=this.consumeCodePoint();de(t)&&e.length<6;)e.push(t),t=this.consumeCodePoint();for(var n=!1;63===t&&e.length<6;)e.push(t),t=this.consumeCodePoint(),n=!0;if(n){var r=parseInt(c.apply(void 0,e.map(function(e){return 63===e?48:e})),16),i=parseInt(c.apply(void 0,e.map(function(e){return 63===e?70:e})),16);return{type:le.UNICODE_RANGE_TOKEN,start:r,end:i}}var o=parseInt(c.apply(void 0,e),16);if(this.peekCodePoint(0)===ce&&de(this.peekCodePoint(1))){this.consumeCodePoint(),t=this.consumeCodePoint();for(var s=[];de(t)&&s.length<6;)s.push(t),t=this.consumeCodePoint();return i=parseInt(c.apply(void 0,s),16),{type:le.UNICODE_RANGE_TOKEN,start:o,end:i}}return{type:le.UNICODE_RANGE_TOKEN,start:o,end:o}},e.prototype.consumeIdentLikeToken=function(){var e=this.consumeName();return"url"===e.toLowerCase()&&40===this.peekCodePoint(0)?(this.consumeCodePoint(),this.consumeUrlToken()):40===this.peekCodePoint(0)?(this.consumeCodePoint(),{type:le.FUNCTION_TOKEN,value:e}):{type:le.IDENT_TOKEN,value:e}},e.prototype.consumeUrlToken=function(){var e=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===ue)return{type:le.URL_TOKEN,value:""};var t=this.peekCodePoint(0);if(39===t||34===t){var n=this.consumeStringToken(this.consumeCodePoint());return n.type===le.STRING_TOKEN&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===ue||41===this.peekCodePoint(0))?(this.consumeCodePoint(),{type:le.URL_TOKEN,value:n.value}):(this.consumeBadUrlRemnants(),Oe)}for(;;){var r=this.consumeCodePoint();if(r===ue||41===r)return{type:le.URL_TOKEN,value:c.apply(void 0,e)};if(pe(r))return this.consumeWhiteSpace(),this.peekCodePoint(0)===ue||41===this.peekCodePoint(0)?(this.consumeCodePoint(),{type:le.URL_TOKEN,value:c.apply(void 0,e)}):(this.consumeBadUrlRemnants(),Oe);if(34===r||39===r||40===r||me(r))return this.consumeBadUrlRemnants(),Oe;if(92===r){if(!ye(r,this.peekCodePoint(0)))return this.consumeBadUrlRemnants(),Oe;e.push(this.consumeEscapedCodePoint())}else e.push(r)}},e.prototype.consumeWhiteSpace=function(){for(;pe(this.peekCodePoint(0));)this.consumeCodePoint()},e.prototype.consumeBadUrlRemnants=function(){for(;;){var e=this.consumeCodePoint();if(41===e||e===ue)return;ye(e,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},e.prototype.consumeStringSlice=function(e){for(var t="";e>0;){var n=Math.min(6e4,e);t+=c.apply(void 0,this._value.splice(0,n)),e-=n}return this._value.shift(),t},e.prototype.consumeStringToken=function(e){for(var t="",n=0;;){var r=this._value[n];if(r===ue||void 0===r||r===e)return t+=this.consumeStringSlice(n),{type:le.STRING_TOKEN,value:t};if(10===r)return this._value.splice(0,n),Ie;if(92===r){var i=this._value[n+1];i!==ue&&void 0!==i&&(10===i?(t+=this.consumeStringSlice(n),n=-1,this._value.shift()):ye(r,i)&&(t+=this.consumeStringSlice(n),t+=c(this.consumeEscapedCodePoint()),n=-1))}n++}},e.prototype.consumeNumber=function(){var e=[],t=4,n=this.peekCodePoint(0);for(n!==Ae&&n!==ce||e.push(this.consumeCodePoint());he(this.peekCodePoint(0));)e.push(this.consumeCodePoint());n=this.peekCodePoint(0);var r=this.peekCodePoint(1);if(46===n&&he(r))for(e.push(this.consumeCodePoint(),this.consumeCodePoint()),t=8;he(this.peekCodePoint(0));)e.push(this.consumeCodePoint());n=this.peekCodePoint(0),r=this.peekCodePoint(1);var i=this.peekCodePoint(2);if((69===n||101===n)&&((r===Ae||r===ce)&&he(i)||he(r)))for(e.push(this.consumeCodePoint(),this.consumeCodePoint()),t=8;he(this.peekCodePoint(0));)e.push(this.consumeCodePoint());return[be(e),t]},e.prototype.consumeNumericToken=function(){var e=this.consumeNumber(),t=e[0],n=e[1],r=this.peekCodePoint(0),i=this.peekCodePoint(1),o=this.peekCodePoint(2);if(we(r,i,o)){var s=this.consumeName();return{type:le.DIMENSION_TOKEN,number:t,flags:n,unit:s}}return 37===r?(this.consumeCodePoint(),{type:le.PERCENTAGE_TOKEN,number:t,flags:n}):{type:le.NUMBER_TOKEN,number:t,flags:n}},e.prototype.consumeEscapedCodePoint=function(){var e=this.consumeCodePoint();if(de(e)){for(var t=c(e);de(this.peekCodePoint(0))&&t.length<6;)t+=c(this.consumeCodePoint());pe(this.peekCodePoint(0))&&this.consumeCodePoint();var n=parseInt(t,16);return 0===n||function(e){return e>=55296&&e<=57343}(n)||n>1114111?65533:n}return e===ue?65533:e},e.prototype.consumeName=function(){for(var e="";;){var t=this.consumeCodePoint();if(ge(t))e+=c(t);else{if(!ye(t,this.peekCodePoint(0)))return this.reconsumeCodePoint(t),e;e+=c(this.consumeEscapedCodePoint())}}},e}(),Ge=function(){function e(e){this._tokens=e}return e.create=function(t){var n=new Ve;return n.write(t),new e(n.read())},e.parseValue=function(t){return e.create(t).parseComponentValue()},e.parseValues=function(t){return e.create(t).parseComponentValues()},e.prototype.parseComponentValue=function(){for(var e=this.consumeToken();e.type===le.WHITESPACE_TOKEN;)e=this.consumeToken();if(e.type===le.EOF_TOKEN)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(e);var t=this.consumeComponentValue();do{e=this.consumeToken()}while(e.type===le.WHITESPACE_TOKEN);if(e.type===le.EOF_TOKEN)return t;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},e.prototype.parseComponentValues=function(){for(var e=[];;){var t=this.consumeComponentValue();if(t.type===le.EOF_TOKEN)return e;e.push(t),e.push()}},e.prototype.consumeComponentValue=function(){var e=this.consumeToken();switch(e.type){case le.LEFT_CURLY_BRACKET_TOKEN:case le.LEFT_SQUARE_BRACKET_TOKEN:case le.LEFT_PARENTHESIS_TOKEN:return this.consumeSimpleBlock(e.type);case le.FUNCTION_TOKEN:return this.consumeFunction(e)}return e},e.prototype.consumeSimpleBlock=function(e){for(var t={type:e,values:[]},n=this.consumeToken();;){if(n.type===le.EOF_TOKEN||Ze(n,e))return t;this.reconsumeToken(n),t.values.push(this.consumeComponentValue()),n=this.consumeToken()}},e.prototype.consumeFunction=function(e){for(var t={name:e.value,values:[],type:le.FUNCTION};;){var n=this.consumeToken();if(n.type===le.EOF_TOKEN||n.type===le.RIGHT_PARENTHESIS_TOKEN)return t;this.reconsumeToken(n),t.values.push(this.consumeComponentValue())}},e.prototype.consumeToken=function(){var e=this._tokens.shift();return void 0===e?Ke:e},e.prototype.reconsumeToken=function(e){this._tokens.unshift(e)},e}(),je=function(e){return e.type===le.DIMENSION_TOKEN},qe=function(e){return e.type===le.NUMBER_TOKEN},ze=function(e){return e.type===le.IDENT_TOKEN},We=function(e){return e.type===le.STRING_TOKEN},Xe=function(e,t){return ze(e)&&e.value===t},Je=function(e){return e.type!==le.WHITESPACE_TOKEN},$e=function(e){return e.type!==le.WHITESPACE_TOKEN&&e.type!==le.COMMA_TOKEN},Ye=function(e){var t=[],n=[];return e.forEach(function(e){if(e.type===le.COMMA_TOKEN){if(0===n.length)throw new Error("Error parsing function args, zero tokens for arg");return t.push(n),void(n=[])}e.type!==le.WHITESPACE_TOKEN&&n.push(e)}),n.length&&t.push(n),t},Ze=function(e,t){return t===le.LEFT_CURLY_BRACKET_TOKEN&&e.type===le.RIGHT_CURLY_BRACKET_TOKEN||t===le.LEFT_SQUARE_BRACKET_TOKEN&&e.type===le.RIGHT_SQUARE_BRACKET_TOKEN||t===le.LEFT_PARENTHESIS_TOKEN&&e.type===le.RIGHT_PARENTHESIS_TOKEN},et=function(e){return e.type===le.NUMBER_TOKEN||e.type===le.DIMENSION_TOKEN},tt=function(e){return e.type===le.PERCENTAGE_TOKEN||et(e)},nt=function(e){return e.length>1?[e[0],e[1]]:[e[0]]},rt={type:le.NUMBER_TOKEN,number:0,flags:4},it={type:le.PERCENTAGE_TOKEN,number:50,flags:4},ot={type:le.PERCENTAGE_TOKEN,number:100,flags:4},st=function(e,t,n){var r=e[0],i=e[1];return[at(r,t),at(void 0!==i?i:r,n)]},at=function(e,t){if(e.type===le.PERCENTAGE_TOKEN)return e.number/100*t;if(je(e))switch(e.unit){case"rem":case"em":return 16*e.number;case"px":default:return e.number}return e.number},lt="grad",ct="turn",At=function(e,t){if(t.type===le.DIMENSION_TOKEN)switch(t.unit){case"deg":return Math.PI*t.number/180;case lt:return Math.PI/200*t.number;case"rad":return t.number;case ct:return 2*Math.PI*t.number}throw new Error("Unsupported angle type")},ut=function(e){return e.type===le.DIMENSION_TOKEN&&("deg"===e.unit||e.unit===lt||"rad"===e.unit||e.unit===ct)},ht=function(e){switch(e.filter(ze).map(function(e){return e.value}).join(" ")){case"to bottom right":case"to right bottom":case"left top":case"top left":return[rt,rt];case"to top":case"bottom":return dt(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[rt,ot];case"to right":case"left":return dt(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[ot,ot];case"to bottom":case"top":return dt(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[ot,rt];case"to left":case"right":return dt(270)}return 0},dt=function(e){return Math.PI*e/180},pt=function(e,t){if(t.type===le.FUNCTION){var n=Ct[t.name];if(void 0===n)throw new Error('Attempting to parse an unsupported color function "'+t.name+'"');return n(e,t.values)}if(t.type===le.HASH_TOKEN){if(3===t.value.length){var r=t.value.substring(0,1),i=t.value.substring(1,2),o=t.value.substring(2,3);return mt(parseInt(r+r,16),parseInt(i+i,16),parseInt(o+o,16),1)}if(4===t.value.length){r=t.value.substring(0,1),i=t.value.substring(1,2),o=t.value.substring(2,3);var s=t.value.substring(3,4);return mt(parseInt(r+r,16),parseInt(i+i,16),parseInt(o+o,16),parseInt(s+s,16)/255)}if(6===t.value.length)return r=t.value.substring(0,2),i=t.value.substring(2,4),o=t.value.substring(4,6),mt(parseInt(r,16),parseInt(i,16),parseInt(o,16),1);if(8===t.value.length)return r=t.value.substring(0,2),i=t.value.substring(2,4),o=t.value.substring(4,6),s=t.value.substring(6,8),mt(parseInt(r,16),parseInt(i,16),parseInt(o,16),parseInt(s,16)/255)}if(t.type===le.IDENT_TOKEN){var a=_t[t.value.toUpperCase()];if(void 0!==a)return a}return _t.TRANSPARENT},ft=function(e){return 0==(255&e)},gt=function(e){var t=255&e,n=255&e>>8,r=255&e>>16,i=255&e>>24;return t<255?"rgba("+i+","+r+","+n+","+t/255+")":"rgb("+i+","+r+","+n+")"},mt=function(e,t,n,r){return(e<<24|t<<16|n<<8|Math.round(255*r)<<0)>>>0},yt=function(e,t){if(e.type===le.NUMBER_TOKEN)return e.number;if(e.type===le.PERCENTAGE_TOKEN){var n=3===t?1:255;return 3===t?e.number/100*n:Math.round(e.number/100*n)}return 0},wt=function(e,t){var n=t.filter($e);if(3===n.length){var r=n.map(yt);return mt(r[0],r[1],r[2],1)}if(4===n.length){var i=n.map(yt);return mt(i[0],i[1],i[2],i[3])}return 0};function vt(e,t,n){return n<0&&(n+=1),n>=1&&(n-=1),n<1/6?(t-e)*n*6+e:n<.5?t:n<2/3?6*(t-e)*(2/3-n)+e:e}var bt=function(e,t){var n=t.filter($e),r=n[0],i=n[1],o=n[2],s=n[3],a=(r.type===le.NUMBER_TOKEN?dt(r.number):At(0,r))/(2*Math.PI),l=tt(i)?i.number/100:0,c=tt(o)?o.number/100:0,A=void 0!==s&&tt(s)?at(s,1):1;if(0===l)return mt(255*c,255*c,255*c,1);var u=c<=.5?c*(l+1):c+l-c*l,h=2*c-u,d=vt(h,u,a+1/3),p=vt(h,u,a),f=vt(h,u,a-1/3);return mt(255*d,255*p,255*f,A)},Ct={hsl:bt,hsla:bt,rgb:wt,rgba:wt},Bt=function(e,t){return pt(e,Ge.create(t).parseComponentValue())},_t={ALICEBLUE:4042850303,ANTIQUEWHITE:4209760255,AQUA:16777215,AQUAMARINE:2147472639,AZURE:4043309055,BEIGE:4126530815,BISQUE:4293182719,BLACK:255,BLANCHEDALMOND:4293643775,BLUE:65535,BLUEVIOLET:2318131967,BROWN:2771004159,BURLYWOOD:3736635391,CADETBLUE:1604231423,CHARTREUSE:2147418367,CHOCOLATE:3530104575,CORAL:4286533887,CORNFLOWERBLUE:1687547391,CORNSILK:4294499583,CRIMSON:3692313855,CYAN:16777215,DARKBLUE:35839,DARKCYAN:9145343,DARKGOLDENROD:3095837695,DARKGRAY:2846468607,DARKGREEN:6553855,DARKGREY:2846468607,DARKKHAKI:3182914559,DARKMAGENTA:2332068863,DARKOLIVEGREEN:1433087999,DARKORANGE:4287365375,DARKORCHID:2570243327,DARKRED:2332033279,DARKSALMON:3918953215,DARKSEAGREEN:2411499519,DARKSLATEBLUE:1211993087,DARKSLATEGRAY:793726975,DARKSLATEGREY:793726975,DARKTURQUOISE:13554175,DARKVIOLET:2483082239,DEEPPINK:4279538687,DEEPSKYBLUE:12582911,DIMGRAY:1768516095,DIMGREY:1768516095,DODGERBLUE:512819199,FIREBRICK:2988581631,FLORALWHITE:4294635775,FORESTGREEN:579543807,FUCHSIA:4278255615,GAINSBORO:3705462015,GHOSTWHITE:4177068031,GOLD:4292280575,GOLDENROD:3668254975,GRAY:2155905279,GREEN:8388863,GREENYELLOW:2919182335,GREY:2155905279,HONEYDEW:4043305215,HOTPINK:4285117695,INDIANRED:3445382399,INDIGO:1258324735,IVORY:4294963455,KHAKI:4041641215,LAVENDER:3873897215,LAVENDERBLUSH:4293981695,LAWNGREEN:2096890111,LEMONCHIFFON:4294626815,LIGHTBLUE:2916673279,LIGHTCORAL:4034953471,LIGHTCYAN:3774873599,LIGHTGOLDENRODYELLOW:4210742015,LIGHTGRAY:3553874943,LIGHTGREEN:2431553791,LIGHTGREY:3553874943,LIGHTPINK:4290167295,LIGHTSALMON:4288707327,LIGHTSEAGREEN:548580095,LIGHTSKYBLUE:2278488831,LIGHTSLATEGRAY:2005441023,LIGHTSLATEGREY:2005441023,LIGHTSTEELBLUE:2965692159,LIGHTYELLOW:4294959359,LIME:16711935,LIMEGREEN:852308735,LINEN:4210091775,MAGENTA:4278255615,MAROON:2147483903,MEDIUMAQUAMARINE:1724754687,MEDIUMBLUE:52735,MEDIUMORCHID:3126187007,MEDIUMPURPLE:2473647103,MEDIUMSEAGREEN:1018393087,MEDIUMSLATEBLUE:2070474495,MEDIUMSPRINGGREEN:16423679,MEDIUMTURQUOISE:1221709055,MEDIUMVIOLETRED:3340076543,MIDNIGHTBLUE:421097727,MINTCREAM:4127193855,MISTYROSE:4293190143,MOCCASIN:4293178879,NAVAJOWHITE:4292783615,NAVY:33023,OLDLACE:4260751103,OLIVE:2155872511,OLIVEDRAB:1804477439,ORANGE:4289003775,ORANGERED:4282712319,ORCHID:3664828159,PALEGOLDENROD:4008225535,PALEGREEN:2566625535,PALETURQUOISE:2951671551,PALEVIOLETRED:3681588223,PAPAYAWHIP:4293907967,PEACHPUFF:4292524543,PERU:3448061951,PINK:4290825215,PLUM:3718307327,POWDERBLUE:2967529215,PURPLE:2147516671,REBECCAPURPLE:1714657791,RED:4278190335,ROSYBROWN:3163525119,ROYALBLUE:1097458175,SADDLEBROWN:2336560127,SALMON:4202722047,SANDYBROWN:4104413439,SEAGREEN:780883967,SEASHELL:4294307583,SIENNA:2689740287,SILVER:3233857791,SKYBLUE:2278484991,SLATEBLUE:1784335871,SLATEGRAY:1887473919,SLATEGREY:1887473919,SNOW:4294638335,SPRINGGREEN:16744447,STEELBLUE:1182971135,TAN:3535047935,TEAL:8421631,THISTLE:3636451583,TOMATO:4284696575,TRANSPARENT:0,TURQUOISE:1088475391,VIOLET:4001558271,WHEAT:4125012991,WHITE:4294967295,WHITESMOKE:4126537215,YELLOW:4294902015,YELLOWGREEN:2597139199},Et=(()=>(function(e){e[e.VALUE=0]="VALUE",e[e.LIST=1]="LIST",e[e.IDENT_VALUE=2]="IDENT_VALUE",e[e.TYPE_VALUE=3]="TYPE_VALUE",e[e.TOKEN_VALUE=4]="TOKEN_VALUE"}(Et||(Et={})),Et))(),Ft=(()=>(function(e){e[e.BORDER_BOX=0]="BORDER_BOX",e[e.PADDING_BOX=1]="PADDING_BOX",e[e.CONTENT_BOX=2]="CONTENT_BOX"}(Ft||(Ft={})),Ft))(),Tt={name:"background-clip",initialValue:"border-box",prefix:!1,type:Et.LIST,parse:function(e,t){return t.map(function(e){if(ze(e))switch(e.value){case"padding-box":return Ft.PADDING_BOX;case"content-box":return Ft.CONTENT_BOX}return Ft.BORDER_BOX})}},St={name:"background-color",initialValue:"transparent",prefix:!1,type:Et.TYPE_VALUE,format:"color"},xt=function(e,t){var n=pt(e,t[0]),r=t[1];return r&&tt(r)?{color:n,stop:r}:{color:n,stop:null}},Qt=function(e,t){var n=e[0],r=e[e.length-1];null===n.stop&&(n.stop=rt),null===r.stop&&(r.stop=ot);for(var i=[],o=0,s=0;s<e.length;s++){var a=e[s].stop;if(null!==a){var l=at(a,t);i.push(l>o?l:o),o=l}else i.push(null)}var c=null;for(s=0;s<i.length;s++){var A=i[s];if(null===A)null===c&&(c=s);else if(null!==c){for(var u=s-c,h=(A-i[c-1])/(u+1),d=1;d<=u;d++)i[c+d-1]=h*d;c=null}}return e.map(function(e,n){return{color:e.color,stop:Math.max(Math.min(1,i[n]/t),0)}})},kt=function(e,t){return Math.sqrt(e*e+t*t)},Ut=function(e,t,n,r,i){return[[0,0],[0,t],[e,0],[e,t]].reduce(function(e,t){var o=kt(n-t[0],r-t[1]);return(i?o<e.optimumDistance:o>e.optimumDistance)?{optimumCorner:t,optimumDistance:o}:e},{optimumDistance:i?1/0:-1/0,optimumCorner:null}).optimumCorner},Ot=function(e,t){var n=dt(180),r=[];return Ye(t).forEach(function(t,i){if(0===i){var o=t[0];if(o.type===le.IDENT_TOKEN&&-1!==["top","left","right","bottom"].indexOf(o.value))return void(n=ht(t));if(ut(o))return void(n=(At(0,o)+dt(270))%dt(360))}var s=xt(e,t);r.push(s)}),{angle:n,stops:r,type:Vt.LINEAR_GRADIENT}},It="closest-side",Lt="farthest-side",Dt="closest-corner",Mt="farthest-corner",Ht="circle",Rt="ellipse",Pt="cover",Nt="contain",Kt=function(e,t){var n=Gt.CIRCLE,r=jt.FARTHEST_CORNER,i=[],o=[];return Ye(t).forEach(function(t,s){var a=!0;if(0===s?a=t.reduce(function(e,t){if(ze(t))switch(t.value){case"center":return o.push(it),!1;case"top":case"left":return o.push(rt),!1;case"right":case"bottom":return o.push(ot),!1}else if(tt(t)||et(t))return o.push(t),!1;return e},a):1===s&&(a=t.reduce(function(e,t){if(ze(t))switch(t.value){case Ht:return n=Gt.CIRCLE,!1;case Rt:return n=Gt.ELLIPSE,!1;case Nt:case It:return r=jt.CLOSEST_SIDE,!1;case Lt:return r=jt.FARTHEST_SIDE,!1;case Dt:return r=jt.CLOSEST_CORNER,!1;case Pt:case Mt:return r=jt.FARTHEST_CORNER,!1}else if(et(t)||tt(t))return Array.isArray(r)||(r=[]),r.push(t),!1;return e},a)),a){var l=xt(e,t);i.push(l)}}),{size:r,shape:n,stops:i,position:o,type:Vt.RADIAL_GRADIENT}},Vt=(()=>(function(e){e[e.URL=0]="URL",e[e.LINEAR_GRADIENT=1]="LINEAR_GRADIENT",e[e.RADIAL_GRADIENT=2]="RADIAL_GRADIENT"}(Vt||(Vt={})),Vt))(),Gt=(()=>(function(e){e[e.CIRCLE=0]="CIRCLE",e[e.ELLIPSE=1]="ELLIPSE"}(Gt||(Gt={})),Gt))(),jt=(()=>(function(e){e[e.CLOSEST_SIDE=0]="CLOSEST_SIDE",e[e.FARTHEST_SIDE=1]="FARTHEST_SIDE",e[e.CLOSEST_CORNER=2]="CLOSEST_CORNER",e[e.FARTHEST_CORNER=3]="FARTHEST_CORNER"}(jt||(jt={})),jt))(),qt=function(e,t){if(t.type===le.URL_TOKEN){var n={url:t.value,type:Vt.URL};return e.cache.addImage(t.value),n}if(t.type===le.FUNCTION){var r=zt[t.name];if(void 0===r)throw new Error('Attempting to parse an unsupported image function "'+t.name+'"');return r(e,t.values)}throw new Error("Unsupported image type")},zt={"linear-gradient":function(e,t){var n=dt(180),r=[];return Ye(t).forEach(function(t,i){if(0===i){var o=t[0];if(o.type===le.IDENT_TOKEN&&"to"===o.value)return void(n=ht(t));if(ut(o))return void(n=At(0,o))}var s=xt(e,t);r.push(s)}),{angle:n,stops:r,type:Vt.LINEAR_GRADIENT}},"-moz-linear-gradient":Ot,"-ms-linear-gradient":Ot,"-o-linear-gradient":Ot,"-webkit-linear-gradient":Ot,"radial-gradient":function(e,t){var n=Gt.CIRCLE,r=jt.FARTHEST_CORNER,i=[],o=[];return Ye(t).forEach(function(t,s){var a=!0;if(0===s){var l=!1;a=t.reduce(function(e,t){if(l)if(ze(t))switch(t.value){case"center":return o.push(it),e;case"top":case"left":return o.push(rt),e;case"right":case"bottom":return o.push(ot),e}else(tt(t)||et(t))&&o.push(t);else if(ze(t))switch(t.value){case Ht:return n=Gt.CIRCLE,!1;case Rt:return n=Gt.ELLIPSE,!1;case"at":return l=!0,!1;case It:return r=jt.CLOSEST_SIDE,!1;case Pt:case Lt:return r=jt.FARTHEST_SIDE,!1;case Nt:case Dt:return r=jt.CLOSEST_CORNER,!1;case Mt:return r=jt.FARTHEST_CORNER,!1}else if(et(t)||tt(t))return Array.isArray(r)||(r=[]),r.push(t),!1;return e},a)}if(a){var c=xt(e,t);i.push(c)}}),{size:r,shape:n,stops:i,position:o,type:Vt.RADIAL_GRADIENT}},"-moz-radial-gradient":Kt,"-ms-radial-gradient":Kt,"-o-radial-gradient":Kt,"-webkit-radial-gradient":Kt,"-webkit-gradient":function(e,t){var n=dt(180),r=[],i=Vt.LINEAR_GRADIENT,o=Gt.CIRCLE,s=jt.FARTHEST_CORNER;return Ye(t).forEach(function(t,n){var o=t[0];if(0===n){if(ze(o)&&"linear"===o.value)return void(i=Vt.LINEAR_GRADIENT);if(ze(o)&&"radial"===o.value)return void(i=Vt.RADIAL_GRADIENT)}if(o.type===le.FUNCTION)if("from"===o.name){var s=pt(e,o.values[0]);r.push({stop:rt,color:s})}else if("to"===o.name)s=pt(e,o.values[0]),r.push({stop:ot,color:s});else if("color-stop"===o.name){var a=o.values.filter($e);if(2===a.length){s=pt(e,a[1]);var l=a[0];qe(l)&&r.push({stop:{type:le.PERCENTAGE_TOKEN,number:100*l.number,flags:l.flags},color:s})}}}),i===Vt.LINEAR_GRADIENT?{angle:(n+dt(180))%dt(360),stops:r,type:i}:{size:s,shape:o,stops:r,position:[],type:i}}},Wt={name:"background-image",initialValue:"none",type:Et.LIST,prefix:!1,parse:function(e,t){if(0===t.length)return[];var n=t[0];return n.type===le.IDENT_TOKEN&&"none"===n.value?[]:t.filter(function(e){return $e(e)&&function(e){return e.type!==le.FUNCTION||!!zt[e.name]}(e)}).map(function(t){return qt(e,t)})}},Xt={name:"background-origin",initialValue:"border-box",prefix:!1,type:Et.LIST,parse:function(e,t){return t.map(function(e){if(ze(e))switch(e.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},Jt={name:"background-position",initialValue:"0% 0%",type:Et.LIST,prefix:!1,parse:function(e,t){return Ye(t).map(function(e){return e.filter(tt)}).map(nt)}},$t=(()=>(function(e){e[e.REPEAT=0]="REPEAT",e[e.NO_REPEAT=1]="NO_REPEAT",e[e.REPEAT_X=2]="REPEAT_X",e[e.REPEAT_Y=3]="REPEAT_Y"}($t||($t={})),$t))(),Yt={name:"background-repeat",initialValue:"repeat",prefix:!1,type:Et.LIST,parse:function(e,t){return Ye(t).map(function(e){return e.filter(ze).map(function(e){return e.value}).join(" ")}).map(Zt)}},Zt=function(e){switch(e){case"no-repeat":return $t.NO_REPEAT;case"repeat-x":case"repeat no-repeat":return $t.REPEAT_X;case"repeat-y":case"no-repeat repeat":return $t.REPEAT_Y;case"repeat":default:return $t.REPEAT}},en=(()=>(function(e){e.AUTO="auto",e.CONTAIN="contain",e.COVER="cover"}(en||(en={})),en))(),tn={name:"background-size",initialValue:"0",prefix:!1,type:Et.LIST,parse:function(e,t){return Ye(t).map(function(e){return e.filter(nn)})}},nn=function(e){return ze(e)||tt(e)},rn=function(e){return{name:"border-"+e+"-color",initialValue:"transparent",prefix:!1,type:Et.TYPE_VALUE,format:"color"}},on=rn("top"),sn=rn("right"),an=rn("bottom"),ln=rn("left"),cn=function(e){return{name:"border-radius-"+e,initialValue:"0 0",prefix:!1,type:Et.LIST,parse:function(e,t){return nt(t.filter(tt))}}},An=cn("top-left"),un=cn("top-right"),hn=cn("bottom-right"),dn=cn("bottom-left"),pn=(()=>(function(e){e[e.NONE=0]="NONE",e[e.SOLID=1]="SOLID",e[e.DASHED=2]="DASHED",e[e.DOTTED=3]="DOTTED",e[e.DOUBLE=4]="DOUBLE"}(pn||(pn={})),pn))(),fn=function(e){return{name:"border-"+e+"-style",initialValue:"solid",prefix:!1,type:Et.IDENT_VALUE,parse:function(e,t){switch(t){case"none":return pn.NONE;case"dashed":return pn.DASHED;case"dotted":return pn.DOTTED;case"double":return pn.DOUBLE}return pn.SOLID}}},gn=fn("top"),mn=fn("right"),yn=fn("bottom"),wn=fn("left"),vn=function(e){return{name:"border-"+e+"-width",initialValue:"0",type:Et.VALUE,prefix:!1,parse:function(e,t){return je(t)?t.number:0}}},bn=vn("top"),Cn=vn("right"),Bn=vn("bottom"),_n=vn("left"),En={name:"color",initialValue:"transparent",prefix:!1,type:Et.TYPE_VALUE,format:"color"},Fn={name:"display",initialValue:"inline-block",prefix:!1,type:Et.LIST,parse:function(e,t){return t.filter(ze).reduce(function(e,t){return e|Tn(t.value)},0)}},Tn=function(e){switch(e){case"block":case"-webkit-box":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0},Sn=(()=>(function(e){e[e.NONE=0]="NONE",e[e.LEFT=1]="LEFT",e[e.RIGHT=2]="RIGHT",e[e.INLINE_START=3]="INLINE_START",e[e.INLINE_END=4]="INLINE_END"}(Sn||(Sn={})),Sn))(),xn={name:"float",initialValue:"none",prefix:!1,type:Et.IDENT_VALUE,parse:function(e,t){switch(t){case"left":return Sn.LEFT;case"right":return Sn.RIGHT;case"inline-start":return Sn.INLINE_START;case"inline-end":return Sn.INLINE_END}return Sn.NONE}},Qn={name:"letter-spacing",initialValue:"0",prefix:!1,type:Et.VALUE,parse:function(e,t){return t.type===le.IDENT_TOKEN&&"normal"===t.value?0:t.type===le.NUMBER_TOKEN||t.type===le.DIMENSION_TOKEN?t.number:0}},kn=(()=>(function(e){e.NORMAL="normal",e.STRICT="strict"}(kn||(kn={})),kn))(),Un={name:"line-break",initialValue:"normal",prefix:!1,type:Et.IDENT_VALUE,parse:function(e,t){switch(t){case"strict":return kn.STRICT;case"normal":default:return kn.NORMAL}}},On={name:"line-height",initialValue:"normal",prefix:!1,type:Et.TOKEN_VALUE},In=function(e,t){return ze(e)&&"normal"===e.value?1.2*t:e.type===le.NUMBER_TOKEN?t*e.number:tt(e)?at(e,t):t},Ln={name:"list-style-image",initialValue:"none",type:Et.VALUE,prefix:!1,parse:function(e,t){return t.type===le.IDENT_TOKEN&&"none"===t.value?null:qt(e,t)}},Dn=(()=>(function(e){e[e.INSIDE=0]="INSIDE",e[e.OUTSIDE=1]="OUTSIDE"}(Dn||(Dn={})),Dn))(),Mn={name:"list-style-position",initialValue:"outside",prefix:!1,type:Et.IDENT_VALUE,parse:function(e,t){switch(t){case"inside":return Dn.INSIDE;case"outside":default:return Dn.OUTSIDE}}},Hn=(()=>(function(e){e[e.NONE=-1]="NONE",e[e.DISC=0]="DISC",e[e.CIRCLE=1]="CIRCLE",e[e.SQUARE=2]="SQUARE",e[e.DECIMAL=3]="DECIMAL",e[e.CJK_DECIMAL=4]="CJK_DECIMAL",e[e.DECIMAL_LEADING_ZERO=5]="DECIMAL_LEADING_ZERO",e[e.LOWER_ROMAN=6]="LOWER_ROMAN",e[e.UPPER_ROMAN=7]="UPPER_ROMAN",e[e.LOWER_GREEK=8]="LOWER_GREEK",e[e.LOWER_ALPHA=9]="LOWER_ALPHA",e[e.UPPER_ALPHA=10]="UPPER_ALPHA",e[e.ARABIC_INDIC=11]="ARABIC_INDIC",e[e.ARMENIAN=12]="ARMENIAN",e[e.BENGALI=13]="BENGALI",e[e.CAMBODIAN=14]="CAMBODIAN",e[e.CJK_EARTHLY_BRANCH=15]="CJK_EARTHLY_BRANCH",e[e.CJK_HEAVENLY_STEM=16]="CJK_HEAVENLY_STEM",e[e.CJK_IDEOGRAPHIC=17]="CJK_IDEOGRAPHIC",e[e.DEVANAGARI=18]="DEVANAGARI",e[e.ETHIOPIC_NUMERIC=19]="ETHIOPIC_NUMERIC",e[e.GEORGIAN=20]="GEORGIAN",e[e.GUJARATI=21]="GUJARATI",e[e.GURMUKHI=22]="GURMUKHI",e[e.HEBREW=22]="HEBREW",e[e.HIRAGANA=23]="HIRAGANA",e[e.HIRAGANA_IROHA=24]="HIRAGANA_IROHA",e[e.JAPANESE_FORMAL=25]="JAPANESE_FORMAL",e[e.JAPANESE_INFORMAL=26]="JAPANESE_INFORMAL",e[e.KANNADA=27]="KANNADA",e[e.KATAKANA=28]="KATAKANA",e[e.KATAKANA_IROHA=29]="KATAKANA_IROHA",e[e.KHMER=30]="KHMER",e[e.KOREAN_HANGUL_FORMAL=31]="KOREAN_HANGUL_FORMAL",e[e.KOREAN_HANJA_FORMAL=32]="KOREAN_HANJA_FORMAL",e[e.KOREAN_HANJA_INFORMAL=33]="KOREAN_HANJA_INFORMAL",e[e.LAO=34]="LAO",e[e.LOWER_ARMENIAN=35]="LOWER_ARMENIAN",e[e.MALAYALAM=36]="MALAYALAM",e[e.MONGOLIAN=37]="MONGOLIAN",e[e.MYANMAR=38]="MYANMAR",e[e.ORIYA=39]="ORIYA",e[e.PERSIAN=40]="PERSIAN",e[e.SIMP_CHINESE_FORMAL=41]="SIMP_CHINESE_FORMAL",e[e.SIMP_CHINESE_INFORMAL=42]="SIMP_CHINESE_INFORMAL",e[e.TAMIL=43]="TAMIL",e[e.TELUGU=44]="TELUGU",e[e.THAI=45]="THAI",e[e.TIBETAN=46]="TIBETAN",e[e.TRAD_CHINESE_FORMAL=47]="TRAD_CHINESE_FORMAL",e[e.TRAD_CHINESE_INFORMAL=48]="TRAD_CHINESE_INFORMAL",e[e.UPPER_ARMENIAN=49]="UPPER_ARMENIAN",e[e.DISCLOSURE_OPEN=50]="DISCLOSURE_OPEN",e[e.DISCLOSURE_CLOSED=51]="DISCLOSURE_CLOSED"}(Hn||(Hn={})),Hn))(),Rn={name:"list-style-type",initialValue:"none",prefix:!1,type:Et.IDENT_VALUE,parse:function(e,t){switch(t){case"disc":return Hn.DISC;case"circle":return Hn.CIRCLE;case"square":return Hn.SQUARE;case"decimal":return Hn.DECIMAL;case"cjk-decimal":return Hn.CJK_DECIMAL;case"decimal-leading-zero":return Hn.DECIMAL_LEADING_ZERO;case"lower-roman":return Hn.LOWER_ROMAN;case"upper-roman":return Hn.UPPER_ROMAN;case"lower-greek":return Hn.LOWER_GREEK;case"lower-alpha":return Hn.LOWER_ALPHA;case"upper-alpha":return Hn.UPPER_ALPHA;case"arabic-indic":return Hn.ARABIC_INDIC;case"armenian":return Hn.ARMENIAN;case"bengali":return Hn.BENGALI;case"cambodian":return Hn.CAMBODIAN;case"cjk-earthly-branch":return Hn.CJK_EARTHLY_BRANCH;case"cjk-heavenly-stem":return Hn.CJK_HEAVENLY_STEM;case"cjk-ideographic":return Hn.CJK_IDEOGRAPHIC;case"devanagari":return Hn.DEVANAGARI;case"ethiopic-numeric":return Hn.ETHIOPIC_NUMERIC;case"georgian":return Hn.GEORGIAN;case"gujarati":return Hn.GUJARATI;case"gurmukhi":return Hn.GURMUKHI;case"hebrew":return Hn.HEBREW;case"hiragana":return Hn.HIRAGANA;case"hiragana-iroha":return Hn.HIRAGANA_IROHA;case"japanese-formal":return Hn.JAPANESE_FORMAL;case"japanese-informal":return Hn.JAPANESE_INFORMAL;case"kannada":return Hn.KANNADA;case"katakana":return Hn.KATAKANA;case"katakana-iroha":return Hn.KATAKANA_IROHA;case"khmer":return Hn.KHMER;case"korean-hangul-formal":return Hn.KOREAN_HANGUL_FORMAL;case"korean-hanja-formal":return Hn.KOREAN_HANJA_FORMAL;case"korean-hanja-informal":return Hn.KOREAN_HANJA_INFORMAL;case"lao":return Hn.LAO;case"lower-armenian":return Hn.LOWER_ARMENIAN;case"malayalam":return Hn.MALAYALAM;case"mongolian":return Hn.MONGOLIAN;case"myanmar":return Hn.MYANMAR;case"oriya":return Hn.ORIYA;case"persian":return Hn.PERSIAN;case"simp-chinese-formal":return Hn.SIMP_CHINESE_FORMAL;case"simp-chinese-informal":return Hn.SIMP_CHINESE_INFORMAL;case"tamil":return Hn.TAMIL;case"telugu":return Hn.TELUGU;case"thai":return Hn.THAI;case"tibetan":return Hn.TIBETAN;case"trad-chinese-formal":return Hn.TRAD_CHINESE_FORMAL;case"trad-chinese-informal":return Hn.TRAD_CHINESE_INFORMAL;case"upper-armenian":return Hn.UPPER_ARMENIAN;case"disclosure-open":return Hn.DISCLOSURE_OPEN;case"disclosure-closed":return Hn.DISCLOSURE_CLOSED;case"none":default:return Hn.NONE}}},Pn=function(e){return{name:"margin-"+e,initialValue:"0",prefix:!1,type:Et.TOKEN_VALUE}},Nn=Pn("top"),Kn=Pn("right"),Vn=Pn("bottom"),Gn=Pn("left"),jn=(()=>(function(e){e[e.VISIBLE=0]="VISIBLE",e[e.HIDDEN=1]="HIDDEN",e[e.SCROLL=2]="SCROLL",e[e.AUTO=3]="AUTO"}(jn||(jn={})),jn))(),qn={name:"overflow",initialValue:"visible",prefix:!1,type:Et.LIST,parse:function(e,t){return t.filter(ze).map(function(e){switch(e.value){case"hidden":return jn.HIDDEN;case"scroll":return jn.SCROLL;case"auto":return jn.AUTO;case"visible":default:return jn.VISIBLE}})}},zn=(()=>(function(e){e.NORMAL="normal",e.BREAK_WORD="break-word"}(zn||(zn={})),zn))(),Wn={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:Et.IDENT_VALUE,parse:function(e,t){switch(t){case"break-word":return zn.BREAK_WORD;case"normal":default:return zn.NORMAL}}},Xn=function(e){return{name:"padding-"+e,initialValue:"0",prefix:!1,type:Et.TYPE_VALUE,format:"length-percentage"}},Jn=Xn("top"),$n=Xn("right"),Yn=Xn("bottom"),Zn=Xn("left"),er=(()=>(function(e){e[e.LEFT=0]="LEFT",e[e.CENTER=1]="CENTER",e[e.RIGHT=2]="RIGHT"}(er||(er={})),er))(),tr={name:"text-align",initialValue:"left",prefix:!1,type:Et.IDENT_VALUE,parse:function(e,t){switch(t){case"right":return er.RIGHT;case"center":case"justify":return er.CENTER;case"left":default:return er.LEFT}}},nr=(()=>(function(e){e[e.STATIC=0]="STATIC",e[e.RELATIVE=1]="RELATIVE",e[e.ABSOLUTE=2]="ABSOLUTE",e[e.FIXED=3]="FIXED",e[e.STICKY=4]="STICKY"}(nr||(nr={})),nr))(),rr={name:"position",initialValue:"static",prefix:!1,type:Et.IDENT_VALUE,parse:function(e,t){switch(t){case"relative":return nr.RELATIVE;case"absolute":return nr.ABSOLUTE;case"fixed":return nr.FIXED;case"sticky":return nr.STICKY}return nr.STATIC}},ir={name:"text-shadow",initialValue:"none",type:Et.LIST,prefix:!1,parse:function(e,t){return 1===t.length&&Xe(t[0],"none")?[]:Ye(t).map(function(t){for(var n={color:_t.TRANSPARENT,offsetX:rt,offsetY:rt,blur:rt},r=0,i=0;i<t.length;i++){var o=t[i];et(o)?(0===r?n.offsetX=o:1===r?n.offsetY=o:n.blur=o,r++):n.color=pt(e,o)}return n})}},or=(()=>(function(e){e[e.NONE=0]="NONE",e[e.LOWERCASE=1]="LOWERCASE",e[e.UPPERCASE=2]="UPPERCASE",e[e.CAPITALIZE=3]="CAPITALIZE"}(or||(or={})),or))(),sr={name:"text-transform",initialValue:"none",prefix:!1,type:Et.IDENT_VALUE,parse:function(e,t){switch(t){case"uppercase":return or.UPPERCASE;case"lowercase":return or.LOWERCASE;case"capitalize":return or.CAPITALIZE}return or.NONE}},ar={name:"transform",initialValue:"none",prefix:!0,type:Et.VALUE,parse:function(e,t){if(t.type===le.IDENT_TOKEN&&"none"===t.value)return null;if(t.type===le.FUNCTION){var n=lr[t.name];if(void 0===n)throw new Error('Attempting to parse an unsupported transform function "'+t.name+'"');return n(t.values)}return null}},lr={matrix:function(e){var t=e.filter(function(e){return e.type===le.NUMBER_TOKEN}).map(function(e){return e.number});return 6===t.length?t:null},matrix3d:function(e){var t=e.filter(function(e){return e.type===le.NUMBER_TOKEN}).map(function(e){return e.number});return 16===t.length?[t[0],t[1],t[4],t[5],t[12],t[13]]:null}},cr={type:le.PERCENTAGE_TOKEN,number:50,flags:4},Ar=[cr,cr],ur={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:Et.LIST,parse:function(e,t){var n=t.filter(tt);return 2!==n.length?Ar:[n[0],n[1]]}},hr=(()=>(function(e){e[e.VISIBLE=0]="VISIBLE",e[e.HIDDEN=1]="HIDDEN",e[e.COLLAPSE=2]="COLLAPSE"}(hr||(hr={})),hr))(),dr={name:"visible",initialValue:"none",prefix:!1,type:Et.IDENT_VALUE,parse:function(e,t){switch(t){case"hidden":return hr.HIDDEN;case"collapse":return hr.COLLAPSE;case"visible":default:return hr.VISIBLE}}},pr=(()=>(function(e){e.NORMAL="normal",e.BREAK_ALL="break-all",e.KEEP_ALL="keep-all"}(pr||(pr={})),pr))(),fr={name:"word-break",initialValue:"normal",prefix:!1,type:Et.IDENT_VALUE,parse:function(e,t){switch(t){case"break-all":return pr.BREAK_ALL;case"keep-all":return pr.KEEP_ALL;case"normal":default:return pr.NORMAL}}},gr={name:"z-index",initialValue:"auto",prefix:!1,type:Et.VALUE,parse:function(e,t){if(t.type===le.IDENT_TOKEN)return{auto:!0,order:0};if(qe(t))return{auto:!1,order:t.number};throw new Error("Invalid z-index number parsed")}},mr={name:"opacity",initialValue:"1",type:Et.VALUE,prefix:!1,parse:function(e,t){return qe(t)?t.number:1}},yr={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:Et.TYPE_VALUE,format:"color"},wr={name:"text-decoration-line",initialValue:"none",prefix:!1,type:Et.LIST,parse:function(e,t){return t.filter(ze).map(function(e){switch(e.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0}).filter(function(e){return 0!==e})}},vr={name:"font-family",initialValue:"",prefix:!1,type:Et.LIST,parse:function(e,t){var n=[],r=[];return t.forEach(function(e){switch(e.type){case le.IDENT_TOKEN:case le.STRING_TOKEN:n.push(e.value);break;case le.NUMBER_TOKEN:n.push(e.number.toString());break;case le.COMMA_TOKEN:r.push(n.join(" ")),n.length=0}}),n.length&&r.push(n.join(" ")),r.map(function(e){return-1===e.indexOf(" ")?e:"'"+e+"'"})}},br={name:"font-size",initialValue:"0",prefix:!1,type:Et.TYPE_VALUE,format:"length"},Cr={name:"font-weight",initialValue:"normal",type:Et.VALUE,prefix:!1,parse:function(e,t){if(qe(t))return t.number;if(ze(t))switch(t.value){case"bold":return 700;case"normal":default:return 400}return 400}},Br={name:"font-variant",initialValue:"none",type:Et.LIST,prefix:!1,parse:function(e,t){return t.filter(ze).map(function(e){return e.value})}},_r=(()=>(function(e){e.NORMAL="normal",e.ITALIC="italic",e.OBLIQUE="oblique"}(_r||(_r={})),_r))(),Er={name:"font-style",initialValue:"normal",prefix:!1,type:Et.IDENT_VALUE,parse:function(e,t){switch(t){case"oblique":return _r.OBLIQUE;case"italic":return _r.ITALIC;case"normal":default:return _r.NORMAL}}},Fr=function(e,t){return 0!=(e&t)},Tr={name:"content",initialValue:"none",type:Et.LIST,prefix:!1,parse:function(e,t){if(0===t.length)return[];var n=t[0];return n.type===le.IDENT_TOKEN&&"none"===n.value?[]:t}},Sr={name:"counter-increment",initialValue:"none",prefix:!0,type:Et.LIST,parse:function(e,t){if(0===t.length)return null;var n=t[0];if(n.type===le.IDENT_TOKEN&&"none"===n.value)return null;for(var r=[],i=t.filter(Je),o=0;o<i.length;o++){var s=i[o],a=i[o+1];if(s.type===le.IDENT_TOKEN){var l=a&&qe(a)?a.number:1;r.push({counter:s.value,increment:l})}}return r}},xr={name:"counter-reset",initialValue:"none",prefix:!0,type:Et.LIST,parse:function(e,t){if(0===t.length)return[];for(var n=[],r=t.filter(Je),i=0;i<r.length;i++){var o=r[i],s=r[i+1];if(ze(o)&&"none"!==o.value){var a=s&&qe(s)?s.number:0;n.push({counter:o.value,reset:a})}}return n}},Qr={name:"quotes",initialValue:"none",prefix:!0,type:Et.LIST,parse:function(e,t){if(0===t.length)return null;var n=t[0];if(n.type===le.IDENT_TOKEN&&"none"===n.value)return null;var r=[],i=t.filter(We);if(i.length%2!=0)return null;for(var o=0;o<i.length;o+=2)r.push({open:i[o].value,close:i[o+1].value});return r}},kr=function(e,t,n){if(!e)return"";var r=e[Math.min(t,e.length-1)];return r?n?r.open:r.close:""},Ur={name:"box-shadow",initialValue:"none",type:Et.LIST,prefix:!1,parse:function(e,t){return 1===t.length&&Xe(t[0],"none")?[]:Ye(t).map(function(t){for(var n={color:255,offsetX:rt,offsetY:rt,blur:rt,spread:rt,inset:!1},r=0,i=0;i<t.length;i++){var o=t[i];Xe(o,"inset")?n.inset=!0:et(o)?(0===r?n.offsetX=o:1===r?n.offsetY=o:2===r?n.blur=o:n.spread=o,r++):n.color=pt(e,o)}return n})}},Or=(()=>(function(e){e[e.FILL=0]="FILL",e[e.STROKE=1]="STROKE",e[e.MARKERS=2]="MARKERS"}(Or||(Or={})),Or))(),Ir={name:"paint-order",initialValue:"normal",prefix:!1,type:Et.LIST,parse:function(e,t){var n=[Or.FILL,Or.STROKE,Or.MARKERS],r=[];return t.filter(ze).forEach(function(e){switch(e.value){case"stroke":r.push(Or.STROKE);break;case"fill":r.push(Or.FILL);break;case"markers":r.push(Or.MARKERS)}}),n.forEach(function(e){-1===r.indexOf(e)&&r.push(e)}),r}},Lr={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:Et.TYPE_VALUE,format:"color"},Dr={name:"-webkit-text-stroke-width",initialValue:"0",type:Et.VALUE,prefix:!1,parse:function(e,t){return je(t)?t.number:0}},Mr=function(){function e(e,t){var n,r;this.backgroundClip=Pr(e,Tt,t.backgroundClip),this.backgroundColor=Pr(e,St,t.backgroundColor),this.backgroundImage=Pr(e,Wt,t.backgroundImage),this.backgroundOrigin=Pr(e,Xt,t.backgroundOrigin),this.backgroundPosition=Pr(e,Jt,t.backgroundPosition),this.backgroundRepeat=Pr(e,Yt,t.backgroundRepeat),this.backgroundSize=Pr(e,tn,t.backgroundSize),this.borderTopColor=Pr(e,on,t.borderTopColor),this.borderRightColor=Pr(e,sn,t.borderRightColor),this.borderBottomColor=Pr(e,an,t.borderBottomColor),this.borderLeftColor=Pr(e,ln,t.borderLeftColor),this.borderTopLeftRadius=Pr(e,An,t.borderTopLeftRadius),this.borderTopRightRadius=Pr(e,un,t.borderTopRightRadius),this.borderBottomRightRadius=Pr(e,hn,t.borderBottomRightRadius),this.borderBottomLeftRadius=Pr(e,dn,t.borderBottomLeftRadius),this.borderTopStyle=Pr(e,gn,t.borderTopStyle),this.borderRightStyle=Pr(e,mn,t.borderRightStyle),this.borderBottomStyle=Pr(e,yn,t.borderBottomStyle),this.borderLeftStyle=Pr(e,wn,t.borderLeftStyle),this.borderTopWidth=Pr(e,bn,t.borderTopWidth),this.borderRightWidth=Pr(e,Cn,t.borderRightWidth),this.borderBottomWidth=Pr(e,Bn,t.borderBottomWidth),this.borderLeftWidth=Pr(e,_n,t.borderLeftWidth),this.boxShadow=Pr(e,Ur,t.boxShadow),this.color=Pr(e,En,t.color),this.display=Pr(e,Fn,t.display),this.float=Pr(e,xn,t.cssFloat),this.fontFamily=Pr(e,vr,t.fontFamily),this.fontSize=Pr(e,br,t.fontSize),this.fontStyle=Pr(e,Er,t.fontStyle),this.fontVariant=Pr(e,Br,t.fontVariant),this.fontWeight=Pr(e,Cr,t.fontWeight),this.letterSpacing=Pr(e,Qn,t.letterSpacing),this.lineBreak=Pr(e,Un,t.lineBreak),this.lineHeight=Pr(e,On,t.lineHeight),this.listStyleImage=Pr(e,Ln,t.listStyleImage),this.listStylePosition=Pr(e,Mn,t.listStylePosition),this.listStyleType=Pr(e,Rn,t.listStyleType),this.marginTop=Pr(e,Nn,t.marginTop),this.marginRight=Pr(e,Kn,t.marginRight),this.marginBottom=Pr(e,Vn,t.marginBottom),this.marginLeft=Pr(e,Gn,t.marginLeft),this.opacity=Pr(e,mr,t.opacity);var i=Pr(e,qn,t.overflow);this.overflowX=i[0],this.overflowY=i[i.length>1?1:0],this.overflowWrap=Pr(e,Wn,t.overflowWrap),this.paddingTop=Pr(e,Jn,t.paddingTop),this.paddingRight=Pr(e,$n,t.paddingRight),this.paddingBottom=Pr(e,Yn,t.paddingBottom),this.paddingLeft=Pr(e,Zn,t.paddingLeft),this.paintOrder=Pr(e,Ir,t.paintOrder),this.position=Pr(e,rr,t.position),this.textAlign=Pr(e,tr,t.textAlign),this.textDecorationColor=Pr(e,yr,null!==(n=t.textDecorationColor)&&void 0!==n?n:t.color),this.textDecorationLine=Pr(e,wr,null!==(r=t.textDecorationLine)&&void 0!==r?r:t.textDecoration),this.textShadow=Pr(e,ir,t.textShadow),this.textTransform=Pr(e,sr,t.textTransform),this.transform=Pr(e,ar,t.transform),this.transformOrigin=Pr(e,ur,t.transformOrigin),this.visibility=Pr(e,dr,t.visibility),this.webkitTextStrokeColor=Pr(e,Lr,t.webkitTextStrokeColor),this.webkitTextStrokeWidth=Pr(e,Dr,t.webkitTextStrokeWidth),this.wordBreak=Pr(e,fr,t.wordBreak),this.zIndex=Pr(e,gr,t.zIndex)}return e.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===hr.VISIBLE},e.prototype.isTransparent=function(){return ft(this.backgroundColor)},e.prototype.isTransformed=function(){return null!==this.transform},e.prototype.isPositioned=function(){return this.position!==nr.STATIC},e.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},e.prototype.isFloating=function(){return this.float!==Sn.NONE},e.prototype.isInlineLevel=function(){return Fr(this.display,4)||Fr(this.display,33554432)||Fr(this.display,268435456)||Fr(this.display,536870912)||Fr(this.display,67108864)||Fr(this.display,134217728)},e}(),Hr=function(e,t){this.content=Pr(e,Tr,t.content),this.quotes=Pr(e,Qr,t.quotes)},Rr=function(e,t){this.counterIncrement=Pr(e,Sr,t.counterIncrement),this.counterReset=Pr(e,xr,t.counterReset)},Pr=function(e,t,n){var r=new Ve,i=null!=n?n.toString():t.initialValue;r.write(i);var o=new Ge(r.read());switch(t.type){case Et.IDENT_VALUE:var s=o.parseComponentValue();return t.parse(e,ze(s)?s.value:t.initialValue);case Et.VALUE:return t.parse(e,o.parseComponentValue());case Et.LIST:return t.parse(e,o.parseComponentValues());case Et.TOKEN_VALUE:return o.parseComponentValue();case Et.TYPE_VALUE:switch(t.format){case"angle":return At(0,o.parseComponentValue());case"color":return pt(e,o.parseComponentValue());case"image":return qt(e,o.parseComponentValue());case"length":var a=o.parseComponentValue();return et(a)?a:rt;case"length-percentage":var l=o.parseComponentValue();return tt(l)?l:rt}}},Nr=function(e,t){this.context=e,this.styles=new Mr(e,window.getComputedStyle(t,null)),this.textNodes=[],this.elements=[],null!==this.styles.transform&&bi(t)&&(t.style.transform="none"),this.bounds=a(this.context,t),this.flags=0},Kr=function(e){return 0===e[0]&&255===e[1]&&0===e[2]&&255===e[3]},Vr=function(e,t,n,r,i){var o="http://www.w3.org/2000/svg",s=document.createElementNS(o,"svg"),a=document.createElementNS(o,"foreignObject");return s.setAttributeNS(null,"width",e.toString()),s.setAttributeNS(null,"height",t.toString()),a.setAttributeNS(null,"width","100%"),a.setAttributeNS(null,"height","100%"),a.setAttributeNS(null,"x",n.toString()),a.setAttributeNS(null,"y",r.toString()),a.setAttributeNS(null,"externalResourcesRequired","true"),s.appendChild(a),a.appendChild(i),s},Gr=function(e){return new Promise(function(t,n){var r=new Image;r.onload=function(){return t(r)},r.onerror=n,r.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent((new XMLSerializer).serializeToString(e))})},jr={get SUPPORT_RANGE_BOUNDS(){var e=function(e){if(e.createRange){var t=e.createRange();if(t.getBoundingClientRect){var n=e.createElement("boundtest");n.style.height="123px",n.style.display="block",e.body.appendChild(n),t.selectNode(n);var r=t.getBoundingClientRect(),i=Math.round(r.height);if(e.body.removeChild(n),123===i)return!0}}return!1}(document);return Object.defineProperty(jr,"SUPPORT_RANGE_BOUNDS",{value:e}),e},get SUPPORT_SVG_DRAWING(){var e=function(e){var t=new Image,n=e.createElement("canvas"),r=n.getContext("2d");if(!r)return!1;t.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{r.drawImage(t,0,0),n.toDataURL()}catch(i){return!1}return!0}(document);return Object.defineProperty(jr,"SUPPORT_SVG_DRAWING",{value:e}),e},get SUPPORT_FOREIGNOBJECT_DRAWING(){var e="function"==typeof Array.from&&"function"==typeof window.fetch?function(e){var t=e.createElement("canvas"),n=100;t.width=n,t.height=n;var r=t.getContext("2d");if(!r)return Promise.reject(!1);r.fillStyle="rgb(0, 255, 0)",r.fillRect(0,0,n,n);var i=new Image,o=t.toDataURL();i.src=o;var s=Vr(n,n,0,0,i);return r.fillStyle="red",r.fillRect(0,0,n,n),Gr(s).then(function(t){r.drawImage(t,0,0);var i=r.getImageData(0,0,n,n).data;r.fillStyle="red",r.fillRect(0,0,n,n);var s=e.createElement("div");return s.style.backgroundImage="url("+o+")",s.style.height="100px",Kr(i)?Gr(Vr(n,n,0,0,s)):Promise.reject(!1)}).then(function(e){return r.drawImage(e,0,0),Kr(r.getImageData(0,0,n,n).data)}).catch(function(){return!1})}(document):Promise.resolve(!1);return Object.defineProperty(jr,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:e}),e},get SUPPORT_CORS_IMAGES(){var e=void 0!==(new Image).crossOrigin;return Object.defineProperty(jr,"SUPPORT_CORS_IMAGES",{value:e}),e},get SUPPORT_RESPONSE_TYPE(){var e="string"==typeof(new XMLHttpRequest).responseType;return Object.defineProperty(jr,"SUPPORT_RESPONSE_TYPE",{value:e}),e},get SUPPORT_CORS_XHR(){var e="withCredentials"in new XMLHttpRequest;return Object.defineProperty(jr,"SUPPORT_CORS_XHR",{value:e}),e}},qr=function(e,t){this.text=e,this.bounds=t},zr=[32,160,4961,65792,65793,4153,4241],Wr=function(e,t){for(var n,r=function(e,t){var n=l(e),r=function(e,t){t||(t={lineBreak:"normal",wordBreak:"normal"});var n=function(e,t){void 0===t&&(t="strict");var n=[],r=[],i=[];return e.forEach(function(e,o){var s=J.get(e);if(s>50?(i.push(!0),s-=50):i.push(!1),-1!==["normal","auto","loose"].indexOf(t)&&-1!==[8208,8211,12316,12448].indexOf(e))return r.push(o),n.push(16);if(4===s||11===s){if(0===o)return r.push(o),n.push(M);var a=n[o-1];return-1===te.indexOf(a)?(r.push(r[o-1]),n.push(a)):(r.push(o),n.push(M))}return r.push(o),31===s?n.push("strict"===t?Q:K):s===q||29===s?n.push(M):43===s?n.push(e>=131072&&e<=196605||e>=196608&&e<=262141?K:M):void n.push(s)}),[r,n,i]}(e,t.lineBreak),r=n[0],i=n[1],o=n[2];return"break-all"!==t.wordBreak&&"break-word"!==t.wordBreak||(i=i.map(function(e){return-1!==[O,M,q].indexOf(e)?K:e})),[r,i,"keep-all"===t.wordBreak?o.map(function(t,n){return t&&e[n]>=19968&&e[n]<=40959}):void 0]}(n,t),i=r[0],o=r[1],s=r[2],a=n.length,c=0,A=0;return{next:function(){if(A>=a)return{done:!0,value:null};for(var e=W;A<a&&(e=se(n,o,i,++A,s))===W;);if(e!==W||A===a){var t=new ae(n,e,c,A);return c=A,{value:t,done:!1}}return{done:!0,value:null}}}}(e,{lineBreak:t.lineBreak,wordBreak:t.overflowWrap===zn.BREAK_WORD?"break-word":t.wordBreak}),i=[],o=function(){if(n.value){var e=n.value.slice(),t=l(e),r="";t.forEach(function(e){-1===zr.indexOf(e)?r+=c(e):(r.length&&i.push(r),i.push(c(e)),r="")}),r.length&&i.push(r)}};!(n=r.next()).done;)o();return i},Xr=function(e,t,n){this.text=Jr(t.data,n.textTransform),this.textBounds=function(e,t,n,r){var i=function(e,t){return 0!==t.letterSpacing?l(e).map(function(e){return c(e)}):Wr(e,t)}(t,n),o=[],A=0;return i.forEach(function(t){if(n.textDecorationLine.length||t.trim().length>0)if(jr.SUPPORT_RANGE_BOUNDS)o.push(new qr(t,function(e,t,n,r){var i=t.ownerDocument;if(!i)throw new Error("Node has no owner document");var o=i.createRange();return o.setStart(t,n),o.setEnd(t,n+r),s.fromClientRect(e,o.getBoundingClientRect())}(e,r,A,t.length)));else{var i=r.splitText(t.length);o.push(new qr(t,function(e,t){var n=t.ownerDocument;if(n){var r=n.createElement("html2canvaswrapper");r.appendChild(t.cloneNode(!0));var i=t.parentNode;if(i){i.replaceChild(r,t);var o=a(e,r);return r.firstChild&&i.replaceChild(r.firstChild,r),o}}return new s(0,0,0,0)}(e,r))),r=i}else jr.SUPPORT_RANGE_BOUNDS||(r=r.splitText(t.length));A+=t.length}),o}(e,this.text,n,t)},Jr=function(e,t){switch(t){case or.LOWERCASE:return e.toLowerCase();case or.CAPITALIZE:return e.replace($r,Yr);case or.UPPERCASE:return e.toUpperCase();default:return e}},$r=/(^|\s|:|-|\(|\))([a-z])/g,Yr=function(e,t,n){return e.length>0?t+n.toUpperCase():e},Zr=function(e){function n(t,n){var r=e.call(this,t,n)||this;return r.src=n.currentSrc||n.src,r.intrinsicWidth=n.naturalWidth,r.intrinsicHeight=n.naturalHeight,r.context.cache.addImage(r.src),r}return t(n,e),n}(Nr),ei=function(e){function n(t,n){var r=e.call(this,t,n)||this;return r.canvas=n,r.intrinsicWidth=n.width,r.intrinsicHeight=n.height,r}return t(n,e),n}(Nr),ti=function(e){function n(t,n){var r=e.call(this,t,n)||this,i=new XMLSerializer,o=a(t,n);return n.setAttribute("width",o.width+"px"),n.setAttribute("height",o.height+"px"),r.svg="data:image/svg+xml,"+encodeURIComponent(i.serializeToString(n)),r.intrinsicWidth=n.width.baseVal.value,r.intrinsicHeight=n.height.baseVal.value,r.context.cache.addImage(r.svg),r}return t(n,e),n}(Nr),ni=function(e){function n(t,n){var r=e.call(this,t,n)||this;return r.value=n.value,r}return t(n,e),n}(Nr),ri=function(e){function n(t,n){var r=e.call(this,t,n)||this;return r.start=n.start,r.reversed="boolean"==typeof n.reversed&&!0===n.reversed,r}return t(n,e),n}(Nr),ii=[{type:le.DIMENSION_TOKEN,flags:0,unit:"px",number:3}],oi=[{type:le.PERCENTAGE_TOKEN,flags:0,number:50}],si="checkbox",ai="radio",li=707406591,ci=function(e){function n(t,n){var r,i,o,a=e.call(this,t,n)||this;switch(a.type=n.type.toLowerCase(),a.checked=n.checked,a.value=0===(o="password"===(i=n).type?new Array(i.value.length+1).join("\u2022"):i.value).length?i.placeholder||"":o,a.type!==si&&a.type!==ai||(a.styles.backgroundColor=3739148031,a.styles.borderTopColor=a.styles.borderRightColor=a.styles.borderBottomColor=a.styles.borderLeftColor=2779096575,a.styles.borderTopWidth=a.styles.borderRightWidth=a.styles.borderBottomWidth=a.styles.borderLeftWidth=1,a.styles.borderTopStyle=a.styles.borderRightStyle=a.styles.borderBottomStyle=a.styles.borderLeftStyle=pn.SOLID,a.styles.backgroundClip=[Ft.BORDER_BOX],a.styles.backgroundOrigin=[0],a.bounds=(r=a.bounds).width>r.height?new s(r.left+(r.width-r.height)/2,r.top,r.height,r.height):r.width<r.height?new s(r.left,r.top+(r.height-r.width)/2,r.width,r.width):r),a.type){case si:a.styles.borderTopRightRadius=a.styles.borderTopLeftRadius=a.styles.borderBottomRightRadius=a.styles.borderBottomLeftRadius=ii;break;case ai:a.styles.borderTopRightRadius=a.styles.borderTopLeftRadius=a.styles.borderBottomRightRadius=a.styles.borderBottomLeftRadius=oi}return a}return t(n,e),n}(Nr),Ai=function(e){function n(t,n){var r=e.call(this,t,n)||this,i=n.options[n.selectedIndex||0];return r.value=i&&i.text||"",r}return t(n,e),n}(Nr),ui=function(e){function n(t,n){var r=e.call(this,t,n)||this;return r.value=n.value,r}return t(n,e),n}(Nr),hi=function(e){function n(t,n){var r=e.call(this,t,n)||this;r.src=n.src,r.width=parseInt(n.width,10)||0,r.height=parseInt(n.height,10)||0,r.backgroundColor=r.styles.backgroundColor;try{if(n.contentWindow&&n.contentWindow.document&&n.contentWindow.document.documentElement){r.tree=gi(t,n.contentWindow.document.documentElement);var i=n.contentWindow.document.documentElement?Bt(t,getComputedStyle(n.contentWindow.document.documentElement).backgroundColor):_t.TRANSPARENT,o=n.contentWindow.document.body?Bt(t,getComputedStyle(n.contentWindow.document.body).backgroundColor):_t.TRANSPARENT;r.backgroundColor=ft(i)?ft(o)?r.styles.backgroundColor:o:i}}catch(s){}return r}return t(n,e),n}(Nr),di=["OL","UL","MENU"],pi=function(e,t,n,r){for(var i=t.firstChild,o=void 0;i;i=o)if(o=i.nextSibling,wi(i)&&i.data.trim().length>0)n.textNodes.push(new Xr(e,i,n.styles));else if(vi(i))if(Li(i)&&i.assignedNodes)i.assignedNodes().forEach(function(t){return pi(e,t,n,r)});else{var s=fi(e,i);s.styles.isVisible()&&(mi(i,s,r)?s.flags|=4:yi(s.styles)&&(s.flags|=2),-1!==di.indexOf(i.tagName)&&(s.flags|=8),n.elements.push(s),i.shadowRoot?pi(e,i.shadowRoot,s,r):Oi(i)||Fi(i)||Ii(i)||pi(e,i,s,r))}},fi=function(e,t){return xi(t)?new Zr(e,t):Si(t)?new ei(e,t):Fi(t)?new ti(e,t):Bi(t)?new ni(e,t):_i(t)?new ri(e,t):Ei(t)?new ci(e,t):Ii(t)?new Ai(e,t):Oi(t)?new ui(e,t):Qi(t)?new hi(e,t):new Nr(e,t)},gi=function(e,t){var n=fi(e,t);return n.flags|=4,pi(e,t,n,n),n},mi=function(e,t,n){return t.styles.isPositionedWithZIndex()||t.styles.opacity<1||t.styles.isTransformed()||Ti(e)&&n.styles.isTransparent()},yi=function(e){return e.isPositioned()||e.isFloating()},wi=function(e){return e.nodeType===Node.TEXT_NODE},vi=function(e){return e.nodeType===Node.ELEMENT_NODE},bi=function(e){return vi(e)&&void 0!==e.style&&!Ci(e)},Ci=function(e){return"object"==typeof e.className},Bi=function(e){return"LI"===e.tagName},_i=function(e){return"OL"===e.tagName},Ei=function(e){return"INPUT"===e.tagName},Fi=function(e){return"svg"===e.tagName},Ti=function(e){return"BODY"===e.tagName},Si=function(e){return"CANVAS"===e.tagName},xi=function(e){return"IMG"===e.tagName},Qi=function(e){return"IFRAME"===e.tagName},ki=function(e){return"STYLE"===e.tagName},Ui=function(e){return"SCRIPT"===e.tagName},Oi=function(e){return"TEXTAREA"===e.tagName},Ii=function(e){return"SELECT"===e.tagName},Li=function(e){return"SLOT"===e.tagName},Di=function(){function e(){this.counters={}}return e.prototype.getCounterValue=function(e){var t=this.counters[e];return t&&t.length?t[t.length-1]:1},e.prototype.getCounterValues=function(e){return this.counters[e]||[]},e.prototype.pop=function(e){var t=this;e.forEach(function(e){return t.counters[e].pop()})},e.prototype.parse=function(e){var t=this,n=e.counterIncrement,r=e.counterReset,i=!0;null!==n&&n.forEach(function(e){var n=t.counters[e.counter];n&&0!==e.increment&&(i=!1,n[Math.max(0,n.length-1)]+=e.increment)});var o=[];return i&&r.forEach(function(e){var n=t.counters[e.counter];o.push(e.counter),n||(n=t.counters[e.counter]=[]),n.push(e.reset)}),o},e}(),Mi={integers:[1e3,900,500,400,100,90,50,40,10,9,5,4,1],values:["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"]},Hi={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["\u0554","\u0553","\u0552","\u0551","\u0550","\u054f","\u054e","\u054d","\u054c","\u054b","\u054a","\u0549","\u0548","\u0547","\u0546","\u0545","\u0544","\u0543","\u0542","\u0541","\u0540","\u053f","\u053e","\u053d","\u053c","\u053b","\u053a","\u0539","\u0538","\u0537","\u0536","\u0535","\u0534","\u0533","\u0532","\u0531"]},Ri={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:["\u05d9\u05f3","\u05d8\u05f3","\u05d7\u05f3","\u05d6\u05f3","\u05d5\u05f3","\u05d4\u05f3","\u05d3\u05f3","\u05d2\u05f3","\u05d1\u05f3","\u05d0\u05f3","\u05ea","\u05e9","\u05e8","\u05e7","\u05e6","\u05e4","\u05e2","\u05e1","\u05e0","\u05de","\u05dc","\u05db","\u05d9\u05d8","\u05d9\u05d7","\u05d9\u05d6","\u05d8\u05d6","\u05d8\u05d5","\u05d9","\u05d8","\u05d7","\u05d6","\u05d5","\u05d4","\u05d3","\u05d2","\u05d1","\u05d0"]},Pi={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["\u10f5","\u10f0","\u10ef","\u10f4","\u10ee","\u10ed","\u10ec","\u10eb","\u10ea","\u10e9","\u10e8","\u10e7","\u10e6","\u10e5","\u10e4","\u10f3","\u10e2","\u10e1","\u10e0","\u10df","\u10de","\u10dd","\u10f2","\u10dc","\u10db","\u10da","\u10d9","\u10d8","\u10d7","\u10f1","\u10d6","\u10d5","\u10d4","\u10d3","\u10d2","\u10d1","\u10d0"]},Ni=function(e,t,n,r,i,o){return e<t||e>n?Ji(e,i,o.length>0):r.integers.reduce(function(t,n,i){for(;e>=n;)e-=n,t+=r.values[i];return t},"")+o},Ki=function(e,t,n,r){var i="";do{n||e--,i=r(e)+i,e/=t}while(e*t>=t);return i},Vi=function(e,t,n,r,i){var o=n-t+1;return(e<0?"-":"")+(Ki(Math.abs(e),o,r,function(e){return c(Math.floor(e%o)+t)})+i)},Gi=function(e,t,n){void 0===n&&(n=". ");var r=t.length;return Ki(Math.abs(e),r,!1,function(e){return t[Math.floor(e%r)]})+n},ji=function(e,t,n,r,i,o){if(e<-9999||e>9999)return Ji(e,Hn.CJK_DECIMAL,i.length>0);var s=Math.abs(e),a=i;if(0===s)return t[0]+a;for(var l=0;s>0&&l<=4;l++){var c=s%10;0===c&&Fr(o,1)&&""!==a?a=t[c]+a:c>1||1===c&&0===l||1===c&&1===l&&Fr(o,2)||1===c&&1===l&&Fr(o,4)&&e>100||1===c&&l>1&&Fr(o,8)?a=t[c]+(l>0?n[l-1]:"")+a:1===c&&l>0&&(a=n[l-1]+a),s=Math.floor(s/10)}return(e<0?r:"")+a},qi="\u5341\u767e\u5343\u842c",zi="\u62fe\u4f70\u4edf\u842c",Wi="\u30de\u30a4\u30ca\u30b9",Xi="\ub9c8\uc774\ub108\uc2a4",Ji=function(e,t,n){var r=n?". ":"",i=n?"\u3001":"",o=n?", ":"",s=n?" ":"";switch(t){case Hn.DISC:return"\u2022"+s;case Hn.CIRCLE:return"\u25e6"+s;case Hn.SQUARE:return"\u25fe"+s;case Hn.DECIMAL_LEADING_ZERO:var a=Vi(e,48,57,!0,r);return a.length<4?"0"+a:a;case Hn.CJK_DECIMAL:return Gi(e,"\u3007\u4e00\u4e8c\u4e09\u56db\u4e94\u516d\u4e03\u516b\u4e5d",i);case Hn.LOWER_ROMAN:return Ni(e,1,3999,Mi,Hn.DECIMAL,r).toLowerCase();case Hn.UPPER_ROMAN:return Ni(e,1,3999,Mi,Hn.DECIMAL,r);case Hn.LOWER_GREEK:return Vi(e,945,969,!1,r);case Hn.LOWER_ALPHA:return Vi(e,97,122,!1,r);case Hn.UPPER_ALPHA:return Vi(e,65,90,!1,r);case Hn.ARABIC_INDIC:return Vi(e,1632,1641,!0,r);case Hn.ARMENIAN:case Hn.UPPER_ARMENIAN:return Ni(e,1,9999,Hi,Hn.DECIMAL,r);case Hn.LOWER_ARMENIAN:return Ni(e,1,9999,Hi,Hn.DECIMAL,r).toLowerCase();case Hn.BENGALI:return Vi(e,2534,2543,!0,r);case Hn.CAMBODIAN:case Hn.KHMER:return Vi(e,6112,6121,!0,r);case Hn.CJK_EARTHLY_BRANCH:return Gi(e,"\u5b50\u4e11\u5bc5\u536f\u8fb0\u5df3\u5348\u672a\u7533\u9149\u620c\u4ea5",i);case Hn.CJK_HEAVENLY_STEM:return Gi(e,"\u7532\u4e59\u4e19\u4e01\u620a\u5df1\u5e9a\u8f9b\u58ec\u7678",i);case Hn.CJK_IDEOGRAPHIC:case Hn.TRAD_CHINESE_INFORMAL:return ji(e,"\u96f6\u4e00\u4e8c\u4e09\u56db\u4e94\u516d\u4e03\u516b\u4e5d",qi,"\u8ca0",i,14);case Hn.TRAD_CHINESE_FORMAL:return ji(e,"\u96f6\u58f9\u8cb3\u53c3\u8086\u4f0d\u9678\u67d2\u634c\u7396",zi,"\u8ca0",i,15);case Hn.SIMP_CHINESE_INFORMAL:return ji(e,"\u96f6\u4e00\u4e8c\u4e09\u56db\u4e94\u516d\u4e03\u516b\u4e5d",qi,"\u8d1f",i,14);case Hn.SIMP_CHINESE_FORMAL:return ji(e,"\u96f6\u58f9\u8d30\u53c1\u8086\u4f0d\u9646\u67d2\u634c\u7396",zi,"\u8d1f",i,15);case Hn.JAPANESE_INFORMAL:return ji(e,"\u3007\u4e00\u4e8c\u4e09\u56db\u4e94\u516d\u4e03\u516b\u4e5d","\u5341\u767e\u5343\u4e07",Wi,i,0);case Hn.JAPANESE_FORMAL:return ji(e,"\u96f6\u58f1\u5f10\u53c2\u56db\u4f0d\u516d\u4e03\u516b\u4e5d","\u62fe\u767e\u5343\u4e07",Wi,i,7);case Hn.KOREAN_HANGUL_FORMAL:return ji(e,"\uc601\uc77c\uc774\uc0bc\uc0ac\uc624\uc721\uce60\ud314\uad6c","\uc2ed\ubc31\ucc9c\ub9cc",Xi,o,7);case Hn.KOREAN_HANJA_INFORMAL:return ji(e,"\u96f6\u4e00\u4e8c\u4e09\u56db\u4e94\u516d\u4e03\u516b\u4e5d","\u5341\u767e\u5343\u842c",Xi,o,0);case Hn.KOREAN_HANJA_FORMAL:return ji(e,"\u96f6\u58f9\u8cb3\u53c3\u56db\u4e94\u516d\u4e03\u516b\u4e5d","\u62fe\u767e\u5343",Xi,o,7);case Hn.DEVANAGARI:return Vi(e,2406,2415,!0,r);case Hn.GEORGIAN:return Ni(e,1,19999,Pi,Hn.DECIMAL,r);case Hn.GUJARATI:return Vi(e,2790,2799,!0,r);case Hn.GURMUKHI:return Vi(e,2662,2671,!0,r);case Hn.HEBREW:return Ni(e,1,10999,Ri,Hn.DECIMAL,r);case Hn.HIRAGANA:return Gi(e,"\u3042\u3044\u3046\u3048\u304a\u304b\u304d\u304f\u3051\u3053\u3055\u3057\u3059\u305b\u305d\u305f\u3061\u3064\u3066\u3068\u306a\u306b\u306c\u306d\u306e\u306f\u3072\u3075\u3078\u307b\u307e\u307f\u3080\u3081\u3082\u3084\u3086\u3088\u3089\u308a\u308b\u308c\u308d\u308f\u3090\u3091\u3092\u3093");case Hn.HIRAGANA_IROHA:return Gi(e,"\u3044\u308d\u306f\u306b\u307b\u3078\u3068\u3061\u308a\u306c\u308b\u3092\u308f\u304b\u3088\u305f\u308c\u305d\u3064\u306d\u306a\u3089\u3080\u3046\u3090\u306e\u304a\u304f\u3084\u307e\u3051\u3075\u3053\u3048\u3066\u3042\u3055\u304d\u3086\u3081\u307f\u3057\u3091\u3072\u3082\u305b\u3059");case Hn.KANNADA:return Vi(e,3302,3311,!0,r);case Hn.KATAKANA:return Gi(e,"\u30a2\u30a4\u30a6\u30a8\u30aa\u30ab\u30ad\u30af\u30b1\u30b3\u30b5\u30b7\u30b9\u30bb\u30bd\u30bf\u30c1\u30c4\u30c6\u30c8\u30ca\u30cb\u30cc\u30cd\u30ce\u30cf\u30d2\u30d5\u30d8\u30db\u30de\u30df\u30e0\u30e1\u30e2\u30e4\u30e6\u30e8\u30e9\u30ea\u30eb\u30ec\u30ed\u30ef\u30f0\u30f1\u30f2\u30f3",i);case Hn.KATAKANA_IROHA:return Gi(e,"\u30a4\u30ed\u30cf\u30cb\u30db\u30d8\u30c8\u30c1\u30ea\u30cc\u30eb\u30f2\u30ef\u30ab\u30e8\u30bf\u30ec\u30bd\u30c4\u30cd\u30ca\u30e9\u30e0\u30a6\u30f0\u30ce\u30aa\u30af\u30e4\u30de\u30b1\u30d5\u30b3\u30a8\u30c6\u30a2\u30b5\u30ad\u30e6\u30e1\u30df\u30b7\u30f1\u30d2\u30e2\u30bb\u30b9",i);case Hn.LAO:return Vi(e,3792,3801,!0,r);case Hn.MONGOLIAN:return Vi(e,6160,6169,!0,r);case Hn.MYANMAR:return Vi(e,4160,4169,!0,r);case Hn.ORIYA:return Vi(e,2918,2927,!0,r);case Hn.PERSIAN:return Vi(e,1776,1785,!0,r);case Hn.TAMIL:return Vi(e,3046,3055,!0,r);case Hn.TELUGU:return Vi(e,3174,3183,!0,r);case Hn.THAI:return Vi(e,3664,3673,!0,r);case Hn.TIBETAN:return Vi(e,3872,3881,!0,r);case Hn.DECIMAL:default:return Vi(e,48,57,!0,r)}},$i="data-html2canvas-ignore",Yi=function(){function e(e,t,n){if(this.context=e,this.options=n,this.scrolledElements=[],this.referenceElement=t,this.counters=new Di,this.quoteDepth=0,!t.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(t.ownerDocument.documentElement)}return e.prototype.toIFrame=function(e,t){var n=this,o=eo(e,t);if(!o.contentWindow)return Promise.reject("Unable to find iframe window");var s=e.defaultView.pageXOffset,a=e.defaultView.pageYOffset,l=o.contentWindow,c=l.document,A=ro(o).then(function(){return r(n,void 0,void 0,function(){var e,n;return i(this,function(r){switch(r.label){case 0:return this.scrolledElements.forEach(lo),l&&(l.scrollTo(t.left,t.top),!/(iPad|iPhone|iPod)/g.test(navigator.userAgent)||l.scrollY===t.top&&l.scrollX===t.left||(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(l.scrollX-t.left,l.scrollY-t.top,0,0))),e=this.options.onclone,void 0===(n=this.clonedReferenceElement)?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:c.fonts&&c.fonts.ready?[4,c.fonts.ready]:[3,2];case 1:r.sent(),r.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,no(c)]:[3,4];case 3:r.sent(),r.label=4;case 4:return"function"==typeof e?[2,Promise.resolve().then(function(){return e(c,n)}).then(function(){return o})]:[2,o]}})})});return c.open(),c.write(so(document.doctype)+"<html></html>"),ao(this.referenceElement.ownerDocument,s,a),c.replaceChild(c.adoptNode(this.documentElement),c.documentElement),c.close(),A},e.prototype.createElementClone=function(e){if(Si(e))return this.createCanvasClone(e);if(ki(e))return this.createStyleClone(e);var t=e.cloneNode(!1);return xi(t)&&(xi(e)&&e.currentSrc&&e.currentSrc!==e.src&&(t.src=e.currentSrc,t.srcset=""),"lazy"===t.loading&&(t.loading="eager")),t},e.prototype.createStyleClone=function(e){try{var t=e.sheet;if(t&&t.cssRules){var n=[].slice.call(t.cssRules,0).reduce(function(e,t){return t&&"string"==typeof t.cssText?e+t.cssText:e},""),r=e.cloneNode(!1);return r.textContent=n,r}}catch(i){if(this.context.logger.error("Unable to access cssRules property",i),"SecurityError"!==i.name)throw i}return e.cloneNode(!1)},e.prototype.createCanvasClone=function(e){if(this.options.inlineImages&&e.ownerDocument){var t=e.ownerDocument.createElement("img");try{return t.src=e.toDataURL(),t}catch(o){this.context.logger.info("Unable to clone canvas contents, canvas is tainted")}}var n=e.cloneNode(!1);try{n.width=e.width,n.height=e.height;var r=e.getContext("2d"),i=n.getContext("2d");return i&&(r?i.putImageData(r.getImageData(0,0,e.width,e.height),0,0):i.drawImage(e,0,0)),n}catch(o){}return n},e.prototype.cloneNode=function(e){if(wi(e))return document.createTextNode(e.data);if(!e.ownerDocument)return e.cloneNode(!1);var t=e.ownerDocument.defaultView;if(t&&vi(e)&&(bi(e)||Ci(e))){var n=this.createElementClone(e),r=t.getComputedStyle(e),i=t.getComputedStyle(e,":before"),o=t.getComputedStyle(e,":after");this.referenceElement===e&&bi(n)&&(this.clonedReferenceElement=n),Ti(n)&&ho(n);for(var s=this.counters.parse(new Rr(this.context,r)),a=this.resolvePseudoContent(e,n,i,Zi.BEFORE),l=e.firstChild;l;l=l.nextSibling)vi(l)&&(Ui(l)||l.hasAttribute($i)||"function"==typeof this.options.ignoreElements&&this.options.ignoreElements(l))||this.options.copyStyles&&vi(l)&&ki(l)||n.appendChild(this.cloneNode(l));a&&n.insertBefore(a,n.firstChild);var c=this.resolvePseudoContent(e,n,o,Zi.AFTER);return c&&n.appendChild(c),this.counters.pop(s),r&&(this.options.copyStyles||Ci(e))&&!Qi(e)&&oo(r,n),0===e.scrollTop&&0===e.scrollLeft||this.scrolledElements.push([n,e.scrollLeft,e.scrollTop]),(Oi(e)||Ii(e))&&(Oi(n)||Ii(n))&&(n.value=e.value),n}return e.cloneNode(!1)},e.prototype.resolvePseudoContent=function(e,t,n,r){var i=this;if(n){var o=n.content,s=t.ownerDocument;if(s&&o&&"none"!==o&&"-moz-alt-content"!==o&&"none"!==n.display){this.counters.parse(new Rr(this.context,n));var a=new Hr(this.context,n),l=s.createElement("html2canvaspseudoelement");oo(n,l),a.content.forEach(function(t){if(t.type===le.STRING_TOKEN)l.appendChild(s.createTextNode(t.value));else if(t.type===le.URL_TOKEN){var n=s.createElement("img");n.src=t.value,n.style.opacity="1",l.appendChild(n)}else if(t.type===le.FUNCTION){if("attr"===t.name){var r=t.values.filter(ze);r.length&&l.appendChild(s.createTextNode(e.getAttribute(r[0].value)||""))}else if("counter"===t.name){var o=t.values.filter($e),c=o[1];if((h=o[0])&&ze(h)){var A=i.counters.getCounterValue(h.value),u=c&&ze(c)?Rn.parse(i.context,c.value):Hn.DECIMAL;l.appendChild(s.createTextNode(Ji(A,u,!1)))}}else if("counters"===t.name){var h,d=t.values.filter($e),p=d[1];if(c=d[2],(h=d[0])&&ze(h)){var f=i.counters.getCounterValues(h.value),g=c&&ze(c)?Rn.parse(i.context,c.value):Hn.DECIMAL,m=p&&p.type===le.STRING_TOKEN?p.value:"",y=f.map(function(e){return Ji(e,g,!1)}).join(m);l.appendChild(s.createTextNode(y))}}}else if(t.type===le.IDENT_TOKEN)switch(t.value){case"open-quote":l.appendChild(s.createTextNode(kr(a.quotes,i.quoteDepth++,!0)));break;case"close-quote":l.appendChild(s.createTextNode(kr(a.quotes,--i.quoteDepth,!1)));break;default:l.appendChild(s.createTextNode(t.value))}}),l.className=co+" "+Ao;var c=r===Zi.BEFORE?" "+co:" "+Ao;return Ci(t)?t.className.baseValue+=c:t.className+=c,l}}},e.destroy=function(e){return!!e.parentNode&&(e.parentNode.removeChild(e),!0)},e}(),Zi=(()=>(function(e){e[e.BEFORE=0]="BEFORE",e[e.AFTER=1]="AFTER"}(Zi||(Zi={})),Zi))(),eo=function(e,t){var n=e.createElement("iframe");return n.className="html2canvas-container",n.style.visibility="hidden",n.style.position="fixed",n.style.left="-10000px",n.style.top="0px",n.style.border="0",n.width=t.width.toString(),n.height=t.height.toString(),n.scrolling="no",n.setAttribute($i,"true"),e.body.appendChild(n),n},to=function(e){return new Promise(function(t){e.complete?t():e.src?(e.onload=t,e.onerror=t):t()})},no=function(e){return Promise.all([].slice.call(e.images,0).map(to))},ro=function(e){return new Promise(function(t,n){var r=e.contentWindow;if(!r)return n("No window assigned for iframe");var i=r.document;r.onload=e.onload=function(){r.onload=e.onload=null;var n=setInterval(function(){i.body.childNodes.length>0&&"complete"===i.readyState&&(clearInterval(n),t(e))},50)}})},io=["all","d","content"],oo=function(e,t){for(var n=e.length-1;n>=0;n--){var r=e.item(n);-1===io.indexOf(r)&&t.style.setProperty(r,e.getPropertyValue(r))}return t},so=function(e){var t="";return e&&(t+="<!DOCTYPE ",e.name&&(t+=e.name),e.internalSubset&&(t+=e.internalSubset),e.publicId&&(t+='"'+e.publicId+'"'),e.systemId&&(t+='"'+e.systemId+'"'),t+=">"),t},ao=function(e,t,n){e&&e.defaultView&&(t!==e.defaultView.pageXOffset||n!==e.defaultView.pageYOffset)&&e.defaultView.scrollTo(t,n)},lo=function(e){var t=e[0],n=e[2];t.scrollLeft=e[1],t.scrollTop=n},co="___html2canvas___pseudoelement_before",Ao="___html2canvas___pseudoelement_after",uo='{\n    content: "" !important;\n    display: none !important;\n}',ho=function(e){po(e,"."+co+":before"+uo+"\n         ."+Ao+":after"+uo)},po=function(e,t){var n=e.ownerDocument;if(n){var r=n.createElement("style");r.textContent=t,e.appendChild(r)}},fo=function(){function e(){}return e.getOrigin=function(t){var n=e._link;return n?(n.href=t,n.href=n.href,n.protocol+n.hostname+n.port):"about:blank"},e.isSameOrigin=function(t){return e.getOrigin(t)===e._origin},e.setContext=function(t){e._link=t.document.createElement("a"),e._origin=e.getOrigin(t.location.href)},e._origin="about:blank",e}(),go=function(){function e(e,t){this.context=e,this._options=t,this._cache={}}return e.prototype.addImage=function(e){var t=Promise.resolve();return this.has(e)?t:Bo(e)||vo(e)?((this._cache[e]=this.loadImage(e)).catch(function(){}),t):t},e.prototype.match=function(e){return this._cache[e]},e.prototype.loadImage=function(e){return r(this,void 0,void 0,function(){var t,n,r,o,s=this;return i(this,function(i){switch(i.label){case 0:return t=fo.isSameOrigin(e),n=!bo(e)&&!0===this._options.useCORS&&jr.SUPPORT_CORS_IMAGES&&!t,r=!bo(e)&&!t&&!Bo(e)&&"string"==typeof this._options.proxy&&jr.SUPPORT_CORS_XHR&&!n,t||!1!==this._options.allowTaint||bo(e)||Bo(e)||r||n?(o=e,r?[4,this.proxy(o)]:[3,2]):[2];case 1:o=i.sent(),i.label=2;case 2:return this.context.logger.debug("Added image "+e.substring(0,256)),[4,new Promise(function(e,t){var r=new Image;r.onload=function(){return e(r)},r.onerror=t,(Co(o)||n)&&(r.crossOrigin="anonymous"),r.src=o,!0===r.complete&&setTimeout(function(){return e(r)},500),s._options.imageTimeout>0&&setTimeout(function(){return t("Timed out ("+s._options.imageTimeout+"ms) loading image")},s._options.imageTimeout)})];case 3:return[2,i.sent()]}})})},e.prototype.has=function(e){return void 0!==this._cache[e]},e.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},e.prototype.proxy=function(e){var t=this,n=this._options.proxy;if(!n)throw new Error("No proxy defined");var r=e.substring(0,256);return new Promise(function(i,o){var s=jr.SUPPORT_RESPONSE_TYPE?"blob":"text",a=new XMLHttpRequest;a.onload=function(){if(200===a.status)if("text"===s)i(a.response);else{var e=new FileReader;e.addEventListener("load",function(){return i(e.result)},!1),e.addEventListener("error",function(e){return o(e)},!1),e.readAsDataURL(a.response)}else o("Failed to proxy resource "+r+" with status code "+a.status)},a.onerror=o;var l=n.indexOf("?")>-1?"&":"?";if(a.open("GET",""+n+l+"url="+encodeURIComponent(e)+"&responseType="+s),"text"!==s&&a instanceof XMLHttpRequest&&(a.responseType=s),t._options.imageTimeout){var c=t._options.imageTimeout;a.timeout=c,a.ontimeout=function(){return o("Timed out ("+c+"ms) proxying "+r)}}a.send()})},e}(),mo=/^data:image\/svg\+xml/i,yo=/^data:image\/.*;base64,/i,wo=/^data:image\/.*/i,vo=function(e){return jr.SUPPORT_SVG_DRAWING||!_o(e)},bo=function(e){return wo.test(e)},Co=function(e){return yo.test(e)},Bo=function(e){return"blob"===e.substr(0,4)},_o=function(e){return"svg"===e.substr(-3).toLowerCase()||mo.test(e)},Eo=(()=>(function(e){e[e.VECTOR=0]="VECTOR",e[e.BEZIER_CURVE=1]="BEZIER_CURVE"}(Eo||(Eo={})),Eo))(),Fo=function(e,t){return e.length===t.length&&e.some(function(e,n){return e===t[n]})},To=function(){function e(e,t){this.type=Eo.VECTOR,this.x=e,this.y=t}return e.prototype.add=function(t,n){return new e(this.x+t,this.y+n)},e}(),So=function(e,t,n){return new To(e.x+(t.x-e.x)*n,e.y+(t.y-e.y)*n)},xo=function(){function e(e,t,n,r){this.type=Eo.BEZIER_CURVE,this.start=e,this.startControl=t,this.endControl=n,this.end=r}return e.prototype.subdivide=function(t,n){var r=So(this.start,this.startControl,t),i=So(this.startControl,this.endControl,t),o=So(this.endControl,this.end,t),s=So(r,i,t),a=So(i,o,t),l=So(s,a,t);return n?new e(this.start,r,s,l):new e(l,a,o,this.end)},e.prototype.add=function(t,n){return new e(this.start.add(t,n),this.startControl.add(t,n),this.endControl.add(t,n),this.end.add(t,n))},e.prototype.reverse=function(){return new e(this.end,this.endControl,this.startControl,this.start)},e}(),Qo=function(e){return e.type===Eo.BEZIER_CURVE},ko=function(e){var t=e.styles,n=e.bounds,r=st(t.borderTopLeftRadius,n.width,n.height),i=r[0],o=r[1],s=st(t.borderTopRightRadius,n.width,n.height),a=s[0],l=s[1],c=st(t.borderBottomRightRadius,n.width,n.height),A=c[0],u=c[1],h=st(t.borderBottomLeftRadius,n.width,n.height),d=h[0],p=h[1],f=[];f.push((i+a)/n.width),f.push((d+A)/n.width),f.push((o+p)/n.height),f.push((l+u)/n.height);var g=Math.max.apply(Math,f);g>1&&(i/=g,o/=g,a/=g,l/=g,A/=g,u/=g,d/=g,p/=g);var m=n.width-a,y=n.height-u,w=n.width-A,v=n.height-p,b=t.borderTopWidth,C=t.borderRightWidth,B=t.borderBottomWidth,_=t.borderLeftWidth,E=at(t.paddingTop,e.bounds.width),F=at(t.paddingRight,e.bounds.width),T=at(t.paddingBottom,e.bounds.width),S=at(t.paddingLeft,e.bounds.width);this.topLeftBorderDoubleOuterBox=i>0||o>0?Oo(n.left+_/3,n.top+b/3,i-_/3,o-b/3,Uo.TOP_LEFT):new To(n.left+_/3,n.top+b/3),this.topRightBorderDoubleOuterBox=i>0||o>0?Oo(n.left+m,n.top+b/3,a-C/3,l-b/3,Uo.TOP_RIGHT):new To(n.left+n.width-C/3,n.top+b/3),this.bottomRightBorderDoubleOuterBox=A>0||u>0?Oo(n.left+w,n.top+y,A-C/3,u-B/3,Uo.BOTTOM_RIGHT):new To(n.left+n.width-C/3,n.top+n.height-B/3),this.bottomLeftBorderDoubleOuterBox=d>0||p>0?Oo(n.left+_/3,n.top+v,d-_/3,p-B/3,Uo.BOTTOM_LEFT):new To(n.left+_/3,n.top+n.height-B/3),this.topLeftBorderDoubleInnerBox=i>0||o>0?Oo(n.left+2*_/3,n.top+2*b/3,i-2*_/3,o-2*b/3,Uo.TOP_LEFT):new To(n.left+2*_/3,n.top+2*b/3),this.topRightBorderDoubleInnerBox=i>0||o>0?Oo(n.left+m,n.top+2*b/3,a-2*C/3,l-2*b/3,Uo.TOP_RIGHT):new To(n.left+n.width-2*C/3,n.top+2*b/3),this.bottomRightBorderDoubleInnerBox=A>0||u>0?Oo(n.left+w,n.top+y,A-2*C/3,u-2*B/3,Uo.BOTTOM_RIGHT):new To(n.left+n.width-2*C/3,n.top+n.height-2*B/3),this.bottomLeftBorderDoubleInnerBox=d>0||p>0?Oo(n.left+2*_/3,n.top+v,d-2*_/3,p-2*B/3,Uo.BOTTOM_LEFT):new To(n.left+2*_/3,n.top+n.height-2*B/3),this.topLeftBorderStroke=i>0||o>0?Oo(n.left+_/2,n.top+b/2,i-_/2,o-b/2,Uo.TOP_LEFT):new To(n.left+_/2,n.top+b/2),this.topRightBorderStroke=i>0||o>0?Oo(n.left+m,n.top+b/2,a-C/2,l-b/2,Uo.TOP_RIGHT):new To(n.left+n.width-C/2,n.top+b/2),this.bottomRightBorderStroke=A>0||u>0?Oo(n.left+w,n.top+y,A-C/2,u-B/2,Uo.BOTTOM_RIGHT):new To(n.left+n.width-C/2,n.top+n.height-B/2),this.bottomLeftBorderStroke=d>0||p>0?Oo(n.left+_/2,n.top+v,d-_/2,p-B/2,Uo.BOTTOM_LEFT):new To(n.left+_/2,n.top+n.height-B/2),this.topLeftBorderBox=i>0||o>0?Oo(n.left,n.top,i,o,Uo.TOP_LEFT):new To(n.left,n.top),this.topRightBorderBox=a>0||l>0?Oo(n.left+m,n.top,a,l,Uo.TOP_RIGHT):new To(n.left+n.width,n.top),this.bottomRightBorderBox=A>0||u>0?Oo(n.left+w,n.top+y,A,u,Uo.BOTTOM_RIGHT):new To(n.left+n.width,n.top+n.height),this.bottomLeftBorderBox=d>0||p>0?Oo(n.left,n.top+v,d,p,Uo.BOTTOM_LEFT):new To(n.left,n.top+n.height),this.topLeftPaddingBox=i>0||o>0?Oo(n.left+_,n.top+b,Math.max(0,i-_),Math.max(0,o-b),Uo.TOP_LEFT):new To(n.left+_,n.top+b),this.topRightPaddingBox=a>0||l>0?Oo(n.left+Math.min(m,n.width-C),n.top+b,m>n.width+C?0:Math.max(0,a-C),Math.max(0,l-b),Uo.TOP_RIGHT):new To(n.left+n.width-C,n.top+b),this.bottomRightPaddingBox=A>0||u>0?Oo(n.left+Math.min(w,n.width-_),n.top+Math.min(y,n.height-B),Math.max(0,A-C),Math.max(0,u-B),Uo.BOTTOM_RIGHT):new To(n.left+n.width-C,n.top+n.height-B),this.bottomLeftPaddingBox=d>0||p>0?Oo(n.left+_,n.top+Math.min(v,n.height-B),Math.max(0,d-_),Math.max(0,p-B),Uo.BOTTOM_LEFT):new To(n.left+_,n.top+n.height-B),this.topLeftContentBox=i>0||o>0?Oo(n.left+_+S,n.top+b+E,Math.max(0,i-(_+S)),Math.max(0,o-(b+E)),Uo.TOP_LEFT):new To(n.left+_+S,n.top+b+E),this.topRightContentBox=a>0||l>0?Oo(n.left+Math.min(m,n.width+_+S),n.top+b+E,m>n.width+_+S?0:a-_+S,l-(b+E),Uo.TOP_RIGHT):new To(n.left+n.width-(C+F),n.top+b+E),this.bottomRightContentBox=A>0||u>0?Oo(n.left+Math.min(w,n.width-(_+S)),n.top+Math.min(y,n.height+b+E),Math.max(0,A-(C+F)),u-(B+T),Uo.BOTTOM_RIGHT):new To(n.left+n.width-(C+F),n.top+n.height-(B+T)),this.bottomLeftContentBox=d>0||p>0?Oo(n.left+_+S,n.top+v,Math.max(0,d-(_+S)),p-(B+T),Uo.BOTTOM_LEFT):new To(n.left+_+S,n.top+n.height-(B+T))},Uo=(()=>(function(e){e[e.TOP_LEFT=0]="TOP_LEFT",e[e.TOP_RIGHT=1]="TOP_RIGHT",e[e.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",e[e.BOTTOM_LEFT=3]="BOTTOM_LEFT"}(Uo||(Uo={})),Uo))(),Oo=function(e,t,n,r,i){var o=(Math.sqrt(2)-1)/3*4,s=n*o,a=r*o,l=e+n,c=t+r;switch(i){case Uo.TOP_LEFT:return new xo(new To(e,c),new To(e,c-a),new To(l-s,t),new To(l,t));case Uo.TOP_RIGHT:return new xo(new To(e,t),new To(e+s,t),new To(l,c-a),new To(l,c));case Uo.BOTTOM_RIGHT:return new xo(new To(l,t),new To(l,t+a),new To(e+s,c),new To(e,c));case Uo.BOTTOM_LEFT:default:return new xo(new To(l,c),new To(l-s,c),new To(e,t+a),new To(e,t))}},Io=function(e){return[e.topLeftBorderBox,e.topRightBorderBox,e.bottomRightBorderBox,e.bottomLeftBorderBox]},Lo=function(e){return[e.topLeftPaddingBox,e.topRightPaddingBox,e.bottomRightPaddingBox,e.bottomLeftPaddingBox]},Do=function(e,t,n){this.type=0,this.target=6,this.offsetX=e,this.offsetY=t,this.matrix=n},Mo=function(e,t){this.type=1,this.target=t,this.path=e},Ho=function(e){this.type=2,this.target=6,this.opacity=e},Ro=function(e){this.element=e,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]},Po=function(){function e(e,t){if(this.container=e,this.effects=t.slice(0),this.curves=new ko(e),e.styles.opacity<1&&this.effects.push(new Ho(e.styles.opacity)),null!==e.styles.transform&&this.effects.push(new Do(e.bounds.left+e.styles.transformOrigin[0].number,e.bounds.top+e.styles.transformOrigin[1].number,e.styles.transform)),e.styles.overflowX!==jn.VISIBLE){var n=Io(this.curves),r=Lo(this.curves);Fo(n,r)?this.effects.push(new Mo(n,6)):(this.effects.push(new Mo(n,2)),this.effects.push(new Mo(r,4)))}}return e.prototype.getParentEffects=function(){var e=this.effects.slice(0);if(this.container.styles.overflowX!==jn.VISIBLE){var t=Io(this.curves),n=Lo(this.curves);Fo(t,n)||e.push(new Mo(n,6))}return e},e}(),No=function(e,t,n,r){e.container.elements.forEach(function(i){var o=Fr(i.flags,4),s=Fr(i.flags,2),a=new Po(i,e.getParentEffects());Fr(i.styles.display,2048)&&r.push(a);var l=Fr(i.flags,8)?[]:r;if(o||s){var c=o||i.styles.isPositioned()?n:t,A=new Ro(a);if(i.styles.isPositioned()||i.styles.opacity<1||i.styles.isTransformed()){var u=i.styles.zIndex.order;if(u<0){var h=0;c.negativeZIndex.some(function(e,t){return u>e.element.container.styles.zIndex.order?(h=t,!1):h>0}),c.negativeZIndex.splice(h,0,A)}else if(u>0){var d=0;c.positiveZIndex.some(function(e,t){return u>=e.element.container.styles.zIndex.order?(d=t+1,!1):d>0}),c.positiveZIndex.splice(d,0,A)}else c.zeroOrAutoZIndexOrTransformedOrOpacity.push(A)}else i.styles.isFloating()?c.nonPositionedFloats.push(A):c.nonPositionedInlineLevel.push(A);No(a,A,o?A:n,l)}else i.styles.isInlineLevel()?t.inlineLevel.push(a):t.nonInlineLevel.push(a),No(a,t,n,l);Fr(i.flags,8)&&Ko(i,l)})},Ko=function(e,t){for(var n=e instanceof ri?e.start:1,r=e instanceof ri&&e.reversed,i=0;i<t.length;i++){var o=t[i];o.container instanceof ni&&"number"==typeof o.container.value&&0!==o.container.value&&(n=o.container.value),o.listValue=Ji(n,o.container.styles.listStyleType,!0),n+=r?-1:1}},Vo=function(e,t){switch(t){case 0:return jo(e.topLeftBorderBox,e.topLeftPaddingBox,e.topRightBorderBox,e.topRightPaddingBox);case 1:return jo(e.topRightBorderBox,e.topRightPaddingBox,e.bottomRightBorderBox,e.bottomRightPaddingBox);case 2:return jo(e.bottomRightBorderBox,e.bottomRightPaddingBox,e.bottomLeftBorderBox,e.bottomLeftPaddingBox);case 3:default:return jo(e.bottomLeftBorderBox,e.bottomLeftPaddingBox,e.topLeftBorderBox,e.topLeftPaddingBox)}},Go=function(e,t){var n=[];return Qo(e)?n.push(e.subdivide(.5,!1)):n.push(e),Qo(t)?n.push(t.subdivide(.5,!0)):n.push(t),n},jo=function(e,t,n,r){var i=[];return Qo(e)?i.push(e.subdivide(.5,!1)):i.push(e),Qo(n)?i.push(n.subdivide(.5,!0)):i.push(n),Qo(r)?i.push(r.subdivide(.5,!0).reverse()):i.push(r),Qo(t)?i.push(t.subdivide(.5,!1).reverse()):i.push(t),i},qo=function(e){var t=e.styles;return e.bounds.add(t.borderLeftWidth,t.borderTopWidth,-(t.borderRightWidth+t.borderLeftWidth),-(t.borderTopWidth+t.borderBottomWidth))},zo=function(e){var t=e.styles,n=e.bounds,r=at(t.paddingLeft,n.width),i=at(t.paddingRight,n.width),o=at(t.paddingTop,n.width),s=at(t.paddingBottom,n.width);return n.add(r+t.borderLeftWidth,o+t.borderTopWidth,-(t.borderRightWidth+t.borderLeftWidth+r+i),-(t.borderTopWidth+t.borderBottomWidth+o+s))},Wo=function(e,t,n){var r=function(e,t){return 0===e?t.bounds:2===e?zo(t):qo(t)}(Yo(e.styles.backgroundOrigin,t),e),i=function(e,t){return e===Ft.BORDER_BOX?t.bounds:e===Ft.CONTENT_BOX?zo(t):qo(t)}(Yo(e.styles.backgroundClip,t),e),o=$o(Yo(e.styles.backgroundSize,t),n,r),s=o[0],a=o[1],l=st(Yo(e.styles.backgroundPosition,t),r.width-s,r.height-a);return[Zo(Yo(e.styles.backgroundRepeat,t),l,o,r,i),Math.round(r.left+l[0]),Math.round(r.top+l[1]),s,a]},Xo=function(e){return ze(e)&&e.value===en.AUTO},Jo=function(e){return"number"==typeof e},$o=function(e,t,n){var r=t[0],i=t[1],o=t[2],s=e[0],a=e[1];if(!s)return[0,0];if(tt(s)&&a&&tt(a))return[at(s,n.width),at(a,n.height)];var l=Jo(o);if(ze(s)&&(s.value===en.CONTAIN||s.value===en.COVER))return Jo(o)?n.width/n.height<o!=(s.value===en.COVER)?[n.width,n.width/o]:[n.height*o,n.height]:[n.width,n.height];var c=Jo(r),A=Jo(i),u=c||A;if(Xo(s)&&(!a||Xo(a)))return c&&A?[r,i]:l||u?u&&l?[c?r:i*o,A?i:r/o]:[c?r:n.width,A?i:n.height]:[n.width,n.height];if(l){var h=0,d=0;return tt(s)?h=at(s,n.width):tt(a)&&(d=at(a,n.height)),Xo(s)?h=d*o:a&&!Xo(a)||(d=h/o),[h,d]}var p=null,f=null;if(tt(s)?p=at(s,n.width):a&&tt(a)&&(f=at(a,n.height)),null===p||a&&!Xo(a)||(f=c&&A?p/r*i:n.height),null!==f&&Xo(s)&&(p=c&&A?f/i*r:n.width),null!==p&&null!==f)return[p,f];throw new Error("Unable to calculate background-size for element")},Yo=function(e,t){var n=e[t];return void 0===n?e[0]:n},Zo=function(e,t,n,r,i){var o=t[0],s=t[1],a=n[0],l=n[1];switch(e){case $t.REPEAT_X:return[new To(Math.round(r.left),Math.round(r.top+s)),new To(Math.round(r.left+r.width),Math.round(r.top+s)),new To(Math.round(r.left+r.width),Math.round(l+r.top+s)),new To(Math.round(r.left),Math.round(l+r.top+s))];case $t.REPEAT_Y:return[new To(Math.round(r.left+o),Math.round(r.top)),new To(Math.round(r.left+o+a),Math.round(r.top)),new To(Math.round(r.left+o+a),Math.round(r.height+r.top)),new To(Math.round(r.left+o),Math.round(r.height+r.top))];case $t.NO_REPEAT:return[new To(Math.round(r.left+o),Math.round(r.top+s)),new To(Math.round(r.left+o+a),Math.round(r.top+s)),new To(Math.round(r.left+o+a),Math.round(r.top+s+l)),new To(Math.round(r.left+o),Math.round(r.top+s+l))];default:return[new To(Math.round(i.left),Math.round(i.top)),new To(Math.round(i.left+i.width),Math.round(i.top)),new To(Math.round(i.left+i.width),Math.round(i.height+i.top)),new To(Math.round(i.left),Math.round(i.height+i.top))]}},es="Hidden Text",ts=function(){function e(e){this._data={},this._document=e}return e.prototype.parseMetrics=function(e,t){var n=this._document.createElement("div"),r=this._document.createElement("img"),i=this._document.createElement("span"),o=this._document.body;n.style.visibility="hidden",n.style.fontFamily=e,n.style.fontSize=t,n.style.margin="0",n.style.padding="0",o.appendChild(n),r.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",r.width=1,r.height=1,r.style.margin="0",r.style.padding="0",r.style.verticalAlign="baseline",i.style.fontFamily=e,i.style.fontSize=t,i.style.margin="0",i.style.padding="0",i.appendChild(this._document.createTextNode(es)),n.appendChild(i),n.appendChild(r);var s=r.offsetTop-i.offsetTop+2;n.removeChild(i),n.appendChild(this._document.createTextNode(es)),n.style.lineHeight="normal",r.style.verticalAlign="super";var a=r.offsetTop-n.offsetTop+2;return o.removeChild(n),{baseline:s,middle:a}},e.prototype.getMetrics=function(e,t){var n=e+" "+t;return void 0===this._data[n]&&(this._data[n]=this.parseMetrics(e,t)),this._data[n]},e}(),ns=function(e,t){this.context=e,this.options=t},rs=function(e){function n(t,n){var r=e.call(this,t,n)||this;return r._activeEffects=[],r.canvas=n.canvas?n.canvas:document.createElement("canvas"),r.ctx=r.canvas.getContext("2d"),n.canvas||(r.canvas.width=Math.floor(n.width*n.scale),r.canvas.height=Math.floor(n.height*n.scale),r.canvas.style.width=n.width+"px",r.canvas.style.height=n.height+"px"),r.fontMetrics=new ts(document),r.ctx.scale(r.options.scale,r.options.scale),r.ctx.translate(-n.x,-n.y),r.ctx.textBaseline="bottom",r._activeEffects=[],r.context.logger.debug("Canvas renderer initialized ("+n.width+"x"+n.height+") with scale "+n.scale),r}return t(n,e),n.prototype.applyEffects=function(e,t){for(var n=this;this._activeEffects.length;)this.popEffect();e.filter(function(e){return Fr(e.target,t)}).forEach(function(e){return n.applyEffect(e)})},n.prototype.applyEffect=function(e){this.ctx.save(),function(e){return 2===e.type}(e)&&(this.ctx.globalAlpha=e.opacity),function(e){return 0===e.type}(e)&&(this.ctx.translate(e.offsetX,e.offsetY),this.ctx.transform(e.matrix[0],e.matrix[1],e.matrix[2],e.matrix[3],e.matrix[4],e.matrix[5]),this.ctx.translate(-e.offsetX,-e.offsetY)),function(e){return 1===e.type}(e)&&(this.path(e.path),this.ctx.clip()),this._activeEffects.push(e)},n.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},n.prototype.renderStack=function(e){return r(this,void 0,void 0,function(){return i(this,function(t){switch(t.label){case 0:return e.element.container.styles.isVisible()?[4,this.renderStackContent(e)]:[3,2];case 1:t.sent(),t.label=2;case 2:return[2]}})})},n.prototype.renderNode=function(e){return r(this,void 0,void 0,function(){return i(this,function(t){switch(t.label){case 0:return e.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(e)]:[3,3];case 1:return t.sent(),[4,this.renderNodeContent(e)];case 2:t.sent(),t.label=3;case 3:return[2]}})})},n.prototype.renderTextWithLetterSpacing=function(e,t,n){var r=this;0===t?this.ctx.fillText(e.text,e.bounds.left,e.bounds.top+n):l(e.text).map(function(e){return c(e)}).reduce(function(t,i){return r.ctx.fillText(i,t,e.bounds.top+n),t+r.ctx.measureText(i).width},e.bounds.left)},n.prototype.createFontStyle=function(e){var t=e.fontVariant.filter(function(e){return"normal"===e||"small-caps"===e}).join(""),n=e.fontFamily.join(", "),r=je(e.fontSize)?""+e.fontSize.number+e.fontSize.unit:e.fontSize.number+"px";return[[e.fontStyle,t,e.fontWeight,r,n].join(" "),n,r]},n.prototype.renderTextNode=function(e,t){return r(this,void 0,void 0,function(){var n,r,o,s,a,l,c,A=this;return i(this,function(i){return n=this.createFontStyle(t),r=n[1],o=n[2],this.ctx.font=n[0],this.ctx.textBaseline="alphabetic",s=this.fontMetrics.getMetrics(r,o),a=s.baseline,l=s.middle,c=t.paintOrder,e.textBounds.forEach(function(e){c.forEach(function(n){switch(n){case Or.FILL:A.ctx.fillStyle=gt(t.color),A.renderTextWithLetterSpacing(e,t.letterSpacing,a);var r=t.textShadow;r.length&&e.text.trim().length&&(r.slice(0).reverse().forEach(function(n){A.ctx.shadowColor=gt(n.color),A.ctx.shadowOffsetX=n.offsetX.number*A.options.scale,A.ctx.shadowOffsetY=n.offsetY.number*A.options.scale,A.ctx.shadowBlur=n.blur.number,A.renderTextWithLetterSpacing(e,t.letterSpacing,a)}),A.ctx.shadowColor="",A.ctx.shadowOffsetX=0,A.ctx.shadowOffsetY=0,A.ctx.shadowBlur=0),t.textDecorationLine.length&&(A.ctx.fillStyle=gt(t.textDecorationColor||t.color),t.textDecorationLine.forEach(function(t){switch(t){case 1:A.ctx.fillRect(e.bounds.left,Math.round(e.bounds.top+a),e.bounds.width,1);break;case 2:A.ctx.fillRect(e.bounds.left,Math.round(e.bounds.top),e.bounds.width,1);break;case 3:A.ctx.fillRect(e.bounds.left,Math.ceil(e.bounds.top+l),e.bounds.width,1)}}));break;case Or.STROKE:t.webkitTextStrokeWidth&&e.text.trim().length&&(A.ctx.strokeStyle=gt(t.webkitTextStrokeColor),A.ctx.lineWidth=t.webkitTextStrokeWidth,A.ctx.lineJoin=window.chrome?"miter":"round",A.ctx.strokeText(e.text,e.bounds.left,e.bounds.top+a)),A.ctx.strokeStyle="",A.ctx.lineWidth=0,A.ctx.lineJoin="miter"}})}),[2]})})},n.prototype.renderReplacedElement=function(e,t,n){if(n&&e.intrinsicWidth>0&&e.intrinsicHeight>0){var r=zo(e),i=Lo(t);this.path(i),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(n,0,0,e.intrinsicWidth,e.intrinsicHeight,r.left,r.top,r.width,r.height),this.ctx.restore()}},n.prototype.renderNodeContent=function(e){return r(this,void 0,void 0,function(){var t,r,o,a,l,c,A,u,h,d,p,f,g,m,y,w;return i(this,function(i){switch(i.label){case 0:this.applyEffects(e.effects,4),r=e.curves,o=(t=e.container).styles,a=0,l=t.textNodes,i.label=1;case 1:return a<l.length?[4,this.renderTextNode(l[a],o)]:[3,4];case 2:i.sent(),i.label=3;case 3:return a++,[3,1];case 4:if(!(t instanceof Zr))return[3,8];i.label=5;case 5:return i.trys.push([5,7,,8]),[4,this.context.cache.match(t.src)];case 6:return g=i.sent(),this.renderReplacedElement(t,r,g),[3,8];case 7:return i.sent(),this.context.logger.error("Error loading image "+t.src),[3,8];case 8:if(t instanceof ei&&this.renderReplacedElement(t,r,t.canvas),!(t instanceof ti))return[3,12];i.label=9;case 9:return i.trys.push([9,11,,12]),[4,this.context.cache.match(t.svg)];case 10:return g=i.sent(),this.renderReplacedElement(t,r,g),[3,12];case 11:return i.sent(),this.context.logger.error("Error loading svg "+t.svg.substring(0,255)),[3,12];case 12:return t instanceof hi&&t.tree?[4,new n(this.context,{scale:this.options.scale,backgroundColor:t.backgroundColor,x:0,y:0,width:t.width,height:t.height}).render(t.tree)]:[3,14];case 13:c=i.sent(),t.width&&t.height&&this.ctx.drawImage(c,0,0,t.width,t.height,t.bounds.left,t.bounds.top,t.bounds.width,t.bounds.height),i.label=14;case 14:if(t instanceof ci&&(A=Math.min(t.bounds.width,t.bounds.height),t.type===si?t.checked&&(this.ctx.save(),this.path([new To(t.bounds.left+.39363*A,t.bounds.top+.79*A),new To(t.bounds.left+.16*A,t.bounds.top+.5549*A),new To(t.bounds.left+.27347*A,t.bounds.top+.44071*A),new To(t.bounds.left+.39694*A,t.bounds.top+.5649*A),new To(t.bounds.left+.72983*A,t.bounds.top+.23*A),new To(t.bounds.left+.84*A,t.bounds.top+.34085*A),new To(t.bounds.left+.39363*A,t.bounds.top+.79*A)]),this.ctx.fillStyle=gt(li),this.ctx.fill(),this.ctx.restore()):t.type===ai&&t.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(t.bounds.left+A/2,t.bounds.top+A/2,A/4,0,2*Math.PI,!0),this.ctx.fillStyle=gt(li),this.ctx.fill(),this.ctx.restore())),is(t)&&t.value.length){switch(u=this.createFontStyle(o),h=this.fontMetrics.getMetrics(y=u[0],u[1]).baseline,this.ctx.font=y,this.ctx.fillStyle=gt(o.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=ss(t.styles.textAlign),w=zo(t),d=0,t.styles.textAlign){case er.CENTER:d+=w.width/2;break;case er.RIGHT:d+=w.width}p=w.add(d,0,0,-w.height/2+1),this.ctx.save(),this.path([new To(w.left,w.top),new To(w.left+w.width,w.top),new To(w.left+w.width,w.top+w.height),new To(w.left,w.top+w.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new qr(t.value,p),o.letterSpacing,h),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!Fr(t.styles.display,2048))return[3,20];if(null===t.styles.listStyleImage)return[3,19];if((f=t.styles.listStyleImage).type!==Vt.URL)return[3,18];g=void 0,m=f.url,i.label=15;case 15:return i.trys.push([15,17,,18]),[4,this.context.cache.match(m)];case 16:return g=i.sent(),this.ctx.drawImage(g,t.bounds.left-(g.width+10),t.bounds.top),[3,18];case 17:return i.sent(),this.context.logger.error("Error loading list-style-image "+m),[3,18];case 18:return[3,20];case 19:e.listValue&&t.styles.listStyleType!==Hn.NONE&&(y=this.createFontStyle(o)[0],this.ctx.font=y,this.ctx.fillStyle=gt(o.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",w=new s(t.bounds.left,t.bounds.top+at(t.styles.paddingTop,t.bounds.width),t.bounds.width,In(o.lineHeight,o.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new qr(e.listValue,w),o.letterSpacing,In(o.lineHeight,o.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),i.label=20;case 20:return[2]}})})},n.prototype.renderStackContent=function(e){return r(this,void 0,void 0,function(){var t,n,r,o,s,a,l,c,A,u,h,d,p,f;return i(this,function(i){switch(i.label){case 0:return[4,this.renderNodeBackgroundAndBorders(e.element)];case 1:i.sent(),t=0,n=e.negativeZIndex,i.label=2;case 2:return t<n.length?[4,this.renderStack(n[t])]:[3,5];case 3:i.sent(),i.label=4;case 4:return t++,[3,2];case 5:return[4,this.renderNodeContent(e.element)];case 6:i.sent(),r=0,o=e.nonInlineLevel,i.label=7;case 7:return r<o.length?[4,this.renderNode(o[r])]:[3,10];case 8:i.sent(),i.label=9;case 9:return r++,[3,7];case 10:s=0,a=e.nonPositionedFloats,i.label=11;case 11:return s<a.length?[4,this.renderStack(a[s])]:[3,14];case 12:i.sent(),i.label=13;case 13:return s++,[3,11];case 14:l=0,c=e.nonPositionedInlineLevel,i.label=15;case 15:return l<c.length?[4,this.renderStack(c[l])]:[3,18];case 16:i.sent(),i.label=17;case 17:return l++,[3,15];case 18:A=0,u=e.inlineLevel,i.label=19;case 19:return A<u.length?[4,this.renderNode(u[A])]:[3,22];case 20:i.sent(),i.label=21;case 21:return A++,[3,19];case 22:h=0,d=e.zeroOrAutoZIndexOrTransformedOrOpacity,i.label=23;case 23:return h<d.length?[4,this.renderStack(d[h])]:[3,26];case 24:i.sent(),i.label=25;case 25:return h++,[3,23];case 26:p=0,f=e.positiveZIndex,i.label=27;case 27:return p<f.length?[4,this.renderStack(f[p])]:[3,30];case 28:i.sent(),i.label=29;case 29:return p++,[3,27];case 30:return[2]}})})},n.prototype.mask=function(e){this.ctx.beginPath(),this.ctx.moveTo(0,0),this.ctx.lineTo(this.canvas.width,0),this.ctx.lineTo(this.canvas.width,this.canvas.height),this.ctx.lineTo(0,this.canvas.height),this.ctx.lineTo(0,0),this.formatPath(e.slice(0).reverse()),this.ctx.closePath()},n.prototype.path=function(e){this.ctx.beginPath(),this.formatPath(e),this.ctx.closePath()},n.prototype.formatPath=function(e){var t=this;e.forEach(function(e,n){var r=Qo(e)?e.start:e;0===n?t.ctx.moveTo(r.x,r.y):t.ctx.lineTo(r.x,r.y),Qo(e)&&t.ctx.bezierCurveTo(e.startControl.x,e.startControl.y,e.endControl.x,e.endControl.y,e.end.x,e.end.y)})},n.prototype.renderRepeat=function(e,t,n,r){this.path(e),this.ctx.fillStyle=t,this.ctx.translate(n,r),this.ctx.fill(),this.ctx.translate(-n,-r)},n.prototype.resizeImage=function(e,t,n){var r;if(e.width===t&&e.height===n)return e;var i=(null!==(r=this.canvas.ownerDocument)&&void 0!==r?r:document).createElement("canvas");return i.width=Math.max(1,t),i.height=Math.max(1,n),i.getContext("2d").drawImage(e,0,0,e.width,e.height,0,0,t,n),i},n.prototype.renderBackgroundImage=function(e){return r(this,void 0,void 0,function(){var t,n,r,o,s;return i(this,function(a){switch(a.label){case 0:t=e.styles.backgroundImage.length-1,n=function(n){var o,s,a,l,c,A,u,h,d,p,f,g,m,y,w,v,b,C,B,_,E,F,T,S,x,Q,k,U,O,I,L;return i(this,function(i){switch(i.label){case 0:if(n.type!==Vt.URL)return[3,5];o=void 0,s=n.url,i.label=1;case 1:return i.trys.push([1,3,,4]),[4,r.context.cache.match(s)];case 2:return o=i.sent(),[3,4];case 3:return i.sent(),r.context.logger.error("Error loading background-image "+s),[3,4];case 4:return o&&(a=Wo(e,t,[o.width,o.height,o.width/o.height]),v=a[0],F=a[1],T=a[2],y=r.ctx.createPattern(r.resizeImage(o,B=a[3],_=a[4]),"repeat"),r.renderRepeat(v,y,F,T)),[3,6];case 5:n.type===Vt.LINEAR_GRADIENT?(l=Wo(e,t,[null,null,null]),v=l[0],F=l[1],T=l[2],c=function(e,t,n){var r="number"==typeof e?e:function(e,t,n){var r=t/2,i=n/2,o=at(e[0],t)-r,s=i-at(e[1],n);return(Math.atan2(s,o)+2*Math.PI)%(2*Math.PI)}(e,t,n),i=Math.abs(t*Math.sin(r))+Math.abs(n*Math.cos(r)),o=t/2,s=n/2,a=i/2,l=Math.sin(r-Math.PI/2)*a,c=Math.cos(r-Math.PI/2)*a;return[i,o-c,o+c,s-l,s+l]}(n.angle,B=l[3],_=l[4]),A=c[0],u=c[1],h=c[2],d=c[3],p=c[4],(f=document.createElement("canvas")).width=B,f.height=_,g=f.getContext("2d"),m=g.createLinearGradient(u,d,h,p),Qt(n.stops,A).forEach(function(e){return m.addColorStop(e.stop,gt(e.color))}),g.fillStyle=m,g.fillRect(0,0,B,_),B>0&&_>0&&(y=r.ctx.createPattern(f,"repeat"),r.renderRepeat(v,y,F,T))):n.type===Vt.RADIAL_GRADIENT&&(w=Wo(e,t,[null,null,null]),v=w[0],b=w[1],C=w[2],_=w[4],F=at((E=0===n.position.length?[it]:n.position)[0],B=w[3]),T=at(E[E.length-1],_),S=function(e,t,n,r,i){var o=0,s=0;switch(e.size){case jt.CLOSEST_SIDE:e.shape===Gt.CIRCLE?o=s=Math.min(Math.abs(t),Math.abs(t-r),Math.abs(n),Math.abs(n-i)):e.shape===Gt.ELLIPSE&&(o=Math.min(Math.abs(t),Math.abs(t-r)),s=Math.min(Math.abs(n),Math.abs(n-i)));break;case jt.CLOSEST_CORNER:if(e.shape===Gt.CIRCLE)o=s=Math.min(kt(t,n),kt(t,n-i),kt(t-r,n),kt(t-r,n-i));else if(e.shape===Gt.ELLIPSE){var a=Math.min(Math.abs(n),Math.abs(n-i))/Math.min(Math.abs(t),Math.abs(t-r)),l=Ut(r,i,t,n,!0);s=a*(o=kt(l[0]-t,(l[1]-n)/a))}break;case jt.FARTHEST_SIDE:e.shape===Gt.CIRCLE?o=s=Math.max(Math.abs(t),Math.abs(t-r),Math.abs(n),Math.abs(n-i)):e.shape===Gt.ELLIPSE&&(o=Math.max(Math.abs(t),Math.abs(t-r)),s=Math.max(Math.abs(n),Math.abs(n-i)));break;case jt.FARTHEST_CORNER:if(e.shape===Gt.CIRCLE)o=s=Math.max(kt(t,n),kt(t,n-i),kt(t-r,n),kt(t-r,n-i));else if(e.shape===Gt.ELLIPSE){a=Math.max(Math.abs(n),Math.abs(n-i))/Math.max(Math.abs(t),Math.abs(t-r));var c=Ut(r,i,t,n,!1);s=a*(o=kt(c[0]-t,(c[1]-n)/a))}}return Array.isArray(e.size)&&(o=at(e.size[0],r),s=2===e.size.length?at(e.size[1],i):o),[o,s]}(n,F,T,B,_),Q=S[1],(x=S[0])>0&&x>0&&(k=r.ctx.createRadialGradient(b+F,C+T,0,b+F,C+T,x),Qt(n.stops,2*x).forEach(function(e){return k.addColorStop(e.stop,gt(e.color))}),r.path(v),r.ctx.fillStyle=k,x!==Q?(U=e.bounds.left+.5*e.bounds.width,O=e.bounds.top+.5*e.bounds.height,L=1/(I=Q/x),r.ctx.save(),r.ctx.translate(U,O),r.ctx.transform(1,0,0,I,0,0),r.ctx.translate(-U,-O),r.ctx.fillRect(b,L*(C-O)+O,B,_*L),r.ctx.restore()):r.ctx.fill())),i.label=6;case 6:return t--,[2]}})},r=this,o=0,s=e.styles.backgroundImage.slice(0).reverse(),a.label=1;case 1:return o<s.length?[5,n(s[o])]:[3,4];case 2:a.sent(),a.label=3;case 3:return o++,[3,1];case 4:return[2]}})})},n.prototype.renderSolidBorder=function(e,t,n){return r(this,void 0,void 0,function(){return i(this,function(r){return this.path(Vo(n,t)),this.ctx.fillStyle=gt(e),this.ctx.fill(),[2]})})},n.prototype.renderDoubleBorder=function(e,t,n,o){return r(this,void 0,void 0,function(){var r,s;return i(this,function(i){switch(i.label){case 0:return t<3?[4,this.renderSolidBorder(e,n,o)]:[3,2];case 1:return i.sent(),[2];case 2:return r=function(e,t){switch(t){case 0:return jo(e.topLeftBorderBox,e.topLeftBorderDoubleOuterBox,e.topRightBorderBox,e.topRightBorderDoubleOuterBox);case 1:return jo(e.topRightBorderBox,e.topRightBorderDoubleOuterBox,e.bottomRightBorderBox,e.bottomRightBorderDoubleOuterBox);case 2:return jo(e.bottomRightBorderBox,e.bottomRightBorderDoubleOuterBox,e.bottomLeftBorderBox,e.bottomLeftBorderDoubleOuterBox);case 3:default:return jo(e.bottomLeftBorderBox,e.bottomLeftBorderDoubleOuterBox,e.topLeftBorderBox,e.topLeftBorderDoubleOuterBox)}}(o,n),this.path(r),this.ctx.fillStyle=gt(e),this.ctx.fill(),s=function(e,t){switch(t){case 0:return jo(e.topLeftBorderDoubleInnerBox,e.topLeftPaddingBox,e.topRightBorderDoubleInnerBox,e.topRightPaddingBox);case 1:return jo(e.topRightBorderDoubleInnerBox,e.topRightPaddingBox,e.bottomRightBorderDoubleInnerBox,e.bottomRightPaddingBox);case 2:return jo(e.bottomRightBorderDoubleInnerBox,e.bottomRightPaddingBox,e.bottomLeftBorderDoubleInnerBox,e.bottomLeftPaddingBox);case 3:default:return jo(e.bottomLeftBorderDoubleInnerBox,e.bottomLeftPaddingBox,e.topLeftBorderDoubleInnerBox,e.topLeftPaddingBox)}}(o,n),this.path(s),this.ctx.fill(),[2]}})})},n.prototype.renderNodeBackgroundAndBorders=function(e){return r(this,void 0,void 0,function(){var t,n,r,o,s,a,l,c,A=this;return i(this,function(i){switch(i.label){case 0:return this.applyEffects(e.effects,2),n=!ft((t=e.container.styles).backgroundColor)||t.backgroundImage.length,r=[{style:t.borderTopStyle,color:t.borderTopColor,width:t.borderTopWidth},{style:t.borderRightStyle,color:t.borderRightColor,width:t.borderRightWidth},{style:t.borderBottomStyle,color:t.borderBottomColor,width:t.borderBottomWidth},{style:t.borderLeftStyle,color:t.borderLeftColor,width:t.borderLeftWidth}],o=os(Yo(t.backgroundClip,0),e.curves),n||t.boxShadow.length?(this.ctx.save(),this.path(o),this.ctx.clip(),ft(t.backgroundColor)||(this.ctx.fillStyle=gt(t.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(e.container)]):[3,2];case 1:i.sent(),this.ctx.restore(),t.boxShadow.slice(0).reverse().forEach(function(t){A.ctx.save();var n,r,i,o,s=Io(e.curves),a=t.inset?0:1e4,l=(n=(t.inset?1:-1)*t.spread.number-a,r=(t.inset?1:-1)*t.spread.number,i=t.spread.number*(t.inset?-2:2),o=t.spread.number*(t.inset?-2:2),s.map(function(e,t){switch(t){case 0:return e.add(n,r);case 1:return e.add(n+i,r);case 2:return e.add(n+i,r+o);case 3:return e.add(n,r+o)}return e}));t.inset?(A.path(s),A.ctx.clip(),A.mask(l)):(A.mask(s),A.ctx.clip(),A.path(l)),A.ctx.shadowOffsetX=t.offsetX.number+a,A.ctx.shadowOffsetY=t.offsetY.number,A.ctx.shadowColor=gt(t.color),A.ctx.shadowBlur=t.blur.number,A.ctx.fillStyle=t.inset?gt(t.color):"rgba(0,0,0,1)",A.ctx.fill(),A.ctx.restore()}),i.label=2;case 2:s=0,a=0,l=r,i.label=3;case 3:return a<l.length?(c=l[a]).style!==pn.NONE&&!ft(c.color)&&c.width>0?c.style!==pn.DASHED?[3,5]:[4,this.renderDashedDottedBorder(c.color,c.width,s,e.curves,pn.DASHED)]:[3,11]:[3,13];case 4:return i.sent(),[3,11];case 5:return c.style!==pn.DOTTED?[3,7]:[4,this.renderDashedDottedBorder(c.color,c.width,s,e.curves,pn.DOTTED)];case 6:return i.sent(),[3,11];case 7:return c.style!==pn.DOUBLE?[3,9]:[4,this.renderDoubleBorder(c.color,c.width,s,e.curves)];case 8:return i.sent(),[3,11];case 9:return[4,this.renderSolidBorder(c.color,s,e.curves)];case 10:i.sent(),i.label=11;case 11:s++,i.label=12;case 12:return a++,[3,3];case 13:return[2]}})})},n.prototype.renderDashedDottedBorder=function(e,t,n,o,s){return r(this,void 0,void 0,function(){var r,a,l,c,A,u,h,d,p,f,g,m,y,w,v,b;return i(this,function(i){return this.ctx.save(),r=function(e,t){switch(t){case 0:return Go(e.topLeftBorderStroke,e.topRightBorderStroke);case 1:return Go(e.topRightBorderStroke,e.bottomRightBorderStroke);case 2:return Go(e.bottomRightBorderStroke,e.bottomLeftBorderStroke);case 3:default:return Go(e.bottomLeftBorderStroke,e.topLeftBorderStroke)}}(o,n),a=Vo(o,n),s===pn.DASHED&&(this.path(a),this.ctx.clip()),Qo(a[0])?(l=a[0].start.x,c=a[0].start.y):(l=a[0].x,c=a[0].y),Qo(a[1])?(A=a[1].end.x,u=a[1].end.y):(A=a[1].x,u=a[1].y),h=0===n||2===n?Math.abs(l-A):Math.abs(c-u),this.ctx.beginPath(),this.formatPath(s===pn.DOTTED?r:a.slice(0,2)),d=t<3?3*t:2*t,p=t<3?2*t:t,s===pn.DOTTED&&(d=t,p=t),f=!0,h<=2*d?f=!1:h<=2*d+p?(d*=g=h/(2*d+p),p*=g):(m=Math.floor((h+p)/(d+p)),y=(h-m*d)/(m-1),p=(w=(h-(m+1)*d)/m)<=0||Math.abs(p-y)<Math.abs(p-w)?y:w),f&&this.ctx.setLineDash(s===pn.DOTTED?[0,d+p]:[d,p]),s===pn.DOTTED?(this.ctx.lineCap="round",this.ctx.lineWidth=t):this.ctx.lineWidth=2*t+1.1,this.ctx.strokeStyle=gt(e),this.ctx.stroke(),this.ctx.setLineDash([]),s===pn.DASHED&&(Qo(a[0])&&(v=a[3],b=a[0],this.ctx.beginPath(),this.formatPath([new To(v.end.x,v.end.y),new To(b.start.x,b.start.y)]),this.ctx.stroke()),Qo(a[1])&&(v=a[1],b=a[2],this.ctx.beginPath(),this.formatPath([new To(v.end.x,v.end.y),new To(b.start.x,b.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]})})},n.prototype.render=function(e){return r(this,void 0,void 0,function(){return i(this,function(t){switch(t.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=gt(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),n=new Po(e,[]),r=new Ro(n),No(n,r,r,i=[]),Ko(n.container,i),[4,this.renderStack(r)];case 1:return t.sent(),this.applyEffects([],2),[2,this.canvas]}var n,r,i})})},n}(ns),is=function(e){return e instanceof ui||e instanceof Ai||e instanceof ci&&e.type!==ai&&e.type!==si},os=function(e,t){switch(e){case Ft.BORDER_BOX:return Io(t);case Ft.CONTENT_BOX:return function(e){return[e.topLeftContentBox,e.topRightContentBox,e.bottomRightContentBox,e.bottomLeftContentBox]}(t);case Ft.PADDING_BOX:default:return Lo(t)}},ss=function(e){switch(e){case er.CENTER:return"center";case er.RIGHT:return"right";case er.LEFT:default:return"left"}},as=function(e){function n(t,n){var r=e.call(this,t,n)||this;return r.canvas=n.canvas?n.canvas:document.createElement("canvas"),r.ctx=r.canvas.getContext("2d"),r.options=n,r.canvas.width=Math.floor(n.width*n.scale),r.canvas.height=Math.floor(n.height*n.scale),r.canvas.style.width=n.width+"px",r.canvas.style.height=n.height+"px",r.ctx.scale(r.options.scale,r.options.scale),r.ctx.translate(-n.x,-n.y),r.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized ("+n.width+"x"+n.height+" at "+n.x+","+n.y+") with scale "+n.scale),r}return t(n,e),n.prototype.render=function(e){return r(this,void 0,void 0,function(){var t,n;return i(this,function(r){switch(r.label){case 0:return t=Vr(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,e),[4,ls(t)];case 1:return n=r.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=gt(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(n,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}})})},n}(ns),ls=function(e){return new Promise(function(t,n){var r=new Image;r.onload=function(){t(r)},r.onerror=n,r.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent((new XMLSerializer).serializeToString(e))})},cs=function(){function e(e){var t=e.enabled;this.id=e.id,this.enabled=t,this.start=Date.now()}return e.prototype.debug=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.enabled&&("undefined"!=typeof window&&window.console&&"function"==typeof console.debug?console.debug.apply(console,o([this.id,this.getTime()+"ms"],e)):this.info.apply(this,e))},e.prototype.getTime=function(){return Date.now()-this.start},e.prototype.info=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.enabled&&"undefined"!=typeof window&&window.console&&"function"==typeof console.info&&console.info.apply(console,o([this.id,this.getTime()+"ms"],e))},e.prototype.warn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.enabled&&("undefined"!=typeof window&&window.console&&"function"==typeof console.warn?console.warn.apply(console,o([this.id,this.getTime()+"ms"],e)):this.info.apply(this,e))},e.prototype.error=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.enabled&&("undefined"!=typeof window&&window.console&&"function"==typeof console.error?console.error.apply(console,o([this.id,this.getTime()+"ms"],e)):this.info.apply(this,e))},e.instances={},e}(),As=function(){function e(t,n){var r;this.windowBounds=n,this.instanceName="#"+e.instanceCount++,this.logger=new cs({id:this.instanceName,enabled:t.logging}),this.cache=null!==(r=t.cache)&&void 0!==r?r:new go(this,t)}return e.instanceCount=1,e}();"undefined"!=typeof window&&fo.setContext(window);var us=function(e,t,n){var r=t.ownerDocument,i=r.documentElement?Bt(e,getComputedStyle(r.documentElement).backgroundColor):_t.TRANSPARENT,o=r.body?Bt(e,getComputedStyle(r.body).backgroundColor):_t.TRANSPARENT,s="string"==typeof n?Bt(e,n):null===n?_t.TRANSPARENT:4294967295;return t===r.documentElement?ft(i)?ft(o)?s:o:i:s};return function(e,t){return void 0===t&&(t={}),function(e,t){return r(void 0,void 0,void 0,function(){var r,o,l,c,A,u,h,d,p,f,g,m,y,w,v,b,C,B,_,E,F,T,S,x,Q,k,U,O,I,L,D,M,H,R,P,N,K;return i(this,function(i){switch(i.label){case 0:if(!e||"object"!=typeof e)return[2,Promise.reject("Invalid element provided as first argument")];if(!(r=e.ownerDocument))throw new Error("Element is not attached to a Document");if(!(o=r.defaultView))throw new Error("Document is not attached to a Window");return l={allowTaint:null!==(T=t.allowTaint)&&void 0!==T&&T,imageTimeout:null!==(S=t.imageTimeout)&&void 0!==S?S:15e3,proxy:t.proxy,useCORS:null!==(x=t.useCORS)&&void 0!==x&&x},c=n({logging:null===(Q=t.logging)||void 0===Q||Q,cache:t.cache},l),A={windowWidth:null!==(k=t.windowWidth)&&void 0!==k?k:o.innerWidth,windowHeight:null!==(U=t.windowHeight)&&void 0!==U?U:o.innerHeight,scrollX:null!==(O=t.scrollX)&&void 0!==O?O:o.pageXOffset,scrollY:null!==(I=t.scrollY)&&void 0!==I?I:o.pageYOffset},u=new s(A.scrollX,A.scrollY,A.windowWidth,A.windowHeight),h=new As(c,u),d=null!==(L=t.foreignObjectRendering)&&void 0!==L&&L,p={onclone:t.onclone,ignoreElements:t.ignoreElements,inlineImages:d,copyStyles:d},h.logger.debug("Starting document clone with size "+u.width+"x"+u.height+" scrolled to "+-u.left+","+-u.top),f=new Yi(h,e,p),(g=f.clonedReferenceElement)?[4,f.toIFrame(r,u)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return m=i.sent(),y=Ti(g)||"HTML"===g.tagName?function(e){var t=e.body,n=e.documentElement;if(!t||!n)throw new Error("Unable to get document size");var r=Math.max(Math.max(t.scrollWidth,n.scrollWidth),Math.max(t.offsetWidth,n.offsetWidth),Math.max(t.clientWidth,n.clientWidth)),i=Math.max(Math.max(t.scrollHeight,n.scrollHeight),Math.max(t.offsetHeight,n.offsetHeight),Math.max(t.clientHeight,n.clientHeight));return new s(0,0,r,i)}(g.ownerDocument):a(h,g),w=y.width,v=y.height,b=y.left,C=y.top,B=us(h,g,t.backgroundColor),_={canvas:t.canvas,backgroundColor:B,scale:null!==(M=null!==(D=t.scale)&&void 0!==D?D:o.devicePixelRatio)&&void 0!==M?M:1,x:(null!==(H=t.x)&&void 0!==H?H:0)+b,y:(null!==(R=t.y)&&void 0!==R?R:0)+C,width:null!==(P=t.width)&&void 0!==P?P:Math.ceil(w),height:null!==(N=t.height)&&void 0!==N?N:Math.ceil(v)},d?(h.logger.debug("Document cloned, using foreign object rendering"),[4,new as(h,_).render(g)]):[3,3];case 2:return E=i.sent(),[3,5];case 3:return h.logger.debug("Document cloned, element located at "+b+","+C+" with size "+w+"x"+v+" using computed rendering"),h.logger.debug("Starting DOM parsing"),F=gi(h,g),B===F.styles.backgroundColor&&(F.styles.backgroundColor=_t.TRANSPARENT),h.logger.debug("Starting renderer for element at "+_.x+","+_.y+" with size "+_.width+"x"+_.height),[4,new rs(h,_).render(F)];case 4:E=i.sent(),i.label=5;case 5:return(null===(K=t.removeContainer)||void 0===K||K)&&(Yi.destroy(m)||h.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),h.logger.debug("Finished rendering"),[2,E]}})})}(e,t)}}()},815:function(e,t,n){var r;e=n.nmd(e),(function(){var i,o="Expected a function",s="__lodash_hash_undefined__",a="__lodash_placeholder__",l=32,c=128,A=1/0,u=9007199254740991,h=NaN,d=4294967295,p=[["ary",c],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",l],["partialRight",64],["rearg",256]],f="[object Arguments]",g="[object Array]",m="[object Boolean]",y="[object Date]",w="[object Error]",v="[object Function]",b="[object GeneratorFunction]",C="[object Map]",B="[object Number]",_="[object Object]",E="[object Promise]",F="[object RegExp]",T="[object Set]",S="[object String]",x="[object Symbol]",Q="[object WeakMap]",k="[object ArrayBuffer]",U="[object DataView]",O="[object Float32Array]",I="[object Float64Array]",L="[object Int8Array]",D="[object Int16Array]",M="[object Int32Array]",H="[object Uint8Array]",R="[object Uint8ClampedArray]",P="[object Uint16Array]",N="[object Uint32Array]",K=/\b__p \+= '';/g,V=/\b(__p \+=) '' \+/g,G=/(__e\(.*?\)|\b__t\)) \+\n'';/g,j=/&(?:amp|lt|gt|quot|#39);/g,q=/[&<>"']/g,z=RegExp(j.source),W=RegExp(q.source),X=/<%-([\s\S]+?)%>/g,J=/<%([\s\S]+?)%>/g,$=/<%=([\s\S]+?)%>/g,Y=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Z=/^\w*$/,ee=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,te=/[\\^$.*+?()[\]{}|]/g,ne=RegExp(te.source),re=/^\s+/,ie=/\s/,oe=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,se=/\{\n\/\* \[wrapped with (.+)\] \*/,ae=/,? & /,le=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ce=/[()=,{}\[\]\/\s]/,Ae=/\\(\\)?/g,ue=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,he=/\w*$/,de=/^[-+]0x[0-9a-f]+$/i,pe=/^0b[01]+$/i,fe=/^\[object .+?Constructor\]$/,ge=/^0o[0-7]+$/i,me=/^(?:0|[1-9]\d*)$/,ye=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,we=/($^)/,ve=/['\n\r\u2028\u2029\\]/g,be="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Ce="a-z\\xdf-\\xf6\\xf8-\\xff",Be="A-Z\\xc0-\\xd6\\xd8-\\xde",_e="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Ee="["+_e+"]",Fe="["+be+"]",Te="\\d+",Se="["+Ce+"]",xe="[^\\ud800-\\udfff"+_e+Te+"\\u2700-\\u27bf"+Ce+Be+"]",Qe="\\ud83c[\\udffb-\\udfff]",ke="[^\\ud800-\\udfff]",Ue="(?:\\ud83c[\\udde6-\\uddff]){2}",Oe="[\\ud800-\\udbff][\\udc00-\\udfff]",Ie="["+Be+"]",Le="(?:"+Se+"|"+xe+")",De="(?:"+Ie+"|"+xe+")",Me="(?:['\u2019](?:d|ll|m|re|s|t|ve))?",He="(?:['\u2019](?:D|LL|M|RE|S|T|VE))?",Re="(?:"+Fe+"|"+Qe+")?",Pe="[\\ufe0e\\ufe0f]?",Ne=Pe+Re+"(?:\\u200d(?:"+[ke,Ue,Oe].join("|")+")"+Pe+Re+")*",Ke="(?:"+["[\\u2700-\\u27bf]",Ue,Oe].join("|")+")"+Ne,Ve="(?:"+[ke+Fe+"?",Fe,Ue,Oe,"[\\ud800-\\udfff]"].join("|")+")",Ge=RegExp("['\u2019]","g"),je=RegExp(Fe,"g"),qe=RegExp(Qe+"(?="+Qe+")|"+Ve+Ne,"g"),ze=RegExp([Ie+"?"+Se+"+"+Me+"(?="+[Ee,Ie,"$"].join("|")+")",De+"+"+He+"(?="+[Ee,Ie+Le,"$"].join("|")+")",Ie+"?"+Le+"+"+Me,Ie+"+"+He,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Te,Ke].join("|"),"g"),We=RegExp("[\\u200d\\ud800-\\udfff"+be+"\\ufe0e\\ufe0f]"),Xe=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Je=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],$e=-1,Ye={};Ye[O]=Ye[I]=Ye[L]=Ye[D]=Ye[M]=Ye[H]=Ye[R]=Ye[P]=Ye[N]=!0,Ye[f]=Ye[g]=Ye[k]=Ye[m]=Ye[U]=Ye[y]=Ye[w]=Ye[v]=Ye[C]=Ye[B]=Ye[_]=Ye[F]=Ye[T]=Ye[S]=Ye[Q]=!1;var Ze={};Ze[f]=Ze[g]=Ze[k]=Ze[U]=Ze[m]=Ze[y]=Ze[O]=Ze[I]=Ze[L]=Ze[D]=Ze[M]=Ze[C]=Ze[B]=Ze[_]=Ze[F]=Ze[T]=Ze[S]=Ze[x]=Ze[H]=Ze[R]=Ze[P]=Ze[N]=!0,Ze[w]=Ze[v]=Ze[Q]=!1;var et={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},tt=parseFloat,nt=parseInt,rt="object"==typeof global&&global&&global.Object===Object&&global,it="object"==typeof self&&self&&self.Object===Object&&self,ot=rt||it||Function("return this")(),st=t&&!t.nodeType&&t,at=st&&e&&!e.nodeType&&e,lt=at&&at.exports===st,ct=lt&&rt.process,At=function(){try{return at&&at.require&&at.require("util").types||ct&&ct.binding&&ct.binding("util")}catch(e){}}(),ut=At&&At.isArrayBuffer,ht=At&&At.isDate,dt=At&&At.isMap,pt=At&&At.isRegExp,ft=At&&At.isSet,gt=At&&At.isTypedArray;function mt(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function yt(e,t,n,r){for(var i=-1,o=null==e?0:e.length;++i<o;){var s=e[i];t(r,s,n(s),e)}return r}function wt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function vt(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function bt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function Ct(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var s=e[n];t(s,n,e)&&(o[i++]=s)}return o}function Bt(e,t){return!(null==e||!e.length)&&Ot(e,t,0)>-1}function _t(e,t,n){for(var r=-1,i=null==e?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}function Et(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}function Ft(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}function Tt(e,t,n,r){var i=-1,o=null==e?0:e.length;for(r&&o&&(n=e[++i]);++i<o;)n=t(n,e[i],i,e);return n}function St(e,t,n,r){var i=null==e?0:e.length;for(r&&i&&(n=e[--i]);i--;)n=t(n,e[i],i,e);return n}function xt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var Qt=Mt("length");function kt(e,t,n){var r;return n(e,function(e,n,i){if(t(e,n,i))return r=n,!1}),r}function Ut(e,t,n,r){for(var i=e.length,o=n+(r?1:-1);r?o--:++o<i;)if(t(e[o],o,e))return o;return-1}function Ot(e,t,n){return t==t?function(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}(e,t,n):Ut(e,Lt,n)}function It(e,t,n,r){for(var i=n-1,o=e.length;++i<o;)if(r(e[i],t))return i;return-1}function Lt(e){return e!=e}function Dt(e,t){var n=null==e?0:e.length;return n?Pt(e,t)/n:h}function Mt(e){return function(t){return null==t?i:t[e]}}function Ht(e){return function(t){return null==e?i:e[t]}}function Rt(e,t,n,r,i){return i(e,function(e,i,o){n=r?(r=!1,e):t(n,e,i,o)}),n}function Pt(e,t){for(var n,r=-1,o=e.length;++r<o;){var s=t(e[r]);s!==i&&(n=n===i?s:n+s)}return n}function Nt(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function Kt(e){return e?e.slice(0,an(e)+1).replace(re,""):e}function Vt(e){return function(t){return e(t)}}function Gt(e,t){return Et(t,function(t){return e[t]})}function jt(e,t){return e.has(t)}function qt(e,t){for(var n=-1,r=e.length;++n<r&&Ot(t,e[n],0)>-1;);return n}function zt(e,t){for(var n=e.length;n--&&Ot(t,e[n],0)>-1;);return n}function Wt(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}var Xt=Ht({"\xc0":"A","\xc1":"A","\xc2":"A","\xc3":"A","\xc4":"A","\xc5":"A","\xe0":"a","\xe1":"a","\xe2":"a","\xe3":"a","\xe4":"a","\xe5":"a","\xc7":"C","\xe7":"c","\xd0":"D","\xf0":"d","\xc8":"E","\xc9":"E","\xca":"E","\xcb":"E","\xe8":"e","\xe9":"e","\xea":"e","\xeb":"e","\xcc":"I","\xcd":"I","\xce":"I","\xcf":"I","\xec":"i","\xed":"i","\xee":"i","\xef":"i","\xd1":"N","\xf1":"n","\xd2":"O","\xd3":"O","\xd4":"O","\xd5":"O","\xd6":"O","\xd8":"O","\xf2":"o","\xf3":"o","\xf4":"o","\xf5":"o","\xf6":"o","\xf8":"o","\xd9":"U","\xda":"U","\xdb":"U","\xdc":"U","\xf9":"u","\xfa":"u","\xfb":"u","\xfc":"u","\xdd":"Y","\xfd":"y","\xff":"y","\xc6":"Ae","\xe6":"ae","\xde":"Th","\xfe":"th","\xdf":"ss","\u0100":"A","\u0102":"A","\u0104":"A","\u0101":"a","\u0103":"a","\u0105":"a","\u0106":"C","\u0108":"C","\u010a":"C","\u010c":"C","\u0107":"c","\u0109":"c","\u010b":"c","\u010d":"c","\u010e":"D","\u0110":"D","\u010f":"d","\u0111":"d","\u0112":"E","\u0114":"E","\u0116":"E","\u0118":"E","\u011a":"E","\u0113":"e","\u0115":"e","\u0117":"e","\u0119":"e","\u011b":"e","\u011c":"G","\u011e":"G","\u0120":"G","\u0122":"G","\u011d":"g","\u011f":"g","\u0121":"g","\u0123":"g","\u0124":"H","\u0126":"H","\u0125":"h","\u0127":"h","\u0128":"I","\u012a":"I","\u012c":"I","\u012e":"I","\u0130":"I","\u0129":"i","\u012b":"i","\u012d":"i","\u012f":"i","\u0131":"i","\u0134":"J","\u0135":"j","\u0136":"K","\u0137":"k","\u0138":"k","\u0139":"L","\u013b":"L","\u013d":"L","\u013f":"L","\u0141":"L","\u013a":"l","\u013c":"l","\u013e":"l","\u0140":"l","\u0142":"l","\u0143":"N","\u0145":"N","\u0147":"N","\u014a":"N","\u0144":"n","\u0146":"n","\u0148":"n","\u014b":"n","\u014c":"O","\u014e":"O","\u0150":"O","\u014d":"o","\u014f":"o","\u0151":"o","\u0154":"R","\u0156":"R","\u0158":"R","\u0155":"r","\u0157":"r","\u0159":"r","\u015a":"S","\u015c":"S","\u015e":"S","\u0160":"S","\u015b":"s","\u015d":"s","\u015f":"s","\u0161":"s","\u0162":"T","\u0164":"T","\u0166":"T","\u0163":"t","\u0165":"t","\u0167":"t","\u0168":"U","\u016a":"U","\u016c":"U","\u016e":"U","\u0170":"U","\u0172":"U","\u0169":"u","\u016b":"u","\u016d":"u","\u016f":"u","\u0171":"u","\u0173":"u","\u0174":"W","\u0175":"w","\u0176":"Y","\u0177":"y","\u0178":"Y","\u0179":"Z","\u017b":"Z","\u017d":"Z","\u017a":"z","\u017c":"z","\u017e":"z","\u0132":"IJ","\u0133":"ij","\u0152":"Oe","\u0153":"oe","\u0149":"'n","\u017f":"s"}),Jt=Ht({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function $t(e){return"\\"+et[e]}function Yt(e){return We.test(e)}function Zt(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function en(e,t){return function(n){return e(t(n))}}function tn(e,t){for(var n=-1,r=e.length,i=0,o=[];++n<r;){var s=e[n];s!==t&&s!==a||(e[n]=a,o[i++]=n)}return o}function nn(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}function rn(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=[e,e]}),n}function on(e){return Yt(e)?function(e){for(var t=qe.lastIndex=0;qe.test(e);)++t;return t}(e):Qt(e)}function sn(e){return Yt(e)?function(e){return e.match(qe)||[]}(e):function(e){return e.split("")}(e)}function an(e){for(var t=e.length;t--&&ie.test(e.charAt(t)););return t}var ln=Ht({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"}),cn=function e(t){var n,r=(t=null==t?ot:cn.defaults(ot.Object(),t,cn.pick(ot,Je))).Array,ie=t.Date,be=t.Error,Ce=t.Function,Be=t.Math,_e=t.Object,Ee=t.RegExp,Fe=t.String,Te=t.TypeError,Se=r.prototype,xe=_e.prototype,Qe=t["__core-js_shared__"],ke=Ce.prototype.toString,Ue=xe.hasOwnProperty,Oe=0,Ie=(n=/[^.]+$/.exec(Qe&&Qe.keys&&Qe.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",Le=xe.toString,De=ke.call(_e),Me=ot._,He=Ee("^"+ke.call(Ue).replace(te,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Re=lt?t.Buffer:i,Pe=t.Symbol,Ne=t.Uint8Array,Ke=Re?Re.allocUnsafe:i,Ve=en(_e.getPrototypeOf,_e),qe=_e.create,We=xe.propertyIsEnumerable,et=Se.splice,rt=Pe?Pe.isConcatSpreadable:i,it=Pe?Pe.iterator:i,st=Pe?Pe.toStringTag:i,at=function(){try{var e=lo(_e,"defineProperty");return e({},"",{}),e}catch(t){}}(),ct=t.clearTimeout!==ot.clearTimeout&&t.clearTimeout,At=ie&&ie.now!==ot.Date.now&&ie.now,Qt=t.setTimeout!==ot.setTimeout&&t.setTimeout,Ht=Be.ceil,An=Be.floor,un=_e.getOwnPropertySymbols,hn=Re?Re.isBuffer:i,dn=t.isFinite,pn=Se.join,fn=en(_e.keys,_e),gn=Be.max,mn=Be.min,yn=ie.now,wn=t.parseInt,vn=Be.random,bn=Se.reverse,Cn=lo(t,"DataView"),Bn=lo(t,"Map"),_n=lo(t,"Promise"),En=lo(t,"Set"),Fn=lo(t,"WeakMap"),Tn=lo(_e,"create"),Sn=Fn&&new Fn,xn={},Qn=Ho(Cn),kn=Ho(Bn),Un=Ho(_n),On=Ho(En),In=Ho(Fn),Ln=Pe?Pe.prototype:i,Dn=Ln?Ln.valueOf:i,Mn=Ln?Ln.toString:i;function Hn(e){if(ta(e)&&!Gs(e)&&!(e instanceof Kn)){if(e instanceof Nn)return e;if(Ue.call(e,"__wrapped__"))return Ro(e)}return new Nn(e)}var Rn=function(){function e(){}return function(t){if(!ea(t))return{};if(qe)return qe(t);e.prototype=t;var n=new e;return e.prototype=i,n}}();function Pn(){}function Nn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=i}function Kn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=d,this.__views__=[]}function Vn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Gn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function jn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function qn(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new jn;++t<n;)this.add(e[t])}function zn(e){var t=this.__data__=new Gn(e);this.size=t.size}function Wn(e,t){var n=Gs(e),r=!n&&Vs(e),i=!n&&!r&&Ws(e),o=!n&&!r&&!i&&ca(e),s=n||r||i||o,a=s?Nt(e.length,Fe):[],l=a.length;for(var c in e)!t&&!Ue.call(e,c)||s&&("length"==c||i&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||go(c,l))||a.push(c);return a}function Xn(e){var t=e.length;return t?e[jr(0,t-1)]:i}function Jn(e,t){return Oo(Fi(e),or(t,0,e.length))}function $n(e){return Oo(Fi(e))}function Yn(e,t,n){(n!==i&&!Ps(e[t],n)||n===i&&!(t in e))&&rr(e,t,n)}function Zn(e,t,n){var r=e[t];Ue.call(e,t)&&Ps(r,n)&&(n!==i||t in e)||rr(e,t,n)}function er(e,t){for(var n=e.length;n--;)if(Ps(e[n][0],t))return n;return-1}function tr(e,t,n,r){return Ar(e,function(e,i,o){t(r,e,n(e),o)}),r}function nr(e,t){return e&&Ti(t,ka(t),e)}function rr(e,t,n){"__proto__"==t&&at?at(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function ir(e,t){for(var n=-1,o=t.length,s=r(o),a=null==e;++n<o;)s[n]=a?i:Fa(e,t[n]);return s}function or(e,t,n){return e==e&&(n!==i&&(e=e<=n?e:n),t!==i&&(e=e>=t?e:t)),e}function sr(e,t,n,r,o,s){var a,l=1&t,c=2&t,A=4&t;if(n&&(a=o?n(e,r,o,s):n(e)),a!==i)return a;if(!ea(e))return e;var u=Gs(e);if(u){if(a=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&Ue.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(e),!l)return Fi(e,a)}else{var h=uo(e),d=h==v||h==b;if(Ws(e))return vi(e,l);if(h==_||h==f||d&&!o){if(a=c||d?{}:po(e),!l)return c?function(e,t){return Ti(e,Ao(e),t)}(e,function(e,t){return e&&Ti(t,Ua(t),e)}(a,e)):function(e,t){return Ti(e,co(e),t)}(e,nr(a,e))}else{if(!Ze[h])return o?e:{};a=function(e,t,n){var r=e.constructor;switch(t){case k:return bi(e);case m:case y:return new r(+e);case U:return function(e,t){var n=t?bi(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case O:case I:case L:case D:case M:case H:case R:case P:case N:return Ci(e,n);case C:return new r;case B:case S:return new r(e);case F:return function(e){var t=new e.constructor(e.source,he.exec(e));return t.lastIndex=e.lastIndex,t}(e);case T:return new r;case x:return Dn?_e(Dn.call(e)):{}}}(e,h,l)}}s||(s=new zn);var p=s.get(e);if(p)return p;s.set(e,a),sa(e)?e.forEach(function(r){a.add(sr(r,t,n,r,e,s))}):na(e)&&e.forEach(function(r,i){a.set(i,sr(r,t,n,i,e,s))});var g=u?i:(A?c?to:eo:c?Ua:ka)(e);return wt(g||e,function(r,i){g&&(r=e[i=r]),Zn(a,i,sr(r,t,n,i,e,s))}),a}function ar(e,t,n){var r=n.length;if(null==e)return!r;for(e=_e(e);r--;){var o=n[r],s=e[o];if(s===i&&!(o in e)||!(0,t[o])(s))return!1}return!0}function lr(e,t,n){if("function"!=typeof e)throw new Te(o);return xo(function(){e.apply(i,n)},t)}function cr(e,t,n,r){var i=-1,o=Bt,s=!0,a=e.length,l=[],c=t.length;if(!a)return l;n&&(t=Et(t,Vt(n))),r?(o=_t,s=!1):t.length>=200&&(o=jt,s=!1,t=new qn(t));e:for(;++i<a;){var A=e[i],u=null==n?A:n(A);if(A=r||0!==A?A:0,s&&u==u){for(var h=c;h--;)if(t[h]===u)continue e;l.push(A)}else o(t,u,r)||l.push(A)}return l}Hn.templateSettings={escape:X,evaluate:J,interpolate:$,variable:"",imports:{_:Hn}},(Hn.prototype=Pn.prototype).constructor=Hn,(Nn.prototype=Rn(Pn.prototype)).constructor=Nn,(Kn.prototype=Rn(Pn.prototype)).constructor=Kn,Vn.prototype.clear=function(){this.__data__=Tn?Tn(null):{},this.size=0},Vn.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Vn.prototype.get=function(e){var t=this.__data__;if(Tn){var n=t[e];return n===s?i:n}return Ue.call(t,e)?t[e]:i},Vn.prototype.has=function(e){var t=this.__data__;return Tn?t[e]!==i:Ue.call(t,e)},Vn.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Tn&&t===i?s:t,this},Gn.prototype.clear=function(){this.__data__=[],this.size=0},Gn.prototype.delete=function(e){var t=this.__data__,n=er(t,e);return!(n<0||(n==t.length-1?t.pop():et.call(t,n,1),--this.size,0))},Gn.prototype.get=function(e){var t=this.__data__,n=er(t,e);return n<0?i:t[n][1]},Gn.prototype.has=function(e){return er(this.__data__,e)>-1},Gn.prototype.set=function(e,t){var n=this.__data__,r=er(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},jn.prototype.clear=function(){this.size=0,this.__data__={hash:new Vn,map:new(Bn||Gn),string:new Vn}},jn.prototype.delete=function(e){var t=so(this,e).delete(e);return this.size-=t?1:0,t},jn.prototype.get=function(e){return so(this,e).get(e)},jn.prototype.has=function(e){return so(this,e).has(e)},jn.prototype.set=function(e,t){var n=so(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},qn.prototype.add=qn.prototype.push=function(e){return this.__data__.set(e,s),this},qn.prototype.has=function(e){return this.__data__.has(e)},zn.prototype.clear=function(){this.__data__=new Gn,this.size=0},zn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},zn.prototype.get=function(e){return this.__data__.get(e)},zn.prototype.has=function(e){return this.__data__.has(e)},zn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Gn){var r=n.__data__;if(!Bn||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new jn(r)}return n.set(e,t),this.size=n.size,this};var Ar=Qi(yr),ur=Qi(wr,!0);function hr(e,t){var n=!0;return Ar(e,function(e,r,i){return n=!!t(e,r,i)}),n}function dr(e,t,n){for(var r=-1,o=e.length;++r<o;){var s=e[r],a=t(s);if(null!=a&&(l===i?a==a&&!la(a):n(a,l)))var l=a,c=s}return c}function pr(e,t){var n=[];return Ar(e,function(e,r,i){t(e,r,i)&&n.push(e)}),n}function fr(e,t,n,r,i){var o=-1,s=e.length;for(n||(n=fo),i||(i=[]);++o<s;){var a=e[o];t>0&&n(a)?t>1?fr(a,t-1,n,r,i):Ft(i,a):r||(i[i.length]=a)}return i}var gr=ki(),mr=ki(!0);function yr(e,t){return e&&gr(e,t,ka)}function wr(e,t){return e&&mr(e,t,ka)}function vr(e,t){return Ct(t,function(t){return $s(e[t])})}function br(e,t){for(var n=0,r=(t=gi(t,e)).length;null!=e&&n<r;)e=e[Mo(t[n++])];return n&&n==r?e:i}function Cr(e,t,n){var r=t(e);return Gs(e)?r:Ft(r,n(e))}function Br(e){return null==e?e===i?"[object Undefined]":"[object Null]":st&&st in _e(e)?function(e){var t=Ue.call(e,st),n=e[st];try{e[st]=i;var r=!0}catch(s){}var o=Le.call(e);return r&&(t?e[st]=n:delete e[st]),o}(e):function(e){return Le.call(e)}(e)}function _r(e,t){return e>t}function Er(e,t){return null!=e&&Ue.call(e,t)}function Fr(e,t){return null!=e&&t in _e(e)}function Tr(e,t,n){for(var o=n?_t:Bt,s=e[0].length,a=e.length,l=a,c=r(a),A=1/0,u=[];l--;){var h=e[l];l&&t&&(h=Et(h,Vt(t))),A=mn(h.length,A),c[l]=!n&&(t||s>=120&&h.length>=120)?new qn(l&&h):i}h=e[0];var d=-1,p=c[0];e:for(;++d<s&&u.length<A;){var f=h[d],g=t?t(f):f;if(f=n||0!==f?f:0,!(p?jt(p,g):o(u,g,n))){for(l=a;--l;){var m=c[l];if(!(m?jt(m,g):o(e[l],g,n)))continue e}p&&p.push(g),u.push(f)}}return u}function Sr(e,t,n){var r=null==(e=Eo(e,t=gi(t,e)))?e:e[Mo(Jo(t))];return null==r?i:mt(r,e,n)}function xr(e){return ta(e)&&Br(e)==f}function Qr(e,t,n,r,o){return e===t||(null==e||null==t||!ta(e)&&!ta(t)?e!=e&&t!=t:function(e,t,n,r,o,s){var a=Gs(e),l=Gs(t),c=a?g:uo(e),A=l?g:uo(t),u=(c=c==f?_:c)==_,h=(A=A==f?_:A)==_,d=c==A;if(d&&Ws(e)){if(!Ws(t))return!1;a=!0,u=!1}if(d&&!u)return s||(s=new zn),a||ca(e)?Yi(e,t,n,r,o,s):function(e,t,n,r,i,o,s){switch(n){case U:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case k:return!(e.byteLength!=t.byteLength||!o(new Ne(e),new Ne(t)));case m:case y:case B:return Ps(+e,+t);case w:return e.name==t.name&&e.message==t.message;case F:case S:return e==t+"";case C:var a=Zt;case T:if(a||(a=nn),e.size!=t.size&&!(1&r))return!1;var l=s.get(e);if(l)return l==t;r|=2,s.set(e,t);var c=Yi(a(e),a(t),r,i,o,s);return s.delete(e),c;case x:if(Dn)return Dn.call(e)==Dn.call(t)}return!1}(e,t,c,n,r,o,s);if(!(1&n)){var p=u&&Ue.call(e,"__wrapped__"),v=h&&Ue.call(t,"__wrapped__");if(p||v){var b=p?e.value():e,E=v?t.value():t;return s||(s=new zn),o(b,E,n,r,s)}}return!!d&&(s||(s=new zn),function(e,t,n,r,o,s){var a=1&n,l=eo(e),c=l.length;if(c!=eo(t).length&&!a)return!1;for(var A=c;A--;){var u=l[A];if(!(a?u in t:Ue.call(t,u)))return!1}var h=s.get(e),d=s.get(t);if(h&&d)return h==t&&d==e;var p=!0;s.set(e,t),s.set(t,e);for(var f=a;++A<c;){var g=e[u=l[A]],m=t[u];if(r)var y=a?r(m,g,u,t,e,s):r(g,m,u,e,t,s);if(!(y===i?g===m||o(g,m,n,r,s):y)){p=!1;break}f||(f="constructor"==u)}if(p&&!f){var w=e.constructor,v=t.constructor;w==v||!("constructor"in e)||!("constructor"in t)||"function"==typeof w&&w instanceof w&&"function"==typeof v&&v instanceof v||(p=!1)}return s.delete(e),s.delete(t),p}(e,t,n,r,o,s))}(e,t,n,r,Qr,o))}function kr(e,t,n,r){var o=n.length,s=o,a=!r;if(null==e)return!s;for(e=_e(e);o--;){var l=n[o];if(a&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++o<s;){var c=(l=n[o])[0],A=e[c],u=l[1];if(a&&l[2]){if(A===i&&!(c in e))return!1}else{var h=new zn;if(r)var d=r(A,u,c,e,t,h);if(!(d===i?Qr(u,A,3,r,h):d))return!1}}return!0}function Ur(e){return!(!ea(e)||(t=e,Ie&&Ie in t))&&($s(e)?He:fe).test(Ho(e));var t}function Or(e){return"function"==typeof e?e:null==e?rl:"object"==typeof e?Gs(e)?Hr(e[0],e[1]):Mr(e):hl(e)}function Ir(e){if(!bo(e))return fn(e);var t=[];for(var n in _e(e))Ue.call(e,n)&&"constructor"!=n&&t.push(n);return t}function Lr(e,t){return e<t}function Dr(e,t){var n=-1,i=qs(e)?r(e.length):[];return Ar(e,function(e,r,o){i[++n]=t(e,r,o)}),i}function Mr(e){var t=ao(e);return 1==t.length&&t[0][2]?Bo(t[0][0],t[0][1]):function(n){return n===e||kr(n,e,t)}}function Hr(e,t){return yo(e)&&Co(t)?Bo(Mo(e),t):function(n){var r=Fa(n,e);return r===i&&r===t?Ta(n,e):Qr(t,r,3)}}function Rr(e,t,n,r,o){e!==t&&gr(t,function(s,a){if(o||(o=new zn),ea(s))!function(e,t,n,r,o,s,a){var l=To(e,n),c=To(t,n),A=a.get(c);if(A)Yn(e,n,A);else{var u=s?s(l,c,n+"",e,t,a):i,h=u===i;if(h){var d=Gs(c),p=!d&&Ws(c),f=!d&&!p&&ca(c);u=c,d||p||f?Gs(l)?u=l:zs(l)?u=Fi(l):p?(h=!1,u=vi(c,!0)):f?(h=!1,u=Ci(c,!0)):u=[]:ia(c)||Vs(c)?(u=l,Vs(l)?u=ma(l):ea(l)&&!$s(l)||(u=po(c))):h=!1}h&&(a.set(c,u),o(u,c,r,s,a),a.delete(c)),Yn(e,n,u)}}(e,t,a,n,Rr,r,o);else{var l=r?r(To(e,a),s,a+"",e,t,o):i;l===i&&(l=s),Yn(e,a,l)}},Ua)}function Pr(e,t){var n=e.length;if(n)return go(t+=t<0?n:0,n)?e[t]:i}function Nr(e,t,n){t=t.length?Et(t,function(e){return Gs(e)?function(t){return br(t,1===e.length?e[0]:e)}:e}):[rl];var r=-1;return t=Et(t,Vt(oo())),function(e,t){var r=e.length;for(e.sort(function(e,t){return function(e,t,n){for(var r=-1,i=e.criteria,o=t.criteria,s=i.length,a=n.length;++r<s;){var l=Bi(i[r],o[r]);if(l)return r>=a?l:l*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)});r--;)e[r]=e[r].value;return e}(Dr(e,function(e,n,i){return{criteria:Et(t,function(t){return t(e)}),index:++r,value:e}}))}function Kr(e,t,n){for(var r=-1,i=t.length,o={};++r<i;){var s=t[r],a=br(e,s);n(a,s)&&Jr(o,gi(s,e),a)}return o}function Vr(e,t,n,r){var i=r?It:Ot,o=-1,s=t.length,a=e;for(e===t&&(t=Fi(t)),n&&(a=Et(e,Vt(n)));++o<s;)for(var l=0,c=t[o],A=n?n(c):c;(l=i(a,A,l,r))>-1;)a!==e&&et.call(a,l,1),et.call(e,l,1);return e}function Gr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var i=t[n];if(n==r||i!==o){var o=i;go(i)?et.call(e,i,1):li(e,i)}}return e}function jr(e,t){return e+An(vn()*(t-e+1))}function qr(e,t){var n="";if(!e||t<1||t>u)return n;do{t%2&&(n+=e),(t=An(t/2))&&(e+=e)}while(t);return n}function zr(e,t){return Qo(_o(e,t,rl),e+"")}function Wr(e){return Xn(Pa(e))}function Xr(e,t){var n=Pa(e);return Oo(n,or(t,0,n.length))}function Jr(e,t,n,r){if(!ea(e))return e;for(var o=-1,s=(t=gi(t,e)).length,a=s-1,l=e;null!=l&&++o<s;){var c=Mo(t[o]),A=n;if("__proto__"===c||"constructor"===c||"prototype"===c)return e;if(o!=a){var u=l[c];(A=r?r(u,c,l):i)===i&&(A=ea(u)?u:go(t[o+1])?[]:{})}Zn(l,c,A),l=l[c]}return e}var $r=Sn?function(e,t){return Sn.set(e,t),e}:rl,Yr=at?function(e,t){return at(e,"toString",{configurable:!0,enumerable:!1,value:el(t),writable:!0})}:rl;function Zr(e){return Oo(Pa(e))}function ei(e,t,n){var i=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var s=r(o);++i<o;)s[i]=e[i+t];return s}function ti(e,t){var n;return Ar(e,function(e,r,i){return!(n=t(e,r,i))}),!!n}function ni(e,t,n){var r=0,i=null==e?r:e.length;if("number"==typeof t&&t==t&&i<=2147483647){for(;r<i;){var o=r+i>>>1,s=e[o];null!==s&&!la(s)&&(n?s<=t:s<t)?r=o+1:i=o}return i}return ri(e,t,rl,n)}function ri(e,t,n,r){var o=0,s=null==e?0:e.length;if(0===s)return 0;for(var a=(t=n(t))!=t,l=null===t,c=la(t),A=t===i;o<s;){var u=An((o+s)/2),h=n(e[u]),d=h!==i,p=null===h,f=h==h,g=la(h);if(a)var m=r||f;else m=A?f&&(r||d):l?f&&d&&(r||!p):c?f&&d&&!p&&(r||!g):!p&&!g&&(r?h<=t:h<t);m?o=u+1:s=u}return mn(s,4294967294)}function ii(e,t){for(var n=-1,r=e.length,i=0,o=[];++n<r;){var s=e[n],a=t?t(s):s;if(!n||!Ps(a,l)){var l=a;o[i++]=0===s?0:s}}return o}function oi(e){return"number"==typeof e?e:la(e)?h:+e}function si(e){if("string"==typeof e)return e;if(Gs(e))return Et(e,si)+"";if(la(e))return Mn?Mn.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function ai(e,t,n){var r=-1,i=Bt,o=e.length,s=!0,a=[],l=a;if(n)s=!1,i=_t;else if(o>=200){var c=t?null:qi(e);if(c)return nn(c);s=!1,i=jt,l=new qn}else l=t?[]:a;e:for(;++r<o;){var A=e[r],u=t?t(A):A;if(A=n||0!==A?A:0,s&&u==u){for(var h=l.length;h--;)if(l[h]===u)continue e;t&&l.push(u),a.push(A)}else i(l,u,n)||(l!==a&&l.push(u),a.push(A))}return a}function li(e,t){return null==(e=Eo(e,t=gi(t,e)))||delete e[Mo(Jo(t))]}function ci(e,t,n,r){return Jr(e,t,n(br(e,t)),r)}function Ai(e,t,n,r){for(var i=e.length,o=r?i:-1;(r?o--:++o<i)&&t(e[o],o,e););return n?ei(e,r?0:o,r?o+1:i):ei(e,r?o+1:0,r?i:o)}function ui(e,t){var n=e;return n instanceof Kn&&(n=n.value()),Tt(t,function(e,t){return t.func.apply(t.thisArg,Ft([e],t.args))},n)}function hi(e,t,n){var i=e.length;if(i<2)return i?ai(e[0]):[];for(var o=-1,s=r(i);++o<i;)for(var a=e[o],l=-1;++l<i;)l!=o&&(s[o]=cr(s[o]||a,e[l],t,n));return ai(fr(s,1),t,n)}function di(e,t,n){for(var r=-1,o=e.length,s=t.length,a={};++r<o;)n(a,e[r],r<s?t[r]:i);return a}function pi(e){return zs(e)?e:[]}function fi(e){return"function"==typeof e?e:rl}function gi(e,t){return Gs(e)?e:yo(e,t)?[e]:Do(ya(e))}var mi=zr;function yi(e,t,n){var r=e.length;return n=n===i?r:n,!t&&n>=r?e:ei(e,t,n)}var wi=ct||function(e){return ot.clearTimeout(e)};function vi(e,t){if(t)return e.slice();var n=e.length,r=Ke?Ke(n):new e.constructor(n);return e.copy(r),r}function bi(e){var t=new e.constructor(e.byteLength);return new Ne(t).set(new Ne(e)),t}function Ci(e,t){var n=t?bi(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Bi(e,t){if(e!==t){var n=e!==i,r=null===e,o=e==e,s=la(e),a=t!==i,l=null===t,c=t==t,A=la(t);if(!l&&!A&&!s&&e>t||s&&a&&c&&!l&&!A||r&&a&&c||!n&&c||!o)return 1;if(!r&&!s&&!A&&e<t||A&&n&&o&&!r&&!s||l&&n&&o||!a&&o||!c)return-1}return 0}function _i(e,t,n,i){for(var o=-1,s=e.length,a=n.length,l=-1,c=t.length,A=gn(s-a,0),u=r(c+A),h=!i;++l<c;)u[l]=t[l];for(;++o<a;)(h||o<s)&&(u[n[o]]=e[o]);for(;A--;)u[l++]=e[o++];return u}function Ei(e,t,n,i){for(var o=-1,s=e.length,a=-1,l=n.length,c=-1,A=t.length,u=gn(s-l,0),h=r(u+A),d=!i;++o<u;)h[o]=e[o];for(var p=o;++c<A;)h[p+c]=t[c];for(;++a<l;)(d||o<s)&&(h[p+n[a]]=e[o++]);return h}function Fi(e,t){var n=-1,i=e.length;for(t||(t=r(i));++n<i;)t[n]=e[n];return t}function Ti(e,t,n,r){var o=!n;n||(n={});for(var s=-1,a=t.length;++s<a;){var l=t[s],c=r?r(n[l],e[l],l,n,e):i;c===i&&(c=e[l]),o?rr(n,l,c):Zn(n,l,c)}return n}function Si(e,t){return function(n,r){var i=Gs(n)?yt:tr,o=t?t():{};return i(n,e,oo(r,2),o)}}function xi(e){return zr(function(t,n){var r=-1,o=n.length,s=o>1?n[o-1]:i,a=o>2?n[2]:i;for(s=e.length>3&&"function"==typeof s?(o--,s):i,a&&mo(n[0],n[1],a)&&(s=o<3?i:s,o=1),t=_e(t);++r<o;){var l=n[r];l&&e(t,l,r,s)}return t})}function Qi(e,t){return function(n,r){if(null==n)return n;if(!qs(n))return e(n,r);for(var i=n.length,o=t?i:-1,s=_e(n);(t?o--:++o<i)&&!1!==r(s[o],o,s););return n}}function ki(e){return function(t,n,r){for(var i=-1,o=_e(t),s=r(t),a=s.length;a--;){var l=s[e?a:++i];if(!1===n(o[l],l,o))break}return t}}function Ui(e){return function(t){var n=Yt(t=ya(t))?sn(t):i,r=n?n[0]:t.charAt(0),o=n?yi(n,1).join(""):t.slice(1);return r[e]()+o}}function Oi(e){return function(t){return Tt($a(Va(t).replace(Ge,"")),e,"")}}function Ii(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=Rn(e.prototype),r=e.apply(n,t);return ea(r)?r:n}}function Li(e){return function(t,n,r){var o=_e(t);if(!qs(t)){var s=oo(n,3);t=ka(t),n=function(e){return s(o[e],e,o)}}var a=e(t,n,r);return a>-1?o[s?t[a]:a]:i}}function Di(e){return Zi(function(t){var n=t.length,r=n,s=Nn.prototype.thru;for(e&&t.reverse();r--;){var a=t[r];if("function"!=typeof a)throw new Te(o);if(s&&!l&&"wrapper"==ro(a))var l=new Nn([],!0)}for(r=l?r:n;++r<n;){var c=ro(a=t[r]),A="wrapper"==c?no(a):i;l=A&&wo(A[0])&&424==A[1]&&!A[4].length&&1==A[9]?l[ro(A[0])].apply(l,A[3]):1==a.length&&wo(a)?l[c]():l.thru(a)}return function(){var e=arguments,r=e[0];if(l&&1==e.length&&Gs(r))return l.plant(r).value();for(var i=0,o=n?t[i].apply(this,e):r;++i<n;)o=t[i].call(this,o);return o}})}function Mi(e,t,n,o,s,a,l,A,u,h){var d=t&c,p=1&t,f=2&t,g=24&t,m=512&t,y=f?i:Ii(e);return function i(){for(var c=arguments.length,w=r(c),v=c;v--;)w[v]=arguments[v];if(g)var b=io(i),C=Wt(w,b);if(o&&(w=_i(w,o,s,g)),a&&(w=Ei(w,a,l,g)),c-=C,g&&c<h){var B=tn(w,b);return Gi(e,t,Mi,i.placeholder,n,w,B,A,u,h-c)}var _=p?n:this,E=f?_[e]:e;return c=w.length,A?w=Fo(w,A):m&&c>1&&w.reverse(),d&&u<c&&(w.length=u),this&&this!==ot&&this instanceof i&&(E=y||Ii(E)),E.apply(_,w)}}function Hi(e,t){return function(n,r){return function(e,t,n,r){return yr(e,function(e,i,o){t(r,n(e),i,o)}),r}(n,e,t(r),{})}}function Ri(e,t){return function(n,r){var o;if(n===i&&r===i)return t;if(n!==i&&(o=n),r!==i){if(o===i)return r;"string"==typeof n||"string"==typeof r?(n=si(n),r=si(r)):(n=oi(n),r=oi(r)),o=e(n,r)}return o}}function Pi(e){return Zi(function(t){return t=Et(t,Vt(oo())),zr(function(n){var r=this;return e(t,function(e){return mt(e,r,n)})})})}function Ni(e,t){var n=(t=t===i?" ":si(t)).length;if(n<2)return n?qr(t,e):t;var r=qr(t,Ht(e/on(t)));return Yt(t)?yi(sn(r),0,e).join(""):r.slice(0,e)}function Ki(e){return function(t,n,o){return o&&"number"!=typeof o&&mo(t,n,o)&&(n=o=i),t=da(t),n===i?(n=t,t=0):n=da(n),function(e,t,n,i){for(var o=-1,s=gn(Ht((t-e)/(n||1)),0),a=r(s);s--;)a[i?s:++o]=e,e+=n;return a}(t,n,o=o===i?t<n?1:-1:da(o),e)}}function Vi(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=ga(t),n=ga(n)),e(t,n)}}function Gi(e,t,n,r,o,s,a,c,A,u){var h=8&t;t|=h?l:64,4&(t&=~(h?64:l))||(t&=-4);var d=[e,t,o,h?s:i,h?a:i,h?i:s,h?i:a,c,A,u],p=n.apply(i,d);return wo(e)&&So(p,d),p.placeholder=r,ko(p,e,t)}function ji(e){var t=Be[e];return function(e,n){if(e=ga(e),(n=null==n?0:mn(pa(n),292))&&dn(e)){var r=(ya(e)+"e").split("e");return+((r=(ya(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}var qi=En&&1/nn(new En([,-0]))[1]==A?function(e){return new En(e)}:ll;function zi(e){return function(t){var n=uo(t);return n==C?Zt(t):n==T?rn(t):function(e,t){return Et(t,function(t){return[t,e[t]]})}(t,e(t))}}function Wi(e,t,n,s,A,u,h,d){var p=2&t;if(!p&&"function"!=typeof e)throw new Te(o);var f=s?s.length:0;if(f||(t&=-97,s=A=i),h=h===i?h:gn(pa(h),0),d=d===i?d:pa(d),f-=A?A.length:0,64&t){var g=s,m=A;s=A=i}var y=p?i:no(e),w=[e,t,n,s,A,g,m,u,h,d];if(y&&function(e,t){var n=e[1],r=t[1],i=n|r;if(!(i<131||r==c&&8==n||r==c&&256==n&&e[7].length<=t[8]||384==r&&t[7].length<=t[8]&&8==n))return e;1&r&&(e[2]=t[2],i|=1&n?0:4);var o=t[3];if(o){var s=e[3];e[3]=s?_i(s,o,t[4]):o,e[4]=s?tn(e[3],a):t[4]}(o=t[5])&&(e[5]=(s=e[5])?Ei(s,o,t[6]):o,e[6]=s?tn(e[5],a):t[6]),(o=t[7])&&(e[7]=o),r&c&&(e[8]=null==e[8]?t[8]:mn(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=i}(w,y),e=w[0],t=w[1],n=w[2],s=w[3],A=w[4],!(d=w[9]=w[9]===i?p?0:e.length:gn(w[9]-f,0))&&24&t&&(t&=-25),t&&1!=t)v=8==t||16==t?function(e,t,n){var o=Ii(e);return function s(){for(var a=arguments.length,l=r(a),c=a,A=io(s);c--;)l[c]=arguments[c];var u=a<3&&l[0]!==A&&l[a-1]!==A?[]:tn(l,A);return(a-=u.length)<n?Gi(e,t,Mi,s.placeholder,i,l,u,i,i,n-a):mt(this&&this!==ot&&this instanceof s?o:e,this,l)}}(e,t,d):t!=l&&33!=t||A.length?Mi.apply(i,w):function(e,t,n,i){var o=1&t,s=Ii(e);return function t(){for(var a=-1,l=arguments.length,c=-1,A=i.length,u=r(A+l),h=this&&this!==ot&&this instanceof t?s:e;++c<A;)u[c]=i[c];for(;l--;)u[c++]=arguments[++a];return mt(h,o?n:this,u)}}(e,t,n,s);else var v=function(e,t,n){var r=1&t,i=Ii(e);return function t(){return(this&&this!==ot&&this instanceof t?i:e).apply(r?n:this,arguments)}}(e,t,n);return ko((y?$r:So)(v,w),e,t)}function Xi(e,t,n,r){return e===i||Ps(e,xe[n])&&!Ue.call(r,n)?t:e}function Ji(e,t,n,r,o,s){return ea(e)&&ea(t)&&(s.set(t,e),Rr(e,t,i,Ji,s),s.delete(t)),e}function $i(e){return ia(e)?i:e}function Yi(e,t,n,r,o,s){var a=1&n,l=e.length,c=t.length;if(l!=c&&!(a&&c>l))return!1;var A=s.get(e),u=s.get(t);if(A&&u)return A==t&&u==e;var h=-1,d=!0,p=2&n?new qn:i;for(s.set(e,t),s.set(t,e);++h<l;){var f=e[h],g=t[h];if(r)var m=a?r(g,f,h,t,e,s):r(f,g,h,e,t,s);if(m!==i){if(m)continue;d=!1;break}if(p){if(!xt(t,function(e,t){if(!jt(p,t)&&(f===e||o(f,e,n,r,s)))return p.push(t)})){d=!1;break}}else if(f!==g&&!o(f,g,n,r,s)){d=!1;break}}return s.delete(e),s.delete(t),d}function Zi(e){return Qo(_o(e,i,jo),e+"")}function eo(e){return Cr(e,ka,co)}function to(e){return Cr(e,Ua,Ao)}var no=Sn?function(e){return Sn.get(e)}:ll;function ro(e){for(var t=e.name+"",n=xn[t],r=Ue.call(xn,t)?n.length:0;r--;){var i=n[r],o=i.func;if(null==o||o==e)return i.name}return t}function io(e){return(Ue.call(Hn,"placeholder")?Hn:e).placeholder}function oo(){var e=Hn.iteratee||il;return e=e===il?Or:e,arguments.length?e(arguments[0],arguments[1]):e}function so(e,t){var n,r,i=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof t?"string":"hash"]:i.map}function ao(e){for(var t=ka(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,Co(i)]}return t}function lo(e,t){var n=function(e,t){return null==e?i:e[t]}(e,t);return Ur(n)?n:i}var co=un?function(e){return null==e?[]:(e=_e(e),Ct(un(e),function(t){return We.call(e,t)}))}:fl,Ao=un?function(e){for(var t=[];e;)Ft(t,co(e)),e=Ve(e);return t}:fl,uo=Br;function ho(e,t,n){for(var r=-1,i=(t=gi(t,e)).length,o=!1;++r<i;){var s=Mo(t[r]);if(!(o=null!=e&&n(e,s)))break;e=e[s]}return o||++r!=i?o:!!(i=null==e?0:e.length)&&Zs(i)&&go(s,i)&&(Gs(e)||Vs(e))}function po(e){return"function"!=typeof e.constructor||bo(e)?{}:Rn(Ve(e))}function fo(e){return Gs(e)||Vs(e)||!!(rt&&e&&e[rt])}function go(e,t){var n=typeof e;return!!(t=null==t?u:t)&&("number"==n||"symbol"!=n&&me.test(e))&&e>-1&&e%1==0&&e<t}function mo(e,t,n){if(!ea(n))return!1;var r=typeof t;return!!("number"==r?qs(n)&&go(t,n.length):"string"==r&&t in n)&&Ps(n[t],e)}function yo(e,t){if(Gs(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!la(e))||Z.test(e)||!Y.test(e)||null!=t&&e in _e(t)}function wo(e){var t=ro(e),n=Hn[t];if("function"!=typeof n||!(t in Kn.prototype))return!1;if(e===n)return!0;var r=no(n);return!!r&&e===r[0]}(Cn&&uo(new Cn(new ArrayBuffer(1)))!=U||Bn&&uo(new Bn)!=C||_n&&uo(_n.resolve())!=E||En&&uo(new En)!=T||Fn&&uo(new Fn)!=Q)&&(uo=function(e){var t=Br(e),n=t==_?e.constructor:i,r=n?Ho(n):"";if(r)switch(r){case Qn:return U;case kn:return C;case Un:return E;case On:return T;case In:return Q}return t});var vo=Qe?$s:gl;function bo(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||xe)}function Co(e){return e==e&&!ea(e)}function Bo(e,t){return function(n){return null!=n&&n[e]===t&&(t!==i||e in _e(n))}}function _o(e,t,n){return t=gn(t===i?e.length-1:t,0),function(){for(var i=arguments,o=-1,s=gn(i.length-t,0),a=r(s);++o<s;)a[o]=i[t+o];o=-1;for(var l=r(t+1);++o<t;)l[o]=i[o];return l[t]=n(a),mt(e,this,l)}}function Eo(e,t){return t.length<2?e:br(e,ei(t,0,-1))}function Fo(e,t){for(var n=e.length,r=mn(t.length,n),o=Fi(e);r--;){var s=t[r];e[r]=go(s,n)?o[s]:i}return e}function To(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var So=Uo($r),xo=Qt||function(e,t){return ot.setTimeout(e,t)},Qo=Uo(Yr);function ko(e,t,n){var r=t+"";return Qo(e,function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(oe,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return wt(p,function(n){var r="_."+n[0];t&n[1]&&!Bt(e,r)&&e.push(r)}),e.sort()}(function(e){var t=e.match(se);return t?t[1].split(ae):[]}(r),n)))}function Uo(e){var t=0,n=0;return function(){var r=yn(),o=16-(r-n);if(n=r,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(i,arguments)}}function Oo(e,t){var n=-1,r=e.length,o=r-1;for(t=t===i?r:t;++n<t;){var s=jr(n,o),a=e[s];e[s]=e[n],e[n]=a}return e.length=t,e}var Io,Lo,Do=(Io=Is(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(ee,function(e,n,r,i){t.push(r?i.replace(Ae,"$1"):n||e)}),t},function(e){return 500===Lo.size&&Lo.clear(),e}),Lo=Io.cache,Io);function Mo(e){if("string"==typeof e||la(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Ho(e){if(null!=e){try{return ke.call(e)}catch(t){}try{return e+""}catch(t){}}return""}function Ro(e){if(e instanceof Kn)return e.clone();var t=new Nn(e.__wrapped__,e.__chain__);return t.__actions__=Fi(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var Po=zr(function(e,t){return zs(e)?cr(e,fr(t,1,zs,!0)):[]}),No=zr(function(e,t){var n=Jo(t);return zs(n)&&(n=i),zs(e)?cr(e,fr(t,1,zs,!0),oo(n,2)):[]}),Ko=zr(function(e,t){var n=Jo(t);return zs(n)&&(n=i),zs(e)?cr(e,fr(t,1,zs,!0),i,n):[]});function Vo(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:pa(n);return i<0&&(i=gn(r+i,0)),Ut(e,oo(t,3),i)}function Go(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r-1;return n!==i&&(o=pa(n),o=n<0?gn(r+o,0):mn(o,r-1)),Ut(e,oo(t,3),o,!0)}function jo(e){return null!=e&&e.length?fr(e,1):[]}function qo(e){return e&&e.length?e[0]:i}var zo=zr(function(e){var t=Et(e,pi);return t.length&&t[0]===e[0]?Tr(t):[]}),Wo=zr(function(e){var t=Jo(e),n=Et(e,pi);return t===Jo(n)?t=i:n.pop(),n.length&&n[0]===e[0]?Tr(n,oo(t,2)):[]}),Xo=zr(function(e){var t=Jo(e),n=Et(e,pi);return(t="function"==typeof t?t:i)&&n.pop(),n.length&&n[0]===e[0]?Tr(n,i,t):[]});function Jo(e){var t=null==e?0:e.length;return t?e[t-1]:i}var $o=zr(Yo);function Yo(e,t){return e&&e.length&&t&&t.length?Vr(e,t):e}var Zo=Zi(function(e,t){var n=null==e?0:e.length,r=ir(e,t);return Gr(e,Et(t,function(e){return go(e,n)?+e:e}).sort(Bi)),r});function es(e){return null==e?e:bn.call(e)}var ts=zr(function(e){return ai(fr(e,1,zs,!0))}),ns=zr(function(e){var t=Jo(e);return zs(t)&&(t=i),ai(fr(e,1,zs,!0),oo(t,2))}),rs=zr(function(e){var t=Jo(e);return t="function"==typeof t?t:i,ai(fr(e,1,zs,!0),i,t)});function is(e){if(!e||!e.length)return[];var t=0;return e=Ct(e,function(e){if(zs(e))return t=gn(e.length,t),!0}),Nt(t,function(t){return Et(e,Mt(t))})}function os(e,t){if(!e||!e.length)return[];var n=is(e);return null==t?n:Et(n,function(e){return mt(t,i,e)})}var ss=zr(function(e,t){return zs(e)?cr(e,t):[]}),as=zr(function(e){return hi(Ct(e,zs))}),ls=zr(function(e){var t=Jo(e);return zs(t)&&(t=i),hi(Ct(e,zs),oo(t,2))}),cs=zr(function(e){var t=Jo(e);return t="function"==typeof t?t:i,hi(Ct(e,zs),i,t)}),As=zr(is),us=zr(function(e){var t=e.length,n=t>1?e[t-1]:i;return n="function"==typeof n?(e.pop(),n):i,os(e,n)});function hs(e){var t=Hn(e);return t.__chain__=!0,t}function ds(e,t){return t(e)}var ps=Zi(function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,o=function(t){return ir(t,e)};return!(t>1||this.__actions__.length)&&r instanceof Kn&&go(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:ds,args:[o],thisArg:i}),new Nn(r,this.__chain__).thru(function(e){return t&&!e.length&&e.push(i),e})):this.thru(o)}),fs=Si(function(e,t,n){Ue.call(e,n)?++e[n]:rr(e,n,1)}),gs=Li(Vo),ms=Li(Go);function ys(e,t){return(Gs(e)?wt:Ar)(e,oo(t,3))}function ws(e,t){return(Gs(e)?vt:ur)(e,oo(t,3))}var vs=Si(function(e,t,n){Ue.call(e,n)?e[n].push(t):rr(e,n,[t])}),bs=zr(function(e,t,n){var i=-1,o="function"==typeof t,s=qs(e)?r(e.length):[];return Ar(e,function(e){s[++i]=o?mt(t,e,n):Sr(e,t,n)}),s}),Cs=Si(function(e,t,n){rr(e,n,t)});function Bs(e,t){return(Gs(e)?Et:Dr)(e,oo(t,3))}var _s=Si(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]}),Es=zr(function(e,t){if(null==e)return[];var n=t.length;return n>1&&mo(e,t[0],t[1])?t=[]:n>2&&mo(t[0],t[1],t[2])&&(t=[t[0]]),Nr(e,fr(t,1),[])}),Fs=At||function(){return ot.Date.now()};function Ts(e,t,n){return t=n?i:t,Wi(e,c,i,i,i,i,t=e&&null==t?e.length:t)}function Ss(e,t){var n;if("function"!=typeof t)throw new Te(o);return e=pa(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=i),n}}var xs=zr(function(e,t,n){var r=1;if(n.length){var i=tn(n,io(xs));r|=l}return Wi(e,r,t,n,i)}),Qs=zr(function(e,t,n){var r=3;if(n.length){var i=tn(n,io(Qs));r|=l}return Wi(t,r,e,n,i)});function ks(e,t,n){var r,s,a,l,c,A,u=0,h=!1,d=!1,p=!0;if("function"!=typeof e)throw new Te(o);function f(t){var n=r,o=s;return r=s=i,u=t,l=e.apply(o,n)}function g(e){return u=e,c=xo(y,t),h?f(e):l}function m(e){var n=e-A;return A===i||n>=t||n<0||d&&e-u>=a}function y(){var e=Fs();if(m(e))return w(e);c=xo(y,function(e){var n=t-(e-A);return d?mn(n,a-(e-u)):n}(e))}function w(e){return c=i,p&&r?f(e):(r=s=i,l)}function v(){var e=Fs(),n=m(e);if(r=arguments,s=this,A=e,n){if(c===i)return g(A);if(d)return wi(c),c=xo(y,t),f(A)}return c===i&&(c=xo(y,t)),l}return t=ga(t)||0,ea(n)&&(h=!!n.leading,a=(d="maxWait"in n)?gn(ga(n.maxWait)||0,t):a,p="trailing"in n?!!n.trailing:p),v.cancel=function(){c!==i&&wi(c),u=0,r=A=s=c=i},v.flush=function(){return c===i?l:w(Fs())},v}var Us=zr(function(e,t){return lr(e,1,t)}),Os=zr(function(e,t,n){return lr(e,ga(t)||0,n)});function Is(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Te(o);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var s=e.apply(this,r);return n.cache=o.set(i,s)||o,s};return n.cache=new(Is.Cache||jn),n}function Ls(e){if("function"!=typeof e)throw new Te(o);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Is.Cache=jn;var Ds=mi(function(e,t){var n=(t=1==t.length&&Gs(t[0])?Et(t[0],Vt(oo())):Et(fr(t,1),Vt(oo()))).length;return zr(function(r){for(var i=-1,o=mn(r.length,n);++i<o;)r[i]=t[i].call(this,r[i]);return mt(e,this,r)})}),Ms=zr(function(e,t){var n=tn(t,io(Ms));return Wi(e,l,i,t,n)}),Hs=zr(function(e,t){var n=tn(t,io(Hs));return Wi(e,64,i,t,n)}),Rs=Zi(function(e,t){return Wi(e,256,i,i,i,t)});function Ps(e,t){return e===t||e!=e&&t!=t}var Ns=Vi(_r),Ks=Vi(function(e,t){return e>=t}),Vs=xr(function(){return arguments}())?xr:function(e){return ta(e)&&Ue.call(e,"callee")&&!We.call(e,"callee")},Gs=r.isArray,js=ut?Vt(ut):function(e){return ta(e)&&Br(e)==k};function qs(e){return null!=e&&Zs(e.length)&&!$s(e)}function zs(e){return ta(e)&&qs(e)}var Ws=hn||gl,Xs=ht?Vt(ht):function(e){return ta(e)&&Br(e)==y};function Js(e){if(!ta(e))return!1;var t=Br(e);return t==w||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!ia(e)}function $s(e){if(!ea(e))return!1;var t=Br(e);return t==v||t==b||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Ys(e){return"number"==typeof e&&e==pa(e)}function Zs(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=u}function ea(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function ta(e){return null!=e&&"object"==typeof e}var na=dt?Vt(dt):function(e){return ta(e)&&uo(e)==C};function ra(e){return"number"==typeof e||ta(e)&&Br(e)==B}function ia(e){if(!ta(e)||Br(e)!=_)return!1;var t=Ve(e);if(null===t)return!0;var n=Ue.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&ke.call(n)==De}var oa=pt?Vt(pt):function(e){return ta(e)&&Br(e)==F},sa=ft?Vt(ft):function(e){return ta(e)&&uo(e)==T};function aa(e){return"string"==typeof e||!Gs(e)&&ta(e)&&Br(e)==S}function la(e){return"symbol"==typeof e||ta(e)&&Br(e)==x}var ca=gt?Vt(gt):function(e){return ta(e)&&Zs(e.length)&&!!Ye[Br(e)]},Aa=Vi(Lr),ua=Vi(function(e,t){return e<=t});function ha(e){if(!e)return[];if(qs(e))return aa(e)?sn(e):Fi(e);if(it&&e[it])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[it]());var t=uo(e);return(t==C?Zt:t==T?nn:Pa)(e)}function da(e){return e?(e=ga(e))===A||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function pa(e){var t=da(e),n=t%1;return t==t?n?t-n:t:0}function fa(e){return e?or(pa(e),0,d):0}function ga(e){if("number"==typeof e)return e;if(la(e))return h;if(ea(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=ea(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Kt(e);var n=pe.test(e);return n||ge.test(e)?nt(e.slice(2),n?2:8):de.test(e)?h:+e}function ma(e){return Ti(e,Ua(e))}function ya(e){return null==e?"":si(e)}var wa=xi(function(e,t){if(bo(t)||qs(t))Ti(t,ka(t),e);else for(var n in t)Ue.call(t,n)&&Zn(e,n,t[n])}),va=xi(function(e,t){Ti(t,Ua(t),e)}),ba=xi(function(e,t,n,r){Ti(t,Ua(t),e,r)}),Ca=xi(function(e,t,n,r){Ti(t,ka(t),e,r)}),Ba=Zi(ir),_a=zr(function(e,t){e=_e(e);var n=-1,r=t.length,o=r>2?t[2]:i;for(o&&mo(t[0],t[1],o)&&(r=1);++n<r;)for(var s=t[n],a=Ua(s),l=-1,c=a.length;++l<c;){var A=a[l],u=e[A];(u===i||Ps(u,xe[A])&&!Ue.call(e,A))&&(e[A]=s[A])}return e}),Ea=zr(function(e){return e.push(i,Ji),mt(Ia,i,e)});function Fa(e,t,n){var r=null==e?i:br(e,t);return r===i?n:r}function Ta(e,t){return null!=e&&ho(e,t,Fr)}var Sa=Hi(function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Le.call(t)),e[t]=n},el(rl)),xa=Hi(function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Le.call(t)),Ue.call(e,t)?e[t].push(n):e[t]=[n]},oo),Qa=zr(Sr);function ka(e){return qs(e)?Wn(e):Ir(e)}function Ua(e){return qs(e)?Wn(e,!0):function(e){if(!ea(e))return function(e){var t=[];if(null!=e)for(var n in _e(e))t.push(n);return t}(e);var t=bo(e),n=[];for(var r in e)("constructor"!=r||!t&&Ue.call(e,r))&&n.push(r);return n}(e)}var Oa=xi(function(e,t,n){Rr(e,t,n)}),Ia=xi(function(e,t,n,r){Rr(e,t,n,r)}),La=Zi(function(e,t){var n={};if(null==e)return n;var r=!1;t=Et(t,function(t){return t=gi(t,e),r||(r=t.length>1),t}),Ti(e,to(e),n),r&&(n=sr(n,7,$i));for(var i=t.length;i--;)li(n,t[i]);return n}),Da=Zi(function(e,t){return null==e?{}:function(e,t){return Kr(e,t,function(t,n){return Ta(e,n)})}(e,t)});function Ma(e,t){if(null==e)return{};var n=Et(to(e),function(e){return[e]});return t=oo(t),Kr(e,n,function(e,n){return t(e,n[0])})}var Ha=zi(ka),Ra=zi(Ua);function Pa(e){return null==e?[]:Gt(e,ka(e))}var Na=Oi(function(e,t,n){return t=t.toLowerCase(),e+(n?Ka(t):t)});function Ka(e){return Ja(ya(e).toLowerCase())}function Va(e){return(e=ya(e))&&e.replace(ye,Xt).replace(je,"")}var Ga=Oi(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}),ja=Oi(function(e,t,n){return e+(n?" ":"")+t.toLowerCase()}),qa=Ui("toLowerCase"),za=Oi(function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}),Wa=Oi(function(e,t,n){return e+(n?" ":"")+Ja(t)}),Xa=Oi(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),Ja=Ui("toUpperCase");function $a(e,t,n){return e=ya(e),(t=n?i:t)===i?function(e){return Xe.test(e)}(e)?function(e){return e.match(ze)||[]}(e):function(e){return e.match(le)||[]}(e):e.match(t)||[]}var Ya=zr(function(e,t){try{return mt(e,i,t)}catch(n){return Js(n)?n:new be(n)}}),Za=Zi(function(e,t){return wt(t,function(t){t=Mo(t),rr(e,t,xs(e[t],e))}),e});function el(e){return function(){return e}}var tl=Di(),nl=Di(!0);function rl(e){return e}function il(e){return Or("function"==typeof e?e:sr(e,1))}var ol=zr(function(e,t){return function(n){return Sr(n,e,t)}}),sl=zr(function(e,t){return function(n){return Sr(e,n,t)}});function al(e,t,n){var r=ka(t),i=vr(t,r);null!=n||ea(t)&&(i.length||!r.length)||(n=t,t=e,e=this,i=vr(t,ka(t)));var o=!(ea(n)&&"chain"in n&&!n.chain),s=$s(e);return wt(i,function(n){var r=t[n];e[n]=r,s&&(e.prototype[n]=function(){var t=this.__chain__;if(o||t){var n=e(this.__wrapped__),i=n.__actions__=Fi(this.__actions__);return i.push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,Ft([this.value()],arguments))})}),e}function ll(){}var cl=Pi(Et),Al=Pi(bt),ul=Pi(xt);function hl(e){return yo(e)?Mt(Mo(e)):function(e){return function(t){return br(t,e)}}(e)}var dl=Ki(),pl=Ki(!0);function fl(){return[]}function gl(){return!1}var ml,yl=Ri(function(e,t){return e+t},0),wl=ji("ceil"),vl=Ri(function(e,t){return e/t},1),bl=ji("floor"),Cl=Ri(function(e,t){return e*t},1),Bl=ji("round"),_l=Ri(function(e,t){return e-t},0);return Hn.after=function(e,t){if("function"!=typeof t)throw new Te(o);return e=pa(e),function(){if(--e<1)return t.apply(this,arguments)}},Hn.ary=Ts,Hn.assign=wa,Hn.assignIn=va,Hn.assignInWith=ba,Hn.assignWith=Ca,Hn.at=Ba,Hn.before=Ss,Hn.bind=xs,Hn.bindAll=Za,Hn.bindKey=Qs,Hn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Gs(e)?e:[e]},Hn.chain=hs,Hn.chunk=function(e,t,n){t=(n?mo(e,t,n):t===i)?1:gn(pa(t),0);var o=null==e?0:e.length;if(!o||t<1)return[];for(var s=0,a=0,l=r(Ht(o/t));s<o;)l[a++]=ei(e,s,s+=t);return l},Hn.compact=function(e){for(var t=-1,n=null==e?0:e.length,r=0,i=[];++t<n;){var o=e[t];o&&(i[r++]=o)}return i},Hn.concat=function(){var e=arguments.length;if(!e)return[];for(var t=r(e-1),n=arguments[0],i=e;i--;)t[i-1]=arguments[i];return Ft(Gs(n)?Fi(n):[n],fr(t,1))},Hn.cond=function(e){var t=null==e?0:e.length,n=oo();return e=t?Et(e,function(e){if("function"!=typeof e[1])throw new Te(o);return[n(e[0]),e[1]]}):[],zr(function(n){for(var r=-1;++r<t;){var i=e[r];if(mt(i[0],this,n))return mt(i[1],this,n)}})},Hn.conforms=function(e){return function(e){var t=ka(e);return function(n){return ar(n,e,t)}}(sr(e,1))},Hn.constant=el,Hn.countBy=fs,Hn.create=function(e,t){var n=Rn(e);return null==t?n:nr(n,t)},Hn.curry=function e(t,n,r){var o=Wi(t,8,i,i,i,i,i,n=r?i:n);return o.placeholder=e.placeholder,o},Hn.curryRight=function e(t,n,r){var o=Wi(t,16,i,i,i,i,i,n=r?i:n);return o.placeholder=e.placeholder,o},Hn.debounce=ks,Hn.defaults=_a,Hn.defaultsDeep=Ea,Hn.defer=Us,Hn.delay=Os,Hn.difference=Po,Hn.differenceBy=No,Hn.differenceWith=Ko,Hn.drop=function(e,t,n){var r=null==e?0:e.length;return r?ei(e,(t=n||t===i?1:pa(t))<0?0:t,r):[]},Hn.dropRight=function(e,t,n){var r=null==e?0:e.length;return r?ei(e,0,(t=r-(t=n||t===i?1:pa(t)))<0?0:t):[]},Hn.dropRightWhile=function(e,t){return e&&e.length?Ai(e,oo(t,3),!0,!0):[]},Hn.dropWhile=function(e,t){return e&&e.length?Ai(e,oo(t,3),!0):[]},Hn.fill=function(e,t,n,r){var o=null==e?0:e.length;return o?(n&&"number"!=typeof n&&mo(e,t,n)&&(n=0,r=o),function(e,t,n,r){var o=e.length;for((n=pa(n))<0&&(n=-n>o?0:o+n),(r=r===i||r>o?o:pa(r))<0&&(r+=o),r=n>r?0:fa(r);n<r;)e[n++]=t;return e}(e,t,n,r)):[]},Hn.filter=function(e,t){return(Gs(e)?Ct:pr)(e,oo(t,3))},Hn.flatMap=function(e,t){return fr(Bs(e,t),1)},Hn.flatMapDeep=function(e,t){return fr(Bs(e,t),A)},Hn.flatMapDepth=function(e,t,n){return n=n===i?1:pa(n),fr(Bs(e,t),n)},Hn.flatten=jo,Hn.flattenDeep=function(e){return null!=e&&e.length?fr(e,A):[]},Hn.flattenDepth=function(e,t){return null!=e&&e.length?fr(e,t=t===i?1:pa(t)):[]},Hn.flip=function(e){return Wi(e,512)},Hn.flow=tl,Hn.flowRight=nl,Hn.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var i=e[t];r[i[0]]=i[1]}return r},Hn.functions=function(e){return null==e?[]:vr(e,ka(e))},Hn.functionsIn=function(e){return null==e?[]:vr(e,Ua(e))},Hn.groupBy=vs,Hn.initial=function(e){return null!=e&&e.length?ei(e,0,-1):[]},Hn.intersection=zo,Hn.intersectionBy=Wo,Hn.intersectionWith=Xo,Hn.invert=Sa,Hn.invertBy=xa,Hn.invokeMap=bs,Hn.iteratee=il,Hn.keyBy=Cs,Hn.keys=ka,Hn.keysIn=Ua,Hn.map=Bs,Hn.mapKeys=function(e,t){var n={};return t=oo(t,3),yr(e,function(e,r,i){rr(n,t(e,r,i),e)}),n},Hn.mapValues=function(e,t){var n={};return t=oo(t,3),yr(e,function(e,r,i){rr(n,r,t(e,r,i))}),n},Hn.matches=function(e){return Mr(sr(e,1))},Hn.matchesProperty=function(e,t){return Hr(e,sr(t,1))},Hn.memoize=Is,Hn.merge=Oa,Hn.mergeWith=Ia,Hn.method=ol,Hn.methodOf=sl,Hn.mixin=al,Hn.negate=Ls,Hn.nthArg=function(e){return e=pa(e),zr(function(t){return Pr(t,e)})},Hn.omit=La,Hn.omitBy=function(e,t){return Ma(e,Ls(oo(t)))},Hn.once=function(e){return Ss(2,e)},Hn.orderBy=function(e,t,n,r){return null==e?[]:(Gs(t)||(t=null==t?[]:[t]),Gs(n=r?i:n)||(n=null==n?[]:[n]),Nr(e,t,n))},Hn.over=cl,Hn.overArgs=Ds,Hn.overEvery=Al,Hn.overSome=ul,Hn.partial=Ms,Hn.partialRight=Hs,Hn.partition=_s,Hn.pick=Da,Hn.pickBy=Ma,Hn.property=hl,Hn.propertyOf=function(e){return function(t){return null==e?i:br(e,t)}},Hn.pull=$o,Hn.pullAll=Yo,Hn.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?Vr(e,t,oo(n,2)):e},Hn.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?Vr(e,t,i,n):e},Hn.pullAt=Zo,Hn.range=dl,Hn.rangeRight=pl,Hn.rearg=Rs,Hn.reject=function(e,t){return(Gs(e)?Ct:pr)(e,Ls(oo(t,3)))},Hn.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,i=[],o=e.length;for(t=oo(t,3);++r<o;){var s=e[r];t(s,r,e)&&(n.push(s),i.push(r))}return Gr(e,i),n},Hn.rest=function(e,t){if("function"!=typeof e)throw new Te(o);return zr(e,t=t===i?t:pa(t))},Hn.reverse=es,Hn.sampleSize=function(e,t,n){return t=(n?mo(e,t,n):t===i)?1:pa(t),(Gs(e)?Jn:Xr)(e,t)},Hn.set=function(e,t,n){return null==e?e:Jr(e,t,n)},Hn.setWith=function(e,t,n,r){return r="function"==typeof r?r:i,null==e?e:Jr(e,t,n,r)},Hn.shuffle=function(e){return(Gs(e)?$n:Zr)(e)},Hn.slice=function(e,t,n){var r=null==e?0:e.length;return r?(n&&"number"!=typeof n&&mo(e,t,n)?(t=0,n=r):(t=null==t?0:pa(t),n=n===i?r:pa(n)),ei(e,t,n)):[]},Hn.sortBy=Es,Hn.sortedUniq=function(e){return e&&e.length?ii(e):[]},Hn.sortedUniqBy=function(e,t){return e&&e.length?ii(e,oo(t,2)):[]},Hn.split=function(e,t,n){return n&&"number"!=typeof n&&mo(e,t,n)&&(t=n=i),(n=n===i?d:n>>>0)?(e=ya(e))&&("string"==typeof t||null!=t&&!oa(t))&&!(t=si(t))&&Yt(e)?yi(sn(e),0,n):e.split(t,n):[]},Hn.spread=function(e,t){if("function"!=typeof e)throw new Te(o);return t=null==t?0:gn(pa(t),0),zr(function(n){var r=n[t],i=yi(n,0,t);return r&&Ft(i,r),mt(e,this,i)})},Hn.tail=function(e){var t=null==e?0:e.length;return t?ei(e,1,t):[]},Hn.take=function(e,t,n){return e&&e.length?ei(e,0,(t=n||t===i?1:pa(t))<0?0:t):[]},Hn.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?ei(e,(t=r-(t=n||t===i?1:pa(t)))<0?0:t,r):[]},Hn.takeRightWhile=function(e,t){return e&&e.length?Ai(e,oo(t,3),!1,!0):[]},Hn.takeWhile=function(e,t){return e&&e.length?Ai(e,oo(t,3)):[]},Hn.tap=function(e,t){return t(e),e},Hn.throttle=function(e,t,n){var r=!0,i=!0;if("function"!=typeof e)throw new Te(o);return ea(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),ks(e,t,{leading:r,maxWait:t,trailing:i})},Hn.thru=ds,Hn.toArray=ha,Hn.toPairs=Ha,Hn.toPairsIn=Ra,Hn.toPath=function(e){return Gs(e)?Et(e,Mo):la(e)?[e]:Fi(Do(ya(e)))},Hn.toPlainObject=ma,Hn.transform=function(e,t,n){var r=Gs(e),i=r||Ws(e)||ca(e);if(t=oo(t,4),null==n){var o=e&&e.constructor;n=i?r?new o:[]:ea(e)&&$s(o)?Rn(Ve(e)):{}}return(i?wt:yr)(e,function(e,r,i){return t(n,e,r,i)}),n},Hn.unary=function(e){return Ts(e,1)},Hn.union=ts,Hn.unionBy=ns,Hn.unionWith=rs,Hn.uniq=function(e){return e&&e.length?ai(e):[]},Hn.uniqBy=function(e,t){return e&&e.length?ai(e,oo(t,2)):[]},Hn.uniqWith=function(e,t){return t="function"==typeof t?t:i,e&&e.length?ai(e,i,t):[]},Hn.unset=function(e,t){return null==e||li(e,t)},Hn.unzip=is,Hn.unzipWith=os,Hn.update=function(e,t,n){return null==e?e:ci(e,t,fi(n))},Hn.updateWith=function(e,t,n,r){return r="function"==typeof r?r:i,null==e?e:ci(e,t,fi(n),r)},Hn.values=Pa,Hn.valuesIn=function(e){return null==e?[]:Gt(e,Ua(e))},Hn.without=ss,Hn.words=$a,Hn.wrap=function(e,t){return Ms(fi(t),e)},Hn.xor=as,Hn.xorBy=ls,Hn.xorWith=cs,Hn.zip=As,Hn.zipObject=function(e,t){return di(e||[],t||[],Zn)},Hn.zipObjectDeep=function(e,t){return di(e||[],t||[],Jr)},Hn.zipWith=us,Hn.entries=Ha,Hn.entriesIn=Ra,Hn.extend=va,Hn.extendWith=ba,al(Hn,Hn),Hn.add=yl,Hn.attempt=Ya,Hn.camelCase=Na,Hn.capitalize=Ka,Hn.ceil=wl,Hn.clamp=function(e,t,n){return n===i&&(n=t,t=i),n!==i&&(n=(n=ga(n))==n?n:0),t!==i&&(t=(t=ga(t))==t?t:0),or(ga(e),t,n)},Hn.clone=function(e){return sr(e,4)},Hn.cloneDeep=function(e){return sr(e,5)},Hn.cloneDeepWith=function(e,t){return sr(e,5,t="function"==typeof t?t:i)},Hn.cloneWith=function(e,t){return sr(e,4,t="function"==typeof t?t:i)},Hn.conformsTo=function(e,t){return null==t||ar(e,t,ka(t))},Hn.deburr=Va,Hn.defaultTo=function(e,t){return null==e||e!=e?t:e},Hn.divide=vl,Hn.endsWith=function(e,t,n){e=ya(e),t=si(t);var r=e.length,o=n=n===i?r:or(pa(n),0,r);return(n-=t.length)>=0&&e.slice(n,o)==t},Hn.eq=Ps,Hn.escape=function(e){return(e=ya(e))&&W.test(e)?e.replace(q,Jt):e},Hn.escapeRegExp=function(e){return(e=ya(e))&&ne.test(e)?e.replace(te,"\\$&"):e},Hn.every=function(e,t,n){var r=Gs(e)?bt:hr;return n&&mo(e,t,n)&&(t=i),r(e,oo(t,3))},Hn.find=gs,Hn.findIndex=Vo,Hn.findKey=function(e,t){return kt(e,oo(t,3),yr)},Hn.findLast=ms,Hn.findLastIndex=Go,Hn.findLastKey=function(e,t){return kt(e,oo(t,3),wr)},Hn.floor=bl,Hn.forEach=ys,Hn.forEachRight=ws,Hn.forIn=function(e,t){return null==e?e:gr(e,oo(t,3),Ua)},Hn.forInRight=function(e,t){return null==e?e:mr(e,oo(t,3),Ua)},Hn.forOwn=function(e,t){return e&&yr(e,oo(t,3))},Hn.forOwnRight=function(e,t){return e&&wr(e,oo(t,3))},Hn.get=Fa,Hn.gt=Ns,Hn.gte=Ks,Hn.has=function(e,t){return null!=e&&ho(e,t,Er)},Hn.hasIn=Ta,Hn.head=qo,Hn.identity=rl,Hn.includes=function(e,t,n,r){e=qs(e)?e:Pa(e),n=n&&!r?pa(n):0;var i=e.length;return n<0&&(n=gn(i+n,0)),aa(e)?n<=i&&e.indexOf(t,n)>-1:!!i&&Ot(e,t,n)>-1},Hn.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:pa(n);return i<0&&(i=gn(r+i,0)),Ot(e,t,i)},Hn.inRange=function(e,t,n){return t=da(t),n===i?(n=t,t=0):n=da(n),function(e,t,n){return e>=mn(t,n)&&e<gn(t,n)}(e=ga(e),t,n)},Hn.invoke=Qa,Hn.isArguments=Vs,Hn.isArray=Gs,Hn.isArrayBuffer=js,Hn.isArrayLike=qs,Hn.isArrayLikeObject=zs,Hn.isBoolean=function(e){return!0===e||!1===e||ta(e)&&Br(e)==m},Hn.isBuffer=Ws,Hn.isDate=Xs,Hn.isElement=function(e){return ta(e)&&1===e.nodeType&&!ia(e)},Hn.isEmpty=function(e){if(null==e)return!0;if(qs(e)&&(Gs(e)||"string"==typeof e||"function"==typeof e.splice||Ws(e)||ca(e)||Vs(e)))return!e.length;var t=uo(e);if(t==C||t==T)return!e.size;if(bo(e))return!Ir(e).length;for(var n in e)if(Ue.call(e,n))return!1;return!0},Hn.isEqual=function(e,t){return Qr(e,t)},Hn.isEqualWith=function(e,t,n){var r=(n="function"==typeof n?n:i)?n(e,t):i;return r===i?Qr(e,t,i,n):!!r},Hn.isError=Js,Hn.isFinite=function(e){return"number"==typeof e&&dn(e)},Hn.isFunction=$s,Hn.isInteger=Ys,Hn.isLength=Zs,Hn.isMap=na,Hn.isMatch=function(e,t){return e===t||kr(e,t,ao(t))},Hn.isMatchWith=function(e,t,n){return n="function"==typeof n?n:i,kr(e,t,ao(t),n)},Hn.isNaN=function(e){return ra(e)&&e!=+e},Hn.isNative=function(e){if(vo(e))throw new be("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Ur(e)},Hn.isNil=function(e){return null==e},Hn.isNull=function(e){return null===e},Hn.isNumber=ra,Hn.isObject=ea,Hn.isObjectLike=ta,Hn.isPlainObject=ia,Hn.isRegExp=oa,Hn.isSafeInteger=function(e){return Ys(e)&&e>=-9007199254740991&&e<=u},Hn.isSet=sa,Hn.isString=aa,Hn.isSymbol=la,Hn.isTypedArray=ca,Hn.isUndefined=function(e){return e===i},Hn.isWeakMap=function(e){return ta(e)&&uo(e)==Q},Hn.isWeakSet=function(e){return ta(e)&&"[object WeakSet]"==Br(e)},Hn.join=function(e,t){return null==e?"":pn.call(e,t)},Hn.kebabCase=Ga,Hn.last=Jo,Hn.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r;return n!==i&&(o=(o=pa(n))<0?gn(r+o,0):mn(o,r-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,o):Ut(e,Lt,o,!0)},Hn.lowerCase=ja,Hn.lowerFirst=qa,Hn.lt=Aa,Hn.lte=ua,Hn.max=function(e){return e&&e.length?dr(e,rl,_r):i},Hn.maxBy=function(e,t){return e&&e.length?dr(e,oo(t,2),_r):i},Hn.mean=function(e){return Dt(e,rl)},Hn.meanBy=function(e,t){return Dt(e,oo(t,2))},Hn.min=function(e){return e&&e.length?dr(e,rl,Lr):i},Hn.minBy=function(e,t){return e&&e.length?dr(e,oo(t,2),Lr):i},Hn.stubArray=fl,Hn.stubFalse=gl,Hn.stubObject=function(){return{}},Hn.stubString=function(){return""},Hn.stubTrue=function(){return!0},Hn.multiply=Cl,Hn.nth=function(e,t){return e&&e.length?Pr(e,pa(t)):i},Hn.noConflict=function(){return ot._===this&&(ot._=Me),this},Hn.noop=ll,Hn.now=Fs,Hn.pad=function(e,t,n){e=ya(e);var r=(t=pa(t))?on(e):0;if(!t||r>=t)return e;var i=(t-r)/2;return Ni(An(i),n)+e+Ni(Ht(i),n)},Hn.padEnd=function(e,t,n){e=ya(e);var r=(t=pa(t))?on(e):0;return t&&r<t?e+Ni(t-r,n):e},Hn.padStart=function(e,t,n){e=ya(e);var r=(t=pa(t))?on(e):0;return t&&r<t?Ni(t-r,n)+e:e},Hn.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),wn(ya(e).replace(re,""),t||0)},Hn.random=function(e,t,n){if(n&&"boolean"!=typeof n&&mo(e,t,n)&&(t=n=i),n===i&&("boolean"==typeof t?(n=t,t=i):"boolean"==typeof e&&(n=e,e=i)),e===i&&t===i?(e=0,t=1):(e=da(e),t===i?(t=e,e=0):t=da(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var o=vn();return mn(e+o*(t-e+tt("1e-"+((o+"").length-1))),t)}return jr(e,t)},Hn.reduce=function(e,t,n){var r=Gs(e)?Tt:Rt,i=arguments.length<3;return r(e,oo(t,4),n,i,Ar)},Hn.reduceRight=function(e,t,n){var r=Gs(e)?St:Rt,i=arguments.length<3;return r(e,oo(t,4),n,i,ur)},Hn.repeat=function(e,t,n){return t=(n?mo(e,t,n):t===i)?1:pa(t),qr(ya(e),t)},Hn.replace=function(){var e=arguments,t=ya(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Hn.result=function(e,t,n){var r=-1,o=(t=gi(t,e)).length;for(o||(o=1,e=i);++r<o;){var s=null==e?i:e[Mo(t[r])];s===i&&(r=o,s=n),e=$s(s)?s.call(e):s}return e},Hn.round=Bl,Hn.runInContext=e,Hn.sample=function(e){return(Gs(e)?Xn:Wr)(e)},Hn.size=function(e){if(null==e)return 0;if(qs(e))return aa(e)?on(e):e.length;var t=uo(e);return t==C||t==T?e.size:Ir(e).length},Hn.snakeCase=za,Hn.some=function(e,t,n){var r=Gs(e)?xt:ti;return n&&mo(e,t,n)&&(t=i),r(e,oo(t,3))},Hn.sortedIndex=function(e,t){return ni(e,t)},Hn.sortedIndexBy=function(e,t,n){return ri(e,t,oo(n,2))},Hn.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=ni(e,t);if(r<n&&Ps(e[r],t))return r}return-1},Hn.sortedLastIndex=function(e,t){return ni(e,t,!0)},Hn.sortedLastIndexBy=function(e,t,n){return ri(e,t,oo(n,2),!0)},Hn.sortedLastIndexOf=function(e,t){if(null!=e&&e.length){var n=ni(e,t,!0)-1;if(Ps(e[n],t))return n}return-1},Hn.startCase=Wa,Hn.startsWith=function(e,t,n){return e=ya(e),n=null==n?0:or(pa(n),0,e.length),t=si(t),e.slice(n,n+t.length)==t},Hn.subtract=_l,Hn.sum=function(e){return e&&e.length?Pt(e,rl):0},Hn.sumBy=function(e,t){return e&&e.length?Pt(e,oo(t,2)):0},Hn.template=function(e,t,n){var r=Hn.templateSettings;n&&mo(e,t,n)&&(t=i),e=ya(e),t=ba({},t,r,Xi);var o,s,a=ba({},t.imports,r.imports,Xi),l=ka(a),c=Gt(a,l),A=0,u=t.interpolate||we,h="__p += '",d=Ee((t.escape||we).source+"|"+u.source+"|"+(u===$?ue:we).source+"|"+(t.evaluate||we).source+"|$","g"),p="//# sourceURL="+(Ue.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++$e+"]")+"\n";e.replace(d,function(t,n,r,i,a,l){return r||(r=i),h+=e.slice(A,l).replace(ve,$t),n&&(o=!0,h+="' +\n__e("+n+") +\n'"),a&&(s=!0,h+="';\n"+a+";\n__p += '"),r&&(h+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),A=l+t.length,t}),h+="';\n";var f=Ue.call(t,"variable")&&t.variable;if(f){if(ce.test(f))throw new be("Invalid `variable` option passed into `_.template`")}else h="with (obj) {\n"+h+"\n}\n";h=(s?h.replace(K,""):h).replace(V,"$1").replace(G,"$1;"),h="function("+(f||"obj")+") {\n"+(f?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(s?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+h+"return __p\n}";var g=Ya(function(){return Ce(l,p+"return "+h).apply(i,c)});if(g.source=h,Js(g))throw g;return g},Hn.times=function(e,t){if((e=pa(e))<1||e>u)return[];var n=d,r=mn(e,d);t=oo(t),e-=d;for(var i=Nt(r,t);++n<e;)t(n);return i},Hn.toFinite=da,Hn.toInteger=pa,Hn.toLength=fa,Hn.toLower=function(e){return ya(e).toLowerCase()},Hn.toNumber=ga,Hn.toSafeInteger=function(e){return e?or(pa(e),-9007199254740991,u):0===e?e:0},Hn.toString=ya,Hn.toUpper=function(e){return ya(e).toUpperCase()},Hn.trim=function(e,t,n){if((e=ya(e))&&(n||t===i))return Kt(e);if(!e||!(t=si(t)))return e;var r=sn(e),o=sn(t);return yi(r,qt(r,o),zt(r,o)+1).join("")},Hn.trimEnd=function(e,t,n){if((e=ya(e))&&(n||t===i))return e.slice(0,an(e)+1);if(!e||!(t=si(t)))return e;var r=sn(e);return yi(r,0,zt(r,sn(t))+1).join("")},Hn.trimStart=function(e,t,n){if((e=ya(e))&&(n||t===i))return e.replace(re,"");if(!e||!(t=si(t)))return e;var r=sn(e);return yi(r,qt(r,sn(t))).join("")},Hn.truncate=function(e,t){var n=30,r="...";if(ea(t)){var o="separator"in t?t.separator:o;n="length"in t?pa(t.length):n,r="omission"in t?si(t.omission):r}var s=(e=ya(e)).length;if(Yt(e)){var a=sn(e);s=a.length}if(n>=s)return e;var l=n-on(r);if(l<1)return r;var c=a?yi(a,0,l).join(""):e.slice(0,l);if(o===i)return c+r;if(a&&(l+=c.length-l),oa(o)){if(e.slice(l).search(o)){var A,u=c;for(o.global||(o=Ee(o.source,ya(he.exec(o))+"g")),o.lastIndex=0;A=o.exec(u);)var h=A.index;c=c.slice(0,h===i?l:h)}}else if(e.indexOf(si(o),l)!=l){var d=c.lastIndexOf(o);d>-1&&(c=c.slice(0,d))}return c+r},Hn.unescape=function(e){return(e=ya(e))&&z.test(e)?e.replace(j,ln):e},Hn.uniqueId=function(e){var t=++Oe;return ya(e)+t},Hn.upperCase=Xa,Hn.upperFirst=Ja,Hn.each=ys,Hn.eachRight=ws,Hn.first=qo,al(Hn,(ml={},yr(Hn,function(e,t){Ue.call(Hn.prototype,t)||(ml[t]=e)}),ml),{chain:!1}),Hn.VERSION="4.17.21",wt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){Hn[e].placeholder=Hn}),wt(["drop","take"],function(e,t){Kn.prototype[e]=function(n){n=n===i?1:gn(pa(n),0);var r=this.__filtered__&&!t?new Kn(this):this.clone();return r.__filtered__?r.__takeCount__=mn(n,r.__takeCount__):r.__views__.push({size:mn(n,d),type:e+(r.__dir__<0?"Right":"")}),r},Kn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}}),wt(["filter","map","takeWhile"],function(e,t){var n=t+1,r=1==n||3==n;Kn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:oo(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}}),wt(["head","last"],function(e,t){var n="take"+(t?"Right":"");Kn.prototype[e]=function(){return this[n](1).value()[0]}}),wt(["initial","tail"],function(e,t){var n="drop"+(t?"":"Right");Kn.prototype[e]=function(){return this.__filtered__?new Kn(this):this[n](1)}}),Kn.prototype.compact=function(){return this.filter(rl)},Kn.prototype.find=function(e){return this.filter(e).head()},Kn.prototype.findLast=function(e){return this.reverse().find(e)},Kn.prototype.invokeMap=zr(function(e,t){return"function"==typeof e?new Kn(this):this.map(function(n){return Sr(n,e,t)})}),Kn.prototype.reject=function(e){return this.filter(Ls(oo(e)))},Kn.prototype.slice=function(e,t){e=pa(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Kn(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==i&&(n=(t=pa(t))<0?n.dropRight(-t):n.take(t-e)),n)},Kn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Kn.prototype.toArray=function(){return this.take(d)},yr(Kn.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),o=Hn[r?"take"+("last"==t?"Right":""):t],s=r||/^find/.test(t);o&&(Hn.prototype[t]=function(){var t=this.__wrapped__,a=r?[1]:arguments,l=t instanceof Kn,c=a[0],A=l||Gs(t),u=function(e){var t=o.apply(Hn,Ft([e],a));return r&&h?t[0]:t};A&&n&&"function"==typeof c&&1!=c.length&&(l=A=!1);var h=this.__chain__,d=!!this.__actions__.length,p=s&&!h,f=l&&!d;if(!s&&A){t=f?t:new Kn(this);var g=e.apply(t,a);return g.__actions__.push({func:ds,args:[u],thisArg:i}),new Nn(g,h)}return p&&f?e.apply(this,a):(g=this.thru(u),p?r?g.value()[0]:g.value():g)})}),wt(["pop","push","shift","sort","splice","unshift"],function(e){var t=Se[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);Hn.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var i=this.value();return t.apply(Gs(i)?i:[],e)}return this[n](function(n){return t.apply(Gs(n)?n:[],e)})}}),yr(Kn.prototype,function(e,t){var n=Hn[t];if(n){var r=n.name+"";Ue.call(xn,r)||(xn[r]=[]),xn[r].push({name:t,func:n})}}),xn[Mi(i,2).name]=[{name:"wrapper",func:i}],Kn.prototype.clone=function(){var e=new Kn(this.__wrapped__);return e.__actions__=Fi(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Fi(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Fi(this.__views__),e},Kn.prototype.reverse=function(){if(this.__filtered__){var e=new Kn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Kn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Gs(e),r=t<0,i=n?e.length:0,o=function(e,t,n){for(var r=-1,i=n.length;++r<i;){var o=n[r],s=o.size;switch(o.type){case"drop":e+=s;break;case"dropRight":t-=s;break;case"take":t=mn(t,e+s);break;case"takeRight":e=gn(e,t-s)}}return{start:e,end:t}}(0,i,this.__views__),s=o.start,a=o.end,l=a-s,c=r?a:s-1,A=this.__iteratees__,u=A.length,h=0,d=mn(l,this.__takeCount__);if(!n||!r&&i==l&&d==l)return ui(e,this.__actions__);var p=[];e:for(;l--&&h<d;){for(var f=-1,g=e[c+=t];++f<u;){var m=A[f],y=m.type,w=(0,m.iteratee)(g);if(2==y)g=w;else if(!w){if(1==y)continue e;break e}}p[h++]=g}return p},Hn.prototype.at=ps,Hn.prototype.chain=function(){return hs(this)},Hn.prototype.commit=function(){return new Nn(this.value(),this.__chain__)},Hn.prototype.next=function(){this.__values__===i&&(this.__values__=ha(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?i:this.__values__[this.__index__++]}},Hn.prototype.plant=function(e){for(var t,n=this;n instanceof Pn;){var r=Ro(n);r.__index__=0,r.__values__=i,t?o.__wrapped__=r:t=r;var o=r;n=n.__wrapped__}return o.__wrapped__=e,t},Hn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Kn){var t=e;return this.__actions__.length&&(t=new Kn(this)),(t=t.reverse()).__actions__.push({func:ds,args:[es],thisArg:i}),new Nn(t,this.__chain__)}return this.thru(es)},Hn.prototype.toJSON=Hn.prototype.valueOf=Hn.prototype.value=function(){return ui(this.__wrapped__,this.__actions__)},Hn.prototype.first=Hn.prototype.head,it&&(Hn.prototype[it]=function(){return this}),Hn}();ot._=cn,(r=(function(){return cn}).call(t,n,t,e))===i||(e.exports=r)}).call(this)},935:e=>{!function(t){"use strict";"function"==typeof bootstrap?bootstrap("promise",t):e.exports=t()}(function(){"use strict";var e=!1;try{throw new Error}catch(z){e=!!z.stack}var t,n=b(),r=function(){},i=function(){var e={task:void 0,next:null},t=e,n=!1,r=void 0,o=!1,s=[];function a(){for(var t,r;e.next;)t=(e=e.next).task,e.task=void 0,(r=e.domain)&&(e.domain=void 0,r.enter()),l(t,r);for(;s.length;)l(t=s.pop());n=!1}function l(e,t){try{e()}catch(z){if(o)throw t&&t.exit(),setTimeout(a,0),t&&t.enter(),z;setTimeout(function(){throw z},0)}t&&t.exit()}if(i=function(e){t=t.next={task:e,domain:o&&process.domain,next:null},n||(n=!0,r())},"object"==typeof process&&"[object process]"===process.toString()&&process.nextTick)o=!0,r=function(){process.nextTick(a)};else if("function"==typeof setImmediate)r="undefined"!=typeof window?setImmediate.bind(window,a):function(){setImmediate(a)};else if("undefined"!=typeof MessageChannel){var c=new MessageChannel;c.port1.onmessage=function(){r=A,c.port1.onmessage=a,a()};var A=function(){c.port2.postMessage(0)};r=function(){setTimeout(a,0),A()}}else r=function(){setTimeout(a,0)};return i.runAfter=function(e){s.push(e),n||(n=!0,r())},i}(),o=Function.call;function s(e){return function(){return o.apply(e,arguments)}}var a,l=s(Array.prototype.slice),c=s(Array.prototype.reduce||function(e,t){var n=0,r=this.length;if(1===arguments.length)for(;;){if(n in this){t=this[n++];break}if(++n>=r)throw new TypeError}for(;n<r;n++)n in this&&(t=e(t,this[n],n));return t}),A=s(Array.prototype.indexOf||function(e){for(var t=0;t<this.length;t++)if(this[t]===e)return t;return-1}),u=s(Array.prototype.map||function(e,t){var n=this,r=[];return c(n,function(i,o,s){r.push(e.call(t,o,s,n))},void 0),r}),h=Object.create||function(e){function t(){}return t.prototype=e,new t},d=Object.defineProperty||function(e,t,n){return e[t]=n.value,e},p=s(Object.prototype.hasOwnProperty),f=Object.keys||function(e){var t=[];for(var n in e)p(e,n)&&t.push(n);return t},g=s(Object.prototype.toString);function m(e){return"[object StopIteration]"===g(e)||e instanceof a}function y(t,n){if(e&&n.stack&&"object"==typeof t&&null!==t&&t.stack){for(var r=[],i=n;i;i=i.source)i.stack&&(!t.__minimumStackCounter__||t.__minimumStackCounter__>i.stackCounter)&&(d(t,"__minimumStackCounter__",{value:i.stackCounter,configurable:!0}),r.unshift(i.stack));r.unshift(t.stack);var o=function(e){for(var t=e.split("\n"),n=[],r=0;r<t.length;++r){var i=t[r];v(i)||-1!==(o=i).indexOf("(module.js:")||-1!==o.indexOf("(node.js:")||!i||n.push(i)}var o;return n.join("\n")}(r.join("\nFrom previous event:\n"));d(t,"stack",{value:o,configurable:!0})}}function w(e){var t=/at .+ \((.+):(\d+):(?:\d+)\)$/.exec(e);if(t)return[t[1],Number(t[2])];var n=/at ([^ ]+):(\d+):(?:\d+)$/.exec(e);if(n)return[n[1],Number(n[2])];var r=/.*@(.+):(\d+)$/.exec(e);return r?[r[1],Number(r[2])]:void 0}function v(e){var r=w(e);if(!r)return!1;var i=r[1];return r[0]===t&&i>=n&&i<=q}function b(){if(e)try{throw new Error}catch(z){var n=z.stack.split("\n"),r=w(n[0].indexOf("@")>0?n[1]:n[2]);if(!r)return;return t=r[0],r[1]}}function C(e){return e instanceof T?e:k(e)?function(e){var t=_();return C.nextTick(function(){try{e.then(t.resolve,t.reject,t.notify)}catch(n){t.reject(n)}}),t.promise}(e):P(e)}a="undefined"!=typeof ReturnValue?ReturnValue:function(e){this.value=e},C.resolve=C,C.nextTick=i,C.longStackSupport=!1;var B=1;function _(){var t,n=[],r=[],i=h(_.prototype),o=h(T.prototype);if(o.promiseDispatch=function(e,i,o){var s=l(arguments);n?(n.push(s),"when"===i&&o[1]&&r.push(o[1])):C.nextTick(function(){t.promiseDispatch.apply(t,s)})},o.valueOf=function(){if(n)return o;var e=x(t);return Q(e)&&(t=e),e},o.inspect=function(){return t?t.inspect():{state:"pending"}},C.longStackSupport&&e)try{throw new Error}catch(z){o.stack=z.stack.substring(z.stack.indexOf("\n")+1),o.stackCounter=B++}function s(i){t=i,C.longStackSupport&&e&&(o.source=i),c(n,function(e,t){C.nextTick(function(){i.promiseDispatch.apply(i,t)})},void 0),n=void 0,r=void 0}return i.promise=o,i.resolve=function(e){t||s(C(e))},i.fulfill=function(e){t||s(P(e))},i.reject=function(e){t||s(R(e))},i.notify=function(e){t||c(r,function(t,n){C.nextTick(function(){n(e)})},void 0)},i}function E(e){if("function"!=typeof e)throw new TypeError("resolver must be a function.");var t=_();try{e(t.resolve,t.reject,t.notify)}catch(n){t.reject(n)}return t.promise}function F(e){return E(function(t,n){for(var r=0,i=e.length;r<i;r++)C(e[r]).then(t,n)})}function T(e,t,n){void 0===t&&(t=function(e){return R(new Error("Promise does not support operation: "+e))}),void 0===n&&(n=function(){return{state:"unknown"}});var r=h(T.prototype);if(r.promiseDispatch=function(n,i,o){var s;try{s=e[i]?e[i].apply(r,o):t.call(r,i,o)}catch(a){s=R(a)}n&&n(s)},r.inspect=n,n){var i=n();"rejected"===i.state&&(r.exception=i.reason),r.valueOf=function(){var e=n();return"pending"===e.state||"rejected"===e.state?r:e.value}}return r}function S(e,t,n,r){return C(e).then(t,n,r)}function x(e){if(Q(e)){var t=e.inspect();if("fulfilled"===t.state)return t.value}return e}function Q(e){return e instanceof T}function k(e){return(t=e)===Object(t)&&"function"==typeof e.then;var t}"object"==typeof process&&process&&process.env&&process.env.Q_DEBUG&&(C.longStackSupport=!0),C.defer=_,_.prototype.makeNodeResolver=function(){var e=this;return function(t,n){t?e.reject(t):e.resolve(arguments.length>2?l(arguments,1):n)}},C.Promise=E,C.promise=E,E.race=F,E.all=V,E.reject=R,E.resolve=C,C.passByCopy=function(e){return e},T.prototype.passByCopy=function(){return this},C.join=function(e,t){return C(e).join(t)},T.prototype.join=function(e){return C([this,e]).spread(function(e,t){if(e===t)return e;throw new Error("Q can't join: not the same: "+e+" "+t)})},C.race=F,T.prototype.race=function(){return this.then(C.race)},C.makePromise=T,T.prototype.toString=function(){return"[object Promise]"},T.prototype.then=function(e,t,n){var r=this,i=_(),o=!1;return C.nextTick(function(){r.promiseDispatch(function(t){o||(o=!0,i.resolve(function(t){try{return"function"==typeof e?e(t):t}catch(n){return R(n)}}(t)))},"when",[function(e){o||(o=!0,i.resolve(function(e){if("function"==typeof t){y(e,r);try{return t(e)}catch(n){return R(n)}}return R(e)}(e)))}])}),r.promiseDispatch(void 0,"when",[void 0,function(e){var t,r=!1;try{t=function(e){return"function"==typeof n?n(e):e}(e)}catch(z){if(r=!0,!C.onerror)throw z;C.onerror(z)}r||i.notify(t)}]),i.promise},C.tap=function(e,t){return C(e).tap(t)},T.prototype.tap=function(e){return e=C(e),this.then(function(t){return e.fcall(t).thenResolve(t)})},C.when=S,T.prototype.thenResolve=function(e){return this.then(function(){return e})},C.thenResolve=function(e,t){return C(e).thenResolve(t)},T.prototype.thenReject=function(e){return this.then(function(){throw e})},C.thenReject=function(e,t){return C(e).thenReject(t)},C.nearer=x,C.isPromise=Q,C.isPromiseAlike=k,C.isPending=function(e){return Q(e)&&"pending"===e.inspect().state},T.prototype.isPending=function(){return"pending"===this.inspect().state},C.isFulfilled=function(e){return!Q(e)||"fulfilled"===e.inspect().state},T.prototype.isFulfilled=function(){return"fulfilled"===this.inspect().state},C.isRejected=function(e){return Q(e)&&"rejected"===e.inspect().state},T.prototype.isRejected=function(){return"rejected"===this.inspect().state};var U,O,I=[],L=[],D=[],M=!0;function H(){I.length=0,L.length=0,M||(M=!0)}function R(e){var t=T({when:function(t){return t&&function(e){if(M){var t=A(L,e);-1!==t&&("object"==typeof process&&"function"==typeof process.emit&&C.nextTick.runAfter(function(){var n=A(D,e);-1!==n&&(process.emit("rejectionHandled",I[t],e),D.splice(n,1))}),L.splice(t,1),I.splice(t,1))}}(this),t?t(e):this}},function(){return this},function(){return{state:"rejected",reason:e}});return function(e,t){M&&("object"==typeof process&&"function"==typeof process.emit&&C.nextTick.runAfter(function(){-1!==A(L,e)&&(process.emit("unhandledRejection",t,e),D.push(e))}),L.push(e),I.push(t&&void 0!==t.stack?t.stack:"(no stack) "+t))}(t,e),t}function P(e){return T({when:function(){return e},get:function(t){return e[t]},set:function(t,n){e[t]=n},delete:function(t){delete e[t]},post:function(t,n){return null==t?e.apply(void 0,n):e[t].apply(e,n)},apply:function(t,n){return e.apply(t,n)},keys:function(){return f(e)}},void 0,function(){return{state:"fulfilled",value:e}})}function N(e,t,n){return C(e).spread(t,n)}function K(e,t,n){return C(e).dispatch(t,n)}function V(e){return S(e,function(e){var t=0,n=_();return c(e,function(r,i,o){var s;Q(i)&&"fulfilled"===(s=i.inspect()).state?e[o]=s.value:(++t,S(i,function(r){e[o]=r,0==--t&&n.resolve(e)},n.reject,function(e){n.notify({index:o,value:e})}))},void 0),0===t&&n.resolve(e),n.promise})}function G(e){if(0===e.length)return C.resolve();var t=C.defer(),n=0;return c(e,function(r,i,o){n++,S(e[o],function(e){t.resolve(e)},function(e){if(0==--n){var r=e||new Error(""+e);r.message="Q can't get fulfillment value from any promise, all promises were rejected. Last error message: "+r.message,t.reject(r)}},function(e){t.notify({index:o,value:e})})},void 0),t.promise}function j(e){return S(e,function(e){return e=u(e,C),S(V(u(e,function(e){return S(e,r,r)})),function(){return e})})}C.resetUnhandledRejections=H,C.getUnhandledReasons=function(){return I.slice()},C.stopUnhandledRejectionTracking=function(){H(),M=!1},H(),C.reject=R,C.fulfill=P,C.master=function(e){return T({isDef:function(){}},function(t,n){return K(e,t,n)},function(){return C(e).inspect()})},C.spread=N,T.prototype.spread=function(e,t){return this.all().then(function(t){return e.apply(void 0,t)},t)},C.async=function(e){return function(){function t(e,t){var o;if("undefined"==typeof StopIteration){try{o=n[e](t)}catch(s){return R(s)}return o.done?C(o.value):S(o.value,r,i)}try{o=n[e](t)}catch(s){return m(s)?C(s.value):R(s)}return S(o,r,i)}var n=e.apply(this,arguments),r=t.bind(t,"next"),i=t.bind(t,"throw");return r()}},C.spawn=function(e){C.done(C.async(e)())},C.return=function(e){throw new a(e)},C.promised=function(e){return function(){return N([this,V(arguments)],function(t,n){return e.apply(t,n)})}},C.dispatch=K,T.prototype.dispatch=function(e,t){var n=this,r=_();return C.nextTick(function(){n.promiseDispatch(r.resolve,e,t)}),r.promise},C.get=function(e,t){return C(e).dispatch("get",[t])},T.prototype.get=function(e){return this.dispatch("get",[e])},C.set=function(e,t,n){return C(e).dispatch("set",[t,n])},T.prototype.set=function(e,t){return this.dispatch("set",[e,t])},C.del=C.delete=function(e,t){return C(e).dispatch("delete",[t])},T.prototype.del=T.prototype.delete=function(e){return this.dispatch("delete",[e])},C.mapply=C.post=function(e,t,n){return C(e).dispatch("post",[t,n])},T.prototype.mapply=T.prototype.post=function(e,t){return this.dispatch("post",[e,t])},C.send=C.mcall=C.invoke=function(e,t){return C(e).dispatch("post",[t,l(arguments,2)])},T.prototype.send=T.prototype.mcall=T.prototype.invoke=function(e){return this.dispatch("post",[e,l(arguments,1)])},C.fapply=function(e,t){return C(e).dispatch("apply",[void 0,t])},T.prototype.fapply=function(e){return this.dispatch("apply",[void 0,e])},C.try=C.fcall=function(e){return C(e).dispatch("apply",[void 0,l(arguments,1)])},T.prototype.fcall=function(){return this.dispatch("apply",[void 0,l(arguments)])},C.fbind=function(e){var t=C(e),n=l(arguments,1);return function(){return t.dispatch("apply",[this,n.concat(l(arguments))])}},T.prototype.fbind=function(){var e=this,t=l(arguments);return function(){return e.dispatch("apply",[this,t.concat(l(arguments))])}},C.keys=function(e){return C(e).dispatch("keys",[])},T.prototype.keys=function(){return this.dispatch("keys",[])},C.all=V,T.prototype.all=function(){return V(this)},C.any=G,T.prototype.any=function(){return G(this)},C.allResolved=(U=j,O="allResolved",function(){return"undefined"!=typeof console&&"function"==typeof console.warn&&console.warn(O+" is deprecated, use allSettled instead.",new Error("").stack),U.apply(U,arguments)}),T.prototype.allResolved=function(){return j(this)},C.allSettled=function(e){return C(e).allSettled()},T.prototype.allSettled=function(){return this.then(function(e){return V(u(e,function(e){function t(){return e.inspect()}return(e=C(e)).then(t,t)}))})},C.fail=C.catch=function(e,t){return C(e).then(void 0,t)},T.prototype.fail=T.prototype.catch=function(e){return this.then(void 0,e)},C.progress=function(e,t){return C(e).then(void 0,void 0,t)},T.prototype.progress=function(e){return this.then(void 0,void 0,e)},C.fin=C.finally=function(e,t){return C(e).finally(t)},T.prototype.fin=T.prototype.finally=function(e){if(!e||"function"!=typeof e.apply)throw new Error("Q can't apply finally callback");return e=C(e),this.then(function(t){return e.fcall().then(function(){return t})},function(t){return e.fcall().then(function(){throw t})})},C.done=function(e,t,n,r){return C(e).done(t,n,r)},T.prototype.done=function(e,t,n){var r=function(e){C.nextTick(function(){if(y(e,i),!C.onerror)throw e;C.onerror(e)})},i=e||t||n?this.then(e,t,n):this;"object"==typeof process&&process&&process.domain&&(r=process.domain.bind(r)),i.then(void 0,r)},C.timeout=function(e,t,n){return C(e).timeout(t,n)},T.prototype.timeout=function(e,t){var n=_(),r=setTimeout(function(){t&&"string"!=typeof t||((t=new Error(t||"Timed out after "+e+" ms")).code="ETIMEDOUT"),n.reject(t)},e);return this.then(function(e){clearTimeout(r),n.resolve(e)},function(e){clearTimeout(r),n.reject(e)},n.notify),n.promise},C.delay=function(e,t){return void 0===t&&(t=e,e=void 0),C(e).delay(t)},T.prototype.delay=function(e){return this.then(function(t){var n=_();return setTimeout(function(){n.resolve(t)},e),n.promise})},C.nfapply=function(e,t){return C(e).nfapply(t)},T.prototype.nfapply=function(e){var t=_(),n=l(e);return n.push(t.makeNodeResolver()),this.fapply(n).fail(t.reject),t.promise},C.nfcall=function(e){var t=l(arguments,1);return C(e).nfapply(t)},T.prototype.nfcall=function(){var e=l(arguments),t=_();return e.push(t.makeNodeResolver()),this.fapply(e).fail(t.reject),t.promise},C.nfbind=C.denodeify=function(e){if(void 0===e)throw new Error("Q can't wrap an undefined function");var t=l(arguments,1);return function(){var n=t.concat(l(arguments)),r=_();return n.push(r.makeNodeResolver()),C(e).fapply(n).fail(r.reject),r.promise}},T.prototype.nfbind=T.prototype.denodeify=function(){var e=l(arguments);return e.unshift(this),C.denodeify.apply(void 0,e)},C.nbind=function(e,t){var n=l(arguments,2);return function(){var r=n.concat(l(arguments)),i=_();function o(){return e.apply(t,arguments)}return r.push(i.makeNodeResolver()),C(o).fapply(r).fail(i.reject),i.promise}},T.prototype.nbind=function(){var e=l(arguments,0);return e.unshift(this),C.nbind.apply(void 0,e)},C.nmapply=C.npost=function(e,t,n){return C(e).npost(t,n)},T.prototype.nmapply=T.prototype.npost=function(e,t){var n=l(t||[]),r=_();return n.push(r.makeNodeResolver()),this.dispatch("post",[e,n]).fail(r.reject),r.promise},C.nsend=C.nmcall=C.ninvoke=function(e,t){var n=l(arguments,2),r=_();return n.push(r.makeNodeResolver()),C(e).dispatch("post",[t,n]).fail(r.reject),r.promise},T.prototype.nsend=T.prototype.nmcall=T.prototype.ninvoke=function(e){var t=l(arguments,1),n=_();return t.push(n.makeNodeResolver()),this.dispatch("post",[e,t]).fail(n.reject),n.promise},C.nodeify=function(e,t){return C(e).nodeify(t)},T.prototype.nodeify=function(e){if(!e)return this;this.then(function(t){C.nextTick(function(){e(null,t)})},function(t){C.nextTick(function(){e(t)})})},C.noConflict=function(){throw new Error("Q.noConflict only works when Q is used as a global")};var q=b();return C})},605:(e,t,n)=>{var r=n(816),i=n(893),o=i;o.v1=r,o.v4=i,e.exports=o},754:e=>{for(var t=[],n=0;n<256;++n)t[n]=(n+256).toString(16).substr(1);e.exports=function(e,n){var r=n||0;return[t[e[r++]],t[e[r++]],t[e[r++]],t[e[r++]],"-",t[e[r++]],t[e[r++]],"-",t[e[r++]],t[e[r++]],"-",t[e[r++]],t[e[r++]],"-",t[e[r++]],t[e[r++]],t[e[r++]],t[e[r++]],t[e[r++]],t[e[r++]]].join("")}},368:e=>{var t="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(t){var n=new Uint8Array(16);e.exports=function(){return t(n),n}}else{var r=new Array(16);e.exports=function(){for(var e,t=0;t<16;t++)0==(3&t)&&(e=4294967296*Math.random()),r[t]=e>>>((3&t)<<3)&255;return r}}},816:(e,t,n)=>{var r,i,o=n(368),s=n(754),a=0,l=0;e.exports=function(e,t,n){var c=t&&n||0,A=t||[],u=(e=e||{}).node||r,h=void 0!==e.clockseq?e.clockseq:i;if(null==u||null==h){var d=o();null==u&&(u=r=[1|d[0],d[1],d[2],d[3],d[4],d[5]]),null==h&&(h=i=16383&(d[6]<<8|d[7]))}var p=void 0!==e.msecs?e.msecs:(new Date).getTime(),f=void 0!==e.nsecs?e.nsecs:l+1,g=p-a+(f-l)/1e4;if(g<0&&void 0===e.clockseq&&(h=h+1&16383),(g<0||p>a)&&void 0===e.nsecs&&(f=0),f>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");a=p,l=f,i=h;var m=(1e4*(268435455&(p+=122192928e5))+f)%4294967296;A[c++]=m>>>24&255,A[c++]=m>>>16&255,A[c++]=m>>>8&255,A[c++]=255&m;var y=p/4294967296*1e4&268435455;A[c++]=y>>>8&255,A[c++]=255&y,A[c++]=y>>>24&15|16,A[c++]=y>>>16&255,A[c++]=h>>>8|128,A[c++]=255&h;for(var w=0;w<6;++w)A[c+w]=u[w];return t||s(A)}},893:(e,t,n)=>{var r=n(368),i=n(754);e.exports=function(e,t,n){var o=t&&n||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var s=(e=e||{}).random||(e.rng||r)();if(s[6]=15&s[6]|64,s[8]=63&s[8]|128,t)for(var a=0;a<16;++a)t[o+a]=s[a];return t||i(s)}},542:(e,t,n)=>{"use strict";var r={};function i(e){return"function"==typeof e}n.r(r),n.d(r,{VERSION:()=>rC,after:()=>U_,all:()=>Y_,allKeys:()=>pB,any:()=>Z_,assign:()=>UB,before:()=>O_,bind:()=>v_,bindAll:()=>B_,chain:()=>g_,chunk:()=>LE,clone:()=>DB,collect:()=>q_,compact:()=>_E,compose:()=>k_,constant:()=>JC,contains:()=>eE,countBy:()=>hE,create:()=>LB,debounce:()=>S_,default:()=>HE,defaults:()=>OB,defer:()=>F_,delay:()=>E_,detect:()=>V_,difference:()=>FE,drop:()=>CE,each:()=>j_,escape:()=>i_,every:()=>Y_,extend:()=>kB,extendOwn:()=>UB,filter:()=>J_,find:()=>V_,findIndex:()=>M_,findKey:()=>L_,findLastIndex:()=>H_,findWhere:()=>G_,first:()=>bE,flatten:()=>EE,foldl:()=>W_,foldr:()=>X_,forEach:()=>j_,functions:()=>xB,get:()=>NB,groupBy:()=>AE,has:()=>KB,head:()=>bE,identity:()=>VB,include:()=>eE,includes:()=>eE,indexBy:()=>uE,indexOf:()=>N_,initial:()=>vE,inject:()=>W_,intersection:()=>QE,invert:()=>SB,invoke:()=>tE,isArguments:()=>zC,isArray:()=>GC,isArrayBuffer:()=>DC,isBoolean:()=>TC,isDataView:()=>VC,isDate:()=>UC,isElement:()=>SC,isEmpty:()=>sB,isEqual:()=>dB,isError:()=>IC,isFinite:()=>WC,isFunction:()=>HC,isMap:()=>CB,isMatch:()=>aB,isNaN:()=>XC,isNull:()=>EC,isNumber:()=>kC,isObject:()=>_C,isRegExp:()=>OC,isSet:()=>_B,isString:()=>QC,isSymbol:()=>LC,isTypedArray:()=>nB,isUndefined:()=>FC,isWeakMap:()=>BB,isWeakSet:()=>EB,iteratee:()=>WB,keys:()=>oB,last:()=>BE,lastIndexOf:()=>K_,map:()=>q_,mapObject:()=>JB,matcher:()=>GB,matches:()=>GB,max:()=>iE,memoize:()=>__,methods:()=>xB,min:()=>oE,mixin:()=>ME,negate:()=>Q_,noop:()=>$B,now:()=>t_,object:()=>OE,omit:()=>wE,once:()=>I_,pairs:()=>TB,partial:()=>w_,partition:()=>dE,pick:()=>yE,pluck:()=>nE,property:()=>jB,propertyOf:()=>YB,random:()=>e_,range:()=>IE,reduce:()=>W_,reduceRight:()=>X_,reject:()=>$_,rest:()=>CE,restArguments:()=>BC,result:()=>d_,sample:()=>sE,select:()=>J_,shuffle:()=>aE,size:()=>gE,some:()=>Z_,sortBy:()=>lE,sortedIndex:()=>R_,tail:()=>CE,take:()=>bE,tap:()=>MB,template:()=>h_,templateSettings:()=>s_,throttle:()=>T_,times:()=>ZB,toArray:()=>fE,toPath:()=>HB,transpose:()=>kE,unescape:()=>o_,union:()=>xE,uniq:()=>SE,unique:()=>SE,uniqueId:()=>f_,unzip:()=>kE,values:()=>FB,where:()=>rE,without:()=>TE,wrap:()=>x_,zip:()=>UE});let o=!1;const s={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 o&&console.log("RxJS: Back to a better error behavior. Thank you. <3");o=e},get useDeprecatedSynchronousErrorHandling(){return o}};function a(e){setTimeout(()=>{throw e},0)}const l={closed:!0,next(e){},error(e){if(s.useDeprecatedSynchronousErrorHandling)throw e;a(e)},complete(){}},c=Array.isArray||(e=>e&&"number"==typeof e.length);function A(e){return null!==e&&"object"==typeof e}const u=(()=>{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})();class h{constructor(e){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,e&&(this._ctorUnsubscribe=!0,this._unsubscribe=e)}unsubscribe(){let e;if(this.closed)return;let{_parentOrParents:t,_ctorUnsubscribe:n,_unsubscribe:r,_subscriptions:o}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,t instanceof h)t.remove(this);else if(null!==t)for(let i=0;i<t.length;++i)t[i].remove(this);if(i(r)){n&&(this._unsubscribe=void 0);try{r.call(this)}catch(s){e=s instanceof u?d(s.errors):[s]}}if(c(o)){let t=-1,n=o.length;for(;++t<n;){const n=o[t];if(A(n))try{n.unsubscribe()}catch(s){e=e||[],s instanceof u?e=e.concat(d(s.errors)):e.push(s)}}}if(e)throw new u(e)}add(e){let t=e;if(!e)return h.EMPTY;switch(typeof e){case"function":t=new h(e);case"object":if(t===this||t.closed||"function"!=typeof t.unsubscribe)return t;if(this.closed)return t.unsubscribe(),t;if(!(t instanceof h)){const e=t;t=new h,t._subscriptions=[e]}break;default:throw new Error("unrecognized teardown "+e+" added to Subscription.")}let{_parentOrParents:n}=t;if(null===n)t._parentOrParents=this;else if(n instanceof h){if(n===this)return t;t._parentOrParents=[n,this]}else{if(-1!==n.indexOf(this))return t;n.push(this)}const r=this._subscriptions;return null===r?this._subscriptions=[t]:r.push(t),t}remove(e){const t=this._subscriptions;if(t){const n=t.indexOf(e);-1!==n&&t.splice(n,1)}}}function d(e){return e.reduce((e,t)=>e.concat(t instanceof u?t.errors:t),[])}h.EMPTY=function(e){return e.closed=!0,e}(new h);const p="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random();class f extends h{constructor(e,t,n){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=l;break;case 1:if(!e){this.destination=l;break}if("object"==typeof e){e instanceof f?(this.syncErrorThrowable=e.syncErrorThrowable,this.destination=e,e.add(this)):(this.syncErrorThrowable=!0,this.destination=new g(this,e));break}default:this.syncErrorThrowable=!0,this.destination=new g(this,e,t,n)}}[p](){return this}static create(e,t,n){const r=new f(e,t,n);return r.syncErrorThrowable=!1,r}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 g extends f{constructor(e,t,n,r){let o;super(),this._parentSubscriber=e;let s=this;i(t)?o=t:t&&(o=t.next,n=t.error,r=t.complete,t!==l&&(s=Object.create(t),i(s.unsubscribe)&&this.add(s.unsubscribe.bind(s)),s.unsubscribe=this.unsubscribe.bind(this))),this._context=s,this._next=o,this._error=n,this._complete=r}next(e){if(!this.isStopped&&this._next){const{_parentSubscriber:t}=this;s.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}=s;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):a(e),this.unsubscribe();else{if(this.unsubscribe(),n)throw e;a(e)}}}complete(){if(!this.isStopped){const{_parentSubscriber:e}=this;if(this._complete){const t=()=>this._complete.call(this._context);s.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(),s.useDeprecatedSynchronousErrorHandling)throw n;a(n)}}__tryOrSetError(e,t,n){if(!s.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{t.call(this._context,n)}catch(r){return s.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=r,e.syncErrorThrown=!0,!0):(a(r),!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 y(e){return e}let w=(()=>{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:r}=this,i=function(e,t,n){if(e){if(e instanceof f)return e;if(e[p])return e[p]()}return e||t||n?new f(e,t,n):new f(l)}(e,t,n);if(i.add(r?r.call(i,this.source):this.source||s.useDeprecatedSynchronousErrorHandling&&!i.syncErrorThrowable?this._subscribe(i):this._trySubscribe(i)),s.useDeprecatedSynchronousErrorHandling&&i.syncErrorThrowable&&(i.syncErrorThrowable=!1,i.syncErrorThrown))throw i.syncErrorValue;return i}_trySubscribe(e){try{return this._subscribe(e)}catch(t){s.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=t),function(e){for(;e;){const{closed:t,destination:n,isStopped:r}=e;if(t||r)return!1;e=n&&n instanceof f?n:null}return!0}(e)?e.error(t):console.warn(t)}}forEach(e,t){return new(t=v(t))((t,n)=>{let r;r=this.subscribe(t=>{try{e(t)}catch(i){n(i),r&&r.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?y:1===t.length?t[0]:function(e){return t.reduce((e,t)=>t(e),e)})(this);var t}toPromise(e){return new(e=v(e))((e,t)=>{let n;this.subscribe(e=>n=e,e=>t(e),()=>e(n))})}}return e.create=t=>new e(t),e})();function v(e){if(e||(e=s.Promise||Promise),!e)throw new Error("no Promise impl found");return e}const b=(()=>{function e(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return e.prototype=Object.create(Error.prototype),e})();class C extends h{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 B extends f{constructor(e){super(e),this.destination=e}}let _=(()=>{class e extends w{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[p](){return new B(this)}lift(e){const t=new E(this,this);return t.operator=e,t}next(e){if(this.closed)throw new b;if(!this.isStopped){const{observers:t}=this,n=t.length,r=t.slice();for(let i=0;i<n;i++)r[i].next(e)}}error(e){if(this.closed)throw new b;this.hasError=!0,this.thrownError=e,this.isStopped=!0;const{observers:t}=this,n=t.length,r=t.slice();for(let i=0;i<n;i++)r[i].error(e);this.observers.length=0}complete(){if(this.closed)throw new b;this.isStopped=!0;const{observers:e}=this,t=e.length,n=e.slice();for(let r=0;r<t;r++)n[r].complete();this.observers.length=0}unsubscribe(){this.isStopped=!0,this.closed=!0,this.observers=null}_trySubscribe(e){if(this.closed)throw new b;return super._trySubscribe(e)}_subscribe(e){if(this.closed)throw new b;return this.hasError?(e.error(this.thrownError),h.EMPTY):this.isStopped?(e.complete(),h.EMPTY):(this.observers.push(e),new C(this,e))}asObservable(){const e=new w;return e.source=this,e}}return e.create=(e,t)=>new E(e,t),e})();class E extends _{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):h.EMPTY}}function F(e){return e&&"function"==typeof e.schedule}function T(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 S(e,t))}}class S{constructor(e,t){this.project=e,this.thisArg=t}call(e,t){return t.subscribe(new x(e,this.project,this.thisArg))}}class x extends f{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 Q=e=>t=>{for(let n=0,r=e.length;n<r&&!t.closed;n++)t.next(e[n]);t.complete()},k="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator",U=e=>e&&"number"==typeof e.length&&"function"!=typeof e;function O(e){return!!e&&"function"!=typeof e.subscribe&&"function"==typeof e.then}const I=e=>{if(e&&"function"==typeof e[m])return n=e,e=>{const t=n[m]();if("function"!=typeof t.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return t.subscribe(e)};if(U(e))return Q(e);if(O(e))return(e=>t=>(e.then(e=>{t.closed||(t.next(e),t.complete())},e=>t.error(e)).then(null,a),t))(e);if(e&&"function"==typeof e[k])return t=e,e=>{const n=t[k]();for(;;){let t;try{t=n.next()}catch(r){return e.error(r),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=A(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};function L(e,t){return new w(n=>{const r=new h;let i=0;return r.add(t.schedule(function(){i!==e.length?(n.next(e[i++]),n.closed||r.add(this.schedule())):n.complete()})),r})}function D(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 w(n=>{const r=new h;return r.add(t.schedule(()=>{const i=e[m]();r.add(i.subscribe({next(e){r.add(t.schedule(()=>n.next(e)))},error(e){r.add(t.schedule(()=>n.error(e)))},complete(){r.add(t.schedule(()=>n.complete()))}}))})),r})}(e,t);if(O(e))return function(e,t){return new w(n=>{const r=new h;return r.add(t.schedule(()=>e.then(e=>{r.add(t.schedule(()=>{n.next(e),r.add(t.schedule(()=>n.complete()))}))},e=>{r.add(t.schedule(()=>n.error(e)))}))),r})}(e,t);if(U(e))return L(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 w(n=>{const r=new h;let i;return r.add(()=>{i&&"function"==typeof i.return&&i.return()}),r.add(t.schedule(()=>{i=e[k](),r.add(t.schedule(function(){if(n.closed)return;let e,t;try{const n=i.next();e=n.value,t=n.done}catch(r){return void n.error(r)}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 w?e:new w(I(e))}class M extends f{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 H extends f{notifyNext(e){this.destination.next(e)}notifyError(e){this.destination.error(e)}notifyComplete(){this.destination.complete()}}function R(e,t){if(t.closed)return;if(e instanceof w)return e.subscribe(t);let n;try{n=I(e)(t)}catch(r){t.error(r)}return n}function P(e,t,n=Number.POSITIVE_INFINITY){return"function"==typeof t?r=>r.pipe(P((n,r)=>D(e(n,r)).pipe(T((e,i)=>t(n,e,r,i))),n)):("number"==typeof t&&(n=t),t=>t.lift(new N(e,n)))}class N{constructor(e,t=Number.POSITIVE_INFINITY){this.project=e,this.concurrent=t}call(e,t){return t.subscribe(new K(e,this.project,this.concurrent))}}class K extends H{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(r){return void this.destination.error(r)}this.active++,this._innerSub(t)}_innerSub(e){const t=new M(this),n=this.destination;n.add(t);const r=R(e,t);r!==t&&n.add(r)}_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 V(e=Number.POSITIVE_INFINITY){return P(y,e)}function G(e,t){return t?L(e,t):new w(Q(e))}function j(...e){let t=Number.POSITIVE_INFINITY,n=null,r=e[e.length-1];return F(r)?(n=e.pop(),e.length>1&&"number"==typeof e[e.length-1]&&(t=e.pop())):"number"==typeof r&&(t=e.pop()),null===n&&1===e.length&&e[0]instanceof w?e[0]:V(t)(G(e,n))}function q(){return function(e){return e.lift(new z(e))}}class z{constructor(e){this.connectable=e}call(e,t){const{connectable:n}=this;n._refCount++;const r=new W(e,n),i=t.subscribe(r);return r.closed||(r.connection=n.connect()),i}}class W extends f{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,r=e._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}class X extends w{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 h,e.add(this.source.subscribe(new $(this.getSubject(),this))),e.closed&&(this._connection=null,e=h.EMPTY)),e}refCount(){return q()(this)}}const J=(()=>{const e=X.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 $ extends B{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 Y(){return new _}function Z(){return e=>{return q()((t=Y,function(e){let n;n="function"==typeof t?t:function(){return t};const r=Object.create(e,J);return r.source=e,r.subjectFactory=n,r})(e));var t}}function ee(e){for(let t in e)if(e[t]===ee)return t;throw Error("Could not find renamed property on target object.")}function te(e,t){for(const n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function ne(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(ne).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 re(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const ie=ee({__forward_ref__:ee});function oe(e){return e.__forward_ref__=oe,e.toString=function(){return ne(this())},e}function se(e){return ae(e)?e():e}function ae(e){return"function"==typeof e&&e.hasOwnProperty(ie)&&e.__forward_ref__===oe}class le extends Error{constructor(e,t){super(function(e,t){return`${e?`NG0${e}: `:""}${t}`}(e,t)),this.code=e}}function ce(e){return"string"==typeof e?e:null==e?"":String(e)}function Ae(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():ce(e)}function ue(e,t){const n=t?` in ${t}`:"";throw new le("201",`No provider for ${Ae(e)} found${n}`)}function he(e,t,n,r){throw new Error(`ASSERTION ERROR: ${e}`+(null==r?"":` [Expected=> ${n} ${r} ${t} <=Actual]`))}function de(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function pe(e){return{providers:e.providers||[],imports:e.imports||[]}}function fe(e){return ge(e,ye)||ge(e,ve)}function ge(e,t){return e.hasOwnProperty(t)?e[t]:null}function me(e){return e&&(e.hasOwnProperty(we)||e.hasOwnProperty(be))?e[we]:null}const ye=ee({"\u0275prov":ee}),we=ee({"\u0275inj":ee}),ve=ee({ngInjectableDef:ee}),be=ee({ngInjectorDef:ee});var Ce=(()=>((Ce=Ce||{})[Ce.Default=0]="Default",Ce[Ce.Host=1]="Host",Ce[Ce.Self=2]="Self",Ce[Ce.SkipSelf=4]="SkipSelf",Ce[Ce.Optional=8]="Optional",Ce))();let Be;function _e(e){const t=Be;return Be=e,t}function Ee(e,t,n){const r=fe(e);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:n&Ce.Optional?null:void 0!==t?t:void ue(ne(e),"Injector")}function Fe(e){return{toString:e}.toString()}var Te=(()=>((Te=Te||{})[Te.OnPush=0]="OnPush",Te[Te.Default=1]="Default",Te))(),Se=(()=>((Se=Se||{})[Se.Emulated=0]="Emulated",Se[Se.None=2]="None",Se[Se.ShadowDom=3]="ShadowDom",Se))();const xe="undefined"!=typeof globalThis&&globalThis,Qe="undefined"!=typeof window&&window,ke="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,Ue="undefined"!=typeof global&&global,Oe=xe||Ue||Qe||ke,Ie={},Le=[],De=ee({"\u0275cmp":ee}),Me=ee({"\u0275dir":ee}),He=ee({"\u0275pipe":ee}),Re=ee({"\u0275mod":ee}),Pe=ee({"\u0275loc":ee}),Ne=ee({"\u0275fac":ee}),Ke=ee({__NG_ELEMENT_ID__:ee});let Ve=0;function Ge(e){return Fe(()=>{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===Te.OnPush,directiveDefs:null,pipeDefs:null,selectors:e.selectors||Le,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||Se.Emulated,id:"c",styles:e.styles||Le,_:null,setInput:null,schemas:e.schemas||null,tView:null},r=e.directives,i=e.features,o=e.pipes;return n.id+=Ve++,n.inputs=Xe(e.inputs,t),n.outputs=Xe(e.outputs),i&&i.forEach(e=>e(n)),n.directiveDefs=r?()=>("function"==typeof r?r():r).map(je):null,n.pipeDefs=o?()=>("function"==typeof o?o():o).map(qe):null,n})}function je(e){return Ye(e)||function(e){return e[Me]||null}(e)}function qe(e){return function(e){return e[He]||null}(e)}const ze={};function We(e){return Fe(()=>{const t={type:e.type,bootstrap:e.bootstrap||Le,declarations:e.declarations||Le,imports:e.imports||Le,exports:e.exports||Le,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null};return null!=e.id&&(ze[e.id]=e.type),t})}function Xe(e,t){if(null==e)return Ie;const n={};for(const r in e)if(e.hasOwnProperty(r)){let i=e[r],o=i;Array.isArray(i)&&(o=i[1],i=i[0]),n[i]=r,t&&(t[i]=o)}return n}const Je=Ge;function $e(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,onDestroy:e.type.prototype.ngOnDestroy||null}}function Ye(e){return e[De]||null}function Ze(e,t){const n=e[Re]||null;if(!n&&!0===t)throw new Error(`Type ${ne(e)} does not have '\u0275mod' property.`);return n}const et=20,tt=10;function nt(e){return Array.isArray(e)&&"object"==typeof e[1]}function rt(e){return Array.isArray(e)&&!0===e[1]}function it(e){return 0!=(8&e.flags)}function ot(e){return 2==(2&e.flags)}function st(e){return 1==(1&e.flags)}function at(e){return null!==e.template}function lt(e,t){return e.hasOwnProperty(Ne)?e[Ne]:null}class ct{constructor(e,t,n){this.previousValue=e,this.currentValue=t,this.firstChange=n}isFirstChange(){return this.firstChange}}function At(){return ut}function ut(e){return e.type.prototype.ngOnChanges&&(e.setInput=dt),ht}function ht(){const e=pt(this),t=null==e?void 0:e.current;if(t){const n=e.previous;if(n===Ie)e.previous=t;else for(let e in t)n[e]=t[e];e.current=null,this.ngOnChanges(t)}}function dt(e,t,n,r){const i=pt(e)||function(e,t){return e.__ngSimpleChanges__=t}(e,{previous:Ie,current:null}),o=i.current||(i.current={}),s=i.previous,a=this.declaredInputs[n],l=s[a];o[a]=new ct(l&&l.currentValue,t,s===Ie),e[r]=t}function pt(e){return e.__ngSimpleChanges__||null}let ft;function gt(){return void 0!==ft?ft:"undefined"!=typeof document?document:void 0}function mt(e){return!!e.listen}At.ngInherit=!0;const yt={createRenderer:(e,t)=>gt()};function wt(e){for(;Array.isArray(e);)e=e[0];return e}function vt(e,t){return wt(t[e])}function bt(e,t){return wt(t[e.index])}function Ct(e,t){return e.data[t]}function Bt(e,t){return e[t]}function _t(e,t){const n=t[e];return nt(n)?n:n[0]}function Et(e){return 4==(4&e[2])}function Ft(e){return 128==(128&e[2])}function Tt(e,t){return null==t?null:e[t]}function St(e){e[18]=0}function xt(e,t){e[5]+=t;let n=e,r=e[3];for(;null!==r&&(1===t&&1===n[5]||-1===t&&0===n[5]);)r[5]+=t,n=r,r=r[3]}const Qt={lFrame:nn(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function kt(){return Qt.bindingsEnabled}function Ut(){return Qt.lFrame.lView}function Ot(){return Qt.lFrame.tView}function It(e){return Qt.lFrame.contextLView=e,e[8]}function Lt(){let e=Dt();for(;null!==e&&64===e.type;)e=e.parent;return e}function Dt(){return Qt.lFrame.currentTNode}function Mt(){const e=Qt.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function Ht(e,t){const n=Qt.lFrame;n.currentTNode=e,n.isParent=t}function Rt(){return Qt.lFrame.isParent}function Pt(){Qt.lFrame.isParent=!1}function Nt(){return Qt.isInCheckNoChangesMode}function Kt(e){Qt.isInCheckNoChangesMode=e}function Vt(){const e=Qt.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function Gt(){return Qt.lFrame.bindingIndex}function jt(){return Qt.lFrame.bindingIndex++}function qt(e){const t=Qt.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function zt(e){Qt.lFrame.inI18n=e}function Wt(e,t){const n=Qt.lFrame;n.bindingIndex=n.bindingRootIndex=e,Xt(t)}function Xt(e){Qt.lFrame.currentDirectiveIndex=e}function Jt(){return Qt.lFrame.currentQueryIndex}function $t(e){Qt.lFrame.currentQueryIndex=e}function Yt(e){const t=e[1];return 2===t.type?t.declTNode:1===t.type?e[6]:null}function Zt(e,t,n){if(n&Ce.SkipSelf){let r=t,i=e;for(;r=r.parent,!(null!==r||n&Ce.Host||(r=Yt(i),null===r)||(i=i[15],10&r.type)););if(null===r)return!1;t=r,e=i}const r=Qt.lFrame=tn();return r.currentTNode=t,r.lView=e,!0}function en(e){const t=tn(),n=e[1];Qt.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=Qt.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 rn(){const e=Qt.lFrame;return Qt.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const on=rn;function sn(){const e=rn();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 Qt.lFrame.selectedIndex}function ln(e){Qt.lFrame.selectedIndex=e}function cn(){const e=Qt.lFrame;return Ct(e.tView,e.selectedIndex)}function An(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n<r;n++){const t=e.data[n].type.prototype,{ngAfterContentInit:r,ngAfterContentChecked:i,ngAfterViewInit:o,ngAfterViewChecked:s,ngOnDestroy:a}=t;r&&(e.contentHooks||(e.contentHooks=[])).push(-n,r),i&&((e.contentHooks||(e.contentHooks=[])).push(n,i),(e.contentCheckHooks||(e.contentCheckHooks=[])).push(n,i)),o&&(e.viewHooks||(e.viewHooks=[])).push(-n,o),s&&((e.viewHooks||(e.viewHooks=[])).push(n,s),(e.viewCheckHooks||(e.viewCheckHooks=[])).push(n,s)),null!=a&&(e.destroyHooks||(e.destroyHooks=[])).push(n,a)}}function un(e,t,n){pn(e,t,3,n)}function hn(e,t,n,r){(3&e[2])===n&&pn(e,t,n,r)}function dn(e,t){let n=e[2];(3&n)===t&&(n&=2047,n+=1,e[2]=n)}function pn(e,t,n,r){const i=null!=r?r:-1,o=t.length-1;let s=0;for(let a=void 0!==r?65535&e[18]:0;a<o;a++)if("number"==typeof t[a+1]){if(s=t[a],null!=r&&s>=r)break}else t[a]<0&&(e[18]+=65536),(s<i||-1==i)&&(fn(e,n,t,a),e[18]=(4294901760&e[18])+a+2),a++}function fn(e,t,n,r){const i=n[r]<0,o=n[r+1],s=e[i?-n[r]:n[r]];if(i){if(e[2]>>11<e[18]>>16&&(3&e[2])===t){e[2]+=2048;try{o.call(s)}finally{}}}else try{o.call(s)}finally{}}const gn=-1;class mn{constructor(e,t,n){this.factory=e,this.resolving=!1,this.canSeeViewProviders=t,this.injectImpl=n}}function yn(e,t,n){const r=mt(e);let i=0;for(;i<n.length;){const o=n[i];if("number"==typeof o){if(0!==o)break;i++;const s=n[i++],a=n[i++],l=n[i++];r?e.setAttribute(t,a,l,s):t.setAttributeNS(s,a,l)}else{const s=o,a=n[++i];vn(s)?r&&e.setProperty(t,s,a):r?e.setAttribute(t,s,a):t.setAttribute(s,a),i++}}return i}function wn(e){return 3===e||4===e||6===e}function vn(e){return 64===e.charCodeAt(0)}function bn(e,t){if(null===t||0===t.length);else if(null===e||0===e.length)e=t.slice();else{let n=-1;for(let r=0;r<t.length;r++){const i=t[r];"number"==typeof i?n=i:0===n||Cn(e,n,i,null,-1===n||2===n?t[++r]:null)}}return e}function Cn(e,t,n,r,i){let o=0,s=e.length;if(-1===t)s=-1;else for(;o<e.length;){const n=e[o++];if("number"==typeof n){if(n===t){s=-1;break}if(n>t){s=o-1;break}}}for(;o<e.length;){const t=e[o];if("number"==typeof t)break;if(t===n){if(null===r)return void(null!==i&&(e[o+1]=i));if(r===e[o+1])return void(e[o+2]=i)}o++,null!==r&&o++,null!==i&&o++}-1!==s&&(e.splice(s,0,t),o=s+1),e.splice(o++,0,n),null!==r&&e.splice(o++,0,r),null!==i&&e.splice(o++,0,i)}function Bn(e){return e!==gn}function _n(e){return 32767&e}function En(e,t){let n=e>>16,r=t;for(;n>0;)r=r[15],n--;return r}let Fn=!0;function Tn(e){const t=Fn;return Fn=e,t}let Sn=0;function xn(e,t){const n=kn(e,t);if(-1!==n)return n;const r=t[1];r.firstCreatePass&&(e.injectorIndex=t.length,Qn(r.data,e),Qn(t,null),Qn(r.blueprint,null));const i=Un(e,t),o=e.injectorIndex;if(Bn(i)){const e=_n(i),n=En(i,t),r=n[1].data;for(let i=0;i<8;i++)t[o+i]=n[e+i]|r[e+i]}return t[o+8]=i,o}function Qn(e,t){e.push(0,0,0,0,0,0,0,0,t)}function kn(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function Un(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let n=0,r=null,i=t;for(;null!==i;){const e=i[1],t=e.type;if(r=2===t?e.declTNode:1===t?i[6]:null,null===r)return gn;if(n++,i=i[15],-1!==r.injectorIndex)return r.injectorIndex|n<<16}return gn}function On(e,t,n){!function(e,t,n){let r;"string"==typeof n?r=n.charCodeAt(0)||0:n.hasOwnProperty(Ke)&&(r=n[Ke]),null==r&&(r=n[Ke]=Sn++);const i=255&r;t.data[e+(i>>5)]|=1<<i}(e,t,n)}function In(e,t,n){if(n&Ce.Optional)return e;ue(t,"NodeInjector")}function Ln(e,t,n,r){if(n&Ce.Optional&&void 0===r&&(r=null),0==(n&(Ce.Self|Ce.Host))){const i=e[9],o=_e(void 0);try{return i?i.get(t,r,n&Ce.Optional):Ee(t,r,n&Ce.Optional)}finally{_e(o)}}return In(r,t,n)}function Dn(e,t,n,r=Ce.Default,i){if(null!==e){const o=function(e){if("string"==typeof e)return e.charCodeAt(0)||0;const t=e.hasOwnProperty(Ke)?e[Ke]:void 0;return"number"==typeof t?t>=0?255&t:Hn:t}(n);if("function"==typeof o){if(!Zt(t,e,r))return r&Ce.Host?In(i,n,r):Ln(t,n,r,i);try{const e=o(r);if(null!=e||r&Ce.Optional)return e;ue(n)}finally{on()}}else if("number"==typeof o){let i=null,s=kn(e,t),a=gn,l=r&Ce.Host?t[16][6]:null;for((-1===s||r&Ce.SkipSelf)&&(a=-1===s?Un(e,t):t[s+8],a!==gn&&Vn(r,!1)?(i=t[1],s=_n(a),t=En(a,t)):s=-1);-1!==s;){const e=t[1];if(Kn(o,s,e.data)){const e=Rn(s,t,n,i,r,l);if(e!==Mn)return e}a=t[s+8],a!==gn&&Vn(r,t[1].data[s+8]===l)&&Kn(o,s,t)?(i=e,s=_n(a),t=En(a,t)):s=-1}}}return Ln(t,n,r,i)}const Mn={};function Hn(){return new Gn(Lt(),Ut())}function Rn(e,t,n,r,i,o){const s=t[1],a=s.data[e+8],l=Pn(a,s,n,null==r?ot(a)&&Fn:r!=s&&0!=(3&a.type),i&Ce.Host&&o===a);return null!==l?Nn(t,s,l,a):Mn}function Pn(e,t,n,r,i){const o=e.providerIndexes,s=t.data,a=1048575&o,l=e.directiveStart,c=o>>20,A=i?a+c:e.directiveEnd;for(let u=r?a:a+c;u<A;u++){const e=s[u];if(u<l&&n===e||u>=l&&e.type===n)return u}if(i){const e=s[l];if(e&&at(e)&&e.type===n)return l}return null}function Nn(e,t,n,r){let i=e[n];const o=t.data;if(i instanceof mn){const s=i;s.resolving&&function(e,t){throw new le("200",`Circular dependency in DI detected for ${e}`)}(Ae(o[n]));const a=Tn(s.canSeeViewProviders);s.resolving=!0;const l=s.injectImpl?_e(s.injectImpl):null;Zt(e,r,Ce.Default);try{i=e[n]=s.factory(void 0,o,e,r),t.firstCreatePass&&n>=r.directiveStart&&function(e,t,n){const{ngOnChanges:r,ngOnInit:i,ngDoCheck:o}=t.type.prototype;if(r){const r=ut(t);(n.preOrderHooks||(n.preOrderHooks=[])).push(e,r),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,r)}i&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-e,i),o&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e,o),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,o))}(n,o[n],t)}finally{null!==l&&_e(l),Tn(a),s.resolving=!1,on()}}return i}function Kn(e,t,n){return!!(n[t+(e>>5)]&1<<e)}function Vn(e,t){return!(e&Ce.Self||e&Ce.Host&&t)}class Gn{constructor(e,t){this._tNode=e,this._lView=t}get(e,t){return Dn(this._tNode,this._lView,e,void 0,t)}}function jn(e){return Fe(()=>{const t=e.prototype.constructor,n=t[Ne]||qn(t),r=Object.prototype;let i=Object.getPrototypeOf(e.prototype).constructor;for(;i&&i!==r;){const e=i[Ne]||qn(i);if(e&&e!==n)return e;i=Object.getPrototypeOf(i)}return e=>new e})}function qn(e){return ae(e)?()=>{const t=qn(se(e));return t&&t()}:lt(e)}function zn(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 r=0;for(;r<e;){const i=n[r];if(wn(i))break;if(0===i)r+=2;else if("number"==typeof i)for(r++;r<e&&"string"==typeof n[r];)r++;else{if(i===t)return n[r+1];r+=2}}}return null}(Lt(),e)}const Wn="__parameters__",Xn="__prop__metadata__";function Jn(e){return function(...t){if(e){const n=e(...t);for(const e in n)this[e]=n[e]}}}function $n(e,t,n){return Fe(()=>{const r=Jn(t);function i(...e){if(this instanceof i)return r.apply(this,e),this;const t=new i(...e);return n.annotation=t,n;function n(e,n,r){const i=e.hasOwnProperty(Wn)?e[Wn]:Object.defineProperty(e,Wn,{value:[]})[Wn];for(;i.length<=r;)i.push(null);return(i[r]=i[r]||[]).push(t),e}}return n&&(i.prototype=Object.create(n.prototype)),i.prototype.ngMetadataName=e,i.annotationCls=i,i})}function Yn(e,t,n,r){return Fe(()=>{const i=Jn(t);function o(...e){if(this instanceof o)return i.apply(this,e),this;const t=new o(...e);return function(n,i){const o=n.constructor,s=o.hasOwnProperty(Xn)?o[Xn]:Object.defineProperty(o,Xn,{value:{}})[Xn];s[i]=s.hasOwnProperty(i)&&s[i]||[],s[i].unshift(t),r&&r(n,i,...e)}}return n&&(o.prototype=Object.create(n.prototype)),o.prototype.ngMetadataName=e,o.annotationCls=o,o})}class Zn{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=de({token:this,providedIn:t.providedIn||"root",factory:t.factory}))}toString(){return`InjectionToken ${this._desc}`}}const er=new Zn("AnalyzeForEntryComponents"),tr=Function;function nr(e,t){void 0===t&&(t=e);for(let n=0;n<e.length;n++){let r=e[n];Array.isArray(r)?(t===e&&(t=e.slice(0,n)),nr(r,t)):t!==e&&t.push(r)}return t}function rr(e,t){e.forEach(e=>Array.isArray(e)?rr(e,t):t(e))}function ir(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function or(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function sr(e,t){const n=[];for(let r=0;r<e;r++)n.push(t);return n}function ar(e,t,n){let r=cr(e,t);return r>=0?e[1|r]=n:(r=~r,function(e,t,n,r){let i=e.length;if(i==t)e.push(n,r);else if(1===i)e.push(r,e[0]),e[0]=n;else{for(i--,e.push(e[i-1],e[i]);i>t;)e[i]=e[i-2],i--;e[t]=n,e[t+1]=r}}(e,r,t,n)),r}function lr(e,t){const n=cr(e,t);if(n>=0)return e[1|n]}function cr(e,t){return function(e,t,n){let r=0,i=e.length>>1;for(;i!==r;){const n=r+(i-r>>1),o=e[n<<1];if(t===o)return n<<1;o>t?i=n:r=n+1}return~(i<<1)}(e,t)}const Ar={},ur=/\n/gm,hr="__source",dr=ee({provide:String,useValue:ee});let pr;function fr(e){const t=pr;return pr=e,t}function gr(e,t=Ce.Default){if(void 0===pr)throw new Error("inject() must be called from an injection context");return null===pr?Ee(e,void 0,t):pr.get(e,t&Ce.Optional?null:void 0,t)}function mr(e,t=Ce.Default){return(Be||gr)(se(e),t)}const yr=mr;function wr(e){const t=[];for(let n=0;n<e.length;n++){const r=se(e[n]);if(Array.isArray(r)){if(0===r.length)throw new Error("Arguments array must have arguments.");let e,n=Ce.Default;for(let t=0;t<r.length;t++){const i=r[t],o=i.__NG_DI_FLAG__;"number"==typeof o?-1===o?e=i.token:n|=o:e=i}t.push(mr(e,n))}else t.push(mr(r))}return t}function vr(e,t){return e.__NG_DI_FLAG__=t,e.prototype.__NG_DI_FLAG__=t,e}const br=vr($n("Inject",e=>({token:e})),-1),Cr=vr($n("Optional"),8),Br=vr($n("SkipSelf"),4);let _r,Er;function Fr(e){var t;return(null===(t=function(){if(void 0===_r&&(_r=null,Oe.trustedTypes))try{_r=Oe.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch(t){}return _r}())||void 0===t?void 0:t.createHTML(e))||e}function Tr(){if(void 0===Er&&(Er=null,Oe.trustedTypes))try{Er=Oe.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch(e){}return Er}function Sr(e){var t;return(null===(t=Tr())||void 0===t?void 0:t.createHTML(e))||e}function xr(e){var t;return(null===(t=Tr())||void 0===t?void 0:t.createScriptURL(e))||e}class Qr{constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class kr extends Qr{getTypeName(){return"HTML"}}class Ur extends Qr{getTypeName(){return"Style"}}class Or extends Qr{getTypeName(){return"Script"}}class Ir extends Qr{getTypeName(){return"URL"}}class Lr extends Qr{getTypeName(){return"ResourceURL"}}function Dr(e){return e instanceof Qr?e.changingThisBreaksApplicationSecurity:e}function Mr(e,t){const n=Hr(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 Hr(e){return e instanceof Qr&&e.getTypeName()||null}function Rr(e){const t=new Nr(e);return function(){try{return!!(new window.DOMParser).parseFromString(Fr(""),"text/html")}catch(e){return!1}}()?new Pr(t):t}class Pr{constructor(e){this.inertDocumentHelper=e}getInertBodyElement(e){e="<body><remove></remove>"+e;try{const t=(new window.DOMParser).parseFromString(Fr(e),"text/html").body;return null===t?this.inertDocumentHelper.getInertBodyElement(e):(t.removeChild(t.firstChild),t)}catch(t){return null}}}class Nr{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=Fr(e),t;const n=this.inertDocument.createElement("body");return n.innerHTML=Fr(e),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(n),n}stripCustomNsAttrs(e){const t=e.attributes;for(let r=t.length-1;0<r;r--){const n=t.item(r).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 Kr=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi,Vr=/^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 Gr(e){return(e=String(e)).match(Kr)||e.match(Vr)?e:"unsafe:"+e}function jr(e){return(e=String(e)).split(",").map(e=>Gr(e.trim())).join(", ")}function qr(e){const t={};for(const n of e.split(","))t[n]=!0;return t}function zr(...e){const t={};for(const n of e)for(const e in n)n.hasOwnProperty(e)&&(t[e]=!0);return t}const Wr=qr("area,br,col,hr,img,wbr"),Xr=qr("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Jr=qr("rp,rt"),$r=zr(Jr,Xr),Yr=zr(Wr,zr(Xr,qr("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")),zr(Jr,qr("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")),$r),Zr=qr("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),ei=qr("srcset"),ti=zr(Zr,ei,qr("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"),qr("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")),ni=qr("script,style,template");class ri{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(!Yr.hasOwnProperty(t))return this.sanitizedSomething=!0,!ni.hasOwnProperty(t);this.buf.push("<"),this.buf.push(t);const n=e.attributes;for(let r=0;r<n.length;r++){const e=n.item(r),t=e.name,i=t.toLowerCase();if(!ti.hasOwnProperty(i)){this.sanitizedSomething=!0;continue}let o=e.value;Zr[i]&&(o=Gr(o)),ei[i]&&(o=jr(o)),this.buf.push(" ",t,'="',si(o),'"')}return this.buf.push(">"),!0}endElement(e){const t=e.nodeName.toLowerCase();Yr.hasOwnProperty(t)&&!Wr.hasOwnProperty(t)&&(this.buf.push("</"),this.buf.push(t),this.buf.push(">"))}chars(e){this.buf.push(si(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 ii=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,oi=/([^\#-~ |!])/g;function si(e){return e.replace(/&/g,"&amp;").replace(ii,function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"}).replace(oi,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}let ai;function li(e,t){let n=null;try{ai=ai||Rr(e);let r=t?String(t):"";n=ai.getInertBodyElement(r);let i=5,o=r;do{if(0===i)throw new Error("Failed to sanitize html because the input is unstable");i--,r=o,o=n.innerHTML,n=ai.getInertBodyElement(r)}while(r!==o);return Fr((new ri).sanitizeChildren(ci(n)||n))}finally{if(n){const e=ci(n)||n;for(;e.firstChild;)e.removeChild(e.firstChild)}}}function ci(e){return"content"in e&&function(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var Ai=(()=>((Ai=Ai||{})[Ai.NONE=0]="NONE",Ai[Ai.HTML=1]="HTML",Ai[Ai.STYLE=2]="STYLE",Ai[Ai.SCRIPT=3]="SCRIPT",Ai[Ai.URL=4]="URL",Ai[Ai.RESOURCE_URL=5]="RESOURCE_URL",Ai))();function ui(e){const t=pi();return t?Sr(t.sanitize(Ai.HTML,e)||""):Mr(e,"HTML")?Sr(Dr(e)):li(gt(),ce(e))}function hi(e){const t=pi();return t?t.sanitize(Ai.URL,e)||"":Mr(e,"URL")?Dr(e):Gr(ce(e))}function di(e){const t=pi();if(t)return xr(t.sanitize(Ai.RESOURCE_URL,e)||"");if(Mr(e,"ResourceURL"))return xr(Dr(e));throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)")}function pi(){const e=Ut();return e&&e[12]}function fi(e,t){e.__ngContext__=t}function gi(e){const t=function(e){return e.__ngContext__||null}(e);return t?Array.isArray(t)?t:t.lView:null}function mi(e){return e.ngOriginalError}function yi(e,...t){e.error(...t)}class wi{constructor(){this._console=console}handleError(e){const t=this._findOriginalError(e),n=this._findContext(e),r=function(e){return e&&e.ngErrorLogger||yi}(e);r(this._console,"ERROR",e),t&&r(this._console,"ORIGINAL ERROR",t),n&&r(this._console,"ERROR CONTEXT",n)}_findContext(e){return e?function(e){return e.ngDebugContext}(e)||this._findContext(mi(e)):null}_findOriginalError(e){let t=e&&mi(e);for(;t&&mi(t);)t=mi(t);return t||null}}const vi=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(Oe))();function bi(e){return e.ownerDocument.defaultView}function Ci(e){return e.ownerDocument}function Bi(e){return e instanceof Function?e():e}var _i=(()=>((_i=_i||{})[_i.Important=1]="Important",_i[_i.DashCase=2]="DashCase",_i))();let Ei;function Fi(e,t){return Ei(e,t)}function Ti(e){const t=e[3];return rt(t)?t[3]:t}function Si(e){return Qi(e[13])}function xi(e){return Qi(e[4])}function Qi(e){for(;null!==e&&!rt(e);)e=e[4];return e}function ki(e,t,n,r,i){if(null!=r){let o,s=!1;rt(r)?o=r:nt(r)&&(s=!0,r=r[0]);const a=wt(r);0===e&&null!==n?null==i?Ni(t,n,a):Pi(t,n,a,i||null,!0):1===e&&null!==n?Pi(t,n,a,i||null,!0):2===e?function(e,t,n){const r=Vi(e,t);r&&function(e,t,n,r){mt(e)?e.removeChild(t,n,r):t.removeChild(n)}(e,r,t,n)}(t,a,s):3===e&&t.destroyNode(a),null!=o&&function(e,t,n,r,i){const o=n[7];o!==wt(n)&&ki(t,e,r,o,i);for(let s=tt;s<n.length;s++){const i=n[s];eo(i[1],i,e,t,r,o)}}(t,e,o,n,i)}}function Ui(e,t){return mt(e)?e.createText(t):e.createTextNode(t)}function Oi(e,t,n){return mt(e)?e.createElement(t,n):null===n?e.createElement(t):e.createElementNS(n,t)}function Ii(e,t){const n=e[9],r=n.indexOf(t),i=t[3];1024&t[2]&&(t[2]&=-1025,xt(i,-1)),n.splice(r,1)}function Li(e,t){if(e.length<=tt)return;const n=tt+t,r=e[n];if(r){const o=r[17];null!==o&&o!==e&&Ii(o,r),t>0&&(e[n-1][4]=r[4]);const s=or(e,tt+t);eo(r[1],i=r,i[11],2,null,null),i[0]=null,i[6]=null;const a=s[19];null!==a&&a.detachView(s[1]),r[3]=null,r[4]=null,r[2]&=-129}var i;return r}function Di(e,t){if(!(256&t[2])){const n=t[11];mt(n)&&n.destroyNode&&eo(e,t,n,3,null,null),function(e){let t=e[13];if(!t)return Mi(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)&&Mi(t[1],t),t=t[3];null===t&&(t=e),nt(t)&&Mi(t[1],t),n=t&&t[4]}t=n}}(t)}}function Mi(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 r=0;r<n.length;r+=2){const e=t[n[r]];if(!(e instanceof mn)){const t=n[r+1];if(Array.isArray(t))for(let n=0;n<t.length;n+=2){const r=e[t[n]],i=t[n+1];try{i.call(r)}finally{}}else try{t.call(e)}finally{}}}}(e,t),function(e,t){const n=e.cleanup,r=t[7];let i=-1;if(null!==n)for(let o=0;o<n.length-1;o+=2)if("string"==typeof n[o]){const e=n[o+1],s="function"==typeof e?e(t):wt(t[e]),a=r[i=n[o+2]],l=n[o+3];"boolean"==typeof l?s.removeEventListener(n[o],a,l):l>=0?r[i=l]():r[i=-l].unsubscribe(),o+=2}else{const e=r[i=n[o+1]];n[o].call(e)}if(null!==r){for(let e=i+1;e<r.length;e++)(0,r[e])();t[7]=null}}(e,t),1===t[1].type&&mt(t[11])&&t[11].destroy();const n=t[17];if(null!==n&&rt(t[3])){n!==t[3]&&Ii(n,t);const r=t[19];null!==r&&r.detachView(e)}}}function Hi(e,t,n){return Ri(e,t.parent,n)}function Ri(e,t,n){let r=t;for(;null!==r&&40&r.type;)r=(t=r).parent;if(null===r)return n[0];if(2&r.flags){const t=e.data[r.directiveStart].encapsulation;if(t===Se.None||t===Se.Emulated)return null}return bt(r,n)}function Pi(e,t,n,r,i){mt(e)?e.insertBefore(t,n,r,i):t.insertBefore(n,r,i)}function Ni(e,t,n){mt(e)?e.appendChild(t,n):t.appendChild(n)}function Ki(e,t,n,r,i){null!==r?Pi(e,t,n,r,i):Ni(e,t,n)}function Vi(e,t){return mt(e)?e.parentNode(t):t.parentNode}function Gi(e,t,n){return zi(e,t,n)}function ji(e,t,n){return 40&e.type?bt(e,n):null}let qi,zi=ji;function Wi(e,t){zi=e,qi=t}function Xi(e,t,n,r){const i=Hi(e,r,t),o=t[11],s=Gi(r.parent||t[6],r,t);if(null!=i)if(Array.isArray(n))for(let a=0;a<n.length;a++)Ki(o,i,n[a],s,!1);else Ki(o,i,n,s,!1);void 0!==qi&&qi(o,r,t,n,i)}function Ji(e,t){if(null!==t){const n=t.type;if(3&n)return bt(t,e);if(4&n)return Yi(-1,e[t.index]);if(8&n){const n=t.child;if(null!==n)return Ji(e,n);{const n=e[t.index];return rt(n)?Yi(-1,n):wt(n)}}if(32&n)return Fi(t,e)()||wt(e[t.index]);{const n=$i(e,t);return null!==n?Array.isArray(n)?n[0]:Ji(Ti(e[16]),n):Ji(e,t.next)}}return null}function $i(e,t){return null!==t?e[16][6].projection[t.projection]:null}function Yi(e,t){const n=tt+e+1;if(n<t.length){const e=t[n],r=e[1].firstChild;if(null!==r)return Ji(e,r)}return t[7]}function Zi(e,t,n,r,i,o,s){for(;null!=n;){const a=r[n.index],l=n.type;if(s&&0===t&&(a&&fi(wt(a),r),n.flags|=4),64!=(64&n.flags))if(8&l)Zi(e,t,n.child,r,i,o,!1),ki(t,e,i,a,o);else if(32&l){const s=Fi(n,r);let l;for(;l=s();)ki(t,e,i,l,o);ki(t,e,i,a,o)}else 16&l?to(e,t,r,n,i,o):ki(t,e,i,a,o);n=s?n.projectionNext:n.next}}function eo(e,t,n,r,i,o){Zi(n,r,e.firstChild,t,i,o,!1)}function to(e,t,n,r,i,o){const s=n[16],a=s[6].projection[r.projection];if(Array.isArray(a))for(let l=0;l<a.length;l++)ki(t,e,i,a[l],o);else Zi(e,t,a,s[3],i,o,!0)}function no(e,t,n){mt(e)?e.setAttribute(t,"style",n):t.style.cssText=n}function ro(e,t,n){mt(e)?""===n?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n):t.className=n}function io(e,t,n){let r=e.length;for(;;){const i=e.indexOf(t,n);if(-1===i)return i;if(0===i||e.charCodeAt(i-1)<=32){const n=t.length;if(i+n===r||e.charCodeAt(i+n)<=32)return i}n=i+1}}const oo="ng-template";function so(e,t,n){let r=0;for(;r<e.length;){let i=e[r++];if(n&&"class"===i){if(i=e[r],-1!==io(i.toLowerCase(),t,0))return!0}else if(1===i){for(;r<e.length&&"string"==typeof(i=e[r++]);)if(i.toLowerCase()===t)return!0;return!1}}return!1}function ao(e){return 4===e.type&&e.value!==oo}function lo(e,t,n){return t===(4!==e.type||n?e.value:oo)}function co(e,t,n){let r=4;const i=e.attrs||[],o=function(e){for(let t=0;t<e.length;t++)if(wn(e[t]))return t;return e.length}(i);let s=!1;for(let a=0;a<t.length;a++){const l=t[a];if("number"!=typeof l){if(!s)if(4&r){if(r=2|1&r,""!==l&&!lo(e,l,n)||""===l&&1===t.length){if(Ao(r))return!1;s=!0}}else{const c=8&r?l:t[++a];if(8&r&&null!==e.attrs){if(!so(e.attrs,c,n)){if(Ao(r))return!1;s=!0}continue}const A=uo(8&r?"class":l,i,ao(e),n);if(-1===A){if(Ao(r))return!1;s=!0;continue}if(""!==c){let e;e=A>o?"":i[A+1].toLowerCase();const t=8&r?e:null;if(t&&-1!==io(t,c,0)||2&r&&c!==e){if(Ao(r))return!1;s=!0}}}}else{if(!s&&!Ao(r)&&!Ao(l))return!1;if(s&&Ao(l))continue;s=!1,r=l|1&r}}return Ao(r)||s}function Ao(e){return 0==(1&e)}function uo(e,t,n,r){if(null===t)return-1;let i=0;if(r||!n){let n=!1;for(;i<t.length;){const r=t[i];if(r===e)return i;if(3===r||6===r)n=!0;else{if(1===r||2===r){let e=t[++i];for(;"string"==typeof e;)e=t[++i];continue}if(4===r)break;if(0===r){i+=4;continue}}i+=n?1:2}return-1}return function(e,t){let n=e.indexOf(4);if(n>-1)for(n++;n<e.length;){const r=e[n];if("number"==typeof r)return-1;if(r===t)return n;n++}return-1}(t,e)}function ho(e,t,n=!1){for(let r=0;r<t.length;r++)if(co(e,t[r],n))return!0;return!1}function po(e,t){e:for(let n=0;n<t.length;n++){const r=t[n];if(e.length===r.length){for(let t=0;t<e.length;t++)if(e[t]!==r[t])continue e;return!0}}return!1}function fo(e,t){return e?":not("+t.trim()+")":t}function go(e){let t=e[0],n=1,r=2,i="",o=!1;for(;n<e.length;){let s=e[n];if("string"==typeof s)if(2&r){const t=e[++n];i+="["+s+(t.length>0?'="'+t+'"':"")+"]"}else 8&r?i+="."+s:4&r&&(i+=" "+s);else""===i||Ao(s)||(t+=fo(o,i),i=""),r=s,o=o||!Ao(r);n++}return""!==i&&(t+=fo(o,i)),t}const mo={};function yo(e){wo(Ot(),Ut(),an()+e,Nt())}function wo(e,t,n,r){if(!r)if(3==(3&t[2])){const r=e.preOrderCheckHooks;null!==r&&un(t,r,n)}else{const r=e.preOrderHooks;null!==r&&hn(t,r,0,n)}ln(n)}function vo(e,t){return e<<17|t<<2}function bo(e){return e>>17&32767}function Co(e){return 2|e}function Bo(e){return(131068&e)>>2}function _o(e,t){return-131069&e|t<<2}function Eo(e){return 1|e}function Fo(e,t){const n=e.contentQueries;if(null!==n)for(let r=0;r<n.length;r+=2){const i=n[r],o=n[r+1];if(-1!==o){const n=e.data[o];$t(i),n.contentQueries(2,t[o],o)}}}function To(e,t,n,r,i,o,s,a,l,c){const A=t.blueprint.slice();return A[0]=i,A[2]=140|r,St(A),A[3]=A[15]=e,A[8]=n,A[10]=s||e&&e[10],A[11]=a||e&&e[11],A[12]=l||e&&e[12]||null,A[9]=c||e&&e[9]||null,A[6]=o,A[16]=2==t.type?e[16]:A,A}function So(e,t,n,r,i){let o=e.data[t];if(null===o)o=xo(e,t,n,r,i),Qt.lFrame.inI18n&&(o.flags|=64);else if(64&o.type){o.type=n,o.value=r,o.attrs=i;const e=Mt();o.injectorIndex=null===e?-1:e.injectorIndex}return Ht(o,!0),o}function xo(e,t,n,r,i){const o=Dt(),s=Rt(),a=e.data[t]=function(e,t,n,r,i,o){return{type:n,index:r,insertBeforeIndex:null,injectorIndex:t?t.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,value:i,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,s?o:o&&o.parent,n,t,r,i);return null===e.firstChild&&(e.firstChild=a),null!==o&&(s?null==o.child&&null!==a.parent&&(o.child=a):null===o.next&&(o.next=a)),a}function Qo(e,t,n,r){if(0===n)return-1;const i=t.length;for(let o=0;o<n;o++)t.push(r),e.blueprint.push(r),e.data.push(null);return i}function ko(e,t,n){en(t);try{const r=e.viewQuery;null!==r&&ls(1,r,n);const i=e.template;null!==i&&Io(e,t,i,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),e.staticContentQueries&&Fo(e,t),e.staticViewQueries&&ls(2,e.viewQuery,n);const o=e.components;null!==o&&function(e,t){for(let n=0;n<t.length;n++)rs(e,t[n])}(t,o)}catch(r){throw e.firstCreatePass&&(e.incompleteFirstPass=!0),r}finally{t[2]&=-5,sn()}}function Uo(e,t,n,r){const i=t[2];if(256==(256&i))return;en(t);const o=Nt();try{St(t),Qt.lFrame.bindingIndex=e.bindingStartIndex,null!==n&&Io(e,t,n,2,r);const s=3==(3&i);if(!o)if(s){const n=e.preOrderCheckHooks;null!==n&&un(t,n,null)}else{const n=e.preOrderHooks;null!==n&&hn(t,n,0,null),dn(t,0)}if(function(e){for(let t=Si(e);null!==t;t=xi(t)){if(!t[2])continue;const e=t[9];for(let t=0;t<e.length;t++){const n=e[t],r=n[3];0==(1024&n[2])&&xt(r,1),n[2]|=1024}}}(t),function(e){for(let t=Si(e);null!==t;t=xi(t))for(let e=tt;e<t.length;e++){const n=t[e],r=n[1];Ft(n)&&Uo(r,n,r.template,n[8])}}(t),null!==e.contentQueries&&Fo(e,t),!o)if(s){const n=e.contentCheckHooks;null!==n&&un(t,n)}else{const n=e.contentHooks;null!==n&&hn(t,n,1),dn(t,1)}!function(e,t){const n=e.hostBindingOpCodes;if(null!==n)try{for(let e=0;e<n.length;e++){const r=n[e];if(r<0)ln(~r);else{const i=r,o=n[++e],s=n[++e];Wt(o,i),s(2,t[i])}}}finally{ln(-1)}}(e,t);const a=e.components;null!==a&&function(e,t){for(let n=0;n<t.length;n++)ts(e,t[n])}(t,a);const l=e.viewQuery;if(null!==l&&ls(2,l,r),!o)if(s){const n=e.viewCheckHooks;null!==n&&un(t,n)}else{const n=e.viewHooks;null!==n&&hn(t,n,2),dn(t,2)}!0===e.firstUpdatePass&&(e.firstUpdatePass=!1),o||(t[2]&=-73),1024&t[2]&&(t[2]&=-1025,xt(t[3],-1))}finally{sn()}}function Oo(e,t,n,r){const i=t[10],o=!Nt(),s=Et(t);try{o&&!s&&i.begin&&i.begin(),s&&ko(e,t,r),Uo(e,t,n,r)}finally{o&&!s&&i.end&&i.end()}}function Io(e,t,n,r,i){const o=an(),s=2&r;try{ln(-1),s&&t.length>et&&wo(e,t,et,Nt()),n(r,i)}finally{ln(o)}}function Lo(e,t,n){if(it(t)){const r=t.directiveEnd;for(let i=t.directiveStart;i<r;i++){const t=e.data[i];t.contentQueries&&t.contentQueries(1,n[i],i)}}}function Do(e,t,n){kt()&&(function(e,t,n,r){const i=n.directiveStart,o=n.directiveEnd;e.firstCreatePass||xn(n,t),fi(r,t);const s=n.initialInputs;for(let a=i;a<o;a++){const r=e.data[a],o=at(r);o&&Jo(t,n,r);const l=Nn(t,e,a,n);fi(l,t),null!==s&&Yo(0,a-i,l,r,0,s),o&&(_t(n.index,t)[8]=l)}}(e,t,n,bt(n,t)),128==(128&n.flags)&&function(e,t,n){const r=n.directiveStart,i=n.directiveEnd,o=n.index,s=Qt.lFrame.currentDirectiveIndex;try{ln(o);for(let n=r;n<i;n++){const r=e.data[n],i=t[n];Xt(n),null===r.hostBindings&&0===r.hostVars&&null===r.hostAttrs||jo(r,i)}}finally{ln(-1),Xt(s)}}(e,t,n))}function Mo(e,t,n=bt){const r=t.localNames;if(null!==r){let i=t.index+1;for(let o=0;o<r.length;o+=2){const s=r[o+1],a=-1===s?n(t,e):e[s];e[i++]=a}}}function Ho(e){const t=e.tView;return null===t||t.incompleteFirstPass?e.tView=Ro(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts):t}function Ro(e,t,n,r,i,o,s,a,l,c){const A=et+r,u=A+i,h=function(e,t){const n=[];for(let r=0;r<t;r++)n.push(r<e?null:mo);return n}(A,u),d="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,A),bindingStartIndex:A,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 s?s():s,firstChild:null,schemas:l,consts:d,incompleteFirstPass:!1}}function Po(e,t,n,r){const i=As(t);null===n?i.push(r):(i.push(n),e.firstCreatePass&&us(e).push(r,i.length-1))}function No(e,t,n){for(let r in e)if(e.hasOwnProperty(r)){const i=e[r];(n=null===n?{}:n).hasOwnProperty(r)?n[r].push(t,i):n[r]=[t,i]}return n}function Ko(e,t,n,r,i,o,s,a){const l=bt(t,n);let c,A=t.inputs;var u;!a&&null!=A&&(c=A[r])?(ds(e,n,c,r,i),ot(t)&&function(e,t){const n=_t(t,e);16&n[2]||(n[2]|=64)}(n,t.index)):3&t.type&&(r="class"===(u=r)?"className":"for"===u?"htmlFor":"formaction"===u?"formAction":"innerHtml"===u?"innerHTML":"readonly"===u?"readOnly":"tabindex"===u?"tabIndex":u,i=null!=s?s(i,t.value||"",r):i,mt(o)?o.setProperty(l,r,i):vn(r)||(l.setProperty?l.setProperty(r,i):l[r]=i))}function Vo(e,t,n,r){let i=!1;if(kt()){const o=function(e,t,n){const r=e.directiveRegistry;let i=null;if(r)for(let o=0;o<r.length;o++){const s=r[o];ho(n,s.selectors,!1)&&(i||(i=[]),On(xn(n,t),e,s.type),at(s)?(qo(e,n),i.unshift(s)):i.push(s))}return i}(e,t,n),s=null===r?null:{"":-1};if(null!==o){i=!0,Wo(n,e.data.length,o.length);for(let e=0;e<o.length;e++){const t=o[e];t.providersResolver&&t.providersResolver(t)}let r=!1,a=!1,l=Qo(e,t,o.length,null);for(let i=0;i<o.length;i++){const c=o[i];n.mergedAttrs=bn(n.mergedAttrs,c.hostAttrs),Xo(e,n,t,l,c),zo(l,c,s),null!==c.contentQueries&&(n.flags|=8),null===c.hostBindings&&null===c.hostAttrs&&0===c.hostVars||(n.flags|=128);const A=c.type.prototype;!r&&(A.ngOnChanges||A.ngOnInit||A.ngDoCheck)&&((e.preOrderHooks||(e.preOrderHooks=[])).push(n.index),r=!0),a||!A.ngOnChanges&&!A.ngDoCheck||((e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(n.index),a=!0),l++}!function(e,t){const n=t.directiveEnd,r=e.data,i=t.attrs,o=[];let s=null,a=null;for(let l=t.directiveStart;l<n;l++){const e=r[l],n=e.inputs,c=null===i||ao(t)?null:Zo(n,i);o.push(c),s=No(n,l,s),a=No(e.outputs,l,a)}null!==s&&(s.hasOwnProperty("class")&&(t.flags|=16),s.hasOwnProperty("style")&&(t.flags|=32)),t.initialInputs=o,t.inputs=s,t.outputs=a}(e,n)}s&&function(e,t,n){if(t){const r=e.localNames=[];for(let e=0;e<t.length;e+=2){const i=n[t[e+1]];if(null==i)throw new le("301",`Export of name '${t[e+1]}' not found!`);r.push(t[e],i)}}}(n,r,s)}return n.mergedAttrs=bn(n.mergedAttrs,n.attrs),i}function Go(e,t,n,r,i,o){const s=o.hostBindings;if(s){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(r,i,s)}}function jo(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function qo(e,t){t.flags|=2,(e.components||(e.components=[])).push(t.index)}function zo(e,t,n){if(n){if(t.exportAs)for(let r=0;r<t.exportAs.length;r++)n[t.exportAs[r]]=e;at(t)&&(n[""]=e)}}function Wo(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t}function Xo(e,t,n,r,i){e.data[r]=i;const o=i.factory||(i.factory=lt(i.type)),s=new mn(o,at(i),null);e.blueprint[r]=s,n[r]=s,Go(e,t,0,r,Qo(e,n,i.hostVars,mo),i)}function Jo(e,t,n){const r=bt(t,e),i=Ho(n),o=e[10],s=is(e,To(e,i,null,n.onPush?64:16,r,t,o,o.createRenderer(r,n),null,null));e[t.index]=s}function $o(e,t,n,r,i,o){const s=bt(e,t);!function(e,t,n,r,i,o,s){if(null==o)mt(e)?e.removeAttribute(t,i,n):t.removeAttribute(i);else{const a=null==s?ce(o):s(o,r||"",i);mt(e)?e.setAttribute(t,i,a,n):n?t.setAttributeNS(n,i,a):t.setAttribute(i,a)}}(t[11],s,o,e.value,n,r,i)}function Yo(e,t,n,r,i,o){const s=o[t];if(null!==s){const e=r.setInput;for(let t=0;t<s.length;){const i=s[t++],o=s[t++],a=s[t++];null!==e?r.setInput(n,a,i,o):n[o]=a}}}function Zo(e,t){let n=null,r=0;for(;r<t.length;){const i=t[r];if(0!==i)if(5!==i){if("number"==typeof i)break;e.hasOwnProperty(i)&&(null===n&&(n=[]),n.push(i,e[i],t[r+1])),r+=2}else r+=2;else r+=4}return n}function es(e,t,n,r){return new Array(e,!0,!1,t,null,0,r,n,null,null)}function ts(e,t){const n=_t(t,e);if(Ft(n)){const e=n[1];80&n[2]?Uo(e,n,e.template,n[8]):n[5]>0&&ns(n)}}function ns(e){for(let n=Si(e);null!==n;n=xi(n))for(let e=tt;e<n.length;e++){const t=n[e];if(1024&t[2]){const e=t[1];Uo(e,t,e.template,t[8])}else t[5]>0&&ns(t)}const t=e[1].components;if(null!==t)for(let n=0;n<t.length;n++){const r=_t(t[n],e);Ft(r)&&r[5]>0&&ns(r)}}function rs(e,t){const n=_t(t,e),r=n[1];!function(e,t){for(let n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n])}(r,n),ko(r,n,n[8])}function is(e,t){return e[13]?e[14][4]=t:e[13]=t,e[14]=t,t}function os(e){for(;e;){e[2]|=64;const t=Ti(e);if(0!=(512&e[2])&&!t)return e;e=t}return null}function ss(e,t,n){const r=t[10];r.begin&&r.begin();try{Uo(e,t,e.template,n)}catch(i){throw hs(t,i),i}finally{r.end&&r.end()}}function as(e){!function(e){for(let t=0;t<e.components.length;t++){const n=e.components[t],r=gi(n),i=r[1];Oo(i,r,i.template,n)}}(e[8])}function ls(e,t,n){$t(0),t(e,n)}const cs=(()=>Promise.resolve(null))();function As(e){return e[7]||(e[7]=[])}function us(e){return e.cleanup||(e.cleanup=[])}function hs(e,t){const n=e[9],r=n?n.get(wi,null):null;r&&r.handleError(t)}function ds(e,t,n,r,i){for(let o=0;o<n.length;){const s=n[o++],a=n[o++],l=t[s],c=e.data[s];null!==c.setInput?c.setInput(l,i,r,a):l[a]=i}}function ps(e,t,n){const r=vt(t,e);!function(e,t,n){mt(e)?e.setValue(t,n):t.textContent=n}(e[11],r,n)}function fs(e,t,n){let r=n?e.styles:null,i=n?e.classes:null,o=0;if(null!==t)for(let s=0;s<t.length;s++){const e=t[s];"number"==typeof e?o=e:1==o?i=re(i,e):2==o&&(r=re(r,e+": "+t[++s]+";"))}n?e.styles=r:e.stylesWithoutHost=r,n?e.classes=i:e.classesWithoutHost=i}const gs=new Zn("INJECTOR",-1);class ms{get(e,t=Ar){if(t===Ar){const t=new Error(`NullInjectorError: No provider for ${ne(e)}!`);throw t.name="NullInjectorError",t}return t}}const ys=new Zn("Set Injector scope."),ws={},vs={};let bs;function Cs(){return void 0===bs&&(bs=new ms),bs}function Bs(e,t=null,n=null,r){return new _s(e,n,t||Cs(),r)}class _s{constructor(e,t,n,r=null){this.parent=n,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;const i=[];t&&rr(t,n=>this.processProvider(n,e,t)),rr([e],e=>this.processInjectorType(e,[],i)),this.records.set(gs,Ts(void 0,this));const o=this.records.get(ys);this.scope=null!=o?o.value:null,this.source=r||("object"==typeof e?null:ne(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=Ar,n=Ce.Default){this.assertNotDestroyed();const r=fr(this),i=_e(void 0);try{if(!(n&Ce.SkipSelf)){let t=this.records.get(e);if(void 0===t){const n=("function"==typeof(o=e)||"object"==typeof o&&o instanceof Zn)&&fe(e);t=n&&this.injectableDefInScope(n)?Ts(Es(e),ws):null,this.records.set(e,t)}if(null!=t)return this.hydrate(e,t)}return(n&Ce.Self?Cs():this.parent).get(e,t=n&Ce.Optional&&t===Ar?null:t)}catch(s){if("NullInjectorError"===s.name){if((s.ngTempTokenPath=s.ngTempTokenPath||[]).unshift(ne(e)),r)throw s;return function(e,t,n,r){const i=e.ngTempTokenPath;throw t[hr]&&i.unshift(t[hr]),e.message=function(e,t,n,r=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.substr(2):e;let i=ne(t);if(Array.isArray(t))i=t.map(ne).join(" -> ");else if("object"==typeof t){let e=[];for(let n in t)if(t.hasOwnProperty(n)){let r=t[n];e.push(n+":"+("string"==typeof r?JSON.stringify(r):ne(r)))}i=`{${e.join(", ")}}`}return`${n}${r?"("+r+")":""}[${i}]: ${e.replace(ur,"\n  ")}`}("\n"+e.message,i,n,r),e.ngTokenPath=i,e.ngTempTokenPath=null,e}(s,e,"R3InjectorError",this.source)}throw s}finally{_e(i),fr(r)}var o}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(e=>this.get(e))}toString(){const e=[];return this.records.forEach((t,n)=>e.push(ne(n))),`R3Injector[${e.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(e,t,n){if(!(e=se(e)))return!1;let r=me(e);const i=null==r&&e.ngModule||void 0,o=void 0===i?e:i,s=-1!==n.indexOf(o);if(void 0!==i&&(r=me(i)),null==r)return!1;if(null!=r.imports&&!s){let e;n.push(o);try{rr(r.imports,r=>{this.processInjectorType(r,t,n)&&(void 0===e&&(e=[]),e.push(r))})}finally{}if(void 0!==e)for(let t=0;t<e.length;t++){const{ngModule:n,providers:r}=e[t];rr(r,e=>this.processProvider(e,n,r||Le))}}this.injectorDefTypes.add(o);const a=lt(o)||(()=>new o);this.records.set(o,Ts(a,ws));const l=r.providers;if(null!=l&&!s){const t=e;rr(l,e=>this.processProvider(e,t,l))}return void 0!==i&&void 0!==e.providers}processProvider(e,t,n){let r=xs(e=se(e))?e:se(e&&e.provide);const i=function(e,t,n){return Ss(e)?Ts(void 0,e.useValue):Ts(Fs(e),ws)}(e);if(xs(e)||!0!==e.multi)this.records.get(r);else{let t=this.records.get(r);t||(t=Ts(void 0,ws,!0),t.factory=()=>wr(t.multi),this.records.set(r,t)),r=e,t.multi.push(e)}this.records.set(r,i)}hydrate(e,t){var n;return t.value===ws&&(t.value=vs,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){if(!e.providedIn)return!1;const t=se(e.providedIn);return"string"==typeof t?"any"===t||t===this.scope:this.injectorDefTypes.has(t)}}function Es(e){const t=fe(e),n=null!==t?t.factory:lt(e);if(null!==n)return n;if(e instanceof Zn)throw new Error(`Token ${ne(e)} is missing a \u0275prov definition.`);if(e instanceof Function)return function(e){const t=e.length;if(t>0){const n=sr(t,"?");throw new Error(`Can't resolve all parameters for ${ne(e)}: (${n.join(", ")}).`)}const n=function(e){const t=e&&(e[ye]||e[ve]);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 Fs(e,t,n){let r;if(xs(e)){const t=se(e);return lt(t)||Es(t)}if(Ss(e))r=()=>se(e.useValue);else if((i=e)&&i.useFactory)r=()=>e.useFactory(...wr(e.deps||[]));else if(function(e){return!(!e||!e.useExisting)}(e))r=()=>mr(se(e.useExisting));else{const t=se(e&&(e.useClass||e.provide));if(!function(e){return!!e.deps}(e))return lt(t)||Es(t);r=()=>new t(...wr(e.deps))}var i;return r}function Ts(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function Ss(e){return null!==e&&"object"==typeof e&&dr in e}function xs(e){return"function"==typeof e}const Qs=function(e,t,n){return function(e,t=null,n=null,r){const i=Bs(e,t,n,r);return i._resolveInjectorDefTypes(),i}({name:n},t,e,n)};class ks{static create(e,t){return Array.isArray(e)?Qs(e,t,""):Qs(e.providers,e.parent,e.name||"")}}function Us(e,t){An(gi(e)[1],Lt())}function Os(e){let t=Object.getPrototypeOf(e.type.prototype).constructor,n=!0;const r=[e];for(;t;){let i;if(at(e))i=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new Error("Directives cannot inherit Components");i=t.\u0275dir}if(i){if(n){r.push(i);const t=e;t.inputs=Is(e.inputs),t.declaredInputs=Is(e.declaredInputs),t.outputs=Is(e.outputs);const n=i.hostBindings;n&&Ms(e,n);const o=i.viewQuery,s=i.contentQueries;if(o&&Ls(e,o),s&&Ds(e,s),te(e.inputs,i.inputs),te(e.declaredInputs,i.declaredInputs),te(e.outputs,i.outputs),at(i)&&i.data.animation){const t=e.data;t.animation=(t.animation||[]).concat(i.data.animation)}}const t=i.features;if(t)for(let r=0;r<t.length;r++){const i=t[r];i&&i.ngInherit&&i(e),i===Os&&(n=!1)}}t=Object.getPrototypeOf(t)}!function(e){let t=0,n=null;for(let r=e.length-1;r>=0;r--){const i=e[r];i.hostVars=t+=i.hostVars,i.hostAttrs=bn(i.hostAttrs,n=bn(n,i.hostAttrs))}}(r)}function Is(e){return e===Ie?{}:e===Le?[]:e}function Ls(e,t){const n=e.viewQuery;e.viewQuery=n?(e,r)=>{t(e,r),n(e,r)}:t}function Ds(e,t){const n=e.contentQueries;e.contentQueries=n?(e,r,i)=>{t(e,r,i),n(e,r,i)}:t}function Ms(e,t){const n=e.hostBindings;e.hostBindings=n?(e,r)=>{t(e,r),n(e,r)}:t}ks.THROW_IF_NOT_FOUND=Ar,ks.NULL=new ms,ks.\u0275prov=de({token:ks,providedIn:"any",factory:()=>mr(gs)}),ks.__NG_ELEMENT_ID__=-1;let Hs=null;function Rs(){if(!Hs){const e=Oe.Symbol;if(e&&e.iterator)Hs=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&&(Hs=n)}}}return Hs}class Ps{constructor(e){this.wrapped=e}static wrap(e){return new Ps(e)}static unwrap(e){return Ps.isWrapped(e)?e.wrapped:e}static isWrapped(e){return e instanceof Ps}}function Ns(e){return!!Ks(e)&&(Array.isArray(e)||!(e instanceof Map)&&Rs()in e)}function Ks(e){return null!==e&&("function"==typeof e||"object"==typeof e)}function Vs(e,t,n){return e[t]=n}function Gs(e,t,n){return!Object.is(e[t],n)&&(e[t]=n,!0)}function js(e,t,n,r){const i=Gs(e,t,n);return Gs(e,t+1,r)||i}function qs(e,t,n,r,i){const o=js(e,t,n,r);return Gs(e,t+2,i)||o}function zs(e,t,n,r){const i=Ut();return Gs(i,jt(),t)&&(Ot(),$o(cn(),i,e,t,n,r)),zs}function Ws(e,t,n,r){return Gs(e,jt(),n)?t+ce(n)+r:mo}function Xs(e,t,n,r,i,o){const s=js(e,Gt(),n,i);return qt(2),s?t+ce(n)+r+ce(i)+o:mo}function Js(e,t,n,r,i,o){const s=Ut(),a=Ws(s,t,n,r);return a!==mo&&$o(cn(),s,e,a,i,o),Js}function $s(e,t,n,r,i,o,s,a){const l=Ut(),c=Ot(),A=e+et,u=c.firstCreatePass?function(e,t,n,r,i,o,s,a,l){const c=t.consts,A=So(t,e,4,s||null,Tt(c,a));Vo(t,n,A,Tt(c,l)),An(t,A);const u=A.tViews=Ro(2,A,r,i,o,t.directiveRegistry,t.pipeRegistry,null,t.schemas,c);return null!==t.queries&&(t.queries.template(t,A),u.queries=t.queries.embeddedTView(A)),A}(A,c,l,t,n,r,i,o,s):c.data[A];Ht(u,!1);const h=l[11].createComment("");Xi(c,l,h,u),fi(h,l),is(l,l[A]=es(h,l,h,u)),st(u)&&Do(c,l,u),null!=s&&Mo(l,u,a)}function Ys(e){return Bt(Qt.lFrame.contextLView,et+e)}function Zs(e,t=Ce.Default){const n=Ut();return null===n?mr(e,t):Dn(Lt(),n,se(e),t)}function ea(e,t,n){const r=Ut();return Gs(r,jt(),t)&&Ko(Ot(),cn(),r,e,t,r[11],n,!1),ea}function ta(e,t,n,r,i){const o=i?"class":"style";ds(e,n,t.inputs[o],o,r)}function na(e,t,n,r){const i=Ut(),o=Ot(),s=et+e,a=i[11],l=i[s]=Oi(a,t,Qt.lFrame.currentNamespace),c=o.firstCreatePass?function(e,t,n,r,i,o,s){const a=t.consts,l=So(t,e,2,i,Tt(a,o));return Vo(t,n,l,Tt(a,s)),null!==l.attrs&&fs(l,l.attrs,!1),null!==l.mergedAttrs&&fs(l,l.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,l),l}(s,o,i,0,t,n,r):o.data[s];Ht(c,!0);const A=c.mergedAttrs;null!==A&&yn(a,l,A);const u=c.classes;null!==u&&ro(a,l,u);const h=c.styles;null!==h&&no(a,l,h),64!=(64&c.flags)&&Xi(o,i,l,c),0===Qt.lFrame.elementDepthCount&&fi(l,i),Qt.lFrame.elementDepthCount++,st(c)&&(Do(o,i,c),Lo(o,c,i)),null!==r&&Mo(i,c)}function ra(){let e=Lt();Rt()?Pt():(e=e.parent,Ht(e,!1));const t=e;Qt.lFrame.elementDepthCount--;const n=Ot();n.firstCreatePass&&(An(n,e),it(e)&&n.queries.elementEnd(e)),null!=t.classesWithoutHost&&function(e){return 0!=(16&e.flags)}(t)&&ta(n,t,Ut(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function(e){return 0!=(32&e.flags)}(t)&&ta(n,t,Ut(),t.stylesWithoutHost,!1)}function ia(e,t,n,r){na(e,t,n,r),ra()}function oa(e,t,n){const r=Ut(),i=Ot(),o=e+et,s=i.firstCreatePass?function(e,t,n,r,i){const o=t.consts,s=Tt(o,r),a=So(t,e,8,"ng-container",s);return null!==s&&fs(a,s,!0),Vo(t,n,a,Tt(o,i)),null!==t.queries&&t.queries.elementStart(t,a),a}(o,i,r,t,n):i.data[o];Ht(s,!0);const a=r[o]=r[11].createComment("");Xi(i,r,a,s),fi(a,r),st(s)&&(Do(i,r,s),Lo(i,s,r)),null!=n&&Mo(r,s)}function sa(){let e=Lt();const t=Ot();Rt()?Pt():(e=e.parent,Ht(e,!1)),t.firstCreatePass&&(An(t,e),it(e)&&t.queries.elementEnd(e))}function aa(){return Ut()}function la(e){return!!e&&"function"==typeof e.then}const ca=function(e){return!!e&&"function"==typeof e.subscribe};function Aa(e,t,n,r){const i=Ut(),o=Ot(),s=Lt();return function(e,t,n,r,i,o,s,a){const l=st(r),c=e.firstCreatePass&&us(e),A=As(t);let u=!0;if(3&r.type||a){const h=bt(r,t),d=a?a(h):h,p=A.length,f=a?e=>a(wt(e[r.index])):r.index;if(mt(n)){let s=null;if(!a&&l&&(s=function(e,t,n,r){const i=e.cleanup;if(null!=i)for(let o=0;o<i.length-1;o+=2){const e=i[o];if(e===n&&i[o+1]===r){const e=t[7],n=i[o+2];return e.length>n?e[n]:null}"string"==typeof e&&(o+=2)}return null}(e,t,i,r.index)),null!==s)(s.__ngLastListenerFn__||s).__ngNextListenerFn__=o,s.__ngLastListenerFn__=o,u=!1;else{o=ha(r,t,0,o,!1);const e=n.listen(d,i,o);A.push(o,e),c&&c.push(i,f,p,p+1)}}else o=ha(r,t,0,o,!0),d.addEventListener(i,o,s),A.push(o),c&&c.push(i,f,p,s)}else o=ha(r,t,0,o,!1);const h=r.outputs;let d;if(u&&null!==h&&(d=h[i])){const e=d.length;if(e)for(let n=0;n<e;n+=2){const e=t[d[n]][d[n+1]].subscribe(o),s=A.length;A.push(o,e),c&&c.push(i,r.index,s,-(s+1))}}}(o,i,i[11],s,e,t,!!n,r),Aa}function ua(e,t,n,r){try{return!1!==n(r)}catch(i){return hs(e,i),!1}}function ha(e,t,n,r,i){return function n(o){if(o===Function)return r;const s=2&e.flags?_t(e.index,t):t;0==(32&t[2])&&os(s);let a=ua(t,0,r,o),l=n.__ngNextListenerFn__;for(;l;)a=ua(t,0,l,o)&&a,l=l.__ngNextListenerFn__;return i&&!1===a&&(o.preventDefault(),o.returnValue=!1),a}}function da(e=1){return function(e){return(Qt.lFrame.contextLView=function(e,t){for(;e>0;)t=t[15],e--;return t}(e,Qt.lFrame.contextLView))[8]}(e)}function pa(e,t){let n=null;const r=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 i=0;i<t.length;i++){const o=t[i];if("*"!==o){if(null===r?ho(e,o,!0):po(r,o))return i}else n=i}return n}function fa(e){const t=Ut()[16][6];if(!t.projection){const n=t.projection=sr(e?e.length:1,null),r=n.slice();let i=t.child;for(;null!==i;){const t=e?pa(i,e):0;null!==t&&(r[t]?r[t].projectionNext=i:n[t]=i,r[t]=i),i=i.next}}}function ga(e,t=0,n){const r=Ut(),i=Ot(),o=So(i,et+e,16,null,n||null);null===o.projection&&(o.projection=t),Pt(),64!=(64&o.flags)&&function(e,t,n){to(t[11],0,t,n,Hi(e,n,t),Gi(n.parent||t[6],n,t))}(i,r,o)}function ma(e,t,n){return ya(e,"",t,"",n),ma}function ya(e,t,n,r,i){const o=Ut(),s=Ws(o,t,n,r);return s!==mo&&Ko(Ot(),cn(),o,e,s,o[11],i,!1),ya}function wa(e,t,n,r,i,o,s){const a=Ut(),l=Xs(a,t,n,r,i,o);return l!==mo&&Ko(Ot(),cn(),a,e,l,a[11],s,!1),wa}function va(e,t,n,r,i){const o=e[n+1],s=null===t;let a=r?bo(o):Bo(o),l=!1;for(;0!==a&&(!1===l||s);){const n=e[a+1];ba(e[a],t)&&(l=!0,e[a+1]=r?Eo(n):Co(n)),a=r?bo(n):Bo(n)}l&&(e[n+1]=r?Co(o):Eo(o))}function ba(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&cr(e,t)>=0}const Ca={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Ba(e){return e.substring(Ca.key,Ca.keyEnd)}function _a(e,t){const n=Ca.textEnd;return n===t?-1:(t=Ca.keyEnd=function(e,t,n){for(;t<n&&e.charCodeAt(t)>32;)t++;return t}(e,Ca.key=t,n),Ea(e,t,n))}function Ea(e,t,n){for(;t<n&&e.charCodeAt(t)<=32;)t++;return t}function Fa(e,t,n){return Qa(e,t,n,!1),Fa}function Ta(e,t){return Qa(e,t,null,!0),Ta}function Sa(e){!function(e,t,n,r){const i=Ot(),o=qt(2);i.firstUpdatePass&&Ua(i,null,o,r);const s=Ut();if(n!==mo&&Gs(s,o,n)){const a=i.data[an()];if(Ha(a,r)&&!ka(i,o)){let e=a.classesWithoutHost;null!==e&&(n=re(e,n||"")),ta(i,a,s,n,r)}else!function(e,t,n,r,i,o,s,a){i===mo&&(i=Le);let l=0,c=0,A=0<i.length?i[0]:null,u=0<o.length?o[0]:null;for(;null!==A||null!==u;){const s=l<i.length?i[l+1]:void 0,h=c<o.length?o[c+1]:void 0;let d,p=null;A===u?(l+=2,c+=2,s!==h&&(p=u,d=h)):null===u||null!==A&&A<u?(l+=2,p=A):(c+=2,p=u,d=h),null!==p&&La(e,t,n,r,p,d,true,a),A=l<i.length?i[l]:null,u=c<o.length?o[c]:null}}(i,a,s,s[11],s[o+1],s[o+1]=function(e,t,n){if(null==n||""===n)return Le;const r=[],i=Dr(n);if(Array.isArray(i))for(let o=0;o<i.length;o++)e(r,i[o],!0);else if("object"==typeof i)for(const o in i)i.hasOwnProperty(o)&&e(r,o,i[o]);else"string"==typeof i&&t(r,i);return r}(e,t,n),0,o)}}(ar,xa,e,!0)}function xa(e,t){for(let n=function(e){return function(e){Ca.key=0,Ca.keyEnd=0,Ca.value=0,Ca.valueEnd=0,Ca.textEnd=e.length}(e),_a(e,Ea(e,0,Ca.textEnd))}(t);n>=0;n=_a(t,n))ar(e,Ba(t),!0)}function Qa(e,t,n,r){const i=Ut(),o=Ot(),s=qt(2);o.firstUpdatePass&&Ua(o,e,s,r),t!==mo&&Gs(i,s,t)&&La(o,o.data[an()],i,i[11],e,i[s+1]=function(e,t){return null==e||("string"==typeof t?e+=t:"object"==typeof e&&(e=ne(Dr(e)))),e}(t,n),r,s)}function ka(e,t){return t>=e.expandoStartIndex}function Ua(e,t,n,r){const i=e.data;if(null===i[n+1]){const o=i[an()],s=ka(e,n);Ha(o,r)&&null===t&&!s&&(t=!1),t=function(e,t,n,r){const i=function(e){const t=Qt.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}(e);let o=r?t.residualClasses:t.residualStyles;if(null===i)0===(r?t.classBindings:t.styleBindings)&&(n=Ia(n=Oa(null,e,t,n,r),t.attrs,r),o=null);else{const s=t.directiveStylingLast;if(-1===s||e[s]!==i)if(n=Oa(i,e,t,n,r),null===o){let n=function(e,t,n){const r=n?t.classBindings:t.styleBindings;if(0!==Bo(r))return e[bo(r)]}(e,t,r);void 0!==n&&Array.isArray(n)&&(n=Oa(null,e,t,n[1],r),n=Ia(n,t.attrs,r),function(e,t,n,r){e[bo(n?t.classBindings:t.styleBindings)]=r}(e,t,r,n))}else o=function(e,t,n){let r;const i=t.directiveEnd;for(let o=1+t.directiveStylingLast;o<i;o++)r=Ia(r,e[o].hostAttrs,n);return Ia(r,t.attrs,n)}(e,t,r)}return void 0!==o&&(r?t.residualClasses=o:t.residualStyles=o),n}(i,o,t,r),function(e,t,n,r,i,o){let s=o?t.classBindings:t.styleBindings,a=bo(s),l=Bo(s);e[r]=n;let c,A=!1;if(Array.isArray(n)){const e=n;c=e[1],(null===c||cr(e,c)>0)&&(A=!0)}else c=n;if(i)if(0!==l){const t=bo(e[a+1]);e[r+1]=vo(t,a),0!==t&&(e[t+1]=_o(e[t+1],r)),e[a+1]=131071&e[a+1]|r<<17}else e[r+1]=vo(a,0),0!==a&&(e[a+1]=_o(e[a+1],r)),a=r;else e[r+1]=vo(l,0),0===a?a=r:e[l+1]=_o(e[l+1],r),l=r;A&&(e[r+1]=Co(e[r+1])),va(e,c,r,!0),va(e,c,r,!1),function(e,t,n,r,i){const o=i?e.residualClasses:e.residualStyles;null!=o&&"string"==typeof t&&cr(o,t)>=0&&(n[r+1]=Eo(n[r+1]))}(t,c,e,r,o),s=vo(a,l),o?t.classBindings=s:t.styleBindings=s}(i,o,t,n,s,r)}}function Oa(e,t,n,r,i){let o=null;const s=n.directiveEnd;let a=n.directiveStylingLast;for(-1===a?a=n.directiveStart:a++;a<s&&(o=t[a],r=Ia(r,o.hostAttrs,i),o!==e);)a++;return null!==e&&(n.directiveStylingLast=a),r}function Ia(e,t,n){const r=n?1:2;let i=-1;if(null!==t)for(let o=0;o<t.length;o++){const s=t[o];"number"==typeof s?i=s:i===r&&(Array.isArray(e)||(e=void 0===e?[]:["",e]),ar(e,s,!!n||t[++o]))}return void 0===e?null:e}function La(e,t,n,r,i,o,s,a){if(!(3&t.type))return;const l=e.data,c=l[a+1];Ma(1==(1&c)?Da(l,t,n,i,Bo(c),s):void 0)||(Ma(o)||2==(2&c)&&(o=Da(l,null,n,i,a,s)),function(e,t,n,r,i){const o=mt(e);if(t)i?o?e.addClass(n,r):n.classList.add(r):o?e.removeClass(n,r):n.classList.remove(r);else{let t=-1===r.indexOf("-")?void 0:_i.DashCase;if(null==i)o?e.removeStyle(n,r,t):n.style.removeProperty(r);else{const s="string"==typeof i&&i.endsWith("!important");s&&(i=i.slice(0,-10),t|=_i.Important),o?e.setStyle(n,r,i,t):n.style.setProperty(r,i,s?"important":"")}}}(r,s,vt(an(),n),i,o))}function Da(e,t,n,r,i,o){const s=null===t;let a;for(;i>0;){const t=e[i],o=Array.isArray(t),l=o?t[1]:t,c=null===l;let A=n[i+1];A===mo&&(A=c?Le:void 0);let u=c?lr(A,r):l===r?A:void 0;if(o&&!Ma(u)&&(u=lr(t,r)),Ma(u)&&(a=u,s))return a;const h=e[i+1];i=s?bo(h):Bo(h)}if(null!==t){let e=o?t.residualClasses:t.residualStyles;null!=e&&(a=lr(e,r))}return a}function Ma(e){return void 0!==e}function Ha(e,t){return 0!=(e.flags&(t?16:32))}function Ra(e,t=""){const n=Ut(),r=Ot(),i=e+et,o=r.firstCreatePass?So(r,i,1,t,null):r.data[i],s=n[i]=Ui(n[11],t);Xi(r,n,s,o),Ht(o,!1)}function Pa(e){return Na("",e,""),Pa}function Na(e,t,n){const r=Ut(),i=Ws(r,e,t,n);return i!==mo&&ps(r,an(),i),Na}function Ka(e,t,n,r,i){const o=Ut(),s=Xs(o,e,t,n,r,i);return s!==mo&&ps(o,an(),s),Ka}function Va(e,t,n,r,i,o,s){const a=Ut(),l=function(e,t,n,r,i,o,s,a){const l=qs(e,Gt(),n,i,s);return qt(3),l?t+ce(n)+r+ce(i)+o+ce(s)+a:mo}(a,e,t,n,r,i,o,s);return l!==mo&&ps(a,an(),l),Va}function Ga(e,t,n){const r=Ut();return Gs(r,jt(),t)&&Ko(Ot(),cn(),r,e,t,r[11],n,!0),Ga}const ja=void 0;var qa=["en",[["a","p"],["AM","PM"],ja],[["AM","PM"],ja,ja],[["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"]],ja,[["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"]],ja,[["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}",ja,"{1} 'at' {0}",ja],[".",",",";","%","+","-","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 za={};function Wa(e){const t=function(e){return e.toLowerCase().replace(/_/g,"-")}(e);let n=Xa(t);if(n)return n;const r=t.split("-")[0];if(n=Xa(r),n)return n;if("en"===r)return qa;throw new Error(`Missing locale data for the locale "${e}".`)}function Xa(e){return e in za||(za[e]=Oe.ng&&Oe.ng.common&&Oe.ng.common.locales&&Oe.ng.common.locales[e]),za[e]}var Ja=(()=>((Ja=Ja||{})[Ja.LocaleId=0]="LocaleId",Ja[Ja.DayPeriodsFormat=1]="DayPeriodsFormat",Ja[Ja.DayPeriodsStandalone=2]="DayPeriodsStandalone",Ja[Ja.DaysFormat=3]="DaysFormat",Ja[Ja.DaysStandalone=4]="DaysStandalone",Ja[Ja.MonthsFormat=5]="MonthsFormat",Ja[Ja.MonthsStandalone=6]="MonthsStandalone",Ja[Ja.Eras=7]="Eras",Ja[Ja.FirstDayOfWeek=8]="FirstDayOfWeek",Ja[Ja.WeekendRange=9]="WeekendRange",Ja[Ja.DateFormat=10]="DateFormat",Ja[Ja.TimeFormat=11]="TimeFormat",Ja[Ja.DateTimeFormat=12]="DateTimeFormat",Ja[Ja.NumberSymbols=13]="NumberSymbols",Ja[Ja.NumberFormats=14]="NumberFormats",Ja[Ja.CurrencyCode=15]="CurrencyCode",Ja[Ja.CurrencySymbol=16]="CurrencySymbol",Ja[Ja.CurrencyName=17]="CurrencyName",Ja[Ja.Currencies=18]="Currencies",Ja[Ja.Directionality=19]="Directionality",Ja[Ja.PluralCase=20]="PluralCase",Ja[Ja.ExtraData=21]="ExtraData",Ja))();const $a="en-US",Ya={marker:"element"},Za={marker:"ICU"};var el=(()=>((el=el||{})[el.SHIFT=2]="SHIFT",el[el.APPEND_EAGERLY=1]="APPEND_EAGERLY",el[el.COMMENT=2]="COMMENT",el))();let tl=$a;function nl(e){var t;null==(t=e)&&he("Expected localeId to be defined",t,null,"!="),"string"==typeof e&&(tl=e.toLowerCase().replace(/_/g,"-"))}function rl(e,t,n){const r=t.insertBeforeIndex,i=Array.isArray(r)?r[0]:r;return null===i?ji(e,0,n):wt(n[i])}function il(e,t,n,r,i){const o=t.insertBeforeIndex;if(Array.isArray(o)){let s=r,a=null;if(3&t.type||(a=s,s=i),null!==s&&0==(2&t.flags))for(let t=1;t<o.length;t++)Pi(e,s,n[o[t]],a,!1)}}function ol(e,t){if(e.push(t),e.length>1)for(let n=e.length-2;n>=0;n--){const r=e[n];sl(r)||al(r,t)&&null===ll(r)&&cl(r,t.index)}}function sl(e){return!(64&e.type)}function al(e,t){return sl(t)||e.index>t.index}function ll(e){const t=e.insertBeforeIndex;return Array.isArray(t)?t[0]:t}function cl(e,t){const n=e.insertBeforeIndex;Array.isArray(n)?n[0]=t:(Wi(rl,il),e.insertBeforeIndex=t)}function Al(e,t,n){const r=xo(e,n,64,null,null);return ol(t,r),r}const ul=/\ufffd(\d+):?\d*\ufffd/gi,hl=/\ufffd(\d+)\ufffd/,dl=/^\s*(\ufffd\d+:?\d*\ufffd)\s*,\s*(select|plural)\s*,/,pl=/\ufffd\/?\*(\d+:\d+)\ufffd/gi,fl=/\ufffd(\/?[#*]\d+):?\d*\ufffd/gi,gl=/\uE500/g;function ml(e,t,n,r,i,o,s){const a=Qo(e,r,1,null);let l=a<<el.SHIFT,c=Mt();t===c&&(c=null),null===c&&(l|=el.APPEND_EAGERLY),s&&(l|=el.COMMENT,void 0===Ei&&(Ei=function(){const e=[];let t,n,r=-1;function i(e,t){r=0;const i=function(e,t){const n=t[e.currentCaseLViewIndex];return null===n?n:n<0?~n:n}(e,t);n=null!==i?e.remove[i]:Le}function o(){if(r<n.length){const s=n[r++];return s>0?t[s]:(e.push(r,n),i(t[1].data[~s],t),o())}return 0===e.length?null:(n=e.pop(),r=e.pop(),o())}return function(n,r){for(t=r;e.length;)e.pop();return i(n.value,r),o}}())),i.push(l,null===o?"":o);const A=xo(e,a,s?32:1,null===o?"":o,null);ol(n,A);const u=A.index;return Ht(A,!1),null!==c&&t!==c&&function(e,t){let n=e.insertBeforeIndex;var r;null===n?(Wi(rl,il),n=e.insertBeforeIndex=[null,t]):("Expecting array here",(r=Array.isArray(n))!=!0&&he("Expecting array here",r,true,"=="),n.push(t))}(c,u),A}function yl(e,t,n,r,i,o,s){const a=s.match(ul),l=ml(e,t,n,o,r,a?null:s,!1);a&&wl(i,s,l.index,null,0,null)}function wl(e,t,n,r,i,o){const s=e.length,a=s+1;e.push(null,null);const l=s+2,c=t.split(ul);let A=0;for(let u=0;u<c.length;u++){const t=c[u];if(1&u){const n=i+parseInt(t,10);e.push(-1-n),A|=vl(n)}else""!==t&&e.push(t)}return e.push(n<<2|(r?1:0)),r&&e.push(r,o),e[s]=A,e[a]=e.length-l,A}function vl(e){return 1<<Math.min(e,31)}function bl(e){let t,n,r="",i=0,o=!1;for(;null!==(t=pl.exec(e));)o?t[0]===`\ufffd/*${n}\ufffd`&&(i=t.index,o=!1):(r+=e.substring(i,t.index+t[0].length),n=t[1],o=!0);return r+=e.substr(i),r}function Cl(e,t,n,r,i,o){let s=0;const a={type:i.type,currentCaseLViewIndex:Qo(e,t,1,null),anchorIdx:o,cases:[],create:[],remove:[],update:[]};!function(e,t,n){e.push(vl(t.mainBinding),2,-1-t.mainBinding,n<<2|2)}(n,i,o),function(e,t,n){const r=e.data[t];null===r?e.data[t]=n:r.value=n}(e,o,a);const l=i.values;for(let c=0;c<l.length;c++){const o=l[c],A=[];for(let e=0;e<o.length;e++){const t=o[e];if("string"!=typeof t){const n=A.push(t)-1;o[e]=`\x3c!--\ufffd${n}\ufffd--\x3e`}}s=El(e,a,t,n,r,i.cases[c],o.join(""),A)|s}s&&function(e,t,n){e.push(t,1,n<<2|3)}(n,s,o)}function Bl(e){const t=[],n=[];let r=1,i=0;const o=_l(e=e.replace(dl,function(e,t,n){return r="select"===n?0:1,i=parseInt(t.substr(1),10),""}));for(let s=0;s<o.length;){let e=o[s++].trim();1===r&&(e=e.replace(/\s*(?:=)?(\w+)\s*/,"$1")),e.length&&t.push(e);const i=_l(o[s++]);t.length>n.length&&n.push(i)}return{type:r,mainBinding:i,cases:t,values:n}}function _l(e){if(!e)return[];let t=0;const n=[],r=[],i=/[{}]/g;let o;for(i.lastIndex=0;o=i.exec(e);){const i=o.index;if("}"==o[0]){if(n.pop(),0==n.length){const n=e.substring(t,i);dl.test(n)?r.push(Bl(n)):r.push(n),t=i+1}}else{if(0==n.length){const n=e.substring(t,i);r.push(n),t=i+1}n.push("{")}}const s=e.substring(t);return r.push(s),r}function El(e,t,n,r,i,o,s,a){const l=[],c=[],A=[];t.cases.push(o),t.create.push(l),t.remove.push(c),t.update.push(A);const u=Rr(gt()).getInertBodyElement(s),h=ci(u)||u;return h?Fl(e,t,n,r,l,c,A,h,i,a,0):0}function Fl(e,t,n,r,i,o,s,a,l,c,A){let u=0,h=a.firstChild;for(;h;){const a=Qo(e,n,1,null);switch(h.nodeType){case Node.ELEMENT_NODE:const d=h,p=d.tagName.toLowerCase();if(Yr.hasOwnProperty(p)){xl(i,Ya,p,l,a),e.data[a]=p;const f=d.attributes;for(let e=0;e<f.length;e++){const t=f.item(e),n=t.name.toLowerCase();t.value.match(ul)?ti.hasOwnProperty(n)&&wl(s,t.value,a,t.name,0,Zr[n]?Gr:ei[n]?jr:null):Ql(i,a,t)}u=Fl(e,t,n,r,i,o,s,h,a,c,A+1)|u,Tl(o,a,A)}break;case Node.TEXT_NODE:const f=h.textContent||"",g=f.match(ul);xl(i,null,g?"":f,l,a),Tl(o,a,A),g&&(u=wl(s,f,a,null,0,null)|u);break;case Node.COMMENT_NODE:const m=hl.exec(h.textContent||"");if(m){const t=c[parseInt(m[1],10)];xl(i,Za,"",l,a),Cl(e,n,r,l,t,a),Sl(o,a,A)}}h=h.nextSibling}return u}function Tl(e,t,n){0===n&&e.push(t)}function Sl(e,t,n){0===n&&(e.push(~t),e.push(t))}function xl(e,t,n,r,i){null!==t&&e.push(t),e.push(n,i,0|r<<17|i<<1)}function Ql(e,t,n){e.push(t<<1|1,n.name,n.value)}function kl(e,t,n){(function(e,t,n=-1){const r=Ot(),i=Ut(),o=et+e,s=Tt(r.consts,t),a=Mt();r.firstCreatePass&&function(e,t,n,r,i,o){const s=Mt(),a=[],l=[],c=[[]],A=(u=i=function(e,t){if(function(e){return-1===e}(t))return bl(e);{const n=e.indexOf(`:${t}\ufffd`)+2+t.toString().length,r=e.search(new RegExp(`\ufffd\\/\\*\\d+:${t}\ufffd`));return bl(e.substring(n,r))}}(i,o),u.replace(gl," ")).split(fl);var u;for(let h=0;h<A.length;h++){let r=A[h];if(0==(1&h)){const o=_l(r);for(let r=0;r<o.length;r++){let A=o[r];if(0==(1&r)){const t=A;""!==t&&yl(e,s,c[0],a,l,n,t)}else{const r=A;if("object"!=typeof r)throw new Error(`Unable to parse ICU expression in "${i}" message.`);Cl(e,n,l,t,r,ml(e,s,c[0],n,a,"",!0).index)}}}else{const t=47===r.charCodeAt(0),n=(r.charCodeAt(t?1:0),et+Number.parseInt(r.substring(t?2:1)));if(t)c.shift(),Ht(Mt(),!1);else{const t=Al(e,c[0],n);c.unshift([]),Ht(t,!0)}}}e.data[r]={create:a,update:l}}(r,null===a?0:a.index,i,o,s,n);const l=r.data[o],c=Ri(r,a===i[6]?null:a,i);!function(e,t,n,r){const i=e[11];for(let o=0;o<t.length;o++){const s=t[o++],a=t[o],l=(s&el.COMMENT)===el.COMMENT,c=(s&el.APPEND_EAGERLY)===el.APPEND_EAGERLY,A=s>>>el.SHIFT;let u=e[A];null===u&&(u=e[A]=l?i.createComment(a):Ui(i,a)),c&&null!==n&&Pi(i,n,u,r,!1)}}(i,l.create,c,a&&8&a.type?i[a.index]:null),zt(!0)})(e,t,n),zt(!1)}function Ul(e,t,n,r,i){if(e=se(e),Array.isArray(e))for(let o=0;o<e.length;o++)Ul(e[o],t,n,r,i);else{const o=Ot(),s=Ut();let a=xs(e)?e:se(e.provide),l=Fs(e);const c=Lt(),A=1048575&c.providerIndexes,u=c.directiveStart,h=c.providerIndexes>>20;if(xs(e)||!e.multi){const r=new mn(l,i,Zs),d=Ll(a,t,i?A:A+h,u);-1===d?(On(xn(c,s),o,a),Ol(o,e,t.length),t.push(a),c.directiveStart++,c.directiveEnd++,i&&(c.providerIndexes+=1048576),n.push(r),s.push(r)):(n[d]=r,s[d]=r)}else{const d=Ll(a,t,A+h,u),p=Ll(a,t,A,A+h),f=d>=0&&n[d],g=p>=0&&n[p];if(i&&!g||!i&&!f){On(xn(c,s),o,a);const A=function(e,t,n,r,i){const o=new mn(e,n,Zs);return o.multi=[],o.index=t,o.componentProviders=0,Il(o,i,r&&!n),o}(i?Ml:Dl,n.length,i,r,l);!i&&g&&(n[p].providerFactory=A),Ol(o,e,t.length,0),t.push(a),c.directiveStart++,c.directiveEnd++,i&&(c.providerIndexes+=1048576),n.push(A),s.push(A)}else Ol(o,e,d>-1?d:p,Il(n[i?p:d],l,!i&&r));!i&&r&&g&&n[p].componentProviders++}}}function Ol(e,t,n,r){const i=xs(t);if(i||t.useClass){const o=(t.useClass||t).prototype.ngOnDestroy;if(o){const s=e.destroyHooks||(e.destroyHooks=[]);if(!i&&t.multi){const e=s.indexOf(n);-1===e?s.push(n,[r,o]):s[e+1].push(r,o)}else s.push(n,o)}}}function Il(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function Ll(e,t,n,r){for(let i=n;i<r;i++)if(t[i]===e)return i;return-1}function Dl(e,t,n,r){return Hl(this.multi,[])}function Ml(e,t,n,r){const i=this.multi;let o;if(this.providerFactory){const e=this.providerFactory.componentProviders,t=Nn(n,n[1],this.providerFactory.index,r);o=t.slice(0,e),Hl(i,o);for(let n=e;n<t.length;n++)o.push(t[n])}else o=[],Hl(i,o);return o}function Hl(e,t){for(let n=0;n<e.length;n++)t.push((0,e[n])());return t}function Rl(e,t=[]){return n=>{n.providersResolver=(n,r)=>function(e,t,n){const r=Ot();if(r.firstCreatePass){const i=at(e);Ul(n,r.data,r.blueprint,i,!0),Ul(t,r.data,r.blueprint,i,!1)}}(n,r?r(e):e,t)}}class Pl{}class Nl{resolveComponentFactory(e){throw function(e){const t=Error(`No component factory found for ${ne(e)}. Did you add it to @NgModule.entryComponents?`);return t.ngComponent=e,t}(e)}}class Kl{}function Vl(...e){}function Gl(e,t){return new ql(bt(e,t))}Kl.NULL=new Nl;const jl=function(){return Gl(Lt(),Ut())};let ql=(()=>{class e{constructor(e){this.nativeElement=e}}return e.__NG_ELEMENT_ID__=jl,e})();function zl(e){return e instanceof ql?e.nativeElement:e}class Wl{}let Xl=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>Jl(),e})();const Jl=function(){const e=Ut(),t=_t(Lt().index,e);return function(e){return e[11]}(nt(t)?t:e)};let $l=(()=>{class e{}return e.\u0275prov=de({token:e,providedIn:"root",factory:()=>null}),e})();class Yl{constructor(e){this.full=e,this.major=e.split(".")[0],this.minor=e.split(".")[1],this.patch=e.split(".").slice(2).join(".")}}const Zl=new Yl("12.1.4");class ec{constructor(){}supports(e){return Ns(e)}create(e){return new nc(e)}}const tc=(e,t)=>t;class nc{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||tc}forEachItem(e){let t;for(t=this._itHead;null!==t;t=t._next)e(t)}forEachOperation(e){let t=this._itHead,n=this._removalsHead,r=0,i=null;for(;t||n;){const o=!n||t&&t.currentIndex<sc(n,r,i)?t:n,s=sc(o,r,i),a=o.currentIndex;if(o===n)r--,n=n._nextRemoved;else if(t=t._next,null==o.previousIndex)r++;else{i||(i=[]);const e=s-r,t=a-r;if(e!=t){for(let n=0;n<e;n++){const r=n<i.length?i[n]:i[n]=0,o=r+n;t<=o&&o<e&&(i[n]=r+1)}i[o.previousIndex]=t-e}}s!==a&&e(o,s,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=[]),!Ns(e))throw new Error(`Error trying to diff '${ne(e)}'. Only arrays and iterables are allowed`);return this.check(e)?this:null}onDestroy(){}check(e){this._reset();let t,n,r,i=this._itHead,o=!1;if(Array.isArray(e)){this.length=e.length;for(let t=0;t<this.length;t++)n=e[t],r=this._trackByFn(t,n),null!==i&&Object.is(i.trackById,r)?(o&&(i=this._verifyReinsertion(i,n,r,t)),Object.is(i.item,n)||this._addIdentityChange(i,n)):(i=this._mismatch(i,n,r,t),o=!0),i=i._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[Rs()]();let r;for(;!(r=n.next()).done;)t(r.value)}}(e,e=>{r=this._trackByFn(t,e),null!==i&&Object.is(i.trackById,r)?(o&&(i=this._verifyReinsertion(i,e,r,t)),Object.is(i.item,e)||this._addIdentityChange(i,e)):(i=this._mismatch(i,e,r,t),o=!0),i=i._next,t++}),this.length=t;return this._truncate(i),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,r){let i;return null===e?i=this._itTail:(i=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,i,r)):null!==(e=null===this._linkedRecords?null:this._linkedRecords.get(n,r))?(Object.is(e.item,t)||this._addIdentityChange(e,t),this._moveAfter(e,i,r)):e=this._addAfter(new rc(t,n),i,r),e}_verifyReinsertion(e,t,n,r){let i=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==i?e=this._reinsertAfter(i,e._prev,r):e.currentIndex!=r&&(e.currentIndex=r,this._addToMoves(e,r)),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 r=e._prevRemoved,i=e._nextRemoved;return null===r?this._removalsHead=i:r._nextRemoved=i,null===i?this._removalsTail=r:i._prevRemoved=r,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 r=null===t?this._itHead:t._next;return e._next=r,e._prev=t,null===r?this._itTail=e:r._prev=e,null===t?this._itHead=e:t._next=e,null===this._linkedRecords&&(this._linkedRecords=new oc),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 oc),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 rc{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 ic{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 oc{constructor(){this.map=new Map}put(e){const t=e.trackById;let n=this.map.get(t);n||(n=new ic,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 sc(e,t,n){const r=e.previousIndex;if(null===r)return r;let i=0;return n&&r<n.length&&(i=n[r]),r+t+i}class ac{constructor(){}supports(e){return e instanceof Map||Ks(e)}create(){return new lc}}class lc{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||Ks(e)))throw new Error(`Error trying to diff '${ne(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 r=this._getOrCreateRecordForKey(n,e);t=this._insertBeforeOrAppend(t,r)}}),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 r=n._prev,i=n._next;return r&&(r._next=i),i&&(i._prev=r),n._next=null,n._prev=null,n}const n=new cc(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 cc{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 Ac(){return new uc([new ec])}let uc=(()=>{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||Ac()),deps:[[e,new Br,new Cr]]}}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=de({token:e,providedIn:"root",factory:Ac}),e})();function hc(){return new dc([new ac])}let dc=(()=>{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||hc()),deps:[[e,new Br,new Cr]]}}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=de({token:e,providedIn:"root",factory:hc}),e})();function pc(e,t,n,r,i=!1){for(;null!==n;){const o=t[n.index];if(null!==o&&r.push(wt(o)),rt(o))for(let e=tt;e<o.length;e++){const t=o[e],n=t[1].firstChild;null!==n&&pc(t[1],t,n,r)}const s=n.type;if(8&s)pc(e,t,n.child,r);else if(32&s){const e=Fi(n,t);let i;for(;i=e();)r.push(i)}else if(16&s){const e=$i(t,n);if(Array.isArray(e))r.push(...e);else{const n=Ti(t[16]);pc(n[1],n,e,r,!0)}}n=i?n.projectionNext:n.next}return r}class fc{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 pc(t,e,t.firstChild,[])}get context(){return this._lView[8]}set context(e){this._lView[8]=e}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(rt(e)){const t=e[8],n=t?t.indexOf(this):-1;n>-1&&(Li(e,n),or(t,n))}this._attachedToViewContainer=!1}Di(this._lView[1],this._lView)}onDestroy(e){Po(this._lView[1],this._lView,null,e)}markForCheck(){os(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){ss(this._lView[1],this._lView,this.context)}checkNoChanges(){!function(e,t,n){Kt(!0);try{ss(e,t,n)}finally{Kt(!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,eo(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 gc extends fc{constructor(e){super(e),this._view=e}detectChanges(){as(this._view)}checkNoChanges(){!function(e){Kt(!0);try{as(e)}finally{Kt(!1)}}(this._view)}get context(){return null}}const mc=function(e){return function(e,t,n){if(ot(e)&&!n){const n=_t(e.index,t);return new fc(n,n)}return 47&e.type?new fc(t[16],t):null}(Lt(),Ut(),16==(16&e))};let yc=(()=>{class e{}return e.__NG_ELEMENT_ID__=mc,e})();const wc=[new ac],vc=new uc([new ec]),bc=new dc(wc),Cc=function(){return Fc(Lt(),Ut())};let Bc=(()=>{class e{}return e.__NG_ELEMENT_ID__=Cc,e})();const _c=Bc,Ec=class extends _c{constructor(e,t,n){super(),this._declarationLView=e,this._declarationTContainer=t,this.elementRef=n}createEmbeddedView(e){const 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];const r=this._declarationLView[19];return null!==r&&(n[19]=r.createEmbeddedView(t)),ko(t,n,e),new fc(n)}};function Fc(e,t){return 4&e.type?new Ec(t,e,Gl(e,t)):null}class Tc{}class Sc{}const xc=function(){return Lc(Lt(),Ut())};let Qc=(()=>{class e{}return e.__NG_ELEMENT_ID__=xc,e})();const kc=Qc,Uc=class extends kc{constructor(e,t,n){super(),this._lContainer=e,this._hostTNode=t,this._hostLView=n}get element(){return Gl(this._hostTNode,this._hostLView)}get injector(){return new Gn(this._hostTNode,this._hostLView)}get parentInjector(){const e=Un(this._hostTNode,this._hostLView);if(Bn(e)){const t=En(e,this._hostLView),n=_n(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=Oc(this._lContainer);return null!==t&&t[e]||null}get length(){return this._lContainer.length-tt}createEmbeddedView(e,t,n){const r=e.createEmbeddedView(t||{});return this.insert(r,n),r}createComponent(e,t,n,r,i){const o=n||this.parentInjector;if(!i&&null==e.ngModule&&o){const e=o.get(Tc,null);e&&(i=e)}const s=e.create(o,r,void 0,i);return this.insert(s.hostView,t),s}insert(e,t){const n=e._lView,r=n[1];if(rt(n[3])){const t=this.indexOf(e);if(-1!==t)this.detach(t);else{const t=n[3],r=new Uc(t,t[6],t[3]);r.detach(r.indexOf(e))}}const i=this._adjustIndex(t),o=this._lContainer;!function(e,t,n,r){const i=tt+r,o=n.length;r>0&&(n[i-1][4]=t),r<o-tt?(t[4]=n[i],ir(n,tt+r,t)):(n.push(t),t[4]=null),t[3]=n;const s=t[17];null!==s&&n!==s&&function(e,t){const n=e[9];t[16]!==t[3][3][16]&&(e[2]=!0),null===n?e[9]=[t]:n.push(t)}(s,t);const a=t[19];null!==a&&a.insertView(e),t[2]|=128}(r,n,o,i);const s=Yi(i,o),a=n[11],l=Vi(a,o[7]);return null!==l&&function(e,t,n,r,i,o){r[0]=i,r[6]=t,eo(e,r,n,1,i,o)}(r,o[6],a,n,l,s),e.attachToViewContainerRef(),ir(Ic(o),i,e),e}move(e,t){return this.insert(e,t)}indexOf(e){const t=Oc(this._lContainer);return null!==t?t.indexOf(e):-1}remove(e){const t=this._adjustIndex(e,-1),n=Li(this._lContainer,t);n&&(or(Ic(this._lContainer),t),Di(n[1],n))}detach(e){const t=this._adjustIndex(e,-1),n=Li(this._lContainer,t);return n&&null!=or(Ic(this._lContainer),t)?new fc(n):null}_adjustIndex(e,t=0){return null==e?this.length+t:e}};function Oc(e){return e[8]}function Ic(e){return e[8]||(e[8]=[])}function Lc(e,t){let n;const r=t[e.index];if(rt(r))n=r;else{let i;if(8&e.type)i=wt(r);else{const n=t[11];i=n.createComment("");const r=bt(e,t);Pi(n,Vi(n,r),i,function(e,t){return mt(e)?e.nextSibling(t):t.nextSibling}(n,r),!1)}t[e.index]=n=es(r,t,i,e),is(t,n)}return new Uc(n,e,t)}const Dc={};class Mc extends Kl{constructor(e){super(),this.ngModule=e}resolveComponentFactory(e){const t=Ye(e);return new Pc(t,this.ngModule)}}function Hc(e){const t=[];for(let n in e)e.hasOwnProperty(n)&&t.push({propName:e[n],templateName:n});return t}const Rc=new Zn("SCHEDULER_TOKEN",{providedIn:"root",factory:()=>vi});class Pc extends Pl{constructor(e,t){super(),this.componentDef=e,this.ngModule=t,this.componentType=e.type,this.selector=e.selectors.map(go).join(","),this.ngContentSelectors=e.ngContentSelectors?e.ngContentSelectors:[],this.isBoundToModule=!!t}get inputs(){return Hc(this.componentDef.inputs)}get outputs(){return Hc(this.componentDef.outputs)}create(e,t,n,r){const i=(r=r||this.ngModule)?function(e,t){return{get:(n,r,i)=>{const o=e.get(n,Dc,i);return o!==Dc||r===Dc?o:t.get(n,r,i)}}}(e,r.injector):e,o=i.get(Wl,yt),s=i.get($l,null),a=o.createRenderer(null,this.componentDef),l=this.componentDef.selectors[0][0]||"div",c=n?function(e,t,n){if(mt(e))return e.selectRootElement(t,n===Se.ShadowDom);let r="string"==typeof t?e.querySelector(t):t;return r.textContent="",r}(a,n,this.componentDef.encapsulation):Oi(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)),A=this.componentDef.onPush?576:528,u={components:[],scheduler:vi,clean:cs,playerHandler:null,flags:0},h=Ro(0,null,null,1,0,null,null,null,null,null),d=To(null,h,u,A,null,null,o,a,s,i);let p,f;en(d);try{const e=function(e,t,n,r,i,o){const s=n[1];n[20]=e;const a=So(s,20,2,"#host",null),l=a.mergedAttrs=t.hostAttrs;null!==l&&(fs(a,l,!0),null!==e&&(yn(i,e,l),null!==a.classes&&ro(i,e,a.classes),null!==a.styles&&no(i,e,a.styles)));const c=r.createRenderer(e,t),A=To(n,Ho(t),null,t.onPush?64:16,n[20],a,r,c,null,null);return s.firstCreatePass&&(On(xn(a,n),s,t.type),qo(s,a),Wo(a,n.length,1)),is(n,A),n[20]=A}(c,this.componentDef,d,o,a);if(c)if(n)yn(a,c,["ng-version",Zl.full]);else{const{attrs:e,classes:t}=function(e){const t=[],n=[];let r=1,i=2;for(;r<e.length;){let o=e[r];if("string"==typeof o)2===i?""!==o&&t.push(o,e[++r]):8===i&&n.push(o);else{if(!Ao(i))break;i=o}r++}return{attrs:t,classes:n}}(this.componentDef.selectors[0]);e&&yn(a,c,e),t&&t.length>0&&ro(a,c,t.join(" "))}if(f=Ct(h,et),void 0!==t){const e=f.projection=[];for(let n=0;n<this.ngContentSelectors.length;n++){const r=t[n];e.push(null!=r?Array.from(r):null)}}p=function(e,t,n,r,i){const o=n[1],s=function(e,t,n){const r=Lt();e.firstCreatePass&&(n.providersResolver&&n.providersResolver(n),Xo(e,r,t,Qo(e,t,1,null),n));const i=Nn(t,e,r.directiveStart,r);fi(i,t);const o=bt(r,t);return o&&fi(o,t),i}(o,n,t);if(r.components.push(s),e[8]=s,i&&i.forEach(e=>e(s,t)),t.contentQueries){const e=Lt();t.contentQueries(1,s,e.directiveStart)}const a=Lt();return!o.firstCreatePass||null===t.hostBindings&&null===t.hostAttrs||(ln(a.index),Go(n[1],a,0,a.directiveStart,a.directiveEnd,t),jo(t,s)),s}(e,this.componentDef,d,u,[Us]),ko(h,d,null)}finally{sn()}return new Nc(this.componentType,p,Gl(f,d),d,f)}}class Nc extends class{}{constructor(e,t,n,r,i){super(),this.location=n,this._rootLView=r,this._tNode=i,this.instance=t,this.hostView=this.changeDetectorRef=new gc(r),this.componentType=e}get injector(){return new Gn(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(e){this.hostView.onDestroy(e)}}const Kc=new Map;class Vc extends Tc{constructor(e,t){super(),this._parent=t,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new Mc(this);const n=Ze(e),r=e[Pe]||null;r&&nl(r),this._bootstrapComponents=Bi(n.bootstrap),this._r3Injector=Bs(e,t,[{provide:Tc,useValue:this},{provide:Kl,useValue:this.componentFactoryResolver}],ne(e)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(e)}get(e,t=ks.THROW_IF_NOT_FOUND,n=Ce.Default){return e===ks||e===Tc||e===gs?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 Gc extends Sc{constructor(e){super(),this.moduleType=e,null!==Ze(e)&&function(e){const t=new Set;!function e(n){const r=Ze(n,!0),i=r.id;null!==i&&(function(e,t,n){if(t&&t!==n)throw new Error(`Duplicate module registered for ${e} - ${ne(t)} vs ${ne(t.name)}`)}(i,Kc.get(i),n),Kc.set(i,n));const o=Bi(r.imports);for(const s of o)t.has(s)||(t.add(s),e(s))}(e)}(e)}create(e){return new Vc(this.moduleType,e)}}function jc(e,t,n,r){return Jc(Ut(),Vt(),e,t,n,r)}function qc(e,t,n,r,i){return $c(Ut(),Vt(),e,t,n,r,i)}function zc(e,t,n,r,i,o){return Yc(Ut(),Vt(),e,t,n,r,i,o)}function Wc(e,t,n,r,i,o,s){return function(e,t,n,r,i,o,s,a,l){const c=t+n;return function(e,t,n,r,i,o){const s=js(e,t,n,r);return js(e,t+2,i,o)||s}(e,c,i,o,s,a)?Vs(e,c+4,l?r.call(l,i,o,s,a):r(i,o,s,a)):Xc(e,c+4)}(Ut(),Vt(),e,t,n,r,i,o,s)}function Xc(e,t){const n=e[t];return n===mo?void 0:n}function Jc(e,t,n,r,i,o){const s=t+n;return Gs(e,s,i)?Vs(e,s+1,o?r.call(o,i):r(i)):Xc(e,s+1)}function $c(e,t,n,r,i,o,s){const a=t+n;return js(e,a,i,o)?Vs(e,a+2,s?r.call(s,i,o):r(i,o)):Xc(e,a+2)}function Yc(e,t,n,r,i,o,s,a){const l=t+n;return qs(e,l,i,o,s)?Vs(e,l+3,a?r.call(a,i,o,s):r(i,o,s)):Xc(e,l+3)}function Zc(e,t){const n=Ot();let r;const i=e+et;n.firstCreatePass?(r=function(e,t){if(t)for(let n=t.length-1;n>=0;n--){const r=t[n];if(e===r.name)return r}throw new le("302",`The pipe '${e}' could not be found!`)}(t,n.pipeRegistry),n.data[i]=r,r.onDestroy&&(n.destroyHooks||(n.destroyHooks=[])).push(i,r.onDestroy)):r=n.data[i];const o=r.factory||(r.factory=lt(r.type)),s=_e(Zs);try{const e=Tn(!1),t=o();return Tn(e),function(e,t,n,r){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}(n,Ut(),i,t),t}finally{_e(s)}}function eA(e,t,n,r){const i=e+et,o=Ut(),s=Bt(o,i);return rA(o,nA(o,i)?$c(o,Vt(),t,s.transform,n,r,s):s.transform(n,r))}function tA(e,t,n,r,i){const o=e+et,s=Ut(),a=Bt(s,o);return rA(s,nA(s,o)?Yc(s,Vt(),t,a.transform,n,r,i,a):a.transform(n,r,i))}function nA(e,t){return e[1].data[t].pure}function rA(e,t){return Ps.isWrapped(t)&&(t=Ps.unwrap(t),e[Gt()]=mo),t}function iA(e){return t=>{setTimeout(e,void 0,t)}}const oA=class extends _{constructor(e=!1){super(),this.__isAsync=e}emit(e){super.next(e)}subscribe(e,t,n){var r,i,o;let s=e,a=t||(()=>null),l=n;if(e&&"object"==typeof e){const t=e;s=null===(r=t.next)||void 0===r?void 0:r.bind(t),a=null===(i=t.error)||void 0===i?void 0:i.bind(t),l=null===(o=t.complete)||void 0===o?void 0:o.bind(t)}this.__isAsync&&(a=iA(a),s&&(s=iA(s)),l&&(l=iA(l)));const c=super.subscribe({next:s,error:a,complete:l});return e instanceof h&&e.add(c),c}};function sA(){return this._results[Rs()]()}class aA{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=Rs(),n=aA.prototype;n[t]||(n[t]=sA)}get changes(){return this._changes||(this._changes=new oA)}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){const n=this;n.dirty=!1;const r=nr(e);(this._changesDetected=!function(e,t,n){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++){let i=e[r],o=t[r];if(n&&(i=n(i),o=n(o)),o!==i)return!1}return!0}(n._results,r,t))&&(n._results=r,n.length=r.length,n.last=r[this.length-1],n.first=r[0])}notifyOnChanges(){!this._changes||!this._changesDetected&&this._emitDistinctChangesOnly||this._changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}Symbol;class lA{constructor(e){this.queryList=e,this.matches=null}clone(){return new lA(this.queryList)}setDirty(){this.queryList.setDirty()}}class cA{constructor(e=[]){this.queries=e}createEmbeddedView(e){const t=e.queries;if(null!==t){const n=null!==e.contentQueries?e.contentQueries[0]:t.length,r=[];for(let e=0;e<n;e++){const n=t.getByIndex(e);r.push(this.queries[n.indexInDeclarationView].clone())}return new cA(r)}return null}insertView(e){this.dirtyQueriesWithMatches(e)}detachView(e){this.dirtyQueriesWithMatches(e)}dirtyQueriesWithMatches(e){for(let t=0;t<this.queries.length;t++)null!==BA(e,t).matches&&this.queries[t].setDirty()}}class AA{constructor(e,t,n=null){this.predicate=e,this.flags=t,this.read=n}}class uA{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 r=null!==t?t.length:0,i=this.getByIndex(n).embeddedTView(e,r);i&&(i.indexInDeclarationView=n,null!==t?t.push(i):t=[i])}return null!==t?new uA(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 hA{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 hA(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 r=0;r<n.length;r++){const i=n[r];this.matchTNodeWithReadOption(e,t,dA(t,i)),this.matchTNodeWithReadOption(e,t,Pn(t,e,i,!1,!1))}else n===Bc?4&t.type&&this.matchTNodeWithReadOption(e,t,-1):this.matchTNodeWithReadOption(e,t,Pn(t,e,n,!1,!1))}matchTNodeWithReadOption(e,t,n){if(null!==n){const r=this.metadata.read;if(null!==r)if(r===ql||r===Qc||r===Bc&&4&t.type)this.addMatch(t.index,-2);else{const n=Pn(t,e,r,!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 dA(e,t){const n=e.localNames;if(null!==n)for(let r=0;r<n.length;r+=2)if(n[r]===t)return n[r+1];return null}function pA(e,t,n,r){return-1===n?function(e,t){return 11&e.type?Gl(e,t):4&e.type?Fc(e,t):null}(t,e):-2===n?function(e,t,n){return n===ql?Gl(t,e):n===Bc?Fc(t,e):n===Qc?Lc(t,e):void 0}(e,t,r):Nn(e,e[1],n,t)}function fA(e,t,n,r){const i=t[19].queries[r];if(null===i.matches){const r=e.data,o=n.matches,s=[];for(let e=0;e<o.length;e+=2){const i=o[e];s.push(i<0?null:pA(t,r[i],o[e+1],n.metadata.read))}i.matches=s}return i.matches}function gA(e,t,n,r){const i=e.queries.getByIndex(n),o=i.matches;if(null!==o){const s=fA(e,t,i,n);for(let e=0;e<o.length;e+=2){const n=o[e];if(n>0)r.push(s[e/2]);else{const i=o[e+1],s=t[-n];for(let e=tt;e<s.length;e++){const t=s[e];t[17]===t[3]&&gA(t[1],t,i,r)}if(null!==s[9]){const e=s[9];for(let t=0;t<e.length;t++){const n=e[t];gA(n[1],n,i,r)}}}}}return r}function mA(e){const t=Ut(),n=Ot(),r=Jt();$t(r+1);const i=BA(n,r);if(e.dirty&&Et(t)===(2==(2&i.metadata.flags))){if(null===i.matches)e.reset([]);else{const o=i.crossesNgTemplate?gA(n,t,r,[]):fA(n,t,i,r);e.reset(o,zl),e.notifyOnChanges()}return!0}return!1}function yA(e,t,n){const r=Ot();r.firstCreatePass&&(CA(r,new AA(e,t,n),-1),2==(2&t)&&(r.staticViewQueries=!0)),bA(r,Ut(),t)}function wA(e,t,n,r){const i=Ot();if(i.firstCreatePass){const o=Lt();CA(i,new AA(t,n,r),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)}(i,e),2==(2&n)&&(i.staticContentQueries=!0)}bA(i,Ut(),n)}function vA(){return e=Ut(),t=Jt(),e[19].queries[t].queryList;var e,t}function bA(e,t,n){const r=new aA(4==(4&n));Po(e,t,r,r.destroy),null===t[19]&&(t[19]=new cA),t[19].queries.push(new lA(r))}function CA(e,t,n){null===e.queries&&(e.queries=new uA),e.queries.track(new hA(t,n))}function BA(e,t){return e.queries.getByIndex(t)}function _A(e,t){return Fc(e,t)}const EA=Yn("Input",e=>({bindingPropertyName:e})),FA=Yn("Output",e=>({bindingPropertyName:e})),TA=Yn("HostListener",(e,t)=>({eventName:e,args:t})),SA=new Zn("Application Initializer");let xA=(()=>{class e{constructor(e){this.appInits=e,this.resolve=Vl,this.reject=Vl,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]();if(la(t))e.push(t);else if(ca(t)){const n=new Promise((e,n)=>{t.subscribe({complete:e,error:n})});e.push(n)}}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)(mr(SA,8))},e.\u0275prov=de({token:e,factory:e.\u0275fac}),e})();const QA=new Zn("AppId"),kA={provide:QA,useFactory:function(){return`${UA()}${UA()}${UA()}`},deps:[]};function UA(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const OA=new Zn("Platform Initializer"),IA=new Zn("Platform ID"),LA=new Zn("appBootstrapListener");let DA=(()=>{class e{log(e){console.log(e)}warn(e){console.warn(e)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=de({token:e,factory:e.\u0275fac}),e})();const MA=new Zn("LocaleId"),HA=new Zn("DefaultCurrencyCode");class RA{constructor(e,t){this.ngModuleFactory=e,this.componentFactories=t}}const PA=function(e){return new Gc(e)},NA=PA,KA=function(e){return Promise.resolve(PA(e))},VA=function(e){const t=PA(e),n=Bi(Ze(e).declarations).reduce((e,t)=>{const n=Ye(t);return n&&e.push(new Pc(n)),e},[]);return new RA(t,n)},GA=VA,jA=function(e){return Promise.resolve(VA(e))};let qA=(()=>{class e{constructor(){this.compileModuleSync=NA,this.compileModuleAsync=KA,this.compileModuleAndAllComponentsSync=GA,this.compileModuleAndAllComponentsAsync=jA}clearCache(){}clearCacheFor(e){}getModuleId(e){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=de({token:e,factory:e.\u0275fac}),e})();const zA=(()=>Promise.resolve(0))();function WA(e){"undefined"==typeof Zone?zA.then(()=>{e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}class XA{constructor({enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:t=!1,shouldCoalesceRunChangeDetection:n=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new oA(!1),this.onMicrotaskEmpty=new oA(!1),this.onStable=new oA(!1),this.onError=new oA(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const r=this;r._nesting=0,r._outer=r._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(r._inner=r._inner.fork(new Zone.TaskTrackingZoneSpec)),e&&Zone.longStackTraceZoneSpec&&(r._inner=r._inner.fork(Zone.longStackTraceZoneSpec)),r.shouldCoalesceEventChangeDetection=!n&&t,r.shouldCoalesceRunChangeDetection=n,r.lastRequestAnimationFrameId=-1,r.nativeRequestAnimationFrame=function(){let e=Oe.requestAnimationFrame,t=Oe.cancelAnimationFrame;if("undefined"!=typeof Zone&&e&&t){const n=e[Zone.__symbol__("OriginalDelegate")];n&&(e=n);const r=t[Zone.__symbol__("OriginalDelegate")];r&&(t=r)}return{nativeRequestAnimationFrame:e,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,function(e){const t=()=>{!function(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(Oe,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,YA(e),e.isCheckStableRunning=!0,$A(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),YA(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,r,i,o,s,a)=>{try{return ZA(e),n.invokeTask(i,o,s,a)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===o.type||e.shouldCoalesceRunChangeDetection)&&t(),eu(e)}},onInvoke:(n,r,i,o,s,a,l)=>{try{return ZA(e),n.invoke(i,o,s,a,l)}finally{e.shouldCoalesceRunChangeDetection&&t(),eu(e)}},onHasTask:(t,n,r,i)=>{t.hasTask(r,i),n===r&&("microTask"==i.change?(e._hasPendingMicrotasks=i.microTask,YA(e),$A(e)):"macroTask"==i.change&&(e.hasPendingMacrotasks=i.macroTask))},onHandleError:(t,n,r,i)=>(t.handleError(r,i),e.runOutsideAngular(()=>e.onError.emit(i)),!1)})}(r)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!XA.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(XA.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,r){const i=this._inner,o=i.scheduleEventTask("NgZoneEvent: "+r,e,JA,Vl,Vl);try{return i.runTask(o,t,n)}finally{i.cancelTask(o)}}runGuarded(e,t,n){return this._inner.runGuarded(e,t,n)}runOutsideAngular(e){return this._outer.run(e)}}const JA={};function $A(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 YA(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function ZA(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function eu(e){e._nesting--,$A(e)}class tu{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new oA,this.onMicrotaskEmpty=new oA,this.onStable=new oA,this.onError=new oA}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,r){return e.apply(t,n)}}let nu=(()=>{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:()=>{XA.assertNotInAngularZone(),WA(()=>{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())WA(()=>{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 r=-1;t&&t>0&&(r=setTimeout(()=>{this._callbacks=this._callbacks.filter(e=>e.timeoutId!==r),e(this._didWork,this.getPendingTasks())},t)),this._callbacks.push({doneCb:e,timeoutId:r,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/plugins/task-tracking" 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)(mr(XA))},e.\u0275prov=de({token:e,factory:e.\u0275fac}),e})(),ru=(()=>{class e{constructor(){this._applications=new Map,su.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 su.findTestabilityInTree(this,e,t)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=de({token:e,factory:e.\u0275fac}),e})();class iu{addToWindow(e){}findTestabilityInTree(e,t,n){return null}}let ou,su=new iu,au=!0,lu=!1;const cu=new Zn("AllowMultipleToken");class Au{constructor(e,t){this.name=e,this.token=t}}function uu(e,t,n=[]){const r=`Platform: ${t}`,i=new Zn(r);return(t=[])=>{let o=hu();if(!o||o.injector.get(cu,!1))if(e)e(n.concat(t).concat({provide:i,useValue:!0}));else{const e=n.concat(t).concat({provide:i,useValue:!0},{provide:ys,useValue:"platform"});!function(e){if(ou&&!ou.destroyed&&!ou.injector.get(cu,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");ou=e.get(du);const t=e.get(OA,null);t&&t.forEach(e=>e())}(ks.create({providers:e,name:r}))}return function(e){const t=hu();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}(i)}}function hu(){return ou&&!ou.destroyed?ou:null}let du=(()=>{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 tu:("zone.js"===e?void 0:e)||new XA({enableLongStackTrace:(lu=!0,au),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}),r=[{provide:XA,useValue:n}];return n.run(()=>{const t=ks.create({providers:r,parent:this.injector,name:e.moduleType.name}),i=e.create(t),o=i.injector.get(wi,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)}});i.onDestroy(()=>{gu(this._modules,i),e.unsubscribe()})}),function(e,t,n){try{const r=n();return la(r)?r.catch(n=>{throw t.runOutsideAngular(()=>e.handleError(n)),n}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}(o,n,()=>{const e=i.injector.get(xA);return e.runInitializers(),e.donePromise.then(()=>(nl(i.injector.get(MA,$a)||$a),this._moduleDoBootstrap(i),i))})})}bootstrapModule(e,t=[]){const n=pu({},t);return function(e,t,n){const r=new Gc(n);return Promise.resolve(r)}(0,0,e).then(e=>this.bootstrapModuleFactory(e,n))}_moduleDoBootstrap(e){const t=e.injector.get(fu);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(e=>t.bootstrap(e));else{if(!e.instance.ngDoBootstrap)throw new Error(`The module ${ne(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)(mr(ks))},e.\u0275prov=de({token:e,factory:e.\u0275fac}),e})();function pu(e,t){return Array.isArray(t)?t.reduce(pu,e):Object.assign(Object.assign({},e),t)}let fu=(()=>{class e{constructor(e,t,n,r,i){this._zone=e,this._injector=t,this._exceptionHandler=n,this._componentFactoryResolver=r,this._initStatus=i,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 w(e=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{e.next(this._stable),e.complete()})}),s=new w(e=>{let t;this._zone.runOutsideAngular(()=>{t=this._zone.onStable.subscribe(()=>{XA.assertNotInAngularZone(),WA(()=>{this._stable||this._zone.hasPendingMacrotasks||this._zone.hasPendingMicrotasks||(this._stable=!0,e.next(!0))})})});const n=this._zone.onUnstable.subscribe(()=>{XA.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{e.next(!1)}))});return()=>{t.unsubscribe(),n.unsubscribe()}});this.isStable=j(o,s.pipe(Z()))}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 Pl?e:this._componentFactoryResolver.resolveComponentFactory(e),this.componentTypes.push(n.componentType);const r=n.isBoundToModule?void 0:this._injector.get(Tc),i=n.create(ks.NULL,[],t||n.selector,r),o=i.location.nativeElement,s=i.injector.get(nu,null),a=s&&i.injector.get(ru);return s&&a&&a.registerApplication(o,s),i.onDestroy(()=>{this.detachView(i.hostView),gu(this.components,i),a&&a.unregisterApplication(o)}),this._loadComponent(i),i}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;gu(this._views,t),t.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(LA,[]).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)(mr(XA),mr(ks),mr(wi),mr(Kl),mr(xA))},e.\u0275prov=de({token:e,factory:e.\u0275fac}),e})();function gu(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class mu{}class yu{}const wu={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"};let vu=(()=>{class e{constructor(e,t){this._compiler=e,this._config=t||wu}load(e){return this.loadAndCompile(e)}loadAndCompile(e){let[t,r]=e.split("#");return void 0===r&&(r="default"),n(255)(t).then(e=>e[r]).then(e=>bu(e,t,r)).then(e=>this._compiler.compileModuleAsync(e))}loadFactory(e){let[t,r]=e.split("#"),i="NgFactory";return void 0===r&&(r="default",i=""),n(255)(this._config.factoryPathPrefix+t+this._config.factoryPathSuffix).then(e=>e[r+i]).then(e=>bu(e,t,r))}}return e.\u0275fac=function(t){return new(t||e)(mr(qA),mr(yu,8))},e.\u0275prov=de({token:e,factory:e.\u0275fac}),e})();function bu(e,t,n){if(!e)throw new Error(`Cannot find '${n}' in '${t}'`);return e}const Cu=uu(null,"core",[{provide:IA,useValue:"unknown"},{provide:du,deps:[ks]},{provide:ru,deps:[]},{provide:DA,deps:[]}]),Bu=[{provide:fu,useClass:fu,deps:[XA,ks,wi,Kl,xA]},{provide:Rc,deps:[XA],useFactory:function(e){let t=[];return e.onStable.subscribe(()=>{for(;t.length;)t.pop()()}),function(e){t.push(e)}}},{provide:xA,useClass:xA,deps:[[new Cr,SA]]},{provide:qA,useClass:qA,deps:[]},kA,{provide:uc,useFactory:function(){return vc},deps:[]},{provide:dc,useFactory:function(){return bc},deps:[]},{provide:MA,useFactory:function(e){return nl(e=e||"undefined"!=typeof $localize&&$localize.locale||$a),e},deps:[[new br(MA),new Cr,new Br]]},{provide:HA,useValue:"USD"}];let _u=(()=>{class e{constructor(e){}}return e.\u0275fac=function(t){return new(t||e)(mr(fu))},e.\u0275mod=We({type:e}),e.\u0275inj=pe({providers:Bu}),e})(),Eu=null;function Fu(){return Eu}const Tu=new Zn("DocumentToken");let Su=(()=>{class e{historyGo(e){throw new Error("Not implemented")}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=de({factory:xu,token:e,providedIn:"platform"}),e})();function xu(){return mr(ku)}const Qu=new Zn("Location Initialized");let ku=(()=>{class e extends Su{constructor(e){super(),this._doc=e,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Fu().getBaseHref(this._doc)}onPopState(e){const t=Fu().getGlobalEventTarget(this._doc,"window");return t.addEventListener("popstate",e,!1),()=>t.removeEventListener("popstate",e)}onHashChange(e){const t=Fu().getGlobalEventTarget(this._doc,"window");return t.addEventListener("hashchange",e,!1),()=>t.removeEventListener("hashchange",e)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(e){this.location.pathname=e}pushState(e,t,n){Uu()?this._history.pushState(e,t,n):this.location.hash=n}replaceState(e,t,n){Uu()?this._history.replaceState(e,t,n):this.location.hash=n}forward(){this._history.forward()}back(){this._history.back()}historyGo(e=0){this._history.go(e)}getState(){return this._history.state}}return e.\u0275fac=function(t){return new(t||e)(mr(Tu))},e.\u0275prov=de({factory:Ou,token:e,providedIn:"platform"}),e})();function Uu(){return!!window.history.pushState}function Ou(){return new ku(mr(Tu))}function Iu(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 Lu(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 Du(e){return e&&"?"!==e[0]?"?"+e:e}let Mu=(()=>{class e{historyGo(e){throw new Error("Not implemented")}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=de({factory:Hu,token:e,providedIn:"root"}),e})();function Hu(e){const t=mr(Tu).location;return new Pu(mr(Su),t&&t.origin||"")}const Ru=new Zn("appBaseHref");let Pu=(()=>{class e extends Mu{constructor(e,t){if(super(),this._platformLocation=e,this._removeListenerFns=[],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}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}prepareExternalUrl(e){return Iu(this._baseHref,e)}path(e=!1){const t=this._platformLocation.pathname+Du(this._platformLocation.search),n=this._platformLocation.hash;return n&&e?`${t}${n}`:t}pushState(e,t,n,r){const i=this.prepareExternalUrl(n+Du(r));this._platformLocation.pushState(e,t,i)}replaceState(e,t,n,r){const i=this.prepareExternalUrl(n+Du(r));this._platformLocation.replaceState(e,t,i)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(e=0){var t,n;null===(n=(t=this._platformLocation).historyGo)||void 0===n||n.call(t,e)}}return e.\u0275fac=function(t){return new(t||e)(mr(Su),mr(Ru,8))},e.\u0275prov=de({token:e,factory:e.\u0275fac}),e})(),Nu=(()=>{class e extends Mu{constructor(e,t){super(),this._platformLocation=e,this._baseHref="",this._removeListenerFns=[],null!=t&&(this._baseHref=t)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}path(e=!1){let t=this._platformLocation.hash;return null==t&&(t="#"),t.length>0?t.substring(1):t}prepareExternalUrl(e){const t=Iu(this._baseHref,e);return t.length>0?"#"+t:t}pushState(e,t,n,r){let i=this.prepareExternalUrl(n+Du(r));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.pushState(e,t,i)}replaceState(e,t,n,r){let i=this.prepareExternalUrl(n+Du(r));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.replaceState(e,t,i)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(e=0){var t,n;null===(n=(t=this._platformLocation).historyGo)||void 0===n||n.call(t,e)}}return e.\u0275fac=function(t){return new(t||e)(mr(Su),mr(Ru,8))},e.\u0275prov=de({token:e,factory:e.\u0275fac}),e})(),Ku=(()=>{class e{constructor(e,t){this._subject=new oA,this._urlChangeListeners=[],this._platformStrategy=e;const n=this._platformStrategy.getBaseHref();this._platformLocation=t,this._baseHref=Lu(Gu(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+Du(t))}normalize(t){return e.stripTrailingSlash(function(e,t){return e&&t.startsWith(e)?t.substring(e.length):t}(this._baseHref,Gu(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+Du(t)),n)}replaceState(e,t="",n=null){this._platformStrategy.replaceState(n,"",e,t),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Du(t)),n)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(e=0){var t,n;null===(n=(t=this._platformStrategy).historyGo)||void 0===n||n.call(t,e)}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)(mr(Mu),mr(Su))},e.normalizeQueryParams=Du,e.joinWithSlash=Iu,e.stripTrailingSlash=Lu,e.\u0275prov=de({factory:Vu,token:e,providedIn:"root"}),e})();function Vu(){return new Ku(mr(Mu),mr(Su))}function Gu(e){return e.replace(/\/index.html$/,"")}var ju=(()=>((ju=ju||{})[ju.Decimal=0]="Decimal",ju[ju.Percent=1]="Percent",ju[ju.Currency=2]="Currency",ju[ju.Scientific=3]="Scientific",ju))(),qu=(()=>((qu=qu||{})[qu.Zero=0]="Zero",qu[qu.One=1]="One",qu[qu.Two=2]="Two",qu[qu.Few=3]="Few",qu[qu.Many=4]="Many",qu[qu.Other=5]="Other",qu))(),zu=(()=>((zu=zu||{})[zu.Decimal=0]="Decimal",zu[zu.Group=1]="Group",zu[zu.List=2]="List",zu[zu.PercentSign=3]="PercentSign",zu[zu.PlusSign=4]="PlusSign",zu[zu.MinusSign=5]="MinusSign",zu[zu.Exponential=6]="Exponential",zu[zu.SuperscriptingExponent=7]="SuperscriptingExponent",zu[zu.PerMille=8]="PerMille",zu[zu[1/0]=9]="Infinity",zu[zu.NaN=10]="NaN",zu[zu.TimeSeparator=11]="TimeSeparator",zu[zu.CurrencyDecimal=12]="CurrencyDecimal",zu[zu.CurrencyGroup=13]="CurrencyGroup",zu))();function Wu(e,t){const n=Wa(e),r=n[Ja.NumberSymbols][t];if(void 0===r){if(t===zu.CurrencyDecimal)return n[Ja.NumberSymbols][zu.Decimal];if(t===zu.CurrencyGroup)return n[Ja.NumberSymbols][zu.Group]}return r}const Xu=/^(\d+)?\.((\d+)(-(\d+))?)?$/,Ju=".",$u="0";function Yu(e){const t=parseInt(e);if(isNaN(t))throw new Error("Invalid integer literal when parsing "+e);return t}class Zu{}let eh=(()=>{class e extends Zu{constructor(e){super(),this.locale=e}getPluralCategory(e,t){switch(function(e){return Wa(e)[Ja.PluralCase]}(t||this.locale)(e)){case qu.Zero:return"zero";case qu.One:return"one";case qu.Two:return"two";case qu.Few:return"few";case qu.Many:return"many";default:return"other"}}}return e.\u0275fac=function(t){return new(t||e)(mr(MA))},e.\u0275prov=de({token:e,factory:e.\u0275fac}),e})();function th(e,t){t=encodeURIComponent(t);for(const n of e.split(";")){const e=n.indexOf("="),[r,i]=-1==e?[n,""]:[n.slice(0,e),n.slice(e+1)];if(r.trim()===t)return decodeURIComponent(i)}return null}let nh=(()=>{class e{constructor(e,t,n,r){this._iterableDiffers=e,this._keyValueDiffers=t,this._ngEl=n,this._renderer=r,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&&(Ns(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 ${ne(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)(Zs(uc),Zs(dc),Zs(ql),Zs(Xl))},e.\u0275dir=Je({type:e,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),e})();class rh{constructor(e,t,n,r){this.$implicit=e,this.ngForOf=t,this.index=n,this.count=r}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 ih=(()=>{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,r)=>{if(null==e.previousIndex){const n=this._viewContainer.createEmbeddedView(this._template,new rh(null,this._ngForOf,-1,-1),null===r?void 0:r),i=new oh(e,n);t.push(i)}else if(null==r)this._viewContainer.remove(null===n?void 0:n);else if(null!==n){const i=this._viewContainer.get(n);this._viewContainer.move(i,r);const o=new oh(e,i);t.push(o)}});for(let n=0;n<t.length;n++)this._perViewChange(t[n].view,t[n].record);for(let n=0,r=this._viewContainer.length;n<r;n++){const e=this._viewContainer.get(n);e.context.index=n,e.context.count=r,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)(Zs(Qc),Zs(Bc),Zs(uc))},e.\u0275dir=Je({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),e})();class oh{constructor(e,t){this.record=e,this.view=t}}let sh=(()=>{class e{constructor(e,t){this._viewContainer=e,this._context=new ah,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){lh("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){lh("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)(Zs(Qc),Zs(Bc))},e.\u0275dir=Je({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),e})();class ah{constructor(){this.$implicit=null,this.ngIf=null}}function lh(e,t){if(t&&!t.createEmbeddedView)throw new Error(`${e} must be a TemplateRef, but received '${ne(t)}'.`)}class ch{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 Ah=(()=>{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=Je({type:e,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"}}),e})(),uh=(()=>{class e{constructor(e,t,n){this.ngSwitch=n,n._addCase(),this._view=new ch(e,t)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return e.\u0275fac=function(t){return new(t||e)(Zs(Qc),Zs(Bc),Zs(Ah,9))},e.\u0275dir=Je({type:e,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),e})(),hh=(()=>{class e{constructor(e,t,n){n._addDefault(new ch(e,t))}}return e.\u0275fac=function(t){return new(t||e)(Zs(Qc),Zs(Bc),Zs(Ah,9))},e.\u0275dir=Je({type:e,selectors:[["","ngSwitchDefault",""]]}),e})(),dh=(()=>{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,r]=e.split(".");null!=(t=null!=t&&r?`${t}${r}`: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)(Zs(ql),Zs(dc),Zs(Xl))},e.\u0275dir=Je({type:e,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),e})(),ph=(()=>{class e{constructor(e){this._viewContainerRef=e,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}ngOnChanges(e){if(e.ngTemplateOutlet){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&&e.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return e.\u0275fac=function(t){return new(t||e)(Zs(Qc))},e.\u0275dir=Je({type:e,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[At]}),e})();function fh(e,t){return Error(`InvalidPipeArgument: '${t}' for pipe '${ne(e)}'`)}let gh=(()=>{class e{transform(t){if(null==t)return null;if("string"!=typeof t)throw fh(e,t);return t.toLowerCase()}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=$e({name:"lowercase",type:e,pure:!0}),e})(),mh=(()=>{class e{constructor(e){this._locale=e}transform(t,n,r){if(!function(e){return!(null==e||""===e||e!=e)}(t))return null;r=r||this._locale;try{return function(e,t,n){return function(e,t,n,r,i,o,s=!1){let a="",l=!1;if(isFinite(e)){let c=function(e){let t,n,r,i,o,s=Math.abs(e)+"",a=0;for((n=s.indexOf(Ju))>-1&&(s=s.replace(Ju,"")),(r=s.search(/e/i))>0?(n<0&&(n=r),n+=+s.slice(r+1),s=s.substring(0,r)):n<0&&(n=s.length),r=0;s.charAt(r)===$u;r++);if(r===(o=s.length))t=[0],n=1;else{for(o--;s.charAt(o)===$u;)o--;for(n-=r,t=[],i=0;r<=o;r++,i++)t[i]=Number(s.charAt(r))}return n>22&&(t=t.splice(0,21),a=n-1,n=1),{digits:t,exponent:a,integerLen:n}}(e);s&&(c=function(e){if(0===e.digits[0])return e;const t=e.digits.length-e.integerLen;return e.exponent?e.exponent+=2:(0===t?e.digits.push(0,0):1===t&&e.digits.push(0),e.integerLen+=2),e}(c));let A=t.minInt,u=t.minFrac,h=t.maxFrac;if(o){const e=o.match(Xu);if(null===e)throw new Error(`${o} is not a valid digit info`);const t=e[1],n=e[3],r=e[5];null!=t&&(A=Yu(t)),null!=n&&(u=Yu(n)),null!=r?h=Yu(r):null!=n&&u>h&&(h=u)}!function(e,t,n){if(t>n)throw new Error(`The minimum number of digits after fraction (${t}) is higher than the maximum (${n}).`);let r=e.digits,i=r.length-e.integerLen;const o=Math.min(Math.max(t,i),n);let s=o+e.integerLen,a=r[s];if(s>0){r.splice(Math.max(e.integerLen,s));for(let e=s;e<r.length;e++)r[e]=0}else{i=Math.max(0,i),e.integerLen=1,r.length=Math.max(1,s=o+1),r[0]=0;for(let e=1;e<s;e++)r[e]=0}if(a>=5)if(s-1<0){for(let t=0;t>s;t--)r.unshift(0),e.integerLen++;r.unshift(1),e.integerLen++}else r[s-1]++;for(;i<Math.max(0,o);i++)r.push(0);let l=0!==o;const c=t+e.integerLen,A=r.reduceRight(function(e,t,n,r){return r[n]=(t+=e)<10?t:t-10,l&&(0===r[n]&&n>=c?r.pop():l=!1),t>=10?1:0},0);A&&(r.unshift(A),e.integerLen++)}(c,u,h);let d=c.digits,p=c.integerLen;const f=c.exponent;let g=[];for(l=d.every(e=>!e);p<A;p++)d.unshift(0);for(;p<0;p++)d.unshift(0);p>0?g=d.splice(p,d.length):(g=d,d=[0]);const m=[];for(d.length>=t.lgSize&&m.unshift(d.splice(-t.lgSize,d.length).join(""));d.length>t.gSize;)m.unshift(d.splice(-t.gSize,d.length).join(""));d.length&&m.unshift(d.join("")),a=m.join(Wu(n,r)),g.length&&(a+=Wu(n,i)+g.join("")),f&&(a+=Wu(n,zu.Exponential)+"+"+f)}else a=Wu(n,zu.Infinity);return a=e<0&&!l?t.negPre+a+t.negSuf:t.posPre+a+t.posSuf,a}(e,function(e,t="-"){const n={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},r=e.split(";"),i=r[0],o=r[1],s=-1!==i.indexOf(Ju)?i.split(Ju):[i.substring(0,i.lastIndexOf($u)+1),i.substring(i.lastIndexOf($u)+1)],a=s[0],l=s[1]||"";n.posPre=a.substr(0,a.indexOf("#"));for(let A=0;A<l.length;A++){const e=l.charAt(A);e===$u?n.minFrac=n.maxFrac=A+1:"#"===e?n.maxFrac=A+1:n.posSuf+=e}const c=a.split(",");if(n.gSize=c[1]?c[1].length:0,n.lgSize=c[2]||c[1]?(c[2]||c[1]).length:0,o){const e=i.length-n.posPre.length-n.posSuf.length,t=o.indexOf("#");n.negPre=o.substr(0,t).replace(/'/g,""),n.negSuf=o.substr(t+e).replace(/'/g,"")}else n.negPre=t+n.posPre,n.negSuf=n.posSuf;return n}(function(e,t){return Wa(e)[Ja.NumberFormats][t]}(t,ju.Decimal),Wu(t,zu.MinusSign)),t,zu.Group,zu.Decimal,n)}(function(e){if("string"==typeof e&&!isNaN(Number(e)-parseFloat(e)))return Number(e);if("number"!=typeof e)throw new Error(`${e} is not a number`);return e}(t),r,n)}catch(i){throw fh(e,i.message)}}}return e.\u0275fac=function(t){return new(t||e)(Zs(MA,16))},e.\u0275pipe=$e({name:"number",type:e,pure:!0}),e})(),yh=(()=>{class e{transform(t,n,r){if(null==t)return null;if(!this.supports(t))throw fh(e,t);return t.slice(n,r)}supports(e){return"string"==typeof e||Array.isArray(e)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=$e({name:"slice",type:e,pure:!1}),e})(),wh=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=We({type:e}),e.\u0275inj=pe({providers:[{provide:Zu,useClass:eh}]}),e})(),vh=(()=>{class e{}return e.\u0275prov=de({token:e,providedIn:"root",factory:()=>new bh(mr(Tu),window)}),e})();class bh{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){if(!this.supportsScrolling())return;const t=function(e,t){const n=e.getElementById(t)||e.getElementsByName(t)[0];if(n)return n;if("function"==typeof e.createTreeWalker&&e.body&&(e.body.createShadowRoot||e.body.attachShadow)){const n=e.createTreeWalker(e.body,NodeFilter.SHOW_ELEMENT);let r=n.currentNode;for(;r;){const e=r.shadowRoot;if(e){const n=e.getElementById(t)||e.querySelector(`[name="${t}"]`);if(n)return n}r=n.nextNode()}}return null}(this.document,e);t&&(this.scrollToElement(t),this.attemptFocus(t))}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,r=t.top+this.window.pageYOffset,i=this.offset();this.window.scrollTo(n-i[0],r-i[1])}attemptFocus(e){return e.focus(),this.document.activeElement===e}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const e=Ch(this.window.history)||Ch(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 Ch(e){return Object.getOwnPropertyDescriptor(e,"scrollRestoration")}class Bh{}class _h extends class extends class{}{constructor(){super(...arguments),this.supportsDOMEvents=!0}}{static makeCurrent(){var e;e=new _h,Eu||(Eu=e)}onAndCancel(e,t,n){return e.addEventListener(t,n,!1),()=>{e.removeEventListener(t,n,!1)}}dispatchEvent(e,t){e.dispatchEvent(t)}remove(e){e.parentNode&&e.parentNode.removeChild(e)}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}getBaseHref(e){const t=(Fh=Fh||document.querySelector("base"),Fh?Fh.getAttribute("href"):null);return null==t?null:function(e){Eh=Eh||document.createElement("a"),Eh.setAttribute("href",e);const t=Eh.pathname;return"/"===t.charAt(0)?t:`/${t}`}(t)}resetBaseElement(){Fh=null}getUserAgent(){return window.navigator.userAgent}getCookie(e){return th(document.cookie,e)}}let Eh,Fh=null;const Th=new Zn("TRANSITION_ID"),Sh=[{provide:SA,useFactory:function(e,t,n){return()=>{n.get(xA).donePromise.then(()=>{const n=Fu();Array.prototype.slice.apply(t.querySelectorAll("style[ng-transition]")).filter(t=>t.getAttribute("ng-transition")===e).forEach(e=>n.remove(e))})}},deps:[Th,Tu,ks],multi:!0}];class xh{static init(){var e;e=new xh,su=e}addToWindow(e){Oe.getAngularTestability=(t,n=!0)=>{const r=e.findTestabilityInTree(t,n);if(null==r)throw new Error("Could not find testability for element.");return r},Oe.getAllAngularTestabilities=()=>e.getAllTestabilities(),Oe.getAllAngularRootElements=()=>e.getAllRootElements(),Oe.frameworkStabilizers||(Oe.frameworkStabilizers=[]),Oe.frameworkStabilizers.push(e=>{const t=Oe.getAllAngularTestabilities();let n=t.length,r=!1;const i=function(t){r=r||t,n--,0==n&&e(r)};t.forEach(function(e){e.whenStable(i)})})}findTestabilityInTree(e,t,n){if(null==t)return null;const r=e.getTestability(t);return null!=r?r:n?Fu().isShadowRoot(t)?this.findTestabilityInTree(e,t.host,!0):this.findTestabilityInTree(e,t.parentElement,!0):null}}let Qh=(()=>{class e{build(){return new XMLHttpRequest}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=de({token:e,factory:e.\u0275fac}),e})();const kh=new Zn("EventManagerPlugins");let Uh=(()=>{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 r=0;r<n.length;r++){const t=n[r];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)(mr(kh),mr(XA))},e.\u0275prov=de({token:e,factory:e.\u0275fac}),e})();class Oh{constructor(e){this._doc=e}addGlobalEventListener(e,t,n){const r=Fu().getGlobalEventTarget(this._doc,e);if(!r)throw new Error(`Unsupported event target ${r} for event ${t}`);return this.addEventListener(r,t,n)}}let Ih=(()=>{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=de({token:e,factory:e.\u0275fac}),e})(),Lh=(()=>{class e extends Ih{constructor(e){super(),this._doc=e,this._hostNodes=new Map,this._hostNodes.set(e.head,[])}_addStylesToHost(e,t,n){e.forEach(e=>{const r=this._doc.createElement("style");r.textContent=e,n.push(t.appendChild(r))})}addHost(e){const t=[];this._addStylesToHost(this._stylesSet,e,t),this._hostNodes.set(e,t)}removeHost(e){const t=this._hostNodes.get(e);t&&t.forEach(Dh),this._hostNodes.delete(e)}onStylesAdded(e){this._hostNodes.forEach((t,n)=>{this._addStylesToHost(e,n,t)})}ngOnDestroy(){this._hostNodes.forEach(e=>e.forEach(Dh))}}return e.\u0275fac=function(t){return new(t||e)(mr(Tu))},e.\u0275prov=de({token:e,factory:e.\u0275fac}),e})();function Dh(e){Fu().remove(e)}const Mh={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/"},Hh=/%COMP%/g;function Rh(e,t,n){for(let r=0;r<t.length;r++){let i=t[r];Array.isArray(i)?Rh(e,i,n):(i=i.replace(Hh,e),n.push(i))}return n}function Ph(e){return t=>{if("__ngUnwrap__"===t)return e;!1===e(t)&&(t.preventDefault(),t.returnValue=!1)}}let Nh=(()=>{class e{constructor(e,t,n){this.eventManager=e,this.sharedStylesHost=t,this.appId=n,this.rendererByCompId=new Map,this.defaultRenderer=new Kh(e)}createRenderer(e,t){if(!e||!t)return this.defaultRenderer;switch(t.encapsulation){case Se.Emulated:{let n=this.rendererByCompId.get(t.id);return n||(n=new Vh(this.eventManager,this.sharedStylesHost,t,this.appId),this.rendererByCompId.set(t.id,n)),n.applyToHost(e),n}case 1:case Se.ShadowDom:return new Gh(this.eventManager,this.sharedStylesHost,e,t);default:if(!this.rendererByCompId.has(t.id)){const e=Rh(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)(mr(Uh),mr(Lh),mr(QA))},e.\u0275prov=de({token:e,factory:e.\u0275fac}),e})();class Kh{constructor(e){this.eventManager=e,this.data=Object.create(null)}destroy(){}createElement(e,t){return t?document.createElementNS(Mh[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,r){if(r){t=r+":"+t;const i=Mh[r];i?e.setAttributeNS(i,t,n):e.setAttribute(t,n)}else e.setAttribute(t,n)}removeAttribute(e,t,n){if(n){const r=Mh[n];r?e.removeAttributeNS(r,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,r){r&(_i.DashCase|_i.Important)?e.style.setProperty(t,n,r&_i.Important?"important":""):e.style[t]=n}removeStyle(e,t,n){n&_i.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,Ph(n)):this.eventManager.addEventListener(e,t,Ph(n))}}class Vh extends Kh{constructor(e,t,n,r){super(e),this.component=n;const i=Rh(r+"-"+n.id,n.styles,[]);t.addStyles(i),this.contentAttr="_ngcontent-%COMP%".replace(Hh,r+"-"+n.id),this.hostAttr="_nghost-%COMP%".replace(Hh,r+"-"+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 Gh extends Kh{constructor(e,t,n,r){super(e),this.sharedStylesHost=t,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const i=Rh(r.id,r.styles,[]);for(let o=0;o<i.length;o++){const e=document.createElement("style");e.textContent=i[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 jh=(()=>{class e extends Oh{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)(mr(Tu))},e.\u0275prov=de({token:e,factory:e.\u0275fac}),e})();const qh=["alt","control","meta","shift"],zh={"\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"},Xh={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey};let Jh=(()=>{class e extends Oh{constructor(e){super(e)}supports(t){return null!=e.parseEventName(t)}addEventListener(t,n,r){const i=e.parseEventName(n),o=e.eventCallback(i.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Fu().onAndCancel(t,i.domEventName,o))}static parseEventName(t){const n=t.toLowerCase().split("."),r=n.shift();if(0===n.length||"keydown"!==r&&"keyup"!==r)return null;const i=e._normalizeKey(n.pop());let o="";if(qh.forEach(e=>{const t=n.indexOf(e);t>-1&&(n.splice(t,1),o+=e+".")}),o+=i,0!=n.length||0===i.length)return null;const s={};return s.domEventName=r,s.fullKey=o,s}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 zh[t]||t}(e);return n=n.toLowerCase()," "===n?n="space":"."===n&&(n="dot"),qh.forEach(r=>{r!=n&&(0,Xh[r])(e)&&(t+=r+".")}),t+=n,t}static eventCallback(t,n,r){return i=>{e.getEventFullKey(i)===t&&r.runGuarded(()=>n(i))}}static _normalizeKey(e){switch(e){case"esc":return"escape";default:return e}}}return e.\u0275fac=function(t){return new(t||e)(mr(Tu))},e.\u0275prov=de({token:e,factory:e.\u0275fac}),e})(),$h=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=de({factory:function(){return mr(Zh)},token:e,providedIn:"root"}),e})();function Yh(e){return new Zh(e.get(Tu))}let Zh=(()=>{class e extends $h{constructor(e){super(),this._doc=e}sanitize(e,t){if(null==t)return null;switch(e){case Ai.NONE:return t;case Ai.HTML:return Mr(t,"HTML")?Dr(t):li(this._doc,String(t)).toString();case Ai.STYLE:return Mr(t,"Style")?Dr(t):t;case Ai.SCRIPT:if(Mr(t,"Script"))return Dr(t);throw new Error("unsafe value used in a script context");case Ai.URL:return Hr(t),Mr(t,"URL")?Dr(t):Gr(String(t));case Ai.RESOURCE_URL:if(Mr(t,"ResourceURL"))return Dr(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 kr(e)}bypassSecurityTrustStyle(e){return new Ur(e)}bypassSecurityTrustScript(e){return new Or(e)}bypassSecurityTrustUrl(e){return new Ir(e)}bypassSecurityTrustResourceUrl(e){return new Lr(e)}}return e.\u0275fac=function(t){return new(t||e)(mr(Tu))},e.\u0275prov=de({factory:function(){return Yh(mr(gs))},token:e,providedIn:"root"}),e})();const ed=uu(Cu,"browser",[{provide:IA,useValue:"browser"},{provide:OA,useValue:function(){_h.makeCurrent(),xh.init()},multi:!0},{provide:Tu,useFactory:function(){return function(e){ft=e}(document),document},deps:[]}]),td=[[],{provide:ys,useValue:"root"},{provide:wi,useFactory:function(){return new wi},deps:[]},{provide:kh,useClass:jh,multi:!0,deps:[Tu,XA,IA]},{provide:kh,useClass:Jh,multi:!0,deps:[Tu]},[],{provide:Nh,useClass:Nh,deps:[Uh,Lh,QA]},{provide:Wl,useExisting:Nh},{provide:Ih,useExisting:Lh},{provide:Lh,useClass:Lh,deps:[Tu]},{provide:nu,useClass:nu,deps:[XA]},{provide:Uh,useClass:Uh,deps:[kh,XA]},{provide:Bh,useClass:Qh,deps:[]},[]];let nd=(()=>{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:QA,useValue:t.appId},{provide:Th,useExisting:QA},Sh]}}}return e.\u0275fac=function(t){return new(t||e)(mr(e,12))},e.\u0275mod=We({type:e}),e.\u0275inj=pe({providers:td,imports:[wh,_u]}),e})();function rd(e,t){return new w(n=>{const r=e.length;if(0===r)return void n.complete();const i=new Array(r);let o=0,s=0;for(let a=0;a<r;a++){const l=D(e[a]);let c=!1;n.add(l.subscribe({next:e=>{c||(c=!0,s++),i[a]=e},error:e=>n.error(e),complete:()=>{o++,o!==r&&c||(s===r&&n.next(t?t.reduce((e,t,n)=>(e[t]=i[n],e),{}):i),n.complete())}}))}})}"undefined"!=typeof window&&window;let id=(()=>{class e{constructor(e,t){this._renderer=e,this._elementRef=t,this.onChange=e=>{},this.onTouched=()=>{}}setProperty(e,t){this._renderer.setProperty(this._elementRef.nativeElement,e,t)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}}return e.\u0275fac=function(t){return new(t||e)(Zs(Xl),Zs(ql))},e.\u0275dir=Je({type:e}),e})(),od=(()=>{class e extends id{}return e.\u0275fac=function(){let t;return function(n){return(t||(t=jn(e)))(n||e)}}(),e.\u0275dir=Je({type:e,features:[Os]}),e})();const sd=new Zn("NgValueAccessor"),ad={provide:sd,useExisting:oe(()=>ld),multi:!0};let ld=(()=>{class e extends od{writeValue(e){this.setProperty("checked",e)}}return e.\u0275fac=function(){let t;return function(n){return(t||(t=jn(e)))(n||e)}}(),e.\u0275dir=Je({type:e,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(e,t){1&e&&Aa("change",function(e){return t.onChange(e.target.checked)})("blur",function(){return t.onTouched()})},features:[Rl([ad]),Os]}),e})();const cd={provide:sd,useExisting:oe(()=>ud),multi:!0},Ad=new Zn("CompositionEventMode");let ud=(()=>{class e extends id{constructor(e,t,n){super(e,t),this._compositionMode=n,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function(){const e=Fu()?Fu().getUserAgent():"";return/android (\d+)/.test(e.toLowerCase())}())}writeValue(e){this.setProperty("value",null==e?"":e)}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}}return e.\u0275fac=function(t){return new(t||e)(Zs(Xl),Zs(ql),Zs(Ad,8))},e.\u0275dir=Je({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&&Aa("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:[Rl([cd]),Os]}),e})();const hd=new Zn("NgValidators"),dd=new Zn("NgAsyncValidators");function pd(e){return null!=e}function fd(e){const t=la(e)?D(e):e;return ca(t),t}function gd(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 md(e,t){return t.map(t=>t(e))}function yd(e){return e.map(e=>function(e){return!e.validate}(e)?e:t=>e.validate(t))}function wd(e){return null!=e?function(e){if(!e)return null;const t=e.filter(pd);return 0==t.length?null:function(e){return gd(md(e,t))}}(yd(e)):null}function vd(e){return null!=e?function(e){if(!e)return null;const t=e.filter(pd);return 0==t.length?null:function(e){return function(...e){if(1===e.length){const t=e[0];if(c(t))return rd(t,null);if(A(t)&&Object.getPrototypeOf(t)===Object.prototype){const e=Object.keys(t);return rd(e.map(e=>t[e]),e)}}if("function"==typeof e[e.length-1]){const t=e.pop();return rd(e=1===e.length&&c(e[0])?e[0]:e,null).pipe(T(e=>t(...e)))}return rd(e,null)}(md(e,t).map(fd)).pipe(T(gd))}}(yd(e)):null}function bd(e,t){return null===e?[t]:Array.isArray(e)?[...e,t]:[e,t]}let Cd=(()=>{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=wd(this._rawValidators)}_setAsyncValidators(e){this._rawAsyncValidators=e||[],this._composedAsyncValidatorFn=vd(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=Je({type:e}),e})(),Bd=(()=>{class e extends Cd{get formDirective(){return null}get path(){return null}}return e.\u0275fac=function(){let t;return function(n){return(t||(t=jn(e)))(n||e)}}(),e.\u0275dir=Je({type:e,features:[Os]}),e})();class _d extends Cd{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class Ed{constructor(e){this._cd=e}is(e){var t,n,r;return"submitted"===e?!!(null===(t=this._cd)||void 0===t?void 0:t.submitted):!!(null===(r=null===(n=this._cd)||void 0===n?void 0:n.control)||void 0===r?void 0:r[e])}}let Fd=(()=>{class e extends Ed{constructor(e){super(e)}}return e.\u0275fac=function(t){return new(t||e)(Zs(_d,2))},e.\u0275dir=Je({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,t){2&e&&Ta("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:[Os]}),e})(),Td=(()=>{class e extends Ed{constructor(e){super(e)}}return e.\u0275fac=function(t){return new(t||e)(Zs(Bd,10))},e.\u0275dir=Je({type:e,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(e,t){2&e&&Ta("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"))("ng-submitted",t.is("submitted"))},features:[Os]}),e})();function Sd(e,t){Qd(e,t),t.valueAccessor.writeValue(e.value),function(e,t){t.valueAccessor.registerOnChange(n=>{e._pendingValue=n,e._pendingChange=!0,e._pendingDirty=!0,"change"===e.updateOn&&kd(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&&kd(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 xd(e,t){e.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(t)})}function Qd(e,t){const n=function(e){return e._rawValidators}(e);null!==t.validator?e.setValidators(bd(n,t.validator)):"function"==typeof n&&e.setValidators([n]);const r=function(e){return e._rawAsyncValidators}(e);null!==t.asyncValidator?e.setAsyncValidators(bd(r,t.asyncValidator)):"function"==typeof r&&e.setAsyncValidators([r]);const i=()=>e.updateValueAndValidity();xd(t._rawValidators,i),xd(t._rawAsyncValidators,i)}function kd(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function Ud(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const Od="VALID",Id="INVALID",Ld="PENDING",Dd="DISABLED";function Md(e){return(Nd(e)?e.validators:e)||null}function Hd(e){return Array.isArray(e)?wd(e):e||null}function Rd(e,t){return(Nd(t)?t.asyncValidators:e)||null}function Pd(e){return Array.isArray(e)?vd(e):e||null}function Nd(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}class Kd{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=Hd(this._rawValidators),this._composedAsyncValidatorFn=Pd(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 this.status===Od}get invalid(){return this.status===Id}get pending(){return this.status==Ld}get disabled(){return this.status===Dd}get enabled(){return this.status!==Dd}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=Hd(e)}setAsyncValidators(e){this._rawAsyncValidators=e,this._composedAsyncValidatorFn=Pd(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=Ld,!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=Dd,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=Od,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(),this.status!==Od&&this.status!==Ld||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()?Dd:Od}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(e){if(this.asyncValidator){this.status=Ld,this._hasOwnPendingAsyncValidator=!0;const t=fd(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 r=e;return t.forEach(e=>{r=r instanceof Gd?r.controls.hasOwnProperty(e)?r.controls[e]:null:r instanceof jd&&r.at(e)||null}),r}(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 oA,this.statusChanges=new oA}_calculateStatus(){return this._allControlsDisabled()?Dd:this.errors?Id:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Ld)?Ld:this._anyControlsHaveStatus(Id)?Id:Od}_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){Nd(e)&&null!=e.updateOn&&(this._updateOn=e.updateOn)}_parentMarkedDirty(e){return!e&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class Vd extends Kd{constructor(e=null,t,n){super(Md(t),Rd(n,t)),this._onChange=[],this._applyFormState(e),this._setUpdateStrategy(t),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}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){Ud(this._onChange,e)}registerOnDisabledChange(e){this._onDisabledChange.push(e)}_unregisterOnDisabledChange(e){Ud(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 Gd extends Kd{constructor(e,t,n){super(Md(t),Rd(n,t)),this.controls=e,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}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,n={}){this.registerControl(e,t),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}removeControl(e,t={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}setControl(e,t,n={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],t&&this.registerControl(e,t),this.updateValueAndValidity({emitEvent:n.emitEvent}),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,r)=>{n.reset(e[r],{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 Vd?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,r)=>{n=t(n,e,r)}),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 jd extends Kd{constructor(e,t,n){super(Md(t),Rd(n,t)),this.controls=e,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(e){return this.controls[e]}push(e,t={}){this.controls.push(e),this._registerControl(e),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}insert(e,t,n={}){this.controls.splice(e,0,t),this._registerControl(t),this.updateValueAndValidity({emitEvent:n.emitEvent})}removeAt(e,t={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),this.controls.splice(e,1),this.updateValueAndValidity({emitEvent:t.emitEvent})}setControl(e,t,n={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),this.controls.splice(e,1),t&&(this.controls.splice(e,0,t),this._registerControl(t)),this.updateValueAndValidity({emitEvent:n.emitEvent}),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,r)=>{n.reset(e[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}getRawValue(){return this.controls.map(e=>e instanceof Vd?e.value:e.getRawValue())}clear(e={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:e.emitEvent}))}_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 qd={provide:Bd,useExisting:oe(()=>Wd)},zd=(()=>Promise.resolve(null))();let Wd=(()=>{class e extends Bd{constructor(e,t){super(),this.submitted=!1,this._directives=[],this.ngSubmit=new oA,this.form=new Gd({},wd(e),vd(t))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){zd.then(()=>{const t=this._findContainer(e.path);e.control=t.registerControl(e.name,e.control),Sd(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.push(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){zd.then(()=>{const t=this._findContainer(e.path);t&&t.removeControl(e.name),Ud(this._directives,e)})}addFormGroup(e){zd.then(()=>{const t=this._findContainer(e.path),n=new Gd({});(function(e,t){Qd(e,t)})(n,e),t.registerControl(e.name,n),n.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){zd.then(()=>{const t=this._findContainer(e.path);t&&t.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,t){zd.then(()=>{this.form.get(e.path).setValue(t)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submitted=!0,t=this._directives,this.form._syncPendingControls(),t.forEach(e=>{const t=e.control;"submit"===t.updateOn&&t._pendingChange&&(e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1)}),this.ngSubmit.emit(e),!1;var t}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)(Zs(hd,10),Zs(dd,10))},e.\u0275dir=Je({type:e,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(e,t){1&e&&Aa("submit",function(e){return t.onSubmit(e)})("reset",function(){return t.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Rl([qd]),Os]}),e})();const Xd={provide:_d,useExisting:oe(()=>$d)},Jd=(()=>Promise.resolve(null))();let $d=(()=>{class e extends _d{constructor(e,t,n,r){super(),this.control=new Vd,this._registered=!1,this.update=new oA,this._parent=e,this._setValidators(t),this._setAsyncValidators(n),this.valueAccessor=function(e,t){if(!t)return null;let n,r,i;return Array.isArray(t),t.forEach(e=>{e.constructor===ud?n=e:Object.getPrototypeOf(e.constructor)===od?r=e:i=e}),i||r||n||null}(0,r)}ngOnChanges(e){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in e&&this._updateDisabled(e),function(e,t){if(!e.hasOwnProperty("model"))return!1;const n=e.model;return!!n.isFirstChange()||!Object.is(t,n.currentValue)}(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._parent?[...this._parent.path,this.name]:[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(){Sd(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){Jd.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1})})}_updateDisabled(e){const t=e.isDisabled.currentValue,n=""===t||t&&"false"!==t;Jd.then(()=>{n&&!this.control.disabled?this.control.disable():!n&&this.control.disabled&&this.control.enable()})}}return e.\u0275fac=function(t){return new(t||e)(Zs(Bd,9),Zs(hd,10),Zs(dd,10),Zs(sd,10))},e.\u0275dir=Je({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:[Rl([Xd]),Os,At]}),e})(),Yd=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Je({type:e,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),e})();const Zd={provide:sd,useExisting:oe(()=>np),multi:!0};let ep=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=We({type:e}),e.\u0275inj=pe({}),e})(),tp=(()=>{class e{constructor(){this._accessors=[]}add(e,t){this._accessors.push([e,t])}remove(e){for(let t=this._accessors.length-1;t>=0;--t)if(this._accessors[t][1]===e)return void this._accessors.splice(t,1)}select(e){this._accessors.forEach(t=>{this._isSameGroup(t,e)&&t[1]!==e&&t[1].fireUncheck(e.value)})}_isSameGroup(e,t){return!!e[0].control&&e[0]._parent===t._control._parent&&e[1].name===t.name}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=de({factory:function(){return new e},token:e,providedIn:ep}),e})(),np=(()=>{class e extends od{constructor(e,t,n,r){super(e,t),this._registry=n,this._injector=r,this.onChange=()=>{}}ngOnInit(){this._control=this._injector.get(_d),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(e){this._state=e===this.value,this.setProperty("checked",this._state)}registerOnChange(e){this._fn=e,this.onChange=()=>{e(this.value),this._registry.select(this)}}fireUncheck(e){this.writeValue(e)}_checkName(){!this.name&&this.formControlName&&(this.name=this.formControlName)}}return e.\u0275fac=function(t){return new(t||e)(Zs(Xl),Zs(ql),Zs(tp),Zs(ks))},e.\u0275dir=Je({type:e,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(e,t){1&e&&Aa("change",function(){return t.onChange()})("blur",function(){return t.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[Rl([Zd]),Os]}),e})();const rp={provide:hd,useExisting:oe(()=>ip),multi:!0};let ip=(()=>{class e{constructor(){this._required=!1}get required(){return this._required}set required(e){this._required=null!=e&&!1!==e&&"false"!=`${e}`,this._onChange&&this._onChange()}validate(e){return this.required?function(e){return null==(t=e.value)||0===t.length?{required:!0}:null;var t}(e):null}registerOnValidatorChange(e){this._onChange=e}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Je({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&&zs("required",t.required?"":null)},inputs:{required:"required"},features:[Rl([rp])]}),e})(),op=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=We({type:e}),e.\u0275inj=pe({imports:[[ep]]}),e})(),sp=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=We({type:e}),e.\u0275inj=pe({imports:[op]}),e})();const ap=new w(e=>e.complete());function lp(e){return e?function(e){return new w(t=>e.schedule(()=>t.complete()))}(e):ap}function cp(...e){let t=e[e.length-1];return F(t)?(e.pop(),L(e,t)):G(e)}function Ap(e,t,n,r){return i(n)&&(r=n,n=void 0),r?Ap(e,t,n).pipe(T(e=>c(e)?r(...e):r(e))):new w(r=>{up(e,t,function(e){r.next(arguments.length>1?Array.prototype.slice.call(arguments):e)},r,n)})}function up(e,t,n,r,i){let o;if(function(e){return e&&"function"==typeof e.addEventListener&&"function"==typeof e.removeEventListener}(e)){const r=e;e.addEventListener(t,n,i),o=()=>r.removeEventListener(t,n,i)}else if(function(e){return e&&"function"==typeof e.on&&"function"==typeof e.off}(e)){const r=e;e.on(t,n),o=()=>r.off(t,n)}else if(function(e){return e&&"function"==typeof e.addListener&&"function"==typeof e.removeListener}(e)){const r=e;e.addListener(t,n),o=()=>r.removeListener(t,n)}else{if(!e||!e.length)throw new TypeError("Invalid event target");for(let o=0,s=e.length;o<s;o++)up(e[o],t,n,r,i)}r.add(o)}class hp extends h{constructor(e,t){super()}schedule(e,t=0){return this}}class dp extends hp{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,r=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(r,n,t)),this.pending=!0,this.delay=t,this.id=this.id||this.requestAsyncId(r,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,r=!1;try{this.work(e)}catch(i){r=!0,n=!!i&&i||new Error(i)}if(r)return this.unsubscribe(),n}_unsubscribe(){const e=this.id,t=this.scheduler,n=t.actions,r=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&n.splice(r,1),null!=e&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null}}let pp=(()=>{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 fp extends pp{constructor(e,t=pp.now){super(e,()=>fp.delegate&&fp.delegate!==this?fp.delegate.now():t()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(e,t=0,n){return fp.delegate&&fp.delegate!==this?fp.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}}}const gp=new fp(dp);function mp(e){return!c(e)&&e-parseFloat(e)+1>=0}function yp(e){const{index:t,period:n,subscriber:r}=e;if(r.next(t),!r.closed){if(-1===n)return r.complete();e.index=t+1,this.schedule(e,n)}}class wp extends f{notifyNext(e,t,n,r,i){this.destination.next(t)}notifyError(e,t){this.destination.error(e)}notifyComplete(e){this.destination.complete()}}class vp extends f{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 bp(e,t,n,r,i=new vp(e,n,r)){if(!i.closed)return t instanceof w?t.subscribe(i):I(t)(i)}function Cp(...e){if(1===e.length){if(!c(e[0]))return e[0];e=e[0]}return G(e,void 0).lift(new Bp)}class Bp{call(e,t){return t.subscribe(new _p(e))}}class _p extends wp{constructor(e){super(e),this.hasFirst=!1,this.observables=[],this.subscriptions=[]}_next(e){this.observables.push(e)}_complete(){const e=this.observables,t=e.length;if(0===t)this.destination.complete();else{for(let n=0;n<t&&!this.hasFirst;n++){const t=bp(this,e[n],void 0,n);this.subscriptions&&this.subscriptions.push(t),this.add(t)}this.observables=null}}notifyNext(e,t,n){if(!this.hasFirst){this.hasFirst=!0;for(let e=0;e<this.subscriptions.length;e++)if(e!==n){let t=this.subscriptions[e];t.unsubscribe(),this.remove(t)}this.subscriptions=null}this.destination.next(t)}}class Ep extends _{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 b;return this._value}next(e){super.next(this._value=e)}}const Fp={};function Tp(...e){let t,n;return F(e[e.length-1])&&(n=e.pop()),"function"==typeof e[e.length-1]&&(t=e.pop()),1===e.length&&c(e[0])&&(e=e[0]),G(e,n).lift(new Sp(t))}class Sp{constructor(e){this.resultSelector=e}call(e,t){return t.subscribe(new xp(e,this.resultSelector))}}class xp extends wp{constructor(e,t){super(e),this.resultSelector=t,this.active=0,this.values=[],this.observables=[]}_next(e){this.values.push(Fp),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(bp(this,e[n],void 0,n))}}notifyComplete(e){0==(this.active-=1)&&this.destination.complete()}notifyNext(e,t,n){const r=this.values,i=this.toRespond?r[n]===Fp?--this.toRespond:this.toRespond:0;r[n]=t,0===i&&(this.resultSelector?this._tryResultSelector(r):this.destination.next(r.slice()))}_tryResultSelector(e){let t;try{t=this.resultSelector.apply(this,e)}catch(n){return void this.destination.error(n)}this.destination.next(t)}}function Qp(){}function kp(...e){const t=e[e.length-1];return"function"==typeof t&&e.pop(),G(e,void 0).lift(new Up(t))}new w(Qp);class Up{constructor(e){this.resultSelector=e}call(e,t){return t.subscribe(new Op(e,this.resultSelector))}}class Op extends f{constructor(e,t,n=Object.create(null)){super(e),this.resultSelector=t,this.iterators=[],this.active=0,this.resultSelector="function"==typeof t?t:void 0}_next(e){const t=this.iterators;c(e)?t.push(new Lp(e)):t.push("function"==typeof e[k]?new Ip(e[k]()):new Dp(this.destination,this,e))}_complete(){const e=this.iterators,t=e.length;if(this.unsubscribe(),0!==t){this.active=t;for(let n=0;n<t;n++){let t=e[n];t.stillUnsubscribed?this.destination.add(t.subscribe()):this.active--}}else this.destination.complete()}notifyInactive(){this.active--,0===this.active&&this.destination.complete()}checkIterators(){const e=this.iterators,t=e.length,n=this.destination;for(let o=0;o<t;o++){let t=e[o];if("function"==typeof t.hasValue&&!t.hasValue())return}let r=!1;const i=[];for(let o=0;o<t;o++){let t=e[o],s=t.next();if(t.hasCompleted()&&(r=!0),s.done)return void n.complete();i.push(s.value)}this.resultSelector?this._tryresultSelector(i):n.next(i),r&&n.complete()}_tryresultSelector(e){let t;try{t=this.resultSelector.apply(this,e)}catch(n){return void this.destination.error(n)}this.destination.next(t)}}class Ip{constructor(e){this.iterator=e,this.nextResult=e.next()}hasValue(){return!0}next(){const e=this.nextResult;return this.nextResult=this.iterator.next(),e}hasCompleted(){const e=this.nextResult;return Boolean(e&&e.done)}}class Lp{constructor(e){this.array=e,this.index=0,this.length=0,this.length=e.length}[k](){return this}next(e){const t=this.index++;return t<this.length?{value:this.array[t],done:!1}:{value:null,done:!0}}hasValue(){return this.array.length>this.index}hasCompleted(){return this.array.length===this.index}}class Dp extends H{constructor(e,t,n){super(e),this.parent=t,this.observable=n,this.stillUnsubscribed=!0,this.buffer=[],this.isComplete=!1}[k](){return this}next(){const e=this.buffer;return 0===e.length&&this.isComplete?{value:null,done:!0}:{value:e.shift(),done:!1}}hasValue(){return this.buffer.length>0}hasCompleted(){return 0===this.buffer.length&&this.isComplete}notifyComplete(){this.buffer.length>0?(this.isComplete=!0,this.parent.notifyInactive()):this.destination.complete()}notifyNext(e){this.buffer.push(e),this.parent.checkIterators()}subscribe(){return R(this.observable,new M(this))}}function Mp(...e){return V(1)(cp(...e))}function Hp(e){return t=>t.lift(new Rp(e))}class Rp{constructor(e){this.notifier=e}call(e,t){const n=new Pp(e),r=R(this.notifier,new M(n));return r&&!n.seenValue?(n.add(r),t.subscribe(n)):n}}class Pp extends H{constructor(e){super(e),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}}function Np(e,t){return function(n){return n.lift(new Kp(e,t))}}class Kp{constructor(e,t){this.predicate=e,this.thisArg=t}call(e,t){return t.subscribe(new Vp(e,this.predicate,this.thisArg))}}class Vp extends f{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)}}const Gp=(()=>{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 jp(e){return t=>0===e?lp():t.lift(new qp(e))}class qp{constructor(e){if(this.total=e,this.total<0)throw new Gp}call(e,t){return t.subscribe(new zp(e,this.total))}}class zp extends f{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 Wp(...e){const t=e[e.length-1];return F(t)?(e.pop(),n=>Mp(e,n,t)):t=>Mp(e,t)}class Xp{constructor(e,t){this.compare=e,this.keySelector=t}call(e,t){return t.subscribe(new Jp(e,this.compare,this.keySelector))}}class Jp extends f{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(r){return this.destination.error(r)}let n=!1;if(this.hasKey)try{const{compare:e}=this;n=e(this.key,t)}catch(r){return this.destination.error(r)}else this.hasKey=!0;n||(this.key=t,this.destination.next(e))}}function $p(e,t){return"function"==typeof t?n=>n.pipe($p((n,r)=>D(e(n,r)).pipe(T((e,i)=>t(n,e,r,i))))):t=>t.lift(new Yp(e))}class Yp{constructor(e){this.project=e}call(e,t){return t.subscribe(new Zp(e,this.project))}}class Zp extends H{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(r){return void this.destination.error(r)}this._innerSub(t)}_innerSub(e){const t=this.innerSubscription;t&&t.unsubscribe();const n=new M(this),r=this.destination;r.add(n),this.innerSubscription=R(e,n),this.innerSubscription!==n&&r.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)}}function ef(e,t,n){return function(r){return r.lift(new tf(e,t,n))}}class tf{constructor(e,t,n){this.nextOrObserver=e,this.error=t,this.complete=n}call(e,t){return t.subscribe(new nf(e,this.nextOrObserver,this.error,this.complete))}}class nf extends f{constructor(e,t,n,r){super(e),this._tapNext=Qp,this._tapError=Qp,this._tapComplete=Qp,this._tapError=n||Qp,this._tapComplete=r||Qp,i(t)?(this._context=this,this._tapNext=t):t&&(this._context=t,this._tapNext=t.next||Qp,this._tapError=t.error||Qp,this._tapComplete=t.complete||Qp)}_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 rf(...e){return t=>{let n;return"function"==typeof e[e.length-1]&&(n=e.pop()),t.lift(new of(e,n))}}class of{constructor(e,t){this.observables=e,this.project=t}call(e,t){return t.subscribe(new sf(e,this.observables,this.project))}}class sf extends wp{constructor(e,t,n){super(e),this.observables=t,this.project=n,this.toRespond=[];const r=t.length;this.values=new Array(r);for(let i=0;i<r;i++)this.toRespond.push(i);for(let i=0;i<r;i++)this.add(bp(this,t[i],void 0,i))}notifyNext(e,t,n){this.values[n]=t;const r=this.toRespond;if(r.length>0){const e=r.indexOf(n);-1!==e&&r.splice(e,1)}}notifyComplete(){}_next(e){if(0===this.toRespond.length){const t=[e,...this.values];this.project?this._tryProject(t):this.destination.next(t)}}_tryProject(e){let t;try{t=this.project.apply(this,e)}catch(n){return void this.destination.error(n)}this.destination.next(t)}}function af(e,t){return new w(t?n=>t.schedule(lf,0,{error:e,subscriber:n}):t=>t.error(e))}function lf({error:e,subscriber:t}){t.error(e)}class cf{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 cp(this.value);case"E":return af(this.error);case"C":return lp()}throw new Error("unexpected notification kind value")}static createNext(e){return void 0!==e?new cf("N",e):cf.undefinedValueNotification}static createError(e){return new cf("E",void 0,e)}static createComplete(){return cf.completeNotification}}function Af(e,t=gp){var n;const r=(n=e)instanceof Date&&!isNaN(+n)?+e-t.now():Math.abs(e);return e=>e.lift(new uf(r,t))}cf.completeNotification=new cf("C"),cf.undefinedValueNotification=new cf("N",void 0);class uf{constructor(e,t){this.delay=e,this.scheduler=t}call(e,t){return t.subscribe(new hf(e,this.delay,this.scheduler))}}class hf extends f{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,r=e.scheduler,i=e.destination;for(;n.length>0&&n[0].time-r.now()<=0;)n.shift().notification.observe(i);if(n.length>0){const t=Math.max(0,n[0].time-r.now());this.schedule(e,t)}else this.unsubscribe(),t.active=!1}_schedule(e){this.active=!0,this.destination.add(e.schedule(hf.dispatch,this.delay,{source:this,destination:this.destination,scheduler:e}))}scheduleNotification(e){if(!0===this.errored)return;const t=this.scheduler,n=new df(t.now()+this.delay,e);this.queue.push(n),!1===this.active&&this._schedule(t)}_next(e){this.scheduleNotification(cf.createNext(e))}_error(e){this.errored=!0,this.queue=[],this.destination.error(e),this.unsubscribe()}_complete(){this.scheduleNotification(cf.createComplete()),this.unsubscribe()}}class df{constructor(e,t){this.time=e,this.notification=t}}class pf{constructor(e){this.total=e}call(e,t){return t.subscribe(new ff(e,this.total))}}class ff extends f{constructor(e,t){super(e),this.total=t,this.count=0}_next(e){++this.count>this.total&&this.destination.next(e)}}function gf(e,t){if(1&e){const e=aa();na(0,"button",1),Aa("click",function(){return It(e),da().close()}),na(1,"span",2),Ra(2,"\xd7"),ra(),ra()}}const mf=["*"],yf=["dialog"],wf=["ngbNavOutlet",""];function vf(e,t){}const bf=function(e){return{$implicit:e}};function Cf(e,t){if(1&e&&(na(0,"div",2),$s(1,vf,0,0,"ng-template",3),ra()),2&e){const e=da().$implicit,t=da();ea("item",e)("nav",t.nav)("role",t.paneRole),yo(1),ea("ngTemplateOutlet",(null==e.contentTpl?null:e.contentTpl.templateRef)||null)("ngTemplateOutletContext",jc(5,bf,e.active||t.isPanelTransitioning(e)))}}function Bf(e,t){if(1&e&&$s(0,Cf,2,7,"div",1),2&e){const e=t.$implicit,n=da();ea("ngIf",e.isPanelInDom()||n.isPanelTransitioning(e))}}function _f(e,t){1&e&&(na(0,"span",9),kl(1,10),ra())}function Ef(e,t){1&e&&(na(0,"span",9),kl(1,11),ra())}function Ff(e,t){1&e&&(na(0,"span",9),kl(1,12),ra())}function Tf(e,t){1&e&&(na(0,"span",9),kl(1,13),ra())}function Sf(e,t){1&e&&Ra(0,"...")}function xf(e,t){1&e&&(na(0,"span",15),Ra(1,"(current)"),ra())}function Qf(e,t){if(1&e&&(Ra(0),$s(1,xf,2,0,"span",14)),2&e){const e=t.$implicit,n=t.currentPage;Na(" ",e," "),yo(1),ea("ngIf",e===n)}}function kf(e,t){}const Uf=function(e){return{disabled:!0,currentPage:e}};function Of(e,t){if(1&e&&(na(0,"a",20),$s(1,kf,0,0,"ng-template",8),ra()),2&e){const e=da(2).$implicit,t=da(),n=Ys(9);yo(1),ea("ngTemplateOutlet",(null==t.tplEllipsis?null:t.tplEllipsis.templateRef)||n)("ngTemplateOutletContext",jc(2,Uf,e))}}function If(e,t){}const Lf=function(e,t,n){return{disabled:e,$implicit:t,currentPage:n}};function Df(e,t){if(1&e){const e=aa();na(0,"a",21),Aa("click",function(t){It(e);const n=da().$implicit;return da(2).selectPage(n),t.preventDefault()}),$s(1,If,0,0,"ng-template",8),ra()}if(2&e){const e=da().$implicit,t=da(),n=t.disabled,r=t.$implicit,i=da(),o=Ys(11);zs("tabindex",n?"-1":null)("aria-disabled",n?"true":null),yo(1),ea("ngTemplateOutlet",(null==i.tplNumber?null:i.tplNumber.templateRef)||o)("ngTemplateOutletContext",zc(4,Lf,n,e,r))}}function Mf(e,t){if(1&e&&(na(0,"li",17),$s(1,Of,2,4,"a",18),$s(2,Df,2,8,"a",19),ra()),2&e){const e=t.$implicit,n=da(),r=n.$implicit,i=n.disabled,o=da();Ta("active",e===r)("disabled",o.isEllipsis(e)||i),zs("aria-current",e===r?"page":null),yo(1),ea("ngIf",o.isEllipsis(e)),yo(1),ea("ngIf",!o.isEllipsis(e))}}function Hf(e,t){1&e&&$s(0,Mf,3,7,"li",16),2&e&&ea("ngForOf",t.pages)}function Rf(e,t){}const Pf=function(e,t){return{disabled:e,currentPage:t}};function Nf(e,t){if(1&e){const e=aa();na(0,"li",17),na(1,"a",22),Aa("click",function(t){return It(e),da().selectPage(1),t.preventDefault()}),$s(2,Rf,0,0,"ng-template",8),ra(),ra()}if(2&e){const e=da(),t=Ys(1);Ta("disabled",e.previousDisabled()),yo(1),zs("tabindex",e.previousDisabled()?"-1":null)("aria-disabled",e.previousDisabled()?"true":null),yo(1),ea("ngTemplateOutlet",(null==e.tplFirst?null:e.tplFirst.templateRef)||t)("ngTemplateOutletContext",qc(6,Pf,e.previousDisabled(),e.page))}}function Kf(e,t){}const Vf=function(e){return{disabled:e}};function Gf(e,t){if(1&e){const e=aa();na(0,"li",17),na(1,"a",23),Aa("click",function(t){It(e);const n=da();return n.selectPage(n.page-1),t.preventDefault()}),$s(2,Kf,0,0,"ng-template",8),ra(),ra()}if(2&e){const e=da(),t=Ys(3);Ta("disabled",e.previousDisabled()),yo(1),zs("tabindex",e.previousDisabled()?"-1":null)("aria-disabled",e.previousDisabled()?"true":null),yo(1),ea("ngTemplateOutlet",(null==e.tplPrevious?null:e.tplPrevious.templateRef)||t)("ngTemplateOutletContext",jc(6,Vf,e.previousDisabled()))}}function jf(e,t){}function qf(e,t){}function zf(e,t){if(1&e){const e=aa();na(0,"li",17),na(1,"a",24),Aa("click",function(t){It(e);const n=da();return n.selectPage(n.page+1),t.preventDefault()}),$s(2,qf,0,0,"ng-template",8),ra(),ra()}if(2&e){const e=da(),t=Ys(5);Ta("disabled",e.nextDisabled()),yo(1),zs("tabindex",e.nextDisabled()?"-1":null)("aria-disabled",e.nextDisabled()?"true":null),yo(1),ea("ngTemplateOutlet",(null==e.tplNext?null:e.tplNext.templateRef)||t)("ngTemplateOutletContext",qc(6,Pf,e.nextDisabled(),e.page))}}function Wf(e,t){}function Xf(e,t){if(1&e){const e=aa();na(0,"li",17),na(1,"a",25),Aa("click",function(t){It(e);const n=da();return n.selectPage(n.pageCount),t.preventDefault()}),$s(2,Wf,0,0,"ng-template",8),ra(),ra()}if(2&e){const e=da(),t=Ys(7);Ta("disabled",e.nextDisabled()),yo(1),zs("tabindex",e.nextDisabled()?"-1":null)("aria-disabled",e.nextDisabled()?"true":null),yo(1),ea("ngTemplateOutlet",(null==e.tplLast?null:e.tplLast.templateRef)||t)("ngTemplateOutletContext",qc(6,Pf,e.nextDisabled(),e.page))}}const Jf=function(e,t,n){return{$implicit:e,pages:t,disabled:n}};function $f(e,t){1&e&&Ra(0),2&e&&Pa(da(2).title)}function Yf(e,t){}function Zf(e,t){if(1&e&&(na(0,"h3",3),$s(1,$f,1,1,"ng-template",null,4,_A),$s(3,Yf,0,0,"ng-template",5),ra()),2&e){const e=Ys(2),t=da();yo(3),ea("ngTemplateOutlet",t.isTitleTemplate()?t.title:e)("ngTemplateOutletContext",t.context)}}function eg(e){return!isNaN(function(e){return parseInt(`${e}`,10)}(e))}function tg(e){return null!=e}function ng(e){return(e||document.body).getBoundingClientRect()}"undefined"==typeof Element||Element.prototype.closest||(Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),Element.prototype.closest=function(e){let t=this;if(!document.documentElement.contains(t))return null;do{if(t.matches(e))return t;t=t.parentElement||t.parentNode}while(null!==t&&1===t.nodeType);return null});const rg={animation:!0,transitionTimerDelayMs:5};let ig=(()=>{class e{constructor(){this.animation=rg.animation}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=de({factory:function(){return new e},token:e,providedIn:"root"}),e})();const og=()=>{},{transitionTimerDelayMs:sg}=rg,ag=new Map,lg=(e,t,n,r)=>{let i=r.context||{};const o=ag.get(t);if(o)switch(r.runningTransition){case"continue":return ap;case"stop":e.run(()=>o.transition$.complete()),i=Object.assign(o.context,i),ag.delete(t)}const s=n(t,r.animation,i)||og;if(!r.animation||"none"===window.getComputedStyle(t).transitionProperty)return e.run(()=>s()),cp(void 0).pipe(function(e){return t=>new w(n=>t.subscribe(t=>e.run(()=>n.next(t)),t=>e.run(()=>n.error(t)),()=>e.run(()=>n.complete())))}(e));const a=new _,l=new _,c=a.pipe(function(...e){return t=>Mp(t,cp(...e))}(!0));ag.set(t,{transition$:a,complete:()=>{l.next(),l.complete()},context:i});const A=function(e){const{transitionDelay:t,transitionDuration:n}=window.getComputedStyle(e);return 1e3*(parseFloat(t)+parseFloat(n))}(t);return e.runOutsideAngular(()=>{const n=Ap(t,"transitionend").pipe(Hp(c),Np(({target:e})=>e===t));Cp(function(e=0,t,n){let r=-1;return mp(t)?r=Number(t)<1?1:Number(t):F(t)&&(n=t),F(n)||(n=gp),new w(t=>{const i=mp(e)?e:+e-n.now();return n.schedule(yp,i,{index:0,period:r,subscriber:t})})}(A+sg).pipe(Hp(c)),n,l).pipe(Hp(c)).subscribe(()=>{ag.delete(t),e.run(()=>{s(),a.next(),a.complete()})})}),a.asObservable()},cg=(e,t,n)=>{let{direction:r,maxHeight:i}=n;const{classList:o}=e;function s(){o.add("collapse"),"show"===r?o.add("show"):o.remove("show")}if(t)return i||(i=function(e){if("undefined"==typeof navigator)return"0px";const{classList:t}=e,n=t.contains("show");n||t.add("show"),e.style.height="";const r=e.getBoundingClientRect().height+"px";return n||t.remove("show"),r}(e),n.maxHeight=i,e.style.height="show"!==r?i:"0px",o.remove("collapse"),o.remove("collapsing"),o.remove("show"),ng(e),o.add("collapsing")),e.style.height="show"===r?i:"0px",()=>{s(),o.remove("collapsing"),e.style.height=""};s()};let Ag=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=We({type:e}),e.\u0275inj=pe({imports:[[wh]]}),e})(),ug=(()=>{class e{constructor(e){this._ngbConfig=e,this.dismissible=!0,this.type="warning"}get animation(){return void 0===this._animation?this._ngbConfig.animation:this._animation}set animation(e){this._animation=e}}return e.\u0275fac=function(t){return new(t||e)(mr(ig))},e.\u0275prov=de({factory:function(){return new e(mr(ig))},token:e,providedIn:"root"}),e})();const hg=({classList:e})=>{e.remove("show")};let dg=(()=>{class e{constructor(e,t,n,r){this._renderer=t,this._element=n,this._zone=r,this.closed=new oA,this.dismissible=e.dismissible,this.type=e.type,this.animation=e.animation}close(){const e=lg(this._zone,this._element.nativeElement,hg,{animation:this.animation,runningTransition:"continue"});return e.subscribe(()=>this.closed.emit()),e}ngOnChanges(e){const t=e.type;t&&!t.firstChange&&(this._renderer.removeClass(this._element.nativeElement,`alert-${t.previousValue}`),this._renderer.addClass(this._element.nativeElement,`alert-${t.currentValue}`))}ngOnInit(){this._renderer.addClass(this._element.nativeElement,`alert-${this.type}`)}}return e.\u0275fac=function(t){return new(t||e)(Zs(ug),Zs(Xl),Zs(ql),Zs(XA))},e.\u0275cmp=Ge({type:e,selectors:[["ngb-alert"]],hostAttrs:["role","alert",1,"alert","show"],hostVars:4,hostBindings:function(e,t){2&e&&Ta("fade",t.animation)("alert-dismissible",t.dismissible)},inputs:{dismissible:"dismissible",type:"type",animation:"animation"},outputs:{closed:"closed"},exportAs:["ngbAlert"],features:[At],ngContentSelectors:mf,decls:2,vars:1,consts:function(){let e;return e=$localize`:@@ngb.alert.close␟f4e529ae5ffd73001d1ff4bbdeeb0a72e342e5c8␟7819314041543176992:Close`,[["type","button","class","close","aria-label",e,3,"click",4,"ngIf"],["type","button","aria-label",e,1,"close",3,"click"],["aria-hidden","true"]]},template:function(e,t){1&e&&(fa(),ga(0),$s(1,gf,3,0,"button",0)),2&e&&(yo(1),ea("ngIf",t.dismissible))},directives:[sh],styles:["ngb-alert{display:block}"],encapsulation:2,changeDetection:0}),e})(),pg=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=We({type:e}),e.\u0275inj=pe({imports:[[wh]]}),e})(),fg=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Je({type:e,selectors:[["","ngbButtonLabel",""]],hostVars:8,hostBindings:function(e,t){2&e&&Ta("btn",!0)("active",t.active)("disabled",t.disabled)("focus",t.focused)}}),e})(),gg=(()=>{class e{constructor(e,t){this._label=e,this._cd=t,this.disabled=!1,this.valueChecked=!0,this.valueUnChecked=!1,this.onChange=e=>{},this.onTouched=()=>{}}set focused(e){this._label.focused=e,e||this.onTouched()}onInputChange(e){const t=e.target.checked?this.valueChecked:this.valueUnChecked;this.onChange(t),this.onTouched(),this.writeValue(t)}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this.disabled=e,this._label.disabled=e}writeValue(e){this.checked=e===this.valueChecked,this._label.active=this.checked,this._cd.markForCheck()}}return e.\u0275fac=function(t){return new(t||e)(Zs(fg),Zs(yc))},e.\u0275dir=Je({type:e,selectors:[["","ngbButton","","type","checkbox"]],hostVars:2,hostBindings:function(e,t){1&e&&Aa("change",function(e){return t.onInputChange(e)})("focus",function(){return t.focused=!0})("blur",function(){return t.focused=!1}),2&e&&Ga("checked",t.checked)("disabled",t.disabled)},inputs:{disabled:"disabled",valueChecked:"valueChecked",valueUnChecked:"valueUnChecked"},features:[Rl([{provide:sd,useExisting:oe(()=>e),multi:!0}])]}),e})(),mg=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=We({type:e}),e.\u0275inj=pe({}),e})(),yg=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=We({type:e}),e.\u0275inj=pe({imports:[[wh]]}),e})(),wg=(()=>{class e{constructor(e){this._ngbConfig=e}get animation(){return void 0===this._animation?this._ngbConfig.animation:this._animation}set animation(e){this._animation=e}}return e.\u0275fac=function(t){return new(t||e)(mr(ig))},e.\u0275prov=de({factory:function(){return new e(mr(ig))},token:e,providedIn:"root"}),e})(),vg=(()=>{class e{constructor(e,t,n){this._element=e,this._zone=n,this.collapsed=!1,this.ngbCollapseChange=new oA,this.shown=new oA,this.hidden=new oA,this.animation=t.animation}ngOnInit(){this._runTransition(this.collapsed,!1)}ngOnChanges({collapsed:e}){e.firstChange||this._runTransitionWithEvents(this.collapsed,this.animation)}toggle(e=this.collapsed){this.collapsed=!e,this.ngbCollapseChange.next(this.collapsed),this._runTransitionWithEvents(this.collapsed,this.animation)}_runTransition(e,t){return lg(this._zone,this._element.nativeElement,cg,{animation:t,runningTransition:"stop",context:{direction:e?"hide":"show"}})}_runTransitionWithEvents(e,t){this._runTransition(e,t).subscribe(()=>{e?this.hidden.emit():this.shown.emit()})}}return e.\u0275fac=function(t){return new(t||e)(Zs(ql),Zs(wg),Zs(XA))},e.\u0275dir=Je({type:e,selectors:[["","ngbCollapse",""]],inputs:{collapsed:["ngbCollapse","collapsed"],animation:"animation"},outputs:{ngbCollapseChange:"ngbCollapseChange",shown:"shown",hidden:"hidden"},exportAs:["ngbCollapse"],features:[At]}),e})(),bg=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=We({type:e}),e.\u0275inj=pe({}),e})();var Cg=(()=>(function(e){e[e.Tab=9]="Tab",e[e.Enter=13]="Enter",e[e.Escape=27]="Escape",e[e.Space=32]="Space",e[e.PageUp=33]="PageUp",e[e.PageDown=34]="PageDown",e[e.End=35]="End",e[e.Home=36]="Home",e[e.ArrowLeft=37]="ArrowLeft",e[e.ArrowUp=38]="ArrowUp",e[e.ArrowRight=39]="ArrowRight",e[e.ArrowDown=40]="ArrowDown"}(Cg||(Cg={})),Cg))();const Bg=(e,t)=>!!t&&t.some(t=>t.contains(e)),_g=(e,t)=>!t||null!=function(e,t){return t?void 0===e.closest?null:e.closest(t):null}(e,t),Eg="undefined"!=typeof navigator&&!!navigator.userAgent&&(/iPad|iPhone|iPod/.test(navigator.userAgent)||/Macintosh/.test(navigator.userAgent)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>2||/Android/.test(navigator.userAgent));function Fg(e,t,n,r,i,o,s,a){n&&e.runOutsideAngular((e=>Eg?()=>setTimeout(()=>e(),100):e)(()=>{const l=Ap(t,"keydown").pipe(Hp(i),Np(e=>e.which===Cg.Escape),ef(e=>e.preventDefault())),c=Ap(t,"mousedown").pipe(T(e=>{const t=e.target;return 2!==e.button&&!Bg(t,s)&&("inside"===n?Bg(t,o)&&_g(t,a):"outside"===n?!Bg(t,o):_g(t,a)||!Bg(t,o))}),Hp(i)),A=Ap(t,"mouseup").pipe(rf(c),Np(([e,t])=>t),Af(0),Hp(i));Cp([l.pipe(T(e=>0)),A.pipe(T(e=>1))]).subscribe(t=>e.run(()=>r(t)))}))}const Tg=["a[href]","button:not([disabled])",'input:not([disabled]):not([type="hidden"])',"select:not([disabled])","textarea:not([disabled])","[contenteditable]",'[tabindex]:not([tabindex="-1"])'].join(", ");function Sg(e){const t=Array.from(e.querySelectorAll(Tg)).filter(e=>-1!==e.tabIndex);return[t[0],t[t.length-1]]}const xg=/\s+/,Qg=new class{getAllStyles(e){return window.getComputedStyle(e)}getStyle(e,t){return this.getAllStyles(e)[t]}isStaticPositioned(e){return"static"===(this.getStyle(e,"position")||"static")}offsetParent(e){let t=e.offsetParent||document.documentElement;for(;t&&t!==document.documentElement&&this.isStaticPositioned(t);)t=t.offsetParent;return t||document.documentElement}position(e,t=!0){let n,r={width:0,height:0,top:0,bottom:0,left:0,right:0};if("fixed"===this.getStyle(e,"position"))n=e.getBoundingClientRect(),n={top:n.top,bottom:n.bottom,left:n.left,right:n.right,height:n.height,width:n.width};else{const t=this.offsetParent(e);n=this.offset(e,!1),t!==document.documentElement&&(r=this.offset(t,!1)),r.top+=t.clientTop,r.left+=t.clientLeft}return n.top-=r.top,n.bottom-=r.top,n.left-=r.left,n.right-=r.left,t&&(n.top=Math.round(n.top),n.bottom=Math.round(n.bottom),n.left=Math.round(n.left),n.right=Math.round(n.right)),n}offset(e,t=!0){const n=e.getBoundingClientRect(),r=window.pageYOffset-document.documentElement.clientTop,i=window.pageXOffset-document.documentElement.clientLeft;let o={height:n.height||e.offsetHeight,width:n.width||e.offsetWidth,top:n.top+r,bottom:n.bottom+r,left:n.left+i,right:n.right+i};return t&&(o.height=Math.round(o.height),o.width=Math.round(o.width),o.top=Math.round(o.top),o.bottom=Math.round(o.bottom),o.left=Math.round(o.left),o.right=Math.round(o.right)),o}positionElements(e,t,n,r){const[i="top",o="center"]=n.split("-"),s=r?this.offset(e,!1):this.position(e,!1),a=this.getAllStyles(t),l=parseFloat(a.marginTop),c=parseFloat(a.marginBottom),A=parseFloat(a.marginLeft),u=parseFloat(a.marginRight);let h=0,d=0;switch(i){case"top":h=s.top-(t.offsetHeight+l+c);break;case"bottom":h=s.top+s.height;break;case"left":d=s.left-(t.offsetWidth+A+u);break;case"right":d=s.left+s.width}switch(o){case"top":h=s.top;break;case"bottom":h=s.top+s.height-t.offsetHeight;break;case"left":d=s.left;break;case"right":d=s.left+s.width-t.offsetWidth;break;case"center":"top"===i||"bottom"===i?d=s.left+s.width/2-t.offsetWidth/2:h=s.top+s.height/2-t.offsetHeight/2}t.style.transform=`translate(${Math.round(d)}px, ${Math.round(h)}px)`;const p=t.getBoundingClientRect(),f=document.documentElement,g=window.innerHeight||f.clientHeight,m=window.innerWidth||f.clientWidth;return p.left>=0&&p.top>=0&&p.right<=m&&p.bottom<=g}};function kg(e,t,n,r,i){let o=Array.isArray(n)?n:n.split(xg);const s=["top","bottom","left","right","top-left","top-right","bottom-left","bottom-right","left-top","left-bottom","right-top","right-bottom"],a=t.classList,l=e=>{const[t,n]=e.split("-"),r=[];return i&&(r.push(`${i}-${t}`),n&&r.push(`${i}-${t}-${n}`),r.forEach(e=>{a.add(e)})),r};i&&s.forEach(e=>{a.remove(`${i}-${e}`)});let c=o.findIndex(e=>"auto"===e);c>=0&&s.forEach(function(e){null==o.find(t=>-1!==t.search("^"+e))&&o.splice(c++,1,e)});const A=t.style;A.position="absolute",A.top="0",A.left="0",A["will-change"]="transform";let u=null,h=!1;for(u of o){let n=l(u);if(Qg.positionElements(e,t,u,r)){h=!0;break}i&&n.forEach(e=>{a.remove(e)})}return h||(u=o[0],l(u),Qg.positionElements(e,t,u,r)),u}new Date(1882,10,12),new Date(2174,10,25);let Ug=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=We({type:e}),e.\u0275inj=pe({imports:[[wh,sp]]}),e})(),Og=(()=>{class e{constructor(){this.autoClose=!0,this.placement=["bottom-left","bottom-right","top-left","top-right"]}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=de({factory:function(){return new e},token:e,providedIn:"root"}),e})(),Ig=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Je({type:e,selectors:[["",8,"navbar"]]}),e})(),Lg=(()=>{class e{constructor(e){this.elementRef=e,this._disabled=!1}set disabled(e){this._disabled=""===e||!0===e}get disabled(){return this._disabled}}return e.\u0275fac=function(t){return new(t||e)(Zs(ql))},e.\u0275dir=Je({type:e,selectors:[["","ngbDropdownItem",""]],hostAttrs:[1,"dropdown-item"],hostVars:2,hostBindings:function(e,t){2&e&&Ta("disabled",t.disabled)},inputs:{disabled:"disabled"}}),e})(),Dg=(()=>{class e{constructor(e,t){this.dropdown=e,this.placement="bottom",this.isOpen=!1,this.nativeElement=t.nativeElement}}return e.\u0275fac=function(t){return new(t||e)(Zs(oe(()=>Rg)),Zs(ql))},e.\u0275dir=Je({type:e,selectors:[["","ngbDropdownMenu",""]],contentQueries:function(e,t,n){if(1&e&&wA(n,Lg,4),2&e){let e;mA(e=vA())&&(t.menuItems=e)}},hostVars:5,hostBindings:function(e,t){1&e&&Aa("keydown.ArrowUp",function(e){return t.dropdown.onKeyDown(e)})("keydown.ArrowDown",function(e){return t.dropdown.onKeyDown(e)})("keydown.Home",function(e){return t.dropdown.onKeyDown(e)})("keydown.End",function(e){return t.dropdown.onKeyDown(e)})("keydown.Enter",function(e){return t.dropdown.onKeyDown(e)})("keydown.Space",function(e){return t.dropdown.onKeyDown(e)})("keydown.Tab",function(e){return t.dropdown.onKeyDown(e)})("keydown.Shift.Tab",function(e){return t.dropdown.onKeyDown(e)}),2&e&&(zs("x-placement",t.placement),Ta("dropdown-menu",!0)("show",t.dropdown.isOpen()))}}),e})(),Mg=(()=>{class e{constructor(e,t){this.dropdown=e,this.nativeElement=t.nativeElement}}return e.\u0275fac=function(t){return new(t||e)(Zs(oe(()=>Rg)),Zs(ql))},e.\u0275dir=Je({type:e,selectors:[["","ngbDropdownAnchor",""]],hostAttrs:[1,"dropdown-toggle"],hostVars:1,hostBindings:function(e,t){2&e&&zs("aria-expanded",t.dropdown.isOpen())}}),e})(),Hg=(()=>{class e extends Mg{constructor(e,t){super(e,t)}}return e.\u0275fac=function(t){return new(t||e)(Zs(oe(()=>Rg)),Zs(ql))},e.\u0275dir=Je({type:e,selectors:[["","ngbDropdownToggle",""]],hostAttrs:[1,"dropdown-toggle"],hostVars:1,hostBindings:function(e,t){1&e&&Aa("click",function(){return t.dropdown.toggle()})("keydown.ArrowUp",function(e){return t.dropdown.onKeyDown(e)})("keydown.ArrowDown",function(e){return t.dropdown.onKeyDown(e)})("keydown.Home",function(e){return t.dropdown.onKeyDown(e)})("keydown.End",function(e){return t.dropdown.onKeyDown(e)})("keydown.Tab",function(e){return t.dropdown.onKeyDown(e)})("keydown.Shift.Tab",function(e){return t.dropdown.onKeyDown(e)}),2&e&&zs("aria-expanded",t.dropdown.isOpen())},features:[Rl([{provide:Mg,useExisting:oe(()=>e)}]),Os]}),e})(),Rg=(()=>{class e{constructor(e,t,n,r,i,o,s){this._changeDetector=e,this._document=n,this._ngZone=r,this._elementRef=i,this._renderer=o,this._closed$=new _,this._bodyContainer=null,this._open=!1,this.openChange=new oA,this.placement=t.placement,this.container=t.container,this.autoClose=t.autoClose,this.display=s?"static":"dynamic",this._zoneSubscription=r.onStable.subscribe(()=>{this._positionMenu()})}ngAfterContentInit(){this._ngZone.onStable.pipe(jp(1)).subscribe(()=>{this._applyPlacementClasses(),this._open&&this._setCloseHandlers()})}ngOnChanges(e){if(e.container&&this._open&&this._applyContainer(this.container),e.placement&&!e.placement.isFirstChange&&this._applyPlacementClasses(),e.dropdownClass){const{currentValue:t,previousValue:n}=e.dropdownClass;this._applyCustomDropdownClass(t,n)}}isOpen(){return this._open}open(){this._open||(this._open=!0,this._applyContainer(this.container),this.openChange.emit(!0),this._setCloseHandlers(),this._anchor&&this._anchor.nativeElement.focus())}_setCloseHandlers(){Fg(this._ngZone,this._document,this.autoClose,e=>{this.close(),0===e&&this._anchor.nativeElement.focus()},this._closed$,this._menu?[this._menu.nativeElement]:[],this._anchor?[this._anchor.nativeElement]:[],".dropdown-item,.dropdown-divider")}close(){this._open&&(this._open=!1,this._resetContainer(),this._closed$.next(),this.openChange.emit(!1),this._changeDetector.markForCheck())}toggle(){this.isOpen()?this.close():this.open()}ngOnDestroy(){this._resetContainer(),this._closed$.next(),this._zoneSubscription.unsubscribe()}onKeyDown(e){const t=e.which,n=this._getMenuElements();let r=-1,i=null;const o=this._isEventFromToggle(e);if(!o&&n.length&&n.forEach((t,n)=>{t.contains(e.target)&&(i=t),t===this._document.activeElement&&(r=n)}),t!==Cg.Space&&t!==Cg.Enter){if(t!==Cg.Tab){if(o||i){if(this.open(),n.length){switch(t){case Cg.ArrowDown:r=Math.min(r+1,n.length-1);break;case Cg.ArrowUp:if(this._isDropup()&&-1===r){r=n.length-1;break}r=Math.max(r-1,0);break;case Cg.Home:r=0;break;case Cg.End:r=n.length-1}n[r].focus()}e.preventDefault()}}else if(e.target&&this.isOpen()&&this.autoClose){if(this._anchor.nativeElement===e.target)return void("body"!==this.container||e.shiftKey?e.shiftKey&&this.close():(this._renderer.setAttribute(this._menu.nativeElement,"tabindex","0"),this._menu.nativeElement.focus(),this._renderer.removeAttribute(this._menu.nativeElement,"tabindex")));if("body"===this.container){const t=this._menu.nativeElement.querySelectorAll(Tg);e.shiftKey&&e.target===t[0]?(this._anchor.nativeElement.focus(),e.preventDefault()):e.shiftKey||e.target!==t[t.length-1]||(this._anchor.nativeElement.focus(),this.close())}else Ap(e.target,"focusout").pipe(jp(1)).subscribe(({relatedTarget:e})=>{this._elementRef.nativeElement.contains(e)||this.close()})}}else!i||!0!==this.autoClose&&"inside"!==this.autoClose||Ap(i,"click").pipe(jp(1)).subscribe(()=>this.close())}_isDropup(){return this._elementRef.nativeElement.classList.contains("dropup")}_isEventFromToggle(e){return this._anchor.nativeElement.contains(e.target)}_getMenuElements(){const e=this._menu;return null==e?[]:e.menuItems.filter(e=>!e.disabled).map(e=>e.elementRef.nativeElement)}_positionMenu(){const e=this._menu;this.isOpen()&&e&&this._applyPlacementClasses("dynamic"===this.display?kg(this._anchor.nativeElement,this._bodyContainer||this._menu.nativeElement,this.placement,"body"===this.container):this._getFirstPlacement(this.placement))}_getFirstPlacement(e){return Array.isArray(e)?e[0]:e.split(" ")[0]}_resetContainer(){const e=this._renderer;if(this._menu){const t=this._menu.nativeElement;e.appendChild(this._elementRef.nativeElement,t),e.removeStyle(t,"position"),e.removeStyle(t,"transform")}this._bodyContainer&&(e.removeChild(this._document.body,this._bodyContainer),this._bodyContainer=null)}_applyContainer(e=null){if(this._resetContainer(),"body"===e){const e=this._renderer,t=this._menu.nativeElement,n=this._bodyContainer=this._bodyContainer||e.createElement("div");e.setStyle(n,"position","absolute"),e.setStyle(t,"position","static"),e.setStyle(n,"z-index","1050"),e.appendChild(n,t),e.appendChild(this._document.body,n)}this._applyCustomDropdownClass(this.dropdownClass)}_applyCustomDropdownClass(e,t){const n="body"===this.container?this._bodyContainer:this._elementRef.nativeElement;n&&(t&&this._renderer.removeClass(n,t),e&&this._renderer.addClass(n,e))}_applyPlacementClasses(e){const t=this._menu;if(t){e||(e=this._getFirstPlacement(this.placement));const n=this._renderer,r=this._elementRef.nativeElement;n.removeClass(r,"dropup"),n.removeClass(r,"dropdown"),t.placement="static"===this.display?null:e;const i=-1!==e.search("^top")?"dropup":"dropdown";n.addClass(r,i);const o=this._bodyContainer;o&&(n.removeClass(o,"dropup"),n.removeClass(o,"dropdown"),n.addClass(o,i))}}}return e.\u0275fac=function(t){return new(t||e)(Zs(yc),Zs(Og),Zs(Tu),Zs(XA),Zs(ql),Zs(Xl),Zs(Ig,8))},e.\u0275dir=Je({type:e,selectors:[["","ngbDropdown",""]],contentQueries:function(e,t,n){if(1&e&&(wA(n,Dg,5),wA(n,Mg,5)),2&e){let e;mA(e=vA())&&(t._menu=e.first),mA(e=vA())&&(t._anchor=e.first)}},hostVars:2,hostBindings:function(e,t){2&e&&Ta("show",t.isOpen())},inputs:{_open:["open","_open"],placement:"placement",container:"container",autoClose:"autoClose",display:"display",dropdownClass:"dropdownClass"},outputs:{openChange:"openChange"},exportAs:["ngbDropdown"],features:[At]}),e})(),Pg=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=We({type:e}),e.\u0275inj=pe({}),e})(),Ng=(()=>{class e{constructor(e){this._ngbConfig=e,this.backdrop=!0,this.keyboard=!0}get animation(){return void 0===this._animation?this._ngbConfig.animation:this._animation}set animation(e){this._animation=e}}return e.\u0275fac=function(t){return new(t||e)(mr(ig))},e.\u0275prov=de({factory:function(){return new e(mr(ig))},token:e,providedIn:"root"}),e})();class Kg{constructor(e,t,n){this.nodes=e,this.viewRef=t,this.componentRef=n}}class Vg{constructor(e,t,n,r,i,o,s){this._type=e,this._injector=t,this._viewContainerRef=n,this._renderer=r,this._ngZone=i,this._componentFactoryResolver=o,this._applicationRef=s,this._windowRef=null,this._contentRef=null}open(e,t,n=!1){this._windowRef||(this._contentRef=this._getContentRef(e,t),this._windowRef=this._viewContainerRef.createComponent(this._componentFactoryResolver.resolveComponentFactory(this._type),this._viewContainerRef.length,this._injector,this._contentRef.nodes));const{nativeElement:r}=this._windowRef.location,i=this._ngZone.onStable.pipe(jp(1),P(()=>lg(this._ngZone,r,({classList:e})=>e.add("show"),{animation:n,runningTransition:"continue"})));return{windowRef:this._windowRef,transition$:i}}close(e=!1){return this._windowRef?lg(this._ngZone,this._windowRef.location.nativeElement,({classList:e})=>e.remove("show"),{animation:e,runningTransition:"stop"}).pipe(ef(()=>{var e;this._windowRef&&(this._viewContainerRef.remove(this._viewContainerRef.indexOf(this._windowRef.hostView)),this._windowRef=null),(null===(e=this._contentRef)||void 0===e?void 0:e.viewRef)&&(this._applicationRef.detachView(this._contentRef.viewRef),this._contentRef.viewRef.destroy(),this._contentRef=null)})):cp(void 0)}_getContentRef(e,t){if(e){if(e instanceof Bc){const n=e.createEmbeddedView(t);return this._applicationRef.attachView(n),new Kg([n.rootNodes],n)}return new Kg([[this._renderer.createText(`${e}`)]])}return new Kg([])}}const Gg=()=>{};let jg=(()=>{class e{constructor(e){this._document=e}compensate(){const e=this._getWidth();return this._isPresent(e)?this._adjustBody(e):Gg}_adjustBody(e){const t=this._document.body,n=t.style.paddingRight,r=parseFloat(window.getComputedStyle(t)["padding-right"]);return t.style["padding-right"]=`${r+e}px`,()=>t.style["padding-right"]=n}_isPresent(e){const t=this._document.body.getBoundingClientRect();return window.innerWidth-(t.left+t.right)>=e-.1*e}_getWidth(){const e=this._document.createElement("div");e.className="modal-scrollbar-measure";const t=this._document.body;t.appendChild(e);const n=e.getBoundingClientRect().width-e.clientWidth;return t.removeChild(e),n}}return e.\u0275fac=function(t){return new(t||e)(mr(Tu))},e.\u0275prov=de({factory:function(){return new e(mr(Tu))},token:e,providedIn:"root"}),e})(),qg=(()=>{class e{constructor(e,t){this._el=e,this._zone=t}ngOnInit(){this._zone.onStable.asObservable().pipe(jp(1)).subscribe(()=>{lg(this._zone,this._el.nativeElement,(e,t)=>{t&&ng(e),e.classList.add("show")},{animation:this.animation,runningTransition:"continue"})})}hide(){return lg(this._zone,this._el.nativeElement,({classList:e})=>e.remove("show"),{animation:this.animation,runningTransition:"stop"})}}return e.\u0275fac=function(t){return new(t||e)(Zs(ql),Zs(XA))},e.\u0275cmp=Ge({type:e,selectors:[["ngb-modal-backdrop"]],hostAttrs:[2,"z-index","1050"],hostVars:6,hostBindings:function(e,t){2&e&&(Sa("modal-backdrop"+(t.backdropClass?" "+t.backdropClass:"")),Ta("show",!t.animation)("fade",t.animation))},inputs:{animation:"animation",backdropClass:"backdropClass"},decls:0,vars:0,template:function(e,t){},encapsulation:2}),e})();class zg{close(e){}dismiss(e){}}class Wg{constructor(e,t,n,r){this._windowCmptRef=e,this._contentRef=t,this._backdropCmptRef=n,this._beforeDismiss=r,this._closed=new _,this._dismissed=new _,this._hidden=new _,e.instance.dismissEvent.subscribe(e=>{this.dismiss(e)}),this.result=new Promise((e,t)=>{this._resolve=e,this._reject=t}),this.result.then(null,()=>{})}get componentInstance(){if(this._contentRef&&this._contentRef.componentRef)return this._contentRef.componentRef.instance}get closed(){return this._closed.asObservable().pipe(Hp(this._hidden))}get dismissed(){return this._dismissed.asObservable().pipe(Hp(this._hidden))}get hidden(){return this._hidden.asObservable()}get shown(){return this._windowCmptRef.instance.shown.asObservable()}close(e){this._windowCmptRef&&(this._closed.next(e),this._resolve(e),this._removeModalElements())}_dismiss(e){this._dismissed.next(e),this._reject(e),this._removeModalElements()}dismiss(e){if(this._windowCmptRef)if(this._beforeDismiss){const t=this._beforeDismiss();t&&t.then?t.then(t=>{!1!==t&&this._dismiss(e)},()=>{}):!1!==t&&this._dismiss(e)}else this._dismiss(e)}_removeModalElements(){const e=this._windowCmptRef.instance.hide(),t=this._backdropCmptRef?this._backdropCmptRef.instance.hide():cp(void 0);e.subscribe(()=>{const{nativeElement:e}=this._windowCmptRef.location;e.parentNode.removeChild(e),this._windowCmptRef.destroy(),this._contentRef&&this._contentRef.viewRef&&this._contentRef.viewRef.destroy(),this._windowCmptRef=null,this._contentRef=null}),t.subscribe(()=>{if(this._backdropCmptRef){const{nativeElement:e}=this._backdropCmptRef.location;e.parentNode.removeChild(e),this._backdropCmptRef.destroy(),this._backdropCmptRef=null}}),kp(e,t).subscribe(()=>{this._hidden.next(),this._hidden.complete()})}}var Xg=(()=>(function(e){e[e.BACKDROP_CLICK=0]="BACKDROP_CLICK",e[e.ESC=1]="ESC"}(Xg||(Xg={})),Xg))();let Jg=(()=>{class e{constructor(e,t,n){this._document=e,this._elRef=t,this._zone=n,this._closed$=new _,this._elWithFocus=null,this.backdrop=!0,this.keyboard=!0,this.dismissEvent=new oA,this.shown=new _,this.hidden=new _}dismiss(e){this.dismissEvent.emit(e)}ngOnInit(){this._elWithFocus=this._document.activeElement,this._zone.onStable.asObservable().pipe(jp(1)).subscribe(()=>{this._show()})}ngOnDestroy(){this._disableEventHandling()}hide(){const{nativeElement:e}=this._elRef,t={animation:this.animation,runningTransition:"stop"},n=kp(lg(this._zone,e,()=>e.classList.remove("show"),t),lg(this._zone,this._dialogEl.nativeElement,()=>{},t));return n.subscribe(()=>{this.hidden.next(),this.hidden.complete()}),this._disableEventHandling(),this._restoreFocus(),n}_show(){const e={animation:this.animation,runningTransition:"continue"};kp(lg(this._zone,this._elRef.nativeElement,(e,t)=>{t&&ng(e),e.classList.add("show")},e),lg(this._zone,this._dialogEl.nativeElement,()=>{},e)).subscribe(()=>{this.shown.next(),this.shown.complete()}),this._enableEventHandling(),this._setFocus()}_enableEventHandling(){const{nativeElement:e}=this._elRef;this._zone.runOutsideAngular(()=>{Ap(e,"keydown").pipe(Hp(this._closed$),Np(e=>e.which===Cg.Escape)).subscribe(e=>{this.keyboard?requestAnimationFrame(()=>{e.defaultPrevented||this._zone.run(()=>this.dismiss(Xg.ESC))}):"static"===this.backdrop&&this._bumpBackdrop()});let t=!1;Ap(this._dialogEl.nativeElement,"mousedown").pipe(Hp(this._closed$),ef(()=>t=!1),$p(()=>Ap(e,"mouseup").pipe(Hp(this._closed$),jp(1))),Np(({target:t})=>e===t)).subscribe(()=>{t=!0}),Ap(e,"click").pipe(Hp(this._closed$)).subscribe(({target:n})=>{e===n&&("static"===this.backdrop?this._bumpBackdrop():!0!==this.backdrop||t||this._zone.run(()=>this.dismiss(Xg.BACKDROP_CLICK))),t=!1})})}_disableEventHandling(){this._closed$.next()}_setFocus(){const{nativeElement:e}=this._elRef;if(!e.contains(document.activeElement)){const t=e.querySelector("[ngbAutofocus]"),n=Sg(e)[0];(t||n||e).focus()}}_restoreFocus(){const e=this._document.body,t=this._elWithFocus;let n;n=t&&t.focus&&e.contains(t)?t:e,this._zone.runOutsideAngular(()=>{setTimeout(()=>n.focus()),this._elWithFocus=null})}_bumpBackdrop(){"static"===this.backdrop&&lg(this._zone,this._elRef.nativeElement,({classList:e})=>(e.add("modal-static"),()=>e.remove("modal-static")),{animation:this.animation,runningTransition:"continue"})}}return e.\u0275fac=function(t){return new(t||e)(Zs(Tu),Zs(ql),Zs(XA))},e.\u0275cmp=Ge({type:e,selectors:[["ngb-modal-window"]],viewQuery:function(e,t){if(1&e&&yA(yf,7),2&e){let e;mA(e=vA())&&(t._dialogEl=e.first)}},hostAttrs:["role","dialog","tabindex","-1"],hostVars:7,hostBindings:function(e,t){2&e&&(zs("aria-modal",!0)("aria-labelledby",t.ariaLabelledBy)("aria-describedby",t.ariaDescribedBy),Sa("modal d-block"+(t.windowClass?" "+t.windowClass:"")),Ta("fade",t.animation))},inputs:{backdrop:"backdrop",keyboard:"keyboard",animation:"animation",ariaLabelledBy:"ariaLabelledBy",ariaDescribedBy:"ariaDescribedBy",centered:"centered",scrollable:"scrollable",size:"size",windowClass:"windowClass",modalDialogClass:"modalDialogClass"},outputs:{dismissEvent:"dismiss"},ngContentSelectors:mf,decls:4,vars:2,consts:[["role","document"],["dialog",""],[1,"modal-content"]],template:function(e,t){1&e&&(fa(),na(0,"div",0,1),na(2,"div",2),ga(3),ra(),ra()),2&e&&Sa("modal-dialog"+(t.size?" modal-"+t.size:"")+(t.centered?" modal-dialog-centered":"")+(t.scrollable?" modal-dialog-scrollable":"")+(t.modalDialogClass?" "+t.modalDialogClass:""))},styles:["ngb-modal-window .component-host-scrollable{display:flex;flex-direction:column;overflow:hidden}"],encapsulation:2}),e})(),$g=(()=>{class e{constructor(e,t,n,r,i,o){this._applicationRef=e,this._injector=t,this._document=n,this._scrollBar=r,this._rendererFactory=i,this._ngZone=o,this._activeWindowCmptHasChanged=new _,this._ariaHiddenValues=new Map,this._backdropAttributes=["animation","backdropClass"],this._modalRefs=[],this._windowAttributes=["animation","ariaLabelledBy","ariaDescribedBy","backdrop","centered","keyboard","scrollable","size","windowClass","modalDialogClass"],this._windowCmpts=[],this._activeInstances=new oA,this._activeWindowCmptHasChanged.subscribe(()=>{if(this._windowCmpts.length){const e=this._windowCmpts[this._windowCmpts.length-1];((e,t,n,r=!1)=>{this._ngZone.runOutsideAngular(()=>{const e=Ap(t,"focusin").pipe(Hp(n),T(e=>e.target));Ap(t,"keydown").pipe(Hp(n),Np(e=>e.which===Cg.Tab),rf(e)).subscribe(([e,n])=>{const[r,i]=Sg(t);n!==r&&n!==t||!e.shiftKey||(i.focus(),e.preventDefault()),n!==i||e.shiftKey||(r.focus(),e.preventDefault())}),r&&Ap(t,"click").pipe(Hp(n),rf(e),T(e=>e[1])).subscribe(e=>e.focus())})})(0,e.location.nativeElement,this._activeWindowCmptHasChanged),this._revertAriaHidden(),this._setAriaHidden(e.location.nativeElement)}})}open(e,t,n,r){const i=r.container instanceof HTMLElement?r.container:tg(r.container)?this._document.querySelector(r.container):this._document.body,o=this._rendererFactory.createRenderer(null,null),s=this._scrollBar.compensate(),a=()=>{this._modalRefs.length||(o.removeClass(this._document.body,"modal-open"),this._revertAriaHidden())};if(!i)throw new Error(`The specified modal container "${r.container||"body"}" was not found in the DOM.`);const l=new zg,c=this._getContentRef(e,r.injector||t,n,l,r);let A=!1!==r.backdrop?this._attachBackdrop(e,i):void 0,u=this._attachWindowComponent(e,i,c),h=new Wg(u,c,A,r.beforeDismiss);return this._registerModalRef(h),this._registerWindowCmpt(u),h.result.then(s,s),h.result.then(a,a),l.close=e=>{h.close(e)},l.dismiss=e=>{h.dismiss(e)},this._applyWindowOptions(u.instance,r),1===this._modalRefs.length&&o.addClass(this._document.body,"modal-open"),A&&A.instance&&(this._applyBackdropOptions(A.instance,r),A.changeDetectorRef.detectChanges()),u.changeDetectorRef.detectChanges(),h}get activeInstances(){return this._activeInstances}dismissAll(e){this._modalRefs.forEach(t=>t.dismiss(e))}hasOpenModals(){return this._modalRefs.length>0}_attachBackdrop(e,t){let n=e.resolveComponentFactory(qg).create(this._injector);return this._applicationRef.attachView(n.hostView),t.appendChild(n.location.nativeElement),n}_attachWindowComponent(e,t,n){let r=e.resolveComponentFactory(Jg).create(this._injector,n.nodes);return this._applicationRef.attachView(r.hostView),t.appendChild(r.location.nativeElement),r}_applyWindowOptions(e,t){this._windowAttributes.forEach(n=>{tg(t[n])&&(e[n]=t[n])})}_applyBackdropOptions(e,t){this._backdropAttributes.forEach(n=>{tg(t[n])&&(e[n]=t[n])})}_getContentRef(e,t,n,r,i){return n?n instanceof Bc?this._createFromTemplateRef(n,r):"string"==typeof n?this._createFromString(n):this._createFromComponent(e,t,n,r,i):new Kg([])}_createFromTemplateRef(e,t){const n=e.createEmbeddedView({$implicit:t,close(e){t.close(e)},dismiss(e){t.dismiss(e)}});return this._applicationRef.attachView(n),new Kg([n.rootNodes],n)}_createFromString(e){const t=this._document.createTextNode(`${e}`);return new Kg([[t]])}_createFromComponent(e,t,n,r,i){const o=e.resolveComponentFactory(n),s=ks.create({providers:[{provide:zg,useValue:r}],parent:t}),a=o.create(s),l=a.location.nativeElement;return i.scrollable&&l.classList.add("component-host-scrollable"),this._applicationRef.attachView(a.hostView),new Kg([[l]],a.hostView,a)}_setAriaHidden(e){const t=e.parentElement;t&&e!==this._document.body&&(Array.from(t.children).forEach(t=>{t!==e&&"SCRIPT"!==t.nodeName&&(this._ariaHiddenValues.set(t,t.getAttribute("aria-hidden")),t.setAttribute("aria-hidden","true"))}),this._setAriaHidden(t))}_revertAriaHidden(){this._ariaHiddenValues.forEach((e,t)=>{e?t.setAttribute("aria-hidden",e):t.removeAttribute("aria-hidden")}),this._ariaHiddenValues.clear()}_registerModalRef(e){const t=()=>{const t=this._modalRefs.indexOf(e);t>-1&&(this._modalRefs.splice(t,1),this._activeInstances.emit(this._modalRefs))};this._modalRefs.push(e),this._activeInstances.emit(this._modalRefs),e.result.then(t,t)}_registerWindowCmpt(e){this._windowCmpts.push(e),this._activeWindowCmptHasChanged.next(),e.onDestroy(()=>{const t=this._windowCmpts.indexOf(e);t>-1&&(this._windowCmpts.splice(t,1),this._activeWindowCmptHasChanged.next())})}}return e.\u0275fac=function(t){return new(t||e)(mr(fu),mr(ks),mr(Tu),mr(jg),mr(Wl),mr(XA))},e.\u0275prov=de({factory:function(){return new e(mr(fu),mr(gs),mr(Tu),mr(jg),mr(Wl),mr(XA))},token:e,providedIn:"root"}),e})(),Yg=(()=>{class e{constructor(e,t,n,r){this._moduleCFR=e,this._injector=t,this._modalStack=n,this._config=r}open(e,t={}){const n=Object.assign(Object.assign(Object.assign({},this._config),{animation:this._config.animation}),t);return this._modalStack.open(this._moduleCFR,this._injector,e,n)}get activeInstances(){return this._modalStack.activeInstances}dismissAll(e){this._modalStack.dismissAll(e)}hasOpenModals(){return this._modalStack.hasOpenModals()}}return e.\u0275fac=function(t){return new(t||e)(mr(Kl),mr(ks),mr($g),mr(Ng))},e.\u0275prov=de({factory:function(){return new e(mr(Kl),mr(gs),mr($g),mr(Ng))},token:e,providedIn:"root"}),e})(),Zg=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=We({type:e}),e.\u0275inj=pe({providers:[Yg]}),e})(),em=(()=>{class e{constructor(e){this._ngbConfig=e,this.destroyOnHide=!0,this.orientation="horizontal",this.roles="tablist",this.keyboard=!1}get animation(){return void 0===this._animation?this._ngbConfig.animation:this._animation}set animation(e){this._animation=e}}return e.\u0275fac=function(t){return new(t||e)(mr(ig))},e.\u0275prov=de({factory:function(){return new e(mr(ig))},token:e,providedIn:"root"}),e})();const tm=e=>tg(e)&&""!==e;let nm=0,rm=(()=>{class e{constructor(e){this.templateRef=e}}return e.\u0275fac=function(t){return new(t||e)(Zs(Bc))},e.\u0275dir=Je({type:e,selectors:[["ng-template","ngbNavContent",""]]}),e})(),im=(()=>{class e{constructor(e,t){this.elementRef=t,this.disabled=!1,this.shown=new oA,this.hidden=new oA,this._nav=e}ngAfterContentChecked(){this.contentTpl=this.contentTpls.first}ngOnInit(){tg(this.domId)||(this.domId="ngb-nav-"+nm++)}get active(){return this._nav.activeId===this.id}get id(){return tm(this._id)?this._id:this.domId}get panelDomId(){return`${this.domId}-panel`}isPanelInDom(){return(tg(this.destroyOnHide)?!this.destroyOnHide:!this._nav.destroyOnHide)||this.active}}return e.\u0275fac=function(t){return new(t||e)(Zs(oe(()=>om)),Zs(ql))},e.\u0275dir=Je({type:e,selectors:[["","ngbNavItem",""]],contentQueries:function(e,t,n){if(1&e&&wA(n,rm,4),2&e){let e;mA(e=vA())&&(t.contentTpls=e)}},hostVars:2,hostBindings:function(e,t){2&e&&Ta("nav-item",!0)},inputs:{disabled:"disabled",domId:"domId",destroyOnHide:"destroyOnHide",_id:["ngbNavItem","_id"]},outputs:{shown:"shown",hidden:"hidden"},exportAs:["ngbNavItem"]}),e})(),om=(()=>{class e{constructor(e,t,n,r){this.role=e,this._cd=n,this._document=r,this.activeIdChange=new oA,this.shown=new oA,this.hidden=new oA,this.destroy$=new _,this.navItemChange$=new _,this.navChange=new oA,this.animation=t.animation,this.destroyOnHide=t.destroyOnHide,this.orientation=t.orientation,this.roles=t.roles,this.keyboard=t.keyboard}click(e){e.disabled||this._updateActiveId(e.id)}onKeyDown(e){if("tablist"!==this.roles||!this.keyboard)return;const t=e.which,n=this.links.filter(e=>!e.navItem.disabled),{length:r}=n;let i=-1;if(n.forEach((e,t)=>{e.elRef.nativeElement===this._document.activeElement&&(i=t)}),r){switch(t){case Cg.ArrowLeft:if("vertical"===this.orientation)return;i=(i-1+r)%r;break;case Cg.ArrowRight:if("vertical"===this.orientation)return;i=(i+1)%r;break;case Cg.ArrowDown:if("horizontal"===this.orientation)return;i=(i+1)%r;break;case Cg.ArrowUp:if("horizontal"===this.orientation)return;i=(i-1+r)%r;break;case Cg.Home:i=0;break;case Cg.End:i=r-1}"changeWithArrows"===this.keyboard&&this.select(n[i].navItem.id),n[i].elRef.nativeElement.focus(),e.preventDefault()}}select(e){this._updateActiveId(e,!1)}ngAfterContentInit(){if(!tg(this.activeId)){const e=this.items.first?this.items.first.id:null;tm(e)&&(this._updateActiveId(e,!1),this._cd.detectChanges())}this.items.changes.pipe(Hp(this.destroy$)).subscribe(()=>this._notifyItemChanged(this.activeId))}ngOnChanges({activeId:e}){e&&!e.firstChange&&this._notifyItemChanged(e.currentValue)}ngOnDestroy(){this.destroy$.next()}_updateActiveId(e,t=!0){if(this.activeId!==e){let n=!1;t&&this.navChange.emit({activeId:this.activeId,nextId:e,preventDefault:()=>{n=!0}}),n||(this.activeId=e,this.activeIdChange.emit(e),this._notifyItemChanged(e))}}_notifyItemChanged(e){this.navItemChange$.next(this._getItemById(e))}_getItemById(e){return this.items&&this.items.find(t=>t.id===e)||null}}return e.\u0275fac=function(t){return new(t||e)(zn("role"),Zs(em),Zs(yc),Zs(Tu))},e.\u0275dir=Je({type:e,selectors:[["","ngbNav",""]],contentQueries:function(e,t,n){if(1&e&&(wA(n,im,4),wA(n,sm,5)),2&e){let e;mA(e=vA())&&(t.items=e),mA(e=vA())&&(t.links=e)}},hostVars:6,hostBindings:function(e,t){1&e&&Aa("keydown.arrowLeft",function(e){return t.onKeyDown(e)})("keydown.arrowRight",function(e){return t.onKeyDown(e)})("keydown.arrowDown",function(e){return t.onKeyDown(e)})("keydown.arrowUp",function(e){return t.onKeyDown(e)})("keydown.Home",function(e){return t.onKeyDown(e)})("keydown.End",function(e){return t.onKeyDown(e)}),2&e&&(zs("aria-orientation","vertical"===t.orientation&&"tablist"===t.roles?"vertical":void 0)("role",t.role?t.role:t.roles?"tablist":void 0),Ta("nav",!0)("flex-column","vertical"===t.orientation))},inputs:{animation:"animation",destroyOnHide:"destroyOnHide",orientation:"orientation",roles:"roles",keyboard:"keyboard",activeId:"activeId"},outputs:{activeIdChange:"activeIdChange",shown:"shown",hidden:"hidden",navChange:"navChange"},exportAs:["ngbNav"],features:[At]}),e})(),sm=(()=>{class e{constructor(e,t,n,r){this.role=e,this.navItem=t,this.nav=n,this.elRef=r}hasNavItemClass(){return this.navItem.elementRef.nativeElement.nodeType===Node.COMMENT_NODE}}return e.\u0275fac=function(t){return new(t||e)(zn("role"),Zs(im),Zs(om),Zs(ql))},e.\u0275dir=Je({type:e,selectors:[["a","ngbNavLink",""]],hostAttrs:["href",""],hostVars:14,hostBindings:function(e,t){1&e&&Aa("click",function(e){return t.nav.click(t.navItem),e.preventDefault()}),2&e&&(Ga("id",t.navItem.domId),zs("role",t.role?t.role:t.nav.roles?"tab":void 0)("tabindex",t.navItem.disabled?-1:void 0)("aria-controls",t.navItem.isPanelInDom()?t.navItem.panelDomId:null)("aria-selected",t.navItem.active)("aria-disabled",t.navItem.disabled),Ta("nav-link",!0)("nav-item",t.hasNavItemClass())("active",t.navItem.active)("disabled",t.navItem.disabled))}}),e})();const am=({classList:e})=>(e.remove("show"),()=>e.remove("active")),lm=(e,t)=>{t&&ng(e),e.classList.add("show")};let cm=(()=>{class e{constructor(e){this.elRef=e}}return e.\u0275fac=function(t){return new(t||e)(Zs(ql))},e.\u0275dir=Je({type:e,selectors:[["","ngbNavPane",""]],hostAttrs:[1,"tab-pane"],hostVars:5,hostBindings:function(e,t){2&e&&(Ga("id",t.item.panelDomId),zs("role",t.role?t.role:t.nav.roles?"tabpanel":void 0)("aria-labelledby",t.item.domId),Ta("fade",t.nav.animation))},inputs:{item:"item",nav:"nav",role:"role"}}),e})(),Am=(()=>{class e{constructor(e,t){this._cd=e,this._ngZone=t,this._activePane=null}isPanelTransitioning(e){var t;return(null===(t=this._activePane)||void 0===t?void 0:t.item)===e}ngAfterViewInit(){var e;this._updateActivePane(),this.nav.navItemChange$.pipe(Hp(this.nav.destroy$),Wp((null===(e=this._activePane)||void 0===e?void 0:e.item)||null),e=>e.lift(new Xp(void 0,void 0)),e=>e.lift(new pf(1))).subscribe(e=>{const t={animation:this.nav.animation,runningTransition:"stop"};this._cd.detectChanges(),this._activePane?lg(this._ngZone,this._activePane.elRef.nativeElement,am,t).subscribe(()=>{var n;const r=null===(n=this._activePane)||void 0===n?void 0:n.item;this._activePane=this._getPaneForItem(e),this._cd.markForCheck(),this._activePane&&(this._activePane.elRef.nativeElement.classList.add("active"),lg(this._ngZone,this._activePane.elRef.nativeElement,lm,t).subscribe(()=>{e&&(e.shown.emit(),this.nav.shown.emit(e.id))})),r&&(r.hidden.emit(),this.nav.hidden.emit(r.id))}):this._updateActivePane()})}_updateActivePane(){var e,t;this._activePane=this._getActivePane(),null===(e=this._activePane)||void 0===e||e.elRef.nativeElement.classList.add("show"),null===(t=this._activePane)||void 0===t||t.elRef.nativeElement.classList.add("active")}_getPaneForItem(e){return this._panes&&this._panes.find(t=>t.item===e)||null}_getActivePane(){return this._panes&&this._panes.find(e=>e.item.active)||null}}return e.\u0275fac=function(t){return new(t||e)(Zs(yc),Zs(XA))},e.\u0275cmp=Ge({type:e,selectors:[["","ngbNavOutlet",""]],viewQuery:function(e,t){if(1&e&&yA(cm,5),2&e){let e;mA(e=vA())&&(t._panes=e)}},hostVars:2,hostBindings:function(e,t){2&e&&Ta("tab-content",!0)},inputs:{paneRole:"paneRole",nav:["ngbNavOutlet","nav"]},attrs:wf,decls:1,vars:1,consts:[["ngFor","",3,"ngForOf"],["ngbNavPane","",3,"item","nav","role",4,"ngIf"],["ngbNavPane","",3,"item","nav","role"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(e,t){1&e&&$s(0,Bf,1,1,"ng-template",0),2&e&&ea("ngForOf",t.nav.items)},directives:[ih,sh,cm,ph],encapsulation:2,changeDetection:0}),e})(),um=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=We({type:e}),e.\u0275inj=pe({imports:[[wh]]}),e})(),hm=(()=>{class e{constructor(){this.disabled=!1,this.boundaryLinks=!1,this.directionLinks=!0,this.ellipses=!0,this.maxSize=0,this.pageSize=10,this.rotate=!1}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=de({factory:function(){return new e},token:e,providedIn:"root"}),e})(),dm=(()=>{class e{constructor(e){this.templateRef=e}}return e.\u0275fac=function(t){return new(t||e)(Zs(Bc))},e.\u0275dir=Je({type:e,selectors:[["ng-template","ngbPaginationEllipsis",""]]}),e})(),pm=(()=>{class e{constructor(e){this.templateRef=e}}return e.\u0275fac=function(t){return new(t||e)(Zs(Bc))},e.\u0275dir=Je({type:e,selectors:[["ng-template","ngbPaginationFirst",""]]}),e})(),fm=(()=>{class e{constructor(e){this.templateRef=e}}return e.\u0275fac=function(t){return new(t||e)(Zs(Bc))},e.\u0275dir=Je({type:e,selectors:[["ng-template","ngbPaginationLast",""]]}),e})(),gm=(()=>{class e{constructor(e){this.templateRef=e}}return e.\u0275fac=function(t){return new(t||e)(Zs(Bc))},e.\u0275dir=Je({type:e,selectors:[["ng-template","ngbPaginationNext",""]]}),e})(),mm=(()=>{class e{constructor(e){this.templateRef=e}}return e.\u0275fac=function(t){return new(t||e)(Zs(Bc))},e.\u0275dir=Je({type:e,selectors:[["ng-template","ngbPaginationNumber",""]]}),e})(),ym=(()=>{class e{constructor(e){this.templateRef=e}}return e.\u0275fac=function(t){return new(t||e)(Zs(Bc))},e.\u0275dir=Je({type:e,selectors:[["ng-template","ngbPaginationPrevious",""]]}),e})(),wm=(()=>{class e{constructor(e){this.templateRef=e}}return e.\u0275fac=function(t){return new(t||e)(Zs(Bc))},e.\u0275dir=Je({type:e,selectors:[["ng-template","ngbPaginationPages",""]]}),e})(),vm=(()=>{class e{constructor(e){this.pageCount=0,this.pages=[],this.page=1,this.pageChange=new oA(!0),this.disabled=e.disabled,this.boundaryLinks=e.boundaryLinks,this.directionLinks=e.directionLinks,this.ellipses=e.ellipses,this.maxSize=e.maxSize,this.pageSize=e.pageSize,this.rotate=e.rotate,this.size=e.size}hasPrevious(){return this.page>1}hasNext(){return this.page<this.pageCount}nextDisabled(){return!this.hasNext()||this.disabled}previousDisabled(){return!this.hasPrevious()||this.disabled}selectPage(e){this._updatePages(e)}ngOnChanges(e){this._updatePages(this.page)}isEllipsis(e){return-1===e}_applyEllipses(e,t){this.ellipses&&(e>0&&(e>2?this.pages.unshift(-1):2===e&&this.pages.unshift(2),this.pages.unshift(1)),t<this.pageCount&&(t<this.pageCount-2?this.pages.push(-1):t===this.pageCount-2&&this.pages.push(this.pageCount-1),this.pages.push(this.pageCount)))}_applyRotation(){let e=0,t=this.pageCount,n=Math.floor(this.maxSize/2);return this.page<=n?t=this.maxSize:this.pageCount-this.page<n?e=this.pageCount-this.maxSize:(e=this.page-n-1,t=this.page+(this.maxSize%2==0?n-1:n)),[e,t]}_applyPagination(){let e=(Math.ceil(this.page/this.maxSize)-1)*this.maxSize;return[e,e+this.maxSize]}_setPageInRange(e){const t=this.page;this.page=function(e,t,n=0){return Math.max(Math.min(e,t),n)}(e,this.pageCount,1),this.page!==t&&eg(this.collectionSize)&&this.pageChange.emit(this.page)}_updatePages(e){this.pageCount=Math.ceil(this.collectionSize/this.pageSize),eg(this.pageCount)||(this.pageCount=0),this.pages.length=0;for(let t=1;t<=this.pageCount;t++)this.pages.push(t);if(this._setPageInRange(e),this.maxSize>0&&this.pageCount>this.maxSize){let e=0,t=this.pageCount;[e,t]=this.rotate?this._applyRotation():this._applyPagination(),this.pages=this.pages.slice(e,t),this._applyEllipses(e,t)}}}return e.\u0275fac=function(t){return new(t||e)(Zs(hm))},e.\u0275cmp=Ge({type:e,selectors:[["ngb-pagination"]],contentQueries:function(e,t,n){if(1&e&&(wA(n,dm,5),wA(n,pm,5),wA(n,fm,5),wA(n,gm,5),wA(n,mm,5),wA(n,ym,5),wA(n,wm,5)),2&e){let e;mA(e=vA())&&(t.tplEllipsis=e.first),mA(e=vA())&&(t.tplFirst=e.first),mA(e=vA())&&(t.tplLast=e.first),mA(e=vA())&&(t.tplNext=e.first),mA(e=vA())&&(t.tplNumber=e.first),mA(e=vA())&&(t.tplPrevious=e.first),mA(e=vA())&&(t.tplPages=e.first)}},hostAttrs:["role","navigation"],inputs:{page:"page",disabled:"disabled",boundaryLinks:"boundaryLinks",directionLinks:"directionLinks",ellipses:"ellipses",maxSize:"maxSize",pageSize:"pageSize",rotate:"rotate",size:"size",collectionSize:"collectionSize"},outputs:{pageChange:"pageChange"},features:[At],decls:20,vars:12,consts:function(){let e,t,n,r,i,o,s,a;return e=$localize`:@@ngb.pagination.first␟656506dfd46380956a655f919f1498d018f75ca0␟6867721956102594380:««`,t=$localize`:@@ngb.pagination.previous␟6e52b6ee77a4848d899dd21b591c6fd499e3aef3␟6479320895410098858:«`,n=$localize`:@@ngb.pagination.next␟ba9cbb4ff311464308a3627e4f1c3345d9fe6d7d␟5458177150283468089:»`,r=$localize`:@@ngb.pagination.last␟49f27a460bc97e7e00be5b37098bfa79884fc7d9␟5277020320267646988:»»`,i=$localize`:@@ngb.pagination.first-aria␟f2f852318759c6396b5d3d17031d53817d7b38cc␟2241508602425256033:First`,o=$localize`:@@ngb.pagination.previous-aria␟680d5c75b7fd8d37961083608b9fcdc4167b4c43␟4452427314943113135:Previous`,s=$localize`:@@ngb.pagination.next-aria␟f732c304c7433e5a83ffcd862c3dce709a0f4982␟3885497195825665706:Next`,a=$localize`:@@ngb.pagination.last-aria␟5c729788ba138508aca1bec050b610f7bf81db3e␟4882268002141858767:Last`,[["first",""],["previous",""],["next",""],["last",""],["ellipsis",""],["defaultNumber",""],["defaultPages",""],["class","page-item",3,"disabled",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["aria-hidden","true"],e,t,n,r,["class","sr-only",4,"ngIf"],[1,"sr-only"],["class","page-item",3,"active","disabled",4,"ngFor","ngForOf"],[1,"page-item"],["class","page-link","tabindex","-1","aria-disabled","true",4,"ngIf"],["class","page-link","href","",3,"click",4,"ngIf"],["tabindex","-1","aria-disabled","true",1,"page-link"],["href","",1,"page-link",3,"click"],["aria-label",i,"href","",1,"page-link",3,"click"],["aria-label",o,"href","",1,"page-link",3,"click"],["aria-label",s,"href","",1,"page-link",3,"click"],["aria-label",a,"href","",1,"page-link",3,"click"]]},template:function(e,t){if(1&e&&($s(0,_f,2,0,"ng-template",null,0,_A),$s(2,Ef,2,0,"ng-template",null,1,_A),$s(4,Ff,2,0,"ng-template",null,2,_A),$s(6,Tf,2,0,"ng-template",null,3,_A),$s(8,Sf,1,0,"ng-template",null,4,_A),$s(10,Qf,2,2,"ng-template",null,5,_A),$s(12,Hf,1,1,"ng-template",null,6,_A),na(14,"ul"),$s(15,Nf,3,9,"li",7),$s(16,Gf,3,8,"li",7),$s(17,jf,0,0,"ng-template",8),$s(18,zf,3,9,"li",7),$s(19,Xf,3,9,"li",7),ra()),2&e){const e=Ys(13);yo(14),Sa("pagination"+(t.size?" pagination-"+t.size:"")),yo(1),ea("ngIf",t.boundaryLinks),yo(1),ea("ngIf",t.directionLinks),yo(1),ea("ngTemplateOutlet",(null==t.tplPages?null:t.tplPages.templateRef)||e)("ngTemplateOutletContext",zc(8,Jf,t.page,t.pages,t.disabled)),yo(1),ea("ngIf",t.directionLinks),yo(1),ea("ngIf",t.boundaryLinks)}},directives:[sh,ph,ih],encapsulation:2,changeDetection:0}),e})(),bm=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=We({type:e}),e.\u0275inj=pe({imports:[[wh]]}),e})();class Cm{constructor(e,t){this.open=e,this.close=t,t||(this.close=e)}isManual(){return"manual"===this.open||"manual"===this.close}}const Bm={hover:["mouseenter","mouseleave"],focus:["focusin","focusout"]},_m=e=>e>0?Af(e):e=>e;let Em=(()=>{class e{constructor(e){this._ngbConfig=e,this.autoClose=!0,this.placement="auto",this.triggers="click",this.disablePopover=!1,this.openDelay=0,this.closeDelay=0}get animation(){return void 0===this._animation?this._ngbConfig.animation:this._animation}set animation(e){this._animation=e}}return e.\u0275fac=function(t){return new(t||e)(mr(ig))},e.\u0275prov=de({factory:function(){return new e(mr(ig))},token:e,providedIn:"root"}),e})(),Fm=0,Tm=(()=>{class e{isTitleTemplate(){return this.title instanceof Bc}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=Ge({type:e,selectors:[["ngb-popover-window"]],hostAttrs:["role","tooltip"],hostVars:5,hostBindings:function(e,t){2&e&&(Ga("id",t.id),Sa("popover"+(t.popoverClass?" "+t.popoverClass:"")),Ta("fade",t.animation))},inputs:{animation:"animation",title:"title",id:"id",popoverClass:"popoverClass",context:"context"},ngContentSelectors:mf,decls:4,vars:1,consts:[[1,"arrow"],["class","popover-header",4,"ngIf"],[1,"popover-body"],[1,"popover-header"],["simpleTitle",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(e,t){1&e&&(fa(),ia(0,"div",0),$s(1,Zf,4,2,"h3",1),na(2,"div",2),ga(3),ra()),2&e&&(yo(1),ea("ngIf",t.title))},directives:[sh,ph],styles:["ngb-popover-window.bs-popover-bottom>.arrow,ngb-popover-window.bs-popover-top>.arrow{left:50%;margin-left:-.5rem}ngb-popover-window.bs-popover-bottom-left>.arrow,ngb-popover-window.bs-popover-top-left>.arrow{left:2em}ngb-popover-window.bs-popover-bottom-right>.arrow,ngb-popover-window.bs-popover-top-right>.arrow{left:auto;right:2em}ngb-popover-window.bs-popover-left>.arrow,ngb-popover-window.bs-popover-right>.arrow{top:50%;margin-top:-.5rem}ngb-popover-window.bs-popover-left-top>.arrow,ngb-popover-window.bs-popover-right-top>.arrow{top:.7em}ngb-popover-window.bs-popover-left-bottom>.arrow,ngb-popover-window.bs-popover-right-bottom>.arrow{top:auto;bottom:.7em}"],encapsulation:2,changeDetection:0}),e})(),Sm=(()=>{class e{constructor(e,t,n,r,i,o,s,a,l,c){this._elementRef=e,this._renderer=t,this._ngZone=s,this._document=a,this._changeDetector=l,this.shown=new oA,this.hidden=new oA,this._ngbPopoverWindowId="ngb-popover-"+Fm++,this._windowRef=null,this.animation=o.animation,this.autoClose=o.autoClose,this.placement=o.placement,this.triggers=o.triggers,this.container=o.container,this.disablePopover=o.disablePopover,this.popoverClass=o.popoverClass,this.openDelay=o.openDelay,this.closeDelay=o.closeDelay,this._popupService=new Vg(Tm,n,i,t,this._ngZone,r,c),this._zoneSubscription=s.onStable.subscribe(()=>{this._windowRef&&kg(this._elementRef.nativeElement,this._windowRef.location.nativeElement,this.placement,"body"===this.container,"bs-popover")})}_isDisabled(){return!!this.disablePopover||!this.ngbPopover&&!this.popoverTitle}open(e){if(!this._windowRef&&!this._isDisabled()){const{windowRef:t,transition$:n}=this._popupService.open(this.ngbPopover,e,this.animation);this._windowRef=t,this._windowRef.instance.animation=this.animation,this._windowRef.instance.title=this.popoverTitle,this._windowRef.instance.context=e,this._windowRef.instance.popoverClass=this.popoverClass,this._windowRef.instance.id=this._ngbPopoverWindowId,this._renderer.setAttribute(this._elementRef.nativeElement,"aria-describedby",this._ngbPopoverWindowId),"body"===this.container&&this._document.querySelector(this.container).appendChild(this._windowRef.location.nativeElement),this._windowRef.changeDetectorRef.detectChanges(),this._windowRef.changeDetectorRef.markForCheck(),Fg(this._ngZone,this._document,this.autoClose,()=>this.close(),this.hidden,[this._windowRef.location.nativeElement]),n.subscribe(()=>this.shown.emit())}}close(){this._windowRef&&(this._renderer.removeAttribute(this._elementRef.nativeElement,"aria-describedby"),this._popupService.close(this.animation).subscribe(()=>{this._windowRef=null,this.hidden.emit(),this._changeDetector.markForCheck()}))}toggle(){this._windowRef?this.close():this.open()}isOpen(){return null!=this._windowRef}ngOnInit(){this._unregisterListenersFn=function(e,t,n,r,i,o,s=0,a=0){const l=function(e,t=Bm){const n=(e||"").trim();if(0===n.length)return[];const r=n.split(/\s+/).map(e=>e.split(":")).map(e=>{let n=t[e[0]]||e;return new Cm(n[0],n[1])}),i=r.filter(e=>e.isManual());if(i.length>1)throw"Triggers parse error: only one manual trigger is allowed";if(1===i.length&&r.length>1)throw"Triggers parse error: manual trigger can't be mixed with other triggers";return r}(n);if(1===l.length&&l[0].isManual())return()=>{};const c=function(e,t,n,r){return new w(i=>{const o=[],s=()=>i.next(!0),a=()=>i.next(!1),l=()=>i.next(!r());return n.forEach(n=>{n.open===n.close?o.push(e.listen(t,n.open,l)):o.push(e.listen(t,n.open,s),e.listen(t,n.close,a))}),()=>{o.forEach(e=>e())}})}(e,t,l,r).pipe(function(e,t,n){return r=>{let i=null;const o=r.pipe(T(e=>({open:e})),Np(e=>{const t=n();return t===e.open||i&&i.open!==t?(i&&i.open!==e.open&&(i=null),!1):(i=e,!0)}),Z());return j(o.pipe(Np(e=>e.open),_m(e)),o.pipe(Np(e=>!e.open),_m(t))).pipe(Np(e=>e===i&&(i=null,e.open!==n())),T(e=>e.open))}}(s,a,r)).subscribe(e=>e?i():o());return()=>c.unsubscribe()}(this._renderer,this._elementRef.nativeElement,this.triggers,this.isOpen.bind(this),this.open.bind(this),this.close.bind(this),+this.openDelay,+this.closeDelay)}ngOnChanges({ngbPopover:e,popoverTitle:t,disablePopover:n,popoverClass:r}){r&&this.isOpen()&&(this._windowRef.instance.popoverClass=r.currentValue),(e||t||n)&&this._isDisabled()&&this.close()}ngOnDestroy(){this.close(),this._unregisterListenersFn&&this._unregisterListenersFn(),this._zoneSubscription.unsubscribe()}}return e.\u0275fac=function(t){return new(t||e)(Zs(ql),Zs(Xl),Zs(ks),Zs(Kl),Zs(Qc),Zs(Em),Zs(XA),Zs(Tu),Zs(yc),Zs(fu))},e.\u0275dir=Je({type:e,selectors:[["","ngbPopover",""]],inputs:{animation:"animation",autoClose:"autoClose",placement:"placement",triggers:"triggers",container:"container",disablePopover:"disablePopover",popoverClass:"popoverClass",openDelay:"openDelay",closeDelay:"closeDelay",ngbPopover:"ngbPopover",popoverTitle:"popoverTitle"},outputs:{shown:"shown",hidden:"hidden"},exportAs:["ngbPopover"],features:[At]}),e})(),xm=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=We({type:e}),e.\u0275inj=pe({imports:[[wh]]}),e})(),Qm=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=We({type:e}),e.\u0275inj=pe({imports:[[wh]]}),e})(),km=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=We({type:e}),e.\u0275inj=pe({imports:[[wh]]}),e})(),Um=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=We({type:e}),e.\u0275inj=pe({imports:[[wh]]}),e})(),Om=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=We({type:e}),e.\u0275inj=pe({imports:[[wh]]}),e})(),Im=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=We({type:e}),e.\u0275inj=pe({}),e})();new Zn("live announcer delay",{providedIn:"root",factory:function(){return 100}});let Lm=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=We({type:e}),e.\u0275inj=pe({imports:[[wh]]}),e})();const Dm=[Ag,pg,mg,yg,bg,Ug,Pg,Zg,um,bm,xm,Qm,km,Um,Om,Im,Lm];let Mm=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=We({type:e}),e.\u0275inj=pe({imports:[Dm,Ag,pg,mg,yg,bg,Ug,Pg,Zg,um,bm,xm,Qm,km,Um,Om,Im,Lm]}),e})();function Hm(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s}function Rm(e,t){if(1&e&&(na(0,"span"),Ra(1),ra()),2&e){const e=da();yo(1),Pa(e._placeholder)}}function Pm(e,t){if(1&e){const e=aa();na(0,"span",15),na(1,"span",16),na(2,"span"),Ra(3),ra(),na(4,"a",17),Aa("click",function(t){const n=It(e).$implicit;return da().onItemClick(t,n)}),Ra(5,"x"),ra(),ra(),ra()}if(2&e){const e=t.$implicit,n=t.index,r=da();yo(1),ea("hidden",n>r._settings.itemsShowLimit-1),yo(2),Na("",e.text,"\xa0")}}function Nm(e,t){if(1&e&&(na(0,"span",18),Ra(1),ra()),2&e){const e=da();yo(1),Na("+",e.itemShowRemaining(),"")}}function Km(e,t){if(1&e){const e=aa();na(0,"li",19),Aa("click",function(){return It(e),da().toggleSelectAll()}),ia(1,"input",20),na(2,"div"),Ra(3),ra(),ra()}if(2&e){const e=da();yo(1),ea("checked",e.isAllItemsSelected())("disabled",e.disabled||e.isLimitSelectionReached()),yo(2),Pa(e.isAllItemsSelected()?e._settings.unSelectAllText:e._settings.selectAllText)}}function Vm(e,t){if(1&e){const e=aa();na(0,"li",21),na(1,"input",22),Aa("ngModelChange",function(t){return It(e),da().filter.text=t})("ngModelChange",function(t){return It(e),da().onFilterTextChange(t)}),ra(),ra()}if(2&e){const e=da();yo(1),ea("readOnly",e.disabled)("placeholder",e._settings.searchPlaceholderText)("ngModel",e.filter.text)}}function Gm(e,t){if(1&e){const e=aa();na(0,"li",23),Aa("click",function(t){const n=It(e).$implicit;return da().onItemClick(t,n)}),ia(1,"input",24),na(2,"div"),Ra(3),ra(),ra()}if(2&e){const e=t.$implicit,n=da();yo(1),ea("checked",n.isSelected(e))("disabled",n.disabled||n.isLimitSelectionReached()&&!n.isSelected(e)||e.isDisabled),zs("aria-label",e.text),yo(2),Pa(e.text)}}function jm(e,t){if(1&e&&(na(0,"li",25),na(1,"h5"),Ra(2),ra(),ra()),2&e){const e=da();yo(2),Pa(e._settings.noFilteredDataAvailablePlaceholderText)}}function qm(e,t){if(1&e&&(na(0,"li",26),na(1,"h5"),Ra(2),ra(),ra()),2&e){const e=da();yo(2),Pa(e._settings.noDataAvailablePlaceholderText)}}const zm=function(e){return{"dropdown-multiselect--active":e}};class Wm{constructor(e){"string"!=typeof e&&"number"!=typeof e||(this.id=this.text=e,this.isDisabled=!1),"object"==typeof e&&(this.id=e.id,this.text=e.text,this.isDisabled=e.isDisabled)}}let Xm=(()=>{let e=class{transform(e,t){return e&&t?e.filter(e=>this.applyFilter(e,t)):e}applyFilter(e,t){return"string"==typeof e.text&&"string"==typeof t.text?!(t.text&&e.text&&-1===e.text.toLowerCase().indexOf(t.text.toLowerCase())):!(t.text&&e.text&&-1===e.text.toString().toLowerCase().indexOf(t.text.toString().toLowerCase()))}};return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=$e({name:"multiSelectFilter",type:e,pure:!1}),e})();const Jm={provide:sd,useExisting:oe(()=>Ym),multi:!0},$m=()=>{};let Ym=(()=>{let e=class{constructor(e,t){this.listFilterPipe=e,this.cdr=t,this._data=[],this.selectedItems=[],this.isDropdownOpen=!0,this._placeholder="Select",this._sourceDataType=null,this._sourceDataFields=[],this.filter=new Wm(this.data),this.defaultSettings={singleSelection:!1,idField:"id",textField:"text",disabledField:"isDisabled",enableCheckAll:!0,selectAllText:"Select All",unSelectAllText:"UnSelect All",allowSearchFilter:!1,limitSelection:-1,clearSearchFilter:!0,maxHeight:197,itemsShowLimit:999999999999,searchPlaceholderText:"Search",noDataAvailablePlaceholderText:"No data available",noFilteredDataAvailablePlaceholderText:"No filtered data available",closeDropDownOnSelection:!1,showSelectedItemsAtTop:!1,defaultOpen:!1,allowRemoteDataSearch:!1},this.disabled=!1,this.onFilterChange=new oA,this.onDropDownClose=new oA,this.onSelect=new oA,this.onDeSelect=new oA,this.onSelectAll=new oA,this.onDeSelectAll=new oA,this.onTouchedCallback=$m,this.onChangeCallback=$m}set placeholder(e){this._placeholder=e||"Select"}set settings(e){this._settings=e?Object.assign(this.defaultSettings,e):Object.assign(this.defaultSettings)}set data(e){if(e){const t=e[0];this._sourceDataType=typeof t,this._sourceDataFields=this.getFields(t),this._data=e.map(e=>new Wm("string"==typeof e||"number"==typeof e?e:{id:e[this._settings.idField],text:e[this._settings.textField],isDisabled:e[this._settings.disabledField]}))}else this._data=[]}onFilterTextChange(e){this.onFilterChange.emit(e)}onItemClick(e,t){if(this.disabled||t.isDisabled)return!1;const n=this.isSelected(t),r=-1===this._settings.limitSelection||this._settings.limitSelection>0&&this.selectedItems.length<this._settings.limitSelection;n?this.removeSelected(t):r&&this.addSelected(t),this._settings.singleSelection&&this._settings.closeDropDownOnSelection&&this.closeDropdown()}writeValue(e){if(null!=e&&e.length>0)if(this._settings.singleSelection)try{if(e.length>=1){const t=e[0];this.selectedItems=[new Wm("string"==typeof t||"number"==typeof t?t:{id:t[this._settings.idField],text:t[this._settings.textField],isDisabled:t[this._settings.disabledField]})]}}catch(t){}else{const t=e.map(e=>new Wm("string"==typeof e||"number"==typeof e?e:{id:e[this._settings.idField],text:e[this._settings.textField],isDisabled:e[this._settings.disabledField]}));this.selectedItems=this._settings.limitSelection>0?t.splice(0,this._settings.limitSelection):t}else this.selectedItems=[];this.onChangeCallback(e),this.cdr.markForCheck()}registerOnChange(e){this.onChangeCallback=e}registerOnTouched(e){this.onTouchedCallback=e}onTouched(){this.onTouchedCallback()}trackByFn(e,t){return t.id}isSelected(e){let t=!1;return this.selectedItems.forEach(n=>{e.id===n.id&&(t=!0)}),t}isLimitSelectionReached(){return this._settings.limitSelection===this.selectedItems.length}isAllItemsSelected(){let e=this.listFilterPipe.transform(this._data,this.filter);const t=e.filter(e=>e.isDisabled).length;return!((!this.data||0===this.data.length)&&this._settings.allowRemoteDataSearch)&&e.length===this.selectedItems.length+t}showButton(){return!(this._settings.singleSelection||this._settings.limitSelection>0)}itemShowRemaining(){return this.selectedItems.length-this._settings.itemsShowLimit}addSelected(e){this._settings.singleSelection?(this.selectedItems=[],this.selectedItems.push(e)):this.selectedItems.push(e),this.onChangeCallback(this.emittedValue(this.selectedItems)),this.onSelect.emit(this.emittedValue(e))}removeSelected(e){this.selectedItems.forEach(t=>{e.id===t.id&&this.selectedItems.splice(this.selectedItems.indexOf(t),1)}),this.onChangeCallback(this.emittedValue(this.selectedItems)),this.onDeSelect.emit(this.emittedValue(e))}emittedValue(e){const t=[];if(Array.isArray(e))e.map(e=>{t.push(this.objectify(e))});else if(e)return this.objectify(e);return t}objectify(e){if("object"===this._sourceDataType){const t={};return t[this._settings.idField]=e.id,t[this._settings.textField]=e.text,this._sourceDataFields.includes(this._settings.disabledField)&&(t[this._settings.disabledField]=e.isDisabled),t}return"number"===this._sourceDataType?Number(e.id):e.text}toggleDropdown(e){e.preventDefault(),this.disabled&&this._settings.singleSelection||(this._settings.defaultOpen=!this._settings.defaultOpen,this._settings.defaultOpen||this.onDropDownClose.emit())}closeDropdown(){this._settings.defaultOpen=!1,this._settings.clearSearchFilter&&(this.filter.text=""),this.onDropDownClose.emit()}toggleSelectAll(){if(this.disabled)return!1;this.isAllItemsSelected()?(this.selectedItems=[],this.onDeSelectAll.emit(this.emittedValue(this.selectedItems))):(this.selectedItems=this.listFilterPipe.transform(this._data,this.filter).filter(e=>!e.isDisabled).slice(),this.onSelectAll.emit(this.emittedValue(this.selectedItems))),this.onChangeCallback(this.emittedValue(this.selectedItems))}getFields(e){const t=[];if("object"!=typeof e)return t;for(const n in e)t.push(n);return t}};return e.\u0275fac=function(t){return new(t||e)(Zs(Xm),Zs(yc))},e.\u0275cmp=Ge({type:e,selectors:[["ng-multiselect-dropdown"]],hostBindings:function(e,t){1&e&&Aa("blur",function(){return t.onTouched()})},inputs:{disabled:"disabled",placeholder:"placeholder",settings:"settings",data:"data"},outputs:{onFilterChange:"onFilterChange",onDropDownClose:"onDropDownClose",onSelect:"onSelect",onDeSelect:"onDeSelect",onSelectAll:"onSelectAll",onDeSelectAll:"onDeSelectAll"},features:[Rl([Jm])],decls:18,vars:23,consts:[["tabindex","0",1,"multiselect-dropdown",3,"blur","clickOutside"],["tabindex","-1",1,"dropdown-btn",3,"click"],[4,"ngIf"],["class","selected-item-container",4,"ngFor","ngForOf","ngForTrackBy"],[2,"float","right !important","padding-right","4px",3,"ngClass"],["style","padding-right: 15px;",4,"ngIf"],[1,"dropdown-multiselect__caret"],[1,"dropdown-list",3,"hidden"],[1,"item1"],["class","multiselect-item-checkbox","style","border-bottom: 1px solid #ccc;padding:10px",3,"click",4,"ngIf"],["class","filter-textbox",4,"ngIf"],[1,"item2"],["class","multiselect-item-checkbox",3,"click",4,"ngFor","ngForOf"],["class","no-filtered-data",4,"ngIf"],["class","no-data",4,"ngIf"],[1,"selected-item-container"],[1,"selected-item",3,"hidden"],[2,"padding-left","2px","color","white",3,"click"],[2,"padding-right","15px"],[1,"multiselect-item-checkbox",2,"border-bottom","1px solid #ccc","padding","10px",3,"click"],["type","checkbox","aria-label","multiselect-select-all",3,"checked","disabled"],[1,"filter-textbox"],["type","text","aria-label","multiselect-search",3,"readOnly","placeholder","ngModel","ngModelChange"],[1,"multiselect-item-checkbox",3,"click"],["type","checkbox",3,"checked","disabled"],[1,"no-filtered-data"],[1,"no-data"]],template:function(e,t){1&e&&(na(0,"div",0),Aa("blur",function(){return t.onTouched()})("clickOutside",function(){return t.closeDropdown()}),na(1,"div"),na(2,"span",1),Aa("click",function(e){return t.toggleDropdown(e)}),$s(3,Rm,2,1,"span",2),$s(4,Pm,6,2,"span",3),na(5,"span",4),$s(6,Nm,2,1,"span",5),ia(7,"span",6),ra(),ra(),ra(),na(8,"div",7),na(9,"ul",8),$s(10,Km,4,3,"li",9),$s(11,Vm,2,3,"li",10),ra(),na(12,"ul",11),$s(13,Gm,4,4,"li",12),Zc(14,"multiSelectFilter"),$s(15,jm,3,1,"li",13),Zc(16,"multiSelectFilter"),$s(17,qm,3,1,"li",14),ra(),ra(),ra()),2&e&&(yo(1),Ta("disabled",t.disabled),yo(2),ea("ngIf",0==t.selectedItems.length),yo(1),ea("ngForOf",t.selectedItems)("ngForTrackBy",t.trackByFn),yo(1),ea("ngClass",jc(21,zm,t._settings.defaultOpen)),yo(1),ea("ngIf",t.itemShowRemaining()>0),yo(2),ea("hidden",!t._settings.defaultOpen),yo(2),ea("ngIf",(t._data.length>0||t._settings.allowRemoteDataSearch)&&!t._settings.singleSelection&&t._settings.enableCheckAll&&-1===t._settings.limitSelection),yo(1),ea("ngIf",(t._data.length>0||t._settings.allowRemoteDataSearch)&&t._settings.allowSearchFilter),yo(1),Fa("max-height",t._settings.maxHeight+"px"),yo(1),ea("ngForOf",eA(14,15,t._data,t.filter)),yo(2),ea("ngIf",0!=t._data.length&&0==eA(16,18,t._data,t.filter).length&&!t._settings.allowRemoteDataSearch),yo(2),ea("ngIf",0==t._data.length&&!t._settings.allowRemoteDataSearch))},directives:function(){return[Zm,sh,ih,nh,ud,Fd,$d]},pipes:function(){return[Xm]},styles:['.multiselect-dropdown[_ngcontent-%COMP%]{position:relative;width:100%;font-size:inherit;font-family:inherit}.multiselect-dropdown[_ngcontent-%COMP%]   .dropdown-btn[_ngcontent-%COMP%]{display:inline-block;border:1px solid #adadad;width:100%;padding:6px 12px;margin-bottom:0;font-weight:400;line-height:1.52857143;text-align:left;vertical-align:middle;cursor:pointer;background-image:none;border-radius:4px}.multiselect-dropdown[_ngcontent-%COMP%]   .dropdown-btn[_ngcontent-%COMP%]   .selected-item-container[_ngcontent-%COMP%]{display:flex;float:left}.multiselect-dropdown[_ngcontent-%COMP%]   .dropdown-btn[_ngcontent-%COMP%]   .selected-item-container[_ngcontent-%COMP%]   .selected-item[_ngcontent-%COMP%]{border:1px solid #337ab7;margin-right:4px;background:#337ab7;padding:0 5px;color:#fff;border-radius:2px;float:left;max-width:100px}.multiselect-dropdown[_ngcontent-%COMP%]   .dropdown-btn[_ngcontent-%COMP%]   .selected-item-container[_ngcontent-%COMP%]   .selected-item[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis}.multiselect-dropdown[_ngcontent-%COMP%]   .dropdown-btn[_ngcontent-%COMP%]   .selected-item-container[_ngcontent-%COMP%]   .selected-item[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{text-decoration:none}.multiselect-dropdown[_ngcontent-%COMP%]   .dropdown-btn[_ngcontent-%COMP%]   .selected-item[_ngcontent-%COMP%]:hover{box-shadow:1px 1px #959595}.multiselect-dropdown[_ngcontent-%COMP%]   .dropdown-btn[_ngcontent-%COMP%]   .dropdown-multiselect__caret[_ngcontent-%COMP%]{line-height:16px;display:block;position:absolute;box-sizing:border-box;width:40px;height:38px;right:1px;top:0;padding:4px 8px;margin:0;text-decoration:none;text-align:center;cursor:pointer;transition:transform .2s}.multiselect-dropdown[_ngcontent-%COMP%]   .dropdown-btn[_ngcontent-%COMP%]   .dropdown-multiselect__caret[_ngcontent-%COMP%]:before{position:relative;right:0;top:65%;color:#999;margin-top:4px;border-style:solid;border-width:8px 8px 0;border-color:#999 transparent;content:""}.multiselect-dropdown[_ngcontent-%COMP%]   .dropdown-btn[_ngcontent-%COMP%]   .dropdown-multiselect--active[_ngcontent-%COMP%]   .dropdown-multiselect__caret[_ngcontent-%COMP%]{transform:rotateZ(180deg)}.multiselect-dropdown[_ngcontent-%COMP%]   .disabled[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{background-color:#eceeef}.dropdown-list[_ngcontent-%COMP%]{position:absolute;padding-top:6px;width:100%;z-index:9999;border:1px solid #ccc;border-radius:3px;background:#fff;margin-top:10px;box-shadow:0 1px 5px #959595}.dropdown-list[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]{padding:0;list-style:none;overflow:auto;margin:0}.dropdown-list[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{padding:6px 10px;cursor:pointer;text-align:left}.dropdown-list[_ngcontent-%COMP%]   .filter-textbox[_ngcontent-%COMP%]{border-bottom:1px solid #ccc;position:relative;padding:10px}.dropdown-list[_ngcontent-%COMP%]   .filter-textbox[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{border:0;width:100%;padding:0 0 0 26px}.dropdown-list[_ngcontent-%COMP%]   .filter-textbox[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]:focus{outline:0}.multiselect-item-checkbox[_ngcontent-%COMP%]:hover{background-color:#e4e3e3}.multiselect-item-checkbox[_ngcontent-%COMP%]   input[type=checkbox][_ngcontent-%COMP%]{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.multiselect-item-checkbox[_ngcontent-%COMP%]   input[type=checkbox][_ngcontent-%COMP%]:focus + div[_ngcontent-%COMP%]:before, .multiselect-item-checkbox[_ngcontent-%COMP%]   input[type=checkbox][_ngcontent-%COMP%]:hover + div[_ngcontent-%COMP%]:before{border-color:#337ab7;background-color:#f2f2f2}.multiselect-item-checkbox[_ngcontent-%COMP%]   input[type=checkbox][_ngcontent-%COMP%]:active + div[_ngcontent-%COMP%]:before{transition-duration:0s}.multiselect-item-checkbox[_ngcontent-%COMP%]   input[type=checkbox][_ngcontent-%COMP%] + div[_ngcontent-%COMP%]{position:relative;padding-left:2em;vertical-align:middle;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;margin:0;color:#000}.multiselect-item-checkbox[_ngcontent-%COMP%]   input[type=checkbox][_ngcontent-%COMP%] + div[_ngcontent-%COMP%]:before{box-sizing:content-box;content:"";color:#337ab7;position:absolute;top:50%;left:0;width:14px;height:14px;margin-top:-9px;border:2px solid #337ab7;text-align:center;transition:.4s}.multiselect-item-checkbox[_ngcontent-%COMP%]   input[type=checkbox][_ngcontent-%COMP%] + div[_ngcontent-%COMP%]:after{box-sizing:content-box;content:"";position:absolute;transform:scale(0);transform-origin:50%;transition:transform .2s ease-out;background-color:transparent;top:50%;left:4px;width:8px;height:3px;margin-top:-4px;border-style:solid;border-color:#fff;border-width:0 0 3px 3px;-o-border-image:none;border-image:none;transform:rotate(-45deg) scale(0)}.multiselect-item-checkbox[_ngcontent-%COMP%]   input[type=checkbox][_ngcontent-%COMP%]:disabled + div[_ngcontent-%COMP%]:before{border-color:#ccc}.multiselect-item-checkbox[_ngcontent-%COMP%]   input[type=checkbox][_ngcontent-%COMP%]:disabled:focus + div[_ngcontent-%COMP%]:before   .multiselect-item-checkbox[_ngcontent-%COMP%]   input[type=checkbox][_ngcontent-%COMP%]:disabled:hover + div[_ngcontent-%COMP%]:before{background-color:inherit}.multiselect-item-checkbox[_ngcontent-%COMP%]   input[type=checkbox][_ngcontent-%COMP%]:disabled:checked + div[_ngcontent-%COMP%]:before{background-color:#ccc}.multiselect-item-checkbox[_ngcontent-%COMP%]   input[type=checkbox][_ngcontent-%COMP%]:checked + div[_ngcontent-%COMP%]:after{content:"";transition:transform .2s ease-out;transform:rotate(-45deg) scale(1)}.multiselect-item-checkbox[_ngcontent-%COMP%]   input[type=checkbox][_ngcontent-%COMP%]:checked + div[_ngcontent-%COMP%]:before{-webkit-animation:.2s ease-in borderscale;animation:.2s ease-in borderscale;background:#337ab7}@-webkit-keyframes borderscale{50%{box-shadow:0 0 0 2px #337ab7}}@keyframes borderscale{50%{box-shadow:0 0 0 2px #337ab7}}'],changeDetection:0}),Hm([EA()],e.prototype,"placeholder",null),Hm([EA()],e.prototype,"disabled",void 0),Hm([EA()],e.prototype,"settings",null),Hm([EA()],e.prototype,"data",null),Hm([FA("onFilterChange")],e.prototype,"onFilterChange",void 0),Hm([FA("onDropDownClose")],e.prototype,"onDropDownClose",void 0),Hm([FA("onSelect")],e.prototype,"onSelect",void 0),Hm([FA("onDeSelect")],e.prototype,"onDeSelect",void 0),Hm([FA("onSelectAll")],e.prototype,"onSelectAll",void 0),Hm([FA("onDeSelectAll")],e.prototype,"onDeSelectAll",void 0),Hm([TA("blur")],e.prototype,"onTouched",null),e})(),Zm=(()=>{let e=class{constructor(e){this._elementRef=e,this.clickOutside=new oA}onClick(e,t){t&&(this._elementRef.nativeElement.contains(t)||this.clickOutside.emit(e))}};return e.\u0275fac=function(t){return new(t||e)(Zs(ql))},e.\u0275dir=Je({type:e,selectors:[["","clickOutside",""]],hostBindings:function(e,t){1&e&&Aa("click",function(e){return t.onClick(e,e.target)},!1,Ci)},outputs:{clickOutside:"clickOutside"}}),Hm([FA()],e.prototype,"clickOutside",void 0),Hm([TA("document:click",["$event","$event.target"])],e.prototype,"onClick",null),e})();var ey;let ty=ey=class{static forRoot(){return{ngModule:ey}}};ty.\u0275fac=function(e){return new(e||ty)},ty.\u0275mod=We({type:ty}),ty.\u0275inj=pe({providers:[Xm],imports:[[wh,sp]]});const ny=new class extends fp{}(class extends dp{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)}});class ry extends f{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(ry.dispatch,this.delay,new iy(e,this.destination)))}_next(e){this.scheduleMessage(cf.createNext(e))}_error(e){this.scheduleMessage(cf.createError(e)),this.unsubscribe()}_complete(){this.scheduleMessage(cf.createComplete()),this.unsubscribe()}}class iy{constructor(e,t){this.notification=e,this.destination=t}}class oy extends _{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 sy(this._getNow(),e)),this._trimBufferThenGetEvents()),super.next(e)}_subscribe(e){const t=this._infiniteTimeWindow,n=t?this._events:this._trimBufferThenGetEvents(),r=this.scheduler,i=n.length;let o;if(this.closed)throw new b;if(this.isStopped||this.hasError?o=h.EMPTY:(this.observers.push(e),o=new C(this,e)),r&&e.add(e=new ry(e,r)),t)for(let s=0;s<i&&!e.closed;s++)e.next(n[s]);else for(let s=0;s<i&&!e.closed;s++)e.next(n[s].value);return this.hasError?e.error(this.thrownError):this.isStopped&&e.complete(),o}_getNow(){return(this.scheduler||ny).now()}_trimBufferThenGetEvents(){const e=this._getNow(),t=this._bufferSize,n=this._windowTime,r=this._events,i=r.length;let o=0;for(;o<i&&!(e-r[o].time<n);)o++;return i>t&&(o=Math.max(o,i-t)),o>0&&r.splice(0,o),r}}class sy{constructor(e,t){this.time=e,this.value=t}}class ay{constructor(e,t){this.dueTime=e,this.scheduler=t}call(e,t){return t.subscribe(new ly(e,this.dueTime,this.scheduler))}}class ly extends f{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(cy,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 cy(e){e.debouncedNext()}const Ay=["*"];var uy=(()=>(function(e){e.AnnotationChart="AnnotationChart",e.AreaChart="AreaChart",e.Bar="Bar",e.BarChart="BarChart",e.BubbleChart="BubbleChart",e.Calendar="Calendar",e.CandlestickChart="CandlestickChart",e.ColumnChart="ColumnChart",e.ComboChart="ComboChart",e.PieChart="PieChart",e.Gantt="Gantt",e.Gauge="Gauge",e.GeoChart="GeoChart",e.Histogram="Histogram",e.Line="Line",e.LineChart="LineChart",e.Map="Map",e.OrgChart="OrgChart",e.Sankey="Sankey",e.Scatter="Scatter",e.ScatterChart="ScatterChart",e.SteppedAreaChart="SteppedAreaChart",e.Table="Table",e.Timeline="Timeline",e.TreeMap="TreeMap",e.WordTree="wordtree"}(uy||(uy={})),uy))();const hy={[uy.AnnotationChart]:"annotationchart",[uy.AreaChart]:"corechart",[uy.Bar]:"bar",[uy.BarChart]:"corechart",[uy.BubbleChart]:"corechart",[uy.Calendar]:"calendar",[uy.CandlestickChart]:"corechart",[uy.ColumnChart]:"corechart",[uy.ComboChart]:"corechart",[uy.PieChart]:"corechart",[uy.Gantt]:"gantt",[uy.Gauge]:"gauge",[uy.GeoChart]:"geochart",[uy.Histogram]:"corechart",[uy.Line]:"line",[uy.LineChart]:"corechart",[uy.Map]:"map",[uy.OrgChart]:"orgchart",[uy.Sankey]:"sankey",[uy.Scatter]:"scatter",[uy.ScatterChart]:"corechart",[uy.SteppedAreaChart]:"corechart",[uy.Table]:"table",[uy.Timeline]:"timeline",[uy.TreeMap]:"treemap",[uy.WordTree]:"wordtree"},dy=new Zn("GOOGLE_CHARTS_CONFIG"),py=new Zn("GOOGLE_CHARTS_LAZY_CONFIG",{providedIn:"root",factory:()=>{const e=yr(dy,Ce.Optional);return cp(Object.assign(Object.assign({},{version:"current",safeMode:!1}),e||{}))}});let fy=(()=>{class e{constructor(e,t,n){this.zone=e,this.localeId=t,this.config$=n,this.scriptSource="https://www.gstatic.com/charts/loader.js",this.scriptLoadSubject=new _}isGoogleChartsAvailable(){return"undefined"!=typeof google&&void 0!==google.charts}loadChartPackages(...e){return this.loadGoogleCharts().pipe(P(()=>this.config$),T(e=>Object.assign(Object.assign({},{version:"current",safeMode:!1}),e||{})),$p(t=>new w(n=>{google.charts.load(t.version,{packages:e,language:this.localeId,mapsApiKey:t.mapsApiKey,safeMode:t.safeMode}),google.charts.setOnLoadCallback(()=>{this.zone.run(()=>{n.next(),n.complete()})})})))}loadGoogleCharts(){if(this.isGoogleChartsAvailable())return cp(null);if(!this.isLoadingGoogleCharts()){const e=this.createGoogleChartsScript();e.onload=()=>{this.zone.run(()=>{this.scriptLoadSubject.next(),this.scriptLoadSubject.complete()})},e.onerror=()=>{this.zone.run(()=>{console.error("Failed to load the google charts script!"),this.scriptLoadSubject.error(new Error("Failed to load the google charts script!"))})}}return this.scriptLoadSubject.asObservable()}isLoadingGoogleCharts(){return null!=this.getGoogleChartsScript()}getGoogleChartsScript(){return Array.from(document.getElementsByTagName("script")).find(e=>e.src===this.scriptSource)}createGoogleChartsScript(){const e=document.createElement("script");return e.type="text/javascript",e.src=this.scriptSource,e.async=!0,document.getElementsByTagName("head")[0].appendChild(e),e}}return e.\u0275fac=function(t){return new(t||e)(mr(XA),mr(MA),mr(py))},e.\u0275prov=de({token:e,factory:e.\u0275fac}),e})(),gy=(()=>{class e{create(e,t,n){if(null==e)return;let r=!0;null!=t&&(r=!1);const i=google.visualization.arrayToDataTable(this.getDataAsTable(e,t),r);return n&&this.applyFormatters(i,n),i}getDataAsTable(e,t){return t?[t,...e]:e}applyFormatters(e,t){for(const n of t)n.formatter.format(e,n.colIndex)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=de({factory:function(){return new e},token:e,providedIn:"root"}),e})(),my=(()=>{class e{constructor(e){this.loaderService=e,this.error=new oA,this.ready=new oA,this.stateChange=new oA,this.id="_"+Math.random().toString(36).substr(2,9),this.wrapperReadySubject=new oy(1)}get wrapperReady$(){return this.wrapperReadySubject.asObservable()}get controlWrapper(){if(!this._controlWrapper)throw new Error("Cannot access the control wrapper before it being initialized.");return this._controlWrapper}ngOnInit(){this.loaderService.loadChartPackages("controls").subscribe(()=>{this.createControlWrapper()})}ngOnChanges(e){this._controlWrapper&&(e.type&&this._controlWrapper.setControlType(this.type),e.options&&this._controlWrapper.setOptions(this.options||{}),e.state&&this._controlWrapper.setState(this.state||{}))}createControlWrapper(){this._controlWrapper=new google.visualization.ControlWrapper({containerId:this.id,controlType:this.type,state:this.state,options:this.options}),this.addEventListeners(),this.wrapperReadySubject.next(this._controlWrapper)}addEventListeners(){google.visualization.events.removeAllListeners(this._controlWrapper),google.visualization.events.addListener(this._controlWrapper,"ready",e=>this.ready.emit(e)),google.visualization.events.addListener(this._controlWrapper,"error",e=>this.error.emit(e)),google.visualization.events.addListener(this._controlWrapper,"statechange",e=>this.stateChange.emit(e))}}return e.\u0275fac=function(t){return new(t||e)(Zs(fy))},e.\u0275cmp=Ge({type:e,selectors:[["control-wrapper"]],hostAttrs:[1,"control-wrapper"],hostVars:1,hostBindings:function(e,t){2&e&&Ga("id",t.id)},inputs:{for:"for",type:"type",options:"options",state:"state"},outputs:{error:"error",ready:"ready",stateChange:"stateChange"},exportAs:["controlWrapper"],features:[At],decls:0,vars:0,template:function(e,t){},encapsulation:2,changeDetection:0}),e})(),yy=(()=>{class e{constructor(e,t,n){this.element=e,this.loaderService=t,this.dataTableService=n,this.ready=new oA,this.error=new oA,this.initialized=!1}ngOnInit(){this.loaderService.loadChartPackages("controls").subscribe(()=>{this.dataTable=this.dataTableService.create(this.data,this.columns,this.formatters),this.createDashboard(),this.initialized=!0})}ngOnChanges(e){this.initialized&&(e.data||e.columns||e.formatters)&&(this.dataTable=this.dataTableService.create(this.data,this.columns,this.formatters),this.dashboard.draw(this.dataTable))}createDashboard(){const e=this.controlWrappers.map(e=>e.wrapperReady$),t=this.controlWrappers.map(e=>e.for).map(e=>Array.isArray(e)?Tp(e.map(e=>e.wrapperReady$)):e.wrapperReady$);Tp([...e,...t]).subscribe(()=>{this.dashboard=new google.visualization.Dashboard(this.element.nativeElement),this.initializeBindings(),this.registerEvents(),this.dashboard.draw(this.dataTable)})}registerEvents(){google.visualization.events.removeAllListeners(this.dashboard);const e=(e,t,n)=>{google.visualization.events.addListener(e,t,n)};e(this.dashboard,"ready",()=>this.ready.emit()),e(this.dashboard,"error",e=>this.error.emit(e))}initializeBindings(){this.controlWrappers.forEach(e=>{if(Array.isArray(e.for)){const t=e.for.map(e=>e.chartWrapper);this.dashboard.bind(e.controlWrapper,t)}else this.dashboard.bind(e.controlWrapper,e.for.chartWrapper)})}}return e.\u0275fac=function(t){return new(t||e)(Zs(ql),Zs(fy),Zs(gy))},e.\u0275cmp=Ge({type:e,selectors:[["dashboard"]],contentQueries:function(e,t,n){if(1&e&&wA(n,my,4),2&e){let e;mA(e=vA())&&(t.controlWrappers=e)}},hostAttrs:[1,"dashboard"],inputs:{data:"data",columns:"columns",formatters:"formatters"},outputs:{ready:"ready",error:"error"},exportAs:["dashboard"],features:[At],ngContentSelectors:Ay,decls:1,vars:0,template:function(e,t){1&e&&(fa(),ga(0))},encapsulation:2,changeDetection:0}),e})(),wy=(()=>{class e{constructor(e,t,n,r){this.element=e,this.scriptLoaderService=t,this.dataTableService=n,this.dashboard=r,this.options={},this.dynamicResize=!1,this.ready=new oA,this.error=new oA,this.select=new oA,this.mouseover=new oA,this.mouseleave=new oA,this.wrapperReadySubject=new oy(1),this.initialized=!1,this.eventListeners=new Map}get chart(){return this.chartWrapper.getChart()}get wrapperReady$(){return this.wrapperReadySubject.asObservable()}get chartWrapper(){if(!this.wrapper)throw new Error("Trying to access the chart wrapper before it was fully initialized");return this.wrapper}set chartWrapper(e){this.wrapper=e,this.drawChart()}ngOnInit(){var e;this.scriptLoaderService.loadChartPackages((e=this.type,hy[e])).subscribe(()=>{this.dataTable=this.dataTableService.create(this.data,this.columns,this.formatters),this.wrapper=new google.visualization.ChartWrapper({container:this.element.nativeElement,chartType:this.type,dataTable:this.dataTable,options:this.mergeOptions()}),this.registerChartEvents(),this.wrapperReadySubject.next(this.wrapper),this.initialized=!0,this.drawChart()})}ngOnChanges(e){if(e.dynamicResize&&this.updateResizeListener(),this.initialized){let t=!1;(e.data||e.columns||e.formatters)&&(this.dataTable=this.dataTableService.create(this.data,this.columns,this.formatters),this.wrapper.setDataTable(this.dataTable),t=!0),e.type&&(this.wrapper.setChartType(this.type),t=!0),(e.options||e.width||e.height||e.title)&&(this.wrapper.setOptions(this.mergeOptions()),t=!0),t&&this.drawChart()}}ngOnDestroy(){this.unsubscribeToResizeIfSubscribed()}addEventListener(e,t){const n=this.registerChartEvent(this.chart,e,t);return this.eventListeners.set(n,{eventName:e,callback:t,handle:n}),n}removeEventListener(e){const t=this.eventListeners.get(e);t&&(google.visualization.events.removeListener(t.handle),this.eventListeners.delete(e))}updateResizeListener(){this.unsubscribeToResizeIfSubscribed(),this.dynamicResize&&(this.resizeSubscription=Ap(window,"resize",{passive:!0}).pipe(function(e,t=gp){return n=>n.lift(new ay(e,t))}(100)).subscribe(()=>{this.initialized&&this.drawChart()}))}unsubscribeToResizeIfSubscribed(){null!=this.resizeSubscription&&(this.resizeSubscription.unsubscribe(),this.resizeSubscription=void 0)}mergeOptions(){return Object.assign({title:this.title,width:this.width,height:this.height},this.options)}registerChartEvents(){google.visualization.events.removeAllListeners(this.wrapper),this.registerChartEvent(this.wrapper,"ready",()=>{google.visualization.events.removeAllListeners(this.chart),this.registerChartEvent(this.chart,"onmouseover",e=>this.mouseover.emit(e)),this.registerChartEvent(this.chart,"onmouseout",e=>this.mouseleave.emit(e)),this.registerChartEvent(this.chart,"select",()=>{const e=this.chart.getSelection();this.select.emit({selection:e})}),this.eventListeners.forEach(e=>e.handle=this.registerChartEvent(this.chart,e.eventName,e.callback)),this.ready.emit({chart:this.chart})}),this.registerChartEvent(this.wrapper,"error",e=>this.error.emit(e))}registerChartEvent(e,t,n){return google.visualization.events.addListener(e,t,n)}drawChart(){null==this.dashboard&&this.wrapper.draw()}}return e.\u0275fac=function(t){return new(t||e)(Zs(ql),Zs(fy),Zs(gy),Zs(yy,8))},e.\u0275cmp=Ge({type:e,selectors:[["google-chart"]],hostAttrs:[1,"google-chart"],inputs:{options:"options",dynamicResize:"dynamicResize",type:"type",data:"data",columns:"columns",title:"title",width:"width",height:"height",formatters:"formatters"},outputs:{ready:"ready",error:"error",select:"select",mouseover:"mouseover",mouseleave:"mouseleave"},exportAs:["googleChart"],features:[At],decls:0,vars:0,template:function(e,t){},styles:["[_nghost-%COMP%] { width: fit-content; display: block; }"],changeDetection:0}),e})(),vy=(()=>{class e{static forRoot(t={}){return{ngModule:e,providers:[{provide:dy,useValue:t}]}}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=We({type:e}),e.\u0275inj=pe({providers:[fy]}),e})();function by(e,t){return P(e,t,1)}class Cy{}class By{}class _y{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),r=n.toLowerCase(),i=e.slice(t+1).trim();this.maybeSetNormalizedName(n,r),this.headers.has(r)?this.headers.get(r).push(i):this.headers.set(r,[i])}})}:()=>{this.headers=new Map,Object.keys(e).forEach(t=>{let n=e[t];const r=t.toLowerCase();"string"==typeof n&&(n=[n]),n.length>0&&(this.headers.set(r,n),this.maybeSetNormalizedName(t,r))})}: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 _y?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 _y;return t.lazyInit=this.lazyInit&&this.lazyInit instanceof _y?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 r=("a"===e.op?this.headers.get(t):void 0)||[];r.push(...n),this.headers.set(t,r);break;case"d":const i=e.value;if(i){let e=this.headers.get(t);if(!e)return;e=e.filter(e=>-1===i.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 Ey{encodeKey(e){return Fy(e)}encodeValue(e){return Fy(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}}function Fy(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,"/")}function Ty(e){return`${e}`}class Sy{constructor(e={}){if(this.updates=null,this.cloneFrom=null,this.encoder=e.encoder||new Ey,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 r=e.indexOf("="),[i,o]=-1==r?[t.decodeKey(e),""]:[t.decodeKey(e.slice(0,r)),t.decodeValue(e.slice(r+1))],s=n.get(i)||[];s.push(o),n.set(i,s)}),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 r=e[n];Array.isArray(r)?r.forEach(e=>{t.push({param:n,value:e,op:"a"})}):t.push({param:n,value:r,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 Sy({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(Ty(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(Ty(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)}}class xy{constructor(){this.map=new Map}set(e,t){return this.map.set(e,t),this}get(e){return this.map.has(e)||this.map.set(e,e.defaultValue()),this.map.get(e)}delete(e){return this.map.delete(e),this}keys(){return this.map.keys()}}function Qy(e){return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer}function ky(e){return"undefined"!=typeof Blob&&e instanceof Blob}function Uy(e){return"undefined"!=typeof FormData&&e instanceof FormData}class Oy{constructor(e,t,n,r){let i;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)||r?(this.body=void 0!==n?n:null,i=r):i=n,i&&(this.reportProgress=!!i.reportProgress,this.withCredentials=!!i.withCredentials,i.responseType&&(this.responseType=i.responseType),i.headers&&(this.headers=i.headers),i.context&&(this.context=i.context),i.params&&(this.params=i.params)),this.headers||(this.headers=new _y),this.context||(this.context=new xy),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 Sy,this.urlWithParams=t}serializeBody(){return null===this.body?null:Qy(this.body)||ky(this.body)||Uy(this.body)||"undefined"!=typeof URLSearchParams&&this.body instanceof URLSearchParams||"string"==typeof this.body?this.body:this.body instanceof Sy?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||Uy(this.body)?null:ky(this.body)?this.body.type||null:Qy(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof Sy?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}clone(e={}){var t;const n=e.method||this.method,r=e.url||this.url,i=e.responseType||this.responseType,o=void 0!==e.body?e.body:this.body,s=void 0!==e.withCredentials?e.withCredentials:this.withCredentials,a=void 0!==e.reportProgress?e.reportProgress:this.reportProgress;let l=e.headers||this.headers,c=e.params||this.params;const A=null!==(t=e.context)&&void 0!==t?t:this.context;return void 0!==e.setHeaders&&(l=Object.keys(e.setHeaders).reduce((t,n)=>t.set(n,e.setHeaders[n]),l)),e.setParams&&(c=Object.keys(e.setParams).reduce((t,n)=>t.set(n,e.setParams[n]),c)),new Oy(n,r,o,{params:c,headers:l,context:A,reportProgress:a,responseType:i,withCredentials:s})}}var Iy=(()=>((Iy=Iy||{})[Iy.Sent=0]="Sent",Iy[Iy.UploadProgress=1]="UploadProgress",Iy[Iy.ResponseHeader=2]="ResponseHeader",Iy[Iy.DownloadProgress=3]="DownloadProgress",Iy[Iy.Response=4]="Response",Iy[Iy.User=5]="User",Iy))();class Ly{constructor(e,t=200,n="OK"){this.headers=e.headers||new _y,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 Dy extends Ly{constructor(e={}){super(e),this.type=Iy.ResponseHeader}clone(e={}){return new Dy({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 My extends Ly{constructor(e={}){super(e),this.type=Iy.Response,this.body=void 0!==e.body?e.body:null}clone(e={}){return new My({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 Hy extends Ly{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 Ry(e,t){return{body:t,headers:e.headers,context:e.context,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials}}let Py=(()=>{class e{constructor(e){this.handler=e}request(e,t,n={}){let r;if(e instanceof Oy)r=e;else{let i,o;i=n.headers instanceof _y?n.headers:new _y(n.headers),n.params&&(o=n.params instanceof Sy?n.params:new Sy({fromObject:n.params})),r=new Oy(e,t,void 0!==n.body?n.body:null,{headers:i,context:n.context,params:o,reportProgress:n.reportProgress,responseType:n.responseType||"json",withCredentials:n.withCredentials})}const i=cp(r).pipe(by(e=>this.handler.handle(e)));if(e instanceof Oy||"events"===n.observe)return i;const o=i.pipe(Np(e=>e instanceof My));switch(n.observe||"body"){case"body":switch(r.responseType){case"arraybuffer":return o.pipe(T(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(T(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(T(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(T(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 Sy).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,Ry(n,t))}post(e,t,n={}){return this.request("POST",e,Ry(n,t))}put(e,t,n={}){return this.request("PUT",e,Ry(n,t))}}return e.\u0275fac=function(t){return new(t||e)(mr(Cy))},e.\u0275prov=de({token:e,factory:e.\u0275fac}),e})();class Ny{constructor(e,t){this.next=e,this.interceptor=t}handle(e){return this.interceptor.intercept(e,this.next)}}const Ky=new Zn("HTTP_INTERCEPTORS");let Vy=(()=>{class e{intercept(e,t){return t.handle(e)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=de({token:e,factory:e.\u0275fac}),e})();const Gy=/^\)\]\}',?\n/;let jy=(()=>{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 w(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 r=e.serializeBody();let i=null;const o=()=>{if(null!==i)return i;const t=1223===n.status?204:n.status,r=n.statusText||"OK",o=new _y(n.getAllResponseHeaders()),s=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 i=new Dy({headers:o,status:t,statusText:r,url:s}),i},s=()=>{let{headers:r,status:i,statusText:s,url:a}=o(),l=null;204!==i&&(l=void 0===n.response?n.responseText:n.response),0===i&&(i=l?200:0);let c=i>=200&&i<300;if("json"===e.responseType&&"string"==typeof l){const e=l;l=l.replace(Gy,"");try{l=""!==l?JSON.parse(l):null}catch(A){l=e,c&&(c=!1,l={error:A,text:l})}}c?(t.next(new My({body:l,headers:r,status:i,statusText:s,url:a||void 0})),t.complete()):t.error(new Hy({error:l,headers:r,status:i,statusText:s,url:a||void 0}))},a=e=>{const{url:r}=o(),i=new Hy({error:e,status:n.status||0,statusText:n.statusText||"Unknown Error",url:r||void 0});t.error(i)};let l=!1;const c=r=>{l||(t.next(o()),l=!0);let i={type:Iy.DownloadProgress,loaded:r.loaded};r.lengthComputable&&(i.total=r.total),"text"===e.responseType&&n.responseText&&(i.partialText=n.responseText),t.next(i)},A=e=>{let n={type:Iy.UploadProgress,loaded:e.loaded};e.lengthComputable&&(n.total=e.total),t.next(n)};return n.addEventListener("load",s),n.addEventListener("error",a),n.addEventListener("timeout",a),n.addEventListener("abort",a),e.reportProgress&&(n.addEventListener("progress",c),null!==r&&n.upload&&n.upload.addEventListener("progress",A)),n.send(r),t.next({type:Iy.Sent}),()=>{n.removeEventListener("error",a),n.removeEventListener("abort",a),n.removeEventListener("load",s),n.removeEventListener("timeout",a),e.reportProgress&&(n.removeEventListener("progress",c),null!==r&&n.upload&&n.upload.removeEventListener("progress",A)),n.readyState!==n.DONE&&n.abort()}})}}return e.\u0275fac=function(t){return new(t||e)(mr(Bh))},e.\u0275prov=de({token:e,factory:e.\u0275fac}),e})();const qy=new Zn("XSRF_COOKIE_NAME"),zy=new Zn("XSRF_HEADER_NAME");class Wy{}let Xy=(()=>{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=th(e,this.cookieName),this.lastCookieString=e),this.lastToken}}return e.\u0275fac=function(t){return new(t||e)(mr(Tu),mr(IA),mr(qy))},e.\u0275prov=de({token:e,factory:e.\u0275fac}),e})(),Jy=(()=>{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 r=this.tokenService.getToken();return null===r||e.headers.has(this.headerName)||(e=e.clone({headers:e.headers.set(this.headerName,r)})),t.handle(e)}}return e.\u0275fac=function(t){return new(t||e)(mr(Wy),mr(zy))},e.\u0275prov=de({token:e,factory:e.\u0275fac}),e})(),$y=(()=>{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(Ky,[]);this.chain=e.reduceRight((e,t)=>new Ny(e,t),this.backend)}return this.chain.handle(e)}}return e.\u0275fac=function(t){return new(t||e)(mr(By),mr(ks))},e.\u0275prov=de({token:e,factory:e.\u0275fac}),e})(),Yy=(()=>{class e{static disable(){return{ngModule:e,providers:[{provide:Jy,useClass:Vy}]}}static withOptions(t={}){return{ngModule:e,providers:[t.cookieName?{provide:qy,useValue:t.cookieName}:[],t.headerName?{provide:zy,useValue:t.headerName}:[]]}}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=We({type:e}),e.\u0275inj=pe({providers:[Jy,{provide:Ky,useExisting:Jy,multi:!0},{provide:Wy,useClass:Xy},{provide:qy,useValue:"XSRF-TOKEN"},{provide:zy,useValue:"X-XSRF-TOKEN"}]}),e})(),Zy=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=We({type:e}),e.\u0275inj=pe({providers:[Py,{provide:Cy,useClass:$y},jy,{provide:By,useExisting:jy}],imports:[[Yy.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),e})();function ew(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function tw(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ew(Object(n),!0).forEach(function(t){rw(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ew(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function nw(e){return(nw="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function rw(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function iw(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o=[],s=!0,a=!1;try{for(n=n.call(e);!(s=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);s=!0);}catch(l){a=!0,i=l}finally{try{s||null==n.return||n.return()}finally{if(a)throw i}}return o}}(e,t)||sw(e,t)||function(){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 ow(e){return function(e){if(Array.isArray(e))return aw(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||sw(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 sw(e,t){if(e){if("string"==typeof e)return aw(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)?aw(e,t):void 0}}function aw(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var lw=function(){},cw={},Aw={},uw=null,hw={mark:lw,measure:lw};try{"undefined"!=typeof window&&(cw=window),"undefined"!=typeof document&&(Aw=document),"undefined"!=typeof MutationObserver&&(uw=MutationObserver),"undefined"!=typeof performance&&(hw=performance)}catch(WI){}var dw=(cw.navigator||{}).userAgent,pw=void 0===dw?"":dw,fw=cw,gw=Aw,mw=uw,yw=hw,ww=!!gw.documentElement&&!!gw.head&&"function"==typeof gw.addEventListener&&"function"==typeof gw.createElement,vw=~pw.indexOf("MSIE")||~pw.indexOf("Trident/"),bw="svg-inline--fa",Cw="data-fa-i2svg",Bw="data-fa-pseudo-element",_w="data-prefix",Ew="data-icon",Fw="fontawesome-i2svg",Tw=["HTML","HEAD","STYLE","SCRIPT"],Sw=function(){try{return!0}catch(WI){return!1}}(),xw={fas:"solid","fa-solid":"solid",far:"regular","fa-regular":"regular",fal:"light","fa-light":"light",fat:"thin","fa-thin":"thin",fad:"duotone","fa-duotone":"duotone",fab:"brands","fa-brands":"brands",fak:"kit","fa-kit":"kit",fa:"solid"},Qw={solid:"fas",regular:"far",light:"fal",thin:"fat",duotone:"fad",brands:"fab",kit:"fak"},kw={fab:"fa-brands",fad:"fa-duotone",fak:"fa-kit",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"},Uw={"fa-brands":"fab","fa-duotone":"fad","fa-kit":"fak","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"},Ow=/fa[srltdbk\-\ ]/,Iw="fa-layers-text",Lw=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Kit)?.*/i,Dw={900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},Mw=[1,2,3,4,5,6,7,8,9,10],Hw=Mw.concat([11,12,13,14,15,16,17,18,19,20]),Rw=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],Pw="duotone-group",Nw="primary",Kw="secondary",Vw=[].concat(ow(Object.keys(Qw)),["2xs","xs","sm","lg","xl","2xl","beat","border","fade","beat-fade","bounce","flip-both","flip-horizontal","flip-vertical","flip","fw","inverse","layers-counter","layers-text","layers","li","pull-left","pull-right","pulse","rotate-180","rotate-270","rotate-90","rotate-by","shake","spin-pulse","spin-reverse","spin","stack-1x","stack-2x","stack","ul",Pw,"swap-opacity",Nw,Kw]).concat(Mw.map(function(e){return"".concat(e,"x")})).concat(Hw.map(function(e){return"w-".concat(e)})),Gw=fw.FontAwesomeConfig||{};gw&&"function"==typeof gw.querySelector&&[["data-family-prefix","familyPrefix"],["data-style-default","styleDefault"],["data-replacement-class","replacementClass"],["data-auto-replace-svg","autoReplaceSvg"],["data-auto-add-css","autoAddCss"],["data-auto-a11y","autoA11y"],["data-search-pseudo-elements","searchPseudoElements"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]].forEach(function(e){var t=iw(e,2),n=t[1],r=function(e){return""===e||"false"!==e&&("true"===e||e)}(function(e){var t=gw.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}(t[0]));null!=r&&(Gw[n]=r)});var jw=tw(tw({},{familyPrefix:"fa",styleDefault:"solid",replacementClass:bw,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0}),Gw);jw.autoReplaceSvg||(jw.observeMutations=!1);var qw={};Object.keys(jw).forEach(function(e){Object.defineProperty(qw,e,{enumerable:!0,set:function(t){jw[e]=t,zw.forEach(function(e){return e(qw)})},get:function(){return jw[e]}})}),fw.FontAwesomeConfig=qw;var zw=[],Ww=16,Xw={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function Jw(){for(var e=12,t="";e-- >0;)t+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[62*Math.random()|0];return t}function $w(e){for(var t=[],n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function Yw(e){return e.classList?$w(e.classList):(e.getAttribute("class")||"").split(" ").filter(function(e){return e})}function Zw(e){return"".concat(e).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function ev(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,": ").concat(e[n].trim(),";")},"")}function tv(e){return e.size!==Xw.size||e.x!==Xw.x||e.y!==Xw.y||e.rotate!==Xw.rotate||e.flipX||e.flipY}function nv(){var e="fa",t=bw,n=qw.familyPrefix,r=qw.replacementClass,i=':root, :host {\n  --fa-font-solid: normal 900 1em/1 "Font Awesome 6 Solid";\n  --fa-font-regular: normal 400 1em/1 "Font Awesome 6 Regular";\n  --fa-font-light: normal 300 1em/1 "Font Awesome 6 Light";\n  --fa-font-thin: normal 100 1em/1 "Font Awesome 6 Thin";\n  --fa-font-duotone: normal 900 1em/1 "Font Awesome 6 Duotone";\n  --fa-font-brands: normal 400 1em/1 "Font Awesome 6 Brands";\n}\n\nsvg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {\n  overflow: visible;\n  box-sizing: content-box;\n}\n\n.svg-inline--fa {\n  display: var(--fa-display, inline-block);\n  height: 1em;\n  overflow: visible;\n  vertical-align: -0.125em;\n}\n.svg-inline--fa.fa-2xs {\n  vertical-align: 0.1em;\n}\n.svg-inline--fa.fa-xs {\n  vertical-align: 0em;\n}\n.svg-inline--fa.fa-sm {\n  vertical-align: -0.0714285705em;\n}\n.svg-inline--fa.fa-lg {\n  vertical-align: -0.2em;\n}\n.svg-inline--fa.fa-xl {\n  vertical-align: -0.25em;\n}\n.svg-inline--fa.fa-2xl {\n  vertical-align: -0.3125em;\n}\n.svg-inline--fa.fa-pull-left {\n  margin-right: var(--fa-pull-margin, 0.3em);\n  width: auto;\n}\n.svg-inline--fa.fa-pull-right {\n  margin-left: var(--fa-pull-margin, 0.3em);\n  width: auto;\n}\n.svg-inline--fa.fa-li {\n  width: var(--fa-li-width, 2em);\n  top: 0.25em;\n}\n.svg-inline--fa.fa-fw {\n  width: var(--fa-fw-width, 1.25em);\n}\n\n.fa-layers svg.svg-inline--fa {\n  bottom: 0;\n  left: 0;\n  margin: auto;\n  position: absolute;\n  right: 0;\n  top: 0;\n}\n\n.fa-layers-counter, .fa-layers-text {\n  display: inline-block;\n  position: absolute;\n  text-align: center;\n}\n\n.fa-layers {\n  display: inline-block;\n  height: 1em;\n  position: relative;\n  text-align: center;\n  vertical-align: -0.125em;\n  width: 1em;\n}\n.fa-layers svg.svg-inline--fa {\n  -webkit-transform-origin: center center;\n          transform-origin: center center;\n}\n\n.fa-layers-text {\n  left: 50%;\n  top: 50%;\n  -webkit-transform: translate(-50%, -50%);\n          transform: translate(-50%, -50%);\n  -webkit-transform-origin: center center;\n          transform-origin: center center;\n}\n\n.fa-layers-counter {\n  background-color: var(--fa-counter-background-color, #ff253a);\n  border-radius: var(--fa-counter-border-radius, 1em);\n  box-sizing: border-box;\n  color: var(--fa-inverse, #fff);\n  line-height: var(--fa-counter-line-height, 1);\n  max-width: var(--fa-counter-max-width, 5em);\n  min-width: var(--fa-counter-min-width, 1.5em);\n  overflow: hidden;\n  padding: var(--fa-counter-padding, 0.25em 0.5em);\n  right: var(--fa-right, 0);\n  text-overflow: ellipsis;\n  top: var(--fa-top, 0);\n  -webkit-transform: scale(var(--fa-counter-scale, 0.25));\n          transform: scale(var(--fa-counter-scale, 0.25));\n  -webkit-transform-origin: top right;\n          transform-origin: top right;\n}\n\n.fa-layers-bottom-right {\n  bottom: var(--fa-bottom, 0);\n  right: var(--fa-right, 0);\n  top: auto;\n  -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n          transform: scale(var(--fa-layers-scale, 0.25));\n  -webkit-transform-origin: bottom right;\n          transform-origin: bottom right;\n}\n\n.fa-layers-bottom-left {\n  bottom: var(--fa-bottom, 0);\n  left: var(--fa-left, 0);\n  right: auto;\n  top: auto;\n  -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n          transform: scale(var(--fa-layers-scale, 0.25));\n  -webkit-transform-origin: bottom left;\n          transform-origin: bottom left;\n}\n\n.fa-layers-top-right {\n  top: var(--fa-top, 0);\n  right: var(--fa-right, 0);\n  -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n          transform: scale(var(--fa-layers-scale, 0.25));\n  -webkit-transform-origin: top right;\n          transform-origin: top right;\n}\n\n.fa-layers-top-left {\n  left: var(--fa-left, 0);\n  right: auto;\n  top: var(--fa-top, 0);\n  -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n          transform: scale(var(--fa-layers-scale, 0.25));\n  -webkit-transform-origin: top left;\n          transform-origin: top left;\n}\n\n.fa-1x {\n  font-size: 1em;\n}\n\n.fa-2x {\n  font-size: 2em;\n}\n\n.fa-3x {\n  font-size: 3em;\n}\n\n.fa-4x {\n  font-size: 4em;\n}\n\n.fa-5x {\n  font-size: 5em;\n}\n\n.fa-6x {\n  font-size: 6em;\n}\n\n.fa-7x {\n  font-size: 7em;\n}\n\n.fa-8x {\n  font-size: 8em;\n}\n\n.fa-9x {\n  font-size: 9em;\n}\n\n.fa-10x {\n  font-size: 10em;\n}\n\n.fa-2xs {\n  font-size: 0.625em;\n  line-height: 0.1em;\n  vertical-align: 0.225em;\n}\n\n.fa-xs {\n  font-size: 0.75em;\n  line-height: 0.0833333337em;\n  vertical-align: 0.125em;\n}\n\n.fa-sm {\n  font-size: 0.875em;\n  line-height: 0.0714285718em;\n  vertical-align: 0.0535714295em;\n}\n\n.fa-lg {\n  font-size: 1.25em;\n  line-height: 0.05em;\n  vertical-align: -0.075em;\n}\n\n.fa-xl {\n  font-size: 1.5em;\n  line-height: 0.0416666682em;\n  vertical-align: -0.125em;\n}\n\n.fa-2xl {\n  font-size: 2em;\n  line-height: 0.03125em;\n  vertical-align: -0.1875em;\n}\n\n.fa-fw {\n  text-align: center;\n  width: 1.25em;\n}\n\n.fa-ul {\n  list-style-type: none;\n  margin-left: var(--fa-li-margin, 2.5em);\n  padding-left: 0;\n}\n.fa-ul > li {\n  position: relative;\n}\n\n.fa-li {\n  left: calc(var(--fa-li-width, 2em) * -1);\n  position: absolute;\n  text-align: center;\n  width: var(--fa-li-width, 2em);\n  line-height: inherit;\n}\n\n.fa-border {\n  border-color: var(--fa-border-color, #eee);\n  border-radius: var(--fa-border-radius, 0.1em);\n  border-style: var(--fa-border-style, solid);\n  border-width: var(--fa-border-width, 0.08em);\n  padding: var(--fa-border-padding, 0.2em 0.25em 0.15em);\n}\n\n.fa-pull-left {\n  float: left;\n  margin-right: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-pull-right {\n  float: right;\n  margin-left: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-beat {\n  -webkit-animation-name: fa-beat;\n          animation-name: fa-beat;\n  -webkit-animation-delay: var(--fa-animation-delay, 0);\n          animation-delay: var(--fa-animation-delay, 0);\n  -webkit-animation-direction: var(--fa-animation-direction, normal);\n          animation-direction: var(--fa-animation-direction, normal);\n  -webkit-animation-duration: var(--fa-animation-duration, 1s);\n          animation-duration: var(--fa-animation-duration, 1s);\n  -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n          animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n  -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out);\n          animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-bounce {\n  -webkit-animation-name: fa-bounce;\n          animation-name: fa-bounce;\n  -webkit-animation-delay: var(--fa-animation-delay, 0);\n          animation-delay: var(--fa-animation-delay, 0);\n  -webkit-animation-direction: var(--fa-animation-direction, normal);\n          animation-direction: var(--fa-animation-direction, normal);\n  -webkit-animation-duration: var(--fa-animation-duration, 1s);\n          animation-duration: var(--fa-animation-duration, 1s);\n  -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n          animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n  -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));\n          animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));\n}\n\n.fa-fade {\n  -webkit-animation-name: fa-fade;\n          animation-name: fa-fade;\n  -webkit-animation-delay: var(--fa-animation-delay, 0);\n          animation-delay: var(--fa-animation-delay, 0);\n  -webkit-animation-direction: var(--fa-animation-direction, normal);\n          animation-direction: var(--fa-animation-direction, normal);\n  -webkit-animation-duration: var(--fa-animation-duration, 1s);\n          animation-duration: var(--fa-animation-duration, 1s);\n  -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n          animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n  -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n          animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n}\n\n.fa-beat-fade {\n  -webkit-animation-name: fa-beat-fade;\n          animation-name: fa-beat-fade;\n  -webkit-animation-delay: var(--fa-animation-delay, 0);\n          animation-delay: var(--fa-animation-delay, 0);\n  -webkit-animation-direction: var(--fa-animation-direction, normal);\n          animation-direction: var(--fa-animation-direction, normal);\n  -webkit-animation-duration: var(--fa-animation-duration, 1s);\n          animation-duration: var(--fa-animation-duration, 1s);\n  -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n          animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n  -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n          animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n}\n\n.fa-flip {\n  -webkit-animation-name: fa-flip;\n          animation-name: fa-flip;\n  -webkit-animation-delay: var(--fa-animation-delay, 0);\n          animation-delay: var(--fa-animation-delay, 0);\n  -webkit-animation-direction: var(--fa-animation-direction, normal);\n          animation-direction: var(--fa-animation-direction, normal);\n  -webkit-animation-duration: var(--fa-animation-duration, 1s);\n          animation-duration: var(--fa-animation-duration, 1s);\n  -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n          animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n  -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out);\n          animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-shake {\n  -webkit-animation-name: fa-shake;\n          animation-name: fa-shake;\n  -webkit-animation-delay: var(--fa-animation-delay, 0);\n          animation-delay: var(--fa-animation-delay, 0);\n  -webkit-animation-direction: var(--fa-animation-direction, normal);\n          animation-direction: var(--fa-animation-direction, normal);\n  -webkit-animation-duration: var(--fa-animation-duration, 1s);\n          animation-duration: var(--fa-animation-duration, 1s);\n  -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n          animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n  -webkit-animation-timing-function: var(--fa-animation-timing, linear);\n          animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin {\n  -webkit-animation-name: fa-spin;\n          animation-name: fa-spin;\n  -webkit-animation-delay: var(--fa-animation-delay, 0);\n          animation-delay: var(--fa-animation-delay, 0);\n  -webkit-animation-direction: var(--fa-animation-direction, normal);\n          animation-direction: var(--fa-animation-direction, normal);\n  -webkit-animation-duration: var(--fa-animation-duration, 2s);\n          animation-duration: var(--fa-animation-duration, 2s);\n  -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n          animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n  -webkit-animation-timing-function: var(--fa-animation-timing, linear);\n          animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin-reverse {\n  --fa-animation-direction: reverse;\n}\n\n.fa-pulse,\n.fa-spin-pulse {\n  -webkit-animation-name: fa-spin;\n          animation-name: fa-spin;\n  -webkit-animation-direction: var(--fa-animation-direction, normal);\n          animation-direction: var(--fa-animation-direction, normal);\n  -webkit-animation-duration: var(--fa-animation-duration, 1s);\n          animation-duration: var(--fa-animation-duration, 1s);\n  -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n          animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n  -webkit-animation-timing-function: var(--fa-animation-timing, steps(8));\n          animation-timing-function: var(--fa-animation-timing, steps(8));\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .fa-beat,\n.fa-bounce,\n.fa-fade,\n.fa-beat-fade,\n.fa-flip,\n.fa-pulse,\n.fa-shake,\n.fa-spin,\n.fa-spin-pulse {\n    -webkit-animation-delay: -1ms;\n            animation-delay: -1ms;\n    -webkit-animation-duration: 1ms;\n            animation-duration: 1ms;\n    -webkit-animation-iteration-count: 1;\n            animation-iteration-count: 1;\n    transition-delay: 0s;\n    transition-duration: 0s;\n  }\n}\n@-webkit-keyframes fa-beat {\n  0%, 90% {\n    -webkit-transform: scale(1);\n            transform: scale(1);\n  }\n  45% {\n    -webkit-transform: scale(var(--fa-beat-scale, 1.25));\n            transform: scale(var(--fa-beat-scale, 1.25));\n  }\n}\n@keyframes fa-beat {\n  0%, 90% {\n    -webkit-transform: scale(1);\n            transform: scale(1);\n  }\n  45% {\n    -webkit-transform: scale(var(--fa-beat-scale, 1.25));\n            transform: scale(var(--fa-beat-scale, 1.25));\n  }\n}\n@-webkit-keyframes fa-bounce {\n  0% {\n    -webkit-transform: scale(1, 1) translateY(0);\n            transform: scale(1, 1) translateY(0);\n  }\n  10% {\n    -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n            transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n  }\n  30% {\n    -webkit-transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n            transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n  }\n  50% {\n    -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n            transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n  }\n  57% {\n    -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n            transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n  }\n  64% {\n    -webkit-transform: scale(1, 1) translateY(0);\n            transform: scale(1, 1) translateY(0);\n  }\n  100% {\n    -webkit-transform: scale(1, 1) translateY(0);\n            transform: scale(1, 1) translateY(0);\n  }\n}\n@keyframes fa-bounce {\n  0% {\n    -webkit-transform: scale(1, 1) translateY(0);\n            transform: scale(1, 1) translateY(0);\n  }\n  10% {\n    -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n            transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n  }\n  30% {\n    -webkit-transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n            transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n  }\n  50% {\n    -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n            transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n  }\n  57% {\n    -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n            transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n  }\n  64% {\n    -webkit-transform: scale(1, 1) translateY(0);\n            transform: scale(1, 1) translateY(0);\n  }\n  100% {\n    -webkit-transform: scale(1, 1) translateY(0);\n            transform: scale(1, 1) translateY(0);\n  }\n}\n@-webkit-keyframes fa-fade {\n  50% {\n    opacity: var(--fa-fade-opacity, 0.4);\n  }\n}\n@keyframes fa-fade {\n  50% {\n    opacity: var(--fa-fade-opacity, 0.4);\n  }\n}\n@-webkit-keyframes fa-beat-fade {\n  0%, 100% {\n    opacity: var(--fa-beat-fade-opacity, 0.4);\n    -webkit-transform: scale(1);\n            transform: scale(1);\n  }\n  50% {\n    opacity: 1;\n    -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125));\n            transform: scale(var(--fa-beat-fade-scale, 1.125));\n  }\n}\n@keyframes fa-beat-fade {\n  0%, 100% {\n    opacity: var(--fa-beat-fade-opacity, 0.4);\n    -webkit-transform: scale(1);\n            transform: scale(1);\n  }\n  50% {\n    opacity: 1;\n    -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125));\n            transform: scale(var(--fa-beat-fade-scale, 1.125));\n  }\n}\n@-webkit-keyframes fa-flip {\n  50% {\n    -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n            transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n  }\n}\n@keyframes fa-flip {\n  50% {\n    -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n            transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n  }\n}\n@-webkit-keyframes fa-shake {\n  0% {\n    -webkit-transform: rotate(-15deg);\n            transform: rotate(-15deg);\n  }\n  4% {\n    -webkit-transform: rotate(15deg);\n            transform: rotate(15deg);\n  }\n  8%, 24% {\n    -webkit-transform: rotate(-18deg);\n            transform: rotate(-18deg);\n  }\n  12%, 28% {\n    -webkit-transform: rotate(18deg);\n            transform: rotate(18deg);\n  }\n  16% {\n    -webkit-transform: rotate(-22deg);\n            transform: rotate(-22deg);\n  }\n  20% {\n    -webkit-transform: rotate(22deg);\n            transform: rotate(22deg);\n  }\n  32% {\n    -webkit-transform: rotate(-12deg);\n            transform: rotate(-12deg);\n  }\n  36% {\n    -webkit-transform: rotate(12deg);\n            transform: rotate(12deg);\n  }\n  40%, 100% {\n    -webkit-transform: rotate(0deg);\n            transform: rotate(0deg);\n  }\n}\n@keyframes fa-shake {\n  0% {\n    -webkit-transform: rotate(-15deg);\n            transform: rotate(-15deg);\n  }\n  4% {\n    -webkit-transform: rotate(15deg);\n            transform: rotate(15deg);\n  }\n  8%, 24% {\n    -webkit-transform: rotate(-18deg);\n            transform: rotate(-18deg);\n  }\n  12%, 28% {\n    -webkit-transform: rotate(18deg);\n            transform: rotate(18deg);\n  }\n  16% {\n    -webkit-transform: rotate(-22deg);\n            transform: rotate(-22deg);\n  }\n  20% {\n    -webkit-transform: rotate(22deg);\n            transform: rotate(22deg);\n  }\n  32% {\n    -webkit-transform: rotate(-12deg);\n            transform: rotate(-12deg);\n  }\n  36% {\n    -webkit-transform: rotate(12deg);\n            transform: rotate(12deg);\n  }\n  40%, 100% {\n    -webkit-transform: rotate(0deg);\n            transform: rotate(0deg);\n  }\n}\n@-webkit-keyframes fa-spin {\n  0% {\n    -webkit-transform: rotate(0deg);\n            transform: rotate(0deg);\n  }\n  100% {\n    -webkit-transform: rotate(360deg);\n            transform: rotate(360deg);\n  }\n}\n@keyframes fa-spin {\n  0% {\n    -webkit-transform: rotate(0deg);\n            transform: rotate(0deg);\n  }\n  100% {\n    -webkit-transform: rotate(360deg);\n            transform: rotate(360deg);\n  }\n}\n.fa-rotate-90 {\n  -webkit-transform: rotate(90deg);\n          transform: rotate(90deg);\n}\n\n.fa-rotate-180 {\n  -webkit-transform: rotate(180deg);\n          transform: rotate(180deg);\n}\n\n.fa-rotate-270 {\n  -webkit-transform: rotate(270deg);\n          transform: rotate(270deg);\n}\n\n.fa-flip-horizontal {\n  -webkit-transform: scale(-1, 1);\n          transform: scale(-1, 1);\n}\n\n.fa-flip-vertical {\n  -webkit-transform: scale(1, -1);\n          transform: scale(1, -1);\n}\n\n.fa-flip-both,\n.fa-flip-horizontal.fa-flip-vertical {\n  -webkit-transform: scale(-1, -1);\n          transform: scale(-1, -1);\n}\n\n.fa-rotate-by {\n  -webkit-transform: rotate(var(--fa-rotate-angle, none));\n          transform: rotate(var(--fa-rotate-angle, none));\n}\n\n.fa-stack {\n  display: inline-block;\n  vertical-align: middle;\n  height: 2em;\n  position: relative;\n  width: 2.5em;\n}\n\n.fa-stack-1x,\n.fa-stack-2x {\n  bottom: 0;\n  left: 0;\n  margin: auto;\n  position: absolute;\n  right: 0;\n  top: 0;\n  z-index: var(--fa-stack-z-index, auto);\n}\n\n.svg-inline--fa.fa-stack-1x {\n  height: 1em;\n  width: 1.25em;\n}\n.svg-inline--fa.fa-stack-2x {\n  height: 2em;\n  width: 2.5em;\n}\n\n.fa-inverse {\n  color: var(--fa-inverse, #fff);\n}\n\n.sr-only,\n.fa-sr-only {\n  position: absolute;\n  width: 1px;\n  height: 1px;\n  padding: 0;\n  margin: -1px;\n  overflow: hidden;\n  clip: rect(0, 0, 0, 0);\n  white-space: nowrap;\n  border-width: 0;\n}\n\n.sr-only-focusable:not(:focus),\n.fa-sr-only-focusable:not(:focus) {\n  position: absolute;\n  width: 1px;\n  height: 1px;\n  padding: 0;\n  margin: -1px;\n  overflow: hidden;\n  clip: rect(0, 0, 0, 0);\n  white-space: nowrap;\n  border-width: 0;\n}\n\n.svg-inline--fa .fa-primary {\n  fill: var(--fa-primary-color, currentColor);\n  opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa .fa-secondary {\n  fill: var(--fa-secondary-color, currentColor);\n  opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-primary {\n  opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-secondary {\n  opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa mask .fa-primary,\n.svg-inline--fa mask .fa-secondary {\n  fill: black;\n}\n\n.fad.fa-inverse,\n.fa-duotone.fa-inverse {\n  color: var(--fa-inverse, #fff);\n}';if(n!==e||r!==t){var o=new RegExp("\\.".concat(e,"\\-"),"g"),s=new RegExp("\\--".concat(e,"\\-"),"g"),a=new RegExp("\\.".concat(t),"g");i=i.replace(o,".".concat(n,"-")).replace(s,"--".concat(n,"-")).replace(a,".".concat(r))}return i}var rv=!1;function iv(){qw.autoAddCss&&!rv&&(function(e){if(e&&ww){var t=gw.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;for(var n=gw.head.childNodes,r=null,i=n.length-1;i>-1;i--){var o=n[i],s=(o.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(s)>-1&&(r=o)}gw.head.insertBefore(t,r)}}(nv()),rv=!0)}var ov={mixout:function(){return{dom:{css:nv,insertCss:iv}}},hooks:function(){return{beforeDOMElementCreation:function(){iv()},beforeI2svg:function(){iv()}}}},sv=fw||{};sv.___FONT_AWESOME___||(sv.___FONT_AWESOME___={}),sv.___FONT_AWESOME___.styles||(sv.___FONT_AWESOME___.styles={}),sv.___FONT_AWESOME___.hooks||(sv.___FONT_AWESOME___.hooks={}),sv.___FONT_AWESOME___.shims||(sv.___FONT_AWESOME___.shims=[]);var av=sv.___FONT_AWESOME___,lv=[],cv=!1;function Av(e){ww&&(cv?setTimeout(e,0):lv.push(e))}function uv(e){var t=e.tag,n=e.attributes,r=void 0===n?{}:n,i=e.children,o=void 0===i?[]:i;return"string"==typeof e?Zw(e):"<".concat(t," ").concat(function(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,'="').concat(Zw(e[n]),'" ')},"").trim()}(r),">").concat(o.map(uv).join(""),"</").concat(t,">")}function hv(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}ww&&((cv=(gw.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(gw.readyState))||gw.addEventListener("DOMContentLoaded",function e(){gw.removeEventListener("DOMContentLoaded",e),cv=1,lv.map(function(e){return e()})}));var dv=function(e,t,n,r){var i,o,s,a=Object.keys(e),l=a.length,c=void 0!==r?function(e,t){return function(n,r,i,o){return e.call(t,n,r,i,o)}}(t,r):t;for(void 0===n?(i=1,s=e[a[0]]):(i=0,s=n);i<l;i++)s=c(s,e[o=a[i]],o,e);return s};function pv(e){var t=function(e){for(var t=[],n=0,r=e.length;n<r;){var i=e.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){var o=e.charCodeAt(n++);56320==(64512&o)?t.push(((1023&i)<<10)+(1023&o)+65536):(t.push(i),n--)}else t.push(i)}return t}(e);return 1===t.length?t[0].toString(16):null}function fv(e){return Object.keys(e).reduce(function(t,n){var r=e[n];return r.icon?t[r.iconName]=r.icon:t[n]=r,t},{})}function gv(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.skipHooks,i=void 0!==r&&r,o=fv(t);"function"!=typeof av.hooks.addPack||i?av.styles[e]=tw(tw({},av.styles[e]||{}),o):av.hooks.addPack(e,fv(t)),"fas"===e&&gv("fa",t)}var mv=av.styles,yv=av.shims,wv=Object.values(kw),vv=null,bv={},Cv={},Bv={},_v={},Ev={},Fv=Object.keys(xw);function Tv(e,t){var n=t.split("-"),r=n[0],i=n.slice(1).join("-");return r!==e||""===i||~Vw.indexOf(i)?null:i}var Sv=function(){var e=function(e){return dv(mv,function(t,n,r){return t[r]=dv(n,e,{}),t},{})};bv=e(function(e,t,n){return t[3]&&(e[t[3]]=n),t[2]&&t[2].filter(function(e){return"number"==typeof e}).forEach(function(t){e[t.toString(16)]=n}),e}),Cv=e(function(e,t,n){return e[n]=n,t[2]&&t[2].filter(function(e){return"string"==typeof e}).forEach(function(t){e[t]=n}),e}),Ev=e(function(e,t,n){var r=t[2];return e[n]=n,r.forEach(function(t){e[t]=n}),e});var t="far"in mv||qw.autoFetchSvg,n=dv(yv,function(e,n){var r=n[0],i=n[1],o=n[2];return"far"!==i||t||(i="fas"),"string"==typeof r&&(e.names[r]={prefix:i,iconName:o}),"number"==typeof r&&(e.unicodes[r.toString(16)]={prefix:i,iconName:o}),e},{names:{},unicodes:{}});Bv=n.names,_v=n.unicodes,vv=Ov(qw.styleDefault)};function xv(e,t){return(bv[e]||{})[t]}function Qv(e,t){return(Ev[e]||{})[t]}function kv(e){return Bv[e]||{prefix:null,iconName:null}}function Uv(){return vv}function Ov(e){return Qw[e]||Qw[xw[e]]||(e in av.styles?e:null)||null}function Iv(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.skipLookups,r=void 0!==n&&n,i=null,o=e.reduce(function(e,t){var n=Tv(qw.familyPrefix,t);if(mv[t]?(t=wv.includes(t)?Uw[t]:t,i=t,e.prefix=t):Fv.indexOf(t)>-1?(i=t,e.prefix=Ov(t)):n?e.iconName=n:t!==qw.replacementClass&&e.rest.push(t),!r&&e.prefix&&e.iconName){var o="fa"===i?kv(e.iconName):{},s=Qv(e.prefix,e.iconName);o.prefix&&(i=null),e.iconName=o.iconName||s||e.iconName,e.prefix=o.prefix||e.prefix,"far"!==e.prefix||mv.far||!mv.fas||qw.autoFetchSvg||(e.prefix="fas")}return e},{prefix:null,iconName:null,rest:[]});return"fa"!==o.prefix&&"fa"!==i||(o.prefix=Uv()||"fas"),o}zw.push(function(e){vv=Ov(e.styleDefault)}),Sv();var Lv=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.definitions={}}var t,n;return t=e,(n=[{key:"add",value:function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=n.reduce(this._pullDefinitions,{});Object.keys(i).forEach(function(t){e.definitions[t]=tw(tw({},e.definitions[t]||{}),i[t]),gv(t,i[t]);var n=kw[t];n&&gv(n,i[t]),Sv()})}},{key:"reset",value:function(){this.definitions={}}},{key:"_pullDefinitions",value:function(e,t){var n=t.prefix&&t.iconName&&t.icon?{0:t}:t;return Object.keys(n).map(function(t){var r=n[t],i=r.prefix,o=r.iconName,s=r.icon,a=s[2];e[i]||(e[i]={}),a.length>0&&a.forEach(function(t){"string"==typeof t&&(e[i][t]=s)}),e[i][o]=s}),e}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}(),Dv=[],Mv={},Hv={},Rv=Object.keys(Hv);function Pv(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];var o=Mv[e]||[];return o.forEach(function(e){t=e.apply(null,[t].concat(r))}),t}function Nv(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i=Mv[e]||[];i.forEach(function(e){e.apply(null,n)})}function Kv(){var e=arguments[0],t=Array.prototype.slice.call(arguments,1);return Hv[e]?Hv[e].apply(null,t):void 0}function Vv(e){"fa"===e.prefix&&(e.prefix="fas");var t=e.iconName,n=e.prefix||Uv();if(t)return t=Qv(n,t)||t,hv(Gv.definitions,n,t)||hv(av.styles,n,t)}var Gv=new Lv,jv={i2svg:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return ww?(Nv("beforeI2svg",e),Kv("pseudoElements2svg",e),Kv("i2svg",e)):Promise.reject("Operation requires a DOM of some kind.")},watch:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.autoReplaceSvgRoot;!1===qw.autoReplaceSvg&&(qw.autoReplaceSvg=!0),qw.observeMutations=!0,Av(function(){zv({autoReplaceSvgRoot:t}),Nv("watch",e)})}},qv={noAuto:function(){qw.autoReplaceSvg=!1,qw.observeMutations=!1,Nv("noAuto")},config:qw,dom:jv,parse:{icon:function(e){if(null===e)return null;if("object"===nw(e)&&e.prefix&&e.iconName)return{prefix:e.prefix,iconName:Qv(e.prefix,e.iconName)||e.iconName};if(Array.isArray(e)&&2===e.length){var t=0===e[1].indexOf("fa-")?e[1].slice(3):e[1],n=Ov(e[0]);return{prefix:n,iconName:Qv(n,t)||t}}if("string"==typeof e&&(e.indexOf("".concat(qw.familyPrefix,"-"))>-1||e.match(Ow))){var r=Iv(e.split(" "),{skipLookups:!0});return{prefix:r.prefix||Uv(),iconName:Qv(r.prefix,r.iconName)||r.iconName}}if("string"==typeof e){var i=Uv();return{prefix:i,iconName:Qv(i,e)||e}}}},library:Gv,findIconDefinition:Vv,toHtml:uv},zv=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.autoReplaceSvgRoot,n=void 0===t?gw:t;(Object.keys(av.styles).length>0||qw.autoFetchSvg)&&ww&&qw.autoReplaceSvg&&qv.dom.i2svg({node:n})};function Wv(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(function(e){return uv(e)})}}),Object.defineProperty(e,"node",{get:function(){if(ww){var t=gw.createElement("div");return t.innerHTML=e.html,t.children}}}),e}function Xv(e){var t=e.icons,n=t.main,r=t.mask,i=e.prefix,o=e.iconName,s=e.transform,a=e.symbol,l=e.title,c=e.maskId,A=e.titleId,u=e.extra,h=e.watchable,d=void 0!==h&&h,p=r.found?r:n,f=p.width,g=p.height,m="fak"===i,y=[qw.replacementClass,o?"".concat(qw.familyPrefix,"-").concat(o):""].filter(function(e){return-1===u.classes.indexOf(e)}).filter(function(e){return""!==e||!!e}).concat(u.classes).join(" "),w={children:[],attributes:tw(tw({},u.attributes),{},{"data-prefix":i,"data-icon":o,class:y,role:u.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(f," ").concat(g)})},v=m&&!~u.classes.indexOf("fa-fw")?{width:"".concat(f/g*16*.0625,"em")}:{};d&&(w.attributes[Cw]=""),l&&(w.children.push({tag:"title",attributes:{id:w.attributes["aria-labelledby"]||"title-".concat(A||Jw())},children:[l]}),delete w.attributes.title);var b=tw(tw({},w),{},{prefix:i,iconName:o,main:n,mask:r,maskId:c,transform:s,symbol:a,styles:tw(tw({},v),u.styles)}),C=r.found&&n.found?Kv("generateAbstractMask",b)||{children:[],attributes:{}}:Kv("generateAbstractIcon",b)||{children:[],attributes:{}},B=C.attributes;return b.children=C.children,b.attributes=B,a?function(e){var t=e.iconName,n=e.children,r=e.attributes,i=e.symbol,o=!0===i?"".concat(e.prefix,"-").concat(qw.familyPrefix,"-").concat(t):i;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:tw(tw({},r),{},{id:o}),children:n}]}]}(b):function(e){var t=e.children,n=e.main,r=e.mask,i=e.attributes,o=e.styles,s=e.transform;if(tv(s)&&n.found&&!r.found){var a={x:n.width/n.height/2,y:.5};i.style=ev(tw(tw({},o),{},{"transform-origin":"".concat(a.x+s.x/16,"em ").concat(a.y+s.y/16,"em")}))}return[{tag:"svg",attributes:i,children:t}]}(b)}function Jv(e){var t=e.content,n=e.width,r=e.height,i=e.transform,o=e.title,s=e.extra,a=e.watchable,l=void 0!==a&&a,c=tw(tw(tw({},s.attributes),o?{title:o}:{}),{},{class:s.classes.join(" ")});l&&(c[Cw]="");var A=tw({},s.styles);tv(i)&&(A.transform=function(e){var t=e.transform,n=e.width,r=e.height,i=void 0===r?16:r,o=e.startCentered,s=void 0!==o&&o,a="";return a+=s&&vw?"translate(".concat(t.x/Ww-(void 0===n?16:n)/2,"em, ").concat(t.y/Ww-i/2,"em) "):s?"translate(calc(-50% + ".concat(t.x/Ww,"em), calc(-50% + ").concat(t.y/Ww,"em)) "):"translate(".concat(t.x/Ww,"em, ").concat(t.y/Ww,"em) "),(a+="scale(".concat(t.size/Ww*(t.flipX?-1:1),", ").concat(t.size/Ww*(t.flipY?-1:1),") "))+"rotate(".concat(t.rotate,"deg) ")}({transform:i,startCentered:!0,width:n,height:r}),A["-webkit-transform"]=A.transform);var u=ev(A);u.length>0&&(c.style=u);var h=[];return h.push({tag:"span",attributes:c,children:[t]}),o&&h.push({tag:"span",attributes:{class:"sr-only"},children:[o]}),h}function $v(e){var t=e.content,n=e.title,r=e.extra,i=tw(tw(tw({},r.attributes),n?{title:n}:{}),{},{class:r.classes.join(" ")}),o=ev(r.styles);o.length>0&&(i.style=o);var s=[];return s.push({tag:"span",attributes:i,children:[t]}),n&&s.push({tag:"span",attributes:{class:"sr-only"},children:[n]}),s}var Yv=av.styles;function Zv(e){var t=e[0],n=e[1],r=iw(e.slice(4),1)[0];return{found:!0,width:t,height:n,icon:Array.isArray(r)?{tag:"g",attributes:{class:"".concat(qw.familyPrefix,"-").concat(Pw)},children:[{tag:"path",attributes:{class:"".concat(qw.familyPrefix,"-").concat(Kw),fill:"currentColor",d:r[0]}},{tag:"path",attributes:{class:"".concat(qw.familyPrefix,"-").concat(Nw),fill:"currentColor",d:r[1]}}]}:{tag:"path",attributes:{fill:"currentColor",d:r}}}}var eb={found:!1,width:512,height:512};function tb(e,t){var n=t;return"fa"===t&&null!==qw.styleDefault&&(t=Uv()),new Promise(function(r,i){if(Kv("missingIconAbstract"),"fa"===n){var o=kv(e)||{};e=o.iconName||e,t=o.prefix||t}if(e&&t&&Yv[t]&&Yv[t][e])return r(Zv(Yv[t][e]));!function(e,t){Sw||qw.showMissingIcons||!e||console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}(e,t),r(tw(tw({},eb),{},{icon:qw.showMissingIcons&&e&&Kv("missingIconAbstract")||{}}))})}var nb=function(){},rb=qw.measurePerformance&&yw&&yw.mark&&yw.measure?yw:{mark:nb,measure:nb},ib='FA "6.0.0"',ob=function(e){return rb.mark("".concat(ib," ").concat(e," begins")),function(){return function(e){rb.mark("".concat(ib," ").concat(e," ends")),rb.measure("".concat(ib," ").concat(e),"".concat(ib," ").concat(e," begins"),"".concat(ib," ").concat(e," ends"))}(e)}},sb=function(){};function ab(e){return"string"==typeof(e.getAttribute?e.getAttribute(Cw):null)}function lb(e){return gw.createElementNS("http://www.w3.org/2000/svg",e)}function cb(e){return gw.createElement(e)}function Ab(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.ceFn,r=void 0===n?"svg"===e.tag?lb:cb:n;if("string"==typeof e)return gw.createTextNode(e);var i=r(e.tag);Object.keys(e.attributes||[]).forEach(function(t){i.setAttribute(t,e.attributes[t])});var o=e.children||[];return o.forEach(function(e){i.appendChild(Ab(e,{ceFn:r}))}),i}var ub={replace:function(e){var t=e[0];if(t.parentNode)if(e[1].forEach(function(e){t.parentNode.insertBefore(Ab(e),t)}),null===t.getAttribute(Cw)&&qw.keepOriginalSource){var n=gw.createComment(function(e){var t=" ".concat(e.outerHTML," ");return"".concat(t,"Font Awesome fontawesome.com ")}(t));t.parentNode.replaceChild(n,t)}else t.remove()},nest:function(e){var t=e[0],n=e[1];if(~Yw(t).indexOf(qw.replacementClass))return ub.replace(e);var r=new RegExp("".concat(qw.familyPrefix,"-.*"));if(delete n[0].attributes.id,n[0].attributes.class){var i=n[0].attributes.class.split(" ").reduce(function(e,t){return t===qw.replacementClass||t.match(r)?e.toSvg.push(t):e.toNode.push(t),e},{toNode:[],toSvg:[]});n[0].attributes.class=i.toSvg.join(" "),0===i.toNode.length?t.removeAttribute("class"):t.setAttribute("class",i.toNode.join(" "))}var o=n.map(function(e){return uv(e)}).join("\n");t.setAttribute(Cw,""),t.innerHTML=o}};function hb(e){e()}function db(e,t){var n="function"==typeof t?t:sb;if(0===e.length)n();else{var r=hb;"async"===qw.mutateApproach&&(r=fw.requestAnimationFrame||hb),r(function(){var t=!0===qw.autoReplaceSvg?ub.replace:ub[qw.autoReplaceSvg]||ub.replace,r=ob("mutate");e.map(t),r(),n()})}}var pb=!1;function fb(){pb=!0}function gb(){pb=!1}var mb=null;function yb(e){if(mw&&qw.observeMutations){var t=e.treeCallback,n=void 0===t?sb:t,r=e.nodeCallback,i=void 0===r?sb:r,o=e.pseudoElementsCallback,s=void 0===o?sb:o,a=e.observeMutationsRoot,l=void 0===a?gw:a;mb=new mw(function(e){if(!pb){var t=Uv();$w(e).forEach(function(e){if("childList"===e.type&&e.addedNodes.length>0&&!ab(e.addedNodes[0])&&(qw.searchPseudoElements&&s(e.target),n(e.target)),"attributes"===e.type&&e.target.parentNode&&qw.searchPseudoElements&&s(e.target.parentNode),"attributes"===e.type&&ab(e.target)&&~Rw.indexOf(e.attributeName))if("class"===e.attributeName&&function(e){var t=e.getAttribute?e.getAttribute(_w):null,n=e.getAttribute?e.getAttribute(Ew):null;return t&&n}(e.target)){var r=Iv(Yw(e.target)),o=r.iconName;e.target.setAttribute(_w,r.prefix||t),o&&e.target.setAttribute(Ew,o)}else(a=e.target)&&a.classList&&a.classList.contains&&a.classList.contains(qw.replacementClass)&&i(e.target);var a})}}),ww&&mb.observe(l,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function wb(e){var t=e.getAttribute("style"),n=[];return t&&(n=t.split(";").reduce(function(e,t){var n=t.split(":"),r=n[0],i=n.slice(1);return r&&i.length>0&&(e[r]=i.join(":").trim()),e},{})),n}function vb(e){var t=e.getAttribute("data-prefix"),n=e.getAttribute("data-icon"),r=void 0!==e.innerText?e.innerText.trim():"",i=Iv(Yw(e));return i.prefix||(i.prefix=Uv()),t&&n&&(i.prefix=t,i.iconName=n),i.iconName&&i.prefix||i.prefix&&r.length>0&&(i.iconName=(Cv[i.prefix]||{})[e.innerText]||xv(i.prefix,pv(e.innerText))),i}function bb(e){var t=$w(e.attributes).reduce(function(e,t){return"class"!==e.name&&"style"!==e.name&&(e[t.name]=t.value),e},{}),n=e.getAttribute("title"),r=e.getAttribute("data-fa-title-id");return qw.autoA11y&&(n?t["aria-labelledby"]="".concat(qw.replacementClass,"-title-").concat(r||Jw()):(t["aria-hidden"]="true",t.focusable="false")),t}function Cb(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{styleParser:!0},n=vb(e),r=n.iconName,i=n.prefix,o=n.rest,s=bb(e),a=Pv("parseNodeAttributes",{},e),l=t.styleParser?wb(e):[];return tw({iconName:r,title:e.getAttribute("title"),titleId:e.getAttribute("data-fa-title-id"),prefix:i,transform:Xw,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:o,styles:l,attributes:s}},a)}var Bb=av.styles;function _b(e){var t="nest"===qw.autoReplaceSvg?Cb(e,{styleParser:!1}):Cb(e);return~t.extra.classes.indexOf(Iw)?Kv("generateLayersText",e,t):Kv("generateSvgReplacementMutation",e,t)}function Eb(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!ww)return Promise.resolve();var n=gw.documentElement.classList,r=function(e){return n.add("".concat(Fw,"-").concat(e))},i=function(e){return n.remove("".concat(Fw,"-").concat(e))},o=Object.keys(qw.autoFetchSvg?xw:Bb),s=[".".concat(Iw,":not([").concat(Cw,"])")].concat(o.map(function(e){return".".concat(e,":not([").concat(Cw,"])")})).join(", ");if(0===s.length)return Promise.resolve();var a=[];try{a=$w(e.querySelectorAll(s))}catch(WI){}if(!(a.length>0))return Promise.resolve();r("pending"),i("complete");var l=ob("onTree"),c=a.reduce(function(e,t){try{var n=_b(t);n&&e.push(n)}catch(WI){Sw||"MissingIcon"===WI.name&&console.error(WI)}return e},[]);return new Promise(function(e,n){Promise.all(c).then(function(n){db(n,function(){r("active"),r("complete"),i("pending"),"function"==typeof t&&t(),l(),e()})}).catch(function(e){l(),n(e)})})}function Fb(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;_b(e).then(function(e){e&&db([e],t)})}var Tb=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.transform,r=void 0===n?Xw:n,i=t.symbol,o=void 0!==i&&i,s=t.mask,a=void 0===s?null:s,l=t.maskId,c=void 0===l?null:l,A=t.title,u=void 0===A?null:A,h=t.titleId,d=void 0===h?null:h,p=t.classes,f=void 0===p?[]:p,g=t.attributes,m=void 0===g?{}:g,y=t.styles,w=void 0===y?{}:y;if(e){var v=e.prefix,b=e.iconName,C=e.icon;return Wv(tw({type:"icon"},e),function(){return Nv("beforeDOMElementCreation",{iconDefinition:e,params:t}),qw.autoA11y&&(u?m["aria-labelledby"]="".concat(qw.replacementClass,"-title-").concat(d||Jw()):(m["aria-hidden"]="true",m.focusable="false")),Xv({icons:{main:Zv(C),mask:a?Zv(a.icon):{found:!1,width:null,height:null,icon:{}}},prefix:v,iconName:b,transform:tw(tw({},Xw),r),symbol:o,title:u,maskId:c,titleId:d,extra:{attributes:m,styles:w,classes:f}})})}},Sb={mixout:function(){return{icon:(e=Tb,function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=(t||{}).icon?t:Vv(t||{}),i=n.mask;return i&&(i=(i||{}).icon?i:Vv(i||{})),e(r,tw(tw({},n),{},{mask:i}))})};var e},hooks:function(){return{mutationObserverCallbacks:function(e){return e.treeCallback=Eb,e.nodeCallback=Fb,e}}},provides:function(e){e.i2svg=function(e){var t=e.node,n=e.callback;return Eb(void 0===t?gw:t,void 0===n?function(){}:n)},e.generateSvgReplacementMutation=function(e,t){var n=t.iconName,r=t.title,i=t.titleId,o=t.prefix,s=t.transform,a=t.symbol,l=t.mask,c=t.maskId,A=t.extra;return new Promise(function(t,u){Promise.all([tb(n,o),l.iconName?tb(l.iconName,l.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(l){var u=iw(l,2);t([e,Xv({icons:{main:u[0],mask:u[1]},prefix:o,iconName:n,transform:s,symbol:a,maskId:c,title:r,titleId:i,extra:A,watchable:!0})])}).catch(u)})},e.generateAbstractIcon=function(e){var t,n=e.children,r=e.attributes,i=e.main,o=e.transform,s=ev(e.styles);return s.length>0&&(r.style=s),tv(o)&&(t=Kv("generateAbstractTransformGrouping",{main:i,transform:o,containerWidth:i.width,iconWidth:i.width})),n.push(t||i.icon),{children:n,attributes:r}}}},xb={mixout:function(){return{layer:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.classes,r=void 0===n?[]:n;return Wv({type:"layer"},function(){Nv("beforeDOMElementCreation",{assembler:e,params:t});var n=[];return e(function(e){Array.isArray(e)?e.map(function(e){n=n.concat(e.abstract)}):n=n.concat(e.abstract)}),[{tag:"span",attributes:{class:["".concat(qw.familyPrefix,"-layers")].concat(ow(r)).join(" ")},children:n}]})}}}},Qb={mixout:function(){return{counter:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.title,r=void 0===n?null:n,i=t.classes,o=void 0===i?[]:i,s=t.attributes,a=void 0===s?{}:s,l=t.styles,c=void 0===l?{}:l;return Wv({type:"counter",content:e},function(){return Nv("beforeDOMElementCreation",{content:e,params:t}),$v({content:e.toString(),title:r,extra:{attributes:a,styles:c,classes:["".concat(qw.familyPrefix,"-layers-counter")].concat(ow(o))}})})}}}},kb={mixout:function(){return{text:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.transform,r=void 0===n?Xw:n,i=t.title,o=void 0===i?null:i,s=t.classes,a=void 0===s?[]:s,l=t.attributes,c=void 0===l?{}:l,A=t.styles,u=void 0===A?{}:A;return Wv({type:"text",content:e},function(){return Nv("beforeDOMElementCreation",{content:e,params:t}),Jv({content:e,transform:tw(tw({},Xw),r),title:o,extra:{attributes:c,styles:u,classes:["".concat(qw.familyPrefix,"-layers-text")].concat(ow(a))}})})}}},provides:function(e){e.generateLayersText=function(e,t){var n=t.title,r=t.transform,i=t.extra,o=null,s=null;if(vw){var a=parseInt(getComputedStyle(e).fontSize,10),l=e.getBoundingClientRect();o=l.width/a,s=l.height/a}return qw.autoA11y&&!n&&(i.attributes["aria-hidden"]="true"),Promise.resolve([e,Jv({content:e.innerHTML,width:o,height:s,transform:r,title:n,extra:i,watchable:!0})])}}},Ub=new RegExp('"',"ug"),Ob=[1105920,1112319];function Ib(e,t){var n="".concat("data-fa-pseudo-element-pending").concat(t.replace(":","-"));return new Promise(function(r,i){if(null!==e.getAttribute(n))return r();var o,s,a,l=$w(e.children).filter(function(e){return e.getAttribute(Bw)===t})[0],c=fw.getComputedStyle(e,t),A=c.getPropertyValue("font-family").match(Lw),u=c.getPropertyValue("font-weight"),h=c.getPropertyValue("content");if(l&&!A)return e.removeChild(l),r();if(A&&"none"!==h&&""!==h){var d=c.getPropertyValue("content"),p=~["Solid","Regular","Light","Thin","Duotone","Brands","Kit"].indexOf(A[2])?Qw[A[2].toLowerCase()]:Dw[u],f=function(e){var t=e.replace(Ub,""),n=function(e,t){var n,r=e.length,i=e.charCodeAt(0);return i>=55296&&i<=56319&&r>1&&(n=e.charCodeAt(1))>=56320&&n<=57343?1024*(i-55296)+n-56320+65536:i}(t),r=n>=Ob[0]&&n<=Ob[1],i=2===t.length&&t[0]===t[1];return{value:pv(i?t[0]:t),isSecondary:r||i}}(d),g=f.value,m=f.isSecondary,y=A[0].startsWith("FontAwesome"),w=xv(p,g),v=w;if(y){var b=(s=_v[o=g],a=xv("fas",o),s||(a?{prefix:"fas",iconName:a}:null)||{prefix:null,iconName:null});b.iconName&&b.prefix&&(w=b.iconName,p=b.prefix)}if(!w||m||l&&l.getAttribute(_w)===p&&l.getAttribute(Ew)===v)r();else{e.setAttribute(n,v),l&&e.removeChild(l);var C={iconName:null,title:null,titleId:null,prefix:null,transform:Xw,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}},B=C.extra;B.attributes[Bw]=t,tb(w,p).then(function(i){var o=Xv(tw(tw({},C),{},{icons:{main:i,mask:{prefix:null,iconName:null,rest:[]}},prefix:p,iconName:v,extra:B,watchable:!0})),s=gw.createElement("svg");"::before"===t?e.insertBefore(s,e.firstChild):e.appendChild(s),s.outerHTML=o.map(function(e){return uv(e)}).join("\n"),e.removeAttribute(n),r()}).catch(i)}}else r()})}function Lb(e){return Promise.all([Ib(e,"::before"),Ib(e,"::after")])}function Db(e){return!(e.parentNode===document.head||~Tw.indexOf(e.tagName.toUpperCase())||e.getAttribute(Bw)||e.parentNode&&"svg"===e.parentNode.tagName)}function Mb(e){if(ww)return new Promise(function(t,n){var r=$w(e.querySelectorAll("*")).filter(Db).map(Lb),i=ob("searchPseudoElements");fb(),Promise.all(r).then(function(){i(),gb(),t()}).catch(function(){i(),gb(),n()})})}var Hb,Rb=!1,Pb=function(e){return e.toLowerCase().split(" ").reduce(function(e,t){var n=t.toLowerCase().split("-"),r=n[0],i=n.slice(1).join("-");if(r&&"h"===i)return e.flipX=!0,e;if(r&&"v"===i)return e.flipY=!0,e;if(i=parseFloat(i),isNaN(i))return e;switch(r){case"grow":e.size=e.size+i;break;case"shrink":e.size=e.size-i;break;case"left":e.x=e.x-i;break;case"right":e.x=e.x+i;break;case"up":e.y=e.y-i;break;case"down":e.y=e.y+i;break;case"rotate":e.rotate=e.rotate+i}return e},{size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0})},Nb={x:0,y:0,width:"100%",height:"100%"};function Kb(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return e.attributes&&(e.attributes.fill||t)&&(e.attributes.fill="black"),e}Hb=qv,Dv=[ov,Sb,xb,Qb,kb,{hooks:function(){return{mutationObserverCallbacks:function(e){return e.pseudoElementsCallback=Mb,e}}},provides:function(e){e.pseudoElements2svg=function(e){var t=e.node;qw.searchPseudoElements&&Mb(void 0===t?gw:t)}}},{mixout:function(){return{dom:{unwatch:function(){fb(),Rb=!0}}}},hooks:function(){return{bootstrap:function(){yb(Pv("mutationObserverCallbacks",{}))},noAuto:function(){mb&&mb.disconnect()},watch:function(e){var t=e.observeMutationsRoot;Rb?gb():yb(Pv("mutationObserverCallbacks",{observeMutationsRoot:t}))}}}},{mixout:function(){return{parse:{transform:function(e){return Pb(e)}}}},hooks:function(){return{parseNodeAttributes:function(e,t){var n=t.getAttribute("data-fa-transform");return n&&(e.transform=Pb(n)),e}}},provides:function(e){e.generateAbstractTransformGrouping=function(e){var t=e.main,n=e.transform,r=e.iconWidth,i={transform:"translate(".concat(e.containerWidth/2," 256)")},o="translate(".concat(32*n.x,", ").concat(32*n.y,") "),s="scale(".concat(n.size/16*(n.flipX?-1:1),", ").concat(n.size/16*(n.flipY?-1:1),") "),a="rotate(".concat(n.rotate," 0 0)"),l={outer:i,inner:{transform:"".concat(o," ").concat(s," ").concat(a)},path:{transform:"translate(".concat(r/2*-1," -256)")}};return{tag:"g",attributes:tw({},l.outer),children:[{tag:"g",attributes:tw({},l.inner),children:[{tag:t.icon.tag,children:t.icon.children,attributes:tw(tw({},t.icon.attributes),l.path)}]}]}}}},{hooks:function(){return{parseNodeAttributes:function(e,t){var n=t.getAttribute("data-fa-mask"),r=n?Iv(n.split(" ").map(function(e){return e.trim()})):{prefix:null,iconName:null,rest:[]};return r.prefix||(r.prefix=Uv()),e.mask=r,e.maskId=t.getAttribute("data-fa-mask-id"),e}}},provides:function(e){e.generateAbstractMask=function(e){var t,n=e.children,r=e.attributes,i=e.main,o=e.mask,s=e.maskId,a=i.icon,l=o.icon,c=function(e){var t=e.transform,n=e.iconWidth,r={transform:"translate(".concat(e.containerWidth/2," 256)")},i="translate(".concat(32*t.x,", ").concat(32*t.y,") "),o="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "),s="rotate(".concat(t.rotate," 0 0)");return{outer:r,inner:{transform:"".concat(i," ").concat(o," ").concat(s)},path:{transform:"translate(".concat(n/2*-1," -256)")}}}({transform:e.transform,containerWidth:o.width,iconWidth:i.width}),A={tag:"rect",attributes:tw(tw({},Nb),{},{fill:"white"})},u=a.children?{children:a.children.map(Kb)}:{},h={tag:"g",attributes:tw({},c.inner),children:[Kb(tw({tag:a.tag,attributes:tw(tw({},a.attributes),c.path)},u))]},d={tag:"g",attributes:tw({},c.outer),children:[h]},p="mask-".concat(s||Jw()),f="clip-".concat(s||Jw()),g={tag:"mask",attributes:tw(tw({},Nb),{},{id:p,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[A,d]},m={tag:"defs",children:[{tag:"clipPath",attributes:{id:f},children:(t=l,"g"===t.tag?t.children:[t])},g]};return n.push(m,{tag:"rect",attributes:tw({fill:"currentColor","clip-path":"url(#".concat(f,")"),mask:"url(#".concat(p,")")},Nb)}),{children:n,attributes:r}}}},{provides:function(e){var t=!1;fw.matchMedia&&(t=fw.matchMedia("(prefers-reduced-motion: reduce)").matches),e.missingIconAbstract=function(){var e=[],n={fill:"currentColor"},r={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};e.push({tag:"path",attributes:tw(tw({},n),{},{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})});var i=tw(tw({},r),{},{attributeName:"opacity"}),o={tag:"circle",attributes:tw(tw({},n),{},{cx:"256",cy:"364",r:"28"}),children:[]};return t||o.children.push({tag:"animate",attributes:tw(tw({},r),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:tw(tw({},i),{},{values:"1;0;1;1;0;1;"})}),e.push(o),e.push({tag:"path",attributes:tw(tw({},n),{},{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),children:t?[]:[{tag:"animate",attributes:tw(tw({},i),{},{values:"1;0;0;0;0;1;"})}]}),t||e.push({tag:"path",attributes:tw(tw({},n),{},{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),children:[{tag:"animate",attributes:tw(tw({},i),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:e}}}},{hooks:function(){return{parseNodeAttributes:function(e,t){var n=t.getAttribute("data-fa-symbol");return e.symbol=null!==n&&(""===n||n),e}}}}],Mv={},Object.keys(Hv).forEach(function(e){-1===Rv.indexOf(e)&&delete Hv[e]}),Dv.forEach(function(e){var t=e.mixout?e.mixout():{};if(Object.keys(t).forEach(function(e){"function"==typeof t[e]&&(Hb[e]=t[e]),"object"===nw(t[e])&&Object.keys(t[e]).forEach(function(n){Hb[e]||(Hb[e]={}),Hb[e][n]=t[e][n]})}),e.hooks){var n=e.hooks();Object.keys(n).forEach(function(e){Mv[e]||(Mv[e]=[]),Mv[e].push(n[e])})}e.provides&&e.provides(Hv)});var Vb=qv.parse,Gb=qv.findIconDefinition,jb=qv.icon;const qb=["*"];let zb=(()=>{class e{constructor(){this.defaultPrefix="fas",this.fallbackIcon=null,this.globalLibrary=!1}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=de({factory:function(){return new e},token:e,providedIn:"root"}),e})(),Wb=(()=>{class e{constructor(){this.definitions={}}addIcons(...e){for(const t of e)t.prefix in this.definitions||(this.definitions[t.prefix]={}),this.definitions[t.prefix][t.iconName]=t}addIconPacks(...e){for(const t of e){const e=Object.keys(t).map(e=>t[e]);this.addIcons(...e)}}getIconDefinition(e,t){return e in this.definitions&&t in this.definitions[e]?this.definitions[e][t]:null}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=de({factory:function(){return new e},token:e,providedIn:"root"}),e})();const Xb=e=>{const t={"fa-spin":e.spin,"fa-pulse":e.pulse,"fa-fw":e.fixedWidth,"fa-border":e.border,"fa-inverse":e.inverse,"fa-layers-counter":e.counter,"fa-flip-horizontal":"horizontal"===e.flip||"both"===e.flip,"fa-flip-vertical":"vertical"===e.flip||"both"===e.flip,[`fa-${e.size}`]:null!==e.size,[`fa-rotate-${e.rotate}`]:null!==e.rotate,[`fa-pull-${e.pull}`]:null!==e.pull,[`fa-stack-${e.stackItemSize}`]:null!=e.stackItemSize};return Object.keys(t).map(e=>t[e]?e:null).filter(e=>e)};let Jb=(()=>{class e{constructor(){this.stackItemSize="1x"}ngOnChanges(e){if("size"in e)throw new Error('fa-icon is not allowed to customize size when used inside fa-stack. Set size on the enclosing fa-stack instead: <fa-stack size="4x">...</fa-stack>.')}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Je({type:e,selectors:[["fa-icon","stackItemSize",""],["fa-duotone-icon","stackItemSize",""]],inputs:{stackItemSize:"stackItemSize",size:"size"},features:[At]}),e})(),$b=(()=>{class e{constructor(e,t){this.renderer=e,this.elementRef=t}ngOnInit(){this.renderer.addClass(this.elementRef.nativeElement,"fa-stack")}ngOnChanges(e){"size"in e&&(null!=e.size.currentValue&&this.renderer.addClass(this.elementRef.nativeElement,`fa-${e.size.currentValue}`),null!=e.size.previousValue&&this.renderer.removeClass(this.elementRef.nativeElement,`fa-${e.size.previousValue}`))}}return e.\u0275fac=function(t){return new(t||e)(Zs(Xl),Zs(ql))},e.\u0275cmp=Ge({type:e,selectors:[["fa-stack"]],inputs:{size:"size"},features:[At],ngContentSelectors:qb,decls:1,vars:0,template:function(e,t){1&e&&(fa(),ga(0))},encapsulation:2}),e})(),Yb=(()=>{class e{constructor(e,t,n,r,i){this.sanitizer=e,this.config=t,this.iconLibrary=n,this.stackItem=r,this.classes=[],null!=i&&null==r&&console.error('FontAwesome: fa-icon and fa-duotone-icon elements must specify stackItemSize attribute when wrapped into fa-stack. Example: <fa-icon stackItemSize="2x"></fa-icon>.')}ngOnChanges(e){if(null==this.icon&&null==this.config.fallbackIcon)return(()=>{throw new Error("Property `icon` is required for `fa-icon`/`fa-duotone-icon` components.")})();let t=null;if(t=null==this.icon?this.config.fallbackIcon:this.icon,e){const e=this.findIconDefinition(t);if(null!=e){const t=this.buildParams();this.renderIcon(e,t)}}}render(){this.ngOnChanges({})}findIconDefinition(e){const t=((e,t)=>{return void 0!==(n=e).prefix&&void 0!==n.iconName?e:Array.isArray(e)&&2===e.length?{prefix:e[0],iconName:e[1]}:"string"==typeof e?{prefix:t,iconName:e}:void 0;var n})(e,this.config.defaultPrefix);if("icon"in t)return t;const n=this.iconLibrary.getIconDefinition(t.prefix,t.iconName);if(null!=n)return n;const r=Gb(t);if(null!=r){const e="Global icon library is deprecated. Consult https://github.com/FortAwesome/angular-fontawesome/blob/master/UPGRADING.md for the migration instructions.";if("unset"===this.config.globalLibrary)console.error("FontAwesome: "+e);else if(!this.config.globalLibrary)throw new Error(e);return r}return(e=>{throw new Error(`Could not find icon with iconName=${e.iconName} and prefix=${e.prefix} in the icon library.`)})(t),null}buildParams(){const e={flip:this.flip,spin:this.spin,pulse:this.pulse,border:this.border,inverse:this.inverse,size:this.size||null,pull:this.pull||null,rotate:this.rotate||null,fixedWidth:"boolean"==typeof this.fixedWidth?this.fixedWidth:this.config.fixedWidth,stackItemSize:null!=this.stackItem?this.stackItem.stackItemSize:null},t="string"==typeof this.transform?Vb.transform(this.transform):this.transform;return{title:this.title,transform:t,classes:[...Xb(e),...this.classes],mask:null!=this.mask?this.findIconDefinition(this.mask):null,styles:null!=this.styles?this.styles:{},symbol:this.symbol,attributes:{role:this.a11yRole}}}renderIcon(e,t){const n=jb(e,t);this.renderedIconHTML=this.sanitizer.bypassSecurityTrustHtml(n.html.join("\n"))}}return e.\u0275fac=function(t){return new(t||e)(Zs($h),Zs(zb),Zs(Wb),Zs(Jb,8),Zs($b,8))},e.\u0275cmp=Ge({type:e,selectors:[["fa-icon"]],hostAttrs:[1,"ng-fa-icon"],hostVars:2,hostBindings:function(e,t){2&e&&(Ga("innerHTML",t.renderedIconHTML,ui),zs("title",t.title))},inputs:{classes:"classes",icon:"icon",title:"title",spin:"spin",pulse:"pulse",mask:"mask",styles:"styles",flip:"flip",size:"size",pull:"pull",border:"border",inverse:"inverse",symbol:"symbol",rotate:"rotate",fixedWidth:"fixedWidth",transform:"transform",a11yRole:"a11yRole"},features:[At],decls:0,vars:0,template:function(e,t){},encapsulation:2}),e})(),Zb=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=We({type:e}),e.\u0275inj=pe({}),e})(),eC=(()=>{class e{constructor(e,t){this.httpService=e,this.baseUrl=t,this.subscriptionList=[],this.overlayLayerSelected=new Map,this.poiLayerSelected=new Map}onDestroy(e){this.poiLayerSelected.set(e,[]),this.overlayLayerSelected.set(e,[]),this.subscriptionList.forEach(e=>{e.unsubscribe()})}getOverlayLayers(){return new Promise((e,t)=>{this.subscriptionList.push(this.httpService.get(this.baseUrl+"OverlayLayer/GetOverlayLayers").subscribe(t=>{e(t)},e=>{t(e)}))})}}return e.\u0275fac=function(t){return new(t||e)(mr(Py),mr("BASE_URL"))},e.\u0275prov=de({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function tC(e,t,n,r,i,o,s){try{var a=e[o](s),l=a.value}catch(c){return void n(c)}a.done?t(l):Promise.resolve(l).then(r,i)}function nC(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var o=e.apply(t,n);function s(e){tC(o,r,i,s,a,"next",e)}function a(e){tC(o,r,i,s,a,"throw",e)}s(void 0)})}}var rC="1.13.1",iC="object"==typeof self&&self.self===self&&self||"object"==typeof global&&global.global===global&&global||Function("return this")()||{},oC=Array.prototype,sC=Object.prototype,aC="undefined"!=typeof Symbol?Symbol.prototype:null,lC=oC.push,cC=oC.slice,AC=sC.toString,uC=sC.hasOwnProperty,hC="undefined"!=typeof ArrayBuffer,dC="undefined"!=typeof DataView,pC=Array.isArray,fC=Object.keys,gC=Object.create,mC=hC&&ArrayBuffer.isView,yC=isNaN,wC=isFinite,vC=!{toString:null}.propertyIsEnumerable("toString"),bC=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],CC=Math.pow(2,53)-1;function BC(e,t){return t=null==t?e.length-1:+t,function(){for(var n=Math.max(arguments.length-t,0),r=Array(n),i=0;i<n;i++)r[i]=arguments[i+t];switch(t){case 0:return e.call(this,r);case 1:return e.call(this,arguments[0],r);case 2:return e.call(this,arguments[0],arguments[1],r)}var o=Array(t+1);for(i=0;i<t;i++)o[i]=arguments[i];return o[t]=r,e.apply(this,o)}}function _C(e){var t=typeof e;return"function"===t||"object"===t&&!!e}function EC(e){return null===e}function FC(e){return void 0===e}function TC(e){return!0===e||!1===e||"[object Boolean]"===AC.call(e)}function SC(e){return!(!e||1!==e.nodeType)}function xC(e){var t="[object "+e+"]";return function(e){return AC.call(e)===t}}const QC=xC("String"),kC=xC("Number"),UC=xC("Date"),OC=xC("RegExp"),IC=xC("Error"),LC=xC("Symbol"),DC=xC("ArrayBuffer");var MC=xC("Function");"object"!=typeof Int8Array&&"function"!=typeof(iC.document&&iC.document.childNodes)&&(MC=function(e){return"function"==typeof e||!1});const HC=MC,RC=xC("Object");var PC=dC&&RC(new DataView(new ArrayBuffer(8))),NC="undefined"!=typeof Map&&RC(new Map),KC=xC("DataView");const VC=PC?function(e){return null!=e&&HC(e.getInt8)&&DC(e.buffer)}:KC,GC=pC||xC("Array");function jC(e,t){return null!=e&&uC.call(e,t)}var qC=xC("Arguments");!function(){qC(arguments)||(qC=function(e){return jC(e,"callee")})}();const zC=qC;function WC(e){return!LC(e)&&wC(e)&&!isNaN(parseFloat(e))}function XC(e){return kC(e)&&yC(e)}function JC(e){return function(){return e}}function $C(e){return function(t){var n=e(t);return"number"==typeof n&&n>=0&&n<=CC}}function YC(e){return function(t){return null==t?void 0:t[e]}}const ZC=YC("byteLength"),eB=$C(ZC);var tB=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/;const nB=hC?function(e){return mC?mC(e)&&!VC(e):eB(e)&&tB.test(AC.call(e))}:JC(!1),rB=YC("length");function iB(e,t){t=function(e){for(var t={},n=e.length,r=0;r<n;++r)t[e[r]]=!0;return{contains:function(e){return t[e]},push:function(n){return t[n]=!0,e.push(n)}}}(t);var n=bC.length,r=e.constructor,i=HC(r)&&r.prototype||sC,o="constructor";for(jC(e,o)&&!t.contains(o)&&t.push(o);n--;)(o=bC[n])in e&&e[o]!==i[o]&&!t.contains(o)&&t.push(o)}function oB(e){if(!_C(e))return[];if(fC)return fC(e);var t=[];for(var n in e)jC(e,n)&&t.push(n);return vC&&iB(e,t),t}function sB(e){if(null==e)return!0;var t=rB(e);return"number"==typeof t&&(GC(e)||QC(e)||zC(e))?0===t:0===rB(oB(e))}function aB(e,t){var n=oB(t),r=n.length;if(null==e)return!r;for(var i=Object(e),o=0;o<r;o++){var s=n[o];if(t[s]!==i[s]||!(s in i))return!1}return!0}function lB(e){return e instanceof lB?e:this instanceof lB?void(this._wrapped=e):new lB(e)}function cB(e){return new Uint8Array(e.buffer||e,e.byteOffset||0,ZC(e))}lB.VERSION=rC,lB.prototype.valueOf=lB.prototype.toJSON=lB.prototype.value=function(){return this._wrapped},lB.prototype.toString=function(){return String(this._wrapped)};var AB="[object DataView]";function uB(e,t,n,r){if(e===t)return 0!==e||1/e==1/t;if(null==e||null==t)return!1;if(e!=e)return t!=t;var i=typeof e;return("function"===i||"object"===i||"object"==typeof t)&&hB(e,t,n,r)}function hB(e,t,n,r){e instanceof lB&&(e=e._wrapped),t instanceof lB&&(t=t._wrapped);var i=AC.call(e);if(i!==AC.call(t))return!1;if(PC&&"[object Object]"==i&&VC(e)){if(!VC(t))return!1;i=AB}switch(i){case"[object RegExp]":case"[object String]":return""+e==""+t;case"[object Number]":return+e!=+e?+t!=+t:0==+e?1/+e==1/t:+e==+t;case"[object Date]":case"[object Boolean]":return+e==+t;case"[object Symbol]":return aC.valueOf.call(e)===aC.valueOf.call(t);case"[object ArrayBuffer]":case AB:return hB(cB(e),cB(t),n,r)}var o="[object Array]"===i;if(!o&&nB(e)){if(ZC(e)!==ZC(t))return!1;if(e.buffer===t.buffer&&e.byteOffset===t.byteOffset)return!0;o=!0}if(!o){if("object"!=typeof e||"object"!=typeof t)return!1;var s=e.constructor,a=t.constructor;if(s!==a&&!(HC(s)&&s instanceof s&&HC(a)&&a instanceof a)&&"constructor"in e&&"constructor"in t)return!1}r=r||[];for(var l=(n=n||[]).length;l--;)if(n[l]===e)return r[l]===t;if(n.push(e),r.push(t),o){if((l=e.length)!==t.length)return!1;for(;l--;)if(!uB(e[l],t[l],n,r))return!1}else{var c,A=oB(e);if(l=A.length,oB(t).length!==l)return!1;for(;l--;)if(!jC(t,c=A[l])||!uB(e[c],t[c],n,r))return!1}return n.pop(),r.pop(),!0}function dB(e,t){return uB(e,t)}function pB(e){if(!_C(e))return[];var t=[];for(var n in e)t.push(n);return vC&&iB(e,t),t}function fB(e){var t=rB(e);return function(n){if(null==n)return!1;var r=pB(n);if(rB(r))return!1;for(var i=0;i<t;i++)if(!HC(n[e[i]]))return!1;return e!==vB||!HC(n[gB])}}var gB="forEach",mB=["clear","delete"],yB=["get","has","set"],wB=mB.concat(gB,yB),vB=mB.concat(yB),bB=["add"].concat(mB,gB,"has");const CB=NC?fB(wB):xC("Map"),BB=NC?fB(vB):xC("WeakMap"),_B=NC?fB(bB):xC("Set"),EB=xC("WeakSet");function FB(e){for(var t=oB(e),n=t.length,r=Array(n),i=0;i<n;i++)r[i]=e[t[i]];return r}function TB(e){for(var t=oB(e),n=t.length,r=Array(n),i=0;i<n;i++)r[i]=[t[i],e[t[i]]];return r}function SB(e){for(var t={},n=oB(e),r=0,i=n.length;r<i;r++)t[e[n[r]]]=n[r];return t}function xB(e){var t=[];for(var n in e)HC(e[n])&&t.push(n);return t.sort()}function QB(e,t){return function(n){var r=arguments.length;if(t&&(n=Object(n)),r<2||null==n)return n;for(var i=1;i<r;i++)for(var o=arguments[i],s=e(o),a=s.length,l=0;l<a;l++){var c=s[l];t&&void 0!==n[c]||(n[c]=o[c])}return n}}const kB=QB(pB),UB=QB(oB),OB=QB(pB,!0);function IB(e){if(!_C(e))return{};if(gC)return gC(e);var t=function(){};t.prototype=e;var n=new t;return t.prototype=null,n}function LB(e,t){var n=IB(e);return t&&UB(n,t),n}function DB(e){return _C(e)?GC(e)?e.slice():kB({},e):e}function MB(e,t){return t(e),e}function HB(e){return GC(e)?e:[e]}function RB(e){return lB.toPath(e)}function PB(e,t){for(var n=t.length,r=0;r<n;r++){if(null==e)return;e=e[t[r]]}return n?e:void 0}function NB(e,t,n){var r=PB(e,RB(t));return FC(r)?n:r}function KB(e,t){for(var n=(t=RB(t)).length,r=0;r<n;r++){var i=t[r];if(!jC(e,i))return!1;e=e[i]}return!!n}function VB(e){return e}function GB(e){return e=UB({},e),function(t){return aB(t,e)}}function jB(e){return e=RB(e),function(t){return PB(t,e)}}function qB(e,t,n){if(void 0===t)return e;switch(null==n?3:n){case 1:return function(n){return e.call(t,n)};case 3:return function(n,r,i){return e.call(t,n,r,i)};case 4:return function(n,r,i,o){return e.call(t,n,r,i,o)}}return function(){return e.apply(t,arguments)}}function zB(e,t,n){return null==e?VB:HC(e)?qB(e,t,n):_C(e)&&!GC(e)?GB(e):jB(e)}function WB(e,t){return zB(e,t,1/0)}function XB(e,t,n){return lB.iteratee!==WB?lB.iteratee(e,t):zB(e,t,n)}function JB(e,t,n){t=XB(t,n);for(var r=oB(e),i=r.length,o={},s=0;s<i;s++){var a=r[s];o[a]=t(e[a],a,e)}return o}function $B(){}function YB(e){return null==e?$B:function(t){return NB(e,t)}}function ZB(e,t,n){var r=Array(Math.max(0,e));t=qB(t,n,1);for(var i=0;i<e;i++)r[i]=t(i);return r}function e_(e,t){return null==t&&(t=e,e=0),e+Math.floor(Math.random()*(t-e+1))}lB.toPath=HB,lB.iteratee=WB;const t_=Date.now||function(){return(new Date).getTime()};function n_(e){var t=function(t){return e[t]},n="(?:"+oB(e).join("|")+")",r=RegExp(n),i=RegExp(n,"g");return function(e){return r.test(e=null==e?"":""+e)?e.replace(i,t):e}}const r_={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},i_=n_(r_),o_=n_(SB(r_)),s_=lB.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var a_=/(.)^/,l_={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},c_=/\\|'|\r|\n|\u2028|\u2029/g;function A_(e){return"\\"+l_[e]}var u_=/^\s*(\w|\$)+\s*$/;function h_(e,t,n){!t&&n&&(t=n),t=OB({},t,lB.templateSettings);var r=RegExp([(t.escape||a_).source,(t.interpolate||a_).source,(t.evaluate||a_).source].join("|")+"|$","g"),i=0,o="__p+='";e.replace(r,function(t,n,r,s,a){return o+=e.slice(i,a).replace(c_,A_),i=a+t.length,n?o+="'+\n((__t=("+n+"))==null?'':_.escape(__t))+\n'":r?o+="'+\n((__t=("+r+"))==null?'':__t)+\n'":s&&(o+="';\n"+s+"\n__p+='"),t}),o+="';\n";var s,a=t.variable;if(a){if(!u_.test(a))throw new Error("variable is not a bare identifier: "+a)}else o="with(obj||{}){\n"+o+"}\n",a="obj";o="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+o+"return __p;\n";try{s=new Function(a,"_",o)}catch(WI){throw WI.source=o,WI}var l=function(e){return s.call(this,e,lB)};return l.source="function("+a+"){\n"+o+"}",l}function d_(e,t,n){var r=(t=RB(t)).length;if(!r)return HC(n)?n.call(e):n;for(var i=0;i<r;i++){var o=null==e?void 0:e[t[i]];void 0===o&&(o=n,i=r),e=HC(o)?o.call(e):o}return e}var p_=0;function f_(e){var t=++p_+"";return e?e+t:t}function g_(e){var t=lB(e);return t._chain=!0,t}function m_(e,t,n,r,i){if(!(r instanceof t))return e.apply(n,i);var o=IB(e.prototype),s=e.apply(o,i);return _C(s)?s:o}var y_=BC(function(e,t){var n=y_.placeholder,r=function(){for(var i=0,o=t.length,s=Array(o),a=0;a<o;a++)s[a]=t[a]===n?arguments[i++]:t[a];for(;i<arguments.length;)s.push(arguments[i++]);return m_(e,r,this,this,s)};return r});y_.placeholder=lB;const w_=y_,v_=BC(function(e,t,n){if(!HC(e))throw new TypeError("Bind must be called on a function");var r=BC(function(i){return m_(e,r,t,this,n.concat(i))});return r}),b_=$C(rB);function C_(e,t,n,r){if(r=r||[],t||0===t){if(t<=0)return r.concat(e)}else t=1/0;for(var i=r.length,o=0,s=rB(e);o<s;o++){var a=e[o];if(b_(a)&&(GC(a)||zC(a)))if(t>1)C_(a,t-1,n,r),i=r.length;else for(var l=0,c=a.length;l<c;)r[i++]=a[l++];else n||(r[i++]=a)}return r}const B_=BC(function(e,t){var n=(t=C_(t,!1,!1)).length;if(n<1)throw new Error("bindAll must be passed function names");for(;n--;){var r=t[n];e[r]=v_(e[r],e)}return e});function __(e,t){var n=function(r){var i=n.cache,o=""+(t?t.apply(this,arguments):r);return jC(i,o)||(i[o]=e.apply(this,arguments)),i[o]};return n.cache={},n}const E_=BC(function(e,t,n){return setTimeout(function(){return e.apply(null,n)},t)}),F_=w_(E_,lB,1);function T_(e,t,n){var r,i,o,s,a=0;n||(n={});var l=function(){a=!1===n.leading?0:t_(),r=null,s=e.apply(i,o),r||(i=o=null)},c=function(){var c=t_();a||!1!==n.leading||(a=c);var A=t-(c-a);return i=this,o=arguments,A<=0||A>t?(r&&(clearTimeout(r),r=null),a=c,s=e.apply(i,o),r||(i=o=null)):r||!1===n.trailing||(r=setTimeout(l,A)),s};return c.cancel=function(){clearTimeout(r),a=0,r=i=o=null},c}function S_(e,t,n){var r,i,o,s,a,l=function(){var c=t_()-i;t>c?r=setTimeout(l,t-c):(r=null,n||(s=e.apply(a,o)),r||(o=a=null))},c=BC(function(c){return a=this,o=c,i=t_(),r||(r=setTimeout(l,t),n&&(s=e.apply(a,o))),s});return c.cancel=function(){clearTimeout(r),r=o=a=null},c}function x_(e,t){return w_(t,e)}function Q_(e){return function(){return!e.apply(this,arguments)}}function k_(){var e=arguments,t=e.length-1;return function(){for(var n=t,r=e[t].apply(this,arguments);n--;)r=e[n].call(this,r);return r}}function U_(e,t){return function(){if(--e<1)return t.apply(this,arguments)}}function O_(e,t){var n;return function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=null),n}}const I_=w_(O_,2);function L_(e,t,n){t=XB(t,n);for(var r,i=oB(e),o=0,s=i.length;o<s;o++)if(t(e[r=i[o]],r,e))return r}function D_(e){return function(t,n,r){n=XB(n,r);for(var i=rB(t),o=e>0?0:i-1;o>=0&&o<i;o+=e)if(n(t[o],o,t))return o;return-1}}const M_=D_(1),H_=D_(-1);function R_(e,t,n,r){for(var i=(n=XB(n,r,1))(t),o=0,s=rB(e);o<s;){var a=Math.floor((o+s)/2);n(e[a])<i?o=a+1:s=a}return o}function P_(e,t,n){return function(r,i,o){var s=0,a=rB(r);if("number"==typeof o)e>0?s=o>=0?o:Math.max(o+a,s):a=o>=0?Math.min(o+1,a):o+a+1;else if(n&&o&&a)return r[o=n(r,i)]===i?o:-1;if(i!=i)return(o=t(cC.call(r,s,a),XC))>=0?o+s:-1;for(o=e>0?s:a-1;o>=0&&o<a;o+=e)if(r[o]===i)return o;return-1}}const N_=P_(1,M_,R_),K_=P_(-1,H_);function V_(e,t,n){var r=(b_(e)?M_:L_)(e,t,n);if(void 0!==r&&-1!==r)return e[r]}function G_(e,t){return V_(e,GB(t))}function j_(e,t,n){var r,i;if(t=qB(t,n),b_(e))for(r=0,i=e.length;r<i;r++)t(e[r],r,e);else{var o=oB(e);for(r=0,i=o.length;r<i;r++)t(e[o[r]],o[r],e)}return e}function q_(e,t,n){t=XB(t,n);for(var r=!b_(e)&&oB(e),i=(r||e).length,o=Array(i),s=0;s<i;s++){var a=r?r[s]:s;o[s]=t(e[a],a,e)}return o}function z_(e){var t=function(t,n,r,i){var o=!b_(t)&&oB(t),s=(o||t).length,a=e>0?0:s-1;for(i||(r=t[o?o[a]:a],a+=e);a>=0&&a<s;a+=e){var l=o?o[a]:a;r=n(r,t[l],l,t)}return r};return function(e,n,r,i){var o=arguments.length>=3;return t(e,qB(n,i,4),r,o)}}const W_=z_(1),X_=z_(-1);function J_(e,t,n){var r=[];return t=XB(t,n),j_(e,function(e,n,i){t(e,n,i)&&r.push(e)}),r}function $_(e,t,n){return J_(e,Q_(XB(t)),n)}function Y_(e,t,n){t=XB(t,n);for(var r=!b_(e)&&oB(e),i=(r||e).length,o=0;o<i;o++){var s=r?r[o]:o;if(!t(e[s],s,e))return!1}return!0}function Z_(e,t,n){t=XB(t,n);for(var r=!b_(e)&&oB(e),i=(r||e).length,o=0;o<i;o++){var s=r?r[o]:o;if(t(e[s],s,e))return!0}return!1}function eE(e,t,n,r){return b_(e)||(e=FB(e)),("number"!=typeof n||r)&&(n=0),N_(e,t,n)>=0}const tE=BC(function(e,t,n){var r,i;return HC(t)?i=t:(t=RB(t),r=t.slice(0,-1),t=t[t.length-1]),q_(e,function(e){var o=i;if(!o){if(r&&r.length&&(e=PB(e,r)),null==e)return;o=e[t]}return null==o?o:o.apply(e,n)})});function nE(e,t){return q_(e,jB(t))}function rE(e,t){return J_(e,GB(t))}function iE(e,t,n){var r,i,o=-1/0,s=-1/0;if(null==t||"number"==typeof t&&"object"!=typeof e[0]&&null!=e)for(var a=0,l=(e=b_(e)?e:FB(e)).length;a<l;a++)null!=(r=e[a])&&r>o&&(o=r);else t=XB(t,n),j_(e,function(e,n,r){((i=t(e,n,r))>s||i===-1/0&&o===-1/0)&&(o=e,s=i)});return o}function oE(e,t,n){var r,i,o=1/0,s=1/0;if(null==t||"number"==typeof t&&"object"!=typeof e[0]&&null!=e)for(var a=0,l=(e=b_(e)?e:FB(e)).length;a<l;a++)null!=(r=e[a])&&r<o&&(o=r);else t=XB(t,n),j_(e,function(e,n,r){((i=t(e,n,r))<s||i===1/0&&o===1/0)&&(o=e,s=i)});return o}function sE(e,t,n){if(null==t||n)return b_(e)||(e=FB(e)),e[e_(e.length-1)];var r=b_(e)?DB(e):FB(e),i=rB(r);t=Math.max(Math.min(t,i),0);for(var o=i-1,s=0;s<t;s++){var a=e_(s,o),l=r[s];r[s]=r[a],r[a]=l}return r.slice(0,t)}function aE(e){return sE(e,1/0)}function lE(e,t,n){var r=0;return t=XB(t,n),nE(q_(e,function(e,n,i){return{value:e,index:r++,criteria:t(e,n,i)}}).sort(function(e,t){var n=e.criteria,r=t.criteria;if(n!==r){if(n>r||void 0===n)return 1;if(n<r||void 0===r)return-1}return e.index-t.index}),"value")}function cE(e,t){return function(n,r,i){var o=t?[[],[]]:{};return r=XB(r,i),j_(n,function(t,i){var s=r(t,i,n);e(o,t,s)}),o}}const AE=cE(function(e,t,n){jC(e,n)?e[n].push(t):e[n]=[t]}),uE=cE(function(e,t,n){e[n]=t}),hE=cE(function(e,t,n){jC(e,n)?e[n]++:e[n]=1}),dE=cE(function(e,t,n){e[n?0:1].push(t)},!0);var pE=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;function fE(e){return e?GC(e)?cC.call(e):QC(e)?e.match(pE):b_(e)?q_(e,VB):FB(e):[]}function gE(e){return null==e?0:b_(e)?e.length:oB(e).length}function mE(e,t,n){return t in n}const yE=BC(function(e,t){var n={},r=t[0];if(null==e)return n;HC(r)?(t.length>1&&(r=qB(r,t[1])),t=pB(e)):(r=mE,t=C_(t,!1,!1),e=Object(e));for(var i=0,o=t.length;i<o;i++){var s=t[i],a=e[s];r(a,s,e)&&(n[s]=a)}return n}),wE=BC(function(e,t){var n,r=t[0];return HC(r)?(r=Q_(r),t.length>1&&(n=t[1])):(t=q_(C_(t,!1,!1),String),r=function(e,n){return!eE(t,n)}),yE(e,r,n)});function vE(e,t,n){return cC.call(e,0,Math.max(0,e.length-(null==t||n?1:t)))}function bE(e,t,n){return null==e||e.length<1?null==t||n?void 0:[]:null==t||n?e[0]:vE(e,e.length-t)}function CE(e,t,n){return cC.call(e,null==t||n?1:t)}function BE(e,t,n){return null==e||e.length<1?null==t||n?void 0:[]:null==t||n?e[e.length-1]:CE(e,Math.max(0,e.length-t))}function _E(e){return J_(e,Boolean)}function EE(e,t){return C_(e,t,!1)}const FE=BC(function(e,t){return t=C_(t,!0,!0),J_(e,function(e){return!eE(t,e)})}),TE=BC(function(e,t){return FE(e,t)});function SE(e,t,n,r){TC(t)||(r=n,n=t,t=!1),null!=n&&(n=XB(n,r));for(var i=[],o=[],s=0,a=rB(e);s<a;s++){var l=e[s],c=n?n(l,s,e):l;t&&!n?(s&&o===c||i.push(l),o=c):n?eE(o,c)||(o.push(c),i.push(l)):eE(i,l)||i.push(l)}return i}const xE=BC(function(e){return SE(C_(e,!0,!0))});function QE(e){for(var t=[],n=arguments.length,r=0,i=rB(e);r<i;r++){var o=e[r];if(!eE(t,o)){var s;for(s=1;s<n&&eE(arguments[s],o);s++);s===n&&t.push(o)}}return t}function kE(e){for(var t=e&&iE(e,rB).length||0,n=Array(t),r=0;r<t;r++)n[r]=nE(e,r);return n}const UE=BC(kE);function OE(e,t){for(var n={},r=0,i=rB(e);r<i;r++)t?n[e[r]]=t[r]:n[e[r][0]]=e[r][1];return n}function IE(e,t,n){null==t&&(t=e||0,e=0),n||(n=t<e?-1:1);for(var r=Math.max(Math.ceil((t-e)/n),0),i=Array(r),o=0;o<r;o++,e+=n)i[o]=e;return i}function LE(e,t){if(null==t||t<1)return[];for(var n=[],r=0,i=e.length;r<i;)n.push(cC.call(e,r,r+=t));return n}function DE(e,t){return e._chain?lB(t).chain():t}function ME(e){return j_(xB(e),function(t){var n=lB[t]=e[t];lB.prototype[t]=function(){var e=[this._wrapped];return lC.apply(e,arguments),DE(this,n.apply(lB,e))}}),lB}j_(["pop","push","reverse","shift","sort","splice","unshift"],function(e){var t=oC[e];lB.prototype[e]=function(){var n=this._wrapped;return null!=n&&(t.apply(n,arguments),"shift"!==e&&"splice"!==e||0!==n.length||delete n[0]),DE(this,n)}}),j_(["concat","join","slice"],function(e){var t=oC[e];lB.prototype[e]=function(){var e=this._wrapped;return null!=e&&(e=t.apply(e,arguments)),DE(this,e)}});const HE=lB;var RE=ME(r);RE._=RE;var PE=n(901);let NE=(()=>{class e{constructor(){}turnStringArrayIntoMaxLengthCommaSeparatedStringArray(e,t){let n=null!=t?t:1e3;const r=[];let i="",o="";return j_(e,(t,s)=>{o=" '"+t+"'",(s+1)%n==0||(s+1)%e.length==0?(i+=o,r.push(i),i=""):i+=o+","}),r}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=de({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),KE=(()=>{class e{constructor(e){this.featureLayerGraphicsCache=[],this.textFormattingService=e}clearFeatureLayerGraphicCache(){this.featureLayerGraphicsCache=[]}getFeatureLayerGraphicsAsync(e,t,n){var r=this;return nC(function*(){const[e]=yield(0,PE.loadModules)(["esri/layers/GraphicsLayer"]);let i=r.textFormattingService.turnStringArrayIntoMaxLengthCommaSeparatedStringArray(n);t.arcGisPassThrough=0,t.layer=new e;const[o,s]=yield(0,PE.loadModules)(["esri/layers/FeatureLayer","esri/rest/support/Query"]);return new Promise(e=>{j_(i,n=>{let r=t.arcgisEndpointURL,a=new s,l=[];l.push(t.matchingAttributeName),l.push(t.matchingAttributeKey),a.outFields=l;let c=new o({url:r,outFields:l});a.where=t.matchingAttributeKey+" in  ("+n+")",a.outSpatialReference={wkid:102100},a.returnGeometry=!0,a.orderByFields=[t.matchingAttributeKey+" ASC"],c.queryFeatures(a).then(n=>{t.arcGisPassThrough++,j_(n.features,e=>{t.layer.add(e)}),(null==t?void 0:t.arcGisPassThrough)===i.length&&e(t)}).catch(t=>{console.error("Feature layer query failed:",{url:r,error:t,query:a.where}),e(null)})})})})()}}return e.\u0275fac=function(t){return new(t||e)(mr(NE))},e.\u0275prov=de({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const VE=(()=>{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 GE(e){return new w(t=>{let n;try{n=e()}catch(r){return void t.error(r)}return(n?D(n):lp()).subscribe(t)})}function jE(e,t){let n=!1;return arguments.length>=2&&(n=!0),function(r){return r.lift(new qE(e,t,n))}}class qE{constructor(e,t,n=!1){this.accumulator=e,this.seed=t,this.hasSeed=n}call(e,t){return t.subscribe(new zE(e,this.accumulator,this.seed,this.hasSeed))}}class zE extends f{constructor(e,t,n,r){super(e),this.accumulator=t,this._seed=n,this.hasSeed=r,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(r){this.destination.error(r)}this.seed=n,this.destination.next(n)}}function WE(e){return function(t){const n=new XE(e),r=t.lift(n);return n.caught=r}}class XE{constructor(e){this.selector=e}call(e,t){return t.subscribe(new JE(e,this.selector,this.caught))}}class JE extends H{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 r=new M(this);this.add(r);const i=R(n,r);i!==r&&this.add(i)}}}function $E(e){return function(t){return 0===e?lp():t.lift(new YE(e))}}class YE{constructor(e){if(this.total=e,this.total<0)throw new Gp}call(e,t){return t.subscribe(new ZE(e,this.total))}}class ZE extends f{constructor(e,t){super(e),this.total=t,this.ring=new Array,this.count=0}_next(e){const t=this.ring,n=this.total,r=this.count++;t.length<n?t.push(e):t[r%n]=e}_complete(){const e=this.destination;let t=this.count;if(t>0){const n=this.count>=this.total?this.total:this.count,r=this.ring;for(let i=0;i<n;i++){const i=t++%n;e.next(r[i])}}e.complete()}}function eF(e=rF){return t=>t.lift(new tF(e))}class tF{constructor(e){this.errorFactory=e}call(e,t){return t.subscribe(new nF(e,this.errorFactory))}}class nF extends f{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 e;try{e=this.errorFactory()}catch(WI){e=WI}this.destination.error(e)}}}function rF(){return new VE}function iF(e=null){return t=>t.lift(new oF(e))}class oF{constructor(e){this.defaultValue=e}call(e,t){return t.subscribe(new sF(e,this.defaultValue))}}class sF extends f{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 aF(e,t){const n=arguments.length>=2;return r=>r.pipe(e?Np((t,n)=>e(t,n,r)):y,jp(1),n?iF(t):eF(()=>new VE))}function lF(e){return t=>t.lift(new cF(e))}class cF{constructor(e){this.callback=e}call(e,t){return t.subscribe(new AF(e,this.callback))}}class AF extends f{constructor(e,t){super(e),this.add(new h(t))}}class uF{constructor(e,t){this.id=e,this.url=t}}class hF extends uF{constructor(e,t,n="imperative",r=null){super(e,t),this.navigationTrigger=n,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class dF extends uF{constructor(e,t,n){super(e,t),this.urlAfterRedirects=n}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class pF extends uF{constructor(e,t,n){super(e,t),this.reason=n}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class fF extends uF{constructor(e,t,n){super(e,t),this.error=n}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class gF extends uF{constructor(e,t,n,r){super(e,t),this.urlAfterRedirects=n,this.state=r}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class mF extends uF{constructor(e,t,n,r){super(e,t),this.urlAfterRedirects=n,this.state=r}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class yF extends uF{constructor(e,t,n,r,i){super(e,t),this.urlAfterRedirects=n,this.state=r,this.shouldActivate=i}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class wF extends uF{constructor(e,t,n,r){super(e,t),this.urlAfterRedirects=n,this.state=r}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class vF extends uF{constructor(e,t,n,r){super(e,t),this.urlAfterRedirects=n,this.state=r}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class bF{constructor(e){this.route=e}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class CF{constructor(e){this.route=e}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class BF{constructor(e){this.snapshot=e}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class _F{constructor(e){this.snapshot=e}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class EF{constructor(e){this.snapshot=e}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class FF{constructor(e){this.snapshot=e}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class TF{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}')`}}const SF="primary";class xF{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 QF(e){return new xF(e)}function kF(e){const t=Error("NavigationCancelingError: "+e);return t.ngNavigationCancelingError=!0,t}function UF(e,t,n){const r=n.path.split("/");if(r.length>e.length)return null;if("full"===n.pathMatch&&(t.hasChildren()||r.length<e.length))return null;const i={};for(let o=0;o<r.length;o++){const t=r[o],n=e[o];if(t.startsWith(":"))i[t.substring(1)]=n;else if(t!==n.path)return null}return{consumed:e.slice(0,r.length),posParams:i}}function OF(e,t){const n=e?Object.keys(e):void 0,r=t?Object.keys(t):void 0;if(!n||!r||n.length!=r.length)return!1;let i;for(let o=0;o<n.length;o++)if(i=n[o],!IF(e[i],t[i]))return!1;return!0}function IF(e,t){if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;const n=[...e].sort(),r=[...t].sort();return n.every((e,t)=>r[t]===e)}return e===t}function LF(e){return Array.prototype.concat.apply([],e)}function DF(e){return e.length>0?e[e.length-1]:null}function MF(e,t){for(const n in e)e.hasOwnProperty(n)&&t(e[n],n)}function HF(e){return ca(e)?e:la(e)?D(Promise.resolve(e)):cp(e)}const RF={exact:function e(t,n,r){if(!WF(t.segments,n.segments))return!1;if(!GF(t.segments,n.segments,r))return!1;if(t.numberOfChildren!==n.numberOfChildren)return!1;for(const i in n.children){if(!t.children[i])return!1;if(!e(t.children[i],n.children[i],r))return!1}return!0},subset:KF},PF={exact:function(e,t){return OF(e,t)},subset:function(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(n=>IF(e[n],t[n]))},ignored:()=>!0};function NF(e,t,n){return RF[n.paths](e.root,t.root,n.matrixParams)&&PF[n.queryParams](e.queryParams,t.queryParams)&&!("exact"===n.fragment&&e.fragment!==t.fragment)}function KF(e,t,n){return VF(e,t,t.segments,n)}function VF(e,t,n,r){if(e.segments.length>n.length){const i=e.segments.slice(0,n.length);return!!WF(i,n)&&!t.hasChildren()&&!!GF(i,n,r)}if(e.segments.length===n.length){if(!WF(e.segments,n))return!1;if(!GF(e.segments,n,r))return!1;for(const n in t.children){if(!e.children[n])return!1;if(!KF(e.children[n],t.children[n],r))return!1}return!0}{const i=n.slice(0,e.segments.length),o=n.slice(e.segments.length);return!!WF(e.segments,i)&&!!GF(e.segments,i,r)&&!!e.children.primary&&VF(e.children.primary,t,o,r)}}function GF(e,t,n){return t.every((t,r)=>PF[n](e[r].parameters,t.parameters))}class jF{constructor(e,t,n){this.root=e,this.queryParams=t,this.fragment=n}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=QF(this.queryParams)),this._queryParamMap}toString(){return $F.serialize(this)}}class qF{constructor(e,t){this.segments=e,this.children=t,this.parent=null,MF(t,(e,t)=>e.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return YF(this)}}class zF{constructor(e,t){this.path=e,this.parameters=t}get parameterMap(){return this._parameterMap||(this._parameterMap=QF(this.parameters)),this._parameterMap}toString(){return oT(this)}}function WF(e,t){return e.length===t.length&&e.every((e,n)=>e.path===t[n].path)}class XF{}class JF{parse(e){const t=new AT(e);return new jF(t.parseRootSegment(),t.parseQueryParams(),t.parseFragment())}serialize(e){var t;return`/${ZF(e.root,!0)}${function(e){const t=Object.keys(e).map(t=>{const n=e[t];return Array.isArray(n)?n.map(e=>`${tT(t)}=${tT(e)}`).join("&"):`${tT(t)}=${tT(n)}`}).filter(e=>!!e);return t.length?`?${t.join("&")}`:""}(e.queryParams)}${"string"==typeof e.fragment?`#${t=e.fragment,encodeURI(t)}`:""}`}}const $F=new JF;function YF(e){return e.segments.map(e=>oT(e)).join("/")}function ZF(e,t){if(!e.hasChildren())return YF(e);if(t){const t=e.children.primary?ZF(e.children.primary,!1):"",n=[];return MF(e.children,(e,t)=>{t!==SF&&n.push(`${t}:${ZF(e,!1)}`)}),n.length>0?`${t}(${n.join("//")})`:t}{const t=function(e,t){let n=[];return MF(e.children,(e,r)=>{r===SF&&(n=n.concat(t(e,r)))}),MF(e.children,(e,r)=>{r!==SF&&(n=n.concat(t(e,r)))}),n}(e,(t,n)=>n===SF?[ZF(e.children.primary,!1)]:[`${n}:${ZF(t,!1)}`]);return 1===Object.keys(e.children).length&&null!=e.children.primary?`${YF(e)}/${t[0]}`:`${YF(e)}/(${t.join("//")})`}}function eT(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function tT(e){return eT(e).replace(/%3B/gi,";")}function nT(e){return eT(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function rT(e){return decodeURIComponent(e)}function iT(e){return rT(e.replace(/\+/g,"%20"))}function oT(e){return`${nT(e.path)}${t=e.parameters,Object.keys(t).map(e=>`;${nT(e)}=${nT(t[e])}`).join("")}`;var t}const sT=/^[^\/()?;=#]+/;function aT(e){const t=e.match(sT);return t?t[0]:""}const lT=/^[^=?&#]+/,cT=/^[^?&#]+/;class AT{constructor(e){this.url=e,this.remaining=e}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new qF([],{}):new qF([],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 qF(e,t)),n}parseSegment(){const e=aT(this.remaining);if(""===e&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(e),new zF(rT(e),this.parseMatrixParams())}parseMatrixParams(){const e={};for(;this.consumeOptional(";");)this.parseParam(e);return e}parseParam(e){const t=aT(this.remaining);if(!t)return;this.capture(t);let n="";if(this.consumeOptional("=")){const e=aT(this.remaining);e&&(n=e,this.capture(n))}e[rT(t)]=rT(n)}parseQueryParam(e){const t=function(e){const t=e.match(lT);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(cT);return t?t[0]:""}(this.remaining);e&&(n=e,this.capture(n))}const r=iT(t),i=iT(n);if(e.hasOwnProperty(r)){let t=e[r];Array.isArray(t)||(t=[t],e[r]=t),t.push(i)}else e[r]=i}parseParens(e){const t={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const n=aT(this.remaining),r=this.remaining[n.length];if("/"!==r&&")"!==r&&";"!==r)throw new Error(`Cannot parse url '${this.url}'`);let i;n.indexOf(":")>-1?(i=n.substr(0,n.indexOf(":")),this.capture(i),this.capture(":")):e&&(i=SF);const o=this.parseChildren();t[i]=1===Object.keys(o).length?o.primary:new qF([],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 uT{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=hT(e,this._root);return t?t.children.map(e=>e.value):[]}firstChild(e){const t=hT(e,this._root);return t&&t.children.length>0?t.children[0].value:null}siblings(e){const t=dT(e,this._root);return t.length<2?[]:t[t.length-2].children.map(e=>e.value).filter(t=>t!==e)}pathFromRoot(e){return dT(e,this._root).map(e=>e.value)}}function hT(e,t){if(e===t.value)return t;for(const n of t.children){const t=hT(e,n);if(t)return t}return null}function dT(e,t){if(e===t.value)return[t];for(const n of t.children){const r=dT(e,n);if(r.length)return r.unshift(t),r}return[]}class pT{constructor(e,t){this.value=e,this.children=t}toString(){return`TreeNode(${this.value})`}}function fT(e){const t={};return e&&e.children.forEach(e=>t[e.value.outlet]=e),t}class gT extends uT{constructor(e,t){super(e),this.snapshot=t,CT(this,e)}toString(){return this.snapshot.toString()}}function mT(e,t){const n=function(e,t){const n=new vT([],{},{},"",{},SF,t,null,e.root,-1,{});return new bT("",new pT(n,[]))}(e,t),r=new Ep([new zF("",{})]),i=new Ep({}),o=new Ep({}),s=new Ep({}),a=new Ep(""),l=new yT(r,i,s,a,o,SF,t,n.root);return l.snapshot=n.root,new gT(new pT(l,[]),n)}class yT{constructor(e,t,n,r,i,o,s,a){this.url=e,this.params=t,this.queryParams=n,this.fragment=r,this.data=i,this.outlet=o,this.component=s,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(T(e=>QF(e)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(T(e=>QF(e)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function wT(e,t="emptyOnly"){const n=e.pathFromRoot;let r=0;if("always"!==t)for(r=n.length-1;r>=1;){const e=n[r],t=n[r-1];if(e.routeConfig&&""===e.routeConfig.path)r--;else{if(t.component)break;r--}}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(r))}class vT{constructor(e,t,n,r,i,o,s,a,l,c,A){this.url=e,this.params=t,this.queryParams=n,this.fragment=r,this.data=i,this.outlet=o,this.component=s,this.routeConfig=a,this._urlSegment=l,this._lastPathIndex=c,this._resolve=A}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=QF(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=QF(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(e=>e.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class bT extends uT{constructor(e,t){super(t),this.url=e,CT(this,t)}toString(){return BT(this._root)}}function CT(e,t){t.value._routerState=e,t.children.forEach(t=>CT(e,t))}function BT(e){const t=e.children.length>0?` { ${e.children.map(BT).join(", ")} } `:"";return`${e.value}${t}`}function _T(e){if(e.snapshot){const t=e.snapshot,n=e._futureSnapshot;e.snapshot=n,OF(t.queryParams,n.queryParams)||e.queryParams.next(n.queryParams),t.fragment!==n.fragment&&e.fragment.next(n.fragment),OF(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(!OF(e[n],t[n]))return!1;return!0}(t.url,n.url)||e.url.next(n.url),OF(t.data,n.data)||e.data.next(n.data)}else e.snapshot=e._futureSnapshot,e.data.next(e._futureSnapshot.data)}function ET(e,t){var n,r;return OF(e.params,t.params)&&WF(n=e.url,r=t.url)&&n.every((e,t)=>OF(e.parameters,r[t].parameters))&&!(!e.parent!=!t.parent)&&(!e.parent||ET(e.parent,t.parent))}function FT(e,t,n){if(n&&e.shouldReuseRoute(t.value,n.value.snapshot)){const r=n.value;r._futureSnapshot=t.value;const i=function(e,t,n){return t.children.map(t=>{for(const r of n.children)if(e.shouldReuseRoute(t.value,r.value.snapshot))return FT(e,t,r);return FT(e,t)})}(e,t,n);return new pT(r,i)}{if(e.shouldAttach(t.value)){const n=e.retrieve(t.value);if(null!==n){const e=n.route;return TT(t,e),e}}const n=new yT(new Ep((r=t.value).url),new Ep(r.params),new Ep(r.queryParams),new Ep(r.fragment),new Ep(r.data),r.outlet,r.component,r),i=t.children.map(t=>FT(e,t));return new pT(n,i)}var r}function TT(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)TT(e.children[n],t.children[n])}function ST(e){return"object"==typeof e&&null!=e&&!e.outlets&&!e.segmentPath}function xT(e){return"object"==typeof e&&null!=e&&e.outlets}function QT(e,t,n,r,i){let o={};return r&&MF(r,(e,t)=>{o[t]=Array.isArray(e)?e.map(e=>`${e}`):`${e}`}),new jF(n.root===e?t:kT(n.root,e,t),o,i)}function kT(e,t,n){const r={};return MF(e.children,(e,i)=>{r[i]=e===t?n:kT(e,t,n)}),new qF(e.segments,r)}class UT{constructor(e,t,n){if(this.isAbsolute=e,this.numberOfDoubleDots=t,this.commands=n,e&&n.length>0&&ST(n[0]))throw new Error("Root segment cannot have matrix parameters");const r=n.find(xT);if(r&&r!==DF(n))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class OT{constructor(e,t,n){this.segmentGroup=e,this.processChildren=t,this.index=n}}function IT(e,t,n){if(e||(e=new qF([],{})),0===e.segments.length&&e.hasChildren())return LT(e,t,n);const r=function(e,t,n){let r=0,i=t;const o={match:!1,pathIndex:0,commandIndex:0};for(;i<e.segments.length;){if(r>=n.length)return o;const t=e.segments[i],s=n[r];if(xT(s))break;const a=`${s}`,l=r<n.length-1?n[r+1]:null;if(i>0&&void 0===a)break;if(a&&l&&"object"==typeof l&&void 0===l.outlets){if(!RT(a,l,t))return o;r+=2}else{if(!RT(a,{},t))return o;r++}i++}return{match:!0,pathIndex:i,commandIndex:r}}(e,t,n),i=n.slice(r.commandIndex);if(r.match&&r.pathIndex<e.segments.length){const t=new qF(e.segments.slice(0,r.pathIndex),{});return t.children.primary=new qF(e.segments.slice(r.pathIndex),e.children),LT(t,0,i)}return r.match&&0===i.length?new qF(e.segments,{}):r.match&&!e.hasChildren()?DT(e,t,n):r.match?LT(e,0,i):DT(e,t,n)}function LT(e,t,n){if(0===n.length)return new qF(e.segments,{});{const r=function(e){return xT(e[0])?e[0].outlets:{[SF]:e}}(n),i={};return MF(r,(n,r)=>{"string"==typeof n&&(n=[n]),null!==n&&(i[r]=IT(e.children[r],t,n))}),MF(e.children,(e,t)=>{void 0===r[t]&&(i[t]=e)}),new qF(e.segments,i)}}function DT(e,t,n){const r=e.segments.slice(0,t);let i=0;for(;i<n.length;){const o=n[i];if(xT(o)){const e=MT(o.outlets);return new qF(r,e)}if(0===i&&ST(n[0])){r.push(new zF(e.segments[t].path,HT(n[0]))),i++;continue}const s=xT(o)?o.outlets.primary:`${o}`,a=i<n.length-1?n[i+1]:null;s&&a&&ST(a)?(r.push(new zF(s,HT(a))),i+=2):(r.push(new zF(s,{})),i++)}return new qF(r,{})}function MT(e){const t={};return MF(e,(e,n)=>{"string"==typeof e&&(e=[e]),null!==e&&(t[n]=DT(new qF([],{}),0,e))}),t}function HT(e){const t={};return MF(e,(e,n)=>t[n]=`${e}`),t}function RT(e,t,n){return e==n.path&&OF(t,n.parameters)}class PT{constructor(e,t,n,r){this.routeReuseStrategy=e,this.futureState=t,this.currState=n,this.forwardEvent=r}activate(e){const t=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(t,n,e),_T(this.futureState.root),this.activateChildRoutes(t,n,e)}deactivateChildRoutes(e,t,n){const r=fT(t);e.children.forEach(e=>{const t=e.value.outlet;this.deactivateRoutes(e,r[t],n),delete r[t]}),MF(r,(e,t)=>{this.deactivateRouteAndItsChildren(e,n)})}deactivateRoutes(e,t,n){const r=e.value,i=t?t.value:null;if(r===i)if(r.component){const i=n.getContext(r.outlet);i&&this.deactivateChildRoutes(e,t,i.children)}else this.deactivateChildRoutes(e,t,n);else i&&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(),r=n.children.onOutletDeactivated();this.routeReuseStrategy.store(e.value.snapshot,{componentRef:t,route:e,contexts:r})}}deactivateRouteAndOutlet(e,t){const n=t.getContext(e.value.outlet),r=n&&e.value.component?n.children:t,i=fT(e);for(const o of Object.keys(i))this.deactivateRouteAndItsChildren(i[o],r);n&&n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated(),n.attachRef=null,n.resolver=null,n.route=null)}activateChildRoutes(e,t,n){const r=fT(t);e.children.forEach(e=>{this.activateRoutes(e,r[e.value.outlet],n),this.forwardEvent(new FF(e.value.snapshot))}),e.children.length&&this.forwardEvent(new _F(e.value.snapshot))}activateRoutes(e,t,n){const r=e.value,i=t?t.value:null;if(_T(r),r===i)if(r.component){const i=n.getOrCreateContext(r.outlet);this.activateChildRoutes(e,t,i.children)}else this.activateChildRoutes(e,t,n);else if(r.component){const t=n.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){const e=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.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),NT(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}(r.snapshot),i=n?n.module.componentFactoryResolver:null;t.attachRef=null,t.route=r,t.resolver=i,t.outlet&&t.outlet.activateWith(r,i),this.activateChildRoutes(e,null,t.children)}}else this.activateChildRoutes(e,null,n)}}function NT(e){_T(e.value),e.children.forEach(NT)}class KT{constructor(e,t){this.routes=e,this.module=t}}function VT(e){return"function"==typeof e}function GT(e){return e instanceof jF}const jT=Symbol("INITIAL_VALUE");function qT(){return $p(e=>Tp(e.map(e=>e.pipe(jp(1),Wp(jT)))).pipe(jE((e,t)=>{let n=!1;return t.reduce((e,r,i)=>{if(e!==jT)return e;if(r===jT&&(n=!0),!n){if(!1===r)return r;if(i===t.length-1||GT(r))return r}return e},e)},jT),Np(e=>e!==jT),T(e=>GT(e)?e:!0===e),jp(1)))}let zT=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=Ge({type:e,selectors:[["ng-component"]],decls:1,vars:0,template:function(e,t){1&e&&ia(0,"router-outlet")},directives:function(){return[NS]},encapsulation:2}),e})();function WT(e,t=""){for(let n=0;n<e.length;n++){const r=e[n];XT(r,JT(t,r))}}function XT(e,t){e.children&&WT(e.children,t)}function JT(e,t){return t?e||t.path?e&&!t.path?`${e}/`:!e&&t.path?t.path:`${e}/${t.path}`:"":e}function $T(e){const t=e.children&&e.children.map($T),n=t?Object.assign(Object.assign({},e),{children:t}):Object.assign({},e);return!n.component&&(t||n.loadChildren)&&n.outlet&&n.outlet!==SF&&(n.component=zT),n}function YT(e){return e.outlet||SF}function ZT(e,t){const n=e.filter(e=>YT(e)===t);return n.push(...e.filter(e=>YT(e)!==t)),n}const eS={matched:!1,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};function tS(e,t,n){var r;if(""===t.path)return"full"===t.pathMatch&&(e.hasChildren()||n.length>0)?Object.assign({},eS):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};const i=(t.matcher||UF)(n,e,t);if(!i)return Object.assign({},eS);const o={};MF(i.posParams,(e,t)=>{o[t]=e.path});const s=i.consumed.length>0?Object.assign(Object.assign({},o),i.consumed[i.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:i.consumed,lastChild:i.consumed.length,parameters:s,positionalParamSegments:null!==(r=i.posParams)&&void 0!==r?r:{}}}function nS(e,t,n,r,i="corrected"){if(n.length>0&&function(e,t,n){return n.some(n=>rS(e,t,n)&&YT(n)!==SF)}(e,n,r)){const i=new qF(t,function(e,t,n,r){const i={};i.primary=r,r._sourceSegment=e,r._segmentIndexShift=t.length;for(const o of n)if(""===o.path&&YT(o)!==SF){const n=new qF([],{});n._sourceSegment=e,n._segmentIndexShift=t.length,i[YT(o)]=n}return i}(e,t,r,new qF(n,e.children)));return i._sourceSegment=e,i._segmentIndexShift=t.length,{segmentGroup:i,slicedSegments:[]}}if(0===n.length&&function(e,t,n){return n.some(n=>rS(e,t,n))}(e,n,r)){const o=new qF(e.segments,function(e,t,n,r,i,o){const s={};for(const a of r)if(rS(e,n,a)&&!i[YT(a)]){const n=new qF([],{});n._sourceSegment=e,n._segmentIndexShift="legacy"===o?e.segments.length:t.length,s[YT(a)]=n}return Object.assign(Object.assign({},i),s)}(e,t,n,r,e.children,i));return o._sourceSegment=e,o._segmentIndexShift=t.length,{segmentGroup:o,slicedSegments:n}}const o=new qF(e.segments,e.children);return o._sourceSegment=e,o._segmentIndexShift=t.length,{segmentGroup:o,slicedSegments:n}}function rS(e,t,n){return(!(e.hasChildren()||t.length>0)||"full"!==n.pathMatch)&&""===n.path}function iS(e,t,n,r){return!!(YT(e)===r||r!==SF&&rS(t,n,e))&&("**"===e.path||tS(t,e,n).matched)}function oS(e,t,n){return 0===t.length&&!e.children[n]}class sS{constructor(e){this.segmentGroup=e||null}}class aS{constructor(e){this.urlTree=e}}function lS(e){return new w(t=>t.error(new sS(e)))}function cS(e){return new w(t=>t.error(new aS(e)))}function AS(e){return new w(t=>t.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${e}'`)))}class uS{constructor(e,t,n,r,i){this.configLoader=t,this.urlSerializer=n,this.urlTree=r,this.config=i,this.allowRedirects=!0,this.ngModule=e.get(Tc)}apply(){const e=nS(this.urlTree.root,[],[],this.config).segmentGroup,t=new qF(e.segments,e.children);return this.expandSegmentGroup(this.ngModule,this.config,t,SF).pipe(T(e=>this.createUrlTree(hS(e),this.urlTree.queryParams,this.urlTree.fragment))).pipe(WE(e=>{if(e instanceof aS)return this.allowRedirects=!1,this.match(e.urlTree);if(e instanceof sS)throw this.noMatchError(e);throw e}))}match(e){return this.expandSegmentGroup(this.ngModule,this.config,e.root,SF).pipe(T(t=>this.createUrlTree(hS(t),e.queryParams,e.fragment))).pipe(WE(e=>{if(e instanceof sS)throw this.noMatchError(e);throw e}))}noMatchError(e){return new Error(`Cannot match any routes. URL Segment: '${e.segmentGroup}'`)}createUrlTree(e,t,n){const r=e.segments.length>0?new qF([],{[SF]:e}):e;return new jF(r,t,n)}expandSegmentGroup(e,t,n,r){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(e,t,n).pipe(T(e=>new qF([],e))):this.expandSegment(e,n,t,n.segments,r,!0)}expandChildren(e,t,n){const r=[];for(const i of Object.keys(n.children))"primary"===i?r.unshift(i):r.push(i);return D(r).pipe(by(r=>{const i=n.children[r],o=ZT(t,r);return this.expandSegmentGroup(e,o,i,r).pipe(T(e=>({segment:e,outlet:r})))}),jE((e,t)=>(e[t.outlet]=t.segment,e),{}),function(e,t){const n=arguments.length>=2;return r=>r.pipe(e?Np((t,n)=>e(t,n,r)):y,$E(1),n?iF(t):eF(()=>new VE))}())}expandSegment(e,t,n,r,i,o){return D(n).pipe(by(s=>this.expandSegmentAgainstRoute(e,t,n,s,r,i,o).pipe(WE(e=>{if(e instanceof sS)return cp(null);throw e}))),aF(e=>!!e),WE((e,n)=>{if(e instanceof VE||"EmptyError"===e.name){if(oS(t,r,i))return cp(new qF([],{}));throw new sS(t)}throw e}))}expandSegmentAgainstRoute(e,t,n,r,i,o,s){return iS(r,t,i,o)?void 0===r.redirectTo?this.matchSegmentAgainstRoute(e,t,r,i,o):s&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(e,t,n,r,i,o):lS(t):lS(t)}expandSegmentAgainstRouteUsingRedirect(e,t,n,r,i,o){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(e,n,r,o):this.expandRegularSegmentAgainstRouteUsingRedirect(e,t,n,r,i,o)}expandWildCardWithParamsAgainstRouteUsingRedirect(e,t,n,r){const i=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?cS(i):this.lineralizeSegments(n,i).pipe(P(n=>{const i=new qF(n,{});return this.expandSegment(e,i,t,n,r,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(e,t,n,r,i,o){const{matched:s,consumedSegments:a,lastChild:l,positionalParamSegments:c}=tS(t,r,i);if(!s)return lS(t);const A=this.applyRedirectCommands(a,r.redirectTo,c);return r.redirectTo.startsWith("/")?cS(A):this.lineralizeSegments(r,A).pipe(P(r=>this.expandSegment(e,t,n,r.concat(i.slice(l)),o,!1)))}matchSegmentAgainstRoute(e,t,n,r,i){if("**"===n.path)return n.loadChildren?(n._loadedConfig?cp(n._loadedConfig):this.configLoader.load(e.injector,n)).pipe(T(e=>(n._loadedConfig=e,new qF(r,{})))):cp(new qF(r,{}));const{matched:o,consumedSegments:s,lastChild:a}=tS(t,n,r);if(!o)return lS(t);const l=r.slice(a);return this.getChildConfig(e,n,r).pipe(P(e=>{const r=e.module,o=e.routes,{segmentGroup:a,slicedSegments:c}=nS(t,s,l,o),A=new qF(a.segments,a.children);if(0===c.length&&A.hasChildren())return this.expandChildren(r,o,A).pipe(T(e=>new qF(s,e)));if(0===o.length&&0===c.length)return cp(new qF(s,{}));const u=YT(n)===i;return this.expandSegment(r,A,o,c,u?SF:i,!0).pipe(T(e=>new qF(s.concat(e.segments),e.children)))}))}getChildConfig(e,t,n){return t.children?cp(new KT(t.children,e)):t.loadChildren?void 0!==t._loadedConfig?cp(t._loadedConfig):this.runCanLoadGuards(e.injector,t,n).pipe(P(n=>n?this.configLoader.load(e.injector,t).pipe(T(e=>(t._loadedConfig=e,e))):function(e){return new w(t=>t.error(kF(`Cannot load children because the guard of the route "path: '${e.path}'" returned false`)))}(t))):cp(new KT([],e))}runCanLoadGuards(e,t,n){const r=t.canLoad;return r&&0!==r.length?cp(r.map(r=>{const i=e.get(r);let o;if(function(e){return e&&VT(e.canLoad)}(i))o=i.canLoad(t,n);else{if(!VT(i))throw new Error("Invalid CanLoad guard");o=i(t,n)}return HF(o)})).pipe(qT(),ef(e=>{if(!GT(e))return;const t=kF(`Redirecting to "${this.urlSerializer.serialize(e)}"`);throw t.url=e,t}),T(e=>!0===e)):cp(!0)}lineralizeSegments(e,t){let n=[],r=t.root;for(;;){if(n=n.concat(r.segments),0===r.numberOfChildren)return cp(n);if(r.numberOfChildren>1||!r.children.primary)return AS(e.redirectTo);r=r.children.primary}}applyRedirectCommands(e,t,n){return this.applyRedirectCreatreUrlTree(t,this.urlSerializer.parse(t),e,n)}applyRedirectCreatreUrlTree(e,t,n,r){const i=this.createSegmentGroup(e,t.root,n,r);return new jF(i,this.createQueryParams(t.queryParams,this.urlTree.queryParams),t.fragment)}createQueryParams(e,t){const n={};return MF(e,(e,r)=>{if("string"==typeof e&&e.startsWith(":")){const i=e.substring(1);n[r]=t[i]}else n[r]=e}),n}createSegmentGroup(e,t,n,r){const i=this.createSegments(e,t.segments,n,r);let o={};return MF(t.children,(t,i)=>{o[i]=this.createSegmentGroup(e,t,n,r)}),new qF(i,o)}createSegments(e,t,n,r){return t.map(t=>t.path.startsWith(":")?this.findPosParam(e,t,r):this.findOrReturn(t,n))}findPosParam(e,t,n){const r=n[t.path.substring(1)];if(!r)throw new Error(`Cannot redirect to '${e}'. Cannot find '${t.path}'.`);return r}findOrReturn(e,t){let n=0;for(const r of t){if(r.path===e.path)return t.splice(n),r;n++}return e}}function hS(e){const t={};for(const n of Object.keys(e.children)){const r=hS(e.children[n]);(r.segments.length>0||r.hasChildren())&&(t[n]=r)}return function(e){if(1===e.numberOfChildren&&e.children.primary){const t=e.children.primary;return new qF(e.segments.concat(t.segments),t.children)}return e}(new qF(e.segments,t))}class dS{constructor(e){this.path=e,this.route=this.path[this.path.length-1]}}class pS{constructor(e,t){this.component=e,this.route=t}}function fS(e,t,n){const r=e._root;return mS(r,t?t._root:null,n,[r.value])}function gS(e,t,n){const r=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(r?r.module.injector:n).get(e)}function mS(e,t,n,r,i={canDeactivateChecks:[],canActivateChecks:[]}){const o=fT(t);return e.children.forEach(e=>{!function(e,t,n,r,i={canDeactivateChecks:[],canActivateChecks:[]}){const o=e.value,s=t?t.value:null,a=n?n.getContext(e.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){const l=function(e,t,n){if("function"==typeof n)return n(e,t);switch(n){case"pathParamsChange":return!WF(e.url,t.url);case"pathParamsOrQueryParamsChange":return!WF(e.url,t.url)||!OF(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!ET(e,t)||!OF(e.queryParams,t.queryParams);case"paramsChange":default:return!ET(e,t)}}(s,o,o.routeConfig.runGuardsAndResolvers);l?i.canActivateChecks.push(new dS(r)):(o.data=s.data,o._resolvedData=s._resolvedData),mS(e,t,o.component?a?a.children:null:n,r,i),l&&a&&a.outlet&&a.outlet.isActivated&&i.canDeactivateChecks.push(new pS(a.outlet.component,s))}else s&&yS(t,a,i),i.canActivateChecks.push(new dS(r)),mS(e,null,o.component?a?a.children:null:n,r,i)}(e,o[e.value.outlet],n,r.concat([e.value]),i),delete o[e.value.outlet]}),MF(o,(e,t)=>yS(e,n.getContext(t),i)),i}function yS(e,t,n){const r=fT(e),i=e.value;MF(r,(e,r)=>{yS(e,i.component?t?t.children.getContext(r):null:t,n)}),n.canDeactivateChecks.push(new pS(i.component&&t&&t.outlet&&t.outlet.isActivated?t.outlet.component:null,i))}class wS{}function vS(e){return new w(t=>t.error(e))}class bS{constructor(e,t,n,r,i,o){this.rootComponentType=e,this.config=t,this.urlTree=n,this.url=r,this.paramsInheritanceStrategy=i,this.relativeLinkResolution=o}recognize(){const e=nS(this.urlTree.root,[],[],this.config.filter(e=>void 0===e.redirectTo),this.relativeLinkResolution).segmentGroup,t=this.processSegmentGroup(this.config,e,SF);if(null===t)return null;const n=new vT([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},SF,this.rootComponentType,null,this.urlTree.root,-1,{}),r=new pT(n,t),i=new bT(this.url,r);return this.inheritParamsAndData(i._root),i}inheritParamsAndData(e){const t=e.value,n=wT(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 i of Object.keys(t.children)){const r=t.children[i],o=ZT(e,i),s=this.processSegmentGroup(o,r,i);if(null===s)return null;n.push(...s)}const r=BS(n);return r.sort((e,t)=>e.value.outlet===SF?-1:t.value.outlet===SF?1:e.value.outlet.localeCompare(t.value.outlet)),r}processSegment(e,t,n,r){for(const i of e){const e=this.processSegmentAgainstRoute(i,t,n,r);if(null!==e)return e}return oS(t,n,r)?[]:null}processSegmentAgainstRoute(e,t,n,r){if(e.redirectTo||!iS(e,t,n,r))return null;let i,o=[],s=[];if("**"===e.path){const r=n.length>0?DF(n).parameters:{};i=new vT(n,r,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,FS(e),YT(e),e.component,e,_S(t),ES(t)+n.length,TS(e))}else{const r=tS(t,e,n);if(!r.matched)return null;o=r.consumedSegments,s=n.slice(r.lastChild),i=new vT(o,r.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,FS(e),YT(e),e.component,e,_S(t),ES(t)+o.length,TS(e))}const a=function(e){return e.children?e.children:e.loadChildren?e._loadedConfig.routes:[]}(e),{segmentGroup:l,slicedSegments:c}=nS(t,o,s,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 pT(i,e)]}if(0===a.length&&0===c.length)return[new pT(i,[])];const A=YT(e)===r,u=this.processSegment(a,l,c,A?SF:r);return null===u?null:[new pT(i,u)]}}function CS(e){const t=e.value.routeConfig;return t&&""===t.path&&void 0===t.redirectTo}function BS(e){const t=[],n=new Set;for(const r of e){if(!CS(r)){t.push(r);continue}const e=t.find(e=>r.value.routeConfig===e.value.routeConfig);void 0!==e?(e.children.push(...r.children),n.add(e)):t.push(r)}for(const r of n){const e=BS(r.children);t.push(new pT(r.value,e))}return t.filter(e=>!n.has(e))}function _S(e){let t=e;for(;t._sourceSegment;)t=t._sourceSegment;return t}function ES(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 FS(e){return e.data||{}}function TS(e){return e.resolve||{}}function SS(e){return $p(t=>{const n=e(t);return n?D(n).pipe(T(()=>t)):cp(t)})}class xS 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 QS=new Zn("ROUTES");class kS{constructor(e,t,n,r){this.loader=e,this.compiler=t,this.onLoadStartListener=n,this.onLoadEndListener=r}load(e,t){if(t._loader$)return t._loader$;this.onLoadStartListener&&this.onLoadStartListener(t);const n=this.loadModuleFactory(t.loadChildren).pipe(T(n=>{this.onLoadEndListener&&this.onLoadEndListener(t);const r=n.create(e);return new KT(LF(r.injector.get(QS,void 0,Ce.Self|Ce.Optional)).map($T),r)}),WE(e=>{throw t._loader$=void 0,e}));return t._loader$=new X(n,()=>new _).pipe(q()),t._loader$}loadModuleFactory(e){return"string"==typeof e?D(this.loader.load(e)):HF(e()).pipe(P(e=>e instanceof Sc?cp(e):D(this.compiler.compileModuleAsync(e))))}}class US{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new OS,this.attachRef=null}}class OS{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 US,this.contexts.set(e,t)),t}getContext(e){return this.contexts.get(e)||null}}class IS{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,t){return e}}function LS(e){throw e}function DS(e,t,n){return t.parse("/")}function MS(e,t){return cp(null)}const HS={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},RS={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let PS=(()=>{class e{constructor(e,t,n,r,i,o,s,a){this.rootComponentType=e,this.urlSerializer=t,this.rootContexts=n,this.location=r,this.config=a,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.lastLocationChangeInfo=null,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new _,this.errorHandler=LS,this.malformedUriErrorHandler=DS,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:MS,afterPreactivation:MS},this.urlHandlingStrategy=new IS,this.routeReuseStrategy=new xS,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=i.get(Tc),this.console=i.get(DA);const l=i.get(XA);this.isNgZoneEnabled=l instanceof XA&&XA.isInAngularZone(),this.resetConfig(a),this.currentUrlTree=new jF(new qF([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new kS(o,s,e=>this.triggerEvent(new bF(e)),e=>this.triggerEvent(new CF(e))),this.routerState=mT(this.currentUrlTree,this.rootComponentType),this.transitions=new Ep({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}get browserPageId(){var e;return null===(e=this.location.getState())||void 0===e?void 0:e.\u0275routerPageId}setupNavigations(e){const t=this.events;return e.pipe(Np(e=>0!==e.id),T(e=>Object.assign(Object.assign({},e),{extractedUrl:this.urlHandlingStrategy.extract(e.rawUrl)})),$p(e=>{let n=!1,r=!1;return cp(e).pipe(ef(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}}),$p(e=>{const n=!this.navigated||e.extractedUrl.toString()!==this.browserUrlTree.toString();if(("reload"===this.onSameUrlNavigation||n)&&this.urlHandlingStrategy.shouldProcessUrl(e.rawUrl))return cp(e).pipe($p(e=>{const n=this.transitions.getValue();return t.next(new hF(e.id,this.serializeUrl(e.extractedUrl),e.source,e.restoredState)),n!==this.transitions.getValue()?ap:Promise.resolve(e)}),function(e,t,n,r){return $p(i=>function(e,t,n,r,i){return new uS(e,t,n,r,i).apply()}(e,t,n,i.extractedUrl,r).pipe(T(e=>Object.assign(Object.assign({},i),{urlAfterRedirects:e}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),ef(e=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:e.urlAfterRedirects})}),function(e,t,n,r,i){return P(o=>function(e,t,n,r,i="emptyOnly",o="legacy"){try{const s=new bS(e,t,n,r,i,o).recognize();return null===s?vS(new wS):cp(s)}catch(WI){return vS(WI)}}(e,t,o.urlAfterRedirects,n(o.urlAfterRedirects),r,i).pipe(T(e=>Object.assign(Object.assign({},o),{targetSnapshot:e}))))}(this.rootComponentType,this.config,e=>this.serializeUrl(e),this.paramsInheritanceStrategy,this.relativeLinkResolution),ef(e=>{"eager"===this.urlUpdateStrategy&&(e.extras.skipLocationChange||this.setBrowserUrl(e.urlAfterRedirects,e),this.browserUrlTree=e.urlAfterRedirects);const n=new gF(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.next(n)}));if(n&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:n,extractedUrl:r,source:i,restoredState:o,extras:s}=e,a=new hF(n,this.serializeUrl(r),i,o);t.next(a);const l=mT(r,this.rootComponentType).snapshot;return cp(Object.assign(Object.assign({},e),{targetSnapshot:l,urlAfterRedirects:r,extras:Object.assign(Object.assign({},s),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=e.rawUrl,this.browserUrlTree=e.urlAfterRedirects,e.resolve(null),ap}),SS(e=>{const{targetSnapshot:t,id:n,extractedUrl:r,rawUrl:i,extras:{skipLocationChange:o,replaceUrl:s}}=e;return this.hooks.beforePreactivation(t,{navigationId:n,appliedUrlTree:r,rawUrlTree:i,skipLocationChange:!!o,replaceUrl:!!s})}),ef(e=>{const t=new mF(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);this.triggerEvent(t)}),T(e=>Object.assign(Object.assign({},e),{guards:fS(e.targetSnapshot,e.currentSnapshot,this.rootContexts)})),function(e,t){return P(n=>{const{targetSnapshot:r,currentSnapshot:i,guards:{canActivateChecks:o,canDeactivateChecks:s}}=n;return 0===s.length&&0===o.length?cp(Object.assign(Object.assign({},n),{guardsResult:!0})):function(e,t,n,r){return D(e).pipe(P(e=>function(e,t,n,r,i){const o=t&&t.routeConfig?t.routeConfig.canDeactivate:null;return o&&0!==o.length?cp(o.map(o=>{const s=gS(o,t,i);let a;if(function(e){return e&&VT(e.canDeactivate)}(s))a=HF(s.canDeactivate(e,t,n,r));else{if(!VT(s))throw new Error("Invalid CanDeactivate guard");a=HF(s(e,t,n,r))}return a.pipe(aF())})).pipe(qT()):cp(!0)}(e.component,e.route,n,t,r)),aF(e=>!0!==e,!0))}(s,r,i,e).pipe(P(n=>n&&"boolean"==typeof n?function(e,t,n,r){return D(t).pipe(by(t=>Mp(function(e,t){return null!==e&&t&&t(new BF(e)),cp(!0)}(t.route.parent,r),function(e,t){return null!==e&&t&&t(new EF(e)),cp(!0)}(t.route,r),function(e,t,n){const r=t[t.length-1],i=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=>GE(()=>cp(t.guards.map(i=>{const o=gS(i,t.node,n);let s;if(function(e){return e&&VT(e.canActivateChild)}(o))s=HF(o.canActivateChild(r,e));else{if(!VT(o))throw new Error("Invalid CanActivateChild guard");s=HF(o(r,e))}return s.pipe(aF())})).pipe(qT())));return cp(i).pipe(qT())}(e,t.path,n),function(e,t,n){const r=t.routeConfig?t.routeConfig.canActivate:null;return r&&0!==r.length?cp(r.map(r=>GE(()=>{const i=gS(r,t,n);let o;if(function(e){return e&&VT(e.canActivate)}(i))o=HF(i.canActivate(t,e));else{if(!VT(i))throw new Error("Invalid CanActivate guard");o=HF(i(t,e))}return o.pipe(aF())}))).pipe(qT()):cp(!0)}(e,t.route,n))),aF(e=>!0!==e,!0))}(r,o,e,t):cp(n)),T(e=>Object.assign(Object.assign({},n),{guardsResult:e})))})}(this.ngModule.injector,e=>this.triggerEvent(e)),ef(e=>{if(GT(e.guardsResult)){const t=kF(`Redirecting to "${this.serializeUrl(e.guardsResult)}"`);throw t.url=e.guardsResult,t}const t=new yF(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(e.urlAfterRedirects),e.targetSnapshot,!!e.guardsResult);this.triggerEvent(t)}),Np(e=>!!e.guardsResult||(this.restoreHistory(e),this.cancelNavigationTransition(e,""),!1)),SS(e=>{if(e.guards.canActivateChecks.length)return cp(e).pipe(ef(e=>{const t=new wF(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);this.triggerEvent(t)}),$p(e=>{let t=!1;return cp(e).pipe((n=this.paramsInheritanceStrategy,r=this.ngModule.injector,P(e=>{const{targetSnapshot:t,guards:{canActivateChecks:i}}=e;if(!i.length)return cp(e);let o=0;return D(i).pipe(by(e=>function(e,t,n,r){return function(e,t,n,r){const i=Object.keys(e);if(0===i.length)return cp({});const o={};return D(i).pipe(P(i=>function(e,t,n,r){const i=gS(e,t,r);return HF(i.resolve?i.resolve(t,n):i(t,n))}(e[i],t,n,r).pipe(ef(e=>{o[i]=e}))),$E(1),P(()=>Object.keys(o).length===i.length?cp(o):ap))}(e._resolve,e,t,r).pipe(T(t=>(e._resolvedData=t,e.data=Object.assign(Object.assign({},e.data),wT(e,n).resolve),null)))}(e.route,t,n,r)),ef(()=>o++),$E(1),P(t=>o===i.length?cp(e):ap))})),ef({next:()=>t=!0,complete:()=>{t||(this.restoreHistory(e),this.cancelNavigationTransition(e,"At least one route resolver didn't emit any value."))}}));var n,r}),ef(e=>{const t=new vF(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);this.triggerEvent(t)}))}),SS(e=>{const{targetSnapshot:t,id:n,extractedUrl:r,rawUrl:i,extras:{skipLocationChange:o,replaceUrl:s}}=e;return this.hooks.afterPreactivation(t,{navigationId:n,appliedUrlTree:r,rawUrlTree:i,skipLocationChange:!!o,replaceUrl:!!s})}),T(e=>{const t=function(e,t,n){const r=FT(e,t._root,n?n._root:void 0);return new gT(r,t)}(this.routeReuseStrategy,e.targetSnapshot,e.currentRouterState);return Object.assign(Object.assign({},e),{targetRouterState:t})}),ef(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),this.browserUrlTree=e.urlAfterRedirects)}),(i=this.rootContexts,o=this.routeReuseStrategy,s=e=>this.triggerEvent(e),T(e=>(new PT(o,e.targetRouterState,e.currentRouterState,s).activate(i),e))),ef({next(){n=!0},complete(){n=!0}}),lF(()=>{if(!n&&!r){const t=`Navigation ID ${e.id} is not equal to the current navigation id ${this.navigationId}`;"replace"===this.canceledNavigationResolution?(this.restoreHistory(e),this.cancelNavigationTransition(e,t)):this.cancelNavigationTransition(e,t)}this.currentNavigation=null}),WE(n=>{if(r=!0,(i=n)&&i.ngNavigationCancelingError){const r=GT(n.url);r||(this.navigated=!0,this.restoreHistory(e,!0));const i=new pF(e.id,this.serializeUrl(e.extractedUrl),n.message);t.next(i),r?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.restoreHistory(e,!0);const r=new fF(e.id,this.serializeUrl(e.extractedUrl),n);t.next(r);try{e.resolve(this.errorHandler(n))}catch(o){e.reject(o)}}var i;return ap}));var i,o,s}))}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:r}=t,i={replaceUrl:!0};if(n){const e=Object.assign({},n);delete e.navigationId,delete e.\u0275routerPageId,0!==Object.keys(e).length&&(i.state=e)}this.scheduleNavigation(r,e,n,i)},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){WT(e),this.config=e.map($T),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:r,fragment:i,queryParamsHandling:o,preserveFragment:s}=t,a=n||this.routerState.root,l=s?this.currentUrlTree.fragment:i;let c=null;switch(o){case"merge":c=Object.assign(Object.assign({},this.currentUrlTree.queryParams),r);break;case"preserve":c=this.currentUrlTree.queryParams;break;default:c=r||null}return null!==c&&(c=this.removeEmptyProps(c)),function(e,t,n,r,i){if(0===n.length)return QT(t.root,t.root,t,r,i);const o=function(e){if("string"==typeof e[0]&&1===e.length&&"/"===e[0])return new UT(!0,0,e);let t=0,n=!1;const r=e.reduce((e,r,i)=>{if("object"==typeof r&&null!=r){if(r.outlets){const t={};return MF(r.outlets,(e,n)=>{t[n]="string"==typeof e?e.split("/"):e}),[...e,{outlets:t}]}if(r.segmentPath)return[...e,r.segmentPath]}return"string"!=typeof r?[...e,r]:0===i?(r.split("/").forEach((r,i)=>{0==i&&"."===r||(0==i&&""===r?n=!0:".."===r?t++:""!=r&&e.push(r))}),e):[...e,r]},[]);return new UT(n,t,r)}(n);if(o.toRoot())return QT(t.root,new qF([],{}),t,r,i);const s=function(e,t,n){if(e.isAbsolute)return new OT(t.root,!0,0);if(-1===n.snapshot._lastPathIndex){const e=n.snapshot._urlSegment;return new OT(e,e===t.root,0)}const r=ST(e.commands[0])?0:1;return function(e,t,n){let r=e,i=t,o=n;for(;o>i;){if(o-=i,r=r.parent,!r)throw new Error("Invalid number of '../'");i=r.segments.length}return new OT(r,!1,i-o)}(n.snapshot._urlSegment,n.snapshot._lastPathIndex+r,e.numberOfDoubleDots)}(o,t,e),a=s.processChildren?LT(s.segmentGroup,s.index,o.commands):IT(s.segmentGroup,s.index,o.commands);return QT(s.segmentGroup,a,t,r,i)}(a,this.currentUrlTree,e,c,null!=l?l:null)}navigateByUrl(e,t={skipLocationChange:!1}){const n=GT(e)?e:this.parseUrl(e),r=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(r,"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(WI){t=this.malformedUriErrorHandler(WI,this.urlSerializer,e)}return t}isActive(e,t){let n;if(n=!0===t?Object.assign({},HS):!1===t?Object.assign({},RS):t,GT(e))return NF(this.currentUrlTree,e,n);const r=this.parseUrl(e);return NF(this.currentUrlTree,r,n)}removeEmptyProps(e){return Object.keys(e).reduce((t,n)=>{const r=e[n];return null!=r&&(t[n]=r),t},{})}processNavigations(){this.navigations.subscribe(e=>{this.navigated=!0,this.lastSuccessfulId=e.id,this.currentPageId=e.targetPageId,this.events.next(new dF(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,e.resolve(!0)},e=>{this.console.warn("Unhandled Navigation Error: ")})}scheduleNavigation(e,t,n,r,i){var o,s;if(this.disposed)return Promise.resolve(!1);const a=this.getTransition(),l="imperative"!==t&&"imperative"===(null==a?void 0:a.source),c=(this.lastSuccessfulId===a.id||this.currentNavigation?a.rawUrl:a.urlAfterRedirects).toString()===e.toString();if(l&&c)return Promise.resolve(!0);let A,u,h;i?(A=i.resolve,u=i.reject,h=i.promise):h=new Promise((e,t)=>{A=e,u=t});const d=++this.navigationId;let p;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(n=this.location.getState()),p=n&&n.\u0275routerPageId?n.\u0275routerPageId:r.replaceUrl||r.skipLocationChange?null!==(o=this.browserPageId)&&void 0!==o?o:0:(null!==(s=this.browserPageId)&&void 0!==s?s:0)+1):p=0,this.setTransition({id:d,targetPageId:p,source:t,restoredState:n,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:e,extras:r,resolve:A,reject:u,promise:h,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),h.catch(e=>Promise.reject(e))}setBrowserUrl(e,t){const n=this.urlSerializer.serialize(e),r=Object.assign(Object.assign({},t.extras.state),this.generateNgRouterState(t.id,t.targetPageId));this.location.isCurrentPathEqualTo(n)||t.extras.replaceUrl?this.location.replaceState(n,"",r):this.location.go(n,"",r)}restoreHistory(e,t=!1){var n,r;if("computed"===this.canceledNavigationResolution){const t=this.currentPageId-e.targetPageId;"popstate"!==e.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==(null===(n=this.currentNavigation)||void 0===n?void 0:n.finalUrl)||0===t?this.currentUrlTree===(null===(r=this.currentNavigation)||void 0===r?void 0:r.finalUrl)&&0===t&&(this.resetState(e),this.browserUrlTree=e.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(t)}else"replace"===this.canceledNavigationResolution&&(t&&this.resetState(e),this.resetUrlToCurrentUrlTree())}resetState(e){this.routerState=e.currentRouterState,this.currentUrlTree=e.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(e,t){const n=new pF(e.id,this.serializeUrl(e.extractedUrl),t);this.triggerEvent(n),e.resolve(!1)}generateNgRouterState(e,t){return"computed"===this.canceledNavigationResolution?{navigationId:e,"\u0275routerPageId":t}:{navigationId:e}}}return e.\u0275fac=function(t){return new(t||e)(mr(tr),mr(XF),mr(OS),mr(Ku),mr(ks),mr(mu),mr(qA),mr(void 0))},e.\u0275prov=de({token:e,factory:e.\u0275fac}),e})(),NS=(()=>{class e{constructor(e,t,n,r,i){this.parentContexts=e,this.location=t,this.resolver=n,this.changeDetector=i,this.activated=null,this._activatedRoute=null,this.activateEvents=new oA,this.deactivateEvents=new oA,this.name=r||SF,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),r=this.parentContexts.getOrCreateContext(this.name).children,i=new KS(e,r,this.location.injector);this.activated=this.location.createComponent(n,this.location.length,i),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return e.\u0275fac=function(t){return new(t||e)(Zs(OS),Zs(Qc),Zs(Kl),zn("name"),Zs(yc))},e.\u0275dir=Je({type:e,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),e})();class KS{constructor(e,t,n){this.route=e,this.childContexts=t,this.parent=n}get(e,t){return e===yT?this.route:e===OS?this.childContexts:this.parent.get(e,t)}}class VS{}class GS{preload(e,t){return cp(null)}}let jS=(()=>{class e{constructor(e,t,n,r,i){this.router=e,this.injector=r,this.preloadingStrategy=i,this.loader=new kS(t,n,t=>e.triggerEvent(new bF(t)),t=>e.triggerEvent(new CF(t)))}setUpPreloading(){this.subscription=this.router.events.pipe(Np(e=>e instanceof dF),by(()=>this.preload())).subscribe(()=>{})}preload(){const e=this.injector.get(Tc);return this.processRoutes(e,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,t){const n=[];for(const r of t)if(r.loadChildren&&!r.canLoad&&r._loadedConfig){const e=r._loadedConfig;n.push(this.processRoutes(e.module,e.routes))}else r.loadChildren&&!r.canLoad?n.push(this.preloadConfig(e,r)):r.children&&n.push(this.processRoutes(e,r.children));return D(n).pipe(V(),T(e=>{}))}preloadConfig(e,t){return this.preloadingStrategy.preload(t,()=>(t._loadedConfig?cp(t._loadedConfig):this.loader.load(e.injector,t)).pipe(P(e=>(t._loadedConfig=e,this.processRoutes(e.module,e.routes)))))}}return e.\u0275fac=function(t){return new(t||e)(mr(PS),mr(mu),mr(qA),mr(ks),mr(VS))},e.\u0275prov=de({token:e,factory:e.\u0275fac}),e})(),qS=(()=>{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 hF?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof dF&&(this.lastId=e.id,this.scheduleScrollEvent(e,this.router.parseUrl(e.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(e=>{e instanceof TF&&(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 TF(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)(mr(PS),mr(vh),mr(void 0))},e.\u0275prov=de({token:e,factory:e.\u0275fac}),e})();const zS=new Zn("ROUTER_CONFIGURATION"),WS=new Zn("ROUTER_FORROOT_GUARD"),XS=[Ku,{provide:XF,useClass:JF},{provide:PS,useFactory:function(e,t,n,r,i,o,s,a={},l,c){const A=new PS(null,e,t,n,r,i,o,LF(s));return l&&(A.urlHandlingStrategy=l),c&&(A.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,A),a.enableTracing&&A.events.subscribe(e=>{var t,n;null===(t=console.group)||void 0===t||t.call(console,`Router Event: ${e.constructor.name}`),console.log(e.toString()),console.log(e),null===(n=console.groupEnd)||void 0===n||n.call(console)}),A},deps:[XF,OS,Ku,ks,mu,qA,QS,zS,[class{},new Cr],[class{},new Cr]]},OS,{provide:yT,useFactory:function(e){return e.routerState.root},deps:[PS]},{provide:mu,useClass:vu},jS,GS,class{preload(e,t){return t().pipe(WE(()=>cp(null)))}},{provide:zS,useValue:{enableTracing:!1}}];function JS(){return new Au("Router",PS)}let $S=(()=>{class e{constructor(e,t){}static forRoot(t,n){return{ngModule:e,providers:[XS,tx(t),{provide:WS,useFactory:ex,deps:[[PS,new Cr,new Br]]},{provide:zS,useValue:n||{}},{provide:Mu,useFactory:ZS,deps:[Su,[new br(Ru),new Cr],zS]},{provide:qS,useFactory:YS,deps:[PS,vh,zS]},{provide:VS,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:GS},{provide:Au,multi:!0,useFactory:JS},[nx,{provide:SA,multi:!0,useFactory:rx,deps:[nx]},{provide:ox,useFactory:ix,deps:[nx]},{provide:LA,multi:!0,useExisting:ox}]]}}static forChild(t){return{ngModule:e,providers:[tx(t)]}}}return e.\u0275fac=function(t){return new(t||e)(mr(WS,8),mr(PS,8))},e.\u0275mod=We({type:e}),e.\u0275inj=pe({}),e})();function YS(e,t,n){return n.scrollOffset&&t.setOffset(n.scrollOffset),new qS(e,t,n)}function ZS(e,t,n={}){return n.useHash?new Nu(e,t):new Pu(e,t)}function ex(e){return"guarded"}function tx(e){return[{provide:er,multi:!0,useValue:e},{provide:QS,multi:!0,useValue:e}]}let nx=(()=>{class e{constructor(e){this.injector=e,this.initNavigation=!1,this.destroyed=!1,this.resultOfPreactivationDone=new _}appInitializer(){return this.injector.get(Qu,Promise.resolve(null)).then(()=>{if(this.destroyed)return Promise.resolve(!0);let e=null;const t=new Promise(t=>e=t),n=this.injector.get(PS),r=this.injector.get(zS);return"disabled"===r.initialNavigation?(n.setUpLocationChangeListener(),e(!0)):"enabled"===r.initialNavigation||"enabledBlocking"===r.initialNavigation?(n.hooks.afterPreactivation=()=>this.initNavigation?cp(null):(this.initNavigation=!0,e(!0),this.resultOfPreactivationDone),n.initialNavigation()):e(!0),t})}bootstrapListener(e){const t=this.injector.get(zS),n=this.injector.get(jS),r=this.injector.get(qS),i=this.injector.get(PS),o=this.injector.get(fu);e===o.components[0]&&("enabledNonBlocking"!==t.initialNavigation&&void 0!==t.initialNavigation||i.initialNavigation(),n.setUpPreloading(),r.init(),i.resetRootComponentType(o.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}ngOnDestroy(){this.destroyed=!0}}return e.\u0275fac=function(t){return new(t||e)(mr(ks))},e.\u0275prov=de({token:e,factory:e.\u0275fac}),e})();function rx(e){return e.appInitializer.bind(e)}function ix(e){return e.bootstrapListener.bind(e)}const ox=new Zn("Router Initializer");class sx{constructor(){this.Category=-1,this.Content=-1,this.Indicator=-1,this.MeasureSeq=-1,this.TimePeriod1Values=[],this.TimePeriod2Values=[],this.GeographicGroupingSeq=-1,this.GeographicGroupingType=-1,this.GeographicAreaSeqs=[],this.IsBasicQuery=!0,this.IsCdcQuery=!1}}class ax{constructor(e,t,n,r,i,o,s,a){this.GeographicAreaSeq=e||null,this.GeographicArea=t||null,this.GeographicArea1=n||"",this.GeographicAreaType=a||null,this.GeographicAreaTypeSeq=s||null,this.GeographicAreaID=r||"",this.FIPSCode=i||"",this.IsActive=o||""}}let lx=(()=>{class e{constructor(e,t){this.httpService=e,this.baseUrl=t,this.geographicAreasMap=new Map,this.dynamicGeoGraphicAreas=new Map}onDestroy(){this.geographicAreasMap=new Map}createDynamicGeographicAreas(e,t){e&&e.forEach(e=>{this.addDynamicGeographicAreas(new ax(e.Value),t)})}addDynamicGeographicAreas(e,t){var n,r,i,o,s,a,l;(null===(n=this.dynamicGeoGraphicAreas)||void 0===n?void 0:n.get(t))?(null===(s=null===(o=this.dynamicGeoGraphicAreas)||void 0===o?void 0:o.get(t))||void 0===s?void 0:s.some(t=>t.GeographicArea==e.GeographicArea))||null===(l=null===(a=this.dynamicGeoGraphicAreas)||void 0===a?void 0:a.get(t))||void 0===l||l.push(e):(this.dynamicGeoGraphicAreas.set(t,[]),null===(i=null===(r=this.dynamicGeoGraphicAreas)||void 0===r?void 0:r.get(t))||void 0===i||i.push(e))}resetDynamicGeographicAreas(e){this.dynamicGeoGraphicAreas.has(e)&&this.dynamicGeoGraphicAreas.set(e,[])}setGeographicAreasMap(){return this.geographicAreasMap.size<1?this.httpService.get(this.baseUrl+"Geography/GetActiveGeographicAreas").pipe(ef(e=>{this.geographicAreasMap=new Map(e.map(e=>[e.GeographicAreaID,e]))}),WE(e=>af({errorType:"geographicAreasMapError",message:(null==e?void 0:e.message)||"An unknown error occurred."}))):cp(!0)}}return e.\u0275fac=function(t){return new(t||e)(mr(Py),mr("BASE_URL"))},e.\u0275prov=de({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),cx=(()=>{class e{constructor(e,t,n){this.http=e,this.baseUrl=t,this.geographicAreaService=n,this.isCreatingBookmark=!1,this.bookmarkUrl="",this.previousQueryResponse=new oy,this.leftQueryResponse=new oy,this.rightQueryResponse=new oy,this.bookmarkResponse=new oy,this.clearData=new oy,this.baseUrl=t,this.lastQueryRequestObj=new sx}clearPreviousQuery(e){this.clearData.next(e)}getClearDataEvent(){return this.clearData.asObservable()}getLastQueryRequest(){return this.lastQueryRequestObj}setLastQueryRequest(e){this.lastQueryRequestObj=e}getLeftQueryResponse(){return this.leftQueryResponse.asObservable()}getRightQueryResponse(){return this.rightQueryResponse.asObservable()}getData(e,t){return this.geographicAreaService.resetDynamicGeographicAreas(t),this.http.post(this.baseUrl+"Data",e).pipe(ef(e=>{this.previousQueryResponse.next(e),"left"===t?this.leftQueryResponse.next(e):"right"===t&&this.rightQueryResponse.next(e)}),WE(e=>af({errorType:"loadingDataError",message:(null==e?void 0:e.message)||"An unknown error occurred"})))}determineOtherFiltersOptions(e,t,n,r,i,o,s,a,l){var c=this.formatQueryRequest(e,t,n,r,i,o,s,a,null,void 0);return this.http.post(this.baseUrl+"Data/GetValidOtherFilters",c).toPromise().then(e=>{for(var t=1;t<=10;t++){var n="OtherFilter"+t+"Text",r=e[n],i=G_(l.filters,{columnName:n});i&&i.options&&(i.options=J_(i.options,function(e){return eE(r,e.id)}))}})}getPreviousQueryResponse(){return this.previousQueryResponse.asObservable()}getBookmark(){return this.bookmarkResponse.asObservable()}runQuery(e,t,n,r,i,o,s,a,l,c){var A=this.formatQueryRequest(e,t,n,r,i,o,s,a,l,void 0);return this.lastQueryRequestObj=A,this.geographicAreaService.setGeographicAreasMap().pipe($p(e=>this.getData(A,c)),WE(e=>af(e)))}formatQueryRequest(e,t,n,r,i,o,s,a,l,c,A){var u,h,d,p=new sx;if(p.Category=e.selected[0].id,t.selected.length&&(p.Content=t.selected[0].id),n.selected.length&&(p.Indicator=n.selected[0].id),r.selected.length&&(p.MeasureSeq=r.selected[0].id),i.selected.length&&(p.TimePeriod1Values=i.selected.map(e=>e.id)),o.selected.length&&(p.TimePeriod2Values=o.selected.map(e=>e.id)),null!=s&&(null===(u=s.selected)||void 0===u?void 0:u.length)){var f=Number(s.selected[0].id.toString().replace(/[^-\d]/g,""));p.GeographicGroupingSeq=f,p.GeographicGroupingType=null===(h=s.options.find(e=>e.id===s.selected[0].id))||void 0===h?void 0:h.extra.type}return null!=a&&(null===(d=a.selected)||void 0===d?void 0:d.length)&&(p.GeographicAreaSeqs=a.selected.map(e=>e.id)),null!=l&&l.filters.length&&(p.OtherFilterValues=[],l.filters.forEach(e=>{let t=[];t=e.selected.map(e=>e.id),p.OtherFilterValues.push({Key:e.columnName,Value:t.length>0?t:null})})),null!=c&&(p.IsBasicQuery=c),null!=A&&(p.IsCdcQuery=A),p}createBookmark(e,t,n,r,i,o,s,a,l,c,A){var u=this.formatQueryRequest(e,t,n,r,i,o,s,a,l,c,A);this.isCreatingBookmark=!0,this.http.post(this.baseUrl+"SavedBookmark/CreateBookmark",u).subscribe(e=>{this.isCreatingBookmark=!1,this.bookmarkUrl=location.origin+this.baseUrl+"?bookmark="+e,this.bookmarkResponse.next(this.bookmarkUrl)},e=>{console.log("Use a service to trigger error message",e)})}}return e.\u0275fac=function(t){return new(t||e)(mr(Py),mr("BASE_URL"),mr(lx))},e.\u0275prov=de({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),Ax=(()=>{class e{constructor(e,t){this.http=e,this.baseUrl=t}getTooltips(){return this.http.get(this.baseUrl+"SystemConfiguration/GetConfiguration").toPromise()}getCategories(){return this.http.get(this.baseUrl+"Categories/GetCategories").toPromise()}getContentAreas(e){return this.http.get(this.baseUrl+"ContentAreas/GetContentAreas?categoryId="+e).toPromise()}getIndicators(e){return this.http.get(this.baseUrl+"Indicators/GetIndicators?contentAreaId="+e).toPromise()}getIndicator(e){return this.http.get(this.baseUrl+"Indicators/GetIndicator?indicatorId="+e).toPromise()}getMeasures(e){return this.http.get(this.baseUrl+"Measures/GetMeasures?indicatorId="+e).toPromise()}getMeasure(e){return this.http.get(this.baseUrl+"Measures/GetMeasure?measureId="+e)}getMeasureDescription(e){return this.http.get(this.baseUrl+"Measures/GetDescription?measureId="+e).toPromise()}getTimeConceptData(e){return this.http.get(this.baseUrl+"TimeConcept/GetTimeConceptFilter?measureId="+e).toPromise()}getTimeConceptTwoData(e,t){for(var n="",r=0;r<t.length;r++)n+="timeConceptOnes["+r+"]="+t[r]+"&";return n=n.substring(0,n.length-1),n=encodeURI(n),this.http.get(this.baseUrl+"TimeConcept/GetTimeConceptTwoFilters?measureId="+e+"&"+n).toPromise()}getGeographicData(e){return this.http.get(this.baseUrl+"Geography/GetGeographyFilter?measureId="+e).toPromise()}getOtherFilters(e){return this.http.get(this.baseUrl+"OtherFilters/GetOtherFilters?measureId="+e).toPromise()}getBookmarks(e){return this.http.get(this.baseUrl+"SavedBookmark/LoadBookmark?savedBookmarkSeq="+e).toPromise()}getGeographicGroupings(e){return this.http.get(this.baseUrl+"Geography/GetGeographyGroupings?measureId="+e).toPromise()}getGeographicDataFromGrouping(e,t,n){return this.http.get(this.baseUrl+"Geography/GetGeographyFilterFromGrouping?measureId="+e+"&groupingId="+t+"&groupingType="+n).toPromise()}}return e.\u0275fac=function(t){return new(t||e)(mr(Py),mr("BASE_URL"))},e.\u0275prov=de({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();class ux{constructor(e){Object.assign(this,e)}}class hx{constructor(e){this.MeasureSeq=-1,this.ContentAreaSeq=-1,Object.assign(this,e)}}var dx=(()=>(function(e){e.Table="selected-table",e.Map="selected-map",e.Chart="selected-chart",e.EmbeddedMap="selected-embedded"}(dx||(dx={})),dx))(),px=(()=>(function(e){e.Download="Download Data",e.SaveImage="Save Image",e.ShareMap="Share Map",e.AdvancedQueryAction="Advanced Query",e.GenerateCitationAction="Generate Citation",e.EmbeddedMapAction="Embedded Map"}(px||(px={})),px))(),fx={prefix:"fas",iconName:"chart-bar",icon:[512,512,["bar-chart"],"f080","M32 32C49.67 32 64 46.33 64 64V400C64 408.8 71.16 416 80 416H480C497.7 416 512 430.3 512 448C512 465.7 497.7 480 480 480H80C35.82 480 0 444.2 0 400V64C0 46.33 14.33 32 32 32zM128 128C128 110.3 142.3 96 160 96H352C369.7 96 384 110.3 384 128C384 145.7 369.7 160 352 160H160C142.3 160 128 145.7 128 128zM288 192C305.7 192 320 206.3 320 224C320 241.7 305.7 256 288 256H160C142.3 256 128 241.7 128 224C128 206.3 142.3 192 160 192H288zM416 288C433.7 288 448 302.3 448 320C448 337.7 433.7 352 416 352H160C142.3 352 128 337.7 128 320C128 302.3 142.3 288 160 288H416z"]},gx={prefix:"fas",iconName:"chart-line",icon:[512,512,["line-chart"],"f201","M64 400C64 408.8 71.16 416 80 416H480C497.7 416 512 430.3 512 448C512 465.7 497.7 480 480 480H80C35.82 480 0 444.2 0 400V64C0 46.33 14.33 32 32 32C49.67 32 64 46.33 64 64V400zM342.6 278.6C330.1 291.1 309.9 291.1 297.4 278.6L240 221.3L150.6 310.6C138.1 323.1 117.9 323.1 105.4 310.6C92.88 298.1 92.88 277.9 105.4 265.4L217.4 153.4C229.9 140.9 250.1 140.9 262.6 153.4L320 210.7L425.4 105.4C437.9 92.88 458.1 92.88 470.6 105.4C483.1 117.9 483.1 138.1 470.6 150.6L342.6 278.6z"]},mx={prefix:"fas",iconName:"chart-pie",icon:[576,512,["pie-chart"],"f200","M304 16.58C304 7.555 310.1 0 320 0C443.7 0 544 100.3 544 224C544 233 536.4 240 527.4 240H304V16.58zM32 272C32 150.7 122.1 50.34 238.1 34.25C248.2 32.99 256 40.36 256 49.61V288L412.5 444.5C419.2 451.2 418.7 462.2 411 467.7C371.8 495.6 323.8 512 272 512C139.5 512 32 404.6 32 272zM558.4 288C567.6 288 575 295.8 573.8 305C566.1 360.9 539.1 410.6 499.9 447.3C493.9 452.1 484.5 452.5 478.7 446.7L320 288H558.4z"]},yx={prefix:"fas",iconName:"check",icon:[448,512,[10004,10003],"f00c","M438.6 105.4C451.1 117.9 451.1 138.1 438.6 150.6L182.6 406.6C170.1 419.1 149.9 419.1 137.4 406.6L9.372 278.6C-3.124 266.1-3.124 245.9 9.372 233.4C21.87 220.9 42.13 220.9 54.63 233.4L159.1 338.7L393.4 105.4C405.9 92.88 426.1 92.88 438.6 105.4H438.6z"]},wx={prefix:"fas",iconName:"chevron-down",icon:[448,512,[],"f078","M224 416c-8.188 0-16.38-3.125-22.62-9.375l-192-192c-12.5-12.5-12.5-32.75 0-45.25s32.75-12.5 45.25 0L224 338.8l169.4-169.4c12.5-12.5 32.75-12.5 45.25 0s12.5 32.75 0 45.25l-192 192C240.4 412.9 232.2 416 224 416z"]},vx={prefix:"fas",iconName:"chevron-left",icon:[320,512,[9001],"f053","M224 480c-8.188 0-16.38-3.125-22.62-9.375l-192-192c-12.5-12.5-12.5-32.75 0-45.25l192-192c12.5-12.5 32.75-12.5 45.25 0s12.5 32.75 0 45.25L77.25 256l169.4 169.4c12.5 12.5 12.5 32.75 0 45.25C240.4 476.9 232.2 480 224 480z"]},bx={prefix:"fas",iconName:"chevron-right",icon:[320,512,[9002],"f054","M96 480c-8.188 0-16.38-3.125-22.62-9.375c-12.5-12.5-12.5-32.75 0-45.25L242.8 256L73.38 86.63c-12.5-12.5-12.5-32.75 0-45.25s32.75-12.5 45.25 0l192 192c12.5 12.5 12.5 32.75 0 45.25l-192 192C112.4 476.9 104.2 480 96 480z"]},Cx={prefix:"fas",iconName:"circle-check",icon:[512,512,[61533,"check-circle"],"f058","M0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256C512 397.4 397.4 512 256 512C114.6 512 0 397.4 0 256zM371.8 211.8C382.7 200.9 382.7 183.1 371.8 172.2C360.9 161.3 343.1 161.3 332.2 172.2L224 280.4L179.8 236.2C168.9 225.3 151.1 225.3 140.2 236.2C129.3 247.1 129.3 264.9 140.2 275.8L204.2 339.8C215.1 350.7 232.9 350.7 243.8 339.8L371.8 211.8z"]},Bx={prefix:"fas",iconName:"circle-exclamation",icon:[512,512,["exclamation-circle"],"f06a","M256 0C114.6 0 0 114.6 0 256s114.6 256 256 256s256-114.6 256-256S397.4 0 256 0zM232 152C232 138.8 242.8 128 256 128s24 10.75 24 24v128c0 13.25-10.75 24-24 24S232 293.3 232 280V152zM256 400c-17.36 0-31.44-14.08-31.44-31.44c0-17.36 14.07-31.44 31.44-31.44s31.44 14.08 31.44 31.44C287.4 385.9 273.4 400 256 400z"]},_x={prefix:"fas",iconName:"circle-info",icon:[512,512,["info-circle"],"f05a","M256 0C114.6 0 0 114.6 0 256s114.6 256 256 256s256-114.6 256-256S397.4 0 256 0zM256 128c17.67 0 32 14.33 32 32c0 17.67-14.33 32-32 32S224 177.7 224 160C224 142.3 238.3 128 256 128zM296 384h-80C202.8 384 192 373.3 192 360s10.75-24 24-24h16v-64H224c-13.25 0-24-10.75-24-24S210.8 224 224 224h32c13.25 0 24 10.75 24 24v88h16c13.25 0 24 10.75 24 24S309.3 384 296 384z"]},Ex={prefix:"fas",iconName:"circle-question",icon:[512,512,[62108,"question-circle"],"f059","M256 0C114.6 0 0 114.6 0 256s114.6 256 256 256s256-114.6 256-256S397.4 0 256 0zM256 400c-18 0-32-14-32-32s13.1-32 32-32c17.1 0 32 14 32 32S273.1 400 256 400zM325.1 258L280 286V288c0 13-11 24-24 24S232 301 232 288V272c0-8 4-16 12-21l57-34C308 213 312 206 312 198C312 186 301.1 176 289.1 176h-51.1C225.1 176 216 186 216 198c0 13-11 24-24 24s-24-11-24-24C168 159 199 128 237.1 128h51.1C329 128 360 159 360 198C360 222 347 245 325.1 258z"]},Fx={prefix:"fas",iconName:"copy",icon:[512,512,[],"f0c5","M384 96L384 0h-112c-26.51 0-48 21.49-48 48v288c0 26.51 21.49 48 48 48H464c26.51 0 48-21.49 48-48V128h-95.1C398.4 128 384 113.6 384 96zM416 0v96h96L416 0zM192 352V128h-144c-26.51 0-48 21.49-48 48v288c0 26.51 21.49 48 48 48h192c26.51 0 48-21.49 48-48L288 416h-32C220.7 416 192 387.3 192 352z"]},Tx={prefix:"fas",iconName:"download",icon:[512,512,[],"f019","M480 352h-133.5l-45.25 45.25C289.2 409.3 273.1 416 256 416s-33.16-6.656-45.25-18.75L165.5 352H32c-17.67 0-32 14.33-32 32v96c0 17.67 14.33 32 32 32h448c17.67 0 32-14.33 32-32v-96C512 366.3 497.7 352 480 352zM432 456c-13.2 0-24-10.8-24-24c0-13.2 10.8-24 24-24s24 10.8 24 24C456 445.2 445.2 456 432 456zM233.4 374.6C239.6 380.9 247.8 384 256 384s16.38-3.125 22.62-9.375l128-128c12.49-12.5 12.49-32.75 0-45.25c-12.5-12.5-32.76-12.5-45.25 0L288 274.8V32c0-17.67-14.33-32-32-32C238.3 0 224 14.33 224 32v242.8L150.6 201.4c-12.49-12.5-32.75-12.5-45.25 0c-12.49 12.5-12.49 32.75 0 45.25L233.4 374.6z"]},Sx={prefix:"fas",iconName:"earth-americas",icon:[512,512,[127758,"earth","earth-america","globe-americas"],"f57d","M512 256C512 397.4 397.4 512 256 512C114.6 512 0 397.4 0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256zM57.71 192.1L67.07 209.4C75.36 223.9 88.99 234.6 105.1 239.2L162.1 255.7C180.2 260.6 192 276.3 192 294.2V334.1C192 345.1 198.2 355.1 208 359.1C217.8 364.9 224 374.9 224 385.9V424.9C224 440.5 238.9 451.7 253.9 447.4C270.1 442.8 282.5 429.1 286.6 413.7L289.4 402.5C293.6 385.6 304.6 371.1 319.7 362.4L327.8 357.8C342.8 349.3 352 333.4 352 316.1V307.9C352 295.1 346.9 282.9 337.9 273.9L334.1 270.1C325.1 261.1 312.8 255.1 300.1 255.1H256.1C245.9 255.1 234.9 253.1 225.2 247.6L190.7 227.8C186.4 225.4 183.1 221.4 181.6 216.7C178.4 207.1 182.7 196.7 191.7 192.1L197.7 189.2C204.3 185.9 211.9 185.3 218.1 187.7L242.2 195.4C250.3 198.1 259.3 195 264.1 187.9C268.8 180.8 268.3 171.5 262.9 165L249.3 148.8C239.3 136.8 239.4 119.3 249.6 107.5L265.3 89.12C274.1 78.85 275.5 64.16 268.8 52.42L266.4 48.26C262.1 48.09 259.5 48 256 48C163.1 48 84.4 108.9 57.71 192.1L57.71 192.1zM437.6 154.5L412 164.8C396.3 171.1 388.2 188.5 393.5 204.6L410.4 255.3C413.9 265.7 422.4 273.6 433 276.3L462.2 283.5C463.4 274.5 464 265.3 464 256C464 219.2 454.4 184.6 437.6 154.5H437.6z"]},xx={prefix:"fas",iconName:"filter",icon:[512,512,[],"f0b0","M3.853 54.87C10.47 40.9 24.54 32 40 32H472C487.5 32 501.5 40.9 508.1 54.87C514.8 68.84 512.7 85.37 502.1 97.33L320 320.9V448C320 460.1 313.2 471.2 302.3 476.6C291.5 482 278.5 480.9 268.8 473.6L204.8 425.6C196.7 419.6 192 410.1 192 400V320.9L9.042 97.33C-.745 85.37-2.765 68.84 3.854 54.87L3.853 54.87z"]},Qx={prefix:"fas",iconName:"floppy-disk",icon:[448,512,[128426,128190,"save"],"f0c7","M433.1 129.1l-83.9-83.9C342.3 38.32 327.1 32 316.1 32H64C28.65 32 0 60.65 0 96v320c0 35.35 28.65 64 64 64h320c35.35 0 64-28.65 64-64V163.9C448 152.9 441.7 137.7 433.1 129.1zM224 416c-35.34 0-64-28.66-64-64s28.66-64 64-64s64 28.66 64 64S259.3 416 224 416zM320 208C320 216.8 312.8 224 304 224h-224C71.16 224 64 216.8 64 208v-96C64 103.2 71.16 96 80 96h224C312.8 96 320 103.2 320 112V208z"]},kx={prefix:"fas",iconName:"gears",icon:[640,512,["cogs"],"f085","M286.3 155.1C287.4 161.9 288 168.9 288 175.1C288 183.1 287.4 190.1 286.3 196.9L308.5 216.7C315.5 223 318.4 232.1 314.7 241.7C312.4 246.1 309.9 252.2 307.1 257.2L304 262.6C300.1 267.6 297.7 272.4 294.2 277.1C288.5 284.7 278.5 287.2 269.5 284.2L241.2 274.9C230.5 283.8 218.3 290.9 205 295.9L198.1 324.9C197 334.2 189.8 341.6 180.4 342.8C173.7 343.6 166.9 344 160 344C153.1 344 146.3 343.6 139.6 342.8C130.2 341.6 122.1 334.2 121 324.9L114.1 295.9C101.7 290.9 89.5 283.8 78.75 274.9L50.53 284.2C41.54 287.2 31.52 284.7 25.82 277.1C22.28 272.4 18.98 267.5 15.94 262.5L12.92 257.2C10.13 252.2 7.592 247 5.324 241.7C1.62 232.1 4.458 223 11.52 216.7L33.7 196.9C32.58 190.1 31.1 183.1 31.1 175.1C31.1 168.9 32.58 161.9 33.7 155.1L11.52 135.3C4.458 128.1 1.62 119 5.324 110.3C7.592 104.1 10.13 99.79 12.91 94.76L15.95 89.51C18.98 84.46 22.28 79.58 25.82 74.89C31.52 67.34 41.54 64.83 50.53 67.79L78.75 77.09C89.5 68.25 101.7 61.13 114.1 56.15L121 27.08C122.1 17.8 130.2 10.37 139.6 9.231C146.3 8.418 153.1 8 160 8C166.9 8 173.7 8.418 180.4 9.23C189.8 10.37 197 17.8 198.1 27.08L205 56.15C218.3 61.13 230.5 68.25 241.2 77.09L269.5 67.79C278.5 64.83 288.5 67.34 294.2 74.89C297.7 79.56 300.1 84.42 304 89.44L307.1 94.83C309.9 99.84 312.4 105 314.7 110.3C318.4 119 315.5 128.1 308.5 135.3L286.3 155.1zM160 127.1C133.5 127.1 112 149.5 112 175.1C112 202.5 133.5 223.1 160 223.1C186.5 223.1 208 202.5 208 175.1C208 149.5 186.5 127.1 160 127.1zM484.9 478.3C478.1 479.4 471.1 480 464 480C456.9 480 449.9 479.4 443.1 478.3L423.3 500.5C416.1 507.5 407 510.4 398.3 506.7C393 504.4 387.8 501.9 382.8 499.1L377.4 496C372.4 492.1 367.6 489.7 362.9 486.2C355.3 480.5 352.8 470.5 355.8 461.5L365.1 433.2C356.2 422.5 349.1 410.3 344.1 397L315.1 390.1C305.8 389 298.4 381.8 297.2 372.4C296.4 365.7 296 358.9 296 352C296 345.1 296.4 338.3 297.2 331.6C298.4 322.2 305.8 314.1 315.1 313L344.1 306.1C349.1 293.7 356.2 281.5 365.1 270.8L355.8 242.5C352.8 233.5 355.3 223.5 362.9 217.8C367.6 214.3 372.5 210.1 377.5 207.9L382.8 204.9C387.8 202.1 392.1 199.6 398.3 197.3C407 193.6 416.1 196.5 423.3 203.5L443.1 225.7C449.9 224.6 456.9 224 464 224C471.1 224 478.1 224.6 484.9 225.7L504.7 203.5C511 196.5 520.1 193.6 529.7 197.3C535 199.6 540.2 202.1 545.2 204.9L550.5 207.9C555.5 210.1 560.4 214.3 565.1 217.8C572.7 223.5 575.2 233.5 572.2 242.5L562.9 270.8C571.8 281.5 578.9 293.7 583.9 306.1L612.9 313C622.2 314.1 629.6 322.2 630.8 331.6C631.6 338.3 632 345.1 632 352C632 358.9 631.6 365.7 630.8 372.4C629.6 381.8 622.2 389 612.9 390.1L583.9 397C578.9 410.3 571.8 422.5 562.9 433.2L572.2 461.5C575.2 470.5 572.7 480.5 565.1 486.2C560.4 489.7 555.6 492.1 550.6 496L545.2 499.1C540.2 501.9 534.1 504.4 529.7 506.7C520.1 510.4 511 507.5 504.7 500.5L484.9 478.3zM512 352C512 325.5 490.5 304 464 304C437.5 304 416 325.5 416 352C416 378.5 437.5 400 464 400C490.5 400 512 378.5 512 352z"]},Ux=kx,Ox={prefix:"fas",iconName:"link",icon:[640,512,[128279,"chain"],"f0c1","M172.5 131.1C228.1 75.51 320.5 75.51 376.1 131.1C426.1 181.1 433.5 260.8 392.4 318.3L391.3 319.9C381 334.2 361 337.6 346.7 327.3C332.3 317 328.9 297 339.2 282.7L340.3 281.1C363.2 249 359.6 205.1 331.7 177.2C300.3 145.8 249.2 145.8 217.7 177.2L105.5 289.5C73.99 320.1 73.99 372 105.5 403.5C133.3 431.4 177.3 435 209.3 412.1L210.9 410.1C225.3 400.7 245.3 404 255.5 418.4C265.8 432.8 262.5 452.8 248.1 463.1L246.5 464.2C188.1 505.3 110.2 498.7 60.21 448.8C3.741 392.3 3.741 300.7 60.21 244.3L172.5 131.1zM467.5 380C411 436.5 319.5 436.5 263 380C213 330 206.5 251.2 247.6 193.7L248.7 192.1C258.1 177.8 278.1 174.4 293.3 184.7C307.7 194.1 311.1 214.1 300.8 229.3L299.7 230.9C276.8 262.1 280.4 306.9 308.3 334.8C339.7 366.2 390.8 366.2 422.3 334.8L534.5 222.5C566 191 566 139.1 534.5 108.5C506.7 80.63 462.7 76.99 430.7 99.9L429.1 101C414.7 111.3 394.7 107.1 384.5 93.58C374.2 79.2 377.5 59.21 391.9 48.94L393.5 47.82C451 6.731 529.8 13.25 579.8 63.24C636.3 119.7 636.3 211.3 579.8 267.7L467.5 380z"]},Ix={prefix:"fas",iconName:"location-pin",icon:[384,512,["map-marker"],"f041","M384 192C384 279.4 267 435 215.7 499.2C203.4 514.5 180.6 514.5 168.3 499.2C116.1 435 0 279.4 0 192C0 85.96 85.96 0 192 0C298 0 384 85.96 384 192H384z"]},Lx={prefix:"fas",iconName:"magnifying-glass",icon:[512,512,[128269,"search"],"f002","M500.3 443.7l-119.7-119.7c27.22-40.41 40.65-90.9 33.46-144.7C401.8 87.79 326.8 13.32 235.2 1.723C99.01-15.51-15.51 99.01 1.724 235.2c11.6 91.64 86.08 166.7 177.6 178.9c53.8 7.189 104.3-6.236 144.7-33.46l119.7 119.7c15.62 15.62 40.95 15.62 56.57 0C515.9 484.7 515.9 459.3 500.3 443.7zM79.1 208c0-70.58 57.42-128 128-128s128 57.42 128 128c0 70.58-57.42 128-128 128S79.1 278.6 79.1 208z"]},Dx={prefix:"fas",iconName:"map",icon:[576,512,[62072,128506],"f279","M384 476.1L192 421.2V35.93L384 90.79V476.1zM416 88.37L543.1 37.53C558.9 31.23 576 42.84 576 59.82V394.6C576 404.4 570 413.2 560.9 416.9L416 474.8V88.37zM15.09 95.13L160 37.17V423.6L32.91 474.5C17.15 480.8 0 469.2 0 452.2V117.4C0 107.6 5.975 98.78 15.09 95.13V95.13z"]},Mx={prefix:"fas",iconName:"play",icon:[384,512,[9654],"f04b","M361 215C375.3 223.8 384 239.3 384 256C384 272.7 375.3 288.2 361 296.1L73.03 472.1C58.21 482 39.66 482.4 24.52 473.9C9.377 465.4 0 449.4 0 432V80C0 62.64 9.377 46.63 24.52 38.13C39.66 29.64 58.21 29.99 73.03 39.04L361 215z"]},Hx={prefix:"fas",iconName:"sort",icon:[320,512,["unsorted"],"f0dc","M27.66 224h264.7c24.6 0 36.89-29.78 19.54-47.12l-132.3-136.8c-5.406-5.406-12.47-8.107-19.53-8.107c-7.055 0-14.09 2.701-19.45 8.107L8.119 176.9C-9.229 194.2 3.055 224 27.66 224zM292.3 288H27.66c-24.6 0-36.89 29.77-19.54 47.12l132.5 136.8C145.9 477.3 152.1 480 160 480c7.053 0 14.12-2.703 19.53-8.109l132.3-136.8C329.2 317.8 316.9 288 292.3 288z"]},Rx={prefix:"fas",iconName:"spinner",icon:[512,512,[],"f110","M304 48C304 74.51 282.5 96 256 96C229.5 96 208 74.51 208 48C208 21.49 229.5 0 256 0C282.5 0 304 21.49 304 48zM304 464C304 490.5 282.5 512 256 512C229.5 512 208 490.5 208 464C208 437.5 229.5 416 256 416C282.5 416 304 437.5 304 464zM0 256C0 229.5 21.49 208 48 208C74.51 208 96 229.5 96 256C96 282.5 74.51 304 48 304C21.49 304 0 282.5 0 256zM512 256C512 282.5 490.5 304 464 304C437.5 304 416 282.5 416 256C416 229.5 437.5 208 464 208C490.5 208 512 229.5 512 256zM74.98 437C56.23 418.3 56.23 387.9 74.98 369.1C93.73 350.4 124.1 350.4 142.9 369.1C161.6 387.9 161.6 418.3 142.9 437C124.1 455.8 93.73 455.8 74.98 437V437zM142.9 142.9C124.1 161.6 93.73 161.6 74.98 142.9C56.24 124.1 56.24 93.73 74.98 74.98C93.73 56.23 124.1 56.23 142.9 74.98C161.6 93.73 161.6 124.1 142.9 142.9zM369.1 369.1C387.9 350.4 418.3 350.4 437 369.1C455.8 387.9 455.8 418.3 437 437C418.3 455.8 387.9 455.8 369.1 437C350.4 418.3 350.4 387.9 369.1 369.1V369.1z"]},Px={prefix:"fas",iconName:"stop",icon:[384,512,[9209],"f04d","M384 128v255.1c0 35.35-28.65 64-64 64H64c-35.35 0-64-28.65-64-64V128c0-35.35 28.65-64 64-64H320C355.3 64 384 92.65 384 128z"]},Nx={prefix:"fas",iconName:"table",icon:[512,512,[],"f0ce","M448 32C483.3 32 512 60.65 512 96V416C512 451.3 483.3 480 448 480H64C28.65 480 0 451.3 0 416V96C0 60.65 28.65 32 64 32H448zM224 256V160H64V256H224zM64 320V416H224V320H64zM288 416H448V320H288V416zM448 256V160H288V256H448z"]},Kx={prefix:"fas",iconName:"thumbtack",icon:[384,512,[128392,128204,"thumb-tack"],"f08d","M32 32C32 14.33 46.33 0 64 0H320C337.7 0 352 14.33 352 32C352 49.67 337.7 64 320 64H290.5L301.9 212.2C338.6 232.1 367.5 265.4 381.4 306.9L382.4 309.9C385.6 319.6 383.1 330.4 377.1 338.7C371.9 347.1 362.3 352 352 352H32C21.71 352 12.05 347.1 6.04 338.7C.0259 330.4-1.611 319.6 1.642 309.9L2.644 306.9C16.47 265.4 45.42 232.1 82.14 212.2L93.54 64H64C46.33 64 32 49.67 32 32zM224 384V480C224 497.7 209.7 512 192 512C174.3 512 160 497.7 160 480V384H224z"]},Vx={prefix:"fas",iconName:"triangle-exclamation",icon:[512,512,[9888,"exclamation-triangle","warning"],"f071","M506.3 417l-213.3-364c-16.33-28-57.54-28-73.98 0l-213.2 364C-10.59 444.9 9.849 480 42.74 480h426.6C502.1 480 522.6 445 506.3 417zM232 168c0-13.25 10.75-24 24-24S280 154.8 280 168v128c0 13.25-10.75 24-23.1 24S232 309.3 232 296V168zM256 416c-17.36 0-31.44-14.08-31.44-31.44c0-17.36 14.07-31.44 31.44-31.44s31.44 14.08 31.44 31.44C287.4 401.9 273.4 416 256 416z"]},Gx=Vx,jx=Vx,qx=n(67),zx=n(977),Wx=n(457),Xx=n(935);class Jx{}class $x{}class Yx{constructor(){this.otherFilterLabels=new Jx,this.hasGeographicGroupings=!1,this.selectedData=[],this.timePeriodCombinations=[],this.isPointMap=!1,this.displayTimePeriod2="",this.displayTimePeriod1="",this.emptyValueLabel="",this.timePeriod2Title="",this.data=[],this.timePeriod2List=null,this.otherFilters=[],this.buckets=[],this.extraDataLabels=new $x,this.title="",this.selectedTimePeriod1="",this.selectedTimePeriod2="",this.timePeriod1Title="",this.unit="",this.valueLabel="",this.possibleGeographicAreas=[],this.timePeriod1List=[],this.selectedGeographicAreas=[]}}class Zx{constructor(){this.label=""}}class eQ{constructor(){this.LegendColorGroupSeq=-1,this.IsColorReversed=!1,this.NumberOfBucketsInLegend=5,this.LegendAlgorithmSeq=-1,this.IsInteger=!1}}class tQ{constructor(){this.colors=[new Zx],this.configuration=new eQ}}class nQ{constructor(){this.selected=[],this.options=[]}}let rQ=(()=>{class e{constructor(){this.callbacks={left:e=>{},right:e=>{}}}onUpdateCallback(e,t){this.callbacks[e]=t}updateExtent(e,t){j_(this.callbacks,(n,r)=>{e!==r&&n(t)})}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=de({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),iQ=(()=>{class e{constructor(e,t){this.http=e,this.baseUrl=t}createWebsiteMetric(e){return e.DailyCookieGuid=this.dailyCookieGuid,this.http.post(`${this.baseUrl}WebsiteMetrics/WebsiteMetric`,e).pipe(ef(e=>{this.currentWebsiteMetricSeq=e.WebsiteMetricSeq}))}createWebsiteMetricAction(e){return e.WebsiteMetricSeq=this.currentWebsiteMetricSeq,this.http.post(`${this.baseUrl}WebsiteMetrics/WebsiteMetricAction`,e)}}return e.\u0275fac=function(t){return new(t||e)(mr(Py),mr("BASE_URL"))},e.\u0275prov=de({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();class oQ{constructor(e,t,n){this.geographicAreaIds=[],this.timePeriod1Values=[],this.otherFilters=[],e&&(this.geographicAreaIds=e),n&&(this.otherFilters=n),t&&(this.timePeriod1Values=t)}}class sQ{constructor(e,t){this.geographicAreaIds=[],this.timePeriod1Values=[],e&&(this.geographicAreaIds=e),t&&(this.timePeriod1Values=t)}}class aQ{constructor(e,t,n,r,i){this.queryOptions=new oQ,this.querySelections=new sQ,this.results=e,this.queryOptions=t,this.querySelections=n,this.panelSide=r,this.measure=i}}class lQ{constructor(e,t){this.data=e,this.headers=t}}const cQ=["downloadModal"];function AQ(e,t){if(1&e){const e=aa();na(0,"div",20),na(1,"div",21),na(2,"div",22),na(3,"div",23),ia(4,"fa-icon",24),na(5,"p"),Ra(6),ra(),ra(),ra(),na(7,"button",25),Aa("click",function(){const t=It(e).index;return da(2).remove(t)}),Ra(8,"\xd7 "),ra(),ra(),ra()}if(2&e){const e=t.$implicit,n=da(2);yo(4),ea("icon",n.faExclamationCircle),yo(2),Pa(e)}}function uQ(e,t){if(1&e){const e=aa();na(0,"div",26),na(1,"label"),na(2,"input",27),Aa("ngModelChange",function(t){return It(e),da(2).selectedDownloadFmt=t}),ra(),Ra(3),ra(),ra()}if(2&e){const e=t.$implicit,n=da(2);yo(2),ea("value",e.value)("ngModel",n.selectedDownloadFmt),yo(1),Na(" ",e.display," ")}}function hQ(e,t){1&e&&ia(0,"span",28)}function dQ(e,t){if(1&e){const e=aa();na(0,"div",2),na(1,"h3",3),Ra(2,"Download Data"),ra(),na(3,"button",4),Aa("click",function(){return It(e),da().dismiss()}),na(4,"span",5),Ra(5,"\xd7"),ra(),ra(),ra(),na(6,"div",6),$s(7,AQ,9,2,"div",7),na(8,"form",8),na(9,"div",9),na(10,"div",10),Ra(11,"* = Required"),ra(),ra(),na(12,"div",11),na(13,"label",12),Ra(14,"Format:"),ra(),na(15,"div",13),na(16,"fieldset"),na(17,"legend",14),Ra(18,"Format options for export of current side data"),ra(),$s(19,uQ,4,3,"div",15),ra(),ra(),ra(),ra(),ra(),na(20,"div",16),na(21,"button",17),Aa("click",function(){return It(e),da().download()}),$s(22,hQ,1,0,"span",18),Ra(23,"Download "),ra(),na(24,"button",19),Aa("click",function(){return It(e),da().dismiss()}),Ra(25,"Close"),ra(),ra()}if(2&e){const e=da();yo(7),ea("ngForOf",e.errorMessages),yo(12),ea("ngForOf",e.downloadFormats),yo(2),ea("disabled",!e.selectedDownloadFmt||!0===e.loadingDownload),yo(1),ea("ngIf",!0===e.loadingDownload)}}function pQ(e,t){if(1&e){const e=aa();na(0,"button",29),Aa("click",function(){return It(e),da().open()}),ia(1,"fa-icon",30),Ra(2," \xa0Download Data\n"),ra()}if(2&e){const e=da();ea("disabled",e.disabled),zs("aria-label",e.ariaLabel),yo(1),ea("icon",e.faDownload)}}let fQ=(()=>{class e{constructor(e,t,n,r,i){this.modalService=e,this.http=t,this.dataService=n,this.websiteMetricService=r,this.baseUrl=i,this.queryResult=null,this.disabled=!1,this.ariaLabel="Download Data",this.downloadFormats=[{value:"csv",display:"Comma-Separated Values"},{value:"tsv",display:"Tab-Separated Values"},{value:"xls",display:"Excel (XLS)"},{value:"xlsx",display:"Excel (XLSX)"},{value:"xml",display:"XML"}],this.faDownload=Tx,this.faExclamationCircle=Bx,this.selectedDownloadFmt="",this.loadingDownload=!1,this.errorMessages=[]}ngAfterViewInit(){try{setTimeout(()=>{this.isFileSaverSupported=!!new Blob})}catch(WI){setTimeout(()=>{this.isFileSaverSupported=!1})}}open(){this.modal=this.modalService.open(this.downloadModal),this.lastRequest=this.dataService.getLastQueryRequest()}download(){var e,t,n,r,i,o,s,a,l,c,A,u,h,d,p,f,g;this.errorMessages=[],this.websiteMetricService.createWebsiteMetricAction(new ux({Action:px.Download,Tab:this.selectedTab,Information:(null===(t=null===(e=this.queryResult)||void 0===e?void 0:e.measure)||void 0===t?void 0:t.titleWithQuery)+"-"+this.selectedDownloadFmt})).subscribe();let m="Export/";switch(this.selectedDownloadFmt){case"csv":m+=(null===(r=null===(n=this.queryResult)||void 0===n?void 0:n.measure)||void 0===r?void 0:r.cdcApiEndpoint)?"CdcCsv":"Csv";break;case"tsv":m+=(null===(o=null===(i=this.queryResult)||void 0===i?void 0:i.measure)||void 0===o?void 0:o.cdcApiEndpoint)?"CdcTsv":"Tsv";break;case"xls":m+=(null===(a=null===(s=this.queryResult)||void 0===s?void 0:s.measure)||void 0===a?void 0:a.cdcApiEndpoint)?"CdcXls":"Xls";break;case"xlsx":m+=(null===(c=null===(l=this.queryResult)||void 0===l?void 0:l.measure)||void 0===c?void 0:c.cdcApiEndpoint)?"CdcXlsx":"Xlsx";break;case"xml":m+=(null===(u=null===(A=this.queryResult)||void 0===A?void 0:A.measure)||void 0===u?void 0:u.cdcApiEndpoint)?"CdcXml":"Xml";break;default:throw new Error("Invalid type!")}this.loadingDownload=!0;let y=null;this.queryResult&&this.queryResult.measure&&(y=new aQ(new lQ(null,null===(h=this.queryResult.results)||void 0===h?void 0:h.headers),new oQ,new sQ,null===(d=this.queryResult)||void 0===d?void 0:d.panelSide,null===(p=this.queryResult)||void 0===p?void 0:p.measure)),this.http.post(this.baseUrl+m,(null===(g=null===(f=this.queryResult)||void 0===f?void 0:f.measure)||void 0===g?void 0:g.cdcApiEndpoint)?y:this.lastRequest,{responseType:"arraybuffer",observe:"response"}).toPromise().then(e=>{if(this.loadingDownload=!1,e){const t=e.headers.get("Content-Disposition").split(";")[1].trim().split("=")[1].replace(/"/g,""),n=e.headers.get("Content-Type"),r=new Blob([e.body],{type:n});Wx.saveAs(r,t)}void 0!==this.modal&&this.modal.close("downloaded")}).catch(e=>{this.loadingDownload=!1,this.errorMessages.push("An expected error occurred while downloading the file.\n Please try again later.")})}dismiss(){this.modalService.dismissAll()}remove(e){this.errorMessages.splice(e,1)}}return e.\u0275fac=function(t){return new(t||e)(Zs(Yg),Zs(Py),Zs(cx),Zs(iQ),Zs("BASE_URL"))},e.\u0275cmp=Ge({type:e,selectors:[["download"]],viewQuery:function(e,t){if(1&e&&yA(cQ,5,Bc),2&e){let e;mA(e=vA())&&(t.downloadModal=e.first)}},inputs:{queryResult:"queryResult",disabled:"disabled",ariaLabel:"ariaLabel",selectedTab:"selectedTab"},decls:3,vars:1,consts:[["downloadModal",""],["type","button","class","btn btn-primary data-option-button","title","Download Data",3,"disabled","click",4,"ngIf"],[1,"header-section"],["id","download-header","tabindex","0",1,"modal-title"],["type","button","data-dismiss","modal","aria-label","Close",1,"close",3,"click"],["aria-hidden","true"],[1,"modal-body"],["class","errorList",4,"ngFor","ngForOf"],["name","downloadDataForm"],[1,"col-xs-12"],[1,"required-text","bottomMargin"],[1,"form-group","form-section"],["data-required","true"],[1,"col-xs-9"],[1,"sr-only"],["class","radio",4,"ngFor","ngForOf"],[1,"footer-section"],["type","button",1,"btn","btn-primary","pull-left",3,"disabled","click"],["class","spinner-border spinner-border-sm","aria-hidden","true",4,"ngIf"],["type","button","data-dismiss","modal",1,"btn","btn-secondary",3,"click"],[1,"errorList"],["role","alert",1,"row","alert","withMargin","alert-danger"],["tabindex","0",1,"col-lg-11","col-sm-10","alerts"],[1,"alert-row"],["aria-hidden","true",3,"icon"],["aria-label","Close Error Message",1,"close","alert-close",3,"click"],[1,"radio"],["type","radio","name","radiogroup","ng-required","!selectedDownloadFmt",3,"value","ngModel","ngModelChange"],["aria-hidden","true",1,"spinner-border","spinner-border-sm"],["type","button","title","Download Data",1,"btn","btn-primary","data-option-button",3,"disabled","click"],["aria-hidden","true",1,"button-icon",3,"icon"]],template:function(e,t){1&e&&($s(0,dQ,26,4,"ng-template",null,0,_A),$s(2,pQ,3,3,"button",1)),2&e&&(yo(2),ea("ngIf",t.isFileSaverSupported))},directives:[sh,ih,Yd,Td,Wd,Yb,np,ud,Fd,$d],styles:[".footer-section[_ngcontent-%COMP%], .form-section[_ngcontent-%COMP%], .header-section[_ngcontent-%COMP%]{display:flex}.header-section[_ngcontent-%COMP%]{justify-content:space-between;padding:8px 16px;border-bottom:1px solid #e4e4e4}.footer-section[_ngcontent-%COMP%]{justify-content:space-between;padding:16px;border-top:1px solid #e4e4e4}.form-section[_ngcontent-%COMP%]{flex-direction:row;grid-gap:24px;gap:24px;margin-left:48px}.modal-body[_ngcontent-%COMP%]{padding-bottom:0}"]}),e})();function gQ(e,t){if(1&e&&(na(0,"div"),na(1,"h2",1),Ra(2),ra(),ra()),2&e){const e=da();yo(1),ea("id",e.panelSide+e.tab+"Title"),yo(1),Pa(e.displayTitle)}}let mQ=(()=>{class e{constructor(){this.displayTitle="",this.panelSide="",this.tab="",this.showTitle=!0}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=Ge({type:e,selectors:[["mi-header"]],inputs:{displayTitle:"displayTitle",panelSide:"panelSide",tab:"tab",showTitle:"showTitle"},decls:1,vars:1,consts:[[4,"ngIf"],[1,"my-4","miTabTitle","header-title","text-center",3,"id"]],template:function(e,t){1&e&&$s(0,gQ,3,2,"div",0),2&e&&ea("ngIf",t.showTitle)},directives:[sh],styles:[".header-title[_ngcontent-%COMP%]{padding-bottom:.35em}"]}),e})();function yQ(e,t){if(1&e&&(na(0,"div"),na(1,"div",5),na(2,"div",6),ia(3,"div",7),ia(4,"div",8),ra(),na(5,"div",9),Ra(6),ra(),ra(),ra()),2&e){const e=t.$implicit;yo(3),ea("ngStyle",e.style),yo(3),Pa(e.label)}}let wQ=(()=>{class e{constructor(){this.unit=""}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=Ge({type:e,selectors:[["map-legend"]],inputs:{legendColors:"legendColors",unit:"unit"},decls:7,vars:2,consts:[[1,"map-legend","container"],[1,"miTabLegendHeader","row"],[4,"ngFor","ngForOf"],[1,"row"],[1,"legendUnits","col-12","topBorder"],[1,"row",2,"padding-bottom","5px"],[1,"miTabLegendColorContainer","col-3","offset-1"],[1,"miTabLegendColor","row",3,"ngStyle"],["aria-hidden","true",1,"clearfix"],[1,"text-center","col-8"]],template:function(e,t){1&e&&(na(0,"div",0),na(1,"div",1),Ra(2," Legend "),ra(),$s(3,yQ,7,2,"div",2),na(4,"div",3),na(5,"div",4),Ra(6),ra(),ra(),ra()),2&e&&(yo(3),ea("ngForOf",t.legendColors),yo(3),Na(" Units: ",t.unit," "))},directives:[ih,dh],styles:[".map-legend[_ngcontent-%COMP%]{list-style:none;margin-bottom:10px;margin-left:10px;z-index:50;background-color:#fffc;width:calc(30%);max-width:300px;min-width:150px}.miTabLegendHeader[_ngcontent-%COMP%]{justify-content:center}"]}),e})();const vQ=["dropdown"];function bQ(e,t){1&e&&(na(0,"span",8),Ra(1," (optional)"),ra())}function CQ(e,t){if(1&e&&(na(0,"button",9),Ra(1," \xa0"),ia(2,"fa-icon",10),na(3,"span",11),Ra(4),ra(),ra()),2&e){const e=da();ea("ngbPopover",e.tooltipText),zs("alt",e.tooltipText),yo(2),ea("icon",e.faInfoCircle),yo(2),Pa(e.tooltipText)}}const BQ=function(e,t){return{customMultiSelect:e,"customMultiSelect-multiSelection":t}};let _Q=(()=>{class e{constructor(){this._list=[],this.singleSelection=!1,this.idField="id",this.textField="name",this.maxShown=4,this.selectedChange=new oA,this.handleChanged=new oA,this.handleDropDownClose=new oA,this.faInfoCircle=_x,this.componentId="",this.translation={selectAll:"Select All",selectNone:"Deselect All",reset:"Reset",search:"Filter Selections Below",nothingSelected:"Nothing Selected"},this.settings={singleSelection:this.singleSelection,itemsShowLimit:this.maxShown,enableCheckAll:!0,selectAllText:"Select All",unSelectAllText:"Deselect All",searchPlaceholderText:"Filter Selections Below",idField:this.idField,textField:this.textField,allowSearchFilter:!0,closeDropDownOnSelection:this.singleSelection},this.placeholderText=""}set list(e){this._list=e}ngOnInit(){this.settings={singleSelection:this.singleSelection,itemsShowLimit:this.maxShown,enableCheckAll:!0,selectAllText:"Select All",unSelectAllText:"Deselect All",searchPlaceholderText:"Filter Selections Below",idField:this.idField,textField:this.textField,allowSearchFilter:!0,closeDropDownOnSelection:this.singleSelection},this.componentId=`${this.label}-ng-multiselect-dropdown`,null==this.required&&(this.required=!0),this.placeholderText=this.buttonLabel?this.buttonLabel:"Select "+this.label}ngModelChange(e){this.selected=Array.isArray(e)?e:[e],this.handleChange()}handleSelectAll(e){var t;this.selected=e,null===(t=this.selected)||void 0===t||t.forEach((e,t)=>{this.selected[t]=this._list.find(e=>e[this.settings.idField]===this.selected[t][this.settings.idField])}),this.selectedChange.emit(this.selected),this.handleChanged.emit(this.selected)}handleDeselectAll(e){this.selected=[],this.selectedChange.emit(this.selected),this.handleChanged.emit(this.selected)}handleChange(e){var t;this.selected=this.selected?this.selected:[],null===(t=this.selected)||void 0===t||t.forEach((e,t)=>{this.selected[t]=this._list.find(e=>e[this.settings.idField]===this.selected[t][this.settings.idField])}),this.selectedChange.emit(this.selected),this.handleChanged.emit(this.selected)}toggleMultiSelect(e){var t;null===(t=this.multiSelect)||void 0===t||t.toggleDropdown(e)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=Ge({type:e,selectors:[["select-list"]],viewQuery:function(e,t){if(1&e&&yA(vQ,5),2&e){let e;mA(e=vA())&&(t.multiSelect=e.first)}},inputs:{_list:"_list",label:"label",buttonLabel:"buttonLabel",singleSelection:"singleSelection",tooltipText:"tooltipText",spinner:"spinner",required:"required",loading:"loading",elementId:"elementId",idField:"idField",textField:"textField",maxShown:"maxShown",list:"list",selected:"selected"},outputs:{selectedChange:"selectedChange",handleChanged:"handleChanged",handleDropDownClose:"handleDropDownClose"},decls:9,vars:14,consts:[[1,"bottomMargin","noPadding","parent-pull-down"],[1,"noPadding"],[1,"selectListLabel","strong"],["class","text-muted",4,"ngIf"],["class","btn btn-link btn-link-condensed",3,"ngbPopover",4,"ngIf"],[3,"ngClass"],[3,"id","placeholder","settings","data","ngModel","keydown.enter","ngModelChange","onDeSelect","onDeSelectAll","onDropDownClose","onSelectAll","onSelect"],["dropdown",""],[1,"text-muted"],[1,"btn","btn-link","btn-link-condensed",3,"ngbPopover"],["aria-hidden","true",1,"tooltipColor",3,"icon"],[1,"sr-only"]],template:function(e,t){1&e&&(na(0,"div",0),na(1,"div",1),na(2,"label",2),Ra(3),$s(4,bQ,2,0,"span",3),ra(),$s(5,CQ,5,4,"button",4),ra(),na(6,"div",5),na(7,"ng-multiselect-dropdown",6,7),Aa("keydown.enter",function(e){return t.toggleMultiSelect(e)})("ngModelChange",function(e){return t.selected=e})("onDeSelect",function(e){return t.handleChange(e)})("onDeSelectAll",function(e){return t.handleDeselectAll(e)})("onDropDownClose",function(e){return t.handleDropDownClose.emit(e)})("onSelectAll",function(e){return t.handleSelectAll(e)})("onSelect",function(e){return t.handleChange(e)}),ra(),ra(),ra()),2&e&&(yo(2),zs("id",t.elementId)("data-required",t.required),yo(1),Pa(t.label),yo(1),ea("ngIf",!1===t.required),yo(1),ea("ngIf",t.tooltipText),yo(1),ea("ngClass",qc(11,BQ,t.settings.singleSelection,!t.settings.singleSelection)),yo(1),ma("id",t.componentId),ea("placeholder",t.placeholderText)("settings",t.settings)("data",t._list)("ngModel",t.selected))},directives:[sh,nh,Ym,Fd,$d,Sm,Yb],styles:["select-list .strong{font-weight:500}select-list .tooltipColor{color:#999}"],encapsulation:2,changeDetection:0}),e})();function EQ(e,t){if(1&e&&(na(0,"div",21),Ra(1),ra()),2&e){const e=da(2);yo(1),Pa(e.errorMessage)}}function FQ(e,t){if(1&e){const e=aa();na(0,"button",22),Aa("click",function(){return It(e),da(2).toggleLegend()}),Ra(1),ra()}if(2&e){const e=da(2);yo(1),Na(" ",!0===e.mapConfig.showLegend?"Hide":"Show"," Legend ")}}function TQ(e,t){if(1&e){const e=aa();na(0,"button",23),Aa("click",function(){return It(e),da(2).toggleTitle()}),Ra(1),ra()}if(2&e){const e=da(2);yo(1),Na(" ",!0===e.mapConfig.showTitle?"Hide":"Show"," Title ")}}function SQ(e,t){if(1&e){const e=aa();na(0,"div",1),na(1,"div",2),na(2,"h5",3),Ra(3,"Map Options"),ra(),na(4,"button",4),Aa("click",function(){return It(e),da().closeModal()}),na(5,"span",5),Ra(6,"\xd7"),ra(),ra(),ra(),na(7,"div",6),$s(8,EQ,2,1,"div",7),$s(9,FQ,2,1,"button",8),$s(10,TQ,2,1,"button",9),na(11,"div",10),na(12,"label",11),Ra(13," Map Graphic Transparency "),na(14,"input",12),Aa("change",function(t){return It(e),da().updateMapOpacity(t)}),ra(),ra(),na(15,"label",11),Ra(16,"Overlay Layer Transparency "),na(17,"input",13),Aa("change",function(t){return It(e),da().updateOverlayOpacity(t)}),ra(),ra(),ra(),na(18,"select-list",14),Aa("selectedChange",function(t){return It(e),da().overlayLayerSelected=t})("handleChanged",function(t){return It(e),da().toggleOverlay(t)}),ra(),na(19,"select-list",15),Aa("selectedChange",function(t){return It(e),da().poiLayerSelected=t})("handleChanged",function(t){return It(e),da().toggleFeatureLayer(t)}),ra(),na(20,"aside",16),na(21,"p",17),Ra(22,"Environmental Health conditions are often caused by many factors, not one. MiTracking points of interest, overlay layers and data cannot tell us:"),ra(),na(23,"ol",18),na(24,"li"),Ra(25,"The cause of health conditions"),ra(),na(26,"li"),Ra(27,"Make associations between any measures or indicators"),ra(),ra(),ra(),ra(),na(28,"div",19),na(29,"button",20),Aa("click",function(){return It(e),da().closeModal()}),Ra(30,"Close"),ra(),ra(),ra()}if(2&e){const e=da();yo(8),ea("ngIf",e.errorMessage),yo(1),ea("ngIf","displayInfo"===e.mapConfig.display),yo(1),ea("ngIf","displayInfo"===e.mapConfig.display),yo(4),ea("value",e.mapLayerOpacity),yo(3),ea("disabled",!e.overlayLayerSelected.length)("value",e.overlayLayerOpacity),yo(1),ea("list",e.overlayLayers)("selected",e.overlayLayerSelected)("singleSelection",!0),yo(1),ea("list",e.poiLayers)("selected",e.poiLayerSelected)("singleSelection",!0)}}let xQ=(()=>{class e{constructor(e){this.overlayLayerService=e,this.side="",this.poiLayers=[],this.overlayLayers=[],this.errorMessage=null,this.poiLayerSelected=[],this.overlayLayerSelected=[],this.mapLayerOpacity=70,this.overlayLayerOpacity=70,this.loading=!1,this.mapConfigChange=new oA,this.michMapChange=new oA,this.closeModalEventEmitter=new oA}ngOnInit(){var e,t,n,r,i,o,s,a;this.loading=!0,this.overlayLayerService.getOverlayLayers().then(e=>{this.overlayLayers=e.filter(e=>!e.isPOI&&e.isActive),this.poiLayers=e.filter(e=>e.isPOI&&e.isActive),this.loading=!1},()=>{this.errorMessage="An error has occurred in retrieving Layer options. Please close and try again.",this.loading=!1}),(null===(t=null===(e=this.overlayLayerService)||void 0===e?void 0:e.overlayLayerSelected)||void 0===t?void 0:t.get(this.side))&&(null===(r=null===(n=this.overlayLayerService)||void 0===n?void 0:n.overlayLayerSelected)||void 0===r?void 0:r.get(this.side).length)>0?(this.overlayLayerSelected=this.overlayLayerService.overlayLayerSelected.get(this.side),this.overlayLayerOpacity=this.overlayLayerSelected[0].opacity?100*this.overlayLayerSelected[0].opacity:70):this.overlayLayerService.overlayLayerSelected.set(this.side,[]),(null===(o=null===(i=this.overlayLayerService)||void 0===i?void 0:i.poiLayerSelected)||void 0===o?void 0:o.get(this.side))&&(null===(a=null===(s=this.overlayLayerService)||void 0===s?void 0:s.poiLayerSelected)||void 0===a?void 0:a.get(this.side).length)>0?this.poiLayerSelected=this.overlayLayerService.poiLayerSelected.get(this.side):this.overlayLayerService.poiLayerSelected.set(this.side,[]),this.currentMapFeature&&(this.mapLayerOpacity=100*this.currentMapFeature.opacity)}toggleLegend(){this.mapConfig.showLegend=!this.mapConfig.showLegend,this.mapConfigChange.emit(this.mapConfig)}toggleTitle(){this.mapConfig.showTitle=!this.mapConfig.showTitle,this.mapConfigChange.emit(this.mapConfig)}toggleOverlay(e){var t;let n="Overlay";if(this.overlayLayerSelected=e,"None"==(null===(t=this.overlayLayerSelected[0])||void 0===t?void 0:t.name)||this.overlayLayerSelected.length<1){const e=this.michMap.map.layers.find(e=>e.id===n);return e&&(this.michMap.map.remove(e),this.michMapChange.emit(this.michMap)),void this.overlayLayerService.overlayLayerSelected.set(this.side,this.overlayLayerSelected)}const r=this.michMap.map.layers.find(e=>e.id===n);r&&this.michMap.map.remove(r);let i=this.overlayLayerSelected[0],o=i.restUrl;if(!o)return;try{const e=new URL(o);o=e.origin+e.pathname,o=o.replace(/\/exportImage\/?$/,""),o=o.replace(/\/export\/?$/,""),o.endsWith("/")&&(o=o.slice(0,-1))}catch(l){return}const s=o.toLowerCase().includes("imageserver"),a=o.toLowerCase().includes("mapserver");o.toLowerCase().includes("weather.noaa.gov")?PE.loadModules(["esri/layers/BaseTileLayer","esri/request"]).then(([e,t])=>{let r=new(e.createSubclass({properties:{urlTemplate:null},fetchTile:function(e,n,r,o){var s;const a=256,l=40075016.686/(a*Math.pow(2,e)),c=r*a*l-20037508.342789244,A=20037508.342789244-n*a*l,u=c+a*l,h=A-a*l,d=(null===(s=i.restUrl)||void 0===s?void 0:s.split("?")[0])||i.restUrl;return t(`${d}?F=image&FORMAT=PNG32&TRANSPARENT=true&SIZE=256%2C256&BBOX=${c}%2C${h}%2C${u}%2C${A}&BBOXSR=3857&IMAGESR=3857&DPI=90&TIME=`,{responseType:"image",allowImageDataAccess:!0}).then(e=>e.data).catch(e=>{console.warn("NOAA tile failed to load:",e);const t=document.createElement("canvas");return t.width=t.height=a,t})}}))({id:n,opacity:this.overlayLayerOpacity/100,title:i.name||"NOAA Service"});this.addLayerToMap(r)}).catch(()=>{console.warn("Custom NOAA layer failed, falling back to standard approach"),this.addSimpleFallback(i.restUrl,n)}):s?PE.loadModules(["esri/layers/ImageryLayer"]).then(([e])=>{let t=new e({url:o,id:n,opacity:this.overlayLayerOpacity/100});this.addLayerToMap(t)}):a?PE.loadModules(["esri/layers/MapImageLayer"]).then(([e])=>{let t=new e({url:o,id:n,opacity:this.overlayLayerOpacity/100});this.addLayerToMap(t)}):PE.loadModules(["esri/layers/ImageryLayer"]).then(([e])=>{let t=new e({url:o,id:n,opacity:this.overlayLayerOpacity/100});this.addLayerToMap(t)})}addLayerToMap(e){e.load().then(()=>{this.michMap.map.add(e),this.overlayLayerService.overlayLayerSelected.set(this.side,this.overlayLayerSelected),this.michMapChange.emit(this.michMap)}).catch(t=>{if(console.error("Layer failed to load:",t),"imagery"===e.type)PE.loadModules(["esri/layers/MapImageLayer"]).then(([t])=>{let n=new t({url:e.url,id:e.id,opacity:e.opacity});this.addLayerWithSecondaryFallback(n)});else if("map-image"===e.type)e.url&&e.url.toLowerCase().includes("weather.noaa.gov")?PE.loadModules(["esri/layers/WMSLayer"]).then(([t])=>{let n=e.url;n.includes("/exportImage")&&(n=n.split("/exportImage")[0]);let r=new t({url:n,id:e.id,opacity:e.opacity});this.addLayerWithSecondaryFallback(r)}).catch(()=>{console.error("WMS fallback also failed for NOAA service"),PE.loadModules(["esri/layers/ImageryLayer"]).then(([t])=>{let n=e.url;n.includes("/exportImage")&&(n=n.split("/exportImage")[0]);let r=new t({url:n,id:e.id,opacity:e.opacity});this.addLayerWithSecondaryFallback(r)})}):PE.loadModules(["esri/layers/ImageryLayer"]).then(([t])=>{let n=new t({url:e.url,id:e.id,opacity:e.opacity});this.addLayerWithSecondaryFallback(n)});else if("web-tile"===e.type){let t=e.urlTemplate?e.urlTemplate.replace("/tile/{level}/{row}/{col}",""):e.url;PE.loadModules(["esri/layers/ImageryLayer"]).then(([n])=>{let r=new n({url:t,id:e.id,opacity:e.opacity});this.addLayerWithSecondaryFallback(r)})}else console.error("All layer type attempts failed for:",e.url||e.urlTemplate)})}addLayerWithSecondaryFallback(e){e.load().then(()=>{this.michMap.map.add(e),this.overlayLayerService.overlayLayerSelected.set(this.side,this.overlayLayerSelected),this.michMapChange.emit(this.michMap)}).catch(t=>{console.error("Secondary fallback layer also failed:",t),console.error("Final attempt failed for URL:",e.url)})}addSimpleFallback(e,t){e&&PE.loadModules(["esri/layers/MapImageLayer"]).then(([n])=>{let r=e;r.includes("/exportImage")&&(r=r.split("/exportImage")[0]);let i=new n({url:r,id:t,opacity:this.overlayLayerOpacity/100});i.load().then(()=>{this.michMap.map.add(i),this.overlayLayerService.overlayLayerSelected.set(this.side,this.overlayLayerSelected),this.michMapChange.emit(this.michMap)}).catch(e=>{console.error("All NOAA layer attempts failed:",e)})})}toggleFeatureLayer(e){var t;let n="PoiLayer";if(this.poiLayerSelected=e,this.overlayLayerService.poiLayerSelected.set(this.side,this.poiLayerSelected),this.poiLayerSelected&&"None"==(null===(t=this.poiLayerSelected[0])||void 0===t?void 0:t.name)||this.poiLayerSelected.length<1){const e=this.michMap.map.layers.find(e=>e.id===n);return void(e&&(this.michMap.map.remove(e),this.michMapChange.emit(this.michMap)))}const r=this.michMap.map.layers.find(e=>e.id===n);r&&this.michMap.map.remove(r),PE.loadModules(["esri/layers/FeatureLayer","esri/PopupTemplate"]).then(([e,t])=>{var r,i,o;let s=(null===(r=this.poiLayerSelected[0])||void 0===r?void 0:r.infoContent)?this.poiLayerSelected[0].infoContent.replace(/\r?\n/g,"<br />"):null===(i=this.poiLayerSelected[0])||void 0===i?void 0:i.infoContent,a=new t({title:null===(o=this.poiLayerSelected[0])||void 0===o?void 0:o.infoTitle,content:s}),l=new e({url:this.poiLayerSelected[0].restUrl,outFields:["*"],popupTemplate:a,id:n});this.poiLayerSelected[0].stateApiColumnName&&""!==this.poiLayerSelected[0].stateApiColumnName&&(l.definitionExpression=`${this.poiLayerSelected[0].stateApiColumnName} = '${this.poiLayerSelected[0].stateApiColumnValue}'`),this.michMap.map.add(l),this.michMapChange.emit(this.michMap)})}updateMapOpacity(e){setTimeout(()=>{this.mapLayerOpacity=e.target.value,this.currentMapFeature.opacity=this.mapLayerOpacity/100})}updateOverlayOpacity(e){setTimeout(()=>{this.overlayLayerSelected[0].opacity=e.target.value/100,this.overlayLayerOpacity=e.target.value,this.toggleOverlay(this.overlayLayerSelected)})}closeModal(){this.closeModalEventEmitter.emit(!0)}}return e.\u0275fac=function(t){return new(t||e)(Zs(eC))},e.\u0275cmp=Ge({type:e,selectors:[["mi-map-options"]],inputs:{mapConfig:"mapConfig",michMap:"michMap",currentMapFeature:"currentMapFeature",side:"side"},outputs:{mapConfigChange:"mapConfigChange",michMapChange:"michMapChange",closeModalEventEmitter:"closeModalEventEmitter"},decls:1,vars:1,consts:[["class","modal-content",4,"ngIf"],[1,"modal-content"],[1,"modal-header"],[1,"modal-title"],["type","button","aria-label","Close",1,"close",3,"click"],["aria-hidden","true"],[1,"modal-body"],["class","alert alert-danger  alert-dismissible fade show","role","alert",4,"ngIf"],["class","btn btn-primary active mr-1",3,"click",4,"ngIf"],["class","btn btn-primary active",3,"click",4,"ngIf"],[1,"form-group","mt-4","mb-0"],[1,"w-100"],["type","range",1,"form-control-range","layer-range",3,"value","change"],["type","range","id","formControlRange2",1,"form-control-range","layer-range",3,"disabled","value","change"],["label","Overlay Layer","button-label","a Layer",1,"col-lg-3","col-md-6","col-sm-6","col-12",3,"list","selected","singleSelection","selectedChange","handleChanged"],["label","Point of Interest Layer","button-label","a Layer",1,"col-lg-3","col-md-6","col-sm-6","col-12",3,"list","selected","singleSelection","selectedChange","handleChanged"],["role","alert","aria-labelledby","caution-heading","aria-describedby","caution-description",1,"alert","alert-warning"],["id","caution-heading"],["id","caution-description"],[1,"modal-footer"],["type","button",1,"btn","btn-secondary",3,"click"],["role","alert",1,"alert","alert-danger","alert-dismissible","fade","show"],[1,"btn","btn-primary","active","mr-1",3,"click"],[1,"btn","btn-primary","active",3,"click"]],template:function(e,t){1&e&&$s(0,SQ,31,12,"div",0),2&e&&ea("ngIf",!t.loading)},directives:[sh,_Q],styles:[""],encapsulation:2}),e})();const QQ=["locationModal"],kQ=["optionsModal"],UQ=["shareModal"];function OQ(e,t){if(1&e){const e=aa();na(0,"button",26),Aa("click",function(){return It(e),da().panelController.editDataOptions()}),ia(1,"fa-icon",27),Ra(2),ra()}if(2&e){const e=da();ma("title",e.panelController.editDataOptionsText()),ea("disabled",!e.areGraphicsDrawn),yo(1),ea("icon",e.faCogs),yo(1),Na("\xa0",e.panelController.editDataOptionsText(),"")}}function IQ(e,t){if(1&e&&(oa(0),ia(1,"fa-icon",29),sa()),2&e){const e=da(2);yo(1),ea("spin",!0)("icon",e.faSpinner)}}function LQ(e,t){if(1&e&&(oa(0),ia(1,"fa-icon",30),sa()),2&e){const e=da(2);yo(1),ea("icon",e.faMap)}}function DQ(e,t){if(1&e){const e=aa();na(0,"button",28),Aa("click",function(){return It(e),da().saveMap()}),$s(1,IQ,2,2,"ng-container",22),$s(2,LQ,2,1,"ng-container",22),Ra(3," \xa0Save Image "),ra()}if(2&e){const e=da();ea("disabled",e.savingMap||!e.areGraphicsDrawn),yo(1),ea("ngIf",e.savingMap),yo(1),ea("ngIf",!e.savingMap)}}function MQ(e,t){if(1&e&&(oa(0),ia(1,"fa-icon",29),sa()),2&e){const e=da(2);yo(1),ea("spin",!0)("icon",e.faSpinner)}}function HQ(e,t){if(1&e&&(oa(0),ia(1,"fa-icon",30),sa()),2&e){const e=da(2);yo(1),ea("icon",e.faChain)}}function RQ(e,t){if(1&e){const e=aa();na(0,"button",31),Aa("click",function(t){return It(e),da().createEmbeddedMapLink(),t.stopPropagation()}),$s(1,MQ,2,2,"ng-container",22),$s(2,HQ,2,1,"ng-container",22),Ra(3," \xa0Share Map "),ra()}if(2&e){const e=da();ea("disabled",e.creatingEmbeddedBookmark||!e.areGraphicsDrawn),yo(1),ea("ngIf",e.creatingEmbeddedBookmark),yo(1),ea("ngIf",!e.creatingEmbeddedBookmark)}}function PQ(e,t){if(1&e){const e=aa();na(0,"div"),na(1,"label",36),Ra(2),ra(),na(3,"ng-multiselect-dropdown",37),Aa("onSelect",function(){return It(e),da(3).otherFilterChange()})("ngModelChange",function(t){It(e);const n=da().index;return da(2).otherFilterOutput[n]=t}),ra(),ra()}if(2&e){const e=da(),t=e.$implicit,n=e.index,r=da(2);yo(1),wa("for","",r.panelController.panelSide,"-map-",t.label,""),yo(1),Na("",t.label,":"),yo(1),wa("id","",r.panelController.panelSide,"-map-",t.label,""),ea("settings",r.dropdownSettings)("data",t.input)("ngModel",r.otherFilterOutput[n])("disabled",r.disabledDropdowns)}}function NQ(e,t){if(1&e&&(na(0,"div",35),$s(1,PQ,4,9,"div",22),ra()),2&e){const e=t.$implicit;yo(1),ea("ngIf",e.input.length>1)}}function KQ(e,t){if(1&e&&(na(0,"div",32),$s(1,NQ,2,1,"div",33),ia(2,"div",34),ra()),2&e){const e=da();ma("id",e.panelController.panelSide+"OtherFilters"),yo(1),ea("ngForOf",e.otherFilterOptions)}}function VQ(e,t){1&e&&ia(0,"span",38)}function GQ(e,t){if(1&e){const e=aa();na(0,"li",50),Aa("click",function(){const t=It(e).$implicit;return da(3).setTimePeriod1AndDraw(t,null)}),na(1,"button",51),Ra(2),ra(),ra()}if(2&e){const e=t.$implicit;yo(2),Na(" ",e,"")}}const jQ=function(e){return{disabled:e}};function qQ(e,t){if(1&e&&(na(0,"div",40),na(1,"button",46),Ra(2),ia(3,"span",47),ra(),na(4,"ul",48),$s(5,GQ,3,1,"li",49),ra(),ra()),2&e){const e=da(2);yo(1),ya("id","",e.panelController.panelSide,"TimePeriod1Dropdown"),ma("title",e.mapData.timePeriod1Title+" Dropdown"),ea("ngClass",jc(6,jQ,!e.areGraphicsDrawn)),yo(1),Na(" ",e.mapData.displayTimePeriod1," "),yo(2),Js("aria-labelledby","",e.panelController.panelSide,"TimePeriod1Dropdown"),yo(1),ea("ngForOf",e.mapData.timePeriod1List)}}function zQ(e,t){if(1&e){const e=aa();na(0,"li",50),Aa("click",function(){const t=It(e).$implicit;return da(3).setTimePeriod2AndDraw(t)}),na(1,"button",51),Ra(2),ra(),ra()}if(2&e){const e=t.$implicit;yo(2),Na(" ",e,"")}}function WQ(e,t){if(1&e&&(na(0,"div",40),na(1,"button",52),Ra(2),ia(3,"span",47),ra(),na(4,"ul",48),$s(5,zQ,3,1,"li",49),ra(),ra()),2&e){const e=da(2);yo(1),ya("id","",e.panelController.panelSide,"TimePeriod2Dropdown"),ma("title",e.mapData.timePeriod2Title+" Dropdown"),ea("ngClass",jc(6,jQ,!e.areGraphicsDrawn)),yo(1),Na(" ",e.mapData.displayTimePeriod2," "),yo(2),Js("aria-labelledby","",e.panelController.panelSide,"TimePeriod2Dropdown"),yo(1),ea("ngForOf",e.mapData.timePeriod2List)}}const XQ=function(e,t,n,r){return{"two-drop-ups-one-panel":e,"one-drop-up-one-panel":t,"two-drop-ups-two-panels":n,"one-drop-up-two-panels":r}};function JQ(e,t){if(1&e){const e=aa();na(0,"div",39),na(1,"div",40),$s(2,qQ,6,8,"div",41),$s(3,WQ,6,8,"div",41),na(4,"button",42),Aa("click",function(){return It(e),da().previousTimeUnit()}),ia(5,"fa-icon",18),ra(),na(6,"button",43),Aa("click",function(){return It(e),da().startMapAnimation()}),ia(7,"fa-icon",18),ra(),na(8,"button",44),Aa("click",function(){return It(e),da().stopMapAnimation()}),ia(9,"fa-icon",18),ra(),na(10,"button",45),Aa("click",function(){return It(e),da().nextTimeUnit()}),ia(11,"fa-icon",18),ra(),ra(),ra()}if(2&e){const e=da();ea("ngClass",Wc(15,XQ,e.twoDropUpsOnePanelShowing(),e.oneDropUpOnePanelShowing(),e.twoDropUpsTwoPanelsShowing(),e.oneDropUpTwoPanelsShowing())),yo(2),ea("ngIf",e.mapData.timePeriod1List.length>1),yo(1),ea("ngIf",e.mapData.timePeriod2List&&e.mapData.timePeriod2List.length>1),yo(1),ya("id","",e.panelController.panelSide,"BackOneTimeUnit"),ea("ngClass",jc(20,jQ,!e.areGraphicsDrawn||e.mapAnimation)),yo(1),ea("icon",e.faChevronLeft),yo(1),ya("id","",e.panelController.panelSide,"StartMapTimeAnimation"),ea("ngClass",jc(22,jQ,!e.areGraphicsDrawn||e.mapAnimation)),yo(1),ea("icon",e.faPlay),yo(1),ya("id","",e.panelController.panelSide,"StopMapTimeAnimation"),ea("ngClass",jc(24,jQ,!e.areGraphicsDrawn||!e.mapAnimation)),yo(1),ea("icon",e.faStop),yo(1),ya("id","",e.panelController.panelSide,"ForwardOneTimeUnit"),ea("ngClass",jc(26,jQ,!e.areGraphicsDrawn||e.mapAnimation)),yo(1),ea("icon",e.faChevronRight)}}function $Q(e,t){if(1&e){const e=aa();na(0,"label",53),Aa("click",function(){return It(e),da().extentChange()}),na(1,"input",54),Aa("ngModelChange",function(t){return It(e),da().panelController.indexController.mapsLinked=t}),ra(),ia(2,"fa-icon",18),ra()}if(2&e){const e=da();yo(1),ea("ngModel",e.panelController.indexController.mapsLinked),yo(1),ea("icon",e.faChain)}}function YQ(e,t){if(1&e&&ia(0,"map-legend",56),2&e){const e=da(2);ma("unit",e.mapData.unit),ea("legendColors",e.legend.colors)}}function ZQ(e,t){if(1&e&&(na(0,"div",0),$s(1,YQ,1,2,"map-legend",55),ra()),2&e){const e=da();ma("id",e.panelController.panelSide+"Legend"),yo(1),ea("ngIf",e.mapConfig.showLegend)}}function ek(e,t){if(1&e){const e=aa();na(0,"button",61),Aa("click",function(){return It(e),da(2).panelController.editDataOptions()}),ia(1,"fa-icon",18),Ra(2),ra()}if(2&e){const e=da(2);ma("title",e.panelController.editDataOptionsText()),yo(1),ea("icon",e.faCogs),yo(1),Na("\xa0",e.panelController.editDataOptionsText()," ")}}function tk(e,t){if(1&e&&(na(0,"div"),na(1,"div",57),na(2,"div",58),$s(3,ek,3,3,"button",59),ra(),ia(4,"div",21),ra(),na(5,"div",60),ia(6,"fa-icon",18),Ra(7,"\xa0No results found. "),ra(),ra()),2&e){const e=da();yo(3),ea("ngIf","embedded"!==e.panelController.panelSide),yo(3),ea("icon",e.faExclamationTriangle)}}function nk(e,t){if(1&e){const e=aa();na(0,"button",61),Aa("click",function(){return It(e),da(2).panelController.editDataOptions()}),ia(1,"fa-icon",18),Ra(2),ra()}if(2&e){const e=da(2);ma("title",e.panelController.editDataOptionsText()),yo(1),ea("icon",e.faCogs),yo(1),Na("\xa0",e.panelController.editDataOptionsText()," ")}}function rk(e,t){if(1&e&&(na(0,"li"),Ra(1),ra()),2&e){const e=t.$implicit;yo(1),Pa(e)}}function ik(e,t){if(1&e&&(na(0,"div"),na(1,"div",57),na(2,"div",58),$s(3,nk,3,3,"button",59),ra(),ia(4,"div",21),ra(),ia(5,"fa-icon",18),Ra(6,"\xa0Maps are unavailable for the following reason(s): "),na(7,"ul"),$s(8,rk,2,1,"li",62),ra(),ra()),2&e){const e=da();yo(3),ea("ngIf","embedded"!==e.panelController.panelSide),yo(2),ea("icon",e.faExclamationTriangle),yo(3),ea("ngForOf",e.mapConfig.errorList)}}function ok(e,t){if(1&e&&(na(0,"div"),na(1,"div",63),ia(2,"fa-icon",18),Ra(3,"\xa0Run a query to view maps "),ra(),ra()),2&e){const e=da();yo(2),ea("icon",e.faInfoCircle)}}function sk(e,t){if(1&e&&(na(0,"div"),ia(1,"div",64),ra()),2&e){const e=da();yo(1),ea("innerHTML",e.panelController.footnotes,ui)}}function ak(e,t){if(1&e&&(na(0,"li"),Ra(1),ra()),2&e){const e=t.$implicit;yo(1),Pa(e)}}function lk(e,t){if(1&e&&(na(0,"div"),na(1,"div",79),na(2,"ul"),$s(3,ak,2,1,"li",62),ra(),ra(),ra()),2&e){const e=da(2);yo(3),ea("ngForOf",e.modalErrorList)}}function ck(e,t){if(1&e){const e=aa();na(0,"div",65),na(1,"button",66),Aa("click",function(){return It(e).$implicit.dismiss()}),na(2,"span",67),Ra(3,"\xd7"),ra(),ra(),na(4,"h4",68),Ra(5,"Find Location"),ra(),ra(),na(6,"div",69),na(7,"div",70),$s(8,lk,4,1,"div",22),na(9,"div"),na(10,"button",71),Aa("click",function(){return It(e),da().zoomToMyLocation()}),ia(11,"fa-icon",18),Ra(12,"\xa0Show My Location "),ra(),ra(),na(13,"div",72),Ra(14,"- OR -"),ra(),na(15,"div"),na(16,"div"),Ra(17,"Search by street address"),ra(),na(18,"div",73),na(19,"input",74),Aa("ngModelChange",function(t){return It(e),da().modalAddress=t}),ra(),na(20,"label",75),Ra(21,"Enter Address for geolocation on Map"),ra(),na(22,"span",76),na(23,"button",71),Aa("click",function(){return It(e),da().zoomToAddress()}),ia(24,"fa-icon",18),Ra(25,"\xa0Zoom To Address "),ra(),ra(),ra(),ra(),ra(),ia(26,"div",34),ra(),na(27,"div",77),na(28,"button",78),Aa("click",function(){return It(e).$implicit.dismiss()}),Ra(29,"Cancel"),ra(),ra()}if(2&e){const e=da();yo(8),ea("ngIf",e.modalErrorList.length>0),yo(3),ea("icon",e.faMapMarker),yo(8),ea("ngModel",e.modalAddress),yo(5),ea("icon",e.faMapMarker)}}function Ak(e,t){if(1&e){const e=aa();na(0,"mi-map-options",80),Aa("mapConfigChange",function(t){return It(e),da().mapConfig=t})("michMapChange",function(t){return It(e),da().michMap=t})("closeModalEventEmitter",function(){return It(e),da().dismissOptionsModal()}),ra()}if(2&e){const e=da();ea("mapConfig",e.mapConfig)("currentMapFeature",e.currentFeatureLayer)("side",e.panelController.panelSide)("michMap",e.michMap)}}function uk(e,t){if(1&e&&(na(0,"small",97),ia(1,"fa-icon",18),Ra(2," Link copied to clipboard! "),ra()),2&e){const e=da(2);yo(1),ea("icon",e.faCheck)}}function hk(e,t){if(1&e&&(na(0,"small",97),ia(1,"fa-icon",18),Ra(2," Iframe code copied to clipboard! "),ra()),2&e){const e=da(2);yo(1),ea("icon",e.faCheck)}}function dk(e,t){1&e&&ia(0,"iframe",98),2&e&&ea("src",da(2).embeddedMapUrlSafe,di)}function pk(e,t){1&e&&(na(0,"div",99),na(1,"p"),Ra(2,"Preview will appear here once the embedded map URL is generated."),ra(),ra())}function fk(e,t){if(1&e){const e=aa();na(0,"div",65),na(1,"h4",81),Ra(2,"Share Map"),ra(),na(3,"button",66),Aa("click",function(){return It(e).$implicit.dismiss()}),Ra(4,"\xd7"),ra(),ra(),na(5,"div",69),na(6,"div",82),na(7,"h5",83),Ra(8,"Embedded Map Link"),ra(),na(9,"p",84),Ra(10,"Copy this link to share the map or embed it in websites:"),ra(),na(11,"div",85),ia(12,"input",86),na(13,"button",87),Aa("click",function(){return It(e),da().copyEmbeddedMapLink()}),ia(14,"fa-icon",18),Ra(15,"\xa0Copy "),ra(),ra(),na(16,"div",88),$s(17,uk,3,1,"small",89),ra(),ra(),ia(18,"hr"),na(19,"div",82),na(20,"h5",83),Ra(21,"Iframe Embed Code"),ra(),na(22,"p",84),Ra(23,"Copy this HTML code to embed the map directly in your website:"),ra(),na(24,"div",85),na(25,"textarea",90),Ra(26),ra(),na(27,"button",91),Aa("click",function(){return It(e),da().copyEmbeddedMapIframe()}),ia(28,"fa-icon",18),Ra(29,"\xa0Copy "),ra(),ra(),na(30,"div",88),$s(31,hk,3,1,"small",89),ra(),ra(),ia(32,"hr"),na(33,"div",83),na(34,"h5",83),Ra(35,"Preview"),ra(),na(36,"p",92),Ra(37,"This is how the embedded map will appear on your website:"),ra(),na(38,"div",93),$s(39,dk,1,1,"iframe",94),$s(40,pk,3,0,"div",95),ra(),ra(),ra(),na(41,"div",77),na(42,"button",96),Aa("click",function(){return It(e).$implicit.dismiss()}),Ra(43,"Close"),ra(),ra()}if(2&e){const e=da();yo(12),ma("value",e.embeddedMapUrl),yo(2),ea("icon",e.faCopy),yo(3),ea("ngIf",e.embeddedMapCopied),yo(9),Pa(e.embeddedMapIframe),yo(2),ea("icon",e.faCopy),yo(3),ea("ngIf",e.embeddedMapIframeCopied),yo(8),ea("ngIf",e.embeddedMapUrlSafe),yo(1),ea("ngIf",!e.embeddedMapUrlSafe)}}let gk=(()=>{class e{constructor(e,t,n,r,i,o,s,a,l,c){this.dataService=e,this.featureLayerService=t,this.httpService=n,this.mapLinkService=r,this.baseUrl=i,this.modalService=o,this.overlayService=s,this.websiteMetricService=a,this.decimalPipe=l,this.sanitizer=c,this.queryResult=null,this.areGraphicsDrawnEvent=new oA,this.wkid=102100,this.faMap=Dx,this.faSpinner=Rx,this.faCogs=Ux,this.faDownload=Tx,this.faChevronLeft=vx,this.faPlay=Mx,this.faStop=Px,this.faChevronRight=bx,this.faThumbTack=Kx,this.faChain=Ox,this.faCopy=Fx,this.faCheck=yx,this.faExclamationTriangle=Gx,this.faInfoCircle=_x,this.faMapMarker=Ix,this.isActivated=!0,this.animationTimeIndex=0,this.mapData=new Yx,this.legend=new tQ,this.mapConfig={display:"runQuery",featureLayers:[],errorList:[],showTitle:!0,showSmoke:!1,showRadar:!1,showToggleCollegePOI:!1,overlayUrl:"",showLegend:!0,linkActive:!0,printDisabled:!0},this.response={queryOptions:void 0,querySelections:void 0,measure:void 0,results:void 0},this.measureData={titleWithQuery:"",emptyValueLabel:"",unit:"",isPointGeography:!1,hasDisplayType:!1,displayTypeValues:void 0,featureLayers:void 0,hasSuppressionType:!1,suppressionTypeValues:void 0},this.mapAnimation=null,this.address="",this.michMap=null,this.graphicsLayer=null,this.usedLegendEntries={},this.miTrackColors={bucketColor:void 0,noData:void 0,unselected:void 0},this.areGraphicsDrawn=!1,this.groupedData=[],this.otherFilterOptions=[],this.otherFilters=[],this.currentDataGrouping=[],this.hasOtherFilters=!1,this.otherFilterOutput=[],this.template={exportOptions:void 0,format:void 0,preserveScale:void 0},this.params={map:void 0,template:void 0},this.savingMap=!1,this.creatingEmbeddedBookmark=!1,this.embeddedMapUrl="",this.embeddedMapCopied=!1,this.embeddedMapIframe="",this.embeddedMapIframeCopied=!1,this.embeddedMapUrlSafe=null,this.disabledDropdowns=!1,this.isModalOpening=!1,this.isAllValuesIntegers=!1,this.modalAddress="",this.modalErrorList=[],this.dropdownSettings={singleSelection:!0,idField:"id",textField:"name",allowSearchFilter:!0,closeDropDownOnSelection:!0}}ngOnInit(){this.areGraphicsDrawn=!1,this.areGraphicsDrawnEvent.emit(!1),setTimeout(()=>{this.panelController&&this.panelController.panelSide?(this.activate(),this.setup()):setTimeout(()=>{this.activate(),this.setup()},500)},1e3),setTimeout(()=>{this.michMap&&this.configureZoomWidget()},1500),this.setupVisibilityObserver()}setupVisibilityObserver(){if("undefined"!=typeof window&&window.MutationObserver){let e=!1,t=Date.now();const n=()=>{if(this.panelController&&this.panelController.panelSide&&this.michMap){const n=document.getElementById(this.panelController.panelSide),r=Date.now();if(n){const i=null!==n.offsetParent&&n.offsetWidth>0&&n.offsetHeight>0;i&&!e&&r-t>500?(e=!0,t=r,setTimeout(()=>{this.michMap&&(this.resizeMap(),setTimeout(()=>{this.configureZoomWidget()},300))},100)):!i&&e&&(e=!1,t=r)}}},r=new MutationObserver(e=>{e.some(e=>"attributes"===e.type&&("class"===e.attributeName||"style"===e.attributeName))&&n()});window.IntersectionObserver&&setTimeout(()=>{if(this.panelController&&this.panelController.panelSide){const e=document.getElementById(this.panelController.panelSide);if(e){const t=new IntersectionObserver(e=>{e.forEach(e=>{e.isIntersecting&&e.intersectionRatio>.1&&setTimeout(()=>{n()},200)})},{threshold:.1,rootMargin:"10px"});t.observe(e),this.intersectionObserver=t}}},1e3),setTimeout(()=>{if(this.panelController&&this.panelController.panelSide){const e=document.getElementById(this.panelController.panelSide);if(e){const t=e.closest(".tab-pane")||e.parentElement;t&&r.observe(t,{attributes:!0,attributeFilter:["class","style"],childList:!1,subtree:!1}),this.visibilityObserver=r}}},1e3)}}activate(){this.michMapDeferer=Xx.defer(),this.mapConfig={errorList:[],showLegend:!0,showTitle:!0,showSmoke:!1,showRadar:!1,showToggleCollegePOI:!1,overlayUrl:"",featureLayers:[],linkActive:!1,display:"runQuery",printDisabled:!0},PE.setDefaultOptions({version:"4.30",css:!0}),PE.loadModules(["esri/geometry/Extent","esri/geometry/SpatialReference"]).then(([e,t])=>{const n=new t({wkid:this.wkid});this.miTrackExtent=new e({xmin:-10095e3,ymin:5071e3,xmax:-9073800,ymax:6171650,spatialReference:n})})}setup(){if(this.updateFilterAndReprocessDataDebounced=S_(this.updateFilterAndReprocessData,50),this.areGraphicsDrawn=!1,this.areGraphicsDrawnEvent.emit(!1),!this.michMap){if(!this.panelController||!this.panelController.panelSide)return void console.error("Map initialization failed: panelController.panelSide is not available");if(!document.getElementById(this.panelController.panelSide))return void console.error(`Map initialization failed: DOM element with ID '${this.panelController.panelSide}' not found`);PE.loadModules(["esri/Map","esri/views/MapView","esri/layers/GraphicsLayer"]).then(([e,t,n])=>{setTimeout(()=>{const r=new e({basemap:"topo"});this.graphicsLayer=new n,r.add(this.graphicsLayer),this.michMap=new t({container:this.panelController.panelSide,map:r,center:[-85.6,44.3],zoom:this.initialZoom||7,ui:{components:["attribution","zoom"]}}),this.michMap.watch("extent",()=>{this.extentChange()}),this.michMap.when(()=>{this.michMapDeferer.resolve(this.michMap),this.michMap.on("mouse-wheel",e=>{e.stopPropagation()}),setTimeout(()=>{this.configureZoomWidget()},100),this.michMap.when(()=>{setTimeout(()=>{this.configureZoomWidget()},200)})}),this.mapLinkService.onUpdateCallback(this.panelController.panelSide,e=>{this.michMap&&e&&(this.panelController.indexController.mapExtentEventList.push(this.panelController.panelSide),this.michMap.goTo(e))})})},()=>{this.changeMapOperationalStatus(!1)})}this.queryResult&&this.panelController.panelSide===this.queryResult.panelSide&&this.queryHandler(this.queryResult),this.clearDataSubscription=this.dataService.getClearDataEvent().subscribe(e=>{this.panelController.panelSide===e&&(this.clearMapData(),this.mapConfig.display="runQuery",this.mapConfig.errorList=[]),this.clearSubscriptions()}),this.michMap&&setTimeout(()=>{this.configureZoomWidget()},300)}ngOnDestroy(){this.mapModalRef&&(this.mapModalRef.dismiss(),this.mapModalRef=void 0),this.clearSubscriptions(),this.visibilityObserver&&(this.visibilityObserver.disconnect(),this.visibilityObserver=void 0),this.intersectionObserver&&(this.intersectionObserver.disconnect(),this.intersectionObserver=void 0),this.isModalOpening=!1,this.clearMapData(),this.panelController&&this.panelController.panelSide&&this.overlayService.onDestroy(this.panelController.panelSide)}clearSubscriptions(){this.bookmarkSubscription&&(this.bookmarkSubscription.unsubscribe(),this.bookmarkSubscription=void 0),this.clearDataSubscription&&(this.clearDataSubscription.unsubscribe(),this.clearDataSubscription=void 0)}clearMapData(){this.featureLayerService.clearFeatureLayerGraphicCache(),this.mapData={selectedData:[],displayTimePeriod1:"",displayTimePeriod2:"",isPointMap:!1,otherFilters:[],selectedTimePeriod1:"",selectedTimePeriod2:"",timePeriod1List:[],timePeriod1Title:"",timePeriod2List:[],timePeriod2Title:"",timePeriodCombinations:[],title:"",data:[],emptyValueLabel:"",valueLabel:"",extraDataLabels:new $x,buckets:[],selectedGeographicAreas:[],possibleGeographicAreas:[],unit:"m/s",hasGeographicGroupings:!1,possibleGeographicGroupings:[],otherFilterLabels:{OtherFilter9Text:"",OtherFilter4Text:"",OtherFilter10Text:"",OtherFilter3Text:"",OtherFilter1Text:"",OtherFilter2Text:"",OtherFilter5Text:"",OtherFilter8Text:"",OtherFilter7Text:"",OtherFilter6Text:""}},this.mapConfig.errorList=["An unknown error occurred while processing your query. Wait a few seconds, then try your query again. If the error persists, try again at a later time."],this.changeMapOperationalStatus(!1)}dataUriToBlob(e,t){let n=atob(e.split(",")[1]),r=[];for(let i=0;i<n.length;i++)r.push(n.charCodeAt(i));return new Blob([new Uint8Array(r)],{type:t})}extentChange(){if(this.michMap&&this.michMap.extent)if(this.miTrackExtent.contains(this.michMap.extent.center)){if(this.panelController.indexController.mapsLinked){const e=this.panelController.indexController.mapExtentEventList;Z_(e,e=>e===this.panelController.panelSide)?e.splice(e.indexOf(this.panelController.panelSide),1):this.mapLinkService.updateExtent(this.panelController.panelSide,this.michMap.extent)}}else this.resetMapExtent()}oneDropUpOnePanelShowing(){if(!this.panelController||!this.panelController.indexController)return!1;let e=this.mapData.timePeriod1List.length>1;const t=this.mapData.timePeriod2List&&this.mapData.timePeriod2List.length>1;return(e&&!t||!e&&t)&&!(this.panelController.indexController.leftPanelVisible&&this.panelController.indexController.rightPanelVisible)}twoDropUpsOnePanelShowing(){return!(!this.panelController||!this.panelController.indexController)&&this.mapData.timePeriod1List.length>1&&this.mapData.timePeriod2List&&this.mapData.timePeriod2List.length>1&&!(this.panelController.indexController.leftPanelVisible&&this.panelController.indexController.rightPanelVisible)}oneDropUpTwoPanelsShowing(){if(!this.panelController||!this.panelController.indexController)return!1;const e=this.mapData.timePeriod1List.length>1,t=this.mapData.timePeriod2List&&this.mapData.timePeriod2List.length>1;return(e&&!t||!e&&t)&&this.panelController.indexController.leftPanelVisible&&this.panelController.indexController.rightPanelVisible}twoDropUpsTwoPanelsShowing(){return!(!this.panelController||!this.panelController.indexController)&&this.mapData.timePeriod1List.length>1&&this.mapData.timePeriod2List&&this.mapData.timePeriod2List.length>1&&this.panelController.indexController.leftPanelVisible&&this.panelController.indexController.rightPanelVisible}drawMapFeatures(e){this.featureLayer=e;const t=this.michMap.map.layers.find(e=>e.id===this.panelController.panelSide+"_mapGraphic");if(t&&this.michMap.map.remove(t),e){this.michMap.closePopup();const t=e.layer.graphics.toArray();if(null!==this.mapData){const n=this.mapData.buckets;PE.loadModules(["esri/symbols/SimpleFillSymbol","esri/symbols/SimpleLineSymbol","esri/symbols/PictureFillSymbol","esri/Color","esri/PopupTemplate"]).then(([r,i,o,s,a])=>{const l=[],c=new i({color:[0,0,0,.6],width:e.borderWidth});for(let e=0;e<this.miTrackColors.bucketColor.length;e++)l.push(new r({color:this.miTrackColors.bucketColor[e],outline:c}));const A=new r({color:this.miTrackColors.noData,outline:c}),u=new r({color:this.miTrackColors.unselected,outline:c}),h=new o({url:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAPUlEQVQYV2NkYGD4z8DAwMiAH/yHKcCnGCyHbBI2xXAxdCuRFaNoxOY2kAIQQJEjWyFRVhPlGaKCh6gABwBcgBIJDnDinwAAAABJRU5ErkJggg==",outline:c,width:10,height:10}),d={};this.measureData.hasSuppressionType&&this.measureData.suppressionTypeValues.forEach(e=>{d[e.SuppressionTypeCode]=new o(e.Base64EncodedImage,c,10,10)});for(let p=0;p<t.length;p++){const r=t[p],i=r.attributes[e.matchingAttributeKey];let o=null;for(let e=0;e<this.mapData.selectedData.length;e++){const t=this.mapData.selectedData[e];if(t.id===i){o=t;break}}let s=!1;null===o&&(s=this.mapData.selectedGeographicAreas.indexOf(i)<0);const c=new a;if(c.title=this.mapData.selectedTimePeriod2&&this.mapData.hasGeographicGroupings?this.mapData.possibleGeographicGroupings[i]+" {"+e.matchingAttributeName+"} - "+this.mapData.selectedTimePeriod1+" / "+this.mapData.selectedTimePeriod2:this.mapData.selectedTimePeriod2&&!this.mapData.hasGeographicGroupings?"{"+e.matchingAttributeName+"} - "+this.mapData.selectedTimePeriod1+" / "+this.mapData.selectedTimePeriod2:!this.mapData.selectedTimePeriod2&&this.mapData.hasGeographicGroupings?this.mapData.possibleGeographicGroupings[i]+" {"+e.matchingAttributeName+"} - "+this.mapData.selectedTimePeriod1:"{"+e.matchingAttributeName+"} - "+this.mapData.selectedTimePeriod1,null===o){if(!s){r.symbol=A,r.attributes[this.mapData.valueLabel]="No data available.",c.content="<div>No data were available for this geographic area.</div>",r.popupTemplate=c;continue}if(s){r.symbol=u,r.attributes[this.mapData.valueLabel]="Unselected Geographic Area.",c.content="<div>This geographic area was unselected.</div>",r.popupTemplate=c;continue}}if(null!==o.value){r.attributes[this.mapData.valueLabel]=o.displayValue;for(let e=0;e<n.length;e++)if(this.isValueInBucket(n[e],o.value,e===n.length-1||this.isAllValuesIntegers||n[e].singleValueBucket)){r.symbol=l[e],c.content=this.buildHtmlInfoTemplateContent(this.mapData,o),r.popupTemplate=c;break}}else{if(this.measureData.hasSuppressionType){const t=V_(this.measureData.suppressionTypeValues,e=>e.SuppressionTypeCode===o.suppressionTypeCode);r.symbol=d[o.suppressionTypeCode],r.attributes[this.mapData.valueLabel]=t.SuppressionTypeValue,c.title=this.mapData.selectedTimePeriod2?"{"+e.matchingAttributeName+"}** - "+this.mapData.selectedTimePeriod1+" / "+this.mapData.selectedTimePeriod2:"{"+e.matchingAttributeName+"}** - "+this.mapData.selectedTimePeriod1,c.content=this.buildHtmlInfoTemplateContent(this.mapData,o),r.popupTemplate=c;continue}r.symbol=h,r.attributes[this.mapData.valueLabel]=this.mapData.emptyValueLabel,c.title=this.mapData.selectedTimePeriod2?"{"+e.matchingAttributeName+"}** - "+this.mapData.selectedTimePeriod1+" / "+this.mapData.selectedTimePeriod2:"{"+e.matchingAttributeName+"}** - "+this.mapData.selectedTimePeriod1,c.content=this.buildHtmlInfoTemplateContent(this.mapData,o),r.popupTemplate=c}}setTimeout(()=>{e.layer.id=this.panelController.panelSide+"_mapGraphic",e.layer.opacity=this.currentFeatureLayer?this.currentFeatureLayer.opacity:1,this.currentFeatureLayer=e.layer,this.michMap.map.add(e.layer)})})}}else if(this.mapData.isPointMap)for(let n=0;n<this.mapData.selectedData.length;n++)this.addPoint(this.mapData.selectedData[n]);this.areGraphicsDrawn||(this.areGraphicsDrawn=!0,this.areGraphicsDrawnEvent.emit(!0))}buildHtmlInfoTemplateContent(e,t){return"<div> <b>"+e.valueLabel+": "+t.displayValue+" </b>"+(e.otherFilterLabels.OtherFilter1Text?" <br> "+e.otherFilterLabels.OtherFilter1Text+": "+t.otherFilter1+" ":"")+(e.otherFilterLabels.OtherFilter10Text?" <br> "+e.otherFilterLabels.OtherFilter10Text+": "+t.otherFilter10+" ":"")+(e.otherFilterLabels.OtherFilter2Text?" <br> "+e.otherFilterLabels.OtherFilter2Text+": "+t.otherFilter2+" ":"")+(e.otherFilterLabels.OtherFilter3Text?" <br> "+e.otherFilterLabels.OtherFilter3Text+": "+t.otherFilter3+" ":"")+(e.otherFilterLabels.OtherFilter4Text?" <br> "+e.otherFilterLabels.OtherFilter4Text+": "+t.otherFilter4+" ":"")+(e.otherFilterLabels.OtherFilter5Text?" <br> "+e.otherFilterLabels.OtherFilter5Text+": "+t.otherFilter5+" ":"")+(e.otherFilterLabels.OtherFilter6Text?" <br> "+e.otherFilterLabels.OtherFilter6Text+": "+t.otherFilter6+" ":"")+(e.otherFilterLabels.OtherFilter7Text?" <br> "+e.otherFilterLabels.OtherFilter7Text+": "+t.otherFilter7+" ":"")+(e.otherFilterLabels.OtherFilter8Text?" <br> "+e.otherFilterLabels.OtherFilter8Text+": "+t.otherFilter8+" ":"")+(e.otherFilterLabels.OtherFilter9Text?" <br> "+e.otherFilterLabels.OtherFilter9Text+": "+t.otherFilter9+" ":"")+(e.extraDataLabels.ExtraneousData1Text?" <br> "+e.extraDataLabels.ExtraneousData1Text+": "+t.extraData1+" ":"")+(e.extraDataLabels.ExtraneousData2Text?" <br>"+e.extraDataLabels.ExtraneousData2Text+": "+t.extraData2+" ":"")+(e.extraDataLabels.ExtraneousData3Text?" <br>"+e.extraDataLabels.ExtraneousData3Text+": "+t.extraData3+" ":"")+(e.extraDataLabels.ExtraneousData4Text?" <br>"+e.extraDataLabels.ExtraneousData4Text+": "+t.extraData4+" ":"")+(e.extraDataLabels.ExtraneousData5Text?" <br>"+e.extraDataLabels.ExtraneousData5Text+": "+t.extraData5+" </div>":"</div>")}buildHtmlInfoTemplateContentForPoints(e,t){return(this.measureData.hasDisplayType?"<div> <b>"+e.valueLabel+": "+t.displayValue+" </b>":"<div> <b>"+e.valueLabel+": "+t.value+" </b>")+(e.otherFilterLabels.OtherFilter1Text?" <br> "+e.otherFilterLabels.OtherFilter1Text+": "+t.otherFilter1+" ":"")+(e.otherFilterLabels.OtherFilter10Text?" <br> "+e.otherFilterLabels.OtherFilter10Text+": "+t.otherFilter10+" ":"")+(e.otherFilterLabels.OtherFilter2Text?" <br> "+e.otherFilterLabels.OtherFilter2Text+": "+t.otherFilter2+" ":"")+(e.otherFilterLabels.OtherFilter3Text?" <br> "+e.otherFilterLabels.OtherFilter3Text+": "+t.otherFilter3+" ":"")+(e.otherFilterLabels.OtherFilter4Text?" <br> "+e.otherFilterLabels.OtherFilter4Text+": "+t.otherFilter4+" ":"")+(e.otherFilterLabels.OtherFilter5Text?" <br> "+e.otherFilterLabels.OtherFilter5Text+": "+t.otherFilter5+" ":"")+(e.otherFilterLabels.OtherFilter6Text?" <br> "+e.otherFilterLabels.OtherFilter6Text+": "+t.otherFilter6+" ":"")+(e.otherFilterLabels.OtherFilter7Text?" <br> "+e.otherFilterLabels.OtherFilter7Text+": "+t.otherFilter7+" ":"")+(e.otherFilterLabels.OtherFilter8Text?" <br> "+e.otherFilterLabels.OtherFilter8Text+": "+t.otherFilter8+" ":"")+(e.otherFilterLabels.OtherFilter9Text?" <br> "+e.otherFilterLabels.OtherFilter9Text+": "+t.otherFilter9+" ":"")+(e.extraDataLabels.ExtraneousData1Text?" <br> "+e.extraDataLabels.ExtraneousData1Text+": "+t.extraData1+" ":"")+(e.extraDataLabels.ExtraneousData2Text?" <br>"+e.extraDataLabels.ExtraneousData2Text+": "+t.extraData2+" ":"")+(e.extraDataLabels.ExtraneousData3Text?" <br>"+e.extraDataLabels.ExtraneousData3Text+": "+t.extraData3+" ":"")+(e.extraDataLabels.ExtraneousData4Text?" <br>"+e.extraDataLabels.ExtraneousData4Text+": "+t.extraData4+" ":"")+(e.extraDataLabels.ExtraneousData5Text?" <br>"+e.extraDataLabels.ExtraneousData5Text+": "+t.extraData5+" </div>":"</div>")}resetMapExtent(){this.michMap&&this.miTrackExtent&&(window.setTimeout(()=>{this.michMap.goTo(this.miTrackExtent)},15),this.michMap.closePopup())}configureZoomWidget(){if(!this.michMap)return;let e=0;const t=()=>{const n=this.michMap.ui.find("zoom");n?(this.michMap.ui.remove(n),setTimeout(()=>{this.michMap.ui.add("zoom","top-left"),setTimeout(()=>{const e=this.michMap.ui.find("zoom");e&&(e.visible=!0,e.disabled=!1,e.viewModel&&(e.viewModel.canZoomIn=!0,e.viewModel.canZoomOut=!0))},100)},50)):e<5?(e++,setTimeout(t,150)):(this.michMap.ui.add("zoom","top-left"),setTimeout(()=>{const e=this.michMap.ui.find("zoom");e&&(e.visible=!0,e.disabled=!1,e.viewModel&&(e.viewModel.canZoomIn=!0,e.viewModel.canZoomOut=!0))},100))};t()}refreshMapView(){this.michMap&&setTimeout(()=>{this.michMap&&(this.resizeMap(),setTimeout(()=>{this.configureZoomWidget(),setTimeout(()=>{const e=this.michMap.ui.find("zoom");!e||e.visible&&!e.disabled||(this.michMap.ui.remove("zoom"),setTimeout(()=>{this.michMap.ui.add("zoom","top-left")},100))},500)},300))},100)}resizeMap(){if(this.michMap){const e=this.michMap.extent;e&&window.setTimeout(()=>{this.michMap.goTo(e)},15)}}setZoomLevel(e){if(this.michMap&&e){const t=this.michMap.center;t&&window.setTimeout(()=>{this.michMap.goTo({center:t,zoom:e})},15)}}saveMap(){var e,t;this.savingMap=!0,this.websiteMetricService.createWebsiteMetricAction(new ux({Action:px.SaveImage,Tab:this.panelController.selectedTab,Information:(null===(t=null===(e=this.queryResult)||void 0===e?void 0:e.measure)||void 0===t?void 0:t.titleWithQuery)+"-JPEG"})).subscribe();let n=".data-options-buttons",r=".esriSimpleSlider",i=".map-link",o="#animationOptions";this.hideElement(n),this.hideElement(r),this.hideElement(i),this.hideElement(o),setTimeout(()=>{this.michMap.takeScreenshot({format:"png",quality:90,width:this.michMap.width,height:this.michMap.height}).then(e=>{const t=new Image;t.onload=()=>{const s=document.querySelector(".tab-content");s?zx(s,{useCORS:!0,allowTaint:!0,backgroundColor:"white",scale:1,logging:!1,height:s.scrollHeight,width:s.scrollWidth,x:0,y:0,ignoreElements:e=>null!==e.shadowRoot||"ESRI-ZOOM"===e.tagName||e.classList.contains("esri-widget")||e.classList.contains("esri-component"),onclone:e=>{e.querySelectorAll('[style*="adoptedStyleSheets"]').forEach(e=>{e.removeAttribute("style")})}}).then(e=>{this.createCombinedImageSimple(e,t,s),this.showElement(n),this.showElement(r),this.showElement(i),this.showElement(o),this.savingMap=!1}).catch(t=>{Wx.saveAs(this.dataUriToBlob(e.dataUrl,"image/jpg"),"mitracking-map.jpg"),this.showElement(n),this.showElement(r),this.showElement(i),this.showElement(o),this.savingMap=!1}):(Wx.saveAs(this.dataUriToBlob(e.dataUrl,"image/jpg"),"mitracking-map.jpg"),this.showElement(n),this.showElement(r),this.showElement(i),this.showElement(o),this.savingMap=!1)},t.src=e.dataUrl}).catch(e=>{const t=document.querySelector(".tab-content");t?zx(t,{useCORS:!0,allowTaint:!0,backgroundColor:"white",scale:1,logging:!1,ignoreElements:e=>null!==e.shadowRoot||"ESRI-ZOOM"===e.tagName||e.classList.contains("esri-widget")||e.classList.contains("esri-component"),onclone:e=>{e.querySelectorAll('[style*="adoptedStyleSheets"]').forEach(e=>{e.removeAttribute("style")})}}).then(e=>{Wx.saveAs(this.dataUriToBlob(e.toDataURL("image/jpeg",.9),"image/jpeg"),"mitracking-map.jpg"),this.showElement(n),this.showElement(r),this.showElement(i),this.showElement(o),this.savingMap=!1}).catch(e=>{this.showElement(n),this.showElement(r),this.showElement(i),this.showElement(o),this.savingMap=!1}):(this.showElement(n),this.showElement(r),this.showElement(i),this.showElement(o),this.savingMap=!1)})},2e3)}createCombinedImageSimple(e,t,n){const r=document.createElement("canvas");r.width=e.width,r.height=e.height;const i=r.getContext("2d");if(i){i.drawImage(e,0,0);const o=document.querySelector("#"+this.panelController.panelSide+"Legend");if(o){if(this.mapConfig.showLegend&&this.legend.colors&&this.legend.colors.length>0&&(0===o.offsetWidth||0===o.offsetHeight)){const e=o.querySelector("map-legend"),s=o.style.position,a=o.style.left,l=o.style.bottom,c=o.style.display,A=o.style.zIndex;let u="";o.style.position="static",o.style.display="block",o.style.left="auto",o.style.bottom="auto",o.style.zIndex="1000",o.style.background="white",o.style.padding="10px",o.style.width="auto",o.style.height="auto",o.style.minWidth="200px",o.style.minHeight="100px";const h=o.querySelectorAll("*"),d=[];return e&&(u=e.style.display,e.style.display="block",e.style.position="static",e.style.width="auto",e.style.height="auto",e.style.minWidth="200px",e.style.visibility="visible",e.style.opacity="1"),h.forEach(e=>{d.push({element:e,display:e.style.display,visibility:e.style.visibility,opacity:e.style.opacity}),e.style.display="none"===e.style.display?"block":e.style.display,e.style.visibility="visible",e.style.opacity="1"}),void setTimeout(()=>{zx(o,{useCORS:!0,allowTaint:!0,backgroundColor:"white",scale:1,logging:!0,ignoreElements:e=>null!==e.shadowRoot||e.classList.contains("esri-widget")||e.classList.contains("esri-component"),onclone:e=>{e.querySelectorAll('[style*="adoptedStyleSheets"]').forEach(e=>{e.removeAttribute("style")})}}).then(h=>{const p=h.getContext("2d").getImageData(0,0,h.width,h.height).data;let f=!1;for(let e=0;e<p.length;e+=4){const t=p[e+1],n=p[e+2],r=p[e+3];if((255!==p[e]||255!==t||255!==n)&&r>0){f=!0;break}}if(!f)return this.restoreLegendStyles(o,e,s,a,l,c,A,u,d),void this.drawLegendManually(i,t,n,r);if(this.restoreLegendStyles(o,e,s,a,l,c,A,u,d),h.width>0&&h.height>0){const e=document.querySelector("#"+this.panelController.panelSide);if(e){const o=e.getBoundingClientRect(),s=n.getBoundingClientRect(),a=o.top-s.top,l=o.height;let c=o.left-s.left+20,A=a+l-h.height-20;c+h.width>r.width&&(c=r.width-h.width-20),A<a+20&&(A=a+20),A+h.height>a+l-20&&(A=a+l-h.height-20),this.drawMapOnCombinedCanvas(i,t,n,r),i.fillStyle="rgba(255, 255, 255, 0.9)",i.fillRect(c-5,A-5,h.width+10,h.height+10),i.drawImage(h,c,A),this.saveFinalImage(r)}else this.drawMapOnCombinedCanvas(i,t,n,r),this.saveFinalImage(r)}else this.drawMapOnCombinedCanvas(i,t,n,r),this.saveFinalImage(r)}).catch(h=>{this.restoreLegendStyles(o,e,s,a,l,c,A,u,d),this.drawMapOnCombinedCanvas(i,t,n,r),this.saveFinalImage(r)})},100)}}else this.drawMapOnCombinedCanvas(i,t,n,r),this.saveFinalImage(r)}else Wx.saveAs(this.dataUriToBlob(t.src,"image/jpg"),"mitracking-map.jpg")}drawMapOnCombinedCanvas(e,t,n,r){const i=document.querySelector("#"+this.panelController.panelSide),o=n;if(i&&o){const n=i.getBoundingClientRect(),r=o.getBoundingClientRect();e.drawImage(t,n.left-r.left,n.top-r.top,n.width,n.height)}else e.drawImage(t,(r.width-t.width)/2,(r.height-t.height)/2)}restoreLegendStyles(e,t,n,r,i,o,s,a,l){e.style.position=n,e.style.left=r,e.style.bottom=i,e.style.display=o,e.style.zIndex=s,e.style.background="",e.style.padding="",e.style.width="",e.style.height="",e.style.minWidth="",e.style.minHeight="",t&&(t.style.display=a||"",t.style.position="",t.style.width="",t.style.height="",t.style.minWidth="",t.style.visibility="",t.style.opacity=""),l.forEach(e=>{e.element.style.display=e.display,e.element.style.visibility=e.visibility,e.element.style.opacity=e.opacity})}saveFinalImage(e){Wx.saveAs(this.dataUriToBlob(e.toDataURL("image/jpeg",.9),"image/jpeg"),"mitracking-map.jpg")}drawLegendManually(e,t,n,r){return this.legend.colors&&0!==this.legend.colors.length&&document.querySelector("#"+this.panelController.panelSide)?void this.loadPatternImagesAndDrawLegend(e,t,n,r):(this.drawMapOnCombinedCanvas(e,t,n,r),void this.saveFinalImage(r))}loadPatternImagesAndDrawLegend(e,t,n,r){const i=[];this.legend.colors.forEach((t,n)=>{if(t.style&&t.style.background&&t.style.background.includes("url(")){const r=t.style.background.match(/url\(([^)]+)\)/);if(r&&r[1]){let t=r[1];t=t.replace(/['"]/g,"");const o=new Promise(r=>{const i=new Image;i.onload=()=>{const t=e.createPattern(i,"repeat");r({index:n,pattern:t})},i.onerror=()=>{r({index:n,pattern:null})},i.src=t});i.push(o)}}}),Promise.all(i).then(i=>{this.drawLegendWithPatterns(e,t,n,r,i)}).catch(i=>{this.drawLegendWithoutPatterns(e,t,n,r)})}drawLegendWithPatterns(e,t,n,r,i){const o=document.querySelector("#"+this.panelController.panelSide);if(!o)return this.drawMapOnCombinedCanvas(e,t,n,r),void this.saveFinalImage(r);this.drawMapOnCombinedCanvas(e,t,n,r);const s=new Map;i.forEach(e=>{s.set(e.index,e.pattern)});const a=o.getBoundingClientRect(),l=n.getBoundingClientRect(),c=a.left-l.left,A=a.top-l.top,u=a.height,h=200,d=Math.min(25*this.legend.colors.length+60,300);let p=c+20,f=A+u-d-20;p+h>r.width&&(p=r.width-h-20),f<A+20&&(f=A+20),e.fillStyle="rgba(255, 255, 255, 0.95)",e.fillRect(p,f,h,d),e.strokeStyle="#ccc",e.lineWidth=1,e.strokeRect(p,f,h,d),e.fillStyle="#000",e.font="bold 14px Arial",e.fillText("Legend",p+10,f+20);let g=f+35;const m=15;this.legend.colors.forEach((t,n)=>{if(g+20>f+d-10)return;const r=s.get(n);r?(e.fillStyle=r,e.fillRect(p+10,g,m,m)):(e.fillStyle=t.style["background-color"]||t.color||"#ccc",e.fillRect(p+10,g,m,m)),e.strokeStyle="#000",e.lineWidth=.5,e.strokeRect(p+10,g,m,m),e.fillStyle="#000",e.font="12px Arial",e.fillText(t.label||`Item ${n+1}`,p+35,g+12),g+=20}),this.mapData&&this.mapData.unit&&(e.fillStyle="#666",e.font="11px Arial",e.fillText(`Units: ${this.mapData.unit}`,p+10,f+d-10)),this.saveFinalImage(r)}drawLegendWithoutPatterns(e,t,n,r){const i=document.querySelector("#"+this.panelController.panelSide);if(!i)return this.drawMapOnCombinedCanvas(e,t,n,r),void this.saveFinalImage(r);this.drawMapOnCombinedCanvas(e,t,n,r);const o=i.getBoundingClientRect(),s=n.getBoundingClientRect(),a=o.left-s.left,l=o.top-s.top,c=o.height,A=200,u=Math.min(25*this.legend.colors.length+60,300);let h=a+20,d=l+c-u-20;h+A>r.width&&(h=r.width-A-20),d<l+20&&(d=l+20),e.fillStyle="rgba(255, 255, 255, 0.95)",e.fillRect(h,d,A,u),e.strokeStyle="#ccc",e.lineWidth=1,e.strokeRect(h,d,A,u),e.fillStyle="#000",e.font="bold 14px Arial",e.fillText("Legend",h+10,d+20);let p=d+35;this.legend.colors.forEach((t,n)=>{p+20>d+u-10||(e.fillStyle=t.style["background-color"]||t.color||"#ccc",e.fillRect(h+10,p,15,15),e.strokeStyle="#000",e.lineWidth=.5,e.strokeRect(h+10,p,15,15),e.fillStyle="#000",e.font="12px Arial",e.fillText(t.label||`Item ${n+1}`,h+35,p+12),p+=20)}),this.mapData&&this.mapData.unit&&(e.fillStyle="#666",e.font="11px Arial",e.fillText(`Units: ${this.mapData.unit}`,h+10,d+u-10)),this.saveFinalImage(r)}drawCapturedLegend(e,t,n,r,i){const o=document.querySelector("#"+this.panelController.panelSide);if(o){const s=o.getBoundingClientRect(),a=r.getBoundingClientRect(),l=s.top-a.top,c=s.height;let A=s.left-a.left+20,u=l+c-t.height-20;A+t.width>i.width&&(A=i.width-t.width-20),u<l+20&&(u=l+20),u+t.height>l+c-20&&(u=l+c-t.height-20),this.drawMapOnCombinedCanvas(e,n,r,i),e.fillStyle="rgba(255, 255, 255, 0.9)",e.fillRect(A-5,u-5,t.width+10,t.height+10),e.drawImage(t,A,u),this.saveFinalImage(i)}else this.drawMapOnCombinedCanvas(e,n,r,i),this.saveFinalImage(i)}createCombinedImage(e,t,n,r){const i=document.createElement("canvas");i.width=e.width,i.height=e.height;const o=i.getContext("2d");if(o){o.drawImage(e,0,0);const s=document.querySelector("#"+this.panelController.panelSide),a=r;if(s&&a){const e=s.getBoundingClientRect(),n=a.getBoundingClientRect();o.drawImage(t,e.left-n.left,e.top-n.top,e.width,e.height)}if(n&&n.width>0&&n.height>0){const t=document.querySelector("#"+this.panelController.panelSide+"Legend");if(t&&a){const r=t.getBoundingClientRect(),i=a.getBoundingClientRect();let s=r.left-i.left,l=r.top-i.top;const c=document.querySelector("#"+this.panelController.panelSide);if(c){const t=c.getBoundingClientRect(),r=a.getBoundingClientRect();s=t.left-r.left+10,l=t.top-r.top+t.height-n.height-10,s+n.width>e.width&&(s=e.width-n.width-10),l<0&&(l=10),s<0&&(s=10),l+n.height>e.height&&(l=e.height-n.height-10)}o.fillStyle="rgba(255, 255, 255, 0.9)",o.fillRect(s-5,l-5,n.width+10,n.height+10),o.drawImage(n,s,l)}}Wx.saveAs(this.dataUriToBlob(i.toDataURL("image/jpg"),"image/jpg"),"mitracking-map.jpg")}else Wx.saveAs(this.dataUriToBlob(t.src,"image/jpg"),"mitracking-map.jpg")}getParameterByName(e,t){t||(t=window.location.href),e=e.replace(/[\[\]]/g,"\\$&");const n=new RegExp("[?&]"+e+"(=([^&#]*)|&|#|$)").exec(t);return n?n[2]?decodeURIComponent(n[2].replace(/\+/g," ")):"":null}createEmbeddedMapLink(){var e,t;this.creatingEmbeddedBookmark=!0,this.websiteMetricService.createWebsiteMetricAction(new ux({Action:px.ShareMap,Tab:this.panelController.selectedTab,Information:(null===(t=null===(e=this.queryResult)||void 0===e?void 0:e.measure)||void 0===t?void 0:t.titleWithQuery)+"-Created Embedded Link"})).subscribe();const n=this.getParameterByName("bookmark");if(n)return location,this.embeddedMapUrl=location.origin+this.baseUrl+"embedded-map?bookmark="+n,this.embeddedMapUrlSafe=this.sanitizer.bypassSecurityTrustResourceUrl(this.embeddedMapUrl),this.embeddedMapIframe=`<iframe src="${this.embeddedMapUrl}" width="100%" height="600" frameborder="0" scrolling="no" title="MiTracking Embedded Map"></iframe>`,this.embeddedMapCopied=!1,this.embeddedMapIframeCopied=!1,this.creatingEmbeddedBookmark=!1,void this.openShareModal();if("embedded"===this.panelController.panelSide){const e=this.dataService.getLastQueryRequest();e?this.createBookmarkFromQueryRequest(e):(alert("Unable to create embedded link: No query data available."),this.creatingEmbeddedBookmark=!1)}else if(this.panelController.filtersController)this.dataService.createBookmark(this.panelController.filtersController.categoryController.selectedData,this.panelController.filtersController.contentController.selectedData,this.panelController.filtersController.indicatorController.selectedData,this.panelController.filtersController.measureController.selectedData,this.panelController.filtersController.timeConceptOneController.selectedData,this.panelController.filtersController.timeConceptTwoController.selectedData,this.panelController.filtersController.geographicGroupingController.selectedData,this.panelController.filtersController.geographicAreaController.selectedData,this.panelController.filtersController.otherFilterController.selectedData,this.panelController.filtersController.isBasicQuery,this.panelController.filtersController.isCdcQuery);else{const e=this.dataService.getLastQueryRequest();if(!e)return alert("Unable to create embedded link: No query data available."),void(this.creatingEmbeddedBookmark=!1);this.createBookmarkFromQueryRequest(e)}this.bookmarkSubscription=this.dataService.getBookmark().subscribe(e=>{if(e){const t=e.split("bookmark=")[1];t&&(this.embeddedMapUrl=location.origin+this.baseUrl+"embedded-map?bookmark="+t,this.embeddedMapUrlSafe=this.sanitizer.bypassSecurityTrustResourceUrl(this.embeddedMapUrl),this.embeddedMapIframe=`<iframe src="${this.embeddedMapUrl}" width="100%" height="600" frameborder="0" scrolling="no" title="MiTracking Embedded Map"></iframe>`,this.embeddedMapCopied=!1,this.embeddedMapIframeCopied=!1,this.clearSubscriptions(),this.openShareModal())}this.creatingEmbeddedBookmark=!1})}createBookmarkFromQueryRequest(e){const t=new nQ;t.selected=[{id:e.Category||-1,extra:null}],t.options=[];const n=new nQ;n.selected=[{id:e.Content||-1,extra:null}],n.options=[];const r=new nQ;r.selected=[{id:e.Indicator||-1,extra:null}],r.options=[];const i=new nQ;i.selected=[{id:e.MeasureSeq||-1,extra:null}],i.options=[];const o=new nQ;o.selected=e.TimePeriod1Values&&e.TimePeriod1Values.length>0?e.TimePeriod1Values.map(e=>({id:e,extra:null})):[],o.options=[];const s=new nQ;s.selected=e.TimePeriod2Values&&e.TimePeriod2Values.length>0?e.TimePeriod2Values.map(e=>({id:e,extra:null})):[],s.options=[];const a=new nQ;a.selected=[{id:e.GeographicGroupingSeq||-1,extra:null}],a.options=[{name:"",id:e.GeographicGroupingSeq||-1,extra:{type:e.GeographicGroupingType}}];const l=new nQ;l.selected=e.GeographicAreaSeqs&&e.GeographicAreaSeqs.length>0?e.GeographicAreaSeqs.map(e=>({id:e,extra:null})):[],l.options=[];const c={filters:[]};e.OtherFilterValues&&e.OtherFilterValues.length>0&&(c.filters=e.OtherFilterValues.map(e=>({columnName:e.Key,selected:Array.isArray(e.Value)?e.Value.map(e=>({id:e,extra:null})):e.Value?[{id:e.Value,extra:null}]:[]}))),this.dataService.createBookmark(t,n,r,i,o,s,a,l,c,e.IsBasicQuery||!1,e.IsCdcQuery||!1)}copyEmbeddedMapLink(){if(navigator.clipboard&&window.isSecureContext)navigator.clipboard.writeText(this.embeddedMapUrl);else{let e=document.createElement("textarea");e.value=this.embeddedMapUrl,e.style.position="fixed",e.style.left="-999999px",e.style.top="-999999px",document.body.appendChild(e),e.focus(),e.select(),new Promise((t,n)=>{document.execCommand("copy")?t():n(),e.remove()})}this.embeddedMapCopied=!0,setTimeout(()=>{this.embeddedMapCopied=!1},3e3)}copyEmbeddedMapIframe(){if(navigator.clipboard&&window.isSecureContext)navigator.clipboard.writeText(this.embeddedMapIframe);else{let e=document.createElement("textarea");e.value=this.embeddedMapIframe,e.style.position="fixed",e.style.left="-999999px",e.style.top="-999999px",document.body.appendChild(e),e.focus(),e.select(),new Promise((t,n)=>{document.execCommand("copy")?t():n(),e.remove()})}this.embeddedMapIframeCopied=!0,setTimeout(()=>{this.embeddedMapIframeCopied=!1},3e3)}openShareModal(){this.isModalOpening||(this.embeddedMapUrl&&this.embeddedMapUrlSafe?(this.isModalOpening=!0,this.mapModalRef&&(this.mapModalRef.dismiss(),this.mapModalRef=void 0),this.mapModalRef=this.modalService.open(this.shareModal,{size:"lg",centered:!0}),this.mapModalRef.result.then(()=>{this.mapModalRef=void 0,this.isModalOpening=!1},()=>{this.mapModalRef=void 0,this.isModalOpening=!1})):console.warn("Share modal opened without embedded map data. This might be an unintended call."))}hideElement(e){let t=document.querySelector(e);t&&(t.style.visibility="hidden")}showElement(e){let t=document.querySelector(e);t&&(t.style.visibility="inherit")}changeMapOperationalStatus(e){this.mapConfig.display=e?"displayInfo":"noInfo",this.panelController&&this.panelController.panelSide&&this.panelController.indexController&&("left"===this.panelController.panelSide&&(this.panelController.indexController.leftMapDrawn=e),"right"===this.panelController.panelSide&&(this.panelController.indexController.rightMapDrawn=e))}getLegendColors(e,t){var n=this;return this.httpService.post(this.baseUrl+"Map/GetLegendColors",{legendColorGroupId:e,isColorReversed:t}).toPromise().then(function(){var e=nC(function*(e){if(null===e)throw new Error("Error loading map colors.");let[t]=yield PE.loadModules(["esri/Color"]);n.miTrackColors={bucketColor:[],noData:new t([64,64,64,.6]),unselected:new t([192,192,192,.6])};for(let r=0;r<e.legendColors.length;r++)n.miTrackColors.bucketColor.push(new t([e.legendColors[r].Red,e.legendColors[r].Green,e.legendColors[r].Blue,e.legendColors[r].Alpha]))});return function(t){return e.apply(this,arguments)}}())}updateMapConfig(){return this.httpService.post(this.baseUrl+"Map/GetMapConfig",this.dataService.getLastQueryRequest()).toPromise().then(e=>{if(null===e)throw new Error("Error loading map configuration.");this.mapConfig.errorList=e.ErrorList,this.mapConfig.showLegend=!0,this.mapConfig.showTitle=!0,this.changeMapOperationalStatus(e.MapEnabled)})}isValueInBucket(e,t,n){return t>=e.bucketMin&&t<e.bucketMax||n&&t===e.bucketMax}calculateBuckets(e){let t=this.legend.configuration.NumberOfBucketsInLegend;t||(t=5),this.isAllValuesIntegers=!0;const n=[],r=g_(e).map(e=>e.MeasureValue).filter(e=>e||0===e).value(),i=g_(r).unique().sortBy(e=>e).each(e=>{this.isAllValuesIntegers&&e%1!=0&&(this.isAllValuesIntegers=!1)});let o=i.min().value(),s=i.max().value();if(i.size().value()<=t&&!this.measureData.hasDisplayType)i.map(e=>{n.push({bucketMin:e,bucketMax:e,singleValueBucket:!0})});else if(4===this.legend.configuration.LegendAlgorithmSeq)this.isAllValuesIntegers=this.legend.configuration.IsInteger,g_(this.legend.configuration.LegendDefinitions).sortBy(e=>e.LegendPosition).each((e,t)=>{const r=this.measureData.hasDisplayType?V_(this.measureData.displayTypeValues,t=>t.DisplayTypeCode===e.MinimumValue).DisplayTypeValue:null;let i={bucketMin:"number"==typeof e.MinimumValue?e.MinimumValue:o,bucketMax:"number"==typeof e.MaximumValue?e.MaximumValue:s,displayBucketMin:r,displayBucketMax:r,singleValueBucket:!1};i.bucketMin>=i.bucketMax&&(0===t?i.bucketMin=i.bucketMax:i.bucketMax=i.bucketMin,i.singleValueBucket=!0),n.push(i)});else if(this.measureData.hasDisplayType)for(let a=0;a<this.measureData.displayTypeValues.length;a++){const e=this.measureData.displayTypeValues[a],t=e.DisplayTypeCode,r=e.DisplayTypeValue;n.push({bucketMin:t,bucketMax:t,displayBucketMin:r,displayBucketMax:r,singleValueBucket:!0})}else{let e=new qx(r),i=[];1===this.legend.configuration.LegendAlgorithmSeq?i=e.getClassEqInterval(t):2===this.legend.configuration.LegendAlgorithmSeq?i=e.getClassQuantile(t):3===this.legend.configuration.LegendAlgorithmSeq&&(i=e.getClassJenks(t));for(let t=0;t<i.length-1;t++)n.push(this.isAllValuesIntegers?{bucketMin:Math.ceil(i[t]),bucketMax:Math.floor(i[t+1]),singleValueBucket:!1}:{bucketMin:Math.round(100*i[t])/100,bucketMax:Math.round(100*i[t+1])/100,singleValueBucket:!1})}return n}maximumDataElements(e){return e.length*this.groupedData.length*(this.mapData.timePeriod1List&&this.mapData.timePeriod1List.length?this.mapData.timePeriod1List.length:1)*(this.mapData.timePeriod2List&&this.mapData.timePeriod2List.length?this.mapData.timePeriod2List.length:1)}determineWhatLegendEntriesShouldDisplay(e){const t={hasSuppressedData:!1,hasNoResultsData:!1,hasUnselectedGeographicAreas:!1,hasUsedLegendBucketArray:[],usedSuppressionReasons:[]},n=e.buckets;return j_(n,e=>{t.hasUsedLegendBucketArray.push(!1)}),j_(e.data,e=>{if(null===e.MeasureValue)t.hasSuppressedData=!0,this.measureData.hasSuppressionType&&-1===t.usedSuppressionReasons.indexOf(e.SuppressionTypeCode)&&t.usedSuppressionReasons.push(e.SuppressionTypeCode);else for(let r=0;r<n.length;r++){let i=r===n.length-1;(4===this.legend.configuration.LegendAlgorithmSeq||this.isValueInBucket(n[r],e.MeasureValue,i||this.isAllValuesIntegers||n[r].singleValueBucket)||this.measureData.hasDisplayType)&&(t.hasUsedLegendBucketArray[r]=!0)}}),t.hasNoResultsData=e.data.length%this.maximumDataElements(e.selectedGeographicAreas)!=0,t.hasUnselectedGeographicAreas=e.selectedGeographicAreas.length!==e.possibleGeographicAreas.length,t}buildMapLegend(e,t){let n=[],r=0,i=0;for(let o=0;o<t.length;o++)if(i=0===r?t[o].bucketMin:r,e.hasUsedLegendBucketArray[o]){const e=this.miTrackColors.bucketColor[o];let s;s=this.measureData.hasDisplayType?isNaN(t[o].displayBucketMin)?t[o].displayBucketMin:this.decimalPipe.transform(t[o].displayBucketMin):t[o].singleValueBucket?(isNaN(t[o].bucketMin)?t[o].bucketMin:this.decimalPipe.transform(t[o].bucketMin))+"":o===t.length-1||this.isAllValuesIntegers?`${isNaN(i)?i:this.decimalPipe.transform(i)} - ${isNaN(t[o].bucketMax)?t[o].bucketMax:this.decimalPipe.transform(t[o].bucketMax)}`:`${isNaN(i)?i:this.decimalPipe.transform(i)} - < ${isNaN(t[o].bucketMax)?t[o].bucketMax:this.decimalPipe.transform(t[o].bucketMax)}`,n.push({style:{"background-color":this.convertEsriColorToRGBA(e)},label:s}),r=0}else 0===r&&(r=t[o].bucketMin);return e.hasNoResultsData&&n.push({style:{"background-color":this.convertEsriColorToRGBA(this.miTrackColors.noData)},label:"No Results"}),e.hasSuppressedData&&(this.measureData.hasSuppressionType?(e.usedSuppressionReasons.sort(),e.usedSuppressionReasons.forEach(e=>{var t=this.measureData.suppressionTypeValues.find(t=>t.SuppressionTypeCode===e);n.push({style:{background:`url(${t.Base64EncodedImage})`},label:t.SuppressionTypeValue})})):n.push({style:{background:"url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAPUlEQVQYV2NkYGD4z8DAwMiAH/yHKcCnGCyHbBI2xXAxdCuRFaNoxOY2kAIQQJEjWyFRVhPlGaKCh6gABwBcgBIJDnDinwAAAABJRU5ErkJggg==)"},label:this.mapData.emptyValueLabel})),e.hasUnselectedGeographicAreas&&n.push({style:{"background-color":this.convertEsriColorToRGBA(this.miTrackColors.unselected)},label:"Unselected"}),n}convertEsriColorToRGBA(e){return"RGBA("+e.r+", "+e.g+", "+e.b+", "+e.a+")"}addPoint(e){PE.loadModules(["esri/geometry/Point","esri/symbols/SimpleMarkerSymbol","esri/symbols/SimpleLineSymbol","esri/Color","esri/Graphic","esri/PopupTemplate"]).then(([t,n,r,i,o,s])=>{const a=new t({latitude:e.latitude,longitude:e.longitude}),l=[],c=new r({color:[0,0,0,1],width:.6});for(let e=0;e<this.miTrackColors.bucketColor.length;e++)l.push(new n({style:"diamond",size:20,outline:c,color:this.miTrackColors.bucketColor[e]}));const A=new o({geometry:a,symbol:l[0]}),u=new s;u.title=null!==e.value?this.mapData.selectedTimePeriod2?e.geographicArea+" - "+this.mapData.selectedTimePeriod1+" / "+this.mapData.selectedTimePeriod2:e.geographicArea+" - "+this.mapData.selectedTimePeriod1:this.mapData.selectedTimePeriod2?e.geographicArea+"** - "+this.mapData.selectedTimePeriod1+" / "+this.mapData.selectedTimePeriod2:e.geographicArea+"** - "+this.mapData.selectedTimePeriod1;for(let h=0;h<this.mapData.buckets.length;h++)if(this.isValueInBucket(this.mapData.buckets[h],e.value,h===this.mapData.buckets.length-1||this.isAllValuesIntegers||this.mapData.buckets[h].singleValueBucket)){A.symbol=l[h],u.content=this.buildHtmlInfoTemplateContentForPoints(this.mapData,e),A.popupTemplate=u;break}this.graphicsLayer&&this.graphicsLayer.add(A)})}processData(){var e=this;return nC(function*(){e.mapData.displayTimePeriod1=e.mapData.selectedTimePeriod1,e.mapData.displayTimePeriod2=e.mapData.selectedTimePeriod2;const t=new $x,n=new Jx;for(let r=0;r<e.response.results.headers.length;r++)"Value"===e.response.results.headers[r].ColumnType?e.mapData.valueLabel=e.response.results.headers[r].ColumnLabel:"ExtraneousData"===e.response.results.headers[r].ColumnType?t[e.response.results.headers[r].MappedColumnName]=e.response.results.headers[r].ColumnLabel:"Filter"===e.response.results.headers[r].ColumnType?n[e.response.results.headers[r].MappedColumnName]=e.response.results.headers[r].ColumnLabel:"TimePeriod1"===e.response.results.headers[r].ColumnType?e.mapData.timePeriod1Title=e.response.results.headers[r].ColumnLabel:"TimePeriod2"===e.response.results.headers[r].ColumnType&&(e.mapData.timePeriod2Title=e.response.results.headers[r].ColumnLabel);e.mapData.extraDataLabels=t,e.mapData.otherFilterLabels=n,e.mapData.selectedData=g_(e.currentDataGrouping).filter(t=>t.TimePeriod1Text===e.mapData.selectedTimePeriod1&&t.TimePeriod2Text===e.mapData.selectedTimePeriod2).map(e=>({id:e.GeographicAreaID,value:e.MeasureValue,displayValue:e.MeasureDisplayValue,otherFilter1:e.OtherFilter1Text,otherFilter2:e.OtherFilter2Text,otherFilter3:e.OtherFilter3Text,otherFilter4:e.OtherFilter4Text,otherFilter5:e.OtherFilter5Text,otherFilter6:e.OtherFilter6Text,otherFilter7:e.OtherFilter7Text,otherFilter8:e.OtherFilter8Text,otherFilter9:e.OtherFilter9Text,otherFilter10:e.OtherFilter10Text,extraData1:e.ExtraneousData1Text,extraData2:e.ExtraneousData2Text,extraData3:e.ExtraneousData3Text,extraData4:e.ExtraneousData4Text,extraData5:e.ExtraneousData5Text,latitude:e.Latitude,longitude:e.Longitude,geographicArea:e.GeographicArea,geographicGrouping:e.GeographicGrouping,suppressionTypeCode:e.SuppressionTypeCode})).value(),e.michMapDeferer.promise.then(()=>{e.graphicsLayer&&e.graphicsLayer.removeAll(),setTimeout(()=>{if(e.mapData.isPointMap)window.setTimeout(()=>e.drawMapFeatures,0,!1);else{e.mapConfig.featureLayers=[];const t=e.measureData.featureLayers;for(let n=0;n<t.length;n++)t[n].arcgisEndpointURL&&(e.mapConfig.featureLayers.push(t[n]),e.featureLayerService.getFeatureLayerGraphicsAsync(e.panelController.panelSide,t[n],e.mapData.possibleGeographicAreas).then(t=>{e.drawMapFeatures(t)}))}})},500)})()}setTimePeriod1AndDraw(e,t){this.mapData.selectedTimePeriod1=e,this.mapData.timePeriod2List=this.mapData.timePeriodCombinations[0]&&this.mapData.timePeriodCombinations[0].TimePeriod2Text?lE(SE(q_(J_(this.mapData.timePeriodCombinations,e=>e.TimePeriod1Text===this.mapData.selectedTimePeriod1),e=>e.TimePeriod2Text))).reverse():null,this.setTimePeriod2AndDraw(t)}setTimePeriod2AndDraw(e){this.mapData.selectedTimePeriod2=e||(this.mapData.timePeriod2List?bE(this.mapData.timePeriod2List):null),this.processData()}nextTimeUnit(){this.mapAnimation||this.selectNewTimeUnitOnPreexistingData(!0)}incrementTimeUnitIndex(){this.animationTimeIndex===this.mapData.timePeriodCombinations.length-1?this.animationTimeIndex=0:this.animationTimeIndex++}previousTimeUnit(){this.mapAnimation||this.selectNewTimeUnitOnPreexistingData(!1)}decrementTimeUnitIndex(){0===this.animationTimeIndex?this.animationTimeIndex=this.mapData.timePeriodCombinations.length-1:this.animationTimeIndex--}startMapAnimation(){this.mapAnimation||(this.selectNewTimeUnitOnPreexistingData(!0),this.runMapAnimation())}runMapAnimation(){this.disabledDropdowns=!0,this.mapAnimation=window.setInterval(()=>{this.selectNewTimeUnitOnPreexistingData(!0)},2500)}selectNewTimeUnitOnPreexistingData(e){this.animationTimeIndex=M_(this.mapData.timePeriodCombinations,e=>e.TimePeriod1Text===this.mapData.selectedTimePeriod1&&e.TimePeriod2Text===this.mapData.selectedTimePeriod2),e?this.incrementTimeUnitIndex():this.decrementTimeUnitIndex(),this.mapData.timePeriodCombinations[this.animationTimeIndex].TimePeriod1Text!==this.mapData.selectedTimePeriod1?this.setTimePeriod1AndDraw(this.mapData.timePeriodCombinations[this.animationTimeIndex].TimePeriod1Text,this.mapData.timePeriodCombinations[this.animationTimeIndex].TimePeriod2Text):this.mapData.timePeriodCombinations[this.animationTimeIndex].TimePeriod2Text!==this.mapData.selectedTimePeriod2&&this.setTimePeriod2AndDraw(this.mapData.timePeriodCombinations[this.animationTimeIndex].TimePeriod2Text)}stopMapAnimation(){this.mapAnimation&&(clearInterval(this.mapAnimation),this.mapAnimation=void 0,this.disabledDropdowns=!1)}createOtherFilterDropdowns(e){let t=e.map(e=>{let t=e.CodeSchemeValues.map((e,t)=>({id:e,name:e}));return{label:e.OtherFilterDisplayName,column:e.MappedColumnName,input:t}}),n=0;for(;n<t.length;)t[n].input.length<=1?t.splice(n,1):n++;return t.forEach((e,t)=>{this.otherFilterOutput[t]=e.input.slice(0,1)}),t}groupData(e,t){if(!t)return[];this.otherFilterOptions=this.createOtherFilterDropdowns(t);let n=AE(e,e=>{let n="";for(let r=1;r<=10;r++){let i=r-1,o="OtherFilter"+r+"Text";e[o]&&i<t.length&&t[i].CodeSchemeValues.length>1&&(n+=e[o]+" - ")}return n}),r=[];return j_(n,(e,t)=>{r.push({key:t,data:e})}),r}leftPad(e,t,n){for(e=e.toString();e.length<t;)e=n+e;return e.length>t&&(e=e.substring(e.length-t)),e}zoomToAddress(){this.modalAddress?this.zoomMapToAddress(this.modalAddress).then(()=>{close()},e=>{this.modalErrorList=e}):this.modalErrorList=["No address entered."]}zoomToMyLocation(){this.zoomMapToMyLocation().then(()=>{close()},e=>{this.modalErrorList=e})}zoomTo(e,t,n,r,i){this.michMap&&PE.loadModules(["esri/geometry/Point","esri/symbols/PictureMarkerSymbol","esri/Graphic","esri/PopupTemplate"]).then(([o,s,a,l])=>{const c=new o({longitude:e,latitude:t});let A=new a({geometry:c,symbol:new s({url:"data:image/svg+xml;base64,PHN2ZyAgZm9jdXNhYmxlPSJmYWxzZSIgd2lkdGg9IjE3OTIiIGhlaWdodD0iMTc5MiIgdmlld0JveD0iMCAwIDE3OTIgMTc5MiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTE1MiA2NDBxMC0xMDYtNzUtMTgxdC0xODEtNzUtMTgxIDc1LTc1IDE4MSA3NSAxODEgMTgxIDc1IDE4MS03NSA3NS0xODF6bTI1NiAwcTAgMTA5LTMzIDE3OWwtMzY0IDc3NHEtMTYgMzMtNDcuNSA1MnQtNjcuNSAxOS02Ny41LTE5LTQ2LjUtNTJsLTM2NS03NzRxLTMzLTcwLTMzLTE3OSAwLTIxMiAxNTAtMzYydDM2Mi0xNTAgMzYyIDE1MCAxNTAgMzYyeiIvPjwvc3ZnPg==",width:22.5,height:22.5,yoffset:11.25})});const u=new l({title:n,content:r});A.popupTemplate=u,this.graphicsLayer&&this.graphicsLayer.add(A),this.michMap&&c&&this.michMap.goTo({center:c,zoom:14}),i&&setTimeout(()=>{i()},2e3)})}zoomMapToMyLocation(){let e=Xx.defer();return navigator.geolocation?navigator.geolocation.getCurrentPosition(t=>{const n=new Date,r=(n.getHours()%12==0?12:n.getHours()%12)+":"+this.leftPad(n.getMinutes(),2,"0")+" "+(n.getHours()<12?"AM":"PM");this.zoomTo(t.coords.longitude,t.coords.latitude,"My Location","<div>Latitude: "+t.coords.latitude+"</div><div>Longitude: "+t.coords.longitude+"</div><div>Time Retrieved: "+r+"</div>"),e.resolve()},t=>{let n=[];switch(t.code){case 1:n.push("Location permission was denied. Unable to determine your location.");break;case 2:n.push("We were unable to determine your location. Try again later.");break;default:n.push("An error occured while trying to determine your location. Try again later.")}e.reject(n)},{maximumAge:6e5,enableHighAccuracy:!1}):e.reject(["Your browser does not support geolocation."]),e.promise}zoomMapToAddress(e){let t=Xx.defer();return this.httpService.get(this.baseUrl+"Map/Geocode?address="+e).subscribe(e=>{if(e&&e.success){let n=JSON.parse(e.data).result;if(n.addressMatches&&n.addressMatches.length)if(n.addressMatches.length>1){let e=["We found multiple locations that could match your entered address. Enter one of the following addresses to resolve the ambiguity."],r=nE(n.addressMatches,"matchedAddress");e=e.concat(r),t.reject(e)}else{let e=n.addressMatches[0];e.coordinates?(this.zoomTo(e.coordinates.x,e.coordinates.y,"Street Address","<div>Address: "+e.matchedAddress+"</div>"),t.resolve()):t.reject(["We found a matching address, but were unable to find it's location. Try an alternate address nearby."])}else t.reject(["We were unable to find a location matching that address. Check your spelling, or provide additional details if possible."])}else t.reject([e.message])}),t.promise}showLocationModal(){this.isModalOpening||(this.isModalOpening=!0,this.mapModalRef&&(this.mapModalRef.dismiss(),this.mapModalRef=void 0),this.mapModalRef=this.modalService.open(this.locationModal,{backdrop:"static"}),this.mapModalRef.result.then(()=>{this.mapModalRef=void 0,this.isModalOpening=!1},()=>{this.mapModalRef=void 0,this.isModalOpening=!1}))}updateFilterAndReprocessData(){const e=(this.otherFilterOptions.length>=1&&this.otherFilterOutput[0][0].name?this.otherFilterOutput[0][0].name+" - ":"")+(this.otherFilterOptions.length>=2&&this.otherFilterOutput[1][0].name?this.otherFilterOutput[1][0].name+" - ":"")+(this.otherFilterOptions.length>=3&&this.otherFilterOutput[2][0].name?this.otherFilterOutput[2][0].name+" - ":"")+(this.otherFilterOptions.length>=4&&this.otherFilterOutput[3][0].name?this.otherFilterOutput[3][0].name+" - ":"")+(this.otherFilterOptions.length>=5&&this.otherFilterOutput[4][0].name?this.otherFilterOutput[4][0].name+" - ":"")+(this.otherFilterOptions.length>=6&&this.otherFilterOutput[5][0].name?this.otherFilterOutput[5][0].name+" - ":"")+(this.otherFilterOptions.length>=7&&this.otherFilterOutput[6][0].name?this.otherFilterOutput[6][0].name+" - ":"")+(this.otherFilterOptions.length>=8&&this.otherFilterOutput[7][0].name?this.otherFilterOutput[7][0].name+" - ":"")+(this.otherFilterOptions.length>=9&&this.otherFilterOutput[8][0].name?this.otherFilterOutput[8][0].name+" - ":"")+(this.otherFilterOptions.length>=10&&this.otherFilterOutput[9][0].name?this.otherFilterOutput[9][0].name+" - ":"");if(e&&""!==e){let t=G_(this.groupedData,{key:e});this.currentDataGrouping=t?t.data:[],this.processData()}}otherFilterChange(){this.updateFilterAndReprocessDataDebounced()}queryHandler(e){this.michMap&&(this.stopMapAnimation(),this.michMap.closePopup(),this.graphicsLayer&&this.graphicsLayer.removeAll()),this.updateMapConfig().then(()=>{var t,n,r,i;e.results&&e.measure&&e.results.headers&&e.results.data&&e.results.data.length?(this.response=e,this.mapData.data=g_(e.results.data).filter(e=>"000"!==e.GeographicAreaID&&"999"!==e.GeographicAreaID).value(),this.otherFilters=null===(t=null==e?void 0:e.queryOptions)||void 0===t?void 0:t.otherFilters,this.measureData=e.measure,this.mapData.title=this.measureData.titleWithQuery,this.mapData.emptyValueLabel=this.measureData.emptyValueLabel,this.mapData.unit=this.measureData.unit,this.mapData.isPointMap=this.measureData.isPointGeography,this.mapData.possibleGeographicAreas=J_(null===(n=this.response.queryOptions)||void 0===n?void 0:n.geographicAreaIds,e=>"000"!==e&&"999"!==e),this.mapData.selectedGeographicAreas=J_(null===(i=null===(r=this.response)||void 0===r?void 0:r.querySelections)||void 0===i?void 0:i.geographicAreaIds,e=>"000"!==e&&"999"!==e),this.mapData.timePeriodCombinations=this.mapData.data[0]&&this.mapData.data[0].TimePeriod1Text?lE(lE(SE(q_(this.mapData.data,e=>({comboKey:e.TimePeriod1Text+e.TimePeriod2Text,TimePeriod1Text:e.TimePeriod1Text,TimePeriod2Text:e.TimePeriod2Text})),(e,t,n)=>e.comboKey),"TimePeriod2Text"),"TimePeriod1Text"):[],this.mapData.timePeriod1List=this.mapData.timePeriodCombinations&&this.mapData.timePeriodCombinations[0]&&this.mapData.timePeriodCombinations[0].TimePeriod1Text?lE(SE(q_(this.mapData.timePeriodCombinations,e=>e.TimePeriod1Text))).reverse():[],this.mapData.selectedTimePeriod1=this.mapData.timePeriod1List?bE(this.mapData.timePeriod1List):null,this.legend.configuration=this.response.measure.mapLegendConfiguration,this.mapData.buckets=this.calculateBuckets(this.mapData.data),this.groupedData=this.groupData(this.mapData.data,e.queryOptions.otherFilters),this.currentDataGrouping=this.groupedData.length>0?this.groupedData[0].data:[],this.hasOtherFilters=this.groupedData.length>1,this.usedLegendEntries=this.determineWhatLegendEntriesShouldDisplay(this.mapData),0===this.mapData.data.length&&e.results.data.length>0&&(this.mapConfig.errorList=["Maps are not available for this geographic area selection."],this.mapData.data=[null],this.changeMapOperationalStatus(!1)),this.getLegendColors(this.legend.configuration.LegendColorGroupSeq,this.legend.configuration.IsColorReversed).then(()=>{this.legend.colors=this.buildMapLegend(this.usedLegendEntries,this.mapData.buckets),this.setTimePeriod1AndDraw(this.mapData.selectedTimePeriod1,null)})):this.clearMapData()})}openOptionsModal(){this.isModalOpening||(this.isModalOpening=!0,this.mapModalRef&&(this.mapModalRef.dismiss(),this.mapModalRef=void 0),this.mapModalRef=this.modalService.open(this.optionsModal),this.mapModalRef.result.then(()=>{this.mapModalRef=void 0,this.isModalOpening=!1},()=>{this.mapModalRef=void 0,this.isModalOpening=!1}))}dismissOptionsModal(){this.mapModalRef&&(this.mapModalRef.close(),this.mapModalRef=void 0,this.isModalOpening=!1)}}return e.\u0275fac=function(t){return new(t||e)(Zs(cx),Zs(KE),Zs(Py),Zs(rQ),Zs("BASE_URL"),Zs(Yg),Zs(eC),Zs(iQ),Zs(mh),Zs($h))},e.\u0275cmp=Ge({type:e,selectors:[["mi-map"]],viewQuery:function(e,t){if(1&e&&(yA(QQ,5,Bc),yA(kQ,5,Bc),yA(UQ,5,Bc)),2&e){let e;mA(e=vA())&&(t.locationModal=e.first),mA(e=vA())&&(t.optionsModal=e.first),mA(e=vA())&&(t.shareModal=e.first)}},inputs:{panelController:"panelController",queryResult:"queryResult",initialZoom:"initialZoom"},outputs:{areGraphicsDrawnEvent:"areGraphicsDrawnEvent"},decls:34,vars:24,consts:[[3,"id"],[3,"hidden"],["role","group",1,"btn-group","data-options-buttons"],["type","button","class","btn btn-primary editQueryButtonWidth data-option-button",3,"disabled","title","click",4,"ngIf"],[1,"download-element",3,"queryResult","selectedTab"],["type","button","aria-label","Save map as JPEG","class","btn btn-primary data-option-button",3,"disabled","click",4,"ngIf"],["type","button","aria-label","Generate embedded map link","class","btn btn-primary data-option-button","title","Create a shareable embedded map link",3,"disabled","click",4,"ngIf"],["type","button",1,"btn","btn-primary","data-option-button",3,"disabled","id","click"],["tab","'Map'",3,"displayTitle","panelSide","showTitle","id"],["class","row map-other-filter-bar",3,"id",4,"ngIf"],[1,"row","no-gutters"],[1,"map-container","col-12",2,"min-height","500px","position","relative",3,"id"],[1,"loading-spinner-container"],["class","spinner-border spinner-border-md text-primary","aria-hidden","true",4,"ngIf"],["id","animationOptions","class","animation-options",3,"ngClass",4,"ngIf"],[1,"map-link"],[1,"btn-group"],["aria-label","Find Location","title","Find Location",1,"btn","btn-secondary",3,"click"],["aria-hidden","true",3,"icon"],["class","btn btn-secondary mb-0","ngbButtonLabel","","aria-label","Synchronize Map Views","title","Synchronize Map Views",3,"click",4,"ngIf"],[3,"id",4,"ngIf"],["aria-hidden","true",1,"clearfix"],[4,"ngIf"],["locationModal",""],["optionsModal",""],["shareModal",""],["type","button",1,"btn","btn-primary","editQueryButtonWidth","data-option-button",3,"disabled","title","click"],["aria-hidden","true",1,"button-icon",3,"icon"],["type","button","aria-label","Save map as JPEG",1,"btn","btn-primary","data-option-button",3,"disabled","click"],["aria-hidden","true",3,"spin","icon"],[1,"button-icon",3,"icon"],["type","button","aria-label","Generate embedded map link","title","Create a shareable embedded map link",1,"btn","btn-primary","data-option-button",3,"disabled","click"],[1,"row","map-other-filter-bar",3,"id"],["class","col-lg-3 col-sm-6 col-12 customMultiSelect",4,"ngFor","ngForOf"],[1,"clearfix"],[1,"col-lg-3","col-sm-6","col-12","customMultiSelect"],[3,"for"],[3,"id","settings","data","ngModel","disabled","onSelect","ngModelChange"],["aria-hidden","true",1,"spinner-border","spinner-border-md","text-primary"],["id","animationOptions",1,"animation-options",3,"ngClass"],["role","group",1,"btn-group"],["class","btn-group","role","group",4,"ngIf"],["type","button","title","Back One Time Unit","attr.aria-label","Back One Time Unit","aria-haspopup","true","aria-expanded","false",1,"btn","btn-secondary","map-button",3,"id","ngClass","click"],["type","button","title","Start Map Time Animation","attr.aria-label","Start Map Time Animation","aria-haspopup","true","aria-expanded","false",1,"btn","btn-secondary","map-button",3,"id","ngClass","click"],["type","button","title","Stop Map Time Animation","attr.aria-label","Stop Map Time Animation","aria-haspopup","true","aria-expanded","false",1,"btn","btn-secondary","map-button",3,"id","ngClass","click"],["type","button","title","Forward One Time Unit","attr.aria-label","Forward One Time Unit","aria-haspopup","true","aria-expanded","false",1,"btn","btn-secondary","map-button",3,"id","ngClass","click"],["type","button","data-toggle","dropdown","aria-label","Select Time Period","aria-haspopup","true","aria-expanded","false",1,"btn","btn-secondary","dropdown-toggle","map-button",2,"display","inline-block","min-width","40px",3,"id","title","ngClass"],[1,"caret"],["role","menu",1,"dropdown-menu","scrollable-menu"],["role","presentation",3,"click",4,"ngFor","ngForOf"],["role","presentation",3,"click"],["role","menuitem",1,"dropdown-item"],["type","button","data-toggle","dropdown","aria-haspopup","true","aria-expanded","false","aria-label","Select Second Time Period",1,"btn","btn-secondary","dropdown-toggle","map-button",2,"display","inline-block","min-width","40px",3,"id","title","ngClass"],["ngbButtonLabel","","aria-label","Synchronize Map Views","title","Synchronize Map Views",1,"btn","btn-secondary","mb-0",3,"click"],["type","checkbox","ngbButton","","hidden","true",3,"ngModel","ngModelChange"],[3,"legendColors","unit",4,"ngIf"],[3,"legendColors","unit"],[1,"bottomMargin"],[1,"pull-left"],["type","button","class","btn btn-primary",3,"title","click",4,"ngIf"],["role","alert","tabindex","0",1,"alert","alert-warning"],["type","button",1,"btn","btn-primary",3,"title","click"],[4,"ngFor","ngForOf"],["role","alert","tabindex","0",1,"alert","alert-info","col-12"],[1,"footnotes",3,"innerHTML"],[1,"modal-header"],["type","button","aria-label","Close",1,"close",3,"click"],["aria-hidden","true"],["id","search-results-header","tabindex","0",1,"modal-title"],[1,"modal-body"],[1,"col-12"],[1,"btn","btn-primary",3,"click"],[1,"center-emphaize"],[1,"input-group"],["id","addressInput","placeholder","1234 Example Street, Lansing, MI",1,"form-control",3,"ngModel","ngModelChange"],["for","addressInput",1,"sr-only"],[1,"input-group-btn"],[1,"modal-footer"],[1,"btn","btn-secondary","float-right",3,"click"],[1,"alert","alert-danger"],[3,"mapConfig","currentMapFeature","side","michMap","mapConfigChange","michMapChange","closeModalEventEmitter"],[1,"modal-title"],[1,"mb-4"],[1,"mb-3"],[1,"text-muted","mb-2"],[1,"input-group","mb-2"],["type","text","readonly","readonly","id","embeddedMapInput",1,"form-control",3,"value"],["type","button","title","Copy Embedded Map URL",1,"btn","btn-outline-secondary",3,"click"],[1,"copy-status"],["class","text-success",4,"ngIf"],["readonly","readonly","rows","3","id","embeddedMapIframeInput",1,"form-control"],["type","button","title","Copy Iframe Tag",1,"btn","btn-outline-secondary",3,"click"],[1,"text-muted","mb-3"],[1,"iframe-preview-container"],["width","100%","height","400","frameborder","0","scrolling","no","title","MiTracking Embedded Map Preview","class","border border-secondary rounded",3,"src",4,"ngIf"],["class","text-center text-muted p-4",4,"ngIf"],["type","button",1,"btn","btn-secondary",3,"click"],[1,"text-success"],["width","100%","height","400","frameborder","0","scrolling","no","title","MiTracking Embedded Map Preview",1,"border","border-secondary","rounded",3,"src"],[1,"text-center","text-muted","p-4"]],template:function(e,t){1&e&&(na(0,"div",0),na(1,"div",1),na(2,"div",2),$s(3,OQ,3,4,"button",3),ia(4,"download",4),$s(5,DQ,4,3,"button",5),$s(6,RQ,4,3,"button",6),na(7,"button",7),Aa("click",function(e){return t.openOptionsModal(),e.stopPropagation()}),Ra(8," Options "),ra(),ra(),na(9,"div"),ia(10,"mi-header",8),$s(11,KQ,3,2,"div",9),na(12,"div",10),na(13,"div",11),na(14,"div",12),$s(15,VQ,1,0,"span",13),ra(),$s(16,JQ,12,28,"div",14),na(17,"div",15),na(18,"div",16),na(19,"button",17),Aa("click",function(){return t.showLocationModal()}),ia(20,"fa-icon",18),ra(),$s(21,$Q,3,2,"label",19),ra(),ra(),$s(22,ZQ,2,2,"div",20),ra(),ra(),ia(23,"div",21),ra(),ra(),$s(24,tk,8,2,"div",22),$s(25,ik,9,3,"div",22),$s(26,ok,4,1,"div",22),$s(27,sk,2,1,"div",22),ra(),$s(28,ck,30,4,"ng-template",null,23,_A),$s(30,Ak,1,4,"ng-template",null,24,_A),$s(32,fk,44,8,"ng-template",null,25,_A)),2&e&&(ea("id",t.panelController.panelSide+"MapTab"),yo(1),ea("hidden","displayInfo"!==t.mapConfig.display),yo(2),ea("ngIf","embedded"!==t.panelController.panelSide),yo(1),ea("queryResult",t.queryResult)("selectedTab",t.panelController.selectedTab),yo(1),ea("ngIf",!0===t.panelController.isFileSaverSupported&&0!==t.mapData.data.length&&t.mapData.possibleGeographicAreas.length<=1200),yo(1),ea("ngIf","embedded"!==t.panelController.panelSide&&0!==t.mapData.data.length),yo(1),ea("disabled",!t.areGraphicsDrawn)("id",t.panelController.panelSide+"MapOptions"),yo(3),ma("id",t.panelController.panelSide+"Header"),ea("displayTitle",t.mapData.title)("panelSide",t.panelController.panelSide)("showTitle",t.mapConfig.showTitle),yo(1),ea("ngIf",t.hasOtherFilters),yo(2),ma("id",t.panelController.panelSide),yo(2),ea("ngIf",!t.areGraphicsDrawn&&0===t.mapConfig.errorList.length),yo(1),ea("ngIf",t.mapData.displayTimePeriod1&&t.mapData.timePeriod1List.length>1||t.mapData.displayTimePeriod2&&t.mapData.timePeriod2List.length>1),yo(4),ea("icon",t.faThumbTack),yo(1),ea("ngIf",t.panelController.indexController.viewingSideBySideMaps()),yo(1),ea("ngIf",t.isActivated),yo(2),ea("ngIf","noInfo"===t.mapConfig.display),yo(1),ea("ngIf","mapInfoUnavailable"===t.mapConfig.display),yo(1),ea("ngIf","runQuery"===t.mapConfig.display&&t.areGraphicsDrawn&&0===t.mapConfig.errorList.length),yo(1),ea("ngIf",t.panelController.footnotes&&t.panelController.footnotes.length>0&&"displayInfo"===t.mapConfig.display))},directives:[sh,fQ,mQ,Yb,ih,Ym,Fd,$d,nh,fg,ld,gg,wQ,ud,xQ],styles:[".loading-spinner-container{position:absolute;top:50%;left:50%;z-index:9999}.layer-range{height:2rem;cursor:pointer}.esriPopup .sizer{width:30rem!important}.esriPopup .contentPane{max-height:100%!important}.iframe-preview-container{background-color:#f8f9fa;padding:1rem;border-radius:.375rem;border:1px solid #dee2e6}.copy-status{min-height:1.5rem;display:flex;align-items:center}.modal-body textarea{resize:none;font-family:Courier New,monospace;font-size:.875rem}.modal-body h5{color:#495057;font-weight:600}.modal-body hr{margin:1.5rem 0;border-color:#dee2e6}.input-group button{white-space:nowrap}"],encapsulation:2}),e})(),mk=(()=>{class e{constructor(){this.dailyCookieGuid=null,this.persistentCookieGuid="",this.currentVersion="",this.currentEnvironment="",this.currentYear=0}setConfiguration(e,t,n,r,i){this.dailyCookieGuid=e,this.persistentCookieGuid=t,this.currentVersion=n,this.currentEnvironment=r,this.currentYear=parseInt(i,10)||0}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=de({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();class yk{constructor(e,t,n){this.OtherFilterDisplayName="",this.MappedColumnName="",this.CodeSchemeValues=[],this.OtherFilterDisplayName=e||"",this.MappedColumnName=t||"",this.CodeSchemeValues=n||[]}}let wk=(()=>{class e{constructor(e,t,n){this.httpService=e,this.baseUrl=t,this.geographicAreaService=n}getResultSet(e,t,n){return this.httpService.get(e.selected[0].cdcApiEndpoint).pipe($p(r=>this.geographicAreaService.setGeographicAreasMap().pipe($p(()=>cp(this.serializeData(r,e,t,n))))),WE(e=>af("geographicAreasMapError"===e.errorType?e:{errorType:"cdcApiEndpointError",message:(null==e?void 0:e.message)||"An unknown error occurred"})))}serializeData(t,n,r,i){var o;let s=t,a=[],l=t.lookupList,c=[],A=[],u=n.selected[0].geographicAreaIds,h=new oQ,d=new sQ,p=new Map,f="",g={hasSecondaryValue:!1,hasDataComment:!1,hasStandardError:!1},m=n.selected[0].emptyValueLabel?n.selected[0].emptyValueLabel:e.DEFAULT_BLANK;this.geographicAreaService.resetDynamicGeographicAreas(i),null===(o=s.tableResult)||void 0===o||o.forEach(e=>{var t;let n=null==e?void 0:e.geoId.substring(2,11),r=this.geographicAreaService.geographicAreasMap.get(n),o=e.temporal,s={groupById:e.groupById,TimePeriod1Text:o,TimePeriod2Text:null,OtherFilter1Text:null,OtherFilter2Text:null,OtherFilter3Text:null,OtherFilter4Text:null,OtherFilter5Text:null,OtherFilter6Text:null,OtherFilter7Text:null,OtherFilter8Text:null,OtherFilter9Text:null,OtherFilter10Text:null,ExtraneousData1Text:e.secondaryValue?e.secondaryValue:m,ExtraneousData2Text:e.standardError?e.standardError:m,ExtraneousData3Text:e.hatching?e.hatching:m,ExtraneousData4Text:null,ExtraneousData5Text:null,GeographicArea:e.geo,GeographicAreaDisplayValue:e.geo,GeographicAreaSeq:null==r?void 0:r.GeographicAreaSeq,FIPSCode:(null==r?void 0:r.FIPSCode)?null==r?void 0:r.FIPSCode:n,MeasureValue:Number.isNaN(Number(e.dataValue))?e.dataValue:Number(e.dataValue),MeasureDisplayValue:e.displayValue,GeographicAreaID:(null==r?void 0:r.GeographicAreaID)?r.GeographicAreaID:n,Latitude:null,Longitude:null,GeographicGrouping:null,SuppressionTypeCode:null};if(f||(f=e.temporalDescription),e.groupById&&"0"!==e.groupById&&Object.keys(l).length){let n=l[e.groupById][0].name,i=l[e.groupById][0].itemName;p.get(n)?p.get(n).includes(i)||p.get(n).push(i):(p.set(n,[]),null===(t=p.get(n))||void 0===t||t.push(i)),p&&p.entries().next().value[1][0]===i&&(null==r?void 0:r.GeographicAreaID)&&!c.includes(null==r?void 0:r.GeographicAreaID)&&c.push(null==r?void 0:r.GeographicAreaID),s.OtherFilter1Text=i}o&&(A.includes(o)||A.push(o)),e.secondaryValue&&!g.hasSecondaryValue&&(g.hasSecondaryValue=!0),e.standardError&&!g.hasStandardError&&(g.hasStandardError=!0),e.hatching&&!g.hasDataComment&&(g.hasDataComment=!0),this.geographicAreaService.addDynamicGeographicAreas(new ax(s.GeographicArea,s.GeographicAreaID,s.FIPSCode),i),a.push(s)}),c&&(d.geographicAreaIds=c),u&&(h.geographicAreaIds=u),p.size>0&&(h.otherFilters=this.createOtherFilters(p)),A&&(h.timePeriod1Values=A,d.timePeriod1Values=A,r.options=A,r.label=f,r.selected=A);let y=this.createStaticHeadersFromData(s&&s.tableResult?s.tableResult[0]:null,l,g);return new aQ(new lQ(a,y),h,d,i)}createStaticHeadersFromData(e,t,n){let r=[{ConfigMeasureSeq:0,ColumnKey:"GeographicArea",ColumnLabel:"County",MappedColumnName:"GeographicArea",ColumnDefinition:null,ColumnType:"GeographicArea"},{ConfigMeasureSeq:0,ColumnKey:"Year",ColumnLabel:"Year",MappedColumnName:"TimePeriod1Text",ColumnDefinition:null,ColumnType:"TimePeriod1"}];if(!e)return r;n.hasSecondaryValue&&r.push({ConfigMeasureSeq:0,ColumnKey:e.secondaryValueName,ColumnLabel:e.secondaryValueName,MappedColumnName:"ExtraneousData1Text",ColumnDefinition:e.secondaryValueName,ColumnType:"ExtraneousData"}),n.hasStandardError&&r.push({ConfigMeasureSeq:0,ColumnKey:e.standardErrorName,ColumnLabel:e.standardErrorName?e.standardErrorName:"",MappedColumnName:"ExtraneousData2Text",ColumnDefinition:e.standardErrorName,ColumnType:"ExtraneousData"}),n.hasDataComment&&r.push({ConfigMeasureSeq:0,ColumnKey:"dataComment",ColumnLabel:"Data Comment",MappedColumnName:"ExtraneousData3Text",ColumnDefinition:"Data Comment",ColumnType:"ExtraneousData"});let i=e.groupById;return Object.keys(t).length&&i&&r.push({ConfigMeasureSeq:0,ColumnKey:t[i][0].columnName,ColumnLabel:t[i][0].name,MappedColumnName:"OtherFilter1Text",ColumnDefinition:t[i][0].name,ColumnType:"Filter"}),e.calculationType&&r.push({ConfigMeasureSeq:0,ColumnKey:"MeasureValue",ColumnLabel:e.calculationType,MappedColumnName:"MeasureValue",ColumnDefinition:e.calculationType,ColumnType:"Value"}),r}createOtherFilters(e){let t=[];return e.forEach((e,n,r)=>{let i=1,o=new yk(n,"OtherFilter"+i+"Text",e);t.push(o),i++}),t}}return e.DEFAULT_BLANK="N/A",e.\u0275fac=function(t){return new(t||e)(mr(Py),mr("BASE_URL"),mr(lx))},e.\u0275prov=de({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const vk=["locationModal"],bk=["optionsModal"];function Ck(e,t){1&e&&(na(0,"div",17),na(1,"div",18),na(2,"span",19),Ra(3,"Loading..."),ra(),ra(),na(4,"span",20),Ra(5,"Loading bookmark and map data..."),ra(),ra())}function Bk(e,t){if(1&e&&(na(0,"li"),Ra(1),ra()),2&e){const e=t.$implicit;yo(1),Pa(e)}}function _k(e,t){if(1&e&&(na(0,"div",21),na(1,"h5"),Ra(2,"Error Loading Map"),ra(),na(3,"ul",22),$s(4,Bk,2,1,"li",23),ra(),ra()),2&e){const e=da();yo(4),ea("ngForOf",e.errorList)}}function Ek(e,t){if(1&e&&ia(0,"mi-map",24),2&e){const e=da();ea("queryResult",e.queryResult)("panelController",e.panelController)("initialZoom",e.embeddedZoomLevel)}}function Fk(e,t){1&e&&(na(0,"div",25),na(1,"h5"),Ra(2,"No Data Available"),ra(),na(3,"p"),Ra(4,"Please check your query parameters and try again."),ra(),ra())}function Tk(e,t){if(1&e){const e=aa();na(0,"div",26),na(1,"h4",27),Ra(2,"Location Information"),ra(),na(3,"button",28),Aa("click",function(){return It(e).$implicit.dismiss()}),Ra(4,"\xd7"),ra(),ra(),na(5,"div",29),na(6,"p"),Ra(7,"Location details would be displayed here."),ra(),ra(),na(8,"div",30),na(9,"button",31),Aa("click",function(){return It(e).$implicit.dismiss()}),Ra(10,"Close"),ra(),ra()}}function Sk(e,t){if(1&e){const e=aa();na(0,"div",26),na(1,"h4",27),Ra(2,"Map Options"),ra(),na(3,"button",32),Aa("click",function(){return It(e).$implicit.dismiss()}),ra(),ra(),na(4,"div",29),na(5,"p"),Ra(6,"Map configuration options would be displayed here."),ra(),ra(),na(7,"div",30),na(8,"button",31),Aa("click",function(){return It(e).$implicit.dismiss()}),Ra(9,"Close"),ra(),ra()}}let xk=(()=>{class e{constructor(e,t,n,r,i,o,s,a,l,c){this.route=e,this.dataService=t,this.filterService=n,this.httpService=r,this.baseUrl=i,this.websiteMetricService=o,this.ngbModal=s,this.configService=a,this.cdcApiService=l,this.changeDetector=c,this.queryResult=null,this.currentQueryRequest=null,this.loading=!0,this.errorList=[],this.faCogs=Ux,this.faMap=Dx,this.faSpinner=Rx,this.template={},this.params={},this.panelController={panelSide:"embedded",selectedTab:"Map",isFileSaverSupported:!0,indexController:{leftMapDrawn:!1,rightMapDrawn:!1,leftPanelVisible:!1,rightPanelVisible:!1,mapsLinked:!1,mapExtentEventList:[],leftSideTab:"map",rightSideTab:"map",viewingSideBySideMaps:()=>!1},editDataOptionsText:()=>"Edit Data Options",editDataOptions:()=>{},footnotes:""},this.embeddedZoomLevel=7,this.resizeTimeout=null,o.dailyCookieGuid=a.dailyCookieGuid}initializeUserMetrics(){this.websiteMetricService.dailyCookieGuid&&this.httpService.post(this.baseUrl+"WebsiteMetrics/AddUserMetric",{DailyUserId:this.websiteMetricService.dailyCookieGuid,PersistentUserId:this.configService.persistentCookieGuid}).subscribe({next:()=>{console.log("User metrics initialized for embedded map")},error:e=>{console.error("Error initializing user metrics for embedded map:",e)}})}ngOnInit(){this.initializeUserMetrics(),this.route.queryParams.subscribe(e=>{if(e&&e.bookmark)try{this.loadBookmark(parseInt(e.bookmark))}catch(t){this.errorList.push("Invalid bookmark parameter provided."),this.loading=!1}else this.errorList.push("No bookmark parameter provided. Please provide a valid bookmark ID."),this.loading=!1}),this.calculateEmbeddedZoom()}ngOnDestroy(){this.resizeTimeout&&clearTimeout(this.resizeTimeout)}onWindowResize(e){this.resizeTimeout&&clearTimeout(this.resizeTimeout),this.resizeTimeout=setTimeout(()=>{const e=this.embeddedZoomLevel;this.calculateEmbeddedZoom(),console.log(`Embedded map zoom adjusted from ${e} to ${this.embeddedZoomLevel} due to window resize to ${window.innerWidth}x${window.innerHeight}`),this.adjustMapZoom()},250)}calculateEmbeddedZoom(){const e=window.innerWidth,t=window.innerHeight,n=e/t,r=e*t;let i=7;i=r<2e5?4.5:r<3e5?5:r<12e5?6:7,n<.6?i-=.5:n>2.5?i-=1:(n<.8||n>1.6)&&(i-=.25),(e<400||t<300)&&(i=Math.min(i,4.5)),i=Math.max(3.5,Math.min(8,i)),this.embeddedZoomLevel=Math.round(2*i)/2,console.log(`Embedded map zoom calculated: ${this.embeddedZoomLevel} for dimensions ${e}x${t} (aspect ratio: ${n.toFixed(2)}, total pixels: ${r})`)}adjustMapZoom(){this.miMapComponent&&setTimeout(()=>{this.miMapComponent.setZoomLevel(this.embeddedZoomLevel)},100)}loadBookmark(e){var t=this;return nC(function*(){try{t.loading=!0,t.errorList=[];const n=yield t.filterService.getBookmarks(e);if(!n)return t.errorList.push("Bookmark not found or could not be loaded."),void(t.loading=!1);const r=t.createQueryRequestFromBookmark(n);t.currentQueryRequest=r,yield t.runQuery(r)}catch(n){console.error("Error loading bookmark:",n),t.errorList.push("Failed to load bookmark. Please verify the bookmark ID is correct."),t.loading=!1}})()}createQueryRequestFromBookmark(e){const t=new sx;if(t.Category=e.Category,t.Content=e.Content,t.Indicator=e.Indicator,t.MeasureSeq=e.MeasureSeq,t.GeographicGroupingSeq=e.GeographicGroupingSeq,t.GeographicGroupingType=e.GeographicGroupingType,t.GeographicAreaSeqs=e.GeographicAreaSeqs||[],t.TimePeriod1Values=e.TimePeriod1Values||[],t.TimePeriod2Values=e.TimePeriod2Values||[],t.OtherFilterValues=[],e.OtherFilterValues)if(Array.isArray(e.OtherFilterValues))t.OtherFilterValues=e.OtherFilterValues;else for(const[n,r]of Object.entries(e.OtherFilterValues))t.OtherFilterValues.push({Key:n,Value:r});return t.IsBasicQuery=e.IsBasicQuery||!1,t.IsCdcQuery=e.IsCdcQuery||!1,t}runQuery(e){var t=this;return nC(function*(){try{if(t.loading=!0,t.errorList=[],e.Category&&-1!==e.Category||t.errorList.push("Category is required."),e.Content&&-1!==e.Content||t.errorList.push("Content Area is required."),e.Indicator&&-1!==e.Indicator||t.errorList.push("Indicator is required."),e.MeasureSeq&&-1!==e.MeasureSeq||t.errorList.push("Measure is required."),t.errorList.length>0)return void(t.loading=!1);t.dataService.setLastQueryRequest(e),t.filterService.getMeasure(e.MeasureSeq).subscribe({next:n=>{e.IsCdcQuery&&n.cdcApiEndpoint?t.runCdcQuery(e,n):t.runRegularQuery(e)},error:e=>{console.error("Error getting measure details:",e),t.errorList.push("Failed to load measure information."),t.loading=!1}})}catch(n){console.error("Error executing query:",n),t.errorList.push("An error occurred while executing the query. Please check your parameters and try again."),t.loading=!1}})()}runCdcQuery(e,t){var n;const r=new nQ;r.selected=[{id:t.measureSeq,metadataSeq:t.metadataSeq,timeConceptSeq:t.timeConceptSeq,indicatorSeq:t.indicatorSeq,extra:null,featureLayers:t.featureLayers,cdcApiEndpoint:t.cdcApiEndpoint,mapLegendConfiguration:t.mapLegendConfiguration,name:t.measureName,description:t.measureDescription,title:t.measureTitle,geographicAreaIds:t.geographicAreaIds||[]}];const i=new nQ;i.selected=(null===(n=e.TimePeriod1Values)||void 0===n?void 0:n.map(e=>({id:e,extra:null})))||[],this.cdcApiService.getResultSet(r,i,"embedded").pipe(T(e=>(e.measure=r.selected[0],e.measure&&(e.measure.measureSeq=r.selected[0].id,e.measure.measureDescription=r.selected[0].description,e.measure.measureTitle=r.selected[0].title,e.measure.measureName=r.selected[0].name),e)),ef(t=>{var n;e.GeographicAreaSeqs=null===(n=null==t?void 0:t.queryOptions)||void 0===n?void 0:n.geographicAreaIds,this.dataService.setLastQueryRequest(e),this.dataService.previousQueryResponse.next(t)}),WE(e=>{const t="This could signify a problem with the website, or with your internet connection. Please try again later. If the error continues to persist, contact the administrator.";return this.errorList.push("geographicAreasMapError"===e.errorType?"There was an error retrieving the geographic map. "+t:"cdcApiEndpointError"===e.errorType?"We were unable to load data. "+t:"Failed to load data from CDC API. "+t),this.loading=!1,cp(e)})).subscribe(t=>{this.queryResult=t,this.queryResult.panelSide="embedded",this.trackBookmarkMetrics(e),this.loading=!1,this.changeDetector.detectChanges()})}runRegularQuery(e){this.httpService.post(this.baseUrl+"Data",{category:e.Category,content:e.Content,indicator:e.Indicator,measureSeq:e.MeasureSeq,timePeriod1Values:e.TimePeriod1Values,timePeriod2Values:e.TimePeriod2Values,geographicGroupingSeq:e.GeographicGroupingSeq,geographicGroupingType:e.GeographicGroupingType,geographicAreaSeqs:e.GeographicAreaSeqs,otherFilterValues:e.OtherFilterValues,isBasicQuery:e.IsBasicQuery,isCdcQuery:e.IsCdcQuery}).subscribe(t=>{this.queryResult=t,this.queryResult.panelSide="embedded",this.dataService.previousQueryResponse.next(this.queryResult),this.dataService.leftQueryResponse.next(this.queryResult),this.trackBookmarkMetrics(e),this.loading=!1},e=>{this.errorList.push("No data returned from query."),this.loading=!1})}trackBookmarkMetrics(e){this.websiteMetricService.createWebsiteMetric(new hx({MeasureSeq:e.MeasureSeq,ContentAreaSeq:e.Content,IndicatorSeq:e.Indicator})).subscribe({next:()=>{e.IsBasicQuery||this.websiteMetricService.createWebsiteMetricAction(new ux({Action:px.EmbeddedMapAction,Tab:dx.EmbeddedMap,Information:`Embedded Map loaded with Bookmark - MeasureSeq: ${e.MeasureSeq}`})).subscribe()},error:e=>{console.error("Error creating website metric for bookmark:",e)}})}focusBody(){const e=document.querySelector(".embedded-main-content");e&&(e.focus(),e.scrollIntoView())}}return e.\u0275fac=function(t){return new(t||e)(Zs(yT),Zs(cx),Zs(Ax),Zs(Py),Zs("BASE_URL"),Zs(iQ),Zs(Yg),Zs(mk),Zs(wk),Zs(yc))},e.\u0275cmp=Ge({type:e,selectors:[["app-embedded-mi-map"]],viewQuery:function(e,t){if(1&e&&(yA(vk,5),yA(bk,5),yA(gk,5)),2&e){let e;mA(e=vA())&&(t.locationModal=e.first),mA(e=vA())&&(t.optionsModal=e.first),mA(e=vA())&&(t.miMapComponent=e.first)}},hostBindings:function(e,t){1&e&&Aa("resize",function(e){return t.onWindowResize(e)},!1,bi)},decls:24,vars:4,consts:[[1,"embedded-mi-map-container"],[1,"embedded-header"],["id","branding-bar",1,"navbar","navbar-expand","navbar-dark"],[1,"navbar-nav","m-auto"],[1,"skip-nav","sr-only",3,"click"],["href","http://www.michigan.gov/mitracking","title","MiTracking Home","target","_blank",1,"nav-link"],["href","https://www.michigan.gov/mdhhs/safety-injury-prev/environmental-health/topics/mitracking/contact","title","Contact","target","_blank",1,"nav-link"],["href","http://www.michigan.gov/mdhhs","title","MDHHS Home","target","_blank",1,"nav-link"],["href","http://www.michigan.gov","title","An Official State of Michigan Web Site","target","_blank",1,"mi-gov-link","nav-link"],["tabindex","-1",1,"embedded-main-content"],["class","loading-container d-flex justify-content-center align-items-center",4,"ngIf"],["class","alert alert-danger","role","alert",4,"ngIf"],["id","embedded-display-Panel",1,"map-wrapper"],["class","tab-content",3,"queryResult","panelController","initialZoom",4,"ngIf"],["class","alert alert-info","role","alert",4,"ngIf"],["locationModal",""],["optionsModal",""],[1,"loading-container","d-flex","justify-content-center","align-items-center"],["role","status",1,"spinner-border","text-primary"],[1,"sr-only"],[1,"ml-2"],["role","alert",1,"alert","alert-danger"],[1,"mb-0"],[4,"ngFor","ngForOf"],[1,"tab-content",3,"queryResult","panelController","initialZoom"],["role","alert",1,"alert","alert-info"],[1,"modal-header"],[1,"modal-title"],["type","button","aria-label","Close",1,"close",3,"click"],[1,"modal-body"],[1,"modal-footer"],["type","button",1,"btn","btn-secondary",3,"click"],["type","button","aria-label","Close",1,"btn-close",3,"click"]],template:function(e,t){1&e&&(na(0,"div",0),na(1,"header",1),na(2,"nav",2),na(3,"div",3),na(4,"button",4),Aa("click",function(){return t.focusBody()}),Ra(5,"Skip to Main Content"),ra(),na(6,"a",5),Ra(7,"MiTracking Home"),ra(),na(8,"a",6),Ra(9,"Contact"),ra(),na(10,"a",7),Ra(11,"MDHHS Home"),ra(),na(12,"a",8),Ra(13,"MI.gov"),ra(),ra(),ra(),ra(),na(14,"div",9),$s(15,Ck,6,0,"div",10),$s(16,_k,5,1,"div",11),na(17,"div",12),$s(18,Ek,1,3,"mi-map",13),ra(),$s(19,Fk,5,0,"div",14),ra(),ra(),$s(20,Tk,11,0,"ng-template",null,15,_A),$s(22,Sk,10,0,"ng-template",null,16,_A)),2&e&&(yo(15),ea("ngIf",t.loading&&0===t.errorList.length),yo(1),ea("ngIf",t.errorList.length>0),yo(2),ea("ngIf",!t.loading&&0===t.errorList.length&&t.queryResult),yo(1),ea("ngIf",!t.loading&&0===t.errorList.length&&!t.queryResult))},directives:[Ig,sh,ih,gk],styles:[".embedded-mi-map-container[_ngcontent-%COMP%]{width:100%;height:100vh;overflow:hidden;position:relative;display:flex;flex-direction:column}.embedded-header[_ngcontent-%COMP%]{flex-shrink:0;background-color:#fff;border-bottom:1px solid #dee2e6}.embedded-main-content[_ngcontent-%COMP%]{flex:1;padding:0 .25rem .25rem;overflow:auto;display:flex;flex-direction:column;min-height:0}.embedded-main-content[_ngcontent-%COMP%]:focus{outline:2px solid #005fcc;outline-offset:-2px}.loading-container[_ngcontent-%COMP%]{width:100%;height:100%;background-color:#f8f9fa;flex:1}.map-wrapper[_ngcontent-%COMP%]{width:100%;flex:1;position:relative;min-height:70vh;display:flex;flex-direction:column}.embedded-mi-map-container[_ngcontent-%COMP%]   .map-link[_ngcontent-%COMP%], .embedded-mi-map-container[_ngcontent-%COMP%]   .panel-controls[_ngcontent-%COMP%], .embedded-mi-map-container[_ngcontent-%COMP%]   .query-panel[_ngcontent-%COMP%]{display:none}.embedded-mi-map-container[_ngcontent-%COMP%]   #embedded[_ngcontent-%COMP%], .embedded-mi-map-container[_ngcontent-%COMP%]   .map-container[_ngcontent-%COMP%], .embedded-mi-map-container[_ngcontent-%COMP%]   mi-map[_ngcontent-%COMP%], .embedded-mi-map-container[_ngcontent-%COMP%]   mi-map[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{width:100%!important;height:100%!important;min-height:70vh!important}.embedded-mi-map-container[_ngcontent-%COMP%]   mi-map[_ngcontent-%COMP%]{display:block;flex:1}.embedded-mi-map-container[_ngcontent-%COMP%]   #embedded[_ngcontent-%COMP%]{position:relative!important;background-color:#f0f0f0}.embedded-mi-map-container[_ngcontent-%COMP%]   *[_ngcontent-%COMP%]{box-sizing:border-box}@media (max-width: 768px){.embedded-main-content[_ngcontent-%COMP%]{padding:0 .125rem .125rem}.embedded-mi-map-container[_ngcontent-%COMP%]   #embedded[_ngcontent-%COMP%], .embedded-mi-map-container[_ngcontent-%COMP%]   .map-container[_ngcontent-%COMP%], .embedded-mi-map-container[_ngcontent-%COMP%]   mi-map[_ngcontent-%COMP%], .map-wrapper[_ngcontent-%COMP%]{min-height:60vh!important}}@media (max-width: 400px), (max-height: 350px){.embedded-mi-map-container[_ngcontent-%COMP%]{height:100vh}.embedded-header[_ngcontent-%COMP%]{display:none}.embedded-main-content[_ngcontent-%COMP%]{padding:0}.embedded-mi-map-container[_ngcontent-%COMP%]   #embedded[_ngcontent-%COMP%], .embedded-mi-map-container[_ngcontent-%COMP%]   .map-container[_ngcontent-%COMP%], .embedded-mi-map-container[_ngcontent-%COMP%]   mi-map[_ngcontent-%COMP%], .map-wrapper[_ngcontent-%COMP%]{min-height:100vh!important;height:100vh!important}}@media (max-width: 800px) and (min-width: 401px), (max-height: 600px) and (min-height: 351px){.embedded-header[_ngcontent-%COMP%]{font-size:.875rem}.embedded-header[_ngcontent-%COMP%]   .nav-link[_ngcontent-%COMP%]{padding:.125rem .5rem}.embedded-mi-map-container[_ngcontent-%COMP%]   #embedded[_ngcontent-%COMP%], .embedded-mi-map-container[_ngcontent-%COMP%]   .map-container[_ngcontent-%COMP%], .embedded-mi-map-container[_ngcontent-%COMP%]   mi-map[_ngcontent-%COMP%], .map-wrapper[_ngcontent-%COMP%]{min-height:75vh!important}}.embedded-mi-map-container[_ngcontent-%COMP%]   #branding-bar[_ngcontent-%COMP%]{height:2.2rem;padding:0}#embedded-display-Panel[_ngcontent-%COMP%]   .tab-content[_ngcontent-%COMP%]{padding-top:0}.embedded-mi-map-container[_ngcontent-%COMP%]   #branding-bar[_ngcontent-%COMP%]   .navbar-nav[_ngcontent-%COMP%]{margin:0;height:100%}.embedded-mi-map-container[_ngcontent-%COMP%]   #branding-bar[_ngcontent-%COMP%]   .nav-link[_ngcontent-%COMP%]{padding:.25rem .75rem}"]}),e})(),Qk=(()=>{class e{constructor(){}getPager(e,t,n){t=t||1,n=n||10;let r,i,o=Math.ceil(e/n);o<=10?(r=1,i=o):t<=6?(r=1,i=10):t+4>=o?(r=o-9,i=o):(r=t-5,i=t+4);let s=(t-1)*n;return{totalItems:e,currentPage:t,pageSize:n,totalPages:o,startPage:r,endPage:i,startIndex:s,endIndex:Math.min(s+n,e),pages:IE(r,i+1)}}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=de({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const kk=(e,t)=>null===e?-1:null===t?1:e.localeCompare(t,void 0,{numeric:!0,sensitivity:"base"});var Uk=n(605);let Ok=(()=>{class e{transform(e,t){return void 0===t?e:e&&0!==e.length?e.length>t?e.substring(0,t)+"...":e:e||""}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=$e({name:"ellipsis",type:e,pure:!0}),e})();function Ik(e,t){if(1&e&&ia(0,"fa-icon",12),2&e){const e=da().$implicit,t=da();ea("icon",t.faChevronDown)("rotate",t.getSort(e)?180:void 0)}}function Lk(e,t){1&e&&ia(0,"fa-icon",13),2&e&&ea("icon",da(2).faSort)}function Dk(e,t){if(1&e&&ia(0,"fa-icon",14),2&e){const e=da(),t=e.first,n=e.last,r=e.$implicit,i=da();ma("placement",!0===t?"right":!0===n?"left":"bottom"),ea("icon",i.faQuestionCircle)("ngbPopover",r.ColumnDefinition),zs("alt",r.ColumnDefinition)}}function Mk(e,t){if(1&e&&ia(0,"fa-icon",15),2&e){const e=da(),t=e.first,n=e.last,r=e.$implicit,i=da();ma("placement",!0===t?"right":!0===n?"left":"bottom"),ea("icon",i.faQuestionCircle)("ngbPopover",r.ColumnDefinition),zs("alt",r.ColumnDefinition)}}const Hk=function(e){return{"text-right":e}};function Rk(e,t){if(1&e){const e=aa();na(0,"th",5),na(1,"div",6),Aa("click",function(){const t=It(e).$implicit;return da().toggleSort(t)}),na(2,"a",7),Ra(3),ra(),Ra(4,"\xa0 "),$s(5,Ik,1,2,"fa-icon",8),$s(6,Lk,1,1,"fa-icon",9),ra(),$s(7,Dk,1,4,"fa-icon",10),$s(8,Mk,1,4,"fa-icon",11),ra()}if(2&e){const e=t.$implicit,n=t.index,r=t.last,i=da();ea("id","tableIdCol"+n)("ngClass",jc(8,Hk,r&&"Value"===e.ColumnType)),yo(1),zs("aria-label","Sort By "+e.ColumnLabel),yo(2),Pa(e.ColumnLabel),yo(2),ea("ngIf",null!==i.getSort(e)),yo(1),ea("ngIf",null===i.getSort(e)),yo(1),ea("ngIf",e.ColumnDefinition),yo(1),ea("ngIf",e.ColumnDefinition)}}function Pk(e,t){if(1&e&&(na(0,"td",18),ia(1,"span",19),ra()),2&e){const e=t.$implicit,n=t.index;ea("ngClass",jc(3,Hk,t.last&&"Value"===e.ColumnType)),zs("headers","tableIdCol"+n),yo(1),ea("innerHtml",e.Value,ui)}}function Nk(e,t){if(1&e&&(na(0,"tr"),$s(1,Pk,2,5,"td",17),ra()),2&e){const e=t.$implicit;yo(1),ea("ngForOf",e)}}function Kk(e,t){if(1&e&&(na(0,"tbody"),$s(1,Nk,2,1,"tr",16),ra()),2&e){const e=da();yo(1),ea("ngForOf",e.sortedData)}}function Vk(e,t){1&e&&ia(0,"span",19),2&e&&ea("innerHtml",da().$implicit.Value,ui)}function Gk(e,t){1&e&&(ia(0,"span",19),Zc(1,"ellipsis")),2&e&&ea("innerHtml",eA(1,1,da().$implicit.Value,500),ui)}function jk(e,t){if(1&e&&(na(0,"td",18),$s(1,Vk,1,1,"span",21),$s(2,Gk,2,4,"span",21),ra()),2&e){const e=t.$implicit,n=t.index;ea("ngClass",jc(4,Hk,t.last&&"Value"===e.ColumnType)),zs("headers","tableIdCol"+n),yo(1),ea("ngIf",!e.isHtml),yo(1),ea("ngIf",e.isHtml)}}function qk(e,t){if(1&e){const e=aa();na(0,"tr"),$s(1,jk,3,6,"td",17),na(2,"td"),na(3,"button",20),Aa("click",function(){const t=It(e).$implicit;return da(2).selectRow(t)}),Ra(4,"Select"),ra(),ra(),ra()}if(2&e){const e=t.$implicit;yo(1),ea("ngForOf",e)}}function zk(e,t){if(1&e&&(na(0,"tbody"),$s(1,qk,5,1,"tr",16),Zc(2,"slice"),ra()),2&e){const e=da();yo(1),ea("ngForOf",tA(2,1,e.sortedData,(e.pager.currentPage-1)*e.pageSize,e.pager.currentPage*e.pageSize))}}function Wk(e,t){if(1&e){const e=aa();na(0,"div",22),na(1,"ngb-pagination",23),Aa("pageChange",function(t){return It(e),da().onPageChange(t)})("pageChange",function(t){return It(e),da().pager.currentPage=t}),ra(),ia(2,"br"),na(3,"small"),Ra(4),ra(),ra()}if(2&e){const e=da();yo(1),ea("page",e.pager.currentPage)("pageSize",e.pageSize)("collectionSize",e.sortedData.length)("boundaryLinks",!0)("directionLinks",!0)("ellipses",!0)("maxSize",5),yo(3),Va("Displaying records ",e.pager.startIndex+1," - ",e.pager.endIndex," of ",e.sortedData.length,"")}}const Xk=function(e){return{"table-responsive":e}};let Jk=(()=>{class e{constructor(e,t){this.pagerService=e,this.modalService=t,this.paging=!0,this.pageSize=10,this.faQuestionCircle=Ex,this.faSort=Hx,this.faChevronDown=wx,this.sortOpts={col:null,reverse:!1},this.pager={totalPages:0,startIndex:0,endIndex:0,currentPage:1},this.parsedData=[],this.sortedData=[],this.isScreenLargeEnoughForSideBySide=!0,this.panelRemovedDueToResize=!1,this.channel=new BroadcastChannel("mi-search-table"),this.instanceId=(0,Uk.v4)(),this.channelChangeAnnouncements=new _,this.channel.onmessage=e=>{var t,n,r;(null===(t=e.data)||void 0===t?void 0:t.instanceId)&&(null===(n=e.data)||void 0===n?void 0:n.key)&&(null===(r=e.data)||void 0===r?void 0:r.instanceId)!==this.instanceId&&this.channelChangeAnnouncements.next(e.data)}}ngOnInit(){if(null==this.paging&&(this.paging=!1),null==this.pageSize&&(this.pageSize=2),!this.theadConfig)throw new Error("Invalid floating table header configuration!")}ngOnChanges(e){(e.headers||e.data)&&this.handleDataChange()}parseData(){let e=[];j_(this.data,t=>{let n=[];j_(this.headers,e=>{let r={MappedColumnName:e.MappedColumnName,ColumnType:e.ColumnType,Name:e.ColumnLabel,Value:t[e.MappedColumnName],id:t[e.ColumnLabel.replace(/\s/g,"")+"Seq"],isHtml:"Value"!==e.ColumnType&&!0===e.isHtml,highlight:!0===e.isHtml?e.highlight:null};"GeographicArea"===e.ColumnType&&null==t.MeasureValue&&(r.Value+="**"),n.push(r)}),e.push(n)}),this.parsedData=e,this.sortedData=e}sortRows(){if(!this.sortOpts.col)return void(this.sortedData=this.parsedData);const e=this.headers.findIndex(e=>e.MappedColumnName===this.sortOpts.col);this.sortedData=[...this.parsedData].sort((t,n)=>{const r=kk(t[e].Value,n[e].Value);return this.sortOpts.reverse?-r:r})}toggleSort(e){if(this.sortOpts.col===e.MappedColumnName)switch(this.sortOpts.reverse){case!1:this.sortOpts.reverse=!0;break;case!0:this.sortOpts={col:null,reverse:null}}else this.sortOpts={col:e.MappedColumnName,reverse:!1};this.sortRows()}getSort(e){return this.sortOpts.col===e.MappedColumnName?this.sortOpts.reverse:null}setPage(e){(e<1||e>this.pager.totalPages)&&0!==this.pager.totalPages||(this.pager=this.pagerService.getPager(this.parsedData.length,e,this.pageSize))}loadSearchIntoQuery(e){let t={};q_(e,function(e){t[e.Name]=[{id:e.id,name:e.Value}]}),this.remapQueryObject(t),this.parseData(),this.postMessageToChannel(t)}tooltipText(e){return"Load "+bE(J_(e,function(e){return"MeasureName"===e.MappedColumnName})).Value+" query"}selectRow(e){this.loadSearchIntoQuery(e),this.closeModal()}remapQueryObject(e){e.Content=e["Content Area"],e.MeasureSeq=e.Measure}handleDataChange(){this.sortOpts={col:null,reverse:!1},null!=this.headers&&null!=this.data&&(this.headers.length&&this.data.length?(this.parseData(),!0===this.paging&&this.setPage(1),setTimeout(function(){})):this.parsedData=[])}onPageChange(e){const t=document.getElementById("paging-component");this.pager.currentPage=e,this.pager.startIndex=(this.pager.currentPage-1)*this.pageSize,this.pager.endIndex=Math.min(this.pager.startIndex+this.pageSize,this.sortedData.length),null==t||t.click()}setup(){}closeModal(){this.modalService.dismissAll("close")}postMessageToChannel(e){this.channel.postMessage({instanceId:this.instanceId,sortedData:e})}}return e.\u0275fac=function(t){return new(t||e)(Zs(Qk),Zs(Yg))},e.\u0275cmp=Ge({type:e,selectors:[["mi-search-table"]],inputs:{paging:"paging",pageSize:"pageSize",tableTitle:"tableTitle",tableCaption:"tableCaption",headers:"headers",data:"data",emptyValueLabel:"emptyValueLabel",theadConfig:"theadConfig",tableResponsive:"tableResponsive",rightPanelVisible:"rightPanelVisible",leftPanelVisible:"leftPanelVisible"},features:[At],decls:8,vars:8,consts:[[1,"row",3,"ngClass"],[1,"table","table-condensed","table-striped",3,"summary"],["scope","col",3,"id","ngClass",4,"ngFor","ngForOf"],[4,"ngIf"],["id","paging-component",4,"ngIf"],["scope","col",3,"id","ngClass"],["role","button",1,"d-inline-flex","align-items-center",3,"click"],["data-target","#",1,"column-sort","text-center"],["data-fa-transform","down-8","aria-hidden","true",3,"icon","rotate",4,"ngIf"],["aria-hidden","true",3,"icon",4,"ngIf"],["class","d-inline-block d-sm-inline-block context-help","triggers","mouseenter:click","role","tooltip","tabindex","0","aria-hidden","true",3,"icon","ngbPopover","placement",4,"ngIf"],["class","d-none d-sm-none context-help","triggers","mouseenter:click","role","tooltip","tabindex","0","aria-hidden","true",3,"icon","ngbPopover","placement",4,"ngIf"],["data-fa-transform","down-8","aria-hidden","true",3,"icon","rotate"],["aria-hidden","true",3,"icon"],["triggers","mouseenter:click","role","tooltip","tabindex","0","aria-hidden","true",1,"d-inline-block","d-sm-inline-block","context-help",3,"icon","ngbPopover","placement"],["triggers","mouseenter:click","role","tooltip","tabindex","0","aria-hidden","true",1,"d-none","d-sm-none","context-help",3,"icon","ngbPopover","placement"],[4,"ngFor","ngForOf"],[3,"ngClass",4,"ngFor","ngForOf"],[3,"ngClass"],[3,"innerHtml"],[1,"btn","btn-primary","mr-2",3,"click"],[3,"innerHtml",4,"ngIf"],["id","paging-component"],["aria-label","Pagination",3,"page","pageSize","collectionSize","boundaryLinks","directionLinks","ellipses","maxSize","pageChange"]],template:function(e,t){1&e&&(na(0,"div",0),na(1,"table",1),na(2,"thead"),na(3,"tr"),$s(4,Rk,9,10,"th",2),ra(),ra(),$s(5,Kk,2,1,"tbody",3),$s(6,zk,3,5,"tbody",3),ra(),$s(7,Wk,5,10,"div",4),ra()),2&e&&(ea("ngClass",jc(6,Xk,!0===t.tableResponsive)),yo(1),ma("summary",t.tableTitle),yo(3),ea("ngForOf",t.headers),yo(1),ea("ngIf",!t.paging),yo(1),ea("ngIf",t.paging),yo(1),ea("ngIf",t.paging))},directives:[nh,ih,sh,Yb,Sm,vm],pipes:[yh,Ok],styles:[""]}),e})();const $k=["searchResults"];function Yk(e,t){1&e&&ia(0,"span",8)}function Zk(e,t){1&e&&ia(0,"fa-icon",9),2&e&&ea("icon",da().faSearch)}function eU(e,t){if(1&e&&(na(0,"button",24),ia(1,"fa-icon",25),ra()),2&e){const e=da(2);ea("ngbPopover",e.searchResultsHelpText),yo(1),ea("icon",e.faQuestionCircle)}}function tU(e,t){if(1&e&&(na(0,"div"),na(1,"div",26),ia(2,"fa-icon",25),Ra(3,"\xa0No results found. "),ra(),ra()),2&e){const e=da(2);yo(2),ea("icon",e.faExclamationTriangle)}}function nU(e,t){if(1&e&&(na(0,"div"),ia(1,"mi-search-table",27),ra()),2&e){const e=da(2);yo(1),ea("paging",!0)("pageSize",10)("theadConfig",e.theadConfig)("tableResponsive",!0)("headers",e.headers)("data",e.searchResult)("rightPanelVisible",e.rightPanelVisible)("leftPanelVisible",e.leftPanelVisible)}}function rU(e,t){if(1&e){const e=aa();na(0,"div",10),na(1,"div",11),na(2,"div",12),na(3,"h4",13),Ra(4," Search Results "),$s(5,eU,2,2,"button",14),na(6,"label",15),Ra(7,"Search box tooltip"),ra(),ra(),na(8,"button",16),Aa("click",function(){return It(e),da().close()}),na(9,"span",17),Ra(10,"\xd7"),ra(),ra(),ra(),na(11,"div",18),$s(12,tU,4,1,"div",19),$s(13,nU,2,8,"div",19),ra(),na(14,"div",20),na(15,"div",21),Ra(16," You searched for the following terms: "),na(17,"strong"),Ra(18),Zc(19,"lowercase"),ra(),ra(),na(20,"div",22),na(21,"button",23),Aa("click",function(){return It(e),da().close()}),Ra(22,"Close"),ra(),ra(),ra(),ra(),ra()}if(2&e){const e=da();yo(5),ea("ngIf",e.searchResultsHelpText&&e.searchResultsHelpText.length>0),yo(7),ea("ngIf",!e.searchResult.length),yo(1),ea("ngIf",e.searchResult.length),yo(5),Pa(function(e,t,n){const r=Ut(),i=Bt(r,39);return rA(r,nA(r,39)?Jc(r,Vt(),4,i.transform,n,i):i.transform(n))}(0,0,e.searchTerm))}}let iU=(()=>{class e{constructor(e,t,n,r){this.filterService=e,this.modalService=t,this.http=n,this.baseUrl=r,this.faSearch=Lx,this.faExclamationTriangle=Gx,this.faQuestionCircle=Ex,this.searching=!1,this.searchResultsHelpText="",this.theadConfig={scrollContainer:function(){},position:"absolute",autoReflow:!0,debug:!0},this.headers=[{ColumnKey:"CategoryName",ColumnLabel:"Category",ColumnType:null,MappedColumnName:"CategoryName"},{ColumnKey:"ContentAreaName",ColumnLabel:"Content Area",ColumnType:null,MappedColumnName:"ContentAreaName"},{ColumnKey:"IndicatorName",ColumnLabel:"Indicator",ColumnType:null,MappedColumnName:"IndicatorName"},{ColumnKey:"MeasureName",ColumnLabel:"Measure",ColumnType:null,MappedColumnName:"MeasureName"},{ColumnKey:"Metadata",ColumnLabel:"About These Data",ColumnType:null,MappedColumnName:"Notes",isHtml:!0}],this.tooltipPromise=this.filterService.getTooltips().then(e=>{this.searchResultsHelpText=e.SearchHelpTooltip})}close(){this.modalService.dismissAll("close")}open(){this.searchTerm&&(this.searching=!0,this.http.post(this.baseUrl+"Search",{query:this.searchTerm}).toPromise().then(e=>{this.searchResultsResolve=e,this.searchResult=this.searchResultsResolve.results,this.searchTerm=this.searchResultsResolve.searchTerms.join(", "),this.modalService.open(this.searchResultModal,{size:"xl"})}),this.searching=!1,this.searchTerm=null)}runSearch(){this.searchTerm&&(this.searching=!0,this.open())}onKeypressEvent(e){13===e.charCode&&this.runSearch()}}return e.\u0275fac=function(t){return new(t||e)(Zs(Ax),Zs(Yg),Zs(Py),Zs("BASE_URL"))},e.\u0275cmp=Ge({type:e,selectors:[["search-modal"]],viewQuery:function(e,t){if(1&e&&yA($k,5,Bc),2&e){let e;mA(e=vA())&&(t.searchResultModal=e.first)}},inputs:{leftPanelVisible:"leftPanelVisible",rightPanelVisible:"rightPanelVisible"},decls:10,vars:5,consts:[["role","search"],[1,"input-group"],["type","text","name","input-search-topic","placeholder",'Search Topics - use " " for exact search',"aria-label","Search Topics",1,"form-control",2,"font-size","0.875rem",3,"ngModel","disabled","ngModelChange","keypress"],[1,"input-group-btn"],["type","button","id","btn-run-search","title","Run Search",1,"btn","btn-success","btn-searchButton",3,"disabled","click"],["class","spinner-border spinner-border-sm","aria-hidden","true",4,"ngIf"],[3,"icon",4,"ngIf"],["searchResults",""],["aria-hidden","true",1,"spinner-border","spinner-border-sm"],[3,"icon"],["role","document"],[1,"container-fluid"],[1,"modal-header"],["id","search-results-header","tabindex","0",1,"modal-title"],["class","btn btn-link btn-link-condensed","id","searchBoxTooltip","type","button","placement","bottom","triggers","mouseenter click focus","role","tooltip","tabindex","0",3,"ngbPopover",4,"ngIf"],["for","searchBoxTooltip",1,"sr-only"],["type","button","data-dismiss","modal","aria-label","Close",1,"close",3,"click"],["aria-hidden","true"],[1,"modal-body",2,"height","50vh","overflow-y","auto","overflow-x","auto","padding-top","0"],[4,"ngIf"],[1,"modal-footer"],[1,"col","pull-left","text-left"],[1,"col"],["type","button","data-dismiss","modal",1,"btn","btn-outline-secondary","float-right",3,"click"],["id","searchBoxTooltip","type","button","placement","bottom","triggers","mouseenter click focus","role","tooltip","tabindex","0",1,"btn","btn-link","btn-link-condensed",3,"ngbPopover"],["aria-hidden","true",3,"icon"],[1,"alert","alert-warning"],[3,"paging","pageSize","theadConfig","tableResponsive","headers","data","rightPanelVisible","leftPanelVisible"]],template:function(e,t){1&e&&(na(0,"div",0),na(1,"div",1),na(2,"input",2),Aa("ngModelChange",function(e){return t.searchTerm=e})("keypress",function(e){return t.onKeypressEvent(e)}),ra(),na(3,"span",3),na(4,"button",4),Aa("click",function(){return t.runSearch()}),$s(5,Yk,1,0,"span",5),$s(6,Zk,1,1,"fa-icon",6),Ra(7," \xa0Search "),ra(),ra(),ra(),ra(),$s(8,rU,23,6,"ng-template",null,7,_A)),2&e&&(yo(2),ea("ngModel",t.searchTerm)("disabled",t.searching),yo(2),ea("disabled",t.searching||!t.searchTerm),yo(1),ea("ngIf",t.searching),yo(1),ea("ngIf",!t.searching))},directives:[ud,Fd,$d,sh,Yb,Sm,Jk],pipes:[gh],styles:[".btn-searchButton[_ngcontent-%COMP%]{border-radius:0 6px 6px 0;height:35px;background-color:#2e7d32!important}#searchBoxTooltip[_ngcontent-%COMP%]   fa-icon[_ngcontent-%COMP%]{color:#999}"]}),e})();var oU=n(815);class sU{constructor(){this.type="",this.message=""}}var aU=(()=>(function(e){e.AMA="AMA",e.APA="APA",e.MLA="MLA"}(aU||(aU={})),aU))(),lU=(()=>(function(e){e.Table="selected-table",e.Chart="selected-chart",e.Map="selected-map",e.About="selected-about"}(lU||(lU={})),lU))();let cU=(()=>{class e{constructor(e){this.http=e}generateCitation(e){const t=new _y({"Content-Type":"application/json"});return this.http.post("/Citation/GenerateCitation",e,{headers:t})}copyToClipboard(e){if(navigator.clipboard&&window.isSecureContext)return navigator.clipboard.writeText(e);{const t=document.createElement("textarea");return t.value=e,t.style.position="fixed",t.style.left="-999999px",t.style.top="-999999px",document.body.appendChild(t),t.focus(),t.select(),new Promise((e,n)=>{document.execCommand("copy")?(t.remove(),e()):(t.remove(),n(new Error("Unable to copy to clipboard")))})}}}return e.\u0275fac=function(t){return new(t||e)(mr(Py))},e.\u0275prov=de({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function AU(e,t){if(1&e){const e=aa();na(0,"div",6),na(1,"div",17),na(2,"select-list",18),Aa("selectedChange",function(t){return It(e),da().specificChartTypeSelect.selected=t})("handleChanged",function(){return It(e),da().onSpecificChartTypeChange()}),ra(),ra(),ra()}if(2&e){const e=da();yo(2),ea("list",e.specificChartTypeSelect.options)("selected",e.specificChartTypeSelect.selected)("singleSelection",!0)("loading",e.specificChartTypeSelect.loading)}}function uU(e,t){1&e&&(na(0,"div",19),na(1,"div",20),na(2,"p",21),Ra(3,"Generating citation..."),ra(),na(4,"div",22),na(5,"span",23),Ra(6,"Generating citation..."),ra(),ra(),ra(),ra())}function hU(e,t){if(1&e&&(na(0,"div",19),na(1,"div",17),na(2,"div",24),ia(3,"fa-icon",15),Ra(4),ra(),ra(),ra()),2&e){const e=da();yo(3),ea("icon",e.faExclamationTriangle),yo(1),Na(" ",e.errorMessage," ")}}function dU(e,t){if(1&e){const e=aa();na(0,"div",6),na(1,"div",17),na(2,"label",25),Ra(3,"Saved Query URL:"),ra(),na(4,"div",26),na(5,"button",27),Aa("click",function(){return It(e),da().copyBookmarkToClipboard()}),ia(6,"fa-icon",28),Ra(7,"\xa0Copy "),ra(),ia(8,"input",29),ra(),na(9,"small",30),Ra(10,"This URL saves your current query and can be shared or bookmarked."),ra(),ra(),ra()}if(2&e){const e=da();yo(6),ea("icon",e.faCopy),yo(2),ea("value",e.bookmarkUrl)}}function pU(e,t){if(1&e&&(na(0,"div",19),na(1,"div",17),na(2,"label",31),Ra(3,"Generated Citation:"),ra(),na(4,"div",32),na(5,"textarea",33),Ra(6,"          "),ra(),ra(),ra(),ra()),2&e){const e=da();yo(5),ea("value",e.citation)}}function fU(e,t){if(1&e&&(na(0,"div",34),na(1,"div",17),na(2,"div",35),ia(3,"fa-icon",15),Ra(4," Citation copied to clipboard successfully! "),ra(),ra(),ra()),2&e){const e=da();yo(3),ea("icon",e.faCheckCircle)}}function gU(e,t){if(1&e&&(na(0,"div",34),na(1,"div",17),na(2,"div",35),ia(3,"fa-icon",15),Ra(4," Bookmark copied to clipboard successfully! "),ra(),ra(),ra()),2&e){const e=da();yo(3),ea("icon",e.faCheckCircle)}}let mU=(()=>{class e{constructor(e,t,n){this.activeModal=e,this.citationService=t,this.location=n,this.citation="",this.bookmarkUrl="",this.bookmarkSeq=0,this.isLoading=!1,this.errorMessage="",this.copySuccess=!1,this.copyBookmarkSuccess=!1,this.faCopy=Fx,this.faExclamationTriangle=Gx,this.faCheckCircle=Cx,this.citationTypeSelect={options:[],selected:[],loading:!1},this.chartTypeSelect={options:[{id:"selected-table",name:"Table"},{id:"selected-chart",name:"Chart"},{id:"selected-map",name:"Map"},{id:"selected-about",name:"About These Data"}],selected:[],loading:!1},this.specificChartTypeSelect={options:[],selected:[],loading:!1}}ngOnInit(){this.citationTypeSelect.options=Object.values(aU).map(e=>({id:e,name:e})),this.specificChartTypeSelect.options=[{id:"line",name:"Line Chart"},{id:"bar",name:"Bar Chart"},{id:"pie",name:"Pie Chart"}],this.citationTypeSelect.selected=[{id:aU.APA,name:aU.APA}];const e=this.selectedTab||lU.Table;let t=e;e&&!e.startsWith("selected-")&&(t=`selected-${e.toLowerCase()}`);const n=this.chartTypeSelect.options.find(e=>e.id===t);if(n)this.chartTypeSelect.selected=[n];else{const e=this.chartTypeSelect.options.find(e=>"selected-table"===e.id);e&&(this.chartTypeSelect.selected=[e])}if(this.specificChartTypeSelect.options.length>0)if(this.currentChartType){const e=this.mapGoogleChartTypeToCitationChartType(this.currentChartType),t=this.specificChartTypeSelect.options.find(t=>t.id===e);this.specificChartTypeSelect.selected=t?[t]:[this.specificChartTypeSelect.options[0]]}else this.specificChartTypeSelect.selected=[this.specificChartTypeSelect.options[0]];if(this.isChartTab()&&this.specificChartTypeSelect.options.length>0&&0===this.specificChartTypeSelect.selected.length)if(this.currentChartType){const e=this.mapGoogleChartTypeToCitationChartType(this.currentChartType),t=this.specificChartTypeSelect.options.find(t=>t.id===e);this.specificChartTypeSelect.selected=t?[t]:[this.specificChartTypeSelect.options[0]]}else this.specificChartTypeSelect.selected=[this.specificChartTypeSelect.options[0]];this.generateCitation()}onCitationTypeChange(){this.generateCitation()}onChartTypeChange(){this.isChartTab()&&0===this.specificChartTypeSelect.selected.length&&this.specificChartTypeSelect.options.length>0&&(this.specificChartTypeSelect.selected=[this.specificChartTypeSelect.options[0]]),this.generateCitation()}onSpecificChartTypeChange(){this.generateCitation()}generateCitation(){this.isLoading=!0,this.errorMessage="",this.copySuccess=!1,this.copyBookmarkSuccess=!1;const e={measureSeq:this.measureSeq,geographicAreaTypeSeq:this.geographicAreaTypeSeq||0,citationType:this.citationTypeSelect.selected.length>0?this.citationTypeSelect.selected[0].id:aU.APA,chartType:this.chartTypeSelect.selected.length>0?this.chartTypeSelect.selected[0].id:lU.Table,specificChartType:this.getSpecificChartType(),queryData:this.queryData,cdcApiEndpoint:this.cdcApiEndpoint};this.citationService.generateCitation(e).subscribe({next:e=>{this.citation=e.citation,this.bookmarkUrl=e.url,this.bookmarkSeq=e.bookmarkSeq,this.bookmarkSeq>0&&this.updateUrlWithBookmark(this.bookmarkSeq),this.isLoading=!1},error:e=>{console.error("Citation generation error:",e),this.errorMessage=e.error&&e.error.error?e.error.error:e.error&&"string"==typeof e.error?e.error:e.message?e.message:"Failed to generate citation. Please try again.",this.isLoading=!1}})}getSpecificChartType(){return(this.chartTypeSelect.selected.length>0?this.chartTypeSelect.selected[0].id:"")===lU.Chart&&this.specificChartTypeSelect.selected.length>0?this.specificChartTypeSelect.selected[0].id:""}copyToClipboard(){var e=this;return nC(function*(){try{yield e.citationService.copyToClipboard(e.citation),e.copySuccess=!0,setTimeout(()=>{e.copySuccess=!1},3e3)}catch(t){e.errorMessage="Failed to copy citation to clipboard.",console.error("Copy to clipboard error:",t)}})()}copyBookmarkToClipboard(){var e=this;return nC(function*(){try{yield e.citationService.copyToClipboard(e.bookmarkUrl),e.copyBookmarkSuccess=!0,setTimeout(()=>{e.copyBookmarkSuccess=!1},3e3)}catch(t){e.errorMessage="Failed to copy bookmark URL to clipboard.",console.error("Copy bookmark to clipboard error:",t)}})()}close(){this.activeModal.dismiss()}updateUrlWithBookmark(e){const t=new URL(window.location.href);t.searchParams.set("bookmark",e.toString()),this.location.replaceState(t.pathname+t.search)}mapGoogleChartTypeToCitationChartType(e){switch(e){case uy.LineChart:return"line";case uy.BarChart:return"bar";case uy.PieChart:return"pie";default:return"line"}}getTabDisplayName(e){switch(e){case lU.Table:case"selected-table":return"Table";case lU.Chart:case"selected-chart":return"Chart";case lU.Map:case"selected-map":return"Map";case lU.About:case"selected-about":return"About These Data";default:return e}}isChartTab(){const e=this.chartTypeSelect.selected.length>0?this.chartTypeSelect.selected[0].id:"";return e===lU.Chart||"selected-chart"===e}}return e.\u0275fac=function(t){return new(t||e)(Zs(zg),Zs(cU),Zs(Ku))},e.\u0275cmp=Ge({type:e,selectors:[["app-citation-modal"]],inputs:{queryResult:"queryResult",selectedTab:"selectedTab",queryData:"queryData",measureSeq:"measureSeq",geographicAreaTypeSeq:"geographicAreaTypeSeq",availableChartTypes:"availableChartTypes",cdcApiEndpoint:"cdcApiEndpoint",currentChartType:"currentChartType"},decls:26,vars:17,consts:[[1,"modal-header"],[1,"modal-title"],["type","button","aria-label","Close",1,"close",3,"click"],["aria-hidden","true"],[1,"modal-body"],[1,"container-fluid"],[1,"row","mb-3"],[1,"col-md-6"],["label","Citation Format",3,"list","selected","singleSelection","loading","selectedChange","handleChanged"],["label","Data Type (Auto-selected from current tab)",3,"list","selected","singleSelection","loading","selectedChange","handleChanged"],["class","row mb-3",4,"ngIf"],["class","row",4,"ngIf"],["class","row mt-2",4,"ngIf"],[1,"modal-footer"],["type","button",1,"btn","btn-primary","mr-auto",3,"disabled","click"],[3,"icon"],["type","button",1,"btn","btn-secondary",3,"click"],[1,"col-12"],["label","Chart Type",3,"list","selected","singleSelection","loading","selectedChange","handleChanged"],[1,"row"],[1,"col-12","text-center"],[1,"mt-2"],["role","status",1,"spinner-border","text-primary"],[1,"visually-hidden"],["role","alert",1,"alert","alert-danger"],["for","bookmarkUrl",1,"form-label"],[1,"input-group"],["type","button","title","Copy Bookmark URL",1,"btn","btn-secondary",3,"click"],["aria-hidden","true",3,"icon"],["id","bookmarkUrl","type","text","readonly","",1,"form-control",3,"value"],[1,"form-text","text-muted"],["for","generatedCitation",1,"form-label"],[1,"citation-container"],["id","generatedCitation","rows","4","readonly","",1,"form-control","citation-text",3,"value"],[1,"row","mt-2"],["role","alert",1,"alert","alert-success","alert-dismissible"]],template:function(e,t){1&e&&(na(0,"div",0),na(1,"h4",1),Ra(2,"Citation Generator"),ra(),na(3,"button",2),Aa("click",function(){return t.close()}),na(4,"span",3),Ra(5,"\xd7"),ra(),ra(),ra(),na(6,"div",4),na(7,"div",5),na(8,"div",6),na(9,"div",7),na(10,"select-list",8),Aa("selectedChange",function(e){return t.citationTypeSelect.selected=e})("handleChanged",function(){return t.onCitationTypeChange()}),ra(),ra(),na(11,"div",7),na(12,"select-list",9),Aa("selectedChange",function(e){return t.chartTypeSelect.selected=e})("handleChanged",function(){return t.onChartTypeChange()}),ra(),ra(),ra(),$s(13,AU,3,4,"div",10),$s(14,uU,7,0,"div",11),$s(15,hU,5,2,"div",11),$s(16,dU,11,2,"div",10),$s(17,pU,7,1,"div",11),$s(18,fU,5,1,"div",12),$s(19,gU,5,1,"div",12),ra(),ra(),na(20,"div",13),na(21,"button",14),Aa("click",function(){return t.copyToClipboard()}),ia(22,"fa-icon",15),Ra(23," Copy to Clipboard "),ra(),na(24,"button",16),Aa("click",function(){return t.close()}),Ra(25,"Close"),ra(),ra()),2&e&&(yo(10),ea("list",t.citationTypeSelect.options)("selected",t.citationTypeSelect.selected)("singleSelection",!0)("loading",t.citationTypeSelect.loading),yo(2),ea("list",t.chartTypeSelect.options)("selected",t.chartTypeSelect.selected)("singleSelection",!0)("loading",t.chartTypeSelect.loading),yo(1),ea("ngIf",t.isChartTab()),yo(1),ea("ngIf",t.isLoading),yo(1),ea("ngIf",t.errorMessage),yo(1),ea("ngIf",t.bookmarkUrl&&!t.isLoading),yo(1),ea("ngIf",t.citation&&!t.isLoading),yo(1),ea("ngIf",t.copySuccess),yo(1),ea("ngIf",t.copyBookmarkSuccess),yo(2),ea("disabled",!t.citation||t.isLoading),yo(1),ea("icon",t.faCopy))},directives:[_Q,sh,Yb],styles:[".citation-container[_ngcontent-%COMP%]{position:relative}.citation-text[_ngcontent-%COMP%]{font-family:Times New Roman,serif;font-size:14px;line-height:1.5;background-color:#f8f9fa;border:1px solid #dee2e6;resize:none}.citation-text[_ngcontent-%COMP%]:focus{box-shadow:0 0 0 .2rem #007bff40;border-color:#80bdff}.modal-body[_ngcontent-%COMP%]{max-height:70vh;overflow-y:auto}.form-label[_ngcontent-%COMP%]{font-weight:600;margin-bottom:.5rem}.alert[_ngcontent-%COMP%]{margin-bottom:1rem}.alert[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{margin-right:.5rem}.btn[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{margin-right:.25rem}.spinner-border[_ngcontent-%COMP%]{width:2rem;height:2rem}@media (max-width: 768px){.modal-body[_ngcontent-%COMP%]{padding:1rem}.citation-text[_ngcontent-%COMP%]{font-size:12px}}"]}),e})();const yU=["chart"];function wU(e,t){if(1&e){const e=aa();na(0,"div",8),na(1,"select-list",9),Aa("selectedChange",function(t){return It(e),da().geographicArea.selected=t})("handleChanged",function(t){return It(e),da().handleGeographicAreaChange(t)}),ra(),ra()}if(2&e){const e=da();yo(1),ya("id","",e.side,"-chart-geographic-area"),ea("list",e.geographicArea.options)("required",!0)("label",e.geographicArea.label)("selected",e.geographicArea.selected)}}function vU(e,t){if(1&e){const e=aa();na(0,"div",8),na(1,"select-list",10),Aa("selectedChange",function(t){return It(e),da().timeConceptOne.selected=t})("handleChanged",function(t){return It(e),da().handleTimeConceptOneChange(t)}),ra(),ra()}if(2&e){const e=da();yo(1),ya("id","",e.side,"-chart-time-concept-one"),ea("list",e.timeConceptOne.options)("singleSelection",!0)("required",!0)("label",e.timeConceptOne.label)("selected",e.timeConceptOne.selected)}}function bU(e,t){if(1&e){const e=aa();na(0,"div",8),na(1,"select-list",10),Aa("selectedChange",function(t){return It(e),da().timeConceptTwo.selected=t})("handleChanged",function(t){return It(e),da().handleTimeConceptTwoChange(t)}),ra(),ra()}if(2&e){const e=da();yo(1),ya("id","",e.side,"-chart-time-concept-two"),ea("list",e.timeConceptTwo.options)("singleSelection",!0)("required",!0)("label",e.timeConceptTwo.label)("selected",e.timeConceptTwo.selected)}}function CU(e,t){if(1&e){const e=aa();na(0,"div",8),na(1,"select-list",11),Aa("selectedChange",function(t){return It(e).$implicit.output=t})("handleChanged",function(){const t=It(e).$implicit;return da().handleOtherFilterChange(t)})("handleDropDownClose",function(t){return It(e),da().handleDropDownClose.emit(t)}),ra(),ra()}if(2&e){const e=t.$implicit,n=da();yo(1),wa("id","",n.side,"-chart-",e.label,""),ea("list",e.input)("required",!0)("label",e.label)("selected",e.output)}}function BU(e,t){if(1&e&&(na(0,"div",12),ia(1,"fa-icon",13),Ra(2," \xa0Your combination of filters produces no data. Try another combination.\n"),ra()),2&e){const e=da();yo(1),ea("icon",e.faWarning)}}function _U(e,t){if(1&e&&(na(0,"div"),ia(1,"google-chart",14,15),ra()),2&e){const e=da();yo(1),ea("type",e.ChartType.PieChart)("data",e.data)("columns",e.columns)("options",e.options)("dynamicResize",!0)}}let EU=(()=>{class e{constructor(){this.side="",this.otherFilterSelections=[],this.otherFilterSelectionsChange=new oA,this.geographicAreaChange=new oA,this.timeConceptOneChange=new oA,this.timeConceptTwoChange=new oA,this.handleChanged=new oA,this.handleDropDownClose=new oA,this.faWarning=jx,this.ChartType=uy}handleOtherFilterChange(e){this.otherFilterSelectionsChange.emit(this.otherFilterSelections),setTimeout(()=>{this.handleChanged.emit(this.otherFilterSelections)})}handleGeographicAreaChange(e){this.geographicAreaChange.emit(this.geographicArea),setTimeout(()=>{this.handleChanged.emit(this.geographicArea)})}handleTimeConceptOneChange(e){this.timeConceptOneChange.emit(this.timeConceptOne),setTimeout(()=>{this.handleChanged.emit(this.timeConceptOne)})}handleTimeConceptTwoChange(e){this.timeConceptTwoChange.emit(this.timeConceptTwo),setTimeout(()=>{this.handleChanged.emit(this.timeConceptTwo)})}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=Ge({type:e,selectors:[["mi-pi-chart"]],viewQuery:function(e,t){if(1&e&&yA(yU,5),2&e){let e;mA(e=vA())&&(t.chart=e.first)}},inputs:{data:"data",columns:"columns",options:"options",chartConfig:"chartConfig",side:"side",otherFilterSelections:"otherFilterSelections",geographicArea:"geographicArea",timeConceptOne:"timeConceptOne",timeConceptTwo:"timeConceptTwo"},outputs:{otherFilterSelectionsChange:"otherFilterSelectionsChange",geographicAreaChange:"geographicAreaChange",timeConceptOneChange:"timeConceptOneChange",timeConceptTwoChange:"timeConceptTwoChange",handleChanged:"handleChanged",handleDropDownClose:"handleDropDownClose"},decls:9,vars:6,consts:[[1,"chart-other-filter-bar"],[1,"row"],["class","col-lg-3 col-md-6 col-sm-6 col-12 ",4,"ngIf"],["class","col-lg-3 col-md-6 col-sm-6 col-12",4,"ngIf"],["class","col-lg-3 col-md-6 col-sm-6 col-12",4,"ngFor","ngForOf"],[1,"clearfix"],["class","alert alert-warning no-data-warning col-12 pb-2",4,"ngIf"],[4,"ngIf"],[1,"col-lg-3","col-md-6","col-sm-6","col-12"],["placeholder","Nothing Selected",3,"id","list","required","label","selected","selectedChange","handleChanged"],["placeholder","Nothing Selected",3,"id","list","singleSelection","required","label","selected","selectedChange","handleChanged"],["placeholder","Nothing Selected",3,"id","list","required","label","selected","selectedChange","handleChanged","handleDropDownClose"],[1,"alert","alert-warning","no-data-warning","col-12","pb-2"],["aria-hidden","true",3,"icon"],[2,"width","75%","margin-left","auto",3,"type","data","columns","options","dynamicResize"],["chart",""]],template:function(e,t){1&e&&(na(0,"div",0),na(1,"div",1),$s(2,wU,2,5,"div",2),$s(3,vU,2,6,"div",3),$s(4,bU,2,6,"div",3),$s(5,CU,2,6,"div",4),ia(6,"div",5),ra(),ra(),$s(7,BU,3,1,"div",6),$s(8,_U,3,5,"div",7)),2&e&&(yo(2),ea("ngIf",(null==t.geographicArea||null==t.geographicArea.options?null:t.geographicArea.options.length)>1),yo(1),ea("ngIf",(null==t.timeConceptOne||null==t.timeConceptOne.options?null:t.timeConceptOne.options.length)>0),yo(1),ea("ngIf",(null==t.timeConceptTwo||null==t.timeConceptTwo.options?null:t.timeConceptTwo.options.length)>0),yo(1),ea("ngForOf",t.otherFilterSelections),yo(2),ea("ngIf",t.chartConfig.noFilteredPieData),yo(1),ea("ngIf",!t.chartConfig.noFilteredPieData))},directives:[sh,ih,_Q,Yb,wy],styles:[""],encapsulation:2,changeDetection:0}),e})();const FU=["chart"],TU=["piChart"];function SU(e,t){1&e&&ia(0,"span",6)}function xU(e,t){if(1&e&&(na(0,"div"),na(1,"div",7),ia(2,"fa-icon",8),Ra(3,"\xa0Run a query to view charts "),ra(),ra()),2&e){const e=da();yo(2),ea("icon",e.faInfoCircle)}}function QU(e,t){if(1&e&&(na(0,"div"),na(1,"div",7),ia(2,"fa-icon",8),Ra(3,"\xa0Charts have been disabled for this measure "),ra(),ra()),2&e){const e=da(2);yo(2),ea("icon",e.faInfoCircle)}}function kU(e,t){if(1&e){const e=aa();na(0,"div"),na(1,"div",25),na(2,"div",26),na(3,"button",27),Aa("click",function(){return It(e),da(2).panelController.editDataOptions()}),ia(4,"fa-icon",8),Ra(5),ra(),ra(),ia(6,"div",28),ra(),na(7,"div",29),ia(8,"fa-icon",8),Ra(9,"\xa0No results found. "),ra(),ra()}if(2&e){const e=da(2);yo(3),ma("title",e.panelController.editDataOptionsText()),yo(1),ea("icon",e.faCogs),yo(1),Na(" \xa0",e.panelController.editDataOptionsText()," "),yo(3),ea("icon",e.faExclamationTriangle)}}function UU(e,t){if(1&e&&ia(0,"download",30),2&e){const e=da(2);ea("selectedTab",e.panelController.selectedTab)("queryResult",e.queryResult)}}function OU(e,t){if(1&e&&(na(0,"a",31),ia(1,"i",32),Ra(2,"\xa0Save"),ra()),2&e){const e=da(2);Ta("disabled",e.chartConfig.noData),ma("href",e.chartConfig.imageUri,hi)}}function IU(e,t){if(1&e){const e=aa();na(0,"div",33),na(1,"button",34),Aa("click",function(){It(e);const t=da(2);return t.switchChartType(t.ChartType.BarChart)}),ia(2,"fa-icon",8),ra(),na(3,"button",35),Aa("click",function(){It(e);const t=da(2);return t.switchChartType(t.ChartType.LineChart)}),ia(4,"fa-icon",8),ra(),na(5,"button",36),Aa("click",function(){It(e);const t=da(2);return t.switchChartType(t.ChartType.PieChart)}),ia(6,"fa-icon",8),ra(),ra()}if(2&e){const e=da(2);yo(1),Js("aria-label","",e.panelController.panelSide," side Switch to Bar Chart"),ea("disabled",e.chartConfig.chartType===e.ChartType.BarChart),yo(1),ea("icon",e.faBarChart),yo(1),Js("aria-label","",e.panelController.panelSide," side Switch to Line Chart"),ea("disabled",e.chartConfig.chartType===e.ChartType.LineChart),yo(1),ea("icon",e.faLineChart),yo(1),Js("aria-label","",e.panelController.panelSide," side Switch to Pie Chart"),ea("disabled",e.chartConfig.chartType===e.ChartType.PieChart),yo(1),ea("icon",e.faPieChart)}}function LU(e,t){if(1&e){const e=aa();na(0,"div",43),na(1,"select-list",44),Aa("ngModelChange",function(t){return It(e),da(3).selectedGroupings=t})("handleChanged",function(){return It(e),da(3).handleGroupingChange()}),ra(),ra()}if(2&e){const e=da(3);yo(1),ya("id","",e.panelController.panelSide,"-chart-geographic-group"),ea("required",!0)("label",e.measure.geographicGroupingTitle)("list",e.geographicTypeGroupings)("singleSelection",!0)("ngModel",e.selectedGroupings)}}function DU(e,t){if(1&e){const e=aa();na(0,"div",43),na(1,"select-list",45),Aa("selectedChange",function(t){return It(e),da(3).geographicArea.selected=t})("handleChanged",function(){return It(e),da(3).handleDataChange()}),ra(),ra()}if(2&e){const e=da(3);yo(1),ya("id","",e.panelController.panelSide,"-chart-geographic-area"),ea("list",e.geographicArea.options)("required",!0)("label",e.geographicArea.label)("selected",e.geographicArea.selected)}}function MU(e,t){if(1&e){const e=aa();na(0,"div",43),na(1,"select-list",46),Aa("selectedChange",function(t){return It(e),da(3).timeConceptOne.selected=t})("handleChanged",function(){return It(e),da(3).handleDataChange()}),ra(),ra()}if(2&e){const e=da(3);yo(1),ya("id","",e.panelController.panelSide,"-chart-time-concept-one"),ea("list",e.timeConceptOne.options)("singleSelection",!0)("required",!0)("label",e.timeConceptOne.label)("selected",e.timeConceptOne.selected)}}function HU(e,t){if(1&e){const e=aa();na(0,"div",43),na(1,"select-list",45),Aa("selectedChange",function(t){return It(e),da(3).timeConceptTwo.selected=t})("handleChanged",function(){return It(e),da(3).handleDataChange()}),ra(),ra()}if(2&e){const e=da(3);yo(1),ya("id","",e.panelController.panelSide,"-chart-time-concept-two"),ea("list",e.timeConceptTwo.options)("required",!0)("label",e.timeConceptTwo.label)("selected",e.timeConceptTwo.selected)}}function RU(e,t){if(1&e){const e=aa();na(0,"div",43),na(1,"select-list",47),Aa("selectedChange",function(t){return It(e).$implicit.output=t})("handleChanged",function(){return It(e),da(3).handleDataChange()})("handleDropDownClose",function(){return It(e),da(3).selectFirstOptionIfUnselected()}),ra(),ra()}if(2&e){const e=t.$implicit,n=da(3);yo(1),wa("id","",n.panelController.panelSide,"-chart-",e.label,""),ea("list",e.input)("required",!0)("label",e.label)("selected",e.output)}}function PU(e,t){if(1&e&&(na(0,"div",48),ia(1,"fa-icon",8),Ra(2," \xa0Your combination of filters produces no data. Try another combination. "),ra()),2&e){const e=da(3);yo(1),ea("icon",e.faWarning)}}function NU(e,t){if(1&e&&(na(0,"div"),ia(1,"google-chart",49,50),ra()),2&e){const e=da(3);yo(1),ea("type",e.chartConfig.chartType)("data",e.chartConfig.chartType===e.ChartType.LineChart?e.lineDataArray:e.barDataArray)("columns",e.chartConfig.chartType===e.ChartType.LineChart?e.lineColumnNames:e.barColumnNames)("options",e.chartOptions)("dynamicResize",!0)}}function KU(e,t){if(1&e&&(oa(0),na(1,"div",37),na(2,"div",38),$s(3,LU,2,6,"div",39),$s(4,DU,2,5,"div",40),$s(5,MU,2,6,"div",39),$s(6,HU,2,5,"div",39),$s(7,RU,2,6,"div",41),ia(8,"div",24),ra(),ra(),$s(9,PU,3,1,"div",42),$s(10,NU,3,5,"div",4),sa()),2&e){const e=da(2);yo(3),ea("ngIf",e.geographicTypeGroupings.length>0),yo(1),ea("ngIf",e.geographicArea.options.length>1&&e.chartConfig.chartType!==e.ChartType.BarChart),yo(1),ea("ngIf",e.timeConceptOne.options.length>0&&e.chartConfig.chartType!==e.ChartType.LineChart),yo(1),ea("ngIf",e.timeConceptTwo.options.length>0&&e.chartConfig.chartType!==e.ChartType.LineChart),yo(1),ea("ngForOf",e.otherFilterSelections),yo(2),ea("ngIf",e.chartConfig.noFilteredBarData&&e.chartConfig.chartType===e.ChartType.BarChart||e.chartConfig.noFilteredLineData&&e.chartConfig.chartType===e.ChartType.LineChart),yo(1),ea("ngIf",!(e.chartConfig.noFilteredBarData&&e.chartConfig.chartType===e.ChartType.BarChart||e.chartConfig.noFilteredLineData&&e.chartConfig.chartType===e.ChartType.LineChart))}}function VU(e,t){if(1&e){const e=aa();na(0,"mi-pi-chart",51,52),Aa("otherFilterSelectionsChange",function(t){return It(e),da(2).otherFilterSelections=t})("geographicAreaChange",function(t){return It(e),da(2).geographicArea=t})("timeConceptOneChange",function(t){return It(e),da(2).timeConceptOne=t})("timeConceptTwoChange",function(t){return It(e),da(2).timeConceptTwo=t})("handleChanged",function(){return It(e),da(2).handleDataChange()})("handleDropDownClose",function(){return It(e),da(2).selectFirstOptionIfUnselected()}),ra()}if(2&e){const e=da(2);ea("side",e.panelController.panelSide)("data",e.pieDataArray)("otherFilterSelections",e.otherFilterSelections)("geographicArea",e.geographicArea)("timeConceptOne",e.timeConceptOne)("timeConceptTwo",e.timeConceptTwo)("options",e.chartOptions)("chartConfig",e.chartConfig)("columns",e.pieColumnNames)}}function GU(e,t){if(1&e&&(na(0,"div"),ia(1,"div",53),ra()),2&e){const e=da(2);yo(1),ea("innerHtml",e.panelController.footnotes,ui)}}function jU(e,t){if(1&e){const e=aa();na(0,"div",9),$s(1,QU,4,1,"div",4),$s(2,kU,10,4,"div",4),na(3,"div"),na(4,"div"),na(5,"div",10),na(6,"button",11),Aa("click",function(){return It(e),da().panelController.editDataOptions()}),ia(7,"fa-icon",12),Ra(8),ra(),$s(9,UU,1,2,"download",13),na(10,"button",14),Aa("click",function(){return It(e),da().saveImage()}),ia(11,"fa-icon",12),Ra(12," \xa0Save Image "),ra(),$s(13,OU,3,3,"a",15),na(14,"div",16),na(15,"div",17),na(16,"button",18),Ra(17,"Options "),ia(18,"span",19),ra(),na(19,"div",20),na(20,"button",21),Aa("click",function(){return It(e),da().toggleLegend()}),Ra(21),ra(),na(22,"button",21),Aa("click",function(){return It(e),da().toggleTitle()}),Ra(23),ra(),na(24,"button",21),Aa("click",function(){return It(e),da().toggleAxisLabels()}),Ra(25),ra(),ra(),ra(),ra(),ra(),$s(26,IU,7,9,"div",22),ra(),$s(27,KU,11,7,"ng-container",4),$s(28,VU,2,9,"mi-pi-chart",23),ra(),ia(29,"div",24),$s(30,GU,2,1,"div",4),ra()}if(2&e){const e=da();ma("id",e.panelController.panelSide+"ChartTab"),yo(1),ea("ngIf",!1===e.chartConfig.chartEnabled),yo(1),ea("ngIf",0===(null==e.data?null:e.data.length)&&(null==e.chartConfig?null:e.chartConfig.chartEnabled)),yo(4),ma("title",e.panelController.editDataOptionsText()),yo(1),ea("icon",e.faCogs),yo(1),Na(" \xa0",e.panelController.editDataOptionsText()," "),yo(1),ea("ngIf",!0===e.panelController.isFileSaverSupported),yo(1),ea("disabled",e.chartConfig.noData),yo(1),ea("icon",e.faSave),yo(2),ea("ngIf",!1===e.panelController.isFileSaverSupported&&e.data.length<=1e3),yo(1),Js("aria-label","'Dropdown for ' + ",e.panelController.panelSide," + ' Chart Options'"),yo(2),ya("id","",e.panelController.panelSide," + 'ChartOptions'"),yo(3),Js("aria-labelledby","",e.panelController.panelSide," + 'ChartOptions'"),yo(2),Na(" ",!0===e.chartConfig.showLegend?"Hide":"Show"," Legend"),yo(2),Na(" ",!0===e.chartConfig.showTitle?"Hide":"Show"," Title"),yo(2),Na(" ",!0===e.chartConfig.showAxisLabels?"Hide":"Show"," Axis Labels"),yo(1),ea("ngIf",e.chartConfig.ableToSwitchChartType),yo(1),ea("ngIf",e.chartConfig.chartType!==e.ChartType.PieChart),yo(1),ea("ngIf",e.chartConfig.chartType===e.ChartType.PieChart),yo(2),ea("ngIf",e.panelController.footnotes&&e.panelController.footnotes.length>0&&!0===e.chartConfig.chartEnabled&&e.data.length>0)}}let qU=(()=>{class e{constructor(e,t){this.changeDetectorRef=e,this.websiteMetricService=t,this.queryResult=null,this.faInfoCircle=_x,this.faExclamationTriangle=Gx,this.faWarning=jx,this.faCogs=Ux,this.faBarChart=fx,this.faSave=Qx,this.faLineChart=gx,this.lineColumnNames=[],this.barColumnNames=[],this.pieColumnNames=[],this.showTitle=!0,this.showAxisLabels=!0,this.loading=!1,this.measure={showChart:!0,titleWithQuery:"",geographicGroupingTitle:"",cdcApiEndpoint:null},this.headers=[],this.chartOptions={},this.lineDataArray=[],this.barDataArray=[],this.pieDataArray=[],this.otherFilters={OtherFilter1Text:"",OtherFilter2Text:"",OtherFilter3Text:"",OtherFilter4Text:"",OtherFilter5Text:"",OtherFilter6Text:"",OtherFilter7Text:"",OtherFilter8Text:"",OtherFilter9Text:"",OtherFilter10Text:""},this.otherFilterSelections=[],this.timeConceptOne={options:[],selected:[],loading:!1,label:""},this.timeConceptTwo={options:[],selected:[],loading:!1,label:""},this.geographicArea={options:[],selected:[],loading:!1,label:""},this.data=[],this.barFilteredData=[],this.piFilteredData=[],this.lineFilteredData=[],this.selectedGroupings=[],this.geographicTypeGroupings=[],this.selectLabels={selectAll:"Select All",selectNone:"Deselect All",reset:"Reset",search:"Filter Selections Below",nothingSelected:"Nothing Selected"},this.title="",this.unmodifiedTitle="",this.ChartType=uy,this.chartConfig={chartType:uy.BarChart,chartEnabled:!0,errorList:[],showLegend:!0,showTitle:!0,showAxisLabels:!0,showValues:!0,imageUri:"",ableToSwitchChartType:!1,noFilteredBarData:!1,noFilteredPieData:!1,noFilteredLineData:!1,noData:!1,hasSidebar:!1},this.otherFilterSettings=[],this.faPieChart=mx}ngOnChanges(e){e.queryResult&&(this.activate(),this.setup(),this.changeDetectorRef.markForCheck())}ngOnInit(){this.queryResult=this.queryResult&&0===Object.keys(this.queryResult).length?null:this.queryResult,this.activate(),this.setup()}activate(){this.chartLoaded=google.charts.load("current",{packages:["corechart"]})}setup(){this.filterGeographicAreasDebounced=S_(()=>{this.filterGeographicAreas()},100),this.updateFilteredDataDebounced=S_(()=>{this.updateFilteredData()},200),this.queryResult&&this.panelController.panelSide===this.queryResult.panelSide&&this.queryHandler(this.queryResult)}handleGroupingChange(){this.updateFilteredDataDebounced(),this.filterGeographicAreasDebounced()}handleDataChange(){this.updateFilteredDataDebounced()}switchChartType(e){this.chartConfig.chartType=e||(this.chartConfig.chartType===uy.BarChart?uy.LineChart:uy.BarChart),this.updateOptions(null,null)}saveImage(){var e,t;this.websiteMetricService.createWebsiteMetricAction(new ux({Action:px.SaveImage,Tab:this.panelController.selectedTab,Information:(null===(t=null===(e=this.queryResult)||void 0===e?void 0:e.measure)||void 0===t?void 0:t.titleWithQuery)+"-"+this.chartConfig.chartType})).subscribe();const n=this.chart?this.chart.chartWrapper.getChart().getImageURI():this.piChart.chart.chartWrapper.getChart().getImageURI();"data:,"===n||Wx.saveAs(this.dataUriToBlob(n,"image/jpeg"),"mitracking-chart.jpg")}toggleLegend(){this.chartConfig.showLegend=!this.chartConfig.showLegend,this.updateOptions(null,null)}toggleTitle(){this.showTitle=!this.showTitle,this.updateOptions(null,this.showTitle),this.chartConfig.showTitle=!this.chartConfig.showTitle}toggleAxisLabels(){this.showAxisLabels=!this.showAxisLabels,this.updateOptions(null,null),this.chartConfig.showAxisLabels=!this.chartConfig.showAxisLabels}toggleValues(){this.chartConfig.showValues=!this.chartConfig.showValues,this.updateOptions(null,null)}selectFirstOptionIfUnselected(){this.otherFilterSelections.forEach(e=>{0===e.output.length&&(e.output=[e.input[0]])})}updateOptions(e,t){this.chartLoaded.then(()=>{this.chartConfig.hasSidebar=this.geographicTypeGroupings.length>0||this.otherFilterSelections.length>0,this.chartOptions=this.getOptions({chartType:this.chartConfig.chartType,chartHeaders:this.headers,printingChart:e,legendVisible:this.chartConfig.showLegend,showTitle:t})})}getDataArray(e,t){let n=G_(this.headers,{ColumnType:"GeographicArea"}),r=G_(this.headers,{ColumnType:"Value"}),i=rE(this.headers,{ColumnType:"ExtraneousData"}),o=[];switch(e){case uy.BarChart:case uy.PieChart:{const e=g_(t).groupBy(e=>e.GeographicAreaID).toArray().sortBy(e=>e[0].GeographicAreaID).value();let s=[],a=!0,l=null;const c={};j_(t,(e,t)=>{c[e.TimePeriod1Text+"|"+e.TimePeriod2Text+"|"+e.OtherFilter1Text+"|"+e.OtherFilter2Text+"|"+e.OtherFilter3Text+"|"+e.OtherFilter4Text+"|"+e.OtherFilter5Text+"|"+e.OtherFilter6Text+"|"+e.OtherFilter7Text+"|"+e.OtherFilter8Text+"|"+e.OtherFilter9Text+"|"+e.OtherFilter10Text+"|"]=t}),j_(Object.keys(c),e=>{let n=t[c[e]];s.push({timePeriod1:n.TimePeriod1Text,timePeriod2:n.TimePeriod2Text,otherFilter1:n.OtherFilter1Text,otherFilter2:n.OtherFilter2Text,otherFilter3:n.OtherFilter3Text,otherFilter4:n.OtherFilter4Text,otherFilter5:n.OtherFilter5Text,otherFilter6:n.OtherFilter6Text,otherFilter7:n.OtherFilter7Text,otherFilter8:n.OtherFilter8Text,otherFilter9:n.OtherFilter9Text,otherFilter10:n.OtherFilter10Text}),null===l?l=n.TimePeriod1Text:l&&l!==n.timePeriod1&&(a=!1)}),s=g_(s).sortBy(e=>this.otherFilters.OtherFilter10Text?this.otherFilters.OtherFilter10Text.indexOf(e.otherFilter10):-1).sortBy(e=>this.otherFilters.OtherFilter9Text?this.otherFilters.OtherFilter9Text.indexOf(e.otherFilter9):-1).sortBy(e=>this.otherFilters.OtherFilter8Text?this.otherFilters.OtherFilter8Text.indexOf(e.otherFilter8):-1).sortBy(e=>this.otherFilters.OtherFilter7Text?this.otherFilters.OtherFilter7Text.indexOf(e.otherFilter7):-1).sortBy(e=>this.otherFilters.OtherFilter6Text?this.otherFilters.OtherFilter6Text.indexOf(e.otherFilter6):-1).sortBy(e=>this.otherFilters.OtherFilter5Text?this.otherFilters.OtherFilter5Text.indexOf(e.otherFilter5):-1).sortBy(e=>this.otherFilters.OtherFilter4Text?this.otherFilters.OtherFilter4Text.indexOf(e.otherFilter4):-1).sortBy(e=>this.otherFilters.OtherFilter3Text?this.otherFilters.OtherFilter3Text.indexOf(e.otherFilter3):-1).sortBy(e=>this.otherFilters.OtherFilter2Text?this.otherFilters.OtherFilter2Text.indexOf(e.otherFilter2):-1).sortBy(e=>this.otherFilters.OtherFilter1Text?this.otherFilters.OtherFilter1Text.indexOf(e.otherFilter1):-1).sortBy("timePeriod2").sortBy("timePeriod1").value(),q_(e,e=>{if(e.length!==s.length)for(let t=0;t<s.length;t++)e[t]&&e[t].TimePeriod1Text===s[t].timePeriod1&&e[t].TimePeriod2Text===s[t].timePeriod2&&e[t].OtherFilter1Text===s[t].otherFilter1&&e[t].OtherFilter2Text===s[t].otherFilter2&&e[t].OtherFilter3Text===s[t].otherFilter3&&e[t].OtherFilter4Text===s[t].otherFilter4&&e[t].OtherFilter5Text===s[t].otherFilter5&&e[t].OtherFilter6Text===s[t].otherFilter6&&e[t].OtherFilter7Text===s[t].otherFilter7&&e[t].OtherFilter8Text===s[t].otherFilter8&&e[t].OtherFilter9Text===s[t].otherFilter9&&e[t].OtherFilter10Text===s[t].otherFilter10||e.splice(t,0,{})}),s=q_(s,e=>{let t=this.buildNameFromOtherFilters(e,"");return t=t.substring(3),{label:t,type:"number"}}),1===s.length&&(s=[{label:r.ColumnLabel,type:"number"}]);const A=[];j_(s,e=>{A.push(e),A.push({role:"tooltip",p:{html:!0}})}),this.barColumnNames=[n.ColumnLabel].concat(A),this.pieColumnNames=[n.ColumnLabel].concat(A);const u=e.length!==t.length;j_(e,e=>{const t=[V_(e,e=>e).GeographicArea];let n=!1;j_(e,(e,o)=>{t.push(e.MeasureValue),null===e.MeasureValue&&(n=!0);const a=q_(i,t=>({label:t.ColumnLabel,value:e[t.MappedColumnName]}));let l="";l=u?this.chartTooltip(e.GeographicArea,s[o]?s[o].label:"",e.MeasureValue,null,null,a):this.chartTooltip(e.GeographicArea,r.ColumnLabel,e.MeasureValue,e.TimePeriod1Text,e.TimePeriod2Text,a),t.push(l)}),n&&(t[0]+=" **"),o.push(t)});break}case uy.LineChart:{let e=G_(this.headers,{ColumnType:"TimePeriod1"}),n=G_(this.headers,{ColumnType:"TimePeriod2"}),s=e.ColumnLabel;n&&n.ColumnLabel&&(s+=" - "+n.ColumnLabel);let a=AE(t,e=>e.TimePeriod1Text+(e.TimePeriod2Text?" - "+e.TimePeriod2Text:"")),l=[];const c={};j_(t,(e,t)=>{c[e.GeographicArea+"|"+e.GeographicAreaID+"|"+e.OtherFilter1Text+"|"+e.OtherFilter2Text+"|"+e.OtherFilter3Text+"|"+e.OtherFilter4Text+"|"+e.OtherFilter5Text+"|"+e.OtherFilter6Text+"|"+e.OtherFilter7Text+"|"+e.OtherFilter8Text+"|"+e.OtherFilter9Text+"|"+e.OtherFilter10Text+"|"]=t}),j_(Object.keys(c),e=>{const n=t[c[e]];l.push({geographicArea:n.GeographicArea,geographicAreaId:n.GeographicAreaID,otherFilter1:n.OtherFilter1Text,otherFilter2:n.OtherFilter2Text,otherFilter3:n.OtherFilter3Text,otherFilter4:n.OtherFilter4Text,otherFilter5:n.OtherFilter5Text,otherFilter6:n.OtherFilter6Text,otherFilter7:n.OtherFilter7Text,otherFilter8:n.OtherFilter8Text,otherFilter9:n.OtherFilter9Text,otherFilter10:n.OtherFilter10Text})}),l=g_(l).sortBy(e=>this.otherFilters.OtherFilter10Text?this.otherFilters.OtherFilter10Text.indexOf(e.otherFilter10):-1).sortBy(e=>this.otherFilters.OtherFilter9Text?this.otherFilters.OtherFilter9Text.indexOf(e.otherFilter9):-1).sortBy(e=>this.otherFilters.OtherFilter8Text?this.otherFilters.OtherFilter8Text.indexOf(e.otherFilter8):-1).sortBy(e=>this.otherFilters.OtherFilter7Text?this.otherFilters.OtherFilter7Text.indexOf(e.otherFilter7):-1).sortBy(e=>this.otherFilters.OtherFilter6Text?this.otherFilters.OtherFilter6Text.indexOf(e.otherFilter6):-1).sortBy(e=>this.otherFilters.OtherFilter5Text?this.otherFilters.OtherFilter5Text.indexOf(e.otherFilter5):-1).sortBy(e=>this.otherFilters.OtherFilter4Text?this.otherFilters.OtherFilter4Text.indexOf(e.otherFilter4):-1).sortBy(e=>this.otherFilters.OtherFilter3Text?this.otherFilters.OtherFilter3Text.indexOf(e.otherFilter3):-1).sortBy(e=>this.otherFilters.OtherFilter2Text?this.otherFilters.OtherFilter2Text.indexOf(e.otherFilter2):-1).sortBy(e=>this.otherFilters.OtherFilter1Text?this.otherFilters.OtherFilter1Text.indexOf(e.otherFilter1):-1).sortBy("geographicAreaId").value(),q_(a,e=>{if(e.length!==l.length)for(let t=0;t<l.length;t++){let n=e[t],r=l[t];n&&n.GeographicAreaID===r.geographicAreaId&&n.OtherFilter1Text===r.otherFilter1&&n.OtherFilter2Text===r.otherFilter2&&n.OtherFilter3Text===r.otherFilter3&&n.OtherFilter4Text===r.otherFilter4&&n.OtherFilter5Text===r.otherFilter5&&n.OtherFilter6Text===r.otherFilter6&&n.OtherFilter7Text===r.otherFilter7&&n.OtherFilter8Text===r.otherFilter8&&n.OtherFilter9Text===r.otherFilter9&&n.OtherFilter10Text===r.otherFilter10||e.splice(t,0,{})}}),l=q_(l,e=>{let t=e.geographicArea;return t=this.buildNameFromOtherFilters(e,t),{label:t,type:"number"}}),1===l.length&&(l=[{label:r.ColumnLabel,type:"number"}]);let A=[];j_(l,e=>{A.push(e),A.push({role:"tooltip",p:{html:!0}})}),this.lineColumnNames=[s].concat(A),j_(Object.keys(a),e=>{let t=[];j_(a[e],(e,n)=>{t.push(e.MeasureValue);let o=q_(i,t=>({label:t.ColumnLabel,value:e[t.MappedColumnName]}));t.push(this.chartTooltip(e.TimePeriod1Text+(e.TimePeriod2Text?" / "+e.TimePeriod2Text:""),l[n]?l[n].label:r.ColumnLabel,e.MeasureValue,null,null,o))}),o.push([e].concat(t))});let u=[];j_(this.lineColumnNames,()=>{u.push(!1)});for(let t=1;t<o.length;t++){let e=o[t];for(let t=1;t<e.length;t++)null!==e[t]||u[t]||(u[t]=!0,this.lineColumnNames[t].label+=" **")}break}default:throw"Unsupported Chart Type"}return o}buildNameFromOtherFilters(e,t){const n=G_(this.otherFilterSelections,{column:"OtherFilter1Text"});e.otherFilter1&&n&&n.output.length>1&&(t+=" - "+e.otherFilter1);const r=G_(this.otherFilterSelections,{column:"OtherFilter2Text"});e.otherFilter2&&r&&r.output.length>1&&(t+=" - "+e.otherFilter2);const i=G_(this.otherFilterSelections,{column:"OtherFilter3Text"});e.otherFilter3&&i&&i.output.length>1&&(t+=" - "+e.otherFilter3);const o=G_(this.otherFilterSelections,{column:"OtherFilter4Text"});e.otherFilter4&&o&&o.output.length>1&&(t+=" - "+e.otherFilter4);const s=G_(this.otherFilterSelections,{column:"OtherFilter5Text"});e.otherFilter5&&s&&s.output.length>1&&(t+=" - "+e.otherFilter5);const a=G_(this.otherFilterSelections,{column:"OtherFilter6Text"});e.otherFilter6&&a&&a.output.length>1&&(t+=" - "+e.otherFilter6);const l=G_(this.otherFilterSelections,{column:"OtherFilter7Text"});e.otherFilter7&&l&&l.output.length>1&&(t+=" - "+e.otherFilter7);const c=G_(this.otherFilterSelections,{column:"OtherFilter8Text"});e.otherFilter8&&c&&c.output.length>1&&(t+=" - "+e.otherFilter8);const A=G_(this.otherFilterSelections,{column:"OtherFilter9Text"});e.otherFilter9&&A&&A.output.length>1&&(t+=" - "+e.otherFilter9);const u=G_(this.otherFilterSelections,{column:"OtherFilter10Text"});return e.otherFilter10&&u&&u.output.length>1&&(t+=" - "+e.otherFilter10),t}chartTooltip(e,t,n,r,i,o){let s="";r&&(s="<div class='gchart-timeperiod-label'>"+r+(i?" / "+i:"")+"</div>");let a="";return j_(o,e=>{a+="<div class='gchart-tooltip-extra-data-container'>"+e.label+": "+e.value+"</div>"}),"<div class='gchart-tooltip-container'><div class='gchart-tooltip-title'>"+e+"</div>"+s+"<div class='gchart-tooltip-subtitle'>"+t+": <span><strong>"+n+"</strong></span></div>"+a+"</div>"}getOptions(e){const t=50;let n=G_(e.chartHeaders,{ColumnType:"GeographicArea"}),r={bars:"",annotations:{},series:null,pointSize:0,titleTextStyle:{fontSize:28,bold:!0,fontName:"Arial"},theme:"material",legend:{position:"right",textStyle:{fontSize:e.printingChart?18:14}},title:this.showTitle?this.title:"",vAxis:{title:"",titleTextStyle:{fontSize:e.printingChart?32:24},textStyle:{fontSize:e.printingChart?18:14}},hAxis:{title:"",titleTextStyle:{fontSize:e.printingChart?32:24},textStyle:{fontSize:e.printingChart?18:14}},chartArea:{bottom:100,top:this.showTitle?t:10,left:100,height:0,width:e.chartType==uy.BarChart?"90%":"85%"},height:0,tooltip:{isHtml:!0,textStyle:{fontName:"Arial",fontSize:14}},width:"100%"};switch(e.chartType){case uy.BarChart:{const i=Math.max(18*this.barFilteredData.length+40,600),o=i-100;let s=this.showAxisLabels?n.ColumnLabel:"",a=this.showAxisLabels?"Count":"";r.height=e.printingChart?i+t+20:i,r.vAxis.title=s,r.hAxis.title=a,r.legend.position="top",r.bars="horizontal",r.annotations={textStyle:{fontSize:12,opacity:1},stem:{length:12}},r.chartArea.top=80,r.chartArea.height=this.showTitle?o+t:o,r.chartArea.left=100,r.chartArea.bottom=100;break}case uy.PieChart:{const n=Math.max(15*this.piFilteredData.length,600);r.height=e.printingChart?n+t+20:n,r.legend.position="right",r.bars="horizontal",r.annotations={textStyle:{fontSize:12,opacity:1},stem:{length:12}};const i=800,o=75;r.chartArea.top=50,r.height=e.printingChart?i+t+20:i,r.chartArea.height=i-o,r.chartArea.left=0;break}case uy.LineChart:{let n=G_(e.chartHeaders,{ColumnType:"TimePeriod1"}),i=G_(e.chartHeaders,{ColumnType:"TimePeriod2"}),o=n.ColumnLabel;i&&(o+=" - "+i.ColumnLabel),r.vAxis.title=this.showAxisLabels?"Count":"",r.hAxis.title=this.showAxisLabels?o:"",r.pointSize=10,r.legend.position="right";const s=800,a=75;r.height=e.printingChart?s+t+20:s,r.chartArea.height=s-a,r.chartArea.left=100,r.series=this.generatePointShapes();break}default:throw"Unsupported Chart Type"}return e.legendVisible||(r.legend.position="none"),r}generatePointShapes(){const e={};for(let t=0;t<100;t++)switch(t%15){case 0:e[t]={pointShape:"circle"};break;case 1:e[t]={pointShape:{type:"star",sides:4}};break;case 2:e[t]={pointShape:{type:"triangle",rotation:180}};break;case 3:e[t]={pointShape:{type:"polygon",sides:3}};break;case 4:e[t]={pointShape:"square"};break;case 5:e[t]={pointShape:{type:"star",sides:5}};break;case 6:e[t]={pointShape:{type:"star",sides:4,rotation:45}};break;case 7:e[t]={pointShape:{type:"polygon",sides:4}};break;case 8:e[t]={pointShape:{type:"star",sides:6}};break;case 9:e[t]={pointShape:{type:"polygon",sides:5}};break;case 10:e[t]={pointShape:{type:"star",sides:7}};break;case 11:e[t]={pointShape:{type:"polygon",sides:6}};break;case 12:e[t]={pointShape:{type:"star",sides:8,dent:.45}};break;case 13:e[t]={pointShape:{type:"polygon",sides:7}};break;case 14:e[t]={pointShape:{type:"star",sides:5,rotation:180}}}return e}dataUriToBlob(e,t){let n=atob(e.split(",")[1]),r=[];for(let i=0;i<n.length;i++)r.push(n.charCodeAt(i));return new Blob([new Uint8Array(r)],{type:t})}createDataArrays(e,t,n){0==!this.chartConfig.chartEnabled&&(this.chartConfig.chartEnabled=!0,this.barDataArray=this.getDataArray(uy.BarChart,e),this.pieDataArray=this.getDataArray(uy.PieChart,n),this.lineDataArray=this.getDataArray(uy.LineChart,t),this.lineDataArray.length<=0?(this.chartConfig.chartType=uy.BarChart,this.chartConfig.ableToSwitchChartType=!1):this.chartConfig.ableToSwitchChartType=!0,this.updateOptions(null,null))}updateTitle(){let e=this.selectedGroupings.length;if(this.title=this.unmodifiedTitle,0!==e&&e!==this.geographicTypeGroupings.length){this.title+=" - "+this.selectedGroupings[0].name;for(let t=1;t<e-1;t++)this.title+=", "+this.selectedGroupings[t].name;e>1&&(this.title+=", and "+this.selectedGroupings[e-1].name)}}buildOtherFilterSelections(e){this.otherFilterSelections=q_(e,e=>{let t=q_(e.CodeSchemeValues,(e,t)=>({id:e,name:e,selected:0===t}));return{label:e.OtherFilterDisplayName,column:e.MappedColumnName,input:t,output:J_(t,{selected:!0})}});let t=0;for(;t<this.otherFilterSelections.length;)this.otherFilterSelections[t].input.length<=1?this.otherFilterSelections.splice(t,1):t++;this.otherFilterSettings=[],this.otherFilterSelections.forEach(e=>{this.otherFilterSettings.push({allowSearchFilter:!0,closeDropDownOnSelection:!0,selectAllText:"Select All",unSelectAllText:"Deselect All",searchPlaceholderText:"Filter Selections Below",itemsShowLimit:3,idField:"id",textField:"name"})})}buildTimePeriodSelections(e){var t;const n=null===(t=null==e?void 0:e.results)||void 0===t?void 0:t.headers,r=e.querySelections;this.timeConceptOne.options=q_(r.timePeriod1Values,(e,t)=>({id:e,name:e,selected:0===t})),this.timeConceptTwo.options=q_(r.timePeriod2Values,(e,t)=>({id:e,name:e,selected:0===t}));const i=G_(n,{MappedColumnName:"TimePeriod1Text"}),o=G_(n,{MappedColumnName:"TimePeriod2Text"});this.timeConceptOne.label=i?i.ColumnLabel:"",this.timeConceptOne.options.length&&(this.timeConceptOne.selected=[this.timeConceptOne.options[0]]),this.timeConceptTwo.label=o?o.ColumnLabel:"",this.timeConceptTwo.options.length&&(this.timeConceptTwo.selected=[this.timeConceptTwo.options[0]])}updateFilteredData(){this.loading=!0;let e=nE(this.selectedGroupings,"id"),t=J_(this.data,t=>{var n,r,i,o;const s=0===e.length||eE(e,t.GeographicGrouping),a=0===(null===(r=null===(n=this.timeConceptOne)||void 0===n?void 0:n.selected)||void 0===r?void 0:r.length)||t.TimePeriod1Text===this.timeConceptOne.selected[0].id,l=0===(null===(o=null===(i=this.timeConceptTwo)||void 0===i?void 0:i.selected)||void 0===o?void 0:o.length)||t.TimePeriod2Text===this.timeConceptTwo.selected[0].id;return s&&a&&l}),n=J_(this.data,t=>{var n,r,i,o,s,a,l;const c=0===e.length||eE(e,t.GeographicGrouping),A=0===(null===(r=null===(n=this.timeConceptOne)||void 0===n?void 0:n.selected)||void 0===r?void 0:r.length)||t.TimePeriod1Text===this.timeConceptOne.selected[0].id,u=0===(null===(o=null===(i=this.timeConceptTwo)||void 0===i?void 0:i.selected)||void 0===o?void 0:o.length)||t.TimePeriod2Text===this.timeConceptTwo.selected[0].id,h=0===(null===(a=null===(s=this.geographicArea)||void 0===s?void 0:s.selected)||void 0===a?void 0:a.length)||eE(nE(null===(l=this.geographicArea)||void 0===l?void 0:l.selected,"id"),t.GeographicArea);return c&&A&&u&&h}),r=J_(this.data,t=>{var n,r,i;const o=0===e.length||eE(e,t.GeographicGrouping),s=0===(null===(r=null===(n=this.geographicArea)||void 0===n?void 0:n.selected)||void 0===r?void 0:r.length)||eE(nE(null===(i=this.geographicArea)||void 0===i?void 0:i.selected,"id"),t.GeographicArea);return o&&s});j_(this.otherFilterSelections,e=>{if(e.input.length>1){let i;i=e.output.length>0?nE(e.output,"id"):[bE(e.input).id],n=J_(n,t=>eE(i,t[e.column])),t=J_(t,t=>eE(i,t[e.column])),r=J_(r,t=>eE(i,t[e.column]))}}),0===n.length?this.chartConfig.noFilteredPieData=!0:(this.chartConfig.noFilteredPieData=!1,this.piFilteredData=n),0===t.length?this.chartConfig.noFilteredBarData=!0:(this.chartConfig.noFilteredBarData=!1,this.barFilteredData=t),0===r.length?this.chartConfig.noFilteredLineData=!0:(this.chartConfig.noFilteredLineData=!1,this.lineFilteredData=r),this.updateTitle(),this.updateDropdownSettings(),this.createDataArrays(this.barFilteredData,this.lineFilteredData,this.piFilteredData),this.loading=!1}updateDropdownSettings(){const e=this.otherFilterSelections.some(e=>e.output.length>1);this.otherFilterSettings=[],this.otherFilterSelections.forEach(t=>{this.otherFilterSettings.push({singleSelection:e&&t.selected&&t.selected.length<=1,allowSearchFilter:!0,closeDropDownOnSelection:!0,selectAllText:"Select All",unSelectAllText:"Deselect All",searchPlaceholderText:"Filter Selections Below",itemsShowLimit:3,idField:"id",textField:"name"})})}filterGeographicAreas(){this.geographicArea.options=g_(this.data).filter(e=>0===this.selectedGroupings.length||eE(nE(this.selectedGroupings,"id"),e.GeographicGrouping)).sortBy("GeographicAreaID").pluck("GeographicArea").uniq().map(e=>({id:e,name:e,selected:!0})).value(),this.geographicArea.selected=this.geographicArea.options.map(e=>({id:e.id,name:e.name}))}queryHandler(e){var t,n,r,i,o,s;this.measure=e.measure,this.data=null===(t=e.results)||void 0===t?void 0:t.data,this.headers=null===(n=e.results)||void 0===n?void 0:n.headers,this.otherFilters=e.queryOptions.otherFilters,this.chartConfig.chartEnabled=null===(r=this.measure)||void 0===r?void 0:r.showChart,this.buildOtherFilterSelections(this.otherFilters),this.buildTimePeriodSelections(e),this.title=null===(i=this.measure)||void 0===i?void 0:i.titleWithQuery,this.unmodifiedTitle=null===(o=this.measure)||void 0===o?void 0:o.titleWithQuery,g_(this.data).groupBy(e=>e.TimePeriod1Text+" "+e.TimePeriod2Text).size().value()>=3&&(this.chartConfig.chartType=uy.LineChart),this.data&&this.data[0]&&(this.geographicArea.options=g_(this.data).sortBy("GeographicAreaID").pluck("GeographicArea").uniq().map(e=>({id:e,name:e,selected:!0})).value(),this.geographicArea.selected=this.geographicArea.options.map(e=>({id:e.id,name:e.name})),this.geographicArea.label=e.measure.geographicAreaTitle),!1===(null===(s=null==this?void 0:this.chartConfig)||void 0===s?void 0:s.chartEnabled)?this.chartConfig.errorList=["Charts have been disabled for this measure"]:this.data&&this.data[0]&&this.data[0].GeographicGrouping?(this.geographicTypeGroupings=g_(this.data).pluck("GeographicGrouping").uniq().sortBy().map(e=>({id:e,name:e,selected:!0})).value(),this.selectedGroupings=this.geographicTypeGroupings):(this.geographicTypeGroupings=[],this.selectedGroupings=[]),this.handleDataChange(),this.updateOptions(null,null)}}return e.\u0275fac=function(t){return new(t||e)(Zs(yc),Zs(iQ))},e.\u0275cmp=Ge({type:e,selectors:[["mi-chart"]],viewQuery:function(e,t){if(1&e&&(yA(FU,5),yA(TU,5)),2&e){let e;mA(e=vA())&&(t.chart=e.first),mA(e=vA())&&(t.piChart=e.first)}},inputs:{panelController:"panelController",queryResult:"queryResult"},features:[At],decls:6,vars:3,consts:[[1,"row","justify-content-center"],[1,"col-6","text-center"],[1,"loading-spinner-container"],["class","spinner-border spinner-border-lg text-primary","aria-hidden","true",4,"ngIf"],[4,"ngIf"],[3,"id",4,"ngIf"],["aria-hidden","true",1,"spinner-border","spinner-border-lg","text-primary"],["role","alert","tabindex","0",1,"alert","alert-info","col-12"],["aria-hidden","true",3,"icon"],[3,"id"],[1,"btn-group","data-options-buttons"],["type","button",1,"btn","btn-primary","editQueryButtonWidth","data-option-button",3,"title","click"],["aria-hidden","true",1,"button-icon",3,"icon"],["class","download-element",3,"selectedTab","queryResult",4,"ngIf"],["type","button","aria-label","Save chart",1,"btn","btn-primary","download-button","data-option-button",3,"disabled","click"],["target","_blank","class","btn btn-primary",3,"href","disabled",4,"ngIf"],["role","group"],["ngbDropdown",""],["ngbDropdownToggle","",1,"btn","btn-primary","dropdown-toggle","data-option-button",3,"id"],["aria-hidden","true",1,"caret"],["ngbDropdownMenu",""],["ngbDropdownItem","",3,"click"],["class","btn-group chart-toggle",4,"ngIf"],[3,"side","data","otherFilterSelections","geographicArea","timeConceptOne","timeConceptTwo","options","chartConfig","columns","otherFilterSelectionsChange","geographicAreaChange","timeConceptOneChange","timeConceptTwoChange","handleChanged","handleDropDownClose",4,"ngIf"],[1,"clearfix"],[1,"bottomMargin"],[1,"pull-left"],["type","button",1,"btn","btn-primary",3,"title","click"],["attr.aria-hidden","true",1,"clearfix"],["role","alert","tabindex","0",1,"alert","alert-warning","col-12"],[1,"download-element",3,"selectedTab","queryResult"],["target","_blank",1,"btn","btn-primary",3,"href"],[1,"fa-save","button-icon","data-option-button"],[1,"btn-group","chart-toggle"],["type","button","title","Switch to Bar Chart",1,"btn","btn-primary",3,"disabled","click"],["type","button","title","Switch to Line Chart",1,"btn","btn-primary",3,"disabled","click"],["type","button","title","Switch to Pie Chart",1,"btn","btn-primary",3,"disabled","click"],[1,"chart-other-filter-bar"],[1,"row"],["class","col-lg-3 col-md-6 col-sm-6 col-12",4,"ngIf"],["class","col-lg-3 col-md-6 col-sm-6 col-12 ",4,"ngIf"],["class","col-lg-3 col-md-6 col-sm-6 col-12",4,"ngFor","ngForOf"],["class","alert alert-warning no-data-warning col-12 pb-2",4,"ngIf"],[1,"col-lg-3","col-md-6","col-sm-6","col-12"],["placeholder","Nothing Selected",3,"id","required","label","list","singleSelection","ngModel","ngModelChange","handleChanged"],["placeholder","Nothing Selected",3,"id","list","required","label","selected","selectedChange","handleChanged"],["placeholder","Nothing Selected",3,"id","list","singleSelection","required","label","selected","selectedChange","handleChanged"],["placeholder","Nothing Selected",3,"id","list","required","label","selected","selectedChange","handleChanged","handleDropDownClose"],[1,"alert","alert-warning","no-data-warning","col-12","pb-2"],[2,"width","100%",3,"type","data","columns","options","dynamicResize"],["chart",""],[3,"side","data","otherFilterSelections","geographicArea","timeConceptOne","timeConceptTwo","options","chartConfig","columns","otherFilterSelectionsChange","geographicAreaChange","timeConceptOneChange","timeConceptTwoChange","handleChanged","handleDropDownClose"],["piChart",""],[1,"footnotes",3,"innerHtml"]],template:function(e,t){1&e&&(na(0,"div",0),na(1,"div",1),na(2,"div",2),$s(3,SU,1,0,"span",3),ra(),ra(),ra(),$s(4,xU,4,1,"div",4),$s(5,jU,31,20,"div",5)),2&e&&(yo(3),ea("ngIf",t.loading),yo(1),ea("ngIf",!t.queryResult&&!t.loading),yo(1),ea("ngIf",t.queryResult&&!t.loading))},directives:[sh,Yb,Rg,Hg,Dg,Lg,fQ,ih,_Q,ip,Fd,$d,wy,EU],styles:[""]}),e})();function zU(e,t){if(1&e){const e=aa();na(0,"select-list",8),Aa("handleChanged",function(){return It(e),da(2).filterRows()})("selectedChange",function(t){return It(e),da(2).filterCounty=t}),ra()}if(2&e){const e=da(2);ea("idField",e.geographicAreaSettings.idField)("textField",e.geographicAreaSettings.textField)("list",e.geographicAreaService.dynamicGeoGraphicAreas.get(e.querySide))("tooltipText","Geographic Areas")("selected",e.filterCounty)("singleSelection",!1)("loading",!1)}}function WU(e,t){if(1&e&&(na(0,"div"),na(1,"div",5),na(2,"div",6),$s(3,zU,1,7,"select-list",7),ra(),ra(),ra()),2&e){const e=da();let t;yo(3),ea("ngIf",(null==(t=e.geographicAreaService.dynamicGeoGraphicAreas.get(e.querySide))?null:t.length)>1)}}function XU(e,t){if(1&e&&ia(0,"fa-icon",14),2&e){const e=da().$implicit,t=da();ea("icon",t.faChevronDown)("rotate",t.getSort(e)?180:void 0)}}function JU(e,t){1&e&&ia(0,"fa-icon",15),2&e&&ea("icon",da(2).faSort)}function $U(e,t){if(1&e&&(na(0,"button",16),ia(1,"fa-icon",17),ra()),2&e){const e=da(),t=e.first,n=e.last,r=e.$implicit,i=da();ma("placement",!0===t?"right":!0===n?"left":"bottom"),ea("ngbPopover",r.ColumnDefinition),zs("aria-label","Help for "+r.ColumnLabel),yo(1),ea("icon",i.faQuestionCircle)}}const YU=function(e){return{"text-right":e}};function ZU(e,t){if(1&e){const e=aa();na(0,"th",9),na(1,"button",10),Aa("click",function(){const t=It(e).$implicit;return da().toggleSort(t)}),Ra(2),$s(3,XU,1,2,"fa-icon",11),$s(4,JU,1,1,"fa-icon",12),ra(),$s(5,$U,2,4,"button",13),ra()}if(2&e){const e=t.$implicit,n=t.index,r=t.last,i=da();ea("id",i.tableId+"col"+n)("ngClass",jc(7,YU,r&&"Value"===e.ColumnType)),yo(1),zs("aria-label","Sort By "+e.ColumnLabel),yo(1),Na(" ",e.ColumnLabel,"\xa0 "),yo(1),ea("ngIf",null!==i.getSort(e)),yo(1),ea("ngIf",null===i.getSort(e)),yo(1),ea("ngIf",e.ColumnDefinition)}}function eO(e,t){if(1&e&&(na(0,"span"),Ra(1),ra()),2&e){const e=da(5);yo(1),Pa(e.emptyValueLabel)}}function tO(e,t){if(1&e&&(na(0,"span"),Ra(1),ra()),2&e){const e=da(2).$implicit;yo(1),Pa(e.Value)}}function nO(e,t){if(1&e&&(na(0,"div"),$s(1,eO,2,1,"span",0),$s(2,tO,2,1,"span",0),ra()),2&e){const e=da().$implicit;yo(1),ea("ngIf",null===e.Value),yo(1),ea("ngIf",null!==e.Value)}}function rO(e,t){if(1&e&&(na(0,"span"),Ra(1),ra()),2&e){const e=da(2).$implicit;yo(1),Pa(e.Value)}}function iO(e,t){1&e&&ia(0,"span",26),2&e&&ea("innerHtml",da(2).$implicit.Value,ui)}function oO(e,t){1&e&&ia(0,"span",26),2&e&&ea("innerHtml",da(2).$implicit.Value,ui)}function sO(e,t){if(1&e&&(na(0,"div"),$s(1,rO,2,1,"span",0),$s(2,iO,1,1,"span",25),$s(3,oO,1,1,"span",25),ra()),2&e){const e=da().$implicit;yo(1),ea("ngIf",!e.isHtml),yo(1),ea("ngIf",e.isHtml&&!e.highlight),yo(1),ea("ngIf",e.isHtml&&e.highlight)}}function aO(e,t){if(1&e&&(na(0,"td",21),na(1,"div",22),$s(2,nO,3,2,"div",23),$s(3,sO,4,3,"div",24),ra(),ra()),2&e){const e=t.$implicit,n=t.index,r=t.last,i=da(3);ea("ngClass",jc(4,YU,r&&"Value"===e.ColumnType)),zs("headers",i.tableId+"col"+n),yo(1),ea("ngSwitch",e.ColumnType),yo(1),ea("ngSwitchCase","Value")}}function lO(e,t){if(1&e&&(na(0,"tr",19),$s(1,aO,4,6,"td",20),ra()),2&e){const e=t.$implicit;yo(1),ea("ngForOf",e)}}function cO(e,t){if(1&e&&(na(0,"tbody"),$s(1,lO,2,1,"tr",18),ra()),2&e){const e=da();yo(1),ea("ngForOf",e.filteredData)}}function AO(e,t){if(1&e&&(na(0,"span"),Ra(1),ra()),2&e){const e=da(5);yo(1),Pa(e.emptyValueLabel)}}function uO(e,t){if(1&e&&(na(0,"span"),Ra(1),ra()),2&e){const e=da(2).$implicit;yo(1),Pa(e.Value)}}function hO(e,t){if(1&e&&(na(0,"div"),$s(1,AO,2,1,"span",0),$s(2,uO,2,1,"span",0),ra()),2&e){const e=da().$implicit;yo(1),ea("ngIf",null===e.Value),yo(1),ea("ngIf",null!==e.Value)}}function dO(e,t){if(1&e&&(na(0,"span"),Ra(1),ra()),2&e){const e=da(2).$implicit;yo(1),Pa(e.Value)}}function pO(e,t){1&e&&ia(0,"span",26),2&e&&ea("innerHtml",da(2).$implicit.Value,ui)}function fO(e,t){1&e&&ia(0,"span",26),2&e&&ea("innerHtml",da(2).$implicit.Value,ui)}function gO(e,t){if(1&e&&(na(0,"div"),na(1,"div"),$s(2,dO,2,1,"span",0),$s(3,pO,1,1,"span",25),$s(4,fO,1,1,"span",25),ra(),ra()),2&e){const e=da().$implicit;yo(2),ea("ngIf",!e.isHtml),yo(1),ea("ngIf",e.isHtml&&!e.highlight),yo(1),ea("ngIf",e.isHtml&&e.highlight)}}function mO(e,t){if(1&e&&(na(0,"td",1),na(1,"div",22),$s(2,hO,3,2,"div",23),$s(3,gO,5,3,"div",24),ra(),ra()),2&e){const e=t.$implicit,n=t.index,r=t.last,i=da(3);ea("ngClass",jc(4,YU,r&&"Value"===e.ColumnType)),zs("headers",i.tableId+"col"+n),yo(1),ea("ngSwitch",e.ColumnType),yo(1),ea("ngSwitchCase","Value")}}function yO(e,t){if(1&e&&(na(0,"tr",19),$s(1,mO,4,6,"td",27),ra()),2&e){const e=t.$implicit;yo(1),ea("ngForOf",e)}}function wO(e,t){if(1&e&&(na(0,"tbody"),$s(1,yO,2,1,"tr",18),Zc(2,"slice"),ra()),2&e){const e=da();yo(1),ea("ngForOf",tA(2,1,e.filteredData,(e.pager.currentPage-1)*e.pageSize,e.pager.currentPage*e.pageSize))}}function vO(e,t){if(1&e){const e=aa();na(0,"div",28),na(1,"ngb-pagination",29),Aa("pageChange",function(t){return It(e),da().onPageChange(t)})("pageChange",function(t){return It(e),da().pager.currentPage=t}),ra(),ia(2,"br"),na(3,"small"),Ra(4),ra(),ra()}if(2&e){const e=da();yo(1),ea("page",e.pager.currentPage)("pageSize",e.pageSize)("collectionSize",e.filteredData.length)("boundaryLinks",!0)("directionLinks",!0)("ellipses",!0)("maxSize",5),yo(3),Va("Displaying records ",e.pager.startIndex+1," - ",e.pager.endIndex," of ",e.filteredData.length,"")}}const bO=function(e){return{"table-responsive":e}};let CO=(()=>{class e{constructor(e,t,n){this.pagerService=e,this.changeDetectorRef=t,this.geographicAreaService=n,this.paging=!0,this.pageSize=10,this.tableCaption="",this.tableTitle="",this.querySide="",this.faQuestionCircle=Ex,this.faChevronDown=wx,this.faSort=Hx,this.filterCounty=[],this.filteredData=[],this.isFiltering=!1,this.pager={totalPages:0,startIndex:0,endIndex:0,currentPage:1},this.sortOpts={col:null,reverse:!1},this.parsedData=[],this.initialFilteredData=[],this.geographicAreaSettings={allowSearchFilter:!0,closeDropDownOnSelection:!0,selectAllText:"Select All",unSelectAllText:"Deselect All",searchPlaceholderText:"Filter Selections Below",itemsShowLimit:3,idField:"GeographicArea",textField:"GeographicAreaSeq"}}ngOnInit(){if(null==this.paging&&(this.paging=!1),null==this.pageSize&&(this.pageSize=25),!this.theadConfig)throw new Error("Invalid floating table header configuration!");this.handleDataChange()}parseData(){var e;let t=[];null===(e=this.data)||void 0===e||e.forEach(e=>{let n=[];this.headers.forEach(t=>{var r={MappedColumnName:t.MappedColumnName,ColumnType:t.ColumnType,Name:t.ColumnLabel,Value:e[t.MappedColumnName],isHtml:"Value"!==t.ColumnType&&!0===t.isHtml,highlight:!0===t.isHtml?t.highlight:null};"GeographicArea"===t.ColumnType&&null==e.MeasureValue&&(r.Value+="**"),"Value"===t.ColumnType&&(r.Value=e.MeasureDisplayValue),n.push(r)}),t.push(n)}),this.parsedData=t,this.initialFilteredData=oU.cloneDeep(this.parsedData),this.filteredData=oU.cloneDeep(this.parsedData),this.changeDetectorRef.markForCheck()}sortRows(){if(!this.sortOpts.col)return void(this.filteredData=oU.cloneDeep(this.initialFilteredData));const e=this.headers.findIndex(e=>e.MappedColumnName===this.sortOpts.col);this.filteredData=oU.cloneDeep(this.filteredData).sort((t,n)=>{const r=kk(t[e].Value,n[e].Value);return this.sortOpts.reverse?-r:r})}filterRows(){var e;if(this.filterCounty.length<1)return this.filteredData=oU.cloneDeep(this.parsedData),this.initialFilteredData=oU.cloneDeep(this.parsedData),void this.sortRows();this.isFiltering=!0;let t=[];for(let n=0;n<this.parsedData.length-1;n++){let r=this.parsedData[n].find(e=>"County"===e.Name);(null===(e=this.filterCounty)||void 0===e?void 0:e.filter(e=>{var t,n;let i=null===(t=null==r?void 0:r.Value)||void 0===t?void 0:t.replace(/\*/g,"");return 0===(null===(n=null==e?void 0:e.GeographicAreaSeq)||void 0===n?void 0:n.localeCompare(i))})).length>0&&t.push(this.parsedData[n]),setTimeout(()=>{this.isFiltering=!1}),this.filteredData=t}this.isFiltering=!1,this.initialFilteredData=oU.cloneDeep(this.filteredData),this.sortRows()}toggleSort(e){if(this.sortOpts.col===e.MappedColumnName)switch(this.sortOpts.reverse){case!1:this.sortOpts.reverse=!0;break;case!0:this.sortOpts={col:null,reverse:null}}else this.sortOpts={col:e.MappedColumnName,reverse:!1};this.sortRows()}getSort(e){let t=this.sortOpts.col===e.MappedColumnName?this.sortOpts.reverse:null;return null===t?null:Boolean(t)}setPage(e){(e<1||e>this.pager.totalPages)&&0!==this.pager.totalPages||(this.pager=this.pagerService.getPager(this.parsedData.length,e,this.pageSize),this.changeDetectorRef.markForCheck())}ngOnChanges(e){(e.headers||e.data)&&this.handleDataChange()}handleDataChange(e){this.sortOpts={col:null,reverse:!1},null!=this.headers&&null!=this.data&&(this.headers.length&&this.data.length?(this.parseData(),!0===this.paging&&this.setPage(1),setTimeout(function(){})):this.parsedData=[]),this.changeDetectorRef.markForCheck()}onPageChange(e){const t=document.getElementById("paging-component");this.pager.currentPage=e,this.pager.startIndex=(this.pager.currentPage-1)*this.pageSize,this.pager.endIndex=Math.min(this.pager.startIndex+this.pageSize,this.filteredData.length),null==t||t.click()}}return e.\u0275fac=function(t){return new(t||e)(Zs(Qk),Zs(yc),Zs(lx))},e.\u0275cmp=Ge({type:e,selectors:[["mi-table"]],inputs:{paging:"paging",pageSize:"pageSize",tableCaption:"tableCaption",headers:"headers",data:"data",emptyValueLabel:"emptyValueLabel",theadConfig:"theadConfig",tableResponsive:"tableResponsive",displayTypeName:"displayTypeName",tableId:"tableId",tableTitle:"tableTitle",querySide:"querySide"},features:[At],decls:11,vars:10,consts:[[4,"ngIf"],[3,"ngClass"],[1,"table","table-condensed","table-striped",3,"summary"],["scope","col",3,"id","ngClass",4,"ngFor","ngForOf"],["id","paging-component",4,"ngIf"],[1,"row"],[1,"col-5"],["label","Geographic Areas","button-label","a Geographic Area","class","col-lg-3 col-md-6 col-sm-6 col-12",3,"idField","textField","list","tooltipText","selected","singleSelection","loading","handleChanged","selectedChange",4,"ngIf"],["label","Geographic Areas","button-label","a Geographic Area",1,"col-lg-3","col-md-6","col-sm-6","col-12",3,"idField","textField","list","tooltipText","selected","singleSelection","loading","handleChanged","selectedChange"],["scope","col",3,"id","ngClass"],[1,"btn","btn-link","btn-link-condensed","column-sort",3,"click"],["data-fa-transform","down-8","aria-hidden","true",3,"icon","rotate",4,"ngIf"],["aria-hidden","true",3,"icon",4,"ngIf"],["class","btn btn-link btn-link-condensed","triggers","focus:blur hover:blur","container","body",3,"ngbPopover","placement",4,"ngIf"],["data-fa-transform","down-8","aria-hidden","true",3,"icon","rotate"],["aria-hidden","true",3,"icon"],["triggers","focus:blur hover:blur","container","body",1,"btn","btn-link","btn-link-condensed",3,"ngbPopover","placement"],["aria-hidden","true",1,"visible-xs-inline-block","visible-sm-inline-block","context-help","pl-2","tooltipIcon",3,"icon"],["tabindex","0",4,"ngFor","ngForOf"],["tabindex","0"],["role","row",3,"ngClass",4,"ngFor","ngForOf"],["role","row",3,"ngClass"],[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],[3,"innerHtml",4,"ngIf"],[3,"innerHtml"],[3,"ngClass",4,"ngFor","ngForOf"],["id","paging-component"],["aria-label","Pagination",3,"page","pageSize","collectionSize","boundaryLinks","directionLinks","ellipses","maxSize","pageChange"]],template:function(e,t){if(1&e&&($s(0,WU,4,1,"div",0),na(1,"div",1),na(2,"table",2),na(3,"caption"),Ra(4),ra(),na(5,"thead"),na(6,"tr"),$s(7,ZU,6,9,"th",3),ra(),ra(),$s(8,cO,2,1,"tbody",0),$s(9,wO,3,5,"tbody",0),ra(),$s(10,vO,5,10,"div",4),ra()),2&e){let e;ea("ngIf",(null==(e=t.geographicAreaService.dynamicGeoGraphicAreas.get(t.querySide))?null:e.length)>1),yo(1),ea("ngClass",jc(8,bO,!0===t.tableResponsive)),yo(1),ma("summary",t.tableTitle),yo(2),Na(" ",t.tableTitle," "),yo(3),ea("ngForOf",t.headers),yo(1),ea("ngIf",!t.paging),yo(1),ea("ngIf",t.paging),yo(1),ea("ngIf",t.paging)}},directives:[sh,nh,ih,_Q,Yb,Sm,Ah,uh,hh,vm],pipes:[yh],styles:[".tooltipIcon[_ngcontent-%COMP%]{color:#0050cb}"]}),e})();function BO(e,t){if(1&e){const e=aa();na(0,"div"),na(1,"div",2),na(2,"div",3),na(3,"button",4),Aa("click",function(){return It(e),da().panelController.editDataOptions()}),ia(4,"fa-icon",5),Ra(5),ra(),ra(),ia(6,"div",6),ra(),na(7,"div",7),ia(8,"fa-icon",5),Ra(9,"\xa0No results found. "),ra(),ra()}if(2&e){const e=da();yo(3),ma("title",e.panelController.editDataOptionsText()),yo(1),ea("icon",e.faCogs),yo(1),Na("\xa0",e.panelController.editDataOptionsText(),""),yo(3),ea("icon",e.faExclamationTriangle)}}function _O(e,t){if(1&e){const e=aa();na(0,"div"),na(1,"div"),na(2,"div",8),na(3,"button",9),Aa("click",function(){return It(e),da().panelController.editDataOptions()}),ia(4,"fa-icon",10),Ra(5),ra(),ia(6,"download",11),ra(),ia(7,"div",6),ra(),ia(8,"mi-header",12),ia(9,"mi-table",13),ra()}if(2&e){const e=da();yo(3),ma("title",e.panelController.editDataOptionsText()),yo(1),ea("icon",e.faCogs),yo(1),Na("\xa0",e.panelController.editDataOptionsText(),""),yo(1),ea("queryResult",e.queryResult)("selectedTab",e.panelController.selectedTab),yo(2),ea("displayTitle",null==e.queryResult||null==e.queryResult.measure?null:e.queryResult.measure.titleWithQuery)("panelSide",e.panelController.panelSide)("tab","Table")("showTitle",!0),yo(1),ea("tableId",e.panelController.panelSide+"miTableDisplay")("querySide",e.querySide)("paging",!0)("pageSize",25)("theadConfig",e.theadConfig)("tableResponsive",!0)("headers",null==e.queryResult||null==e.queryResult.results?null:e.queryResult.results.headers)("data",null==e.queryResult||null==e.queryResult.results?null:e.queryResult.results.data)("tableCaption",null==e.queryResult||null==e.queryResult.measure?null:e.queryResult.measure.description)("displayTypeName",null==e.queryResult||null==e.queryResult.measure?null:e.queryResult.measure.displayTypeName)("emptyValueLabel",null==e.queryResult||null==e.queryResult.measure?null:e.queryResult.measure.emptyValueLabel)}}function EO(e,t){if(1&e&&(na(0,"div"),na(1,"div",14),ia(2,"fa-icon",5),Ra(3,"\xa0Run a query to view tabular data. "),ra(),ra()),2&e){const e=da();yo(2),ea("icon",e.faInfoCircle)}}function FO(e,t){if(1&e&&(na(0,"div"),ia(1,"div",15),ra()),2&e){const e=da();yo(1),ea("innerHTML",e.panelController.footnotes,ui)}}let TO=(()=>{class e{constructor(e,t,n){this.dataService=e,this.changeDetectorRef=t,this.applicationRef=n,this.querySide="",this.emptyValueLabel="",this.faCogs=Ux,this.faExclamationTriangle=Gx,this.faInfoCircle=_x,this.tableConfig={tableEnabled:null,errorList:null},this.theadConfig={responsiveContainer:e=>e.closest(".table-responsive"),position:"absolute",enableAria:!0,autoReflow:!0}}ngAfterViewInit(){this.tableConfig={tableEnabled:!0,errorList:[]},this.queryResult=this.queryResult&&0===Object.keys(this.queryResult).length?null:this.queryResult}clearTableData(){this.tableConfig={tableEnabled:null,errorList:[]},this.headers=null,this.data=null,this.tableTitle=null,this.tableCaption=null,this.displayTypeName=null}dataError(){this.tableConfig={tableEnabled:!1,errorList:["An unknown error occurred while processing your query. Wait a few seconds, then try your query again. If the error persists, try again at a later time."]}}queryFailure(){this.clearTableData(),this.dataError()}}return e.\u0275fac=function(t){return new(t||e)(Zs(cx),Zs(yc),Zs(fu))},e.\u0275cmp=Ge({type:e,selectors:[["mi-table-display"]],inputs:{panelController:"panelController",queryResult:"queryResult",querySide:"querySide",emptyValueLabel:"emptyValueLabel"},decls:6,vars:5,consts:[[3,"id"],[4,"ngIf"],[1,"bottomMargin"],[1,"pull-left"],["type","button",1,"btn","btn-primary",3,"title","click"],["aria-hidden","true",3,"icon"],["aria-hidden","true",1,"clearfix"],["role","alert","tabindex","0",1,"alert","alert-warning"],[1,"pull-left","btn-group","data-options-buttons"],["type","button",1,"btn","btn-primary","data-option-button",3,"title","click"],["aria-hidden","true",1,"button-icon",3,"icon"],[1,"download-element",3,"queryResult","selectedTab"],["tabindex","0",3,"displayTitle","panelSide","tab","showTitle"],[2,"height","85vh",3,"tableId","querySide","paging","pageSize","theadConfig","tableResponsive","headers","data","tableCaption","displayTypeName","emptyValueLabel"],["role","alert","tabindex","0",1,"row","alert","alert-info"],["ng-bind-html","panelController.footnotes",1,"footnotes",3,"innerHTML"]],template:function(e,t){1&e&&(na(0,"div",0),na(1,"div"),$s(2,BO,10,4,"div",1),$s(3,_O,10,20,"div",1),ra(),$s(4,EO,4,1,"div",1),$s(5,FO,2,1,"div",1),ra()),2&e&&(ea("id",t.panelController.panelSide+"TableTab"),yo(2),ea("ngIf",(null==t.queryResult||null==t.queryResult.results?null:t.queryResult.results.data)&&(null==t.queryResult||null==t.queryResult.results||null==t.queryResult.results.data?null:t.queryResult.results.data.length)<1),yo(1),ea("ngIf",t.queryResult&&(null==t.queryResult||null==t.queryResult.results||null==t.queryResult.results.data?null:t.queryResult.results.data.length)>0),yo(1),ea("ngIf",!(null!=t.queryResult&&null!=t.queryResult.results&&t.queryResult.results.data)),yo(1),ea("ngIf",t.panelController.footnotes&&t.panelController.footnotes.length>0&&!0===t.tableConfig.tableEnabled&&(null==t.data?null:t.data.length)>0))},directives:[sh,Yb,fQ,mQ,CO],styles:[""]}),e})();function SO(e,t){if(1&e){const e=aa();na(0,"div"),na(1,"div",3),na(2,"button",4),Aa("click",function(){return It(e),da().panelController.editDataOptions()}),ia(3,"fa-icon",5),Ra(4),ra(),ra(),ia(5,"mi-header",6),ra()}if(2&e){const e=da();yo(2),ea("title",e.panelController.editDataOptionsText()),yo(1),ea("icon",e.faCogs),yo(1),Na("\xa0",e.panelController.editDataOptionsText()," "),yo(1),ea("displayTitle",e.title)("panelSide",e.panelController.panelSide)("tab","AboutData")("showTitle",!0)}}function xO(e,t){if(1&e){const e=aa();na(0,"div"),na(1,"div",7),na(2,"button",8),Aa("click",function(){return It(e),da().panelController.editDataOptions()}),ia(3,"fa-icon",9),Ra(4),ra(),ra(),ia(5,"div",10),na(6,"div",11),ia(7,"fa-icon",9),Ra(8,"\xa0No information to display. "),ra(),ra()}if(2&e){const e=da();yo(2),ea("title",e.panelController.editDataOptionsText()),yo(1),ea("icon",e.faCogs),yo(1),Na("\xa0",e.panelController.editDataOptionsText()," "),yo(3),ea("icon",e.faInfoCircle)}}function QO(e,t){if(1&e&&(na(0,"div"),na(1,"div",11),ia(2,"fa-icon",9),Ra(3,"\xa0Run a query to view about these data "),ra(),ra()),2&e){const e=da();yo(2),ea("icon",e.faInfoCircle)}}function kO(e,t){if(1&e&&(na(0,"div",12),ia(1,"div",13),ia(2,"div",10),ra()),2&e){const e=da();yo(1),ea("innerHTML",e.content,ui)}}let UO=(()=>{class e{constructor(e){this.changeDetectorRef=e,this.title="",this.content="",this.aboutConfig={display:"runQuery",errorList:[]},this.faCogs=Ux,this.faInfoCircle=_x}ngOnInit(){this.activate()}ngOnChanges(e){e.queryResult&&(this.activate(),this.changeDetectorRef.markForCheck())}activate(){this.aboutConfig={display:"runQuery",errorList:[]},this.setup()}setup(){var e,t,n,r;(null===(e=this.queryResult)||void 0===e?void 0:e.measure)&&this.panelController.panelSide===this.queryResult.panelSide&&(this.title=null===(t=this.queryResult.measure)||void 0===t?void 0:t.title,this.content=null===(n=this.queryResult.measure)||void 0===n?void 0:n.notes,this.aboutConfig.display=(null===(r=this.content)||void 0===r?void 0:r.length)>0?"displayInfo":"noInfo")}}return e.\u0275fac=function(t){return new(t||e)(Zs(yc))},e.\u0275cmp=Ge({type:e,selectors:[["mi-about-data"]],inputs:{panelController:"panelController",queryResult:"queryResult"},features:[At],decls:5,vars:5,consts:[[3,"id"],[4,"ngIf"],["class","footnotes",4,"ngIf"],["role","group",1,"btn-group","data-options-buttons"],["type","button",1,"btn","btn-primary","data-option-button",3,"title","click"],["aria-hidden","true",1,"button-icon",3,"icon"],[3,"displayTitle","panelSide","tab","showTitle"],[1,"float-left"],["type","button",1,"btn","btn-primary","bottomMargin",3,"title","click"],["aria-hidden","true",3,"icon"],["aria-hidden","true",1,"clearfix"],["role","alert","tabindex","0",1,"alert","alert-info","col-12"],[1,"footnotes"],[3,"innerHTML"]],template:function(e,t){1&e&&(na(0,"div",0),$s(1,SO,6,7,"div",1),$s(2,xO,9,4,"div",1),$s(3,QO,4,1,"div",1),ra(),$s(4,kO,3,1,"div",2)),2&e&&(ea("id",t.panelController.panelSide+"AboutDataTab"),yo(1),ea("ngIf","displayInfo"===t.aboutConfig.display),yo(1),ea("ngIf","noInfo"===t.aboutConfig.display),yo(1),ea("ngIf","runQuery"===t.aboutConfig.display),yo(1),ea("ngIf","displayInfo"===t.aboutConfig.display))},directives:[sh,Yb,mQ],styles:[""]}),e})();function OO(e,t){if(1&e&&(na(0,"div",9),ia(1,"mi-table-display",10),ra()),2&e){const e=da();yo(1),ea("queryResult",e.queryResult)("querySide",e.panelSide)("panelController",e.panelComponent)}}function IO(e,t){if(1&e&&(na(0,"div",9),ia(1,"mi-chart",11),ra()),2&e){const e=da();yo(1),ea("queryResult",e.queryResult)("panelController",e.panelComponent)}}function LO(e,t){if(1&e&&(na(0,"div",9),ia(1,"mi-map",11),ra()),2&e){const e=da();yo(1),ea("queryResult",e.queryResult)("panelController",e.panelComponent)}}function DO(e,t){if(1&e&&(na(0,"div",9),ia(1,"mi-about-data",11),ra()),2&e){const e=da();yo(1),ea("queryResult",e.queryResult)("panelController",e.panelComponent)}}let MO=(()=>{class e{constructor(e,t,n,r){this.dataService=e,this.baseUrl=t,this.changeDetector=n,this.modalService=r,this.panelSide="left",this.faInfoCircle=_x,this.faTable=Nx,this.faMap=Dx,this.faBarChart=fx,this.selectedTab="selected-table",this.chartDrawn=!1,this.dataOptionsCollapsed=!1,this.measureCollapsed=!1,this.geoTimePeriodsCollapsed=!1,this.otherFiltersCollapsed=!1,this.activeTab=1,this.request={},this.measure={},this.footnotes="",this.messageList=[],this.panelComponent=this,this.isFileSaverSupported=!1,this.queryResult={}}ngOnChanges(e){this.activate()}ngOnInit(){this.setup(),this.activate()}ngAfterViewInit(){try{this.isFileSaverSupported=!!new Blob}catch(WI){this.isFileSaverSupported=!1}}activate(){this.dataService.getClearDataEvent().subscribe(e=>{e===this.panelSide&&(this.clearQuery(),this.selectTable())})}editDataOptions(){this.filterController.loadFilterQuery(this.request,this.panelSide,!0)}editDataOptionsText(){return this.indexController.rightPanelVisible&&this.indexController.leftPanelVisible?"Edit "+this.toTitleCase(this.panelSide)+" Query":"Edit Data Options"}toTitleCase(e){return e.replace(/\w\S*/g,e=>e.charAt(0).toUpperCase()+e.substr(1).toLowerCase())}selectChart(){this.selectedTab="selected-chart",this.setSelectedTab("chart"),this.activeTab=2,this.changeDetector.markForCheck(),!1===this.chartDrawn&&window.setTimeout(()=>{this.chartDrawn=!0},0)}setSelectedTab(e){"left"===this.panelSide&&(this.indexController.leftSideTab=e),"right"===this.panelSide&&(this.indexController.rightSideTab=e)}selectTable(){this.selectedTab="selected-table",this.setSelectedTab("table"),this.activeTab=1,this.changeDetector.markForCheck()}selectMap(){this.selectedTab="selected-map",this.setSelectedTab("map"),this.activeTab=3,this.changeDetector.markForCheck()}selectAbout(){this.selectedTab="selected-about",this.setSelectedTab("about"),this.activeTab=4,this.changeDetector.markForCheck()}clearQuery(){this.queryResult={}}setup(){"left"===this.panelSide?this.dataService.getLeftQueryResponse().subscribe(e=>this.queryHandler(e),e=>this.queryErrorHandler()):this.dataService.getRightQueryResponse().subscribe(e=>this.queryHandler(e),e=>this.queryErrorHandler())}queryHandler(e){var t;this.queryResult=e,this.queryResult.panelSide=this.panelSide,this.request=this.dataService.getLastQueryRequest(),this.measure=e.measure,this.footnotes=null===(t=e.measure)||void 0===t?void 0:t.footnotes,this.filterController.querySuccess(this.request,this.panelSide),this.chartDrawn&&"selected-chart"!==this.selectedTab&&(this.chartDrawn=!1),this.filterController.queryEnd(),this.chartDrawn="selected-chart"===this.selectedTab,setTimeout(()=>{this.selectTable()})}queryErrorHandler(){this.request=null,this.measure=null,this.footnotes=""}getCurrentChartType(){return this.miChart&&this.miChart.chartConfig?this.miChart.chartConfig.chartType:null}resetTabToTable(){this.activeTab=1,this.selectTable(),this.changeDetector.markForCheck()}}return e.\u0275fac=function(t){return new(t||e)(Zs(cx),Zs("BASE_URL"),Zs(yc),Zs(Yg))},e.\u0275cmp=Ge({type:e,selectors:[["mi-panel"]],viewQuery:function(e,t){if(1&e&&yA(qU,5),2&e){let e;mA(e=vA())&&(t.miChart=e.first)}},inputs:{indexController:"indexController",filterController:"filterController",panelSide:"panelSide"},features:[At],decls:20,vars:10,consts:[["ngbNav","",1,"nav-tabs","selected-table",3,"activeId","activeIdChange"],["nav","ngbNav"],["aria-label","Table","ngbNavLink","",3,"ngbNavItem","keydown.space","click"],["aria-hidden","true",3,"icon"],["ngbNavContent",""],["aria-label","Chart","ngbNavLink","",3,"ngbNavItem","keydown.space","click"],["aria-label","Map","ngbNavLink","",3,"ngbNavItem","keydown.space","click"],["aria-label","About These Data","ngbNavLink","",3,"ngbNavItem","keydown.space","click"],[1,"pt-4",3,"ngbNavOutlet"],[1,"tab-content-wrapper"],[3,"queryResult","querySide","panelController"],[3,"queryResult","panelController"]],template:function(e,t){if(1&e&&(na(0,"div"),na(1,"div",0,1),Aa("activeIdChange",function(e){return t.activeTab=e}),na(3,"a",2),Aa("keydown.space",function(){return t.selectTable()})("click",function(){return t.selectTable()}),ia(4,"fa-icon",3),Ra(5,"\xa0Table "),$s(6,OO,2,3,"ng-template",4),ra(),na(7,"a",5),Aa("keydown.space",function(){return t.selectChart()})("click",function(){return t.selectChart()}),ia(8,"fa-icon",3),Ra(9,"\xa0Chart "),$s(10,IO,2,2,"ng-template",4),ra(),na(11,"a",6),Aa("keydown.space",function(){return t.selectMap()})("click",function(){return t.selectMap()}),ia(12,"fa-icon",3),Ra(13,"\xa0Map "),$s(14,LO,2,2,"ng-template",4),ra(),na(15,"a",7),Aa("keydown.space",function(){return t.selectAbout()})("click",function(){return t.selectAbout()}),ia(16,"fa-icon",3),Ra(17,"\xa0About These Data "),$s(18,DO,2,2,"ng-template",4),ra(),ra(),ia(19,"div",8),ra()),2&e){const e=Ys(2);yo(1),ea("activeId",t.activeTab),yo(2),ea("ngbNavItem",1),yo(1),ea("icon",t.faTable),yo(3),ea("ngbNavItem",2),yo(1),ea("icon",t.faBarChart),yo(3),ea("ngbNavItem",3),yo(1),ea("icon",t.faMap),yo(3),ea("ngbNavItem",4),yo(1),ea("icon",t.faInfoCircle),yo(3),ea("ngbNavOutlet",e)}},directives:[om,sm,im,Yb,rm,Am,TO,qU,gk,UO],styles:[".tab-content-wrapper[_ngcontent-%COMP%]{position:relative}.tab-header[_ngcontent-%COMP%]{border-bottom:1px solid #dee2e6;padding-bottom:.5rem;margin-bottom:1rem}.tab-header[_ngcontent-%COMP%]   .btn[_ngcontent-%COMP%]{font-size:.875rem}.tab-header[_ngcontent-%COMP%]   .btn[_ngcontent-%COMP%]:hover{transform:translateY(-1px);box-shadow:0 2px 4px #0000001a}@media (max-width: 768px){.tab-header[_ngcontent-%COMP%]{text-align:center}.tab-header[_ngcontent-%COMP%]   .d-flex[_ngcontent-%COMP%]{justify-content:center!important}}"]}),e})();const HO=["filterCollapse"],RO=["indicatorModal"];function PO(e,t){if(1&e){const e=aa();na(0,"p"),na(1,"ngb-alert",36),Aa("closed",function(){const t=It(e).$implicit;return da().closeAlert(t)}),Ra(2),ra(),ra()}if(2&e){const e=t.$implicit;yo(1),ea("type",e.type),yo(1),Pa(e.message)}}function NO(e,t){if(1&e){const e=aa();na(0,"div"),na(1,"ngb-alert",36),Aa("closed",function(){return It(e),da().closeBanner()}),ia(2,"fa-icon",37),ia(3,"div",38),ra(),ra()}if(2&e){const e=da();yo(1),ea("type",e.bannerAlert.type),yo(1),ea("icon",e.faInfoCircle),yo(1),ea("innerHTML",e.bannerAlert.message,ui)}}function KO(e,t){if(1&e){const e=aa();na(0,"div",49),na(1,"select-list",50),Aa("selectedChange",function(t){return It(e).$implicit.selected=t}),ra(),ra()}if(2&e){const e=t.$implicit;yo(1),ea("list",null==e?null:e.options)("tooltipText",null==e?null:e.tooltipText)("selected",e.selected)("singleSelection",!1)("label",e.label)}}function VO(e,t){if(1&e){const e=aa();na(0,"div"),na(1,"div",39),na(2,"button",40),Aa("click",function(){return It(e),Ys(8).toggle()}),ia(3,"fa-icon",3),na(4,"span",4),Ra(5,"Geography & Time Periods "),ra(),ia(6,"fa-icon",41),ra(),na(7,"div",42,43),Aa("ngbCollapseChange",function(t){return It(e),da().geoTimePeriodsCollapsed=t}),na(9,"div",8),na(10,"select-list",44),Aa("selectedChange",function(t){return It(e),da().geographicGroups.selected=t})("handleChanged",function(){return It(e),da().onGeographicGroupingChange()}),ra(),na(11,"select-list",45),Aa("selectedChange",function(t){return It(e),da().geographicArea.selected=t})("handleChanged",function(){return It(e),da().onGeographicAreaChange()}),ra(),na(12,"select-list",45),Aa("selectedChange",function(t){return It(e),da().timeConceptOne.selected=t})("handleChanged",function(){return It(e),da().onTimeConceptOneChange()}),ra(),na(13,"select-list",44),Aa("selectedChange",function(t){return It(e),da().timeConceptTwo.selected=t})("handleChanged",function(){return It(e),da().onTimeConceptTwoChange()}),ra(),ia(14,"div",15),ra(),ra(),ra(),na(15,"div",39),na(16,"div",46),Aa("click",function(){return It(e),Ys(22).toggle()}),ia(17,"fa-icon",3),na(18,"span",4),Ra(19,"Other Filters"),ra(),ia(20,"fa-icon",41),ra(),na(21,"div",42,47),Aa("ngbCollapseChange",function(t){return It(e),da().otherFiltersCollapsed=t}),na(23,"div",8),$s(24,KO,2,5,"div",48),ra(),ia(25,"div",15),ra(),ra(),ra()}if(2&e){const e=da();yo(1),ea("hidden",!e.measure.selected[0]||e.basicQuery||e.cdcQuery),yo(1),zs("aria-expanded",e.geoTimePeriodsCollapsed),yo(1),ea("icon",e.faEarthAmerica),yo(3),ea("icon",e.faChevronDown)("rotate",!1===e.geoTimePeriodsCollapsed?180:void 0),yo(1),ea("ngbCollapse",e.geoTimePeriodsCollapsed),yo(3),ea("list",null==e.geographicGroups?null:e.geographicGroups.options)("tooltipText",e.geographicGroups.tooltipText)("selected",e.geographicGroups.selected)("singleSelection",!0)("loading",e.geographicGroups.loading)("label",e.geographicGroups.label)("hidden",!e.geographicGroups.visible),yo(1),ea("list",null==e.geographicArea?null:e.geographicArea.options)("tooltipText",null==e.geographicArea?null:e.geographicArea.tooltipText)("selected",e.geographicArea.selected)("singleSelection",!1)("loading",e.geographicArea.loading)("label",e.geographicArea.label),yo(1),ea("list",null==e.timeConceptOne?null:e.timeConceptOne.options)("tooltipText",null==e.timeConceptOne?null:e.timeConceptOne.tooltipText)("selected",e.timeConceptOne.selected)("singleSelection",!1)("loading",e.timeConceptOne.loading)("label",e.timeConceptOne.label),yo(1),ea("list",null==e.timeConceptTwo?null:e.timeConceptTwo.options)("tooltipText",null==e.timeConceptTwo?null:e.timeConceptTwo.tooltipText)("selected",e.timeConceptTwo.selected)("singleSelection",!1)("loading",e.timeConceptTwo.loading)("label",e.timeConceptTwo.label)("hidden",!e.timeConceptOne.hasConceptTwo),yo(2),ea("hidden",!e.otherFilters.filters[0]||!e.measure.selected[0]||e.basicQuery||e.cdcQuery),yo(2),ea("icon",e.faFilter),yo(3),ea("icon",e.faChevronDown)("rotate",!1===e.otherFiltersCollapsed?180:void 0),yo(1),ea("ngbCollapse",e.otherFiltersCollapsed),yo(3),ea("ngForOf",e.otherFilters.filters)}}function GO(e,t){if(1&e){const e=aa();na(0,"div",51),na(1,"span",52),Aa("click",function(){return It(e),da().toggleQuerySide("left")}),Ra(2,"Left Query"),ra(),na(3,"div",53),na(4,"div",54),Aa("keydown",function(t){return It(e),da().onoffKeyDown(t)})("click",function(t){return It(e),da().toggleQuerySide(t)}),na(5,"input",55),Aa("ngModelChange",function(t){return It(e),da().rightActive=t}),ra(),na(6,"label",56),na(7,"div",57),Ra(8),ra(),ia(9,"span",58),ia(10,"span",59),ra(),ra(),ra(),na(11,"span",60),Aa("click",function(){return It(e),da().toggleQuerySide("right")}),Ra(12,"Right Query"),ra(),ra()}if(2&e){const e=da();yo(5),ea("ngModel",e.rightActive),yo(3),Na("Currently the query would run on the ",e.rightActive?"right":"left"," side")}}function jO(e,t){1&e&&ia(0,"span",61)}function qO(e,t){1&e&&(na(0,"span"),Ra(1,"Switch to Advanced Query"),ra())}function zO(e,t){1&e&&(na(0,"span"),Ra(1,"Switch to Basic Query"),ra())}function WO(e,t){1&e&&ia(0,"span",61)}function XO(e,t){if(1&e){const e=aa();na(0,"div",62),na(1,"div",63),ia(2,"h3",64),na(3,"button",65),Aa("click",function(){return It(e).$implicit.dismiss()}),na(4,"span",66),Ra(5,"\xd7"),ra(),ra(),ra(),na(6,"div",67),ia(7,"div",68),ra(),na(8,"div",69),na(9,"button",70),Aa("click",function(){return It(e).$implicit.dismiss()}),Ra(10,"Close"),ra(),ra(),ra()}if(2&e){const e=da();yo(2),ea("innerHTML",e.indicatorHeader,ui),yo(5),ea("innerHTML",e.indicatorDescription,ui)}}function JO(e,t){1&e&&(na(0,"span",79),Ra(1,"Copied!"),ra())}function $O(e,t){if(1&e){const e=aa();na(0,"div",71),na(1,"span",72),na(2,"button",73),Aa("click",function(){return It(e),da().copyBookmark()}),ia(3,"fa-icon",74),Ra(4,"\xa0Copy "),ra(),ra(),ia(5,"input",75),ra(),na(6,"div",76),$s(7,JO,2,0,"span",77),na(8,"div",21),na(9,"button",78),Aa("click",function(){return It(e),da(),Ys(35).close()}),Ra(10,"Close"),ra(),ra(),ra()}if(2&e){const e=da();yo(3),ea("icon",e.faCopy),yo(2),ma("value",e.bookmarkUrl),yo(2),ea("ngIf",e.bookmark.copied)}}const YO=function(e,t,n,r){return{"col-sm-6":e,"col-sm-12":t,activePanel:n,inactivePanel:r}};let ZO=(()=>{class e{constructor(e,t,n,r,i,o,s,a,l,c){this.dataService=e,this.filterService=t,this.baseUrl=n,this.httpService=r,this.modalService=i,this.changeDetector=o,this.cdcApiService=s,this.geographicAreaService=a,this.websiteMetricService=l,this.location=c,this.rightPanelVisible=!1,this.leftPanelVisible=!1,this.currentSelectedTab="selected-table",this.faGears=kx,this.faChevronDown=wx,this.faEarthAmerica=Sx,this.faFilter=xx,this.faCopy=Fx,this.category={options:[],selected:[],loading:!0,tooltipText:""},this.content={options:[],selected:[],loading:!1,tooltipText:""},this.indicator={options:[],selected:[],loading:!1,tooltipText:""},this.measure={options:[],selected:[],loading:!1,tooltipText:""},this.geographicGroups={options:[],selected:[],visible:!1,label:"Geographic Grouping",loading:!1,tooltipText:""},this.timeConceptOne={options:[],selected:[],hasConceptTwo:!1,label:"None",loading:!1,tooltipText:""},this.timeConceptTwo={options:[],selected:[],label:"None",loading:!1,tooltipText:""},this.geographicArea={options:[],selected:[],label:"None",loading:!1,tooltipText:""},this.otherFilters={filters:[]},this.savedOtherFilterData={filters:[]},this.dataOptionsCollapsed=!1,this.measureCollapsed=!1,this.geoTimePeriodsCollapsed=!1,this.otherFiltersCollapsed=!1,this.bookmarkUrl="",this.isCreatingBookmark=!1,this.loadingBookmark={category:!1,content:!1,indicator:!1,measure:!1,geographicGroups:!1,geographicArea:!1,timePeriod1:!1,timePeriod2:!1,otherFilters:!1,shouldRun:!1,timeConceptTwo:!1},this.bookmarkData={ShouldRun:!1},this.bookmark={enablePopover:!1,popoverTemplate:"",copied:!1},this.bookmarkPromise={},this.categoryPromise={},this.bookmarkTempData=[],this.request={},this.rightActive=!1,this.basicQuery=!0,this.cdcQuery=!1,this.isQuerying=!1,this.indicatorHeader="",this.indicatorDescription="",this.filterAlerts=[],this.bannerAlert=new sU,this.faInfoCircle=_x,this.toggleQueryFilter=!1,this.loadingAdvancedQuery=!1,this.callbacks={clearQuery:{}},this.channel=new BroadcastChannel("mi-search-table"),this.onCategoryChange=()=>{this.geoTimePeriodsCollapsed=!1,this.otherFiltersCollapsed=!1,this.clearContent(),this.clearIndicator(),this.clearMeasure(),this.clearGeographicGrouping(),this.clearGeographicArea(),this.clearTimeConceptOne(),this.clearOtherFilters(),this.content.loading=!0;let e=this.category.selected[0]?this.category.selected[0].id:null;e&&this.filterService.getContentAreas(e).then(e=>{if(this.content.loading=!1,this.content.options=e.options,this.selectIfOneOption(this.content),this.loadingBookmark.content)this.bookmarkTempData=[],this.bookmarkTempData.push(this.bookmarkData.Content),this.content.selected=this.preselect(this.content.options,this.bookmarkTempData),this.loadingBookmark.content=!1;else if(this.toggleQueryFilter&&this.requestSide){var t=this.content.options.find(e=>{var t;return e.id===(null===(t=this.requestSide)||void 0===t?void 0:t.Content)});null!=t&&(this.content.selected=[t])}setTimeout(()=>{this.changeDetector.detectChanges()}),this.onContentAreaChange()},()=>{this.content.loading=!1,this.filterAlerts.push({type:"danger",message:"We were unable to load content areas. This could signify a problem with the website, or with your internet connection. Try choosing a different category. If the error continues to persist, try again later."}),this.changeDetector.markForCheck()})},this.onContentAreaChange=()=>{var e,t;this.geoTimePeriodsCollapsed=!1,this.otherFiltersCollapsed=!1,this.clearIndicator(),this.clearMeasure(),this.clearGeographicGrouping(),this.clearGeographicArea(),this.clearTimeConceptOne(),this.clearOtherFilters(),this.indicator.loading=!0,this.content.selected[0]&&(null===(e=this.content.selected[0])||void 0===e?void 0:e.id)&&this.filterService.getIndicators(null===(t=this.content.selected[0])||void 0===t?void 0:t.id).then(e=>{var t;if(this.indicator.loading=!1,this.indicator.options=e.options,this.selectIfOneOption(this.indicator),this.loadingBookmark.indicator)this.bookmarkTempData=[],this.bookmarkTempData.push(this.bookmarkData.Indicator),this.indicator.selected=this.preselect(this.indicator.options,this.bookmarkTempData),this.loadingBookmark.indicator=!1;else if(this.toggleQueryFilter&&this.requestSide){var n=null===(t=this.indicator.options)||void 0===t?void 0:t.find(e=>{var t;return e.id===(null===(t=this.requestSide)||void 0===t?void 0:t.Indicator)});null!=n&&(this.indicator.selected=[n])}setTimeout(()=>{this.changeDetector.detectChanges()}),this.onIndicatorChange()},()=>{this.indicator.loading=!1,this.filterAlerts.push({type:"danger",message:"We were unable to load indicators. This could signify a problem with the website, or with your internet connection. Try choosing a different content area. If the error continues to persist, try again later."}),this.changeDetector.markForCheck()})},this.onIndicatorChange=(e=!0)=>{this.geoTimePeriodsCollapsed=!1,this.otherFiltersCollapsed=!1,this.clearMeasure(),this.clearGeographicGrouping(),this.clearGeographicArea(),this.clearTimeConceptOne(),this.clearOtherFilters();let t=this.indicator.selected[0]?this.indicator.selected[0].id:null;t&&(this.measure.loading=!0,e&&!this.requestSide&&this.filterService.getIndicator(t).then(e=>{this.displayIndicatorPopupIfOne(e)}),this.filterService.getMeasures(t).then(e=>{var t,n;if(this.measure.loading=!1,this.measure.options=e.options,this.selectIfOneOption(this.measure),this.loadingBookmark.measure)this.bookmarkTempData=[],this.bookmarkTempData.push(this.bookmarkData.MeasureSeq),this.measure.selected=this.preselect(this.measure.options,this.bookmarkTempData),this.loadingBookmark.measure=!1;else if(this.toggleQueryFilter&&this.requestSide){var r=null===(n=null===(t=this.measure)||void 0===t?void 0:t.options)||void 0===n?void 0:n.find(e=>{var t;return e.id===(null===(t=this.requestSide)||void 0===t?void 0:t.MeasureSeq)});null!=r&&(this.measure.selected=[r])}setTimeout(()=>{this.changeDetector.detectChanges()}),this.onMeasureChange()},()=>{this.measure.loading=!1,this.filterAlerts.push({type:"danger",message:"We were unable to load measures. This could signify a problem with the website, or with your internet connection. Try choosing a different indicator. If the error continues to persist, try again later."}),this.changeDetector.markForCheck()}))},this.onMeasureChange=()=>{this.geoTimePeriodsCollapsed=!1,this.otherFiltersCollapsed=!1,this.clearTimeConceptOne(),this.clearGeographicGrouping(),this.clearGeographicArea(),this.clearOtherFilters(),this.timeConceptOneDefer=Xx.defer(),this.geoGroupingDefer=Xx.defer(),this.geographicAreaDefer=Xx.defer(),this.timeConceptTwoDefer=Xx.defer(),this.otherFilterDefer=Xx.defer(),this.timeConceptOne.loading=!0,this.geographicArea.loading=!0;let e=this.measure.selected[0]?this.measure.selected[0].id:null;e?(this.cdcQuery=!!this.measure.selected[0].cdcApiEndpoint,this.filterService.getTimeConceptData(e).then(e=>{var t,n,r;if(this.timeConceptOne.loading=!1,this.timeConceptOne.options=e.timeConceptOne.options,this.timeConceptOne.label=e.timeConceptOne.label,this.timeConceptOne.tooltipText=e.timeConceptOne.description,this.timeConceptOne.selected=[],1===this.timeConceptOne.options.length&&this.selectIfOneOption(this.timeConceptOne),!this.loadingBookmark.timePeriod1&&this.timeConceptOne.options.length>0)for(var i=0;i<this.timeConceptOne.options.length;i++)this.timeConceptOne.selected.includes(this.timeConceptOne.options[i])||this.timeConceptOne.selected.push(this.timeConceptOne.options[i]),this.timeConceptOne.options[i].preSelected=!0;else if((null===(t=this.requestSide)||void 0===t?void 0:t.TimePeriod1Values)&&this.timeConceptOne.options.length>0)for(i=0;i<this.timeConceptOne.options.length;i++)this.timeConceptOne.selected.includes(this.timeConceptOne.options[i])||this.timeConceptOne.selected.push(this.timeConceptOne.options[i]),this.timeConceptOne.options[i].preSelected=!0;else this.loadingBookmark.timePeriod1?(this.timeConceptOne.selected=this.preselect(this.timeConceptOne.options,this.bookmarkData.TimePeriod1Values),this.loadingBookmark.timePeriod1=!1):(null===(n=this.requestSide)||void 0===n?void 0:n.TimePeriod1Values)&&(this.timeConceptOne.selected=this.preselect(this.timeConceptOne.options,null===(r=this.requestSide)||void 0===r?void 0:r.TimePeriod1Values));this.timeConceptOne.selected.length<1&&this.timeConceptOne.options[0]&&(this.timeConceptOne.selected.push(this.timeConceptOne.options[0]),this.timeConceptOne.options[0].preSelected=!0),this.clearTimeConceptTwo(),e.timeConceptTwo?(this.timeConceptOne.hasConceptTwo=!0,this.timeConceptTwo.label=e.timeConceptTwo.label,this.timeConceptTwo.tooltipText=e.timeConceptTwo.description):(this.timeConceptOne.hasConceptTwo=!1,this.timeConceptTwo.label="None",this.timeConceptTwoDefer.resolve()),this.onTimeConceptOneChange(),this.timeConceptOneDefer.resolve(e),this.timeConceptTwoDefer.resolve(e)},()=>{this.timeConceptOne.loading=!1,this.filterAlerts.push({type:"danger",message:"We were unable to load time periods. This could signify a problem with the website, or with your internet connection. Try choosing a different measure. If the error continues to persist, try again later."}),this.changeDetector.markForCheck()})):(this.timeConceptOneDefer.resolve(),this.timeConceptTwoDefer.resolve()),this.filterService.getGeographicGroupings(e).then(t=>{var n,r,i,o;if(t.hasGroupings){if(this.geographicGroups.loading=!1,this.geographicArea.loading=!1,this.geographicGroups.options=t.groupingOptions,this.geographicGroups.tooltipText=t.description,this.geographicGroups.label=t.title,this.geographicGroups.selected=[],this.geographicGroups.visible=!0,this.clearGeographicArea(),this.geographicArea.label="Geographic Area",this.loadingBookmark.geographicGroups){var s=this.bookmarkData.GeographicGroupingSeq,a=this.bookmarkData.GeographicGroupingType;this.geographicGroups.options.forEach(e=>{1===a||"GeographicAreaTypeGrouping"===a?e.id===s&&"GeographicAreaTypeGrouping"===e.extra.type&&(this.geographicGroups.selected.push(e),e.preSelected=!0):Number(e.id.replace(/\D/g,""))===s&&"GeographicAreaType"===e.extra.type&&(this.geographicGroups.selected.push(e),e.preSelected=!0)}),this.loadingBookmark.geographicGroups=!1,this.onGeographicGroupingChange()}else(null===(n=this.requestSide)||void 0===n?void 0:n.GeographicGroupingType)?(s=null===(r=this.requestSide)||void 0===r?void 0:r.GeographicGroupingSeq,a=null===(i=this.requestSide)||void 0===i?void 0:i.GeographicGroupingType,this.geographicGroups.options.forEach(e=>{1===a||"GeographicAreaTypeGrouping"===a?Number(e.id.replace(/\D/g,""))===s&&"GeographicAreaTypeGrouping"===e.extra.type&&(this.geographicGroups.selected.push(e),e.preSelected=!0):Number(e.id.replace(/\D/g,""))===s&&"GeographicAreaType"===e.extra.type&&(this.geographicGroups.selected.push(e),e.preSelected=!0)}),(null===(o=this.geographicGroups.selected)||void 0===o?void 0:o.length)<1&&(this.geographicGroups.selected.push(this.geographicGroups.options[0]),this.geographicGroups.selected[0].preSelected=!0),this.onGeographicGroupingChange()):(this.basicQuery?this.geographicGroups.options.forEach(e=>{(Number(e.id.replace(/\D/g,""))===t.defaultGeographicAreaTypeSeq&&"GeographicAreaType"===e.extra.type||Number(e.id.replace(/\D/g,""))===t.defaultGeographicAreaGroupingTypeSeq&&"GeographicAreaTypeGrouping"===e.extra.type)&&(this.geographicGroups.selected.push(e),e.preSelected=!0)}):this.geographicGroups.options.length>0&&(this.geographicGroups.selected.push(this.geographicGroups.options[0]),this.geographicGroups.selected[0].preSelected=!0),this.onGeographicGroupingChange(),this.changeDetector.markForCheck());this.geoGroupingDefer.resolve(t)}else this.geographicGroups.visible=!1,this.geoGroupingDefer.resolve(t),this.filterService.getGeographicData(e).then(e=>{var t,n,r,i;this.geographicArea.options=e.options,this.geographicArea.tooltipText=e.description,this.geographicArea.label=e.label,this.geographicArea.selected=[],this.selectIfOneOption(this.geographicArea);var o=Z_(this.geographicArea.options,function(e){return e.preSelected});(o||this.loadingBookmark.geographicArea)&&(o||(null===(t=this.requestSide)||void 0===t?void 0:t.GeographicAreaSeqs))?(null===(n=this.requestSide)||void 0===n?void 0:n.GeographicAreaSeqs)?this.geographicArea.selected=this.preselect(this.geographicArea.options,null===(r=this.requestSide)||void 0===r?void 0:r.GeographicAreaSeqs):this.bookmarkData.GeographicAreaSeqs&&(this.geographicArea.selected=this.preselect(this.geographicArea.options,this.bookmarkData.GeographicAreaSeqs),this.loadingBookmark.geographicArea=!1):this.geographicArea.selected=this.geographicArea.options,(null===(i=this.geographicArea.selected)||void 0===i?void 0:i.length)<1&&(this.geographicArea.selected=this.geographicArea.options),this.geographicArea.loading=!1,this.geographicAreaDefer.resolve()},()=>{this.geographicArea.loading=!1,this.filterAlerts.push({type:"danger",message:"We were unable to load geographic areas. This could signify a problem with the website, or with your internet connection. Try choosing a different measure. If the error continues to persist, try again later."}),this.changeDetector.markForCheck()}),setTimeout(()=>{this.changeDetector.detectChanges()}),this.onGeographicAreaChange()}),this.determineOtherFiltersOptions(),this.loadingBookmark.shouldRun&&Xx.all([this.timeConceptOneDefer.promise,this.geoGroupingDefer.promise,this.geographicAreaDefer.promise,this.timeConceptTwoDefer.promise,this.otherFilterDefer.promise]).then(()=>{setTimeout(()=>{this.changeDetector.detectChanges()}),0===this.filterAlerts.length&&this.runQuery(),this.loadingBookmark.shouldRun=!1})},this.onGeographicGroupingChange=()=>{var e,t;if(this.geographicGroups.selected.length){var n=bE(this.geographicGroups.selected).id,r=null===(e=bE(this.measure.selected))||void 0===e?void 0:e.id,i=null===(t=this.geographicGroups.options.find(e=>e.id===n))||void 0===t?void 0:t.extra.type;n&&i&&(this.clearGeographicArea(),this.geographicArea.loading=!0,n=n.replace(/\D/g,""),this.filterService.getGeographicDataFromGrouping(r,n,i).then(e=>{var t,n,r,i,o;this.geographicArea.loading=!1,this.geographicArea.options=e.options,this.geographicArea.tooltipText=e.description,this.geographicArea.label=e.label;var s=Z_(this.geographicArea.options,function(e){return e.preSelected});(null===(t=this.requestSide)||void 0===t?void 0:t.GeographicAreaSeqs)?this.geographicArea.selected=oU.cloneDeep(this.preselect(this.geographicArea.options,null===(n=this.requestSide)||void 0===n?void 0:n.GeographicAreaSeqs)):this.bookmarkData.GeographicAreaSeqs?(this.geographicArea.selected=oU.cloneDeep(this.preselect(this.geographicArea.options,this.bookmarkData.GeographicAreaSeqs)),this.loadingBookmark.geographicArea=!1):s||this.loadingBookmark.geographicArea?!s&&(null===(r=this.requestSide)||void 0===r?void 0:r.GeographicAreaSeqs)&&this.geographicArea.options&&(this.geographicArea.selected=oU.cloneDeep(this.geographicArea.options[(null===(i=this.requestSide)||void 0===i?void 0:i.GeographicAreaSeqs)-1])):this.geographicArea.selected=oU.cloneDeep(this.geographicArea.options),(null===(o=this.geographicArea.selected)||void 0===o?void 0:o.length)<1&&(this.geographicArea.selected=this.geographicArea.options),this.onGeographicAreaChange(),this.geographicAreaDefer.resolve()}))}this.loadingAdvancedQueryDefer&&this.loadingAdvancedQueryDefer.resolve(),Xx.all([this.geoGroupingDefer.promise,this.geographicAreaDefer.promise]).then(()=>{this.determineOtherFiltersOptions()})},this.onGeographicAreaChange=()=>{this.determineOtherFiltersOptions()},this.onTimeConceptOneChange=()=>{let e=this.timeConceptOne.selected;if(this.timeConceptOne.hasConceptTwo){this.timeConceptTwo.loading=!0;for(var t=[],n=0;n<e.length;n++)t.push(e[n].id);t.length>0?this.filterService.getTimeConceptTwoData(this.measure.selected[0].id,t).then(e=>{var t,n,r;this.timeConceptTwo.loading=!1,this.timeConceptTwo.options=e.options,1===this.timeConceptTwo.options.length&&this.selectIfOneOption(this.timeConceptTwo);var i=Z_(this.timeConceptTwo.options,function(e){return!0===e.preSelected});!this.basicQuery||this.loadingBookmark.timeConceptTwo||i||(this.timeConceptTwo.selected.push(this.timeConceptTwo.options[0]),this.timeConceptTwo.options[0].preSelected=!0),!this.basicQuery||(null===(t=this.requestSide)||void 0===t?void 0:t.TimeConceptTwo)||i?this.loadingBookmark.timePeriod2&&e.options.length?(this.timeConceptTwo.selected=this.preselect(this.timeConceptTwo.options,this.bookmarkData.TimePeriod2Values),this.loadingBookmark.timePeriod2=!1):(null===(n=this.requestSide)||void 0===n?void 0:n.TimePeriod2Values.length)&&e.options.length&&(this.timeConceptTwo.selected=this.preselect(this.timeConceptTwo.options,null===(r=this.requestSide)||void 0===r?void 0:r.TimePeriod2Values),this.timeConceptTwo.selected.length<1&&(this.timeConceptTwo.selected.push(this.timeConceptTwo.options[0]),this.timeConceptTwo.options[0].preSelected=!0)):(this.timeConceptTwo.selected.push(this.timeConceptTwo.options[0]),this.timeConceptTwo.options[0].preSelected=!0),this.onTimeConceptTwoChange(),this.timeConceptTwoDefer.resolve()},()=>{this.timeConceptTwo.loading=!1,this.filterAlerts.push({type:"danger",message:"We were unable to load time periods. This could signify a problem with the website, or with your internet connection. Try choosing a different measure. If the error continues to persist, try again later."}),this.changeDetector.markForCheck()}):(this.timeConceptTwo.loading=!1,this.timeConceptTwoDefer.resolve(),this.timeConceptTwo.options=[])}Xx.all([this.timeConceptOneDefer.promise,this.timeConceptTwoDefer.promise]).then(()=>{this.determineOtherFiltersOptions()})},this.onTimeConceptTwoChange=()=>{Xx.all([this.timeConceptOneDefer.promise,this.timeConceptTwoDefer.promise]).then(()=>{this.determineOtherFiltersOptions()})},this.onoffKeyDown=e=>{13===e.keyCode&&this.toggleQuerySide(e)},this.timeConceptOneDefer=Xx.defer(),this.geoGroupingDefer=Xx.defer(),this.geographicAreaDefer=Xx.defer(),this.timeConceptTwoDefer=Xx.defer(),this.otherFilterDefer=Xx.defer(),this.filterController=this}ngOnInit(){this.setup(),this.activate(),this.createSearchTableListener()}ngOnDestroy(){this.geographicAreaService.onDestroy()}ngOnChanges(e){(this.rightPanelVisible||this.leftPanelVisible)&&this.toggleQuerySide(this.rightPanelVisible?"right":"left")}activate(){this.getData(),this.getTooltipsText();var e=this.getParameterByName("bookmark",null);e&&(this.bookmarkPromise=this.filterService.getBookmarks(e).then(e=>{this.bookmarkData=e,this.checkBookmarkLoading(this.bookmarkData),this.loadingBookmark.shouldRun=this.bookmarkData.ShouldRun,this.bookmarkTempData.push(this.bookmarkData.Category),this.basicQuery=e.IsBasicQuery},()=>{this.filterAlerts.push({type:"danger",message:"We were unable to load your bookmark."}),this.changeDetector.markForCheck()}),Xx.all([this.bookmarkPromise,this.categoryPromise]).then(()=>{this.category.selected=this.preselect(this.category.options,this.bookmarkTempData),this.loadingBookmark.category=!1,this.onCategoryChange()}))}checkBookmarkLoading(e){if(e.Category&&(this.loadingBookmark.category=!0),e.Content&&(this.loadingBookmark.content=!0),e.Indicator&&(this.loadingBookmark.indicator=!0),e.MeasureSeq&&(this.loadingBookmark.measure=!0),e.GeographicGroupingSeq&&(this.loadingBookmark.geographicGroups=!0),e.GeographicAreaSeqs&&0!==e.GeographicAreaSeqs.length&&(this.loadingBookmark.geographicArea=!0),e.TimePeriod1Values&&0!==e.TimePeriod1Values.length&&(this.loadingBookmark.timePeriod1=!0),e.TimePeriod2Values&&0!==e.TimePeriod2Values.length&&(this.loadingBookmark.timePeriod2=!0),e.OtherFilterValues)for(var t=e.OtherFilterValues,n=1;n<=10;n++)t["OtherFilter"+[n]+"Text"]&&0!==t["OtherFilter"+[n]+"Text"].length&&(this.loadingBookmark.otherFilters=!0)}loadFilterQuery(e,t,n){e&&(n||(this.clearContent(),this.clearIndicator(),this.clearMeasure(),this.clearGeographicGrouping(),this.clearGeographicArea(),this.clearTimeConceptOne(),this.clearTimeConceptTwo(),this.clearOtherFilters(),this.category.selected=[],this.category.loading=!0,this.getData()),this.dataOptionsCollapsed=!1,this.measureCollapsed=!1,this.geoTimePeriodsCollapsed=!1,this.otherFiltersCollapsed=!1,window.scrollTo(0,0),this.bookmarkTempData=[],this.bookmarkData=e,this.checkBookmarkLoading(e),this.bookmarkTempData.push(this.bookmarkData.Category),Xx.all([this.bookmarkPromise,this.categoryPromise]).then(()=>{j_(this.category.options,function(e){e.preSelected=!1}),this.category.selected=this.preselect(this.category.options,this.bookmarkTempData),this.loadingBookmark.category=!1}),t&&this.toggleQuerySide(t))}getData(){this.categoryPromise=this.filterService.getCategories().then(e=>{this.category.options=e.options,this.category.loading=!1},()=>{this.filterAlerts.push({type:"danger",message:"We were unable to load Category information. This could signify a problem with the website, or with your internet connection."}),this.changeDetector.markForCheck()})}getTooltipsText(){this.filterService.getTooltips().then(e=>{this.category.tooltipText=e.CategoryTooltip,this.content.tooltipText=e.ContentTooltip,this.indicator.tooltipText=e.indicatorTooltip,this.measure.tooltipText=e.MeasureTooltip},()=>{this.filterAlerts.push({type:"danger",message:"We were unable to load Tooltip information. This could signify a problem with the website, or with your internet connection."}),this.changeDetector.markForCheck()})}clearAlerts(){this.filterAlerts=[],this.changeDetector.markForCheck()}closeAlert(e){this.filterAlerts.splice(this.filterAlerts.indexOf(e),1)}closeBanner(){this.bannerAlert=new sU}clearQuery(){var e=this.getSide();this.indexController.mapsLinked=!1,this.clearAlerts(),this.clearBookmarkFromUrl(),this.clearContent(),this.clearIndicator(),this.clearMeasure(),this.clearGeographicGrouping(),this.clearGeographicArea(),this.clearTimeConceptOne(),this.clearTimeConceptTwo(),this.clearOtherFilters(),this.dataService.clearPreviousQuery(e),this.request[e]={},this.category.selected=[],this.category.loading=!0,this.getData(),window.setTimeout(function(){})}registerClearQueryCallback(e,t){this.callbacks.clearQuery[t]=()=>e}validateBasicQuery(){var e,t,n,r,i,o,s,a;(null===(t=null===(e=this.category)||void 0===e?void 0:e.selected)||void 0===t?void 0:t.length)?(null===(r=null===(n=this.content)||void 0===n?void 0:n.selected)||void 0===r?void 0:r.length)?(null===(o=null===(i=this.indicator)||void 0===i?void 0:i.selected)||void 0===o?void 0:o.length)?(null===(a=null===(s=this.measure)||void 0===s?void 0:s.selected)||void 0===a?void 0:a.length)||this.filterAlerts.push({type:"danger",message:"Please select a Measure."}):this.filterAlerts.push({type:"danger",message:"Please select an Indicator."}):this.filterAlerts.push({type:"danger",message:"Please select a Content Area."}):this.filterAlerts.push({type:"danger",message:"Please select a Category."}),this.changeDetector.markForCheck()}validateGeographyAndTimePeriod(){var e,t,n,r,i,o,s,a,l,c,A,u,h,d,p,f;this.filterAlerts.length>0||((null===(t=null===(e=this.timeConceptOne)||void 0===e?void 0:e.options)||void 0===t?void 0:t.length)&&!(null===(r=null===(n=this.timeConceptOne)||void 0===n?void 0:n.selected)||void 0===r?void 0:r.length)&&(this.basicQuery&&0===this.filterAlerts.length?this.filterAlerts.push({type:"danger",message:"This measure is not configured for a basic query. Please use an advanced query, or choose a different measure."}):this.basicQuery||this.filterAlerts.push({type:"danger",message:"Please select at least one "+(null===(i=this.timeConceptOne)||void 0===i?void 0:i.label)+"."})),(null===(o=this.timeConceptOne)||void 0===o?void 0:o.hasConceptTwo)&&(null===(a=null===(s=this.timeConceptOne)||void 0===s?void 0:s.selected)||void 0===a?void 0:a.length)&&(null===(c=null===(l=this.timeConceptTwo)||void 0===l?void 0:l.options)||void 0===c?void 0:c.length)&&!(null===(u=null===(A=this.timeConceptTwo)||void 0===A?void 0:A.selected)||void 0===u?void 0:u.length)&&(this.basicQuery&&0===this.filterAlerts.length?this.filterAlerts.push({type:"danger",message:"This measure is not configured for a basic query. Please use an advanced query, or choose a different measure."}):this.basicQuery||this.filterAlerts.push({type:"danger",message:"Please select at least one "+this.timeConceptTwo.label+"."})),(null===(d=null===(h=this.geographicArea)||void 0===h?void 0:h.options)||void 0===d?void 0:d.length)&&!(null===(f=null===(p=this.geographicArea)||void 0===p?void 0:p.selected)||void 0===f?void 0:f.length)&&(this.basicQuery&&0===this.filterAlerts.length?this.filterAlerts.push({type:"danger",message:"This measure is not configured for a basic query. Please use an advanced query, or choose a different measure."}):this.basicQuery||this.filterAlerts.push({type:"danger",message:"Please select at least one "+this.geographicArea.label+"."}))),this.changeDetector.markForCheck()}validateOtherFilters(){var e;null===(e=this.otherFilters)||void 0===e||e.filters.forEach(e=>{e.selected.length||this.basicQuery||0!==this.filterAlerts.length||this.filterAlerts.push({type:"danger",message:"Please select at least one "+e.label+"."})})}validateQuery(){var e,t,n,r,i,o,s,a,l,c,A,u,h,d;this.validateBasicQuery(),0===this.filterAlerts.length&&(this.basicQuery&&this.validateQueryForOtherFilters(),0===this.filterAlerts.length&&(((null===(t=null===(e=this.geographicGroups)||void 0===e?void 0:e.options)||void 0===t?void 0:t.length)>0&&0===(null===(r=null===(n=this.geographicGroups)||void 0===n?void 0:n.selected)||void 0===r?void 0:r.length)&&this.basicQuery||0===(null===(o=null===(i=this.timeConceptOne)||void 0===i?void 0:i.selected)||void 0===o?void 0:o.length)&&this.basicQuery)&&this.filterAlerts.push({type:"danger",message:"This measure is not configured for a basic query. Please use an advanced query, or choose a different measure."}),(null===(a=null===(s=this.geographicGroups)||void 0===s?void 0:s.options)||void 0===a?void 0:a.length)>0&&0===(null===(c=null===(l=this.geographicGroups)||void 0===l?void 0:l.selected)||void 0===c?void 0:c.length)&&!this.basicQuery&&this.filterAlerts.push({type:"danger",message:"Please select a "+(null===(A=this.geographicGroups)||void 0===A?void 0:A.label)+"."}),0!==(null===(h=null===(u=this.timeConceptOne)||void 0===u?void 0:u.selected)||void 0===h?void 0:h.length)||this.basicQuery||this.filterAlerts.push({type:"danger",message:"Please select at least one "+(null===(d=this.timeConceptOne)||void 0===d?void 0:d.label)+"."}),this.validateForBrokenQueries(),this.validateGeographyAndTimePeriod(),this.validateOtherFilters(),this.changeDetector.markForCheck()))}validateQueryForOtherFilters(){this.validateBasicQuery(),0===this.filterAlerts.length&&this.validateGeographyAndTimePeriod()}validateForBrokenQueries(){var e,t,n,r,i,o,s,a,l,c,A;((null===(e=this.timeConceptOne)||void 0===e?void 0:e.hasConceptTwo)&&0===(null===(n=null===(t=this.timeConceptTwo)||void 0===t?void 0:t.options)||void 0===n?void 0:n.length)||(null===(r=this.geographicGroups)||void 0===r?void 0:r.visible)&&0===(null===(o=null===(i=this.geographicGroups)||void 0===i?void 0:i.options)||void 0===o?void 0:o.length)||0===(null===(a=null===(s=this.timeConceptOne)||void 0===s?void 0:s.options)||void 0===a?void 0:a.length)||0===(null===(c=null===(l=this.geographicArea)||void 0===l?void 0:l.options)||void 0===c?void 0:c.length))&&0===(null===(A=this.filterAlerts)||void 0===A?void 0:A.length)&&this.filterAlerts.push({type:"danger",message:"This measure is currently broken. Please choose a different measure."})}runQuery(){setTimeout(()=>{this.isQuerying=!0,this.changeDetector.detectChanges()}),this.clearAlerts(),this.loadingBookmark.shouldRun||this.clearBookmarkFromUrl(),this.websiteMetricService.createWebsiteMetric(new hx({MeasureSeq:this.measure.selected[0].id,ContentAreaSeq:this.content.selected[0].id,IndicatorSeq:this.indicator.selected[0].id})).subscribe(()=>{this.basicQuery||this.websiteMetricService.createWebsiteMetricAction(new ux({Action:px.AdvancedQueryAction,Tab:dx.Table,Information:this.measure.selected[0].name})).subscribe()}),this.cdcQuery?this.cdcApiService.getResultSet(this.measure,this.timeConceptOne,this.getSide()).pipe(T(e=>(e.measure=this.measure.selected[0],e.measure&&(e.measure.measureSeq=this.measure.selected[0].id,e.measure.measureDescription=this.measure.selected[0].description,e.measure.measureTitle=this.measure.selected[0].title,e.measure.measureName=this.measure.selected[0].name),e)),ef(e=>{var t;let n=new sx;n.Category=this.category.selected[0].id,n.Content=this.content.selected[0].id,n.Indicator=this.indicator.selected[0].id,n.MeasureSeq=this.measure.selected[0].id,n.IsCdcQuery=this.cdcQuery,n.GeographicAreaSeqs=null===(t=null==e?void 0:e.queryOptions)||void 0===t?void 0:t.geographicAreaIds,this.dataService.setLastQueryRequest(n),this.dataService.previousQueryResponse.next(e),"left"===this.getSide()?this.dataService.leftQueryResponse.next(e):"right"===this.getSide()&&this.dataService.rightQueryResponse.next(e)}),WE(e=>{const t="This could signify a problem with the website, or with your internet connection. Please try again later. If the error continues to persist, contact the administrator.";return"geographicAreasMapError"===e.errorType?this.filterAlerts.push({type:"danger",message:"There was an error retrieving the geographic map. "+t}):"cdcApiEndpointError"===e.errorType&&this.filterAlerts.push({type:"danger",message:"We were unable to load data. "+t}),console.error((null==e?void 0:e.message)||e),cp(e)}),lF(()=>{setTimeout(()=>{this.isQuerying=!1,this.changeDetector.detectChanges()})})).subscribe():Xx.all([this.geoGroupingDefer.promise,this.timeConceptOneDefer.promise]).then(()=>{0===this.filterAlerts.length?Xx.all([this.geographicAreaDefer.promise,this.timeConceptTwoDefer.promise,this.otherFilterDefer.promise]).then(()=>{0===this.filterAlerts.length&&this.validateQuery(),this.filterAlerts.length>0?setTimeout(()=>{this.isQuerying=!1,this.changeDetector.detectChanges()}):this.dataService.runQuery(this.category,this.content,this.indicator,this.measure,this.timeConceptOne,this.timeConceptTwo,this.geographicGroups,this.geographicArea,this.otherFilters,this.getSide()).pipe(WE(e=>{const t="This could signify a problem with the website, or with your internet connection. Please try again later. If the error continues to persist, contact the administrator.";return"geographicAreasMapError"===e.errorType?this.filterAlerts.push({type:"danger",message:"There was an error retrieving the geographic map. "+t}):"loadingDataError"===e.errorType&&this.filterAlerts.push({type:"danger",message:"We were unable to load data. "+t}),console.error((null==e?void 0:e.message)||e),cp(e)}),lF(()=>{this.isQuerying=!1,this.changeDetector.detectChanges()})).subscribe()}):setTimeout(()=>{this.isQuerying=!1,this.changeDetector.detectChanges()})})}createBookmark(){this.bookmark.copied=!1,this.isCreatingBookmark=!0;const e=this.getParameterByName("bookmark",null);if(e)return this.isCreatingBookmark=!1,this.bookmarkUrl=location.origin+this.baseUrl+"?bookmark="+e,void(this.bookmark.enablePopover=!0);this.dataService.createBookmark(this.category,this.content,this.indicator,this.measure,this.timeConceptOne,this.timeConceptTwo,this.geographicGroups,this.geographicArea,this.otherFilters,this.basicQuery,this.cdcQuery)}clearCategory(){this.category.selected=[]}clearContent(){this.content.selected=[],this.content.options=[]}clearIndicator(){this.indicator.selected=[],this.indicator.options=[]}clearMeasure(){this.measure.selected=[],this.measure.options=[]}clearGeographicGrouping(){this.geographicGroups.selected=[],this.geographicGroups.options=[],this.geographicGroups.tooltipText="Geographic Grouping"}clearGeographicArea(){this.geographicArea.selected=[],this.geographicArea.options=[],this.geographicArea.label="Geographic Area",this.geographicArea.tooltipText="Geographic Area"}clearTimeConceptOne(){this.timeConceptOne.selected=[],this.timeConceptOne.options=[],this.timeConceptOne.tooltipText=""}clearTimeConceptTwo(){this.timeConceptTwo.selected=[],this.timeConceptTwo.options=[],this.timeConceptTwo.tooltipText=""}clearOtherFilters(){this.otherFilters.filters=[],this.savedOtherFilterData.filters=[]}selectIfOneOption(e){var t;1===(null===(t=e.options)||void 0===t?void 0:t.length)&&(e.selected=[e.options[0]],e.selected.preSelected=!0)}displayIndicatorPopupIfOne(e){var t;1===e.IndicatorPopupTypeSeq||3===e.IndicatorPopupTypeSeq?(this.bannerAlert.type="info",this.bannerAlert.message=null!==(t=e.IndicatorPopupDescription)&&void 0!==t?t:"",this.changeDetector.markForCheck()):2===e.IndicatorPopupTypeSeq&&e.IndicatorPopupDescription&&(this.indicatorHeader=e.IndicatorName,this.indicatorDescription=e.IndicatorPopupDescription,this.modalService.hasOpenModals()||this.openIndicatorModal(e.IndicatorName,e.IndicatorPopupDescription))}closeBookmark(){this.bookmark.enablePopover=!1,this.bookmark.copied=!1}copyBookmark(){if(navigator.clipboard&&window.isSecureContext)navigator.clipboard.writeText(this.bookmarkUrl);else{let e=document.createElement("textarea");e.value=this.bookmarkUrl,e.style.position="fixed",e.style.left="-999999px",e.style.top="-999999px",document.body.appendChild(e),e.focus(),e.select(),new Promise((t,n)=>{document.execCommand("copy")?t():n(),e.remove()})}this.bookmark.copied?(this.bookmark.copied=!1,setTimeout(()=>this.bookmark.copied=!0,100)):this.bookmark.copied=!0}toggleQuerySide(e){"string"!=typeof e&&e.preventDefault(),this.loadingAdvancedQuery=!0,this.changeDetector.detectChanges(),this.loadingAdvancedQueryDefer=Xx.defer(),this.rightActive="string"==typeof e?"right"===e:!this.rightActive,this.requestSide=this.getRequestSide(),this.toggleQueryFilter=!0,this.category.selected=this.requestSide?[this.category.options.find(e=>{var t;return e.id===(null===(t=this.requestSide)||void 0===t?void 0:t.Category)})]:[],this.onCategoryChange(),this.changeDetector.markForCheck(),Xx.all([this.loadingAdvancedQueryDefer]).then(()=>{this.loadingAdvancedQuery=!1,this.changeDetector.markForCheck()})}closeQueryPanel(){this.dataOptionsCollapsed=!0}toggleQuery(){this.basicQuery=!this.basicQuery,this.basicQuery?this.determineOtherFilterPromise():this.determineOtherFiltersOptions(),this.basicQuery&&this.resetBasicQueryOptions(),this.request.length>1&&(this.requestSide=this.getRequestSide(),this.requestSide.IsBasicQuery=this.basicQuery)}getRequestSide(){return!this.request.right&&this.request.left?this.request.right=oU.cloneDeep(this.request.left):this.request.right&&!this.request.left&&(this.request.left=oU.cloneDeep(this.request.right)),this.rightActive?this.request.right:this.request.left}resetBasicQueryOptions(){this.measure.selected.length>0&&this.onMeasureChange()}querySuccess(e,t){this.request[t]=e,this.isQuerying=!1,this.closeQueryPanel(),this.changeDetector.detectChanges()}getSide(){return this.rightActive?"right":"left"}queryEnd(){this.isQuerying=!1}geographicGroupingEquals(e,t){var n=e.length===t.length;if(n)for(var r=0;r<e.length;r++)if(e[r].id!==t[r].id||e[r].extra!==t[r].extra){n=!1;break}return n}openIndicatorModal(e,t){this.modalService.open(this.indicatorModalRef,{size:"lg",windowClass:"indicator-modal"})}setup(){this.determineOtherFiltersOptions=S_(()=>{if(!this.measure.selected[0]||!this.measure.selected[0].id)return void this.otherFilterDefer.resolve();let e=bE(this.measure.selected).id;this.otherFilterPromise(e).finally(()=>{this.otherFilterDefer.resolve()})},250),this.otherFilterPromise=e=>this.filterService.getOtherFilters(e).then(e=>{this.otherFilters.filters=e.filters.map(e=>{var t,n,r=[];if(this.loadingBookmark.otherFilters)r=this.preselect(e.options,this.bookmarkData.OtherFilterValues[e.columnName]);else if(this.toggleQueryFilter&&null==this.requestSide)r=[e.options[0]];else if(this.toggleQueryFilter&&(null===(t=this.requestSide)||void 0===t?void 0:t.OtherFilterValues)){var i=(null===(n=this.requestSide)||void 0===n?void 0:n.OtherFilterValues).find(t=>t.Key==e.columnName);(r=this.preselect(e.options,i.Value)).length<1&&(r=[e.options[0]])}else r=[e.options[0]];return{selected:r,options:e.options,label:e.label,tooltipText:e.description,columnName:e.columnName}}),this.savedOtherFilterData.filters=oU.cloneDeep(this.otherFilters.filters)},()=>{this.filterAlerts.push({type:"danger",message:"We were unable to load Other Filters. This could signify a problem with the website, or with your internet connection. Try choosing a different measure. If the error continues to persist, try again later."})}),this.determineOtherFilterPromise=()=>this.dataService.determineOtherFiltersOptions(this.category,this.content,this.indicator,this.measure,this.timeConceptOne,this.timeConceptTwo,this.geographicGroups,this.geographicArea,this.otherFilters),this.dataService.getBookmark().subscribe(e=>{this.isCreatingBookmark=!1,this.bookmarkUrl=e;const t=new URL(e).searchParams.get("bookmark");t&&this.updateUrlWithBookmark(t),this.bookmark.enablePopover=!0,window.setTimeout(()=>{this.isCreatingBookmark=!1},50)},e=>{this.isCreatingBookmark=!1}),this.changeDetector.markForCheck()}preselect(e,t){return null==e?void 0:e.filter(e=>t.includes(e.id))}getParameterByName(e,t){t||(t=window.location.href),e=e.replace(/[\[\]]/g,"\\$&");var n=new RegExp("[?&]"+e+"(=([^&#]*)|&|#|$)").exec(t);return n?n[2]?decodeURIComponent(n[2].replace(/\+/g," ")):"":null}populateFilter(e){this.category.selected=e.Category,this.onCategoryChange(),this.content.selected=e.Content,this.onContentAreaChange(),this.indicator.selected=e.Indicator,this.onIndicatorChange(),this.measure.selected=e.Measure,this.onMeasureChange()}createSearchTableListener(){this.channel.addEventListener("message",e=>{this.populateFilter(e.data.sortedData)})}clearBookmarkFromUrl(){this.bookmarkUrl="",this.bookmark.enablePopover=!1,this.bookmark.copied=!1;const e=new URL(window.location.href);e.searchParams.has("bookmark")&&(e.searchParams.delete("bookmark"),this.location.replaceState(e.pathname+e.search))}updateUrlWithBookmark(e){const t=new URL(window.location.href);t.searchParams.get("bookmark")!==e&&(t.searchParams.set("bookmark",e),this.location.replaceState(t.pathname+t.search))}hasQueryResults(){const e=this.getSide();return!!(this.request[e]&&Object.keys(this.request[e]).length>0)}getCurrentSelectedTab(){if(this.panelComponents&&this.panelComponents.length>0){const e=this.panelComponents.first;if(e&&e.selectedTab)return e.selectedTab}return"selected-table"}getCurrentChartType(){const e=this.getSide();if(this.panelComponents&&this.panelComponents.length>0){const t=this.panelComponents.find(t=>t.panelSide===e);if(t&&t.getCurrentChartType)return t.getCurrentChartType()}return null}openCitationModal(){var e,t,n,r,i,o,s,a,l,c,A,u,h,d,p,f,g,m;if(!this.hasQueryResults()||!this.measure.selected.length)return;const y=this.getCurrentChartType();if(this.websiteMetricService.createWebsiteMetricAction(new ux({Action:px.GenerateCitationAction,Tab:this.getCurrentSelectedTab(),Information:this.measure.selected[0].name})).subscribe(),this.cdcQuery){const d={Category:null===(e=this.category.selected[0])||void 0===e?void 0:e.id,Content:null===(t=this.content.selected[0])||void 0===t?void 0:t.id,Indicator:null===(n=this.indicator.selected[0])||void 0===n?void 0:n.id,MeasureSeq:null===(r=this.measure.selected[0])||void 0===r?void 0:r.id,TimePeriod1Values:this.timeConceptOne.selected.map(e=>e.name||e.title||e.toString()),TimePeriod2Values:this.timeConceptTwo.selected.map(e=>e.name||e.title||e.toString()),GeographicGroupingSeq:(null===(i=this.geographicGroups.selected[0])||void 0===i?void 0:i.id)||-1,GeographicGroupingType:"GeographicAreaTypeGrouping"===(null===(s=null===(o=this.geographicGroups.selected[0])||void 0===o?void 0:o.extra)||void 0===s?void 0:s.type)?1:2,GeographicAreaSeqs:this.geographicArea.selected.map(e=>e.id),IsBasicQuery:this.basicQuery,IsCdcQuery:this.cdcQuery,OtherFilterValues:this.otherFilters.filters.map(e=>({Key:e.columnName,Value:e.selected.map(e=>e.name||e.title||e.toString())}))},p=this.modalService.open(mU,{size:"lg"});p.componentInstance.queryData=d,p.componentInstance.measureSeq=null===(a=this.measure.selected[0])||void 0===a?void 0:a.id,p.componentInstance.geographicAreaTypeSeq="GeographicAreaType"===(null===(c=null===(l=this.geographicGroups.selected[0])||void 0===l?void 0:l.extra)||void 0===c?void 0:c.type)?parseInt((null===(u=null===(A=this.geographicGroups.selected[0])||void 0===A?void 0:A.id)||void 0===u?void 0:u.replace(/\D/g,""))||"0"):0,p.componentInstance.selectedTab=this.getCurrentSelectedTab(),p.componentInstance.cdcApiEndpoint=null===(h=this.measure.selected[0])||void 0===h?void 0:h.cdcApiEndpoint,p.componentInstance.isFromCdcQuery=!0,p.componentInstance.currentChartType=y}else{const e=this.dataService.formatQueryRequest(this.category,this.content,this.indicator,this.measure,this.timeConceptOne,this.timeConceptTwo,this.geographicGroups,this.geographicArea,this.otherFilters,this.basicQuery),t=this.modalService.open(mU,{size:"lg"});t.componentInstance.queryData=e,t.componentInstance.measureSeq=null===(d=this.measure.selected[0])||void 0===d?void 0:d.id,t.componentInstance.geographicAreaTypeSeq="GeographicAreaType"===(null===(f=null===(p=this.geographicGroups.selected[0])||void 0===p?void 0:p.extra)||void 0===f?void 0:f.type)?parseInt((null===(m=null===(g=this.geographicGroups.selected[0])||void 0===g?void 0:g.id)||void 0===m?void 0:m.replace(/\D/g,""))||"0"):0,t.componentInstance.selectedTab=this.getCurrentSelectedTab(),t.componentInstance.isFromCdcQuery=!1,t.componentInstance.currentChartType=y}}}return e.\u0275fac=function(t){return new(t||e)(Zs(cx),Zs(Ax),Zs("BASE_URL"),Zs(Py),Zs(Yg),Zs(yc),Zs(wk),Zs(lx),Zs(iQ),Zs(Ku))},e.\u0275cmp=Ge({type:e,selectors:[["mi-filters"]],viewQuery:function(e,t){if(1&e&&(yA(HO,5,vg),yA(RO,5),yA(MO,5)),2&e){let e;mA(e=vA())&&(t.filterCollapse=e.first),mA(e=vA())&&(t.indicatorModalRef=e.first),mA(e=vA())&&(t.panelComponents=e)}},inputs:{indexController:"indexController",toggleFilterExpander:"toggleFilterExpander",rightPanelVisible:"rightPanelVisible",leftPanelVisible:"leftPanelVisible",currentSelectedTab:"currentSelectedTab"},features:[At],decls:50,vars:60,consts:[[4,"ngFor","ngForOf"],[4,"ngIf"],["tabindex","0","title-text","Click to show or hide the data options section.","heading","Data Options","id","dataOptionsSection","header-id","dataOptionsHeader","fa-icon","fa-cogs","type","button",1,"collapseHeader","bottomMargin","cursorPointer",3,"click"],["transform","shrink-1",3,"icon"],[1,"dataOptionsHeader"],["data-fa-transform","down-8",3,"icon","rotate"],[1,"dataOptionsContent",3,"ngbCollapse","ngbCollapseChange"],["filterCollapse","ngbCollapse"],[1,"row"],[1,"required-text","col-12","col-sm-4"],["id","measureSection",1,"row"],["label","Categories","button-label","a Category",1,"col-lg-3","col-md-6","col-sm-6","col-12",3,"list","tooltipText","selected","singleSelection","loading","selectedChange","handleChanged"],["label","Content Areas","button-label","a Content Area",1,"col-lg-3","col-md-6","col-sm-6","col-12",3,"list","tooltipText","selected","singleSelection","loading","selectedChange","handleChanged"],["label","Indicators","button-label","an Indicator",1,"col-lg-3","col-md-6","col-sm-6","col-12",3,"list","tooltipText","selected","singleSelection","loading","selectedChange","handleChanged"],["label","Measures","button-label","a Measure",1,"col-lg-3","col-md-6","col-sm-6","col-12",3,"list","tooltipText","selected","singleSelection","loading","selectedChange","handleChanged"],[1,"clearfix"],[1,"row","bottomMargin"],[1,"leftMargin","d-block","d-sm-none"],[1,"required-text","topMargin"],[1,"col-8","col-sm-12"],["class","col-sm-4 d-none d-sm-block parent-vertical-center",4,"ngIf"],[1,"float-right"],["type","button","id","run-query",1,"btn","btn-success","data-options-button",3,"disabled","click"],["class","spinner-border spinner-border-sm","aria-hidden","true",4,"ngIf"],["type","button","id","toggle-query",1,"btn","btn-primary","data-options-button",3,"disabled","click"],["type","button","id","clear-query",1,"btn","btn-outline-secondary","data-options-button",3,"disabled","click"],["type","button","id","saveQuery","placement","top-right","popoverTitle","To share your query results use this link:",1,"btn","btn-outline-secondary","data-options-button",3,"disabled","ngbPopover","autoClose","click"],["saveQuery","ngbPopover"],["type","button","id","generate-citation",1,"btn","btn-outline-secondary","data-options-button",3,"disabled","click"],[1,"fas","fa-quote-left"],["id","panelArea",1,"row"],["id","left-display-Panel",1,"bottomMargin",3,"ngClass","hidden"],[3,"indexController","filterController","panelSide"],["id","right-display-Panel",1,"bottomMargin",3,"ngClass","hidden"],["indicatorModal",""],["bookmarkTemplate",""],[3,"type","closed"],["aria-hidden","true",1,"faIcon",3,"icon"],[1,"bannerMessage",3,"innerHTML"],[3,"hidden"],["title-text","Click to show or hide geography and time period filters.","heading","Geography & Time Periods","id","timeSection","header-id","timeHeader","fa-icon","fa-globe",1,"collapseHeader","bottomMargin","cursorPointer",3,"click"],[3,"icon","rotate"],[3,"ngbCollapse","ngbCollapseChange"],["geographyCollapse","ngbCollapse"],[1,"col-lg-3","col-md-6","col-sm-6","col-12",3,"list","tooltipText","selected","singleSelection","loading","label","hidden","selectedChange","handleChanged"],[1,"col-lg-3","col-md-6","col-sm-6","col-12",3,"list","tooltipText","selected","singleSelection","loading","label","selectedChange","handleChanged"],["title-text","Click to show or hide Other Filters.","heading","Other Filters","id","otherFilterSection","header-id","otherFilterHeader","fa-icon","fa-filter",1,"collapseHeader","bottomMargin","cursorPointer",3,"click"],["otherFilterCollapse","ngbCollapse"],["class","col-lg-3 col-md-6 col-sm-6 col-12",4,"ngFor","ngForOf"],[1,"col-lg-3","col-md-6","col-sm-6","col-12"],[3,"list","tooltipText","selected","singleSelection","label","selectedChange"],[1,"col-sm-4","d-none","d-sm-block","parent-vertical-center"],["aria-label","Query in left panel.",1,"rightMargin",3,"click"],[1,"onoffcontainer"],["tabindex","0","contenteditable","true","role","button",1,"onoffswitch",3,"keydown","click"],["type","checkbox","name","onoffswitch","id","myonoffswitch",1,"onoffswitch-checkbox",3,"ngModel","ngModelChange"],["for","myonoffswitch",1,"onoffswitch-label"],[1,"sr-only"],[1,"onoffswitch-inner"],[1,"onoffswitch-switch"],["aria-label","Query in right panel.",1,"leftMargin",3,"click"],["aria-hidden","true",1,"spinner-border","spinner-border-sm"],["role","document"],[1,"modal-header"],["id","indicatorName","tabindex","0",1,"modal-title",3,"innerHTML"],["type","button","aria-label","Close",1,"close",3,"click"],["aria-hidden","true"],[1,"modal-body"],[3,"innerHTML"],[1,"modal-footer"],["type","button",1,"btn","btn-danger",3,"click"],[1,"input-group"],[1,"input-group-btn"],["type","button","aria-label","Copy Bookmark URL to clipboard",1,"btn","btn-secondary",3,"click"],["aria-hidden","true",3,"icon"],["id","bookmarkInput","type","text","aria-label","Bookmark URL","readonly","readonly",1,"form-control",3,"value"],[1,"bottomBookmark"],["class","text-muted",4,"ngIf"],[1,"btn","btn-link","btn-link-condensed",3,"click"],[1,"text-muted"]],template:function(e,t){if(1&e){const e=aa();$s(0,PO,3,2,"p",0),$s(1,NO,4,3,"div",1),na(2,"button",2),Aa("click",function(){return It(e),Ys(8).toggle()}),ia(3,"fa-icon",3),na(4,"span",4),Ra(5,"Data Options"),ra(),ia(6,"fa-icon",5),ra(),na(7,"div",6,7),Aa("ngbCollapseChange",function(e){return t.dataOptionsCollapsed=e}),na(9,"div",8),na(10,"div",9),Ra(11," * = Required "),ra(),ra(),na(12,"div",10),na(13,"select-list",11),Aa("selectedChange",function(e){return t.category.selected=e})("handleChanged",function(){return t.onCategoryChange()}),ra(),na(14,"select-list",12),Aa("selectedChange",function(e){return t.content.selected=e})("handleChanged",function(){return t.onContentAreaChange()}),ra(),na(15,"select-list",13),Aa("selectedChange",function(e){return t.indicator.selected=e})("handleChanged",function(){return t.onIndicatorChange()}),ra(),na(16,"select-list",14),Aa("selectedChange",function(e){return t.measure.selected=e})("handleChanged",function(){return t.onMeasureChange()}),ra(),ia(17,"div",15),ra(),$s(18,VO,26,38,"div",1),na(19,"div",16),na(20,"div",17),na(21,"div",18),Ra(22," * = Required "),ra(),ra(),na(23,"div",19),$s(24,GO,13,2,"div",20),na(25,"div",21),na(26,"button",22),Aa("click",function(){return t.runQuery()}),$s(27,jO,1,0,"span",23),Ra(28,"\xa0Run Query "),ra(),na(29,"button",24),Aa("click",function(){return t.toggleQuery()}),$s(30,qO,2,0,"span",1),$s(31,zO,2,0,"span",1),ra(),na(32,"button",25),Aa("click",function(){return t.clearQuery()}),Ra(33," Clear Query "),ra(),na(34,"button",26,27),Aa("click",function(){return t.createBookmark()}),$s(36,WO,1,0,"span",23),Ra(37,"\xa0Save Query "),ra(),na(38,"button",28),Aa("click",function(){return t.openCitationModal()}),ia(39,"i",29),Ra(40,"\xa0Generate Citation "),ra(),ra(),ra(),ra(),ra(),na(41,"div",30),na(42,"div",31),ia(43,"mi-panel",32),ra(),na(44,"div",33),ia(45,"mi-panel",32),ra(),ra(),$s(46,XO,11,2,"ng-template",null,34,_A),$s(48,$O,11,3,"ng-template",null,35,_A)}if(2&e){const e=Ys(49);ea("ngForOf",t.filterAlerts),yo(1),ea("ngIf",t.bannerAlert.message&&t.bannerAlert.message.length),yo(1),zs("aria-expanded",t.dataOptionsCollapsed),yo(1),ea("icon",t.faGears),yo(3),ea("icon",t.faChevronDown)("rotate",!1===t.dataOptionsCollapsed?180:void 0),yo(1),ea("ngbCollapse",t.dataOptionsCollapsed),yo(6),ea("list",null==t.category?null:t.category.options)("tooltipText",null==t.category?null:t.category.tooltipText)("selected",t.category.selected)("singleSelection",!0)("loading",t.category.loading),yo(1),ea("list",null==t.content?null:t.content.options)("tooltipText",null==t.content?null:t.content.tooltipText)("selected",t.content.selected)("singleSelection",!0)("loading",t.content.loading),yo(1),ea("list",null==t.indicator?null:t.indicator.options)("tooltipText",null==t.category?null:t.category.tooltipText)("selected",t.indicator.selected)("singleSelection",!0)("loading",t.indicator.loading),yo(1),ea("list",null==t.measure?null:t.measure.options)("tooltipText",null==t.measure?null:t.measure.tooltipText)("selected",t.measure.selected)("singleSelection",!0)("loading",t.measure.loading),yo(2),ea("ngIf",!t.loadingAdvancedQuery),yo(6),ea("ngIf",t.indexController.leftPanelVisible&&t.indexController.rightPanelVisible),yo(2),ea("disabled",t.isQuerying||!t.measure.selected.length),yo(1),ea("ngIf",t.isQuerying),yo(2),ea("disabled",!t.measure.selected.length||t.cdcQuery),yo(1),ea("ngIf",t.basicQuery),yo(1),ea("ngIf",!t.basicQuery),yo(1),ea("disabled",t.isQuerying),yo(2),ea("disabled",t.isCreatingBookmark||!t.category.selected.length)("ngbPopover",e)("autoClose",!1),yo(2),ea("ngIf",t.isCreatingBookmark),yo(2),ea("disabled",!t.hasQueryResults()||!t.measure.selected.length),yo(4),ea("ngClass",Wc(50,YO,t.indexController.rightPanelVisible,t.indexController.leftPanelVisible&&!t.indexController.rightPanelVisible,!t.rightActive&&t.indexController.rightPanelVisible&&!t.dataOptionsCollapsed,t.rightActive&&t.indexController.rightPanelVisible&&!t.dataOptionsCollapsed))("hidden",!t.indexController.leftPanelVisible),yo(1),ea("indexController",t.indexController)("filterController",t.filterController)("panelSide","left"),yo(1),ea("ngClass",Wc(55,YO,t.indexController.leftPanelVisible,!t.indexController.leftPanelVisible&&t.indexController.rightPanelVisible,t.rightActive&&t.indexController.leftPanelVisible&&!t.dataOptionsCollapsed,!t.rightActive&&t.indexController.leftPanelVisible&&!t.dataOptionsCollapsed))("hidden",!t.indexController.rightPanelVisible),yo(1),ea("indexController",t.indexController)("filterController",t.filterController)("panelSide","right")}},directives:[ih,sh,Yb,vg,_Q,Sm,nh,MO,dg,ld,Fd,$d],styles:[".dataOptionsHeader{margin-left:8px;margin-right:12px;font-size:19px}.cursorPointer{cursor:pointer}.dataOptionsContent{padding:0 16px}.bannerMessage{display:inline-block;margin-left:10px;vertical-align:top}.bannerMessage *{margin:0}fa-icon{margin-top:.4vh}.faIcon{vertical-align:top}"],encapsulation:2}),e})();const eI=["disclaimerModal"];function tI(e,t){if(1&e){const e=aa();na(0,"div",1),na(1,"div",2),na(2,"h3",3),Ra(3,"Terms of Use"),ra(),ra(),na(4,"div",4),ia(5,"div",5),ra(),na(6,"div",6),na(7,"button",7),Aa("click",function(){return It(e),da().agree()}),Ra(8,"Agree"),ra(),na(9,"a",8),Ra(10,"Decline"),ra(),ra(),ra()}if(2&e){const e=da();yo(5),ea("innerHTML",e.disclaimerText,ui)}}let nI=(()=>{class e{constructor(e,t,n){this.modalService=e,this.http=t,this.baseUrl=n,this.ngbModalOptions={size:"lg",backdrop:"static"},this.disclaimerText=""}ngAfterViewInit(){this.open(this.disclaimerModal)}open(e){this.http.get(this.baseUrl+"SystemConfiguration/GetConfiguration").toPromise().then(t=>{this.disclaimerText=t.DisclaimerText,this.modalService.open(e,this.ngbModalOptions)})}agree(){this.modalService.dismissAll("agreed")}}return e.\u0275fac=function(t){return new(t||e)(Zs(Yg),Zs(Py),Zs("BASE_URL"))},e.\u0275cmp=Ge({type:e,selectors:[["disclaimer"]],viewQuery:function(e,t){if(1&e&&yA(eI,5,Bc),2&e){let e;mA(e=vA())&&(t.disclaimerModal=e.first)}},decls:2,vars:0,consts:[["disclaimerModal",""],["role","document"],[1,"modal-header"],["id","disclaimer","tabindex","0",1,"modal-title"],[1,"modal-body"],[3,"innerHTML"],[1,"modal-footer"],["type","button",1,"btn","btn-success","mr-auto",3,"click"],["href","http://www.michigan.gov/mitracking","title","Decline",1,"btn","btn-danger","ml-auto"]],template:function(e,t){1&e&&$s(0,tI,11,1,"ng-template",null,0,_A)},styles:[""]}),e})();const rI=["miFeedbackModal"];function iI(e,t){1&e&&ia(0,"fa-icon",28),2&e&&ea("icon",da(4).faExclamationCircle)}function oI(e,t){1&e&&ia(0,"fa-icon",28),2&e&&ea("icon",da(4).faCheckCircle)}function sI(e,t){if(1&e&&(na(0,"div",26),$s(1,iI,1,1,"fa-icon",27),$s(2,oI,1,1,"fa-icon",27),na(3,"p"),Ra(4),ra(),ra()),2&e){const e=t.$implicit,n=da().$implicit;yo(1),ea("ngIf","error"===n.type),yo(1),ea("ngIf","message"===n.type),yo(2),Pa(e)}}const aI=function(e,t){return{"alert-danger":e,"alert-success":t}};function lI(e,t){if(1&e){const e=aa();na(0,"div",21),na(1,"div",22),na(2,"div",23),$s(3,sI,5,3,"div",24),ra(),na(4,"button",25),Aa("click",function(){const t=It(e).index;return da(2).remove(t)}),Ra(5," \xd7 "),ra(),ia(6,"div",16),ra(),ra()}if(2&e){const e=t.$implicit;yo(1),ea("ngClass",qc(3,aI,"error"===e.type,"message"===e.type)),yo(1),ma("id",e.listId),yo(1),ea("ngForOf",e.messageList)}}function cI(e,t){1&e&&ia(0,"span",29)}function AI(e,t){if(1&e){const e=aa();na(0,"div",1),na(1,"h4",2),Ra(2,"Send Questions"),ra(),na(3,"button",3),Aa("click",function(){return It(e),da().close()}),na(4,"span",4),Ra(5,"\xd7"),ra(),ra(),ra(),na(6,"div",5),na(7,"div",6),$s(8,lI,7,6,"div",7),na(9,"form",8),na(10,"div",9),Ra(11," * = Required "),ra(),na(12,"div",10),na(13,"label",11),Ra(14,"Enter Questions"),ra(),na(15,"textarea",12),Aa("ngModelChange",function(t){return It(e),da().message=t}),ra(),ra(),na(16,"div",10),na(17,"label",13),Ra(18,"E-mail Address "),na(19,"span",14),Ra(20,"(optional)"),ra(),ra(),na(21,"input",15),Aa("ngModelChange",function(t){return It(e),da().from=t}),ra(),ra(),ra(),ra(),ia(22,"div",16),ra(),na(23,"div",17),na(24,"button",18),Aa("click",function(){return It(e),da().submitFeedback()}),$s(25,cI,1,0,"span",19),Ra(26," Submit"),ra(),na(27,"button",20),Aa("click",function(){return It(e),da().close()}),Ra(28,"Cancel"),ra(),ra()}if(2&e){const e=da();yo(8),ea("ngForOf",e.validationMessages),yo(7),ea("ngModel",e.message),yo(6),ea("ngModel",e.from),yo(3),ea("disabled",e.sending),yo(1),ea("ngIf",e.sending)}}let uI=(()=>{class e{constructor(e,t,n){this.http=e,this.modalService=t,this.baseUrl=n,this.errorMessageCounter=0,this.faExclamationCircle=Bx,this.faCheckCircle=Cx,this.message="",this.from="",this.sending=!1,this.validationMessages=[]}submitFeedback(){this.sending=!0;var e=[];this.message||e.push("Questions are required."),e.length>0?(this.sending=!1,this.addError(e)):this.http.post(this.baseUrl+"Feedback/SendFeedback",{FeedbackFrom:this.from,FeedbackText:this.message}).toPromise().then(e=>{this.sending=!1,this.message="",this.from="",this.close()},()=>{this.close()})}addError(e){this.validationMessages=[];var t="errorList-"+this.errorMessageCounter++;this.validationMessages.push({messageList:e,timeStamp:Date.now(),type:"error",listId:t})}remove(e){this.validationMessages.splice(e,1)}open(){this.modalService.open(this.feedbackModal)}close(){this.modalService.dismissAll("closeModal")}}return e.\u0275fac=function(t){return new(t||e)(Zs(Py),Zs(Yg),Zs("BASE_URL"))},e.\u0275cmp=Ge({type:e,selectors:[["mi-feedback"]],viewQuery:function(e,t){if(1&e&&yA(rI,5,Bc),2&e){let e;mA(e=vA())&&(t.feedbackModal=e.first)}},decls:2,vars:0,consts:[["miFeedbackModal",""],[1,"modal-header"],["id","search-results-header","tabindex","0",1,"modal-title"],["type","button","data-dismiss","modal","aria-label","Close",1,"close",3,"click"],["aria-hidden","true"],[1,"modal-body"],[1,"col-12"],["class","errorList",4,"ngFor","ngForOf"],["aria-label","Feedback Form"],[1,"row","required-text","bottomMargin"],[1,"row","form-group"],["for","FeedbackText","data-required","true",1,"font-weight-bold"],["id","FeedbackText","placeholder","Questions","aria-required","true","name","message",1,"form-control",3,"ngModel","ngModelChange"],["for","FeedbackFrom",1,"font-weight-bold"],[1,"text-muted"],["type","email","id","FeedbackFrom","placeholder","E-mail Address (optional)","name","from",1,"form-control",3,"ngModel","ngModelChange"],[1,"clearfix"],[1,"modal-footer"],[1,"btn","btn-primary","mr-auto",3,"disabled","click"],["class","spinner-border spinner-border-sm","aria-hidden","true",4,"ngIf"],[1,"btn","btn-outline-secondary","ml-auto",3,"click"],[1,"errorList"],["role","alert",1,"row","alert","withMargin","alert-top-row",3,"ngClass"],["tabindex","0",1,"col-lg-11","col-sm-10","alerts",3,"id"],["class","alert-row",4,"ngFor","ngForOf"],["aria-label","Close Error Message",1,"close","alert-close",3,"click"],[1,"alert-row"],["aria-hidden","true",3,"icon",4,"ngIf"],["aria-hidden","true",3,"icon"],["aria-hidden","true",1,"spinner-border","spinner-border-sm"]],template:function(e,t){1&e&&$s(0,AI,29,5,"ng-template",null,0,_A)},directives:[ih,Yd,Td,Wd,ud,Fd,$d,sh,nh,Yb],styles:[""]}),e})();const hI=["miSurveyModal"];function dI(e,t){1&e&&ia(0,"fa-icon",26),2&e&&ea("icon",da(4).faExclamationCircle)}function pI(e,t){1&e&&ia(0,"fa-icon",26),2&e&&ea("icon",da(4).faCheckCircle)}function fI(e,t){if(1&e&&(na(0,"div",24),$s(1,dI,1,1,"fa-icon",25),$s(2,pI,1,1,"fa-icon",25),na(3,"p"),Ra(4),ra(),ra()),2&e){const e=t.$implicit,n=da().$implicit;yo(1),ea("ngIf","error"===n.type),yo(1),ea("ngIf","message"===n.type),yo(2),Pa(e)}}function gI(e,t){if(1&e){const e=aa();na(0,"button",27),Aa("click",function(){It(e);const t=da().index;return da(2).remove(t)}),Ra(1,"\xd7 "),ra()}}const mI=function(e,t){return{"alert-danger":e,"alert-success":t}};function yI(e,t){if(1&e&&(na(0,"div",19),na(1,"div",20),na(2,"div",21),$s(3,fI,5,3,"div",22),ra(),$s(4,gI,2,0,"button",23),ra(),ra()),2&e){const e=t.$implicit;yo(1),ea("ngClass",qc(4,mI,"error"===e.type,"message"===e.type)),yo(1),ea("id",e.listId),yo(1),ea("ngForOf",e.messageList),yo(1),ea("ngIf","error"===e.type)}}function wI(e,t){1&e&&(na(0,"span",12),Ra(1,"(optional)"),ra())}function vI(e,t){if(1&e){const e=aa();na(0,"div",10),na(1,"label",31),Ra(2),$s(3,wI,2,0,"span",32),ra(),na(4,"textarea",33),Aa("ngModelChange",function(t){return It(e),da().$implicit.value=t}),ra(),ra()}if(2&e){const e=da().$implicit;yo(1),ea("for",e.id),zs("data-required",e.required),yo(1),Na(" ",e.question," "),yo(1),ea("ngIf",!e.required),yo(1),ea("id",e.id)("placeholder",e.placeholder)("name",e.name)("ngModel",e.value),zs("aria-required",e.required?"true":null)}}function bI(e,t){1&e&&(na(0,"span",12),Ra(1,"(optional)"),ra())}function CI(e,t){if(1&e){const e=aa();na(0,"div",10),na(1,"label",31),Ra(2),$s(3,bI,2,0,"span",32),ra(),na(4,"input",33),Aa("ngModelChange",function(t){return It(e),da().$implicit.value=t}),ra(),ra()}if(2&e){const e=da().$implicit;yo(1),ea("for",e.id),zs("data-required",e.required),yo(1),Na(" ",e.question," "),yo(1),ea("ngIf",!e.required),yo(1),ea("id",e.id)("placeholder",e.placeholder)("name",e.name)("ngModel",e.value),zs("aria-required",e.required?"true":null)}}function BI(e,t){if(1&e){const e=aa();na(0,"div",34),na(1,"select-list",35),Aa("selectedChange",function(t){return It(e),da().$implicit.value=t}),ra(),ra()}if(2&e){const e=da().$implicit;let t;yo(1),ea("label",e.question)("required",e.required)("buttonLabel",e.placeholder)("list",e.options)("singleSelection",null!==(t=e.singleSelection)&&void 0!==t&&t)("selected",e.value)}}function _I(e,t){1&e&&(na(0,"span",12),Ra(1,"(optional)"),ra())}function EI(e,t){if(1&e){const e=aa();na(0,"div",38),na(1,"input",39),Aa("ngModelChange",function(t){return It(e),da(2).$implicit.value=t}),ra(),na(2,"label",40),Ra(3),ra(),ra()}if(2&e){const e=t.$implicit,n=da(2).$implicit;yo(1),ea("name",n.name)("id",n.id+"-rating-"+e.value)("value",e.value)("ngModel",n.value),zs("aria-required",n.required?"true":null),yo(1),ea("for",n.id+"-rating-"+e.value),yo(1),Na(" ",e.label," ")}}function FI(e,t){if(1&e&&(na(0,"div",10),na(1,"label",31),Ra(2),$s(3,_I,2,0,"span",32),ra(),na(4,"div",36),$s(5,EI,4,7,"div",37),ra(),ra()),2&e){const e=da().$implicit;yo(1),ea("for",e.id),zs("data-required",e.required),yo(1),Na(" ",e.question," "),yo(1),ea("ngIf",!e.required),yo(1),ea("id",e.id),yo(1),ea("ngForOf",e.options)}}function TI(e,t){1&e&&(na(0,"div",28),$s(1,vI,5,9,"div",29),$s(2,CI,5,9,"div",29),$s(3,BI,2,6,"div",30),$s(4,FI,6,6,"div",29),ra()),2&e&&(ea("ngSwitch",t.$implicit.type),yo(1),ea("ngSwitchCase","textArea"),yo(1),ea("ngSwitchCase","normalInput"),yo(1),ea("ngSwitchCase","selectList"),yo(1),ea("ngSwitchCase","radioButton"))}function SI(e,t){1&e&&ia(0,"span",41)}function xI(e,t){if(1&e){const e=aa();na(0,"div",1),na(1,"h4",2),Ra(2," Survey Form "),ra(),na(3,"button",3),Aa("click",function(){return It(e),da().close()}),na(4,"span",4),Ra(5,"\xd7"),ra(),ra(),ra(),na(6,"div",5),na(7,"div",6),$s(8,yI,5,7,"div",7),na(9,"form",8),na(10,"div",9),Ra(11," * = Required "),ra(),na(12,"div",10),na(13,"label",11),Ra(14," E-mail Address: "),na(15,"span",12),Ra(16,"(optional)"),ra(),ra(),na(17,"input",13),Aa("ngModelChange",function(t){return It(e),da().surveyFrom=t}),ra(),ra(),$s(18,TI,5,5,"div",14),ra(),ra(),ra(),na(19,"div",15),na(20,"button",16),Aa("click",function(){return It(e),da().submit()}),$s(21,SI,1,0,"span",17),Ra(22," Submit "),ra(),na(23,"button",18),Aa("click",function(){return It(e),da().close()}),Ra(24,"Cancel"),ra(),ra(),na(25,"div",15),na(26,"button",18),Aa("click",function(){return It(e),da().close()}),Ra(27,"Close"),ra(),ra()}if(2&e){const e=da();yo(8),ea("ngForOf",e.validationMessages),yo(1),ea("hidden",e.surveySubmitted),yo(8),ea("ngModel",e.surveyFrom),yo(1),ea("ngForOf",e.surveyQuestions),yo(1),ea("hidden",e.surveySubmitted),yo(1),ea("disabled",e.sending),yo(1),ea("ngIf",e.sending),yo(4),ea("hidden",!e.surveySubmitted)}}let QI=(()=>{class e{constructor(e,t,n){this.modalService=e,this.http=t,this.baseUrl=n,this.customBtnClass="",this.ngbModalOptions={scrollable:!0},this.sending=!1,this.validationMessages=[],this.errorMessageCounter=0,this.surveyFrom="",this.surveySubmitted=!1,this.faExclamationCircle=Bx,this.faCheckCircle=Cx,this.surveyQuestions=[]}submit(){this.validationMessages=[];let e=this.checkRequiredQuestions();e.length>0?this.addError(e):this.submitSurvey()}checkRequiredQuestions(){let e=[];for(const t of this.surveyQuestions){if(t.required&&"selectList"!==t.type&&!t.value)return e.push("Please fill out all required fields to submit your survey."),e;if(t.required&&"selectList"===t.type&&0===t.value.length)return e.push("Please fill out all required fields to submit your survey."),e}return e}submitSurvey(){this.sending=!0;let e=[];this.surveyQuestions.forEach(t=>{e.push({Question:t.question,Answer:"selectList"!==t.type?t.value:t.value.map(e=>e.name).join(", ")})}),this.http.post(this.baseUrl+"Survey/SendSurvey",{SurveyFrom:this.surveyFrom,QuestionsAnswers:e}).pipe(lF(()=>{this.sending=!1})).subscribe(e=>{this.clearSurveyFields(),this.addMessage(e.message),this.surveySubmitted=!0},e=>{e.statusText&&e.statusText.includes("email")?this.addError(e.statusText):this.addError("An error has occurred. Try again later. If the error persists, contact the administrator.")})}clearSurveyFields(){this.surveyFrom="",this.surveyQuestions.forEach(e=>{e.value="selectList"!==e.type?"":[]})}addMessage(e){this.validationMessages.push({messageList:Array.isArray(e)?e:[e],timeStamp:Date.now(),type:"message",listId:"messageList"})}addError(e){let t="errorList-"+this.errorMessageCounter++;this.validationMessages.push({messageList:Array.isArray(e)?e:[e],timeStamp:Date.now(),type:"error",listId:t})}response(){let e=[];e.push("Survey Submitted!"),this.addMessage(e)}open(){this.modalService.open(this.surveyModal,this.ngbModalOptions),this.surveySubmitted=!1,this.validationMessages=this.validationMessages.filter(e=>"error"===e.type)}close(){this.modalService.dismissAll("closeModal")}remove(e){this.validationMessages.splice(e,1)}}return e.\u0275fac=function(t){return new(t||e)(Zs(Yg),Zs(Py),Zs("BASE_URL"))},e.\u0275cmp=Ge({type:e,selectors:[["mi-survey"]],viewQuery:function(e,t){if(1&e&&yA(hI,5),2&e){let e;mA(e=vA())&&(t.surveyModal=e.first)}},inputs:{customBtnClass:"customBtnClass",surveyQuestions:"surveyQuestions"},decls:2,vars:0,consts:[["miSurveyModal",""],[1,"modal-header"],["id","search-results-header","tabindex","0"],["type","button","aria-label","Close",1,"close",3,"click"],["aria-hidden","true"],[1,"modal-body"],[1,"col-12"],["class","errorList",4,"ngFor","ngForOf"],["name","Survey Form","aria-label","Survey Form",1,"survey-form",3,"hidden"],[1,"row","required-text","bottomMargin"],[1,"row","form-group"],["for","surveyFrom",1,"font-weight-bold"],[1,"text-muted"],["type","email","id","surveyFrom","placeholder","E-mail Address","name","surveyFrom",1,"form-control",3,"ngModel","ngModelChange"],[3,"ngSwitch",4,"ngFor","ngForOf"],[1,"modal-footer",3,"hidden"],[1,"btn","btn-primary","mr-auto",3,"disabled","click"],["class","spinner-border spinner-border-sm","aria-hidden","true",4,"ngIf"],[1,"btn","btn-outline-secondary","ml-auto",3,"click"],[1,"errorList"],["role","alert",1,"row","alert","withMargin","alert-top-row",3,"ngClass"],["tabindex","0",1,"col-lg-11","col-sm-10","alerts",3,"id"],["class","alert-row",4,"ngFor","ngForOf"],["class","close alert-close","aria-label","Close Error Message",3,"click",4,"ngIf"],[1,"alert-row"],["aria-hidden","true",3,"icon",4,"ngIf"],["aria-hidden","true",3,"icon"],["aria-label","Close Error Message",1,"close","alert-close",3,"click"],[3,"ngSwitch"],["class","row form-group",4,"ngSwitchCase"],["class","row form-group bottom-margin",4,"ngSwitchCase"],[1,"font-weight-bold",3,"for"],["class","text-muted",4,"ngIf"],[1,"form-control",3,"id","placeholder","name","ngModel","ngModelChange"],[1,"row","form-group","bottom-margin"],[3,"label","required","buttonLabel","list","singleSelection","selected","selectedChange"],["aria-label","radioButton",1,"radio",3,"id"],["class","each-radio",4,"ngFor","ngForOf"],[1,"each-radio"],["type","radio",1,"radio-input",3,"name","id","value","ngModel","ngModelChange"],[1,"radio-label",3,"for"],["aria-hidden","true",1,"spinner-border","spinner-border-sm"]],template:function(e,t){1&e&&$s(0,xI,28,8,"ng-template",null,0,_A)},directives:[ih,Yd,Td,Wd,ud,Fd,$d,sh,nh,Yb,Ah,uh,_Q,np],styles:[".survey-form{flex:0 0 100%}.survey-form .selectListLabel{font-weight:700!important;font-size:.875rem}.survey-form .dropdown-btn{font-size:1rem;color:#6c757d}.survey-form .customMultiSelect .multiselect-dropdown .selected-item-container .selected-item{color:#495057!important}.survey-form .form-group,.survey-form .radio{display:flex;flex-direction:column}.survey-form .radio{border:1px solid #0003;border-radius:.25rem;padding:.375rem .75rem}.survey-form .each-radio{display:flex;align-items:flex-start;grid-gap:7px;gap:7px}.survey-form select-list{width:100%}.radio-input{margin-top:5px}.radio-input:hover{cursor:pointer}.radio-label{font-size:1rem;color:#495057}.bottom-margin{margin-bottom:.8vh}"],encapsulation:2}),e})();const kI=["mi-index",""];function UI(e,t){if(1&e){const e=aa();na(0,"button",12),Aa("click",function(){return It(e),da(),Ys(63).open()}),Ra(1,"Survey Form"),ra()}}function OI(e,t){if(1&e){const e=aa();na(0,"button",53),Aa("click",function(){return It(e),da().enableSideBySideData()}),Ra(1," Compare Measures "),ra()}}function II(e,t){if(1&e){const e=aa();na(0,"button",54),Aa("click",function(){return It(e),da().hideLeftSide()}),Ra(1," Hide left side "),ra()}}function LI(e,t){if(1&e){const e=aa();na(0,"button",55),Aa("click",function(){return It(e),da().hideRightSide()}),Ra(1," Hide right side "),ra()}}function DI(e,t){1&e&&ia(0,"fa-icon",66),2&e&&ea("icon",da(2).faExclamationCircle)}function MI(e,t){1&e&&ia(0,"fa-icon",66),2&e&&ea("icon",da(2).faCheckCircle)}function HI(e,t){1&e&&ia(0,"fa-icon",66),2&e&&ea("icon",da(2).faInfoCircle)}function RI(e,t){1&e&&ia(0,"li",67),2&e&&ea("innerHtml",t.$implicit,ui)}const PI=function(e,t,n){return{"alert-danger":e,"alert-success":t,"alert-info":n}};function NI(e,t){if(1&e){const e=aa();na(0,"div",56),na(1,"div",57),na(2,"div",58),$s(3,DI,1,1,"fa-icon",59),$s(4,MI,1,1,"fa-icon",59),$s(5,HI,1,1,"fa-icon",59),na(6,"ul",60),$s(7,RI,1,1,"li",61),ra(),ra(),na(8,"span",62),Aa("click",function(){It(e);const t=da();return t.remove(t.$index)}),na(9,"span",63),Ra(10,"\u2716"),ra(),na(11,"span",64),Ra(12,"Close"),ra(),ra(),ia(13,"div",65),ra(),ra()}if(2&e){const e=t.$implicit;yo(1),ea("ngClass",zc(6,PI,"error"===e.type,"message"===e.type,"banner"===e.type)),yo(1),zs("id",e.listId),yo(1),ea("ngIf","error"===e.type),yo(1),ea("ngIf","message"===e.type),yo(1),ea("ngIf","banner"===e.type),yo(2),ea("ngForOf",e.messageList)}}function KI(e,t){if(1&e){const e=aa();na(0,"button",68),Aa("click",function(){return It(e),da(),Ys(63).open()}),Ra(1,"Survey Form"),ra()}}const VI=["*"],GI=[{path:"embedded-map",component:xk},{path:"",component:(()=>{class e{constructor(e,t,n,r,i,o){this.httpService=e,this.baseUrl=t,this.changeDetector=n,this.websiteMetricService=r,this.elementRef=i,this.configService=o,this.faCheckCircle=Cx,this.faInfoCircle=_x,this.faExclamationCircle=Bx,this.indexComponent=this,this.toggleExpanderFilter=!1,this.surveyFormQuestions=[],r.dailyCookieGuid=o.dailyCookieGuid,this.persistentCookieGuid=o.persistentCookieGuid,this.currentVersion=o.currentVersion,this.currentEnvironment=o.currentEnvironment,this.currentYear=o.currentYear}ngOnInit(){this.leftSideTab="table",this.rightSideTab="table",this.errorMessageCounter=0,this.leftPanelVisible=!0,this.rightPanelVisible=!1,this.firstLoad=!0,this.mapsLinked=!1,this.leftMapDrawn=null,this.rightMapDrawn=null,this.isScreenLargeEnoughForSideBySide=!0,this.panelRemovedDueToResize=!1,this.messageList=[],this.mapExtentEventList=[],this.activate()}loadSurveyQuestions(){this.httpService.get(this.baseUrl+"ClientApp/dist/mitracking-public/assets/surveyQuestions.json").subscribe(e=>{setTimeout(()=>{this.surveyFormQuestions=e})})}activate(){this.httpService.post(this.baseUrl+"WebsiteMetrics/AddUserMetric",{DailyUserId:this.websiteMetricService.dailyCookieGuid,PersistentUserId:this.persistentCookieGuid}).subscribe(),this.loadSurveyQuestions()}enableSideBySideData(){this.rightPanelVisible||(this.rightPanelVisible=!this.rightPanelVisible),this.leftPanelVisible||(this.leftPanelVisible=!this.leftPanelVisible),this.changeDetector.detectChanges()}hideLeftSide(){this.leftPanelVisible=!this.leftPanelVisible,this.mapsLinked=!1,this.changeDetector.detectChanges()}hideRightSide(){this.rightPanelVisible=!this.rightPanelVisible,this.mapsLinked=!1,this.changeDetector.detectChanges()}addError(e){this.addAlert(e,"error")}addMessage(e){this.addAlert(e,"message")}addBanner(e){this.addAlert(e,"banner")}addAlert(e,t){this.messageList=[],window.scrollTo(0,0);var n="errorList-"+this.errorMessageCounter++;this.messageList.push({messageList:e,timeStamp:Date.now(),type:t,listId:n})}remove(e){this.messageList.splice(e,1)}focusBody(){const e=document.getElementById("body-content");null==e||e.focus()}viewingSideBySideMaps(){return this.rightMapDrawn&&this.leftMapDrawn&&"map"===this.rightSideTab&&"map"===this.leftSideTab&&this.rightPanelVisible&&this.leftPanelVisible}debouncedResize(){S_(()=>{},200)}}return e.\u0275fac=function(t){return new(t||e)(Zs(Py),Zs("BASE_URL"),Zs(yc),Zs(iQ),Zs(ql),Zs(mk))},e.\u0275cmp=Ge({type:e,selectors:[["","mi-index",""]],attrs:kI,ngContentSelectors:VI,decls:102,vars:19,consts:[["id","branding-bar",1,"navbar","navbar-expand-lg","navbar-dark"],[1,"navbar-header"],["aria-controls","branding-bar-nav","aria-label","Toggle navigation menu","data-target","#branding-bar-nav","data-toggle","collapse","type","button",1,"navbar-toggler"],[1,"navbar-toggler-icon","navbar-dark"],["id","branding-bar-nav",1,"collapse","navbar-collapse",2,"height","1px"],[1,"navbar-nav","ml-auto"],[1,"skip-nav","sr-only",3,"click"],[1,"nav-item"],["href","http://www.michigan.gov/mitracking","title","MiTracking Home","target","_blank",1,"nav-link"],["href","https://www.michigan.gov/mdhhs/safety-injury-prev/environmental-health/topics/mitracking/contact","title","Contact","target","_blank",1,"nav-link"],["href","http://www.michigan.gov/mdhhs","title","MDHHS Home","target","_blank",1,"nav-link"],["href","http://www.michigan.gov","title","An Official State of Michigan Web Site","target","_blank",1,"mi-gov-link","nav-link"],[1,"menu-btn","nav-btn","navbar-brand",3,"click"],["class","menu-btn nav-btn navbar-brand",3,"click",4,"ngIf"],["id","banner-header"],["id","BannerHeaderSmall",1,"d-sm-none","d-block"],["href","http://www.michigan.gov/mdhhs","title","MDHHS Home","target","_blank"],["id","BannerHeaderSmallLeft","alt","MDHHS - The Michigan Department of Health and Human Services (MDHHS)",1,"float-left",3,"src"],["href","http://www.michigan.gov/mitracking","title","MiTracking Home","target","_blank"],["id","BannerHeaderSmallRight","alt","MiTracking - Michigan Environmental Public Health Tracking",1,"float-left",3,"src"],["id","BannerHeaderLeft",2,"display","inline-block"],["id","BannerHeaderLeft1","alt","MiTracking - Michigan Environmental Public Health Tracking",1,"float-left","d-none","d-sm-block",3,"src"],["id","BannerHeaderLeft2","alt","MiTracking - Michigan Environmental Public Health Tracking",1,"float-left","d-none","d-sm-block",3,"src"],["id","BannerHeaderRight","alt","MDHHS - The Michigan Department of Health and Human Services (MDHHS)",1,"float-right","d-none","d-sm-block",3,"src"],[1,"sr-only"],[1,"clear"],["id","body-content","tabindex","-1"],[1,"container-fluid","addMargin"],[1,"search-and-compare","bottomMargin"],[1,"compare-measure-buttons"],["type","button","id","compare-data","class","btn btn-primary d-none d-sm-block","aria-label","Switch data portal to allow data viewing in two panels",3,"click",4,"ngIf"],["type","button","id","hide-left-side","class","btn btn-primary","aria-label","Hide left panel to reduce data viewing to one panel",3,"click",4,"ngIf"],["type","button","id","hide-right-side","class","btn btn-primary","aria-label","Hide right panel to reduce data viewing to one panel",3,"click",4,"ngIf"],["leftPanelVisible","leftPanelVisible","rightPanelVisible","rightPanelVisible"],[1,"row"],[1,"col-12"],["class","errorList","id","errorList",4,"ngFor","ngForOf"],[3,"indexController","rightPanelVisible","leftPanelVisible","toggleFilterExpander"],[1,"btn","btn-primary","feedback-button","floating-btn",3,"click"],["class","btn btn-primary survey-button floating-btn",3,"click",4,"ngIf"],["miFeedbackComponent",""],[3,"surveyQuestions"],["miSurveyComponent",""],[1,"footer","negativeMargin"],[1,"container-fluid"],[1,"vertical-align"],[1,"d-none","d-sm-block"],["href","http://www.michigan.gov","title","An Official State of Michigan Web Site","target","_blank"],["href","https://www.michigan.gov/mdhhs/safety-injury-prev/environmental-health/topics/mitracking/contact","title","Contact","target","_blank"],["href","http://www.michigan.gov/policies","target","_blank"],[1,"copyright"],[1,"phone-footer","d-block","d-sm-none","d-md-none","d-lg-none"],["tabindex","0","id","toTop","data-target","#"],["type","button","id","compare-data","aria-label","Switch data portal to allow data viewing in two panels",1,"btn","btn-primary","d-none","d-sm-block",3,"click"],["type","button","id","hide-left-side","aria-label","Hide left panel to reduce data viewing to one panel",1,"btn","btn-primary",3,"click"],["type","button","id","hide-right-side","aria-label","Hide right panel to reduce data viewing to one panel",1,"btn","btn-primary",3,"click"],["id","errorList",1,"errorList"],["role","alert",1,"alert","withMargin",3,"ngClass"],["tabindex","0",1,"col-lg-11","col-sm-10"],["aria-hidden","true",3,"icon",4,"ngIf"],[1,"shiftUp"],[3,"innerHtml",4,"ngFor","ngForOf"],["tabindex","0","aria-label","Close Error Message",1,"text-right","float-right","col-sm-2","col-lg-1",3,"click"],["aria-hidden","true"],[1,"d-none","d-sm-block","d-md-block","d-lg-block"],[1,"clearfix"],["aria-hidden","true",3,"icon"],[3,"innerHtml"],[1,"btn","btn-primary","survey-button","floating-btn",3,"click"]],template:function(e,t){if(1&e){const e=aa();fa(),na(0,"header"),na(1,"nav",0),na(2,"div",1),na(3,"button",2),ia(4,"span",3),ra(),ra(),na(5,"div",4),na(6,"ul",5),na(7,"li"),na(8,"button",6),Aa("click",function(){return t.focusBody()}),Ra(9,"Skip to Main Content"),ra(),ra(),na(10,"li",7),na(11,"a",8),Ra(12,"MiTracking Home"),ra(),ra(),na(13,"li",7),na(14,"a",9),Ra(15,"Contact"),ra(),ra(),na(16,"li",7),na(17,"a",10),Ra(18,"MDHHS Home"),ra(),ra(),na(19,"li",7),na(20,"a",11),Ra(21,"MI.gov"),ra(),ra(),na(22,"li"),na(23,"button",12),Aa("click",function(){return It(e),Ys(61).open()}),Ra(24,"Questions?"),ra(),ra(),na(25,"li"),$s(26,UI,2,0,"button",13),ra(),ra(),ra(),ra(),na(27,"div"),na(28,"div",14),na(29,"div",15),na(30,"a",16),ia(31,"img",17),ra(),na(32,"a",18),ia(33,"img",19),ra(),ra(),na(34,"div",20),na(35,"a",16),ia(36,"img",21),ra(),na(37,"a",18),ia(38,"img",22),ra(),ra(),ia(39,"img",23),na(40,"h1",24),Ra(41,"MiTracking - Michigan Environmental Public Health Tracking"),ra(),ia(42,"div",25),ra(),ra(),ra(),na(43,"main",26),na(44,"div",27),na(45,"div",28),na(46,"div",29),$s(47,OI,2,0,"button",30),$s(48,II,2,0,"button",31),$s(49,LI,2,0,"button",32),ra(),ia(50,"search-modal",33),ra(),na(51,"div",34),na(52,"div",35),$s(53,NI,14,10,"div",36),ra(),ra(),na(54,"div"),ia(55,"mi-filters",37),ra(),ia(56,"disclaimer"),ra(),na(57,"button",38),Aa("click",function(){return It(e),Ys(61).open()}),Ra(58,"Questions?"),ra(),$s(59,KI,2,0,"button",39),ia(60,"mi-feedback",null,40),ia(62,"mi-survey",41,42),ra(),na(64,"footer",43),na(65,"div",44),na(66,"div",45),na(67,"p"),Ra(68),ra(),na(69,"p",46),na(70,"a",47),Ra(71,"MI.gov"),ra(),Ra(72," | "),na(73,"a",18),Ra(74,"MiTracking Home"),ra(),Ra(75," | "),na(76,"a",48),Ra(77,"Contact"),ra(),Ra(78," | "),na(79,"a",49),Ra(80,"Policies"),ra(),ia(81,"br"),na(82,"span",50),Ra(83),ra(),ra(),na(84,"div",51),na(85,"div"),na(86,"a",47),Ra(87,"MI.gov"),ra(),ra(),na(88,"div"),na(89,"a",18),Ra(90,"MiTracking Home"),ra(),ra(),na(91,"div"),na(92,"a",48),Ra(93,"Contact"),ra(),ra(),na(94,"div"),na(95,"a",49),Ra(96,"Policies"),ra(),ra(),ia(97,"div"),na(98,"div"),na(99,"button",52),Ra(100,"Back to Top"),ra(),ra(),ra(),ra(),ra(),ra(),ga(101)}2&e&&(yo(26),ea("ngIf",0!==t.surveyFormQuestions.length),yo(5),ea("src",t.baseUrl+"ClientApp/dist/mitracking-public/assets/img/BannerHeaderSmallLeft.png",hi),yo(2),ea("src",t.baseUrl+"ClientApp/dist/mitracking-public/assets/img/BannerHeaderSmallRight.png",hi),yo(3),ea("src",t.baseUrl+"ClientApp/dist/mitracking-public/assets/img/BannerHeaderLeft1.png",hi),yo(2),ea("src",t.baseUrl+"ClientApp/dist/mitracking-public/assets/img/BannerHeaderLeft2.png",hi),yo(1),ea("src",t.baseUrl+"ClientApp/dist/mitracking-public/assets/img/BannerHeaderRight.png",hi),yo(8),ea("ngIf",t.isScreenLargeEnoughForSideBySide&&(!t.leftPanelVisible||!t.rightPanelVisible)),yo(1),ea("ngIf",t.leftPanelVisible&&t.rightPanelVisible),yo(1),ea("ngIf",t.leftPanelVisible&&t.rightPanelVisible),yo(4),ea("ngForOf",t.messageList),yo(2),ea("indexController",t.indexComponent)("rightPanelVisible",t.rightPanelVisible)("leftPanelVisible",t.leftPanelVisible)("toggleFilterExpander",t.toggleExpanderFilter),yo(4),ea("ngIf",0!==t.surveyFormQuestions.length),yo(3),ea("surveyQuestions",t.surveyFormQuestions),yo(6),Ka("MiTracking Data Portal - Version ",t.currentVersion," - ",t.currentEnvironment,""),yo(15),Na("Copyright ",t.currentYear," State of Michigan"))},directives:[Ig,sh,iU,ih,ZO,nI,uI,QI,nh,Yb],styles:[".search-and-compare{display:flex;justify-content:space-between;flex-wrap:wrap-reverse;grid-row-gap:8px;row-gap:8px}.compare-measure-buttons{display:flex;grid-gap:4px;gap:4px}search-modal{width:600px}.addMargin{padding-right:2.5rem;padding-bottom:90px}.negativeMargin{margin-top:-90px}@media (max-width:575px){.addMargin{padding-bottom:190px}.negativeMargin{margin-top:-190px}}@media (max-width: 375px){.addMargin{padding-bottom:250px}.negativeMargin{margin-top:-250px}}"],encapsulation:2}),e})()},{path:"**",redirectTo:""}];let jI=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=We({type:e}),e.\u0275inj=pe({imports:[[$S.forRoot(GI)],$S]}),e})(),qI=(()=>{class e{constructor(e,t){this.elementRef=e,this.configService=t,this.title="mitracking-public"}ngOnInit(){var e,t,n,r,i;const o=this.elementRef.nativeElement.attributes;this.configService.setConfiguration((null===(e=o["daily-session-guid"])||void 0===e?void 0:e.value)||"",(null===(t=o["persistent-session-guid"])||void 0===t?void 0:t.value)||"",(null===(n=o["mitracking-version"])||void 0===n?void 0:n.value)||"",(null===(r=o["mitracking-environment"])||void 0===r?void 0:r.value)||"",(null===(i=o["mitracking-year"])||void 0===i?void 0:i.value)||"")}}return e.\u0275fac=function(t){return new(t||e)(Zs(ql),Zs(mk))},e.\u0275cmp=Ge({type:e,selectors:[["app-root"]],decls:1,vars:0,template:function(e,t){1&e&&ia(0,"router-outlet")},directives:[NS],encapsulation:2}),e})(),zI=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=We({type:e,bootstrap:[qI]}),e.\u0275inj=pe({providers:[mh,eC,KE],imports:[[nd,Mm,sp,ty.forRoot(),vy,Zy,Zb,jI]]}),e})();ed([{provide:"BASE_URL",useFactory:function(){return document.getElementsByTagName("link")[0].rel},deps:[]}]),function(){if(lu)throw new Error("Cannot enable prod mode after platform setup.");au=!1}(),ed().bootstrapModule(zI).catch(e=>console.error(e))}},e=>{"use strict";e(e.s=542)}]);;
